react-luminus-components 1.2.113 → 1.2.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +40 -40
- package/dist/{NoInputContainer-B2NLKTjL.cjs → NoInputContainer-BTMhF5K2.cjs} +16 -16
- package/dist/{NoInputContainer-CnWtqd6M.js → NoInputContainer-Bgh3cEfG.js} +543 -543
- package/dist/{PrimaryButton-DdX5Urwd.cjs → PrimaryButton-B7gtCSk7.cjs} +1 -1
- package/dist/{PrimaryButton-JmPJBth0.js → PrimaryButton-DDQG35ET.js} +1 -1
- package/dist/{SimpleTooltip-DAt21777.cjs → SimpleTooltip-CDomgLDx.cjs} +1 -1
- package/dist/{SimpleTooltip-SJ7NFji7.js → SimpleTooltip-YiM19KZ0.js} +1 -1
- package/dist/components/common/ImgApi/ImgApi.d.ts +4 -0
- package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +9 -0
- package/dist/components/common/ImgDirect/ImgDirect.d.ts +4 -0
- package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +6 -2
- package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +6 -2
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +160 -148
- package/dist/hooks/useAxios/useAxios.d.ts +1 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +1206 -1177
- package/dist/models/index.d.ts +2 -0
- package/dist/models/prop-types/ImgProps.d.ts +7 -0
- package/dist/models/types/UserModel.d.ts +2 -1
- package/dist/{useConfirm-C4vc6fDa.js → useConfirm-7xib-j-y.js} +1 -1
- package/dist/{useConfirm-k8Kyrbnb.cjs → useConfirm-B4xXl3s9.cjs} +1 -1
- package/dist/{usePermissions-CJNbDDXa.cjs → usePermissions-CZMCXjYH.cjs} +1 -1
- package/dist/{usePermissions-fMk86sJx.js → usePermissions-D1HAjQat.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as o, c as
|
|
2
|
-
import { aj as
|
|
1
|
+
import { j as o, c as x, t as J, a as oe, g as pr, T as gr, b as xr, s as kt, E as wr, d as vr, e as yr, f as br, h as _r, u as V, i as me, k as Jt, F as Nt, l as jr, m as kr, n as Nr, o as Cr, p as Ir, q as $r, r as Sr, v as Tr, w as ut, x as Zt, y as Er, z as Dr, A as be, B as Or, C as Pr, P as Xe, D as dt, S as Ct, G as Ae, H as Me, I as ht, J as Ar, K as en, L as $e, M as Ye, O as It, N as Mr, Q as ae, R as Fr, U as Wr, V as tn, W as mt, X as ft, Y as G, Z as Rr, _ as nn, $ as Lr, a0 as rn, a1 as pt, a2 as Yr, a3 as qr, a4 as sn, a5 as on, a6 as ce, a7 as Hr, a8 as Br, a9 as Vr, aa as Gr, ab as an, ac as zr, ad as Ur, ae as Je, af as ke, ag as cn, ah as fe } from "./NoInputContainer-Bgh3cEfG.js";
|
|
2
|
+
import { aj as Ll, ai as Yl } from "./NoInputContainer-Bgh3cEfG.js";
|
|
3
3
|
import * as W from "react";
|
|
4
|
-
import ne, { useCallback as S, useMemo as K, useEffect as
|
|
5
|
-
import { c as de, d as
|
|
6
|
-
import { m as
|
|
7
|
-
import { useFormContext as le, Controller as
|
|
8
|
-
import { u as
|
|
9
|
-
import { S as
|
|
10
|
-
import { s as
|
|
11
|
-
const
|
|
4
|
+
import ne, { useCallback as S, useMemo as K, useEffect as D, useRef as q, useState as O, useReducer as ln, useContext as L, Component as Kr, isValidElement as Qr, Suspense as Xr, createElement as Jr } from "react";
|
|
5
|
+
import { c as de, d as Zr, C as es, a as un, u as ts, q as $t, F as ns, b as dn, E as Fe, P as St, M as We, L as Tt } from "./PrimaryButton-DDQG35ET.js";
|
|
6
|
+
import { m as rs, a as hn } from "./latinize-BQrinury.js";
|
|
7
|
+
import { useFormContext as le, Controller as mn } from "react-hook-form";
|
|
8
|
+
import { u as fn, a as pn, b as gn } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
+
import { S as Hl } from "./SimpleTooltip-YiM19KZ0.js";
|
|
10
|
+
import { s as ss } from "./searchUtils-Du4JnXdQ.js";
|
|
11
|
+
const rl = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
12
|
const r = S(async () => {
|
|
13
13
|
var l, c;
|
|
14
14
|
const s = await n();
|
|
@@ -18,12 +18,12 @@ const tl = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
|
18
18
|
i.href = a, i.setAttribute("download", e), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
|
|
19
19
|
}, [n, e]);
|
|
20
20
|
return /* @__PURE__ */ o.jsx("div", { role: "button", onClick: r, children: t });
|
|
21
|
-
},
|
|
22
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
23
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
24
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
21
|
+
}, os = ({ className: n, ...e }) => /* @__PURE__ */ o.jsxs("div", { className: x("luminus-loading", de.loading, de.loadingBlock, de.loadingBlock), ...e, children: [
|
|
22
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary"), role: "status" }),
|
|
23
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary", de.second), role: "status" }),
|
|
24
|
+
/* @__PURE__ */ o.jsx("div", { className: x("spinner-grow", de.spinnerGrow, "text-primary", de.third), role: "status" })
|
|
25
25
|
] });
|
|
26
|
-
function
|
|
26
|
+
function xn(n, e) {
|
|
27
27
|
const t = J(n);
|
|
28
28
|
if (isNaN(e))
|
|
29
29
|
return oe(n, NaN);
|
|
@@ -38,9 +38,9 @@ function pn(n, e) {
|
|
|
38
38
|
r
|
|
39
39
|
), t);
|
|
40
40
|
}
|
|
41
|
-
let
|
|
41
|
+
let as = {};
|
|
42
42
|
function Ge() {
|
|
43
|
-
return
|
|
43
|
+
return as;
|
|
44
44
|
}
|
|
45
45
|
function Te(n, e) {
|
|
46
46
|
var l, c, u, d;
|
|
@@ -50,7 +50,7 @@ function Te(n, e) {
|
|
|
50
50
|
function qe(n) {
|
|
51
51
|
return Te(n, { weekStartsOn: 1 });
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function wn(n) {
|
|
54
54
|
const e = J(n), t = e.getFullYear(), r = oe(n, 0);
|
|
55
55
|
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
56
56
|
const s = qe(r), a = oe(n, 0);
|
|
@@ -58,11 +58,11 @@ function gn(n) {
|
|
|
58
58
|
const i = qe(a);
|
|
59
59
|
return e.getTime() >= s.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Et(n) {
|
|
62
62
|
const e = J(n);
|
|
63
63
|
return e.setHours(0, 0, 0, 0), e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Dt(n) {
|
|
66
66
|
const e = J(n), t = new Date(
|
|
67
67
|
Date.UTC(
|
|
68
68
|
e.getFullYear(),
|
|
@@ -76,35 +76,35 @@ function Et(n) {
|
|
|
76
76
|
);
|
|
77
77
|
return t.setUTCFullYear(e.getFullYear()), +n - +t;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const t =
|
|
81
|
-
return Math.round((s - a) /
|
|
79
|
+
function is(n, e) {
|
|
80
|
+
const t = Et(n), r = Et(e), s = +t - Dt(t), a = +r - Dt(r);
|
|
81
|
+
return Math.round((s - a) / rs);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const e =
|
|
83
|
+
function cs(n) {
|
|
84
|
+
const e = wn(n), t = oe(n, 0);
|
|
85
85
|
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), qe(t);
|
|
86
86
|
}
|
|
87
|
-
function cs(n, e) {
|
|
88
|
-
return pn(n, e * 12);
|
|
89
|
-
}
|
|
90
87
|
function ls(n, e) {
|
|
88
|
+
return xn(n, e * 12);
|
|
89
|
+
}
|
|
90
|
+
function us(n, e) {
|
|
91
91
|
const t = J(n), r = J(e), s = t.getTime() - r.getTime();
|
|
92
92
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ds(n) {
|
|
95
95
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
if (!
|
|
97
|
+
function hs(n) {
|
|
98
|
+
if (!ds(n) && typeof n != "number")
|
|
99
99
|
return !1;
|
|
100
100
|
const e = J(n);
|
|
101
101
|
return !isNaN(Number(e));
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ms(n) {
|
|
104
104
|
const e = J(n), t = oe(n, 0);
|
|
105
105
|
return t.setFullYear(e.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const fs = {
|
|
108
108
|
lessThanXSeconds: {
|
|
109
109
|
one: "less than a second",
|
|
110
110
|
other: "less than {{count}} seconds"
|
|
@@ -166,9 +166,9 @@ const ms = {
|
|
|
166
166
|
one: "almost 1 year",
|
|
167
167
|
other: "almost {{count}} years"
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, ps = (n, e, t) => {
|
|
170
170
|
let r;
|
|
171
|
-
const s =
|
|
171
|
+
const s = fs[n];
|
|
172
172
|
return typeof s == "string" ? r = s : e === 1 ? r = s.one : r = s.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
173
173
|
};
|
|
174
174
|
function Ze(n) {
|
|
@@ -177,42 +177,42 @@ function Ze(n) {
|
|
|
177
177
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const gs = {
|
|
181
181
|
full: "EEEE, MMMM do, y",
|
|
182
182
|
long: "MMMM do, y",
|
|
183
183
|
medium: "MMM d, y",
|
|
184
184
|
short: "MM/dd/yyyy"
|
|
185
|
-
},
|
|
185
|
+
}, xs = {
|
|
186
186
|
full: "h:mm:ss a zzzz",
|
|
187
187
|
long: "h:mm:ss a z",
|
|
188
188
|
medium: "h:mm:ss a",
|
|
189
189
|
short: "h:mm a"
|
|
190
|
-
},
|
|
190
|
+
}, ws = {
|
|
191
191
|
full: "{{date}} 'at' {{time}}",
|
|
192
192
|
long: "{{date}} 'at' {{time}}",
|
|
193
193
|
medium: "{{date}}, {{time}}",
|
|
194
194
|
short: "{{date}}, {{time}}"
|
|
195
|
-
},
|
|
195
|
+
}, vs = {
|
|
196
196
|
date: Ze({
|
|
197
|
-
formats:
|
|
197
|
+
formats: gs,
|
|
198
198
|
defaultWidth: "full"
|
|
199
199
|
}),
|
|
200
200
|
time: Ze({
|
|
201
|
-
formats:
|
|
201
|
+
formats: xs,
|
|
202
202
|
defaultWidth: "full"
|
|
203
203
|
}),
|
|
204
204
|
dateTime: Ze({
|
|
205
|
-
formats:
|
|
205
|
+
formats: ws,
|
|
206
206
|
defaultWidth: "full"
|
|
207
207
|
})
|
|
208
|
-
},
|
|
208
|
+
}, ys = {
|
|
209
209
|
lastWeek: "'last' eeee 'at' p",
|
|
210
210
|
yesterday: "'yesterday at' p",
|
|
211
211
|
today: "'today at' p",
|
|
212
212
|
tomorrow: "'tomorrow at' p",
|
|
213
213
|
nextWeek: "eeee 'at' p",
|
|
214
214
|
other: "P"
|
|
215
|
-
},
|
|
215
|
+
}, bs = (n, e, t, r) => ys[n];
|
|
216
216
|
function Ne(n) {
|
|
217
217
|
return (e, t) => {
|
|
218
218
|
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
@@ -228,15 +228,15 @@ function Ne(n) {
|
|
|
228
228
|
return s[a];
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const _s = {
|
|
232
232
|
narrow: ["B", "A"],
|
|
233
233
|
abbreviated: ["BC", "AD"],
|
|
234
234
|
wide: ["Before Christ", "Anno Domini"]
|
|
235
|
-
},
|
|
235
|
+
}, js = {
|
|
236
236
|
narrow: ["1", "2", "3", "4"],
|
|
237
237
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
238
238
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
239
|
-
},
|
|
239
|
+
}, ks = {
|
|
240
240
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
241
241
|
abbreviated: [
|
|
242
242
|
"Jan",
|
|
@@ -266,7 +266,7 @@ const bs = {
|
|
|
266
266
|
"November",
|
|
267
267
|
"December"
|
|
268
268
|
]
|
|
269
|
-
},
|
|
269
|
+
}, Ns = {
|
|
270
270
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
271
271
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
272
272
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -279,7 +279,7 @@ const bs = {
|
|
|
279
279
|
"Friday",
|
|
280
280
|
"Saturday"
|
|
281
281
|
]
|
|
282
|
-
},
|
|
282
|
+
}, Cs = {
|
|
283
283
|
narrow: {
|
|
284
284
|
am: "a",
|
|
285
285
|
pm: "p",
|
|
@@ -310,7 +310,7 @@ const bs = {
|
|
|
310
310
|
evening: "evening",
|
|
311
311
|
night: "night"
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, Is = {
|
|
314
314
|
narrow: {
|
|
315
315
|
am: "a",
|
|
316
316
|
pm: "p",
|
|
@@ -341,7 +341,7 @@ const bs = {
|
|
|
341
341
|
evening: "in the evening",
|
|
342
342
|
night: "at night"
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, $s = (n, e) => {
|
|
345
345
|
const t = Number(n), r = t % 100;
|
|
346
346
|
if (r > 20 || r < 10)
|
|
347
347
|
switch (r % 10) {
|
|
@@ -353,29 +353,29 @@ const bs = {
|
|
|
353
353
|
return t + "rd";
|
|
354
354
|
}
|
|
355
355
|
return t + "th";
|
|
356
|
-
},
|
|
357
|
-
ordinalNumber:
|
|
356
|
+
}, Ss = {
|
|
357
|
+
ordinalNumber: $s,
|
|
358
358
|
era: Ne({
|
|
359
|
-
values:
|
|
359
|
+
values: _s,
|
|
360
360
|
defaultWidth: "wide"
|
|
361
361
|
}),
|
|
362
362
|
quarter: Ne({
|
|
363
|
-
values:
|
|
363
|
+
values: js,
|
|
364
364
|
defaultWidth: "wide",
|
|
365
365
|
argumentCallback: (n) => n - 1
|
|
366
366
|
}),
|
|
367
367
|
month: Ne({
|
|
368
|
-
values:
|
|
368
|
+
values: ks,
|
|
369
369
|
defaultWidth: "wide"
|
|
370
370
|
}),
|
|
371
371
|
day: Ne({
|
|
372
|
-
values:
|
|
372
|
+
values: Ns,
|
|
373
373
|
defaultWidth: "wide"
|
|
374
374
|
}),
|
|
375
375
|
dayPeriod: Ne({
|
|
376
|
-
values:
|
|
376
|
+
values: Cs,
|
|
377
377
|
defaultWidth: "wide",
|
|
378
|
-
formattingValues:
|
|
378
|
+
formattingValues: Is,
|
|
379
379
|
defaultFormattingWidth: "wide"
|
|
380
380
|
})
|
|
381
381
|
};
|
|
@@ -384,9 +384,9 @@ function Ce(n) {
|
|
|
384
384
|
const r = t.width, s = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], a = e.match(s);
|
|
385
385
|
if (!a)
|
|
386
386
|
return null;
|
|
387
|
-
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ?
|
|
387
|
+
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? Es(l, (h) => h.test(i)) : (
|
|
388
388
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
389
|
-
|
|
389
|
+
Ts(l, (h) => h.test(i))
|
|
390
390
|
);
|
|
391
391
|
let u;
|
|
392
392
|
u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? (
|
|
@@ -397,17 +397,17 @@ function Ce(n) {
|
|
|
397
397
|
return { value: u, rest: d };
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ts(n, e) {
|
|
401
401
|
for (const t in n)
|
|
402
402
|
if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t]))
|
|
403
403
|
return t;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Es(n, e) {
|
|
406
406
|
for (let t = 0; t < n.length; t++)
|
|
407
407
|
if (e(n[t]))
|
|
408
408
|
return t;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Ds(n) {
|
|
411
411
|
return (e, t = {}) => {
|
|
412
412
|
const r = e.match(n.matchPattern);
|
|
413
413
|
if (!r)
|
|
@@ -421,23 +421,23 @@ function Es(n) {
|
|
|
421
421
|
return { value: i, rest: l };
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const Os = /^(\d+)(th|st|nd|rd)?/i, Ps = /\d+/i, As = {
|
|
425
425
|
narrow: /^(b|a)/i,
|
|
426
426
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
427
427
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
428
428
|
}, Ms = {
|
|
429
429
|
any: [/^b/i, /^(a|c)/i]
|
|
430
|
-
},
|
|
430
|
+
}, Fs = {
|
|
431
431
|
narrow: /^[1234]/i,
|
|
432
432
|
abbreviated: /^q[1234]/i,
|
|
433
433
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
434
|
-
}, Fs = {
|
|
435
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
436
434
|
}, Ws = {
|
|
435
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
436
|
+
}, Rs = {
|
|
437
437
|
narrow: /^[jfmasond]/i,
|
|
438
438
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
439
439
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
440
|
-
},
|
|
440
|
+
}, Ls = {
|
|
441
441
|
narrow: [
|
|
442
442
|
/^j/i,
|
|
443
443
|
/^f/i,
|
|
@@ -471,13 +471,13 @@ const Ds = /^(\d+)(th|st|nd|rd)?/i, Os = /\d+/i, Ps = {
|
|
|
471
471
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
472
472
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
473
473
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
474
|
-
},
|
|
474
|
+
}, qs = {
|
|
475
475
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
476
476
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
477
|
-
},
|
|
477
|
+
}, Hs = {
|
|
478
478
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
479
479
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
480
|
-
},
|
|
480
|
+
}, Bs = {
|
|
481
481
|
any: {
|
|
482
482
|
am: /^a/i,
|
|
483
483
|
pm: /^p/i,
|
|
@@ -488,82 +488,82 @@ const Ds = /^(\d+)(th|st|nd|rd)?/i, Os = /\d+/i, Ps = {
|
|
|
488
488
|
evening: /evening/i,
|
|
489
489
|
night: /night/i
|
|
490
490
|
}
|
|
491
|
-
},
|
|
492
|
-
ordinalNumber:
|
|
493
|
-
matchPattern:
|
|
494
|
-
parsePattern:
|
|
491
|
+
}, Vs = {
|
|
492
|
+
ordinalNumber: Ds({
|
|
493
|
+
matchPattern: Os,
|
|
494
|
+
parsePattern: Ps,
|
|
495
495
|
valueCallback: (n) => parseInt(n, 10)
|
|
496
496
|
}),
|
|
497
497
|
era: Ce({
|
|
498
|
-
matchPatterns:
|
|
498
|
+
matchPatterns: As,
|
|
499
499
|
defaultMatchWidth: "wide",
|
|
500
500
|
parsePatterns: Ms,
|
|
501
501
|
defaultParseWidth: "any"
|
|
502
502
|
}),
|
|
503
503
|
quarter: Ce({
|
|
504
|
-
matchPatterns:
|
|
504
|
+
matchPatterns: Fs,
|
|
505
505
|
defaultMatchWidth: "wide",
|
|
506
|
-
parsePatterns:
|
|
506
|
+
parsePatterns: Ws,
|
|
507
507
|
defaultParseWidth: "any",
|
|
508
508
|
valueCallback: (n) => n + 1
|
|
509
509
|
}),
|
|
510
510
|
month: Ce({
|
|
511
|
-
matchPatterns:
|
|
511
|
+
matchPatterns: Rs,
|
|
512
512
|
defaultMatchWidth: "wide",
|
|
513
|
-
parsePatterns:
|
|
513
|
+
parsePatterns: Ls,
|
|
514
514
|
defaultParseWidth: "any"
|
|
515
515
|
}),
|
|
516
516
|
day: Ce({
|
|
517
517
|
matchPatterns: Ys,
|
|
518
518
|
defaultMatchWidth: "wide",
|
|
519
|
-
parsePatterns:
|
|
519
|
+
parsePatterns: qs,
|
|
520
520
|
defaultParseWidth: "any"
|
|
521
521
|
}),
|
|
522
522
|
dayPeriod: Ce({
|
|
523
|
-
matchPatterns:
|
|
523
|
+
matchPatterns: Hs,
|
|
524
524
|
defaultMatchWidth: "any",
|
|
525
|
-
parsePatterns:
|
|
525
|
+
parsePatterns: Bs,
|
|
526
526
|
defaultParseWidth: "any"
|
|
527
527
|
})
|
|
528
|
-
},
|
|
528
|
+
}, Gs = {
|
|
529
529
|
code: "en-US",
|
|
530
|
-
formatDistance:
|
|
531
|
-
formatLong:
|
|
532
|
-
formatRelative:
|
|
533
|
-
localize:
|
|
534
|
-
match:
|
|
530
|
+
formatDistance: ps,
|
|
531
|
+
formatLong: vs,
|
|
532
|
+
formatRelative: bs,
|
|
533
|
+
localize: Ss,
|
|
534
|
+
match: Vs,
|
|
535
535
|
options: {
|
|
536
536
|
weekStartsOn: 0,
|
|
537
537
|
firstWeekContainsDate: 1
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
|
-
function
|
|
540
|
+
function zs(n) {
|
|
541
541
|
const e = J(n);
|
|
542
|
-
return
|
|
542
|
+
return is(e, ms(e)) + 1;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const e = J(n), t = +qe(e) - +
|
|
546
|
-
return Math.round(t /
|
|
544
|
+
function Us(n) {
|
|
545
|
+
const e = J(n), t = +qe(e) - +cs(e);
|
|
546
|
+
return Math.round(t / hn) + 1;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
var d, h, p,
|
|
550
|
-
const t = J(n), r = t.getFullYear(), s = Ge(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((
|
|
548
|
+
function vn(n, e) {
|
|
549
|
+
var d, h, p, f;
|
|
550
|
+
const t = J(n), r = t.getFullYear(), s = Ge(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((f = (p = s.locale) == null ? void 0 : p.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = oe(n, 0);
|
|
551
551
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
552
552
|
const l = Te(i, e), c = oe(n, 0);
|
|
553
553
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
554
554
|
const u = Te(c, e);
|
|
555
555
|
return t.getTime() >= l.getTime() ? r + 1 : t.getTime() >= u.getTime() ? r : r - 1;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ks(n, e) {
|
|
558
558
|
var l, c, u, d;
|
|
559
|
-
const t = Ge(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, s =
|
|
559
|
+
const t = Ge(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, s = vn(n, e), a = oe(n, 0);
|
|
560
560
|
return a.setFullYear(s, 0, r), a.setHours(0, 0, 0, 0), Te(a, e);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
const t = J(n), r = +Te(t, e) - +
|
|
564
|
-
return Math.round(r /
|
|
562
|
+
function Qs(n, e) {
|
|
563
|
+
const t = J(n), r = +Te(t, e) - +Ks(t, e);
|
|
564
|
+
return Math.round(r / hn) + 1;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Y(n, e) {
|
|
567
567
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
568
568
|
return t + r;
|
|
569
569
|
}
|
|
@@ -571,16 +571,16 @@ const he = {
|
|
|
571
571
|
// Year
|
|
572
572
|
y(n, e) {
|
|
573
573
|
const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
574
|
-
return
|
|
574
|
+
return Y(e === "yy" ? r % 100 : r, e.length);
|
|
575
575
|
},
|
|
576
576
|
// Month
|
|
577
577
|
M(n, e) {
|
|
578
578
|
const t = n.getMonth();
|
|
579
|
-
return e === "M" ? String(t + 1) :
|
|
579
|
+
return e === "M" ? String(t + 1) : Y(t + 1, 2);
|
|
580
580
|
},
|
|
581
581
|
// Day of the month
|
|
582
582
|
d(n, e) {
|
|
583
|
-
return
|
|
583
|
+
return Y(n.getDate(), e.length);
|
|
584
584
|
},
|
|
585
585
|
// AM or PM
|
|
586
586
|
a(n, e) {
|
|
@@ -600,26 +600,26 @@ const he = {
|
|
|
600
600
|
},
|
|
601
601
|
// Hour [1-12]
|
|
602
602
|
h(n, e) {
|
|
603
|
-
return
|
|
603
|
+
return Y(n.getHours() % 12 || 12, e.length);
|
|
604
604
|
},
|
|
605
605
|
// Hour [0-23]
|
|
606
606
|
H(n, e) {
|
|
607
|
-
return
|
|
607
|
+
return Y(n.getHours(), e.length);
|
|
608
608
|
},
|
|
609
609
|
// Minute
|
|
610
610
|
m(n, e) {
|
|
611
|
-
return
|
|
611
|
+
return Y(n.getMinutes(), e.length);
|
|
612
612
|
},
|
|
613
613
|
// Second
|
|
614
614
|
s(n, e) {
|
|
615
|
-
return
|
|
615
|
+
return Y(n.getSeconds(), e.length);
|
|
616
616
|
},
|
|
617
617
|
// Fraction of second
|
|
618
618
|
S(n, e) {
|
|
619
619
|
const t = e.length, r = n.getMilliseconds(), s = Math.trunc(
|
|
620
620
|
r * Math.pow(10, t - 3)
|
|
621
621
|
);
|
|
622
|
-
return
|
|
622
|
+
return Y(s, e.length);
|
|
623
623
|
}
|
|
624
624
|
}, _e = {
|
|
625
625
|
am: "am",
|
|
@@ -630,7 +630,7 @@ const he = {
|
|
|
630
630
|
afternoon: "afternoon",
|
|
631
631
|
evening: "evening",
|
|
632
632
|
night: "night"
|
|
633
|
-
},
|
|
633
|
+
}, Ot = {
|
|
634
634
|
// Era
|
|
635
635
|
G: function(n, e, t) {
|
|
636
636
|
const r = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -656,17 +656,17 @@ const he = {
|
|
|
656
656
|
},
|
|
657
657
|
// Local week-numbering year
|
|
658
658
|
Y: function(n, e, t, r) {
|
|
659
|
-
const s =
|
|
659
|
+
const s = vn(n, r), a = s > 0 ? s : 1 - s;
|
|
660
660
|
if (e === "YY") {
|
|
661
661
|
const i = a % 100;
|
|
662
|
-
return
|
|
662
|
+
return Y(i, 2);
|
|
663
663
|
}
|
|
664
|
-
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) :
|
|
664
|
+
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) : Y(a, e.length);
|
|
665
665
|
},
|
|
666
666
|
// ISO week-numbering year
|
|
667
667
|
R: function(n, e) {
|
|
668
|
-
const t =
|
|
669
|
-
return
|
|
668
|
+
const t = wn(n);
|
|
669
|
+
return Y(t, e.length);
|
|
670
670
|
},
|
|
671
671
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
672
672
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -679,7 +679,7 @@ const he = {
|
|
|
679
679
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
680
680
|
u: function(n, e) {
|
|
681
681
|
const t = n.getFullYear();
|
|
682
|
-
return
|
|
682
|
+
return Y(t, e.length);
|
|
683
683
|
},
|
|
684
684
|
// Quarter
|
|
685
685
|
Q: function(n, e, t) {
|
|
@@ -688,7 +688,7 @@ const he = {
|
|
|
688
688
|
case "Q":
|
|
689
689
|
return String(r);
|
|
690
690
|
case "QQ":
|
|
691
|
-
return
|
|
691
|
+
return Y(r, 2);
|
|
692
692
|
case "Qo":
|
|
693
693
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
694
694
|
case "QQQ":
|
|
@@ -716,7 +716,7 @@ const he = {
|
|
|
716
716
|
case "q":
|
|
717
717
|
return String(r);
|
|
718
718
|
case "qq":
|
|
719
|
-
return
|
|
719
|
+
return Y(r, 2);
|
|
720
720
|
case "qo":
|
|
721
721
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
722
722
|
case "qqq":
|
|
@@ -768,7 +768,7 @@ const he = {
|
|
|
768
768
|
case "L":
|
|
769
769
|
return String(r + 1);
|
|
770
770
|
case "LL":
|
|
771
|
-
return
|
|
771
|
+
return Y(r + 1, 2);
|
|
772
772
|
case "Lo":
|
|
773
773
|
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
774
774
|
case "LLL":
|
|
@@ -788,13 +788,13 @@ const he = {
|
|
|
788
788
|
},
|
|
789
789
|
// Local week of year
|
|
790
790
|
w: function(n, e, t, r) {
|
|
791
|
-
const s =
|
|
792
|
-
return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) :
|
|
791
|
+
const s = Qs(n, r);
|
|
792
|
+
return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) : Y(s, e.length);
|
|
793
793
|
},
|
|
794
794
|
// ISO week of year
|
|
795
795
|
I: function(n, e, t) {
|
|
796
|
-
const r =
|
|
797
|
-
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
796
|
+
const r = Us(n);
|
|
797
|
+
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : Y(r, e.length);
|
|
798
798
|
},
|
|
799
799
|
// Day of the month
|
|
800
800
|
d: function(n, e, t) {
|
|
@@ -802,8 +802,8 @@ const he = {
|
|
|
802
802
|
},
|
|
803
803
|
// Day of year
|
|
804
804
|
D: function(n, e, t) {
|
|
805
|
-
const r =
|
|
806
|
-
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
805
|
+
const r = zs(n);
|
|
806
|
+
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, e.length);
|
|
807
807
|
},
|
|
808
808
|
// Day of week
|
|
809
809
|
E: function(n, e, t) {
|
|
@@ -841,7 +841,7 @@ const he = {
|
|
|
841
841
|
case "e":
|
|
842
842
|
return String(a);
|
|
843
843
|
case "ee":
|
|
844
|
-
return
|
|
844
|
+
return Y(a, 2);
|
|
845
845
|
case "eo":
|
|
846
846
|
return t.ordinalNumber(a, { unit: "day" });
|
|
847
847
|
case "eee":
|
|
@@ -874,7 +874,7 @@ const he = {
|
|
|
874
874
|
case "c":
|
|
875
875
|
return String(a);
|
|
876
876
|
case "cc":
|
|
877
|
-
return
|
|
877
|
+
return Y(a, e.length);
|
|
878
878
|
case "co":
|
|
879
879
|
return t.ordinalNumber(a, { unit: "day" });
|
|
880
880
|
case "ccc":
|
|
@@ -907,7 +907,7 @@ const he = {
|
|
|
907
907
|
case "i":
|
|
908
908
|
return String(s);
|
|
909
909
|
case "ii":
|
|
910
|
-
return
|
|
910
|
+
return Y(s, e.length);
|
|
911
911
|
case "io":
|
|
912
912
|
return t.ordinalNumber(s, { unit: "day" });
|
|
913
913
|
case "iii":
|
|
@@ -1030,12 +1030,12 @@ const he = {
|
|
|
1030
1030
|
// Hour [0-11]
|
|
1031
1031
|
K: function(n, e, t) {
|
|
1032
1032
|
const r = n.getHours() % 12;
|
|
1033
|
-
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1033
|
+
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : Y(r, e.length);
|
|
1034
1034
|
},
|
|
1035
1035
|
// Hour [1-24]
|
|
1036
1036
|
k: function(n, e, t) {
|
|
1037
1037
|
let r = n.getHours();
|
|
1038
|
-
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1038
|
+
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : Y(r, e.length);
|
|
1039
1039
|
},
|
|
1040
1040
|
// Minute
|
|
1041
1041
|
m: function(n, e, t) {
|
|
@@ -1056,7 +1056,7 @@ const he = {
|
|
|
1056
1056
|
return "Z";
|
|
1057
1057
|
switch (e) {
|
|
1058
1058
|
case "X":
|
|
1059
|
-
return
|
|
1059
|
+
return At(r);
|
|
1060
1060
|
case "XXXX":
|
|
1061
1061
|
case "XX":
|
|
1062
1062
|
return ye(r);
|
|
@@ -1071,7 +1071,7 @@ const he = {
|
|
|
1071
1071
|
const r = n.getTimezoneOffset();
|
|
1072
1072
|
switch (e) {
|
|
1073
1073
|
case "x":
|
|
1074
|
-
return
|
|
1074
|
+
return At(r);
|
|
1075
1075
|
case "xxxx":
|
|
1076
1076
|
case "xx":
|
|
1077
1077
|
return ye(r);
|
|
@@ -1088,7 +1088,7 @@ const he = {
|
|
|
1088
1088
|
case "O":
|
|
1089
1089
|
case "OO":
|
|
1090
1090
|
case "OOO":
|
|
1091
|
-
return "GMT" +
|
|
1091
|
+
return "GMT" + Pt(r, ":");
|
|
1092
1092
|
case "OOOO":
|
|
1093
1093
|
default:
|
|
1094
1094
|
return "GMT" + ye(r, ":");
|
|
@@ -1101,7 +1101,7 @@ const he = {
|
|
|
1101
1101
|
case "z":
|
|
1102
1102
|
case "zz":
|
|
1103
1103
|
case "zzz":
|
|
1104
|
-
return "GMT" +
|
|
1104
|
+
return "GMT" + Pt(r, ":");
|
|
1105
1105
|
case "zzzz":
|
|
1106
1106
|
default:
|
|
1107
1107
|
return "GMT" + ye(r, ":");
|
|
@@ -1110,23 +1110,23 @@ const he = {
|
|
|
1110
1110
|
// Seconds timestamp
|
|
1111
1111
|
t: function(n, e, t) {
|
|
1112
1112
|
const r = Math.trunc(n.getTime() / 1e3);
|
|
1113
|
-
return
|
|
1113
|
+
return Y(r, e.length);
|
|
1114
1114
|
},
|
|
1115
1115
|
// Milliseconds timestamp
|
|
1116
1116
|
T: function(n, e, t) {
|
|
1117
1117
|
const r = n.getTime();
|
|
1118
|
-
return
|
|
1118
|
+
return Y(r, e.length);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
function
|
|
1121
|
+
function Pt(n, e = "") {
|
|
1122
1122
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), s = Math.trunc(r / 60), a = r % 60;
|
|
1123
|
-
return a === 0 ? t + String(s) : t + String(s) + e +
|
|
1123
|
+
return a === 0 ? t + String(s) : t + String(s) + e + Y(a, 2);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") +
|
|
1125
|
+
function At(n, e) {
|
|
1126
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Y(Math.abs(n) / 60, 2) : ye(n, e);
|
|
1127
1127
|
}
|
|
1128
1128
|
function ye(n, e = "") {
|
|
1129
|
-
const t = n > 0 ? "-" : "+", r = Math.abs(n), s =
|
|
1129
|
+
const t = n > 0 ? "-" : "+", r = Math.abs(n), s = Y(Math.trunc(r / 60), 2), a = Y(r % 60, 2);
|
|
1130
1130
|
return t + s + e + a;
|
|
1131
1131
|
}
|
|
1132
1132
|
const Mt = (n, e) => {
|
|
@@ -1141,7 +1141,7 @@ const Mt = (n, e) => {
|
|
|
1141
1141
|
default:
|
|
1142
1142
|
return e.date({ width: "full" });
|
|
1143
1143
|
}
|
|
1144
|
-
},
|
|
1144
|
+
}, yn = (n, e) => {
|
|
1145
1145
|
switch (n) {
|
|
1146
1146
|
case "p":
|
|
1147
1147
|
return e.time({ width: "short" });
|
|
@@ -1153,7 +1153,7 @@ const Mt = (n, e) => {
|
|
|
1153
1153
|
default:
|
|
1154
1154
|
return e.time({ width: "full" });
|
|
1155
1155
|
}
|
|
1156
|
-
},
|
|
1156
|
+
}, Xs = (n, e) => {
|
|
1157
1157
|
const t = n.match(/(P+)(p+)?/) || [], r = t[1], s = t[2];
|
|
1158
1158
|
if (!s)
|
|
1159
1159
|
return Mt(n, e);
|
|
@@ -1173,48 +1173,48 @@ const Mt = (n, e) => {
|
|
|
1173
1173
|
a = e.dateTime({ width: "full" });
|
|
1174
1174
|
break;
|
|
1175
1175
|
}
|
|
1176
|
-
return a.replace("{{date}}", Mt(r, e)).replace("{{time}}",
|
|
1177
|
-
},
|
|
1178
|
-
p:
|
|
1179
|
-
P:
|
|
1180
|
-
},
|
|
1181
|
-
function to(n) {
|
|
1182
|
-
return Js.test(n);
|
|
1183
|
-
}
|
|
1176
|
+
return a.replace("{{date}}", Mt(r, e)).replace("{{time}}", yn(s, e));
|
|
1177
|
+
}, Js = {
|
|
1178
|
+
p: yn,
|
|
1179
|
+
P: Xs
|
|
1180
|
+
}, Zs = /^D+$/, eo = /^Y+$/, to = ["D", "DD", "YY", "YYYY"];
|
|
1184
1181
|
function no(n) {
|
|
1185
1182
|
return Zs.test(n);
|
|
1186
1183
|
}
|
|
1187
|
-
function ro(n
|
|
1188
|
-
|
|
1189
|
-
if (console.warn(r), eo.includes(n))
|
|
1190
|
-
throw new RangeError(r);
|
|
1184
|
+
function ro(n) {
|
|
1185
|
+
return eo.test(n);
|
|
1191
1186
|
}
|
|
1192
1187
|
function so(n, e, t) {
|
|
1188
|
+
const r = oo(n, e, t);
|
|
1189
|
+
if (console.warn(r), to.includes(n))
|
|
1190
|
+
throw new RangeError(r);
|
|
1191
|
+
}
|
|
1192
|
+
function oo(n, e, t) {
|
|
1193
1193
|
const r = n[0] === "Y" ? "years" : "days of the month";
|
|
1194
1194
|
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`;
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1196
|
+
const ao = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, io = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, co = /^'([^]*?)'?$/, lo = /''/g, uo = /[a-zA-Z]/;
|
|
1197
1197
|
function ot(n, e, t) {
|
|
1198
|
-
var d, h, p,
|
|
1199
|
-
const r = Ge(), s = (t == null ? void 0 : t.locale) ?? r.locale ??
|
|
1200
|
-
if (!
|
|
1198
|
+
var d, h, p, f, v, b, g, _;
|
|
1199
|
+
const r = Ge(), s = (t == null ? void 0 : t.locale) ?? r.locale ?? Gs, 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 ?? ((f = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((b = (v = t == null ? void 0 : t.locale) == null ? void 0 : v.options) == null ? void 0 : b.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = J(n);
|
|
1200
|
+
if (!hs(l))
|
|
1201
1201
|
throw new RangeError("Invalid time value");
|
|
1202
|
-
let c = e.match(
|
|
1202
|
+
let c = e.match(io).map((k) => {
|
|
1203
1203
|
const m = k[0];
|
|
1204
1204
|
if (m === "p" || m === "P") {
|
|
1205
|
-
const N =
|
|
1205
|
+
const N = Js[m];
|
|
1206
1206
|
return N(k, s.formatLong);
|
|
1207
1207
|
}
|
|
1208
1208
|
return k;
|
|
1209
|
-
}).join("").match(
|
|
1209
|
+
}).join("").match(ao).map((k) => {
|
|
1210
1210
|
if (k === "''")
|
|
1211
1211
|
return { isToken: !1, value: "'" };
|
|
1212
1212
|
const m = k[0];
|
|
1213
1213
|
if (m === "'")
|
|
1214
|
-
return { isToken: !1, value:
|
|
1215
|
-
if (
|
|
1214
|
+
return { isToken: !1, value: ho(k) };
|
|
1215
|
+
if (Ot[m])
|
|
1216
1216
|
return { isToken: !0, value: k };
|
|
1217
|
-
if (m.match(
|
|
1217
|
+
if (m.match(uo))
|
|
1218
1218
|
throw new RangeError(
|
|
1219
1219
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1220
1220
|
);
|
|
@@ -1230,30 +1230,30 @@ function ot(n, e, t) {
|
|
|
1230
1230
|
if (!k.isToken)
|
|
1231
1231
|
return k.value;
|
|
1232
1232
|
const m = k.value;
|
|
1233
|
-
(!(t != null && t.useAdditionalWeekYearTokens) &&
|
|
1234
|
-
const N =
|
|
1233
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && ro(m) || !(t != null && t.useAdditionalDayOfYearTokens) && no(m)) && so(m, e, String(n));
|
|
1234
|
+
const N = Ot[m[0]];
|
|
1235
1235
|
return N(l, m, s.localize, u);
|
|
1236
1236
|
}).join("");
|
|
1237
1237
|
}
|
|
1238
|
-
function uo(n) {
|
|
1239
|
-
const e = n.match(io);
|
|
1240
|
-
return e ? e[1].replace(co, "'") : n;
|
|
1241
|
-
}
|
|
1242
1238
|
function ho(n) {
|
|
1239
|
+
const e = n.match(co);
|
|
1240
|
+
return e ? e[1].replace(lo, "'") : n;
|
|
1241
|
+
}
|
|
1242
|
+
function mo(n) {
|
|
1243
1243
|
const e = J(n), t = e.getFullYear(), r = e.getMonth(), s = oe(n, 0);
|
|
1244
1244
|
return s.setFullYear(t, r + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function fo(n, e) {
|
|
1247
1247
|
const t = J(n), r = t.getFullYear(), s = t.getDate(), a = oe(n, 0);
|
|
1248
1248
|
a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
|
|
1249
|
-
const i =
|
|
1249
|
+
const i = mo(a);
|
|
1250
1250
|
return t.setMonth(e, Math.min(s, i)), t;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function bn(n, e) {
|
|
1253
1253
|
const t = J(n);
|
|
1254
1254
|
return isNaN(+t) ? oe(n, NaN) : (t.setFullYear(e), t);
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1256
|
+
var po = function(n, e, t, r, s, a, i, l) {
|
|
1257
1257
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1258
1258
|
throw new Error("invariant requires an error message argument");
|
|
1259
1259
|
if (!n) {
|
|
@@ -1272,8 +1272,8 @@ var fo = function(n, e, t, r, s, a, i, l) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
throw c.framesToPop = 1, c;
|
|
1274
1274
|
}
|
|
1275
|
-
},
|
|
1276
|
-
const
|
|
1275
|
+
}, go = po;
|
|
1276
|
+
const Ft = /* @__PURE__ */ pr(go);
|
|
1277
1277
|
function Ie(...n) {
|
|
1278
1278
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
1279
1279
|
if (typeof t != "function")
|
|
@@ -1283,22 +1283,22 @@ function Ie(...n) {
|
|
|
1283
1283
|
};
|
|
1284
1284
|
}, null);
|
|
1285
1285
|
}
|
|
1286
|
-
const
|
|
1286
|
+
const xo = {
|
|
1287
1287
|
height: ["marginTop", "marginBottom"],
|
|
1288
1288
|
width: ["marginLeft", "marginRight"]
|
|
1289
1289
|
};
|
|
1290
|
-
function
|
|
1291
|
-
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], s =
|
|
1290
|
+
function wo(n, e) {
|
|
1291
|
+
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], s = xo[n];
|
|
1292
1292
|
return r + // @ts-ignore
|
|
1293
1293
|
parseInt(kt(e, s[0]), 10) + // @ts-ignore
|
|
1294
1294
|
parseInt(kt(e, s[1]), 10);
|
|
1295
1295
|
}
|
|
1296
|
-
const
|
|
1297
|
-
[
|
|
1298
|
-
[
|
|
1299
|
-
[
|
|
1300
|
-
[
|
|
1301
|
-
},
|
|
1296
|
+
const vo = {
|
|
1297
|
+
[wr]: "collapse",
|
|
1298
|
+
[vr]: "collapsing",
|
|
1299
|
+
[yr]: "collapsing",
|
|
1300
|
+
[br]: "collapse show"
|
|
1301
|
+
}, _n = /* @__PURE__ */ ne.forwardRef(({
|
|
1302
1302
|
onEnter: n,
|
|
1303
1303
|
onEntering: e,
|
|
1304
1304
|
onEntered: t,
|
|
@@ -1312,26 +1312,26 @@ const wo = {
|
|
|
1312
1312
|
mountOnEnter: d = !1,
|
|
1313
1313
|
unmountOnExit: h = !1,
|
|
1314
1314
|
appear: p = !1,
|
|
1315
|
-
getDimensionValue:
|
|
1316
|
-
...
|
|
1317
|
-
},
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1320
|
-
}, n), [
|
|
1321
|
-
const $ = `scroll${
|
|
1322
|
-
|
|
1323
|
-
}, e), [
|
|
1324
|
-
|
|
1325
|
-
}, t), [
|
|
1326
|
-
|
|
1327
|
-
}, r), [r,
|
|
1328
|
-
|
|
1329
|
-
}, s), [
|
|
1330
|
-
return /* @__PURE__ */ o.jsx(
|
|
1331
|
-
ref:
|
|
1332
|
-
addEndListener:
|
|
1333
|
-
...
|
|
1334
|
-
"aria-expanded":
|
|
1315
|
+
getDimensionValue: f = wo,
|
|
1316
|
+
...v
|
|
1317
|
+
}, b) => {
|
|
1318
|
+
const g = typeof l == "function" ? l() : l, _ = K(() => Ie((w) => {
|
|
1319
|
+
w.style[g] = "0";
|
|
1320
|
+
}, n), [g, n]), k = K(() => Ie((w) => {
|
|
1321
|
+
const $ = `scroll${g[0].toUpperCase()}${g.slice(1)}`;
|
|
1322
|
+
w.style[g] = `${w[$]}px`;
|
|
1323
|
+
}, e), [g, e]), m = K(() => Ie((w) => {
|
|
1324
|
+
w.style[g] = null;
|
|
1325
|
+
}, t), [g, t]), N = K(() => Ie((w) => {
|
|
1326
|
+
w.style[g] = `${f(g, w)}px`, _r(w);
|
|
1327
|
+
}, r), [r, f, g]), j = K(() => Ie((w) => {
|
|
1328
|
+
w.style[g] = null;
|
|
1329
|
+
}, s), [g, s]);
|
|
1330
|
+
return /* @__PURE__ */ o.jsx(gr, {
|
|
1331
|
+
ref: b,
|
|
1332
|
+
addEndListener: xr,
|
|
1333
|
+
...v,
|
|
1334
|
+
"aria-expanded": v.role ? c : null,
|
|
1335
1335
|
onEnter: _,
|
|
1336
1336
|
onEntering: k,
|
|
1337
1337
|
onEntered: m,
|
|
@@ -1343,33 +1343,33 @@ const wo = {
|
|
|
1343
1343
|
mountOnEnter: d,
|
|
1344
1344
|
unmountOnExit: h,
|
|
1345
1345
|
appear: p,
|
|
1346
|
-
children: (
|
|
1346
|
+
children: (w, $) => /* @__PURE__ */ ne.cloneElement(i, {
|
|
1347
1347
|
...$,
|
|
1348
|
-
className:
|
|
1348
|
+
className: x(a, i.props.className, vo[w], g === "width" && "collapse-horizontal")
|
|
1349
1349
|
})
|
|
1350
1350
|
});
|
|
1351
|
-
}),
|
|
1352
|
-
|
|
1353
|
-
const
|
|
1351
|
+
}), jn = Zr("h4");
|
|
1352
|
+
jn.displayName = "DivStyledAsH4";
|
|
1353
|
+
const kn = /* @__PURE__ */ W.forwardRef(({
|
|
1354
1354
|
className: n,
|
|
1355
1355
|
bsPrefix: e,
|
|
1356
|
-
as: t =
|
|
1356
|
+
as: t = jn,
|
|
1357
1357
|
...r
|
|
1358
1358
|
}, s) => (e = V(e, "alert-heading"), /* @__PURE__ */ o.jsx(t, {
|
|
1359
1359
|
ref: s,
|
|
1360
|
-
className:
|
|
1360
|
+
className: x(n, e),
|
|
1361
1361
|
...r
|
|
1362
1362
|
})));
|
|
1363
|
-
|
|
1364
|
-
function
|
|
1363
|
+
kn.displayName = "AlertHeading";
|
|
1364
|
+
function yo(n, e, t, r = !1) {
|
|
1365
1365
|
const s = me(t);
|
|
1366
|
-
|
|
1366
|
+
D(() => {
|
|
1367
1367
|
const a = typeof n == "function" ? n() : n;
|
|
1368
1368
|
return a.addEventListener(e, s, r), () => a.removeEventListener(e, s, r);
|
|
1369
1369
|
}, [n]);
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1372
|
-
function
|
|
1371
|
+
const bo = ["as", "disabled"];
|
|
1372
|
+
function _o(n, e) {
|
|
1373
1373
|
if (n == null)
|
|
1374
1374
|
return {};
|
|
1375
1375
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1377,7 +1377,7 @@ function bo(n, e) {
|
|
|
1377
1377
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1378
1378
|
return t;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function jo(n) {
|
|
1381
1381
|
return !n || n.trim() === "#";
|
|
1382
1382
|
}
|
|
1383
1383
|
function gt({
|
|
@@ -1401,7 +1401,7 @@ function gt({
|
|
|
1401
1401
|
disabled: e
|
|
1402
1402
|
}, u];
|
|
1403
1403
|
const d = (p) => {
|
|
1404
|
-
if ((e || n === "a" &&
|
|
1404
|
+
if ((e || n === "a" && jo(t)) && p.preventDefault(), e) {
|
|
1405
1405
|
p.stopPropagation();
|
|
1406
1406
|
return;
|
|
1407
1407
|
}
|
|
@@ -1423,11 +1423,11 @@ function gt({
|
|
|
1423
1423
|
onKeyDown: h
|
|
1424
1424
|
}, u];
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1426
|
+
const Nn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1427
1427
|
let {
|
|
1428
1428
|
as: t,
|
|
1429
1429
|
disabled: r
|
|
1430
|
-
} = n, s =
|
|
1430
|
+
} = n, s = _o(n, bo);
|
|
1431
1431
|
const [a, {
|
|
1432
1432
|
tagName: i
|
|
1433
1433
|
}] = gt(Object.assign({
|
|
@@ -1438,9 +1438,9 @@ const jn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
1438
1438
|
ref: e
|
|
1439
1439
|
}));
|
|
1440
1440
|
});
|
|
1441
|
-
|
|
1442
|
-
const
|
|
1443
|
-
function
|
|
1441
|
+
Nn.displayName = "Button";
|
|
1442
|
+
const ko = ["onKeyDown"];
|
|
1443
|
+
function No(n, e) {
|
|
1444
1444
|
if (n == null)
|
|
1445
1445
|
return {};
|
|
1446
1446
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1448,19 +1448,19 @@ function ko(n, e) {
|
|
|
1448
1448
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1449
1449
|
return t;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Co(n) {
|
|
1452
1452
|
return !n || n.trim() === "#";
|
|
1453
1453
|
}
|
|
1454
1454
|
const xt = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1455
1455
|
let {
|
|
1456
1456
|
onKeyDown: t
|
|
1457
|
-
} = n, r =
|
|
1457
|
+
} = n, r = No(n, ko);
|
|
1458
1458
|
const [s] = gt(Object.assign({
|
|
1459
1459
|
tagName: "a"
|
|
1460
1460
|
}, r)), a = me((i) => {
|
|
1461
1461
|
s.onKeyDown(i), t == null || t(i);
|
|
1462
1462
|
});
|
|
1463
|
-
return
|
|
1463
|
+
return Co(r.href) || r.role === "button" ? /* @__PURE__ */ o.jsx("a", Object.assign({
|
|
1464
1464
|
ref: e
|
|
1465
1465
|
}, r, s, {
|
|
1466
1466
|
onKeyDown: a
|
|
@@ -1471,18 +1471,18 @@ const xt = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
1471
1471
|
}));
|
|
1472
1472
|
});
|
|
1473
1473
|
xt.displayName = "Anchor";
|
|
1474
|
-
const
|
|
1474
|
+
const Cn = /* @__PURE__ */ W.forwardRef(({
|
|
1475
1475
|
className: n,
|
|
1476
1476
|
bsPrefix: e,
|
|
1477
1477
|
as: t = xt,
|
|
1478
1478
|
...r
|
|
1479
1479
|
}, s) => (e = V(e, "alert-link"), /* @__PURE__ */ o.jsx(t, {
|
|
1480
1480
|
ref: s,
|
|
1481
|
-
className:
|
|
1481
|
+
className: x(n, e),
|
|
1482
1482
|
...r
|
|
1483
1483
|
})));
|
|
1484
|
-
|
|
1485
|
-
const
|
|
1484
|
+
Cn.displayName = "AlertLink";
|
|
1485
|
+
const In = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1486
1486
|
const {
|
|
1487
1487
|
bsPrefix: t,
|
|
1488
1488
|
show: r = !0,
|
|
@@ -1495,34 +1495,34 @@ const Nn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
1495
1495
|
dismissible: d,
|
|
1496
1496
|
transition: h = Nt,
|
|
1497
1497
|
...p
|
|
1498
|
-
} =
|
|
1498
|
+
} = Jt(n, {
|
|
1499
1499
|
show: "onClose"
|
|
1500
|
-
}),
|
|
1500
|
+
}), f = V(t, "alert"), v = me((_) => {
|
|
1501
1501
|
u && u(!1, _);
|
|
1502
|
-
}),
|
|
1502
|
+
}), b = h === !0 ? Nt : h, g = /* @__PURE__ */ o.jsxs("div", {
|
|
1503
1503
|
role: "alert",
|
|
1504
|
-
...
|
|
1504
|
+
...b ? void 0 : p,
|
|
1505
1505
|
ref: e,
|
|
1506
|
-
className:
|
|
1507
|
-
children: [d && /* @__PURE__ */ o.jsx(
|
|
1508
|
-
onClick:
|
|
1506
|
+
className: x(i, f, c && `${f}-${c}`, d && `${f}-dismissible`),
|
|
1507
|
+
children: [d && /* @__PURE__ */ o.jsx(es, {
|
|
1508
|
+
onClick: v,
|
|
1509
1509
|
"aria-label": s,
|
|
1510
1510
|
variant: a
|
|
1511
1511
|
}), l]
|
|
1512
1512
|
});
|
|
1513
|
-
return
|
|
1513
|
+
return b ? /* @__PURE__ */ o.jsx(b, {
|
|
1514
1514
|
unmountOnExit: !0,
|
|
1515
1515
|
...p,
|
|
1516
1516
|
ref: void 0,
|
|
1517
1517
|
in: r,
|
|
1518
|
-
children:
|
|
1519
|
-
}) : r ?
|
|
1518
|
+
children: g
|
|
1519
|
+
}) : r ? g : null;
|
|
1520
1520
|
});
|
|
1521
|
-
|
|
1522
|
-
const
|
|
1523
|
-
Link:
|
|
1524
|
-
Heading:
|
|
1525
|
-
}),
|
|
1521
|
+
In.displayName = "Alert";
|
|
1522
|
+
const Io = Object.assign(In, {
|
|
1523
|
+
Link: Cn,
|
|
1524
|
+
Heading: kn
|
|
1525
|
+
}), $n = /* @__PURE__ */ W.forwardRef(({
|
|
1526
1526
|
as: n,
|
|
1527
1527
|
bsPrefix: e,
|
|
1528
1528
|
variant: t = "primary",
|
|
@@ -1544,21 +1544,21 @@ const Co = Object.assign(Nn, {
|
|
|
1544
1544
|
...l,
|
|
1545
1545
|
ref: c,
|
|
1546
1546
|
disabled: a,
|
|
1547
|
-
className:
|
|
1547
|
+
className: x(i, u, s && "active", t && `${u}-${t}`, r && `${u}-${r}`, l.href && a && "disabled")
|
|
1548
1548
|
});
|
|
1549
1549
|
});
|
|
1550
|
-
|
|
1551
|
-
function
|
|
1550
|
+
$n.displayName = "Button";
|
|
1551
|
+
function $o(n, e) {
|
|
1552
1552
|
return W.Children.toArray(n).some((t) => /* @__PURE__ */ W.isValidElement(t) && t.type === e);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function So({
|
|
1555
1555
|
as: n,
|
|
1556
1556
|
bsPrefix: e,
|
|
1557
1557
|
className: t,
|
|
1558
1558
|
...r
|
|
1559
1559
|
}) {
|
|
1560
1560
|
e = V(e, "col");
|
|
1561
|
-
const s =
|
|
1561
|
+
const s = jr(), a = kr(), i = [], l = [];
|
|
1562
1562
|
return s.forEach((c) => {
|
|
1563
1563
|
const u = r[c];
|
|
1564
1564
|
delete r[c];
|
|
@@ -1568,18 +1568,18 @@ function $o({
|
|
|
1568
1568
|
offset: h,
|
|
1569
1569
|
order: p
|
|
1570
1570
|
} = u : d = u;
|
|
1571
|
-
const
|
|
1572
|
-
d && i.push(d === !0 ? `${e}${
|
|
1571
|
+
const f = c !== a ? `-${c}` : "";
|
|
1572
|
+
d && i.push(d === !0 ? `${e}${f}` : `${e}${f}-${d}`), p != null && l.push(`order${f}-${p}`), h != null && l.push(`offset${f}-${h}`);
|
|
1573
1573
|
}), [{
|
|
1574
1574
|
...r,
|
|
1575
|
-
className:
|
|
1575
|
+
className: x(t, ...i, ...l)
|
|
1576
1576
|
}, {
|
|
1577
1577
|
as: n,
|
|
1578
1578
|
bsPrefix: e,
|
|
1579
1579
|
spans: i
|
|
1580
1580
|
}];
|
|
1581
1581
|
}
|
|
1582
|
-
const
|
|
1582
|
+
const Sn = /* @__PURE__ */ W.forwardRef(
|
|
1583
1583
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1584
1584
|
(n, e) => {
|
|
1585
1585
|
const [{
|
|
@@ -1589,29 +1589,29 @@ const In = /* @__PURE__ */ W.forwardRef(
|
|
|
1589
1589
|
as: s = "div",
|
|
1590
1590
|
bsPrefix: a,
|
|
1591
1591
|
spans: i
|
|
1592
|
-
}] =
|
|
1592
|
+
}] = So(n);
|
|
1593
1593
|
return /* @__PURE__ */ o.jsx(s, {
|
|
1594
1594
|
...r,
|
|
1595
1595
|
ref: e,
|
|
1596
|
-
className:
|
|
1596
|
+
className: x(t, !i.length && a)
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
);
|
|
1600
|
-
|
|
1601
|
-
function
|
|
1602
|
-
const r = q(n !== void 0), [s, a] =
|
|
1600
|
+
Sn.displayName = "Col";
|
|
1601
|
+
function To(n, e, t) {
|
|
1602
|
+
const r = q(n !== void 0), [s, a] = O(e), i = n !== void 0, l = r.current;
|
|
1603
1603
|
return r.current = i, !i && l && s !== e && a(e), [i ? n : s, S((...c) => {
|
|
1604
1604
|
const [u, ...d] = c;
|
|
1605
1605
|
let h = t == null ? void 0 : t(u, ...d);
|
|
1606
1606
|
return a(u), h;
|
|
1607
1607
|
}, [t])];
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
const [, n] =
|
|
1609
|
+
function Eo() {
|
|
1610
|
+
const [, n] = ln((e) => !e, !1);
|
|
1611
1611
|
return n;
|
|
1612
1612
|
}
|
|
1613
|
-
const ze = /* @__PURE__ */ W.createContext(null),
|
|
1614
|
-
function
|
|
1613
|
+
const ze = /* @__PURE__ */ W.createContext(null), Do = ["children", "usePopper"];
|
|
1614
|
+
function Oo(n, e) {
|
|
1615
1615
|
if (n == null)
|
|
1616
1616
|
return {};
|
|
1617
1617
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1619,10 +1619,10 @@ function Do(n, e) {
|
|
|
1619
1619
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1620
1620
|
return t;
|
|
1621
1621
|
}
|
|
1622
|
-
const
|
|
1622
|
+
const Po = () => {
|
|
1623
1623
|
};
|
|
1624
|
-
function
|
|
1625
|
-
const e =
|
|
1624
|
+
function Tn(n = {}) {
|
|
1625
|
+
const e = L(ze), [t, r] = Nr(), s = q(!1), {
|
|
1626
1626
|
flip: a,
|
|
1627
1627
|
offset: i,
|
|
1628
1628
|
rootCloseEvent: l,
|
|
@@ -1631,32 +1631,32 @@ function $n(n = {}) {
|
|
|
1631
1631
|
popperConfig: d = {},
|
|
1632
1632
|
enableEventListeners: h = !0,
|
|
1633
1633
|
usePopper: p = !!e
|
|
1634
|
-
} = n,
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
e == null || e.toggle(!1,
|
|
1634
|
+
} = n, f = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
|
|
1635
|
+
f && !s.current && (s.current = !0);
|
|
1636
|
+
const v = (w) => {
|
|
1637
|
+
e == null || e.toggle(!1, w);
|
|
1638
1638
|
}, {
|
|
1639
|
-
placement:
|
|
1640
|
-
setMenu:
|
|
1639
|
+
placement: b,
|
|
1640
|
+
setMenu: g,
|
|
1641
1641
|
menuElement: _,
|
|
1642
1642
|
toggleElement: k
|
|
1643
|
-
} = e || {}, m =
|
|
1644
|
-
placement: u ||
|
|
1643
|
+
} = e || {}, m = Cr(k, _, Ir({
|
|
1644
|
+
placement: u || b || "bottom-start",
|
|
1645
1645
|
enabled: p,
|
|
1646
|
-
enableEvents: h ??
|
|
1646
|
+
enableEvents: h ?? f,
|
|
1647
1647
|
offset: i,
|
|
1648
1648
|
flip: a,
|
|
1649
1649
|
fixed: c,
|
|
1650
1650
|
arrowElement: t,
|
|
1651
1651
|
popperConfig: d
|
|
1652
1652
|
})), N = Object.assign({
|
|
1653
|
-
ref:
|
|
1653
|
+
ref: g || Po,
|
|
1654
1654
|
"aria-labelledby": k == null ? void 0 : k.id
|
|
1655
1655
|
}, m.attributes.popper, {
|
|
1656
1656
|
style: m.styles.popper
|
|
1657
1657
|
}), j = {
|
|
1658
|
-
show:
|
|
1659
|
-
placement:
|
|
1658
|
+
show: f,
|
|
1659
|
+
placement: b,
|
|
1660
1660
|
hasShown: s.current,
|
|
1661
1661
|
toggle: e == null ? void 0 : e.toggle,
|
|
1662
1662
|
popper: p ? m : null,
|
|
@@ -1666,31 +1666,31 @@ function $n(n = {}) {
|
|
|
1666
1666
|
style: m.styles.arrow
|
|
1667
1667
|
}) : {}
|
|
1668
1668
|
};
|
|
1669
|
-
return
|
|
1669
|
+
return $r(_, v, {
|
|
1670
1670
|
clickTrigger: l,
|
|
1671
|
-
disabled: !
|
|
1671
|
+
disabled: !f
|
|
1672
1672
|
}), [N, j];
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function En(n) {
|
|
1675
1675
|
let {
|
|
1676
1676
|
children: e,
|
|
1677
1677
|
usePopper: t = !0
|
|
1678
|
-
} = n, r =
|
|
1679
|
-
const [s, a] =
|
|
1678
|
+
} = n, r = Oo(n, Do);
|
|
1679
|
+
const [s, a] = Tn(Object.assign({}, r, {
|
|
1680
1680
|
usePopper: t
|
|
1681
1681
|
}));
|
|
1682
1682
|
return /* @__PURE__ */ o.jsx(o.Fragment, {
|
|
1683
1683
|
children: e(s, a)
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
1686
|
-
|
|
1686
|
+
En.displayName = "DropdownMenu";
|
|
1687
1687
|
const He = {
|
|
1688
1688
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1689
1689
|
current: 0
|
|
1690
|
-
},
|
|
1690
|
+
}, Dn = /* @__PURE__ */ ne.createContext(He), Ao = /* @__PURE__ */ ne.createContext(!1);
|
|
1691
1691
|
let Mo = !!(typeof window < "u" && window.document && window.document.createElement), et = /* @__PURE__ */ new WeakMap();
|
|
1692
|
-
function
|
|
1693
|
-
let e =
|
|
1692
|
+
function Fo(n = !1) {
|
|
1693
|
+
let e = L(Dn), t = q(null);
|
|
1694
1694
|
if (t.current === null && !n) {
|
|
1695
1695
|
var r, s;
|
|
1696
1696
|
let a = (s = ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || s === void 0 || (r = s.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
@@ -1705,67 +1705,67 @@ function Ao(n = !1) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
return t.current;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1709
|
-
let e =
|
|
1708
|
+
function Wo(n) {
|
|
1709
|
+
let e = L(Dn);
|
|
1710
1710
|
e === He && !Mo && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1711
|
-
let t =
|
|
1711
|
+
let t = Fo(!!n), r = e === He && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1712
1712
|
return n || `${r}-${t}`;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1715
|
-
let e = ne.useId(), [t] =
|
|
1714
|
+
function Ro(n) {
|
|
1715
|
+
let e = ne.useId(), [t] = O(Bo()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${He.prefix}`;
|
|
1716
1716
|
return n || `${r}-${e}`;
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const Lo = typeof ne.useId == "function" ? Ro : Wo;
|
|
1719
1719
|
function Yo() {
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function qo() {
|
|
1723
1723
|
return !0;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Ho(n) {
|
|
1726
1726
|
return () => {
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1730
|
-
return typeof ne.useSyncExternalStore == "function" ? ne.useSyncExternalStore(
|
|
1729
|
+
function Bo() {
|
|
1730
|
+
return typeof ne.useSyncExternalStore == "function" ? ne.useSyncExternalStore(Ho, Yo, qo) : L(Ao);
|
|
1731
1731
|
}
|
|
1732
|
-
const
|
|
1732
|
+
const On = (n) => {
|
|
1733
1733
|
var e;
|
|
1734
1734
|
return ((e = n.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
1735
|
-
},
|
|
1735
|
+
}, Wt = () => {
|
|
1736
1736
|
};
|
|
1737
|
-
function
|
|
1738
|
-
const n =
|
|
1737
|
+
function Pn() {
|
|
1738
|
+
const n = Lo(), {
|
|
1739
1739
|
show: e = !1,
|
|
1740
|
-
toggle: t =
|
|
1740
|
+
toggle: t = Wt,
|
|
1741
1741
|
setToggle: r,
|
|
1742
1742
|
menuElement: s
|
|
1743
|
-
} =
|
|
1743
|
+
} = L(ze) || {}, a = S((l) => {
|
|
1744
1744
|
t(!e, l);
|
|
1745
1745
|
}, [e, t]), i = {
|
|
1746
1746
|
id: n,
|
|
1747
|
-
ref: r ||
|
|
1747
|
+
ref: r || Wt,
|
|
1748
1748
|
onClick: a,
|
|
1749
1749
|
"aria-expanded": !!e
|
|
1750
1750
|
};
|
|
1751
|
-
return s &&
|
|
1751
|
+
return s && On(s) && (i["aria-haspopup"] = !0), [i, {
|
|
1752
1752
|
show: e,
|
|
1753
1753
|
toggle: t
|
|
1754
1754
|
}];
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function An({
|
|
1757
1757
|
children: n
|
|
1758
1758
|
}) {
|
|
1759
|
-
const [e, t] =
|
|
1759
|
+
const [e, t] = Pn();
|
|
1760
1760
|
return /* @__PURE__ */ o.jsx(o.Fragment, {
|
|
1761
1761
|
children: n(e, t)
|
|
1762
1762
|
});
|
|
1763
1763
|
}
|
|
1764
|
-
|
|
1765
|
-
const at = /* @__PURE__ */ W.createContext(null),
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
function
|
|
1764
|
+
An.displayName = "DropdownToggle";
|
|
1765
|
+
const at = /* @__PURE__ */ W.createContext(null), Rt = (n, e = null) => n != null ? String(n) : e || null, Mn = /* @__PURE__ */ W.createContext(null);
|
|
1766
|
+
Mn.displayName = "NavContext";
|
|
1767
|
+
const Vo = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1768
|
+
function Go(n, e) {
|
|
1769
1769
|
if (n == null)
|
|
1770
1770
|
return {};
|
|
1771
1771
|
var t = {}, r = Object.keys(n), s, a;
|
|
@@ -1773,36 +1773,36 @@ function Vo(n, e) {
|
|
|
1773
1773
|
s = r[a], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
|
|
1774
1774
|
return t;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function Fn({
|
|
1777
1777
|
key: n,
|
|
1778
1778
|
href: e,
|
|
1779
1779
|
active: t,
|
|
1780
1780
|
disabled: r,
|
|
1781
1781
|
onClick: s
|
|
1782
1782
|
}) {
|
|
1783
|
-
const a =
|
|
1783
|
+
const a = L(at), i = L(Mn), {
|
|
1784
1784
|
activeKey: l
|
|
1785
|
-
} = i || {}, c =
|
|
1785
|
+
} = i || {}, c = Rt(n, e), u = t == null && n != null ? Rt(l) === c : t;
|
|
1786
1786
|
return [{
|
|
1787
1787
|
onClick: me((h) => {
|
|
1788
1788
|
r || (s == null || s(h), a && !h.isPropagationStopped() && a(c, h));
|
|
1789
1789
|
}),
|
|
1790
1790
|
"aria-disabled": r || void 0,
|
|
1791
1791
|
"aria-selected": u,
|
|
1792
|
-
[
|
|
1792
|
+
[un("dropdown-item")]: ""
|
|
1793
1793
|
}, {
|
|
1794
1794
|
isActive: u
|
|
1795
1795
|
}];
|
|
1796
1796
|
}
|
|
1797
|
-
const
|
|
1797
|
+
const Wn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
1798
1798
|
let {
|
|
1799
1799
|
eventKey: t,
|
|
1800
1800
|
disabled: r,
|
|
1801
1801
|
onClick: s,
|
|
1802
1802
|
active: a,
|
|
1803
|
-
as: i =
|
|
1804
|
-
} = n, l =
|
|
1805
|
-
const [c] =
|
|
1803
|
+
as: i = Nn
|
|
1804
|
+
} = n, l = Go(n, Vo);
|
|
1805
|
+
const [c] = Fn({
|
|
1806
1806
|
key: t,
|
|
1807
1807
|
href: l.href,
|
|
1808
1808
|
disabled: r,
|
|
@@ -1813,9 +1813,9 @@ const An = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
1813
1813
|
ref: e
|
|
1814
1814
|
}, c));
|
|
1815
1815
|
});
|
|
1816
|
-
|
|
1817
|
-
function
|
|
1818
|
-
const n =
|
|
1816
|
+
Wn.displayName = "DropdownItem";
|
|
1817
|
+
function Lt() {
|
|
1818
|
+
const n = Eo(), e = q(null), t = S((r) => {
|
|
1819
1819
|
e.current = r, n();
|
|
1820
1820
|
}, [n]);
|
|
1821
1821
|
return [e, t];
|
|
@@ -1825,41 +1825,41 @@ function De({
|
|
|
1825
1825
|
show: e,
|
|
1826
1826
|
onSelect: t,
|
|
1827
1827
|
onToggle: r,
|
|
1828
|
-
itemSelector: s = `* [${
|
|
1828
|
+
itemSelector: s = `* [${un("dropdown-item")}]`,
|
|
1829
1829
|
focusFirstItemOnShow: a,
|
|
1830
1830
|
placement: i = "bottom-start",
|
|
1831
1831
|
children: l
|
|
1832
1832
|
}) {
|
|
1833
|
-
const c =
|
|
1833
|
+
const c = Sr(), [u, d] = To(e, n, r), [h, p] = Lt(), f = h.current, [v, b] = Lt(), g = v.current, _ = ts(u), k = q(null), m = q(!1), N = L(at), j = S((y, C, F = C == null ? void 0 : C.type) => {
|
|
1834
1834
|
d(y, {
|
|
1835
1835
|
originalEvent: C,
|
|
1836
1836
|
source: F
|
|
1837
1837
|
});
|
|
1838
|
-
}, [d]),
|
|
1838
|
+
}, [d]), w = me((y, C) => {
|
|
1839
1839
|
t == null || t(y, C), j(!1, C, "select"), C.isPropagationStopped() || N == null || N(y, C);
|
|
1840
1840
|
}), $ = K(() => ({
|
|
1841
1841
|
toggle: j,
|
|
1842
1842
|
placement: i,
|
|
1843
1843
|
show: u,
|
|
1844
|
-
menuElement:
|
|
1845
|
-
toggleElement:
|
|
1844
|
+
menuElement: f,
|
|
1845
|
+
toggleElement: g,
|
|
1846
1846
|
setMenu: p,
|
|
1847
|
-
setToggle:
|
|
1848
|
-
}), [j, i, u,
|
|
1849
|
-
|
|
1850
|
-
const
|
|
1851
|
-
|
|
1847
|
+
setToggle: b
|
|
1848
|
+
}), [j, i, u, f, g, p, b]);
|
|
1849
|
+
f && _ && !u && (m.current = f.contains(f.ownerDocument.activeElement));
|
|
1850
|
+
const P = me(() => {
|
|
1851
|
+
g && g.focus && g.focus();
|
|
1852
1852
|
}), I = me(() => {
|
|
1853
1853
|
const y = k.current;
|
|
1854
1854
|
let C = a;
|
|
1855
|
-
if (C == null && (C = h.current &&
|
|
1855
|
+
if (C == null && (C = h.current && On(h.current) ? "keyboard" : !1), C === !1 || C === "keyboard" && !/^key.+$/.test(y))
|
|
1856
1856
|
return;
|
|
1857
1857
|
const F = $t(h.current, s)[0];
|
|
1858
1858
|
F && F.focus && F.focus();
|
|
1859
1859
|
});
|
|
1860
|
-
|
|
1861
|
-
u ? I() : m.current && (m.current = !1,
|
|
1862
|
-
}, [u, m,
|
|
1860
|
+
D(() => {
|
|
1861
|
+
u ? I() : m.current && (m.current = !1, P());
|
|
1862
|
+
}, [u, m, P, I]), D(() => {
|
|
1863
1863
|
k.current = null;
|
|
1864
1864
|
});
|
|
1865
1865
|
const T = (y, C) => {
|
|
@@ -1869,12 +1869,12 @@ function De({
|
|
|
1869
1869
|
let R = F.indexOf(y) + C;
|
|
1870
1870
|
return R = Math.max(0, Math.min(R, F.length)), F[R];
|
|
1871
1871
|
};
|
|
1872
|
-
return
|
|
1872
|
+
return yo(S(() => c.document, [c]), "keydown", (y) => {
|
|
1873
1873
|
var C, F;
|
|
1874
1874
|
const {
|
|
1875
1875
|
key: R
|
|
1876
|
-
} = y, H = y.target, Z = (C = h.current) == null ? void 0 : C.contains(H),
|
|
1877
|
-
if (/input|textarea/i.test(H.tagName) && (R === " " || R !== "Escape" && Z || R === "Escape" && H.type === "search") || !Z && !
|
|
1876
|
+
} = y, H = y.target, Z = (C = h.current) == null ? void 0 : C.contains(H), M = (F = v.current) == null ? void 0 : F.contains(H);
|
|
1877
|
+
if (/input|textarea/i.test(H.tagName) && (R === " " || R !== "Escape" && Z || R === "Escape" && H.type === "search") || !Z && !M || R === "Tab" && (!h.current || !u))
|
|
1878
1878
|
return;
|
|
1879
1879
|
k.current = y.type;
|
|
1880
1880
|
const ee = {
|
|
@@ -1896,7 +1896,7 @@ function De({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
return;
|
|
1898
1898
|
case "Tab":
|
|
1899
|
-
|
|
1899
|
+
Tr(H.ownerDocument, "keyup", (U) => {
|
|
1900
1900
|
var E;
|
|
1901
1901
|
(U.key === "Tab" && !U.target || !((E = h.current) != null && E.contains(U.target))) && d(!1, ee);
|
|
1902
1902
|
}, {
|
|
@@ -1908,7 +1908,7 @@ function De({
|
|
|
1908
1908
|
break;
|
|
1909
1909
|
}
|
|
1910
1910
|
}), /* @__PURE__ */ o.jsx(at.Provider, {
|
|
1911
|
-
value:
|
|
1911
|
+
value: w,
|
|
1912
1912
|
children: /* @__PURE__ */ o.jsx(ze.Provider, {
|
|
1913
1913
|
value: $,
|
|
1914
1914
|
children: l
|
|
@@ -1916,12 +1916,12 @@ function De({
|
|
|
1916
1916
|
});
|
|
1917
1917
|
}
|
|
1918
1918
|
De.displayName = "Dropdown";
|
|
1919
|
-
De.Menu =
|
|
1920
|
-
De.Toggle =
|
|
1921
|
-
De.Item =
|
|
1919
|
+
De.Menu = En;
|
|
1920
|
+
De.Toggle = An;
|
|
1921
|
+
De.Item = Wn;
|
|
1922
1922
|
const wt = /* @__PURE__ */ W.createContext({});
|
|
1923
1923
|
wt.displayName = "DropdownContext";
|
|
1924
|
-
const
|
|
1924
|
+
const Rn = /* @__PURE__ */ W.forwardRef(({
|
|
1925
1925
|
className: n,
|
|
1926
1926
|
bsPrefix: e,
|
|
1927
1927
|
as: t = "hr",
|
|
@@ -1929,12 +1929,12 @@ const Fn = /* @__PURE__ */ W.forwardRef(({
|
|
|
1929
1929
|
...s
|
|
1930
1930
|
}, a) => (e = V(e, "dropdown-divider"), /* @__PURE__ */ o.jsx(t, {
|
|
1931
1931
|
ref: a,
|
|
1932
|
-
className:
|
|
1932
|
+
className: x(n, e),
|
|
1933
1933
|
role: r,
|
|
1934
1934
|
...s
|
|
1935
1935
|
})));
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1936
|
+
Rn.displayName = "DropdownDivider";
|
|
1937
|
+
const Ln = /* @__PURE__ */ W.forwardRef(({
|
|
1938
1938
|
className: n,
|
|
1939
1939
|
bsPrefix: e,
|
|
1940
1940
|
as: t = "div",
|
|
@@ -1942,12 +1942,12 @@ const Wn = /* @__PURE__ */ W.forwardRef(({
|
|
|
1942
1942
|
...s
|
|
1943
1943
|
}, a) => (e = V(e, "dropdown-header"), /* @__PURE__ */ o.jsx(t, {
|
|
1944
1944
|
ref: a,
|
|
1945
|
-
className:
|
|
1945
|
+
className: x(n, e),
|
|
1946
1946
|
role: r,
|
|
1947
1947
|
...s
|
|
1948
1948
|
})));
|
|
1949
|
-
|
|
1950
|
-
const
|
|
1949
|
+
Ln.displayName = "DropdownHeader";
|
|
1950
|
+
const Yn = /* @__PURE__ */ W.forwardRef(({
|
|
1951
1951
|
bsPrefix: n,
|
|
1952
1952
|
className: e,
|
|
1953
1953
|
eventKey: t,
|
|
@@ -1957,7 +1957,7 @@ const Rn = /* @__PURE__ */ W.forwardRef(({
|
|
|
1957
1957
|
as: i = xt,
|
|
1958
1958
|
...l
|
|
1959
1959
|
}, c) => {
|
|
1960
|
-
const u = V(n, "dropdown-item"), [d, h] =
|
|
1960
|
+
const u = V(n, "dropdown-item"), [d, h] = Fn({
|
|
1961
1961
|
key: t,
|
|
1962
1962
|
href: l.href,
|
|
1963
1963
|
disabled: r,
|
|
@@ -1968,39 +1968,39 @@ const Rn = /* @__PURE__ */ W.forwardRef(({
|
|
|
1968
1968
|
...l,
|
|
1969
1969
|
...d,
|
|
1970
1970
|
ref: c,
|
|
1971
|
-
className:
|
|
1971
|
+
className: x(e, u, h.isActive && "active", r && "disabled")
|
|
1972
1972
|
});
|
|
1973
1973
|
});
|
|
1974
|
-
|
|
1975
|
-
const
|
|
1974
|
+
Yn.displayName = "DropdownItem";
|
|
1975
|
+
const qn = /* @__PURE__ */ W.forwardRef(({
|
|
1976
1976
|
className: n,
|
|
1977
1977
|
bsPrefix: e,
|
|
1978
1978
|
as: t = "span",
|
|
1979
1979
|
...r
|
|
1980
1980
|
}, s) => (e = V(e, "dropdown-item-text"), /* @__PURE__ */ o.jsx(t, {
|
|
1981
1981
|
ref: s,
|
|
1982
|
-
className:
|
|
1982
|
+
className: x(n, e),
|
|
1983
1983
|
...r
|
|
1984
1984
|
})));
|
|
1985
|
-
|
|
1985
|
+
qn.displayName = "DropdownItemText";
|
|
1986
1986
|
const Ue = /* @__PURE__ */ W.createContext(null);
|
|
1987
1987
|
Ue.displayName = "InputGroupContext";
|
|
1988
|
-
const
|
|
1989
|
-
|
|
1990
|
-
function
|
|
1988
|
+
const Hn = /* @__PURE__ */ W.createContext(null);
|
|
1989
|
+
Hn.displayName = "NavbarContext";
|
|
1990
|
+
function Bn(n, e) {
|
|
1991
1991
|
if (process.env.NODE_ENV === "production")
|
|
1992
1992
|
return n;
|
|
1993
1993
|
const t = S((r) => {
|
|
1994
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1994
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Ft(!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`) : Ft(!1));
|
|
1995
1995
|
}, [e]);
|
|
1996
1996
|
return ut(t, n);
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function Vn(n, e, t) {
|
|
1999
1999
|
const r = t ? "top-end" : "top-start", s = 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";
|
|
2000
2000
|
let h = n ? i : a;
|
|
2001
2001
|
return e === "up" ? h = n ? s : r : e === "end" ? h = n ? d : u : e === "start" ? h = n ? c : l : e === "down-centered" ? h = "bottom" : e === "up-centered" && (h = "top"), h;
|
|
2002
2002
|
}
|
|
2003
|
-
const
|
|
2003
|
+
const Gn = /* @__PURE__ */ W.forwardRef(({
|
|
2004
2004
|
bsPrefix: n,
|
|
2005
2005
|
className: e,
|
|
2006
2006
|
align: t,
|
|
@@ -2015,41 +2015,41 @@ const Bn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2015
2015
|
...d
|
|
2016
2016
|
}, h) => {
|
|
2017
2017
|
let p = !1;
|
|
2018
|
-
const
|
|
2019
|
-
align:
|
|
2020
|
-
drop:
|
|
2018
|
+
const f = L(Hn), v = V(n, "dropdown-menu"), {
|
|
2019
|
+
align: b,
|
|
2020
|
+
drop: g,
|
|
2021
2021
|
isRTL: _
|
|
2022
|
-
} =
|
|
2023
|
-
t = t ||
|
|
2024
|
-
const k =
|
|
2022
|
+
} = L(wt);
|
|
2023
|
+
t = t || b;
|
|
2024
|
+
const k = L(Ue), m = [];
|
|
2025
2025
|
if (t)
|
|
2026
2026
|
if (typeof t == "object") {
|
|
2027
2027
|
const y = Object.keys(t);
|
|
2028
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2028
|
+
if (process.env.NODE_ENV !== "production" && Zt(y.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), y.length) {
|
|
2029
2029
|
const C = y[0], F = t[C];
|
|
2030
|
-
p = F === "start", m.push(`${
|
|
2030
|
+
p = F === "start", m.push(`${v}-${C}-${F}`);
|
|
2031
2031
|
}
|
|
2032
2032
|
} else
|
|
2033
2033
|
t === "end" && (p = !0);
|
|
2034
|
-
const N =
|
|
2035
|
-
hasShown:
|
|
2034
|
+
const N = Vn(p, g, _), [j, {
|
|
2035
|
+
hasShown: w,
|
|
2036
2036
|
popper: $,
|
|
2037
|
-
show:
|
|
2037
|
+
show: P,
|
|
2038
2038
|
toggle: I
|
|
2039
|
-
}] =
|
|
2039
|
+
}] = Tn({
|
|
2040
2040
|
flip: s,
|
|
2041
2041
|
rootCloseEvent: r,
|
|
2042
2042
|
show: a,
|
|
2043
|
-
usePopper: !
|
|
2043
|
+
usePopper: !f && m.length === 0,
|
|
2044
2044
|
offset: [0, 2],
|
|
2045
2045
|
popperConfig: c,
|
|
2046
2046
|
placement: N
|
|
2047
2047
|
});
|
|
2048
|
-
if (j.ref = ut(
|
|
2049
|
-
|
|
2050
|
-
}, [
|
|
2048
|
+
if (j.ref = ut(Bn(h, "DropdownMenu"), j.ref), Er(() => {
|
|
2049
|
+
P && ($ == null || $.update());
|
|
2050
|
+
}, [P]), !w && !i && !k)
|
|
2051
2051
|
return null;
|
|
2052
|
-
typeof l != "string" && (j.show =
|
|
2052
|
+
typeof l != "string" && (j.show = P, j.close = () => I == null ? void 0 : I(!1), j.align = t);
|
|
2053
2053
|
let T = d.style;
|
|
2054
2054
|
return $ != null && $.placement && (T = {
|
|
2055
2055
|
...d.style,
|
|
@@ -2058,33 +2058,33 @@ const Bn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2058
2058
|
...d,
|
|
2059
2059
|
...j,
|
|
2060
2060
|
style: T,
|
|
2061
|
-
...(m.length ||
|
|
2061
|
+
...(m.length || f) && {
|
|
2062
2062
|
"data-bs-popper": "static"
|
|
2063
2063
|
},
|
|
2064
|
-
className:
|
|
2064
|
+
className: x(e, v, P && "show", p && `${v}-end`, u && `${v}-${u}`, ...m)
|
|
2065
2065
|
});
|
|
2066
2066
|
});
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2067
|
+
Gn.displayName = "DropdownMenu";
|
|
2068
|
+
const zn = /* @__PURE__ */ W.forwardRef(({
|
|
2069
2069
|
bsPrefix: n,
|
|
2070
2070
|
split: e,
|
|
2071
2071
|
className: t,
|
|
2072
2072
|
childBsPrefix: r,
|
|
2073
2073
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2074
|
-
as: s =
|
|
2074
|
+
as: s = $n,
|
|
2075
2075
|
...a
|
|
2076
2076
|
}, i) => {
|
|
2077
|
-
const l = V(n, "dropdown-toggle"), c =
|
|
2077
|
+
const l = V(n, "dropdown-toggle"), c = L(ze);
|
|
2078
2078
|
r !== void 0 && (a.bsPrefix = r);
|
|
2079
|
-
const [u] =
|
|
2080
|
-
return u.ref = ut(u.ref,
|
|
2081
|
-
className:
|
|
2079
|
+
const [u] = Pn();
|
|
2080
|
+
return u.ref = ut(u.ref, Bn(i, "DropdownToggle")), /* @__PURE__ */ o.jsx(s, {
|
|
2081
|
+
className: x(t, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
2082
2082
|
...u,
|
|
2083
2083
|
...a
|
|
2084
2084
|
});
|
|
2085
2085
|
});
|
|
2086
|
-
|
|
2087
|
-
const
|
|
2086
|
+
zn.displayName = "DropdownToggle";
|
|
2087
|
+
const Un = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
2088
2088
|
const {
|
|
2089
2089
|
bsPrefix: t,
|
|
2090
2090
|
drop: r = "down",
|
|
@@ -2098,19 +2098,19 @@ const Gn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
2098
2098
|
as: d = "div",
|
|
2099
2099
|
navbar: h,
|
|
2100
2100
|
autoClose: p = !0,
|
|
2101
|
-
...
|
|
2102
|
-
} =
|
|
2101
|
+
...f
|
|
2102
|
+
} = Jt(n, {
|
|
2103
2103
|
show: "onToggle"
|
|
2104
|
-
}),
|
|
2104
|
+
}), v = L(Ue), b = V(t, "dropdown"), g = Dr(), _ = ($) => p === !1 ? $ === "click" : p === "inside" ? $ !== "rootClose" : p === "outside" ? $ !== "select" : !0, k = me(($, P) => {
|
|
2105
2105
|
var I, T;
|
|
2106
|
-
!((I =
|
|
2107
|
-
}), N =
|
|
2106
|
+
!((I = P.originalEvent) == null || (T = I.target) == null) && T.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), _(P.source) && (c == null || c($, P)));
|
|
2107
|
+
}), N = Vn(i === "end", r, g), j = K(() => ({
|
|
2108
2108
|
align: i,
|
|
2109
2109
|
drop: r,
|
|
2110
|
-
isRTL:
|
|
2111
|
-
}), [i, r,
|
|
2112
|
-
down:
|
|
2113
|
-
"down-centered": `${
|
|
2110
|
+
isRTL: g
|
|
2111
|
+
}), [i, r, g]), w = {
|
|
2112
|
+
down: b,
|
|
2113
|
+
"down-centered": `${b}-center`,
|
|
2114
2114
|
up: "dropup",
|
|
2115
2115
|
"up-centered": "dropup-center dropup",
|
|
2116
2116
|
end: "dropend",
|
|
@@ -2124,23 +2124,23 @@ const Gn = /* @__PURE__ */ W.forwardRef((n, e) => {
|
|
|
2124
2124
|
onSelect: l,
|
|
2125
2125
|
onToggle: k,
|
|
2126
2126
|
focusFirstItemOnShow: u,
|
|
2127
|
-
itemSelector: `.${
|
|
2128
|
-
children:
|
|
2129
|
-
...
|
|
2127
|
+
itemSelector: `.${b}-item:not(.disabled):not(:disabled)`,
|
|
2128
|
+
children: v ? f.children : /* @__PURE__ */ o.jsx(d, {
|
|
2129
|
+
...f,
|
|
2130
2130
|
ref: e,
|
|
2131
|
-
className:
|
|
2131
|
+
className: x(a, s && "show", w[r])
|
|
2132
2132
|
})
|
|
2133
2133
|
})
|
|
2134
2134
|
});
|
|
2135
2135
|
});
|
|
2136
|
-
|
|
2137
|
-
const Ee = Object.assign(
|
|
2138
|
-
Toggle:
|
|
2139
|
-
Menu:
|
|
2140
|
-
Item:
|
|
2141
|
-
ItemText:
|
|
2142
|
-
Divider:
|
|
2143
|
-
Header:
|
|
2136
|
+
Un.displayName = "Dropdown";
|
|
2137
|
+
const Ee = Object.assign(Un, {
|
|
2138
|
+
Toggle: zn,
|
|
2139
|
+
Menu: Gn,
|
|
2140
|
+
Item: Yn,
|
|
2141
|
+
ItemText: qn,
|
|
2142
|
+
Divider: Rn,
|
|
2143
|
+
Header: Ln
|
|
2144
2144
|
}), Oe = /* @__PURE__ */ W.forwardRef(({
|
|
2145
2145
|
id: n,
|
|
2146
2146
|
bsPrefix: e,
|
|
@@ -2154,13 +2154,13 @@ const Ee = Object.assign(Gn, {
|
|
|
2154
2154
|
}, c) => {
|
|
2155
2155
|
const {
|
|
2156
2156
|
controlId: u
|
|
2157
|
-
} =
|
|
2157
|
+
} = L(be);
|
|
2158
2158
|
return e = V(e, "form-check-input"), /* @__PURE__ */ o.jsx(i, {
|
|
2159
2159
|
...l,
|
|
2160
2160
|
ref: c,
|
|
2161
2161
|
type: r,
|
|
2162
2162
|
id: n || u,
|
|
2163
|
-
className:
|
|
2163
|
+
className: x(t, e, s && "is-valid", a && "is-invalid")
|
|
2164
2164
|
});
|
|
2165
2165
|
});
|
|
2166
2166
|
Oe.displayName = "FormCheckInput";
|
|
@@ -2172,16 +2172,16 @@ const Be = /* @__PURE__ */ W.forwardRef(({
|
|
|
2172
2172
|
}, s) => {
|
|
2173
2173
|
const {
|
|
2174
2174
|
controlId: a
|
|
2175
|
-
} =
|
|
2175
|
+
} = L(be);
|
|
2176
2176
|
return n = V(n, "form-check-label"), /* @__PURE__ */ o.jsx("label", {
|
|
2177
2177
|
...r,
|
|
2178
2178
|
ref: s,
|
|
2179
2179
|
htmlFor: t || a,
|
|
2180
|
-
className:
|
|
2180
|
+
className: x(e, n)
|
|
2181
2181
|
});
|
|
2182
2182
|
});
|
|
2183
2183
|
Be.displayName = "FormCheckLabel";
|
|
2184
|
-
const
|
|
2184
|
+
const Kn = /* @__PURE__ */ W.forwardRef(({
|
|
2185
2185
|
id: n,
|
|
2186
2186
|
bsPrefix: e,
|
|
2187
2187
|
bsSwitchPrefix: t,
|
|
@@ -2195,10 +2195,10 @@ const zn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2195
2195
|
feedbackType: d,
|
|
2196
2196
|
className: h,
|
|
2197
2197
|
style: p,
|
|
2198
|
-
title:
|
|
2199
|
-
type:
|
|
2200
|
-
label:
|
|
2201
|
-
children:
|
|
2198
|
+
title: f = "",
|
|
2199
|
+
type: v = "checkbox",
|
|
2200
|
+
label: b,
|
|
2201
|
+
children: g,
|
|
2202
2202
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2203
2203
|
as: _ = "input",
|
|
2204
2204
|
...k
|
|
@@ -2206,11 +2206,11 @@ const zn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2206
2206
|
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
2207
2207
|
const {
|
|
2208
2208
|
controlId: N
|
|
2209
|
-
} =
|
|
2209
|
+
} = L(be), j = K(() => ({
|
|
2210
2210
|
controlId: n || N
|
|
2211
|
-
}), [N, n]),
|
|
2211
|
+
}), [N, n]), w = !g && b != null && b !== !1 || $o(g, Be), $ = /* @__PURE__ */ o.jsx(Oe, {
|
|
2212
2212
|
...k,
|
|
2213
|
-
type:
|
|
2213
|
+
type: v === "switch" ? "checkbox" : v,
|
|
2214
2214
|
ref: m,
|
|
2215
2215
|
isValid: i,
|
|
2216
2216
|
isInvalid: l,
|
|
@@ -2221,12 +2221,12 @@ const zn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2221
2221
|
value: j,
|
|
2222
2222
|
children: /* @__PURE__ */ o.jsx("div", {
|
|
2223
2223
|
style: p,
|
|
2224
|
-
className:
|
|
2225
|
-
children:
|
|
2226
|
-
children: [$,
|
|
2227
|
-
title:
|
|
2228
|
-
children:
|
|
2229
|
-
}), u && /* @__PURE__ */ o.jsx(
|
|
2224
|
+
className: x(h, w && e, r && `${e}-inline`, s && `${e}-reverse`, v === "switch" && t),
|
|
2225
|
+
children: g || /* @__PURE__ */ o.jsxs(o.Fragment, {
|
|
2226
|
+
children: [$, w && /* @__PURE__ */ o.jsx(Be, {
|
|
2227
|
+
title: f,
|
|
2228
|
+
children: b
|
|
2229
|
+
}), u && /* @__PURE__ */ o.jsx(ns, {
|
|
2230
2230
|
type: d,
|
|
2231
2231
|
tooltip: c,
|
|
2232
2232
|
children: u
|
|
@@ -2235,22 +2235,22 @@ const zn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2235
2235
|
})
|
|
2236
2236
|
});
|
|
2237
2237
|
});
|
|
2238
|
-
|
|
2239
|
-
const Ve = Object.assign(
|
|
2238
|
+
Kn.displayName = "FormCheck";
|
|
2239
|
+
const Ve = Object.assign(Kn, {
|
|
2240
2240
|
Input: Oe,
|
|
2241
2241
|
Label: Be
|
|
2242
|
-
}),
|
|
2242
|
+
}), Qn = /* @__PURE__ */ W.forwardRef(({
|
|
2243
2243
|
className: n,
|
|
2244
2244
|
bsPrefix: e,
|
|
2245
2245
|
as: t = "div",
|
|
2246
2246
|
...r
|
|
2247
2247
|
}, s) => (e = V(e, "form-floating"), /* @__PURE__ */ o.jsx(t, {
|
|
2248
2248
|
ref: s,
|
|
2249
|
-
className:
|
|
2249
|
+
className: x(n, e),
|
|
2250
2250
|
...r
|
|
2251
2251
|
})));
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2252
|
+
Qn.displayName = "FormFloating";
|
|
2253
|
+
const Xn = /* @__PURE__ */ W.forwardRef(({
|
|
2254
2254
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2255
2255
|
as: n = "label",
|
|
2256
2256
|
bsPrefix: e,
|
|
@@ -2262,12 +2262,12 @@ const Kn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2262
2262
|
}, l) => {
|
|
2263
2263
|
const {
|
|
2264
2264
|
controlId: c
|
|
2265
|
-
} =
|
|
2265
|
+
} = L(be);
|
|
2266
2266
|
e = V(e, "form-label");
|
|
2267
2267
|
let u = "col-form-label";
|
|
2268
2268
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
2269
|
-
const d =
|
|
2270
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2269
|
+
const d = x(s, e, r && "visually-hidden", t && u);
|
|
2270
|
+
return process.env.NODE_ENV !== "production" && Zt(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, t ? /* @__PURE__ */ o.jsx(Sn, {
|
|
2271
2271
|
ref: l,
|
|
2272
2272
|
as: "label",
|
|
2273
2273
|
className: d,
|
|
@@ -2283,8 +2283,8 @@ const Kn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2283
2283
|
})
|
|
2284
2284
|
);
|
|
2285
2285
|
});
|
|
2286
|
-
|
|
2287
|
-
const
|
|
2286
|
+
Xn.displayName = "FormLabel";
|
|
2287
|
+
const Jn = /* @__PURE__ */ W.forwardRef(({
|
|
2288
2288
|
bsPrefix: n,
|
|
2289
2289
|
className: e,
|
|
2290
2290
|
id: t,
|
|
@@ -2292,17 +2292,17 @@ const Qn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2292
2292
|
}, s) => {
|
|
2293
2293
|
const {
|
|
2294
2294
|
controlId: a
|
|
2295
|
-
} =
|
|
2295
|
+
} = L(be);
|
|
2296
2296
|
return n = V(n, "form-range"), /* @__PURE__ */ o.jsx("input", {
|
|
2297
2297
|
...r,
|
|
2298
2298
|
type: "range",
|
|
2299
2299
|
ref: s,
|
|
2300
|
-
className:
|
|
2300
|
+
className: x(e, n),
|
|
2301
2301
|
id: t || a
|
|
2302
2302
|
});
|
|
2303
2303
|
});
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2304
|
+
Jn.displayName = "FormRange";
|
|
2305
|
+
const Zn = /* @__PURE__ */ W.forwardRef(({
|
|
2306
2306
|
bsPrefix: n,
|
|
2307
2307
|
size: e,
|
|
2308
2308
|
htmlSize: t,
|
|
@@ -2314,17 +2314,17 @@ const Xn = /* @__PURE__ */ W.forwardRef(({
|
|
|
2314
2314
|
}, c) => {
|
|
2315
2315
|
const {
|
|
2316
2316
|
controlId: u
|
|
2317
|
-
} =
|
|
2317
|
+
} = L(be);
|
|
2318
2318
|
return n = V(n, "form-select"), /* @__PURE__ */ o.jsx("select", {
|
|
2319
2319
|
...l,
|
|
2320
2320
|
size: t,
|
|
2321
2321
|
ref: c,
|
|
2322
|
-
className:
|
|
2322
|
+
className: x(r, n, e && `${n}-${e}`, s && "is-valid", a && "is-invalid"),
|
|
2323
2323
|
id: i || u
|
|
2324
2324
|
});
|
|
2325
2325
|
});
|
|
2326
|
-
|
|
2327
|
-
const
|
|
2326
|
+
Zn.displayName = "FormSelect";
|
|
2327
|
+
const er = /* @__PURE__ */ W.forwardRef(
|
|
2328
2328
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2329
2329
|
({
|
|
2330
2330
|
bsPrefix: n,
|
|
@@ -2335,20 +2335,20 @@ const Jn = /* @__PURE__ */ W.forwardRef(
|
|
|
2335
2335
|
}, a) => (n = V(n, "form-text"), /* @__PURE__ */ o.jsx(t, {
|
|
2336
2336
|
...s,
|
|
2337
2337
|
ref: a,
|
|
2338
|
-
className:
|
|
2338
|
+
className: x(e, n, r && "text-muted")
|
|
2339
2339
|
}))
|
|
2340
2340
|
);
|
|
2341
|
-
|
|
2342
|
-
const
|
|
2341
|
+
er.displayName = "FormText";
|
|
2342
|
+
const tr = /* @__PURE__ */ W.forwardRef((n, e) => /* @__PURE__ */ o.jsx(Ve, {
|
|
2343
2343
|
...n,
|
|
2344
2344
|
ref: e,
|
|
2345
2345
|
type: "switch"
|
|
2346
2346
|
}));
|
|
2347
|
-
|
|
2348
|
-
const
|
|
2347
|
+
tr.displayName = "Switch";
|
|
2348
|
+
const zo = Object.assign(tr, {
|
|
2349
2349
|
Input: Ve.Input,
|
|
2350
2350
|
Label: Ve.Label
|
|
2351
|
-
}),
|
|
2351
|
+
}), Uo = {
|
|
2352
2352
|
/**
|
|
2353
2353
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2354
2354
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2373,21 +2373,21 @@ const Go = Object.assign(Zn, {
|
|
|
2373
2373
|
}, s) => /* @__PURE__ */ o.jsx(t, {
|
|
2374
2374
|
...r,
|
|
2375
2375
|
ref: s,
|
|
2376
|
-
className:
|
|
2376
|
+
className: x(n, e && "was-validated")
|
|
2377
2377
|
}));
|
|
2378
2378
|
vt.displayName = "Form";
|
|
2379
|
-
vt.propTypes =
|
|
2379
|
+
vt.propTypes = Uo;
|
|
2380
2380
|
const Q = Object.assign(vt, {
|
|
2381
|
-
Group:
|
|
2382
|
-
Control:
|
|
2383
|
-
Floating:
|
|
2381
|
+
Group: Or,
|
|
2382
|
+
Control: dn,
|
|
2383
|
+
Floating: Qn,
|
|
2384
2384
|
Check: Ve,
|
|
2385
|
-
Switch:
|
|
2386
|
-
Label:
|
|
2387
|
-
Text:
|
|
2388
|
-
Range:
|
|
2389
|
-
Select:
|
|
2390
|
-
FloatingLabel:
|
|
2385
|
+
Switch: zo,
|
|
2386
|
+
Label: Xn,
|
|
2387
|
+
Text: er,
|
|
2388
|
+
Range: Jn,
|
|
2389
|
+
Select: Zn,
|
|
2390
|
+
FloatingLabel: Pr
|
|
2391
2391
|
}), Ke = /* @__PURE__ */ W.forwardRef(({
|
|
2392
2392
|
className: n,
|
|
2393
2393
|
bsPrefix: e,
|
|
@@ -2395,21 +2395,21 @@ const Q = Object.assign(vt, {
|
|
|
2395
2395
|
...r
|
|
2396
2396
|
}, s) => (e = V(e, "input-group-text"), /* @__PURE__ */ o.jsx(t, {
|
|
2397
2397
|
ref: s,
|
|
2398
|
-
className:
|
|
2398
|
+
className: x(n, e),
|
|
2399
2399
|
...r
|
|
2400
2400
|
})));
|
|
2401
2401
|
Ke.displayName = "InputGroupText";
|
|
2402
|
-
const
|
|
2402
|
+
const Ko = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
2403
2403
|
children: /* @__PURE__ */ o.jsx(Oe, {
|
|
2404
2404
|
type: "checkbox",
|
|
2405
2405
|
...n
|
|
2406
2406
|
})
|
|
2407
|
-
}),
|
|
2407
|
+
}), Qo = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
2408
2408
|
children: /* @__PURE__ */ o.jsx(Oe, {
|
|
2409
2409
|
type: "radio",
|
|
2410
2410
|
...n
|
|
2411
2411
|
})
|
|
2412
|
-
}),
|
|
2412
|
+
}), nr = /* @__PURE__ */ W.forwardRef(({
|
|
2413
2413
|
bsPrefix: n,
|
|
2414
2414
|
size: e,
|
|
2415
2415
|
hasValidation: t,
|
|
@@ -2425,15 +2425,15 @@ const Uo = (n) => /* @__PURE__ */ o.jsx(Ke, {
|
|
|
2425
2425
|
children: /* @__PURE__ */ o.jsx(s, {
|
|
2426
2426
|
ref: i,
|
|
2427
2427
|
...a,
|
|
2428
|
-
className:
|
|
2428
|
+
className: x(r, n, e && `${n}-${e}`, t && "has-validation")
|
|
2429
2429
|
})
|
|
2430
2430
|
});
|
|
2431
2431
|
});
|
|
2432
|
-
|
|
2433
|
-
const tt = Object.assign(
|
|
2432
|
+
nr.displayName = "InputGroup";
|
|
2433
|
+
const tt = Object.assign(nr, {
|
|
2434
2434
|
Text: Ke,
|
|
2435
|
-
Radio:
|
|
2436
|
-
Checkbox:
|
|
2435
|
+
Radio: Qo,
|
|
2436
|
+
Checkbox: Ko
|
|
2437
2437
|
}), yt = /* @__PURE__ */ W.forwardRef(({
|
|
2438
2438
|
bsPrefix: n,
|
|
2439
2439
|
variant: e,
|
|
@@ -2449,58 +2449,58 @@ const tt = Object.assign(er, {
|
|
|
2449
2449
|
return /* @__PURE__ */ o.jsx(s, {
|
|
2450
2450
|
ref: l,
|
|
2451
2451
|
...i,
|
|
2452
|
-
className:
|
|
2452
|
+
className: x(a, c, r && `${c}-${r}`, e && `text-${e}`)
|
|
2453
2453
|
});
|
|
2454
2454
|
});
|
|
2455
2455
|
yt.displayName = "Spinner";
|
|
2456
2456
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2457
|
-
const
|
|
2457
|
+
const rr = "client_info_decoding_error", sr = "client_info_empty_error", Xo = "token_parsing_error", Jo = "null_or_empty_token", Zo = "endpoints_resolution_error", ea = "network_error", ta = "openid_config_error", na = "hash_not_deserialized", ra = "invalid_state", sa = "state_mismatch", oa = "state_not_found", aa = "nonce_mismatch", ia = "auth_time_not_found", ca = "max_age_transpired", la = "multiple_matching_tokens", ua = "multiple_matching_accounts", da = "multiple_matching_appMetadata", ha = "request_cannot_be_made", ma = "cannot_remove_empty_scope", fa = "cannot_append_scopeset", pa = "empty_input_scopeset", ga = "device_code_polling_cancelled", xa = "device_code_expired", wa = "device_code_unknown_error", va = "no_account_in_silent_request", ya = "invalid_cache_record", or = "invalid_cache_environment", ba = "no_account_found", _a = "no_crypto_object", ja = "unexpected_credential_type", ka = "invalid_assertion", Na = "invalid_client_credential", Ca = "token_refresh_required", Ia = "user_timeout_reached", $a = "token_claims_cnf_required_for_signedjwt", Sa = "authorization_code_missing_from_server_response", Ta = "binding_key_not_removed", Ea = "end_session_endpoint_not_supported", Da = "key_id_missing", Oa = "no_network_connectivity", Pa = "user_canceled", Aa = "missing_tenant_id_error", Ma = "method_not_implemented", Fa = "nested_app_auth_bridge_disabled";
|
|
2458
2458
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2459
2459
|
const Yt = {
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
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
|
-
[
|
|
2460
|
+
[rr]: "The client info could not be parsed/decoded correctly",
|
|
2461
|
+
[sr]: "The client info was empty",
|
|
2462
|
+
[Xo]: "Token cannot be parsed",
|
|
2463
|
+
[Jo]: "The token is null or empty",
|
|
2464
|
+
[Zo]: "Endpoints cannot be resolved",
|
|
2465
|
+
[ea]: "Network request failed",
|
|
2466
|
+
[ta]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2467
|
+
[na]: "The hash parameters could not be deserialized",
|
|
2468
|
+
[ra]: "State was not the expected format",
|
|
2469
|
+
[sa]: "State mismatch error",
|
|
2470
|
+
[oa]: "State not found",
|
|
2471
|
+
[aa]: "Nonce mismatch error",
|
|
2472
|
+
[ia]: "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.",
|
|
2473
|
+
[ca]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2474
|
+
[la]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2475
|
+
[ua]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2476
|
+
[da]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2477
|
+
[ha]: "Token request cannot be made without authorization code or refresh token.",
|
|
2478
|
+
[ma]: "Cannot remove null or empty scope from ScopeSet",
|
|
2479
|
+
[fa]: "Cannot append ScopeSet",
|
|
2480
|
+
[pa]: "Empty input ScopeSet cannot be processed",
|
|
2481
|
+
[ga]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2482
|
+
[xa]: "Device code is expired.",
|
|
2483
|
+
[wa]: "Device code stopped polling for unknown reasons.",
|
|
2484
|
+
[va]: "Please pass an account object, silent flow is not supported without account information",
|
|
2485
|
+
[ya]: "Cache record object was null or undefined.",
|
|
2486
|
+
[or]: "Invalid environment when attempting to create cache entry",
|
|
2487
|
+
[ba]: "No account found in cache for given key.",
|
|
2488
|
+
[_a]: "No crypto object detected.",
|
|
2489
|
+
[ja]: "Unexpected credential type.",
|
|
2490
|
+
[ka]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2491
|
+
[Na]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2492
|
+
[Ca]: "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.",
|
|
2493
|
+
[Ia]: "User defined timeout for device code polling reached",
|
|
2494
|
+
[$a]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2495
|
+
[Sa]: "Server response does not contain an authorization code to proceed",
|
|
2496
|
+
[Ta]: "Could not remove the credential's binding key from storage.",
|
|
2497
|
+
[Ea]: "The provided authority does not support logout",
|
|
2498
|
+
[Da]: "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.",
|
|
2499
|
+
[Oa]: "No network connectivity. Check your internet connection.",
|
|
2500
|
+
[Pa]: "User cancelled the flow.",
|
|
2501
|
+
[Aa]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2502
2502
|
[Ma]: "This method has not been implemented",
|
|
2503
|
-
[
|
|
2503
|
+
[Fa]: "The nested app auth bridge is disabled"
|
|
2504
2504
|
};
|
|
2505
2505
|
class bt extends dt {
|
|
2506
2506
|
constructor(e, t) {
|
|
@@ -2511,27 +2511,27 @@ function it(n, e) {
|
|
|
2511
2511
|
return new bt(n, e);
|
|
2512
2512
|
}
|
|
2513
2513
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2514
|
-
function
|
|
2514
|
+
function qt(n, e) {
|
|
2515
2515
|
if (!n)
|
|
2516
|
-
throw it(
|
|
2516
|
+
throw it(sr);
|
|
2517
2517
|
try {
|
|
2518
2518
|
const t = e(n);
|
|
2519
2519
|
return JSON.parse(t);
|
|
2520
2520
|
} catch {
|
|
2521
|
-
throw it(
|
|
2521
|
+
throw it(rr);
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
2524
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2525
|
-
function
|
|
2525
|
+
function Wa(n, e) {
|
|
2526
2526
|
return !!n && !!e && n === e.split(".")[1];
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Ra(n, e) {
|
|
2529
2529
|
const { oid: t, sub: r, tid: s, name: a, tfp: i, acr: l } = e, c = s || i || l || "";
|
|
2530
2530
|
return {
|
|
2531
2531
|
tenantId: c,
|
|
2532
2532
|
localAccountId: t || r || "",
|
|
2533
2533
|
name: a,
|
|
2534
|
-
isHomeTenant:
|
|
2534
|
+
isHomeTenant: Wa(c, n)
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
2537
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2542,7 +2542,7 @@ const nt = {
|
|
|
2542
2542
|
Ciam: 3
|
|
2543
2543
|
};
|
|
2544
2544
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2545
|
-
function
|
|
2545
|
+
function La(n) {
|
|
2546
2546
|
return n && (n.tid || n.tfp || n.acr) || null;
|
|
2547
2547
|
}
|
|
2548
2548
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2611,20 +2611,20 @@ class Se {
|
|
|
2611
2611
|
*/
|
|
2612
2612
|
static createAccount(e, t, r) {
|
|
2613
2613
|
const s = new Se();
|
|
2614
|
-
t.authorityType === nt.Adfs ? s.authorityType =
|
|
2614
|
+
t.authorityType === nt.Adfs ? s.authorityType = Ae.ADFS_ACCOUNT_TYPE : t.protocolMode === Ya.AAD ? s.authorityType = Ae.MSSTS_ACCOUNT_TYPE : s.authorityType = Ae.GENERIC_ACCOUNT_TYPE;
|
|
2615
2615
|
let a;
|
|
2616
|
-
e.clientInfo && r && (a =
|
|
2616
|
+
e.clientInfo && r && (a = qt(e.clientInfo, r)), s.clientInfo = e.clientInfo, s.homeAccountId = e.homeAccountId, s.nativeAccountId = e.nativeAccountId;
|
|
2617
2617
|
const i = e.environment || t && t.getPreferredCache();
|
|
2618
2618
|
if (!i)
|
|
2619
|
-
throw it(
|
|
2620
|
-
s.environment = i, s.realm = (a == null ? void 0 : a.utid) ||
|
|
2619
|
+
throw it(or);
|
|
2620
|
+
s.environment = i, s.realm = (a == null ? void 0 : a.utid) || La(e.idTokenClaims) || "", s.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2621
2621
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2622
2622
|
if (s.username = l || c || "", s.name = e.idTokenClaims.name, s.cloudGraphHostName = e.cloudGraphHostName, s.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2623
2623
|
s.tenantProfiles = e.tenantProfiles;
|
|
2624
2624
|
else {
|
|
2625
2625
|
const u = [];
|
|
2626
2626
|
if (e.idTokenClaims) {
|
|
2627
|
-
const d =
|
|
2627
|
+
const d = Ra(e.homeAccountId, e.idTokenClaims);
|
|
2628
2628
|
u.push(d);
|
|
2629
2629
|
}
|
|
2630
2630
|
s.tenantProfiles = u;
|
|
@@ -2641,7 +2641,7 @@ class Se {
|
|
|
2641
2641
|
static createFromAccountInfo(e, t, r) {
|
|
2642
2642
|
var a;
|
|
2643
2643
|
const s = new Se();
|
|
2644
|
-
return s.authorityType = e.authorityType ||
|
|
2644
|
+
return s.authorityType = e.authorityType || Ae.GENERIC_ACCOUNT_TYPE, s.homeAccountId = e.homeAccountId, s.localAccountId = e.localAccountId, s.nativeAccountId = e.nativeAccountId, s.realm = e.tenantId, s.environment = e.environment, s.username = e.username, s.name = e.name, s.cloudGraphHostName = t, s.msGraphHost = r, s.tenantProfiles = Array.from(((a = e.tenantProfiles) == null ? void 0 : a.values()) || []), s;
|
|
2645
2645
|
}
|
|
2646
2646
|
/**
|
|
2647
2647
|
* Generate HomeAccountId from server response
|
|
@@ -2652,7 +2652,7 @@ class Se {
|
|
|
2652
2652
|
if (!(t === nt.Adfs || t === nt.Dsts)) {
|
|
2653
2653
|
if (e)
|
|
2654
2654
|
try {
|
|
2655
|
-
const i =
|
|
2655
|
+
const i = qt(e, s.base64Decode);
|
|
2656
2656
|
if (i.uid && i.utid)
|
|
2657
2657
|
return `${i.uid}.${i.utid}`;
|
|
2658
2658
|
} catch {
|
|
@@ -2688,18 +2688,18 @@ class Se {
|
|
|
2688
2688
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2689
2689
|
class _t extends dt {
|
|
2690
2690
|
constructor(e, t, r, s, a, i, l, c) {
|
|
2691
|
-
super(e, t, r), Object.setPrototypeOf(this, _t.prototype), this.timestamp = s ||
|
|
2691
|
+
super(e, t, r), Object.setPrototypeOf(this, _t.prototype), this.timestamp = s || Me.EMPTY_STRING, this.traceId = a || Me.EMPTY_STRING, this.correlationId = i || Me.EMPTY_STRING, this.claims = l || Me.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2695
|
-
function
|
|
2696
|
-
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() :
|
|
2695
|
+
function Ht(n, e) {
|
|
2696
|
+
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : Ar(n.getAllAccounts(), e);
|
|
2697
2697
|
}
|
|
2698
|
-
function
|
|
2699
|
-
const { instance: e, inProgress: t, logger: r } = ht(), [s, a] =
|
|
2700
|
-
return
|
|
2698
|
+
function qa(n) {
|
|
2699
|
+
const { instance: e, inProgress: t, logger: r } = ht(), [s, a] = O(() => Ht(e, n));
|
|
2700
|
+
return D(() => {
|
|
2701
2701
|
a((i) => {
|
|
2702
|
-
const l =
|
|
2702
|
+
const l = Ht(e, n);
|
|
2703
2703
|
return Se.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
2704
2704
|
});
|
|
2705
2705
|
}, [t, n, e, r]), s;
|
|
@@ -2727,40 +2727,40 @@ class je extends dt {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
2729
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2730
|
-
function
|
|
2731
|
-
const { instance: r, inProgress: s, logger: a } = ht(), i =
|
|
2732
|
-
|
|
2730
|
+
function Ha(n, e, t) {
|
|
2731
|
+
const { instance: r, inProgress: s, logger: a } = ht(), i = en(t), l = qa(t), [[c, u], d] = O([null, null]), h = q(!0);
|
|
2732
|
+
D(() => () => {
|
|
2733
2733
|
h.current = !1;
|
|
2734
2734
|
}, []);
|
|
2735
2735
|
const p = q(s !== $e.None);
|
|
2736
|
-
|
|
2736
|
+
D(() => {
|
|
2737
2737
|
p.current = s !== $e.None;
|
|
2738
2738
|
}, [s]);
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2739
|
+
const f = q(!0);
|
|
2740
|
+
D(() => {
|
|
2741
2741
|
if (u) {
|
|
2742
|
-
|
|
2742
|
+
f.current = !1;
|
|
2743
2743
|
return;
|
|
2744
2744
|
}
|
|
2745
2745
|
if (c) {
|
|
2746
|
-
|
|
2746
|
+
f.current = !1;
|
|
2747
2747
|
return;
|
|
2748
2748
|
}
|
|
2749
2749
|
}, [u, c]);
|
|
2750
|
-
const
|
|
2751
|
-
const k =
|
|
2750
|
+
const v = S(async (g, _) => {
|
|
2751
|
+
const k = g || n, m = _ || e;
|
|
2752
2752
|
switch (k) {
|
|
2753
|
-
case
|
|
2753
|
+
case Ye.Popup:
|
|
2754
2754
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(m);
|
|
2755
|
-
case
|
|
2755
|
+
case Ye.Redirect:
|
|
2756
2756
|
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(m).then(null);
|
|
2757
|
-
case
|
|
2757
|
+
case Ye.Silent:
|
|
2758
2758
|
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(m);
|
|
2759
2759
|
default:
|
|
2760
2760
|
throw je.createInvalidInteractionTypeError();
|
|
2761
2761
|
}
|
|
2762
|
-
}, [r, n, e, a]),
|
|
2763
|
-
const k =
|
|
2762
|
+
}, [r, n, e, a]), b = S(async (g, _) => {
|
|
2763
|
+
const k = g || n;
|
|
2764
2764
|
let m;
|
|
2765
2765
|
return _ ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), m = {
|
|
2766
2766
|
..._
|
|
@@ -2773,7 +2773,7 @@ function qa(n, e, t) {
|
|
|
2773
2773
|
if (j instanceof _t) {
|
|
2774
2774
|
if (p.current)
|
|
2775
2775
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), je.createUnableToFallbackToInteractionError();
|
|
2776
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),
|
|
2776
|
+
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), v(k, m);
|
|
2777
2777
|
}
|
|
2778
2778
|
throw j;
|
|
2779
2779
|
})))().then((j) => (h.current && d([j, null]), j)).catch((j) => {
|
|
@@ -2785,10 +2785,10 @@ function qa(n, e, t) {
|
|
|
2785
2785
|
e,
|
|
2786
2786
|
a,
|
|
2787
2787
|
l,
|
|
2788
|
-
|
|
2788
|
+
v
|
|
2789
2789
|
]);
|
|
2790
|
-
return
|
|
2791
|
-
const
|
|
2790
|
+
return D(() => {
|
|
2791
|
+
const g = r.addEventCallback((_) => {
|
|
2792
2792
|
switch (_.eventType) {
|
|
2793
2793
|
case Fe.LOGIN_SUCCESS:
|
|
2794
2794
|
case Fe.SSO_SILENT_SUCCESS:
|
|
@@ -2803,48 +2803,48 @@ function qa(n, e, t) {
|
|
|
2803
2803
|
break;
|
|
2804
2804
|
}
|
|
2805
2805
|
});
|
|
2806
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${
|
|
2807
|
-
|
|
2806
|
+
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${g}`), () => {
|
|
2807
|
+
g && (a.verbose(`useMsalAuthentication - Removing event callback ${g}`), r.removeEventCallback(g));
|
|
2808
2808
|
};
|
|
2809
|
-
}, [r, a]),
|
|
2810
|
-
|
|
2811
|
-
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"),
|
|
2809
|
+
}, [r, a]), D(() => {
|
|
2810
|
+
f.current && s === $e.None && (f.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), b().catch(() => {
|
|
2811
|
+
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), v().catch(() => {
|
|
2812
2812
|
})));
|
|
2813
|
-
}, [i, l, s,
|
|
2814
|
-
login:
|
|
2815
|
-
acquireToken:
|
|
2813
|
+
}, [i, l, s, v, b, a]), {
|
|
2814
|
+
login: v,
|
|
2815
|
+
acquireToken: b,
|
|
2816
2816
|
result: c,
|
|
2817
2817
|
error: u
|
|
2818
2818
|
};
|
|
2819
2819
|
}
|
|
2820
2820
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2821
|
-
function
|
|
2821
|
+
function Ba({ interactionType: n, username: e, homeAccountId: t, localAccountId: r, authenticationRequest: s, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2822
2822
|
const c = K(() => ({
|
|
2823
2823
|
username: e,
|
|
2824
2824
|
homeAccountId: t,
|
|
2825
2825
|
localAccountId: r
|
|
2826
|
-
}), [e, t, r]), u = ht(), d =
|
|
2826
|
+
}), [e, t, r]), u = ht(), d = Ha(n, s, c), h = en(c);
|
|
2827
2827
|
if (d.error && u.inProgress === $e.None) {
|
|
2828
2828
|
if (i)
|
|
2829
2829
|
return ne.createElement(i, { ...d });
|
|
2830
2830
|
throw d.error;
|
|
2831
2831
|
}
|
|
2832
|
-
return h ? ne.createElement(ne.Fragment, null,
|
|
2832
|
+
return h ? ne.createElement(ne.Fragment, null, Mr(l, d)) : a && u.inProgress !== $e.None ? ne.createElement(a, { ...u }) : null;
|
|
2833
2833
|
}
|
|
2834
|
-
const
|
|
2835
|
-
const { formSubmitTexts: r } =
|
|
2836
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2834
|
+
const Va = ({ children: n, onStorno: e, noSpacer: t }) => {
|
|
2835
|
+
const { formSubmitTexts: r } = L(ae);
|
|
2836
|
+
return /* @__PURE__ */ o.jsxs(Fc, { noSpacer: t, children: [
|
|
2837
2837
|
/* @__PURE__ */ o.jsxs(St, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2838
|
-
/* @__PURE__ */ o.jsx(
|
|
2838
|
+
/* @__PURE__ */ o.jsx(Fr, {}),
|
|
2839
2839
|
n
|
|
2840
2840
|
] }),
|
|
2841
2841
|
e && /* @__PURE__ */ o.jsxs(St, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2842
|
-
/* @__PURE__ */ o.jsx(
|
|
2842
|
+
/* @__PURE__ */ o.jsx(Wr, {}),
|
|
2843
2843
|
r.storno
|
|
2844
2844
|
] })
|
|
2845
2845
|
] });
|
|
2846
|
-
},
|
|
2847
|
-
button:
|
|
2846
|
+
}, Ga = "_button_1r3i0_1", ct = {
|
|
2847
|
+
button: Ga
|
|
2848
2848
|
}, lt = ({
|
|
2849
2849
|
color: n = "primary",
|
|
2850
2850
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -2853,47 +2853,47 @@ const Ba = ({ children: n, onStorno: e, noSpacer: t }) => {
|
|
|
2853
2853
|
children: r,
|
|
2854
2854
|
...s
|
|
2855
2855
|
}) => {
|
|
2856
|
-
const { LinkComponent: a } =
|
|
2857
|
-
return s.as === "link" ? /* @__PURE__ */ o.jsxs(a, { to: s.href ?? "/", className:
|
|
2856
|
+
const { LinkComponent: a } = L(ae);
|
|
2857
|
+
return s.as === "link" ? /* @__PURE__ */ o.jsxs(a, { to: s.href ?? "/", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, ct.button), ...s, children: [
|
|
2858
2858
|
e,
|
|
2859
2859
|
r
|
|
2860
|
-
] }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ o.jsxs("button", { type: "button", className:
|
|
2860
|
+
] }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ o.jsxs("button", { type: "button", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, ct.button), ...s, children: [
|
|
2861
2861
|
e,
|
|
2862
2862
|
r
|
|
2863
2863
|
] }) : null;
|
|
2864
|
-
},
|
|
2864
|
+
}, ar = ({ color: n = "primary", icon: e = /* @__PURE__ */ o.jsx(tn, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: s, className: a, children: i, multiple: l, ...c }) => {
|
|
2865
2865
|
const u = (d) => {
|
|
2866
2866
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
2867
2867
|
};
|
|
2868
2868
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2869
|
-
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className:
|
|
2869
|
+
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className: x(`luminus-context-button btn text-${n} ${a ?? ""}`, ct.button), ...c, children: [
|
|
2870
2870
|
e,
|
|
2871
2871
|
i
|
|
2872
2872
|
] }),
|
|
2873
2873
|
/* @__PURE__ */ o.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2874
2874
|
] });
|
|
2875
|
-
},
|
|
2875
|
+
}, za = "_icon-button_15e26_1", Ua = "_sm_15e26_14", Ka = "_md_15e26_23", Qa = "_lg_15e26_32", Le = {
|
|
2876
2876
|
"icon-button": "_icon-button_15e26_1",
|
|
2877
|
-
iconButton:
|
|
2878
|
-
sm:
|
|
2879
|
-
md:
|
|
2880
|
-
lg:
|
|
2877
|
+
iconButton: za,
|
|
2878
|
+
sm: Ua,
|
|
2879
|
+
md: Ka,
|
|
2880
|
+
lg: Qa
|
|
2881
2881
|
}, z = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: s, ...a }) => {
|
|
2882
|
-
const { LinkComponent: i } =
|
|
2883
|
-
return a.as === "link" ? /* @__PURE__ */ o.jsx(i, { to: a.href ?? "/", className:
|
|
2882
|
+
const { LinkComponent: i } = L(ae);
|
|
2883
|
+
return a.as === "link" ? /* @__PURE__ */ o.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${s ?? ""}`, Le.iconButton, Le[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ o.jsx(
|
|
2884
2884
|
"button",
|
|
2885
2885
|
{
|
|
2886
2886
|
type: n,
|
|
2887
|
-
className:
|
|
2887
|
+
className: x(`luminus-icon-button btn text-${e} ${s ?? ""}`, Le.iconButton, Le[t]),
|
|
2888
2888
|
...a,
|
|
2889
2889
|
children: r
|
|
2890
2890
|
}
|
|
2891
2891
|
) : null;
|
|
2892
|
-
},
|
|
2893
|
-
select:
|
|
2894
|
-
},
|
|
2892
|
+
}, Xa = "_select_dlv1t_1", rt = {
|
|
2893
|
+
select: Xa
|
|
2894
|
+
}, sl = ({ month: n, onChangeMonth: e, locale: t, yearMin: r = 2e3, yearMax: s = 2050 }) => {
|
|
2895
2895
|
const a = S((c) => {
|
|
2896
|
-
const u =
|
|
2896
|
+
const u = xn(n, c);
|
|
2897
2897
|
u.getFullYear() < r || u.getFullYear() > s || e(u);
|
|
2898
2898
|
}, [n, e, r, s]), i = K(() => {
|
|
2899
2899
|
const c = [];
|
|
@@ -2913,50 +2913,50 @@ const Ba = ({ children: n, onStorno: e, noSpacer: t }) => {
|
|
|
2913
2913
|
/* @__PURE__ */ o.jsx(z, { onClick: () => a(-1), disabled: n.getFullYear() < r || n.getFullYear() === r && n.getMonth() <= 0, children: /* @__PURE__ */ o.jsx(mt, {}) }),
|
|
2914
2914
|
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getMonth(), onChange: (c) => {
|
|
2915
2915
|
var u;
|
|
2916
|
-
return ((u = c.target) == null ? void 0 : u.value) && e(
|
|
2917
|
-
}, className:
|
|
2916
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(fo(n, Number(c.target.value)));
|
|
2917
|
+
}, className: x(rt.select, rt.month), children: l.map((c) => /* @__PURE__ */ o.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
2918
2918
|
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getFullYear(), onChange: (c) => {
|
|
2919
2919
|
var u;
|
|
2920
|
-
return ((u = c.target) == null ? void 0 : u.value) && e(
|
|
2921
|
-
}, className:
|
|
2920
|
+
return ((u = c.target) == null ? void 0 : u.value) && e(bn(n, Number(c.target.value)));
|
|
2921
|
+
}, className: x(rt.select), children: i.map((c) => /* @__PURE__ */ o.jsx("option", { value: c, children: c }, c)) }),
|
|
2922
2922
|
/* @__PURE__ */ o.jsx(z, { onClick: () => a(1), disabled: n.getFullYear() > s || n.getFullYear() === s && n.getMonth() >= 11, children: /* @__PURE__ */ o.jsx(ft, {}) })
|
|
2923
2923
|
] });
|
|
2924
|
-
},
|
|
2925
|
-
select:
|
|
2926
|
-
},
|
|
2924
|
+
}, Ja = "_select_pywmr_1", Za = {
|
|
2925
|
+
select: Ja
|
|
2926
|
+
}, ol = ({ year: n, onChangeYear: e, optionMin: t = 2e3, optionMax: r = 2050, className: s }) => {
|
|
2927
2927
|
const a = S((l) => {
|
|
2928
2928
|
const c = n.getFullYear() + l;
|
|
2929
|
-
c < t || c > r || e(
|
|
2929
|
+
c < t || c > r || e(ls(n, l));
|
|
2930
2930
|
}, [n, e, r, t]), i = K(() => {
|
|
2931
2931
|
const l = [];
|
|
2932
2932
|
for (let c = t; c <= r; c++)
|
|
2933
2933
|
l.push(c);
|
|
2934
2934
|
return l;
|
|
2935
2935
|
}, [t, r]);
|
|
2936
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
2936
|
+
return /* @__PURE__ */ o.jsxs("div", { className: x("card d-flex flex-row align-items-center m-0 p-1 gap-2", s ?? ""), children: [
|
|
2937
2937
|
/* @__PURE__ */ o.jsx(z, { onClick: () => a(-1), disabled: n.getFullYear() <= t, children: /* @__PURE__ */ o.jsx(mt, {}) }),
|
|
2938
2938
|
/* @__PURE__ */ o.jsx(Q.Select, { value: n.getFullYear(), onChange: (l) => {
|
|
2939
2939
|
var c;
|
|
2940
|
-
return ((c = l.target) == null ? void 0 : c.value) && e(
|
|
2941
|
-
}, className:
|
|
2940
|
+
return ((c = l.target) == null ? void 0 : c.value) && e(bn(n, Number(l.target.value)));
|
|
2941
|
+
}, className: Za.select, children: i.map((l) => /* @__PURE__ */ o.jsx("option", { value: l, children: l }, l)) }),
|
|
2942
2942
|
/* @__PURE__ */ o.jsx(z, { onClick: () => a(1), disabled: n.getFullYear() >= r, children: /* @__PURE__ */ o.jsx(ft, {}) })
|
|
2943
2943
|
] });
|
|
2944
|
-
},
|
|
2945
|
-
widget:
|
|
2946
|
-
},
|
|
2944
|
+
}, ei = "_widget_etgh3_1", ti = {
|
|
2945
|
+
widget: ei
|
|
2946
|
+
}, ni = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: s }) => /* @__PURE__ */ o.jsxs(We, { show: n, onHide: () => t(), children: [
|
|
2947
2947
|
/* @__PURE__ */ o.jsx(We.Header, { closeButton: !0, children: /* @__PURE__ */ o.jsx(We.Title, { children: s.pickWidgetToAdd }) }),
|
|
2948
2948
|
/* @__PURE__ */ o.jsx(We.Body, { children: /* @__PURE__ */ o.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ o.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ o.jsx(G, { variant: "body", children: a.name }) })) }) })
|
|
2949
|
-
] }),
|
|
2950
|
-
const [r, s] =
|
|
2949
|
+
] }), Bt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2950
|
+
const [r, s] = O(!1);
|
|
2951
2951
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2952
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2953
|
-
/* @__PURE__ */ o.jsx(
|
|
2952
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-empty-widget", ti.widget), children: /* @__PURE__ */ o.jsx(z, { onClick: () => s(!0), children: /* @__PURE__ */ o.jsx(Rr, {}) }) }),
|
|
2953
|
+
/* @__PURE__ */ o.jsx(ni, { show: r, widgets: n, handleClose: () => s(!1), onWidgetPicked: (a) => {
|
|
2954
2954
|
s(!1), e(a);
|
|
2955
2955
|
}, texts: t })
|
|
2956
2956
|
] });
|
|
2957
|
-
},
|
|
2958
|
-
const [e, t] =
|
|
2959
|
-
|
|
2957
|
+
}, ri = (n) => {
|
|
2958
|
+
const [e, t] = O({ widgets: [] });
|
|
2959
|
+
D(() => {
|
|
2960
2960
|
const s = localStorage.getItem("dashboardConfig");
|
|
2961
2961
|
s ? t(JSON.parse(s)) : n && t(n);
|
|
2962
2962
|
}, [n]);
|
|
@@ -2964,24 +2964,24 @@ const Ba = ({ children: n, onStorno: e, noSpacer: t }) => {
|
|
|
2964
2964
|
t(s), localStorage.setItem("dashboardConfig", JSON.stringify(s));
|
|
2965
2965
|
}, []);
|
|
2966
2966
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2967
|
-
},
|
|
2968
|
-
dashboard:
|
|
2967
|
+
}, si = "_dashboard_16plm_1", oi = "_widgets-grid_16plm_1", ai = "_widget-wrapper_16plm_8", ii = "_full-width_16plm_13", ci = "_widget-edit_16plm_16", li = "_remove-icon_16plm_19", ui = "_full-width-icon_16plm_26", di = "_widget-edit-overlay_16plm_36", ie = {
|
|
2968
|
+
dashboard: si,
|
|
2969
2969
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2970
|
-
widgetsGrid:
|
|
2970
|
+
widgetsGrid: oi,
|
|
2971
2971
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2972
|
-
widgetWrapper:
|
|
2972
|
+
widgetWrapper: ai,
|
|
2973
2973
|
"full-width": "_full-width_16plm_13",
|
|
2974
|
-
fullWidth:
|
|
2974
|
+
fullWidth: ii,
|
|
2975
2975
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2976
|
-
widgetEdit:
|
|
2976
|
+
widgetEdit: ci,
|
|
2977
2977
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2978
|
-
removeIcon:
|
|
2978
|
+
removeIcon: li,
|
|
2979
2979
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2980
|
-
fullWidthIcon:
|
|
2980
|
+
fullWidthIcon: ui,
|
|
2981
2981
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2982
|
-
widgetEditOverlay:
|
|
2982
|
+
widgetEditOverlay: di
|
|
2983
2983
|
};
|
|
2984
|
-
class
|
|
2984
|
+
class hi extends Kr {
|
|
2985
2985
|
constructor(e) {
|
|
2986
2986
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2987
2987
|
}
|
|
@@ -2997,7 +2997,7 @@ class di extends zr {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
render() {
|
|
2999
2999
|
const { fallback: e, children: t, texts: r, reloadButtonDisplay: s = "append-after-child" } = this.props;
|
|
3000
|
-
return this.state.hasError ? s === "inject-to-child" &&
|
|
3000
|
+
return this.state.hasError ? s === "inject-to-child" && Qr(e) ? ne.cloneElement(e, {
|
|
3001
3001
|
...e.props
|
|
3002
3002
|
}, /* @__PURE__ */ o.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
3003
3003
|
...e.props.children,
|
|
@@ -3008,46 +3008,46 @@ class di extends zr {
|
|
|
3008
3008
|
] }) : t;
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
3011
|
-
const
|
|
3012
|
-
const { errorBoundaryTexts: r } =
|
|
3011
|
+
const mi = (n) => (t) => {
|
|
3012
|
+
const { errorBoundaryTexts: r } = L(ae);
|
|
3013
3013
|
return /* @__PURE__ */ o.jsx(n, { texts: r, ...t });
|
|
3014
|
-
},
|
|
3014
|
+
}, fi = mi(hi), pi = "_widget-card_e9tsb_1", gi = {
|
|
3015
3015
|
"widget-card": "_widget-card_e9tsb_1",
|
|
3016
|
-
widgetCard:
|
|
3017
|
-
},
|
|
3018
|
-
const { widgetTexts: t } =
|
|
3019
|
-
return /* @__PURE__ */ o.jsx(
|
|
3020
|
-
},
|
|
3016
|
+
widgetCard: pi
|
|
3017
|
+
}, Vt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ o.jsx(yc, { className: x(gi.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), xi = ({ children: n, title: e }) => {
|
|
3018
|
+
const { widgetTexts: t } = L(ae);
|
|
3019
|
+
return /* @__PURE__ */ o.jsx(fi, { fallback: /* @__PURE__ */ o.jsx(Vt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ o.jsx(Xr, { fallback: /* @__PURE__ */ o.jsx(Vt, { title: e, children: /* @__PURE__ */ o.jsx(os, {}) }), children: n }) });
|
|
3020
|
+
}, al = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
3021
3021
|
var d;
|
|
3022
|
-
const { homeDashboardTexts: r } =
|
|
3023
|
-
var
|
|
3024
|
-
h === ((
|
|
3022
|
+
const { homeDashboardTexts: r } = L(ae), { dashboardConfig: s, onChangeDashboardConfig: a } = ri(t), i = S((h, p) => {
|
|
3023
|
+
var f, v;
|
|
3024
|
+
h === ((f = s.widgets) == null ? void 0 : f.length) ? a({
|
|
3025
3025
|
...s,
|
|
3026
3026
|
widgets: [...s.widgets, { widgetId: p, fullWidth: !1 }]
|
|
3027
3027
|
}) : a({
|
|
3028
3028
|
...s,
|
|
3029
|
-
widgets: ((
|
|
3029
|
+
widgets: ((v = s.widgets) == null ? void 0 : v.map((b, g) => g === h ? { widgetId: p, fullWidth: !1 } : b)) ?? []
|
|
3030
3030
|
});
|
|
3031
3031
|
}, [s, a]), l = S((h) => {
|
|
3032
|
-
var p,
|
|
3032
|
+
var p, f;
|
|
3033
3033
|
((p = s.widgets[h]) == null ? void 0 : p.widgetId) === -1 ? a({
|
|
3034
3034
|
...s,
|
|
3035
|
-
widgets: ((
|
|
3035
|
+
widgets: ((f = s.widgets) == null ? void 0 : f.filter((v, b) => b !== h)) ?? []
|
|
3036
3036
|
}) : i(h, -1);
|
|
3037
3037
|
}, [s, a, i]), c = S((h) => {
|
|
3038
3038
|
var p;
|
|
3039
3039
|
a({
|
|
3040
3040
|
...s,
|
|
3041
|
-
widgets: ((p = s.widgets) == null ? void 0 : p.map((
|
|
3041
|
+
widgets: ((p = s.widgets) == null ? void 0 : p.map((f, v) => v === h ? { ...f, fullWidth: !f.fullWidth } : f)) ?? []
|
|
3042
3042
|
});
|
|
3043
|
-
}, [s, a]), u = S((h, p,
|
|
3043
|
+
}, [s, a]), u = S((h, p, f) => h ? /* @__PURE__ */ o.jsxs("div", { className: x(ie.widgetWrapper, {
|
|
3044
3044
|
[ie.widgetEdit]: e && h.id !== -1
|
|
3045
|
-
}, { [ie.fullWidth]:
|
|
3045
|
+
}, { [ie.fullWidth]: f }), children: [
|
|
3046
3046
|
e && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3047
|
-
/* @__PURE__ */ o.jsx(z, { color: "danger", onClick: () => l(p), className:
|
|
3048
|
-
/* @__PURE__ */ o.jsx(z, { color:
|
|
3047
|
+
/* @__PURE__ */ o.jsx(z, { color: "danger", onClick: () => l(p), className: x(ie.removeIcon), children: /* @__PURE__ */ o.jsx(nn, {}) }),
|
|
3048
|
+
/* @__PURE__ */ o.jsx(z, { color: f ? "danger" : "primary", onClick: () => c(p), className: x(ie.fullWidthIcon), children: /* @__PURE__ */ o.jsx(Lr, {}) })
|
|
3049
3049
|
] }),
|
|
3050
|
-
h.id === -1 ? e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ o.jsx(
|
|
3050
|
+
h.id === -1 ? e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetWrapper, children: /* @__PURE__ */ o.jsx(Bt, { availableWidgets: n, onAdd: (v) => i(p, v), texts: r }) }) : /* @__PURE__ */ o.jsx(xi, { title: h.title, children: /* @__PURE__ */ o.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3051
3051
|
h.id > -1 && e && /* @__PURE__ */ o.jsx("div", { className: ie.widgetEditOverlay })
|
|
3052
3052
|
] }, p) : /* @__PURE__ */ o.jsx(o.Fragment, {}), [
|
|
3053
3053
|
e,
|
|
@@ -3058,52 +3058,52 @@ const hi = (n) => (t) => {
|
|
|
3058
3058
|
r
|
|
3059
3059
|
]);
|
|
3060
3060
|
return /* @__PURE__ */ o.jsx("div", { className: ie.dashboard, children: /* @__PURE__ */ o.jsxs("div", { className: ie.widgetsGrid, children: [
|
|
3061
|
-
(d = s.widgets) == null ? void 0 : d.map((h, p) => u(n.find((
|
|
3062
|
-
e && /* @__PURE__ */ o.jsx(
|
|
3061
|
+
(d = s.widgets) == null ? void 0 : d.map((h, p) => u(n.find((f) => f.id === h.widgetId), p, h.fullWidth)),
|
|
3062
|
+
e && /* @__PURE__ */ o.jsx(Bt, { availableWidgets: n, onAdd: (h) => {
|
|
3063
3063
|
var p;
|
|
3064
3064
|
return i((p = s.widgets) == null ? void 0 : p.length, h);
|
|
3065
3065
|
}, texts: r })
|
|
3066
3066
|
] }) });
|
|
3067
|
-
},
|
|
3068
|
-
badge:
|
|
3069
|
-
sm:
|
|
3070
|
-
md:
|
|
3071
|
-
lg:
|
|
3072
|
-
},
|
|
3067
|
+
}, wi = "_badge_nhser_1", vi = "_sm_nhser_1", yi = "_md_nhser_4", bi = "_lg_nhser_7", Gt = {
|
|
3068
|
+
badge: wi,
|
|
3069
|
+
sm: vi,
|
|
3070
|
+
md: yi,
|
|
3071
|
+
lg: bi
|
|
3072
|
+
}, il = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ o.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Gt.badge, Gt[t]), children: n }), _i = "_collapse-icon_1ahhn_1", ji = "_collapsed_1ahhn_6", zt = {
|
|
3073
3073
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3074
|
-
collapseIcon:
|
|
3075
|
-
collapsed:
|
|
3076
|
-
},
|
|
3077
|
-
const s = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] =
|
|
3078
|
-
return
|
|
3074
|
+
collapseIcon: _i,
|
|
3075
|
+
collapsed: ji
|
|
3076
|
+
}, cl = ({ title: n, children: e, className: t, ...r }) => {
|
|
3077
|
+
const s = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = O(s), l = r.controlled ? r.isOpen : a;
|
|
3078
|
+
return D(() => {
|
|
3079
3079
|
i(s);
|
|
3080
3080
|
}, [s]), /* @__PURE__ */ o.jsxs("div", { className: t ?? "", children: [
|
|
3081
3081
|
/* @__PURE__ */ o.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: [
|
|
3082
3082
|
/* @__PURE__ */ o.jsx(G, { variant: "h6", children: n }),
|
|
3083
|
-
/* @__PURE__ */ o.jsx(
|
|
3084
|
-
[
|
|
3083
|
+
/* @__PURE__ */ o.jsx(rn, { className: x(zt.collapseIcon, {
|
|
3084
|
+
[zt.collapsed]: l
|
|
3085
3085
|
}) })
|
|
3086
3086
|
] }),
|
|
3087
|
-
/* @__PURE__ */ o.jsx(
|
|
3087
|
+
/* @__PURE__ */ o.jsx(_n, { in: l, children: /* @__PURE__ */ o.jsx("div", { children: e }) }),
|
|
3088
3088
|
/* @__PURE__ */ o.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3089
3089
|
] });
|
|
3090
|
-
},
|
|
3091
|
-
feedback:
|
|
3090
|
+
}, ki = "_feedback_esh1j_1", Ni = "_feedback-spacer_esh1j_8", Ut = {
|
|
3091
|
+
feedback: ki,
|
|
3092
3092
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3093
|
-
feedbackSpacer:
|
|
3093
|
+
feedbackSpacer: Ni
|
|
3094
3094
|
}, pe = ({ message: n }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3095
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3096
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3095
|
+
/* @__PURE__ */ o.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Ut.feedback), children: n }),
|
|
3096
|
+
/* @__PURE__ */ o.jsx("div", { className: x("invalid-feedback-spacer", Ut.feedbackSpacer), children: n })
|
|
3097
3097
|
] });
|
|
3098
|
-
function
|
|
3098
|
+
function Ci(n, e, t) {
|
|
3099
3099
|
var r = this, s = q(null), a = q(0), i = q(null), l = q([]), c = q(), u = q(), d = q(n), h = q(!0);
|
|
3100
3100
|
d.current = n;
|
|
3101
|
-
var p = typeof window < "u",
|
|
3101
|
+
var p = typeof window < "u", f = !e && e !== 0 && p;
|
|
3102
3102
|
if (typeof n != "function")
|
|
3103
3103
|
throw new TypeError("Expected a function");
|
|
3104
3104
|
e = +e || 0;
|
|
3105
|
-
var
|
|
3106
|
-
|
|
3105
|
+
var v = !!(t = t || {}).leading, b = !("trailing" in t) || !!t.trailing, g = "maxWait" in t, _ = "debounceOnServer" in t && !!t.debounceOnServer, k = g ? Math.max(+t.maxWait || 0, e) : null;
|
|
3106
|
+
D(function() {
|
|
3107
3107
|
return h.current = !0, function() {
|
|
3108
3108
|
h.current = !1;
|
|
3109
3109
|
};
|
|
@@ -3113,204 +3113,204 @@ function Ni(n, e, t) {
|
|
|
3113
3113
|
var y = l.current, C = c.current;
|
|
3114
3114
|
return l.current = c.current = null, a.current = T, u.current = d.current.apply(C, y);
|
|
3115
3115
|
}, j = function(T, y) {
|
|
3116
|
-
|
|
3117
|
-
},
|
|
3116
|
+
f && cancelAnimationFrame(i.current), i.current = f ? requestAnimationFrame(T) : setTimeout(T, y);
|
|
3117
|
+
}, w = function(T) {
|
|
3118
3118
|
if (!h.current)
|
|
3119
3119
|
return !1;
|
|
3120
3120
|
var y = T - s.current;
|
|
3121
|
-
return !s.current || y >= e || y < 0 ||
|
|
3121
|
+
return !s.current || y >= e || y < 0 || g && T - a.current >= k;
|
|
3122
3122
|
}, $ = function(T) {
|
|
3123
|
-
return i.current = null,
|
|
3124
|
-
},
|
|
3123
|
+
return i.current = null, b && l.current ? N(T) : (l.current = c.current = null, u.current);
|
|
3124
|
+
}, P = function T() {
|
|
3125
3125
|
var y = Date.now();
|
|
3126
|
-
if (
|
|
3126
|
+
if (w(y))
|
|
3127
3127
|
return $(y);
|
|
3128
3128
|
if (h.current) {
|
|
3129
|
-
var C = e - (y - s.current), F =
|
|
3129
|
+
var C = e - (y - s.current), F = g ? Math.min(C, k - (y - a.current)) : C;
|
|
3130
3130
|
j(T, F);
|
|
3131
3131
|
}
|
|
3132
3132
|
}, I = function() {
|
|
3133
3133
|
if (p || _) {
|
|
3134
|
-
var T = Date.now(), y =
|
|
3134
|
+
var T = Date.now(), y = w(T);
|
|
3135
3135
|
if (l.current = [].slice.call(arguments), c.current = r, s.current = T, y) {
|
|
3136
3136
|
if (!i.current && h.current)
|
|
3137
|
-
return a.current = s.current, j(
|
|
3138
|
-
if (
|
|
3139
|
-
return j(
|
|
3137
|
+
return a.current = s.current, j(P, e), v ? N(s.current) : u.current;
|
|
3138
|
+
if (g)
|
|
3139
|
+
return j(P, e), N(s.current);
|
|
3140
3140
|
}
|
|
3141
|
-
return i.current || j(
|
|
3141
|
+
return i.current || j(P, e), u.current;
|
|
3142
3142
|
}
|
|
3143
3143
|
};
|
|
3144
3144
|
return I.cancel = function() {
|
|
3145
|
-
i.current && (
|
|
3145
|
+
i.current && (f ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = s.current = c.current = i.current = null;
|
|
3146
3146
|
}, I.isPending = function() {
|
|
3147
3147
|
return !!i.current;
|
|
3148
3148
|
}, I.flush = function() {
|
|
3149
3149
|
return i.current ? $(Date.now()) : u.current;
|
|
3150
3150
|
}, I;
|
|
3151
|
-
}, [
|
|
3151
|
+
}, [v, g, e, k, b, f, p, _]);
|
|
3152
3152
|
return m;
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3154
|
+
function Ii(n, e) {
|
|
3155
3155
|
return n === e;
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3157
|
+
function $i(n, e) {
|
|
3158
3158
|
return e;
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3161
|
-
var r =
|
|
3160
|
+
function ir(n, e, t) {
|
|
3161
|
+
var r = Ii, s = ln($i, n), a = s[0], i = s[1], l = Ci(S(function(u) {
|
|
3162
3162
|
return i(u);
|
|
3163
3163
|
}, [i]), e, t), c = q(n);
|
|
3164
3164
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3165
3165
|
}
|
|
3166
|
-
const
|
|
3167
|
-
wrapper:
|
|
3168
|
-
open:
|
|
3169
|
-
dropdown:
|
|
3166
|
+
const Si = "_wrapper_uccrb_1", Ti = "_open_uccrb_9", Ei = "_dropdown_uccrb_13", Di = "_search-input-container_uccrb_19", Oi = "_search-input_uccrb_19", Pi = "_loading-container_uccrb_25", Ai = "_items-container_uccrb_32", Mi = "_header-row_uccrb_38", Fi = "_item_uccrb_32", Wi = "_name_uccrb_57", Ri = "_column-item_uccrb_62", Li = "_icon_uccrb_66", Yi = "_clear-button_uccrb_74", te = {
|
|
3167
|
+
wrapper: Si,
|
|
3168
|
+
open: Ti,
|
|
3169
|
+
dropdown: Ei,
|
|
3170
3170
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3171
|
-
searchInputContainer:
|
|
3171
|
+
searchInputContainer: Di,
|
|
3172
3172
|
"search-input": "_search-input_uccrb_19",
|
|
3173
|
-
searchInput:
|
|
3173
|
+
searchInput: Oi,
|
|
3174
3174
|
"loading-container": "_loading-container_uccrb_25",
|
|
3175
|
-
loadingContainer:
|
|
3175
|
+
loadingContainer: Pi,
|
|
3176
3176
|
"items-container": "_items-container_uccrb_32",
|
|
3177
|
-
itemsContainer:
|
|
3177
|
+
itemsContainer: Ai,
|
|
3178
3178
|
"header-row": "_header-row_uccrb_38",
|
|
3179
3179
|
headerRow: Mi,
|
|
3180
|
-
item:
|
|
3181
|
-
name:
|
|
3180
|
+
item: Fi,
|
|
3181
|
+
name: Wi,
|
|
3182
3182
|
"column-item": "_column-item_uccrb_62",
|
|
3183
|
-
columnItem:
|
|
3184
|
-
icon:
|
|
3183
|
+
columnItem: Ri,
|
|
3184
|
+
icon: Li,
|
|
3185
3185
|
"clear-button": "_clear-button_uccrb_74",
|
|
3186
3186
|
clearButton: Yi
|
|
3187
|
-
}, jt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: s, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: p, isLoading:
|
|
3187
|
+
}, jt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: s, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: p, isLoading: f = !1, inputRef: v }) => {
|
|
3188
3188
|
var E;
|
|
3189
|
-
const
|
|
3190
|
-
|
|
3191
|
-
var
|
|
3192
|
-
n && ((
|
|
3193
|
-
}, [_, n]),
|
|
3189
|
+
const b = q(null), g = q(null), _ = q(null), [k, m] = O(""), [N] = ir(k, 500), [, j] = O(!1), w = (E = v.current) == null ? void 0 : E.getBoundingClientRect(), $ = (w == null ? void 0 : w.x) ?? 0, P = ((w == null ? void 0 : w.x) ?? 0) + ((w == null ? void 0 : w.width) ?? 0), I = (w == null ? void 0 : w.y) ?? 0, T = ((w == null ? void 0 : w.y) ?? 0) + ((w == null ? void 0 : w.height) ?? 0), y = (w == null ? void 0 : w.width) ?? 0, C = (w == null ? void 0 : w.height) ?? 0, F = 5, R = K(() => $ ? $ > window.innerWidth / 2 : !1, [$]), H = K(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3190
|
+
D(() => {
|
|
3191
|
+
var A;
|
|
3192
|
+
n && ((A = _.current) == null || A.focus());
|
|
3193
|
+
}, [_, n]), D(() => {
|
|
3194
3194
|
n || m("");
|
|
3195
|
-
}, [n]),
|
|
3195
|
+
}, [n]), D(() => {
|
|
3196
3196
|
a(N);
|
|
3197
3197
|
}, [N, a]);
|
|
3198
|
-
const Z = S((
|
|
3199
|
-
switch (
|
|
3198
|
+
const Z = S((A) => {
|
|
3199
|
+
switch (A.key) {
|
|
3200
3200
|
case "Escape":
|
|
3201
|
-
|
|
3201
|
+
A.stopPropagation(), e();
|
|
3202
3202
|
break;
|
|
3203
3203
|
}
|
|
3204
|
-
}, [e]),
|
|
3205
|
-
j((
|
|
3204
|
+
}, [e]), M = S(() => {
|
|
3205
|
+
j((A) => !A);
|
|
3206
3206
|
}, []);
|
|
3207
|
-
|
|
3208
|
-
window.removeEventListener("scroll",
|
|
3209
|
-
}), [
|
|
3210
|
-
window.removeEventListener("resize",
|
|
3211
|
-
}), [
|
|
3212
|
-
const re = l ?? (c && c.length > 0 ? 250 : 0), ee = (c == null ? void 0 : c.reduce((
|
|
3207
|
+
D(() => (window.addEventListener("scroll", M), () => {
|
|
3208
|
+
window.removeEventListener("scroll", M);
|
|
3209
|
+
}), [M]), D(() => (window.addEventListener("resize", M), () => {
|
|
3210
|
+
window.removeEventListener("resize", M);
|
|
3211
|
+
}), [M]), fn(Z), pn([b, g], e);
|
|
3212
|
+
const re = l ?? (c && c.length > 0 ? 250 : 0), ee = (c == null ? void 0 : c.reduce((A, X) => A + (X.width ?? 100), 0)) ?? 0, U = `calc(max(${y}px, ${re}px + ${ee}px))`;
|
|
3213
3213
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3214
|
-
/* @__PURE__ */ o.jsx(
|
|
3215
|
-
r && n && !p && /* @__PURE__ */ o.jsx("button", { ref:
|
|
3214
|
+
/* @__PURE__ */ o.jsx(dr, { show: n, onClick: e }),
|
|
3215
|
+
r && n && !p && /* @__PURE__ */ o.jsx("button", { ref: g, type: "button", className: x("luminus-dropdown-picker-clear-button", te.clearButton), onClick: () => !p && s(null), style: {
|
|
3216
3216
|
top: `calc(${I}px + ${C / 2}px - 12px)`,
|
|
3217
3217
|
left: `calc(${$}px - 24px - 8px)`
|
|
3218
|
-
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ o.jsx(
|
|
3219
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3218
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ o.jsx(nn, { size: 16 }) }) }),
|
|
3219
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-dropdown-picker", te.wrapper, {
|
|
3220
3220
|
[te.open]: n
|
|
3221
3221
|
}), style: {
|
|
3222
3222
|
top: H ? `calc(${I}px - 50vh - 8px)` : `calc(${T}px + 8px)`,
|
|
3223
|
-
left: R ? `calc(${
|
|
3224
|
-
right: R ? `${
|
|
3223
|
+
left: R ? `calc(${P}px - ${U})` : $,
|
|
3224
|
+
right: R ? `${P}px` : `calc(${$}px + ${U})`,
|
|
3225
3225
|
width: U,
|
|
3226
3226
|
justifyContent: H ? "flex-end" : "flex-start"
|
|
3227
|
-
}, children: /* @__PURE__ */ o.jsx("div", { ref:
|
|
3228
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ o.jsx("div", { className:
|
|
3227
|
+
}, children: /* @__PURE__ */ o.jsx("div", { ref: b, className: x("shadow rounded", te.dropdown), children: !p && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3228
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ o.jsx("div", { className: x("search-input-container border-bottom", te.searchInputContainer), children: /* @__PURE__ */ o.jsx(Q.Control, { ref: _, type: "search", size: "sm", className: te.searchInput, placeholder: i.searchPlaceholder, value: k, onChange: (A) => {
|
|
3229
3229
|
var X;
|
|
3230
|
-
return m(((X =
|
|
3230
|
+
return m(((X = A.target) == null ? void 0 : X.value) ?? "");
|
|
3231
3231
|
} }) }),
|
|
3232
|
-
|
|
3233
|
-
c && c.length > 0 && /* @__PURE__ */ o.jsxs("div", { className:
|
|
3232
|
+
f ? /* @__PURE__ */ o.jsx("div", { className: te.loadingContainer, children: /* @__PURE__ */ o.jsx(yt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ o.jsxs("div", { className: x("items", te.itemsContainer), children: [
|
|
3233
|
+
c && c.length > 0 && /* @__PURE__ */ o.jsxs("div", { className: x("header-row border-bottom", te.headerRow), children: [
|
|
3234
3234
|
/* @__PURE__ */ o.jsx("div", { className: te.name }),
|
|
3235
|
-
c == null ? void 0 : c.map((
|
|
3236
|
-
width: `${
|
|
3237
|
-
minWidth: `${
|
|
3238
|
-
maxWidth: `${
|
|
3239
|
-
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", children:
|
|
3235
|
+
c == null ? void 0 : c.map((A) => /* @__PURE__ */ o.jsx("div", { className: te.columnItem, style: {
|
|
3236
|
+
width: `${A.width ?? 100}px`,
|
|
3237
|
+
minWidth: `${A.width ?? 100}px`,
|
|
3238
|
+
maxWidth: `${A.width ?? 100}px`
|
|
3239
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", children: A.name }) }, A.key))
|
|
3240
3240
|
] }),
|
|
3241
|
-
t == null ? void 0 : t.map((
|
|
3242
|
-
/* @__PURE__ */ o.jsx("div", { className: te.name, children: /* @__PURE__ */ o.jsx(G, { variant: "body2", children: u ?
|
|
3241
|
+
t == null ? void 0 : t.map((A) => /* @__PURE__ */ o.jsxs("button", { type: "button", className: x("item cursor-pointer", te.item), onClick: () => !p && s(A), children: [
|
|
3242
|
+
/* @__PURE__ */ o.jsx("div", { className: te.name, children: /* @__PURE__ */ o.jsx(G, { variant: "body2", children: u ? A.id : A.name }) }),
|
|
3243
3243
|
c == null ? void 0 : c.map((X) => /* @__PURE__ */ o.jsx("div", { className: te.columnItem, style: {
|
|
3244
3244
|
width: `${X.width ?? 100}px`,
|
|
3245
3245
|
minWidth: `${X.width ?? 100}px`,
|
|
3246
3246
|
maxWidth: `${X.width ?? 100}px`
|
|
3247
|
-
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className:
|
|
3248
|
-
] },
|
|
3247
|
+
}, children: /* @__PURE__ */ o.jsx(G, { variant: "caption", className: x("text-muted"), children: A.additionalColumns && A.additionalColumns[X.key] }) }, X.key))
|
|
3248
|
+
] }, A.id))
|
|
3249
3249
|
] })
|
|
3250
3250
|
] }) }) })
|
|
3251
3251
|
] });
|
|
3252
3252
|
};
|
|
3253
|
-
function
|
|
3253
|
+
function cr(n) {
|
|
3254
3254
|
return pt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(n);
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function lr(n) {
|
|
3257
3257
|
return pt({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(n);
|
|
3258
3258
|
}
|
|
3259
|
-
function
|
|
3259
|
+
function qi(n) {
|
|
3260
3260
|
return pt({ 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);
|
|
3261
3261
|
}
|
|
3262
|
-
const
|
|
3263
|
-
item:
|
|
3264
|
-
},
|
|
3262
|
+
const Hi = "_item_1dy8x_1", ur = {
|
|
3263
|
+
item: Hi
|
|
3264
|
+
}, Bi = ({
|
|
3265
3265
|
color: n = "primary",
|
|
3266
3266
|
// icon = <MdOutlineArrowOutward />,
|
|
3267
3267
|
icon: e,
|
|
3268
3268
|
className: t,
|
|
3269
3269
|
children: r,
|
|
3270
3270
|
...s
|
|
3271
|
-
}) => /* @__PURE__ */ o.jsxs(Ee.Item, { className:
|
|
3271
|
+
}) => /* @__PURE__ */ o.jsxs(Ee.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, ur.item), ...s, children: [
|
|
3272
3272
|
e,
|
|
3273
3273
|
r
|
|
3274
|
-
] }),
|
|
3274
|
+
] }), Vi = (n) => /* @__PURE__ */ o.jsx(Ee.Toggle, { ...n }), ll = ({ color: n = "primary", icon: e = /* @__PURE__ */ o.jsx(tn, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: s, multiple: a, className: i, children: l, ...c }) => {
|
|
3275
3275
|
const u = (d) => {
|
|
3276
3276
|
d.target.files && (s(d.target.files), d.target.value = "");
|
|
3277
3277
|
};
|
|
3278
3278
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3279
|
-
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className:
|
|
3279
|
+
/* @__PURE__ */ o.jsxs("label", { htmlFor: t, className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i ?? ""}`, ur.item), ...c, children: [
|
|
3280
3280
|
e,
|
|
3281
3281
|
l
|
|
3282
3282
|
] }),
|
|
3283
3283
|
/* @__PURE__ */ o.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3284
3284
|
] });
|
|
3285
|
-
},
|
|
3286
|
-
divider:
|
|
3287
|
-
},
|
|
3288
|
-
dropdown:
|
|
3289
|
-
},
|
|
3285
|
+
}, Gi = "_divider_1e6rk_1", zi = {
|
|
3286
|
+
divider: Gi
|
|
3287
|
+
}, ul = ({ className: n }) => /* @__PURE__ */ o.jsx(Ee.Divider, { className: x("luminus-dropdown-divider", n, zi.divider) }), Ui = "_dropdown_1lk66_1", Ki = {
|
|
3288
|
+
dropdown: Ui
|
|
3289
|
+
}, Qi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ o.jsxs(Ee, { ...t, children: [
|
|
3290
3290
|
n,
|
|
3291
|
-
/* @__PURE__ */ o.jsx(Ee.Menu, { className:
|
|
3292
|
-
] }),
|
|
3293
|
-
dropdown:
|
|
3294
|
-
open:
|
|
3291
|
+
/* @__PURE__ */ o.jsx(Ee.Menu, { className: x("luminus-dropdown rounded shadow", Ki.dropdown), children: e })
|
|
3292
|
+
] }), Xi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ o.jsx(Qi, { toggle: /* @__PURE__ */ o.jsx(Vi, { as: Yr, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ o.jsx(Bi, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Ji = "_dropdown_1ddrg_1", Zi = "_open_1ddrg_12", ec = "_loading-container_1ddrg_15", tc = "_groups-container_1ddrg_22", nc = "_group_1ddrg_22", rc = "_header_1ddrg_26", sc = "_item_1ddrg_33", ge = {
|
|
3293
|
+
dropdown: Ji,
|
|
3294
|
+
open: Zi,
|
|
3295
3295
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3296
|
-
loadingContainer:
|
|
3296
|
+
loadingContainer: ec,
|
|
3297
3297
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3298
|
-
groupsContainer:
|
|
3299
|
-
group:
|
|
3300
|
-
header:
|
|
3301
|
-
item:
|
|
3302
|
-
},
|
|
3303
|
-
const { LinkComponent: i, appSearchTexts: l } =
|
|
3298
|
+
groupsContainer: tc,
|
|
3299
|
+
group: nc,
|
|
3300
|
+
header: rc,
|
|
3301
|
+
item: sc
|
|
3302
|
+
}, oc = ({ show: n, query: e, onCancel: t, groups: r, isLoading: s, searchTypes: a }) => {
|
|
3303
|
+
const { LinkComponent: i, appSearchTexts: l } = L(ae), c = q(null), u = S((d) => {
|
|
3304
3304
|
var p;
|
|
3305
|
-
const h = (p = a.find((
|
|
3305
|
+
const h = (p = a.find((f) => f.key === d.type)) == null ? void 0 : p.toPath;
|
|
3306
3306
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3307
3307
|
}, [a]);
|
|
3308
|
-
return
|
|
3308
|
+
return pn([c], t), /* @__PURE__ */ o.jsx("div", { ref: c, className: x("luminus-app-search-dropdown shadow rounded", ge.dropdown, {
|
|
3309
3309
|
[ge.open]: n
|
|
3310
3310
|
}), children: s ? /* @__PURE__ */ o.jsx("div", { className: ge.loadingContainer, children: /* @__PURE__ */ o.jsx(yt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ o.jsx("div", { className: ge.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3311
3311
|
var h;
|
|
3312
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
3313
|
-
/* @__PURE__ */ o.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className:
|
|
3312
|
+
return /* @__PURE__ */ o.jsxs("div", { className: x(ge.group), children: [
|
|
3313
|
+
/* @__PURE__ */ o.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: x("group-header", ge.header), onClick: t, children: [
|
|
3314
3314
|
/* @__PURE__ */ o.jsx(G, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3315
3315
|
/* @__PURE__ */ o.jsxs(G, { variant: "caption", children: [
|
|
3316
3316
|
d.items.length,
|
|
@@ -3320,33 +3320,33 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3320
3320
|
d.key.totalCount
|
|
3321
3321
|
] })
|
|
3322
3322
|
] }),
|
|
3323
|
-
(h = d.items) == null ? void 0 : h.map((p,
|
|
3323
|
+
(h = d.items) == null ? void 0 : h.map((p, f) => /* @__PURE__ */ o.jsxs(
|
|
3324
3324
|
i,
|
|
3325
3325
|
{
|
|
3326
3326
|
to: u(p),
|
|
3327
|
-
className:
|
|
3327
|
+
className: x("search-item d-flex gap-3 align-items-center justify-content-between", ge.item),
|
|
3328
3328
|
onClick: t,
|
|
3329
3329
|
children: [
|
|
3330
3330
|
/* @__PURE__ */ o.jsx(G, { variant: "body2", className: "text-nowrap text-truncate", children: p.name }),
|
|
3331
|
-
/* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ o.jsx(
|
|
3331
|
+
/* @__PURE__ */ o.jsx(G, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ o.jsx(qr, {}) })
|
|
3332
3332
|
]
|
|
3333
3333
|
},
|
|
3334
|
-
|
|
3334
|
+
f
|
|
3335
3335
|
))
|
|
3336
3336
|
] }, d.key.category);
|
|
3337
3337
|
}) }) });
|
|
3338
|
-
},
|
|
3338
|
+
}, ac = "_input-group_1lkfy_1", ic = "_input-group-text_1lkfy_5", cc = "_left_1lkfy_9", lc = "_right_1lkfy_13", uc = "_input_1lkfy_1", dc = "_submit-button_1lkfy_20", xe = {
|
|
3339
3339
|
"input-group": "_input-group_1lkfy_1",
|
|
3340
|
-
inputGroup:
|
|
3340
|
+
inputGroup: ac,
|
|
3341
3341
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3342
|
-
inputGroupText:
|
|
3343
|
-
left:
|
|
3344
|
-
right:
|
|
3345
|
-
input:
|
|
3342
|
+
inputGroupText: ic,
|
|
3343
|
+
left: cc,
|
|
3344
|
+
right: lc,
|
|
3345
|
+
input: uc,
|
|
3346
3346
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3347
|
-
submitButton:
|
|
3348
|
-
},
|
|
3349
|
-
const t =
|
|
3347
|
+
submitButton: dc
|
|
3348
|
+
}, hc = (n, e) => {
|
|
3349
|
+
const t = sn(), [r, s] = O(!1), [a, i] = O([]), l = !n || !n.key, c = S(() => {
|
|
3350
3350
|
if (e.length < 3) {
|
|
3351
3351
|
i([]);
|
|
3352
3352
|
return;
|
|
@@ -3357,171 +3357,198 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3357
3357
|
s(!1);
|
|
3358
3358
|
});
|
|
3359
3359
|
}, [n, e, t, l]);
|
|
3360
|
-
return
|
|
3360
|
+
return D(() => {
|
|
3361
3361
|
c();
|
|
3362
3362
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3363
|
-
},
|
|
3364
|
-
const { appSearchTexts: r } =
|
|
3365
|
-
return
|
|
3366
|
-
(h.length > 0 || d) &&
|
|
3367
|
-
}, [h, d]),
|
|
3363
|
+
}, dl = ({ searchTypes: n, navigateFunction: e, currentPath: t }) => {
|
|
3364
|
+
const { appSearchTexts: r } = L(ae), [s, a] = O(n.length > 0 ? n[0] : null), [i, l] = O(""), [c, u] = ir(i, 500), { isLoading: d, searchItems: h } = hc(s, c), [p, f] = O(!1);
|
|
3365
|
+
return D(() => {
|
|
3366
|
+
(h.length > 0 || d) && f(!0);
|
|
3367
|
+
}, [h, d]), D(() => {
|
|
3368
3368
|
l("");
|
|
3369
|
-
}, [t]), /* @__PURE__ */ o.jsx(Q, { onSubmit: (
|
|
3370
|
-
|
|
3369
|
+
}, [t]), /* @__PURE__ */ o.jsx(Q, { onSubmit: (v) => {
|
|
3370
|
+
v.preventDefault(), v.stopPropagation(), u.flush(), f(!1), i.length > 2 && e(`/search?query=${i}${s && s.key && `&type=${s == null ? void 0 : s.key}`}`);
|
|
3371
3371
|
}, children: /* @__PURE__ */ o.jsxs(tt, { className: xe.inputGroup, children: [
|
|
3372
|
-
/* @__PURE__ */ o.jsx(tt.Text, { className:
|
|
3373
|
-
/* @__PURE__ */ o.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className:
|
|
3374
|
-
var
|
|
3375
|
-
return l(((
|
|
3376
|
-
}, onFocus: () => h.length > 0 &&
|
|
3377
|
-
/* @__PURE__ */ o.jsx(tt.Text, { className:
|
|
3378
|
-
/* @__PURE__ */ o.jsx(
|
|
3372
|
+
/* @__PURE__ */ o.jsx(tt.Text, { className: x("p-1 rounded", xe.inputGroupText, xe.left), children: /* @__PURE__ */ o.jsx(Xi, { searchTypes: n, selectedType: s, setSelectedType: a }) }),
|
|
3373
|
+
/* @__PURE__ */ o.jsx(Q.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", xe.input), value: i, onChange: (v) => {
|
|
3374
|
+
var b;
|
|
3375
|
+
return l(((b = v.target) == null ? void 0 : b.value) ?? "");
|
|
3376
|
+
}, onFocus: () => h.length > 0 && f(!0) }),
|
|
3377
|
+
/* @__PURE__ */ o.jsx(tt.Text, { className: x("p-0 rounded", xe.inputGroupText, xe.right), children: /* @__PURE__ */ o.jsx("button", { type: "submit", className: x("text-primary", xe.submitButton), children: /* @__PURE__ */ o.jsx(qi, {}) }) }),
|
|
3378
|
+
/* @__PURE__ */ o.jsx(oc, { query: c, searchTypes: n, show: p, onCancel: () => f(!1), groups: h, isLoading: d })
|
|
3379
3379
|
] }) });
|
|
3380
|
-
},
|
|
3381
|
-
card:
|
|
3382
|
-
header:
|
|
3380
|
+
}, mc = "_card_19733_1", fc = "_header_19733_6", pc = "_header-content_19733_13", gc = "_title_19733_19", xc = "_collapse-icon_19733_22", wc = "_collapsed_19733_27", vc = "_content_19733_30", we = {
|
|
3381
|
+
card: mc,
|
|
3382
|
+
header: fc,
|
|
3383
3383
|
"header-content": "_header-content_19733_13",
|
|
3384
|
-
headerContent:
|
|
3385
|
-
title:
|
|
3384
|
+
headerContent: pc,
|
|
3385
|
+
title: gc,
|
|
3386
3386
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3387
|
-
collapseIcon:
|
|
3388
|
-
collapsed:
|
|
3389
|
-
content:
|
|
3390
|
-
},
|
|
3391
|
-
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] =
|
|
3392
|
-
return
|
|
3387
|
+
collapseIcon: xc,
|
|
3388
|
+
collapsed: wc,
|
|
3389
|
+
content: vc
|
|
3390
|
+
}, yc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: s, contentClassName: a, ...i }) => {
|
|
3391
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = O(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3392
|
+
return D(() => {
|
|
3393
3393
|
u(l);
|
|
3394
|
-
}, [l]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
3394
|
+
}, [l]), /* @__PURE__ */ o.jsxs("div", { className: x("luminus-card rounded shadow-sm", we.card, {
|
|
3395
3395
|
[r ?? ""]: r
|
|
3396
3396
|
}), children: [
|
|
3397
|
-
/* @__PURE__ */ o.jsxs("div", { role: i.collapsible ? "button" : void 0, className:
|
|
3397
|
+
/* @__PURE__ */ o.jsxs("div", { role: i.collapsible ? "button" : void 0, className: x("header", we.header, {
|
|
3398
3398
|
[s ?? ""]: s
|
|
3399
3399
|
}), onClick: () => {
|
|
3400
3400
|
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3401
3401
|
}, children: [
|
|
3402
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3403
|
-
/* @__PURE__ */ o.jsx(G, { variant: "h6", className:
|
|
3402
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("header-content", we.headerContent), children: [
|
|
3403
|
+
/* @__PURE__ */ o.jsx(G, { variant: "h6", className: x("text-primary", we.title), children: n }),
|
|
3404
3404
|
e ?? null
|
|
3405
3405
|
] }),
|
|
3406
|
-
i.collapsible && /* @__PURE__ */ o.jsx(
|
|
3406
|
+
i.collapsible && /* @__PURE__ */ o.jsx(rn, { className: x(we.collapseIcon, {
|
|
3407
3407
|
[we.collapsed]: d
|
|
3408
3408
|
}) })
|
|
3409
3409
|
] }),
|
|
3410
|
-
/* @__PURE__ */ o.jsx(
|
|
3410
|
+
/* @__PURE__ */ o.jsx(_n, { in: d, children: /* @__PURE__ */ o.jsx("div", { className: x("card-content border-top border-primary", we.content, {
|
|
3411
3411
|
[a ?? ""]: a
|
|
3412
3412
|
}), children: t }) })
|
|
3413
3413
|
] });
|
|
3414
|
-
},
|
|
3415
|
-
lightbox:
|
|
3416
|
-
show:
|
|
3417
|
-
header:
|
|
3414
|
+
}, bc = "_lightbox_14acg_1", _c = "_show_14acg_16", jc = "_header_14acg_20", kc = "_photo-actions_14acg_26", Nc = "_photo-container_14acg_31", Cc = "_photo_14acg_26", Ic = "_nav-button_14acg_41", $c = "_photos-preview_14acg_49", Sc = "_selected_14acg_62", Tc = "_default-indicator_14acg_66", se = {
|
|
3415
|
+
lightbox: bc,
|
|
3416
|
+
show: _c,
|
|
3417
|
+
header: jc,
|
|
3418
3418
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3419
|
-
photoActions:
|
|
3419
|
+
photoActions: kc,
|
|
3420
3420
|
"photo-container": "_photo-container_14acg_31",
|
|
3421
|
-
photoContainer:
|
|
3422
|
-
photo:
|
|
3421
|
+
photoContainer: Nc,
|
|
3422
|
+
photo: Cc,
|
|
3423
3423
|
"nav-button": "_nav-button_14acg_41",
|
|
3424
|
-
navButton:
|
|
3424
|
+
navButton: Ic,
|
|
3425
3425
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3426
|
-
photosPreview:
|
|
3427
|
-
selected:
|
|
3426
|
+
photosPreview: $c,
|
|
3427
|
+
selected: Sc,
|
|
3428
3428
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3429
|
-
defaultIndicator:
|
|
3430
|
-
},
|
|
3431
|
-
backdrop:
|
|
3432
|
-
show:
|
|
3433
|
-
},
|
|
3434
|
-
[
|
|
3435
|
-
}), onClick: () => e && e() }),
|
|
3436
|
-
const
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3429
|
+
defaultIndicator: Tc
|
|
3430
|
+
}, Ec = "_backdrop_3huvf_1", Dc = "_show_3huvf_11", Kt = {
|
|
3431
|
+
backdrop: Ec,
|
|
3432
|
+
show: Dc
|
|
3433
|
+
}, dr = ({ show: n, onClick: e }) => /* @__PURE__ */ o.jsx("div", { className: x("luminus-backdrop", Kt.backdrop, {
|
|
3434
|
+
[Kt.show]: n
|
|
3435
|
+
}), onClick: () => e && e() }), Oc = (n, e, t, r = !0) => {
|
|
3436
|
+
const s = sn({ silent: r, differentBaseUrl: e, customToken: t }), [a, i] = O(!1), [l, c] = O(null), u = S(async (d) => {
|
|
3437
|
+
i(!0), c(null);
|
|
3438
|
+
try {
|
|
3439
|
+
const h = await s.get(n, {
|
|
3440
|
+
signal: d,
|
|
3441
|
+
responseType: "blob"
|
|
3442
|
+
});
|
|
3443
|
+
c(h.data);
|
|
3444
|
+
} finally {
|
|
3445
|
+
i(!1);
|
|
3446
|
+
}
|
|
3447
|
+
}, [s, n]);
|
|
3448
|
+
return D(() => {
|
|
3449
|
+
const d = new AbortController();
|
|
3450
|
+
return u(d.signal), () => {
|
|
3451
|
+
d.abort();
|
|
3452
|
+
};
|
|
3453
|
+
}, [u]), { data: l, setData: c, reloadData: u, isLoading: a };
|
|
3454
|
+
}, hr = ({ src: n, alt: e, baseUrl: t, customToken: r, placeholder: s, ...a }) => {
|
|
3455
|
+
const { data: i, isLoading: l } = Oc(n, t, r), [c, u] = O(null);
|
|
3456
|
+
return D(() => (i !== null && c === null && u(URL.createObjectURL(i)), () => {
|
|
3457
|
+
c !== null && URL.revokeObjectURL(c);
|
|
3458
|
+
}), [i, c]), l || c === null && !s ? null : /* @__PURE__ */ o.jsx("img", { ...a, alt: e ?? "", src: c ?? s });
|
|
3459
|
+
}, Pc = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: s, noPhotosText: a, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: h = hr }) => {
|
|
3460
|
+
const p = q(null), [f, v] = O(r), b = t.at(f), g = f > 0, _ = f < t.length - 1;
|
|
3461
|
+
D(() => {
|
|
3462
|
+
n && v(r);
|
|
3463
|
+
}, [r, n]), D(() => {
|
|
3464
|
+
f >= t.length && v(t.length - 1);
|
|
3465
|
+
}, [t, f]);
|
|
3466
|
+
const k = S((m) => {
|
|
3467
|
+
switch (m.key) {
|
|
3444
3468
|
case "ArrowLeft":
|
|
3445
|
-
|
|
3469
|
+
m.stopPropagation(), g && v((N) => N - 1);
|
|
3446
3470
|
break;
|
|
3447
3471
|
case "ArrowRight":
|
|
3448
|
-
|
|
3472
|
+
m.stopPropagation(), _ && v((N) => N + 1);
|
|
3449
3473
|
break;
|
|
3450
3474
|
case "Escape":
|
|
3451
|
-
|
|
3475
|
+
m.stopPropagation(), e();
|
|
3452
3476
|
break;
|
|
3453
3477
|
}
|
|
3454
|
-
}, [
|
|
3455
|
-
return
|
|
3456
|
-
/* @__PURE__ */ o.jsx(
|
|
3457
|
-
/* @__PURE__ */ o.jsxs("div", { ref:
|
|
3478
|
+
}, [_, g, e]);
|
|
3479
|
+
return fn(k), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3480
|
+
/* @__PURE__ */ o.jsx(dr, { show: n, onClick: e }),
|
|
3481
|
+
/* @__PURE__ */ o.jsxs("div", { ref: p, className: x("luminus-lightbox rounded shadow", se.lightbox, {
|
|
3458
3482
|
[se.show]: n
|
|
3459
3483
|
}), children: [
|
|
3460
3484
|
/* @__PURE__ */ o.jsxs("div", { className: se.header, children: [
|
|
3461
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3462
|
-
i && /* @__PURE__ */ o.jsx(
|
|
3463
|
-
|
|
3464
|
-
}, icon: /* @__PURE__ */ o.jsx(
|
|
3465
|
-
|
|
3485
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("rounded", se.photoActions), children: [
|
|
3486
|
+
i && /* @__PURE__ */ o.jsx(ar, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
3487
|
+
m.length > 0 && i(Array.from(m));
|
|
3488
|
+
}, icon: /* @__PURE__ */ o.jsx(on, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: s ?? null }),
|
|
3489
|
+
b && (l == null ? void 0 : l.map(({ label: m, onClick: N, ...j }, w) => /* @__PURE__ */ o.jsx(
|
|
3466
3490
|
lt,
|
|
3467
3491
|
{
|
|
3468
|
-
onClick: () =>
|
|
3469
|
-
...
|
|
3470
|
-
children:
|
|
3492
|
+
onClick: () => N(b.id),
|
|
3493
|
+
...j,
|
|
3494
|
+
children: m
|
|
3471
3495
|
},
|
|
3472
|
-
`action-${
|
|
3496
|
+
`action-${w}`
|
|
3473
3497
|
)))
|
|
3474
3498
|
] }),
|
|
3475
3499
|
/* @__PURE__ */ o.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ o.jsx(ce, { style: { fontSize: "32px" } }) })
|
|
3476
3500
|
] }),
|
|
3477
3501
|
t.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ o.jsx(G, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3478
|
-
|
|
3479
|
-
/* @__PURE__ */ o.jsx("div", { role:
|
|
3480
|
-
/* @__PURE__ */ o.jsx(
|
|
3481
|
-
/* @__PURE__ */ o.jsx("div", { role:
|
|
3502
|
+
b && /* @__PURE__ */ o.jsxs("div", { className: se.photoContainer, children: [
|
|
3503
|
+
/* @__PURE__ */ o.jsx("div", { role: g ? "button" : void 0, className: x("align-items-start", se.navButton), onClick: () => g && v((m) => m - 1), children: g && /* @__PURE__ */ o.jsx(mt, { style: { fontSize: "40px" } }) }),
|
|
3504
|
+
/* @__PURE__ */ o.jsx(h, { src: b.lgSrc, alt: b.alt, className: x("rounded", se.photo), baseUrl: c, customToken: u, placeholder: d }),
|
|
3505
|
+
/* @__PURE__ */ o.jsx("div", { role: _ ? "button" : void 0, className: x("align-items-end", se.navButton), onClick: () => _ && v((m) => m + 1), children: _ && /* @__PURE__ */ o.jsx(ft, { style: { fontSize: "40px" } }) })
|
|
3482
3506
|
] }),
|
|
3483
|
-
/* @__PURE__ */ o.jsx("div", { className: se.photosPreview, children: t.map((
|
|
3484
|
-
/* @__PURE__ */ o.jsx(
|
|
3485
|
-
[se.selected]:
|
|
3486
|
-
}) },
|
|
3487
|
-
|
|
3507
|
+
/* @__PURE__ */ o.jsx("div", { className: se.photosPreview, children: t.map((m, N) => /* @__PURE__ */ o.jsxs("div", { role: "button", onClick: () => v(N), className: "position-relative", children: [
|
|
3508
|
+
/* @__PURE__ */ o.jsx(h, { role: N !== f ? "button" : void 0, src: m.smSrc, alt: m.alt, className: x("rounded", se.photo, {
|
|
3509
|
+
[se.selected]: N === f
|
|
3510
|
+
}), baseUrl: c, customToken: u, placeholder: d }, m.id),
|
|
3511
|
+
m.isDefault && /* @__PURE__ */ o.jsx("div", { className: x("text-primary", se.defaultIndicator), children: /* @__PURE__ */ o.jsx(Hr, {}) })
|
|
3488
3512
|
] })) })
|
|
3489
3513
|
] })
|
|
3490
3514
|
] });
|
|
3491
|
-
},
|
|
3492
|
-
const [
|
|
3493
|
-
return
|
|
3515
|
+
}, hl = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r, baseUrl: s, customToken: a, placeholder: i, ImgComponent: l = hr }) => {
|
|
3516
|
+
const [c, u] = O(null), d = c !== null ? n[c] : null, [h, p] = O(!1);
|
|
3517
|
+
return D(() => {
|
|
3494
3518
|
if (n.length === 0) {
|
|
3495
|
-
|
|
3519
|
+
u(null), p(!1);
|
|
3496
3520
|
return;
|
|
3497
3521
|
}
|
|
3498
|
-
const
|
|
3499
|
-
|
|
3500
|
-
}, [n]),
|
|
3522
|
+
const f = n.findIndex((v) => v.isDefault);
|
|
3523
|
+
u(f > -1 ? f : 0);
|
|
3524
|
+
}, [n]), d ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3501
3525
|
/* @__PURE__ */ o.jsx(
|
|
3502
|
-
|
|
3526
|
+
l,
|
|
3503
3527
|
{
|
|
3504
3528
|
role: "button",
|
|
3505
|
-
src:
|
|
3506
|
-
alt:
|
|
3529
|
+
src: d.smSrc,
|
|
3530
|
+
alt: d.alt,
|
|
3507
3531
|
className: "rounded w-100",
|
|
3508
|
-
onClick: () =>
|
|
3532
|
+
onClick: () => p(!0),
|
|
3533
|
+
baseUrl: s,
|
|
3534
|
+
customToken: a,
|
|
3535
|
+
placeholder: i
|
|
3509
3536
|
}
|
|
3510
3537
|
),
|
|
3511
|
-
/* @__PURE__ */ o.jsx(
|
|
3512
|
-
] }) : e ? /* @__PURE__ */ o.jsx(
|
|
3513
|
-
|
|
3514
|
-
}, icon: /* @__PURE__ */ o.jsx(
|
|
3515
|
-
},
|
|
3516
|
-
const { NavigateComponent: t } =
|
|
3538
|
+
/* @__PURE__ */ o.jsx(Pc, { show: h, onClose: () => p(!1), photos: n, defaultIndex: c ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r, baseUrl: s, customToken: a, placeholder: i, ImgComponent: l })
|
|
3539
|
+
] }) : e ? /* @__PURE__ */ o.jsx(ar, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
|
|
3540
|
+
f.length > 0 && e(Array.from(f));
|
|
3541
|
+
}, icon: /* @__PURE__ */ o.jsx(on, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3542
|
+
}, ml = ({ appAccessPermissions: n, children: e }) => {
|
|
3543
|
+
const { NavigateComponent: t } = L(ae), { useMsal: r, msalScopes: s } = L(Br), { isAuthenticated: a } = Vr(), { user: i, loggingInProgress: l } = L(Gr), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3517
3544
|
var d;
|
|
3518
3545
|
return (d = i == null ? void 0 : i.permissions) == null ? void 0 : d.includes(u);
|
|
3519
3546
|
}));
|
|
3520
|
-
return r ? /* @__PURE__ */ o.jsx(
|
|
3521
|
-
},
|
|
3547
|
+
return r ? /* @__PURE__ */ o.jsx(Ba, { interactionType: Ye.Redirect, authenticationRequest: { scopes: s }, children: l || !a() ? /* @__PURE__ */ o.jsx(Tt, {}) : i ? c ? /* @__PURE__ */ o.jsx(o.Fragment, { children: e }) : /* @__PURE__ */ o.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ o.jsx(t, { to: "/no-user-login", replace: !0 }) }) : l ? /* @__PURE__ */ o.jsx(Tt, {}) : !a() || !i ? /* @__PURE__ */ o.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ o.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3548
|
+
}, fl = (n) => {
|
|
3522
3549
|
const { variant: e, children: t, className: r, size: s = "md", typographyVariant: a = s === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3523
|
-
return /* @__PURE__ */ o.jsx(
|
|
3524
|
-
},
|
|
3550
|
+
return /* @__PURE__ */ o.jsx(Io, { variant: e, className: `text-center ${s === "sm" ? "p-1" : s === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ o.jsx(G, { variant: a, children: t }) });
|
|
3551
|
+
}, pl = ({ version: n }) => /* @__PURE__ */ o.jsx("div", { className: "rounded", style: {
|
|
3525
3552
|
position: "fixed",
|
|
3526
3553
|
right: "0px",
|
|
3527
3554
|
bottom: "0px",
|
|
@@ -3532,83 +3559,83 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3532
3559
|
}, children: /* @__PURE__ */ o.jsxs(G, { variant: "caption", className: "w-100 text-end", children: [
|
|
3533
3560
|
"verze ",
|
|
3534
3561
|
n
|
|
3535
|
-
] }) }),
|
|
3562
|
+
] }) }), Ac = "_submit-container_a9slg_1", Mc = "_spacer_a9slg_14", Qt = {
|
|
3536
3563
|
"submit-container": "_submit-container_a9slg_1",
|
|
3537
|
-
submitContainer:
|
|
3538
|
-
spacer:
|
|
3539
|
-
},
|
|
3540
|
-
!e && /* @__PURE__ */ o.jsx("div", { className:
|
|
3541
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3542
|
-
] }),
|
|
3543
|
-
timeline:
|
|
3564
|
+
submitContainer: Ac,
|
|
3565
|
+
spacer: Mc
|
|
3566
|
+
}, Fc = ({ children: n, noSpacer: e = !1 }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3567
|
+
!e && /* @__PURE__ */ o.jsx("div", { className: Qt.spacer }),
|
|
3568
|
+
/* @__PURE__ */ o.jsx("div", { className: x("luminus-floating-action-container shadow", Qt.submitContainer), children: n })
|
|
3569
|
+
] }), Wc = "_timeline_g1754_1", Rc = "_step-container_g1754_1", Lc = "_step-date_g1754_1", Yc = "_step-content_g1754_4", qc = "_content-header_g1754_8", Hc = "_content-text_g1754_11", Bc = "_step-icon_g1754_14", ve = {
|
|
3570
|
+
timeline: Wc,
|
|
3544
3571
|
"step-container": "_step-container_g1754_1",
|
|
3545
|
-
stepContainer:
|
|
3572
|
+
stepContainer: Rc,
|
|
3546
3573
|
"step-date": "_step-date_g1754_1",
|
|
3547
|
-
stepDate:
|
|
3574
|
+
stepDate: Lc,
|
|
3548
3575
|
"step-content": "_step-content_g1754_4",
|
|
3549
|
-
stepContent:
|
|
3576
|
+
stepContent: Yc,
|
|
3550
3577
|
"content-header": "_content-header_g1754_8",
|
|
3551
|
-
contentHeader:
|
|
3578
|
+
contentHeader: qc,
|
|
3552
3579
|
"content-text": "_content-text_g1754_11",
|
|
3553
|
-
contentText:
|
|
3580
|
+
contentText: Hc,
|
|
3554
3581
|
"step-icon": "_step-icon_g1754_14",
|
|
3555
|
-
stepIcon:
|
|
3556
|
-
},
|
|
3557
|
-
/* @__PURE__ */ o.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ o.jsxs(G, { variant: "caption", className:
|
|
3582
|
+
stepIcon: Bc
|
|
3583
|
+
}, gl = ({ steps: n }) => /* @__PURE__ */ o.jsx("div", { className: ve.timeline, children: n.sort((e, t) => us(e.date ?? /* @__PURE__ */ new Date(), t.date ?? /* @__PURE__ */ new Date())).map((e, t) => /* @__PURE__ */ o.jsxs("div", { className: x("row g-0 gx-3", ve.stepContainer), children: [
|
|
3584
|
+
/* @__PURE__ */ o.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ o.jsxs(G, { variant: "caption", className: x("h-100 d-flex flex-column align-items-end justify-content-center gap-0", ve.stepDate), children: [
|
|
3558
3585
|
/* @__PURE__ */ o.jsx("div", { children: ot(e.date, "dd.MM.yyyy") }),
|
|
3559
3586
|
/* @__PURE__ */ o.jsx("div", { children: ot(e.date, "HH:mm") })
|
|
3560
3587
|
] }) }),
|
|
3561
|
-
/* @__PURE__ */ o.jsx("div", { className: "col-9", children: /* @__PURE__ */ o.jsxs("div", { className:
|
|
3562
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3563
|
-
e.person && /* @__PURE__ */ o.jsx(
|
|
3588
|
+
/* @__PURE__ */ o.jsx("div", { className: "col-9", children: /* @__PURE__ */ o.jsxs("div", { className: x("h-100 d-flex flex-column gap-1 border-start border-2 p-3", ve.stepContent), children: [
|
|
3589
|
+
/* @__PURE__ */ o.jsxs("div", { className: x("d-flex gap-2 align-items-center", ve.contentHeader), children: [
|
|
3590
|
+
e.person && /* @__PURE__ */ o.jsx(an, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3564
3591
|
typeof e.title == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3565
3592
|
] }),
|
|
3566
3593
|
e.text && /* @__PURE__ */ o.jsx(G, { variant: "body2", className: ve.contentText, children: e.text }),
|
|
3567
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3594
|
+
/* @__PURE__ */ o.jsx("div", { className: x("text-primary", ve.stepIcon), children: e.icon ?? /* @__PURE__ */ o.jsx(zr, {}) })
|
|
3568
3595
|
] }) })
|
|
3569
|
-
] }, t)) }),
|
|
3596
|
+
] }, t)) }), xl = ({ src: n, alt: e, baseUrl: t, customToken: r, placeholder: s, ...a }) => /* @__PURE__ */ o.jsx("img", { ...a, alt: e ?? "", src: n ?? s }), wl = ({ heading: n, content: e, placement: t, children: r, trigger: s }) => /* @__PURE__ */ o.jsx(Ur, { placement: t, overlay: /* @__PURE__ */ o.jsxs(Je, { className: "luminus-popover", children: [
|
|
3570
3597
|
/* @__PURE__ */ o.jsx(Je.Header, { children: typeof n == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3571
3598
|
/* @__PURE__ */ o.jsx(Je.Body, { children: e })
|
|
3572
|
-
] }), trigger: s ?? "hover", rootClose: !0, children: r }),
|
|
3573
|
-
const { LinkComponent: r } =
|
|
3599
|
+
] }), trigger: s ?? "hover", rootClose: !0, children: r }), mr = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
3600
|
+
const { LinkComponent: r } = L(ae);
|
|
3574
3601
|
if (!n || !n.id || !e)
|
|
3575
3602
|
return /* @__PURE__ */ o.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3576
3603
|
const s = e(n);
|
|
3577
3604
|
return /* @__PURE__ */ o.jsx(r, { to: s, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3578
|
-
},
|
|
3605
|
+
}, vl = ({ InputContainer: n = ke, label: e, value: t, onChange: r, hidden: s, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ o.jsx(n, { isForCheckInput: !0, hidden: s, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ o.jsx(Q.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3579
3606
|
var d;
|
|
3580
3607
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3581
|
-
}, className: i ?? "", hidden: s ?? !1, disabled: a ?? !1 }) }),
|
|
3608
|
+
}, className: i ?? "", hidden: s ?? !1, disabled: a ?? !1 }) }), yl = ({ InputContainer: n = ke, type: e, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: p, list: f, className: v, step: b, noSelectOnFocus: g }) => {
|
|
3582
3609
|
const _ = e === "number", k = S(() => {
|
|
3583
3610
|
if (!r)
|
|
3584
3611
|
return;
|
|
3585
3612
|
const y = p ?? null;
|
|
3586
3613
|
r(_ ? y ? Number(y) : null : (y == null ? void 0 : y.toString()) ?? "");
|
|
3587
|
-
}, [p, _, r]), m = q(null), [N, j] =
|
|
3614
|
+
}, [p, _, r]), m = q(null), [N, j] = O((t == null ? void 0 : t.toString()) ?? ""), w = S((y) => {
|
|
3588
3615
|
const C = y;
|
|
3589
3616
|
r && (_ && r(C == null || C === "" ? null : Number(C)), r(C || null));
|
|
3590
3617
|
}, [_, r]), $ = S((y) => {
|
|
3591
3618
|
var F;
|
|
3592
3619
|
const C = (F = y.target) == null ? void 0 : F.value;
|
|
3593
3620
|
if (!s) {
|
|
3594
|
-
|
|
3621
|
+
w(C);
|
|
3595
3622
|
return;
|
|
3596
3623
|
}
|
|
3597
3624
|
j(C), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
3598
|
-
|
|
3625
|
+
w(C);
|
|
3599
3626
|
}, s);
|
|
3600
|
-
}, [s,
|
|
3601
|
-
|
|
3627
|
+
}, [s, w]);
|
|
3628
|
+
D(() => {
|
|
3602
3629
|
j(t === null ? "" : t.toString());
|
|
3603
3630
|
}, [t]);
|
|
3604
|
-
const [
|
|
3605
|
-
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className:
|
|
3606
|
-
/* @__PURE__ */ o.jsx(Q.Control, { type: T, placeholder: l ?? a, size: c, value: s ? N : t ?? "", onChange: $, className:
|
|
3607
|
-
I(!0), !
|
|
3608
|
-
}, onBlur: () => I(!1), step:
|
|
3631
|
+
const [P, I] = O(!1), T = gn(e, t ? t.toString() ?? null : null, P);
|
|
3632
|
+
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className: v, children: [
|
|
3633
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: T, placeholder: l ?? a, size: c, value: s ? N : t ?? "", onChange: $, className: v ?? "", hidden: u, disabled: d ?? !1, list: f, onFocus: (y) => {
|
|
3634
|
+
I(!0), !g && y.target.select();
|
|
3635
|
+
}, onBlur: () => I(!1), step: b }),
|
|
3609
3636
|
h && t && r && !d && /* @__PURE__ */ o.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3610
3637
|
] });
|
|
3611
|
-
},
|
|
3638
|
+
}, bl = ({
|
|
3612
3639
|
InputContainer: n = ke,
|
|
3613
3640
|
value: e,
|
|
3614
3641
|
options: t,
|
|
@@ -3622,78 +3649,78 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3622
3649
|
showClearIcon: d,
|
|
3623
3650
|
clearValue: h,
|
|
3624
3651
|
noSortOptions: p,
|
|
3625
|
-
className:
|
|
3626
|
-
noEmptyOption:
|
|
3652
|
+
className: f,
|
|
3653
|
+
noEmptyOption: v
|
|
3627
3654
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3628
3655
|
}) => {
|
|
3629
|
-
const
|
|
3656
|
+
const b = S(() => {
|
|
3630
3657
|
if (!r)
|
|
3631
3658
|
return;
|
|
3632
|
-
const
|
|
3633
|
-
r(i ?
|
|
3659
|
+
const g = h ?? null;
|
|
3660
|
+
r(i ? g ? Number(g) : null : (g == null ? void 0 : g.toString()) ?? "");
|
|
3634
3661
|
}, [h, i, r]);
|
|
3635
|
-
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: a, label: s ?? "", hidden: c, className:
|
|
3636
|
-
/* @__PURE__ */ o.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (
|
|
3662
|
+
return /* @__PURE__ */ o.jsxs(n, { withoutLabel: a, label: s ?? "", hidden: c, className: f, children: [
|
|
3663
|
+
/* @__PURE__ */ o.jsxs(Q.Select, { size: l, value: e ?? "", onChange: (g) => {
|
|
3637
3664
|
var k;
|
|
3638
3665
|
if (!r)
|
|
3639
3666
|
return;
|
|
3640
|
-
const _ = (k =
|
|
3667
|
+
const _ = (k = g.target) == null ? void 0 : k.value;
|
|
3641
3668
|
i && r(_ ? parseInt(_, 10) : null), r(_ || null);
|
|
3642
|
-
}, className:
|
|
3643
|
-
|
|
3644
|
-
t == null ? void 0 : t.sort((
|
|
3669
|
+
}, className: f ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3670
|
+
v && !(e == null || e === "") ? void 0 : /* @__PURE__ */ o.jsx("option", { value: "" }),
|
|
3671
|
+
t == null ? void 0 : t.sort((g, _) => p ? 0 : (g.name ?? "").localeCompare(_.name ?? "")).map((g) => /* @__PURE__ */ o.jsx("option", { value: g.id ?? "", children: g.name }, g.id))
|
|
3645
3672
|
] }),
|
|
3646
|
-
d && e && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick:
|
|
3673
|
+
d && e && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3647
3674
|
] });
|
|
3648
|
-
},
|
|
3675
|
+
}, _l = ({ InputContainer: n = ke, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: p, additionalColumns: f, hidden: v, disabled: b, displayIdAsName: g, CustomOnChangeComponent: _, className: k }) => {
|
|
3649
3676
|
var C, F;
|
|
3650
|
-
const [m, N] =
|
|
3651
|
-
|
|
3677
|
+
const [m, N] = O(t), [j, w] = O(!1);
|
|
3678
|
+
D(() => {
|
|
3652
3679
|
N(t);
|
|
3653
3680
|
}, [t]);
|
|
3654
3681
|
const $ = S((R) => {
|
|
3655
3682
|
N(R);
|
|
3656
|
-
}, []),
|
|
3657
|
-
|
|
3683
|
+
}, []), P = S((R) => {
|
|
3684
|
+
w(!1), $(R);
|
|
3658
3685
|
}, [$]);
|
|
3659
|
-
|
|
3686
|
+
D(() => {
|
|
3660
3687
|
c && c(m);
|
|
3661
3688
|
}, [m, c]);
|
|
3662
3689
|
const I = q(null), T = r !== void 0, y = T && m !== null;
|
|
3663
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { withoutLabel: d, label: u ?? "", hidden:
|
|
3664
|
-
/* @__PURE__ */ o.jsxs(
|
|
3665
|
-
|
|
3690
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: v, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: k, children: [
|
|
3691
|
+
/* @__PURE__ */ o.jsxs(mr, { currentSelection: m, selectedItemNavigateTo: r, children: [
|
|
3692
|
+
g && (m == null ? void 0 : m.name) && /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: m.name }),
|
|
3666
3693
|
/* @__PURE__ */ o.jsxs(Q.Select, { ref: I, size: h, value: (m == null ? void 0 : m.id) ?? "", onChange: (R) => N({
|
|
3667
3694
|
id: l ? Number(R.target.value) ?? null : R.target.value,
|
|
3668
3695
|
name: ""
|
|
3669
3696
|
}), onMouseDown: (R) => {
|
|
3670
3697
|
R.currentTarget.focus(), R.preventDefault();
|
|
3671
3698
|
}, onClick: () => {
|
|
3672
|
-
!T && !
|
|
3673
|
-
}, className:
|
|
3674
|
-
"luminus-dropdown-picker-disabled":
|
|
3699
|
+
!T && !b && w(!0);
|
|
3700
|
+
}, className: x("w-100", {
|
|
3701
|
+
"luminus-dropdown-picker-disabled": b,
|
|
3675
3702
|
"luminus-dropdown-picker-link": y
|
|
3676
|
-
}), hidden:
|
|
3703
|
+
}), hidden: v, children: [
|
|
3677
3704
|
/* @__PURE__ */ o.jsx("option", { value: "" }),
|
|
3678
3705
|
t && /* @__PURE__ */ o.jsx("option", { value: t.id ?? void 0, children: t.name && ((C = t.name) == null ? void 0 : C.length) > 0 ? t.name : t.id }),
|
|
3679
3706
|
m && /* @__PURE__ */ o.jsx("option", { value: m.id ?? void 0, children: m.name && ((F = m.name) == null ? void 0 : F.length) > 0 ? m.name : m.id })
|
|
3680
3707
|
] }),
|
|
3681
|
-
_ || !
|
|
3682
|
-
!_ && !
|
|
3683
|
-
R.preventDefault(), R.stopPropagation(),
|
|
3684
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3708
|
+
_ || !b && T ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
|
|
3709
|
+
!_ && !b && T && /* @__PURE__ */ o.jsx(z, { size: "sm", color: "secondary", onClick: (R) => {
|
|
3710
|
+
R.preventDefault(), R.stopPropagation(), w(!0);
|
|
3711
|
+
}, children: /* @__PURE__ */ o.jsx(cn, {}) }),
|
|
3685
3712
|
_ ?? null
|
|
3686
3713
|
] }) : null
|
|
3687
3714
|
] }),
|
|
3688
|
-
I.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () =>
|
|
3715
|
+
I.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () => w(!1), items: e, currentSelection: m, onSelectionChange: P, onSearchQueryChange: s, texts: a, itemsNameWidth: p, additionalColumns: f, isLoading: i, disabled: b, inputRef: I })
|
|
3689
3716
|
] }) });
|
|
3690
|
-
},
|
|
3691
|
-
const
|
|
3717
|
+
}, jl = ({ InputContainer: n = ke, value: e, onChange: t, label: r, size: s, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: p }) => {
|
|
3718
|
+
const f = S(() => {
|
|
3692
3719
|
if (!t)
|
|
3693
3720
|
return;
|
|
3694
3721
|
const m = i ?? null;
|
|
3695
3722
|
t((m == null ? void 0 : m.toString()) ?? "");
|
|
3696
|
-
}, [i, t]),
|
|
3723
|
+
}, [i, t]), v = q(null), [b, g] = O((e == null ? void 0 : e.toString()) ?? ""), _ = S((m) => {
|
|
3697
3724
|
const N = m;
|
|
3698
3725
|
t && t(N || null);
|
|
3699
3726
|
}, [t]), k = S((m) => {
|
|
@@ -3703,153 +3730,153 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3703
3730
|
_(N);
|
|
3704
3731
|
return;
|
|
3705
3732
|
}
|
|
3706
|
-
|
|
3733
|
+
g(N), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
3707
3734
|
_(N);
|
|
3708
3735
|
}, h);
|
|
3709
3736
|
}, [h, _]);
|
|
3710
|
-
return
|
|
3711
|
-
|
|
3737
|
+
return D(() => {
|
|
3738
|
+
g(e === null ? "" : e.toString());
|
|
3712
3739
|
}, [e]), /* @__PURE__ */ o.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className: p, isForTextAreaInput: !0, children: [
|
|
3713
|
-
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, value: h ?
|
|
3714
|
-
a && e && t && !c && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick:
|
|
3740
|
+
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, value: h ? b : e ?? "", onChange: k, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3741
|
+
a && e && t && !c && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: f, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3715
3742
|
] });
|
|
3716
|
-
},
|
|
3717
|
-
const
|
|
3743
|
+
}, kl = ({ InputContainer: n = ke, value: e, onChange: t, debounceMs: r, label: s, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: p, step: f, stepperStep: v = 1 }) => {
|
|
3744
|
+
const b = S(() => {
|
|
3718
3745
|
if (!t)
|
|
3719
3746
|
return;
|
|
3720
3747
|
const j = h ?? null;
|
|
3721
3748
|
t(j ? Number(j) : null);
|
|
3722
|
-
}, [h, t]),
|
|
3723
|
-
const
|
|
3724
|
-
t && t(
|
|
3749
|
+
}, [h, t]), g = q(null), [_, k] = O((e == null ? void 0 : e.toString()) ?? ""), m = S((j) => {
|
|
3750
|
+
const w = j;
|
|
3751
|
+
t && t(w == null || w === "" ? null : Number(w));
|
|
3725
3752
|
}, [t]), N = S((j) => {
|
|
3726
3753
|
var $;
|
|
3727
|
-
const
|
|
3754
|
+
const w = ($ = j.target) == null ? void 0 : $.value;
|
|
3728
3755
|
if (!r) {
|
|
3729
|
-
m(
|
|
3756
|
+
m(w);
|
|
3730
3757
|
return;
|
|
3731
3758
|
}
|
|
3732
|
-
k(
|
|
3733
|
-
m(
|
|
3759
|
+
k(w), g.current !== null && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
3760
|
+
m(w);
|
|
3734
3761
|
}, r);
|
|
3735
3762
|
}, [r, m]);
|
|
3736
|
-
return
|
|
3763
|
+
return D(() => {
|
|
3737
3764
|
k(e === null ? "" : e.toString());
|
|
3738
3765
|
}, [e]), /* @__PURE__ */ o.jsx(n, { withoutLabel: a, label: s ?? "", hidden: c, className: p, children: /* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3739
|
-
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: i ?? s, size: l, value: r ? _ : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: u ?? !1, step:
|
|
3766
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: i ?? s, size: l, value: r ? _ : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: u ?? !1, step: f }),
|
|
3740
3767
|
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (j) => {
|
|
3741
|
-
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) -
|
|
3742
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3768
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) - v).toString());
|
|
3769
|
+
}, children: /* @__PURE__ */ o.jsx(cr, {}) }) }),
|
|
3743
3770
|
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (j) => {
|
|
3744
|
-
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) +
|
|
3745
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3746
|
-
d && e && t && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick:
|
|
3771
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) + v).toString());
|
|
3772
|
+
}, children: /* @__PURE__ */ o.jsx(lr, {}) }) }),
|
|
3773
|
+
d && e && t && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ o.jsx(ce, {}) }) })
|
|
3747
3774
|
] }) });
|
|
3748
|
-
},
|
|
3749
|
-
const { register: d, formState: h, setValue: p } = le(), [
|
|
3750
|
-
|
|
3775
|
+
}, Nl = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, type: s, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3776
|
+
const { register: d, formState: h, setValue: p } = le(), [f, v] = O(void 0), [b, g] = O(!1);
|
|
3777
|
+
D(() => {
|
|
3751
3778
|
const k = e.split(".");
|
|
3752
3779
|
let m = h.errors;
|
|
3753
3780
|
k.forEach((N) => {
|
|
3754
3781
|
m !== void 0 && (m = m[N]);
|
|
3755
|
-
}),
|
|
3756
|
-
}, [h, e]),
|
|
3757
|
-
h.isSubmitted &&
|
|
3782
|
+
}), v(m);
|
|
3783
|
+
}, [h, e]), D(() => {
|
|
3784
|
+
h.isSubmitted && g(!0);
|
|
3758
3785
|
}, [h]);
|
|
3759
|
-
const _ =
|
|
3786
|
+
const _ = f !== void 0;
|
|
3760
3787
|
return /* @__PURE__ */ o.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: _, withoutLabel: c, className: u, children: [
|
|
3761
3788
|
/* @__PURE__ */ o.jsx(Q.Check, { id: `check-${e}`, type: s ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...d(e, {
|
|
3762
3789
|
onChange: () => {
|
|
3763
|
-
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate:
|
|
3790
|
+
r && r.forEach((k) => p(k, null, { shouldDirty: !0, shouldValidate: b }));
|
|
3764
3791
|
}
|
|
3765
3792
|
}), isInvalid: _, hidden: i, disabled: l, className: "w-100" }),
|
|
3766
|
-
|
|
3793
|
+
f && /* @__PURE__ */ o.jsx(pe, { message: f.message })
|
|
3767
3794
|
] });
|
|
3768
|
-
},
|
|
3769
|
-
const { register: u, formState: d, setValue: h, watch: p } = le(), [
|
|
3770
|
-
|
|
3795
|
+
}, Cl = ({ InputContainer: n = fe, label: e, formField: t, options: r, resetsFields: s, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3796
|
+
const { register: u, formState: d, setValue: h, watch: p } = le(), [f, v] = O(void 0), [b, g] = O(!1), _ = K(() => r, [r]);
|
|
3797
|
+
D(() => {
|
|
3771
3798
|
const m = t.split(".");
|
|
3772
3799
|
let N = d.errors;
|
|
3773
3800
|
m.forEach((j) => {
|
|
3774
3801
|
N !== void 0 && (N = N[j]);
|
|
3775
|
-
}),
|
|
3776
|
-
}, [d, t]),
|
|
3777
|
-
d.isSubmitted &&
|
|
3802
|
+
}), v(N);
|
|
3803
|
+
}, [d, t]), D(() => {
|
|
3804
|
+
d.isSubmitted && g(!0);
|
|
3778
3805
|
}, [d]);
|
|
3779
|
-
const k =
|
|
3806
|
+
const k = f !== void 0;
|
|
3780
3807
|
return /* @__PURE__ */ o.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: k, className: c, children: [
|
|
3781
3808
|
_.map((m) => /* @__PURE__ */ o.jsx(Q.Check, { id: `radio-${m.id}`, label: m.name, type: "radio", value: m.id ?? "", checked: p(t) === m.id, ...u(t, {
|
|
3782
3809
|
onChange: () => {
|
|
3783
|
-
s && s.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate:
|
|
3810
|
+
s && s.forEach((N) => h(N, null, { shouldDirty: !0, shouldValidate: b }));
|
|
3784
3811
|
}
|
|
3785
3812
|
}), isInvalid: k, hidden: l, disabled: i, className: "w-100" }, m.id)),
|
|
3786
|
-
|
|
3813
|
+
f && /* @__PURE__ */ o.jsx(pe, { message: f.message })
|
|
3787
3814
|
] });
|
|
3788
|
-
},
|
|
3789
|
-
const { register:
|
|
3815
|
+
}, Il = ({ InputContainer: n = fe, formField: e, label: t, resetsFields: r, size: s, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: p, className: f }) => {
|
|
3816
|
+
const { register: v, formState: b, setValue: g, watch: _ } = le(), [k, m] = O(void 0), [N, j] = O(!1), w = S(() => {
|
|
3790
3817
|
const I = i ?? null;
|
|
3791
|
-
|
|
3792
|
-
}, [i,
|
|
3818
|
+
g(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
3819
|
+
}, [i, g, e, N]), $ = S(() => {
|
|
3793
3820
|
const I = e.split(".");
|
|
3794
|
-
let T =
|
|
3821
|
+
let T = b.errors;
|
|
3795
3822
|
I.forEach((y) => {
|
|
3796
3823
|
T !== void 0 && (T = T[y]);
|
|
3797
3824
|
}), m(T);
|
|
3798
|
-
}, [
|
|
3799
|
-
|
|
3825
|
+
}, [b, e]);
|
|
3826
|
+
D(() => {
|
|
3800
3827
|
$();
|
|
3801
|
-
}, [$]),
|
|
3802
|
-
|
|
3803
|
-
}, [
|
|
3804
|
-
const
|
|
3805
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid:
|
|
3806
|
-
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, ...
|
|
3828
|
+
}, [$]), D(() => {
|
|
3829
|
+
b.isSubmitted && j(!0);
|
|
3830
|
+
}, [b]);
|
|
3831
|
+
const P = k !== void 0;
|
|
3832
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: f, isForTextAreaInput: !0, children: [
|
|
3833
|
+
/* @__PURE__ */ o.jsx(Q.Control, { as: "textarea", size: s, ...v(e, {
|
|
3807
3834
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3808
3835
|
onChange: () => {
|
|
3809
|
-
r && r.forEach((I) =>
|
|
3836
|
+
r && r.forEach((I) => g(I, null, { shouldDirty: !0, shouldValidate: N }));
|
|
3810
3837
|
}
|
|
3811
|
-
}), isInvalid:
|
|
3812
|
-
a && _(e) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick:
|
|
3838
|
+
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...p }),
|
|
3839
|
+
a && _(e) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3813
3840
|
k && /* @__PURE__ */ o.jsx(pe, { message: k.message })
|
|
3814
3841
|
] });
|
|
3815
|
-
},
|
|
3816
|
-
const { register: k, formState: m, setValue: N, watch: j } = le(), [
|
|
3817
|
-
const
|
|
3818
|
-
e === "number" ? N(t,
|
|
3842
|
+
}, $l = ({ InputContainer: n = fe, type: e, formField: t, label: r, placeholder: s, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: p, list: f, step: v, CustomOnChangeComponent: b, noSelectOnFocus: g, className: _ }) => {
|
|
3843
|
+
const { register: k, formState: m, setValue: N, watch: j } = le(), [w, $] = O(void 0), [P, I] = O(!1), T = S(() => {
|
|
3844
|
+
const M = c ?? null;
|
|
3845
|
+
e === "number" ? N(t, M !== null ? Number(M) : null, {
|
|
3819
3846
|
shouldDirty: !0,
|
|
3820
|
-
shouldValidate:
|
|
3821
|
-
}) : N(t, (
|
|
3822
|
-
}, [c, e, N, t,
|
|
3823
|
-
const
|
|
3847
|
+
shouldValidate: P
|
|
3848
|
+
}) : N(t, (M == null ? void 0 : M.toString()) ?? "", { shouldDirty: !0, shouldValidate: P });
|
|
3849
|
+
}, [c, e, N, t, P]), y = S(() => {
|
|
3850
|
+
const M = t.split(".");
|
|
3824
3851
|
let re = m.errors;
|
|
3825
|
-
|
|
3852
|
+
M.forEach((ee) => {
|
|
3826
3853
|
re !== void 0 && (re = re[ee]);
|
|
3827
3854
|
}), $(re);
|
|
3828
3855
|
}, [m, t]);
|
|
3829
|
-
|
|
3856
|
+
D(() => {
|
|
3830
3857
|
y();
|
|
3831
|
-
}, [y]),
|
|
3858
|
+
}, [y]), D(() => {
|
|
3832
3859
|
m.isSubmitted && I(!0);
|
|
3833
3860
|
}, [m]);
|
|
3834
|
-
const C =
|
|
3861
|
+
const C = w !== void 0, [F, R] = O(!1), H = j(t), Z = gn(e, H ?? null, F);
|
|
3835
3862
|
return /* @__PURE__ */ o.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: p, isInvalid: C, className: _, children: [
|
|
3836
3863
|
/* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3837
|
-
/* @__PURE__ */ o.jsx(Q.Control, { type: Z, placeholder: s ?? r, size: a, onFocus: (
|
|
3838
|
-
R(!0), !
|
|
3864
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: Z, placeholder: s ?? r, size: a, onFocus: (M) => {
|
|
3865
|
+
R(!0), !g && M.target.select();
|
|
3839
3866
|
}, ...k(t, {
|
|
3840
|
-
setValueAs: (
|
|
3867
|
+
setValueAs: (M) => e === "number" ? M == null || M === "" ? null : Number(M) : M == null || M === "" ? null : M,
|
|
3841
3868
|
onChange: () => {
|
|
3842
|
-
i && i.forEach((
|
|
3869
|
+
i && i.forEach((M) => N(M, null, { shouldDirty: !0, shouldValidate: P }));
|
|
3843
3870
|
},
|
|
3844
3871
|
onBlur: () => R(!1)
|
|
3845
|
-
}), isInvalid: C, hidden: d, disabled: h, list:
|
|
3846
|
-
|
|
3872
|
+
}), isInvalid: C, hidden: d, disabled: h, list: f, className: "w-100", step: v }),
|
|
3873
|
+
b && /* @__PURE__ */ o.jsx("div", { className: "custom-picker-button", children: b })
|
|
3847
3874
|
] }),
|
|
3848
3875
|
l && j(t) && /* @__PURE__ */ o.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: T, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3849
|
-
|
|
3876
|
+
w && /* @__PURE__ */ o.jsx(pe, { message: w.message })
|
|
3850
3877
|
] });
|
|
3851
|
-
},
|
|
3852
|
-
const { formState: j, setValue:
|
|
3878
|
+
}, Sl = ({ InputContainer: n = fe, formField: e, label: t, size: r, defaultSelection: s, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: p, texts: f, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: g, additionalColumns: _, CustomOnChangeComponent: k, displayIdAsName: m, className: N }) => {
|
|
3879
|
+
const { formState: j, setValue: w, watch: $, control: P } = le(), [I, T] = O(void 0), [y, C] = O(!1), [F, R] = O(!1), H = $(e) ?? null, Z = H === (s == null ? void 0 : s.id) ? s == null ? void 0 : s.name : $(`${e}-DropdownName`), M = K(() => H == null ? null : { id: H ?? null, name: Z ?? "" }, [H, Z]), re = S(() => {
|
|
3853
3880
|
const B = e.split(".");
|
|
3854
3881
|
let ue = j.errors;
|
|
3855
3882
|
B.forEach((Qe) => {
|
|
@@ -3858,245 +3885,247 @@ const qi = "_item_1dy8x_1", cr = {
|
|
|
3858
3885
|
}, [j, e]), ee = S((B) => {
|
|
3859
3886
|
if ((B == null ? void 0 : B.id) === H)
|
|
3860
3887
|
return;
|
|
3861
|
-
if (a && a.forEach((Qe) =>
|
|
3862
|
-
|
|
3888
|
+
if (a && a.forEach((Qe) => w(Qe, null, { shouldDirty: !0, shouldValidate: F })), B === null) {
|
|
3889
|
+
w(e, null, {
|
|
3863
3890
|
shouldDirty: !0,
|
|
3864
3891
|
shouldValidate: F
|
|
3865
|
-
}),
|
|
3892
|
+
}), w(`${e}-DropdownName`, null);
|
|
3866
3893
|
return;
|
|
3867
3894
|
}
|
|
3868
3895
|
let ue = null;
|
|
3869
|
-
i ? ue = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : ue = B.id === null || B.id === void 0 || B.id === "" ? null : B.id,
|
|
3896
|
+
i ? ue = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : ue = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, w(e, ue, {
|
|
3870
3897
|
shouldDirty: !0,
|
|
3871
3898
|
shouldValidate: F
|
|
3872
|
-
}),
|
|
3873
|
-
}, [
|
|
3899
|
+
}), w(`${e}-DropdownName`, B.name ?? "");
|
|
3900
|
+
}, [w, e, F, i, a, H]), U = S((B) => {
|
|
3874
3901
|
C(!1), ee(B);
|
|
3875
3902
|
}, [ee]), E = S(() => {
|
|
3876
3903
|
C(!1);
|
|
3877
3904
|
}, []);
|
|
3878
|
-
|
|
3905
|
+
D(() => {
|
|
3879
3906
|
re();
|
|
3880
|
-
}, [re]),
|
|
3907
|
+
}, [re]), D(() => {
|
|
3881
3908
|
j.isSubmitted && R(!0);
|
|
3882
3909
|
}, [j]);
|
|
3883
|
-
const
|
|
3884
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
3885
|
-
/* @__PURE__ */ o.jsxs(
|
|
3886
|
-
m && (
|
|
3887
|
-
/* @__PURE__ */ o.jsx(
|
|
3910
|
+
const A = q(null), X = I !== void 0, Pe = p !== void 0, fr = Pe && M !== null;
|
|
3911
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: g, isInvalid: X, inputContainerClassName: x({ "luminus-dropdown-select-open": y }), className: N, children: [
|
|
3912
|
+
/* @__PURE__ */ o.jsxs(mr, { currentSelection: M, selectedItemNavigateTo: p, children: [
|
|
3913
|
+
m && (M == null ? void 0 : M.name) && /* @__PURE__ */ o.jsx(G, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: M.name }),
|
|
3914
|
+
/* @__PURE__ */ o.jsx(mn, { control: P, name: e, render: () => /* @__PURE__ */ o.jsx(Q.Select, { size: r, onMouseDown: (B) => {
|
|
3888
3915
|
B.currentTarget.focus(), B.preventDefault();
|
|
3889
3916
|
}, onClick: () => {
|
|
3890
3917
|
!Pe && !u && C(!0);
|
|
3891
|
-
}, ref:
|
|
3892
|
-
}, isInvalid: X, hidden: c, className:
|
|
3918
|
+
}, ref: A, value: H ?? "", onChange: () => {
|
|
3919
|
+
}, isInvalid: X, hidden: c, className: x("w-100", {
|
|
3893
3920
|
"luminus-dropdown-picker-disabled": u,
|
|
3894
|
-
"luminus-dropdown-picker-link":
|
|
3921
|
+
"luminus-dropdown-picker-link": fr
|
|
3895
3922
|
}), children: /* @__PURE__ */ o.jsx("option", { value: H, children: m ? H : (Z == null ? void 0 : Z.length) > 0 ? Z : H }) }) }),
|
|
3896
3923
|
k || !u && Pe ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
|
|
3897
3924
|
!k && !u && Pe && /* @__PURE__ */ o.jsx(z, { size: "sm", color: "secondary", onClick: (B) => {
|
|
3898
3925
|
B.preventDefault(), B.stopPropagation(), C(!0);
|
|
3899
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
3926
|
+
}, children: /* @__PURE__ */ o.jsx(cn, {}) }),
|
|
3900
3927
|
k ?? null
|
|
3901
3928
|
] }) : null
|
|
3902
3929
|
] }),
|
|
3903
3930
|
I && /* @__PURE__ */ o.jsx(pe, { message: I.message }),
|
|
3904
|
-
|
|
3931
|
+
A.current && /* @__PURE__ */ o.jsx(jt, { show: y, onCancel: E, items: d, currentSelection: M, onSelectionChange: U, onSearchQueryChange: h, texts: f, itemsNameWidth: v, additionalColumns: _, displayIdAsName: m, isLoading: b, disabled: u, inputRef: A })
|
|
3905
3932
|
] }) });
|
|
3906
|
-
},
|
|
3907
|
-
const { watch:
|
|
3908
|
-
|
|
3909
|
-
}, [
|
|
3910
|
-
const
|
|
3911
|
-
let I =
|
|
3912
|
-
|
|
3933
|
+
}, Tl = ({ InputContainer: n = fe, label: e, formField: t, hidden: r, required: s, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: p }) => {
|
|
3934
|
+
const { watch: f, setValue: v, register: b, formState: g } = le(), [_, k] = O(!1), [m, N] = O(void 0), j = S(() => {
|
|
3935
|
+
v(t, "");
|
|
3936
|
+
}, [v, t]), w = S(() => {
|
|
3937
|
+
const P = t.split(".");
|
|
3938
|
+
let I = g.errors;
|
|
3939
|
+
P.forEach((T) => {
|
|
3913
3940
|
I !== void 0 && (I = I[T]);
|
|
3914
3941
|
}), N(I);
|
|
3915
|
-
}, [
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
}, [
|
|
3942
|
+
}, [g, t]);
|
|
3943
|
+
D(w, [w]), D(() => {
|
|
3944
|
+
g.isSubmitted && k(!0);
|
|
3945
|
+
}, [g]);
|
|
3919
3946
|
const $ = m !== void 0;
|
|
3920
3947
|
return /* @__PURE__ */ o.jsxs(n, { label: `${e}${s ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: p, children: [
|
|
3921
|
-
/* @__PURE__ */ o.jsx(
|
|
3948
|
+
/* @__PURE__ */ o.jsx(dn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...b(t, {
|
|
3922
3949
|
onChange: () => {
|
|
3923
|
-
c && c.forEach((
|
|
3950
|
+
c && c.forEach((P) => v(P, null, { shouldDirty: !0, shouldValidate: _ }));
|
|
3924
3951
|
}
|
|
3925
3952
|
}) }),
|
|
3926
|
-
l &&
|
|
3953
|
+
l && f(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
3927
3954
|
m && /* @__PURE__ */ o.jsx(pe, { message: m.message })
|
|
3928
3955
|
] });
|
|
3929
|
-
},
|
|
3930
|
-
const { formState: r } = le(), [s, a] =
|
|
3931
|
-
return
|
|
3956
|
+
}, El = ({ children: n, onStorno: e, noSpacer: t }) => {
|
|
3957
|
+
const { formState: r } = le(), [s, a] = O(!1);
|
|
3958
|
+
return D(() => {
|
|
3932
3959
|
a(Object.keys(r.dirtyFields).length > 0);
|
|
3933
|
-
}, [r]), s ? /* @__PURE__ */ o.jsx(
|
|
3934
|
-
},
|
|
3935
|
-
const { customSelectTexts:
|
|
3960
|
+
}, [r]), s ? /* @__PURE__ */ o.jsx(Va, { onStorno: e, noSpacer: t, children: n }) : null;
|
|
3961
|
+
}, Dl = ({ InputContainer: n = fe, options: e, formField: t, label: r, size: s, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: p, className: f }) => {
|
|
3962
|
+
const { customSelectTexts: v } = L(ae), { formState: b, setValue: g, watch: _, control: k } = le(), [m, N] = O(void 0), [j, w] = O(!1), [$, P] = O(!1), [I, T] = O(""), y = _(t), C = K(() => e.find((E) => E.id === y) ?? null, [e, y]), F = S(() => {
|
|
3936
3963
|
const E = t.split(".");
|
|
3937
|
-
let
|
|
3964
|
+
let A = b.errors;
|
|
3938
3965
|
E.forEach((X) => {
|
|
3939
|
-
|
|
3940
|
-
}), N(
|
|
3941
|
-
}, [
|
|
3966
|
+
A !== void 0 && (A = A[X]);
|
|
3967
|
+
}), N(A);
|
|
3968
|
+
}, [b, t]), R = S((E) => {
|
|
3942
3969
|
if ((E == null ? void 0 : E.id) === y)
|
|
3943
3970
|
return;
|
|
3944
|
-
if (a && a.forEach((X) =>
|
|
3945
|
-
|
|
3971
|
+
if (a && a.forEach((X) => g(X, null, { shouldDirty: !0, shouldValidate: $ })), E === null) {
|
|
3972
|
+
g(t, null, {
|
|
3946
3973
|
shouldDirty: !0,
|
|
3947
3974
|
shouldValidate: $
|
|
3948
3975
|
});
|
|
3949
3976
|
return;
|
|
3950
3977
|
}
|
|
3951
|
-
let
|
|
3952
|
-
i ?
|
|
3978
|
+
let A = null;
|
|
3979
|
+
i ? A = (E == null ? void 0 : E.id) !== null && (E == null ? void 0 : E.id) !== "" ? parseInt(E.id.toString(), 10) : null : A = E.id === null || E.id === void 0 || E.id === "" ? null : E.id, g(t, A, {
|
|
3953
3980
|
shouldDirty: !0,
|
|
3954
3981
|
shouldValidate: $
|
|
3955
3982
|
});
|
|
3956
|
-
}, [
|
|
3957
|
-
|
|
3983
|
+
}, [g, t, i, a, y, $]), H = S((E) => {
|
|
3984
|
+
w(!1), R(E);
|
|
3958
3985
|
}, [R]), Z = S((E) => {
|
|
3959
3986
|
T(E);
|
|
3960
3987
|
}, []);
|
|
3961
|
-
|
|
3988
|
+
D(() => {
|
|
3962
3989
|
F();
|
|
3963
|
-
}, [F]),
|
|
3964
|
-
|
|
3965
|
-
}, [
|
|
3966
|
-
const
|
|
3967
|
-
var
|
|
3968
|
-
return E === null ? "" : !E.name || E.name.length === 0 ? ((
|
|
3990
|
+
}, [F]), D(() => {
|
|
3991
|
+
b.isSubmitted && P(!0);
|
|
3992
|
+
}, [b]);
|
|
3993
|
+
const M = S((E) => {
|
|
3994
|
+
var A;
|
|
3995
|
+
return E === null ? "" : !E.name || E.name.length === 0 ? ((A = E.id) == null ? void 0 : A.toString()) ?? "" : p ? `${E.name} (${E.id})` : E.name;
|
|
3969
3996
|
}, [p]), re = K(() => e.map((E) => ({
|
|
3970
3997
|
id: E.id,
|
|
3971
|
-
name:
|
|
3972
|
-
})).filter((E) =>
|
|
3973
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName:
|
|
3974
|
-
/* @__PURE__ */ o.jsx(
|
|
3998
|
+
name: M(E)
|
|
3999
|
+
})).filter((E) => ss(E.name, I)).sort((E, A) => h ? 0 : (E.name ?? "").localeCompare(A.name ?? "")), [e, h, I, M]), ee = q(null), U = m !== void 0;
|
|
4000
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: f, children: [
|
|
4001
|
+
/* @__PURE__ */ o.jsx(mn, { control: k, name: t, render: () => /* @__PURE__ */ o.jsx(Q.Select, { size: s, onMouseDown: (E) => {
|
|
3975
4002
|
E.currentTarget.focus(), E.preventDefault();
|
|
3976
4003
|
}, onClick: () => {
|
|
3977
|
-
|
|
4004
|
+
w(!0);
|
|
3978
4005
|
}, ref: ee, value: y ?? "", onChange: () => {
|
|
3979
|
-
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ o.jsx("option", { value: (C == null ? void 0 : C.id) ?? "", children:
|
|
4006
|
+
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ o.jsx("option", { value: (C == null ? void 0 : C.id) ?? "", children: M(C) }) }) }),
|
|
3980
4007
|
m && /* @__PURE__ */ o.jsx(pe, { message: m.message }),
|
|
3981
|
-
ee.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () =>
|
|
4008
|
+
ee.current && /* @__PURE__ */ o.jsx(jt, { show: j, onCancel: () => w(!1), items: re, currentSelection: C ?? null, onSelectionChange: H, onSearchQueryChange: Z, texts: v, disabled: u, inputRef: ee, autoHideSearch: !0, allItemsLength: e.length })
|
|
3982
4009
|
] }) });
|
|
3983
|
-
},
|
|
3984
|
-
const { register:
|
|
4010
|
+
}, Ol = ({ InputContainer: n = fe, formField: e, label: t, placeholder: r, size: s, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: p, stepperStep: f = 1, className: v }) => {
|
|
4011
|
+
const { register: b, formState: g, setValue: _, watch: k } = le(), [m, N] = O(void 0), [j, w] = O(!1), $ = S(() => {
|
|
3985
4012
|
const y = l ?? null;
|
|
3986
4013
|
_(e, y !== null ? Number(y) : null, {
|
|
3987
4014
|
shouldDirty: !0,
|
|
3988
4015
|
shouldValidate: j
|
|
3989
4016
|
});
|
|
3990
|
-
}, [l, _, e, j]),
|
|
4017
|
+
}, [l, _, e, j]), P = S(() => {
|
|
3991
4018
|
const y = e.split(".");
|
|
3992
|
-
let C =
|
|
4019
|
+
let C = g.errors;
|
|
3993
4020
|
y.forEach((F) => {
|
|
3994
4021
|
C !== void 0 && (C = C[F]);
|
|
3995
4022
|
}), N(C);
|
|
3996
|
-
}, [
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
}, [
|
|
4000
|
-
|
|
4001
|
-
}, [
|
|
4023
|
+
}, [g, e]);
|
|
4024
|
+
D(() => {
|
|
4025
|
+
P();
|
|
4026
|
+
}, [P]), D(() => {
|
|
4027
|
+
g.isSubmitted && w(!0);
|
|
4028
|
+
}, [g]);
|
|
4002
4029
|
const I = m !== void 0, T = k(e);
|
|
4003
|
-
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className:
|
|
4030
|
+
return /* @__PURE__ */ o.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: I, className: v, children: [
|
|
4004
4031
|
/* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
4005
|
-
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: r ?? t, size: s, ...
|
|
4032
|
+
/* @__PURE__ */ o.jsx(Q.Control, { type: "number", placeholder: r ?? t, size: s, ...b(e, {
|
|
4006
4033
|
setValueAs: (y) => y == null || y === "" ? null : Number(y),
|
|
4007
4034
|
onChange: () => {
|
|
4008
4035
|
a && a.forEach((y) => _(y, null, { shouldDirty: !0, shouldValidate: j }));
|
|
4009
4036
|
}
|
|
4010
4037
|
}), isInvalid: I, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: p }),
|
|
4011
4038
|
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (y) => {
|
|
4012
|
-
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) -
|
|
4013
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
4039
|
+
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) - f).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4040
|
+
}, children: /* @__PURE__ */ o.jsx(cr, {}) }) }),
|
|
4014
4041
|
/* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ o.jsx(z, { size: "sm", onClick: (y) => {
|
|
4015
|
-
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) +
|
|
4016
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
4042
|
+
y.preventDefault(), y.stopPropagation(), _(e, ((T ? Number(T) : 0) + f).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
4043
|
+
}, children: /* @__PURE__ */ o.jsx(lr, {}) }) })
|
|
4017
4044
|
] }),
|
|
4018
4045
|
i && k(e) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(z, { color: "secondary", size: "sm", onClick: $, children: /* @__PURE__ */ o.jsx(ce, {}) }) }),
|
|
4019
4046
|
m && /* @__PURE__ */ o.jsx(pe, { message: m.message })
|
|
4020
4047
|
] });
|
|
4021
|
-
},
|
|
4048
|
+
}, Pl = ({ cell: { value: n } }) => /* @__PURE__ */ o.jsx(o.Fragment, { children: n ? /* @__PURE__ */ o.jsx(an, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ o.jsx(o.Fragment, {}) }), Vc = "_tab-panel_d8l8q_1", Gc = "_full-height-no-overflow_d8l8q_5", zc = "_disabled_d8l8q_12", st = {
|
|
4022
4049
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
4023
|
-
tabPanel:
|
|
4050
|
+
tabPanel: Vc,
|
|
4024
4051
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
4025
|
-
fullHeightNoOverflow:
|
|
4026
|
-
disabled:
|
|
4027
|
-
},
|
|
4052
|
+
fullHeightNoOverflow: Gc,
|
|
4053
|
+
disabled: zc
|
|
4054
|
+
}, Al = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: s, children: a }) => n !== e ? null : /* @__PURE__ */ o.jsx("div", { className: x("luminus-tab-panel", st.tabPanel, { [st.fullHeightNoOverflow]: t }, { disabled: r }, { [st.disabled]: r }, s), children: a }), Ml = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ o.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
4028
4055
|
const s = r.type, a = r.props;
|
|
4029
4056
|
if (!a)
|
|
4030
4057
|
return null;
|
|
4031
4058
|
const i = a.eventKey, l = a.children, c = a.className, u = a.onClick;
|
|
4032
|
-
return /* @__PURE__ */
|
|
4059
|
+
return /* @__PURE__ */ Jr(s, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
4033
4060
|
e(i), u && u(i);
|
|
4034
4061
|
} }, l);
|
|
4035
|
-
}) }),
|
|
4036
|
-
tab:
|
|
4037
|
-
disabled:
|
|
4038
|
-
},
|
|
4062
|
+
}) }), Uc = "_tab_1hdhk_1", Kc = "_disabled_1hdhk_8", Xt = {
|
|
4063
|
+
tab: Uc,
|
|
4064
|
+
disabled: Kc
|
|
4065
|
+
}, Fl = ({ eventKey: n, className: e, onClick: t, disabled: r, children: s }) => /* @__PURE__ */ o.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Xt.tab, e, {
|
|
4039
4066
|
disabled: r
|
|
4040
|
-
}, { [
|
|
4067
|
+
}, { [Xt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof s == "string" ? /* @__PURE__ */ o.jsx(G, { variant: "h6", className: "text-primary", children: s }) : s });
|
|
4041
4068
|
export {
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4069
|
+
fl as Alert,
|
|
4070
|
+
rl as ApiFileDownloadButton,
|
|
4071
|
+
dl as AppSearch,
|
|
4072
|
+
ml as AuthTemplate,
|
|
4073
|
+
an as AvatarIcon,
|
|
4074
|
+
dr as Backdrop,
|
|
4075
|
+
il as Badge,
|
|
4076
|
+
yc as Card,
|
|
4077
|
+
vl as CheckInput,
|
|
4078
|
+
cl as Collapse,
|
|
4052
4079
|
lt as ContextButton,
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4080
|
+
Qi as Dropdown,
|
|
4081
|
+
ul as DropdownDivider,
|
|
4082
|
+
Bi as DropdownItem,
|
|
4083
|
+
_l as DropdownPicker,
|
|
4084
|
+
Vi as DropdownToggle,
|
|
4085
|
+
fi as ErrorBoundary,
|
|
4086
|
+
ar as FileUploadContextButton,
|
|
4087
|
+
ll as FileUploadDropdownItem,
|
|
4088
|
+
Fc as FloatingActionContainer,
|
|
4089
|
+
Va as FloatingFormSubmit,
|
|
4063
4090
|
ke as FloatingLabelInput,
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4091
|
+
al as HomeDashboard,
|
|
4092
|
+
Nl as HookFormCheckInput,
|
|
4093
|
+
Sl as HookFormDropdownPicker,
|
|
4094
|
+
Tl as HookFormFileInput,
|
|
4095
|
+
El as HookFormFloatingSubmit,
|
|
4096
|
+
Ol as HookFormNumericStepperInput,
|
|
4097
|
+
Cl as HookFormRadioInput,
|
|
4098
|
+
Dl as HookFormSelectInput,
|
|
4099
|
+
Il as HookFormTextAreaInput,
|
|
4100
|
+
$l as HookFormTextInput,
|
|
4101
|
+
wl as HtmlTooltip,
|
|
4075
4102
|
z as IconButton,
|
|
4103
|
+
hr as ImgApi,
|
|
4104
|
+
xl as ImgDirect,
|
|
4076
4105
|
pe as InvalidFeedback,
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4106
|
+
Tt as Loading,
|
|
4107
|
+
os as LoadingBlock,
|
|
4108
|
+
sl as MonthPicker,
|
|
4109
|
+
Ll as NoInputContainer,
|
|
4110
|
+
kl as NumericStepperInput,
|
|
4111
|
+
hl as PhotoLibrary,
|
|
4112
|
+
Pc as PhotoLightbox,
|
|
4084
4113
|
St as PrimaryButton,
|
|
4085
4114
|
fe as RowLabelInput,
|
|
4086
|
-
|
|
4115
|
+
bl as SelectInput,
|
|
4087
4116
|
jt as SimplePicker,
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4117
|
+
Yr as SimpleToggle,
|
|
4118
|
+
Hl as SimpleTooltip,
|
|
4119
|
+
Fl as Tab,
|
|
4120
|
+
Al as TabPanel,
|
|
4121
|
+
Ml as Tabs,
|
|
4122
|
+
jl as TextAreaInput,
|
|
4123
|
+
yl as TextInput,
|
|
4124
|
+
gl as Timeline,
|
|
4096
4125
|
G as Typography,
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4126
|
+
Yl as UserAvatarToggle,
|
|
4127
|
+
Pl as UserAvatarValueFormat,
|
|
4128
|
+
pl as VersionInfo,
|
|
4129
|
+
Vt as WidgetCard,
|
|
4130
|
+
ol as YearPicker
|
|
4102
4131
|
};
|