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