react-luminus-components 2.0.5-beta.r19-5 → 2.0.5-beta.r19-7

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