react-luminus-components 1.3.30 → 1.3.32

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 (40) hide show
  1. package/dist/.vite/manifest.json +60 -60
  2. package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +253 -0
  3. package/dist/{FromToDatePickerDropdownToggle-CK3riYKN.js → FromToDatePickerDropdownToggle-DDOxJCc2.js} +2178 -2568
  4. package/dist/{PrimaryButton-BOdgT4u0.js → PrimaryButton-B64e5vBv.js} +261 -289
  5. package/dist/PrimaryButton-BnrFH2PB.cjs +1 -0
  6. package/dist/SimpleTooltip-BgRjtr0d.js +5 -0
  7. package/dist/{SimpleTooltip-D92MXZSs.cjs → SimpleTooltip-DIqIPx0H.cjs} +1 -1
  8. package/dist/components/NewTabs/Tab/Tab.d.ts +5 -5
  9. package/dist/components/NewTabs/Tabs/Tabs.d.ts +7 -6
  10. package/dist/contexts.cjs.js +1 -1
  11. package/dist/contexts.es.js +180 -304
  12. package/dist/{dateUtils-DqftcSRs.js → dateUtils-C8trxO28.js} +162 -162
  13. package/dist/dateUtils-ChS-y8JY.cjs +1 -0
  14. package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
  15. package/dist/hooks.cjs.js +1 -1
  16. package/dist/hooks.d.ts +2 -2
  17. package/dist/hooks.es.js +37 -35
  18. package/dist/layout.cjs.js +1 -1
  19. package/dist/layout.es.js +29 -27
  20. package/dist/main.cjs.js +1 -1
  21. package/dist/main.es.js +1755 -2126
  22. package/dist/{searchUtils-DKaMRBRf.cjs → searchUtils-BdYnxcy0.cjs} +1 -1
  23. package/dist/{searchUtils-BHsouXbH.js → searchUtils-C38WM_G8.js} +1 -1
  24. package/dist/useLocalStorageState-CFe9QRz0.js +76 -0
  25. package/dist/useLocalStorageState-asgEpnUg.cjs +1 -0
  26. package/dist/usePermissions-55of2QBH.js +17 -0
  27. package/dist/usePermissions-Ce0AAKj1.cjs +1 -0
  28. package/dist/utils/text/textUtils.d.ts +8 -0
  29. package/dist/utils.cjs.js +1 -1
  30. package/dist/utils.d.ts +10 -0
  31. package/dist/utils.es.js +54 -50
  32. package/package.json +3 -3
  33. package/dist/FromToDatePickerDropdownToggle-C4ntsFqz.cjs +0 -253
  34. package/dist/PrimaryButton-OffsUx-G.cjs +0 -1
  35. package/dist/SimpleTooltip-D4KGsTa_.js +0 -5
  36. package/dist/dateUtils-DRVYuJv7.cjs +0 -1
  37. package/dist/useLocalStorageState-BY8tnvJS.js +0 -74
  38. package/dist/useLocalStorageState-DmtUyPYX.cjs +0 -1
  39. package/dist/usePermissions-CYURG0V1.cjs +0 -1
  40. package/dist/usePermissions-DOWgyuUi.js +0 -15
@@ -1,33 +1,35 @@
1
- import { j as r, c as d, P as D, M as tt, v as w, J as nt, aF as _e, aG as je, o as q, G as Be, aH as ot, aI as st, w as v, aJ as Ae, aK as Me, aL as De, aM as at, aN as ke, aO as rt, A as it, I as lt, L as dt, aP as Ie, F as $e, H as ct, aQ as ut, a3 as mt } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
1
+ import { j as r, c as d, P as D, M as tt, v as R, J as nt, ar as Ee, as as $e, o as V, G as Le, at as ot, au as st, w as T, av as je, aw as _e, ax as De, ay as at, az as Oe, aA as rt, A as it, I as lt, L as dt, aB as Be, F as Ie, H as ct, aC as ut, U as ft } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
2
2
  import * as u from "react";
3
- import { useRef as N, useEffect as Te, useContext as ve, forwardRef as ft, useState as ye, useImperativeHandle as gt, useCallback as Ce, useMemo as ht } from "react";
3
+ import { useRef as N, useEffect as ve, useContext as Te, forwardRef as mt, useState as we, useImperativeHandle as gt, useCallback as be, useMemo as ht } from "react";
4
4
  import pt from "react-dom";
5
+ import "@azure/msal-react";
6
+ import "@azure/msal-browser";
5
7
  import "zod";
6
8
  import "react-hook-form";
7
9
  import "react-router-dom";
8
- const Et = "_loading_rgybp_1", Tt = "_spinner-grow_rgybp_10", yt = "_second_rgybp_14", Ct = "_third_rgybp_17", _t = "_loadingBlock_rgybp_21", L = {
9
- loading: Et,
10
+ const yt = "_loading_rgybp_1", vt = "_spinner-grow_rgybp_10", wt = "_second_rgybp_14", bt = "_third_rgybp_17", Et = "_loadingBlock_rgybp_21", F = {
11
+ loading: yt,
10
12
  "spinner-grow": "_spinner-grow_rgybp_10",
11
- spinnerGrow: Tt,
12
- second: yt,
13
- third: Ct,
14
- loadingBlock: _t
15
- }, en = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", L.loading), children: [
16
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary"), role: "status" }),
17
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.second), role: "status" }),
18
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.third), role: "status" })
19
- ] }), vt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ r.jsx("div", {
13
+ spinnerGrow: vt,
14
+ second: wt,
15
+ third: bt,
16
+ loadingBlock: Et
17
+ }, nn = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", F.loading), children: [
18
+ /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary"), role: "status" }),
19
+ /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary", F.second), role: "status" }),
20
+ /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary", F.third), role: "status" })
21
+ ] }), Tt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ r.jsx("div", {
20
22
  ...e,
21
23
  ref: n,
22
24
  className: d(e.className, t)
23
25
  }));
