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