prometeo-design-system 4.1.7 → 4.1.8

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