react-luminus-components 1.2.85 → 1.2.87
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 +61 -45
- package/dist/{NoInputContainer-DJGe4SUL.js → NoInputContainer-DRb1v547.js} +386 -386
- package/dist/{NoInputContainer-BSBhKnX2.cjs → NoInputContainer-na-dQnr4.cjs} +15 -15
- package/dist/{PrimaryButton-DAqVRTFG.cjs → PrimaryButton-BZ3ksdv0.cjs} +1 -1
- package/dist/{PrimaryButton-A-7Gzqni.js → PrimaryButton-DG9AgtYX.js} +1 -1
- package/dist/{SimpleTooltip-DHRI-sSf.cjs → SimpleTooltip-CT1YSXK2.cjs} +1 -1
- package/dist/{SimpleTooltip-B6AR8fQS.js → SimpleTooltip-DJdq14h2.js} +1 -1
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +4 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +2 -0
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +2 -0
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +820 -795
- package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +1 -0
- package/dist/searchUtils--egT-ac7.js +7 -0
- package/dist/searchUtils-CN6rluQW.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{useConfirm-xDsVbxf3.cjs → useConfirm-BEmSDfJg.cjs} +1 -1
- package/dist/{useConfirm-FNcQ7y-i.js → useConfirm-DOcPbsdI.js} +1 -1
- package/dist/{usePermissions-Dp1XGulH.cjs → usePermissions-Cks0h2bG.cjs} +1 -1
- package/dist/{usePermissions-OBKG1rFt.js → usePermissions-RumK715m.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +22 -23
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as
|
|
2
|
-
import { ai as
|
|
1
|
+
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as Kt, L as Ne, M as qe, O as jt, N as Nr, Q as oe, R as $r, U as Ir, V as Qt, W as ut, X as dt, Y as z, Z as Sr, _ as Xt, $ as Tr, a0 as Jt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Zt, a6 as xe, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as Te, ae as en, af as ye, ag as qr } from "./NoInputContainer-DRb1v547.js";
|
|
2
|
+
import { ai as fl, ah as pl } from "./NoInputContainer-DRb1v547.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import
|
|
5
|
-
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as
|
|
4
|
+
import Z, { useCallback as E, useMemo as Q, useEffect as M, useRef as Y, useState as D, useReducer as tn, useContext as q, Component as Lr, isValidElement as Yr, Suspense as Br, createElement as Hr } from "react";
|
|
5
|
+
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as Ae, P as Ct, M as Fe, L as Kr } from "./PrimaryButton-DG9AgtYX.js";
|
|
6
6
|
import { m as Qr, a as on } from "./latinize-3MO2uNV7.js";
|
|
7
7
|
import { useFormContext as he, Controller as sn } from "react-hook-form";
|
|
8
8
|
import { u as an, a as cn, b as ln } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { S as wl } from "./SimpleTooltip-DJdq14h2.js";
|
|
10
|
+
import { s as Xr } from "./searchUtils--egT-ac7.js";
|
|
11
|
+
const Pc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
|
+
const r = E(async () => {
|
|
12
13
|
var l;
|
|
13
14
|
const o = await n();
|
|
14
15
|
if (!o)
|
|
@@ -17,7 +18,7 @@ const Mc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
|
17
18
|
i.href = a, i.setAttribute("download", e), document.body.appendChild(i), i.click(), (l = i.parentNode) == null || l.removeChild(i);
|
|
18
19
|
}, [n, e]);
|
|
19
20
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: t });
|
|
20
|
-
},
|
|
21
|
+
}, Jr = ({ className: n, ...e }) => /* @__PURE__ */ s.jsxs("div", { className: x("luminus-loading", le.loading, le.loadingBlock, le.loadingBlock), ...e, children: [
|
|
21
22
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary"), role: "status" }),
|
|
22
23
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary", le.second), role: "status" }),
|
|
23
24
|
/* @__PURE__ */ s.jsx("div", { className: x("spinner-grow", le.spinnerGrow, "text-primary", le.third), role: "status" })
|
|
@@ -37,9 +38,9 @@ function un(n, e) {
|
|
|
37
38
|
r
|
|
38
39
|
), t);
|
|
39
40
|
}
|
|
40
|
-
let
|
|
41
|
+
let Zr = {};
|
|
41
42
|
function Ge() {
|
|
42
|
-
return
|
|
43
|
+
return Zr;
|
|
43
44
|
}
|
|
44
45
|
function Ie(n, e) {
|
|
45
46
|
var l, c, u, d;
|
|
@@ -75,31 +76,31 @@ function $t(n) {
|
|
|
75
76
|
);
|
|
76
77
|
return t.setUTCFullYear(e.getFullYear()), +n - +t;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function eo(n, e) {
|
|
79
80
|
const t = Nt(n), r = Nt(e), o = +t - $t(t), a = +r - $t(r);
|
|
80
81
|
return Math.round((o - a) / Qr);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function to(n) {
|
|
83
84
|
const e = dn(n), t = ie(n, 0);
|
|
84
85
|
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), Le(t);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function no(n, e) {
|
|
87
88
|
return un(n, e * 12);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function ro(n) {
|
|
90
91
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
if (!
|
|
93
|
+
function oo(n) {
|
|
94
|
+
if (!ro(n) && typeof n != "number")
|
|
94
95
|
return !1;
|
|
95
96
|
const e = re(n);
|
|
96
97
|
return !isNaN(Number(e));
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function so(n) {
|
|
99
100
|
const e = re(n), t = ie(n, 0);
|
|
100
101
|
return t.setFullYear(e.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const ao = {
|
|
103
104
|
lessThanXSeconds: {
|
|
104
105
|
one: "less than a second",
|
|
105
106
|
other: "less than {{count}} seconds"
|
|
@@ -161,9 +162,9 @@ const so = {
|
|
|
161
162
|
one: "almost 1 year",
|
|
162
163
|
other: "almost {{count}} years"
|
|
163
164
|
}
|
|
164
|
-
},
|
|
165
|
+
}, io = (n, e, t) => {
|
|
165
166
|
let r;
|
|
166
|
-
const o =
|
|
167
|
+
const o = ao[n];
|
|
167
168
|
return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
168
169
|
};
|
|
169
170
|
function Je(n) {
|
|
@@ -172,42 +173,42 @@ function Je(n) {
|
|
|
172
173
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
|
-
const
|
|
176
|
+
const co = {
|
|
176
177
|
full: "EEEE, MMMM do, y",
|
|
177
178
|
long: "MMMM do, y",
|
|
178
179
|
medium: "MMM d, y",
|
|
179
180
|
short: "MM/dd/yyyy"
|
|
180
|
-
},
|
|
181
|
+
}, lo = {
|
|
181
182
|
full: "h:mm:ss a zzzz",
|
|
182
183
|
long: "h:mm:ss a z",
|
|
183
184
|
medium: "h:mm:ss a",
|
|
184
185
|
short: "h:mm a"
|
|
185
|
-
},
|
|
186
|
+
}, uo = {
|
|
186
187
|
full: "{{date}} 'at' {{time}}",
|
|
187
188
|
long: "{{date}} 'at' {{time}}",
|
|
188
189
|
medium: "{{date}}, {{time}}",
|
|
189
190
|
short: "{{date}}, {{time}}"
|
|
190
|
-
},
|
|
191
|
+
}, ho = {
|
|
191
192
|
date: Je({
|
|
192
|
-
formats:
|
|
193
|
+
formats: co,
|
|
193
194
|
defaultWidth: "full"
|
|
194
195
|
}),
|
|
195
196
|
time: Je({
|
|
196
|
-
formats:
|
|
197
|
+
formats: lo,
|
|
197
198
|
defaultWidth: "full"
|
|
198
199
|
}),
|
|
199
200
|
dateTime: Je({
|
|
200
|
-
formats:
|
|
201
|
+
formats: uo,
|
|
201
202
|
defaultWidth: "full"
|
|
202
203
|
})
|
|
203
|
-
},
|
|
204
|
+
}, mo = {
|
|
204
205
|
lastWeek: "'last' eeee 'at' p",
|
|
205
206
|
yesterday: "'yesterday at' p",
|
|
206
207
|
today: "'today at' p",
|
|
207
208
|
tomorrow: "'tomorrow at' p",
|
|
208
209
|
nextWeek: "eeee 'at' p",
|
|
209
210
|
other: "P"
|
|
210
|
-
},
|
|
211
|
+
}, fo = (n, e, t, r) => mo[n];
|
|
211
212
|
function je(n) {
|
|
212
213
|
return (e, t) => {
|
|
213
214
|
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
@@ -223,15 +224,15 @@ function je(n) {
|
|
|
223
224
|
return o[a];
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
|
-
const
|
|
227
|
+
const po = {
|
|
227
228
|
narrow: ["B", "A"],
|
|
228
229
|
abbreviated: ["BC", "AD"],
|
|
229
230
|
wide: ["Before Christ", "Anno Domini"]
|
|
230
|
-
},
|
|
231
|
+
}, go = {
|
|
231
232
|
narrow: ["1", "2", "3", "4"],
|
|
232
233
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
233
234
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
234
|
-
},
|
|
235
|
+
}, wo = {
|
|
235
236
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
236
237
|
abbreviated: [
|
|
237
238
|
"Jan",
|
|
@@ -261,7 +262,7 @@ const fo = {
|
|
|
261
262
|
"November",
|
|
262
263
|
"December"
|
|
263
264
|
]
|
|
264
|
-
},
|
|
265
|
+
}, xo = {
|
|
265
266
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
266
267
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
267
268
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -274,7 +275,7 @@ const fo = {
|
|
|
274
275
|
"Friday",
|
|
275
276
|
"Saturday"
|
|
276
277
|
]
|
|
277
|
-
},
|
|
278
|
+
}, yo = {
|
|
278
279
|
narrow: {
|
|
279
280
|
am: "a",
|
|
280
281
|
pm: "p",
|
|
@@ -305,7 +306,7 @@ const fo = {
|
|
|
305
306
|
evening: "evening",
|
|
306
307
|
night: "night"
|
|
307
308
|
}
|
|
308
|
-
},
|
|
309
|
+
}, vo = {
|
|
309
310
|
narrow: {
|
|
310
311
|
am: "a",
|
|
311
312
|
pm: "p",
|
|
@@ -336,7 +337,7 @@ const fo = {
|
|
|
336
337
|
evening: "in the evening",
|
|
337
338
|
night: "at night"
|
|
338
339
|
}
|
|
339
|
-
},
|
|
340
|
+
}, bo = (n, e) => {
|
|
340
341
|
const t = Number(n), r = t % 100;
|
|
341
342
|
if (r > 20 || r < 10)
|
|
342
343
|
switch (r % 10) {
|
|
@@ -348,29 +349,29 @@ const fo = {
|
|
|
348
349
|
return t + "rd";
|
|
349
350
|
}
|
|
350
351
|
return t + "th";
|
|
351
|
-
},
|
|
352
|
-
ordinalNumber:
|
|
352
|
+
}, _o = {
|
|
353
|
+
ordinalNumber: bo,
|
|
353
354
|
era: je({
|
|
354
|
-
values:
|
|
355
|
+
values: po,
|
|
355
356
|
defaultWidth: "wide"
|
|
356
357
|
}),
|
|
357
358
|
quarter: je({
|
|
358
|
-
values:
|
|
359
|
+
values: go,
|
|
359
360
|
defaultWidth: "wide",
|
|
360
361
|
argumentCallback: (n) => n - 1
|
|
361
362
|
}),
|
|
362
363
|
month: je({
|
|
363
|
-
values:
|
|
364
|
+
values: wo,
|
|
364
365
|
defaultWidth: "wide"
|
|
365
366
|
}),
|
|
366
367
|
day: je({
|
|
367
|
-
values:
|
|
368
|
+
values: xo,
|
|
368
369
|
defaultWidth: "wide"
|
|
369
370
|
}),
|
|
370
371
|
dayPeriod: je({
|
|
371
|
-
values:
|
|
372
|
+
values: yo,
|
|
372
373
|
defaultWidth: "wide",
|
|
373
|
-
formattingValues:
|
|
374
|
+
formattingValues: vo,
|
|
374
375
|
defaultFormattingWidth: "wide"
|
|
375
376
|
})
|
|
376
377
|
};
|
|
@@ -379,9 +380,9 @@ function ke(n) {
|
|
|
379
380
|
const r = t.width, o = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], a = e.match(o);
|
|
380
381
|
if (!a)
|
|
381
382
|
return null;
|
|
382
|
-
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ?
|
|
383
|
+
const i = a[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? ko(l, (h) => h.test(i)) : (
|
|
383
384
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
384
|
-
|
|
385
|
+
jo(l, (h) => h.test(i))
|
|
385
386
|
);
|
|
386
387
|
let u;
|
|
387
388
|
u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? (
|
|
@@ -392,17 +393,17 @@ function ke(n) {
|
|
|
392
393
|
return { value: u, rest: d };
|
|
393
394
|
};
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
+
function jo(n, e) {
|
|
396
397
|
for (const t in n)
|
|
397
398
|
if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t]))
|
|
398
399
|
return t;
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function ko(n, e) {
|
|
401
402
|
for (let t = 0; t < n.length; t++)
|
|
402
403
|
if (e(n[t]))
|
|
403
404
|
return t;
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function Co(n) {
|
|
406
407
|
return (e, t = {}) => {
|
|
407
408
|
const r = e.match(n.matchPattern);
|
|
408
409
|
if (!r)
|
|
@@ -416,23 +417,23 @@ function ko(n) {
|
|
|
416
417
|
return { value: i, rest: l };
|
|
417
418
|
};
|
|
418
419
|
}
|
|
419
|
-
const
|
|
420
|
+
const No = /^(\d+)(th|st|nd|rd)?/i, $o = /\d+/i, Io = {
|
|
420
421
|
narrow: /^(b|a)/i,
|
|
421
422
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
422
423
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
423
|
-
}, Io = {
|
|
424
|
-
any: [/^b/i, /^(a|c)/i]
|
|
425
424
|
}, So = {
|
|
425
|
+
any: [/^b/i, /^(a|c)/i]
|
|
426
|
+
}, To = {
|
|
426
427
|
narrow: /^[1234]/i,
|
|
427
428
|
abbreviated: /^q[1234]/i,
|
|
428
429
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
429
|
-
}, To = {
|
|
430
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
431
430
|
}, Eo = {
|
|
431
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
432
|
+
}, Oo = {
|
|
432
433
|
narrow: /^[jfmasond]/i,
|
|
433
434
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
434
435
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
435
|
-
},
|
|
436
|
+
}, Mo = {
|
|
436
437
|
narrow: [
|
|
437
438
|
/^j/i,
|
|
438
439
|
/^f/i,
|
|
@@ -461,18 +462,18 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, No = /\d+/i, $o = {
|
|
|
461
462
|
/^n/i,
|
|
462
463
|
/^d/i
|
|
463
464
|
]
|
|
464
|
-
},
|
|
465
|
+
}, Do = {
|
|
465
466
|
narrow: /^[smtwf]/i,
|
|
466
467
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
467
468
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
468
469
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
469
|
-
},
|
|
470
|
+
}, Po = {
|
|
470
471
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
471
472
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
472
|
-
},
|
|
473
|
+
}, Ao = {
|
|
473
474
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
474
475
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
475
|
-
},
|
|
476
|
+
}, Fo = {
|
|
476
477
|
any: {
|
|
477
478
|
am: /^a/i,
|
|
478
479
|
pm: /^p/i,
|
|
@@ -483,61 +484,61 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, No = /\d+/i, $o = {
|
|
|
483
484
|
evening: /evening/i,
|
|
484
485
|
night: /night/i
|
|
485
486
|
}
|
|
486
|
-
},
|
|
487
|
-
ordinalNumber:
|
|
488
|
-
matchPattern:
|
|
489
|
-
parsePattern:
|
|
487
|
+
}, Wo = {
|
|
488
|
+
ordinalNumber: Co({
|
|
489
|
+
matchPattern: No,
|
|
490
|
+
parsePattern: $o,
|
|
490
491
|
valueCallback: (n) => parseInt(n, 10)
|
|
491
492
|
}),
|
|
492
493
|
era: ke({
|
|
493
|
-
matchPatterns:
|
|
494
|
+
matchPatterns: Io,
|
|
494
495
|
defaultMatchWidth: "wide",
|
|
495
|
-
parsePatterns:
|
|
496
|
+
parsePatterns: So,
|
|
496
497
|
defaultParseWidth: "any"
|
|
497
498
|
}),
|
|
498
499
|
quarter: ke({
|
|
499
|
-
matchPatterns:
|
|
500
|
+
matchPatterns: To,
|
|
500
501
|
defaultMatchWidth: "wide",
|
|
501
|
-
parsePatterns:
|
|
502
|
+
parsePatterns: Eo,
|
|
502
503
|
defaultParseWidth: "any",
|
|
503
504
|
valueCallback: (n) => n + 1
|
|
504
505
|
}),
|
|
505
506
|
month: ke({
|
|
506
|
-
matchPatterns:
|
|
507
|
+
matchPatterns: Oo,
|
|
507
508
|
defaultMatchWidth: "wide",
|
|
508
|
-
parsePatterns:
|
|
509
|
+
parsePatterns: Mo,
|
|
509
510
|
defaultParseWidth: "any"
|
|
510
511
|
}),
|
|
511
512
|
day: ke({
|
|
512
|
-
matchPatterns:
|
|
513
|
+
matchPatterns: Do,
|
|
513
514
|
defaultMatchWidth: "wide",
|
|
514
|
-
parsePatterns:
|
|
515
|
+
parsePatterns: Po,
|
|
515
516
|
defaultParseWidth: "any"
|
|
516
517
|
}),
|
|
517
518
|
dayPeriod: ke({
|
|
518
|
-
matchPatterns:
|
|
519
|
+
matchPatterns: Ao,
|
|
519
520
|
defaultMatchWidth: "any",
|
|
520
|
-
parsePatterns:
|
|
521
|
+
parsePatterns: Fo,
|
|
521
522
|
defaultParseWidth: "any"
|
|
522
523
|
})
|
|
523
|
-
},
|
|
524
|
+
}, Ro = {
|
|
524
525
|
code: "en-US",
|
|
525
|
-
formatDistance:
|
|
526
|
-
formatLong:
|
|
527
|
-
formatRelative:
|
|
528
|
-
localize:
|
|
529
|
-
match:
|
|
526
|
+
formatDistance: io,
|
|
527
|
+
formatLong: ho,
|
|
528
|
+
formatRelative: fo,
|
|
529
|
+
localize: _o,
|
|
530
|
+
match: Wo,
|
|
530
531
|
options: {
|
|
531
532
|
weekStartsOn: 0,
|
|
532
533
|
firstWeekContainsDate: 1
|
|
533
534
|
}
|
|
534
535
|
};
|
|
535
|
-
function
|
|
536
|
+
function qo(n) {
|
|
536
537
|
const e = re(n);
|
|
537
|
-
return
|
|
538
|
+
return eo(e, so(e)) + 1;
|
|
538
539
|
}
|
|
539
540
|
function Lo(n) {
|
|
540
|
-
const e = re(n), t = +Le(e) - +
|
|
541
|
+
const e = re(n), t = +Le(e) - +to(e);
|
|
541
542
|
return Math.round(t / on) + 1;
|
|
542
543
|
}
|
|
543
544
|
function hn(n, e) {
|
|
@@ -549,16 +550,16 @@ function hn(n, e) {
|
|
|
549
550
|
const u = Ie(c, e);
|
|
550
551
|
return t.getTime() >= l.getTime() ? r + 1 : t.getTime() >= u.getTime() ? r : r - 1;
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function Yo(n, e) {
|
|
553
554
|
var l, c, u, d;
|
|
554
555
|
const t = Ge(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = hn(n, e), a = ie(n, 0);
|
|
555
556
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Ie(a, e);
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
const t = re(n), r = +Ie(t, e) - +
|
|
558
|
+
function Bo(n, e) {
|
|
559
|
+
const t = re(n), r = +Ie(t, e) - +Yo(t, e);
|
|
559
560
|
return Math.round(r / on) + 1;
|
|
560
561
|
}
|
|
561
|
-
function
|
|
562
|
+
function L(n, e) {
|
|
562
563
|
const t = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(e, "0");
|
|
563
564
|
return t + r;
|
|
564
565
|
}
|
|
@@ -566,16 +567,16 @@ const ue = {
|
|
|
566
567
|
// Year
|
|
567
568
|
y(n, e) {
|
|
568
569
|
const t = n.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
569
|
-
return
|
|
570
|
+
return L(e === "yy" ? r % 100 : r, e.length);
|
|
570
571
|
},
|
|
571
572
|
// Month
|
|
572
573
|
M(n, e) {
|
|
573
574
|
const t = n.getMonth();
|
|
574
|
-
return e === "M" ? String(t + 1) :
|
|
575
|
+
return e === "M" ? String(t + 1) : L(t + 1, 2);
|
|
575
576
|
},
|
|
576
577
|
// Day of the month
|
|
577
578
|
d(n, e) {
|
|
578
|
-
return
|
|
579
|
+
return L(n.getDate(), e.length);
|
|
579
580
|
},
|
|
580
581
|
// AM or PM
|
|
581
582
|
a(n, e) {
|
|
@@ -595,28 +596,28 @@ const ue = {
|
|
|
595
596
|
},
|
|
596
597
|
// Hour [1-12]
|
|
597
598
|
h(n, e) {
|
|
598
|
-
return
|
|
599
|
+
return L(n.getHours() % 12 || 12, e.length);
|
|
599
600
|
},
|
|
600
601
|
// Hour [0-23]
|
|
601
602
|
H(n, e) {
|
|
602
|
-
return
|
|
603
|
+
return L(n.getHours(), e.length);
|
|
603
604
|
},
|
|
604
605
|
// Minute
|
|
605
606
|
m(n, e) {
|
|
606
|
-
return
|
|
607
|
+
return L(n.getMinutes(), e.length);
|
|
607
608
|
},
|
|
608
609
|
// Second
|
|
609
610
|
s(n, e) {
|
|
610
|
-
return
|
|
611
|
+
return L(n.getSeconds(), e.length);
|
|
611
612
|
},
|
|
612
613
|
// Fraction of second
|
|
613
614
|
S(n, e) {
|
|
614
615
|
const t = e.length, r = n.getMilliseconds(), o = Math.trunc(
|
|
615
616
|
r * Math.pow(10, t - 3)
|
|
616
617
|
);
|
|
617
|
-
return
|
|
618
|
+
return L(o, e.length);
|
|
618
619
|
}
|
|
619
|
-
},
|
|
620
|
+
}, be = {
|
|
620
621
|
am: "am",
|
|
621
622
|
pm: "pm",
|
|
622
623
|
midnight: "midnight",
|
|
@@ -654,14 +655,14 @@ const ue = {
|
|
|
654
655
|
const o = hn(n, r), a = o > 0 ? o : 1 - o;
|
|
655
656
|
if (e === "YY") {
|
|
656
657
|
const i = a % 100;
|
|
657
|
-
return
|
|
658
|
+
return L(i, 2);
|
|
658
659
|
}
|
|
659
|
-
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) :
|
|
660
|
+
return e === "Yo" ? t.ordinalNumber(a, { unit: "year" }) : L(a, e.length);
|
|
660
661
|
},
|
|
661
662
|
// ISO week-numbering year
|
|
662
663
|
R: function(n, e) {
|
|
663
664
|
const t = dn(n);
|
|
664
|
-
return
|
|
665
|
+
return L(t, e.length);
|
|
665
666
|
},
|
|
666
667
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
667
668
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -674,7 +675,7 @@ const ue = {
|
|
|
674
675
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
675
676
|
u: function(n, e) {
|
|
676
677
|
const t = n.getFullYear();
|
|
677
|
-
return
|
|
678
|
+
return L(t, e.length);
|
|
678
679
|
},
|
|
679
680
|
// Quarter
|
|
680
681
|
Q: function(n, e, t) {
|
|
@@ -683,7 +684,7 @@ const ue = {
|
|
|
683
684
|
case "Q":
|
|
684
685
|
return String(r);
|
|
685
686
|
case "QQ":
|
|
686
|
-
return
|
|
687
|
+
return L(r, 2);
|
|
687
688
|
case "Qo":
|
|
688
689
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
689
690
|
case "QQQ":
|
|
@@ -711,7 +712,7 @@ const ue = {
|
|
|
711
712
|
case "q":
|
|
712
713
|
return String(r);
|
|
713
714
|
case "qq":
|
|
714
|
-
return
|
|
715
|
+
return L(r, 2);
|
|
715
716
|
case "qo":
|
|
716
717
|
return t.ordinalNumber(r, { unit: "quarter" });
|
|
717
718
|
case "qqq":
|
|
@@ -763,7 +764,7 @@ const ue = {
|
|
|
763
764
|
case "L":
|
|
764
765
|
return String(r + 1);
|
|
765
766
|
case "LL":
|
|
766
|
-
return
|
|
767
|
+
return L(r + 1, 2);
|
|
767
768
|
case "Lo":
|
|
768
769
|
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
769
770
|
case "LLL":
|
|
@@ -783,13 +784,13 @@ const ue = {
|
|
|
783
784
|
},
|
|
784
785
|
// Local week of year
|
|
785
786
|
w: function(n, e, t, r) {
|
|
786
|
-
const o =
|
|
787
|
-
return e === "wo" ? t.ordinalNumber(o, { unit: "week" }) :
|
|
787
|
+
const o = Bo(n, r);
|
|
788
|
+
return e === "wo" ? t.ordinalNumber(o, { unit: "week" }) : L(o, e.length);
|
|
788
789
|
},
|
|
789
790
|
// ISO week of year
|
|
790
791
|
I: function(n, e, t) {
|
|
791
792
|
const r = Lo(n);
|
|
792
|
-
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
793
|
+
return e === "Io" ? t.ordinalNumber(r, { unit: "week" }) : L(r, e.length);
|
|
793
794
|
},
|
|
794
795
|
// Day of the month
|
|
795
796
|
d: function(n, e, t) {
|
|
@@ -797,8 +798,8 @@ const ue = {
|
|
|
797
798
|
},
|
|
798
799
|
// Day of year
|
|
799
800
|
D: function(n, e, t) {
|
|
800
|
-
const r =
|
|
801
|
-
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
801
|
+
const r = qo(n);
|
|
802
|
+
return e === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : L(r, e.length);
|
|
802
803
|
},
|
|
803
804
|
// Day of week
|
|
804
805
|
E: function(n, e, t) {
|
|
@@ -836,7 +837,7 @@ const ue = {
|
|
|
836
837
|
case "e":
|
|
837
838
|
return String(a);
|
|
838
839
|
case "ee":
|
|
839
|
-
return
|
|
840
|
+
return L(a, 2);
|
|
840
841
|
case "eo":
|
|
841
842
|
return t.ordinalNumber(a, { unit: "day" });
|
|
842
843
|
case "eee":
|
|
@@ -869,7 +870,7 @@ const ue = {
|
|
|
869
870
|
case "c":
|
|
870
871
|
return String(a);
|
|
871
872
|
case "cc":
|
|
872
|
-
return
|
|
873
|
+
return L(a, e.length);
|
|
873
874
|
case "co":
|
|
874
875
|
return t.ordinalNumber(a, { unit: "day" });
|
|
875
876
|
case "ccc":
|
|
@@ -902,7 +903,7 @@ const ue = {
|
|
|
902
903
|
case "i":
|
|
903
904
|
return String(o);
|
|
904
905
|
case "ii":
|
|
905
|
-
return
|
|
906
|
+
return L(o, e.length);
|
|
906
907
|
case "io":
|
|
907
908
|
return t.ordinalNumber(o, { unit: "day" });
|
|
908
909
|
case "iii":
|
|
@@ -960,7 +961,7 @@ const ue = {
|
|
|
960
961
|
b: function(n, e, t) {
|
|
961
962
|
const r = n.getHours();
|
|
962
963
|
let o;
|
|
963
|
-
switch (r === 12 ? o =
|
|
964
|
+
switch (r === 12 ? o = be.noon : r === 0 ? o = be.midnight : o = r / 12 >= 1 ? "pm" : "am", e) {
|
|
964
965
|
case "b":
|
|
965
966
|
case "bb":
|
|
966
967
|
return t.dayPeriod(o, {
|
|
@@ -989,7 +990,7 @@ const ue = {
|
|
|
989
990
|
B: function(n, e, t) {
|
|
990
991
|
const r = n.getHours();
|
|
991
992
|
let o;
|
|
992
|
-
switch (r >= 17 ? o =
|
|
993
|
+
switch (r >= 17 ? o = be.evening : r >= 12 ? o = be.afternoon : r >= 4 ? o = be.morning : o = be.night, e) {
|
|
993
994
|
case "B":
|
|
994
995
|
case "BB":
|
|
995
996
|
case "BBB":
|
|
@@ -1025,12 +1026,12 @@ const ue = {
|
|
|
1025
1026
|
// Hour [0-11]
|
|
1026
1027
|
K: function(n, e, t) {
|
|
1027
1028
|
const r = n.getHours() % 12;
|
|
1028
|
-
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1029
|
+
return e === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1029
1030
|
},
|
|
1030
1031
|
// Hour [1-24]
|
|
1031
1032
|
k: function(n, e, t) {
|
|
1032
1033
|
let r = n.getHours();
|
|
1033
|
-
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) :
|
|
1034
|
+
return r === 0 && (r = 24), e === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : L(r, e.length);
|
|
1034
1035
|
},
|
|
1035
1036
|
// Minute
|
|
1036
1037
|
m: function(n, e, t) {
|
|
@@ -1105,23 +1106,23 @@ const ue = {
|
|
|
1105
1106
|
// Seconds timestamp
|
|
1106
1107
|
t: function(n, e, t) {
|
|
1107
1108
|
const r = Math.trunc(n.getTime() / 1e3);
|
|
1108
|
-
return
|
|
1109
|
+
return L(r, e.length);
|
|
1109
1110
|
},
|
|
1110
1111
|
// Milliseconds timestamp
|
|
1111
1112
|
T: function(n, e, t) {
|
|
1112
1113
|
const r = n.getTime();
|
|
1113
|
-
return
|
|
1114
|
+
return L(r, e.length);
|
|
1114
1115
|
}
|
|
1115
1116
|
};
|
|
1116
1117
|
function St(n, e = "") {
|
|
1117
1118
|
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = Math.trunc(r / 60), a = r % 60;
|
|
1118
|
-
return a === 0 ? t + String(o) : t + String(o) + e +
|
|
1119
|
+
return a === 0 ? t + String(o) : t + String(o) + e + L(a, 2);
|
|
1119
1120
|
}
|
|
1120
1121
|
function Tt(n, e) {
|
|
1121
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") +
|
|
1122
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + L(Math.abs(n) / 60, 2) : ge(n, e);
|
|
1122
1123
|
}
|
|
1123
1124
|
function ge(n, e = "") {
|
|
1124
|
-
const t = n > 0 ? "-" : "+", r = Math.abs(n), o =
|
|
1125
|
+
const t = n > 0 ? "-" : "+", r = Math.abs(n), o = L(Math.trunc(r / 60), 2), a = L(r % 60, 2);
|
|
1125
1126
|
return t + o + e + a;
|
|
1126
1127
|
}
|
|
1127
1128
|
const Et = (n, e) => {
|
|
@@ -1148,7 +1149,7 @@ const Et = (n, e) => {
|
|
|
1148
1149
|
default:
|
|
1149
1150
|
return e.time({ width: "full" });
|
|
1150
1151
|
}
|
|
1151
|
-
},
|
|
1152
|
+
}, Ho = (n, e) => {
|
|
1152
1153
|
const t = n.match(/(P+)(p+)?/) || [], r = t[1], o = t[2];
|
|
1153
1154
|
if (!o)
|
|
1154
1155
|
return Et(n, e);
|
|
@@ -1169,47 +1170,47 @@ const Et = (n, e) => {
|
|
|
1169
1170
|
break;
|
|
1170
1171
|
}
|
|
1171
1172
|
return a.replace("{{date}}", Et(r, e)).replace("{{time}}", mn(o, e));
|
|
1172
|
-
},
|
|
1173
|
+
}, Go = {
|
|
1173
1174
|
p: mn,
|
|
1174
|
-
P:
|
|
1175
|
-
},
|
|
1176
|
-
function zo(n) {
|
|
1177
|
-
return Go.test(n);
|
|
1178
|
-
}
|
|
1175
|
+
P: Ho
|
|
1176
|
+
}, Vo = /^D+$/, Uo = /^Y+$/, zo = ["D", "DD", "YY", "YYYY"];
|
|
1179
1177
|
function Ko(n) {
|
|
1180
1178
|
return Vo.test(n);
|
|
1181
1179
|
}
|
|
1182
|
-
function Qo(n
|
|
1183
|
-
|
|
1184
|
-
if (console.warn(r), Uo.includes(n))
|
|
1185
|
-
throw new RangeError(r);
|
|
1180
|
+
function Qo(n) {
|
|
1181
|
+
return Uo.test(n);
|
|
1186
1182
|
}
|
|
1187
1183
|
function Xo(n, e, t) {
|
|
1184
|
+
const r = Jo(n, e, t);
|
|
1185
|
+
if (console.warn(r), zo.includes(n))
|
|
1186
|
+
throw new RangeError(r);
|
|
1187
|
+
}
|
|
1188
|
+
function Jo(n, e, t) {
|
|
1188
1189
|
const r = n[0] === "Y" ? "years" : "days of the month";
|
|
1189
1190
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1190
1191
|
}
|
|
1191
|
-
const
|
|
1192
|
+
const Zo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, es = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ts = /^'([^]*?)'?$/, ns = /''/g, rs = /[a-zA-Z]/;
|
|
1192
1193
|
function fn(n, e, t) {
|
|
1193
|
-
var d, h, m, g, b, w, f,
|
|
1194
|
-
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ??
|
|
1195
|
-
if (!
|
|
1194
|
+
var d, h, m, g, b, w, f, _;
|
|
1195
|
+
const r = Ge(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? Ro, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((w = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : w.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = re(n);
|
|
1196
|
+
if (!oo(l))
|
|
1196
1197
|
throw new RangeError("Invalid time value");
|
|
1197
|
-
let c = e.match(
|
|
1198
|
+
let c = e.match(es).map((v) => {
|
|
1198
1199
|
const p = v[0];
|
|
1199
1200
|
if (p === "p" || p === "P") {
|
|
1200
|
-
const C =
|
|
1201
|
+
const C = Go[p];
|
|
1201
1202
|
return C(v, o.formatLong);
|
|
1202
1203
|
}
|
|
1203
1204
|
return v;
|
|
1204
|
-
}).join("").match(
|
|
1205
|
+
}).join("").match(Zo).map((v) => {
|
|
1205
1206
|
if (v === "''")
|
|
1206
1207
|
return { isToken: !1, value: "'" };
|
|
1207
1208
|
const p = v[0];
|
|
1208
1209
|
if (p === "'")
|
|
1209
|
-
return { isToken: !1, value:
|
|
1210
|
+
return { isToken: !1, value: os(v) };
|
|
1210
1211
|
if (It[p])
|
|
1211
1212
|
return { isToken: !0, value: v };
|
|
1212
|
-
if (p.match(
|
|
1213
|
+
if (p.match(rs))
|
|
1213
1214
|
throw new RangeError(
|
|
1214
1215
|
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
1215
1216
|
);
|
|
@@ -1225,16 +1226,16 @@ function fn(n, e, t) {
|
|
|
1225
1226
|
if (!v.isToken)
|
|
1226
1227
|
return v.value;
|
|
1227
1228
|
const p = v.value;
|
|
1228
|
-
(!(t != null && t.useAdditionalWeekYearTokens) &&
|
|
1229
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && Qo(p) || !(t != null && t.useAdditionalDayOfYearTokens) && Ko(p)) && Xo(p, e, String(n));
|
|
1229
1230
|
const C = It[p[0]];
|
|
1230
1231
|
return C(l, p, o.localize, u);
|
|
1231
1232
|
}).join("");
|
|
1232
1233
|
}
|
|
1233
|
-
function
|
|
1234
|
-
const e = n.match(
|
|
1235
|
-
return e ? e[1].replace(
|
|
1234
|
+
function os(n) {
|
|
1235
|
+
const e = n.match(ts);
|
|
1236
|
+
return e ? e[1].replace(ns, "'") : n;
|
|
1236
1237
|
}
|
|
1237
|
-
var
|
|
1238
|
+
var ss = function(n, e, t, r, o, a, i, l) {
|
|
1238
1239
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
1239
1240
|
throw new Error("invariant requires an error message argument");
|
|
1240
1241
|
if (!n) {
|
|
@@ -1253,8 +1254,8 @@ var os = function(n, e, t, r, o, a, i, l) {
|
|
|
1253
1254
|
}
|
|
1254
1255
|
throw c.framesToPop = 1, c;
|
|
1255
1256
|
}
|
|
1256
|
-
},
|
|
1257
|
-
const Ot = /* @__PURE__ */ sr(
|
|
1257
|
+
}, as = ss;
|
|
1258
|
+
const Ot = /* @__PURE__ */ sr(as);
|
|
1258
1259
|
function Ce(...n) {
|
|
1259
1260
|
return n.filter((e) => e != null).reduce((e, t) => {
|
|
1260
1261
|
if (typeof t != "function")
|
|
@@ -1264,22 +1265,22 @@ function Ce(...n) {
|
|
|
1264
1265
|
};
|
|
1265
1266
|
}, null);
|
|
1266
1267
|
}
|
|
1267
|
-
const
|
|
1268
|
+
const is = {
|
|
1268
1269
|
height: ["marginTop", "marginBottom"],
|
|
1269
1270
|
width: ["marginLeft", "marginRight"]
|
|
1270
1271
|
};
|
|
1271
|
-
function
|
|
1272
|
-
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], o =
|
|
1272
|
+
function cs(n, e) {
|
|
1273
|
+
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, r = e[t], o = is[n];
|
|
1273
1274
|
return r + // @ts-ignore
|
|
1274
1275
|
parseInt(vt(e, o[0]), 10) + // @ts-ignore
|
|
1275
1276
|
parseInt(vt(e, o[1]), 10);
|
|
1276
1277
|
}
|
|
1277
|
-
const
|
|
1278
|
+
const ls = {
|
|
1278
1279
|
[cr]: "collapse",
|
|
1279
1280
|
[lr]: "collapsing",
|
|
1280
1281
|
[ur]: "collapsing",
|
|
1281
1282
|
[dr]: "collapse show"
|
|
1282
|
-
}, pn = /* @__PURE__ */
|
|
1283
|
+
}, pn = /* @__PURE__ */ Z.forwardRef(({
|
|
1283
1284
|
onEnter: n,
|
|
1284
1285
|
onEntering: e,
|
|
1285
1286
|
onEntered: t,
|
|
@@ -1293,10 +1294,10 @@ const cs = {
|
|
|
1293
1294
|
mountOnEnter: d = !1,
|
|
1294
1295
|
unmountOnExit: h = !1,
|
|
1295
1296
|
appear: m = !1,
|
|
1296
|
-
getDimensionValue: g =
|
|
1297
|
+
getDimensionValue: g = cs,
|
|
1297
1298
|
...b
|
|
1298
1299
|
}, w) => {
|
|
1299
|
-
const f = typeof l == "function" ? l() : l,
|
|
1300
|
+
const f = typeof l == "function" ? l() : l, _ = Q(() => Ce((y) => {
|
|
1300
1301
|
y.style[f] = "0";
|
|
1301
1302
|
}, n), [f, n]), v = Q(() => Ce((y) => {
|
|
1302
1303
|
const $ = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
|
|
@@ -1313,7 +1314,7 @@ const cs = {
|
|
|
1313
1314
|
addEndListener: ir,
|
|
1314
1315
|
...b,
|
|
1315
1316
|
"aria-expanded": b.role ? c : null,
|
|
1316
|
-
onEnter:
|
|
1317
|
+
onEnter: _,
|
|
1317
1318
|
onEntering: v,
|
|
1318
1319
|
onEntered: p,
|
|
1319
1320
|
onExit: C,
|
|
@@ -1324,9 +1325,9 @@ const cs = {
|
|
|
1324
1325
|
mountOnEnter: d,
|
|
1325
1326
|
unmountOnExit: h,
|
|
1326
1327
|
appear: m,
|
|
1327
|
-
children: (y, $) => /* @__PURE__ */
|
|
1328
|
+
children: (y, $) => /* @__PURE__ */ Z.cloneElement(i, {
|
|
1328
1329
|
...$,
|
|
1329
|
-
className: x(a, i.props.className,
|
|
1330
|
+
className: x(a, i.props.className, ls[y], f === "width" && "collapse-horizontal")
|
|
1330
1331
|
})
|
|
1331
1332
|
});
|
|
1332
1333
|
}), gn = Gr("h4");
|
|
@@ -1342,15 +1343,15 @@ const wn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1342
1343
|
...r
|
|
1343
1344
|
})));
|
|
1344
1345
|
wn.displayName = "AlertHeading";
|
|
1345
|
-
function
|
|
1346
|
+
function us(n, e, t, r = !1) {
|
|
1346
1347
|
const o = de(t);
|
|
1347
|
-
|
|
1348
|
+
M(() => {
|
|
1348
1349
|
const a = typeof n == "function" ? n() : n;
|
|
1349
1350
|
return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
|
|
1350
1351
|
}, [n]);
|
|
1351
1352
|
}
|
|
1352
|
-
const
|
|
1353
|
-
function
|
|
1353
|
+
const ds = ["as", "disabled"];
|
|
1354
|
+
function hs(n, e) {
|
|
1354
1355
|
if (n == null)
|
|
1355
1356
|
return {};
|
|
1356
1357
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1358,7 +1359,7 @@ function ds(n, e) {
|
|
|
1358
1359
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1359
1360
|
return t;
|
|
1360
1361
|
}
|
|
1361
|
-
function
|
|
1362
|
+
function ms(n) {
|
|
1362
1363
|
return !n || n.trim() === "#";
|
|
1363
1364
|
}
|
|
1364
1365
|
function ht({
|
|
@@ -1382,7 +1383,7 @@ function ht({
|
|
|
1382
1383
|
disabled: e
|
|
1383
1384
|
}, u];
|
|
1384
1385
|
const d = (m) => {
|
|
1385
|
-
if ((e || n === "a" &&
|
|
1386
|
+
if ((e || n === "a" && ms(t)) && m.preventDefault(), e) {
|
|
1386
1387
|
m.stopPropagation();
|
|
1387
1388
|
return;
|
|
1388
1389
|
}
|
|
@@ -1408,7 +1409,7 @@ const xn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1408
1409
|
let {
|
|
1409
1410
|
as: t,
|
|
1410
1411
|
disabled: r
|
|
1411
|
-
} = n, o =
|
|
1412
|
+
} = n, o = hs(n, ds);
|
|
1412
1413
|
const [a, {
|
|
1413
1414
|
tagName: i
|
|
1414
1415
|
}] = ht(Object.assign({
|
|
@@ -1420,8 +1421,8 @@ const xn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1420
1421
|
}));
|
|
1421
1422
|
});
|
|
1422
1423
|
xn.displayName = "Button";
|
|
1423
|
-
const
|
|
1424
|
-
function
|
|
1424
|
+
const fs = ["onKeyDown"];
|
|
1425
|
+
function ps(n, e) {
|
|
1425
1426
|
if (n == null)
|
|
1426
1427
|
return {};
|
|
1427
1428
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1429,19 +1430,19 @@ function fs(n, e) {
|
|
|
1429
1430
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1430
1431
|
return t;
|
|
1431
1432
|
}
|
|
1432
|
-
function
|
|
1433
|
+
function gs(n) {
|
|
1433
1434
|
return !n || n.trim() === "#";
|
|
1434
1435
|
}
|
|
1435
1436
|
const mt = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
1436
1437
|
let {
|
|
1437
1438
|
onKeyDown: t
|
|
1438
|
-
} = n, r =
|
|
1439
|
+
} = n, r = ps(n, fs);
|
|
1439
1440
|
const [o] = ht(Object.assign({
|
|
1440
1441
|
tagName: "a"
|
|
1441
1442
|
}, r)), a = de((i) => {
|
|
1442
1443
|
o.onKeyDown(i), t == null || t(i);
|
|
1443
1444
|
});
|
|
1444
|
-
return
|
|
1445
|
+
return gs(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
|
|
1445
1446
|
ref: e
|
|
1446
1447
|
}, r, o, {
|
|
1447
1448
|
onKeyDown: a
|
|
@@ -1478,8 +1479,8 @@ const vn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1478
1479
|
...m
|
|
1479
1480
|
} = Ut(n, {
|
|
1480
1481
|
show: "onClose"
|
|
1481
|
-
}), g = V(t, "alert"), b = de((
|
|
1482
|
-
u && u(!1,
|
|
1482
|
+
}), g = V(t, "alert"), b = de((_) => {
|
|
1483
|
+
u && u(!1, _);
|
|
1483
1484
|
}), w = h === !0 ? bt : h, f = /* @__PURE__ */ s.jsxs("div", {
|
|
1484
1485
|
role: "alert",
|
|
1485
1486
|
...w ? void 0 : m,
|
|
@@ -1500,7 +1501,7 @@ const vn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1500
1501
|
}) : r ? f : null;
|
|
1501
1502
|
});
|
|
1502
1503
|
vn.displayName = "Alert";
|
|
1503
|
-
const
|
|
1504
|
+
const ws = Object.assign(vn, {
|
|
1504
1505
|
Link: yn,
|
|
1505
1506
|
Heading: wn
|
|
1506
1507
|
}), bn = /* @__PURE__ */ A.forwardRef(({
|
|
@@ -1529,10 +1530,10 @@ const gs = Object.assign(vn, {
|
|
|
1529
1530
|
});
|
|
1530
1531
|
});
|
|
1531
1532
|
bn.displayName = "Button";
|
|
1532
|
-
function
|
|
1533
|
+
function xs(n, e) {
|
|
1533
1534
|
return A.Children.toArray(n).some((t) => /* @__PURE__ */ A.isValidElement(t) && t.type === e);
|
|
1534
1535
|
}
|
|
1535
|
-
function
|
|
1536
|
+
function ys({
|
|
1536
1537
|
as: n,
|
|
1537
1538
|
bsPrefix: e,
|
|
1538
1539
|
className: t,
|
|
@@ -1570,7 +1571,7 @@ const _n = /* @__PURE__ */ A.forwardRef(
|
|
|
1570
1571
|
as: o = "div",
|
|
1571
1572
|
bsPrefix: a,
|
|
1572
1573
|
spans: i
|
|
1573
|
-
}] =
|
|
1574
|
+
}] = ys(n);
|
|
1574
1575
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1575
1576
|
...r,
|
|
1576
1577
|
ref: e,
|
|
@@ -1579,20 +1580,20 @@ const _n = /* @__PURE__ */ A.forwardRef(
|
|
|
1579
1580
|
}
|
|
1580
1581
|
);
|
|
1581
1582
|
_n.displayName = "Col";
|
|
1582
|
-
function
|
|
1583
|
-
const r = Y(n !== void 0), [o, a] =
|
|
1584
|
-
return r.current = i, !i && l && o !== e && a(e), [i ? n : o,
|
|
1583
|
+
function vs(n, e, t) {
|
|
1584
|
+
const r = Y(n !== void 0), [o, a] = D(e), i = n !== void 0, l = r.current;
|
|
1585
|
+
return r.current = i, !i && l && o !== e && a(e), [i ? n : o, E((...c) => {
|
|
1585
1586
|
const [u, ...d] = c;
|
|
1586
1587
|
let h = t == null ? void 0 : t(u, ...d);
|
|
1587
1588
|
return a(u), h;
|
|
1588
1589
|
}, [t])];
|
|
1589
1590
|
}
|
|
1590
|
-
function
|
|
1591
|
+
function bs() {
|
|
1591
1592
|
const [, n] = tn((e) => !e, !1);
|
|
1592
1593
|
return n;
|
|
1593
1594
|
}
|
|
1594
|
-
const Ve = /* @__PURE__ */ A.createContext(null),
|
|
1595
|
-
function
|
|
1595
|
+
const Ve = /* @__PURE__ */ A.createContext(null), _s = ["children", "usePopper"];
|
|
1596
|
+
function js(n, e) {
|
|
1596
1597
|
if (n == null)
|
|
1597
1598
|
return {};
|
|
1598
1599
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1600,10 +1601,10 @@ function _s(n, e) {
|
|
|
1600
1601
|
o = r[a], !(e.indexOf(o) >= 0) && (t[o] = n[o]);
|
|
1601
1602
|
return t;
|
|
1602
1603
|
}
|
|
1603
|
-
const
|
|
1604
|
+
const ks = () => {
|
|
1604
1605
|
};
|
|
1605
1606
|
function jn(n = {}) {
|
|
1606
|
-
const e =
|
|
1607
|
+
const e = q(Ve), [t, r] = pr(), o = Y(!1), {
|
|
1607
1608
|
flip: a,
|
|
1608
1609
|
offset: i,
|
|
1609
1610
|
rootCloseEvent: l,
|
|
@@ -1619,9 +1620,9 @@ function jn(n = {}) {
|
|
|
1619
1620
|
}, {
|
|
1620
1621
|
placement: w,
|
|
1621
1622
|
setMenu: f,
|
|
1622
|
-
menuElement:
|
|
1623
|
+
menuElement: _,
|
|
1623
1624
|
toggleElement: v
|
|
1624
|
-
} = e || {}, p = gr(v,
|
|
1625
|
+
} = e || {}, p = gr(v, _, wr({
|
|
1625
1626
|
placement: u || w || "bottom-start",
|
|
1626
1627
|
enabled: m,
|
|
1627
1628
|
enableEvents: h ?? g,
|
|
@@ -1631,7 +1632,7 @@ function jn(n = {}) {
|
|
|
1631
1632
|
arrowElement: t,
|
|
1632
1633
|
popperConfig: d
|
|
1633
1634
|
})), C = Object.assign({
|
|
1634
|
-
ref: f ||
|
|
1635
|
+
ref: f || ks,
|
|
1635
1636
|
"aria-labelledby": v == null ? void 0 : v.id
|
|
1636
1637
|
}, p.attributes.popper, {
|
|
1637
1638
|
style: p.styles.popper
|
|
@@ -1647,7 +1648,7 @@ function jn(n = {}) {
|
|
|
1647
1648
|
style: p.styles.arrow
|
|
1648
1649
|
}) : {}
|
|
1649
1650
|
};
|
|
1650
|
-
return xr(
|
|
1651
|
+
return xr(_, b, {
|
|
1651
1652
|
clickTrigger: l,
|
|
1652
1653
|
disabled: !g
|
|
1653
1654
|
}), [C, k];
|
|
@@ -1656,7 +1657,7 @@ function kn(n) {
|
|
|
1656
1657
|
let {
|
|
1657
1658
|
children: e,
|
|
1658
1659
|
usePopper: t = !0
|
|
1659
|
-
} = n, r =
|
|
1660
|
+
} = n, r = js(n, _s);
|
|
1660
1661
|
const [o, a] = jn(Object.assign({}, r, {
|
|
1661
1662
|
usePopper: t
|
|
1662
1663
|
}));
|
|
@@ -1665,16 +1666,16 @@ function kn(n) {
|
|
|
1665
1666
|
});
|
|
1666
1667
|
}
|
|
1667
1668
|
kn.displayName = "DropdownMenu";
|
|
1668
|
-
const
|
|
1669
|
+
const Ye = {
|
|
1669
1670
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1670
1671
|
current: 0
|
|
1671
|
-
}, Cn = /* @__PURE__ */
|
|
1672
|
-
let
|
|
1673
|
-
function
|
|
1674
|
-
let e =
|
|
1672
|
+
}, Cn = /* @__PURE__ */ Z.createContext(Ye), Cs = /* @__PURE__ */ Z.createContext(!1);
|
|
1673
|
+
let Ns = !!(typeof window < "u" && window.document && window.document.createElement), Ze = /* @__PURE__ */ new WeakMap();
|
|
1674
|
+
function $s(n = !1) {
|
|
1675
|
+
let e = q(Cn), t = Y(null);
|
|
1675
1676
|
if (t.current === null && !n) {
|
|
1676
1677
|
var r, o;
|
|
1677
|
-
let a = (o =
|
|
1678
|
+
let a = (o = Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
1678
1679
|
if (a) {
|
|
1679
1680
|
let i = Ze.get(a);
|
|
1680
1681
|
i == null ? Ze.set(a, {
|
|
@@ -1686,29 +1687,29 @@ function Ns(n = !1) {
|
|
|
1686
1687
|
}
|
|
1687
1688
|
return t.current;
|
|
1688
1689
|
}
|
|
1689
|
-
function
|
|
1690
|
-
let e =
|
|
1691
|
-
e ===
|
|
1692
|
-
let t =
|
|
1690
|
+
function Is(n) {
|
|
1691
|
+
let e = q(Cn);
|
|
1692
|
+
e === Ye && !Ns && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1693
|
+
let t = $s(!!n), r = e === Ye && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1693
1694
|
return n || `${r}-${t}`;
|
|
1694
1695
|
}
|
|
1695
|
-
function
|
|
1696
|
-
let e =
|
|
1696
|
+
function Ss(n) {
|
|
1697
|
+
let e = Z.useId(), [t] = D(Ds()), r = t || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Ye.prefix}`;
|
|
1697
1698
|
return n || `${r}-${e}`;
|
|
1698
1699
|
}
|
|
1699
|
-
const
|
|
1700
|
-
function
|
|
1700
|
+
const Ts = typeof Z.useId == "function" ? Ss : Is;
|
|
1701
|
+
function Es() {
|
|
1701
1702
|
return !1;
|
|
1702
1703
|
}
|
|
1703
|
-
function
|
|
1704
|
+
function Os() {
|
|
1704
1705
|
return !0;
|
|
1705
1706
|
}
|
|
1706
|
-
function
|
|
1707
|
+
function Ms(n) {
|
|
1707
1708
|
return () => {
|
|
1708
1709
|
};
|
|
1709
1710
|
}
|
|
1710
|
-
function
|
|
1711
|
-
return typeof
|
|
1711
|
+
function Ds() {
|
|
1712
|
+
return typeof Z.useSyncExternalStore == "function" ? Z.useSyncExternalStore(Ms, Es, Os) : q(Cs);
|
|
1712
1713
|
}
|
|
1713
1714
|
const Nn = (n) => {
|
|
1714
1715
|
var e;
|
|
@@ -1716,12 +1717,12 @@ const Nn = (n) => {
|
|
|
1716
1717
|
}, Mt = () => {
|
|
1717
1718
|
};
|
|
1718
1719
|
function $n() {
|
|
1719
|
-
const n =
|
|
1720
|
+
const n = Ts(), {
|
|
1720
1721
|
show: e = !1,
|
|
1721
1722
|
toggle: t = Mt,
|
|
1722
1723
|
setToggle: r,
|
|
1723
1724
|
menuElement: o
|
|
1724
|
-
} =
|
|
1725
|
+
} = q(Ve) || {}, a = E((l) => {
|
|
1725
1726
|
t(!e, l);
|
|
1726
1727
|
}, [e, t]), i = {
|
|
1727
1728
|
id: n,
|
|
@@ -1745,8 +1746,8 @@ function In({
|
|
|
1745
1746
|
In.displayName = "DropdownToggle";
|
|
1746
1747
|
const rt = /* @__PURE__ */ A.createContext(null), Dt = (n, e = null) => n != null ? String(n) : e || null, Sn = /* @__PURE__ */ A.createContext(null);
|
|
1747
1748
|
Sn.displayName = "NavContext";
|
|
1748
|
-
const
|
|
1749
|
-
function
|
|
1749
|
+
const Ps = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
1750
|
+
function As(n, e) {
|
|
1750
1751
|
if (n == null)
|
|
1751
1752
|
return {};
|
|
1752
1753
|
var t = {}, r = Object.keys(n), o, a;
|
|
@@ -1761,7 +1762,7 @@ function Tn({
|
|
|
1761
1762
|
disabled: r,
|
|
1762
1763
|
onClick: o
|
|
1763
1764
|
}) {
|
|
1764
|
-
const a =
|
|
1765
|
+
const a = q(rt), i = q(Sn), {
|
|
1765
1766
|
activeKey: l
|
|
1766
1767
|
} = i || {}, c = Dt(n, e), u = t == null && n != null ? Dt(l) === c : t;
|
|
1767
1768
|
return [{
|
|
@@ -1782,7 +1783,7 @@ const En = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1782
1783
|
onClick: o,
|
|
1783
1784
|
active: a,
|
|
1784
1785
|
as: i = xn
|
|
1785
|
-
} = n, l =
|
|
1786
|
+
} = n, l = As(n, Ps);
|
|
1786
1787
|
const [c] = Tn({
|
|
1787
1788
|
key: t,
|
|
1788
1789
|
href: l.href,
|
|
@@ -1796,12 +1797,12 @@ const En = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
1796
1797
|
});
|
|
1797
1798
|
En.displayName = "DropdownItem";
|
|
1798
1799
|
function Pt() {
|
|
1799
|
-
const n =
|
|
1800
|
+
const n = bs(), e = Y(null), t = E((r) => {
|
|
1800
1801
|
e.current = r, n();
|
|
1801
1802
|
}, [n]);
|
|
1802
1803
|
return [e, t];
|
|
1803
1804
|
}
|
|
1804
|
-
function
|
|
1805
|
+
function Ee({
|
|
1805
1806
|
defaultShow: n,
|
|
1806
1807
|
show: e,
|
|
1807
1808
|
onSelect: t,
|
|
@@ -1811,13 +1812,13 @@ function Te({
|
|
|
1811
1812
|
placement: i = "bottom-start",
|
|
1812
1813
|
children: l
|
|
1813
1814
|
}) {
|
|
1814
|
-
const c = yr(), [u, d] =
|
|
1815
|
-
d(
|
|
1815
|
+
const c = yr(), [u, d] = vs(e, n, r), [h, m] = Pt(), g = h.current, [b, w] = Pt(), f = b.current, _ = Ur(u), v = Y(null), p = Y(!1), C = q(rt), k = E((j, T, F = T == null ? void 0 : T.type) => {
|
|
1816
|
+
d(j, {
|
|
1816
1817
|
originalEvent: T,
|
|
1817
1818
|
source: F
|
|
1818
1819
|
});
|
|
1819
|
-
}, [d]), y = de((
|
|
1820
|
-
t == null || t(
|
|
1820
|
+
}, [d]), y = de((j, T) => {
|
|
1821
|
+
t == null || t(j, T), k(!1, T, "select"), T.isPropagationStopped() || C == null || C(j, T);
|
|
1821
1822
|
}), $ = Q(() => ({
|
|
1822
1823
|
toggle: k,
|
|
1823
1824
|
placement: i,
|
|
@@ -1827,49 +1828,49 @@ function Te({
|
|
|
1827
1828
|
setMenu: m,
|
|
1828
1829
|
setToggle: w
|
|
1829
1830
|
}), [k, i, u, g, f, m, w]);
|
|
1830
|
-
g &&
|
|
1831
|
-
const
|
|
1831
|
+
g && _ && !u && (p.current = g.contains(g.ownerDocument.activeElement));
|
|
1832
|
+
const P = de(() => {
|
|
1832
1833
|
f && f.focus && f.focus();
|
|
1833
1834
|
}), I = de(() => {
|
|
1834
|
-
const
|
|
1835
|
+
const j = v.current;
|
|
1835
1836
|
let T = a;
|
|
1836
|
-
if (T == null && (T = h.current && Nn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(
|
|
1837
|
+
if (T == null && (T = h.current && Nn(h.current) ? "keyboard" : !1), T === !1 || T === "keyboard" && !/^key.+$/.test(j))
|
|
1837
1838
|
return;
|
|
1838
1839
|
const F = kt(h.current, o)[0];
|
|
1839
1840
|
F && F.focus && F.focus();
|
|
1840
1841
|
});
|
|
1841
|
-
|
|
1842
|
-
u ? I() : p.current && (p.current = !1,
|
|
1843
|
-
}, [u, p,
|
|
1842
|
+
M(() => {
|
|
1843
|
+
u ? I() : p.current && (p.current = !1, P());
|
|
1844
|
+
}, [u, p, P, I]), M(() => {
|
|
1844
1845
|
v.current = null;
|
|
1845
1846
|
});
|
|
1846
|
-
const N = (
|
|
1847
|
+
const N = (j, T) => {
|
|
1847
1848
|
if (!h.current)
|
|
1848
1849
|
return null;
|
|
1849
1850
|
const F = kt(h.current, o);
|
|
1850
|
-
let W = F.indexOf(
|
|
1851
|
+
let W = F.indexOf(j) + T;
|
|
1851
1852
|
return W = Math.max(0, Math.min(W, F.length)), F[W];
|
|
1852
1853
|
};
|
|
1853
|
-
return
|
|
1854
|
+
return us(E(() => c.document, [c]), "keydown", (j) => {
|
|
1854
1855
|
var T, F;
|
|
1855
1856
|
const {
|
|
1856
1857
|
key: W
|
|
1857
|
-
} =
|
|
1858
|
+
} = j, B = j.target, R = (T = h.current) == null ? void 0 : T.contains(B), G = (F = b.current) == null ? void 0 : F.contains(B);
|
|
1858
1859
|
if (/input|textarea/i.test(B.tagName) && (W === " " || W !== "Escape" && R || W === "Escape" && B.type === "search") || !R && !G || W === "Tab" && (!h.current || !u))
|
|
1859
1860
|
return;
|
|
1860
|
-
v.current =
|
|
1861
|
+
v.current = j.type;
|
|
1861
1862
|
const te = {
|
|
1862
|
-
originalEvent:
|
|
1863
|
-
source:
|
|
1863
|
+
originalEvent: j,
|
|
1864
|
+
source: j.type
|
|
1864
1865
|
};
|
|
1865
1866
|
switch (W) {
|
|
1866
1867
|
case "ArrowUp": {
|
|
1867
1868
|
const U = N(B, -1);
|
|
1868
|
-
U && U.focus && U.focus(),
|
|
1869
|
+
U && U.focus && U.focus(), j.preventDefault();
|
|
1869
1870
|
return;
|
|
1870
1871
|
}
|
|
1871
1872
|
case "ArrowDown":
|
|
1872
|
-
if (
|
|
1873
|
+
if (j.preventDefault(), !u)
|
|
1873
1874
|
d(!0, te);
|
|
1874
1875
|
else {
|
|
1875
1876
|
const U = N(B, 1);
|
|
@@ -1885,7 +1886,7 @@ function Te({
|
|
|
1885
1886
|
});
|
|
1886
1887
|
break;
|
|
1887
1888
|
case "Escape":
|
|
1888
|
-
W === "Escape" && (
|
|
1889
|
+
W === "Escape" && (j.preventDefault(), j.stopPropagation()), d(!1, te);
|
|
1889
1890
|
break;
|
|
1890
1891
|
}
|
|
1891
1892
|
}), /* @__PURE__ */ s.jsx(rt.Provider, {
|
|
@@ -1896,10 +1897,10 @@ function Te({
|
|
|
1896
1897
|
})
|
|
1897
1898
|
});
|
|
1898
1899
|
}
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1900
|
+
Ee.displayName = "Dropdown";
|
|
1901
|
+
Ee.Menu = kn;
|
|
1902
|
+
Ee.Toggle = In;
|
|
1903
|
+
Ee.Item = En;
|
|
1903
1904
|
const ft = /* @__PURE__ */ A.createContext({});
|
|
1904
1905
|
ft.displayName = "DropdownContext";
|
|
1905
1906
|
const On = /* @__PURE__ */ A.forwardRef(({
|
|
@@ -1971,7 +1972,7 @@ An.displayName = "NavbarContext";
|
|
|
1971
1972
|
function Fn(n, e) {
|
|
1972
1973
|
if (process.env.NODE_ENV === "production")
|
|
1973
1974
|
return n;
|
|
1974
|
-
const t =
|
|
1975
|
+
const t = E((r) => {
|
|
1975
1976
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Ot(!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`) : Ot(!1));
|
|
1976
1977
|
}, [e]);
|
|
1977
1978
|
return it(t, n);
|
|
@@ -1996,26 +1997,26 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
1996
1997
|
...d
|
|
1997
1998
|
}, h) => {
|
|
1998
1999
|
let m = !1;
|
|
1999
|
-
const g =
|
|
2000
|
+
const g = q(An), b = V(n, "dropdown-menu"), {
|
|
2000
2001
|
align: w,
|
|
2001
2002
|
drop: f,
|
|
2002
|
-
isRTL:
|
|
2003
|
-
} =
|
|
2003
|
+
isRTL: _
|
|
2004
|
+
} = q(ft);
|
|
2004
2005
|
t = t || w;
|
|
2005
|
-
const v =
|
|
2006
|
+
const v = q(Ue), p = [];
|
|
2006
2007
|
if (t)
|
|
2007
2008
|
if (typeof t == "object") {
|
|
2008
|
-
const
|
|
2009
|
-
if (process.env.NODE_ENV !== "production" && zt(
|
|
2010
|
-
const T =
|
|
2009
|
+
const j = Object.keys(t);
|
|
2010
|
+
if (process.env.NODE_ENV !== "production" && zt(j.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), j.length) {
|
|
2011
|
+
const T = j[0], F = t[T];
|
|
2011
2012
|
m = F === "start", p.push(`${b}-${T}-${F}`);
|
|
2012
2013
|
}
|
|
2013
2014
|
} else
|
|
2014
2015
|
t === "end" && (m = !0);
|
|
2015
|
-
const C = Wn(m, f,
|
|
2016
|
+
const C = Wn(m, f, _), [k, {
|
|
2016
2017
|
hasShown: y,
|
|
2017
2018
|
popper: $,
|
|
2018
|
-
show:
|
|
2019
|
+
show: P,
|
|
2019
2020
|
toggle: I
|
|
2020
2021
|
}] = jn({
|
|
2021
2022
|
flip: o,
|
|
@@ -2027,10 +2028,10 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2027
2028
|
placement: C
|
|
2028
2029
|
});
|
|
2029
2030
|
if (k.ref = it(Fn(h, "DropdownMenu"), k.ref), br(() => {
|
|
2030
|
-
|
|
2031
|
-
}, [
|
|
2031
|
+
P && ($ == null || $.update());
|
|
2032
|
+
}, [P]), !y && !i && !v)
|
|
2032
2033
|
return null;
|
|
2033
|
-
typeof l != "string" && (k.show =
|
|
2034
|
+
typeof l != "string" && (k.show = P, k.close = () => I == null ? void 0 : I(!1), k.align = t);
|
|
2034
2035
|
let N = d.style;
|
|
2035
2036
|
return $ != null && $.placement && (N = {
|
|
2036
2037
|
...d.style,
|
|
@@ -2042,11 +2043,11 @@ const Rn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2042
2043
|
...(p.length || g) && {
|
|
2043
2044
|
"data-bs-popper": "static"
|
|
2044
2045
|
},
|
|
2045
|
-
className: x(e, b,
|
|
2046
|
+
className: x(e, b, P && "show", m && `${b}-end`, u && `${b}-${u}`, ...p)
|
|
2046
2047
|
});
|
|
2047
2048
|
});
|
|
2048
2049
|
Rn.displayName = "DropdownMenu";
|
|
2049
|
-
const
|
|
2050
|
+
const qn = /* @__PURE__ */ A.forwardRef(({
|
|
2050
2051
|
bsPrefix: n,
|
|
2051
2052
|
split: e,
|
|
2052
2053
|
className: t,
|
|
@@ -2055,7 +2056,7 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2055
2056
|
as: o = bn,
|
|
2056
2057
|
...a
|
|
2057
2058
|
}, i) => {
|
|
2058
|
-
const l = V(n, "dropdown-toggle"), c =
|
|
2059
|
+
const l = V(n, "dropdown-toggle"), c = q(Ve);
|
|
2059
2060
|
r !== void 0 && (a.bsPrefix = r);
|
|
2060
2061
|
const [u] = $n();
|
|
2061
2062
|
return u.ref = it(u.ref, Fn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
@@ -2064,8 +2065,8 @@ const Ln = /* @__PURE__ */ A.forwardRef(({
|
|
|
2064
2065
|
...a
|
|
2065
2066
|
});
|
|
2066
2067
|
});
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2068
|
+
qn.displayName = "DropdownToggle";
|
|
2069
|
+
const Ln = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
2069
2070
|
const {
|
|
2070
2071
|
bsPrefix: t,
|
|
2071
2072
|
drop: r = "down",
|
|
@@ -2082,9 +2083,9 @@ const qn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2082
2083
|
...g
|
|
2083
2084
|
} = Ut(n, {
|
|
2084
2085
|
show: "onToggle"
|
|
2085
|
-
}), b =
|
|
2086
|
+
}), b = q(Ue), w = V(t, "dropdown"), f = _r(), _ = ($) => m === !1 ? $ === "click" : m === "inside" ? $ !== "rootClose" : m === "outside" ? $ !== "select" : !0, v = de(($, P) => {
|
|
2086
2087
|
var I, N;
|
|
2087
|
-
!((I =
|
|
2088
|
+
!((I = P.originalEvent) == null || (N = I.target) == null) && N.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), _(P.source) && (c == null || c($, P)));
|
|
2088
2089
|
}), C = Wn(i === "end", r, f), k = Q(() => ({
|
|
2089
2090
|
align: i,
|
|
2090
2091
|
drop: r,
|
|
@@ -2099,7 +2100,7 @@ const qn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2099
2100
|
};
|
|
2100
2101
|
return /* @__PURE__ */ s.jsx(ft.Provider, {
|
|
2101
2102
|
value: k,
|
|
2102
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2103
|
+
children: /* @__PURE__ */ s.jsx(Ee, {
|
|
2103
2104
|
placement: C,
|
|
2104
2105
|
show: o,
|
|
2105
2106
|
onSelect: l,
|
|
@@ -2114,15 +2115,15 @@ const qn = /* @__PURE__ */ A.forwardRef((n, e) => {
|
|
|
2114
2115
|
})
|
|
2115
2116
|
});
|
|
2116
2117
|
});
|
|
2117
|
-
|
|
2118
|
-
const Se = Object.assign(
|
|
2119
|
-
Toggle:
|
|
2118
|
+
Ln.displayName = "Dropdown";
|
|
2119
|
+
const Se = Object.assign(Ln, {
|
|
2120
|
+
Toggle: qn,
|
|
2120
2121
|
Menu: Rn,
|
|
2121
2122
|
Item: Dn,
|
|
2122
2123
|
ItemText: Pn,
|
|
2123
2124
|
Divider: On,
|
|
2124
2125
|
Header: Mn
|
|
2125
|
-
}),
|
|
2126
|
+
}), Oe = /* @__PURE__ */ A.forwardRef(({
|
|
2126
2127
|
id: n,
|
|
2127
2128
|
bsPrefix: e,
|
|
2128
2129
|
className: t,
|
|
@@ -2135,7 +2136,7 @@ const Se = Object.assign(qn, {
|
|
|
2135
2136
|
}, c) => {
|
|
2136
2137
|
const {
|
|
2137
2138
|
controlId: u
|
|
2138
|
-
} =
|
|
2139
|
+
} = q(we);
|
|
2139
2140
|
return e = V(e, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
|
|
2140
2141
|
...l,
|
|
2141
2142
|
ref: c,
|
|
@@ -2144,8 +2145,8 @@ const Se = Object.assign(qn, {
|
|
|
2144
2145
|
className: x(t, e, o && "is-valid", a && "is-invalid")
|
|
2145
2146
|
});
|
|
2146
2147
|
});
|
|
2147
|
-
|
|
2148
|
-
const
|
|
2148
|
+
Oe.displayName = "FormCheckInput";
|
|
2149
|
+
const Be = /* @__PURE__ */ A.forwardRef(({
|
|
2149
2150
|
bsPrefix: n,
|
|
2150
2151
|
className: e,
|
|
2151
2152
|
htmlFor: t,
|
|
@@ -2153,7 +2154,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2153
2154
|
}, o) => {
|
|
2154
2155
|
const {
|
|
2155
2156
|
controlId: a
|
|
2156
|
-
} =
|
|
2157
|
+
} = q(we);
|
|
2157
2158
|
return n = V(n, "form-check-label"), /* @__PURE__ */ s.jsx("label", {
|
|
2158
2159
|
...r,
|
|
2159
2160
|
ref: o,
|
|
@@ -2161,7 +2162,7 @@ const Ye = /* @__PURE__ */ A.forwardRef(({
|
|
|
2161
2162
|
className: x(e, n)
|
|
2162
2163
|
});
|
|
2163
2164
|
});
|
|
2164
|
-
|
|
2165
|
+
Be.displayName = "FormCheckLabel";
|
|
2165
2166
|
const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
2166
2167
|
id: n,
|
|
2167
2168
|
bsPrefix: e,
|
|
@@ -2181,22 +2182,22 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2181
2182
|
label: w,
|
|
2182
2183
|
children: f,
|
|
2183
2184
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2184
|
-
as:
|
|
2185
|
+
as: _ = "input",
|
|
2185
2186
|
...v
|
|
2186
2187
|
}, p) => {
|
|
2187
2188
|
e = V(e, "form-check"), t = V(t, "form-switch");
|
|
2188
2189
|
const {
|
|
2189
2190
|
controlId: C
|
|
2190
|
-
} =
|
|
2191
|
+
} = q(we), k = Q(() => ({
|
|
2191
2192
|
controlId: n || C
|
|
2192
|
-
}), [C, n]), y = !f && w != null && w !== !1 ||
|
|
2193
|
+
}), [C, n]), y = !f && w != null && w !== !1 || xs(f, Be), $ = /* @__PURE__ */ s.jsx(Oe, {
|
|
2193
2194
|
...v,
|
|
2194
2195
|
type: b === "switch" ? "checkbox" : b,
|
|
2195
2196
|
ref: p,
|
|
2196
2197
|
isValid: i,
|
|
2197
2198
|
isInvalid: l,
|
|
2198
2199
|
disabled: a,
|
|
2199
|
-
as:
|
|
2200
|
+
as: _
|
|
2200
2201
|
});
|
|
2201
2202
|
return /* @__PURE__ */ s.jsx(we.Provider, {
|
|
2202
2203
|
value: k,
|
|
@@ -2204,7 +2205,7 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2204
2205
|
style: m,
|
|
2205
2206
|
className: x(h, y && e, r && `${e}-inline`, o && `${e}-reverse`, b === "switch" && t),
|
|
2206
2207
|
children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2207
|
-
children: [$, y && /* @__PURE__ */ s.jsx(
|
|
2208
|
+
children: [$, y && /* @__PURE__ */ s.jsx(Be, {
|
|
2208
2209
|
title: g,
|
|
2209
2210
|
children: w
|
|
2210
2211
|
}), u && /* @__PURE__ */ s.jsx(zr, {
|
|
@@ -2217,9 +2218,9 @@ const Yn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2217
2218
|
});
|
|
2218
2219
|
});
|
|
2219
2220
|
Yn.displayName = "FormCheck";
|
|
2220
|
-
const
|
|
2221
|
-
Input:
|
|
2222
|
-
Label:
|
|
2221
|
+
const He = Object.assign(Yn, {
|
|
2222
|
+
Input: Oe,
|
|
2223
|
+
Label: Be
|
|
2223
2224
|
}), Bn = /* @__PURE__ */ A.forwardRef(({
|
|
2224
2225
|
className: n,
|
|
2225
2226
|
bsPrefix: e,
|
|
@@ -2243,7 +2244,7 @@ const Hn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2243
2244
|
}, l) => {
|
|
2244
2245
|
const {
|
|
2245
2246
|
controlId: c
|
|
2246
|
-
} =
|
|
2247
|
+
} = q(we);
|
|
2247
2248
|
e = V(e, "form-label");
|
|
2248
2249
|
let u = "col-form-label";
|
|
2249
2250
|
typeof t == "string" && (u = `${u} ${u}-${t}`);
|
|
@@ -2273,7 +2274,7 @@ const Gn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2273
2274
|
}, o) => {
|
|
2274
2275
|
const {
|
|
2275
2276
|
controlId: a
|
|
2276
|
-
} =
|
|
2277
|
+
} = q(we);
|
|
2277
2278
|
return n = V(n, "form-range"), /* @__PURE__ */ s.jsx("input", {
|
|
2278
2279
|
...r,
|
|
2279
2280
|
type: "range",
|
|
@@ -2295,7 +2296,7 @@ const Vn = /* @__PURE__ */ A.forwardRef(({
|
|
|
2295
2296
|
}, c) => {
|
|
2296
2297
|
const {
|
|
2297
2298
|
controlId: u
|
|
2298
|
-
} =
|
|
2299
|
+
} = q(we);
|
|
2299
2300
|
return n = V(n, "form-select"), /* @__PURE__ */ s.jsx("select", {
|
|
2300
2301
|
...l,
|
|
2301
2302
|
size: t,
|
|
@@ -2320,16 +2321,16 @@ const Un = /* @__PURE__ */ A.forwardRef(
|
|
|
2320
2321
|
}))
|
|
2321
2322
|
);
|
|
2322
2323
|
Un.displayName = "FormText";
|
|
2323
|
-
const zn = /* @__PURE__ */ A.forwardRef((n, e) => /* @__PURE__ */ s.jsx(
|
|
2324
|
+
const zn = /* @__PURE__ */ A.forwardRef((n, e) => /* @__PURE__ */ s.jsx(He, {
|
|
2324
2325
|
...n,
|
|
2325
2326
|
ref: e,
|
|
2326
2327
|
type: "switch"
|
|
2327
2328
|
}));
|
|
2328
2329
|
zn.displayName = "Switch";
|
|
2329
|
-
const
|
|
2330
|
-
Input:
|
|
2331
|
-
Label:
|
|
2332
|
-
}),
|
|
2330
|
+
const Fs = Object.assign(zn, {
|
|
2331
|
+
Input: He.Input,
|
|
2332
|
+
Label: He.Label
|
|
2333
|
+
}), Ws = {
|
|
2333
2334
|
/**
|
|
2334
2335
|
* The Form `ref` will be forwarded to the underlying element,
|
|
2335
2336
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -2357,13 +2358,13 @@ const As = Object.assign(zn, {
|
|
|
2357
2358
|
className: x(n, e && "was-validated")
|
|
2358
2359
|
}));
|
|
2359
2360
|
pt.displayName = "Form";
|
|
2360
|
-
pt.propTypes =
|
|
2361
|
+
pt.propTypes = Ws;
|
|
2361
2362
|
const ee = Object.assign(pt, {
|
|
2362
2363
|
Group: jr,
|
|
2363
2364
|
Control: rn,
|
|
2364
2365
|
Floating: Bn,
|
|
2365
|
-
Check:
|
|
2366
|
-
Switch:
|
|
2366
|
+
Check: He,
|
|
2367
|
+
Switch: Fs,
|
|
2367
2368
|
Label: Hn,
|
|
2368
2369
|
Text: Un,
|
|
2369
2370
|
Range: Gn,
|
|
@@ -2380,13 +2381,13 @@ const ee = Object.assign(pt, {
|
|
|
2380
2381
|
...r
|
|
2381
2382
|
})));
|
|
2382
2383
|
ze.displayName = "InputGroupText";
|
|
2383
|
-
const
|
|
2384
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2384
|
+
const Rs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2385
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2385
2386
|
type: "checkbox",
|
|
2386
2387
|
...n
|
|
2387
2388
|
})
|
|
2388
|
-
}),
|
|
2389
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2389
|
+
}), qs = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
2390
|
+
children: /* @__PURE__ */ s.jsx(Oe, {
|
|
2390
2391
|
type: "radio",
|
|
2391
2392
|
...n
|
|
2392
2393
|
})
|
|
@@ -2413,8 +2414,8 @@ const Ws = (n) => /* @__PURE__ */ s.jsx(ze, {
|
|
|
2413
2414
|
Kn.displayName = "InputGroup";
|
|
2414
2415
|
const et = Object.assign(Kn, {
|
|
2415
2416
|
Text: ze,
|
|
2416
|
-
Radio:
|
|
2417
|
-
Checkbox:
|
|
2417
|
+
Radio: qs,
|
|
2418
|
+
Checkbox: Rs
|
|
2418
2419
|
}), gt = /* @__PURE__ */ A.forwardRef(({
|
|
2419
2420
|
bsPrefix: n,
|
|
2420
2421
|
variant: e,
|
|
@@ -2435,53 +2436,53 @@ const et = Object.assign(Kn, {
|
|
|
2435
2436
|
});
|
|
2436
2437
|
gt.displayName = "Spinner";
|
|
2437
2438
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2438
|
-
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", Ls = "token_parsing_error",
|
|
2439
|
+
const Qn = "client_info_decoding_error", Xn = "client_info_empty_error", Ls = "token_parsing_error", Ys = "null_or_empty_token", Bs = "endpoints_resolution_error", Hs = "network_error", Gs = "openid_config_error", Vs = "hash_not_deserialized", Us = "invalid_state", zs = "state_mismatch", Ks = "state_not_found", Qs = "nonce_mismatch", Xs = "auth_time_not_found", Js = "max_age_transpired", Zs = "multiple_matching_tokens", ea = "multiple_matching_accounts", ta = "multiple_matching_appMetadata", na = "request_cannot_be_made", ra = "cannot_remove_empty_scope", oa = "cannot_append_scopeset", sa = "empty_input_scopeset", aa = "device_code_polling_cancelled", ia = "device_code_expired", ca = "device_code_unknown_error", la = "no_account_in_silent_request", ua = "invalid_cache_record", Jn = "invalid_cache_environment", da = "no_account_found", ha = "no_crypto_object", ma = "unexpected_credential_type", fa = "invalid_assertion", pa = "invalid_client_credential", ga = "token_refresh_required", wa = "user_timeout_reached", xa = "token_claims_cnf_required_for_signedjwt", ya = "authorization_code_missing_from_server_response", va = "binding_key_not_removed", ba = "end_session_endpoint_not_supported", _a = "key_id_missing", ja = "no_network_connectivity", ka = "user_canceled", Ca = "missing_tenant_id_error", Na = "method_not_implemented", $a = "nested_app_auth_bridge_disabled";
|
|
2439
2440
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2440
2441
|
const At = {
|
|
2441
2442
|
[Qn]: "The client info could not be parsed/decoded correctly",
|
|
2442
2443
|
[Xn]: "The client info was empty",
|
|
2443
2444
|
[Ls]: "Token cannot be parsed",
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
2446
|
-
[
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
2451
|
-
[
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
2456
|
-
[
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2445
|
+
[Ys]: "The token is null or empty",
|
|
2446
|
+
[Bs]: "Endpoints cannot be resolved",
|
|
2447
|
+
[Hs]: "Network request failed",
|
|
2448
|
+
[Gs]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
2449
|
+
[Vs]: "The hash parameters could not be deserialized",
|
|
2450
|
+
[Us]: "State was not the expected format",
|
|
2451
|
+
[zs]: "State mismatch error",
|
|
2452
|
+
[Ks]: "State not found",
|
|
2453
|
+
[Qs]: "Nonce mismatch error",
|
|
2454
|
+
[Xs]: "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.",
|
|
2455
|
+
[Js]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
2456
|
+
[Zs]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
|
|
2457
|
+
[ea]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
2458
|
+
[ta]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
2459
|
+
[na]: "Token request cannot be made without authorization code or refresh token.",
|
|
2460
|
+
[ra]: "Cannot remove null or empty scope from ScopeSet",
|
|
2461
|
+
[oa]: "Cannot append ScopeSet",
|
|
2462
|
+
[sa]: "Empty input ScopeSet cannot be processed",
|
|
2463
|
+
[aa]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
2464
|
+
[ia]: "Device code is expired.",
|
|
2465
|
+
[ca]: "Device code stopped polling for unknown reasons.",
|
|
2466
|
+
[la]: "Please pass an account object, silent flow is not supported without account information",
|
|
2467
|
+
[ua]: "Cache record object was null or undefined.",
|
|
2467
2468
|
[Jn]: "Invalid environment when attempting to create cache entry",
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2476
|
-
[
|
|
2477
|
-
[
|
|
2478
|
-
[
|
|
2479
|
-
[
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
2482
|
-
[
|
|
2483
|
-
[
|
|
2484
|
-
[
|
|
2469
|
+
[da]: "No account found in cache for given key.",
|
|
2470
|
+
[ha]: "No crypto object detected.",
|
|
2471
|
+
[ma]: "Unexpected credential type.",
|
|
2472
|
+
[fa]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
2473
|
+
[pa]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
2474
|
+
[ga]: "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.",
|
|
2475
|
+
[wa]: "User defined timeout for device code polling reached",
|
|
2476
|
+
[xa]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
2477
|
+
[ya]: "Server response does not contain an authorization code to proceed",
|
|
2478
|
+
[va]: "Could not remove the credential's binding key from storage.",
|
|
2479
|
+
[ba]: "The provided authority does not support logout",
|
|
2480
|
+
[_a]: "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.",
|
|
2481
|
+
[ja]: "No network connectivity. Check your internet connection.",
|
|
2482
|
+
[ka]: "User cancelled the flow.",
|
|
2483
|
+
[Ca]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
2484
|
+
[Na]: "This method has not been implemented",
|
|
2485
|
+
[$a]: "The nested app auth bridge is disabled"
|
|
2485
2486
|
};
|
|
2486
2487
|
class wt extends ct {
|
|
2487
2488
|
constructor(e, t) {
|
|
@@ -2503,16 +2504,16 @@ function Ft(n, e) {
|
|
|
2503
2504
|
}
|
|
2504
2505
|
}
|
|
2505
2506
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2506
|
-
function
|
|
2507
|
+
function Ia(n, e) {
|
|
2507
2508
|
return !!n && !!e && n === e.split(".")[1];
|
|
2508
2509
|
}
|
|
2509
|
-
function
|
|
2510
|
+
function Sa(n, e) {
|
|
2510
2511
|
const { oid: t, sub: r, tid: o, name: a, tfp: i, acr: l } = e, c = o || i || l || "";
|
|
2511
2512
|
return {
|
|
2512
2513
|
tenantId: c,
|
|
2513
2514
|
localAccountId: t || r || "",
|
|
2514
2515
|
name: a,
|
|
2515
|
-
isHomeTenant:
|
|
2516
|
+
isHomeTenant: Ia(c, n)
|
|
2516
2517
|
};
|
|
2517
2518
|
}
|
|
2518
2519
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
@@ -2523,11 +2524,11 @@ const tt = {
|
|
|
2523
2524
|
Ciam: 3
|
|
2524
2525
|
};
|
|
2525
2526
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2526
|
-
function
|
|
2527
|
+
function Ta(n) {
|
|
2527
2528
|
return n && (n.tid || n.tfp || n.acr) || null;
|
|
2528
2529
|
}
|
|
2529
2530
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2530
|
-
const
|
|
2531
|
+
const Ea = {
|
|
2531
2532
|
AAD: "AAD",
|
|
2532
2533
|
OIDC: "OIDC"
|
|
2533
2534
|
};
|
|
@@ -2592,20 +2593,20 @@ class $e {
|
|
|
2592
2593
|
*/
|
|
2593
2594
|
static createAccount(e, t, r) {
|
|
2594
2595
|
const o = new $e();
|
|
2595
|
-
t.authorityType === tt.Adfs ? o.authorityType =
|
|
2596
|
+
t.authorityType === tt.Adfs ? o.authorityType = De.ADFS_ACCOUNT_TYPE : t.protocolMode === Ea.AAD ? o.authorityType = De.MSSTS_ACCOUNT_TYPE : o.authorityType = De.GENERIC_ACCOUNT_TYPE;
|
|
2596
2597
|
let a;
|
|
2597
2598
|
e.clientInfo && r && (a = Ft(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
|
|
2598
2599
|
const i = e.environment || t && t.getPreferredCache();
|
|
2599
2600
|
if (!i)
|
|
2600
2601
|
throw ot(Jn);
|
|
2601
|
-
o.environment = i, o.realm = (a == null ? void 0 : a.utid) ||
|
|
2602
|
+
o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Ta(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
|
|
2602
2603
|
const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
|
|
2603
2604
|
if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
|
|
2604
2605
|
o.tenantProfiles = e.tenantProfiles;
|
|
2605
2606
|
else {
|
|
2606
2607
|
const u = [];
|
|
2607
2608
|
if (e.idTokenClaims) {
|
|
2608
|
-
const d =
|
|
2609
|
+
const d = Sa(e.homeAccountId, e.idTokenClaims);
|
|
2609
2610
|
u.push(d);
|
|
2610
2611
|
}
|
|
2611
2612
|
o.tenantProfiles = u;
|
|
@@ -2622,7 +2623,7 @@ class $e {
|
|
|
2622
2623
|
static createFromAccountInfo(e, t, r) {
|
|
2623
2624
|
var a;
|
|
2624
2625
|
const o = new $e();
|
|
2625
|
-
return o.authorityType = e.authorityType ||
|
|
2626
|
+
return o.authorityType = e.authorityType || De.GENERIC_ACCOUNT_TYPE, o.homeAccountId = e.homeAccountId, o.localAccountId = e.localAccountId, o.nativeAccountId = e.nativeAccountId, o.realm = e.tenantId, o.environment = e.environment, o.username = e.username, o.name = e.name, o.cloudGraphHostName = t, o.msGraphHost = r, o.tenantProfiles = Array.from(((a = e.tenantProfiles) == null ? void 0 : a.values()) || []), o;
|
|
2626
2627
|
}
|
|
2627
2628
|
/**
|
|
2628
2629
|
* Generate HomeAccountId from server response
|
|
@@ -2669,16 +2670,16 @@ class $e {
|
|
|
2669
2670
|
/*! @azure/msal-common v14.10.0 2024-05-07 */
|
|
2670
2671
|
class xt extends ct {
|
|
2671
2672
|
constructor(e, t, r, o, a, i, l, c) {
|
|
2672
|
-
super(e, t, r), Object.setPrototypeOf(this, xt.prototype), this.timestamp = o ||
|
|
2673
|
+
super(e, t, r), Object.setPrototypeOf(this, xt.prototype), this.timestamp = o || Pe.EMPTY_STRING, this.traceId = a || Pe.EMPTY_STRING, this.correlationId = i || Pe.EMPTY_STRING, this.claims = l || Pe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = c;
|
|
2673
2674
|
}
|
|
2674
2675
|
}
|
|
2675
2676
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2676
2677
|
function Wt(n, e) {
|
|
2677
2678
|
return !e || !e.homeAccountId && !e.localAccountId && !e.username ? n.getActiveAccount() : Cr(n.getAllAccounts(), e);
|
|
2678
2679
|
}
|
|
2679
|
-
function
|
|
2680
|
-
const { instance: e, inProgress: t, logger: r } = lt(), [o, a] =
|
|
2681
|
-
return
|
|
2680
|
+
function Oa(n) {
|
|
2681
|
+
const { instance: e, inProgress: t, logger: r } = lt(), [o, a] = D(() => Wt(e, n));
|
|
2682
|
+
return M(() => {
|
|
2682
2683
|
a((i) => {
|
|
2683
2684
|
const l = Wt(e, n);
|
|
2684
2685
|
return $e.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
|
|
@@ -2686,7 +2687,7 @@ function Ea(n) {
|
|
|
2686
2687
|
}, [t, n, e, r]), o;
|
|
2687
2688
|
}
|
|
2688
2689
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2689
|
-
const
|
|
2690
|
+
const We = {
|
|
2690
2691
|
invalidInteractionType: {
|
|
2691
2692
|
code: "invalid_interaction_type",
|
|
2692
2693
|
desc: "The provided interaction type is invalid."
|
|
@@ -2696,29 +2697,29 @@ const Fe = {
|
|
|
2696
2697
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
2697
2698
|
}
|
|
2698
2699
|
};
|
|
2699
|
-
class
|
|
2700
|
+
class _e extends ct {
|
|
2700
2701
|
constructor(e, t) {
|
|
2701
|
-
super(e, t), Object.setPrototypeOf(this,
|
|
2702
|
+
super(e, t), Object.setPrototypeOf(this, _e.prototype), this.name = "ReactAuthError";
|
|
2702
2703
|
}
|
|
2703
2704
|
static createInvalidInteractionTypeError() {
|
|
2704
|
-
return new
|
|
2705
|
+
return new _e(We.invalidInteractionType.code, We.invalidInteractionType.desc);
|
|
2705
2706
|
}
|
|
2706
2707
|
static createUnableToFallbackToInteractionError() {
|
|
2707
|
-
return new
|
|
2708
|
+
return new _e(We.unableToFallbackToInteraction.code, We.unableToFallbackToInteraction.desc);
|
|
2708
2709
|
}
|
|
2709
2710
|
}
|
|
2710
2711
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2711
|
-
function
|
|
2712
|
-
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l =
|
|
2713
|
-
|
|
2712
|
+
function Ma(n, e, t) {
|
|
2713
|
+
const { instance: r, inProgress: o, logger: a } = lt(), i = Kt(t), l = Oa(t), [[c, u], d] = D([null, null]), h = Y(!0);
|
|
2714
|
+
M(() => () => {
|
|
2714
2715
|
h.current = !1;
|
|
2715
2716
|
}, []);
|
|
2716
2717
|
const m = Y(o !== Ne.None);
|
|
2717
|
-
|
|
2718
|
+
M(() => {
|
|
2718
2719
|
m.current = o !== Ne.None;
|
|
2719
2720
|
}, [o]);
|
|
2720
2721
|
const g = Y(!0);
|
|
2721
|
-
|
|
2722
|
+
M(() => {
|
|
2722
2723
|
if (u) {
|
|
2723
2724
|
g.current = !1;
|
|
2724
2725
|
return;
|
|
@@ -2728,23 +2729,23 @@ function Oa(n, e, t) {
|
|
|
2728
2729
|
return;
|
|
2729
2730
|
}
|
|
2730
2731
|
}, [u, c]);
|
|
2731
|
-
const b =
|
|
2732
|
-
const v = f || n, p =
|
|
2732
|
+
const b = E(async (f, _) => {
|
|
2733
|
+
const v = f || n, p = _ || e;
|
|
2733
2734
|
switch (v) {
|
|
2734
|
-
case
|
|
2735
|
+
case qe.Popup:
|
|
2735
2736
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(p);
|
|
2736
|
-
case
|
|
2737
|
+
case qe.Redirect:
|
|
2737
2738
|
return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(p).then(null);
|
|
2738
|
-
case
|
|
2739
|
+
case qe.Silent:
|
|
2739
2740
|
return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(p);
|
|
2740
2741
|
default:
|
|
2741
|
-
throw
|
|
2742
|
+
throw _e.createInvalidInteractionTypeError();
|
|
2742
2743
|
}
|
|
2743
|
-
}, [r, n, e, a]), w =
|
|
2744
|
+
}, [r, n, e, a]), w = E(async (f, _) => {
|
|
2744
2745
|
const v = f || n;
|
|
2745
2746
|
let p;
|
|
2746
|
-
return
|
|
2747
|
-
...
|
|
2747
|
+
return _ ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), p = {
|
|
2748
|
+
..._
|
|
2748
2749
|
}) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), p = {
|
|
2749
2750
|
...e,
|
|
2750
2751
|
scopes: e.scopes || jt
|
|
@@ -2753,7 +2754,7 @@ function Oa(n, e, t) {
|
|
|
2753
2754
|
}), !p.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), p.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(p).catch(async (k) => {
|
|
2754
2755
|
if (k instanceof xt) {
|
|
2755
2756
|
if (m.current)
|
|
2756
|
-
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."),
|
|
2757
|
+
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), _e.createUnableToFallbackToInteractionError();
|
|
2757
2758
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(v, p);
|
|
2758
2759
|
}
|
|
2759
2760
|
throw k;
|
|
@@ -2768,26 +2769,26 @@ function Oa(n, e, t) {
|
|
|
2768
2769
|
l,
|
|
2769
2770
|
b
|
|
2770
2771
|
]);
|
|
2771
|
-
return
|
|
2772
|
-
const f = r.addEventCallback((
|
|
2773
|
-
switch (
|
|
2774
|
-
case
|
|
2775
|
-
case
|
|
2776
|
-
|
|
2777
|
-
|
|
2772
|
+
return M(() => {
|
|
2773
|
+
const f = r.addEventCallback((_) => {
|
|
2774
|
+
switch (_.eventType) {
|
|
2775
|
+
case Ae.LOGIN_SUCCESS:
|
|
2776
|
+
case Ae.SSO_SILENT_SUCCESS:
|
|
2777
|
+
_.payload && d([
|
|
2778
|
+
_.payload,
|
|
2778
2779
|
null
|
|
2779
2780
|
]);
|
|
2780
2781
|
break;
|
|
2781
|
-
case
|
|
2782
|
-
case
|
|
2783
|
-
|
|
2782
|
+
case Ae.LOGIN_FAILURE:
|
|
2783
|
+
case Ae.SSO_SILENT_FAILURE:
|
|
2784
|
+
_.error && d([null, _.error]);
|
|
2784
2785
|
break;
|
|
2785
2786
|
}
|
|
2786
2787
|
});
|
|
2787
2788
|
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${f}`), () => {
|
|
2788
2789
|
f && (a.verbose(`useMsalAuthentication - Removing event callback ${f}`), r.removeEventCallback(f));
|
|
2789
2790
|
};
|
|
2790
|
-
}, [r, a]),
|
|
2791
|
+
}, [r, a]), M(() => {
|
|
2791
2792
|
g.current && o === Ne.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), w().catch(() => {
|
|
2792
2793
|
})) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), b().catch(() => {
|
|
2793
2794
|
})));
|
|
@@ -2799,25 +2800,25 @@ function Oa(n, e, t) {
|
|
|
2799
2800
|
};
|
|
2800
2801
|
}
|
|
2801
2802
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
2802
|
-
function
|
|
2803
|
+
function Da({ interactionType: n, username: e, homeAccountId: t, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
|
|
2803
2804
|
const c = Q(() => ({
|
|
2804
2805
|
username: e,
|
|
2805
2806
|
homeAccountId: t,
|
|
2806
2807
|
localAccountId: r
|
|
2807
|
-
}), [e, t, r]), u = lt(), d =
|
|
2808
|
+
}), [e, t, r]), u = lt(), d = Ma(n, o, c), h = Kt(c);
|
|
2808
2809
|
if (d.error && u.inProgress === Ne.None) {
|
|
2809
2810
|
if (i)
|
|
2810
|
-
return
|
|
2811
|
+
return Z.createElement(i, { ...d });
|
|
2811
2812
|
throw d.error;
|
|
2812
2813
|
}
|
|
2813
|
-
return h ?
|
|
2814
|
+
return h ? Z.createElement(Z.Fragment, null, Nr(l, d)) : a && u.inProgress !== Ne.None ? Z.createElement(a, { ...u }) : null;
|
|
2814
2815
|
}
|
|
2815
|
-
const
|
|
2816
|
+
const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
2816
2817
|
"submit-container": "_submit-container_a9slg_1",
|
|
2817
|
-
submitContainer:
|
|
2818
|
-
spacer:
|
|
2819
|
-
},
|
|
2820
|
-
const { formSubmitTexts: t } =
|
|
2818
|
+
submitContainer: Pa,
|
|
2819
|
+
spacer: Aa
|
|
2820
|
+
}, Fa = ({ children: n, onStorno: e }) => {
|
|
2821
|
+
const { formSubmitTexts: t } = q(oe);
|
|
2821
2822
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2822
2823
|
/* @__PURE__ */ s.jsx("div", { className: Rt.spacer }),
|
|
2823
2824
|
/* @__PURE__ */ s.jsxs("div", { className: x("luminus-floating-submit-container shadow", Rt.submitContainer), children: [
|
|
@@ -2831,8 +2832,8 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2831
2832
|
] })
|
|
2832
2833
|
] })
|
|
2833
2834
|
] });
|
|
2834
|
-
},
|
|
2835
|
-
button:
|
|
2835
|
+
}, Wa = "_button_1r3i0_1", st = {
|
|
2836
|
+
button: Wa
|
|
2836
2837
|
}, at = ({
|
|
2837
2838
|
color: n = "primary",
|
|
2838
2839
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -2841,7 +2842,7 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2841
2842
|
children: r,
|
|
2842
2843
|
...o
|
|
2843
2844
|
}) => {
|
|
2844
|
-
const { LinkComponent: a } =
|
|
2845
|
+
const { LinkComponent: a } = q(oe);
|
|
2845
2846
|
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: x(`luminus-context-button btn text-${n} ${t ?? ""}`, st.button), ...o, children: [
|
|
2846
2847
|
e,
|
|
2847
2848
|
r
|
|
@@ -2860,82 +2861,82 @@ const Da = "_submit-container_a9slg_1", Pa = "_spacer_a9slg_14", Rt = {
|
|
|
2860
2861
|
] }),
|
|
2861
2862
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2862
2863
|
] });
|
|
2863
|
-
},
|
|
2864
|
+
}, Ra = "_icon-button_15e26_1", qa = "_sm_15e26_14", La = "_md_15e26_23", Ya = "_lg_15e26_32", Re = {
|
|
2864
2865
|
"icon-button": "_icon-button_15e26_1",
|
|
2865
|
-
iconButton:
|
|
2866
|
-
sm:
|
|
2866
|
+
iconButton: Ra,
|
|
2867
|
+
sm: qa,
|
|
2867
2868
|
md: La,
|
|
2868
|
-
lg:
|
|
2869
|
-
},
|
|
2870
|
-
const { LinkComponent: i } =
|
|
2871
|
-
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2869
|
+
lg: Ya
|
|
2870
|
+
}, X = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: o, ...a }) => {
|
|
2871
|
+
const { LinkComponent: i } = q(oe);
|
|
2872
|
+
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
2872
2873
|
"button",
|
|
2873
2874
|
{
|
|
2874
2875
|
type: n,
|
|
2875
|
-
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`,
|
|
2876
|
+
className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[t]),
|
|
2876
2877
|
...a,
|
|
2877
2878
|
children: r
|
|
2878
2879
|
}
|
|
2879
2880
|
) : null;
|
|
2880
|
-
},
|
|
2881
|
-
const r =
|
|
2881
|
+
}, Ac = ({ month: n, onChangeMonth: e, locale: t }) => {
|
|
2882
|
+
const r = E((o) => {
|
|
2882
2883
|
e(un(n, o));
|
|
2883
2884
|
}, [n, e]);
|
|
2884
2885
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2885
|
-
/* @__PURE__ */ s.jsx(
|
|
2886
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2886
2887
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "LLLL yyyy", { locale: t }) }),
|
|
2887
|
-
/* @__PURE__ */ s.jsx(
|
|
2888
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2888
2889
|
] });
|
|
2889
|
-
},
|
|
2890
|
-
const r =
|
|
2891
|
-
e(
|
|
2890
|
+
}, Fc = ({ year: n, onChangeYear: e, locale: t }) => {
|
|
2891
|
+
const r = E((o) => {
|
|
2892
|
+
e(no(n, o));
|
|
2892
2893
|
}, [n, e]);
|
|
2893
2894
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
2894
|
-
/* @__PURE__ */ s.jsx(
|
|
2895
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2895
2896
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "yyyy", { locale: t }) }),
|
|
2896
|
-
/* @__PURE__ */ s.jsx(
|
|
2897
|
+
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2897
2898
|
] });
|
|
2898
|
-
},
|
|
2899
|
-
widget:
|
|
2900
|
-
},
|
|
2901
|
-
/* @__PURE__ */ s.jsx(
|
|
2902
|
-
/* @__PURE__ */ s.jsx(
|
|
2903
|
-
] }),
|
|
2904
|
-
const [r, o] =
|
|
2899
|
+
}, Ba = "_widget_etgh3_1", Ha = {
|
|
2900
|
+
widget: Ba
|
|
2901
|
+
}, Ga = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: n, onHide: () => t(), children: [
|
|
2902
|
+
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2903
|
+
/* @__PURE__ */ s.jsx(Fe.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 }) })) }) })
|
|
2904
|
+
] }), qt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2905
|
+
const [r, o] = D(!1);
|
|
2905
2906
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2906
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2907
|
-
/* @__PURE__ */ s.jsx(
|
|
2907
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Ha.widget), children: /* @__PURE__ */ s.jsx(X, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Sr, {}) }) }),
|
|
2908
|
+
/* @__PURE__ */ s.jsx(Ga, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2908
2909
|
o(!1), e(a);
|
|
2909
2910
|
}, texts: t })
|
|
2910
2911
|
] });
|
|
2911
|
-
},
|
|
2912
|
-
const [e, t] =
|
|
2913
|
-
|
|
2912
|
+
}, Va = (n) => {
|
|
2913
|
+
const [e, t] = D({ widgets: [] });
|
|
2914
|
+
M(() => {
|
|
2914
2915
|
const o = localStorage.getItem("dashboardConfig");
|
|
2915
2916
|
o ? t(JSON.parse(o)) : n && t(n);
|
|
2916
2917
|
}, [n]);
|
|
2917
|
-
const r =
|
|
2918
|
+
const r = E((o) => {
|
|
2918
2919
|
t(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2919
2920
|
}, []);
|
|
2920
2921
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2921
|
-
},
|
|
2922
|
-
dashboard:
|
|
2922
|
+
}, Ua = "_dashboard_16plm_1", za = "_widgets-grid_16plm_1", Ka = "_widget-wrapper_16plm_8", Qa = "_full-width_16plm_13", Xa = "_widget-edit_16plm_16", Ja = "_remove-icon_16plm_19", Za = "_full-width-icon_16plm_26", ei = "_widget-edit-overlay_16plm_36", ae = {
|
|
2923
|
+
dashboard: Ua,
|
|
2923
2924
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2924
|
-
widgetsGrid:
|
|
2925
|
+
widgetsGrid: za,
|
|
2925
2926
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2926
|
-
widgetWrapper:
|
|
2927
|
+
widgetWrapper: Ka,
|
|
2927
2928
|
"full-width": "_full-width_16plm_13",
|
|
2928
|
-
fullWidth:
|
|
2929
|
+
fullWidth: Qa,
|
|
2929
2930
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2930
|
-
widgetEdit:
|
|
2931
|
+
widgetEdit: Xa,
|
|
2931
2932
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2932
|
-
removeIcon:
|
|
2933
|
+
removeIcon: Ja,
|
|
2933
2934
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2934
|
-
fullWidthIcon:
|
|
2935
|
+
fullWidthIcon: Za,
|
|
2935
2936
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2936
|
-
widgetEditOverlay:
|
|
2937
|
+
widgetEditOverlay: ei
|
|
2937
2938
|
};
|
|
2938
|
-
class
|
|
2939
|
+
class ti extends Lr {
|
|
2939
2940
|
constructor(e) {
|
|
2940
2941
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2941
2942
|
}
|
|
@@ -2951,7 +2952,7 @@ class ei extends qr {
|
|
|
2951
2952
|
}
|
|
2952
2953
|
render() {
|
|
2953
2954
|
const { fallback: e, children: t, texts: r, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
2954
|
-
return this.state.hasError ? o === "inject-to-child" && Yr(e) ?
|
|
2955
|
+
return this.state.hasError ? o === "inject-to-child" && Yr(e) ? Z.cloneElement(e, {
|
|
2955
2956
|
...e.props
|
|
2956
2957
|
}, /* @__PURE__ */ s.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2957
2958
|
...e.props.children,
|
|
@@ -2962,18 +2963,18 @@ class ei extends qr {
|
|
|
2962
2963
|
] }) : t;
|
|
2963
2964
|
}
|
|
2964
2965
|
}
|
|
2965
|
-
const
|
|
2966
|
-
const { errorBoundaryTexts: r } =
|
|
2966
|
+
const ni = (n) => (t) => {
|
|
2967
|
+
const { errorBoundaryTexts: r } = q(oe);
|
|
2967
2968
|
return /* @__PURE__ */ s.jsx(n, { texts: r, ...t });
|
|
2968
|
-
},
|
|
2969
|
+
}, ri = ni(ti), oi = "_widget-card_e9tsb_1", si = {
|
|
2969
2970
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2970
|
-
widgetCard:
|
|
2971
|
-
},
|
|
2972
|
-
const { widgetTexts: t } =
|
|
2973
|
-
return /* @__PURE__ */ s.jsx(
|
|
2974
|
-
},
|
|
2971
|
+
widgetCard: oi
|
|
2972
|
+
}, Lt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ s.jsx(lc, { className: x(si.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), ai = ({ children: n, title: e }) => {
|
|
2973
|
+
const { widgetTexts: t } = q(oe);
|
|
2974
|
+
return /* @__PURE__ */ s.jsx(ri, { fallback: /* @__PURE__ */ s.jsx(Lt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(Br, { fallback: /* @__PURE__ */ s.jsx(Lt, { title: e, children: /* @__PURE__ */ s.jsx(Jr, {}) }), children: n }) });
|
|
2975
|
+
}, Wc = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2975
2976
|
var d;
|
|
2976
|
-
const { homeDashboardTexts: r } =
|
|
2977
|
+
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Va(t), i = E((h, m) => {
|
|
2977
2978
|
var g, b;
|
|
2978
2979
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2979
2980
|
...o,
|
|
@@ -2982,26 +2983,26 @@ const ti = (n) => (t) => {
|
|
|
2982
2983
|
...o,
|
|
2983
2984
|
widgets: ((b = o.widgets) == null ? void 0 : b.map((w, f) => f === h ? { widgetId: m, fullWidth: !1 } : w)) ?? []
|
|
2984
2985
|
});
|
|
2985
|
-
}, [o, a]), l =
|
|
2986
|
+
}, [o, a]), l = E((h) => {
|
|
2986
2987
|
var m, g;
|
|
2987
2988
|
((m = o.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? a({
|
|
2988
2989
|
...o,
|
|
2989
2990
|
widgets: ((g = o.widgets) == null ? void 0 : g.filter((b, w) => w !== h)) ?? []
|
|
2990
2991
|
}) : i(h, -1);
|
|
2991
|
-
}, [o, a, i]), c =
|
|
2992
|
+
}, [o, a, i]), c = E((h) => {
|
|
2992
2993
|
var m;
|
|
2993
2994
|
a({
|
|
2994
2995
|
...o,
|
|
2995
2996
|
widgets: ((m = o.widgets) == null ? void 0 : m.map((g, b) => b === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
|
|
2996
2997
|
});
|
|
2997
|
-
}, [o, a]), u =
|
|
2998
|
+
}, [o, a]), u = E((h, m, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: x(ae.widgetWrapper, {
|
|
2998
2999
|
[ae.widgetEdit]: e && h.id !== -1
|
|
2999
3000
|
}, { [ae.fullWidth]: g }), children: [
|
|
3000
3001
|
e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3001
|
-
/* @__PURE__ */ s.jsx(
|
|
3002
|
-
/* @__PURE__ */ s.jsx(
|
|
3002
|
+
/* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className: x(ae.removeIcon), children: /* @__PURE__ */ s.jsx(Xt, {}) }),
|
|
3003
|
+
/* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(m), className: x(ae.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3003
3004
|
] }),
|
|
3004
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
3005
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (b) => i(m, b), texts: r }) }) : /* @__PURE__ */ s.jsx(ai, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3005
3006
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetEditOverlay })
|
|
3006
3007
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3007
3008
|
e,
|
|
@@ -3013,23 +3014,23 @@ const ti = (n) => (t) => {
|
|
|
3013
3014
|
]);
|
|
3014
3015
|
return /* @__PURE__ */ s.jsx("div", { className: ae.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ae.widgetsGrid, children: [
|
|
3015
3016
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(n.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
3016
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3017
|
+
e && /* @__PURE__ */ s.jsx(qt, { availableWidgets: n, onAdd: (h) => {
|
|
3017
3018
|
var m;
|
|
3018
3019
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
3019
3020
|
}, texts: r })
|
|
3020
3021
|
] }) });
|
|
3021
|
-
},
|
|
3022
|
-
badge:
|
|
3023
|
-
sm:
|
|
3024
|
-
md:
|
|
3025
|
-
lg:
|
|
3026
|
-
},
|
|
3022
|
+
}, ii = "_badge_nhser_1", ci = "_sm_nhser_1", li = "_md_nhser_4", ui = "_lg_nhser_7", Yt = {
|
|
3023
|
+
badge: ii,
|
|
3024
|
+
sm: ci,
|
|
3025
|
+
md: li,
|
|
3026
|
+
lg: ui
|
|
3027
|
+
}, Rc = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Yt.badge, Yt[t]), children: n }), di = "_collapse-icon_1ahhn_1", hi = "_collapsed_1ahhn_6", Bt = {
|
|
3027
3028
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3028
|
-
collapseIcon:
|
|
3029
|
-
collapsed:
|
|
3030
|
-
},
|
|
3031
|
-
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] =
|
|
3032
|
-
return
|
|
3029
|
+
collapseIcon: di,
|
|
3030
|
+
collapsed: hi
|
|
3031
|
+
}, qc = ({ title: n, children: e, className: t, ...r }) => {
|
|
3032
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = D(o), l = r.controlled ? r.isOpen : a;
|
|
3033
|
+
return M(() => {
|
|
3033
3034
|
i(o);
|
|
3034
3035
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: t ?? "", children: [
|
|
3035
3036
|
/* @__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: [
|
|
@@ -3041,58 +3042,58 @@ const ti = (n) => (t) => {
|
|
|
3041
3042
|
/* @__PURE__ */ s.jsx(pn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3042
3043
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3043
3044
|
] });
|
|
3044
|
-
},
|
|
3045
|
-
feedback:
|
|
3045
|
+
}, mi = "_feedback_esh1j_1", fi = "_feedback-spacer_esh1j_8", Ht = {
|
|
3046
|
+
feedback: mi,
|
|
3046
3047
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3047
|
-
feedbackSpacer:
|
|
3048
|
-
},
|
|
3048
|
+
feedbackSpacer: fi
|
|
3049
|
+
}, ve = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3049
3050
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Ht.feedback), children: n }),
|
|
3050
3051
|
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Ht.feedbackSpacer), children: n })
|
|
3051
3052
|
] });
|
|
3052
|
-
function
|
|
3053
|
+
function pi(n, e, t) {
|
|
3053
3054
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(n), h = Y(!0);
|
|
3054
3055
|
d.current = n;
|
|
3055
3056
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
3056
3057
|
if (typeof n != "function")
|
|
3057
3058
|
throw new TypeError("Expected a function");
|
|
3058
3059
|
e = +e || 0;
|
|
3059
|
-
var b = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, f = "maxWait" in t,
|
|
3060
|
-
|
|
3060
|
+
var b = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, f = "maxWait" in t, _ = "debounceOnServer" in t && !!t.debounceOnServer, v = f ? Math.max(+t.maxWait || 0, e) : null;
|
|
3061
|
+
M(function() {
|
|
3061
3062
|
return h.current = !0, function() {
|
|
3062
3063
|
h.current = !1;
|
|
3063
3064
|
};
|
|
3064
3065
|
}, []);
|
|
3065
3066
|
var p = Q(function() {
|
|
3066
3067
|
var C = function(N) {
|
|
3067
|
-
var
|
|
3068
|
-
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T,
|
|
3069
|
-
}, k = function(N,
|
|
3070
|
-
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(N) : setTimeout(N,
|
|
3068
|
+
var j = l.current, T = c.current;
|
|
3069
|
+
return l.current = c.current = null, a.current = N, u.current = d.current.apply(T, j);
|
|
3070
|
+
}, k = function(N, j) {
|
|
3071
|
+
g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(N) : setTimeout(N, j);
|
|
3071
3072
|
}, y = function(N) {
|
|
3072
3073
|
if (!h.current)
|
|
3073
3074
|
return !1;
|
|
3074
|
-
var
|
|
3075
|
-
return !o.current ||
|
|
3075
|
+
var j = N - o.current;
|
|
3076
|
+
return !o.current || j >= e || j < 0 || f && N - a.current >= v;
|
|
3076
3077
|
}, $ = function(N) {
|
|
3077
3078
|
return i.current = null, w && l.current ? C(N) : (l.current = c.current = null, u.current);
|
|
3078
|
-
},
|
|
3079
|
-
var
|
|
3080
|
-
if (y(
|
|
3081
|
-
return $(
|
|
3079
|
+
}, P = function N() {
|
|
3080
|
+
var j = Date.now();
|
|
3081
|
+
if (y(j))
|
|
3082
|
+
return $(j);
|
|
3082
3083
|
if (h.current) {
|
|
3083
|
-
var T = e - (
|
|
3084
|
+
var T = e - (j - o.current), F = f ? Math.min(T, v - (j - a.current)) : T;
|
|
3084
3085
|
k(N, F);
|
|
3085
3086
|
}
|
|
3086
3087
|
}, I = function() {
|
|
3087
|
-
if (m ||
|
|
3088
|
-
var N = Date.now(),
|
|
3089
|
-
if (l.current = [].slice.call(arguments), c.current = r, o.current = N,
|
|
3088
|
+
if (m || _) {
|
|
3089
|
+
var N = Date.now(), j = y(N);
|
|
3090
|
+
if (l.current = [].slice.call(arguments), c.current = r, o.current = N, j) {
|
|
3090
3091
|
if (!i.current && h.current)
|
|
3091
|
-
return a.current = o.current, k(
|
|
3092
|
+
return a.current = o.current, k(P, e), b ? C(o.current) : u.current;
|
|
3092
3093
|
if (f)
|
|
3093
|
-
return k(
|
|
3094
|
+
return k(P, e), C(o.current);
|
|
3094
3095
|
}
|
|
3095
|
-
return i.current || k(
|
|
3096
|
+
return i.current || k(P, e), u.current;
|
|
3096
3097
|
}
|
|
3097
3098
|
};
|
|
3098
3099
|
return I.cancel = function() {
|
|
@@ -3102,114 +3103,114 @@ function fi(n, e, t) {
|
|
|
3102
3103
|
}, I.flush = function() {
|
|
3103
3104
|
return i.current ? $(Date.now()) : u.current;
|
|
3104
3105
|
}, I;
|
|
3105
|
-
}, [b, f, e, v, w, g, m,
|
|
3106
|
+
}, [b, f, e, v, w, g, m, _]);
|
|
3106
3107
|
return p;
|
|
3107
3108
|
}
|
|
3108
|
-
function
|
|
3109
|
+
function gi(n, e) {
|
|
3109
3110
|
return n === e;
|
|
3110
3111
|
}
|
|
3111
|
-
function
|
|
3112
|
+
function wi(n, e) {
|
|
3112
3113
|
return e;
|
|
3113
3114
|
}
|
|
3114
3115
|
function er(n, e, t) {
|
|
3115
|
-
var r =
|
|
3116
|
+
var r = gi, o = tn(wi, n), a = o[0], i = o[1], l = pi(E(function(u) {
|
|
3116
3117
|
return i(u);
|
|
3117
3118
|
}, [i]), e, t), c = Y(n);
|
|
3118
3119
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3119
3120
|
}
|
|
3120
|
-
const
|
|
3121
|
-
wrapper:
|
|
3122
|
-
open:
|
|
3123
|
-
dropdown:
|
|
3121
|
+
const xi = "_wrapper_uccrb_1", yi = "_open_uccrb_9", vi = "_dropdown_uccrb_13", bi = "_search-input-container_uccrb_19", _i = "_search-input_uccrb_19", ji = "_loading-container_uccrb_25", ki = "_items-container_uccrb_32", Ci = "_header-row_uccrb_38", Ni = "_item_uccrb_32", $i = "_name_uccrb_57", Ii = "_column-item_uccrb_62", Si = "_icon_uccrb_66", Ti = "_clear-button_uccrb_74", J = {
|
|
3122
|
+
wrapper: xi,
|
|
3123
|
+
open: yi,
|
|
3124
|
+
dropdown: vi,
|
|
3124
3125
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3125
|
-
searchInputContainer:
|
|
3126
|
+
searchInputContainer: bi,
|
|
3126
3127
|
"search-input": "_search-input_uccrb_19",
|
|
3127
|
-
searchInput:
|
|
3128
|
+
searchInput: _i,
|
|
3128
3129
|
"loading-container": "_loading-container_uccrb_25",
|
|
3129
|
-
loadingContainer:
|
|
3130
|
+
loadingContainer: ji,
|
|
3130
3131
|
"items-container": "_items-container_uccrb_32",
|
|
3131
|
-
itemsContainer:
|
|
3132
|
+
itemsContainer: ki,
|
|
3132
3133
|
"header-row": "_header-row_uccrb_38",
|
|
3133
|
-
headerRow:
|
|
3134
|
-
item:
|
|
3135
|
-
name:
|
|
3134
|
+
headerRow: Ci,
|
|
3135
|
+
item: Ni,
|
|
3136
|
+
name: $i,
|
|
3136
3137
|
"column-item": "_column-item_uccrb_62",
|
|
3137
|
-
columnItem:
|
|
3138
|
-
icon:
|
|
3138
|
+
columnItem: Ii,
|
|
3139
|
+
icon: Si,
|
|
3139
3140
|
"clear-button": "_clear-button_uccrb_74",
|
|
3140
|
-
clearButton:
|
|
3141
|
+
clearButton: Ti
|
|
3141
3142
|
}, yt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: b }) => {
|
|
3142
3143
|
var S;
|
|
3143
|
-
const w = Y(null), f = Y(null),
|
|
3144
|
-
|
|
3145
|
-
var
|
|
3146
|
-
n && ((
|
|
3147
|
-
}, [
|
|
3144
|
+
const w = Y(null), f = Y(null), _ = Y(null), [v, p] = D(""), [C] = er(v, 500), [, k] = D(!1), y = (S = b.current) == null ? void 0 : S.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, P = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), I = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), j = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), B = Q(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
3145
|
+
M(() => {
|
|
3146
|
+
var O;
|
|
3147
|
+
n && ((O = _.current) == null || O.focus());
|
|
3148
|
+
}, [_, n]), M(() => {
|
|
3148
3149
|
n || p("");
|
|
3149
|
-
}, [n]),
|
|
3150
|
+
}, [n]), M(() => {
|
|
3150
3151
|
a(C);
|
|
3151
3152
|
}, [C, a]);
|
|
3152
|
-
const R =
|
|
3153
|
-
switch (
|
|
3153
|
+
const R = E((O) => {
|
|
3154
|
+
switch (O.key) {
|
|
3154
3155
|
case "Escape":
|
|
3155
|
-
|
|
3156
|
+
O.stopPropagation(), e();
|
|
3156
3157
|
break;
|
|
3157
3158
|
}
|
|
3158
|
-
}, [e]), G =
|
|
3159
|
-
k((
|
|
3159
|
+
}, [e]), G = E(() => {
|
|
3160
|
+
k((O) => !O);
|
|
3160
3161
|
}, []);
|
|
3161
|
-
|
|
3162
|
+
M(() => (window.addEventListener("scroll", G), () => {
|
|
3162
3163
|
window.removeEventListener("scroll", G);
|
|
3163
|
-
}), [G]),
|
|
3164
|
+
}), [G]), M(() => (window.addEventListener("resize", G), () => {
|
|
3164
3165
|
window.removeEventListener("resize", G);
|
|
3165
3166
|
}), [G]), an(R), cn([w, f], e);
|
|
3166
|
-
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((
|
|
3167
|
+
const se = l ?? (c && c.length > 0 ? 250 : 0), te = (c == null ? void 0 : c.reduce((O, K) => O + (K.width ?? 100), 0)) ?? 0, U = `calc(max(${j}px, ${se}px + ${te}px))`;
|
|
3167
3168
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3168
3169
|
/* @__PURE__ */ s.jsx(nr, { show: n, onClick: e }),
|
|
3169
|
-
r && n && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button",
|
|
3170
|
+
r && n && !m && /* @__PURE__ */ s.jsx("button", { ref: f, type: "button", className: x("luminus-dropdown-picker-clear-button", J.clearButton), onClick: () => !m && o(null), style: {
|
|
3170
3171
|
top: `calc(${I}px + ${T / 2}px - 12px)`,
|
|
3171
3172
|
left: `calc(${$}px - 24px - 8px)`
|
|
3172
3173
|
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Xt, { size: 16 }) }) }),
|
|
3173
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker",
|
|
3174
|
-
[
|
|
3174
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-dropdown-picker", J.wrapper, {
|
|
3175
|
+
[J.open]: n
|
|
3175
3176
|
}), style: {
|
|
3176
3177
|
top: B ? `calc(${I}px - 50vh - 8px)` : `calc(${N}px + 8px)`,
|
|
3177
|
-
left: W ? `calc(${
|
|
3178
|
-
right: W ? `${
|
|
3178
|
+
left: W ? `calc(${P}px - ${U})` : $,
|
|
3179
|
+
right: W ? `${P}px` : `calc(${$}px + ${U})`,
|
|
3179
3180
|
width: U,
|
|
3180
3181
|
justifyContent: B ? "flex-end" : "flex-start"
|
|
3181
|
-
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded",
|
|
3182
|
-
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom",
|
|
3182
|
+
}, children: /* @__PURE__ */ s.jsx("div", { ref: w, className: x("shadow rounded", J.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3183
|
+
d && (h ?? t.length) <= F ? null : /* @__PURE__ */ s.jsx("div", { className: x("search-input-container border-bottom", J.searchInputContainer), children: /* @__PURE__ */ s.jsx(ee.Control, { ref: _, type: "search", size: "sm", className: J.searchInput, placeholder: i.searchPlaceholder, value: v, onChange: (O) => {
|
|
3183
3184
|
var K;
|
|
3184
|
-
return p(((K =
|
|
3185
|
+
return p(((K = O.target) == null ? void 0 : K.value) ?? "");
|
|
3185
3186
|
} }) }),
|
|
3186
|
-
g ? /* @__PURE__ */ s.jsx("div", { className:
|
|
3187
|
-
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom",
|
|
3188
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3189
|
-
c == null ? void 0 : c.map((
|
|
3190
|
-
width: `${
|
|
3191
|
-
minWidth: `${
|
|
3192
|
-
maxWidth: `${
|
|
3193
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children:
|
|
3187
|
+
g ? /* @__PURE__ */ s.jsx("div", { className: J.loadingContainer, children: /* @__PURE__ */ s.jsx(gt, { animation: "border", variant: "primary" }) }) : t.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("items", J.itemsContainer), children: [
|
|
3188
|
+
c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: x("header-row border-bottom", J.headerRow), children: [
|
|
3189
|
+
/* @__PURE__ */ s.jsx("div", { className: J.name }),
|
|
3190
|
+
c == null ? void 0 : c.map((O) => /* @__PURE__ */ s.jsx("div", { className: J.columnItem, style: {
|
|
3191
|
+
width: `${O.width ?? 100}px`,
|
|
3192
|
+
minWidth: `${O.width ?? 100}px`,
|
|
3193
|
+
maxWidth: `${O.width ?? 100}px`
|
|
3194
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", children: O.name }) }, O.key))
|
|
3194
3195
|
] }),
|
|
3195
|
-
t == null ? void 0 : t.map((
|
|
3196
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3197
|
-
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3196
|
+
t == null ? void 0 : t.map((O) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: x("item cursor-pointer", J.item), onClick: () => !m && o(O), children: [
|
|
3197
|
+
/* @__PURE__ */ s.jsx("div", { className: J.name, children: /* @__PURE__ */ s.jsx(z, { variant: "body2", children: u ? O.id : O.name }) }),
|
|
3198
|
+
c == null ? void 0 : c.map((K) => /* @__PURE__ */ s.jsx("div", { className: J.columnItem, style: {
|
|
3198
3199
|
width: `${K.width ?? 100}px`,
|
|
3199
3200
|
minWidth: `${K.width ?? 100}px`,
|
|
3200
3201
|
maxWidth: `${K.width ?? 100}px`
|
|
3201
|
-
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: x("text-muted"), children:
|
|
3202
|
-
] },
|
|
3202
|
+
}, children: /* @__PURE__ */ s.jsx(z, { variant: "caption", className: x("text-muted"), children: O.additionalColumns && O.additionalColumns[K.key] }) }, K.key))
|
|
3203
|
+
] }, O.id))
|
|
3203
3204
|
] })
|
|
3204
3205
|
] }) }) })
|
|
3205
3206
|
] });
|
|
3206
3207
|
};
|
|
3207
|
-
function
|
|
3208
|
+
function Ei(n) {
|
|
3208
3209
|
return Er({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(n);
|
|
3209
3210
|
}
|
|
3210
|
-
const
|
|
3211
|
-
item:
|
|
3212
|
-
},
|
|
3211
|
+
const Oi = "_item_1dy8x_1", tr = {
|
|
3212
|
+
item: Oi
|
|
3213
|
+
}, Mi = ({
|
|
3213
3214
|
color: n = "primary",
|
|
3214
3215
|
// icon = <MdOutlineArrowOutward />,
|
|
3215
3216
|
icon: e,
|
|
@@ -3219,7 +3220,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3219
3220
|
}) => /* @__PURE__ */ s.jsxs(Se.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, tr.item), ...o, children: [
|
|
3220
3221
|
e,
|
|
3221
3222
|
r
|
|
3222
|
-
] }),
|
|
3223
|
+
] }), Di = (n) => /* @__PURE__ */ s.jsx(Se.Toggle, { ...n }), Lc = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(Qt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3223
3224
|
const u = (d) => {
|
|
3224
3225
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3225
3226
|
};
|
|
@@ -3230,25 +3231,25 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3230
3231
|
] }),
|
|
3231
3232
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3232
3233
|
] });
|
|
3233
|
-
},
|
|
3234
|
-
divider:
|
|
3235
|
-
},
|
|
3236
|
-
dropdown:
|
|
3237
|
-
},
|
|
3234
|
+
}, Pi = "_divider_1e6rk_1", Ai = {
|
|
3235
|
+
divider: Pi
|
|
3236
|
+
}, Yc = ({ className: n }) => /* @__PURE__ */ s.jsx(Se.Divider, { className: x("luminus-dropdown-divider", n, Ai.divider) }), Fi = "_dropdown_1lk66_1", Wi = {
|
|
3237
|
+
dropdown: Fi
|
|
3238
|
+
}, Ri = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(Se, { ...t, children: [
|
|
3238
3239
|
n,
|
|
3239
|
-
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3240
|
-
] }),
|
|
3240
|
+
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow", Wi.dropdown), children: e })
|
|
3241
|
+
] }), qi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Ri, { toggle: /* @__PURE__ */ s.jsx(Di, { as: Or, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(Mi, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Li = "_dropdown_1ddrg_1", Yi = "_open_1ddrg_12", Bi = "_loading-container_1ddrg_15", Hi = "_groups-container_1ddrg_22", Gi = "_group_1ddrg_22", Vi = "_header_1ddrg_26", Ui = "_item_1ddrg_33", me = {
|
|
3241
3242
|
dropdown: Li,
|
|
3242
|
-
open:
|
|
3243
|
+
open: Yi,
|
|
3243
3244
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3244
|
-
loadingContainer:
|
|
3245
|
+
loadingContainer: Bi,
|
|
3245
3246
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3246
|
-
groupsContainer:
|
|
3247
|
-
group:
|
|
3248
|
-
header:
|
|
3249
|
-
item:
|
|
3250
|
-
},
|
|
3251
|
-
const { LinkComponent: i, appSearchTexts: l } =
|
|
3247
|
+
groupsContainer: Hi,
|
|
3248
|
+
group: Gi,
|
|
3249
|
+
header: Vi,
|
|
3250
|
+
item: Ui
|
|
3251
|
+
}, zi = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3252
|
+
const { LinkComponent: i, appSearchTexts: l } = q(oe), c = Y(null), u = E((d) => {
|
|
3252
3253
|
var m;
|
|
3253
3254
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
3254
3255
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
@@ -3283,18 +3284,18 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3283
3284
|
))
|
|
3284
3285
|
] }, d.key.category);
|
|
3285
3286
|
}) }) });
|
|
3286
|
-
},
|
|
3287
|
+
}, Ki = "_input-group_1lkfy_1", Qi = "_input-group-text_1lkfy_5", Xi = "_left_1lkfy_9", Ji = "_right_1lkfy_13", Zi = "_input_1lkfy_1", ec = "_submit-button_1lkfy_20", fe = {
|
|
3287
3288
|
"input-group": "_input-group_1lkfy_1",
|
|
3288
|
-
inputGroup:
|
|
3289
|
+
inputGroup: Ki,
|
|
3289
3290
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3290
|
-
inputGroupText:
|
|
3291
|
-
left:
|
|
3292
|
-
right:
|
|
3293
|
-
input:
|
|
3291
|
+
inputGroupText: Qi,
|
|
3292
|
+
left: Xi,
|
|
3293
|
+
right: Ji,
|
|
3294
|
+
input: Zi,
|
|
3294
3295
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3295
|
-
submitButton:
|
|
3296
|
-
},
|
|
3297
|
-
const t = Dr(), [r, o] =
|
|
3296
|
+
submitButton: ec
|
|
3297
|
+
}, tc = (n, e) => {
|
|
3298
|
+
const t = Dr(), [r, o] = D(!1), [a, i] = D([]), l = !n || !n.key, c = E(() => {
|
|
3298
3299
|
if (e.length < 3) {
|
|
3299
3300
|
i([]);
|
|
3300
3301
|
return;
|
|
@@ -3305,37 +3306,37 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3305
3306
|
o(!1);
|
|
3306
3307
|
});
|
|
3307
3308
|
}, [n, e, t, l]);
|
|
3308
|
-
return
|
|
3309
|
+
return M(() => {
|
|
3309
3310
|
c();
|
|
3310
3311
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3311
|
-
},
|
|
3312
|
-
const { appSearchTexts: t } =
|
|
3313
|
-
return
|
|
3312
|
+
}, Bc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3313
|
+
const { appSearchTexts: t } = q(oe), [r, o] = D(n.length > 0 ? n[0] : null), [a, i] = D(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = tc(r, l), [h, m] = D(!1);
|
|
3314
|
+
return M(() => {
|
|
3314
3315
|
(d.length > 0 || u) && m(!0);
|
|
3315
3316
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3316
3317
|
g.preventDefault(), g.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3317
3318
|
}, children: /* @__PURE__ */ s.jsxs(et, { className: fe.inputGroup, children: [
|
|
3318
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(
|
|
3319
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(qi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3319
3320
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (g) => {
|
|
3320
3321
|
var b;
|
|
3321
3322
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3322
3323
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3323
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(
|
|
3324
|
-
/* @__PURE__ */ s.jsx(
|
|
3324
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Ei, {}) }) }),
|
|
3325
|
+
/* @__PURE__ */ s.jsx(zi, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3325
3326
|
] }) });
|
|
3326
|
-
},
|
|
3327
|
-
card:
|
|
3328
|
-
header:
|
|
3327
|
+
}, nc = "_card_19733_1", rc = "_header_19733_6", oc = "_header-content_19733_13", sc = "_title_19733_19", ac = "_collapse-icon_19733_22", ic = "_collapsed_19733_27", cc = "_content_19733_30", pe = {
|
|
3328
|
+
card: nc,
|
|
3329
|
+
header: rc,
|
|
3329
3330
|
"header-content": "_header-content_19733_13",
|
|
3330
|
-
headerContent:
|
|
3331
|
-
title:
|
|
3331
|
+
headerContent: oc,
|
|
3332
|
+
title: sc,
|
|
3332
3333
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3333
|
-
collapseIcon:
|
|
3334
|
-
collapsed:
|
|
3335
|
-
content:
|
|
3336
|
-
},
|
|
3337
|
-
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] =
|
|
3338
|
-
return
|
|
3334
|
+
collapseIcon: ac,
|
|
3335
|
+
collapsed: ic,
|
|
3336
|
+
content: cc
|
|
3337
|
+
}, lc = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3338
|
+
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = D(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3339
|
+
return M(() => {
|
|
3339
3340
|
u(l);
|
|
3340
3341
|
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: x("luminus-card rounded shadow-sm", pe.card, {
|
|
3341
3342
|
[r ?? ""]: r
|
|
@@ -3357,35 +3358,35 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3357
3358
|
[a ?? ""]: a
|
|
3358
3359
|
}), children: t }) })
|
|
3359
3360
|
] });
|
|
3360
|
-
},
|
|
3361
|
-
lightbox:
|
|
3362
|
-
show:
|
|
3363
|
-
header:
|
|
3361
|
+
}, uc = "_lightbox_14acg_1", dc = "_show_14acg_16", hc = "_header_14acg_20", mc = "_photo-actions_14acg_26", fc = "_photo-container_14acg_31", pc = "_photo_14acg_26", gc = "_nav-button_14acg_41", wc = "_photos-preview_14acg_49", xc = "_selected_14acg_62", yc = "_default-indicator_14acg_66", ne = {
|
|
3362
|
+
lightbox: uc,
|
|
3363
|
+
show: dc,
|
|
3364
|
+
header: hc,
|
|
3364
3365
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3365
|
-
photoActions:
|
|
3366
|
+
photoActions: mc,
|
|
3366
3367
|
"photo-container": "_photo-container_14acg_31",
|
|
3367
|
-
photoContainer:
|
|
3368
|
-
photo:
|
|
3368
|
+
photoContainer: fc,
|
|
3369
|
+
photo: pc,
|
|
3369
3370
|
"nav-button": "_nav-button_14acg_41",
|
|
3370
|
-
navButton:
|
|
3371
|
+
navButton: gc,
|
|
3371
3372
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3372
|
-
photosPreview:
|
|
3373
|
-
selected:
|
|
3373
|
+
photosPreview: wc,
|
|
3374
|
+
selected: xc,
|
|
3374
3375
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3375
|
-
defaultIndicator:
|
|
3376
|
-
},
|
|
3377
|
-
backdrop:
|
|
3378
|
-
show:
|
|
3376
|
+
defaultIndicator: yc
|
|
3377
|
+
}, vc = "_backdrop_3huvf_1", bc = "_show_3huvf_11", Gt = {
|
|
3378
|
+
backdrop: vc,
|
|
3379
|
+
show: bc
|
|
3379
3380
|
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Gt.backdrop, {
|
|
3380
3381
|
[Gt.show]: n
|
|
3381
|
-
}), onClick: () => e && e() }),
|
|
3382
|
-
const c = Y(null), [u, d] =
|
|
3383
|
-
|
|
3382
|
+
}), onClick: () => e && e() }), _c = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3383
|
+
const c = Y(null), [u, d] = D(r), h = t.at(u), m = u > 0, g = u < t.length - 1;
|
|
3384
|
+
M(() => {
|
|
3384
3385
|
n && d(r);
|
|
3385
|
-
}, [r, n]),
|
|
3386
|
+
}, [r, n]), M(() => {
|
|
3386
3387
|
u >= t.length && d(t.length - 1);
|
|
3387
3388
|
}, [t, u]);
|
|
3388
|
-
const b =
|
|
3389
|
+
const b = E((w) => {
|
|
3389
3390
|
switch (w.key) {
|
|
3390
3391
|
case "ArrowLeft":
|
|
3391
3392
|
w.stopPropagation(), m && d((f) => f - 1);
|
|
@@ -3408,17 +3409,17 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3408
3409
|
i && /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3409
3410
|
w.length > 0 && i(Array.from(w));
|
|
3410
3411
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3411
|
-
h && (l == null ? void 0 : l.map(({ label: w, onClick: f, ...
|
|
3412
|
+
h && (l == null ? void 0 : l.map(({ label: w, onClick: f, ..._ }, v) => /* @__PURE__ */ s.jsx(
|
|
3412
3413
|
at,
|
|
3413
3414
|
{
|
|
3414
3415
|
onClick: () => f(h.id),
|
|
3415
|
-
...
|
|
3416
|
+
..._,
|
|
3416
3417
|
children: w
|
|
3417
3418
|
},
|
|
3418
3419
|
`action-${v}`
|
|
3419
3420
|
)))
|
|
3420
3421
|
] }),
|
|
3421
|
-
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(
|
|
3422
|
+
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(xe, { style: { fontSize: "32px" } }) })
|
|
3422
3423
|
] }),
|
|
3423
3424
|
t.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" }) }),
|
|
3424
3425
|
h && /* @__PURE__ */ s.jsxs("div", { className: ne.photoContainer, children: [
|
|
@@ -3434,9 +3435,9 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3434
3435
|
] })) })
|
|
3435
3436
|
] })
|
|
3436
3437
|
] });
|
|
3437
|
-
},
|
|
3438
|
-
const [o, a] =
|
|
3439
|
-
return
|
|
3438
|
+
}, Hc = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3439
|
+
const [o, a] = D(null), i = o !== null ? n[o] : null, [l, c] = D(!1);
|
|
3440
|
+
return M(() => {
|
|
3440
3441
|
if (n.length === 0) {
|
|
3441
3442
|
a(null), c(!1);
|
|
3442
3443
|
return;
|
|
@@ -3454,20 +3455,20 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3454
3455
|
onClick: () => c(!0)
|
|
3455
3456
|
}
|
|
3456
3457
|
),
|
|
3457
|
-
/* @__PURE__ */ s.jsx(
|
|
3458
|
+
/* @__PURE__ */ s.jsx(_c, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3458
3459
|
] }) : e ? /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3459
3460
|
u.length > 0 && e(Array.from(u));
|
|
3460
3461
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3461
|
-
},
|
|
3462
|
-
const { NavigateComponent: t } =
|
|
3462
|
+
}, Gc = ({ appAccessPermissions: n, children: e }) => {
|
|
3463
|
+
const { NavigateComponent: t } = q(oe), { useMsal: r, msalScopes: o } = q(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = q(Wr), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3463
3464
|
var d;
|
|
3464
3465
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3465
3466
|
}));
|
|
3466
|
-
return r ? /* @__PURE__ */ s.jsx(
|
|
3467
|
-
},
|
|
3467
|
+
return r ? /* @__PURE__ */ s.jsx(Da, { interactionType: qe.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Kr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(t, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3468
|
+
}, Vc = (n) => {
|
|
3468
3469
|
const { variant: e, children: t, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3469
|
-
return /* @__PURE__ */ s.jsx(
|
|
3470
|
-
},
|
|
3470
|
+
return /* @__PURE__ */ s.jsx(ws, { 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: t }) });
|
|
3471
|
+
}, Uc = ({ version: n }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3471
3472
|
position: "fixed",
|
|
3472
3473
|
right: "0px",
|
|
3473
3474
|
bottom: "0px",
|
|
@@ -3478,48 +3479,48 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3478
3479
|
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3479
3480
|
"verze ",
|
|
3480
3481
|
n
|
|
3481
|
-
] }) }),
|
|
3482
|
+
] }) }), zc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-popover", children: [
|
|
3482
3483
|
/* @__PURE__ */ s.jsx(Xe.Header, { children: typeof n == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3483
3484
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3484
3485
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
3485
|
-
const { LinkComponent: r } =
|
|
3486
|
+
const { LinkComponent: r } = q(oe);
|
|
3486
3487
|
if (!n || !n.id || !e)
|
|
3487
3488
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3488
3489
|
const o = e(n);
|
|
3489
3490
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3490
|
-
},
|
|
3491
|
+
}, Kc = ({ InputContainer: n = Te, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3491
3492
|
var d;
|
|
3492
3493
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3493
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3494
|
-
const f = e === "number",
|
|
3494
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Qc = ({ InputContainer: n = Te, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: b, step: w }) => {
|
|
3495
|
+
const f = e === "number", _ = E(() => {
|
|
3495
3496
|
if (!r)
|
|
3496
3497
|
return;
|
|
3497
3498
|
const N = m ?? null;
|
|
3498
3499
|
r(f ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
|
|
3499
|
-
}, [m, f, r]), v = Y(null), [p, C] =
|
|
3500
|
-
const
|
|
3501
|
-
r && (f && r(
|
|
3502
|
-
}, [f, r]), y =
|
|
3500
|
+
}, [m, f, r]), v = Y(null), [p, C] = D((t == null ? void 0 : t.toString()) ?? ""), k = E((N) => {
|
|
3501
|
+
const j = N;
|
|
3502
|
+
r && (f && r(j == null || j === "" ? null : Number(j)), r(j || null));
|
|
3503
|
+
}, [f, r]), y = E((N) => {
|
|
3503
3504
|
var T;
|
|
3504
|
-
const
|
|
3505
|
+
const j = (T = N.target) == null ? void 0 : T.value;
|
|
3505
3506
|
if (!o) {
|
|
3506
|
-
k(
|
|
3507
|
+
k(j);
|
|
3507
3508
|
return;
|
|
3508
3509
|
}
|
|
3509
|
-
C(
|
|
3510
|
-
k(
|
|
3510
|
+
C(j), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
3511
|
+
k(j);
|
|
3511
3512
|
}, o);
|
|
3512
3513
|
}, [o, k]);
|
|
3513
|
-
|
|
3514
|
+
M(() => {
|
|
3514
3515
|
C(t === null ? "" : t.toString());
|
|
3515
3516
|
}, [t]);
|
|
3516
|
-
const [$,
|
|
3517
|
+
const [$, P] = D(!1), I = ln(e, t ? t.toString() ?? null : null, $);
|
|
3517
3518
|
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: u, className: b, children: [
|
|
3518
|
-
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () =>
|
|
3519
|
-
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3519
|
+
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => P(!0), onBlur: () => P(!1), step: w }),
|
|
3520
|
+
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3520
3521
|
] });
|
|
3521
|
-
},
|
|
3522
|
-
InputContainer: n =
|
|
3522
|
+
}, Xc = ({
|
|
3523
|
+
InputContainer: n = Te,
|
|
3523
3524
|
value: e,
|
|
3524
3525
|
options: t,
|
|
3525
3526
|
onChange: r,
|
|
@@ -3536,7 +3537,7 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3536
3537
|
noEmptyOption: b
|
|
3537
3538
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
3538
3539
|
}) => {
|
|
3539
|
-
const w =
|
|
3540
|
+
const w = E(() => {
|
|
3540
3541
|
if (!r)
|
|
3541
3542
|
return;
|
|
3542
3543
|
const f = h ?? null;
|
|
@@ -3547,29 +3548,29 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3547
3548
|
var v;
|
|
3548
3549
|
if (!r)
|
|
3549
3550
|
return;
|
|
3550
|
-
const
|
|
3551
|
-
i && r(
|
|
3551
|
+
const _ = (v = f.target) == null ? void 0 : v.value;
|
|
3552
|
+
i && r(_ ? parseInt(_, 10) : null), r(_ || null);
|
|
3552
3553
|
}, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
|
|
3553
3554
|
b && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3554
|
-
t == null ? void 0 : t.sort((f,
|
|
3555
|
+
t == null ? void 0 : t.sort((f, _) => m ? 0 : (f.name ?? "").localeCompare(_.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
3555
3556
|
] }),
|
|
3556
|
-
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(
|
|
3557
|
+
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3557
3558
|
] });
|
|
3558
|
-
},
|
|
3559
|
+
}, Jc = ({ InputContainer: n = Te, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: _, className: v }) => {
|
|
3559
3560
|
var T, F;
|
|
3560
|
-
const [p, C] =
|
|
3561
|
-
|
|
3561
|
+
const [p, C] = D(t), [k, y] = D(!1);
|
|
3562
|
+
M(() => {
|
|
3562
3563
|
C(t);
|
|
3563
3564
|
}, [t]);
|
|
3564
|
-
const $ =
|
|
3565
|
+
const $ = E((W) => {
|
|
3565
3566
|
C(W);
|
|
3566
|
-
}, []),
|
|
3567
|
+
}, []), P = E((W) => {
|
|
3567
3568
|
y(!1), $(W);
|
|
3568
3569
|
}, [$]);
|
|
3569
|
-
|
|
3570
|
+
M(() => {
|
|
3570
3571
|
c && c(p);
|
|
3571
3572
|
}, [p, c]);
|
|
3572
|
-
const I = Y(null), N = r !== void 0,
|
|
3573
|
+
const I = Y(null), N = r !== void 0, j = N && p !== null;
|
|
3573
3574
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: u ?? "", hidden: b, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: v, children: [
|
|
3574
3575
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: p, selectedItemNavigateTo: r, children: [
|
|
3575
3576
|
f && (p == null ? void 0 : p.name) && /* @__PURE__ */ s.jsx(z, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: p.name }),
|
|
@@ -3582,132 +3583,158 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3582
3583
|
!N && !w && y(!0);
|
|
3583
3584
|
}, className: x("w-100", {
|
|
3584
3585
|
"luminus-dropdown-picker-disabled": w,
|
|
3585
|
-
"luminus-dropdown-picker-link":
|
|
3586
|
+
"luminus-dropdown-picker-link": j
|
|
3586
3587
|
}), hidden: b, children: [
|
|
3587
3588
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3588
3589
|
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((T = t.name) == null ? void 0 : T.length) > 0 ? t.name : t.id }),
|
|
3589
3590
|
p && /* @__PURE__ */ s.jsx("option", { value: p.id ?? void 0, children: p.name && ((F = p.name) == null ? void 0 : F.length) > 0 ? p.name : p.id })
|
|
3590
3591
|
] }),
|
|
3591
|
-
|
|
3592
|
-
!
|
|
3592
|
+
_ || !w && N ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3593
|
+
!_ && !w && N && /* @__PURE__ */ s.jsx(X, { size: "sm", color: "secondary", onClick: (W) => {
|
|
3593
3594
|
W.preventDefault(), W.stopPropagation(), y(!0);
|
|
3594
3595
|
}, children: /* @__PURE__ */ s.jsx(en, {}) }),
|
|
3595
|
-
|
|
3596
|
+
_ ?? null
|
|
3596
3597
|
] }) : null
|
|
3597
3598
|
] }),
|
|
3598
|
-
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange:
|
|
3599
|
+
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: w, inputRef: I })
|
|
3599
3600
|
] }) });
|
|
3600
|
-
},
|
|
3601
|
-
const
|
|
3602
|
-
|
|
3601
|
+
}, Zc = ({ InputContainer: n = Te, value: e, onChange: t, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: m }) => {
|
|
3602
|
+
const g = E(() => {
|
|
3603
|
+
if (!t)
|
|
3604
|
+
return;
|
|
3605
|
+
const p = i ?? null;
|
|
3606
|
+
t((p == null ? void 0 : p.toString()) ?? "");
|
|
3607
|
+
}, [i, t]), b = Y(null), [w, f] = D((e == null ? void 0 : e.toString()) ?? ""), _ = E((p) => {
|
|
3608
|
+
const C = p;
|
|
3609
|
+
t && t(C || null);
|
|
3610
|
+
}, [t]), v = E((p) => {
|
|
3611
|
+
var k;
|
|
3612
|
+
const C = (k = p.target) == null ? void 0 : k.value;
|
|
3613
|
+
if (!h) {
|
|
3614
|
+
_(C);
|
|
3615
|
+
return;
|
|
3616
|
+
}
|
|
3617
|
+
f(C), b.current !== null && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
3618
|
+
_(C);
|
|
3619
|
+
}, h);
|
|
3620
|
+
}, [h, _]);
|
|
3621
|
+
return M(() => {
|
|
3622
|
+
f(e === null ? "" : e.toString());
|
|
3623
|
+
}, [e]), /* @__PURE__ */ s.jsxs(n, { label: r ?? "", hidden: l, withoutLabel: d, className: m, isForTextAreaInput: !0, children: [
|
|
3624
|
+
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, value: h ? w : e ?? "", onChange: v, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3625
|
+
a && e && t && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3626
|
+
] });
|
|
3627
|
+
}, el = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3628
|
+
const { register: d, formState: h, setValue: m } = he(), [g, b] = D(void 0), [w, f] = D(!1);
|
|
3629
|
+
M(() => {
|
|
3603
3630
|
const v = e.split(".");
|
|
3604
3631
|
let p = h.errors;
|
|
3605
3632
|
v.forEach((C) => {
|
|
3606
3633
|
p !== void 0 && (p = p[C]);
|
|
3607
3634
|
}), b(p);
|
|
3608
|
-
}, [h, e]),
|
|
3635
|
+
}, [h, e]), M(() => {
|
|
3609
3636
|
h.isSubmitted && f(!0);
|
|
3610
3637
|
}, [h]);
|
|
3611
|
-
const
|
|
3612
|
-
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid:
|
|
3638
|
+
const _ = g !== void 0;
|
|
3639
|
+
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: _, withoutLabel: c, className: u, children: [
|
|
3613
3640
|
/* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...d(e, {
|
|
3614
3641
|
onChange: () => {
|
|
3615
3642
|
r && r.forEach((v) => m(v, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3616
3643
|
}
|
|
3617
|
-
}), isInvalid:
|
|
3618
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3644
|
+
}), isInvalid: _, hidden: i, disabled: l, className: "w-100" }),
|
|
3645
|
+
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3619
3646
|
] });
|
|
3620
|
-
},
|
|
3621
|
-
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] =
|
|
3622
|
-
|
|
3647
|
+
}, tl = ({ InputContainer: n = ye, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3648
|
+
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] = D(void 0), [w, f] = D(!1), _ = Q(() => r, [r]);
|
|
3649
|
+
M(() => {
|
|
3623
3650
|
const p = t.split(".");
|
|
3624
3651
|
let C = d.errors;
|
|
3625
3652
|
p.forEach((k) => {
|
|
3626
3653
|
C !== void 0 && (C = C[k]);
|
|
3627
3654
|
}), b(C);
|
|
3628
|
-
}, [d, t]),
|
|
3655
|
+
}, [d, t]), M(() => {
|
|
3629
3656
|
d.isSubmitted && f(!0);
|
|
3630
3657
|
}, [d]);
|
|
3631
3658
|
const v = g !== void 0;
|
|
3632
3659
|
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: v, className: c, children: [
|
|
3633
|
-
|
|
3660
|
+
_.map((p) => /* @__PURE__ */ s.jsx(ee.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: m(t) === p.id, ...u(t, {
|
|
3634
3661
|
onChange: () => {
|
|
3635
3662
|
o && o.forEach((C) => h(C, null, { shouldDirty: !0, shouldValidate: w }));
|
|
3636
3663
|
}
|
|
3637
3664
|
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" }, p.id)),
|
|
3638
|
-
g && /* @__PURE__ */ s.jsx(
|
|
3665
|
+
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3639
3666
|
] });
|
|
3640
|
-
},
|
|
3641
|
-
const { register: b, formState: w, setValue: f, watch:
|
|
3667
|
+
}, nl = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
|
|
3668
|
+
const { register: b, formState: w, setValue: f, watch: _ } = he(), [v, p] = D(void 0), [C, k] = D(!1), y = E(() => {
|
|
3642
3669
|
const I = i ?? null;
|
|
3643
3670
|
f(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
3644
|
-
}, [i, f, e, C]), $ =
|
|
3671
|
+
}, [i, f, e, C]), $ = E(() => {
|
|
3645
3672
|
const I = e.split(".");
|
|
3646
3673
|
let N = w.errors;
|
|
3647
|
-
I.forEach((
|
|
3648
|
-
N !== void 0 && (N = N[
|
|
3674
|
+
I.forEach((j) => {
|
|
3675
|
+
N !== void 0 && (N = N[j]);
|
|
3649
3676
|
}), p(N);
|
|
3650
3677
|
}, [w, e]);
|
|
3651
|
-
|
|
3678
|
+
M(() => {
|
|
3652
3679
|
$();
|
|
3653
|
-
}, [$]),
|
|
3680
|
+
}, [$]), M(() => {
|
|
3654
3681
|
w.isSubmitted && k(!0);
|
|
3655
3682
|
}, [w]);
|
|
3656
|
-
const
|
|
3657
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid:
|
|
3683
|
+
const P = v !== void 0;
|
|
3684
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: P, className: g, isForTextAreaInput: !0, children: [
|
|
3658
3685
|
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, ...b(e, {
|
|
3659
3686
|
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
3660
3687
|
onChange: () => {
|
|
3661
3688
|
r && r.forEach((I) => f(I, null, { shouldDirty: !0, shouldValidate: C }));
|
|
3662
3689
|
}
|
|
3663
|
-
}), isInvalid:
|
|
3664
|
-
a &&
|
|
3665
|
-
v && /* @__PURE__ */ s.jsx(
|
|
3690
|
+
}), isInvalid: P, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...m }),
|
|
3691
|
+
a && _(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3692
|
+
v && /* @__PURE__ */ s.jsx(ve, { message: v.message })
|
|
3666
3693
|
] });
|
|
3667
|
-
},
|
|
3668
|
-
const { register:
|
|
3694
|
+
}, rl = ({ InputContainer: n = ye, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3695
|
+
const { register: _, formState: v, setValue: p, watch: C } = he(), [k, y] = D(void 0), [$, P] = D(!1), I = E(() => {
|
|
3669
3696
|
const R = c ?? null;
|
|
3670
3697
|
e === "number" ? p(t, R !== null ? Number(R) : null, {
|
|
3671
3698
|
shouldDirty: !0,
|
|
3672
3699
|
shouldValidate: $
|
|
3673
3700
|
}) : p(t, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate: $ });
|
|
3674
|
-
}, [c, e, p, t, $]), N =
|
|
3701
|
+
}, [c, e, p, t, $]), N = E(() => {
|
|
3675
3702
|
const R = t.split(".");
|
|
3676
3703
|
let G = v.errors;
|
|
3677
3704
|
R.forEach((se) => {
|
|
3678
3705
|
G !== void 0 && (G = G[se]);
|
|
3679
3706
|
}), y(G);
|
|
3680
3707
|
}, [v, t]);
|
|
3681
|
-
|
|
3708
|
+
M(() => {
|
|
3682
3709
|
N();
|
|
3683
|
-
}, [N]),
|
|
3684
|
-
v.isSubmitted &&
|
|
3710
|
+
}, [N]), M(() => {
|
|
3711
|
+
v.isSubmitted && P(!0);
|
|
3685
3712
|
}, [v]);
|
|
3686
|
-
const
|
|
3687
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid:
|
|
3713
|
+
const j = k !== void 0, [T, F] = D(!1), W = C(t), B = ln(e, W ?? null, T);
|
|
3714
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: j, className: f, children: [
|
|
3688
3715
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
3689
3716
|
/* @__PURE__ */ s.jsx(ee.Control, { type: B, placeholder: o ?? r, size: a, onFocus: () => {
|
|
3690
3717
|
F(!0);
|
|
3691
|
-
}, ...
|
|
3718
|
+
}, ..._(t, {
|
|
3692
3719
|
setValueAs: (R) => e === "number" ? R == null || R === "" ? null : Number(R) : R == null || R === "" ? null : R,
|
|
3693
3720
|
onChange: () => {
|
|
3694
3721
|
i && i.forEach((R) => p(R, null, { shouldDirty: !0, shouldValidate: $ }));
|
|
3695
3722
|
},
|
|
3696
3723
|
onBlur: () => F(!1)
|
|
3697
|
-
}), isInvalid:
|
|
3724
|
+
}), isInvalid: j, hidden: d, disabled: h, list: g, className: "w-100", step: b }),
|
|
3698
3725
|
w && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: w })
|
|
3699
3726
|
] }),
|
|
3700
|
-
l && C(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
3701
|
-
k && /* @__PURE__ */ s.jsx(
|
|
3727
|
+
l && C(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3728
|
+
k && /* @__PURE__ */ s.jsx(ve, { message: k.message })
|
|
3702
3729
|
] });
|
|
3703
|
-
},
|
|
3704
|
-
const { formState: k, setValue: y, watch: $, control:
|
|
3730
|
+
}, ol = ({ InputContainer: n = ye, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: _, CustomOnChangeComponent: v, displayIdAsName: p, className: C }) => {
|
|
3731
|
+
const { formState: k, setValue: y, watch: $, control: P } = he(), [I, N] = D(void 0), [j, T] = D(!1), [F, W] = D(!1), B = $(e) ?? null, R = B === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => B == null ? null : { id: B ?? null, name: R ?? "" }, [B, R]), se = E(() => {
|
|
3705
3732
|
const H = e.split(".");
|
|
3706
3733
|
let ce = k.errors;
|
|
3707
3734
|
H.forEach((Ke) => {
|
|
3708
3735
|
ce !== void 0 && (ce = ce[Ke]);
|
|
3709
3736
|
}), N(ce);
|
|
3710
|
-
}, [k, e]), te =
|
|
3737
|
+
}, [k, e]), te = E((H) => {
|
|
3711
3738
|
if ((H == null ? void 0 : H.id) === B)
|
|
3712
3739
|
return;
|
|
3713
3740
|
if (a && a.forEach((Ke) => y(Ke, null, { shouldDirty: !0, shouldValidate: F })), H === null) {
|
|
@@ -3722,76 +3749,76 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3722
3749
|
shouldDirty: !0,
|
|
3723
3750
|
shouldValidate: F
|
|
3724
3751
|
}), y(`${e}-DropdownName`, H.name ?? "");
|
|
3725
|
-
}, [y, e, F, i, a, B]), U =
|
|
3752
|
+
}, [y, e, F, i, a, B]), U = E((H) => {
|
|
3726
3753
|
T(!1), te(H);
|
|
3727
|
-
}, [te]), S =
|
|
3754
|
+
}, [te]), S = E(() => {
|
|
3728
3755
|
T(!1);
|
|
3729
3756
|
}, []);
|
|
3730
|
-
|
|
3757
|
+
M(() => {
|
|
3731
3758
|
se();
|
|
3732
|
-
}, [se]),
|
|
3759
|
+
}, [se]), M(() => {
|
|
3733
3760
|
k.isSubmitted && W(!0);
|
|
3734
3761
|
}, [k]);
|
|
3735
|
-
const
|
|
3736
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open":
|
|
3762
|
+
const O = Y(null), K = I !== void 0, Me = m !== void 0, or = Me && G !== null;
|
|
3763
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${l ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: K, inputContainerClassName: x({ "luminus-dropdown-select-open": j }), className: C, children: [
|
|
3737
3764
|
/* @__PURE__ */ s.jsxs(rr, { currentSelection: G, selectedItemNavigateTo: m, children: [
|
|
3738
3765
|
p && (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 }),
|
|
3739
|
-
/* @__PURE__ */ s.jsx(sn, { control:
|
|
3766
|
+
/* @__PURE__ */ s.jsx(sn, { control: P, name: e, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: r, onMouseDown: (H) => {
|
|
3740
3767
|
H.currentTarget.focus(), H.preventDefault();
|
|
3741
3768
|
}, onClick: () => {
|
|
3742
|
-
!
|
|
3743
|
-
}, ref:
|
|
3769
|
+
!Me && !u && T(!0);
|
|
3770
|
+
}, ref: O, value: B ?? "", onChange: () => {
|
|
3744
3771
|
}, isInvalid: K, hidden: c, className: x("w-100", {
|
|
3745
3772
|
"luminus-dropdown-picker-disabled": u,
|
|
3746
3773
|
"luminus-dropdown-picker-link": or
|
|
3747
3774
|
}), children: /* @__PURE__ */ s.jsx("option", { value: B, children: p ? B : (R == null ? void 0 : R.length) > 0 ? R : B }) }) }),
|
|
3748
|
-
v || !u &&
|
|
3749
|
-
!v && !u &&
|
|
3775
|
+
v || !u && Me ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
3776
|
+
!v && !u && Me && /* @__PURE__ */ s.jsx(X, { size: "sm", color: "secondary", onClick: (H) => {
|
|
3750
3777
|
H.preventDefault(), H.stopPropagation(), T(!0);
|
|
3751
3778
|
}, children: /* @__PURE__ */ s.jsx(en, {}) }),
|
|
3752
3779
|
v ?? null
|
|
3753
3780
|
] }) : null
|
|
3754
3781
|
] }),
|
|
3755
|
-
I && /* @__PURE__ */ s.jsx(
|
|
3756
|
-
|
|
3782
|
+
I && /* @__PURE__ */ s.jsx(ve, { message: I.message }),
|
|
3783
|
+
O.current && /* @__PURE__ */ s.jsx(yt, { show: j, onCancel: S, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: _, displayIdAsName: p, isLoading: w, disabled: u, inputRef: O })
|
|
3757
3784
|
] }) });
|
|
3758
|
-
},
|
|
3759
|
-
const { watch: g, setValue: b, register: w, formState: f } = he(), [
|
|
3785
|
+
}, sl = ({ InputContainer: n = ye, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3786
|
+
const { watch: g, setValue: b, register: w, formState: f } = he(), [_, v] = D(!1), [p, C] = D(void 0), k = E(() => {
|
|
3760
3787
|
b(t, "");
|
|
3761
|
-
}, [b, t]), y =
|
|
3762
|
-
const
|
|
3788
|
+
}, [b, t]), y = E(() => {
|
|
3789
|
+
const P = t.split(".");
|
|
3763
3790
|
let I = f.errors;
|
|
3764
|
-
|
|
3791
|
+
P.forEach((N) => {
|
|
3765
3792
|
I !== void 0 && (I = I[N]);
|
|
3766
3793
|
}), C(I);
|
|
3767
3794
|
}, [f, t]);
|
|
3768
|
-
|
|
3795
|
+
M(y, [y]), M(() => {
|
|
3769
3796
|
f.isSubmitted && v(!0);
|
|
3770
3797
|
}, [f]);
|
|
3771
3798
|
const $ = p !== void 0;
|
|
3772
3799
|
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: $, className: m, children: [
|
|
3773
3800
|
/* @__PURE__ */ s.jsx(rn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: $, hidden: r, disabled: i, className: "w-100", ...w(t, {
|
|
3774
3801
|
onChange: () => {
|
|
3775
|
-
c && c.forEach((
|
|
3802
|
+
c && c.forEach((P) => b(P, null, { shouldDirty: !0, shouldValidate: _ }));
|
|
3776
3803
|
}
|
|
3777
3804
|
}) }),
|
|
3778
|
-
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(
|
|
3779
|
-
p && /* @__PURE__ */ s.jsx(
|
|
3805
|
+
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3806
|
+
p && /* @__PURE__ */ s.jsx(ve, { message: p.message })
|
|
3780
3807
|
] });
|
|
3781
|
-
},
|
|
3782
|
-
const { formState: t } = he(), [r, o] =
|
|
3783
|
-
return
|
|
3808
|
+
}, al = ({ children: n, onStorno: e }) => {
|
|
3809
|
+
const { formState: t } = he(), [r, o] = D(!1);
|
|
3810
|
+
return M(() => {
|
|
3784
3811
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3785
|
-
}, [t]), r ? /* @__PURE__ */ s.jsx(
|
|
3786
|
-
},
|
|
3787
|
-
const { customSelectTexts: b } =
|
|
3812
|
+
}, [t]), r ? /* @__PURE__ */ s.jsx(Fa, { onStorno: e, children: n }) : null;
|
|
3813
|
+
}, il = ({ InputContainer: n = ye, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
|
|
3814
|
+
const { customSelectTexts: b } = q(oe), { formState: w, setValue: f, watch: _, control: v } = he(), [p, C] = D(void 0), [k, y] = D(!1), [$, P] = D(!1), [I, N] = D(""), j = _(t), T = Q(() => e.find((S) => S.id === j) ?? null, [e, j]), F = E(() => {
|
|
3788
3815
|
const S = t.split(".");
|
|
3789
|
-
let
|
|
3816
|
+
let O = w.errors;
|
|
3790
3817
|
S.forEach((K) => {
|
|
3791
|
-
|
|
3792
|
-
}), C(
|
|
3793
|
-
}, [w, t]), W =
|
|
3794
|
-
if ((S == null ? void 0 : S.id) ===
|
|
3818
|
+
O !== void 0 && (O = O[K]);
|
|
3819
|
+
}), C(O);
|
|
3820
|
+
}, [w, t]), W = E((S) => {
|
|
3821
|
+
if ((S == null ? void 0 : S.id) === j)
|
|
3795
3822
|
return;
|
|
3796
3823
|
if (a && a.forEach((K) => f(K, null, { shouldDirty: !0, shouldValidate: $ })), S === null) {
|
|
3797
3824
|
f(t, null, {
|
|
@@ -3800,48 +3827,45 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3800
3827
|
});
|
|
3801
3828
|
return;
|
|
3802
3829
|
}
|
|
3803
|
-
let
|
|
3804
|
-
i ?
|
|
3830
|
+
let O = null;
|
|
3831
|
+
i ? O = (S == null ? void 0 : S.id) !== null && (S == null ? void 0 : S.id) !== "" ? parseInt(S.id.toString(), 10) : null : O = S.id === null || S.id === void 0 || S.id === "" ? null : S.id, f(t, O, {
|
|
3805
3832
|
shouldDirty: !0,
|
|
3806
3833
|
shouldValidate: $
|
|
3807
3834
|
});
|
|
3808
|
-
}, [f, t, i, a,
|
|
3835
|
+
}, [f, t, i, a, j, $]), B = E((S) => {
|
|
3809
3836
|
y(!1), W(S);
|
|
3810
|
-
}, [W]), R =
|
|
3837
|
+
}, [W]), R = E((S) => {
|
|
3811
3838
|
N(S);
|
|
3812
3839
|
}, []);
|
|
3813
|
-
|
|
3840
|
+
M(() => {
|
|
3814
3841
|
F();
|
|
3815
|
-
}, [F]),
|
|
3816
|
-
w.isSubmitted &&
|
|
3842
|
+
}, [F]), M(() => {
|
|
3843
|
+
w.isSubmitted && P(!0);
|
|
3817
3844
|
}, [w]);
|
|
3818
|
-
const G =
|
|
3819
|
-
var
|
|
3820
|
-
return S === null ? "" : !S.name || S.name.length === 0 ? ((
|
|
3845
|
+
const G = E((S) => {
|
|
3846
|
+
var O;
|
|
3847
|
+
return S === null ? "" : !S.name || S.name.length === 0 ? ((O = S.id) == null ? void 0 : O.toString()) ?? "" : m ? `${S.name} (${S.id})` : S.name;
|
|
3821
3848
|
}, [m]), se = Q(() => e.map((S) => ({
|
|
3822
3849
|
id: S.id,
|
|
3823
3850
|
name: G(S)
|
|
3824
|
-
})).filter((S) =>
|
|
3825
|
-
var E;
|
|
3826
|
-
return I ? (E = S.name) == null ? void 0 : E.toLowerCase().includes(I.toLowerCase()) : !0;
|
|
3827
|
-
}).sort((S, E) => h ? 0 : (S.name ?? "").localeCompare(E.name ?? "")), [e, h, I, G]), te = Y(null), U = p !== void 0;
|
|
3851
|
+
})).filter((S) => Xr(S.name, I)).sort((S, O) => h ? 0 : (S.name ?? "").localeCompare(O.name ?? "")), [e, h, I, G]), te = Y(null), U = p !== void 0;
|
|
3828
3852
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: U, inputContainerClassName: x({ "luminus-dropdown-select-open": k }), className: g, children: [
|
|
3829
3853
|
/* @__PURE__ */ s.jsx(sn, { control: v, name: t, render: () => /* @__PURE__ */ s.jsx(ee.Select, { size: o, onMouseDown: (S) => {
|
|
3830
3854
|
S.currentTarget.focus(), S.preventDefault();
|
|
3831
3855
|
}, onClick: () => {
|
|
3832
3856
|
y(!0);
|
|
3833
|
-
}, ref: te, value:
|
|
3857
|
+
}, ref: te, value: j ?? "", onChange: () => {
|
|
3834
3858
|
}, isInvalid: U, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (T == null ? void 0 : T.id) ?? "", children: G(T) }) }) }),
|
|
3835
|
-
p && /* @__PURE__ */ s.jsx(
|
|
3859
|
+
p && /* @__PURE__ */ s.jsx(ve, { message: p.message }),
|
|
3836
3860
|
te.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: se, currentSelection: T ?? null, onSelectionChange: B, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3837
3861
|
] }) });
|
|
3838
|
-
},
|
|
3862
|
+
}, cl = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(qr, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), jc = "_tab-panel_qgi9v_1", kc = "_full-height-no-overflow_qgi9v_5", Cc = "_disabled_qgi9v_10", nt = {
|
|
3839
3863
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3840
|
-
tabPanel:
|
|
3864
|
+
tabPanel: jc,
|
|
3841
3865
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3842
|
-
fullHeightNoOverflow:
|
|
3843
|
-
disabled:
|
|
3844
|
-
},
|
|
3866
|
+
fullHeightNoOverflow: kc,
|
|
3867
|
+
disabled: Cc
|
|
3868
|
+
}, ll = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: o, children: a }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: t }, { disabled: r }, { [nt.disabled]: r }, o), children: a }), ul = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3845
3869
|
const o = r.type, a = r.props;
|
|
3846
3870
|
if (!a)
|
|
3847
3871
|
return null;
|
|
@@ -3849,65 +3873,66 @@ const Ei = "_item_1dy8x_1", tr = {
|
|
|
3849
3873
|
return /* @__PURE__ */ Hr(o, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
3850
3874
|
e(i), u && u(i);
|
|
3851
3875
|
} }, l);
|
|
3852
|
-
}) }),
|
|
3853
|
-
tab:
|
|
3854
|
-
disabled:
|
|
3855
|
-
},
|
|
3876
|
+
}) }), Nc = "_tab_1hdhk_1", $c = "_disabled_1hdhk_8", Vt = {
|
|
3877
|
+
tab: Nc,
|
|
3878
|
+
disabled: $c
|
|
3879
|
+
}, dl = ({ eventKey: n, className: e, onClick: t, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3856
3880
|
disabled: r
|
|
3857
3881
|
}, { [Vt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3858
3882
|
export {
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3883
|
+
Vc as Alert,
|
|
3884
|
+
Pc as ApiFileDownloadButton,
|
|
3885
|
+
Bc as AppSearch,
|
|
3886
|
+
Gc as AuthTemplate,
|
|
3887
|
+
qr as AvatarIcon,
|
|
3864
3888
|
nr as Backdrop,
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3889
|
+
Rc as Badge,
|
|
3890
|
+
lc as Card,
|
|
3891
|
+
Kc as CheckInput,
|
|
3892
|
+
qc as Collapse,
|
|
3869
3893
|
at as ContextButton,
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3894
|
+
Ri as Dropdown,
|
|
3895
|
+
Yc as DropdownDivider,
|
|
3896
|
+
Mi as DropdownItem,
|
|
3897
|
+
Jc as DropdownPicker,
|
|
3898
|
+
Di as DropdownToggle,
|
|
3875
3899
|
Zn as FileUploadContextButton,
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3900
|
+
Lc as FileUploadDropdownItem,
|
|
3901
|
+
Fa as FloatingFormSubmit,
|
|
3902
|
+
Te as FloatingLabelInput,
|
|
3903
|
+
Wc as HomeDashboard,
|
|
3904
|
+
el as HookFormCheckInput,
|
|
3905
|
+
ol as HookFormDropdownPicker,
|
|
3906
|
+
sl as HookFormFileInput,
|
|
3907
|
+
al as HookFormFloatingSubmit,
|
|
3908
|
+
tl as HookFormRadioInput,
|
|
3909
|
+
il as HookFormSelectInput,
|
|
3910
|
+
nl as HookFormTextAreaInput,
|
|
3911
|
+
rl as HookFormTextInput,
|
|
3912
|
+
zc as HtmlTooltip,
|
|
3913
|
+
X as IconButton,
|
|
3914
|
+
ve as InvalidFeedback,
|
|
3891
3915
|
Kr as Loading,
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3916
|
+
Jr as LoadingBlock,
|
|
3917
|
+
Ac as MonthPicker,
|
|
3918
|
+
fl as NoInputContainer,
|
|
3919
|
+
Hc as PhotoLibrary,
|
|
3920
|
+
_c as PhotoLightbox,
|
|
3897
3921
|
Ct as PrimaryButton,
|
|
3898
|
-
|
|
3899
|
-
|
|
3922
|
+
ye as RowLabelInput,
|
|
3923
|
+
Xc as SelectInput,
|
|
3900
3924
|
yt as SimplePicker,
|
|
3901
3925
|
Or as SimpleToggle,
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3926
|
+
wl as SimpleTooltip,
|
|
3927
|
+
dl as Tab,
|
|
3928
|
+
ll as TabPanel,
|
|
3929
|
+
ul as Tabs,
|
|
3930
|
+
Zc as TextAreaInput,
|
|
3931
|
+
Qc as TextInput,
|
|
3907
3932
|
z as Typography,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3933
|
+
pl as UserAvatarToggle,
|
|
3934
|
+
cl as UserAvatarValueFormat,
|
|
3935
|
+
Uc as VersionInfo,
|
|
3936
|
+
Lt as WidgetCard,
|
|
3937
|
+
Fc as YearPicker
|
|
3913
3938
|
};
|