react-luminus-components 1.2.3 → 1.2.4
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/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +10 -6
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1474 -1456
- package/dist/models/index.d.ts +1 -0
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +9 -5
- package/dist/models/types/DropdownPickerOption.d.ts +7 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { j as a, D as
|
|
2
|
-
import { aj as
|
|
1
|
+
import { j as a, D as Q, E as J, G as ze, M as Ue, H as Vn, J as Qn, K as Xn, c as w, s as xt, N as zn, Q as Un, R as Jn, S as Zn, V as er, k as re, t as W, W as tr, X as nr, v as rr, Y as or, Z as ar, _ as sr, g as ir, z as cr, w as De, $ as Je, a0 as lr, a1 as Ze, x as ur, e as H, a2 as Rt, F as Lt, L as ge, a3 as dr, a4 as At, a5 as je, a6 as Yt, a7 as fr, a8 as mr, a9 as hr, aa as pr, ab as gr, ac as Kt, ad as xr, ae as br, b as wr, af as Bt, ag as le, O as vr, ah as Ye, ai as yr } from "./UserAvatarToggle-B-BYsINz.js";
|
|
2
|
+
import { aj as Ji } from "./UserAvatarToggle-B-BYsINz.js";
|
|
3
3
|
import * as C from "react";
|
|
4
|
-
import
|
|
5
|
-
import { d as
|
|
6
|
-
import { L as
|
|
7
|
-
import { m as
|
|
8
|
-
import { T as
|
|
9
|
-
import { u as
|
|
10
|
-
import { S as
|
|
11
|
-
import { useFormContext as
|
|
12
|
-
const
|
|
13
|
-
const r =
|
|
14
|
-
var
|
|
4
|
+
import Z, { useCallback as S, useMemo as K, useEffect as I, useRef as A, useState as M, useReducer as qt, useContext as O } from "react";
|
|
5
|
+
import { d as Ne, u as jr, q as Ge, a as _r } from "./DataKey-CBV-NBJf.js";
|
|
6
|
+
import { L as ec } from "./DataKey-CBV-NBJf.js";
|
|
7
|
+
import { m as kr, a as Ht } from "./textUtils-BLtD0zaS.js";
|
|
8
|
+
import { T as B } from "./Typography-CHfAgqP5.js";
|
|
9
|
+
import { u as Gt } from "./useClickOutside-BjJyGTec.js";
|
|
10
|
+
import { S as nc } from "./SimpleTooltip-DxazAlXp.js";
|
|
11
|
+
import { useFormContext as oe } from "react-hook-form";
|
|
12
|
+
const _i = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
13
|
+
const r = S(async () => {
|
|
14
|
+
var l;
|
|
15
15
|
const o = await e();
|
|
16
16
|
if (!o)
|
|
17
17
|
return;
|
|
18
18
|
const s = window.URL.createObjectURL(new Blob([o])), i = document.createElement("a");
|
|
19
|
-
i.href = s, i.setAttribute("download", t), document.body.appendChild(i), i.click(), (
|
|
19
|
+
i.href = s, i.setAttribute("download", t), document.body.appendChild(i), i.click(), (l = i.parentNode) == null || l.removeChild(i);
|
|
20
20
|
}, [e, t]);
|
|
21
21
|
return /* @__PURE__ */ a.jsx("div", { role: "button", onClick: r, children: n });
|
|
22
22
|
};
|
|
23
|
-
function
|
|
24
|
-
const n =
|
|
23
|
+
function Vt(e, t) {
|
|
24
|
+
const n = Q(e);
|
|
25
25
|
if (isNaN(t))
|
|
26
|
-
return
|
|
26
|
+
return J(e, NaN);
|
|
27
27
|
if (!t)
|
|
28
28
|
return n;
|
|
29
|
-
const r = n.getDate(), o =
|
|
29
|
+
const r = n.getDate(), o = J(e, n.getTime());
|
|
30
30
|
o.setMonth(n.getMonth() + t + 1, 0);
|
|
31
31
|
const s = o.getDate();
|
|
32
32
|
return r >= s ? o : (n.setFullYear(
|
|
@@ -35,32 +35,32 @@ function Ht(e, t) {
|
|
|
35
35
|
r
|
|
36
36
|
), n);
|
|
37
37
|
}
|
|
38
|
-
let
|
|
38
|
+
let Nr = {};
|
|
39
39
|
function Te() {
|
|
40
|
-
return
|
|
40
|
+
return Nr;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
var
|
|
44
|
-
const n = Te(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((
|
|
42
|
+
function _e(e, t) {
|
|
43
|
+
var l, c, u, d;
|
|
44
|
+
const n = Te(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = Q(e), s = o.getDay(), i = (s < r ? 7 : 0) + s - r;
|
|
45
45
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function Ee(e) {
|
|
48
|
+
return _e(e, { weekStartsOn: 1 });
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const t =
|
|
50
|
+
function Qt(e) {
|
|
51
|
+
const t = Q(e), n = t.getFullYear(), r = J(e, 0);
|
|
52
52
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
53
|
-
const o =
|
|
53
|
+
const o = Ee(r), s = J(e, 0);
|
|
54
54
|
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
55
|
-
const i =
|
|
55
|
+
const i = Ee(s);
|
|
56
56
|
return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
const t =
|
|
58
|
+
function bt(e) {
|
|
59
|
+
const t = Q(e);
|
|
60
60
|
return t.setHours(0, 0, 0, 0), t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const t =
|
|
62
|
+
function wt(e) {
|
|
63
|
+
const t = Q(e), n = new Date(
|
|
64
64
|
Date.UTC(
|
|
65
65
|
t.getFullYear(),
|
|
66
66
|
t.getMonth(),
|
|
@@ -74,27 +74,27 @@ function bt(e) {
|
|
|
74
74
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
75
75
|
}
|
|
76
76
|
function Cr(e, t) {
|
|
77
|
-
const n =
|
|
78
|
-
return Math.round((o - s) /
|
|
77
|
+
const n = bt(e), r = bt(t), o = +n - wt(n), s = +r - wt(r);
|
|
78
|
+
return Math.round((o - s) / kr);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const t =
|
|
82
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0),
|
|
80
|
+
function $r(e) {
|
|
81
|
+
const t = Qt(e), n = J(e, 0);
|
|
82
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), Ee(n);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function Er(e, t) {
|
|
85
|
+
return Vt(e, t * 12);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Or(e) {
|
|
88
88
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
if (!
|
|
90
|
+
function Sr(e) {
|
|
91
|
+
if (!Or(e) && typeof e != "number")
|
|
92
92
|
return !1;
|
|
93
|
-
const t =
|
|
93
|
+
const t = Q(e);
|
|
94
94
|
return !isNaN(Number(t));
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const t =
|
|
96
|
+
function Ir(e) {
|
|
97
|
+
const t = Q(e), n = J(e, 0);
|
|
98
98
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
99
99
|
}
|
|
100
100
|
const Dr = {
|
|
@@ -164,72 +164,72 @@ const Dr = {
|
|
|
164
164
|
const o = Dr[e];
|
|
165
165
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function Ke(e) {
|
|
168
168
|
return (t = {}) => {
|
|
169
169
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
170
170
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
const
|
|
173
|
+
const Mr = {
|
|
174
174
|
full: "EEEE, MMMM do, y",
|
|
175
175
|
long: "MMMM do, y",
|
|
176
176
|
medium: "MMM d, y",
|
|
177
177
|
short: "MM/dd/yyyy"
|
|
178
|
-
},
|
|
178
|
+
}, Pr = {
|
|
179
179
|
full: "h:mm:ss a zzzz",
|
|
180
180
|
long: "h:mm:ss a z",
|
|
181
181
|
medium: "h:mm:ss a",
|
|
182
182
|
short: "h:mm a"
|
|
183
|
-
},
|
|
183
|
+
}, Wr = {
|
|
184
184
|
full: "{{date}} 'at' {{time}}",
|
|
185
185
|
long: "{{date}} 'at' {{time}}",
|
|
186
186
|
medium: "{{date}}, {{time}}",
|
|
187
187
|
short: "{{date}}, {{time}}"
|
|
188
|
-
},
|
|
189
|
-
date:
|
|
190
|
-
formats: Ir,
|
|
191
|
-
defaultWidth: "full"
|
|
192
|
-
}),
|
|
193
|
-
time: Ye({
|
|
188
|
+
}, Fr = {
|
|
189
|
+
date: Ke({
|
|
194
190
|
formats: Mr,
|
|
195
191
|
defaultWidth: "full"
|
|
196
192
|
}),
|
|
197
|
-
|
|
193
|
+
time: Ke({
|
|
198
194
|
formats: Pr,
|
|
199
195
|
defaultWidth: "full"
|
|
196
|
+
}),
|
|
197
|
+
dateTime: Ke({
|
|
198
|
+
formats: Wr,
|
|
199
|
+
defaultWidth: "full"
|
|
200
200
|
})
|
|
201
|
-
},
|
|
201
|
+
}, Rr = {
|
|
202
202
|
lastWeek: "'last' eeee 'at' p",
|
|
203
203
|
yesterday: "'yesterday at' p",
|
|
204
204
|
today: "'today at' p",
|
|
205
205
|
tomorrow: "'tomorrow at' p",
|
|
206
206
|
nextWeek: "eeee 'at' p",
|
|
207
207
|
other: "P"
|
|
208
|
-
},
|
|
209
|
-
function
|
|
208
|
+
}, Lr = (e, t, n, r) => Rr[e];
|
|
209
|
+
function be(e) {
|
|
210
210
|
return (t, n) => {
|
|
211
211
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
212
212
|
let o;
|
|
213
213
|
if (r === "formatting" && e.formattingValues) {
|
|
214
|
-
const i = e.defaultFormattingWidth || e.defaultWidth,
|
|
215
|
-
o = e.formattingValues[
|
|
214
|
+
const i = e.defaultFormattingWidth || e.defaultWidth, l = n != null && n.width ? String(n.width) : i;
|
|
215
|
+
o = e.formattingValues[l] || e.formattingValues[i];
|
|
216
216
|
} else {
|
|
217
|
-
const i = e.defaultWidth,
|
|
218
|
-
o = e.values[
|
|
217
|
+
const i = e.defaultWidth, l = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
218
|
+
o = e.values[l] || e.values[i];
|
|
219
219
|
}
|
|
220
220
|
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
221
221
|
return o[s];
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const Ar = {
|
|
225
225
|
narrow: ["B", "A"],
|
|
226
226
|
abbreviated: ["BC", "AD"],
|
|
227
227
|
wide: ["Before Christ", "Anno Domini"]
|
|
228
|
-
},
|
|
228
|
+
}, Yr = {
|
|
229
229
|
narrow: ["1", "2", "3", "4"],
|
|
230
230
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
231
231
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
232
|
-
},
|
|
232
|
+
}, Kr = {
|
|
233
233
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
234
234
|
abbreviated: [
|
|
235
235
|
"Jan",
|
|
@@ -259,7 +259,7 @@ const Lr = {
|
|
|
259
259
|
"November",
|
|
260
260
|
"December"
|
|
261
261
|
]
|
|
262
|
-
},
|
|
262
|
+
}, Br = {
|
|
263
263
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
264
264
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
265
265
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -272,7 +272,7 @@ const Lr = {
|
|
|
272
272
|
"Friday",
|
|
273
273
|
"Saturday"
|
|
274
274
|
]
|
|
275
|
-
},
|
|
275
|
+
}, qr = {
|
|
276
276
|
narrow: {
|
|
277
277
|
am: "a",
|
|
278
278
|
pm: "p",
|
|
@@ -303,7 +303,7 @@ const Lr = {
|
|
|
303
303
|
evening: "evening",
|
|
304
304
|
night: "night"
|
|
305
305
|
}
|
|
306
|
-
},
|
|
306
|
+
}, Hr = {
|
|
307
307
|
narrow: {
|
|
308
308
|
am: "a",
|
|
309
309
|
pm: "p",
|
|
@@ -334,7 +334,7 @@ const Lr = {
|
|
|
334
334
|
evening: "in the evening",
|
|
335
335
|
night: "at night"
|
|
336
336
|
}
|
|
337
|
-
},
|
|
337
|
+
}, Gr = (e, t) => {
|
|
338
338
|
const n = Number(e), r = n % 100;
|
|
339
339
|
if (r > 20 || r < 10)
|
|
340
340
|
switch (r % 10) {
|
|
@@ -346,43 +346,43 @@ const Lr = {
|
|
|
346
346
|
return n + "rd";
|
|
347
347
|
}
|
|
348
348
|
return n + "th";
|
|
349
|
-
},
|
|
350
|
-
ordinalNumber:
|
|
351
|
-
era:
|
|
352
|
-
values:
|
|
349
|
+
}, Vr = {
|
|
350
|
+
ordinalNumber: Gr,
|
|
351
|
+
era: be({
|
|
352
|
+
values: Ar,
|
|
353
353
|
defaultWidth: "wide"
|
|
354
354
|
}),
|
|
355
|
-
quarter:
|
|
356
|
-
values:
|
|
355
|
+
quarter: be({
|
|
356
|
+
values: Yr,
|
|
357
357
|
defaultWidth: "wide",
|
|
358
358
|
argumentCallback: (e) => e - 1
|
|
359
359
|
}),
|
|
360
|
-
month:
|
|
361
|
-
values: Yr,
|
|
362
|
-
defaultWidth: "wide"
|
|
363
|
-
}),
|
|
364
|
-
day: ge({
|
|
360
|
+
month: be({
|
|
365
361
|
values: Kr,
|
|
366
362
|
defaultWidth: "wide"
|
|
367
363
|
}),
|
|
368
|
-
|
|
364
|
+
day: be({
|
|
369
365
|
values: Br,
|
|
366
|
+
defaultWidth: "wide"
|
|
367
|
+
}),
|
|
368
|
+
dayPeriod: be({
|
|
369
|
+
values: qr,
|
|
370
370
|
defaultWidth: "wide",
|
|
371
|
-
formattingValues:
|
|
371
|
+
formattingValues: Hr,
|
|
372
372
|
defaultFormattingWidth: "wide"
|
|
373
373
|
})
|
|
374
374
|
};
|
|
375
|
-
function
|
|
375
|
+
function we(e) {
|
|
376
376
|
return (t, n = {}) => {
|
|
377
377
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
378
378
|
if (!s)
|
|
379
379
|
return null;
|
|
380
|
-
const i = s[0],
|
|
380
|
+
const i = s[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(l) ? Xr(l, (f) => f.test(i)) : (
|
|
381
381
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
382
|
-
|
|
382
|
+
Qr(l, (f) => f.test(i))
|
|
383
383
|
);
|
|
384
384
|
let u;
|
|
385
|
-
u = e.valueCallback ? e.valueCallback(
|
|
385
|
+
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
386
386
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
387
387
|
n.valueCallback(u)
|
|
388
388
|
) : u;
|
|
@@ -390,17 +390,17 @@ function be(e) {
|
|
|
390
390
|
return { value: u, rest: d };
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Qr(e, t) {
|
|
394
394
|
for (const n in e)
|
|
395
395
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
396
396
|
return n;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Xr(e, t) {
|
|
399
399
|
for (let n = 0; n < e.length; n++)
|
|
400
400
|
if (t(e[n]))
|
|
401
401
|
return n;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function zr(e) {
|
|
404
404
|
return (t, n = {}) => {
|
|
405
405
|
const r = t.match(e.matchPattern);
|
|
406
406
|
if (!r)
|
|
@@ -410,27 +410,27 @@ function Xr(e) {
|
|
|
410
410
|
return null;
|
|
411
411
|
let i = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
412
412
|
i = n.valueCallback ? n.valueCallback(i) : i;
|
|
413
|
-
const
|
|
414
|
-
return { value: i, rest:
|
|
413
|
+
const l = t.slice(o.length);
|
|
414
|
+
return { value: i, rest: l };
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
const Ur = /^(\d+)(th|st|nd|rd)?/i,
|
|
417
|
+
const Ur = /^(\d+)(th|st|nd|rd)?/i, Jr = /\d+/i, Zr = {
|
|
418
418
|
narrow: /^(b|a)/i,
|
|
419
419
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
420
420
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
421
|
-
}, Zr = {
|
|
422
|
-
any: [/^b/i, /^(a|c)/i]
|
|
423
421
|
}, eo = {
|
|
422
|
+
any: [/^b/i, /^(a|c)/i]
|
|
423
|
+
}, to = {
|
|
424
424
|
narrow: /^[1234]/i,
|
|
425
425
|
abbreviated: /^q[1234]/i,
|
|
426
426
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
427
|
-
}, to = {
|
|
428
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
429
427
|
}, no = {
|
|
428
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
429
|
+
}, ro = {
|
|
430
430
|
narrow: /^[jfmasond]/i,
|
|
431
431
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
432
432
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
433
|
-
},
|
|
433
|
+
}, oo = {
|
|
434
434
|
narrow: [
|
|
435
435
|
/^j/i,
|
|
436
436
|
/^f/i,
|
|
@@ -459,18 +459,18 @@ const Ur = /^(\d+)(th|st|nd|rd)?/i, zr = /\d+/i, Jr = {
|
|
|
459
459
|
/^n/i,
|
|
460
460
|
/^d/i
|
|
461
461
|
]
|
|
462
|
-
},
|
|
462
|
+
}, ao = {
|
|
463
463
|
narrow: /^[smtwf]/i,
|
|
464
464
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
465
465
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
466
466
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
467
|
-
},
|
|
467
|
+
}, so = {
|
|
468
468
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
469
469
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
470
|
-
},
|
|
470
|
+
}, io = {
|
|
471
471
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
472
472
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
473
|
-
},
|
|
473
|
+
}, co = {
|
|
474
474
|
any: {
|
|
475
475
|
am: /^a/i,
|
|
476
476
|
pm: /^p/i,
|
|
@@ -481,99 +481,99 @@ const Ur = /^(\d+)(th|st|nd|rd)?/i, zr = /\d+/i, Jr = {
|
|
|
481
481
|
evening: /evening/i,
|
|
482
482
|
night: /night/i
|
|
483
483
|
}
|
|
484
|
-
},
|
|
485
|
-
ordinalNumber:
|
|
484
|
+
}, lo = {
|
|
485
|
+
ordinalNumber: zr({
|
|
486
486
|
matchPattern: Ur,
|
|
487
|
-
parsePattern:
|
|
487
|
+
parsePattern: Jr,
|
|
488
488
|
valueCallback: (e) => parseInt(e, 10)
|
|
489
489
|
}),
|
|
490
|
-
era:
|
|
491
|
-
matchPatterns:
|
|
490
|
+
era: we({
|
|
491
|
+
matchPatterns: Zr,
|
|
492
492
|
defaultMatchWidth: "wide",
|
|
493
|
-
parsePatterns:
|
|
493
|
+
parsePatterns: eo,
|
|
494
494
|
defaultParseWidth: "any"
|
|
495
495
|
}),
|
|
496
|
-
quarter:
|
|
497
|
-
matchPatterns:
|
|
496
|
+
quarter: we({
|
|
497
|
+
matchPatterns: to,
|
|
498
498
|
defaultMatchWidth: "wide",
|
|
499
|
-
parsePatterns:
|
|
499
|
+
parsePatterns: no,
|
|
500
500
|
defaultParseWidth: "any",
|
|
501
501
|
valueCallback: (e) => e + 1
|
|
502
502
|
}),
|
|
503
|
-
month:
|
|
504
|
-
matchPatterns:
|
|
503
|
+
month: we({
|
|
504
|
+
matchPatterns: ro,
|
|
505
505
|
defaultMatchWidth: "wide",
|
|
506
|
-
parsePatterns:
|
|
506
|
+
parsePatterns: oo,
|
|
507
507
|
defaultParseWidth: "any"
|
|
508
508
|
}),
|
|
509
|
-
day:
|
|
510
|
-
matchPatterns:
|
|
509
|
+
day: we({
|
|
510
|
+
matchPatterns: ao,
|
|
511
511
|
defaultMatchWidth: "wide",
|
|
512
|
-
parsePatterns:
|
|
512
|
+
parsePatterns: so,
|
|
513
513
|
defaultParseWidth: "any"
|
|
514
514
|
}),
|
|
515
|
-
dayPeriod:
|
|
516
|
-
matchPatterns:
|
|
515
|
+
dayPeriod: we({
|
|
516
|
+
matchPatterns: io,
|
|
517
517
|
defaultMatchWidth: "any",
|
|
518
|
-
parsePatterns:
|
|
518
|
+
parsePatterns: co,
|
|
519
519
|
defaultParseWidth: "any"
|
|
520
520
|
})
|
|
521
|
-
},
|
|
521
|
+
}, uo = {
|
|
522
522
|
code: "en-US",
|
|
523
523
|
formatDistance: Tr,
|
|
524
|
-
formatLong:
|
|
525
|
-
formatRelative:
|
|
526
|
-
localize:
|
|
527
|
-
match:
|
|
524
|
+
formatLong: Fr,
|
|
525
|
+
formatRelative: Lr,
|
|
526
|
+
localize: Vr,
|
|
527
|
+
match: lo,
|
|
528
528
|
options: {
|
|
529
529
|
weekStartsOn: 0,
|
|
530
530
|
firstWeekContainsDate: 1
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
|
-
function uo(e) {
|
|
534
|
-
const t = V(e);
|
|
535
|
-
return Cr(t, Sr(t)) + 1;
|
|
536
|
-
}
|
|
537
533
|
function fo(e) {
|
|
538
|
-
const t =
|
|
539
|
-
return
|
|
534
|
+
const t = Q(e);
|
|
535
|
+
return Cr(t, Ir(t)) + 1;
|
|
540
536
|
}
|
|
541
|
-
function
|
|
537
|
+
function mo(e) {
|
|
538
|
+
const t = Q(e), n = +Ee(t) - +$r(t);
|
|
539
|
+
return Math.round(n / Ht) + 1;
|
|
540
|
+
}
|
|
541
|
+
function Xt(e, t) {
|
|
542
542
|
var d, f, m, h;
|
|
543
|
-
const n =
|
|
543
|
+
const n = Q(e), r = n.getFullYear(), o = Te(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = J(e, 0);
|
|
544
544
|
i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
545
|
-
const
|
|
546
|
-
|
|
547
|
-
const u =
|
|
548
|
-
return n.getTime() >=
|
|
549
|
-
}
|
|
550
|
-
function mo(e, t) {
|
|
551
|
-
var c, l, u, d;
|
|
552
|
-
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = Vt(e, t), s = z(e, 0);
|
|
553
|
-
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), ye(s, t);
|
|
545
|
+
const l = _e(i, t), c = J(e, 0);
|
|
546
|
+
c.setFullYear(r, 0, s), c.setHours(0, 0, 0, 0);
|
|
547
|
+
const u = _e(c, t);
|
|
548
|
+
return n.getTime() >= l.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
554
549
|
}
|
|
555
550
|
function ho(e, t) {
|
|
556
|
-
|
|
557
|
-
|
|
551
|
+
var l, c, u, d;
|
|
552
|
+
const n = Te(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = Xt(e, t), s = J(e, 0);
|
|
553
|
+
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), _e(s, t);
|
|
554
|
+
}
|
|
555
|
+
function po(e, t) {
|
|
556
|
+
const n = Q(e), r = +_e(n, t) - +ho(n, t);
|
|
557
|
+
return Math.round(r / Ht) + 1;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function T(e, t) {
|
|
560
560
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
561
561
|
return n + r;
|
|
562
562
|
}
|
|
563
|
-
const
|
|
563
|
+
const ne = {
|
|
564
564
|
// Year
|
|
565
565
|
y(e, t) {
|
|
566
566
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
567
|
-
return
|
|
567
|
+
return T(t === "yy" ? r % 100 : r, t.length);
|
|
568
568
|
},
|
|
569
569
|
// Month
|
|
570
570
|
M(e, t) {
|
|
571
571
|
const n = e.getMonth();
|
|
572
|
-
return t === "M" ? String(n + 1) :
|
|
572
|
+
return t === "M" ? String(n + 1) : T(n + 1, 2);
|
|
573
573
|
},
|
|
574
574
|
// Day of the month
|
|
575
575
|
d(e, t) {
|
|
576
|
-
return
|
|
576
|
+
return T(e.getDate(), t.length);
|
|
577
577
|
},
|
|
578
578
|
// AM or PM
|
|
579
579
|
a(e, t) {
|
|
@@ -593,28 +593,28 @@ const te = {
|
|
|
593
593
|
},
|
|
594
594
|
// Hour [1-12]
|
|
595
595
|
h(e, t) {
|
|
596
|
-
return
|
|
596
|
+
return T(e.getHours() % 12 || 12, t.length);
|
|
597
597
|
},
|
|
598
598
|
// Hour [0-23]
|
|
599
599
|
H(e, t) {
|
|
600
|
-
return
|
|
600
|
+
return T(e.getHours(), t.length);
|
|
601
601
|
},
|
|
602
602
|
// Minute
|
|
603
603
|
m(e, t) {
|
|
604
|
-
return
|
|
604
|
+
return T(e.getMinutes(), t.length);
|
|
605
605
|
},
|
|
606
606
|
// Second
|
|
607
607
|
s(e, t) {
|
|
608
|
-
return
|
|
608
|
+
return T(e.getSeconds(), t.length);
|
|
609
609
|
},
|
|
610
610
|
// Fraction of second
|
|
611
611
|
S(e, t) {
|
|
612
612
|
const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
|
|
613
613
|
r * Math.pow(10, n - 3)
|
|
614
614
|
);
|
|
615
|
-
return
|
|
615
|
+
return T(o, t.length);
|
|
616
616
|
}
|
|
617
|
-
},
|
|
617
|
+
}, me = {
|
|
618
618
|
am: "am",
|
|
619
619
|
pm: "pm",
|
|
620
620
|
midnight: "midnight",
|
|
@@ -623,7 +623,7 @@ const te = {
|
|
|
623
623
|
afternoon: "afternoon",
|
|
624
624
|
evening: "evening",
|
|
625
625
|
night: "night"
|
|
626
|
-
},
|
|
626
|
+
}, vt = {
|
|
627
627
|
// Era
|
|
628
628
|
G: function(e, t, n) {
|
|
629
629
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -645,21 +645,21 @@ const te = {
|
|
|
645
645
|
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
646
646
|
return n.ordinalNumber(o, { unit: "year" });
|
|
647
647
|
}
|
|
648
|
-
return
|
|
648
|
+
return ne.y(e, t);
|
|
649
649
|
},
|
|
650
650
|
// Local week-numbering year
|
|
651
651
|
Y: function(e, t, n, r) {
|
|
652
|
-
const o =
|
|
652
|
+
const o = Xt(e, r), s = o > 0 ? o : 1 - o;
|
|
653
653
|
if (t === "YY") {
|
|
654
654
|
const i = s % 100;
|
|
655
|
-
return
|
|
655
|
+
return T(i, 2);
|
|
656
656
|
}
|
|
657
|
-
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) :
|
|
657
|
+
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : T(s, t.length);
|
|
658
658
|
},
|
|
659
659
|
// ISO week-numbering year
|
|
660
660
|
R: function(e, t) {
|
|
661
|
-
const n =
|
|
662
|
-
return
|
|
661
|
+
const n = Qt(e);
|
|
662
|
+
return T(n, t.length);
|
|
663
663
|
},
|
|
664
664
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
665
665
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -672,7 +672,7 @@ const te = {
|
|
|
672
672
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
673
673
|
u: function(e, t) {
|
|
674
674
|
const n = e.getFullYear();
|
|
675
|
-
return
|
|
675
|
+
return T(n, t.length);
|
|
676
676
|
},
|
|
677
677
|
// Quarter
|
|
678
678
|
Q: function(e, t, n) {
|
|
@@ -681,7 +681,7 @@ const te = {
|
|
|
681
681
|
case "Q":
|
|
682
682
|
return String(r);
|
|
683
683
|
case "QQ":
|
|
684
|
-
return
|
|
684
|
+
return T(r, 2);
|
|
685
685
|
case "Qo":
|
|
686
686
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
687
687
|
case "QQQ":
|
|
@@ -709,7 +709,7 @@ const te = {
|
|
|
709
709
|
case "q":
|
|
710
710
|
return String(r);
|
|
711
711
|
case "qq":
|
|
712
|
-
return
|
|
712
|
+
return T(r, 2);
|
|
713
713
|
case "qo":
|
|
714
714
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
715
715
|
case "qqq":
|
|
@@ -736,7 +736,7 @@ const te = {
|
|
|
736
736
|
switch (t) {
|
|
737
737
|
case "M":
|
|
738
738
|
case "MM":
|
|
739
|
-
return
|
|
739
|
+
return ne.M(e, t);
|
|
740
740
|
case "Mo":
|
|
741
741
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
742
742
|
case "MMM":
|
|
@@ -761,7 +761,7 @@ const te = {
|
|
|
761
761
|
case "L":
|
|
762
762
|
return String(r + 1);
|
|
763
763
|
case "LL":
|
|
764
|
-
return
|
|
764
|
+
return T(r + 1, 2);
|
|
765
765
|
case "Lo":
|
|
766
766
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
767
767
|
case "LLL":
|
|
@@ -781,22 +781,22 @@ const te = {
|
|
|
781
781
|
},
|
|
782
782
|
// Local week of year
|
|
783
783
|
w: function(e, t, n, r) {
|
|
784
|
-
const o =
|
|
785
|
-
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) :
|
|
784
|
+
const o = po(e, r);
|
|
785
|
+
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : T(o, t.length);
|
|
786
786
|
},
|
|
787
787
|
// ISO week of year
|
|
788
788
|
I: function(e, t, n) {
|
|
789
|
-
const r =
|
|
790
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
789
|
+
const r = mo(e);
|
|
790
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : T(r, t.length);
|
|
791
791
|
},
|
|
792
792
|
// Day of the month
|
|
793
793
|
d: function(e, t, n) {
|
|
794
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
794
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : ne.d(e, t);
|
|
795
795
|
},
|
|
796
796
|
// Day of year
|
|
797
797
|
D: function(e, t, n) {
|
|
798
|
-
const r =
|
|
799
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
798
|
+
const r = fo(e);
|
|
799
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : T(r, t.length);
|
|
800
800
|
},
|
|
801
801
|
// Day of week
|
|
802
802
|
E: function(e, t, n) {
|
|
@@ -834,7 +834,7 @@ const te = {
|
|
|
834
834
|
case "e":
|
|
835
835
|
return String(s);
|
|
836
836
|
case "ee":
|
|
837
|
-
return
|
|
837
|
+
return T(s, 2);
|
|
838
838
|
case "eo":
|
|
839
839
|
return n.ordinalNumber(s, { unit: "day" });
|
|
840
840
|
case "eee":
|
|
@@ -867,7 +867,7 @@ const te = {
|
|
|
867
867
|
case "c":
|
|
868
868
|
return String(s);
|
|
869
869
|
case "cc":
|
|
870
|
-
return
|
|
870
|
+
return T(s, t.length);
|
|
871
871
|
case "co":
|
|
872
872
|
return n.ordinalNumber(s, { unit: "day" });
|
|
873
873
|
case "ccc":
|
|
@@ -900,7 +900,7 @@ const te = {
|
|
|
900
900
|
case "i":
|
|
901
901
|
return String(o);
|
|
902
902
|
case "ii":
|
|
903
|
-
return
|
|
903
|
+
return T(o, t.length);
|
|
904
904
|
case "io":
|
|
905
905
|
return n.ordinalNumber(o, { unit: "day" });
|
|
906
906
|
case "iii":
|
|
@@ -958,7 +958,7 @@ const te = {
|
|
|
958
958
|
b: function(e, t, n) {
|
|
959
959
|
const r = e.getHours();
|
|
960
960
|
let o;
|
|
961
|
-
switch (r === 12 ? o =
|
|
961
|
+
switch (r === 12 ? o = me.noon : r === 0 ? o = me.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
|
|
962
962
|
case "b":
|
|
963
963
|
case "bb":
|
|
964
964
|
return n.dayPeriod(o, {
|
|
@@ -987,7 +987,7 @@ const te = {
|
|
|
987
987
|
B: function(e, t, n) {
|
|
988
988
|
const r = e.getHours();
|
|
989
989
|
let o;
|
|
990
|
-
switch (r >= 17 ? o =
|
|
990
|
+
switch (r >= 17 ? o = me.evening : r >= 12 ? o = me.afternoon : r >= 4 ? o = me.morning : o = me.night, t) {
|
|
991
991
|
case "B":
|
|
992
992
|
case "BB":
|
|
993
993
|
case "BBB":
|
|
@@ -1014,33 +1014,33 @@ const te = {
|
|
|
1014
1014
|
let r = e.getHours() % 12;
|
|
1015
1015
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1017
|
+
return ne.h(e, t);
|
|
1018
1018
|
},
|
|
1019
1019
|
// Hour [0-23]
|
|
1020
1020
|
H: function(e, t, n) {
|
|
1021
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
1021
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : ne.H(e, t);
|
|
1022
1022
|
},
|
|
1023
1023
|
// Hour [0-11]
|
|
1024
1024
|
K: function(e, t, n) {
|
|
1025
1025
|
const r = e.getHours() % 12;
|
|
1026
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1026
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : T(r, t.length);
|
|
1027
1027
|
},
|
|
1028
1028
|
// Hour [1-24]
|
|
1029
1029
|
k: function(e, t, n) {
|
|
1030
1030
|
let r = e.getHours();
|
|
1031
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1031
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : T(r, t.length);
|
|
1032
1032
|
},
|
|
1033
1033
|
// Minute
|
|
1034
1034
|
m: function(e, t, n) {
|
|
1035
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
1035
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : ne.m(e, t);
|
|
1036
1036
|
},
|
|
1037
1037
|
// Second
|
|
1038
1038
|
s: function(e, t, n) {
|
|
1039
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
1039
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : ne.s(e, t);
|
|
1040
1040
|
},
|
|
1041
1041
|
// Fraction of second
|
|
1042
1042
|
S: function(e, t) {
|
|
1043
|
-
return
|
|
1043
|
+
return ne.S(e, t);
|
|
1044
1044
|
},
|
|
1045
1045
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1046
1046
|
X: function(e, t, n) {
|
|
@@ -1049,14 +1049,14 @@ const te = {
|
|
|
1049
1049
|
return "Z";
|
|
1050
1050
|
switch (t) {
|
|
1051
1051
|
case "X":
|
|
1052
|
-
return
|
|
1052
|
+
return jt(r);
|
|
1053
1053
|
case "XXXX":
|
|
1054
1054
|
case "XX":
|
|
1055
|
-
return
|
|
1055
|
+
return ie(r);
|
|
1056
1056
|
case "XXXXX":
|
|
1057
1057
|
case "XXX":
|
|
1058
1058
|
default:
|
|
1059
|
-
return
|
|
1059
|
+
return ie(r, ":");
|
|
1060
1060
|
}
|
|
1061
1061
|
},
|
|
1062
1062
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1064,14 +1064,14 @@ const te = {
|
|
|
1064
1064
|
const r = e.getTimezoneOffset();
|
|
1065
1065
|
switch (t) {
|
|
1066
1066
|
case "x":
|
|
1067
|
-
return
|
|
1067
|
+
return jt(r);
|
|
1068
1068
|
case "xxxx":
|
|
1069
1069
|
case "xx":
|
|
1070
|
-
return
|
|
1070
|
+
return ie(r);
|
|
1071
1071
|
case "xxxxx":
|
|
1072
1072
|
case "xxx":
|
|
1073
1073
|
default:
|
|
1074
|
-
return
|
|
1074
|
+
return ie(r, ":");
|
|
1075
1075
|
}
|
|
1076
1076
|
},
|
|
1077
1077
|
// Timezone (GMT)
|
|
@@ -1081,10 +1081,10 @@ const te = {
|
|
|
1081
1081
|
case "O":
|
|
1082
1082
|
case "OO":
|
|
1083
1083
|
case "OOO":
|
|
1084
|
-
return "GMT" +
|
|
1084
|
+
return "GMT" + yt(r, ":");
|
|
1085
1085
|
case "OOOO":
|
|
1086
1086
|
default:
|
|
1087
|
-
return "GMT" +
|
|
1087
|
+
return "GMT" + ie(r, ":");
|
|
1088
1088
|
}
|
|
1089
1089
|
},
|
|
1090
1090
|
// Timezone (specific non-location)
|
|
@@ -1094,35 +1094,35 @@ const te = {
|
|
|
1094
1094
|
case "z":
|
|
1095
1095
|
case "zz":
|
|
1096
1096
|
case "zzz":
|
|
1097
|
-
return "GMT" +
|
|
1097
|
+
return "GMT" + yt(r, ":");
|
|
1098
1098
|
case "zzzz":
|
|
1099
1099
|
default:
|
|
1100
|
-
return "GMT" +
|
|
1100
|
+
return "GMT" + ie(r, ":");
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
1103
|
// Seconds timestamp
|
|
1104
1104
|
t: function(e, t, n) {
|
|
1105
1105
|
const r = Math.trunc(e.getTime() / 1e3);
|
|
1106
|
-
return
|
|
1106
|
+
return T(r, t.length);
|
|
1107
1107
|
},
|
|
1108
1108
|
// Milliseconds timestamp
|
|
1109
1109
|
T: function(e, t, n) {
|
|
1110
1110
|
const r = e.getTime();
|
|
1111
|
-
return
|
|
1111
|
+
return T(r, t.length);
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
|
-
function
|
|
1114
|
+
function yt(e, t = "") {
|
|
1115
1115
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
|
|
1116
|
-
return s === 0 ? n + String(o) : n + String(o) + t +
|
|
1116
|
+
return s === 0 ? n + String(o) : n + String(o) + t + T(s, 2);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
1118
|
+
function jt(e, t) {
|
|
1119
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : ie(e, t);
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), o =
|
|
1121
|
+
function ie(e, t = "") {
|
|
1122
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = T(Math.trunc(r / 60), 2), s = T(r % 60, 2);
|
|
1123
1123
|
return n + o + t + s;
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const _t = (e, t) => {
|
|
1126
1126
|
switch (e) {
|
|
1127
1127
|
case "P":
|
|
1128
1128
|
return t.date({ width: "short" });
|
|
@@ -1134,7 +1134,7 @@ const yt = (e, t) => {
|
|
|
1134
1134
|
default:
|
|
1135
1135
|
return t.date({ width: "full" });
|
|
1136
1136
|
}
|
|
1137
|
-
},
|
|
1137
|
+
}, zt = (e, t) => {
|
|
1138
1138
|
switch (e) {
|
|
1139
1139
|
case "p":
|
|
1140
1140
|
return t.time({ width: "short" });
|
|
@@ -1146,10 +1146,10 @@ const yt = (e, t) => {
|
|
|
1146
1146
|
default:
|
|
1147
1147
|
return t.time({ width: "full" });
|
|
1148
1148
|
}
|
|
1149
|
-
},
|
|
1149
|
+
}, go = (e, t) => {
|
|
1150
1150
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1151
1151
|
if (!o)
|
|
1152
|
-
return
|
|
1152
|
+
return _t(e, t);
|
|
1153
1153
|
let s;
|
|
1154
1154
|
switch (r) {
|
|
1155
1155
|
case "P":
|
|
@@ -1166,113 +1166,113 @@ const yt = (e, t) => {
|
|
|
1166
1166
|
s = t.dateTime({ width: "full" });
|
|
1167
1167
|
break;
|
|
1168
1168
|
}
|
|
1169
|
-
return s.replace("{{date}}",
|
|
1170
|
-
},
|
|
1171
|
-
p:
|
|
1172
|
-
P:
|
|
1173
|
-
}, bo = /^D+$/,
|
|
1174
|
-
function
|
|
1169
|
+
return s.replace("{{date}}", _t(r, t)).replace("{{time}}", zt(o, t));
|
|
1170
|
+
}, xo = {
|
|
1171
|
+
p: zt,
|
|
1172
|
+
P: go
|
|
1173
|
+
}, bo = /^D+$/, wo = /^Y+$/, vo = ["D", "DD", "YY", "YYYY"];
|
|
1174
|
+
function yo(e) {
|
|
1175
1175
|
return bo.test(e);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1177
|
+
function jo(e) {
|
|
1178
|
+
return wo.test(e);
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
const r =
|
|
1182
|
-
if (console.warn(r),
|
|
1180
|
+
function _o(e, t, n) {
|
|
1181
|
+
const r = ko(e, t, n);
|
|
1182
|
+
if (console.warn(r), vo.includes(e))
|
|
1183
1183
|
throw new RangeError(r);
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function ko(e, t, n) {
|
|
1186
1186
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1187
1187
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1188
1188
|
}
|
|
1189
|
-
const
|
|
1190
|
-
function
|
|
1191
|
-
var d, f, m, h,
|
|
1192
|
-
const r = Te(), o = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
1193
|
-
if (!
|
|
1189
|
+
const No = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Co = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $o = /^'([^]*?)'?$/, Eo = /''/g, Oo = /[a-zA-Z]/;
|
|
1190
|
+
function Ut(e, t, n) {
|
|
1191
|
+
var d, f, m, h, x, p, g, j;
|
|
1192
|
+
const r = Te(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? uo, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (x = n == null ? void 0 : n.locale) == null ? void 0 : x.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((j = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : j.weekStartsOn) ?? 0, l = Q(e);
|
|
1193
|
+
if (!Sr(l))
|
|
1194
1194
|
throw new RangeError("Invalid time value");
|
|
1195
|
-
let
|
|
1196
|
-
const
|
|
1197
|
-
if (
|
|
1198
|
-
const
|
|
1199
|
-
return
|
|
1195
|
+
let c = t.match(Co).map((_) => {
|
|
1196
|
+
const b = _[0];
|
|
1197
|
+
if (b === "p" || b === "P") {
|
|
1198
|
+
const k = xo[b];
|
|
1199
|
+
return k(_, o.formatLong);
|
|
1200
1200
|
}
|
|
1201
|
-
return
|
|
1202
|
-
}).join("").match(
|
|
1203
|
-
if (
|
|
1201
|
+
return _;
|
|
1202
|
+
}).join("").match(No).map((_) => {
|
|
1203
|
+
if (_ === "''")
|
|
1204
1204
|
return { isToken: !1, value: "'" };
|
|
1205
|
-
const
|
|
1206
|
-
if (
|
|
1207
|
-
return { isToken: !1, value:
|
|
1208
|
-
if (
|
|
1209
|
-
return { isToken: !0, value:
|
|
1210
|
-
if (
|
|
1205
|
+
const b = _[0];
|
|
1206
|
+
if (b === "'")
|
|
1207
|
+
return { isToken: !1, value: So(_) };
|
|
1208
|
+
if (vt[b])
|
|
1209
|
+
return { isToken: !0, value: _ };
|
|
1210
|
+
if (b.match(Oo))
|
|
1211
1211
|
throw new RangeError(
|
|
1212
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1212
|
+
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1213
1213
|
);
|
|
1214
|
-
return { isToken: !1, value:
|
|
1214
|
+
return { isToken: !1, value: _ };
|
|
1215
1215
|
});
|
|
1216
|
-
o.localize.preprocessor && (
|
|
1216
|
+
o.localize.preprocessor && (c = o.localize.preprocessor(l, c));
|
|
1217
1217
|
const u = {
|
|
1218
1218
|
firstWeekContainsDate: s,
|
|
1219
1219
|
weekStartsOn: i,
|
|
1220
1220
|
locale: o
|
|
1221
1221
|
};
|
|
1222
|
-
return
|
|
1223
|
-
if (!
|
|
1224
|
-
return
|
|
1225
|
-
const
|
|
1226
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1227
|
-
const
|
|
1228
|
-
return
|
|
1222
|
+
return c.map((_) => {
|
|
1223
|
+
if (!_.isToken)
|
|
1224
|
+
return _.value;
|
|
1225
|
+
const b = _.value;
|
|
1226
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && jo(b) || !(n != null && n.useAdditionalDayOfYearTokens) && yo(b)) && _o(b, t, String(e));
|
|
1227
|
+
const k = vt[b[0]];
|
|
1228
|
+
return k(l, b, o.localize, u);
|
|
1229
1229
|
}).join("");
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1232
|
-
const t = e.match(
|
|
1233
|
-
return t ? t[1].replace(
|
|
1231
|
+
function So(e) {
|
|
1232
|
+
const t = e.match($o);
|
|
1233
|
+
return t ? t[1].replace(Eo, "'") : e;
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1236
|
-
const r =
|
|
1237
|
-
t(
|
|
1235
|
+
const ki = ({ month: e, onChangeMonth: t, locale: n }) => {
|
|
1236
|
+
const r = S((o) => {
|
|
1237
|
+
t(Vt(e, o));
|
|
1238
1238
|
}, [e, t]);
|
|
1239
1239
|
return /* @__PURE__ */ a.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1240
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ a.jsx(
|
|
1241
|
-
/* @__PURE__ */ a.jsx("div", { children:
|
|
1240
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ a.jsx(ze, {}) }),
|
|
1241
|
+
/* @__PURE__ */ a.jsx("div", { children: Ut(e, "LLLL yyyy", { locale: n }) }),
|
|
1242
1242
|
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(1), children: /* @__PURE__ */ a.jsx(Ue, {}) })
|
|
1243
1243
|
] });
|
|
1244
|
-
},
|
|
1245
|
-
const r =
|
|
1246
|
-
t(
|
|
1244
|
+
}, Ni = ({ year: e, onChangeYear: t, locale: n }) => {
|
|
1245
|
+
const r = S((o) => {
|
|
1246
|
+
t(Er(e, o));
|
|
1247
1247
|
}, [e, t]);
|
|
1248
1248
|
return /* @__PURE__ */ a.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1249
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ a.jsx(
|
|
1250
|
-
/* @__PURE__ */ a.jsx("div", { children:
|
|
1249
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ a.jsx(ze, {}) }),
|
|
1250
|
+
/* @__PURE__ */ a.jsx("div", { children: Ut(e, "yyyy", { locale: n }) }),
|
|
1251
1251
|
/* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => r(1), children: /* @__PURE__ */ a.jsx(Ue, {}) })
|
|
1252
1252
|
] });
|
|
1253
1253
|
};
|
|
1254
|
-
var
|
|
1254
|
+
var Io = function(e, t, n, r, o, s, i, l) {
|
|
1255
1255
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
1256
1256
|
throw new Error("invariant requires an error message argument");
|
|
1257
1257
|
if (!e) {
|
|
1258
|
-
var
|
|
1258
|
+
var c;
|
|
1259
1259
|
if (t === void 0)
|
|
1260
|
-
|
|
1260
|
+
c = new Error(
|
|
1261
1261
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
1262
1262
|
);
|
|
1263
1263
|
else {
|
|
1264
|
-
var u = [n, r, o, s, i,
|
|
1265
|
-
|
|
1264
|
+
var u = [n, r, o, s, i, l], d = 0;
|
|
1265
|
+
c = new Error(
|
|
1266
1266
|
t.replace(/%s/g, function() {
|
|
1267
1267
|
return u[d++];
|
|
1268
1268
|
})
|
|
1269
|
-
),
|
|
1269
|
+
), c.name = "Invariant Violation";
|
|
1270
1270
|
}
|
|
1271
|
-
throw
|
|
1271
|
+
throw c.framesToPop = 1, c;
|
|
1272
1272
|
}
|
|
1273
|
-
}, Do =
|
|
1274
|
-
const
|
|
1275
|
-
function
|
|
1273
|
+
}, Do = Io;
|
|
1274
|
+
const kt = /* @__PURE__ */ Vn(Do);
|
|
1275
|
+
function ve(...e) {
|
|
1276
1276
|
return e.filter((t) => t != null).reduce((t, n) => {
|
|
1277
1277
|
if (typeof n != "function")
|
|
1278
1278
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -1285,18 +1285,18 @@ const To = {
|
|
|
1285
1285
|
height: ["marginTop", "marginBottom"],
|
|
1286
1286
|
width: ["marginLeft", "marginRight"]
|
|
1287
1287
|
};
|
|
1288
|
-
function
|
|
1288
|
+
function Mo(e, t) {
|
|
1289
1289
|
const n = `offset${e[0].toUpperCase()}${e.slice(1)}`, r = t[n], o = To[e];
|
|
1290
1290
|
return r + // @ts-ignore
|
|
1291
|
-
parseInt(
|
|
1292
|
-
parseInt(
|
|
1291
|
+
parseInt(xt(t, o[0]), 10) + // @ts-ignore
|
|
1292
|
+
parseInt(xt(t, o[1]), 10);
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1295
|
-
[
|
|
1294
|
+
const Po = {
|
|
1295
|
+
[zn]: "collapse",
|
|
1296
1296
|
[Un]: "collapsing",
|
|
1297
|
-
[
|
|
1298
|
-
[
|
|
1299
|
-
},
|
|
1297
|
+
[Jn]: "collapsing",
|
|
1298
|
+
[Zn]: "collapse show"
|
|
1299
|
+
}, Jt = /* @__PURE__ */ Z.forwardRef(({
|
|
1300
1300
|
onEnter: e,
|
|
1301
1301
|
onEntering: t,
|
|
1302
1302
|
onEntered: n,
|
|
@@ -1304,58 +1304,58 @@ const Mo = {
|
|
|
1304
1304
|
onExiting: o,
|
|
1305
1305
|
className: s,
|
|
1306
1306
|
children: i,
|
|
1307
|
-
dimension:
|
|
1308
|
-
in:
|
|
1307
|
+
dimension: l = "height",
|
|
1308
|
+
in: c = !1,
|
|
1309
1309
|
timeout: u = 300,
|
|
1310
1310
|
mountOnEnter: d = !1,
|
|
1311
1311
|
unmountOnExit: f = !1,
|
|
1312
1312
|
appear: m = !1,
|
|
1313
|
-
getDimensionValue: h =
|
|
1314
|
-
...
|
|
1313
|
+
getDimensionValue: h = Mo,
|
|
1314
|
+
...x
|
|
1315
1315
|
}, p) => {
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
}, e), [
|
|
1319
|
-
const $ = `scroll${
|
|
1320
|
-
|
|
1321
|
-
}, t), [
|
|
1322
|
-
|
|
1323
|
-
}, n), [
|
|
1324
|
-
|
|
1325
|
-
}, r), [r, h,
|
|
1326
|
-
|
|
1327
|
-
}, o), [
|
|
1328
|
-
return /* @__PURE__ */ a.jsx(
|
|
1316
|
+
const g = typeof l == "function" ? l() : l, j = K(() => ve((y) => {
|
|
1317
|
+
y.style[g] = "0";
|
|
1318
|
+
}, e), [g, e]), _ = K(() => ve((y) => {
|
|
1319
|
+
const $ = `scroll${g[0].toUpperCase()}${g.slice(1)}`;
|
|
1320
|
+
y.style[g] = `${y[$]}px`;
|
|
1321
|
+
}, t), [g, t]), b = K(() => ve((y) => {
|
|
1322
|
+
y.style[g] = null;
|
|
1323
|
+
}, n), [g, n]), k = K(() => ve((y) => {
|
|
1324
|
+
y.style[g] = `${h(g, y)}px`, er(y);
|
|
1325
|
+
}, r), [r, h, g]), v = K(() => ve((y) => {
|
|
1326
|
+
y.style[g] = null;
|
|
1327
|
+
}, o), [g, o]);
|
|
1328
|
+
return /* @__PURE__ */ a.jsx(Qn, {
|
|
1329
1329
|
ref: p,
|
|
1330
|
-
addEndListener:
|
|
1331
|
-
...
|
|
1332
|
-
"aria-expanded":
|
|
1333
|
-
onEnter:
|
|
1334
|
-
onEntering:
|
|
1335
|
-
onEntered:
|
|
1336
|
-
onExit:
|
|
1337
|
-
onExiting:
|
|
1330
|
+
addEndListener: Xn,
|
|
1331
|
+
...x,
|
|
1332
|
+
"aria-expanded": x.role ? c : null,
|
|
1333
|
+
onEnter: j,
|
|
1334
|
+
onEntering: _,
|
|
1335
|
+
onEntered: b,
|
|
1336
|
+
onExit: k,
|
|
1337
|
+
onExiting: v,
|
|
1338
1338
|
childRef: i.ref,
|
|
1339
|
-
in:
|
|
1339
|
+
in: c,
|
|
1340
1340
|
timeout: u,
|
|
1341
1341
|
mountOnEnter: d,
|
|
1342
1342
|
unmountOnExit: f,
|
|
1343
1343
|
appear: m,
|
|
1344
|
-
children: (
|
|
1344
|
+
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1345
1345
|
...$,
|
|
1346
|
-
className: w(s, i.props.className,
|
|
1346
|
+
className: w(s, i.props.className, Po[y], g === "width" && "collapse-horizontal")
|
|
1347
1347
|
})
|
|
1348
1348
|
});
|
|
1349
1349
|
});
|
|
1350
|
-
function
|
|
1351
|
-
const o =
|
|
1352
|
-
|
|
1350
|
+
function Wo(e, t, n, r = !1) {
|
|
1351
|
+
const o = re(n);
|
|
1352
|
+
I(() => {
|
|
1353
1353
|
const s = typeof e == "function" ? e() : e;
|
|
1354
1354
|
return s.addEventListener(t, o, r), () => s.removeEventListener(t, o, r);
|
|
1355
1355
|
}, [e]);
|
|
1356
1356
|
}
|
|
1357
|
-
const
|
|
1358
|
-
function
|
|
1357
|
+
const Fo = ["as", "disabled"];
|
|
1358
|
+
function Ro(e, t) {
|
|
1359
1359
|
if (e == null)
|
|
1360
1360
|
return {};
|
|
1361
1361
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -1363,10 +1363,10 @@ function Fo(e, t) {
|
|
|
1363
1363
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1364
1364
|
return n;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Lo(e) {
|
|
1367
1367
|
return !e || e.trim() === "#";
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function et({
|
|
1370
1370
|
tagName: e,
|
|
1371
1371
|
disabled: t,
|
|
1372
1372
|
href: n,
|
|
@@ -1374,8 +1374,8 @@ function Ze({
|
|
|
1374
1374
|
rel: o,
|
|
1375
1375
|
role: s,
|
|
1376
1376
|
onClick: i,
|
|
1377
|
-
tabIndex:
|
|
1378
|
-
type:
|
|
1377
|
+
tabIndex: l = 0,
|
|
1378
|
+
type: c
|
|
1379
1379
|
}) {
|
|
1380
1380
|
e || (n != null || r != null || o != null ? e = "a" : e = "button");
|
|
1381
1381
|
const u = {
|
|
@@ -1383,11 +1383,11 @@ function Ze({
|
|
|
1383
1383
|
};
|
|
1384
1384
|
if (e === "button")
|
|
1385
1385
|
return [{
|
|
1386
|
-
type:
|
|
1386
|
+
type: c || "button",
|
|
1387
1387
|
disabled: t
|
|
1388
1388
|
}, u];
|
|
1389
1389
|
const d = (m) => {
|
|
1390
|
-
if ((t || e === "a" &&
|
|
1390
|
+
if ((t || e === "a" && Lo(n)) && m.preventDefault(), t) {
|
|
1391
1391
|
m.stopPropagation();
|
|
1392
1392
|
return;
|
|
1393
1393
|
}
|
|
@@ -1400,7 +1400,7 @@ function Ze({
|
|
|
1400
1400
|
// explicitly undefined so that it overrides the props disabled in a spread
|
|
1401
1401
|
// e.g. <Tag {...props} {...hookProps} />
|
|
1402
1402
|
disabled: void 0,
|
|
1403
|
-
tabIndex: t ? void 0 :
|
|
1403
|
+
tabIndex: t ? void 0 : l,
|
|
1404
1404
|
href: n,
|
|
1405
1405
|
target: e === "a" ? r : void 0,
|
|
1406
1406
|
"aria-disabled": t || void 0,
|
|
@@ -1409,14 +1409,14 @@ function Ze({
|
|
|
1409
1409
|
onKeyDown: f
|
|
1410
1410
|
}, u];
|
|
1411
1411
|
}
|
|
1412
|
-
const
|
|
1412
|
+
const tt = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
1413
1413
|
let {
|
|
1414
1414
|
as: n,
|
|
1415
1415
|
disabled: r
|
|
1416
|
-
} = e, o =
|
|
1416
|
+
} = e, o = Ro(e, Fo);
|
|
1417
1417
|
const [s, {
|
|
1418
1418
|
tagName: i
|
|
1419
|
-
}] =
|
|
1419
|
+
}] = et(Object.assign({
|
|
1420
1420
|
tagName: n,
|
|
1421
1421
|
disabled: r
|
|
1422
1422
|
}, o));
|
|
@@ -1424,9 +1424,9 @@ const et = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
|
1424
1424
|
ref: t
|
|
1425
1425
|
}));
|
|
1426
1426
|
});
|
|
1427
|
-
|
|
1428
|
-
const
|
|
1429
|
-
function
|
|
1427
|
+
tt.displayName = "Button";
|
|
1428
|
+
const Ao = ["onKeyDown"];
|
|
1429
|
+
function Yo(e, t) {
|
|
1430
1430
|
if (e == null)
|
|
1431
1431
|
return {};
|
|
1432
1432
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -1434,19 +1434,19 @@ function Ao(e, t) {
|
|
|
1434
1434
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1435
1435
|
return n;
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Ko(e) {
|
|
1438
1438
|
return !e || e.trim() === "#";
|
|
1439
1439
|
}
|
|
1440
|
-
const
|
|
1440
|
+
const nt = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
1441
1441
|
let {
|
|
1442
1442
|
onKeyDown: n
|
|
1443
|
-
} = e, r =
|
|
1444
|
-
const [o] =
|
|
1443
|
+
} = e, r = Yo(e, Ao);
|
|
1444
|
+
const [o] = et(Object.assign({
|
|
1445
1445
|
tagName: "a"
|
|
1446
|
-
}, r)), s =
|
|
1446
|
+
}, r)), s = re((i) => {
|
|
1447
1447
|
o.onKeyDown(i), n == null || n(i);
|
|
1448
1448
|
});
|
|
1449
|
-
return
|
|
1449
|
+
return Ko(r.href) || r.role === "button" ? /* @__PURE__ */ a.jsx("a", Object.assign({
|
|
1450
1450
|
ref: t
|
|
1451
1451
|
}, r, o, {
|
|
1452
1452
|
onKeyDown: s
|
|
@@ -1456,8 +1456,8 @@ const tt = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
|
1456
1456
|
onKeyDown: n
|
|
1457
1457
|
}));
|
|
1458
1458
|
});
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1459
|
+
nt.displayName = "Anchor";
|
|
1460
|
+
const Zt = /* @__PURE__ */ C.forwardRef(({
|
|
1461
1461
|
as: e,
|
|
1462
1462
|
bsPrefix: t,
|
|
1463
1463
|
variant: n = "primary",
|
|
@@ -1465,68 +1465,68 @@ const zt = /* @__PURE__ */ C.forwardRef(({
|
|
|
1465
1465
|
active: o = !1,
|
|
1466
1466
|
disabled: s = !1,
|
|
1467
1467
|
className: i,
|
|
1468
|
-
...
|
|
1469
|
-
},
|
|
1468
|
+
...l
|
|
1469
|
+
}, c) => {
|
|
1470
1470
|
const u = W(t, "btn"), [d, {
|
|
1471
1471
|
tagName: f
|
|
1472
|
-
}] =
|
|
1472
|
+
}] = et({
|
|
1473
1473
|
tagName: e,
|
|
1474
1474
|
disabled: s,
|
|
1475
|
-
...
|
|
1475
|
+
...l
|
|
1476
1476
|
}), m = f;
|
|
1477
1477
|
return /* @__PURE__ */ a.jsx(m, {
|
|
1478
1478
|
...d,
|
|
1479
|
-
...
|
|
1480
|
-
ref:
|
|
1479
|
+
...l,
|
|
1480
|
+
ref: c,
|
|
1481
1481
|
disabled: s,
|
|
1482
|
-
className: w(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`,
|
|
1482
|
+
className: w(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, l.href && s && "disabled")
|
|
1483
1483
|
});
|
|
1484
1484
|
});
|
|
1485
|
-
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
function
|
|
1485
|
+
Zt.displayName = "Button";
|
|
1486
|
+
const en = /* @__PURE__ */ C.createContext(null);
|
|
1487
|
+
en.displayName = "CardHeaderContext";
|
|
1488
|
+
function Nt(e, t) {
|
|
1489
1489
|
let n = 0;
|
|
1490
1490
|
return C.Children.map(e, (r) => /* @__PURE__ */ C.isValidElement(r) ? t(r, n++) : r);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Bo(e, t) {
|
|
1493
1493
|
let n = 0;
|
|
1494
1494
|
C.Children.forEach(e, (r) => {
|
|
1495
1495
|
/* @__PURE__ */ C.isValidElement(r) && t(r, n++);
|
|
1496
1496
|
});
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function qo(e, t) {
|
|
1499
1499
|
return C.Children.toArray(e).some((n) => /* @__PURE__ */ C.isValidElement(n) && n.type === t);
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Ho({
|
|
1502
1502
|
as: e,
|
|
1503
1503
|
bsPrefix: t,
|
|
1504
1504
|
className: n,
|
|
1505
1505
|
...r
|
|
1506
1506
|
}) {
|
|
1507
1507
|
t = W(t, "col");
|
|
1508
|
-
const o =
|
|
1509
|
-
return o.forEach((
|
|
1510
|
-
const u = r[
|
|
1511
|
-
delete r[
|
|
1508
|
+
const o = tr(), s = nr(), i = [], l = [];
|
|
1509
|
+
return o.forEach((c) => {
|
|
1510
|
+
const u = r[c];
|
|
1511
|
+
delete r[c];
|
|
1512
1512
|
let d, f, m;
|
|
1513
1513
|
typeof u == "object" && u != null ? {
|
|
1514
1514
|
span: d,
|
|
1515
1515
|
offset: f,
|
|
1516
1516
|
order: m
|
|
1517
1517
|
} = u : d = u;
|
|
1518
|
-
const h =
|
|
1519
|
-
d && i.push(d === !0 ? `${t}${h}` : `${t}${h}-${d}`), m != null &&
|
|
1518
|
+
const h = c !== s ? `-${c}` : "";
|
|
1519
|
+
d && i.push(d === !0 ? `${t}${h}` : `${t}${h}-${d}`), m != null && l.push(`order${h}-${m}`), f != null && l.push(`offset${h}-${f}`);
|
|
1520
1520
|
}), [{
|
|
1521
1521
|
...r,
|
|
1522
|
-
className: w(n, ...i, ...
|
|
1522
|
+
className: w(n, ...i, ...l)
|
|
1523
1523
|
}, {
|
|
1524
1524
|
as: e,
|
|
1525
1525
|
bsPrefix: t,
|
|
1526
1526
|
spans: i
|
|
1527
1527
|
}];
|
|
1528
1528
|
}
|
|
1529
|
-
const
|
|
1529
|
+
const tn = /* @__PURE__ */ C.forwardRef(
|
|
1530
1530
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1531
1531
|
(e, t) => {
|
|
1532
1532
|
const [{
|
|
@@ -1536,7 +1536,7 @@ const Zt = /* @__PURE__ */ C.forwardRef(
|
|
|
1536
1536
|
as: o = "div",
|
|
1537
1537
|
bsPrefix: s,
|
|
1538
1538
|
spans: i
|
|
1539
|
-
}] =
|
|
1539
|
+
}] = Ho(e);
|
|
1540
1540
|
return /* @__PURE__ */ a.jsx(o, {
|
|
1541
1541
|
...r,
|
|
1542
1542
|
ref: t,
|
|
@@ -1544,21 +1544,21 @@ const Zt = /* @__PURE__ */ C.forwardRef(
|
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
);
|
|
1547
|
-
|
|
1548
|
-
function
|
|
1549
|
-
const r =
|
|
1550
|
-
return r.current = i, !i &&
|
|
1551
|
-
const [u, ...d] =
|
|
1547
|
+
tn.displayName = "Col";
|
|
1548
|
+
function nn(e, t, n) {
|
|
1549
|
+
const r = A(e !== void 0), [o, s] = M(t), i = e !== void 0, l = r.current;
|
|
1550
|
+
return r.current = i, !i && l && o !== t && s(t), [i ? e : o, S((...c) => {
|
|
1551
|
+
const [u, ...d] = c;
|
|
1552
1552
|
let f = n == null ? void 0 : n(u, ...d);
|
|
1553
1553
|
return s(u), f;
|
|
1554
1554
|
}, [n])];
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1557
|
-
const [, e] =
|
|
1556
|
+
function rn() {
|
|
1557
|
+
const [, e] = qt((t) => !t, !1);
|
|
1558
1558
|
return e;
|
|
1559
1559
|
}
|
|
1560
|
-
const
|
|
1561
|
-
function
|
|
1560
|
+
const Me = /* @__PURE__ */ C.createContext(null), Go = ["children", "usePopper"];
|
|
1561
|
+
function Vo(e, t) {
|
|
1562
1562
|
if (e == null)
|
|
1563
1563
|
return {};
|
|
1564
1564
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -1566,153 +1566,153 @@ function Go(e, t) {
|
|
|
1566
1566
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1567
1567
|
return n;
|
|
1568
1568
|
}
|
|
1569
|
-
const
|
|
1569
|
+
const Qo = () => {
|
|
1570
1570
|
};
|
|
1571
|
-
function
|
|
1572
|
-
const t = O(
|
|
1571
|
+
function on(e = {}) {
|
|
1572
|
+
const t = O(Me), [n, r] = rr(), o = A(!1), {
|
|
1573
1573
|
flip: s,
|
|
1574
1574
|
offset: i,
|
|
1575
|
-
rootCloseEvent:
|
|
1576
|
-
fixed:
|
|
1575
|
+
rootCloseEvent: l,
|
|
1576
|
+
fixed: c = !1,
|
|
1577
1577
|
placement: u,
|
|
1578
1578
|
popperConfig: d = {},
|
|
1579
1579
|
enableEventListeners: f = !0,
|
|
1580
1580
|
usePopper: m = !!t
|
|
1581
1581
|
} = e, h = (t == null ? void 0 : t.show) == null ? !!e.show : t.show;
|
|
1582
1582
|
h && !o.current && (o.current = !0);
|
|
1583
|
-
const
|
|
1584
|
-
t == null || t.toggle(!1,
|
|
1583
|
+
const x = (y) => {
|
|
1584
|
+
t == null || t.toggle(!1, y);
|
|
1585
1585
|
}, {
|
|
1586
1586
|
placement: p,
|
|
1587
|
-
setMenu:
|
|
1588
|
-
menuElement:
|
|
1589
|
-
toggleElement:
|
|
1590
|
-
} = t || {},
|
|
1587
|
+
setMenu: g,
|
|
1588
|
+
menuElement: j,
|
|
1589
|
+
toggleElement: _
|
|
1590
|
+
} = t || {}, b = or(_, j, ar({
|
|
1591
1591
|
placement: u || p || "bottom-start",
|
|
1592
1592
|
enabled: m,
|
|
1593
1593
|
enableEvents: f ?? h,
|
|
1594
1594
|
offset: i,
|
|
1595
1595
|
flip: s,
|
|
1596
|
-
fixed:
|
|
1596
|
+
fixed: c,
|
|
1597
1597
|
arrowElement: n,
|
|
1598
1598
|
popperConfig: d
|
|
1599
|
-
})),
|
|
1600
|
-
ref:
|
|
1601
|
-
"aria-labelledby":
|
|
1602
|
-
},
|
|
1603
|
-
style:
|
|
1604
|
-
}),
|
|
1599
|
+
})), k = Object.assign({
|
|
1600
|
+
ref: g || Qo,
|
|
1601
|
+
"aria-labelledby": _ == null ? void 0 : _.id
|
|
1602
|
+
}, b.attributes.popper, {
|
|
1603
|
+
style: b.styles.popper
|
|
1604
|
+
}), v = {
|
|
1605
1605
|
show: h,
|
|
1606
1606
|
placement: p,
|
|
1607
1607
|
hasShown: o.current,
|
|
1608
1608
|
toggle: t == null ? void 0 : t.toggle,
|
|
1609
|
-
popper: m ?
|
|
1609
|
+
popper: m ? b : null,
|
|
1610
1610
|
arrowProps: m ? Object.assign({
|
|
1611
1611
|
ref: r
|
|
1612
|
-
},
|
|
1613
|
-
style:
|
|
1612
|
+
}, b.attributes.arrow, {
|
|
1613
|
+
style: b.styles.arrow
|
|
1614
1614
|
}) : {}
|
|
1615
1615
|
};
|
|
1616
|
-
return
|
|
1617
|
-
clickTrigger:
|
|
1616
|
+
return sr(j, x, {
|
|
1617
|
+
clickTrigger: l,
|
|
1618
1618
|
disabled: !h
|
|
1619
|
-
}), [
|
|
1619
|
+
}), [k, v];
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function an(e) {
|
|
1622
1622
|
let {
|
|
1623
1623
|
children: t,
|
|
1624
1624
|
usePopper: n = !0
|
|
1625
|
-
} = e, r =
|
|
1626
|
-
const [o, s] =
|
|
1625
|
+
} = e, r = Vo(e, Go);
|
|
1626
|
+
const [o, s] = on(Object.assign({}, r, {
|
|
1627
1627
|
usePopper: n
|
|
1628
1628
|
}));
|
|
1629
1629
|
return /* @__PURE__ */ a.jsx(a.Fragment, {
|
|
1630
1630
|
children: t(o, s)
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
|
|
1634
|
-
const
|
|
1633
|
+
an.displayName = "DropdownMenu";
|
|
1634
|
+
const Oe = {
|
|
1635
1635
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1636
1636
|
current: 0
|
|
1637
|
-
},
|
|
1638
|
-
let
|
|
1637
|
+
}, sn = /* @__PURE__ */ Z.createContext(Oe), Xo = /* @__PURE__ */ Z.createContext(!1);
|
|
1638
|
+
let zo = !!(typeof window < "u" && window.document && window.document.createElement), Be = /* @__PURE__ */ new WeakMap();
|
|
1639
1639
|
function Uo(e = !1) {
|
|
1640
|
-
let t = O(
|
|
1640
|
+
let t = O(sn), n = A(null);
|
|
1641
1641
|
if (n.current === null && !e) {
|
|
1642
1642
|
var r, o;
|
|
1643
|
-
let s = (o =
|
|
1643
|
+
let s = (o = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
1644
1644
|
if (s) {
|
|
1645
|
-
let i =
|
|
1646
|
-
i == null ?
|
|
1645
|
+
let i = Be.get(s);
|
|
1646
|
+
i == null ? Be.set(s, {
|
|
1647
1647
|
id: t.current,
|
|
1648
1648
|
state: s.memoizedState
|
|
1649
|
-
}) : s.memoizedState !== i.state && (t.current = i.id,
|
|
1649
|
+
}) : s.memoizedState !== i.state && (t.current = i.id, Be.delete(s));
|
|
1650
1650
|
}
|
|
1651
1651
|
n.current = ++t.current;
|
|
1652
1652
|
}
|
|
1653
1653
|
return n.current;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
let t = O(
|
|
1657
|
-
t ===
|
|
1658
|
-
let n = Uo(!!e), r = t ===
|
|
1655
|
+
function Jo(e) {
|
|
1656
|
+
let t = O(sn);
|
|
1657
|
+
t === Oe && !zo && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1658
|
+
let n = Uo(!!e), r = t === Oe && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
1659
1659
|
return e || `${r}-${n}`;
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1662
|
-
let t =
|
|
1661
|
+
function Zo(e) {
|
|
1662
|
+
let t = Z.useId(), [n] = M(ra()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Oe.prefix}`;
|
|
1663
1663
|
return e || `${r}-${t}`;
|
|
1664
1664
|
}
|
|
1665
|
-
const
|
|
1666
|
-
function
|
|
1665
|
+
const cn = typeof Z.useId == "function" ? Zo : Jo;
|
|
1666
|
+
function ea() {
|
|
1667
1667
|
return !1;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function ta() {
|
|
1670
1670
|
return !0;
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function na(e) {
|
|
1673
1673
|
return () => {
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1677
|
-
return typeof
|
|
1676
|
+
function ra() {
|
|
1677
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(na, ea, ta) : O(Xo);
|
|
1678
1678
|
}
|
|
1679
|
-
const
|
|
1679
|
+
const ln = (e) => {
|
|
1680
1680
|
var t;
|
|
1681
1681
|
return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
|
|
1682
|
-
},
|
|
1682
|
+
}, Ct = () => {
|
|
1683
1683
|
};
|
|
1684
|
-
function
|
|
1685
|
-
const e =
|
|
1684
|
+
function un() {
|
|
1685
|
+
const e = cn(), {
|
|
1686
1686
|
show: t = !1,
|
|
1687
|
-
toggle: n =
|
|
1687
|
+
toggle: n = Ct,
|
|
1688
1688
|
setToggle: r,
|
|
1689
1689
|
menuElement: o
|
|
1690
|
-
} = O(
|
|
1691
|
-
n(!t,
|
|
1690
|
+
} = O(Me) || {}, s = S((l) => {
|
|
1691
|
+
n(!t, l);
|
|
1692
1692
|
}, [t, n]), i = {
|
|
1693
1693
|
id: e,
|
|
1694
|
-
ref: r ||
|
|
1694
|
+
ref: r || Ct,
|
|
1695
1695
|
onClick: s,
|
|
1696
1696
|
"aria-expanded": !!t
|
|
1697
1697
|
};
|
|
1698
|
-
return o &&
|
|
1698
|
+
return o && ln(o) && (i["aria-haspopup"] = !0), [i, {
|
|
1699
1699
|
show: t,
|
|
1700
1700
|
toggle: n
|
|
1701
1701
|
}];
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function dn({
|
|
1704
1704
|
children: e
|
|
1705
1705
|
}) {
|
|
1706
|
-
const [t, n] =
|
|
1706
|
+
const [t, n] = un();
|
|
1707
1707
|
return /* @__PURE__ */ a.jsx(a.Fragment, {
|
|
1708
1708
|
children: e(t, n)
|
|
1709
1709
|
});
|
|
1710
1710
|
}
|
|
1711
|
-
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1714
|
-
const
|
|
1715
|
-
function
|
|
1711
|
+
dn.displayName = "DropdownToggle";
|
|
1712
|
+
const ee = /* @__PURE__ */ C.createContext(null), ce = (e, t = null) => e != null ? String(e) : t || null, Pe = /* @__PURE__ */ C.createContext(null);
|
|
1713
|
+
Pe.displayName = "NavContext";
|
|
1714
|
+
const oa = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1715
|
+
function aa(e, t) {
|
|
1716
1716
|
if (e == null)
|
|
1717
1717
|
return {};
|
|
1718
1718
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -1720,155 +1720,155 @@ function oa(e, t) {
|
|
|
1720
1720
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1721
1721
|
return n;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function fn({
|
|
1724
1724
|
key: e,
|
|
1725
1725
|
href: t,
|
|
1726
1726
|
active: n,
|
|
1727
1727
|
disabled: r,
|
|
1728
1728
|
onClick: o
|
|
1729
1729
|
}) {
|
|
1730
|
-
const s = O(
|
|
1731
|
-
activeKey:
|
|
1732
|
-
} = i || {},
|
|
1730
|
+
const s = O(ee), i = O(Pe), {
|
|
1731
|
+
activeKey: l
|
|
1732
|
+
} = i || {}, c = ce(e, t), u = n == null && e != null ? ce(l) === c : n;
|
|
1733
1733
|
return [{
|
|
1734
|
-
onClick:
|
|
1735
|
-
r || (o == null || o(f), s && !f.isPropagationStopped() && s(
|
|
1734
|
+
onClick: re((f) => {
|
|
1735
|
+
r || (o == null || o(f), s && !f.isPropagationStopped() && s(c, f));
|
|
1736
1736
|
}),
|
|
1737
1737
|
"aria-disabled": r || void 0,
|
|
1738
1738
|
"aria-selected": u,
|
|
1739
|
-
[
|
|
1739
|
+
[Ne("dropdown-item")]: ""
|
|
1740
1740
|
}, {
|
|
1741
1741
|
isActive: u
|
|
1742
1742
|
}];
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1744
|
+
const mn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
1745
1745
|
let {
|
|
1746
1746
|
eventKey: n,
|
|
1747
1747
|
disabled: r,
|
|
1748
1748
|
onClick: o,
|
|
1749
1749
|
active: s,
|
|
1750
|
-
as: i =
|
|
1751
|
-
} = e,
|
|
1752
|
-
const [
|
|
1750
|
+
as: i = tt
|
|
1751
|
+
} = e, l = aa(e, oa);
|
|
1752
|
+
const [c] = fn({
|
|
1753
1753
|
key: n,
|
|
1754
|
-
href:
|
|
1754
|
+
href: l.href,
|
|
1755
1755
|
disabled: r,
|
|
1756
1756
|
onClick: o,
|
|
1757
1757
|
active: s
|
|
1758
1758
|
});
|
|
1759
|
-
return /* @__PURE__ */ a.jsx(i, Object.assign({},
|
|
1759
|
+
return /* @__PURE__ */ a.jsx(i, Object.assign({}, l, {
|
|
1760
1760
|
ref: t
|
|
1761
|
-
},
|
|
1761
|
+
}, c));
|
|
1762
1762
|
});
|
|
1763
|
-
|
|
1764
|
-
function
|
|
1765
|
-
const e =
|
|
1763
|
+
mn.displayName = "DropdownItem";
|
|
1764
|
+
function $t() {
|
|
1765
|
+
const e = rn(), t = A(null), n = S((r) => {
|
|
1766
1766
|
t.current = r, e();
|
|
1767
1767
|
}, [e]);
|
|
1768
1768
|
return [t, n];
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function Ce({
|
|
1771
1771
|
defaultShow: e,
|
|
1772
1772
|
show: t,
|
|
1773
1773
|
onSelect: n,
|
|
1774
1774
|
onToggle: r,
|
|
1775
|
-
itemSelector: o = `* [${
|
|
1775
|
+
itemSelector: o = `* [${Ne("dropdown-item")}]`,
|
|
1776
1776
|
focusFirstItemOnShow: s,
|
|
1777
1777
|
placement: i = "bottom-start",
|
|
1778
|
-
children:
|
|
1778
|
+
children: l
|
|
1779
1779
|
}) {
|
|
1780
|
-
const
|
|
1780
|
+
const c = ir(), [u, d] = nn(t, e, r), [f, m] = $t(), h = f.current, [x, p] = $t(), g = x.current, j = jr(u), _ = A(null), b = A(!1), k = O(ee), v = S((E, P, Y = P == null ? void 0 : P.type) => {
|
|
1781
1781
|
d(E, {
|
|
1782
1782
|
originalEvent: P,
|
|
1783
|
-
source:
|
|
1783
|
+
source: Y
|
|
1784
1784
|
});
|
|
1785
|
-
}, [d]),
|
|
1786
|
-
n == null || n(E, P),
|
|
1787
|
-
}), $ =
|
|
1788
|
-
toggle:
|
|
1785
|
+
}, [d]), y = re((E, P) => {
|
|
1786
|
+
n == null || n(E, P), v(!1, P, "select"), P.isPropagationStopped() || k == null || k(E, P);
|
|
1787
|
+
}), $ = K(() => ({
|
|
1788
|
+
toggle: v,
|
|
1789
1789
|
placement: i,
|
|
1790
1790
|
show: u,
|
|
1791
1791
|
menuElement: h,
|
|
1792
|
-
toggleElement:
|
|
1792
|
+
toggleElement: g,
|
|
1793
1793
|
setMenu: m,
|
|
1794
1794
|
setToggle: p
|
|
1795
|
-
}), [
|
|
1796
|
-
h &&
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1799
|
-
}), R =
|
|
1800
|
-
const E =
|
|
1795
|
+
}), [v, i, u, h, g, m, p]);
|
|
1796
|
+
h && j && !u && (b.current = h.contains(h.ownerDocument.activeElement));
|
|
1797
|
+
const N = re(() => {
|
|
1798
|
+
g && g.focus && g.focus();
|
|
1799
|
+
}), R = re(() => {
|
|
1800
|
+
const E = _.current;
|
|
1801
1801
|
let P = s;
|
|
1802
|
-
if (P == null && (P = f.current &&
|
|
1802
|
+
if (P == null && (P = f.current && ln(f.current) ? "keyboard" : !1), P === !1 || P === "keyboard" && !/^key.+$/.test(E))
|
|
1803
1803
|
return;
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1804
|
+
const Y = Ge(f.current, o)[0];
|
|
1805
|
+
Y && Y.focus && Y.focus();
|
|
1806
1806
|
});
|
|
1807
|
-
|
|
1808
|
-
u ? R() :
|
|
1809
|
-
}, [u,
|
|
1810
|
-
|
|
1807
|
+
I(() => {
|
|
1808
|
+
u ? R() : b.current && (b.current = !1, N());
|
|
1809
|
+
}, [u, b, N, R]), I(() => {
|
|
1810
|
+
_.current = null;
|
|
1811
1811
|
});
|
|
1812
|
-
const
|
|
1812
|
+
const D = (E, P) => {
|
|
1813
1813
|
if (!f.current)
|
|
1814
1814
|
return null;
|
|
1815
|
-
const
|
|
1816
|
-
let
|
|
1817
|
-
return
|
|
1815
|
+
const Y = Ge(f.current, o);
|
|
1816
|
+
let V = Y.indexOf(E) + P;
|
|
1817
|
+
return V = Math.max(0, Math.min(V, Y.length)), Y[V];
|
|
1818
1818
|
};
|
|
1819
|
-
return
|
|
1820
|
-
var P,
|
|
1819
|
+
return Wo(S(() => c.document, [c]), "keydown", (E) => {
|
|
1820
|
+
var P, Y;
|
|
1821
1821
|
const {
|
|
1822
|
-
key:
|
|
1823
|
-
} = E,
|
|
1824
|
-
if (/input|textarea/i.test(
|
|
1822
|
+
key: V
|
|
1823
|
+
} = E, z = E.target, F = (P = f.current) == null ? void 0 : P.contains(z), fe = (Y = x.current) == null ? void 0 : Y.contains(z);
|
|
1824
|
+
if (/input|textarea/i.test(z.tagName) && (V === " " || V !== "Escape" && F || V === "Escape" && z.type === "search") || !F && !fe || V === "Tab" && (!f.current || !u))
|
|
1825
1825
|
return;
|
|
1826
|
-
|
|
1827
|
-
const
|
|
1826
|
+
_.current = E.type;
|
|
1827
|
+
const Ae = {
|
|
1828
1828
|
originalEvent: E,
|
|
1829
1829
|
source: E.type
|
|
1830
1830
|
};
|
|
1831
|
-
switch (
|
|
1831
|
+
switch (V) {
|
|
1832
1832
|
case "ArrowUp": {
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1833
|
+
const X = D(z, -1);
|
|
1834
|
+
X && X.focus && X.focus(), E.preventDefault();
|
|
1835
1835
|
return;
|
|
1836
1836
|
}
|
|
1837
1837
|
case "ArrowDown":
|
|
1838
1838
|
if (E.preventDefault(), !u)
|
|
1839
|
-
d(!0,
|
|
1839
|
+
d(!0, Ae);
|
|
1840
1840
|
else {
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1841
|
+
const X = D(z, 1);
|
|
1842
|
+
X && X.focus && X.focus();
|
|
1843
1843
|
}
|
|
1844
1844
|
return;
|
|
1845
1845
|
case "Tab":
|
|
1846
|
-
|
|
1847
|
-
var
|
|
1848
|
-
(
|
|
1846
|
+
cr(z.ownerDocument, "keyup", (X) => {
|
|
1847
|
+
var gt;
|
|
1848
|
+
(X.key === "Tab" && !X.target || !((gt = f.current) != null && gt.contains(X.target))) && d(!1, Ae);
|
|
1849
1849
|
}, {
|
|
1850
1850
|
once: !0
|
|
1851
1851
|
});
|
|
1852
1852
|
break;
|
|
1853
1853
|
case "Escape":
|
|
1854
|
-
|
|
1854
|
+
V === "Escape" && (E.preventDefault(), E.stopPropagation()), d(!1, Ae);
|
|
1855
1855
|
break;
|
|
1856
1856
|
}
|
|
1857
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1858
|
-
value:
|
|
1859
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1857
|
+
}), /* @__PURE__ */ a.jsx(ee.Provider, {
|
|
1858
|
+
value: y,
|
|
1859
|
+
children: /* @__PURE__ */ a.jsx(Me.Provider, {
|
|
1860
1860
|
value: $,
|
|
1861
|
-
children:
|
|
1861
|
+
children: l
|
|
1862
1862
|
})
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1871
|
-
const
|
|
1865
|
+
Ce.displayName = "Dropdown";
|
|
1866
|
+
Ce.Menu = an;
|
|
1867
|
+
Ce.Toggle = dn;
|
|
1868
|
+
Ce.Item = mn;
|
|
1869
|
+
const rt = /* @__PURE__ */ C.createContext({});
|
|
1870
|
+
rt.displayName = "DropdownContext";
|
|
1871
|
+
const hn = /* @__PURE__ */ C.forwardRef(({
|
|
1872
1872
|
className: e,
|
|
1873
1873
|
bsPrefix: t,
|
|
1874
1874
|
as: n = "hr",
|
|
@@ -1880,8 +1880,8 @@ const fn = /* @__PURE__ */ C.forwardRef(({
|
|
|
1880
1880
|
role: r,
|
|
1881
1881
|
...o
|
|
1882
1882
|
})));
|
|
1883
|
-
|
|
1884
|
-
const
|
|
1883
|
+
hn.displayName = "DropdownDivider";
|
|
1884
|
+
const pn = /* @__PURE__ */ C.forwardRef(({
|
|
1885
1885
|
className: e,
|
|
1886
1886
|
bsPrefix: t,
|
|
1887
1887
|
as: n = "div",
|
|
@@ -1893,33 +1893,33 @@ const mn = /* @__PURE__ */ C.forwardRef(({
|
|
|
1893
1893
|
role: r,
|
|
1894
1894
|
...o
|
|
1895
1895
|
})));
|
|
1896
|
-
|
|
1897
|
-
const
|
|
1896
|
+
pn.displayName = "DropdownHeader";
|
|
1897
|
+
const gn = /* @__PURE__ */ C.forwardRef(({
|
|
1898
1898
|
bsPrefix: e,
|
|
1899
1899
|
className: t,
|
|
1900
1900
|
eventKey: n,
|
|
1901
1901
|
disabled: r = !1,
|
|
1902
1902
|
onClick: o,
|
|
1903
1903
|
active: s,
|
|
1904
|
-
as: i =
|
|
1905
|
-
...
|
|
1906
|
-
},
|
|
1907
|
-
const u = W(e, "dropdown-item"), [d, f] =
|
|
1904
|
+
as: i = nt,
|
|
1905
|
+
...l
|
|
1906
|
+
}, c) => {
|
|
1907
|
+
const u = W(e, "dropdown-item"), [d, f] = fn({
|
|
1908
1908
|
key: n,
|
|
1909
|
-
href:
|
|
1909
|
+
href: l.href,
|
|
1910
1910
|
disabled: r,
|
|
1911
1911
|
onClick: o,
|
|
1912
1912
|
active: s
|
|
1913
1913
|
});
|
|
1914
1914
|
return /* @__PURE__ */ a.jsx(i, {
|
|
1915
|
-
...
|
|
1915
|
+
...l,
|
|
1916
1916
|
...d,
|
|
1917
|
-
ref:
|
|
1917
|
+
ref: c,
|
|
1918
1918
|
className: w(t, u, f.isActive && "active", r && "disabled")
|
|
1919
1919
|
});
|
|
1920
1920
|
});
|
|
1921
|
-
|
|
1922
|
-
const
|
|
1921
|
+
gn.displayName = "DropdownItem";
|
|
1922
|
+
const xn = /* @__PURE__ */ C.forwardRef(({
|
|
1923
1923
|
className: e,
|
|
1924
1924
|
bsPrefix: t,
|
|
1925
1925
|
as: n = "span",
|
|
@@ -1929,25 +1929,25 @@ const pn = /* @__PURE__ */ C.forwardRef(({
|
|
|
1929
1929
|
className: w(e, t),
|
|
1930
1930
|
...r
|
|
1931
1931
|
})));
|
|
1932
|
-
|
|
1933
|
-
const
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1937
|
-
function
|
|
1932
|
+
xn.displayName = "DropdownItemText";
|
|
1933
|
+
const We = /* @__PURE__ */ C.createContext(null);
|
|
1934
|
+
We.displayName = "InputGroupContext";
|
|
1935
|
+
const ot = /* @__PURE__ */ C.createContext(null);
|
|
1936
|
+
ot.displayName = "NavbarContext";
|
|
1937
|
+
function bn(e, t) {
|
|
1938
1938
|
if (process.env.NODE_ENV === "production")
|
|
1939
1939
|
return e;
|
|
1940
|
-
const n =
|
|
1941
|
-
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ?
|
|
1940
|
+
const n = S((r) => {
|
|
1941
|
+
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? kt(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : kt(!1));
|
|
1942
1942
|
}, [t]);
|
|
1943
1943
|
return De(n, e);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1946
|
-
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", s = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end",
|
|
1945
|
+
function wn(e, t, n) {
|
|
1946
|
+
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", s = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", l = n ? "right-start" : "left-start", c = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
|
|
1947
1947
|
let f = e ? i : s;
|
|
1948
|
-
return t === "up" ? f = e ? o : r : t === "end" ? f = e ? d : u : t === "start" ? f = e ?
|
|
1948
|
+
return t === "up" ? f = e ? o : r : t === "end" ? f = e ? d : u : t === "start" ? f = e ? c : l : t === "down-centered" ? f = "bottom" : t === "up-centered" && (f = "top"), f;
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1950
|
+
const vn = /* @__PURE__ */ C.forwardRef(({
|
|
1951
1951
|
bsPrefix: e,
|
|
1952
1952
|
className: t,
|
|
1953
1953
|
align: n,
|
|
@@ -1956,106 +1956,106 @@ const xn = /* @__PURE__ */ C.forwardRef(({
|
|
|
1956
1956
|
show: s,
|
|
1957
1957
|
renderOnMount: i,
|
|
1958
1958
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1959
|
-
as:
|
|
1960
|
-
popperConfig:
|
|
1959
|
+
as: l = "div",
|
|
1960
|
+
popperConfig: c,
|
|
1961
1961
|
variant: u,
|
|
1962
1962
|
...d
|
|
1963
1963
|
}, f) => {
|
|
1964
1964
|
let m = !1;
|
|
1965
|
-
const h = O(
|
|
1965
|
+
const h = O(ot), x = W(e, "dropdown-menu"), {
|
|
1966
1966
|
align: p,
|
|
1967
|
-
drop:
|
|
1968
|
-
isRTL:
|
|
1969
|
-
} = O(
|
|
1967
|
+
drop: g,
|
|
1968
|
+
isRTL: j
|
|
1969
|
+
} = O(rt);
|
|
1970
1970
|
n = n || p;
|
|
1971
|
-
const
|
|
1971
|
+
const _ = O(We), b = [];
|
|
1972
1972
|
if (n)
|
|
1973
1973
|
if (typeof n == "object") {
|
|
1974
1974
|
const E = Object.keys(n);
|
|
1975
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1976
|
-
const P = E[0],
|
|
1977
|
-
m =
|
|
1975
|
+
if (process.env.NODE_ENV !== "production" && Je(E.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), E.length) {
|
|
1976
|
+
const P = E[0], Y = n[P];
|
|
1977
|
+
m = Y === "start", b.push(`${x}-${P}-${Y}`);
|
|
1978
1978
|
}
|
|
1979
1979
|
} else
|
|
1980
1980
|
n === "end" && (m = !0);
|
|
1981
|
-
const
|
|
1982
|
-
hasShown:
|
|
1981
|
+
const k = wn(m, g, j), [v, {
|
|
1982
|
+
hasShown: y,
|
|
1983
1983
|
popper: $,
|
|
1984
|
-
show:
|
|
1984
|
+
show: N,
|
|
1985
1985
|
toggle: R
|
|
1986
|
-
}] =
|
|
1986
|
+
}] = on({
|
|
1987
1987
|
flip: o,
|
|
1988
1988
|
rootCloseEvent: r,
|
|
1989
1989
|
show: s,
|
|
1990
|
-
usePopper: !h &&
|
|
1990
|
+
usePopper: !h && b.length === 0,
|
|
1991
1991
|
offset: [0, 2],
|
|
1992
|
-
popperConfig:
|
|
1993
|
-
placement:
|
|
1992
|
+
popperConfig: c,
|
|
1993
|
+
placement: k
|
|
1994
1994
|
});
|
|
1995
|
-
if (
|
|
1996
|
-
|
|
1997
|
-
}, [
|
|
1995
|
+
if (v.ref = De(bn(f, "DropdownMenu"), v.ref), lr(() => {
|
|
1996
|
+
N && ($ == null || $.update());
|
|
1997
|
+
}, [N]), !y && !i && !_)
|
|
1998
1998
|
return null;
|
|
1999
|
-
typeof
|
|
2000
|
-
let
|
|
2001
|
-
return $ != null && $.placement && (
|
|
1999
|
+
typeof l != "string" && (v.show = N, v.close = () => R == null ? void 0 : R(!1), v.align = n);
|
|
2000
|
+
let D = d.style;
|
|
2001
|
+
return $ != null && $.placement && (D = {
|
|
2002
2002
|
...d.style,
|
|
2003
|
-
...
|
|
2004
|
-
}, d["x-placement"] = $.placement), /* @__PURE__ */ a.jsx(
|
|
2003
|
+
...v.style
|
|
2004
|
+
}, d["x-placement"] = $.placement), /* @__PURE__ */ a.jsx(l, {
|
|
2005
2005
|
...d,
|
|
2006
|
-
...
|
|
2007
|
-
style:
|
|
2008
|
-
...(
|
|
2006
|
+
...v,
|
|
2007
|
+
style: D,
|
|
2008
|
+
...(b.length || h) && {
|
|
2009
2009
|
"data-bs-popper": "static"
|
|
2010
2010
|
},
|
|
2011
|
-
className: w(t,
|
|
2011
|
+
className: w(t, x, N && "show", m && `${x}-end`, u && `${x}-${u}`, ...b)
|
|
2012
2012
|
});
|
|
2013
2013
|
});
|
|
2014
|
-
|
|
2015
|
-
const
|
|
2014
|
+
vn.displayName = "DropdownMenu";
|
|
2015
|
+
const yn = /* @__PURE__ */ C.forwardRef(({
|
|
2016
2016
|
bsPrefix: e,
|
|
2017
2017
|
split: t,
|
|
2018
2018
|
className: n,
|
|
2019
2019
|
childBsPrefix: r,
|
|
2020
2020
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2021
|
-
as: o =
|
|
2021
|
+
as: o = Zt,
|
|
2022
2022
|
...s
|
|
2023
2023
|
}, i) => {
|
|
2024
|
-
const
|
|
2024
|
+
const l = W(e, "dropdown-toggle"), c = O(Me);
|
|
2025
2025
|
r !== void 0 && (s.bsPrefix = r);
|
|
2026
|
-
const [u] =
|
|
2027
|
-
return u.ref = De(u.ref,
|
|
2028
|
-
className: w(n,
|
|
2026
|
+
const [u] = un();
|
|
2027
|
+
return u.ref = De(u.ref, bn(i, "DropdownToggle")), /* @__PURE__ */ a.jsx(o, {
|
|
2028
|
+
className: w(n, l, t && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
2029
2029
|
...u,
|
|
2030
2030
|
...s
|
|
2031
2031
|
});
|
|
2032
2032
|
});
|
|
2033
|
-
|
|
2034
|
-
const
|
|
2033
|
+
yn.displayName = "DropdownToggle";
|
|
2034
|
+
const jn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
2035
2035
|
const {
|
|
2036
2036
|
bsPrefix: n,
|
|
2037
2037
|
drop: r = "down",
|
|
2038
2038
|
show: o,
|
|
2039
2039
|
className: s,
|
|
2040
2040
|
align: i = "start",
|
|
2041
|
-
onSelect:
|
|
2042
|
-
onToggle:
|
|
2041
|
+
onSelect: l,
|
|
2042
|
+
onToggle: c,
|
|
2043
2043
|
focusFirstItemOnShow: u,
|
|
2044
2044
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2045
2045
|
as: d = "div",
|
|
2046
2046
|
navbar: f,
|
|
2047
2047
|
autoClose: m = !0,
|
|
2048
2048
|
...h
|
|
2049
|
-
} =
|
|
2049
|
+
} = Ze(e, {
|
|
2050
2050
|
show: "onToggle"
|
|
2051
|
-
}),
|
|
2052
|
-
var R,
|
|
2053
|
-
!((R =
|
|
2054
|
-
}),
|
|
2051
|
+
}), x = O(We), p = W(n, "dropdown"), g = ur(), j = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, _ = re(($, N) => {
|
|
2052
|
+
var R, D;
|
|
2053
|
+
!((R = N.originalEvent) == null || (D = R.target) == null) && D.classList.contains("dropdown-toggle") && N.source === "mousedown" || (N.originalEvent.currentTarget === document && (N.source !== "keydown" || N.originalEvent.key === "Escape") && (N.source = "rootClose"), j(N.source) && (c == null || c($, N)));
|
|
2054
|
+
}), k = wn(i === "end", r, g), v = K(() => ({
|
|
2055
2055
|
align: i,
|
|
2056
2056
|
drop: r,
|
|
2057
|
-
isRTL:
|
|
2058
|
-
}), [i, r,
|
|
2057
|
+
isRTL: g
|
|
2058
|
+
}), [i, r, g]), y = {
|
|
2059
2059
|
down: p,
|
|
2060
2060
|
"down-centered": `${p}-center`,
|
|
2061
2061
|
up: "dropup",
|
|
@@ -2063,42 +2063,42 @@ const vn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
|
2063
2063
|
end: "dropend",
|
|
2064
2064
|
start: "dropstart"
|
|
2065
2065
|
};
|
|
2066
|
-
return /* @__PURE__ */ a.jsx(
|
|
2067
|
-
value:
|
|
2068
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2069
|
-
placement:
|
|
2066
|
+
return /* @__PURE__ */ a.jsx(rt.Provider, {
|
|
2067
|
+
value: v,
|
|
2068
|
+
children: /* @__PURE__ */ a.jsx(Ce, {
|
|
2069
|
+
placement: k,
|
|
2070
2070
|
show: o,
|
|
2071
|
-
onSelect:
|
|
2072
|
-
onToggle:
|
|
2071
|
+
onSelect: l,
|
|
2072
|
+
onToggle: _,
|
|
2073
2073
|
focusFirstItemOnShow: u,
|
|
2074
2074
|
itemSelector: `.${p}-item:not(.disabled):not(:disabled)`,
|
|
2075
|
-
children:
|
|
2075
|
+
children: x ? h.children : /* @__PURE__ */ a.jsx(d, {
|
|
2076
2076
|
...h,
|
|
2077
2077
|
ref: t,
|
|
2078
|
-
className: w(s, o && "show",
|
|
2078
|
+
className: w(s, o && "show", y[r])
|
|
2079
2079
|
})
|
|
2080
2080
|
})
|
|
2081
2081
|
});
|
|
2082
2082
|
});
|
|
2083
|
-
|
|
2084
|
-
const
|
|
2085
|
-
Toggle:
|
|
2086
|
-
Menu:
|
|
2087
|
-
Item:
|
|
2088
|
-
ItemText:
|
|
2089
|
-
Divider:
|
|
2090
|
-
Header:
|
|
2091
|
-
}),
|
|
2083
|
+
jn.displayName = "Dropdown";
|
|
2084
|
+
const ke = Object.assign(jn, {
|
|
2085
|
+
Toggle: yn,
|
|
2086
|
+
Menu: vn,
|
|
2087
|
+
Item: gn,
|
|
2088
|
+
ItemText: xn,
|
|
2089
|
+
Divider: hn,
|
|
2090
|
+
Header: pn
|
|
2091
|
+
}), sa = {
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Specify whether the feedback is for valid or invalid fields
|
|
2094
2094
|
*
|
|
2095
2095
|
* @type {('valid'|'invalid')}
|
|
2096
2096
|
*/
|
|
2097
|
-
type:
|
|
2097
|
+
type: H.string,
|
|
2098
2098
|
/** Display feedback as a tooltip. */
|
|
2099
|
-
tooltip:
|
|
2100
|
-
as:
|
|
2101
|
-
},
|
|
2099
|
+
tooltip: H.bool,
|
|
2100
|
+
as: H.elementType
|
|
2101
|
+
}, Fe = /* @__PURE__ */ C.forwardRef(
|
|
2102
2102
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2103
2103
|
({
|
|
2104
2104
|
as: e = "div",
|
|
@@ -2112,9 +2112,9 @@ const je = Object.assign(vn, {
|
|
|
2112
2112
|
className: w(t, `${n}-${r ? "tooltip" : "feedback"}`)
|
|
2113
2113
|
})
|
|
2114
2114
|
);
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
const
|
|
2115
|
+
Fe.displayName = "Feedback";
|
|
2116
|
+
Fe.propTypes = sa;
|
|
2117
|
+
const te = /* @__PURE__ */ C.createContext({}), $e = /* @__PURE__ */ C.forwardRef(({
|
|
2118
2118
|
id: e,
|
|
2119
2119
|
bsPrefix: t,
|
|
2120
2120
|
className: n,
|
|
@@ -2123,21 +2123,21 @@ const ee = /* @__PURE__ */ C.createContext({}), Ce = /* @__PURE__ */ C.forwardRe
|
|
|
2123
2123
|
isInvalid: s = !1,
|
|
2124
2124
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2125
2125
|
as: i = "input",
|
|
2126
|
-
...
|
|
2127
|
-
},
|
|
2126
|
+
...l
|
|
2127
|
+
}, c) => {
|
|
2128
2128
|
const {
|
|
2129
2129
|
controlId: u
|
|
2130
|
-
} = O(
|
|
2130
|
+
} = O(te);
|
|
2131
2131
|
return t = W(t, "form-check-input"), /* @__PURE__ */ a.jsx(i, {
|
|
2132
|
-
...
|
|
2133
|
-
ref:
|
|
2132
|
+
...l,
|
|
2133
|
+
ref: c,
|
|
2134
2134
|
type: r,
|
|
2135
2135
|
id: e || u,
|
|
2136
2136
|
className: w(n, t, o && "is-valid", s && "is-invalid")
|
|
2137
2137
|
});
|
|
2138
2138
|
});
|
|
2139
|
-
|
|
2140
|
-
const
|
|
2139
|
+
$e.displayName = "FormCheckInput";
|
|
2140
|
+
const Se = /* @__PURE__ */ C.forwardRef(({
|
|
2141
2141
|
bsPrefix: e,
|
|
2142
2142
|
className: t,
|
|
2143
2143
|
htmlFor: n,
|
|
@@ -2145,7 +2145,7 @@ const Oe = /* @__PURE__ */ C.forwardRef(({
|
|
|
2145
2145
|
}, o) => {
|
|
2146
2146
|
const {
|
|
2147
2147
|
controlId: s
|
|
2148
|
-
} = O(
|
|
2148
|
+
} = O(te);
|
|
2149
2149
|
return e = W(e, "form-check-label"), /* @__PURE__ */ a.jsx("label", {
|
|
2150
2150
|
...r,
|
|
2151
2151
|
ref: o,
|
|
@@ -2153,8 +2153,8 @@ const Oe = /* @__PURE__ */ C.forwardRef(({
|
|
|
2153
2153
|
className: w(t, e)
|
|
2154
2154
|
});
|
|
2155
2155
|
});
|
|
2156
|
-
|
|
2157
|
-
const
|
|
2156
|
+
Se.displayName = "FormCheckLabel";
|
|
2157
|
+
const _n = /* @__PURE__ */ C.forwardRef(({
|
|
2158
2158
|
id: e,
|
|
2159
2159
|
bsPrefix: t,
|
|
2160
2160
|
bsSwitchPrefix: n,
|
|
@@ -2162,57 +2162,57 @@ const yn = /* @__PURE__ */ C.forwardRef(({
|
|
|
2162
2162
|
reverse: o = !1,
|
|
2163
2163
|
disabled: s = !1,
|
|
2164
2164
|
isValid: i = !1,
|
|
2165
|
-
isInvalid:
|
|
2166
|
-
feedbackTooltip:
|
|
2165
|
+
isInvalid: l = !1,
|
|
2166
|
+
feedbackTooltip: c = !1,
|
|
2167
2167
|
feedback: u,
|
|
2168
2168
|
feedbackType: d,
|
|
2169
2169
|
className: f,
|
|
2170
2170
|
style: m,
|
|
2171
2171
|
title: h = "",
|
|
2172
|
-
type:
|
|
2172
|
+
type: x = "checkbox",
|
|
2173
2173
|
label: p,
|
|
2174
|
-
children:
|
|
2174
|
+
children: g,
|
|
2175
2175
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2176
|
-
as:
|
|
2177
|
-
...
|
|
2178
|
-
},
|
|
2176
|
+
as: j = "input",
|
|
2177
|
+
..._
|
|
2178
|
+
}, b) => {
|
|
2179
2179
|
t = W(t, "form-check"), n = W(n, "form-switch");
|
|
2180
2180
|
const {
|
|
2181
|
-
controlId:
|
|
2182
|
-
} = O(
|
|
2183
|
-
controlId: e ||
|
|
2184
|
-
}), [
|
|
2185
|
-
...
|
|
2186
|
-
type:
|
|
2187
|
-
ref:
|
|
2181
|
+
controlId: k
|
|
2182
|
+
} = O(te), v = K(() => ({
|
|
2183
|
+
controlId: e || k
|
|
2184
|
+
}), [k, e]), y = !g && p != null && p !== !1 || qo(g, Se), $ = /* @__PURE__ */ a.jsx($e, {
|
|
2185
|
+
..._,
|
|
2186
|
+
type: x === "switch" ? "checkbox" : x,
|
|
2187
|
+
ref: b,
|
|
2188
2188
|
isValid: i,
|
|
2189
|
-
isInvalid:
|
|
2189
|
+
isInvalid: l,
|
|
2190
2190
|
disabled: s,
|
|
2191
|
-
as:
|
|
2191
|
+
as: j
|
|
2192
2192
|
});
|
|
2193
|
-
return /* @__PURE__ */ a.jsx(
|
|
2194
|
-
value:
|
|
2193
|
+
return /* @__PURE__ */ a.jsx(te.Provider, {
|
|
2194
|
+
value: v,
|
|
2195
2195
|
children: /* @__PURE__ */ a.jsx("div", {
|
|
2196
2196
|
style: m,
|
|
2197
|
-
className: w(f,
|
|
2198
|
-
children:
|
|
2199
|
-
children: [$,
|
|
2197
|
+
className: w(f, y && t, r && `${t}-inline`, o && `${t}-reverse`, x === "switch" && n),
|
|
2198
|
+
children: g || /* @__PURE__ */ a.jsxs(a.Fragment, {
|
|
2199
|
+
children: [$, y && /* @__PURE__ */ a.jsx(Se, {
|
|
2200
2200
|
title: h,
|
|
2201
2201
|
children: p
|
|
2202
|
-
}), u && /* @__PURE__ */ a.jsx(
|
|
2202
|
+
}), u && /* @__PURE__ */ a.jsx(Fe, {
|
|
2203
2203
|
type: d,
|
|
2204
|
-
tooltip:
|
|
2204
|
+
tooltip: c,
|
|
2205
2205
|
children: u
|
|
2206
2206
|
})]
|
|
2207
2207
|
})
|
|
2208
2208
|
})
|
|
2209
2209
|
});
|
|
2210
2210
|
});
|
|
2211
|
-
|
|
2212
|
-
const
|
|
2213
|
-
Input:
|
|
2214
|
-
Label:
|
|
2215
|
-
}),
|
|
2211
|
+
_n.displayName = "FormCheck";
|
|
2212
|
+
const Ie = Object.assign(_n, {
|
|
2213
|
+
Input: $e,
|
|
2214
|
+
Label: Se
|
|
2215
|
+
}), kn = /* @__PURE__ */ C.forwardRef(({
|
|
2216
2216
|
bsPrefix: e,
|
|
2217
2217
|
type: t,
|
|
2218
2218
|
size: n,
|
|
@@ -2220,8 +2220,8 @@ const Se = Object.assign(yn, {
|
|
|
2220
2220
|
id: o,
|
|
2221
2221
|
className: s,
|
|
2222
2222
|
isValid: i = !1,
|
|
2223
|
-
isInvalid:
|
|
2224
|
-
plaintext:
|
|
2223
|
+
isInvalid: l = !1,
|
|
2224
|
+
plaintext: c,
|
|
2225
2225
|
readOnly: u,
|
|
2226
2226
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2227
2227
|
as: d = "input",
|
|
@@ -2229,21 +2229,21 @@ const Se = Object.assign(yn, {
|
|
|
2229
2229
|
}, m) => {
|
|
2230
2230
|
const {
|
|
2231
2231
|
controlId: h
|
|
2232
|
-
} = O(
|
|
2233
|
-
return e = W(e, "form-control"), process.env.NODE_ENV !== "production" &&
|
|
2232
|
+
} = O(te);
|
|
2233
|
+
return e = W(e, "form-control"), process.env.NODE_ENV !== "production" && Je(h == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ a.jsx(d, {
|
|
2234
2234
|
...f,
|
|
2235
2235
|
type: t,
|
|
2236
2236
|
size: r,
|
|
2237
2237
|
ref: m,
|
|
2238
2238
|
readOnly: u,
|
|
2239
2239
|
id: o || h,
|
|
2240
|
-
className: w(s,
|
|
2240
|
+
className: w(s, c ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, i && "is-valid", l && "is-invalid")
|
|
2241
2241
|
});
|
|
2242
2242
|
});
|
|
2243
|
-
|
|
2244
|
-
const
|
|
2245
|
-
Feedback:
|
|
2246
|
-
}),
|
|
2243
|
+
kn.displayName = "FormControl";
|
|
2244
|
+
const Nn = Object.assign(kn, {
|
|
2245
|
+
Feedback: Fe
|
|
2246
|
+
}), Cn = /* @__PURE__ */ C.forwardRef(({
|
|
2247
2247
|
className: e,
|
|
2248
2248
|
bsPrefix: t,
|
|
2249
2249
|
as: n = "div",
|
|
@@ -2253,17 +2253,17 @@ const _n = Object.assign(jn, {
|
|
|
2253
2253
|
className: w(e, t),
|
|
2254
2254
|
...r
|
|
2255
2255
|
})));
|
|
2256
|
-
|
|
2257
|
-
const
|
|
2256
|
+
Cn.displayName = "FormFloating";
|
|
2257
|
+
const at = /* @__PURE__ */ C.forwardRef(({
|
|
2258
2258
|
controlId: e,
|
|
2259
2259
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2260
2260
|
as: t = "div",
|
|
2261
2261
|
...n
|
|
2262
2262
|
}, r) => {
|
|
2263
|
-
const o =
|
|
2263
|
+
const o = K(() => ({
|
|
2264
2264
|
controlId: e
|
|
2265
2265
|
}), [e]);
|
|
2266
|
-
return /* @__PURE__ */ a.jsx(
|
|
2266
|
+
return /* @__PURE__ */ a.jsx(te.Provider, {
|
|
2267
2267
|
value: o,
|
|
2268
2268
|
children: /* @__PURE__ */ a.jsx(t, {
|
|
2269
2269
|
...n,
|
|
@@ -2271,8 +2271,8 @@ const ot = /* @__PURE__ */ C.forwardRef(({
|
|
|
2271
2271
|
})
|
|
2272
2272
|
});
|
|
2273
2273
|
});
|
|
2274
|
-
|
|
2275
|
-
const
|
|
2274
|
+
at.displayName = "FormGroup";
|
|
2275
|
+
const $n = /* @__PURE__ */ C.forwardRef(({
|
|
2276
2276
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2277
2277
|
as: e = "label",
|
|
2278
2278
|
bsPrefix: t,
|
|
@@ -2281,16 +2281,16 @@ const Cn = /* @__PURE__ */ C.forwardRef(({
|
|
|
2281
2281
|
className: o,
|
|
2282
2282
|
htmlFor: s,
|
|
2283
2283
|
...i
|
|
2284
|
-
},
|
|
2284
|
+
}, l) => {
|
|
2285
2285
|
const {
|
|
2286
|
-
controlId:
|
|
2287
|
-
} = O(
|
|
2286
|
+
controlId: c
|
|
2287
|
+
} = O(te);
|
|
2288
2288
|
t = W(t, "form-label");
|
|
2289
2289
|
let u = "col-form-label";
|
|
2290
2290
|
typeof n == "string" && (u = `${u} ${u}-${n}`);
|
|
2291
2291
|
const d = w(o, t, r && "visually-hidden", n && u);
|
|
2292
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2293
|
-
ref:
|
|
2292
|
+
return process.env.NODE_ENV !== "production" && Je(c == null || !s, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), s = s || c, n ? /* @__PURE__ */ a.jsx(tn, {
|
|
2293
|
+
ref: l,
|
|
2294
2294
|
as: "label",
|
|
2295
2295
|
className: d,
|
|
2296
2296
|
htmlFor: s,
|
|
@@ -2298,15 +2298,15 @@ const Cn = /* @__PURE__ */ C.forwardRef(({
|
|
|
2298
2298
|
}) : (
|
|
2299
2299
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
2300
2300
|
/* @__PURE__ */ a.jsx(e, {
|
|
2301
|
-
ref:
|
|
2301
|
+
ref: l,
|
|
2302
2302
|
className: d,
|
|
2303
2303
|
htmlFor: s,
|
|
2304
2304
|
...i
|
|
2305
2305
|
})
|
|
2306
2306
|
);
|
|
2307
2307
|
});
|
|
2308
|
-
|
|
2309
|
-
const
|
|
2308
|
+
$n.displayName = "FormLabel";
|
|
2309
|
+
const En = /* @__PURE__ */ C.forwardRef(({
|
|
2310
2310
|
bsPrefix: e,
|
|
2311
2311
|
className: t,
|
|
2312
2312
|
id: n,
|
|
@@ -2314,7 +2314,7 @@ const Nn = /* @__PURE__ */ C.forwardRef(({
|
|
|
2314
2314
|
}, o) => {
|
|
2315
2315
|
const {
|
|
2316
2316
|
controlId: s
|
|
2317
|
-
} = O(
|
|
2317
|
+
} = O(te);
|
|
2318
2318
|
return e = W(e, "form-range"), /* @__PURE__ */ a.jsx("input", {
|
|
2319
2319
|
...r,
|
|
2320
2320
|
type: "range",
|
|
@@ -2323,8 +2323,8 @@ const Nn = /* @__PURE__ */ C.forwardRef(({
|
|
|
2323
2323
|
id: n || s
|
|
2324
2324
|
});
|
|
2325
2325
|
});
|
|
2326
|
-
|
|
2327
|
-
const
|
|
2326
|
+
En.displayName = "FormRange";
|
|
2327
|
+
const On = /* @__PURE__ */ C.forwardRef(({
|
|
2328
2328
|
bsPrefix: e,
|
|
2329
2329
|
size: t,
|
|
2330
2330
|
htmlSize: n,
|
|
@@ -2332,21 +2332,21 @@ const $n = /* @__PURE__ */ C.forwardRef(({
|
|
|
2332
2332
|
isValid: o = !1,
|
|
2333
2333
|
isInvalid: s = !1,
|
|
2334
2334
|
id: i,
|
|
2335
|
-
...
|
|
2336
|
-
},
|
|
2335
|
+
...l
|
|
2336
|
+
}, c) => {
|
|
2337
2337
|
const {
|
|
2338
2338
|
controlId: u
|
|
2339
|
-
} = O(
|
|
2339
|
+
} = O(te);
|
|
2340
2340
|
return e = W(e, "form-select"), /* @__PURE__ */ a.jsx("select", {
|
|
2341
|
-
...
|
|
2341
|
+
...l,
|
|
2342
2342
|
size: n,
|
|
2343
|
-
ref:
|
|
2343
|
+
ref: c,
|
|
2344
2344
|
className: w(r, e, t && `${e}-${t}`, o && "is-valid", s && "is-invalid"),
|
|
2345
2345
|
id: i || u
|
|
2346
2346
|
});
|
|
2347
2347
|
});
|
|
2348
|
-
|
|
2349
|
-
const
|
|
2348
|
+
On.displayName = "FormSelect";
|
|
2349
|
+
const Sn = /* @__PURE__ */ C.forwardRef(
|
|
2350
2350
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2351
2351
|
({
|
|
2352
2352
|
bsPrefix: e,
|
|
@@ -2360,24 +2360,24 @@ const En = /* @__PURE__ */ C.forwardRef(
|
|
|
2360
2360
|
className: w(t, e, r && "text-muted")
|
|
2361
2361
|
}))
|
|
2362
2362
|
);
|
|
2363
|
-
|
|
2364
|
-
const
|
|
2363
|
+
Sn.displayName = "FormText";
|
|
2364
|
+
const In = /* @__PURE__ */ C.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Ie, {
|
|
2365
2365
|
...e,
|
|
2366
2366
|
ref: t,
|
|
2367
2367
|
type: "switch"
|
|
2368
2368
|
}));
|
|
2369
|
-
|
|
2370
|
-
const
|
|
2371
|
-
Input:
|
|
2372
|
-
Label:
|
|
2373
|
-
}),
|
|
2369
|
+
In.displayName = "Switch";
|
|
2370
|
+
const ia = Object.assign(In, {
|
|
2371
|
+
Input: Ie.Input,
|
|
2372
|
+
Label: Ie.Label
|
|
2373
|
+
}), st = /* @__PURE__ */ C.forwardRef(({
|
|
2374
2374
|
bsPrefix: e,
|
|
2375
2375
|
className: t,
|
|
2376
2376
|
children: n,
|
|
2377
2377
|
controlId: r,
|
|
2378
2378
|
label: o,
|
|
2379
2379
|
...s
|
|
2380
|
-
}, i) => (e = W(e, "form-floating"), /* @__PURE__ */ a.jsxs(
|
|
2380
|
+
}, i) => (e = W(e, "form-floating"), /* @__PURE__ */ a.jsxs(at, {
|
|
2381
2381
|
ref: i,
|
|
2382
2382
|
className: w(t, e),
|
|
2383
2383
|
controlId: r,
|
|
@@ -2387,8 +2387,8 @@ const sa = Object.assign(On, {
|
|
|
2387
2387
|
children: o
|
|
2388
2388
|
})]
|
|
2389
2389
|
})));
|
|
2390
|
-
|
|
2391
|
-
const
|
|
2390
|
+
st.displayName = "FloatingLabel";
|
|
2391
|
+
const ca = {
|
|
2392
2392
|
/**
|
|
2393
2393
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2394
2394
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2397,14 +2397,14 @@ const ia = {
|
|
|
2397
2397
|
* @type {ReactRef}
|
|
2398
2398
|
* @alias ref
|
|
2399
2399
|
*/
|
|
2400
|
-
_ref:
|
|
2400
|
+
_ref: H.any,
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Mark a form as having been validated. Setting it to `true` will
|
|
2403
2403
|
* toggle any validation styles on the forms elements.
|
|
2404
2404
|
*/
|
|
2405
|
-
validated:
|
|
2406
|
-
as:
|
|
2407
|
-
},
|
|
2405
|
+
validated: H.bool,
|
|
2406
|
+
as: H.elementType
|
|
2407
|
+
}, it = /* @__PURE__ */ C.forwardRef(({
|
|
2408
2408
|
className: e,
|
|
2409
2409
|
validated: t,
|
|
2410
2410
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2415,20 +2415,20 @@ const ia = {
|
|
|
2415
2415
|
ref: o,
|
|
2416
2416
|
className: w(e, t && "was-validated")
|
|
2417
2417
|
}));
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
Group:
|
|
2422
|
-
Control:
|
|
2423
|
-
Floating:
|
|
2424
|
-
Check:
|
|
2425
|
-
Switch:
|
|
2426
|
-
Label:
|
|
2427
|
-
Text:
|
|
2428
|
-
Range:
|
|
2429
|
-
Select:
|
|
2430
|
-
FloatingLabel:
|
|
2431
|
-
}),
|
|
2418
|
+
it.displayName = "Form";
|
|
2419
|
+
it.propTypes = ca;
|
|
2420
|
+
const G = Object.assign(it, {
|
|
2421
|
+
Group: at,
|
|
2422
|
+
Control: Nn,
|
|
2423
|
+
Floating: Cn,
|
|
2424
|
+
Check: Ie,
|
|
2425
|
+
Switch: ia,
|
|
2426
|
+
Label: $n,
|
|
2427
|
+
Text: Sn,
|
|
2428
|
+
Range: En,
|
|
2429
|
+
Select: On,
|
|
2430
|
+
FloatingLabel: st
|
|
2431
|
+
}), Re = /* @__PURE__ */ C.forwardRef(({
|
|
2432
2432
|
className: e,
|
|
2433
2433
|
bsPrefix: t,
|
|
2434
2434
|
as: n = "span",
|
|
@@ -2438,18 +2438,18 @@ const H = Object.assign(st, {
|
|
|
2438
2438
|
className: w(e, t),
|
|
2439
2439
|
...r
|
|
2440
2440
|
})));
|
|
2441
|
-
|
|
2442
|
-
const
|
|
2443
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2441
|
+
Re.displayName = "InputGroupText";
|
|
2442
|
+
const la = (e) => /* @__PURE__ */ a.jsx(Re, {
|
|
2443
|
+
children: /* @__PURE__ */ a.jsx($e, {
|
|
2444
2444
|
type: "checkbox",
|
|
2445
2445
|
...e
|
|
2446
2446
|
})
|
|
2447
|
-
}),
|
|
2448
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2447
|
+
}), ua = (e) => /* @__PURE__ */ a.jsx(Re, {
|
|
2448
|
+
children: /* @__PURE__ */ a.jsx($e, {
|
|
2449
2449
|
type: "radio",
|
|
2450
2450
|
...e
|
|
2451
2451
|
})
|
|
2452
|
-
}),
|
|
2452
|
+
}), Dn = /* @__PURE__ */ C.forwardRef(({
|
|
2453
2453
|
bsPrefix: e,
|
|
2454
2454
|
size: t,
|
|
2455
2455
|
hasValidation: n,
|
|
@@ -2459,9 +2459,9 @@ const ca = (e) => /* @__PURE__ */ a.jsx(Fe, {
|
|
|
2459
2459
|
...s
|
|
2460
2460
|
}, i) => {
|
|
2461
2461
|
e = W(e, "input-group");
|
|
2462
|
-
const
|
|
2463
|
-
return /* @__PURE__ */ a.jsx(
|
|
2464
|
-
value:
|
|
2462
|
+
const l = K(() => ({}), []);
|
|
2463
|
+
return /* @__PURE__ */ a.jsx(We.Provider, {
|
|
2464
|
+
value: l,
|
|
2465
2465
|
children: /* @__PURE__ */ a.jsx(o, {
|
|
2466
2466
|
ref: i,
|
|
2467
2467
|
...s,
|
|
@@ -2469,13 +2469,13 @@ const ca = (e) => /* @__PURE__ */ a.jsx(Fe, {
|
|
|
2469
2469
|
})
|
|
2470
2470
|
});
|
|
2471
2471
|
});
|
|
2472
|
-
|
|
2473
|
-
const
|
|
2474
|
-
Text:
|
|
2475
|
-
Radio:
|
|
2476
|
-
Checkbox:
|
|
2477
|
-
}),
|
|
2478
|
-
function
|
|
2472
|
+
Dn.displayName = "InputGroup";
|
|
2473
|
+
const qe = Object.assign(Dn, {
|
|
2474
|
+
Text: Re,
|
|
2475
|
+
Radio: ua,
|
|
2476
|
+
Checkbox: la
|
|
2477
|
+
}), xe = /* @__PURE__ */ C.createContext(null), da = ["as", "active", "eventKey"];
|
|
2478
|
+
function fa(e, t) {
|
|
2479
2479
|
if (e == null)
|
|
2480
2480
|
return {};
|
|
2481
2481
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -2483,7 +2483,7 @@ function da(e, t) {
|
|
|
2483
2483
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
2484
2484
|
return n;
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function Tn({
|
|
2487
2487
|
key: e,
|
|
2488
2488
|
onClick: t,
|
|
2489
2489
|
active: n,
|
|
@@ -2491,39 +2491,39 @@ function Dn({
|
|
|
2491
2491
|
role: o,
|
|
2492
2492
|
disabled: s
|
|
2493
2493
|
}) {
|
|
2494
|
-
const i = O(
|
|
2494
|
+
const i = O(ee), l = O(Pe), c = O(xe);
|
|
2495
2495
|
let u = n;
|
|
2496
2496
|
const d = {
|
|
2497
2497
|
role: o
|
|
2498
2498
|
};
|
|
2499
|
-
if (
|
|
2500
|
-
!o &&
|
|
2501
|
-
const f =
|
|
2502
|
-
d[
|
|
2499
|
+
if (l) {
|
|
2500
|
+
!o && l.role === "tablist" && (d.role = "tab");
|
|
2501
|
+
const f = l.getControllerId(e ?? null), m = l.getControlledId(e ?? null);
|
|
2502
|
+
d[Ne("event-key")] = e, d.id = f || r, u = n == null && e != null ? l.activeKey === e : n, (u || !(c != null && c.unmountOnExit) && !(c != null && c.mountOnEnter)) && (d["aria-controls"] = m);
|
|
2503
2503
|
}
|
|
2504
|
-
return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), s && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick =
|
|
2504
|
+
return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), s && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick = re((f) => {
|
|
2505
2505
|
s || (t == null || t(f), e != null && i && !f.isPropagationStopped() && i(e, f));
|
|
2506
2506
|
}), [d, {
|
|
2507
2507
|
isActive: u
|
|
2508
2508
|
}];
|
|
2509
2509
|
}
|
|
2510
|
-
const
|
|
2510
|
+
const Mn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
2511
2511
|
let {
|
|
2512
|
-
as: n =
|
|
2512
|
+
as: n = tt,
|
|
2513
2513
|
active: r,
|
|
2514
2514
|
eventKey: o
|
|
2515
|
-
} = e, s =
|
|
2516
|
-
const [i,
|
|
2517
|
-
key:
|
|
2515
|
+
} = e, s = fa(e, da);
|
|
2516
|
+
const [i, l] = Tn(Object.assign({
|
|
2517
|
+
key: ce(o, s.href),
|
|
2518
2518
|
active: r
|
|
2519
2519
|
}, s));
|
|
2520
|
-
return i[
|
|
2520
|
+
return i[Ne("active")] = l.isActive, /* @__PURE__ */ a.jsx(n, Object.assign({}, s, i, {
|
|
2521
2521
|
ref: t
|
|
2522
2522
|
}));
|
|
2523
2523
|
});
|
|
2524
|
-
|
|
2525
|
-
const
|
|
2526
|
-
function
|
|
2524
|
+
Mn.displayName = "NavItem";
|
|
2525
|
+
const ma = Mn, ha = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
2526
|
+
function pa(e, t) {
|
|
2527
2527
|
if (e == null)
|
|
2528
2528
|
return {};
|
|
2529
2529
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -2531,8 +2531,8 @@ function ha(e, t) {
|
|
|
2531
2531
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
2532
2532
|
return n;
|
|
2533
2533
|
}
|
|
2534
|
-
const
|
|
2535
|
-
},
|
|
2534
|
+
const Et = () => {
|
|
2535
|
+
}, Ot = Ne("event-key"), Pn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
2536
2536
|
let {
|
|
2537
2537
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2538
2538
|
as: n = "div",
|
|
@@ -2540,110 +2540,110 @@ const Nt = () => {
|
|
|
2540
2540
|
activeKey: o,
|
|
2541
2541
|
role: s,
|
|
2542
2542
|
onKeyDown: i
|
|
2543
|
-
} = e,
|
|
2544
|
-
const
|
|
2543
|
+
} = e, l = pa(e, ha);
|
|
2544
|
+
const c = rn(), u = A(!1), d = O(ee), f = O(xe);
|
|
2545
2545
|
let m, h;
|
|
2546
2546
|
f && (s = s || "tablist", o = f.activeKey, m = f.getControlledId, h = f.getControllerId);
|
|
2547
|
-
const
|
|
2548
|
-
const
|
|
2549
|
-
if (!
|
|
2547
|
+
const x = A(null), p = (b) => {
|
|
2548
|
+
const k = x.current;
|
|
2549
|
+
if (!k)
|
|
2550
2550
|
return null;
|
|
2551
|
-
const
|
|
2552
|
-
if (!
|
|
2551
|
+
const v = Ge(k, `[${Ot}]:not([aria-disabled=true])`), y = k.querySelector("[aria-selected=true]");
|
|
2552
|
+
if (!y || y !== document.activeElement)
|
|
2553
2553
|
return null;
|
|
2554
|
-
const $ =
|
|
2554
|
+
const $ = v.indexOf(y);
|
|
2555
2555
|
if ($ === -1)
|
|
2556
2556
|
return null;
|
|
2557
|
-
let
|
|
2558
|
-
return
|
|
2559
|
-
},
|
|
2560
|
-
|
|
2561
|
-
},
|
|
2562
|
-
if (i == null || i(
|
|
2557
|
+
let N = $ + b;
|
|
2558
|
+
return N >= v.length && (N = 0), N < 0 && (N = v.length - 1), v[N];
|
|
2559
|
+
}, g = (b, k) => {
|
|
2560
|
+
b != null && (r == null || r(b, k), d == null || d(b, k));
|
|
2561
|
+
}, j = (b) => {
|
|
2562
|
+
if (i == null || i(b), !f)
|
|
2563
2563
|
return;
|
|
2564
|
-
let
|
|
2565
|
-
switch (
|
|
2564
|
+
let k;
|
|
2565
|
+
switch (b.key) {
|
|
2566
2566
|
case "ArrowLeft":
|
|
2567
2567
|
case "ArrowUp":
|
|
2568
|
-
|
|
2568
|
+
k = p(-1);
|
|
2569
2569
|
break;
|
|
2570
2570
|
case "ArrowRight":
|
|
2571
2571
|
case "ArrowDown":
|
|
2572
|
-
|
|
2572
|
+
k = p(1);
|
|
2573
2573
|
break;
|
|
2574
2574
|
default:
|
|
2575
2575
|
return;
|
|
2576
2576
|
}
|
|
2577
|
-
|
|
2577
|
+
k && (b.preventDefault(), g(k.dataset[_r("EventKey")] || null, b), u.current = !0, c());
|
|
2578
2578
|
};
|
|
2579
|
-
|
|
2580
|
-
if (
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2579
|
+
I(() => {
|
|
2580
|
+
if (x.current && u.current) {
|
|
2581
|
+
const b = x.current.querySelector(`[${Ot}][aria-selected=true]`);
|
|
2582
|
+
b == null || b.focus();
|
|
2583
2583
|
}
|
|
2584
2584
|
u.current = !1;
|
|
2585
2585
|
});
|
|
2586
|
-
const
|
|
2587
|
-
return /* @__PURE__ */ a.jsx(
|
|
2588
|
-
value:
|
|
2589
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2586
|
+
const _ = De(t, x);
|
|
2587
|
+
return /* @__PURE__ */ a.jsx(ee.Provider, {
|
|
2588
|
+
value: g,
|
|
2589
|
+
children: /* @__PURE__ */ a.jsx(Pe.Provider, {
|
|
2590
2590
|
value: {
|
|
2591
2591
|
role: s,
|
|
2592
2592
|
// used by NavLink to determine it's role
|
|
2593
|
-
activeKey:
|
|
2594
|
-
getControlledId: m ||
|
|
2595
|
-
getControllerId: h ||
|
|
2593
|
+
activeKey: ce(o),
|
|
2594
|
+
getControlledId: m || Et,
|
|
2595
|
+
getControllerId: h || Et
|
|
2596
2596
|
},
|
|
2597
|
-
children: /* @__PURE__ */ a.jsx(n, Object.assign({},
|
|
2598
|
-
onKeyDown:
|
|
2599
|
-
ref:
|
|
2597
|
+
children: /* @__PURE__ */ a.jsx(n, Object.assign({}, l, {
|
|
2598
|
+
onKeyDown: j,
|
|
2599
|
+
ref: _,
|
|
2600
2600
|
role: s
|
|
2601
2601
|
}))
|
|
2602
2602
|
})
|
|
2603
2603
|
});
|
|
2604
2604
|
});
|
|
2605
|
-
|
|
2606
|
-
const
|
|
2607
|
-
Item:
|
|
2605
|
+
Pn.displayName = "Nav";
|
|
2606
|
+
const ga = Object.assign(Pn, {
|
|
2607
|
+
Item: ma
|
|
2608
2608
|
});
|
|
2609
|
-
var
|
|
2609
|
+
var St = { exports: {} }, Ve = { exports: {} };
|
|
2610
2610
|
(function(e, t) {
|
|
2611
2611
|
Object.defineProperty(t, "__esModule", {
|
|
2612
2612
|
value: !0
|
|
2613
2613
|
}), t.default = n;
|
|
2614
2614
|
function n(r) {
|
|
2615
|
-
function o(i,
|
|
2616
|
-
var m = u || "<<anonymous>>", h = f ||
|
|
2617
|
-
if (c
|
|
2615
|
+
function o(i, l, c, u, d, f) {
|
|
2616
|
+
var m = u || "<<anonymous>>", h = f || c;
|
|
2617
|
+
if (l[c] == null)
|
|
2618
2618
|
return i ? new Error("Required " + d + " `" + h + "` was not specified " + ("in `" + m + "`.")) : null;
|
|
2619
|
-
for (var
|
|
2620
|
-
p[
|
|
2621
|
-
return r.apply(void 0, [
|
|
2619
|
+
for (var x = arguments.length, p = Array(x > 6 ? x - 6 : 0), g = 6; g < x; g++)
|
|
2620
|
+
p[g - 6] = arguments[g];
|
|
2621
|
+
return r.apply(void 0, [l, c, m, d, h].concat(p));
|
|
2622
2622
|
}
|
|
2623
2623
|
var s = o.bind(null, !1);
|
|
2624
2624
|
return s.isRequired = o.bind(null, !0), s;
|
|
2625
2625
|
}
|
|
2626
2626
|
e.exports = t.default;
|
|
2627
|
-
})(
|
|
2628
|
-
var
|
|
2627
|
+
})(Ve, Ve.exports);
|
|
2628
|
+
var xa = Ve.exports;
|
|
2629
2629
|
(function(e, t) {
|
|
2630
2630
|
Object.defineProperty(t, "__esModule", {
|
|
2631
2631
|
value: !0
|
|
2632
2632
|
}), t.default = s;
|
|
2633
|
-
var n =
|
|
2633
|
+
var n = xa, r = o(n);
|
|
2634
2634
|
function o(i) {
|
|
2635
2635
|
return i && i.__esModule ? i : { default: i };
|
|
2636
2636
|
}
|
|
2637
2637
|
function s() {
|
|
2638
|
-
for (var i = arguments.length,
|
|
2639
|
-
c
|
|
2638
|
+
for (var i = arguments.length, l = Array(i), c = 0; c < i; c++)
|
|
2639
|
+
l[c] = arguments[c];
|
|
2640
2640
|
function u() {
|
|
2641
2641
|
for (var d = arguments.length, f = Array(d), m = 0; m < d; m++)
|
|
2642
2642
|
f[m] = arguments[m];
|
|
2643
2643
|
var h = null;
|
|
2644
|
-
return
|
|
2644
|
+
return l.forEach(function(x) {
|
|
2645
2645
|
if (h == null) {
|
|
2646
|
-
var p =
|
|
2646
|
+
var p = x.apply(void 0, f);
|
|
2647
2647
|
p != null && (h = p);
|
|
2648
2648
|
}
|
|
2649
2649
|
}), h;
|
|
@@ -2651,8 +2651,8 @@ var ga = Ge.exports;
|
|
|
2651
2651
|
return (0, r.default)(u);
|
|
2652
2652
|
}
|
|
2653
2653
|
e.exports = t.default;
|
|
2654
|
-
})(
|
|
2655
|
-
const
|
|
2654
|
+
})(St, St.exports);
|
|
2655
|
+
const ct = /* @__PURE__ */ C.forwardRef(({
|
|
2656
2656
|
className: e,
|
|
2657
2657
|
bsPrefix: t,
|
|
2658
2658
|
as: n = "div",
|
|
@@ -2662,60 +2662,60 @@ const it = /* @__PURE__ */ C.forwardRef(({
|
|
|
2662
2662
|
className: w(e, t),
|
|
2663
2663
|
...r
|
|
2664
2664
|
})));
|
|
2665
|
-
|
|
2666
|
-
const
|
|
2665
|
+
ct.displayName = "NavItem";
|
|
2666
|
+
const lt = /* @__PURE__ */ C.forwardRef(({
|
|
2667
2667
|
bsPrefix: e,
|
|
2668
2668
|
className: t,
|
|
2669
|
-
as: n =
|
|
2669
|
+
as: n = nt,
|
|
2670
2670
|
active: r,
|
|
2671
2671
|
eventKey: o,
|
|
2672
2672
|
disabled: s = !1,
|
|
2673
2673
|
...i
|
|
2674
|
-
},
|
|
2674
|
+
}, l) => {
|
|
2675
2675
|
e = W(e, "nav-link");
|
|
2676
|
-
const [
|
|
2677
|
-
key:
|
|
2676
|
+
const [c, u] = Tn({
|
|
2677
|
+
key: ce(o, i.href),
|
|
2678
2678
|
active: r,
|
|
2679
2679
|
disabled: s,
|
|
2680
2680
|
...i
|
|
2681
2681
|
});
|
|
2682
2682
|
return /* @__PURE__ */ a.jsx(n, {
|
|
2683
2683
|
...i,
|
|
2684
|
-
...
|
|
2685
|
-
ref:
|
|
2684
|
+
...c,
|
|
2685
|
+
ref: l,
|
|
2686
2686
|
disabled: s,
|
|
2687
2687
|
className: w(t, e, s && "disabled", u.isActive && "active")
|
|
2688
2688
|
});
|
|
2689
2689
|
});
|
|
2690
|
-
|
|
2691
|
-
const
|
|
2690
|
+
lt.displayName = "NavLink";
|
|
2691
|
+
const Wn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
2692
2692
|
const {
|
|
2693
2693
|
as: n = "div",
|
|
2694
2694
|
bsPrefix: r,
|
|
2695
2695
|
variant: o,
|
|
2696
2696
|
fill: s = !1,
|
|
2697
2697
|
justify: i = !1,
|
|
2698
|
-
navbar:
|
|
2699
|
-
navbarScroll:
|
|
2698
|
+
navbar: l,
|
|
2699
|
+
navbarScroll: c,
|
|
2700
2700
|
className: u,
|
|
2701
2701
|
activeKey: d,
|
|
2702
2702
|
...f
|
|
2703
|
-
} =
|
|
2703
|
+
} = Ze(e, {
|
|
2704
2704
|
activeKey: "onSelect"
|
|
2705
2705
|
}), m = W(r, "nav");
|
|
2706
|
-
let h,
|
|
2707
|
-
const
|
|
2708
|
-
return
|
|
2709
|
-
cardHeaderBsPrefix:
|
|
2710
|
-
} =
|
|
2706
|
+
let h, x, p = !1;
|
|
2707
|
+
const g = O(ot), j = O(en);
|
|
2708
|
+
return g ? (h = g.bsPrefix, p = l ?? !0) : j && ({
|
|
2709
|
+
cardHeaderBsPrefix: x
|
|
2710
|
+
} = j), /* @__PURE__ */ a.jsx(ga, {
|
|
2711
2711
|
as: n,
|
|
2712
2712
|
ref: t,
|
|
2713
2713
|
activeKey: d,
|
|
2714
2714
|
className: w(u, {
|
|
2715
2715
|
[m]: !p,
|
|
2716
2716
|
[`${h}-nav`]: p,
|
|
2717
|
-
[`${h}-nav-scroll`]: p &&
|
|
2718
|
-
[`${
|
|
2717
|
+
[`${h}-nav-scroll`]: p && c,
|
|
2718
|
+
[`${x}-${o}`]: !!x,
|
|
2719
2719
|
[`${m}-${o}`]: !!o,
|
|
2720
2720
|
[`${m}-fill`]: s,
|
|
2721
2721
|
[`${m}-justified`]: i
|
|
@@ -2723,11 +2723,11 @@ const Mn = /* @__PURE__ */ C.forwardRef((e, t) => {
|
|
|
2723
2723
|
...f
|
|
2724
2724
|
});
|
|
2725
2725
|
});
|
|
2726
|
-
|
|
2727
|
-
const ba = Object.assign(
|
|
2728
|
-
Item:
|
|
2729
|
-
Link:
|
|
2730
|
-
}),
|
|
2726
|
+
Wn.displayName = "Nav";
|
|
2727
|
+
const ba = Object.assign(Wn, {
|
|
2728
|
+
Item: ct,
|
|
2729
|
+
Link: lt
|
|
2730
|
+
}), ut = /* @__PURE__ */ C.forwardRef(({
|
|
2731
2731
|
bsPrefix: e,
|
|
2732
2732
|
variant: t,
|
|
2733
2733
|
animation: n = "border",
|
|
@@ -2736,18 +2736,18 @@ const ba = Object.assign(Mn, {
|
|
|
2736
2736
|
as: o = "div",
|
|
2737
2737
|
className: s,
|
|
2738
2738
|
...i
|
|
2739
|
-
},
|
|
2739
|
+
}, l) => {
|
|
2740
2740
|
e = W(e, "spinner");
|
|
2741
|
-
const
|
|
2741
|
+
const c = `${e}-${n}`;
|
|
2742
2742
|
return /* @__PURE__ */ a.jsx(o, {
|
|
2743
|
-
ref:
|
|
2743
|
+
ref: l,
|
|
2744
2744
|
...i,
|
|
2745
|
-
className: w(s,
|
|
2745
|
+
className: w(s, c, r && `${c}-${r}`, t && `text-${t}`)
|
|
2746
2746
|
});
|
|
2747
2747
|
});
|
|
2748
|
-
|
|
2749
|
-
const
|
|
2750
|
-
function
|
|
2748
|
+
ut.displayName = "Spinner";
|
|
2749
|
+
const wa = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"], va = ["activeKey", "getControlledId", "getControllerId"], ya = ["as"];
|
|
2750
|
+
function Qe(e, t) {
|
|
2751
2751
|
if (e == null)
|
|
2752
2752
|
return {};
|
|
2753
2753
|
var n = {}, r = Object.keys(e), o, s;
|
|
@@ -2755,7 +2755,7 @@ function Ve(e, t) {
|
|
|
2755
2755
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
2756
2756
|
return n;
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function Fn(e) {
|
|
2759
2759
|
let {
|
|
2760
2760
|
active: t,
|
|
2761
2761
|
eventKey: n,
|
|
@@ -2763,15 +2763,15 @@ function Pn(e) {
|
|
|
2763
2763
|
transition: o,
|
|
2764
2764
|
unmountOnExit: s,
|
|
2765
2765
|
role: i = "tabpanel",
|
|
2766
|
-
onEnter:
|
|
2767
|
-
onEntering:
|
|
2766
|
+
onEnter: l,
|
|
2767
|
+
onEntering: c,
|
|
2768
2768
|
onEntered: u,
|
|
2769
2769
|
onExit: d,
|
|
2770
2770
|
onExiting: f,
|
|
2771
2771
|
onExited: m
|
|
2772
|
-
} = e, h =
|
|
2773
|
-
const
|
|
2774
|
-
if (!
|
|
2772
|
+
} = e, h = Qe(e, wa);
|
|
2773
|
+
const x = O(xe);
|
|
2774
|
+
if (!x)
|
|
2775
2775
|
return [Object.assign({}, h, {
|
|
2776
2776
|
role: i
|
|
2777
2777
|
}), {
|
|
@@ -2780,8 +2780,8 @@ function Pn(e) {
|
|
|
2780
2780
|
mountOnEnter: r,
|
|
2781
2781
|
transition: o,
|
|
2782
2782
|
unmountOnExit: s,
|
|
2783
|
-
onEnter:
|
|
2784
|
-
onEntering:
|
|
2783
|
+
onEnter: l,
|
|
2784
|
+
onEntering: c,
|
|
2785
2785
|
onEntered: u,
|
|
2786
2786
|
onExit: d,
|
|
2787
2787
|
onExiting: f,
|
|
@@ -2789,54 +2789,54 @@ function Pn(e) {
|
|
|
2789
2789
|
}];
|
|
2790
2790
|
const {
|
|
2791
2791
|
activeKey: p,
|
|
2792
|
-
getControlledId:
|
|
2793
|
-
getControllerId:
|
|
2794
|
-
} =
|
|
2792
|
+
getControlledId: g,
|
|
2793
|
+
getControllerId: j
|
|
2794
|
+
} = x, _ = Qe(x, va), b = ce(n);
|
|
2795
2795
|
return [Object.assign({}, h, {
|
|
2796
2796
|
role: i,
|
|
2797
|
-
id:
|
|
2798
|
-
"aria-labelledby":
|
|
2797
|
+
id: g(n),
|
|
2798
|
+
"aria-labelledby": j(n)
|
|
2799
2799
|
}), {
|
|
2800
2800
|
eventKey: n,
|
|
2801
|
-
isActive: t == null &&
|
|
2802
|
-
transition: o ||
|
|
2803
|
-
mountOnEnter: r ??
|
|
2804
|
-
unmountOnExit: s ??
|
|
2805
|
-
onEnter:
|
|
2806
|
-
onEntering:
|
|
2801
|
+
isActive: t == null && b != null ? ce(p) === b : t,
|
|
2802
|
+
transition: o || _.transition,
|
|
2803
|
+
mountOnEnter: r ?? _.mountOnEnter,
|
|
2804
|
+
unmountOnExit: s ?? _.unmountOnExit,
|
|
2805
|
+
onEnter: l,
|
|
2806
|
+
onEntering: c,
|
|
2807
2807
|
onEntered: u,
|
|
2808
2808
|
onExit: d,
|
|
2809
2809
|
onExiting: f,
|
|
2810
2810
|
onExited: m
|
|
2811
2811
|
}];
|
|
2812
2812
|
}
|
|
2813
|
-
const
|
|
2813
|
+
const Rn = /* @__PURE__ */ C.forwardRef(
|
|
2814
2814
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2815
2815
|
(e, t) => {
|
|
2816
2816
|
let {
|
|
2817
2817
|
as: n = "div"
|
|
2818
|
-
} = e, r =
|
|
2818
|
+
} = e, r = Qe(e, ya);
|
|
2819
2819
|
const [o, {
|
|
2820
2820
|
isActive: s,
|
|
2821
2821
|
onEnter: i,
|
|
2822
|
-
onEntering:
|
|
2823
|
-
onEntered:
|
|
2822
|
+
onEntering: l,
|
|
2823
|
+
onEntered: c,
|
|
2824
2824
|
onExit: u,
|
|
2825
2825
|
onExiting: d,
|
|
2826
2826
|
onExited: f,
|
|
2827
2827
|
mountOnEnter: m,
|
|
2828
2828
|
unmountOnExit: h,
|
|
2829
|
-
transition:
|
|
2830
|
-
}] =
|
|
2831
|
-
return /* @__PURE__ */ a.jsx(
|
|
2829
|
+
transition: x = Rt
|
|
2830
|
+
}] = Fn(r);
|
|
2831
|
+
return /* @__PURE__ */ a.jsx(xe.Provider, {
|
|
2832
2832
|
value: null,
|
|
2833
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2833
|
+
children: /* @__PURE__ */ a.jsx(ee.Provider, {
|
|
2834
2834
|
value: null,
|
|
2835
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2835
|
+
children: /* @__PURE__ */ a.jsx(x, {
|
|
2836
2836
|
in: s,
|
|
2837
2837
|
onEnter: i,
|
|
2838
|
-
onEntering:
|
|
2839
|
-
onEntered:
|
|
2838
|
+
onEntering: l,
|
|
2839
|
+
onEntered: c,
|
|
2840
2840
|
onExit: u,
|
|
2841
2841
|
onExiting: d,
|
|
2842
2842
|
onExited: f,
|
|
@@ -2852,8 +2852,8 @@ const Wn = /* @__PURE__ */ C.forwardRef(
|
|
|
2852
2852
|
});
|
|
2853
2853
|
}
|
|
2854
2854
|
);
|
|
2855
|
-
|
|
2856
|
-
const
|
|
2855
|
+
Rn.displayName = "TabPanel";
|
|
2856
|
+
const dt = (e) => {
|
|
2857
2857
|
const {
|
|
2858
2858
|
id: t,
|
|
2859
2859
|
generateChildId: n,
|
|
@@ -2861,39 +2861,39 @@ const ut = (e) => {
|
|
|
2861
2861
|
activeKey: o,
|
|
2862
2862
|
defaultActiveKey: s,
|
|
2863
2863
|
transition: i,
|
|
2864
|
-
mountOnEnter:
|
|
2865
|
-
unmountOnExit:
|
|
2864
|
+
mountOnEnter: l,
|
|
2865
|
+
unmountOnExit: c,
|
|
2866
2866
|
children: u
|
|
2867
|
-
} = e, [d, f] =
|
|
2867
|
+
} = e, [d, f] = nn(o, s, r), m = cn(t), h = K(() => n || ((p, g) => m ? `${m}-${g}-${p}` : null), [m, n]), x = K(() => ({
|
|
2868
2868
|
onSelect: f,
|
|
2869
2869
|
activeKey: d,
|
|
2870
2870
|
transition: i,
|
|
2871
|
-
mountOnEnter:
|
|
2872
|
-
unmountOnExit:
|
|
2871
|
+
mountOnEnter: l || !1,
|
|
2872
|
+
unmountOnExit: c || !1,
|
|
2873
2873
|
getControlledId: (p) => h(p, "tabpane"),
|
|
2874
2874
|
getControllerId: (p) => h(p, "tab")
|
|
2875
|
-
}), [f, d, i,
|
|
2876
|
-
return /* @__PURE__ */ a.jsx(
|
|
2877
|
-
value:
|
|
2878
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2875
|
+
}), [f, d, i, l, c, h]);
|
|
2876
|
+
return /* @__PURE__ */ a.jsx(xe.Provider, {
|
|
2877
|
+
value: x,
|
|
2878
|
+
children: /* @__PURE__ */ a.jsx(ee.Provider, {
|
|
2879
2879
|
value: f || null,
|
|
2880
2880
|
children: u
|
|
2881
2881
|
})
|
|
2882
2882
|
});
|
|
2883
2883
|
};
|
|
2884
|
-
|
|
2885
|
-
function
|
|
2886
|
-
return typeof e == "boolean" ? e ?
|
|
2884
|
+
dt.Panel = Rn;
|
|
2885
|
+
function ft(e) {
|
|
2886
|
+
return typeof e == "boolean" ? e ? Lt : Rt : e;
|
|
2887
2887
|
}
|
|
2888
|
-
const
|
|
2888
|
+
const Ln = ({
|
|
2889
2889
|
transition: e,
|
|
2890
2890
|
...t
|
|
2891
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
2891
|
+
}) => /* @__PURE__ */ a.jsx(dt, {
|
|
2892
2892
|
...t,
|
|
2893
|
-
transition:
|
|
2893
|
+
transition: ft(e)
|
|
2894
2894
|
});
|
|
2895
|
-
|
|
2896
|
-
const
|
|
2895
|
+
Ln.displayName = "TabContainer";
|
|
2896
|
+
const mt = /* @__PURE__ */ C.forwardRef(({
|
|
2897
2897
|
className: e,
|
|
2898
2898
|
bsPrefix: t,
|
|
2899
2899
|
as: n = "div",
|
|
@@ -2903,8 +2903,8 @@ const ft = /* @__PURE__ */ C.forwardRef(({
|
|
|
2903
2903
|
className: w(e, t),
|
|
2904
2904
|
...r
|
|
2905
2905
|
})));
|
|
2906
|
-
|
|
2907
|
-
const
|
|
2906
|
+
mt.displayName = "TabContent";
|
|
2907
|
+
const ht = /* @__PURE__ */ C.forwardRef(({
|
|
2908
2908
|
bsPrefix: e,
|
|
2909
2909
|
transition: t,
|
|
2910
2910
|
...n
|
|
@@ -2915,78 +2915,78 @@ const mt = /* @__PURE__ */ C.forwardRef(({
|
|
|
2915
2915
|
as: s = "div",
|
|
2916
2916
|
...i
|
|
2917
2917
|
}, {
|
|
2918
|
-
isActive:
|
|
2919
|
-
onEnter:
|
|
2918
|
+
isActive: l,
|
|
2919
|
+
onEnter: c,
|
|
2920
2920
|
onEntering: u,
|
|
2921
2921
|
onEntered: d,
|
|
2922
2922
|
onExit: f,
|
|
2923
2923
|
onExiting: m,
|
|
2924
2924
|
onExited: h,
|
|
2925
|
-
mountOnEnter:
|
|
2925
|
+
mountOnEnter: x,
|
|
2926
2926
|
unmountOnExit: p,
|
|
2927
|
-
transition:
|
|
2928
|
-
}] =
|
|
2927
|
+
transition: g = Lt
|
|
2928
|
+
}] = Fn({
|
|
2929
2929
|
...n,
|
|
2930
|
-
transition:
|
|
2931
|
-
}),
|
|
2932
|
-
return /* @__PURE__ */ a.jsx(
|
|
2930
|
+
transition: ft(t)
|
|
2931
|
+
}), j = W(e, "tab-pane");
|
|
2932
|
+
return /* @__PURE__ */ a.jsx(xe.Provider, {
|
|
2933
2933
|
value: null,
|
|
2934
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2934
|
+
children: /* @__PURE__ */ a.jsx(ee.Provider, {
|
|
2935
2935
|
value: null,
|
|
2936
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2937
|
-
in:
|
|
2938
|
-
onEnter:
|
|
2936
|
+
children: /* @__PURE__ */ a.jsx(g, {
|
|
2937
|
+
in: l,
|
|
2938
|
+
onEnter: c,
|
|
2939
2939
|
onEntering: u,
|
|
2940
2940
|
onEntered: d,
|
|
2941
2941
|
onExit: f,
|
|
2942
2942
|
onExiting: m,
|
|
2943
2943
|
onExited: h,
|
|
2944
|
-
mountOnEnter:
|
|
2944
|
+
mountOnEnter: x,
|
|
2945
2945
|
unmountOnExit: p,
|
|
2946
2946
|
children: /* @__PURE__ */ a.jsx(s, {
|
|
2947
2947
|
...i,
|
|
2948
2948
|
ref: r,
|
|
2949
|
-
className: w(o,
|
|
2949
|
+
className: w(o, j, l && "active")
|
|
2950
2950
|
})
|
|
2951
2951
|
})
|
|
2952
2952
|
})
|
|
2953
2953
|
});
|
|
2954
2954
|
});
|
|
2955
|
-
|
|
2956
|
-
const
|
|
2957
|
-
eventKey:
|
|
2955
|
+
ht.displayName = "TabPane";
|
|
2956
|
+
const ja = {
|
|
2957
|
+
eventKey: H.oneOfType([H.string, H.number]),
|
|
2958
2958
|
/**
|
|
2959
2959
|
* Content for the tab title.
|
|
2960
2960
|
*/
|
|
2961
|
-
title:
|
|
2961
|
+
title: H.node.isRequired,
|
|
2962
2962
|
/**
|
|
2963
2963
|
* The disabled state of the tab.
|
|
2964
2964
|
*/
|
|
2965
|
-
disabled:
|
|
2965
|
+
disabled: H.bool,
|
|
2966
2966
|
/**
|
|
2967
2967
|
* Class to pass to the underlying nav link.
|
|
2968
2968
|
*/
|
|
2969
|
-
tabClassName:
|
|
2969
|
+
tabClassName: H.string,
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Object containing attributes to pass to underlying nav link.
|
|
2972
2972
|
*/
|
|
2973
|
-
tabAttrs:
|
|
2974
|
-
},
|
|
2973
|
+
tabAttrs: H.object
|
|
2974
|
+
}, An = () => {
|
|
2975
2975
|
throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly");
|
|
2976
2976
|
};
|
|
2977
|
-
|
|
2978
|
-
const
|
|
2979
|
-
Container:
|
|
2980
|
-
Content:
|
|
2981
|
-
Pane:
|
|
2977
|
+
An.propTypes = ja;
|
|
2978
|
+
const _a = Object.assign(An, {
|
|
2979
|
+
Container: Ln,
|
|
2980
|
+
Content: mt,
|
|
2981
|
+
Pane: ht
|
|
2982
2982
|
});
|
|
2983
|
-
function
|
|
2983
|
+
function ka(e) {
|
|
2984
2984
|
let t;
|
|
2985
|
-
return
|
|
2985
|
+
return Bo(e, (n) => {
|
|
2986
2986
|
t == null && (t = n.props.eventKey);
|
|
2987
2987
|
}), t;
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function Na(e) {
|
|
2990
2990
|
const {
|
|
2991
2991
|
title: t,
|
|
2992
2992
|
eventKey: n,
|
|
@@ -2995,10 +2995,10 @@ function ka(e) {
|
|
|
2995
2995
|
tabAttrs: s,
|
|
2996
2996
|
id: i
|
|
2997
2997
|
} = e.props;
|
|
2998
|
-
return t == null ? null : /* @__PURE__ */ a.jsx(
|
|
2998
|
+
return t == null ? null : /* @__PURE__ */ a.jsx(ct, {
|
|
2999
2999
|
as: "li",
|
|
3000
3000
|
role: "presentation",
|
|
3001
|
-
children: /* @__PURE__ */ a.jsx(
|
|
3001
|
+
children: /* @__PURE__ */ a.jsx(lt, {
|
|
3002
3002
|
as: "button",
|
|
3003
3003
|
type: "button",
|
|
3004
3004
|
eventKey: n,
|
|
@@ -3010,7 +3010,7 @@ function ka(e) {
|
|
|
3010
3010
|
})
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
3013
|
-
const
|
|
3013
|
+
const Yn = (e) => {
|
|
3014
3014
|
const {
|
|
3015
3015
|
id: t,
|
|
3016
3016
|
onSelect: n,
|
|
@@ -3018,17 +3018,17 @@ const Ln = (e) => {
|
|
|
3018
3018
|
mountOnEnter: o = !1,
|
|
3019
3019
|
unmountOnExit: s = !1,
|
|
3020
3020
|
variant: i = "tabs",
|
|
3021
|
-
children:
|
|
3022
|
-
activeKey:
|
|
3021
|
+
children: l,
|
|
3022
|
+
activeKey: c = ka(l),
|
|
3023
3023
|
...u
|
|
3024
|
-
} =
|
|
3024
|
+
} = Ze(e, {
|
|
3025
3025
|
activeKey: "onSelect"
|
|
3026
3026
|
});
|
|
3027
|
-
return /* @__PURE__ */ a.jsxs(
|
|
3027
|
+
return /* @__PURE__ */ a.jsxs(dt, {
|
|
3028
3028
|
id: t,
|
|
3029
|
-
activeKey:
|
|
3029
|
+
activeKey: c,
|
|
3030
3030
|
onSelect: n,
|
|
3031
|
-
transition:
|
|
3031
|
+
transition: ft(r),
|
|
3032
3032
|
mountOnEnter: o,
|
|
3033
3033
|
unmountOnExit: s,
|
|
3034
3034
|
children: [/* @__PURE__ */ a.jsx(ba, {
|
|
@@ -3037,345 +3037,367 @@ const Ln = (e) => {
|
|
|
3037
3037
|
role: "tablist",
|
|
3038
3038
|
as: "ul",
|
|
3039
3039
|
variant: i,
|
|
3040
|
-
children:
|
|
3041
|
-
}), /* @__PURE__ */ a.jsx(
|
|
3042
|
-
children:
|
|
3040
|
+
children: Nt(l, Na)
|
|
3041
|
+
}), /* @__PURE__ */ a.jsx(mt, {
|
|
3042
|
+
children: Nt(l, (d) => {
|
|
3043
3043
|
const f = {
|
|
3044
3044
|
...d.props
|
|
3045
3045
|
};
|
|
3046
|
-
return delete f.title, delete f.disabled, delete f.tabClassName, delete f.tabAttrs, /* @__PURE__ */ a.jsx(
|
|
3046
|
+
return delete f.title, delete f.disabled, delete f.tabClassName, delete f.tabAttrs, /* @__PURE__ */ a.jsx(ht, {
|
|
3047
3047
|
...f
|
|
3048
3048
|
});
|
|
3049
3049
|
})
|
|
3050
3050
|
})]
|
|
3051
3051
|
});
|
|
3052
3052
|
};
|
|
3053
|
-
|
|
3054
|
-
const Ca = "_button_1wjon_1",
|
|
3053
|
+
Yn.displayName = "Tabs";
|
|
3054
|
+
const Ca = "_button_1wjon_1", $a = "_filled_1wjon_7", Ea = "_sm_1wjon_13", Oa = "_md_1wjon_18", Sa = "_lg_1wjon_23", he = {
|
|
3055
3055
|
button: Ca,
|
|
3056
|
-
filled:
|
|
3057
|
-
sm:
|
|
3058
|
-
md:
|
|
3059
|
-
lg:
|
|
3060
|
-
},
|
|
3061
|
-
const { LinkComponent: i } = O(
|
|
3062
|
-
return s.as === "link" ? /* @__PURE__ */ a.jsx(i, { to: s.href ?? "/", className: w(`btn ${e === "outlined" ? `btn-outline-${t}` : `btn-${t}`} ${r ?? ""}`,
|
|
3063
|
-
},
|
|
3056
|
+
filled: $a,
|
|
3057
|
+
sm: Ea,
|
|
3058
|
+
md: Oa,
|
|
3059
|
+
lg: Sa
|
|
3060
|
+
}, It = ({ variant: e = "filled", color: t = "primary", size: n = "md", className: r, children: o, ...s }) => {
|
|
3061
|
+
const { LinkComponent: i } = O(ge);
|
|
3062
|
+
return s.as === "link" ? /* @__PURE__ */ a.jsx(i, { to: s.href ?? "/", className: w(`btn ${e === "outlined" ? `btn-outline-${t}` : `btn-${t}`} ${r ?? ""}`, he.button, he[e], he[n]), ...s, children: o }) : s.as === "button" || s.as === void 0 ? /* @__PURE__ */ a.jsx("button", { type: "button", className: w(`btn ${e === "outlined" ? `btn-outline-${t}` : `btn-${t}`} ${r ?? ""}`, he.button, he[e], he[n]), ...s, children: o }) : null;
|
|
3063
|
+
}, Ia = "_submit-container_w6qi9_1", Da = "_spacer_w6qi9_14", Dt = {
|
|
3064
3064
|
"submit-container": "_submit-container_w6qi9_1",
|
|
3065
|
-
submitContainer:
|
|
3065
|
+
submitContainer: Ia,
|
|
3066
3066
|
spacer: Da
|
|
3067
3067
|
}, Ta = ({ children: e, onStorno: t }) => {
|
|
3068
|
-
const { formSubmitTexts: n } = O(
|
|
3068
|
+
const { formSubmitTexts: n } = O(ge);
|
|
3069
3069
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3070
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
3071
|
-
/* @__PURE__ */ a.jsxs("div", { className: w("luminus-floating-submit-container shadow",
|
|
3072
|
-
/* @__PURE__ */ a.jsxs(
|
|
3073
|
-
/* @__PURE__ */ a.jsx(
|
|
3070
|
+
/* @__PURE__ */ a.jsx("div", { className: Dt.spacer }),
|
|
3071
|
+
/* @__PURE__ */ a.jsxs("div", { className: w("luminus-floating-submit-container shadow", Dt.submitContainer), children: [
|
|
3072
|
+
/* @__PURE__ */ a.jsxs(It, { as: "button", color: "success", size: "lg", type: "submit", children: [
|
|
3073
|
+
/* @__PURE__ */ a.jsx(dr, {}),
|
|
3074
3074
|
e
|
|
3075
3075
|
] }),
|
|
3076
|
-
t && /* @__PURE__ */ a.jsxs(
|
|
3077
|
-
/* @__PURE__ */ a.jsx(
|
|
3076
|
+
t && /* @__PURE__ */ a.jsxs(It, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: t, children: [
|
|
3077
|
+
/* @__PURE__ */ a.jsx(At, {}),
|
|
3078
3078
|
n.storno
|
|
3079
3079
|
] })
|
|
3080
3080
|
] })
|
|
3081
3081
|
] });
|
|
3082
|
-
},
|
|
3083
|
-
button:
|
|
3084
|
-
},
|
|
3085
|
-
const { LinkComponent: s } = O(
|
|
3086
|
-
return o.as === "link" ? /* @__PURE__ */ a.jsxs(s, { to: o.href ?? "/", className: w(`luminus-context-button btn text-${e} ${n ?? ""}`,
|
|
3082
|
+
}, Ma = "_button_6qbjz_1", Xe = {
|
|
3083
|
+
button: Ma
|
|
3084
|
+
}, Kn = ({ color: e = "primary", icon: t = /* @__PURE__ */ a.jsx(je, { size: 10 }), className: n, children: r, ...o }) => {
|
|
3085
|
+
const { LinkComponent: s } = O(ge);
|
|
3086
|
+
return o.as === "link" ? /* @__PURE__ */ a.jsxs(s, { to: o.href ?? "/", className: w(`luminus-context-button btn text-${e} ${n ?? ""}`, Xe.button), ...o, children: [
|
|
3087
3087
|
t,
|
|
3088
3088
|
r
|
|
3089
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ a.jsxs("button", { type: "button", className: w(`luminus-context-button btn text-${e} ${n ?? ""}`,
|
|
3089
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ a.jsxs("button", { type: "button", className: w(`luminus-context-button btn text-${e} ${n ?? ""}`, Xe.button), ...o, children: [
|
|
3090
3090
|
t,
|
|
3091
3091
|
r
|
|
3092
3092
|
] }) : null;
|
|
3093
|
-
},
|
|
3093
|
+
}, Bn = ({ color: e = "primary", icon: t = /* @__PURE__ */ a.jsx(Yt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: s, children: i, multiple: l, ...c }) => {
|
|
3094
3094
|
const u = (d) => {
|
|
3095
3095
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3096
3096
|
};
|
|
3097
3097
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3098
|
-
/* @__PURE__ */ a.jsxs("label", { htmlFor: n, className: w(`luminus-context-button btn text-${e} ${s ?? ""}`,
|
|
3098
|
+
/* @__PURE__ */ a.jsxs("label", { htmlFor: n, className: w(`luminus-context-button btn text-${e} ${s ?? ""}`, Xe.button), ...c, children: [
|
|
3099
3099
|
t,
|
|
3100
3100
|
i
|
|
3101
3101
|
] }),
|
|
3102
|
-
/* @__PURE__ */ a.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple:
|
|
3102
|
+
/* @__PURE__ */ a.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
3103
3103
|
] });
|
|
3104
|
-
},
|
|
3105
|
-
widget:
|
|
3106
|
-
},
|
|
3104
|
+
}, Pa = "_widget_1sdw8_1", Wa = {
|
|
3105
|
+
widget: Pa
|
|
3106
|
+
}, Tt = ({ onAdd: e }) => /* @__PURE__ */ a.jsx("div", { className: w("luminus-empty-widget", Wa.widget), children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: () => e(0), children: /* @__PURE__ */ a.jsx(fr, {}) }) }), Fa = () => {
|
|
3107
3107
|
const [e, t] = M({
|
|
3108
3108
|
widgets: []
|
|
3109
3109
|
});
|
|
3110
|
-
|
|
3110
|
+
I(() => {
|
|
3111
3111
|
const r = localStorage.getItem("dashboardConfig");
|
|
3112
3112
|
r && t(JSON.parse(r));
|
|
3113
3113
|
}, []);
|
|
3114
|
-
const n =
|
|
3114
|
+
const n = S((r) => {
|
|
3115
3115
|
t(r), localStorage.setItem("dashboardConfig", JSON.stringify(r));
|
|
3116
3116
|
}, []);
|
|
3117
3117
|
return { dashboardConfig: e, onChangeDashboardConfig: n };
|
|
3118
|
-
},
|
|
3119
|
-
dashboard:
|
|
3118
|
+
}, Ra = "_dashboard_1ikl9_1", La = "_widgets-grid_1ikl9_1", Aa = "_widget-wrapper_1ikl9_7", Ya = "_full-width_1ikl9_12", Ka = "_widget-edit_1ikl9_15", Ba = "_remove-icon_1ikl9_18", qa = "_full-width-icon_1ikl9_25", Ha = "_widget-edit-overlay_1ikl9_35", U = {
|
|
3119
|
+
dashboard: Ra,
|
|
3120
3120
|
"widgets-grid": "_widgets-grid_1ikl9_1",
|
|
3121
|
-
widgetsGrid:
|
|
3121
|
+
widgetsGrid: La,
|
|
3122
3122
|
"widget-wrapper": "_widget-wrapper_1ikl9_7",
|
|
3123
|
-
widgetWrapper:
|
|
3123
|
+
widgetWrapper: Aa,
|
|
3124
3124
|
"full-width": "_full-width_1ikl9_12",
|
|
3125
|
-
fullWidth:
|
|
3125
|
+
fullWidth: Ya,
|
|
3126
3126
|
"widget-edit": "_widget-edit_1ikl9_15",
|
|
3127
|
-
widgetEdit:
|
|
3127
|
+
widgetEdit: Ka,
|
|
3128
3128
|
"remove-icon": "_remove-icon_1ikl9_18",
|
|
3129
|
-
removeIcon:
|
|
3129
|
+
removeIcon: Ba,
|
|
3130
3130
|
"full-width-icon": "_full-width-icon_1ikl9_25",
|
|
3131
|
-
fullWidthIcon:
|
|
3131
|
+
fullWidthIcon: qa,
|
|
3132
3132
|
"widget-edit-overlay": "_widget-edit-overlay_1ikl9_35",
|
|
3133
|
-
widgetEditOverlay:
|
|
3134
|
-
},
|
|
3133
|
+
widgetEditOverlay: Ha
|
|
3134
|
+
}, Ci = ({ availableWidgets: e }) => {
|
|
3135
3135
|
var d;
|
|
3136
|
-
const { homeDashboardTexts: t } = O(
|
|
3137
|
-
var h,
|
|
3136
|
+
const { homeDashboardTexts: t } = O(ge), { dashboardConfig: n, onChangeDashboardConfig: r } = Fa(), [o, s] = M(!1), i = S((f, m) => {
|
|
3137
|
+
var h, x;
|
|
3138
3138
|
f === ((h = n.widgets) == null ? void 0 : h.length) ? r({
|
|
3139
3139
|
...n,
|
|
3140
3140
|
widgets: [...n.widgets, { widgetId: m, fullWidth: !1 }]
|
|
3141
3141
|
}) : r({
|
|
3142
3142
|
...n,
|
|
3143
|
-
widgets: ((
|
|
3143
|
+
widgets: ((x = n.widgets) == null ? void 0 : x.map((p, g) => g === f ? { widgetId: m, fullWidth: !1 } : p)) ?? []
|
|
3144
3144
|
});
|
|
3145
|
-
}, [n, r]),
|
|
3145
|
+
}, [n, r]), l = S((f) => {
|
|
3146
3146
|
var m, h;
|
|
3147
3147
|
((m = n.widgets[f]) == null ? void 0 : m.widgetId) === -1 ? r({
|
|
3148
3148
|
...n,
|
|
3149
|
-
widgets: ((h = n.widgets) == null ? void 0 : h.filter((
|
|
3149
|
+
widgets: ((h = n.widgets) == null ? void 0 : h.filter((x, p) => p !== f)) ?? []
|
|
3150
3150
|
}) : i(f, -1);
|
|
3151
|
-
}, [n, r, i]),
|
|
3151
|
+
}, [n, r, i]), c = S((f) => {
|
|
3152
3152
|
var m;
|
|
3153
3153
|
r({
|
|
3154
3154
|
...n,
|
|
3155
|
-
widgets: ((m = n.widgets) == null ? void 0 : m.map((h,
|
|
3155
|
+
widgets: ((m = n.widgets) == null ? void 0 : m.map((h, x) => x === f ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
3156
3156
|
});
|
|
3157
|
-
}, [n, r]), u =
|
|
3158
|
-
[
|
|
3159
|
-
}, { [
|
|
3157
|
+
}, [n, r]), u = S((f, m, h) => f ? /* @__PURE__ */ a.jsxs("div", { className: w(U.widgetWrapper, {
|
|
3158
|
+
[U.widgetEdit]: o && f.id !== -1
|
|
3159
|
+
}, { [U.fullWidth]: h }), children: [
|
|
3160
3160
|
o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3161
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () =>
|
|
3162
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () =>
|
|
3161
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => l(m), className: w("icon-button", "color-danger", U.removeIcon), children: /* @__PURE__ */ a.jsx(mr, {}) }),
|
|
3162
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => c(m), className: w("icon-button", { "color-danger": h }, { "color-info": !h }, U.fullWidthIcon), children: /* @__PURE__ */ a.jsx(hr, {}) })
|
|
3163
3163
|
] }),
|
|
3164
|
-
f.id === -1 ? o && /* @__PURE__ */ a.jsx("div", { className:
|
|
3165
|
-
f.id > -1 && o && /* @__PURE__ */ a.jsx("div", { className:
|
|
3166
|
-
] }, m) : /* @__PURE__ */ a.jsx(a.Fragment, {}), [o, i,
|
|
3167
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
3168
|
-
/* @__PURE__ */ a.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ a.jsx(
|
|
3169
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
3164
|
+
f.id === -1 ? o && /* @__PURE__ */ a.jsx("div", { className: U.widgetWrapper, children: /* @__PURE__ */ a.jsx(Tt, { onAdd: (x) => i(m, x) }) }) : f.render,
|
|
3165
|
+
f.id > -1 && o && /* @__PURE__ */ a.jsx("div", { className: U.widgetEditOverlay })
|
|
3166
|
+
] }, m) : /* @__PURE__ */ a.jsx(a.Fragment, {}), [o, i, l, c]);
|
|
3167
|
+
return /* @__PURE__ */ a.jsxs("div", { className: U.dashboard, children: [
|
|
3168
|
+
/* @__PURE__ */ a.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ a.jsx(Kn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ a.jsx(pr, {}) : /* @__PURE__ */ a.jsx(gr, {}), onClick: () => s(!o), children: o ? t.dashboardEditDone : t.dashboardEdit }) }),
|
|
3169
|
+
/* @__PURE__ */ a.jsxs("div", { className: U.widgetsGrid, children: [
|
|
3170
3170
|
(d = n.widgets) == null ? void 0 : d.map((f, m) => u(e.find((h) => h.id === f.widgetId), m, f.fullWidth)),
|
|
3171
|
-
o && /* @__PURE__ */ a.jsx(
|
|
3171
|
+
o && /* @__PURE__ */ a.jsx(Tt, { onAdd: (f) => {
|
|
3172
3172
|
var m;
|
|
3173
3173
|
return i((m = n.widgets) == null ? void 0 : m.length, f);
|
|
3174
3174
|
} })
|
|
3175
3175
|
] })
|
|
3176
3176
|
] });
|
|
3177
|
-
},
|
|
3178
|
-
badge:
|
|
3179
|
-
sm:
|
|
3180
|
-
md:
|
|
3181
|
-
lg:
|
|
3182
|
-
},
|
|
3177
|
+
}, Ga = "_badge_nhser_1", Va = "_sm_nhser_1", Qa = "_md_nhser_4", Xa = "_lg_nhser_7", Mt = {
|
|
3178
|
+
badge: Ga,
|
|
3179
|
+
sm: Va,
|
|
3180
|
+
md: Qa,
|
|
3181
|
+
lg: Xa
|
|
3182
|
+
}, $i = ({ children: e, color: t = "primary", size: n = "md", className: r }) => /* @__PURE__ */ a.jsx("span", { className: w(`luminus-badge badge bg-${t} ${r ?? ""}`, Mt.badge, Mt[n]), children: e }), za = "_collapse-icon_1ahhn_1", Ua = "_collapsed_1ahhn_6", Pt = {
|
|
3183
3183
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3184
|
-
collapseIcon:
|
|
3184
|
+
collapseIcon: za,
|
|
3185
3185
|
collapsed: Ua
|
|
3186
|
-
},
|
|
3187
|
-
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [s, i] = M(o),
|
|
3188
|
-
return
|
|
3186
|
+
}, Ei = ({ title: e, children: t, className: n, ...r }) => {
|
|
3187
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [s, i] = M(o), l = r.controlled ? r.isOpen : s;
|
|
3188
|
+
return I(() => {
|
|
3189
3189
|
i(o);
|
|
3190
3190
|
}, [o]), /* @__PURE__ */ a.jsxs("div", { className: n ?? "", children: [
|
|
3191
3191
|
/* @__PURE__ */ a.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(!s), children: [
|
|
3192
|
-
/* @__PURE__ */ a.jsx(
|
|
3193
|
-
/* @__PURE__ */ a.jsx(
|
|
3194
|
-
[
|
|
3192
|
+
/* @__PURE__ */ a.jsx(B, { variant: "h6", children: e }),
|
|
3193
|
+
/* @__PURE__ */ a.jsx(Kt, { className: w(Pt.collapseIcon, {
|
|
3194
|
+
[Pt.collapsed]: l
|
|
3195
3195
|
}) })
|
|
3196
3196
|
] }),
|
|
3197
|
-
/* @__PURE__ */ a.jsx(
|
|
3198
|
-
/* @__PURE__ */ a.jsx("hr", { className: `my-0 ${
|
|
3197
|
+
/* @__PURE__ */ a.jsx(Jt, { in: l, children: /* @__PURE__ */ a.jsx("div", { children: t }) }),
|
|
3198
|
+
/* @__PURE__ */ a.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3199
3199
|
] });
|
|
3200
|
-
},
|
|
3201
|
-
feedback:
|
|
3200
|
+
}, Ja = "_feedback_esh1j_1", Za = "_feedback-spacer_esh1j_8", Wt = {
|
|
3201
|
+
feedback: Ja,
|
|
3202
3202
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3203
|
-
feedbackSpacer:
|
|
3204
|
-
},
|
|
3205
|
-
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback",
|
|
3206
|
-
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback-spacer",
|
|
3203
|
+
feedbackSpacer: Za
|
|
3204
|
+
}, ue = ({ message: e }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3205
|
+
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback", Wt.feedback), children: e }),
|
|
3206
|
+
/* @__PURE__ */ a.jsx("div", { className: w("invalid-feedback-spacer", Wt.feedbackSpacer), children: e })
|
|
3207
3207
|
] });
|
|
3208
|
-
function
|
|
3209
|
-
var r = this, o =
|
|
3208
|
+
function es(e, t, n) {
|
|
3209
|
+
var r = this, o = A(null), s = A(0), i = A(null), l = A([]), c = A(), u = A(), d = A(e), f = A(!0);
|
|
3210
3210
|
d.current = e;
|
|
3211
3211
|
var m = typeof window < "u", h = !t && t !== 0 && m;
|
|
3212
3212
|
if (typeof e != "function")
|
|
3213
3213
|
throw new TypeError("Expected a function");
|
|
3214
3214
|
t = +t || 0;
|
|
3215
|
-
var
|
|
3216
|
-
|
|
3215
|
+
var x = !!(n = n || {}).leading, p = !("trailing" in n) || !!n.trailing, g = "maxWait" in n, j = "debounceOnServer" in n && !!n.debounceOnServer, _ = g ? Math.max(+n.maxWait || 0, t) : null;
|
|
3216
|
+
I(function() {
|
|
3217
3217
|
return f.current = !0, function() {
|
|
3218
3218
|
f.current = !1;
|
|
3219
3219
|
};
|
|
3220
3220
|
}, []);
|
|
3221
|
-
var
|
|
3222
|
-
var
|
|
3223
|
-
var E =
|
|
3224
|
-
return
|
|
3225
|
-
},
|
|
3226
|
-
h && cancelAnimationFrame(i.current), i.current = h ? requestAnimationFrame(
|
|
3227
|
-
},
|
|
3221
|
+
var b = K(function() {
|
|
3222
|
+
var k = function(D) {
|
|
3223
|
+
var E = l.current, P = c.current;
|
|
3224
|
+
return l.current = c.current = null, s.current = D, u.current = d.current.apply(P, E);
|
|
3225
|
+
}, v = function(D, E) {
|
|
3226
|
+
h && cancelAnimationFrame(i.current), i.current = h ? requestAnimationFrame(D) : setTimeout(D, E);
|
|
3227
|
+
}, y = function(D) {
|
|
3228
3228
|
if (!f.current)
|
|
3229
3229
|
return !1;
|
|
3230
|
-
var E =
|
|
3231
|
-
return !o.current || E >= t || E < 0 ||
|
|
3232
|
-
}, $ = function(
|
|
3233
|
-
return i.current = null, p &&
|
|
3234
|
-
},
|
|
3230
|
+
var E = D - o.current;
|
|
3231
|
+
return !o.current || E >= t || E < 0 || g && D - s.current >= _;
|
|
3232
|
+
}, $ = function(D) {
|
|
3233
|
+
return i.current = null, p && l.current ? k(D) : (l.current = c.current = null, u.current);
|
|
3234
|
+
}, N = function D() {
|
|
3235
3235
|
var E = Date.now();
|
|
3236
|
-
if (
|
|
3236
|
+
if (y(E))
|
|
3237
3237
|
return $(E);
|
|
3238
3238
|
if (f.current) {
|
|
3239
|
-
var P = t - (E - o.current),
|
|
3240
|
-
|
|
3239
|
+
var P = t - (E - o.current), Y = g ? Math.min(P, _ - (E - s.current)) : P;
|
|
3240
|
+
v(D, Y);
|
|
3241
3241
|
}
|
|
3242
3242
|
}, R = function() {
|
|
3243
|
-
if (m ||
|
|
3244
|
-
var
|
|
3245
|
-
if (
|
|
3243
|
+
if (m || j) {
|
|
3244
|
+
var D = Date.now(), E = y(D);
|
|
3245
|
+
if (l.current = [].slice.call(arguments), c.current = r, o.current = D, E) {
|
|
3246
3246
|
if (!i.current && f.current)
|
|
3247
|
-
return s.current = o.current,
|
|
3248
|
-
if (
|
|
3249
|
-
return
|
|
3247
|
+
return s.current = o.current, v(N, t), x ? k(o.current) : u.current;
|
|
3248
|
+
if (g)
|
|
3249
|
+
return v(N, t), k(o.current);
|
|
3250
3250
|
}
|
|
3251
|
-
return i.current ||
|
|
3251
|
+
return i.current || v(N, t), u.current;
|
|
3252
3252
|
}
|
|
3253
3253
|
};
|
|
3254
3254
|
return R.cancel = function() {
|
|
3255
|
-
i.current && (h ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), s.current = 0,
|
|
3255
|
+
i.current && (h ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), s.current = 0, l.current = o.current = c.current = i.current = null;
|
|
3256
3256
|
}, R.isPending = function() {
|
|
3257
3257
|
return !!i.current;
|
|
3258
3258
|
}, R.flush = function() {
|
|
3259
3259
|
return i.current ? $(Date.now()) : u.current;
|
|
3260
3260
|
}, R;
|
|
3261
|
-
}, [
|
|
3262
|
-
return
|
|
3261
|
+
}, [x, g, t, _, p, h, m, j]);
|
|
3262
|
+
return b;
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function ts(e, t) {
|
|
3265
3265
|
return e === t;
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function ns(e, t) {
|
|
3268
3268
|
return t;
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3271
|
-
var r =
|
|
3270
|
+
function qn(e, t, n) {
|
|
3271
|
+
var r = ts, o = qt(ns, e), s = o[0], i = o[1], l = es(S(function(u) {
|
|
3272
3272
|
return i(u);
|
|
3273
|
-
}, [i]), t, n),
|
|
3274
|
-
return r(
|
|
3275
|
-
}
|
|
3276
|
-
const
|
|
3277
|
-
dropdown:
|
|
3278
|
-
open:
|
|
3279
|
-
"
|
|
3280
|
-
|
|
3281
|
-
"
|
|
3282
|
-
|
|
3283
|
-
"
|
|
3284
|
-
|
|
3285
|
-
"
|
|
3286
|
-
|
|
3287
|
-
"
|
|
3288
|
-
|
|
3289
|
-
"
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3273
|
+
}, [i]), t, n), c = A(e);
|
|
3274
|
+
return r(c.current, e) || (l(e), c.current = e), [s, l];
|
|
3275
|
+
}
|
|
3276
|
+
const rs = "_dropdown_77hog_1", os = "_open_77hog_9", as = "_display-on-right_77hog_12", ss = "_display-on-left_77hog_17", is = "_selected-button_77hog_22", cs = "_clear-button_77hog_32", ls = "_search-input-container_77hog_41", us = "_search-input_77hog_41", ds = "_loading-container_77hog_47", fs = "_items-container_77hog_54", ms = "_header-row_77hog_60", hs = "_item_77hog_54", ps = "_name_77hog_80", gs = "_column-item_77hog_85", xs = "_icon_77hog_92", L = {
|
|
3277
|
+
dropdown: rs,
|
|
3278
|
+
open: os,
|
|
3279
|
+
"display-on-right": "_display-on-right_77hog_12",
|
|
3280
|
+
displayOnRight: as,
|
|
3281
|
+
"display-on-left": "_display-on-left_77hog_17",
|
|
3282
|
+
displayOnLeft: ss,
|
|
3283
|
+
"selected-button": "_selected-button_77hog_22",
|
|
3284
|
+
selectedButton: is,
|
|
3285
|
+
"clear-button": "_clear-button_77hog_32",
|
|
3286
|
+
clearButton: cs,
|
|
3287
|
+
"search-input-container": "_search-input-container_77hog_41",
|
|
3288
|
+
searchInputContainer: ls,
|
|
3289
|
+
"search-input": "_search-input_77hog_41",
|
|
3290
|
+
searchInput: us,
|
|
3291
|
+
"loading-container": "_loading-container_77hog_47",
|
|
3292
|
+
loadingContainer: ds,
|
|
3293
|
+
"items-container": "_items-container_77hog_54",
|
|
3294
|
+
itemsContainer: fs,
|
|
3295
|
+
"header-row": "_header-row_77hog_60",
|
|
3296
|
+
headerRow: ms,
|
|
3297
|
+
item: hs,
|
|
3298
|
+
name: ps,
|
|
3299
|
+
"column-item": "_column-item_77hog_85",
|
|
3300
|
+
columnItem: gs,
|
|
3301
|
+
icon: xs
|
|
3302
|
+
}, Hn = ({ show: e, onCancel: t, items: n, currentSelection: r, onSelectionChange: o, onClickSelectedItem: s, onSearchQueryChange: i, texts: l, additionalColumns: c, disabled: u, isLoading: d = !1 }) => {
|
|
3303
|
+
var _;
|
|
3304
|
+
const f = A(null), m = A(null), [h, x] = M(""), [p] = qn(h, 500), g = (_ = f.current) == null ? void 0 : _.getBoundingClientRect().x, j = K(() => g ? g > window.innerWidth / 2 : !1, [g]);
|
|
3305
|
+
return I(() => {
|
|
3306
|
+
var b;
|
|
3307
|
+
e && ((b = m.current) == null || b.focus());
|
|
3308
|
+
}, [m, e]), I(() => {
|
|
3309
|
+
e || x("");
|
|
3310
|
+
}, [e]), I(() => {
|
|
3311
|
+
i(p);
|
|
3312
|
+
}, [p, i]), Gt(f, t), /* @__PURE__ */ a.jsxs("div", { ref: f, className: w("luminus-dropdown-picker shadow rounded", L.dropdown, {
|
|
3313
|
+
[L.open]: e
|
|
3314
|
+
}, { [L.displayOnLeft]: j }, { [L.displayOnRight]: !j }), style: {
|
|
3315
|
+
width: `calc(max(100%, 300px) + ${((c == null ? void 0 : c.length) ?? 0) * 100}px) `
|
|
3316
|
+
}, children: [
|
|
3304
3317
|
r && /* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
3305
3318
|
t(), s(r);
|
|
3306
|
-
}, className: w("selected-button
|
|
3307
|
-
/* @__PURE__ */ a.jsx(
|
|
3308
|
-
/* @__PURE__ */ a.jsx(
|
|
3319
|
+
}, className: w("selected-button", L.selectedButton), children: [
|
|
3320
|
+
/* @__PURE__ */ a.jsx("div", { className: L.name, children: /* @__PURE__ */ a.jsx(B, { variant: "body2", children: r.name }) }),
|
|
3321
|
+
c == null ? void 0 : c.map((b) => /* @__PURE__ */ a.jsx("div", { className: L.columnItem, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", className: w("text-muted"), children: r.additionalColumns && r.additionalColumns[b.key] }) }, b.key)),
|
|
3322
|
+
/* @__PURE__ */ a.jsx("div", { className: L.icon, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ a.jsx(je, {}) }) })
|
|
3309
3323
|
] }),
|
|
3310
|
-
!
|
|
3311
|
-
r && /* @__PURE__ */ a.jsxs("button", { type: "button", className: w("clear-button
|
|
3312
|
-
/* @__PURE__ */ a.jsx(
|
|
3313
|
-
/* @__PURE__ */ a.jsx(
|
|
3324
|
+
!u && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3325
|
+
r && /* @__PURE__ */ a.jsxs("button", { type: "button", className: w("clear-button", L.clearButton), onClick: () => !u && o(null), children: [
|
|
3326
|
+
/* @__PURE__ */ a.jsx("div", { className: L.name, children: /* @__PURE__ */ a.jsx(B, { variant: "body2", children: l.clearSelection }) }),
|
|
3327
|
+
/* @__PURE__ */ a.jsx("div", { className: L.icon, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ a.jsx(At, {}) }) })
|
|
3314
3328
|
] }),
|
|
3315
|
-
/* @__PURE__ */ a.jsx("div", { className: w("search-input-container border-bottom",
|
|
3316
|
-
var
|
|
3317
|
-
return
|
|
3329
|
+
/* @__PURE__ */ a.jsx("div", { className: w("search-input-container border-bottom", L.searchInputContainer), children: /* @__PURE__ */ a.jsx(G.Control, { ref: m, type: "search", size: "sm", className: L.searchInput, placeholder: l.searchPlaceholder, value: h, onChange: (b) => {
|
|
3330
|
+
var k;
|
|
3331
|
+
return x(((k = b.target) == null ? void 0 : k.value) ?? "");
|
|
3318
3332
|
} }) }),
|
|
3319
|
-
|
|
3320
|
-
/* @__PURE__ */ a.
|
|
3321
|
-
|
|
3322
|
-
|
|
3333
|
+
d ? /* @__PURE__ */ a.jsx("div", { className: L.loadingContainer, children: /* @__PURE__ */ a.jsx(ut, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ a.jsxs("div", { className: w("items", L.itemsContainer), children: [
|
|
3334
|
+
c && c.length > 0 && /* @__PURE__ */ a.jsxs("div", { className: w("header-row border-bottom", L.headerRow), children: [
|
|
3335
|
+
/* @__PURE__ */ a.jsx("div", { className: L.name }),
|
|
3336
|
+
c == null ? void 0 : c.map((b) => /* @__PURE__ */ a.jsx("div", { className: L.columnItem, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", children: b.name }) }, b.key)),
|
|
3337
|
+
/* @__PURE__ */ a.jsx("div", { className: L.icon })
|
|
3338
|
+
] }),
|
|
3339
|
+
n == null ? void 0 : n.map((b) => /* @__PURE__ */ a.jsxs("button", { type: "button", className: w("item cursor-pointer", L.item), onClick: () => !u && o(b), children: [
|
|
3340
|
+
/* @__PURE__ */ a.jsx("div", { className: L.name, children: /* @__PURE__ */ a.jsx(B, { variant: "body2", children: b.name }) }),
|
|
3341
|
+
c == null ? void 0 : c.map((k) => /* @__PURE__ */ a.jsx("div", { className: L.columnItem, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", className: w("text-muted"), children: b.additionalColumns && b.additionalColumns[k.key] }) }, k.key)),
|
|
3342
|
+
/* @__PURE__ */ a.jsx("div", { className: L.icon, children: /* @__PURE__ */ a.jsx(B, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ a.jsx(je, {}) }) })
|
|
3343
|
+
] }, b.id))
|
|
3344
|
+
] })
|
|
3323
3345
|
] })
|
|
3324
3346
|
] });
|
|
3325
3347
|
};
|
|
3326
|
-
function
|
|
3327
|
-
return
|
|
3348
|
+
function bs(e) {
|
|
3349
|
+
return xr({ 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: [] }] })(e);
|
|
3328
3350
|
}
|
|
3329
|
-
const
|
|
3330
|
-
item:
|
|
3331
|
-
},
|
|
3351
|
+
const ws = "_item_qkqdk_1", Gn = {
|
|
3352
|
+
item: ws
|
|
3353
|
+
}, vs = ({ color: e = "primary", icon: t = /* @__PURE__ */ a.jsx(je, {}), className: n, children: r, ...o }) => /* @__PURE__ */ a.jsxs(ke.Item, { className: w(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n ?? ""}`, Gn.item), ...o, children: [
|
|
3332
3354
|
t,
|
|
3333
3355
|
r
|
|
3334
|
-
] }),
|
|
3356
|
+
] }), ys = (e) => /* @__PURE__ */ a.jsx(ke.Toggle, { ...e }), Oi = ({ color: e = "primary", icon: t = /* @__PURE__ */ a.jsx(Yt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: s, className: i, children: l, ...c }) => {
|
|
3335
3357
|
const u = (d) => {
|
|
3336
3358
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3337
3359
|
};
|
|
3338
3360
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3339
|
-
/* @__PURE__ */ a.jsxs("label", { htmlFor: n, className: w(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`,
|
|
3361
|
+
/* @__PURE__ */ a.jsxs("label", { htmlFor: n, className: w(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, Gn.item), ...c, children: [
|
|
3340
3362
|
t,
|
|
3341
|
-
|
|
3363
|
+
l
|
|
3342
3364
|
] }),
|
|
3343
3365
|
/* @__PURE__ */ a.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: s })
|
|
3344
3366
|
] });
|
|
3345
|
-
},
|
|
3346
|
-
divider:
|
|
3347
|
-
},
|
|
3348
|
-
dropdown:
|
|
3349
|
-
},
|
|
3367
|
+
}, js = "_divider_1e6rk_1", _s = {
|
|
3368
|
+
divider: js
|
|
3369
|
+
}, Si = ({ className: e }) => /* @__PURE__ */ a.jsx(ke.Divider, { className: w("luminus-dropdown-divider", e, _s.divider) }), ks = "_dropdown_1lk66_1", Ns = {
|
|
3370
|
+
dropdown: ks
|
|
3371
|
+
}, Cs = ({ toggle: e, children: t, ...n }) => /* @__PURE__ */ a.jsxs(ke, { ...n, children: [
|
|
3350
3372
|
e,
|
|
3351
|
-
/* @__PURE__ */ a.jsx(
|
|
3352
|
-
] }),
|
|
3353
|
-
dropdown:
|
|
3354
|
-
open:
|
|
3373
|
+
/* @__PURE__ */ a.jsx(ke.Menu, { className: w("luminus-dropdown rounded shadow", Ns.dropdown), children: t })
|
|
3374
|
+
] }), $s = ({ searchTypes: e, selectedType: t, setSelectedType: n }) => /* @__PURE__ */ a.jsx(Cs, { toggle: /* @__PURE__ */ a.jsx(ys, { as: br, icon: null, text: t == null ? void 0 : t.text }), children: e.map((r) => /* @__PURE__ */ a.jsx(vs, { icon: null, onClick: () => n(r), children: r.text }, r.key)) }), Es = "_dropdown_1ddrg_1", Os = "_open_1ddrg_12", Ss = "_loading-container_1ddrg_15", Is = "_groups-container_1ddrg_22", Ds = "_group_1ddrg_22", Ts = "_header_1ddrg_26", Ms = "_item_1ddrg_33", ae = {
|
|
3375
|
+
dropdown: Es,
|
|
3376
|
+
open: Os,
|
|
3355
3377
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3356
|
-
loadingContainer:
|
|
3378
|
+
loadingContainer: Ss,
|
|
3357
3379
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3358
|
-
groupsContainer:
|
|
3359
|
-
group:
|
|
3360
|
-
header:
|
|
3361
|
-
item:
|
|
3362
|
-
},
|
|
3363
|
-
const { LinkComponent: i, appSearchTexts:
|
|
3380
|
+
groupsContainer: Is,
|
|
3381
|
+
group: Ds,
|
|
3382
|
+
header: Ts,
|
|
3383
|
+
item: Ms
|
|
3384
|
+
}, Ps = ({ show: e, query: t, onCancel: n, groups: r, isLoading: o, searchTypes: s }) => {
|
|
3385
|
+
const { LinkComponent: i, appSearchTexts: l } = O(ge), c = A(null), u = S((d) => {
|
|
3364
3386
|
var m;
|
|
3365
3387
|
const f = (m = s.find((h) => h.key === d.type)) == null ? void 0 : m.toPath;
|
|
3366
3388
|
return f ? `${f}/${d.searchKey}` : "/not-found";
|
|
3367
3389
|
}, [s]);
|
|
3368
|
-
return
|
|
3369
|
-
[
|
|
3370
|
-
}), children: o ? /* @__PURE__ */ a.jsx("div", { className:
|
|
3390
|
+
return Gt(c, n), /* @__PURE__ */ a.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", ae.dropdown, {
|
|
3391
|
+
[ae.open]: e
|
|
3392
|
+
}), children: o ? /* @__PURE__ */ a.jsx("div", { className: ae.loadingContainer, children: /* @__PURE__ */ a.jsx(ut, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ a.jsx("div", { className: ae.groupsContainer, children: r == null ? void 0 : r.map((d) => {
|
|
3371
3393
|
var f;
|
|
3372
|
-
return /* @__PURE__ */ a.jsxs("div", { className: w(
|
|
3373
|
-
/* @__PURE__ */ a.jsxs(i, { to: `/search?query=${t}&type=${d.key.category}`, className: w("group-header",
|
|
3374
|
-
/* @__PURE__ */ a.jsx(
|
|
3375
|
-
/* @__PURE__ */ a.jsxs(
|
|
3394
|
+
return /* @__PURE__ */ a.jsxs("div", { className: w(ae.group), children: [
|
|
3395
|
+
/* @__PURE__ */ a.jsxs(i, { to: `/search?query=${t}&type=${d.key.category}`, className: w("group-header", ae.header), onClick: n, children: [
|
|
3396
|
+
/* @__PURE__ */ a.jsx(B, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
3397
|
+
/* @__PURE__ */ a.jsxs(B, { variant: "caption", children: [
|
|
3376
3398
|
d.items.length,
|
|
3377
3399
|
" ",
|
|
3378
|
-
|
|
3400
|
+
l.amountFrom,
|
|
3379
3401
|
" ",
|
|
3380
3402
|
d.key.totalCount
|
|
3381
3403
|
] })
|
|
@@ -3384,114 +3406,114 @@ const fs = "_item_qkqdk_1", qn = {
|
|
|
3384
3406
|
i,
|
|
3385
3407
|
{
|
|
3386
3408
|
to: u(m),
|
|
3387
|
-
className: w("search-item d-flex gap-3 align-items-center justify-content-between",
|
|
3409
|
+
className: w("search-item d-flex gap-3 align-items-center justify-content-between", ae.item),
|
|
3388
3410
|
onClick: n,
|
|
3389
3411
|
children: [
|
|
3390
|
-
/* @__PURE__ */ a.jsx(
|
|
3391
|
-
/* @__PURE__ */ a.jsx(
|
|
3412
|
+
/* @__PURE__ */ a.jsx(B, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3413
|
+
/* @__PURE__ */ a.jsx(B, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ a.jsx(je, {}) })
|
|
3392
3414
|
]
|
|
3393
3415
|
},
|
|
3394
3416
|
h
|
|
3395
3417
|
))
|
|
3396
3418
|
] }, d.key.category);
|
|
3397
3419
|
}) }) });
|
|
3398
|
-
},
|
|
3420
|
+
}, Ws = "_input-group_1lkfy_1", Fs = "_input-group-text_1lkfy_5", Rs = "_left_1lkfy_9", Ls = "_right_1lkfy_13", As = "_input_1lkfy_1", Ys = "_submit-button_1lkfy_20", se = {
|
|
3399
3421
|
"input-group": "_input-group_1lkfy_1",
|
|
3400
|
-
inputGroup:
|
|
3422
|
+
inputGroup: Ws,
|
|
3401
3423
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3402
|
-
inputGroupText:
|
|
3403
|
-
left:
|
|
3404
|
-
right:
|
|
3405
|
-
input:
|
|
3424
|
+
inputGroupText: Fs,
|
|
3425
|
+
left: Rs,
|
|
3426
|
+
right: Ls,
|
|
3427
|
+
input: As,
|
|
3406
3428
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3407
|
-
submitButton:
|
|
3408
|
-
},
|
|
3409
|
-
const n =
|
|
3429
|
+
submitButton: Ys
|
|
3430
|
+
}, Ks = (e, t) => {
|
|
3431
|
+
const n = wr(), [r, o] = M(!1), [s, i] = M([]), l = !e || !e.key, c = S(() => {
|
|
3410
3432
|
if (t.length < 3) {
|
|
3411
3433
|
i([]);
|
|
3412
3434
|
return;
|
|
3413
3435
|
}
|
|
3414
|
-
o(!0), n.get(`/search/${t}?count=${
|
|
3436
|
+
o(!0), n.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data: u }) => {
|
|
3415
3437
|
i(u), o(!1);
|
|
3416
3438
|
}).catch(() => {
|
|
3417
3439
|
o(!1);
|
|
3418
3440
|
});
|
|
3419
|
-
}, [e, t, n,
|
|
3420
|
-
return
|
|
3421
|
-
|
|
3422
|
-
}, [
|
|
3423
|
-
},
|
|
3424
|
-
const { appSearchTexts: n } = O(
|
|
3425
|
-
return
|
|
3441
|
+
}, [e, t, n, l]);
|
|
3442
|
+
return I(() => {
|
|
3443
|
+
c();
|
|
3444
|
+
}, [c]), { isLoading: r, searchItems: s };
|
|
3445
|
+
}, Ii = ({ searchTypes: e, navigateFunction: t }) => {
|
|
3446
|
+
const { appSearchTexts: n } = O(ge), [r, o] = M(e.length > 0 ? e[0] : null), [s, i] = M(""), [l, c] = qn(s, 500), { isLoading: u, searchItems: d } = Ks(r, l), [f, m] = M(!1);
|
|
3447
|
+
return I(() => {
|
|
3426
3448
|
(d.length > 0 || u) && m(!0);
|
|
3427
|
-
}, [d, u]), /* @__PURE__ */ a.jsx(
|
|
3428
|
-
h.preventDefault(), h.stopPropagation(),
|
|
3429
|
-
}, children: /* @__PURE__ */ a.jsxs(
|
|
3430
|
-
/* @__PURE__ */ a.jsx(
|
|
3431
|
-
/* @__PURE__ */ a.jsx(
|
|
3432
|
-
var
|
|
3433
|
-
return i(((
|
|
3449
|
+
}, [d, u]), /* @__PURE__ */ a.jsx(G, { onSubmit: (h) => {
|
|
3450
|
+
h.preventDefault(), h.stopPropagation(), c.flush(), m(!1), s.length > 2 && t(`/search?query=${s}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3451
|
+
}, children: /* @__PURE__ */ a.jsxs(qe, { className: se.inputGroup, children: [
|
|
3452
|
+
/* @__PURE__ */ a.jsx(qe.Text, { className: w("p-1 rounded", se.inputGroupText, se.left), children: /* @__PURE__ */ a.jsx($s, { searchTypes: e, selectedType: r, setSelectedType: o }) }),
|
|
3453
|
+
/* @__PURE__ */ a.jsx(G.Control, { placeholder: n.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", se.input), value: s, onChange: (h) => {
|
|
3454
|
+
var x;
|
|
3455
|
+
return i(((x = h.target) == null ? void 0 : x.value) ?? "");
|
|
3434
3456
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3435
|
-
/* @__PURE__ */ a.jsx(
|
|
3436
|
-
/* @__PURE__ */ a.jsx(
|
|
3457
|
+
/* @__PURE__ */ a.jsx(qe.Text, { className: w("p-0 rounded", se.inputGroupText, se.right), children: /* @__PURE__ */ a.jsx("button", { type: "submit", className: w("text-primary", se.submitButton), children: /* @__PURE__ */ a.jsx(bs, {}) }) }),
|
|
3458
|
+
/* @__PURE__ */ a.jsx(Ps, { query: l, searchTypes: e, show: f, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3437
3459
|
] }) });
|
|
3438
|
-
},
|
|
3439
|
-
card:
|
|
3440
|
-
header:
|
|
3460
|
+
}, Bs = "_card_1459b_1", qs = "_header_1459b_6", Hs = "_header-content_1459b_13", Gs = "_collapse-icon_1459b_19", Vs = "_collapsed_1459b_24", Qs = "_content_1459b_27", pe = {
|
|
3461
|
+
card: Bs,
|
|
3462
|
+
header: qs,
|
|
3441
3463
|
"header-content": "_header-content_1459b_13",
|
|
3442
|
-
headerContent:
|
|
3464
|
+
headerContent: Hs,
|
|
3443
3465
|
"collapse-icon": "_collapse-icon_1459b_19",
|
|
3444
|
-
collapseIcon:
|
|
3445
|
-
collapsed:
|
|
3446
|
-
content:
|
|
3447
|
-
},
|
|
3448
|
-
const
|
|
3449
|
-
return
|
|
3450
|
-
u(
|
|
3451
|
-
}, [
|
|
3466
|
+
collapseIcon: Gs,
|
|
3467
|
+
collapsed: Vs,
|
|
3468
|
+
content: Qs
|
|
3469
|
+
}, Di = ({ title: e, headerContent: t, children: n, className: r, headerClassName: o, contentClassName: s, ...i }) => {
|
|
3470
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = M(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3471
|
+
return I(() => {
|
|
3472
|
+
u(l);
|
|
3473
|
+
}, [l]), /* @__PURE__ */ a.jsxs("div", { className: w("luminus-card rounded border", pe.card, {
|
|
3452
3474
|
[r ?? ""]: r
|
|
3453
3475
|
}), children: [
|
|
3454
|
-
/* @__PURE__ */ a.jsxs("div", { role: i.collapsible ? "button" : void 0, className: w("header border-bottom",
|
|
3476
|
+
/* @__PURE__ */ a.jsxs("div", { role: i.collapsible ? "button" : void 0, className: w("header border-bottom", pe.header, {
|
|
3455
3477
|
[o ?? ""]: o
|
|
3456
3478
|
}), onClick: () => {
|
|
3457
|
-
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!
|
|
3479
|
+
i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
|
|
3458
3480
|
}, children: [
|
|
3459
|
-
/* @__PURE__ */ a.jsxs("div", { className: w("header-content",
|
|
3460
|
-
/* @__PURE__ */ a.jsx(
|
|
3481
|
+
/* @__PURE__ */ a.jsxs("div", { className: w("header-content", pe.headerContent), children: [
|
|
3482
|
+
/* @__PURE__ */ a.jsx(B, { variant: "h6", className: "text-primary", children: e }),
|
|
3461
3483
|
t ?? null
|
|
3462
3484
|
] }),
|
|
3463
|
-
i.collapsible && /* @__PURE__ */ a.jsx(
|
|
3464
|
-
[
|
|
3485
|
+
i.collapsible && /* @__PURE__ */ a.jsx(Kt, { className: w(pe.collapseIcon, {
|
|
3486
|
+
[pe.collapsed]: d
|
|
3465
3487
|
}) })
|
|
3466
3488
|
] }),
|
|
3467
|
-
/* @__PURE__ */ a.jsx(
|
|
3489
|
+
/* @__PURE__ */ a.jsx(Jt, { in: d, children: /* @__PURE__ */ a.jsx("div", { className: w("card-content", pe.content, {
|
|
3468
3490
|
[s ?? ""]: s
|
|
3469
3491
|
}), children: n }) })
|
|
3470
3492
|
] });
|
|
3471
|
-
},
|
|
3472
|
-
backdrop:
|
|
3473
|
-
show:
|
|
3474
|
-
lightbox:
|
|
3475
|
-
header:
|
|
3493
|
+
}, Xs = "_backdrop_1o7ym_1", zs = "_show_1o7ym_12", Us = "_lightbox_1o7ym_16", Js = "_header_1o7ym_35", Zs = "_photo-actions_1o7ym_41", ei = "_photo-container_1o7ym_46", ti = "_photo_1o7ym_41", ni = "_nav-button_1o7ym_56", ri = "_photos-preview_1o7ym_64", oi = "_selected_1o7ym_76", q = {
|
|
3494
|
+
backdrop: Xs,
|
|
3495
|
+
show: zs,
|
|
3496
|
+
lightbox: Us,
|
|
3497
|
+
header: Js,
|
|
3476
3498
|
"photo-actions": "_photo-actions_1o7ym_41",
|
|
3477
|
-
photoActions:
|
|
3499
|
+
photoActions: Zs,
|
|
3478
3500
|
"photo-container": "_photo-container_1o7ym_46",
|
|
3479
|
-
photoContainer:
|
|
3480
|
-
photo:
|
|
3501
|
+
photoContainer: ei,
|
|
3502
|
+
photo: ti,
|
|
3481
3503
|
"nav-button": "_nav-button_1o7ym_56",
|
|
3482
|
-
navButton:
|
|
3504
|
+
navButton: ni,
|
|
3483
3505
|
"photos-preview": "_photos-preview_1o7ym_64",
|
|
3484
|
-
photosPreview:
|
|
3485
|
-
selected:
|
|
3486
|
-
},
|
|
3487
|
-
const
|
|
3488
|
-
|
|
3506
|
+
photosPreview: ri,
|
|
3507
|
+
selected: oi
|
|
3508
|
+
}, ai = ({ show: e, onClose: t, photos: n, defaultIndex: r, uploadPhotosText: o, onUploadPhotos: s, photoActions: i }) => {
|
|
3509
|
+
const l = A(null), [c, u] = M(r), d = n.at(c), f = c > 0, m = c < n.length - 1;
|
|
3510
|
+
I(() => {
|
|
3489
3511
|
e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto", e && u(r);
|
|
3490
|
-
}, [r, e]),
|
|
3491
|
-
|
|
3492
|
-
}, [n,
|
|
3493
|
-
const h =
|
|
3494
|
-
switch (
|
|
3512
|
+
}, [r, e]), I(() => {
|
|
3513
|
+
c >= n.length && u(n.length - 1);
|
|
3514
|
+
}, [n, c]);
|
|
3515
|
+
const h = S((x) => {
|
|
3516
|
+
switch (x.key) {
|
|
3495
3517
|
case "ArrowLeft":
|
|
3496
3518
|
f && u((p) => p - 1);
|
|
3497
3519
|
break;
|
|
@@ -3503,50 +3525,50 @@ const fs = "_item_qkqdk_1", qn = {
|
|
|
3503
3525
|
break;
|
|
3504
3526
|
}
|
|
3505
3527
|
}, [m, f, t]);
|
|
3506
|
-
return
|
|
3528
|
+
return I(() => (document.addEventListener("keydown", h), () => {
|
|
3507
3529
|
document.removeEventListener("keydown", h);
|
|
3508
3530
|
}), [h]), n.length === 0 ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3509
|
-
/* @__PURE__ */ a.jsx("div", { className: w("luminus-backdrop",
|
|
3510
|
-
[
|
|
3531
|
+
/* @__PURE__ */ a.jsx("div", { className: w("luminus-backdrop", q.backdrop, {
|
|
3532
|
+
[q.show]: e
|
|
3511
3533
|
}), onClick: t }),
|
|
3512
|
-
/* @__PURE__ */ a.jsxs("div", { ref:
|
|
3513
|
-
[
|
|
3534
|
+
/* @__PURE__ */ a.jsxs("div", { ref: l, className: w("luminus-lightbox rounded shadow", q.lightbox, {
|
|
3535
|
+
[q.show]: e
|
|
3514
3536
|
}), children: [
|
|
3515
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
3516
|
-
/* @__PURE__ */ a.jsxs("div", { className: w("rounded",
|
|
3517
|
-
s && /* @__PURE__ */ a.jsx(
|
|
3518
|
-
|
|
3519
|
-
}, icon: /* @__PURE__ */ a.jsx(
|
|
3520
|
-
d && (i == null ? void 0 : i.map(({ label:
|
|
3521
|
-
|
|
3537
|
+
/* @__PURE__ */ a.jsxs("div", { className: q.header, children: [
|
|
3538
|
+
/* @__PURE__ */ a.jsxs("div", { className: w("rounded", q.photoActions), children: [
|
|
3539
|
+
s && /* @__PURE__ */ a.jsx(Bn, { accept: ".jpg,.jpeg,.png", onUpload: (x) => {
|
|
3540
|
+
x.length > 0 && s(Array.from(x));
|
|
3541
|
+
}, icon: /* @__PURE__ */ a.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3542
|
+
d && (i == null ? void 0 : i.map(({ label: x, onClick: p, ...g }, j) => /* @__PURE__ */ a.jsx(
|
|
3543
|
+
Kn,
|
|
3522
3544
|
{
|
|
3523
3545
|
onClick: () => p(d.id),
|
|
3524
|
-
...
|
|
3525
|
-
children:
|
|
3546
|
+
...g,
|
|
3547
|
+
children: x
|
|
3526
3548
|
},
|
|
3527
|
-
`action-${
|
|
3549
|
+
`action-${j}`
|
|
3528
3550
|
)))
|
|
3529
3551
|
] }),
|
|
3530
|
-
/* @__PURE__ */ a.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ a.jsx(
|
|
3552
|
+
/* @__PURE__ */ a.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ a.jsx(le, { style: { fontSize: "32px" } }) })
|
|
3531
3553
|
] }),
|
|
3532
|
-
d && /* @__PURE__ */ a.jsxs("div", { className:
|
|
3533
|
-
/* @__PURE__ */ a.jsx("div", { role: f ? "button" : void 0, className: w("align-items-start",
|
|
3534
|
-
/* @__PURE__ */ a.jsx("img", { src: d.lgSrc, alt: d.alt, className: w("rounded",
|
|
3535
|
-
/* @__PURE__ */ a.jsx("div", { role: m ? "button" : void 0, className: w("align-items-end",
|
|
3554
|
+
d && /* @__PURE__ */ a.jsxs("div", { className: q.photoContainer, children: [
|
|
3555
|
+
/* @__PURE__ */ a.jsx("div", { role: f ? "button" : void 0, className: w("align-items-start", q.navButton), onClick: () => f && u((x) => x - 1), children: f && /* @__PURE__ */ a.jsx(ze, { style: { fontSize: "40px" } }) }),
|
|
3556
|
+
/* @__PURE__ */ a.jsx("img", { src: d.lgSrc, alt: d.alt, className: w("rounded", q.photo) }),
|
|
3557
|
+
/* @__PURE__ */ a.jsx("div", { role: m ? "button" : void 0, className: w("align-items-end", q.navButton), onClick: () => m && u((x) => x + 1), children: m && /* @__PURE__ */ a.jsx(Ue, { style: { fontSize: "40px" } }) })
|
|
3536
3558
|
] }),
|
|
3537
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
3559
|
+
/* @__PURE__ */ a.jsx("div", { className: q.photosPreview, children: n.map((x, p) => (
|
|
3538
3560
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
3539
|
-
/* @__PURE__ */ a.jsx("img", { role: p !==
|
|
3540
|
-
[
|
|
3541
|
-
}), onClick: () => u(p) },
|
|
3561
|
+
/* @__PURE__ */ a.jsx("img", { role: p !== c ? "button" : void 0, src: x.smSrc, alt: x.alt, className: w("rounded", q.photo, {
|
|
3562
|
+
[q.selected]: p === c
|
|
3563
|
+
}), onClick: () => u(p) }, x.id)
|
|
3542
3564
|
)) })
|
|
3543
3565
|
] })
|
|
3544
3566
|
] });
|
|
3545
|
-
},
|
|
3546
|
-
const [o, s] = M(null), i = o !== null ? e[o] : null, [
|
|
3547
|
-
return
|
|
3567
|
+
}, Ti = ({ photos: e, onUploadPhotos: t, uploadPhotosText: n, photoActions: r }) => {
|
|
3568
|
+
const [o, s] = M(null), i = o !== null ? e[o] : null, [l, c] = M(!1);
|
|
3569
|
+
return I(() => {
|
|
3548
3570
|
if (e.length === 0) {
|
|
3549
|
-
s(null),
|
|
3571
|
+
s(null), c(!1);
|
|
3550
3572
|
return;
|
|
3551
3573
|
}
|
|
3552
3574
|
const u = e.findIndex((d) => d.isDefault);
|
|
@@ -3559,357 +3581,353 @@ const fs = "_item_qkqdk_1", qn = {
|
|
|
3559
3581
|
src: i.smSrc,
|
|
3560
3582
|
alt: i.alt,
|
|
3561
3583
|
className: "rounded w-100",
|
|
3562
|
-
onClick: () =>
|
|
3584
|
+
onClick: () => c(!0)
|
|
3563
3585
|
}
|
|
3564
3586
|
),
|
|
3565
|
-
/* @__PURE__ */ a.jsx(
|
|
3566
|
-
] }) : t ? /* @__PURE__ */ a.jsx(
|
|
3587
|
+
/* @__PURE__ */ a.jsx(ai, { show: l, onClose: () => c(!1), photos: e, defaultIndex: o ?? 0, uploadPhotosText: n, onUploadPhotos: t, photoActions: r })
|
|
3588
|
+
] }) : t ? /* @__PURE__ */ a.jsx(Bn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3567
3589
|
u.length > 0 && t(Array.from(u));
|
|
3568
|
-
}, icon: /* @__PURE__ */ a.jsx(
|
|
3569
|
-
},
|
|
3570
|
-
/* @__PURE__ */ a.jsx(
|
|
3571
|
-
/* @__PURE__ */ a.jsx(
|
|
3572
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }),
|
|
3590
|
+
}, icon: /* @__PURE__ */ a.jsx(Bt, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3591
|
+
}, Mi = ({ heading: e, content: t, placement: n, children: r, trigger: o }) => /* @__PURE__ */ a.jsx(vr, { placement: n, overlay: /* @__PURE__ */ a.jsxs(Ye, { className: "luminus-tooltip", children: [
|
|
3592
|
+
/* @__PURE__ */ a.jsx(Ye.Header, { as: "h3", children: e }),
|
|
3593
|
+
/* @__PURE__ */ a.jsx(Ye.Body, { children: t })
|
|
3594
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), si = "_floating-label_131i6_1", ii = "_without-label_131i6_21", Ft = {
|
|
3573
3595
|
"floating-label": "_floating-label_131i6_1",
|
|
3574
|
-
floatingLabel:
|
|
3596
|
+
floatingLabel: si,
|
|
3575
3597
|
"without-label": "_without-label_131i6_21",
|
|
3576
|
-
withoutLabel:
|
|
3577
|
-
},
|
|
3598
|
+
withoutLabel: ii
|
|
3599
|
+
}, Le = ({ hidden: e, children: t, isForCheckInput: n, className: r, inputContainerClassName: o, ...s }) => n ? /* @__PURE__ */ a.jsx(a.Fragment, { children: t }) : /* @__PURE__ */ a.jsx(st, { label: s.withoutLabel ? "" : s.label, hidden: e ?? !1, className: w(`luminus-floating-label ${r ?? ""}`, Ft.floatingLabel, {
|
|
3578
3600
|
[o ?? ""]: o
|
|
3579
|
-
}, { [
|
|
3601
|
+
}, { [Ft.withoutLabel]: s.withoutLabel }), children: t }), ci = "_row-label-input_18o63_1", li = "_label_18o63_4", ui = "_input-container_18o63_9", di = "_keep-check-label_18o63_56", fi = "_is-invalid_18o63_59", ye = {
|
|
3580
3602
|
"row-label-input": "_row-label-input_18o63_1",
|
|
3581
|
-
rowLabelInput:
|
|
3582
|
-
label:
|
|
3603
|
+
rowLabelInput: ci,
|
|
3604
|
+
label: li,
|
|
3583
3605
|
"input-container": "_input-container_18o63_9",
|
|
3584
|
-
inputContainer:
|
|
3606
|
+
inputContainer: ui,
|
|
3585
3607
|
"keep-check-label": "_keep-check-label_18o63_56",
|
|
3586
|
-
keepCheckLabel:
|
|
3608
|
+
keepCheckLabel: di,
|
|
3587
3609
|
"is-invalid": "_is-invalid_18o63_59",
|
|
3588
|
-
isInvalid:
|
|
3589
|
-
},
|
|
3590
|
-
!i.withoutLabel && /* @__PURE__ */ a.jsx("label", { className: w("label col-6",
|
|
3591
|
-
/* @__PURE__ */ a.jsx("div", { className: w("input-container",
|
|
3610
|
+
isInvalid: fi
|
|
3611
|
+
}, de = ({ hidden: e, children: t, className: n, isInvalid: r, isForRadioInput: o, inputContainerClassName: s, ...i }) => /* @__PURE__ */ a.jsxs("div", { className: w("luminus-row-label row gx-0 gy-0", { "is-invalid": r }, { [ye.isInvalid]: r }, { [n ?? ""]: n }, { "d-none": e }, ye.rowLabelInput), children: [
|
|
3612
|
+
!i.withoutLabel && /* @__PURE__ */ a.jsx("label", { className: w("label col-6", ye.label), children: /* @__PURE__ */ a.jsx(B, { variant: "form-label", className: r ? "text-danger" : "", children: i.label }) }),
|
|
3613
|
+
/* @__PURE__ */ a.jsx("div", { className: w("input-container", ye.inputContainer, { "col-6": !i.withoutLabel }, { "col-12": i.withoutLabel }, { [ye.keepCheckLabel]: o }, {
|
|
3592
3614
|
[s ?? ""]: s
|
|
3593
3615
|
}), children: t })
|
|
3594
|
-
] }),
|
|
3616
|
+
] }), Pi = ({ InputContainer: e = Le, label: t, value: n, onChange: r, hidden: o, disabled: s, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ a.jsx(e, { isForCheckInput: !0, hidden: o, label: t ?? "", withoutLabel: c, children: /* @__PURE__ */ a.jsx(G.Check, { id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: n, onChange: (u) => {
|
|
3595
3617
|
var d;
|
|
3596
3618
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3597
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: s ?? !1 }) }),
|
|
3598
|
-
const
|
|
3619
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: s ?? !1 }) }), Wi = ({ InputContainer: e = Le, type: t, value: n, onChange: r, debounceMs: o, label: s, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: f, clearValue: m, className: h }) => {
|
|
3620
|
+
const x = t === "number", p = S(() => {
|
|
3599
3621
|
if (!r)
|
|
3600
3622
|
return;
|
|
3601
|
-
const
|
|
3602
|
-
r(
|
|
3603
|
-
}, [m,
|
|
3604
|
-
const
|
|
3605
|
-
r && (
|
|
3606
|
-
}, [
|
|
3623
|
+
const v = m ?? null;
|
|
3624
|
+
r(x ? v ? Number(v) : null : (v == null ? void 0 : v.toString()) ?? "");
|
|
3625
|
+
}, [m, x, r]), g = A(null), [j, _] = M((n == null ? void 0 : n.toString()) ?? ""), b = S((v) => {
|
|
3626
|
+
const y = v;
|
|
3627
|
+
r && (x && r(y ? parseInt(y, 10) : null), r(y || null));
|
|
3628
|
+
}, [x, r]), k = S((v) => {
|
|
3607
3629
|
var $;
|
|
3608
|
-
const
|
|
3630
|
+
const y = ($ = v.target) == null ? void 0 : $.value;
|
|
3609
3631
|
if (!o) {
|
|
3610
|
-
|
|
3632
|
+
b(y);
|
|
3611
3633
|
return;
|
|
3612
3634
|
}
|
|
3613
|
-
|
|
3614
|
-
|
|
3635
|
+
_(y), g.current !== null && (console.log(g.current), window.clearTimeout(g.current)), g.current = window.setTimeout(() => {
|
|
3636
|
+
b(y);
|
|
3615
3637
|
}, o);
|
|
3616
|
-
}, [o,
|
|
3638
|
+
}, [o, b]);
|
|
3617
3639
|
return /* @__PURE__ */ a.jsxs(e, { withoutLabel: i, label: s ?? "", hidden: u, children: [
|
|
3618
|
-
/* @__PURE__ */ a.jsx(
|
|
3619
|
-
f && n && r && !d && /* @__PURE__ */ a.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: p, children: /* @__PURE__ */ a.jsx(
|
|
3640
|
+
/* @__PURE__ */ a.jsx(G.Control, { type: t, placeholder: l ?? s, size: c, value: o ? j : n ?? "", onChange: k, className: h ?? "", hidden: u, disabled: d ?? !1 }),
|
|
3641
|
+
f && n && r && !d && /* @__PURE__ */ a.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: p, children: /* @__PURE__ */ a.jsx(le, {}) }) })
|
|
3620
3642
|
] });
|
|
3621
|
-
},
|
|
3622
|
-
const
|
|
3643
|
+
}, Fi = ({ InputContainer: e = Le, value: t, options: n, onChange: r, label: o, withoutLabel: s, isNumber: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: f, noSortOptions: m, className: h }) => {
|
|
3644
|
+
const x = S(() => {
|
|
3623
3645
|
if (!r)
|
|
3624
3646
|
return;
|
|
3625
3647
|
const p = f ?? null;
|
|
3626
3648
|
r(i ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
3627
3649
|
}, [f, i, r]);
|
|
3628
|
-
return /* @__PURE__ */ a.jsxs(e, { withoutLabel: s, label: o ?? "", hidden:
|
|
3629
|
-
/* @__PURE__ */ a.jsxs(
|
|
3630
|
-
var
|
|
3650
|
+
return /* @__PURE__ */ a.jsxs(e, { withoutLabel: s, label: o ?? "", hidden: c, children: [
|
|
3651
|
+
/* @__PURE__ */ a.jsxs(G.Select, { size: l, value: t ?? "", onChange: (p) => {
|
|
3652
|
+
var j;
|
|
3631
3653
|
if (!r)
|
|
3632
3654
|
return;
|
|
3633
|
-
const
|
|
3634
|
-
i && r(
|
|
3635
|
-
}, className: h ?? "", hidden:
|
|
3655
|
+
const g = (j = p.target) == null ? void 0 : j.value;
|
|
3656
|
+
i && r(g ? parseInt(g, 10) : null), r(g || null);
|
|
3657
|
+
}, className: h ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3636
3658
|
/* @__PURE__ */ a.jsx("option", { value: "" }),
|
|
3637
|
-
n == null ? void 0 : n.sort((p,
|
|
3659
|
+
n == null ? void 0 : n.sort((p, g) => m ? 0 : (p.name ?? "").localeCompare(g.name ?? "")).map((p) => /* @__PURE__ */ a.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
|
|
3638
3660
|
] }),
|
|
3639
|
-
d && t && r && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick:
|
|
3661
|
+
d && t && r && !u && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: x, children: /* @__PURE__ */ a.jsx(le, {}) }) })
|
|
3640
3662
|
] });
|
|
3641
|
-
},
|
|
3642
|
-
const [g,
|
|
3643
|
-
|
|
3663
|
+
}, Ri = ({ InputContainer: e = Le, items: t, defaultSelection: n, onClickSelectedItem: r, onSearchQueryChange: o, texts: s, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: f, additionalColumns: m, hidden: h, disabled: x }) => {
|
|
3664
|
+
const p = K(() => n, [n]), [g, j] = M(p), [_, b] = M(!1), k = S((v) => {
|
|
3665
|
+
j(v);
|
|
3644
3666
|
}, []);
|
|
3645
|
-
return
|
|
3646
|
-
|
|
3647
|
-
}, [
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
/* @__PURE__ */ a.jsxs(H.Select, { size: f, value: (g == null ? void 0 : g.id) ?? "", onChange: (x) => p({
|
|
3651
|
-
id: c ? Number(x.target.value) ?? null : x.target.value,
|
|
3667
|
+
return I(() => {
|
|
3668
|
+
c && c(g);
|
|
3669
|
+
}, [g, c]), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { withoutLabel: d, label: u ?? "", hidden: h, inputContainerClassName: _ ? "shadow" : "", children: [
|
|
3670
|
+
/* @__PURE__ */ a.jsxs(G.Select, { size: f, value: (g == null ? void 0 : g.id) ?? "", onChange: (v) => j({
|
|
3671
|
+
id: l ? Number(v.target.value) ?? null : v.target.value,
|
|
3652
3672
|
name: ""
|
|
3653
|
-
}), onMouseDown: (
|
|
3654
|
-
|
|
3673
|
+
}), onMouseDown: (v) => {
|
|
3674
|
+
v.currentTarget.focus(), v.preventDefault();
|
|
3655
3675
|
}, onClick: () => {
|
|
3656
|
-
|
|
3657
|
-
}, className: w({ "luminus-dropdown-picker-disabled":
|
|
3676
|
+
b(!0);
|
|
3677
|
+
}, className: w({ "luminus-dropdown-picker-disabled": x }), hidden: h, children: [
|
|
3658
3678
|
/* @__PURE__ */ a.jsx("option", { value: "" }),
|
|
3659
|
-
|
|
3679
|
+
p && /* @__PURE__ */ a.jsx("option", { value: p.id ?? void 0, children: p.name }),
|
|
3660
3680
|
g && /* @__PURE__ */ a.jsx("option", { value: g.id ?? void 0, children: g.name })
|
|
3661
3681
|
] }),
|
|
3662
|
-
/* @__PURE__ */ a.jsx(
|
|
3663
|
-
|
|
3664
|
-
}, onClickSelectedItem: r, onSearchQueryChange: o, texts: s, isLoading: i, disabled:
|
|
3682
|
+
/* @__PURE__ */ a.jsx(Hn, { show: _, onCancel: () => b(!1), items: t, currentSelection: g, onSelectionChange: (v) => {
|
|
3683
|
+
b(!1), k(v);
|
|
3684
|
+
}, onClickSelectedItem: r, onSearchQueryChange: o, texts: s, additionalColumns: m, isLoading: i, disabled: x })
|
|
3665
3685
|
] }) });
|
|
3666
|
-
},
|
|
3667
|
-
const { register: u, formState: d, setValue: f } =
|
|
3668
|
-
|
|
3686
|
+
}, Li = ({ InputContainer: e = de, formField: t, label: n, resetsFields: r, type: o, required: s, hidden: i, disabled: l, withoutLabel: c }) => {
|
|
3687
|
+
const { register: u, formState: d, setValue: f } = oe(), [m, h] = M(void 0);
|
|
3688
|
+
I(() => {
|
|
3669
3689
|
const p = t.split(".");
|
|
3670
|
-
let
|
|
3671
|
-
p.forEach((
|
|
3672
|
-
|
|
3673
|
-
}), h(
|
|
3690
|
+
let g = d.errors;
|
|
3691
|
+
p.forEach((j) => {
|
|
3692
|
+
g !== void 0 && (g = g[j]);
|
|
3693
|
+
}), h(g);
|
|
3674
3694
|
}, [d, t]);
|
|
3675
|
-
const
|
|
3676
|
-
return /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${n}${s ? " *" : ""}`, isInvalid:
|
|
3677
|
-
/* @__PURE__ */ a.jsx(
|
|
3695
|
+
const x = m !== void 0;
|
|
3696
|
+
return /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${n}${s ? " *" : ""}`, isInvalid: x, withoutLabel: c, children: [
|
|
3697
|
+
/* @__PURE__ */ a.jsx(G.Check, { id: `check-${t}`, type: o ?? "checkbox", label: `${n}${s ? " *" : ""}`, ...u(t, {
|
|
3678
3698
|
onChange: () => {
|
|
3679
3699
|
r && r.forEach((p) => f(p, null));
|
|
3680
3700
|
}
|
|
3681
|
-
}), isInvalid:
|
|
3682
|
-
m && /* @__PURE__ */ a.jsx(
|
|
3701
|
+
}), isInvalid: x, hidden: i, disabled: l }),
|
|
3702
|
+
m && /* @__PURE__ */ a.jsx(ue, { message: m.message })
|
|
3683
3703
|
] });
|
|
3684
|
-
},
|
|
3685
|
-
const { register:
|
|
3686
|
-
|
|
3687
|
-
const
|
|
3688
|
-
let
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
}),
|
|
3692
|
-
}, [u, n]),
|
|
3704
|
+
}, Ai = ({ InputContainer: e = de, label: t, formField: n, options: r, resetsFields: o, required: s, disabled: i, hidden: l }) => {
|
|
3705
|
+
const { register: c, formState: u, getValues: d, setValue: f, watch: m } = oe(), [h, x] = M(void 0), p = K(() => r, [r]);
|
|
3706
|
+
I(() => {
|
|
3707
|
+
const j = n.split(".");
|
|
3708
|
+
let _ = u.errors;
|
|
3709
|
+
j.forEach((b) => {
|
|
3710
|
+
_ !== void 0 && (_ = _[b]);
|
|
3711
|
+
}), x(_);
|
|
3712
|
+
}, [u, n]), I(() => {
|
|
3693
3713
|
f(n, d(n));
|
|
3694
3714
|
}, [p, n, d, f]);
|
|
3695
|
-
const
|
|
3696
|
-
return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden:
|
|
3697
|
-
p.map((
|
|
3715
|
+
const g = h !== void 0;
|
|
3716
|
+
return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: `${t}${s ? " *" : ""}`, isInvalid: g, children: [
|
|
3717
|
+
p.map((j) => /* @__PURE__ */ a.jsx(G.Check, { id: `radio-${j.id}`, label: j.name, type: "radio", value: j.id ?? "", checked: m(n) === j.id, ...c(n, {
|
|
3698
3718
|
onChange: () => {
|
|
3699
|
-
o && o.forEach((
|
|
3719
|
+
o && o.forEach((_) => f(_, null));
|
|
3700
3720
|
}
|
|
3701
|
-
}), isInvalid:
|
|
3702
|
-
h && /* @__PURE__ */ a.jsx(
|
|
3721
|
+
}), isInvalid: g, hidden: l, disabled: i }, j.id)),
|
|
3722
|
+
h && /* @__PURE__ */ a.jsx(ue, { message: h.message })
|
|
3703
3723
|
] });
|
|
3704
|
-
},
|
|
3705
|
-
const { register:
|
|
3706
|
-
const
|
|
3707
|
-
s ?
|
|
3708
|
-
}, [
|
|
3709
|
-
|
|
3710
|
-
const
|
|
3724
|
+
}, Yi = ({ InputContainer: e = de, formField: t, label: n, resetsFields: r, options: o, isNumber: s, size: i, showClearIcon: l, clearValue: c, noSortOptions: u, required: d, hidden: f, disabled: m, withoutLabel: h }) => {
|
|
3725
|
+
const { register: x, formState: p, getValues: g, setValue: j, watch: _ } = oe(), [b, k] = M(void 0), v = K(() => o.sort((N, R) => u ? 0 : (N.name ?? "").localeCompare(R.name ?? "")), [o, u]), y = S(() => {
|
|
3726
|
+
const N = c ?? null;
|
|
3727
|
+
s ? j(t, N ? Number(N) : null) : j(t, (N == null ? void 0 : N.toString()) ?? "");
|
|
3728
|
+
}, [c, s, j, t]);
|
|
3729
|
+
I(() => {
|
|
3730
|
+
const N = t.split(".");
|
|
3711
3731
|
let R = p.errors;
|
|
3712
|
-
|
|
3713
|
-
R !== void 0 && (R = R[
|
|
3714
|
-
}),
|
|
3715
|
-
}, [p, t]),
|
|
3716
|
-
|
|
3717
|
-
}, [
|
|
3718
|
-
const $ =
|
|
3732
|
+
N.forEach((D) => {
|
|
3733
|
+
R !== void 0 && (R = R[D]);
|
|
3734
|
+
}), k(R);
|
|
3735
|
+
}, [p, t]), I(() => {
|
|
3736
|
+
j(t, g(t));
|
|
3737
|
+
}, [v, t, g, j]);
|
|
3738
|
+
const $ = b !== void 0;
|
|
3719
3739
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: `${n}${d ? " *" : ""}`, hidden: f, withoutLabel: h, isInvalid: $, children: [
|
|
3720
|
-
/* @__PURE__ */ a.jsxs(
|
|
3721
|
-
setValueAs: (
|
|
3740
|
+
/* @__PURE__ */ a.jsxs(G.Select, { size: i, ...x(t, {
|
|
3741
|
+
setValueAs: (N) => s ? N ? parseInt(N, 10) : null : N == null || N === "" ? null : N,
|
|
3722
3742
|
onChange: () => {
|
|
3723
|
-
r && r.forEach((
|
|
3743
|
+
r && r.forEach((N) => j(N, null));
|
|
3724
3744
|
}
|
|
3725
3745
|
}), isInvalid: $, hidden: f, disabled: m, children: [
|
|
3726
3746
|
/* @__PURE__ */ a.jsx("option", { value: "" }),
|
|
3727
|
-
|
|
3747
|
+
v.map((N) => /* @__PURE__ */ a.jsx("option", { value: N.id ?? "", children: N.name }, N.id))
|
|
3728
3748
|
] }),
|
|
3729
|
-
|
|
3730
|
-
|
|
3749
|
+
l && _(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: y, children: /* @__PURE__ */ a.jsx(le, {}) }) }),
|
|
3750
|
+
b && /* @__PURE__ */ a.jsx(ue, { message: b.message })
|
|
3731
3751
|
] }) });
|
|
3732
|
-
},
|
|
3733
|
-
const { register: h, formState:
|
|
3734
|
-
const
|
|
3735
|
-
p(t, (
|
|
3736
|
-
}, [i, p, t]),
|
|
3737
|
-
const
|
|
3738
|
-
let $ =
|
|
3739
|
-
|
|
3740
|
-
$ !== void 0 && ($ = $[
|
|
3741
|
-
}),
|
|
3742
|
-
}, [
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
}, [
|
|
3746
|
-
const
|
|
3747
|
-
return /* @__PURE__ */ a.jsxs(e, { label: `${n}${
|
|
3748
|
-
/* @__PURE__ */ a.jsx(
|
|
3752
|
+
}, Ki = ({ InputContainer: e = de, formField: t, label: n, resetsFields: r, size: o, showClearIcon: s, clearValue: i, required: l, hidden: c, disabled: u, height: d, rows: f, withoutLabel: m }) => {
|
|
3753
|
+
const { register: h, formState: x, setValue: p, watch: g } = oe(), [j, _] = M(void 0), b = S(() => {
|
|
3754
|
+
const y = i ?? null;
|
|
3755
|
+
p(t, (y == null ? void 0 : y.toString()) ?? "");
|
|
3756
|
+
}, [i, p, t]), k = S(() => {
|
|
3757
|
+
const y = t.split(".");
|
|
3758
|
+
let $ = x.errors;
|
|
3759
|
+
y.forEach((N) => {
|
|
3760
|
+
$ !== void 0 && ($ = $[N]);
|
|
3761
|
+
}), _($);
|
|
3762
|
+
}, [x, t]);
|
|
3763
|
+
I(() => {
|
|
3764
|
+
k();
|
|
3765
|
+
}, [k]);
|
|
3766
|
+
const v = j !== void 0;
|
|
3767
|
+
return /* @__PURE__ */ a.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: m, isInvalid: v, children: [
|
|
3768
|
+
/* @__PURE__ */ a.jsx(G.Control, { as: "textarea", size: o, ...h(t, {
|
|
3749
3769
|
onChange: () => {
|
|
3750
|
-
r && r.forEach((
|
|
3770
|
+
r && r.forEach((y) => p(y, null));
|
|
3751
3771
|
}
|
|
3752
|
-
}), isInvalid:
|
|
3772
|
+
}), isInvalid: v, hidden: c, disabled: u, rows: f, style: {
|
|
3753
3773
|
height: d ? `${d}px !important` : void 0,
|
|
3754
3774
|
minHeight: d ? `${d}px !important` : void 0
|
|
3755
3775
|
} }),
|
|
3756
|
-
s &&
|
|
3757
|
-
|
|
3776
|
+
s && g(t) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: b, children: /* @__PURE__ */ a.jsx(le, {}) }) }),
|
|
3777
|
+
j && /* @__PURE__ */ a.jsx(ue, { message: j.message })
|
|
3758
3778
|
] });
|
|
3759
|
-
},
|
|
3760
|
-
const { register: h, formState:
|
|
3761
|
-
const
|
|
3762
|
-
t === "number" ? p(n,
|
|
3763
|
-
}, [
|
|
3764
|
-
const
|
|
3765
|
-
let $ =
|
|
3766
|
-
|
|
3767
|
-
$ !== void 0 && ($ = $[
|
|
3768
|
-
}),
|
|
3769
|
-
}, [
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
}, [
|
|
3773
|
-
const
|
|
3774
|
-
return /* @__PURE__ */ a.jsxs(e, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid:
|
|
3775
|
-
/* @__PURE__ */ a.jsx(
|
|
3776
|
-
setValueAs: (
|
|
3779
|
+
}, Bi = ({ InputContainer: e = de, type: t, formField: n, label: r, placeholder: o, size: s, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: f, withoutLabel: m }) => {
|
|
3780
|
+
const { register: h, formState: x, setValue: p, watch: g } = oe(), [j, _] = M(void 0), b = S(() => {
|
|
3781
|
+
const y = c ?? null;
|
|
3782
|
+
t === "number" ? p(n, y ? Number(y) : null) : p(n, (y == null ? void 0 : y.toString()) ?? "");
|
|
3783
|
+
}, [c, t, p, n]), k = S(() => {
|
|
3784
|
+
const y = n.split(".");
|
|
3785
|
+
let $ = x.errors;
|
|
3786
|
+
y.forEach((N) => {
|
|
3787
|
+
$ !== void 0 && ($ = $[N]);
|
|
3788
|
+
}), _($);
|
|
3789
|
+
}, [x, n]);
|
|
3790
|
+
I(() => {
|
|
3791
|
+
k();
|
|
3792
|
+
}, [k]);
|
|
3793
|
+
const v = j !== void 0;
|
|
3794
|
+
return /* @__PURE__ */ a.jsxs(e, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: v, children: [
|
|
3795
|
+
/* @__PURE__ */ a.jsx(G.Control, { type: t, placeholder: o ?? r, size: s, ...h(n, {
|
|
3796
|
+
setValueAs: (y) => t === "number" ? y ? parseInt(y, 10) : null : y == null || y === "" ? null : y,
|
|
3777
3797
|
onChange: () => {
|
|
3778
|
-
i && i.forEach((
|
|
3798
|
+
i && i.forEach((y) => p(y, null));
|
|
3779
3799
|
}
|
|
3780
|
-
}), isInvalid:
|
|
3781
|
-
|
|
3782
|
-
|
|
3800
|
+
}), isInvalid: v, hidden: d, disabled: f }),
|
|
3801
|
+
l && g(n) && /* @__PURE__ */ a.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: b, children: /* @__PURE__ */ a.jsx(le, {}) }) }),
|
|
3802
|
+
j && /* @__PURE__ */ a.jsx(ue, { message: j.message })
|
|
3783
3803
|
] });
|
|
3784
|
-
},
|
|
3785
|
-
const { register:
|
|
3786
|
-
const
|
|
3787
|
-
let
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
}),
|
|
3791
|
-
}, [
|
|
3792
|
-
|
|
3804
|
+
}, qi = ({ InputContainer: e = de, formField: t, label: n, size: r, defaultSelection: o, resetsFields: s, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: f, onClickSelectedItem: m, texts: h, isLoading: x, withoutLabel: p, additionalColumns: g }) => {
|
|
3805
|
+
const j = K(() => o, [o]), { register: _, formState: b, setValue: k } = oe(), [v, y] = M(j), [$, N] = M(void 0), [R, D] = M(!1), [E, P] = M(!1), Y = S(() => {
|
|
3806
|
+
const F = t.split(".");
|
|
3807
|
+
let fe = b.errors;
|
|
3808
|
+
F.forEach((pt) => {
|
|
3809
|
+
fe !== void 0 && (fe = fe[pt]);
|
|
3810
|
+
}), N(fe);
|
|
3811
|
+
}, [b, t]), V = S((F) => {
|
|
3812
|
+
y(F);
|
|
3793
3813
|
}, []);
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
let S = null;
|
|
3798
|
-
i ? S = x != null && x.id ? parseInt(x.id.toString(), 10) : null : S = (x == null ? void 0 : x.id) === null || (x == null ? void 0 : x.id) === void 0 || x.id === "" ? null : x.id, j(t, S, {
|
|
3814
|
+
I(() => {
|
|
3815
|
+
let F = null;
|
|
3816
|
+
i ? F = v != null && v.id ? parseInt(v.id.toString(), 10) : null : F = (v == null ? void 0 : v.id) === null || (v == null ? void 0 : v.id) === void 0 || v.id === "" ? null : v.id, k(t, F, {
|
|
3799
3817
|
shouldDirty: !0,
|
|
3800
|
-
shouldValidate:
|
|
3818
|
+
shouldValidate: E
|
|
3801
3819
|
});
|
|
3802
|
-
}, [
|
|
3803
|
-
|
|
3804
|
-
}, [
|
|
3805
|
-
|
|
3806
|
-
}, [
|
|
3807
|
-
const
|
|
3808
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: `${n}${
|
|
3809
|
-
/* @__PURE__ */ a.jsxs(
|
|
3810
|
-
|
|
3820
|
+
}, [v, t, k, i, E]), I(() => {
|
|
3821
|
+
Y();
|
|
3822
|
+
}, [Y]), I(() => {
|
|
3823
|
+
b.isSubmitted && P(!0);
|
|
3824
|
+
}, [b]);
|
|
3825
|
+
const z = $ !== void 0;
|
|
3826
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: z, inputContainerClassName: R ? "shadow" : "", children: [
|
|
3827
|
+
/* @__PURE__ */ a.jsxs(G.Select, { size: r, onMouseDown: (F) => {
|
|
3828
|
+
F.currentTarget.focus(), F.preventDefault();
|
|
3811
3829
|
}, onClick: () => {
|
|
3812
|
-
|
|
3813
|
-
}, ...
|
|
3814
|
-
setValueAs: (
|
|
3830
|
+
D(!0);
|
|
3831
|
+
}, ..._(t, {
|
|
3832
|
+
setValueAs: (F) => i ? F ? parseInt(F, 10) : null : F == null || F === "" ? null : F,
|
|
3815
3833
|
onChange: () => {
|
|
3816
|
-
s && s.forEach((
|
|
3834
|
+
s && s.forEach((F) => k(F, null));
|
|
3817
3835
|
}
|
|
3818
|
-
}), isInvalid:
|
|
3836
|
+
}), isInvalid: z, className: w({ "luminus-dropdown-picker-disabled": u }), hidden: c, children: [
|
|
3819
3837
|
/* @__PURE__ */ a.jsx("option", { value: "" }),
|
|
3820
|
-
|
|
3821
|
-
|
|
3838
|
+
j && /* @__PURE__ */ a.jsx("option", { value: j.id ?? "", children: j.name }),
|
|
3839
|
+
v && /* @__PURE__ */ a.jsx("option", { value: v.id ?? "", children: v.name })
|
|
3822
3840
|
] }),
|
|
3823
|
-
|
|
3824
|
-
/* @__PURE__ */ a.jsx(
|
|
3825
|
-
|
|
3826
|
-
}, onClickSelectedItem: m, onSearchQueryChange: f, texts: h,
|
|
3841
|
+
$ && /* @__PURE__ */ a.jsx(ue, { message: $.message }),
|
|
3842
|
+
/* @__PURE__ */ a.jsx(Hn, { show: R, onCancel: () => D(!1), items: d, currentSelection: v, onSelectionChange: (F) => {
|
|
3843
|
+
D(!1), V(F);
|
|
3844
|
+
}, onClickSelectedItem: m, onSearchQueryChange: f, texts: h, additionalColumns: g, isLoading: x, disabled: u })
|
|
3827
3845
|
] }) });
|
|
3828
|
-
},
|
|
3829
|
-
const { watch: m, setValue: h, register:
|
|
3846
|
+
}, Hi = ({ InputContainer: e = de, label: t, formField: n, hidden: r, required: o, placeholder: s, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: f }) => {
|
|
3847
|
+
const { watch: m, setValue: h, register: x, formState: p } = oe(), [g, j] = M(void 0), _ = S(() => {
|
|
3830
3848
|
h(n, "");
|
|
3831
|
-
}, [h, n]),
|
|
3832
|
-
const
|
|
3833
|
-
let
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
}), y
|
|
3849
|
+
}, [h, n]), b = S(() => {
|
|
3850
|
+
const v = n.split(".");
|
|
3851
|
+
let y = p.errors;
|
|
3852
|
+
v.forEach(($) => {
|
|
3853
|
+
y !== void 0 && (y = y[$]);
|
|
3854
|
+
}), j(y);
|
|
3837
3855
|
}, [p, n]);
|
|
3838
|
-
|
|
3839
|
-
const
|
|
3840
|
-
return /* @__PURE__ */ a.jsxs(e, { label: `${t}${o ? "*" : ""}`, hidden: r, withoutLabel: f, isInvalid:
|
|
3841
|
-
/* @__PURE__ */ a.jsx(
|
|
3856
|
+
I(b, [b]);
|
|
3857
|
+
const k = g !== void 0;
|
|
3858
|
+
return /* @__PURE__ */ a.jsxs(e, { label: `${t}${o ? "*" : ""}`, hidden: r, withoutLabel: f, isInvalid: k, children: [
|
|
3859
|
+
/* @__PURE__ */ a.jsx(Nn, { type: "file", multiple: u, accept: d.join(", "), placeholder: s ?? t, isInvalid: k, hidden: r, disabled: i, ...x(n, {
|
|
3842
3860
|
onChange: () => {
|
|
3843
|
-
|
|
3861
|
+
c && c.forEach((v) => h(v, null));
|
|
3844
3862
|
}
|
|
3845
3863
|
}) }),
|
|
3846
|
-
|
|
3847
|
-
|
|
3864
|
+
l && m(n) && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "icon-button", onClick: _, children: /* @__PURE__ */ a.jsx(le, {}) }) }),
|
|
3865
|
+
g && /* @__PURE__ */ a.jsx(ue, { message: g.message })
|
|
3848
3866
|
] });
|
|
3849
|
-
},
|
|
3850
|
-
const { formState: n } =
|
|
3851
|
-
return
|
|
3867
|
+
}, Gi = ({ children: e, onStorno: t }) => {
|
|
3868
|
+
const { formState: n } = oe(), [r, o] = M(!1);
|
|
3869
|
+
return I(() => {
|
|
3852
3870
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
3853
3871
|
}, [n]), r ? /* @__PURE__ */ a.jsx(Ta, { onStorno: t, children: e }) : null;
|
|
3854
|
-
},
|
|
3855
|
-
tabs:
|
|
3872
|
+
}, Vi = ({ cell: { value: e } }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e ? /* @__PURE__ */ a.jsx(yr, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ a.jsx(a.Fragment, {}) }), mi = "_tabs_odf94_1", hi = "_no-content_odf94_21", pi = "_full-height-no-overflow_odf94_24", He = {
|
|
3873
|
+
tabs: mi,
|
|
3856
3874
|
"no-content": "_no-content_odf94_21",
|
|
3857
|
-
noContent:
|
|
3875
|
+
noContent: hi,
|
|
3858
3876
|
"full-height-no-overflow": "_full-height-no-overflow_odf94_24",
|
|
3859
|
-
fullHeightNoOverflow:
|
|
3860
|
-
},
|
|
3861
|
-
[
|
|
3862
|
-
[
|
|
3863
|
-
}), ...o, children: e }),
|
|
3877
|
+
fullHeightNoOverflow: pi
|
|
3878
|
+
}, Qi = ({ children: e, className: t, noContent: n, fullHeightNoOverflow: r, ...o }) => /* @__PURE__ */ a.jsx(Yn, { className: w(`luminus-tabs ${t ?? ""}`, He.tabs, {
|
|
3879
|
+
[He.noContent]: n,
|
|
3880
|
+
[He.fullHeightNoOverflow]: r
|
|
3881
|
+
}), ...o, children: e }), Xi = ({ children: e, ...t }) => {
|
|
3864
3882
|
const { className: n, ...r } = t;
|
|
3865
|
-
return /* @__PURE__ */ a.jsx(
|
|
3883
|
+
return /* @__PURE__ */ a.jsx(_a, { className: w("text-primary", {
|
|
3866
3884
|
[n ?? ""]: n
|
|
3867
3885
|
}), ...r, children: e });
|
|
3868
3886
|
};
|
|
3869
3887
|
export {
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3888
|
+
_i as ApiFileDownloadButton,
|
|
3889
|
+
Ii as AppSearch,
|
|
3890
|
+
yr as AvatarIcon,
|
|
3891
|
+
$i as Badge,
|
|
3892
|
+
Di as Card,
|
|
3893
|
+
Pi as CheckInput,
|
|
3894
|
+
Ei as Collapse,
|
|
3895
|
+
Kn as ContextButton,
|
|
3896
|
+
Cs as Dropdown,
|
|
3897
|
+
Si as DropdownDivider,
|
|
3898
|
+
vs as DropdownItem,
|
|
3899
|
+
Ri as DropdownPicker,
|
|
3900
|
+
ys as DropdownToggle,
|
|
3901
|
+
Bn as FileUploadContextButton,
|
|
3902
|
+
Oi as FileUploadDropdownItem,
|
|
3885
3903
|
Ta as FloatingFormSubmit,
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3904
|
+
Le as FloatingLabelInput,
|
|
3905
|
+
Ci as HomeDashboard,
|
|
3906
|
+
Li as HookFormCheckInput,
|
|
3907
|
+
qi as HookFormDropdownPicker,
|
|
3908
|
+
Hi as HookFormFileInput,
|
|
3909
|
+
Gi as HookFormFloatingSubmit,
|
|
3910
|
+
Ai as HookFormRadioInput,
|
|
3911
|
+
Yi as HookFormSelectInput,
|
|
3912
|
+
Ki as HookFormTextAreaInput,
|
|
3913
|
+
Bi as HookFormTextInput,
|
|
3914
|
+
Mi as HtmlTooltip,
|
|
3915
|
+
ue as InvalidFeedback,
|
|
3916
|
+
ec as Loading,
|
|
3917
|
+
ki as MonthPicker,
|
|
3918
|
+
Ti as PhotoLibrary,
|
|
3919
|
+
ai as PhotoLightbox,
|
|
3920
|
+
It as PrimaryButton,
|
|
3921
|
+
de as RowLabelInput,
|
|
3922
|
+
Fi as SelectInput,
|
|
3923
|
+
Hn as SimplePicker,
|
|
3906
3924
|
br as SimpleToggle,
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3925
|
+
nc as SimpleTooltip,
|
|
3926
|
+
Xi as Tab,
|
|
3927
|
+
Qi as Tabs,
|
|
3928
|
+
Wi as TextInput,
|
|
3929
|
+
B as Typography,
|
|
3930
|
+
Ji as UserAvatarToggle,
|
|
3931
|
+
Vi as UserAvatarValueFormat,
|
|
3932
|
+
Ni as YearPicker
|
|
3915
3933
|
};
|