react-luminus-components 2.0.22 → 2.0.24

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