prometeo-design-system 5.2.0 → 5.2.1

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