react-luminus-components 1.3.241 → 1.3.243
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/{Loading-_7loOvtU.js → Loading-fs5f8ADx.js} +1 -1
- package/dist/{Loading-D4SCMh6h.cjs → Loading-hsFF9JOi.cjs} +1 -1
- package/dist/contexts/form-disabled/FormDisabledContext.d.ts +2 -0
- package/dist/contexts/form-disabled/FormDisabledProvider.d.ts +8 -0
- package/dist/contexts/form-disabled/useFormDisabledContext.d.ts +5 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +130 -126
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +18 -18
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +17 -17
- package/dist/main.cjs.js +20 -20
- package/dist/main.es.js +3074 -3074
- package/dist/{nivo-bar.es-BeALe7Gh.js → nivo-bar.es-BktVhOxR.js} +5500 -5491
- package/dist/nivo-bar.es-Do6ebPru.cjs +279 -0
- package/dist/{useGetApiData-DrkjC5UR.js → useGetApiData-Bf7SUBhL.js} +7 -7
- package/dist/{useGetApiData-COPBCf8x.cjs → useGetApiData-DhwZ3wr2.cjs} +1 -1
- package/dist/{usePermissions-Blbd53ol.js → usePermissions-Boc9gBf0.js} +1 -1
- package/dist/{usePermissions-Daf3EkaR.cjs → usePermissions-CMa5mSdq.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +10 -10
- package/package.json +1 -1
- package/dist/nivo-bar.es-BebGU-zz.cjs +0 -279
package/dist/contexts.es.js
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Ee = (e, t, r) => t in e ?
|
|
3
|
-
var
|
|
4
|
-
import { t as N,
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var Ee = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var A = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { t as N, bs as Oe, j as f, bt as we, P as q, ah as Ie, bu as fe, an as S, ae as Pe, Q as G, bv as je, al as De, aj as ke, a_ as de, bw as me, a$ as Le, b0 as D, ak as He, bx as _e, az as se, by as $e, aR as pe, bz as oe, bA as Me, bB as Re, ai as Ue, aV as Ne } from "./nivo-bar.es-BktVhOxR.js";
|
|
5
|
+
import { ac as Bt } from "./nivo-bar.es-BktVhOxR.js";
|
|
6
|
+
import O, { useState as C, useCallback as m, useMemo as b, useContext as _, useEffect as j, useRef as he, Component as te } from "react";
|
|
7
|
+
import { EventType as Q } from "@azure/msal-browser";
|
|
8
|
+
import { MsalProvider as Fe } from "@azure/msal-react";
|
|
8
9
|
import "react-router-dom";
|
|
9
10
|
import "react-dom";
|
|
10
11
|
import "react-hook-form";
|
|
11
12
|
import "react-flexmonster";
|
|
12
|
-
import { L as
|
|
13
|
-
import { u as Ge } from "./useGetApiData-
|
|
13
|
+
import { L as ze } from "./Loading-fs5f8ADx.js";
|
|
14
|
+
import { u as Ge } from "./useGetApiData-Bf7SUBhL.js";
|
|
14
15
|
import { u as qe } from "./useLocalStorageState-Bt99kkCr.js";
|
|
15
|
-
function
|
|
16
|
+
function Ke(e) {
|
|
16
17
|
const t = N(e);
|
|
17
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
20
|
+
function Ve() {
|
|
21
|
+
return Ke(Date.now());
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function Be(e, t) {
|
|
23
24
|
const r = +N(e), [n, s] = [
|
|
24
25
|
+N(t.start),
|
|
25
26
|
+N(t.end)
|
|
26
27
|
].sort((o, l) => o - l);
|
|
27
28
|
return r >= n && r <= s;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function Ye() {
|
|
30
31
|
return Oe(Date.now());
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
+
const Je = ({ children: e }) => {
|
|
33
34
|
const [t, r] = C(!1), [n, s] = C(""), o = m((c) => {
|
|
34
35
|
r(!0), s(c);
|
|
35
36
|
}, []), l = m(() => {
|
|
36
37
|
r(!1);
|
|
37
|
-
}, []), a =
|
|
38
|
+
}, []), a = b(() => ({ show: t, text: n, showConfirm: o, hideConfirm: l }), [t, n, o, l]);
|
|
38
39
|
return /* @__PURE__ */ f.jsxs(we.Provider, { value: a, children: [
|
|
39
|
-
/* @__PURE__ */ f.jsx(
|
|
40
|
+
/* @__PURE__ */ f.jsx(Et, {}),
|
|
40
41
|
e
|
|
41
42
|
] });
|
|
42
43
|
}, Qe = () => {
|
|
43
|
-
const { texts: { confirm: e } } = _(
|
|
44
|
+
const { texts: { confirm: e } } = _(q), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = C(s.defaultValue ?? ""), a = m(() => {
|
|
44
45
|
n(null);
|
|
45
46
|
}, [n]), c = m((u) => {
|
|
46
47
|
u.preventDefault(), !(s.required && !o) && n(o);
|
|
@@ -48,33 +49,33 @@ const Ye = ({ children: e }) => {
|
|
|
48
49
|
j(() => {
|
|
49
50
|
t === !0 && l(s.defaultValue ?? "");
|
|
50
51
|
}, [t, s.defaultValue]);
|
|
51
|
-
const i =
|
|
52
|
+
const i = b(() => ({
|
|
52
53
|
value: o,
|
|
53
54
|
onChange: (u) => l(u.currentTarget.value),
|
|
54
55
|
className: "w-100",
|
|
55
56
|
autoFocus: !0,
|
|
56
57
|
tabIndex: 0
|
|
57
58
|
}), [o]);
|
|
58
|
-
return /* @__PURE__ */ f.jsxs(
|
|
59
|
-
/* @__PURE__ */ f.jsx(
|
|
59
|
+
return /* @__PURE__ */ f.jsxs(S, { show: t, size: "sm", centered: !0, onHide: a, children: [
|
|
60
|
+
/* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(S.Title, { children: r }) }),
|
|
60
61
|
/* @__PURE__ */ f.jsxs("form", { onSubmit: c, children: [
|
|
61
|
-
/* @__PURE__ */ f.jsxs(
|
|
62
|
+
/* @__PURE__ */ f.jsxs(S.Body, { children: [
|
|
62
63
|
s.input === "textarea" ? /* @__PURE__ */ f.jsx("textarea", { ...i, rows: 5 }) : void 0,
|
|
63
64
|
s.input === "input" ? /* @__PURE__ */ f.jsx(Pe, { ...i, type: s.type }) : void 0
|
|
64
65
|
] }),
|
|
65
|
-
/* @__PURE__ */ f.jsxs(
|
|
66
|
-
/* @__PURE__ */ f.jsx(
|
|
67
|
-
/* @__PURE__ */ f.jsx(
|
|
66
|
+
/* @__PURE__ */ f.jsxs(S.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
67
|
+
/* @__PURE__ */ f.jsx(G, { variant: "outlined", color: "secondary", onClick: a, className: "flex-grow-1", children: e.cancel }),
|
|
68
|
+
/* @__PURE__ */ f.jsx(G, { color: "primary", disabled: s.required && !o, type: "submit", className: "flex-grow-1", children: e.confirm })
|
|
68
69
|
] })
|
|
69
70
|
] })
|
|
70
71
|
] });
|
|
71
|
-
},
|
|
72
|
+
}, We = ({ children: e }) => {
|
|
72
73
|
const [t, r] = C(!1), [n, s] = C(""), [o, l] = C({ input: "textarea", type: "text" }), a = he(() => {
|
|
73
74
|
}), c = m((d) => {
|
|
74
75
|
s(d), r(!0);
|
|
75
76
|
}, []), i = m(() => {
|
|
76
77
|
r(!1);
|
|
77
|
-
}, []), u =
|
|
78
|
+
}, []), u = b(() => ({
|
|
78
79
|
isShown: t,
|
|
79
80
|
text: n,
|
|
80
81
|
showPrompt: c,
|
|
@@ -87,8 +88,8 @@ const Ye = ({ children: e }) => {
|
|
|
87
88
|
e,
|
|
88
89
|
/* @__PURE__ */ f.jsx(Qe, {})
|
|
89
90
|
] });
|
|
90
|
-
},
|
|
91
|
-
const c =
|
|
91
|
+
}, Rt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
|
|
92
|
+
const c = b(() => ({
|
|
92
93
|
axiosOptions: t,
|
|
93
94
|
cookieDomain: e,
|
|
94
95
|
language: r,
|
|
@@ -105,21 +106,21 @@ const Ye = ({ children: e }) => {
|
|
|
105
106
|
n,
|
|
106
107
|
l
|
|
107
108
|
]);
|
|
108
|
-
return /* @__PURE__ */ f.jsx(
|
|
109
|
+
return /* @__PURE__ */ f.jsx(q.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Je, { children: /* @__PURE__ */ f.jsxs(We, { children: [
|
|
109
110
|
/* @__PURE__ */ f.jsx(je, {}),
|
|
110
111
|
a
|
|
111
112
|
] }) }) });
|
|
112
|
-
},
|
|
113
|
+
}, Ut = ({ children: e }) => {
|
|
113
114
|
const [t, r] = C(!1), [n] = C(/* @__PURE__ */ new Set()), s = m((a) => {
|
|
114
115
|
n.add(a), r(!0);
|
|
115
116
|
}, [n]), o = m((a) => {
|
|
116
117
|
n.delete(a), n.size === 0 && r(!1);
|
|
117
|
-
}, [n]), l =
|
|
118
|
+
}, [n]), l = b(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
|
|
118
119
|
return /* @__PURE__ */ f.jsxs(De.Provider, { value: l, children: [
|
|
119
|
-
t && /* @__PURE__ */ f.jsx(
|
|
120
|
+
t && /* @__PURE__ */ f.jsx(ze, {}),
|
|
120
121
|
e
|
|
121
122
|
] });
|
|
122
|
-
},
|
|
123
|
+
}, Nt = ({ children: e }) => {
|
|
123
124
|
const t = ke(), { msalInstance: r } = _(de), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: l } = _(me), { getToken: a } = Le(), [c, i] = C(null), u = m(async () => {
|
|
124
125
|
const y = await a();
|
|
125
126
|
y && i(y.token);
|
|
@@ -164,7 +165,7 @@ const Ye = ({ children: e }) => {
|
|
|
164
165
|
j(() => {
|
|
165
166
|
if (r) {
|
|
166
167
|
const y = r.addEventCallback((v) => {
|
|
167
|
-
if (v.eventType ===
|
|
168
|
+
if (v.eventType === Q.LOGIN_SUCCESS && v.payload) {
|
|
168
169
|
const K = v.payload;
|
|
169
170
|
i(K.accessToken);
|
|
170
171
|
}
|
|
@@ -184,15 +185,15 @@ const Ye = ({ children: e }) => {
|
|
|
184
185
|
j(() => {
|
|
185
186
|
ne(c);
|
|
186
187
|
}, [c, n == null ? void 0 : n.id, ne]);
|
|
187
|
-
const
|
|
188
|
+
const Ae = b(() => ({
|
|
188
189
|
user: p.user,
|
|
189
190
|
userLoginState: p,
|
|
190
191
|
loginUser: E,
|
|
191
192
|
logoutUser: I
|
|
192
193
|
}), [p, E, I]);
|
|
193
|
-
return /* @__PURE__ */ f.jsx(He.Provider, { value:
|
|
194
|
-
},
|
|
195
|
-
const { cookieDomain: t } = _(
|
|
194
|
+
return /* @__PURE__ */ f.jsx(He.Provider, { value: Ae, children: e });
|
|
195
|
+
}, Ft = ({ ...e }) => {
|
|
196
|
+
const { cookieDomain: t } = _(q), [, r] = _e(["Authorization"]), n = b(() => ({
|
|
196
197
|
useMsal: e.useMsal ?? !1,
|
|
197
198
|
msalInstance: e.useMsal ? e.msalInstance ?? null : null,
|
|
198
199
|
msalScopes: e.useMsal ? e.msalScopes ?? [] : [],
|
|
@@ -201,7 +202,7 @@ const Ye = ({ children: e }) => {
|
|
|
201
202
|
return j(() => {
|
|
202
203
|
if (e.useMsal) {
|
|
203
204
|
const s = e.msalInstance.addEventCallback((o) => {
|
|
204
|
-
if (o.eventType ===
|
|
205
|
+
if (o.eventType === Q.LOGIN_SUCCESS || o.eventType === Q.ACQUIRE_TOKEN_SUCCESS && o.payload) {
|
|
205
206
|
const l = o.payload, a = l.account;
|
|
206
207
|
e.msalInstance.setActiveAccount(a);
|
|
207
208
|
const c = l.accessToken, i = l.expiresOn;
|
|
@@ -221,13 +222,13 @@ const Ye = ({ children: e }) => {
|
|
|
221
222
|
}
|
|
222
223
|
return () => {
|
|
223
224
|
};
|
|
224
|
-
}, [e, r, t]), /* @__PURE__ */ f.jsx(de.Provider, { value: n, children: e.useMsal ? /* @__PURE__ */ f.jsx(
|
|
225
|
-
},
|
|
226
|
-
const [r, n, s] = qe("user-delegation", null), o =
|
|
225
|
+
}, [e, r, t]), /* @__PURE__ */ f.jsx(de.Provider, { value: n, children: e.useMsal ? /* @__PURE__ */ f.jsx(Fe, { instance: e.msalInstance, children: e.children }) : e.children });
|
|
226
|
+
}, zt = ({ children: e, relativeEndpoint: t }) => {
|
|
227
|
+
const [r, n, s] = qe("user-delegation", null), o = b(() => {
|
|
227
228
|
if (!r)
|
|
228
229
|
return null;
|
|
229
|
-
const d = r.from ? se(r.from) :
|
|
230
|
-
return
|
|
230
|
+
const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) : Ve();
|
|
231
|
+
return Be(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
|
|
231
232
|
}, [r, n]), { data: l, setData: a, reloadData: c } = Ge(t, {
|
|
232
233
|
nullStateBeforeLoad: !1,
|
|
233
234
|
nullStateOnFail: !0
|
|
@@ -247,7 +248,7 @@ const Ye = ({ children: e }) => {
|
|
|
247
248
|
window.removeEventListener("focus", d);
|
|
248
249
|
};
|
|
249
250
|
}, [s, c]);
|
|
250
|
-
const u =
|
|
251
|
+
const u = b(() => ({
|
|
251
252
|
delegation: o,
|
|
252
253
|
setDelegation: n,
|
|
253
254
|
availableDelegations: l,
|
|
@@ -262,7 +263,7 @@ const Ye = ({ children: e }) => {
|
|
|
262
263
|
]);
|
|
263
264
|
return /* @__PURE__ */ f.jsx(me.Provider, { value: u, children: e });
|
|
264
265
|
};
|
|
265
|
-
var
|
|
266
|
+
var Ze = typeof Element < "u", Xe = typeof Map == "function", et = typeof Set == "function", tt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
266
267
|
function F(e, t) {
|
|
267
268
|
if (e === t) return !0;
|
|
268
269
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
@@ -275,7 +276,7 @@ function F(e, t) {
|
|
|
275
276
|
return !0;
|
|
276
277
|
}
|
|
277
278
|
var o;
|
|
278
|
-
if (
|
|
279
|
+
if (Xe && e instanceof Map && t instanceof Map) {
|
|
279
280
|
if (e.size !== t.size) return !1;
|
|
280
281
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
281
282
|
if (!t.has(n.value[0])) return !1;
|
|
@@ -283,13 +284,13 @@ function F(e, t) {
|
|
|
283
284
|
if (!F(n.value[1], t.get(n.value[0]))) return !1;
|
|
284
285
|
return !0;
|
|
285
286
|
}
|
|
286
|
-
if (
|
|
287
|
+
if (et && e instanceof Set && t instanceof Set) {
|
|
287
288
|
if (e.size !== t.size) return !1;
|
|
288
289
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
289
290
|
if (!t.has(n.value[0])) return !1;
|
|
290
291
|
return !0;
|
|
291
292
|
}
|
|
292
|
-
if (
|
|
293
|
+
if (tt && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
293
294
|
if (r = e.length, r != t.length) return !1;
|
|
294
295
|
for (n = r; n-- !== 0; )
|
|
295
296
|
if (e[n] !== t[n]) return !1;
|
|
@@ -301,7 +302,7 @@ function F(e, t) {
|
|
|
301
302
|
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
302
303
|
for (n = r; n-- !== 0; )
|
|
303
304
|
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
304
|
-
if (
|
|
305
|
+
if (Ze && e instanceof Element) return !1;
|
|
305
306
|
for (n = r; n-- !== 0; )
|
|
306
307
|
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !F(e[s[n]], t[s[n]]))
|
|
307
308
|
return !1;
|
|
@@ -309,7 +310,7 @@ function F(e, t) {
|
|
|
309
310
|
}
|
|
310
311
|
return e !== e && t !== t;
|
|
311
312
|
}
|
|
312
|
-
var
|
|
313
|
+
var rt = function(t, r) {
|
|
313
314
|
try {
|
|
314
315
|
return F(t, r);
|
|
315
316
|
} catch (n) {
|
|
@@ -318,8 +319,8 @@ var tt = function(t, r) {
|
|
|
318
319
|
throw n;
|
|
319
320
|
}
|
|
320
321
|
};
|
|
321
|
-
const
|
|
322
|
-
var
|
|
322
|
+
const nt = /* @__PURE__ */ pe(rt);
|
|
323
|
+
var st = function(t, r, n, s) {
|
|
323
324
|
var o = n ? n.call(s, t, r) : void 0;
|
|
324
325
|
if (o !== void 0)
|
|
325
326
|
return !!o;
|
|
@@ -340,7 +341,7 @@ var nt = function(t, r, n, s) {
|
|
|
340
341
|
}
|
|
341
342
|
return !0;
|
|
342
343
|
};
|
|
343
|
-
const
|
|
344
|
+
const ot = /* @__PURE__ */ pe(st);
|
|
344
345
|
var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ye || {}), V = {
|
|
345
346
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
346
347
|
script: { type: ["application/ld+json"] },
|
|
@@ -372,7 +373,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
372
373
|
"http-equiv": "httpEquiv",
|
|
373
374
|
itemprop: "itemProp",
|
|
374
375
|
tabindex: "tabIndex"
|
|
375
|
-
},
|
|
376
|
+
}, at = Object.entries(re).reduce(
|
|
376
377
|
(e, [t, r]) => (e[r] = t, e),
|
|
377
378
|
{}
|
|
378
379
|
), x = "data-rh", L = {
|
|
@@ -389,7 +390,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
389
390
|
return n[t];
|
|
390
391
|
}
|
|
391
392
|
return null;
|
|
392
|
-
},
|
|
393
|
+
}, it = (e) => {
|
|
393
394
|
let t = H(
|
|
394
395
|
e,
|
|
395
396
|
"title"
|
|
@@ -400,8 +401,8 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
400
401
|
return r.replace(/%s/g, () => t);
|
|
401
402
|
const n = H(e, L.DEFAULT_TITLE);
|
|
402
403
|
return t || n || void 0;
|
|
403
|
-
},
|
|
404
|
-
}), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}),
|
|
404
|
+
}, lt = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
405
|
+
}), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ct = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
405
406
|
if (!r.length) {
|
|
406
407
|
const s = Object.keys(n);
|
|
407
408
|
for (let o = 0; o < s.length; o += 1) {
|
|
@@ -411,9 +412,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
411
412
|
}
|
|
412
413
|
}
|
|
413
414
|
return r;
|
|
414
|
-
}, []),
|
|
415
|
+
}, []), ut = (e) => console && typeof console.warn == "function" && console.warn(e), M = (e, t, r) => {
|
|
415
416
|
const n = {};
|
|
416
|
-
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" &&
|
|
417
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ut(
|
|
417
418
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
418
419
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
419
420
|
const l = {};
|
|
@@ -439,15 +440,15 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
439
440
|
}
|
|
440
441
|
return s;
|
|
441
442
|
}, []).reverse();
|
|
442
|
-
},
|
|
443
|
+
}, ft = (e, t) => {
|
|
443
444
|
if (Array.isArray(e) && e.length) {
|
|
444
445
|
for (let r = 0; r < e.length; r += 1)
|
|
445
446
|
if (e[r][t])
|
|
446
447
|
return !0;
|
|
447
448
|
}
|
|
448
449
|
return !1;
|
|
449
|
-
},
|
|
450
|
-
baseTag:
|
|
450
|
+
}, dt = (e) => ({
|
|
451
|
+
baseTag: ct([
|
|
451
452
|
"href"
|
|
452
453
|
/* HREF */
|
|
453
454
|
], e),
|
|
@@ -480,7 +481,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
480
481
|
"innerHTML"
|
|
481
482
|
/* INNER_HTML */
|
|
482
483
|
], e),
|
|
483
|
-
onChangeClientState:
|
|
484
|
+
onChangeClientState: lt(e),
|
|
484
485
|
scriptTags: M(
|
|
485
486
|
"script",
|
|
486
487
|
[
|
|
@@ -494,56 +495,56 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
494
495
|
"cssText"
|
|
495
496
|
/* CSS_TEXT */
|
|
496
497
|
], e),
|
|
497
|
-
title:
|
|
498
|
+
title: it(e),
|
|
498
499
|
titleAttributes: B("titleAttributes", e),
|
|
499
|
-
prioritizeSeoTags:
|
|
500
|
-
}), ge = (e) => Array.isArray(e) ? e.join("") : e,
|
|
500
|
+
prioritizeSeoTags: ft(e, L.PRIORITIZE_SEO_TAGS)
|
|
501
|
+
}), ge = (e) => Array.isArray(e) ? e.join("") : e, mt = (e, t) => {
|
|
501
502
|
const r = Object.keys(e);
|
|
502
503
|
for (let n = 0; n < r.length; n += 1)
|
|
503
504
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
504
505
|
return !0;
|
|
505
506
|
return !1;
|
|
506
507
|
}, Y = (e, t) => Array.isArray(e) ? e.reduce(
|
|
507
|
-
(r, n) => (
|
|
508
|
+
(r, n) => (mt(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
508
509
|
{ priority: [], default: [] }
|
|
509
510
|
) : { default: e, priority: [] }, ie = (e, t) => ({
|
|
510
511
|
...e,
|
|
511
512
|
[t]: void 0
|
|
512
|
-
}),
|
|
513
|
+
}), pt = [
|
|
513
514
|
"noscript",
|
|
514
515
|
"script",
|
|
515
516
|
"style"
|
|
516
517
|
/* STYLE */
|
|
517
|
-
],
|
|
518
|
+
], W = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Te = (e) => Object.keys(e).reduce((t, r) => {
|
|
518
519
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
519
520
|
return t ? `${t} ${n}` : n;
|
|
520
|
-
}, ""),
|
|
521
|
+
}, ""), ht = (e, t, r, n) => {
|
|
521
522
|
const s = Te(r), o = ge(t);
|
|
522
|
-
return s ? `<${e} ${x}="true" ${s}>${
|
|
523
|
+
return s ? `<${e} ${x}="true" ${s}>${W(
|
|
523
524
|
o,
|
|
524
525
|
n
|
|
525
|
-
)}</${e}>` : `<${e} ${x}="true">${
|
|
526
|
+
)}</${e}>` : `<${e} ${x}="true">${W(
|
|
526
527
|
o,
|
|
527
528
|
n
|
|
528
529
|
)}</${e}>`;
|
|
529
|
-
},
|
|
530
|
+
}, yt = (e, t, r = !0) => t.reduce((n, s) => {
|
|
530
531
|
const o = s, l = Object.keys(o).filter(
|
|
531
532
|
(i) => !(i === "innerHTML" || i === "cssText")
|
|
532
533
|
).reduce((i, u) => {
|
|
533
|
-
const d = typeof o[u] > "u" ? u : `${u}="${
|
|
534
|
+
const d = typeof o[u] > "u" ? u : `${u}="${W(o[u], r)}"`;
|
|
534
535
|
return i ? `${i} ${d}` : d;
|
|
535
|
-
}, ""), a = o.innerHTML || o.cssText || "", c =
|
|
536
|
+
}, ""), a = o.innerHTML || o.cssText || "", c = pt.indexOf(e) === -1;
|
|
536
537
|
return `${n}<${e} ${x}="true" ${l}${c ? "/>" : `>${a}</${e}>`}`;
|
|
537
538
|
}, ""), ve = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
538
539
|
const s = re[n];
|
|
539
540
|
return r[s || n] = e[n], r;
|
|
540
|
-
}, t),
|
|
541
|
+
}, t), gt = (e, t, r) => {
|
|
541
542
|
const n = {
|
|
542
543
|
key: t,
|
|
543
544
|
[x]: !0
|
|
544
545
|
}, s = ve(r, n);
|
|
545
546
|
return [O.createElement("title", s, t)];
|
|
546
|
-
},
|
|
547
|
+
}, z = (e, t) => t.map((r, n) => {
|
|
547
548
|
const s = {
|
|
548
549
|
key: n,
|
|
549
550
|
[x]: !0
|
|
@@ -560,8 +561,8 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
560
561
|
switch (e) {
|
|
561
562
|
case "title":
|
|
562
563
|
return {
|
|
563
|
-
toComponent: () =>
|
|
564
|
-
toString: () =>
|
|
564
|
+
toComponent: () => gt(e, t.title, t.titleAttributes),
|
|
565
|
+
toString: () => ht(e, t.title, t.titleAttributes, r)
|
|
565
566
|
};
|
|
566
567
|
case "bodyAttributes":
|
|
567
568
|
case "htmlAttributes":
|
|
@@ -571,18 +572,18 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
571
572
|
};
|
|
572
573
|
default:
|
|
573
574
|
return {
|
|
574
|
-
toComponent: () =>
|
|
575
|
-
toString: () =>
|
|
575
|
+
toComponent: () => z(e, t),
|
|
576
|
+
toString: () => yt(e, t, r)
|
|
576
577
|
};
|
|
577
578
|
}
|
|
578
|
-
},
|
|
579
|
+
}, Tt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
579
580
|
const s = Y(e, V.meta), o = Y(t, V.link), l = Y(r, V.script);
|
|
580
581
|
return {
|
|
581
582
|
priorityMethods: {
|
|
582
583
|
toComponent: () => [
|
|
583
|
-
...
|
|
584
|
-
...
|
|
585
|
-
...
|
|
584
|
+
...z("meta", s.priority),
|
|
585
|
+
...z("link", o.priority),
|
|
586
|
+
...z("script", l.priority)
|
|
586
587
|
],
|
|
587
588
|
toString: () => (
|
|
588
589
|
// generate all the tags as strings and concatenate them
|
|
@@ -597,7 +598,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
597
598
|
linkTags: o.default,
|
|
598
599
|
scriptTags: l.default
|
|
599
600
|
};
|
|
600
|
-
},
|
|
601
|
+
}, vt = (e) => {
|
|
601
602
|
const {
|
|
602
603
|
baseTag: t,
|
|
603
604
|
bodyAttributes: r,
|
|
@@ -614,7 +615,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
614
615
|
},
|
|
615
616
|
toString: () => ""
|
|
616
617
|
};
|
|
617
|
-
return i && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } =
|
|
618
|
+
return i && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = Tt(e)), {
|
|
618
619
|
priority: p,
|
|
619
620
|
base: T("base", t, n),
|
|
620
621
|
bodyAttributes: T("bodyAttributes", r, n),
|
|
@@ -626,12 +627,12 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
626
627
|
style: T("style", l, n),
|
|
627
628
|
title: T("title", { title: a, titleAttributes: c }, n)
|
|
628
629
|
};
|
|
629
|
-
},
|
|
630
|
+
}, Z = vt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
|
|
630
631
|
constructor(e, t) {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
A(this, "instances", []);
|
|
633
|
+
A(this, "canUseDOM", xe);
|
|
634
|
+
A(this, "context");
|
|
635
|
+
A(this, "value", {
|
|
635
636
|
setHelmet: (e) => {
|
|
636
637
|
this.context.helmet = e;
|
|
637
638
|
},
|
|
@@ -646,7 +647,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
646
647
|
}
|
|
647
648
|
}
|
|
648
649
|
});
|
|
649
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
650
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = Z({
|
|
650
651
|
baseTag: [],
|
|
651
652
|
bodyAttributes: {},
|
|
652
653
|
encodeSpecialCharacters: !0,
|
|
@@ -660,16 +661,16 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
660
661
|
titleAttributes: {}
|
|
661
662
|
}));
|
|
662
663
|
}
|
|
663
|
-
},
|
|
664
|
+
}, xt = {}, Ce = O.createContext(xt), P, be = (P = class extends te {
|
|
664
665
|
constructor(r) {
|
|
665
666
|
super(r);
|
|
666
|
-
|
|
667
|
+
A(this, "helmetData");
|
|
667
668
|
this.helmetData = new X(this.props.context || {}, P.canUseDOM);
|
|
668
669
|
}
|
|
669
670
|
render() {
|
|
670
671
|
return /* @__PURE__ */ O.createElement(Ce.Provider, { value: this.helmetData.value }, this.props.children);
|
|
671
672
|
}
|
|
672
|
-
},
|
|
673
|
+
}, A(P, "canUseDOM", xe), P), k = (e, t) => {
|
|
673
674
|
const r = document.head || document.querySelector(
|
|
674
675
|
"head"
|
|
675
676
|
/* HEAD */
|
|
@@ -709,7 +710,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
709
710
|
for (let a = o.length - 1; a >= 0; a -= 1)
|
|
710
711
|
r.removeAttribute(o[a]);
|
|
711
712
|
s.length === o.length ? r.removeAttribute(x) : r.getAttribute(x) !== l.join(",") && r.setAttribute(x, l.join(","));
|
|
712
|
-
},
|
|
713
|
+
}, Ct = (e, t) => {
|
|
713
714
|
typeof e < "u" && document.title !== e && (document.title = ge(e)), ee("title", t);
|
|
714
715
|
}, le = (e, t) => {
|
|
715
716
|
const {
|
|
@@ -725,7 +726,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
725
726
|
title: d,
|
|
726
727
|
titleAttributes: h
|
|
727
728
|
} = e;
|
|
728
|
-
ee("body", n), ee("html", s),
|
|
729
|
+
ee("body", n), ee("html", s), Ct(d, h);
|
|
729
730
|
const p = {
|
|
730
731
|
baseTag: k("base", r),
|
|
731
732
|
linkTags: k("link", o),
|
|
@@ -738,19 +739,19 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
738
739
|
const { newTags: E, oldTags: I } = p[w];
|
|
739
740
|
E.length && (g[w] = E), I.length && ($[w] = p[w].oldTags);
|
|
740
741
|
}), t && t(), c(e, g, $);
|
|
741
|
-
}, R = null,
|
|
742
|
+
}, R = null, bt = (e) => {
|
|
742
743
|
R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
|
|
743
744
|
le(e, () => {
|
|
744
745
|
R = null;
|
|
745
746
|
});
|
|
746
747
|
}) : (le(e), R = null);
|
|
747
|
-
}, At =
|
|
748
|
+
}, At = bt, ce = class extends te {
|
|
748
749
|
constructor() {
|
|
749
750
|
super(...arguments);
|
|
750
|
-
|
|
751
|
+
A(this, "rendered", !1);
|
|
751
752
|
}
|
|
752
753
|
shouldComponentUpdate(t) {
|
|
753
|
-
return !
|
|
754
|
+
return !ot(t, this.props);
|
|
754
755
|
}
|
|
755
756
|
componentDidUpdate() {
|
|
756
757
|
this.emitChange();
|
|
@@ -762,13 +763,13 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
762
763
|
emitChange() {
|
|
763
764
|
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
764
765
|
let n = null;
|
|
765
|
-
const s =
|
|
766
|
+
const s = dt(
|
|
766
767
|
t.get().map((o) => {
|
|
767
768
|
const l = { ...o.props };
|
|
768
769
|
return delete l.context, l;
|
|
769
770
|
})
|
|
770
771
|
);
|
|
771
|
-
|
|
772
|
+
be.canUseDOM ? At(s) : Z && (n = Z(s)), r(n);
|
|
772
773
|
}
|
|
773
774
|
// componentWillMount will be deprecated
|
|
774
775
|
// for SSR, initialize on first render
|
|
@@ -783,9 +784,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
783
784
|
render() {
|
|
784
785
|
return this.init(), null;
|
|
785
786
|
}
|
|
786
|
-
},
|
|
787
|
+
}, J, St = (J = class extends te {
|
|
787
788
|
shouldComponentUpdate(e) {
|
|
788
|
-
return !
|
|
789
|
+
return !nt(ie(this.props, "helmetData"), ie(e, "helmetData"));
|
|
789
790
|
}
|
|
790
791
|
mapNestedChildrenToProps(e, t) {
|
|
791
792
|
if (!t)
|
|
@@ -868,7 +869,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
868
869
|
return O.Children.forEach(e, (n) => {
|
|
869
870
|
if (!n || !n.props)
|
|
870
871
|
return;
|
|
871
|
-
const { children: s, ...o } = n.props, l = Object.keys(o).reduce((c, i) => (c[
|
|
872
|
+
const { children: s, ...o } = n.props, l = Object.keys(o).reduce((c, i) => (c[at[i] || i] = o[i], c), {});
|
|
872
873
|
let { type: a } = n;
|
|
873
874
|
switch (typeof a == "symbol" ? a = a.toString() : this.warnOnInvalidChildren(n, s), a) {
|
|
874
875
|
case "Symbol(react.fragment)":
|
|
@@ -901,11 +902,11 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
901
902
|
}
|
|
902
903
|
return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(Ce.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
|
|
903
904
|
}
|
|
904
|
-
},
|
|
905
|
+
}, A(J, "defaultProps", {
|
|
905
906
|
defer: !0,
|
|
906
907
|
encodeSpecialCharacters: !0,
|
|
907
908
|
prioritizeSeoTags: !1
|
|
908
|
-
}),
|
|
909
|
+
}), J);
|
|
909
910
|
const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
|
|
910
911
|
const [n, s] = C([
|
|
911
912
|
ue(r ?? "", e)
|
|
@@ -913,13 +914,13 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children:
|
|
|
913
914
|
s((u) => [...u, ue(r ?? "", i)]);
|
|
914
915
|
}, [r]), l = m(() => {
|
|
915
916
|
s((i) => i.length > 1 ? i.slice(0, -1) : i);
|
|
916
|
-
}, [s]), a =
|
|
917
|
-
return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(
|
|
917
|
+
}, [s]), a = b(() => n.at(-1) ?? "", [n]), c = b(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
|
|
918
|
+
return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(be, { children: [
|
|
918
919
|
/* @__PURE__ */ f.jsx(St, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
|
|
919
920
|
t
|
|
920
921
|
] }) });
|
|
921
|
-
},
|
|
922
|
-
const { texts: { confirm: e } } = _(
|
|
922
|
+
}, qt = ({ children: e, disabled: t }) => /* @__PURE__ */ f.jsx(Re.Provider, { value: t, children: e }), Et = () => {
|
|
923
|
+
const { texts: { confirm: e } } = _(q), { onConfirm: t, onCancel: r, text: n, show: s } = Ue(), o = m((l) => {
|
|
923
924
|
switch (l.key) {
|
|
924
925
|
case "Enter":
|
|
925
926
|
l.stopPropagation(), t();
|
|
@@ -929,25 +930,28 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children:
|
|
|
929
930
|
break;
|
|
930
931
|
}
|
|
931
932
|
}, [t, r]);
|
|
932
|
-
return
|
|
933
|
-
/* @__PURE__ */ f.jsx(
|
|
934
|
-
/* @__PURE__ */ f.jsx(
|
|
935
|
-
/* @__PURE__ */ f.jsx(
|
|
936
|
-
/* @__PURE__ */ f.jsx(
|
|
933
|
+
return Ne(o), /* @__PURE__ */ f.jsxs(S, { show: s, size: "sm", centered: !0, onHide: r, children: [
|
|
934
|
+
/* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(S.Title, { children: n }) }),
|
|
935
|
+
/* @__PURE__ */ f.jsx(S.Body, { children: /* @__PURE__ */ f.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
936
|
+
/* @__PURE__ */ f.jsx(G, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: r, children: e.no }),
|
|
937
|
+
/* @__PURE__ */ f.jsx(G, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
|
|
937
938
|
] }) })
|
|
938
939
|
] });
|
|
939
940
|
};
|
|
940
941
|
export {
|
|
941
942
|
de as AuthContext,
|
|
942
|
-
|
|
943
|
+
Ft as AuthProvider,
|
|
943
944
|
me as DelegationContext,
|
|
944
|
-
|
|
945
|
+
zt as DelegationProvider,
|
|
946
|
+
Re as FormDisabledContext,
|
|
947
|
+
qt as FormDisabledProvider,
|
|
945
948
|
Me as HelmetContext,
|
|
946
949
|
Gt as HelmetProvider,
|
|
947
950
|
De as LoadingContext,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
+
Ut as LoadingProvider,
|
|
952
|
+
q as LuminusComponentsContext,
|
|
953
|
+
Rt as LuminusComponentsProvider,
|
|
951
954
|
He as UserContext,
|
|
952
|
-
|
|
955
|
+
Nt as UserProvider,
|
|
956
|
+
Bt as useFormDisabledContext
|
|
953
957
|
};
|