prometeo-design-system 4.7.9 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PyrionLayout.es.js +247 -247
- package/package.json +1 -1
package/dist/PyrionLayout.es.js
CHANGED
|
@@ -17,18 +17,18 @@ import Ze from "./UserCard.es.js";
|
|
|
17
17
|
import he from "./Button.es.js";
|
|
18
18
|
import { Logout as Tt } from "./Icons/Logout.es.js";
|
|
19
19
|
import Ot from "./NotificationCard.es.js";
|
|
20
|
-
import { T as
|
|
20
|
+
import { T as Et, a as It } from "./TabLinks-DnoWdrdk.js";
|
|
21
21
|
import { Notifications as et } from "./Icons/Notifications.es.js";
|
|
22
22
|
import { Close as Fe } from "./Icons/Close.es.js";
|
|
23
23
|
import { Help as tt } from "./Icons/Help.es.js";
|
|
24
24
|
import { Settings as _t } from "./Icons/Settings.es.js";
|
|
25
25
|
const Pt = be((t, r) => {
|
|
26
|
-
const [s, o] = J(t?.currentTabName || t.tabs[0]?.name), c = O(null), { tabs: l = [], className: d, activeColor: i = "var(--neutral-900)", currentSystemId:
|
|
27
|
-
console.log("tabs en el tabswitch del layout", l,
|
|
26
|
+
const [s, o] = J(t?.currentTabName || t.tabs[0]?.name), c = O(null), { tabs: l = [], className: d, activeColor: i = "var(--neutral-900)", currentSystemId: f, isLoading: p = !1 } = t;
|
|
27
|
+
console.log("tabs en el tabswitch del layout", l, f), se(() => {
|
|
28
28
|
c.current?.style.setProperty("--tab-bg", i);
|
|
29
29
|
}, [i]);
|
|
30
|
-
const
|
|
31
|
-
return
|
|
30
|
+
const x = l.find((m) => m?.id === f || m?.name === t?.currentTabName) || l.find((m) => m?.name === s);
|
|
31
|
+
return /* @__PURE__ */ e.jsx(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
ref: r,
|
|
@@ -40,9 +40,9 @@ const Pt = be((t, r) => {
|
|
|
40
40
|
"border-r border-neutral-default-default",
|
|
41
41
|
d
|
|
42
42
|
),
|
|
43
|
-
children: (
|
|
44
|
-
(
|
|
45
|
-
if (
|
|
43
|
+
children: (p ? Array(3).fill(null) : l).map(
|
|
44
|
+
(m, b) => {
|
|
45
|
+
if (p) return /* @__PURE__ */ e.jsx(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
className: D(
|
|
@@ -51,19 +51,19 @@ const Pt = be((t, r) => {
|
|
|
51
51
|
"flex items-center pl-[6px] ",
|
|
52
52
|
"rounded-l-[8px]",
|
|
53
53
|
"tabswitch-element relative",
|
|
54
|
-
|
|
54
|
+
b === 0 && "active"
|
|
55
55
|
),
|
|
56
56
|
children: /* @__PURE__ */ e.jsx("div", { className: D(
|
|
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
62
|
), children: /* @__PURE__ */ e.jsx(pe, { shape: "rounded", className: "w-full h-full" }) })
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
const S =
|
|
66
|
-
|
|
65
|
+
const S = m?.name === x?.name, k = 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
|
+
m.disabled || (o(m?.name), m.onClick && m.onClick(m?.name));
|
|
67
67
|
};
|
|
68
68
|
return /* @__PURE__ */ e.jsx(
|
|
69
69
|
"div",
|
|
@@ -83,42 +83,42 @@ const Pt = be((t, r) => {
|
|
|
83
83
|
"grid place-items-center",
|
|
84
84
|
"tab-thumbnail-icon",
|
|
85
85
|
"bg-transparent text-neutral-default-default",
|
|
86
|
-
|
|
86
|
+
m?.className
|
|
87
87
|
), children: k })
|
|
88
88
|
},
|
|
89
|
-
|
|
89
|
+
m?.name
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
)
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
}), rt = M(be(({ children: t, className: r, context: s, modal: o = !1, closeOnOverlayClick: c = !1, unmountChildrenOnClose: l = !0 }, d) => {
|
|
96
|
-
const i = ge(t, s),
|
|
96
|
+
const i = ge(t, s), f = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, { isSidebarOpen: p } = Mt(), { closeSidebar: x } = ce(), [m, b] = J(() => l ? p : !0), [S, k] = J(!1);
|
|
97
97
|
return se(() => {
|
|
98
98
|
l && s?.subscribeToSidebarOpen((y) => {
|
|
99
|
-
y ? (k(!1),
|
|
99
|
+
y ? (k(!1), b(!0)) : k(!0);
|
|
100
100
|
});
|
|
101
101
|
}, [l, s]), se(() => {
|
|
102
102
|
const y = d && typeof d == "object" && "current" in d ? d.current : null;
|
|
103
103
|
if (!y) return;
|
|
104
104
|
const C = () => {
|
|
105
|
-
S && (
|
|
105
|
+
S && (b(!1), k(!1));
|
|
106
106
|
};
|
|
107
107
|
return y.addEventListener("transitionend", C), () => y.removeEventListener("transitionend", C);
|
|
108
|
-
}, [S]), /* @__PURE__ */ e.jsxs("div", { ref: d, className: D("sidebar",
|
|
109
|
-
o &&
|
|
108
|
+
}, [S]), /* @__PURE__ */ e.jsxs("div", { ref: d, className: D("sidebar", f ? "collapsed" : "expanded", "h-full overflow-auto", r), "aria-modal": o || void 0, children: [
|
|
109
|
+
o && f && /* @__PURE__ */ e.jsx(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
className: D("navigation-drawer-sidebar-overlay"),
|
|
113
113
|
onClick: (y) => {
|
|
114
|
-
y.preventDefault(), y.stopPropagation(), c &&
|
|
114
|
+
y.preventDefault(), y.stopPropagation(), c && x?.();
|
|
115
115
|
},
|
|
116
116
|
"aria-hidden": "true"
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
119
|
/* @__PURE__ */ e.jsxs("div", { className: D("navigation-drawer-sidebar-inner"), children: [
|
|
120
120
|
/* @__PURE__ */ e.jsx("div", { className: "secure-click-margin" }),
|
|
121
|
-
|
|
121
|
+
m && i
|
|
122
122
|
] })
|
|
123
123
|
] });
|
|
124
124
|
})), st = Me(null), nt = Me(null), Mt = () => {
|
|
@@ -144,58 +144,58 @@ const Pt = be((t, r) => {
|
|
|
144
144
|
} catch {
|
|
145
145
|
}
|
|
146
146
|
}, Bt = (t) => {
|
|
147
|
-
const { children: r, classNameDrawer: s, classNameSidebar: o, disableDragOpen: c, modal: l = !0, closeOnOutsideClick: d = !0 } = t, i = O(null),
|
|
148
|
-
const
|
|
149
|
-
|
|
147
|
+
const { children: r, classNameDrawer: s, classNameSidebar: o, disableDragOpen: c, modal: l = !0, closeOnOutsideClick: d = !0 } = t, i = O(null), f = O(null), p = t.outletRef ?? O(null), x = O(null), m = O(Ke()), b = O(!1), S = O("drawer"), k = O(/* @__PURE__ */ new Set()), y = O(/* @__PURE__ */ new Set()), C = O(!1), A = O(null), V = h((n) => {
|
|
148
|
+
const u = f.current;
|
|
149
|
+
u && (u.classList.toggle("collapsed", n), u.classList.toggle("expanded", !n));
|
|
150
150
|
}, []), $ = h((n) => {
|
|
151
|
-
const
|
|
152
|
-
if (!
|
|
153
|
-
|
|
151
|
+
const u = x.current;
|
|
152
|
+
if (!u) return;
|
|
153
|
+
u.classList.toggle("collapsed", n), u.classList.toggle("expanded", !n);
|
|
154
154
|
const v = i.current;
|
|
155
155
|
v && (v.classList.toggle("sidebar-collapsed", n), v.classList.toggle("sidebar-expanded", !n));
|
|
156
156
|
}, []), j = h(
|
|
157
|
-
(n, { notify:
|
|
158
|
-
const v =
|
|
159
|
-
|
|
157
|
+
(n, { notify: u = !0 } = {}) => {
|
|
158
|
+
const v = m.current !== n;
|
|
159
|
+
m.current = n, Rt(n), V(n), u && v && k.current.forEach((I) => I(n));
|
|
160
160
|
},
|
|
161
161
|
[V]
|
|
162
162
|
), U = h(
|
|
163
|
-
(n, { notify:
|
|
164
|
-
const v =
|
|
165
|
-
if (
|
|
166
|
-
const
|
|
167
|
-
y.current.forEach((W) => W(
|
|
163
|
+
(n, { notify: u = !0 } = {}) => {
|
|
164
|
+
const v = b.current !== n;
|
|
165
|
+
if (b.current = n, $(n), u && v) {
|
|
166
|
+
const I = !n;
|
|
167
|
+
y.current.forEach((W) => W(I));
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
[$]
|
|
171
171
|
), N = h(
|
|
172
|
-
(n, { notify:
|
|
173
|
-
const v = S.current,
|
|
174
|
-
S.current = n, window.matchMedia("(min-width: 768px)").matches || j(n !== "drawer", { notify:
|
|
172
|
+
(n, { notify: u = !0 } = {}) => {
|
|
173
|
+
const v = S.current, I = v !== n;
|
|
174
|
+
S.current = n, window.matchMedia("(min-width: 768px)").matches || j(n !== "drawer", { notify: u });
|
|
175
175
|
const W = v === "sidebar", B = n === "sidebar";
|
|
176
|
-
|
|
176
|
+
u && I && W !== B && y.current.forEach((te) => te(B)), U(n !== "sidebar", { notify: u }), j(n !== "drawer", { notify: u });
|
|
177
177
|
},
|
|
178
178
|
[j, U]
|
|
179
179
|
), K = h((n) => {
|
|
180
|
-
const
|
|
181
|
-
if (!
|
|
180
|
+
const u = i.current;
|
|
181
|
+
if (!u || window.matchMedia("(min-width: 768px)").matches) return;
|
|
182
182
|
C.current = !0;
|
|
183
|
-
const v =
|
|
184
|
-
A.current = W,
|
|
183
|
+
const v = p.current?.offsetLeft ?? 0, I = x.current?.offsetLeft ?? v, W = n === "drawer" ? 0 : n === "sidebar" ? I : v;
|
|
184
|
+
A.current = W, u.scrollTo({ left: W, behavior: "smooth" });
|
|
185
185
|
const B = () => {
|
|
186
|
-
C.current = !1, A.current = null,
|
|
186
|
+
C.current = !1, A.current = null, u.removeEventListener("scrollend", B);
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
u.addEventListener("scrollend", B, { once: !0 }), setTimeout(() => {
|
|
189
189
|
C.current && B();
|
|
190
190
|
}, 1e3);
|
|
191
191
|
}, []), G = h(() => {
|
|
192
|
-
const n = i.current,
|
|
193
|
-
if (!n || !
|
|
192
|
+
const n = i.current, u = p.current;
|
|
193
|
+
if (!n || !u || window.matchMedia("(min-width: 768px)").matches) return;
|
|
194
194
|
const v = [
|
|
195
195
|
{ panel: "drawer", offset: 0 },
|
|
196
|
-
{ panel: "outlet", offset:
|
|
197
|
-
],
|
|
198
|
-
|
|
196
|
+
{ panel: "outlet", offset: u.offsetLeft }
|
|
197
|
+
], I = x.current;
|
|
198
|
+
I && v.push({ panel: "sidebar", offset: I.offsetLeft });
|
|
199
199
|
const W = n.scrollLeft;
|
|
200
200
|
let B = v[0], te = Math.abs(W - B.offset);
|
|
201
201
|
for (let oe = 1; oe < v.length; oe++) {
|
|
@@ -208,22 +208,22 @@ const Pt = be((t, r) => {
|
|
|
208
208
|
const n = i.current;
|
|
209
209
|
n && (c?.drawer && n.classList.add("disabled-dragopen"), c?.sidebar && n.classList.add("disabled-dragopen-sidebar"));
|
|
210
210
|
}, [c, i]), se(() => {
|
|
211
|
-
const n = i.current,
|
|
212
|
-
if (!n || !
|
|
211
|
+
const n = i.current, u = p.current;
|
|
212
|
+
if (!n || !u) return;
|
|
213
213
|
if (window.matchMedia("(min-width: 768px)").matches) {
|
|
214
|
-
const
|
|
215
|
-
j(
|
|
214
|
+
const I = Ke();
|
|
215
|
+
j(I, { notify: !1 }), U(!0, { notify: !1 });
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
requestAnimationFrame(() => {
|
|
219
|
-
n.scrollLeft =
|
|
219
|
+
n.scrollLeft = u.offsetLeft, N("outlet");
|
|
220
220
|
});
|
|
221
221
|
}, [N, j, U]), se(() => {
|
|
222
222
|
const n = i.current;
|
|
223
|
-
if (!n || !
|
|
224
|
-
let v = !1,
|
|
223
|
+
if (!n || !p.current) return;
|
|
224
|
+
let v = !1, I = 0, W = 0;
|
|
225
225
|
const B = (L) => {
|
|
226
|
-
|
|
226
|
+
I = L.touches[0].clientX, W = L.touches[0].clientY;
|
|
227
227
|
}, te = (L, Y) => {
|
|
228
228
|
const H = window.getComputedStyle(L), le = Y === "x" ? H.overflowX : H.overflowY;
|
|
229
229
|
return /(auto|scroll|overlay)/.test(le) ? Y === "x" ? L.scrollWidth > L.clientWidth : L.scrollHeight > L.clientHeight : !1;
|
|
@@ -237,8 +237,8 @@ const Pt = be((t, r) => {
|
|
|
237
237
|
return null;
|
|
238
238
|
}, fe = (L, Y, H) => H === 0 ? !1 : Y === "x" ? H < 0 ? L.scrollLeft + L.clientWidth < L.scrollWidth : L.scrollLeft > 0 : H < 0 ? L.scrollTop + L.clientHeight < L.scrollHeight : L.scrollTop > 0, Ne = (L) => {
|
|
239
239
|
if (!(L.target instanceof HTMLElement)) return;
|
|
240
|
-
const Y = L.touches[0].clientX -
|
|
241
|
-
if (Ce && fe(Ce, le,
|
|
240
|
+
const Y = L.touches[0].clientX - I, H = L.touches[0].clientY - W, le = Math.abs(Y) > Math.abs(H) ? "x" : "y", Ee = le === "x" ? Y : H, Ce = oe(L.target, le);
|
|
241
|
+
if (Ce && fe(Ce, le, Ee))
|
|
242
242
|
return;
|
|
243
243
|
const Se = n.classList.contains("disabled-dragopen"), a = n.classList.contains("disabled-dragopen-sidebar"), w = () => L.cancelable ? (L.preventDefault(), !0) : !1;
|
|
244
244
|
if (le === "x") {
|
|
@@ -273,31 +273,31 @@ const Pt = be((t, r) => {
|
|
|
273
273
|
};
|
|
274
274
|
}, [G]);
|
|
275
275
|
const q = h(() => {
|
|
276
|
-
const n = window.matchMedia("(min-width: 768px)").matches,
|
|
276
|
+
const n = window.matchMedia("(min-width: 768px)").matches, u = !m.current;
|
|
277
277
|
if (n) {
|
|
278
|
-
j(
|
|
278
|
+
j(u);
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
|
-
const v =
|
|
281
|
+
const v = u ? "outlet" : "drawer";
|
|
282
282
|
N(v), K(v);
|
|
283
283
|
}, [K, N, j]), X = O(null);
|
|
284
284
|
X.current || (X.current = {
|
|
285
285
|
toggleCollapse: () => q(),
|
|
286
286
|
getIsCollapsed: () => {
|
|
287
287
|
if (!window.matchMedia("(min-width: 768px)").matches) {
|
|
288
|
-
const
|
|
289
|
-
if (
|
|
290
|
-
const
|
|
291
|
-
return B !==
|
|
288
|
+
const u = i.current, v = p.current;
|
|
289
|
+
if (u && v) {
|
|
290
|
+
const I = u.scrollLeft, W = v.offsetLeft, B = Math.abs(I - W) < Math.abs(I - 0);
|
|
291
|
+
return B !== m.current && (m.current = B, V(B)), B;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
return
|
|
294
|
+
return m.current;
|
|
295
295
|
},
|
|
296
296
|
subscribeToCollapse: (n) => (k.current.add(n), () => {
|
|
297
297
|
k.current.delete(n);
|
|
298
298
|
}),
|
|
299
299
|
openSidebar: () => {
|
|
300
|
-
if (
|
|
300
|
+
if (x.current) {
|
|
301
301
|
if (window.matchMedia("(min-width: 768px)").matches) {
|
|
302
302
|
U(!1);
|
|
303
303
|
return;
|
|
@@ -313,47 +313,47 @@ const Pt = be((t, r) => {
|
|
|
313
313
|
N("outlet"), K("outlet");
|
|
314
314
|
},
|
|
315
315
|
toggleSidebar: () => {
|
|
316
|
-
if (!
|
|
316
|
+
if (!x.current) return;
|
|
317
317
|
if (window.matchMedia("(min-width: 768px)").matches) {
|
|
318
|
-
U(!
|
|
318
|
+
U(!b.current);
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
321
|
const n = S.current === "sidebar" ? "outlet" : "sidebar";
|
|
322
322
|
N(n), K(n);
|
|
323
323
|
},
|
|
324
|
-
getIsSidebarOpen: () =>
|
|
324
|
+
getIsSidebarOpen: () => x.current ? window.matchMedia("(min-width: 768px)").matches ? !b.current : S.current === "sidebar" : !1,
|
|
325
325
|
subscribeToSidebarOpen: (n) => (y.current.add(n), () => {
|
|
326
326
|
y.current.delete(n);
|
|
327
327
|
}),
|
|
328
328
|
setDrawerDragEnabled: (n) => {
|
|
329
|
-
const
|
|
330
|
-
if (!
|
|
331
|
-
const v =
|
|
329
|
+
const u = i.current;
|
|
330
|
+
if (!u) return;
|
|
331
|
+
const v = u.scrollLeft;
|
|
332
332
|
if (n) {
|
|
333
|
-
const
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
const I = u.style.scrollBehavior;
|
|
334
|
+
u.style.scrollBehavior = "auto", u.classList.remove("disabled-dragopen"), requestAnimationFrame(() => {
|
|
335
|
+
u.scrollLeft = v, requestAnimationFrame(() => {
|
|
336
|
+
u.style.scrollBehavior = I;
|
|
337
337
|
});
|
|
338
338
|
});
|
|
339
339
|
} else
|
|
340
|
-
|
|
340
|
+
u.classList.add("disabled-dragopen");
|
|
341
341
|
},
|
|
342
342
|
setSidebarDragEnabled: (n) => {
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
343
|
+
const u = i.current;
|
|
344
|
+
if (u)
|
|
345
345
|
if (n) {
|
|
346
|
-
const v =
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
const v = u.scrollLeft, I = u.style.scrollBehavior;
|
|
347
|
+
u.style.scrollBehavior = "auto", u.classList.remove("disabled-dragopen-sidebar"), requestAnimationFrame(() => {
|
|
348
|
+
u.scrollLeft = v, requestAnimationFrame(() => {
|
|
349
|
+
u.style.scrollBehavior = I;
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
352
|
} else
|
|
353
|
-
|
|
353
|
+
u.classList.add("disabled-dragopen-sidebar");
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
const
|
|
356
|
+
const E = X.current, _ = typeof r == "function" ? r(E) : r, g = yt.toArray(_);
|
|
357
357
|
let P = null, R = null, z = null;
|
|
358
358
|
const Q = [];
|
|
359
359
|
let ae = null, Z = null;
|
|
@@ -384,11 +384,11 @@ const Pt = be((t, r) => {
|
|
|
384
384
|
}
|
|
385
385
|
Q.push(n);
|
|
386
386
|
});
|
|
387
|
-
const ve = !!R, we = R ?? (Q.length ? /* @__PURE__ */ e.jsx(Le, { children: Q }) : null), Ae = ve ? Q : [], de = ae ?? (!!ae ? /* @__PURE__ */ e.jsx(_e, { children: _, context:
|
|
388
|
-
isCollapsed:
|
|
389
|
-
isSidebarOpen: !
|
|
390
|
-
}), [
|
|
391
|
-
return /* @__PURE__ */ e.jsx(st.Provider, { value: ue, children: /* @__PURE__ */ e.jsx(nt.Provider, { value:
|
|
387
|
+
const ve = !!R, we = R ?? (Q.length ? /* @__PURE__ */ e.jsx(Le, { children: Q }) : null), Ae = ve ? Q : [], de = ae ?? (!!ae ? /* @__PURE__ */ e.jsx(_e, { children: _, context: E, modal: l, closeOnOutsideClick: d }) : null), Te = z ?? (!!z ? /* @__PURE__ */ e.jsx(De, { children: z }) : null), Oe = !!Z, ee = Z, ue = me(() => ({
|
|
388
|
+
isCollapsed: m.current,
|
|
389
|
+
isSidebarOpen: !b.current
|
|
390
|
+
}), [m.current, b.current]);
|
|
391
|
+
return /* @__PURE__ */ e.jsx(st.Provider, { value: ue, children: /* @__PURE__ */ e.jsx(nt.Provider, { value: E, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: i, className: D(
|
|
392
392
|
"w-full h-full max-h-dvh overflow-y-hidden",
|
|
393
393
|
Oe ? "navigation-drawer-with-sidebar" : "navigation-drawer",
|
|
394
394
|
c?.drawer ? "disabled-dragopen" : "",
|
|
@@ -397,10 +397,10 @@ const Pt = be((t, r) => {
|
|
|
397
397
|
/* @__PURE__ */ e.jsxs(
|
|
398
398
|
"div",
|
|
399
399
|
{
|
|
400
|
-
ref:
|
|
400
|
+
ref: f,
|
|
401
401
|
className: D(
|
|
402
402
|
"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
|
-
|
|
403
|
+
m.current ? "collapsed" : "expanded",
|
|
404
404
|
s
|
|
405
405
|
),
|
|
406
406
|
children: [
|
|
@@ -418,9 +418,9 @@ const Pt = be((t, r) => {
|
|
|
418
418
|
]
|
|
419
419
|
}
|
|
420
420
|
),
|
|
421
|
-
de && ke(de) ? qe.cloneElement(de, { ref:
|
|
421
|
+
de && ke(de) ? qe.cloneElement(de, { ref: p, modal: l, closeOnOutsideClick: d }) : de,
|
|
422
422
|
ee && ke(ee) ? qe.cloneElement(ee, {
|
|
423
|
-
ref:
|
|
423
|
+
ref: x,
|
|
424
424
|
className: D("sidebar", ee.props?.className, o)
|
|
425
425
|
}) : ee
|
|
426
426
|
] }) }) });
|
|
@@ -452,11 +452,11 @@ De.displayName = "NavigationDrawerFooter";
|
|
|
452
452
|
const lt = M(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: D("w-full border-t border-neutral-strong-default ", t) }));
|
|
453
453
|
lt.displayName = "NavigationDrawerSpacer";
|
|
454
454
|
const _e = M(be(({ children: t, className: r, context: s, modal: o, closeOnOutsideClick: c }, l) => {
|
|
455
|
-
const d = ge(t, s), i = ce(),
|
|
455
|
+
const d = ge(t, s), i = ce(), f = () => {
|
|
456
456
|
c && (i.toggleCollapse(), i.closeSidebar());
|
|
457
457
|
};
|
|
458
458
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-outlet", ref: l, className: D("flex-1 overflow-auto relative h-full max-h-dvh", r), children: [
|
|
459
|
-
o && /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backdrop select-none", onClick:
|
|
459
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backdrop select-none", onClick: f }),
|
|
460
460
|
d
|
|
461
461
|
] }) });
|
|
462
462
|
}), (t, r) => t.children === r.children && t.className === r.className), re = Object.assign(Ye, {
|
|
@@ -503,7 +503,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
|
|
|
503
503
|
{ isSelected: !1, disabled: !1, className: " text-neutral-default-default group-active:text-neutral-default-pressed group-focus-visible:text-neutral-default-pressed" }
|
|
504
504
|
]
|
|
505
505
|
}
|
|
506
|
-
),
|
|
506
|
+
), Ie = Be(
|
|
507
507
|
D(
|
|
508
508
|
"transition-colors duration-300 ease-out min-w-max"
|
|
509
509
|
),
|
|
@@ -534,21 +534,21 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
|
|
|
534
534
|
isSelected: l = !1,
|
|
535
535
|
hasSublinks: d,
|
|
536
536
|
subLinksCollapsed: i,
|
|
537
|
-
onToggleSublinks:
|
|
538
|
-
as:
|
|
539
|
-
onClick:
|
|
540
|
-
onAuxClick:
|
|
541
|
-
disabled:
|
|
537
|
+
onToggleSublinks: f,
|
|
538
|
+
as: p = "div",
|
|
539
|
+
onClick: x,
|
|
540
|
+
onAuxClick: m,
|
|
541
|
+
disabled: b = !1,
|
|
542
542
|
tooltipText: S
|
|
543
543
|
} = t, k = (V) => {
|
|
544
|
-
|
|
544
|
+
b || x?.(V);
|
|
545
545
|
}, y = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
546
546
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center flex-nowrap", children: [
|
|
547
|
-
s && (S ? /* @__PURE__ */ e.jsx(Dt, { title: S, disabled:
|
|
548
|
-
/* @__PURE__ */ e.jsx("label", { className: Ut({ disabled:
|
|
547
|
+
s && (S ? /* @__PURE__ */ e.jsx(Dt, { title: S, disabled: b, children: /* @__PURE__ */ e.jsx(s, { size: 24, className: Ie({ disabled: b, isSelected: l }) }) }) : /* @__PURE__ */ e.jsx(s, { size: 24, className: Ie({ disabled: b, isSelected: l }) })),
|
|
548
|
+
/* @__PURE__ */ e.jsx("label", { className: Ut({ disabled: b, isSelected: l }), children: r })
|
|
549
549
|
] }),
|
|
550
550
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 items-center", children: [
|
|
551
|
-
o && o ? /* @__PURE__ */ e.jsx(Qe, { count: o, maxCount: 9, className: "badge", disabled:
|
|
551
|
+
o && o ? /* @__PURE__ */ e.jsx(Qe, { count: o, maxCount: 9, className: "badge", disabled: b }) : "",
|
|
552
552
|
d && /* @__PURE__ */ e.jsx(
|
|
553
553
|
"div",
|
|
554
554
|
{
|
|
@@ -562,10 +562,10 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
|
|
|
562
562
|
children: /* @__PURE__ */ e.jsx(
|
|
563
563
|
"button",
|
|
564
564
|
{
|
|
565
|
-
disabled:
|
|
565
|
+
disabled: b,
|
|
566
566
|
type: "button",
|
|
567
|
-
onClick:
|
|
568
|
-
className: D("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",
|
|
567
|
+
onClick: f,
|
|
568
|
+
className: D("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", Ie({ disabled: b, isSelected: l }), b && "pointer-events-none"),
|
|
569
569
|
children: /* @__PURE__ */ e.jsx(At, {})
|
|
570
570
|
}
|
|
571
571
|
)
|
|
@@ -577,18 +577,18 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
|
|
|
577
577
|
"h-12 flex-1 flex items-center p-3 rounded-lg justify-between w-full",
|
|
578
578
|
"transition-all duration-300",
|
|
579
579
|
Ft,
|
|
580
|
-
zt({ isSelected: l, disabled:
|
|
580
|
+
zt({ isSelected: l, disabled: b }),
|
|
581
581
|
c
|
|
582
582
|
);
|
|
583
|
-
if (
|
|
583
|
+
if (p === "a") {
|
|
584
584
|
const V = {
|
|
585
585
|
onClick: k,
|
|
586
|
-
onAuxClick:
|
|
586
|
+
onAuxClick: m,
|
|
587
587
|
className: C
|
|
588
588
|
};
|
|
589
589
|
return /* @__PURE__ */ e.jsx("a", { ...V, children: y });
|
|
590
590
|
}
|
|
591
|
-
if (
|
|
591
|
+
if (p === "button") {
|
|
592
592
|
const V = {
|
|
593
593
|
onClick: k,
|
|
594
594
|
type: "button",
|
|
@@ -604,7 +604,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
|
|
|
604
604
|
}, Ue = M(Wt);
|
|
605
605
|
Ue.displayName = "NavigationDrawerItemBase";
|
|
606
606
|
const Ht = (t) => {
|
|
607
|
-
const { title: r, icon: s, count: o, className: c, isActive: l, onClick: d, isView: i = !0, disabled:
|
|
607
|
+
const { title: r, icon: s, count: o, className: c, isActive: l, onClick: d, isView: i = !0, disabled: f, tooltipText: p } = t;
|
|
608
608
|
return i ? /* @__PURE__ */ e.jsx(
|
|
609
609
|
Ue,
|
|
610
610
|
{
|
|
@@ -615,8 +615,8 @@ const Ht = (t) => {
|
|
|
615
615
|
className: c,
|
|
616
616
|
isSelected: l,
|
|
617
617
|
onClick: d,
|
|
618
|
-
disabled:
|
|
619
|
-
tooltipText:
|
|
618
|
+
disabled: f,
|
|
619
|
+
tooltipText: p
|
|
620
620
|
}
|
|
621
621
|
) : null;
|
|
622
622
|
}, it = M(Ht);
|
|
@@ -625,16 +625,16 @@ const Vt = ({ actions: t, activeActionId: r, onActionClick: s, className: o }) =
|
|
|
625
625
|
top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
|
|
626
626
|
bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
|
|
627
627
|
}, children: t?.map((c) => {
|
|
628
|
-
const { id: l, onClick: d, isView: i = !0, payload:
|
|
629
|
-
s?.(l,
|
|
628
|
+
const { id: l, onClick: d, isView: i = !0, payload: f, ...p } = c, x = l === r, m = () => {
|
|
629
|
+
s?.(l, f), d?.();
|
|
630
630
|
};
|
|
631
631
|
return i ? /* @__PURE__ */ e.jsx(
|
|
632
632
|
it,
|
|
633
633
|
{
|
|
634
|
-
...
|
|
634
|
+
...p,
|
|
635
635
|
id: l,
|
|
636
|
-
isActive:
|
|
637
|
-
onClick:
|
|
636
|
+
isActive: x,
|
|
637
|
+
onClick: m
|
|
638
638
|
},
|
|
639
639
|
l
|
|
640
640
|
) : null;
|
|
@@ -643,11 +643,11 @@ ct.displayName = "NavigationDrawerActions";
|
|
|
643
643
|
const qt = (t) => {
|
|
644
644
|
const { className: r, title: s, path: o, onClick: c, isSelected: l, parentPath: d } = t, i = h(() => {
|
|
645
645
|
c?.(o);
|
|
646
|
-
}, [o]),
|
|
646
|
+
}, [o]), f = h(() => {
|
|
647
647
|
if (o.startsWith("./")) {
|
|
648
648
|
if (!d) return;
|
|
649
|
-
const
|
|
650
|
-
window.open(
|
|
649
|
+
const p = d + o.slice(2);
|
|
650
|
+
window.open(p, "_blank");
|
|
651
651
|
} else
|
|
652
652
|
window.open(o, "_blank");
|
|
653
653
|
}, [o]);
|
|
@@ -655,7 +655,7 @@ const qt = (t) => {
|
|
|
655
655
|
"a",
|
|
656
656
|
{
|
|
657
657
|
onClick: i,
|
|
658
|
-
onAuxClick:
|
|
658
|
+
onAuxClick: f,
|
|
659
659
|
className: D(
|
|
660
660
|
"group",
|
|
661
661
|
"transition-all duration-300 ease-in-out cursor-pointer",
|
|
@@ -674,14 +674,14 @@ const qt = (t) => {
|
|
|
674
674
|
}, dt = M(qt);
|
|
675
675
|
dt.displayName = "NavItemSecondary";
|
|
676
676
|
const $t = be((t, r) => {
|
|
677
|
-
const [s, o] = J(!0), c = O(null), { path: l, title: d, icon: i, count:
|
|
677
|
+
const [s, o] = J(!0), c = O(null), { path: l, title: d, icon: i, count: f, className: p, isSelected: x = !1, onClick: m, sublinks: b, toggleCollapse: S, getIsCollapsed: k, subscribeToCollapse: y, isView: C = !0, disabled: A, tooltipText: V } = t;
|
|
678
678
|
se(() => y ? y((_) => {
|
|
679
679
|
_ && o(!0);
|
|
680
680
|
}) : void 0, [y]);
|
|
681
681
|
const $ = h(() => {
|
|
682
|
-
o((
|
|
683
|
-
}, []), j = h((
|
|
684
|
-
o(
|
|
682
|
+
o((E) => !E);
|
|
683
|
+
}, []), j = h((E) => {
|
|
684
|
+
o(E);
|
|
685
685
|
}, []), U = {
|
|
686
686
|
toggle: $,
|
|
687
687
|
setIsCollapsed: j,
|
|
@@ -696,33 +696,33 @@ const $t = be((t, r) => {
|
|
|
696
696
|
};
|
|
697
697
|
Re(r, () => U, [U, s, k, S]);
|
|
698
698
|
const N = i, K = h(() => {
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
699
|
+
const E = k?.() ?? !1;
|
|
700
|
+
if (b && b.length > 0 && E) {
|
|
701
701
|
j(!1), S?.();
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
|
|
705
|
-
}, [l,
|
|
704
|
+
m?.(l);
|
|
705
|
+
}, [l, m, b, S, j, k]), G = h(() => {
|
|
706
706
|
window.open(l, "_blank");
|
|
707
707
|
}, [l]), q = () => {
|
|
708
|
-
if (!
|
|
709
|
-
if (t.subLinksRender &&
|
|
710
|
-
return t.subLinksRender(
|
|
711
|
-
const
|
|
708
|
+
if (!b || A) return null;
|
|
709
|
+
if (t.subLinksRender && b)
|
|
710
|
+
return t.subLinksRender(b, U);
|
|
711
|
+
const E = h((_) => {
|
|
712
712
|
if (_.startsWith("./")) {
|
|
713
713
|
const g = l + _.slice(2);
|
|
714
|
-
|
|
714
|
+
m?.(g);
|
|
715
715
|
} else
|
|
716
|
-
|
|
716
|
+
m?.(_);
|
|
717
717
|
}, [l]);
|
|
718
718
|
return se(() => {
|
|
719
719
|
const _ = c.current;
|
|
720
720
|
if (!_) return;
|
|
721
721
|
const g = _.scrollHeight;
|
|
722
722
|
_.style.setProperty("--sublinks-max-height", `${g}px`);
|
|
723
|
-
}, []), /* @__PURE__ */ e.jsx("div", { ref: c, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children:
|
|
724
|
-
}, X = (
|
|
725
|
-
|
|
723
|
+
}, []), /* @__PURE__ */ e.jsx("div", { ref: c, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children: b.map((_) => /* @__PURE__ */ e.jsx(dt, { ..._, onClick: E, parentPath: l }, `${_.title}-${_.path}`)) });
|
|
724
|
+
}, X = (E) => {
|
|
725
|
+
E.stopPropagation(), E.preventDefault(), $();
|
|
726
726
|
};
|
|
727
727
|
return C ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 ", children: [
|
|
728
728
|
/* @__PURE__ */ e.jsx(
|
|
@@ -731,10 +731,10 @@ const $t = be((t, r) => {
|
|
|
731
731
|
as: "a",
|
|
732
732
|
title: d,
|
|
733
733
|
icon: N,
|
|
734
|
-
count:
|
|
735
|
-
className:
|
|
736
|
-
isSelected:
|
|
737
|
-
hasSublinks: !!
|
|
734
|
+
count: f,
|
|
735
|
+
className: p,
|
|
736
|
+
isSelected: x,
|
|
737
|
+
hasSublinks: !!b,
|
|
738
738
|
subLinksCollapsed: s,
|
|
739
739
|
onToggleSublinks: X,
|
|
740
740
|
onClick: K,
|
|
@@ -752,13 +752,13 @@ const Kt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: o,
|
|
|
752
752
|
return /* @__PURE__ */ e.jsx(xe, { className: D("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, persistScroll: "navigation-links", indicators: {
|
|
753
753
|
top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
|
|
754
754
|
bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
|
|
755
|
-
}, children: t?.map((i,
|
|
756
|
-
const
|
|
755
|
+
}, children: t?.map((i, f) => {
|
|
756
|
+
const p = i.isSelected || i.path === d || (i.relatedPaths?.some((x) => d.startsWith(x)) ?? !1);
|
|
757
757
|
return /* @__PURE__ */ e.jsx(
|
|
758
758
|
ut,
|
|
759
759
|
{
|
|
760
760
|
...i,
|
|
761
|
-
isSelected:
|
|
761
|
+
isSelected: p,
|
|
762
762
|
onClick: r,
|
|
763
763
|
toggleCollapse: c,
|
|
764
764
|
getIsCollapsed: o,
|
|
@@ -766,7 +766,7 @@ const Kt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: o,
|
|
|
766
766
|
disabled: i.disabled,
|
|
767
767
|
isView: i.isView
|
|
768
768
|
},
|
|
769
|
-
|
|
769
|
+
f
|
|
770
770
|
);
|
|
771
771
|
}) });
|
|
772
772
|
}, ft = M(Kt);
|
|
@@ -804,32 +804,32 @@ const Yt = (t) => {
|
|
|
804
804
|
const { sessions: r, onSessionClick: s, secondarySlot: o, subImageUrlAccessor: c } = t;
|
|
805
805
|
if (!r || r.length === 0)
|
|
806
806
|
return null;
|
|
807
|
-
const l = (
|
|
808
|
-
s &&
|
|
809
|
-
}, d = (
|
|
807
|
+
const l = (f, p) => {
|
|
808
|
+
s && p && s(f, p);
|
|
809
|
+
}, d = (f) => {
|
|
810
810
|
if (!c)
|
|
811
811
|
return;
|
|
812
|
-
const
|
|
813
|
-
if (!
|
|
812
|
+
const p = f.metadata;
|
|
813
|
+
if (!p)
|
|
814
814
|
return;
|
|
815
|
-
const
|
|
816
|
-
if (
|
|
817
|
-
return typeof
|
|
818
|
-
}, i = h((
|
|
819
|
-
return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((
|
|
820
|
-
const { auth_id:
|
|
821
|
-
return /* @__PURE__ */ e.jsx(ie, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(ie.Content, { onClick: () => l(
|
|
815
|
+
const x = je({ metadata: p }, c);
|
|
816
|
+
if (x != null)
|
|
817
|
+
return typeof x == "string" ? x : String(x);
|
|
818
|
+
}, i = h((f) => typeof o == "function" ? o(f) : o, [o]);
|
|
819
|
+
return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((f) => {
|
|
820
|
+
const { auth_id: p } = f;
|
|
821
|
+
return /* @__PURE__ */ e.jsx(ie, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(ie.Content, { onClick: () => l(f, t.userOptionsControls), className: "p-0 group-data-[expanded=true]/ticketcard:border-none", children: /* @__PURE__ */ e.jsx(
|
|
822
822
|
Ze,
|
|
823
823
|
{
|
|
824
|
-
name:
|
|
824
|
+
name: p.name,
|
|
825
825
|
avatarSize: "xxs",
|
|
826
|
-
secondarySlot: i(
|
|
827
|
-
subImageUrl: d(
|
|
828
|
-
imageUrl:
|
|
826
|
+
secondarySlot: i(f),
|
|
827
|
+
subImageUrl: d(f),
|
|
828
|
+
imageUrl: p.profile_picture,
|
|
829
829
|
className: "pyrion-navigation-drawer-user-card"
|
|
830
830
|
},
|
|
831
|
-
|
|
832
|
-
) }) },
|
|
831
|
+
f.token
|
|
832
|
+
) }) }, f.token);
|
|
833
833
|
}) });
|
|
834
834
|
}, Xt = ({
|
|
835
835
|
state: t,
|
|
@@ -840,19 +840,19 @@ const Yt = (t) => {
|
|
|
840
840
|
onLogoutClick: l,
|
|
841
841
|
onProfileClick: d,
|
|
842
842
|
options: i,
|
|
843
|
-
currentSystemId:
|
|
844
|
-
userOptionsControls:
|
|
845
|
-
mobileAppSwitcherControls:
|
|
843
|
+
currentSystemId: f,
|
|
844
|
+
userOptionsControls: p,
|
|
845
|
+
mobileAppSwitcherControls: x
|
|
846
846
|
}) => {
|
|
847
|
-
const { getIsCollapsed:
|
|
848
|
-
const y =
|
|
849
|
-
y ? (
|
|
850
|
-
}, [
|
|
847
|
+
const { getIsCollapsed: m, toggleCollapse: b, subscribeToCollapse: S } = ce(), k = h(() => {
|
|
848
|
+
const y = m();
|
|
849
|
+
y ? (b(), p.current?.open()) : d?.(y);
|
|
850
|
+
}, [m, b, p, d]);
|
|
851
851
|
return se(() => S((y) => {
|
|
852
|
-
y && (
|
|
853
|
-
}), [S,
|
|
852
|
+
y && (p.current?.close(), x.current?.close());
|
|
853
|
+
}), [S, p, x]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
854
854
|
/* @__PURE__ */ e.jsx(re.Spacer, { className: "mb-3" }),
|
|
855
|
-
/* @__PURE__ */ e.jsxs(ie, { className: "", controls:
|
|
855
|
+
/* @__PURE__ */ e.jsxs(ie, { className: "", controls: p, children: [
|
|
856
856
|
/* @__PURE__ */ e.jsx(ie.Content, { onClick: k, children: /* @__PURE__ */ e.jsx(
|
|
857
857
|
Ze,
|
|
858
858
|
{
|
|
@@ -875,8 +875,8 @@ const Yt = (t) => {
|
|
|
875
875
|
onSessionClick: c,
|
|
876
876
|
secondarySlot: o,
|
|
877
877
|
subImageUrlAccessor: i?.sessionCardOptions?.subImageUrlAccessor,
|
|
878
|
-
currentSystemId:
|
|
879
|
-
userOptionsControls:
|
|
878
|
+
currentSystemId: f,
|
|
879
|
+
userOptionsControls: p
|
|
880
880
|
}
|
|
881
881
|
) })
|
|
882
882
|
] }),
|
|
@@ -946,7 +946,7 @@ const Jt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ie,
|
|
|
946
946
|
const o = h(() => {
|
|
947
947
|
if (t) {
|
|
948
948
|
if (s) {
|
|
949
|
-
const i = t.find((
|
|
949
|
+
const i = t.find((f) => f._id === s);
|
|
950
950
|
if (i) return { coverImage: i.coverImage, thumbnail: i.thumbnail };
|
|
951
951
|
}
|
|
952
952
|
const l = window.location.origin, d = t.find((i) => i.url === l);
|
|
@@ -981,8 +981,8 @@ Pe.displayName = "PyrionNavigationDrawer.SystemLogo";
|
|
|
981
981
|
const ht = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mobileAppSwitcherControls: c }) => {
|
|
982
982
|
const { getIsCollapsed: l } = ce(), d = Je(), i = h(() => {
|
|
983
983
|
if (t) {
|
|
984
|
-
const
|
|
985
|
-
t(
|
|
984
|
+
const f = l();
|
|
985
|
+
t(f);
|
|
986
986
|
}
|
|
987
987
|
}, [t, l]);
|
|
988
988
|
return d ? /* @__PURE__ */ e.jsx(
|
|
@@ -1019,34 +1019,34 @@ const Xe = ({ type: t }) => {
|
|
|
1019
1019
|
] }),
|
|
1020
1020
|
/* @__PURE__ */ e.jsx(pe, { shape: "rounded", className: "w-20 h-3" })
|
|
1021
1021
|
] }), Qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s, scrollableControls: o }) => {
|
|
1022
|
-
const [c, l] = J([]), [d, i] = J("NO_LEIDAS"), [
|
|
1022
|
+
const [c, l] = J([]), [d, i] = J("NO_LEIDAS"), [f, p] = J({ isLoading: !1, type: "load_more" }), [x, m] = J({ hasError: !1 }), b = O(/* @__PURE__ */ new Set()), S = O(null), k = O(null), y = h((g, P = "top") => {
|
|
1023
1023
|
l((R) => {
|
|
1024
1024
|
const z = Array.isArray(g) ? P === "bottom" ? [...R, ...g] : [...g, ...R] : P === "bottom" ? [...R, g] : [g, ...R];
|
|
1025
1025
|
return queueMicrotask(() => {
|
|
1026
|
-
|
|
1026
|
+
b.current.forEach((Q) => Q(z, z.length));
|
|
1027
1027
|
}), z;
|
|
1028
1028
|
});
|
|
1029
|
-
}, []), C = h((g) => (
|
|
1030
|
-
|
|
1029
|
+
}, []), C = h((g) => (b.current.add(g), () => {
|
|
1030
|
+
b.current.delete(g);
|
|
1031
1031
|
}), []), A = h((g) => {
|
|
1032
1032
|
l((P) => {
|
|
1033
1033
|
const R = Array.isArray(g) ? P.filter((z) => !g.includes(z._id)) : P.filter((z) => z._id !== g);
|
|
1034
1034
|
return queueMicrotask(() => {
|
|
1035
|
-
|
|
1035
|
+
b.current.forEach((z) => z(R, R.length));
|
|
1036
1036
|
}), R;
|
|
1037
1037
|
});
|
|
1038
1038
|
}, []), V = h(() => {
|
|
1039
1039
|
l([]), queueMicrotask(() => {
|
|
1040
|
-
|
|
1040
|
+
b.current.forEach((g) => g([], 0));
|
|
1041
1041
|
});
|
|
1042
1042
|
}, []), $ = h((g) => {
|
|
1043
1043
|
l(g), queueMicrotask(() => {
|
|
1044
|
-
|
|
1044
|
+
b.current.forEach((P) => P(g, g.length));
|
|
1045
1045
|
});
|
|
1046
1046
|
}, []), j = h((g, P = "load_more") => {
|
|
1047
|
-
|
|
1047
|
+
p({ isLoading: g, type: P });
|
|
1048
1048
|
}, []), U = h((g, P) => {
|
|
1049
|
-
|
|
1049
|
+
m({ hasError: g, children: P });
|
|
1050
1050
|
}, []);
|
|
1051
1051
|
Re(s, () => ({
|
|
1052
1052
|
addNewNotification: y,
|
|
@@ -1066,7 +1066,7 @@ const Xe = ({ type: t }) => {
|
|
|
1066
1066
|
k.current.style.setProperty("height", `calc(100vh - ${g}px - 20px)`);
|
|
1067
1067
|
}
|
|
1068
1068
|
}, [S?.current]);
|
|
1069
|
-
const G = c.filter((g) => !g.read).length, { isLoading: q, type: X } =
|
|
1069
|
+
const G = c.filter((g) => !g.read).length, { isLoading: q, type: X } = f, { hasError: E, children: _ } = x;
|
|
1070
1070
|
return /* @__PURE__ */ e.jsx(
|
|
1071
1071
|
"section",
|
|
1072
1072
|
{
|
|
@@ -1081,7 +1081,7 @@ const Xe = ({ type: t }) => {
|
|
|
1081
1081
|
/* @__PURE__ */ e.jsx(he, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Fe, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
|
|
1082
1082
|
] }),
|
|
1083
1083
|
/* @__PURE__ */ e.jsx(
|
|
1084
|
-
|
|
1084
|
+
Et,
|
|
1085
1085
|
{
|
|
1086
1086
|
className: "px-4 md:px-2 md:pl-2 pl-2 gap-0 md:gap-0",
|
|
1087
1087
|
onTabChange: N,
|
|
@@ -1092,7 +1092,7 @@ const Xe = ({ type: t }) => {
|
|
|
1092
1092
|
],
|
|
1093
1093
|
renderTab: (g, P, R, z, Q, ae, Z, ve) => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
1094
1094
|
/* @__PURE__ */ e.jsx(
|
|
1095
|
-
|
|
1095
|
+
It,
|
|
1096
1096
|
{
|
|
1097
1097
|
id: g.id,
|
|
1098
1098
|
title: g.title,
|
|
@@ -1109,7 +1109,7 @@ const Xe = ({ type: t }) => {
|
|
|
1109
1109
|
] })
|
|
1110
1110
|
}
|
|
1111
1111
|
),
|
|
1112
|
-
r && K && d === "NO_LEIDAS" && !
|
|
1112
|
+
r && K && d === "NO_LEIDAS" && !E && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end px-4", children: /* @__PURE__ */ e.jsx(he, { disabled: q, onClick: r, label: "Marcar todas como leidas", variant: "text", animate: !1, animateIcon: !1, size: "small" }) })
|
|
1113
1113
|
] }),
|
|
1114
1114
|
/* @__PURE__ */ e.jsx("div", { ref: k, className: "", children: /* @__PURE__ */ e.jsxs(
|
|
1115
1115
|
xe,
|
|
@@ -1128,8 +1128,8 @@ const Xe = ({ type: t }) => {
|
|
|
1128
1128
|
isLoading: q
|
|
1129
1129
|
},
|
|
1130
1130
|
children: [
|
|
1131
|
-
|
|
1132
|
-
!
|
|
1131
|
+
E && /* @__PURE__ */ e.jsx("div", { className: "w-full h-full grid place-items-center", children: typeof _ == "function" ? _() : _ }),
|
|
1132
|
+
!E && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1133
1133
|
q && X === "skeletons" ? /* @__PURE__ */ e.jsx(Xe, { type: X }) : K ? c?.filter((g) => d === "NO_LEIDAS" ? !g.read : g)?.map((g, P) => /* @__PURE__ */ e.jsx(Ot, { ...g, className: " border-b border-neutral-strong-default rounded-b-none last:border-b-0" }, P)) : /* @__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" }),
|
|
1134
1134
|
q && X === "load_more" && /* @__PURE__ */ e.jsx(Xe, { type: X })
|
|
1135
1135
|
] })
|
|
@@ -1155,24 +1155,24 @@ const Xe = ({ type: t }) => {
|
|
|
1155
1155
|
]
|
|
1156
1156
|
}
|
|
1157
1157
|
), er = ({ closeSidebar: t, options: r, helpSection: s, initialSection: o, notificationsListControls: c, scrollableControls: l }, d) => {
|
|
1158
|
-
const [i,
|
|
1158
|
+
const [i, f] = J(o ?? "notifications");
|
|
1159
1159
|
Re(d, () => ({
|
|
1160
|
-
setActiveSection:
|
|
1160
|
+
setActiveSection: f
|
|
1161
1161
|
}));
|
|
1162
|
-
const
|
|
1162
|
+
const p = () => {
|
|
1163
1163
|
t();
|
|
1164
1164
|
};
|
|
1165
1165
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1166
1166
|
i === "notifications" && !r?.notificationsDrawerOptions?.hide && /* @__PURE__ */ e.jsx(
|
|
1167
1167
|
Qt,
|
|
1168
1168
|
{
|
|
1169
|
-
onCloseClick:
|
|
1169
|
+
onCloseClick: p,
|
|
1170
1170
|
onMarkAllAsRead: r?.notificationsDrawerOptions?.onMarkAllAsRead,
|
|
1171
1171
|
notificationsListControls: c,
|
|
1172
1172
|
scrollableControls: l
|
|
1173
1173
|
}
|
|
1174
1174
|
),
|
|
1175
|
-
i === "help" && s && !r?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx(Zt, { onCloseClick:
|
|
1175
|
+
i === "help" && s && !r?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx(Zt, { onCloseClick: p, children: typeof s == "function" ? s() : s })
|
|
1176
1176
|
] });
|
|
1177
1177
|
}, bt = be(er);
|
|
1178
1178
|
bt.displayName = "SidebarContent";
|
|
@@ -1203,9 +1203,9 @@ const rr = ({ navigationControlsRef: t }) => {
|
|
|
1203
1203
|
const r = ce();
|
|
1204
1204
|
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;
|
|
1205
1205
|
}, sr = (t) => {
|
|
1206
|
-
const { children: r, currentAppSessions: s, resolveUserSecondarySlot: o, resolveSessionSecondarySlot: c, handleNavigation: l, allActions: d, tabs: i, navigationControlsRef:
|
|
1206
|
+
const { children: r, currentAppSessions: s, resolveUserSecondarySlot: o, resolveSessionSecondarySlot: c, handleNavigation: l, allActions: d, tabs: i, navigationControlsRef: f, sidebarContentRef: p, initialSectionRef: x, userOptionsControls: m, mobileAppSwitcherControls: b, notificationsListControls: S, scrollableControls: k, outletRef: y, ...C } = t;
|
|
1207
1207
|
return /* @__PURE__ */ e.jsxs(re, { disableDragOpen: C.options?.disableDragOpen, outletRef: y, children: [
|
|
1208
|
-
/* @__PURE__ */ e.jsx(rr, { navigationControlsRef:
|
|
1208
|
+
/* @__PURE__ */ e.jsx(rr, { navigationControlsRef: f }),
|
|
1209
1209
|
/* @__PURE__ */ e.jsx(re.Header, { className: "flex flex-col relative w-full select-none", children: /* @__PURE__ */ e.jsx(
|
|
1210
1210
|
ht,
|
|
1211
1211
|
{
|
|
@@ -1213,7 +1213,7 @@ const rr = ({ navigationControlsRef: t }) => {
|
|
|
1213
1213
|
state: C.state,
|
|
1214
1214
|
currentSystemId: C.currentSystemId,
|
|
1215
1215
|
tabs: i,
|
|
1216
|
-
mobileAppSwitcherControls:
|
|
1216
|
+
mobileAppSwitcherControls: b
|
|
1217
1217
|
}
|
|
1218
1218
|
) }, "PL-Header"),
|
|
1219
1219
|
/* @__PURE__ */ e.jsx(re.Content, { className: "overflow-hidden flex flex-col relative flex-1 md:w-auto", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1237,8 +1237,8 @@ const rr = ({ navigationControlsRef: t }) => {
|
|
|
1237
1237
|
onLogoutClick: C.onLogoutClick,
|
|
1238
1238
|
options: C.options,
|
|
1239
1239
|
currentSystemId: C.currentSystemId,
|
|
1240
|
-
userOptionsControls:
|
|
1241
|
-
mobileAppSwitcherControls:
|
|
1240
|
+
userOptionsControls: m,
|
|
1241
|
+
mobileAppSwitcherControls: b,
|
|
1242
1242
|
onProfileClick: C.onProfileClick
|
|
1243
1243
|
}
|
|
1244
1244
|
) }, "PL-Footer"),
|
|
@@ -1254,8 +1254,8 @@ const rr = ({ navigationControlsRef: t }) => {
|
|
|
1254
1254
|
{
|
|
1255
1255
|
options: C.options,
|
|
1256
1256
|
helpSection: C.helpSection,
|
|
1257
|
-
sidebarContentRef:
|
|
1258
|
-
initialSectionRef:
|
|
1257
|
+
sidebarContentRef: p,
|
|
1258
|
+
initialSectionRef: x,
|
|
1259
1259
|
notificationsListControls: S,
|
|
1260
1260
|
scrollableControls: k
|
|
1261
1261
|
}
|
|
@@ -1267,11 +1267,11 @@ const rr = ({ navigationControlsRef: t }) => {
|
|
|
1267
1267
|
const { children: s, ...o } = t, { children: c, ...l } = r, d = Object.keys(o), i = Object.keys(l);
|
|
1268
1268
|
if (d.length !== i.length)
|
|
1269
1269
|
return !1;
|
|
1270
|
-
for (const
|
|
1271
|
-
if (!Object.prototype.hasOwnProperty.call(l,
|
|
1270
|
+
for (const f of d) {
|
|
1271
|
+
if (!Object.prototype.hasOwnProperty.call(l, f))
|
|
1272
1272
|
return !1;
|
|
1273
|
-
const
|
|
1274
|
-
if (
|
|
1273
|
+
const p = o[f], x = l[f];
|
|
1274
|
+
if (p !== x)
|
|
1275
1275
|
return !1;
|
|
1276
1276
|
}
|
|
1277
1277
|
return !0;
|
|
@@ -1284,14 +1284,14 @@ const wt = Me(null), Dr = () => {
|
|
|
1284
1284
|
if (!t)
|
|
1285
1285
|
throw new Error("usePyrionLayout debe usarse dentro de PyrionLayout");
|
|
1286
1286
|
return t;
|
|
1287
|
-
}, Ar = ({ children: t, helpSection: r, state: s, links: o, onLinkClick: c, onNavigate: l, onLogoutClick: d, actions: i, activeActionId:
|
|
1287
|
+
}, Ar = ({ children: t, helpSection: r, state: s, links: o, onLinkClick: c, onNavigate: l, onLogoutClick: d, actions: i, activeActionId: f, onActionClick: p, tabsProps: x, currentSystemId: m, onSessionClick: b, onSystemLogoClick: S, onProfileClick: k, ...y }) => {
|
|
1288
1288
|
const A = Object.assign({
|
|
1289
1289
|
closeDrawerOnNavigate: !0,
|
|
1290
1290
|
disableDragOpen: {
|
|
1291
1291
|
sidebar: !0,
|
|
1292
1292
|
drawer: !1
|
|
1293
1293
|
}
|
|
1294
|
-
}, y.options), V = kt(), $ = Je(), j = O(null), U = O(null), N = O({}), K = O(null), G = O("notifications"), q = O(null), X = O(null),
|
|
1294
|
+
}, y.options), V = kt(), $ = Je(), j = O(null), U = O(null), N = O({}), K = O(null), G = O("notifications"), q = O(null), X = O(null), E = O(null), [_, g] = J(0), [P, R] = J(!1), [z, Q] = J(null), ae = h((a) => {
|
|
1295
1295
|
if (R(!1), c) {
|
|
1296
1296
|
c(a);
|
|
1297
1297
|
return;
|
|
@@ -1313,17 +1313,17 @@ const wt = Me(null), Dr = () => {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
}, Ae = h((a) => {
|
|
1315
1315
|
const w = $ ? "mobile" : "desktop", F = s.enabled_systems.find((T) => T.name === a)?.url;
|
|
1316
|
-
we.system[w](F),
|
|
1317
|
-
}, [$, s.enabled_systems,
|
|
1316
|
+
we.system[w](F), x?.onTabClick?.(a);
|
|
1317
|
+
}, [$, s.enabled_systems, x?.onTabClick]), We = h((a) => {
|
|
1318
1318
|
const w = $ ? "mobile" : "desktop", F = s.company.products?.find((T) => T.name === a)?.domain;
|
|
1319
|
-
we.product[w](F),
|
|
1320
|
-
}, [$, s.company.products,
|
|
1319
|
+
we.product[w](F), x?.onTabClick?.(a);
|
|
1320
|
+
}, [$, s.company.products, x?.onTabClick]), de = h((a, w) => {
|
|
1321
1321
|
if (w) {
|
|
1322
|
-
w(a),
|
|
1322
|
+
w(a), x?.onTabClick?.(a);
|
|
1323
1323
|
return;
|
|
1324
1324
|
} else
|
|
1325
|
-
|
|
1326
|
-
}, [
|
|
1325
|
+
x?.onTabClick?.(a);
|
|
1326
|
+
}, [x?.onTabClick]), He = h(() => {
|
|
1327
1327
|
const a = {};
|
|
1328
1328
|
s.enabled_systems.forEach((F) => {
|
|
1329
1329
|
a[F.url] = F.name;
|
|
@@ -1333,7 +1333,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1333
1333
|
if (w === F)
|
|
1334
1334
|
return T;
|
|
1335
1335
|
return "";
|
|
1336
|
-
}, [s.enabled_systems]), Te =
|
|
1336
|
+
}, [s.enabled_systems]), Te = x?.currentTabName || He(), Oe = me(
|
|
1337
1337
|
() => s.sessions || [],
|
|
1338
1338
|
[s.sessions]
|
|
1339
1339
|
), ee = (a) => a == null ? null : typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? String(a) : ke(a) ? a : typeof a == "object" ? JSON.stringify(a) : null, ue = h((a, w) => {
|
|
@@ -1357,18 +1357,18 @@ const wt = Me(null), Dr = () => {
|
|
|
1357
1357
|
(a) => {
|
|
1358
1358
|
const w = A?.userCardOptions?.secondarySlot;
|
|
1359
1359
|
if (!w) return null;
|
|
1360
|
-
const F = s.enabled_systems?.find((ne) => ne._id ===
|
|
1360
|
+
const F = s.enabled_systems?.find((ne) => ne._id === m), T = { company: s.company, user: s.user, system: F, metadata: a };
|
|
1361
1361
|
return ue(w, T);
|
|
1362
1362
|
},
|
|
1363
|
-
[
|
|
1364
|
-
),
|
|
1363
|
+
[m, A?.userCardOptions?.secondarySlot, ue, s.company, s.enabled_systems, s.user]
|
|
1364
|
+
), u = h(
|
|
1365
1365
|
(a) => {
|
|
1366
1366
|
const w = A?.sessionCardOptions?.secondarySlot || A?.userCardOptions?.secondarySlot;
|
|
1367
1367
|
if (!w) return null;
|
|
1368
|
-
const F = s.enabled_systems?.find((ne) => ne._id ===
|
|
1368
|
+
const F = s.enabled_systems?.find((ne) => ne._id === m), T = { company: s.company, user: a.auth_id, metadata: a?.metadata, system: F };
|
|
1369
1369
|
return ue(w, T);
|
|
1370
1370
|
},
|
|
1371
|
-
[
|
|
1371
|
+
[m, A?.sessionCardOptions?.secondarySlot, A?.userCardOptions?.secondarySlot, ue, s.company, s.enabled_systems]
|
|
1372
1372
|
), v = me(() => {
|
|
1373
1373
|
const a = [];
|
|
1374
1374
|
return N.current.openNotifications = () => {
|
|
@@ -1392,7 +1392,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1392
1392
|
icon: _t,
|
|
1393
1393
|
onClick: A.configurationActionOptions?.onClick
|
|
1394
1394
|
}), a;
|
|
1395
|
-
}, [A, r,
|
|
1395
|
+
}, [A, r, p, _]), I = me(
|
|
1396
1396
|
() => [...v, ...i || []],
|
|
1397
1397
|
[v, i]
|
|
1398
1398
|
), W = me(() => {
|
|
@@ -1401,7 +1401,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1401
1401
|
thumbnail: T.thumbnail,
|
|
1402
1402
|
onClick: Ae,
|
|
1403
1403
|
id: T._id
|
|
1404
|
-
})) || [], w =
|
|
1404
|
+
})) || [], w = x?.customTabs?.map((T) => ({
|
|
1405
1405
|
...T,
|
|
1406
1406
|
onClick: () => de(T.name, T?.onClick)
|
|
1407
1407
|
})) || [], F = s.company.products?.map((T) => ({
|
|
@@ -1410,7 +1410,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1410
1410
|
onClick: We
|
|
1411
1411
|
})) || [];
|
|
1412
1412
|
return [...a, ...w, ...F];
|
|
1413
|
-
}, [s.enabled_systems, s.company.products,
|
|
1413
|
+
}, [s.enabled_systems, s.company.products, x?.customTabs]), B = h((a, w) => {
|
|
1414
1414
|
j.current?.addNewNotification ? j.current.addNewNotification(a, w) : console.warn("Notifications controls not ready yet");
|
|
1415
1415
|
}, []), te = h((a) => j.current?.subscribeToUpdates ? j.current.subscribeToUpdates(a) : (console.warn("Notifications controls not ready yet"), () => {
|
|
1416
1416
|
}), []), oe = h((a) => {
|
|
@@ -1428,7 +1428,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1428
1428
|
q.current?.open();
|
|
1429
1429
|
}, []), le = h(() => {
|
|
1430
1430
|
q.current?.close();
|
|
1431
|
-
}, []),
|
|
1431
|
+
}, []), Ee = h(() => {
|
|
1432
1432
|
q.current?.toggle();
|
|
1433
1433
|
}, []), Ce = h((a, w, F) => {
|
|
1434
1434
|
const T = /* @__PURE__ */ e.jsxs("div", { className: D(" bg-black/60 z-200 inset-0 h-full w-full grid place-items-center text-neutral-default-default", w ? "fixed" : "sticky"), children: [
|
|
@@ -1436,11 +1436,11 @@ const wt = Me(null), Dr = () => {
|
|
|
1436
1436
|
typeof a == "function" ? a() : a
|
|
1437
1437
|
] });
|
|
1438
1438
|
let ne;
|
|
1439
|
-
return w ? ne = $e(T, document.body, `modal-error-${Date.now()}`) :
|
|
1440
|
-
}, [
|
|
1439
|
+
return w ? ne = $e(T, document.body, `modal-error-${Date.now()}`) : E.current && (ne = $e(T, E.current, `modal-error-${Date.now()}`)), Q(ne), R(!0), T;
|
|
1440
|
+
}, [E]), Se = h(() => {
|
|
1441
1441
|
R(!1);
|
|
1442
1442
|
}, []);
|
|
1443
|
-
return N.current.addNewNotification = B, N.current.subscribeToNotificationsUpdates = te, N.current.removeNotification = oe, N.current.removeAllNotifications = fe, N.current.setNotifications = Ne, N.current.setNotificationsError = Y, N.current.setNotificationsLoading = L, N.current.subscribeToNotificationsScroll = ye, N.current.showErrorModal = Ce, N.current.closeErrorModal = Se, N.current.userCardExpand = H, N.current.userCardCollapse = le, N.current.userCardToggle =
|
|
1443
|
+
return N.current.addNewNotification = B, N.current.subscribeToNotificationsUpdates = te, N.current.removeNotification = oe, N.current.removeAllNotifications = fe, N.current.setNotifications = Ne, N.current.setNotificationsError = Y, N.current.setNotificationsLoading = L, N.current.subscribeToNotificationsScroll = ye, N.current.showErrorModal = Ce, N.current.closeErrorModal = Se, N.current.userCardExpand = H, N.current.userCardCollapse = le, N.current.userCardToggle = Ee, se(() => {
|
|
1444
1444
|
te((a, w) => {
|
|
1445
1445
|
g(w);
|
|
1446
1446
|
});
|
|
@@ -1454,7 +1454,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1454
1454
|
tabs: W,
|
|
1455
1455
|
activeColor: "var(--neutral-900)",
|
|
1456
1456
|
currentTabName: Te,
|
|
1457
|
-
currentSystemId:
|
|
1457
|
+
currentSystemId: m,
|
|
1458
1458
|
isLoading: !s.enabled_systems || s.enabled_systems.length === 0
|
|
1459
1459
|
}
|
|
1460
1460
|
),
|
|
@@ -1463,17 +1463,17 @@ const wt = Me(null), Dr = () => {
|
|
|
1463
1463
|
{
|
|
1464
1464
|
links: o,
|
|
1465
1465
|
handleNavigation: ae,
|
|
1466
|
-
allActions:
|
|
1467
|
-
activeActionId:
|
|
1468
|
-
onActionClick:
|
|
1466
|
+
allActions: I,
|
|
1467
|
+
activeActionId: f,
|
|
1468
|
+
onActionClick: p,
|
|
1469
1469
|
state: s,
|
|
1470
1470
|
currentAppSessions: Oe,
|
|
1471
1471
|
resolveUserSecondarySlot: n,
|
|
1472
|
-
resolveSessionSecondarySlot:
|
|
1473
|
-
onSessionClick:
|
|
1472
|
+
resolveSessionSecondarySlot: u,
|
|
1473
|
+
onSessionClick: b,
|
|
1474
1474
|
onLogoutClick: d,
|
|
1475
1475
|
options: A,
|
|
1476
|
-
currentSystemId:
|
|
1476
|
+
currentSystemId: m,
|
|
1477
1477
|
userOptionsControls: q,
|
|
1478
1478
|
mobileAppSwitcherControls: X,
|
|
1479
1479
|
onSystemLogoClick: S,
|
|
@@ -1484,7 +1484,7 @@ const wt = Me(null), Dr = () => {
|
|
|
1484
1484
|
navigationControlsRef: N,
|
|
1485
1485
|
notificationsListControls: j,
|
|
1486
1486
|
scrollableControls: U,
|
|
1487
|
-
outletRef:
|
|
1487
|
+
outletRef: E,
|
|
1488
1488
|
onProfileClick: k,
|
|
1489
1489
|
children: t
|
|
1490
1490
|
}
|