prometeo-design-system 1.9.6 → 1.9.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,51 +1,232 @@
1
- import { default as Ne } from "./Avatar.es.js";
2
- import { default as Se } from "./Button.es.js";
3
- import { C as Ie, a as Be } from "./CardProfile-BZajBGbO.js";
4
- import { default as Re } from "./CheckBox.es.js";
5
- import { default as Pe } from "./CheckboxFormik.es.js";
6
- import { default as Te, useDialogControl as ze } from "./DialogModal.es.js";
7
- import { default as Ee, useDrawerDesktop as Oe } from "./DrawerDesktop.es.js";
8
- import { default as We, useDrawerMobile as $e } from "./DrawerMobile.es.js";
9
- import { default as Me } from "./Header.es.js";
10
- import { default as Ve } from "./Input.es.js";
11
- import { default as _e } from "./InputFormik.es.js";
12
- import { InputMultiple as Ze } from "./InputMultiple.es.js";
13
- import { default as Ke } from "./Logo.es.js";
14
- import { Menu as Ye } from "./Menu.es.js";
15
- import { default as tt } from "./Pagination.es.js";
16
- import { ProfilePictureUpload as at } from "./ProfilePictureUpload.es.js";
17
- import { default as nt } from "./ProgressBar.es.js";
18
- import { default as st } from "./Select.es.js";
19
- import { default as ut } from "./SelectFormik.es.js";
20
- import { default as dt } from "./Spinner.es.js";
21
- import { Steps as pt } from "./Steps.es.js";
22
- import { default as xt } from "./SwipeContainer.es.js";
23
- import { Switch as yt } from "./Switch.es.js";
24
- import { Table as vt, TableBody as ht, TableCaption as wt, TableCell as jt, TableFooter as Nt, TableHead as Ct, TableHeader as St, TableRow as kt } from "./Table.es.js";
25
- import { default as Bt } from "./TabLinks.es.js";
26
- import { default as Rt } from "./TextArea.es.js";
27
- import { default as Pt } from "./Tooltip.es.js";
28
- import { u as j } from "./LayoutGeneric-jDE96L2N.js";
29
- import { L as Tt, S as zt } from "./LayoutGeneric-jDE96L2N.js";
30
- import { j as r } from "./jsx-runtime-ByW6EXIE.js";
31
- import { c as l } from "./cn-B6yFEsav.js";
32
- import q, { useRef as p, useState as v, useLayoutEffect as P, createContext as D, useContext as T, forwardRef as N, useCallback as z, useEffect as C } from "react";
33
- import { useGSAP as S } from "@gsap/react";
34
- import u from "gsap";
35
- import { Icons as b } from "./Icons.es.js";
36
- import { motion as d, AnimatePresence as k } from "framer-motion";
37
- import { default as Et } from "./OtpInput.es.js";
38
- import { useDropzone as A } from "react-dropzone";
39
- import { useIsMobile as Ht } from "./useDevice.es.js";
40
- import { DropZone as $t } from "./DropZone.es.js";
41
- const E = (t, e) => {
42
- S(
1
+ import { default as Ue } from "./Avatar.es.js";
2
+ import { default as Ge } from "./Button.es.js";
3
+ import { C as Ze, a as Je } from "./CardProfile-BZajBGbO.js";
4
+ import { default as Qe } from "./CheckBox.es.js";
5
+ import { default as et } from "./CheckboxFormik.es.js";
6
+ import { default as at, useDialogControl as ot } from "./DialogModal.es.js";
7
+ import { default as nt, useDrawerDesktop as it } from "./DrawerDesktop.es.js";
8
+ import { default as lt, useDrawerMobile as ct } from "./DrawerMobile.es.js";
9
+ import { default as dt } from "./Header.es.js";
10
+ import { default as mt } from "./Input.es.js";
11
+ import { default as xt } from "./InputFormik.es.js";
12
+ import { InputMultiple as bt } from "./InputMultiple.es.js";
13
+ import { default as yt } from "./Logo.es.js";
14
+ import { Menu as wt } from "./Menu.es.js";
15
+ import { default as Nt } from "./Pagination.es.js";
16
+ import { ProfilePictureUpload as St } from "./ProfilePictureUpload.es.js";
17
+ import { default as It } from "./ProgressBar.es.js";
18
+ import { default as Bt } from "./Select.es.js";
19
+ import { default as Lt } from "./SelectFormik.es.js";
20
+ import { default as Tt } from "./Spinner.es.js";
21
+ import { Steps as At } from "./Steps.es.js";
22
+ import { default as Dt } from "./SwipeContainer.es.js";
23
+ import { Switch as zt } from "./Switch.es.js";
24
+ import { Table as _t, TableBody as Mt, TableCaption as $t, TableCell as Ft, TableFooter as Ut, TableHead as Vt, TableHeader as Gt, TableRow as Xt } from "./Table.es.js";
25
+ import { default as Jt } from "./TabLinks.es.js";
26
+ import { default as Qt } from "./TextArea.es.js";
27
+ import { default as ea } from "./Tooltip.es.js";
28
+ import { Skeleton as aa } from "./Skeleton.es.js";
29
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
30
+ import { c as u } from "./cn-B6yFEsav.js";
31
+ import _, { useState as I, useMemo as z, useEffect as E, useRef as S, useLayoutEffect as Y, createContext as ee, useContext as te, forwardRef as M, useCallback as ae } from "react";
32
+ import { motion as g, AnimatePresence as $ } from "framer-motion";
33
+ import { u as F } from "./LayoutGeneric-jDE96L2N.js";
34
+ import { L as ra, S as na } from "./LayoutGeneric-jDE96L2N.js";
35
+ import { useGSAP as U } from "@gsap/react";
36
+ import h from "gsap";
37
+ import { Icons as R } from "./Icons.es.js";
38
+ import { default as sa } from "./OtpInput.es.js";
39
+ import { useDropzone as oe } from "react-dropzone";
40
+ import { useIsMobile as ca } from "./useDevice.es.js";
41
+ import { DropZone as da } from "./DropZone.es.js";
42
+ const We = (t) => {
43
+ const [e, n] = I({}), { size: o = "medium", color: r = "default", options: i, value: l, name: c, onChange: x, icon: m, allowExpand: s = !1, disabled: p = !1 } = t, f = Math.max(i.findIndex((d) => d.value === l), 0), b = i.length, k = 9, W = 26, w = {
44
+ small: 120,
45
+ medium: 120,
46
+ large: 120
47
+ }, y = {
48
+ small: 94,
49
+ medium: 94,
50
+ large: 94
51
+ }, D = 16, X = {
52
+ small: { container: "p-2" },
53
+ medium: { container: "p-4 h-[48px] rounded-lg" },
54
+ large: { container: "p-6" }
55
+ }, N = {
56
+ default: {
57
+ switch: "bg-primary-medium-default text-neutral-weak-default ",
58
+ container: "border-neutral-default-default",
59
+ icon: "text-neutral-weak-default",
60
+ option: "text-neutral-medium-default"
61
+ },
62
+ success: {
63
+ switch: "bg-success-medium-default text-neutral-weak-default",
64
+ container: "border-neutral-default-default",
65
+ icon: "text-neutral-weak-default",
66
+ option: "text-neutral-medium-default"
67
+ },
68
+ danger: {
69
+ switch: "bg-error-medium-default text-neutral-weak-default",
70
+ container: "border-neutral-default-default",
71
+ icon: "text-neutral-weak-default",
72
+ option: "text-neutral-medium-default"
73
+ },
74
+ warning: {
75
+ switch: "bg-warning-medium-default text-neutral-weak-default",
76
+ container: "border-neutral-default-default",
77
+ icon: "text-neutral-weak-default",
78
+ option: "text-neutral-medium-default"
79
+ },
80
+ disabled: {
81
+ switch: "bg-primary-medium-disabled text-neutral-strong-disabled",
82
+ container: "border-neutral-default-disabled",
83
+ icon: "text-neutral-strong-disabled",
84
+ option: "text-neutral-strong-disabled"
85
+ }
86
+ }, q = i.find((d) => d.value === l) ?? i[0], L = q.label.length * k + D * 2 + W, O = () => z(() => Object.values(e).reduce((v, j) => v + j, 0) + W, [e]), T = {
87
+ small: s ? O() : (b - 1) * y.small + w.small,
88
+ medium: s ? O() : (b - 1) * y.medium + w.medium,
89
+ large: s ? O() : (b - 1) * y.large + w.large
90
+ };
91
+ E(() => {
92
+ if (!s) return;
93
+ let d = {};
94
+ i.forEach((v, j) => {
95
+ d[j] = v.label.length * k + D * 2;
96
+ }), n(d);
97
+ }, []);
98
+ const Z = z(() => s ? Object.values(e).reduce((d, v, j) => j < f ? d + v : d, 0) : Math.max(f * y[o] - 2, 0), [f]), J = () => {
99
+ if (p) return;
100
+ const d = f === i.length - 1 ? i[0] : i[f + 1];
101
+ x?.(c, d.value);
102
+ }, C = p ? "disabled" : r;
103
+ return /* @__PURE__ */ a.jsxs(
104
+ "button",
105
+ {
106
+ name: c,
107
+ type: "button",
108
+ id: "segmented-button-container",
109
+ style: {
110
+ width: T[o],
111
+ minWidth: T[o],
112
+ maxWidth: T[o]
113
+ },
114
+ className: u(
115
+ X[o].container,
116
+ N[C].container,
117
+ "border-[1px]",
118
+ !p && "cursor-pointer",
119
+ "relative"
120
+ ),
121
+ children: [
122
+ /* @__PURE__ */ a.jsxs(
123
+ g.div,
124
+ {
125
+ id: "segmented-button-switcher",
126
+ animate: {
127
+ left: `${Z}px`,
128
+ width: s ? L : w[o],
129
+ minWidth: s ? L : w[o],
130
+ maxWidth: s ? L : w[o]
131
+ },
132
+ transition: {
133
+ type: "spring",
134
+ stiffness: 260,
135
+ damping: 30
136
+ },
137
+ className: u(
138
+ "absolute top-0 left-0 h-full rounded-[6px] z-30",
139
+ "flex items-center justify-center gap-[2px] p-4",
140
+ N[C].switch
141
+ ),
142
+ onClick: () => {
143
+ !p && J();
144
+ },
145
+ children: [
146
+ m && _.cloneElement(m, { className: u(
147
+ "w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
148
+ N[C].icon
149
+ ) }),
150
+ /* @__PURE__ */ a.jsx(
151
+ "p",
152
+ {
153
+ className: u(
154
+ "prometeo-fonts-label-large ",
155
+ " overflow-hidden overflow-ellipsis text-nowrap ",
156
+ N[C].switch
157
+ ),
158
+ children: q.label
159
+ }
160
+ )
161
+ ]
162
+ }
163
+ ),
164
+ /* @__PURE__ */ a.jsx(
165
+ "div",
166
+ {
167
+ id: "segmented-button-options",
168
+ className: u(
169
+ "absolute top-0 left-0 w-full h-full overflow-hidden",
170
+ "flex justify-center"
171
+ ),
172
+ children: i?.map((d, v) => {
173
+ const j = d.value === (l || i[0].value), K = s ? e[v] + W : w[o], Q = s ? e[v] : y[o], P = j ? K : Q;
174
+ return /* @__PURE__ */ a.jsx(
175
+ g.span,
176
+ {
177
+ id: "segmented-button-option",
178
+ onClick: () => {
179
+ !p && x?.(c, d.value);
180
+ },
181
+ animate: {
182
+ width: P,
183
+ minWidth: P,
184
+ maxWidth: P
185
+ },
186
+ transition: {
187
+ duration: 0.3,
188
+ delay: 0
189
+ },
190
+ className: u(
191
+ "z-20 h-full ",
192
+ "flex items-center justify-center px-3 py-[6px]",
193
+ "prometeo-fonts-label-large text-neutral-medium-default",
194
+ " overflow-hidden ",
195
+ !p && "cursor-pointer"
196
+ ),
197
+ "aria-label": d.label,
198
+ children: /* @__PURE__ */ a.jsx(
199
+ "p",
200
+ {
201
+ style: {
202
+ width: s ? "max-content" : y[o],
203
+ minWidth: s ? "max-content" : y[o],
204
+ maxWidth: s ? "max-content" : y[o]
205
+ },
206
+ className: u(
207
+ "px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full",
208
+ N[C].option
209
+ ),
210
+ children: d.label
211
+ }
212
+ )
213
+ },
214
+ d.value
215
+ );
216
+ })
217
+ }
218
+ )
219
+ ]
220
+ }
221
+ );
222
+ }, re = (t, e) => {
223
+ U(
43
224
  () => {
44
225
  if (!t.current) return;
45
- const o = t.current, a = document.querySelector('[data-main-content="true"]');
226
+ const n = t.current, o = document.querySelector('[data-main-content="true"]');
46
227
  if (e) {
47
- u.fromTo(
48
- o,
228
+ h.fromTo(
229
+ n,
49
230
  {
50
231
  width: "0rem",
51
232
  opacity: 0
@@ -56,14 +237,14 @@ const E = (t, e) => {
56
237
  duration: 0.4,
57
238
  ease: "power2.out"
58
239
  }
59
- ), a && u.to(a, {
60
- marginLeft: o.offsetWidth + "px",
240
+ ), o && h.to(o, {
241
+ marginLeft: n.offsetWidth + "px",
61
242
  duration: 0.4,
62
243
  ease: "power2.out"
63
244
  });
64
- const n = o.querySelectorAll(".secondary-bar-content > *");
65
- n.length > 0 && u.fromTo(
66
- n,
245
+ const r = n.querySelectorAll(".secondary-bar-content > *");
246
+ r.length > 0 && h.fromTo(
247
+ r,
67
248
  {
68
249
  y: 20,
69
250
  opacity: 0
@@ -78,12 +259,12 @@ const E = (t, e) => {
78
259
  }
79
260
  );
80
261
  } else
81
- u.to(o, {
262
+ h.to(n, {
82
263
  width: "0rem",
83
264
  opacity: 0,
84
265
  duration: 0.3,
85
266
  ease: "power2.in"
86
- }), a && u.to(a, {
267
+ }), o && h.to(o, {
87
268
  marginLeft: "0px",
88
269
  duration: 0.3,
89
270
  ease: "power2.in"
@@ -91,104 +272,104 @@ const E = (t, e) => {
91
272
  },
92
273
  { scope: t, dependencies: [e] }
93
274
  );
94
- }, w = ({
275
+ }, H = ({
95
276
  children: t,
96
277
  isOpen: e = !1,
97
- className: o = "",
98
- width: a = "w-96",
99
- action: n,
278
+ className: n = "",
279
+ width: o = "w-96",
280
+ action: r,
100
281
  primarySidebarCollapsed: i,
101
- onClose: s
282
+ onClose: l
102
283
  }) => {
103
- const c = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
104
- return P(() => {
105
- if (x?.current) {
106
- const g = x.current.getBoundingClientRect();
284
+ const c = S(null), [x, m] = I({ left: 0, width: 0 }), { primarySidebarRef: s } = F();
285
+ return Y(() => {
286
+ if (s?.current) {
287
+ const p = s.current.getBoundingClientRect();
107
288
  m({
108
- left: g.width,
109
- width: g.width
289
+ left: p.width,
290
+ width: p.width
110
291
  });
111
292
  }
112
- }, [x, e, i]), E(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
113
- /* @__PURE__ */ r.jsx(
293
+ }, [s, e, i]), re(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
294
+ /* @__PURE__ */ a.jsx(
114
295
  "div",
115
296
  {
116
297
  className: "fixed inset-0 bg-black/95 z-20",
117
298
  style: {
118
- left: f.left
299
+ left: x.left
119
300
  },
120
- onClick: s
301
+ onClick: l
121
302
  }
122
303
  ),
123
- /* @__PURE__ */ r.jsx(
304
+ /* @__PURE__ */ a.jsx(
124
305
  "div",
125
306
  {
126
307
  ref: c,
127
- className: l(
308
+ className: u(
128
309
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
129
310
  "absolute top-0 z-30",
130
- a,
131
- o
311
+ o,
312
+ n
132
313
  ),
133
314
  style: {
134
- left: f.left
315
+ left: x.left
135
316
  },
136
- "data-action": n,
137
- children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
317
+ "data-action": r,
318
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
138
319
  }
139
320
  )
140
321
  ] }) });
141
- }, O = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1", t) }), ue = Object.assign(w, {
142
- Root: w,
143
- Header: O,
144
- Content: H,
145
- Footer: W,
146
- Spacer: $
147
- }), I = D(
322
+ }, ne = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), ie = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), se = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), le = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), Le = Object.assign(H, {
323
+ Root: H,
324
+ Header: ne,
325
+ Content: ie,
326
+ Footer: se,
327
+ Spacer: le
328
+ }), V = ee(
148
329
  void 0
149
- ), ce = () => {
150
- const t = T(I);
330
+ ), Oe = () => {
331
+ const t = te(V);
151
332
  if (!t)
152
333
  throw new Error("useSidebar must be used within a Sidebar.Root");
153
334
  return t;
154
- }, F = ({
335
+ }, ce = ({
155
336
  children: t
156
337
  }) => {
157
- const [e, o] = v(!1), [a, n] = v(!1), i = p(null), s = () => {
158
- o(!1), n(!1);
338
+ const [e, n] = I(!1), [o, r] = I(!1), i = S(null), l = () => {
339
+ n(!1), r(!1);
159
340
  }, c = () => {
160
- o(!0), n(!1);
161
- }, L = {
341
+ n(!0), r(!1);
342
+ }, f = {
162
343
  isCollapsed: e,
163
- setIsCollapsed: o,
344
+ setIsCollapsed: n,
164
345
  navbarRef: i,
165
346
  toggleCollapse: () => {
166
- e ? s() : c();
347
+ e ? l() : c();
167
348
  },
168
- activeSecondaryBar: a ? "notifications" : null,
349
+ activeSecondaryBar: o ? "notifications" : null,
169
350
  openSecondaryBar: () => {
170
- n(!0);
351
+ r(!0);
171
352
  },
172
353
  closeSecondaryBar: () => {
173
- n(!1);
354
+ r(!1);
174
355
  },
175
356
  toggleSecondaryBar: () => {
176
- n((R) => !R);
357
+ r((b) => !b);
177
358
  }
178
359
  };
179
- return /* @__PURE__ */ r.jsx(I.Provider, { value: L, children: t });
180
- }, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t, M = (t, e, o) => {
181
- S(
360
+ return /* @__PURE__ */ a.jsx(V.Provider, { value: f, children: t });
361
+ }, B = (t, e, n, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, n, o) : t, ue = (t, e, n) => {
362
+ U(
182
363
  () => {
183
364
  if (!t.current) return;
184
- const a = u.timeline({
365
+ const o = h.timeline({
185
366
  defaults: { duration: 0.7, ease: "power1.out" }
186
- }), n = {
367
+ }), r = {
187
368
  navbar: t.current,
188
- navLabels: u.utils.toArray(".nav-label"),
189
- navIconWrappers: u.utils.toArray(".nav-icon-wrapper"),
190
- navIcons: u.utils.toArray(".nav-icon"),
191
- navLinkItems: u.utils.toArray(".nav-link-item"),
369
+ navLabels: h.utils.toArray(".nav-label"),
370
+ navIconWrappers: h.utils.toArray(".nav-icon-wrapper"),
371
+ navIcons: h.utils.toArray(".nav-icon"),
372
+ navLinkItems: h.utils.toArray(".nav-link-item"),
192
373
  logoutButton: document.querySelector(".logout-button"),
193
374
  logoutLabel: document.querySelector(".logout-label"),
194
375
  logoutIcon: document.querySelector(".logout-icon"),
@@ -216,14 +397,14 @@ const E = (t, e) => {
216
397
  ),
217
398
  // Secondary bar elements
218
399
  secondaryBar: document.querySelector(".secondary-bar"),
219
- secondaryBarContent: u.utils.toArray(".secondary-bar *"),
220
- badgeInLink: u.utils.toArray(".badge-in-link")
400
+ secondaryBarContent: h.utils.toArray(".secondary-bar *"),
401
+ badgeInLink: h.utils.toArray(".badge-in-link")
221
402
  };
222
- e ? U(a, n) : V(a, n), n.secondaryBar && G(n.secondaryBar);
403
+ e ? de(o, r) : fe(o, r), r.secondaryBar && me(r.secondaryBar);
223
404
  },
224
- { scope: t, dependencies: [e, o] }
405
+ { scope: t, dependencies: [e, n] }
225
406
  );
226
- }, U = (t, e) => {
407
+ }, de = (t, e) => {
227
408
  t.to(e.navbar, {
228
409
  width: "5rem",
229
410
  duration: 0.2,
@@ -282,7 +463,7 @@ const E = (t, e) => {
282
463
  marginLeft: 0
283
464
  },
284
465
  0
285
- ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), y(
466
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), B(
286
467
  t,
287
468
  e.buttonCrevron,
288
469
  {
@@ -295,7 +476,7 @@ const E = (t, e) => {
295
476
  }
296
477
  },
297
478
  0
298
- ), y(
479
+ ), B(
299
480
  t,
300
481
  e.buttonContentChevron,
301
482
  {
@@ -362,7 +543,7 @@ const E = (t, e) => {
362
543
  },
363
544
  -1
364
545
  );
365
- }, V = (t, e) => {
546
+ }, fe = (t, e) => {
366
547
  t.to(e.navbar, { width: "20rem" }, -1).to(
367
548
  e.navLinkItems,
368
549
  {
@@ -372,7 +553,7 @@ const E = (t, e) => {
372
553
  justifyContent: "flex-start"
373
554
  },
374
555
  -1
375
- ), y(
556
+ ), B(
376
557
  t,
377
558
  e.buttonCrevron,
378
559
  {
@@ -385,7 +566,7 @@ const E = (t, e) => {
385
566
  }
386
567
  },
387
568
  0
388
- ), y(
569
+ ), B(
389
570
  t,
390
571
  e.buttonContentChevron,
391
572
  {
@@ -490,45 +671,45 @@ const E = (t, e) => {
490
671
  },
491
672
  0
492
673
  ).to(e.navIcons, { scale: 1 }, 0.3);
493
- }, G = (t, e) => {
494
- u.to(t, {
674
+ }, me = (t, e) => {
675
+ h.to(t, {
495
676
  x: "-100%",
496
677
  opacity: 0,
497
678
  duration: 0.3,
498
679
  ease: "power2.in"
499
680
  });
500
- }, _ = N(
501
- ({ children: t, isCollapsed: e = !1, className: o = "" }, a) => {
502
- const n = p(null), { registerPrimarySidebar: i } = j(), s = z((c) => {
503
- n.current = c, typeof a == "function" ? a(c) : a && (a.current = c);
504
- }, [a]);
505
- return C(() => {
506
- n.current && i(n);
507
- }, [i]), M(n, e, !1), /* @__PURE__ */ r.jsx(
681
+ }, pe = M(
682
+ ({ children: t, isCollapsed: e = !1, className: n = "" }, o) => {
683
+ const r = S(null), { registerPrimarySidebar: i } = F(), l = ae((c) => {
684
+ r.current = c, typeof o == "function" ? o(c) : o && (o.current = c);
685
+ }, [o]);
686
+ return E(() => {
687
+ r.current && i(r);
688
+ }, [i]), ue(r, e, !1), /* @__PURE__ */ a.jsx(
508
689
  "div",
509
690
  {
510
- ref: s,
691
+ ref: l,
511
692
  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
512
- ${e ? "w-16" : "w-64"} ${o}`,
693
+ ${e ? "w-16" : "w-64"} ${n}`,
513
694
  children: t
514
695
  }
515
696
  );
516
697
  }
517
- ), h = N(
518
- (t, e) => /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(_, { ...t, ref: e }) })
698
+ ), A = M(
699
+ (t, e) => /* @__PURE__ */ a.jsx(ce, { children: /* @__PURE__ */ a.jsx(pe, { ...t, ref: e }) })
519
700
  );
520
- h.displayName = "SidebarRoot";
521
- const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
701
+ A.displayName = "SidebarRoot";
702
+ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
522
703
  "button",
523
704
  {
524
705
  onClick: e,
525
706
  title: t ? "Expandir Navbar" : "Contraer Navbar",
526
707
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
527
708
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
528
- children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
709
+ children: t ? /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
529
710
  }
530
- ) }), Z = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), J = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ r.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), Q = ({ className: t, size: e = "auto" }) => {
531
- const o = () => {
711
+ ) }), he = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), be = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("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" }) }), ge = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ye = ({ className: t, size: e = "auto" }) => {
712
+ const n = () => {
532
713
  switch (e) {
533
714
  case "auto":
534
715
  return "flex-grow";
@@ -540,56 +721,56 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
540
721
  return "h-8 w-8";
541
722
  }
542
723
  };
543
- return /* @__PURE__ */ r.jsx("div", { className: l(o(), t) });
544
- }, Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), de = Object.assign(h, {
545
- Root: h,
546
- CollapseButton: X,
547
- Header: Z,
548
- Divider: J,
549
- Content: K,
550
- Spacer: Q,
551
- Footer: Y
552
- }), fe = ({
724
+ return /* @__PURE__ */ a.jsx("div", { className: u(n(), t) });
725
+ }, ve = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), Te = Object.assign(A, {
726
+ Root: A,
727
+ CollapseButton: xe,
728
+ Header: he,
729
+ Divider: be,
730
+ Content: ge,
731
+ Spacer: ye,
732
+ Footer: ve
733
+ }), Pe = ({
553
734
  children: t,
554
735
  icon: e,
555
- label: o,
556
- href: a,
557
- onClick: n,
736
+ label: n,
737
+ href: o,
738
+ onClick: r,
558
739
  isActive: i = !1,
559
- className: s
740
+ className: l
560
741
  }) => {
561
- const c = a ? "a" : "button";
562
- return /* @__PURE__ */ r.jsxs(
742
+ const c = o ? "a" : "button";
743
+ return /* @__PURE__ */ a.jsxs(
563
744
  c,
564
745
  {
565
- href: a,
566
- onClick: n,
567
- className: l(
746
+ href: o,
747
+ onClick: r,
748
+ className: u(
568
749
  "nav-link-item",
569
750
  "flex items-center w-full px-3 py-2 text-left",
570
751
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
571
752
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
572
753
  i && "bg-neutral-medium-default",
573
- s
754
+ l
574
755
  ),
575
756
  children: [
576
- e && /* @__PURE__ */ r.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ r.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
577
- o && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
757
+ 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 }) }),
758
+ n && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: n }),
578
759
  t
579
760
  ]
580
761
  }
581
762
  );
582
- }, B = ({
763
+ }, G = ({
583
764
  count: t,
584
765
  maxCount: e = 9,
585
- className: o = "",
586
- size: a = "medium",
587
- variant: n = "primary",
766
+ className: n = "",
767
+ size: o = "medium",
768
+ variant: r = "primary",
588
769
  showZero: i = !1
589
770
  }) => {
590
- const s = t, c = s > e ? `+${e}` : s;
591
- if (s === 0 && !i) return null;
592
- const f = {
771
+ const l = t, c = l > e ? `+${e}` : l;
772
+ if (l === 0 && !i) return null;
773
+ const x = {
593
774
  small: "w-4.5 h-4.5 text-xs ",
594
775
  medium: "w-5 h-5 text-xs",
595
776
  large: "w-6 h-6 text-sm"
@@ -600,133 +781,136 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
600
781
  warning: "bg-yellow-500 text-black",
601
782
  danger: "bg-red-500 text-white"
602
783
  };
603
- return /* @__PURE__ */ r.jsx("div", { className: l(
784
+ return /* @__PURE__ */ a.jsx("div", { className: u(
604
785
  "rounded-full flex items-center justify-center font-medium ",
605
- f[a],
606
- m[n],
607
- o
608
- ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
609
- }, pe = ({
786
+ x[o],
787
+ m[r],
788
+ n
789
+ ), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
790
+ }, Ae = ({
610
791
  linkActions: t,
611
792
  onClick: e,
612
- activeAction: o
613
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
614
- d.div,
615
- {
616
- initial: { opacity: 0 },
617
- animate: { opacity: 1 },
618
- transition: {
619
- duration: 0.4,
620
- delay: n * 0.03,
621
- ease: "easeOut"
622
- },
623
- className: "relative flex justify-center w-full items-center px-3",
624
- children: /* @__PURE__ */ r.jsxs(
625
- "button",
626
- {
627
- onClick: () => {
628
- e?.(a.action);
629
- },
630
- className: l(
631
- "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
632
- "transition-all duration-300 ease-out w-full",
633
- "group hover:bg-neutral-medium-selected",
634
- o === a.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
635
- ),
636
- children: [
637
- /* @__PURE__ */ r.jsx(k, { mode: "wait", children: o === a.action && /* @__PURE__ */ r.jsx(
638
- d.div,
639
- {
640
- layoutId: "nav-active-bg",
641
- className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
642
- initial: !1,
643
- animate: { opacity: 1 },
644
- exit: { opacity: 0 },
645
- transition: {
646
- type: "tween",
647
- duration: 0.25,
648
- ease: "easeInOut"
793
+ activeAction: n
794
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, r) => {
795
+ const { isView: i = !1, actionName: l, title: c, icon: x, count: m, viewAccess: s } = o || {}, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), f = n === l;
796
+ return p && /* @__PURE__ */ a.jsx(
797
+ g.div,
798
+ {
799
+ initial: { opacity: 0 },
800
+ animate: { opacity: 1 },
801
+ transition: {
802
+ duration: 0.4,
803
+ delay: r * 0.03,
804
+ ease: "easeOut"
805
+ },
806
+ className: "relative flex justify-center w-full items-center px-3",
807
+ children: /* @__PURE__ */ a.jsxs(
808
+ "button",
809
+ {
810
+ onClick: () => {
811
+ e?.(l);
812
+ },
813
+ className: u(
814
+ "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
815
+ "transition-all duration-300 ease-out w-full",
816
+ "group hover:bg-neutral-medium-selected",
817
+ f ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
818
+ ),
819
+ children: [
820
+ /* @__PURE__ */ a.jsx($, { mode: "wait", children: f && /* @__PURE__ */ a.jsx(
821
+ g.div,
822
+ {
823
+ layoutId: "nav-active-bg",
824
+ className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
825
+ initial: !1,
826
+ animate: { opacity: 1 },
827
+ exit: { opacity: 0 },
828
+ transition: {
829
+ type: "tween",
830
+ duration: 0.25,
831
+ ease: "easeInOut"
832
+ }
649
833
  }
650
- }
651
- ) }),
652
- /* @__PURE__ */ r.jsxs(
653
- d.div,
654
- {
655
- className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
656
- animate: {
657
- x: (o === a.action, 0)
658
- },
659
- transition: {
660
- duration: 0.25,
661
- ease: "easeOut"
662
- },
663
- children: [
664
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
665
- /* @__PURE__ */ r.jsx(
666
- d.div,
667
- {
668
- className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
669
- animate: {
670
- scale: o === a.action ? 1.05 : 1
671
- },
672
- transition: {
673
- duration: 0.25,
674
- ease: "easeOut"
675
- },
676
- children: typeof a.icon == "function" ? a.icon({
677
- size: 24,
678
- className: l(
679
- "nav-icon transition-colors duration-250 ease-out",
680
- o === a.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
681
- )
682
- }) : null
683
- }
684
- ),
685
- /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: a.title })
686
- ] }),
687
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: a.count && a?.count >= 1 ? /* @__PURE__ */ r.jsx(B, { count: a.count, maxCount: 9, className: "" }) : "" })
688
- ]
689
- }
690
- )
691
- ]
692
- }
693
- )
694
- },
695
- n
696
- )) }), me = ({
834
+ ) }),
835
+ /* @__PURE__ */ a.jsxs(
836
+ g.div,
837
+ {
838
+ className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
839
+ animate: {
840
+ x: 0
841
+ },
842
+ transition: {
843
+ duration: 0.25,
844
+ ease: "easeOut"
845
+ },
846
+ children: [
847
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
848
+ /* @__PURE__ */ a.jsx(
849
+ g.div,
850
+ {
851
+ className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
852
+ animate: {
853
+ scale: f ? 1.05 : 1
854
+ },
855
+ transition: {
856
+ duration: 0.25,
857
+ ease: "easeOut"
858
+ },
859
+ children: typeof x == "function" ? x({
860
+ size: 24,
861
+ className: u(
862
+ "nav-icon transition-colors duration-250 ease-out",
863
+ f ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
864
+ )
865
+ }) : null
866
+ }
867
+ ),
868
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
869
+ ] }),
870
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: m && m >= 1 ? /* @__PURE__ */ a.jsx(G, { count: m, maxCount: 9, className: "" }) : "" })
871
+ ]
872
+ }
873
+ )
874
+ ]
875
+ }
876
+ )
877
+ },
878
+ r
879
+ );
880
+ }) }), Ee = ({
697
881
  links: t,
698
882
  isLinkActive: e,
699
- onLinkClick: o
700
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => {
701
- const i = e(a.path) || (a.relatedPaths?.some(
702
- (s) => e(s)
883
+ onLinkClick: n
884
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, r) => {
885
+ const { isView: i = !1, viewAccess: l, path: c, title: x, icon: m, count: s, relatedPaths: p } = o, f = (typeof i == "function" ? i() : i !== !1) && (!l || l()), b = e(c) || (p?.some(
886
+ (k) => e(k)
703
887
  ) ?? !1);
704
- return a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
705
- d.div,
888
+ return f && /* @__PURE__ */ a.jsx(
889
+ g.div,
706
890
  {
707
891
  initial: { opacity: 0 },
708
892
  animate: { opacity: 1 },
709
893
  transition: {
710
894
  duration: 0.4,
711
- delay: n * 0.03,
895
+ delay: r * 0.03,
712
896
  ease: "easeOut"
713
897
  },
714
898
  className: "relative flex justify-center w-full items-center px-3",
715
- children: /* @__PURE__ */ r.jsxs(
899
+ children: /* @__PURE__ */ a.jsxs(
716
900
  "button",
717
901
  {
718
902
  onClick: () => {
719
- o?.(a.path);
903
+ n?.(c);
720
904
  },
721
- className: l(
905
+ className: u(
722
906
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
723
907
  "transition-all duration-300 ease-out w-full",
724
908
  "group hover:bg-neutral-medium-selected",
725
- i ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
909
+ b ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
726
910
  ),
727
911
  children: [
728
- /* @__PURE__ */ r.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ r.jsx(
729
- d.div,
912
+ /* @__PURE__ */ a.jsx($, { mode: "wait", children: b && /* @__PURE__ */ a.jsx(
913
+ g.div,
730
914
  {
731
915
  layoutId: "nav-active-bg",
732
916
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -740,8 +924,8 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
740
924
  }
741
925
  }
742
926
  ) }),
743
- /* @__PURE__ */ r.jsxs(
744
- d.div,
927
+ /* @__PURE__ */ a.jsxs(
928
+ g.div,
745
929
  {
746
930
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
747
931
  animate: {
@@ -752,30 +936,30 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
752
936
  ease: "easeOut"
753
937
  },
754
938
  children: [
755
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
756
- /* @__PURE__ */ r.jsx(
757
- d.div,
939
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
940
+ /* @__PURE__ */ a.jsx(
941
+ g.div,
758
942
  {
759
943
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
760
944
  animate: {
761
- scale: i ? 1.05 : 1
945
+ scale: b ? 1.05 : 1
762
946
  },
763
947
  transition: {
764
948
  duration: 0.25,
765
949
  ease: "easeOut"
766
950
  },
767
- children: typeof a.icon == "function" ? a.icon({
951
+ children: typeof m == "function" ? m({
768
952
  size: 24,
769
- className: l(
953
+ className: u(
770
954
  "nav-icon transition-colors duration-250 ease-out",
771
- i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
955
+ b ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
772
956
  )
773
957
  }) : null
774
958
  }
775
959
  ),
776
- /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: a.title })
960
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: x })
777
961
  ] }),
778
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: a.count && a.count ? /* @__PURE__ */ r.jsx(B, { count: a.count, maxCount: 9, className: "" }) : "" })
962
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s ? /* @__PURE__ */ a.jsx(G, { count: s, maxCount: 9, className: "" }) : "" })
779
963
  ]
780
964
  }
781
965
  )
@@ -783,32 +967,32 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
783
967
  }
784
968
  )
785
969
  },
786
- n
970
+ r
787
971
  );
788
- }) }), xe = ({
972
+ }) }), De = ({
789
973
  isActiveModalNotification: t,
790
974
  setIsActiveModalNotification: e
791
975
  }) => ({ handleNotificationClick: () => {
792
976
  e(!0);
793
- }, isActiveModalNotification: t }), be = (t) => {
794
- const e = p(null);
977
+ }, isActiveModalNotification: t }), qe = (t) => {
978
+ const e = S(null);
795
979
  return {
796
980
  isCollapsed: t,
797
981
  navbarRef: e
798
982
  };
799
- }, ye = ({
983
+ }, ze = ({
800
984
  isCollapsed: t,
801
985
  onToggle: e
802
- }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
986
+ }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
803
987
  "button",
804
988
  {
805
989
  onClick: e,
806
990
  title: t ? "Expandir Navbar" : "Contraer Navbar",
807
991
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
808
992
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
809
- children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
993
+ children: t ? /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
810
994
  }
811
- ) }), ge = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
995
+ ) }), He = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
812
996
  "img",
