prometeo-design-system 1.6.6 → 1.6.7

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,425 +1,44 @@
1
- import M from "./Avatar.es.js";
2
- import { default as De } from "./Button.es.js";
3
- import { C as Fe, a as Me } from "./CardProfile-BZajBGbO.js";
4
- import { default as ze } from "./CheckBox.es.js";
5
- import { default as Ye } from "./CheckboxFormik.es.js";
6
- import { default as Ue, useDialogControl as Ve } from "./DialogModal.es.js";
7
- import { default as Ze, useDrawerDesktop as Je } from "./DrawerDesktop.es.js";
8
- import { default as Qe, useDrawerMobile as _e } from "./DrawerMobile.es.js";
9
- import { default as tt } from "./Header.es.js";
10
- import { default as rt } from "./Input.es.js";
11
- import { default as nt } from "./InputFormik.es.js";
12
- import { default as st } from "./Logo.es.js";
13
- import { Menu as ct } from "./Menu.es.js";
14
- import { default as dt } from "./Pagination.es.js";
15
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
16
- import { motion as c, AnimatePresence as $ } from "framer-motion";
17
- import { useRef as C, useState as k, useLayoutEffect as W, createContext as z, useContext as X, forwardRef as T, useCallback as Y, useEffect as A } from "react";
18
- import { default as mt } from "./ProgressBar.es.js";
19
- import { default as xt } from "./Select.es.js";
20
- import { default as gt } from "./SelectFormik.es.js";
21
- import { default as bt } from "./Spinner.es.js";
22
- import { c as f } from "./cn-B6yFEsav.js";
23
- import { Icons as N } from "./Icons.es.js";
24
- import { default as wt } from "./SwipeContainer.es.js";
25
- import { default as Nt } from "./TabLinks.es.js";
26
- import { Table as St, TableBody as kt, TableCaption as It, TableCell as Bt, TableFooter as Lt, TableHead as $t, TableHeader as Rt, TableRow as Pt } from "./Table.es.js";
27
- import { default as Tt } from "./TextArea.es.js";
28
- import { default as Ot } from "./Tooltip.es.js";
29
- import { u as O } from "./LayoutGeneric-jDE96L2N.js";
30
- import { L as Et, S as Ft } from "./LayoutGeneric-jDE96L2N.js";
31
- import { useGSAP as D } from "@gsap/react";
32
- import p from "gsap";
33
- import { default as Wt } from "./OtpInput.es.js";
34
- import { DropZone as Xt } from "./DropZone.es.js";
35
- const H = {
36
- sm: "w-16 h-16",
37
- md: "w-24 h-24",
38
- lg: "w-32 h-32",
39
- xl: "w-40 h-40"
40
- }, U = {
41
- sm: "w-4 h-4",
42
- md: "w-5 h-5",
43
- lg: "w-6 h-6",
44
- xl: "w-8 h-8"
45
- }, V = {
46
- sm: "w-6 h-6",
47
- md: "w-7 h-7",
48
- lg: "w-8 h-8",
49
- xl: "w-10 h-10"
50
- }, G = {
51
- sm: "-bottom-1 -right-0.5",
52
- md: "-bottom-0.5 -right-0.5",
53
- lg: "bottom-1 right-1",
54
- xl: "bottom-3 right-2"
55
- }, R = {
56
- sm: "w-4 h-4",
57
- md: "w-5 h-5",
58
- lg: "w-6 h-6",
59
- xl: "w-7 h-7"
60
- }, Z = {
61
- sm: "-top-0.5 -right-0.5",
62
- md: "-top-1 -right-1",
63
- lg: "-top-1 -right-0",
64
- xl: "top-1 right-1"
65
- };
66
- function je({
67
- imageUrl: a,
68
- fallbackText: e = "S L",
69
- onFileSelect: o,
70
- onEditClick: r,
71
- onRemoveClick: n,
72
- size: i = "lg",
73
- className: u,
74
- disabled: s = !1,
75
- showRemoveButton: m = !0,
76
- acceptedTypes: h = "image/*",
77
- maxFileSize: x = 5 * 1024 * 1024,
78
- onError: g
79
- }) {
80
- const v = C(null), [y, S] = k(!1), l = (w) => w.type.startsWith("image/") ? w.size > x ? (g?.(`La imagen debe ser menor a ${Math.round(x / 1024 / 1024)}MB`), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), d = (w) => {
81
- const B = w.target.files?.[0];
82
- B && (l(B) && o?.(B), w.target.value = "");
83
- }, b = () => {
84
- s || (r ? r() : v.current?.click());
85
- }, j = (w) => {
86
- w.stopPropagation(), !s && n?.();
87
- };
88
- return /* @__PURE__ */ t.jsxs(
89
- "div",
90
- {
91
- onMouseEnter: () => S(!0),
92
- onMouseLeave: () => S(!1),
93
- className: `relative inline-block border-inherit ${u || ""}`,
94
- children: [
95
- /* @__PURE__ */ t.jsx(
96
- "input",
97
- {
98
- ref: v,
99
- type: "file",
100
- accept: h,
101
- onChange: d,
102
- className: "hidden",
103
- disabled: s
104
- }
105
- ),
106
- /* @__PURE__ */ t.jsx(
107
- c.div,
108
- {
109
- className: `
110
- ${H[i]}
111
- rounded-full
112
- overflow-hidden
113
- flex items-center justify-center
114
- relative
115
- ${s ? "opacity-50 cursor-not-allowed" : ""}
116
- `,
117
- children: /* @__PURE__ */ t.jsx(
118
- M,
119
- {
120
- urlImage: a,
121
- fallbackText: e,
122
- sizeImage: i,
123
- sizeFallback: i
124
- }
125
- )
126
- }
127
- ),
128
- /* @__PURE__ */ t.jsx(
129
- c.button,
130
- {
131
- className: `
132
- absolute
133
- ${G[i]}
134
- border-3
135
- border-inherit
136
- ${V[i]}
137
- rounded-lg
138
- bg-primary-default-default
139
- hover:bg-primary-default-hover
140
- transition-all duration-300
141
- flex
142
- items-center
143
- justify-center
144
- cursor-pointer
145
- ${s ? "opacity-50 cursor-not-allowed" : ""}
146
- `,
147
- onClick: b,
148
- disabled: s,
149
- whileTap: s ? {} : { scale: 0.95, transition: { duration: 0.2, ease: "easeInOut" } },
150
- initial: { scale: 0, rotate: -180 },
151
- animate: { scale: 1, rotate: 0 },
152
- children: /* @__PURE__ */ t.jsx(
153
- c.svg,
154
- {
155
- className: `${U[i]} text-white`,
156
- fill: "none",
157
- stroke: "currentColor",
158
- viewBox: "0 0 24 24",
159
- animate: y && !s ? {
160
- x: [0, -1, 0, 1, -1, 0, 1],
161
- y: [0, 1, 0, 1, 0, 1, 1],
162
- rotate: [0, 5, -3, 8, -5, 3, 1],
163
- transition: {
164
- duration: 2,
165
- ease: "easeInOut"
166
- }
167
- } : { x: 0, y: 0, rotate: 0 },
168
- transition: {
169
- duration: 1.2,
170
- repeat: 0,
171
- ease: "easeInOut"
172
- },
173
- children: /* @__PURE__ */ t.jsx(
174
- "path",
175
- {
176
- strokeLinecap: "round",
177
- strokeLinejoin: "round",
178
- strokeWidth: 2,
179
- d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
180
- }
181
- )
182
- }
183
- )
184
- }
185
- ),
186
- /* @__PURE__ */ t.jsx($, { children: a && m && !s && /* @__PURE__ */ t.jsx(
187
- c.button,
188
- {
189
- className: `
190
- absolute
191
- ${Z[i]}
192
- ${R[i]}
193
- rounded-full
194
- shadow-lg
195
- bg-error-light
196
- flex
197
- cursor-pointer
198
- items-center
199
- justify-center
200
- ${s ? "opacity-50 cursor-not-allowed" : ""}
201
- `,
202
- disabled: s,
203
- onClick: j,
204
- initial: { scale: 0, opacity: 0, rotate: -90 },
205
- animate: {
206
- scale: y ? 1 : 0.8,
207
- opacity: y ? 1 : 0,
208
- rotate: 0
209
- },
210
- exit: { scale: 0, opacity: 0, rotate: 90 },
211
- whileTap: { scale: 0.9 },
212
- transition: {
213
- type: "spring",
214
- stiffness: 300,
215
- damping: 25
216
- },
217
- children: /* @__PURE__ */ t.jsx(
218
- c.svg,
219
- {
220
- className: `${R[i]} text-white p-1`,
221
- fill: "none",
222
- stroke: "currentColor",
223
- viewBox: "0 0 24 24",
224
- whileHover: { rotate: 90 },
225
- transition: { duration: 0.2 },
226
- children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })
227
- }
228
- )
229
- }
230
- ) })
231
- ]
232
- }
233
- );
234
- }
235
- const P = ({
236
- index: a,
237
- isHorizontal: e,
238
- currentStep: o
239
- }) => {
240
- const r = a < o, n = a === o - 1;
241
- return /* @__PURE__ */ t.jsxs("div", { className: `relative ${e ? "w-20 h-1" : "w-0.5 h-8"}`, children: [
242
- /* @__PURE__ */ t.jsx(
243
- "div",
244
- {
245
- className: "absolute inset-0 rounded-full bg-neutral-medium-default"
246
- }
247
- ),
248
- /* @__PURE__ */ t.jsx(
249
- c.div,
250
- {
251
- className: "absolute inset-0 rounded-full bg-primary-default-default",
252
- initial: {
253
- scaleX: e ? 0 : 1,
254
- scaleY: e ? 1 : 0,
255
- opacity: 0
256
- },
257
- animate: {
258
- scaleX: r ? 1 : e ? 0 : 1,
259
- scaleY: r || e ? 1 : 0,
260
- opacity: r ? 1 : 0
261
- },
262
- transition: {
263
- duration: 0.2,
264
- ease: "easeInOut",
265
- delay: a * 0.1
266
- },
267
- style: {
268
- originX: e ? 0 : 0.5,
269
- originY: e ? 0.5 : 0
270
- }
271
- }
272
- ),
273
- n && /* @__PURE__ */ t.jsx(
274
- c.div,
275
- {
276
- className: "absolute inset-0 rounded-full bg-primary-default-default",
277
- initial: {
278
- scaleX: e ? 0 : 1,
279
- scaleY: e ? 1 : 0,
280
- opacity: 0
281
- },
282
- animate: {
283
- scaleX: 1,
284
- scaleY: 1,
285
- opacity: [0, 0.3, 0]
286
- },
287
- transition: {
288
- duration: 1.5,
289
- repeat: 1 / 0,
290
- ease: "easeInOut"
291
- },
292
- style: {
293
- originX: e ? 0 : 0.5,
294
- originY: e ? 0.5 : 0,
295
- filter: "blur(4px)"
296
- }
297
- }
298
- )
299
- ] });
300
- }, Ne = ({
301
- steps: a,
302
- currentStep: e,
303
- orientation: o = "horizontal",
304
- variant: r = "default",
305
- size: n = "md",
306
- className: i = "",
307
- onStepClick: u,
308
- allowClickableSteps: s = !1
309
- }) => {
310
- const m = o === "horizontal", h = (l) => ({
311
- sm: { right: "-40px", top: "16px" },
312
- md: { right: "-40px", top: "20px" },
313
- lg: { right: "-40px", top: "24px" }
314
- })[l], x = {
315
- sm: {
316
- circle: "w-8 h-8 text-xs",
317
- title: "text-sm",
318
- description: "text-xs",
319
- spacing: m ? "gap-4" : "gap-1"
320
- },
321
- md: {
322
- circle: "w-10 h-10 text-sm",
323
- title: "text-base",
324
- description: "text-sm",
325
- spacing: m ? "gap-3" : "gap-2"
326
- },
327
- lg: {
328
- circle: "w-12 h-12 text-base",
329
- title: "text-lg",
330
- description: "text-base",
331
- spacing: m ? "gap-4" : "gap-3"
332
- }
333
- }, g = (l) => l < e ? "completed" : l === e ? "current" : "upcoming", v = (l) => {
334
- const d = `${x[n].circle} rounded-full flex items-center justify-center font-medium`;
335
- switch (l) {
336
- case "completed":
337
- return `${d} bg-primary-default-default text-neutral-strong-default shadow-lg`;
338
- case "current":
339
- return `${d} border-3 border-primary text-neutral-strong-default shadow-lg duration-900`;
340
- default:
341
- return `${d} bg-neutral-medium-default text-neutral-medium-default`;
342
- }
343
- }, y = (l) => {
344
- s && u && u(l);
345
- }, S = m ? `flex items-center ${i}` : `space-y-0 ${i}`;
346
- return /* @__PURE__ */ t.jsx("div", { className: S, children: a.map((l, d) => {
347
- const b = g(d), j = s && u;
348
- return /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: m ? /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsxs("div", { className: "w-40 flex flex-col items-center relative", children: [
349
- /* @__PURE__ */ t.jsx(
350
- c.div,
351
- {
352
- className: `${v(b)} ${j ? "cursor-pointer" : ""} relative z-10`,
353
- initial: { scale: 0.8, opacity: 0 },
354
- animate: { scale: 1, opacity: 1 },
355
- transition: { duration: 0.3, delay: d * 0.1 },
356
- whileTap: j ? { scale: 0.95 } : {},
357
- onClick: () => y(d),
358
- children: r === "numbered" || !l.icon ? b === "completed" ? /* @__PURE__ */ t.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ t.jsx(N.Check, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ t.jsx("span", { children: d + 1 }) : l.icon
359
- }
360
- ),
361
- d < a.length - 1 && /* @__PURE__ */ t.jsx(
362
- "div",
363
- {
364
- className: "absolute",
365
- style: h(n),
366
- children: /* @__PURE__ */ t.jsx(
367
- P,
368
- {
369
- index: d,
370
- isHorizontal: m,
371
- currentStep: e
372
- }
373
- )
374
- }
375
- ),
376
- r !== "minimal" && l.description && /* @__PURE__ */ t.jsx("p", { className: f(
377
- x[n].description,
378
- "text-gray-400 mt-2 text-center max-w-full",
379
- b === "current" ? "text-neutral-strong-default font-semibold text-sm" : "text-neutral-medium-default"
380
- ), children: l.description })
381
- ] }) }) : /* @__PURE__ */ t.jsxs("div", { className: "relative flex w-36", children: [
382
- /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center w-full", children: [
383
- /* @__PURE__ */ t.jsx(
384
- c.div,
385
- {
386
- className: `${v(b)} ${j ? "cursor-pointer" : ""}`,
387
- initial: { scale: 0.8, opacity: 0 },
388
- animate: { scale: 1, opacity: 1 },
389
- transition: { duration: 0.3, delay: d * 0.1 },
390
- whileTap: j ? { scale: 0.95 } : {},
391
- onClick: () => y(d),
392
- children: r === "numbered" || !l.icon ? b === "completed" ? /* @__PURE__ */ t.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ t.jsx(N.Check, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ t.jsx("span", { children: d + 1 }) : l.icon
393
- }
394
- ),
395
- d < a.length - 1 && /* @__PURE__ */ t.jsx(
396
- P,
397
- {
398
- index: d,
399
- isHorizontal: m,
400
- currentStep: e
401
- }
402
- )
403
- ] }),
404
- r !== "minimal" && /* @__PURE__ */ t.jsx(
405
- c.div,
406
- {
407
- className: `absolute -right-30 ml-4 top-3 gap-3 flex flex-col w-full ${x[n].spacing} flex h-full`,
408
- initial: { opacity: 0, x: -10 },
409
- animate: { opacity: 1, x: 0 },
410
- transition: { duration: 0.3, delay: d * 0.1 + 0.1 },
411
- children: l.description && /* @__PURE__ */ t.jsx("p", { className: f(x[n].description, "text-gray-400", b === "current" ? "text-neutral-strong-default font-semibold text-sm" : "text-neutral-medium-default"), children: l.description })
412
- }
413
- )
414
- ] }) }, l.id);
415
- }) });
416
- }, J = (a, e) => {
417
- D(
1
+ import { default as ve } from "./Avatar.es.js";
2
+ import { default as we } from "./Button.es.js";
3
+ import { C as Ne, a as Ce } from "./CardProfile-BZajBGbO.js";
4
+ import { default as ke } from "./CheckBox.es.js";
5
+ import { default as Be } from "./CheckboxFormik.es.js";
6
+ import { default as Re, useDialogControl as qe } from "./DialogModal.es.js";
7
+ import { default as Ae, useDrawerDesktop as Te } from "./DrawerDesktop.es.js";
8
+ import { default as Ee, useDrawerMobile as Oe } from "./DrawerMobile.es.js";
9
+ import { default as Fe } from "./Header.es.js";
10
+ import { default as We } from "./Input.es.js";
11
+ import { default as Me } from "./InputFormik.es.js";
12
+ import { default as Ve } from "./Logo.es.js";
13
+ import { Menu as Xe } from "./Menu.es.js";
14
+ import { default as Je } from "./Pagination.es.js";
15
+ import { default as Qe } from "./ProgressBar.es.js";
16
+ import { default as _e } from "./Select.es.js";
17
+ import { default as tt } from "./SelectFormik.es.js";
18
+ import { default as rt } from "./Spinner.es.js";
19
+ import { default as nt } from "./SwipeContainer.es.js";
20
+ import { default as st } from "./TabLinks.es.js";
21
+ import { Table as ct, TableBody as ut, TableCaption as dt, TableCell as ft, TableFooter as pt, TableHead as mt, TableHeader as xt, TableRow as bt } from "./Table.es.js";
22
+ import { default as gt } from "./TextArea.es.js";
23
+ import { default as ht } from "./Tooltip.es.js";
24
+ import { u as j } from "./LayoutGeneric-jDE96L2N.js";
25
+ import { L as jt, S as Nt } from "./LayoutGeneric-jDE96L2N.js";
26
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
27
+ import { c as s } from "./cn-B6yFEsav.js";
28
+ import { useRef as p, useState as v, useLayoutEffect as q, createContext as P, useContext as A, forwardRef as N, useCallback as T, useEffect as C } from "react";
29
+ import { useGSAP as S } from "@gsap/react";
30
+ import c from "gsap";
31
+ import { Icons as b } from "./Icons.es.js";
32
+ import { motion as d, AnimatePresence as k } from "framer-motion";
33
+ import { default as St } from "./OtpInput.es.js";
34
+ import { DropZone as It } from "./DropZone.es.js";
35
+ const D = (t, e) => {
36
+ S(
418
37
  () => {
419
- if (!a.current) return;
420
- const o = a.current, r = document.querySelector('[data-main-content="true"]');
38
+ if (!t.current) return;
39
+ const o = t.current, r = document.querySelector('[data-main-content="true"]');
421
40
  if (e) {
422
- p.fromTo(
41
+ c.fromTo(
423
42
  o,
424
43
  {
425
44
  width: "0rem",
@@ -431,13 +50,13 @@ const P = ({
431
50
  duration: 0.4,
432
51
  ease: "power2.out"
433
52
  }
434
- ), r && p.to(r, {
53
+ ), r && c.to(r, {
435
54
  marginLeft: o.offsetWidth + "px",
436
55
  duration: 0.4,
437
56
  ease: "power2.out"
438
57
  });
439
58
  const n = o.querySelectorAll(".secondary-bar-content > *");
440
- n.length > 0 && p.fromTo(
59
+ n.length > 0 && c.fromTo(
441
60
  n,
442
61
  {
443
62
  y: 20,
@@ -453,92 +72,92 @@ const P = ({
453
72
  }
454
73
  );
455
74
  } else
456
- p.to(o, {
75
+ c.to(o, {
457
76
  width: "0rem",
458
77
  opacity: 0,
459
78
  duration: 0.3,
460
79
  ease: "power2.in"
461
- }), r && p.to(r, {
80
+ }), r && c.to(r, {
462
81
  marginLeft: "0px",
463
82
  duration: 0.3,
464
83
  ease: "power2.in"
465
84
  });
466
85
  },
467
- { scope: a, dependencies: [e] }
86
+ { scope: t, dependencies: [e] }
468
87
  );
469
- }, q = ({
470
- children: a,
88
+ }, w = ({
89
+ children: t,
471
90
  isOpen: e = !1,
472
91
  className: o = "",
473
92
  width: r = "w-96",
474
93
  action: n,
475
94
  primarySidebarCollapsed: i,
476
- onClose: u
95
+ onClose: l
477
96
  }) => {
478
- const s = C(null), [m, h] = k({ left: 0, width: 0 }), { primarySidebarRef: x } = O();
479
- return W(() => {
97
+ const u = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
98
+ return q(() => {
480
99
  if (x?.current) {
481
100
  const g = x.current.getBoundingClientRect();
482
- h({
101
+ m({
483
102
  left: g.width,
484
103
  width: g.width
485
104
  });
486
105
  }
487
- }, [x, e, i]), J(s, e), /* @__PURE__ */ t.jsx(t.Fragment, { children: e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
488
- /* @__PURE__ */ t.jsx(
106
+ }, [x, e, i]), D(u, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
107
+ /* @__PURE__ */ a.jsx(
489
108
  "div",
490
109
  {
491
110
  className: "fixed inset-0 bg-black/95 z-20",
492
111
  style: {
493
- left: m.left
112
+ left: f.left
494
113
  },
495
- onClick: u
114
+ onClick: l
496
115
  }
497
116
  ),
498
- /* @__PURE__ */ t.jsx(
117
+ /* @__PURE__ */ a.jsx(
499
118
  "div",
500
119
  {
501
- ref: s,
502
- className: f(
120
+ ref: u,
121
+ className: s(
503
122
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
504
123
  "absolute top-0 z-30",
505
124
  r,
506
125
  o
507
126
  ),
508
127
  style: {
509
- left: m.left
128
+ left: f.left
510
129
  },
511
130
  "data-action": n,
512
- children: /* @__PURE__ */ t.jsx("div", { className: "secondary-bar-content", children: a })
131
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
513
132
  }
514
133
  )
515
134
  ] }) });
516
- }, K = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: f("h-16 ", e), children: a }), Q = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: f("flex-1 overflow-y-auto p-4", e), children: a }), _ = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: f("p-4 border-t border-neutral-strong-default", e), children: a }), ee = ({ className: a }) => /* @__PURE__ */ t.jsx("div", { className: f("flex-1", a) }), Ce = Object.assign(q, {
517
- Root: q,
518
- Header: K,
519
- Content: Q,
520
- Footer: _,
521
- Spacer: ee
522
- }), E = z(
135
+ }, E = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
136
+ Root: w,
137
+ Header: E,
138
+ Content: O,
139
+ Footer: z,
140
+ Spacer: F
141
+ }), I = P(
523
142
  void 0
524
- ), Se = () => {
525
- const a = X(E);
526
- if (!a)
143
+ ), se = () => {
144
+ const t = A(I);
145
+ if (!t)
527
146
  throw new Error("useSidebar must be used within a Sidebar.Root");
528
- return a;
529
- }, te = ({
530
- children: a
147
+ return t;
148
+ }, H = ({
149
+ children: t
531
150
  }) => {
532
- const [e, o] = k(!1), [r, n] = k(!1), i = C(null), u = () => {
151
+ const [e, o] = v(!1), [r, n] = v(!1), i = p(null), l = () => {
533
152
  o(!1), n(!1);
534
- }, s = () => {
153
+ }, u = () => {
535
154
  o(!0), n(!1);
536
- }, v = {
155
+ }, L = {
537
156
  isCollapsed: e,
538
157
  setIsCollapsed: o,
539
158
  navbarRef: i,
540
159
  toggleCollapse: () => {
541
- e ? u() : s();
160
+ e ? l() : u();
542
161
  },
543
162
  activeSecondaryBar: r ? "notifications" : null,
544
163
  openSecondaryBar: () => {
@@ -548,22 +167,22 @@ const P = ({
548
167
  n(!1);
549
168
  },
550
169
  toggleSecondaryBar: () => {
551
- n((y) => !y);
170
+ n((R) => !R);
552
171
  }
553
172
  };
554
- return /* @__PURE__ */ t.jsx(E.Provider, { value: v, children: a });
555
- }, I = (a, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? a.to(e, o, r) : a, ae = (a, e, o) => {
556
- D(
173
+ return /* @__PURE__ */ a.jsx(I.Provider, { value: L, children: t });
174
+ }, y = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, W = (t, e, o) => {
175
+ S(
557
176
  () => {
558
- if (!a.current) return;
559
- const r = p.timeline({
177
+ if (!t.current) return;
178
+ const r = c.timeline({
560
179
  defaults: { duration: 0.7, ease: "power1.out" }
561
180
  }), n = {
562
- navbar: a.current,
563
- navLabels: p.utils.toArray(".nav-label"),
564
- navIconWrappers: p.utils.toArray(".nav-icon-wrapper"),
565
- navIcons: p.utils.toArray(".nav-icon"),
566
- navLinkItems: p.utils.toArray(".nav-link-item"),
181
+ navbar: t.current,
182
+ navLabels: c.utils.toArray(".nav-label"),
183
+ navIconWrappers: c.utils.toArray(".nav-icon-wrapper"),
184
+ navIcons: c.utils.toArray(".nav-icon"),
185
+ navLinkItems: c.utils.toArray(".nav-link-item"),
567
186
  logoutButton: document.querySelector(".logout-button"),
568
187
  logoutLabel: document.querySelector(".logout-label"),
569
188
  logoutIcon: document.querySelector(".logout-icon"),
@@ -591,15 +210,15 @@ const P = ({
591
210
  ),
592
211
  // Secondary bar elements
593
212
  secondaryBar: document.querySelector(".secondary-bar"),
594
- secondaryBarContent: p.utils.toArray(".secondary-bar *"),
595
- badgeInLink: p.utils.toArray(".badge-in-link")
213
+ secondaryBarContent: c.utils.toArray(".secondary-bar *"),
214
+ badgeInLink: c.utils.toArray(".badge-in-link")
596
215
  };
597
- e ? re(r, n) : oe(r, n), n.secondaryBar && ne(n.secondaryBar);
216
+ e ? $(r, n) : M(r, n), n.secondaryBar && U(n.secondaryBar);
598
217
  },
599
- { scope: a, dependencies: [e, o] }
218
+ { scope: t, dependencies: [e, o] }
600
219
  );
601
- }, re = (a, e) => {
602
- a.to(e.navbar, {
220
+ }, $ = (t, e) => {
221
+ t.to(e.navbar, {
603
222
  width: "5rem",
604
223
  duration: 0.2,
605
224
  ease: "bounce.out"
@@ -657,8 +276,8 @@ const P = ({
657
276
  marginLeft: 0
658
277
  },
659
278
  0
660
- ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), I(
661
- a,
279
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), y(
280
+ t,
662
281
  e.buttonCrevron,
663
282
  {
664
283
  width: 0,
@@ -670,8 +289,8 @@ const P = ({
670
289
  }
671
290
  },
672
291
  0
673
- ), I(
674
- a,
292
+ ), y(
293
+ t,
675
294
  e.buttonContentChevron,
676
295
  {
677
296
  display: "none"
@@ -737,8 +356,8 @@ const P = ({
737
356
  },
738
357
  -1
739
358
  );
740
- }, oe = (a, e) => {
741
- a.to(e.navbar, { width: "20rem" }, -1).to(
359
+ }, M = (t, e) => {
360
+ t.to(e.navbar, { width: "20rem" }, -1).to(
742
361
  e.navLinkItems,
743
362
  {
744
363
  borderRadius: "10px",
@@ -747,8 +366,8 @@ const P = ({
747
366
  justifyContent: "flex-start"
748
367
  },
749
368
  -1
750
- ), I(
751
- a,
369
+ ), y(
370
+ t,
752
371
  e.buttonCrevron,
753
372
  {
754
373
  width: "auto",
@@ -760,8 +379,8 @@ const P = ({
760
379
  }
761
380
  },
762
381
  0
763
- ), I(
764
- a,
382
+ ), y(
383
+ t,
765
384
  e.buttonContentChevron,
766
385
  {
767
386
  display: "flex"
@@ -865,44 +484,44 @@ const P = ({
865
484
  },
866
485
  0
867
486
  ).to(e.navIcons, { scale: 1 }, 0.3);
868
- }, ne = (a, e) => {
869
- p.to(a, {
487
+ }, U = (t, e) => {
488
+ c.to(t, {
870
489
  x: "-100%",
871
490
  opacity: 0,
872
491
  duration: 0.3,
873
492
  ease: "power2.in"
874
493
  });
875
- }, ie = T(
876
- ({ children: a, isCollapsed: e = !1, className: o = "" }, r) => {
877
- const n = C(null), { registerPrimarySidebar: i } = O(), u = Y((s) => {
878
- n.current = s, typeof r == "function" ? r(s) : r && (r.current = s);
494
+ }, V = N(
495
+ ({ children: t, isCollapsed: e = !1, className: o = "" }, r) => {
496
+ const n = p(null), { registerPrimarySidebar: i } = j(), l = T((u) => {
497
+ n.current = u, typeof r == "function" ? r(u) : r && (r.current = u);
879
498
  }, [r]);
880
- return A(() => {
499
+ return C(() => {
881
500
  n.current && i(n);
882
- }, [i]), ae(n, e, !1), /* @__PURE__ */ t.jsx(
501
+ }, [i]), W(n, e, !1), /* @__PURE__ */ a.jsx(
883
502
  "div",
884
503
  {
885
- ref: u,
504
+ ref: l,
886
505
  className: `bg-neutral-default-default hidden overflow-hidden h-screen md:flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0
887
506
  ${e ? "w-16" : "w-64"} ${o}`,
888
- children: a
507
+ children: t
889
508
  }
890
509
  );
891
510
  }
892
- ), L = T(
893
- (a, e) => /* @__PURE__ */ t.jsx(te, { children: /* @__PURE__ */ t.jsx(ie, { ...a, ref: e }) })
511
+ ), h = N(
512
+ (t, e) => /* @__PURE__ */ a.jsx(H, { children: /* @__PURE__ */ a.jsx(V, { ...t, ref: e }) })
894
513
  );
895
- L.displayName = "SidebarRoot";
896
- const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("div", { className: f("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", a && ""), children: /* @__PURE__ */ t.jsx(
514
+ h.displayName = "SidebarRoot";
515
+ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
897
516
  "button",
898
517
  {
899
518
  onClick: e,
900
- title: a ? "Expandir Navbar" : "Contraer Navbar",
901
- "aria-label": a ? "Expandir Navbar" : "Contraer Navbar",
519
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
520
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
902
521
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
903
- children: a ? /* @__PURE__ */ t.jsx(N.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ t.jsx(N.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
522
+ children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
904
523
  }
905
- ) }), le = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: `${e} sidebar-header`, children: a }), ce = ({ className: a }) => /* @__PURE__ */ t.jsx("div", { className: f("px-3 flex justify-center items-center w-full mb-4", a), children: /* @__PURE__ */ t.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), ue = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: e, children: a }), de = ({ className: a, size: e = "auto" }) => {
524
+ ) }), X = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ a.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
906
525
  const o = () => {
907
526
  switch (e) {
908
527
  case "auto":
@@ -915,78 +534,78 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
915
534
  return "h-8 w-8";
916
535
  }
917
536
  };
918
- return /* @__PURE__ */ t.jsx("div", { className: f(o(), a) });
919
- }, fe = ({ children: a, className: e }) => /* @__PURE__ */ t.jsx("div", { className: e, children: a }), ke = Object.assign(L, {
920
- Root: L,
921
- CollapseButton: se,
922
- Header: le,
923
- Divider: ce,
924
- Content: ue,
925
- Spacer: de,
926
- Footer: fe
927
- }), Ie = ({
928
- children: a,
537
+ return /* @__PURE__ */ a.jsx("div", { className: s(o(), t) });
538
+ }, Q = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), le = Object.assign(h, {
539
+ Root: h,
540
+ CollapseButton: G,
541
+ Header: X,
542
+ Divider: Z,
543
+ Content: J,
544
+ Spacer: K,
545
+ Footer: Q
546
+ }), ce = ({
547
+ children: t,
929
548
  icon: e,
930
549
  label: o,
931
550
  href: r,
932
551
  onClick: n,
933
552
  isActive: i = !1,
934
- className: u
553
+ className: l
935
554
  }) => {
936
- const s = r ? "a" : "button";
937
- return /* @__PURE__ */ t.jsxs(
938
- s,
555
+ const u = r ? "a" : "button";
556
+ return /* @__PURE__ */ a.jsxs(
557
+ u,
939
558
  {
940
559
  href: r,
941
560
  onClick: n,
942
- className: f(
561
+ className: s(
943
562
  "nav-link-item",
944
563
  "flex items-center w-full px-3 py-2 text-left",
945
564
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
946
565
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
947
566
  i && "bg-neutral-medium-default",
948
- u
567
+ l
949
568
  ),
950
569
  children: [
951
- e && /* @__PURE__ */ t.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ t.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
952
- o && /* @__PURE__ */ t.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
953
- a
570
+ e && /* @__PURE__ */ a.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ a.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
571
+ o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
572
+ t
954
573
  ]
955
574
  }
956
575
  );
957
- }, F = ({
958
- count: a,
576
+ }, B = ({
577
+ count: t,
959
578
  maxCount: e = 9,
960
579
  className: o = "",
961
580
  size: r = "medium",
962
581
  variant: n = "primary",
963
582
  showZero: i = !1
964
583
  }) => {
965
- const u = a, s = u > e ? `+${e}` : u;
966
- if (u === 0 && !i) return null;
967
- const m = {
584
+ const l = t, u = l > e ? `+${e}` : l;
585
+ if (l === 0 && !i) return null;
586
+ const f = {
968
587
  small: "w-4.5 h-4.5 text-xs ",
969
588
  medium: "w-5 h-5 text-xs",
970
589
  large: "w-6 h-6 text-sm"
971
- }, h = {
590
+ }, m = {
972
591
  primary: "bg-primary-default-default text-neutral-strong-default",
973
592
  secondary: "bg-neutral-medium-default text-neutral-strong-default",
974
593
  success: "bg-green-500 text-white",
975
594
  warning: "bg-yellow-500 text-black",
976
595
  danger: "bg-red-500 text-white"
977
596
  };
978
- return /* @__PURE__ */ t.jsx("div", { className: f(
597
+ return /* @__PURE__ */ a.jsx("div", { className: s(
979
598
  "rounded-full flex items-center justify-center font-medium ",
980
- m[r],
981
- h[n],
599
+ f[r],
600
+ m[n],
982
601
  o
983
- ), children: /* @__PURE__ */ t.jsx("span", { children: s }) });
984
- }, Be = ({
985
- linkActions: a,
602
+ ), children: /* @__PURE__ */ a.jsx("span", { children: u }) });
603
+ }, ue = ({
604
+ linkActions: t,
986
605
  onClick: e,
987
606
  activeAction: o
988
- }) => /* @__PURE__ */ t.jsx("nav", { className: "flex flex-col gap-1", children: a?.map((r, n) => r.isView && r.viewAccess() && /* @__PURE__ */ t.jsx(
989
- c.div,
607
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
608
+ d.div,
990
609
  {
991
610
  initial: { opacity: 0 },
992
611
  animate: { opacity: 1 },
@@ -996,21 +615,21 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
996
615
  ease: "easeOut"
997
616
  },
998
617
  className: "relative flex justify-center w-full items-center px-3",
999
- children: /* @__PURE__ */ t.jsxs(
618
+ children: /* @__PURE__ */ a.jsxs(
1000
619
  "button",
1001
620
  {
1002
621
  onClick: () => {
1003
622
  e?.(r.action);
1004
623
  },
1005
- className: f(
624
+ className: s(
1006
625
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
1007
626
  "transition-all duration-300 ease-out w-full",
1008
627
  "group hover:bg-neutral-medium-selected",
1009
628
  o === r.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
1010
629
  ),
1011
630
  children: [
1012
- /* @__PURE__ */ t.jsx($, { mode: "wait", children: o === r.action && /* @__PURE__ */ t.jsx(
1013
- c.div,
631
+ /* @__PURE__ */ a.jsx(k, { mode: "wait", children: o === r.action && /* @__PURE__ */ a.jsx(
632
+ d.div,
1014
633
  {
1015
634
  layoutId: "nav-active-bg",
1016
635
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -1024,8 +643,8 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1024
643
  }
1025
644
  }
1026
645
  ) }),
1027
- /* @__PURE__ */ t.jsxs(
1028
- c.div,
646
+ /* @__PURE__ */ a.jsxs(
647
+ d.div,
1029
648
  {
1030
649
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
1031
650
  animate: {
@@ -1036,9 +655,9 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1036
655
  ease: "easeOut"
1037
656
  },
1038
657
  children: [
1039
- /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
1040
- /* @__PURE__ */ t.jsx(
1041
- c.div,
658
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
659
+ /* @__PURE__ */ a.jsx(
660
+ d.div,
1042
661
  {
1043
662
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
1044
663
  animate: {
@@ -1050,16 +669,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1050
669
  },
1051
670
  children: typeof r.icon == "function" ? r.icon({
1052
671
  size: 24,
1053
- className: f(
672
+ className: s(
1054
673
  "nav-icon transition-colors duration-250 ease-out",
1055
674
  o === r.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
1056
675
  )
1057
676
  }) : null
1058
677
  }
1059
678
  ),
1060
- /* @__PURE__ */ t.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
679
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
1061
680
  ] }),
1062
- /* @__PURE__ */ t.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ t.jsx(F, { count: r.count, maxCount: 9, className: "" }) : "" })
681
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
1063
682
  ]
1064
683
  }
1065
684
  )
@@ -1068,16 +687,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1068
687
  )
1069
688
  },
1070
689
  n
1071
- )) }), Le = ({
1072
- links: a,
690
+ )) }), de = ({
691
+ links: t,
1073
692
  isLinkActive: e,
1074
693
  onLinkClick: o
1075
- }) => /* @__PURE__ */ t.jsx("nav", { className: "flex flex-col gap-1", children: a?.map((r, n) => {
694
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
1076
695
  const i = e(r.path) || (r.relatedPaths?.some(
1077
- (u) => e(u)
696
+ (l) => e(l)
1078
697
  ) ?? !1);
1079
- return r.isView && r.viewAccess() && /* @__PURE__ */ t.jsx(
1080
- c.div,
698
+ return r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
699
+ d.div,
1081
700
  {
1082
701
  initial: { opacity: 0 },
1083
702
  animate: { opacity: 1 },
@@ -1087,21 +706,21 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1087
706
  ease: "easeOut"
1088
707
  },
1089
708
  className: "relative flex justify-center w-full items-center px-3",
1090
- children: /* @__PURE__ */ t.jsxs(
709
+ children: /* @__PURE__ */ a.jsxs(
1091
710
  "button",
1092
711
  {
1093
712
  onClick: () => {
1094
713
  o?.(r.path);
1095
714
  },
1096
- className: f(
715
+ className: s(
1097
716
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
1098
717
  "transition-all duration-300 ease-out w-full",
1099
718
  "group hover:bg-neutral-medium-selected",
1100
719
  i ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
1101
720
  ),
1102
721
  children: [
1103
- /* @__PURE__ */ t.jsx($, { mode: "wait", children: i && /* @__PURE__ */ t.jsx(
1104
- c.div,
722
+ /* @__PURE__ */ a.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ a.jsx(
723
+ d.div,
1105
724
  {
1106
725
  layoutId: "nav-active-bg",
1107
726
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -1115,8 +734,8 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1115
734
  }
1116
735
  }
1117
736
  ) }),
1118
- /* @__PURE__ */ t.jsxs(
1119
- c.div,
737
+ /* @__PURE__ */ a.jsxs(
738
+ d.div,
1120
739
  {
1121
740
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
1122
741
  animate: {
@@ -1127,9 +746,9 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1127
746
  ease: "easeOut"
1128
747
  },
1129
748
  children: [
1130
- /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
1131
- /* @__PURE__ */ t.jsx(
1132
- c.div,
749
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
750
+ /* @__PURE__ */ a.jsx(
751
+ d.div,
1133
752
  {
1134
753
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
1135
754
  animate: {
@@ -1141,16 +760,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1141
760
  },
1142
761
  children: typeof r.icon == "function" ? r.icon({
1143
762
  size: 24,
1144
- className: f(
763
+ className: s(
1145
764
  "nav-icon transition-colors duration-250 ease-out",
1146
765
  i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
1147
766
  )
1148
767
  }) : null
1149
768
  }
1150
769
  ),
1151
- /* @__PURE__ */ t.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
770
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
1152
771
  ] }),
1153
- /* @__PURE__ */ t.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ t.jsx(F, { count: r.count, maxCount: 9, className: "" }) : "" })
772
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
1154
773
  ]
1155
774
  }
1156
775
  )
@@ -1160,42 +779,42 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1160
779
  },
1161
780
  n
1162
781
  );
1163
- }) }), $e = ({
1164
- isActiveModalNotification: a,
782
+ }) }), fe = ({
783
+ isActiveModalNotification: t,
1165
784
  setIsActiveModalNotification: e
1166
785
  }) => ({ handleNotificationClick: () => {
1167
786
  e(!0);
1168
- }, isActiveModalNotification: a }), Re = (a) => {
1169
- const e = C(null);
787
+ }, isActiveModalNotification: t }), pe = (t) => {
788
+ const e = p(null);
1170
789
  return {
1171
- isCollapsed: a,
790
+ isCollapsed: t,
1172
791
  navbarRef: e
1173
792
  };
1174
- }, Pe = ({
1175
- isCollapsed: a,
793
+ }, me = ({
794
+ isCollapsed: t,
1176
795
  onToggle: e
1177
- }) => /* @__PURE__ */ t.jsx("div", { className: "", children: /* @__PURE__ */ t.jsx(
796
+ }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
1178
797
  "button",
1179
798
  {
1180
799
  onClick: e,
1181
- title: a ? "Expandir Navbar" : "Contraer Navbar",
1182
- "aria-label": a ? "Expandir Navbar" : "Contraer Navbar",
800
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
801
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
1183
802
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
1184
- children: a ? /* @__PURE__ */ t.jsx(N.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ t.jsx(N.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
803
+ children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
1185
804
  }
1186
- ) }), qe = ({ logoUrl: a, companyName: e }) => /* @__PURE__ */ t.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ t.jsx(
805
+ ) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
1187
806
  "img",
1188
807
  {
1189
- src: a,
808
+ src: t,
1190
809
  className: "h-2/3 rounded-full",
1191
810
  alt: e ?? ""
1192
811
  }
1193
- ) }), Te = (a, e = !0) => {
1194
- const o = C(null);
1195
- return A(() => {
812
+ ) }), be = (t, e = !0) => {
813
+ const o = p(null);
814
+ return C(() => {
1196
815
  if (!e) return;
1197
816
  const r = (n) => {
1198
- o.current && !o.current.contains(n.target) && a();
817
+ o.current && !o.current.contains(n.target) && t();
1199
818
  };
1200
819
  return document.addEventListener("mousedown", r, {
1201
820
  capture: !0
@@ -1208,62 +827,60 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
1208
827
  capture: !0
1209
828
  });
1210
829
  };
1211
- }, [a, e]), o;
830
+ }, [t, e]), o;
1212
831
  };
1213
832
  export {
1214
- M as Avatar,
1215
- F as Badge,
1216
- De as Button,
1217
- Fe as CardProfile,
1218
- Me as ChangueAccount,
1219
- ze as CheckBox,
1220
- Ye as CheckboxFormik,
1221
- qe as CompanyLogo,
1222
- Ue as DialogModal,
1223
- Ze as DrawerDesktop,
1224
- Qe as DrawerMobile,
1225
- Xt as DropZone,
1226
- tt as Header,
1227
- N as Icons,
1228
- rt as Input,
1229
- nt as InputFormik,
1230
- Et as LayoutGeneric,
1231
- st as Logo,
1232
- ct as Menu,
1233
- Be as NavBarActions,
1234
- Pe as NavbarCollapseButton,
1235
- Le as NavbarLinks,
1236
- Ie as NavigationLink,
1237
- Wt as OtpInput,
1238
- dt as Pagination,
1239
- je as ProfilePictureUpload,
1240
- mt as ProgressBar,
1241
- Ce as SecondaryBar,
1242
- xt as Select,
1243
- gt as SelectFormik,
1244
- ke as Sidebar,
1245
- te as SidebarProvider,
1246
- Ft as SidebarRefProvider,
1247
- bt as Spinner,
1248
- Ne as Steps,
1249
- wt as SwipeContainer,
1250
- Nt as TabLinks,
1251
- St as Table,
1252
- kt as TableBody,
1253
- It as TableCaption,
1254
- Bt as TableCell,
1255
- Lt as TableFooter,
1256
- $t as TableHead,
1257
- Rt as TableHeader,
1258
- Pt as TableRow,
1259
- Tt as TextArea,
1260
- Ot as Tooltip,
1261
- $e as useActionsNavbar,
1262
- Te as useClickOutside,
1263
- Ve as useDialogControl,
1264
- Je as useDrawerDesktop,
1265
- _e as useDrawerMobile,
1266
- Re as useNavbarCollapse,
1267
- Se as useSidebar,
1268
- O as useSidebarContext
833
+ ve as Avatar,
834
+ B as Badge,
835
+ we as Button,
836
+ Ne as CardProfile,
837
+ Ce as ChangueAccount,
838
+ ke as CheckBox,
839
+ Be as CheckboxFormik,
840
+ xe as CompanyLogo,
841
+ Re as DialogModal,
842
+ Ae as DrawerDesktop,
843
+ Ee as DrawerMobile,
844
+ It as DropZone,
845
+ Fe as Header,
846
+ b as Icons,
847
+ We as Input,
848
+ Me as InputFormik,
849
+ jt as LayoutGeneric,
850
+ Ve as Logo,
851
+ Xe as Menu,
852
+ ue as NavBarActions,
853
+ me as NavbarCollapseButton,
854
+ de as NavbarLinks,
855
+ ce as NavigationLink,
856
+ St as OtpInput,
857
+ Je as Pagination,
858
+ Qe as ProgressBar,
859
+ ie as SecondaryBar,
860
+ _e as Select,
861
+ tt as SelectFormik,
862
+ le as Sidebar,
863
+ H as SidebarProvider,
864
+ Nt as SidebarRefProvider,
865
+ rt as Spinner,
866
+ nt as SwipeContainer,
867
+ st as TabLinks,
868
+ ct as Table,
869
+ ut as TableBody,
870
+ dt as TableCaption,
871
+ ft as TableCell,
872
+ pt as TableFooter,
873
+ mt as TableHead,
874
+ xt as TableHeader,
875
+ bt as TableRow,
876
+ gt as TextArea,
877
+ ht as Tooltip,
878
+ fe as useActionsNavbar,
879
+ be as useClickOutside,
880
+ qe as useDialogControl,
881
+ Te as useDrawerDesktop,
882
+ Oe as useDrawerMobile,
883
+ pe as useNavbarCollapse,
884
+ se as useSidebar,
885
+ j as useSidebarContext
1269
886
  };