prometeo-design-system 4.8.3 → 4.8.4

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,33 +1,33 @@
1
1
  import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
- import { u as Je, g as Nt } from "./useDevice-vwn4GLwK.js";
2
+ import { u as Je, g as yt } from "./useDevice-vwn4GLwK.js";
3
3
  import { c as D } from "./cn-B6yFEsav.js";
4
4
  import { g as Se } from "./utils-X4-h3cum.js";
5
- import qe, { forwardRef as be, useState as J, useRef as I, useEffect as se, memo as P, useContext as Ge, createContext as Me, useCallback as x, Children as yt, isValidElement as ke, useMemo as pe, useImperativeHandle as Re, useLayoutEffect as Ct, use as jt } from "react";
5
+ import qe, { forwardRef as be, useState as J, useRef as I, useEffect as se, memo as P, useContext as Ge, createContext as Me, useCallback as x, Children as Ct, isValidElement as ke, useMemo as pe, useImperativeHandle as Re, useLayoutEffect as jt, use as St } from "react";
6
6
  import { createPortal as $e } from "react-dom";
7
- import { useLocation as St, useNavigate as kt } from "react-router";
7
+ import { useLocation as Qe, useNavigate as kt } from "react-router";
8
8
  import ce from "./Skeleton.es.js";
9
9
  import { CloseNavBarDesktop as Lt } from "./Icons/CloseNavBarDesktop.es.js";
10
10
  import { c as Be } from "./index-BOQuZ0gG.js";
11
- import { B as Qe } from "./badge-BEx-0Q-K.js";
11
+ import { B as Ze } from "./badge-BEx-0Q-K.js";
12
12
  import Dt from "./PlainTooltip.es.js";
13
13
  import { CrevronLeft as At } from "./Icons/CrevronLeft.es.js";
14
14
  import { Scrollable as xe } from "./Scrollable.es.js";
15
15
  import ie from "./TicketCard.es.js";
16
- import Ze from "./UserCard.es.js";
16
+ import et from "./UserCard.es.js";
17
17
  import he from "./Button.es.js";
18
18
  import { Logout as Tt } from "./Icons/Logout.es.js";
19
19
  import Ot from "./NotificationCard.es.js";
20
20
  import { T as It, a as Et } from "./TabLinks-DnoWdrdk.js";
21
- import { Notifications as et } from "./Icons/Notifications.es.js";
21
+ import { Notifications as tt } from "./Icons/Notifications.es.js";
22
22
  import { Close as Fe } from "./Icons/Close.es.js";
23
- import { Help as tt } from "./Icons/Help.es.js";
23
+ import { Help as rt } from "./Icons/Help.es.js";
24
24
  import { Settings as _t } from "./Icons/Settings.es.js";