813
997
  {
814
998
  src: t,
@@ -816,103 +1000,105 @@ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
816
1000
  alt: e ?? ""
817
1001
  }
818
1002
  ) });
819
- function ve({
1003
+ function _e({
820
1004
  onFilesAccepted: t,
821
1005
  onFilesRejected: e,
822
- ...o
1006
+ ...n
823
1007
  }) {
824
- const a = q.useCallback(
825
- (i, s) => {
826
- i.length > 0 && t?.(i), s.length > 0 && e?.(s);
1008
+ const o = _.useCallback(
1009
+ (i, l) => {
1010
+ i.length > 0 && t?.(i), l.length > 0 && e?.(l);
827
1011
  },
828
1012
  [t, e]
829
- ), n = A({
830
- onDrop: a,
831
- ...o
1013
+ ), r = oe({
1014
+ onDrop: o,
1015
+ ...n
832
1016
  });
833
1017
  return {
834
- ...n,
835
- hasErrors: n.fileRejections.length > 0
1018
+ ...r,
1019
+ hasErrors: r.fileRejections.length > 0
836
1020
  };
837
1021
  }
838
- const he = (t, e = !0) => {
839
- const o = p(null);
840
- return C(() => {
1022
+ const Me = (t, e = !0) => {
1023
+ const n = S(null);
1024
+ return E(() => {
841
1025
  if (!e) return;
842
- const a = (n) => {
843
- o.current && !o.current.contains(n.target) && t();
1026
+ const o = (r) => {
1027
+ n.current && !n.current.contains(r.target) && t();
844
1028
  };
845
- return document.addEventListener("mousedown", a, {
1029
+ return document.addEventListener("mousedown", o, {
846
1030
  capture: !0
847
- }), document.addEventListener("touchstart", a, {
1031
+ }), document.addEventListener("touchstart", o, {
848
1032
  capture: !0
849
1033
  }), () => {
850
- document.removeEventListener("mousedown", a, {
1034
+ document.removeEventListener("mousedown", o, {
851
1035
  capture: !0
852
- }), document.removeEventListener("touchstart", a, {
1036
+ }), document.removeEventListener("touchstart", o, {
853
1037
  capture: !0
854
1038
  });
855
1039
  };
856
- }, [t, e]), o;
1040
+ }, [t, e]), n;
857
1041
  };
858
1042
  export {
859
- Ne as Avatar,
860
- B as Badge,
861
- Se as Button,
862
- Ie as CardProfile,
863
- Be as ChangueAccount,
864
- Re as CheckBox,
865
- Pe as CheckboxFormik,
866
- ge as CompanyLogo,
867
- Te as DialogModal,
868
- Ee as DrawerDesktop,
869
- We as DrawerMobile,
870
- $t as DropZone,
871
- Me as Header,
872
- b as Icons,
873
- Ve as Input,
874
- _e as InputFormik,
875
- Ze as InputMultiple,
876
- Tt as LayoutGeneric,
877
- Ke as Logo,
878
- Ye as Menu,
879
- pe as NavBarActions,
880
- ye as NavbarCollapseButton,
881
- me as NavbarLinks,
882
- fe as NavigationLink,
883
- Et as OtpInput,
884
- tt as Pagination,
885
- at as ProfilePictureUpload,
886
- nt as ProgressBar,
887
- ue as SecondaryBar,
888
- st as Select,
889
- ut as SelectFormik,
890
- de as Sidebar,
891
- F as SidebarProvider,
892
- zt as SidebarRefProvider,
893
- dt as Spinner,
894
- pt as Steps,
895
- xt as SwipeContainer,
896
- yt as Switch,
897
- Bt as TabLinks,
898
- vt as Table,
899
- ht as TableBody,
900
- wt as TableCaption,
901
- jt as TableCell,
902
- Nt as TableFooter,
903
- Ct as TableHead,
904
- St as TableHeader,
905
- kt as TableRow,
906
- Rt as TextArea,
907
- Pt as Tooltip,
908
- xe as useActionsNavbar,
909
- he as useClickOutside,
910
- ze as useDialogControl,
911
- Oe as useDrawerDesktop,
912
- $e as useDrawerMobile,
913
- ve as useFileDropzone,
914
- Ht as useIsMobile,
915
- be as useNavbarCollapse,
916
- ce as useSidebar,
917
- j as useSidebarContext
1043
+ Ue as Avatar,
1044
+ G as Badge,
1045
+ Ge as Button,
1046
+ Ze as CardProfile,
1047
+ Je as ChangueAccount,
1048
+ Qe as CheckBox,
1049
+ et as CheckboxFormik,
1050
+ He as CompanyLogo,
1051
+ at as DialogModal,
1052
+ nt as DrawerDesktop,
1053
+ lt as DrawerMobile,
1054
+ da as DropZone,
1055
+ dt as Header,
1056
+ R as Icons,
1057
+ mt as Input,
1058
+ xt as InputFormik,
1059
+ bt as InputMultiple,
1060
+ ra as LayoutGeneric,
1061
+ yt as Logo,
1062
+ wt as Menu,
1063
+ Ae as NavBarActions,
1064
+ ze as NavbarCollapseButton,
1065
+ Ee as NavbarLinks,
1066
+ Pe as NavigationLink,
1067
+ sa as OtpInput,
1068
+ Nt as Pagination,
1069
+ St as ProfilePictureUpload,
1070
+ It as ProgressBar,
1071
+ Le as SecondaryBar,
1072
+ We as SegmentedButton,
1073
+ Bt as Select,
1074
+ Lt as SelectFormik,
1075
+ Te as Sidebar,
1076
+ ce as SidebarProvider,
1077
+ na as SidebarRefProvider,
1078
+ aa as Skeleton,
1079
+ Tt as Spinner,
1080
+ At as Steps,
1081
+ Dt as SwipeContainer,
1082
+ zt as Switch,
1083
+ Jt as TabLinks,
1084
+ _t as Table,
1085
+ Mt as TableBody,
1086
+ $t as TableCaption,
1087
+ Ft as TableCell,
1088
+ Ut as TableFooter,
1089
+ Vt as TableHead,
1090
+ Gt as TableHeader,
1091
+ Xt as TableRow,
1092
+ Qt as TextArea,
1093
+ ea as Tooltip,
1094
+ De as useActionsNavbar,
1095
+ Me as useClickOutside,
1096
+ ot as useDialogControl,
1097
+ it as useDrawerDesktop,
1098
+ ct as useDrawerMobile,
1099
+ _e as useFileDropzone,
1100
+ ca as useIsMobile,
1101
+ qe as useNavbarCollapse,
1102
+ Oe as useSidebar,
1103
+ F as useSidebarContext
918
1104
  };