react-luminus-components 2.0.5-beta.r19-25 → 2.0.5

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.
@@ -1,6 +1,6 @@
1
1
  import { t as j, bK as ce, c as A, bL as ae, Q as J, am as ue, bM as se, a4 as O, aj as fe, R as V, bN as de, aq as me, ao as he, bc as re, bx as ie, be as G, ap as ge, bO as Se, aE as te, bP as xe, bQ as ye, an as ve, b7 as be, a5 as ke } from "./nivo-bar-BHzU38wt.js";
2
2
  import { bR as ct, ag as at } from "./nivo-bar-BHzU38wt.js";
3
- import { jsxs as D, jsx as v } from "react/jsx-runtime";
3
+ import { jsxs as D, jsx as b } from "react/jsx-runtime";
4
4
  import { useState as _, useContext as H, useEffect as U, useRef as Q, useMemo as K, useCallback as Z } from "react";
5
5
  import { EventType as ee, InteractionStatus as we, InteractionRequiredAuthError as Te } from "@azure/msal-browser";
6
6
  import { useMsal as pe, MsalProvider as Ce } from "@azure/msal-react";
@@ -31,28 +31,28 @@ function Oe() {
31
31
  const Ne = (t) => {
32
32
  const e = A.c(10), {
33
33
  children: l
34
- } = t, [i, n] = _(!1), [a, o] = _(""), [s, y] = _(void 0);
35
- let x;
36
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (x = (g, f) => {
37
- n(!0), o(g), y(f);
38
- }, e[0] = x) : x = e[0];
39
- const d = x;
34
+ } = t, [i, n] = _(!1), [a, o] = _(""), [r, x] = _(void 0);
35
+ let y;
36
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = (m, g) => {
37
+ n(!0), o(m), x(g);
38
+ }, e[0] = y) : y = e[0];
39
+ const f = y;
40
40
  let S;
41
41
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
42
42
  n(!1);
43
43
  }, e[1] = S) : S = e[1];
44
- const m = S;
45
- let r;
46
- e[2] !== i || e[3] !== a || e[4] !== s ? (r = {
44
+ const d = S;
45
+ let s;
46
+ e[2] !== i || e[3] !== a || e[4] !== r ? (s = {
47
47
  show: i,
48
48
  text: a,
49
- showConfirm: d,
50
- hideConfirm: m,
51
- textSm: s
52
- }, e[2] = i, e[3] = a, e[4] = s, e[5] = r) : r = e[5];
53
- const c = r;
49
+ showConfirm: f,
50
+ hideConfirm: d,
51
+ textSm: r
52
+ }, e[2] = i, e[3] = a, e[4] = r, e[5] = s) : s = e[5];
53
+ const c = s;
54
54
  let u;
55
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ v(Fe, {}), e[6] = u) : u = e[6];
55
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ b(ze, {}), e[6] = u) : u = e[6];
56
56
  let h;
57
57
  return e[7] !== l || e[8] !== c ? (h = /* @__PURE__ */ D(ae.Provider, { value: c, children: [
58
58
  u,
@@ -69,63 +69,63 @@ const Ne = (t) => {
69
69
  onFinish: a
70
70
  } = ue(), {
71
71
  options: o
72
- } = H(se), [s, y] = _(o.defaultValue ?? "");
73
- let x;
74
- t[0] !== a ? (x = () => {
72
+ } = H(se), [r, x] = _(o.defaultValue ?? "");
73
+ let y;
74
+ t[0] !== a ? (y = () => {
75
75
  a(null);
76
- }, t[0] = a, t[1] = x) : x = t[1];
77
- const d = x;
76
+ }, t[0] = a, t[1] = y) : y = t[1];
77
+ const f = y;
78
78
  let S;
79
- t[2] !== a || t[3] !== o.required || t[4] !== s ? (S = (R) => {
80
- R.preventDefault(), !(o.required && !s) && (a(s), y(""));
81
- }, t[2] = a, t[3] = o.required, t[4] = s, t[5] = S) : S = t[5];
82
- const m = S;
83
- let r;
84
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (r = (R) => y(R.currentTarget.value), t[6] = r) : r = t[6];
79
+ t[2] !== a || t[3] !== o.required || t[4] !== r ? (S = (R) => {
80
+ R.preventDefault(), !(o.required && !r) && (a(r), x(""));
81
+ }, t[2] = a, t[3] = o.required, t[4] = r, t[5] = S) : S = t[5];
82
+ const d = S;
83
+ let s;
84
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = (R) => x(R.currentTarget.value), t[6] = s) : s = t[6];
85
85
  let c;
86
- t[7] !== s ? (c = {
87
- value: s,
88
- onChange: r,
86
+ t[7] !== r ? (c = {
87
+ value: r,
88
+ onChange: s,
89
89
  className: "w-100",
90
90
  autoFocus: !0,
91
91
  tabIndex: 0
92
- }, t[7] = s, t[8] = c) : c = t[8];
92
+ }, t[7] = r, t[8] = c) : c = t[8];
93
93
  const u = c;
94
- let h, g;
94
+ let h, m;
95
95
  t[9] !== i || t[10] !== o.defaultValue ? (h = () => {
96
- i === !0 && y(o.defaultValue ?? "");
97
- }, g = [i, o.defaultValue], t[9] = i, t[10] = o.defaultValue, t[11] = h, t[12] = g) : (h = t[11], g = t[12]), U(h, g);
98
- let f;
99
- t[13] !== n ? (f = /* @__PURE__ */ v(O.Header, { className: "justify-content-center", children: /* @__PURE__ */ v(O.Title, { children: n }) }), t[13] = n, t[14] = f) : f = t[14];
100
- let b;
101
- t[15] !== u || t[16] !== o.input ? (b = o.input === "textarea" ? /* @__PURE__ */ v("textarea", { ...u, rows: 5 }) : void 0, t[15] = u, t[16] = o.input, t[17] = b) : b = t[17];
96
+ i === !0 && x(o.defaultValue ?? "");
97
+ }, m = [i, o.defaultValue], t[9] = i, t[10] = o.defaultValue, t[11] = h, t[12] = m) : (h = t[11], m = t[12]), U(h, m);
98
+ let g;
99
+ t[13] !== n ? (g = /* @__PURE__ */ b(O.Header, { className: "justify-content-center", children: /* @__PURE__ */ b(O.Title, { children: n }) }), t[13] = n, t[14] = g) : g = t[14];
100
+ let v;
101
+ t[15] !== u || t[16] !== o.input ? (v = o.input === "textarea" ? /* @__PURE__ */ b("textarea", { ...u, rows: 5 }) : void 0, t[15] = u, t[16] = o.input, t[17] = v) : v = t[17];
102
102
  let w;
