rr-react-ui-library 0.0.8 → 0.0.9
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/README.md +53 -30
- package/dist/components/ui/ThemeSwitcher/index.d.ts +7 -0
- package/dist/components/ui/ThemeSwitcher/index.d.ts.map +1 -0
- package/dist/components/ui/cards/Card/index.d.ts +1 -2
- package/dist/components/ui/cards/Card/index.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +270 -266
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/dist/components/ui/ThemeToggle.d.ts +0 -7
- package/dist/components/ui/ThemeToggle.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as f, jsx as l, Fragment as ot } from "react/jsx-runtime";
|
|
2
|
-
import z, {
|
|
2
|
+
import z, { useRef as le, useState as U, useEffect as X, forwardRef as Ht, createElement as Ye, useMemo as re, useCallback as qt, createContext as Wt, useContext as Xt, Children as kr, isValidElement as Re, useLayoutEffect as Yt, useSyncExternalStore as wr, cloneElement as it } from "react";
|
|
3
3
|
import { createPortal as Gt } from "react-dom";
|
|
4
4
|
import { useLocation as lt, useNavigate as Nr, Link as Tr } from "react-router";
|
|
5
5
|
const ae = {
|
|
@@ -77,12 +77,12 @@ const ae = {
|
|
|
77
77
|
}, gn = ({ children: t, cols: e = 1 }) => {
|
|
78
78
|
const r = `grid-cols-${e}`;
|
|
79
79
|
return /* @__PURE__ */ l("div", { className: `grid ${r} gap-3 mb-3`, children: t });
|
|
80
|
-
},
|
|
80
|
+
}, Or = {
|
|
81
81
|
xs: "h-3 w-3 border-2",
|
|
82
82
|
sm: "h-4 w-4 border-2",
|
|
83
83
|
md: "h-5 w-5 border-[3px]",
|
|
84
84
|
lg: "h-6 w-6 border-4"
|
|
85
|
-
},
|
|
85
|
+
}, $r = {
|
|
86
86
|
default: "text-slate-200",
|
|
87
87
|
info: "text-sky-600 dark:text-sky-300",
|
|
88
88
|
danger: "text-red-600 dark:text-red-300",
|
|
@@ -109,8 +109,8 @@ const ae = {
|
|
|
109
109
|
{
|
|
110
110
|
className: [
|
|
111
111
|
"inline-block rounded-full border-solid border-current border-t-transparent animate-spin",
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Or[e],
|
|
113
|
+
$r[s]
|
|
114
114
|
].join(" ")
|
|
115
115
|
}
|
|
116
116
|
),
|
|
@@ -277,19 +277,107 @@ const ae = {
|
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
279
|
] });
|
|
280
|
+
}, Er = {
|
|
281
|
+
violet: {
|
|
282
|
+
text: "text-slate-50",
|
|
283
|
+
arrow: "border-t-violet-600",
|
|
284
|
+
bg: "bg-violet-600 dark:bg-slate-600"
|
|
285
|
+
},
|
|
286
|
+
yellow: {
|
|
287
|
+
text: "text-black dark:text-slate-50",
|
|
288
|
+
arrow: "border-t-yellow-500",
|
|
289
|
+
bg: "bg-yellow-500 dark:bg-amber-800"
|
|
290
|
+
},
|
|
291
|
+
red: {
|
|
292
|
+
text: "text-slate-50",
|
|
293
|
+
arrow: "border-t-red-600",
|
|
294
|
+
bg: "bg-red-600 dark:bg-red-800"
|
|
295
|
+
},
|
|
296
|
+
default: {
|
|
297
|
+
bg: "bg-gray-600",
|
|
298
|
+
text: "text-slate-50",
|
|
299
|
+
arrow: "border-t-gray-800"
|
|
300
|
+
}
|
|
301
|
+
}, $e = ({
|
|
302
|
+
text: t,
|
|
303
|
+
children: e,
|
|
304
|
+
position: r = "top",
|
|
305
|
+
color: a = "default"
|
|
306
|
+
}) => {
|
|
307
|
+
const s = Er[a], n = le(null), [o, i] = U(!1), [d, c] = U({ top: 0, left: 0, transform: "" });
|
|
308
|
+
return X(() => {
|
|
309
|
+
if (!o || !n.current) return;
|
|
310
|
+
const u = n.current.getBoundingClientRect(), y = 8, w = (() => {
|
|
311
|
+
switch (r) {
|
|
312
|
+
case "bottom":
|
|
313
|
+
return {
|
|
314
|
+
top: u.bottom + window.scrollY + y,
|
|
315
|
+
left: u.left + window.scrollX + u.width / 2,
|
|
316
|
+
transform: "translateX(-50%)"
|
|
317
|
+
};
|
|
318
|
+
case "left":
|
|
319
|
+
return {
|
|
320
|
+
top: u.top + window.scrollY + u.height / 2,
|
|
321
|
+
left: u.left + window.scrollX - y,
|
|
322
|
+
transform: "translate(-100%, -50%)"
|
|
323
|
+
};
|
|
324
|
+
case "right":
|
|
325
|
+
return {
|
|
326
|
+
top: u.top + window.scrollY + u.height / 2,
|
|
327
|
+
left: u.right + window.scrollX + y,
|
|
328
|
+
transform: "translateY(-50%)"
|
|
329
|
+
};
|
|
330
|
+
default:
|
|
331
|
+
return {
|
|
332
|
+
top: u.top + window.scrollY - y,
|
|
333
|
+
left: u.left + window.scrollX + u.width / 2,
|
|
334
|
+
transform: "translate(-50%, -100%)"
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
})();
|
|
338
|
+
c(w);
|
|
339
|
+
}, [o, r]), /* @__PURE__ */ f(
|
|
340
|
+
"div",
|
|
341
|
+
{
|
|
342
|
+
ref: n,
|
|
343
|
+
className: "relative",
|
|
344
|
+
onMouseEnter: () => i(!0),
|
|
345
|
+
onMouseLeave: () => i(!1),
|
|
346
|
+
onFocus: () => i(!0),
|
|
347
|
+
onBlur: () => i(!1),
|
|
348
|
+
children: [
|
|
349
|
+
e,
|
|
350
|
+
typeof document < "u" && Gt(
|
|
351
|
+
/* @__PURE__ */ l(
|
|
352
|
+
"div",
|
|
353
|
+
{
|
|
354
|
+
style: {
|
|
355
|
+
top: d.top,
|
|
356
|
+
left: d.left,
|
|
357
|
+
transform: d.transform
|
|
358
|
+
},
|
|
359
|
+
className: `fixed px-2 py-1 text-xs rounded shadow-lg transition-opacity duration-150 whitespace-nowrap pointer-events-none z-50 ${s.bg} ${s.text} ${o ? "opacity-100" : "opacity-0"}`,
|
|
360
|
+
children: t
|
|
361
|
+
}
|
|
362
|
+
),
|
|
363
|
+
document.body
|
|
364
|
+
)
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
);
|
|
280
368
|
};
|
|
281
|
-
const
|
|
369
|
+
const Lr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jr = (t) => t.replace(
|
|
282
370
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
283
371
|
(e, r, a) => a ? a.toUpperCase() : r.toLowerCase()
|
|
284
372
|
), vt = (t) => {
|
|
285
|
-
const e =
|
|
373
|
+
const e = jr(t);
|
|
286
374
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
287
|
-
}, Jt = (...t) => t.filter((e, r, a) => !!e && e.trim() !== "" && a.indexOf(e) === r).join(" ").trim(),
|
|
375
|
+
}, Jt = (...t) => t.filter((e, r, a) => !!e && e.trim() !== "" && a.indexOf(e) === r).join(" ").trim(), Ar = (t) => {
|
|
288
376
|
for (const e in t)
|
|
289
377
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
290
378
|
return !0;
|
|
291
379
|
};
|
|
292
|
-
var
|
|
380
|
+
var Rr = {
|
|
293
381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
294
382
|
width: 24,
|
|
295
383
|
height: 24,
|
|
@@ -300,7 +388,7 @@ var Ar = {
|
|
|
300
388
|
strokeLinecap: "round",
|
|
301
389
|
strokeLinejoin: "round"
|
|
302
390
|
};
|
|
303
|
-
const
|
|
391
|
+
const Mr = Ht(
|
|
304
392
|
({
|
|
305
393
|
color: t = "currentColor",
|
|
306
394
|
size: e = 24,
|
|
@@ -314,13 +402,13 @@ const Rr = Ht(
|
|
|
314
402
|
"svg",
|
|
315
403
|
{
|
|
316
404
|
ref: d,
|
|
317
|
-
...
|
|
405
|
+
...Rr,
|
|
318
406
|
width: e,
|
|
319
407
|
height: e,
|
|
320
408
|
stroke: t,
|
|
321
409
|
strokeWidth: a ? Number(r) * 24 / Number(e) : r,
|
|
322
410
|
className: Jt("lucide", s),
|
|
323
|
-
...!n && !
|
|
411
|
+
...!n && !Ar(i) && { "aria-hidden": "true" },
|
|
324
412
|
...i
|
|
325
413
|
},
|
|
326
414
|
[
|
|
@@ -331,11 +419,11 @@ const Rr = Ht(
|
|
|
331
419
|
);
|
|
332
420
|
const q = (t, e) => {
|
|
333
421
|
const r = Ht(
|
|
334
|
-
({ className: a, ...s }, n) => Ye(
|
|
422
|
+
({ className: a, ...s }, n) => Ye(Mr, {
|
|
335
423
|
ref: n,
|
|
336
424
|
iconNode: e,
|
|
337
425
|
className: Jt(
|
|
338
|
-
`lucide-${
|
|
426
|
+
`lucide-${Lr(vt(t))}`,
|
|
339
427
|
`lucide-${t}`,
|
|
340
428
|
a
|
|
341
429
|
),
|
|
@@ -344,7 +432,7 @@ const q = (t, e) => {
|
|
|
344
432
|
);
|
|
345
433
|
return r.displayName = vt(t), r;
|
|
346
434
|
};
|
|
347
|
-
const
|
|
435
|
+
const zr = [
|
|
348
436
|
[
|
|
349
437
|
"path",
|
|
350
438
|
{
|
|
@@ -352,16 +440,16 @@ const Mr = [
|
|
|
352
440
|
key: "169zse"
|
|
353
441
|
}
|
|
354
442
|
]
|
|
355
|
-
],
|
|
356
|
-
const
|
|
443
|
+
], Pr = q("activity", zr);
|
|
444
|
+
const Zr = [
|
|
357
445
|
["path", { d: "m7 7 10 10", key: "1fmybs" }],
|
|
358
446
|
["path", { d: "M17 7v10H7", key: "6fjiku" }]
|
|
359
|
-
],
|
|
360
|
-
const
|
|
447
|
+
], Br = q("arrow-down-right", Zr);
|
|
448
|
+
const Dr = [
|
|
361
449
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
362
450
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
363
|
-
],
|
|
364
|
-
const
|
|
451
|
+
], Vr = q("arrow-up-right", Dr);
|
|
452
|
+
const Fr = [
|
|
365
453
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
366
454
|
[
|
|
367
455
|
"path",
|
|
@@ -370,34 +458,34 @@ const Vr = [
|
|
|
370
458
|
key: "11g9vi"
|
|
371
459
|
}
|
|
372
460
|
]
|
|
373
|
-
],
|
|
374
|
-
const
|
|
375
|
-
const
|
|
376
|
-
const
|
|
461
|
+
], Ur = q("bell", Fr);
|
|
462
|
+
const Hr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], qr = q("chevron-left", Hr);
|
|
463
|
+
const Wr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Qt = q("chevron-right", Wr);
|
|
464
|
+
const Xr = [
|
|
377
465
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
378
466
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
379
467
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
380
|
-
],
|
|
381
|
-
const
|
|
468
|
+
], Yr = q("history", Xr);
|
|
469
|
+
const Gr = [
|
|
382
470
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
383
471
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
384
|
-
],
|
|
385
|
-
const
|
|
472
|
+
], Jr = q("lock", Gr);
|
|
473
|
+
const Qr = [
|
|
386
474
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
387
475
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
388
476
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
389
|
-
],
|
|
390
|
-
const
|
|
477
|
+
], Kr = q("log-out", Qr);
|
|
478
|
+
const ea = [
|
|
391
479
|
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
392
480
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
393
481
|
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
394
|
-
],
|
|
395
|
-
const
|
|
482
|
+
], ta = q("menu", ea);
|
|
483
|
+
const ra = [
|
|
396
484
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
397
485
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
398
486
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
399
|
-
],
|
|
400
|
-
const
|
|
487
|
+
], aa = q("monitor", ra);
|
|
488
|
+
const sa = [
|
|
401
489
|
[
|
|
402
490
|
"path",
|
|
403
491
|
{
|
|
@@ -405,12 +493,12 @@ const aa = [
|
|
|
405
493
|
key: "kfwtm"
|
|
406
494
|
}
|
|
407
495
|
]
|
|
408
|
-
],
|
|
409
|
-
const
|
|
496
|
+
], na = q("moon", sa);
|
|
497
|
+
const oa = [
|
|
410
498
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
411
499
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
412
|
-
],
|
|
413
|
-
const
|
|
500
|
+
], ia = q("search", oa);
|
|
501
|
+
const la = [
|
|
414
502
|
[
|
|
415
503
|
"path",
|
|
416
504
|
{
|
|
@@ -419,8 +507,8 @@ const ia = [
|
|
|
419
507
|
}
|
|
420
508
|
],
|
|
421
509
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
422
|
-
],
|
|
423
|
-
const
|
|
510
|
+
], da = q("settings", la);
|
|
511
|
+
const ca = [
|
|
424
512
|
[
|
|
425
513
|
"path",
|
|
426
514
|
{
|
|
@@ -431,8 +519,8 @@ const da = [
|
|
|
431
519
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
432
520
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
433
521
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
434
|
-
],
|
|
435
|
-
const
|
|
522
|
+
], ua = q("sparkles", ca);
|
|
523
|
+
const fa = [
|
|
436
524
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
437
525
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
438
526
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -442,15 +530,15 @@ const ua = [
|
|
|
442
530
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
443
531
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
444
532
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
445
|
-
],
|
|
446
|
-
const
|
|
533
|
+
], ma = q("sun", fa);
|
|
534
|
+
const ha = [
|
|
447
535
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
448
536
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
449
|
-
],
|
|
450
|
-
const
|
|
537
|
+
], pa = q("user", ha);
|
|
538
|
+
const ga = [
|
|
451
539
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
452
540
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
453
|
-
], xt = q("x",
|
|
541
|
+
], xt = q("x", ga), ya = {
|
|
454
542
|
info: "focus:border-sky-400 focus-visible:border-sky-400",
|
|
455
543
|
danger: "focus:border-red-400 focus-visible:border-red-400",
|
|
456
544
|
default: "focus:border-slate-400 focus-visible:border-slate-400",
|
|
@@ -458,7 +546,7 @@ const pa = [
|
|
|
458
546
|
primary: "focus:border-violet-400 focus-visible:border-violet-400",
|
|
459
547
|
secondary: "focus:border-slate-400 focus-visible:border-slate-400",
|
|
460
548
|
success: "focus:border-emerald-400 focus-visible:border-emerald-400"
|
|
461
|
-
},
|
|
549
|
+
}, ba = {
|
|
462
550
|
xs: "px-2 py-2 text-xs",
|
|
463
551
|
small: "px-3 py-2.5 text-sm",
|
|
464
552
|
medium: "px-3.5 py-3 text-sm",
|
|
@@ -483,7 +571,7 @@ const pa = [
|
|
|
483
571
|
const [x, g] = U(!1), _ = le(null), h = re(
|
|
484
572
|
() => n.find((Z) => String(Z.value) === String(s)),
|
|
485
573
|
[n, s]
|
|
486
|
-
), b = h?.label ?? T, p =
|
|
574
|
+
), b = h?.label ?? T, p = ba[c], j = re(() => typeof w == "number" ? { maxHeight: `${w}px` } : { maxHeight: w }, [w]), B = x ? "border border-slate-300 dark:border-slate-500 shadow-sm" : "border border-slate-200 dark:border-slate-600 shadow-sm", E = a ? "border border-red-700 dark:border-red-500 focus:border-red-700 focus-visible:border-red-700" : "", S = () => !d && g((Z) => !Z), D = qt((Z) => {
|
|
487
575
|
_.current && !_.current.contains(Z.target) && g(!1);
|
|
488
576
|
}, []);
|
|
489
577
|
X(() => {
|
|
@@ -518,7 +606,7 @@ const pa = [
|
|
|
518
606
|
name: e,
|
|
519
607
|
disabled: d,
|
|
520
608
|
onClick: S,
|
|
521
|
-
className: `w-full flex items-center justify-between gap-2 rounded-md bg-slate-50 dark:bg-gray-700 text-slate-900 dark:text-slate-100 border border-slate-200 dark:border-slate-500 focus:outline-none focus-visible:shadow-sm disabled:cursor-not-allowed disabled:opacity-60 transition-colors ${
|
|
609
|
+
className: `w-full flex items-center justify-between gap-2 rounded-md bg-slate-50 dark:bg-gray-700 text-slate-900 dark:text-slate-100 border border-slate-200 dark:border-slate-500 focus:outline-none focus-visible:shadow-sm disabled:cursor-not-allowed disabled:opacity-60 transition-colors ${ya[y]} ${p} ${B} ${E}`,
|
|
522
610
|
children: [
|
|
523
611
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2 min-h-5", children: [
|
|
524
612
|
h?.icon ? /* @__PURE__ */ l("span", { className: "text-gray-500 dark:text-gray-300", children: h.icon }) : null,
|
|
@@ -632,7 +720,7 @@ const pa = [
|
|
|
632
720
|
r(d);
|
|
633
721
|
};
|
|
634
722
|
return /* @__PURE__ */ l(er.Provider, { value: { theme: e, setTheme: i, resolvedTheme: a }, children: t });
|
|
635
|
-
},
|
|
723
|
+
}, va = () => {
|
|
636
724
|
const t = Xt(er);
|
|
637
725
|
if (!t)
|
|
638
726
|
throw new Error("useTheme must be used within ThemeProvider");
|
|
@@ -640,108 +728,20 @@ const pa = [
|
|
|
640
728
|
}, tr = ({
|
|
641
729
|
forceDarkTheme: t = !1
|
|
642
730
|
}) => {
|
|
643
|
-
const { theme: e, setTheme: r } =
|
|
731
|
+
const { theme: e, setTheme: r } = va();
|
|
644
732
|
return /* @__PURE__ */ l(
|
|
645
733
|
Kt,
|
|
646
734
|
{
|
|
647
735
|
value: e,
|
|
648
736
|
options: [
|
|
649
|
-
{ value: "light", label: "Light", icon: /* @__PURE__ */ l(
|
|
650
|
-
{ value: "dark", label: "Dark", icon: /* @__PURE__ */ l(
|
|
651
|
-
{ value: "system", label: "System", icon: /* @__PURE__ */ l(
|
|
737
|
+
{ value: "light", label: "Light", icon: /* @__PURE__ */ l(ma, { size: 16 }) },
|
|
738
|
+
{ value: "dark", label: "Dark", icon: /* @__PURE__ */ l(na, { size: 16 }) },
|
|
739
|
+
{ value: "system", label: "System", icon: /* @__PURE__ */ l(aa, { size: 16 }) }
|
|
652
740
|
],
|
|
653
741
|
onChange: (s) => r(s),
|
|
654
742
|
forceDarkTheme: t
|
|
655
743
|
}
|
|
656
744
|
);
|
|
657
|
-
}, va = {
|
|
658
|
-
violet: {
|
|
659
|
-
text: "text-slate-50",
|
|
660
|
-
arrow: "border-t-violet-600",
|
|
661
|
-
bg: "bg-violet-600 dark:bg-slate-600"
|
|
662
|
-
},
|
|
663
|
-
yellow: {
|
|
664
|
-
text: "text-black dark:text-slate-50",
|
|
665
|
-
arrow: "border-t-yellow-500",
|
|
666
|
-
bg: "bg-yellow-500 dark:bg-amber-800"
|
|
667
|
-
},
|
|
668
|
-
red: {
|
|
669
|
-
text: "text-slate-50",
|
|
670
|
-
arrow: "border-t-red-600",
|
|
671
|
-
bg: "bg-red-600 dark:bg-red-800"
|
|
672
|
-
},
|
|
673
|
-
default: {
|
|
674
|
-
bg: "bg-gray-600",
|
|
675
|
-
text: "text-slate-50",
|
|
676
|
-
arrow: "border-t-gray-800"
|
|
677
|
-
}
|
|
678
|
-
}, Oe = ({
|
|
679
|
-
text: t,
|
|
680
|
-
children: e,
|
|
681
|
-
position: r = "top",
|
|
682
|
-
color: a = "default"
|
|
683
|
-
}) => {
|
|
684
|
-
const s = va[a], n = le(null), [o, i] = U(!1), [d, c] = U({ top: 0, left: 0, transform: "" });
|
|
685
|
-
return X(() => {
|
|
686
|
-
if (!o || !n.current) return;
|
|
687
|
-
const u = n.current.getBoundingClientRect(), y = 8, w = (() => {
|
|
688
|
-
switch (r) {
|
|
689
|
-
case "bottom":
|
|
690
|
-
return {
|
|
691
|
-
top: u.bottom + window.scrollY + y,
|
|
692
|
-
left: u.left + window.scrollX + u.width / 2,
|
|
693
|
-
transform: "translateX(-50%)"
|
|
694
|
-
};
|
|
695
|
-
case "left":
|
|
696
|
-
return {
|
|
697
|
-
top: u.top + window.scrollY + u.height / 2,
|
|
698
|
-
left: u.left + window.scrollX - y,
|
|
699
|
-
transform: "translate(-100%, -50%)"
|
|
700
|
-
};
|
|
701
|
-
case "right":
|
|
702
|
-
return {
|
|
703
|
-
top: u.top + window.scrollY + u.height / 2,
|
|
704
|
-
left: u.right + window.scrollX + y,
|
|
705
|
-
transform: "translateY(-50%)"
|
|
706
|
-
};
|
|
707
|
-
default:
|
|
708
|
-
return {
|
|
709
|
-
top: u.top + window.scrollY - y,
|
|
710
|
-
left: u.left + window.scrollX + u.width / 2,
|
|
711
|
-
transform: "translate(-50%, -100%)"
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
})();
|
|
715
|
-
c(w);
|
|
716
|
-
}, [o, r]), /* @__PURE__ */ f(
|
|
717
|
-
"div",
|
|
718
|
-
{
|
|
719
|
-
ref: n,
|
|
720
|
-
className: "relative",
|
|
721
|
-
onMouseEnter: () => i(!0),
|
|
722
|
-
onMouseLeave: () => i(!1),
|
|
723
|
-
onFocus: () => i(!0),
|
|
724
|
-
onBlur: () => i(!1),
|
|
725
|
-
children: [
|
|
726
|
-
e,
|
|
727
|
-
typeof document < "u" && Gt(
|
|
728
|
-
/* @__PURE__ */ l(
|
|
729
|
-
"div",
|
|
730
|
-
{
|
|
731
|
-
style: {
|
|
732
|
-
top: d.top,
|
|
733
|
-
left: d.left,
|
|
734
|
-
transform: d.transform
|
|
735
|
-
},
|
|
736
|
-
className: `fixed px-2 py-1 text-xs rounded shadow-lg transition-opacity duration-150 whitespace-nowrap pointer-events-none z-50 ${s.bg} ${s.text} ${o ? "opacity-100" : "opacity-0"}`,
|
|
737
|
-
children: t
|
|
738
|
-
}
|
|
739
|
-
),
|
|
740
|
-
document.body
|
|
741
|
-
)
|
|
742
|
-
]
|
|
743
|
-
}
|
|
744
|
-
);
|
|
745
745
|
}, _t = {
|
|
746
746
|
xs: "max-w-xs",
|
|
747
747
|
xl: "max-w-xl",
|
|
@@ -1013,7 +1013,7 @@ const pa = [
|
|
|
1013
1013
|
{
|
|
1014
1014
|
className: `flex items-center gap-1 text-sm font-semibold ${s === "positive" ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"}`,
|
|
1015
1015
|
children: [
|
|
1016
|
-
s === "positive" ? /* @__PURE__ */ l(
|
|
1016
|
+
s === "positive" ? /* @__PURE__ */ l(Vr, { className: "w-4 h-4" }) : /* @__PURE__ */ l(Br, { className: "w-4 h-4" }),
|
|
1017
1017
|
a
|
|
1018
1018
|
]
|
|
1019
1019
|
}
|
|
@@ -1149,7 +1149,7 @@ const pa = [
|
|
|
1149
1149
|
/* @__PURE__ */ l("span", { className: "text-xs text-slate-500 dark:text-slate-400 whitespace-nowrap", children: a })
|
|
1150
1150
|
] }), In = ({
|
|
1151
1151
|
title: t = "Recent Activity",
|
|
1152
|
-
icon: e =
|
|
1152
|
+
icon: e = Pr,
|
|
1153
1153
|
activities: r,
|
|
1154
1154
|
className: a = ""
|
|
1155
1155
|
}) => /* @__PURE__ */ f(ct, { className: a, children: [
|
|
@@ -1168,7 +1168,7 @@ const pa = [
|
|
|
1168
1168
|
},
|
|
1169
1169
|
n
|
|
1170
1170
|
)) }) })
|
|
1171
|
-
] }),
|
|
1171
|
+
] }), On = ({
|
|
1172
1172
|
label: t,
|
|
1173
1173
|
value: e,
|
|
1174
1174
|
color: r = "bg-violet-600",
|
|
@@ -1201,7 +1201,7 @@ const pa = [
|
|
|
1201
1201
|
}
|
|
1202
1202
|
) })
|
|
1203
1203
|
] });
|
|
1204
|
-
},
|
|
1204
|
+
}, $n = ({
|
|
1205
1205
|
limit: t,
|
|
1206
1206
|
totalDocs: e,
|
|
1207
1207
|
totalPages: r,
|
|
@@ -1225,7 +1225,7 @@ const pa = [
|
|
|
1225
1225
|
variant: c,
|
|
1226
1226
|
ariaLabel: "Previous",
|
|
1227
1227
|
disabled: !s,
|
|
1228
|
-
icon: /* @__PURE__ */ l(
|
|
1228
|
+
icon: /* @__PURE__ */ l(qr, { className: "size-4", "aria-hidden": "true" }),
|
|
1229
1229
|
onClick: () => s && o(a - 1),
|
|
1230
1230
|
className: "rounded-l-md focus:z-20"
|
|
1231
1231
|
},
|
|
@@ -1451,7 +1451,7 @@ const pa = [
|
|
|
1451
1451
|
"!"
|
|
1452
1452
|
] })
|
|
1453
1453
|
] });
|
|
1454
|
-
},
|
|
1454
|
+
}, Oa = {
|
|
1455
1455
|
info: "focus:border-sky-400 focus-visible:border-sky-400",
|
|
1456
1456
|
danger: "focus:border-red-400 focus-visible:border-red-400",
|
|
1457
1457
|
default: "focus:border-slate-400 focus-visible:border-slate-400",
|
|
@@ -1459,7 +1459,7 @@ const pa = [
|
|
|
1459
1459
|
primary: "focus:border-violet-400 focus-visible:border-violet-400",
|
|
1460
1460
|
secondary: "focus:border-slate-400 focus-visible:border-slate-400",
|
|
1461
1461
|
success: "focus:border-emerald-400 focus-visible:border-emerald-400"
|
|
1462
|
-
},
|
|
1462
|
+
}, $a = {
|
|
1463
1463
|
none: "resize-none",
|
|
1464
1464
|
both: "resize",
|
|
1465
1465
|
vertical: "resize-y",
|
|
@@ -1507,8 +1507,8 @@ const pa = [
|
|
|
1507
1507
|
className: [
|
|
1508
1508
|
"block w-full px-4 py-3 bg-slate-50 dark:bg-gray-700 text-slate-800 dark:text-slate-100 shadow-sm placeholder-gray-400 focus:outline-none border transition-colors",
|
|
1509
1509
|
Ea[w],
|
|
1510
|
-
|
|
1511
|
-
|
|
1510
|
+
$a[T],
|
|
1511
|
+
Oa[y],
|
|
1512
1512
|
a ? "border-red-700 dark:border-red-500 focus:border-red-700 focus-visible:border-red-700" : "border-gray-300 dark:border-gray-600 focus:border-violet-400 focus-visible:border-violet-400",
|
|
1513
1513
|
c ? "cursor-not-allowed opacity-70" : "",
|
|
1514
1514
|
d
|
|
@@ -1780,16 +1780,16 @@ const pa = [
|
|
|
1780
1780
|
emptyStateLabel: _ = "No results found"
|
|
1781
1781
|
}) => {
|
|
1782
1782
|
const [h, b] = U(!1), [p, j] = U(""), B = le(null), E = le(null), S = re(
|
|
1783
|
-
() => d.map((
|
|
1783
|
+
() => d.map(($) => String($)),
|
|
1784
1784
|
[d]
|
|
1785
1785
|
), D = re(() => i && Object.keys(i).length > 0 ? Object.values(i).flat() : s ?? [], [i, s]), F = re(
|
|
1786
|
-
() => D.map((
|
|
1786
|
+
() => D.map(($) => String($.value)),
|
|
1787
1787
|
[D]
|
|
1788
1788
|
), Z = re(
|
|
1789
|
-
() => F.length > 0 && F.every((
|
|
1789
|
+
() => F.length > 0 && F.every(($) => S.includes($)),
|
|
1790
1790
|
[F, S]
|
|
1791
|
-
), G = () => !c && b((
|
|
1792
|
-
B.current && !B.current.contains(
|
|
1791
|
+
), G = () => !c && b(($) => !$), J = qt(($) => {
|
|
1792
|
+
B.current && !B.current.contains($.target) && b(!1);
|
|
1793
1793
|
}, []);
|
|
1794
1794
|
X(() => {
|
|
1795
1795
|
if (h)
|
|
@@ -1797,43 +1797,43 @@ const pa = [
|
|
|
1797
1797
|
}, [J, h]), X(() => {
|
|
1798
1798
|
h && E.current && y && E.current.focus();
|
|
1799
1799
|
}, [h, y]);
|
|
1800
|
-
const ye = (
|
|
1801
|
-
n(Array.from(new Set(
|
|
1800
|
+
const ye = ($) => {
|
|
1801
|
+
n(Array.from(new Set($)));
|
|
1802
1802
|
}, _e = () => {
|
|
1803
1803
|
ye(Z ? [] : F);
|
|
1804
|
-
}, ke = (
|
|
1805
|
-
const P =
|
|
1804
|
+
}, ke = ($) => {
|
|
1805
|
+
const P = $.map((Q) => String(Q.value)), oe = P.every((Q) => S.includes(Q));
|
|
1806
1806
|
ye(
|
|
1807
1807
|
oe ? S.filter((Q) => !P.includes(Q)) : [...S, ...P]
|
|
1808
1808
|
);
|
|
1809
|
-
}, de = (
|
|
1810
|
-
const P = S.includes(
|
|
1809
|
+
}, de = ($) => {
|
|
1810
|
+
const P = S.includes($);
|
|
1811
1811
|
ye(
|
|
1812
|
-
P ? S.filter((oe) => oe !==
|
|
1812
|
+
P ? S.filter((oe) => oe !== $) : [...S, $]
|
|
1813
1813
|
);
|
|
1814
1814
|
}, ne = re(
|
|
1815
|
-
() => D.filter((
|
|
1815
|
+
() => D.filter(($) => S.includes(String($.value))),
|
|
1816
1816
|
[D, S]
|
|
1817
1817
|
), gr = re(() => {
|
|
1818
1818
|
if (!ne.length) return g;
|
|
1819
|
-
const [
|
|
1820
|
-
return P.length ? `${
|
|
1819
|
+
const [$, ...P] = ne;
|
|
1820
|
+
return P.length ? `${$.label} +${P.length} more` : $.label;
|
|
1821
1821
|
}, [ne, g]), pt = re(() => {
|
|
1822
|
-
const
|
|
1822
|
+
const $ = p.toLowerCase();
|
|
1823
1823
|
return D.filter(
|
|
1824
|
-
(P) => String(P.label).toLowerCase().includes(
|
|
1824
|
+
(P) => String(P.label).toLowerCase().includes($)
|
|
1825
1825
|
);
|
|
1826
1826
|
}, [D, p]), gt = re(() => {
|
|
1827
1827
|
if (!i) return;
|
|
1828
|
-
const
|
|
1828
|
+
const $ = p.toLowerCase(), P = {};
|
|
1829
1829
|
return Object.entries(i).forEach(([oe, Q]) => {
|
|
1830
1830
|
const bt = Q.filter(
|
|
1831
|
-
(_r) => String(_r.label).toLowerCase().includes(
|
|
1831
|
+
(_r) => String(_r.label).toLowerCase().includes($)
|
|
1832
1832
|
);
|
|
1833
1833
|
bt.length > 0 && (P[oe] = bt);
|
|
1834
1834
|
}), Object.keys(P).length > 0 ? P : void 0;
|
|
1835
|
-
}, [i, p]), yr = re(() => typeof x == "number" ? { maxHeight: `${x}px` } : { maxHeight: x }, [x]), br = Za[u], vr = Ba[u], xr = a ? "border border-red-700 dark:border-red-500 focus:border-red-700 focus-visible:border-red-700" : h ? "border border-slate-300 dark:border-slate-500 shadow-sm" : "border border-slate-200 dark:border-slate-600 shadow-sm", yt = (
|
|
1836
|
-
const P = String(
|
|
1835
|
+
}, [i, p]), yr = re(() => typeof x == "number" ? { maxHeight: `${x}px` } : { maxHeight: x }, [x]), br = Za[u], vr = Ba[u], xr = a ? "border border-red-700 dark:border-red-500 focus:border-red-700 focus-visible:border-red-700" : h ? "border border-slate-300 dark:border-slate-500 shadow-sm" : "border border-slate-200 dark:border-slate-600 shadow-sm", yt = ($) => {
|
|
1836
|
+
const P = String($.value), oe = S.includes(P);
|
|
1837
1837
|
return /* @__PURE__ */ f(
|
|
1838
1838
|
"li",
|
|
1839
1839
|
{
|
|
@@ -1849,7 +1849,7 @@ const pa = [
|
|
|
1849
1849
|
className: "w-5 h-5 rounded-md border border-slate-300 bg-slate-50 text-violet-600 accent-violet-500 outline-none transition duration-150 ease-in-out cursor-pointer hover:border-violet-400 focus-visible:border-violet-400 dark:text-slate-100 dark:accent-slate-100 dark:hover:border-slate-400 dark:focus-visible:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed"
|
|
1850
1850
|
}
|
|
1851
1851
|
),
|
|
1852
|
-
/* @__PURE__ */ l("span", { className: "text-sm text-slate-800 dark:text-slate-100", children:
|
|
1852
|
+
/* @__PURE__ */ l("span", { className: "text-sm text-slate-800 dark:text-slate-100", children: $.label })
|
|
1853
1853
|
]
|
|
1854
1854
|
},
|
|
1855
1855
|
P
|
|
@@ -1882,12 +1882,12 @@ const pa = [
|
|
|
1882
1882
|
onClick: G,
|
|
1883
1883
|
className: `w-full flex items-center justify-between gap-2 rounded-md bg-slate-50 dark:bg-gray-700 text-slate-900 dark:text-slate-100 border border-slate-200 dark:border-slate-500 focus:outline-none focus-visible:shadow-sm disabled:cursor-not-allowed disabled:opacity-60 transition-colors ${Pa[C]} ${br} ${xr}`,
|
|
1884
1884
|
children: [
|
|
1885
|
-
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 min-h-6 flex-1", children: ne.length ? ne.map((
|
|
1885
|
+
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 min-h-6 flex-1", children: ne.length ? ne.map(($) => /* @__PURE__ */ f(
|
|
1886
1886
|
"span",
|
|
1887
1887
|
{
|
|
1888
1888
|
className: `inline-flex items-center gap-1 rounded-full bg-violet-600 text-slate-50 dark:bg-slate-500 dark:text-slate-100 ${vr}`,
|
|
1889
1889
|
children: [
|
|
1890
|
-
|
|
1890
|
+
$.label,
|
|
1891
1891
|
/* @__PURE__ */ l(
|
|
1892
1892
|
"span",
|
|
1893
1893
|
{
|
|
@@ -1895,17 +1895,17 @@ const pa = [
|
|
|
1895
1895
|
tabIndex: 0,
|
|
1896
1896
|
className: "text-xs font-semibold hover:text-violet-900 dark:hover:text-slate-50 cursor-pointer",
|
|
1897
1897
|
onClick: (P) => {
|
|
1898
|
-
P.stopPropagation(), de(String(
|
|
1898
|
+
P.stopPropagation(), de(String($.value));
|
|
1899
1899
|
},
|
|
1900
1900
|
onKeyDown: (P) => {
|
|
1901
|
-
(P.key === "Enter" || P.key === " ") && (P.stopPropagation(), P.preventDefault(), de(String(
|
|
1901
|
+
(P.key === "Enter" || P.key === " ") && (P.stopPropagation(), P.preventDefault(), de(String($.value)));
|
|
1902
1902
|
},
|
|
1903
1903
|
children: "×"
|
|
1904
1904
|
}
|
|
1905
1905
|
)
|
|
1906
1906
|
]
|
|
1907
1907
|
},
|
|
1908
|
-
String(
|
|
1908
|
+
String($.value)
|
|
1909
1909
|
)) : /* @__PURE__ */ l("span", { className: "text-sm text-slate-500 dark:text-slate-400", children: gr }) }),
|
|
1910
1910
|
/* @__PURE__ */ l("span", { className: "pointer-events-none text-gray-500 dark:text-gray-300", children: /* @__PURE__ */ l(
|
|
1911
1911
|
"svg",
|
|
@@ -1937,9 +1937,9 @@ const pa = [
|
|
|
1937
1937
|
type: "text",
|
|
1938
1938
|
placeholder: "Search options...",
|
|
1939
1939
|
value: p,
|
|
1940
|
-
onChange: (
|
|
1940
|
+
onChange: ($) => j($.target.value),
|
|
1941
1941
|
className: "w-full rounded-md border border-gray-300 dark:border-gray-700 bg-slate-50 dark:bg-gray-800 px-3 py-2 text-sm text-slate-800 dark:text-slate-100 focus:outline-none focus:border-violet-400 focus-visible:border-violet-400 dark:focus:border-slate-300 dark:focus-visible:border-slate-300 transition-colors",
|
|
1942
|
-
onClick: (
|
|
1942
|
+
onClick: ($) => $.stopPropagation()
|
|
1943
1943
|
}
|
|
1944
1944
|
) }) : null,
|
|
1945
1945
|
/* @__PURE__ */ f(
|
|
@@ -1969,7 +1969,7 @@ const pa = [
|
|
|
1969
1969
|
]
|
|
1970
1970
|
}
|
|
1971
1971
|
) }) : null,
|
|
1972
|
-
gt ? Object.entries(gt).map(([
|
|
1972
|
+
gt ? Object.entries(gt).map(([$, P]) => {
|
|
1973
1973
|
const oe = P.map((Q) => String(Q.value)).every((Q) => S.includes(Q));
|
|
1974
1974
|
return /* @__PURE__ */ f("li", { className: "py-1", children: [
|
|
1975
1975
|
/* @__PURE__ */ f(
|
|
@@ -1988,13 +1988,13 @@ const pa = [
|
|
|
1988
1988
|
className: "w-5 h-5 rounded-md border border-slate-300 bg-slate-50 text-violet-600 accent-violet-500 outline-none transition duration-150 ease-in-out cursor-pointer hover:border-violet-400 focus-visible:border-violet-400 dark:text-slate-100 dark:accent-slate-100 dark:hover:border-slate-400 dark:focus-visible:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed"
|
|
1989
1989
|
}
|
|
1990
1990
|
),
|
|
1991
|
-
|
|
1991
|
+
$
|
|
1992
1992
|
]
|
|
1993
1993
|
}
|
|
1994
1994
|
),
|
|
1995
1995
|
/* @__PURE__ */ l("ul", { className: "mt-1 border-l border-gray-200 dark:border-gray-700 ml-5", children: P.map((Q) => yt(Q)) })
|
|
1996
|
-
] },
|
|
1997
|
-
}) : pt.length > 0 ? pt.map((
|
|
1996
|
+
] }, $);
|
|
1997
|
+
}) : pt.length > 0 ? pt.map(($) => yt($)) : /* @__PURE__ */ l("li", { className: "px-3 py-4 text-sm text-slate-500 dark:text-slate-400", children: _ })
|
|
1998
1998
|
]
|
|
1999
1999
|
}
|
|
2000
2000
|
)
|
|
@@ -2541,11 +2541,14 @@ const Cs = new Ts(), Ss = () => {
|
|
|
2541
2541
|
M.info(t, qe);
|
|
2542
2542
|
}, Dn = (t) => {
|
|
2543
2543
|
M.warn(t, qe);
|
|
2544
|
-
}, fr = (t, e = 0) => t ? e ? t.split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, e) :
|
|
2545
|
-
function
|
|
2544
|
+
}, fr = (t, e = 0) => t ? e ? t.split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, e) : Os(t) : "";
|
|
2545
|
+
function Os(t) {
|
|
2546
2546
|
return t.split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2548
|
+
function Vn(t) {
|
|
2549
|
+
return localStorage.getItem(t) ? JSON.parse(localStorage.getItem(t) || "") : null;
|
|
2550
|
+
}
|
|
2551
|
+
function $s(t, e) {
|
|
2549
2552
|
let r;
|
|
2550
2553
|
try {
|
|
2551
2554
|
r = t();
|
|
@@ -2585,7 +2588,7 @@ const et = (t) => (e) => {
|
|
|
2585
2588
|
}
|
|
2586
2589
|
}, Es = (t, e) => (r, a, s) => {
|
|
2587
2590
|
let n = {
|
|
2588
|
-
storage:
|
|
2591
|
+
storage: $s(() => localStorage),
|
|
2589
2592
|
partialize: (g) => g,
|
|
2590
2593
|
version: 0,
|
|
2591
2594
|
merge: (g, _) => ({
|
|
@@ -2765,7 +2768,7 @@ const et = (t) => (e) => {
|
|
|
2765
2768
|
})
|
|
2766
2769
|
}
|
|
2767
2770
|
)
|
|
2768
|
-
),
|
|
2771
|
+
), Fn = ({ hasNotifications: t = !0 }) => {
|
|
2769
2772
|
const e = Nr(), [r, a] = U(""), s = le(null), [n, o] = U(!1), {
|
|
2770
2773
|
user: i,
|
|
2771
2774
|
logout: d,
|
|
@@ -2787,16 +2790,16 @@ const et = (t) => (e) => {
|
|
|
2787
2790
|
};
|
|
2788
2791
|
}, []), /* @__PURE__ */ l("header", { className: "sticky top-0 z-40 bg-slate-800 backdrop-blur-md border-b border-slate-400 shadow-sm transition-colors duration-300", children: /* @__PURE__ */ f("div", { className: "flex items-center justify-between text-slate-100 py-3 px-4", children: [
|
|
2789
2792
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-4", children: [
|
|
2790
|
-
/* @__PURE__ */ l(
|
|
2793
|
+
/* @__PURE__ */ l($e, { text: "Toggle Sidebar", position: "right", children: /* @__PURE__ */ l(
|
|
2791
2794
|
"button",
|
|
2792
2795
|
{
|
|
2793
2796
|
onClick: () => w(!u),
|
|
2794
2797
|
className: "p-2 rounded-lg text-slate-400 hover:bg-slate-700 dark:hover:bg-slate-700 transition-all duration-200 focus:outline-none",
|
|
2795
|
-
children: /* @__PURE__ */ l(
|
|
2798
|
+
children: /* @__PURE__ */ l(ta, { className: "w-5 h-5" })
|
|
2796
2799
|
}
|
|
2797
2800
|
) }),
|
|
2798
2801
|
/* @__PURE__ */ f("div", { className: "relative hidden md:block", children: [
|
|
2799
|
-
/* @__PURE__ */ l(
|
|
2802
|
+
/* @__PURE__ */ l(ia, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500" }),
|
|
2800
2803
|
/* @__PURE__ */ l(
|
|
2801
2804
|
"input",
|
|
2802
2805
|
{
|
|
@@ -2811,23 +2814,23 @@ const et = (t) => (e) => {
|
|
|
2811
2814
|
] }),
|
|
2812
2815
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
|
|
2813
2816
|
/* @__PURE__ */ l(tr, { forceDarkTheme: !0 }),
|
|
2814
|
-
/* @__PURE__ */ l(
|
|
2817
|
+
/* @__PURE__ */ l($e, { text: "Notifications", position: "bottom", children: /* @__PURE__ */ f(
|
|
2815
2818
|
se,
|
|
2816
2819
|
{
|
|
2817
2820
|
variant: "default",
|
|
2818
2821
|
className: "text-slate-400 hover:bg-slate-600",
|
|
2819
2822
|
children: [
|
|
2820
|
-
/* @__PURE__ */ l(
|
|
2823
|
+
/* @__PURE__ */ l(Ur, { className: "w-5 h-5" }),
|
|
2821
2824
|
t && /* @__PURE__ */ l("span", { className: "absolute top-1.5 right-3.5 w-2 h-2 bg-amber-300 rounded-full ring-2 ring-slate-200 animate-pulse" })
|
|
2822
2825
|
]
|
|
2823
2826
|
}
|
|
2824
2827
|
) }),
|
|
2825
|
-
/* @__PURE__ */ l(
|
|
2828
|
+
/* @__PURE__ */ l($e, { text: "Activity History", position: "bottom", children: /* @__PURE__ */ l(
|
|
2826
2829
|
se,
|
|
2827
2830
|
{
|
|
2828
2831
|
variant: "default",
|
|
2829
2832
|
className: "text-slate-400 hover:bg-slate-600",
|
|
2830
|
-
icon: /* @__PURE__ */ l(
|
|
2833
|
+
icon: /* @__PURE__ */ l(Yr, { className: "w-5 h-5" })
|
|
2831
2834
|
}
|
|
2832
2835
|
) }),
|
|
2833
2836
|
/* @__PURE__ */ l("div", { className: "w-px h-6 bg-slate-200 dark:bg-dark-border mx-1 bg-slate-border" }),
|
|
@@ -2858,7 +2861,7 @@ const et = (t) => (e) => {
|
|
|
2858
2861
|
onClick: () => T("/my-profile"),
|
|
2859
2862
|
className: "flex items-center w-full px-4 py-2.5 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",
|
|
2860
2863
|
children: [
|
|
2861
|
-
/* @__PURE__ */ l(
|
|
2864
|
+
/* @__PURE__ */ l(pa, { className: "w-4 h-4 mr-3" }),
|
|
2862
2865
|
"My Profile"
|
|
2863
2866
|
]
|
|
2864
2867
|
}
|
|
@@ -2869,7 +2872,7 @@ const et = (t) => (e) => {
|
|
|
2869
2872
|
onClick: () => T("/settings"),
|
|
2870
2873
|
className: "flex items-center w-full px-4 py-2.5 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",
|
|
2871
2874
|
children: [
|
|
2872
|
-
/* @__PURE__ */ l(
|
|
2875
|
+
/* @__PURE__ */ l(da, { className: "w-4 h-4 mr-3" }),
|
|
2873
2876
|
"Settings"
|
|
2874
2877
|
]
|
|
2875
2878
|
}
|
|
@@ -2880,7 +2883,7 @@ const et = (t) => (e) => {
|
|
|
2880
2883
|
onClick: () => T("/my-profile"),
|
|
2881
2884
|
className: "flex items-center w-full px-4 py-2.5 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",
|
|
2882
2885
|
children: [
|
|
2883
|
-
/* @__PURE__ */ l(
|
|
2886
|
+
/* @__PURE__ */ l(Jr, { className: "w-4 h-4 mr-3" }),
|
|
2884
2887
|
"Change Password"
|
|
2885
2888
|
]
|
|
2886
2889
|
}
|
|
@@ -2892,7 +2895,7 @@ const et = (t) => (e) => {
|
|
|
2892
2895
|
onClick: () => T("logout"),
|
|
2893
2896
|
className: "flex items-center w-full px-4 py-2.5 text-sm text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors",
|
|
2894
2897
|
children: [
|
|
2895
|
-
/* @__PURE__ */ l(
|
|
2898
|
+
/* @__PURE__ */ l(Kr, { className: "w-4 h-4 mr-3" }),
|
|
2896
2899
|
"Logout"
|
|
2897
2900
|
]
|
|
2898
2901
|
}
|
|
@@ -2931,8 +2934,8 @@ const et = (t) => (e) => {
|
|
|
2931
2934
|
]
|
|
2932
2935
|
}
|
|
2933
2936
|
);
|
|
2934
|
-
return r ? s : /* @__PURE__ */ l(
|
|
2935
|
-
},
|
|
2937
|
+
return r ? s : /* @__PURE__ */ l($e, { text: t.label, position: "right", children: s });
|
|
2938
|
+
}, Un = () => {
|
|
2936
2939
|
const t = lt(), { menus: e, setCurrentMenu: r } = mt(), { user: a, isSideNavbarOpen: s } = We(), n = a?.society || null;
|
|
2937
2940
|
return X(() => {
|
|
2938
2941
|
r(t.pathname);
|
|
@@ -2954,7 +2957,7 @@ const et = (t) => (e) => {
|
|
|
2954
2957
|
${!s && "justify-center"}
|
|
2955
2958
|
`,
|
|
2956
2959
|
children: [
|
|
2957
|
-
/* @__PURE__ */ l("div", { className: "w-10 h-10 bg-linear-to-br from-violet-500 to-purple-600 rounded-xl flex items-center justify-center shadow-lg shadow-violet-500/30", children: /* @__PURE__ */ l(
|
|
2960
|
+
/* @__PURE__ */ l("div", { className: "w-10 h-10 bg-linear-to-br from-violet-500 to-purple-600 rounded-xl flex items-center justify-center shadow-lg shadow-violet-500/30", children: /* @__PURE__ */ l(ua, { className: "w-6 h-6 text-white" }) }),
|
|
2958
2961
|
s && /* @__PURE__ */ f("div", { className: "flex-1 animate-slide-in", children: [
|
|
2959
2962
|
/* @__PURE__ */ l("h1", { className: "text-lg font-bold text-slate-100", children: "Resident Rise" }),
|
|
2960
2963
|
/* @__PURE__ */ l("p", { className: "text-xs text-slate-400", children: "Society Management Portal" })
|
|
@@ -2976,7 +2979,7 @@ const et = (t) => (e) => {
|
|
|
2976
2979
|
children: s ? /* @__PURE__ */ f("div", { className: "px-3 py-2 rounded-xl bg-linear-to-br from-violet-50 to-purple-50 dark:from-violet-900/20 dark:to-purple-900/20 border border-violet-200 dark:border-violet-800", children: [
|
|
2977
2980
|
/* @__PURE__ */ l("p", { className: "text-xs font-semibold text-violet-700 dark:text-violet-400", children: "Need Help?" }),
|
|
2978
2981
|
/* @__PURE__ */ l("p", { className: "text-xs text-slate-600 dark:text-slate-400 mt-1", children: "Contact support team" })
|
|
2979
|
-
] }) : /* @__PURE__ */ l(
|
|
2982
|
+
] }) : /* @__PURE__ */ l($e, { text: "Need Help?", position: "right", children: /* @__PURE__ */ l("div", { className: "w-10 h-10 rounded-xl bg-linear-to-br from-violet-50 to-purple-50 dark:from-violet-900/20 dark:to-purple-900/20 border border-violet-200 dark:border-violet-800 flex items-center justify-center cursor-pointer hover:scale-110 transition-transform", children: /* @__PURE__ */ l("span", { className: "text-violet-700 dark:text-violet-400 font-bold text-sm", children: "?" }) }) })
|
|
2980
2983
|
}
|
|
2981
2984
|
)
|
|
2982
2985
|
]
|
|
@@ -3294,7 +3297,7 @@ class ee {
|
|
|
3294
3297
|
}
|
|
3295
3298
|
const I = Object.freeze({
|
|
3296
3299
|
status: "aborted"
|
|
3297
|
-
}),
|
|
3300
|
+
}), Oe = (t) => ({ status: "dirty", value: t }), te = (t) => ({ status: "valid", value: t }), Ot = (t) => t.status === "aborted", $t = (t) => t.status === "dirty", Te = (t) => t.status === "valid", Pe = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
3298
3301
|
var N;
|
|
3299
3302
|
(function(t) {
|
|
3300
3303
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
|
|
@@ -3463,7 +3466,7 @@ class A {
|
|
|
3463
3466
|
_refinement(e) {
|
|
3464
3467
|
return new Se({
|
|
3465
3468
|
schema: this,
|
|
3466
|
-
typeName:
|
|
3469
|
+
typeName: O.ZodEffects,
|
|
3467
3470
|
effect: { type: "refinement", refinement: e }
|
|
3468
3471
|
});
|
|
3469
3472
|
}
|
|
@@ -3502,7 +3505,7 @@ class A {
|
|
|
3502
3505
|
return new Se({
|
|
3503
3506
|
...L(this._def),
|
|
3504
3507
|
schema: this,
|
|
3505
|
-
typeName:
|
|
3508
|
+
typeName: O.ZodEffects,
|
|
3506
3509
|
effect: { type: "transform", transform: e }
|
|
3507
3510
|
});
|
|
3508
3511
|
}
|
|
@@ -3512,12 +3515,12 @@ class A {
|
|
|
3512
3515
|
...L(this._def),
|
|
3513
3516
|
innerType: this,
|
|
3514
3517
|
defaultValue: r,
|
|
3515
|
-
typeName:
|
|
3518
|
+
typeName: O.ZodDefault
|
|
3516
3519
|
});
|
|
3517
3520
|
}
|
|
3518
3521
|
brand() {
|
|
3519
3522
|
return new ln({
|
|
3520
|
-
typeName:
|
|
3523
|
+
typeName: O.ZodBranded,
|
|
3521
3524
|
type: this,
|
|
3522
3525
|
...L(this._def)
|
|
3523
3526
|
});
|
|
@@ -3528,7 +3531,7 @@ class A {
|
|
|
3528
3531
|
...L(this._def),
|
|
3529
3532
|
innerType: this,
|
|
3530
3533
|
catchValue: r,
|
|
3531
|
-
typeName:
|
|
3534
|
+
typeName: O.ZodCatch
|
|
3532
3535
|
});
|
|
3533
3536
|
}
|
|
3534
3537
|
describe(e) {
|
|
@@ -3966,7 +3969,7 @@ class me extends A {
|
|
|
3966
3969
|
}
|
|
3967
3970
|
me.create = (t) => new me({
|
|
3968
3971
|
checks: [],
|
|
3969
|
-
typeName:
|
|
3972
|
+
typeName: O.ZodString,
|
|
3970
3973
|
coerce: t?.coerce ?? !1,
|
|
3971
3974
|
...L(t)
|
|
3972
3975
|
});
|
|
@@ -4142,7 +4145,7 @@ class Le extends A {
|
|
|
4142
4145
|
}
|
|
4143
4146
|
Le.create = (t) => new Le({
|
|
4144
4147
|
checks: [],
|
|
4145
|
-
typeName:
|
|
4148
|
+
typeName: O.ZodNumber,
|
|
4146
4149
|
coerce: t?.coerce || !1,
|
|
4147
4150
|
...L(t)
|
|
4148
4151
|
});
|
|
@@ -4275,7 +4278,7 @@ class je extends A {
|
|
|
4275
4278
|
}
|
|
4276
4279
|
je.create = (t) => new je({
|
|
4277
4280
|
checks: [],
|
|
4278
|
-
typeName:
|
|
4281
|
+
typeName: O.ZodBigInt,
|
|
4279
4282
|
coerce: t?.coerce ?? !1,
|
|
4280
4283
|
...L(t)
|
|
4281
4284
|
});
|
|
@@ -4293,7 +4296,7 @@ class Lt extends A {
|
|
|
4293
4296
|
}
|
|
4294
4297
|
}
|
|
4295
4298
|
Lt.create = (t) => new Lt({
|
|
4296
|
-
typeName:
|
|
4299
|
+
typeName: O.ZodBoolean,
|
|
4297
4300
|
coerce: t?.coerce || !1,
|
|
4298
4301
|
...L(t)
|
|
4299
4302
|
});
|
|
@@ -4372,7 +4375,7 @@ class Ze extends A {
|
|
|
4372
4375
|
Ze.create = (t) => new Ze({
|
|
4373
4376
|
checks: [],
|
|
4374
4377
|
coerce: t?.coerce || !1,
|
|
4375
|
-
typeName:
|
|
4378
|
+
typeName: O.ZodDate,
|
|
4376
4379
|
...L(t)
|
|
4377
4380
|
});
|
|
4378
4381
|
class jt extends A {
|
|
@@ -4389,7 +4392,7 @@ class jt extends A {
|
|
|
4389
4392
|
}
|
|
4390
4393
|
}
|
|
4391
4394
|
jt.create = (t) => new jt({
|
|
4392
|
-
typeName:
|
|
4395
|
+
typeName: O.ZodSymbol,
|
|
4393
4396
|
...L(t)
|
|
4394
4397
|
});
|
|
4395
4398
|
class At extends A {
|
|
@@ -4406,7 +4409,7 @@ class At extends A {
|
|
|
4406
4409
|
}
|
|
4407
4410
|
}
|
|
4408
4411
|
At.create = (t) => new At({
|
|
4409
|
-
typeName:
|
|
4412
|
+
typeName: O.ZodUndefined,
|
|
4410
4413
|
...L(t)
|
|
4411
4414
|
});
|
|
4412
4415
|
class Rt extends A {
|
|
@@ -4423,7 +4426,7 @@ class Rt extends A {
|
|
|
4423
4426
|
}
|
|
4424
4427
|
}
|
|
4425
4428
|
Rt.create = (t) => new Rt({
|
|
4426
|
-
typeName:
|
|
4429
|
+
typeName: O.ZodNull,
|
|
4427
4430
|
...L(t)
|
|
4428
4431
|
});
|
|
4429
4432
|
class Mt extends A {
|
|
@@ -4435,7 +4438,7 @@ class Mt extends A {
|
|
|
4435
4438
|
}
|
|
4436
4439
|
}
|
|
4437
4440
|
Mt.create = (t) => new Mt({
|
|
4438
|
-
typeName:
|
|
4441
|
+
typeName: O.ZodAny,
|
|
4439
4442
|
...L(t)
|
|
4440
4443
|
});
|
|
4441
4444
|
class zt extends A {
|
|
@@ -4447,7 +4450,7 @@ class zt extends A {
|
|
|
4447
4450
|
}
|
|
4448
4451
|
}
|
|
4449
4452
|
zt.create = (t) => new zt({
|
|
4450
|
-
typeName:
|
|
4453
|
+
typeName: O.ZodUnknown,
|
|
4451
4454
|
...L(t)
|
|
4452
4455
|
});
|
|
4453
4456
|
class ge extends A {
|
|
@@ -4461,7 +4464,7 @@ class ge extends A {
|
|
|
4461
4464
|
}
|
|
4462
4465
|
}
|
|
4463
4466
|
ge.create = (t) => new ge({
|
|
4464
|
-
typeName:
|
|
4467
|
+
typeName: O.ZodNever,
|
|
4465
4468
|
...L(t)
|
|
4466
4469
|
});
|
|
4467
4470
|
class Pt extends A {
|
|
@@ -4478,7 +4481,7 @@ class Pt extends A {
|
|
|
4478
4481
|
}
|
|
4479
4482
|
}
|
|
4480
4483
|
Pt.create = (t) => new Pt({
|
|
4481
|
-
typeName:
|
|
4484
|
+
typeName: O.ZodVoid,
|
|
4482
4485
|
...L(t)
|
|
4483
4486
|
});
|
|
4484
4487
|
class ie extends A {
|
|
@@ -4551,7 +4554,7 @@ ie.create = (t, e) => new ie({
|
|
|
4551
4554
|
minLength: null,
|
|
4552
4555
|
maxLength: null,
|
|
4553
4556
|
exactLength: null,
|
|
4554
|
-
typeName:
|
|
4557
|
+
typeName: O.ZodArray,
|
|
4555
4558
|
...L(e)
|
|
4556
4559
|
});
|
|
4557
4560
|
function Ne(t) {
|
|
@@ -4713,7 +4716,7 @@ class V extends A {
|
|
|
4713
4716
|
...this._def.shape(),
|
|
4714
4717
|
...e._def.shape()
|
|
4715
4718
|
}),
|
|
4716
|
-
typeName:
|
|
4719
|
+
typeName: O.ZodObject
|
|
4717
4720
|
});
|
|
4718
4721
|
}
|
|
4719
4722
|
// merge<
|
|
@@ -4840,21 +4843,21 @@ V.create = (t, e) => new V({
|
|
|
4840
4843
|
shape: () => t,
|
|
4841
4844
|
unknownKeys: "strip",
|
|
4842
4845
|
catchall: ge.create(),
|
|
4843
|
-
typeName:
|
|
4846
|
+
typeName: O.ZodObject,
|
|
4844
4847
|
...L(e)
|
|
4845
4848
|
});
|
|
4846
4849
|
V.strictCreate = (t, e) => new V({
|
|
4847
4850
|
shape: () => t,
|
|
4848
4851
|
unknownKeys: "strict",
|
|
4849
4852
|
catchall: ge.create(),
|
|
4850
|
-
typeName:
|
|
4853
|
+
typeName: O.ZodObject,
|
|
4851
4854
|
...L(e)
|
|
4852
4855
|
});
|
|
4853
4856
|
V.lazycreate = (t, e) => new V({
|
|
4854
4857
|
shape: t,
|
|
4855
4858
|
unknownKeys: "strip",
|
|
4856
4859
|
catchall: ge.create(),
|
|
4857
|
-
typeName:
|
|
4860
|
+
typeName: O.ZodObject,
|
|
4858
4861
|
...L(e)
|
|
4859
4862
|
});
|
|
4860
4863
|
class Be extends A {
|
|
@@ -4927,7 +4930,7 @@ class Be extends A {
|
|
|
4927
4930
|
}
|
|
4928
4931
|
Be.create = (t, e) => new Be({
|
|
4929
4932
|
options: t,
|
|
4930
|
-
typeName:
|
|
4933
|
+
typeName: O.ZodUnion,
|
|
4931
4934
|
...L(e)
|
|
4932
4935
|
});
|
|
4933
4936
|
function rt(t, e) {
|
|
@@ -4959,10 +4962,10 @@ function rt(t, e) {
|
|
|
4959
4962
|
class De extends A {
|
|
4960
4963
|
_parse(e) {
|
|
4961
4964
|
const { status: r, ctx: a } = this._processInputParams(e), s = (n, o) => {
|
|
4962
|
-
if (
|
|
4965
|
+
if (Ot(n) || Ot(o))
|
|
4963
4966
|
return I;
|
|
4964
4967
|
const i = rt(n.value, o.value);
|
|
4965
|
-
return i.valid ? ((
|
|
4968
|
+
return i.valid ? (($t(n) || $t(o)) && r.dirty(), { status: r.value, value: i.data }) : (v(a, {
|
|
4966
4969
|
code: m.invalid_intersection_types
|
|
4967
4970
|
}), I);
|
|
4968
4971
|
};
|
|
@@ -4991,7 +4994,7 @@ class De extends A {
|
|
|
4991
4994
|
De.create = (t, e, r) => new De({
|
|
4992
4995
|
left: t,
|
|
4993
4996
|
right: e,
|
|
4994
|
-
typeName:
|
|
4997
|
+
typeName: O.ZodIntersection,
|
|
4995
4998
|
...L(r)
|
|
4996
4999
|
});
|
|
4997
5000
|
class xe extends A {
|
|
@@ -5039,7 +5042,7 @@ xe.create = (t, e) => {
|
|
|
5039
5042
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
5040
5043
|
return new xe({
|
|
5041
5044
|
items: t,
|
|
5042
|
-
typeName:
|
|
5045
|
+
typeName: O.ZodTuple,
|
|
5043
5046
|
rest: null,
|
|
5044
5047
|
...L(e)
|
|
5045
5048
|
});
|
|
@@ -5089,7 +5092,7 @@ class Zt extends A {
|
|
|
5089
5092
|
Zt.create = (t, e, r) => new Zt({
|
|
5090
5093
|
valueType: e,
|
|
5091
5094
|
keyType: t,
|
|
5092
|
-
typeName:
|
|
5095
|
+
typeName: O.ZodMap,
|
|
5093
5096
|
...L(r)
|
|
5094
5097
|
});
|
|
5095
5098
|
class Ae extends A {
|
|
@@ -5153,7 +5156,7 @@ Ae.create = (t, e) => new Ae({
|
|
|
5153
5156
|
valueType: t,
|
|
5154
5157
|
minSize: null,
|
|
5155
5158
|
maxSize: null,
|
|
5156
|
-
typeName:
|
|
5159
|
+
typeName: O.ZodSet,
|
|
5157
5160
|
...L(e)
|
|
5158
5161
|
});
|
|
5159
5162
|
class Bt extends A {
|
|
@@ -5167,7 +5170,7 @@ class Bt extends A {
|
|
|
5167
5170
|
}
|
|
5168
5171
|
Bt.create = (t, e) => new Bt({
|
|
5169
5172
|
getter: t,
|
|
5170
|
-
typeName:
|
|
5173
|
+
typeName: O.ZodLazy,
|
|
5171
5174
|
...L(e)
|
|
5172
5175
|
});
|
|
5173
5176
|
class Dt extends A {
|
|
@@ -5188,13 +5191,13 @@ class Dt extends A {
|
|
|
5188
5191
|
}
|
|
5189
5192
|
Dt.create = (t, e) => new Dt({
|
|
5190
5193
|
value: t,
|
|
5191
|
-
typeName:
|
|
5194
|
+
typeName: O.ZodLiteral,
|
|
5192
5195
|
...L(e)
|
|
5193
5196
|
});
|
|
5194
5197
|
function pr(t, e) {
|
|
5195
5198
|
return new Ce({
|
|
5196
5199
|
values: t,
|
|
5197
|
-
typeName:
|
|
5200
|
+
typeName: O.ZodEnum,
|
|
5198
5201
|
...L(e)
|
|
5199
5202
|
});
|
|
5200
5203
|
}
|
|
@@ -5280,7 +5283,7 @@ class Vt extends A {
|
|
|
5280
5283
|
}
|
|
5281
5284
|
Vt.create = (t, e) => new Vt({
|
|
5282
5285
|
values: t,
|
|
5283
|
-
typeName:
|
|
5286
|
+
typeName: O.ZodNativeEnum,
|
|
5284
5287
|
...L(e)
|
|
5285
5288
|
});
|
|
5286
5289
|
class Ve extends A {
|
|
@@ -5304,7 +5307,7 @@ class Ve extends A {
|
|
|
5304
5307
|
}
|
|
5305
5308
|
Ve.create = (t, e) => new Ve({
|
|
5306
5309
|
type: t,
|
|
5307
|
-
typeName:
|
|
5310
|
+
typeName: O.ZodPromise,
|
|
5308
5311
|
...L(e)
|
|
5309
5312
|
});
|
|
5310
5313
|
class Se extends A {
|
|
@@ -5312,7 +5315,7 @@ class Se extends A {
|
|
|
5312
5315
|
return this._def.schema;
|
|
5313
5316
|
}
|
|
5314
5317
|
sourceType() {
|
|
5315
|
-
return this._def.schema._def.typeName ===
|
|
5318
|
+
return this._def.schema._def.typeName === O.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
5316
5319
|
}
|
|
5317
5320
|
_parse(e) {
|
|
5318
5321
|
const { status: r, ctx: a } = this._processInputParams(e), s = this._def.effect || null, n = {
|
|
@@ -5334,7 +5337,7 @@ class Se extends A {
|
|
|
5334
5337
|
path: a.path,
|
|
5335
5338
|
parent: a
|
|
5336
5339
|
});
|
|
5337
|
-
return d.status === "aborted" ? I : d.status === "dirty" || r.value === "dirty" ?
|
|
5340
|
+
return d.status === "aborted" ? I : d.status === "dirty" || r.value === "dirty" ? Oe(d.value) : d;
|
|
5338
5341
|
});
|
|
5339
5342
|
{
|
|
5340
5343
|
if (r.value === "aborted")
|
|
@@ -5344,7 +5347,7 @@ class Se extends A {
|
|
|
5344
5347
|
path: a.path,
|
|
5345
5348
|
parent: a
|
|
5346
5349
|
});
|
|
5347
|
-
return i.status === "aborted" ? I : i.status === "dirty" || r.value === "dirty" ?
|
|
5350
|
+
return i.status === "aborted" ? I : i.status === "dirty" || r.value === "dirty" ? Oe(i.value) : i;
|
|
5348
5351
|
}
|
|
5349
5352
|
}
|
|
5350
5353
|
if (s.type === "refinement") {
|
|
@@ -5389,14 +5392,14 @@ class Se extends A {
|
|
|
5389
5392
|
}
|
|
5390
5393
|
Se.create = (t, e, r) => new Se({
|
|
5391
5394
|
schema: t,
|
|
5392
|
-
typeName:
|
|
5395
|
+
typeName: O.ZodEffects,
|
|
5393
5396
|
effect: e,
|
|
5394
5397
|
...L(r)
|
|
5395
5398
|
});
|
|
5396
5399
|
Se.createWithPreprocess = (t, e, r) => new Se({
|
|
5397
5400
|
schema: e,
|
|
5398
5401
|
effect: { type: "preprocess", transform: t },
|
|
5399
|
-
typeName:
|
|
5402
|
+
typeName: O.ZodEffects,
|
|
5400
5403
|
...L(r)
|
|
5401
5404
|
});
|
|
5402
5405
|
class he extends A {
|
|
@@ -5409,7 +5412,7 @@ class he extends A {
|
|
|
5409
5412
|
}
|
|
5410
5413
|
he.create = (t, e) => new he({
|
|
5411
5414
|
innerType: t,
|
|
5412
|
-
typeName:
|
|
5415
|
+
typeName: O.ZodOptional,
|
|
5413
5416
|
...L(e)
|
|
5414
5417
|
});
|
|
5415
5418
|
class Ie extends A {
|
|
@@ -5422,7 +5425,7 @@ class Ie extends A {
|
|
|
5422
5425
|
}
|
|
5423
5426
|
Ie.create = (t, e) => new Ie({
|
|
5424
5427
|
innerType: t,
|
|
5425
|
-
typeName:
|
|
5428
|
+
typeName: O.ZodNullable,
|
|
5426
5429
|
...L(e)
|
|
5427
5430
|
});
|
|
5428
5431
|
class at extends A {
|
|
@@ -5441,7 +5444,7 @@ class at extends A {
|
|
|
5441
5444
|
}
|
|
5442
5445
|
at.create = (t, e) => new at({
|
|
5443
5446
|
innerType: t,
|
|
5444
|
-
typeName:
|
|
5447
|
+
typeName: O.ZodDefault,
|
|
5445
5448
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
5446
5449
|
...L(e)
|
|
5447
5450
|
});
|
|
@@ -5484,7 +5487,7 @@ class st extends A {
|
|
|
5484
5487
|
}
|
|
5485
5488
|
st.create = (t, e) => new st({
|
|
5486
5489
|
innerType: t,
|
|
5487
|
-
typeName:
|
|
5490
|
+
typeName: O.ZodCatch,
|
|
5488
5491
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
5489
5492
|
...L(e)
|
|
5490
5493
|
});
|
|
@@ -5502,7 +5505,7 @@ class Ft extends A {
|
|
|
5502
5505
|
}
|
|
5503
5506
|
}
|
|
5504
5507
|
Ft.create = (t) => new Ft({
|
|
5505
|
-
typeName:
|
|
5508
|
+
typeName: O.ZodNaN,
|
|
5506
5509
|
...L(t)
|
|
5507
5510
|
});
|
|
5508
5511
|
class ln extends A {
|
|
@@ -5528,7 +5531,7 @@ class ht extends A {
|
|
|
5528
5531
|
path: a.path,
|
|
5529
5532
|
parent: a
|
|
5530
5533
|
});
|
|
5531
|
-
return n.status === "aborted" ? I : n.status === "dirty" ? (r.dirty(),
|
|
5534
|
+
return n.status === "aborted" ? I : n.status === "dirty" ? (r.dirty(), Oe(n.value)) : this._def.out._parseAsync({
|
|
5532
5535
|
data: n.value,
|
|
5533
5536
|
path: a.path,
|
|
5534
5537
|
parent: a
|
|
@@ -5554,7 +5557,7 @@ class ht extends A {
|
|
|
5554
5557
|
return new ht({
|
|
5555
5558
|
in: e,
|
|
5556
5559
|
out: r,
|
|
5557
|
-
typeName:
|
|
5560
|
+
typeName: O.ZodPipeline
|
|
5558
5561
|
});
|
|
5559
5562
|
}
|
|
5560
5563
|
}
|
|
@@ -5569,13 +5572,13 @@ class nt extends A {
|
|
|
5569
5572
|
}
|
|
5570
5573
|
nt.create = (t, e) => new nt({
|
|
5571
5574
|
innerType: t,
|
|
5572
|
-
typeName:
|
|
5575
|
+
typeName: O.ZodReadonly,
|
|
5573
5576
|
...L(e)
|
|
5574
5577
|
});
|
|
5575
|
-
var
|
|
5578
|
+
var O;
|
|
5576
5579
|
(function(t) {
|
|
5577
5580
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
5578
|
-
})(
|
|
5581
|
+
})(O || (O = {}));
|
|
5579
5582
|
const Ut = me.create;
|
|
5580
5583
|
ge.create;
|
|
5581
5584
|
ie.create;
|
|
@@ -5590,7 +5593,7 @@ Ie.create;
|
|
|
5590
5593
|
const cn = dn({
|
|
5591
5594
|
email: Ut().min(1, "Email is required").email("Enter a valid email"),
|
|
5592
5595
|
password: Ut().min(1, "Password is required").min(6, "Password must be at least 6 characters")
|
|
5593
|
-
}),
|
|
5596
|
+
}), Hn = ({
|
|
5594
5597
|
logo: t,
|
|
5595
5598
|
slogan: e,
|
|
5596
5599
|
loginUrl: r,
|
|
@@ -5692,20 +5695,20 @@ export {
|
|
|
5692
5695
|
xn as InfoCard,
|
|
5693
5696
|
dt as InlineLoader,
|
|
5694
5697
|
Nt as Input,
|
|
5695
|
-
|
|
5698
|
+
Hn as LoginPage,
|
|
5696
5699
|
bn as Modal,
|
|
5697
5700
|
wt as ModalBody,
|
|
5698
5701
|
_a as ModalFooter,
|
|
5699
5702
|
kt as ModalHeader,
|
|
5700
5703
|
Rn as MultiSelect,
|
|
5701
5704
|
zn as PageContainer,
|
|
5702
|
-
|
|
5705
|
+
$n as Pagination,
|
|
5703
5706
|
W as Position,
|
|
5704
|
-
|
|
5707
|
+
On as ProgressStat,
|
|
5705
5708
|
An as RadioGroup,
|
|
5706
5709
|
gn as Row,
|
|
5707
5710
|
Kt as Select,
|
|
5708
|
-
|
|
5711
|
+
Un as SideNavbar,
|
|
5709
5712
|
ae as Size,
|
|
5710
5713
|
_n as StatCard,
|
|
5711
5714
|
jn as Switch,
|
|
@@ -5717,19 +5720,20 @@ export {
|
|
|
5717
5720
|
Tn as TableRow,
|
|
5718
5721
|
En as Textarea,
|
|
5719
5722
|
yn as ThemeProvider,
|
|
5720
|
-
tr as
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
+
tr as ThemeSwitcher,
|
|
5724
|
+
$e as Tooltip,
|
|
5725
|
+
Fn as TopNavbar,
|
|
5723
5726
|
H as Variant,
|
|
5724
|
-
|
|
5727
|
+
Os as capitalizeWords,
|
|
5725
5728
|
Zn as errorToast,
|
|
5729
|
+
Vn as getLocalData,
|
|
5726
5730
|
Bn as infoToast,
|
|
5727
5731
|
Cs as loaderService,
|
|
5728
5732
|
fr as manageTextLength,
|
|
5729
5733
|
Is as successToast,
|
|
5730
5734
|
We as useAuthStore,
|
|
5731
5735
|
mt as useMenuStore,
|
|
5732
|
-
|
|
5736
|
+
va as useTheme,
|
|
5733
5737
|
Dn as warningToast
|
|
5734
5738
|
};
|
|
5735
5739
|
//# sourceMappingURL=index.mjs.map
|