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