103
- t[18] !== u || t[19] !== o.input || t[20] !== o.type ? (w = o.input === "input" ? /* @__PURE__ */ v(fe, { ...u, type: o.type }) : void 0, t[18] = u, t[19] = o.input, t[20] = o.type, t[21] = w) : w = t[21];
103
+ t[18] !== u || t[19] !== o.input || t[20] !== o.type ? (w = o.input === "input" ? /* @__PURE__ */ b(fe, { ...u, type: o.type }) : void 0, t[18] = u, t[19] = o.input, t[20] = o.type, t[21] = w) : w = t[21];
104
104
  let k;
105
- t[22] !== b || t[23] !== w ? (k = /* @__PURE__ */ D(O.Body, { children: [
106
- b,
105
+ t[22] !== v || t[23] !== w ? (k = /* @__PURE__ */ D(O.Body, { children: [
106
+ v,
107
107
  w
108
- ] }), t[22] = b, t[23] = w, t[24] = k) : k = t[24];
108
+ ] }), t[22] = v, t[23] = w, t[24] = k) : k = t[24];
109
109
  let P;
110
- t[25] !== l.cancel || t[26] !== d ? (P = /* @__PURE__ */ v(V, { variant: "outlined", color: "secondary", onClick: d, className: "flex-grow-1", children: l.cancel }), t[25] = l.cancel, t[26] = d, t[27] = P) : P = t[27];
111
- const N = o.required && !s;
110
+ t[25] !== l.cancel || t[26] !== f ? (P = /* @__PURE__ */ b(V, { variant: "outlined", color: "secondary", onClick: f, className: "flex-grow-1", children: l.cancel }), t[25] = l.cancel, t[26] = f, t[27] = P) : P = t[27];
111
+ const N = o.required && !r;
112
112
  let T;
113
- t[28] !== l.confirm || t[29] !== N ? (T = /* @__PURE__ */ v(V, { color: "primary", disabled: N, type: "submit", className: "flex-grow-1", children: l.confirm }), t[28] = l.confirm, t[29] = N, t[30] = T) : T = t[30];
113
+ t[28] !== l.confirm || t[29] !== N ? (T = /* @__PURE__ */ b(V, { color: "primary", disabled: N, type: "submit", className: "flex-grow-1", children: l.confirm }), t[28] = l.confirm, t[29] = N, t[30] = T) : T = t[30];
114
114
  let M;
115
115
  t[31] !== P || t[32] !== T ? (M = /* @__PURE__ */ D(O.Footer, { className: "w-100 d-flex gap-5", children: [
116
116
  P,
117
117
  T
118
118
  ] }), t[31] = P, t[32] = T, t[33] = M) : M = t[33];
119
119
  let p;
120
- t[34] !== m || t[35] !== k || t[36] !== M ? (p = /* @__PURE__ */ D("form", { onSubmit: m, onKeyDown: Ue, children: [
120
+ t[34] !== d || t[35] !== k || t[36] !== M ? (p = /* @__PURE__ */ D("form", { onSubmit: d, onKeyDown: Ue, children: [
121
121
  k,
122
122
  M
123
- ] }), t[34] = m, t[35] = k, t[36] = M, t[37] = p) : p = t[37];
123
+ ] }), t[34] = d, t[35] = k, t[36] = M, t[37] = p) : p = t[37];
124
124
  let L;
125
- return t[38] !== i || t[39] !== d || t[40] !== p || t[41] !== f ? (L = /* @__PURE__ */ D(O, { show: i, size: "sm", centered: !0, onHide: d, children: [
126
- f,
125
+ return t[38] !== i || t[39] !== f || t[40] !== p || t[41] !== g ? (L = /* @__PURE__ */ D(O, { show: i, size: "sm", centered: !0, onHide: f, children: [
126
+ g,
127
127
  p
128
- ] }), t[38] = i, t[39] = d, t[40] = p, t[41] = f, t[42] = L) : L = t[42], L;
128
+ ] }), t[38] = i, t[39] = f, t[40] = p, t[41] = g, t[42] = L) : L = t[42], L;
129
129
  };
