react-luminus-components 1.3.248 → 1.3.249

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.
Files changed (40) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +39 -38
  3. package/dist/FormDisabledProvider-LRgVJzfK.js +20 -0
  4. package/dist/FormDisabledProvider-x4rC1kQI.cjs +1 -0
  5. package/dist/{nivo-bar.es-CJ3lbXnG.cjs → ShortcutLinksContext-BD6R_0rT.cjs} +20 -20
  6. package/dist/{nivo-bar.es-bHUKcCZ-.js → ShortcutLinksContext-Bq3NREsX.js} +4540 -4537
  7. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +0 -3
  8. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +3 -0
  9. package/dist/components/common/PermissionsSubstitute/Detail/PermissionSubstituteDetail.d.ts +5 -0
  10. package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +45 -0
  11. package/dist/components/common/PermissionsSubstitute/SubstituteTable/SubstituteTable.d.ts +8 -0
  12. package/dist/components/common/index.d.ts +2 -0
  13. package/dist/contexts.cjs.js +1 -1
  14. package/dist/contexts.es.js +128 -127
  15. package/dist/hooks.cjs.js +1 -1
  16. package/dist/hooks.es.js +30 -30
  17. package/dist/layout.cjs.js +1 -1
  18. package/dist/layout.es.js +27 -27
  19. package/dist/main.cjs.js +54 -54
  20. package/dist/main.d.ts +1 -0
  21. package/dist/main.es.js +7947 -7811
  22. package/dist/models/api/substitutions/PermissionRoleModel.d.ts +8 -0
  23. package/dist/models/api/substitutions/PermissionSubstituteModel.d.ts +11 -0
  24. package/dist/models/api/substitutions/PermissionUserModel.d.ts +10 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
  27. package/dist/models/texts/SubstitutionsTexts.d.ts +23 -0
  28. package/dist/style.css +1 -1
  29. package/dist/{useGetApiData-D98eaVmN.js → useGetApiData-CrZHy35t.js} +3 -3
  30. package/dist/useGetApiData-srwLsb--.cjs +1 -0
  31. package/dist/usePermissions-BgT3dbpe.cjs +1 -0
  32. package/dist/{usePermissions-JgJ9f4tm.js → usePermissions-D-4CYdGh.js} +1 -1
  33. package/dist/utils.cjs.js +1 -1
  34. package/dist/utils.es.js +24 -24
  35. package/dist/variables.scss +165 -165
  36. package/package.json +121 -121
  37. package/dist/Loading-Cr9LRUvA.js +0 -19
  38. package/dist/Loading-D7DKSlwq.cjs +0 -1
  39. package/dist/useGetApiData-Drdk3gEB.cjs +0 -1
  40. package/dist/usePermissions-BnlHINds.cjs +0 -1
@@ -1,52 +1,53 @@
1
1
  var Se = Object.defineProperty;
2
2
  var Ee = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var A = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as N, bt as Oe, j as f, bu as we, P as q, ah as Ie, bv as fe, an as S, ae as Pe, Q as G, bw as je, al as De, aj as ke, b1 as de, bx as me, b2 as Le, b3 as D, ak as He, by as _e, az as se, bz as $e, aR as pe, bA as oe, bB as Me, bC as Re, ai as Ue, aV as Ne } from "./nivo-bar.es-bHUKcCZ-.js";
5
- import { ac as Bt } from "./nivo-bar.es-bHUKcCZ-.js";
6
- import O, { useState as b, useCallback as m, useMemo as C, useContext as _, useEffect as j, useRef as he, Component as te } from "react";
7
- import { EventType as Q } from "@azure/msal-browser";
4
+ import { t as F, bz as Oe, j as f, bA as we, P as z, bn as Ie, bB as fe, a3 as S, bf as Pe, Q as q, bC as De, a_ as je, aj as ke, aC as de, bh as me, aD as Le, aF as j, aE as He, bD as _e, aW as se, bE as $e, ao as pe, bF as oe, bG as Me, b0 as Re, as as Ue } from "./ShortcutLinksContext-Bq3NREsX.js";
5
+ import { bH as Kt, bd as Bt } from "./ShortcutLinksContext-Bq3NREsX.js";
6
+ import O, { useState as b, useCallback as m, useMemo as C, useContext as _, useEffect as D, useRef as he, Component as te } from "react";
7
+ import { EventType as J } from "@azure/msal-browser";
8
8
  import { MsalProvider as Fe } 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 ze } from "./Loading-Cr9LRUvA.js";
