react-luminus-components 2.0.34 → 2.1.0
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 +36 -36
- package/dist/{FormDisabledProvider-CknAF8EI.js → FormDisabledProvider-CixhRdLK.js} +1 -1
- package/dist/{FormDisabledProvider-DoGy2C4j.cjs → FormDisabledProvider-DT0dU-kQ.cjs} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +247 -238
- package/dist/hooks/useAxios/useAxios.d.ts +3 -5
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +49 -51
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +5 -5
- package/dist/{nivo-bar-wBsr2P1t.js → nivo-bar-BkbzRnZi.js} +240 -248
- package/dist/{nivo-bar-BkpPCncR.cjs → nivo-bar-CFkvCosn.cjs} +4 -4
- package/dist/{useIsFormDirty-Cb4GEBID.cjs → useIsFormDirty-C2-K6Xed.cjs} +1 -1
- package/dist/{useIsFormDirty-CTuj9_Nd.js → useIsFormDirty-DZBIvp4X.js} +1 -1
- package/dist/useLocalStorageState-B1kFYGzD.js +91 -0
- package/dist/useLocalStorageState-E2HAjd0z.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
- package/dist/useLocalStorageState-DBd2vOH1.js +0 -95
- package/dist/useLocalStorageState-gKbms6va.cjs +0 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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-BkbzRnZi.js";
|
|
2
|
+
import { ck as pn, ah as _n } from "./nivo-bar-BkbzRnZi.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
|
-
import { L as at, b as lt } from "./FormDisabledProvider-
|
|
12
|
-
import { F as
|
|
13
|
-
import { a as ht, u as ut } from "./useLocalStorageState-
|
|
11
|
+
import { L as at, b as lt } from "./FormDisabledProvider-CixhRdLK.js";
|
|
12
|
+
import { F as wn } from "./FormDisabledProvider-CixhRdLK.js";
|
|
13
|
+
import { a as ht, u as ut } from "./useLocalStorageState-B1kFYGzD.js";
|
|
14
14
|
import { u as dt } from "./useIsBrowserOnline-RAirIO4c.js";
|
|
15
15
|
function ft(t) {
|
|
16
16
|
const e = re(t);
|
|
@@ -27,15 +27,15 @@ 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
41
|
let m;
|
|
@@ -43,19 +43,19 @@ const mt = (t) => {
|
|
|
43
43
|
o(!1);
|
|
44
44
|
}, e[1] = m) : m = e[1];
|
|
45
45
|
const f = m;
|
|
46
|
-
let
|
|
47
|
-
e[2] !== s || e[3] !== i || e[4] !== c ? (
|
|
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 w =
|
|
53
|
+
}, e[2] = s, e[3] = i, e[4] = c, e[5] = g) : g = e[5];
|
|
54
|
+
const w = 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] !== w ? (d = /* @__PURE__ */
|
|
58
|
+
return e[7] !== n || e[8] !== w ? (d = /* @__PURE__ */ L(Oe.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;
|
|
@@ -68,9 +68,9 @@ 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);
|
|
@@ -81,12 +81,12 @@ const mt = (t) => {
|
|
|
81
81
|
j.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
|
-
let
|
|
85
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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
86
|
let w;
|
|
87
87
|
t[7] !== c ? (w = {
|
|
88
88
|
value: c,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: g,
|
|
90
90
|
className: "w-100",
|
|
91
91
|
autoFocus: !0,
|
|
92
92
|
tabIndex: 0
|
|
@@ -96,37 +96,37 @@ const mt = (t) => {
|
|
|
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];
|
|
110
|
-
let
|
|
111
|
-
t[25] !== n.cancel || t[26] !== u ? (
|
|
110
|
+
let T;
|
|
111
|
+
t[25] !== n.cancel || t[26] !== u ? (T = /* @__PURE__ */ y(ie, { variant: "outlined", color: "secondary", onClick: u, className: "flex-grow-1", children: n.cancel }), t[25] = n.cancel, t[26] = u, t[27] = T) : T = t[27];
|
|
112
112
|
const W = r.required && !c;
|
|
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] !==
|
|
117
|
-
|
|
116
|
+
t[31] !== T || t[32] !== P ? (M = /* @__PURE__ */ L(H.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
117
|
+
T,
|
|
118
118
|
P
|
|
119
|
-
] }), t[31] =
|
|
119
|
+
] }), t[31] = T, 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,23 +134,23 @@ 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] =
|
|
143
|
+
const [a, h] = I(c), u = Q(Ct);
|
|
144
144
|
let m;
|
|
145
145
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (m = (C) => {
|
|
146
146
|
r(C), o(!0);
|
|
147
147
|
}, e[1] = m) : m = e[1];
|
|
148
148
|
const f = m;
|
|
149
|
-
let
|
|
150
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
149
|
+
let g;
|
|
150
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
151
151
|
o(!1);
|
|
152
|
-
}, e[2] =
|
|
153
|
-
const w =
|
|
152
|
+
}, e[2] = g) : g = e[2];
|
|
153
|
+
const w = g;
|
|
154
154
|
let b;
|
|
155
155
|
e[3] !== s || e[4] !== a || e[5] !== i ? (b = {
|
|
156
156
|
isShown: s,
|
|
@@ -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,
|
|
@@ -195,21 +195,21 @@ const nn = (t) => {
|
|
|
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
196
|
const m = 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] =
|
|
203
|
+
] }) }), e[9] = h, e[10] = g) : g = e[10];
|
|
204
204
|
let w;
|
|
205
|
-
return e[11] !== m || e[12] !==
|
|
206
|
-
},
|
|
205
|
+
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
|
+
}, 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);
|
|
@@ -227,17 +227,17 @@ const nn = (t) => {
|
|
|
227
227
|
stopLoading: u
|
|
228
228
|
}, e[5] = s, e[6] = a, e[7] = u, e[8] = m) : m = e[8];
|
|
229
229
|
const f = m;
|
|
230
|
-
let
|
|
231
|
-
e[9] !== s ? (
|
|
230
|
+
let g;
|
|
231
|
+
e[9] !== s ? (g = s && /* @__PURE__ */ y(at, {}), e[9] = s, e[10] = g) : g = e[10];
|
|
232
232
|
let w;
|
|
233
|
-
return e[11] !== n || e[12] !== f || e[13] !==
|
|
234
|
-
|
|
233
|
+
return e[11] !== n || e[12] !== f || e[13] !== g ? (w = /* @__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] = w) : w = e[14], w;
|
|
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, m] = I(null);
|
|
249
249
|
let f;
|
|
250
250
|
e[0] !== i ? (f = async () => {
|
|
251
251
|
const A = await i();
|
|
252
252
|
A && m(A.token);
|
|
253
253
|
}, e[0] = i, e[1] = f) : f = e[1];
|
|
254
|
-
const
|
|
254
|
+
const g = f;
|
|
255
255
|
let w, b;
|
|
256
|
-
e[2] !==
|
|
257
|
-
|
|
258
|
-
}, b = [
|
|
256
|
+
e[2] !== g ? (w = () => {
|
|
257
|
+
g();
|
|
258
|
+
}, b = [g], e[2] = g, e[3] = w, e[4] = b) : (w = e[3], b = e[4]), B(w, 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;
|
|
@@ -289,7 +289,7 @@ const nn = (t) => {
|
|
|
289
289
|
$ = null;
|
|
290
290
|
}), $;
|
|
291
291
|
}, e[7] = s, e[8] = v) : v = e[8];
|
|
292
|
-
const
|
|
292
|
+
const T = v;
|
|
293
293
|
let W;
|
|
294
294
|
e[9] !== a || e[10] !== c ? (W = () => {
|
|
295
295
|
localStorage.removeItem("user"), _({
|
|
@@ -299,12 +299,12 @@ const nn = (t) => {
|
|
|
299
299
|
}, e[9] = a, e[10] = c, e[11] = W) : W = e[11];
|
|
300
300
|
const P = W;
|
|
301
301
|
let M;
|
|
302
|
-
e[12] !==
|
|
302
|
+
e[12] !== T || e[13] !== h ? (M = async (A) => {
|
|
303
303
|
_({
|
|
304
304
|
state: J.LOGGING_IN,
|
|
305
305
|
user: null
|
|
306
306
|
});
|
|
307
|
-
const $ = await
|
|
307
|
+
const $ = await T(A);
|
|
308
308
|
return $ ? (_({
|
|
309
309
|
state: J.LOGGED_IN,
|
|
310
310
|
user: $
|
|
@@ -312,7 +312,7 @@ const nn = (t) => {
|
|
|
312
312
|
state: J.LOGIN_FAILED,
|
|
313
313
|
user: null
|
|
314
314
|
}), !1);
|
|
315
|
-
}, e[12] =
|
|
315
|
+
}, e[12] = T, e[13] = h, e[14] = M) : M = e[14];
|
|
316
316
|
const x = M;
|
|
317
317
|
let O;
|
|
318
318
|
e[15] !== o ? (O = () => {
|
|
@@ -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
|
+
}, Tt = (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 = Tt(o);
|
|
414
414
|
if (!v) {
|
|
415
415
|
console.log("getTokenMsal no account found. Redirecting to login"), o == null || o.loginRedirect({
|
|
416
416
|
scopes: i,
|
|
@@ -422,24 +422,20 @@ const ve = () => {
|
|
|
422
422
|
scopes: i,
|
|
423
423
|
account: v,
|
|
424
424
|
redirectUri: t.useMsal ? t.msalSilentRedirectUri : void 0
|
|
425
|
-
}).then((
|
|
425
|
+
}).then((T) => {
|
|
426
426
|
_(), S({
|
|
427
|
-
token:
|
|
428
|
-
expiresOn:
|
|
427
|
+
token: T.accessToken,
|
|
428
|
+
expiresOn: T.expiresOn ?? new Date(Date.now())
|
|
429
429
|
});
|
|
430
|
-
}).catch((
|
|
431
|
-
console.error("Error acquiring token",
|
|
430
|
+
}).catch((T) => {
|
|
431
|
+
console.error("Error acquiring token", T), T 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(T);
|
|
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,13 +452,13 @@ const ve = () => {
|
|
|
456
452
|
});
|
|
457
453
|
});
|
|
458
454
|
return c.current = d, d;
|
|
459
|
-
}, [
|
|
455
|
+
}, [r, o, i, t.msalSilentRedirectUri, t.useMsal]), m = 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"), w = 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]), b = F(() => ({
|
|
466
462
|
useMsal: t.useMsal ?? !1,
|
|
467
463
|
msalInstance: o,
|
|
468
464
|
msalScopes: i,
|
|
@@ -474,9 +470,9 @@ const ve = () => {
|
|
|
474
470
|
if (t.useMsal && o) {
|
|
475
471
|
const d = o.addEventCallback((S) => {
|
|
476
472
|
if (S.eventType === ge.LOGIN_SUCCESS || S.eventType === ge.ACQUIRE_TOKEN_SUCCESS && S.payload) {
|
|
477
|
-
const
|
|
473
|
+
const p = S.payload, C = p.account;
|
|
478
474
|
o.setActiveAccount(C);
|
|
479
|
-
const _ =
|
|
475
|
+
const _ = p.accessToken, v = p.expiresOn;
|
|
480
476
|
s("Authorization", _, {
|
|
481
477
|
path: "/",
|
|
482
478
|
secure: !0,
|
|
@@ -493,8 +489,21 @@ const ve = () => {
|
|
|
493
489
|
}
|
|
494
490
|
return () => {
|
|
495
491
|
};
|
|
496
|
-
}, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children:
|
|
492
|
+
}, [t.useMsal, o, s, n]), /* @__PURE__ */ y(pe.Provider, { value: b, children: window.location.pathname === "/blank" ? /* @__PURE__ */ y(vt, {}) : t.children });
|
|
497
493
|
}, cn = (t) => {
|
|
494
|
+
const e = N.c(9);
|
|
495
|
+
let n;
|
|
496
|
+
if (e[0] !== t ? ({
|
|
497
|
+
...n
|
|
498
|
+
} = t, e[0] = t, e[1] = n) : n = e[1], n.useMsal) {
|
|
499
|
+
let o;
|
|
500
|
+
e[2] !== n ? (o = /* @__PURE__ */ y(ye, { ...n }), e[2] = n, e[3] = o) : o = e[3];
|
|
501
|
+
let i;
|
|
502
|
+
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;
|
|
503
|
+
}
|
|
504
|
+
let s;
|
|
505
|
+
return e[7] !== n ? (s = /* @__PURE__ */ y(ye, { ...n }), e[7] = n, e[8] = s) : s = e[8], s;
|
|
506
|
+
}, an = (t) => {
|
|
498
507
|
const e = N.c(18), {
|
|
499
508
|
children: n,
|
|
500
509
|
relativeEndpoint: s
|
|
@@ -505,10 +514,10 @@ const ve = () => {
|
|
|
505
514
|
c = null;
|
|
506
515
|
break e;
|
|
507
516
|
}
|
|
508
|
-
const v = o.from ? we(o.from) : _t(),
|
|
517
|
+
const v = o.from ? we(o.from) : _t(), T = o.to ? we(o.to) : gt();
|
|
509
518
|
if (!pt(new Date(Date.now()), {
|
|
510
519
|
start: v,
|
|
511
|
-
end:
|
|
520
|
+
end: T
|
|
512
521
|
})) {
|
|
513
522
|
i(null), c = null;
|
|
514
523
|
break e;
|
|
@@ -525,14 +534,14 @@ const ve = () => {
|
|
|
525
534
|
data: u,
|
|
526
535
|
setData: m,
|
|
527
536
|
reloadData: f
|
|
528
|
-
} = ut(s, h),
|
|
537
|
+
} = ut(s, h), g = Q(null);
|
|
529
538
|
let w, b;
|
|
530
539
|
e[1] !== f ? (w = () => {
|
|
531
540
|
const v = () => {
|
|
532
|
-
f(),
|
|
541
|
+
f(), g.current = window.setTimeout(v, Ge() + 5e3);
|
|
533
542
|
};
|
|
534
543
|
return v(), () => {
|
|
535
|
-
|
|
544
|
+
g.current !== null && window.clearTimeout(g.current);
|
|
536
545
|
};
|
|
537
546
|
}, b = [f], e[1] = f, e[2] = w, e[3] = b) : (w = e[2], b = e[3]), B(w, b);
|
|
538
547
|
let d;
|
|
@@ -546,59 +555,59 @@ const ve = () => {
|
|
|
546
555
|
}, e[4] = r, e[5] = d) : d = e[5];
|
|
547
556
|
let S;
|
|
548
557
|
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] !== m || e[12] !== i || e[13] !== a ? (
|
|
558
|
+
let p;
|
|
559
|
+
e[9] !== u || e[10] !== f || e[11] !== m || e[12] !== i || e[13] !== a ? (p = {
|
|
551
560
|
delegation: a,
|
|
552
561
|
setDelegation: i,
|
|
553
562
|
availableDelegations: u,
|
|
554
563
|
setAvailableDelegations: m,
|
|
555
564
|
refreshAvailableDelegations: f
|
|
556
|
-
}, e[9] = u, e[10] = f, e[11] = m, e[12] = i, e[13] = a, e[14] =
|
|
557
|
-
const C =
|
|
565
|
+
}, e[9] = u, e[10] = f, e[11] = m, e[12] = i, e[13] = a, e[14] = p) : p = e[14];
|
|
566
|
+
const C = p;
|
|
558
567
|
let _;
|
|
559
|
-
return e[15] !== n || e[16] !== C ? (_ = /* @__PURE__ */ y(
|
|
560
|
-
},
|
|
568
|
+
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
|
+
}, ve = (t, e) => t ? `${t} | ${e}` : e, ln = (t) => {
|
|
561
570
|
const e = N.c(18), {
|
|
562
571
|
defaultHelmet: n,
|
|
563
572
|
children: s,
|
|
564
573
|
helmetPrefix: o
|
|
565
574
|
} = t, i = o ?? "";
|
|
566
575
|
let r;
|
|
567
|
-
e[0] !== n || e[1] !== i ? (r =
|
|
576
|
+
e[0] !== n || e[1] !== i ? (r = ve(i, n), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
|
|
568
577
|
let c;
|
|
569
578
|
e[3] !== r ? (c = [r], e[3] = r, e[4] = c) : c = e[4];
|
|
570
|
-
const [a, h] =
|
|
579
|
+
const [a, h] = I(c);
|
|
571
580
|
let u;
|
|
572
581
|
e[5] !== o ? (u = (_) => {
|
|
573
|
-
h((v) => [...v,
|
|
582
|
+
h((v) => [...v, ve(o ?? "", _)]);
|
|
574
583
|
}, e[5] = o, e[6] = u) : u = e[6];
|
|
575
584
|
const m = u;
|
|
576
585
|
let f;
|
|
577
586
|
e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
578
587
|
h(kt);
|
|
579
588
|
}, e[7] = f) : f = e[7];
|
|
580
|
-
const
|
|
589
|
+
const g = f;
|
|
581
590
|
let w;
|
|
582
591
|
e[8] !== a ? (w = a.at(-1) ?? "", e[8] = a, e[9] = w) : w = e[9];
|
|
583
592
|
const b = w;
|
|
584
593
|
let d;
|
|
585
594
|
e[10] !== m ? (d = {
|
|
586
595
|
addHelmet: m,
|
|
587
|
-
removeHelmet:
|
|
596
|
+
removeHelmet: g
|
|
588
597
|
}, e[10] = m, e[11] = d) : d = e[11];
|
|
589
598
|
const S = d;
|
|
590
|
-
let
|
|
591
|
-
e[12] !== b ? (
|
|
599
|
+
let p;
|
|
600
|
+
e[12] !== b ? (p = /* @__PURE__ */ y("title", { children: b }), e[12] = b, e[13] = p) : p = e[13];
|
|
592
601
|
let C;
|
|
593
|
-
return e[14] !== s || e[15] !== S || e[16] !==
|
|
594
|
-
|
|
602
|
+
return e[14] !== s || e[15] !== S || e[16] !== p ? (C = /* @__PURE__ */ L(Ve.Provider, { value: S, children: [
|
|
603
|
+
p,
|
|
595
604
|
s
|
|
596
|
-
] }), e[14] = s, e[15] = S, e[16] =
|
|
605
|
+
] }), e[14] = s, e[15] = S, e[16] = p, e[17] = C) : C = e[17], C;
|
|
597
606
|
};
|
|
598
607
|
function kt(t) {
|
|
599
608
|
return t.length > 1 ? t.slice(0, -1) : t;
|
|
600
609
|
}
|
|
601
|
-
class
|
|
610
|
+
class $e {
|
|
602
611
|
constructor(e, n, s) {
|
|
603
612
|
this.statusCode = e, this.statusText = n, this.content = s;
|
|
604
613
|
}
|
|
@@ -635,13 +644,13 @@ class le {
|
|
|
635
644
|
return "";
|
|
636
645
|
}
|
|
637
646
|
}
|
|
638
|
-
class
|
|
647
|
+
class Et extends le {
|
|
639
648
|
constructor(e) {
|
|
640
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
649
|
+
if (super(), this._logger = e, typeof fetch > "u" || R.isNode) {
|
|
641
650
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
642
651
|
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
652
|
} else
|
|
644
|
-
this._fetchType = fetch.bind(
|
|
653
|
+
this._fetchType = fetch.bind(Xe());
|
|
645
654
|
if (typeof AbortController > "u") {
|
|
646
655
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
647
656
|
this._abortControllerType = n("abort-controller");
|
|
@@ -668,7 +677,7 @@ class Tt extends le {
|
|
|
668
677
|
n.abort(), this._logger.log(l.Warning, "Timeout from HTTP request."), s = new _e();
|
|
669
678
|
}, a);
|
|
670
679
|
}
|
|
671
|
-
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {},
|
|
680
|
+
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
681
|
let i;
|
|
673
682
|
try {
|
|
674
683
|
i = await this._fetchType(e.url, {
|
|
@@ -694,11 +703,11 @@ class Tt extends le {
|
|
|
694
703
|
throw new V(a || i.statusText, i.status);
|
|
695
704
|
}
|
|
696
705
|
const c = await Te(i, e.responseType);
|
|
697
|
-
return new
|
|
706
|
+
return new $e(i.status, i.statusText, c);
|
|
698
707
|
}
|
|
699
708
|
getCookieString(e) {
|
|
700
709
|
let n = "";
|
|
701
|
-
return
|
|
710
|
+
return R.isNode && this._jar && this._jar.getCookies(e, (s, o) => n = o.join("; ")), n;
|
|
702
711
|
}
|
|
703
712
|
}
|
|
704
713
|
function Te(t, e) {
|
|
@@ -720,7 +729,7 @@ function Te(t, e) {
|
|
|
720
729
|
}
|
|
721
730
|
return n;
|
|
722
731
|
}
|
|
723
|
-
class
|
|
732
|
+
class Pt extends le {
|
|
724
733
|
constructor(e) {
|
|
725
734
|
super(), this._logger = e;
|
|
726
735
|
}
|
|
@@ -728,14 +737,14 @@ class Et extends le {
|
|
|
728
737
|
send(e) {
|
|
729
738
|
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new U()) : e.method ? e.url ? new Promise((n, s) => {
|
|
730
739
|
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 && (
|
|
740
|
+
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
741
|
const i = e.headers;
|
|
733
742
|
i && Object.keys(i).forEach((r) => {
|
|
734
743
|
o.setRequestHeader(r, i[r]);
|
|
735
744
|
}), e.responseType && (o.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
736
745
|
o.abort(), s(new U());
|
|
737
746
|
}), e.timeout && (o.timeout = e.timeout), o.onload = () => {
|
|
738
|
-
e.abortSignal && (e.abortSignal.onabort = null), o.status >= 200 && o.status < 300 ? n(new
|
|
747
|
+
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
748
|
}, o.onerror = () => {
|
|
740
749
|
this._logger.log(l.Warning, `Error from HTTP request. ${o.status}: ${o.statusText}.`), s(new V(o.statusText, o.status));
|
|
741
750
|
}, o.ontimeout = () => {
|
|
@@ -744,13 +753,13 @@ class Et extends le {
|
|
|
744
753
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
745
754
|
}
|
|
746
755
|
}
|
|
747
|
-
class
|
|
756
|
+
class xt extends le {
|
|
748
757
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
749
758
|
constructor(e) {
|
|
750
|
-
if (super(), typeof fetch < "u" ||
|
|
751
|
-
this._httpClient = new Tt(e);
|
|
752
|
-
else if (typeof XMLHttpRequest < "u")
|
|
759
|
+
if (super(), typeof fetch < "u" || R.isNode)
|
|
753
760
|
this._httpClient = new Et(e);
|
|
761
|
+
else if (typeof XMLHttpRequest < "u")
|
|
762
|
+
this._httpClient = new Pt(e);
|
|
754
763
|
else
|
|
755
764
|
throw new Error("No usable HttpClient found.");
|
|
756
765
|
}
|
|
@@ -762,10 +771,10 @@ class Pt extends le {
|
|
|
762
771
|
return this._httpClient.getCookieString(e);
|
|
763
772
|
}
|
|
764
773
|
}
|
|
765
|
-
const
|
|
766
|
-
class
|
|
774
|
+
const At = [0, 2e3, 1e4, 3e4, null];
|
|
775
|
+
class ke {
|
|
767
776
|
constructor(e) {
|
|
768
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
777
|
+
this._retryDelays = e !== void 0 ? [...e, null] : At;
|
|
769
778
|
}
|
|
770
779
|
nextRetryDelayInMilliseconds(e) {
|
|
771
780
|
return this._retryDelays[e.previousRetryCount];
|
|
@@ -775,7 +784,7 @@ class X {
|
|
|
775
784
|
}
|
|
776
785
|
X.Authorization = "Authorization";
|
|
777
786
|
X.Cookie = "Cookie";
|
|
778
|
-
class
|
|
787
|
+
class Dt extends le {
|
|
779
788
|
constructor(e, n) {
|
|
780
789
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
781
790
|
}
|
|
@@ -792,15 +801,15 @@ class At extends le {
|
|
|
792
801
|
return this._innerClient.getCookieString(e);
|
|
793
802
|
}
|
|
794
803
|
}
|
|
795
|
-
var
|
|
804
|
+
var k;
|
|
796
805
|
(function(t) {
|
|
797
806
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
798
|
-
})(
|
|
807
|
+
})(k || (k = {}));
|
|
799
808
|
var D;
|
|
800
809
|
(function(t) {
|
|
801
810
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
802
811
|
})(D || (D = {}));
|
|
803
|
-
let
|
|
812
|
+
let It = class {
|
|
804
813
|
constructor() {
|
|
805
814
|
this._isAborted = !1, this.onabort = null;
|
|
806
815
|
}
|
|
@@ -814,13 +823,13 @@ let Dt = class {
|
|
|
814
823
|
return this._isAborted;
|
|
815
824
|
}
|
|
816
825
|
};
|
|
817
|
-
class
|
|
826
|
+
class Ee {
|
|
818
827
|
// This is an internal type, not exported from 'index' so this is really just internal.
|
|
819
828
|
get pollAborted() {
|
|
820
829
|
return this._pollAbort.aborted;
|
|
821
830
|
}
|
|
822
831
|
constructor(e, n, s) {
|
|
823
|
-
this._httpClient = e, this._logger = n, this._pollAbort = new
|
|
832
|
+
this._httpClient = e, this._logger = n, this._pollAbort = new It(), this._options = s, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
824
833
|
}
|
|
825
834
|
async connect(e, n) {
|
|
826
835
|
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 +862,7 @@ class Pe {
|
|
|
853
862
|
}
|
|
854
863
|
}
|
|
855
864
|
async send(e) {
|
|
856
|
-
return this._running ?
|
|
865
|
+
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
866
|
}
|
|
858
867
|
async stop() {
|
|
859
868
|
this._logger.log(l.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
|
|
@@ -896,7 +905,7 @@ class Rt {
|
|
|
896
905
|
return;
|
|
897
906
|
}
|
|
898
907
|
let r;
|
|
899
|
-
if (
|
|
908
|
+
if (R.isBrowser || R.isWebWorker)
|
|
900
909
|
r = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
901
910
|
else {
|
|
902
911
|
const c = this._httpClient.getCookieString(e), a = {};
|
|
@@ -925,7 +934,7 @@ class Rt {
|
|
|
925
934
|
});
|
|
926
935
|
}
|
|
927
936
|
async send(e) {
|
|
928
|
-
return this._eventSource ?
|
|
937
|
+
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
938
|
}
|
|
930
939
|
stop() {
|
|
931
940
|
return this._close(), Promise.resolve();
|
|
@@ -946,7 +955,7 @@ class Lt {
|
|
|
946
955
|
let r;
|
|
947
956
|
const c = this._httpClient.getCookieString(e);
|
|
948
957
|
let a = !1;
|
|
949
|
-
if (
|
|
958
|
+
if (R.isNode || R.isReactNative) {
|
|
950
959
|
const h = {}, [u, m] = q();
|
|
951
960
|
h[u] = m, s && (h[X.Authorization] = `Bearer ${s}`), c && (h[X.Cookie] = c), r = new this._webSocketConstructor(e, void 0, {
|
|
952
961
|
headers: { ...h, ...this._headers }
|
|
@@ -992,21 +1001,21 @@ class Lt {
|
|
|
992
1001
|
return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
|
|
993
1002
|
}
|
|
994
1003
|
}
|
|
995
|
-
const
|
|
996
|
-
class
|
|
1004
|
+
const Pe = 100;
|
|
1005
|
+
class Mt {
|
|
997
1006
|
constructor(e, n = {}) {
|
|
998
1007
|
if (this._stopPromiseResolver = () => {
|
|
999
|
-
}, this.features = {}, this._negotiateVersion = 1, E.isRequired(e, "url"), this._logger =
|
|
1008
|
+
}, 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
1009
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
1001
1010
|
else
|
|
1002
1011
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
1003
1012
|
n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
|
|
1004
1013
|
let s = null, o = null;
|
|
1005
|
-
if (
|
|
1014
|
+
if (R.isNode && typeof require < "u") {
|
|
1006
1015
|
const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
1007
1016
|
s = i("ws"), o = i("eventsource");
|
|
1008
1017
|
}
|
|
1009
|
-
!
|
|
1018
|
+
!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
1019
|
}
|
|
1011
1020
|
async start(e) {
|
|
1012
1021
|
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")
|
|
@@ -1053,8 +1062,8 @@ class It {
|
|
|
1053
1062
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
1054
1063
|
try {
|
|
1055
1064
|
if (this._options.skipNegotiation)
|
|
1056
|
-
if (this._options.transport ===
|
|
1057
|
-
this.transport = this._constructTransport(
|
|
1065
|
+
if (this._options.transport === k.WebSockets)
|
|
1066
|
+
this.transport = this._constructTransport(k.WebSockets), await this._startTransport(n, e);
|
|
1058
1067
|
else
|
|
1059
1068
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
1060
1069
|
else {
|
|
@@ -1071,12 +1080,12 @@ class It {
|
|
|
1071
1080
|
this._accessTokenFactory = () => i, this._httpClient._accessToken = i, this._httpClient._accessTokenFactory = void 0;
|
|
1072
1081
|
}
|
|
1073
1082
|
o++;
|
|
1074
|
-
} while (s.url && o <
|
|
1075
|
-
if (o ===
|
|
1083
|
+
} while (s.url && o < Pe);
|
|
1084
|
+
if (o === Pe && s.url)
|
|
1076
1085
|
throw new Error("Negotiate redirection limit exceeded.");
|
|
1077
1086
|
await this._createTransport(n, this._options.transport, s, e);
|
|
1078
1087
|
}
|
|
1079
|
-
this.transport instanceof
|
|
1088
|
+
this.transport instanceof Ee && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(l.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
|
|
1080
1089
|
} catch (s) {
|
|
1081
1090
|
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
1091
|
}
|
|
@@ -1130,27 +1139,27 @@ class It {
|
|
|
1130
1139
|
await this._startTransport(i, o), this.connectionId = a.connectionId;
|
|
1131
1140
|
return;
|
|
1132
1141
|
} catch (m) {
|
|
1133
|
-
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${m}`), a = void 0, r.push(new
|
|
1142
|
+
if (this._logger.log(l.Error, `Failed to start the transport '${h.transport}': ${m}`), a = void 0, r.push(new Je(`${h.transport} failed: ${m}`, k[h.transport])), this._connectionState !== "Connecting") {
|
|
1134
1143
|
const f = "Failed to select transport before stop() was called.";
|
|
1135
1144
|
return this._logger.log(l.Debug, f), Promise.reject(new U(f));
|
|
1136
1145
|
}
|
|
1137
1146
|
}
|
|
1138
1147
|
}
|
|
1139
1148
|
}
|
|
1140
|
-
return r.length > 0 ? Promise.reject(new
|
|
1149
|
+
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
1150
|
}
|
|
1142
1151
|
_constructTransport(e) {
|
|
1143
1152
|
switch (e) {
|
|
1144
|
-
case
|
|
1153
|
+
case k.WebSockets:
|
|
1145
1154
|
if (!this._options.WebSocket)
|
|
1146
1155
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
1147
1156
|
return new Lt(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
1148
|
-
case
|
|
1157
|
+
case k.ServerSentEvents:
|
|
1149
1158
|
if (!this._options.EventSource)
|
|
1150
1159
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
1151
1160
|
return new Rt(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
1152
|
-
case
|
|
1153
|
-
return new
|
|
1161
|
+
case k.LongPolling:
|
|
1162
|
+
return new Ee(this._httpClient, this._logger, this._options);
|
|
1154
1163
|
default:
|
|
1155
1164
|
throw new Error(`Unknown transport: ${e}.`);
|
|
1156
1165
|
}
|
|
@@ -1172,23 +1181,23 @@ class It {
|
|
|
1172
1181
|
} : this.transport.onclose = (s) => this._stopConnection(s), this.transport.connect(e, n);
|
|
1173
1182
|
}
|
|
1174
1183
|
_resolveTransportOrError(e, n, s, o) {
|
|
1175
|
-
const i =
|
|
1184
|
+
const i = k[e.transport];
|
|
1176
1185
|
if (i == null)
|
|
1177
1186
|
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 (
|
|
1187
|
+
if ($t(n, i))
|
|
1179
1188
|
if (e.transferFormats.map((c) => D[c]).indexOf(s) >= 0) {
|
|
1180
|
-
if (i ===
|
|
1181
|
-
return this._logger.log(l.Debug, `Skipping transport '${
|
|
1182
|
-
this._logger.log(l.Debug, `Selecting transport '${
|
|
1189
|
+
if (i === k.WebSockets && !this._options.WebSocket || i === k.ServerSentEvents && !this._options.EventSource)
|
|
1190
|
+
return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it is not supported in your environment.'`), new Ye(`'${k[i]}' is not supported in your environment.`, i);
|
|
1191
|
+
this._logger.log(l.Debug, `Selecting transport '${k[i]}'.`);
|
|
1183
1192
|
try {
|
|
1184
|
-
return this.features.reconnect = i ===
|
|
1193
|
+
return this.features.reconnect = i === k.WebSockets ? o : void 0, this._constructTransport(i);
|
|
1185
1194
|
} catch (c) {
|
|
1186
1195
|
return c;
|
|
1187
1196
|
}
|
|
1188
1197
|
} else
|
|
1189
|
-
return this._logger.log(l.Debug, `Skipping transport '${
|
|
1198
|
+
return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it does not support the requested transfer format '${D[s]}'.`), new Error(`'${k[i]}' does not support ${D[s]}.`);
|
|
1190
1199
|
else
|
|
1191
|
-
return this._logger.log(l.Debug, `Skipping transport '${
|
|
1200
|
+
return this._logger.log(l.Debug, `Skipping transport '${k[i]}' because it was disabled by the client.`), new qe(`'${k[i]}' is disabled by the client.`, i);
|
|
1192
1201
|
}
|
|
1193
1202
|
_isITransport(e) {
|
|
1194
1203
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -1214,7 +1223,7 @@ class It {
|
|
|
1214
1223
|
_resolveUrl(e) {
|
|
1215
1224
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
1216
1225
|
return e;
|
|
1217
|
-
if (!
|
|
1226
|
+
if (!R.isBrowser)
|
|
1218
1227
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
1219
1228
|
const n = window.document.createElement("a");
|
|
1220
1229
|
return n.href = e, this._logger.log(l.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
|
|
@@ -1226,7 +1235,7 @@ class It {
|
|
|
1226
1235
|
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
1236
|
}
|
|
1228
1237
|
}
|
|
1229
|
-
function
|
|
1238
|
+
function $t(t, e) {
|
|
1230
1239
|
return !t || (e & t) !== 0;
|
|
1231
1240
|
}
|
|
1232
1241
|
class me {
|
|
@@ -1281,10 +1290,10 @@ class se {
|
|
|
1281
1290
|
this._rejecter(e);
|
|
1282
1291
|
}
|
|
1283
1292
|
}
|
|
1284
|
-
const
|
|
1285
|
-
class
|
|
1293
|
+
const Nt = "json";
|
|
1294
|
+
class Ot {
|
|
1286
1295
|
constructor() {
|
|
1287
|
-
this.name =
|
|
1296
|
+
this.name = Nt, this.version = 2, this.transferFormat = D.Text;
|
|
1288
1297
|
}
|
|
1289
1298
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
1290
1299
|
*
|
|
@@ -1296,7 +1305,7 @@ class Nt {
|
|
|
1296
1305
|
throw new Error("Invalid input for JSON hub protocol. Expected a string.");
|
|
1297
1306
|
if (!e)
|
|
1298
1307
|
return [];
|
|
1299
|
-
n === null && (n =
|
|
1308
|
+
n === null && (n = Le.instance);
|
|
1300
1309
|
const s = be.parse(e), o = [];
|
|
1301
1310
|
for (const i of s) {
|
|
1302
1311
|
const r = JSON.parse(i);
|
|
@@ -1363,7 +1372,7 @@ class Nt {
|
|
|
1363
1372
|
throw new Error(n);
|
|
1364
1373
|
}
|
|
1365
1374
|
}
|
|
1366
|
-
const
|
|
1375
|
+
const Ht = {
|
|
1367
1376
|
trace: l.Trace,
|
|
1368
1377
|
debug: l.Debug,
|
|
1369
1378
|
info: l.Information,
|
|
@@ -1374,18 +1383,18 @@ const Ot = {
|
|
|
1374
1383
|
critical: l.Critical,
|
|
1375
1384
|
none: l.None
|
|
1376
1385
|
};
|
|
1377
|
-
function
|
|
1378
|
-
const e =
|
|
1386
|
+
function Ut(t) {
|
|
1387
|
+
const e = Ht[t.toLowerCase()];
|
|
1379
1388
|
if (typeof e < "u")
|
|
1380
1389
|
return e;
|
|
1381
1390
|
throw new Error(`Unknown log level: ${t}`);
|
|
1382
1391
|
}
|
|
1383
|
-
class
|
|
1392
|
+
class Wt {
|
|
1384
1393
|
configureLogging(e) {
|
|
1385
|
-
if (E.isRequired(e, "logging"),
|
|
1394
|
+
if (E.isRequired(e, "logging"), jt(e))
|
|
1386
1395
|
this.logger = e;
|
|
1387
1396
|
else if (typeof e == "string") {
|
|
1388
|
-
const n =
|
|
1397
|
+
const n = Ut(e);
|
|
1389
1398
|
this.logger = new Ce(n);
|
|
1390
1399
|
} else
|
|
1391
1400
|
this.logger = new Ce(e);
|
|
@@ -1407,7 +1416,7 @@ class Ut {
|
|
|
1407
1416
|
withAutomaticReconnect(e) {
|
|
1408
1417
|
if (this.reconnectPolicy)
|
|
1409
1418
|
throw new Error("A reconnectPolicy has already been set.");
|
|
1410
|
-
return e ? Array.isArray(e) ? this.reconnectPolicy = new
|
|
1419
|
+
return e ? Array.isArray(e) ? this.reconnectPolicy = new ke(e) : this.reconnectPolicy = e : this.reconnectPolicy = new ke(), this;
|
|
1411
1420
|
}
|
|
1412
1421
|
/** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
1413
1422
|
*
|
|
@@ -1438,14 +1447,14 @@ class Ut {
|
|
|
1438
1447
|
const e = this.httpConnectionOptions || {};
|
|
1439
1448
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
1440
1449
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
1441
|
-
const n = new
|
|
1442
|
-
return
|
|
1450
|
+
const n = new Mt(this.url, e);
|
|
1451
|
+
return Ze.create(n, this.logger || Le.instance, this.protocol || new Ot(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
1443
1452
|
}
|
|
1444
1453
|
}
|
|
1445
|
-
function
|
|
1454
|
+
function jt(t) {
|
|
1446
1455
|
return t.log !== void 0;
|
|
1447
1456
|
}
|
|
1448
|
-
const
|
|
1457
|
+
const Ft = 10 * 1e3, Bt = 15 * 1e3, un = ({
|
|
1449
1458
|
children: t,
|
|
1450
1459
|
apiUrl: e,
|
|
1451
1460
|
endpoint: n
|
|
@@ -1453,7 +1462,7 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
|
|
|
1453
1462
|
const {
|
|
1454
1463
|
authState: s,
|
|
1455
1464
|
getToken: o
|
|
1456
|
-
} = z(pe), i = dt(), [r, c] =
|
|
1465
|
+
} = z(pe), i = dt(), [r, c] = I(fe.Disconnected), [a, h] = I(!1), u = Q(null), m = Q(o);
|
|
1457
1466
|
m.current = o;
|
|
1458
1467
|
const f = Y(() => {
|
|
1459
1468
|
var d;
|
|
@@ -1463,52 +1472,52 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
|
|
|
1463
1472
|
if (s !== "AUTH_OK" || !i)
|
|
1464
1473
|
return;
|
|
1465
1474
|
let d = !1, S = null;
|
|
1466
|
-
const
|
|
1475
|
+
const p = new Wt().withUrl(`${e}/${n}`, {
|
|
1467
1476
|
accessTokenFactory: () => m.current().then((_) => (_ == null ? void 0 : _.token) ?? "")
|
|
1468
1477
|
}).withAutomaticReconnect({
|
|
1469
|
-
nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount,
|
|
1478
|
+
nextRetryDelayInMilliseconds: (_) => Math.min(1e3 * 2 ** _.previousRetryCount, Bt)
|
|
1470
1479
|
}).build();
|
|
1471
|
-
u.current =
|
|
1480
|
+
u.current = p, p.on("Connected", (_) => {
|
|
1472
1481
|
console.log("Server says:", _);
|
|
1473
|
-
}),
|
|
1482
|
+
}), p.onreconnecting((_) => {
|
|
1474
1483
|
d || (console.log("Reconnecting...", _), f(), h(!0));
|
|
1475
|
-
}),
|
|
1484
|
+
}), p.onreconnected(() => {
|
|
1476
1485
|
d || (console.log("Reconnected"), f(), h(!1));
|
|
1477
|
-
}),
|
|
1486
|
+
}), p.onclose((_) => {
|
|
1478
1487
|
d || (console.log("Connection closed", _), f(), h(!0));
|
|
1479
1488
|
});
|
|
1480
1489
|
const C = () => {
|
|
1481
|
-
S !== null && window.clearTimeout(S),
|
|
1490
|
+
S !== null && window.clearTimeout(S), p.start().then(() => {
|
|
1482
1491
|
if (d) {
|
|
1483
|
-
|
|
1492
|
+
p.stop().catch((_) => {
|
|
1484
1493
|
console.log("Error stopping connection:", _);
|
|
1485
1494
|
});
|
|
1486
1495
|
return;
|
|
1487
1496
|
}
|
|
1488
1497
|
console.log("Connection started"), f(), h(!1);
|
|
1489
1498
|
}).catch((_) => {
|
|
1490
|
-
d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C,
|
|
1499
|
+
d || (console.log("Error starting connection:", _), f(), h(!0), S = window.setTimeout(C, Ft));
|
|
1491
1500
|
});
|
|
1492
1501
|
};
|
|
1493
1502
|
return C(), () => {
|
|
1494
|
-
d = !0, S !== null && window.clearTimeout(S), u.current = null,
|
|
1503
|
+
d = !0, S !== null && window.clearTimeout(S), u.current = null, p.stop().catch((_) => {
|
|
1495
1504
|
console.log("Error stopping connection:", _);
|
|
1496
1505
|
});
|
|
1497
1506
|
};
|
|
1498
1507
|
}, [e, s, n, f, i]);
|
|
1499
|
-
const
|
|
1500
|
-
isAlive:
|
|
1508
|
+
const g = F(() => r === fe.Connected, [r]), w = F(() => s === "AUTH_OK", [s]), b = F(() => ({
|
|
1509
|
+
isAlive: g,
|
|
1501
1510
|
shouldBeAlive: w,
|
|
1502
1511
|
connectionState: r,
|
|
1503
1512
|
hasLastConnectionEnded: a
|
|
1504
|
-
}), [
|
|
1505
|
-
return /* @__PURE__ */ y(
|
|
1506
|
-
},
|
|
1507
|
-
const t = z(
|
|
1513
|
+
}), [g, w, r, a]);
|
|
1514
|
+
return /* @__PURE__ */ y(Me.Provider, { value: b, children: t });
|
|
1515
|
+
}, dn = () => {
|
|
1516
|
+
const t = z(Me);
|
|
1508
1517
|
if (!t)
|
|
1509
1518
|
throw new Error("useApiWebSocket must be used within a ApiWebSocketProvider");
|
|
1510
1519
|
return t;
|
|
1511
|
-
},
|
|
1520
|
+
}, xe = 50, zt = () => {
|
|
1512
1521
|
const t = N.c(22), {
|
|
1513
1522
|
texts: e
|
|
1514
1523
|
} = z(ae), {
|
|
@@ -1519,56 +1528,56 @@ const jt = 10 * 1e3, Ft = 15 * 1e3, hn = ({
|
|
|
1519
1528
|
text: i,
|
|
1520
1529
|
show: r,
|
|
1521
1530
|
textSm: c
|
|
1522
|
-
} =
|
|
1531
|
+
} = et(), a = c === void 0 ? i.length > xe : c, h = i.length > xe;
|
|
1523
1532
|
let u;
|
|
1524
|
-
t[0] !== o || t[1] !== s || t[2] !== r ? (u = (
|
|
1533
|
+
t[0] !== o || t[1] !== s || t[2] !== r ? (u = (p) => {
|
|
1525
1534
|
if (r)
|
|
1526
|
-
e: switch (
|
|
1535
|
+
e: switch (p.key) {
|
|
1527
1536
|
case "Enter": {
|
|
1528
|
-
|
|
1537
|
+
p.preventDefault(), p.stopPropagation(), s();
|
|
1529
1538
|
break e;
|
|
1530
1539
|
}
|
|
1531
1540
|
case "Escape": {
|
|
1532
|
-
|
|
1541
|
+
p.preventDefault(), p.stopPropagation(), o();
|
|
1533
1542
|
break e;
|
|
1534
1543
|
}
|
|
1535
1544
|
}
|
|
1536
|
-
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3],
|
|
1545
|
+
}, t[0] = o, t[1] = s, t[2] = r, t[3] = u) : u = t[3], tt(u);
|
|
1537
1546
|
const f = h ? void 0 : "sm";
|
|
1538
|
-
let
|
|
1539
|
-
t[4] !== a || t[5] !== i ? (
|
|
1547
|
+
let g;
|
|
1548
|
+
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];
|
|
1540
1549
|
let w;
|
|
1541
1550
|
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];
|
|
1542
1551
|
let b;
|
|
1543
1552
|
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
1553
|
let d;
|
|
1545
|
-
t[13] !== w || t[14] !== b ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */
|
|
1554
|
+
t[13] !== w || t[14] !== b ? (d = /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ L("div", { className: "w-100 d-flex gap-5", children: [
|
|
1546
1555
|
w,
|
|
1547
1556
|
b
|
|
1548
1557
|
] }) }), t[13] = w, t[14] = b, t[15] = d) : d = t[15];
|
|
1549
1558
|
let S;
|
|
1550
|
-
return t[16] !== o || t[17] !== r || t[18] !== f || t[19] !==
|
|
1551
|
-
|
|
1559
|
+
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: [
|
|
1560
|
+
g,
|
|
1552
1561
|
d
|
|
1553
|
-
] }), t[16] = o, t[17] = r, t[18] = f, t[19] =
|
|
1562
|
+
] }), t[16] = o, t[17] = r, t[18] = f, t[19] = g, t[20] = d, t[21] = S) : S = t[21], S;
|
|
1554
1563
|
};
|
|
1555
1564
|
export {
|
|
1556
|
-
|
|
1557
|
-
|
|
1565
|
+
Me as ApiWebSocketContext,
|
|
1566
|
+
un as ApiWebSocketProvider,
|
|
1558
1567
|
pe as AuthContext,
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
+
cn as AuthProvider,
|
|
1569
|
+
De as DelegationContext,
|
|
1570
|
+
an as DelegationProvider,
|
|
1571
|
+
pn as FormDisabledContext,
|
|
1572
|
+
wn as FormDisabledProvider,
|
|
1573
|
+
Ve as HelmetContext,
|
|
1574
|
+
ln as HelmetProvider,
|
|
1575
|
+
je as LoadingContext,
|
|
1576
|
+
sn as LoadingProvider,
|
|
1568
1577
|
ae as LuminusComponentsContext,
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1578
|
+
on as LuminusComponentsProvider,
|
|
1579
|
+
Be as UserContext,
|
|
1580
|
+
rn as UserProvider,
|
|
1581
|
+
dn as useApiWebSocketContext,
|
|
1582
|
+
_n as useFormDisabledContext
|
|
1574
1583
|
};
|