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