14
- import { u as Ge } from "./useGetApiData-D98eaVmN.js";
13
+ import { L as Ne } from "./FormDisabledProvider-LRgVJzfK.js";
14
+ import { F as Yt } from "./FormDisabledProvider-LRgVJzfK.js";
15
+ import { u as Ge } from "./useGetApiData-CrZHy35t.js";
15
16
  import { u as qe } from "./useLocalStorageState-Bt99kkCr.js";
16
- function Ke(e) {
17
- const t = N(e);
17
+ function ze(e) {
18
+ const t = F(e);
18
19
  return t.setHours(23, 59, 59, 999), t;
19
20
  }
20
- function Ve() {
21
- return Ke(Date.now());
21
+ function Ke() {
22
+ return ze(Date.now());
22
23
  }
23
24
  function Be(e, t) {
24
- const r = +N(e), [n, s] = [
25
- +N(t.start),
26
- +N(t.end)
25
+ const r = +F(e), [n, s] = [
26
+ +F(t.start),
27
+ +F(t.end)
27
28
  ].sort((o, l) => o - l);
28
29
  return r >= n && r <= s;
29
30
  }
30
- function Ye() {
31
+ function Ve() {
31
32
  return Oe(Date.now());
32
33
  }
33
- const Je = ({ children: e }) => {
34
+ const Ye = ({ children: e }) => {
34
35
  const [t, r] = b(!1), [n, s] = b(""), o = m((c) => {
35
36
  r(!0), s(c);
36
37
  }, []), l = m(() => {
37
38
  r(!1);
38
39
  }, []), a = C(() => ({ show: t, text: n, showConfirm: o, hideConfirm: l }), [t, n, o, l]);
39
40
  return /* @__PURE__ */ f.jsxs(we.Provider, { value: a, children: [
40
- /* @__PURE__ */ f.jsx(Et, {}),
41
+ /* @__PURE__ */ f.jsx(St, {}),
41
42
  e
42
43
  ] });
43
- }, Qe = () => {
44
- const { texts: { confirm: e } } = _(q), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = b(s.defaultValue ?? ""), a = m(() => {
44
+ }, We = () => {
45
+ const { texts: { confirm: e } } = _(z), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = b(s.defaultValue ?? ""), a = m(() => {
45
46
  n(null);
46
47
  }, [n]), c = m((u) => {
47
48
  u.preventDefault(), !(s.required && !o) && n(o);
48
49
  }, [n, s.required, o]);
49
- j(() => {
50
+ D(() => {
50
51
  t === !0 && l(s.defaultValue ?? "");
51
52
  }, [t, s.defaultValue]);
52
53
  const i = C(() => ({
@@ -64,12 +65,12 @@ const Je = ({ children: e }) => {
64
65
  s.input === "input" ? /* @__PURE__ */ f.jsx(Pe, { ...i, type: s.type }) : void 0
65
66
  ] }),
66
67
  /* @__PURE__ */ f.jsxs(S.Footer, { className: "w-100 d-flex gap-5", children: [
67
- /* @__PURE__ */ f.jsx(G, { variant: "outlined", color: "secondary", onClick: a, className: "flex-grow-1", children: e.cancel }),
68
- /* @__PURE__ */ f.jsx(G, { color: "primary", disabled: s.required && !o, type: "submit", className: "flex-grow-1", children: e.confirm })
68
+ /* @__PURE__ */ f.jsx(q, { variant: "outlined", color: "secondary", onClick: a, className: "flex-grow-1", children: e.cancel }),
69
+ /* @__PURE__ */ f.jsx(q, { color: "primary", disabled: s.required && !o, type: "submit", className: "flex-grow-1", children: e.confirm })
69
70
  ] })
70
71
  ] })
71
72
  ] });
72
- }, We = ({ children: e }) => {
73
+ }, Je = ({ children: e }) => {
73
74
  const [t, r] = b(!1), [n, s] = b(""), [o, l] = b({ input: "textarea", type: "text" }), a = he(() => {
74
75
  }), c = m((d) => {
75
76
  s(d), r(!0);
@@ -86,9 +87,9 @@ const Je = ({ children: e }) => {
86
87
  }), [t, n, c, i, o]);
87
88
  return /* @__PURE__ */ f.jsxs(fe.Provider, { value: u, children: [
88
89
  e,
89
- /* @__PURE__ */ f.jsx(Qe, {})
90
+ /* @__PURE__ */ f.jsx(We, {})
90
91
  ] });
91
- }, Rt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
92
+ }, Mt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
92
93
  const c = C(() => ({
93
94
  axiosOptions: t,
94
95
  cookieDomain: e,
@@ -106,33 +107,33 @@ const Je = ({ children: e }) => {
106
107
  n,
107
108
  l
108
109
  ]);
109
- return /* @__PURE__ */ f.jsx(q.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Je, { children: /* @__PURE__ */ f.jsxs(We, { children: [
110
- /* @__PURE__ */ f.jsx(je, {}),
110
+ return /* @__PURE__ */ f.jsx(z.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Ye, { children: /* @__PURE__ */ f.jsxs(Je, { children: [
111
+ /* @__PURE__ */ f.jsx(De, {}),
111
112
  a
112
113
  ] }) }) });
113
- }, Ut = ({ children: e }) => {
114
+ }, Rt = ({ children: e }) => {
114
115
  const [t, r] = b(!1), [n] = b(/* @__PURE__ */ new Set()), s = m((a) => {
115
116
  n.add(a), r(!0);
116
117
  }, [n]), o = m((a) => {
117
118
  n.delete(a), n.size === 0 && r(!1);
118
119
  }, [n]), l = C(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
119
- return /* @__PURE__ */ f.jsxs(De.Provider, { value: l, children: [
120
- t && /* @__PURE__ */ f.jsx(ze, {}),
120
+ return /* @__PURE__ */ f.jsxs(je.Provider, { value: l, children: [
121
+ t && /* @__PURE__ */ f.jsx(Ne, {}),
121
122
  e
122
123
  ] });
123
- }, Nt = ({ children: e }) => {
124
+ }, Ut = ({ children: e }) => {
124
125
  const t = ke(), { msalInstance: r } = _(de), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: l } = _(me), { getToken: a } = Le(), [c, i] = b(null), u = m(async () => {
125
126
  const y = await a();
126
127
  y && i(y.token);
127
128
  }, [a]);
128
- j(() => {
129
+ D(() => {
129
130
  u();
130
131
  }, [u]);
131
132
  const h = m(() => {
132
133
  const y = localStorage.getItem("user") ?? null;
133
134
  return y ? JSON.parse(y ?? "") : null;
134
135
  }, [])(), [p, g] = b({
135
- state: h ? D.LOGGED_IN : D.LOGGING_IN,
136
+ state: h ? j.LOGGED_IN : j.LOGGING_IN,
136
137
  user: h
137
138
  }), $ = m(async (y) => {
138
139
  let v = null;
@@ -143,29 +144,29 @@ const Je = ({ children: e }) => {
143
144
  }), v;
144
145
  }, [t]), w = m(() => {
145
146
  localStorage.removeItem("user"), g({
146
- state: D.LOGGED_OUT,
147
+ state: j.LOGGED_OUT,
147
148
  user: null
148
149
  }), s(null), o(null);
149
150
  }, [o, s]), E = m(async (y) => {
150
151
  g({
151
- state: D.LOGGING_IN,
152
+ state: j.LOGGING_IN,
152
153
  user: null
153
154
  });
154
155
  const v = await $(y);
155
156
  return v ? (g({
156
- state: D.LOGGED_IN,
157
+ state: j.LOGGED_IN,
157
158
  user: v
158
159
  }), localStorage.setItem("user", JSON.stringify(v)), await l(), !0) : (g({
159
- state: D.LOGIN_FAILED,
160
+ state: j.LOGIN_FAILED,
160
161
  user: null
161
162
  }), !1);
162
163
  }, [$, l]), I = m(() => {
163
164
  w();
164
165
  }, [w]);
165
- j(() => {
166
+ D(() => {
166
167
  if (r) {
167
168
  const y = r.addEventCallback((v) => {
168
- if (v.eventType === Q.LOGIN_SUCCESS && v.payload) {
169
+ if (v.eventType === J.LOGIN_SUCCESS && v.payload) {
169
170
  const K = v.payload;
170
171
  i(K.accessToken);
171
172
  }
@@ -182,7 +183,7 @@ const Je = ({ children: e }) => {
182
183
  I(), s(null);
183
184
  });
184
185
  }, [E, I, s]);
185
- j(() => {
186
+ D(() => {
186
187
  ne(c);
187
188
  }, [c, n == null ? void 0 : n.id, ne]);
188
189
  const Ae = C(() => ({
@@ -193,16 +194,16 @@ const Je = ({ children: e }) => {
193
194
  }), [p, E, I]);
194
195
  return /* @__PURE__ */ f.jsx(He.Provider, { value: Ae, children: e });
195
196
  }, Ft = ({ ...e }) => {
196
- const { cookieDomain: t } = _(q), [, r] = _e(["Authorization"]), n = C(() => ({
197
+ const { cookieDomain: t } = _(z), [, r] = _e(["Authorization"]), n = C(() => ({
197
198
  useMsal: e.useMsal ?? !1,
198
199
  msalInstance: e.useMsal ? e.msalInstance ?? null : null,
199
200
  msalScopes: e.useMsal ? e.msalScopes ?? [] : [],
200
201
  msalExtraScopes: e.useMsal ? e.msalExtraScopes ?? [] : []
201
202
  }), [e]);
202
- return j(() => {
203
+ return D(() => {
203
204
  if (e.useMsal) {
204
205
  const s = e.msalInstance.addEventCallback((o) => {
205
- if (o.eventType === Q.LOGIN_SUCCESS || o.eventType === Q.ACQUIRE_TOKEN_SUCCESS && o.payload) {
206
+ if (o.eventType === J.LOGIN_SUCCESS || o.eventType === J.ACQUIRE_TOKEN_SUCCESS && o.payload) {
206
207
  const l = o.payload, a = l.account;
207
208
  e.msalInstance.setActiveAccount(a);
208
209
  const c = l.accessToken, i = l.expiresOn;
@@ -223,24 +224,24 @@ const Je = ({ children: e }) => {
223
224
  return () => {
224
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 });
226
- }, zt = ({ children: e, relativeEndpoint: t }) => {
227
+ }, Nt = ({ children: e, relativeEndpoint: t }) => {
227
228
  const [r, n, s] = qe("user-delegation", null), o = C(() => {
228
229
  if (!r)
229
230
  return null;
230
- const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) : Ve();
231
+ const d = r.from ? se(r.from) : Ve(), h = r.to ? se(r.to) : Ke();
231
232
  return Be(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
232
233
  }, [r, n]), { data: l, setData: a, reloadData: c } = Ge(t, {
233
234
  nullStateBeforeLoad: !1,
234
235
  nullStateOnFail: !0
235
236
  }), i = he(null);
236
- j(() => {
237
+ D(() => {
237
238
  const d = () => {
238
239
  c(), i.current = window.setTimeout(d, $e() + 5e3);
239
240
  };
240
241
  return d(), () => {
241
242
  i.current !== null && window.clearTimeout(i.current);
242
243
  };
243
- }, [c]), j(() => {
244
+ }, [c]), D(() => {
244
245
  const d = () => {
245
246
  s();
246
247
  };
@@ -263,8 +264,8 @@ const Je = ({ children: e }) => {
263
264
  ]);
264
265
  return /* @__PURE__ */ f.jsx(me.Provider, { value: u, children: e });
265
266
  };
266
- var Ze = typeof Element < "u", Xe = typeof Map == "function", et = typeof Set == "function", tt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
267
- function F(e, t) {
267
+ var Qe = typeof Element < "u", Ze = typeof Map == "function", Xe = typeof Set == "function", et = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
268
+ function N(e, t) {
268
269
  if (e === t) return !0;
269
270
  if (e && t && typeof e == "object" && typeof t == "object") {
270
271
  if (e.constructor !== t.constructor) return !1;
@@ -272,25 +273,25 @@ function F(e, t) {
272
273
  if (Array.isArray(e)) {
273
274
  if (r = e.length, r != t.length) return !1;
274
275
  for (n = r; n-- !== 0; )
275
- if (!F(e[n], t[n])) return !1;
276
+ if (!N(e[n], t[n])) return !1;
276
277
  return !0;
277
278
  }
278
279
  var o;
279
- if (Xe && e instanceof Map && t instanceof Map) {
280
+ if (Ze && e instanceof Map && t instanceof Map) {
280
281
  if (e.size !== t.size) return !1;
281
282
  for (o = e.entries(); !(n = o.next()).done; )
282
283
  if (!t.has(n.value[0])) return !1;
283
284
  for (o = e.entries(); !(n = o.next()).done; )
284
- if (!F(n.value[1], t.get(n.value[0]))) return !1;
285
+ if (!N(n.value[1], t.get(n.value[0]))) return !1;
285
286
  return !0;
286
287
  }
287
- if (et && e instanceof Set && t instanceof Set) {
288
+ if (Xe && e instanceof Set && t instanceof Set) {
288
289
  if (e.size !== t.size) return !1;
289
290
  for (o = e.entries(); !(n = o.next()).done; )
290
291
  if (!t.has(n.value[0])) return !1;
291
292
  return !0;
292
293
  }
293
- if (tt && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
294
+ if (et && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
294
295
  if (r = e.length, r != t.length) return !1;
295
296
  for (n = r; n-- !== 0; )
296
297
  if (e[n] !== t[n]) return !1;
@@ -302,25 +303,25 @@ function F(e, t) {
302
303
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
303
304
  for (n = r; n-- !== 0; )
304
305
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
305
- if (Ze && e instanceof Element) return !1;
306
+ if (Qe && e instanceof Element) return !1;
306
307
  for (n = r; n-- !== 0; )
307
- if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !F(e[s[n]], t[s[n]]))
308
+ if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !N(e[s[n]], t[s[n]]))
308
309
  return !1;
309
310
  return !0;
310
311
  }
311
312
  return e !== e && t !== t;
312
313
  }
313
- var rt = function(t, r) {
314
+ var tt = function(t, r) {
314
315
  try {
315
- return F(t, r);
316
+ return N(t, r);
316
317
  } catch (n) {
317
318
  if ((n.message || "").match(/stack|recursion/i))
318
319
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
319
320
  throw n;
320
321
  }
321
322
  };
322
- const nt = /* @__PURE__ */ pe(rt);
323
- var st = function(t, r, n, s) {
323
+ const rt = /* @__PURE__ */ pe(tt);
324
+ var nt = function(t, r, n, s) {
324
325
  var o = n ? n.call(s, t, r) : void 0;
325
326
  if (o !== void 0)
326
327
  return !!o;
@@ -341,8 +342,8 @@ var st = function(t, r, n, s) {
341
342
  }
342
343
  return !0;
343
344
  };
344
- const ot = /* @__PURE__ */ pe(st);
345
- 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 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 || {}), B = {
346
347
  link: { rel: ["amphtml", "canonical", "alternate"] },
347
348
  script: { type: ["application/ld+json"] },
348
349
  meta: {
@@ -373,7 +374,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
373
374
  "http-equiv": "httpEquiv",
374
375
  itemprop: "itemProp",
375
376
  tabindex: "tabIndex"
376
- }, at = Object.entries(re).reduce(
377
+ }, ot = Object.entries(re).reduce(
377
378
  (e, [t, r]) => (e[r] = t, e),
378
379
  {}
379
380
  ), x = "data-rh", L = {
@@ -390,7 +391,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
390
391
  return n[t];
391
392
  }
392
393
  return null;
393
- }, it = (e) => {
394
+ }, at = (e) => {
394
395
  let t = H(
395
396
  e,
396
397
  "title"
@@ -401,8 +402,8 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
401
402
  return r.replace(/%s/g, () => t);
402
403
  const n = H(e, L.DEFAULT_TITLE);
403
404
  return t || n || void 0;
404
- }, lt = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
405
- }), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ct = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
405
+ }, it = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
406
+ }), V = (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) => {
406
407
  if (!r.length) {
407
408
  const s = Object.keys(n);
408
409
  for (let o = 0; o < s.length; o += 1) {
@@ -412,9 +413,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
412
413
  }
413
414
  }
414
415
  return r;
415
- }, []), ut = (e) => console && typeof console.warn == "function" && console.warn(e), M = (e, t, r) => {
416
+ }, []), ct = (e) => console && typeof console.warn == "function" && console.warn(e), M = (e, t, r) => {
416
417
  const n = {};
417
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ut(
418
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ct(
418
419
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
419
420
  ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
420
421
  const l = {};
@@ -440,22 +441,22 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
440
441
  }
441
442
  return s;
442
443
  }, []).reverse();
443
- }, ft = (e, t) => {
444
+ }, ut = (e, t) => {
444
445
  if (Array.isArray(e) && e.length) {
445
446
  for (let r = 0; r < e.length; r += 1)
446
447
  if (e[r][t])
447
448
  return !0;
448
449
  }
449
450
  return !1;
450
- }, dt = (e) => ({
451
- baseTag: ct([
451
+ }, ft = (e) => ({
452
+ baseTag: lt([
452
453
  "href"
453
454
  /* HREF */
454
455
  ], e),
455
- bodyAttributes: B("bodyAttributes", e),
456
+ bodyAttributes: V("bodyAttributes", e),
456
457
  defer: H(e, L.DEFER),
457
458
  encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
458
- htmlAttributes: B("htmlAttributes", e),
459
+ htmlAttributes: V("htmlAttributes", e),
459
460
  linkTags: M(
460
461
  "link",
461
462
  [
@@ -481,7 +482,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
481
482
  "innerHTML"
482
483
  /* INNER_HTML */
483
484
  ], e),
484
- onChangeClientState: lt(e),
485
+ onChangeClientState: it(e),
485
486
  scriptTags: M(
486
487
  "script",
487
488
  [
@@ -495,56 +496,56 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
495
496
  "cssText"
496
497
  /* CSS_TEXT */
497
498
  ], e),
498
- title: it(e),
499
- titleAttributes: B("titleAttributes", e),
500
- prioritizeSeoTags: ft(e, L.PRIORITIZE_SEO_TAGS)
501
- }), ge = (e) => Array.isArray(e) ? e.join("") : e, mt = (e, t) => {
499
+ title: at(e),
500
+ titleAttributes: V("titleAttributes", e),
501
+ prioritizeSeoTags: ut(e, L.PRIORITIZE_SEO_TAGS)
502
+ }), ge = (e) => Array.isArray(e) ? e.join("") : e, dt = (e, t) => {
502
503
  const r = Object.keys(e);
503
504
  for (let n = 0; n < r.length; n += 1)
504
505
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
505
506
  return !0;
506
507
  return !1;
507
508
  }, Y = (e, t) => Array.isArray(e) ? e.reduce(
508
- (r, n) => (mt(n, t) ? r.priority.push(n) : r.default.push(n), r),
509
+ (r, n) => (dt(n, t) ? r.priority.push(n) : r.default.push(n), r),
509
510
  { priority: [], default: [] }
510
511
  ) : { default: e, priority: [] }, ie = (e, t) => ({
511
512
  ...e,
512
513
  [t]: void 0
513
- }), pt = [
514
+ }), mt = [
514
515
  "noscript",
515
516
  "script",
516
517
  "style"
517
518
  /* STYLE */
518
- ], 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;"), Te = (e) => Object.keys(e).reduce((t, r) => {
519
520
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
520
521
  return t ? `${t} ${n}` : n;
521
- }, ""), ht = (e, t, r, n) => {
522
+ }, ""), pt = (e, t, r, n) => {
522
523
  const s = Te(r), o = ge(t);
523
- return s ? `<${e} ${x}="true" ${s}>${W(
524
+ return s ? `<${e} ${x}="true" ${s}>${Q(
524
525
  o,
525
526
  n
526
- )}</${e}>` : `<${e} ${x}="true">${W(
527
+ )}</${e}>` : `<${e} ${x}="true">${Q(
527
528
  o,
528
529
  n
529
530
  )}</${e}>`;
530
- }, yt = (e, t, r = !0) => t.reduce((n, s) => {
531
+ }, ht = (e, t, r = !0) => t.reduce((n, s) => {
531
532
  const o = s, l = Object.keys(o).filter(
532
533
  (i) => !(i === "innerHTML" || i === "cssText")
533
534
  ).reduce((i, u) => {
534
- const d = typeof o[u] > "u" ? u : `${u}="${W(o[u], r)}"`;
535
+ const d = typeof o[u] > "u" ? u : `${u}="${Q(o[u], r)}"`;
535
536
  return i ? `${i} ${d}` : d;
536
- }, ""), a = o.innerHTML || o.cssText || "", c = pt.indexOf(e) === -1;
537
+ }, ""), a = o.innerHTML || o.cssText || "", c = mt.indexOf(e) === -1;
537
538
  return `${n}<${e} ${x}="true" ${l}${c ? "/>" : `>${a}</${e}>`}`;
538
539
  }, ""), ve = (e, t = {}) => Object.keys(e).reduce((r, n) => {
539
540
  const s = re[n];
540
541
  return r[s || n] = e[n], r;
541
- }, t), gt = (e, t, r) => {
542
+ }, t), yt = (e, t, r) => {
542
543
  const n = {
543
544
  key: t,
544
545
  [x]: !0
545
546
  }, s = ve(r, n);
546
547
  return [O.createElement("title", s, t)];
547
- }, z = (e, t) => t.map((r, n) => {
548
+ }, G = (e, t) => t.map((r, n) => {
548
549
  const s = {
549
550
  key: n,
550
551
  [x]: !0
@@ -561,8 +562,8 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
561
562
  switch (e) {
562
563
  case "title":
563
564
  return {
564
- toComponent: () => gt(e, t.title, t.titleAttributes),
565
- toString: () => ht(e, t.title, t.titleAttributes, r)
565
+ toComponent: () => yt(e, t.title, t.titleAttributes),
566
+ toString: () => pt(e, t.title, t.titleAttributes, r)
566
567
  };
567
568
  case "bodyAttributes":
568
569
  case "htmlAttributes":
@@ -572,18 +573,18 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
572
573
  };
573
574
  default:
574
575
  return {
575
- toComponent: () => z(e, t),
576
- toString: () => yt(e, t, r)
576
+ toComponent: () => G(e, t),
577
+ toString: () => ht(e, t, r)
577
578
  };
578
579
  }
579
- }, Tt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
580
- const s = Y(e, V.meta), o = Y(t, V.link), l = Y(r, V.script);
580
+ }, gt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
581
+ const s = Y(e, B.meta), o = Y(t, B.link), l = Y(r, B.script);
581
582
  return {
582
583
  priorityMethods: {
583
584
  toComponent: () => [
584
- ...z("meta", s.priority),
585
- ...z("link", o.priority),
586
- ...z("script", l.priority)
585
+ ...G("meta", s.priority),
586
+ ...G("link", o.priority),
587
+ ...G("script", l.priority)
587
588
  ],
588
589
  toString: () => (
589
590
  // generate all the tags as strings and concatenate them
@@ -598,7 +599,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
598
599
  linkTags: o.default,
599
600
  scriptTags: l.default
600
601
  };
601
- }, vt = (e) => {
602
+ }, Tt = (e) => {
602
603
  const {
603
604
  baseTag: t,
604
605
  bodyAttributes: r,
@@ -615,7 +616,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
615
616
  },
616
617
  toString: () => ""
617
618
  };
618
- return i && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = Tt(e)), {
619
+ return i && ({ priorityMethods: p, linkTags: u, metaTags: d, scriptTags: h } = gt(e)), {
619
620
  priority: p,
620
621
  base: T("base", t, n),
621
622
  bodyAttributes: T("bodyAttributes", r, n),
@@ -627,7 +628,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
627
628
  style: T("style", l, n),
628
629
  title: T("title", { title: a, titleAttributes: c }, n)
629
630
  };
630
- }, Z = vt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
631
+ }, Z = Tt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
631
632
  constructor(e, t) {
632
633
  A(this, "instances", []);
633
634
  A(this, "canUseDOM", xe);
@@ -661,7 +662,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
661
662
  titleAttributes: {}
662
663
  }));
663
664
  }
664
- }, xt = {}, be = O.createContext(xt), P, Ce = (P = class extends te {
665
+ }, vt = {}, be = O.createContext(vt), P, Ce = (P = class extends te {
665
666
  constructor(r) {
666
667
  super(r);
667
668
  A(this, "helmetData");
@@ -710,7 +711,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
710
711
  for (let a = o.length - 1; a >= 0; a -= 1)
711
712
  r.removeAttribute(o[a]);
712
713
  s.length === o.length ? r.removeAttribute(x) : r.getAttribute(x) !== l.join(",") && r.setAttribute(x, l.join(","));
713
- }, bt = (e, t) => {
714
+ }, xt = (e, t) => {
714
715
  typeof e < "u" && document.title !== e && (document.title = ge(e)), ee("title", t);
715
716
  }, le = (e, t) => {
716
717
  const {
@@ -726,7 +727,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
726
727
  title: d,
727
728
  titleAttributes: h
728
729
  } = e;
729
- ee("body", n), ee("html", s), bt(d, h);
730
+ ee("body", n), ee("html", s), xt(d, h);
730
731
  const p = {
731
732
  baseTag: k("base", r),
732
733
  linkTags: k("link", o),
@@ -739,19 +740,19 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
739
740
  const { newTags: E, oldTags: I } = p[w];
740
741
  E.length && (g[w] = E), I.length && ($[w] = p[w].oldTags);
741
742
  }), t && t(), c(e, g, $);
742
- }, R = null, Ct = (e) => {
743
+ }, R = null, bt = (e) => {
743
744
  R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
744
745
  le(e, () => {
745
746
  R = null;
746
747
  });
747
748
  }) : (le(e), R = null);
748
- }, At = Ct, ce = class extends te {
749
+ }, Ct = bt, ce = class extends te {
749
750
  constructor() {
750
751
  super(...arguments);
751
752
  A(this, "rendered", !1);
752
753
  }
753
754
  shouldComponentUpdate(t) {
754
- return !ot(t, this.props);
755
+ return !st(t, this.props);
755
756
  }
756
757
  componentDidUpdate() {
757
758
  this.emitChange();
@@ -763,13 +764,13 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
763
764
  emitChange() {
764
765
  const { helmetInstances: t, setHelmet: r } = this.props.context;
765
766
  let n = null;
766
- const s = dt(
767
+ const s = ft(
767
768
  t.get().map((o) => {
768
769
  const l = { ...o.props };
769
770
  return delete l.context, l;
770
771
  })
771
772
  );
772
- Ce.canUseDOM ? At(s) : Z && (n = Z(s)), r(n);
773
+ Ce.canUseDOM ? Ct(s) : Z && (n = Z(s)), r(n);
773
774
  }
774
775
  // componentWillMount will be deprecated
775
776
  // for SSR, initialize on first render
@@ -784,9 +785,9 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
784
785
  render() {
785
786
  return this.init(), null;
786
787
  }
787
- }, J, St = (J = class extends te {
788
+ }, W, At = (W = class extends te {
788
789
  shouldComponentUpdate(e) {
789
- return !nt(ie(this.props, "helmetData"), ie(e, "helmetData"));
790
+ return !rt(ie(this.props, "helmetData"), ie(e, "helmetData"));
790
791
  }
791
792
  mapNestedChildrenToProps(e, t) {
792
793
  if (!t)
@@ -869,7 +870,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
869
870
  return O.Children.forEach(e, (n) => {
870
871
  if (!n || !n.props)
871
872
  return;
872
- const { children: s, ...o } = n.props, l = Object.keys(o).reduce((c, i) => (c[at[i] || i] = o[i], c), {});
873
+ const { children: s, ...o } = n.props, l = Object.keys(o).reduce((c, i) => (c[ot[i] || i] = o[i], c), {});
873
874
  let { type: a } = n;
874
875
  switch (typeof a == "symbol" ? a = a.toString() : this.warnOnInvalidChildren(n, s), a) {
875
876
  case "Symbol(react.fragment)":
@@ -902,11 +903,11 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
902
903
  }
903
904
  return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(be.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
904
905
  }
905
- }, A(J, "defaultProps", {
906
+ }, A(W, "defaultProps", {
906
907
  defer: !0,
907
908
  encodeSpecialCharacters: !0,
908
909
  prioritizeSeoTags: !1
909
- }), J);
910
+ }), W);
910
911
  const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
911
912
  const [n, s] = b([
912
913
  ue(r ?? "", e)
@@ -916,11 +917,11 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children:
916
917
  s((i) => i.length > 1 ? i.slice(0, -1) : i);
917
918
  }, [s]), a = C(() => n.at(-1) ?? "", [n]), c = C(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
918
919
  return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(Ce, { children: [
919
- /* @__PURE__ */ f.jsx(St, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
920
+ /* @__PURE__ */ f.jsx(At, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
920
921
  t
921
922
  ] }) });
922
- }, qt = ({ children: e, disabled: t }) => /* @__PURE__ */ f.jsx(Re.Provider, { value: t, children: e }), Et = () => {
923
- const { texts: { confirm: e } } = _(q), { onConfirm: t, onCancel: r, text: n, show: s } = Ue(), o = m((l) => {
923
+ }, St = () => {
924
+ const { texts: { confirm: e } } = _(z), { onConfirm: t, onCancel: r, text: n, show: s } = Re(), o = m((l) => {
924
925
  switch (l.key) {
925
926
  case "Enter":
926
927
  l.stopPropagation(), t();
@@ -930,11 +931,11 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children:
930
931
  break;
931
932
  }
932
933
  }, [t, r]);
933
- return Ne(o), /* @__PURE__ */ f.jsxs(S, { show: s, size: "sm", centered: !0, onHide: r, children: [
934
+ return Ue(o), /* @__PURE__ */ f.jsxs(S, { show: s, size: "sm", centered: !0, onHide: r, children: [
934
935
  /* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(S.Title, { children: n }) }),
935
936
  /* @__PURE__ */ f.jsx(S.Body, { children: /* @__PURE__ */ f.jsxs("div", { className: "w-100 d-flex gap-5", children: [
936
- /* @__PURE__ */ f.jsx(G, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: r, children: e.no }),
937
- /* @__PURE__ */ f.jsx(G, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
937
+ /* @__PURE__ */ f.jsx(q, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: r, children: e.no }),
938
+ /* @__PURE__ */ f.jsx(q, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
938
939
  ] }) })
939
940
  ] });
940
941
  };
@@ -942,16 +943,16 @@ export {
942
943
  de as AuthContext,
943
944
  Ft as AuthProvider,
944
945
  me as DelegationContext,
945
- zt as DelegationProvider,
946
- Re as FormDisabledContext,
947
- qt as FormDisabledProvider,
946
+ Nt as DelegationProvider,
947
+ Kt as FormDisabledContext,
948
+ Yt as FormDisabledProvider,
948
949
  Me as HelmetContext,
949
950
  Gt as HelmetProvider,
950
- De as LoadingContext,
951
- Ut as LoadingProvider,
952
- q as LuminusComponentsContext,
953
- Rt as LuminusComponentsProvider,
951
+ je as LoadingContext,
952
+ Rt as LoadingProvider,
953
+ z as LuminusComponentsContext,
954
+ Mt as LuminusComponentsProvider,
954
955
  He as UserContext,
955
- Nt as UserProvider,
956
+ Ut as UserProvider,
956
957
  Bt as useFormDisabledContext
957
958
  };