react-luminus-components 2.0.5-beta.r19-10 → 2.0.5-beta.r19-12

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