react-luminus-components 1.2.60 → 1.2.62
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 +42 -42
- package/dist/{EventType-C7vqWxBE.cjs → EventType-BqTAbfGu.cjs} +1 -1
- package/dist/{EventType-BITUq9bG.js → EventType-a2Umpz50.js} +1 -1
- package/dist/{NoInputContainer-vBsdl4By.js → NoInputContainer-CJdyV1f-.js} +5 -4
- package/dist/{NoInputContainer-C_KMMuq-.cjs → NoInputContainer-DG__eVmA.cjs} +2 -2
- package/dist/{SimpleTooltip-CI4u4sEB.cjs → SimpleTooltip-BA_KP07G.cjs} +1 -1
- package/dist/{SimpleTooltip-D_EP1VLp.js → SimpleTooltip-CSZZpH9m.js} +1 -1
- package/dist/contexts/user/UserContext.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +149 -148
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +435 -436
- package/dist/style.css +1 -1
- package/dist/{useConfirm-BiHp2Y6a.cjs → useConfirm-D2qNeXB1.cjs} +1 -1
- package/dist/{useConfirm-DeyXejs7.js → useConfirm-D5GeaSD8.js} +1 -1
- package/dist/{usePermissions-z6sqoYhg.cjs → usePermissions-C__V9uZ7.cjs} +1 -1
- package/dist/{usePermissions-CJ08LAVC.js → usePermissions-UVzcj-N9.js} +1 -1
- package/package.json +1 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { N as T, aj as
|
|
2
|
-
import
|
|
3
|
-
import { u as
|
|
1
|
+
import { N as T, aj as k, j as a, ak as _, al as j, am as O, L as S, K as l, an as U, ao as w, ap as p, a3 as M, a7 as A, a9 as K, aq as z, X as F } from "./NoInputContainer-CJdyV1f-.js";
|
|
2
|
+
import G, { useContext as R, useState as C, useCallback as f, useEffect as I, useMemo as P, useRef as B, useReducer as H } from "react";
|
|
3
|
+
import { u as D, a as V } from "./useConfirm-D5GeaSD8.js";
|
|
4
4
|
import "react-hook-form";
|
|
5
|
-
import { M as
|
|
6
|
-
const
|
|
7
|
-
const { confirmTexts: e } =
|
|
5
|
+
import { M as v, L as $, E as u } from "./EventType-a2Umpz50.js";
|
|
6
|
+
const q = () => {
|
|
7
|
+
const { confirmTexts: e } = R(T), { isShown: s, text: t, onFinish: n } = D(), { options: o } = R(k), [r, i] = C(o.defaultValue ?? ""), c = f(() => {
|
|
8
8
|
n(null);
|
|
9
|
-
}, [n]),
|
|
9
|
+
}, [n]), d = f(() => {
|
|
10
10
|
n(r);
|
|
11
11
|
}, [n, r]);
|
|
12
|
-
|
|
12
|
+
I(() => {
|
|
13
13
|
s === !0 && i(o.defaultValue ?? "");
|
|
14
14
|
}, [s, o.defaultValue]);
|
|
15
|
-
const
|
|
15
|
+
const g = P(() => ({
|
|
16
16
|
value: r,
|
|
17
|
-
onChange: (
|
|
17
|
+
onChange: (m) => i(m.currentTarget.value),
|
|
18
18
|
className: "w-100",
|
|
19
19
|
autoFocus: !0,
|
|
20
20
|
tabIndex: 0
|
|
21
21
|
}), [r]);
|
|
22
|
-
return /* @__PURE__ */ a.jsxs(
|
|
23
|
-
/* @__PURE__ */ a.jsx(
|
|
24
|
-
/* @__PURE__ */ a.jsxs(
|
|
25
|
-
o.input === "textarea" ? /* @__PURE__ */ a.jsx("textarea", { ...
|
|
26
|
-
o.input === "input" ? /* @__PURE__ */ a.jsx("input", { ...
|
|
22
|
+
return /* @__PURE__ */ a.jsxs(v, { show: s, size: "sm", centered: !0, onHide: c, children: [
|
|
23
|
+
/* @__PURE__ */ a.jsx(v.Header, { children: /* @__PURE__ */ a.jsx(v.Title, { children: t }) }),
|
|
24
|
+
/* @__PURE__ */ a.jsxs(v.Body, { children: [
|
|
25
|
+
o.input === "textarea" ? /* @__PURE__ */ a.jsx("textarea", { ...g, rows: 5 }) : void 0,
|
|
26
|
+
o.input === "input" ? /* @__PURE__ */ a.jsx("input", { ...g, type: o.type }) : void 0
|
|
27
27
|
] }),
|
|
28
|
-
/* @__PURE__ */ a.jsxs(
|
|
28
|
+
/* @__PURE__ */ a.jsxs(v.Footer, { children: [
|
|
29
29
|
/* @__PURE__ */ a.jsx("button", { type: "button", className: "btn btn-secondary", onClick: c, children: e.cancel }),
|
|
30
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", className: "btn btn-primary ml", onClick:
|
|
30
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", className: "btn btn-primary ml", onClick: d, disabled: o.required && !r, children: e.confirm })
|
|
31
31
|
] })
|
|
32
32
|
] });
|
|
33
|
-
},
|
|
34
|
-
const [s, t] =
|
|
35
|
-
}),
|
|
36
|
-
o(
|
|
37
|
-
}, []),
|
|
33
|
+
}, Q = ({ children: e }) => {
|
|
34
|
+
const [s, t] = C(!1), [n, o] = C(""), [r, i] = C({ input: "textarea", type: "text" }), c = B(() => {
|
|
35
|
+
}), d = f((x) => {
|
|
36
|
+
o(x), t(!0);
|
|
37
|
+
}, []), g = f(() => {
|
|
38
38
|
t(!1);
|
|
39
|
-
}, []),
|
|
39
|
+
}, []), m = P(() => ({
|
|
40
40
|
isShown: s,
|
|
41
41
|
text: n,
|
|
42
|
-
showPrompt:
|
|
43
|
-
hidePrompt:
|
|
42
|
+
showPrompt: d,
|
|
43
|
+
hidePrompt: g,
|
|
44
44
|
resolveRef: c,
|
|
45
45
|
options: r,
|
|
46
46
|
setOptions: i
|
|
47
|
-
}), [s, n,
|
|
48
|
-
return /* @__PURE__ */ a.jsxs(
|
|
47
|
+
}), [s, n, d, g, r]);
|
|
48
|
+
return /* @__PURE__ */ a.jsxs(k.Provider, { value: m, children: [
|
|
49
49
|
e,
|
|
50
|
-
/* @__PURE__ */ a.jsx(
|
|
50
|
+
/* @__PURE__ */ a.jsx(q, {})
|
|
51
51
|
] });
|
|
52
|
-
},
|
|
53
|
-
const [s, t] =
|
|
54
|
-
t(!0), o(
|
|
55
|
-
}, []), i =
|
|
52
|
+
}, J = ({ children: e }) => {
|
|
53
|
+
const [s, t] = C(!1), [n, o] = C(""), r = f((d) => {
|
|
54
|
+
t(!0), o(d);
|
|
55
|
+
}, []), i = f(() => {
|
|
56
56
|
t(!1);
|
|
57
|
-
}, []), c =
|
|
58
|
-
return /* @__PURE__ */ a.jsxs(
|
|
59
|
-
/* @__PURE__ */ a.jsx(
|
|
57
|
+
}, []), c = P(() => ({ show: s, text: n, showConfirm: r, hideConfirm: i }), [s, n, r, i]);
|
|
58
|
+
return /* @__PURE__ */ a.jsxs(_.Provider, { value: c, children: [
|
|
59
|
+
/* @__PURE__ */ a.jsx(ee, {}),
|
|
60
60
|
e
|
|
61
61
|
] });
|
|
62
|
-
},
|
|
63
|
-
const
|
|
62
|
+
}, ae = ({ cookieDomain: e, axiosInstance: s, LinkComponent: t, NavigateComponent: n, language: o, axiosTexts: r, confirmTexts: i, formValidationTexts: c, homeDashboardTexts: d, formSubmitTexts: g, appSearchTexts: m, customSelectTexts: x, children: N }) => {
|
|
63
|
+
const E = P(() => ({
|
|
64
64
|
axiosInstance: s,
|
|
65
65
|
cookieDomain: e,
|
|
66
66
|
LinkComponent: t,
|
|
@@ -69,10 +69,10 @@ const V = () => {
|
|
|
69
69
|
axiosTexts: r,
|
|
70
70
|
confirmTexts: i,
|
|
71
71
|
formValidationTexts: c,
|
|
72
|
-
homeDashboardTexts:
|
|
73
|
-
formSubmitTexts:
|
|
74
|
-
appSearchTexts:
|
|
75
|
-
customSelectTexts:
|
|
72
|
+
homeDashboardTexts: d,
|
|
73
|
+
formSubmitTexts: g,
|
|
74
|
+
appSearchTexts: m,
|
|
75
|
+
customSelectTexts: x
|
|
76
76
|
}), [
|
|
77
77
|
s,
|
|
78
78
|
e,
|
|
@@ -82,28 +82,28 @@ const V = () => {
|
|
|
82
82
|
r,
|
|
83
83
|
i,
|
|
84
84
|
c,
|
|
85
|
-
|
|
86
|
-
E,
|
|
85
|
+
d,
|
|
87
86
|
g,
|
|
88
|
-
|
|
87
|
+
m,
|
|
88
|
+
x
|
|
89
89
|
]);
|
|
90
|
-
return /* @__PURE__ */ a.jsx(T.Provider, { value:
|
|
91
|
-
/* @__PURE__ */ a.jsx(
|
|
92
|
-
|
|
90
|
+
return /* @__PURE__ */ a.jsx(T.Provider, { value: E, children: /* @__PURE__ */ a.jsx(J, { children: /* @__PURE__ */ a.jsxs(Q, { children: [
|
|
91
|
+
/* @__PURE__ */ a.jsx(j, {}),
|
|
92
|
+
N
|
|
93
93
|
] }) }) });
|
|
94
|
-
},
|
|
95
|
-
const [s, t] =
|
|
94
|
+
}, ce = ({ children: e }) => {
|
|
95
|
+
const [s, t] = C(!1), [n] = C(/* @__PURE__ */ new Set()), o = f((c) => {
|
|
96
96
|
n.add(c), t(!0);
|
|
97
|
-
}, [n]), r =
|
|
97
|
+
}, [n]), r = f((c) => {
|
|
98
98
|
n.delete(c), n.size === 0 && t(!1);
|
|
99
|
-
}, [n]), i =
|
|
100
|
-
return /* @__PURE__ */ a.jsxs(
|
|
101
|
-
s && /* @__PURE__ */ a.jsx(
|
|
99
|
+
}, [n]), i = P(() => ({ isLoading: s, startLoading: o, stopLoading: r }), [s, o, r]);
|
|
100
|
+
return /* @__PURE__ */ a.jsxs(O.Provider, { value: i, children: [
|
|
101
|
+
s && /* @__PURE__ */ a.jsx($, {}),
|
|
102
102
|
e
|
|
103
103
|
] });
|
|
104
104
|
};
|
|
105
105
|
/*! @azure/msal-browser v3.14.0 2024-05-07 */
|
|
106
|
-
class
|
|
106
|
+
class W {
|
|
107
107
|
/**
|
|
108
108
|
* Gets interaction status from event message
|
|
109
109
|
* @param message
|
|
@@ -111,40 +111,40 @@ class Q {
|
|
|
111
111
|
*/
|
|
112
112
|
static getInteractionStatusFromEvent(s, t) {
|
|
113
113
|
switch (s.eventType) {
|
|
114
|
-
case
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
if (s.interactionType ===
|
|
120
|
-
return
|
|
114
|
+
case u.LOGIN_START:
|
|
115
|
+
return l.Login;
|
|
116
|
+
case u.SSO_SILENT_START:
|
|
117
|
+
return l.SsoSilent;
|
|
118
|
+
case u.ACQUIRE_TOKEN_START:
|
|
119
|
+
if (s.interactionType === S.Redirect || s.interactionType === S.Popup)
|
|
120
|
+
return l.AcquireToken;
|
|
121
121
|
break;
|
|
122
|
-
case
|
|
123
|
-
return
|
|
124
|
-
case
|
|
125
|
-
return
|
|
126
|
-
case
|
|
127
|
-
case
|
|
128
|
-
if (t && t !==
|
|
122
|
+
case u.HANDLE_REDIRECT_START:
|
|
123
|
+
return l.HandleRedirect;
|
|
124
|
+
case u.LOGOUT_START:
|
|
125
|
+
return l.Logout;
|
|
126
|
+
case u.SSO_SILENT_SUCCESS:
|
|
127
|
+
case u.SSO_SILENT_FAILURE:
|
|
128
|
+
if (t && t !== l.SsoSilent)
|
|
129
129
|
break;
|
|
130
|
-
return
|
|
131
|
-
case
|
|
132
|
-
if (t && t !==
|
|
130
|
+
return l.None;
|
|
131
|
+
case u.LOGOUT_END:
|
|
132
|
+
if (t && t !== l.Logout)
|
|
133
133
|
break;
|
|
134
|
-
return
|
|
135
|
-
case
|
|
136
|
-
if (t && t !==
|
|
134
|
+
return l.None;
|
|
135
|
+
case u.HANDLE_REDIRECT_END:
|
|
136
|
+
if (t && t !== l.HandleRedirect)
|
|
137
137
|
break;
|
|
138
|
-
return
|
|
139
|
-
case
|
|
140
|
-
case
|
|
141
|
-
case
|
|
142
|
-
case
|
|
143
|
-
case
|
|
144
|
-
if (s.interactionType ===
|
|
145
|
-
if (t && t !==
|
|
138
|
+
return l.None;
|
|
139
|
+
case u.LOGIN_SUCCESS:
|
|
140
|
+
case u.LOGIN_FAILURE:
|
|
141
|
+
case u.ACQUIRE_TOKEN_SUCCESS:
|
|
142
|
+
case u.ACQUIRE_TOKEN_FAILURE:
|
|
143
|
+
case u.RESTORE_FROM_BFCACHE:
|
|
144
|
+
if (s.interactionType === S.Redirect || s.interactionType === S.Popup) {
|
|
145
|
+
if (t && t !== l.Login && t !== l.AcquireToken)
|
|
146
146
|
break;
|
|
147
|
-
return
|
|
147
|
+
return l.None;
|
|
148
148
|
}
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
@@ -152,47 +152,47 @@ class Q {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
155
|
-
const
|
|
155
|
+
const X = "@azure/msal-react", L = "2.0.16";
|
|
156
156
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
157
|
-
const
|
|
157
|
+
const y = {
|
|
158
158
|
UNBLOCK_INPROGRESS: "UNBLOCK_INPROGRESS",
|
|
159
159
|
EVENT: "EVENT"
|
|
160
|
-
},
|
|
160
|
+
}, Y = (e, s) => {
|
|
161
161
|
const { type: t, payload: n } = s;
|
|
162
162
|
let o = e.inProgress;
|
|
163
163
|
switch (t) {
|
|
164
|
-
case
|
|
165
|
-
e.inProgress ===
|
|
164
|
+
case y.UNBLOCK_INPROGRESS:
|
|
165
|
+
e.inProgress === l.Startup && (o = l.None, n.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));
|
|
166
166
|
break;
|
|
167
|
-
case
|
|
168
|
-
const i = n.message, c =
|
|
167
|
+
case y.EVENT:
|
|
168
|
+
const i = n.message, c = W.getInteractionStatusFromEvent(i, e.inProgress);
|
|
169
169
|
c && (n.logger.info(`MsalProvider - ${i.eventType} results in setting inProgress from ${e.inProgress} to ${c}`), o = c);
|
|
170
170
|
break;
|
|
171
171
|
default:
|
|
172
172
|
throw new Error(`Unknown action type: ${t}`);
|
|
173
173
|
}
|
|
174
174
|
const r = n.instance.getAllAccounts();
|
|
175
|
-
return o !== e.inProgress && !
|
|
175
|
+
return o !== e.inProgress && !p(r, e.accounts) ? {
|
|
176
176
|
...e,
|
|
177
177
|
inProgress: o,
|
|
178
178
|
accounts: r
|
|
179
179
|
} : o !== e.inProgress ? {
|
|
180
180
|
...e,
|
|
181
181
|
inProgress: o
|
|
182
|
-
} :
|
|
182
|
+
} : p(r, e.accounts) ? e : {
|
|
183
183
|
...e,
|
|
184
184
|
accounts: r
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
e.initializeWrapperLibrary(
|
|
187
|
+
function Z({ instance: e, children: s }) {
|
|
188
|
+
I(() => {
|
|
189
|
+
e.initializeWrapperLibrary(U.React, L);
|
|
190
190
|
}, [e]);
|
|
191
|
-
const t =
|
|
192
|
-
inProgress:
|
|
191
|
+
const t = P(() => e.getLogger().clone(X, L), [e]), [n, o] = H(Y, void 0, () => ({
|
|
192
|
+
inProgress: l.Startup,
|
|
193
193
|
accounts: e.getAllAccounts()
|
|
194
194
|
}));
|
|
195
|
-
|
|
195
|
+
I(() => {
|
|
196
196
|
const i = e.addEventCallback((c) => {
|
|
197
197
|
o({
|
|
198
198
|
payload: {
|
|
@@ -200,7 +200,7 @@ function X({ instance: e, children: s }) {
|
|
|
200
200
|
logger: t,
|
|
201
201
|
message: c
|
|
202
202
|
},
|
|
203
|
-
type:
|
|
203
|
+
type: y.EVENT
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
206
|
return t.verbose(`MsalProvider - Registered event callback with id: ${i}`), e.initialize().then(() => {
|
|
@@ -211,7 +211,7 @@ function X({ instance: e, children: s }) {
|
|
|
211
211
|
instance: e,
|
|
212
212
|
logger: t
|
|
213
213
|
},
|
|
214
|
-
type:
|
|
214
|
+
type: y.UNBLOCK_INPROGRESS
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
217
|
}).catch(() => {
|
|
@@ -225,59 +225,60 @@ function X({ instance: e, children: s }) {
|
|
|
225
225
|
accounts: n.accounts,
|
|
226
226
|
logger: t
|
|
227
227
|
};
|
|
228
|
-
return
|
|
228
|
+
return G.createElement(w.Provider, { value: r }, s);
|
|
229
229
|
}
|
|
230
|
-
const
|
|
231
|
-
const s =
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
}, []), [
|
|
235
|
-
let
|
|
236
|
-
return await s.get("/user/detail",
|
|
237
|
-
|
|
230
|
+
const ie = ({ children: e }) => {
|
|
231
|
+
const s = M(), { msalInstance: t } = R(A), [n, o] = C(!1), r = f(() => {
|
|
232
|
+
const E = localStorage.getItem("user") ?? null;
|
|
233
|
+
return E ? JSON.parse(E) : null;
|
|
234
|
+
}, []), [i, c] = C(r()), d = f(async (E) => {
|
|
235
|
+
let h = null;
|
|
236
|
+
return await s.get("/user/detail", E ? { headers: { Authorization: `Bearer ${E}` } } : void 0).then((b) => {
|
|
237
|
+
h = b.data;
|
|
238
238
|
}).catch(() => {
|
|
239
|
-
|
|
240
|
-
}), localStorage.setItem("user", JSON.stringify(
|
|
241
|
-
}, [s]),
|
|
239
|
+
h = null;
|
|
240
|
+
}), localStorage.setItem("user", JSON.stringify(h)), h;
|
|
241
|
+
}, [s]), g = f(() => {
|
|
242
242
|
localStorage.removeItem("user");
|
|
243
|
-
}, []),
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
243
|
+
}, []), m = f(async (E) => {
|
|
244
|
+
o(!0);
|
|
245
|
+
const h = await d(E);
|
|
246
|
+
return o(!1), h ? (c(h), !0) : !1;
|
|
247
|
+
}, [d]), x = f(() => {
|
|
248
|
+
g(), c(null);
|
|
249
|
+
}, [g]), N = P(() => ({ user: i, loggingInProgress: n, loginUser: m, logoutUser: x }), [i, m, x, n]);
|
|
250
|
+
return I(() => {
|
|
251
|
+
c(r());
|
|
252
|
+
}, [r]), I(() => {
|
|
252
253
|
if (t) {
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const
|
|
256
|
-
|
|
254
|
+
const E = t.addEventCallback((h) => {
|
|
255
|
+
if (h.eventType === u.ACQUIRE_TOKEN_SUCCESS && h.payload) {
|
|
256
|
+
const b = h.payload;
|
|
257
|
+
m(b.accessToken).catch(() => x());
|
|
257
258
|
}
|
|
258
259
|
});
|
|
259
260
|
return () => {
|
|
260
|
-
|
|
261
|
+
E && t.removeEventCallback(E);
|
|
261
262
|
};
|
|
262
263
|
}
|
|
263
264
|
return () => {
|
|
264
265
|
};
|
|
265
|
-
}, [t,
|
|
266
|
-
},
|
|
267
|
-
const { cookieDomain: s } =
|
|
266
|
+
}, [t, m, x]), /* @__PURE__ */ a.jsx(K.Provider, { value: N, children: e });
|
|
267
|
+
}, le = ({ ...e }) => {
|
|
268
|
+
const { cookieDomain: s } = R(T), [, t] = z(["Authorization"]), [n, o] = C(null), r = P(() => ({
|
|
268
269
|
useMsal: e.useMsal ?? !1,
|
|
269
270
|
storedToken: (n == null ? void 0 : n.token) ?? null,
|
|
270
271
|
msalInstance: e.useMsal ? e.msalInstance ?? null : null,
|
|
271
272
|
msalScopes: e.useMsal ? e.msalScopes ?? [] : []
|
|
272
273
|
}), [e, n]);
|
|
273
|
-
return
|
|
274
|
+
return I(() => {
|
|
274
275
|
if (e.useMsal) {
|
|
275
276
|
const i = e.msalInstance.addEventCallback((c) => {
|
|
276
|
-
if (c.eventType ===
|
|
277
|
-
const
|
|
278
|
-
e.msalInstance.setActiveAccount(
|
|
279
|
-
const
|
|
280
|
-
o({ token:
|
|
277
|
+
if (c.eventType === u.LOGIN_SUCCESS || c.eventType === u.ACQUIRE_TOKEN_SUCCESS && c.payload) {
|
|
278
|
+
const d = c.payload, g = d.account;
|
|
279
|
+
e.msalInstance.setActiveAccount(g);
|
|
280
|
+
const m = d.accessToken, x = d.expiresOn;
|
|
281
|
+
o({ token: m, expiresOn: x });
|
|
281
282
|
}
|
|
282
283
|
});
|
|
283
284
|
return () => {
|
|
@@ -286,7 +287,7 @@ const ae = ({ children: e }) => {
|
|
|
286
287
|
}
|
|
287
288
|
return () => {
|
|
288
289
|
};
|
|
289
|
-
}, [e]),
|
|
290
|
+
}, [e]), I(() => {
|
|
290
291
|
n && t("Authorization", n.token, {
|
|
291
292
|
path: "/",
|
|
292
293
|
secure: !0,
|
|
@@ -294,11 +295,11 @@ const ae = ({ children: e }) => {
|
|
|
294
295
|
domain: s,
|
|
295
296
|
expires: n.expiresOn ?? void 0
|
|
296
297
|
});
|
|
297
|
-
}, [n, s, t]), /* @__PURE__ */ a.jsx(
|
|
298
|
-
},
|
|
299
|
-
const { confirmTexts: e } =
|
|
300
|
-
return /* @__PURE__ */ a.jsx(
|
|
301
|
-
/* @__PURE__ */ a.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ a.jsx(
|
|
298
|
+
}, [n, s, t]), /* @__PURE__ */ a.jsx(A.Provider, { value: r, children: e.useMsal ? /* @__PURE__ */ a.jsx(Z, { instance: e.msalInstance, children: e.children }) : e.children });
|
|
299
|
+
}, ee = () => {
|
|
300
|
+
const { confirmTexts: e } = R(T), { onConfirm: s, onCancel: t, text: n, show: o } = V();
|
|
301
|
+
return /* @__PURE__ */ a.jsx(v, { show: o, size: "sm", centered: !0, onHide: t, children: /* @__PURE__ */ a.jsxs(v.Body, { children: [
|
|
302
|
+
/* @__PURE__ */ a.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ a.jsx(F, { variant: "h6", children: n }) }),
|
|
302
303
|
/* @__PURE__ */ a.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
303
304
|
/* @__PURE__ */ a.jsx("button", { type: "button", className: "btn btn-secondary w-100", onClick: t, children: e.no }),
|
|
304
305
|
/* @__PURE__ */ a.jsx("button", { type: "button", className: "btn btn-primary w-100 ml", onClick: s, children: e.yes })
|
|
@@ -306,12 +307,12 @@ const ae = ({ children: e }) => {
|
|
|
306
307
|
] }) });
|
|
307
308
|
};
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
A as AuthContext,
|
|
311
|
+
le as AuthProvider,
|
|
312
|
+
O as LoadingContext,
|
|
313
|
+
ce as LoadingProvider,
|
|
313
314
|
T as LuminusComponentsContext,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
ae as LuminusComponentsProvider,
|
|
316
|
+
K as UserContext,
|
|
317
|
+
ie as UserProvider
|
|
317
318
|
};
|