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