react-luminus-components 1.4.46 → 1.4.47
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-C2s5UVBK.cjs +1 -0
- package/dist/FormDisabledProvider-CpiQT6Ys.js +40 -0
- package/dist/{nivo-bar.es-CZIO12ob.js → ShortcutLinksContext-CvGOQ1rG.js} +9766 -9799
- package/dist/ShortcutLinksContext-pXbjIn9v.cjs +281 -0
- package/dist/contexts/auth/AuthContext.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +459 -427
- package/dist/hooks/useAuth/hooks/useDevAuth.d.ts +0 -4
- package/dist/hooks/useAuth/hooks/useMsalAuth.d.ts +0 -3
- package/dist/hooks/useAuth/useAuth.d.ts +0 -4
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +23 -23
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +38 -38
- package/dist/main.cjs.js +49 -49
- package/dist/main.es.js +7935 -7935
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-Di1g3-X5.js → useLocalStorageState-B3TFIwhw.js} +13 -13
- package/dist/useLocalStorageState-D3NipHGX.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +28 -28
- package/dist/variables.scss +165 -165
- package/package.json +123 -123
- package/dist/FormDisabledProvider-BKhJ3z8H.cjs +0 -1
- package/dist/FormDisabledProvider-CRvfN8Ti.js +0 -20
- package/dist/nivo-bar.es-c-ieD_Y7.cjs +0 -281
- package/dist/useLocalStorageState-B8rqdAt7.cjs +0 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,360 +1,392 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
|
-
var Oe = (e, t,
|
|
3
|
-
var
|
|
4
|
-
import { t as F,
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { EventType as W } from "@azure/msal-browser";
|
|
8
|
-
import { MsalProvider as
|
|
2
|
+
var Oe = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var E = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { t as F, bB as we, j as d, bC as De, P as z, bo as ke, bD as me, $ as O, bi as Pe, Q as G, bE as je, a_ as Ie, ag as Me, aA as pe, bk as he, aD as I, aC as Le, bF as He, aV as oe, bG as _e, al as ye, bH as ae, bI as $e, b0 as Re, ap as Ue, a1 as Fe } from "./ShortcutLinksContext-CvGOQ1rG.js";
|
|
5
|
+
import { bJ as Bt, bf as Yt } from "./ShortcutLinksContext-CvGOQ1rG.js";
|
|
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
|
+
import { EventType as W, InteractionRequiredAuthError as Ne } from "@azure/msal-browser";
|
|
8
|
+
import { MsalProvider as qe } from "@azure/msal-react";
|
|
9
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
|
|
14
|
-
import { F as
|
|
15
|
-
import { a as
|
|
13
|
+
import { L as Ge, b as ze } from "./FormDisabledProvider-CpiQT6Ys.js";
|
|
14
|
+
import { F as Wt } from "./FormDisabledProvider-CpiQT6Ys.js";
|
|
15
|
+
import { a as Ke, u as Ve } from "./useLocalStorageState-B3TFIwhw.js";
|
|
16
16
|
function Be(e) {
|
|
17
17
|
const t = F(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ye() {
|
|
21
21
|
return Be(Date.now());
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
23
|
+
function Je(e, t) {
|
|
24
|
+
const n = +F(e), [r, s] = [
|
|
25
25
|
+F(t.start),
|
|
26
26
|
+F(t.end)
|
|
27
27
|
].sort((o, c) => o - c);
|
|
28
|
-
return
|
|
28
|
+
return n >= r && n <= s;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function We() {
|
|
31
31
|
return we(Date.now());
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
const [t,
|
|
35
|
-
|
|
36
|
-
}, []), l =
|
|
37
|
-
|
|
38
|
-
}, []), a =
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
33
|
+
const Qe = ({ children: e }) => {
|
|
34
|
+
const [t, n] = S(!1), [r, s] = S(""), [o, c] = S(void 0), i = h((u, f) => {
|
|
35
|
+
n(!0), s(u), c(f);
|
|
36
|
+
}, []), l = h(() => {
|
|
37
|
+
n(!1);
|
|
38
|
+
}, []), a = T(() => ({ show: t, text: r, showConfirm: i, hideConfirm: l, textSm: o }), [t, r, i, l, o]);
|
|
39
|
+
return /* @__PURE__ */ d.jsxs(De.Provider, { value: a, children: [
|
|
40
|
+
/* @__PURE__ */ d.jsx(wt, {}),
|
|
41
41
|
e
|
|
42
42
|
] });
|
|
43
|
-
},
|
|
44
|
-
const { texts: { confirm: e } } =
|
|
45
|
-
|
|
46
|
-
}, [
|
|
47
|
-
u.preventDefault(), !(s.required && !o) &&
|
|
48
|
-
}, [
|
|
49
|
-
|
|
43
|
+
}, Ze = () => {
|
|
44
|
+
const { texts: { confirm: e } } = _(z), { isShown: t, text: n, onFinish: r } = ke(), { options: s } = _(me), [o, c] = S(s.defaultValue ?? ""), i = h(() => {
|
|
45
|
+
r(null);
|
|
46
|
+
}, [r]), l = h((u) => {
|
|
47
|
+
u.preventDefault(), !(s.required && !o) && r(o);
|
|
48
|
+
}, [r, s.required, o]);
|
|
49
|
+
j(() => {
|
|
50
50
|
t === !0 && c(s.defaultValue ?? "");
|
|
51
51
|
}, [t, s.defaultValue]);
|
|
52
|
-
const a =
|
|
52
|
+
const a = T(() => ({
|
|
53
53
|
value: o,
|
|
54
54
|
onChange: (u) => c(u.currentTarget.value),
|
|
55
55
|
className: "w-100",
|
|
56
56
|
autoFocus: !0,
|
|
57
57
|
tabIndex: 0
|
|
58
58
|
}), [o]);
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
s.input === "textarea" ? /* @__PURE__ */
|
|
64
|
-
s.input === "input" ? /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ d.jsxs(O, { show: t, size: "sm", centered: !0, onHide: i, children: [
|
|
60
|
+
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: /* @__PURE__ */ d.jsx(O.Title, { children: n }) }),
|
|
61
|
+
/* @__PURE__ */ d.jsxs("form", { onSubmit: l, children: [
|
|
62
|
+
/* @__PURE__ */ d.jsxs(O.Body, { children: [
|
|
63
|
+
s.input === "textarea" ? /* @__PURE__ */ d.jsx("textarea", { ...a, rows: 5 }) : void 0,
|
|
64
|
+
s.input === "input" ? /* @__PURE__ */ d.jsx(Pe, { ...a, type: s.type }) : void 0
|
|
65
65
|
] }),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ d.jsxs(O.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
67
|
+
/* @__PURE__ */ d.jsx(G, { variant: "outlined", color: "secondary", onClick: i, className: "flex-grow-1", children: e.cancel }),
|
|
68
|
+
/* @__PURE__ */ d.jsx(G, { color: "primary", disabled: s.required && !o, type: "submit", className: "flex-grow-1", children: e.confirm })
|
|
69
69
|
] })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
72
|
}, Xe = ({ children: e }) => {
|
|
73
|
-
const [t,
|
|
74
|
-
}), l =
|
|
75
|
-
s(
|
|
76
|
-
}, []), a =
|
|
77
|
-
|
|
78
|
-
}, []), u =
|
|
73
|
+
const [t, n] = S(!1), [r, s] = S(""), [o, c] = S({ input: "textarea", type: "text" }), i = te(() => {
|
|
74
|
+
}), l = h((f) => {
|
|
75
|
+
s(f), n(!0);
|
|
76
|
+
}, []), a = h(() => {
|
|
77
|
+
n(!1);
|
|
78
|
+
}, []), u = T(() => ({
|
|
79
79
|
isShown: t,
|
|
80
|
-
text:
|
|
80
|
+
text: r,
|
|
81
81
|
showPrompt: l,
|
|
82
82
|
hidePrompt: a,
|
|
83
83
|
resolveRef: i,
|
|
84
84
|
options: o,
|
|
85
85
|
setOptions: c
|
|
86
|
-
}), [t,
|
|
87
|
-
return /* @__PURE__ */
|
|
86
|
+
}), [t, r, l, a, o]);
|
|
87
|
+
return /* @__PURE__ */ d.jsxs(me.Provider, { value: u, children: [
|
|
88
88
|
e,
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ d.jsx(Ze, {})
|
|
90
90
|
] });
|
|
91
|
-
},
|
|
92
|
-
const l =
|
|
91
|
+
}, Ut = ({ cookieDomain: e, axiosOptions: t, language: n, texts: r, ProjectIconComponent: s, localizationContext: o, chartColorPalette: c, children: i }) => {
|
|
92
|
+
const l = T(() => ({
|
|
93
93
|
axiosOptions: t,
|
|
94
94
|
cookieDomain: e,
|
|
95
|
-
language:
|
|
96
|
-
texts:
|
|
95
|
+
language: n,
|
|
96
|
+
texts: r,
|
|
97
97
|
ProjectIconComponent: s,
|
|
98
98
|
localizationContext: o,
|
|
99
99
|
chartColorPalette: c
|
|
100
100
|
}), [
|
|
101
101
|
t,
|
|
102
102
|
e,
|
|
103
|
-
|
|
103
|
+
n,
|
|
104
104
|
s,
|
|
105
105
|
o,
|
|
106
|
-
|
|
106
|
+
r,
|
|
107
107
|
c
|
|
108
108
|
]);
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ d.jsx(z.Provider, { value: l, children: /* @__PURE__ */ d.jsx(Qe, { children: /* @__PURE__ */ d.jsxs(Xe, { children: [
|
|
110
|
+
/* @__PURE__ */ d.jsx(je, {}),
|
|
111
111
|
i
|
|
112
112
|
] }) }) });
|
|
113
|
-
},
|
|
114
|
-
const [t,
|
|
115
|
-
|
|
116
|
-
}, [
|
|
117
|
-
|
|
118
|
-
}, [
|
|
119
|
-
return /* @__PURE__ */
|
|
120
|
-
t && /* @__PURE__ */
|
|
113
|
+
}, Ft = ({ children: e }) => {
|
|
114
|
+
const [t, n] = S(!1), [r] = S(/* @__PURE__ */ new Set()), s = h((i) => {
|
|
115
|
+
r.add(i), n(!0);
|
|
116
|
+
}, [r]), o = h((i) => {
|
|
117
|
+
r.delete(i), r.size === 0 && n(!1);
|
|
118
|
+
}, [r]), c = T(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
|
|
119
|
+
return /* @__PURE__ */ d.jsxs(Ie.Provider, { value: c, children: [
|
|
120
|
+
t && /* @__PURE__ */ d.jsx(Ge, {}),
|
|
121
121
|
e
|
|
122
122
|
] });
|
|
123
|
-
},
|
|
124
|
-
const t =
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
}, [
|
|
128
|
-
|
|
123
|
+
}, Nt = ({ children: e }) => {
|
|
124
|
+
const t = Me(), { msalInstance: n, getToken: r } = _(pe), { delegation: s, setDelegation: o, setAvailableDelegations: c, refreshAvailableDelegations: i } = _(he), [l, a] = S(null), u = h(async () => {
|
|
125
|
+
const g = await r();
|
|
126
|
+
g && a(g.token);
|
|
127
|
+
}, [r]);
|
|
128
|
+
j(() => {
|
|
129
129
|
u();
|
|
130
130
|
}, [u]);
|
|
131
|
-
const m =
|
|
132
|
-
const
|
|
133
|
-
return
|
|
134
|
-
}, [])(), [
|
|
135
|
-
state: m ?
|
|
131
|
+
const m = h(() => {
|
|
132
|
+
const g = localStorage.getItem("user") ?? null;
|
|
133
|
+
return g ? JSON.parse(g ?? "") : null;
|
|
134
|
+
}, [])(), [p, y] = S({
|
|
135
|
+
state: m ? I.LOGGED_IN : I.LOGGING_IN,
|
|
136
136
|
user: m
|
|
137
|
-
}),
|
|
138
|
-
let
|
|
139
|
-
return await t.get("/user/detail",
|
|
140
|
-
|
|
137
|
+
}), v = h(async (g) => {
|
|
138
|
+
let A = null;
|
|
139
|
+
return await t.get("/user/detail", g ? { headers: { Authorization: `Bearer ${g}` } } : void 0).then((K) => {
|
|
140
|
+
A = K.data;
|
|
141
141
|
}).catch(() => {
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
}, [t]),
|
|
145
|
-
localStorage.removeItem("user"),
|
|
146
|
-
state:
|
|
142
|
+
A = null;
|
|
143
|
+
}), A;
|
|
144
|
+
}, [t]), C = h(() => {
|
|
145
|
+
localStorage.removeItem("user"), y({
|
|
146
|
+
state: I.LOGGED_OUT,
|
|
147
147
|
user: null
|
|
148
|
-
}),
|
|
149
|
-
}, [
|
|
150
|
-
|
|
151
|
-
state:
|
|
148
|
+
}), o(null), c(null);
|
|
149
|
+
}, [c, o]), w = h(async (g) => {
|
|
150
|
+
y({
|
|
151
|
+
state: I.LOGGING_IN,
|
|
152
152
|
user: null
|
|
153
153
|
});
|
|
154
|
-
const
|
|
155
|
-
return
|
|
156
|
-
state:
|
|
157
|
-
user:
|
|
158
|
-
}), localStorage.setItem("user", JSON.stringify(
|
|
159
|
-
state:
|
|
154
|
+
const A = await v(g);
|
|
155
|
+
return A ? (y({
|
|
156
|
+
state: I.LOGGED_IN,
|
|
157
|
+
user: A
|
|
158
|
+
}), localStorage.setItem("user", JSON.stringify(A)), await i(), !0) : (y({
|
|
159
|
+
state: I.LOGIN_FAILED,
|
|
160
160
|
user: null
|
|
161
161
|
}), !1);
|
|
162
|
-
}, [
|
|
163
|
-
|
|
164
|
-
}, [
|
|
165
|
-
|
|
166
|
-
if (
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
const K =
|
|
162
|
+
}, [v, i]), k = h(() => {
|
|
163
|
+
C();
|
|
164
|
+
}, [C]);
|
|
165
|
+
j(() => {
|
|
166
|
+
if (n) {
|
|
167
|
+
const g = n.addEventCallback((A) => {
|
|
168
|
+
if (A.eventType === W.LOGIN_SUCCESS && A.payload) {
|
|
169
|
+
const K = A.payload;
|
|
170
170
|
a(K.accessToken);
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
return () => {
|
|
174
|
-
|
|
174
|
+
g && n.removeEventCallback(g);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
return () => {
|
|
178
178
|
};
|
|
179
|
-
}, [
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
}, [n, w, k]);
|
|
180
|
+
const se = h(async (g) => {
|
|
181
|
+
g && await w(g).catch(() => {
|
|
182
|
+
k(), o(null);
|
|
183
183
|
});
|
|
184
|
-
}, [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, [l,
|
|
188
|
-
const
|
|
189
|
-
user:
|
|
190
|
-
userLoginState:
|
|
191
|
-
loginUser:
|
|
192
|
-
logoutUser:
|
|
193
|
-
}), [
|
|
194
|
-
return /* @__PURE__ */
|
|
195
|
-
},
|
|
196
|
-
const { cookieDomain: t } =
|
|
184
|
+
}, [w, k, o]);
|
|
185
|
+
j(() => {
|
|
186
|
+
se(l);
|
|
187
|
+
}, [l, s == null ? void 0 : s.id, se]);
|
|
188
|
+
const Ce = T(() => ({
|
|
189
|
+
user: p.user,
|
|
190
|
+
userLoginState: p,
|
|
191
|
+
loginUser: w,
|
|
192
|
+
logoutUser: k
|
|
193
|
+
}), [p, w, k]);
|
|
194
|
+
return /* @__PURE__ */ d.jsx(Le.Provider, { value: Ce, children: e });
|
|
195
|
+
}, qt = ({ ...e }) => {
|
|
196
|
+
const { cookieDomain: t } = _(z), [, n] = He(["Authorization"]), r = T(
|
|
197
197
|
() => e.useMsal ? e.msalInstance : null,
|
|
198
198
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
199
199
|
[e.useMsal, e.useMsal ? e.msalInstance : null]
|
|
200
|
-
), s =
|
|
200
|
+
), s = T(
|
|
201
201
|
() => e.useMsal ? e.msalScopes : [],
|
|
202
202
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
203
203
|
[e.useMsal, e.useMsal ? e.msalScopes : null]
|
|
204
|
-
), o =
|
|
204
|
+
), o = T(
|
|
205
205
|
() => e.useMsal ? e.msalExtraScopes : [],
|
|
206
206
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
207
207
|
[e.useMsal, e.useMsal ? e.msalExtraScopes : null]
|
|
208
|
-
), c =
|
|
208
|
+
), c = te(null), i = h(() => {
|
|
209
|
+
const f = localStorage.getItem("token");
|
|
210
|
+
return f ? {
|
|
211
|
+
token: f,
|
|
212
|
+
expiresOn: ze(new Date(Date.now()), 1)
|
|
213
|
+
} : null;
|
|
214
|
+
}, []), l = h(async () => {
|
|
215
|
+
var y;
|
|
216
|
+
if (c.current)
|
|
217
|
+
return c.current;
|
|
218
|
+
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
|
+
if (!m)
|
|
220
|
+
return null;
|
|
221
|
+
f || r == null || r.setActiveAccount(m);
|
|
222
|
+
const p = r == null ? void 0 : r.acquireTokenSilent({
|
|
223
|
+
scopes: s,
|
|
224
|
+
account: m
|
|
225
|
+
}).then((v) => ({
|
|
226
|
+
token: v.accessToken,
|
|
227
|
+
expiresOn: v.expiresOn ?? new Date(Date.now())
|
|
228
|
+
})).catch((v) => {
|
|
229
|
+
if (console.error("Error acquiring token", v), v instanceof Ne)
|
|
230
|
+
return console.log("Silent token acquisition failed. Acquiring token using redirect"), r == null || r.acquireTokenRedirect({
|
|
231
|
+
scopes: s,
|
|
232
|
+
extraScopesToConsent: o
|
|
233
|
+
}), null;
|
|
234
|
+
throw v;
|
|
235
|
+
}).finally(() => {
|
|
236
|
+
c.current = null;
|
|
237
|
+
});
|
|
238
|
+
return c.current = p ?? null, p ?? null;
|
|
239
|
+
}, [r, s, o]), a = h(async () => e.useMsal ? l() : i(), [i, l, e.useMsal]), u = T(() => ({
|
|
209
240
|
useMsal: e.useMsal ?? !1,
|
|
210
|
-
msalInstance:
|
|
241
|
+
msalInstance: r,
|
|
211
242
|
msalScopes: s,
|
|
212
|
-
msalExtraScopes: o
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
243
|
+
msalExtraScopes: o,
|
|
244
|
+
getToken: a
|
|
245
|
+
}), [e.useMsal, r, s, o, a]);
|
|
246
|
+
return j(() => {
|
|
247
|
+
if (e.useMsal && r) {
|
|
248
|
+
const f = r.addEventCallback((m) => {
|
|
249
|
+
if (m.eventType === W.LOGIN_SUCCESS || m.eventType === W.ACQUIRE_TOKEN_SUCCESS && m.payload) {
|
|
250
|
+
const p = m.payload, y = p.account;
|
|
251
|
+
r.setActiveAccount(y);
|
|
252
|
+
const v = p.accessToken, C = p.expiresOn;
|
|
253
|
+
n("Authorization", v, {
|
|
222
254
|
path: "/",
|
|
223
255
|
secure: !0,
|
|
224
256
|
sameSite: "none",
|
|
225
257
|
domain: t,
|
|
226
|
-
expires:
|
|
258
|
+
expires: C ?? void 0
|
|
227
259
|
});
|
|
228
260
|
}
|
|
229
|
-
|
|
261
|
+
m.error && console.error("AuthProvider MSAL Error", m);
|
|
230
262
|
});
|
|
231
263
|
return () => {
|
|
232
|
-
|
|
264
|
+
f && r.removeEventCallback(f);
|
|
233
265
|
};
|
|
234
266
|
}
|
|
235
267
|
return () => {
|
|
236
268
|
};
|
|
237
|
-
}, [e.useMsal,
|
|
269
|
+
}, [e.useMsal, r, n, t]), /* @__PURE__ */ d.jsx(pe.Provider, { value: u, children: e.useMsal ? /* @__PURE__ */ d.jsx(qe, { instance: e.msalInstance, children: e.children }) : e.children });
|
|
238
270
|
}, Gt = ({ children: e, relativeEndpoint: t }) => {
|
|
239
|
-
const [
|
|
240
|
-
if (!
|
|
271
|
+
const [n, r, s] = Ke("user-delegation", null), o = T(() => {
|
|
272
|
+
if (!n)
|
|
241
273
|
return null;
|
|
242
|
-
const
|
|
243
|
-
return
|
|
244
|
-
}, [
|
|
274
|
+
const f = n.from ? oe(n.from) : We(), m = n.to ? oe(n.to) : Ye();
|
|
275
|
+
return Je(new Date(Date.now()), { start: f, end: m }) ? n : (r(null), null);
|
|
276
|
+
}, [n, r]), { data: c, setData: i, reloadData: l } = Ve(t, {
|
|
245
277
|
nullStateBeforeLoad: !1,
|
|
246
278
|
nullStateOnFail: !0
|
|
247
|
-
}), a =
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
l(), a.current = window.setTimeout(
|
|
279
|
+
}), a = te(null);
|
|
280
|
+
j(() => {
|
|
281
|
+
const f = () => {
|
|
282
|
+
l(), a.current = window.setTimeout(f, _e() + 5e3);
|
|
251
283
|
};
|
|
252
|
-
return
|
|
284
|
+
return f(), () => {
|
|
253
285
|
a.current !== null && window.clearTimeout(a.current);
|
|
254
286
|
};
|
|
255
|
-
}, [l]),
|
|
256
|
-
const
|
|
287
|
+
}, [l]), j(() => {
|
|
288
|
+
const f = () => {
|
|
257
289
|
s();
|
|
258
290
|
};
|
|
259
|
-
return window.addEventListener("focus",
|
|
260
|
-
window.removeEventListener("focus",
|
|
291
|
+
return window.addEventListener("focus", f), () => {
|
|
292
|
+
window.removeEventListener("focus", f);
|
|
261
293
|
};
|
|
262
294
|
}, [s, l]);
|
|
263
|
-
const u =
|
|
295
|
+
const u = T(() => ({
|
|
264
296
|
delegation: o,
|
|
265
|
-
setDelegation:
|
|
297
|
+
setDelegation: r,
|
|
266
298
|
availableDelegations: c,
|
|
267
299
|
setAvailableDelegations: i,
|
|
268
300
|
refreshAvailableDelegations: l
|
|
269
301
|
}), [
|
|
270
302
|
o,
|
|
271
|
-
|
|
303
|
+
r,
|
|
272
304
|
c,
|
|
273
305
|
i,
|
|
274
306
|
l
|
|
275
307
|
]);
|
|
276
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ d.jsx(he.Provider, { value: u, children: e });
|
|
277
309
|
};
|
|
278
|
-
var
|
|
310
|
+
var et = typeof Element < "u", tt = typeof Map == "function", rt = typeof Set == "function", nt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
279
311
|
function N(e, t) {
|
|
280
312
|
if (e === t) return !0;
|
|
281
313
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
282
314
|
if (e.constructor !== t.constructor) return !1;
|
|
283
|
-
var
|
|
315
|
+
var n, r, s;
|
|
284
316
|
if (Array.isArray(e)) {
|
|
285
|
-
if (
|
|
286
|
-
for (
|
|
287
|
-
if (!N(e[
|
|
317
|
+
if (n = e.length, n != t.length) return !1;
|
|
318
|
+
for (r = n; r-- !== 0; )
|
|
319
|
+
if (!N(e[r], t[r])) return !1;
|
|
288
320
|
return !0;
|
|
289
321
|
}
|
|
290
322
|
var o;
|
|
291
|
-
if (
|
|
323
|
+
if (tt && e instanceof Map && t instanceof Map) {
|
|
292
324
|
if (e.size !== t.size) return !1;
|
|
293
|
-
for (o = e.entries(); !(
|
|
294
|
-
if (!t.has(
|
|
295
|
-
for (o = e.entries(); !(
|
|
296
|
-
if (!N(
|
|
325
|
+
for (o = e.entries(); !(r = o.next()).done; )
|
|
326
|
+
if (!t.has(r.value[0])) return !1;
|
|
327
|
+
for (o = e.entries(); !(r = o.next()).done; )
|
|
328
|
+
if (!N(r.value[1], t.get(r.value[0]))) return !1;
|
|
297
329
|
return !0;
|
|
298
330
|
}
|
|
299
|
-
if (
|
|
331
|
+
if (rt && e instanceof Set && t instanceof Set) {
|
|
300
332
|
if (e.size !== t.size) return !1;
|
|
301
|
-
for (o = e.entries(); !(
|
|
302
|
-
if (!t.has(
|
|
333
|
+
for (o = e.entries(); !(r = o.next()).done; )
|
|
334
|
+
if (!t.has(r.value[0])) return !1;
|
|
303
335
|
return !0;
|
|
304
336
|
}
|
|
305
|
-
if (
|
|
306
|
-
if (
|
|
307
|
-
for (
|
|
308
|
-
if (e[
|
|
337
|
+
if (nt && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
338
|
+
if (n = e.length, n != t.length) return !1;
|
|
339
|
+
for (r = n; r-- !== 0; )
|
|
340
|
+
if (e[r] !== t[r]) return !1;
|
|
309
341
|
return !0;
|
|
310
342
|
}
|
|
311
343
|
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
|
|
312
344
|
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
|
|
313
345
|
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
|
|
314
|
-
if (s = Object.keys(e),
|
|
315
|
-
for (
|
|
316
|
-
if (!Object.prototype.hasOwnProperty.call(t, s[
|
|
317
|
-
if (
|
|
318
|
-
for (
|
|
319
|
-
if (!((s[
|
|
346
|
+
if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length) return !1;
|
|
347
|
+
for (r = n; r-- !== 0; )
|
|
348
|
+
if (!Object.prototype.hasOwnProperty.call(t, s[r])) return !1;
|
|
349
|
+
if (et && e instanceof Element) return !1;
|
|
350
|
+
for (r = n; r-- !== 0; )
|
|
351
|
+
if (!((s[r] === "_owner" || s[r] === "__v" || s[r] === "__o") && e.$$typeof) && !N(e[s[r]], t[s[r]]))
|
|
320
352
|
return !1;
|
|
321
353
|
return !0;
|
|
322
354
|
}
|
|
323
355
|
return e !== e && t !== t;
|
|
324
356
|
}
|
|
325
|
-
var
|
|
357
|
+
var st = function(t, n) {
|
|
326
358
|
try {
|
|
327
|
-
return N(t,
|
|
328
|
-
} catch (
|
|
329
|
-
if ((
|
|
359
|
+
return N(t, n);
|
|
360
|
+
} catch (r) {
|
|
361
|
+
if ((r.message || "").match(/stack|recursion/i))
|
|
330
362
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
331
|
-
throw
|
|
363
|
+
throw r;
|
|
332
364
|
}
|
|
333
365
|
};
|
|
334
|
-
const
|
|
335
|
-
var
|
|
336
|
-
var o =
|
|
366
|
+
const ot = /* @__PURE__ */ ye(st);
|
|
367
|
+
var at = function(t, n, r, s) {
|
|
368
|
+
var o = r ? r.call(s, t, n) : void 0;
|
|
337
369
|
if (o !== void 0)
|
|
338
370
|
return !!o;
|
|
339
|
-
if (t ===
|
|
371
|
+
if (t === n)
|
|
340
372
|
return !0;
|
|
341
|
-
if (typeof t != "object" || !t || typeof
|
|
373
|
+
if (typeof t != "object" || !t || typeof n != "object" || !n)
|
|
342
374
|
return !1;
|
|
343
|
-
var c = Object.keys(t), i = Object.keys(
|
|
375
|
+
var c = Object.keys(t), i = Object.keys(n);
|
|
344
376
|
if (c.length !== i.length)
|
|
345
377
|
return !1;
|
|
346
|
-
for (var l = Object.prototype.hasOwnProperty.bind(
|
|
378
|
+
for (var l = Object.prototype.hasOwnProperty.bind(n), a = 0; a < c.length; a++) {
|
|
347
379
|
var u = c[a];
|
|
348
380
|
if (!l(u))
|
|
349
381
|
return !1;
|
|
350
|
-
var
|
|
351
|
-
if (o =
|
|
382
|
+
var f = t[u], m = n[u];
|
|
383
|
+
if (o = r ? r.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
|
|
352
384
|
return !1;
|
|
353
385
|
}
|
|
354
386
|
return !0;
|
|
355
387
|
};
|
|
356
|
-
const
|
|
357
|
-
var ge = /* @__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))(ge || {}),
|
|
388
|
+
const it = /* @__PURE__ */ ye(at);
|
|
389
|
+
var ge = /* @__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))(ge || {}), V = {
|
|
358
390
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
359
391
|
script: { type: ["application/ld+json"] },
|
|
360
392
|
meta: {
|
|
@@ -376,7 +408,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
376
408
|
"twitter:site"
|
|
377
409
|
]
|
|
378
410
|
}
|
|
379
|
-
},
|
|
411
|
+
}, ie = Object.values(ge), ne = {
|
|
380
412
|
accesskey: "accessKey",
|
|
381
413
|
charset: "charSet",
|
|
382
414
|
class: "className",
|
|
@@ -385,48 +417,48 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
385
417
|
"http-equiv": "httpEquiv",
|
|
386
418
|
itemprop: "itemProp",
|
|
387
419
|
tabindex: "tabIndex"
|
|
388
|
-
},
|
|
389
|
-
(e, [t,
|
|
420
|
+
}, lt = Object.entries(ne).reduce(
|
|
421
|
+
(e, [t, n]) => (e[n] = t, e),
|
|
390
422
|
{}
|
|
391
|
-
),
|
|
423
|
+
), b = "data-rh", L = {
|
|
392
424
|
DEFAULT_TITLE: "defaultTitle",
|
|
393
425
|
DEFER: "defer",
|
|
394
426
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
395
427
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
396
428
|
TITLE_TEMPLATE: "titleTemplate",
|
|
397
429
|
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
398
|
-
},
|
|
399
|
-
for (let
|
|
400
|
-
const
|
|
401
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
402
|
-
return
|
|
430
|
+
}, H = (e, t) => {
|
|
431
|
+
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
432
|
+
const r = e[n];
|
|
433
|
+
if (Object.prototype.hasOwnProperty.call(r, t))
|
|
434
|
+
return r[t];
|
|
403
435
|
}
|
|
404
436
|
return null;
|
|
405
|
-
},
|
|
406
|
-
let t =
|
|
437
|
+
}, ct = (e) => {
|
|
438
|
+
let t = H(
|
|
407
439
|
e,
|
|
408
440
|
"title"
|
|
409
441
|
/* TITLE */
|
|
410
442
|
);
|
|
411
|
-
const
|
|
412
|
-
if (Array.isArray(t) && (t = t.join("")),
|
|
413
|
-
return
|
|
414
|
-
const
|
|
415
|
-
return t ||
|
|
416
|
-
},
|
|
417
|
-
}),
|
|
418
|
-
if (!
|
|
419
|
-
const s = Object.keys(
|
|
443
|
+
const n = H(e, L.TITLE_TEMPLATE);
|
|
444
|
+
if (Array.isArray(t) && (t = t.join("")), n && t)
|
|
445
|
+
return n.replace(/%s/g, () => t);
|
|
446
|
+
const r = H(e, L.DEFAULT_TITLE);
|
|
447
|
+
return t || r || void 0;
|
|
448
|
+
}, ut = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
449
|
+
}), 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
|
+
if (!n.length) {
|
|
451
|
+
const s = Object.keys(r);
|
|
420
452
|
for (let o = 0; o < s.length; o += 1) {
|
|
421
453
|
const i = s[o].toLowerCase();
|
|
422
|
-
if (e.indexOf(i) !== -1 &&
|
|
423
|
-
return
|
|
454
|
+
if (e.indexOf(i) !== -1 && r[i])
|
|
455
|
+
return n.concat(r);
|
|
424
456
|
}
|
|
425
457
|
}
|
|
426
|
-
return
|
|
427
|
-
}, []),
|
|
428
|
-
const
|
|
429
|
-
return
|
|
458
|
+
return n;
|
|
459
|
+
}, []), dt = (e) => console && typeof console.warn == "function" && console.warn(e), $ = (e, t, n) => {
|
|
460
|
+
const r = {};
|
|
461
|
+
return n.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && dt(
|
|
430
462
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
431
463
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
432
464
|
const c = {};
|
|
@@ -434,40 +466,40 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
434
466
|
let a;
|
|
435
467
|
const u = Object.keys(l);
|
|
436
468
|
for (let m = 0; m < u.length; m += 1) {
|
|
437
|
-
const
|
|
438
|
-
t.indexOf(
|
|
469
|
+
const p = u[m], y = p.toLowerCase();
|
|
470
|
+
t.indexOf(y) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(y === "rel" && l[y].toLowerCase() === "stylesheet") && (a = y), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
|
|
439
471
|
}
|
|
440
472
|
if (!a || !l[a])
|
|
441
473
|
return !1;
|
|
442
|
-
const
|
|
443
|
-
return
|
|
474
|
+
const f = l[a].toLowerCase();
|
|
475
|
+
return r[a] || (r[a] = {}), c[a] || (c[a] = {}), r[a][f] ? !1 : (c[a][f] = !0, !0);
|
|
444
476
|
}).reverse().forEach((l) => s.push(l));
|
|
445
477
|
const i = Object.keys(c);
|
|
446
478
|
for (let l = 0; l < i.length; l += 1) {
|
|
447
479
|
const a = i[l], u = {
|
|
448
|
-
...
|
|
480
|
+
...r[a],
|
|
449
481
|
...c[a]
|
|
450
482
|
};
|
|
451
|
-
|
|
483
|
+
r[a] = u;
|
|
452
484
|
}
|
|
453
485
|
return s;
|
|
454
486
|
}, []).reverse();
|
|
455
|
-
},
|
|
487
|
+
}, mt = (e, t) => {
|
|
456
488
|
if (Array.isArray(e) && e.length) {
|
|
457
|
-
for (let
|
|
458
|
-
if (e[
|
|
489
|
+
for (let n = 0; n < e.length; n += 1)
|
|
490
|
+
if (e[n][t])
|
|
459
491
|
return !0;
|
|
460
492
|
}
|
|
461
493
|
return !1;
|
|
462
|
-
},
|
|
463
|
-
baseTag:
|
|
494
|
+
}, pt = (e) => ({
|
|
495
|
+
baseTag: ft([
|
|
464
496
|
"href"
|
|
465
497
|
/* HREF */
|
|
466
498
|
], e),
|
|
467
|
-
bodyAttributes:
|
|
468
|
-
defer:
|
|
469
|
-
encode:
|
|
470
|
-
htmlAttributes:
|
|
499
|
+
bodyAttributes: B("bodyAttributes", e),
|
|
500
|
+
defer: H(e, L.DEFER),
|
|
501
|
+
encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
|
|
502
|
+
htmlAttributes: B("htmlAttributes", e),
|
|
471
503
|
linkTags: $(
|
|
472
504
|
"link",
|
|
473
505
|
[
|
|
@@ -493,7 +525,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
493
525
|
"innerHTML"
|
|
494
526
|
/* INNER_HTML */
|
|
495
527
|
], e),
|
|
496
|
-
onChangeClientState:
|
|
528
|
+
onChangeClientState: ut(e),
|
|
497
529
|
scriptTags: $(
|
|
498
530
|
"script",
|
|
499
531
|
[
|
|
@@ -507,74 +539,74 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
507
539
|
"cssText"
|
|
508
540
|
/* CSS_TEXT */
|
|
509
541
|
], e),
|
|
510
|
-
title:
|
|
511
|
-
titleAttributes:
|
|
512
|
-
prioritizeSeoTags:
|
|
513
|
-
}), Te = (e) => Array.isArray(e) ? e.join("") : e,
|
|
514
|
-
const
|
|
515
|
-
for (let
|
|
516
|
-
if (t[r
|
|
542
|
+
title: ct(e),
|
|
543
|
+
titleAttributes: B("titleAttributes", e),
|
|
544
|
+
prioritizeSeoTags: mt(e, L.PRIORITIZE_SEO_TAGS)
|
|
545
|
+
}), Te = (e) => Array.isArray(e) ? e.join("") : e, ht = (e, t) => {
|
|
546
|
+
const n = Object.keys(e);
|
|
547
|
+
for (let r = 0; r < n.length; r += 1)
|
|
548
|
+
if (t[n[r]] && t[n[r]].includes(e[n[r]]))
|
|
517
549
|
return !0;
|
|
518
550
|
return !1;
|
|
519
551
|
}, Y = (e, t) => Array.isArray(e) ? e.reduce(
|
|
520
|
-
(
|
|
552
|
+
(n, r) => (ht(r, t) ? n.priority.push(r) : n.default.push(r), n),
|
|
521
553
|
{ priority: [], default: [] }
|
|
522
|
-
) : { default: e, priority: [] },
|
|
554
|
+
) : { default: e, priority: [] }, le = (e, t) => ({
|
|
523
555
|
...e,
|
|
524
556
|
[t]: void 0
|
|
525
|
-
}),
|
|
557
|
+
}), yt = [
|
|
526
558
|
"noscript",
|
|
527
559
|
"script",
|
|
528
560
|
"style"
|
|
529
561
|
/* STYLE */
|
|
530
|
-
], Q = (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,
|
|
531
|
-
const
|
|
532
|
-
return t ? `${t} ${
|
|
533
|
-
}, ""),
|
|
534
|
-
const s = ve(
|
|
535
|
-
return s ? `<${e} ${
|
|
562
|
+
], Q = (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
|
+
const r = typeof e[n] < "u" ? `${n}="${e[n]}"` : `${n}`;
|
|
564
|
+
return t ? `${t} ${r}` : r;
|
|
565
|
+
}, ""), gt = (e, t, n, r) => {
|
|
566
|
+
const s = ve(n), o = Te(t);
|
|
567
|
+
return s ? `<${e} ${b}="true" ${s}>${Q(
|
|
536
568
|
o,
|
|
537
|
-
|
|
538
|
-
)}</${e}>` : `<${e} ${
|
|
569
|
+
r
|
|
570
|
+
)}</${e}>` : `<${e} ${b}="true">${Q(
|
|
539
571
|
o,
|
|
540
|
-
|
|
572
|
+
r
|
|
541
573
|
)}</${e}>`;
|
|
542
|
-
},
|
|
574
|
+
}, Tt = (e, t, n = !0) => t.reduce((r, s) => {
|
|
543
575
|
const o = s, c = Object.keys(o).filter(
|
|
544
576
|
(a) => !(a === "innerHTML" || a === "cssText")
|
|
545
577
|
).reduce((a, u) => {
|
|
546
|
-
const
|
|
547
|
-
return a ? `${a} ${
|
|
548
|
-
}, ""), i = o.innerHTML || o.cssText || "", l =
|
|
549
|
-
return `${
|
|
550
|
-
}, ""), xe = (e, t = {}) => Object.keys(e).reduce((
|
|
551
|
-
const s =
|
|
552
|
-
return
|
|
553
|
-
}, t),
|
|
554
|
-
const
|
|
578
|
+
const f = typeof o[u] > "u" ? u : `${u}="${Q(o[u], n)}"`;
|
|
579
|
+
return a ? `${a} ${f}` : f;
|
|
580
|
+
}, ""), i = o.innerHTML || o.cssText || "", l = yt.indexOf(e) === -1;
|
|
581
|
+
return `${r}<${e} ${b}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
|
|
582
|
+
}, ""), xe = (e, t = {}) => Object.keys(e).reduce((n, r) => {
|
|
583
|
+
const s = ne[r];
|
|
584
|
+
return n[s || r] = e[r], n;
|
|
585
|
+
}, t), vt = (e, t, n) => {
|
|
586
|
+
const r = {
|
|
555
587
|
key: t,
|
|
556
|
-
[
|
|
557
|
-
}, s = xe(
|
|
558
|
-
return [
|
|
559
|
-
},
|
|
588
|
+
[b]: !0
|
|
589
|
+
}, s = xe(n, r);
|
|
590
|
+
return [D.createElement("title", s, t)];
|
|
591
|
+
}, q = (e, t) => t.map((n, r) => {
|
|
560
592
|
const s = {
|
|
561
|
-
key:
|
|
562
|
-
[
|
|
593
|
+
key: r,
|
|
594
|
+
[b]: !0
|
|
563
595
|
};
|
|
564
|
-
return Object.keys(
|
|
565
|
-
const i =
|
|
596
|
+
return Object.keys(n).forEach((o) => {
|
|
597
|
+
const i = ne[o] || o;
|
|
566
598
|
if (i === "innerHTML" || i === "cssText") {
|
|
567
|
-
const l =
|
|
599
|
+
const l = n.innerHTML || n.cssText;
|
|
568
600
|
s.dangerouslySetInnerHTML = { __html: l };
|
|
569
601
|
} else
|
|
570
|
-
s[i] =
|
|
571
|
-
}),
|
|
572
|
-
}),
|
|
602
|
+
s[i] = n[o];
|
|
603
|
+
}), D.createElement(e, s);
|
|
604
|
+
}), x = (e, t, n = !0) => {
|
|
573
605
|
switch (e) {
|
|
574
606
|
case "title":
|
|
575
607
|
return {
|
|
576
|
-
toComponent: () =>
|
|
577
|
-
toString: () =>
|
|
608
|
+
toComponent: () => vt(e, t.title, t.titleAttributes),
|
|
609
|
+
toString: () => gt(e, t.title, t.titleAttributes, n)
|
|
578
610
|
};
|
|
579
611
|
case "bodyAttributes":
|
|
580
612
|
case "htmlAttributes":
|
|
@@ -584,37 +616,37 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
584
616
|
};
|
|
585
617
|
default:
|
|
586
618
|
return {
|
|
587
|
-
toComponent: () =>
|
|
588
|
-
toString: () =>
|
|
619
|
+
toComponent: () => q(e, t),
|
|
620
|
+
toString: () => Tt(e, t, n)
|
|
589
621
|
};
|
|
590
622
|
}
|
|
591
|
-
},
|
|
592
|
-
const s = Y(e,
|
|
623
|
+
}, xt = ({ metaTags: e, linkTags: t, scriptTags: n, encode: r }) => {
|
|
624
|
+
const s = Y(e, V.meta), o = Y(t, V.link), c = Y(n, V.script);
|
|
593
625
|
return {
|
|
594
626
|
priorityMethods: {
|
|
595
627
|
toComponent: () => [
|
|
596
|
-
...
|
|
597
|
-
...
|
|
598
|
-
...
|
|
628
|
+
...q("meta", s.priority),
|
|
629
|
+
...q("link", o.priority),
|
|
630
|
+
...q("script", c.priority)
|
|
599
631
|
],
|
|
600
632
|
toString: () => (
|
|
601
633
|
// generate all the tags as strings and concatenate them
|
|
602
|
-
`${
|
|
634
|
+
`${x("meta", s.priority, r)} ${x(
|
|
603
635
|
"link",
|
|
604
636
|
o.priority,
|
|
605
|
-
|
|
606
|
-
)} ${
|
|
637
|
+
r
|
|
638
|
+
)} ${x("script", c.priority, r)}`
|
|
607
639
|
)
|
|
608
640
|
},
|
|
609
641
|
metaTags: s.default,
|
|
610
642
|
linkTags: o.default,
|
|
611
643
|
scriptTags: c.default
|
|
612
644
|
};
|
|
613
|
-
},
|
|
645
|
+
}, St = (e) => {
|
|
614
646
|
const {
|
|
615
647
|
baseTag: t,
|
|
616
|
-
bodyAttributes:
|
|
617
|
-
encode:
|
|
648
|
+
bodyAttributes: n,
|
|
649
|
+
encode: r = !0,
|
|
618
650
|
htmlAttributes: s,
|
|
619
651
|
noscriptTags: o,
|
|
620
652
|
styleTags: c,
|
|
@@ -622,29 +654,29 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
622
654
|
titleAttributes: l,
|
|
623
655
|
prioritizeSeoTags: a
|
|
624
656
|
} = e;
|
|
625
|
-
let { linkTags: u, metaTags:
|
|
657
|
+
let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
|
|
626
658
|
toComponent: () => {
|
|
627
659
|
},
|
|
628
660
|
toString: () => ""
|
|
629
661
|
};
|
|
630
|
-
return a && ({ priorityMethods:
|
|
631
|
-
priority:
|
|
632
|
-
base:
|
|
633
|
-
bodyAttributes:
|
|
634
|
-
htmlAttributes:
|
|
635
|
-
link:
|
|
636
|
-
meta:
|
|
637
|
-
noscript:
|
|
638
|
-
script:
|
|
639
|
-
style:
|
|
640
|
-
title:
|
|
662
|
+
return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = xt(e)), {
|
|
663
|
+
priority: p,
|
|
664
|
+
base: x("base", t, r),
|
|
665
|
+
bodyAttributes: x("bodyAttributes", n, r),
|
|
666
|
+
htmlAttributes: x("htmlAttributes", s, r),
|
|
667
|
+
link: x("link", u, r),
|
|
668
|
+
meta: x("meta", f, r),
|
|
669
|
+
noscript: x("noscript", o, r),
|
|
670
|
+
script: x("script", m, r),
|
|
671
|
+
style: x("style", c, r),
|
|
672
|
+
title: x("title", { title: i, titleAttributes: l }, r)
|
|
641
673
|
};
|
|
642
|
-
},
|
|
674
|
+
}, Z = St, U = [], Se = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
|
|
643
675
|
constructor(e, t) {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
676
|
+
E(this, "instances", []);
|
|
677
|
+
E(this, "canUseDOM", Se);
|
|
678
|
+
E(this, "context");
|
|
679
|
+
E(this, "value", {
|
|
648
680
|
setHelmet: (e) => {
|
|
649
681
|
this.context.helmet = e;
|
|
650
682
|
},
|
|
@@ -659,7 +691,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
659
691
|
}
|
|
660
692
|
}
|
|
661
693
|
});
|
|
662
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
694
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = Z({
|
|
663
695
|
baseTag: [],
|
|
664
696
|
bodyAttributes: {},
|
|
665
697
|
encodeSpecialCharacters: !0,
|
|
@@ -673,20 +705,20 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
673
705
|
titleAttributes: {}
|
|
674
706
|
}));
|
|
675
707
|
}
|
|
676
|
-
},
|
|
677
|
-
constructor(
|
|
678
|
-
super(
|
|
679
|
-
|
|
680
|
-
this.helmetData = new
|
|
708
|
+
}, At = {}, Ae = D.createContext(At), P, be = (P = class extends re {
|
|
709
|
+
constructor(n) {
|
|
710
|
+
super(n);
|
|
711
|
+
E(this, "helmetData");
|
|
712
|
+
this.helmetData = new X(this.props.context || {}, P.canUseDOM);
|
|
681
713
|
}
|
|
682
714
|
render() {
|
|
683
|
-
return /* @__PURE__ */
|
|
715
|
+
return /* @__PURE__ */ D.createElement(Ae.Provider, { value: this.helmetData.value }, this.props.children);
|
|
684
716
|
}
|
|
685
|
-
},
|
|
686
|
-
const
|
|
717
|
+
}, E(P, "canUseDOM", Se), P), M = (e, t) => {
|
|
718
|
+
const n = document.head || document.querySelector(
|
|
687
719
|
"head"
|
|
688
720
|
/* HEAD */
|
|
689
|
-
),
|
|
721
|
+
), r = n.querySelectorAll(`${e}[${b}]`), s = [].slice.call(r), o = [];
|
|
690
722
|
let c;
|
|
691
723
|
return t && t.length && t.forEach((i) => {
|
|
692
724
|
const l = document.createElement(e);
|
|
@@ -697,37 +729,37 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
697
729
|
else if (a === "cssText")
|
|
698
730
|
l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
|
|
699
731
|
else {
|
|
700
|
-
const u = a,
|
|
701
|
-
l.setAttribute(a,
|
|
732
|
+
const u = a, f = typeof i[u] > "u" ? "" : i[u];
|
|
733
|
+
l.setAttribute(a, f);
|
|
702
734
|
}
|
|
703
|
-
l.setAttribute(
|
|
735
|
+
l.setAttribute(b, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
|
|
704
736
|
}), s.forEach((i) => {
|
|
705
737
|
var l;
|
|
706
738
|
return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
|
|
707
|
-
}), o.forEach((i) =>
|
|
739
|
+
}), o.forEach((i) => n.appendChild(i)), {
|
|
708
740
|
oldTags: s,
|
|
709
741
|
newTags: o
|
|
710
742
|
};
|
|
711
743
|
}, ee = (e, t) => {
|
|
712
|
-
const
|
|
713
|
-
if (!
|
|
744
|
+
const n = document.getElementsByTagName(e)[0];
|
|
745
|
+
if (!n)
|
|
714
746
|
return;
|
|
715
|
-
const
|
|
747
|
+
const r = n.getAttribute(b), s = r ? r.split(",") : [], o = [...s], c = Object.keys(t);
|
|
716
748
|
for (const i of c) {
|
|
717
749
|
const l = t[i] || "";
|
|
718
|
-
|
|
750
|
+
n.getAttribute(i) !== l && n.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
|
|
719
751
|
const a = o.indexOf(i);
|
|
720
752
|
a !== -1 && o.splice(a, 1);
|
|
721
753
|
}
|
|
722
754
|
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
723
|
-
|
|
724
|
-
s.length === o.length ?
|
|
725
|
-
},
|
|
755
|
+
n.removeAttribute(o[i]);
|
|
756
|
+
s.length === o.length ? n.removeAttribute(b) : n.getAttribute(b) !== c.join(",") && n.setAttribute(b, c.join(","));
|
|
757
|
+
}, bt = (e, t) => {
|
|
726
758
|
typeof e < "u" && document.title !== e && (document.title = Te(e)), ee("title", t);
|
|
727
|
-
},
|
|
759
|
+
}, ce = (e, t) => {
|
|
728
760
|
const {
|
|
729
|
-
baseTag:
|
|
730
|
-
bodyAttributes:
|
|
761
|
+
baseTag: n,
|
|
762
|
+
bodyAttributes: r,
|
|
731
763
|
htmlAttributes: s,
|
|
732
764
|
linkTags: o,
|
|
733
765
|
metaTags: c,
|
|
@@ -735,35 +767,35 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
735
767
|
onChangeClientState: l,
|
|
736
768
|
scriptTags: a,
|
|
737
769
|
styleTags: u,
|
|
738
|
-
title:
|
|
770
|
+
title: f,
|
|
739
771
|
titleAttributes: m
|
|
740
772
|
} = e;
|
|
741
|
-
ee("body",
|
|
742
|
-
const
|
|
743
|
-
baseTag:
|
|
744
|
-
linkTags:
|
|
745
|
-
metaTags:
|
|
746
|
-
noscriptTags:
|
|
747
|
-
scriptTags:
|
|
748
|
-
styleTags:
|
|
749
|
-
},
|
|
750
|
-
Object.keys(
|
|
751
|
-
const { newTags:
|
|
752
|
-
|
|
753
|
-
}), t && t(), l(e,
|
|
773
|
+
ee("body", r), ee("html", s), bt(f, m);
|
|
774
|
+
const p = {
|
|
775
|
+
baseTag: M("base", n),
|
|
776
|
+
linkTags: M("link", o),
|
|
777
|
+
metaTags: M("meta", c),
|
|
778
|
+
noscriptTags: M("noscript", i),
|
|
779
|
+
scriptTags: M("script", a),
|
|
780
|
+
styleTags: M("style", u)
|
|
781
|
+
}, y = {}, v = {};
|
|
782
|
+
Object.keys(p).forEach((C) => {
|
|
783
|
+
const { newTags: w, oldTags: k } = p[C];
|
|
784
|
+
w.length && (y[C] = w), k.length && (v[C] = p[C].oldTags);
|
|
785
|
+
}), t && t(), l(e, y, v);
|
|
754
786
|
}, R = null, Ct = (e) => {
|
|
755
787
|
R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
|
|
756
|
-
|
|
788
|
+
ce(e, () => {
|
|
757
789
|
R = null;
|
|
758
790
|
});
|
|
759
|
-
}) : (
|
|
760
|
-
},
|
|
791
|
+
}) : (ce(e), R = null);
|
|
792
|
+
}, Et = Ct, ue = class extends re {
|
|
761
793
|
constructor() {
|
|
762
794
|
super(...arguments);
|
|
763
|
-
|
|
795
|
+
E(this, "rendered", !1);
|
|
764
796
|
}
|
|
765
797
|
shouldComponentUpdate(t) {
|
|
766
|
-
return !
|
|
798
|
+
return !it(t, this.props);
|
|
767
799
|
}
|
|
768
800
|
componentDidUpdate() {
|
|
769
801
|
this.emitChange();
|
|
@@ -773,15 +805,15 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
773
805
|
t.remove(this), this.emitChange();
|
|
774
806
|
}
|
|
775
807
|
emitChange() {
|
|
776
|
-
const { helmetInstances: t, setHelmet:
|
|
777
|
-
let
|
|
778
|
-
const s =
|
|
808
|
+
const { helmetInstances: t, setHelmet: n } = this.props.context;
|
|
809
|
+
let r = null;
|
|
810
|
+
const s = pt(
|
|
779
811
|
t.get().map((o) => {
|
|
780
812
|
const c = { ...o.props };
|
|
781
813
|
return delete c.context, c;
|
|
782
814
|
})
|
|
783
815
|
);
|
|
784
|
-
|
|
816
|
+
be.canUseDOM ? Et(s) : Z && (r = Z(s)), n(r);
|
|
785
817
|
}
|
|
786
818
|
// componentWillMount will be deprecated
|
|
787
819
|
// for SSR, initialize on first render
|
|
@@ -796,9 +828,9 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
796
828
|
render() {
|
|
797
829
|
return this.init(), null;
|
|
798
830
|
}
|
|
799
|
-
}, J,
|
|
831
|
+
}, J, Ot = (J = class extends re {
|
|
800
832
|
shouldComponentUpdate(e) {
|
|
801
|
-
return !
|
|
833
|
+
return !ot(le(this.props, "helmetData"), le(e, "helmetData"));
|
|
802
834
|
}
|
|
803
835
|
mapNestedChildrenToProps(e, t) {
|
|
804
836
|
if (!t)
|
|
@@ -819,71 +851,71 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
819
851
|
);
|
|
820
852
|
}
|
|
821
853
|
}
|
|
822
|
-
flattenArrayTypeChildren(e, t,
|
|
854
|
+
flattenArrayTypeChildren(e, t, n, r) {
|
|
823
855
|
return {
|
|
824
856
|
...t,
|
|
825
857
|
[e.type]: [
|
|
826
858
|
...t[e.type] || [],
|
|
827
859
|
{
|
|
828
|
-
...
|
|
829
|
-
...this.mapNestedChildrenToProps(e,
|
|
860
|
+
...n,
|
|
861
|
+
...this.mapNestedChildrenToProps(e, r)
|
|
830
862
|
}
|
|
831
863
|
]
|
|
832
864
|
};
|
|
833
865
|
}
|
|
834
|
-
mapObjectTypeChildren(e, t,
|
|
866
|
+
mapObjectTypeChildren(e, t, n, r) {
|
|
835
867
|
switch (e.type) {
|
|
836
868
|
case "title":
|
|
837
869
|
return {
|
|
838
870
|
...t,
|
|
839
|
-
[e.type]:
|
|
840
|
-
titleAttributes: { ...
|
|
871
|
+
[e.type]: r,
|
|
872
|
+
titleAttributes: { ...n }
|
|
841
873
|
};
|
|
842
874
|
case "body":
|
|
843
875
|
return {
|
|
844
876
|
...t,
|
|
845
|
-
bodyAttributes: { ...
|
|
877
|
+
bodyAttributes: { ...n }
|
|
846
878
|
};
|
|
847
879
|
case "html":
|
|
848
880
|
return {
|
|
849
881
|
...t,
|
|
850
|
-
htmlAttributes: { ...
|
|
882
|
+
htmlAttributes: { ...n }
|
|
851
883
|
};
|
|
852
884
|
default:
|
|
853
885
|
return {
|
|
854
886
|
...t,
|
|
855
|
-
[e.type]: { ...
|
|
887
|
+
[e.type]: { ...n }
|
|
856
888
|
};
|
|
857
889
|
}
|
|
858
890
|
}
|
|
859
891
|
mapArrayTypeChildrenToProps(e, t) {
|
|
860
|
-
let
|
|
861
|
-
return Object.keys(e).forEach((
|
|
862
|
-
|
|
863
|
-
...
|
|
864
|
-
[
|
|
892
|
+
let n = { ...t };
|
|
893
|
+
return Object.keys(e).forEach((r) => {
|
|
894
|
+
n = {
|
|
895
|
+
...n,
|
|
896
|
+
[r]: e[r]
|
|
865
897
|
};
|
|
866
|
-
}),
|
|
898
|
+
}), n;
|
|
867
899
|
}
|
|
868
900
|
warnOnInvalidChildren(e, t) {
|
|
869
|
-
return
|
|
870
|
-
|
|
871
|
-
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${
|
|
901
|
+
return ae(
|
|
902
|
+
ie.some((n) => e.type === n),
|
|
903
|
+
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${ie.join(
|
|
872
904
|
", "
|
|
873
905
|
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
874
|
-
),
|
|
875
|
-
!t || typeof t == "string" || Array.isArray(t) && !t.some((
|
|
906
|
+
), ae(
|
|
907
|
+
!t || typeof t == "string" || Array.isArray(t) && !t.some((n) => typeof n != "string"),
|
|
876
908
|
`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
|
|
877
909
|
), !0;
|
|
878
910
|
}
|
|
879
911
|
mapChildrenToProps(e, t) {
|
|
880
|
-
let
|
|
881
|
-
return
|
|
882
|
-
if (!
|
|
912
|
+
let n = {};
|
|
913
|
+
return D.Children.forEach(e, (r) => {
|
|
914
|
+
if (!r || !r.props)
|
|
883
915
|
return;
|
|
884
|
-
const { children: s, ...o } =
|
|
885
|
-
let { type: i } =
|
|
886
|
-
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(
|
|
916
|
+
const { children: s, ...o } = r.props, c = Object.keys(o).reduce((l, a) => (l[lt[a] || a] = o[a], l), {});
|
|
917
|
+
let { type: i } = r;
|
|
918
|
+
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(r, s), i) {
|
|
887
919
|
case "Symbol(react.fragment)":
|
|
888
920
|
t = this.mapChildrenToProps(s, t);
|
|
889
921
|
break;
|
|
@@ -892,79 +924,79 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
892
924
|
case "noscript":
|
|
893
925
|
case "script":
|
|
894
926
|
case "style":
|
|
895
|
-
|
|
896
|
-
n,
|
|
927
|
+
n = this.flattenArrayTypeChildren(
|
|
897
928
|
r,
|
|
929
|
+
n,
|
|
898
930
|
c,
|
|
899
931
|
s
|
|
900
932
|
);
|
|
901
933
|
break;
|
|
902
934
|
default:
|
|
903
|
-
t = this.mapObjectTypeChildren(
|
|
935
|
+
t = this.mapObjectTypeChildren(r, t, c, s);
|
|
904
936
|
break;
|
|
905
937
|
}
|
|
906
|
-
}), this.mapArrayTypeChildrenToProps(
|
|
938
|
+
}), this.mapArrayTypeChildrenToProps(n, t);
|
|
907
939
|
}
|
|
908
940
|
render() {
|
|
909
941
|
const { children: e, ...t } = this.props;
|
|
910
|
-
let
|
|
911
|
-
if (e && (
|
|
912
|
-
const s =
|
|
913
|
-
|
|
942
|
+
let n = { ...t }, { helmetData: r } = t;
|
|
943
|
+
if (e && (n = this.mapChildrenToProps(e, n)), r && !(r instanceof X)) {
|
|
944
|
+
const s = r;
|
|
945
|
+
r = new X(s.context, !0), delete n.helmetData;
|
|
914
946
|
}
|
|
915
|
-
return
|
|
947
|
+
return r ? /* @__PURE__ */ D.createElement(ue, { ...n, context: r.value }) : /* @__PURE__ */ D.createElement(Ae.Consumer, null, (s) => /* @__PURE__ */ D.createElement(ue, { ...n, context: s }));
|
|
916
948
|
}
|
|
917
|
-
},
|
|
949
|
+
}, E(J, "defaultProps", {
|
|
918
950
|
defer: !0,
|
|
919
951
|
encodeSpecialCharacters: !0,
|
|
920
952
|
prioritizeSeoTags: !1
|
|
921
953
|
}), J);
|
|
922
|
-
const
|
|
923
|
-
const [
|
|
924
|
-
|
|
925
|
-
]), o =
|
|
926
|
-
s((u) => [...u,
|
|
927
|
-
}, [
|
|
954
|
+
const fe = (e, t) => e ? `${e} | ${t}` : t, zt = ({ defaultHelmet: e, children: t, helmetPrefix: n }) => {
|
|
955
|
+
const [r, s] = S([
|
|
956
|
+
fe(n ?? "", e)
|
|
957
|
+
]), o = h((a) => {
|
|
958
|
+
s((u) => [...u, fe(n ?? "", a)]);
|
|
959
|
+
}, [n]), c = h(() => {
|
|
928
960
|
s((a) => a.length > 1 ? a.slice(0, -1) : a);
|
|
929
|
-
}, [s]), i =
|
|
930
|
-
return /* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
961
|
+
}, [s]), i = T(() => r.at(-1) ?? "", [r]), l = T(() => ({ addHelmet: o, removeHelmet: c }), [o, c]);
|
|
962
|
+
return /* @__PURE__ */ d.jsx($e.Provider, { value: l, children: /* @__PURE__ */ d.jsxs(be, { children: [
|
|
963
|
+
/* @__PURE__ */ d.jsx(Ot, { defer: !1, children: /* @__PURE__ */ d.jsx("title", { children: i }) }),
|
|
932
964
|
t
|
|
933
965
|
] }) });
|
|
934
|
-
},
|
|
935
|
-
const { texts: { confirm: e } } =
|
|
966
|
+
}, de = 50, wt = () => {
|
|
967
|
+
const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: n, text: r, show: s, textSm: o } = Re(), c = T(() => o === void 0 ? r.length > de : o, [r, o]), i = T(() => r.length > de, [r]), l = h((a) => {
|
|
936
968
|
if (s)
|
|
937
969
|
switch (a.key) {
|
|
938
970
|
case "Enter":
|
|
939
971
|
a.preventDefault(), a.stopPropagation(), t();
|
|
940
972
|
break;
|
|
941
973
|
case "Escape":
|
|
942
|
-
a.preventDefault(), a.stopPropagation(),
|
|
974
|
+
a.preventDefault(), a.stopPropagation(), n();
|
|
943
975
|
break;
|
|
944
976
|
}
|
|
945
|
-
}, [t,
|
|
946
|
-
return
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
977
|
+
}, [t, n, s]);
|
|
978
|
+
return Ue(l), /* @__PURE__ */ d.jsxs(O, { show: s, size: i ? void 0 : "sm", centered: !0, onHide: n, children: [
|
|
979
|
+
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: c ? /* @__PURE__ */ d.jsx(Fe, { variant: "body", children: r }) : /* @__PURE__ */ d.jsx(O.Title, { children: r }) }),
|
|
980
|
+
/* @__PURE__ */ d.jsx(O.Body, { children: /* @__PURE__ */ d.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
981
|
+
/* @__PURE__ */ d.jsx(G, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: e.no }),
|
|
982
|
+
/* @__PURE__ */ d.jsx(G, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
|
|
951
983
|
] }) })
|
|
952
984
|
] });
|
|
953
985
|
};
|
|
954
986
|
export {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
987
|
+
pe as AuthContext,
|
|
988
|
+
qt as AuthProvider,
|
|
989
|
+
he as DelegationContext,
|
|
958
990
|
Gt as DelegationProvider,
|
|
959
991
|
Bt as FormDisabledContext,
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
992
|
+
Wt as FormDisabledProvider,
|
|
993
|
+
$e as HelmetContext,
|
|
994
|
+
zt as HelmetProvider,
|
|
995
|
+
Ie as LoadingContext,
|
|
996
|
+
Ft as LoadingProvider,
|
|
965
997
|
z as LuminusComponentsContext,
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
998
|
+
Ut as LuminusComponentsProvider,
|
|
999
|
+
Le as UserContext,
|
|
1000
|
+
Nt as UserProvider,
|
|
1001
|
+
Yt as useFormDisabledContext
|
|
970
1002
|
};
|