react-luminus-components 2.0.3-beta.r19-15 → 2.0.3-beta.r19-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +42 -36
- package/dist/FormDisabledProvider-DXNc2136.js +51 -0
- package/dist/FormDisabledProvider-vg-vA0WK.cjs +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +535 -288
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +194 -125
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +277 -131
- package/dist/{localStorageUtils-B7BmbR_u.js → localStorageUtils-CZ4HDRzi.js} +17 -7
- package/dist/main.cjs.js +13 -13
- package/dist/main.es.js +10407 -5547
- package/dist/nivo-bar-BZDK_ha3.js +41897 -0
- package/dist/nivo-bar-D02kyst9.cjs +326 -0
- package/dist/useEmployeePhotoPath-TFR1dZzz.cjs +1 -0
- package/dist/useEmployeePhotoPath-_slBRHnm.js +111 -0
- package/dist/useLocalStorageState-B0hJPCtQ.cjs +1 -0
- package/dist/useLocalStorageState-DcSLbUf2.js +96 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +41 -69
- package/package.json +2 -1
- package/dist/FormDisabledProvider-B62seaHO.cjs +0 -1
- package/dist/FormDisabledProvider-qklvful2.js +0 -40
- package/dist/nivo-bar-C5h-CRYO.cjs +0 -306
- package/dist/nivo-bar-FuUHRilH.js +0 -40076
- package/dist/useEmployeePhotoPath-DdMmh1qU.js +0 -65
- package/dist/useEmployeePhotoPath-Q0EhpWOh.cjs +0 -1
- package/dist/useLocalStorageState-BWVTT0cO.js +0 -80
- package/dist/useLocalStorageState-iaJubQoG.cjs +0 -1
package/dist/layout.es.js
CHANGED
|
@@ -1,144 +1,290 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Link as
|
|
1
|
+
import { jsxs as B, jsx as i, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { aR as de, a as u, $ as le, c as te, aE as me, bw as pe, aG as ue, bH as fe, bI as _e } from "./nivo-bar-BZDK_ha3.js";
|
|
3
|
+
import { aC as ot, bJ as it } from "./nivo-bar-BZDK_ha3.js";
|
|
4
|
+
import { useState as ae, useRef as re, useEffect as he } from "react";
|
|
5
|
+
import { Link as ee } from "react-router";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import "react-flexmonster";
|
|
8
8
|
import "@azure/msal-browser";
|
|
9
9
|
import "@azure/msal-react";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "react-dom";
|
|
12
|
-
const
|
|
13
|
-
sideMenuItem:
|
|
14
|
-
disabled:
|
|
15
|
-
hidden:
|
|
16
|
-
navButton:
|
|
17
|
-
child:
|
|
18
|
-
text:
|
|
19
|
-
icon:
|
|
20
|
-
collapseIcon:
|
|
21
|
-
collapsed:
|
|
22
|
-
collapseIconMini:
|
|
23
|
-
expanded:
|
|
24
|
-
childrenContainer:
|
|
25
|
-
visible:
|
|
26
|
-
children:
|
|
27
|
-
mobile:
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
const be = "_side-menu-item_o72rm_1", ve = "_disabled_o72rm_6", xe = "_hidden_o72rm_10", ye = "_nav-button_o72rm_13", Me = "_child_o72rm_21", Ne = "_text_o72rm_26", Ie = "_icon_o72rm_36", ke = "_collapse-icon_o72rm_42", ge = "_collapsed_o72rm_52", Ce = "_collapse-icon-mini_o72rm_55", Pe = "_expanded_o72rm_86", Be = "_children-container_o72rm_92", we = "_visible_o72rm_100", Te = "_children_o72rm_92", Se = "_mobile_o72rm_112", r = {
|
|
13
|
+
sideMenuItem: be,
|
|
14
|
+
disabled: ve,
|
|
15
|
+
hidden: xe,
|
|
16
|
+
navButton: ye,
|
|
17
|
+
child: Me,
|
|
18
|
+
text: Ne,
|
|
19
|
+
icon: Ie,
|
|
20
|
+
collapseIcon: ke,
|
|
21
|
+
collapsed: ge,
|
|
22
|
+
collapseIconMini: Ce,
|
|
23
|
+
expanded: Pe,
|
|
24
|
+
childrenContainer: Be,
|
|
25
|
+
visible: we,
|
|
26
|
+
children: Te,
|
|
27
|
+
mobile: Se
|
|
28
|
+
}, He = (s) => {
|
|
29
|
+
const e = te.c(6), {
|
|
30
|
+
item: m,
|
|
31
|
+
menuExpanded: h,
|
|
32
|
+
useTooltips: x,
|
|
33
|
+
children: N
|
|
34
|
+
} = s;
|
|
35
|
+
if (m.tooltip && !h && x) {
|
|
36
|
+
let I;
|
|
37
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
38
|
+
show: 1e3,
|
|
39
|
+
hide: 0
|
|
40
|
+
}, e[0] = I) : I = e[0];
|
|
41
|
+
let t;
|
|
42
|
+
e[1] !== N ? (t = /* @__PURE__ */ i("div", { children: N }), e[1] = N, e[2] = t) : t = e[2];
|
|
43
|
+
let d;
|
|
44
|
+
return e[3] !== m.tooltip || e[4] !== t ? (d = /* @__PURE__ */ i(me, { text: m.tooltip, placement: "top", delay: I, children: t }), e[3] = m.tooltip, e[4] = t, e[5] = d) : d = e[5], d;
|
|
45
|
+
}
|
|
46
|
+
return N;
|
|
47
|
+
}, se = ({
|
|
48
|
+
item: s,
|
|
49
|
+
menuExpanded: e,
|
|
50
|
+
collapsed: m,
|
|
51
|
+
onCollapse: h,
|
|
52
|
+
currentPath: x,
|
|
53
|
+
useHover: N,
|
|
54
|
+
useTooltips: I,
|
|
55
|
+
isMobile: t,
|
|
56
|
+
disableMode: d
|
|
57
|
+
}) => {
|
|
58
|
+
var c, y, p, v;
|
|
59
|
+
const [b, n] = ae(!1), [f] = x.split("?"), k = s.linkTo === f || ((c = s.children) == null ? void 0 : c.some((l) => l.linkTo === f)), a = re(null);
|
|
60
|
+
return de([a], () => m && h()), /* @__PURE__ */ B("li", { ref: a, className: u("luminus-side-menu-item", r.sideMenuItem, {
|
|
61
|
+
[r.mobile]: t
|
|
35
62
|
}, {
|
|
36
|
-
[
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
63
|
+
[r.expanded]: e
|
|
64
|
+
}, {
|
|
65
|
+
active: b || k
|
|
66
|
+
}, {
|
|
67
|
+
open: m && s.children
|
|
68
|
+
}, {
|
|
69
|
+
[d === "disable" ? r.disabled : r.hidden]: s.disabled || s.notPermitted || ((y = s.children) == null ? void 0 : y.every((l) => l.notPermitted || l.disabled))
|
|
70
|
+
}, {
|
|
71
|
+
[d === "disable" ? "disabled" : "hidden"]: s.disabled || s.notPermitted || ((p = s.children) == null ? void 0 : p.every((l) => l.notPermitted || l.disabled))
|
|
72
|
+
}), onMouseEnter: () => n(!0), onMouseLeave: () => n(!1), children: [
|
|
73
|
+
/* @__PURE__ */ i(He, { item: s, menuExpanded: e, useTooltips: I, children: s.children ? /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ B("button", { type: "button", className: u("nav-link", r.navButton), onClick: () => {
|
|
74
|
+
h();
|
|
40
75
|
}, children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
!
|
|
43
|
-
[
|
|
44
|
-
}), children: /* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
[
|
|
48
|
-
}), children: /* @__PURE__ */
|
|
49
|
-
] }) }) : /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
76
|
+
/* @__PURE__ */ i("div", { className: u("icon", r.icon), children: s.icon }),
|
|
77
|
+
!N && !e && /* @__PURE__ */ i("div", { className: u("collapse-icon-mini rounded", r.collapseIconMini, {
|
|
78
|
+
[r.collapsed]: m
|
|
79
|
+
}), children: /* @__PURE__ */ i(le, {}) }),
|
|
80
|
+
e && /* @__PURE__ */ i("div", { className: u("text", r.text, "text-nowrap"), children: s.title }),
|
|
81
|
+
e && /* @__PURE__ */ i("div", { className: u("collapse-icon", r.collapseIcon, {
|
|
82
|
+
[r.collapsed]: m
|
|
83
|
+
}), children: /* @__PURE__ */ i(le, {}) })
|
|
84
|
+
] }) }) : /* @__PURE__ */ B(ee, { to: s.disabled || s.notPermitted ? "/" : s.linkTo ?? "/", className: u("nav-link", r.navButton), children: [
|
|
85
|
+
/* @__PURE__ */ i("div", { className: u("icon", r.icon), children: s.icon }),
|
|
86
|
+
e && /* @__PURE__ */ i("div", { className: u("text", r.text, "text-nowrap"), children: s.title })
|
|
52
87
|
] }) }),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
[
|
|
55
|
-
}), children: /* @__PURE__ */
|
|
56
|
-
[
|
|
88
|
+
/* @__PURE__ */ i("div", { className: u("children-container", r.childrenContainer, {
|
|
89
|
+
[r.visible]: m
|
|
90
|
+
}), children: /* @__PURE__ */ i("div", { className: u("shadow rounded children", r.children), children: (v = s.children) == null ? void 0 : v.map((l) => /* @__PURE__ */ i(ee, { to: l.disabled || l.notPermitted ? "/" : l.linkTo ?? "/", className: u("nav-link child rounded", r.navButton, r.child, {
|
|
91
|
+
[d === "disable" ? r.disabled : r.hidden]: l.disabled || l.notPermitted
|
|
57
92
|
}, {
|
|
58
|
-
[
|
|
59
|
-
}), onClick:
|
|
60
|
-
] });
|
|
61
|
-
}, le = "_side-menu_12rky_1", te = "_sidebar-header_12rky_15", re = "_side-menu-content_12rky_22", ae = "_no-top-margin_12rky_28", de = "_expand_12rky_34", ce = "_only-logo_12rky_38", me = "_mobile_12rky_41", _e = "_divider_12rky_56", b = {
|
|
62
|
-
sideMenu: le,
|
|
63
|
-
sidebarHeader: te,
|
|
64
|
-
sideMenuContent: re,
|
|
65
|
-
noTopMargin: ae,
|
|
66
|
-
expand: de,
|
|
67
|
-
onlyLogo: ce,
|
|
68
|
-
mobile: me,
|
|
69
|
-
divider: _e
|
|
70
|
-
}, pe = 14, Be = ({ headerItem: e, searchItem: t, shortcutsItem: a, mainItems: m, secondaryItems: v, expanded: d, setExpanded: N, currentPath: P, useHover: c, useTooltips: B, disableMode: h = "disable" }) => {
|
|
71
|
-
const [y, f] = A(-1), { checkUserHasPermissions: _ } = D(), M = w(() => m.map((i) => {
|
|
72
|
-
var r;
|
|
73
|
-
return {
|
|
74
|
-
...i,
|
|
75
|
-
notPermitted: !_(i.permissions ?? [], "any"),
|
|
76
|
-
children: (r = i.children) == null ? void 0 : r.map((p) => ({
|
|
77
|
-
...p,
|
|
78
|
-
notPermitted: !_(p.permissions ?? [], "any"),
|
|
79
|
-
disabled: i.disabled || p.disabled
|
|
80
|
-
}))
|
|
81
|
-
};
|
|
82
|
-
}), [m, _]), k = w(() => v.map((i) => {
|
|
83
|
-
var r;
|
|
84
|
-
return {
|
|
85
|
-
...i,
|
|
86
|
-
notPermitted: !_(i.permissions ?? [], "any"),
|
|
87
|
-
children: (r = i.children) == null ? void 0 : r.map((p) => ({
|
|
88
|
-
...p,
|
|
89
|
-
notPermitted: !_(p.permissions ?? [], "any")
|
|
90
|
-
}))
|
|
91
|
-
};
|
|
92
|
-
}), [v, _]), g = (i) => {
|
|
93
|
-
f(i === y ? -1 : i);
|
|
94
|
-
};
|
|
95
|
-
H(() => {
|
|
96
|
-
d || f(-1);
|
|
97
|
-
}, [d]);
|
|
98
|
-
const x = O(null);
|
|
99
|
-
$([x], () => N(!1));
|
|
100
|
-
const s = w(() => [...M, ...k].filter((i) => {
|
|
101
|
-
var r;
|
|
102
|
-
return h === "hide" ? !i.disabled && !i.notPermitted && (((r = i.children) == null ? void 0 : r.filter((p) => !p.disabled && !p.notPermitted)) ?? []).length > 0 : !0;
|
|
103
|
-
}), [M, k, h]), { isMobile: C } = q();
|
|
104
|
-
return /* @__PURE__ */ u("section", { ref: x, className: l("luminus-side-menu shadow", b.sideMenu, { [b.mobile]: C }, {
|
|
105
|
-
[b.expand]: d
|
|
106
|
-
}, { expand: d }), onMouseEnter: () => c && N(!0), onMouseLeave: () => c && N(!1), children: [
|
|
107
|
-
/* @__PURE__ */ n("div", { className: l("sidebar-header", b.sidebarHeader, {
|
|
108
|
-
[b.onlyLogo]: c
|
|
109
|
-
}), role: c ? void 0 : "button", onClick: c ? void 0 : () => N(!d), children: c ? e : d ? /* @__PURE__ */ u(S, { children: [
|
|
110
|
-
/* @__PURE__ */ n(F, {}),
|
|
111
|
-
e
|
|
112
|
-
] }) : /* @__PURE__ */ n(G, {}) }),
|
|
113
|
-
d && (t || a) ? /* @__PURE__ */ u("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
114
|
-
a && d ? a : null,
|
|
115
|
-
t && d ? t : null
|
|
116
|
-
] }) : null,
|
|
117
|
-
/* @__PURE__ */ u("ul", { className: l(b.sideMenuContent, {
|
|
118
|
-
[b.noTopMargin]: s.length > pe
|
|
119
|
-
}), children: [
|
|
120
|
-
M.map((i, r) => /* @__PURE__ */ n(L, { item: i, menuExpanded: d, collapsed: r === y, onCollapse: () => g(r), currentPath: P, useHover: c, useTooltips: B, isMobile: C, disableMode: h }, i.title)),
|
|
121
|
-
/* @__PURE__ */ n("hr", { className: l("divider", b.divider) }),
|
|
122
|
-
k.map((i, r) => /* @__PURE__ */ n(L, { item: i, menuExpanded: d, collapsed: r === y, onCollapse: () => g(r), currentPath: P, useHover: c, useTooltips: B, isMobile: C, disableMode: h }, i.title))
|
|
123
|
-
] })
|
|
93
|
+
[d === "disable" ? "disabled" : "hidden"]: l.disabled || l.notPermitted
|
|
94
|
+
}), onClick: h, children: /* @__PURE__ */ i("div", { className: u("text", r.text, "text-nowrap"), children: l.title }) }, l.linkTo)) }) })
|
|
124
95
|
] });
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
96
|
+
}, Re = "_side-menu_12rky_1", $e = "_sidebar-header_12rky_15", Le = "_side-menu-content_12rky_22", Oe = "_no-top-margin_12rky_28", Ee = "_expand_12rky_34", Ae = "_only-logo_12rky_38", je = "_mobile_12rky_41", qe = "_divider_12rky_56", w = {
|
|
97
|
+
sideMenu: Re,
|
|
98
|
+
sidebarHeader: $e,
|
|
99
|
+
sideMenuContent: Le,
|
|
100
|
+
noTopMargin: Oe,
|
|
101
|
+
expand: Ee,
|
|
102
|
+
onlyLogo: Ae,
|
|
103
|
+
mobile: je,
|
|
104
|
+
divider: qe
|
|
105
|
+
}, De = 14, tt = (s) => {
|
|
106
|
+
const e = te.c(100), {
|
|
107
|
+
headerItem: m,
|
|
108
|
+
searchItem: h,
|
|
109
|
+
shortcutsItem: x,
|
|
110
|
+
mainItems: N,
|
|
111
|
+
secondaryItems: I,
|
|
112
|
+
expanded: t,
|
|
113
|
+
setExpanded: d,
|
|
114
|
+
currentPath: b,
|
|
115
|
+
useHover: n,
|
|
116
|
+
useTooltips: f,
|
|
117
|
+
disableMode: k
|
|
118
|
+
} = s, a = k === void 0 ? "disable" : k, [c, y] = ae(-1), {
|
|
119
|
+
checkUserHasPermissions: p
|
|
120
|
+
} = pe();
|
|
121
|
+
let v;
|
|
122
|
+
if (e[0] !== p || e[1] !== N) {
|
|
123
|
+
let o;
|
|
124
|
+
e[3] !== p ? (o = (_) => {
|
|
125
|
+
var g;
|
|
126
|
+
return {
|
|
127
|
+
..._,
|
|
128
|
+
notPermitted: !p(_.permissions ?? [], "any"),
|
|
129
|
+
children: (g = _.children) == null ? void 0 : g.map((K) => ({
|
|
130
|
+
...K,
|
|
131
|
+
notPermitted: !p(K.permissions ?? [], "any"),
|
|
132
|
+
disabled: _.disabled || K.disabled
|
|
133
|
+
}))
|
|
134
|
+
};
|
|
135
|
+
}, e[3] = p, e[4] = o) : o = e[4], v = N.map(o), e[0] = p, e[1] = N, e[2] = v;
|
|
136
|
+
} else
|
|
137
|
+
v = e[2];
|
|
138
|
+
const l = v;
|
|
139
|
+
let P;
|
|
140
|
+
if (e[5] !== p || e[6] !== I) {
|
|
141
|
+
let o;
|
|
142
|
+
e[8] !== p ? (o = (_) => {
|
|
143
|
+
var g;
|
|
144
|
+
return {
|
|
145
|
+
..._,
|
|
146
|
+
notPermitted: !p(_.permissions ?? [], "any"),
|
|
147
|
+
children: (g = _.children) == null ? void 0 : g.map((K) => ({
|
|
148
|
+
...K,
|
|
149
|
+
notPermitted: !p(K.permissions ?? [], "any")
|
|
150
|
+
}))
|
|
151
|
+
};
|
|
152
|
+
}, e[8] = p, e[9] = o) : o = e[9], P = I.map(o), e[5] = p, e[6] = I, e[7] = P;
|
|
153
|
+
} else
|
|
154
|
+
P = e[7];
|
|
155
|
+
const T = P;
|
|
156
|
+
let z;
|
|
157
|
+
e[10] !== c ? (z = (o) => {
|
|
158
|
+
y(o === c ? -1 : o);
|
|
159
|
+
}, e[10] = c, e[11] = z) : z = e[11];
|
|
160
|
+
const C = z;
|
|
161
|
+
let F, J;
|
|
162
|
+
e[12] !== t ? (F = () => {
|
|
163
|
+
t || y(-1);
|
|
164
|
+
}, J = [t], e[12] = t, e[13] = F, e[14] = J) : (F = e[13], J = e[14]), he(F, J);
|
|
165
|
+
const ne = re(null);
|
|
166
|
+
let U;
|
|
167
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (U = [ne], e[15] = U) : U = e[15];
|
|
168
|
+
let W;
|
|
169
|
+
e[16] !== d ? (W = () => d(!1), e[16] = d, e[17] = W) : W = e[17], de(U, W);
|
|
170
|
+
let Q;
|
|
171
|
+
e[18] !== a || e[19] !== l || e[20] !== T ? (Q = [...l, ...T].filter((o) => {
|
|
172
|
+
var _;
|
|
173
|
+
return a === "hide" ? !o.disabled && !o.notPermitted && (((_ = o.children) == null ? void 0 : _.filter(Ge)) ?? []).length > 0 : !0;
|
|
174
|
+
}), e[18] = a, e[19] = l, e[20] = T, e[21] = Q) : Q = e[21];
|
|
175
|
+
const ce = Q, {
|
|
176
|
+
isMobile: M
|
|
177
|
+
} = ue();
|
|
178
|
+
let S;
|
|
179
|
+
e[22] !== t || e[23] !== M ? (S = u("luminus-side-menu shadow", w.sideMenu, {
|
|
180
|
+
[w.mobile]: M
|
|
181
|
+
}, {
|
|
182
|
+
[w.expand]: t
|
|
183
|
+
}, {
|
|
184
|
+
expand: t
|
|
185
|
+
}), e[22] = t, e[23] = M, e[24] = S) : S = e[24];
|
|
186
|
+
let H, R;
|
|
187
|
+
e[25] !== d || e[26] !== n ? (H = () => n && d(!0), R = () => n && d(!1), e[25] = d, e[26] = n, e[27] = H, e[28] = R) : (H = e[27], R = e[28]);
|
|
188
|
+
let $;
|
|
189
|
+
e[29] !== n ? ($ = u("sidebar-header", w.sidebarHeader, {
|
|
190
|
+
[w.onlyLogo]: n
|
|
191
|
+
}), e[29] = n, e[30] = $) : $ = e[30];
|
|
192
|
+
const Y = n ? void 0 : "button";
|
|
193
|
+
let L;
|
|
194
|
+
e[31] !== t || e[32] !== d || e[33] !== n ? (L = n ? void 0 : () => d(!t), e[31] = t, e[32] = d, e[33] = n, e[34] = L) : L = e[34];
|
|
195
|
+
let O;
|
|
196
|
+
e[35] !== t || e[36] !== m || e[37] !== n ? (O = n ? m : t ? /* @__PURE__ */ B(ie, { children: [
|
|
197
|
+
/* @__PURE__ */ i(fe, {}),
|
|
198
|
+
m
|
|
199
|
+
] }) : /* @__PURE__ */ i(_e, {}), e[35] = t, e[36] = m, e[37] = n, e[38] = O) : O = e[38];
|
|
200
|
+
let E;
|
|
201
|
+
e[39] !== $ || e[40] !== Y || e[41] !== L || e[42] !== O ? (E = /* @__PURE__ */ i("div", { className: $, role: Y, onClick: L, children: O }), e[39] = $, e[40] = Y, e[41] = L, e[42] = O, e[43] = E) : E = e[43];
|
|
202
|
+
let A;
|
|
203
|
+
e[44] !== t || e[45] !== h || e[46] !== x ? (A = t && (h || x) ? /* @__PURE__ */ B("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
204
|
+
x && t ? x : null,
|
|
205
|
+
h && t ? h : null
|
|
206
|
+
] }) : null, e[44] = t, e[45] = h, e[46] = x, e[47] = A) : A = e[47];
|
|
207
|
+
const Z = ce.length > De;
|
|
208
|
+
let j;
|
|
209
|
+
e[48] !== Z ? (j = u(w.sideMenuContent, {
|
|
210
|
+
[w.noTopMargin]: Z
|
|
211
|
+
}), e[48] = Z, e[49] = j) : j = e[49];
|
|
212
|
+
let q;
|
|
213
|
+
if (e[50] !== c || e[51] !== b || e[52] !== a || e[53] !== t || e[54] !== M || e[55] !== l || e[56] !== C || e[57] !== n || e[58] !== f) {
|
|
214
|
+
let o;
|
|
215
|
+
e[60] !== c || e[61] !== b || e[62] !== a || e[63] !== t || e[64] !== M || e[65] !== C || e[66] !== n || e[67] !== f ? (o = (_, g) => /* @__PURE__ */ i(se, { item: _, menuExpanded: t, collapsed: g === c, onCollapse: () => C(g), currentPath: b, useHover: n, useTooltips: f, isMobile: M, disableMode: a }, _.title), e[60] = c, e[61] = b, e[62] = a, e[63] = t, e[64] = M, e[65] = C, e[66] = n, e[67] = f, e[68] = o) : o = e[68], q = l.map(o), e[50] = c, e[51] = b, e[52] = a, e[53] = t, e[54] = M, e[55] = l, e[56] = C, e[57] = n, e[58] = f, e[59] = q;
|
|
216
|
+
} else
|
|
217
|
+
q = e[59];
|
|
218
|
+
let V;
|
|
219
|
+
e[69] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ i("hr", { className: u("divider", w.divider) }), e[69] = V) : V = e[69];
|
|
220
|
+
let D;
|
|
221
|
+
if (e[70] !== c || e[71] !== b || e[72] !== a || e[73] !== t || e[74] !== M || e[75] !== C || e[76] !== T || e[77] !== n || e[78] !== f) {
|
|
222
|
+
let o;
|
|
223
|
+
e[80] !== c || e[81] !== b || e[82] !== a || e[83] !== t || e[84] !== M || e[85] !== C || e[86] !== n || e[87] !== f ? (o = (_, g) => /* @__PURE__ */ i(se, { item: _, menuExpanded: t, collapsed: g === c, onCollapse: () => C(g), currentPath: b, useHover: n, useTooltips: f, isMobile: M, disableMode: a }, _.title), e[80] = c, e[81] = b, e[82] = a, e[83] = t, e[84] = M, e[85] = C, e[86] = n, e[87] = f, e[88] = o) : o = e[88], D = T.map(o), e[70] = c, e[71] = b, e[72] = a, e[73] = t, e[74] = M, e[75] = C, e[76] = T, e[77] = n, e[78] = f, e[79] = D;
|
|
224
|
+
} else
|
|
225
|
+
D = e[79];
|
|
226
|
+
let G;
|
|
227
|
+
e[89] !== j || e[90] !== q || e[91] !== D ? (G = /* @__PURE__ */ B("ul", { className: j, children: [
|
|
228
|
+
q,
|
|
229
|
+
V,
|
|
230
|
+
D
|
|
231
|
+
] }), e[89] = j, e[90] = q, e[91] = D, e[92] = G) : G = e[92];
|
|
232
|
+
let X;
|
|
233
|
+
return e[93] !== S || e[94] !== H || e[95] !== R || e[96] !== E || e[97] !== A || e[98] !== G ? (X = /* @__PURE__ */ B("section", { ref: ne, className: S, onMouseEnter: H, onMouseLeave: R, children: [
|
|
234
|
+
E,
|
|
235
|
+
A,
|
|
236
|
+
G
|
|
237
|
+
] }), e[93] = S, e[94] = H, e[95] = R, e[96] = E, e[97] = A, e[98] = G, e[99] = X) : X = e[99], X;
|
|
238
|
+
};
|
|
239
|
+
function Ge(s) {
|
|
240
|
+
return !s.disabled && !s.notPermitted;
|
|
241
|
+
}
|
|
242
|
+
const Ke = "_top-bar_lnmq0_1", ze = "_top-bar-brand_lnmq0_12", oe = {
|
|
243
|
+
topBar: Ke,
|
|
244
|
+
topBarBrand: ze
|
|
245
|
+
}, nt = (s) => {
|
|
246
|
+
const e = te.c(21), {
|
|
247
|
+
appName: m,
|
|
248
|
+
leftOffset: h,
|
|
249
|
+
leftContent: x,
|
|
250
|
+
centerContent: N,
|
|
251
|
+
rightContent: I
|
|
252
|
+
} = s;
|
|
253
|
+
let t;
|
|
254
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = u("luminus-top-bar shadow", oe.topBar), e[0] = t) : t = e[0];
|
|
255
|
+
const d = h ? `calc(100% - ${h}px)` : void 0, b = h ? `${h}px` : void 0;
|
|
256
|
+
let n;
|
|
257
|
+
e[1] !== d || e[2] !== b ? (n = {
|
|
258
|
+
width: d,
|
|
259
|
+
left: b
|
|
260
|
+
}, e[1] = d, e[2] = b, e[3] = n) : n = e[3];
|
|
261
|
+
let f;
|
|
262
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (f = u("luminus-top-bar-brand", oe.topBarBrand), e[4] = f) : f = e[4];
|
|
263
|
+
let k;
|
|
264
|
+
e[5] !== m ? (k = /* @__PURE__ */ i(ee, { to: "/", className: f, children: m }), e[5] = m, e[6] = k) : k = e[6];
|
|
265
|
+
let a;
|
|
266
|
+
e[7] !== x || e[8] !== k ? (a = /* @__PURE__ */ B("div", { className: "col-4 d-flex gap-3 align-items-center", children: [
|
|
267
|
+
k,
|
|
268
|
+
x
|
|
269
|
+
] }), e[7] = x, e[8] = k, e[9] = a) : a = e[9];
|
|
270
|
+
const c = N ?? null;
|
|
271
|
+
let y;
|
|
272
|
+
e[10] !== c ? (y = /* @__PURE__ */ i("div", { className: "col-4 d-flex align-items-center", children: c }), e[10] = c, e[11] = y) : y = e[11];
|
|
273
|
+
const p = I ?? null;
|
|
274
|
+
let v;
|
|
275
|
+
e[12] !== p ? (v = /* @__PURE__ */ i("div", { className: "col-4 d-flex justify-content-end align-items-center", children: p }), e[12] = p, e[13] = v) : v = e[13];
|
|
276
|
+
let l;
|
|
277
|
+
e[14] !== v || e[15] !== a || e[16] !== y ? (l = /* @__PURE__ */ B("div", { className: "w-100 row g-0", children: [
|
|
278
|
+
a,
|
|
279
|
+
y,
|
|
280
|
+
v
|
|
281
|
+
] }), e[14] = v, e[15] = a, e[16] = y, e[17] = l) : l = e[17];
|
|
282
|
+
let P;
|
|
283
|
+
return e[18] !== l || e[19] !== n ? (P = /* @__PURE__ */ i("nav", { className: t, style: n, children: l }), e[18] = l, e[19] = n, e[20] = P) : P = e[20], P;
|
|
284
|
+
};
|
|
139
285
|
export {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
286
|
+
ot as PageContainer,
|
|
287
|
+
it as SideContentBar,
|
|
288
|
+
tt as SideMenu,
|
|
289
|
+
nt as TopBar
|
|
144
290
|
};
|
|
@@ -17,16 +17,26 @@ const l = (r, t, o = !0) => Object.keys(r).reduce((e, n) => {
|
|
|
17
17
|
}, {}), f = (r, t) => {
|
|
18
18
|
const o = t != null && t.query ? new URLSearchParams(l(t.query, (e) => (e == null ? void 0 : e.toString()) ?? "")) : null;
|
|
19
19
|
return `${u(r, t != null && t.path ? l(t.path, (e) => (e == null ? void 0 : e.toString()) ?? null) : void 0)}${o && o.size > 0 ? `?${o.toString()}` : ""}`;
|
|
20
|
-
}, s = [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
}, s = [{
|
|
21
|
+
key: "msal",
|
|
22
|
+
mode: "includes"
|
|
23
|
+
}, {
|
|
24
|
+
key: "token",
|
|
25
|
+
mode: "exact"
|
|
26
|
+
}, {
|
|
27
|
+
key: "user",
|
|
28
|
+
mode: "exact"
|
|
29
|
+
}, {
|
|
30
|
+
key: "user-delegation",
|
|
31
|
+
mode: "exact"
|
|
32
|
+
}], d = (r = !0) => {
|
|
26
33
|
const t = {};
|
|
27
34
|
for (let o = 0; o < localStorage.length; o++) {
|
|
28
35
|
const e = localStorage.key(o);
|
|
29
|
-
if (e && !(r && s.some(({
|
|
36
|
+
if (e && !(r && s.some(({
|
|
37
|
+
key: n,
|
|
38
|
+
mode: c
|
|
39
|
+
}) => c === "includes" ? e.includes(n) : e === n)))
|
|
30
40
|
try {
|
|
31
41
|
t[e] = JSON.parse(localStorage.getItem(e));
|
|
32
42
|
} catch {
|