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