prometeo-design-system 4.1.5 → 4.1.8
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/Avatar.es.js +37 -38
- package/dist/CardProfile.es.js +278 -3
- package/dist/Icons/UserAvatar.es.js +4 -4
- package/dist/Input.es.js +72 -71
- package/dist/PlainTooltip.es.js +19 -19
- package/dist/PyrionLayout.es.js +459 -409
- package/dist/Select.es.js +46 -46
- package/dist/TicketCard.es.js +33 -31
- package/dist/badge-BEx-0Q-K.js +35 -0
- package/dist/components/Avatar/Avatar.d.ts +1 -2
- package/dist/index.d.ts +0 -16
- package/dist/prometeo-design-system.es.js +119 -2906
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/CardProfile-C1F83KJV.js +0 -280
- package/dist/badge-CbqYNrl4.js +0 -87
- package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
- package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
- package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
- package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
- package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
- package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
- package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
- package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
- package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
- package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
- package/dist/components/Sidebar/index.d.ts +0 -12
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
package/dist/PyrionLayout.es.js
CHANGED
|
@@ -1,63 +1,113 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { u as We, g as ft } from "./useDevice-vwn4GLwK.js";
|
|
3
|
-
import { g as
|
|
4
|
-
import Ue, {
|
|
3
|
+
import { g as ge } from "./utils-X4-h3cum.js";
|
|
4
|
+
import Ue, { forwardRef as me, useState as J, useRef as T, useEffect as K, memo as I, useContext as qe, createContext as Le, useCallback as x, Children as mt, isValidElement as ve, useMemo as ue, useImperativeHandle as Oe, use as pt } from "react";
|
|
5
5
|
import { createPortal as ze } from "react-dom";
|
|
6
6
|
import { useLocation as ht, useNavigate as bt } from "react-router";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { CloseNavBarDesktop as vt } from "./Icons/CloseNavBarDesktop.es.js";
|
|
7
|
+
import { c as k } from "./cn-B6yFEsav.js";
|
|
8
|
+
import { CloseNavBarDesktop as xt } from "./Icons/CloseNavBarDesktop.es.js";
|
|
10
9
|
import { c as Te } from "./index-BOQuZ0gG.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import { B as gt } from "./badge-BEx-0Q-K.js";
|
|
11
|
+
import vt from "./PlainTooltip.es.js";
|
|
12
|
+
import { CrevronLeft as wt } from "./Icons/CrevronLeft.es.js";
|
|
13
13
|
import { Scrollable as ye } from "./Scrollable.es.js";
|
|
14
14
|
import ee from "./TicketCard.es.js";
|
|
15
|
-
import
|
|
15
|
+
import Nt from "./Avatar.es.js";
|
|
16
16
|
import fe from "./Button.es.js";
|
|
17
|
-
import { Logout as
|
|
18
|
-
import
|
|
19
|
-
import { Notifications as
|
|
17
|
+
import { Logout as yt } from "./Icons/Logout.es.js";
|
|
18
|
+
import Ct from "./NotificationCard.es.js";
|
|
19
|
+
import { Notifications as $e } from "./Icons/Notifications.es.js";
|
|
20
20
|
import { Close as Ie } from "./Icons/Close.es.js";
|
|
21
21
|
import { Help as Ke } from "./Icons/Help.es.js";
|
|
22
|
-
import { Settings as
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
import { Settings as jt } from "./Icons/Settings.es.js";
|
|
23
|
+
const St = me((t, r) => {
|
|
24
|
+
const [s, l] = J(t?.currentTabName || t.tabs[0].name), i = T(null), { tabs: n = [], className: c, activeColor: m = "var(--neutral-900)", currentSystemId: d } = t;
|
|
25
|
+
K(() => {
|
|
26
|
+
i.current?.style.setProperty("--tab-bg", m);
|
|
27
|
+
}, [m]);
|
|
28
|
+
const b = n.find((u) => u.id === d || u.name === (t?.currentTabName || s));
|
|
29
|
+
return /* @__PURE__ */ e.jsx(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref: r,
|
|
33
|
+
className: k(
|
|
34
|
+
"select-none",
|
|
35
|
+
"flex flex-col gap-2",
|
|
36
|
+
"bg-neutral-strong-default",
|
|
37
|
+
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
38
|
+
"border-r border-neutral-default-default",
|
|
39
|
+
c
|
|
40
|
+
),
|
|
41
|
+
children: n.map(
|
|
42
|
+
(u) => {
|
|
43
|
+
const v = u.name === b?.name, f = typeof u.thumbnail == "string" ? /* @__PURE__ */ e.jsx("img", { src: u.thumbnail, alt: u.description, className: "aspect-square object-contain rounded", draggable: !1 }) : u.thumbnail, w = () => {
|
|
44
|
+
u.disabled || (l(u.name), u.onClick && u.onClick(u.name));
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ e.jsx(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: k(
|
|
50
|
+
"bg-[(--tab-bg)]",
|
|
51
|
+
"h-12 w-[50px] z-20",
|
|
52
|
+
"flex items-center pl-[6px] ",
|
|
53
|
+
"rounded-l-[8px]",
|
|
54
|
+
"tabswitch-element relative",
|
|
55
|
+
v && "active"
|
|
56
|
+
),
|
|
57
|
+
onClick: w,
|
|
58
|
+
ref: i,
|
|
59
|
+
children: /* @__PURE__ */ e.jsx("div", { className: k(
|
|
60
|
+
"size-8 rounded-[4px]",
|
|
61
|
+
"grid place-items-center",
|
|
62
|
+
"tab-thumbnail-icon",
|
|
63
|
+
"bg-transparent text-neutral-default-default",
|
|
64
|
+
u?.className
|
|
65
|
+
), children: f })
|
|
66
|
+
},
|
|
67
|
+
u.name
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}), Ye = I(me(({ children: t, className: r, context: s, modal: l = !1, closeOnOverlayClick: i = !1, unmountChildrenOnClose: n = !0 }, c) => {
|
|
74
|
+
const m = pe(t, s), d = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, { isSidebarOpen: b } = kt(), { closeSidebar: u } = ie(), [v, f] = J(() => n ? b : !0), [w, y] = J(!1);
|
|
75
|
+
return K(() => {
|
|
76
|
+
n && s?.subscribeToSidebarOpen((p) => {
|
|
77
|
+
p ? (y(!1), f(!0)) : y(!0);
|
|
28
78
|
});
|
|
29
|
-
}, [n, s]),
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
79
|
+
}, [n, s]), K(() => {
|
|
80
|
+
const p = c && typeof c == "object" && "current" in c ? c.current : null;
|
|
81
|
+
if (!p) return;
|
|
32
82
|
const F = () => {
|
|
33
|
-
|
|
83
|
+
w && (f(!1), y(!1));
|
|
34
84
|
};
|
|
35
|
-
return
|
|
36
|
-
}, [
|
|
85
|
+
return p.addEventListener("transitionend", F), () => p.removeEventListener("transitionend", F);
|
|
86
|
+
}, [w]), /* @__PURE__ */ e.jsxs("div", { ref: c, className: k("sidebar", d ? "collapsed" : "expanded", "h-full overflow-auto", r), "aria-modal": l || void 0, children: [
|
|
37
87
|
l && d && /* @__PURE__ */ e.jsx(
|
|
38
88
|
"div",
|
|
39
89
|
{
|
|
40
|
-
className:
|
|
41
|
-
onClick: (
|
|
42
|
-
|
|
90
|
+
className: k("navigation-drawer-sidebar-overlay"),
|
|
91
|
+
onClick: (p) => {
|
|
92
|
+
p.preventDefault(), p.stopPropagation(), i && u?.();
|
|
43
93
|
},
|
|
44
94
|
"aria-hidden": "true"
|
|
45
95
|
}
|
|
46
96
|
),
|
|
47
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
97
|
+
/* @__PURE__ */ e.jsxs("div", { className: k("navigation-drawer-sidebar-inner"), children: [
|
|
48
98
|
/* @__PURE__ */ e.jsx("div", { className: "secure-click-margin" }),
|
|
49
|
-
|
|
99
|
+
v && m
|
|
50
100
|
] })
|
|
51
101
|
] });
|
|
52
102
|
})), Xe = Le(null), Je = Le(null), kt = () => {
|
|
53
|
-
const t =
|
|
103
|
+
const t = qe(Xe);
|
|
54
104
|
if (!t) throw new Error("useDrawerState must be used within NavigationDrawer");
|
|
55
105
|
return t;
|
|
56
106
|
}, ie = () => {
|
|
57
|
-
const t =
|
|
107
|
+
const t = qe(Je);
|
|
58
108
|
if (!t) throw new Error("useDrawerActions must be used within NavigationDrawer");
|
|
59
109
|
return t;
|
|
60
|
-
},
|
|
110
|
+
}, pe = (t, r) => typeof t == "function" ? r ? t(r) : null : t, Ge = "navigation-drawer-collapsed", He = () => {
|
|
61
111
|
if (typeof window > "u") return !1;
|
|
62
112
|
try {
|
|
63
113
|
const t = sessionStorage.getItem(Ge);
|
|
@@ -72,106 +122,106 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
72
122
|
} catch {
|
|
73
123
|
}
|
|
74
124
|
}, At = (t) => {
|
|
75
|
-
const { children: r, classNameDrawer: s, classNameSidebar: l, disableDragOpen: i } = t, n =
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
}, []),
|
|
79
|
-
const
|
|
80
|
-
if (!
|
|
81
|
-
|
|
125
|
+
const { children: r, classNameDrawer: s, classNameSidebar: l, disableDragOpen: i } = t, n = T(null), c = T(null), m = t.outletRef ?? T(null), d = T(null), b = T(He()), u = T(!1), v = T("drawer"), f = T(/* @__PURE__ */ new Set()), w = T(/* @__PURE__ */ new Set()), y = T(!1), p = T(null), F = x((o) => {
|
|
126
|
+
const h = c.current;
|
|
127
|
+
h && (h.classList.toggle("collapsed", o), h.classList.toggle("expanded", !o));
|
|
128
|
+
}, []), A = x((o) => {
|
|
129
|
+
const h = d.current;
|
|
130
|
+
if (!h) return;
|
|
131
|
+
h.classList.toggle("collapsed", o), h.classList.toggle("expanded", !o);
|
|
82
132
|
const g = n.current;
|
|
83
133
|
g && (g.classList.toggle("sidebar-collapsed", o), g.classList.toggle("sidebar-expanded", !o));
|
|
84
134
|
}, []), P = x(
|
|
85
|
-
(o, { notify:
|
|
86
|
-
const g =
|
|
87
|
-
|
|
135
|
+
(o, { notify: h = !0 } = {}) => {
|
|
136
|
+
const g = b.current !== o;
|
|
137
|
+
b.current = o, Dt(o), F(o), h && g && f.current.forEach((L) => L(o));
|
|
88
138
|
},
|
|
89
139
|
[F]
|
|
90
140
|
), R = x(
|
|
91
|
-
(o, { notify:
|
|
92
|
-
const g =
|
|
93
|
-
if (
|
|
141
|
+
(o, { notify: h = !0 } = {}) => {
|
|
142
|
+
const g = u.current !== o;
|
|
143
|
+
if (u.current = o, A(o), h && g) {
|
|
94
144
|
const L = !o;
|
|
95
|
-
|
|
145
|
+
w.current.forEach((B) => B(L));
|
|
96
146
|
}
|
|
97
147
|
},
|
|
98
|
-
[
|
|
99
|
-
),
|
|
100
|
-
(o, { notify:
|
|
101
|
-
const g =
|
|
102
|
-
|
|
148
|
+
[A]
|
|
149
|
+
), D = x(
|
|
150
|
+
(o, { notify: h = !0 } = {}) => {
|
|
151
|
+
const g = v.current, L = g !== o;
|
|
152
|
+
v.current = o, window.matchMedia("(min-width: 768px)").matches || P(o !== "drawer", { notify: h });
|
|
103
153
|
const B = g === "sidebar", _ = o === "sidebar";
|
|
104
|
-
|
|
154
|
+
h && L && B !== _ && w.current.forEach((Z) => Z(_)), R(o !== "sidebar", { notify: h }), P(o !== "drawer", { notify: h });
|
|
105
155
|
},
|
|
106
156
|
[P, R]
|
|
107
157
|
), j = x((o) => {
|
|
108
|
-
const
|
|
109
|
-
if (!
|
|
158
|
+
const h = n.current;
|
|
159
|
+
if (!h || window.matchMedia("(min-width: 768px)").matches) return;
|
|
110
160
|
y.current = !0;
|
|
111
161
|
const g = m.current?.offsetLeft ?? 0, L = d.current?.offsetLeft ?? g, B = o === "drawer" ? 0 : o === "sidebar" ? L : g;
|
|
112
|
-
|
|
162
|
+
p.current = B, h.scrollTo({ left: B, behavior: "smooth" });
|
|
113
163
|
const _ = () => {
|
|
114
|
-
y.current = !1,
|
|
164
|
+
y.current = !1, p.current = null, h.removeEventListener("scrollend", _);
|
|
115
165
|
};
|
|
116
|
-
|
|
166
|
+
h.addEventListener("scrollend", _, { once: !0 }), setTimeout(() => {
|
|
117
167
|
y.current && _();
|
|
118
168
|
}, 1e3);
|
|
119
|
-
}, []),
|
|
120
|
-
const o = n.current,
|
|
121
|
-
if (!o || !
|
|
169
|
+
}, []), Y = x(() => {
|
|
170
|
+
const o = n.current, h = m.current;
|
|
171
|
+
if (!o || !h || window.matchMedia("(min-width: 768px)").matches) return;
|
|
122
172
|
const g = [
|
|
123
173
|
{ panel: "drawer", offset: 0 },
|
|
124
|
-
{ panel: "outlet", offset:
|
|
174
|
+
{ panel: "outlet", offset: h.offsetLeft }
|
|
125
175
|
], L = d.current;
|
|
126
176
|
L && g.push({ panel: "sidebar", offset: L.offsetLeft });
|
|
127
177
|
const B = o.scrollLeft;
|
|
128
|
-
let _ = g[0],
|
|
129
|
-
for (let
|
|
130
|
-
const le = Math.abs(B - g[
|
|
131
|
-
le <
|
|
178
|
+
let _ = g[0], Z = Math.abs(B - _.offset);
|
|
179
|
+
for (let q = 1; q < g.length; q++) {
|
|
180
|
+
const le = Math.abs(B - g[q].offset);
|
|
181
|
+
le < Z && (_ = g[q], Z = le);
|
|
132
182
|
}
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
|
|
183
|
+
D(_.panel);
|
|
184
|
+
}, [D]);
|
|
185
|
+
K(() => {
|
|
136
186
|
const o = n.current;
|
|
137
187
|
o && (i?.drawer && o.classList.add("disabled-dragopen"), i?.sidebar && o.classList.add("disabled-dragopen-sidebar"));
|
|
138
|
-
}, [i, n]),
|
|
139
|
-
const o = n.current,
|
|
140
|
-
if (!o || !
|
|
188
|
+
}, [i, n]), K(() => {
|
|
189
|
+
const o = n.current, h = m.current;
|
|
190
|
+
if (!o || !h) return;
|
|
141
191
|
if (window.matchMedia("(min-width: 768px)").matches) {
|
|
142
192
|
const L = He();
|
|
143
193
|
P(L, { notify: !1 }), R(!0, { notify: !1 });
|
|
144
194
|
return;
|
|
145
195
|
}
|
|
146
196
|
requestAnimationFrame(() => {
|
|
147
|
-
o.scrollLeft =
|
|
197
|
+
o.scrollLeft = h.offsetLeft, D("outlet");
|
|
148
198
|
});
|
|
149
|
-
}, [
|
|
199
|
+
}, [D, P, R]), K(() => {
|
|
150
200
|
const o = n.current;
|
|
151
201
|
if (!o || !m.current) return;
|
|
152
202
|
let g = !1, L = 0, B = 0;
|
|
153
203
|
const _ = (S) => {
|
|
154
204
|
L = S.touches[0].clientX, B = S.touches[0].clientY;
|
|
155
|
-
},
|
|
156
|
-
const a = window.getComputedStyle(S),
|
|
157
|
-
return /(auto|scroll|overlay)/.test(
|
|
158
|
-
},
|
|
205
|
+
}, Z = (S, U) => {
|
|
206
|
+
const a = window.getComputedStyle(S), N = U === "x" ? a.overflowX : a.overflowY;
|
|
207
|
+
return /(auto|scroll|overlay)/.test(N) ? U === "x" ? S.scrollWidth > S.clientWidth : S.scrollHeight > S.clientHeight : !1;
|
|
208
|
+
}, q = (S, U) => {
|
|
159
209
|
let a = S;
|
|
160
210
|
for (; a && a !== o; ) {
|
|
161
|
-
if (
|
|
211
|
+
if (Z(a, U))
|
|
162
212
|
return a;
|
|
163
213
|
a = a.parentElement;
|
|
164
214
|
}
|
|
165
215
|
return null;
|
|
166
|
-
}, le = (S, U, a) => a === 0 ? !1 : U === "x" ? a < 0 ? S.scrollLeft + S.clientWidth < S.scrollWidth : S.scrollLeft > 0 : a < 0 ? S.scrollTop + S.clientHeight < S.scrollHeight : S.scrollTop > 0,
|
|
216
|
+
}, le = (S, U, a) => a === 0 ? !1 : U === "x" ? a < 0 ? S.scrollLeft + S.clientWidth < S.scrollWidth : S.scrollLeft > 0 : a < 0 ? S.scrollTop + S.clientHeight < S.scrollHeight : S.scrollTop > 0, be = (S) => {
|
|
167
217
|
if (!(S.target instanceof HTMLElement)) return;
|
|
168
|
-
const U = S.touches[0].clientX - L, a = S.touches[0].clientY - B,
|
|
169
|
-
if (C && le(C,
|
|
218
|
+
const U = S.touches[0].clientX - L, a = S.touches[0].clientY - B, N = Math.abs(U) > Math.abs(a) ? "x" : "y", O = N === "x" ? U : a, C = q(S.target, N);
|
|
219
|
+
if (C && le(C, N, O))
|
|
170
220
|
return;
|
|
171
221
|
const z = o.classList.contains("disabled-dragopen"), de = o.classList.contains("disabled-dragopen-sidebar"), Fe = () => S.cancelable ? (S.preventDefault(), !0) : !1;
|
|
172
|
-
if (
|
|
222
|
+
if (N === "x") {
|
|
173
223
|
if (U > 0) {
|
|
174
|
-
if (
|
|
224
|
+
if (v.current === "sidebar" && !de) {
|
|
175
225
|
g = !0;
|
|
176
226
|
return;
|
|
177
227
|
}
|
|
@@ -180,7 +230,7 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
180
230
|
return;
|
|
181
231
|
}
|
|
182
232
|
} else if (U < 0) {
|
|
183
|
-
if (
|
|
233
|
+
if (v.current === "drawer" && !z) {
|
|
184
234
|
g = !0;
|
|
185
235
|
return;
|
|
186
236
|
}
|
|
@@ -191,29 +241,29 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
191
241
|
}
|
|
192
242
|
g = !0;
|
|
193
243
|
}
|
|
194
|
-
},
|
|
244
|
+
}, xe = () => {
|
|
195
245
|
setTimeout(() => {
|
|
196
|
-
g && (
|
|
246
|
+
g && (Y(), g = !1);
|
|
197
247
|
}, 100);
|
|
198
248
|
};
|
|
199
|
-
return o.addEventListener("touchstart", _, { passive: !0 }), o.addEventListener("touchmove",
|
|
200
|
-
o.removeEventListener("touchstart", _), o.removeEventListener("touchmove",
|
|
249
|
+
return o.addEventListener("touchstart", _, { passive: !0 }), o.addEventListener("touchmove", be, { passive: !1 }), o.addEventListener("touchend", xe), () => {
|
|
250
|
+
o.removeEventListener("touchstart", _), o.removeEventListener("touchmove", be), o.removeEventListener("touchend", xe);
|
|
201
251
|
};
|
|
202
|
-
}, [
|
|
203
|
-
const
|
|
204
|
-
const o = window.matchMedia("(min-width: 768px)").matches,
|
|
252
|
+
}, [Y]);
|
|
253
|
+
const X = x(() => {
|
|
254
|
+
const o = window.matchMedia("(min-width: 768px)").matches, h = !b.current;
|
|
205
255
|
if (o) {
|
|
206
|
-
P(
|
|
256
|
+
P(h);
|
|
207
257
|
return;
|
|
208
258
|
}
|
|
209
|
-
const g =
|
|
210
|
-
|
|
211
|
-
}, [j,
|
|
212
|
-
|
|
213
|
-
toggleCollapse: () =>
|
|
214
|
-
getIsCollapsed: () =>
|
|
215
|
-
subscribeToCollapse: (o) => (
|
|
216
|
-
|
|
259
|
+
const g = h ? "outlet" : "drawer";
|
|
260
|
+
D(g), j(g);
|
|
261
|
+
}, [j, D, P]), G = T(null);
|
|
262
|
+
G.current || (G.current = {
|
|
263
|
+
toggleCollapse: () => X(),
|
|
264
|
+
getIsCollapsed: () => b.current,
|
|
265
|
+
subscribeToCollapse: (o) => (f.current.add(o), () => {
|
|
266
|
+
f.current.delete(o);
|
|
217
267
|
}),
|
|
218
268
|
openSidebar: () => {
|
|
219
269
|
if (d.current) {
|
|
@@ -221,7 +271,7 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
221
271
|
R(!1);
|
|
222
272
|
return;
|
|
223
273
|
}
|
|
224
|
-
|
|
274
|
+
D("sidebar"), j("sidebar");
|
|
225
275
|
}
|
|
226
276
|
},
|
|
227
277
|
closeSidebar: () => {
|
|
@@ -229,55 +279,55 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
229
279
|
R(!0);
|
|
230
280
|
return;
|
|
231
281
|
}
|
|
232
|
-
|
|
282
|
+
D("outlet"), j("outlet");
|
|
233
283
|
},
|
|
234
284
|
toggleSidebar: () => {
|
|
235
285
|
if (!d.current) return;
|
|
236
286
|
if (window.matchMedia("(min-width: 768px)").matches) {
|
|
237
|
-
R(!
|
|
287
|
+
R(!u.current);
|
|
238
288
|
return;
|
|
239
289
|
}
|
|
240
|
-
const o =
|
|
241
|
-
|
|
290
|
+
const o = v.current === "sidebar" ? "outlet" : "sidebar";
|
|
291
|
+
D(o), j(o);
|
|
242
292
|
},
|
|
243
|
-
getIsSidebarOpen: () => d.current ? window.matchMedia("(min-width: 768px)").matches ? !
|
|
244
|
-
subscribeToSidebarOpen: (o) => (
|
|
245
|
-
|
|
293
|
+
getIsSidebarOpen: () => d.current ? window.matchMedia("(min-width: 768px)").matches ? !u.current : v.current === "sidebar" : !1,
|
|
294
|
+
subscribeToSidebarOpen: (o) => (w.current.add(o), () => {
|
|
295
|
+
w.current.delete(o);
|
|
246
296
|
}),
|
|
247
297
|
setDrawerDragEnabled: (o) => {
|
|
248
|
-
const
|
|
249
|
-
if (!
|
|
250
|
-
const g =
|
|
298
|
+
const h = n.current;
|
|
299
|
+
if (!h) return;
|
|
300
|
+
const g = h.scrollLeft;
|
|
251
301
|
if (o) {
|
|
252
|
-
const L =
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
302
|
+
const L = h.style.scrollBehavior;
|
|
303
|
+
h.style.scrollBehavior = "auto", h.classList.remove("disabled-dragopen"), requestAnimationFrame(() => {
|
|
304
|
+
h.scrollLeft = g, requestAnimationFrame(() => {
|
|
305
|
+
h.style.scrollBehavior = L;
|
|
256
306
|
});
|
|
257
307
|
});
|
|
258
308
|
} else
|
|
259
|
-
|
|
309
|
+
h.classList.add("disabled-dragopen");
|
|
260
310
|
},
|
|
261
311
|
setSidebarDragEnabled: (o) => {
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
312
|
+
const h = n.current;
|
|
313
|
+
if (h)
|
|
264
314
|
if (o) {
|
|
265
|
-
const g =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
315
|
+
const g = h.scrollLeft, L = h.style.scrollBehavior;
|
|
316
|
+
h.style.scrollBehavior = "auto", h.classList.remove("disabled-dragopen-sidebar"), requestAnimationFrame(() => {
|
|
317
|
+
h.scrollLeft = g, requestAnimationFrame(() => {
|
|
318
|
+
h.style.scrollBehavior = L;
|
|
269
319
|
});
|
|
270
320
|
});
|
|
271
321
|
} else
|
|
272
|
-
|
|
322
|
+
h.classList.add("disabled-dragopen-sidebar");
|
|
273
323
|
}
|
|
274
324
|
});
|
|
275
|
-
const te =
|
|
325
|
+
const te = G.current, H = typeof r == "function" ? r(te) : r, M = mt.toArray(H);
|
|
276
326
|
let E = null, V = null, W = null;
|
|
277
327
|
const re = [];
|
|
278
328
|
let ne = null, se = null;
|
|
279
329
|
M.forEach((o) => {
|
|
280
|
-
if (!
|
|
330
|
+
if (!ve(o)) {
|
|
281
331
|
re.push(o);
|
|
282
332
|
return;
|
|
283
333
|
}
|
|
@@ -285,11 +335,11 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
285
335
|
E = o;
|
|
286
336
|
return;
|
|
287
337
|
}
|
|
288
|
-
if (o.type ===
|
|
338
|
+
if (o.type === we && !V) {
|
|
289
339
|
V = o;
|
|
290
340
|
return;
|
|
291
341
|
}
|
|
292
|
-
if (o.type ===
|
|
342
|
+
if (o.type === Ne && !W) {
|
|
293
343
|
W = o;
|
|
294
344
|
return;
|
|
295
345
|
}
|
|
@@ -303,11 +353,11 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
303
353
|
}
|
|
304
354
|
re.push(o);
|
|
305
355
|
});
|
|
306
|
-
const ce = !!V, Re = V ?? (re.length ? /* @__PURE__ */ e.jsx(
|
|
307
|
-
isCollapsed:
|
|
308
|
-
isSidebarOpen: !
|
|
309
|
-
}), [
|
|
310
|
-
return /* @__PURE__ */ e.jsx(Xe.Provider, { value: oe, children: /* @__PURE__ */ e.jsx(Je.Provider, { value: te, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: n, className:
|
|
356
|
+
const ce = !!V, Re = V ?? (re.length ? /* @__PURE__ */ e.jsx(we, { children: re }) : null), he = ce ? re : [], ae = ne ?? (!!ne ? /* @__PURE__ */ e.jsx(ke, { children: H }) : null), Ce = W ?? (!!W ? /* @__PURE__ */ e.jsx(Ne, { children: W }) : null), je = !!se, Q = se, oe = ue(() => ({
|
|
357
|
+
isCollapsed: b.current,
|
|
358
|
+
isSidebarOpen: !u.current
|
|
359
|
+
}), [b.current, u.current]);
|
|
360
|
+
return /* @__PURE__ */ e.jsx(Xe.Provider, { value: oe, children: /* @__PURE__ */ e.jsx(Je.Provider, { value: te, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: n, className: k(
|
|
311
361
|
"w-full h-full max-h-dvh overflow-y-hidden",
|
|
312
362
|
je ? "navigation-drawer-with-sidebar" : "navigation-drawer",
|
|
313
363
|
i?.drawer ? "disabled-dragopen" : "",
|
|
@@ -317,19 +367,19 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
317
367
|
"div",
|
|
318
368
|
{
|
|
319
369
|
ref: c,
|
|
320
|
-
className:
|
|
370
|
+
className: k(
|
|
321
371
|
"bg-neutral-default-default border-r border-neutral-strong-default h-dvh md:h-screen p-4 overflow-hidden drawer flex flex-col gap-4",
|
|
322
|
-
|
|
372
|
+
b.current ? "collapsed" : "expanded w-min",
|
|
323
373
|
s
|
|
324
374
|
),
|
|
325
375
|
children: [
|
|
326
376
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col flex-1 gap-4 overflow-hidden", children: [
|
|
327
377
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
328
|
-
/* @__PURE__ */ e.jsx(Qe, { onToggleCollapse:
|
|
378
|
+
/* @__PURE__ */ e.jsx(Qe, { onToggleCollapse: X }),
|
|
329
379
|
E
|
|
330
380
|
] }),
|
|
331
381
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 overflow-hidden relative flex-col", children: [
|
|
332
|
-
|
|
382
|
+
he,
|
|
333
383
|
Re
|
|
334
384
|
] })
|
|
335
385
|
] }),
|
|
@@ -337,52 +387,52 @@ const Ye = T(Ne(({ children: t, className: r, context: s, modal: l = !1, closeOn
|
|
|
337
387
|
]
|
|
338
388
|
}
|
|
339
389
|
),
|
|
340
|
-
ae &&
|
|
341
|
-
|
|
390
|
+
ae && ve(ae) ? Ue.cloneElement(ae, { ref: m }) : ae,
|
|
391
|
+
Q && ve(Q) ? Ue.cloneElement(Q, {
|
|
342
392
|
ref: d,
|
|
343
|
-
className:
|
|
344
|
-
}) :
|
|
393
|
+
className: k("sidebar", Q.props?.className, l)
|
|
394
|
+
}) : Q
|
|
345
395
|
] }) }) });
|
|
346
|
-
}, Ve =
|
|
396
|
+
}, Ve = I(At), Qe = I(({ onToggleCollapse: t }) => /* @__PURE__ */ e.jsx(
|
|
347
397
|
"button",
|
|
348
398
|
{
|
|
349
399
|
type: "button",
|
|
350
400
|
onClick: t,
|
|
351
401
|
className: "collapse-button cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300 w-max",
|
|
352
|
-
children: /* @__PURE__ */ e.jsx(
|
|
402
|
+
children: /* @__PURE__ */ e.jsx(xt, { size: 32, className: "transition-transform duration-300 p-1" })
|
|
353
403
|
}
|
|
354
404
|
), (t, r) => t.onToggleCollapse === r.onToggleCollapse);
|
|
355
405
|
Qe.displayName = "NavigationDrawerCollapseButton";
|
|
356
|
-
const Ee =
|
|
357
|
-
const l =
|
|
358
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
406
|
+
const Ee = I(({ children: t, className: r, context: s }) => {
|
|
407
|
+
const l = pe(t, s);
|
|
408
|
+
return /* @__PURE__ */ e.jsx("div", { className: k("flex items-center justify-between", r), children: l });
|
|
359
409
|
});
|
|
360
410
|
Ee.displayName = "NavigationDrawerHeader";
|
|
361
|
-
const
|
|
362
|
-
const i =
|
|
363
|
-
return /* @__PURE__ */ e.jsx("div", { ...l, className:
|
|
411
|
+
const we = I(({ children: t, className: r, context: s, ...l }) => {
|
|
412
|
+
const i = pe(t, s);
|
|
413
|
+
return /* @__PURE__ */ e.jsx("div", { ...l, className: k("w-full flex-1 drawer-content", r), children: i });
|
|
364
414
|
});
|
|
365
|
-
|
|
366
|
-
const
|
|
367
|
-
const l =
|
|
368
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
415
|
+
we.displayName = "NavigationDrawerContent";
|
|
416
|
+
const Ne = I(({ children: t, className: r, context: s }) => {
|
|
417
|
+
const l = pe(t, s);
|
|
418
|
+
return /* @__PURE__ */ e.jsx("div", { className: k("flex items-center justify-between", r), children: l });
|
|
369
419
|
});
|
|
370
|
-
|
|
371
|
-
const Ze =
|
|
420
|
+
Ne.displayName = "NavigationDrawerFooter";
|
|
421
|
+
const Ze = I(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: k("w-full border-t border-neutral-strong-default ", t) }));
|
|
372
422
|
Ze.displayName = "NavigationDrawerSpacer";
|
|
373
|
-
const ke =
|
|
374
|
-
const i =
|
|
375
|
-
return /* @__PURE__ */ e.jsx("div", { id: "navigation-drawer-outlet", ref: l, className:
|
|
376
|
-
}), (t, r) => t.children === r.children && t.className === r.className),
|
|
423
|
+
const ke = I(me(({ children: t, className: r, context: s }, l) => {
|
|
424
|
+
const i = pe(t, s);
|
|
425
|
+
return /* @__PURE__ */ e.jsx("div", { id: "navigation-drawer-outlet", ref: l, className: k("flex-1 overflow-auto ", r), children: i });
|
|
426
|
+
}), (t, r) => t.children === r.children && t.className === r.className), $ = Object.assign(Ve, {
|
|
377
427
|
Root: Ve,
|
|
378
428
|
Header: Ee,
|
|
379
|
-
Content:
|
|
380
|
-
Footer:
|
|
429
|
+
Content: we,
|
|
430
|
+
Footer: Ne,
|
|
381
431
|
Spacer: Ze,
|
|
382
432
|
Outlet: ke,
|
|
383
433
|
Sidebar: Ye
|
|
384
434
|
});
|
|
385
|
-
|
|
435
|
+
$.displayName = "NavigationDrawer";
|
|
386
436
|
const Lt = "hover:bg-neutral-medium-hover", Ot = Te("", {
|
|
387
437
|
variants: {
|
|
388
438
|
isSelected: {
|
|
@@ -395,7 +445,7 @@ const Lt = "hover:bg-neutral-medium-hover", Ot = Te("", {
|
|
|
395
445
|
}
|
|
396
446
|
}
|
|
397
447
|
}), Tt = Te(
|
|
398
|
-
|
|
448
|
+
k(
|
|
399
449
|
"select-none line-clamp-1 min-w-max",
|
|
400
450
|
"prometeo-fonts-label-large transition-colors duration-300 ease-out"
|
|
401
451
|
),
|
|
@@ -418,7 +468,7 @@ const Lt = "hover:bg-neutral-medium-hover", Ot = Te("", {
|
|
|
418
468
|
]
|
|
419
469
|
}
|
|
420
470
|
), Se = Te(
|
|
421
|
-
|
|
471
|
+
k(
|
|
422
472
|
"transition-colors duration-300 ease-out min-w-max"
|
|
423
473
|
),
|
|
424
474
|
{
|
|
@@ -449,24 +499,24 @@ const Lt = "hover:bg-neutral-medium-hover", Ot = Te("", {
|
|
|
449
499
|
hasSublinks: c,
|
|
450
500
|
subLinksCollapsed: m,
|
|
451
501
|
onToggleSublinks: d,
|
|
452
|
-
as:
|
|
453
|
-
onClick:
|
|
454
|
-
onAuxClick:
|
|
455
|
-
disabled:
|
|
456
|
-
tooltipText:
|
|
502
|
+
as: b = "div",
|
|
503
|
+
onClick: u,
|
|
504
|
+
onAuxClick: v,
|
|
505
|
+
disabled: f = !1,
|
|
506
|
+
tooltipText: w
|
|
457
507
|
} = t, y = (P) => {
|
|
458
|
-
|
|
459
|
-
},
|
|
508
|
+
f || u?.(P);
|
|
509
|
+
}, p = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
460
510
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center flex-nowrap", children: [
|
|
461
|
-
s && (
|
|
462
|
-
/* @__PURE__ */ e.jsx("label", { className: Tt({ disabled:
|
|
511
|
+
s && (w ? /* @__PURE__ */ e.jsx(vt, { title: w, disabled: f, children: /* @__PURE__ */ e.jsx(s, { size: 24, className: Se({ disabled: f, isSelected: n }) }) }) : /* @__PURE__ */ e.jsx(s, { size: 24, className: Se({ disabled: f, isSelected: n }) })),
|
|
512
|
+
/* @__PURE__ */ e.jsx("label", { className: Tt({ disabled: f, isSelected: n }), children: r })
|
|
463
513
|
] }),
|
|
464
514
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 items-center", children: [
|
|
465
|
-
l && l ? /* @__PURE__ */ e.jsx(
|
|
515
|
+
l && l ? /* @__PURE__ */ e.jsx(gt, { count: l, maxCount: 9, className: "badge", disabled: f }) : "",
|
|
466
516
|
c && /* @__PURE__ */ e.jsx(
|
|
467
517
|
"div",
|
|
468
518
|
{
|
|
469
|
-
className:
|
|
519
|
+
className: k(
|
|
470
520
|
"sublinks-toggle",
|
|
471
521
|
"transition-all duration-200",
|
|
472
522
|
"rounded-full relative grid place-items-center size-6",
|
|
@@ -476,49 +526,49 @@ const Lt = "hover:bg-neutral-medium-hover", Ot = Te("", {
|
|
|
476
526
|
children: /* @__PURE__ */ e.jsx(
|
|
477
527
|
"button",
|
|
478
528
|
{
|
|
479
|
-
disabled:
|
|
529
|
+
disabled: f,
|
|
480
530
|
type: "button",
|
|
481
531
|
onClick: d,
|
|
482
|
-
className:
|
|
483
|
-
children: /* @__PURE__ */ e.jsx(
|
|
532
|
+
className: k("absolute cursor-pointer hover:text-primary-default-hover top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 p-2 z-100 select-none", Se({ disabled: f, isSelected: n }), f && "pointer-events-none"),
|
|
533
|
+
children: /* @__PURE__ */ e.jsx(wt, {})
|
|
484
534
|
}
|
|
485
535
|
)
|
|
486
536
|
}
|
|
487
537
|
)
|
|
488
538
|
] })
|
|
489
|
-
] }), F =
|
|
539
|
+
] }), F = k(
|
|
490
540
|
"group navitem",
|
|
491
541
|
"h-12 flex-1 flex items-center p-3 rounded-lg justify-between w-full",
|
|
492
542
|
"transition-all duration-300",
|
|
493
543
|
Lt,
|
|
494
|
-
Ot({ isSelected: n, disabled:
|
|
544
|
+
Ot({ isSelected: n, disabled: f }),
|
|
495
545
|
i
|
|
496
546
|
);
|
|
497
|
-
if (
|
|
547
|
+
if (b === "a") {
|
|
498
548
|
const P = {
|
|
499
549
|
onClick: y,
|
|
500
|
-
onAuxClick:
|
|
550
|
+
onAuxClick: v,
|
|
501
551
|
className: F
|
|
502
552
|
};
|
|
503
|
-
return /* @__PURE__ */ e.jsx("a", { ...P, children:
|
|
553
|
+
return /* @__PURE__ */ e.jsx("a", { ...P, children: p });
|
|
504
554
|
}
|
|
505
|
-
if (
|
|
555
|
+
if (b === "button") {
|
|
506
556
|
const P = {
|
|
507
557
|
onClick: y,
|
|
508
558
|
type: "button",
|
|
509
559
|
className: F
|
|
510
560
|
};
|
|
511
|
-
return /* @__PURE__ */ e.jsx("button", { ...P, children:
|
|
561
|
+
return /* @__PURE__ */ e.jsx("button", { ...P, children: p });
|
|
512
562
|
}
|
|
513
|
-
const
|
|
563
|
+
const A = {
|
|
514
564
|
onClick: y,
|
|
515
565
|
className: F
|
|
516
566
|
};
|
|
517
|
-
return /* @__PURE__ */ e.jsx("div", { ...
|
|
518
|
-
}, Pe =
|
|
567
|
+
return /* @__PURE__ */ e.jsx("div", { ...A, children: p });
|
|
568
|
+
}, Pe = I(It);
|
|
519
569
|
Pe.displayName = "NavigationDrawerItemBase";
|
|
520
570
|
const Et = (t) => {
|
|
521
|
-
const { title: r, icon: s, count: l, className: i, isActive: n, onClick: c, isView: m = !0, disabled: d, tooltipText:
|
|
571
|
+
const { title: r, icon: s, count: l, className: i, isActive: n, onClick: c, isView: m = !0, disabled: d, tooltipText: b } = t;
|
|
522
572
|
return m ? /* @__PURE__ */ e.jsx(
|
|
523
573
|
Pe,
|
|
524
574
|
{
|
|
@@ -530,29 +580,29 @@ const Et = (t) => {
|
|
|
530
580
|
isSelected: n,
|
|
531
581
|
onClick: c,
|
|
532
582
|
disabled: d,
|
|
533
|
-
tooltipText:
|
|
583
|
+
tooltipText: b
|
|
534
584
|
}
|
|
535
585
|
) : null;
|
|
536
|
-
}, et =
|
|
586
|
+
}, et = I(Et);
|
|
537
587
|
et.displayName = "NavigationDrawerActionItem";
|
|
538
|
-
const Pt = ({ actions: t, activeActionId: r, onActionClick: s, className: l }) => /* @__PURE__ */ e.jsx(ye, { className:
|
|
588
|
+
const Pt = ({ actions: t, activeActionId: r, onActionClick: s, className: l }) => /* @__PURE__ */ e.jsx(ye, { className: k("flex flex-col gap-2 w-full ", l), scrollbarProps: { hide: !0 }, persistScroll: "navigation-actions", indicators: {
|
|
539
589
|
top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
|
|
540
590
|
bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
|
|
541
591
|
}, children: t?.map((i) => {
|
|
542
|
-
const { id: n, onClick: c, isView: m = !0, payload: d, ...
|
|
592
|
+
const { id: n, onClick: c, isView: m = !0, payload: d, ...b } = i, u = n === r, v = () => {
|
|
543
593
|
s?.(n, d), c?.();
|
|
544
594
|
};
|
|
545
595
|
return m ? /* @__PURE__ */ e.jsx(
|
|
546
596
|
et,
|
|
547
597
|
{
|
|
548
|
-
...
|
|
598
|
+
...b,
|
|
549
599
|
id: n,
|
|
550
|
-
isActive:
|
|
551
|
-
onClick:
|
|
600
|
+
isActive: u,
|
|
601
|
+
onClick: v
|
|
552
602
|
},
|
|
553
603
|
n
|
|
554
604
|
) : null;
|
|
555
|
-
}) }), tt =
|
|
605
|
+
}) }), tt = I(Pt);
|
|
556
606
|
tt.displayName = "NavigationDrawerActions";
|
|
557
607
|
const _t = (t) => {
|
|
558
608
|
const { className: r, title: s, path: l, onClick: i, isSelected: n, parentPath: c } = t, m = x(() => {
|
|
@@ -560,8 +610,8 @@ const _t = (t) => {
|
|
|
560
610
|
}, [l]), d = x(() => {
|
|
561
611
|
if (l.startsWith("./")) {
|
|
562
612
|
if (!c) return;
|
|
563
|
-
const
|
|
564
|
-
window.open(
|
|
613
|
+
const b = c + l.slice(2);
|
|
614
|
+
window.open(b, "_blank");
|
|
565
615
|
} else
|
|
566
616
|
window.open(l, "_blank");
|
|
567
617
|
}, [l]);
|
|
@@ -570,7 +620,7 @@ const _t = (t) => {
|
|
|
570
620
|
{
|
|
571
621
|
onClick: m,
|
|
572
622
|
onAuxClick: d,
|
|
573
|
-
className:
|
|
623
|
+
className: k(
|
|
574
624
|
"group",
|
|
575
625
|
"transition-all duration-300 ease-in-out cursor-pointer",
|
|
576
626
|
"h-10 w-full rounded-lg py-[11px] px-3",
|
|
@@ -578,63 +628,63 @@ const _t = (t) => {
|
|
|
578
628
|
n && "bg-neutral-medium-selected hover:bg-neutral-medium-hover active:bg-transparent focus:bg-transparent",
|
|
579
629
|
r
|
|
580
630
|
),
|
|
581
|
-
children: /* @__PURE__ */ e.jsx("p", { className:
|
|
631
|
+
children: /* @__PURE__ */ e.jsx("p", { className: k(
|
|
582
632
|
"prometeo-fonts-label-large text-neutral-medium-default",
|
|
583
633
|
"group-active:text-neutral-default-focused group-focus:text-neutral-default-focused",
|
|
584
634
|
n && "text-primary-default-default group-hover:text-primary-default-hover group-focus:text-primary-default-focused group-active:text-primary-default-focused"
|
|
585
635
|
), children: s })
|
|
586
636
|
}
|
|
587
637
|
);
|
|
588
|
-
}, rt =
|
|
638
|
+
}, rt = I(_t);
|
|
589
639
|
rt.displayName = "NavItemSecondary";
|
|
590
|
-
const Rt =
|
|
591
|
-
const [s, l] =
|
|
592
|
-
|
|
640
|
+
const Rt = me((t, r) => {
|
|
641
|
+
const [s, l] = J(!0), i = T(null), { path: n, title: c, icon: m, count: d, className: b, isSelected: u = !1, onClick: v, sublinks: f, toggleCollapse: w, getIsCollapsed: y, subscribeToCollapse: p, isView: F = !0, disabled: A, tooltipText: P } = t;
|
|
642
|
+
K(() => p ? p((E) => {
|
|
593
643
|
E && l(!0);
|
|
594
|
-
}) : void 0, [
|
|
644
|
+
}) : void 0, [p]);
|
|
595
645
|
const R = x(() => {
|
|
596
646
|
l((M) => !M);
|
|
597
|
-
}, []),
|
|
647
|
+
}, []), D = x((M) => {
|
|
598
648
|
l(M);
|
|
599
649
|
}, []), j = {
|
|
600
650
|
toggle: R,
|
|
601
|
-
setIsCollapsed:
|
|
651
|
+
setIsCollapsed: D,
|
|
602
652
|
get isCollapsed() {
|
|
603
653
|
return s;
|
|
604
654
|
},
|
|
605
655
|
get isDrawerCollapsed() {
|
|
606
656
|
return y?.() ?? !1;
|
|
607
657
|
},
|
|
608
|
-
toggleDrawerCollapse:
|
|
609
|
-
subscribeToCollapse:
|
|
658
|
+
toggleDrawerCollapse: w,
|
|
659
|
+
subscribeToCollapse: p
|
|
610
660
|
};
|
|
611
|
-
Oe(r, () => j, [j, s, y,
|
|
612
|
-
const
|
|
661
|
+
Oe(r, () => j, [j, s, y, w]);
|
|
662
|
+
const Y = m, X = x(() => {
|
|
613
663
|
const M = y?.() ?? !1;
|
|
614
|
-
if (
|
|
615
|
-
|
|
664
|
+
if (f && f.length > 0 && M) {
|
|
665
|
+
D(!1), w?.();
|
|
616
666
|
return;
|
|
617
667
|
}
|
|
618
|
-
|
|
619
|
-
}, [n,
|
|
668
|
+
v?.(n);
|
|
669
|
+
}, [n, v, f, w, D, y]), G = x(() => {
|
|
620
670
|
window.open(n, "_blank");
|
|
621
671
|
}, [n]), te = () => {
|
|
622
|
-
if (!
|
|
623
|
-
if (t.subLinksRender &&
|
|
624
|
-
return t.subLinksRender(
|
|
672
|
+
if (!f || A) return null;
|
|
673
|
+
if (t.subLinksRender && f)
|
|
674
|
+
return t.subLinksRender(f, j);
|
|
625
675
|
const M = x((E) => {
|
|
626
676
|
if (E.startsWith("./")) {
|
|
627
677
|
const V = n + E.slice(2);
|
|
628
|
-
|
|
678
|
+
v?.(V);
|
|
629
679
|
} else
|
|
630
|
-
|
|
680
|
+
v?.(E);
|
|
631
681
|
}, [n]);
|
|
632
|
-
return
|
|
682
|
+
return K(() => {
|
|
633
683
|
const E = i.current;
|
|
634
684
|
if (!E) return;
|
|
635
685
|
const V = E.scrollHeight;
|
|
636
686
|
E.style.setProperty("--sublinks-max-height", `${V}px`);
|
|
637
|
-
}, []), /* @__PURE__ */ e.jsx("div", { ref: i, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children:
|
|
687
|
+
}, []), /* @__PURE__ */ e.jsx("div", { ref: i, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children: f.map((E) => /* @__PURE__ */ e.jsx(rt, { ...E, onClick: M, parentPath: n }, `${E.title}-${E.path}`)) });
|
|
638
688
|
}, H = (M) => {
|
|
639
689
|
M.stopPropagation(), M.preventDefault(), R();
|
|
640
690
|
};
|
|
@@ -644,36 +694,36 @@ const Rt = Ne((t, r) => {
|
|
|
644
694
|
{
|
|
645
695
|
as: "a",
|
|
646
696
|
title: c,
|
|
647
|
-
icon:
|
|
697
|
+
icon: Y,
|
|
648
698
|
count: d,
|
|
649
|
-
className:
|
|
650
|
-
isSelected:
|
|
651
|
-
hasSublinks: !!
|
|
699
|
+
className: b,
|
|
700
|
+
isSelected: u,
|
|
701
|
+
hasSublinks: !!f,
|
|
652
702
|
subLinksCollapsed: s,
|
|
653
703
|
onToggleSublinks: H,
|
|
654
|
-
onClick:
|
|
655
|
-
onAuxClick:
|
|
656
|
-
disabled:
|
|
704
|
+
onClick: X,
|
|
705
|
+
onAuxClick: G,
|
|
706
|
+
disabled: A,
|
|
657
707
|
tooltipText: P
|
|
658
708
|
}
|
|
659
709
|
),
|
|
660
710
|
te()
|
|
661
711
|
] }) : null;
|
|
662
|
-
}), st =
|
|
712
|
+
}), st = I(Rt);
|
|
663
713
|
st.displayName = "NavigationDrawerLinkItem";
|
|
664
714
|
const Mt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: l, toggleCollapse: i, subscribeToCollapse: n }) => {
|
|
665
715
|
const { pathname: c } = ht();
|
|
666
|
-
return /* @__PURE__ */ e.jsx(ye, { className:
|
|
716
|
+
return /* @__PURE__ */ e.jsx(ye, { className: k("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, persistScroll: "navigation-links", indicators: {
|
|
667
717
|
top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
|
|
668
718
|
bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
|
|
669
719
|
}, children: t?.map((m, d) => {
|
|
670
|
-
const
|
|
720
|
+
const b = m.isSelected || m.path === c || (m.relatedPaths?.some((u) => c.startsWith(u)) ?? !1);
|
|
671
721
|
return /* @__PURE__ */ e.jsx(
|
|
672
722
|
st,
|
|
673
723
|
{
|
|
674
724
|
className: "",
|
|
675
725
|
...m,
|
|
676
|
-
isSelected:
|
|
726
|
+
isSelected: b,
|
|
677
727
|
onClick: r,
|
|
678
728
|
toggleCollapse: i,
|
|
679
729
|
getIsCollapsed: l,
|
|
@@ -684,12 +734,12 @@ const Mt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: l,
|
|
|
684
734
|
d
|
|
685
735
|
);
|
|
686
736
|
}) });
|
|
687
|
-
}, nt =
|
|
737
|
+
}, nt = I(Mt);
|
|
688
738
|
nt.displayName = "NavigationDrawerNavlinks";
|
|
689
|
-
const at =
|
|
739
|
+
const at = I(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId: l, onActionClick: i }) => {
|
|
690
740
|
const { getIsCollapsed: n, toggleCollapse: c, subscribeToCollapse: m } = ie();
|
|
691
741
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
692
|
-
/* @__PURE__ */ e.jsx(
|
|
742
|
+
/* @__PURE__ */ e.jsx($.Spacer, { className: "pb-3" }),
|
|
693
743
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col overflow-hidden h-full gap-4", children: [
|
|
694
744
|
/* @__PURE__ */ e.jsx(
|
|
695
745
|
nt,
|
|
@@ -717,9 +767,9 @@ const at = T(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId:
|
|
|
717
767
|
at.displayName = "PyrionNavigationDrawer.Content";
|
|
718
768
|
const Bt = ({ name: t, imageUrl: r, avatarSize: s = "xxs", subImageUrl: l, className: i, mainSlot: n = t, secondarySlot: c }) => {
|
|
719
769
|
const m = x(() => n ? typeof n == "string" ? /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-label-large text-neutral-default-default line-clamp-1 select-text", children: n }) : typeof n == "function" ? n() : n : null, [n]), d = x(() => c ? typeof c == "string" ? /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-pre text-ellipsis select-text", children: c }) : typeof c == "function" ? c() : c : null, [c]);
|
|
720
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
770
|
+
return /* @__PURE__ */ e.jsxs("div", { className: k("flex items-center gap-2 p-3 rounded-lg max-w-full max-h-full select-none ", i), children: [
|
|
721
771
|
/* @__PURE__ */ e.jsx(
|
|
722
|
-
|
|
772
|
+
Nt,
|
|
723
773
|
{
|
|
724
774
|
fallbackText: t,
|
|
725
775
|
sizeImage: s,
|
|
@@ -728,12 +778,12 @@ const Bt = ({ name: t, imageUrl: r, avatarSize: s = "xxs", subImageUrl: l, class
|
|
|
728
778
|
subImageUrl: l
|
|
729
779
|
}
|
|
730
780
|
),
|
|
731
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
781
|
+
/* @__PURE__ */ e.jsxs("div", { className: k("usercard-content flex flex-col gap-0 flex-1 overflow-hidden w-full transition-all duration-300 ease-in-out ", c && "gap-1"), children: [
|
|
732
782
|
/* @__PURE__ */ e.jsx("div", { className: "w-full", children: m() }),
|
|
733
783
|
/* @__PURE__ */ e.jsx("div", { className: "flex gap-1 justify-between overflow-hidden relative w-full", children: d() })
|
|
734
784
|
] })
|
|
735
785
|
] });
|
|
736
|
-
}, _e =
|
|
786
|
+
}, _e = I(Bt);
|
|
737
787
|
_e.displayName = "UserCard";
|
|
738
788
|
const Ft = (t) => {
|
|
739
789
|
const { sessions: r, onSessionClick: s, secondarySlot: l, subImageUrlAccessor: i } = t;
|
|
@@ -744,23 +794,23 @@ const Ft = (t) => {
|
|
|
744
794
|
}, c = (d) => {
|
|
745
795
|
if (!i)
|
|
746
796
|
return;
|
|
747
|
-
const
|
|
748
|
-
if (!
|
|
797
|
+
const b = d.metadata;
|
|
798
|
+
if (!b)
|
|
749
799
|
return;
|
|
750
|
-
const
|
|
751
|
-
if (
|
|
752
|
-
return typeof
|
|
800
|
+
const u = ge({ metadata: b }, i);
|
|
801
|
+
if (u != null)
|
|
802
|
+
return typeof u == "string" ? u : String(u);
|
|
753
803
|
}, m = x((d) => typeof l == "function" ? l(d) : l, [l]);
|
|
754
804
|
return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((d) => {
|
|
755
|
-
const { auth_id:
|
|
805
|
+
const { auth_id: b } = d;
|
|
756
806
|
return /* @__PURE__ */ e.jsx(ee, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(ee.Content, { onClick: () => n(d), className: "p-0 group-data-[expanded=true]/ticketcard:border-none", children: /* @__PURE__ */ e.jsx(
|
|
757
807
|
_e,
|
|
758
808
|
{
|
|
759
|
-
name:
|
|
809
|
+
name: b.name,
|
|
760
810
|
avatarSize: "xxs",
|
|
761
811
|
secondarySlot: m(d),
|
|
762
812
|
subImageUrl: c(d),
|
|
763
|
-
imageUrl:
|
|
813
|
+
imageUrl: b.profile_picture,
|
|
764
814
|
className: "pyrion-navigation-drawer-user-card"
|
|
765
815
|
},
|
|
766
816
|
d.token
|
|
@@ -776,18 +826,18 @@ const Ft = (t) => {
|
|
|
776
826
|
onProfileClick: c,
|
|
777
827
|
options: m,
|
|
778
828
|
currentSystemId: d,
|
|
779
|
-
userOptionsControls:
|
|
780
|
-
mobileAppSwitcherControls:
|
|
829
|
+
userOptionsControls: b,
|
|
830
|
+
mobileAppSwitcherControls: u
|
|
781
831
|
}) => {
|
|
782
|
-
const { getIsCollapsed:
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
-
}, [
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
}), [
|
|
789
|
-
/* @__PURE__ */ e.jsx(
|
|
790
|
-
/* @__PURE__ */ e.jsxs(ee, { className: "", controls:
|
|
832
|
+
const { getIsCollapsed: v, toggleCollapse: f, subscribeToCollapse: w } = ie(), y = x(() => {
|
|
833
|
+
const p = v();
|
|
834
|
+
p ? (f(), b.current?.open()) : c?.(p);
|
|
835
|
+
}, [v, f, b, c]);
|
|
836
|
+
return K(() => w((p) => {
|
|
837
|
+
p && (b.current?.close(), u.current?.close());
|
|
838
|
+
}), [w, b, u]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
839
|
+
/* @__PURE__ */ e.jsx($.Spacer, { className: "mb-3" }),
|
|
840
|
+
/* @__PURE__ */ e.jsxs(ee, { className: "", controls: b, children: [
|
|
791
841
|
/* @__PURE__ */ e.jsx(ee.Content, { onClick: y, children: /* @__PURE__ */ e.jsx(
|
|
792
842
|
_e,
|
|
793
843
|
{
|
|
@@ -823,7 +873,7 @@ const Ft = (t) => {
|
|
|
823
873
|
animateIcon: !1,
|
|
824
874
|
variant: "text",
|
|
825
875
|
label: "Cerrar sesión",
|
|
826
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
876
|
+
icon: /* @__PURE__ */ e.jsx(yt, {}),
|
|
827
877
|
size: "small",
|
|
828
878
|
color: "secondary"
|
|
829
879
|
}
|
|
@@ -832,7 +882,7 @@ const Ft = (t) => {
|
|
|
832
882
|
] })
|
|
833
883
|
] })
|
|
834
884
|
] });
|
|
835
|
-
}, ot =
|
|
885
|
+
}, ot = I(Ut, (t, r) => {
|
|
836
886
|
const s = Object.keys(t), l = Object.keys(r);
|
|
837
887
|
if (s.length !== l.length)
|
|
838
888
|
return !1;
|
|
@@ -874,7 +924,7 @@ const zt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ee,
|
|
|
874
924
|
] }),
|
|
875
925
|
/* @__PURE__ */ e.jsx("div", {})
|
|
876
926
|
] })
|
|
877
|
-
] }), De =
|
|
927
|
+
] }), De = I(({ enabled_systems: t, onClick: r, currentSystemId: s }) => {
|
|
878
928
|
const l = x(() => {
|
|
879
929
|
if (t) {
|
|
880
930
|
if (s) {
|
|
@@ -892,7 +942,7 @@ const zt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ee,
|
|
|
892
942
|
{
|
|
893
943
|
src: l().coverImage,
|
|
894
944
|
alt: "System Logo",
|
|
895
|
-
className:
|
|
945
|
+
className: k("w-full h-12 rounded object-contain system-cover-image ", i && "cursor-pointer"),
|
|
896
946
|
draggable: !1,
|
|
897
947
|
onClick: r
|
|
898
948
|
}
|
|
@@ -902,7 +952,7 @@ const zt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ee,
|
|
|
902
952
|
{
|
|
903
953
|
src: l().thumbnail,
|
|
904
954
|
alt: "System Logo",
|
|
905
|
-
className:
|
|
955
|
+
className: k("w-12 h-12 rounded object-cover system-thumbnail ", i && "cursor-pointer"),
|
|
906
956
|
draggable: !1,
|
|
907
957
|
onClick: r
|
|
908
958
|
}
|
|
@@ -910,7 +960,7 @@ const zt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ee,
|
|
|
910
960
|
] });
|
|
911
961
|
}, (t, r) => t.enabled_systems === r.enabled_systems && t.onClick === r.onClick && t.currentSystemId === r.currentSystemId);
|
|
912
962
|
De.displayName = "PyrionNavigationDrawer.SystemLogo";
|
|
913
|
-
const lt =
|
|
963
|
+
const lt = I(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: l, mobileAppSwitcherControls: i }) => {
|
|
914
964
|
const { getIsCollapsed: n } = ie(), c = We(), m = x(() => {
|
|
915
965
|
if (t) {
|
|
916
966
|
const d = n();
|
|
@@ -942,31 +992,31 @@ const lt = T(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: l, mob
|
|
|
942
992
|
});
|
|
943
993
|
lt.displayName = "PyrionNavigationDrawer.Header";
|
|
944
994
|
const Ht = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s }) => {
|
|
945
|
-
const [l, i] =
|
|
995
|
+
const [l, i] = J([]), n = T(/* @__PURE__ */ new Set()), c = x((f, w = "top") => {
|
|
946
996
|
i((y) => {
|
|
947
|
-
const
|
|
948
|
-
return n.current.forEach((F) => F(
|
|
997
|
+
const p = Array.isArray(f) ? w === "bottom" ? [...y, ...f] : [...f, ...y] : w === "bottom" ? [...y, f] : [f, ...y];
|
|
998
|
+
return n.current.forEach((F) => F(p, p.length)), p;
|
|
949
999
|
});
|
|
950
|
-
}, []), m = x((
|
|
951
|
-
n.current.delete(
|
|
952
|
-
}), []), d = x((
|
|
953
|
-
i((
|
|
954
|
-
const y = Array.isArray(
|
|
955
|
-
return n.current.forEach((
|
|
1000
|
+
}, []), m = x((f) => (n.current.add(f), () => {
|
|
1001
|
+
n.current.delete(f);
|
|
1002
|
+
}), []), d = x((f) => {
|
|
1003
|
+
i((w) => {
|
|
1004
|
+
const y = Array.isArray(f) ? w.filter((p) => !f.includes(p._id)) : w.filter((p) => p._id !== f);
|
|
1005
|
+
return n.current.forEach((p) => p(y, y.length)), y;
|
|
956
1006
|
});
|
|
957
|
-
}, []),
|
|
958
|
-
i([]), n.current.forEach((
|
|
959
|
-
}, []),
|
|
960
|
-
i(
|
|
1007
|
+
}, []), b = x(() => {
|
|
1008
|
+
i([]), n.current.forEach((f) => f([], 0));
|
|
1009
|
+
}, []), u = x((f) => {
|
|
1010
|
+
i(f), n.current.forEach((w) => w(f, f.length));
|
|
961
1011
|
}, []);
|
|
962
1012
|
Oe(s, () => ({
|
|
963
1013
|
addNewNotification: c,
|
|
964
1014
|
subscribeToUpdates: m,
|
|
965
|
-
setNotifications:
|
|
1015
|
+
setNotifications: u,
|
|
966
1016
|
removeNotification: d,
|
|
967
|
-
removeAllNotifications:
|
|
968
|
-
}), [c, m,
|
|
969
|
-
const
|
|
1017
|
+
removeAllNotifications: b
|
|
1018
|
+
}), [c, m, u, d, b]);
|
|
1019
|
+
const v = l.length > 0;
|
|
970
1020
|
return /* @__PURE__ */ e.jsxs(
|
|
971
1021
|
"section",
|
|
972
1022
|
{
|
|
@@ -974,14 +1024,14 @@ const Ht = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s
|
|
|
974
1024
|
children: [
|
|
975
1025
|
/* @__PURE__ */ e.jsxs("div", { className: "w-full h-max flex gap-2 items-center justify-between pt-8 pb-2 pr-2 pl-4 border-b border-neutral-strong-default sticky top-0 z-50 bg-neutral-default-default", children: [
|
|
976
1026
|
/* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
|
|
977
|
-
/* @__PURE__ */ e.jsx(
|
|
1027
|
+
/* @__PURE__ */ e.jsx($e, { className: "text-neutral-strong-default", size: 24 }),
|
|
978
1028
|
/* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: "Notificaciones" })
|
|
979
1029
|
] }),
|
|
980
1030
|
/* @__PURE__ */ e.jsx(fe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Ie, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
|
|
981
1031
|
] }),
|
|
982
1032
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4", children: [
|
|
983
|
-
r &&
|
|
984
|
-
|
|
1033
|
+
r && v && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(fe, { onClick: r, label: "Marcar todas como leidas", variant: "text", animate: !1, animateIcon: !1, size: "small" }) }),
|
|
1034
|
+
v ? l?.map((f, w) => /* @__PURE__ */ e.jsx(Ct, { ...f, className: " border-b border-neutral-strong-default rounded-b-none last:border-b-0" }, w)) : /* @__PURE__ */ e.jsx("p", { className: " prometeo-fonts-body-medium text-neutral-default-hover text-center py-8", children: "No hay notificaciones" })
|
|
985
1035
|
] })
|
|
986
1036
|
]
|
|
987
1037
|
}
|
|
@@ -989,7 +1039,7 @@ const Ht = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s
|
|
|
989
1039
|
}, Vt = ({ onCloseClick: t, children: r, title: s = "Ayuda" }) => /* @__PURE__ */ e.jsxs(
|
|
990
1040
|
"section",
|
|
991
1041
|
{
|
|
992
|
-
className: "w-full md:w-[479px] bg-neutral-default-default border-l-0 md:border-l border-neutral-strong-default h-full",
|
|
1042
|
+
className: "overflow-auto w-full md:w-[479px] bg-neutral-default-default border-l-0 md:border-l border-neutral-strong-default h-full",
|
|
993
1043
|
children: [
|
|
994
1044
|
/* @__PURE__ */ e.jsxs("div", { className: "w-full h-max flex gap-2 items-center justify-between pt-8 pb-2 pr-2 pl-4 border-b border-neutral-strong-default sticky top-0 z-50 bg-neutral-default-default", children: [
|
|
995
1045
|
/* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
|
|
@@ -998,11 +1048,11 @@ const Ht = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s
|
|
|
998
1048
|
] }),
|
|
999
1049
|
/* @__PURE__ */ e.jsx(fe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Ie, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
|
|
1000
1050
|
] }),
|
|
1001
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4", children: r })
|
|
1051
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4 ", children: r })
|
|
1002
1052
|
]
|
|
1003
1053
|
}
|
|
1004
1054
|
), Wt = ({ closeSidebar: t, options: r, helpSection: s, initialSection: l, notificationsListControls: i }, n) => {
|
|
1005
|
-
const [c, m] =
|
|
1055
|
+
const [c, m] = J(l ?? "notifications");
|
|
1006
1056
|
Oe(n, () => ({
|
|
1007
1057
|
setActiveSection: m
|
|
1008
1058
|
}));
|
|
@@ -1020,9 +1070,9 @@ const Ht = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s
|
|
|
1020
1070
|
),
|
|
1021
1071
|
c === "help" && s && !r?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx(Vt, { onCloseClick: d, children: typeof s == "function" ? s() : s })
|
|
1022
1072
|
] });
|
|
1023
|
-
}, it =
|
|
1073
|
+
}, it = me(Wt);
|
|
1024
1074
|
it.displayName = "SidebarContent";
|
|
1025
|
-
const
|
|
1075
|
+
const qt = ({
|
|
1026
1076
|
options: t,
|
|
1027
1077
|
helpSection: r,
|
|
1028
1078
|
sidebarContentRef: s,
|
|
@@ -1041,109 +1091,109 @@ const $t = ({
|
|
|
1041
1091
|
notificationsListControls: i
|
|
1042
1092
|
}
|
|
1043
1093
|
);
|
|
1044
|
-
}, ct =
|
|
1094
|
+
}, ct = I(qt);
|
|
1045
1095
|
ct.displayName = "PyrionNavigationDrawer.Sidebar";
|
|
1046
|
-
const
|
|
1096
|
+
const $t = ({ navigationControlsRef: t }) => {
|
|
1047
1097
|
const r = ie();
|
|
1048
1098
|
return t.current.toggleCollapse = r.toggleCollapse, t.current.getIsCollapsed = r.getIsCollapsed, t.current.subscribeToCollapse = r.subscribeToCollapse, t.current.openSidebar = r.openSidebar, t.current.closeSidebar = r.closeSidebar, t.current.toggleSidebar = r.toggleSidebar, t.current.getIsSidebarOpen = r.getIsSidebarOpen, t.current.subscribeToSidebarOpen = r.subscribeToSidebarOpen, t.current.setDrawerDragEnabled = r.setDrawerDragEnabled, t.current.setSidebarDragEnabled = r.setSidebarDragEnabled, null;
|
|
1049
1099
|
}, Kt = (t) => {
|
|
1050
|
-
const { children: r, currentAppSessions: s, resolveUserSecondarySlot: l, resolveSessionSecondarySlot: i, handleNavigation: n, allActions: c, tabs: m, navigationControlsRef: d, sidebarContentRef:
|
|
1051
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1052
|
-
/* @__PURE__ */ e.jsx(
|
|
1053
|
-
/* @__PURE__ */ e.jsx(
|
|
1100
|
+
const { children: r, currentAppSessions: s, resolveUserSecondarySlot: l, resolveSessionSecondarySlot: i, handleNavigation: n, allActions: c, tabs: m, navigationControlsRef: d, sidebarContentRef: b, initialSectionRef: u, userOptionsControls: v, mobileAppSwitcherControls: f, notificationsListControls: w, outletRef: y, ...p } = t;
|
|
1101
|
+
return /* @__PURE__ */ e.jsxs($, { disableDragOpen: p.options?.disableDragOpen, outletRef: y, children: [
|
|
1102
|
+
/* @__PURE__ */ e.jsx($t, { navigationControlsRef: d }),
|
|
1103
|
+
/* @__PURE__ */ e.jsx($.Header, { className: "flex flex-col relative w-full select-none", children: /* @__PURE__ */ e.jsx(
|
|
1054
1104
|
lt,
|
|
1055
1105
|
{
|
|
1056
|
-
onSystemLogoClick:
|
|
1057
|
-
state:
|
|
1058
|
-
currentSystemId:
|
|
1106
|
+
onSystemLogoClick: p.onSystemLogoClick,
|
|
1107
|
+
state: p.state,
|
|
1108
|
+
currentSystemId: p.currentSystemId,
|
|
1059
1109
|
tabs: m,
|
|
1060
|
-
mobileAppSwitcherControls:
|
|
1110
|
+
mobileAppSwitcherControls: f
|
|
1061
1111
|
}
|
|
1062
1112
|
) }, "PL-Header"),
|
|
1063
|
-
/* @__PURE__ */ e.jsx(
|
|
1113
|
+
/* @__PURE__ */ e.jsx($.Content, { className: "overflow-hidden flex flex-col relative flex-1 w-[285px] md:w-auto", children: /* @__PURE__ */ e.jsx(
|
|
1064
1114
|
at,
|
|
1065
1115
|
{
|
|
1066
|
-
navlinks:
|
|
1116
|
+
navlinks: p.links,
|
|
1067
1117
|
handleNavigation: n,
|
|
1068
1118
|
allActions: c,
|
|
1069
|
-
activeActionId:
|
|
1070
|
-
onActionClick:
|
|
1119
|
+
activeActionId: p.activeActionId,
|
|
1120
|
+
onActionClick: p.onActionClick
|
|
1071
1121
|
}
|
|
1072
1122
|
) }, "PL-Content"),
|
|
1073
|
-
/* @__PURE__ */ e.jsx(
|
|
1123
|
+
/* @__PURE__ */ e.jsx($.Footer, { className: "md:min-h-max flex flex-col w-full overflow-hidden max-w-full", children: /* @__PURE__ */ e.jsx(
|
|
1074
1124
|
ot,
|
|
1075
1125
|
{
|
|
1076
|
-
state:
|
|
1126
|
+
state: p.state,
|
|
1077
1127
|
currentAppSessions: s,
|
|
1078
1128
|
resolveUserSecondarySlot: l,
|
|
1079
1129
|
resolveSessionSecondarySlot: i,
|
|
1080
|
-
onSessionClick:
|
|
1081
|
-
onLogoutClick:
|
|
1082
|
-
options:
|
|
1083
|
-
currentSystemId:
|
|
1084
|
-
userOptionsControls:
|
|
1085
|
-
mobileAppSwitcherControls:
|
|
1086
|
-
onProfileClick:
|
|
1130
|
+
onSessionClick: p.onSessionClick,
|
|
1131
|
+
onLogoutClick: p.onLogoutClick,
|
|
1132
|
+
options: p.options,
|
|
1133
|
+
currentSystemId: p.currentSystemId,
|
|
1134
|
+
userOptionsControls: v,
|
|
1135
|
+
mobileAppSwitcherControls: f,
|
|
1136
|
+
onProfileClick: p.onProfileClick
|
|
1087
1137
|
}
|
|
1088
1138
|
) }, "PL-Footer"),
|
|
1089
|
-
/* @__PURE__ */ e.jsx(
|
|
1139
|
+
/* @__PURE__ */ e.jsx($.Outlet, { children: /* @__PURE__ */ e.jsx(dt, { children: r }) }),
|
|
1090
1140
|
/* @__PURE__ */ e.jsx(
|
|
1091
|
-
|
|
1141
|
+
$.Sidebar,
|
|
1092
1142
|
{
|
|
1093
1143
|
className: "bg-neutral-default-default",
|
|
1094
|
-
modal:
|
|
1095
|
-
closeOnOverlayClick:
|
|
1144
|
+
modal: p.options?.sidebarOptions?.modal,
|
|
1145
|
+
closeOnOverlayClick: p.options?.sidebarOptions?.closeOnOverlayClick,
|
|
1096
1146
|
children: /* @__PURE__ */ e.jsx(
|
|
1097
1147
|
ct,
|
|
1098
1148
|
{
|
|
1099
|
-
options:
|
|
1100
|
-
helpSection:
|
|
1101
|
-
sidebarContentRef:
|
|
1102
|
-
initialSectionRef:
|
|
1103
|
-
notificationsListControls:
|
|
1149
|
+
options: p.options,
|
|
1150
|
+
helpSection: p.helpSection,
|
|
1151
|
+
sidebarContentRef: b,
|
|
1152
|
+
initialSectionRef: u,
|
|
1153
|
+
notificationsListControls: w
|
|
1104
1154
|
}
|
|
1105
1155
|
)
|
|
1106
1156
|
}
|
|
1107
1157
|
)
|
|
1108
1158
|
] });
|
|
1109
|
-
}, Ae =
|
|
1159
|
+
}, Ae = I(Kt, (t, r) => {
|
|
1110
1160
|
const { children: s, ...l } = t, { children: i, ...n } = r, c = Object.keys(l), m = Object.keys(n);
|
|
1111
1161
|
if (c.length !== m.length)
|
|
1112
1162
|
return !1;
|
|
1113
1163
|
for (const d of c) {
|
|
1114
1164
|
if (!Object.prototype.hasOwnProperty.call(n, d))
|
|
1115
1165
|
return !1;
|
|
1116
|
-
const
|
|
1117
|
-
if (
|
|
1166
|
+
const b = l[d], u = n[d];
|
|
1167
|
+
if (b !== u)
|
|
1118
1168
|
return !1;
|
|
1119
1169
|
}
|
|
1120
1170
|
return !0;
|
|
1121
1171
|
});
|
|
1122
1172
|
Ae.displayName = "PyrionNavigationDrawer.LayoutBase";
|
|
1123
|
-
const dt =
|
|
1173
|
+
const dt = I(({ children: t }) => /* @__PURE__ */ e.jsx($.Outlet, { children: t }));
|
|
1124
1174
|
dt.displayName = "PyrionNavigationDrawer.IsolatedOutlet";
|
|
1125
1175
|
const ut = Le(null), br = () => {
|
|
1126
1176
|
const t = pt(ut);
|
|
1127
1177
|
if (!t)
|
|
1128
1178
|
throw new Error("usePyrionLayout debe usarse dentro de PyrionLayout");
|
|
1129
1179
|
return t;
|
|
1130
|
-
}, xr = ({ children: t, helpSection: r, state: s, links: l, onLinkClick: i, onNavigate: n, onLogoutClick: c, actions: m, activeActionId: d, onActionClick:
|
|
1131
|
-
const
|
|
1180
|
+
}, xr = ({ children: t, helpSection: r, state: s, links: l, onLinkClick: i, onNavigate: n, onLogoutClick: c, actions: m, activeActionId: d, onActionClick: b, tabsProps: u, currentSystemId: v, onSessionClick: f, onSystemLogoClick: w, onProfileClick: y, ...p }) => {
|
|
1181
|
+
const A = Object.assign({
|
|
1132
1182
|
closeDrawerOnNavigate: !0,
|
|
1133
1183
|
disableDragOpen: {
|
|
1134
1184
|
sidebar: !0,
|
|
1135
1185
|
drawer: !1
|
|
1136
1186
|
}
|
|
1137
|
-
},
|
|
1187
|
+
}, p.options), P = bt(), R = We(), D = T(null), j = T({}), Y = T(null), X = T("notifications"), G = T(null), te = T(null), H = T(null), [M, E] = J(0), [V, W] = J(!1), [re, ne] = J(null), se = x((a) => {
|
|
1138
1188
|
if (W(!1), i) {
|
|
1139
1189
|
i(a);
|
|
1140
1190
|
return;
|
|
1141
1191
|
}
|
|
1142
|
-
const
|
|
1143
|
-
P(a),
|
|
1192
|
+
const N = window.location.pathname;
|
|
1193
|
+
P(a), A.closeDrawerOnNavigate && ft() && !j.current?.getIsCollapsed?.() && j.current?.toggleCollapse?.(), n && n(N, a);
|
|
1144
1194
|
}, [i, n, P]), ce = (a) => {
|
|
1145
1195
|
a && window.open(a, "_blank");
|
|
1146
|
-
},
|
|
1196
|
+
}, he = {
|
|
1147
1197
|
system: {
|
|
1148
1198
|
mobile: ce,
|
|
1149
1199
|
desktop: (a) => {
|
|
@@ -1155,34 +1205,34 @@ const ut = Le(null), br = () => {
|
|
|
1155
1205
|
desktop: ce
|
|
1156
1206
|
}
|
|
1157
1207
|
}, Me = x((a) => {
|
|
1158
|
-
const
|
|
1159
|
-
|
|
1160
|
-
}, [R, s.enabled_systems,
|
|
1161
|
-
const
|
|
1162
|
-
|
|
1163
|
-
}, [R, s.company.products,
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1208
|
+
const N = R ? "mobile" : "desktop", O = s.enabled_systems.find((C) => C.name === a)?.url;
|
|
1209
|
+
he.system[N](O), u?.onTabClick?.(a);
|
|
1210
|
+
}, [R, s.enabled_systems, u?.onTabClick]), ae = x((a) => {
|
|
1211
|
+
const N = R ? "mobile" : "desktop", O = s.company.products?.find((C) => C.name === a)?.domain;
|
|
1212
|
+
he.product[N](O), u?.onTabClick?.(a);
|
|
1213
|
+
}, [R, s.company.products, u?.onTabClick]), Be = x((a, N) => {
|
|
1214
|
+
if (N) {
|
|
1215
|
+
N(a), u?.onTabClick?.(a);
|
|
1166
1216
|
return;
|
|
1167
1217
|
} else
|
|
1168
|
-
|
|
1169
|
-
}, [
|
|
1218
|
+
u?.onTabClick?.(a);
|
|
1219
|
+
}, [u?.onTabClick]), Ce = x(() => {
|
|
1170
1220
|
const a = {};
|
|
1171
1221
|
s.enabled_systems.forEach((O) => {
|
|
1172
1222
|
a[O.url] = O.name;
|
|
1173
1223
|
});
|
|
1174
|
-
const
|
|
1224
|
+
const N = window.location.origin;
|
|
1175
1225
|
for (const [O, C] of Object.entries(a))
|
|
1176
|
-
if (
|
|
1226
|
+
if (N === O)
|
|
1177
1227
|
return C;
|
|
1178
1228
|
return "";
|
|
1179
|
-
}, [s.enabled_systems]), je =
|
|
1229
|
+
}, [s.enabled_systems]), je = u?.currentTabName || Ce(), Q = ue(
|
|
1180
1230
|
() => s.sessions || [],
|
|
1181
1231
|
[s.sessions]
|
|
1182
|
-
), oe = (a) => a == null ? null : typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? String(a) :
|
|
1232
|
+
), oe = (a) => a == null ? null : typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? String(a) : ve(a) ? a : typeof a == "object" ? JSON.stringify(a) : null, o = x((a, N) => {
|
|
1183
1233
|
if (!a) return null;
|
|
1184
1234
|
if (Array.isArray(a)) {
|
|
1185
|
-
const O = a?.[0] ?
|
|
1235
|
+
const O = a?.[0] ? ge(N, a[0]) : null, C = a?.[1] ? ge(N, a[1]) : null, z = oe(O), de = oe(C);
|
|
1186
1236
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1187
1237
|
/* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-break-spaces min-w-1/2", children: z }),
|
|
1188
1238
|
de && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 flex-1 grow shrink-0 min-w-[40%] overflow-hidden", children: [
|
|
@@ -1192,50 +1242,50 @@ const ut = Le(null), br = () => {
|
|
|
1192
1242
|
] });
|
|
1193
1243
|
}
|
|
1194
1244
|
if (typeof a == "string") {
|
|
1195
|
-
const O =
|
|
1245
|
+
const O = ge(N, a);
|
|
1196
1246
|
return oe(O);
|
|
1197
1247
|
}
|
|
1198
|
-
return typeof a == "function" ? oe(a(
|
|
1199
|
-
}, []),
|
|
1248
|
+
return typeof a == "function" ? oe(a(N)) : null;
|
|
1249
|
+
}, []), h = x(
|
|
1200
1250
|
(a) => {
|
|
1201
|
-
const
|
|
1202
|
-
if (!
|
|
1203
|
-
const O = s.enabled_systems?.find((z) => z._id ===
|
|
1204
|
-
return o(
|
|
1251
|
+
const N = A?.userCardOptions?.secondarySlot;
|
|
1252
|
+
if (!N) return null;
|
|
1253
|
+
const O = s.enabled_systems?.find((z) => z._id === v), C = { company: s.company, user: s.user, system: O, metadata: a };
|
|
1254
|
+
return o(N, C);
|
|
1205
1255
|
},
|
|
1206
|
-
[
|
|
1256
|
+
[v, A?.userCardOptions?.secondarySlot, o, s.company, s.enabled_systems, s.user]
|
|
1207
1257
|
), g = x(
|
|
1208
1258
|
(a) => {
|
|
1209
|
-
const
|
|
1210
|
-
if (!
|
|
1211
|
-
const O = s.enabled_systems?.find((z) => z._id ===
|
|
1212
|
-
return o(
|
|
1259
|
+
const N = A?.sessionCardOptions?.secondarySlot || A?.userCardOptions?.secondarySlot;
|
|
1260
|
+
if (!N) return null;
|
|
1261
|
+
const O = s.enabled_systems?.find((z) => z._id === v), C = { company: s.company, user: a.auth_id, metadata: a?.metadata, system: O };
|
|
1262
|
+
return o(N, C);
|
|
1213
1263
|
},
|
|
1214
|
-
[
|
|
1264
|
+
[v, A?.sessionCardOptions?.secondarySlot, A?.userCardOptions?.secondarySlot, o, s.company]
|
|
1215
1265
|
), L = ue(() => {
|
|
1216
1266
|
const a = [];
|
|
1217
1267
|
return j.current.openNotifications = () => {
|
|
1218
|
-
|
|
1268
|
+
X.current = "notifications", j.current.openSidebar?.(), Y.current?.setActiveSection("notifications");
|
|
1219
1269
|
}, j.current.openHelp = () => {
|
|
1220
|
-
|
|
1221
|
-
}, !
|
|
1270
|
+
X.current = "help", j.current.openSidebar?.(), Y.current?.setActiveSection("help");
|
|
1271
|
+
}, !A?.notificationsDrawerOptions?.hideActionButton && !A?.notificationsDrawerOptions?.hide && a.push({
|
|
1222
1272
|
id: "notifications",
|
|
1223
1273
|
title: "Notificaciones",
|
|
1224
|
-
icon:
|
|
1274
|
+
icon: $e,
|
|
1225
1275
|
onClick: j.current.openNotifications,
|
|
1226
1276
|
count: M
|
|
1227
|
-
}), !
|
|
1277
|
+
}), !A?.helpSectionDrawerOptions?.hideActionButton && r && !A?.helpSectionDrawerOptions?.hide && a.push({
|
|
1228
1278
|
id: "help",
|
|
1229
1279
|
title: "Ayuda",
|
|
1230
1280
|
icon: Ke,
|
|
1231
1281
|
onClick: j.current.openHelp
|
|
1232
|
-
}),
|
|
1282
|
+
}), A?.configurationActionOptions?.onClick && !A?.configurationActionOptions?.hideActionButton && a.push({
|
|
1233
1283
|
id: "configuration",
|
|
1234
1284
|
title: "Configuracion",
|
|
1235
|
-
icon:
|
|
1236
|
-
onClick:
|
|
1285
|
+
icon: jt,
|
|
1286
|
+
onClick: A.configurationActionOptions?.onClick
|
|
1237
1287
|
}), a;
|
|
1238
|
-
}, [
|
|
1288
|
+
}, [A, r, b, M]), B = ue(
|
|
1239
1289
|
() => [...L, ...m || []],
|
|
1240
1290
|
[L, m]
|
|
1241
1291
|
), _ = ue(() => {
|
|
@@ -1244,7 +1294,7 @@ const ut = Le(null), br = () => {
|
|
|
1244
1294
|
thumbnail: C.thumbnail,
|
|
1245
1295
|
onClick: Me,
|
|
1246
1296
|
id: C._id
|
|
1247
|
-
})) || [],
|
|
1297
|
+
})) || [], N = u?.customTabs?.map((C) => ({
|
|
1248
1298
|
...C,
|
|
1249
1299
|
onClick: () => Be(C.name, C?.onClick)
|
|
1250
1300
|
})) || [], O = s.company.products?.map((C) => ({
|
|
@@ -1252,31 +1302,31 @@ const ut = Le(null), br = () => {
|
|
|
1252
1302
|
thumbnail: C.thumbnail,
|
|
1253
1303
|
onClick: ae
|
|
1254
1304
|
})) || [];
|
|
1255
|
-
return [...a, ...
|
|
1256
|
-
}, [s.enabled_systems, s.company.products,
|
|
1257
|
-
|
|
1258
|
-
}, []),
|
|
1305
|
+
return [...a, ...N, ...O];
|
|
1306
|
+
}, [s.enabled_systems, s.company.products, u?.customTabs]), Z = x((a) => {
|
|
1307
|
+
D.current?.addNewNotification ? D.current.addNewNotification(a) : console.warn("Notifications controls not ready yet");
|
|
1308
|
+
}, []), q = x((a) => D.current?.subscribeToUpdates ? D.current.subscribeToUpdates(a) : (console.warn("Notifications controls not ready yet"), () => {
|
|
1259
1309
|
}), []), le = x((a) => {
|
|
1260
|
-
|
|
1261
|
-
}, []),
|
|
1262
|
-
|
|
1263
|
-
}, []),
|
|
1264
|
-
|
|
1265
|
-
}, []), S = x((a,
|
|
1266
|
-
const C = /* @__PURE__ */ e.jsxs("div", { className:
|
|
1310
|
+
D.current?.removeNotification ? D.current.removeNotification(a) : console.warn("Notifications controls not ready yet");
|
|
1311
|
+
}, []), be = x(() => {
|
|
1312
|
+
D.current?.removeAllNotifications ? D.current.removeAllNotifications() : console.warn("Notifications controls not ready yet");
|
|
1313
|
+
}, []), xe = x((a) => {
|
|
1314
|
+
D.current?.setNotifications ? D.current.setNotifications(a) : console.warn("Notifications controls not ready yet");
|
|
1315
|
+
}, []), S = x((a, N, O) => {
|
|
1316
|
+
const C = /* @__PURE__ */ e.jsxs("div", { className: k(" bg-black/60 z-200 inset-0 h-full w-full grid place-items-center text-neutral-default-default", N ? "fixed" : "sticky"), children: [
|
|
1267
1317
|
!O && /* @__PURE__ */ e.jsx(fe, { label: "", icon: /* @__PURE__ */ e.jsx(Ie, {}), onClick: () => W(!1), variant: "text", className: "absolute top-0 right-0", size: "small", color: "secondary" }),
|
|
1268
1318
|
typeof a == "function" ? a() : a
|
|
1269
1319
|
] });
|
|
1270
1320
|
let z;
|
|
1271
|
-
return
|
|
1321
|
+
return N ? z = ze(C, document.body, `modal-error-${Date.now()}`) : H.current && (z = ze(C, H.current, `modal-error-${Date.now()}`)), ne(z), W(!0), C;
|
|
1272
1322
|
}, [H]), U = x(() => {
|
|
1273
1323
|
W(!1);
|
|
1274
1324
|
}, []);
|
|
1275
|
-
return j.current.addNewNotification =
|
|
1276
|
-
|
|
1277
|
-
E(
|
|
1325
|
+
return j.current.addNewNotification = Z, j.current.subscribeToNotificationsUpdates = q, j.current.removeNotification = le, j.current.removeAllNotifications = be, j.current.setNotifications = xe, j.current.showErrorModal = S, j.current.closeErrorModal = U, K(() => {
|
|
1326
|
+
q((a, N) => {
|
|
1327
|
+
E(N);
|
|
1278
1328
|
});
|
|
1279
|
-
}, [
|
|
1329
|
+
}, [q]), /* @__PURE__ */ e.jsxs(ut.Provider, { value: j.current, children: [
|
|
1280
1330
|
V && re,
|
|
1281
1331
|
R ? /* @__PURE__ */ e.jsx("div", { className: "flex h-screen", children: /* @__PURE__ */ e.jsx(
|
|
1282
1332
|
Ae,
|
|
@@ -1285,37 +1335,37 @@ const ut = Le(null), br = () => {
|
|
|
1285
1335
|
handleNavigation: se,
|
|
1286
1336
|
allActions: B,
|
|
1287
1337
|
activeActionId: d,
|
|
1288
|
-
onActionClick:
|
|
1338
|
+
onActionClick: b,
|
|
1289
1339
|
state: s,
|
|
1290
|
-
currentAppSessions:
|
|
1291
|
-
resolveUserSecondarySlot:
|
|
1340
|
+
currentAppSessions: Q,
|
|
1341
|
+
resolveUserSecondarySlot: h,
|
|
1292
1342
|
resolveSessionSecondarySlot: g,
|
|
1293
|
-
onSessionClick:
|
|
1343
|
+
onSessionClick: f,
|
|
1294
1344
|
onLogoutClick: c,
|
|
1295
|
-
options:
|
|
1296
|
-
currentSystemId:
|
|
1297
|
-
userOptionsControls:
|
|
1345
|
+
options: A,
|
|
1346
|
+
currentSystemId: v,
|
|
1347
|
+
userOptionsControls: G,
|
|
1298
1348
|
mobileAppSwitcherControls: te,
|
|
1299
|
-
onSystemLogoClick:
|
|
1349
|
+
onSystemLogoClick: w,
|
|
1300
1350
|
tabs: _,
|
|
1301
1351
|
helpSection: r,
|
|
1302
|
-
sidebarContentRef:
|
|
1303
|
-
initialSectionRef:
|
|
1352
|
+
sidebarContentRef: Y,
|
|
1353
|
+
initialSectionRef: X,
|
|
1304
1354
|
navigationControlsRef: j,
|
|
1305
|
-
notificationsListControls:
|
|
1355
|
+
notificationsListControls: D,
|
|
1306
1356
|
outletRef: H,
|
|
1307
1357
|
onProfileClick: y,
|
|
1308
1358
|
children: t
|
|
1309
1359
|
}
|
|
1310
1360
|
) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex h-screen", children: [
|
|
1311
1361
|
_.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1312
|
-
|
|
1362
|
+
St,
|
|
1313
1363
|
{
|
|
1314
1364
|
className: "hidden md:flex",
|
|
1315
1365
|
tabs: _,
|
|
1316
1366
|
activeColor: "var(--neutral-900)",
|
|
1317
1367
|
currentTabName: je,
|
|
1318
|
-
currentSystemId:
|
|
1368
|
+
currentSystemId: v
|
|
1319
1369
|
}
|
|
1320
1370
|
),
|
|
1321
1371
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1325,24 +1375,24 @@ const ut = Le(null), br = () => {
|
|
|
1325
1375
|
handleNavigation: se,
|
|
1326
1376
|
allActions: B,
|
|
1327
1377
|
activeActionId: d,
|
|
1328
|
-
onActionClick:
|
|
1378
|
+
onActionClick: b,
|
|
1329
1379
|
state: s,
|
|
1330
|
-
currentAppSessions:
|
|
1331
|
-
resolveUserSecondarySlot:
|
|
1380
|
+
currentAppSessions: Q,
|
|
1381
|
+
resolveUserSecondarySlot: h,
|
|
1332
1382
|
resolveSessionSecondarySlot: g,
|
|
1333
|
-
onSessionClick:
|
|
1383
|
+
onSessionClick: f,
|
|
1334
1384
|
onLogoutClick: c,
|
|
1335
|
-
options:
|
|
1336
|
-
currentSystemId:
|
|
1337
|
-
userOptionsControls:
|
|
1385
|
+
options: A,
|
|
1386
|
+
currentSystemId: v,
|
|
1387
|
+
userOptionsControls: G,
|
|
1338
1388
|
mobileAppSwitcherControls: te,
|
|
1339
|
-
onSystemLogoClick:
|
|
1389
|
+
onSystemLogoClick: w,
|
|
1340
1390
|
tabs: _,
|
|
1341
1391
|
helpSection: r,
|
|
1342
|
-
sidebarContentRef:
|
|
1343
|
-
initialSectionRef:
|
|
1392
|
+
sidebarContentRef: Y,
|
|
1393
|
+
initialSectionRef: X,
|
|
1344
1394
|
navigationControlsRef: j,
|
|
1345
|
-
notificationsListControls:
|
|
1395
|
+
notificationsListControls: D,
|
|
1346
1396
|
outletRef: H,
|
|
1347
1397
|
onProfileClick: y,
|
|
1348
1398
|
children: t
|