react-luminus-components 1.3.268 → 1.3.269
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 +26 -26
- package/dist/{FormDisabledProvider-VKAEqT1f.cjs → FormDisabledProvider-DDKE_eKy.cjs} +1 -1
- package/dist/{FormDisabledProvider-CV7PmyzE.js → FormDisabledProvider-DxRJDkfY.js} +1 -1
- package/dist/contexts/confirm/ConfirmContext.d.ts +2 -6
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +312 -312
- package/dist/hooks/useConfirm/useConfirm.d.ts +2 -6
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +20 -20
- package/dist/main.es-BabJ-geZ.cjs +2538 -0
- package/dist/main.es-C8xStyzA.js +207708 -0
- package/dist/main.es.js +4 -4
- package/dist/{useGetApiData-lE3ggr95.cjs → useGetApiData-C-BddvcC.cjs} +1 -1
- package/dist/{useGetApiData-CMAZ436V.js → useGetApiData-CBEnvOV4.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
- package/dist/main.es-J04ddZWL.js +0 -128001
- package/dist/main.es-QKc0obgT.cjs +0 -1542
package/dist/contexts.es.js
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { t as F, bE as
|
|
5
|
-
import { bM as
|
|
6
|
-
import O, { useState as
|
|
7
|
-
import { EventType as
|
|
8
|
-
import { MsalProvider as
|
|
1
|
+
var Ee = Object.defineProperty;
|
|
2
|
+
var Oe = (e, t, r) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var S = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { t as F, bE as we, j as f, bF as Ie, P as z, ah as Pe, bG as de, an as A, ae as De, Q as q, bH as je, al as ke, aj as Le, b1 as me, br as pe, b2 as He, b3 as j, ak as _e, bI as Me, az as se, bJ as $e, aR as he, bK as oe, bL as Re, ai as Ue, aV as Fe, a4 as Ne } from "./main.es-C8xStyzA.js";
|
|
5
|
+
import { bM as Bt, ac as Yt } from "./main.es-C8xStyzA.js";
|
|
6
|
+
import O, { useState as x, useCallback as m, useMemo as g, useContext as _, useEffect as D, useRef as ye, Component as te } from "react";
|
|
7
|
+
import { EventType as W } from "@azure/msal-browser";
|
|
8
|
+
import { MsalProvider as Ge } 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 { u as
|
|
16
|
-
import { u as
|
|
17
|
-
function
|
|
13
|
+
import { L as qe } from "./FormDisabledProvider-DxRJDkfY.js";
|
|
14
|
+
import { F as Wt } from "./FormDisabledProvider-DxRJDkfY.js";
|
|
15
|
+
import { u as ze } from "./useGetApiData-CBEnvOV4.js";
|
|
16
|
+
import { u as Ke } from "./useLocalStorageState-Bt99kkCr.js";
|
|
17
|
+
function Ve(e) {
|
|
18
18
|
const t = F(e);
|
|
19
19
|
return t.setHours(23, 59, 59, 999), t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
21
|
+
function Be() {
|
|
22
|
+
return Ve(Date.now());
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Ye(e, t) {
|
|
25
25
|
const r = +F(e), [n, s] = [
|
|
26
26
|
+F(t.start),
|
|
27
27
|
+F(t.end)
|
|
28
|
-
].sort((o,
|
|
28
|
+
].sort((o, c) => o - c);
|
|
29
29
|
return r >= n && r <= s;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function Je() {
|
|
32
|
+
return we(Date.now());
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
const [t, r] =
|
|
36
|
-
r(!0), s(u),
|
|
37
|
-
}, []),
|
|
34
|
+
const We = ({ children: e }) => {
|
|
35
|
+
const [t, r] = x(!1), [n, s] = x(""), [o, c] = x(void 0), i = m((u, d) => {
|
|
36
|
+
r(!0), s(u), c(d);
|
|
37
|
+
}, []), l = m(() => {
|
|
38
38
|
r(!1);
|
|
39
|
-
}, []),
|
|
40
|
-
return /* @__PURE__ */ f.jsxs(
|
|
41
|
-
/* @__PURE__ */ f.jsx(
|
|
39
|
+
}, []), a = g(() => ({ show: t, text: n, showConfirm: i, hideConfirm: l, textSm: o }), [t, n, i, l, o]);
|
|
40
|
+
return /* @__PURE__ */ f.jsxs(Ie.Provider, { value: a, children: [
|
|
41
|
+
/* @__PURE__ */ f.jsx(Ot, {}),
|
|
42
42
|
e
|
|
43
43
|
] });
|
|
44
|
-
},
|
|
45
|
-
const { texts: { confirm: e } } = _(z), { isShown: t, text: r, onFinish: n } =
|
|
44
|
+
}, Qe = () => {
|
|
45
|
+
const { texts: { confirm: e } } = _(z), { isShown: t, text: r, onFinish: n } = Pe(), { options: s } = _(de), [o, c] = x(s.defaultValue ?? ""), i = m(() => {
|
|
46
46
|
n(null);
|
|
47
|
-
}, [n]),
|
|
47
|
+
}, [n]), l = m((u) => {
|
|
48
48
|
u.preventDefault(), !(s.required && !o) && n(o);
|
|
49
49
|
}, [n, s.required, o]);
|
|
50
50
|
D(() => {
|
|
51
|
-
t === !0 &&
|
|
51
|
+
t === !0 && c(s.defaultValue ?? "");
|
|
52
52
|
}, [t, s.defaultValue]);
|
|
53
|
-
const
|
|
53
|
+
const a = g(() => ({
|
|
54
54
|
value: o,
|
|
55
|
-
onChange: (u) =>
|
|
55
|
+
onChange: (u) => c(u.currentTarget.value),
|
|
56
56
|
className: "w-100",
|
|
57
57
|
autoFocus: !0,
|
|
58
58
|
tabIndex: 0
|
|
59
59
|
}), [o]);
|
|
60
|
-
return /* @__PURE__ */ f.jsxs(
|
|
61
|
-
/* @__PURE__ */ f.jsx(
|
|
62
|
-
/* @__PURE__ */ f.jsxs("form", { onSubmit:
|
|
63
|
-
/* @__PURE__ */ f.jsxs(
|
|
64
|
-
s.input === "textarea" ? /* @__PURE__ */ f.jsx("textarea", { ...
|
|
65
|
-
s.input === "input" ? /* @__PURE__ */ f.jsx(
|
|
60
|
+
return /* @__PURE__ */ f.jsxs(A, { show: t, size: "sm", centered: !0, onHide: i, children: [
|
|
61
|
+
/* @__PURE__ */ f.jsx(A.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(A.Title, { children: r }) }),
|
|
62
|
+
/* @__PURE__ */ f.jsxs("form", { onSubmit: l, children: [
|
|
63
|
+
/* @__PURE__ */ f.jsxs(A.Body, { children: [
|
|
64
|
+
s.input === "textarea" ? /* @__PURE__ */ f.jsx("textarea", { ...a, rows: 5 }) : void 0,
|
|
65
|
+
s.input === "input" ? /* @__PURE__ */ f.jsx(De, { ...a, type: s.type }) : void 0
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */ f.jsxs(
|
|
68
|
-
/* @__PURE__ */ f.jsx(q, { variant: "outlined", color: "secondary", onClick:
|
|
67
|
+
/* @__PURE__ */ f.jsxs(A.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
68
|
+
/* @__PURE__ */ f.jsx(q, { variant: "outlined", color: "secondary", onClick: i, className: "flex-grow-1", children: e.cancel }),
|
|
69
69
|
/* @__PURE__ */ f.jsx(q, { color: "primary", disabled: s.required && !o, type: "submit", className: "flex-grow-1", children: e.confirm })
|
|
70
70
|
] })
|
|
71
71
|
] })
|
|
72
72
|
] });
|
|
73
|
-
},
|
|
74
|
-
const [t, r] =
|
|
75
|
-
}),
|
|
73
|
+
}, Ze = ({ children: e }) => {
|
|
74
|
+
const [t, r] = x(!1), [n, s] = x(""), [o, c] = x({ input: "textarea", type: "text" }), i = ye(() => {
|
|
75
|
+
}), l = m((d) => {
|
|
76
76
|
s(d), r(!0);
|
|
77
|
-
}, []),
|
|
77
|
+
}, []), a = m(() => {
|
|
78
78
|
r(!1);
|
|
79
|
-
}, []), u =
|
|
79
|
+
}, []), u = g(() => ({
|
|
80
80
|
isShown: t,
|
|
81
81
|
text: n,
|
|
82
|
-
showPrompt:
|
|
83
|
-
hidePrompt:
|
|
84
|
-
resolveRef:
|
|
82
|
+
showPrompt: l,
|
|
83
|
+
hidePrompt: a,
|
|
84
|
+
resolveRef: i,
|
|
85
85
|
options: o,
|
|
86
|
-
setOptions:
|
|
87
|
-
}), [t, n,
|
|
88
|
-
return /* @__PURE__ */ f.jsxs(
|
|
86
|
+
setOptions: c
|
|
87
|
+
}), [t, n, l, a, o]);
|
|
88
|
+
return /* @__PURE__ */ f.jsxs(de.Provider, { value: u, children: [
|
|
89
89
|
e,
|
|
90
|
-
/* @__PURE__ */ f.jsx(
|
|
90
|
+
/* @__PURE__ */ f.jsx(Qe, {})
|
|
91
91
|
] });
|
|
92
|
-
},
|
|
93
|
-
const
|
|
92
|
+
}, Ut = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: c, children: i }) => {
|
|
93
|
+
const l = g(() => ({
|
|
94
94
|
axiosOptions: t,
|
|
95
95
|
cookieDomain: e,
|
|
96
96
|
language: r,
|
|
97
97
|
texts: n,
|
|
98
98
|
ProjectIconComponent: s,
|
|
99
99
|
localizationContext: o,
|
|
100
|
-
chartColorPalette:
|
|
100
|
+
chartColorPalette: c
|
|
101
101
|
}), [
|
|
102
102
|
t,
|
|
103
103
|
e,
|
|
@@ -105,70 +105,70 @@ const Ye = ({ children: e }) => {
|
|
|
105
105
|
s,
|
|
106
106
|
o,
|
|
107
107
|
n,
|
|
108
|
-
|
|
108
|
+
c
|
|
109
109
|
]);
|
|
110
|
-
return /* @__PURE__ */ f.jsx(z.Provider, { value:
|
|
111
|
-
/* @__PURE__ */ f.jsx(
|
|
112
|
-
|
|
110
|
+
return /* @__PURE__ */ f.jsx(z.Provider, { value: l, children: /* @__PURE__ */ f.jsx(We, { children: /* @__PURE__ */ f.jsxs(Ze, { children: [
|
|
111
|
+
/* @__PURE__ */ f.jsx(je, {}),
|
|
112
|
+
i
|
|
113
113
|
] }) }) });
|
|
114
|
-
},
|
|
115
|
-
const [t, r] =
|
|
116
|
-
n.add(
|
|
117
|
-
}, [n]), o = m((
|
|
118
|
-
n.delete(
|
|
119
|
-
}, [n]),
|
|
120
|
-
return /* @__PURE__ */ f.jsxs(
|
|
121
|
-
t && /* @__PURE__ */ f.jsx(
|
|
114
|
+
}, Ft = ({ children: e }) => {
|
|
115
|
+
const [t, r] = x(!1), [n] = x(/* @__PURE__ */ new Set()), s = m((i) => {
|
|
116
|
+
n.add(i), r(!0);
|
|
117
|
+
}, [n]), o = m((i) => {
|
|
118
|
+
n.delete(i), n.size === 0 && r(!1);
|
|
119
|
+
}, [n]), c = g(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
|
|
120
|
+
return /* @__PURE__ */ f.jsxs(ke.Provider, { value: c, children: [
|
|
121
|
+
t && /* @__PURE__ */ f.jsx(qe, {}),
|
|
122
122
|
e
|
|
123
123
|
] });
|
|
124
|
-
},
|
|
125
|
-
const t =
|
|
126
|
-
const y = await
|
|
127
|
-
y &&
|
|
128
|
-
}, [
|
|
124
|
+
}, Nt = ({ children: e }) => {
|
|
125
|
+
const t = Le(), { msalInstance: r } = _(me), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: c } = _(pe), { getToken: i } = He(), [l, a] = x(null), u = m(async () => {
|
|
126
|
+
const y = await i();
|
|
127
|
+
y && a(y.token);
|
|
128
|
+
}, [i]);
|
|
129
129
|
D(() => {
|
|
130
130
|
u();
|
|
131
131
|
}, [u]);
|
|
132
132
|
const h = m(() => {
|
|
133
133
|
const y = localStorage.getItem("user") ?? null;
|
|
134
134
|
return y ? JSON.parse(y ?? "") : null;
|
|
135
|
-
}, [])(), [p,
|
|
135
|
+
}, [])(), [p, T] = x({
|
|
136
136
|
state: h ? j.LOGGED_IN : j.LOGGING_IN,
|
|
137
137
|
user: h
|
|
138
|
-
}),
|
|
139
|
-
let
|
|
138
|
+
}), M = m(async (y) => {
|
|
139
|
+
let b = null;
|
|
140
140
|
return await t.get("/user/detail", y ? { headers: { Authorization: `Bearer ${y}` } } : void 0).then((K) => {
|
|
141
|
-
|
|
141
|
+
b = K.data;
|
|
142
142
|
}).catch(() => {
|
|
143
|
-
|
|
144
|
-
}),
|
|
143
|
+
b = null;
|
|
144
|
+
}), b;
|
|
145
145
|
}, [t]), w = m(() => {
|
|
146
|
-
localStorage.removeItem("user"),
|
|
146
|
+
localStorage.removeItem("user"), T({
|
|
147
147
|
state: j.LOGGED_OUT,
|
|
148
148
|
user: null
|
|
149
149
|
}), s(null), o(null);
|
|
150
150
|
}, [o, s]), E = m(async (y) => {
|
|
151
|
-
|
|
151
|
+
T({
|
|
152
152
|
state: j.LOGGING_IN,
|
|
153
153
|
user: null
|
|
154
154
|
});
|
|
155
|
-
const
|
|
156
|
-
return
|
|
155
|
+
const b = await M(y);
|
|
156
|
+
return b ? (T({
|
|
157
157
|
state: j.LOGGED_IN,
|
|
158
|
-
user:
|
|
159
|
-
}), localStorage.setItem("user", JSON.stringify(
|
|
158
|
+
user: b
|
|
159
|
+
}), localStorage.setItem("user", JSON.stringify(b)), await c(), !0) : (T({
|
|
160
160
|
state: j.LOGIN_FAILED,
|
|
161
161
|
user: null
|
|
162
162
|
}), !1);
|
|
163
|
-
}, [
|
|
163
|
+
}, [M, c]), I = m(() => {
|
|
164
164
|
w();
|
|
165
165
|
}, [w]);
|
|
166
166
|
D(() => {
|
|
167
167
|
if (r) {
|
|
168
|
-
const y = r.addEventCallback((
|
|
169
|
-
if (
|
|
170
|
-
const K =
|
|
171
|
-
|
|
168
|
+
const y = r.addEventCallback((b) => {
|
|
169
|
+
if (b.eventType === W.LOGIN_SUCCESS && b.payload) {
|
|
170
|
+
const K = b.payload;
|
|
171
|
+
a(K.accessToken);
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
return () => {
|
|
@@ -184,17 +184,17 @@ const Ye = ({ children: e }) => {
|
|
|
184
184
|
});
|
|
185
185
|
}, [E, I, s]);
|
|
186
186
|
D(() => {
|
|
187
|
-
ne(
|
|
188
|
-
}, [
|
|
189
|
-
const Ae =
|
|
187
|
+
ne(l);
|
|
188
|
+
}, [l, n == null ? void 0 : n.id, ne]);
|
|
189
|
+
const Ae = g(() => ({
|
|
190
190
|
user: p.user,
|
|
191
191
|
userLoginState: p,
|
|
192
192
|
loginUser: E,
|
|
193
193
|
logoutUser: I
|
|
194
194
|
}), [p, E, I]);
|
|
195
|
-
return /* @__PURE__ */ f.jsx(
|
|
196
|
-
},
|
|
197
|
-
const { cookieDomain: t } = _(z), [, r] =
|
|
195
|
+
return /* @__PURE__ */ f.jsx(_e.Provider, { value: Ae, children: e });
|
|
196
|
+
}, Gt = ({ ...e }) => {
|
|
197
|
+
const { cookieDomain: t } = _(z), [, r] = Me(["Authorization"]), n = g(() => ({
|
|
198
198
|
useMsal: e.useMsal ?? !1,
|
|
199
199
|
msalInstance: e.useMsal ? e.msalInstance ?? null : null,
|
|
200
200
|
msalScopes: e.useMsal ? e.msalScopes ?? [] : [],
|
|
@@ -203,16 +203,16 @@ const Ye = ({ children: e }) => {
|
|
|
203
203
|
return D(() => {
|
|
204
204
|
if (e.useMsal) {
|
|
205
205
|
const s = e.msalInstance.addEventCallback((o) => {
|
|
206
|
-
if (o.eventType ===
|
|
207
|
-
const
|
|
208
|
-
e.msalInstance.setActiveAccount(
|
|
209
|
-
const
|
|
210
|
-
r("Authorization",
|
|
206
|
+
if (o.eventType === W.LOGIN_SUCCESS || o.eventType === W.ACQUIRE_TOKEN_SUCCESS && o.payload) {
|
|
207
|
+
const c = o.payload, i = c.account;
|
|
208
|
+
e.msalInstance.setActiveAccount(i);
|
|
209
|
+
const l = c.accessToken, a = c.expiresOn;
|
|
210
|
+
r("Authorization", l, {
|
|
211
211
|
path: "/",
|
|
212
212
|
secure: !0,
|
|
213
213
|
sameSite: "none",
|
|
214
214
|
domain: t,
|
|
215
|
-
expires:
|
|
215
|
+
expires: a ?? void 0
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
o.error && console.error("AuthProvider MSAL Error", o);
|
|
@@ -223,48 +223,48 @@ const Ye = ({ children: e }) => {
|
|
|
223
223
|
}
|
|
224
224
|
return () => {
|
|
225
225
|
};
|
|
226
|
-
}, [e, r, t]), /* @__PURE__ */ f.jsx(
|
|
227
|
-
},
|
|
228
|
-
const [r, n, s] =
|
|
226
|
+
}, [e, r, t]), /* @__PURE__ */ f.jsx(me.Provider, { value: n, children: e.useMsal ? /* @__PURE__ */ f.jsx(Ge, { instance: e.msalInstance, children: e.children }) : e.children });
|
|
227
|
+
}, qt = ({ children: e, relativeEndpoint: t }) => {
|
|
228
|
+
const [r, n, s] = Ke("user-delegation", null), o = g(() => {
|
|
229
229
|
if (!r)
|
|
230
230
|
return null;
|
|
231
|
-
const d = r.from ? se(r.from) :
|
|
232
|
-
return
|
|
233
|
-
}, [r, n]), { data:
|
|
231
|
+
const d = r.from ? se(r.from) : Je(), h = r.to ? se(r.to) : Be();
|
|
232
|
+
return Ye(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
|
|
233
|
+
}, [r, n]), { data: c, setData: i, reloadData: l } = ze(t, {
|
|
234
234
|
nullStateBeforeLoad: !1,
|
|
235
235
|
nullStateOnFail: !0
|
|
236
|
-
}),
|
|
236
|
+
}), a = ye(null);
|
|
237
237
|
D(() => {
|
|
238
238
|
const d = () => {
|
|
239
|
-
|
|
239
|
+
l(), a.current = window.setTimeout(d, $e() + 5e3);
|
|
240
240
|
};
|
|
241
241
|
return d(), () => {
|
|
242
|
-
|
|
242
|
+
a.current !== null && window.clearTimeout(a.current);
|
|
243
243
|
};
|
|
244
|
-
}, [
|
|
244
|
+
}, [l]), D(() => {
|
|
245
245
|
const d = () => {
|
|
246
246
|
s();
|
|
247
247
|
};
|
|
248
248
|
return window.addEventListener("focus", d), () => {
|
|
249
249
|
window.removeEventListener("focus", d);
|
|
250
250
|
};
|
|
251
|
-
}, [s,
|
|
252
|
-
const u =
|
|
251
|
+
}, [s, l]);
|
|
252
|
+
const u = g(() => ({
|
|
253
253
|
delegation: o,
|
|
254
254
|
setDelegation: n,
|
|
255
|
-
availableDelegations:
|
|
256
|
-
setAvailableDelegations:
|
|
257
|
-
refreshAvailableDelegations:
|
|
255
|
+
availableDelegations: c,
|
|
256
|
+
setAvailableDelegations: i,
|
|
257
|
+
refreshAvailableDelegations: l
|
|
258
258
|
}), [
|
|
259
259
|
o,
|
|
260
260
|
n,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
c,
|
|
262
|
+
i,
|
|
263
|
+
l
|
|
264
264
|
]);
|
|
265
|
-
return /* @__PURE__ */ f.jsx(
|
|
265
|
+
return /* @__PURE__ */ f.jsx(pe.Provider, { value: u, children: e });
|
|
266
266
|
};
|
|
267
|
-
var
|
|
267
|
+
var Xe = typeof Element < "u", et = typeof Map == "function", tt = typeof Set == "function", rt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
268
268
|
function N(e, t) {
|
|
269
269
|
if (e === t) return !0;
|
|
270
270
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
@@ -277,7 +277,7 @@ function N(e, t) {
|
|
|
277
277
|
return !0;
|
|
278
278
|
}
|
|
279
279
|
var o;
|
|
280
|
-
if (
|
|
280
|
+
if (et && e instanceof Map && t instanceof Map) {
|
|
281
281
|
if (e.size !== t.size) return !1;
|
|
282
282
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
283
283
|
if (!t.has(n.value[0])) return !1;
|
|
@@ -285,13 +285,13 @@ function N(e, t) {
|
|
|
285
285
|
if (!N(n.value[1], t.get(n.value[0]))) return !1;
|
|
286
286
|
return !0;
|
|
287
287
|
}
|
|
288
|
-
if (
|
|
288
|
+
if (tt && e instanceof Set && t instanceof Set) {
|
|
289
289
|
if (e.size !== t.size) return !1;
|
|
290
290
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
291
291
|
if (!t.has(n.value[0])) return !1;
|
|
292
292
|
return !0;
|
|
293
293
|
}
|
|
294
|
-
if (
|
|
294
|
+
if (rt && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
295
295
|
if (r = e.length, r != t.length) return !1;
|
|
296
296
|
for (n = r; n-- !== 0; )
|
|
297
297
|
if (e[n] !== t[n]) return !1;
|
|
@@ -303,7 +303,7 @@ function N(e, t) {
|
|
|
303
303
|
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
304
304
|
for (n = r; n-- !== 0; )
|
|
305
305
|
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
306
|
-
if (
|
|
306
|
+
if (Xe && e instanceof Element) return !1;
|
|
307
307
|
for (n = r; n-- !== 0; )
|
|
308
308
|
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !N(e[s[n]], t[s[n]]))
|
|
309
309
|
return !1;
|
|
@@ -311,7 +311,7 @@ function N(e, t) {
|
|
|
311
311
|
}
|
|
312
312
|
return e !== e && t !== t;
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var nt = function(t, r) {
|
|
315
315
|
try {
|
|
316
316
|
return N(t, r);
|
|
317
317
|
} catch (n) {
|
|
@@ -320,8 +320,8 @@ var tt = function(t, r) {
|
|
|
320
320
|
throw n;
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
|
-
const
|
|
324
|
-
var
|
|
323
|
+
const st = /* @__PURE__ */ he(nt);
|
|
324
|
+
var ot = function(t, r, n, s) {
|
|
325
325
|
var o = n ? n.call(s, t, r) : void 0;
|
|
326
326
|
if (o !== void 0)
|
|
327
327
|
return !!o;
|
|
@@ -329,12 +329,12 @@ var nt = function(t, r, n, s) {
|
|
|
329
329
|
return !0;
|
|
330
330
|
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
331
331
|
return !1;
|
|
332
|
-
var
|
|
333
|
-
if (
|
|
332
|
+
var c = Object.keys(t), i = Object.keys(r);
|
|
333
|
+
if (c.length !== i.length)
|
|
334
334
|
return !1;
|
|
335
|
-
for (var
|
|
336
|
-
var u =
|
|
337
|
-
if (!
|
|
335
|
+
for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
|
|
336
|
+
var u = c[a];
|
|
337
|
+
if (!l(u))
|
|
338
338
|
return !1;
|
|
339
339
|
var d = t[u], h = r[u];
|
|
340
340
|
if (o = n ? n.call(s, d, h, u) : void 0, o === !1 || o === void 0 && d !== h)
|
|
@@ -342,8 +342,8 @@ var nt = function(t, r, n, s) {
|
|
|
342
342
|
}
|
|
343
343
|
return !0;
|
|
344
344
|
};
|
|
345
|
-
const
|
|
346
|
-
var
|
|
345
|
+
const at = /* @__PURE__ */ he(ot);
|
|
346
|
+
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 = {
|
|
347
347
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
348
348
|
script: { type: ["application/ld+json"] },
|
|
349
349
|
meta: {
|
|
@@ -365,7 +365,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
365
365
|
"twitter:site"
|
|
366
366
|
]
|
|
367
367
|
}
|
|
368
|
-
}, ae = Object.values(
|
|
368
|
+
}, ae = Object.values(ge), re = {
|
|
369
369
|
accesskey: "accessKey",
|
|
370
370
|
charset: "charSet",
|
|
371
371
|
class: "className",
|
|
@@ -374,7 +374,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
374
374
|
"http-equiv": "httpEquiv",
|
|
375
375
|
itemprop: "itemProp",
|
|
376
376
|
tabindex: "tabIndex"
|
|
377
|
-
},
|
|
377
|
+
}, it = Object.entries(re).reduce(
|
|
378
378
|
(e, [t, r]) => (e[r] = t, e),
|
|
379
379
|
{}
|
|
380
380
|
), C = "data-rh", L = {
|
|
@@ -391,7 +391,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
391
391
|
return n[t];
|
|
392
392
|
}
|
|
393
393
|
return null;
|
|
394
|
-
},
|
|
394
|
+
}, lt = (e) => {
|
|
395
395
|
let t = H(
|
|
396
396
|
e,
|
|
397
397
|
"title"
|
|
@@ -402,54 +402,54 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
402
402
|
return r.replace(/%s/g, () => t);
|
|
403
403
|
const n = H(e, L.DEFAULT_TITLE);
|
|
404
404
|
return t || n || void 0;
|
|
405
|
-
},
|
|
406
|
-
}), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}),
|
|
405
|
+
}, ct = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
406
|
+
}), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ut = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
407
407
|
if (!r.length) {
|
|
408
408
|
const s = Object.keys(n);
|
|
409
409
|
for (let o = 0; o < s.length; o += 1) {
|
|
410
|
-
const
|
|
411
|
-
if (e.indexOf(
|
|
410
|
+
const i = s[o].toLowerCase();
|
|
411
|
+
if (e.indexOf(i) !== -1 && n[i])
|
|
412
412
|
return r.concat(n);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
return r;
|
|
416
|
-
}, []),
|
|
416
|
+
}, []), ft = (e) => console && typeof console.warn == "function" && console.warn(e), $ = (e, t, r) => {
|
|
417
417
|
const n = {};
|
|
418
|
-
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" &&
|
|
418
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ft(
|
|
419
419
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
420
420
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
421
|
-
const
|
|
422
|
-
o.filter((
|
|
423
|
-
let
|
|
424
|
-
const u = Object.keys(
|
|
421
|
+
const c = {};
|
|
422
|
+
o.filter((l) => {
|
|
423
|
+
let a;
|
|
424
|
+
const u = Object.keys(l);
|
|
425
425
|
for (let h = 0; h < u.length; h += 1) {
|
|
426
|
-
const p = u[h],
|
|
427
|
-
t.indexOf(
|
|
426
|
+
const p = u[h], T = p.toLowerCase();
|
|
427
|
+
t.indexOf(T) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(T === "rel" && l[T].toLowerCase() === "stylesheet") && (a = T), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
|
|
428
428
|
}
|
|
429
|
-
if (!
|
|
429
|
+
if (!a || !l[a])
|
|
430
430
|
return !1;
|
|
431
|
-
const d =
|
|
432
|
-
return n[
|
|
433
|
-
}).reverse().forEach((
|
|
434
|
-
const
|
|
435
|
-
for (let
|
|
436
|
-
const
|
|
437
|
-
...n[
|
|
438
|
-
...
|
|
431
|
+
const d = l[a].toLowerCase();
|
|
432
|
+
return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][d] ? !1 : (c[a][d] = !0, !0);
|
|
433
|
+
}).reverse().forEach((l) => s.push(l));
|
|
434
|
+
const i = Object.keys(c);
|
|
435
|
+
for (let l = 0; l < i.length; l += 1) {
|
|
436
|
+
const a = i[l], u = {
|
|
437
|
+
...n[a],
|
|
438
|
+
...c[a]
|
|
439
439
|
};
|
|
440
|
-
n[
|
|
440
|
+
n[a] = u;
|
|
441
441
|
}
|
|
442
442
|
return s;
|
|
443
443
|
}, []).reverse();
|
|
444
|
-
},
|
|
444
|
+
}, dt = (e, t) => {
|
|
445
445
|
if (Array.isArray(e) && e.length) {
|
|
446
446
|
for (let r = 0; r < e.length; r += 1)
|
|
447
447
|
if (e[r][t])
|
|
448
448
|
return !0;
|
|
449
449
|
}
|
|
450
450
|
return !1;
|
|
451
|
-
},
|
|
452
|
-
baseTag:
|
|
451
|
+
}, mt = (e) => ({
|
|
452
|
+
baseTag: ut([
|
|
453
453
|
"href"
|
|
454
454
|
/* HREF */
|
|
455
455
|
], e),
|
|
@@ -457,7 +457,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
457
457
|
defer: H(e, L.DEFER),
|
|
458
458
|
encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
|
|
459
459
|
htmlAttributes: B("htmlAttributes", e),
|
|
460
|
-
linkTags:
|
|
460
|
+
linkTags: $(
|
|
461
461
|
"link",
|
|
462
462
|
[
|
|
463
463
|
"rel",
|
|
@@ -466,7 +466,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
466
466
|
],
|
|
467
467
|
e
|
|
468
468
|
),
|
|
469
|
-
metaTags:
|
|
469
|
+
metaTags: $(
|
|
470
470
|
"meta",
|
|
471
471
|
[
|
|
472
472
|
"name",
|
|
@@ -478,12 +478,12 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
478
478
|
],
|
|
479
479
|
e
|
|
480
480
|
),
|
|
481
|
-
noscriptTags:
|
|
481
|
+
noscriptTags: $("noscript", [
|
|
482
482
|
"innerHTML"
|
|
483
483
|
/* INNER_HTML */
|
|
484
484
|
], e),
|
|
485
|
-
onChangeClientState:
|
|
486
|
-
scriptTags:
|
|
485
|
+
onChangeClientState: ct(e),
|
|
486
|
+
scriptTags: $(
|
|
487
487
|
"script",
|
|
488
488
|
[
|
|
489
489
|
"src",
|
|
@@ -492,58 +492,58 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
492
492
|
],
|
|
493
493
|
e
|
|
494
494
|
),
|
|
495
|
-
styleTags:
|
|
495
|
+
styleTags: $("style", [
|
|
496
496
|
"cssText"
|
|
497
497
|
/* CSS_TEXT */
|
|
498
498
|
], e),
|
|
499
|
-
title:
|
|
499
|
+
title: lt(e),
|
|
500
500
|
titleAttributes: B("titleAttributes", e),
|
|
501
|
-
prioritizeSeoTags:
|
|
502
|
-
}),
|
|
501
|
+
prioritizeSeoTags: dt(e, L.PRIORITIZE_SEO_TAGS)
|
|
502
|
+
}), Te = (e) => Array.isArray(e) ? e.join("") : e, pt = (e, t) => {
|
|
503
503
|
const r = Object.keys(e);
|
|
504
504
|
for (let n = 0; n < r.length; n += 1)
|
|
505
505
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
506
506
|
return !0;
|
|
507
507
|
return !1;
|
|
508
508
|
}, Y = (e, t) => Array.isArray(e) ? e.reduce(
|
|
509
|
-
(r, n) => (
|
|
509
|
+
(r, n) => (pt(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
510
510
|
{ priority: [], default: [] }
|
|
511
511
|
) : { default: e, priority: [] }, ie = (e, t) => ({
|
|
512
512
|
...e,
|
|
513
513
|
[t]: void 0
|
|
514
|
-
}),
|
|
514
|
+
}), ht = [
|
|
515
515
|
"noscript",
|
|
516
516
|
"script",
|
|
517
517
|
"style"
|
|
518
518
|
/* STYLE */
|
|
519
|
-
],
|
|
519
|
+
], 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, r) => {
|
|
520
520
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
521
521
|
return t ? `${t} ${n}` : n;
|
|
522
|
-
}, ""),
|
|
523
|
-
const s =
|
|
524
|
-
return s ? `<${e} ${C}="true" ${s}>${
|
|
522
|
+
}, ""), yt = (e, t, r, n) => {
|
|
523
|
+
const s = ve(r), o = Te(t);
|
|
524
|
+
return s ? `<${e} ${C}="true" ${s}>${Q(
|
|
525
525
|
o,
|
|
526
526
|
n
|
|
527
|
-
)}</${e}>` : `<${e} ${C}="true">${
|
|
527
|
+
)}</${e}>` : `<${e} ${C}="true">${Q(
|
|
528
528
|
o,
|
|
529
529
|
n
|
|
530
530
|
)}</${e}>`;
|
|
531
|
-
},
|
|
532
|
-
const o = s,
|
|
533
|
-
(
|
|
534
|
-
).reduce((
|
|
535
|
-
const d = typeof o[u] > "u" ? u : `${u}="${
|
|
536
|
-
return
|
|
537
|
-
}, ""),
|
|
538
|
-
return `${n}<${e} ${C}="true" ${
|
|
539
|
-
}, ""),
|
|
531
|
+
}, gt = (e, t, r = !0) => t.reduce((n, s) => {
|
|
532
|
+
const o = s, c = Object.keys(o).filter(
|
|
533
|
+
(a) => !(a === "innerHTML" || a === "cssText")
|
|
534
|
+
).reduce((a, u) => {
|
|
535
|
+
const d = typeof o[u] > "u" ? u : `${u}="${Q(o[u], r)}"`;
|
|
536
|
+
return a ? `${a} ${d}` : d;
|
|
537
|
+
}, ""), i = o.innerHTML || o.cssText || "", l = ht.indexOf(e) === -1;
|
|
538
|
+
return `${n}<${e} ${C}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
|
|
539
|
+
}, ""), xe = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
540
540
|
const s = re[n];
|
|
541
541
|
return r[s || n] = e[n], r;
|
|
542
|
-
}, t),
|
|
542
|
+
}, t), Tt = (e, t, r) => {
|
|
543
543
|
const n = {
|
|
544
544
|
key: t,
|
|
545
545
|
[C]: !0
|
|
546
|
-
}, s =
|
|
546
|
+
}, s = xe(r, n);
|
|
547
547
|
return [O.createElement("title", s, t)];
|
|
548
548
|
}, G = (e, t) => t.map((r, n) => {
|
|
549
549
|
const s = {
|
|
@@ -551,89 +551,89 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
551
551
|
[C]: !0
|
|
552
552
|
};
|
|
553
553
|
return Object.keys(r).forEach((o) => {
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
s.dangerouslySetInnerHTML = { __html:
|
|
554
|
+
const i = re[o] || o;
|
|
555
|
+
if (i === "innerHTML" || i === "cssText") {
|
|
556
|
+
const l = r.innerHTML || r.cssText;
|
|
557
|
+
s.dangerouslySetInnerHTML = { __html: l };
|
|
558
558
|
} else
|
|
559
|
-
s[
|
|
559
|
+
s[i] = r[o];
|
|
560
560
|
}), O.createElement(e, s);
|
|
561
|
-
}),
|
|
561
|
+
}), v = (e, t, r = !0) => {
|
|
562
562
|
switch (e) {
|
|
563
563
|
case "title":
|
|
564
564
|
return {
|
|
565
|
-
toComponent: () =>
|
|
566
|
-
toString: () =>
|
|
565
|
+
toComponent: () => Tt(e, t.title, t.titleAttributes),
|
|
566
|
+
toString: () => yt(e, t.title, t.titleAttributes, r)
|
|
567
567
|
};
|
|
568
568
|
case "bodyAttributes":
|
|
569
569
|
case "htmlAttributes":
|
|
570
570
|
return {
|
|
571
|
-
toComponent: () =>
|
|
572
|
-
toString: () =>
|
|
571
|
+
toComponent: () => xe(t),
|
|
572
|
+
toString: () => ve(t)
|
|
573
573
|
};
|
|
574
574
|
default:
|
|
575
575
|
return {
|
|
576
576
|
toComponent: () => G(e, t),
|
|
577
|
-
toString: () =>
|
|
577
|
+
toString: () => gt(e, t, r)
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
|
-
},
|
|
581
|
-
const s = Y(e, V.meta), o = Y(t, V.link),
|
|
580
|
+
}, vt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
581
|
+
const s = Y(e, V.meta), o = Y(t, V.link), c = Y(r, V.script);
|
|
582
582
|
return {
|
|
583
583
|
priorityMethods: {
|
|
584
584
|
toComponent: () => [
|
|
585
585
|
...G("meta", s.priority),
|
|
586
586
|
...G("link", o.priority),
|
|
587
|
-
...G("script",
|
|
587
|
+
...G("script", c.priority)
|
|
588
588
|
],
|
|
589
589
|
toString: () => (
|
|
590
590
|
// generate all the tags as strings and concatenate them
|
|
591
|
-
`${
|
|
591
|
+
`${v("meta", s.priority, n)} ${v(
|
|
592
592
|
"link",
|
|
593
593
|
o.priority,
|
|
594
594
|
n
|
|
595
|
-
)} ${
|
|
595
|
+
)} ${v("script", c.priority, n)}`
|
|
596
596
|
)
|
|
597
597
|
},
|
|
598
598
|
metaTags: s.default,
|
|
599
599
|
linkTags: o.default,
|
|
600
|
-
scriptTags:
|
|
600
|
+
scriptTags: c.default
|
|
601
601
|
};
|
|
602
|
-
},
|
|
602
|
+
}, xt = (e) => {
|
|
603
603
|
const {
|
|
604
604
|
baseTag: t,
|
|
605
605
|
bodyAttributes: r,
|
|
606
606
|
encode: n = !0,
|
|
607
607
|
htmlAttributes: s,
|
|
608
608
|
noscriptTags: o,
|
|
609
|
-
styleTags:
|
|
610
|
-
title:
|
|
611
|
-
titleAttributes:
|
|
612
|
-
prioritizeSeoTags:
|
|
609
|
+
styleTags: c,
|
|
610
|
+
title: i = "",
|
|
611
|
+
titleAttributes: l,
|
|
612
|
+
prioritizeSeoTags: a
|
|
613
613
|
} = e;
|
|
614
614
|
let { linkTags: u, metaTags: d, scriptTags: h } = e, p = {
|
|
615
615
|
toComponent: () => {
|
|
616
616
|
},
|
|
617
617
|
toString: () => ""
|
|
618
618
|
};
|
|
619
|
-
return
|
|
619
|
+
return a && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = vt(e)), {
|
|
620
620
|
priority: p,
|
|
621
|
-
base:
|
|
622
|
-
bodyAttributes:
|
|
623
|
-
htmlAttributes:
|
|
624
|
-
link:
|
|
625
|
-
meta:
|
|
626
|
-
noscript:
|
|
627
|
-
script:
|
|
628
|
-
style:
|
|
629
|
-
title:
|
|
621
|
+
base: v("base", t, n),
|
|
622
|
+
bodyAttributes: v("bodyAttributes", r, n),
|
|
623
|
+
htmlAttributes: v("htmlAttributes", s, n),
|
|
624
|
+
link: v("link", u, n),
|
|
625
|
+
meta: v("meta", d, n),
|
|
626
|
+
noscript: v("noscript", o, n),
|
|
627
|
+
script: v("script", h, n),
|
|
628
|
+
style: v("style", c, n),
|
|
629
|
+
title: v("title", { title: i, titleAttributes: l }, n)
|
|
630
630
|
};
|
|
631
|
-
}, Z =
|
|
631
|
+
}, Z = xt, U = [], be = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
|
|
632
632
|
constructor(e, t) {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
633
|
+
S(this, "instances", []);
|
|
634
|
+
S(this, "canUseDOM", be);
|
|
635
|
+
S(this, "context");
|
|
636
|
+
S(this, "value", {
|
|
637
637
|
setHelmet: (e) => {
|
|
638
638
|
this.context.helmet = e;
|
|
639
639
|
},
|
|
@@ -662,38 +662,38 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
662
662
|
titleAttributes: {}
|
|
663
663
|
}));
|
|
664
664
|
}
|
|
665
|
-
},
|
|
665
|
+
}, bt = {}, Ce = O.createContext(bt), P, Se = (P = class extends te {
|
|
666
666
|
constructor(r) {
|
|
667
667
|
super(r);
|
|
668
|
-
|
|
668
|
+
S(this, "helmetData");
|
|
669
669
|
this.helmetData = new X(this.props.context || {}, P.canUseDOM);
|
|
670
670
|
}
|
|
671
671
|
render() {
|
|
672
672
|
return /* @__PURE__ */ O.createElement(Ce.Provider, { value: this.helmetData.value }, this.props.children);
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, S(P, "canUseDOM", be), P), k = (e, t) => {
|
|
675
675
|
const r = document.head || document.querySelector(
|
|
676
676
|
"head"
|
|
677
677
|
/* HEAD */
|
|
678
678
|
), n = r.querySelectorAll(`${e}[${C}]`), s = [].slice.call(n), o = [];
|
|
679
|
-
let
|
|
680
|
-
return t && t.length && t.forEach((
|
|
681
|
-
const
|
|
682
|
-
for (const
|
|
683
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
684
|
-
if (
|
|
685
|
-
|
|
686
|
-
else if (
|
|
687
|
-
|
|
679
|
+
let c;
|
|
680
|
+
return t && t.length && t.forEach((i) => {
|
|
681
|
+
const l = document.createElement(e);
|
|
682
|
+
for (const a in i)
|
|
683
|
+
if (Object.prototype.hasOwnProperty.call(i, a))
|
|
684
|
+
if (a === "innerHTML")
|
|
685
|
+
l.innerHTML = i.innerHTML;
|
|
686
|
+
else if (a === "cssText")
|
|
687
|
+
l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
|
|
688
688
|
else {
|
|
689
|
-
const u =
|
|
690
|
-
|
|
689
|
+
const u = a, d = typeof i[u] > "u" ? "" : i[u];
|
|
690
|
+
l.setAttribute(a, d);
|
|
691
691
|
}
|
|
692
|
-
|
|
693
|
-
}), s.forEach((
|
|
694
|
-
var
|
|
695
|
-
return (
|
|
696
|
-
}), o.forEach((
|
|
692
|
+
l.setAttribute(C, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
|
|
693
|
+
}), s.forEach((i) => {
|
|
694
|
+
var l;
|
|
695
|
+
return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
|
|
696
|
+
}), o.forEach((i) => r.appendChild(i)), {
|
|
697
697
|
oldTags: s,
|
|
698
698
|
newTags: o
|
|
699
699
|
};
|
|
@@ -701,58 +701,58 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
701
701
|
const r = document.getElementsByTagName(e)[0];
|
|
702
702
|
if (!r)
|
|
703
703
|
return;
|
|
704
|
-
const n = r.getAttribute(C), s = n ? n.split(",") : [], o = [...s],
|
|
705
|
-
for (const
|
|
706
|
-
const
|
|
707
|
-
r.getAttribute(
|
|
708
|
-
const
|
|
709
|
-
|
|
704
|
+
const n = r.getAttribute(C), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
|
|
705
|
+
for (const i of c) {
|
|
706
|
+
const l = t[i] || "";
|
|
707
|
+
r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
|
|
708
|
+
const a = o.indexOf(i);
|
|
709
|
+
a !== -1 && o.splice(a, 1);
|
|
710
710
|
}
|
|
711
|
-
for (let
|
|
712
|
-
r.removeAttribute(o[
|
|
713
|
-
s.length === o.length ? r.removeAttribute(C) : r.getAttribute(C) !==
|
|
714
|
-
},
|
|
715
|
-
typeof e < "u" && document.title !== e && (document.title =
|
|
711
|
+
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
712
|
+
r.removeAttribute(o[i]);
|
|
713
|
+
s.length === o.length ? r.removeAttribute(C) : r.getAttribute(C) !== c.join(",") && r.setAttribute(C, c.join(","));
|
|
714
|
+
}, Ct = (e, t) => {
|
|
715
|
+
typeof e < "u" && document.title !== e && (document.title = Te(e)), ee("title", t);
|
|
716
716
|
}, le = (e, t) => {
|
|
717
717
|
const {
|
|
718
718
|
baseTag: r,
|
|
719
719
|
bodyAttributes: n,
|
|
720
720
|
htmlAttributes: s,
|
|
721
721
|
linkTags: o,
|
|
722
|
-
metaTags:
|
|
723
|
-
noscriptTags:
|
|
724
|
-
onChangeClientState:
|
|
725
|
-
scriptTags:
|
|
722
|
+
metaTags: c,
|
|
723
|
+
noscriptTags: i,
|
|
724
|
+
onChangeClientState: l,
|
|
725
|
+
scriptTags: a,
|
|
726
726
|
styleTags: u,
|
|
727
727
|
title: d,
|
|
728
728
|
titleAttributes: h
|
|
729
729
|
} = e;
|
|
730
|
-
ee("body", n), ee("html", s),
|
|
730
|
+
ee("body", n), ee("html", s), Ct(d, h);
|
|
731
731
|
const p = {
|
|
732
732
|
baseTag: k("base", r),
|
|
733
733
|
linkTags: k("link", o),
|
|
734
|
-
metaTags: k("meta",
|
|
735
|
-
noscriptTags: k("noscript",
|
|
736
|
-
scriptTags: k("script",
|
|
734
|
+
metaTags: k("meta", c),
|
|
735
|
+
noscriptTags: k("noscript", i),
|
|
736
|
+
scriptTags: k("script", a),
|
|
737
737
|
styleTags: k("style", u)
|
|
738
|
-
},
|
|
738
|
+
}, T = {}, M = {};
|
|
739
739
|
Object.keys(p).forEach((w) => {
|
|
740
740
|
const { newTags: E, oldTags: I } = p[w];
|
|
741
|
-
E.length && (
|
|
742
|
-
}), t && t(),
|
|
743
|
-
}, R = null,
|
|
741
|
+
E.length && (T[w] = E), I.length && (M[w] = p[w].oldTags);
|
|
742
|
+
}), t && t(), l(e, T, M);
|
|
743
|
+
}, R = null, St = (e) => {
|
|
744
744
|
R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
|
|
745
745
|
le(e, () => {
|
|
746
746
|
R = null;
|
|
747
747
|
});
|
|
748
748
|
}) : (le(e), R = null);
|
|
749
|
-
},
|
|
749
|
+
}, At = St, ce = class extends te {
|
|
750
750
|
constructor() {
|
|
751
751
|
super(...arguments);
|
|
752
|
-
|
|
752
|
+
S(this, "rendered", !1);
|
|
753
753
|
}
|
|
754
754
|
shouldComponentUpdate(t) {
|
|
755
|
-
return !
|
|
755
|
+
return !at(t, this.props);
|
|
756
756
|
}
|
|
757
757
|
componentDidUpdate() {
|
|
758
758
|
this.emitChange();
|
|
@@ -764,13 +764,13 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
764
764
|
emitChange() {
|
|
765
765
|
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
766
766
|
let n = null;
|
|
767
|
-
const s =
|
|
767
|
+
const s = mt(
|
|
768
768
|
t.get().map((o) => {
|
|
769
|
-
const
|
|
770
|
-
return delete
|
|
769
|
+
const c = { ...o.props };
|
|
770
|
+
return delete c.context, c;
|
|
771
771
|
})
|
|
772
772
|
);
|
|
773
|
-
|
|
773
|
+
Se.canUseDOM ? At(s) : Z && (n = Z(s)), r(n);
|
|
774
774
|
}
|
|
775
775
|
// componentWillMount will be deprecated
|
|
776
776
|
// for SSR, initialize on first render
|
|
@@ -785,9 +785,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
785
785
|
render() {
|
|
786
786
|
return this.init(), null;
|
|
787
787
|
}
|
|
788
|
-
}, J,
|
|
788
|
+
}, J, Et = (J = class extends te {
|
|
789
789
|
shouldComponentUpdate(e) {
|
|
790
|
-
return !
|
|
790
|
+
return !st(ie(this.props, "helmetData"), ie(e, "helmetData"));
|
|
791
791
|
}
|
|
792
792
|
mapNestedChildrenToProps(e, t) {
|
|
793
793
|
if (!t)
|
|
@@ -870,9 +870,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
870
870
|
return O.Children.forEach(e, (n) => {
|
|
871
871
|
if (!n || !n.props)
|
|
872
872
|
return;
|
|
873
|
-
const { children: s, ...o } = n.props,
|
|
874
|
-
let { type:
|
|
875
|
-
switch (typeof
|
|
873
|
+
const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[it[a] || a] = o[a], l), {});
|
|
874
|
+
let { type: i } = n;
|
|
875
|
+
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
|
|
876
876
|
case "Symbol(react.fragment)":
|
|
877
877
|
t = this.mapChildrenToProps(s, t);
|
|
878
878
|
break;
|
|
@@ -884,12 +884,12 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
884
884
|
r = this.flattenArrayTypeChildren(
|
|
885
885
|
n,
|
|
886
886
|
r,
|
|
887
|
-
|
|
887
|
+
c,
|
|
888
888
|
s
|
|
889
889
|
);
|
|
890
890
|
break;
|
|
891
891
|
default:
|
|
892
|
-
t = this.mapObjectTypeChildren(n, t,
|
|
892
|
+
t = this.mapObjectTypeChildren(n, t, c, s);
|
|
893
893
|
break;
|
|
894
894
|
}
|
|
895
895
|
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
@@ -903,25 +903,25 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
903
903
|
}
|
|
904
904
|
return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(Ce.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
|
|
905
905
|
}
|
|
906
|
-
},
|
|
906
|
+
}, S(J, "defaultProps", {
|
|
907
907
|
defer: !0,
|
|
908
908
|
encodeSpecialCharacters: !0,
|
|
909
909
|
prioritizeSeoTags: !1
|
|
910
910
|
}), J);
|
|
911
|
-
const ue = (e, t) => e ? `${e} | ${t}` : t,
|
|
912
|
-
const [n, s] =
|
|
911
|
+
const ue = (e, t) => e ? `${e} | ${t}` : t, zt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
|
|
912
|
+
const [n, s] = x([
|
|
913
913
|
ue(r ?? "", e)
|
|
914
|
-
]), o = m((
|
|
915
|
-
s((u) => [...u, ue(r ?? "",
|
|
916
|
-
}, [r]),
|
|
917
|
-
s((
|
|
918
|
-
}, [s]),
|
|
919
|
-
return /* @__PURE__ */ f.jsx(
|
|
920
|
-
/* @__PURE__ */ f.jsx(
|
|
914
|
+
]), o = m((a) => {
|
|
915
|
+
s((u) => [...u, ue(r ?? "", a)]);
|
|
916
|
+
}, [r]), c = m(() => {
|
|
917
|
+
s((a) => a.length > 1 ? a.slice(0, -1) : a);
|
|
918
|
+
}, [s]), i = g(() => n.at(-1) ?? "", [n]), l = g(() => ({ addHelmet: o, removeHelmet: c }), [o, c]);
|
|
919
|
+
return /* @__PURE__ */ f.jsx(Re.Provider, { value: l, children: /* @__PURE__ */ f.jsxs(Se, { children: [
|
|
920
|
+
/* @__PURE__ */ f.jsx(Et, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: i }) }),
|
|
921
921
|
t
|
|
922
922
|
] }) });
|
|
923
|
-
},
|
|
924
|
-
const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: r, text: n, show: s,
|
|
923
|
+
}, fe = 50, Ot = () => {
|
|
924
|
+
const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: r, text: n, show: s, textSm: o } = Ue(), c = g(() => o === void 0 ? n.length > fe : o, [n, o]), i = g(() => n.length > fe, [n]), l = m((a) => {
|
|
925
925
|
if (s)
|
|
926
926
|
switch (a.key) {
|
|
927
927
|
case "Enter":
|
|
@@ -932,28 +932,28 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children:
|
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
}, [t, r, s]);
|
|
935
|
-
return
|
|
936
|
-
/* @__PURE__ */ f.jsx(
|
|
937
|
-
/* @__PURE__ */ f.jsx(
|
|
935
|
+
return Fe(l), /* @__PURE__ */ f.jsxs(A, { show: s, size: i ? void 0 : "sm", centered: !0, onHide: r, children: [
|
|
936
|
+
/* @__PURE__ */ f.jsx(A.Header, { className: "justify-content-center", children: c ? /* @__PURE__ */ f.jsx(Ne, { variant: "body", children: n }) : /* @__PURE__ */ f.jsx(A.Title, { children: n }) }),
|
|
937
|
+
/* @__PURE__ */ f.jsx(A.Body, { children: /* @__PURE__ */ f.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
938
938
|
/* @__PURE__ */ f.jsx(q, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: r, children: e.no }),
|
|
939
939
|
/* @__PURE__ */ f.jsx(q, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
|
|
940
940
|
] }) })
|
|
941
941
|
] });
|
|
942
942
|
};
|
|
943
943
|
export {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
944
|
+
me as AuthContext,
|
|
945
|
+
Gt as AuthProvider,
|
|
946
|
+
pe as DelegationContext,
|
|
947
|
+
qt as DelegationProvider,
|
|
948
|
+
Bt as FormDisabledContext,
|
|
949
|
+
Wt as FormDisabledProvider,
|
|
950
|
+
Re as HelmetContext,
|
|
951
|
+
zt as HelmetProvider,
|
|
952
|
+
ke as LoadingContext,
|
|
953
|
+
Ft as LoadingProvider,
|
|
954
954
|
z as LuminusComponentsContext,
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
955
|
+
Ut as LuminusComponentsProvider,
|
|
956
|
+
_e as UserContext,
|
|
957
|
+
Nt as UserProvider,
|
|
958
|
+
Yt as useFormDisabledContext
|
|
959
959
|
};
|