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.
@@ -1,103 +1,103 @@
1
- var Se = Object.defineProperty;
2
- var Ee = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var A = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as F, bE as Oe, j as f, bF as we, P as z, ah as Ie, bG as fe, an as S, ae as Pe, Q as q, bH as De, al as je, aj as ke, b1 as de, br as me, b2 as Le, b3 as j, ak as He, bI as _e, az as se, bJ as $e, aR as pe, bK as oe, bL as Me, ai as Re, aV as Ue } from "./main.es-J04ddZWL.js";
5
- import { bM as Kt, ac as Vt } from "./main.es-J04ddZWL.js";
6
- import O, { useState as v, useCallback as m, useMemo as b, useContext as _, useEffect as D, useRef as he, Component as te } from "react";
7
- import { EventType as Q } from "@azure/msal-browser";
8
- import { MsalProvider as Fe } from "@azure/msal-react";
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 Ne } from "./FormDisabledProvider-CV7PmyzE.js";
14
- import { F as Yt } from "./FormDisabledProvider-CV7PmyzE.js";
15
- import { u as Ge } from "./useGetApiData-CMAZ436V.js";
16
- import { u as qe } from "./useLocalStorageState-Bt99kkCr.js";
17
- function ze(e) {
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 Ke() {
22
- return ze(Date.now());
21
+ function Be() {
22
+ return Ve(Date.now());
23
23
  }
24
- function Ve(e, t) {
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, l) => o - l);
28
+ ].sort((o, c) => o - c);
29
29
  return r >= n && r <= s;
30
30
  }
