prometeo-design-system 2.9.6 → 2.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.
- package/dist/Button.es.js +9 -9
- package/dist/{CardProfile-CsytJlKZ.js → CardProfile-WHoeSibd.js} +8 -8
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +4 -4
- package/dist/DatePicker-CbXUUnv7.js +3568 -0
- package/dist/DatePicker.es.js +3 -3439
- package/dist/DrawerDesktop.d.ts +6 -0
- package/dist/DrawerDesktop.es.js +211 -0
- package/dist/DrawerMobile.d.ts +6 -0
- package/dist/DrawerMobile.es.js +242 -0
- package/dist/DropZone.es.js +5 -5
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-g_xuKWzK.js → HelperComponent-BeNlTMqI.js} +7 -7
- package/dist/Icons/Icons.d.ts +1 -1
- package/dist/Icons.d.ts +0 -4
- package/dist/Icons.es.js +1119 -3
- package/dist/Image.es.js +29 -29
- package/dist/{ImageGallery-Ckxg9OIC.js → ImageGallery-WKzUevOQ.js} +34 -34
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-Cck37DpG.js → Input-Cf8P1QJv.js} +30 -31
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +34 -34
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +43 -43
- package/dist/RadioButton.es.js +1 -1
- package/dist/RecurrentDatePicker.d.ts +2 -0
- package/dist/RecurrentDatePicker.es.js +694 -0
- package/dist/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/RecurrentDatePickerRRule.es.js +1684 -0
- package/dist/{Select-BD5FTxVw.js → Select-DeKi15Iu.js} +31 -32
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Spinner.es.js +172 -46
- package/dist/Steps.es.js +1 -1
- package/dist/Toast.es.js +22 -22
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Drawer/DrawerDesktop.d.ts +1 -0
- package/dist/components/Drawer/useDrawerDesktop.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +4 -1
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +4 -4
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +3 -3
- package/dist/components/Spinner/Spinner.d.ts +6 -6
- package/dist/exports/DrawerDesktop.d.ts +4 -0
- package/dist/exports/DrawerMobile.d.ts +4 -0
- package/dist/exports/Icons.d.ts +1 -2
- package/dist/exports/RecurrentDatePicker.d.ts +5 -0
- package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/exports/Spinner.d.ts +2 -1
- package/dist/index.d.ts +8 -3
- package/dist/prometeo-design-system.es.js +412 -762
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/package.json +19 -6
- package/src/styles/app.css +1 -1313
- package/src/styles/base.css +1331 -0
- package/src/styles/utilities.css +24 -36
- package/dist/Icons-DtFC5DJ7.js +0 -1079
- package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
- package/dist/prometeo-design-system.css +0 -1
|
@@ -1,437 +1,61 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import
|
|
3
|
-
import { C as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { default as
|
|
14
|
-
import {
|
|
15
|
-
import { default as
|
|
16
|
-
import {
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import {
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { useGSAP as
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
className: g,
|
|
54
|
-
direction: l = "left",
|
|
55
|
-
attachToParent: N = !1,
|
|
56
|
-
closeOnOverlayClick: w = !1,
|
|
57
|
-
hideCloseButton: S = !1
|
|
58
|
-
} = t, I = b(w), T = b(n);
|
|
59
|
-
p.current = i, y(() => {
|
|
60
|
-
T.current = n;
|
|
61
|
-
}, [n]), y(() => {
|
|
62
|
-
p.current = i;
|
|
63
|
-
}, [i]), y(() => {
|
|
64
|
-
I.current = w;
|
|
65
|
-
}, [w]);
|
|
66
|
-
const H = (C) => {
|
|
67
|
-
if (!s.current)
|
|
68
|
-
return;
|
|
69
|
-
const z = s.current;
|
|
70
|
-
z && !z.contains(C.target) && I.current && T.current && D();
|
|
71
|
-
};
|
|
72
|
-
y(() => {
|
|
73
|
-
if (!I.current || d || !n)
|
|
74
|
-
return;
|
|
75
|
-
const C = setTimeout(() => {
|
|
76
|
-
document.addEventListener("click", H);
|
|
77
|
-
}, 0);
|
|
78
|
-
return () => {
|
|
79
|
-
clearTimeout(C), document.removeEventListener("click", H);
|
|
80
|
-
};
|
|
81
|
-
}, [w, n, d]), y(() => {
|
|
82
|
-
f.current = t.onClose;
|
|
83
|
-
}, [t.onClose]);
|
|
84
|
-
const L = v((C) => {
|
|
85
|
-
u(C ?? null), a(!0);
|
|
86
|
-
}, []), D = v(() => {
|
|
87
|
-
a(!1), f.current?.(p.current), setTimeout(() => u(null), 300);
|
|
88
|
-
}, []);
|
|
89
|
-
ne(
|
|
90
|
-
e,
|
|
91
|
-
() => ({
|
|
92
|
-
open: L,
|
|
93
|
-
close: D,
|
|
94
|
-
isOpen: n,
|
|
95
|
-
getContext: () => p.current
|
|
96
|
-
}),
|
|
97
|
-
[n, L, D]
|
|
98
|
-
);
|
|
99
|
-
const O = /* @__PURE__ */ r.jsx(
|
|
100
|
-
ve,
|
|
101
|
-
{
|
|
102
|
-
context: i,
|
|
103
|
-
ref: s,
|
|
104
|
-
isOpen: n,
|
|
105
|
-
close: D,
|
|
106
|
-
direction: l,
|
|
107
|
-
modal: d,
|
|
108
|
-
className: g,
|
|
109
|
-
attachToParent: N,
|
|
110
|
-
closeOnOverlayClick: w,
|
|
111
|
-
hideCloseButton: S,
|
|
112
|
-
children: typeof x == "function" ? x(i) : x
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
return N ? O : re(O, document.body);
|
|
116
|
-
});
|
|
117
|
-
be.displayName = "DrawerDesktopV2";
|
|
118
|
-
const ve = ({
|
|
119
|
-
ref: t,
|
|
120
|
-
children: e,
|
|
121
|
-
direction: s = "left",
|
|
122
|
-
isOpen: n,
|
|
123
|
-
close: a,
|
|
124
|
-
modal: i = !1,
|
|
125
|
-
className: u,
|
|
126
|
-
attachToParent: f = !1,
|
|
127
|
-
closeOnOverlayClick: p = !1,
|
|
128
|
-
hideCloseButton: d = !1,
|
|
129
|
-
context: x
|
|
130
|
-
}) => {
|
|
131
|
-
y(() => {
|
|
132
|
-
if (n && i) {
|
|
133
|
-
const w = window.scrollY;
|
|
134
|
-
return document.body.style.position = "fixed", document.body.style.top = `-${w}px`, document.body.style.width = "100%", () => {
|
|
135
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, w);
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
}, [n, i]);
|
|
139
|
-
const g = X("border-neutral-strong-default", {
|
|
140
|
-
variants: {
|
|
141
|
-
isOpen: {
|
|
142
|
-
true: "desktop-drawer-visible",
|
|
143
|
-
false: "desktop-drawer-hidden"
|
|
144
|
-
},
|
|
145
|
-
direction: {
|
|
146
|
-
left: "left-0 border-r-[1px] border-l-0",
|
|
147
|
-
right: "right-0 border-l-[1px] border-r-0"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}), l = X(
|
|
151
|
-
"fixed inset-0 bg-black/60 z-[55] cursor-default",
|
|
152
|
-
{
|
|
153
|
-
variants: {
|
|
154
|
-
isOpen: {
|
|
155
|
-
true: "drawer-overlay-visible",
|
|
156
|
-
false: "drawer-overlay-hidden"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
), N = X("", {
|
|
161
|
-
variants: {
|
|
162
|
-
direction: {
|
|
163
|
-
left: "right-0",
|
|
164
|
-
right: "left-0"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
169
|
-
i && /* @__PURE__ */ r.jsx(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
className: h(l({ isOpen: n })),
|
|
173
|
-
onClick: (w) => {
|
|
174
|
-
w.preventDefault(), w.stopPropagation(), p && a();
|
|
175
|
-
},
|
|
176
|
-
"aria-hidden": "true"
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ r.jsxs(
|
|
180
|
-
"div",
|
|
181
|
-
{
|
|
182
|
-
ref: t,
|
|
183
|
-
className: h(
|
|
184
|
-
"bg-neutral-strong-default h-full top-0 z-60 w-max overflow-y-auto",
|
|
185
|
-
f ? "absolute" : "fixed",
|
|
186
|
-
g({ isOpen: n, direction: s }),
|
|
187
|
-
!d && "p-4 pt-10",
|
|
188
|
-
u
|
|
189
|
-
),
|
|
190
|
-
role: "dialog",
|
|
191
|
-
"aria-modal": i,
|
|
192
|
-
children: [
|
|
193
|
-
!d && /* @__PURE__ */ r.jsx(
|
|
194
|
-
de,
|
|
195
|
-
{
|
|
196
|
-
icon: /* @__PURE__ */ r.jsx(ge, { size: 24 }),
|
|
197
|
-
animate: !1,
|
|
198
|
-
type: "button",
|
|
199
|
-
size: "small",
|
|
200
|
-
variant: "text",
|
|
201
|
-
onClick: a,
|
|
202
|
-
label: "",
|
|
203
|
-
color: "secondary",
|
|
204
|
-
className: h(
|
|
205
|
-
"absolute top-0 z-50",
|
|
206
|
-
N({ direction: s })
|
|
207
|
-
),
|
|
208
|
-
"aria-label": "Close drawer"
|
|
209
|
-
}
|
|
210
|
-
),
|
|
211
|
-
typeof e == "function" ? e(x) : e
|
|
212
|
-
]
|
|
213
|
-
}
|
|
214
|
-
)
|
|
215
|
-
] });
|
|
216
|
-
}, Z = 44, ye = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", Je = P((t, e) => {
|
|
217
|
-
const { children: s, defaultOpen: n = !1, onClose: a, snapPoints: i = ["60%"], setSnap: u, snap: f, attachToParent: p = !1 } = t, [d, x] = E(f || "0%"), [g, l] = E(null), N = b(a), w = b(u), S = b(g), I = b(/* @__PURE__ */ new Set());
|
|
218
|
-
N.current = a, S.current = g, y(() => {
|
|
219
|
-
n && H();
|
|
220
|
-
}, [n]), y(() => {
|
|
221
|
-
w.current = u;
|
|
222
|
-
}, [u]);
|
|
223
|
-
const T = v(() => {
|
|
224
|
-
x("0%"), N.current?.(S.current), setTimeout(() => l(null), 300);
|
|
225
|
-
}, []), H = v((C, z) => {
|
|
226
|
-
x(C || i[0] || "60%"), l(z ?? null);
|
|
227
|
-
}, [i]), L = oe(() => d !== "0%", [d]);
|
|
228
|
-
y(() => {
|
|
229
|
-
I.current.forEach((C) => {
|
|
230
|
-
try {
|
|
231
|
-
C(L);
|
|
232
|
-
} catch {
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}, [L]), ne(e, () => ({
|
|
236
|
-
open: H,
|
|
237
|
-
close: T,
|
|
238
|
-
isOpen: L,
|
|
239
|
-
subscribeOpenChange: (C) => (I.current.add(C), () => {
|
|
240
|
-
I.current.delete(C);
|
|
241
|
-
}),
|
|
242
|
-
getContext: () => S.current
|
|
243
|
-
}), [H, T, L]);
|
|
244
|
-
const D = f || d;
|
|
245
|
-
return p ? /* @__PURE__ */ r.jsx(ee, { ...t, snap: D, setSnap: x, context: g, children: s }) : re(/* @__PURE__ */ r.jsx(ee, { ...t, snap: D, setSnap: x, context: g, children: s }), document.body);
|
|
246
|
-
}), ee = ({ children: t, attachToParent: e = !1, className: s, snap: n, snapPoints: a = ["60%"], setSnap: i, hideOnClose: u = !1, unmountChildrenOnClose: f = !1, header: p, modal: d = !1, closeOnOverlayClick: x = !1, context: g }) => {
|
|
247
|
-
const l = b(null), N = b(null), w = b(null), S = b(null), I = b(null), T = v(() => {
|
|
248
|
-
if (!l.current) return [];
|
|
249
|
-
const o = e && l.current.parentElement?.offsetHeight || window.innerHeight;
|
|
250
|
-
return a?.map((c) => typeof c == "string" && c.endsWith("%") ? parseFloat(c) > 100 ? o : parseFloat(c) / 100 * o : typeof c == "string" && c.endsWith("px") ? parseFloat(c) : typeof c == "number" && c >= 0 && c <= 1 ? c * o : typeof c == "number" ? c : 0) || [];
|
|
251
|
-
}, [a, e]), H = v((o, c) => {
|
|
252
|
-
const m = T();
|
|
253
|
-
if (m.length === 0) return o;
|
|
254
|
-
if (Math.abs(c) > 0.05)
|
|
255
|
-
if (c > 0) {
|
|
256
|
-
const k = m.filter((j) => j < o);
|
|
257
|
-
return k.length > 0 ? Math.max(...k) : u ? 0 : Z;
|
|
258
|
-
} else {
|
|
259
|
-
const k = m.filter((j) => j > o);
|
|
260
|
-
if (k.length > 0)
|
|
261
|
-
return Math.min(...k);
|
|
262
|
-
}
|
|
263
|
-
return m.reduce((k, j) => Math.abs(j - o) < Math.abs(k - o) ? j : k);
|
|
264
|
-
}, [T]), L = v((o) => {
|
|
265
|
-
if (i && a) {
|
|
266
|
-
const c = e && l.current?.parentElement?.offsetHeight || window.innerHeight, m = o <= Z ? "0%" : `${Math.round(o / c * 100)}%`;
|
|
267
|
-
i(m);
|
|
268
|
-
}
|
|
269
|
-
}, [i, a, e]), D = v((o) => {
|
|
270
|
-
l.current && (l.current.style.transition = ye, l.current.style.height = `${o}px`);
|
|
271
|
-
}, [i, a, e]), O = v(() => {
|
|
272
|
-
if (I.current && e) {
|
|
273
|
-
const { scrollY: o } = I.current;
|
|
274
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, o), I.current = null;
|
|
275
|
-
}
|
|
276
|
-
}, [e]);
|
|
277
|
-
y(() => () => {
|
|
278
|
-
O();
|
|
279
|
-
}, [O]), y(() => {
|
|
280
|
-
if (!l.current || !n) return;
|
|
281
|
-
const o = e && l.current.parentElement?.offsetHeight || window.innerHeight;
|
|
282
|
-
let c = 0;
|
|
283
|
-
typeof n == "string" && n.endsWith("%") ? parseFloat(n) <= 0 ? c = u ? 0 : Z : c = parseFloat(n) / 100 * o : typeof n == "string" && n.endsWith("px") ? c = parseFloat(n) : typeof n == "number" && (n >= 0 && n <= 1 ? c = n * o : c = n), D(c);
|
|
284
|
-
}, [n, e]);
|
|
285
|
-
const C = v((o) => {
|
|
286
|
-
if (!l.current) return;
|
|
287
|
-
const c = o.touches[0], m = l.current.offsetHeight;
|
|
288
|
-
S.current = {
|
|
289
|
-
isDragging: !1,
|
|
290
|
-
startY: c.clientY,
|
|
291
|
-
startHeight: m,
|
|
292
|
-
lastY: c.clientY,
|
|
293
|
-
lastTime: Date.now(),
|
|
294
|
-
velocity: 0
|
|
295
|
-
};
|
|
296
|
-
}, []), z = v((o) => {
|
|
297
|
-
if (!l.current) return;
|
|
298
|
-
const c = o, m = l.current.offsetHeight;
|
|
299
|
-
S.current = {
|
|
300
|
-
isDragging: !1,
|
|
301
|
-
startY: c.clientY,
|
|
302
|
-
startHeight: m,
|
|
303
|
-
lastY: c.clientY,
|
|
304
|
-
lastTime: Date.now(),
|
|
305
|
-
velocity: 0
|
|
306
|
-
};
|
|
307
|
-
}, []), W = v((o) => {
|
|
308
|
-
if (!S.current || !l.current) return;
|
|
309
|
-
const c = o.touches[0], m = S.current, M = m.startY - c.clientY, k = m.isDragging || Math.abs(M) > 5;
|
|
310
|
-
if (!m.isDragging && k && (m.isDragging = !0, e)) {
|
|
311
|
-
const j = window.scrollY;
|
|
312
|
-
I.current = { scrollY: j }, document.body.style.position = "fixed", document.body.style.top = `-${j}px`, document.body.style.width = "100%";
|
|
313
|
-
}
|
|
314
|
-
if (k) {
|
|
315
|
-
o.preventDefault();
|
|
316
|
-
const j = Date.now(), q = j - m.lastTime;
|
|
317
|
-
if (q > 0) {
|
|
318
|
-
const _ = (c.clientY - m.lastY) / q;
|
|
319
|
-
m.velocity = m.velocity * 0.8 + _ * 0.2;
|
|
320
|
-
}
|
|
321
|
-
m.lastY = c.clientY, m.lastTime = j;
|
|
322
|
-
const G = m.startHeight + M, V = e && l.current.parentElement?.offsetHeight || window.innerHeight, U = Math.max(0, Math.min(G, V));
|
|
323
|
-
l.current.style.transition = "none", l.current.style.height = `${U}px`;
|
|
324
|
-
}
|
|
325
|
-
}, [e]), K = v((o) => {
|
|
326
|
-
if (!S.current || !l.current) return;
|
|
327
|
-
const c = o, m = S.current, M = m.startY - c.clientY, k = m.isDragging || Math.abs(M) > 5;
|
|
328
|
-
if (!m.isDragging && k && (m.isDragging = !0, e)) {
|
|
329
|
-
const j = window.scrollY;
|
|
330
|
-
I.current = { scrollY: j }, document.body.style.position = "fixed", document.body.style.top = `-${j}px`, document.body.style.width = "100%";
|
|
331
|
-
}
|
|
332
|
-
if (k) {
|
|
333
|
-
o.preventDefault();
|
|
334
|
-
const j = Date.now(), q = j - m.lastTime;
|
|
335
|
-
if (q > 0) {
|
|
336
|
-
const _ = (c.clientY - m.lastY) / q;
|
|
337
|
-
m.velocity = m.velocity * 0.8 + _ * 0.2;
|
|
338
|
-
}
|
|
339
|
-
m.lastY = c.clientY, m.lastTime = j;
|
|
340
|
-
const G = m.startHeight + M, V = e && l.current.parentElement?.offsetHeight || window.innerHeight, U = Math.max(0, Math.min(G, V));
|
|
341
|
-
l.current.style.transition = "none", l.current.style.height = `${U}px`;
|
|
342
|
-
}
|
|
343
|
-
}, [e]), B = v(() => {
|
|
344
|
-
if (!S.current || !l.current) return;
|
|
345
|
-
const o = S.current;
|
|
346
|
-
if (o.isDragging) {
|
|
347
|
-
O();
|
|
348
|
-
const c = l.current.offsetHeight, m = H(c, o.velocity);
|
|
349
|
-
L(m);
|
|
350
|
-
}
|
|
351
|
-
S.current = null;
|
|
352
|
-
}, [H, D, O]);
|
|
353
|
-
y(() => {
|
|
354
|
-
const o = w.current;
|
|
355
|
-
if (o)
|
|
356
|
-
return o.addEventListener("touchstart", C, { passive: !1 }), o.addEventListener("touchmove", W, { passive: !1 }), o.addEventListener("touchend", B), o.addEventListener("touchcancel", B), o.addEventListener("mousedown", z, { passive: !1 }), o.addEventListener("mousemove", K, { passive: !1 }), o.addEventListener("mouseup", B), o.addEventListener("mouseleave", B), () => {
|
|
357
|
-
o.removeEventListener("touchstart", C), o.removeEventListener("touchmove", W), o.removeEventListener("touchend", B), o.removeEventListener("touchcancel", B), o.removeEventListener("mousedown", z), o.removeEventListener("mousemove", K), o.removeEventListener("mouseup", B), o.removeEventListener("mouseleave", B);
|
|
358
|
-
};
|
|
359
|
-
}, [C, W, B]);
|
|
360
|
-
const A = oe(() => n !== "0%", [n]), [ue, Q] = E(() => f ? n !== "0%" : !0);
|
|
361
|
-
return y(() => {
|
|
362
|
-
f && A && Q(!0);
|
|
363
|
-
}, [A, f]), y(() => {
|
|
364
|
-
if (!f) return;
|
|
365
|
-
const o = l.current;
|
|
366
|
-
if (!o) return;
|
|
367
|
-
const c = (m) => {
|
|
368
|
-
m.propertyName === "height" && !A && n === "0%" && Q(!1);
|
|
369
|
-
};
|
|
370
|
-
return o.addEventListener("transitionend", c), () => {
|
|
371
|
-
o.removeEventListener("transitionend", c);
|
|
372
|
-
};
|
|
373
|
-
}, [A, n, f]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
374
|
-
d && /* @__PURE__ */ r.jsx(
|
|
375
|
-
"div",
|
|
376
|
-
{
|
|
377
|
-
className: h(A ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
|
|
378
|
-
onClick: (o) => {
|
|
379
|
-
o.preventDefault(), o.stopPropagation(), x && L(0);
|
|
380
|
-
},
|
|
381
|
-
"aria-hidden": "true"
|
|
382
|
-
}
|
|
383
|
-
),
|
|
384
|
-
/* @__PURE__ */ r.jsxs(
|
|
385
|
-
"div",
|
|
386
|
-
{
|
|
387
|
-
ref: l,
|
|
388
|
-
className: h(
|
|
389
|
-
e ? "absolute" : "fixed",
|
|
390
|
-
"z-60 bottom-0 w-full overflow-hidden",
|
|
391
|
-
"bg-neutral-default-default",
|
|
392
|
-
"border-t border-neutral-strong-default rounded-t-[12px]",
|
|
393
|
-
A ? "" : "border-neutral-weak",
|
|
394
|
-
s,
|
|
395
|
-
"flex flex-col items-center",
|
|
396
|
-
"touch-none select-none"
|
|
397
|
-
),
|
|
398
|
-
children: [
|
|
399
|
-
/* @__PURE__ */ r.jsx(
|
|
400
|
-
"div",
|
|
401
|
-
{
|
|
402
|
-
ref: w,
|
|
403
|
-
className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit!",
|
|
404
|
-
children: /* @__PURE__ */ r.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
|
|
405
|
-
}
|
|
406
|
-
),
|
|
407
|
-
typeof p == "string" ? /* @__PURE__ */ r.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: p }) : p,
|
|
408
|
-
/* @__PURE__ */ r.jsx(
|
|
409
|
-
"div",
|
|
410
|
-
{
|
|
411
|
-
ref: N,
|
|
412
|
-
className: h(
|
|
413
|
-
"w-full h-full overflow-y-auto px-4 pb-4 ",
|
|
414
|
-
p ? "mt-22" : "mt-11"
|
|
415
|
-
),
|
|
416
|
-
style: {
|
|
417
|
-
overscrollBehavior: "contain",
|
|
418
|
-
overflow: A ? "auto" : "hidden"
|
|
419
|
-
},
|
|
420
|
-
children: (!f || ue) && (typeof t == "function" ? t(g) : t)
|
|
421
|
-
}
|
|
422
|
-
)
|
|
423
|
-
]
|
|
424
|
-
}
|
|
425
|
-
)
|
|
426
|
-
] });
|
|
427
|
-
}, we = (t, e) => {
|
|
428
|
-
se(
|
|
1
|
+
import { default as Se } from "./Avatar.es.js";
|
|
2
|
+
import { default as Ie } from "./Button.es.js";
|
|
3
|
+
import { C as Be, a as Ae } from "./CardProfile-WHoeSibd.js";
|
|
4
|
+
import { default as Te } from "./CheckBox.es.js";
|
|
5
|
+
import { default as qe, useDialogControl as De } from "./DialogModal.es.js";
|
|
6
|
+
import { default as ze, useDrawerDesktop as Fe } from "./DrawerDesktop.es.js";
|
|
7
|
+
import { default as He, useDrawerMobile as Ue } from "./DrawerMobile.es.js";
|
|
8
|
+
import { default as Me } from "./Header.es.js";
|
|
9
|
+
import { I as Ve } from "./Input-Cf8P1QJv.js";
|
|
10
|
+
import { default as _e } from "./InputMultiple.es.js";
|
|
11
|
+
import { default as Ze } from "./Logo.es.js";
|
|
12
|
+
import { default as Ke } from "./Menu.es.js";
|
|
13
|
+
import { default as Ye } from "./Pagination.es.js";
|
|
14
|
+
import { default as tt } from "./ProfilePictureUpload.es.js";
|
|
15
|
+
import { default as rt } from "./ProgressBar.es.js";
|
|
16
|
+
import { S as nt } from "./Select-DeKi15Iu.js";
|
|
17
|
+
import { default as st } from "./Spinner.es.js";
|
|
18
|
+
import { default as ct } from "./Steps.es.js";
|
|
19
|
+
import { default as dt } from "./SwipeContainer.es.js";
|
|
20
|
+
import { default as pt } from "./Switch.es.js";
|
|
21
|
+
import { D as xt } from "./DatePicker-CbXUUnv7.js";
|
|
22
|
+
import { RecurrentDatePicker as yt } from "./RecurrentDatePicker.es.js";
|
|
23
|
+
import { RecurrentDatePickerRRule as gt } from "./RecurrentDatePickerRRule.es.js";
|
|
24
|
+
import { Table as wt, TableBody as Ct, TableCaption as jt, TableCell as Nt, TableFooter as St, TableHead as kt, TableHeader as It, TableRow as Rt } from "./Table.es.js";
|
|
25
|
+
import { default as At } from "./TabLinks.es.js";
|
|
26
|
+
import { default as Tt } from "./TextArea.es.js";
|
|
27
|
+
import { default as qt } from "./Tooltip.es.js";
|
|
28
|
+
import { default as Et } from "./Skeleton.es.js";
|
|
29
|
+
import { default as Ft } from "./SegmentedButton.es.js";
|
|
30
|
+
import { u as k } from "./LayoutGeneric-CbaoatQB.js";
|
|
31
|
+
import { L as Ht, S as Ut } from "./LayoutGeneric-CbaoatQB.js";
|
|
32
|
+
import { I as Mt } from "./ImageGallery-WKzUevOQ.js";
|
|
33
|
+
import { default as Vt } from "./Image.es.js";
|
|
34
|
+
import { default as _t, toastpyrion as Xt } from "./Toast.es.js";
|
|
35
|
+
import { default as Jt } from "./ToastProvider.es.js";
|
|
36
|
+
import { default as Qt } from "./SelectSearch.es.js";
|
|
37
|
+
import { default as ea } from "./FAButton.es.js";
|
|
38
|
+
import { default as aa } from "./RadioButton.es.js";
|
|
39
|
+
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
40
|
+
import { c as u } from "./cn-B6yFEsav.js";
|
|
41
|
+
import T, { useRef as h, useState as g, useLayoutEffect as P, createContext as q, useContext as D, forwardRef as N, useEffect as v, useCallback as E } from "react";
|
|
42
|
+
import { useGSAP as I } from "@gsap/react";
|
|
43
|
+
import x from "gsap";
|
|
44
|
+
import { CloseNavBarDesktop as w } from "./Icons.es.js";
|
|
45
|
+
import { AccountCircle as oa, Add as na, ArrowLeft as ia, ArrowUpDown as sa, AttachFile as la, Boards as ca, Calendar as ua, Cancel as da, Check as fa, CheckCircle as pa, CheckList as ma, ChevronDown as xa, Clock as ba, Close as ya, Collapse as ha, Company as ga, Copy as va, CrevronLeft as wa, CrevronRight as Ca, DocumentFill as ja, Download as Na, Edit as Sa, EditFill as ka, Email as Ia, Error as Ra, EyeVisibility as Ba, EyeVisibilityOff as Aa, FaLock as La, FastForward as Ta, File as Pa, Filter as qa, FormatColorText as Da, Help as Ea, HistoryActivity as za, Home as Fa, Icons as Oa, Info as Ha, Logout as Ua, MessageSquare as Wa, MessageSquareFill as Ma, MoreVert as $a, Notifications as Va, Pause as Ga, Reload as _a, Search as Xa, Settings as Za, Shared as Ja, Sort as Ka, Stars as Qa, Ticket as Ya, TicketFilled as er, Trash as tr, TrashFill as ar, Upload as rr, UploadCloud as or, UserAdd as nr, UserAddFill as ir, UserPerson as sr, WhatsApp as lr } from "./Icons.es.js";
|
|
46
|
+
import { motion as b, AnimatePresence as R } from "framer-motion";
|
|
47
|
+
import { default as ur } from "./OtpInput.es.js";
|
|
48
|
+
import { useDropzone as z } from "react-dropzone";
|
|
49
|
+
import { useIsMobile as fr } from "./useDevice.es.js";
|
|
50
|
+
import { default as mr } from "./DropZone.es.js";
|
|
51
|
+
const F = (t, e) => {
|
|
52
|
+
I(
|
|
429
53
|
() => {
|
|
430
54
|
if (!t.current) return;
|
|
431
|
-
const
|
|
55
|
+
const r = t.current, n = document.querySelector('[data-main-content="true"]');
|
|
432
56
|
if (e) {
|
|
433
|
-
|
|
434
|
-
|
|
57
|
+
x.fromTo(
|
|
58
|
+
r,
|
|
435
59
|
{
|
|
436
60
|
width: "0rem",
|
|
437
61
|
opacity: 0
|
|
@@ -442,14 +66,14 @@ const ve = ({
|
|
|
442
66
|
duration: 0.4,
|
|
443
67
|
ease: "power2.out"
|
|
444
68
|
}
|
|
445
|
-
), n &&
|
|
446
|
-
marginLeft:
|
|
69
|
+
), n && x.to(n, {
|
|
70
|
+
marginLeft: r.offsetWidth + "px",
|
|
447
71
|
duration: 0.4,
|
|
448
72
|
ease: "power2.out"
|
|
449
73
|
});
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
|
|
74
|
+
const o = r.querySelectorAll(".secondary-bar-content > *");
|
|
75
|
+
o.length > 0 && x.fromTo(
|
|
76
|
+
o,
|
|
453
77
|
{
|
|
454
78
|
y: 20,
|
|
455
79
|
opacity: 0
|
|
@@ -464,12 +88,12 @@ const ve = ({
|
|
|
464
88
|
}
|
|
465
89
|
);
|
|
466
90
|
} else
|
|
467
|
-
|
|
91
|
+
x.to(r, {
|
|
468
92
|
width: "0rem",
|
|
469
93
|
opacity: 0,
|
|
470
94
|
duration: 0.3,
|
|
471
95
|
ease: "power2.in"
|
|
472
|
-
}), n &&
|
|
96
|
+
}), n && x.to(n, {
|
|
473
97
|
marginLeft: "0px",
|
|
474
98
|
duration: 0.3,
|
|
475
99
|
ease: "power2.in"
|
|
@@ -477,104 +101,104 @@ const ve = ({
|
|
|
477
101
|
},
|
|
478
102
|
{ scope: t, dependencies: [e] }
|
|
479
103
|
);
|
|
480
|
-
},
|
|
104
|
+
}, S = ({
|
|
481
105
|
children: t,
|
|
482
106
|
isOpen: e = !1,
|
|
483
|
-
className:
|
|
107
|
+
className: r = "",
|
|
484
108
|
width: n = "w-96",
|
|
485
|
-
action:
|
|
486
|
-
primarySidebarCollapsed:
|
|
487
|
-
onClose:
|
|
109
|
+
action: o,
|
|
110
|
+
primarySidebarCollapsed: s,
|
|
111
|
+
onClose: l
|
|
488
112
|
}) => {
|
|
489
|
-
const
|
|
490
|
-
return
|
|
491
|
-
if (
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
left:
|
|
495
|
-
width:
|
|
113
|
+
const c = h(null), [d, i] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: p } = k();
|
|
114
|
+
return P(() => {
|
|
115
|
+
if (f?.current && p?.current) {
|
|
116
|
+
const m = f.current.getBoundingClientRect();
|
|
117
|
+
i({
|
|
118
|
+
left: m.width + p.current.offsetWidth,
|
|
119
|
+
width: m.width
|
|
496
120
|
});
|
|
497
121
|
}
|
|
498
|
-
}, [
|
|
499
|
-
/* @__PURE__ */
|
|
122
|
+
}, [f, e, s, p]), F(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
123
|
+
/* @__PURE__ */ a.jsx(
|
|
500
124
|
"div",
|
|
501
125
|
{
|
|
502
126
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
503
127
|
style: {
|
|
504
|
-
left:
|
|
128
|
+
left: d.left
|
|
505
129
|
},
|
|
506
|
-
onClick:
|
|
130
|
+
onClick: l
|
|
507
131
|
}
|
|
508
132
|
),
|
|
509
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ a.jsx(
|
|
510
134
|
"div",
|
|
511
135
|
{
|
|
512
|
-
ref:
|
|
513
|
-
className:
|
|
136
|
+
ref: c,
|
|
137
|
+
className: u(
|
|
514
138
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
515
139
|
"absolute top-0 z-50",
|
|
516
140
|
n,
|
|
517
|
-
|
|
141
|
+
r
|
|
518
142
|
),
|
|
519
143
|
style: {
|
|
520
|
-
left:
|
|
144
|
+
left: d.left
|
|
521
145
|
},
|
|
522
|
-
"data-action":
|
|
523
|
-
children: /* @__PURE__ */
|
|
146
|
+
"data-action": o,
|
|
147
|
+
children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
|
|
524
148
|
}
|
|
525
149
|
)
|
|
526
150
|
] }) });
|
|
527
|
-
},
|
|
528
|
-
Root:
|
|
529
|
-
Header:
|
|
530
|
-
Content:
|
|
531
|
-
Footer:
|
|
532
|
-
Spacer:
|
|
533
|
-
}),
|
|
151
|
+
}, O = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), U = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), W = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(S, {
|
|
152
|
+
Root: S,
|
|
153
|
+
Header: O,
|
|
154
|
+
Content: H,
|
|
155
|
+
Footer: U,
|
|
156
|
+
Spacer: W
|
|
157
|
+
}), B = q(
|
|
534
158
|
void 0
|
|
535
|
-
),
|
|
536
|
-
const t =
|
|
159
|
+
), fe = () => {
|
|
160
|
+
const t = D(B);
|
|
537
161
|
if (!t)
|
|
538
162
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
539
163
|
return t;
|
|
540
|
-
},
|
|
164
|
+
}, M = ({
|
|
541
165
|
children: t
|
|
542
166
|
}) => {
|
|
543
|
-
const [e,
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
|
|
547
|
-
},
|
|
167
|
+
const [e, r] = g(!1), [n, o] = g(!1), s = h(null), l = () => {
|
|
168
|
+
r(!1), o(!1);
|
|
169
|
+
}, c = () => {
|
|
170
|
+
r(!0), o(!1);
|
|
171
|
+
}, m = {
|
|
548
172
|
isCollapsed: e,
|
|
549
|
-
setIsCollapsed:
|
|
550
|
-
navbarRef:
|
|
173
|
+
setIsCollapsed: r,
|
|
174
|
+
navbarRef: s,
|
|
551
175
|
toggleCollapse: () => {
|
|
552
|
-
e ?
|
|
176
|
+
e ? l() : c();
|
|
553
177
|
},
|
|
554
178
|
activeSecondaryBar: n ? "notifications" : null,
|
|
555
179
|
openSecondaryBar: () => {
|
|
556
|
-
|
|
180
|
+
o(!0);
|
|
557
181
|
},
|
|
558
182
|
closeSecondaryBar: () => {
|
|
559
|
-
|
|
183
|
+
o(!1);
|
|
560
184
|
},
|
|
561
185
|
toggleSecondaryBar: () => {
|
|
562
|
-
|
|
186
|
+
o((y) => !y);
|
|
563
187
|
}
|
|
564
188
|
};
|
|
565
|
-
return /* @__PURE__ */
|
|
566
|
-
},
|
|
567
|
-
|
|
189
|
+
return /* @__PURE__ */ a.jsx(B.Provider, { value: m, children: t });
|
|
190
|
+
}, C = (t, e, r, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, n) : t, $ = (t, e, r) => {
|
|
191
|
+
I(
|
|
568
192
|
() => {
|
|
569
193
|
if (!t.current) return;
|
|
570
|
-
const n =
|
|
194
|
+
const n = x.timeline({
|
|
571
195
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
572
|
-
}),
|
|
196
|
+
}), o = {
|
|
573
197
|
navbar: t.current,
|
|
574
|
-
navLabels:
|
|
575
|
-
navIconWrappers:
|
|
576
|
-
navIcons:
|
|
577
|
-
navLinkItems:
|
|
198
|
+
navLabels: x.utils.toArray(".nav-label"),
|
|
199
|
+
navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
|
|
200
|
+
navIcons: x.utils.toArray(".nav-icon"),
|
|
201
|
+
navLinkItems: x.utils.toArray(".nav-link-item"),
|
|
578
202
|
logoutButton: document.querySelector(".logout-button"),
|
|
579
203
|
logoutLabel: document.querySelector(".logout-label"),
|
|
580
204
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -602,14 +226,14 @@ const ve = ({
|
|
|
602
226
|
),
|
|
603
227
|
// Secondary bar elements
|
|
604
228
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
605
|
-
secondaryBarContent:
|
|
606
|
-
badgeInLink:
|
|
229
|
+
secondaryBarContent: x.utils.toArray(".secondary-bar *"),
|
|
230
|
+
badgeInLink: x.utils.toArray(".badge-in-link")
|
|
607
231
|
};
|
|
608
|
-
e ?
|
|
232
|
+
e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
|
|
609
233
|
},
|
|
610
|
-
{ scope: t, dependencies: [e,
|
|
234
|
+
{ scope: t, dependencies: [e, r] }
|
|
611
235
|
);
|
|
612
|
-
},
|
|
236
|
+
}, V = (t, e) => {
|
|
613
237
|
t.to(e.navbar, {
|
|
614
238
|
width: "5rem",
|
|
615
239
|
duration: 0.2,
|
|
@@ -668,7 +292,7 @@ const ve = ({
|
|
|
668
292
|
marginLeft: 0
|
|
669
293
|
},
|
|
670
294
|
0
|
|
671
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
295
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), C(
|
|
672
296
|
t,
|
|
673
297
|
e.buttonCrevron,
|
|
674
298
|
{
|
|
@@ -681,7 +305,7 @@ const ve = ({
|
|
|
681
305
|
}
|
|
682
306
|
},
|
|
683
307
|
0
|
|
684
|
-
),
|
|
308
|
+
), C(
|
|
685
309
|
t,
|
|
686
310
|
e.buttonContentChevron,
|
|
687
311
|
{
|
|
@@ -748,7 +372,7 @@ const ve = ({
|
|
|
748
372
|
},
|
|
749
373
|
-1
|
|
750
374
|
);
|
|
751
|
-
},
|
|
375
|
+
}, G = (t, e) => {
|
|
752
376
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
753
377
|
e.navLinkItems,
|
|
754
378
|
{
|
|
@@ -758,7 +382,7 @@ const ve = ({
|
|
|
758
382
|
justifyContent: "flex-start"
|
|
759
383
|
},
|
|
760
384
|
-1
|
|
761
|
-
),
|
|
385
|
+
), C(
|
|
762
386
|
t,
|
|
763
387
|
e.buttonCrevron,
|
|
764
388
|
{
|
|
@@ -771,7 +395,7 @@ const ve = ({
|
|
|
771
395
|
}
|
|
772
396
|
},
|
|
773
397
|
0
|
|
774
|
-
),
|
|
398
|
+
), C(
|
|
775
399
|
t,
|
|
776
400
|
e.buttonContentChevron,
|
|
777
401
|
{
|
|
@@ -876,93 +500,93 @@ const ve = ({
|
|
|
876
500
|
},
|
|
877
501
|
0
|
|
878
502
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
879
|
-
},
|
|
880
|
-
|
|
503
|
+
}, _ = (t, e) => {
|
|
504
|
+
x.to(t, {
|
|
881
505
|
x: "-100%",
|
|
882
506
|
opacity: 0,
|
|
883
507
|
duration: 0.3,
|
|
884
508
|
ease: "power2.in"
|
|
885
509
|
});
|
|
886
|
-
},
|
|
887
|
-
const [
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}, [
|
|
891
|
-
const
|
|
892
|
-
return /* @__PURE__ */
|
|
510
|
+
}, X = N((t, e) => {
|
|
511
|
+
const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
512
|
+
v(() => {
|
|
513
|
+
o.current?.style.setProperty("--tab-bg", c);
|
|
514
|
+
}, [c]);
|
|
515
|
+
const d = s.find((i) => i.name === (t?.currentTabName || r));
|
|
516
|
+
return /* @__PURE__ */ a.jsx(
|
|
893
517
|
"div",
|
|
894
518
|
{
|
|
895
519
|
ref: e,
|
|
896
|
-
className:
|
|
520
|
+
className: u(
|
|
897
521
|
"flex flex-col gap-2",
|
|
898
522
|
"bg-neutral-strong-default",
|
|
899
523
|
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
900
524
|
" border-r border-neutral-default-default",
|
|
901
|
-
|
|
525
|
+
l
|
|
902
526
|
),
|
|
903
|
-
children:
|
|
904
|
-
(
|
|
905
|
-
const
|
|
906
|
-
|
|
527
|
+
children: s.map(
|
|
528
|
+
(i) => {
|
|
529
|
+
const f = i.name === d?.name, p = typeof i.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, m = () => {
|
|
530
|
+
i.disabled || (n(i.name), i.onClick && i.onClick(i.name));
|
|
907
531
|
};
|
|
908
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ a.jsx(
|
|
909
533
|
"div",
|
|
910
534
|
{
|
|
911
|
-
className:
|
|
535
|
+
className: u(
|
|
912
536
|
"bg-[(--tab-bg)]",
|
|
913
537
|
"h-12 w-[50px] z-20",
|
|
914
538
|
"flex items-center pl-[6px] ",
|
|
915
539
|
"rounded-l-[8px]",
|
|
916
540
|
"tabswitch-element relative",
|
|
917
|
-
|
|
541
|
+
f && "active"
|
|
918
542
|
),
|
|
919
|
-
onClick:
|
|
920
|
-
ref:
|
|
921
|
-
children: /* @__PURE__ */
|
|
543
|
+
onClick: m,
|
|
544
|
+
ref: o,
|
|
545
|
+
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
922
546
|
"size-8 rounded-[4px]",
|
|
923
547
|
"grid place-items-center",
|
|
924
548
|
"tab-thumbnail-icon",
|
|
925
549
|
"bg-transparent text-neutral-default-default",
|
|
926
|
-
|
|
927
|
-
), children:
|
|
550
|
+
i?.className
|
|
551
|
+
), children: p })
|
|
928
552
|
},
|
|
929
|
-
|
|
553
|
+
i.name
|
|
930
554
|
);
|
|
931
555
|
}
|
|
932
556
|
)
|
|
933
557
|
}
|
|
934
558
|
);
|
|
935
|
-
}),
|
|
936
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
937
|
-
const
|
|
938
|
-
|
|
939
|
-
}, [
|
|
940
|
-
return
|
|
941
|
-
|
|
942
|
-
}, [
|
|
943
|
-
|
|
944
|
-
}, [
|
|
559
|
+
}), Z = N(
|
|
560
|
+
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, s) => {
|
|
561
|
+
const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = E((p) => {
|
|
562
|
+
l.current = p, typeof s == "function" ? s(p) : s && (s.current = p);
|
|
563
|
+
}, [s]);
|
|
564
|
+
return v(() => {
|
|
565
|
+
l.current && d(l);
|
|
566
|
+
}, [d]), v(() => {
|
|
567
|
+
c.current && i(c);
|
|
568
|
+
}, [i]), $(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
945
569
|
"div",
|
|
946
570
|
{
|
|
947
|
-
className:
|
|
571
|
+
className: u(
|
|
948
572
|
"flex"
|
|
949
573
|
),
|
|
950
574
|
children: [
|
|
951
|
-
n.length > 0 && /* @__PURE__ */
|
|
952
|
-
|
|
575
|
+
n.length > 0 && /* @__PURE__ */ a.jsx(
|
|
576
|
+
X,
|
|
953
577
|
{
|
|
954
578
|
tabs: n,
|
|
955
|
-
ref:
|
|
579
|
+
ref: c,
|
|
956
580
|
activeColor: "var(--neutral-900)",
|
|
957
|
-
currentTabName:
|
|
581
|
+
currentTabName: o
|
|
958
582
|
}
|
|
959
583
|
),
|
|
960
|
-
/* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ a.jsx(
|
|
961
585
|
"div",
|
|
962
586
|
{
|
|
963
|
-
ref:
|
|
587
|
+
ref: f,
|
|
964
588
|
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 shrink-0
|
|
965
|
-
${e ? "w-16" : "w-64"} ${
|
|
589
|
+
${e ? "w-16" : "w-64"} ${r}`,
|
|
966
590
|
children: t
|
|
967
591
|
}
|
|
968
592
|
)
|
|
@@ -970,11 +594,11 @@ const ve = ({
|
|
|
970
594
|
}
|
|
971
595
|
);
|
|
972
596
|
}
|
|
973
|
-
),
|
|
974
|
-
(t, e) => /* @__PURE__ */
|
|
597
|
+
), j = N(
|
|
598
|
+
(t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
|
|
975
599
|
);
|
|
976
|
-
|
|
977
|
-
const
|
|
600
|
+
j.displayName = "SidebarRoot";
|
|
601
|
+
const J = ({ 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(
|
|
978
602
|
"button",
|
|
979
603
|
{
|
|
980
604
|
type: "button",
|
|
@@ -982,10 +606,10 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
982
606
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
983
607
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
984
608
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
985
|
-
children: t ? /* @__PURE__ */
|
|
609
|
+
children: t ? /* @__PURE__ */ a.jsx(w, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
986
610
|
}
|
|
987
|
-
) }),
|
|
988
|
-
const
|
|
611
|
+
) }), K = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ 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 w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
|
|
612
|
+
const r = () => {
|
|
989
613
|
switch (e) {
|
|
990
614
|
case "auto":
|
|
991
615
|
return "flex-grow";
|
|
@@ -997,104 +621,104 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
997
621
|
return "h-8 w-8";
|
|
998
622
|
}
|
|
999
623
|
};
|
|
1000
|
-
return /* @__PURE__ */
|
|
1001
|
-
},
|
|
1002
|
-
Root:
|
|
1003
|
-
CollapseButton:
|
|
1004
|
-
Header:
|
|
1005
|
-
Divider:
|
|
1006
|
-
Content:
|
|
1007
|
-
Spacer:
|
|
1008
|
-
Footer:
|
|
1009
|
-
}),
|
|
624
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
|
|
625
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), pe = Object.assign(j, {
|
|
626
|
+
Root: j,
|
|
627
|
+
CollapseButton: J,
|
|
628
|
+
Header: K,
|
|
629
|
+
Divider: Q,
|
|
630
|
+
Content: Y,
|
|
631
|
+
Spacer: ee,
|
|
632
|
+
Footer: te
|
|
633
|
+
}), me = ({
|
|
1010
634
|
children: t,
|
|
1011
635
|
icon: e,
|
|
1012
|
-
label:
|
|
636
|
+
label: r,
|
|
1013
637
|
href: n,
|
|
1014
|
-
onClick:
|
|
1015
|
-
isActive:
|
|
1016
|
-
className:
|
|
638
|
+
onClick: o,
|
|
639
|
+
isActive: s = !1,
|
|
640
|
+
className: l
|
|
1017
641
|
}) => {
|
|
1018
|
-
const
|
|
1019
|
-
return /* @__PURE__ */
|
|
1020
|
-
|
|
642
|
+
const c = n ? "a" : "button";
|
|
643
|
+
return /* @__PURE__ */ a.jsxs(
|
|
644
|
+
c,
|
|
1021
645
|
{
|
|
1022
646
|
href: n,
|
|
1023
|
-
onClick:
|
|
1024
|
-
className:
|
|
647
|
+
onClick: o,
|
|
648
|
+
className: u(
|
|
1025
649
|
"nav-link-item",
|
|
1026
650
|
"flex items-center w-full px-3 py-2 text-left",
|
|
1027
651
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
1028
652
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
1029
|
-
|
|
1030
|
-
|
|
653
|
+
s && "bg-neutral-medium-default",
|
|
654
|
+
l
|
|
1031
655
|
),
|
|
1032
656
|
children: [
|
|
1033
|
-
e && /* @__PURE__ */
|
|
1034
|
-
|
|
657
|
+
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 }) }),
|
|
658
|
+
r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
|
|
1035
659
|
t
|
|
1036
660
|
]
|
|
1037
661
|
}
|
|
1038
662
|
);
|
|
1039
|
-
},
|
|
663
|
+
}, A = ({
|
|
1040
664
|
count: t,
|
|
1041
665
|
maxCount: e = 9,
|
|
1042
|
-
className:
|
|
666
|
+
className: r = "",
|
|
1043
667
|
size: n = "medium",
|
|
1044
|
-
variant:
|
|
1045
|
-
showZero:
|
|
668
|
+
variant: o = "primary",
|
|
669
|
+
showZero: s = !1
|
|
1046
670
|
}) => {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
const
|
|
671
|
+
const l = t, c = l > e ? `+${e}` : l;
|
|
672
|
+
if (l === 0 && !s) return null;
|
|
673
|
+
const d = {
|
|
1050
674
|
small: "w-4.5 h-4.5 text-xs ",
|
|
1051
675
|
medium: "w-5 h-5 text-xs",
|
|
1052
676
|
large: "w-6 h-6 text-sm"
|
|
1053
|
-
},
|
|
677
|
+
}, i = {
|
|
1054
678
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
1055
679
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
1056
680
|
success: "bg-green-500 text-white",
|
|
1057
681
|
warning: "bg-yellow-500 text-black",
|
|
1058
682
|
danger: "bg-red-500 text-white"
|
|
1059
683
|
};
|
|
1060
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
1061
685
|
"rounded-full flex items-center justify-center font-medium ",
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
), children: /* @__PURE__ */
|
|
1066
|
-
},
|
|
686
|
+
d[n],
|
|
687
|
+
i[o],
|
|
688
|
+
r
|
|
689
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
690
|
+
}, xe = ({
|
|
1067
691
|
linkActions: t,
|
|
1068
692
|
onClick: e,
|
|
1069
|
-
activeAction:
|
|
1070
|
-
}) => /* @__PURE__ */
|
|
1071
|
-
const { isView:
|
|
1072
|
-
return
|
|
1073
|
-
|
|
693
|
+
activeAction: r
|
|
694
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
695
|
+
const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, p = (typeof s == "function" ? s() : s !== !1) && (!f || f()), m = r === l;
|
|
696
|
+
return p && /* @__PURE__ */ a.jsx(
|
|
697
|
+
b.div,
|
|
1074
698
|
{
|
|
1075
699
|
initial: { opacity: 0 },
|
|
1076
700
|
animate: { opacity: 1 },
|
|
1077
701
|
transition: {
|
|
1078
702
|
duration: 0.4,
|
|
1079
|
-
delay:
|
|
703
|
+
delay: o * 0.03,
|
|
1080
704
|
ease: "easeOut"
|
|
1081
705
|
},
|
|
1082
706
|
className: "relative flex justify-center w-full items-center px-3",
|
|
1083
|
-
children: /* @__PURE__ */
|
|
707
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
1084
708
|
"button",
|
|
1085
709
|
{
|
|
1086
710
|
onClick: () => {
|
|
1087
|
-
e?.(
|
|
711
|
+
e?.(l);
|
|
1088
712
|
},
|
|
1089
|
-
className:
|
|
713
|
+
className: u(
|
|
1090
714
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
1091
715
|
"transition-all duration-300 ease-out w-full",
|
|
1092
716
|
"group hover:bg-neutral-medium-selected",
|
|
1093
|
-
|
|
717
|
+
m ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
1094
718
|
),
|
|
1095
719
|
children: [
|
|
1096
|
-
/* @__PURE__ */
|
|
1097
|
-
|
|
720
|
+
/* @__PURE__ */ a.jsx(R, { mode: "wait", children: m && /* @__PURE__ */ a.jsx(
|
|
721
|
+
b.div,
|
|
1098
722
|
{
|
|
1099
723
|
layoutId: "nav-active-bg",
|
|
1100
724
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -1108,8 +732,8 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1108
732
|
}
|
|
1109
733
|
}
|
|
1110
734
|
) }),
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
-
|
|
735
|
+
/* @__PURE__ */ a.jsxs(
|
|
736
|
+
b.div,
|
|
1113
737
|
{
|
|
1114
738
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
1115
739
|
animate: {
|
|
@@ -1120,30 +744,30 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1120
744
|
ease: "easeOut"
|
|
1121
745
|
},
|
|
1122
746
|
children: [
|
|
1123
|
-
/* @__PURE__ */
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
|
|
747
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
748
|
+
/* @__PURE__ */ a.jsx(
|
|
749
|
+
b.div,
|
|
1126
750
|
{
|
|
1127
751
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
1128
752
|
animate: {
|
|
1129
|
-
scale:
|
|
753
|
+
scale: m ? 1.05 : 1
|
|
1130
754
|
},
|
|
1131
755
|
transition: {
|
|
1132
756
|
duration: 0.25,
|
|
1133
757
|
ease: "easeOut"
|
|
1134
758
|
},
|
|
1135
|
-
children: typeof
|
|
759
|
+
children: typeof d == "function" ? d({
|
|
1136
760
|
size: 24,
|
|
1137
|
-
className:
|
|
761
|
+
className: u(
|
|
1138
762
|
"nav-icon transition-colors duration-250 ease-out",
|
|
1139
|
-
|
|
763
|
+
m ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
1140
764
|
)
|
|
1141
765
|
}) : null
|
|
1142
766
|
}
|
|
1143
767
|
),
|
|
1144
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
1145
769
|
] }),
|
|
1146
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ a.jsx(A, { count: i, maxCount: 9, className: "" }) : "" })
|
|
1147
771
|
]
|
|
1148
772
|
}
|
|
1149
773
|
)
|
|
@@ -1151,42 +775,42 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1151
775
|
}
|
|
1152
776
|
)
|
|
1153
777
|
},
|
|
1154
|
-
|
|
778
|
+
o
|
|
1155
779
|
);
|
|
1156
|
-
}) }),
|
|
780
|
+
}) }), be = ({
|
|
1157
781
|
links: t,
|
|
1158
782
|
isLinkActive: e,
|
|
1159
|
-
onLinkClick:
|
|
1160
|
-
}) => /* @__PURE__ */
|
|
1161
|
-
const { isView:
|
|
1162
|
-
(
|
|
783
|
+
onLinkClick: r
|
|
784
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
785
|
+
const { isView: s = !1, viewAccess: l, path: c, title: d, icon: i, count: f, relatedPaths: p } = n, m = (typeof s == "function" ? s() : s !== !1) && (!l || l()), y = e(c) || (p?.some(
|
|
786
|
+
(L) => e(L)
|
|
1163
787
|
) ?? !1);
|
|
1164
|
-
return
|
|
1165
|
-
|
|
788
|
+
return m && /* @__PURE__ */ a.jsx(
|
|
789
|
+
b.div,
|
|
1166
790
|
{
|
|
1167
791
|
initial: { opacity: 0 },
|
|
1168
792
|
animate: { opacity: 1 },
|
|
1169
793
|
transition: {
|
|
1170
794
|
duration: 0.4,
|
|
1171
|
-
delay:
|
|
795
|
+
delay: o * 0.03,
|
|
1172
796
|
ease: "easeOut"
|
|
1173
797
|
},
|
|
1174
798
|
className: "relative flex justify-center w-full items-center px-3",
|
|
1175
|
-
children: /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
1176
800
|
"button",
|
|
1177
801
|
{
|
|
1178
802
|
onClick: () => {
|
|
1179
|
-
|
|
803
|
+
r?.(c);
|
|
1180
804
|
},
|
|
1181
|
-
className:
|
|
805
|
+
className: u(
|
|
1182
806
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
1183
807
|
"transition-all duration-300 ease-out w-full",
|
|
1184
808
|
"group hover:bg-neutral-medium-selected",
|
|
1185
|
-
|
|
809
|
+
y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
1186
810
|
),
|
|
1187
811
|
children: [
|
|
1188
|
-
/* @__PURE__ */
|
|
1189
|
-
|
|
812
|
+
/* @__PURE__ */ a.jsx(R, { mode: "wait", children: y && /* @__PURE__ */ a.jsx(
|
|
813
|
+
b.div,
|
|
1190
814
|
{
|
|
1191
815
|
layoutId: "nav-active-bg",
|
|
1192
816
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -1200,8 +824,8 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1200
824
|
}
|
|
1201
825
|
}
|
|
1202
826
|
) }),
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
|
|
827
|
+
/* @__PURE__ */ a.jsxs(
|
|
828
|
+
b.div,
|
|
1205
829
|
{
|
|
1206
830
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
1207
831
|
animate: {
|
|
@@ -1212,30 +836,30 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1212
836
|
ease: "easeOut"
|
|
1213
837
|
},
|
|
1214
838
|
children: [
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
|
|
839
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
840
|
+
/* @__PURE__ */ a.jsx(
|
|
841
|
+
b.div,
|
|
1218
842
|
{
|
|
1219
843
|
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
1220
844
|
animate: {
|
|
1221
|
-
scale:
|
|
845
|
+
scale: y ? 1.05 : 1
|
|
1222
846
|
},
|
|
1223
847
|
transition: {
|
|
1224
848
|
duration: 0.25,
|
|
1225
849
|
ease: "easeOut"
|
|
1226
850
|
},
|
|
1227
|
-
children: typeof
|
|
851
|
+
children: typeof i == "function" ? i({
|
|
1228
852
|
size: 24,
|
|
1229
|
-
className:
|
|
853
|
+
className: u(
|
|
1230
854
|
"nav-icon transition-colors duration-250 ease-out",
|
|
1231
|
-
|
|
855
|
+
y ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
1232
856
|
)
|
|
1233
857
|
}) : null
|
|
1234
858
|
}
|
|
1235
859
|
),
|
|
1236
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
1237
861
|
] }),
|
|
1238
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(A, { count: f, maxCount: 9, className: "" }) : "" })
|
|
1239
863
|
]
|
|
1240
864
|
}
|
|
1241
865
|
)
|
|
@@ -1243,99 +867,64 @@ const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
1243
867
|
}
|
|
1244
868
|
)
|
|
1245
869
|
},
|
|
1246
|
-
|
|
870
|
+
o
|
|
1247
871
|
);
|
|
1248
|
-
}) }),
|
|
872
|
+
}) }), ye = ({
|
|
1249
873
|
isActiveModalNotification: t,
|
|
1250
874
|
setIsActiveModalNotification: e
|
|
1251
875
|
}) => ({ handleNotificationClick: () => {
|
|
1252
876
|
e(!0);
|
|
1253
|
-
}, isActiveModalNotification: t }),
|
|
1254
|
-
const e =
|
|
877
|
+
}, isActiveModalNotification: t }), he = (t) => {
|
|
878
|
+
const e = h(null);
|
|
1255
879
|
return {
|
|
1256
880
|
isCollapsed: t,
|
|
1257
881
|
navbarRef: e
|
|
1258
882
|
};
|
|
1259
|
-
},
|
|
883
|
+
}, ge = ({
|
|
1260
884
|
isCollapsed: t,
|
|
1261
885
|
onToggle: e
|
|
1262
|
-
}) => /* @__PURE__ */
|
|
886
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
1263
887
|
"button",
|
|
1264
888
|
{
|
|
1265
889
|
onClick: e,
|
|
1266
890
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
1267
891
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
1268
892
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
1269
|
-
children: t ? /* @__PURE__ */
|
|
893
|
+
children: t ? /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
1270
894
|
}
|
|
1271
|
-
) }),
|
|
895
|
+
) }), ve = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
1272
896
|
"img",
|
|
1273
897
|
{
|
|
1274
898
|
src: t,
|
|
1275
899
|
className: "h-2/3 rounded-full",
|
|
1276
900
|
alt: e ?? ""
|
|
1277
901
|
}
|
|
1278
|
-
) })
|
|
1279
|
-
|
|
1280
|
-
t.current?.open(i);
|
|
1281
|
-
}, []), s = v(() => {
|
|
1282
|
-
t.current?.close();
|
|
1283
|
-
}, []), n = v(() => t.current?.isOpen ?? !1, []), a = v(() => t.current?.getContext() ?? null, []);
|
|
1284
|
-
return {
|
|
1285
|
-
isOpen: n,
|
|
1286
|
-
open: e,
|
|
1287
|
-
close: s,
|
|
1288
|
-
drawerRef: t,
|
|
1289
|
-
getContext: a
|
|
1290
|
-
};
|
|
1291
|
-
}, ct = () => {
|
|
1292
|
-
const t = b(null), [e, s] = E(!1), n = v((u, f) => {
|
|
1293
|
-
t.current?.open(u, f);
|
|
1294
|
-
}, []), a = v(() => {
|
|
1295
|
-
t.current?.close();
|
|
1296
|
-
}, []), i = v(() => t.current?.getContext() ?? null, []);
|
|
1297
|
-
return y(() => {
|
|
1298
|
-
const u = t.current?.subscribeOpenChange;
|
|
1299
|
-
if (!u) return;
|
|
1300
|
-
const f = u((p) => {
|
|
1301
|
-
s(p);
|
|
1302
|
-
});
|
|
1303
|
-
return () => {
|
|
1304
|
-
f && f();
|
|
1305
|
-
};
|
|
1306
|
-
}, [t.current?.subscribeOpenChange]), {
|
|
1307
|
-
isOpen: e,
|
|
1308
|
-
open: n,
|
|
1309
|
-
close: a,
|
|
1310
|
-
drawerRef: t,
|
|
1311
|
-
getContext: i
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
function ut({
|
|
902
|
+
) });
|
|
903
|
+
function we({
|
|
1315
904
|
onFilesAccepted: t,
|
|
1316
905
|
onFilesRejected: e,
|
|
1317
|
-
...
|
|
906
|
+
...r
|
|
1318
907
|
}) {
|
|
1319
|
-
const n =
|
|
1320
|
-
(
|
|
1321
|
-
|
|
908
|
+
const n = T.useCallback(
|
|
909
|
+
(s, l) => {
|
|
910
|
+
s.length > 0 && t?.(s), l.length > 0 && e?.(l);
|
|
1322
911
|
},
|
|
1323
912
|
[t, e]
|
|
1324
|
-
),
|
|
913
|
+
), o = z({
|
|
1325
914
|
onDrop: n,
|
|
1326
|
-
...
|
|
915
|
+
...r
|
|
1327
916
|
});
|
|
1328
917
|
return {
|
|
1329
|
-
...
|
|
1330
|
-
hasErrors:
|
|
918
|
+
...o,
|
|
919
|
+
hasErrors: o.fileRejections.length > 0
|
|
1331
920
|
};
|
|
1332
921
|
}
|
|
1333
|
-
const
|
|
1334
|
-
const
|
|
1335
|
-
return
|
|
922
|
+
const Ce = (t, e = !0) => {
|
|
923
|
+
const r = h(null);
|
|
924
|
+
return v(() => {
|
|
1336
925
|
if (!e) return;
|
|
1337
|
-
const n = (
|
|
1338
|
-
|
|
926
|
+
const n = (o) => {
|
|
927
|
+
r.current && !r.current.contains(o.target) && t();
|
|
1339
928
|
};
|
|
1340
929
|
return document.addEventListener("mousedown", n, {
|
|
1341
930
|
capture: !0
|
|
@@ -1348,74 +937,135 @@ const dt = (t, e = !0) => {
|
|
|
1348
937
|
capture: !0
|
|
1349
938
|
});
|
|
1350
939
|
};
|
|
1351
|
-
}, [t, e]),
|
|
940
|
+
}, [t, e]), r;
|
|
1352
941
|
};
|
|
1353
942
|
export {
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
943
|
+
oa as AccountCircle,
|
|
944
|
+
na as Add,
|
|
945
|
+
ia as ArrowLeft,
|
|
946
|
+
sa as ArrowUpDown,
|
|
947
|
+
la as AttachFile,
|
|
948
|
+
Se as Avatar,
|
|
949
|
+
A as Badge,
|
|
950
|
+
ca as Boards,
|
|
951
|
+
Ie as Button,
|
|
952
|
+
ua as Calendar,
|
|
953
|
+
da as Cancel,
|
|
954
|
+
Be as CardProfile,
|
|
955
|
+
Ae as ChangueAccount,
|
|
956
|
+
fa as Check,
|
|
957
|
+
Te as CheckBox,
|
|
958
|
+
pa as CheckCircle,
|
|
959
|
+
ma as CheckList,
|
|
960
|
+
xa as ChevronDown,
|
|
961
|
+
ba as Clock,
|
|
962
|
+
ya as Close,
|
|
963
|
+
w as CloseNavBarDesktop,
|
|
964
|
+
ha as Collapse,
|
|
965
|
+
ga as Company,
|
|
966
|
+
ve as CompanyLogo,
|
|
967
|
+
va as Copy,
|
|
968
|
+
wa as CrevronLeft,
|
|
969
|
+
Ca as CrevronRight,
|
|
970
|
+
xt as DatePicker,
|
|
971
|
+
qe as DialogModal,
|
|
972
|
+
ja as DocumentFill,
|
|
973
|
+
Na as Download,
|
|
974
|
+
ze as DrawerDesktop,
|
|
975
|
+
He as DrawerMobile,
|
|
976
|
+
mr as DropZone,
|
|
977
|
+
Sa as Edit,
|
|
978
|
+
ka as EditFill,
|
|
979
|
+
Ia as Email,
|
|
980
|
+
Ra as Error,
|
|
981
|
+
Ba as EyeVisibility,
|
|
982
|
+
Aa as EyeVisibilityOff,
|
|
983
|
+
ea as FAButton,
|
|
984
|
+
La as FaLock,
|
|
985
|
+
Ta as FastForward,
|
|
986
|
+
Pa as File,
|
|
987
|
+
qa as Filter,
|
|
988
|
+
Da as FormatColorText,
|
|
989
|
+
Me as Header,
|
|
990
|
+
Ea as Help,
|
|
991
|
+
za as HistoryActivity,
|
|
992
|
+
Fa as Home,
|
|
993
|
+
Oa as Icons,
|
|
994
|
+
Vt as Image,
|
|
995
|
+
Mt as ImageGallery,
|
|
996
|
+
Ha as Info,
|
|
997
|
+
Ve as Input,
|
|
998
|
+
_e as InputMultiple,
|
|
999
|
+
Ht as LayoutGeneric,
|
|
1000
|
+
Ze as Logo,
|
|
1001
|
+
Ua as Logout,
|
|
1002
|
+
Ke as Menu,
|
|
1003
|
+
Wa as MessageSquare,
|
|
1004
|
+
Ma as MessageSquareFill,
|
|
1005
|
+
$a as MoreVert,
|
|
1006
|
+
xe as NavBarActions,
|
|
1007
|
+
ge as NavbarCollapseButton,
|
|
1008
|
+
be as NavbarLinks,
|
|
1009
|
+
me as NavigationLink,
|
|
1010
|
+
Va as Notifications,
|
|
1011
|
+
ur as OtpInput,
|
|
1012
|
+
Ye as Pagination,
|
|
1013
|
+
Ga as Pause,
|
|
1014
|
+
tt as ProfilePictureUpload,
|
|
1015
|
+
rt as ProgressBar,
|
|
1016
|
+
aa as RadioButton,
|
|
1017
|
+
yt as RecurrentDatePicker,
|
|
1018
|
+
gt as RecurrentDatePickerRRule,
|
|
1019
|
+
_a as Reload,
|
|
1020
|
+
Xa as Search,
|
|
1021
|
+
de as SecondaryBar,
|
|
1022
|
+
Ft as SegmentedButton,
|
|
1023
|
+
nt as Select,
|
|
1024
|
+
Qt as SelectSearch,
|
|
1025
|
+
Za as Settings,
|
|
1026
|
+
Ja as Shared,
|
|
1027
|
+
pe as Sidebar,
|
|
1028
|
+
M as SidebarProvider,
|
|
1029
|
+
Ut as SidebarRefProvider,
|
|
1030
|
+
Et as Skeleton,
|
|
1031
|
+
Ka as Sort,
|
|
1032
|
+
st as Spinner,
|
|
1033
|
+
Qa as Stars,
|
|
1034
|
+
ct as Steps,
|
|
1035
|
+
dt as SwipeContainer,
|
|
1036
|
+
pt as Switch,
|
|
1037
|
+
At as TabLinks,
|
|
1038
|
+
wt as Table,
|
|
1039
|
+
Ct as TableBody,
|
|
1040
|
+
jt as TableCaption,
|
|
1041
|
+
Nt as TableCell,
|
|
1042
|
+
St as TableFooter,
|
|
1043
|
+
kt as TableHead,
|
|
1044
|
+
It as TableHeader,
|
|
1045
|
+
Rt as TableRow,
|
|
1046
|
+
Tt as TextArea,
|
|
1047
|
+
Ya as Ticket,
|
|
1048
|
+
er as TicketFilled,
|
|
1049
|
+
_t as Toast,
|
|
1050
|
+
Jt as ToastProvider,
|
|
1051
|
+
qt as Tooltip,
|
|
1052
|
+
tr as Trash,
|
|
1053
|
+
ar as TrashFill,
|
|
1054
|
+
rr as Upload,
|
|
1055
|
+
or as UploadCloud,
|
|
1056
|
+
nr as UserAdd,
|
|
1057
|
+
ir as UserAddFill,
|
|
1058
|
+
sr as UserPerson,
|
|
1059
|
+
lr as WhatsApp,
|
|
1060
|
+
Xt as toastpyrion,
|
|
1061
|
+
ye as useActionsNavbar,
|
|
1062
|
+
Ce as useClickOutside,
|
|
1063
|
+
De as useDialogControl,
|
|
1064
|
+
Fe as useDrawerDesktop,
|
|
1065
|
+
Ue as useDrawerMobile,
|
|
1066
|
+
we as useFileDropzone,
|
|
1067
|
+
fr as useIsMobile,
|
|
1068
|
+
he as useNavbarCollapse,
|
|
1069
|
+
fe as useSidebar,
|
|
1070
|
+
k as useSidebarContext
|
|
1421
1071
|
};
|