@memobit/libs 3.28.1 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Auth/ChangePasswordModal/ChangePasswordModal2.js +7 -7
- package/dist/components/Auth/Login/Login2.js +4 -4
- package/dist/components/Auth/MfaSetupModal/MfaSetupModal2.js +6 -6
- package/dist/components/DataView/DataView.CardView.js +84 -84
- package/dist/components/MenuHamburger/MenuHamburger2.js +14 -14
- package/dist/components/PageShell/AppFrame.js +27 -0
- package/dist/components/PageShell/BottomSheet.js +45 -0
- package/dist/components/PageShell/FilterField.css +1 -0
- package/dist/components/PageShell/FilterField2.js +294 -0
- package/dist/components/PageShell/FilterSections.js +86 -0
- package/dist/components/PageShell/PageParts.js +257 -0
- package/dist/components/PageShell/PageShell.css +1 -0
- package/dist/components/PageShell/PageShell2.js +11 -0
- package/dist/components/PageShell/WorkbenchPhone.js +139 -0
- package/dist/components/PageShell/WorkbenchShell.js +154 -0
- package/dist/components/PageShell/filterRules.js +123 -0
- package/dist/components/PageShell/filterValues.js +30 -0
- package/dist/components/PageShell/menuItems.js +9 -0
- package/dist/components/PageShell/shellText.js +39 -0
- package/dist/components/PageShell/useAppFrame.js +6 -0
- package/dist/components/PageShell/usePaging.js +23 -0
- package/dist/components/PageShell/usePruneStaleFilters.js +17 -0
- package/dist/components/PageShell/useSummaryMessages.js +17 -0
- package/dist/components/Pagination/Pagination.css +1 -1
- package/dist/components/Pagination/Pagination2.js +14 -13
- package/dist/components/Popover/Popover2.js +77 -67
- package/dist/components/ScrollToTop/ScrollToTop.css +1 -1
- package/dist/components/ScrollToTop/ScrollToTop2.js +20 -19
- package/dist/contexts/LanguageContext/libMessages.js +55 -7
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/hooks/useAccountMenu.js +6 -6
- package/dist/index.d.ts +299 -0
- package/dist/index.js +235 -213
- package/dist/version.js +1 -1
- package/dist/version.json +4 -4
- package/package.json +147 -147
|
@@ -1,111 +1,121 @@
|
|
|
1
1
|
import './Popover.css';
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
var
|
|
7
|
-
const
|
|
3
|
+
import { useCallback as z, useEffect as y, useRef as A, useState as G } from "react";
|
|
4
|
+
import { jsx as F, jsxs as S } from "react/jsx-runtime";
|
|
5
|
+
import { createPortal as T } from "react-dom";
|
|
6
|
+
var l = 20, M = 16, j = 8, q = ({ children: b, visible: d, onClose: v, anchorEl: h, offset: m = j, placement: r = "auto" }) => {
|
|
7
|
+
const f = A(null), R = A(null), [u, k] = G({
|
|
8
8
|
top: 0,
|
|
9
9
|
left: 0,
|
|
10
10
|
placement: "bottom",
|
|
11
11
|
arrowOffset: null
|
|
12
|
-
}),
|
|
13
|
-
if (!
|
|
14
|
-
const t =
|
|
12
|
+
}), p = z(() => {
|
|
13
|
+
if (!h || !f.current || !d) return;
|
|
14
|
+
const t = h.getBoundingClientRect(), e = {
|
|
15
|
+
width: f.current.offsetWidth,
|
|
16
|
+
height: f.current.offsetHeight
|
|
17
|
+
}, o = {
|
|
15
18
|
width: window.innerWidth,
|
|
16
19
|
height: window.innerHeight
|
|
17
|
-
},
|
|
20
|
+
}, E = (i, n) => i >= l && n >= l && i + e.height <= o.height - l && n + e.width <= o.width - l, w = {
|
|
18
21
|
bottom: {
|
|
19
|
-
top: t.bottom +
|
|
22
|
+
top: t.bottom + m,
|
|
20
23
|
left: t.left + (t.width - e.width) / 2
|
|
21
24
|
},
|
|
22
25
|
top: {
|
|
23
|
-
top: t.top - e.height -
|
|
26
|
+
top: t.top - e.height - m,
|
|
24
27
|
left: t.left + (t.width - e.width) / 2
|
|
25
28
|
},
|
|
26
29
|
left: {
|
|
27
30
|
top: t.top + (t.height - e.height) / 2,
|
|
28
|
-
left: t.left - e.width -
|
|
31
|
+
left: t.left - e.width - m
|
|
29
32
|
},
|
|
30
33
|
right: {
|
|
31
34
|
top: t.top + (t.height - e.height) / 2,
|
|
32
|
-
left: t.right +
|
|
35
|
+
left: t.right + m
|
|
33
36
|
}
|
|
34
|
-
};
|
|
35
|
-
let
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
"bottom",
|
|
39
|
-
"top",
|
|
40
|
-
"right",
|
|
41
|
-
"left"
|
|
42
|
-
].find((p) => {
|
|
43
|
-
const d = l[p];
|
|
44
|
-
return R(d.top, d.left);
|
|
45
|
-
}) || "bottom", { top: r, left: s } = l[o];
|
|
46
|
-
else {
|
|
47
|
-
const p = l[a];
|
|
48
|
-
R(p.top, p.left) ? (o = a, { top: r, left: s } = p) : (o = [
|
|
37
|
+
}, _ = t.top > o.height - t.bottom ? "top" : "bottom";
|
|
38
|
+
let c, L = !0;
|
|
39
|
+
if (r === "auto") {
|
|
40
|
+
const i = [
|
|
49
41
|
"bottom",
|
|
50
42
|
"top",
|
|
51
43
|
"right",
|
|
52
44
|
"left"
|
|
53
|
-
].
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
})
|
|
45
|
+
].find((n) => {
|
|
46
|
+
const s = w[n];
|
|
47
|
+
return E(s.top, s.left);
|
|
48
|
+
});
|
|
49
|
+
L = i !== void 0, c = i ?? _;
|
|
50
|
+
} else {
|
|
51
|
+
const i = w[r];
|
|
52
|
+
if (E(i.top, i.left)) c = r;
|
|
53
|
+
else {
|
|
54
|
+
const n = [
|
|
55
|
+
"bottom",
|
|
56
|
+
"top",
|
|
57
|
+
"right",
|
|
58
|
+
"left"
|
|
59
|
+
].filter((s) => s !== r).find((s) => {
|
|
60
|
+
const P = w[s];
|
|
61
|
+
return E(P.top, P.left);
|
|
62
|
+
});
|
|
63
|
+
L = n !== void 0, c = n ?? (r === "top" || r === "bottom" ? _ : r);
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
let { top: a, left: g } = w[c];
|
|
67
|
+
const x = (i, n, s) => Math.max(l, Math.min(i, s - n - l)), O = c === "top" || c === "bottom";
|
|
68
|
+
O ? (g = x(g, e.width, o.width), L || (a = x(a, e.height, o.height))) : a = x(a, e.height, o.height);
|
|
69
|
+
const N = O ? t.left + t.width / 2 - g : t.top + t.height / 2 - a, V = O ? e.width : e.height, W = Math.min(Math.max(N, M), V - M);
|
|
70
|
+
k({
|
|
71
|
+
top: a,
|
|
72
|
+
left: g,
|
|
73
|
+
placement: c,
|
|
74
|
+
arrowOffset: W
|
|
65
75
|
});
|
|
66
76
|
}, [
|
|
67
|
-
c,
|
|
68
77
|
h,
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
d,
|
|
79
|
+
m,
|
|
80
|
+
r
|
|
71
81
|
]);
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
}), [
|
|
75
|
-
if (!
|
|
76
|
-
const t = (
|
|
77
|
-
|
|
78
|
-
}, e = (
|
|
79
|
-
|
|
82
|
+
if (y(() => (d && (R.current = requestAnimationFrame(p)), () => {
|
|
83
|
+
R.current !== null && cancelAnimationFrame(R.current);
|
|
84
|
+
}), [d, p]), y(() => {
|
|
85
|
+
if (!d) return;
|
|
86
|
+
const t = (o) => {
|
|
87
|
+
f.current && h && !f.current.contains(o.target) && !h.contains(o.target) && v();
|
|
88
|
+
}, e = (o) => {
|
|
89
|
+
o.key === "Escape" && v();
|
|
80
90
|
};
|
|
81
|
-
return document.addEventListener("mousedown", t), document.addEventListener("keydown", e), window.addEventListener("resize",
|
|
82
|
-
document.removeEventListener("mousedown", t), document.removeEventListener("keydown", e), window.removeEventListener("resize",
|
|
91
|
+
return document.addEventListener("mousedown", t), document.addEventListener("keydown", e), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
|
|
92
|
+
document.removeEventListener("mousedown", t), document.removeEventListener("keydown", e), window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
|
|
83
93
|
};
|
|
84
94
|
}, [
|
|
95
|
+
d,
|
|
96
|
+
v,
|
|
85
97
|
h,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
ref: m,
|
|
92
|
-
className: `simple-popover simple-popover--${w.placement}`,
|
|
98
|
+
p
|
|
99
|
+
]), !d || !h) return null;
|
|
100
|
+
const I = /* @__PURE__ */ S("div", {
|
|
101
|
+
ref: f,
|
|
102
|
+
className: `simple-popover simple-popover--${u.placement}`,
|
|
93
103
|
style: {
|
|
94
104
|
position: "fixed",
|
|
95
|
-
top:
|
|
96
|
-
left:
|
|
105
|
+
top: u.top,
|
|
106
|
+
left: u.left,
|
|
97
107
|
zIndex: 9999
|
|
98
108
|
},
|
|
99
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ F("div", {
|
|
100
110
|
className: "simple-popover__arrow",
|
|
101
|
-
style:
|
|
102
|
-
}), /* @__PURE__ */
|
|
111
|
+
style: u.arrowOffset === null ? void 0 : { "--popover-arrow-position": `${u.arrowOffset}px` }
|
|
112
|
+
}), /* @__PURE__ */ F("div", {
|
|
103
113
|
className: "simple-popover__content",
|
|
104
|
-
children:
|
|
114
|
+
children: b
|
|
105
115
|
})]
|
|
106
116
|
});
|
|
107
|
-
return
|
|
117
|
+
return T(I, document.body);
|
|
108
118
|
};
|
|
109
119
|
export {
|
|
110
|
-
|
|
120
|
+
q as Popover
|
|
111
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.scroll-to-top{bottom:var(--spacing-24);right:var(--spacing-24);z-index:999;border-radius:var(--
|
|
1
|
+
.scroll-to-top{bottom:var(--spacing-24);right:var(--spacing-24);z-index:999;width:var(--spacing-48);height:var(--spacing-48);border-radius:var(--radius-full);background-color:var(--card-background-color);color:var(--body-accent-color);border:var(--spacing-1) solid var(--card-border-color);cursor:pointer;box-shadow:0 var(--spacing-4) var(--spacing-12) var(--box-shadow);transition:transform var(--transition-fast);animation:scrollToTopFadeIn var(--transition-moderate);justify-content:center;align-items:center;display:flex;position:fixed}.scroll-to-top:hover{transform:scale(1.1)}.scroll-to-top:active{transform:scale(.95)}body:has(.float-button-container) .scroll-to-top{right:calc(var(--spacing-24) + var(--spacing-4));bottom:calc(var(--spacing-24) + 66px)}body:has(.page-shell__fab) .scroll-to-top{right:calc(var(--spacing-16) + var(--spacing-6));bottom:calc(var(--spacing-16) + var(--spacing-60) + var(--spacing-12) + env(safe-area-inset-bottom,0px))}@keyframes scrollToTopFadeIn{0%{opacity:0;transform:translateY(var(--spacing-12))}to{opacity:1;transform:translateY(0)}}@media (width<=768px){.scroll-to-top{bottom:var(--spacing-16);right:var(--spacing-16)}body:has(.float-button-container) .scroll-to-top{bottom:calc(var(--spacing-16) + 58px)}}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import './ScrollToTop.css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Icon as f } from "../Icon/Icon2.js";
|
|
3
|
+
import { libMessages as u } from "../../contexts/LanguageContext/libMessages.js";
|
|
4
|
+
import { useMessages as a } from "../../hooks/useLanguage.js";
|
|
5
|
+
import { Tooltip as T } from "../Tooltip/Tooltip2.js";
|
|
5
6
|
/* empty css */
|
|
6
|
-
import { useCallback as
|
|
7
|
+
import { useCallback as v, useEffect as b, useState as d } from "react";
|
|
7
8
|
import { jsx as t } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
9
|
-
const i =
|
|
10
|
-
|
|
11
|
-
const
|
|
9
|
+
var L = ({ scrollContainer: o, scrollThreshold: e = 200, className: s }) => {
|
|
10
|
+
const i = a(u), [p, c] = d(!1);
|
|
11
|
+
b(() => {
|
|
12
|
+
const r = o ?? window, l = () => {
|
|
12
13
|
const n = o ? o.scrollTop : window.scrollY;
|
|
13
|
-
|
|
14
|
+
c(n > e);
|
|
14
15
|
};
|
|
15
|
-
return
|
|
16
|
-
|
|
16
|
+
return r.addEventListener("scroll", l, { passive: !0 }), () => {
|
|
17
|
+
r.removeEventListener("scroll", l);
|
|
17
18
|
};
|
|
18
|
-
}, [o,
|
|
19
|
-
const m =
|
|
19
|
+
}, [o, e]);
|
|
20
|
+
const m = v(() => {
|
|
20
21
|
o ? o.scrollTo({
|
|
21
22
|
top: 0,
|
|
22
23
|
behavior: "smooth"
|
|
@@ -25,18 +26,18 @@ var k = ({ scrollContainer: o, scrollThreshold: s = 200, className: e }) => {
|
|
|
25
26
|
behavior: "smooth"
|
|
26
27
|
});
|
|
27
28
|
}, [o]);
|
|
28
|
-
return
|
|
29
|
+
return p ? /* @__PURE__ */ t(T, {
|
|
29
30
|
title: i.scrollToTop,
|
|
30
31
|
children: /* @__PURE__ */ t("button", {
|
|
31
|
-
className: `scroll-to-top${
|
|
32
|
+
className: `scroll-to-top${s ? ` ${s}` : ""}`,
|
|
32
33
|
onClick: m,
|
|
33
|
-
children: /* @__PURE__ */ t(
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
children: /* @__PURE__ */ t(f, {
|
|
35
|
+
name: "arrow-up",
|
|
36
|
+
size: "lg"
|
|
36
37
|
})
|
|
37
38
|
})
|
|
38
39
|
}) : null;
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
L as ScrollToTop
|
|
42
43
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { roCount as
|
|
1
|
+
import { roCount as r, roNumberBeforeNoun as i } from "../../helpers/Language.js";
|
|
2
2
|
var l = {
|
|
3
3
|
cancel: "Cancel",
|
|
4
4
|
clear: "Clear",
|
|
@@ -22,7 +22,7 @@ var l = {
|
|
|
22
22
|
sortAscending: "Sort ascending",
|
|
23
23
|
sortDescending: "Sort descending",
|
|
24
24
|
resultsCount: (e, a, t, o) => `Showing ${e}-${a} of ${t}${o}`,
|
|
25
|
-
resultsCountFiltered: (e, a, t, o,
|
|
25
|
+
resultsCountFiltered: (e, a, t, o, n) => `Showing ${e}-${a} of ${t} filtered${n} (${o} total)`,
|
|
26
26
|
rows: "Rows",
|
|
27
27
|
previous: "Previous",
|
|
28
28
|
next: "Next",
|
|
@@ -51,6 +51,30 @@ var l = {
|
|
|
51
51
|
search: "Search",
|
|
52
52
|
showToolbar: "Show the toolbar",
|
|
53
53
|
hideToolbar: "Hide the toolbar",
|
|
54
|
+
pageAny: "Any",
|
|
55
|
+
pageClearAll: "Clear all",
|
|
56
|
+
pageShowAll: (e) => `Show all ${e}`,
|
|
57
|
+
pageShowFewer: "Show fewer",
|
|
58
|
+
pageNoMatches: "No matches",
|
|
59
|
+
pageSearchOptions: (e) => `Search ${e.toLowerCase()}`,
|
|
60
|
+
pageSelectedCount: (e) => `${e} selected`,
|
|
61
|
+
pageRatingAtLeast: (e) => `${e}★ and up`,
|
|
62
|
+
pageDateSince: (e) => `since ${e}`,
|
|
63
|
+
pageDateUntil: (e) => `until ${e}`,
|
|
64
|
+
pageShowResults: (e) => e === 0 ? "No results" : `Show ${e} result${e === 1 ? "" : "s"}`,
|
|
65
|
+
pageSortAndView: "Sort and view",
|
|
66
|
+
pageView: "View",
|
|
67
|
+
pageAscending: "Ascending",
|
|
68
|
+
pageDescending: "Descending",
|
|
69
|
+
pageMenu: "Menu",
|
|
70
|
+
pageDone: "Done",
|
|
71
|
+
pageColumnsShown: (e, a) => `${e} of ${a} shown`,
|
|
72
|
+
pageItemCount: (e, a, t, o) => e === a ? `${a} ${a === 1 ? t : o}` : `${e} of ${a} ${a === 1 ? t : o}`,
|
|
73
|
+
pageShowItems: (e, a, t) => e === 0 ? `No ${t} match` : `Show ${e} ${e === 1 ? a : t}`,
|
|
74
|
+
pageAnyWord: "Any word",
|
|
75
|
+
pageAllWords: "All words",
|
|
76
|
+
pageViewCalendar: "Calendar",
|
|
77
|
+
pageViewMap: "Map",
|
|
54
78
|
selectDate: "Select date...",
|
|
55
79
|
monthNames: [
|
|
56
80
|
"January",
|
|
@@ -138,7 +162,7 @@ var l = {
|
|
|
138
162
|
sortAscending: "Sortează crescător",
|
|
139
163
|
sortDescending: "Sortează descrescător",
|
|
140
164
|
resultsCount: (e, a, t, o) => `Se afișează ${e}-${a} din ${o ? i(t) : t}${o}`,
|
|
141
|
-
resultsCountFiltered: (e, a, t, o,
|
|
165
|
+
resultsCountFiltered: (e, a, t, o, n) => `Se afișează ${e}-${a} din ${n ? i(t) : t}${n} filtrate (${o} în total)`,
|
|
142
166
|
rows: "Rânduri",
|
|
143
167
|
previous: "Anterioara",
|
|
144
168
|
next: "Următoarea",
|
|
@@ -167,6 +191,30 @@ var l = {
|
|
|
167
191
|
search: "Caută",
|
|
168
192
|
showToolbar: "Arată bara de instrumente",
|
|
169
193
|
hideToolbar: "Ascunde bara de instrumente",
|
|
194
|
+
pageAny: "Oricare",
|
|
195
|
+
pageClearAll: "Șterge tot",
|
|
196
|
+
pageShowAll: (e) => `Arată toate cele ${e}`,
|
|
197
|
+
pageShowFewer: "Arată mai puține",
|
|
198
|
+
pageNoMatches: "Nicio potrivire",
|
|
199
|
+
pageSearchOptions: (e) => `Caută în ${e.toLowerCase()}`,
|
|
200
|
+
pageSelectedCount: (e) => `${e} selectate`,
|
|
201
|
+
pageRatingAtLeast: (e) => `${e}★ sau mai mult`,
|
|
202
|
+
pageDateSince: (e) => `din ${e}`,
|
|
203
|
+
pageDateUntil: (e) => `până la ${e}`,
|
|
204
|
+
pageShowResults: (e) => e === 0 ? "Niciun rezultat" : `Arată ${r(e, "rezultat", "rezultate")}`,
|
|
205
|
+
pageSortAndView: "Sortare și afișare",
|
|
206
|
+
pageView: "Afișare",
|
|
207
|
+
pageAscending: "Crescător",
|
|
208
|
+
pageDescending: "Descrescător",
|
|
209
|
+
pageMenu: "Meniu",
|
|
210
|
+
pageDone: "Gata",
|
|
211
|
+
pageColumnsShown: (e, a) => `${e} din ${a} afișate`,
|
|
212
|
+
pageItemCount: (e, a, t, o) => e === a ? r(a, t, o) : `${e} din ${r(a, t, o)}`,
|
|
213
|
+
pageShowItems: (e, a, t) => e === 0 ? "Niciun rezultat" : `Arată ${r(e, a, t)}`,
|
|
214
|
+
pageAnyWord: "Oricare cuvânt",
|
|
215
|
+
pageAllWords: "Toate cuvintele",
|
|
216
|
+
pageViewCalendar: "Calendar",
|
|
217
|
+
pageViewMap: "Hartă",
|
|
170
218
|
selectDate: "Alege data...",
|
|
171
219
|
monthNames: [
|
|
172
220
|
"Ianuarie",
|
|
@@ -199,8 +247,8 @@ var l = {
|
|
|
199
247
|
nextMonth: "Luna următoare",
|
|
200
248
|
today: "Azi",
|
|
201
249
|
selectOption: "Alege o opțiune",
|
|
202
|
-
selectedCount: (e) =>
|
|
203
|
-
selectedWithOthers: (e, a) => `${e} (+${
|
|
250
|
+
selectedCount: (e) => r(e, "selectată", "selectate"),
|
|
251
|
+
selectedWithOthers: (e, a) => `${e} (+${r(a, "alta", "altele")})`,
|
|
204
252
|
createOption: (e) => `Creează „${e}”`,
|
|
205
253
|
noOptions: "Nu s-au găsit opțiuni",
|
|
206
254
|
remove: "Elimină",
|
|
@@ -231,10 +279,10 @@ var l = {
|
|
|
231
279
|
scrollToTop: "Mergi sus",
|
|
232
280
|
tipOfTheDay: "Sfatul zilei",
|
|
233
281
|
dismiss: "Închide"
|
|
234
|
-
},
|
|
282
|
+
}, p = {
|
|
235
283
|
en: l,
|
|
236
284
|
ro: s
|
|
237
285
|
};
|
|
238
286
|
export {
|
|
239
|
-
|
|
287
|
+
p as libMessages
|
|
240
288
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useAuth as d } from "./useAuth/useAuth.js";
|
|
2
|
+
import { ChangePasswordModal as w } from "../components/Auth/ChangePasswordModal/ChangePasswordModal2.js";
|
|
3
|
+
import { ThemeSettings as A } from "../components/ThemeSettings/ThemeSettings2.js";
|
|
4
4
|
import { useState as s } from "react";
|
|
5
5
|
import { Fragment as k, jsx as o, jsxs as v } from "react/jsx-runtime";
|
|
6
6
|
var j = ({ appName: l, mfaModal: e, themeLabel: c = "Theme", loginPath: m = "/login" }) => {
|
|
7
|
-
const { user: u, logout: p } =
|
|
7
|
+
const { user: u, logout: p } = d(), [f, t] = s(!1), [h, n] = s(!1), [g, a] = s(!1), C = async () => {
|
|
8
8
|
await p(), window.location.href = m;
|
|
9
9
|
}, i = {
|
|
10
10
|
label: c,
|
|
@@ -32,12 +32,12 @@ var j = ({ appName: l, mfaModal: e, themeLabel: c = "Theme", loginPath: m = "/lo
|
|
|
32
32
|
isActive: !1
|
|
33
33
|
}
|
|
34
34
|
], O = /* @__PURE__ */ v(k, { children: [
|
|
35
|
-
/* @__PURE__ */ o(
|
|
35
|
+
/* @__PURE__ */ o(A, {
|
|
36
36
|
isOpen: f,
|
|
37
37
|
onClose: () => t(!1),
|
|
38
38
|
currentApp: l
|
|
39
39
|
}),
|
|
40
|
-
/* @__PURE__ */ o(
|
|
40
|
+
/* @__PURE__ */ o(w, {
|
|
41
41
|
isOpen: h,
|
|
42
42
|
onClose: () => n(!1)
|
|
43
43
|
}),
|