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.
- package/dist/components/common/ReportsIndexPage/ReportsIndexPage.d.ts +2 -2
- package/dist/components/common/ReportsIndexPage/comps/ReportIndexMain/ReportIndexMain.d.ts +17 -0
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/ReportIndexItem.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/ReportsCollapseVersionList.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/comps/ReportCollapseVersionItem/ReportCollapseVersionItem.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/ReportIndexMain/comps/index.d.ts +1 -0
- package/dist/components/common/ReportsIndexPage/comps/index.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/hooks/useReportData.d.ts +10 -0
- package/dist/contexts/auth/comps/AuthBlankPage/AuthBlankPage.d.ts +2 -0
- package/dist/contexts/auth/comps/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +427 -409
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +44 -43
- package/dist/main.cjs.js +9 -9
- package/dist/main.es.js +1599 -1561
- package/dist/models/api/reports/ReportDto.d.ts +3 -0
- package/dist/models/api/reports/ReportGroup.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- /package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/comps/index.d.ts +0 -0
- /package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/index.d.ts +0 -0
package/dist/contexts.es.js
CHANGED
|
@@ -1,260 +1,260 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { bR as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as T, useContext as $, useEffect as
|
|
5
|
-
import { EventType as Z, InteractionRequiredAuthError as
|
|
6
|
-
import {
|
|
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
|
|
12
|
-
import { F as
|
|
13
|
-
import { a as
|
|
14
|
-
function
|
|
15
|
-
const e =
|
|
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
|
|
19
|
-
return
|
|
18
|
+
function Ae() {
|
|
19
|
+
return Le(Date.now());
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
const
|
|
23
|
-
+
|
|
24
|
-
+
|
|
25
|
-
].sort((
|
|
26
|
-
return
|
|
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
|
|
29
|
-
return
|
|
28
|
+
function Me() {
|
|
29
|
+
return re(Date.now());
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
const e =
|
|
33
|
-
children:
|
|
34
|
-
} = t, [
|
|
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,
|
|
37
|
-
|
|
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
|
|
40
|
-
let
|
|
41
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
42
|
-
|
|
43
|
-
}, e[1] =
|
|
44
|
-
const
|
|
45
|
-
let
|
|
46
|
-
e[2] !==
|
|
47
|
-
show:
|
|
48
|
-
text:
|
|
49
|
-
showConfirm:
|
|
50
|
-
hideConfirm:
|
|
51
|
-
textSm:
|
|
52
|
-
}, e[2] =
|
|
53
|
-
const
|
|
54
|
-
let
|
|
55
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] !==
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
] }), e[7] =
|
|
61
|
-
},
|
|
62
|
-
const t =
|
|
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:
|
|
65
|
+
confirm: l
|
|
66
66
|
} = e, {
|
|
67
|
-
isShown:
|
|
68
|
-
text:
|
|
69
|
-
onFinish:
|
|
70
|
-
} =
|
|
67
|
+
isShown: u,
|
|
68
|
+
text: n,
|
|
69
|
+
onFinish: a
|
|
70
|
+
} = ue(), {
|
|
71
71
|
options: o
|
|
72
|
-
} = $(
|
|
72
|
+
} = $(le), [i, y] = T(o.defaultValue ?? "");
|
|
73
73
|
let S;
|
|
74
|
-
t[0] !==
|
|
75
|
-
|
|
76
|
-
}, t[0] =
|
|
77
|
-
const
|
|
78
|
-
let
|
|
79
|
-
t[2] !==
|
|
80
|
-
|
|
81
|
-
}, t[2] =
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
85
|
-
let
|
|
86
|
-
t[7] !==
|
|
87
|
-
value:
|
|
88
|
-
onChange:
|
|
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] =
|
|
93
|
-
const
|
|
92
|
+
}, t[7] = i, t[8] = c) : c = t[8];
|
|
93
|
+
const f = c;
|
|
94
94
|
let h, x;
|
|
95
|
-
t[9] !==
|
|
96
|
-
|
|
97
|
-
}, x = [
|
|
98
|
-
let
|
|
99
|
-
t[13] !==
|
|
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] !==
|
|
102
|
-
let
|
|
103
|
-
t[18] !==
|
|
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] !==
|
|
105
|
+
t[22] !== b || t[23] !== p ? (w = /* @__PURE__ */ D(M.Body, { children: [
|
|
106
106
|
b,
|
|
107
|
-
|
|
108
|
-
] }), t[22] = b, t[23] =
|
|
107
|
+
p
|
|
108
|
+
] }), t[22] = b, t[23] = p, t[24] = w) : w = t[24];
|
|
109
109
|
let P;
|
|
110
|
-
t[25] !==
|
|
111
|
-
const
|
|
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] !==
|
|
114
|
-
let
|
|
115
|
-
t[31] !== P || t[32] !== k ? (
|
|
113
|
+
t[28] !== l.confirm || t[29] !== I ? (k = /* @__PURE__ */ v(V, { color: "primary", disabled: I, type: "submit", className: "flex-grow-1", children: l.confirm }), t[28] = l.confirm, t[29] = I, t[30] = k) : k = t[30];
|
|
114
|
+
let E;
|
|
115
|
+
t[31] !== P || t[32] !== k ? (E = /* @__PURE__ */ D(M.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
116
116
|
P,
|
|
117
117
|
k
|
|
118
|
-
] }), t[31] = P, t[32] = k, t[33] =
|
|
119
|
-
let
|
|
120
|
-
t[34] !==
|
|
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
|
-
|
|
123
|
-
] }), t[34] =
|
|
124
|
-
let
|
|
125
|
-
return t[38] !==
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
] }), t[38] =
|
|
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
|
|
130
|
+
function Re(t) {
|
|
131
131
|
return t.stopPropagation();
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
const e =
|
|
135
|
-
children:
|
|
136
|
-
} = t, [
|
|
137
|
-
let
|
|
138
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
142
|
-
const [
|
|
143
|
-
let
|
|
144
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
145
|
-
o(b),
|
|
146
|
-
}, e[1] =
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
150
|
-
|
|
151
|
-
}, e[2] =
|
|
152
|
-
const
|
|
153
|
-
let
|
|
154
|
-
e[3] !==
|
|
155
|
-
isShown:
|
|
156
|
-
text:
|
|
157
|
-
showPrompt:
|
|
158
|
-
hidePrompt:
|
|
159
|
-
resolveRef:
|
|
160
|
-
options:
|
|
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] =
|
|
163
|
-
const h =
|
|
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__ */
|
|
166
|
-
let
|
|
167
|
-
return e[8] !==
|
|
168
|
-
|
|
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] =
|
|
170
|
+
] }), e[8] = l, e[9] = h, e[10] = m) : m = e[10], m;
|
|
171
171
|
};
|
|
172
|
-
function
|
|
172
|
+
function Ue() {
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
const e =
|
|
176
|
-
cookieDomain:
|
|
177
|
-
axiosOptions:
|
|
178
|
-
language:
|
|
179
|
-
texts:
|
|
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:
|
|
182
|
-
chartColorPalette:
|
|
181
|
+
localizationContext: i,
|
|
182
|
+
chartColorPalette: y,
|
|
183
183
|
children: S
|
|
184
184
|
} = t;
|
|
185
|
-
let
|
|
186
|
-
e[0] !== o || e[1] !==
|
|
187
|
-
axiosOptions:
|
|
188
|
-
cookieDomain:
|
|
189
|
-
language:
|
|
190
|
-
texts:
|
|
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:
|
|
193
|
-
chartColorPalette:
|
|
194
|
-
}, e[0] = o, e[1] =
|
|
195
|
-
const
|
|
196
|
-
let
|
|
197
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
198
|
-
let
|
|
199
|
-
e[9] !== S ? (
|
|
200
|
-
|
|
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] =
|
|
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[
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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 = (
|
|
219
|
-
o.delete(
|
|
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
|
|
222
|
-
let
|
|
223
|
-
e[5] !==
|
|
224
|
-
isLoading:
|
|
225
|
-
startLoading:
|
|
226
|
-
stopLoading:
|
|
227
|
-
}, e[5] =
|
|
228
|
-
const
|
|
229
|
-
let
|
|
230
|
-
e[9] !==
|
|
231
|
-
let
|
|
232
|
-
return e[11] !==
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
] }), e[11] =
|
|
236
|
-
},
|
|
237
|
-
const e =
|
|
238
|
-
children:
|
|
239
|
-
} = t,
|
|
240
|
-
msalInstance:
|
|
241
|
-
getToken:
|
|
242
|
-
} = $(
|
|
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:
|
|
245
|
-
setAvailableDelegations:
|
|
244
|
+
setDelegation: i,
|
|
245
|
+
setAvailableDelegations: y,
|
|
246
246
|
refreshAvailableDelegations: S
|
|
247
|
-
} = $(
|
|
248
|
-
let
|
|
249
|
-
e[0] !==
|
|
250
|
-
const _ = await
|
|
251
|
-
_ &&
|
|
252
|
-
}, e[0] =
|
|
253
|
-
const
|
|
254
|
-
let
|
|
255
|
-
e[2] !==
|
|
256
|
-
|
|
257
|
-
},
|
|
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
|
|
273
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
277
|
-
const [b,
|
|
276
|
+
}, e[6] = m) : m = e[6];
|
|
277
|
+
const [b, p] = T(m);
|
|
278
278
|
let w;
|
|
279
|
-
e[7] !==
|
|
279
|
+
e[7] !== u ? (w = async (_) => {
|
|
280
280
|
let L = null;
|
|
281
|
-
return await
|
|
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] =
|
|
290
|
+
}, e[7] = u, e[8] = w) : w = e[8];
|
|
291
291
|
const P = w;
|
|
292
|
-
let
|
|
293
|
-
e[9] !==
|
|
294
|
-
localStorage.removeItem("user"),
|
|
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
|
-
}),
|
|
298
|
-
}, e[9] =
|
|
299
|
-
const k =
|
|
300
|
-
let
|
|
301
|
-
e[12] !== P || e[13] !== S ? (
|
|
302
|
-
|
|
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 ? (
|
|
307
|
+
return L ? (p({
|
|
308
308
|
state: U.LOGGED_IN,
|
|
309
309
|
user: L
|
|
310
|
-
}), localStorage.setItem("user", JSON.stringify(L)), await S(), !0) : (
|
|
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] =
|
|
315
|
-
const
|
|
316
|
-
let
|
|
317
|
-
e[15] !==
|
|
318
|
-
if (
|
|
319
|
-
const _ =
|
|
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
|
-
|
|
322
|
+
g(X.accessToken);
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
325
|
return () => {
|
|
326
|
-
_ &&
|
|
326
|
+
_ && n.removeEventCallback(_);
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
return
|
|
330
|
-
}, e[15] =
|
|
331
|
-
let
|
|
332
|
-
e[17] !==
|
|
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] !==
|
|
335
|
-
_ && await
|
|
336
|
-
k(),
|
|
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] =
|
|
339
|
-
const
|
|
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] !==
|
|
342
|
-
|
|
343
|
-
}, e[25] =
|
|
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] !==
|
|
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] !==
|
|
348
|
+
e[32] !== C || e[33] !== k || e[34] !== b ? (z = {
|
|
349
349
|
user: b.user,
|
|
350
350
|
userLoginState: b,
|
|
351
|
-
loginUser:
|
|
351
|
+
loginUser: C,
|
|
352
352
|
logoutUser: k
|
|
353
|
-
}, e[32] =
|
|
353
|
+
}, e[32] = C, e[33] = k, e[34] = b, e[35] = z) : z = e[35];
|
|
354
354
|
const W = z;
|
|
355
|
-
let
|
|
356
|
-
return e[36] !==
|
|
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
|
|
358
|
+
function $e() {
|
|
359
359
|
}
|
|
360
|
-
const
|
|
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
|
-
|
|
365
|
-
} =
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
378
|
-
const
|
|
379
|
-
return
|
|
380
|
-
token:
|
|
381
|
-
expiresOn:
|
|
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
|
-
}, []),
|
|
398
|
+
}, []), S = Y(async () => {
|
|
384
399
|
var f;
|
|
385
|
-
if (
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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
|
|
407
|
-
}, [
|
|
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:
|
|
411
|
-
msalExtraScopes:
|
|
412
|
-
getToken:
|
|
413
|
-
}), [t.useMsal, n,
|
|
414
|
-
return
|
|
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
|
|
417
|
-
if (
|
|
418
|
-
const
|
|
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
|
|
421
|
-
u("Authorization",
|
|
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:
|
|
426
|
-
expires:
|
|
443
|
+
domain: l,
|
|
444
|
+
expires: x ?? void 0
|
|
427
445
|
});
|
|
428
446
|
}
|
|
429
|
-
|
|
447
|
+
s.error && console.error("AuthProvider MSAL Error", s);
|
|
430
448
|
});
|
|
431
449
|
return () => {
|
|
432
|
-
|
|
450
|
+
r && n.removeEventCallback(r);
|
|
433
451
|
};
|
|
434
452
|
}
|
|
435
453
|
return () => {
|
|
436
454
|
};
|
|
437
|
-
}, [t.useMsal, n, u,
|
|
438
|
-
},
|
|
439
|
-
const e =
|
|
440
|
-
children:
|
|
441
|
-
relativeEndpoint:
|
|
442
|
-
} = t, [
|
|
443
|
-
let
|
|
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 (!
|
|
446
|
-
|
|
463
|
+
if (!n) {
|
|
464
|
+
i = null;
|
|
447
465
|
break e;
|
|
448
466
|
}
|
|
449
|
-
const w =
|
|
450
|
-
if (!
|
|
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
|
-
|
|
472
|
+
a(null), i = null;
|
|
455
473
|
break e;
|
|
456
474
|
}
|
|
457
|
-
|
|
475
|
+
i = n;
|
|
458
476
|
}
|
|
459
|
-
const
|
|
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:
|
|
467
|
-
setData:
|
|
468
|
-
reloadData:
|
|
469
|
-
} =
|
|
470
|
-
let
|
|
471
|
-
e[1] !==
|
|
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
|
-
|
|
491
|
+
r(), s.current = window.setTimeout(w, ye() + 5e3);
|
|
474
492
|
};
|
|
475
493
|
return w(), () => {
|
|
476
|
-
|
|
494
|
+
s.current !== null && window.clearTimeout(s.current);
|
|
477
495
|
};
|
|
478
|
-
},
|
|
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] !==
|
|
490
|
-
let
|
|
491
|
-
e[9] !==
|
|
492
|
-
delegation:
|
|
493
|
-
setDelegation:
|
|
494
|
-
availableDelegations:
|
|
495
|
-
setAvailableDelegations:
|
|
496
|
-
refreshAvailableDelegations:
|
|
497
|
-
}, e[9] =
|
|
498
|
-
const b =
|
|
499
|
-
let
|
|
500
|
-
return e[15] !==
|
|
501
|
-
},
|
|
502
|
-
const e =
|
|
503
|
-
defaultHelmet:
|
|
504
|
-
children:
|
|
505
|
-
helmetPrefix:
|
|
506
|
-
} = t,
|
|
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] !==
|
|
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[
|
|
511
|
-
const
|
|
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] !==
|
|
527
|
-
addHelmet:
|
|
528
|
-
removeHelmet:
|
|
529
|
-
}, e[10] =
|
|
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
|
|
532
|
-
e[12] !==
|
|
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] !==
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
] }), e[14] =
|
|
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
|
|
557
|
+
function He(t) {
|
|
540
558
|
return t.length > 1 ? t.slice(0, -1) : t;
|
|
541
559
|
}
|
|
542
|
-
const
|
|
543
|
-
const t =
|
|
560
|
+
const se = 50, qe = () => {
|
|
561
|
+
const t = A.c(22), {
|
|
544
562
|
texts: e
|
|
545
563
|
} = $(Q), {
|
|
546
|
-
confirm:
|
|
564
|
+
confirm: l
|
|
547
565
|
} = e, {
|
|
548
|
-
onConfirm:
|
|
549
|
-
onCancel:
|
|
550
|
-
text:
|
|
566
|
+
onConfirm: u,
|
|
567
|
+
onCancel: n,
|
|
568
|
+
text: a,
|
|
551
569
|
show: o,
|
|
552
|
-
textSm:
|
|
553
|
-
} =
|
|
554
|
-
let
|
|
555
|
-
t[0] !==
|
|
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 (
|
|
575
|
+
e: switch (m.key) {
|
|
558
576
|
case "Enter": {
|
|
559
|
-
|
|
577
|
+
m.preventDefault(), m.stopPropagation(), u();
|
|
560
578
|
break e;
|
|
561
579
|
}
|
|
562
580
|
case "Escape": {
|
|
563
|
-
|
|
581
|
+
m.preventDefault(), m.stopPropagation(), n();
|
|
564
582
|
break e;
|
|
565
583
|
}
|
|
566
584
|
}
|
|
567
|
-
}, t[0] =
|
|
568
|
-
const
|
|
569
|
-
let
|
|
570
|
-
t[4] !==
|
|
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[
|
|
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] !==
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
] }) }), t[13] =
|
|
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] !==
|
|
582
|
-
|
|
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] =
|
|
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
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
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
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
616
|
+
Ze as LuminusComponentsProvider,
|
|
617
|
+
Se as UserContext,
|
|
618
|
+
tt as UserProvider,
|
|
619
|
+
rt as useFormDisabledContext
|
|
602
620
|
};
|