react-luminus-components 2.1.5 → 2.1.7
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-BlA7oC25.js → FormDisabledProvider-D-DRODSt.js} +1 -1
- package/dist/{FormDisabledProvider-CECmrBJd.cjs → FormDisabledProvider-Dt39yr7W.cjs} +1 -1
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/comps/DynamicFormInput/DynamicFormInput.d.ts +2 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +218 -211
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +58 -58
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +69 -69
- package/dist/main.cjs.js +3 -3
- package/dist/main.es.js +3370 -3333
- package/dist/models/texts/DynamicFormsTexts.d.ts +1 -0
- package/dist/models/types/PromptOptions.d.ts +1 -0
- package/dist/models/types/dynamicForms/types/DynamicFormColumnDef.d.ts +1 -0
- package/dist/models/types/dynamicForms/types/DynamicFormColumnSchemaModel.d.ts +1 -0
- package/dist/{nivo-bar-D2xeG6Ps.js → nivo-bar-D6NJLYWS.js} +15365 -15366
- package/dist/{nivo-bar-DKJ66whl.cjs → nivo-bar-SBWBmyeI.cjs} +57 -57
- package/dist/style.css +1 -1
- package/dist/{useIsFormDirty-BDa_BKvX.js → useIsFormDirty-CZ4jNRFn.js} +1 -1
- package/dist/{useIsFormDirty-CgvxOtfe.cjs → useIsFormDirty-Crsu8mjo.cjs} +1 -1
- package/dist/{useLocalStorageState-BJQMZg4Q.cjs → useLocalStorageState-Ca7olZgH.cjs} +1 -1
- package/dist/{useLocalStorageState-lCgUtRKF.js → useLocalStorageState-DtBc-C2W.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +14 -14
- package/package.json +1 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as re, bZ as
|
|
2
|
-
import { cs as pn,
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
1
|
+
import { t as re, bZ as Oe, c as H, b_ as He, W as ae, ag as Ue, b$ as Le, X as W, ad as We, Z as Ae, an as ie, c0 as je, ak as Fe, ai as Be, bi as pe, bD as De, bk as Q, aj as ze, c1 as Ge, aA as we, ap as Xe, c2 as Ve, c3 as Ke, c4 as R, c5 as Je, c6 as j, c7 as l, c8 as _e, c9 as Ie, ca as V, cb as E, cc as Z, cd as ce, ce as Re, cf as Qe, cg as Se, ch as Ye, ci as qe, cj as Ze, ck as et, cl as be, cm as X, cn as Me, co as Ce, cp as tt, cq as fe, cr as $e, ah as nt, bd as ot } from "./nivo-bar-D6NJLYWS.js";
|
|
2
|
+
import { cs as pn, a6 as _n } from "./nivo-bar-D6NJLYWS.js";
|
|
3
|
+
import { jsxs as A, jsx as y } from "react/jsx-runtime";
|
|
4
|
+
import { useState as D, useContext as G, useEffect as z, useRef as Y, useMemo as B, useCallback as q, useSyncExternalStore as st } from "react";
|
|
5
|
+
import "react-router";
|
|
5
6
|
import { EventType as ge, InteractionStatus as rt, InteractionRequiredAuthError as it } from "@azure/msal-browser";
|
|
6
7
|
import { MsalProvider as ct, useMsal as at } from "@azure/msal-react";
|
|
7
|
-
import "react-router";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import "react-flexmonster";
|
|
11
|
-
import { L as lt, b as ht } from "./FormDisabledProvider-
|
|
12
|
-
import { F as wn } from "./FormDisabledProvider-
|
|
13
|
-
import { u as ut } from "./useLocalStorageState-
|
|
11
|
+
import { L as lt, b as ht } from "./FormDisabledProvider-D-DRODSt.js";
|
|
12
|
+
import { F as wn } from "./FormDisabledProvider-D-DRODSt.js";
|
|
13
|
+
import { u as ut } from "./useLocalStorageState-DtBc-C2W.js";
|
|
14
14
|
import { u as dt } from "./useIsBrowserOnline-RAirIO4c.js";
|
|
15
15
|
function ft(t) {
|
|
16
16
|
const e = re(t);
|
|
@@ -27,12 +27,12 @@ function pt(t, e) {
|
|
|
27
27
|
return n >= s && n <= o;
|
|
28
28
|
}
|
|
29
29
|
function _t() {
|
|
30
|
-
return
|
|
30
|
+
return Oe(Date.now());
|
|
31
31
|
}
|
|
32
32
|
const mt = (t) => {
|
|
33
|
-
const e =
|
|
33
|
+
const e = H.c(10), {
|
|
34
34
|
children: n
|
|
35
|
-
} = t, [s, o] =
|
|
35
|
+
} = t, [s, o] = D(!1), [i, r] = D(""), [c, a] = D(void 0);
|
|
36
36
|
let h;
|
|
37
37
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (S, p) => {
|
|
38
38
|
o(!0), r(S), a(p);
|
|
@@ -55,34 +55,34 @@ const mt = (t) => {
|
|
|
55
55
|
let b;
|
|
56
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] !== w ? (d = /* @__PURE__ */
|
|
58
|
+
return e[7] !== n || e[8] !== w ? (d = /* @__PURE__ */ A(He.Provider, { value: w, children: [
|
|
59
59
|
b,
|
|
60
60
|
n
|
|
61
61
|
] }), e[7] = n, e[8] = w, e[9] = d) : d = e[9], d;
|
|
62
62
|
}, wt = () => {
|
|
63
|
-
const t =
|
|
63
|
+
const t = H.c(49), {
|
|
64
64
|
texts: e
|
|
65
|
-
} =
|
|
65
|
+
} = G(ae), {
|
|
66
66
|
confirm: n
|
|
67
67
|
} = e, {
|
|
68
68
|
isShown: s,
|
|
69
69
|
text: o,
|
|
70
70
|
onFinish: i
|
|
71
|
-
} =
|
|
71
|
+
} = Ue(), {
|
|
72
72
|
options: r
|
|
73
|
-
} =
|
|
73
|
+
} = G(Le), [c, a] = D(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
79
|
let m;
|
|
80
|
-
t[2] !== i || t[3] !== r.required || t[4] !== c ? (m = (
|
|
81
|
-
|
|
80
|
+
t[2] !== i || t[3] !== r.required || t[4] !== c ? (m = (F) => {
|
|
81
|
+
F.preventDefault(), !(r.required && !c) && (i(c), a(""));
|
|
82
82
|
}, t[2] = i, t[3] = r.required, t[4] = c, t[5] = m) : m = t[5];
|
|
83
83
|
const f = m;
|
|
84
84
|
let g;
|
|
85
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = (
|
|
85
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = (F) => a(F.currentTarget.value), t[6] = g) : g = t[6];
|
|
86
86
|
let w;
|
|
87
87
|
t[7] !== c ? (w = {
|
|
88
88
|
value: c,
|
|
@@ -95,52 +95,59 @@ const mt = (t) => {
|
|
|
95
95
|
let d, S;
|
|
96
96
|
t[9] !== s || t[10] !== r.defaultValue ? (d = () => {
|
|
97
97
|
s === !0 && a(r.defaultValue ?? "");
|
|
98
|
-
}, S = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = S) : (d = t[11], S = t[12]),
|
|
98
|
+
}, S = [s, r.defaultValue], t[9] = s, t[10] = r.defaultValue, t[11] = d, t[12] = S) : (d = t[11], S = t[12]), z(d, S);
|
|
99
99
|
let p;
|
|
100
|
-
t[13] !== o ? (p = /* @__PURE__ */ y(
|
|
100
|
+
t[13] !== o ? (p = /* @__PURE__ */ y(W.Header, { className: "justify-content-center", children: /* @__PURE__ */ y(W.Title, { children: o }) }), t[13] = o, t[14] = p) : p = t[14];
|
|
101
101
|
let C;
|
|
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[
|
|
102
|
+
t[15] !== b || t[16] !== r.input || t[17] !== r.maxLength ? (C = r.input === "textarea" ? /* @__PURE__ */ y("textarea", { ...b, rows: 5, maxLength: r.maxLength }) : void 0, t[15] = b, t[16] = r.input, t[17] = r.maxLength, t[18] = C) : C = t[18];
|
|
103
103
|
let _;
|
|
104
|
-
t[
|
|
104
|
+
t[19] !== b || t[20] !== r.input || t[21] !== r.maxLength || t[22] !== r.type ? (_ = r.input === "input" ? /* @__PURE__ */ y(We, { ...b, type: r.type, maxLength: r.maxLength }) : void 0, t[19] = b, t[20] = r.input, t[21] = r.maxLength, t[22] = r.type, t[23] = _) : _ = t[23];
|
|
105
105
|
let v;
|
|
106
|
-
t[
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
t[24] !== r.maxLength || t[25] !== c ? (v = r.maxLength != null && /* @__PURE__ */ y("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ A(Ae, { variant: "caption", children: [
|
|
107
|
+
c.length,
|
|
108
|
+
"/",
|
|
109
|
+
r.maxLength
|
|
110
|
+
] }) }), t[24] = r.maxLength, t[25] = c, t[26] = v) : v = t[26];
|
|
110
111
|
let k;
|
|
111
|
-
t[
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
t[27] !== v || t[28] !== C || t[29] !== _ ? (k = /* @__PURE__ */ A(W.Body, { children: [
|
|
113
|
+
C,
|
|
114
|
+
_,
|
|
115
|
+
v
|
|
116
|
+
] }), t[27] = v, t[28] = C, t[29] = _, t[30] = k) : k = t[30];
|
|
115
117
|
let M;
|
|
116
|
-
t[31] !==
|
|
118
|
+
t[31] !== n.cancel || t[32] !== u ? (M = /* @__PURE__ */ y(ie, { variant: "outlined", color: "secondary", onClick: u, className: "flex-grow-1", children: n.cancel }), t[31] = n.cancel, t[32] = u, t[33] = M) : M = t[33];
|
|
119
|
+
const I = r.required && !c;
|
|
120
|
+
let $;
|
|
121
|
+
t[34] !== n.confirm || t[35] !== I ? ($ = /* @__PURE__ */ y(ie, { color: "primary", disabled: I, type: "submit", className: "flex-grow-1", children: n.confirm }), t[34] = n.confirm, t[35] = I, t[36] = $) : $ = t[36];
|
|
122
|
+
let P;
|
|
123
|
+
t[37] !== M || t[38] !== $ ? (P = /* @__PURE__ */ A(W.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
124
|
+
M,
|
|
125
|
+
$
|
|
126
|
+
] }), t[37] = M, t[38] = $, t[39] = P) : P = t[39];
|
|
127
|
+
let N;
|
|
128
|
+
t[40] !== f || t[41] !== k || t[42] !== P ? (N = /* @__PURE__ */ A("form", { onSubmit: f, onKeyDown: St, children: [
|
|
117
129
|
k,
|
|
118
130
|
P
|
|
119
|
-
] }), t[
|
|
120
|
-
let
|
|
121
|
-
t[
|
|
122
|
-
v,
|
|
123
|
-
M
|
|
124
|
-
] }), t[34] = f, t[35] = v, t[36] = M, t[37] = x) : x = t[37];
|
|
125
|
-
let O;
|
|
126
|
-
return t[38] !== s || t[39] !== u || t[40] !== x || t[41] !== p ? (O = /* @__PURE__ */ R(H, { show: s, size: "sm", centered: !0, onHide: u, children: [
|
|
131
|
+
] }), t[40] = f, t[41] = k, t[42] = P, t[43] = N) : N = t[43];
|
|
132
|
+
let U;
|
|
133
|
+
return t[44] !== s || t[45] !== u || t[46] !== N || t[47] !== p ? (U = /* @__PURE__ */ A(W, { show: s, size: "sm", centered: !0, onHide: u, children: [
|
|
127
134
|
p,
|
|
128
|
-
|
|
129
|
-
] }), t[
|
|
135
|
+
N
|
|
136
|
+
] }), t[44] = s, t[45] = u, t[46] = N, t[47] = p, t[48] = U) : U = t[48], U;
|
|
130
137
|
};
|
|
131
138
|
function St(t) {
|
|
132
139
|
return t.stopPropagation();
|
|
133
140
|
}
|
|
134
141
|
const bt = (t) => {
|
|
135
|
-
const e =
|
|
142
|
+
const e = H.c(11), {
|
|
136
143
|
children: n
|
|
137
|
-
} = t, [s, o] =
|
|
144
|
+
} = t, [s, o] = D(!1), [i, r] = D("");
|
|
138
145
|
let c;
|
|
139
146
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
140
147
|
input: "textarea",
|
|
141
148
|
type: "text"
|
|
142
149
|
}, e[0] = c) : c = e[0];
|
|
143
|
-
const [a, h] =
|
|
150
|
+
const [a, h] = D(c), u = Y(Ct);
|
|
144
151
|
let m;
|
|
145
152
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = (C) => {
|
|
146
153
|
r(C), o(!0);
|
|
@@ -165,7 +172,7 @@ const bt = (t) => {
|
|
|
165
172
|
let S;
|
|
166
173
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(wt, {}), e[7] = S) : S = e[7];
|
|
167
174
|
let p;
|
|
168
|
-
return e[8] !== n || e[9] !== d ? (p = /* @__PURE__ */
|
|
175
|
+
return e[8] !== n || e[9] !== d ? (p = /* @__PURE__ */ A(Le.Provider, { value: d, children: [
|
|
169
176
|
n,
|
|
170
177
|
S
|
|
171
178
|
] }), e[8] = n, e[9] = d, e[10] = p) : p = e[10], p;
|
|
@@ -173,7 +180,7 @@ const bt = (t) => {
|
|
|
173
180
|
function Ct() {
|
|
174
181
|
}
|
|
175
182
|
const on = (t) => {
|
|
176
|
-
const e =
|
|
183
|
+
const e = H.c(14), {
|
|
177
184
|
cookieDomain: n,
|
|
178
185
|
axiosOptions: s,
|
|
179
186
|
language: o,
|
|
@@ -195,21 +202,21 @@ const on = (t) => {
|
|
|
195
202
|
}, 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
203
|
const m = u;
|
|
197
204
|
let f;
|
|
198
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(
|
|
205
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(je, {}), e[8] = f) : f = e[8];
|
|
199
206
|
let g;
|
|
200
|
-
e[9] !== h ? (g = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */
|
|
207
|
+
e[9] !== h ? (g = /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ A(bt, { children: [
|
|
201
208
|
f,
|
|
202
209
|
h
|
|
203
210
|
] }) }), e[9] = h, e[10] = g) : g = e[10];
|
|
204
211
|
let w;
|
|
205
212
|
return e[11] !== m || e[12] !== g ? (w = /* @__PURE__ */ y(ae.Provider, { value: m, children: g }), e[11] = m, e[12] = g, e[13] = w) : w = e[13], w;
|
|
206
213
|
}, sn = (t) => {
|
|
207
|
-
const e =
|
|
214
|
+
const e = H.c(15), {
|
|
208
215
|
children: n
|
|
209
|
-
} = t, [s, o] =
|
|
216
|
+
} = t, [s, o] = D(!1);
|
|
210
217
|
let i;
|
|
211
218
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Set(), e[0] = i) : i = e[0];
|
|
212
|
-
const [r] =
|
|
219
|
+
const [r] = D(i);
|
|
213
220
|
let c;
|
|
214
221
|
e[1] !== r ? (c = (b) => {
|
|
215
222
|
r.add(b), o(!0);
|
|
@@ -230,41 +237,41 @@ const on = (t) => {
|
|
|
230
237
|
let g;
|
|
231
238
|
e[9] !== s ? (g = s && /* @__PURE__ */ y(lt, {}), e[9] = s, e[10] = g) : g = e[10];
|
|
232
239
|
let w;
|
|
233
|
-
return e[11] !== n || e[12] !== f || e[13] !== g ? (w = /* @__PURE__ */
|
|
240
|
+
return e[11] !== n || e[12] !== f || e[13] !== g ? (w = /* @__PURE__ */ A(Fe.Provider, { value: f, children: [
|
|
234
241
|
g,
|
|
235
242
|
n
|
|
236
243
|
] }), e[11] = n, e[12] = f, e[13] = g, e[14] = w) : w = e[14], w;
|
|
237
244
|
}, rn = (t) => {
|
|
238
|
-
const e =
|
|
245
|
+
const e = H.c(39), {
|
|
239
246
|
children: n
|
|
240
|
-
} = t, s =
|
|
247
|
+
} = t, s = Be(), {
|
|
241
248
|
msalInstance: o,
|
|
242
249
|
getToken: i
|
|
243
|
-
} =
|
|
250
|
+
} = G(pe), {
|
|
244
251
|
delegation: r,
|
|
245
252
|
setDelegation: c,
|
|
246
253
|
setAvailableDelegations: a,
|
|
247
254
|
refreshAvailableDelegations: h
|
|
248
|
-
} =
|
|
255
|
+
} = G(De), [u, m] = D(null);
|
|
249
256
|
let f;
|
|
250
257
|
e[0] !== i ? (f = async () => {
|
|
251
|
-
const
|
|
252
|
-
|
|
258
|
+
const x = await i();
|
|
259
|
+
x && m(x.token);
|
|
253
260
|
}, e[0] = i, e[1] = f) : f = e[1];
|
|
254
261
|
const g = f;
|
|
255
262
|
let w, b;
|
|
256
263
|
e[2] !== g ? (w = () => {
|
|
257
264
|
g();
|
|
258
|
-
}, b = [g], e[2] = g, e[3] = w, e[4] = b) : (w = e[3], b = e[4]),
|
|
265
|
+
}, b = [g], e[2] = g, e[3] = w, e[4] = b) : (w = e[3], b = e[4]), z(w, b);
|
|
259
266
|
let d;
|
|
260
267
|
if (e[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
261
268
|
e: {
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
269
|
+
const x = localStorage.getItem("user") ?? null;
|
|
270
|
+
if (!x) {
|
|
264
271
|
d = null;
|
|
265
272
|
break e;
|
|
266
273
|
}
|
|
267
|
-
d = JSON.parse(
|
|
274
|
+
d = JSON.parse(x ?? "");
|
|
268
275
|
}
|
|
269
276
|
e[5] = d;
|
|
270
277
|
} else
|
|
@@ -272,100 +279,100 @@ const on = (t) => {
|
|
|
272
279
|
const S = d;
|
|
273
280
|
let p;
|
|
274
281
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
275
|
-
state: S ?
|
|
282
|
+
state: S ? Q.LOGGED_IN : Q.LOGGED_OUT,
|
|
276
283
|
user: S
|
|
277
284
|
}, e[6] = p) : p = e[6];
|
|
278
|
-
const [C, _] =
|
|
285
|
+
const [C, _] = D(p);
|
|
279
286
|
let v;
|
|
280
|
-
e[7] !== s ? (v = async (
|
|
281
|
-
let
|
|
282
|
-
return await s.get("/user/detail",
|
|
287
|
+
e[7] !== s ? (v = async (x) => {
|
|
288
|
+
let O = null;
|
|
289
|
+
return await s.get("/user/detail", x ? {
|
|
283
290
|
headers: {
|
|
284
|
-
Authorization: `Bearer ${
|
|
291
|
+
Authorization: `Bearer ${x}`
|
|
285
292
|
}
|
|
286
293
|
} : void 0).then((de) => {
|
|
287
|
-
|
|
294
|
+
O = de.data;
|
|
288
295
|
}).catch(() => {
|
|
289
|
-
|
|
290
|
-
}),
|
|
296
|
+
O = null;
|
|
297
|
+
}), O;
|
|
291
298
|
}, e[7] = s, e[8] = v) : v = e[8];
|
|
292
299
|
const k = v;
|
|
293
|
-
let
|
|
294
|
-
e[9] !== a || e[10] !== c ? (
|
|
300
|
+
let M;
|
|
301
|
+
e[9] !== a || e[10] !== c ? (M = () => {
|
|
295
302
|
localStorage.removeItem("user"), _({
|
|
296
|
-
state:
|
|
303
|
+
state: Q.LOGGED_OUT,
|
|
297
304
|
user: null
|
|
298
305
|
}), c(null), a(null);
|
|
299
|
-
}, e[9] = a, e[10] = c, e[11] =
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
e[12] !== k || e[13] !== h ? (
|
|
306
|
+
}, e[9] = a, e[10] = c, e[11] = M) : M = e[11];
|
|
307
|
+
const I = M;
|
|
308
|
+
let $;
|
|
309
|
+
e[12] !== k || e[13] !== h ? ($ = async (x) => {
|
|
303
310
|
_({
|
|
304
|
-
state:
|
|
311
|
+
state: Q.LOGGING_IN,
|
|
305
312
|
user: null
|
|
306
313
|
});
|
|
307
|
-
const
|
|
308
|
-
return
|
|
309
|
-
state:
|
|
310
|
-
user:
|
|
311
|
-
}), localStorage.setItem("user", JSON.stringify(
|
|
312
|
-
state:
|
|
314
|
+
const O = await k(x);
|
|
315
|
+
return O ? (_({
|
|
316
|
+
state: Q.LOGGED_IN,
|
|
317
|
+
user: O
|
|
318
|
+
}), localStorage.setItem("user", JSON.stringify(O)), await h(), !0) : (_({
|
|
319
|
+
state: Q.LOGIN_FAILED,
|
|
313
320
|
user: null
|
|
314
321
|
}), !1);
|
|
315
|
-
}, e[12] = k, e[13] = h, e[14] =
|
|
316
|
-
const
|
|
317
|
-
let
|
|
318
|
-
e[15] !== o ? (
|
|
322
|
+
}, e[12] = k, e[13] = h, e[14] = $) : $ = e[14];
|
|
323
|
+
const P = $;
|
|
324
|
+
let N;
|
|
325
|
+
e[15] !== o ? (N = () => {
|
|
319
326
|
if (o) {
|
|
320
|
-
const
|
|
321
|
-
if (
|
|
322
|
-
const de =
|
|
327
|
+
const x = o.addEventCallback((O) => {
|
|
328
|
+
if (O.eventType === ge.LOGIN_SUCCESS && O.payload) {
|
|
329
|
+
const de = O.payload;
|
|
323
330
|
m(de.accessToken);
|
|
324
331
|
}
|
|
325
332
|
});
|
|
326
333
|
return () => {
|
|
327
|
-
|
|
334
|
+
x && o.removeEventCallback(x);
|
|
328
335
|
};
|
|
329
336
|
}
|
|
330
337
|
return yt;
|
|
331
|
-
}, e[15] = o, e[16] =
|
|
332
|
-
let
|
|
333
|
-
e[17] !==
|
|
334
|
-
let
|
|
335
|
-
e[21] !==
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
}, e[15] = o, e[16] = N) : N = e[16];
|
|
339
|
+
let U;
|
|
340
|
+
e[17] !== P || e[18] !== I || e[19] !== o ? (U = [o, P, I], e[17] = P, e[18] = I, e[19] = o, e[20] = U) : U = e[20], z(N, U);
|
|
341
|
+
let F;
|
|
342
|
+
e[21] !== P || e[22] !== I || e[23] !== c ? (F = async (x) => {
|
|
343
|
+
x && await P(x).catch(() => {
|
|
344
|
+
I(), c(null);
|
|
338
345
|
});
|
|
339
|
-
}, e[21] =
|
|
340
|
-
const
|
|
346
|
+
}, e[21] = P, e[22] = I, e[23] = c, e[24] = F) : F = e[24];
|
|
347
|
+
const J = F;
|
|
341
348
|
let ee;
|
|
342
|
-
e[25] !== u || e[26] !==
|
|
343
|
-
|
|
344
|
-
}, e[25] = u, e[26] =
|
|
349
|
+
e[25] !== u || e[26] !== J ? (ee = () => {
|
|
350
|
+
J(u);
|
|
351
|
+
}, e[25] = u, e[26] = J, e[27] = ee) : ee = e[27];
|
|
345
352
|
const he = r == null ? void 0 : r.id;
|
|
346
353
|
let te;
|
|
347
|
-
e[28] !== u || e[29] !==
|
|
354
|
+
e[28] !== u || e[29] !== J || e[30] !== he ? (te = [u, he, J], e[28] = u, e[29] = J, e[30] = he, e[31] = te) : te = e[31], z(ee, te);
|
|
348
355
|
let ne;
|
|
349
|
-
e[32] !==
|
|
356
|
+
e[32] !== P || e[33] !== I || e[34] !== C ? (ne = {
|
|
350
357
|
user: C.user,
|
|
351
358
|
userLoginState: C,
|
|
352
|
-
loginUser:
|
|
353
|
-
logoutUser:
|
|
354
|
-
}, e[32] =
|
|
359
|
+
loginUser: P,
|
|
360
|
+
logoutUser: I
|
|
361
|
+
}, e[32] = P, e[33] = I, e[34] = C, e[35] = ne) : ne = e[35];
|
|
355
362
|
const ue = ne;
|
|
356
363
|
let oe;
|
|
357
|
-
return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(
|
|
364
|
+
return e[36] !== n || e[37] !== ue ? (oe = /* @__PURE__ */ y(ze.Provider, { value: ue, children: n }), e[36] = n, e[37] = ue, e[38] = oe) : oe = e[38], oe;
|
|
358
365
|
};
|
|
359
366
|
function yt() {
|
|
360
367
|
}
|
|
361
368
|
const vt = () => {
|
|
362
|
-
const t =
|
|
369
|
+
const t = H.c(2);
|
|
363
370
|
let e;
|
|
364
371
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
|
|
365
372
|
let n;
|
|
366
|
-
return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
373
|
+
return t[1] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ A("div", { children: [
|
|
367
374
|
e,
|
|
368
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ A("p", { children: [
|
|
369
376
|
"If you are not redirected within 10 seconds, please click",
|
|
370
377
|
" ",
|
|
371
378
|
/* @__PURE__ */ y("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
|
|
@@ -385,19 +392,19 @@ const vt = () => {
|
|
|
385
392
|
inProgress: e
|
|
386
393
|
} = at(), {
|
|
387
394
|
cookieDomain: n
|
|
388
|
-
} =
|
|
395
|
+
} = G(ae), [, s] = Ge(["Authorization"]), o = B(
|
|
389
396
|
() => t.useMsal ? t.msalInstance : null,
|
|
390
397
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
391
398
|
[t.useMsal, t.useMsal ? t.msalInstance : null]
|
|
392
|
-
), i =
|
|
399
|
+
), i = B(
|
|
393
400
|
() => t.useMsal ? t.msalScopes : [],
|
|
394
401
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
395
402
|
[t.useMsal, t.useMsal ? t.msalScopes : null]
|
|
396
|
-
), r =
|
|
403
|
+
), r = B(
|
|
397
404
|
() => t.useMsal ? t.msalExtraScopes : [],
|
|
398
405
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
399
406
|
[t.useMsal, t.useMsal ? t.msalExtraScopes : null]
|
|
400
|
-
), c =
|
|
407
|
+
), c = Y(null), a = Y(!1), h = q(() => {
|
|
401
408
|
const d = localStorage.getItem("token");
|
|
402
409
|
return d ? {
|
|
403
410
|
token: d,
|
|
@@ -455,10 +462,10 @@ const vt = () => {
|
|
|
455
462
|
}, [r, o, i, t.msalSilentRedirectUri, t.useMsal]), m = q(async () => t.useMsal ? u() : h(), [h, u, t.useMsal]), f = q((d) => t.useMsal ? () => {
|
|
456
463
|
} : (window.addEventListener("storage", d), window.addEventListener("dev-auth-change", d), () => {
|
|
457
464
|
window.removeEventListener("storage", d), window.removeEventListener("dev-auth-change", d);
|
|
458
|
-
}), [t.useMsal]), g = st(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), w =
|
|
465
|
+
}), [t.useMsal]), g = st(f, () => localStorage.getItem("token") !== null ? "AUTH_OK" : "NO_AUTH"), w = B(() => {
|
|
459
466
|
var d;
|
|
460
467
|
return t.useMsal ? e !== rt.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]), b =
|
|
468
|
+
}, [g, e, o, t.useMsal]), b = B(() => ({
|
|
462
469
|
useMsal: t.useMsal ?? !1,
|
|
463
470
|
msalInstance: o,
|
|
464
471
|
msalScopes: i,
|
|
@@ -466,7 +473,7 @@ const vt = () => {
|
|
|
466
473
|
getToken: m,
|
|
467
474
|
authState: w
|
|
468
475
|
}), [t.useMsal, o, i, r, m, w]);
|
|
469
|
-
return
|
|
476
|
+
return z(() => {
|
|
470
477
|
if (t.useMsal && o) {
|
|
471
478
|
const d = o.addEventCallback((S) => {
|
|
472
479
|
if (S.eventType === ge.LOGIN_SUCCESS || S.eventType === ge.ACQUIRE_TOKEN_SUCCESS && S.payload) {
|
|
@@ -491,7 +498,7 @@ const vt = () => {
|
|
|
491
498
|
};
|
|
492
499
|
}, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(vt, {}) : t.children });
|
|
493
500
|
}, cn = (t) => {
|
|
494
|
-
const e =
|
|
501
|
+
const e = H.c(9);
|
|
495
502
|
let n;
|
|
496
503
|
if (e[0] !== t ? ({
|
|
497
504
|
...n
|
|
@@ -504,7 +511,7 @@ const vt = () => {
|
|
|
504
511
|
let s;
|
|
505
512
|
return e[7] !== n ? (s = /* @__PURE__ */ y(ye, { ...n }), e[7] = n, e[8] = s) : s = e[8], s;
|
|
506
513
|
}, an = (t) => {
|
|
507
|
-
const e =
|
|
514
|
+
const e = H.c(18), {
|
|
508
515
|
children: n,
|
|
509
516
|
relativeEndpoint: s
|
|
510
517
|
} = t, [o, i, r] = ut("user-delegation", null);
|
|
@@ -534,7 +541,7 @@ const vt = () => {
|
|
|
534
541
|
data: u,
|
|
535
542
|
setData: m,
|
|
536
543
|
reloadData: f
|
|
537
|
-
} =
|
|
544
|
+
} = Xe(s, h), g = Y(null);
|
|
538
545
|
let w, b;
|
|
539
546
|
e[1] !== f ? (w = () => {
|
|
540
547
|
const v = () => {
|
|
@@ -543,7 +550,7 @@ const vt = () => {
|
|
|
543
550
|
return v(), () => {
|
|
544
551
|
g.current !== null && window.clearTimeout(g.current);
|
|
545
552
|
};
|
|
546
|
-
}, b = [f], e[1] = f, e[2] = w, e[3] = b) : (w = e[2], b = e[3]),
|
|
553
|
+
}, b = [f], e[1] = f, e[2] = w, e[3] = b) : (w = e[2], b = e[3]), z(w, b);
|
|
547
554
|
let d;
|
|
548
555
|
e[4] !== r ? (d = () => {
|
|
549
556
|
const v = () => {
|
|
@@ -554,7 +561,7 @@ const vt = () => {
|
|
|
554
561
|
};
|
|
555
562
|
}, e[4] = r, e[5] = d) : d = e[5];
|
|
556
563
|
let S;
|
|
557
|
-
e[6] !== r || e[7] !== f ? (S = [r, f], e[6] = r, e[7] = f, e[8] = S) : S = e[8],
|
|
564
|
+
e[6] !== r || e[7] !== f ? (S = [r, f], e[6] = r, e[7] = f, e[8] = S) : S = e[8], z(d, S);
|
|
558
565
|
let p;
|
|
559
566
|
e[9] !== u || e[10] !== f || e[11] !== m || e[12] !== i || e[13] !== a ? (p = {
|
|
560
567
|
delegation: a,
|
|
@@ -567,7 +574,7 @@ const vt = () => {
|
|
|
567
574
|
let _;
|
|
568
575
|
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], _;
|
|
569
576
|
}, ve = (t, e) => t ? `${t} | ${e}` : e, ln = (t) => {
|
|
570
|
-
const e =
|
|
577
|
+
const e = H.c(18), {
|
|
571
578
|
defaultHelmet: n,
|
|
572
579
|
children: s,
|
|
573
580
|
helmetPrefix: o
|
|
@@ -576,7 +583,7 @@ const vt = () => {
|
|
|
576
583
|
e[0] !== n || e[1] !== i ? (r = ve(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
|
|
577
584
|
let c;
|
|
578
585
|
e[3] !== r ? (c = [r], e[3] = r, e[4] = c) : c = e[4];
|
|
579
|
-
const [a, h] =
|
|
586
|
+
const [a, h] = D(c);
|
|
580
587
|
let u;
|
|
581
588
|
e[5] !== o ? (u = (_) => {
|
|
582
589
|
h((v) => [...v, ve(o ?? "", _)]);
|
|
@@ -599,7 +606,7 @@ const vt = () => {
|
|
|
599
606
|
let p;
|
|
600
607
|
e[12] !== b ? (p = /* @__PURE__ */ y("title", { children: b }), e[12] = b, e[13] = p) : p = e[13];
|
|
601
608
|
let C;
|
|
602
|
-
return e[14] !== s || e[15] !== S || e[16] !== p ? (C = /* @__PURE__ */
|
|
609
|
+
return e[14] !== s || e[15] !== S || e[16] !== p ? (C = /* @__PURE__ */ A(Ke.Provider, { value: S, children: [
|
|
603
610
|
p,
|
|
604
611
|
s
|
|
605
612
|
] }), e[14] = s, e[15] = S, e[16] = p, e[17] = C) : C = e[17], C;
|
|
@@ -607,7 +614,7 @@ const vt = () => {
|
|
|
607
614
|
function Tt(t) {
|
|
608
615
|
return t.length > 1 ? t.slice(0, -1) : t;
|
|
609
616
|
}
|
|
610
|
-
class
|
|
617
|
+
class Ne {
|
|
611
618
|
constructor(e, n, s) {
|
|
612
619
|
this.statusCode = e, this.statusText = n, this.content = s;
|
|
613
620
|
}
|
|
@@ -646,11 +653,11 @@ class le {
|
|
|
646
653
|
}
|
|
647
654
|
class Et extends le {
|
|
648
655
|
constructor(e) {
|
|
649
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
656
|
+
if (super(), this._logger = e, typeof fetch > "u" || R.isNode) {
|
|
650
657
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
651
658
|
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);
|
|
652
659
|
} else
|
|
653
|
-
this._fetchType = fetch.bind(
|
|
660
|
+
this._fetchType = fetch.bind(Je());
|
|
654
661
|
if (typeof AbortController > "u") {
|
|
655
662
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
656
663
|
this._abortControllerType = n("abort-controller");
|
|
@@ -660,7 +667,7 @@ class Et extends le {
|
|
|
660
667
|
/** @inheritDoc */
|
|
661
668
|
async send(e) {
|
|
662
669
|
if (e.abortSignal && e.abortSignal.aborted)
|
|
663
|
-
throw new
|
|
670
|
+
throw new j();
|
|
664
671
|
if (!e.method)
|
|
665
672
|
throw new Error("No method defined.");
|
|
666
673
|
if (!e.url)
|
|
@@ -668,7 +675,7 @@ class Et extends le {
|
|
|
668
675
|
const n = new this._abortControllerType();
|
|
669
676
|
let s;
|
|
670
677
|
e.abortSignal && (e.abortSignal.onabort = () => {
|
|
671
|
-
n.abort(), s = new
|
|
678
|
+
n.abort(), s = new j();
|
|
672
679
|
});
|
|
673
680
|
let o = null;
|
|
674
681
|
if (e.timeout) {
|
|
@@ -703,11 +710,11 @@ class Et extends le {
|
|
|
703
710
|
throw new V(a || i.statusText, i.status);
|
|
704
711
|
}
|
|
705
712
|
const c = await ke(i, e.responseType);
|
|
706
|
-
return new
|
|
713
|
+
return new Ne(i.status, i.statusText, c);
|
|
707
714
|
}
|
|
708
715
|
getCookieString(e) {
|
|
709
716
|
let n = "";
|
|
710
|
-
return
|
|
717
|
+
return R.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
|
|
711
718
|
}
|
|
712
719
|
}
|
|
713
720
|
function ke(t, e) {
|
|
@@ -735,16 +742,16 @@ class Pt extends le {
|
|
|
735
742
|
}
|
|
736
743
|
/** @inheritDoc */
|
|
737
744
|
send(e) {
|
|
738
|
-
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new
|
|
745
|
+
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new j()) : e.method ? e.url ? new Promise((n, s) => {
|
|
739
746
|
const o = new XMLHttpRequest();
|
|
740
747
|
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"));
|
|
741
748
|
const i = e.headers;
|
|
742
749
|
i && Object.keys(i).forEach((r) => {
|
|
743
750
|
o.setRequestHeader(r, i[r]);
|
|
744
751
|
}), e.responseType && (o.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
745
|
-
o.abort(), s(new
|
|
752
|
+
o.abort(), s(new j());
|
|
746
753
|
}), e.timeout && (o.timeout = e.timeout), o.onload = () => {
|
|
747
|
-
e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new
|
|
754
|
+
e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new Ne(o.status, o.statusText, o.response || o.responseText)) : s(new V(o.response || o.responseText || o.statusText, o.status));
|
|
748
755
|
}, o.onerror = () => {
|
|
749
756
|
this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new V(o.statusText, o.status));
|
|
750
757
|
}, o.ontimeout = () => {
|
|
@@ -756,7 +763,7 @@ class Pt extends le {
|
|
|
756
763
|
class xt extends le {
|
|
757
764
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
758
765
|
constructor(e) {
|
|
759
|
-
if (super(), typeof fetch < "u" ||
|
|
766
|
+
if (super(), typeof fetch < "u" || R.isNode)
|
|
760
767
|
this._httpClient = new Et(e);
|
|
761
768
|
else if (typeof XMLHttpRequest < "u")
|
|
762
769
|
this._httpClient = new Pt(e);
|
|
@@ -765,26 +772,26 @@ class xt extends le {
|
|
|
765
772
|
}
|
|
766
773
|
/** @inheritDoc */
|
|
767
774
|
send(e) {
|
|
768
|
-
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new
|
|
775
|
+
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new j()) : e.method ? e.url ? this._httpClient.send(e) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
769
776
|
}
|
|
770
777
|
getCookieString(e) {
|
|
771
778
|
return this._httpClient.getCookieString(e);
|
|
772
779
|
}
|
|
773
780
|
}
|
|
774
|
-
const
|
|
781
|
+
const Lt = [0, 2e3, 1e4, 3e4, null];
|
|
775
782
|
class Te {
|
|
776
783
|
constructor(e) {
|
|
777
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
784
|
+
this._retryDelays = e !== void 0 ? [...e, null] : Lt;
|
|
778
785
|
}
|
|
779
786
|
nextRetryDelayInMilliseconds(e) {
|
|
780
787
|
return this._retryDelays[e.previousRetryCount];
|
|
781
788
|
}
|
|
782
789
|
}
|
|
783
|
-
class
|
|
790
|
+
class K {
|
|
784
791
|
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
class
|
|
792
|
+
K.Authorization = "Authorization";
|
|
793
|
+
K.Cookie = "Cookie";
|
|
794
|
+
class At extends le {
|
|
788
795
|
constructor(e, n) {
|
|
789
796
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
790
797
|
}
|
|
@@ -795,7 +802,7 @@ class Dt extends le {
|
|
|
795
802
|
return n && s.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : s;
|
|
796
803
|
}
|
|
797
804
|
_setAuthorizationHeader(e) {
|
|
798
|
-
e.headers || (e.headers = {}), this._accessToken ? e.headers[
|
|
805
|
+
e.headers || (e.headers = {}), this._accessToken ? e.headers[K.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[K.Authorization] && delete e.headers[K.Authorization];
|
|
799
806
|
}
|
|
800
807
|
getCookieString(e) {
|
|
801
808
|
return this._innerClient.getCookieString(e);
|
|
@@ -805,11 +812,11 @@ var T;
|
|
|
805
812
|
(function(t) {
|
|
806
813
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
807
814
|
})(T || (T = {}));
|
|
808
|
-
var
|
|
815
|
+
var L;
|
|
809
816
|
(function(t) {
|
|
810
817
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
811
|
-
})(
|
|
812
|
-
let
|
|
818
|
+
})(L || (L = {}));
|
|
819
|
+
let Dt = class {
|
|
813
820
|
constructor() {
|
|
814
821
|
this._isAborted = !1, this.onabort = null;
|
|
815
822
|
}
|
|
@@ -829,18 +836,18 @@ class Ee {
|
|
|
829
836
|
return this._pollAbort.aborted;
|
|
830
837
|
}
|
|
831
838
|
constructor(e, n, s) {
|
|
832
|
-
this._httpClient = e, this._logger = n, this._pollAbort = new
|
|
839
|
+
this._httpClient = e, this._logger = n, this._pollAbort = new Dt(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
833
840
|
}
|
|
834
841
|
async connect(e, n) {
|
|
835
|
-
if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n,
|
|
842
|
+
if (E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, L, "transferFormat"), this._url = e, this._logger.log(l.Trace, "(LongPolling transport) Connecting."), n === L.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
836
843
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
837
|
-
const [s, o] =
|
|
844
|
+
const [s, o] = Z(), i = { [s]: o, ...this._options.headers }, r = {
|
|
838
845
|
abortSignal: this._pollAbort.signal,
|
|
839
846
|
headers: i,
|
|
840
847
|
timeout: 1e5,
|
|
841
848
|
withCredentials: this._options.withCredentials
|
|
842
849
|
};
|
|
843
|
-
n ===
|
|
850
|
+
n === L.Binary && (r.responseType = "arraybuffer");
|
|
844
851
|
const c = `${e}&_=${Date.now()}`;
|
|
845
852
|
this._logger.log(l.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
846
853
|
const a = await this._httpClient.get(c, r);
|
|
@@ -862,13 +869,13 @@ class Ee {
|
|
|
862
869
|
}
|
|
863
870
|
}
|
|
864
871
|
async send(e) {
|
|
865
|
-
return this._running ?
|
|
872
|
+
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"));
|
|
866
873
|
}
|
|
867
874
|
async stop() {
|
|
868
875
|
this._logger.log(l.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
|
|
869
876
|
try {
|
|
870
877
|
await this._receiving, this._logger.log(l.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
|
|
871
|
-
const e = {}, [n, s] =
|
|
878
|
+
const e = {}, [n, s] = Z();
|
|
872
879
|
e[n] = s;
|
|
873
880
|
const o = {
|
|
874
881
|
headers: { ...e, ...this._options.headers },
|
|
@@ -893,24 +900,24 @@ class Ee {
|
|
|
893
900
|
}
|
|
894
901
|
}
|
|
895
902
|
}
|
|
896
|
-
class
|
|
903
|
+
class It {
|
|
897
904
|
constructor(e, n, s, o) {
|
|
898
905
|
this._httpClient = e, this._accessToken = n, this._logger = s, this._options = o, this.onreceive = null, this.onclose = null;
|
|
899
906
|
}
|
|
900
907
|
async connect(e, n) {
|
|
901
|
-
return E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n,
|
|
908
|
+
return E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, L, "transferFormat"), this._logger.log(l.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((s, o) => {
|
|
902
909
|
let i = !1;
|
|
903
|
-
if (n !==
|
|
910
|
+
if (n !== L.Text) {
|
|
904
911
|
o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
905
912
|
return;
|
|
906
913
|
}
|
|
907
914
|
let r;
|
|
908
|
-
if (
|
|
915
|
+
if (R.isBrowser || R.isWebWorker)
|
|
909
916
|
r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
910
917
|
else {
|
|
911
918
|
const c = this._httpClient.getCookieString(e), a = {};
|
|
912
919
|
a.Cookie = c;
|
|
913
|
-
const [h, u] =
|
|
920
|
+
const [h, u] = Z();
|
|
914
921
|
a[h] = u, r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...a, ...this._options.headers } });
|
|
915
922
|
}
|
|
916
923
|
try {
|
|
@@ -934,7 +941,7 @@ class Lt {
|
|
|
934
941
|
});
|
|
935
942
|
}
|
|
936
943
|
async send(e) {
|
|
937
|
-
return this._eventSource ?
|
|
944
|
+
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"));
|
|
938
945
|
}
|
|
939
946
|
stop() {
|
|
940
947
|
return this._close(), Promise.resolve();
|
|
@@ -948,21 +955,21 @@ class Rt {
|
|
|
948
955
|
this._logger = s, this._accessTokenFactory = n, this._logMessageContent = o, this._webSocketConstructor = i, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = r;
|
|
949
956
|
}
|
|
950
957
|
async connect(e, n) {
|
|
951
|
-
E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n,
|
|
958
|
+
E.isRequired(e, "url"), E.isRequired(n, "transferFormat"), E.isIn(n, L, "transferFormat"), this._logger.log(l.Trace, "(WebSockets transport) Connecting.");
|
|
952
959
|
let s;
|
|
953
960
|
return this._accessTokenFactory && (s = await this._accessTokenFactory()), new Promise((o, i) => {
|
|
954
961
|
e = e.replace(/^http/, "ws");
|
|
955
962
|
let r;
|
|
956
963
|
const c = this._httpClient.getCookieString(e);
|
|
957
964
|
let a = !1;
|
|
958
|
-
if (
|
|
959
|
-
const h = {}, [u, m] =
|
|
960
|
-
h[u] = m, s && (h[
|
|
965
|
+
if (R.isNode || R.isReactNative) {
|
|
966
|
+
const h = {}, [u, m] = Z();
|
|
967
|
+
h[u] = m, s && (h[K.Authorization] = `Bearer ${s}`), c && (h[K.Cookie] = c), r = new this._webSocketConstructor(e, void 0, {
|
|
961
968
|
headers: { ...h, ...this._headers }
|
|
962
969
|
});
|
|
963
970
|
} else
|
|
964
971
|
s && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(s)}`);
|
|
965
|
-
r || (r = new this._webSocketConstructor(e)), n ===
|
|
972
|
+
r || (r = new this._webSocketConstructor(e)), n === L.Binary && (r.binaryType = "arraybuffer"), r.onopen = (h) => {
|
|
966
973
|
this._logger.log(l.Information, `WebSocket connected to ${e}.`), this._webSocket = r, a = !0, o();
|
|
967
974
|
}, r.onerror = (h) => {
|
|
968
975
|
let u = null;
|
|
@@ -1005,27 +1012,27 @@ const Pe = 100;
|
|
|
1005
1012
|
class Mt {
|
|
1006
1013
|
constructor(e, n = {}) {
|
|
1007
1014
|
if (this._stopPromiseResolver = () => {
|
|
1008
|
-
}, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger =
|
|
1015
|
+
}, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger = Qe(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)
|
|
1009
1016
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
1010
1017
|
else
|
|
1011
1018
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
1012
1019
|
n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
|
|
1013
1020
|
let s = null, o = null;
|
|
1014
|
-
if (
|
|
1021
|
+
if (R.isNode && typeof require < "u") {
|
|
1015
1022
|
const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
1016
1023
|
s = i("ws"), o = i("eventsource");
|
|
1017
1024
|
}
|
|
1018
|
-
!
|
|
1025
|
+
!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 At(n.httpClient || new xt(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
1019
1026
|
}
|
|
1020
1027
|
async start(e) {
|
|
1021
|
-
if (e = e ||
|
|
1028
|
+
if (e = e || L.Binary, E.isIn(e, L, "transferFormat"), this._logger.log(l.Debug, `Starting connection with transfer format '${L[e]}'.`), this._connectionState !== "Disconnected")
|
|
1022
1029
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
1023
1030
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
1024
1031
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
1025
|
-
return this._logger.log(l.Error, n), await this._stopPromise, Promise.reject(new
|
|
1032
|
+
return this._logger.log(l.Error, n), await this._stopPromise, Promise.reject(new j(n));
|
|
1026
1033
|
} else if (this._connectionState !== "Connected") {
|
|
1027
1034
|
const n = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
|
|
1028
|
-
return this._logger.log(l.Error, n), Promise.reject(new
|
|
1035
|
+
return this._logger.log(l.Error, n), Promise.reject(new j(n));
|
|
1029
1036
|
}
|
|
1030
1037
|
this._connectionStarted = !0;
|
|
1031
1038
|
}
|
|
@@ -1070,7 +1077,7 @@ class Mt {
|
|
|
1070
1077
|
let s = null, o = 0;
|
|
1071
1078
|
do {
|
|
1072
1079
|
if (s = await this._getNegotiationResponse(n), this._connectionState === "Disconnecting" || this._connectionState === "Disconnected")
|
|
1073
|
-
throw new
|
|
1080
|
+
throw new j("The connection was stopped during negotiation.");
|
|
1074
1081
|
if (s.error)
|
|
1075
1082
|
throw new Error(s.error);
|
|
1076
1083
|
if (s.ProtocolVersion)
|
|
@@ -1091,7 +1098,7 @@ class Mt {
|
|
|
1091
1098
|
}
|
|
1092
1099
|
}
|
|
1093
1100
|
async _getNegotiationResponse(e) {
|
|
1094
|
-
const n = {}, [s, o] =
|
|
1101
|
+
const n = {}, [s, o] = Z();
|
|
1095
1102
|
n[s] = o;
|
|
1096
1103
|
const i = this._resolveNegotiateUrl(e);
|
|
1097
1104
|
this._logger.log(l.Debug, `Sending negotiation request: ${i}.`);
|
|
@@ -1139,9 +1146,9 @@ class Mt {
|
|
|
1139
1146
|
await this._startTransport(i, o), this.connectionId = a.connectionId;
|
|
1140
1147
|
return;
|
|
1141
1148
|
} catch (m) {
|
|
1142
|
-
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${m}`), a = void 0, r.push(new
|
|
1149
|
+
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${m}`), a = void 0, r.push(new Ye(`${h.transport} failed: ${m}`, T[h.transport])), this._connectionState !== "Connecting") {
|
|
1143
1150
|
const f = "Failed to select transport before stop() was called.";
|
|
1144
|
-
return this._logger.log(l.Debug, f), Promise.reject(new
|
|
1151
|
+
return this._logger.log(l.Debug, f), Promise.reject(new j(f));
|
|
1145
1152
|
}
|
|
1146
1153
|
}
|
|
1147
1154
|
}
|
|
@@ -1157,7 +1164,7 @@ class Mt {
|
|
|
1157
1164
|
case T.ServerSentEvents:
|
|
1158
1165
|
if (!this._options.EventSource)
|
|
1159
1166
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
1160
|
-
return new
|
|
1167
|
+
return new It(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
1161
1168
|
case T.LongPolling:
|
|
1162
1169
|
return new Ee(this._httpClient, this._logger, this._options);
|
|
1163
1170
|
default:
|
|
@@ -1185,9 +1192,9 @@ class Mt {
|
|
|
1185
1192
|
if (i == null)
|
|
1186
1193
|
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.`);
|
|
1187
1194
|
if ($t(n, i))
|
|
1188
|
-
if (e.transferFormats.map((c) =>
|
|
1195
|
+
if (e.transferFormats.map((c) => L[c]).indexOf(s) >= 0) {
|
|
1189
1196
|
if (i === T.WebSockets && !this._options.WebSocket || i === T.ServerSentEvents && !this._options.EventSource)
|
|
1190
|
-
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new
|
|
1197
|
+
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it is not supported in your environment.'`), new Ze(`'${T[i]}' is not supported in your environment.`, i);
|
|
1191
1198
|
this._logger.log(l.Debug, `Selecting transport '${T[i]}'.`);
|
|
1192
1199
|
try {
|
|
1193
1200
|
return this.features.reconnect = i === T.WebSockets ? o : void 0, this._constructTransport(i);
|
|
@@ -1195,9 +1202,9 @@ class Mt {
|
|
|
1195
1202
|
return c;
|
|
1196
1203
|
}
|
|
1197
1204
|
} else
|
|
1198
|
-
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it does not support the requested transfer format '${
|
|
1205
|
+
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it does not support the requested transfer format '${L[s]}'.`), new Error(`'${T[i]}' does not support ${L[s]}.`);
|
|
1199
1206
|
else
|
|
1200
|
-
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new
|
|
1207
|
+
return this._logger.log(l.Debug, `Skipping transport '${T[i]}' because it was disabled by the client.`), new et(`'${T[i]}' is disabled by the client.`, i);
|
|
1201
1208
|
}
|
|
1202
1209
|
_isITransport(e) {
|
|
1203
1210
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -1223,7 +1230,7 @@ class Mt {
|
|
|
1223
1230
|
_resolveUrl(e) {
|
|
1224
1231
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
1225
1232
|
return e;
|
|
1226
|
-
if (!
|
|
1233
|
+
if (!R.isBrowser)
|
|
1227
1234
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
1228
1235
|
const n = window.document.createElement("a");
|
|
1229
1236
|
return n.href = e, this._logger.log(l.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
|
|
@@ -1293,7 +1300,7 @@ class se {
|
|
|
1293
1300
|
const Nt = "json";
|
|
1294
1301
|
class Ot {
|
|
1295
1302
|
constructor() {
|
|
1296
|
-
this.name = Nt, this.version = 2, this.transferFormat =
|
|
1303
|
+
this.name = Nt, this.version = 2, this.transferFormat = L.Text;
|
|
1297
1304
|
}
|
|
1298
1305
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
1299
1306
|
*
|
|
@@ -1305,30 +1312,30 @@ class Ot {
|
|
|
1305
1312
|
throw new Error("Invalid input for JSON hub protocol. Expected a string.");
|
|
1306
1313
|
if (!e)
|
|
1307
1314
|
return [];
|
|
1308
|
-
n === null && (n =
|
|
1315
|
+
n === null && (n = Me.instance);
|
|
1309
1316
|
const s = be.parse(e), o = [];
|
|
1310
1317
|
for (const i of s) {
|
|
1311
1318
|
const r = JSON.parse(i);
|
|
1312
1319
|
if (typeof r.type != "number")
|
|
1313
1320
|
throw new Error("Invalid payload.");
|
|
1314
1321
|
switch (r.type) {
|
|
1315
|
-
case
|
|
1322
|
+
case X.Invocation:
|
|
1316
1323
|
this._isInvocationMessage(r);
|
|
1317
1324
|
break;
|
|
1318
|
-
case
|
|
1325
|
+
case X.StreamItem:
|
|
1319
1326
|
this._isStreamItemMessage(r);
|
|
1320
1327
|
break;
|
|
1321
|
-
case
|
|
1328
|
+
case X.Completion:
|
|
1322
1329
|
this._isCompletionMessage(r);
|
|
1323
1330
|
break;
|
|
1324
|
-
case
|
|
1331
|
+
case X.Ping:
|
|
1325
1332
|
break;
|
|
1326
|
-
case
|
|
1333
|
+
case X.Close:
|
|
1327
1334
|
break;
|
|
1328
|
-
case
|
|
1335
|
+
case X.Ack:
|
|
1329
1336
|
this._isAckMessage(r);
|
|
1330
1337
|
break;
|
|
1331
|
-
case
|
|
1338
|
+
case X.Sequence:
|
|
1332
1339
|
this._isSequenceMessage(r);
|
|
1333
1340
|
break;
|
|
1334
1341
|
default:
|
|
@@ -1448,7 +1455,7 @@ class Wt {
|
|
|
1448
1455
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
1449
1456
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
1450
1457
|
const n = new Mt(this.url, e);
|
|
1451
|
-
return
|
|
1458
|
+
return tt.create(n, this.logger || Me.instance, this.protocol || new Ot(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
1452
1459
|
}
|
|
1453
1460
|
}
|
|
1454
1461
|
function jt(t) {
|
|
@@ -1462,13 +1469,13 @@ const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
|
1462
1469
|
const {
|
|
1463
1470
|
authState: s,
|
|
1464
1471
|
getToken: o
|
|
1465
|
-
} =
|
|
1472
|
+
} = G(pe), i = dt(), [r, c] = D(fe.Disconnected), [a, h] = D(!1), u = Y(null), m = Y(o);
|
|
1466
1473
|
m.current = o;
|
|
1467
1474
|
const f = q(() => {
|
|
1468
1475
|
var d;
|
|
1469
1476
|
return c(((d = u.current) == null ? void 0 : d.state) ?? fe.Disconnected);
|
|
1470
1477
|
}, []);
|
|
1471
|
-
|
|
1478
|
+
z(() => {
|
|
1472
1479
|
if (s !== "AUTH_OK" || !i)
|
|
1473
1480
|
return;
|
|
1474
1481
|
let d = !1, S = null;
|
|
@@ -1505,22 +1512,22 @@ const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
|
1505
1512
|
});
|
|
1506
1513
|
};
|
|
1507
1514
|
}, [e, s, n, f, i]);
|
|
1508
|
-
const g =
|
|
1515
|
+
const g = B(() => r === fe.Connected, [r]), w = B(() => s === "AUTH_OK", [s]), b = B(() => ({
|
|
1509
1516
|
isAlive: g,
|
|
1510
1517
|
shouldBeAlive: w,
|
|
1511
1518
|
connectionState: r,
|
|
1512
1519
|
hasLastConnectionEnded: a
|
|
1513
1520
|
}), [g, w, r, a]);
|
|
1514
|
-
return /* @__PURE__ */ y(
|
|
1521
|
+
return /* @__PURE__ */ y($e.Provider, { value: b, children: t });
|
|
1515
1522
|
}, dn = () => {
|
|
1516
|
-
const t =
|
|
1523
|
+
const t = G($e);
|
|
1517
1524
|
if (!t)
|
|
1518
1525
|
throw new Error("useApiWebSocket must be used within a ApiWebSocketProvider");
|
|
1519
1526
|
return t;
|
|
1520
1527
|
}, xe = 50, zt = () => {
|
|
1521
|
-
const t =
|
|
1528
|
+
const t = H.c(22), {
|
|
1522
1529
|
texts: e
|
|
1523
|
-
} =
|
|
1530
|
+
} = G(ae), {
|
|
1524
1531
|
confirm: n
|
|
1525
1532
|
} = e, {
|
|
1526
1533
|
onConfirm: s,
|
|
@@ -1528,7 +1535,7 @@ const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
|
1528
1535
|
text: i,
|
|
1529
1536
|
show: r,
|
|
1530
1537
|
textSm: c
|
|
1531
|
-
} =
|
|
1538
|
+
} = nt(), a = c === void 0 ? i.length > xe : c, h = i.length > xe;
|
|
1532
1539
|
let u;
|
|
1533
1540
|
t[0] !== o || t[1] !== s || t[2] !== r ? (u = (p) => {
|
|
1534
1541
|
if (r)
|
|
@@ -1542,27 +1549,27 @@ const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
|
1542
1549
|
break e;
|
|
1543
1550
|
}
|
|
1544
1551
|
}
|
|
1545
|
-
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3],
|
|
1552
|
+
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], ot(u);
|
|
1546
1553
|
const f = h ? void 0 : "sm";
|
|
1547
1554
|
let g;
|
|
1548
|
-
t[4] !== a || t[5] !== i ? (g = /* @__PURE__ */ y(
|
|
1555
|
+
t[4] !== a || t[5] !== i ? (g = /* @__PURE__ */ y(W.Header, { className: "justify-content-center", children: a ? /* @__PURE__ */ y(Ae, { variant: "body", children: i }) : /* @__PURE__ */ y(W.Title, { children: i }) }), t[4] = a, t[5] = i, t[6] = g) : g = t[6];
|
|
1549
1556
|
let w;
|
|
1550
1557
|
t[7] !== n.no || t[8] !== o ? (w = /* @__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] = w) : w = t[9];
|
|
1551
1558
|
let b;
|
|
1552
1559
|
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];
|
|
1553
1560
|
let d;
|
|
1554
|
-
t[13] !== w || t[14] !== b ? (d = /* @__PURE__ */ y(
|
|
1561
|
+
t[13] !== w || t[14] !== b ? (d = /* @__PURE__ */ y(W.Body, { children: /* @__PURE__ */ A("div", { className: "w-100 d-flex gap-5", children: [
|
|
1555
1562
|
w,
|
|
1556
1563
|
b
|
|
1557
1564
|
] }) }), t[13] = w, t[14] = b, t[15] = d) : d = t[15];
|
|
1558
1565
|
let S;
|
|
1559
|
-
return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== g || t[20] !== d ? (S = /* @__PURE__ */
|
|
1566
|
+
return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !== g || t[20] !== d ? (S = /* @__PURE__ */ A(W, { show: r, size: f, centered: !0, onHide: o, children: [
|
|
1560
1567
|
g,
|
|
1561
1568
|
d
|
|
1562
1569
|
] }), t[16] = o, t[17] = r, t[18] = f, t[19] = g, t[20] = d, t[21] = S) : S = t[21], S;
|
|
1563
1570
|
};
|
|
1564
1571
|
export {
|
|
1565
|
-
|
|
1572
|
+
$e as ApiWebSocketContext,
|
|
1566
1573
|
un as ApiWebSocketProvider,
|
|
1567
1574
|
pe as AuthContext,
|
|
1568
1575
|
cn as AuthProvider,
|
|
@@ -1570,13 +1577,13 @@ export {
|
|
|
1570
1577
|
an as DelegationProvider,
|
|
1571
1578
|
pn as FormDisabledContext,
|
|
1572
1579
|
wn as FormDisabledProvider,
|
|
1573
|
-
|
|
1580
|
+
Ke as HelmetContext,
|
|
1574
1581
|
ln as HelmetProvider,
|
|
1575
|
-
|
|
1582
|
+
Fe as LoadingContext,
|
|
1576
1583
|
sn as LoadingProvider,
|
|
1577
1584
|
ae as LuminusComponentsContext,
|
|
1578
1585
|
on as LuminusComponentsProvider,
|
|
1579
|
-
|
|
1586
|
+
ze as UserContext,
|
|
1580
1587
|
rn as UserProvider,
|
|
1581
1588
|
dn as useApiWebSocketContext,
|
|
1582
1589
|
_n as useFormDisabledContext
|