prometeo-design-system 6.0.0 → 6.0.2

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