react-luminus-components 1.4.55 → 1.4.57

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,9 +1,9 @@
1
1
  {
2
- "_FormDisabledProvider-CbNzR9vC.js": {
3
- "file": "FormDisabledProvider-CbNzR9vC.js",
2
+ "_FormDisabledProvider-6tUxmuDM.js": {
3
+ "file": "FormDisabledProvider-6tUxmuDM.js",
4
4
  "name": "FormDisabledProvider",
5
5
  "imports": [
6
- "_ShortcutLinksContext-D-3_1QWF.js"
6
+ "_ShortcutLinksContext-BnnVfkMM.js"
7
7
  ]
8
8
  },
9
9
  "_FormDisabledProvider-IJvvekVE.cjs": {
@@ -13,8 +13,8 @@
13
13
  "_ShortcutLinksContext-DTVPEbpS.cjs"
14
14
  ]
15
15
  },
16
- "_ShortcutLinksContext-D-3_1QWF.js": {
17
- "file": "ShortcutLinksContext-D-3_1QWF.js",
16
+ "_ShortcutLinksContext-BnnVfkMM.js": {
17
+ "file": "ShortcutLinksContext-BnnVfkMM.js",
18
18
  "name": "ShortcutLinksContext"
19
19
  },
20
20
  "_ShortcutLinksContext-DTVPEbpS.cjs": {
@@ -29,18 +29,18 @@
29
29
  "file": "apiPathUtils-DiqvB8mF.js",
30
30
  "name": "apiPathUtils"
31
31
  },
32
- "_useLocalStorageState-CSuGfUFh.js": {
33
- "file": "useLocalStorageState-CSuGfUFh.js",
32
+ "_useLocalStorageState-CjYiTOYJ.cjs": {
33
+ "file": "useLocalStorageState-CjYiTOYJ.cjs",
34
34
  "name": "useLocalStorageState",
35
35
  "imports": [
36
- "_ShortcutLinksContext-D-3_1QWF.js"
36
+ "_ShortcutLinksContext-DTVPEbpS.cjs"
37
37
  ]
38
38
  },
39
- "_useLocalStorageState-CjYiTOYJ.cjs": {
40
- "file": "useLocalStorageState-CjYiTOYJ.cjs",
39
+ "_useLocalStorageState-DtLtD3Dq.js": {
40
+ "file": "useLocalStorageState-DtLtD3Dq.js",
41
41
  "name": "useLocalStorageState",
42
42
  "imports": [
43
- "_ShortcutLinksContext-DTVPEbpS.cjs"
43
+ "_ShortcutLinksContext-BnnVfkMM.js"
44
44
  ]
45
45
  },
46
46
  "_useRenderDraggableInPortal-D0OLp7Qb.js": {
@@ -1,4 +1,4 @@
1
- import { j as t, c as i, t as d, f as l, bK as _ } from "./ShortcutLinksContext-D-3_1QWF.js";
1
+ import { j as t, c as i, t as d, f as l, bL as _ } from "./ShortcutLinksContext-BnnVfkMM.js";
2
2
  const g = "_loading_obchl_1", h = "_spinner-grow_obchl_10", p = "_second_obchl_14", u = "_third_obchl_17", m = "_loadingBlock_obchl_21", b = "_sizeLine_obchl_29", x = "_sizeFill_obchl_36", o = {
3
3
  loading: g,
4
4
  "spinner-grow": "_spinner-grow_obchl_10",
@@ -28011,7 +28011,7 @@ export {
28011
28011
  Qp as Z,
28012
28012
  zx as _,
28013
28013
  fp as a,
28014
- uM as a$,
28014
+ k2 as a$,
28015
28015
  F2 as a0,
28016
28016
  In as a1,
28017
28017
  Su as a2,
@@ -28039,16 +28039,16 @@ export {
28039
28039
  as as aO,
28040
28040
  hp as aP,
28041
28041
  wre as aQ,
28042
- Tre as aR,
28043
- vs as aS,
28044
- Z7 as aT,
28045
- Wne as aU,
28046
- Fp as aV,
28047
- Yp as aW,
28048
- m2 as aX,
28049
- dre as aY,
28050
- Ux as aZ,
28051
- k2 as a_,
28042
+ m2 as aR,
28043
+ Tre as aS,
28044
+ sh as aT,
28045
+ vs as aU,
28046
+ Z7 as aV,
28047
+ Wne as aW,
28048
+ Fp as aX,
28049
+ Yp as aY,
28050
+ dre as aZ,
28051
+ Ux as a_,
28052
28052
  fb as aa,
28053
28053
  rn as ab,
28054
28054
  ub as ac,
@@ -28077,69 +28077,69 @@ export {
28077
28077
  B7 as az,
28078
28078
  nb as b,
28079
28079
  fre as b$,
28080
- $ne as b0,
28081
- Cne as b1,
28082
- Sre as b2,
28083
- jC as b3,
28084
- Ip as b4,
28085
- Zne as b5,
28086
- Ob as b6,
28087
- mM as b7,
28088
- Cre as b8,
28089
- Ck as b9,
28090
- Une as bA,
28091
- ate as bB,
28092
- qg as bC,
28093
- kO as bD,
28094
- EO as bE,
28095
- Hne as bF,
28096
- p2 as bG,
28097
- tre as bH,
28098
- Qg as bI,
28099
- U$ as bJ,
28100
- W$ as bK,
28101
- hre as bL,
28102
- O2 as bM,
28103
- B$ as bN,
28104
- Sk as bO,
28105
- Nk as bP,
28106
- nre as bQ,
28107
- rre as bR,
28108
- ire as bS,
28109
- are as bT,
28110
- Fk as bU,
28111
- ore as bV,
28112
- sre as bW,
28113
- lre as bX,
28114
- ure as bY,
28115
- Bk as bZ,
28116
- sh as b_,
28117
- L$ as ba,
28118
- Vne as bb,
28119
- Xp as bc,
28120
- Jp as bd,
28121
- ec as be,
28122
- CC as bf,
28123
- Kp as bg,
28124
- _k as bh,
28125
- bn as bi,
28126
- Ag as bj,
28127
- Yne as bk,
28128
- $O as bl,
28129
- dx as bm,
28130
- kne as bn,
28131
- One as bo,
28132
- kre as bp,
28133
- Kt as bq,
28134
- Kte as br,
28135
- Ane as bs,
28136
- N$ as bt,
28137
- Px as bu,
28138
- bre as bv,
28139
- P3 as bw,
28140
- mre as bx,
28141
- Ore as by,
28142
- Dne as bz,
28080
+ uM as b0,
28081
+ $ne as b1,
28082
+ Cne as b2,
28083
+ Sre as b3,
28084
+ jC as b4,
28085
+ Ip as b5,
28086
+ Zne as b6,
28087
+ Ob as b7,
28088
+ mM as b8,
28089
+ Cre as b9,
28090
+ Dne as bA,
28091
+ Une as bB,
28092
+ ate as bC,
28093
+ qg as bD,
28094
+ kO as bE,
28095
+ EO as bF,
28096
+ Hne as bG,
28097
+ p2 as bH,
28098
+ tre as bI,
28099
+ Qg as bJ,
28100
+ U$ as bK,
28101
+ W$ as bL,
28102
+ hre as bM,
28103
+ O2 as bN,
28104
+ B$ as bO,
28105
+ Sk as bP,
28106
+ Nk as bQ,
28107
+ nre as bR,
28108
+ rre as bS,
28109
+ ire as bT,
28110
+ are as bU,
28111
+ Fk as bV,
28112
+ ore as bW,
28113
+ sre as bX,
28114
+ lre as bY,
28115
+ ure as bZ,
28116
+ Bk as b_,
28117
+ Ck as ba,
28118
+ L$ as bb,
28119
+ Vne as bc,
28120
+ Xp as bd,
28121
+ Jp as be,
28122
+ ec as bf,
28123
+ CC as bg,
28124
+ Kp as bh,
28125
+ _k as bi,
28126
+ bn as bj,
28127
+ Ag as bk,
28128
+ Yne as bl,
28129
+ $O as bm,
28130
+ dx as bn,
28131
+ kne as bo,
28132
+ One as bp,
28133
+ kre as bq,
28134
+ Kt as br,
28135
+ Kte as bs,
28136
+ Ane as bt,
28137
+ N$ as bu,
28138
+ Px as bv,
28139
+ bre as bw,
28140
+ P3 as bx,
28141
+ mre as by,
28142
+ Ore as bz,
28143
28143
  se as c,
28144
28144
  oh as c0,
28145
28145
  wk as c1,
@@ -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, bC as we, j as d, bD as De, P as z, bl as Pe, bE as me, $ as O, bf as ke, Q as G, bF as je, aV as Ie, aw as Me, aq as pe, bh as he, at as I, as as Le, bG as He, aP as oe, bH as _e, ab as ye, bI as ae, bJ as $e, aX as Re, af as Ue, a1 as Fe } from "./ShortcutLinksContext-D-3_1QWF.js";
5
- import { bK as Bt, bc as Yt } from "./ShortcutLinksContext-D-3_1QWF.js";
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";
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-CbNzR9vC.js";
14
- import { F as Wt } from "./FormDisabledProvider-CbNzR9vC.js";
15
- import { a as Ke, u as Ve } from "./useLocalStorageState-CSuGfUFh.js";
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";
16
16
  function Be(e) {
17
17
  const t = F(e);
18
18
  return t.setHours(23, 59, 59, 999), t;
@@ -121,7 +121,7 @@ const Qe = ({ children: e }) => {
121
121
  e
122
122
  ] });
123
123
  }, Nt = ({ children: e }) => {
124
- const t = Me(), { msalInstance: n, getToken: r } = _(pe), { delegation: s, setDelegation: o, setAvailableDelegations: c, refreshAvailableDelegations: i } = _(he), [l, a] = S(null), u = h(async () => {
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 () => {
125
125
  const g = await r();
126
126
  g && a(g.token);
127
127
  }, [r]);
@@ -191,7 +191,7 @@ const Qe = ({ children: e }) => {
191
191
  loginUser: w,
192
192
  logoutUser: P
193
193
  }), [p, w, P]);
194
- return /* @__PURE__ */ d.jsx(Le.Provider, { value: Ce, children: e });
194
+ return /* @__PURE__ */ d.jsx(Me.Provider, { value: Ce, children: e });
195
195
  }, qt = ({ ...e }) => {
196
196
  const { cookieDomain: t } = _(z), [, n] = He(["Authorization"]), r = T(
197
197
  () => e.useMsal ? e.msalInstance : null,
@@ -420,7 +420,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
420
420
  }, lt = Object.entries(ne).reduce(
421
421
  (e, [t, n]) => (e[n] = t, e),
422
422
  {}
423
- ), A = "data-rh", L = {
423
+ ), A = "data-rh", M = {
424
424
  DEFAULT_TITLE: "defaultTitle",
425
425
  DEFER: "defer",
426
426
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
@@ -440,12 +440,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
440
440
  "title"
441
441
  /* TITLE */
442
442
  );
443
- const n = H(e, L.TITLE_TEMPLATE);
443
+ const n = H(e, M.TITLE_TEMPLATE);
444
444
  if (Array.isArray(t) && (t = t.join("")), n && t)
445
445
  return n.replace(/%s/g, () => t);
446
- const r = H(e, L.DEFAULT_TITLE);
446
+ const r = H(e, M.DEFAULT_TITLE);
447
447
  return t || r || void 0;
448
- }, ut = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
448
+ }, ut = (e) => H(e, M.ON_CHANGE_CLIENT_STATE) || (() => {
449
449
  }), B = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, r) => ({ ...n, ...r }), {}), ft = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, r) => {
450
450
  if (!n.length) {
451
451
  const s = Object.keys(r);
@@ -497,8 +497,8 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
497
497
  /* HREF */
498
498
  ], e),
499
499
  bodyAttributes: B("bodyAttributes", e),
500
- defer: H(e, L.DEFER),
501
- encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
500
+ defer: H(e, M.DEFER),
501
+ encode: H(e, M.ENCODE_SPECIAL_CHARACTERS),
502
502
  htmlAttributes: B("htmlAttributes", e),
503
503
  linkTags: $(
504
504
  "link",
@@ -541,7 +541,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
541
541
  ], e),
