react-luminus-components 1.2.76 → 1.2.79

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