25
25
  const Pt = be((t, r) => {
26
- const [s, a] = J(t?.currentTabName || t.tabs[0]?.name), c = I(null), { tabs: l = [], className: d, activeColor: i = "var(--neutral-900)", currentSystemId: m, isLoading: h = !1 } = t;
27
- console.log("tabs en el tabswitch del layout", l, m), se(() => {
26
+ const [s, a] = J(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
+ console.log("tabs en el tabswitch del layout", l, p), se(() => {
28
28
  c.current?.style.setProperty("--tab-bg", i);
29
29
  }, [i]);
30
- const b = l.find((p) => p?.id === m || p?.name === t?.currentTabName) || l.find((p) => p?.name === s);
30
+ const b = l.find((u) => u?.id === p || u?.name === t?.currentTabName) || l.find((u) => u?.name === s);
31
31
  return /* @__PURE__ */ e.jsx(
32
32
  "div",
33
33
  {
@@ -41,7 +41,7 @@ const Pt = be((t, r) => {
41
41
  d
42
42
  ),
43
43
  children: (h ? Array(3).fill(null) : l).map(
44
- (p, g) => {
44
+ (u, g) => {
45
45
  if (h) return /* @__PURE__ */ e.jsx(
46
46
  "div",
47
47
  {
@@ -58,12 +58,12 @@ const Pt = be((t, r) => {
58
58
  "grid place-items-center",
59
59
  "tab-thumbnail-icon",
60
60
  "bg-transparent text-neutral-default-default",
61
- p?.className
61
+ u?.className
62
62
  ), children: /* @__PURE__ */ e.jsx(ce, { shape: "rounded", className: "w-full h-full" }) })
63
63
  }
64
64
  );
65
- const j = p?.name === b?.name, A = typeof p?.thumbnail == "string" ? /* @__PURE__ */ e.jsx("img", { src: p?.thumbnail, alt: p?.description, className: "aspect-square object-contain rounded", draggable: !1 }) : p?.thumbnail, y = () => {
66
- p.disabled || (a(p?.name), p.onClick && p.onClick(p?.name));
65
+ const j = u?.name === b?.name, A = typeof u?.thumbnail == "string" ? /* @__PURE__ */ e.jsx("img", { src: u?.thumbnail, alt: u?.description, className: "aspect-square object-contain rounded", draggable: !1 }) : u?.thumbnail, y = () => {
66
+ u.disabled || (a(u?.name), u.onClick && u.onClick(u?.name));
67
67
  };
68
68
  return /* @__PURE__ */ e.jsx(
69
69
  "div",
@@ -83,17 +83,17 @@ const Pt = be((t, r) => {
83
83
  "grid place-items-center",
84
84
  "tab-thumbnail-icon",
85
85
  "bg-transparent text-neutral-default-default",
86
- p?.className
86
+ u?.className
87
87
  ), children: A })
88
88
  },
89
- p?.name
89
+ u?.name
90
90
  );
91
91
  }
92
92
  )
93
93
  }
94
94
  );
95
- }), rt = P(be(({ children: t, className: r, context: s, modal: a = !1, closeOnOverlayClick: c = !1, unmountChildrenOnClose: l = !0 }, d) => {
96
- const i = ge(t, s), m = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, { isSidebarOpen: h } = Mt(), { closeSidebar: b } = de(), [p, g] = J(() => l ? h : !0), [j, A] = J(!1);
95
+ }), st = P(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(), [u, g] = J(() => l ? h : !0), [j, A] = J(!1);
97
97
  return se(() => {
98
98
  l && s?.subscribeToSidebarOpen((y) => {
99
99
  y ? (A(!1), g(!0)) : A(!0);
@@ -105,8 +105,8 @@ const Pt = be((t, r) => {
105
105
  j && (g(!1), A(!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", m ? "collapsed" : "expanded", "h-full overflow-auto", r), "aria-modal": a || void 0, children: [
109
- a && m && /* @__PURE__ */ e.jsx(
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: [
109
+ a && p && /* @__PURE__ */ e.jsx(
110
110
  "div",
111
111
  {
112
112
  className: D("navigation-drawer-sidebar-overlay"),
@@ -118,21 +118,21 @@ const Pt = be((t, r) => {
118
118
  ),
119
119
  /* @__PURE__ */ e.jsxs("div", { className: D("navigation-drawer-sidebar-inner"), children: [
120
120
  /* @__PURE__ */ e.jsx("div", { className: "secure-click-margin" }),
121
- p && i
121
+ u && i
122
122
  ] })
123
123
  ] });
124
- })), st = Me(null), nt = Me(null), Mt = () => {
125
- const t = Ge(st);
124
+ })), nt = Me(null), at = Me(null), Mt = () => {
125
+ const t = Ge(nt);
126
126
  if (!t) throw new Error("useDrawerState must be used within NavigationDrawer");
127
127
  return t;
128
128
  }, de = () => {
129
- const t = Ge(nt);
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, at = "navigation-drawer-collapsed", Ke = () => {
132
+ }, ge = (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
- const t = sessionStorage.getItem(at);
135
+ const t = sessionStorage.getItem(ot);
136
136
  return t ? JSON.parse(t) : !1;
137
137
  } catch {
138
138
  return !1;
@@ -140,60 +140,60 @@ const Pt = be((t, r) => {
140
140
  }, Rt = (t) => {
141
141
  if (!(typeof window > "u"))
142
142
  try {
143
- sessionStorage.setItem(at, JSON.stringify(t));
143
+ sessionStorage.setItem(ot, JSON.stringify(t));
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), m = I(null), h = t.outletRef ?? I(null), b = I(null), p = I(Ke()), g = I(!1), j = I("drawer"), A = I(/* @__PURE__ */ new Set()), y = I(/* @__PURE__ */ new Set()), C = I(!1), S = I(null), K = x((n) => {
148
- const f = m.current;
149
- f && (f.classList.toggle("collapsed", n), f.classList.toggle("expanded", !n));
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), u = I(Ke()), g = I(!1), j = I("drawer"), A = I(/* @__PURE__ */ new Set()), y = I(/* @__PURE__ */ new Set()), C = I(!1), S = I(null), K = x((n) => {
148
+ const m = p.current;
149
+ m && (m.classList.toggle("collapsed", n), m.classList.toggle("expanded", !n));
150
150
  }, []), z = x((n) => {
151
- const f = b.current;
152
- if (!f) return;
153
- f.classList.toggle("collapsed", n), f.classList.toggle("expanded", !n);
151
+ const m = b.current;
152
+ if (!m) return;
153
+ m.classList.toggle("collapsed", n), m.classList.toggle("expanded", !n);
154
154
  const w = i.current;
155
155
  w && (w.classList.toggle("sidebar-collapsed", n), w.classList.toggle("sidebar-expanded", !n));
156
156
  }, []), k = x(
157
- (n, { notify: f = !0 } = {}) => {
158
- const w = p.current !== n;
159
- p.current = n, Rt(n), K(n), f && w && A.current.forEach((E) => E(n));
157
+ (n, { notify: m = !0 } = {}) => {
158
+ const w = u.current !== n;
159
+ u.current = n, Rt(n), K(n), m && w && A.current.forEach((E) => E(n));
160
160
  },
161
161
  [K]
162
162
  ), U = x(
163
- (n, { notify: f = !0 } = {}) => {
163
+ (n, { notify: m = !0 } = {}) => {
164
164
  const w = g.current !== n;
165
- if (g.current = n, z(n), f && w) {
165
+ if (g.current = n, z(n), m && w) {
166
166
  const E = !n;
167
167
  y.current.forEach((H) => H(E));
168
168
  }
169
169
  },
170
170
  [z]
171
171
  ), v = x(
172
- (n, { notify: f = !0 } = {}) => {
172
+ (n, { notify: m = !0 } = {}) => {
173
173
  const w = j.current, E = w !== n;
174
- j.current = n, window.matchMedia("(min-width: 768px)").matches || k(n !== "drawer", { notify: f });
174
+ j.current = n, window.matchMedia("(min-width: 768px)").matches || k(n !== "drawer", { notify: m });
175
175
  const H = w === "sidebar", R = n === "sidebar";
176
- f && E && H !== R && y.current.forEach((te) => te(R)), U(n !== "sidebar", { notify: f }), k(n !== "drawer", { notify: f });
176
+ m && E && H !== R && y.current.forEach((te) => te(R)), U(n !== "sidebar", { notify: m }), k(n !== "drawer", { notify: m });
177
177
  },
178
178
  [k, U]
179
179
  ), q = x((n) => {
180
- const f = i.current;
181
- if (!f || window.matchMedia("(min-width: 768px)").matches) return;
180
+ const m = i.current;
181
+ if (!m || window.matchMedia("(min-width: 768px)").matches) return;
182
182
  C.current = !0;
183
183
  const w = h.current?.offsetLeft ?? 0, E = b.current?.offsetLeft ?? w, H = n === "drawer" ? 0 : n === "sidebar" ? E : w;
184
- S.current = H, f.scrollTo({ left: H, behavior: "smooth" });
184
+ S.current = H, m.scrollTo({ left: H, behavior: "smooth" });
185
185
  const R = () => {
186
- C.current = !1, S.current = null, f.removeEventListener("scrollend", R);
186
+ C.current = !1, S.current = null, m.removeEventListener("scrollend", R);
187
187
  };
188
- f.addEventListener("scrollend", R, { once: !0 }), setTimeout(() => {
188
+ m.addEventListener("scrollend", R, { once: !0 }), setTimeout(() => {
189
189
  C.current && R();
190
190
  }, 1e3);
191
191
  }, []), G = x(() => {
192
- const n = i.current, f = h.current;
193
- if (!n || !f || window.matchMedia("(min-width: 768px)").matches) return;
192
+ const n = i.current, m = h.current;
193
+ if (!n || !m || window.matchMedia("(min-width: 768px)").matches) return;
194
194
  const w = [
195
195
  { panel: "drawer", offset: 0 },
196
- { panel: "outlet", offset: f.offsetLeft }
196
+ { panel: "outlet", offset: m.offsetLeft }
197
197
  ], E = b.current;
198
198
  E && w.push({ panel: "sidebar", offset: E.offsetLeft });
199
199
  const H = n.scrollLeft;
@@ -208,15 +208,15 @@ const Pt = be((t, r) => {
208
208
  const n = i.current;
209
209
  n && (c?.drawer && n.classList.add("disabled-dragopen"), c?.sidebar && n.classList.add("disabled-dragopen-sidebar"));
210
210
  }, [c, i]), se(() => {
211
- const n = i.current, f = h.current;
212
- if (!n || !f) return;
211
+ const n = i.current, m = h.current;
212
+ if (!n || !m) return;
213
213
  if (window.matchMedia("(min-width: 768px)").matches) {
214
214
  const E = Ke();
215
215
  k(E, { notify: !1 }), U(!0, { notify: !1 });
216
216
  return;
217
217
  }
218
218
  requestAnimationFrame(() => {
219
- n.scrollLeft = f.offsetLeft, v("outlet");
219
+ n.scrollLeft = m.offsetLeft, v("outlet");
220
220
  });
221
221
  }, [v, k, U]), se(() => {
222
222
  const n = i.current;
@@ -273,25 +273,25 @@ const Pt = be((t, r) => {
273
273
  };
274
274
  }, [G]);
275
275
  const V = x(() => {
276
- const n = window.matchMedia("(min-width: 768px)").matches, f = !p.current;
276
+ const n = window.matchMedia("(min-width: 768px)").matches, m = !u.current;
277
277
  if (n) {
278
- k(f);
278
+ k(m);
279
279
  return;
280
280
  }
281
- const w = f ? "outlet" : "drawer";
281
+ const w = m ? "outlet" : "drawer";
282
282
  v(w), q(w);
283
283
  }, [q, v, k]), X = I(null);
284
284
  X.current || (X.current = {
285
285
  toggleCollapse: () => V(),
286
286
  getIsCollapsed: () => {
287
287
  if (!window.matchMedia("(min-width: 768px)").matches) {
288
- const f = i.current, w = h.current;
289
- if (f && w) {
290
- const E = f.scrollLeft, H = w.offsetLeft, R = Math.abs(E - H) < Math.abs(E - 0);
291
- return R !== p.current && (p.current = R, K(R)), R;
288
+ const m = i.current, w = h.current;
289
+ if (m && w) {
290
+ const E = m.scrollLeft, H = w.offsetLeft, R = Math.abs(E - H) < Math.abs(E - 0);
291
+ return R !== u.current && (u.current = R, K(R)), R;
292
292
  }
293
293
  }
294
- return p.current;
294
+ return u.current;
295
295
  },
296
296
  subscribeToCollapse: (n) => (A.current.add(n), () => {
297
297
  A.current.delete(n);
@@ -326,38 +326,38 @@ const Pt = be((t, r) => {
326
326
  y.current.delete(n);
327
327
  }),
328
328
  setDrawerDragEnabled: (n) => {
329
- const f = i.current;
330
- if (!f) return;
331
- const w = f.scrollLeft;
329
+ const m = i.current;
330
+ if (!m) return;
331
+ const w = m.scrollLeft;
332
332
  if (n) {
333
- const E = f.style.scrollBehavior;
334
- f.style.scrollBehavior = "auto", f.classList.remove("disabled-dragopen"), requestAnimationFrame(() => {
335
- f.scrollLeft = w, requestAnimationFrame(() => {
336
- f.style.scrollBehavior = E;
333
+ const E = m.style.scrollBehavior;
334
+ m.style.scrollBehavior = "auto", m.classList.remove("disabled-dragopen"), requestAnimationFrame(() => {
335
+ m.scrollLeft = w, requestAnimationFrame(() => {
336
+ m.style.scrollBehavior = E;
337
337
  });
338
338
  });
339
339
  } else
340
- f.classList.add("disabled-dragopen");
340
+ m.classList.add("disabled-dragopen");
341
341
  },
342
342
  setSidebarDragEnabled: (n) => {
343
- const f = i.current;
344
- if (f)
343
+ const m = i.current;
344
+ if (m)
345
345
  if (n) {
346
- const w = f.scrollLeft, E = f.style.scrollBehavior;
347
- f.style.scrollBehavior = "auto", f.classList.remove("disabled-dragopen-sidebar"), requestAnimationFrame(() => {
348
- f.scrollLeft = w, requestAnimationFrame(() => {
349
- f.style.scrollBehavior = E;
346
+ const w = m.scrollLeft, E = m.style.scrollBehavior;
347
+ m.style.scrollBehavior = "auto", m.classList.remove("disabled-dragopen-sidebar"), requestAnimationFrame(() => {
348
+ m.scrollLeft = w, requestAnimationFrame(() => {
349
+ m.style.scrollBehavior = E;
350
350
  });
351
351
  });
352
352
  } else
353
- f.classList.add("disabled-dragopen-sidebar");
353
+ m.classList.add("disabled-dragopen-sidebar");
354
354
  }
355
355
  });
356
- const $ = X.current, _ = typeof r == "function" ? r($) : r, u = yt.toArray(_);
356
+ const $ = X.current, _ = typeof r == "function" ? r($) : r, f = Ct.toArray(_);
357
357
  let O = null, M = null, F = null;
358
358
  const Q = [];
359
359
  let ae = null, Z = null;
360
- u.forEach((n) => {
360
+ f.forEach((n) => {
361
361
  if (!ke(n)) {
362
362
  Q.push(n);
363
363
  return;
@@ -378,17 +378,17 @@ const Pt = be((t, r) => {
378
378
  ae = n;
379
379
  return;
380
380
  }
381
- if (n.type === rt && !Z) {
381
+ if (n.type === st && !Z) {
382
382
  Z = n;
383
383
  return;
384
384
  }
385
385
  Q.push(n);
386
386
  });
387
387
  const ve = !!M, we = M ?? (Q.length ? /* @__PURE__ */ e.jsx(Le, { children: Q }) : null), Ae = ve ? Q : [], ue = ae ?? (!!ae ? /* @__PURE__ */ e.jsx(_e, { children: _, context: $, modal: l, closeOnOutsideClick: d }) : null), Te = F ?? (!!F ? /* @__PURE__ */ e.jsx(De, { children: F }) : null), Oe = !!Z, ee = Z, fe = pe(() => ({
388
- isCollapsed: p.current,
388
+ isCollapsed: u.current,
389
389
  isSidebarOpen: !g.current
390
- }), [p.current, g.current]);
391
- return /* @__PURE__ */ e.jsx(st.Provider, { value: fe, children: /* @__PURE__ */ e.jsx(nt.Provider, { value: $, children: /* @__PURE__ */ e.jsxs("div", { id: "navigation-drawer-container", ref: i, className: D(
390
+ }), [u.current, g.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(
392
392
  "w-full h-full max-h-dvh overflow-y-hidden",
393
393
  Oe ? "navigation-drawer-with-sidebar" : "navigation-drawer",
394
394
  c?.drawer ? "disabled-dragopen" : "",
@@ -397,16 +397,16 @@ const Pt = be((t, r) => {
397
397
  /* @__PURE__ */ e.jsxs(
398
398
  "div",
399
399
  {
400
- ref: m,
400
+ ref: p,
401
401
  className: D(
402
402
  "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
- p.current ? "collapsed" : "expanded",
403
+ u.current ? "collapsed" : "expanded",
404
404
  s
405
405
  ),
406
406
  children: [
407
407
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col flex-1 gap-4 overflow-hidden", children: [
408
408
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
409
- /* @__PURE__ */ e.jsx(ot, { onToggleCollapse: V }),
409
+ /* @__PURE__ */ e.jsx(lt, { onToggleCollapse: V }),
410
410
  O
411
411
  ] }),
412
412
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 overflow-hidden relative flex-col", children: [
@@ -424,7 +424,7 @@ const Pt = be((t, r) => {
424
424
  className: D("sidebar", ee.props?.className, a)
425
425
  }) : ee
426
426
  ] }) }) });
427
- }, Ye = P(Bt), ot = P(({ onToggleCollapse: t }) => /* @__PURE__ */ e.jsx(
427
+ }, Ye = P(Bt), lt = P(({ onToggleCollapse: t }) => /* @__PURE__ */ e.jsx(
428
428
  "button",
429
429
  {
430
430
  type: "button",
@@ -433,7 +433,7 @@ const Pt = be((t, r) => {
433
433
  children: /* @__PURE__ */ e.jsx(Lt, { size: 32, className: "transition-transform duration-300 p-1" })
434
434
  }
435
435
  ), (t, r) => t.onToggleCollapse === r.onToggleCollapse);
436
- ot.displayName = "NavigationDrawerCollapseButton";
436
+ lt.displayName = "NavigationDrawerCollapseButton";
437
437
  const ze = P(({ children: t, className: r, context: s }) => {
438
438
  const a = ge(t, s);
439
439
  return /* @__PURE__ */ e.jsx("div", { className: D("flex items-center justify-between", r), children: a });
@@ -449,14 +449,14 @@ const De = P(({ children: t, className: r, context: s }) => {
449
449
  return /* @__PURE__ */ e.jsx("div", { className: D("flex items-center justify-between", r), children: a });
450
450
  });
451
451
  De.displayName = "NavigationDrawerFooter";
452
- const lt = P(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: D("w-full border-t border-neutral-strong-default ", t) }));
453
- lt.displayName = "NavigationDrawerSpacer";
452
+ const it = P(({ className: t }) => /* @__PURE__ */ e.jsx("div", { className: D("w-full border-t border-neutral-strong-default ", t) }));
453
+ it.displayName = "NavigationDrawerSpacer";
454
454
  const _e = P(be(({ children: t, className: r, context: s, modal: a, closeOnOutsideClick: c }, l) => {
455
- const d = ge(t, s), i = de(), m = () => {
455
+ const d = ge(t, s), i = de(), p = () => {
456
456
  c && (i.toggleCollapse(), i.closeSidebar());
457
457
  };
458
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: [
459
- a && /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backdrop select-none", onClick: m }),
459
+ a && /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backdrop select-none", onClick: p }),
460
460
  d
461
461
  ] }) });
462
462
  }), (t, r) => t.children === r.children && t.className === r.className), re = Object.assign(Ye, {
@@ -464,9 +464,9 @@ const _e = P(be(({ children: t, className: r, context: s, modal: a, closeOnOutsi
464
464
  Header: ze,
465
465
  Content: Le,
466
466
  Footer: De,
467
- Spacer: lt,
467
+ Spacer: it,
468
468
  Outlet: _e,
469
- Sidebar: rt
469
+ Sidebar: st
470
470
  });
471
471
  re.displayName = "NavigationDrawer";
472
472
  const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
@@ -534,10 +534,10 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
534
534
  isSelected: l = !1,
535
535
  hasSublinks: d,
536
536
  subLinksCollapsed: i,
537
- onToggleSublinks: m,
537
+ onToggleSublinks: p,
538
538
  as: h = "div",
539
539
  onClick: b,
540
- onAuxClick: p,
540
+ onAuxClick: u,
541
541
  disabled: g = !1,
542
542
  tooltipText: j,
543
543
  selectorCss: A
@@ -549,7 +549,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
549
549
  /* @__PURE__ */ e.jsx("label", { className: Ut({ disabled: g, isSelected: l }), children: r })
550
550
  ] }),
551
551
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 items-center", children: [
552
- a && a ? /* @__PURE__ */ e.jsx(Qe, { count: a, maxCount: 9, className: "badge", disabled: g }) : "",
552
+ a && a ? /* @__PURE__ */ e.jsx(Ze, { count: a, maxCount: 9, className: "badge", disabled: g }) : "",
553
553
  d && /* @__PURE__ */ e.jsx(
554
554
  "div",
555
555
  {
@@ -565,7 +565,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
565
565
  {
566
566
  disabled: g,
567
567
  type: "button",
568
- onClick: m,
568
+ onClick: p,
569
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: g, isSelected: l }), g && "pointer-events-none"),
570
570
  children: /* @__PURE__ */ e.jsx(At, {})
571
571
  }
@@ -584,7 +584,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
584
584
  if (h === "a") {
585
585
  const z = {
586
586
  onClick: y,
587
- onAuxClick: p,
587
+ onAuxClick: u,
588
588
  className: S
589
589
  };
590
590
  return /* @__PURE__ */ e.jsx("a", { ...z, children: C });
@@ -606,7 +606,7 @@ const Ft = "hover:bg-neutral-medium-hover", zt = Be("", {
606
606
  }, Ue = P(Wt);
607
607
  Ue.displayName = "NavigationDrawerItemBase";
608
608
  const Ht = (t) => {
609
- const { title: r, icon: s, count: a, className: c, isActive: l, onClick: d, isView: i = !0, disabled: m, tooltipText: h, selectorCss: b } = 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;
610
610
  return i ? /* @__PURE__ */ e.jsx(
611
611
  Ue,
612
612
  {
@@ -617,69 +617,69 @@ const Ht = (t) => {
617
617
  className: c,
618
618
  isSelected: l,
619
619
  onClick: d,
620
- disabled: m,
620
+ disabled: p,
621
621
  tooltipText: h,
622
622
  selectorCss: b
623
623
  }
624
624
  ) : null;
625
- }, it = P(Ht);
626
- it.displayName = "NavigationDrawerActionItem";
625
+ }, ct = P(Ht);
626
+ ct.displayName = "NavigationDrawerActionItem";
627
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: {
628
628
  top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
629
629
  bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
630
630
  }, children: t?.map((c) => {
631
- const { id: l, onClick: d, isView: i = !0, payload: m, ...h } = c, b = l === r, p = () => {
632
- s?.(l, m), d?.();
631
+ const { id: l, onClick: d, isView: i = !0, payload: p, ...h } = c, b = l === r, u = () => {
632
+ s?.(l, p), d?.();
633
633
  };
634
634
  return i ? /* @__PURE__ */ e.jsx(
635
- it,
635
+ ct,
636
636
  {
637
637
  ...h,
638
638
  id: l,
639
639
  isActive: b,
640
- onClick: p
640
+ onClick: u
641
641
  },
642
642
  l
643
643
  ) : null;
644
- }) }), ct = P(Vt);
645
- ct.displayName = "NavigationDrawerActions";
644
+ }) }), dt = P(Vt);
645
+ dt.displayName = "NavigationDrawerActions";
646
646
  const qt = (t) => {
647
- const { className: r, title: s, path: a, onClick: c, isSelected: l, parentPath: d } = t, i = x(() => {
647
+ const { className: r, title: s, path: a, onClick: c, isSelected: l, parentPath: d } = t, { pathname: i } = Qe(), p = x(() => {
648
648
  c?.(a);
649
- }, [a]), m = x(() => {
649
+ }, [a]), h = x(() => {
650
650
  if (a.startsWith("./")) {
651
651
  if (!d) return;
652
- const h = d + a.slice(2);
653
- window.open(h, "_blank");
652
+ const u = d + a.slice(2);
653
+ window.open(u, "_blank");
654
654
  } else
655
655
  window.open(a, "_blank");
656
- }, [a]);
656
+ }, [a]), b = l || a === i;
657
657
  return /* @__PURE__ */ e.jsx(
658
658
  "a",
659
659
  {
660
- onClick: i,
661
- onAuxClick: m,
660
+ onClick: p,
661
+ onAuxClick: h,
662
662
  className: D(
663
663
  "group",
664
664
  "transition-all duration-300 ease-in-out cursor-pointer",
665
665
  "h-10 w-full rounded-lg py-[11px] px-3",
666
666
  "hover:bg-neutral-medium-hover",
667
- l && "bg-neutral-medium-selected hover:bg-neutral-medium-hover active:bg-transparent focus:bg-transparent",
667
+ b && "bg-neutral-medium-selected hover:bg-neutral-medium-hover active:bg-transparent focus:bg-transparent",
668
668
  r
669
669
  ),
670
670
  children: /* @__PURE__ */ e.jsx("p", { className: D(
671
671
  "prometeo-fonts-label-large text-neutral-medium-default",
672
672
  "group-active:text-neutral-default-focused group-focus:text-neutral-default-focused",
673
- l && "text-primary-default-default group-hover:text-primary-default-hover group-focus:text-primary-default-focused group-active:text-primary-default-focused"
673
+ b && "text-primary-default-default group-hover:text-primary-default-hover group-focus:text-primary-default-focused group-active:text-primary-default-focused"
674
674
  ), children: s })
675
675
  }
676
676
  );
677
- }, dt = P(qt);
678
- dt.displayName = "NavItemSecondary";
677
+ }, ut = P(qt);
678
+ ut.displayName = "NavItemSecondary";
679
679
  const $t = be((t, r) => {
680
- const [s, a] = J(!0), c = I(null), { path: l, title: d, icon: i, count: m, className: h, isSelected: b = !1, onClick: p, sublinks: g, toggleCollapse: j, getIsCollapsed: A, subscribeToCollapse: y, isView: C = !0, disabled: S, tooltipText: K, selectorCss: z } = t;
681
- se(() => y ? y((u) => {
682
- u && a(!0);
680
+ const [s, a] = J(!0), c = I(null), { path: l, title: d, icon: i, count: p, className: h, isSelected: b = !1, onClick: u, sublinks: g, toggleCollapse: j, getIsCollapsed: A, subscribeToCollapse: y, isView: C = !0, disabled: S, tooltipText: K, selectorCss: z } = t;
681
+ se(() => y ? y((f) => {
682
+ f && a(!0);
683
683
  }) : void 0, [y]);
684
684
  const k = x(() => {
685
685
  a((_) => !_);
@@ -704,26 +704,26 @@ const $t = be((t, r) => {
704
704
  U(!1), j?.();
705
705
  return;
706
706
  }
707
- p?.(l);
708
- }, [l, p, g, j, U, A]), V = x(() => {
707
+ u?.(l);
708
+ }, [l, u, g, j, U, A]), V = x(() => {
709
709
  window.open(l, "_blank");
710
710
  }, [l]), X = () => {
711
711
  if (!g || S) return null;
712
712
  if (t.subLinksRender && g)
713
713
  return t.subLinksRender(g, v);
714
- const _ = x((u) => {
715
- if (u.startsWith("./")) {
716
- const O = l + u.slice(2);
717
- p?.(O);
714
+ const _ = x((f) => {
715
+ if (f.startsWith("./")) {
716
+ const O = l + f.slice(2);
717
+ u?.(O);
718
718
  } else
719
- p?.(u);
719
+ u?.(f);
720
720
  }, [l]);
721
721
  return se(() => {
722
- const u = c.current;
723
- if (!u) return;
724
- const O = u.scrollHeight;
725
- u.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: g.map((u) => /* @__PURE__ */ e.jsx(dt, { ...u, onClick: _, parentPath: l }, `${u.title}-${u.path}`)) });
722
+ const f = c.current;
723
+ 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: g.map((f) => /* @__PURE__ */ e.jsx(ut, { ...f, onClick: _, parentPath: l }, `${f.title}-${f.path}`)) });
727
727
  }, $ = (_) => {
728
728
  _.stopPropagation(), _.preventDefault(), k();
729
729
  };
@@ -734,7 +734,7 @@ const $t = be((t, r) => {
734
734
  as: "a",
735
735
  title: d,
736
736
  icon: q,
737
- count: m,
737
+ count: p,
738
738
  className: h,
739
739
  isSelected: b,
740
740
  hasSublinks: !!g,
@@ -748,17 +748,17 @@ const $t = be((t, r) => {
748
748
  ),
749
749
  X()
750
750
  ] }) : null;
751
- }), ut = P($t);
752
- ut.displayName = "NavigationDrawerLinkItem";
751
+ }), ft = P($t);
752
+ ft.displayName = "NavigationDrawerLinkItem";
753
753
  const Kt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: a, toggleCollapse: c, subscribeToCollapse: l }) => {
754
- const { pathname: d } = St();
754
+ const { pathname: d } = Qe();
755
755
  return /* @__PURE__ */ e.jsx(xe, { className: D("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, persistScroll: "navigation-links", indicators: {
756
756
  top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
757
757
  bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
758
- }, children: t?.map((i, m) => {
758
+ }, children: t?.map((i, p) => {
759
759
  const h = i.isSelected || i.path === d || (i.relatedPaths?.some((b) => d.startsWith(b)) ?? !1) || (i.sublinks?.some((b) => b.path === d) ?? !1);
760
760
  return /* @__PURE__ */ e.jsx(
761
- ut,
761
+ ft,
762
762
  {
763
763
  ...i,
764
764
  isSelected: h,
@@ -770,18 +770,18 @@ const Kt = ({ navlinks: t, handleNavigation: r, className: s, getIsCollapsed: a,
770
770
  isView: i.isView,
771
771
  selectorCss: i.selectorCss
772
772
  },
773
- m
773
+ p
774
774
  );
775
775
  }) });
776
- }, ft = P(Kt);
777
- ft.displayName = "NavigationDrawerNavlinks";
778
- const mt = P(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId: a, onActionClick: c }) => {
776
+ }, mt = P(Kt);
777
+ mt.displayName = "NavigationDrawerNavlinks";
778
+ const pt = P(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId: a, onActionClick: c }) => {
779
779
  const { getIsCollapsed: l, toggleCollapse: d, subscribeToCollapse: i } = de();
780
780
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
781
781
  /* @__PURE__ */ e.jsx(re.Spacer, { className: "pb-3" }),
782
782
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col overflow-hidden h-full gap-4 relative w-full", children: [
783
783
  /* @__PURE__ */ e.jsx(
784
- ft,
784
+ mt,
785
785
  {
786
786
  getIsCollapsed: l,
787
787
  toggleCollapse: d,
@@ -792,7 +792,7 @@ const mt = P(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId:
792
792
  }
793
793
  ),
794
794
  /* @__PURE__ */ e.jsx(
795
- ct,
795
+ dt,
796
796
  {
797
797
  actions: s,
798
798
  activeActionId: a,
@@ -803,37 +803,37 @@ const mt = P(({ navlinks: t, handleNavigation: r, allActions: s, activeActionId:
803
803
  ] })
804
804
  ] });
805
805
  }, (t, r) => t.navlinks === r.navlinks && t.handleNavigation === r.handleNavigation && t.allActions === r.allActions && t.activeActionId === r.activeActionId && t.onActionClick === r.onActionClick);
806
- mt.displayName = "PyrionNavigationDrawer.Content";
806
+ pt.displayName = "PyrionNavigationDrawer.Content";
807
807
  const Yt = (t) => {
808
808
  const { sessions: r, onSessionClick: s, secondarySlot: a, subImageUrlAccessor: c } = t;
809
809
  if (!r || r.length === 0)
810
810
  return null;
811
- const l = (m, h) => {
812
- s && h && s(m, h);
813
- }, d = (m) => {
811
+ const l = (p, h) => {
812
+ s && h && s(p, h);
813
+ }, d = (p) => {
814
814
  if (!c)
815
815
  return;
816
- const h = m.metadata;
816
+ const h = p.metadata;
817
817
  if (!h)
818
818
  return;
819
819
  const b = Se({ metadata: h }, c);
820
820
  if (b != null)
821
821
  return typeof b == "string" ? b : String(b);
822
- }, i = x((m) => typeof a == "function" ? a(m) : a, [a]);
823
- return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((m) => {
824
- const { auth_id: h } = m;
825
- return /* @__PURE__ */ e.jsx(ie, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(ie.Content, { onClick: () => l(m, t.userOptionsControls), className: "p-0 group-data-[expanded=true]/ticketcard:border-none", children: /* @__PURE__ */ e.jsx(
826
- Ze,
822
+ }, i = x((p) => typeof a == "function" ? a(p) : a, [a]);
823
+ return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: r?.map((p) => {
824
+ 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(
826
+ et,
827
827
  {
828
828
  name: h.name,
829
829
  avatarSize: "xxs",
830
- secondarySlot: i(m),
831
- subImageUrl: d(m),
830
+ secondarySlot: i(p),
831
+ subImageUrl: d(p),
832
832
  imageUrl: h.profile_picture,
833
833
  className: "pyrion-navigation-drawer-user-card"
834
834
  },
835
- m.token
836
- ) }) }, m.token);
835
+ p.token
836
+ ) }) }, p.token);
837
837
  }) });
838
838
  }, Xt = ({
839
839
  state: t,
@@ -844,21 +844,21 @@ const Yt = (t) => {
844
844
  onLogoutClick: l,
845
845
  onProfileClick: d,
846
846
  options: i,
847
- currentSystemId: m,
847
+ currentSystemId: p,
848
848
  userOptionsControls: h,
849
849
  mobileAppSwitcherControls: b
850
850
  }) => {
851
- const { getIsCollapsed: p, toggleCollapse: g, subscribeToCollapse: j } = de(), A = x(() => {
852
- const y = p();
851
+ const { getIsCollapsed: u, toggleCollapse: g, subscribeToCollapse: j } = de(), A = x(() => {
852
+ const y = u();
853
853
  y ? (g(), h.current?.open()) : d?.(y);
854
- }, [p, g, h, d]);
854
+ }, [u, g, h, d]);
855
855
  return se(() => j((y) => {
856
856
  y && (h.current?.close(), b.current?.close());
857
857
  }), [j, h, b]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
858
858
  /* @__PURE__ */ e.jsx(re.Spacer, { className: "mb-3" }),
859
859
  /* @__PURE__ */ e.jsxs(ie, { className: "", controls: h, children: [
860
860
  /* @__PURE__ */ e.jsx(ie.Content, { onClick: A, children: /* @__PURE__ */ e.jsx(
861
- Ze,
861
+ et,
862
862
  {
863
863
  className: "pyrion-navigation-drawer-user-card p-0",
864
864
  name: t.user?.name || "",
@@ -879,7 +879,7 @@ const Yt = (t) => {
879
879
  onSessionClick: c,
880
880
  secondarySlot: a,
881
881
  subImageUrlAccessor: i?.sessionCardOptions?.subImageUrlAccessor,
882
- currentSystemId: m,
882
+ currentSystemId: p,
883
883
  userOptionsControls: h
884
884
  }
885
885
  ) })
@@ -904,7 +904,7 @@ const Yt = (t) => {
904
904
  ] })
905
905
  ] })
906
906
  ] });
907
- }, pt = P(Xt, (t, r) => {
907
+ }, ht = P(Xt, (t, r) => {
908
908
  const s = Object.keys(t), a = Object.keys(r);
909
909
  if (s.length !== a.length)
910
910
  return !1;
@@ -917,7 +917,7 @@ const Yt = (t) => {
917
917
  }
918
918
  return t.currentAppSessions !== r.currentAppSessions || t.options !== r.options || t.currentSystemId !== r.currentSystemId || t.userOptionsControls !== r.userOptionsControls || t.mobileAppSwitcherControls !== r.mobileAppSwitcherControls;
919
919
  });
920
- pt.displayName = "PyrionNavigationDrawer.Footer";
920
+ ht.displayName = "PyrionNavigationDrawer.Footer";
921
921
  const Jt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ie, { controls: s, children: [
922
922
  /* @__PURE__ */ e.jsx(ie.Content, { children: typeof r == "function" ? r() : r }),
923
923
  /* @__PURE__ */ e.jsxs(ie.Options, { children: [
@@ -950,7 +950,7 @@ const Jt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ie,
950
950
  const a = x(() => {
951
951
  if (t) {
952
952
  if (s) {
953
- const i = t.find((m) => m._id === s);
953
+ const i = t.find((p) => p._id === s);
954
954
  if (i) return { coverImage: i.coverImage, thumbnail: i.thumbnail };
955
955
  }
956
956
  const l = window.location.origin, d = t.find((i) => i.url === l);
@@ -982,11 +982,11 @@ const Jt = ({ tabs: t, content: r, controls: s }) => /* @__PURE__ */ e.jsxs(ie,
982
982
  ] });
983
983
  }, (t, r) => t.enabled_systems === r.enabled_systems && t.onClick === r.onClick && t.currentSystemId === r.currentSystemId);
984
984
  Pe.displayName = "PyrionNavigationDrawer.SystemLogo";
985
- const ht = P(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: a, mobileAppSwitcherControls: c }) => {
985
+ const bt = P(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: a, mobileAppSwitcherControls: c }) => {
986
986
  const { getIsCollapsed: l } = de(), d = Je(), i = x(() => {
987
987
  if (t) {
988
- const m = l();
989
- t(m);
988
+ const p = l();
989
+ t(p);
990
990
  }
991
991
  }, [t, l]);
992
992
  return d ? /* @__PURE__ */ e.jsx(
@@ -1012,7 +1012,7 @@ const ht = P(({ onSystemLogoClick: t, state: r, currentSystemId: s, tabs: a, mob
1012
1012
  }
1013
1013
  );
1014
1014
  });
1015
- ht.displayName = "PyrionNavigationDrawer.Header";
1015
+ bt.displayName = "PyrionNavigationDrawer.Header";
1016
1016
  const Xe = ({ type: t }) => {
1017
1017
  if (t === "load_more") return /* @__PURE__ */ e.jsx("p", { className: " prometeo-fonts-body-large text-neutral-medium-default w-full text-center py-4", children: "Cargando más ..." });
1018
1018
  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, {}) })) });
@@ -1023,34 +1023,34 @@ const Xe = ({ type: t }) => {
1023
1023
  ] }),
1024
1024
  /* @__PURE__ */ e.jsx(ce, { shape: "rounded", className: "w-20 h-3" })
1025
1025
  ] }), Qt = ({ onCloseClick: t, onMarkAllAsRead: r, notificationsListControls: s, scrollableControls: a }) => {
1026
- const [c, l] = J([]), [d, i] = J("NO_LEIDAS"), [m, h] = J({ isLoading: !1, type: "load_more" }), [b, p] = J({ hasError: !1 }), g = I(/* @__PURE__ */ new Set()), j = I(null), A = I(null), y = x((u, O = "top") => {
1026
+ const [c, l] = J([]), [d, i] = J("NO_LEIDAS"), [p, h] = J({ isLoading: !1, type: "load_more" }), [b, u] = J({ hasError: !1 }), g = I(/* @__PURE__ */ new Set()), j = I(null), A = I(null), y = x((f, O = "top") => {
1027
1027
  l((M) => {
1028
- const F = Array.isArray(u) ? O === "bottom" ? [...M, ...u] : [...u, ...M] : O === "bottom" ? [...M, u] : [u, ...M];
1028
+ const F = Array.isArray(f) ? O === "bottom" ? [...M, ...f] : [...f, ...M] : O === "bottom" ? [...M, f] : [f, ...M];
1029
1029
  return queueMicrotask(() => {
1030
1030
  g.current.forEach((Q) => Q(F, F.length));
1031
1031
  }), F;
1032
1032
  });
1033
- }, []), C = x((u) => (g.current.add(u), () => {
1034
- g.current.delete(u);
1035
- }), []), S = x((u) => {
1033
+ }, []), C = x((f) => (g.current.add(f), () => {
1034
+ g.current.delete(f);
1035
+ }), []), S = x((f) => {
1036
1036
  l((O) => {
1037
- const M = Array.isArray(u) ? O.filter((F) => !u.includes(F._id)) : O.filter((F) => F._id !== u);
1037
+ const M = Array.isArray(f) ? O.filter((F) => !f.includes(F._id)) : O.filter((F) => F._id !== f);
1038
1038
  return queueMicrotask(() => {
1039
1039
  g.current.forEach((F) => F(M, M.length));
1040
1040
  }), M;
1041
1041
  });
1042
1042
  }, []), K = x(() => {
1043
1043
  l([]), queueMicrotask(() => {
1044
- g.current.forEach((u) => u([], 0));
1044
+ g.current.forEach((f) => f([], 0));
1045
1045
  });
1046
- }, []), z = x((u) => {
1047
- l(u), queueMicrotask(() => {
1048
- g.current.forEach((O) => O(u, u.length));
1046
+ }, []), z = x((f) => {
1047
+ l(f), queueMicrotask(() => {
1048
+ g.current.forEach((O) => O(f, f.length));
1049
1049
  });
1050
- }, []), k = x((u, O = "load_more") => {
1051
- h({ isLoading: u, type: O });
1052
- }, []), U = x((u, O) => {
1053
- p({ hasError: u, children: O });
1050
+ }, []), k = x((f, O = "load_more") => {
1051
+ h({ isLoading: f, type: O });
1052
+ }, []), U = x((f, O) => {
1053
+ u({ hasError: f, children: O });
1054
1054
  }, []);
1055
1055
  Re(s, () => ({
1056
1056
  addNewNotification: y,
@@ -1061,16 +1061,16 @@ const Xe = ({ type: t }) => {
1061
1061
  setLoading: k,
1062
1062
  setError: U
1063
1063
  }), [y, C, z, S, K, k, U]);
1064
- const v = (u) => {
1065
- i(u);
1064
+ const v = (f) => {
1065
+ i(f);
1066
1066
  }, q = c.length > 0;
1067
- Ct(() => {
1067
+ jt(() => {
1068
1068
  if (j.current && A.current) {
1069
- const u = j.current.clientHeight;
1070
- A.current.style.setProperty("height", `calc(100vh - ${u}px - 20px)`);
1069
+ const f = j.current.clientHeight;
1070
+ A.current.style.setProperty("height", `calc(100vh - ${f}px - 20px)`);
1071
1071
  }
1072
1072
  }, [j?.current]);
1073
- const G = c.filter((u) => !u.read).length, { isLoading: V, type: X } = m, { hasError: $, children: _ } = b;
1073
+ const G = c.filter((f) => !f.read).length, { isLoading: V, type: X } = p, { hasError: $, children: _ } = b;
1074
1074
  return /* @__PURE__ */ e.jsx(
1075
1075
  "section",
1076
1076
  {
@@ -1079,7 +1079,7 @@ const Xe = ({ type: t }) => {
1079
1079
  /* @__PURE__ */ e.jsxs("div", { ref: j, className: "flex flex-col gap-4", children: [
1080
1080
  /* @__PURE__ */ e.jsxs("div", { className: "w-full h-max flex gap-2 items-center justify-between pt-8 pb-2 pr-2 pl-4 border-b border-neutral-strong-default sticky top-0 z-50 bg-neutral-default-default", children: [
1081
1081
  /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
1082
- /* @__PURE__ */ e.jsx(et, { className: "text-neutral-strong-default", size: 24 }),
1082
+ /* @__PURE__ */ e.jsx(tt, { className: "text-neutral-strong-default", size: 24 }),
1083
1083
  /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: "Notificaciones" })
1084
1084
  ] }),
1085
1085
  /* @__PURE__ */ e.jsx(he, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Fe, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
@@ -1094,12 +1094,12 @@ const Xe = ({ type: t }) => {
1094
1094
  { id: "ALL", title: "Todas" },
1095
1095
  { id: "NO_LEIDAS", title: "Sin leer" }
1096
1096
  ],
1097
- renderTab: (u, O, M, F, Q, ae, Z, ve) => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1097
+ renderTab: (f, O, M, F, Q, ae, Z, ve) => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1098
1098
  /* @__PURE__ */ e.jsx(
1099
1099
  Et,
1100
1100
  {
1101
- id: u.id,
1102
- title: u.title,
1101
+ id: f.id,
1102
+ title: f.title,
1103
1103
  onClick: M,
1104
1104
  isActive: O,
1105
1105
  onIconClick: F,
@@ -1109,7 +1109,7 @@ const Xe = ({ type: t }) => {
1109
1109
  iconSize: ve
1110
1110
  }
1111
1111
  ),
1112
- G > 0 && u.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(Qe, { count: G, className: "absolute top-0 right-0" }))
1112
+ G > 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: G, className: "absolute top-0 right-0" }))
1113
1113
  ] })
1114
1114
  }
1115
1115
  ),
@@ -1134,7 +1134,7 @@ const Xe = ({ type: t }) => {
1134
1134
  children: [
1135
1135
  $ && /* @__PURE__ */ e.jsx("div", { className: "w-full h-full grid place-items-center", children: typeof _ == "function" ? _() : _ }),
1136
1136
  !$ && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1137
- V && X === "skeletons" ? /* @__PURE__ */ e.jsx(Xe, { type: X }) : q ? c?.filter((u) => d === "NO_LEIDAS" ? !u.read : u)?.map((u, O) => /* @__PURE__ */ e.jsx(Ot, { ...u, 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" }),
1137
+ V && X === "skeletons" ? /* @__PURE__ */ e.jsx(Xe, { type: X }) : 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
1138
  V && X === "load_more" && /* @__PURE__ */ e.jsx(Xe, { type: X })
1139
1139
  ] })
1140
1140
  ]
@@ -1150,7 +1150,7 @@ const Xe = ({ type: t }) => {
1150
1150
  children: [
1151
1151
  /* @__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
1152
  /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
1153
- /* @__PURE__ */ e.jsx(tt, { className: "text-neutral-strong-default", size: 24 }),
1153
+ /* @__PURE__ */ e.jsx(rt, { className: "text-neutral-strong-default", size: 24 }),
1154
1154
  /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: s })
1155
1155
  ] }),
1156
1156
  /* @__PURE__ */ e.jsx(he, { onClick: () => t?.(), icon: /* @__PURE__ */ e.jsx(Fe, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
@@ -1159,9 +1159,9 @@ const Xe = ({ type: t }) => {
1159
1159
  ]
1160
1160
  }
1161
1161
  ), er = ({ closeSidebar: t, options: r, helpSection: s, initialSection: a, notificationsListControls: c, scrollableControls: l }, d) => {
1162
- const [i, m] = J(a ?? "notifications");
1162
+ const [i, p] = J(a ?? "notifications");
1163
1163
  Re(d, () => ({
1164
- setActiveSection: m
1164
+ setActiveSection: p
1165
1165
  }));
1166
1166
  const h = () => {
1167
1167
  t();
@@ -1178,8 +1178,8 @@ const Xe = ({ type: t }) => {
1178
1178
  ),
1179
1179
  i === "help" && s && !r?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx(Zt, { onCloseClick: h, children: typeof s == "function" ? s() : s })
1180
1180
  ] });
1181
- }, bt = be(er);
1182
- bt.displayName = "SidebarContent";
1181
+ }, xt = be(er);
1182
+ xt.displayName = "SidebarContent";
1183
1183
  const tr = ({
1184
1184
  options: t,
1185
1185
  helpSection: r,
@@ -1190,7 +1190,7 @@ const tr = ({
1190
1190
  }) => {
1191
1191
  const { closeSidebar: d } = de();
1192
1192
  return /* @__PURE__ */ e.jsx(
1193
- bt,
1193
+ xt,
1194
1194
  {
1195
1195
  ref: s,
1196
1196
  closeSidebar: d,
@@ -1201,17 +1201,17 @@ const tr = ({
1201
1201
  scrollableControls: l
1202
1202
  }
1203
1203
  );
1204
- }, xt = P(tr);
1205
- xt.displayName = "PyrionNavigationDrawer.Sidebar";
1204
+ }, gt = P(tr);
1205
+ gt.displayName = "PyrionNavigationDrawer.Sidebar";
1206
1206
  const rr = ({ navigationControlsRef: t }) => {
1207
1207
  const r = de();
1208
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;
1209
1209
  }, sr = (t) => {
1210
- const { children: r, currentAppSessions: s, resolveUserSecondarySlot: a, resolveSessionSecondarySlot: c, handleNavigation: l, allActions: d, tabs: i, navigationControlsRef: m, sidebarContentRef: h, initialSectionRef: b, userOptionsControls: p, mobileAppSwitcherControls: g, notificationsListControls: j, scrollableControls: A, outletRef: y, ...C } = t;
1210
+ const { children: r, currentAppSessions: s, resolveUserSecondarySlot: a, resolveSessionSecondarySlot: c, handleNavigation: l, allActions: d, tabs: i, navigationControlsRef: p, sidebarContentRef: h, initialSectionRef: b, userOptionsControls: u, mobileAppSwitcherControls: g, notificationsListControls: j, scrollableControls: A, outletRef: y, ...C } = t;
1211
1211
  return /* @__PURE__ */ e.jsxs(re, { disableDragOpen: C.options?.disableDragOpen, outletRef: y, children: [
1212
- /* @__PURE__ */ e.jsx(rr, { navigationControlsRef: m }),
1212
+ /* @__PURE__ */ e.jsx(rr, { navigationControlsRef: p }),
1213
1213
  /* @__PURE__ */ e.jsx(re.Header, { className: "flex flex-col relative w-full select-none", children: /* @__PURE__ */ e.jsx(
1214
- ht,
1214
+ bt,
1215
1215
  {
1216
1216
  onSystemLogoClick: C.onSystemLogoClick,
1217
1217
  state: C.state,
@@ -1221,7 +1221,7 @@ const rr = ({ navigationControlsRef: t }) => {
1221
1221
  }
1222
1222
  ) }, "PL-Header"),
1223
1223
  /* @__PURE__ */ e.jsx(re.Content, { className: "overflow-hidden flex flex-col relative flex-1 md:w-auto", children: /* @__PURE__ */ e.jsx(
1224
- mt,
1224
+ pt,
1225
1225
  {
1226
1226
  navlinks: C.links,
1227
1227
  handleNavigation: l,
@@ -1231,7 +1231,7 @@ const rr = ({ navigationControlsRef: t }) => {
1231
1231
  }
1232
1232
  ) }, "PL-Content"),
1233
1233
  /* @__PURE__ */ e.jsx(re.Footer, { className: "md:min-h-max flex flex-col w-full overflow-hidden max-w-full", children: /* @__PURE__ */ e.jsx(
1234
- pt,
1234
+ ht,
1235
1235
  {
1236
1236
  state: C.state,
1237
1237
  currentAppSessions: s,
@@ -1241,12 +1241,12 @@ const rr = ({ navigationControlsRef: t }) => {
1241
1241
  onLogoutClick: C.onLogoutClick,
1242
1242
  options: C.options,
1243
1243
  currentSystemId: C.currentSystemId,
1244
- userOptionsControls: p,
1244
+ userOptionsControls: u,
1245
1245
  mobileAppSwitcherControls: g,
1246
1246
  onProfileClick: C.onProfileClick
1247
1247
  }
1248
1248
  ) }, "PL-Footer"),
1249
- /* @__PURE__ */ e.jsx(re.Outlet, { children: /* @__PURE__ */ e.jsx(vt, { children: r }) }),
1249
+ /* @__PURE__ */ e.jsx(re.Outlet, { children: /* @__PURE__ */ e.jsx(wt, { children: r }) }),
1250
1250
  /* @__PURE__ */ e.jsx(
1251
1251
  re.Sidebar,
1252
1252
  {
@@ -1254,7 +1254,7 @@ const rr = ({ navigationControlsRef: t }) => {
1254
1254
  modal: C.options?.sidebarOptions?.modal,
1255
1255
  closeOnOverlayClick: C.options?.sidebarOptions?.closeOnOverlayClick,
1256
1256
  children: /* @__PURE__ */ e.jsx(
1257
- xt,
1257
+ gt,
1258
1258
  {
1259
1259
  options: C.options,
1260
1260
  helpSection: C.helpSection,
@@ -1267,41 +1267,41 @@ const rr = ({ navigationControlsRef: t }) => {
1267
1267
  }
1268
1268
  )
1269
1269
  ] });
1270
- }, gt = P(sr, (t, r) => {
1270
+ }, vt = P(sr, (t, r) => {
1271
1271
  const { children: s, ...a } = t, { children: c, ...l } = r, d = Object.keys(a), i = Object.keys(l);
1272
1272
  if (d.length !== i.length)
1273
1273
  return !1;
1274
- for (const m of d) {
1275
- if (!Object.prototype.hasOwnProperty.call(l, m))
1274
+ for (const p of d) {
1275
+ if (!Object.prototype.hasOwnProperty.call(l, p))
1276
1276
  return !1;
1277
- const h = a[m], b = l[m];
1277
+ const h = a[p], b = l[p];
1278
1278
  if (h !== b)
1279
1279
  return !1;
1280
1280
  }
1281
1281
  return !0;
1282
1282
  });
1283
- gt.displayName = "PyrionNavigationDrawer.LayoutBase";
1284
- const vt = P(({ children: t }) => /* @__PURE__ */ e.jsx(re.Outlet, { children: t }));
1285
- vt.displayName = "PyrionNavigationDrawer.IsolatedOutlet";
1286
- const wt = Me(null), Dr = () => {
1287
- const t = jt(wt);
1283
+ vt.displayName = "PyrionNavigationDrawer.LayoutBase";
1284
+ const wt = P(({ children: t }) => /* @__PURE__ */ e.jsx(re.Outlet, { children: t }));
1285
+ wt.displayName = "PyrionNavigationDrawer.IsolatedOutlet";
1286
+ const Nt = Me(null), Dr = () => {
1287
+ const t = St(Nt);
1288
1288
  if (!t)
1289
1289
  throw new Error("usePyrionLayout debe usarse dentro de PyrionLayout");
1290
1290
  return t;
1291
- }, Ar = ({ children: t, helpSection: r, state: s, links: a, onLinkClick: c, onNavigate: l, onLogoutClick: d, actions: i, activeActionId: m, onActionClick: h, tabsProps: b, currentSystemId: p, onSessionClick: g, onSystemLogoClick: j, onProfileClick: A, ...y }) => {
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: u, onSessionClick: g, onSystemLogoClick: j, onProfileClick: A, ...y }) => {
1292
1292
  const S = Object.assign({
1293
1293
  closeDrawerOnNavigate: !0,
1294
1294
  disableDragOpen: {
1295
1295
  sidebar: !0,
1296
1296
  drawer: !1
1297
1297
  }
1298
- }, y.options), K = kt(), z = Je(), k = I(null), U = I(null), v = I({}), q = I(null), G = I("notifications"), V = I(null), X = I(null), $ = I(null), [_, u] = J(0), [O, M] = J(!1), [F, Q] = J(null), ae = x((o) => {
1298
+ }, y.options), K = kt(), z = Je(), k = I(null), U = I(null), v = I({}), q = I(null), G = I("notifications"), V = I(null), X = I(null), $ = I(null), [_, f] = J(0), [O, M] = J(!1), [F, Q] = J(null), ae = x((o) => {
1299
1299
  if (M(!1), c) {
1300
1300
  c(o);
1301
1301
  return;
1302
1302
  }
1303
1303
  const N = window.location.pathname;
1304
- K(o), S.closeDrawerOnNavigate && Nt() && !v.current?.getIsCollapsed?.() && v.current?.toggleCollapse?.(), l && l(N, o);
1304
+ K(o), S.closeDrawerOnNavigate && yt() && !v.current?.getIsCollapsed?.() && v.current?.toggleCollapse?.(), l && l(N, o);
1305
1305
  }, [c, l, K]), Z = (o) => {
1306
1306
  o && window.open(o, "_blank");
1307
1307
  }, we = {
@@ -1361,18 +1361,18 @@ const wt = Me(null), Dr = () => {
1361
1361
  (o) => {
1362
1362
  const N = S?.userCardOptions?.secondarySlot;
1363
1363
  if (!N) return null;
1364
- const B = s.enabled_systems?.find((ne) => ne._id === p), T = { company: s.company, user: s.user, system: B, metadata: o };
1364
+ const B = s.enabled_systems?.find((ne) => ne._id === u), T = { company: s.company, user: s.user, system: B, metadata: o };
1365
1365
  return fe(N, T);
1366
1366
  },
1367
- [p, S?.userCardOptions?.secondarySlot, fe, s.company, s.enabled_systems, s.user]
1368
- ), f = x(
1367
+ [u, S?.userCardOptions?.secondarySlot, fe, s.company, s.enabled_systems, s.user]
1368
+ ), m = x(
1369
1369
  (o) => {
1370
1370
  const N = S?.sessionCardOptions?.secondarySlot || S?.userCardOptions?.secondarySlot;
1371
1371
  if (!N) return null;
1372
- const B = s.enabled_systems?.find((ne) => ne._id === p), T = { company: s.company, user: o.auth_id, metadata: o?.metadata, system: B };
1372
+ const B = s.enabled_systems?.find((ne) => ne._id === u), T = { company: s.company, user: o.auth_id, metadata: o?.metadata, system: B };
1373
1373
  return fe(N, T);
1374
1374
  },
1375
- [p, S?.sessionCardOptions?.secondarySlot, S?.userCardOptions?.secondarySlot, fe, s.company, s.enabled_systems]
1375
+ [u, S?.sessionCardOptions?.secondarySlot, S?.userCardOptions?.secondarySlot, fe, s.company, s.enabled_systems]
1376
1376
  ), w = pe(() => {
1377
1377
  const o = [];
1378
1378
  return v.current.openNotifications = () => {
@@ -1382,13 +1382,13 @@ const wt = Me(null), Dr = () => {
1382
1382
  }, !S?.notificationsDrawerOptions?.hideActionButton && !S?.notificationsDrawerOptions?.hide && o.push({
1383
1383
  id: "notifications",
1384
1384
  title: "Notificaciones",
1385
- icon: et,
1385
+ icon: tt,
1386
1386
  onClick: v.current.openNotifications,
1387
1387
  count: _
1388
1388
  }), !S?.helpSectionDrawerOptions?.hideActionButton && r && !S?.helpSectionDrawerOptions?.hide && o.push({
1389
1389
  id: "help",
1390
1390
  title: "Ayuda",
1391
- icon: tt,
1391
+ icon: rt,
1392
1392
  onClick: v.current.openHelp
1393
1393
  }), S?.configurationActionOptions?.onClick && !S?.configurationActionOptions?.hideActionButton && o.push({
1394
1394
  id: "configuration",
@@ -1446,9 +1446,9 @@ const wt = Me(null), Dr = () => {
1446
1446
  }, []);
1447
1447
  return v.current.addNewNotification = R, v.current.subscribeToNotificationsUpdates = te, v.current.removeNotification = oe, v.current.removeAllNotifications = me, v.current.setNotifications = Ne, v.current.setNotificationsError = Y, 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, se(() => {
1448
1448
  te((o, N) => {
1449
- u(N);
1449
+ f(N);
1450
1450
  });
1451
- }, [te]), /* @__PURE__ */ e.jsxs(wt.Provider, { value: v.current, children: [
1451
+ }, [te]), /* @__PURE__ */ e.jsxs(Nt.Provider, { value: v.current, children: [
1452
1452
  O && F,
1453
1453
  /* @__PURE__ */ e.jsxs("div", { className: "flex h-screen", children: [
1454
1454
  /* @__PURE__ */ e.jsx(
@@ -1458,26 +1458,26 @@ const wt = Me(null), Dr = () => {
1458
1458
  tabs: H,
1459
1459
  activeColor: "var(--neutral-900)",
1460
1460
  currentTabName: Te,
1461
- currentSystemId: p,
1461
+ currentSystemId: u,
1462
1462
  isLoading: !s.enabled_systems || s.enabled_systems.length === 0
1463
1463
  }
1464
1464
  ),
1465
1465
  /* @__PURE__ */ e.jsx(
1466
- gt,
1466
+ vt,
1467
1467
  {
1468
1468
  links: a,
1469
1469
  handleNavigation: ae,
1470
1470
  allActions: E,
1471
- activeActionId: m,
1471
+ activeActionId: p,
1472
1472
  onActionClick: h,
1473
1473
  state: s,
1474
1474
  currentAppSessions: Oe,
1475
1475
  resolveUserSecondarySlot: n,
1476
- resolveSessionSecondarySlot: f,
1476
+ resolveSessionSecondarySlot: m,
1477
1477
  onSessionClick: g,
1478
1478
  onLogoutClick: d,
1479
1479
  options: S,
1480
- currentSystemId: p,
1480
+ currentSystemId: u,
1481
1481
  userOptionsControls: V,
1482
1482
  mobileAppSwitcherControls: X,
1483
1483
  onSystemLogoClick: j,
package/dist/Steps.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
2
  import { c as j } from "./cn-B6yFEsav.js";
3
- import { motion as r } from "framer-motion";
3
+ import { motion as c } from "framer-motion";
4
4
  import N from "react";
5
5
  import { Check as y } from "./Icons/Check.es.js";
6
6
  const b = ({
@@ -29,7 +29,7 @@ const b = ({
29
29
  }
30
30
  ),
31
31
  /* @__PURE__ */ e.jsx(
32
- r.div,
32
+ c.div,
33
33
  {
34
34
  className: "absolute inset-0 rounded-full bg-primary-default-default",
35
35
  initial: {
@@ -54,7 +54,7 @@ const b = ({
54
54
  }
55
55
  ),
56
56
  x && /* @__PURE__ */ e.jsx(
57
- r.div,
57
+ c.div,
58
58
  {
59
59
  className: "absolute inset-0 rounded-full bg-primary-default-default",
60
60
  initial: {
@@ -80,7 +80,7 @@ const b = ({
80
80
  }
81
81
  )
82
82
  ] });
83
- }, S = ({
83
+ }, I = ({
84
84
  steps: n,
85
85
  currentStep: t,
86
86
  orientation: u = "horizontal",
@@ -90,12 +90,12 @@ const b = ({
90
90
  onStepClick: o,
91
91
  allowClickableSteps: p = !1
92
92
  }) => {
93
- const c = u === "horizontal", m = {
93
+ const r = u === "horizontal", m = {
94
94
  sm: {
95
95
  circle: "size-7 aspect-square text-xs",
96
96
  title: "text-sm",
97
97
  description: "text-[11px] w-16",
98
- spacing: c ? "gap-2" : "gap-1",
98
+ spacing: r ? "gap-2" : "gap-1",
99
99
  connectorContainer: "px-2",
100
100
  iconSize: 20
101
101
  },
@@ -103,7 +103,7 @@ const b = ({
103
103
  circle: "w-10 h-10 text-sm",
104
104
  title: "text-base",
105
105
  description: "text-sm w-20",
106
- spacing: c ? "gap-3" : "gap-2",
106
+ spacing: r ? "gap-3" : "gap-2",
107
107
  connectorContainer: "px-2",
108
108
  iconSize: 24
109
109
  },
@@ -111,7 +111,7 @@ const b = ({
111
111
  circle: "w-12 h-12 text-base",
112
112
  title: "text-lg",
113
113
  description: "text-base w-28",
114
- spacing: c ? "gap-4" : "gap-3",
114
+ spacing: r ? "gap-4" : "gap-3",
115
115
  connectorContainer: "px-2",
116
116
  iconSize: 28
117
117
  }
@@ -127,13 +127,13 @@ const b = ({
127
127
  }
128
128
  }, h = (a) => {
129
129
  p && o && o(a);
130
- }, v = c ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
130
+ }, v = r ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
131
131
  return /* @__PURE__ */ e.jsx("div", { className: v, children: n.map((a, l) => {
132
132
  const d = w(l), f = p && o;
133
- return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: c ? /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
133
+ return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: r ? /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
134
134
  /* @__PURE__ */ e.jsxs("div", { className: "w-max flex flex-col items-center relative", children: [
135
135
  /* @__PURE__ */ e.jsx(
136
- r.div,
136
+ c.div,
137
137
  {
138
138
  className: `${g(d)} ${f ? "cursor-pointer" : ""} relative z-10`,
139
139
  initial: { scale: 0.8, opacity: 0 },
@@ -141,11 +141,11 @@ const b = ({
141
141
  transition: { duration: 0.3, delay: l * 0.3 },
142
142
  whileTap: f ? { scale: 0.95 } : {},
143
143
  onClick: () => h(l),
144
- children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
144
+ children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
145
145
  }
146
146
  ),
147
147
  s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: j(
148
- "absolute text-center w-28 -bottom-2 translate-y-full",
148
+ "absolute text-center w-28 -bottom-2 translate-y-full break-normal",
149
149
  m[i].description,
150
150
  "text-gray-400 mt-2 text-center",
151
151
  d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
@@ -159,7 +159,7 @@ const b = ({
159
159
  b,
160
160
  {
161
161
  index: l,
162
- isHorizontal: c,
162
+ isHorizontal: r,
163
163
  currentStep: t,
164
164
  size: i
165
165
  }
@@ -169,7 +169,7 @@ const b = ({
169
169
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-center w-max", children: [
170
170
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center w-full relative", children: [
171
171
  /* @__PURE__ */ e.jsx(
172
- r.div,
172
+ c.div,
173
173
  {
174
174
  className: `${g(d)} ${f ? "cursor-pointer" : ""}`,
175
175
  initial: { scale: 0.8, opacity: 0 },
@@ -177,18 +177,18 @@ const b = ({
177
177
  transition: { duration: 0.3, delay: l * 0.1 },
178
178
  whileTap: f ? { scale: 0.95 } : {},
179
179
  onClick: () => h(l),
180
- children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
180
+ children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
181
181
  }
182
182
  ),
183
183
  s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
184
- r.div,
184
+ c.div,
185
185
  {
186
186
  className: `absolute -right-4 top-1/2 -translate-y-1/2 translate-x-full ml-4 gap-3 flex flex-col w-full ${m[i].spacing} flex h-full`,
187
187
  initial: { opacity: 0, x: -10 },
188
188
  animate: { opacity: 1, x: 0 },
189
189
  transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
190
190
  children: a.description && /* @__PURE__ */ e.jsx("p", { className: j(
191
- "h-full text-start flex items-center justify-start ",
191
+ "h-full text-start flex items-center justify-start break-normal",
192
192
  m[i].description,
193
193
  "text-gray-400",
194
194
  d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
@@ -200,7 +200,7 @@ const b = ({
200
200
  b,
201
201
  {
202
202
  index: l,
203
- isHorizontal: c,
203
+ isHorizontal: r,
204
204
  currentStep: t,
205
205
  size: i
206
206
  }
@@ -209,6 +209,6 @@ const b = ({
209
209
  }) });
210
210
  };
211
211
  export {
212
- S as Steps,
213
- S as default
212
+ I as Steps,
213
+ I as default
214
214
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "4.8.3",
4
+ "version": "4.8.4",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",