542
542
  title: ct(e),
543
543
  titleAttributes: B("titleAttributes", e),
544
- prioritizeSeoTags: mt(e, L.PRIORITIZE_SEO_TAGS)
544
+ prioritizeSeoTags: mt(e, M.PRIORITIZE_SEO_TAGS)
545
545
  }), Te = (e) => Array.isArray(e) ? e.join("") : e, ht = (e, t) => {
546
546
  const n = Object.keys(e);
547
547
  for (let r = 0; r < n.length; r += 1)
@@ -714,7 +714,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
714
714
  render() {
715
715
  return /* @__PURE__ */ D.createElement(be.Provider, { value: this.helmetData.value }, this.props.children);
716
716
  }
717
- }, E(k, "canUseDOM", Se), k), M = (e, t) => {
717
+ }, E(k, "canUseDOM", Se), k), L = (e, t) => {
718
718
  const n = document.head || document.querySelector(
719
719
  "head"
720
720
  /* HEAD */
@@ -772,12 +772,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
772
772
  } = e;
773
773
  ee("body", r), ee("html", s), At(f, m);
774
774
  const p = {
775
- baseTag: M("base", n),
776
- linkTags: M("link", o),
777
- metaTags: M("meta", c),
778
- noscriptTags: M("noscript", i),
779
- scriptTags: M("script", a),
780
- styleTags: M("style", u)
775
+ baseTag: L("base", n),
776
+ linkTags: L("link", o),
777
+ metaTags: L("meta", c),
778
+ noscriptTags: L("noscript", i),
779
+ scriptTags: L("script", a),
780
+ styleTags: L("style", u)
781
781
  }, y = {}, v = {};
782
782
  Object.keys(p).forEach((C) => {
783
783
  const { newTags: w, oldTags: P } = p[C];
@@ -996,7 +996,7 @@ export {
996
996
  Ft as LoadingProvider,
997
997
  z as LuminusComponentsContext,
998
998
  Ut as LuminusComponentsProvider,
999
- Le as UserContext,
999
+ Me as UserContext,
1000
1000
  Nt as UserProvider,
1001
1001
  Yt as useFormDisabledContext
1002
1002
  };
package/dist/hooks.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { aw as k, aV as P, ar as $ } from "./ShortcutLinksContext-D-3_1QWF.js";
2
- import { bL as Z, bt as j, bN as J, aX as Y, bM as _, af as K, aW as tt, ba as et, bl as at, a2 as st, bg as rt } from "./ShortcutLinksContext-D-3_1QWF.js";
3
- import { u as ot, a as ut } from "./useLocalStorageState-CSuGfUFh.js";
4
- import { useState as v, useEffect as g, useContext as y, useRef as I, useCallback as S } from "react";
1
+ import { aw as k, aX as L, ar as O } from "./ShortcutLinksContext-BnnVfkMM.js";
2
+ import { bM as Y, bu as Z, bO as j, aR as J, bN as _, af as K, aY as tt, bb as et, bm as at, a2 as st, bh as rt } from "./ShortcutLinksContext-BnnVfkMM.js";
3
+ import { u as ot, a as ut } from "./useLocalStorageState-DtLtD3Dq.js";
4
+ import { useState as b, useEffect as g, useContext as $, useRef as I, useCallback as S } from "react";
5
5
  import { c as ct, u as it, a as dt, b as mt } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
6
6
  import "react-router-dom";
7
7
  import "react-dom";
@@ -9,7 +9,7 @@ import "react-hook-form";
9
9
  import "react-flexmonster";
10
10
  import "@azure/msal-browser";
11
11
  import "@azure/msal-react";
12
- const B = (e) => {
12
+ const y = (e) => {
13
13
  let t = "pending", r;
14
14
  const a = e.then((s) => {
15
15
  t = "success", r = s;
@@ -29,20 +29,20 @@ const B = (e) => {
29
29
  }
30
30
  };
31
31
  };
32
- function z(e, t) {
32
+ function q(e, t) {
33
33
  const r = k({
34
34
  silent: !0,
35
35
  differentBaseUrl: t == null ? void 0 : t.customBaseUrl,
36
36
  customToken: t == null ? void 0 : t.customToken
37
- }), [a, s] = v(null);
37
+ }), [a, s] = b(null);
38
38
  return g(() => {
39
39
  (async () => {
40
40
  const n = r.get(e).then((u) => u.data);
41
- s(B(n));
41
+ s(y(n));
42
42
  })();
43
43
  }, [r, e]), a;
44
44
  }
45
- const E = (e, t, r) => {
45
+ const B = (e, t, r) => {
46
46
  let a = "pending", s;
47
47
  const c = e.then((n) => {
48
48
  a = "success", s = n;
@@ -70,22 +70,22 @@ const E = (e, t, r) => {
70
70
  enabled: !0,
71
71
  nullStateBeforeLoad: !0,
72
72
  nullStateOnFail: !1
73
- }, H = (e, { loadOnInit: t = d.loadOnInit, enabled: r = d.enabled, silent: a = d.silent, nullStateBeforeLoad: s = d.nullStateBeforeLoad, nullStateOnFail: c = d.nullStateOnFail, customApiUrl: n, customBearerToken: u, dataTransformer: i, errorBoundaryOn404: o } = d) => {
73
+ }, z = (e, { loadOnInit: t = d.loadOnInit, enabled: r = d.enabled, silent: a = d.silent, nullStateBeforeLoad: s = d.nullStateBeforeLoad, nullStateOnFail: c = d.nullStateOnFail, customApiUrl: n, customBearerToken: u, dataTransformer: i, errorBoundaryOn404: o } = d) => {
74
74
  const l = k({
75
75
  silent: a,
76
76
  customToken: u,
77
77
  differentBaseUrl: n,
78
78
  noToastOnStatus: o ? [404] : void 0
79
- }), { startLoading: m, stopLoading: D } = y(P), T = I(0), { isAuthenticated: b } = $(), [A, w] = v(null), h = S(async (f, C) => {
80
- if (!b() || r === !1)
79
+ }), { startLoading: m, stopLoading: v } = $(L), T = I(0), { isAuthenticated: D } = O(), [A, h] = b(null), w = S(async (f, C) => {
80
+ if (!D() || r === !1)
81
81
  return;
82
- !a && m(`loadData-${e}-${C}`), s && w(null);
83
- const L = l.get(e, {
82
+ !a && m(`loadData-${e}-${C}`), s && h(null);
83
+ const P = l.get(e, {
84
84
  signal: f
85
- }).then((x) => i ? i(x.data) : x.data).finally(() => !a && D(`loadData-${e}-${C}`));
86
- w(E(L, c ?? !1, o ?? !1));
85
+ }).then((x) => i ? i(x.data) : x.data).finally(() => !a && v(`loadData-${e}-${C}`));
86
+ h(B(P, c ?? !1, o ?? !1));
87
87
  }, [
88
- b,
88
+ D,
89
89
  r,
90
90
  a,
91
91
  m,
@@ -93,7 +93,7 @@ const E = (e, t, r) => {
93
93
  s,
94
94
  l,
95
95
  i,
96
- D,
96
+ v,
97
97
  c,
98
98
  o
99
99
  ]);
@@ -101,16 +101,16 @@ const E = (e, t, r) => {
101
101
  if (t === !1)
102
102
  return;
103
103
  const f = new AbortController();
104
- return h(f.signal, ++T.current), () => {
104
+ return w(f.signal, ++T.current), () => {
105
105
  f.abort();
106
106
  };
107
- }, [h, t]), { data: A, setData: w, reloadData: h };
107
+ }, [w, t]), { data: A, setData: h, reloadData: w };
108
108
  }, p = {
109
109
  storageKey: "--tmp-scroll-save--",
110
110
  requiredHeight: 100,
111
111
  retryInterval: 50
112
- }, M = (e, { storageKey: t = p.storageKey, requiredHeight: r = p.requiredHeight, retryInterval: a = p.retryInterval } = p) => {
113
- const [s, c] = v(!1), n = I(null), u = S(() => {
112
+ }, H = (e, { storageKey: t = p.storageKey, requiredHeight: r = p.requiredHeight, retryInterval: a = p.retryInterval } = p) => {
113
+ const [s, c] = b(!1), n = I(null), u = S(() => {
114
114
  const o = localStorage.getItem(t);
115
115
  return localStorage.removeItem(t), o === null ? null : Number(o);
116
116
  }, [t]), i = S((o) => {
@@ -137,24 +137,24 @@ const E = (e, t, r) => {
137
137
  }, [i, e]), { saveValue: i, retrieveValue: u };
138
138
  };
139
139
  export {
140
- Z as cancelToken,
141
- $ as useAuth,
140
+ Y as cancelToken,
141
+ O as useAuth,
142
142
  k as useAxios,
143
- j as useClickOutside,
144
- J as useClipboard,
145
- Y as useConfirm,
143
+ Z as useClickOutside,
144
+ j as useClipboard,
145
+ J as useConfirm,
146
146
  ct as useEmployeePhotoPath,
147
147
  _ as useFormControlType,
148
148
  ot as useGetApiData,
149
- H as useGetApiDataBound,
150
- z as useGetDataBound,
149
+ z as useGetApiDataBound,
150
+ q as useGetDataBound,
151
151
  K as useKeyPress,
152
152
  ut as useLocalStorageState,
153
153
  tt as useNotifications,
154
154
  et as usePermissions,
155
155
  at as usePrompt,
156
156
  it as useRenderDraggableInPortal,
157
- M as useScrollSave,
157
+ H as useScrollSave,
158
158
  dt as useSearchQuery,
159
159
  mt as useSearchQueryState,
160
160
  st as useWindowSize,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-DTVPEbpS.cjs"),x=require("react"),g=require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");const B="_side-menu-item_o72rm_1",P="_disabled_o72rm_6",f="_hidden_o72rm_10",w="_nav-button_o72rm_13",S="_child_o72rm_21",I="_text_o72rm_26",L="_icon_o72rm_36",T="_collapse-icon_o72rm_42",O="_collapsed_o72rm_52",$="_collapse-icon-mini_o72rm_55",A="_expanded_o72rm_86",K="_children-container_o72rm_92",D="_visible_o72rm_100",F="_children_o72rm_92",z="_mobile_o72rm_112",n={"side-menu-item":"_side-menu-item_o72rm_1",sideMenuItem:B,disabled:P,hidden:f,"nav-button":"_nav-button_o72rm_13",navButton:w,child:S,text:I,icon:L,"collapse-icon":"_collapse-icon_o72rm_42",collapseIcon:T,collapsed:O,"collapse-icon-mini":"_collapse-icon-mini_o72rm_55",collapseIconMini:$,expanded:A,"children-container":"_children-container_o72rm_92",childrenContainer:K,visible:D,children:F,mobile:z},U=({item:s,menuExpanded:i,useTooltips:l,children:c})=>s.tooltip&&!i&&l?e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:s.tooltip,placement:"top",delay:{show:1e3,hide:0},children:e.jsxRuntimeExports.jsx("div",{children:c})}):c,C=({item:s,menuExpanded:i,collapsed:l,onCollapse:c,currentPath:_,useHover:r,useTooltips:p,isMobile:E,disableMode:a})=>{var q,y,v,N;const[M,b]=x.useState(!1),[j]=_.split("?"),R=s.linkTo===j||((q=s.children)==null?void 0:q.some(o=>o.linkTo===j)),m=x.useRef(null);return e.useClickOutside([m],()=>l&&c()),e.jsxRuntimeExports.jsxs("li",{ref:m,className:e.classNames("luminus-side-menu-item",n.sideMenuItem,{[n.mobile]:E},{[n.expanded]:i},{active:M||R},{open:l&&s.children},{[a==="disable"?n.disabled:n.hidden]:s.disabled||s.notPermitted||((y=s.children)==null?void 0:y.every(o=>o.notPermitted||o.disabled))},{[a==="disable"?"disabled":"hidden"]:s.disabled||s.notPermitted||((v=s.children)==null?void 0:v.every(o=>o.notPermitted||o.disabled))}),onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[e.jsxRuntimeExports.jsx(U,{item:s,menuExpanded:i,useTooltips:p,children:s.children?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.classNames("nav-link",n.navButton),onClick:()=>{c()},children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),!r&&!i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon-mini rounded",n.collapseIconMini,{[n.collapsed]:l}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon",n.collapseIcon,{[n.collapsed]:l}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})})]})}):e.jsxRuntimeExports.jsxs(g.Link,{to:s.disabled||s.notPermitted?"/":s.linkTo??"/",className:e.classNames("nav-link",n.navButton),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title})]})}),e.jsxRuntimeExports.jsx("div",{className:e.classNames("children-container",n.childrenContainer,{[n.visible]:l}),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("shadow rounded children",n.children),children:(N=s.children)==null?void 0:N.map(o=>e.jsxRuntimeExports.jsx(g.Link,{to:o.disabled||o.notPermitted?"/":o.linkTo??"/",className:e.classNames("nav-link child rounded",n.navButton,n.child,{[a==="disable"?n.disabled:n.hidden]:o.disabled||o.notPermitted},{[a==="disable"?"disabled":"hidden"]:o.disabled||o.notPermitted}),onClick:c,children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:o.title})},o.linkTo))})})]})},W="_side-menu_1q9oh_1",G="_sidebar-header_1q9oh_15",J="_side-menu-content_1q9oh_22",Q="_expand_1q9oh_27",V="_only-logo_1q9oh_31",X="_mobile_1q9oh_34",Y="_divider_1q9oh_49",u={"side-menu":"_side-menu_1q9oh_1",sideMenu:W,"sidebar-header":"_sidebar-header_1q9oh_15",sidebarHeader:G,"side-menu-content":"_side-menu-content_1q9oh_22",sideMenuContent:J,expand:Q,"only-logo":"_only-logo_1q9oh_31",onlyLogo:V,mobile:X,divider:Y},Z=({headerItem:s,searchItem:i,shortcutsItem:l,mainItems:c,secondaryItems:_,expanded:r,setExpanded:p,currentPath:E,useHover:a,useTooltips:M,disableMode:b="disable"})=>{const[j,R]=x.useState(-1),{checkUserHasPermissions:m}=e.usePermissions(),q=x.useMemo(()=>c.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(h=>({...h,notPermitted:!m(h.permissions??[],"any"),disabled:t.disabled||h.disabled}))}}),[c,m]),y=x.useMemo(()=>_.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(h=>({...h,notPermitted:!m(h.permissions??[],"any")}))}}),[_,m]),v=t=>{R(t===j?-1:t)};x.useEffect(()=>{r||R(-1)},[r]);const N=x.useRef(null);e.useClickOutside([N],()=>p(!1));const{isMobile:o}=e.useWindowSize();return e.jsxRuntimeExports.jsxs("section",{ref:N,className:e.classNames("luminus-side-menu shadow",u.sideMenu,{[u.mobile]:o},{[u.expand]:r},{expand:r}),onMouseEnter:()=>a&&p(!0),onMouseLeave:()=>a&&p(!1),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("sidebar-header",u.sidebarHeader,{[u.onlyLogo]:a}),role:a?void 0:"button",onClick:a?void 0:()=>p(!r),children:a?s:r?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardDoubleArrowLeft,{}),s]}):e.jsxRuntimeExports.jsx(e.MdOutlineMenu,{})}),r&&(i||l)?e.jsxRuntimeExports.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[l&&r?l:null,i&&r?i:null]}):null,e.jsxRuntimeExports.jsxs("ul",{className:u.sideMenuContent,children:[q.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:r,collapsed:d===j,onCollapse:()=>v(d),currentPath:E,useHover:a,useTooltips:M,isMobile:o,disableMode:b},t.title)),e.jsxRuntimeExports.jsx("hr",{className:e.classNames("divider",u.divider)}),y.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:r,collapsed:d===j,onCollapse:()=>v(d),currentPath:E,useHover:a,useTooltips:M,isMobile:o,disableMode:b},t.title))]})]})},H="_top-bar_lnmq0_1",ee="_top-bar-brand_lnmq0_12",k={"top-bar":"_top-bar_lnmq0_1",topBar:H,"top-bar-brand":"_top-bar-brand_lnmq0_12",topBarBrand:ee},se=({appName:s,leftOffset:i,leftContent:l,centerContent:c,rightContent:_})=>e.jsxRuntimeExports.jsx("nav",{className:e.classNames("luminus-top-bar shadow",k.topBar),style:{width:i?`calc(100% - ${i}px)`:void 0,left:i?`${i}px`:void 0},children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 row g-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[e.jsxRuntimeExports.jsx(g.Link,{to:"/",className:e.classNames("luminus-top-bar-brand",k.topBarBrand),children:s}),l]}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex align-items-center",children:c??null}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:_??null})]})});exports.PageContainer=e.PageContainer;exports.SideContentBar=e.SideContentBar;exports.SideMenu=Z;exports.TopBar=se;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-DTVPEbpS.cjs"),x=require("react"),g=require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");const P="_side-menu-item_o72rm_1",f="_disabled_o72rm_6",w="_hidden_o72rm_10",T="_nav-button_o72rm_13",q="_child_o72rm_21",S="_text_o72rm_26",I="_icon_o72rm_36",L="_collapse-icon_o72rm_42",O="_collapsed_o72rm_52",A="_collapse-icon-mini_o72rm_55",$="_expanded_o72rm_86",D="_children-container_o72rm_92",K="_visible_o72rm_100",F="_children_o72rm_92",z="_mobile_o72rm_112",n={"side-menu-item":"_side-menu-item_o72rm_1",sideMenuItem:P,disabled:f,hidden:w,"nav-button":"_nav-button_o72rm_13",navButton:T,child:q,text:S,icon:I,"collapse-icon":"_collapse-icon_o72rm_42",collapseIcon:L,collapsed:O,"collapse-icon-mini":"_collapse-icon-mini_o72rm_55",collapseIconMini:A,expanded:$,"children-container":"_children-container_o72rm_92",childrenContainer:D,visible:K,children:F,mobile:z},G=({item:s,menuExpanded:i,useTooltips:r,children:c})=>s.tooltip&&!i&&r?e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:s.tooltip,placement:"top",delay:{show:1e3,hide:0},children:e.jsxRuntimeExports.jsx("div",{children:c})}):c,C=({item:s,menuExpanded:i,collapsed:r,onCollapse:c,currentPath:_,useHover:l,useTooltips:p,isMobile:k,disableMode:a})=>{var N,v,E,y;const[M,h]=x.useState(!1),[j]=_.split("?"),R=s.linkTo===j||((N=s.children)==null?void 0:N.some(o=>o.linkTo===j)),m=x.useRef(null);return e.useClickOutside([m],()=>r&&c()),e.jsxRuntimeExports.jsxs("li",{ref:m,className:e.classNames("luminus-side-menu-item",n.sideMenuItem,{[n.mobile]:k},{[n.expanded]:i},{active:M||R},{open:r&&s.children},{[a==="disable"?n.disabled:n.hidden]:s.disabled||s.notPermitted||((v=s.children)==null?void 0:v.every(o=>o.notPermitted||o.disabled))},{[a==="disable"?"disabled":"hidden"]:s.disabled||s.notPermitted||((E=s.children)==null?void 0:E.every(o=>o.notPermitted||o.disabled))}),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[e.jsxRuntimeExports.jsx(G,{item:s,menuExpanded:i,useTooltips:p,children:s.children?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.classNames("nav-link",n.navButton),onClick:()=>{c()},children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),!l&&!i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon-mini rounded",n.collapseIconMini,{[n.collapsed]:r}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon",n.collapseIcon,{[n.collapsed]:r}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})})]})}):e.jsxRuntimeExports.jsxs(g.Link,{to:s.disabled||s.notPermitted?"/":s.linkTo??"/",className:e.classNames("nav-link",n.navButton),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title})]})}),e.jsxRuntimeExports.jsx("div",{className:e.classNames("children-container",n.childrenContainer,{[n.visible]:r}),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("shadow rounded children",n.children),children:(y=s.children)==null?void 0:y.map(o=>e.jsxRuntimeExports.jsx(g.Link,{to:o.disabled||o.notPermitted?"/":o.linkTo??"/",className:e.classNames("nav-link child rounded",n.navButton,n.child,{[a==="disable"?n.disabled:n.hidden]:o.disabled||o.notPermitted},{[a==="disable"?"disabled":"hidden"]:o.disabled||o.notPermitted}),onClick:c,children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:o.title})},o.linkTo))})})]})},H="_side-menu_12rky_1",U="_sidebar-header_12rky_15",W="_side-menu-content_12rky_22",J="_no-top-margin_12rky_28",Q="_expand_12rky_34",V="_only-logo_12rky_38",X="_mobile_12rky_41",Y="_divider_12rky_56",u={"side-menu":"_side-menu_12rky_1",sideMenu:H,"sidebar-header":"_sidebar-header_12rky_15",sidebarHeader:U,"side-menu-content":"_side-menu-content_12rky_22",sideMenuContent:W,"no-top-margin":"_no-top-margin_12rky_28",noTopMargin:J,expand:Q,"only-logo":"_only-logo_12rky_38",onlyLogo:V,mobile:X,divider:Y},Z=14,ee=({headerItem:s,searchItem:i,shortcutsItem:r,mainItems:c,secondaryItems:_,expanded:l,setExpanded:p,currentPath:k,useHover:a,useTooltips:M,disableMode:h="disable"})=>{const[j,R]=x.useState(-1),{checkUserHasPermissions:m}=e.usePermissions(),N=x.useMemo(()=>c.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(b=>({...b,notPermitted:!m(b.permissions??[],"any"),disabled:t.disabled||b.disabled}))}}),[c,m]),v=x.useMemo(()=>_.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(b=>({...b,notPermitted:!m(b.permissions??[],"any")}))}}),[_,m]),E=t=>{R(t===j?-1:t)};x.useEffect(()=>{l||R(-1)},[l]);const y=x.useRef(null);e.useClickOutside([y],()=>p(!1));const{isMobile:o}=e.useWindowSize();return e.jsxRuntimeExports.jsxs("section",{ref:y,className:e.classNames("luminus-side-menu shadow",u.sideMenu,{[u.mobile]:o},{[u.expand]:l},{expand:l}),onMouseEnter:()=>a&&p(!0),onMouseLeave:()=>a&&p(!1),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("sidebar-header",u.sidebarHeader,{[u.onlyLogo]:a}),role:a?void 0:"button",onClick:a?void 0:()=>p(!l),children:a?s:l?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardDoubleArrowLeft,{}),s]}):e.jsxRuntimeExports.jsx(e.MdOutlineMenu,{})}),l&&(i||r)?e.jsxRuntimeExports.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[r&&l?r:null,i&&l?i:null]}):null,e.jsxRuntimeExports.jsxs("ul",{className:e.classNames(u.sideMenuContent,{[u.noTopMargin]:[...N,...v].length>Z}),children:[N.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:l,collapsed:d===j,onCollapse:()=>E(d),currentPath:k,useHover:a,useTooltips:M,isMobile:o,disableMode:h},t.title)),e.jsxRuntimeExports.jsx("hr",{className:e.classNames("divider",u.divider)}),v.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:l,collapsed:d===j,onCollapse:()=>E(d),currentPath:k,useHover:a,useTooltips:M,isMobile:o,disableMode:h},t.title))]})]})},se="_top-bar_lnmq0_1",ne="_top-bar-brand_lnmq0_12",B={"top-bar":"_top-bar_lnmq0_1",topBar:se,"top-bar-brand":"_top-bar-brand_lnmq0_12",topBarBrand:ne},oe=({appName:s,leftOffset:i,leftContent:r,centerContent:c,rightContent:_})=>e.jsxRuntimeExports.jsx("nav",{className:e.classNames("luminus-top-bar shadow",B.topBar),style:{width:i?`calc(100% - ${i}px)`:void 0,left:i?`${i}px`:void 0},children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 row g-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[e.jsxRuntimeExports.jsx(g.Link,{to:"/",className:e.classNames("luminus-top-bar-brand",B.topBarBrand),children:s}),r]}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex align-items-center",children:c??null}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:_??null})]})});exports.PageContainer=e.PageContainer;exports.SideContentBar=e.SideContentBar;exports.SideMenu=ee;exports.TopBar=oe;