react-luminus-components 2.0.5-beta.r19-17 → 2.0.5-beta.r19-19

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