react-luminus-components 1.4.57 → 1.5.0

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