react-luminus-components 1.3.247 → 1.3.248
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/README.md +349 -349
- package/dist/.vite/manifest.json +36 -36
- package/dist/{Loading-BOYTi6Bj.js → Loading-Cr9LRUvA.js} +1 -1
- package/dist/Loading-D7DKSlwq.cjs +1 -0
- package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +3 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +69 -69
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +28 -28
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +19 -19
- package/dist/main.cjs.js +50 -50
- package/dist/main.es.js +9117 -9119
- package/dist/nivo-bar.es-CJ3lbXnG.cjs +279 -0
- package/dist/{ShortcutLinksContext-BT5BrTEk.js → nivo-bar.es-bHUKcCZ-.js} +12293 -12289
- package/dist/style.css +1 -1
- package/dist/{useGetApiData-DqGW6vK6.js → useGetApiData-D98eaVmN.js} +3 -3
- package/dist/useGetApiData-Drdk3gEB.cjs +1 -0
- package/dist/usePermissions-BnlHINds.cjs +1 -0
- package/dist/{usePermissions-DyXgE7Q-.js → usePermissions-JgJ9f4tm.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +12 -12
- package/dist/variables.scss +165 -165
- package/package.json +121 -121
- package/dist/Loading-BdQoiX9B.cjs +0 -1
- package/dist/ShortcutLinksContext-3Pe5e-WH.cjs +0 -279
- package/dist/useGetApiData-DUBgxAX9.cjs +0 -1
- package/dist/usePermissions-01Ob594E.cjs +0 -1
package/dist/contexts.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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
|
|
5
|
-
import {
|
|
6
|
-
import O, { useState as b, useCallback as m, useMemo as C, useContext as _, useEffect as
|
|
7
|
-
import { EventType as
|
|
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";
|
|
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
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
13
|
+
import { L as ze } from "./Loading-Cr9LRUvA.js";
|
|
14
|
+
import { u as Ge } from "./useGetApiData-D98eaVmN.js";
|
|
15
|
+
import { u as qe } from "./useLocalStorageState-Bt99kkCr.js";
|
|
16
16
|
function Ke(e) {
|
|
17
17
|
const t = N(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ve() {
|
|
21
21
|
return Ke(Date.now());
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Be(e, t) {
|
|
24
24
|
const r = +N(e), [n, s] = [
|
|
25
25
|
+N(t.start),
|
|
26
26
|
+N(t.end)
|
|
@@ -30,7 +30,7 @@ function Ve(e, t) {
|
|
|
30
30
|
function Ye() {
|
|
31
31
|
return Oe(Date.now());
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const Je = ({ children: e }) => {
|
|
34
34
|
const [t, r] = b(!1), [n, s] = b(""), o = m((c) => {
|
|
35
35
|
r(!0), s(c);
|
|
36
36
|
}, []), l = m(() => {
|
|
@@ -40,13 +40,13 @@ const We = ({ children: e }) => {
|
|
|
40
40
|
/* @__PURE__ */ f.jsx(Et, {}),
|
|
41
41
|
e
|
|
42
42
|
] });
|
|
43
|
-
},
|
|
44
|
-
const { texts: { confirm: e } } = _(
|
|
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(() => {
|
|
45
45
|
n(null);
|
|
46
46
|
}, [n]), c = m((u) => {
|
|
47
47
|
u.preventDefault(), !(s.required && !o) && n(o);
|
|
48
48
|
}, [n, s.required, o]);
|
|
49
|
-
|
|
49
|
+
j(() => {
|
|
50
50
|
t === !0 && l(s.defaultValue ?? "");
|
|
51
51
|
}, [t, s.defaultValue]);
|
|
52
52
|
const i = C(() => ({
|
|
@@ -64,12 +64,12 @@ const We = ({ children: e }) => {
|
|
|
64
64
|
s.input === "input" ? /* @__PURE__ */ f.jsx(Pe, { ...i, type: s.type }) : void 0
|
|
65
65
|
] }),
|
|
66
66
|
/* @__PURE__ */ f.jsxs(S.Footer, { className: "w-100 d-flex gap-5", children: [
|
|
67
|
-
/* @__PURE__ */ f.jsx(
|
|
68
|
-
/* @__PURE__ */ f.jsx(
|
|
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 })
|
|
69
69
|
] })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
|
-
},
|
|
72
|
+
}, We = ({ children: e }) => {
|
|
73
73
|
const [t, r] = b(!1), [n, s] = b(""), [o, l] = b({ input: "textarea", type: "text" }), a = he(() => {
|
|
74
74
|
}), c = m((d) => {
|
|
75
75
|
s(d), r(!0);
|
|
@@ -86,7 +86,7 @@ const We = ({ children: e }) => {
|
|
|
86
86
|
}), [t, n, c, i, o]);
|
|
87
87
|
return /* @__PURE__ */ f.jsxs(fe.Provider, { value: u, children: [
|
|
88
88
|
e,
|
|
89
|
-
/* @__PURE__ */ f.jsx(
|
|
89
|
+
/* @__PURE__ */ f.jsx(Qe, {})
|
|
90
90
|
] });
|
|
91
91
|
}, Rt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
|
|
92
92
|
const c = C(() => ({
|
|
@@ -106,8 +106,8 @@ const We = ({ children: e }) => {
|
|
|
106
106
|
n,
|
|
107
107
|
l
|
|
108
108
|
]);
|
|
109
|
-
return /* @__PURE__ */ f.jsx(
|
|
110
|
-
/* @__PURE__ */ f.jsx(
|
|
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, {}),
|
|
111
111
|
a
|
|
112
112
|
] }) }) });
|
|
113
113
|
}, Ut = ({ children: e }) => {
|
|
@@ -116,8 +116,8 @@ const We = ({ children: e }) => {
|
|
|
116
116
|
}, [n]), o = m((a) => {
|
|
117
117
|
n.delete(a), n.size === 0 && r(!1);
|
|
118
118
|
}, [n]), l = C(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
|
|
119
|
-
return /* @__PURE__ */ f.jsxs(
|
|
120
|
-
t && /* @__PURE__ */ f.jsx(
|
|
119
|
+
return /* @__PURE__ */ f.jsxs(De.Provider, { value: l, children: [
|
|
120
|
+
t && /* @__PURE__ */ f.jsx(ze, {}),
|
|
121
121
|
e
|
|
122
122
|
] });
|
|
123
123
|
}, Nt = ({ children: e }) => {
|
|
@@ -125,14 +125,14 @@ const We = ({ children: e }) => {
|
|
|
125
125
|
const y = await a();
|
|
126
126
|
y && i(y.token);
|
|
127
127
|
}, [a]);
|
|
128
|
-
|
|
128
|
+
j(() => {
|
|
129
129
|
u();
|
|
130
130
|
}, [u]);
|
|
131
131
|
const h = m(() => {
|
|
132
132
|
const y = localStorage.getItem("user") ?? null;
|
|
133
133
|
return y ? JSON.parse(y ?? "") : null;
|
|
134
134
|
}, [])(), [p, g] = b({
|
|
135
|
-
state: h ?
|
|
135
|
+
state: h ? D.LOGGED_IN : D.LOGGING_IN,
|
|
136
136
|
user: h
|
|
137
137
|
}), $ = m(async (y) => {
|
|
138
138
|
let v = null;
|
|
@@ -143,29 +143,29 @@ const We = ({ children: e }) => {
|
|
|
143
143
|
}), v;
|
|
144
144
|
}, [t]), w = m(() => {
|
|
145
145
|
localStorage.removeItem("user"), g({
|
|
146
|
-
state:
|
|
146
|
+
state: D.LOGGED_OUT,
|
|
147
147
|
user: null
|
|
148
148
|
}), s(null), o(null);
|
|
149
149
|
}, [o, s]), E = m(async (y) => {
|
|
150
150
|
g({
|
|
151
|
-
state:
|
|
151
|
+
state: D.LOGGING_IN,
|
|
152
152
|
user: null
|
|
153
153
|
});
|
|
154
154
|
const v = await $(y);
|
|
155
155
|
return v ? (g({
|
|
156
|
-
state:
|
|
156
|
+
state: D.LOGGED_IN,
|
|
157
157
|
user: v
|
|
158
158
|
}), localStorage.setItem("user", JSON.stringify(v)), await l(), !0) : (g({
|
|
159
|
-
state:
|
|
159
|
+
state: D.LOGIN_FAILED,
|
|
160
160
|
user: null
|
|
161
161
|
}), !1);
|
|
162
162
|
}, [$, l]), I = m(() => {
|
|
163
163
|
w();
|
|
164
164
|
}, [w]);
|
|
165
|
-
|
|
165
|
+
j(() => {
|
|
166
166
|
if (r) {
|
|
167
167
|
const y = r.addEventCallback((v) => {
|
|
168
|
-
if (v.eventType ===
|
|
168
|
+
if (v.eventType === Q.LOGIN_SUCCESS && v.payload) {
|
|
169
169
|
const K = v.payload;
|
|
170
170
|
i(K.accessToken);
|
|
171
171
|
}
|
|
@@ -182,7 +182,7 @@ const We = ({ children: e }) => {
|
|
|
182
182
|
I(), s(null);
|
|
183
183
|
});
|
|
184
184
|
}, [E, I, s]);
|
|
185
|
-
|
|
185
|
+
j(() => {
|
|
186
186
|
ne(c);
|
|
187
187
|
}, [c, n == null ? void 0 : n.id, ne]);
|
|
188
188
|
const Ae = C(() => ({
|
|
@@ -193,16 +193,16 @@ const We = ({ children: e }) => {
|
|
|
193
193
|
}), [p, E, I]);
|
|
194
194
|
return /* @__PURE__ */ f.jsx(He.Provider, { value: Ae, children: e });
|
|
195
195
|
}, Ft = ({ ...e }) => {
|
|
196
|
-
const { cookieDomain: t } = _(
|
|
196
|
+
const { cookieDomain: t } = _(q), [, r] = _e(["Authorization"]), n = C(() => ({
|
|
197
197
|
useMsal: e.useMsal ?? !1,
|
|
198
198
|
msalInstance: e.useMsal ? e.msalInstance ?? null : null,
|
|
199
199
|
msalScopes: e.useMsal ? e.msalScopes ?? [] : [],
|
|
200
200
|
msalExtraScopes: e.useMsal ? e.msalExtraScopes ?? [] : []
|
|
201
201
|
}), [e]);
|
|
202
|
-
return
|
|
202
|
+
return j(() => {
|
|
203
203
|
if (e.useMsal) {
|
|
204
204
|
const s = e.msalInstance.addEventCallback((o) => {
|
|
205
|
-
if (o.eventType ===
|
|
205
|
+
if (o.eventType === Q.LOGIN_SUCCESS || o.eventType === Q.ACQUIRE_TOKEN_SUCCESS && o.payload) {
|
|
206
206
|
const l = o.payload, a = l.account;
|
|
207
207
|
e.msalInstance.setActiveAccount(a);
|
|
208
208
|
const c = l.accessToken, i = l.expiresOn;
|
|
@@ -223,24 +223,24 @@ const We = ({ children: e }) => {
|
|
|
223
223
|
return () => {
|
|
224
224
|
};
|
|
225
225
|
}, [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
|
-
},
|
|
227
|
-
const [r, n, s] =
|
|
226
|
+
}, zt = ({ children: e, relativeEndpoint: t }) => {
|
|
227
|
+
const [r, n, s] = qe("user-delegation", null), o = C(() => {
|
|
228
228
|
if (!r)
|
|
229
229
|
return null;
|
|
230
|
-
const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) :
|
|
231
|
-
return
|
|
232
|
-
}, [r, n]), { data: l, setData: a, reloadData: c } =
|
|
230
|
+
const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) : Ve();
|
|
231
|
+
return Be(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
|
|
232
|
+
}, [r, n]), { data: l, setData: a, reloadData: c } = Ge(t, {
|
|
233
233
|
nullStateBeforeLoad: !1,
|
|
234
234
|
nullStateOnFail: !0
|
|
235
235
|
}), i = he(null);
|
|
236
|
-
|
|
236
|
+
j(() => {
|
|
237
237
|
const d = () => {
|
|
238
238
|
c(), i.current = window.setTimeout(d, $e() + 5e3);
|
|
239
239
|
};
|
|
240
240
|
return d(), () => {
|
|
241
241
|
i.current !== null && window.clearTimeout(i.current);
|
|
242
242
|
};
|
|
243
|
-
}, [c]),
|
|
243
|
+
}, [c]), j(() => {
|
|
244
244
|
const d = () => {
|
|
245
245
|
s();
|
|
246
246
|
};
|
|
@@ -342,7 +342,7 @@ var st = function(t, r, n, s) {
|
|
|
342
342
|
return !0;
|
|
343
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 || {}),
|
|
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 = {
|
|
346
346
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
347
347
|
script: { type: ["application/ld+json"] },
|
|
348
348
|
meta: {
|
|
@@ -402,7 +402,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
402
402
|
const n = H(e, L.DEFAULT_TITLE);
|
|
403
403
|
return t || n || void 0;
|
|
404
404
|
}, lt = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
405
|
-
}),
|
|
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) => {
|
|
406
406
|
if (!r.length) {
|
|
407
407
|
const s = Object.keys(n);
|
|
408
408
|
for (let o = 0; o < s.length; o += 1) {
|
|
@@ -452,10 +452,10 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
452
452
|
"href"
|
|
453
453
|
/* HREF */
|
|
454
454
|
], e),
|
|
455
|
-
bodyAttributes:
|
|
455
|
+
bodyAttributes: B("bodyAttributes", e),
|
|
456
456
|
defer: H(e, L.DEFER),
|
|
457
457
|
encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
|
|
458
|
-
htmlAttributes:
|
|
458
|
+
htmlAttributes: B("htmlAttributes", e),
|
|
459
459
|
linkTags: M(
|
|
460
460
|
"link",
|
|
461
461
|
[
|
|
@@ -496,7 +496,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
496
496
|
/* CSS_TEXT */
|
|
497
497
|
], e),
|
|
498
498
|
title: it(e),
|
|
499
|
-
titleAttributes:
|
|
499
|
+
titleAttributes: B("titleAttributes", e),
|
|
500
500
|
prioritizeSeoTags: ft(e, L.PRIORITIZE_SEO_TAGS)
|
|
501
501
|
}), ge = (e) => Array.isArray(e) ? e.join("") : e, mt = (e, t) => {
|
|
502
502
|
const r = Object.keys(e);
|
|
@@ -515,15 +515,15 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
515
515
|
"script",
|
|
516
516
|
"style"
|
|
517
517
|
/* STYLE */
|
|
518
|
-
],
|
|
518
|
+
], W = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Te = (e) => Object.keys(e).reduce((t, r) => {
|
|
519
519
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
520
520
|
return t ? `${t} ${n}` : n;
|
|
521
521
|
}, ""), ht = (e, t, r, n) => {
|
|
522
522
|
const s = Te(r), o = ge(t);
|
|
523
|
-
return s ? `<${e} ${x}="true" ${s}>${
|
|
523
|
+
return s ? `<${e} ${x}="true" ${s}>${W(
|
|
524
524
|
o,
|
|
525
525
|
n
|
|
526
|
-
)}</${e}>` : `<${e} ${x}="true">${
|
|
526
|
+
)}</${e}>` : `<${e} ${x}="true">${W(
|
|
527
527
|
o,
|
|
528
528
|
n
|
|
529
529
|
)}</${e}>`;
|
|
@@ -531,7 +531,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
531
531
|
const o = s, l = Object.keys(o).filter(
|
|
532
532
|
(i) => !(i === "innerHTML" || i === "cssText")
|
|
533
533
|
).reduce((i, u) => {
|
|
534
|
-
const d = typeof o[u] > "u" ? u : `${u}="${
|
|
534
|
+
const d = typeof o[u] > "u" ? u : `${u}="${W(o[u], r)}"`;
|
|
535
535
|
return i ? `${i} ${d}` : d;
|
|
536
536
|
}, ""), a = o.innerHTML || o.cssText || "", c = pt.indexOf(e) === -1;
|
|
537
537
|
return `${n}<${e} ${x}="true" ${l}${c ? "/>" : `>${a}</${e}>`}`;
|
|
@@ -544,7 +544,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
544
544
|
[x]: !0
|
|
545
545
|
}, s = ve(r, n);
|
|
546
546
|
return [O.createElement("title", s, t)];
|
|
547
|
-
},
|
|
547
|
+
}, z = (e, t) => t.map((r, n) => {
|
|
548
548
|
const s = {
|
|
549
549
|
key: n,
|
|
550
550
|
[x]: !0
|
|
@@ -572,18 +572,18 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
572
572
|
};
|
|
573
573
|
default:
|
|
574
574
|
return {
|
|
575
|
-
toComponent: () =>
|
|
575
|
+
toComponent: () => z(e, t),
|
|
576
576
|
toString: () => yt(e, t, r)
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
}, Tt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
580
|
-
const s = Y(e,
|
|
580
|
+
const s = Y(e, V.meta), o = Y(t, V.link), l = Y(r, V.script);
|
|
581
581
|
return {
|
|
582
582
|
priorityMethods: {
|
|
583
583
|
toComponent: () => [
|
|
584
|
-
...
|
|
585
|
-
...
|
|
586
|
-
...
|
|
584
|
+
...z("meta", s.priority),
|
|
585
|
+
...z("link", o.priority),
|
|
586
|
+
...z("script", l.priority)
|
|
587
587
|
],
|
|
588
588
|
toString: () => (
|
|
589
589
|
// generate all the tags as strings and concatenate them
|
|
@@ -784,7 +784,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
784
784
|
render() {
|
|
785
785
|
return this.init(), null;
|
|
786
786
|
}
|
|
787
|
-
},
|
|
787
|
+
}, J, St = (J = class extends te {
|
|
788
788
|
shouldComponentUpdate(e) {
|
|
789
789
|
return !nt(ie(this.props, "helmetData"), ie(e, "helmetData"));
|
|
790
790
|
}
|
|
@@ -902,12 +902,12 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
902
902
|
}
|
|
903
903
|
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
904
|
}
|
|
905
|
-
}, A(
|
|
905
|
+
}, A(J, "defaultProps", {
|
|
906
906
|
defer: !0,
|
|
907
907
|
encodeSpecialCharacters: !0,
|
|
908
908
|
prioritizeSeoTags: !1
|
|
909
|
-
}),
|
|
910
|
-
const ue = (e, t) => e ? `${e} | ${t}` : t,
|
|
909
|
+
}), J);
|
|
910
|
+
const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
|
|
911
911
|
const [n, s] = b([
|
|
912
912
|
ue(r ?? "", e)
|
|
913
913
|
]), o = m((i) => {
|
|
@@ -919,8 +919,8 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, qt = ({ defaultHelmet: e, children:
|
|
|
919
919
|
/* @__PURE__ */ f.jsx(St, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
|
|
920
920
|
t
|
|
921
921
|
] }) });
|
|
922
|
-
},
|
|
923
|
-
const { texts: { confirm: e } } = _(
|
|
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) => {
|
|
924
924
|
switch (l.key) {
|
|
925
925
|
case "Enter":
|
|
926
926
|
l.stopPropagation(), t();
|
|
@@ -933,8 +933,8 @@ const ue = (e, t) => e ? `${e} | ${t}` : t, qt = ({ defaultHelmet: e, children:
|
|
|
933
933
|
return Ne(o), /* @__PURE__ */ f.jsxs(S, { show: s, size: "sm", centered: !0, onHide: r, children: [
|
|
934
934
|
/* @__PURE__ */ f.jsx(S.Header, { className: "justify-content-center", children: /* @__PURE__ */ f.jsx(S.Title, { children: n }) }),
|
|
935
935
|
/* @__PURE__ */ f.jsx(S.Body, { children: /* @__PURE__ */ f.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
936
|
-
/* @__PURE__ */ f.jsx(
|
|
937
|
-
/* @__PURE__ */ f.jsx(
|
|
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 })
|
|
938
938
|
] }) })
|
|
939
939
|
] });
|
|
940
940
|
};
|
|
@@ -942,16 +942,16 @@ export {
|
|
|
942
942
|
de as AuthContext,
|
|
943
943
|
Ft as AuthProvider,
|
|
944
944
|
me as DelegationContext,
|
|
945
|
-
|
|
945
|
+
zt as DelegationProvider,
|
|
946
946
|
Re as FormDisabledContext,
|
|
947
|
-
|
|
947
|
+
qt as FormDisabledProvider,
|
|
948
948
|
Me as HelmetContext,
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
Gt as HelmetProvider,
|
|
950
|
+
De as LoadingContext,
|
|
951
951
|
Ut as LoadingProvider,
|
|
952
|
-
|
|
952
|
+
q as LuminusComponentsContext,
|
|
953
953
|
Rt as LuminusComponentsProvider,
|
|
954
954
|
He as UserContext,
|
|
955
955
|
Nt as UserProvider,
|
|
956
|
-
|
|
956
|
+
Bt as useFormDisabledContext
|
|
957
957
|
};
|
package/dist/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-CJ3lbXnG.cjs"),k=require("./usePermissions-BnlHINds.cjs"),T=require("./useGetApiData-Drdk3gEB.cjs"),c=require("react"),x=require("./useLocalStorageState-BFc8Gc8H.cjs"),f=require("./useRenderDraggableInPortal-QPCaw-E_.cjs");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const B=r=>{let t="pending",u;const s=r.then(a=>{t="success",u=a},a=>{t="error",u=a});return()=>{switch(t){case"pending":throw s;case"success":return u;case"error":throw u;default:throw new Error("Unknown status")}}};function G(r,t){const u=e.useAxios({silent:!0,differentBaseUrl:t==null?void 0:t.customBaseUrl,customToken:t==null?void 0:t.customToken}),[s,a]=c.useState(null);return c.useEffect(()=>{(async()=>{const n=u.get(r).then(o=>o.data);a(B(n))})()},[u,r]),s}const L=(r,t,u)=>{let s="pending",a;const i=r.then(n=>{s="success",a=n},n=>{const o=n==null?void 0:n.response;(o==null?void 0:o.status)===404&&u?(s="error-404",a=n):(s="error",a=n)});return()=>{switch(s){case"pending":throw i;case"success":return a;case"error":return null;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},l={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},E=(r,{loadOnInit:t=l.loadOnInit,enabled:u=l.enabled,silent:s=l.silent,nullStateBeforeLoad:a=l.nullStateBeforeLoad,nullStateOnFail:i=l.nullStateOnFail,customApiUrl:n,customBearerToken:o,dataTransformer:h,errorBoundaryOn404:S}=l)=>{const p=e.useAxios({silent:s,customToken:o,differentBaseUrl:n,noToastOnStatus:S?[404]:void 0}),{startLoading:D,stopLoading:w}=c.useContext(e.LoadingContext),C=c.useRef(0),{isAuthenticated:P}=e.useAuth(),[b,g]=c.useState(null),m=c.useCallback(async(d,y)=>{if(!P()||u===!1)return;!s&&D(`loadData-${r}-${y}`),a&&g(null);const q=p.get(r,{signal:d}).then(A=>h?h(A.data):A.data).finally(()=>!s&&w(`loadData-${r}-${y}`));g(L(q,i??!1,S??!1))},[P,u,s,D,r,a,p,h,w,i,S]);return c.useEffect(()=>{if(t===!1)return;const d=new AbortController;return m(d.signal,++C.current),()=>{d.abort()}},[m,t]),{data:b,setData:g,reloadData:m}};exports.cancelToken=e.cancelToken;exports.useAuth=e.useAuth;exports.useAxios=e.useAxios;exports.useClickOutside=e.useClickOutside;exports.useClipboard=e.useClipboard;exports.useConfirm=e.useConfirm;exports.useFormControlType=e.useFormControlType;exports.useKeyPress=e.useKeyPress;exports.useNotifications=e.useNotifications;exports.usePrompt=e.usePrompt;exports.useWindowSize=e.useWindowSize;exports.useZodSchemaTypes=e.useZodSchemaTypes;exports.usePermissions=k.usePermissions;exports.useGetApiData=T.useGetApiData;exports.useLocalStorageState=x.useLocalStorageState;exports.useEmployeePhotoPath=f.useEmployeePhotoPath;exports.useRenderDraggableInPortal=f.useRenderDraggableInPortal;exports.useSearchQuery=f.useSearchQuery;exports.useSearchQueryState=f.useSearchQueryState;exports.useGetApiDataBound=E;exports.useGetDataBound=G;
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { aj as S,
|
|
2
|
-
import { bD as
|
|
3
|
-
import { u as ae } from "./usePermissions-
|
|
4
|
-
import { u as re } from "./useGetApiData-
|
|
5
|
-
import { useState as x, useEffect as C, useContext as E, useRef as
|
|
1
|
+
import { aj as S, al as L, b2 as P } from "./nivo-bar.es-bHUKcCZ-.js";
|
|
2
|
+
import { bD as Z, aL as q, bG as H, ai as J, bF as M, aV as X, am as Y, ah as _, aC as ee, bE as te } from "./nivo-bar.es-bHUKcCZ-.js";
|
|
3
|
+
import { u as ae } from "./usePermissions-JgJ9f4tm.js";
|
|
4
|
+
import { u as re } from "./useGetApiData-D98eaVmN.js";
|
|
5
|
+
import { useState as x, useEffect as C, useContext as E, useRef as T, useCallback as U } from "react";
|
|
6
6
|
import { u as ue } from "./useLocalStorageState-Bt99kkCr.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as ce, u as ie, a as fe, b as de } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "react-hook-form";
|
|
11
11
|
import "react-flexmonster";
|
|
12
12
|
import "@azure/msal-browser";
|
|
13
13
|
import "@azure/msal-react";
|
|
14
|
-
const
|
|
14
|
+
const $ = (o) => {
|
|
15
15
|
let e = "pending", a;
|
|
16
16
|
const t = o.then((s) => {
|
|
17
17
|
e = "success", a = s;
|
|
@@ -40,13 +40,13 @@ function z(o, e) {
|
|
|
40
40
|
return C(() => {
|
|
41
41
|
(async () => {
|
|
42
42
|
const r = a.get(o).then((n) => n.data);
|
|
43
|
-
s(
|
|
43
|
+
s($(r));
|
|
44
44
|
})();
|
|
45
45
|
}, [a, o]), t;
|
|
46
46
|
}
|
|
47
47
|
const B = (o, e, a) => {
|
|
48
48
|
let t = "pending", s;
|
|
49
|
-
const
|
|
49
|
+
const l = o.then((r) => {
|
|
50
50
|
t = "success", s = r;
|
|
51
51
|
}, (r) => {
|
|
52
52
|
const n = r == null ? void 0 : r.response;
|
|
@@ -55,7 +55,7 @@ const B = (o, e, a) => {
|
|
|
55
55
|
return () => {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case "pending":
|
|
58
|
-
throw
|
|
58
|
+
throw l;
|
|
59
59
|
case "success":
|
|
60
60
|
return s;
|
|
61
61
|
case "error":
|
|
@@ -72,22 +72,22 @@ const B = (o, e, a) => {
|
|
|
72
72
|
enabled: !0,
|
|
73
73
|
nullStateBeforeLoad: !0,
|
|
74
74
|
nullStateOnFail: !1
|
|
75
|
-
}, K = (o, { loadOnInit: e = u.loadOnInit, enabled: a = u.enabled, silent: t = u.silent, nullStateBeforeLoad: s = u.nullStateBeforeLoad, nullStateOnFail:
|
|
75
|
+
}, K = (o, { loadOnInit: e = u.loadOnInit, enabled: a = u.enabled, silent: t = u.silent, nullStateBeforeLoad: s = u.nullStateBeforeLoad, nullStateOnFail: l = u.nullStateOnFail, customApiUrl: r, customBearerToken: n, dataTransformer: i, errorBoundaryOn404: f } = u) => {
|
|
76
76
|
const p = S({
|
|
77
77
|
silent: t,
|
|
78
78
|
customToken: n,
|
|
79
79
|
differentBaseUrl: r,
|
|
80
80
|
noToastOnStatus: f ? [404] : void 0
|
|
81
|
-
}), { startLoading: h, stopLoading: g } = E(
|
|
82
|
-
if (!
|
|
81
|
+
}), { startLoading: h, stopLoading: g } = E(L), k = T(0), { isAuthenticated: w } = P(), [y, d] = x(null), m = U(async (c, D) => {
|
|
82
|
+
if (!w() || a === !1)
|
|
83
83
|
return;
|
|
84
|
-
!t && h(`loadData-${o}-${
|
|
84
|
+
!t && h(`loadData-${o}-${D}`), s && d(null);
|
|
85
85
|
const A = p.get(o, {
|
|
86
|
-
signal:
|
|
87
|
-
}).then((b) => i ? i(b.data) : b.data).finally(() => !t && g(`loadData-${o}-${
|
|
88
|
-
d(B(A,
|
|
86
|
+
signal: c
|
|
87
|
+
}).then((b) => i ? i(b.data) : b.data).finally(() => !t && g(`loadData-${o}-${D}`));
|
|
88
|
+
d(B(A, l ?? !1, f ?? !1));
|
|
89
89
|
}, [
|
|
90
|
-
|
|
90
|
+
w,
|
|
91
91
|
a,
|
|
92
92
|
t,
|
|
93
93
|
h,
|
|
@@ -96,35 +96,35 @@ const B = (o, e, a) => {
|
|
|
96
96
|
p,
|
|
97
97
|
i,
|
|
98
98
|
g,
|
|
99
|
-
|
|
99
|
+
l,
|
|
100
100
|
f
|
|
101
101
|
]);
|
|
102
102
|
return C(() => {
|
|
103
103
|
if (e === !1)
|
|
104
104
|
return;
|
|
105
|
-
const
|
|
106
|
-
return m(
|
|
107
|
-
|
|
105
|
+
const c = new AbortController();
|
|
106
|
+
return m(c.signal, ++k.current), () => {
|
|
107
|
+
c.abort();
|
|
108
108
|
};
|
|
109
109
|
}, [m, e]), { data: y, setData: d, reloadData: m };
|
|
110
110
|
};
|
|
111
111
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Z as cancelToken,
|
|
113
|
+
P as useAuth,
|
|
114
114
|
S as useAxios,
|
|
115
115
|
q as useClickOutside,
|
|
116
116
|
H as useClipboard,
|
|
117
117
|
J as useConfirm,
|
|
118
|
-
|
|
118
|
+
ce as useEmployeePhotoPath,
|
|
119
119
|
M as useFormControlType,
|
|
120
120
|
re as useGetApiData,
|
|
121
121
|
K as useGetApiDataBound,
|
|
122
122
|
z as useGetDataBound,
|
|
123
|
-
|
|
123
|
+
X as useKeyPress,
|
|
124
124
|
ue as useLocalStorageState,
|
|
125
|
-
|
|
125
|
+
Y as useNotifications,
|
|
126
126
|
ae as usePermissions,
|
|
127
|
-
|
|
127
|
+
_ as usePrompt,
|
|
128
128
|
ie as useRenderDraggableInPortal,
|
|
129
129
|
fe as useSearchQuery,
|
|
130
130
|
de as useSearchQueryState,
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-CJ3lbXnG.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 k=require("./usePermissions-BnlHINds.cjs"),P="_side-menu-item_o72rm_1",f="_disabled_o72rm_6",w="_hidden_o72rm_10",I="_nav-button_o72rm_13",S="_child_o72rm_21",L="_text_o72rm_26",T="_icon_o72rm_36",O="_collapse-icon_o72rm_42",$="_collapsed_o72rm_52",A="_collapse-icon-mini_o72rm_55",K="_expanded_o72rm_86",D="_children-container_o72rm_92",F="_visible_o72rm_100",z="_children_o72rm_92",U="_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:I,child:S,text:L,icon:T,"collapse-icon":"_collapse-icon_o72rm_42",collapseIcon:O,collapsed:$,"collapse-icon-mini":"_collapse-icon-mini_o72rm_55",collapseIconMini:A,expanded:K,"children-container":"_children-container_o72rm_92",childrenContainer:D,visible:F,children:z,mobile:U},W=({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,B=({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(W,{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))})})]})},G="_side-menu_1q9oh_1",J="_sidebar-header_1q9oh_15",Q="_side-menu-content_1q9oh_22",V="_expand_1q9oh_27",X="_only-logo_1q9oh_31",Y="_mobile_1q9oh_34",Z="_divider_1q9oh_49",u={"side-menu":"_side-menu_1q9oh_1",sideMenu:G,"sidebar-header":"_sidebar-header_1q9oh_15",sidebarHeader:J,"side-menu-content":"_side-menu-content_1q9oh_22",sideMenuContent:Q,expand:V,"only-logo":"_only-logo_1q9oh_31",onlyLogo:X,mobile:Y,divider:Z},H=({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}=k.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(B,{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(B,{item:t,menuExpanded:r,collapsed:d===j,onCollapse:()=>v(d),currentPath:E,useHover:a,useTooltips:M,isMobile:o,disableMode:b},t.title))]})]})},ee="_top-bar_lnmq0_1",se="_top-bar-brand_lnmq0_12",C={"top-bar":"_top-bar_lnmq0_1",topBar:ee,"top-bar-brand":"_top-bar-brand_lnmq0_12",topBarBrand:se},ne=({appName:s,leftOffset:i,leftContent:l,centerContent:c,rightContent:_})=>e.jsxRuntimeExports.jsx("nav",{className:e.classNames("luminus-top-bar shadow",C.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",C.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=H;exports.TopBar=ne;
|