130
130
  function Ue(t) {
131
131
  return t.stopPropagation();
@@ -134,40 +134,40 @@ const $e = (t) => {
134
134
  const e = A.c(11), {
135
135
  children: l
136
136
  } = t, [i, n] = _(!1), [a, o] = _("");
137
- let s;
138
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = {
137
+ let r;
138
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
139
139
  input: "textarea",
140
140
  type: "text"
141
- }, e[0] = s) : s = e[0];
142
- const [y, x] = _(s), d = Q(Ge);
141
+ }, e[0] = r) : r = e[0];
142
+ const [x, y] = _(r), f = Q(Ge);
143
143
  let S;
144
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (S = (b) => {
145
- o(b), n(!0);
144
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (S = (v) => {
145
+ o(v), n(!0);
146
146
  }, e[1] = S) : S = e[1];
147
- const m = S;
148
- let r;
149
- e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
147
+ const d = S;
148
+ let s;
149
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
150
150
  n(!1);
151
- }, e[2] = r) : r = e[2];
152
- const c = r;
151
+ }, e[2] = s) : s = e[2];
152
+ const c = s;
153
153
  let u;
154
- e[3] !== i || e[4] !== y || e[5] !== a ? (u = {
154
+ e[3] !== i || e[4] !== x || e[5] !== a ? (u = {
155
155
  isShown: i,
156
156
  text: a,
157
- showPrompt: m,
157
+ showPrompt: d,
158
158
  hidePrompt: c,
159
- resolveRef: d,
160
- options: y,
161
- setOptions: x
162
- }, e[3] = i, e[4] = y, e[5] = a, e[6] = u) : u = e[6];
159
+ resolveRef: f,
160
+ options: x,
161
+ setOptions: y
162
+ }, e[3] = i, e[4] = x, e[5] = a, e[6] = u) : u = e[6];
163
163
  const h = u;
164
+ let m;
165
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ b(Re, {}), e[7] = m) : m = e[7];
164
166
  let g;
165
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ v(Re, {}), e[7] = g) : g = e[7];
166
- let f;
167
- return e[8] !== l || e[9] !== h ? (f = /* @__PURE__ */ D(se.Provider, { value: h, children: [
167
+ return e[8] !== l || e[9] !== h ? (g = /* @__PURE__ */ D(se.Provider, { value: h, children: [
168
168
  l,
169
- g
170
- ] }), e[8] = l, e[9] = h, e[10] = f) : f = e[10], f;
169
+ m
170
+ ] }), e[8] = l, e[9] = h, e[10] = g) : g = e[10], g;
171
171
  };
172
172
  function Ge() {
173
173
  }
@@ -178,30 +178,30 @@ const et = (t) => {
178
178
  language: n,
179
179
  texts: a,
180
180
  ProjectIconComponent: o,
181
- localizationContext: s,
182
- chartColorPalette: y,
183
- children: x
181
+ localizationContext: r,
182
+ chartColorPalette: x,
183
+ children: y
184
184
  } = t;
185
- let d;
186
- e[0] !== o || e[1] !== i || e[2] !== y || e[3] !== l || e[4] !== n || e[5] !== s || e[6] !== a ? (d = {
185
+ let f;
186
+ e[0] !== o || e[1] !== i || e[2] !== x || e[3] !== l || e[4] !== n || e[5] !== r || e[6] !== a ? (f = {
187
187
  axiosOptions: i,
188
188
  cookieDomain: l,
189
189
  language: n,
190
190
  texts: a,
191
191
  ProjectIconComponent: o,
192
- localizationContext: s,
193
- chartColorPalette: y
194
- }, e[0] = o, e[1] = i, e[2] = y, e[3] = l, e[4] = n, e[5] = s, e[6] = a, e[7] = d) : d = e[7];
195
- const S = d;
196
- let m;
197
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ v(de, {}), e[8] = m) : m = e[8];
198
- let r;
199
- e[9] !== x ? (r = /* @__PURE__ */ v(Ne, { children: /* @__PURE__ */ D($e, { children: [
200
- m,
201
- x
202
- ] }) }), e[9] = x, e[10] = r) : r = e[10];
192
+ localizationContext: r,
193
+ chartColorPalette: x
194
+ }, e[0] = o, e[1] = i, e[2] = x, e[3] = l, e[4] = n, e[5] = r, e[6] = a, e[7] = f) : f = e[7];
195
+ const S = f;
196
+ let d;
197
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ b(de, {}), e[8] = d) : d = e[8];
198
+ let s;
199
+ e[9] !== y ? (s = /* @__PURE__ */ b(Ne, { children: /* @__PURE__ */ D($e, { children: [
200
+ d,
201
+ y
202
+ ] }) }), e[9] = y, e[10] = s) : s = e[10];
203
203
  let c;
