prometeo-design-system 4.2.3 → 4.2.5

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