react-luminus-components 2.0.34 → 2.0.35
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/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +281 -270
- package/package.json +1 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as re, bR as
|
|
2
|
-
import { ck as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { EventType as ge, InteractionStatus as
|
|
6
|
-
import {
|
|
1
|
+
import { t as re, bR as Ne, c as N, bS as Oe, R as ae, an as He, bT as Ae, a5 as H, ak as Ue, S as ie, bU as We, ar as je, ap as Fe, bd as pe, by as De, bf as J, aq as Be, bV as ze, aF as we, bW as Ge, bX as Ve, bY as R, bZ as Xe, b_ as U, b$ as l, c0 as _e, c1 as Ie, c2 as V, c3 as E, c4 as q, c5 as ce, c6 as Re, c7 as Ke, c8 as Se, c9 as Je, ca as Qe, cb as Ye, cc as qe, cd as be, ce as G, cf as Le, cg as Ce, ch as Ze, ci as fe, cj as Me, ao as et, b8 as tt, a6 as nt } from "./nivo-bar-wBsr2P1t.js";
|
|
2
|
+
import { ck as pn, ah as _n } from "./nivo-bar-wBsr2P1t.js";
|
|
3
|
+
import { jsxs as L, jsx as y } from "react/jsx-runtime";
|
|
4
|
+
import { useState as I, useContext as z, useEffect as B, useRef as Q, useMemo as F, useCallback as Y, useSyncExternalStore as ot } from "react";
|
|
5
|
+
import { EventType as ge, InteractionStatus as st, InteractionRequiredAuthError as rt } from "@azure/msal-browser";
|
|
6
|
+
import { MsalProvider as it, useMsal as ct } 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 at, b as lt } from "./FormDisabledProvider-CknAF8EI.js";
|
|
12
|
-
import { F as
|
|
12
|
+
import { F as wn } from "./FormDisabledProvider-CknAF8EI.js";
|
|
13
13
|
import { a as ht, u as ut } from "./useLocalStorageState-DBd2vOH1.js";
|
|
14
14
|
import { u as dt } from "./useIsBrowserOnline-RAirIO4c.js";
|
|
15
15
|
function ft(t) {
|
|
@@ -27,38 +27,38 @@ function pt(t, e) {
|
|
|
27
27
|
return n >= s && n <= o;
|
|
28
28
|
}
|
|
29
29
|
function _t() {
|
|
30
|
-
return
|
|
30
|
+
return Ne(Date.now());
|
|
31
31
|
}
|
|
32
32
|
const mt = (t) => {
|
|
33
33
|
const e = N.c(10), {
|
|
34
34
|
children: n
|
|
35
|
-
} = t, [s, o] =
|
|
35
|
+
} = t, [s, o] = I(!1), [i, r] = I(""), [c, a] = I(void 0);
|
|
36
36
|
let h;
|
|
37
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (S,
|
|
38
|
-
o(!0), r(S), a(
|
|
37
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (S, p) => {
|
|
38
|
+
o(!0), r(S), a(p);
|
|
39
39
|
}, e[0] = h) : h = e[0];
|
|
40
40
|
const u = h;
|
|
41
|
-
let
|
|
42
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
41
|
+
let w;
|
|
42
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (w = () => {
|
|
43
43
|
o(!1);
|
|
44
|
-
}, e[1] =
|
|
45
|
-
const f =
|
|
46
|
-
let
|
|
47
|
-
e[2] !== s || e[3] !== i || e[4] !== c ? (
|
|
44
|
+
}, e[1] = w) : w = e[1];
|
|
45
|
+
const f = w;
|
|
46
|
+
let g;
|
|
47
|
+
e[2] !== s || e[3] !== i || e[4] !== c ? (g = {
|
|
48
48
|
show: s,
|
|
49
49
|
text: i,
|
|
50
50
|
showConfirm: u,
|
|
51
51
|
hideConfirm: f,
|
|
52
52
|
textSm: c
|
|
53
|
-
}, e[2] = s, e[3] = i, e[4] = c, e[5] =
|
|
54
|
-
const
|
|
53
|
+
}, e[2] = s, e[3] = i, e[4] = c, e[5] = g) : g = e[5];
|
|
54
|
+
const m = g;
|
|
55
55
|
let b;
|
|
56
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ y(
|
|
56
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ y(zt, {}), e[6] = b) : b = e[6];
|
|
57
57
|
let d;
|
|
58
|
-
return e[7] !== n || e[8] !==
|
|
58
|
+
return e[7] !== n || e[8] !== m ? (d = /* @__PURE__ */ L(Oe.Provider, { value: m, children: [
|
|
59
59
|
b,
|
|
60
60
|
n
|
|
61
|
-
] }), e[7] = n, e[8] =
|
|
61
|
+
] }), e[7] = n, e[8] = m, e[9] = d) : d = e[9], d;
|
|
62
62
|
}, wt = () => {
|
|
63
63
|
const t = N.c(43), {
|
|
64
64
|
texts: e
|
|
@@ -68,42 +68,42 @@ const mt = (t) => {
|
|
|
68
68
|
isShown: s,
|
|
69
69
|
text: o,
|
|
70
70
|
onFinish: i
|
|
71
|
-
} =
|
|
71
|
+
} = He(), {
|
|
72
72
|
options: r
|
|
73
|
-
} = z(
|
|
73
|
+
} = z(Ae), [c, a] = I(r.defaultValue ?? "");
|
|
74
74
|
let h;
|
|
75
75
|
t[0] !== i ? (h = () => {
|
|
76
76
|
i(null);
|
|
77
77
|
}, t[0] = i, t[1] = h) : h = t[1];
|
|
78
78
|
const u = h;
|
|
79
|
-
let m;
|
|
80
|
-
t[2] !== i || t[3] !== r.required || t[4] !== c ? (m = (j) => {
|
|
81
|
-
j.preventDefault(), !(r.required && !c) && (i(c), a(""));
|
|
82
|
-
}, t[2] = i, t[3] = r.required, t[4] = c, t[5] = m) : m = t[5];
|
|
83
|
-
const f = m;
|
|
84
|
-
let p;
|
|
85
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (p = (j) => a(j.currentTarget.value), t[6] = p) : p = t[6];
|
|
86
79
|
let w;
|
|
87
|
-
t[
|
|
80
|
+
t[2] !== i || t[3] !== r.required || t[4] !== c ? (w = (j) => {
|
|
81
|
+
j.preventDefault(), !(r.required && !c) && (i(c), a(""));
|
|
82
|
+
}, t[2] = i, t[3] = r.required, t[4] = c, t[5] = w) : w = t[5];
|
|
83
|
+
const f = w;
|
|
84
|
+
let g;
|
|
85
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = (j) => a(j.currentTarget.value), t[6] = g) : g = t[6];
|
|
86
|
+
let m;
|
|
87
|
+
t[7] !== c ? (m = {
|
|
88
88
|
value: c,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: g,
|
|
90
90
|
className: "w-100",
|
|
91
91
|
autoFocus: !0,
|
|
92
92
|
tabIndex: 0
|
|
93
|
-
}, t[7] = c, t[8] =
|
|
94
|
-
const b =
|
|
93
|
+
}, t[7] = c, t[8] = m) : m = t[8];
|
|
94
|
+
const b = m;
|
|
95
95
|
let d, S;
|
|
96
96
|
t[9] !== s || t[10] !== r.defaultValue ? (d = () => {
|
|
97
97
|
s === !0 && a(r.defaultValue ?? "");
|
|
98
98
|
}, S = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = S) : (d = t[11], S = t[12]), B(d, S);
|
|
99
|
-
let
|
|
100
|
-
t[13] !== o ? (
|
|
99
|
+
let p;
|
|
100
|
+
t[13] !== o ? (p = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: /* @__PURE__ */ y(H.Title, { children: o }) }), t[13] = o, t[14] = p) : p = t[14];
|
|
101
101
|
let C;
|
|
102
102
|
t[15] !== b || t[16] !== r.input ? (C = r.input === "textarea" ? /* @__PURE__ */ y("textarea", { ...b, rows: 5 }) : void 0, t[15] = b, t[16] = r.input, t[17] = C) : C = t[17];
|
|
103
103
|
let _;
|
|
104
|
-
t[18] !== b || t[19] !== r.input || t[20] !== r.type ? (_ = r.input === "input" ? /* @__PURE__ */ y(
|
|
104
|
+
t[18] !== b || t[19] !== r.input || t[20] !== r.type ? (_ = r.input === "input" ? /* @__PURE__ */ y(Ue, { ...b, type: r.type }) : void 0, t[18] = b, t[19] = r.input, t[20] = r.type, t[21] = _) : _ = t[21];
|
|
105
105
|
let v;
|
|
106
|
-
t[22] !== C || t[23] !== _ ? (v = /* @__PURE__ */
|
|
106
|
+
t[22] !== C || t[23] !== _ ? (v = /* @__PURE__ */ L(H.Body, { children: [
|
|
107
107
|
C,
|
|
108
108
|
_
|
|
109
109
|
] }), t[22] = C, t[23] = _, t[24] = v) : v = t[24];
|
|
@@ -113,20 +113,20 @@ const mt = (t) => {
|
|
|
113
113
|
let P;
|
|
114
114
|
t[28] !== n.confirm || t[29] !== W ? (P = /* @__PURE__ */ y(ie, { color: "primary", disabled: W, type: "submit", className: "flex-grow-1", children: n.confirm }), t[28] = n.confirm, t[29] = W, t[30] = P) : P = t[30];
|
|
115
115
|
let M;
|
|
116
|
-
t[31] !== k || t[32] !== P ? (M = /* @__PURE__ */
|
|
116
|
+
t[31] !== k || t[32] !== P ? (M = /* @__PURE__ */ L(H.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
117
117
|
k,
|
|
118
118
|
P
|
|
119
119
|
] }), t[31] = k, t[32] = P, t[33] = M) : M = t[33];
|
|
120
120
|
let x;
|
|
121
|
-
t[34] !== f || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */
|
|
121
|
+
t[34] !== f || t[35] !== v || t[36] !== M ? (x = /* @__PURE__ */ L("form", { onSubmit: f, onKeyDown: St, children: [
|
|
122
122
|
v,
|
|
123
123
|
M
|
|
124
124
|
] }), t[34] = f, t[35] = v, t[36] = M, t[37] = x) : x = t[37];
|
|
125
125
|
let O;
|
|
126
|
-
return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !==
|
|
127
|
-
|
|
126
|
+
return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== p ? (O = /* @__PURE__ */ L(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
|
|
127
|
+
p,
|
|
128
128
|
x
|
|
129
|
-
] }), t[38] = s, t[39] = u, t[40] = x, t[41] =
|
|
129
|
+
] }), t[38] = s, t[39] = u, t[40] = x, t[41] = p, t[42] = O) : O = t[42], O;
|
|
130
130
|
};
|
|
131
131
|
function St(t) {
|
|
132
132
|
return t.stopPropagation();
|
|
@@ -134,29 +134,29 @@ function St(t) {
|
|
|
134
134
|
const bt = (t) => {
|
|
135
135
|
const e = N.c(11), {
|
|
136
136
|
children: n
|
|
137
|
-
} = t, [s, o] =
|
|
137
|
+
} = t, [s, o] = I(!1), [i, r] = I("");
|
|
138
138
|
let c;
|
|
139
139
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
140
140
|
input: "textarea",
|
|
141
141
|
type: "text"
|
|
142
142
|
}, e[0] = c) : c = e[0];
|
|
143
|
-
const [a, h] =
|
|
144
|
-
let
|
|
145
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
143
|
+
const [a, h] = I(c), u = Q(Ct);
|
|
144
|
+
let w;
|
|
145
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (w = (C) => {
|
|
146
146
|
r(C), o(!0);
|
|
147
|
-
}, e[1] =
|
|
148
|
-
const f =
|
|
149
|
-
let
|
|
150
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
147
|
+
}, e[1] = w) : w = e[1];
|
|
148
|
+
const f = w;
|
|
149
|
+
let g;
|
|
150
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
151
151
|
o(!1);
|
|
152
|
-
}, e[2] =
|
|
153
|
-
const
|
|
152
|
+
}, e[2] = g) : g = e[2];
|
|
153
|
+
const m = g;
|
|
154
154
|
let b;
|
|
155
155
|
e[3] !== s || e[4] !== a || e[5] !== i ? (b = {
|
|
156
156
|
isShown: s,
|
|
157
157
|
text: i,
|
|
158
158
|
showPrompt: f,
|
|
159
|
-
hidePrompt:
|
|
159
|
+
hidePrompt: m,
|
|
160
160
|
resolveRef: u,
|
|
161
161
|
options: a,
|
|
162
162
|
setOptions: h
|
|
@@ -164,15 +164,15 @@ const bt = (t) => {
|
|
|
164
164
|
const d = b;
|
|
165
165
|
let S;
|
|
166
166
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(wt, {}), e[7] = S) : S = e[7];
|
|
167
|
-
let
|
|
168
|
-
return e[8] !== n || e[9] !== d ? (
|
|
167
|
+
let p;
|
|
168
|
+
return e[8] !== n || e[9] !== d ? (p = /* @__PURE__ */ L(Ae.Provider, { value: d, children: [
|
|
169
169
|
n,
|
|
170
170
|
S
|
|
171
|
-
] }), e[8] = n, e[9] = d, e[10] =
|
|
171
|
+
] }), e[8] = n, e[9] = d, e[10] = p) : p = e[10], p;
|
|
172
172
|
};
|
|
173
173
|
function Ct() {
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const on = (t) => {
|
|
176
176
|
const e = N.c(14), {
|
|
177
177
|
cookieDomain: n,
|
|
178
178
|
axiosOptions: s,
|
|
@@ -193,23 +193,23 @@ const nn = (t) => {
|
|
|
193
193
|
localizationContext: c,
|
|
194
194
|
chartColorPalette: a
|
|
195
195
|
}, e[0] = r, e[1] = s, e[2] = a, e[3] = n, e[4] = o, e[5] = c, e[6] = i, e[7] = u) : u = e[7];
|
|
196
|
-
const
|
|
196
|
+
const w = u;
|
|
197
197
|
let f;
|
|
198
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(
|
|
199
|
-
let
|
|
200
|
-
e[9] !== h ? (
|
|
198
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(We, {}), e[8] = f) : f = e[8];
|
|
199
|
+
let g;
|
|
200
|
+
e[9] !== h ? (g = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ L(bt, { children: [
|
|
201
201
|
f,
|
|
202
202
|
h
|
|
203
|
-
] }) }), e[9] = h, e[10] =
|
|
204
|
-
let
|
|
205
|
-
return e[11] !==
|
|
206
|
-
},
|
|
203
|
+
] }) }), e[9] = h, e[10] = g) : g = e[10];
|
|
204
|
+
let m;
|
|
205
|
+
return e[11] !== w || e[12] !== g ? (m = /* @__PURE__ */ y(ae.Provider, { value: w, children: g }), e[11] = w, e[12] = g, e[13] = m) : m = e[13], m;
|
|
206
|
+
}, sn = (t) => {
|
|
207
207
|
const e = N.c(15), {
|
|
208
208
|
children: n
|
|
209
|
-
} = t, [s, o] =
|
|
209
|
+
} = t, [s, o] = I(!1);
|
|
210
210
|
let i;
|
|
211
211
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Set(), e[0] = i) : i = e[0];
|
|
212
|
-
const [r] =
|
|
212
|
+
const [r] = I(i);
|
|
213
213
|
let c;
|
|
214
214
|
e[1] !== r ? (c = (b) => {
|
|
215
215
|
r.add(b), o(!0);
|
|
@@ -220,24 +220,24 @@ const nn = (t) => {
|
|
|
220
220
|
r.delete(b), r.size === 0 && o(!1);
|
|
221
221
|
}, e[3] = r, e[4] = h) : h = e[4];
|
|
222
222
|
const u = h;
|
|
223
|
-
let
|
|
224
|
-
e[5] !== s || e[6] !== a || e[7] !== u ? (
|
|
223
|
+
let w;
|
|
224
|
+
e[5] !== s || e[6] !== a || e[7] !== u ? (w = {
|
|
225
225
|
isLoading: s,
|
|
226
226
|
startLoading: a,
|
|
227
227
|
stopLoading: u
|
|
228
|
-
}, e[5] = s, e[6] = a, e[7] = u, e[8] =
|
|
229
|
-
const f =
|
|
230
|
-
let
|
|
231
|
-
e[9] !== s ? (
|
|
232
|
-
let
|
|
233
|
-
return e[11] !== n || e[12] !== f || e[13] !==
|
|
234
|
-
|
|
228
|
+
}, e[5] = s, e[6] = a, e[7] = u, e[8] = w) : w = e[8];
|
|
229
|
+
const f = w;
|
|
230
|
+
let g;
|
|
231
|
+
e[9] !== s ? (g = s && /* @__PURE__ */ y(at, {}), e[9] = s, e[10] = g) : g = e[10];
|
|
232
|
+
let m;
|
|
233
|
+
return e[11] !== n || e[12] !== f || e[13] !== g ? (m = /* @__PURE__ */ L(je.Provider, { value: f, children: [
|
|
234
|
+
g,
|
|
235
235
|
n
|
|
236
|
-
] }), e[11] = n, e[12] = f, e[13] =
|
|
237
|
-
},
|
|
236
|
+
] }), e[11] = n, e[12] = f, e[13] = g, e[14] = m) : m = e[14], m;
|
|
237
|
+
}, rn = (t) => {
|
|
238
238
|
const e = N.c(39), {
|
|
239
239
|
children: n
|
|
240
|
-
} = t, s =
|
|
240
|
+
} = t, s = Fe(), {
|
|
241
241
|
msalInstance: o,
|
|
242
242
|
getToken: i
|
|
243
243
|
} = z(pe), {
|
|
@@ -245,17 +245,17 @@ const nn = (t) => {
|
|
|
245
245
|
setDelegation: c,
|
|
246
246
|
setAvailableDelegations: a,
|
|
247
247
|
refreshAvailableDelegations: h
|
|
248
|
-
} = z(
|
|
248
|
+
} = z(De), [u, w] = I(null);
|
|
249
249
|
let f;
|
|
250
250
|
e[0] !== i ? (f = async () => {
|
|
251
251
|
const A = await i();
|
|
252
|
-
A &&
|
|
252
|
+
A && w(A.token);
|
|
253
253
|
}, e[0] = i, e[1] = f) : f = e[1];
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
e[2] !==
|
|
257
|
-
|
|
258
|
-
}, b = [
|
|
254
|
+
const g = f;
|
|
255
|
+
let m, b;
|
|
256
|
+
e[2] !== g ? (m = () => {
|
|
257
|
+
g();
|
|
258
|
+
}, b = [g], e[2] = g, e[3] = m, e[4] = b) : (m = e[3], b = e[4]), B(m, b);
|
|
259
259
|
let d;
|
|
260
260
|
if (e[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
261
261
|
e: {
|
|
@@ -270,12 +270,12 @@ const nn = (t) => {
|
|
|
270
270
|
} else
|
|
271
271
|
d = e[5];
|
|
272
272
|
const S = d;
|
|
273
|
-
let
|
|
274
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
273
|
+
let p;
|
|
274
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
275
275
|
state: S ? J.LOGGED_IN : J.LOGGED_OUT,
|
|
276
276
|
user: S
|
|
277
|
-
}, e[6] =
|
|
278
|
-
const [C, _] =
|
|
277
|
+
}, e[6] = p) : p = e[6];
|
|
278
|
+
const [C, _] = I(p);
|
|
279
279
|
let v;
|
|
280
280
|
e[7] !== s ? (v = async (A) => {
|
|
281
281
|
let $ = null;
|
|
@@ -320,7 +320,7 @@ const nn = (t) => {
|
|
|
320
320
|
const A = o.addEventCallback(($) => {
|
|
321
321
|
if ($.eventType === ge.LOGIN_SUCCESS && $.payload) {
|
|
322
322
|
const de = $.payload;
|
|
323
|
-
|
|
323
|
+
w(de.accessToken);
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
return () => {
|
|
@@ -354,38 +354,38 @@ const nn = (t) => {
|
|
|
354
354
|
}, e[32] = x, e[33] = P, e[34] = C, e[35] = ne) : ne = e[35];
|
|
355
355
|
const ue = ne;
|
|
356
356
|
let oe;
|
|
357
|
-
return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(
|
|
357
|
+
return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(Be.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
|
|
358
358
|
};
|
|
359
359
|
function yt() {
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const vt = () => {
|
|
362
362
|
const t = N.c(2);
|
|
363
363
|
let e;
|
|
364
364
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
|
|
365
365
|
let n;
|
|
366
|
-
return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
366
|
+
return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ L("div", { children: [
|
|
367
367
|
e,
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ L("p", { children: [
|
|
369
369
|
"If you are not redirected within 10 seconds, please click",
|
|
370
370
|
" ",
|
|
371
371
|
/* @__PURE__ */ y("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
|
|
372
372
|
] })
|
|
373
373
|
] }), t[1] = n) : n = t[1], n;
|
|
374
|
-
},
|
|
374
|
+
}, kt = (t) => {
|
|
375
375
|
const e = t == null ? void 0 : t.getActiveAccount();
|
|
376
376
|
console.log("getTokenMsal activeAccount", e);
|
|
377
377
|
const n = t == null ? void 0 : t.getAllAccounts();
|
|
378
378
|
console.log("getTokenMsal allAccounts", n);
|
|
379
379
|
const s = (n == null ? void 0 : n.at(0)) ?? void 0;
|
|
380
380
|
return console.log("getTokenMsal account", s), s ? (e || t == null || t.setActiveAccount(s), s) : null;
|
|
381
|
-
},
|
|
381
|
+
}, ye = ({
|
|
382
382
|
...t
|
|
383
383
|
}) => {
|
|
384
384
|
const {
|
|
385
385
|
inProgress: e
|
|
386
|
-
} =
|
|
386
|
+
} = ct(), {
|
|
387
387
|
cookieDomain: n
|
|
388
|
-
} = z(ae), [, s] =
|
|
388
|
+
} = z(ae), [, s] = ze(["Authorization"]), o = F(
|
|
389
389
|
() => t.useMsal ? t.msalInstance : null,
|
|
390
390
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
391
391
|
[t.useMsal, t.useMsal ? t.msalInstance : null]
|
|
@@ -408,9 +408,9 @@ const ve = () => {
|
|
|
408
408
|
throw console.log("getTokenMsal throwing error because msalInstance is null"), new Error("getTokenMsal: msalInstance is null");
|
|
409
409
|
if (c.current)
|
|
410
410
|
return console.log("getTokenMsal returning tokenRequestPromise.current", c.current), c.current;
|
|
411
|
-
const d = new Promise((S,
|
|
411
|
+
const d = new Promise((S, p) => {
|
|
412
412
|
const C = (_) => {
|
|
413
|
-
const v =
|
|
413
|
+
const v = kt(o);
|
|
414
414
|
if (!v) {
|
|
415
415
|
console.log("getTokenMsal no account found. Redirecting to login"), o == null || o.loginRedirect({
|
|
416
416
|
scopes: i,
|
|
@@ -431,15 +431,11 @@ const ve = () => {
|
|
|
431
431
|
console.error("Error acquiring token", k), k instanceof rt && (console.log("Silent token acquisition failed. Acquiring token using redirect"), o == null || o.acquireTokenRedirect({
|
|
432
432
|
scopes: i,
|
|
433
433
|
extraScopesToConsent: r
|
|
434
|
-
}), _(), S(null)), _(),
|
|
434
|
+
}), _(), S(null)), _(), p(k);
|
|
435
435
|
}).finally(() => {
|
|
436
|
-
_(),
|
|
436
|
+
_(), p(new Error("No access token returned from handleRedirectPromise"));
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
if (e !== ye.None) {
|
|
440
|
-
console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), g(new Error("Authentication in progress"));
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
439
|
a.current ? C(() => {
|
|
444
440
|
c.current = null;
|
|
445
441
|
}) : o.handleRedirectPromise().then((_) => {
|
|
@@ -456,27 +452,29 @@ const ve = () => {
|
|
|
456
452
|
});
|
|
457
453
|
});
|
|
458
454
|
return c.current = d, d;
|
|
459
|
-
}, [
|
|
455
|
+
}, [r, o, i, t.msalSilentRedirectUri, t.useMsal]), w = Y(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), f = Y((d) => t.useMsal ? () => {
|
|
460
456
|
} : (window.addEventListener("storage", d), window.addEventListener("dev-auth-change", d), () => {
|
|
461
457
|
window.removeEventListener("storage", d), window.removeEventListener("dev-auth-change", d);
|
|
462
|
-
}), [t.useMsal]),
|
|
458
|
+
}), [t.useMsal]), g = ot(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), m = F(() => {
|
|
463
459
|
var d;
|
|
464
|
-
return t.useMsal ? e !==
|
|
465
|
-
}, [
|
|
460
|
+
return t.useMsal ? e !== st.None ? "AUTH_IN_PROGRESS" : (o == null ? void 0 : o.getActiveAccount()) ?? ((d = o == null ? void 0 : o.getAllAccounts()) == null ? void 0 : d[0]) ?? null ? "AUTH_OK" : "NO_AUTH" : g;
|
|
461
|
+
}, [g, e, o, t.useMsal]);
|
|
462
|
+
console.log("authState", m);
|
|
463
|
+
const b = F(() => ({
|
|
466
464
|
useMsal: t.useMsal ?? !1,
|
|
467
465
|
msalInstance: o,
|
|
468
466
|
msalScopes: i,
|
|
469
467
|
msalExtraScopes: r,
|
|
470
|
-
getToken:
|
|
471
|
-
authState:
|
|
472
|
-
}), [t.useMsal, o, i, r,
|
|
468
|
+
getToken: w,
|
|
469
|
+
authState: m
|
|
470
|
+
}), [t.useMsal, o, i, r, w, m]);
|
|
473
471
|
return B(() => {
|
|
474
472
|
if (t.useMsal && o) {
|
|
475
473
|
const d = o.addEventCallback((S) => {
|
|
476
474
|
if (S.eventType === ge.LOGIN_SUCCESS || S.eventType === ge.ACQUIRE_TOKEN_SUCCESS && S.payload) {
|
|
477
|
-
const
|
|
475
|
+
const p = S.payload, C = p.account;
|
|
478
476
|
o.setActiveAccount(C);
|
|
479
|
-
const _ =
|
|
477
|
+
const _ = p.accessToken, v = p.expiresOn;
|
|
480
478
|
s("Authorization", _, {
|
|
481
479
|
path: "/",
|
|
482
480
|
secure: !0,
|
|
@@ -493,8 +491,21 @@ const ve = () => {
|
|
|
493
491
|
}
|
|
494
492
|
return () => {
|
|
495
493
|
};
|
|
496
|
-
}, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children:
|
|
494
|
+
}, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(vt, {}) : t.children });
|
|
497
495
|
}, cn = (t) => {
|
|
496
|
+
const e = N.c(9);
|
|
497
|
+
let n;
|
|
498
|
+
if (e[0] !== t ? ({
|
|
499
|
+
...n
|
|
500
|
+
} = t, e[0] = t, e[1] = n) : n = e[1], n.useMsal) {
|
|
501
|
+
let o;
|
|
502
|
+
e[2] !== n ? (o = /* @__PURE__ */ y(ye, { ...n }), e[2] = n, e[3] = o) : o = e[3];
|
|
503
|
+
let i;
|
|
504
|
+
return e[4] !== n.msalInstance || e[5] !== o ? (i = /* @__PURE__ */ y(it, { instance: n.msalInstance, children: o }), e[4] = n.msalInstance, e[5] = o, e[6] = i) : i = e[6], i;
|
|
505
|
+
}
|
|
506
|
+
let s;
|
|
507
|
+
return e[7] !== n ? (s = /* @__PURE__ */ y(ye, { ...n }), e[7] = n, e[8] = s) : s = e[8], s;
|
|
508
|
+
}, an = (t) => {
|
|
498
509
|
const e = N.c(18), {
|
|
499
510
|
children: n,
|
|
500
511
|
relativeEndpoint: s
|
|
@@ -523,18 +534,18 @@ const ve = () => {
|
|
|
523
534
|
}, e[0] = h) : h = e[0];
|
|
524
535
|
const {
|
|
525
536
|
data: u,
|
|
526
|
-
setData:
|
|
537
|
+
setData: w,
|
|
527
538
|
reloadData: f
|
|
528
|
-
} = ut(s, h),
|
|
529
|
-
let
|
|
530
|
-
e[1] !== f ? (
|
|
539
|
+
} = ut(s, h), g = Q(null);
|
|
540
|
+
let m, b;
|
|
541
|
+
e[1] !== f ? (m = () => {
|
|
531
542
|
const v = () => {
|
|
532
|
-
f(),
|
|
543
|
+
f(), g.current = window.setTimeout(v, Ge() + 5e3);
|
|
533
544
|
};
|
|
534
545
|
return v(), () => {
|
|
535
|
-
|
|
546
|
+
g.current !== null && window.clearTimeout(g.current);
|
|
536
547
|
};
|
|
537
|
-
}, b = [f], e[1] = f, e[2] =
|
|
548
|
+
}, b = [f], e[1] = f, e[2] = m, e[3] = b) : (m = e[2], b = e[3]), B(m, b);
|
|
538
549
|
let d;
|
|
539
550
|
e[4] !== r ? (d = () => {
|
|
540
551
|
const v = () => {
|
|
@@ -546,59 +557,59 @@ const ve = () => {
|
|
|
546
557
|
}, e[4] = r, e[5] = d) : d = e[5];
|
|
547
558
|
let S;
|
|
548
559
|
e[6] !== r || e[7] !== f ? (S = [r, f], e[6] = r, e[7] = f, e[8] = S) : S = e[8], B(d, S);
|
|
549
|
-
let
|
|
550
|
-
e[9] !== u || e[10] !== f || e[11] !==
|
|
560
|
+
let p;
|
|
561
|
+
e[9] !== u || e[10] !== f || e[11] !== w || e[12] !== i || e[13] !== a ? (p = {
|
|
551
562
|
delegation: a,
|
|
552
563
|
setDelegation: i,
|
|
553
564
|
availableDelegations: u,
|
|
554
|
-
setAvailableDelegations:
|
|
565
|
+
setAvailableDelegations: w,
|
|
555
566
|
refreshAvailableDelegations: f
|
|
556
|
-
}, e[9] = u, e[10] = f, e[11] =
|
|
557
|
-
const C =
|
|
567
|
+
}, e[9] = u, e[10] = f, e[11] = w, e[12] = i, e[13] = a, e[14] = p) : p = e[14];
|
|
568
|
+
const C = p;
|
|
558
569
|
let _;
|
|
559
|
-
return e[15] !== n || e[16] !== C ? (_ = /* @__PURE__ */ y(
|
|
560
|
-
},
|
|
570
|
+
return e[15] !== n || e[16] !== C ? (_ = /* @__PURE__ */ y(De.Provider, { value: C, children: n }), e[15] = n, e[16] = C, e[17] = _) : _ = e[17], _;
|
|
571
|
+
}, ve = (t, e) => t ? `${t} | ${e}` : e, ln = (t) => {
|
|
561
572
|
const e = N.c(18), {
|
|
562
573
|
defaultHelmet: n,
|
|
563
574
|
children: s,
|
|
564
575
|
helmetPrefix: o
|
|
565
576
|
} = t, i = o ?? "";
|
|
566
577
|
let r;
|
|
567
|
-
e[0] !== n || e[1] !== i ? (r =
|
|
578
|
+
e[0] !== n || e[1] !== i ? (r = ve(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
|
|
568
579
|
let c;
|
|
569
580
|
e[3] !== r ? (c = [r], e[3] = r, e[4] = c) : c = e[4];
|
|
570
|
-
const [a, h] =
|
|
581
|
+
const [a, h] = I(c);
|
|
571
582
|
let u;
|
|
572
583
|
e[5] !== o ? (u = (_) => {
|
|
573
|
-
h((v) => [...v,
|
|
584
|
+
h((v) => [...v, ve(o ?? "", _)]);
|
|
574
585
|
}, e[5] = o, e[6] = u) : u = e[6];
|
|
575
|
-
const
|
|
586
|
+
const w = u;
|
|
576
587
|
let f;
|
|
577
588
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
578
|
-
h(
|
|
589
|
+
h(Tt);
|
|
579
590
|
}, e[7] = f) : f = e[7];
|
|
580
|
-
const
|
|
581
|
-
let
|
|
582
|
-
e[8] !== a ? (
|
|
583
|
-
const b =
|
|
591
|
+
const g = f;
|
|
592
|
+
let m;
|
|
593
|
+
e[8] !== a ? (m = a.at(-1) ?? "", e[8] = a, e[9] = m) : m = e[9];
|
|
594
|
+
const b = m;
|
|
584
595
|
let d;
|
|
585
|
-
e[10] !==
|
|
586
|
-
addHelmet:
|
|
587
|
-
removeHelmet:
|
|
588
|
-
}, e[10] =
|
|
596
|
+
e[10] !== w ? (d = {
|
|
597
|
+
addHelmet: w,
|
|
598
|
+
removeHelmet: g
|
|
599
|
+
}, e[10] = w, e[11] = d) : d = e[11];
|
|
589
600
|
const S = d;
|
|
590
|
-
let
|
|
591
|
-
e[12] !== b ? (
|
|
601
|
+
let p;
|
|
602
|
+
e[12] !== b ? (p = /* @__PURE__ */ y("title", { children: b }), e[12] = b, e[13] = p) : p = e[13];
|
|
592
603
|
let C;
|
|
593
|
-
return e[14] !== s || e[15] !== S || e[16] !==
|
|
594
|
-
|
|
604
|
+
return e[14] !== s || e[15] !== S || e[16] !== p ? (C = /* @__PURE__ */ L(Ve.Provider, { value: S, children: [
|
|
605
|
+
p,
|
|
595
606
|
s
|
|
596
|
-
] }), e[14] = s, e[15] = S, e[16] =
|
|
607
|
+
] }), e[14] = s, e[15] = S, e[16] = p, e[17] = C) : C = e[17], C;
|
|
597
608
|
};
|
|
598
|
-
function
|
|
609
|
+
function Tt(t) {
|
|
599
610
|
return t.length > 1 ? t.slice(0, -1) : t;
|
|
600
611
|
}
|
|
601
|
-
class
|
|
612
|
+
class $e {
|
|
602
613
|
constructor(e, n, s) {
|
|
603
614
|
this.statusCode = e, this.statusText = n, this.content = s;
|
|
604
615
|
}
|
|
@@ -635,13 +646,13 @@ class le {
|
|
|
635
646
|
return "";
|
|
636
647
|
}
|
|
637
648
|
}
|
|
638
|
-
class
|
|
649
|
+
class Et extends le {
|
|
639
650
|
constructor(e) {
|
|
640
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
651
|
+
if (super(), this._logger = e, typeof fetch > "u" || R.isNode) {
|
|
641
652
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
642
653
|
this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
|
|
643
654
|
} else
|
|
644
|
-
this._fetchType = fetch.bind(
|
|
655
|
+
this._fetchType = fetch.bind(Xe());
|
|
645
656
|
if (typeof AbortController > "u") {
|
|
646
657
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
647
658
|
this._abortControllerType = n("abort-controller");
|
|
@@ -668,7 +679,7 @@ class Tt extends le {
|
|
|
668
679
|
n.abort(), this._logger.log(l.Warning, "Timeout from HTTP request."), s = new _e();
|
|
669
680
|
}, a);
|
|
670
681
|
}
|
|
671
|
-
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {},
|
|
682
|
+
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Ie(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
672
683
|
let i;
|
|
673
684
|
try {
|
|
674
685
|
i = await this._fetchType(e.url, {
|
|
@@ -690,18 +701,18 @@ class Tt extends le {
|
|
|
690
701
|
o && clearTimeout(o), e.abortSignal && (e.abortSignal.onabort = null);
|
|
691
702
|
}
|
|
692
703
|
if (!i.ok) {
|
|
693
|
-
const a = await
|
|
704
|
+
const a = await ke(i, "text");
|
|
694
705
|
throw new V(a || i.statusText, i.status);
|
|
695
706
|
}
|
|
696
|
-
const c = await
|
|
697
|
-
return new
|
|
707
|
+
const c = await ke(i, e.responseType);
|
|
708
|
+
return new $e(i.status, i.statusText, c);
|
|
698
709
|
}
|
|
699
710
|
getCookieString(e) {
|
|
700
711
|
let n = "";
|
|
701
|
-
return
|
|
712
|
+
return R.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
|
|
702
713
|
}
|
|
703
714
|
}
|
|
704
|
-
function
|
|
715
|
+
function ke(t, e) {
|
|
705
716
|
let n;
|
|
706
717
|
switch (e) {
|
|
707
718
|
case "arraybuffer":
|
|
@@ -720,7 +731,7 @@ function Te(t, e) {
|
|
|
720
731
|
}
|
|
721
732
|
return n;
|
|
722
733
|
}
|
|
723
|
-
class
|
|
734
|
+
class Pt extends le {
|
|
724
735
|
constructor(e) {
|
|
725
736
|
super(), this._logger = e;
|
|
726
737
|
}
|
|
@@ -728,14 +739,14 @@ class Et extends le {
|
|
|
728
739
|
send(e) {
|
|
729
740
|
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new U()) : e.method ? e.url ? new Promise((n, s) => {
|
|
730
741
|
const o = new XMLHttpRequest();
|
|
731
|
-
o.open(e.method, e.url, !0), o.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (
|
|
742
|
+
o.open(e.method, e.url, !0), o.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Ie(e.content) ? o.setRequestHeader("Content-Type", "application/octet-stream") : o.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
|
|
732
743
|
const i = e.headers;
|
|
733
744
|
i && Object.keys(i).forEach((r) => {
|
|
734
745
|
o.setRequestHeader(r, i[r]);
|
|
735
746
|
}), e.responseType && (o.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
736
747
|
o.abort(), s(new U());
|
|
737
748
|
}), e.timeout && (o.timeout = e.timeout), o.onload = () => {
|
|
738
|
-
e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new
|
|
749
|
+
e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new $e(o.status, o.statusText, o.response || o.responseText)) : s(new V(o.response || o.responseText || o.statusText, o.status));
|
|
739
750
|
}, o.onerror = () => {
|
|
740
751
|
this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new V(o.statusText, o.status));
|
|
741
752
|
}, o.ontimeout = () => {
|
|
@@ -744,13 +755,13 @@ class Et extends le {
|
|
|
744
755
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
745
756
|
}
|
|
746
757
|
}
|
|
747
|
-
class
|
|
758
|
+
class xt extends le {
|
|
748
759
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
749
760
|
constructor(e) {
|
|
750
|
-
if (super(), typeof fetch < "u" ||
|
|
751
|
-
this._httpClient = new Tt(e);
|
|
752
|
-
else if (typeof XMLHttpRequest < "u")
|
|
761
|
+
if (super(), typeof fetch < "u" || R.isNode)
|
|
753
762
|
this._httpClient = new Et(e);
|
|
763
|
+
else if (typeof XMLHttpRequest < "u")
|
|
764
|
+
this._httpClient = new Pt(e);
|
|
754
765
|
else
|
|
755
766
|
throw new Error("No usable HttpClient found.");
|
|
756
767
|
}
|
|
@@ -762,10 +773,10 @@ class Pt extends le {
|
|
|
762
773
|
return this._httpClient.getCookieString(e);
|
|
763
774
|
}
|
|
764
775
|
}
|
|
765
|
-
const
|
|
766
|
-
class
|
|
776
|
+
const At = [0, 2e3, 1e4, 3e4, null];
|
|
777
|
+
class Te {
|
|
767
778
|
constructor(e) {
|
|
768
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
779
|
+
this._retryDelays = e !== void 0 ? [...e, null] : At;
|
|
769
780
|
}
|
|
770
781
|
nextRetryDelayInMilliseconds(e) {
|
|
771
782
|
return this._retryDelays[e.previousRetryCount];
|
|
@@ -775,7 +786,7 @@ class X {
|
|
|
775
786
|
}
|
|
776
787
|
X.Authorization = "Authorization";
|
|
777
788
|
X.Cookie = "Cookie";
|
|
778
|
-
class
|
|
789
|
+
class Dt extends le {
|
|
779
790
|
constructor(e, n) {
|
|
780
791
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
781
792
|
}
|
|
@@ -800,7 +811,7 @@ var D;
|
|
|
800
811
|
(function(t) {
|
|
801
812
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
802
813
|
})(D || (D = {}));
|
|
803
|
-
let
|
|
814
|
+
let It = class {
|
|
804
815
|
constructor() {
|
|
805
816
|
this._isAborted = !1, this.onabort = null;
|
|
806
817
|
}
|
|
@@ -814,13 +825,13 @@ let Dt = class {
|
|
|
814
825
|
return this._isAborted;
|
|
815
826
|
}
|
|
816
827
|
};
|
|
817
|
-
class
|
|
828
|
+
class Ee {
|
|
818
829
|
// This is an internal type, not exported from 'index' so this is really just internal.
|
|
819
830
|
get pollAborted() {
|
|
820
831
|
return this._pollAbort.aborted;
|
|
821
832
|
}
|
|
822
833
|
constructor(e, n, s) {
|
|
823
|
-
this._httpClient = e, this._logger = n, this._pollAbort = new
|
|
834
|
+
this._httpClient = e, this._logger = n, this._pollAbort = new It(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
824
835
|
}
|
|
825
836
|
async connect(e, n) {
|
|
826
837
|
if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, D, "transferFormat"), this._url = e, this._logger.log(l.Trace, "(LongPolling transport) Connecting."), n === D.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
@@ -853,7 +864,7 @@ class Pe {
|
|
|
853
864
|
}
|
|
854
865
|
}
|
|
855
866
|
async send(e) {
|
|
856
|
-
return this._running ?
|
|
867
|
+
return this._running ? Re(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
|
|
857
868
|
}
|
|
858
869
|
async stop() {
|
|
859
870
|
this._logger.log(l.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
|
|
@@ -896,7 +907,7 @@ class Rt {
|
|
|
896
907
|
return;
|
|
897
908
|
}
|
|
898
909
|
let r;
|
|
899
|
-
if (
|
|
910
|
+
if (R.isBrowser || R.isWebWorker)
|
|
900
911
|
r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
901
912
|
else {
|
|
902
913
|
const c = this._httpClient.getCookieString(e), a = {};
|
|
@@ -925,7 +936,7 @@ class Rt {
|
|
|
925
936
|
});
|
|
926
937
|
}
|
|
927
938
|
async send(e) {
|
|
928
|
-
return this._eventSource ?
|
|
939
|
+
return this._eventSource ? Re(this._logger, "SSE", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
|
|
929
940
|
}
|
|
930
941
|
stop() {
|
|
931
942
|
return this._close(), Promise.resolve();
|
|
@@ -946,9 +957,9 @@ class Lt {
|
|
|
946
957
|
let r;
|
|
947
958
|
const c = this._httpClient.getCookieString(e);
|
|
948
959
|
let a = !1;
|
|
949
|
-
if (
|
|
950
|
-
const h = {}, [u,
|
|
951
|
-
h[u] =
|
|
960
|
+
if (R.isNode || R.isReactNative) {
|
|
961
|
+
const h = {}, [u, w] = q();
|
|
962
|
+
h[u] = w, s && (h[X.Authorization] = `Bearer ${s}`), c && (h[X.Cookie] = c), r = new this._webSocketConstructor(e, void 0, {
|
|
952
963
|
headers: { ...h, ...this._headers }
|
|
953
964
|
});
|
|
954
965
|
} else
|
|
@@ -992,21 +1003,21 @@ class Lt {
|
|
|
992
1003
|
return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
|
|
993
1004
|
}
|
|
994
1005
|
}
|
|
995
|
-
const
|
|
996
|
-
class
|
|
1006
|
+
const Pe = 100;
|
|
1007
|
+
class Mt {
|
|
997
1008
|
constructor(e, n = {}) {
|
|
998
1009
|
if (this._stopPromiseResolver = () => {
|
|
999
|
-
}, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger =
|
|
1010
|
+
}, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Ke(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
|
|
1000
1011
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
1001
1012
|
else
|
|
1002
1013
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
1003
1014
|
n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
|
|
1004
1015
|
let s = null, o = null;
|
|
1005
|
-
if (
|
|
1016
|
+
if (R.isNode && typeof require < "u") {
|
|
1006
1017
|
const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
1007
1018
|
s = i("ws"), o = i("eventsource");
|
|
1008
1019
|
}
|
|
1009
|
-
!
|
|
1020
|
+
!R.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : R.isNode && !n.WebSocket && s && (n.WebSocket = s), !R.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : R.isNode && !n.EventSource && typeof o < "u" && (n.EventSource = o), this._httpClient = new Dt(n.httpClient || new xt(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
1010
1021
|
}
|
|
1011
1022
|
async start(e) {
|
|
1012
1023
|
if (e = e || D.Binary, E.isIn(e, D, "transferFormat"), this._logger.log(l.Debug, `Starting connection with transfer format '${D[e]}'.`), this._connectionState !== "Disconnected")
|
|
@@ -1071,12 +1082,12 @@ class It {
|
|
|
1071
1082
|
this._accessTokenFactory = () => i, this._httpClient._accessToken = i, this._httpClient._accessTokenFactory = void 0;
|
|
1072
1083
|
}
|
|
1073
1084
|
o++;
|
|
1074
|
-
} while (s.url && o <
|
|
1075
|
-
if (o ===
|
|
1085
|
+
} while (s.url && o < Pe);
|
|
1086
|
+
if (o === Pe && s.url)
|
|
1076
1087
|
throw new Error("Negotiate redirection limit exceeded.");
|
|
1077
1088
|
await this._createTransport(n, this._options.transport, s, e);
|
|
1078
1089
|
}
|
|
1079
|
-
this.transport instanceof
|
|
1090
|
+
this.transport instanceof Ee && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(l.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
|
|
1080
1091
|
} catch (s) {
|
|
1081
1092
|
return this._logger.log(l.Error, "Failed to start the connection: " + s), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(s);
|
|
1082
1093
|
}
|
|
@@ -1121,23 +1132,23 @@ class It {
|
|
|
1121
1132
|
if (this.transport = u, !a) {
|
|
1122
1133
|
try {
|
|
1123
1134
|
a = await this._getNegotiationResponse(e);
|
|
1124
|
-
} catch (
|
|
1125
|
-
return Promise.reject(
|
|
1135
|
+
} catch (w) {
|
|
1136
|
+
return Promise.reject(w);
|
|
1126
1137
|
}
|
|
1127
1138
|
i = this._createConnectUrl(e, a.connectionToken);
|
|
1128
1139
|
}
|
|
1129
1140
|
try {
|
|
1130
1141
|
await this._startTransport(i, o), this.connectionId = a.connectionId;
|
|
1131
1142
|
return;
|
|
1132
|
-
} catch (
|
|
1133
|
-
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${
|
|
1143
|
+
} catch (w) {
|
|
1144
|
+
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${w}`), a = void 0, r.push(new Je(`${h.transport} failed: ${w}`, T[h.transport])), this._connectionState !== "Connecting") {
|
|
1134
1145
|
const f = "Failed to select transport before stop() was called.";
|
|
1135
1146
|
return this._logger.log(l.Debug, f), Promise.reject(new U(f));
|
|
1136
1147
|
}
|
|
1137
1148
|
}
|
|
1138
1149
|
}
|
|
1139
1150
|
}
|
|
1140
|
-
return r.length > 0 ? Promise.reject(new
|
|
1151
|
+
return r.length > 0 ? Promise.reject(new Qe(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`, r)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
|
|
1141
1152
|
}
|
|
1142
1153
|
_constructTransport(e) {
|
|
1143
1154
|
switch (e) {
|
|
@@ -1150,7 +1161,7 @@ class It {
|
|
|
1150
1161
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
1151
1162
|
return new Rt(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
1152
1163
|
case T.LongPolling:
|
|
1153
|
-
return new
|
|
1164
|
+
return new Ee(this._httpClient, this._logger, this._options);
|
|
1154
1165
|
default:
|
|
1155
1166
|
throw new Error(`Unknown transport: ${e}.`);
|
|
1156
1167
|
}
|
|
@@ -1175,10 +1186,10 @@ class It {
|
|
|
1175
1186
|
const i = T[e.transport];
|
|
1176
1187
|
if (i == null)
|
|
1177
1188
|
return this._logger.log(l.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
1178
|
-
if (
|
|
1189
|
+
if ($t(n, i))
|
|
1179
1190
|
if (e.transferFormats.map((c) => D[c]).indexOf(s) >= 0) {
|
|
1180
1191
|
if (i === T.WebSockets && !this._options.WebSocket || i === T.ServerSentEvents && !this._options.EventSource)
|
|
1181
|
-
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new
|
|
1192
|
+
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new Ye(`'${T[i]}' is not supported in your environment.`, i);
|
|
1182
1193
|
this._logger.log(l.Debug, `Selecting transport '${T[i]}'.`);
|
|
1183
1194
|
try {
|
|
1184
1195
|
return this.features.reconnect = i === T.WebSockets ? o : void 0, this._constructTransport(i);
|
|
@@ -1188,7 +1199,7 @@ class It {
|
|
|
1188
1199
|
} else
|
|
1189
1200
|
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it does not support the requested transfer format '${D[s]}'.`), new Error(`'${T[i]}' does not support ${D[s]}.`);
|
|
1190
1201
|
else
|
|
1191
|
-
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new
|
|
1202
|
+
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new qe(`'${T[i]}' is disabled by the client.`, i);
|
|
1192
1203
|
}
|
|
1193
1204
|
_isITransport(e) {
|
|
1194
1205
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -1214,7 +1225,7 @@ class It {
|
|
|
1214
1225
|
_resolveUrl(e) {
|
|
1215
1226
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
1216
1227
|
return e;
|
|
1217
|
-
if (!
|
|
1228
|
+
if (!R.isBrowser)
|
|
1218
1229
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
1219
1230
|
const n = window.document.createElement("a");
|
|
1220
1231
|
return n.href = e, this._logger.log(l.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
|
|
@@ -1226,7 +1237,7 @@ class It {
|
|
|
1226
1237
|
return s.has("negotiateVersion") || s.append("negotiateVersion", this._negotiateVersion.toString()), s.has("useStatefulReconnect") ? s.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && s.append("useStatefulReconnect", "true"), n.search = s.toString(), n.toString();
|
|
1227
1238
|
}
|
|
1228
1239
|
}
|
|
1229
|
-
function
|
|
1240
|
+
function $t(t, e) {
|
|
1230
1241
|
return !t || (e & t) !== 0;
|
|
1231
1242
|
}
|
|
1232
1243
|
class me {
|
|
@@ -1281,10 +1292,10 @@ class se {
|
|
|
1281
1292
|
this._rejecter(e);
|
|
1282
1293
|
}
|
|
1283
1294
|
}
|
|
1284
|
-
const
|
|
1285
|
-
class
|
|
1295
|
+
const Nt = "json";
|
|
1296
|
+
class Ot {
|
|
1286
1297
|
constructor() {
|
|
1287
|
-
this.name =
|
|
1298
|
+
this.name = Nt, this.version = 2, this.transferFormat = D.Text;
|
|
1288
1299
|
}
|
|
1289
1300
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
1290
1301
|
*
|
|
@@ -1296,7 +1307,7 @@ class Nt {
|
|
|
1296
1307
|
throw new Error("Invalid input for JSON hub protocol. Expected a string.");
|
|
1297
1308
|
if (!e)
|
|
1298
1309
|
return [];
|
|
1299
|
-
n === null && (n =
|
|
1310
|
+
n === null && (n = Le.instance);
|
|
1300
1311
|
const s = be.parse(e), o = [];
|
|
1301
1312
|
for (const i of s) {
|
|
1302
1313
|
const r = JSON.parse(i);
|
|
@@ -1363,7 +1374,7 @@ class Nt {
|
|
|
1363
1374
|
throw new Error(n);
|
|
1364
1375
|
}
|
|
1365
1376
|
}
|
|
1366
|
-
const
|
|
1377
|
+
const Ht = {
|
|
1367
1378
|
trace: l.Trace,
|
|
1368
1379
|
debug: l.Debug,
|
|
1369
1380
|
info: l.Information,
|
|
@@ -1374,18 +1385,18 @@ const Ot = {
|
|
|
1374
1385
|
critical: l.Critical,
|
|
1375
1386
|
none: l.None
|
|
1376
1387
|
};
|
|
1377
|
-
function
|
|
1378
|
-
const e =
|
|
1388
|
+
function Ut(t) {
|
|
1389
|
+
const e = Ht[t.toLowerCase()];
|
|
1379
1390
|
if (typeof e < "u")
|
|
1380
1391
|
return e;
|
|
1381
1392
|
throw new Error(`Unknown log level: ${t}`);
|
|
1382
1393
|
}
|
|
1383
|
-
class
|
|
1394
|
+
class Wt {
|
|
1384
1395
|
configureLogging(e) {
|
|
1385
|
-
if (E.isRequired(e, "logging"),
|
|
1396
|
+
if (E.isRequired(e, "logging"), jt(e))
|
|
1386
1397
|
this.logger = e;
|
|
1387
1398
|
else if (typeof e == "string") {
|
|
1388
|
-
const n =
|
|
1399
|
+
const n = Ut(e);
|
|
1389
1400
|
this.logger = new Ce(n);
|
|
1390
1401
|
} else
|
|
1391
1402
|
this.logger = new Ce(e);
|
|
@@ -1407,7 +1418,7 @@ class Ut {
|
|
|
1407
1418
|
withAutomaticReconnect(e) {
|
|
1408
1419
|
if (this.reconnectPolicy)
|
|
1409
1420
|
throw new Error("A reconnectPolicy has already been set.");
|
|
1410
|
-
return e ? Array.isArray(e) ? this.reconnectPolicy = new
|
|
1421
|
+
return e ? Array.isArray(e) ? this.reconnectPolicy = new Te(e) : this.reconnectPolicy = e : this.reconnectPolicy = new Te(), this;
|
|
1411
1422
|
}
|
|
1412
1423
|
/** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
1413
1424
|
*
|
|
@@ -1438,14 +1449,14 @@ class Ut {
|
|
|
1438
1449
|
const e = this.httpConnectionOptions || {};
|
|
1439
1450
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
1440
1451
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
1441
|
-
const n = new
|
|
1442
|
-
return
|
|
1452
|
+
const n = new Mt(this.url, e);
|
|
1453
|
+
return Ze.create(n, this.logger || Le.instance, this.protocol || new Ot(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
1443
1454
|
}
|
|
1444
1455
|
}
|
|
1445
|
-
function
|
|
1456
|
+
function jt(t) {
|
|
1446
1457
|
return t.log !== void 0;
|
|
1447
1458
|
}
|
|
1448
|
-
const
|
|
1459
|
+
const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
1449
1460
|
children: t,
|
|
1450
1461
|
apiUrl: e,
|
|
1451
1462
|
endpoint: n
|
|
@@ -1453,62 +1464,62 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
|
|
|
1453
1464
|
const {
|
|
1454
1465
|
authState: s,
|
|
1455
1466
|
getToken: o
|
|
1456
|
-
} = z(pe), i = dt(), [r, c] =
|
|
1457
|
-
|
|
1467
|
+
} = z(pe), i = dt(), [r, c] = I(fe.Disconnected), [a, h] = I(!1), u = Q(null), w = Q(o);
|
|
1468
|
+
w.current = o;
|
|
1458
1469
|
const f = Y(() => {
|
|
1459
1470
|
var d;
|
|
1460
1471
|
return c(((d = u.current) == null ? void 0 : d.state) ?? fe.Disconnected);
|
|
1461
1472
|
}, []);
|
|
1462
1473
|
B(() => {
|
|
1463
|
-
if (s !== "AUTH_OK" || !i)
|
|
1474
|
+
if (console.log("useEffect apiwebsocket authState", s), s !== "AUTH_OK" || !i)
|
|
1464
1475
|
return;
|
|
1465
1476
|
let d = !1, S = null;
|
|
1466
|
-
const
|
|
1467
|
-
accessTokenFactory: () =>
|
|
1477
|
+
const p = new Wt().withUrl(`${e}/${n}`, {
|
|
1478
|
+
accessTokenFactory: () => w.current().then((_) => (_ == null ? void 0 : _.token) ?? "")
|
|
1468
1479
|
}).withAutomaticReconnect({
|
|
1469
|
-
nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount,
|
|
1480
|
+
nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount, Bt)
|
|
1470
1481
|
}).build();
|
|
1471
|
-
u.current =
|
|
1482
|
+
u.current = p, p.on("Connected", (_) => {
|
|
1472
1483
|
console.log("Server says:", _);
|
|
1473
|
-
}),
|
|
1484
|
+
}), p.onreconnecting((_) => {
|
|
1474
1485
|
d || (console.log("Reconnecting...", _), f(), h(!0));
|
|
1475
|
-
}),
|
|
1486
|
+
}), p.onreconnected(() => {
|
|
1476
1487
|
d || (console.log("Reconnected"), f(), h(!1));
|
|
1477
|
-
}),
|
|
1488
|
+
}), p.onclose((_) => {
|
|
1478
1489
|
d || (console.log("Connection closed", _), f(), h(!0));
|
|
1479
1490
|
});
|
|
1480
1491
|
const C = () => {
|
|
1481
|
-
S !== null && window.clearTimeout(S),
|
|
1492
|
+
S !== null && window.clearTimeout(S), p.start().then(() => {
|
|
1482
1493
|
if (d) {
|
|
1483
|
-
|
|
1494
|
+
p.stop().catch((_) => {
|
|
1484
1495
|
console.log("Error stopping connection:", _);
|
|
1485
1496
|
});
|
|
1486
1497
|
return;
|
|
1487
1498
|
}
|
|
1488
1499
|
console.log("Connection started"), f(), h(!1);
|
|
1489
1500
|
}).catch((_) => {
|
|
1490
|
-
d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C,
|
|
1501
|
+
d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C, Ft));
|
|
1491
1502
|
});
|
|
1492
1503
|
};
|
|
1493
1504
|
return C(), () => {
|
|
1494
|
-
d = !0, S !== null && window.clearTimeout(S), u.current = null,
|
|
1505
|
+
d = !0, S !== null && window.clearTimeout(S), u.current = null, p.stop().catch((_) => {
|
|
1495
1506
|
console.log("Error stopping connection:", _);
|
|
1496
1507
|
});
|
|
1497
1508
|
};
|
|
1498
1509
|
}, [e, s, n, f, i]);
|
|
1499
|
-
const
|
|
1500
|
-
isAlive:
|
|
1501
|
-
shouldBeAlive:
|
|
1510
|
+
const g = F(() => r === fe.Connected, [r]), m = F(() => s === "AUTH_OK", [s]), b = F(() => ({
|
|
1511
|
+
isAlive: g,
|
|
1512
|
+
shouldBeAlive: m,
|
|
1502
1513
|
connectionState: r,
|
|
1503
1514
|
hasLastConnectionEnded: a
|
|
1504
|
-
}), [
|
|
1505
|
-
return /* @__PURE__ */ y(
|
|
1506
|
-
},
|
|
1507
|
-
const t = z(
|
|
1515
|
+
}), [g, m, r, a]);
|
|
1516
|
+
return /* @__PURE__ */ y(Me.Provider, { value: b, children: t });
|
|
1517
|
+
}, dn = () => {
|
|
1518
|
+
const t = z(Me);
|
|
1508
1519
|
if (!t)
|
|
1509
1520
|
throw new Error("useApiWebSocket must be used within a ApiWebSocketProvider");
|
|
1510
1521
|
return t;
|
|
1511
|
-
},
|
|
1522
|
+
}, xe = 50, zt = () => {
|
|
1512
1523
|
const t = N.c(22), {
|
|
1513
1524
|
texts: e
|
|
1514
1525
|
} = z(ae), {
|
|
@@ -1519,56 +1530,56 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
|
|
|
1519
1530
|
text: i,
|
|
1520
1531
|
show: r,
|
|
1521
1532
|
textSm: c
|
|
1522
|
-
} =
|
|
1533
|
+
} = et(), a = c === void 0 ? i.length > xe : c, h = i.length > xe;
|
|
1523
1534
|
let u;
|
|
1524
|
-
t[0] !== o || t[1] !== s || t[2] !== r ? (u = (
|
|
1535
|
+
t[0] !== o || t[1] !== s || t[2] !== r ? (u = (p) => {
|
|
1525
1536
|
if (r)
|
|
1526
|
-
e: switch (
|
|
1537
|
+
e: switch (p.key) {
|
|
1527
1538
|
case "Enter": {
|
|
1528
|
-
|
|
1539
|
+
p.preventDefault(), p.stopPropagation(), s();
|
|
1529
1540
|
break e;
|
|
1530
1541
|
}
|
|
1531
1542
|
case "Escape": {
|
|
1532
|
-
|
|
1543
|
+
p.preventDefault(), p.stopPropagation(), o();
|
|
1533
1544
|
break e;
|
|
1534
1545
|
}
|
|
1535
1546
|
}
|
|
1536
|
-
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3],
|
|
1547
|
+
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], tt(u);
|
|
1537
1548
|
const f = h ? void 0 : "sm";
|
|
1538
|
-
let
|
|
1539
|
-
t[4] !== a || t[5] !== i ? (
|
|
1540
|
-
let
|
|
1541
|
-
t[7] !== n.no || t[8] !== o ? (
|
|
1549
|
+
let g;
|
|
1550
|
+
t[4] !== a || t[5] !== i ? (g = /* @__PURE__ */ y(H.Header, { className: "justify-content-center", children: a ? /* @__PURE__ */ y(nt, { variant: "body", children: i }) : /* @__PURE__ */ y(H.Title, { children: i }) }), t[4] = a, t[5] = i, t[6] = g) : g = t[6];
|
|
1551
|
+
let m;
|
|
1552
|
+
t[7] !== n.no || t[8] !== o ? (m = /* @__PURE__ */ y(ie, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: o, children: n.no }), t[7] = n.no, t[8] = o, t[9] = m) : m = t[9];
|
|
1542
1553
|
let b;
|
|
1543
1554
|
t[10] !== n.yes || t[11] !== s ? (b = /* @__PURE__ */ y(ie, { type: "button", color: "primary", onClick: s, className: "w-100 ml", children: n.yes }), t[10] = n.yes, t[11] = s, t[12] = b) : b = t[12];
|
|
1544
1555
|
let d;
|
|
1545
|
-
t[13] !==
|
|
1546
|
-
|
|
1556
|
+
t[13] !== m || t[14] !== b ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ L("div", { className: "w-100 d-flex gap-5", children: [
|
|
1557
|
+
m,
|
|
1547
1558
|
b
|
|
1548
|
-
] }) }), t[13] =
|
|
1559
|
+
] }) }), t[13] = m, t[14] = b, t[15] = d) : d = t[15];
|
|
1549
1560
|
let S;
|
|
1550
|
-
return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !==
|
|
1551
|
-
|
|
1561
|
+
return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== g || t[20] !== d ? (S = /* @__PURE__ */ L(H, { show: r, size: f, centered: !0, onHide: o, children: [
|
|
1562
|
+
g,
|
|
1552
1563
|
d
|
|
1553
|
-
] }), t[16] = o, t[17] = r, t[18] = f, t[19] =
|
|
1564
|
+
] }), t[16] = o, t[17] = r, t[18] = f, t[19] = g, t[20] = d, t[21] = S) : S = t[21], S;
|
|
1554
1565
|
};
|
|
1555
1566
|
export {
|
|
1556
|
-
|
|
1557
|
-
|
|
1567
|
+
Me as ApiWebSocketContext,
|
|
1568
|
+
un as ApiWebSocketProvider,
|
|
1558
1569
|
pe as AuthContext,
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1570
|
+
cn as AuthProvider,
|
|
1571
|
+
De as DelegationContext,
|
|
1572
|
+
an as DelegationProvider,
|
|
1573
|
+
pn as FormDisabledContext,
|
|
1574
|
+
wn as FormDisabledProvider,
|
|
1575
|
+
Ve as HelmetContext,
|
|
1576
|
+
ln as HelmetProvider,
|
|
1577
|
+
je as LoadingContext,
|
|
1578
|
+
sn as LoadingProvider,
|
|
1568
1579
|
ae as LuminusComponentsContext,
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1580
|
+
on as LuminusComponentsProvider,
|
|
1581
|
+
Be as UserContext,
|
|
1582
|
+
rn as UserProvider,
|
|
1583
|
+
dn as useApiWebSocketContext,
|
|
1584
|
+
_n as useFormDisabledContext
|
|
1574
1585
|
};
|