prometeo-design-system 4.6.3 → 4.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/Button.es.js +1 -1
  3. package/dist/CardProfile.es.js +1 -1
  4. package/dist/CheckBox.es.js +1 -1
  5. package/dist/Chip.es.js +1 -1
  6. package/dist/DatePicker-n6qm0fey.js +3573 -0
  7. package/dist/DatePicker.es.js +1 -1
  8. package/dist/DialogModal.es.js +154 -69
  9. package/dist/DrawerDesktop.es.js +2 -2
  10. package/dist/DrawerMobile.es.js +1 -1
  11. package/dist/DropZone.es.js +1 -1
  12. package/dist/FAButton.es.js +1 -1
  13. package/dist/Header.es.js +8 -9
  14. package/dist/{HelperComponent-ljsn0xD6.js → HelperComponent-DhGU_ug-.js} +1 -1
  15. package/dist/IconButton.es.js +3 -3
  16. package/dist/Icons/AccountCircle.es.js +1 -1
  17. package/dist/Icons/Add.es.js +1 -1
  18. package/dist/Icons/ArrowDownward.es.js +1 -1
  19. package/dist/Icons/ArrowLeft.es.js +1 -1
  20. package/dist/Icons/ArrowUpDown.es.js +1 -1
  21. package/dist/Icons/ArrowUpward.es.js +1 -1
  22. package/dist/Icons/AttachFile.es.js +1 -1
  23. package/dist/Icons/Boards.es.js +1 -1
  24. package/dist/Icons/Calendar.es.js +1 -1
  25. package/dist/Icons/Cancel.es.js +1 -1
  26. package/dist/Icons/Check.es.js +1 -1
  27. package/dist/Icons/CheckCircle.es.js +1 -1
  28. package/dist/Icons/CheckList.es.js +1 -1
  29. package/dist/Icons/ChevronDown.es.js +1 -1
  30. package/dist/Icons/Clock.es.js +1 -1
  31. package/dist/Icons/Close.es.js +1 -1
  32. package/dist/Icons/CloseNavBarDesktop.es.js +1 -1
  33. package/dist/Icons/Collapse.es.js +1 -1
  34. package/dist/Icons/Company.es.js +1 -1
  35. package/dist/Icons/Copy.es.js +1 -1
  36. package/dist/Icons/CrevronLeft.es.js +1 -1
  37. package/dist/Icons/CrevronRight.es.js +1 -1
  38. package/dist/Icons/DocumentFill.es.js +1 -1
  39. package/dist/Icons/Download.es.js +1 -1
  40. package/dist/Icons/DragIndicator.es.js +1 -1
  41. package/dist/Icons/Edit.es.js +1 -1
  42. package/dist/Icons/EditFill.es.js +1 -1
  43. package/dist/Icons/Email.es.js +1 -1
  44. package/dist/Icons/Error.es.js +1 -1
  45. package/dist/Icons/EyeVisibility.es.js +1 -1
  46. package/dist/Icons/EyeVisibilityOff.es.js +1 -1
  47. package/dist/Icons/FaLock.es.js +1 -1
  48. package/dist/Icons/FastForward.es.js +1 -1
  49. package/dist/Icons/File.es.js +1 -1
  50. package/dist/Icons/Filter.es.js +1 -1
  51. package/dist/Icons/FormatColorText.es.js +1 -1
  52. package/dist/Icons/Help.es.js +1 -1
  53. package/dist/Icons/HistoryActivity.es.js +1 -1
  54. package/dist/Icons/Home.es.js +1 -1
  55. package/dist/Icons/Image.es.js +1 -1
  56. package/dist/Icons/Info.es.js +1 -1
  57. package/dist/Icons/Logout.es.js +1 -1
  58. package/dist/Icons/MessageSquare.es.js +1 -1
  59. package/dist/Icons/MessageSquareFill.es.js +1 -1
  60. package/dist/Icons/MoreVert.es.js +1 -1
  61. package/dist/Icons/Notifications.es.js +1 -1
  62. package/dist/Icons/Pause.es.js +1 -1
  63. package/dist/Icons/Reassignment.es.js +1 -1
  64. package/dist/Icons/ReassignmentFill.es.js +1 -1
  65. package/dist/Icons/Reload.es.js +1 -1
  66. package/dist/Icons/Search.es.js +1 -1
  67. package/dist/Icons/Send.es.js +1 -1
  68. package/dist/Icons/Settings.es.js +1 -1
  69. package/dist/Icons/Shared.es.js +1 -1
  70. package/dist/Icons/Sort.es.js +1 -1
  71. package/dist/Icons/StarFill.es.js +1 -1
  72. package/dist/Icons/Stars.es.js +1 -1
  73. package/dist/Icons/Ticket.es.js +1 -1
  74. package/dist/Icons/TicketFilled.es.js +1 -1
  75. package/dist/Icons/Trash.es.js +1 -1
  76. package/dist/Icons/TrashFill.es.js +1 -1
  77. package/dist/Icons/Upload.es.js +1 -1
  78. package/dist/Icons/UploadCloud.es.js +1 -1
  79. package/dist/Icons/UserAdd.es.js +1 -1
  80. package/dist/Icons/UserAddFill.es.js +1 -1
  81. package/dist/Icons/UserAvatar.es.js +1 -1
  82. package/dist/Icons/UserPerson.es.js +1 -1
  83. package/dist/Icons/WhatsApp.es.js +1 -1
  84. package/dist/Image.es.js +1 -1
  85. package/dist/{ImageGallery-DG9ovlQ-.js → ImageGallery-4DdXqwRy.js} +1 -1
  86. package/dist/ImageGallery.es.js +1 -1
  87. package/dist/Input.es.js +2 -2
  88. package/dist/InputMultiple.es.js +1 -1
  89. package/dist/Logo.es.js +1 -1
  90. package/dist/Menu.es.js +1 -1
  91. package/dist/NotificationCard.es.js +1 -1
  92. package/dist/OtpInput.es.js +1 -1
  93. package/dist/Pagination.es.js +1 -1
  94. package/dist/PlainTooltip.es.js +1 -1
  95. package/dist/ProfilePictureUpload.es.js +1 -1
  96. package/dist/ProgressBar.es.js +1 -1
  97. package/dist/PyrionLayout.es.js +333 -363
  98. package/dist/RadioButton.es.js +2 -2
  99. package/dist/RecurrentDatePicker.es.js +3 -3
  100. package/dist/RecurrentDatePickerRRule.es.js +4 -2
  101. package/dist/Scrollable.es.js +1 -1
  102. package/dist/SegmentedButton.es.js +1 -1
  103. package/dist/Select.es.js +558 -557
  104. package/dist/SelectSearch.es.js +1 -1
  105. package/dist/Skeleton.es.js +1 -1
  106. package/dist/Spinner.es.js +1 -1
  107. package/dist/Steps.es.js +1 -1
  108. package/dist/Switch.es.js +7 -7
  109. package/dist/{TabLinks-DnoWdrdk.js → TabLinks-C0ywjYt-.js} +2 -2
  110. package/dist/TabLinks.es.js +1 -1
  111. package/dist/Table.es.js +1 -1
  112. package/dist/TextArea.es.js +1 -1
  113. package/dist/TicketCard.es.js +1 -1
  114. package/dist/Toast.es.js +1 -1
  115. package/dist/ToastProvider.es.js +1 -1
  116. package/dist/Tooltip.es.js +1 -1
  117. package/dist/UserCard.es.js +1 -1
  118. package/dist/{badge-BEx-0Q-K.js → badge-CiiB9SGl.js} +1 -1
  119. package/dist/components/Dialog/Dialog.d.ts +15 -4
  120. package/dist/components/Select/Select.d.ts +1 -0
  121. package/dist/{jsx-runtime-GkKLlHH4.js → jsx-runtime-DKDX3adD.js} +20 -2
  122. package/dist/prometeo-design-system.es.js +5 -5
  123. package/package.json +1 -1
  124. package/dist/DatePicker-QuBgR5DQ.js +0 -3738
@@ -1,28 +1,28 @@
1
- import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
- import { u as qe, g as ht } from "./useDevice-vwn4GLwK.js";
3
- import { c as T } from "./cn-B6yFEsav.js";
4
- import { g as ye } from "./utils-X4-h3cum.js";
5
- import Ue, { forwardRef as he, useState as Y, useRef as O, useEffect as Q, memo as M, useContext as $e, createContext as Ie, useCallback as x, Children as bt, isValidElement as Ce, useMemo as me, useImperativeHandle as Ee, useLayoutEffect as xt, use as gt } from "react";
6
- import { createPortal as He } from "react-dom";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
+ import { u as We, g as ht } from "./useDevice-vwn4GLwK.js";
3
+ import { c as L } from "./cn-B6yFEsav.js";
4
+ import { g as Ne } from "./utils-X4-h3cum.js";
5
+ import ze, { forwardRef as he, useState as Y, useRef as T, useEffect as Q, memo as M, useContext as qe, createContext as Oe, useCallback as x, Children as bt, isValidElement as ye, useMemo as me, useImperativeHandle as Ie, useLayoutEffect as xt, use as gt } from "react";
6
+ import { createPortal as Ue } from "react-dom";
7
7
  import { useLocation as vt, useNavigate as wt } from "react-router";
8
8
  import { CloseNavBarDesktop as Nt } from "./Icons/CloseNavBarDesktop.es.js";
9
- import { c as Pe } from "./index-BOQuZ0gG.js";
10
- import { B as Ke } from "./badge-BEx-0Q-K.js";
9
+ import { c as Ee } from "./index-BOQuZ0gG.js";
10
+ import { B as $e } from "./badge-CiiB9SGl.js";
11
11
  import yt from "./PlainTooltip.es.js";
12
12
  import { CrevronLeft as Ct } from "./Icons/CrevronLeft.es.js";
13
13
  import { Scrollable as be } from "./Scrollable.es.js";
14
14
  import se from "./TicketCard.es.js";
15
- import Ye from "./UserCard.es.js";
15
+ import Ke from "./UserCard.es.js";
16
16
  import pe from "./Button.es.js";
17
17
  import { Logout as St } from "./Icons/Logout.es.js";
18
18
  import jt from "./NotificationCard.es.js";
19
- import { T as kt, a as Dt } from "./TabLinks-DnoWdrdk.js";
20
- import { Notifications as Xe } from "./Icons/Notifications.es.js";
21
- import { Close as _e } from "./Icons/Close.es.js";
22
- import { Help as Je } from "./Icons/Help.es.js";
19
+ import { T as kt, a as Dt } from "./TabLinks-C0ywjYt-.js";
20
+ import { Notifications as Ye } from "./Icons/Notifications.es.js";
21
+ import { Close as Pe } from "./Icons/Close.es.js";
22
+ import { Help as Xe } from "./Icons/Help.es.js";
23
23
  import { Settings as Lt } from "./Icons/Settings.es.js";
