prometeo-design-system 2.9.4 → 2.9.6
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/index.d.ts +4 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +755 -336
- package/package.json +21 -38
- package/src/styles/app.css +1314 -0
- package/src/styles/fonts.css +46 -0
- package/src/styles/intellisense.css +2 -1
- package/src/styles/palette.css +83 -0
- package/src/styles/utilities.css +1126 -0
- package/dist/DrawerDesktop.d.ts +0 -6
- package/dist/DrawerDesktop.es.js +0 -192
- package/dist/DrawerMobile.d.ts +0 -6
- package/dist/DrawerMobile.es.js +0 -242
- package/dist/exports/DrawerDesktop.d.ts +0 -4
- package/dist/exports/DrawerMobile.d.ts +0 -4
|
@@ -1,57 +1,437 @@
|
|
|
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 { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
import { default as pt } from "./Avatar.es.js";
|
|
2
|
+
import de from "./Button.es.js";
|
|
3
|
+
import { C as gt, a as ht } from "./CardProfile-CsytJlKZ.js";
|
|
4
|
+
import { default as vt } from "./CheckBox.es.js";
|
|
5
|
+
import { default as wt, useDialogControl as jt } from "./DialogModal.es.js";
|
|
6
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
7
|
+
import { c as h } from "./cn-B6yFEsav.js";
|
|
8
|
+
import { c as X } from "./index-BOQuZ0gG.js";
|
|
9
|
+
import { createPortal as re } from "react-dom";
|
|
10
|
+
import fe, { forwardRef as P, useRef as b, useState as E, useEffect as y, useCallback as v, useImperativeHandle as ne, useMemo as oe, useLayoutEffect as me, createContext as pe, useContext as xe } from "react";
|
|
11
|
+
import { a as ge, d as $ } from "./Icons-DtFC5DJ7.js";
|
|
12
|
+
import { e as Ct } from "./Icons-DtFC5DJ7.js";
|
|
13
|
+
import { default as kt } from "./Header.es.js";
|
|
14
|
+
import { I as Rt } from "./Input-Cck37DpG.js";
|
|
15
|
+
import { default as Dt } from "./InputMultiple.es.js";
|
|
16
|
+
import { default as Ht } from "./Logo.es.js";
|
|
17
|
+
import { default as Tt } from "./Menu.es.js";
|
|
18
|
+
import { default as Yt } from "./Pagination.es.js";
|
|
19
|
+
import { default as At } from "./ProfilePictureUpload.es.js";
|
|
20
|
+
import { default as qt } from "./ProgressBar.es.js";
|
|
21
|
+
import { S as $t } from "./Select-BD5FTxVw.js";
|
|
22
|
+
import { default as Wt } from "./Spinner.es.js";
|
|
23
|
+
import { default as Vt } from "./Steps.es.js";
|
|
24
|
+
import { default as _t } from "./SwipeContainer.es.js";
|
|
25
|
+
import { default as Zt } from "./Switch.es.js";
|
|
26
|
+
import { default as Kt } from "./DatePicker.es.js";
|
|
27
|
+
import { Table as er, TableBody as tr, TableCaption as rr, TableCell as nr, TableFooter as or, TableHead as ar, TableHeader as sr, TableRow as ir } from "./Table.es.js";
|
|
28
|
+
import { default as cr } from "./TabLinks.es.js";
|
|
29
|
+
import { default as dr } from "./TextArea.es.js";
|
|
30
|
+
import { default as mr } from "./Tooltip.es.js";
|
|
31
|
+
import { default as xr } from "./Skeleton.es.js";
|
|
32
|
+
import { default as hr } from "./SegmentedButton.es.js";
|
|
33
|
+
import { u as ae } from "./LayoutGeneric-CbaoatQB.js";
|
|
34
|
+
import { L as vr, S as yr } from "./LayoutGeneric-CbaoatQB.js";
|
|
35
|
+
import { I as jr } from "./ImageGallery-Ckxg9OIC.js";
|
|
36
|
+
import { default as Cr } from "./Image.es.js";
|
|
37
|
+
import { default as kr, toastpyrion as Ir } from "./Toast.es.js";
|
|
38
|
+
import { default as Lr } from "./ToastProvider.es.js";
|
|
39
|
+
import { default as Er } from "./SelectSearch.es.js";
|
|
40
|
+
import { default as Br } from "./FAButton.es.js";
|
|
41
|
+
import { default as Or } from "./RadioButton.es.js";
|
|
42
|
+
import { useGSAP as se } from "@gsap/react";
|
|
43
|
+
import R from "gsap";
|
|
44
|
+
import { motion as Y, AnimatePresence as ie } from "framer-motion";
|
|
45
|
+
import { default as zr } from "./OtpInput.es.js";
|
|
46
|
+
import { useDropzone as he } from "react-dropzone";
|
|
47
|
+
import { useIsMobile as Mr } from "./useDevice.es.js";
|
|
48
|
+
import { default as Pr } from "./DropZone.es.js";
|
|
49
|
+
const be = P((t, e) => {
|
|
50
|
+
const s = b(null), [n, a] = E(t.defaultOpen || !1), [i, u] = E(null), f = b(t.onClose), p = b(i), {
|
|
51
|
+
modal: d = !1,
|
|
52
|
+
children: x,
|
|
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(
|
|
49
429
|
() => {
|
|
50
430
|
if (!t.current) return;
|
|
51
|
-
const
|
|
431
|
+
const s = t.current, n = document.querySelector('[data-main-content="true"]');
|
|
52
432
|
if (e) {
|
|
53
|
-
|
|
54
|
-
|
|
433
|
+
R.fromTo(
|
|
434
|
+
s,
|
|
55
435
|
{
|
|
56
436
|
width: "0rem",
|
|
57
437
|
opacity: 0
|
|
@@ -62,14 +442,14 @@ const D = (t, e) => {
|
|
|
62
442
|
duration: 0.4,
|
|
63
443
|
ease: "power2.out"
|
|
64
444
|
}
|
|
65
|
-
), n &&
|
|
66
|
-
marginLeft:
|
|
445
|
+
), n && R.to(n, {
|
|
446
|
+
marginLeft: s.offsetWidth + "px",
|
|
67
447
|
duration: 0.4,
|
|
68
448
|
ease: "power2.out"
|
|
69
449
|
});
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
450
|
+
const a = s.querySelectorAll(".secondary-bar-content > *");
|
|
451
|
+
a.length > 0 && R.fromTo(
|
|
452
|
+
a,
|
|
73
453
|
{
|
|
74
454
|
y: 20,
|
|
75
455
|
opacity: 0
|
|
@@ -84,12 +464,12 @@ const D = (t, e) => {
|
|
|
84
464
|
}
|
|
85
465
|
);
|
|
86
466
|
} else
|
|
87
|
-
|
|
467
|
+
R.to(s, {
|
|
88
468
|
width: "0rem",
|
|
89
469
|
opacity: 0,
|
|
90
470
|
duration: 0.3,
|
|
91
471
|
ease: "power2.in"
|
|
92
|
-
}), n &&
|
|
472
|
+
}), n && R.to(n, {
|
|
93
473
|
marginLeft: "0px",
|
|
94
474
|
duration: 0.3,
|
|
95
475
|
ease: "power2.in"
|
|
@@ -97,104 +477,104 @@ const D = (t, e) => {
|
|
|
97
477
|
},
|
|
98
478
|
{ scope: t, dependencies: [e] }
|
|
99
479
|
);
|
|
100
|
-
},
|
|
480
|
+
}, te = ({
|
|
101
481
|
children: t,
|
|
102
482
|
isOpen: e = !1,
|
|
103
|
-
className:
|
|
483
|
+
className: s = "",
|
|
104
484
|
width: n = "w-96",
|
|
105
|
-
action:
|
|
485
|
+
action: a,
|
|
106
486
|
primarySidebarCollapsed: i,
|
|
107
|
-
onClose:
|
|
487
|
+
onClose: u
|
|
108
488
|
}) => {
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
left:
|
|
115
|
-
width:
|
|
489
|
+
const f = b(null), [p, d] = E({ left: 0, width: 0 }), { primarySidebarRef: x, tabBarRef: g } = ae();
|
|
490
|
+
return me(() => {
|
|
491
|
+
if (x?.current && g?.current) {
|
|
492
|
+
const l = x.current.getBoundingClientRect();
|
|
493
|
+
d({
|
|
494
|
+
left: l.width + g.current.offsetWidth,
|
|
495
|
+
width: l.width
|
|
116
496
|
});
|
|
117
497
|
}
|
|
118
|
-
}, [
|
|
119
|
-
/* @__PURE__ */
|
|
498
|
+
}, [x, e, i, g]), we(f, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
499
|
+
/* @__PURE__ */ r.jsx(
|
|
120
500
|
"div",
|
|
121
501
|
{
|
|
122
502
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
123
503
|
style: {
|
|
124
|
-
left:
|
|
504
|
+
left: p.left
|
|
125
505
|
},
|
|
126
|
-
onClick:
|
|
506
|
+
onClick: u
|
|
127
507
|
}
|
|
128
508
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ r.jsx(
|
|
130
510
|
"div",
|
|
131
511
|
{
|
|
132
|
-
ref:
|
|
133
|
-
className:
|
|
512
|
+
ref: f,
|
|
513
|
+
className: h(
|
|
134
514
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
135
515
|
"absolute top-0 z-50",
|
|
136
516
|
n,
|
|
137
|
-
|
|
517
|
+
s
|
|
138
518
|
),
|
|
139
519
|
style: {
|
|
140
|
-
left:
|
|
520
|
+
left: p.left
|
|
141
521
|
},
|
|
142
|
-
"data-action":
|
|
143
|
-
children: /* @__PURE__ */
|
|
522
|
+
"data-action": a,
|
|
523
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
|
|
144
524
|
}
|
|
145
525
|
)
|
|
146
526
|
] }) });
|
|
147
|
-
},
|
|
148
|
-
Root:
|
|
149
|
-
Header:
|
|
150
|
-
Content:
|
|
151
|
-
Footer:
|
|
152
|
-
Spacer:
|
|
153
|
-
}),
|
|
527
|
+
}, je = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: h("h-16 ", e), children: t }), Ne = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: h("flex-1 overflow-y-auto p-4", e), children: t }), Ce = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: h("p-4 border-t border-neutral-strong-default", e), children: t }), Se = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: h("flex-1", t) }), Ke = Object.assign(te, {
|
|
528
|
+
Root: te,
|
|
529
|
+
Header: je,
|
|
530
|
+
Content: Ne,
|
|
531
|
+
Footer: Ce,
|
|
532
|
+
Spacer: Se
|
|
533
|
+
}), le = pe(
|
|
154
534
|
void 0
|
|
155
|
-
),
|
|
156
|
-
const t =
|
|
535
|
+
), Qe = () => {
|
|
536
|
+
const t = xe(le);
|
|
157
537
|
if (!t)
|
|
158
538
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
159
539
|
return t;
|
|
160
|
-
},
|
|
540
|
+
}, ke = ({
|
|
161
541
|
children: t
|
|
162
542
|
}) => {
|
|
163
|
-
const [e,
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
},
|
|
543
|
+
const [e, s] = E(!1), [n, a] = E(!1), i = b(null), u = () => {
|
|
544
|
+
s(!1), a(!1);
|
|
545
|
+
}, f = () => {
|
|
546
|
+
s(!0), a(!1);
|
|
547
|
+
}, l = {
|
|
168
548
|
isCollapsed: e,
|
|
169
|
-
setIsCollapsed:
|
|
549
|
+
setIsCollapsed: s,
|
|
170
550
|
navbarRef: i,
|
|
171
551
|
toggleCollapse: () => {
|
|
172
|
-
e ?
|
|
552
|
+
e ? u() : f();
|
|
173
553
|
},
|
|
174
554
|
activeSecondaryBar: n ? "notifications" : null,
|
|
175
555
|
openSecondaryBar: () => {
|
|
176
|
-
|
|
556
|
+
a(!0);
|
|
177
557
|
},
|
|
178
558
|
closeSecondaryBar: () => {
|
|
179
|
-
|
|
559
|
+
a(!1);
|
|
180
560
|
},
|
|
181
561
|
toggleSecondaryBar: () => {
|
|
182
|
-
|
|
562
|
+
a((N) => !N);
|
|
183
563
|
}
|
|
184
564
|
};
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
},
|
|
187
|
-
|
|
565
|
+
return /* @__PURE__ */ r.jsx(le.Provider, { value: l, children: t });
|
|
566
|
+
}, F = (t, e, s, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, s, n) : t, Ie = (t, e, s) => {
|
|
567
|
+
se(
|
|
188
568
|
() => {
|
|
189
569
|
if (!t.current) return;
|
|
190
|
-
const n =
|
|
570
|
+
const n = R.timeline({
|
|
191
571
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
192
|
-
}),
|
|
572
|
+
}), a = {
|
|
193
573
|
navbar: t.current,
|
|
194
|
-
navLabels:
|
|
195
|
-
navIconWrappers:
|
|
196
|
-
navIcons:
|
|
197
|
-
navLinkItems:
|
|
574
|
+
navLabels: R.utils.toArray(".nav-label"),
|
|
575
|
+
navIconWrappers: R.utils.toArray(".nav-icon-wrapper"),
|
|
576
|
+
navIcons: R.utils.toArray(".nav-icon"),
|
|
577
|
+
navLinkItems: R.utils.toArray(".nav-link-item"),
|
|
198
578
|
logoutButton: document.querySelector(".logout-button"),
|
|
199
579
|
logoutLabel: document.querySelector(".logout-label"),
|
|
200
580
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -222,14 +602,14 @@ const D = (t, e) => {
|
|
|
222
602
|
),
|
|
223
603
|
// Secondary bar elements
|
|
224
604
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
225
|
-
secondaryBarContent:
|
|
226
|
-
badgeInLink:
|
|
605
|
+
secondaryBarContent: R.utils.toArray(".secondary-bar *"),
|
|
606
|
+
badgeInLink: R.utils.toArray(".badge-in-link")
|
|
227
607
|
};
|
|
228
|
-
e ?
|
|
608
|
+
e ? Re(n, a) : Le(n, a), a.secondaryBar && De(a.secondaryBar);
|
|
229
609
|
},
|
|
230
|
-
{ scope: t, dependencies: [e,
|
|
610
|
+
{ scope: t, dependencies: [e, s] }
|
|
231
611
|
);
|
|
232
|
-
},
|
|
612
|
+
}, Re = (t, e) => {
|
|
233
613
|
t.to(e.navbar, {
|
|
234
614
|
width: "5rem",
|
|
235
615
|
duration: 0.2,
|
|
@@ -288,7 +668,7 @@ const D = (t, e) => {
|
|
|
288
668
|
marginLeft: 0
|
|
289
669
|
},
|
|
290
670
|
0
|
|
291
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
671
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), F(
|
|
292
672
|
t,
|
|
293
673
|
e.buttonCrevron,
|
|
294
674
|
{
|
|
@@ -301,7 +681,7 @@ const D = (t, e) => {
|
|
|
301
681
|
}
|
|
302
682
|
},
|
|
303
683
|
0
|
|
304
|
-
),
|
|
684
|
+
), F(
|
|
305
685
|
t,
|
|
306
686
|
e.buttonContentChevron,
|
|
307
687
|
{
|
|
@@ -368,7 +748,7 @@ const D = (t, e) => {
|
|
|
368
748
|
},
|
|
369
749
|
-1
|
|
370
750
|
);
|
|
371
|
-
},
|
|
751
|
+
}, Le = (t, e) => {
|
|
372
752
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
373
753
|
e.navLinkItems,
|
|
374
754
|
{
|
|
@@ -378,7 +758,7 @@ const D = (t, e) => {
|
|
|
378
758
|
justifyContent: "flex-start"
|
|
379
759
|
},
|
|
380
760
|
-1
|
|
381
|
-
),
|
|
761
|
+
), F(
|
|
382
762
|
t,
|
|
383
763
|
e.buttonCrevron,
|
|
384
764
|
{
|
|
@@ -391,7 +771,7 @@ const D = (t, e) => {
|
|
|
391
771
|
}
|
|
392
772
|
},
|
|
393
773
|
0
|
|
394
|
-
),
|
|
774
|
+
), F(
|
|
395
775
|
t,
|
|
396
776
|
e.buttonContentChevron,
|
|
397
777
|
{
|
|
@@ -496,93 +876,93 @@ const D = (t, e) => {
|
|
|
496
876
|
},
|
|
497
877
|
0
|
|
498
878
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
499
|
-
},
|
|
500
|
-
|
|
879
|
+
}, De = (t, e) => {
|
|
880
|
+
R.to(t, {
|
|
501
881
|
x: "-100%",
|
|
502
882
|
opacity: 0,
|
|
503
883
|
duration: 0.3,
|
|
504
884
|
ease: "power2.in"
|
|
505
885
|
});
|
|
506
|
-
},
|
|
507
|
-
const [
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}, [
|
|
511
|
-
const
|
|
512
|
-
return /* @__PURE__ */
|
|
886
|
+
}, Ee = P((t, e) => {
|
|
887
|
+
const [s, n] = E(t?.currentTabName || t.tabs[0].name), a = b(null), { tabs: i = [], className: u, activeColor: f = "var(--neutral-900)" } = t;
|
|
888
|
+
y(() => {
|
|
889
|
+
a.current?.style.setProperty("--tab-bg", f);
|
|
890
|
+
}, [f]);
|
|
891
|
+
const p = i.find((d) => d.name === (t?.currentTabName || s));
|
|
892
|
+
return /* @__PURE__ */ r.jsx(
|
|
513
893
|
"div",
|
|
514
894
|
{
|
|
515
895
|
ref: e,
|
|
516
|
-
className:
|
|
896
|
+
className: h(
|
|
517
897
|
"flex flex-col gap-2",
|
|
518
898
|
"bg-neutral-strong-default",
|
|
519
899
|
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
520
900
|
" border-r border-neutral-default-default",
|
|
521
|
-
|
|
901
|
+
u
|
|
522
902
|
),
|
|
523
903
|
children: i.map(
|
|
524
|
-
(
|
|
525
|
-
const
|
|
526
|
-
|
|
904
|
+
(d) => {
|
|
905
|
+
const x = d.name === p?.name, g = typeof d.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: d.thumbnail, alt: d.description, className: "aspect-square object-contain" }) : d.thumbnail, l = () => {
|
|
906
|
+
d.disabled || (n(d.name), d.onClick && d.onClick(d.name));
|
|
527
907
|
};
|
|
528
|
-
return /* @__PURE__ */
|
|
908
|
+
return /* @__PURE__ */ r.jsx(
|
|
529
909
|
"div",
|
|
530
910
|
{
|
|
531
|
-
className:
|
|
911
|
+
className: h(
|
|
532
912
|
"bg-[(--tab-bg)]",
|
|
533
913
|
"h-12 w-[50px] z-20",
|
|
534
914
|
"flex items-center pl-[6px] ",
|
|
535
915
|
"rounded-l-[8px]",
|
|
536
916
|
"tabswitch-element relative",
|
|
537
|
-
|
|
917
|
+
x && "active"
|
|
538
918
|
),
|
|
539
|
-
onClick:
|
|
540
|
-
ref:
|
|
541
|
-
children: /* @__PURE__ */
|
|
919
|
+
onClick: l,
|
|
920
|
+
ref: a,
|
|
921
|
+
children: /* @__PURE__ */ r.jsx("div", { className: h(
|
|
542
922
|
"size-8 rounded-[4px]",
|
|
543
923
|
"grid place-items-center",
|
|
544
924
|
"tab-thumbnail-icon",
|
|
545
925
|
"bg-transparent text-neutral-default-default",
|
|
546
|
-
|
|
547
|
-
), children:
|
|
926
|
+
d?.className
|
|
927
|
+
), children: g })
|
|
548
928
|
},
|
|
549
|
-
|
|
929
|
+
d.name
|
|
550
930
|
);
|
|
551
931
|
}
|
|
552
932
|
)
|
|
553
933
|
}
|
|
554
934
|
);
|
|
555
|
-
}),
|
|
556
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
557
|
-
const
|
|
558
|
-
|
|
935
|
+
}), He = P(
|
|
936
|
+
({ children: t, isCollapsed: e = !1, className: s = "", tabs: n = [], currentTabName: a }, i) => {
|
|
937
|
+
const u = b(null), f = b(null), { registerPrimarySidebar: p, registerTabBar: d } = ae(), x = v((g) => {
|
|
938
|
+
u.current = g, typeof i == "function" ? i(g) : i && (i.current = g);
|
|
559
939
|
}, [i]);
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
-
}, [
|
|
563
|
-
|
|
564
|
-
}, [
|
|
940
|
+
return y(() => {
|
|
941
|
+
u.current && p(u);
|
|
942
|
+
}, [p]), y(() => {
|
|
943
|
+
f.current && d(f);
|
|
944
|
+
}, [d]), Ie(u, e, !1), /* @__PURE__ */ r.jsxs(
|
|
565
945
|
"div",
|
|
566
946
|
{
|
|
567
|
-
className:
|
|
947
|
+
className: h(
|
|
568
948
|
"flex"
|
|
569
949
|
),
|
|
570
950
|
children: [
|
|
571
|
-
n.length > 0 && /* @__PURE__ */
|
|
572
|
-
|
|
951
|
+
n.length > 0 && /* @__PURE__ */ r.jsx(
|
|
952
|
+
Ee,
|
|
573
953
|
{
|
|
574
954
|
tabs: n,
|
|
575
|
-
ref:
|
|
955
|
+
ref: f,
|
|
576
956
|
activeColor: "var(--neutral-900)",
|
|
577
|
-
currentTabName:
|
|
957
|
+
currentTabName: a
|
|
578
958
|
}
|
|
579
959
|
),
|
|
580
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ r.jsx(
|
|
581
961
|
"div",
|
|
582
962
|
{
|
|
583
|
-
ref:
|
|
963
|
+
ref: x,
|
|
584
964
|
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
|
|
585
|
-
${e ? "w-16" : "w-64"} ${
|
|
965
|
+
${e ? "w-16" : "w-64"} ${s}`,
|
|
586
966
|
children: t
|
|
587
967
|
}
|
|
588
968
|
)
|
|
@@ -590,11 +970,11 @@ const D = (t, e) => {
|
|
|
590
970
|
}
|
|
591
971
|
);
|
|
592
972
|
}
|
|
593
|
-
),
|
|
594
|
-
(t, e) => /* @__PURE__ */
|
|
973
|
+
), J = P(
|
|
974
|
+
(t, e) => /* @__PURE__ */ r.jsx(ke, { children: /* @__PURE__ */ r.jsx(He, { ...t, ref: e }) })
|
|
595
975
|
);
|
|
596
|
-
|
|
597
|
-
const
|
|
976
|
+
J.displayName = "SidebarRoot";
|
|
977
|
+
const Be = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: h("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
|
|
598
978
|
"button",
|
|
599
979
|
{
|
|
600
980
|
type: "button",
|
|
@@ -602,10 +982,10 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
602
982
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
603
983
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
604
984
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
605
|
-
children: t ? /* @__PURE__ */
|
|
985
|
+
children: t ? /* @__PURE__ */ r.jsx($, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx($, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
606
986
|
}
|
|
607
|
-
) }),
|
|
608
|
-
const
|
|
987
|
+
) }), Te = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Oe = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: h("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 w-full" }) }), Ye = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), ze = ({ className: t, size: e = "auto" }) => {
|
|
988
|
+
const s = () => {
|
|
609
989
|
switch (e) {
|
|
610
990
|
case "auto":
|
|
611
991
|
return "flex-grow";
|
|
@@ -617,104 +997,104 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
617
997
|
return "h-8 w-8";
|
|
618
998
|
}
|
|
619
999
|
};
|
|
620
|
-
return /* @__PURE__ */
|
|
621
|
-
},
|
|
622
|
-
Root:
|
|
623
|
-
CollapseButton:
|
|
624
|
-
Header:
|
|
625
|
-
Divider:
|
|
626
|
-
Content:
|
|
627
|
-
Spacer:
|
|
628
|
-
Footer:
|
|
629
|
-
}),
|
|
1000
|
+
return /* @__PURE__ */ r.jsx("div", { className: h(s(), t) });
|
|
1001
|
+
}, Ae = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), et = Object.assign(J, {
|
|
1002
|
+
Root: J,
|
|
1003
|
+
CollapseButton: Be,
|
|
1004
|
+
Header: Te,
|
|
1005
|
+
Divider: Oe,
|
|
1006
|
+
Content: Ye,
|
|
1007
|
+
Spacer: ze,
|
|
1008
|
+
Footer: Ae
|
|
1009
|
+
}), tt = ({
|
|
630
1010
|
children: t,
|
|
631
1011
|
icon: e,
|
|
632
|
-
label:
|
|
1012
|
+
label: s,
|
|
633
1013
|
href: n,
|
|
634
|
-
onClick:
|
|
1014
|
+
onClick: a,
|
|
635
1015
|
isActive: i = !1,
|
|
636
|
-
className:
|
|
1016
|
+
className: u
|
|
637
1017
|
}) => {
|
|
638
|
-
const
|
|
639
|
-
return /* @__PURE__ */
|
|
640
|
-
|
|
1018
|
+
const f = n ? "a" : "button";
|
|
1019
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1020
|
+
f,
|
|
641
1021
|
{
|
|
642
1022
|
href: n,
|
|
643
|
-
onClick:
|
|
644
|
-
className:
|
|
1023
|
+
onClick: a,
|
|
1024
|
+
className: h(
|
|
645
1025
|
"nav-link-item",
|
|
646
1026
|
"flex items-center w-full px-3 py-2 text-left",
|
|
647
1027
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
648
1028
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
649
1029
|
i && "bg-neutral-medium-default",
|
|
650
|
-
|
|
1030
|
+
u
|
|
651
1031
|
),
|
|
652
1032
|
children: [
|
|
653
|
-
e && /* @__PURE__ */
|
|
654
|
-
|
|
1033
|
+
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 }) }),
|
|
1034
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: s }),
|
|
655
1035
|
t
|
|
656
1036
|
]
|
|
657
1037
|
}
|
|
658
1038
|
);
|
|
659
|
-
},
|
|
1039
|
+
}, ce = ({
|
|
660
1040
|
count: t,
|
|
661
1041
|
maxCount: e = 9,
|
|
662
|
-
className:
|
|
1042
|
+
className: s = "",
|
|
663
1043
|
size: n = "medium",
|
|
664
|
-
variant:
|
|
1044
|
+
variant: a = "primary",
|
|
665
1045
|
showZero: i = !1
|
|
666
1046
|
}) => {
|
|
667
|
-
const
|
|
668
|
-
if (
|
|
669
|
-
const
|
|
1047
|
+
const u = t, f = u > e ? `+${e}` : u;
|
|
1048
|
+
if (u === 0 && !i) return null;
|
|
1049
|
+
const p = {
|
|
670
1050
|
small: "w-4.5 h-4.5 text-xs ",
|
|
671
1051
|
medium: "w-5 h-5 text-xs",
|
|
672
1052
|
large: "w-6 h-6 text-sm"
|
|
673
|
-
},
|
|
1053
|
+
}, d = {
|
|
674
1054
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
675
1055
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
676
1056
|
success: "bg-green-500 text-white",
|
|
677
1057
|
warning: "bg-yellow-500 text-black",
|
|
678
1058
|
danger: "bg-red-500 text-white"
|
|
679
1059
|
};
|
|
680
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ r.jsx("div", { className: h(
|
|
681
1061
|
"rounded-full flex items-center justify-center font-medium ",
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
), children: /* @__PURE__ */
|
|
686
|
-
},
|
|
1062
|
+
p[n],
|
|
1063
|
+
d[a],
|
|
1064
|
+
s
|
|
1065
|
+
), children: /* @__PURE__ */ r.jsx("span", { children: f }) });
|
|
1066
|
+
}, rt = ({
|
|
687
1067
|
linkActions: t,
|
|
688
1068
|
onClick: e,
|
|
689
|
-
activeAction:
|
|
690
|
-
}) => /* @__PURE__ */
|
|
691
|
-
const { isView: i = !1, actionName:
|
|
692
|
-
return
|
|
693
|
-
|
|
1069
|
+
activeAction: s
|
|
1070
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, a) => {
|
|
1071
|
+
const { isView: i = !1, actionName: u, title: f, icon: p, count: d, viewAccess: x } = n || {}, g = (typeof i == "function" ? i() : i !== !1) && (!x || x()), l = s === u;
|
|
1072
|
+
return g && /* @__PURE__ */ r.jsx(
|
|
1073
|
+
Y.div,
|
|
694
1074
|
{
|
|
695
1075
|
initial: { opacity: 0 },
|
|
696
1076
|
animate: { opacity: 1 },
|
|
697
1077
|
transition: {
|
|
698
1078
|
duration: 0.4,
|
|
699
|
-
delay:
|
|
1079
|
+
delay: a * 0.03,
|
|
700
1080
|
ease: "easeOut"
|
|
701
1081
|
},
|
|
702
1082
|
className: "relative flex justify-center w-full items-center px-3",
|
|
703
|
-
children: /* @__PURE__ */
|
|
1083
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
704
1084
|
"button",
|
|
705
1085
|
{
|
|
706
1086
|
onClick: () => {
|
|
707
|
-
e?.(
|
|
1087
|
+
e?.(u);
|
|
708
1088
|
},
|
|
709
|
-
className:
|
|
1089
|
+
className: h(
|
|
710
1090
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
711
1091
|
"transition-all duration-300 ease-out w-full",
|
|
712
1092
|
"group hover:bg-neutral-medium-selected",
|
|
713
|
-
|
|
1093
|
+
l ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
714
1094
|
),
|
|
715
1095
|
children: [
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
|
|
1096
|
+
/* @__PURE__ */ r.jsx(ie, { mode: "wait", children: l && /* @__PURE__ */ r.jsx(
|
|
1097
|
+
Y.div,
|
|
718
1098
|
{
|
|
719
1099
|
layoutId: "nav-active-bg",
|
|
720
1100
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -728,8 +1108,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
728
1108
|
}
|
|
729
1109
|
}
|
|
730
1110
|
) }),
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
|
|
1111
|
+
/* @__PURE__ */ r.jsxs(
|
|
1112
|
+
Y.div,
|
|
733
1113
|
{
|
|
734
1114
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
735
1115
|
animate: {
|
|
@@ -740,30 +1120,30 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
740
1120
|
ease: "easeOut"
|
|
741
1121
|
},
|
|
742
1122
|
children: [
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
|
|
1123
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1124
|
+
/* @__PURE__ */ r.jsx(
|
|
1125
|
+
Y.div,
|
|
746
1126
|
{
|
|
747
1127
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
748
1128
|
animate: {
|
|
749
|
-
scale:
|
|
1129
|
+
scale: l ? 1.05 : 1
|
|
750
1130
|
},
|
|
751
1131
|
transition: {
|
|
752
1132
|
duration: 0.25,
|
|
753
1133
|
ease: "easeOut"
|
|
754
1134
|
},
|
|
755
|
-
children: typeof
|
|
1135
|
+
children: typeof p == "function" ? p({
|
|
756
1136
|
size: 24,
|
|
757
|
-
className:
|
|
1137
|
+
className: h(
|
|
758
1138
|
"nav-icon transition-colors duration-250 ease-out",
|
|
759
|
-
|
|
1139
|
+
l ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
760
1140
|
)
|
|
761
1141
|
}) : null
|
|
762
1142
|
}
|
|
763
1143
|
),
|
|
764
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: f })
|
|
765
1145
|
] }),
|
|
766
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: d && d >= 1 ? /* @__PURE__ */ r.jsx(ce, { count: d, maxCount: 9, className: "" }) : "" })
|
|
767
1147
|
]
|
|
768
1148
|
}
|
|
769
1149
|
)
|
|
@@ -771,42 +1151,42 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
771
1151
|
}
|
|
772
1152
|
)
|
|
773
1153
|
},
|
|
774
|
-
|
|
1154
|
+
a
|
|
775
1155
|
);
|
|
776
|
-
}) }),
|
|
1156
|
+
}) }), nt = ({
|
|
777
1157
|
links: t,
|
|
778
1158
|
isLinkActive: e,
|
|
779
|
-
onLinkClick:
|
|
780
|
-
}) => /* @__PURE__ */
|
|
781
|
-
const { isView: i = !1, viewAccess:
|
|
782
|
-
(
|
|
1159
|
+
onLinkClick: s
|
|
1160
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, a) => {
|
|
1161
|
+
const { isView: i = !1, viewAccess: u, path: f, title: p, icon: d, count: x, relatedPaths: g } = n, l = (typeof i == "function" ? i() : i !== !1) && (!u || u()), N = e(f) || (g?.some(
|
|
1162
|
+
(w) => e(w)
|
|
783
1163
|
) ?? !1);
|
|
784
|
-
return
|
|
785
|
-
|
|
1164
|
+
return l && /* @__PURE__ */ r.jsx(
|
|
1165
|
+
Y.div,
|
|
786
1166
|
{
|
|
787
1167
|
initial: { opacity: 0 },
|
|
788
1168
|
animate: { opacity: 1 },
|
|
789
1169
|
transition: {
|
|
790
1170
|
duration: 0.4,
|
|
791
|
-
delay:
|
|
1171
|
+
delay: a * 0.03,
|
|
792
1172
|
ease: "easeOut"
|
|
793
1173
|
},
|
|
794
1174
|
className: "relative flex justify-center w-full items-center px-3",
|
|
795
|
-
children: /* @__PURE__ */
|
|
1175
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
796
1176
|
"button",
|
|
797
1177
|
{
|
|
798
1178
|
onClick: () => {
|
|
799
|
-
|
|
1179
|
+
s?.(f);
|
|
800
1180
|
},
|
|
801
|
-
className:
|
|
1181
|
+
className: h(
|
|
802
1182
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
803
1183
|
"transition-all duration-300 ease-out w-full",
|
|
804
1184
|
"group hover:bg-neutral-medium-selected",
|
|
805
|
-
|
|
1185
|
+
N ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
806
1186
|
),
|
|
807
1187
|
children: [
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
|
|
1188
|
+
/* @__PURE__ */ r.jsx(ie, { mode: "wait", children: N && /* @__PURE__ */ r.jsx(
|
|
1189
|
+
Y.div,
|
|
810
1190
|
{
|
|
811
1191
|
layoutId: "nav-active-bg",
|
|
812
1192
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -820,8 +1200,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
820
1200
|
}
|
|
821
1201
|
}
|
|
822
1202
|
) }),
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
|
|
1203
|
+
/* @__PURE__ */ r.jsxs(
|
|
1204
|
+
Y.div,
|
|
825
1205
|
{
|
|
826
1206
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
827
1207
|
animate: {
|
|
@@ -832,30 +1212,30 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
832
1212
|
ease: "easeOut"
|
|
833
1213
|
},
|
|
834
1214
|
children: [
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
|
|
1215
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1216
|
+
/* @__PURE__ */ r.jsx(
|
|
1217
|
+
Y.div,
|
|
838
1218
|
{
|
|
839
1219
|
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
840
1220
|
animate: {
|
|
841
|
-
scale:
|
|
1221
|
+
scale: N ? 1.05 : 1
|
|
842
1222
|
},
|
|
843
1223
|
transition: {
|
|
844
1224
|
duration: 0.25,
|
|
845
1225
|
ease: "easeOut"
|
|
846
1226
|
},
|
|
847
|
-
children: typeof
|
|
1227
|
+
children: typeof d == "function" ? d({
|
|
848
1228
|
size: 24,
|
|
849
|
-
className:
|
|
1229
|
+
className: h(
|
|
850
1230
|
"nav-icon transition-colors duration-250 ease-out",
|
|
851
|
-
|
|
1231
|
+
N ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
852
1232
|
)
|
|
853
1233
|
}) : null
|
|
854
1234
|
}
|
|
855
1235
|
),
|
|
856
|
-
/* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: p })
|
|
857
1237
|
] }),
|
|
858
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: x && x ? /* @__PURE__ */ r.jsx(ce, { count: x, maxCount: 9, className: "" }) : "" })
|
|
859
1239
|
]
|
|
860
1240
|
}
|
|
861
1241
|
)
|
|
@@ -863,64 +1243,99 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
863
1243
|
}
|
|
864
1244
|
)
|
|
865
1245
|
},
|
|
866
|
-
|
|
1246
|
+
a
|
|
867
1247
|
);
|
|
868
|
-
}) }),
|
|
1248
|
+
}) }), ot = ({
|
|
869
1249
|
isActiveModalNotification: t,
|
|
870
1250
|
setIsActiveModalNotification: e
|
|
871
1251
|
}) => ({ handleNotificationClick: () => {
|
|
872
1252
|
e(!0);
|
|
873
|
-
}, isActiveModalNotification: t }),
|
|
874
|
-
const e =
|
|
1253
|
+
}, isActiveModalNotification: t }), at = (t) => {
|
|
1254
|
+
const e = b(null);
|
|
875
1255
|
return {
|
|
876
1256
|
isCollapsed: t,
|
|
877
1257
|
navbarRef: e
|
|
878
1258
|
};
|
|
879
|
-
},
|
|
1259
|
+
}, st = ({
|
|
880
1260
|
isCollapsed: t,
|
|
881
1261
|
onToggle: e
|
|
882
|
-
}) => /* @__PURE__ */
|
|
1262
|
+
}) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
|
|
883
1263
|
"button",
|
|
884
1264
|
{
|
|
885
1265
|
onClick: e,
|
|
886
1266
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
887
1267
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
888
1268
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
889
|
-
children: t ? /* @__PURE__ */
|
|
1269
|
+
children: t ? /* @__PURE__ */ r.jsx($, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx($, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
890
1270
|
}
|
|
891
|
-
) }),
|
|
1271
|
+
) }), it = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
|
|
892
1272
|
"img",
|
|
893
1273
|
{
|
|
894
1274
|
src: t,
|
|
895
1275
|
className: "h-2/3 rounded-full",
|
|
896
1276
|
alt: e ?? ""
|
|
897
1277
|
}
|
|
898
|
-
) })
|
|
899
|
-
|
|
1278
|
+
) }), lt = () => {
|
|
1279
|
+
const t = b(null), e = v((i) => {
|
|
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({
|
|
900
1315
|
onFilesAccepted: t,
|
|
901
1316
|
onFilesRejected: e,
|
|
902
|
-
...
|
|
1317
|
+
...s
|
|
903
1318
|
}) {
|
|
904
|
-
const n =
|
|
905
|
-
(i,
|
|
906
|
-
i.length > 0 && t?.(i),
|
|
1319
|
+
const n = fe.useCallback(
|
|
1320
|
+
(i, u) => {
|
|
1321
|
+
i.length > 0 && t?.(i), u.length > 0 && e?.(u);
|
|
907
1322
|
},
|
|
908
1323
|
[t, e]
|
|
909
|
-
),
|
|
1324
|
+
), a = he({
|
|
910
1325
|
onDrop: n,
|
|
911
|
-
...
|
|
1326
|
+
...s
|
|
912
1327
|
});
|
|
913
1328
|
return {
|
|
914
|
-
...
|
|
915
|
-
hasErrors:
|
|
1329
|
+
...a,
|
|
1330
|
+
hasErrors: a.fileRejections.length > 0
|
|
916
1331
|
};
|
|
917
1332
|
}
|
|
918
|
-
const
|
|
919
|
-
const
|
|
920
|
-
return
|
|
1333
|
+
const dt = (t, e = !0) => {
|
|
1334
|
+
const s = b(null);
|
|
1335
|
+
return y(() => {
|
|
921
1336
|
if (!e) return;
|
|
922
|
-
const n = (
|
|
923
|
-
|
|
1337
|
+
const n = (a) => {
|
|
1338
|
+
s.current && !s.current.contains(a.target) && t();
|
|
924
1339
|
};
|
|
925
1340
|
return document.addEventListener("mousedown", n, {
|
|
926
1341
|
capture: !0
|
|
@@ -933,70 +1348,74 @@ const je = (t, e = !0) => {
|
|
|
933
1348
|
capture: !0
|
|
934
1349
|
});
|
|
935
1350
|
};
|
|
936
|
-
}, [t, e]),
|
|
1351
|
+
}, [t, e]), s;
|
|
937
1352
|
};
|
|
938
1353
|
export {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1354
|
+
pt as Avatar,
|
|
1355
|
+
ce as Badge,
|
|
1356
|
+
de as Button,
|
|
1357
|
+
gt as CardProfile,
|
|
1358
|
+
ht as ChangueAccount,
|
|
1359
|
+
vt as CheckBox,
|
|
1360
|
+
it as CompanyLogo,
|
|
1361
|
+
Kt as DatePicker,
|
|
1362
|
+
wt as DialogModal,
|
|
1363
|
+
be as DrawerDesktop,
|
|
1364
|
+
Je as DrawerMobile,
|
|
1365
|
+
Pr as DropZone,
|
|
1366
|
+
Br as FAButton,
|
|
1367
|
+
kt as Header,
|
|
1368
|
+
Ct as Icons,
|
|
1369
|
+
Cr as Image,
|
|
1370
|
+
jr as ImageGallery,
|
|
1371
|
+
Rt as Input,
|
|
1372
|
+
Dt as InputMultiple,
|
|
1373
|
+
vr as LayoutGeneric,
|
|
1374
|
+
Ht as Logo,
|
|
1375
|
+
Tt as Menu,
|
|
1376
|
+
rt as NavBarActions,
|
|
1377
|
+
st as NavbarCollapseButton,
|
|
1378
|
+
nt as NavbarLinks,
|
|
1379
|
+
tt as NavigationLink,
|
|
1380
|
+
zr as OtpInput,
|
|
1381
|
+
Yt as Pagination,
|
|
1382
|
+
At as ProfilePictureUpload,
|
|
1383
|
+
qt as ProgressBar,
|
|
1384
|
+
Or as RadioButton,
|
|
1385
|
+
Ke as SecondaryBar,
|
|
1386
|
+
hr as SegmentedButton,
|
|
1387
|
+
$t as Select,
|
|
1388
|
+
Er as SelectSearch,
|
|
1389
|
+
et as Sidebar,
|
|
1390
|
+
ke as SidebarProvider,
|
|
1391
|
+
yr as SidebarRefProvider,
|
|
1392
|
+
xr as Skeleton,
|
|
1393
|
+
Wt as Spinner,
|
|
1394
|
+
Vt as Steps,
|
|
1395
|
+
_t as SwipeContainer,
|
|
1396
|
+
Zt as Switch,
|
|
1397
|
+
cr as TabLinks,
|
|
1398
|
+
er as Table,
|
|
1399
|
+
tr as TableBody,
|
|
1400
|
+
rr as TableCaption,
|
|
1401
|
+
nr as TableCell,
|
|
1402
|
+
or as TableFooter,
|
|
1403
|
+
ar as TableHead,
|
|
1404
|
+
sr as TableHeader,
|
|
1405
|
+
ir as TableRow,
|
|
1406
|
+
dr as TextArea,
|
|
1407
|
+
kr as Toast,
|
|
1408
|
+
Lr as ToastProvider,
|
|
1409
|
+
mr as Tooltip,
|
|
1410
|
+
Ir as toastpyrion,
|
|
1411
|
+
ot as useActionsNavbar,
|
|
1412
|
+
dt as useClickOutside,
|
|
1413
|
+
jt as useDialogControl,
|
|
1414
|
+
lt as useDrawerDesktop,
|
|
1415
|
+
ct as useDrawerMobile,
|
|
1416
|
+
ut as useFileDropzone,
|
|
1417
|
+
Mr as useIsMobile,
|
|
1418
|
+
at as useNavbarCollapse,
|
|
1419
|
+
Qe as useSidebar,
|
|
1420
|
+
ae as useSidebarContext
|
|
1002
1421
|
};
|