react-luminus-components 1.4.56 → 1.4.58
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/README.md +349 -349
- package/dist/.vite/manifest.json +30 -30
- package/dist/{FormDisabledProvider-CbNzR9vC.js → FormDisabledProvider-CIv-aGtv.js} +1 -1
- package/dist/FormDisabledProvider-X5m4Ty4e.cjs +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +166 -168
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +47 -47
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +24 -24
- package/dist/main.cjs.js +49 -49
- package/dist/main.es.js +10256 -10245
- package/dist/models/texts/ChartTexts.d.ts +4 -0
- package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
- package/dist/{ShortcutLinksContext-D-3_1QWF.js → nivo-bar.es-B3fjtFrd.js} +12180 -12181
- package/dist/{ShortcutLinksContext-DTVPEbpS.cjs → nivo-bar.es-BrUuHr_r.cjs} +7 -7
- package/dist/style.css +1 -1
- package/dist/useLocalStorageState-VlOdjbMB.cjs +1 -0
- package/dist/{useLocalStorageState-CSuGfUFh.js → useLocalStorageState-qjMdpyEs.js} +10 -10
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +25 -25
- package/dist/variables.scss +165 -165
- package/package.json +123 -123
- package/dist/FormDisabledProvider-IJvvekVE.cjs +0 -1
- package/dist/useLocalStorageState-CjYiTOYJ.cjs +0 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var E = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { t as F,
|
|
5
|
-
import {
|
|
4
|
+
import { t as F, bD as we, j as d, bE as De, P as z, ai as ke, bF as me, $ as O, ae as Pe, Q as G, bG as je, am as Ie, ak as Le, b4 as pe, bt as he, b6 as I, al as Me, bH as He, az as oe, bI as _e, aV as ye, bJ as ae, bK as $e, aj as Re, aZ as Ue, a0 as Fe } from "./nivo-bar.es-B3fjtFrd.js";
|
|
5
|
+
import { bL as Bt, ab as Yt } from "./nivo-bar.es-B3fjtFrd.js";
|
|
6
6
|
import D, { useState as S, useCallback as h, useMemo as T, useContext as _, useEffect as j, useRef as te, Component as re } from "react";
|
|
7
7
|
import { EventType as W, InteractionRequiredAuthError as Ne } from "@azure/msal-browser";
|
|
8
8
|
import { MsalProvider as qe } from "@azure/msal-react";
|
|
@@ -10,9 +10,9 @@ import "react-router-dom";
|
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "react-hook-form";
|
|
12
12
|
import "react-flexmonster";
|
|
13
|
-
import { L as Ge, b as ze } from "./FormDisabledProvider-
|
|
14
|
-
import { F as Wt } from "./FormDisabledProvider-
|
|
15
|
-
import { a as Ke, u as Ve } from "./useLocalStorageState-
|
|
13
|
+
import { L as Ge, b as ze } from "./FormDisabledProvider-CIv-aGtv.js";
|
|
14
|
+
import { F as Wt } from "./FormDisabledProvider-CIv-aGtv.js";
|
|
15
|
+
import { a as Ke, u as Ve } from "./useLocalStorageState-qjMdpyEs.js";
|
|
16
16
|
function Be(e) {
|
|
17
17
|
const t = F(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
@@ -24,44 +24,42 @@ function Je(e, t) {
|
|
|
24
24
|
const n = +F(e), [r, s] = [
|
|
25
25
|
+F(t.start),
|
|
26
26
|
+F(t.end)
|
|
27
|
-
].sort((o,
|
|
27
|
+
].sort((o, l) => o - l);
|
|
28
28
|
return n >= r && n <= s;
|
|
29
29
|
}
|
|
30
30
|
function We() {
|
|
31
31
|
return we(Date.now());
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
const [t, n] = S(!1), [r, s] = S(""), [o,
|
|
35
|
-
n(!0), s(u),
|
|
36
|
-
}, []),
|
|
33
|
+
const Ze = ({ children: e }) => {
|
|
34
|
+
const [t, n] = S(!1), [r, s] = S(""), [o, l] = S(void 0), i = h((u, f) => {
|
|
35
|
+
n(!0), s(u), l(f);
|
|
36
|
+
}, []), c = h(() => {
|
|
37
37
|
n(!1);
|
|
38
|
-
}, []), a = T(() => ({ show: t, text: r, showConfirm: i, hideConfirm:
|
|
38
|
+
}, []), a = T(() => ({ show: t, text: r, showConfirm: i, hideConfirm: c, textSm: o }), [t, r, i, c, o]);
|
|
39
39
|
return /* @__PURE__ */ d.jsxs(De.Provider, { value: a, children: [
|
|
40
40
|
/* @__PURE__ */ d.jsx(wt, {}),
|
|
41
41
|
e
|
|
42
42
|
] });
|
|
43
|
-
},
|
|
44
|
-
const { texts: { confirm: e } } = _(z), { isShown: t, text: n, onFinish: r } =
|
|
43
|
+
}, Qe = () => {
|
|
44
|
+
const { texts: { confirm: e } } = _(z), { isShown: t, text: n, onFinish: r } = ke(), { options: s } = _(me), [o, l] = S(s.defaultValue ?? ""), i = h(() => {
|
|
45
45
|
r(null);
|
|
46
|
-
}, [r]),
|
|
47
|
-
u.preventDefault(), !(s.required && !o) && r(o);
|
|
48
|
-
}, [r, s.required, o])
|
|
49
|
-
j(() => {
|
|
50
|
-
t === !0 && c(s.defaultValue ?? "");
|
|
51
|
-
}, [t, s.defaultValue]);
|
|
52
|
-
const a = T(() => ({
|
|
46
|
+
}, [r]), c = h((u) => {
|
|
47
|
+
u.preventDefault(), !(s.required && !o) && (r(o), l(""));
|
|
48
|
+
}, [r, s.required, o]), a = T(() => ({
|
|
53
49
|
value: o,
|
|
54
|
-
onChange: (u) =>
|
|
50
|
+
onChange: (u) => l(u.currentTarget.value),
|
|
55
51
|
className: "w-100",
|
|
56
52
|
autoFocus: !0,
|
|
57
53
|
tabIndex: 0
|
|
58
54
|
}), [o]);
|
|
59
|
-
return
|
|
55
|
+
return j(() => {
|
|
56
|
+
t === !0 && l(s.defaultValue ?? "");
|
|
57
|
+
}, [t, s.defaultValue]), /* @__PURE__ */ d.jsxs(O, { show: t, size: "sm", centered: !0, onHide: i, children: [
|
|
60
58
|
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: /* @__PURE__ */ d.jsx(O.Title, { children: n }) }),
|
|
61
|
-
/* @__PURE__ */ d.jsxs("form", { onSubmit:
|
|
59
|
+
/* @__PURE__ */ d.jsxs("form", { onSubmit: c, onKeyDown: (u) => u.stopPropagation(), children: [
|
|
62
60
|
/* @__PURE__ */ d.jsxs(O.Body, { children: [
|
|
63
61
|
s.input === "textarea" ? /* @__PURE__ */ d.jsx("textarea", { ...a, rows: 5 }) : void 0,
|
|
64
|
-
s.input === "input" ? /* @__PURE__ */ d.jsx(
|
|
62
|
+
s.input === "input" ? /* @__PURE__ */ d.jsx(Pe, { ...a, type: s.type }) : void 0
|
|
65
63
|
] }),
|
|
66
64
|
/* @__PURE__ */ d.jsxs(O.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
67
65
|
/* @__PURE__ */ d.jsx(G, { variant: "outlined", color: "secondary", onClick: i, className: "flex-grow-1", children: e.cancel }),
|
|
@@ -69,34 +67,34 @@ const Qe = ({ children: e }) => {
|
|
|
69
67
|
] })
|
|
70
68
|
] })
|
|
71
69
|
] });
|
|
72
|
-
},
|
|
73
|
-
const [t, n] = S(!1), [r, s] = S(""), [o,
|
|
74
|
-
}),
|
|
70
|
+
}, Xe = ({ children: e }) => {
|
|
71
|
+
const [t, n] = S(!1), [r, s] = S(""), [o, l] = S({ input: "textarea", type: "text" }), i = te(() => {
|
|
72
|
+
}), c = h((f) => {
|
|
75
73
|
s(f), n(!0);
|
|
76
74
|
}, []), a = h(() => {
|
|
77
75
|
n(!1);
|
|
78
76
|
}, []), u = T(() => ({
|
|
79
77
|
isShown: t,
|
|
80
78
|
text: r,
|
|
81
|
-
showPrompt:
|
|
79
|
+
showPrompt: c,
|
|
82
80
|
hidePrompt: a,
|
|
83
81
|
resolveRef: i,
|
|
84
82
|
options: o,
|
|
85
|
-
setOptions:
|
|
86
|
-
}), [t, r,
|
|
83
|
+
setOptions: l
|
|
84
|
+
}), [t, r, c, a, o]);
|
|
87
85
|
return /* @__PURE__ */ d.jsxs(me.Provider, { value: u, children: [
|
|
88
86
|
e,
|
|
89
|
-
/* @__PURE__ */ d.jsx(
|
|
87
|
+
/* @__PURE__ */ d.jsx(Qe, {})
|
|
90
88
|
] });
|
|
91
|
-
}, Ut = ({ cookieDomain: e, axiosOptions: t, language: n, texts: r, ProjectIconComponent: s, localizationContext: o, chartColorPalette:
|
|
92
|
-
const
|
|
89
|
+
}, Ut = ({ cookieDomain: e, axiosOptions: t, language: n, texts: r, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: i }) => {
|
|
90
|
+
const c = T(() => ({
|
|
93
91
|
axiosOptions: t,
|
|
94
92
|
cookieDomain: e,
|
|
95
93
|
language: n,
|
|
96
94
|
texts: r,
|
|
97
95
|
ProjectIconComponent: s,
|
|
98
96
|
localizationContext: o,
|
|
99
|
-
chartColorPalette:
|
|
97
|
+
chartColorPalette: l
|
|
100
98
|
}), [
|
|
101
99
|
t,
|
|
102
100
|
e,
|
|
@@ -104,9 +102,9 @@ const Qe = ({ children: e }) => {
|
|
|
104
102
|
s,
|
|
105
103
|
o,
|
|
106
104
|
r,
|
|
107
|
-
|
|
105
|
+
l
|
|
108
106
|
]);
|
|
109
|
-
return /* @__PURE__ */ d.jsx(z.Provider, { value:
|
|
107
|
+
return /* @__PURE__ */ d.jsx(z.Provider, { value: c, children: /* @__PURE__ */ d.jsx(Ze, { children: /* @__PURE__ */ d.jsxs(Xe, { children: [
|
|
110
108
|
/* @__PURE__ */ d.jsx(je, {}),
|
|
111
109
|
i
|
|
112
110
|
] }) }) });
|
|
@@ -115,13 +113,13 @@ const Qe = ({ children: e }) => {
|
|
|
115
113
|
r.add(i), n(!0);
|
|
116
114
|
}, [r]), o = h((i) => {
|
|
117
115
|
r.delete(i), r.size === 0 && n(!1);
|
|
118
|
-
}, [r]),
|
|
119
|
-
return /* @__PURE__ */ d.jsxs(Ie.Provider, { value:
|
|
116
|
+
}, [r]), l = T(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
|
|
117
|
+
return /* @__PURE__ */ d.jsxs(Ie.Provider, { value: l, children: [
|
|
120
118
|
t && /* @__PURE__ */ d.jsx(Ge, {}),
|
|
121
119
|
e
|
|
122
120
|
] });
|
|
123
121
|
}, Nt = ({ children: e }) => {
|
|
124
|
-
const t =
|
|
122
|
+
const t = Le(), { msalInstance: n, getToken: r } = _(pe), { delegation: s, setDelegation: o, setAvailableDelegations: l, refreshAvailableDelegations: i } = _(he), [c, a] = S(null), u = h(async () => {
|
|
125
123
|
const g = await r();
|
|
126
124
|
g && a(g.token);
|
|
127
125
|
}, [r]);
|
|
@@ -135,38 +133,38 @@ const Qe = ({ children: e }) => {
|
|
|
135
133
|
state: m ? I.LOGGED_IN : I.LOGGING_IN,
|
|
136
134
|
user: m
|
|
137
135
|
}), v = h(async (g) => {
|
|
138
|
-
let
|
|
136
|
+
let A = null;
|
|
139
137
|
return await t.get("/user/detail", g ? { headers: { Authorization: `Bearer ${g}` } } : void 0).then((K) => {
|
|
140
|
-
|
|
138
|
+
A = K.data;
|
|
141
139
|
}).catch(() => {
|
|
142
|
-
|
|
143
|
-
}),
|
|
140
|
+
A = null;
|
|
141
|
+
}), A;
|
|
144
142
|
}, [t]), C = h(() => {
|
|
145
143
|
localStorage.removeItem("user"), y({
|
|
146
144
|
state: I.LOGGED_OUT,
|
|
147
145
|
user: null
|
|
148
|
-
}), o(null),
|
|
149
|
-
}, [
|
|
146
|
+
}), o(null), l(null);
|
|
147
|
+
}, [l, o]), w = h(async (g) => {
|
|
150
148
|
y({
|
|
151
149
|
state: I.LOGGING_IN,
|
|
152
150
|
user: null
|
|
153
151
|
});
|
|
154
|
-
const
|
|
155
|
-
return
|
|
152
|
+
const A = await v(g);
|
|
153
|
+
return A ? (y({
|
|
156
154
|
state: I.LOGGED_IN,
|
|
157
|
-
user:
|
|
158
|
-
}), localStorage.setItem("user", JSON.stringify(
|
|
155
|
+
user: A
|
|
156
|
+
}), localStorage.setItem("user", JSON.stringify(A)), await i(), !0) : (y({
|
|
159
157
|
state: I.LOGIN_FAILED,
|
|
160
158
|
user: null
|
|
161
159
|
}), !1);
|
|
162
|
-
}, [v, i]),
|
|
160
|
+
}, [v, i]), k = h(() => {
|
|
163
161
|
C();
|
|
164
162
|
}, [C]);
|
|
165
163
|
j(() => {
|
|
166
164
|
if (n) {
|
|
167
|
-
const g = n.addEventCallback((
|
|
168
|
-
if (
|
|
169
|
-
const K =
|
|
165
|
+
const g = n.addEventCallback((A) => {
|
|
166
|
+
if (A.eventType === W.LOGIN_SUCCESS && A.payload) {
|
|
167
|
+
const K = A.payload;
|
|
170
168
|
a(K.accessToken);
|
|
171
169
|
}
|
|
172
170
|
});
|
|
@@ -176,22 +174,22 @@ const Qe = ({ children: e }) => {
|
|
|
176
174
|
}
|
|
177
175
|
return () => {
|
|
178
176
|
};
|
|
179
|
-
}, [n, w,
|
|
177
|
+
}, [n, w, k]);
|
|
180
178
|
const se = h(async (g) => {
|
|
181
179
|
g && await w(g).catch(() => {
|
|
182
|
-
|
|
180
|
+
k(), o(null);
|
|
183
181
|
});
|
|
184
|
-
}, [w,
|
|
182
|
+
}, [w, k, o]);
|
|
185
183
|
j(() => {
|
|
186
|
-
se(
|
|
187
|
-
}, [
|
|
184
|
+
se(c);
|
|
185
|
+
}, [c, s == null ? void 0 : s.id, se]);
|
|
188
186
|
const Ce = T(() => ({
|
|
189
187
|
user: p.user,
|
|
190
188
|
userLoginState: p,
|
|
191
189
|
loginUser: w,
|
|
192
|
-
logoutUser:
|
|
193
|
-
}), [p, w,
|
|
194
|
-
return /* @__PURE__ */ d.jsx(
|
|
190
|
+
logoutUser: k
|
|
191
|
+
}), [p, w, k]);
|
|
192
|
+
return /* @__PURE__ */ d.jsx(Me.Provider, { value: Ce, children: e });
|
|
195
193
|
}, qt = ({ ...e }) => {
|
|
196
194
|
const { cookieDomain: t } = _(z), [, n] = He(["Authorization"]), r = T(
|
|
197
195
|
() => e.useMsal ? e.msalInstance : null,
|
|
@@ -205,16 +203,16 @@ const Qe = ({ children: e }) => {
|
|
|
205
203
|
() => e.useMsal ? e.msalExtraScopes : [],
|
|
206
204
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
207
205
|
[e.useMsal, e.useMsal ? e.msalExtraScopes : null]
|
|
208
|
-
),
|
|
206
|
+
), l = te(null), i = h(() => {
|
|
209
207
|
const f = localStorage.getItem("token");
|
|
210
208
|
return f ? {
|
|
211
209
|
token: f,
|
|
212
210
|
expiresOn: ze(new Date(Date.now()), 1)
|
|
213
211
|
} : null;
|
|
214
|
-
}, []),
|
|
212
|
+
}, []), c = h(async () => {
|
|
215
213
|
var y;
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
214
|
+
if (l.current)
|
|
215
|
+
return l.current;
|
|
218
216
|
const f = r == null ? void 0 : r.getActiveAccount(), m = f ?? ((y = r == null ? void 0 : r.getAllAccounts()) == null ? void 0 : y.at(0)) ?? void 0;
|
|
219
217
|
if (!m)
|
|
220
218
|
return null;
|
|
@@ -233,10 +231,10 @@ const Qe = ({ children: e }) => {
|
|
|
233
231
|
}), null;
|
|
234
232
|
throw v;
|
|
235
233
|
}).finally(() => {
|
|
236
|
-
|
|
234
|
+
l.current = null;
|
|
237
235
|
});
|
|
238
|
-
return
|
|
239
|
-
}, [r, s, o]), a = h(async () => e.useMsal ?
|
|
236
|
+
return l.current = p ?? null, p ?? null;
|
|
237
|
+
}, [r, s, o]), a = h(async () => e.useMsal ? c() : i(), [i, c, e.useMsal]), u = T(() => ({
|
|
240
238
|
useMsal: e.useMsal ?? !1,
|
|
241
239
|
msalInstance: r,
|
|
242
240
|
msalScopes: s,
|
|
@@ -273,37 +271,37 @@ const Qe = ({ children: e }) => {
|
|
|
273
271
|
return null;
|
|
274
272
|
const f = n.from ? oe(n.from) : We(), m = n.to ? oe(n.to) : Ye();
|
|
275
273
|
return Je(new Date(Date.now()), { start: f, end: m }) ? n : (r(null), null);
|
|
276
|
-
}, [n, r]), { data:
|
|
274
|
+
}, [n, r]), { data: l, setData: i, reloadData: c } = Ve(t, {
|
|
277
275
|
nullStateBeforeLoad: !1,
|
|
278
276
|
nullStateOnFail: !0
|
|
279
277
|
}), a = te(null);
|
|
280
278
|
j(() => {
|
|
281
279
|
const f = () => {
|
|
282
|
-
|
|
280
|
+
c(), a.current = window.setTimeout(f, _e() + 5e3);
|
|
283
281
|
};
|
|
284
282
|
return f(), () => {
|
|
285
283
|
a.current !== null && window.clearTimeout(a.current);
|
|
286
284
|
};
|
|
287
|
-
}, [
|
|
285
|
+
}, [c]), j(() => {
|
|
288
286
|
const f = () => {
|
|
289
287
|
s();
|
|
290
288
|
};
|
|
291
289
|
return window.addEventListener("focus", f), () => {
|
|
292
290
|
window.removeEventListener("focus", f);
|
|
293
291
|
};
|
|
294
|
-
}, [s,
|
|
292
|
+
}, [s, c]);
|
|
295
293
|
const u = T(() => ({
|
|
296
294
|
delegation: o,
|
|
297
295
|
setDelegation: r,
|
|
298
|
-
availableDelegations:
|
|
296
|
+
availableDelegations: l,
|
|
299
297
|
setAvailableDelegations: i,
|
|
300
|
-
refreshAvailableDelegations:
|
|
298
|
+
refreshAvailableDelegations: c
|
|
301
299
|
}), [
|
|
302
300
|
o,
|
|
303
301
|
r,
|
|
304
|
-
|
|
302
|
+
l,
|
|
305
303
|
i,
|
|
306
|
-
|
|
304
|
+
c
|
|
307
305
|
]);
|
|
308
306
|
return /* @__PURE__ */ d.jsx(he.Provider, { value: u, children: e });
|
|
309
307
|
};
|
|
@@ -372,12 +370,12 @@ var at = function(t, n, r, s) {
|
|
|
372
370
|
return !0;
|
|
373
371
|
if (typeof t != "object" || !t || typeof n != "object" || !n)
|
|
374
372
|
return !1;
|
|
375
|
-
var
|
|
376
|
-
if (
|
|
373
|
+
var l = Object.keys(t), i = Object.keys(n);
|
|
374
|
+
if (l.length !== i.length)
|
|
377
375
|
return !1;
|
|
378
|
-
for (var
|
|
379
|
-
var u =
|
|
380
|
-
if (!
|
|
376
|
+
for (var c = Object.prototype.hasOwnProperty.bind(n), a = 0; a < l.length; a++) {
|
|
377
|
+
var u = l[a];
|
|
378
|
+
if (!c(u))
|
|
381
379
|
return !1;
|
|
382
380
|
var f = t[u], m = n[u];
|
|
383
381
|
if (o = r ? r.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
|
|
@@ -420,7 +418,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
420
418
|
}, lt = Object.entries(ne).reduce(
|
|
421
419
|
(e, [t, n]) => (e[n] = t, e),
|
|
422
420
|
{}
|
|
423
|
-
),
|
|
421
|
+
), b = "data-rh", M = {
|
|
424
422
|
DEFAULT_TITLE: "defaultTitle",
|
|
425
423
|
DEFER: "defer",
|
|
426
424
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
@@ -440,12 +438,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
440
438
|
"title"
|
|
441
439
|
/* TITLE */
|
|
442
440
|
);
|
|
443
|
-
const n = H(e,
|
|
441
|
+
const n = H(e, M.TITLE_TEMPLATE);
|
|
444
442
|
if (Array.isArray(t) && (t = t.join("")), n && t)
|
|
445
443
|
return n.replace(/%s/g, () => t);
|
|
446
|
-
const r = H(e,
|
|
444
|
+
const r = H(e, M.DEFAULT_TITLE);
|
|
447
445
|
return t || r || void 0;
|
|
448
|
-
}, ut = (e) => H(e,
|
|
446
|
+
}, ut = (e) => H(e, M.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
449
447
|
}), B = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, r) => ({ ...n, ...r }), {}), ft = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, r) => {
|
|
450
448
|
if (!n.length) {
|
|
451
449
|
const s = Object.keys(r);
|
|
@@ -461,24 +459,24 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
461
459
|
return n.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && dt(
|
|
462
460
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
463
461
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
464
|
-
const
|
|
465
|
-
o.filter((
|
|
462
|
+
const l = {};
|
|
463
|
+
o.filter((c) => {
|
|
466
464
|
let a;
|
|
467
|
-
const u = Object.keys(
|
|
465
|
+
const u = Object.keys(c);
|
|
468
466
|
for (let m = 0; m < u.length; m += 1) {
|
|
469
467
|
const p = u[m], y = p.toLowerCase();
|
|
470
|
-
t.indexOf(y) !== -1 && !(a === "rel" &&
|
|
468
|
+
t.indexOf(y) !== -1 && !(a === "rel" && c[a].toLowerCase() === "canonical") && !(y === "rel" && c[y].toLowerCase() === "stylesheet") && (a = y), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
|
|
471
469
|
}
|
|
472
|
-
if (!a || !
|
|
470
|
+
if (!a || !c[a])
|
|
473
471
|
return !1;
|
|
474
|
-
const f =
|
|
475
|
-
return r[a] || (r[a] = {}),
|
|
476
|
-
}).reverse().forEach((
|
|
477
|
-
const i = Object.keys(
|
|
478
|
-
for (let
|
|
479
|
-
const a = i[
|
|
472
|
+
const f = c[a].toLowerCase();
|
|
473
|
+
return r[a] || (r[a] = {}), l[a] || (l[a] = {}), r[a][f] ? !1 : (l[a][f] = !0, !0);
|
|
474
|
+
}).reverse().forEach((c) => s.push(c));
|
|
475
|
+
const i = Object.keys(l);
|
|
476
|
+
for (let c = 0; c < i.length; c += 1) {
|
|
477
|
+
const a = i[c], u = {
|
|
480
478
|
...r[a],
|
|
481
|
-
...
|
|
479
|
+
...l[a]
|
|
482
480
|
};
|
|
483
481
|
r[a] = u;
|
|
484
482
|
}
|
|
@@ -497,8 +495,8 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
497
495
|
/* HREF */
|
|
498
496
|
], e),
|
|
499
497
|
bodyAttributes: B("bodyAttributes", e),
|
|
500
|
-
defer: H(e,
|
|
501
|
-
encode: H(e,
|
|
498
|
+
defer: H(e, M.DEFER),
|
|
499
|
+
encode: H(e, M.ENCODE_SPECIAL_CHARACTERS),
|
|
502
500
|
htmlAttributes: B("htmlAttributes", e),
|
|
503
501
|
linkTags: $(
|
|
504
502
|
"link",
|
|
@@ -541,7 +539,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
541
539
|
], e),
|
|
542
540
|
title: ct(e),
|
|
543
541
|
titleAttributes: B("titleAttributes", e),
|
|
544
|
-
prioritizeSeoTags: mt(e,
|
|
542
|
+
prioritizeSeoTags: mt(e, M.PRIORITIZE_SEO_TAGS)
|
|
545
543
|
}), Te = (e) => Array.isArray(e) ? e.join("") : e, ht = (e, t) => {
|
|
546
544
|
const n = Object.keys(e);
|
|
547
545
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -559,45 +557,45 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
559
557
|
"script",
|
|
560
558
|
"style"
|
|
561
559
|
/* STYLE */
|
|
562
|
-
],
|
|
560
|
+
], Z = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), ve = (e) => Object.keys(e).reduce((t, n) => {
|
|
563
561
|
const r = typeof e[n] < "u" ? `${n}="${e[n]}"` : `${n}`;
|
|
564
562
|
return t ? `${t} ${r}` : r;
|
|
565
563
|
}, ""), gt = (e, t, n, r) => {
|
|
566
564
|
const s = ve(n), o = Te(t);
|
|
567
|
-
return s ? `<${e} ${
|
|
565
|
+
return s ? `<${e} ${b}="true" ${s}>${Z(
|
|
568
566
|
o,
|
|
569
567
|
r
|
|
570
|
-
)}</${e}>` : `<${e} ${
|
|
568
|
+
)}</${e}>` : `<${e} ${b}="true">${Z(
|
|
571
569
|
o,
|
|
572
570
|
r
|
|
573
571
|
)}</${e}>`;
|
|
574
572
|
}, Tt = (e, t, n = !0) => t.reduce((r, s) => {
|
|
575
|
-
const o = s,
|
|
573
|
+
const o = s, l = Object.keys(o).filter(
|
|
576
574
|
(a) => !(a === "innerHTML" || a === "cssText")
|
|
577
575
|
).reduce((a, u) => {
|
|
578
|
-
const f = typeof o[u] > "u" ? u : `${u}="${
|
|
576
|
+
const f = typeof o[u] > "u" ? u : `${u}="${Z(o[u], n)}"`;
|
|
579
577
|
return a ? `${a} ${f}` : f;
|
|
580
|
-
}, ""), i = o.innerHTML || o.cssText || "",
|
|
581
|
-
return `${r}<${e} ${
|
|
578
|
+
}, ""), i = o.innerHTML || o.cssText || "", c = yt.indexOf(e) === -1;
|
|
579
|
+
return `${r}<${e} ${b}="true" ${l}${c ? "/>" : `>${i}</${e}>`}`;
|
|
582
580
|
}, ""), xe = (e, t = {}) => Object.keys(e).reduce((n, r) => {
|
|
583
581
|
const s = ne[r];
|
|
584
582
|
return n[s || r] = e[r], n;
|
|
585
583
|
}, t), vt = (e, t, n) => {
|
|
586
584
|
const r = {
|
|
587
585
|
key: t,
|
|
588
|
-
[
|
|
586
|
+
[b]: !0
|
|
589
587
|
}, s = xe(n, r);
|
|
590
588
|
return [D.createElement("title", s, t)];
|
|
591
589
|
}, q = (e, t) => t.map((n, r) => {
|
|
592
590
|
const s = {
|
|
593
591
|
key: r,
|
|
594
|
-
[
|
|
592
|
+
[b]: !0
|
|
595
593
|
};
|
|
596
594
|
return Object.keys(n).forEach((o) => {
|
|
597
595
|
const i = ne[o] || o;
|
|
598
596
|
if (i === "innerHTML" || i === "cssText") {
|
|
599
|
-
const
|
|
600
|
-
s.dangerouslySetInnerHTML = { __html:
|
|
597
|
+
const c = n.innerHTML || n.cssText;
|
|
598
|
+
s.dangerouslySetInnerHTML = { __html: c };
|
|
601
599
|
} else
|
|
602
600
|
s[i] = n[o];
|
|
603
601
|
}), D.createElement(e, s);
|
|
@@ -621,13 +619,13 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
621
619
|
};
|
|
622
620
|
}
|
|
623
621
|
}, xt = ({ metaTags: e, linkTags: t, scriptTags: n, encode: r }) => {
|
|
624
|
-
const s = Y(e, V.meta), o = Y(t, V.link),
|
|
622
|
+
const s = Y(e, V.meta), o = Y(t, V.link), l = Y(n, V.script);
|
|
625
623
|
return {
|
|
626
624
|
priorityMethods: {
|
|
627
625
|
toComponent: () => [
|
|
628
626
|
...q("meta", s.priority),
|
|
629
627
|
...q("link", o.priority),
|
|
630
|
-
...q("script",
|
|
628
|
+
...q("script", l.priority)
|
|
631
629
|
],
|
|
632
630
|
toString: () => (
|
|
633
631
|
// generate all the tags as strings and concatenate them
|
|
@@ -635,12 +633,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
635
633
|
"link",
|
|
636
634
|
o.priority,
|
|
637
635
|
r
|
|
638
|
-
)} ${x("script",
|
|
636
|
+
)} ${x("script", l.priority, r)}`
|
|
639
637
|
)
|
|
640
638
|
},
|
|
641
639
|
metaTags: s.default,
|
|
642
640
|
linkTags: o.default,
|
|
643
|
-
scriptTags:
|
|
641
|
+
scriptTags: l.default
|
|
644
642
|
};
|
|
645
643
|
}, St = (e) => {
|
|
646
644
|
const {
|
|
@@ -649,9 +647,9 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
649
647
|
encode: r = !0,
|
|
650
648
|
htmlAttributes: s,
|
|
651
649
|
noscriptTags: o,
|
|
652
|
-
styleTags:
|
|
650
|
+
styleTags: l,
|
|
653
651
|
title: i = "",
|
|
654
|
-
titleAttributes:
|
|
652
|
+
titleAttributes: c,
|
|
655
653
|
prioritizeSeoTags: a
|
|
656
654
|
} = e;
|
|
657
655
|
let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
|
|
@@ -668,10 +666,10 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
668
666
|
meta: x("meta", f, r),
|
|
669
667
|
noscript: x("noscript", o, r),
|
|
670
668
|
script: x("script", m, r),
|
|
671
|
-
style: x("style",
|
|
672
|
-
title: x("title", { title: i, titleAttributes:
|
|
669
|
+
style: x("style", l, r),
|
|
670
|
+
title: x("title", { title: i, titleAttributes: c }, r)
|
|
673
671
|
};
|
|
674
|
-
},
|
|
672
|
+
}, Q = St, U = [], Se = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
|
|
675
673
|
constructor(e, t) {
|
|
676
674
|
E(this, "instances", []);
|
|
677
675
|
E(this, "canUseDOM", Se);
|
|
@@ -691,7 +689,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
691
689
|
}
|
|
692
690
|
}
|
|
693
691
|
});
|
|
694
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
692
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = Q({
|
|
695
693
|
baseTag: [],
|
|
696
694
|
bodyAttributes: {},
|
|
697
695
|
encodeSpecialCharacters: !0,
|
|
@@ -705,37 +703,37 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
705
703
|
titleAttributes: {}
|
|
706
704
|
}));
|
|
707
705
|
}
|
|
708
|
-
},
|
|
706
|
+
}, At = {}, Ae = D.createContext(At), P, be = (P = class extends re {
|
|
709
707
|
constructor(n) {
|
|
710
708
|
super(n);
|
|
711
709
|
E(this, "helmetData");
|
|
712
|
-
this.helmetData = new
|
|
710
|
+
this.helmetData = new X(this.props.context || {}, P.canUseDOM);
|
|
713
711
|
}
|
|
714
712
|
render() {
|
|
715
|
-
return /* @__PURE__ */ D.createElement(
|
|
713
|
+
return /* @__PURE__ */ D.createElement(Ae.Provider, { value: this.helmetData.value }, this.props.children);
|
|
716
714
|
}
|
|
717
|
-
}, E(
|
|
715
|
+
}, E(P, "canUseDOM", Se), P), L = (e, t) => {
|
|
718
716
|
const n = document.head || document.querySelector(
|
|
719
717
|
"head"
|
|
720
718
|
/* HEAD */
|
|
721
|
-
), r = n.querySelectorAll(`${e}[${
|
|
722
|
-
let
|
|
719
|
+
), r = n.querySelectorAll(`${e}[${b}]`), s = [].slice.call(r), o = [];
|
|
720
|
+
let l;
|
|
723
721
|
return t && t.length && t.forEach((i) => {
|
|
724
|
-
const
|
|
722
|
+
const c = document.createElement(e);
|
|
725
723
|
for (const a in i)
|
|
726
724
|
if (Object.prototype.hasOwnProperty.call(i, a))
|
|
727
725
|
if (a === "innerHTML")
|
|
728
|
-
|
|
726
|
+
c.innerHTML = i.innerHTML;
|
|
729
727
|
else if (a === "cssText")
|
|
730
|
-
|
|
728
|
+
c.styleSheet ? c.styleSheet.cssText = i.cssText : c.appendChild(document.createTextNode(i.cssText));
|
|
731
729
|
else {
|
|
732
730
|
const u = a, f = typeof i[u] > "u" ? "" : i[u];
|
|
733
|
-
|
|
731
|
+
c.setAttribute(a, f);
|
|
734
732
|
}
|
|
735
|
-
|
|
733
|
+
c.setAttribute(b, "true"), s.some((a, u) => (l = u, c.isEqualNode(a))) ? s.splice(l, 1) : o.push(c);
|
|
736
734
|
}), s.forEach((i) => {
|
|
737
|
-
var
|
|
738
|
-
return (
|
|
735
|
+
var c;
|
|
736
|
+
return (c = i.parentNode) == null ? void 0 : c.removeChild(i);
|
|
739
737
|
}), o.forEach((i) => n.appendChild(i)), {
|
|
740
738
|
oldTags: s,
|
|
741
739
|
newTags: o
|
|
@@ -744,17 +742,17 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
744
742
|
const n = document.getElementsByTagName(e)[0];
|
|
745
743
|
if (!n)
|
|
746
744
|
return;
|
|
747
|
-
const r = n.getAttribute(
|
|
748
|
-
for (const i of
|
|
749
|
-
const
|
|
750
|
-
n.getAttribute(i) !==
|
|
745
|
+
const r = n.getAttribute(b), s = r ? r.split(",") : [], o = [...s], l = Object.keys(t);
|
|
746
|
+
for (const i of l) {
|
|
747
|
+
const c = t[i] || "";
|
|
748
|
+
n.getAttribute(i) !== c && n.setAttribute(i, c), s.indexOf(i) === -1 && s.push(i);
|
|
751
749
|
const a = o.indexOf(i);
|
|
752
750
|
a !== -1 && o.splice(a, 1);
|
|
753
751
|
}
|
|
754
752
|
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
755
753
|
n.removeAttribute(o[i]);
|
|
756
|
-
s.length === o.length ? n.removeAttribute(
|
|
757
|
-
},
|
|
754
|
+
s.length === o.length ? n.removeAttribute(b) : n.getAttribute(b) !== l.join(",") && n.setAttribute(b, l.join(","));
|
|
755
|
+
}, bt = (e, t) => {
|
|
758
756
|
typeof e < "u" && document.title !== e && (document.title = Te(e)), ee("title", t);
|
|
759
757
|
}, ce = (e, t) => {
|
|
760
758
|
const {
|
|
@@ -762,27 +760,27 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
762
760
|
bodyAttributes: r,
|
|
763
761
|
htmlAttributes: s,
|
|
764
762
|
linkTags: o,
|
|
765
|
-
metaTags:
|
|
763
|
+
metaTags: l,
|
|
766
764
|
noscriptTags: i,
|
|
767
|
-
onChangeClientState:
|
|
765
|
+
onChangeClientState: c,
|
|
768
766
|
scriptTags: a,
|
|
769
767
|
styleTags: u,
|
|
770
768
|
title: f,
|
|
771
769
|
titleAttributes: m
|
|
772
770
|
} = e;
|
|
773
|
-
ee("body", r), ee("html", s),
|
|
771
|
+
ee("body", r), ee("html", s), bt(f, m);
|
|
774
772
|
const p = {
|
|
775
|
-
baseTag:
|
|
776
|
-
linkTags:
|
|
777
|
-
metaTags:
|
|
778
|
-
noscriptTags:
|
|
779
|
-
scriptTags:
|
|
780
|
-
styleTags:
|
|
773
|
+
baseTag: L("base", n),
|
|
774
|
+
linkTags: L("link", o),
|
|
775
|
+
metaTags: L("meta", l),
|
|
776
|
+
noscriptTags: L("noscript", i),
|
|
777
|
+
scriptTags: L("script", a),
|
|
778
|
+
styleTags: L("style", u)
|
|
781
779
|
}, y = {}, v = {};
|
|
782
780
|
Object.keys(p).forEach((C) => {
|
|
783
|
-
const { newTags: w, oldTags:
|
|
784
|
-
w.length && (y[C] = w),
|
|
785
|
-
}), t && t(),
|
|
781
|
+
const { newTags: w, oldTags: k } = p[C];
|
|
782
|
+
w.length && (y[C] = w), k.length && (v[C] = p[C].oldTags);
|
|
783
|
+
}), t && t(), c(e, y, v);
|
|
786
784
|
}, R = null, Ct = (e) => {
|
|
787
785
|
R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
|
|
788
786
|
ce(e, () => {
|
|
@@ -809,11 +807,11 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
809
807
|
let r = null;
|
|
810
808
|
const s = pt(
|
|
811
809
|
t.get().map((o) => {
|
|
812
|
-
const
|
|
813
|
-
return delete
|
|
810
|
+
const l = { ...o.props };
|
|
811
|
+
return delete l.context, l;
|
|
814
812
|
})
|
|
815
813
|
);
|
|
816
|
-
|
|
814
|
+
be.canUseDOM ? Et(s) : Q && (r = Q(s)), n(r);
|
|
817
815
|
}
|
|
818
816
|
// componentWillMount will be deprecated
|
|
819
817
|
// for SSR, initialize on first render
|
|
@@ -913,7 +911,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
913
911
|
return D.Children.forEach(e, (r) => {
|
|
914
912
|
if (!r || !r.props)
|
|
915
913
|
return;
|
|
916
|
-
const { children: s, ...o } = r.props,
|
|
914
|
+
const { children: s, ...o } = r.props, l = Object.keys(o).reduce((c, a) => (c[lt[a] || a] = o[a], c), {});
|
|
917
915
|
let { type: i } = r;
|
|
918
916
|
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(r, s), i) {
|
|
919
917
|
case "Symbol(react.fragment)":
|
|
@@ -927,12 +925,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
927
925
|
n = this.flattenArrayTypeChildren(
|
|
928
926
|
r,
|
|
929
927
|
n,
|
|
930
|
-
|
|
928
|
+
l,
|
|
931
929
|
s
|
|
932
930
|
);
|
|
933
931
|
break;
|
|
934
932
|
default:
|
|
935
|
-
t = this.mapObjectTypeChildren(r, t,
|
|
933
|
+
t = this.mapObjectTypeChildren(r, t, l, s);
|
|
936
934
|
break;
|
|
937
935
|
}
|
|
938
936
|
}), this.mapArrayTypeChildrenToProps(n, t);
|
|
@@ -940,11 +938,11 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
940
938
|
render() {
|
|
941
939
|
const { children: e, ...t } = this.props;
|
|
942
940
|
let n = { ...t }, { helmetData: r } = t;
|
|
943
|
-
if (e && (n = this.mapChildrenToProps(e, n)), r && !(r instanceof
|
|
941
|
+
if (e && (n = this.mapChildrenToProps(e, n)), r && !(r instanceof X)) {
|
|
944
942
|
const s = r;
|
|
945
|
-
r = new
|
|
943
|
+
r = new X(s.context, !0), delete n.helmetData;
|
|
946
944
|
}
|
|
947
|
-
return r ? /* @__PURE__ */ D.createElement(ue, { ...n, context: r.value }) : /* @__PURE__ */ D.createElement(
|
|
945
|
+
return r ? /* @__PURE__ */ D.createElement(ue, { ...n, context: r.value }) : /* @__PURE__ */ D.createElement(Ae.Consumer, null, (s) => /* @__PURE__ */ D.createElement(ue, { ...n, context: s }));
|
|
948
946
|
}
|
|
949
947
|
}, E(J, "defaultProps", {
|
|
950
948
|
defer: !0,
|
|
@@ -956,15 +954,15 @@ const fe = (e, t) => e ? `${e} | ${t}` : t, zt = ({ defaultHelmet: e, children:
|
|
|
956
954
|
fe(n ?? "", e)
|
|
957
955
|
]), o = h((a) => {
|
|
958
956
|
s((u) => [...u, fe(n ?? "", a)]);
|
|
959
|
-
}, [n]),
|
|
957
|
+
}, [n]), l = h(() => {
|
|
960
958
|
s((a) => a.length > 1 ? a.slice(0, -1) : a);
|
|
961
|
-
}, [s]), i = T(() => r.at(-1) ?? "", [r]),
|
|
962
|
-
return /* @__PURE__ */ d.jsx($e.Provider, { value:
|
|
959
|
+
}, [s]), i = T(() => r.at(-1) ?? "", [r]), c = T(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
|
|
960
|
+
return /* @__PURE__ */ d.jsx($e.Provider, { value: c, children: /* @__PURE__ */ d.jsxs(be, { children: [
|
|
963
961
|
/* @__PURE__ */ d.jsx(Ot, { defer: !1, children: /* @__PURE__ */ d.jsx("title", { children: i }) }),
|
|
964
962
|
t
|
|
965
963
|
] }) });
|
|
966
964
|
}, de = 50, wt = () => {
|
|
967
|
-
const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: n, text: r, show: s, textSm: o } = Re(),
|
|
965
|
+
const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: n, text: r, show: s, textSm: o } = Re(), l = T(() => o === void 0 ? r.length > de : o, [r, o]), i = T(() => r.length > de, [r]), c = h((a) => {
|
|
968
966
|
if (s)
|
|
969
967
|
switch (a.key) {
|
|
970
968
|
case "Enter":
|
|
@@ -975,8 +973,8 @@ const fe = (e, t) => e ? `${e} | ${t}` : t, zt = ({ defaultHelmet: e, children:
|
|
|
975
973
|
break;
|
|
976
974
|
}
|
|
977
975
|
}, [t, n, s]);
|
|
978
|
-
return Ue(
|
|
979
|
-
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children:
|
|
976
|
+
return Ue(c), /* @__PURE__ */ d.jsxs(O, { show: s, size: i ? void 0 : "sm", centered: !0, onHide: n, children: [
|
|
977
|
+
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: l ? /* @__PURE__ */ d.jsx(Fe, { variant: "body", children: r }) : /* @__PURE__ */ d.jsx(O.Title, { children: r }) }),
|
|
980
978
|
/* @__PURE__ */ d.jsx(O.Body, { children: /* @__PURE__ */ d.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
981
979
|
/* @__PURE__ */ d.jsx(G, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: e.no }),
|
|
982
980
|
/* @__PURE__ */ d.jsx(G, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
|
|
@@ -996,7 +994,7 @@ export {
|
|
|
996
994
|
Ft as LoadingProvider,
|
|
997
995
|
z as LuminusComponentsContext,
|
|
998
996
|
Ut as LuminusComponentsProvider,
|
|
999
|
-
|
|
997
|
+
Me as UserContext,
|
|
1000
998
|
Nt as UserProvider,
|
|
1001
999
|
Yt as useFormDisabledContext
|
|
1002
1000
|
};
|