24
26
  function Nt(t) {
25
27
  const e = N(null);
26
- return Te(() => {
28
+ return ve(() => {
27
29
  e.current = t;
28
30
  }), e.current;
29
31
  }
30
- const Rt = {
32
+ const Ct = {
31
33
  /** An accessible label indicating the relevant information about the Close Button. */
32
34
  "aria-label": D.string,
33
35
  /** A callback fired after the Close Button is clicked. */
@@ -51,16 +53,16 @@ const Rt = {
51
53
  ...o
52
54
  }));
53
55
  Ne.displayName = "CloseButton";
54
- Ne.propTypes = Rt;
55
- var St = Function.prototype.bind.call(Function.prototype.call, [].slice);
56
- function x(t, e) {
57
- return St(t.querySelectorAll(e));
56
+ Ne.propTypes = Ct;
57
+ var Mt = Function.prototype.bind.call(Function.prototype.call, [].slice);
58
+ function S(t, e) {
59
+ return Mt(t.querySelectorAll(e));
58
60
  }
59
- const wt = "data-rr-ui-";
60
- function Ot(t) {
61
- return `${wt}${t}`;
61
+ const Rt = "data-rr-ui-";
62
+ function xt(t) {
63
+ return `${Rt}${t}`;
62
64
  }
63
- const bt = {
65
+ const kt = {
64
66
  /**
65
67
  * Specify whether the feedback is for valid or invalid fields
66
68
  *
@@ -70,7 +72,7 @@ const bt = {
70
72
  /** Display feedback as a tooltip. */
71
73
  tooltip: D.bool,
72
74
  as: D.elementType
73
- }, Re = /* @__PURE__ */ u.forwardRef(
75
+ }, Ce = /* @__PURE__ */ u.forwardRef(
74
76
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
75
77
  ({
76
78
  as: t = "div",
@@ -84,50 +86,50 @@ const bt = {
84
86
  className: d(e, `${n}-${o ? "tooltip" : "feedback"}`)
85
87
  })
86
88
  );
87
- Re.displayName = "Feedback";
88
- Re.propTypes = bt;
89
- const Ue = /* @__PURE__ */ u.forwardRef(({
89
+ Ce.displayName = "Feedback";
90
+ Ce.propTypes = kt;
91
+ const We = /* @__PURE__ */ u.forwardRef(({
90
92
  bsPrefix: t,
91
93
  type: e,
92
94
  size: n,
93
95
  htmlSize: o,
94
96
  id: s,
95
97
  className: a,
96
- isValid: m = !1,
97
- isInvalid: f = !1,
98
+ isValid: f = !1,
99
+ isInvalid: m = !1,
98
100
  plaintext: p,
99
- readOnly: y,
101
+ readOnly: w,
100
102
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
101
103
  as: g = "input",
102
- ...R
103
- }, E) => {
104
+ ...C
105
+ }, y) => {
104
106
  const {
105
- controlId: T
106
- } = ve(tt);
107
- return t = w(t, "form-control"), process.env.NODE_ENV !== "production" && nt(T == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(g, {
108
- ...R,
107
+ controlId: v
108
+ } = Te(tt);
109
+ return t = R(t, "form-control"), process.env.NODE_ENV !== "production" && nt(v == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(g, {
110
+ ...C,
109
111
  type: e,
110
112
  size: o,
111
- ref: E,
112
- readOnly: y,
113
- id: s || T,
114
- className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, m && "is-valid", f && "is-invalid")
113
+ ref: y,
114
+ readOnly: w,
115
+ id: s || v,
116
+ className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, f && "is-valid", m && "is-invalid")
115
117
  });
116
118
  });
117
- Ue.displayName = "FormControl";
118
- const tn = Object.assign(Ue, {
119
- Feedback: Re
119
+ We.displayName = "FormControl";
120
+ const on = Object.assign(We, {
121
+ Feedback: Ce
120
122
  });
121
123
  var oe;
122
- function Fe(t) {
123
- if ((!oe && oe !== 0 || t) && _e) {
124
+ function Ae(t) {
125
+ if ((!oe && oe !== 0 || t) && Ee) {
124
126
  var e = document.createElement("div");
125
127
  e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), oe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
126
128
  }
127
129
  return oe;
128
130
  }
129
131
  function he(t) {
130
- t === void 0 && (t = je());
132
+ t === void 0 && (t = $e());
131
133
  try {
132
134
  var e = t.activeElement;
133
135
  return !e || !e.nodeName ? null : e;
@@ -135,12 +137,12 @@ function he(t) {
135
137
  return t.body;
136
138
  }
137
139
  }
138
- function At(t = document) {
140
+ function jt(t = document) {
139
141
  const e = t.defaultView;
140
142
  return Math.abs(e.innerWidth - t.documentElement.clientWidth);
141
143
  }
142
- const Le = Ot("modal-open");
143
- class Se {
144
+ const Fe = xt("modal-open");
145
+ class Me {
144
146
  constructor({
145
147
  ownerDocument: e,
146
148
  handleContainerOverflow: n = !0,
@@ -149,7 +151,7 @@ class Se {
149
151
  this.handleContainerOverflow = n, this.isRTL = o, this.modals = [], this.ownerDocument = e;
150
152
  }
151
153
  getScrollbarWidth() {
152
- return At(this.ownerDocument);
154
+ return jt(this.ownerDocument);
153
155
  }
154
156
  getElement() {
155
157
  return (this.ownerDocument || document).body;
@@ -165,14 +167,14 @@ class Se {
165
167
  e.style = {
166
168
  overflow: s.style.overflow,
167
169
  [o]: s.style[o]
168
- }, e.scrollBarWidth && (n[o] = `${parseInt(q(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Le, ""), q(s, n);
170
+ }, e.scrollBarWidth && (n[o] = `${parseInt(V(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Fe, ""), V(s, n);
169
171
  }
170
172
  reset() {
171
173
  [...this.modals].forEach((e) => this.remove(e));
172
174
  }
173
175
  removeContainerStyle(e) {
174
176
  const n = this.getElement();
175
- n.removeAttribute(Le), Object.assign(n.style, e.style);
177
+ n.removeAttribute(Fe), Object.assign(n.style, e.style);
176
178
  }
177
179
  add(e) {
178
180
  let n = this.modals.indexOf(e);
@@ -189,8 +191,8 @@ class Se {
189
191
  return !!this.modals.length && this.modals[this.modals.length - 1] === e;
190
192
  }
191
193
  }
192
- const Mt = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
193
- function kt(t, e) {
194
+ const _t = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
195
+ function Ot(t, e) {
194
196
  if (t == null)
195
197
  return {};
196
198
  var n = {}, o = Object.keys(t), s, a;
@@ -199,13 +201,13 @@ function kt(t, e) {
199
201
  return n;
200
202
  }
201
203
  let pe;
202
- function It(t) {
203
- return pe || (pe = new Se({
204
+ function Bt(t) {
205
+ return pe || (pe = new Me({
204
206
  ownerDocument: t == null ? void 0 : t.document
205
207
  })), pe;
206
208
  }
207
- function Ft(t) {
208
- const e = Be(), n = t || It(e), o = N({
209
+ function At(t) {
210
+ const e = Le(), n = t || Bt(e), o = N({
209
211
  dialog: null,
210
212
  backdrop: null
211
213
  });
@@ -213,95 +215,95 @@ function Ft(t) {
213
215
  add: () => n.add(o.current),
214
216
  remove: () => n.remove(o.current),
215
217
  isTopModal: () => n.isTopModal(o.current),
216
- setDialogRef: Ce((s) => {
218
+ setDialogRef: be((s) => {
217
219
  o.current.dialog = s;
218
220
  }, []),
219
- setBackdropRef: Ce((s) => {
221
+ setBackdropRef: be((s) => {
220
222
  o.current.backdrop = s;
221
223
  }, [])
222
224
  });
223
225
  }
224
- const We = /* @__PURE__ */ ft((t, e) => {
226
+ const He = /* @__PURE__ */ mt((t, e) => {
225
227
  let {
226
228
  show: n = !1,
227
229
  role: o = "dialog",
228
230
  className: s,
229
231
  style: a,
230
- children: m,
231
- backdrop: f = !0,
232
+ children: f,
233
+ backdrop: m = !0,
232
234
  keyboard: p = !0,
233
- onBackdropClick: y,
235
+ onBackdropClick: w,
234
236
  onEscapeKeyDown: g,
235
- transition: R,
236
- runTransition: E,
237
- backdropTransition: T,
237
+ transition: C,
238
+ runTransition: y,
239
+ backdropTransition: v,
238
240
  runBackdropTransition: se,
239
- autoFocus: V = !0,
241
+ autoFocus: z = !0,
240
242
  enforceFocus: ae = !0,
241
- restoreFocus: O = !0,
243
+ restoreFocus: x = !0,
242
244
  restoreFocusOptions: re,
243
- renderDialog: Q,
245
+ renderDialog: X,
244
246
  renderBackdrop: ie = (l) => /* @__PURE__ */ r.jsx("div", Object.assign({}, l)),
245
247
  manager: le,
246
248
  container: de,
247
- onShow: z,
248
- onHide: $ = () => {
249
+ onShow: q,
250
+ onHide: I = () => {
249
251
  },
250
252
  onExit: ce,
251
- onExited: U,
253
+ onExited: W,
252
254
  onExiting: Y,
253
- onEnter: X,
254
- onEntering: J,
255
+ onEnter: J,
256
+ onEntering: Q,
255
257
  onEntered: Z
256
- } = t, ue = kt(t, Mt);
257
- const C = Be(), b = ot(de), c = Ft(le), me = st(), P = Nt(n), [S, A] = ye(!n), h = N(null);
258
- gt(e, () => c, [c]), _e && !P && n && (h.current = he(C == null ? void 0 : C.document)), n && S && A(!1);
259
- const _ = v(() => {
260
- if (c.add(), M.current = Ae(document, "keydown", ge), G.current = Ae(
258
+ } = t, ue = Ot(t, _t);
259
+ const b = Le(), k = ot(de), c = At(le), fe = st(), P = Nt(n), [M, j] = we(!n), h = N(null);
260
+ gt(e, () => c, [c]), Ee && !P && n && (h.current = he(b == null ? void 0 : b.document)), n && M && j(!1);
261
+ const E = T(() => {
262
+ if (c.add(), _.current = je(document, "keydown", ge), G.current = je(
261
263
  document,
262
264
  "focus",
263
265
  // the timeout is necessary b/c this will run before the new modal is mounted
264
266
  // and so steals focus from it
265
- () => setTimeout(fe),
267
+ () => setTimeout(me),
266
268
  !0
267
- ), z && z(), V) {
269
+ ), q && q(), z) {
268
270
  var l, ne;
269
- const H = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : C == null ? void 0 : C.document);
270
- c.dialog && H && !Me(c.dialog, H) && (h.current = H, c.dialog.focus());
271
+ const U = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : b == null ? void 0 : b.document);
272
+ c.dialog && U && !_e(c.dialog, U) && (h.current = U, c.dialog.focus());
271
273
  }
272
- }), W = v(() => {
273
- if (c.remove(), M.current == null || M.current(), G.current == null || G.current(), O) {
274
+ }), H = T(() => {
275
+ if (c.remove(), _.current == null || _.current(), G.current == null || G.current(), x) {
274
276
  var l;
275
277
  (l = h.current) == null || l.focus == null || l.focus(re), h.current = null;
276
278
  }
277
279
  });
278
- Te(() => {
279
- !n || !b || _();
280
+ ve(() => {
281
+ !n || !k || E();
280
282
  }, [
281
283
  n,
282
- b,
284
+ k,
283
285
  /* should never change: */
284
- _
285
- ]), Te(() => {
286
- S && W();
287
- }, [S, W]), De(() => {
288
- W();
286
+ E
287
+ ]), ve(() => {
288
+ M && H();
289
+ }, [M, H]), De(() => {
290
+ H();
289
291
  });
290
- const fe = v(() => {
291
- if (!ae || !me() || !c.isTopModal())
292
+ const me = T(() => {
293
+ if (!ae || !fe() || !c.isTopModal())
292
294
  return;
293
- const l = he(C == null ? void 0 : C.document);
294
- c.dialog && l && !Me(c.dialog, l) && c.dialog.focus();
295
- }), ee = v((l) => {
296
- l.target === l.currentTarget && (y == null || y(l), f === !0 && $());
297
- }), ge = v((l) => {
298
- p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || $());
299
- }), G = N(), M = N(), te = (...l) => {
300
- A(!0), U == null || U(...l);
295
+ const l = he(b == null ? void 0 : b.document);
296
+ c.dialog && l && !_e(c.dialog, l) && c.dialog.focus();
297
+ }), ee = T((l) => {
298
+ l.target === l.currentTarget && (w == null || w(l), m === !0 && I());
299
+ }), ge = T((l) => {
300
+ p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || I());
301
+ }), G = N(), _ = N(), te = (...l) => {
302
+ j(!0), W == null || W(...l);
301
303
  };
302
- if (!b)
304
+ if (!k)
303
305
  return null;
304
- const k = Object.assign({
306
+ const O = Object.assign({
305
307
  role: o,
306
308
  ref: c.setDialogRef,
307
309
  // apparently only works on the dialog role element
@@ -311,12 +313,12 @@ const We = /* @__PURE__ */ ft((t, e) => {
311
313
  className: s,
312
314
  tabIndex: -1
313
315
  });
314
- let K = Q ? Q(k) : /* @__PURE__ */ r.jsx("div", Object.assign({}, k, {
315
- children: /* @__PURE__ */ u.cloneElement(m, {
316
+ let K = X ? X(O) : /* @__PURE__ */ r.jsx("div", Object.assign({}, O, {
317
+ children: /* @__PURE__ */ u.cloneElement(f, {
316
318
  role: "document"
317
319
  })
318
320
  }));
319
- K = ke(R, E, {
321
+ K = Oe(C, y, {
320
322
  unmountOnExit: !0,
321
323
  mountOnEnter: !0,
322
324
  appear: !0,
@@ -324,84 +326,84 @@ const We = /* @__PURE__ */ ft((t, e) => {
324
326
  onExit: ce,
325
327
  onExiting: Y,
326
328
  onExited: te,
327
- onEnter: X,
328
- onEntering: J,
329
+ onEnter: J,
330
+ onEntering: Q,
329
331
  onEntered: Z,
330
332
  children: K
331
333
  });
332
- let I = null;
333
- return f && (I = ie({
334
+ let B = null;
335
+ return m && (B = ie({
334
336
  ref: c.setBackdropRef,
335
337
  onClick: ee
336
- }), I = ke(T, se, {
338
+ }), B = Oe(v, se, {
337
339
  in: !!n,
338
340
  appear: !0,
339
341
  mountOnEnter: !0,
340
342
  unmountOnExit: !0,
341
- children: I
343
+ children: B
342
344
  })), /* @__PURE__ */ r.jsx(r.Fragment, {
343
345
  children: /* @__PURE__ */ pt.createPortal(/* @__PURE__ */ r.jsxs(r.Fragment, {
344
- children: [I, K]
345
- }), b)
346
+ children: [B, K]
347
+ }), k)
346
348
  });
347
349
  });
348
- We.displayName = "Modal";
349
- const Lt = Object.assign(We, {
350
- Manager: Se
350
+ He.displayName = "Modal";
351
+ const Ft = Object.assign(He, {
352
+ Manager: Me
351
353
  });
352
- function xt(t, e) {
354
+ function St(t, e) {
353
355
  t.classList ? t.classList.add(e) : rt(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
354
356
  }
355
- function xe(t, e) {
357
+ function Se(t, e) {
356
358
  return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
357
359
  }
358
- function jt(t, e) {
359
- t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = xe(t.className, e) : t.setAttribute("class", xe(t.className && t.className.baseVal || "", e));
360
+ function $t(t, e) {
361
+ t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = Se(t.className, e) : t.setAttribute("class", Se(t.className && t.className.baseVal || "", e));
360
362
  }
361
- const j = {
363
+ const $ = {
362
364
  FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
363
365
  STICKY_CONTENT: ".sticky-top",
364
366
  NAVBAR_TOGGLER: ".navbar-toggler"
365
367
  };
366
- class Bt extends Se {
368
+ class Lt extends Me {
367
369
  adjustAndStore(e, n, o) {
368
370
  const s = n.style[e];
369
- n.dataset[e] = s, q(n, {
370
- [e]: `${parseFloat(q(n, e)) + o}px`
371
+ n.dataset[e] = s, V(n, {
372
+ [e]: `${parseFloat(V(n, e)) + o}px`
371
373
  });
372
374
  }
373
375
  restore(e, n) {
374
376
  const o = n.dataset[e];
375
- o !== void 0 && (delete n.dataset[e], q(n, {
377
+ o !== void 0 && (delete n.dataset[e], V(n, {
376
378
  [e]: o
377
379
  }));
378
380
  }
379
381
  setContainerStyle(e) {
380
382
  super.setContainerStyle(e);
381
383
  const n = this.getElement();
382
- if (xt(n, "modal-open"), !e.scrollBarWidth)
384
+ if (St(n, "modal-open"), !e.scrollBarWidth)
383
385
  return;
384
386
  const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
385
- x(n, j.FIXED_CONTENT).forEach((a) => this.adjustAndStore(o, a, e.scrollBarWidth)), x(n, j.STICKY_CONTENT).forEach((a) => this.adjustAndStore(s, a, -e.scrollBarWidth)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.adjustAndStore(s, a, e.scrollBarWidth));
387
+ S(n, $.FIXED_CONTENT).forEach((a) => this.adjustAndStore(o, a, e.scrollBarWidth)), S(n, $.STICKY_CONTENT).forEach((a) => this.adjustAndStore(s, a, -e.scrollBarWidth)), S(n, $.NAVBAR_TOGGLER).forEach((a) => this.adjustAndStore(s, a, e.scrollBarWidth));
386
388
  }
387
389
  removeContainerStyle(e) {
388
390
  super.removeContainerStyle(e);
389
391
  const n = this.getElement();
390
- jt(n, "modal-open");
392
+ $t(n, "modal-open");
391
393
  const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
392
- x(n, j.FIXED_CONTENT).forEach((a) => this.restore(o, a)), x(n, j.STICKY_CONTENT).forEach((a) => this.restore(s, a)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.restore(s, a));
394
+ S(n, $.FIXED_CONTENT).forEach((a) => this.restore(o, a)), S(n, $.STICKY_CONTENT).forEach((a) => this.restore(s, a)), S(n, $.NAVBAR_TOGGLER).forEach((a) => this.restore(s, a));
393
395
  }
394
396
  }
395
- let Ee;
397
+ let ye;
396
398
  function Dt(t) {
397
- return Ee || (Ee = new Bt(t)), Ee;
399
+ return ye || (ye = new Lt(t)), ye;
398
400
  }
399
401
  const Ge = /* @__PURE__ */ u.forwardRef(({
400
402
  className: t,
401
403
  bsPrefix: e,
402
404
  as: n = "div",
403
405
  ...o
404
- }, s) => (e = w(e, "modal-body"), /* @__PURE__ */ r.jsx(n, {
406
+ }, s) => (e = R(e, "modal-body"), /* @__PURE__ */ r.jsx(n, {
405
407
  ref: s,
406
408
  className: d(t, e),
407
409
  ...o
@@ -411,54 +413,54 @@ const Ke = /* @__PURE__ */ u.createContext({
411
413
  // eslint-disable-next-line @typescript-eslint/no-empty-function
412
414
  onHide() {
413
415
  }
414
- }), we = /* @__PURE__ */ u.forwardRef(({
416
+ }), Re = /* @__PURE__ */ u.forwardRef(({
415
417
  bsPrefix: t,
416
418
  className: e,
417
419
  contentClassName: n,
418
420
  centered: o,
419
421
  size: s,
420
422
  fullscreen: a,
421
- children: m,
422
- scrollable: f,
423
+ children: f,
424
+ scrollable: m,
423
425
  ...p
424
- }, y) => {
425
- t = w(t, "modal");
426
- const g = `${t}-dialog`, R = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
426
+ }, w) => {
427
+ t = R(t, "modal");
428
+ const g = `${t}-dialog`, C = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
427
429
  return /* @__PURE__ */ r.jsx("div", {
428
430
  ...p,
429
- ref: y,
430
- className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, f && `${g}-scrollable`, a && R),
431
+ ref: w,
432
+ className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, m && `${g}-scrollable`, a && C),
431
433
  children: /* @__PURE__ */ r.jsx("div", {
432
434
  className: d(`${t}-content`, n),
433
- children: m
435
+ children: f
434
436
  })
435
437
  });
436
438
  });
437
- we.displayName = "ModalDialog";
438
- const He = /* @__PURE__ */ u.forwardRef(({
439
+ Re.displayName = "ModalDialog";
440
+ const Ue = /* @__PURE__ */ u.forwardRef(({
439
441
  className: t,
440
442
  bsPrefix: e,
441
443
  as: n = "div",
442
444
  ...o
443
- }, s) => (e = w(e, "modal-footer"), /* @__PURE__ */ r.jsx(n, {
445
+ }, s) => (e = R(e, "modal-footer"), /* @__PURE__ */ r.jsx(n, {
444
446
  ref: s,
445
447
  className: d(t, e),
446
448
  ...o
447
449
  })));
448
- He.displayName = "ModalFooter";
449
- const $t = /* @__PURE__ */ u.forwardRef(({
450
+ Ue.displayName = "ModalFooter";
451
+ const It = /* @__PURE__ */ u.forwardRef(({
450
452
  closeLabel: t = "Close",
451
453
  closeVariant: e,
452
454
  closeButton: n = !1,
453
455
  onHide: o,
454
456
  children: s,
455
457
  ...a
456
- }, m) => {
457
- const f = ve(Ke), p = v(() => {
458
- f == null || f.onHide(), o == null || o();
458
+ }, f) => {
459
+ const m = Te(Ke), p = T(() => {
460
+ m == null || m.onHide(), o == null || o();
459
461
  });
460
462
  return /* @__PURE__ */ r.jsxs("div", {
461
- ref: m,
463
+ ref: f,
462
464
  ...a,
463
465
  children: [s, n && /* @__PURE__ */ r.jsx(Ne, {
464
466
  "aria-label": t,
@@ -466,153 +468,153 @@ const $t = /* @__PURE__ */ u.forwardRef(({
466
468
  onClick: p
467
469
  })]
468
470
  });
469
- }), qe = /* @__PURE__ */ u.forwardRef(({
471
+ }), Ve = /* @__PURE__ */ u.forwardRef(({
470
472
  bsPrefix: t,
471
473
  className: e,
472
474
  closeLabel: n = "Close",
473
475
  closeButton: o = !1,
474
476
  ...s
475
- }, a) => (t = w(t, "modal-header"), /* @__PURE__ */ r.jsx($t, {
477
+ }, a) => (t = R(t, "modal-header"), /* @__PURE__ */ r.jsx(It, {
476
478
  ref: a,
477
479
  ...s,
478
480
  className: d(e, t),
479
481
  closeLabel: n,
480
482
  closeButton: o
481
483
  })));
482
- qe.displayName = "ModalHeader";
483
- const Ut = vt("h4"), Ve = /* @__PURE__ */ u.forwardRef(({
484
+ Ve.displayName = "ModalHeader";
485
+ const Wt = Tt("h4"), ze = /* @__PURE__ */ u.forwardRef(({
484
486
  className: t,
485
487
  bsPrefix: e,
486
- as: n = Ut,
488
+ as: n = Wt,
487
489
  ...o
488
- }, s) => (e = w(e, "modal-title"), /* @__PURE__ */ r.jsx(n, {
490
+ }, s) => (e = R(e, "modal-title"), /* @__PURE__ */ r.jsx(n, {
489
491
  ref: s,
490
492
  className: d(t, e),
491
493
  ...o
492
494
  })));
493
- Ve.displayName = "ModalTitle";
494
- function Wt(t) {
495
- return /* @__PURE__ */ r.jsx($e, {
495
+ ze.displayName = "ModalTitle";
496
+ function Ht(t) {
497
+ return /* @__PURE__ */ r.jsx(Ie, {
496
498
  ...t,
497
499
  timeout: null
498
500
  });
499
501
  }
500
502
  function Gt(t) {
501
- return /* @__PURE__ */ r.jsx($e, {
503
+ return /* @__PURE__ */ r.jsx(Ie, {
502
504
  ...t,
503
505
  timeout: null
504
506
  });
505
507
  }
506
- const Qe = /* @__PURE__ */ u.forwardRef(({
508
+ const Xe = /* @__PURE__ */ u.forwardRef(({
507
509
  bsPrefix: t,
508
510
  className: e,
509
511
  style: n,
510
512
  dialogClassName: o,
511
513
  contentClassName: s,
512
514
  children: a,
513
- dialogAs: m = we,
514
- "data-bs-theme": f,
515
+ dialogAs: f = Re,
516
+ "data-bs-theme": m,
515
517
  "aria-labelledby": p,
516
- "aria-describedby": y,
518
+ "aria-describedby": w,
517
519
  "aria-label": g,
518
520
  /* BaseModal props */
519
- show: R = !1,
520
- animation: E = !0,
521
- backdrop: T = !0,
521
+ show: C = !1,
522
+ animation: y = !0,
523
+ backdrop: v = !0,
522
524
  keyboard: se = !0,
523
- onEscapeKeyDown: V,
525
+ onEscapeKeyDown: z,
524
526
  onShow: ae,
525
- onHide: O,
527
+ onHide: x,
526
528
  container: re,
527
- autoFocus: Q = !0,
529
+ autoFocus: X = !0,
528
530
  enforceFocus: ie = !0,
529
531
  restoreFocus: le = !0,
530
532
  restoreFocusOptions: de,
531
- onEntered: z,
532
- onExit: $,
533
+ onEntered: q,
534
+ onExit: I,
533
535
  onExiting: ce,
534
- onEnter: U,
536
+ onEnter: W,
535
537
  onEntering: Y,
536
- onExited: X,
537
- backdropClassName: J,
538
+ onExited: J,
539
+ backdropClassName: Q,
538
540
  manager: Z,
539
541
  ...ue
540
- }, C) => {
541
- const [b, c] = ye({}), [me, P] = ye(!1), S = N(!1), A = N(!1), h = N(null), [_, W] = it(), fe = lt(C, W), ee = v(O), ge = dt();
542
- t = w(t, "modal");
542
+ }, b) => {
543
+ const [k, c] = we({}), [fe, P] = we(!1), M = N(!1), j = N(!1), h = N(null), [E, H] = it(), me = lt(b, H), ee = T(x), ge = dt();
544
+ t = R(t, "modal");
543
545
  const G = ht(() => ({
544
546
  onHide: ee
545
547
  }), [ee]);
546
- function M() {
548
+ function _() {
547
549
  return Z || Dt({
548
550
  isRTL: ge
549
551
  });
550
552
  }
551
553
  function te(i) {
552
- if (!_e)
554
+ if (!Ee)
553
555
  return;
554
- const F = M().getScrollbarWidth() > 0, be = i.scrollHeight > je(i).documentElement.clientHeight;
556
+ const A = _().getScrollbarWidth() > 0, ke = i.scrollHeight > $e(i).documentElement.clientHeight;
555
557
  c({
556
- paddingRight: F && !be ? Fe() : void 0,
557
- paddingLeft: !F && be ? Fe() : void 0
558
+ paddingRight: A && !ke ? Ae() : void 0,
559
+ paddingLeft: !A && ke ? Ae() : void 0
558
560
  });
559
561
  }
560
- const k = v(() => {
561
- _ && te(_.dialog);
562
+ const O = T(() => {
563
+ E && te(E.dialog);
562
564
  });
563
565
  De(() => {
564
- Ie(window, "resize", k), h.current == null || h.current();
566
+ Be(window, "resize", O), h.current == null || h.current();
565
567
  });
566
568
  const K = () => {
567
- S.current = !0;
568
- }, I = (i) => {
569
- S.current && _ && i.target === _.dialog && (A.current = !0), S.current = !1;
569
+ M.current = !0;
570
+ }, B = (i) => {
571
+ M.current && E && i.target === E.dialog && (j.current = !0), M.current = !1;
570
572
  }, l = () => {
571
- P(!0), h.current = ut(_.dialog, () => {
573
+ P(!0), h.current = ut(E.dialog, () => {
572
574
  P(!1);
573
575
  });
574
576
  }, ne = (i) => {
575
577
  i.target === i.currentTarget && l();
576
- }, H = (i) => {
577
- if (T === "static") {
578
+ }, U = (i) => {
579
+ if (v === "static") {
578
580
  ne(i);
579
581
  return;
580
582
  }
581
- if (A.current || i.target !== i.currentTarget) {
582
- A.current = !1;
583
+ if (j.current || i.target !== i.currentTarget) {
584
+ j.current = !1;
583
585
  return;
584
586
  }
585
- O == null || O();
586
- }, ze = (i) => {
587
- se ? V == null || V(i) : (i.preventDefault(), T === "static" && l());
588
- }, Ye = (i, F) => {
589
- i && te(i), U == null || U(i, F);
590
- }, Xe = (i) => {
591
- h.current == null || h.current(), $ == null || $(i);
592
- }, Je = (i, F) => {
593
- Y == null || Y(i, F), ct(window, "resize", k);
587
+ x == null || x();
588
+ }, qe = (i) => {
589
+ se ? z == null || z(i) : (i.preventDefault(), v === "static" && l());
590
+ }, Ye = (i, A) => {
591
+ i && te(i), W == null || W(i, A);
592
+ }, Je = (i) => {
593
+ h.current == null || h.current(), I == null || I(i);
594
+ }, Qe = (i, A) => {
595
+ Y == null || Y(i, A), ct(window, "resize", O);
594
596
  }, Ze = (i) => {
595
- i && (i.style.display = ""), X == null || X(i), Ie(window, "resize", k);
596
- }, Pe = Ce((i) => /* @__PURE__ */ r.jsx("div", {
597
+ i && (i.style.display = ""), J == null || J(i), Be(window, "resize", O);
598
+ }, Pe = be((i) => /* @__PURE__ */ r.jsx("div", {
597
599
  ...i,
598
- className: d(`${t}-backdrop`, J, !E && "show")
599
- }), [E, J, t]), Oe = {
600
+ className: d(`${t}-backdrop`, Q, !y && "show")
601
+ }), [y, Q, t]), xe = {
600
602
  ...n,
601
- ...b
603
+ ...k
602
604
  };
603
- Oe.display = "block";
605
+ xe.display = "block";
604
606
  const et = (i) => /* @__PURE__ */ r.jsx("div", {
605
607
  role: "dialog",
606
608
  ...i,
607
- style: Oe,
608
- className: d(e, t, me && `${t}-static`, !E && "show"),
609
- onClick: T ? H : void 0,
610
- onMouseUp: I,
611
- "data-bs-theme": f,
609
+ style: xe,
610
+ className: d(e, t, fe && `${t}-static`, !y && "show"),
611
+ onClick: v ? U : void 0,
612
+ onMouseUp: B,
613
+ "data-bs-theme": m,
612
614
  "aria-label": g,
613
615
  "aria-labelledby": p,
614
- "aria-describedby": y,
615
- children: /* @__PURE__ */ r.jsx(m, {
616
+ "aria-describedby": w,
617
+ children: /* @__PURE__ */ r.jsx(f, {
616
618
  ...ue,
617
619
  onMouseDown: K,
618
620
  className: o,
@@ -622,97 +624,67 @@ const Qe = /* @__PURE__ */ u.forwardRef(({
622
624
  });
623
625
  return /* @__PURE__ */ r.jsx(Ke.Provider, {
624
626
  value: G,
625
- children: /* @__PURE__ */ r.jsx(Lt, {
626
- show: R,
627
- ref: fe,
628
- backdrop: T,
627
+ children: /* @__PURE__ */ r.jsx(Ft, {
628
+ show: C,
629
+ ref: me,
630
+ backdrop: v,
629
631
  container: re,
630
632
  keyboard: !0,
631
- autoFocus: Q,
633
+ autoFocus: X,
632
634
  enforceFocus: ie,
633
635
  restoreFocus: le,
634
636
  restoreFocusOptions: de,
635
- onEscapeKeyDown: ze,
637
+ onEscapeKeyDown: qe,
636
638
  onShow: ae,
637
- onHide: O,
639
+ onHide: x,
638
640
  onEnter: Ye,
639
- onEntering: Je,
640
- onEntered: z,
641
- onExit: Xe,
641
+ onEntering: Qe,
642
+ onEntered: q,
643
+ onExit: Je,
642
644
  onExiting: ce,
643
645
  onExited: Ze,
644
- manager: M(),
645
- transition: E ? Wt : void 0,
646
- backdropTransition: E ? Gt : void 0,
646
+ manager: _(),
647
+ transition: y ? Ht : void 0,
648
+ backdropTransition: y ? Gt : void 0,
647
649
  renderBackdrop: Pe,
648
650
  renderDialog: et
649
651
  })
650
652
  });
651
653
  });
652
- Qe.displayName = "Modal";
653
- const nn = Object.assign(Qe, {
654
+ Xe.displayName = "Modal";
655
+ const sn = Object.assign(Xe, {
654
656
  Body: Ge,
655
- Header: qe,
656
- Title: Ve,
657
- Footer: He,
658
- Dialog: we,
657
+ Header: Ve,
658
+ Title: ze,
659
+ Footer: Ue,
660
+ Dialog: Re,
659
661
  TRANSITION_DURATION: 300,
660
662
  BACKDROP_TRANSITION_DURATION: 150
661
- });
662
- /*! @azure/msal-browser v3.14.0 2024-05-07 */
663
- const on = {
664
- INITIALIZE_START: "msal:initializeStart",
665
- INITIALIZE_END: "msal:initializeEnd",
666
- ACCOUNT_ADDED: "msal:accountAdded",
667
- ACCOUNT_REMOVED: "msal:accountRemoved",
668
- ACTIVE_ACCOUNT_CHANGED: "msal:activeAccountChanged",
669
- LOGIN_START: "msal:loginStart",
670
- LOGIN_SUCCESS: "msal:loginSuccess",
671
- LOGIN_FAILURE: "msal:loginFailure",
672
- ACQUIRE_TOKEN_START: "msal:acquireTokenStart",
673
- ACQUIRE_TOKEN_SUCCESS: "msal:acquireTokenSuccess",
674
- ACQUIRE_TOKEN_FAILURE: "msal:acquireTokenFailure",
675
- ACQUIRE_TOKEN_NETWORK_START: "msal:acquireTokenFromNetworkStart",
676
- SSO_SILENT_START: "msal:ssoSilentStart",
677
- SSO_SILENT_SUCCESS: "msal:ssoSilentSuccess",
678
- SSO_SILENT_FAILURE: "msal:ssoSilentFailure",
679
- ACQUIRE_TOKEN_BY_CODE_START: "msal:acquireTokenByCodeStart",
680
- ACQUIRE_TOKEN_BY_CODE_SUCCESS: "msal:acquireTokenByCodeSuccess",
681
- ACQUIRE_TOKEN_BY_CODE_FAILURE: "msal:acquireTokenByCodeFailure",
682
- HANDLE_REDIRECT_START: "msal:handleRedirectStart",
683
- HANDLE_REDIRECT_END: "msal:handleRedirectEnd",
684
- POPUP_OPENED: "msal:popupOpened",
685
- LOGOUT_START: "msal:logoutStart",
686
- LOGOUT_SUCCESS: "msal:logoutSuccess",
687
- LOGOUT_FAILURE: "msal:logoutFailure",
688
- LOGOUT_END: "msal:logoutEnd",
689
- RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
690
- }, Kt = "_button_1wjon_1", Ht = "_filled_1wjon_7", qt = "_sm_1wjon_13", Vt = "_md_1wjon_18", Qt = "_lg_1wjon_23", B = {
663
+ }), Kt = "_button_1wjon_1", Ut = "_filled_1wjon_7", Vt = "_sm_1wjon_13", zt = "_md_1wjon_18", Xt = "_lg_1wjon_23", L = {
691
664
  button: Kt,
692
- filled: Ht,
693
- sm: qt,
694
- md: Vt,
695
- lg: Qt
696
- }, sn = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
697
- const { LinkComponent: m } = ve(mt);
698
- return a.as === "link" ? /* @__PURE__ */ r.jsx(m, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : null;
665
+ filled: Ut,
666
+ sm: Vt,
667
+ md: zt,
668
+ lg: Xt
669
+ }, an = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
670
+ const { LinkComponent: f } = Te(ft);
671
+ return a.as === "link" ? /* @__PURE__ */ r.jsx(f, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : null;
699
672
  };
700
673
  export {
701
- $t as A,
702
- Lt as B,
674
+ It as A,
675
+ Ft as B,
703
676
  Ne as C,
704
- on as E,
705
- Re as F,
706
- en as L,
677
+ Ce as F,
678
+ nn as L,
707
679
  Ke as M,
708
- sn as P,
709
- Ot as a,
710
- tn as b,
711
- L as c,
712
- vt as d,
713
- Bt as e,
714
- nn as f,
680
+ an as P,
681
+ xt as a,
682
+ on as b,
683
+ F as c,
684
+ Tt as d,
685
+ Lt as e,
686
+ sn as f,
715
687
  Dt as g,
716
- x as q,
688
+ S as q,
717
689
  Nt as u
718
690
  };