24
- const Tt = he((t, r) => {
25
- const [s, o] = Y(t?.currentTabName || t.tabs[0].name), u = O(null), { tabs: l = [], className: f, activeColor: d = "var(--neutral-900)", currentSystemId: p } = t;
24
+ const At = he((t, r) => {
25
+ const [s, o] = Y(t?.currentTabName || t.tabs[0].name), u = T(null), { tabs: l = [], className: f, activeColor: d = "var(--neutral-900)", currentSystemId: p } = t;
26
26
  Q(() => {
27
27
  u.current?.style.setProperty("--tab-bg", d);
28
28
  }, [d]);
@@ -31,7 +31,7 @@ const Tt = he((t, r) => {
31
31
  "div",
32
32
  {
33
33
  ref: r,
34
- className: T(
34
+ className: L(
35
35
  "select-none",
36
36
  "flex flex-col gap-2",
37
37
  "bg-neutral-strong-default",
@@ -47,7 +47,7 @@ const Tt = he((t, r) => {
47
47
  return /* @__PURE__ */ e.jsx(
48
48
  "div",
49
49
  {
50
- className: T(
50
+ className: L(
51
51
  "bg-[(--tab-bg)]",
52
52
  "h-12 w-[50px] z-20",
53
53
  "flex items-center pl-[6px] ",
@@ -57,7 +57,7 @@ const Tt = he((t, r) => {
57
57
  ),
58
58
  onClick: C,
59
59
  ref: u,
60
- children: /* @__PURE__ */ e.jsx("div", { className: T(
60
+ children: /* @__PURE__ */ e.jsx("div", { className: L(
61
61
  "size-8 rounded-[4px]",
62
62
  "grid place-items-center",
63
63
  "tab-thumbnail-icon",
@@ -71,47 +71,47 @@ const Tt = he((t, r) => {
71
71
  )
72
72
  }
73
73
  );
74
- }), Ge = M(he(({ children: t, className: r, context: s, modal: o = !1, closeOnOverlayClick: u = !1, unmountChildrenOnClose: l = !0 }, f) => {
75
- const d = xe(t, s), p = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, { isSidebarOpen: h } = At(), { closeSidebar: c } = le(), [g, b] = Y(() => l ? h : !0), [C, L] = Y(!1);
74
+ }), Je = M(he(({ children: t, className: r, context: s, modal: o = !1, closeOnOverlayClick: u = !1, unmountChildrenOnClose: l = !0 }, f) => {
75
+ const d = xe(t, s), p = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, { isSidebarOpen: h } = Tt(), { closeSidebar: c } = oe(), [g, b] = Y(() => l ? h : !0), [C, A] = Y(!1);
76
76
  return Q(() => {
77
77
  l && s?.subscribeToSidebarOpen((w) => {
78
- w ? (L(!1), b(!0)) : L(!0);
78
+ w ? (A(!1), b(!0)) : A(!0);
79
79
  });
80
80
  }, [l, s]), Q(() => {
81
81
  const w = f && typeof f == "object" && "current" in f ? f.current : null;
82
82
  if (!w) return;
83
83
  const N = () => {
84
- C && (b(!1), L(!1));
84
+ C && (b(!1), A(!1));
85
85
  };
86
86
  return w.addEventListener("transitionend", N), () => w.removeEventListener("transitionend", N);
87
- }, [C]), /* @__PURE__ */ e.jsxs("div", { ref: f, className: T("sidebar", p ? "collapsed" : "expanded", "h-full overflow-auto", r), "aria-modal": o || void 0, children: [
87
+ }, [C]), /* @__PURE__ */ e.jsxs("div", { ref: f, className: L("sidebar", p ? "collapsed" : "expanded", "h-full overflow-auto", r), "aria-modal": o || void 0, children: [
88
88
  o && p && /* @__PURE__ */ e.jsx(
89
89
  "div",
90
90
  {
91
- className: T("navigation-drawer-sidebar-overlay"),
91
+ className: L("navigation-drawer-sidebar-overlay"),
92
92
  onClick: (w) => {
93
93
  w.preventDefault(), w.stopPropagation(), u && c?.();
94
94
  },
95
95
  "aria-hidden": "true"
96
96
  }
97
97
  ),
98
- /* @__PURE__ */ e.jsxs("div", { className: T("navigation-drawer-sidebar-inner"), children: [
98
+ /* @__PURE__ */ e.jsxs("div", { className: L("navigation-drawer-sidebar-inner"), children: [
99
99
  /* @__PURE__ */ e.jsx("div", { className: "secure-click-margin" }),
100
100
  g && d
101
101
  ] })
102
102
  ] });
103
- })), Qe = Ie(null), Ze = Ie(null), At = () => {
104
- const t = $e(Qe);
103
+ })), Ge = Oe(null), Qe = Oe(null), Tt = () => {
104
+ const t = qe(Ge);
105
105
  if (!t) throw new Error("useDrawerState must be used within NavigationDrawer");
106
106
  return t;
107
- }, le = () => {
108
- const t = $e(Ze);
107
+ }, oe = () => {
108
+ const t = qe(Qe);
109
109
  if (!t) throw new Error("useDrawerActions must be used within NavigationDrawer");
110
110
  return t;
111
- }, xe = (t, r) => typeof t == "function" ? r ? t(r) : null : t, et = "navigation-drawer-collapsed", Ve = () => {
111
+ }, xe = (t, r) => typeof t == "function" ? r ? t(r) : null : t, Ze = "navigation-drawer-collapsed", He = () => {
112
112
  if (typeof window > "u") return !1;
113
113
  try {
114
- const t = sessionStorage.getItem(et);
114
+ const t = sessionStorage.getItem(Ze);
115
115
  return t ? JSON.parse(t) : !1;
116
116
  } catch {
117
117
  return !1;
@@ -119,11 +119,11 @@ const Tt = he((t, r) => {
119
119
  }, Ot = (t) => {
120
120
  if (!(typeof window > "u"))
121
121
  try {
122
- sessionStorage.setItem(et, JSON.stringify(t));
122
+ sessionStorage.setItem(Ze, JSON.stringify(t));
123
123
  } catch {
124
124
  }
125
125
  }, It = (t) => {
126
- const { children: r, classNameDrawer: s, classNameSidebar: o, disableDragOpen: u, modal: l = !0, closeOnOutsideClick: f = !0 } = t, d = O(null), p = O(null), h = t.outletRef ?? O(null), c = O(null), g = O(Ve()), b = O(!1), C = O("drawer"), L = O(/* @__PURE__ */ new Set()), w = O(/* @__PURE__ */ new Set()), N = O(!1), k = O(null), V = x((n) => {
126
+ const { children: r, classNameDrawer: s, classNameSidebar: o, disableDragOpen: u, modal: l = !0, closeOnOutsideClick: f = !0 } = t, d = T(null), p = T(null), h = t.outletRef ?? T(null), c = T(null), g = T(He()), b = T(!1), C = T("drawer"), A = T(/* @__PURE__ */ new Set()), w = T(/* @__PURE__ */ new Set()), N = T(!1), D = T(null), V = x((n) => {
127
127
  const m = p.current;
128
128
  m && (m.classList.toggle("collapsed", n), m.classList.toggle("expanded", !n));
129
129
  }, []), W = x((n) => {
@@ -132,56 +132,56 @@ const Tt = he((t, r) => {
132
132
  m.classList.toggle("collapsed", n), m.classList.toggle("expanded", !n);
133
133
  const v = d.current;
134
134
  v && (v.classList.toggle("sidebar-collapsed", n), v.classList.toggle("sidebar-expanded", !n));
135
- }, []), S = x(
135
+ }, []), j = x(
136
136
  (n, { notify: m = !0 } = {}) => {
137
137
  const v = g.current !== n;
138
- g.current = n, Ot(n), V(n), m && v && L.current.forEach((A) => A(n));
138
+ g.current = n, Ot(n), V(n), m && v && A.current.forEach((O) => O(n));
139
139
  },
140
140
  [V]
141
141
  ), F = x(
142
142
  (n, { notify: m = !0 } = {}) => {
143
143
  const v = b.current !== n;
144
144
  if (b.current = n, W(n), m && v) {
145
- const A = !n;
146
- w.current.forEach((U) => U(A));
145
+ const O = !n;
146
+ w.current.forEach((U) => U(O));
147
147
  }
148
148
  },
149
149
  [W]
150
150
  ), i = x(
151
151
  (n, { notify: m = !0 } = {}) => {
152
- const v = C.current, A = v !== n;
153
- C.current = n, window.matchMedia("(min-width: 768px)").matches || S(n !== "drawer", { notify: m });
154
- const U = v === "sidebar", B = n === "sidebar";
155
- m && A && U !== B && w.current.forEach((J) => J(B)), F(n !== "sidebar", { notify: m }), S(n !== "drawer", { notify: m });
152
+ const v = C.current, O = v !== n;
153
+ C.current = n, window.matchMedia("(min-width: 768px)").matches || j(n !== "drawer", { notify: m });
154
+ const U = v === "sidebar", R = n === "sidebar";
155
+ m && O && U !== R && w.current.forEach((J) => J(R)), F(n !== "sidebar", { notify: m }), j(n !== "drawer", { notify: m });
156
156
  },
157
- [S, F]
157
+ [j, F]
158
158
  ), I = x((n) => {
159
159
  const m = d.current;
160
160
  if (!m || window.matchMedia("(min-width: 768px)").matches) return;
161
161
  N.current = !0;
162
- const v = h.current?.offsetLeft ?? 0, A = c.current?.offsetLeft ?? v, U = n === "drawer" ? 0 : n === "sidebar" ? A : v;
163
- k.current = U, m.scrollTo({ left: U, behavior: "smooth" });
164
- const B = () => {
165
- N.current = !1, k.current = null, m.removeEventListener("scrollend", B);
162
+ const v = h.current?.offsetLeft ?? 0, O = c.current?.offsetLeft ?? v, U = n === "drawer" ? 0 : n === "sidebar" ? O : v;
163
+ D.current = U, m.scrollTo({ left: U, behavior: "smooth" });
164
+ const R = () => {
165
+ N.current = !1, D.current = null, m.removeEventListener("scrollend", R);
166
166
  };
167
- m.addEventListener("scrollend", B, { once: !0 }), setTimeout(() => {
168
- N.current && B();
167
+ m.addEventListener("scrollend", R, { once: !0 }), setTimeout(() => {
168
+ N.current && R();
169
169
  }, 1e3);
170
- }, []), R = x(() => {
170
+ }, []), B = x(() => {
171
171
  const n = d.current, m = h.current;
172
172
  if (!n || !m || window.matchMedia("(min-width: 768px)").matches) return;
173
173
  const v = [
174
174
  { panel: "drawer", offset: 0 },
175
175
  { panel: "outlet", offset: m.offsetLeft }
176
- ], A = c.current;
177
- A && v.push({ panel: "sidebar", offset: A.offsetLeft });
176
+ ], O = c.current;
177
+ O && v.push({ panel: "sidebar", offset: O.offsetLeft });
178
178
  const U = n.scrollLeft;
179
- let B = v[0], J = Math.abs(U - B.offset);
179
+ let R = v[0], J = Math.abs(U - R.offset);
180
180
  for (let re = 1; re < v.length; re++) {
181
181
  const de = Math.abs(U - v[re].offset);
182
- de < J && (B = v[re], J = de);
182
+ de < J && (R = v[re], J = de);
183
183
  }
184
- i(B.panel);
184
+ i(R.panel);
185
185
  }, [i]);
186
186
  Q(() => {
187
187
  const n = d.current;
@@ -190,90 +190,90 @@ const Tt = he((t, r) => {
190
190
  const n = d.current, m = h.current;
191
191
  if (!n || !m) return;
192
192
  if (window.matchMedia("(min-width: 768px)").matches) {
193
- const A = Ve();
194
- S(A, { notify: !1 }), F(!0, { notify: !1 });
193
+ const O = He();
194
+ j(O, { notify: !1 }), F(!0, { notify: !1 });
195
195
  return;
196
196
  }
197
197
  requestAnimationFrame(() => {
198
198
  n.scrollLeft = m.offsetLeft, i("outlet");
199
199
  });
200
- }, [i, S, F]), Q(() => {
200
+ }, [i, j, F]), Q(() => {
201
201
  const n = d.current;
202
202
  if (!n || !h.current) return;
203
- let v = !1, A = 0, U = 0;
204
- const B = (D) => {
205
- A = D.touches[0].clientX, U = D.touches[0].clientY;
206
- }, J = (D, q) => {
207
- const H = window.getComputedStyle(D), a = q === "x" ? H.overflowX : H.overflowY;
208
- return /(auto|scroll|overlay)/.test(a) ? q === "x" ? D.scrollWidth > D.clientWidth : D.scrollHeight > D.clientHeight : !1;
209
- }, re = (D, q) => {
210
- let H = D;
203
+ let v = !1, O = 0, U = 0;
204
+ const R = (k) => {
205
+ O = k.touches[0].clientX, U = k.touches[0].clientY;
206
+ }, J = (k, q) => {
207
+ const H = window.getComputedStyle(k), a = q === "x" ? H.overflowX : H.overflowY;
208
+ return /(auto|scroll|overlay)/.test(a) ? q === "x" ? k.scrollWidth > k.clientWidth : k.scrollHeight > k.clientHeight : !1;
209
+ }, re = (k, q) => {
210
+ let H = k;
211
211
  for (; H && H !== n; ) {
212
212
  if (J(H, q))
213
213
  return H;
214
214
  H = H.parentElement;
215
215
  }
216
216
  return null;
217
- }, de = (D, q, H) => H === 0 ? !1 : q === "x" ? H < 0 ? D.scrollLeft + D.clientWidth < D.scrollWidth : D.scrollLeft > 0 : H < 0 ? D.scrollTop + D.clientHeight < D.scrollHeight : D.scrollTop > 0, we = (D) => {
218
- if (!(D.target instanceof HTMLElement)) return;
219
- const q = D.touches[0].clientX - A, H = D.touches[0].clientY - U, a = Math.abs(q) > Math.abs(H) ? "x" : "y", y = a === "x" ? q : H, P = re(D.target, a);
220
- if (P && de(P, a, y))
217
+ }, de = (k, q, H) => H === 0 ? !1 : q === "x" ? H < 0 ? k.scrollLeft + k.clientWidth < k.scrollWidth : k.scrollLeft > 0 : H < 0 ? k.scrollTop + k.clientHeight < k.scrollHeight : k.scrollTop > 0, ve = (k) => {
218
+ if (!(k.target instanceof HTMLElement)) return;
219
+ const q = k.touches[0].clientX - O, H = k.touches[0].clientY - U, a = Math.abs(q) > Math.abs(H) ? "x" : "y", y = a === "x" ? q : H, E = re(k.target, a);
220
+ if (E && de(E, a, y))
221
221
  return;
222
- const j = n.classList.contains("disabled-dragopen"), K = n.classList.contains("disabled-dragopen-sidebar"), fe = () => D.cancelable ? (D.preventDefault(), !0) : !1;
222
+ const S = n.classList.contains("disabled-dragopen"), $ = n.classList.contains("disabled-dragopen-sidebar"), fe = () => k.cancelable ? (k.preventDefault(), !0) : !1;
223
223
  if (a === "x") {
224
224
  if (q > 0) {
225
- if (C.current === "sidebar" && !K) {
225
+ if (C.current === "sidebar" && !$) {
226
226
  v = !0;
227
227
  return;
228
228
  }
229
- if (j) {
229
+ if (S) {
230
230
  fe();
231
231
  return;
232
232
  }
233
233
  } else if (q < 0) {
234
- if (C.current === "drawer" && !j) {
234
+ if (C.current === "drawer" && !S) {
235
235
  v = !0;
236
236
  return;
237
237
  }
238
- if (K) {
238
+ if ($) {
239
239
  fe();
240
240
  return;
241
241
  }
242
242
  }
243
243
  v = !0;
244
244
  }
245
- }, Ne = () => {
245
+ }, we = () => {
246
246
  setTimeout(() => {
247
- v && (R(), v = !1);
247
+ v && (B(), v = !1);
248
248
  }, 100);
249
249
  };
250
- return n.addEventListener("touchstart", B, { passive: !1 }), n.addEventListener("touchmove", we, { passive: !1 }), n.addEventListener("touchend", Ne), () => {
251
- n.removeEventListener("touchstart", B), n.removeEventListener("touchmove", we), n.removeEventListener("touchend", Ne);
250
+ return n.addEventListener("touchstart", R, { passive: !1 }), n.addEventListener("touchmove", ve, { passive: !1 }), n.addEventListener("touchend", we), () => {
251
+ n.removeEventListener("touchstart", R), n.removeEventListener("touchmove", ve), n.removeEventListener("touchend", we);
252
252
  };
253
- }, [R]);
253
+ }, [B]);
254
254
  const z = x(() => {
255
255
  const n = window.matchMedia("(min-width: 768px)").matches, m = !g.current;
256
256
  if (n) {
257
- S(m);
257
+ j(m);
258
258
  return;
259
259
  }
260
260
  const v = m ? "outlet" : "drawer";
261
261
  i(v), I(v);
262
- }, [I, i, S]), $ = O(null);
263
- $.current || ($.current = {
262
+ }, [I, i, j]), K = T(null);
263
+ K.current || (K.current = {
264
264
  toggleCollapse: () => z(),
265
265
  getIsCollapsed: () => {
266
266
  if (!window.matchMedia("(min-width: 768px)").matches) {
267
267
  const m = d.current, v = h.current;
268
268
  if (m && v) {
269
- const A = m.scrollLeft, U = v.offsetLeft, B = Math.abs(A - U) < Math.abs(A - 0);
270
- return B !== g.current && (g.current = B, V(B)), B;
269
+ const O = m.scrollLeft, U = v.offsetLeft, R = Math.abs(O - U) < Math.abs(O - 0);
270
+ return R !== g.current && (g.current = R, V(R)), R;
271
271
  }
272
272
  }
273
273
  return g.current;
274
274
  },
275
- subscribeToCollapse: (n) => (L.current.add(n), () => {
276
- L.current.delete(n);
275
+ subscribeToCollapse: (n) => (A.current.add(n), () => {
276
+ A.current.delete(n);
277
277
  }),
278
278
  openSidebar: () => {
279
279
  if (c.current) {
@@ -309,10 +309,10 @@ const Tt = he((t, r) => {
309
309
  if (!m) return;
310
310
  const v = m.scrollLeft;
311
311
  if (n) {
312
- const A = m.style.scrollBehavior;
312
+ const O = m.style.scrollBehavior;
313
313
  m.style.scrollBehavior = "auto", m.classList.remove("disabled-dragopen"), requestAnimationFrame(() => {
314
314
  m.scrollLeft = v, requestAnimationFrame(() => {
315
- m.style.scrollBehavior = A;
315
+ m.style.scrollBehavior = O;
316
316
  });
317
317
  });
318
318
  } else
@@ -322,54 +322,54 @@ const Tt = he((t, r) => {
322
322
  const m = d.current;
323
323
  if (m)
324
324
  if (n) {
325
- const v = m.scrollLeft, A = m.style.scrollBehavior;
325
+ const v = m.scrollLeft, O = m.style.scrollBehavior;
326
326
  m.style.scrollBehavior = "auto", m.classList.remove("disabled-dragopen-sidebar"), requestAnimationFrame(() => {
327
327
  m.scrollLeft = v, requestAnimationFrame(() => {
328
- m.style.scrollBehavior = A;
328
+ m.style.scrollBehavior = O;
329
329
  });
330
330
  });
331
331
  } else
332
332
  m.classList.add("disabled-dragopen-sidebar");
333
333
  }
334
334
  });
335
- const E = $.current, _ = typeof r == "function" ? r(E) : r, Z = bt.toArray(_);
335
+ const P = K.current, _ = typeof r == "function" ? r(P) : r, Z = bt.toArray(_);
336
336
  let ue = null, ee = null, ne = null;
337
337
  const ae = [];
338
- let oe = null, te = null;
338
+ let le = null, te = null;
339
339
  Z.forEach((n) => {
340
- if (!Ce(n)) {
340
+ if (!ye(n)) {
341
341
  ae.push(n);
342
342
  return;
343
343
  }
344
- if (n.type === Me && !ue) {
344
+ if (n.type === _e && !ue) {
345
345
  ue = n;
346
346
  return;
347
347
  }
348
- if (n.type === Se && !ee) {
348
+ if (n.type === Ce && !ee) {
349
349
  ee = n;
350
350
  return;
351
351
  }
352
- if (n.type === je && !ne) {
352
+ if (n.type === Se && !ne) {
353
353
  ne = n;
354
354
  return;
355
355
  }
356
- if (n.type === Te && !oe) {
357
- oe = n;
356
+ if (n.type === Ae && !le) {
357
+ le = n;
358
358
  return;
359
359
  }
360
- if (n.type === Ge && !te) {
360
+ if (n.type === Je && !te) {
361
361
  te = n;
362
362
  return;
363
363
  }
364
364
  ae.push(n);
365
365
  });
366
- const Be = !!ee, ge = ee ?? (ae.length ? /* @__PURE__ */ e.jsx(Se, { children: ae }) : null), ke = Be ? ae : [], ie = oe ?? (!!oe ? /* @__PURE__ */ e.jsx(Te, { children: _, context: E, modal: l, closeOnOutsideClick: f }) : null), De = ne ?? (!!ne ? /* @__PURE__ */ e.jsx(je, { children: ne }) : null), ve = !!te, X = te, ce = me(() => ({
366
+ const Re = !!ee, ge = ee ?? (ae.length ? /* @__PURE__ */ e.jsx(Ce, { children: ae }) : null), je = Re ? ae : [], ie = le ?? (!!le ? /* @__PURE__ */ e.jsx(Ae, { children: _, context: P, modal: l, closeOnOutsideClick: f }) : null), ke = ne ?? (!!ne ? /* @__PURE__ */ e.jsx(Se, { children: ne }) : null), De = !!te, X = te, ce = me(() => ({
367
367
  isCollapsed: g.current,
368
368
  isSidebarOpen: !b.current
369
369
  }), [g.current, b.current]);
370
- return /* @__PURE__ */ e.jsx(Qe.Provider, { value: ce, children: /* @__PURE__ */ e.jsx(Ze.Provider, { value: E, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: d, className: T(
370
+ return /* @__PURE__ */ e.jsx(Ge.Provider, { value: ce, children: /* @__PURE__ */ e.jsx(Qe.Provider, { value: P, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: d, className: L(
371
371
  "w-full h-full max-h-dvh overflow-y-hidden",
372
- ve ? "navigation-drawer-with-sidebar" : "navigation-drawer",
372
+ De ? "navigation-drawer-with-sidebar" : "navigation-drawer",
373
373
  u?.drawer ? "disabled-dragopen" : "",
374
374
  u?.sidebar ? "disabled-dragopen-sidebar" : ""
375
375
  ), children: [
@@ -377,7 +377,7 @@ const Tt = he((t, r) => {
377
377
  "div",
378
378
  {
379
379
  ref: p,
380
- className: T(
380
+ className: L(
381
381
  "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",
382
382
  g.current ? "collapsed" : "expanded",
383
383
  s
@@ -385,25 +385,25 @@ const Tt = he((t, r) => {
385
385
  children: [
386
386
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col flex-1 gap-4 overflow-hidden", children: [
387
387
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
388
- /* @__PURE__ */ e.jsx(tt, { onToggleCollapse: z }),
388
+ /* @__PURE__ */ e.jsx(et, { onToggleCollapse: z }),
389
389
  ue
390
390
  ] }),
391
391
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 overflow-hidden relative flex-col", children: [
392
- ke,
392
+ je,
393
393
  ge
394
394
  ] })
395
395
  ] }),
396
- De
396
+ ke
397
397
  ]
398
398
  }
399
399
  ),
400
- ie && Ce(ie) ? Ue.cloneElement(ie, { ref: h, modal: l, closeOnOutsideClick: f }) : ie,
401
- X && Ce(X) ? Ue.cloneElement(X, {
400
+ ie && ye(ie) ? ze.cloneElement(ie, { ref: h, modal: l, closeOnOutsideClick: f }) : ie,
401
+ X && ye(X) ? ze.cloneElement(X, {
402
402
  ref: c,
403
- className: T("sidebar", X.props?.className, o)
403
+ className: L("sidebar", X.props?.className, o)
404
404
  }) : X
405
405
  ] }) }) });
406
- }, We = M(It), tt = M(({ onToggleCollapse: t }) => /* @__PURE__ */ e.jsx(
406
+ }, Ve = M(It), et = M(({ onToggleCollapse: t }) => /* @__PURE__ */ e.jsx(
407
407
  "button",
408
408
  {
409
409
  type: "button",
@@ -412,43 +412,43 @@ const Tt = he((t, r) => {
412
412
  children: /* @__PURE__ */ e.jsx(Nt, { size: 32, className: "transition-transform duration-300 p-1" })
413
413
  }
414
414
  ), (t, r) => t.onToggleCollapse === r.onToggleCollapse);
415
- tt.displayName = "NavigationDrawerCollapseButton";
416
- const Me = M(({ children: t, className: r, context: s }) => {
415
+ et.displayName = "NavigationDrawerCollapseButton";
416
+ const _e = M(({ children: t, className: r, context: s }) => {
417
417
  const o = xe(t, s);
418
- return /* @__PURE__ */ e.jsx("div", { className: T("flex items-center justify-between", r), children: o });
418
+ return /* @__PURE__ */ e.jsx("div", { className: L("flex items-center justify-between", r), children: o });
419
419
  });
420
- Me.displayName = "NavigationDrawerHeader";
421
- const Se = M(({ children: t, className: r, context: s, ...o }) => {
420
+ _e.displayName = "NavigationDrawerHeader";
421
+ const Ce = M(({ children: t, className: r, context: s, ...o }) => {
422
422
  const u = xe(t, s);
423
- return /* @__PURE__ */ e.jsx("div", { ...o, className: T("w-full flex-1 drawer-content select-none", r), children: u });
423
+ return /* @__PURE__ */ e.jsx("div", { ...o, className: L("w-full flex-1 drawer-content select-none", r), children: u });
424
424
  });
425
- Se.displayName = "NavigationDrawerContent";
426
- const je = M(({ children: t, className: r, context: s }) => {
425
+ Ce.displayName = "NavigationDrawerContent";
426
+ const Se = M(({ children: t, className: r, context: s }) => {
427
427
  const o = xe(t, s);
428
- return /* @__PURE__ */ e.jsx("div", { className: T("flex items-center justify-between", r), children: o });
428
+ return /* @__PURE__ */ e.jsx("div", { className: L("flex items-center justify-between", r), children: o });
429
429
  });
430
- je.displayName = "NavigationDrawerFooter";
431
- const rt = M(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: T("w-full border-t border-neutral-strong-default ", t) }));
432
- rt.displayName = "NavigationDrawerSpacer";
433
- const Te = M(he(({ children: t, className: r, context: s, modal: o, closeOnOutsideClick: u }, l) => {
434
- const f = xe(t, s), d = le(), p = () => {
430
+ Se.displayName = "NavigationDrawerFooter";
431
+ const tt = M(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: L("w-full border-t border-neutral-strong-default ", t) }));
432
+ tt.displayName = "NavigationDrawerSpacer";
433
+ const Ae = M(he(({ children: t, className: r, context: s, modal: o, closeOnOutsideClick: u }, l) => {
434
+ const f = xe(t, s), d = oe(), p = () => {
435
435
  u && (d.toggleCollapse(), d.closeSidebar());
436
436
  };
437
- 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: [
437
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-outlet", ref: l, className: L("flex-1 overflow-auto relative h-full max-h-dvh", r), children: [
438
438
  o && /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backdrop select-none", onClick: p }),
439
439
  f
440
440
  ] }) });
441
- }), (t, r) => t.children === r.children && t.className === r.className), G = Object.assign(We, {
442
- Root: We,
443
- Header: Me,
444
- Content: Se,
445
- Footer: je,
446
- Spacer: rt,
447
- Outlet: Te,
448
- Sidebar: Ge
441
+ }), (t, r) => t.children === r.children && t.className === r.className), G = Object.assign(Ve, {
442
+ Root: Ve,
443
+ Header: _e,
444
+ Content: Ce,
445
+ Footer: Se,
446
+ Spacer: tt,
447
+ Outlet: Ae,
448
+ Sidebar: Je
449
449
  });
450
450
  G.displayName = "NavigationDrawer";
451
- const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
451
+ const Et = "hover:bg-neutral-medium-hover", Pt = Ee("", {
452
452
  variants: {
453
453
  isSelected: {
454
454
  true: "bg-neutral-medium-selected ",
@@ -459,8 +459,8 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
459
459
  false: "cursor-pointer"
460
460
  }
461
461
  }
462
- }), _t = Pe(
463
- T(
462
+ }), _t = Ee(
463
+ L(
464
464
  "select-none line-clamp-1 min-w-max",
465
465
  "prometeo-fonts-label-large transition-colors duration-300 ease-out"
466
466
  ),
@@ -482,8 +482,8 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
482
482
  { isSelected: !1, disabled: !1, className: " text-neutral-default-default group-active:text-neutral-default-pressed group-focus-visible:text-neutral-default-pressed" }
483
483
  ]
484
484
  }
485
- ), Le = Pe(
486
- T(
485
+ ), Le = Ee(
486
+ L(
487
487
  "transition-colors duration-300 ease-out min-w-max"
488
488
  ),
489
489
  {
@@ -519,7 +519,7 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
519
519
  onAuxClick: g,
520
520
  disabled: b = !1,
521
521
  tooltipText: C
522
- } = t, L = (V) => {
522
+ } = t, A = (V) => {
523
523
  b || c?.(V);
524
524
  }, w = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
525
525
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center flex-nowrap", children: [
@@ -527,11 +527,11 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
527
527
  /* @__PURE__ */ e.jsx("label", { className: _t({ disabled: b, isSelected: l }), children: r })
528
528
  ] }),
529
529
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 items-center", children: [
530
- o && o ? /* @__PURE__ */ e.jsx(Ke, { count: o, maxCount: 9, className: "badge", disabled: b }) : "",
530
+ o && o ? /* @__PURE__ */ e.jsx($e, { count: o, maxCount: 9, className: "badge", disabled: b }) : "",
531
531
  f && /* @__PURE__ */ e.jsx(
532
532
  "div",
533
533
  {
534
- className: T(
534
+ className: L(
535
535
  "sublinks-toggle",
536
536
  "transition-all duration-200",
537
537
  "rounded-full relative grid place-items-center size-6",
@@ -544,14 +544,14 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
544
544
  disabled: b,
545
545
  type: "button",
546
546
  onClick: p,
547
- className: T("absolute cursor-pointer hover:text-primary-default-hover top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 p-2 z-100 select-none", Le({ disabled: b, isSelected: l }), b && "pointer-events-none"),
547
+ className: L("absolute cursor-pointer hover:text-primary-default-hover top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 p-2 z-100 select-none", Le({ disabled: b, isSelected: l }), b && "pointer-events-none"),
548
548
  children: /* @__PURE__ */ e.jsx(Ct, {})
549
549
  }
550
550
  )
551
551
  }
552
552
  )
553
553
  ] })
554
- ] }), N = T(
554
+ ] }), N = L(
555
555
  "group navitem",
556
556
  "h-12 flex-1 flex items-center p-3 rounded-lg justify-between w-full",
557
557
  "transition-all duration-300",
@@ -561,7 +561,7 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
561
561
  );
562
562
  if (h === "a") {
563
563
  const V = {
564
- onClick: L,
564
+ onClick: A,
565
565
  onAuxClick: g,
566
566
  className: N
567
567
  };
@@ -569,23 +569,23 @@ const Et = "hover:bg-neutral-medium-hover", Pt = Pe("", {
569
569
  }
570
570
  if (h === "button") {
571
571
  const V = {
572
- onClick: L,
572
+ onClick: A,
573
573
  type: "button",
574
574
  className: N
575
575
  };
576
576
  return /* @__PURE__ */ e.jsx("button", { ...V, children: w });
577
577
  }
578
- const k = {
579
- onClick: L,
578
+ const D = {
579
+ onClick: A,
580
580
  className: N
581
581
  };
582
- return /* @__PURE__ */ e.jsx("div", { ...k, children: w });
583
- }, Re = M(Mt);
584
- Re.displayName = "NavigationDrawerItemBase";
582
+ return /* @__PURE__ */ e.jsx("div", { ...D, children: w });
583
+ }, Me = M(Mt);
584
+ Me.displayName = "NavigationDrawerItemBase";
585
585
  const Rt = (t) => {
586
586
  const { title: r, icon: s, count: o, className: u, isActive: l, onClick: f, isView: d = !0, disabled: p, tooltipText: h } = t;
587
587
  return d ? /* @__PURE__ */ e.jsx(
588
- Re,
588
+ Me,
589
589
  {
590
590
  as: "button",
591
591
  title: r,
@@ -598,9 +598,9 @@ const Rt = (t) => {
598
598
  tooltipText: h
599
599
  }
600
600
  ) : null;
601
- }, st = M(Rt);
602
- st.displayName = "NavigationDrawerActionItem";
603
- const Bt = ({ actions: t, activeActionId: r, onActionClick: s, className: o }) => /* @__PURE__ */ e.jsx(be, { className: T("flex flex-col gap-2 w-full ", o), scrollbarProps: { hide: !0 }, persistScroll: "navigation-actions", indicators: {
601
+ }, rt = M(Rt);
602
+ rt.displayName = "NavigationDrawerActionItem";
603
+ const Bt = ({ actions: t, activeActionId: r, onActionClick: s, className: o }) => /* @__PURE__ */ e.jsx(be, { className: L("flex flex-col gap-2 w-full ", o), scrollbarProps: { hide: !0 }, persistScroll: "navigation-actions", indicators: {
604
604
  top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
605
605
  bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
606
606
  }, children: t?.map((u) => {
@@ -608,7 +608,7 @@ const Bt = ({ actions: t, activeActionId: r, onActionClick: s, className: o }) =
608
608
  s?.(l, p), f?.();
609
609
  };
610
610
  return d ? /* @__PURE__ */ e.jsx(
611
- st,
611
+ rt,
612
612
  {
613
613
  ...h,
614
614
  id: l,
@@ -617,8 +617,8 @@ const Bt = ({ actions: t, activeActionId: r, onActionClick: s, className: o }) =
617
617
  },
618
618
  l
619
619
  ) : null;
620
- }) }), nt = M(Bt);
621
- nt.displayName = "NavigationDrawerActions";
620
+ }) }), st = M(Bt);
621
+ st.displayName = "NavigationDrawerActions";
622
622
  const Ft = (t) => {
623
623
  const { className: r, title: s, path: o, onClick: u, isSelected: l, parentPath: f } = t, d = x(() => {
624
624
  u?.(o);
@@ -635,7 +635,7 @@ const Ft = (t) => {
635
635
  {
636
636
  onClick: d,
637
637
  onAuxClick: p,
638
- className: T(
638
+ className: L(
639
639
  "group",
640
640
  "transition-all duration-300 ease-in-out cursor-pointer",
641
641
  "h-10 w-full rounded-lg py-[11px] px-3",
@@ -643,51 +643,51 @@ const Ft = (t) => {
643
643
  l && "bg-neutral-medium-selected hover:bg-neutral-medium-hover active:bg-transparent focus:bg-transparent",
644
644
  r
645
645
  ),
646
- children: /* @__PURE__ */ e.jsx("p", { className: T(
646
+ children: /* @__PURE__ */ e.jsx("p", { className: L(
647
647
  "prometeo-fonts-label-large text-neutral-medium-default",
648
648
  "group-active:text-neutral-default-focused group-focus:text-neutral-default-focused",
649
649
  l && "text-primary-default-default group-hover:text-primary-default-hover group-focus:text-primary-default-focused group-active:text-primary-default-focused"
650
650
  ), children: s })
651
651
  }
652
652
  );
653
- }, at = M(Ft);
654
- at.displayName = "NavItemSecondary";
653
+ }, nt = M(Ft);
654
+ nt.displayName = "NavItemSecondary";
655
655
  const zt = he((t, r) => {
656
- const [s, o] = Y(!0), u = O(null), { path: l, title: f, icon: d, count: p, className: h, isSelected: c = !1, onClick: g, sublinks: b, toggleCollapse: C, getIsCollapsed: L, subscribeToCollapse: w, isView: N = !0, disabled: k, tooltipText: V } = t;
656
+ const [s, o] = Y(!0), u = T(null), { path: l, title: f, icon: d, count: p, className: h, isSelected: c = !1, onClick: g, sublinks: b, toggleCollapse: C, getIsCollapsed: A, subscribeToCollapse: w, isView: N = !0, disabled: D, tooltipText: V } = t;
657
657
  Q(() => w ? w((_) => {
658
658
  _ && o(!0);
659
659
  }) : void 0, [w]);
660
660
  const W = x(() => {
661
- o((E) => !E);
662
- }, []), S = x((E) => {
663
- o(E);
661
+ o((P) => !P);
662
+ }, []), j = x((P) => {
663
+ o(P);
664
664
  }, []), F = {
665
665
  toggle: W,
666
- setIsCollapsed: S,
666
+ setIsCollapsed: j,
667
667
  get isCollapsed() {
668
668
  return s;
669
669
  },
670
670
  get isDrawerCollapsed() {
671
- return L?.() ?? !1;
671
+ return A?.() ?? !1;
672
672
  },
673
673
  toggleDrawerCollapse: C,
674
674
  subscribeToCollapse: w
675
675
  };
676
- Ee(r, () => F, [F, s, L, C]);
676
+ Ie(r, () => F, [F, s, A, C]);
677
677
  const i = d, I = x(() => {
678
- const E = L?.() ?? !1;
679
- if (b && b.length > 0 && E) {
680
- S(!1), C?.();
678
+ const P = A?.() ?? !1;
679
+ if (b && b.length > 0 && P) {
680
+ j(!1), C?.();
681
681
  return;
682
682
  }
683
683
  g?.(l);
684
- }, [l, g, b, C, S, L]), R = x(() => {
684
+ }, [l, g, b, C, j, A]), B = x(() => {
685
685
  window.open(l, "_blank");
686
686
  }, [l]), z = () => {
687
- if (!b || k) return null;
687
+ if (!b || D) return null;
688
688
  if (t.subLinksRender && b)
689
689
  return t.subLinksRender(b, F);
690
- const E = x((_) => {
690
+ const P = x((_) => {
691
691
  if (_.startsWith("./")) {
692
692
  const Z = l + _.slice(2);
693
693
  g?.(Z);
@@ -699,13 +699,13 @@ const zt = he((t, r) => {
699
699
  if (!_) return;
700
700
  const Z = _.scrollHeight;
701
701
  _.style.setProperty("--sublinks-max-height", `${Z}px`);
702
- }, []), /* @__PURE__ */ e.jsx("div", { ref: u, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children: b.map((_) => /* @__PURE__ */ e.jsx(at, { ..._, onClick: E, parentPath: l }, `${_.title}-${_.path}`)) });
703
- }, $ = (E) => {
704
- E.stopPropagation(), E.preventDefault(), W();
702
+ }, []), /* @__PURE__ */ e.jsx("div", { ref: u, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children: b.map((_) => /* @__PURE__ */ e.jsx(nt, { ..._, onClick: P, parentPath: l }, `${_.title}-${_.path}`)) });
703
+ }, K = (P) => {
704
+ P.stopPropagation(), P.preventDefault(), W();
705
705
  };
706
706
  return N ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 ", children: [
707
707
  /* @__PURE__ */ e.jsx(
708
- Re,
708
+ Me,
709
709
  {
710
710
  as: "a",
711
711
  title: f,
@@ -715,26 +715,26 @@ const zt = he((t, r) => {
715
715
  isSelected: c,
716
716
  hasSublinks: !!b,
717
717
  subLinksCollapsed: s,
718
- onToggleSublinks: $,
718
+ onToggleSublinks: K,
719
719
  onClick: I,
720
- onAuxClick: R,
721
- disabled: k,
720
+ onAuxClick: B,
721
+ disabled: D,
722
722
  tooltipText: V
723
723
  }
724
724
  ),
725
725
  z()
726
726
  ] }) : null;
727
- }), ot = M(zt);
728
- ot.displayName = "NavigationDrawerLinkItem";
727
+ }), at = M(zt);
728
+ at.displayName = "NavigationDrawerLinkItem";
729
729
  const Ut = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: o, toggleCollapse: u, subscribeToCollapse: l }) => {
730
730
  const { pathname: f } = vt();
731
- return /* @__PURE__ */ e.jsx(be, { className: T("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, persistScroll: "navigation-links", indicators: {
731
+ return /* @__PURE__ */ e.jsx(be, { className: L("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, persistScroll: "navigation-links", indicators: {
732
732
  top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
733
733
  bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
734
734
  }, children: t?.map((d, p) => {
735
735
  const h = d.isSelected || d.path === f || (d.relatedPaths?.some((c) => f.startsWith(c)) ?? !1);
736
736
  return /* @__PURE__ */ e.jsx(
737
- ot,
737
+ at,
738
738
  {
739
739
  ...d,
740
740
  isSelected: h,
@@ -748,15 +748,15 @@ const Ut = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: o,
748
748
  p
749
749
  );
750
750
  }) });
751
- }, lt = M(Ut);
752
- lt.displayName = "NavigationDrawerNavlinks";
753
- const it = M(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId: o, onActionClick: u }) => {
754
- const { getIsCollapsed: l, toggleCollapse: f, subscribeToCollapse: d } = le();
751
+ }, ot = M(Ut);
752
+ ot.displayName = "NavigationDrawerNavlinks";
753
+ const lt = M(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId: o, onActionClick: u }) => {
754
+ const { getIsCollapsed: l, toggleCollapse: f, subscribeToCollapse: d } = oe();
755
755
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
756
756
  /* @__PURE__ */ e.jsx(G.Spacer, { className: "pb-3" }),
757
757
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col overflow-hidden h-full gap-4 relative w-full", children: [
758
758
  /* @__PURE__ */ e.jsx(
759
- lt,
759
+ ot,
760
760
  {
761
761
  getIsCollapsed: l,
762
762
  toggleCollapse: f,
@@ -767,7 +767,7 @@ const it = M(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId:
767
767
  }
768
768
  ),
769
769
  /* @__PURE__ */ e.jsx(
770
- nt,
770
+ st,
771
771
  {
772
772
  actions: s,
773
773
  activeActionId: o,
@@ -778,7 +778,7 @@ const it = M(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId:
778
778
  ] })
779
779
  ] });
780
780
  }, (t, r) => t.navlinks === r.navlinks && t.handleNavigation === r.handleNavigation && t.allActions === r.allActions && t.activeActionId === r.activeActionId && t.onActionClick === r.onActionClick);
781
- it.displayName = "PyrionNavigationDrawer.Content";
781
+ lt.displayName = "PyrionNavigationDrawer.Content";
782
782
  const Ht = (t) => {
783
783
  const { sessions: r, onSessionClick: s, secondarySlot: o, subImageUrlAccessor: u } = t;
784
784
  if (!r || r.length === 0)
@@ -791,14 +791,14 @@ const Ht = (t) => {
791
791
  const h = p.metadata;
792
792
  if (!h)
793
793
  return;
794
- const c = ye({ metadata: h }, u);
794
+ const c = Ne({ metadata: h }, u);
795
795
  if (c != null)
796
796
  return typeof c == "string" ? c : String(c);
797
797
  }, d = x((p) => typeof o == "function" ? o(p) : o, [o]);
798
798
  return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((p) => {
799
799
  const { auth_id: h } = p;
800
800
  return /* @__PURE__ */ e.jsx(se, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(se.Content, { onClick: () => l(p), className: "p-0 group-data-[expanded=true]/ticketcard:border-none", children: /* @__PURE__ */ e.jsx(
801
- Ye,
801
+ Ke,
802
802
  {
803
803
  name: h.name,
804
804
  avatarSize: "xxs",
@@ -823,7 +823,7 @@ const Ht = (t) => {
823
823
  userOptionsControls: h,
824
824
  mobileAppSwitcherControls: c
825
825
  }) => {
826
- const { getIsCollapsed: g, toggleCollapse: b, subscribeToCollapse: C } = le(), L = x(() => {
826
+ const { getIsCollapsed: g, toggleCollapse: b, subscribeToCollapse: C } = oe(), A = x(() => {
827
827
  const w = g();
828
828
  w ? (b(), h.current?.open()) : f?.(w);
829
829
  }, [g, b, h, f]);
@@ -832,8 +832,8 @@ const Ht = (t) => {
832
832
  }), [C, h, c]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
833
833
  /* @__PURE__ */ e.jsx(G.Spacer, { className: "mb-3" }),
834
834
  /* @__PURE__ */ e.jsxs(se, { className: "", controls: h, children: [
835
- /* @__PURE__ */ e.jsx(se.Content, { onClick: L, children: /* @__PURE__ */ e.jsx(
836
- Ye,
835
+ /* @__PURE__ */ e.jsx(se.Content, { onClick: A, children: /* @__PURE__ */ e.jsx(
836
+ Ke,
837
837
  {
838
838
  className: "pyrion-navigation-drawer-user-card p-0",
839
839
  name: t.user.name,
@@ -877,7 +877,7 @@ const Ht = (t) => {
877
877
  ] })
878
878
  ] })
879
879
  ] });
880
- }, ct = M(Vt, (t, r) => {
880
+ }, it = M(Vt, (t, r) => {
881
881
  const s = Object.keys(t), o = Object.keys(r);
882
882
  if (s.length !== o.length)
883
883
  return !1;
@@ -890,7 +890,7 @@ const Ht = (t) => {
890
890
  }
891
891
  return t.currentAppSessions !== r.currentAppSessions || t.options !== r.options || t.currentSystemId !== r.currentSystemId || t.userOptionsControls !== r.userOptionsControls || t.mobileAppSwitcherControls !== r.mobileAppSwitcherControls;
892
892
  });
893
- ct.displayName = "PyrionNavigationDrawer.Footer";
893
+ it.displayName = "PyrionNavigationDrawer.Footer";
894
894
  const Wt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(se, { controls: s, children: [
895
895
  /* @__PURE__ */ e.jsx(se.Content, { children: typeof r == "function" ? r() : r }),
896
896
  /* @__PURE__ */ e.jsxs(se.Options, { children: [
@@ -919,7 +919,7 @@ const Wt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(se,
919
919
  ] }),
920
920
  /* @__PURE__ */ e.jsx("div", {})
921
921
  ] })
922
- ] }), Ae = M(({ enabled_systems: t, onClick: r, currentSystemId: s }) => {
922
+ ] }), Te = M(({ enabled_systems: t, onClick: r, currentSystemId: s }) => {
923
923
  const o = x(() => {
924
924
  if (t) {
925
925
  if (s) {
@@ -937,7 +937,7 @@ const Wt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(se,
937
937
  {
938
938
  src: o().coverImage,
939
939
  alt: "System Logo",
940
- className: T("w-full h-12 rounded object-contain system-cover-image ", u && "cursor-pointer"),
940
+ className: L("w-full h-12 rounded object-contain system-cover-image ", u && "cursor-pointer"),
941
941
  draggable: !1,
942
942
  onClick: r
943
943
  }
@@ -947,16 +947,16 @@ const Wt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(se,
947
947
  {
948
948
  src: o().thumbnail,
949
949
  alt: "System Logo",
950
- className: T("w-12 h-12 rounded object-cover system-thumbnail ", u && "cursor-pointer"),
950
+ className: L("w-12 h-12 rounded object-cover system-thumbnail ", u && "cursor-pointer"),
951
951
  draggable: !1,
952
952
  onClick: r
953
953
  }
954
954
  )
955
955
  ] });
956
956
  }, (t, r) => t.enabled_systems === r.enabled_systems && t.onClick === r.onClick && t.currentSystemId === r.currentSystemId);
957
- Ae.displayName = "PyrionNavigationDrawer.SystemLogo";
958
- const dt = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mobileAppSwitcherControls: u }) => {
959
- const { getIsCollapsed: l } = le(), f = qe(), d = x(() => {
957
+ Te.displayName = "PyrionNavigationDrawer.SystemLogo";
958
+ const ct = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mobileAppSwitcherControls: u }) => {
959
+ const { getIsCollapsed: l } = oe(), f = We(), d = x(() => {
960
960
  if (t) {
961
961
  const p = l();
962
962
  t(p);
@@ -968,7 +968,7 @@ const dt = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mob
968
968
  controls: u,
969
969
  tabs: o,
970
970
  content: /* @__PURE__ */ e.jsx(
971
- Ae,
971
+ Te,
972
972
  {
973
973
  enabled_systems: r.enabled_systems,
974
974
  onClick: d,
@@ -977,7 +977,7 @@ const dt = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mob
977
977
  )
978
978
  }
979
979
  ) : /* @__PURE__ */ e.jsx(
980
- Ae,
980
+ Te,
981
981
  {
982
982
  enabled_systems: r.enabled_systems,
983
983
  onClick: d,
@@ -985,46 +985,46 @@ const dt = M(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: o, mob
985
985
  }
986
986
  );
987
987
  });
988
- dt.displayName = "PyrionNavigationDrawer.Header";
988
+ ct.displayName = "PyrionNavigationDrawer.Header";
989
989
  const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s, scrollableControls: o }) => {
990
- const [u, l] = Y([]), [f, d] = Y("NO_LEIDAS"), [p, h] = Y(!1), c = O(/* @__PURE__ */ new Set()), g = O(null), b = O(null), C = x((i, I = "top") => {
991
- l((R) => {
992
- const z = Array.isArray(i) ? I === "bottom" ? [...R, ...i] : [...i, ...R] : I === "bottom" ? [...R, i] : [i, ...R];
990
+ const [u, l] = Y([]), [f, d] = Y("NO_LEIDAS"), [p, h] = Y(!1), c = T(/* @__PURE__ */ new Set()), g = T(null), b = T(null), C = x((i, I = "top") => {
991
+ l((B) => {
992
+ const z = Array.isArray(i) ? I === "bottom" ? [...B, ...i] : [...i, ...B] : I === "bottom" ? [...B, i] : [i, ...B];
993
993
  return queueMicrotask(() => {
994
- c.current.forEach(($) => $(z, z.length));
994
+ c.current.forEach((K) => K(z, z.length));
995
995
  }), z;
996
996
  });
997
- }, []), L = x((i) => (c.current.add(i), () => {
997
+ }, []), A = x((i) => (c.current.add(i), () => {
998
998
  c.current.delete(i);
999
999
  }), []), w = x((i) => {
1000
1000
  l((I) => {
1001
- const R = Array.isArray(i) ? I.filter((z) => !i.includes(z._id)) : I.filter((z) => z._id !== i);
1001
+ const B = Array.isArray(i) ? I.filter((z) => !i.includes(z._id)) : I.filter((z) => z._id !== i);
1002
1002
  return queueMicrotask(() => {
1003
- c.current.forEach((z) => z(R, R.length));
1004
- }), R;
1003
+ c.current.forEach((z) => z(B, B.length));
1004
+ }), B;
1005
1005
  });
1006
1006
  }, []), N = x(() => {
1007
1007
  l([]), queueMicrotask(() => {
1008
1008
  c.current.forEach((i) => i([], 0));
1009
1009
  });
1010
- }, []), k = x((i) => {
1010
+ }, []), D = x((i) => {
1011
1011
  l(i), queueMicrotask(() => {
1012
1012
  c.current.forEach((I) => I(i, i.length));
1013
1013
  });
1014
1014
  }, []), V = x((i) => {
1015
1015
  h(i);
1016
1016
  }, []);
1017
- Ee(s, () => ({
1017
+ Ie(s, () => ({
1018
1018
  addNewNotification: C,
1019
- subscribeToUpdates: L,
1020
- setNotifications: k,
1019
+ subscribeToUpdates: A,
1020
+ setNotifications: D,
1021
1021
  removeNotification: w,
1022
1022
  removeAllNotifications: N,
1023
1023
  setLoading: V
1024
- }), [C, L, k, w, N, V]);
1024
+ }), [C, A, D, w, N, V]);
1025
1025
  const W = (i) => {
1026
1026
  d(i);
1027
- }, S = u.length > 0;
1027
+ }, j = u.length > 0;
1028
1028
  xt(() => {
1029
1029
  if (g.current && b.current) {
1030
1030
  const i = g.current.clientHeight;
@@ -1040,10 +1040,10 @@ const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s,
1040
1040
  /* @__PURE__ */ e.jsxs("div", { ref: g, className: "flex flex-col gap-4", children: [
1041
1041
  /* @__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: [
1042
1042
  /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
1043
- /* @__PURE__ */ e.jsx(Xe, { className: "text-neutral-strong-default", size: 24 }),
1043
+ /* @__PURE__ */ e.jsx(Ye, { className: "text-neutral-strong-default", size: 24 }),
1044
1044
  /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: "Notificaciones" })
1045
1045
  ] }),
1046
- /* @__PURE__ */ e.jsx(pe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(_e, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
1046
+ /* @__PURE__ */ e.jsx(pe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Pe, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
1047
1047
  ] }),
1048
1048
  /* @__PURE__ */ e.jsx(
1049
1049
  kt,
@@ -1055,26 +1055,26 @@ const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s,
1055
1055
  { id: "ALL", title: "Todas" },
1056
1056
  { id: "NO_LEIDAS", title: "Sin leer" }
1057
1057
  ],
1058
- renderTab: (i, I, R, z, $, E, _, Z) => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1058
+ renderTab: (i, I, B, z, K, P, _, Z) => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1059
1059
  /* @__PURE__ */ e.jsx(
1060
1060
  Dt,
1061
1061
  {
1062
1062
  id: i.id,
1063
1063
  title: i.title,
1064
- onClick: R,
1064
+ onClick: B,
1065
1065
  isActive: I,
1066
1066
  onIconClick: z,
1067
- onIconHover: $,
1067
+ onIconHover: K,
1068
1068
  iconTooltipProps: _,
1069
- iconTooltipTitle: E,
1069
+ iconTooltipTitle: P,
1070
1070
  iconSize: Z
1071
1071
  }
1072
1072
  ),
1073
- F > 0 && i.title === "Sin leer" && /* @__PURE__ */ e.jsx(Ke, { count: F, className: "absolute top-0 right-0" })
1073
+ F > 0 && i.title === "Sin leer" && /* @__PURE__ */ e.jsx($e, { count: F, className: "absolute top-0 right-0" })
1074
1074
  ] })
1075
1075
  }
1076
1076
  ),
1077
- r && S && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end px-4", children: /* @__PURE__ */ e.jsx(pe, { onClick: r, label: "Marcar todas como leidas", variant: "text", animate: !1, animateIcon: !1, size: "small" }) })
1077
+ r && j && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end px-4", children: /* @__PURE__ */ e.jsx(pe, { onClick: r, label: "Marcar todas como leidas", variant: "text", animate: !1, animateIcon: !1, size: "small" }) })
1078
1078
  ] }),
1079
1079
  /* @__PURE__ */ e.jsx("div", { ref: b, className: "", children: /* @__PURE__ */ e.jsxs(
1080
1080
  be,
@@ -1089,7 +1089,7 @@ const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s,
1089
1089
  target: "2000px"
1090
1090
  },
1091
1091
  children: [
1092
- S ? u?.filter((i) => f === "NO_LEIDAS" ? !i.read : i)?.map((i, I) => /* @__PURE__ */ e.jsx(jt, { ...i, className: " border-b border-neutral-strong-default rounded-b-none last:border-b-0" }, I)) : /* @__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" }),
1092
+ j ? u?.filter((i) => f === "NO_LEIDAS" ? !i.read : i)?.map((i, I) => /* @__PURE__ */ e.jsx(jt, { ...i, className: " border-b border-neutral-strong-default rounded-b-none last:border-b-0" }, I)) : /* @__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" }),
1093
1093
  p && /* @__PURE__ */ e.jsx("p", { className: " prometeo-fonts-body-large text-neutral-medium-default w-full text-center py-4", children: "Cargando más ..." })
1094
1094
  ]
1095
1095
  }
@@ -1104,17 +1104,17 @@ const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s,
1104
1104
  children: [
1105
1105
  /* @__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: [
1106
1106
  /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
1107
- /* @__PURE__ */ e.jsx(Je, { className: "text-neutral-strong-default", size: 24 }),
1107
+ /* @__PURE__ */ e.jsx(Xe, { className: "text-neutral-strong-default", size: 24 }),
1108
1108
  /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: s })
1109
1109
  ] }),
1110
- /* @__PURE__ */ e.jsx(pe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(_e, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
1110
+ /* @__PURE__ */ e.jsx(pe, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Pe, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
1111
1111
  ] }),
1112
1112
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4 ", children: r })
1113
1113
  ]
1114
1114
  }
1115
1115
  ), Kt = ({ closeSidebar: t, options: r, helpSection: s, initialSection: o, notificationsListControls: u, scrollableControls: l }, f) => {
1116
1116
  const [d, p] = Y(o ?? "notifications");
1117
- Ee(f, () => ({
1117
+ Ie(f, () => ({
1118
1118
  setActiveSection: p
1119
1119
  }));
1120
1120
  const h = () => {
@@ -1132,8 +1132,8 @@ const qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s,
1132
1132
  ),
1133
1133
  d === "help" && s && !r?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx($t, { onCloseClick: h, children: typeof s == "function" ? s() : s })
1134
1134
  ] });
1135
- }, ut = he(Kt);
1136
- ut.displayName = "SidebarContent";
1135
+ }, dt = he(Kt);
1136
+ dt.displayName = "SidebarContent";
1137
1137
  const Yt = ({
1138
1138
  options: t,
1139
1139
  helpSection: r,
@@ -1142,9 +1142,9 @@ const Yt = ({
1142
1142
  notificationsListControls: u,
1143
1143
  scrollableControls: l
1144
1144
  }) => {
1145
- const { closeSidebar: f } = le();
1145
+ const { closeSidebar: f } = oe();
1146
1146
  return /* @__PURE__ */ e.jsx(
1147
- ut,
1147
+ dt,
1148
1148
  {
1149
1149
  ref: s,
1150
1150
  closeSidebar: f,
@@ -1155,17 +1155,17 @@ const Yt = ({
1155
1155
  scrollableControls: l
1156
1156
  }
1157
1157
  );
1158
- }, ft = M(Yt);
1159
- ft.displayName = "PyrionNavigationDrawer.Sidebar";
1158
+ }, ut = M(Yt);
1159
+ ut.displayName = "PyrionNavigationDrawer.Sidebar";
1160
1160
  const Xt = ({ navigationControlsRef: t }) => {
1161
- const r = le();
1161
+ const r = oe();
1162
1162
  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;
1163
1163
  }, Jt = (t) => {
1164
- const { children: r, currentAppSessions: s, resolveUserSecondarySlot: o, resolveSessionSecondarySlot: u, handleNavigation: l, allActions: f, tabs: d, navigationControlsRef: p, sidebarContentRef: h, initialSectionRef: c, userOptionsControls: g, mobileAppSwitcherControls: b, notificationsListControls: C, scrollableControls: L, outletRef: w, ...N } = t;
1164
+ const { children: r, currentAppSessions: s, resolveUserSecondarySlot: o, resolveSessionSecondarySlot: u, handleNavigation: l, allActions: f, tabs: d, navigationControlsRef: p, sidebarContentRef: h, initialSectionRef: c, userOptionsControls: g, mobileAppSwitcherControls: b, notificationsListControls: C, scrollableControls: A, outletRef: w, ...N } = t;
1165
1165
  return /* @__PURE__ */ e.jsxs(G, { disableDragOpen: N.options?.disableDragOpen, outletRef: w, children: [
1166
1166
  /* @__PURE__ */ e.jsx(Xt, { navigationControlsRef: p }),
1167
1167
  /* @__PURE__ */ e.jsx(G.Header, { className: "flex flex-col relative w-full select-none", children: /* @__PURE__ */ e.jsx(
1168
- dt,
1168
+ ct,
1169
1169
  {
1170
1170
  onSystemLogoClick: N.onSystemLogoClick,
1171
1171
  state: N.state,
@@ -1175,7 +1175,7 @@ const Xt = ({ navigationControlsRef: t }) => {
1175
1175
  }
1176
1176
  ) }, "PL-Header"),
1177
1177
  /* @__PURE__ */ e.jsx(G.Content, { className: "overflow-hidden flex flex-col relative flex-1 md:w-auto", children: /* @__PURE__ */ e.jsx(
1178
- it,
1178
+ lt,
1179
1179
  {
1180
1180
  navlinks: N.links,
1181
1181
  handleNavigation: l,
@@ -1185,7 +1185,7 @@ const Xt = ({ navigationControlsRef: t }) => {
1185
1185
  }
1186
1186
  ) }, "PL-Content"),
1187
1187
  /* @__PURE__ */ e.jsx(G.Footer, { className: "md:min-h-max flex flex-col w-full overflow-hidden max-w-full", children: /* @__PURE__ */ e.jsx(
1188
- ct,
1188
+ it,
1189
1189
  {
1190
1190
  state: N.state,
1191
1191
  currentAppSessions: s,
@@ -1208,20 +1208,20 @@ const Xt = ({ navigationControlsRef: t }) => {
1208
1208
  modal: N.options?.sidebarOptions?.modal,
1209
1209
  closeOnOverlayClick: N.options?.sidebarOptions?.closeOnOverlayClick,
1210
1210
  children: /* @__PURE__ */ e.jsx(
1211
- ft,
1211
+ ut,
1212
1212
  {
1213
1213
  options: N.options,
1214
1214
  helpSection: N.helpSection,
1215
1215
  sidebarContentRef: h,
1216
1216
  initialSectionRef: c,
1217
1217
  notificationsListControls: C,
1218
- scrollableControls: L
1218
+ scrollableControls: A
1219
1219
  }
1220
1220
  )
1221
1221
  }
1222
1222
  )
1223
1223
  ] });
1224
- }, Oe = M(Jt, (t, r) => {
1224
+ }, ft = M(Jt, (t, r) => {
1225
1225
  const { children: s, ...o } = t, { children: u, ...l } = r, f = Object.keys(o), d = Object.keys(l);
1226
1226
  if (f.length !== d.length)
1227
1227
  return !1;
@@ -1234,28 +1234,28 @@ const Xt = ({ navigationControlsRef: t }) => {
1234
1234
  }
1235
1235
  return !0;
1236
1236
  });
1237
- Oe.displayName = "PyrionNavigationDrawer.LayoutBase";
1237
+ ft.displayName = "PyrionNavigationDrawer.LayoutBase";
1238
1238
  const mt = M(({ children: t }) => /* @__PURE__ */ e.jsx(G.Outlet, { children: t }));
1239
1239
  mt.displayName = "PyrionNavigationDrawer.IsolatedOutlet";
1240
- const pt = Ie(null), wr = () => {
1240
+ const pt = Oe(null), wr = () => {
1241
1241
  const t = gt(pt);
1242
1242
  if (!t)
1243
1243
  throw new Error("usePyrionLayout debe usarse dentro de PyrionLayout");
1244
1244
  return t;
1245
- }, Nr = ({ children: t, helpSection: r, state: s, links: o, onLinkClick: u, onNavigate: l, onLogoutClick: f, actions: d, activeActionId: p, onActionClick: h, tabsProps: c, currentSystemId: g, onSessionClick: b, onSystemLogoClick: C, onProfileClick: L, ...w }) => {
1246
- const k = Object.assign({
1245
+ }, Nr = ({ children: t, helpSection: r, state: s, links: o, onLinkClick: u, onNavigate: l, onLogoutClick: f, actions: d, activeActionId: p, onActionClick: h, tabsProps: c, currentSystemId: g, onSessionClick: b, onSystemLogoClick: C, onProfileClick: A, ...w }) => {
1246
+ const D = Object.assign({
1247
1247
  closeDrawerOnNavigate: !0,
1248
1248
  disableDragOpen: {
1249
1249
  sidebar: !0,
1250
1250
  drawer: !1
1251
1251
  }
1252
- }, w.options), V = wt(), W = qe(), S = O(null), F = O(null), i = O({}), I = O(null), R = O("notifications"), z = O(null), $ = O(null), E = O(null), [_, Z] = Y(0), [ue, ee] = Y(!1), [ne, ae] = Y(null), oe = x((a) => {
1252
+ }, w.options), V = wt(), W = We(), j = T(null), F = T(null), i = T({}), I = T(null), B = T("notifications"), z = T(null), K = T(null), P = T(null), [_, Z] = Y(0), [ue, ee] = Y(!1), [ne, ae] = Y(null), le = x((a) => {
1253
1253
  if (ee(!1), u) {
1254
1254
  u(a);
1255
1255
  return;
1256
1256
  }
1257
1257
  const y = window.location.pathname;
1258
- V(a), k.closeDrawerOnNavigate && ht() && !i.current?.getIsCollapsed?.() && i.current?.toggleCollapse?.(), l && l(y, a);
1258
+ V(a), D.closeDrawerOnNavigate && ht() && !i.current?.getIsCollapsed?.() && i.current?.toggleCollapse?.(), l && l(y, a);
1259
1259
  }, [u, l, V]), te = (a) => {
1260
1260
  a && window.open(a, "_blank");
1261
1261
  }, ge = {
@@ -1269,37 +1269,37 @@ const pt = Ie(null), wr = () => {
1269
1269
  mobile: te,
1270
1270
  desktop: te
1271
1271
  }
1272
- }, ke = x((a) => {
1273
- const y = W ? "mobile" : "desktop", P = s.enabled_systems.find((j) => j.name === a)?.url;
1274
- ge.system[y](P), c?.onTabClick?.(a);
1275
- }, [W, s.enabled_systems, c?.onTabClick]), Fe = x((a) => {
1276
- const y = W ? "mobile" : "desktop", P = s.company.products?.find((j) => j.name === a)?.domain;
1277
- ge.product[y](P), c?.onTabClick?.(a);
1272
+ }, je = x((a) => {
1273
+ const y = W ? "mobile" : "desktop", E = s.enabled_systems.find((S) => S.name === a)?.url;
1274
+ ge.system[y](E), c?.onTabClick?.(a);
1275
+ }, [W, s.enabled_systems, c?.onTabClick]), Be = x((a) => {
1276
+ const y = W ? "mobile" : "desktop", E = s.company.products?.find((S) => S.name === a)?.domain;
1277
+ ge.product[y](E), c?.onTabClick?.(a);
1278
1278
  }, [W, s.company.products, c?.onTabClick]), ie = x((a, y) => {
1279
1279
  if (y) {
1280
1280
  y(a), c?.onTabClick?.(a);
1281
1281
  return;
1282
1282
  } else
1283
1283
  c?.onTabClick?.(a);
1284
- }, [c?.onTabClick]), ze = x(() => {
1284
+ }, [c?.onTabClick]), Fe = x(() => {
1285
1285
  const a = {};
1286
- s.enabled_systems.forEach((P) => {
1287
- a[P.url] = P.name;
1286
+ s.enabled_systems.forEach((E) => {
1287
+ a[E.url] = E.name;
1288
1288
  });
1289
1289
  const y = window.location.origin;
1290
- for (const [P, j] of Object.entries(a))
1291
- if (y === P)
1292
- return j;
1290
+ for (const [E, S] of Object.entries(a))
1291
+ if (y === E)
1292
+ return S;
1293
1293
  return "";
1294
- }, [s.enabled_systems]), De = c?.currentTabName || ze(), ve = me(
1294
+ }, [s.enabled_systems]), ke = c?.currentTabName || Fe(), De = me(
1295
1295
  () => s.sessions || [],
1296
1296
  [s.sessions]
1297
- ), X = (a) => a == null ? null : typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? String(a) : Ce(a) ? a : typeof a == "object" ? JSON.stringify(a) : null, ce = x((a, y) => {
1297
+ ), X = (a) => a == null ? null : typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? String(a) : ye(a) ? a : typeof a == "object" ? JSON.stringify(a) : null, ce = x((a, y) => {
1298
1298
  if (!a) return null;
1299
1299
  if (Array.isArray(a)) {
1300
- const P = a?.[0] ? ye(y, a[0]) : null, j = a?.[1] ? ye(y, a[1]) : null, K = X(P), fe = X(j);
1300
+ const E = a?.[0] ? Ne(y, a[0]) : null, S = a?.[1] ? Ne(y, a[1]) : null, $ = X(E), fe = X(S);
1301
1301
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1302
- /* @__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: K }),
1302
+ /* @__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: $ }),
1303
1303
  fe && /* @__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: [
1304
1304
  /* @__PURE__ */ e.jsx("span", { className: "size-0.5 bg-[var(--neutral-300)] rounded-full" }),
1305
1305
  /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-pre text-ellipsis", children: fe })
@@ -1307,164 +1307,134 @@ const pt = Ie(null), wr = () => {
1307
1307
  ] });
1308
1308
  }
1309
1309
  if (typeof a == "string") {
1310
- const P = ye(y, a);
1311
- return X(P);
1310
+ const E = Ne(y, a);
1311
+ return X(E);
1312
1312
  }
1313
1313
  return typeof a == "function" ? X(a(y)) : null;
1314
1314
  }, []), n = x(
1315
1315
  (a) => {
1316
- const y = k?.userCardOptions?.secondarySlot;
1316
+ const y = D?.userCardOptions?.secondarySlot;
1317
1317
  if (!y) return null;
1318
- const P = s.enabled_systems?.find((K) => K._id === g), j = { company: s.company, user: s.user, system: P, metadata: a };
1319
- return ce(y, j);
1318
+ const E = s.enabled_systems?.find(($) => $._id === g), S = { company: s.company, user: s.user, system: E, metadata: a };
1319
+ return ce(y, S);
1320
1320
  },
1321
- [g, k?.userCardOptions?.secondarySlot, ce, s.company, s.enabled_systems, s.user]
1321
+ [g, D?.userCardOptions?.secondarySlot, ce, s.company, s.enabled_systems, s.user]
1322
1322
  ), m = x(
1323
1323
  (a) => {
1324
- const y = k?.sessionCardOptions?.secondarySlot || k?.userCardOptions?.secondarySlot;
1324
+ const y = D?.sessionCardOptions?.secondarySlot || D?.userCardOptions?.secondarySlot;
1325
1325
  if (!y) return null;
1326
- const P = s.enabled_systems?.find((K) => K._id === g), j = { company: s.company, user: a.auth_id, metadata: a?.metadata, system: P };
1327
- return ce(y, j);
1326
+ const E = s.enabled_systems?.find(($) => $._id === g), S = { company: s.company, user: a.auth_id, metadata: a?.metadata, system: E };
1327
+ return ce(y, S);
1328
1328
  },
1329
- [g, k?.sessionCardOptions?.secondarySlot, k?.userCardOptions?.secondarySlot, ce, s.company]
1329
+ [g, D?.sessionCardOptions?.secondarySlot, D?.userCardOptions?.secondarySlot, ce, s.company]
1330
1330
  ), v = me(() => {
1331
1331
  const a = [];
1332
1332
  return i.current.openNotifications = () => {
1333
- R.current = "notifications", i.current.openSidebar?.(), I.current?.setActiveSection("notifications");
1333
+ B.current = "notifications", i.current.openSidebar?.(), I.current?.setActiveSection("notifications");
1334
1334
  }, i.current.openHelp = () => {
1335
- R.current = "help", i.current.openSidebar?.(), I.current?.setActiveSection("help");
1336
- }, !k?.notificationsDrawerOptions?.hideActionButton && !k?.notificationsDrawerOptions?.hide && a.push({
1335
+ B.current = "help", i.current.openSidebar?.(), I.current?.setActiveSection("help");
1336
+ }, !D?.notificationsDrawerOptions?.hideActionButton && !D?.notificationsDrawerOptions?.hide && a.push({
1337
1337
  id: "notifications",
1338
1338
  title: "Notificaciones",
1339
- icon: Xe,
1339
+ icon: Ye,
1340
1340
  onClick: i.current.openNotifications,
1341
1341
  count: _
1342
- }), !k?.helpSectionDrawerOptions?.hideActionButton && r && !k?.helpSectionDrawerOptions?.hide && a.push({
1342
+ }), !D?.helpSectionDrawerOptions?.hideActionButton && r && !D?.helpSectionDrawerOptions?.hide && a.push({
1343
1343
  id: "help",
1344
1344
  title: "Ayuda",
1345
- icon: Je,
1345
+ icon: Xe,
1346
1346
  onClick: i.current.openHelp
1347
- }), k?.configurationActionOptions?.onClick && !k?.configurationActionOptions?.hideActionButton && a.push({
1347
+ }), D?.configurationActionOptions?.onClick && !D?.configurationActionOptions?.hideActionButton && a.push({
1348
1348
  id: "configuration",
1349
1349
  title: "Configuracion",
1350
1350
  icon: Lt,
1351
- onClick: k.configurationActionOptions?.onClick
1351
+ onClick: D.configurationActionOptions?.onClick
1352
1352
  }), a;
1353
- }, [k, r, h, _]), A = me(
1353
+ }, [D, r, h, _]), O = me(
1354
1354
  () => [...v, ...d || []],
1355
1355
  [v, d]
1356
1356
  ), U = me(() => {
1357
- const a = s.enabled_systems.map((j) => ({
1358
- name: j.name,
1359
- thumbnail: j.thumbnail,
1360
- onClick: ke,
1361
- id: j._id
1362
- })) || [], y = c?.customTabs?.map((j) => ({
1363
- ...j,
1364
- onClick: () => ie(j.name, j?.onClick)
1365
- })) || [], P = s.company.products?.map((j) => ({
1366
- name: j.name,
1367
- thumbnail: j.thumbnail,
1368
- onClick: Fe
1357
+ const a = s.enabled_systems.map((S) => ({
1358
+ name: S.name,
1359
+ thumbnail: S.thumbnail,
1360
+ onClick: je,
1361
+ id: S._id
1362
+ })) || [], y = c?.customTabs?.map((S) => ({
1363
+ ...S,
1364
+ onClick: () => ie(S.name, S?.onClick)
1365
+ })) || [], E = s.company.products?.map((S) => ({
1366
+ name: S.name,
1367
+ thumbnail: S.thumbnail,
1368
+ onClick: Be
1369
1369
  })) || [];
1370
- return [...a, ...y, ...P];
1371
- }, [s.enabled_systems, s.company.products, c?.customTabs]), B = x((a, y) => {
1372
- S.current?.addNewNotification ? S.current.addNewNotification(a, y) : console.warn("Notifications controls not ready yet");
1373
- }, []), J = x((a) => S.current?.subscribeToUpdates ? S.current.subscribeToUpdates(a) : (console.warn("Notifications controls not ready yet"), () => {
1370
+ return [...a, ...y, ...E];
1371
+ }, [s.enabled_systems, s.company.products, c?.customTabs]), R = x((a, y) => {
1372
+ j.current?.addNewNotification ? j.current.addNewNotification(a, y) : console.warn("Notifications controls not ready yet");
1373
+ }, []), J = x((a) => j.current?.subscribeToUpdates ? j.current.subscribeToUpdates(a) : (console.warn("Notifications controls not ready yet"), () => {
1374
1374
  }), []), re = x((a) => {
1375
- S.current?.removeNotification ? S.current.removeNotification(a) : console.warn("Notifications controls not ready yet");
1375
+ j.current?.removeNotification ? j.current.removeNotification(a) : console.warn("Notifications controls not ready yet");
1376
1376
  }, []), de = x(() => {
1377
- S.current?.removeAllNotifications ? S.current.removeAllNotifications() : console.warn("Notifications controls not ready yet");
1378
- }, []), we = x((a) => {
1379
- S.current?.setNotifications ? S.current.setNotifications(a) : console.warn("Notifications controls not ready yet");
1380
- }, []), Ne = x((a, y) => F.current?.subscribeToScrollTarget ? F.current.subscribeToScrollTarget(a, y) : (console.warn("Scrollable controls not ready yet"), () => {
1381
- }), []), D = x((a) => {
1382
- S.current?.setLoading ? S.current.setLoading(a) : console.warn("Notifications controls not ready yet");
1383
- }, []), q = x((a, y, P) => {
1384
- const j = /* @__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", y ? "fixed" : "sticky"), children: [
1385
- !P && /* @__PURE__ */ e.jsx(pe, { label: "", icon: /* @__PURE__ */ e.jsx(_e, {}), onClick: () => ee(!1), variant: "text", className: "absolute top-0 right-0", size: "small", color: "secondary" }),
1377
+ j.current?.removeAllNotifications ? j.current.removeAllNotifications() : console.warn("Notifications controls not ready yet");
1378
+ }, []), ve = x((a) => {
1379
+ j.current?.setNotifications ? j.current.setNotifications(a) : console.warn("Notifications controls not ready yet");
1380
+ }, []), we = x((a, y) => F.current?.subscribeToScrollTarget ? F.current.subscribeToScrollTarget(a, y) : (console.warn("Scrollable controls not ready yet"), () => {
1381
+ }), []), k = x((a) => {
1382
+ j.current?.setLoading ? j.current.setLoading(a) : console.warn("Notifications controls not ready yet");
1383
+ }, []), q = x((a, y, E) => {
1384
+ const S = /* @__PURE__ */ e.jsxs("div", { className: L(" bg-black/60 z-200 inset-0 h-full w-full grid place-items-center text-neutral-default-default", y ? "fixed" : "sticky"), children: [
1385
+ !E && /* @__PURE__ */ e.jsx(pe, { label: "", icon: /* @__PURE__ */ e.jsx(Pe, {}), onClick: () => ee(!1), variant: "text", className: "absolute top-0 right-0", size: "small", color: "secondary" }),
1386
1386
  typeof a == "function" ? a() : a
1387
1387
  ] });
1388
- let K;
1389
- return y ? K = He(j, document.body, `modal-error-${Date.now()}`) : E.current && (K = He(j, E.current, `modal-error-${Date.now()}`)), ae(K), ee(!0), j;
1390
- }, [E]), H = x(() => {
1388
+ let $;
1389
+ return y ? $ = Ue(S, document.body, `modal-error-${Date.now()}`) : P.current && ($ = Ue(S, P.current, `modal-error-${Date.now()}`)), ae($), ee(!0), S;
1390
+ }, [P]), H = x(() => {
1391
1391
  ee(!1);
1392
1392
  }, []);
1393
- return i.current.addNewNotification = B, i.current.subscribeToNotificationsUpdates = J, i.current.removeNotification = re, i.current.removeAllNotifications = de, i.current.setNotifications = we, i.current.setNotificationsLoading = D, i.current.subscribeToNotificationsScroll = Ne, i.current.showErrorModal = q, i.current.closeErrorModal = H, Q(() => {
1393
+ return i.current.addNewNotification = R, i.current.subscribeToNotificationsUpdates = J, i.current.removeNotification = re, i.current.removeAllNotifications = de, i.current.setNotifications = ve, i.current.setNotificationsLoading = k, i.current.subscribeToNotificationsScroll = we, i.current.showErrorModal = q, i.current.closeErrorModal = H, Q(() => {
1394
1394
  J((a, y) => {
1395
1395
  Z(y);
1396
1396
  });
1397
1397
  }, [J]), /* @__PURE__ */ e.jsxs(pt.Provider, { value: i.current, children: [
1398
1398
  ue && ne,
1399
- W ? /* @__PURE__ */ e.jsx("div", { className: "flex h-screen", children: /* @__PURE__ */ e.jsx(
1400
- Oe,
1401
- {
1402
- links: o,
1403
- handleNavigation: oe,
1404
- allActions: A,
1405
- activeActionId: p,
1406
- onActionClick: h,
1407
- state: s,
1408
- currentAppSessions: ve,
1409
- resolveUserSecondarySlot: n,
1410
- resolveSessionSecondarySlot: m,
1411
- onSessionClick: b,
1412
- onLogoutClick: f,
1413
- options: k,
1414
- currentSystemId: g,
1415
- userOptionsControls: z,
1416
- mobileAppSwitcherControls: $,
1417
- onSystemLogoClick: C,
1418
- tabs: U,
1419
- helpSection: r,
1420
- sidebarContentRef: I,
1421
- initialSectionRef: R,
1422
- navigationControlsRef: i,
1423
- notificationsListControls: S,
1424
- scrollableControls: F,
1425
- outletRef: E,
1426
- onProfileClick: L,
1427
- children: t
1428
- }
1429
- ) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex h-screen", children: [
1430
- U.length > 0 && /* @__PURE__ */ e.jsx(
1431
- Tt,
1399
+ /* @__PURE__ */ e.jsxs("div", { className: "flex h-screen", children: [
1400
+ !W && U.length > 0 && /* @__PURE__ */ e.jsx(
1401
+ At,
1432
1402
  {
1433
1403
  className: "hidden md:flex",
1434
1404
  tabs: U,
1435
1405
  activeColor: "var(--neutral-900)",
1436
- currentTabName: De,
1406
+ currentTabName: ke,
1437
1407
  currentSystemId: g
1438
1408
  }
1439
1409
  ),
1440
1410
  /* @__PURE__ */ e.jsx(
1441
- Oe,
1411
+ ft,
1442
1412
  {
1443
1413
  links: o,
1444
- handleNavigation: oe,
1445
- allActions: A,
1414
+ handleNavigation: le,
1415
+ allActions: O,
1446
1416
  activeActionId: p,
1447
1417
  onActionClick: h,
1448
1418
  state: s,
1449
- currentAppSessions: ve,
1419
+ currentAppSessions: De,
1450
1420
  resolveUserSecondarySlot: n,
1451
1421
  resolveSessionSecondarySlot: m,
1452
1422
  onSessionClick: b,
1453
1423
  onLogoutClick: f,
1454
- options: k,
1424
+ options: D,
1455
1425
  currentSystemId: g,
1456
1426
  userOptionsControls: z,
1457
- mobileAppSwitcherControls: $,
1427
+ mobileAppSwitcherControls: K,
1458
1428
  onSystemLogoClick: C,
1459
1429
  tabs: U,
1460
1430
  helpSection: r,
1461
1431
  sidebarContentRef: I,
1462
- initialSectionRef: R,
1432
+ initialSectionRef: B,
1463
1433
  navigationControlsRef: i,
1464
- notificationsListControls: S,
1434
+ notificationsListControls: j,
1465
1435
  scrollableControls: F,
1466
- outletRef: E,
1467
- onProfileClick: L,
1436
+ outletRef: P,
1437
+ onProfileClick: A,
1468
1438
  children: t
1469
1439
  }
1470
1440
  )