204
- return e[11] !== S || e[12] !== r ? (c = /* @__PURE__ */ v(J.Provider, { value: S, children: r }), e[11] = S, e[12] = r, e[13] = c) : c = e[13], c;
204
+ return e[11] !== S || e[12] !== s ? (c = /* @__PURE__ */ b(J.Provider, { value: S, children: s }), e[11] = S, e[12] = s, e[13] = c) : c = e[13], c;
205
205
  }, tt = (t) => {
206
206
  const e = A.c(15), {
207
207
  children: l
@@ -209,30 +209,30 @@ const et = (t) => {
209
209
  let a;
210
210
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ new Set(), e[0] = a) : a = e[0];
211
211
  const [o] = _(a);
212
- let s;
213
- e[1] !== o ? (s = (u) => {
212
+ let r;
213
+ e[1] !== o ? (r = (u) => {
214
214
  o.add(u), n(!0);
215
- }, e[1] = o, e[2] = s) : s = e[2];
216
- const y = s;
217
- let x;
218
- e[3] !== o ? (x = (u) => {
215
+ }, e[1] = o, e[2] = r) : r = e[2];
216
+ const x = r;
217
+ let y;
218
+ e[3] !== o ? (y = (u) => {
219
219
  o.delete(u), o.size === 0 && n(!1);
220
- }, e[3] = o, e[4] = x) : x = e[4];
221
- const d = x;
220
+ }, e[3] = o, e[4] = y) : y = e[4];
221
+ const f = y;
222
222
  let S;
223
- e[5] !== i || e[6] !== y || e[7] !== d ? (S = {
223
+ e[5] !== i || e[6] !== x || e[7] !== f ? (S = {
224
224
  isLoading: i,
225
- startLoading: y,
226
- stopLoading: d
227
- }, e[5] = i, e[6] = y, e[7] = d, e[8] = S) : S = e[8];
228
- const m = S;
229
- let r;
230
- e[9] !== i ? (r = i && /* @__PURE__ */ v(De, {}), e[9] = i, e[10] = r) : r = e[10];
225
+ startLoading: x,
226
+ stopLoading: f
227
+ }, e[5] = i, e[6] = x, e[7] = f, e[8] = S) : S = e[8];
228
+ const d = S;
229
+ let s;
230
+ e[9] !== i ? (s = i && /* @__PURE__ */ b(De, {}), e[9] = i, e[10] = s) : s = e[10];
231
231
  let c;
232
- return e[11] !== l || e[12] !== m || e[13] !== r ? (c = /* @__PURE__ */ D(me.Provider, { value: m, children: [
233
- r,
232
+ return e[11] !== l || e[12] !== d || e[13] !== s ? (c = /* @__PURE__ */ D(me.Provider, { value: d, children: [
233
+ s,
234
234
  l
235
- ] }), e[11] = l, e[12] = m, e[13] = r, e[14] = c) : c = e[14], c;
235
+ ] }), e[11] = l, e[12] = d, e[13] = s, e[14] = c) : c = e[14], c;
236
236
  }, nt = (t) => {
237
237
  const e = A.c(39), {
238
238
  children: l
@@ -241,20 +241,20 @@ const et = (t) => {
241
241
  getToken: a
242
242
  } = H(re), {
243
243
  delegation: o,
244
- setDelegation: s,
245
- setAvailableDelegations: y,
246
- refreshAvailableDelegations: x
247
- } = H(ie), [d, S] = _(null);
248
- let m;
249
- e[0] !== a ? (m = async () => {
244
+ setDelegation: r,
245
+ setAvailableDelegations: x,
246
+ refreshAvailableDelegations: y
247
+ } = H(ie), [f, S] = _(null);
248
+ let d;
249
+ e[0] !== a ? (d = async () => {
250
250
  const C = await a();
251
251
  C && S(C.token);
252
- }, e[0] = a, e[1] = m) : m = e[1];
253
- const r = m;
252
+ }, e[0] = a, e[1] = d) : d = e[1];
253
+ const s = d;
254
254
  let c, u;
255
- e[2] !== r ? (c = () => {
256
- r();
257
- }, u = [r], e[2] = r, e[3] = c, e[4] = u) : (c = e[3], u = e[4]), U(c, u);
255
+ e[2] !== s ? (c = () => {
256
+ s();
257
+ }, u = [s], e[2] = s, e[3] = c, e[4] = u) : (c = e[3], u = e[4]), U(c, u);
258
258
  let h;
259
259
  if (e[5] === Symbol.for("react.memo_cache_sentinel")) {
260
260
  e: {
@@ -268,13 +268,13 @@ const et = (t) => {
268
268
  e[5] = h;
269
269
  } else
270
270
  h = e[5];
271
- const g = h;
272
- let f;
273
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (f = {
274
- state: g ? G.LOGGED_IN : G.LOGGED_OUT,
275
- user: g
276
- }, e[6] = f) : f = e[6];
277
- const [b, w] = _(f);
271
+ const m = h;
272
+ let g;
273
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (g = {
274
+ state: m ? G.LOGGED_IN : G.LOGGED_OUT,
275
+ user: m
276
+ }, e[6] = g) : g = e[6];
277
+ const [v, w] = _(g);
278
278
  let k;
279
279
  e[7] !== i ? (k = async (C) => {
280
280
  let E = null;
@@ -290,15 +290,15 @@ const et = (t) => {
290
290
  }, e[7] = i, e[8] = k) : k = e[8];
291
291
  const P = k;
292
292
  let N;
293
- e[9] !== y || e[10] !== s ? (N = () => {
293
+ e[9] !== x || e[10] !== r ? (N = () => {
294
294
  localStorage.removeItem("user"), w({
295
295
  state: G.LOGGED_OUT,
296
296
  user: null
297
- }), s(null), y(null);
298
- }, e[9] = y, e[10] = s, e[11] = N) : N = e[11];
297
+ }), r(null), x(null);
298
+ }, e[9] = x, e[10] = r, e[11] = N) : N = e[11];
299
299
  const T = N;
300
300
  let M;
301
- e[12] !== P || e[13] !== x ? (M = async (C) => {
301
+ e[12] !== P || e[13] !== y ? (M = async (C) => {
302
302
  w({
303
303
  state: G.LOGGING_IN,
304
304
  user: null
@@ -307,11 +307,11 @@ const et = (t) => {
307
307
  return E ? (w({
308
308
  state: G.LOGGED_IN,
309
309
  user: E
310
- }), localStorage.setItem("user", JSON.stringify(E)), await x(), !0) : (w({
310
+ }), localStorage.setItem("user", JSON.stringify(E)), await y(), !0) : (w({
311
311
  state: G.LOGIN_FAILED,
312
312
  user: null
313
313
  }), !1);
314
- }, e[12] = P, e[13] = x, e[14] = M) : M = e[14];
314
+ }, e[12] = P, e[13] = y, e[14] = M) : M = e[14];
315
315
  const p = M;
316
316
  let L;
317
317
  e[15] !== n ? (L = () => {
@@ -331,43 +331,43 @@ const et = (t) => {
331
331
  let R;
332
332
  e[17] !== p || e[18] !== T || e[19] !== n ? (R = [n, p, T], e[17] = p, e[18] = T, e[19] = n, e[20] = R) : R = e[20], U(L, R);
333
333
  let I;
334
- e[21] !== p || e[22] !== T || e[23] !== s ? (I = async (C) => {
334
+ e[21] !== p || e[22] !== T || e[23] !== r ? (I = async (C) => {
335
335
  C && await p(C).catch(() => {
336
- T(), s(null);
336
+ T(), r(null);
337
337
  });
338
- }, e[21] = p, e[22] = T, e[23] = s, e[24] = I) : I = e[24];
338
+ }, e[21] = p, e[22] = T, e[23] = r, e[24] = I) : I = e[24];
339
339
  const $ = I;
340
340
  let q;
341
- e[25] !== d || e[26] !== $ ? (q = () => {
342
- $(d);
343
- }, e[25] = d, e[26] = $, e[27] = q) : q = e[27];
341
+ e[25] !== f || e[26] !== $ ? (q = () => {
342
+ $(f);
343
+ }, e[25] = f, e[26] = $, e[27] = q) : q = e[27];
344
344
  const W = o == null ? void 0 : o.id;
345
- let F;
346
- e[28] !== d || e[29] !== $ || e[30] !== W ? (F = [d, W, $], e[28] = d, e[29] = $, e[30] = W, e[31] = F) : F = e[31], U(q, F);
347
345
  let z;
348
- e[32] !== p || e[33] !== T || e[34] !== b ? (z = {
349
- user: b.user,
350
- userLoginState: b,
346
+ e[28] !== f || e[29] !== $ || e[30] !== W ? (z = [f, W, $], e[28] = f, e[29] = $, e[30] = W, e[31] = z) : z = e[31], U(q, z);
347
+ let F;
348
+ e[32] !== p || e[33] !== T || e[34] !== v ? (F = {
349
+ user: v.user,
350
+ userLoginState: v,
351
351
  loginUser: p,
352
352
  logoutUser: T
353
- }, e[32] = p, e[33] = T, e[34] = b, e[35] = z) : z = e[35];
354
- const X = z;
353
+ }, e[32] = p, e[33] = T, e[34] = v, e[35] = F) : F = e[35];
354
+ const X = F;
355
355
  let B;
356
- return e[36] !== l || e[37] !== X ? (B = /* @__PURE__ */ v(ge.Provider, { value: X, children: l }), e[36] = l, e[37] = X, e[38] = B) : B = e[38], B;
356
+ return e[36] !== l || e[37] !== X ? (B = /* @__PURE__ */ b(ge.Provider, { value: X, children: l }), e[36] = l, e[37] = X, e[38] = B) : B = e[38], B;
357
357
  };
358
358
  function He() {
359
359
  }
360
360
  const ne = () => {
361
361
  const t = A.c(2);
362
362
  let e;
363
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ v("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
363
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
364
364
  let l;
365
365
  return t[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ D("div", { children: [
366
366
  e,
367
367
  /* @__PURE__ */ D("p", { children: [
368
368
  "If you are not redirected within 10 seconds, please click",
369
369
  " ",
370
- /* @__PURE__ */ v("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
370
+ /* @__PURE__ */ b("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
371
371
  ] })
372
372
  ] }), t[1] = l) : l = t[1], l;
373
373
  }, Ie = (t) => {
@@ -396,19 +396,19 @@ const ne = () => {
396
396
  () => t.useMsal ? t.msalExtraScopes : [],
397
397
  // eslint-disable-next-line react-hooks/exhaustive-deps
398
398
  [t.useMsal, t.useMsal ? t.msalExtraScopes : null]
399
- ), s = Q(null), y = Q(!1), x = Z(() => {
400
- const r = localStorage.getItem("token");
401
- return r ? {
402
- token: r,
399
+ ), r = Q(null), x = Q(!1), y = Z(() => {
400
+ const s = localStorage.getItem("token");
401
+ return s ? {
402
+ token: s,
403
403
  expiresOn: Pe(new Date(Date.now()), 1)
404
404
  } : null;
405
- }, []), d = Z(async () => {
405
+ }, []), f = Z(async () => {
406
406
  if (console.log("getTokenMsal"), n == null)
407
407
  throw console.log("getTokenMsal throwing error because msalInstance is null"), new Error("getTokenMsal: msalInstance is null");
408
- if (s.current)
409
- return console.log("getTokenMsal returning tokenRequestPromise.current", s.current), s.current;
410
- const r = new Promise((c, u) => {
411
- const h = () => {
408
+ if (r.current)
409
+ return console.log("getTokenMsal returning tokenRequestPromise.current", r.current), r.current;
410
+ const s = new Promise((c, u) => {
411
+ const h = (m) => {
412
412
  const g = Ie(n);
413
413
  if (!g) {
414
414
  console.log("getTokenMsal no account found. Redirecting to login"), n == null || n.loginRedirect({
@@ -421,37 +421,41 @@ const ne = () => {
421
421
  scopes: a,
422
422
  account: g,
423
423
  redirectUri: t.useMsal ? t.msalSilentRedirectUri : void 0
424
- }).then((f) => {
425
- s.current = null, c({
426
- token: f.accessToken,
427
- expiresOn: f.expiresOn ?? new Date(Date.now())
424
+ }).then((v) => {
425
+ m(), c({
426
+ token: v.accessToken,
427
+ expiresOn: v.expiresOn ?? new Date(Date.now())
428
428
  });
429
- }).catch((f) => {
430
- console.error("Error acquiring token", f), f instanceof Te && (console.log("Silent token acquisition failed. Acquiring token using redirect"), n == null || n.acquireTokenRedirect({
429
+ }).catch((v) => {
430
+ console.error("Error acquiring token", v), v instanceof Te && (console.log("Silent token acquisition failed. Acquiring token using redirect"), n == null || n.acquireTokenRedirect({
431
431
  scopes: a,
432
432
  extraScopesToConsent: o
433
- }), s.current = null, c(null)), s.current = null, u(f);
433
+ }), m(), c(null)), m(), u(v);
434
434
  }).finally(() => {
435
- s.current = null, u(new Error("No access token returned from handleRedirectPromise"));
435
+ m(), u(new Error("No access token returned from handleRedirectPromise"));
436
436
  });
437
437
  };
438
438
  if (console.log("getTokenMsal promise"), e !== we.None) {
439
439
  console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), u(new Error("Authentication in progress"));
440
440
  return;
441
441
  }
442
- y.current ? h() : n.handleRedirectPromise().then((g) => {
443
- if (console.log("getTokenMsal tokenResponse", g), !(g != null && g.accessToken)) {
444
- h();
442
+ x.current ? h(() => {
443
+ r.current = null;
444
+ }) : n.handleRedirectPromise().then((m) => {
445
+ if (console.log("getTokenMsal tokenResponse", m), !(m != null && m.accessToken)) {
446
+ h(() => {
447
+ r.current = null, x.current = !0;
448
+ });
445
449
  return;
446
450
  }
447
- s.current = null, c({
448
- token: g.accessToken,
449
- expiresOn: g.expiresOn ?? new Date(Date.now())
451
+ r.current = null, x.current = !0, c({
452
+ token: m.accessToken,
453
+ expiresOn: m.expiresOn ?? new Date(Date.now())
450
454
  });
451
455
  });
452
456
  });
453
- return s.current = r, r;
454
- }, [e, o, n, a, t.msalSilentRedirectUri, t.useMsal]), S = Z(async () => t.useMsal ? d() : x(), [x, d, t.useMsal]), m = K(() => ({
457
+ return r.current = s, s;
458
+ }, [e, o, n, a, t.msalSilentRedirectUri, t.useMsal]), S = Z(async () => t.useMsal ? f() : y(), [y, f, t.useMsal]), d = K(() => ({
455
459
  useMsal: t.useMsal ?? !1,
456
460
  msalInstance: n,
457
461
  msalScopes: a,
@@ -460,37 +464,37 @@ const ne = () => {
460
464
  }), [t.useMsal, n, a, o, S]);
461
465
  return U(() => {
462
466
  if (t.useMsal && n) {
463
- const r = n.addEventCallback((c) => {
467
+ const s = n.addEventCallback((c) => {
464
468
  if (c.eventType === ee.LOGIN_SUCCESS || c.eventType === ee.ACQUIRE_TOKEN_SUCCESS && c.payload) {
465
469
  const u = c.payload, h = u.account;
466
470
  n.setActiveAccount(h);
467
- const g = u.accessToken, f = u.expiresOn;
468
- i("Authorization", g, {
471
+ const m = u.accessToken, g = u.expiresOn;
472
+ i("Authorization", m, {
469
473
  path: "/",
470
474
  secure: !0,
471
475
  sameSite: "none",
472
476
  domain: l,
473
- expires: f ?? void 0
477
+ expires: g ?? void 0
474
478
  });
475
479
  }
476
480
  c.error && console.error("AuthProvider MSAL Error", c);
477
481
  });
478
482
  return () => {
479
- r && n.removeEventCallback(r);
483
+ s && n.removeEventCallback(s);
480
484
  };
481
485
  }
482
486
  return () => {
483
487
  };
484
- }, [t.useMsal, n, i, l]), /* @__PURE__ */ v(re.Provider, { value: m, children: t.useMsal ? /* @__PURE__ */ v(Ce, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ v(ne, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ v(ne, {}) : t.children });
488
+ }, [t.useMsal, n, i, l]), /* @__PURE__ */ b(re.Provider, { value: d, children: t.useMsal ? /* @__PURE__ */ b(Ce, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children });
485
489
  }, lt = (t) => {
486
490
  const e = A.c(18), {
487
491
  children: l,
488
492
  relativeEndpoint: i
489
493
  } = t, [n, a, o] = _e("user-delegation", null);
490
- let s;
494
+ let r;
491
495
  e: {
492
496
  if (!n) {
493
- s = null;
497
+ r = null;
494
498
  break e;
495
499
  }
496
500
  const k = n.from ? te(n.from) : Oe(), P = n.to ? te(n.to) : Ae();
@@ -498,31 +502,31 @@ const ne = () => {
498
502
  start: k,
499
503
  end: P
500
504
  })) {
501
- a(null), s = null;
505
+ a(null), r = null;
502
506
  break e;
503
507
  }
504
- s = n;
508
+ r = n;
505
509
  }
506
- const y = s;
507
- let x;
508
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (x = {
510
+ const x = r;
511
+ let y;
512
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = {
509
513
  nullStateBeforeLoad: !1,
510
514
  nullStateOnFail: !0
511
- }, e[0] = x) : x = e[0];
515
+ }, e[0] = y) : y = e[0];
512
516
  const {
513
- data: d,
517
+ data: f,
514
518
  setData: S,
515
- reloadData: m
516
- } = Me(i, x), r = Q(null);
519
+ reloadData: d
520
+ } = Me(i, y), s = Q(null);
517
521
  let c, u;
518
- e[1] !== m ? (c = () => {
522
+ e[1] !== d ? (c = () => {
519
523
  const k = () => {
520
- m(), r.current = window.setTimeout(k, xe() + 5e3);
524
+ d(), s.current = window.setTimeout(k, xe() + 5e3);
521
525
  };
522
526
  return k(), () => {
523
- r.current !== null && window.clearTimeout(r.current);
527
+ s.current !== null && window.clearTimeout(s.current);
524
528
  };
525
- }, u = [m], e[1] = m, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), U(c, u);
529
+ }, u = [d], e[1] = d, e[2] = c, e[3] = u) : (c = e[2], u = e[3]), U(c, u);
526
530
  let h;
527
531
  e[4] !== o ? (h = () => {
528
532
  const k = () => {
@@ -532,19 +536,19 @@ const ne = () => {
532
536
  window.removeEventListener("focus", k);
533
537
  };
534
538
  }, e[4] = o, e[5] = h) : h = e[5];
539
+ let m;
540
+ e[6] !== o || e[7] !== d ? (m = [o, d], e[6] = o, e[7] = d, e[8] = m) : m = e[8], U(h, m);
535
541
  let g;
536
- e[6] !== o || e[7] !== m ? (g = [o, m], e[6] = o, e[7] = m, e[8] = g) : g = e[8], U(h, g);
537
- let f;
538
- e[9] !== d || e[10] !== m || e[11] !== S || e[12] !== a || e[13] !== y ? (f = {
539
- delegation: y,
542
+ e[9] !== f || e[10] !== d || e[11] !== S || e[12] !== a || e[13] !== x ? (g = {
543
+ delegation: x,
540
544
  setDelegation: a,
541
- availableDelegations: d,
545
+ availableDelegations: f,
542
546
  setAvailableDelegations: S,
543
- refreshAvailableDelegations: m
544
- }, e[9] = d, e[10] = m, e[11] = S, e[12] = a, e[13] = y, e[14] = f) : f = e[14];
545
- const b = f;
547
+ refreshAvailableDelegations: d
548
+ }, e[9] = f, e[10] = d, e[11] = S, e[12] = a, e[13] = x, e[14] = g) : g = e[14];
549
+ const v = g;
546
550
  let w;
547
- return e[15] !== l || e[16] !== b ? (w = /* @__PURE__ */ v(ie.Provider, { value: b, children: l }), e[15] = l, e[16] = b, e[17] = w) : w = e[17], w;
551
+ return e[15] !== l || e[16] !== v ? (w = /* @__PURE__ */ b(ie.Provider, { value: v, children: l }), e[15] = l, e[16] = v, e[17] = w) : w = e[17], w;
548
552
  }, oe = (t, e) => t ? `${t} | ${e}` : e, st = (t) => {
549
553
  const e = A.c(18), {
550
554
  defaultHelmet: l,
@@ -553,40 +557,40 @@ const ne = () => {
553
557
  } = t, a = n ?? "";
554
558
  let o;
555
559
  e[0] !== l || e[1] !== a ? (o = oe(a, l), e[0] = l, e[1] = a, e[2] = o) : o = e[2];
556
- let s;
557
- e[3] !== o ? (s = [o], e[3] = o, e[4] = s) : s = e[4];
558
- const [y, x] = _(s);
560
+ let r;
561
+ e[3] !== o ? (r = [o], e[3] = o, e[4] = r) : r = e[4];
562
+ const [x, y] = _(r);
563
+ let f;
564
+ e[5] !== n ? (f = (w) => {
565
+ y((k) => [...k, oe(n ?? "", w)]);
566
+ }, e[5] = n, e[6] = f) : f = e[6];
567
+ const S = f;
559
568
  let d;
560
- e[5] !== n ? (d = (w) => {
561
- x((k) => [...k, oe(n ?? "", w)]);
562
- }, e[5] = n, e[6] = d) : d = e[6];
563
- const S = d;
564
- let m;
565
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
566
- x(qe);
567
- }, e[7] = m) : m = e[7];
568
- const r = m;
569
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (d = () => {
570
+ y(qe);
571
+ }, e[7] = d) : d = e[7];
572
+ const s = d;
569
573
  let c;
570
- e[8] !== y ? (c = y.at(-1) ?? "", e[8] = y, e[9] = c) : c = e[9];
574
+ e[8] !== x ? (c = x.at(-1) ?? "", e[8] = x, e[9] = c) : c = e[9];
571
575
  const u = c;
572
576
  let h;
573
577
  e[10] !== S ? (h = {
574
578
  addHelmet: S,
575
- removeHelmet: r
579
+ removeHelmet: s
576
580
  }, e[10] = S, e[11] = h) : h = e[11];
577
- const g = h;
578
- let f;
579
- e[12] !== u ? (f = /* @__PURE__ */ v("title", { children: u }), e[12] = u, e[13] = f) : f = e[13];
580
- let b;
581
- return e[14] !== i || e[15] !== g || e[16] !== f ? (b = /* @__PURE__ */ D(ye.Provider, { value: g, children: [
582
- f,
581
+ const m = h;
582
+ let g;
583
+ e[12] !== u ? (g = /* @__PURE__ */ b("title", { children: u }), e[12] = u, e[13] = g) : g = e[13];
584
+ let v;
585
+ return e[14] !== i || e[15] !== m || e[16] !== g ? (v = /* @__PURE__ */ D(ye.Provider, { value: m, children: [
586
+ g,
583
587
  i
584
- ] }), e[14] = i, e[15] = g, e[16] = f, e[17] = b) : b = e[17], b;
588
+ ] }), e[14] = i, e[15] = m, e[16] = g, e[17] = v) : v = e[17], v;
585
589
  };
586
590
  function qe(t) {
587
591
  return t.length > 1 ? t.slice(0, -1) : t;
588
592
  }
589
- const le = 50, Fe = () => {
593
+ const le = 50, ze = () => {
590
594
  const t = A.c(22), {
591
595
  texts: e
592
596
  } = H(J), {
@@ -596,39 +600,39 @@ const le = 50, Fe = () => {
596
600
  onCancel: n,
597
601
  text: a,
598
602
  show: o,
599
- textSm: s
600
- } = ve(), y = s === void 0 ? a.length > le : s, x = a.length > le;
601
- let d;
602
- t[0] !== n || t[1] !== i || t[2] !== o ? (d = (f) => {
603
+ textSm: r
604
+ } = ve(), x = r === void 0 ? a.length > le : r, y = a.length > le;
605
+ let f;
606
+ t[0] !== n || t[1] !== i || t[2] !== o ? (f = (g) => {
603
607
  if (o)
604
- e: switch (f.key) {
608
+ e: switch (g.key) {
605
609
  case "Enter": {
606
- f.preventDefault(), f.stopPropagation(), i();
610
+ g.preventDefault(), g.stopPropagation(), i();
607
611
  break e;
608
612
  }
609
613
  case "Escape": {
610
- f.preventDefault(), f.stopPropagation(), n();
614
+ g.preventDefault(), g.stopPropagation(), n();
611
615
  break e;
612
616
  }
613
617
  }
614
- }, t[0] = n, t[1] = i, t[2] = o, t[3] = d) : d = t[3], be(d);
615
- const m = x ? void 0 : "sm";
616
- let r;
617
- t[4] !== y || t[5] !== a ? (r = /* @__PURE__ */ v(O.Header, { className: "justify-content-center", children: y ? /* @__PURE__ */ v(ke, { variant: "body", children: a }) : /* @__PURE__ */ v(O.Title, { children: a }) }), t[4] = y, t[5] = a, t[6] = r) : r = t[6];
618
+ }, t[0] = n, t[1] = i, t[2] = o, t[3] = f) : f = t[3], be(f);
619
+ const d = y ? void 0 : "sm";
620
+ let s;
621
+ t[4] !== x || t[5] !== a ? (s = /* @__PURE__ */ b(O.Header, { className: "justify-content-center", children: x ? /* @__PURE__ */ b(ke, { variant: "body", children: a }) : /* @__PURE__ */ b(O.Title, { children: a }) }), t[4] = x, t[5] = a, t[6] = s) : s = t[6];
618
622
  let c;
619
- t[7] !== l.no || t[8] !== n ? (c = /* @__PURE__ */ v(V, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: l.no }), t[7] = l.no, t[8] = n, t[9] = c) : c = t[9];
623
+ t[7] !== l.no || t[8] !== n ? (c = /* @__PURE__ */ b(V, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: l.no }), t[7] = l.no, t[8] = n, t[9] = c) : c = t[9];
620
624
  let u;
621
- t[10] !== l.yes || t[11] !== i ? (u = /* @__PURE__ */ v(V, { type: "button", color: "primary", onClick: i, className: "w-100 ml", children: l.yes }), t[10] = l.yes, t[11] = i, t[12] = u) : u = t[12];
625
+ t[10] !== l.yes || t[11] !== i ? (u = /* @__PURE__ */ b(V, { type: "button", color: "primary", onClick: i, className: "w-100 ml", children: l.yes }), t[10] = l.yes, t[11] = i, t[12] = u) : u = t[12];
622
626
  let h;
623
- t[13] !== c || t[14] !== u ? (h = /* @__PURE__ */ v(O.Body, { children: /* @__PURE__ */ D("div", { className: "w-100 d-flex gap-5", children: [
627
+ t[13] !== c || t[14] !== u ? (h = /* @__PURE__ */ b(O.Body, { children: /* @__PURE__ */ D("div", { className: "w-100 d-flex gap-5", children: [
624
628
  c,
625
629
  u
626
630
  ] }) }), t[13] = c, t[14] = u, t[15] = h) : h = t[15];
627
- let g;
628
- return t[16] !== n || t[17] !== o || t[18] !== m || t[19] !== r || t[20] !== h ? (g = /* @__PURE__ */ D(O, { show: o, size: m, centered: !0, onHide: n, children: [
629
- r,
631
+ let m;
632
+ return t[16] !== n || t[17] !== o || t[18] !== d || t[19] !== s || t[20] !== h ? (m = /* @__PURE__ */ D(O, { show: o, size: d, centered: !0, onHide: n, children: [
633
+ s,
630
634
  h
631
- ] }), t[16] = n, t[17] = o, t[18] = m, t[19] = r, t[20] = h, t[21] = g) : g = t[21], g;
635
+ ] }), t[16] = n, t[17] = o, t[18] = d, t[19] = s, t[20] = h, t[21] = m) : m = t[21], m;
632
636
  };
633
637
  export {
634
638
  re as AuthContext,