31
- function Be() {
32
- return Oe(Date.now());
31
+ function Je() {
32
+ return we(Date.now());
33
33
  }
34
- const Ye = ({ children: e }) => {
35
- const [t, r] = v(!1), [n, s] = v(""), [o, l] = v(null), a = m((u, d) => {
36
- r(!0), s(u), l(d ?? null);
37
- }, []), c = m(() => {
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
- }, []), i = b(() => ({ show: t, text: n, showConfirm: a, hideConfirm: c, TextContainer: o }), [t, n, a, c, o]);
40
- return /* @__PURE__ */ f.jsxs(we.Provider, { value: i, children: [
41
- /* @__PURE__ */ f.jsx(St, {}),
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
- }, Je = () => {
45
- const { texts: { confirm: e } } = _(z), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = v(s.defaultValue ?? ""), a = m(() => {
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]), c = m((u) => {
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 && l(s.defaultValue ?? "");
51
+ t === !0 && c(s.defaultValue ?? "");
52
52
  }, [t, s.defaultValue]);
53
- const i = b(() => ({
53
+ const a = g(() => ({
54
54
  value: o,
55
- onChange: (u) => l(u.currentTarget.value),
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(S, { show: t, size: "sm", centered: !0, onHide: a, children: [
61
- /* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(S.Title, { children: r }) }),
62
- /* @__PURE__ */ f.jsxs("form", { onSubmit: c, children: [
63
- /* @__PURE__ */ f.jsxs(S.Body, { children: [
64
- s.input === "textarea" ? /* @__PURE__ */ f.jsx("textarea", { ...i, rows: 5 }) : void 0,
65
- s.input === "input" ? /* @__PURE__ */ f.jsx(Pe, { ...i, type: s.type }) : void 0
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(S.Footer, { className: "w-100 d-flex gap-5", children: [
68
- /* @__PURE__ */ f.jsx(q, { variant: "outlined", color: "secondary", onClick: a, className: "flex-grow-1", children: e.cancel }),
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
- }, Qe = ({ children: e }) => {
74
- const [t, r] = v(!1), [n, s] = v(""), [o, l] = v({ input: "textarea", type: "text" }), a = he(() => {
75
- }), c = m((d) => {
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
- }, []), i = m(() => {
77
+ }, []), a = m(() => {
78
78
  r(!1);
79
- }, []), u = b(() => ({
79
+ }, []), u = g(() => ({
80
80
  isShown: t,
81
81
  text: n,
82
- showPrompt: c,
83
- hidePrompt: i,
84
- resolveRef: a,
82
+ showPrompt: l,
83
+ hidePrompt: a,
84
+ resolveRef: i,
85
85
  options: o,
86
- setOptions: l
87
- }), [t, n, c, i, o]);
88
- return /* @__PURE__ */ f.jsxs(fe.Provider, { value: u, children: [
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(Je, {})
90
+ /* @__PURE__ */ f.jsx(Qe, {})
91
91
  ] });
92
- }, Mt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
93
- const c = b(() => ({
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: l
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
- l
108
+ c
109
109
  ]);
110
- return /* @__PURE__ */ f.jsx(z.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Ye, { children: /* @__PURE__ */ f.jsxs(Qe, { children: [
111
- /* @__PURE__ */ f.jsx(De, {}),
112
- a
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
- }, Rt = ({ children: e }) => {
115
- const [t, r] = v(!1), [n] = v(/* @__PURE__ */ new Set()), s = m((a) => {
116
- n.add(a), r(!0);
117
- }, [n]), o = m((a) => {
118
- n.delete(a), n.size === 0 && r(!1);
119
- }, [n]), l = b(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
120
- return /* @__PURE__ */ f.jsxs(je.Provider, { value: l, children: [
121
- t && /* @__PURE__ */ f.jsx(Ne, {}),
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
- }, Ut = ({ children: e }) => {
125
- const t = ke(), { msalInstance: r } = _(de), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: l } = _(me), { getToken: a } = Le(), [c, i] = v(null), u = m(async () => {
126
- const y = await a();
127
- y && i(y.token);
128
- }, [a]);
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, g] = v({
135
+ }, [])(), [p, T] = x({
136
136
  state: h ? j.LOGGED_IN : j.LOGGING_IN,
137
137
  user: h
138
- }), $ = m(async (y) => {
139
- let x = null;
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
- x = K.data;
141
+ b = K.data;
142
142
  }).catch(() => {
143
- x = null;
144
- }), x;
143
+ b = null;
144
+ }), b;
145
145
  }, [t]), w = m(() => {
146
- localStorage.removeItem("user"), g({
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
- g({
151
+ T({
152
152
  state: j.LOGGING_IN,
153
153
  user: null
154
154
  });
155
- const x = await $(y);
156
- return x ? (g({
155
+ const b = await M(y);
156
+ return b ? (T({
157
157
  state: j.LOGGED_IN,
158
- user: x
159
- }), localStorage.setItem("user", JSON.stringify(x)), await l(), !0) : (g({
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
- }, [$, l]), I = m(() => {
163
+ }, [M, c]), I = m(() => {
164
164
  w();
165
165
  }, [w]);
166
166
  D(() => {
167
167
  if (r) {
168
- const y = r.addEventCallback((x) => {
169
- if (x.eventType === Q.LOGIN_SUCCESS && x.payload) {
170
- const K = x.payload;
171
- i(K.accessToken);
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(c);
188
- }, [c, n == null ? void 0 : n.id, ne]);
189
- const Ae = b(() => ({
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(He.Provider, { value: Ae, children: e });
196
- }, Ft = ({ ...e }) => {
197
- const { cookieDomain: t } = _(z), [, r] = _e(["Authorization"]), n = b(() => ({
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 === Q.LOGIN_SUCCESS || o.eventType === Q.ACQUIRE_TOKEN_SUCCESS && o.payload) {
207
- const l = o.payload, a = l.account;
208
- e.msalInstance.setActiveAccount(a);
209
- const c = l.accessToken, i = l.expiresOn;
210
- r("Authorization", c, {
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: i ?? void 0
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(de.Provider, { value: n, children: e.useMsal ? /* @__PURE__ */ f.jsx(Fe, { instance: e.msalInstance, children: e.children }) : e.children });
227
- }, Nt = ({ children: e, relativeEndpoint: t }) => {
228
- const [r, n, s] = qe("user-delegation", null), o = b(() => {
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) : Be(), h = r.to ? se(r.to) : Ke();
232
- return Ve(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
233
- }, [r, n]), { data: l, setData: a, reloadData: c } = Ge(t, {
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
- }), i = he(null);
236
+ }), a = ye(null);
237
237
  D(() => {
238
238
  const d = () => {
239
- c(), i.current = window.setTimeout(d, $e() + 5e3);
239
+ l(), a.current = window.setTimeout(d, $e() + 5e3);
240
240
  };
241
241
  return d(), () => {
242
- i.current !== null && window.clearTimeout(i.current);
242
+ a.current !== null && window.clearTimeout(a.current);
243
243
  };
244
- }, [c]), D(() => {
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, c]);
252
- const u = b(() => ({
251
+ }, [s, l]);
252
+ const u = g(() => ({
253
253
  delegation: o,
254
254
  setDelegation: n,
255
- availableDelegations: l,
256
- setAvailableDelegations: a,
257
- refreshAvailableDelegations: c
255
+ availableDelegations: c,
256
+ setAvailableDelegations: i,
257
+ refreshAvailableDelegations: l
258
258
  }), [
259
259
  o,
260
260
  n,
261
- l,
262
- a,
263
- c
261
+ c,
262
+ i,
263
+ l
264
264
  ]);
265
- return /* @__PURE__ */ f.jsx(me.Provider, { value: u, children: e });
265
+ return /* @__PURE__ */ f.jsx(pe.Provider, { value: u, children: e });
266
266
  };
267
- var We = typeof Element < "u", Ze = typeof Map == "function", Xe = typeof Set == "function", et = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
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 (Ze && e instanceof Map && t instanceof Map) {
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 (Xe && e instanceof Set && t instanceof Set) {
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 (et && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
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 (We && e instanceof Element) return !1;
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 tt = function(t, r) {
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 rt = /* @__PURE__ */ pe(tt);
324
- var nt = function(t, r, n, s) {
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 l = Object.keys(t), a = Object.keys(r);
333
- if (l.length !== a.length)
332
+ var c = Object.keys(t), i = Object.keys(r);
333
+ if (c.length !== i.length)
334
334
  return !1;
335
- for (var c = Object.prototype.hasOwnProperty.bind(r), i = 0; i < l.length; i++) {
336
- var u = l[i];
337
- if (!c(u))
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 st = /* @__PURE__ */ pe(nt);
346
- var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ye || {}), V = {
345
+ 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(ye), re = {
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
- }, ot = Object.entries(re).reduce(
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
- }, at = (e) => {
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
- }, it = (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 }), {}), lt = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((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 a = s[o].toLowerCase();
411
- if (e.indexOf(a) !== -1 && n[a])
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
- }, []), ct = (e) => console && typeof console.warn == "function" && console.warn(e), M = (e, t, r) => {
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" && ct(
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 l = {};
422
- o.filter((c) => {
423
- let i;
424
- const u = Object.keys(c);
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], g = p.toLowerCase();
427
- t.indexOf(g) !== -1 && !(i === "rel" && c[i].toLowerCase() === "canonical") && !(g === "rel" && c[g].toLowerCase() === "stylesheet") && (i = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (i = p);
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 (!i || !c[i])
429
+ if (!a || !l[a])
430
430
  return !1;
431
- const d = c[i].toLowerCase();
432
- return n[i] || (n[i] = {}), l[i] || (l[i] = {}), n[i][d] ? !1 : (l[i][d] = !0, !0);
433
- }).reverse().forEach((c) => s.push(c));
434
- const a = Object.keys(l);
435
- for (let c = 0; c < a.length; c += 1) {
436
- const i = a[c], u = {
437
- ...n[i],
438
- ...l[i]
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[i] = u;
440
+ n[a] = u;
441
441
  }
442
442
  return s;
443
443
  }, []).reverse();
444
- }, ut = (e, t) => {
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
- }, ft = (e) => ({
452
- baseTag: lt([
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: M(
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: M(
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: M("noscript", [
481
+ noscriptTags: $("noscript", [
482
482
  "innerHTML"
483
483
  /* INNER_HTML */
484
484
  ], e),
485
- onChangeClientState: it(e),
486
- scriptTags: M(
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: M("style", [
495
+ styleTags: $("style", [
496
496
  "cssText"
497
497
  /* CSS_TEXT */
498
498
  ], e),
499
- title: at(e),
499
+ title: lt(e),
500
500
  titleAttributes: B("titleAttributes", e),
501
- prioritizeSeoTags: ut(e, L.PRIORITIZE_SEO_TAGS)
502
- }), ge = (e) => Array.isArray(e) ? e.join("") : e, dt = (e, t) => {
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) => (dt(n, t) ? r.priority.push(n) : r.default.push(n), r),
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
- }), mt = [
514
+ }), ht = [
515
515
  "noscript",
516
516
  "script",
517
517
  "style"
518
518
  /* STYLE */
519
- ], W = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Te = (e) => Object.keys(e).reduce((t, r) => {
519
+ ], Q = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), 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
- }, ""), pt = (e, t, r, n) => {
523
- const s = Te(r), o = ge(t);
524
- return s ? `<${e} ${C}="true" ${s}>${W(
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">${W(
527
+ )}</${e}>` : `<${e} ${C}="true">${Q(
528
528
  o,
529
529
  n
530
530
  )}</${e}>`;
531
- }, ht = (e, t, r = !0) => t.reduce((n, s) => {
532
- const o = s, l = Object.keys(o).filter(
533
- (i) => !(i === "innerHTML" || i === "cssText")
534
- ).reduce((i, u) => {
535
- const d = typeof o[u] > "u" ? u : `${u}="${W(o[u], r)}"`;
536
- return i ? `${i} ${d}` : d;
537
- }, ""), a = o.innerHTML || o.cssText || "", c = mt.indexOf(e) === -1;
538
- return `${n}<${e} ${C}="true" ${l}${c ? "/>" : `>${a}</${e}>`}`;
539
- }, ""), ve = (e, t = {}) => Object.keys(e).reduce((r, n) => {
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), yt = (e, t, r) => {
542
+ }, t), Tt = (e, t, r) => {
543
543
  const n = {
544
544
  key: t,
545
545
  [C]: !0
546
- }, s = ve(r, n);
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 a = re[o] || o;
555
- if (a === "innerHTML" || a === "cssText") {
556
- const c = r.innerHTML || r.cssText;
557
- s.dangerouslySetInnerHTML = { __html: c };
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[a] = r[o];
559
+ s[i] = r[o];
560
560
  }), O.createElement(e, s);
561
- }), T = (e, t, r = !0) => {
561
+ }), v = (e, t, r = !0) => {
562
562
  switch (e) {
563
563
  case "title":
564
564
  return {
565
- toComponent: () => yt(e, t.title, t.titleAttributes),
566
- toString: () => pt(e, t.title, t.titleAttributes, r)
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: () => ve(t),
572
- toString: () => Te(t)
571
+ toComponent: () => xe(t),
572
+ toString: () => ve(t)
573
573
  };
574
574
  default:
575
575
  return {
576
576
  toComponent: () => G(e, t),
577
- toString: () => ht(e, t, r)
577
+ toString: () => gt(e, t, r)
578
578
  };
579
579
  }
580
- }, gt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
581
- const s = Y(e, V.meta), o = Y(t, V.link), l = Y(r, V.script);
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", l.priority)
587
+ ...G("script", c.priority)
588
588
  ],
589
589
  toString: () => (
590
590
  // generate all the tags as strings and concatenate them
591
- `${T("meta", s.priority, n)} ${T(
591
+ `${v("meta", s.priority, n)} ${v(
592
592
  "link",
593
593
  o.priority,
594
594
  n
595
- )} ${T("script", l.priority, n)}`
595
+ )} ${v("script", c.priority, n)}`
596
596
  )
597
597
  },
598
598
  metaTags: s.default,
599
599
  linkTags: o.default,
600
- scriptTags: l.default
600
+ scriptTags: c.default
601
601
  };
602
- }, Tt = (e) => {
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: l,
610
- title: a = "",
611
- titleAttributes: c,
612
- prioritizeSeoTags: i
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 i && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = gt(e)), {
619
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = vt(e)), {
620
620
  priority: p,
621
- base: T("base", t, n),
622
- bodyAttributes: T("bodyAttributes", r, n),
623
- htmlAttributes: T("htmlAttributes", s, n),
624
- link: T("link", u, n),
625
- meta: T("meta", d, n),
626
- noscript: T("noscript", o, n),
627
- script: T("script", h, n),
628
- style: T("style", l, n),
629
- title: T("title", { title: a, titleAttributes: c }, n)
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 = Tt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
631
+ }, Z = xt, U = [], be = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
632
632
  constructor(e, t) {
633
- A(this, "instances", []);
634
- A(this, "canUseDOM", xe);
635
- A(this, "context");
636
- A(this, "value", {
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
- }, vt = {}, Ce = O.createContext(vt), P, be = (P = class extends te {
665
+ }, bt = {}, Ce = O.createContext(bt), P, Se = (P = class extends te {
666
666
  constructor(r) {
667
667
  super(r);
668
- A(this, "helmetData");
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
- }, A(P, "canUseDOM", xe), P), k = (e, t) => {
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 l;
680
- return t && t.length && t.forEach((a) => {
681
- const c = document.createElement(e);
682
- for (const i in a)
683
- if (Object.prototype.hasOwnProperty.call(a, i))
684
- if (i === "innerHTML")
685
- c.innerHTML = a.innerHTML;
686
- else if (i === "cssText")
687
- c.styleSheet ? c.styleSheet.cssText = a.cssText : c.appendChild(document.createTextNode(a.cssText));
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 = i, d = typeof a[u] > "u" ? "" : a[u];
690
- c.setAttribute(i, d);
689
+ const u = a, d = typeof i[u] > "u" ? "" : i[u];
690
+ l.setAttribute(a, d);
691
691
  }
692
- c.setAttribute(C, "true"), s.some((i, u) => (l = u, c.isEqualNode(i))) ? s.splice(l, 1) : o.push(c);
693
- }), s.forEach((a) => {
694
- var c;
695
- return (c = a.parentNode) == null ? void 0 : c.removeChild(a);
696
- }), o.forEach((a) => r.appendChild(a)), {
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], l = Object.keys(t);
705
- for (const a of l) {
706
- const c = t[a] || "";
707
- r.getAttribute(a) !== c && r.setAttribute(a, c), s.indexOf(a) === -1 && s.push(a);
708
- const i = o.indexOf(a);
709
- i !== -1 && o.splice(i, 1);
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 a = o.length - 1; a >= 0; a -= 1)
712
- r.removeAttribute(o[a]);
713
- s.length === o.length ? r.removeAttribute(C) : r.getAttribute(C) !== l.join(",") && r.setAttribute(C, l.join(","));
714
- }, xt = (e, t) => {
715
- typeof e < "u" && document.title !== e && (document.title = ge(e)), ee("title", t);
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: l,
723
- noscriptTags: a,
724
- onChangeClientState: c,
725
- scriptTags: i,
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), xt(d, h);
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", l),
735
- noscriptTags: k("noscript", a),
736
- scriptTags: k("script", i),
734
+ metaTags: k("meta", c),
735
+ noscriptTags: k("noscript", i),
736
+ scriptTags: k("script", a),
737
737
  styleTags: k("style", u)
738
- }, g = {}, $ = {};
738
+ }, T = {}, M = {};
739
739
  Object.keys(p).forEach((w) => {
740
740
  const { newTags: E, oldTags: I } = p[w];
741
- E.length && (g[w] = E), I.length && ($[w] = p[w].oldTags);
742
- }), t && t(), c(e, g, $);
743
- }, R = null, Ct = (e) => {
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
- }, bt = Ct, ce = class extends te {
749
+ }, At = St, ce = class extends te {
750
750
  constructor() {
751
751
  super(...arguments);
752
- A(this, "rendered", !1);
752
+ S(this, "rendered", !1);
753
753
  }
754
754
  shouldComponentUpdate(t) {
755
- return !st(t, this.props);
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 = ft(
767
+ const s = mt(
768
768
  t.get().map((o) => {
769
- const l = { ...o.props };
770
- return delete l.context, l;
769
+ const c = { ...o.props };
770
+ return delete c.context, c;
771
771
  })
772
772
  );
773
- be.canUseDOM ? bt(s) : Z && (n = Z(s)), r(n);
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, At = (J = class extends te {
788
+ }, J, Et = (J = class extends te {
789
789
  shouldComponentUpdate(e) {
790
- return !rt(ie(this.props, "helmetData"), ie(e, "helmetData"));
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, l = Object.keys(o).reduce((c, i) => (c[ot[i] || i] = o[i], c), {});
874
- let { type: a } = n;
875
- switch (typeof a == "symbol" ? a = a.toString() : this.warnOnInvalidChildren(n, s), a) {
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
- l,
887
+ c,
888
888
  s
889
889
  );
890
890
  break;
891
891
  default:
892
- t = this.mapObjectTypeChildren(n, t, l, s);
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
- }, A(J, "defaultProps", {
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, Gt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
912
- const [n, s] = v([
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((i) => {
915
- s((u) => [...u, ue(r ?? "", i)]);
916
- }, [r]), l = m(() => {
917
- s((i) => i.length > 1 ? i.slice(0, -1) : i);
918
- }, [s]), a = b(() => n.at(-1) ?? "", [n]), c = b(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
919
- return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(be, { children: [
920
- /* @__PURE__ */ f.jsx(At, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
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
- }, St = () => {
924
- const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: r, text: n, show: s, TextContainer: o } = Re(), l = m((a) => {
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 Ue(l), /* @__PURE__ */ f.jsxs(S, { show: s, size: "sm", centered: !0, onHide: r, children: [
936
- /* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: o ? /* @__PURE__ */ f.jsx(o, { children: n }) : /* @__PURE__ */ f.jsx(S.Title, { children: n }) }),
937
- /* @__PURE__ */ f.jsx(S.Body, { children: /* @__PURE__ */ f.jsxs("div", { className: "w-100 d-flex gap-5", children: [
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
- de as AuthContext,
945
- Ft as AuthProvider,
946
- me as DelegationContext,
947
- Nt as DelegationProvider,
948
- Kt as FormDisabledContext,
949
- Yt as FormDisabledProvider,
950
- Me as HelmetContext,
951
- Gt as HelmetProvider,
952
- je as LoadingContext,
953
- Rt as LoadingProvider,
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
- Mt as LuminusComponentsProvider,
956
- He as UserContext,
957
- Ut as UserProvider,
958
- Vt as useFormDisabledContext
955
+ Ut as LuminusComponentsProvider,
956
+ _e as UserContext,
957
+ Nt as UserProvider,
958
+ Yt as useFormDisabledContext
959
959
  };