florixui 1.10.0 → 1.12.0
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 +2 -2
- package/dist/components/custom/advanced-input.d.ts +24 -1
- package/dist/components/custom/data-table.d.ts +6 -1
- package/dist/index.js +768 -665
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { clsx as e } from "clsx";
|
|
|
2
2
|
import { twMerge as t } from "tailwind-merge";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { createContext as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
5
|
-
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as
|
|
5
|
+
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as j, FileArchiveIcon as M, FileIcon as N, FileSpreadsheetIcon as P, FileTextIcon as F, HeadphonesIcon as I, HomeIcon as ee, ImageIcon as te, ImageUpIcon as ne, InboxIcon as L, InfoIcon as R, Layers as z, Loader2 as re, Loader2Icon as B, LoaderCircleIcon as ie, Locate as ae, Maximize as V, Minus as oe, MoreVertical as H, OctagonXIcon as se, PaintBucketIcon as ce, Plus as le, PlusCircleIcon as ue, PlusIcon as de, RefreshCwIcon as fe, SearchIcon as pe, Trash2Icon as me, TrendingDownIcon as he, TrendingUpIcon as ge, TriangleAlertIcon as _e, UploadIcon as ve, VideoIcon as ye, X as be, XIcon as U } from "lucide-react";
|
|
6
6
|
import { cva as W } from "class-variance-authority";
|
|
7
7
|
import { AlertDialog as G, Checkbox as xe, Dialog as K, DropdownMenu as q, HoverCard as Se, Label as Ce, Popover as we, Progress as Te, RadioGroup as Ee, Select as J, Separator as De, Slider as Oe, Slot as ke, Switch as Ae, Tabs as je, Toggle as Me, ToggleGroup as Ne, Tooltip as Pe } from "radix-ui";
|
|
8
8
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -415,8 +415,39 @@ function pt({ items: e, trigger: t, triggerIcon: n = H, triggerLabel: r = "Open
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
//#endregion
|
|
418
|
+
//#region src/components/ui/badge.tsx
|
|
419
|
+
var mt = W("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
420
|
+
variants: { variant: {
|
|
421
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
422
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
423
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
424
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
425
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
426
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
427
|
+
red: "border-red/30 bg-red/10 text-red",
|
|
428
|
+
orange: "border-orange/30 bg-orange/10 text-orange",
|
|
429
|
+
yellow: "border-yellow/30 bg-yellow/10 text-yellow",
|
|
430
|
+
green: "border-green/30 bg-green/10 text-green",
|
|
431
|
+
teal: "border-teal/30 bg-teal/10 text-teal",
|
|
432
|
+
cyan: "border-cyan/30 bg-cyan/10 text-cyan",
|
|
433
|
+
blue: "border-blue/30 bg-blue/10 text-blue",
|
|
434
|
+
purple: "border-purple/30 bg-purple/10 text-purple",
|
|
435
|
+
pink: "border-pink/30 bg-pink/10 text-pink",
|
|
436
|
+
gray: "border-gray/30 bg-gray/10 text-gray"
|
|
437
|
+
} },
|
|
438
|
+
defaultVariants: { variant: "default" }
|
|
439
|
+
});
|
|
440
|
+
function ht({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
441
|
+
return /* @__PURE__ */ X(n ? ke.Root : "span", {
|
|
442
|
+
"data-slot": "badge",
|
|
443
|
+
"data-variant": t,
|
|
444
|
+
className: Q(mt({ variant: t }), e),
|
|
445
|
+
...r
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
//#endregion
|
|
418
449
|
//#region src/components/ui/label.tsx
|
|
419
|
-
function
|
|
450
|
+
function gt({ className: e, ...t }) {
|
|
420
451
|
return /* @__PURE__ */ X(Ce.Root, {
|
|
421
452
|
"data-slot": "label",
|
|
422
453
|
className: Q("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
@@ -425,7 +456,7 @@ function mt({ className: e, ...t }) {
|
|
|
425
456
|
}
|
|
426
457
|
//#endregion
|
|
427
458
|
//#region src/components/ui/separator.tsx
|
|
428
|
-
function
|
|
459
|
+
function _t({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
429
460
|
return /* @__PURE__ */ X(De.Root, {
|
|
430
461
|
"data-slot": "separator",
|
|
431
462
|
decorative: n,
|
|
@@ -436,14 +467,14 @@ function ht({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
436
467
|
}
|
|
437
468
|
//#endregion
|
|
438
469
|
//#region src/components/ui/field.tsx
|
|
439
|
-
function
|
|
470
|
+
function vt({ className: e, ...t }) {
|
|
440
471
|
return /* @__PURE__ */ X("fieldset", {
|
|
441
472
|
"data-slot": "field-set",
|
|
442
473
|
className: Q("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", e),
|
|
443
474
|
...t
|
|
444
475
|
});
|
|
445
476
|
}
|
|
446
|
-
function
|
|
477
|
+
function yt({ className: e, variant: t = "legend", ...n }) {
|
|
447
478
|
return /* @__PURE__ */ X("legend", {
|
|
448
479
|
"data-slot": "field-legend",
|
|
449
480
|
"data-variant": t,
|
|
@@ -451,14 +482,14 @@ function _t({ className: e, variant: t = "legend", ...n }) {
|
|
|
451
482
|
...n
|
|
452
483
|
});
|
|
453
484
|
}
|
|
454
|
-
function
|
|
485
|
+
function bt({ className: e, ...t }) {
|
|
455
486
|
return /* @__PURE__ */ X("div", {
|
|
456
487
|
"data-slot": "field-group",
|
|
457
488
|
className: Q("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
458
489
|
...t
|
|
459
490
|
});
|
|
460
491
|
}
|
|
461
|
-
var
|
|
492
|
+
var xt = W("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
462
493
|
variants: { orientation: {
|
|
463
494
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
464
495
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -466,57 +497,57 @@ var yt = W("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
|
466
497
|
} },
|
|
467
498
|
defaultVariants: { orientation: "vertical" }
|
|
468
499
|
});
|
|
469
|
-
function
|
|
500
|
+
function St({ className: e, orientation: t = "vertical", ...n }) {
|
|
470
501
|
return /* @__PURE__ */ X("div", {
|
|
471
502
|
role: "group",
|
|
472
503
|
"data-slot": "field",
|
|
473
504
|
"data-orientation": t,
|
|
474
|
-
className: Q(
|
|
505
|
+
className: Q(xt({ orientation: t }), e),
|
|
475
506
|
...n
|
|
476
507
|
});
|
|
477
508
|
}
|
|
478
|
-
function
|
|
509
|
+
function Ct({ className: e, ...t }) {
|
|
479
510
|
return /* @__PURE__ */ X("div", {
|
|
480
511
|
"data-slot": "field-content",
|
|
481
512
|
className: Q("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", e),
|
|
482
513
|
...t
|
|
483
514
|
});
|
|
484
515
|
}
|
|
485
|
-
function
|
|
486
|
-
return /* @__PURE__ */ X(
|
|
516
|
+
function wt({ className: e, ...t }) {
|
|
517
|
+
return /* @__PURE__ */ X(gt, {
|
|
487
518
|
"data-slot": "field-label",
|
|
488
519
|
className: Q("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
489
520
|
...t
|
|
490
521
|
});
|
|
491
522
|
}
|
|
492
|
-
function
|
|
523
|
+
function Tt({ className: e, ...t }) {
|
|
493
524
|
return /* @__PURE__ */ X("div", {
|
|
494
525
|
"data-slot": "field-label",
|
|
495
526
|
className: Q("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50", e),
|
|
496
527
|
...t
|
|
497
528
|
});
|
|
498
529
|
}
|
|
499
|
-
function
|
|
530
|
+
function Et({ className: e, ...t }) {
|
|
500
531
|
return /* @__PURE__ */ X("p", {
|
|
501
532
|
"data-slot": "field-description",
|
|
502
533
|
className: Q("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
503
534
|
...t
|
|
504
535
|
});
|
|
505
536
|
}
|
|
506
|
-
function
|
|
537
|
+
function Dt({ children: e, className: t, ...n }) {
|
|
507
538
|
return /* @__PURE__ */ Z("div", {
|
|
508
539
|
"data-slot": "field-separator",
|
|
509
540
|
"data-content": !!e,
|
|
510
541
|
className: Q("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", t),
|
|
511
542
|
...n,
|
|
512
|
-
children: [/* @__PURE__ */ X(
|
|
543
|
+
children: [/* @__PURE__ */ X(_t, { className: "absolute inset-0 top-1/2" }), e && /* @__PURE__ */ X("span", {
|
|
513
544
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
514
545
|
"data-slot": "field-separator-content",
|
|
515
546
|
children: e
|
|
516
547
|
})]
|
|
517
548
|
});
|
|
518
549
|
}
|
|
519
|
-
function
|
|
550
|
+
function Ot({ className: e, children: t, errors: n, ...r }) {
|
|
520
551
|
let i = u(() => {
|
|
521
552
|
if (t) return t;
|
|
522
553
|
if (!n?.length) return null;
|
|
@@ -536,39 +567,39 @@ function Et({ className: e, children: t, errors: n, ...r }) {
|
|
|
536
567
|
}
|
|
537
568
|
//#endregion
|
|
538
569
|
//#region src/components/ui/dialog.tsx
|
|
539
|
-
function
|
|
570
|
+
function kt({ ...e }) {
|
|
540
571
|
return /* @__PURE__ */ X(K.Root, {
|
|
541
572
|
"data-slot": "dialog",
|
|
542
573
|
...e
|
|
543
574
|
});
|
|
544
575
|
}
|
|
545
|
-
function
|
|
576
|
+
function At({ ...e }) {
|
|
546
577
|
return /* @__PURE__ */ X(K.Trigger, {
|
|
547
578
|
"data-slot": "dialog-trigger",
|
|
548
579
|
...e
|
|
549
580
|
});
|
|
550
581
|
}
|
|
551
|
-
function
|
|
582
|
+
function jt({ ...e }) {
|
|
552
583
|
return /* @__PURE__ */ X(K.Portal, {
|
|
553
584
|
"data-slot": "dialog-portal",
|
|
554
585
|
...e
|
|
555
586
|
});
|
|
556
587
|
}
|
|
557
|
-
function
|
|
588
|
+
function Mt({ ...e }) {
|
|
558
589
|
return /* @__PURE__ */ X(K.Close, {
|
|
559
590
|
"data-slot": "dialog-close",
|
|
560
591
|
...e
|
|
561
592
|
});
|
|
562
593
|
}
|
|
563
|
-
function
|
|
594
|
+
function Nt({ className: e, ...t }) {
|
|
564
595
|
return /* @__PURE__ */ X(K.Overlay, {
|
|
565
596
|
"data-slot": "dialog-overlay",
|
|
566
597
|
className: Q("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
567
598
|
...t
|
|
568
599
|
});
|
|
569
600
|
}
|
|
570
|
-
function
|
|
571
|
-
return /* @__PURE__ */ Z(
|
|
601
|
+
function Pt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
602
|
+
return /* @__PURE__ */ Z(jt, { children: [/* @__PURE__ */ X(Nt, {}), /* @__PURE__ */ Z(K.Content, {
|
|
572
603
|
"data-slot": "dialog-content",
|
|
573
604
|
className: Q("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
574
605
|
...r,
|
|
@@ -587,14 +618,14 @@ function Mt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
587
618
|
})]
|
|
588
619
|
})] });
|
|
589
620
|
}
|
|
590
|
-
function
|
|
621
|
+
function Ft({ className: e, ...t }) {
|
|
591
622
|
return /* @__PURE__ */ X("div", {
|
|
592
623
|
"data-slot": "dialog-header",
|
|
593
624
|
className: Q("flex flex-col gap-2", e),
|
|
594
625
|
...t
|
|
595
626
|
});
|
|
596
627
|
}
|
|
597
|
-
function
|
|
628
|
+
function It({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
598
629
|
return /* @__PURE__ */ Z("div", {
|
|
599
630
|
"data-slot": "dialog-footer",
|
|
600
631
|
className: Q("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
@@ -608,14 +639,14 @@ function Pt({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
608
639
|
})]
|
|
609
640
|
});
|
|
610
641
|
}
|
|
611
|
-
function
|
|
642
|
+
function Lt({ className: e, ...t }) {
|
|
612
643
|
return /* @__PURE__ */ X(K.Title, {
|
|
613
644
|
"data-slot": "dialog-title",
|
|
614
645
|
className: Q("text-base leading-none font-medium", e),
|
|
615
646
|
...t
|
|
616
647
|
});
|
|
617
648
|
}
|
|
618
|
-
function
|
|
649
|
+
function Rt({ className: e, ...t }) {
|
|
619
650
|
return /* @__PURE__ */ X(K.Description, {
|
|
620
651
|
"data-slot": "dialog-description",
|
|
621
652
|
className: Q("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
@@ -624,7 +655,7 @@ function It({ className: e, ...t }) {
|
|
|
624
655
|
}
|
|
625
656
|
//#endregion
|
|
626
657
|
//#region src/components/ui/input.tsx
|
|
627
|
-
function
|
|
658
|
+
function zt({ className: e, type: t, ...n }) {
|
|
628
659
|
return /* @__PURE__ */ X("input", {
|
|
629
660
|
type: t,
|
|
630
661
|
"data-slot": "input",
|
|
@@ -634,7 +665,7 @@ function Lt({ className: e, type: t, ...n }) {
|
|
|
634
665
|
}
|
|
635
666
|
//#endregion
|
|
636
667
|
//#region src/components/ui/textarea.tsx
|
|
637
|
-
function
|
|
668
|
+
function Bt({ className: e, ...t }) {
|
|
638
669
|
return /* @__PURE__ */ X("textarea", {
|
|
639
670
|
"data-slot": "textarea",
|
|
640
671
|
className: Q("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
@@ -643,7 +674,7 @@ function Rt({ className: e, ...t }) {
|
|
|
643
674
|
}
|
|
644
675
|
//#endregion
|
|
645
676
|
//#region src/components/ui/input-group.tsx
|
|
646
|
-
function
|
|
677
|
+
function Vt({ className: e, ...t }) {
|
|
647
678
|
return /* @__PURE__ */ X("div", {
|
|
648
679
|
"data-slot": "input-group",
|
|
649
680
|
role: "group",
|
|
@@ -651,7 +682,7 @@ function zt({ className: e, ...t }) {
|
|
|
651
682
|
...t
|
|
652
683
|
});
|
|
653
684
|
}
|
|
654
|
-
var
|
|
685
|
+
var Ht = W("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
655
686
|
variants: { align: {
|
|
656
687
|
"inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
|
|
657
688
|
"inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
|
|
@@ -660,19 +691,19 @@ var Bt = W("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 tex
|
|
|
660
691
|
} },
|
|
661
692
|
defaultVariants: { align: "inline-start" }
|
|
662
693
|
});
|
|
663
|
-
function
|
|
694
|
+
function Ut({ className: e, align: t = "inline-start", ...n }) {
|
|
664
695
|
return /* @__PURE__ */ X("div", {
|
|
665
696
|
role: "group",
|
|
666
697
|
"data-slot": "input-group-addon",
|
|
667
698
|
"data-align": t,
|
|
668
|
-
className: Q(
|
|
699
|
+
className: Q(Ht({ align: t }), e),
|
|
669
700
|
onClick: (e) => {
|
|
670
701
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
671
702
|
},
|
|
672
703
|
...n
|
|
673
704
|
});
|
|
674
705
|
}
|
|
675
|
-
var
|
|
706
|
+
var Wt = W("flex items-center gap-2 text-sm shadow-none", {
|
|
676
707
|
variants: { size: {
|
|
677
708
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
678
709
|
sm: "",
|
|
@@ -681,30 +712,30 @@ var Ht = W("flex items-center gap-2 text-sm shadow-none", {
|
|
|
681
712
|
} },
|
|
682
713
|
defaultVariants: { size: "xs" }
|
|
683
714
|
});
|
|
684
|
-
function
|
|
715
|
+
function Gt({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
685
716
|
return /* @__PURE__ */ X($, {
|
|
686
717
|
type: t,
|
|
687
718
|
"data-size": r,
|
|
688
719
|
variant: n,
|
|
689
|
-
className: Q(
|
|
720
|
+
className: Q(Wt({ size: r }), e),
|
|
690
721
|
...i
|
|
691
722
|
});
|
|
692
723
|
}
|
|
693
|
-
function
|
|
724
|
+
function Kt({ className: e, ...t }) {
|
|
694
725
|
return /* @__PURE__ */ X("span", {
|
|
695
726
|
className: Q("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
696
727
|
...t
|
|
697
728
|
});
|
|
698
729
|
}
|
|
699
|
-
function
|
|
700
|
-
return /* @__PURE__ */ X(
|
|
730
|
+
function qt({ className: e, ...t }) {
|
|
731
|
+
return /* @__PURE__ */ X(zt, {
|
|
701
732
|
"data-slot": "input-group-control",
|
|
702
733
|
className: Q("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
|
|
703
734
|
...t
|
|
704
735
|
});
|
|
705
736
|
}
|
|
706
|
-
function
|
|
707
|
-
return /* @__PURE__ */ X(
|
|
737
|
+
function Jt({ className: e, ...t }) {
|
|
738
|
+
return /* @__PURE__ */ X(Bt, {
|
|
708
739
|
"data-slot": "input-group-control",
|
|
709
740
|
className: Q("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
|
|
710
741
|
...t
|
|
@@ -712,69 +743,69 @@ function Kt({ className: e, ...t }) {
|
|
|
712
743
|
}
|
|
713
744
|
//#endregion
|
|
714
745
|
//#region src/components/ui/command.tsx
|
|
715
|
-
function
|
|
746
|
+
function Yt({ className: e, ...t }) {
|
|
716
747
|
return /* @__PURE__ */ X(Fe, {
|
|
717
748
|
"data-slot": "command",
|
|
718
749
|
className: Q("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground", e),
|
|
719
750
|
...t
|
|
720
751
|
});
|
|
721
752
|
}
|
|
722
|
-
function
|
|
723
|
-
return /* @__PURE__ */ Z(
|
|
753
|
+
function Xt({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !1, ...a }) {
|
|
754
|
+
return /* @__PURE__ */ Z(kt, {
|
|
724
755
|
...a,
|
|
725
|
-
children: [/* @__PURE__ */ Z(
|
|
756
|
+
children: [/* @__PURE__ */ Z(Ft, {
|
|
726
757
|
className: "sr-only",
|
|
727
|
-
children: [/* @__PURE__ */ X(
|
|
728
|
-
}), /* @__PURE__ */ X(
|
|
758
|
+
children: [/* @__PURE__ */ X(Lt, { children: e }), /* @__PURE__ */ X(Rt, { children: t })]
|
|
759
|
+
}), /* @__PURE__ */ X(Pt, {
|
|
729
760
|
className: Q("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", r),
|
|
730
761
|
showCloseButton: i,
|
|
731
762
|
children: n
|
|
732
763
|
})]
|
|
733
764
|
});
|
|
734
765
|
}
|
|
735
|
-
function
|
|
766
|
+
function Zt({ className: e, ...t }) {
|
|
736
767
|
return /* @__PURE__ */ X("div", {
|
|
737
768
|
"data-slot": "command-input-wrapper",
|
|
738
769
|
className: "p-1 pb-0",
|
|
739
|
-
children: /* @__PURE__ */ Z(
|
|
770
|
+
children: /* @__PURE__ */ Z(Vt, {
|
|
740
771
|
className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",
|
|
741
772
|
children: [/* @__PURE__ */ X(Fe.Input, {
|
|
742
773
|
"data-slot": "command-input",
|
|
743
774
|
className: Q("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
744
775
|
...t
|
|
745
|
-
}), /* @__PURE__ */ X(
|
|
776
|
+
}), /* @__PURE__ */ X(Ut, { children: /* @__PURE__ */ X(pe, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
746
777
|
})
|
|
747
778
|
});
|
|
748
779
|
}
|
|
749
|
-
function
|
|
780
|
+
function Qt({ className: e, ...t }) {
|
|
750
781
|
return /* @__PURE__ */ X(Fe.List, {
|
|
751
782
|
"data-slot": "command-list",
|
|
752
783
|
className: Q("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", e),
|
|
753
784
|
...t
|
|
754
785
|
});
|
|
755
786
|
}
|
|
756
|
-
function
|
|
787
|
+
function $t({ className: e, ...t }) {
|
|
757
788
|
return /* @__PURE__ */ X(Fe.Empty, {
|
|
758
789
|
"data-slot": "command-empty",
|
|
759
790
|
className: Q("py-6 text-center text-sm", e),
|
|
760
791
|
...t
|
|
761
792
|
});
|
|
762
793
|
}
|
|
763
|
-
function
|
|
794
|
+
function en({ className: e, ...t }) {
|
|
764
795
|
return /* @__PURE__ */ X(Fe.Group, {
|
|
765
796
|
"data-slot": "command-group",
|
|
766
797
|
className: Q("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", e),
|
|
767
798
|
...t
|
|
768
799
|
});
|
|
769
800
|
}
|
|
770
|
-
function
|
|
801
|
+
function tn({ className: e, ...t }) {
|
|
771
802
|
return /* @__PURE__ */ X(Fe.Separator, {
|
|
772
803
|
"data-slot": "command-separator",
|
|
773
804
|
className: Q("-mx-1 h-px bg-border", e),
|
|
774
805
|
...t
|
|
775
806
|
});
|
|
776
807
|
}
|
|
777
|
-
function
|
|
808
|
+
function nn({ className: e, children: t, ...n }) {
|
|
778
809
|
return /* @__PURE__ */ Z(Fe.Item, {
|
|
779
810
|
"data-slot": "command-item",
|
|
780
811
|
className: Q("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground", e),
|
|
@@ -782,7 +813,7 @@ function en({ className: e, children: t, ...n }) {
|
|
|
782
813
|
children: [t, /* @__PURE__ */ X(v, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
|
|
783
814
|
});
|
|
784
815
|
}
|
|
785
|
-
function
|
|
816
|
+
function rn({ className: e, ...t }) {
|
|
786
817
|
return /* @__PURE__ */ X("span", {
|
|
787
818
|
"data-slot": "command-shortcut",
|
|
788
819
|
className: Q("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", e),
|
|
@@ -791,19 +822,19 @@ function tn({ className: e, ...t }) {
|
|
|
791
822
|
}
|
|
792
823
|
//#endregion
|
|
793
824
|
//#region src/components/ui/popover.tsx
|
|
794
|
-
function
|
|
825
|
+
function an({ ...e }) {
|
|
795
826
|
return /* @__PURE__ */ X(we.Root, {
|
|
796
827
|
"data-slot": "popover",
|
|
797
828
|
...e
|
|
798
829
|
});
|
|
799
830
|
}
|
|
800
|
-
function
|
|
831
|
+
function on({ ...e }) {
|
|
801
832
|
return /* @__PURE__ */ X(we.Trigger, {
|
|
802
833
|
"data-slot": "popover-trigger",
|
|
803
834
|
...e
|
|
804
835
|
});
|
|
805
836
|
}
|
|
806
|
-
function
|
|
837
|
+
function sn({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
807
838
|
return /* @__PURE__ */ X(we.Portal, { children: /* @__PURE__ */ X(we.Content, {
|
|
808
839
|
"data-slot": "popover-content",
|
|
809
840
|
align: t,
|
|
@@ -812,27 +843,27 @@ function an({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
812
843
|
...r
|
|
813
844
|
}) });
|
|
814
845
|
}
|
|
815
|
-
function
|
|
846
|
+
function cn({ ...e }) {
|
|
816
847
|
return /* @__PURE__ */ X(we.Anchor, {
|
|
817
848
|
"data-slot": "popover-anchor",
|
|
818
849
|
...e
|
|
819
850
|
});
|
|
820
851
|
}
|
|
821
|
-
function
|
|
852
|
+
function ln({ className: e, ...t }) {
|
|
822
853
|
return /* @__PURE__ */ X("div", {
|
|
823
854
|
"data-slot": "popover-header",
|
|
824
855
|
className: Q("flex flex-col gap-0.5 text-sm", e),
|
|
825
856
|
...t
|
|
826
857
|
});
|
|
827
858
|
}
|
|
828
|
-
function
|
|
859
|
+
function un({ className: e, ...t }) {
|
|
829
860
|
return /* @__PURE__ */ X("div", {
|
|
830
861
|
"data-slot": "popover-title",
|
|
831
862
|
className: Q("font-medium", e),
|
|
832
863
|
...t
|
|
833
864
|
});
|
|
834
865
|
}
|
|
835
|
-
function
|
|
866
|
+
function dn({ className: e, ...t }) {
|
|
836
867
|
return /* @__PURE__ */ X("p", {
|
|
837
868
|
"data-slot": "popover-description",
|
|
838
869
|
className: Q("text-muted-foreground", e),
|
|
@@ -841,7 +872,7 @@ function ln({ className: e, ...t }) {
|
|
|
841
872
|
}
|
|
842
873
|
//#endregion
|
|
843
874
|
//#region src/components/custom/phone-countries.ts
|
|
844
|
-
var
|
|
875
|
+
var fn = [
|
|
845
876
|
{
|
|
846
877
|
iso: "AU",
|
|
847
878
|
name: "Australia",
|
|
@@ -1103,7 +1134,7 @@ var un = [
|
|
|
1103
1134
|
];
|
|
1104
1135
|
//#endregion
|
|
1105
1136
|
//#region src/components/custom/advanced-input.tsx
|
|
1106
|
-
function
|
|
1137
|
+
function pn({ error: e, errorMessage: t, helperText: n, errorId: r, helperId: i }) {
|
|
1107
1138
|
return !t && !n ? null : /* @__PURE__ */ X("div", {
|
|
1108
1139
|
className: "mt-1.5 min-h-5",
|
|
1109
1140
|
children: e && t ? /* @__PURE__ */ X("p", {
|
|
@@ -1117,12 +1148,13 @@ function dn({ error: e, errorMessage: t, helperText: n, errorId: r, helperId: i
|
|
|
1117
1148
|
}) : null
|
|
1118
1149
|
});
|
|
1119
1150
|
}
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1151
|
+
var mn = n.forwardRef(function(e, t) {
|
|
1152
|
+
if (e.as === "tags") return /* @__PURE__ */ X(gn, { ...e });
|
|
1153
|
+
let { className: r, wrapperClassName: i, label: a, description: o, errorMessage: s, helperText: c, required: l = !1, size: u = "default", variant: d = "default", leftIcon: f, rightIcon: p, disabled: m, startItem: h, endItem: g, loading: _ = !1, as: v = "input", id: y, error: b, ...x } = e, S = b ?? !!s, C = n.useId(), w = y || C, [T, E] = n.useState(!1), D = `${w}-error`, O = `${w}-helper`, k = `${w}-description`, M = [
|
|
1122
1154
|
S && s ? D : null,
|
|
1123
1155
|
!S && c ? O : null,
|
|
1124
1156
|
o ? k : null
|
|
1125
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1157
|
+
].filter(Boolean).join(" ") || void 0, N = d === "alt" ? "bg-muted" : "bg-transparent dark:bg-input/30", P = l ? /* @__PURE__ */ X("span", {
|
|
1126
1158
|
"aria-hidden": !0,
|
|
1127
1159
|
className: "ml-0.5 text-destructive",
|
|
1128
1160
|
children: "*"
|
|
@@ -1132,65 +1164,65 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1132
1164
|
return /* @__PURE__ */ Z("div", {
|
|
1133
1165
|
className: Q("space-y-1.5", i),
|
|
1134
1166
|
children: [
|
|
1135
|
-
a && /* @__PURE__ */ Z(
|
|
1167
|
+
a && /* @__PURE__ */ Z(wt, {
|
|
1136
1168
|
htmlFor: w,
|
|
1137
1169
|
className: Q(m && "text-muted-foreground"),
|
|
1138
|
-
children: [a,
|
|
1170
|
+
children: [a, P]
|
|
1139
1171
|
}),
|
|
1140
1172
|
/* @__PURE__ */ X("textarea", {
|
|
1141
1173
|
id: w,
|
|
1142
1174
|
ref: t,
|
|
1143
1175
|
disabled: m,
|
|
1144
1176
|
"aria-invalid": S,
|
|
1145
|
-
"aria-describedby":
|
|
1146
|
-
className: Q("flex min-h-20 w-full rounded-lg border border-input px-3 py-2 text-sm outline-none transition-colors placeholder:text-muted-foreground/60",
|
|
1177
|
+
"aria-describedby": M,
|
|
1178
|
+
className: Q("flex min-h-20 w-full rounded-lg border border-input px-3 py-2 text-sm outline-none transition-colors placeholder:text-muted-foreground/60", N, "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", r),
|
|
1147
1179
|
...e
|
|
1148
1180
|
}),
|
|
1149
|
-
/* @__PURE__ */ X(
|
|
1181
|
+
/* @__PURE__ */ X(pn, {
|
|
1150
1182
|
error: S,
|
|
1151
1183
|
errorMessage: s,
|
|
1152
1184
|
helperText: c,
|
|
1153
1185
|
errorId: D,
|
|
1154
1186
|
helperId: O
|
|
1155
1187
|
}),
|
|
1156
|
-
o && /* @__PURE__ */ X(
|
|
1188
|
+
o && /* @__PURE__ */ X(Et, {
|
|
1157
1189
|
id: k,
|
|
1158
1190
|
children: o
|
|
1159
1191
|
})
|
|
1160
1192
|
]
|
|
1161
1193
|
});
|
|
1162
1194
|
}
|
|
1163
|
-
let { type:
|
|
1195
|
+
let { type: F, onFocus: I, ...ee } = x, te = F ?? "text", ne = te === "password", L = ne && T ? "text" : te, R = ne ? /* @__PURE__ */ X("button", {
|
|
1164
1196
|
type: "button",
|
|
1165
1197
|
onClick: () => E((e) => !e),
|
|
1166
1198
|
"aria-label": T ? "Hide password" : "Show password",
|
|
1167
1199
|
className: "cursor-pointer text-muted-foreground transition-colors hover:text-foreground",
|
|
1168
1200
|
tabIndex: -1,
|
|
1169
|
-
children: X(T ?
|
|
1170
|
-
}) : null, z = _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" }) : f, B =
|
|
1171
|
-
|
|
1201
|
+
children: X(T ? j : A, { className: "size-4" })
|
|
1202
|
+
}) : null, z = _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" }) : f, B = ne ? R : p, ie = (e) => {
|
|
1203
|
+
L === "number" && e.target.select(), I?.(e);
|
|
1172
1204
|
}, ae = !!(h || g), V = /* @__PURE__ */ X("input", {
|
|
1173
1205
|
id: w,
|
|
1174
|
-
type:
|
|
1206
|
+
type: L,
|
|
1175
1207
|
ref: t,
|
|
1176
1208
|
disabled: m,
|
|
1177
1209
|
"aria-invalid": S,
|
|
1178
|
-
"aria-describedby":
|
|
1210
|
+
"aria-describedby": M,
|
|
1179
1211
|
onFocus: ie,
|
|
1180
|
-
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground/60 disabled:cursor-not-allowed", ae ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-lg border border-input pl-3 pr-3 py-1 transition-colors",
|
|
1181
|
-
...
|
|
1212
|
+
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground/60 disabled:cursor-not-allowed", ae ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-lg border border-input pl-3 pr-3 py-1 transition-colors", N, u === "default" ? "h-9" : "h-8", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", z && "pl-9", B && "pr-9"), ae && "pl-3 pr-3", ae && z && !h && "pl-9", ae && B && !g && "pr-9", r),
|
|
1213
|
+
...ee
|
|
1182
1214
|
});
|
|
1183
1215
|
return /* @__PURE__ */ Z("div", {
|
|
1184
1216
|
className: Q("space-y-1.5", i),
|
|
1185
1217
|
children: [
|
|
1186
|
-
a && /* @__PURE__ */ Z(
|
|
1218
|
+
a && /* @__PURE__ */ Z(wt, {
|
|
1187
1219
|
htmlFor: w,
|
|
1188
1220
|
className: Q(m && "text-muted-foreground"),
|
|
1189
|
-
children: [a,
|
|
1221
|
+
children: [a, P]
|
|
1190
1222
|
}),
|
|
1191
1223
|
ae ? /* @__PURE__ */ Z("div", {
|
|
1192
1224
|
"aria-invalid": S,
|
|
1193
|
-
className: Q("flex items-center overflow-hidden rounded-lg border border-input transition-colors",
|
|
1225
|
+
className: Q("flex items-center overflow-hidden rounded-lg border border-input transition-colors", N, u === "default" ? "h-9" : "h-8", "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50", "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-3 aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40", m && "cursor-not-allowed opacity-50"),
|
|
1194
1226
|
children: [
|
|
1195
1227
|
h && /* @__PURE__ */ X("div", {
|
|
1196
1228
|
className: "flex h-full shrink-0 items-center justify-center border-r border-input bg-muted/40 px-3 text-sm text-muted-foreground [&_svg]:size-4",
|
|
@@ -1229,27 +1261,115 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1229
1261
|
})
|
|
1230
1262
|
]
|
|
1231
1263
|
}),
|
|
1232
|
-
/* @__PURE__ */ X(
|
|
1264
|
+
/* @__PURE__ */ X(pn, {
|
|
1233
1265
|
error: S,
|
|
1234
1266
|
errorMessage: s,
|
|
1235
1267
|
helperText: c,
|
|
1236
1268
|
errorId: D,
|
|
1237
1269
|
helperId: O
|
|
1238
1270
|
}),
|
|
1239
|
-
o && /* @__PURE__ */ X(
|
|
1271
|
+
o && /* @__PURE__ */ X(Et, {
|
|
1240
1272
|
id: k,
|
|
1241
1273
|
children: o
|
|
1242
1274
|
})
|
|
1243
1275
|
]
|
|
1244
1276
|
});
|
|
1245
1277
|
});
|
|
1246
|
-
|
|
1247
|
-
function
|
|
1278
|
+
mn.displayName = "AdvancedInput";
|
|
1279
|
+
function hn({ children: e, onRemove: t, disabled: n }) {
|
|
1280
|
+
return /* @__PURE__ */ Z(ht, {
|
|
1281
|
+
variant: "default",
|
|
1282
|
+
className: "gap-1 pr-1 font-normal",
|
|
1283
|
+
children: [/* @__PURE__ */ X("span", {
|
|
1284
|
+
className: "truncate",
|
|
1285
|
+
children: e
|
|
1286
|
+
}), !n && /* @__PURE__ */ X("button", {
|
|
1287
|
+
type: "button",
|
|
1288
|
+
"aria-label": `Remove ${e}`,
|
|
1289
|
+
onClick: t,
|
|
1290
|
+
tabIndex: -1,
|
|
1291
|
+
className: "flex size-3.5 items-center justify-center rounded-sm text-primary-foreground/80 transition-colors hover:bg-primary-foreground/20 hover:text-primary-foreground",
|
|
1292
|
+
children: /* @__PURE__ */ X(U, { className: "size-3" })
|
|
1293
|
+
})]
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
function gn({ value: e, onChange: t, label: r, description: i, errorMessage: a, helperText: o, required: s = !1, size: c = "default", variant: l = "default", disabled: u, placeholder: d = "Add and press Enter…", badgePosition: f = "inside", separators: p = [",", "Enter"], dedupe: m = !0, maxTags: h, error: g, className: _, wrapperClassName: v, id: y }) {
|
|
1297
|
+
let [b, x] = n.useState(""), S = n.useRef(null), C = n.useId(), w = y || C, T = `${w}-error`, E = `${w}-helper`, D = `${w}-description`, O = g ?? !!a, k = l === "alt" ? "bg-muted" : "bg-transparent dark:bg-input/30", A = f === "inside", j = (n) => {
|
|
1298
|
+
let r = n.trim();
|
|
1299
|
+
r && (m && e.some((e) => e.toLowerCase() === r.toLowerCase()) || h != null && e.length >= h || t([...e, r]));
|
|
1300
|
+
}, M = () => {
|
|
1301
|
+
b.trim() && (j(b), x(""));
|
|
1302
|
+
}, N = (n) => t(e.filter((e, t) => t !== n));
|
|
1303
|
+
return /* @__PURE__ */ Z("div", {
|
|
1304
|
+
className: Q("space-y-1.5", v),
|
|
1305
|
+
children: [
|
|
1306
|
+
r && /* @__PURE__ */ Z(wt, {
|
|
1307
|
+
htmlFor: w,
|
|
1308
|
+
className: Q(u && "text-muted-foreground"),
|
|
1309
|
+
children: [r, s && /* @__PURE__ */ X("span", {
|
|
1310
|
+
"aria-hidden": !0,
|
|
1311
|
+
className: "ml-0.5 text-destructive",
|
|
1312
|
+
children: "*"
|
|
1313
|
+
})]
|
|
1314
|
+
}),
|
|
1315
|
+
/* @__PURE__ */ Z("div", {
|
|
1316
|
+
onClick: () => S.current?.focus(),
|
|
1317
|
+
"aria-invalid": O,
|
|
1318
|
+
className: Q("flex w-full cursor-text rounded-lg border border-input transition-colors", k, "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", u && "cursor-not-allowed opacity-50", A ? "min-h-9 flex-wrap items-center gap-1.5 px-2 py-1.5" : Q("items-center px-3", c === "default" ? "h-9" : "h-8"), _),
|
|
1319
|
+
children: [A && e.map((e, t) => /* @__PURE__ */ X(hn, {
|
|
1320
|
+
onRemove: () => N(t),
|
|
1321
|
+
disabled: u,
|
|
1322
|
+
children: e
|
|
1323
|
+
}, `${e}-${t}`)), /* @__PURE__ */ X("input", {
|
|
1324
|
+
id: w,
|
|
1325
|
+
ref: S,
|
|
1326
|
+
value: b,
|
|
1327
|
+
onChange: (e) => {
|
|
1328
|
+
let t = e.target.value;
|
|
1329
|
+
if (p.includes(",") && t.includes(",")) {
|
|
1330
|
+
let e = t.split(","), n = e.pop() ?? "";
|
|
1331
|
+
e.forEach((e) => j(e)), x(n);
|
|
1332
|
+
} else x(t);
|
|
1333
|
+
},
|
|
1334
|
+
onKeyDown: (t) => {
|
|
1335
|
+
p.includes(t.key) ? (t.preventDefault(), M()) : t.key === "Backspace" && b === "" && e.length > 0 && N(e.length - 1);
|
|
1336
|
+
},
|
|
1337
|
+
onBlur: M,
|
|
1338
|
+
disabled: u,
|
|
1339
|
+
placeholder: e.length === 0 || !A ? d : "",
|
|
1340
|
+
"aria-invalid": O,
|
|
1341
|
+
"aria-describedby": O && a ? T : void 0,
|
|
1342
|
+
className: "min-w-24 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground/60 disabled:cursor-not-allowed"
|
|
1343
|
+
})]
|
|
1344
|
+
}),
|
|
1345
|
+
!A && e.length > 0 && /* @__PURE__ */ X("div", {
|
|
1346
|
+
className: "flex flex-wrap gap-1.5",
|
|
1347
|
+
children: e.map((e, t) => /* @__PURE__ */ X(hn, {
|
|
1348
|
+
onRemove: () => N(t),
|
|
1349
|
+
disabled: u,
|
|
1350
|
+
children: e
|
|
1351
|
+
}, `${e}-${t}`))
|
|
1352
|
+
}),
|
|
1353
|
+
/* @__PURE__ */ X(pn, {
|
|
1354
|
+
error: O,
|
|
1355
|
+
errorMessage: a,
|
|
1356
|
+
helperText: o,
|
|
1357
|
+
errorId: T,
|
|
1358
|
+
helperId: E
|
|
1359
|
+
}),
|
|
1360
|
+
i && /* @__PURE__ */ X(Et, {
|
|
1361
|
+
id: D,
|
|
1362
|
+
children: i
|
|
1363
|
+
})
|
|
1364
|
+
]
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function _n({ country: e, countries: t, onSelect: r, disabled: i }) {
|
|
1248
1368
|
let [a, o] = n.useState(!1);
|
|
1249
|
-
return /* @__PURE__ */ Z(
|
|
1369
|
+
return /* @__PURE__ */ Z(an, {
|
|
1250
1370
|
open: a,
|
|
1251
1371
|
onOpenChange: o,
|
|
1252
|
-
children: [/* @__PURE__ */ X(
|
|
1372
|
+
children: [/* @__PURE__ */ X(on, {
|
|
1253
1373
|
asChild: !0,
|
|
1254
1374
|
children: /* @__PURE__ */ Z("button", {
|
|
1255
1375
|
type: "button",
|
|
@@ -1267,12 +1387,12 @@ function pn({ country: e, countries: t, onSelect: r, disabled: i }) {
|
|
|
1267
1387
|
/* @__PURE__ */ X(y, { className: "size-3.5 opacity-60" })
|
|
1268
1388
|
]
|
|
1269
1389
|
})
|
|
1270
|
-
}), /* @__PURE__ */ X(
|
|
1390
|
+
}), /* @__PURE__ */ X(sn, {
|
|
1271
1391
|
className: "w-64 p-0",
|
|
1272
1392
|
align: "start",
|
|
1273
|
-
children: /* @__PURE__ */ Z(
|
|
1393
|
+
children: /* @__PURE__ */ Z(Yt, {
|
|
1274
1394
|
filter: (e, t) => +!!e.toLowerCase().includes(t.toLowerCase()),
|
|
1275
|
-
children: [/* @__PURE__ */ X(
|
|
1395
|
+
children: [/* @__PURE__ */ X(Zt, { placeholder: "Search country…" }), /* @__PURE__ */ Z(Qt, { children: [/* @__PURE__ */ X($t, { children: "No country found." }), t.map((e) => /* @__PURE__ */ Z(nn, {
|
|
1276
1396
|
value: `${e.name} +${e.dial} ${e.iso}`,
|
|
1277
1397
|
onSelect: () => {
|
|
1278
1398
|
r(e), o(!1);
|
|
@@ -1296,7 +1416,7 @@ function pn({ country: e, countries: t, onSelect: r, disabled: i }) {
|
|
|
1296
1416
|
})]
|
|
1297
1417
|
});
|
|
1298
1418
|
}
|
|
1299
|
-
var
|
|
1419
|
+
var vn = n.forwardRef(function({ value: e = "", onChange: t, defaultCountry: r = "US", countries: i = fn, placeholder: a = "Phone number", disabled: o, ...s }, c) {
|
|
1300
1420
|
let l = i.find((e) => e.iso === r) ?? i[0], u = n.useMemo(() => {
|
|
1301
1421
|
if (!e.startsWith("+")) return null;
|
|
1302
1422
|
let t = e.slice(1);
|
|
@@ -1305,7 +1425,7 @@ var mn = n.forwardRef(function({ value: e = "", onChange: t, defaultCountry: r =
|
|
|
1305
1425
|
let r = n.replace(/[^\d]/g, "");
|
|
1306
1426
|
t?.(`+${e}${r}`);
|
|
1307
1427
|
};
|
|
1308
|
-
return /* @__PURE__ */ X(
|
|
1428
|
+
return /* @__PURE__ */ X(mn, {
|
|
1309
1429
|
ref: c,
|
|
1310
1430
|
type: "tel",
|
|
1311
1431
|
inputMode: "tel",
|
|
@@ -1314,7 +1434,7 @@ var mn = n.forwardRef(function({ value: e = "", onChange: t, defaultCountry: r =
|
|
|
1314
1434
|
disabled: o,
|
|
1315
1435
|
value: h,
|
|
1316
1436
|
onChange: (e) => g(m, e.currentTarget.value),
|
|
1317
|
-
startItem: /* @__PURE__ */ X(
|
|
1437
|
+
startItem: /* @__PURE__ */ X(_n, {
|
|
1318
1438
|
country: p,
|
|
1319
1439
|
countries: i,
|
|
1320
1440
|
onSelect: (e) => {
|
|
@@ -1325,43 +1445,12 @@ var mn = n.forwardRef(function({ value: e = "", onChange: t, defaultCountry: r =
|
|
|
1325
1445
|
...s
|
|
1326
1446
|
});
|
|
1327
1447
|
});
|
|
1328
|
-
|
|
1329
|
-
//#endregion
|
|
1330
|
-
//#region src/components/ui/badge.tsx
|
|
1331
|
-
var hn = W("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
1332
|
-
variants: { variant: {
|
|
1333
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
1334
|
-
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
1335
|
-
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
1336
|
-
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
1337
|
-
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
1338
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
1339
|
-
red: "border-red/30 bg-red/10 text-red",
|
|
1340
|
-
orange: "border-orange/30 bg-orange/10 text-orange",
|
|
1341
|
-
yellow: "border-yellow/30 bg-yellow/10 text-yellow",
|
|
1342
|
-
green: "border-green/30 bg-green/10 text-green",
|
|
1343
|
-
teal: "border-teal/30 bg-teal/10 text-teal",
|
|
1344
|
-
cyan: "border-cyan/30 bg-cyan/10 text-cyan",
|
|
1345
|
-
blue: "border-blue/30 bg-blue/10 text-blue",
|
|
1346
|
-
purple: "border-purple/30 bg-purple/10 text-purple",
|
|
1347
|
-
pink: "border-pink/30 bg-pink/10 text-pink",
|
|
1348
|
-
gray: "border-gray/30 bg-gray/10 text-gray"
|
|
1349
|
-
} },
|
|
1350
|
-
defaultVariants: { variant: "default" }
|
|
1351
|
-
});
|
|
1352
|
-
function gn({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
1353
|
-
return /* @__PURE__ */ X(n ? ke.Root : "span", {
|
|
1354
|
-
"data-slot": "badge",
|
|
1355
|
-
"data-variant": t,
|
|
1356
|
-
className: Q(hn({ variant: t }), e),
|
|
1357
|
-
...r
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1448
|
+
vn.displayName = "PhoneInput";
|
|
1360
1449
|
//#endregion
|
|
1361
1450
|
//#region src/components/custom/alert-card.tsx
|
|
1362
|
-
var
|
|
1451
|
+
var yn = {
|
|
1363
1452
|
info: {
|
|
1364
|
-
icon:
|
|
1453
|
+
icon: R,
|
|
1365
1454
|
badge: "blue",
|
|
1366
1455
|
filled: "border-blue/30 bg-blue/10 text-blue",
|
|
1367
1456
|
iconBox: "bg-blue/10 text-blue",
|
|
@@ -1389,8 +1478,8 @@ var _n = {
|
|
|
1389
1478
|
actionBtn: "bg-green text-white hover:bg-green/90"
|
|
1390
1479
|
}
|
|
1391
1480
|
};
|
|
1392
|
-
function
|
|
1393
|
-
let d =
|
|
1481
|
+
function bn({ severity: e = "info", variant: t = "filled", icon: n, title: r, description: i, badge: a, actions: o, dismissible: s = !1, onDismiss: c, className: l, ...u }) {
|
|
1482
|
+
let d = yn[e], f = d.icon, p = s && /* @__PURE__ */ X("button", {
|
|
1394
1483
|
type: "button",
|
|
1395
1484
|
"aria-label": "Dismiss",
|
|
1396
1485
|
onClick: c,
|
|
@@ -1439,7 +1528,7 @@ function vn({ severity: e = "info", variant: t = "filled", icon: n, title: r, de
|
|
|
1439
1528
|
children: [r != null && /* @__PURE__ */ X("p", {
|
|
1440
1529
|
className: "text-sm font-medium text-foreground",
|
|
1441
1530
|
children: r
|
|
1442
|
-
}), a != null && /* @__PURE__ */ X(
|
|
1531
|
+
}), a != null && /* @__PURE__ */ X(ht, {
|
|
1443
1532
|
variant: d.badge,
|
|
1444
1533
|
className: "text-[10px]",
|
|
1445
1534
|
children: a
|
|
@@ -1459,46 +1548,46 @@ function vn({ severity: e = "info", variant: t = "filled", icon: n, title: r, de
|
|
|
1459
1548
|
]
|
|
1460
1549
|
});
|
|
1461
1550
|
}
|
|
1462
|
-
function
|
|
1551
|
+
function xn({ severity: e = "info", className: t, ...n }) {
|
|
1463
1552
|
return /* @__PURE__ */ X($, {
|
|
1464
1553
|
size: "sm",
|
|
1465
|
-
className: Q(
|
|
1554
|
+
className: Q(yn[e].actionBtn, t),
|
|
1466
1555
|
...n
|
|
1467
1556
|
});
|
|
1468
1557
|
}
|
|
1469
1558
|
//#endregion
|
|
1470
1559
|
//#region src/components/custom/file-upload.tsx
|
|
1471
|
-
var
|
|
1560
|
+
var Sn = [
|
|
1472
1561
|
{
|
|
1473
1562
|
match: (e, t) => e.includes("zip") || e.includes("archive") || t.endsWith(".zip") || t.endsWith(".rar"),
|
|
1474
|
-
Icon:
|
|
1563
|
+
Icon: M
|
|
1475
1564
|
},
|
|
1476
1565
|
{
|
|
1477
1566
|
match: (e) => e.includes("audio/"),
|
|
1478
|
-
Icon:
|
|
1567
|
+
Icon: I
|
|
1479
1568
|
},
|
|
1480
1569
|
{
|
|
1481
1570
|
match: (e, t) => e.includes("excel") || t.endsWith(".xls") || t.endsWith(".xlsx"),
|
|
1482
|
-
Icon:
|
|
1571
|
+
Icon: P
|
|
1483
1572
|
},
|
|
1484
1573
|
{
|
|
1485
1574
|
match: (e) => e.startsWith("image/"),
|
|
1486
|
-
Icon:
|
|
1575
|
+
Icon: te
|
|
1487
1576
|
},
|
|
1488
1577
|
{
|
|
1489
1578
|
match: (e, t) => e.includes("pdf") || t.endsWith(".pdf") || e.includes("word") || t.endsWith(".doc") || t.endsWith(".docx"),
|
|
1490
|
-
Icon:
|
|
1579
|
+
Icon: F
|
|
1491
1580
|
},
|
|
1492
1581
|
{
|
|
1493
1582
|
match: (e) => e.includes("video/"),
|
|
1494
1583
|
Icon: ye
|
|
1495
1584
|
}
|
|
1496
1585
|
];
|
|
1497
|
-
function
|
|
1498
|
-
for (let { match: t, Icon: n } of
|
|
1499
|
-
return /* @__PURE__ */ X(
|
|
1586
|
+
function Cn(e) {
|
|
1587
|
+
for (let { match: t, Icon: n } of Sn) if (t(e.type, e.name)) return /* @__PURE__ */ X(n, { className: "size-5 opacity-60" });
|
|
1588
|
+
return /* @__PURE__ */ X(N, { className: "size-5 opacity-60" });
|
|
1500
1589
|
}
|
|
1501
|
-
function
|
|
1590
|
+
function wn({ entry: e }) {
|
|
1502
1591
|
let { file: t } = e;
|
|
1503
1592
|
return /* @__PURE__ */ X("div", {
|
|
1504
1593
|
className: "flex aspect-square items-center justify-center overflow-hidden rounded-t-[inherit] bg-accent",
|
|
@@ -1506,10 +1595,10 @@ function Sn({ entry: e }) {
|
|
|
1506
1595
|
alt: t.name,
|
|
1507
1596
|
className: "size-full rounded-t-[inherit] object-cover",
|
|
1508
1597
|
src: e.preview
|
|
1509
|
-
}) :
|
|
1598
|
+
}) : Cn(t)
|
|
1510
1599
|
});
|
|
1511
1600
|
}
|
|
1512
|
-
function
|
|
1601
|
+
function Tn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024 * 1024, maxFiles: r = 6, multiple: i, initialFiles: a, disabled: o, onFilesChange: s, className: c }) {
|
|
1513
1602
|
let [{ files: l, isDragging: u, errors: d }, { handleDragEnter: f, handleDragLeave: m, handleDragOver: h, handleDrop: g, openFileDialog: _, removeFile: v, clearFiles: y, getInputProps: b }] = qe({
|
|
1514
1603
|
accept: t,
|
|
1515
1604
|
maxSize: n,
|
|
@@ -1555,7 +1644,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1555
1644
|
/* @__PURE__ */ X("div", {
|
|
1556
1645
|
"aria-hidden": "true",
|
|
1557
1646
|
className: "mb-2 flex size-11 shrink-0 items-center justify-center rounded-full border bg-background",
|
|
1558
|
-
children: /* @__PURE__ */ X(
|
|
1647
|
+
children: /* @__PURE__ */ X(ne, { className: "size-4 opacity-60" })
|
|
1559
1648
|
}),
|
|
1560
1649
|
/* @__PURE__ */ X("p", {
|
|
1561
1650
|
className: "mb-1.5 font-medium text-sm",
|
|
@@ -1635,7 +1724,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1635
1724
|
children: l.map((e) => /* @__PURE__ */ Z("div", {
|
|
1636
1725
|
className: "relative flex flex-col rounded-md border bg-background",
|
|
1637
1726
|
children: [
|
|
1638
|
-
/* @__PURE__ */ X(
|
|
1727
|
+
/* @__PURE__ */ X(wn, { entry: e }),
|
|
1639
1728
|
/* @__PURE__ */ X($, {
|
|
1640
1729
|
"aria-label": "Remove file",
|
|
1641
1730
|
className: "-top-2 -right-2 absolute size-6 rounded-full border-2 border-background shadow-none focus-visible:border-background",
|
|
@@ -1662,7 +1751,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1662
1751
|
/* @__PURE__ */ X("div", {
|
|
1663
1752
|
"aria-hidden": "true",
|
|
1664
1753
|
className: "mb-2 flex size-11 shrink-0 items-center justify-center rounded-full border bg-background",
|
|
1665
|
-
children: /* @__PURE__ */ X(
|
|
1754
|
+
children: /* @__PURE__ */ X(te, { className: "size-4 opacity-60" })
|
|
1666
1755
|
}),
|
|
1667
1756
|
/* @__PURE__ */ X("p", {
|
|
1668
1757
|
className: "mb-1.5 font-medium text-sm",
|
|
@@ -1694,19 +1783,19 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1694
1783
|
}
|
|
1695
1784
|
//#endregion
|
|
1696
1785
|
//#region src/components/custom/advanced-select.tsx
|
|
1697
|
-
function
|
|
1786
|
+
function En(e) {
|
|
1698
1787
|
return typeof e == "object" && !!e && "value" in e && "label" in e;
|
|
1699
1788
|
}
|
|
1700
|
-
function
|
|
1701
|
-
let [
|
|
1702
|
-
|
|
1703
|
-
}, [
|
|
1789
|
+
function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, placeholder: a = "Select option", disabled: o = !1, error: s = !1, errorMessage: c, multiple: l = !1, className: u, size: d = "default", variant: f = "default", searchable: p = !1, clearable: m = !1, getOptionLabel: h, getOptionValue: g, renderOptionLabel: _, label: y, description: x, required: S = !1, onCreateNew: C, createNewLabel: w = "New item", loading: T = !1, compactMultiple: E = !1, formatCompactDisplay: D, startItem: O, endItem: k, maxSelections: A, defaultOpen: j = !1, onOpenChange: M, onLoadMore: N, hasNextPage: P = !1, isFetchingNextPage: F = !1, allowEmpty: I = !1, showSelectAll: ee = !1, readOnly: te = !1, popoverClassName: ne }) {
|
|
1790
|
+
let [L, R] = n.useState(j), z = n.useRef(!1), B = n.useRef(null), ie = n.useId(), ae = n.useCallback((e) => {
|
|
1791
|
+
te && e || (R(e), M?.(e), e && (z.current = !1));
|
|
1792
|
+
}, [M, te]), [V, oe] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
|
|
1704
1793
|
n.useEffect(() => {
|
|
1705
1794
|
l && oe(Array.isArray(r) ? r : r ? [r] : []);
|
|
1706
1795
|
}, [l, r]), n.useEffect(() => {
|
|
1707
|
-
|
|
1708
|
-
}, [
|
|
1709
|
-
let H = n.useCallback((e) => typeof e == "string" ? e : g ? g(e) :
|
|
1796
|
+
F || (z.current = !1);
|
|
1797
|
+
}, [F]);
|
|
1798
|
+
let H = n.useCallback((e) => typeof e == "string" ? e : g ? g(e) : En(e) ? e.value : String(e), [g]), se = n.useCallback((n) => {
|
|
1710
1799
|
if (typeof n == "string") {
|
|
1711
1800
|
for (let e of t) {
|
|
1712
1801
|
let t = e.options.find((e) => e.value === n);
|
|
@@ -1714,10 +1803,10 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1714
1803
|
}
|
|
1715
1804
|
for (let t of e) if (typeof t == "string") {
|
|
1716
1805
|
if (t === n) return t;
|
|
1717
|
-
} else if (
|
|
1806
|
+
} else if (En(t) && t.value === n) return t.label;
|
|
1718
1807
|
return n;
|
|
1719
1808
|
}
|
|
1720
|
-
return h ? h(n) :
|
|
1809
|
+
return h ? h(n) : En(n) ? n.label : String(n);
|
|
1721
1810
|
}, [
|
|
1722
1811
|
h,
|
|
1723
1812
|
t,
|
|
@@ -1729,7 +1818,7 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1729
1818
|
]), le = n.useMemo(() => e.map((e) => typeof e == "string" ? {
|
|
1730
1819
|
value: e,
|
|
1731
1820
|
label: e
|
|
1732
|
-
} :
|
|
1821
|
+
} : En(e) ? e : {
|
|
1733
1822
|
value: H(e),
|
|
1734
1823
|
label: se(e)
|
|
1735
1824
|
}), [
|
|
@@ -1750,14 +1839,14 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1750
1839
|
}
|
|
1751
1840
|
if (l) {
|
|
1752
1841
|
let e = V.some((e) => H(e) === n);
|
|
1753
|
-
if (!e && A && V.length >= A || e && V.length === 1 && !
|
|
1842
|
+
if (!e && A && V.length >= A || e && V.length === 1 && !I) return;
|
|
1754
1843
|
let t = e ? V.filter((e) => H(e) !== n) : [...V, r];
|
|
1755
1844
|
oe(t), i?.(t);
|
|
1756
|
-
} else i?.(r),
|
|
1845
|
+
} else i?.(r), R(!1);
|
|
1757
1846
|
}, me = l && fe.length > 0 && fe.length === V.length, he = () => {
|
|
1758
1847
|
if (l) {
|
|
1759
1848
|
if (me) {
|
|
1760
|
-
|
|
1849
|
+
I && (oe([]), i?.([]));
|
|
1761
1850
|
return;
|
|
1762
1851
|
}
|
|
1763
1852
|
A && fe.length > A || (oe(fe), i?.(fe));
|
|
@@ -1765,18 +1854,18 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1765
1854
|
}, ge = (e) => {
|
|
1766
1855
|
e.stopPropagation(), l ? (oe([]), i?.([])) : i?.("");
|
|
1767
1856
|
}, _e = (e, t) => {
|
|
1768
|
-
if (e.stopPropagation(), V.length === 1 && !
|
|
1857
|
+
if (e.stopPropagation(), V.length === 1 && !I) return;
|
|
1769
1858
|
let n = V.filter((e) => H(e) !== H(t));
|
|
1770
1859
|
oe(n), i?.(n);
|
|
1771
1860
|
}, ve = n.useCallback((e) => {
|
|
1772
1861
|
let t = e.currentTarget;
|
|
1773
|
-
t.scrollHeight - t.scrollTop - t.clientHeight < 100 &&
|
|
1862
|
+
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && N && P && !F && !z.current && (z.current = !0, N());
|
|
1774
1863
|
}, [
|
|
1775
|
-
M,
|
|
1776
1864
|
N,
|
|
1777
|
-
P
|
|
1865
|
+
P,
|
|
1866
|
+
F
|
|
1778
1867
|
]), ye = l ? V.length > 0 : !!ce, be = () => l ? null : fe.find((e) => e.value === ce)?.label || a, W = () => {
|
|
1779
|
-
!o && !
|
|
1868
|
+
!o && !te && (B.current?.focus(), R(!0));
|
|
1780
1869
|
}, G = !!(O || k), xe = l && !E, K = xe ? d === "default" ? "min-h-9" : "min-h-8" : d === "default" ? "h-9" : "h-8", q = f === "alt" ? "bg-muted" : "bg-transparent dark:bg-input/30", Se = /* @__PURE__ */ X("div", {
|
|
1781
1870
|
className: Q("flex min-w-0 flex-1 items-center gap-1.5", xe ? "py-1" : "overflow-hidden"),
|
|
1782
1871
|
children: l && V.length > 0 ? E ? /* @__PURE__ */ X("span", {
|
|
@@ -1817,7 +1906,7 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1817
1906
|
})]
|
|
1818
1907
|
}), we = (e) => {
|
|
1819
1908
|
let t = l ? V.some((t) => H(t) === e.value) : ce === e.value, n = ue(e.value);
|
|
1820
|
-
return /* @__PURE__ */ Z(
|
|
1909
|
+
return /* @__PURE__ */ Z(nn, {
|
|
1821
1910
|
value: e.value,
|
|
1822
1911
|
onSelect: () => pe(e.value),
|
|
1823
1912
|
disabled: e.disabled,
|
|
@@ -1861,23 +1950,23 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1861
1950
|
})
|
|
1862
1951
|
]
|
|
1863
1952
|
}, e.value);
|
|
1864
|
-
}, Te = /* @__PURE__ */ X(
|
|
1865
|
-
className: Q("w-(--radix-popper-anchor-width) min-w-(--radix-popper-anchor-width) p-0",
|
|
1953
|
+
}, Te = /* @__PURE__ */ X(sn, {
|
|
1954
|
+
className: Q("w-(--radix-popper-anchor-width) min-w-(--radix-popper-anchor-width) p-0", ne),
|
|
1866
1955
|
align: "start",
|
|
1867
1956
|
onOpenAutoFocus: (e) => {
|
|
1868
1957
|
p || e.preventDefault();
|
|
1869
1958
|
},
|
|
1870
1959
|
onWheel: (e) => e.stopPropagation(),
|
|
1871
|
-
children: /* @__PURE__ */ Z(
|
|
1960
|
+
children: /* @__PURE__ */ Z(Yt, { children: [p && /* @__PURE__ */ X(Zt, {
|
|
1872
1961
|
placeholder: `Search ${a.toLowerCase()}...`,
|
|
1873
1962
|
autoFocus: !0
|
|
1874
|
-
}), /* @__PURE__ */ X(
|
|
1963
|
+
}), /* @__PURE__ */ X(Qt, {
|
|
1875
1964
|
onScroll: ve,
|
|
1876
1965
|
children: T ? /* @__PURE__ */ X("div", {
|
|
1877
1966
|
className: "flex items-center justify-center py-6",
|
|
1878
1967
|
children: /* @__PURE__ */ X(re, { className: "size-5 animate-spin text-muted-foreground" })
|
|
1879
1968
|
}) : /* @__PURE__ */ Z(Y, { children: [
|
|
1880
|
-
l &&
|
|
1969
|
+
l && ee && fe.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(en, { children: /* @__PURE__ */ Z(nn, {
|
|
1881
1970
|
value: "__select_all__",
|
|
1882
1971
|
onSelect: he,
|
|
1883
1972
|
className: "font-medium",
|
|
@@ -1888,17 +1977,17 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1888
1977
|
className: "text-primary-foreground"
|
|
1889
1978
|
})
|
|
1890
1979
|
}), /* @__PURE__ */ X("span", { children: "Select all" })]
|
|
1891
|
-
}) }), /* @__PURE__ */ X(
|
|
1892
|
-
/* @__PURE__ */ X(
|
|
1893
|
-
t.length > 0 ? t.map((e, t) => /* @__PURE__ */ Z(n.Fragment, { children: [t > 0 && /* @__PURE__ */ X(
|
|
1980
|
+
}) }), /* @__PURE__ */ X(tn, {})] }),
|
|
1981
|
+
/* @__PURE__ */ X($t, { children: "No results found." }),
|
|
1982
|
+
t.length > 0 ? t.map((e, t) => /* @__PURE__ */ Z(n.Fragment, { children: [t > 0 && /* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, {
|
|
1894
1983
|
heading: e.label,
|
|
1895
1984
|
children: e.options.map(we)
|
|
1896
|
-
})] }, e.label)) : /* @__PURE__ */ X(
|
|
1897
|
-
C && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
1985
|
+
})] }, e.label)) : /* @__PURE__ */ X(en, { children: le.map(we) }),
|
|
1986
|
+
C && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, { children: /* @__PURE__ */ Z($, {
|
|
1898
1987
|
variant: "ghost",
|
|
1899
1988
|
className: "w-full justify-start font-normal",
|
|
1900
1989
|
onClick: () => {
|
|
1901
|
-
C(),
|
|
1990
|
+
C(), R(!1);
|
|
1902
1991
|
},
|
|
1903
1992
|
children: [/* @__PURE__ */ X(de, {
|
|
1904
1993
|
size: 16,
|
|
@@ -1906,7 +1995,7 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1906
1995
|
"aria-hidden": !0
|
|
1907
1996
|
}), w]
|
|
1908
1997
|
}) })] }),
|
|
1909
|
-
|
|
1998
|
+
F && /* @__PURE__ */ X("div", {
|
|
1910
1999
|
className: "flex items-center justify-center py-3",
|
|
1911
2000
|
children: /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" })
|
|
1912
2001
|
})
|
|
@@ -1920,21 +2009,21 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1920
2009
|
return /* @__PURE__ */ Z("div", {
|
|
1921
2010
|
className: "space-y-1.5",
|
|
1922
2011
|
children: [
|
|
1923
|
-
y && /* @__PURE__ */ Z(
|
|
2012
|
+
y && /* @__PURE__ */ Z(wt, {
|
|
1924
2013
|
htmlFor: ie,
|
|
1925
2014
|
onClick: W,
|
|
1926
2015
|
className: Q("cursor-pointer", o && "text-muted-foreground"),
|
|
1927
2016
|
children: [y, Ee]
|
|
1928
2017
|
}),
|
|
1929
|
-
G ? /* @__PURE__ */ Z(
|
|
1930
|
-
open:
|
|
2018
|
+
G ? /* @__PURE__ */ Z(an, {
|
|
2019
|
+
open: L,
|
|
1931
2020
|
onOpenChange: ae,
|
|
1932
2021
|
modal: !1,
|
|
1933
|
-
children: [/* @__PURE__ */ X(
|
|
2022
|
+
children: [/* @__PURE__ */ X(on, {
|
|
1934
2023
|
asChild: !0,
|
|
1935
2024
|
children: /* @__PURE__ */ Z("div", {
|
|
1936
2025
|
"aria-invalid": s,
|
|
1937
|
-
className: Q("flex rounded-md border border-input transition-colors", xe ? "items-stretch" : "items-center overflow-hidden", q, K,
|
|
2026
|
+
className: Q("flex rounded-md border border-input transition-colors", xe ? "items-stretch" : "items-center overflow-hidden", q, K, L && "border-ring ring-3 ring-ring/50", "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-3 aria-[invalid=true]:ring-destructive/20", o && "pointer-events-none cursor-not-allowed opacity-50"),
|
|
1938
2027
|
children: [
|
|
1939
2028
|
O && /* @__PURE__ */ X("div", {
|
|
1940
2029
|
className: "flex h-full shrink-0 items-center justify-center border-r border-input bg-muted/40 px-3 text-sm text-muted-foreground [&_svg]:size-4",
|
|
@@ -1947,9 +2036,9 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1947
2036
|
ref: B,
|
|
1948
2037
|
variant: "ghost",
|
|
1949
2038
|
role: "combobox",
|
|
1950
|
-
"aria-expanded":
|
|
2039
|
+
"aria-expanded": L,
|
|
1951
2040
|
onClick: (e) => {
|
|
1952
|
-
|
|
2041
|
+
te && (e.preventDefault(), e.stopPropagation());
|
|
1953
2042
|
},
|
|
1954
2043
|
className: Q("h-full flex-1 justify-between rounded-none border-0 px-3 py-1 font-normal text-foreground shadow-none hover:bg-transparent focus-visible:ring-0", xe ? "items-start" : "items-center", u),
|
|
1955
2044
|
children: [Se, Ce]
|
|
@@ -1961,11 +2050,11 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1961
2050
|
]
|
|
1962
2051
|
})
|
|
1963
2052
|
}), Te]
|
|
1964
|
-
}) : /* @__PURE__ */ Z(
|
|
1965
|
-
open:
|
|
2053
|
+
}) : /* @__PURE__ */ Z(an, {
|
|
2054
|
+
open: L,
|
|
1966
2055
|
onOpenChange: ae,
|
|
1967
2056
|
modal: !1,
|
|
1968
|
-
children: [/* @__PURE__ */ X(
|
|
2057
|
+
children: [/* @__PURE__ */ X(on, {
|
|
1969
2058
|
asChild: !0,
|
|
1970
2059
|
children: /* @__PURE__ */ Z($, {
|
|
1971
2060
|
id: ie,
|
|
@@ -1974,12 +2063,12 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1974
2063
|
ref: B,
|
|
1975
2064
|
variant: "outline",
|
|
1976
2065
|
role: "combobox",
|
|
1977
|
-
"aria-expanded":
|
|
2066
|
+
"aria-expanded": L,
|
|
1978
2067
|
"aria-invalid": s,
|
|
1979
2068
|
onClick: (e) => {
|
|
1980
|
-
|
|
2069
|
+
te && (e.preventDefault(), e.stopPropagation());
|
|
1981
2070
|
},
|
|
1982
|
-
className: Q("h-auto w-full justify-between px-3 py-1 font-normal text-foreground", K, xe ? "items-start" : "items-center", q,
|
|
2071
|
+
className: Q("h-auto w-full justify-between px-3 py-1 font-normal text-foreground", K, xe ? "items-start" : "items-center", q, L && "border-ring ring-3 ring-ring/50", u),
|
|
1983
2072
|
children: [Se, Ce]
|
|
1984
2073
|
})
|
|
1985
2074
|
}), Te]
|
|
@@ -1988,13 +2077,13 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1988
2077
|
className: "text-xs leading-5 text-destructive",
|
|
1989
2078
|
children: c
|
|
1990
2079
|
}),
|
|
1991
|
-
x && /* @__PURE__ */ X(
|
|
2080
|
+
x && /* @__PURE__ */ X(Et, { children: x })
|
|
1992
2081
|
]
|
|
1993
2082
|
});
|
|
1994
2083
|
}
|
|
1995
2084
|
//#endregion
|
|
1996
2085
|
//#region src/components/ui/checkbox.tsx
|
|
1997
|
-
function
|
|
2086
|
+
function On({ className: e, ...t }) {
|
|
1998
2087
|
return /* @__PURE__ */ X(xe.Root, {
|
|
1999
2088
|
"data-slot": "checkbox",
|
|
2000
2089
|
className: Q("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
@@ -2008,7 +2097,7 @@ function En({ className: e, ...t }) {
|
|
|
2008
2097
|
}
|
|
2009
2098
|
//#endregion
|
|
2010
2099
|
//#region src/components/ui/table.tsx
|
|
2011
|
-
function
|
|
2100
|
+
function kn({ className: e, ...t }) {
|
|
2012
2101
|
return /* @__PURE__ */ X("div", {
|
|
2013
2102
|
"data-slot": "table-container",
|
|
2014
2103
|
className: "relative w-full overflow-x-auto",
|
|
@@ -2019,49 +2108,49 @@ function Dn({ className: e, ...t }) {
|
|
|
2019
2108
|
})
|
|
2020
2109
|
});
|
|
2021
2110
|
}
|
|
2022
|
-
function
|
|
2111
|
+
function An({ className: e, ...t }) {
|
|
2023
2112
|
return /* @__PURE__ */ X("thead", {
|
|
2024
2113
|
"data-slot": "table-header",
|
|
2025
2114
|
className: Q("[&_tr]:border-b", e),
|
|
2026
2115
|
...t
|
|
2027
2116
|
});
|
|
2028
2117
|
}
|
|
2029
|
-
function
|
|
2118
|
+
function jn({ className: e, ...t }) {
|
|
2030
2119
|
return /* @__PURE__ */ X("tbody", {
|
|
2031
2120
|
"data-slot": "table-body",
|
|
2032
2121
|
className: Q("[&_tr:last-child]:border-0", e),
|
|
2033
2122
|
...t
|
|
2034
2123
|
});
|
|
2035
2124
|
}
|
|
2036
|
-
function
|
|
2125
|
+
function Mn({ className: e, ...t }) {
|
|
2037
2126
|
return /* @__PURE__ */ X("tfoot", {
|
|
2038
2127
|
"data-slot": "table-footer",
|
|
2039
2128
|
className: Q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
2040
2129
|
...t
|
|
2041
2130
|
});
|
|
2042
2131
|
}
|
|
2043
|
-
function
|
|
2132
|
+
function Nn({ className: e, ...t }) {
|
|
2044
2133
|
return /* @__PURE__ */ X("tr", {
|
|
2045
2134
|
"data-slot": "table-row",
|
|
2046
2135
|
className: Q("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
2047
2136
|
...t
|
|
2048
2137
|
});
|
|
2049
2138
|
}
|
|
2050
|
-
function
|
|
2139
|
+
function Pn({ className: e, ...t }) {
|
|
2051
2140
|
return /* @__PURE__ */ X("th", {
|
|
2052
2141
|
"data-slot": "table-head",
|
|
2053
2142
|
className: Q("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", e),
|
|
2054
2143
|
...t
|
|
2055
2144
|
});
|
|
2056
2145
|
}
|
|
2057
|
-
function
|
|
2146
|
+
function Fn({ className: e, ...t }) {
|
|
2058
2147
|
return /* @__PURE__ */ X("td", {
|
|
2059
2148
|
"data-slot": "table-cell",
|
|
2060
2149
|
className: Q("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", e),
|
|
2061
2150
|
...t
|
|
2062
2151
|
});
|
|
2063
2152
|
}
|
|
2064
|
-
function
|
|
2153
|
+
function In({ className: e, ...t }) {
|
|
2065
2154
|
return /* @__PURE__ */ X("caption", {
|
|
2066
2155
|
"data-slot": "table-caption",
|
|
2067
2156
|
className: Q("mt-4 text-sm text-muted-foreground", e),
|
|
@@ -2070,111 +2159,125 @@ function Pn({ className: e, ...t }) {
|
|
|
2070
2159
|
}
|
|
2071
2160
|
//#endregion
|
|
2072
2161
|
//#region src/components/custom/data-table.tsx
|
|
2073
|
-
var
|
|
2162
|
+
var Ln = {
|
|
2074
2163
|
left: "text-left",
|
|
2075
2164
|
center: "text-center",
|
|
2076
2165
|
right: "text-right"
|
|
2077
2166
|
};
|
|
2078
|
-
function
|
|
2167
|
+
function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisabled: i, selectable: a = !1, selectedIds: o, onSelectionChange: s, rowActions: c, loading: l = !1, emptyMessage: u = "No results.", pagination: d = !1, pageSize: f = 25, pageSizeOptions: p = [
|
|
2079
2168
|
25,
|
|
2080
2169
|
50,
|
|
2081
2170
|
100,
|
|
2082
2171
|
200
|
|
2083
|
-
], striped:
|
|
2084
|
-
let
|
|
2085
|
-
|
|
2086
|
-
|
|
2172
|
+
], striped: m = !0, stickyHeader: h = !1, maxHeight: g, fillHeight: _ = !1, onRowClick: v, className: y }) {
|
|
2173
|
+
let b = n.useMemo(() => t.map((e, t) => r(e, t)), [t, r]), C = n.useMemo(() => {
|
|
2174
|
+
let e = {};
|
|
2175
|
+
return t.forEach((t, n) => {
|
|
2176
|
+
e[r(t, n)] = i?.(t, n) ?? !1;
|
|
2177
|
+
}), e;
|
|
2178
|
+
}, [
|
|
2179
|
+
t,
|
|
2180
|
+
r,
|
|
2181
|
+
i
|
|
2182
|
+
]), E = n.useMemo(() => b.filter((e) => !C[e]), [b, C]), [D, O] = n.useState([]), k = o ?? D, A = (e) => {
|
|
2183
|
+
o === void 0 && O(e), s?.(e);
|
|
2184
|
+
}, j = E.length > 0 && E.every((e) => k.includes(e)), M = k.length > 0 && !j, N = () => A(j ? k.filter((e) => C[e]) : [...new Set([...k, ...E])]), P = (e) => {
|
|
2185
|
+
C[e] || A(k.includes(e) ? k.filter((t) => t !== e) : [...k, e]);
|
|
2186
|
+
}, F = e.length + +!!a + +!!c, [I, ee] = n.useState(f), [te, ne] = n.useState(0), L = d ? Math.max(1, Math.ceil(t.length / I)) : 1, R = Math.min(te, L - 1), z = n.useMemo(() => {
|
|
2087
2187
|
let e = t.map((e, t) => ({
|
|
2088
2188
|
row: e,
|
|
2089
2189
|
index: t
|
|
2090
2190
|
}));
|
|
2091
|
-
if (!
|
|
2092
|
-
let n =
|
|
2093
|
-
return e.slice(n, n +
|
|
2191
|
+
if (!d) return e;
|
|
2192
|
+
let n = R * I;
|
|
2193
|
+
return e.slice(n, n + I);
|
|
2094
2194
|
}, [
|
|
2095
2195
|
t,
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
]),
|
|
2196
|
+
d,
|
|
2197
|
+
R,
|
|
2198
|
+
I
|
|
2199
|
+
]), re = "px-4 py-3 first:pl-5 last:pr-5", B = "px-4 first:pl-5 last:pr-5", ie = !_ && g !== void 0 ? typeof g == "number" ? `${g}px` : g : void 0;
|
|
2100
2200
|
return /* @__PURE__ */ Z("div", {
|
|
2101
|
-
className: Q("overflow-hidden rounded-lg border",
|
|
2102
|
-
style:
|
|
2103
|
-
children: [/* @__PURE__ */ Z(
|
|
2104
|
-
className: Q("bg-muted/60",
|
|
2105
|
-
children: /* @__PURE__ */ Z(
|
|
2201
|
+
className: Q("overflow-hidden rounded-lg border", d && "rounded-b-none border-b-0", (_ || g !== void 0) && "flex min-h-0 flex-col [&_[data-slot=table-container]]:overflow-y-auto", _ && "min-h-0 flex-1 [&_[data-slot=table-container]]:min-h-0 [&_[data-slot=table-container]]:flex-1", !_ && g !== void 0 && "[&_[data-slot=table-container]]:max-h-(--dt-max-h)", y),
|
|
2202
|
+
style: ie ? { "--dt-max-h": ie } : void 0,
|
|
2203
|
+
children: [/* @__PURE__ */ Z(kn, { children: [/* @__PURE__ */ X(An, {
|
|
2204
|
+
className: Q("bg-muted/60", h && Q("sticky top-0 z-10 [&_th]:border-b [&_th]:bg-muted/95 [&_th]:backdrop-blur supports-backdrop-filter:[&_th]:bg-muted/80", "[&_th:first-child]:rounded-tl-lg [&_th:last-child]:rounded-tr-lg")),
|
|
2205
|
+
children: /* @__PURE__ */ Z(Nn, {
|
|
2106
2206
|
className: "hover:bg-transparent",
|
|
2107
2207
|
children: [
|
|
2108
|
-
|
|
2109
|
-
className: Q("w-10",
|
|
2110
|
-
children: /* @__PURE__ */ X(
|
|
2208
|
+
a && /* @__PURE__ */ X(Pn, {
|
|
2209
|
+
className: Q("w-10", B),
|
|
2210
|
+
children: /* @__PURE__ */ X(On, {
|
|
2111
2211
|
"aria-label": "Select all rows",
|
|
2112
|
-
checked:
|
|
2113
|
-
onCheckedChange:
|
|
2212
|
+
checked: j ? !0 : M ? "indeterminate" : !1,
|
|
2213
|
+
onCheckedChange: N
|
|
2114
2214
|
})
|
|
2115
2215
|
}),
|
|
2116
|
-
e.map((e) => /* @__PURE__ */ X(
|
|
2216
|
+
e.map((e) => /* @__PURE__ */ X(Pn, {
|
|
2117
2217
|
style: e.width ? { width: e.width } : void 0,
|
|
2118
|
-
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase",
|
|
2218
|
+
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase", B, e.align && Ln[e.align], e.className, e.headerClassName),
|
|
2119
2219
|
children: e.header
|
|
2120
2220
|
}, e.key)),
|
|
2121
|
-
|
|
2221
|
+
c && /* @__PURE__ */ X(Pn, { className: "w-12" })
|
|
2122
2222
|
]
|
|
2123
2223
|
})
|
|
2124
|
-
}), /* @__PURE__ */ X(
|
|
2224
|
+
}), /* @__PURE__ */ X(jn, { children: l ? /* @__PURE__ */ X(Nn, {
|
|
2125
2225
|
className: "hover:bg-transparent",
|
|
2126
|
-
children: /* @__PURE__ */ X(
|
|
2127
|
-
colSpan:
|
|
2226
|
+
children: /* @__PURE__ */ X(Fn, {
|
|
2227
|
+
colSpan: F,
|
|
2128
2228
|
className: "h-28 text-center",
|
|
2129
2229
|
children: /* @__PURE__ */ Z("span", {
|
|
2130
2230
|
className: "inline-flex items-center gap-2 text-muted-foreground",
|
|
2131
2231
|
children: [/* @__PURE__ */ X(Je, { className: "size-4" }), " Loading…"]
|
|
2132
2232
|
})
|
|
2133
2233
|
})
|
|
2134
|
-
}) : t.length === 0 ? /* @__PURE__ */ X(
|
|
2234
|
+
}) : t.length === 0 ? /* @__PURE__ */ X(Nn, {
|
|
2135
2235
|
className: "hover:bg-transparent",
|
|
2136
|
-
children: /* @__PURE__ */ X(
|
|
2137
|
-
colSpan:
|
|
2236
|
+
children: /* @__PURE__ */ X(Fn, {
|
|
2237
|
+
colSpan: F,
|
|
2138
2238
|
className: "h-28 text-center text-muted-foreground",
|
|
2139
|
-
children:
|
|
2239
|
+
children: u
|
|
2140
2240
|
})
|
|
2141
|
-
}) :
|
|
2142
|
-
let r =
|
|
2143
|
-
return /* @__PURE__ */ Z(
|
|
2144
|
-
"data-state":
|
|
2145
|
-
|
|
2146
|
-
|
|
2241
|
+
}) : z.map(({ row: t, index: n }) => {
|
|
2242
|
+
let r = b[n], i = k.includes(r), o = C[r];
|
|
2243
|
+
return /* @__PURE__ */ Z(Nn, {
|
|
2244
|
+
"data-state": i ? "selected" : void 0,
|
|
2245
|
+
"data-disabled": o ? "" : void 0,
|
|
2246
|
+
"aria-disabled": o || void 0,
|
|
2247
|
+
onClick: v && !o ? () => v(t) : void 0,
|
|
2248
|
+
className: Q(m && !i && "odd:bg-muted/40", i && "bg-primary/10 shadow-[inset_3px_0_0_0_var(--primary)] hover:bg-primary/15", v && !o && "cursor-pointer", o && "opacity-50 hover:bg-transparent"),
|
|
2147
2249
|
children: [
|
|
2148
|
-
|
|
2149
|
-
className: Q("w-10",
|
|
2250
|
+
a && /* @__PURE__ */ X(Fn, {
|
|
2251
|
+
className: Q("w-10", re),
|
|
2150
2252
|
onClick: (e) => e.stopPropagation(),
|
|
2151
|
-
children: /* @__PURE__ */ X(
|
|
2253
|
+
children: /* @__PURE__ */ X(On, {
|
|
2152
2254
|
"aria-label": "Select row",
|
|
2153
|
-
checked:
|
|
2154
|
-
|
|
2255
|
+
checked: i,
|
|
2256
|
+
disabled: o,
|
|
2257
|
+
onCheckedChange: () => P(r)
|
|
2155
2258
|
})
|
|
2156
2259
|
}),
|
|
2157
|
-
e.map((e) => /* @__PURE__ */ X(
|
|
2260
|
+
e.map((e) => /* @__PURE__ */ X(Fn, {
|
|
2158
2261
|
style: e.width ? { width: e.width } : void 0,
|
|
2159
|
-
className: Q(
|
|
2262
|
+
className: Q(re, e.align && Ln[e.align], e.className),
|
|
2160
2263
|
children: e.cell ? e.cell(t, n) : String(t[e.key] ?? "")
|
|
2161
2264
|
}, e.key)),
|
|
2162
|
-
|
|
2265
|
+
c && /* @__PURE__ */ X(Fn, {
|
|
2163
2266
|
className: "w-12 pr-3 text-right",
|
|
2164
2267
|
onClick: (e) => e.stopPropagation(),
|
|
2165
|
-
children: /* @__PURE__ */ X(pt, { items:
|
|
2268
|
+
children: /* @__PURE__ */ X(pt, { items: c(t) })
|
|
2166
2269
|
})
|
|
2167
2270
|
]
|
|
2168
2271
|
}, r);
|
|
2169
|
-
}) })] }),
|
|
2272
|
+
}) })] }), d && /* @__PURE__ */ Z("div", {
|
|
2170
2273
|
className: "flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 text-sm",
|
|
2171
2274
|
children: [/* @__PURE__ */ Z("p", {
|
|
2172
2275
|
className: "text-muted-foreground",
|
|
2173
2276
|
children: [
|
|
2174
2277
|
"Page ",
|
|
2175
|
-
t.length === 0 ? 0 :
|
|
2278
|
+
t.length === 0 ? 0 : R + 1,
|
|
2176
2279
|
" of ",
|
|
2177
|
-
|
|
2280
|
+
L,
|
|
2178
2281
|
" (",
|
|
2179
2282
|
t.length,
|
|
2180
2283
|
" total ",
|
|
@@ -2183,20 +2286,20 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2183
2286
|
]
|
|
2184
2287
|
}), /* @__PURE__ */ Z("div", {
|
|
2185
2288
|
className: "flex items-center gap-4",
|
|
2186
|
-
children: [
|
|
2289
|
+
children: [p && p.length > 0 && /* @__PURE__ */ Z("div", {
|
|
2187
2290
|
className: "flex items-center gap-2 text-muted-foreground",
|
|
2188
2291
|
children: [/* @__PURE__ */ X("span", {
|
|
2189
2292
|
className: "whitespace-nowrap",
|
|
2190
2293
|
children: "Rows per page"
|
|
2191
|
-
}), /* @__PURE__ */ X(
|
|
2294
|
+
}), /* @__PURE__ */ X(Dn, {
|
|
2192
2295
|
size: "sm",
|
|
2193
2296
|
className: "w-20",
|
|
2194
|
-
value: String(
|
|
2297
|
+
value: String(I),
|
|
2195
2298
|
onValueChange: (e) => {
|
|
2196
2299
|
let t = typeof e == "object" && e && "value" in e ? e.value : e;
|
|
2197
|
-
|
|
2300
|
+
ee(Number(t)), ne(0);
|
|
2198
2301
|
},
|
|
2199
|
-
options:
|
|
2302
|
+
options: p.map((e) => ({
|
|
2200
2303
|
value: String(e),
|
|
2201
2304
|
label: String(e)
|
|
2202
2305
|
}))
|
|
@@ -2208,32 +2311,32 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2208
2311
|
variant: "outline",
|
|
2209
2312
|
size: "icon-sm",
|
|
2210
2313
|
"aria-label": "First page",
|
|
2211
|
-
disabled:
|
|
2212
|
-
onClick: () =>
|
|
2314
|
+
disabled: R <= 0,
|
|
2315
|
+
onClick: () => ne(0),
|
|
2213
2316
|
children: /* @__PURE__ */ X(w, {})
|
|
2214
2317
|
}),
|
|
2215
2318
|
/* @__PURE__ */ X($, {
|
|
2216
2319
|
variant: "outline",
|
|
2217
2320
|
size: "icon-sm",
|
|
2218
2321
|
"aria-label": "Previous page",
|
|
2219
|
-
disabled:
|
|
2220
|
-
onClick: () =>
|
|
2322
|
+
disabled: R <= 0,
|
|
2323
|
+
onClick: () => ne(Math.max(0, R - 1)),
|
|
2221
2324
|
children: /* @__PURE__ */ X(x, {})
|
|
2222
2325
|
}),
|
|
2223
2326
|
/* @__PURE__ */ X($, {
|
|
2224
2327
|
variant: "outline",
|
|
2225
2328
|
size: "icon-sm",
|
|
2226
2329
|
"aria-label": "Next page",
|
|
2227
|
-
disabled:
|
|
2228
|
-
onClick: () =>
|
|
2330
|
+
disabled: R >= L - 1,
|
|
2331
|
+
onClick: () => ne(Math.min(L - 1, R + 1)),
|
|
2229
2332
|
children: /* @__PURE__ */ X(S, {})
|
|
2230
2333
|
}),
|
|
2231
2334
|
/* @__PURE__ */ X($, {
|
|
2232
2335
|
variant: "outline",
|
|
2233
2336
|
size: "icon-sm",
|
|
2234
2337
|
"aria-label": "Last page",
|
|
2235
|
-
disabled:
|
|
2236
|
-
onClick: () =>
|
|
2338
|
+
disabled: R >= L - 1,
|
|
2339
|
+
onClick: () => ne(L - 1),
|
|
2237
2340
|
children: /* @__PURE__ */ X(T, {})
|
|
2238
2341
|
})
|
|
2239
2342
|
]
|
|
@@ -2244,26 +2347,26 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2244
2347
|
}
|
|
2245
2348
|
//#endregion
|
|
2246
2349
|
//#region src/components/custom/form-dialog.tsx
|
|
2247
|
-
function
|
|
2248
|
-
return /* @__PURE__ */ X(
|
|
2350
|
+
function zn({ children: e, title: t, open: n, onClose: r, description: i, notDismissable: a, footer: o, className: s }) {
|
|
2351
|
+
return /* @__PURE__ */ X(kt, {
|
|
2249
2352
|
open: n,
|
|
2250
2353
|
onOpenChange: a ? void 0 : (e) => !e && r(),
|
|
2251
|
-
children: /* @__PURE__ */ X(
|
|
2354
|
+
children: /* @__PURE__ */ X(Pt, {
|
|
2252
2355
|
showCloseButton: !1,
|
|
2253
2356
|
className: Q("max-h-[75vh] gap-0 p-0 sm:max-w-2xl", s),
|
|
2254
2357
|
children: /* @__PURE__ */ Z("div", {
|
|
2255
2358
|
className: "flex max-h-[75vh] flex-col",
|
|
2256
2359
|
children: [
|
|
2257
|
-
t && /* @__PURE__ */ X(
|
|
2360
|
+
t && /* @__PURE__ */ X(Ft, {
|
|
2258
2361
|
className: "flex-shrink-0 border-b border-border p-6 pb-4",
|
|
2259
2362
|
children: /* @__PURE__ */ Z("div", {
|
|
2260
2363
|
className: "flex items-start justify-between gap-4",
|
|
2261
2364
|
children: [/* @__PURE__ */ Z("div", {
|
|
2262
2365
|
className: "flex flex-col gap-1",
|
|
2263
|
-
children: [/* @__PURE__ */ X(
|
|
2366
|
+
children: [/* @__PURE__ */ X(Lt, {
|
|
2264
2367
|
className: "text-left text-xl font-semibold",
|
|
2265
2368
|
children: t
|
|
2266
|
-
}), i && /* @__PURE__ */ X(
|
|
2369
|
+
}), i && /* @__PURE__ */ X(Rt, {
|
|
2267
2370
|
className: "text-left text-muted-foreground",
|
|
2268
2371
|
children: i
|
|
2269
2372
|
})]
|
|
@@ -2284,7 +2387,7 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2284
2387
|
className: "flex-1 overflow-y-auto p-6",
|
|
2285
2388
|
children: e
|
|
2286
2389
|
}),
|
|
2287
|
-
o && /* @__PURE__ */ X(
|
|
2390
|
+
o && /* @__PURE__ */ X(It, {
|
|
2288
2391
|
className: "m-0 flex-shrink-0 rounded-none border-t border-border bg-transparent p-6 pt-4",
|
|
2289
2392
|
children: o
|
|
2290
2393
|
})
|
|
@@ -2295,14 +2398,14 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2295
2398
|
}
|
|
2296
2399
|
//#endregion
|
|
2297
2400
|
//#region src/components/ui/radio-group.tsx
|
|
2298
|
-
function
|
|
2401
|
+
function Bn({ className: e, ...t }) {
|
|
2299
2402
|
return /* @__PURE__ */ X(Ee.Root, {
|
|
2300
2403
|
"data-slot": "radio-group",
|
|
2301
2404
|
className: Q("grid w-full gap-2", e),
|
|
2302
2405
|
...t
|
|
2303
2406
|
});
|
|
2304
2407
|
}
|
|
2305
|
-
function
|
|
2408
|
+
function Vn({ className: e, ...t }) {
|
|
2306
2409
|
return /* @__PURE__ */ X(Ee.Item, {
|
|
2307
2410
|
"data-slot": "radio-group-item",
|
|
2308
2411
|
className: Q("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
@@ -2316,9 +2419,9 @@ function zn({ className: e, ...t }) {
|
|
|
2316
2419
|
}
|
|
2317
2420
|
//#endregion
|
|
2318
2421
|
//#region src/components/custom/card-radio-group.tsx
|
|
2319
|
-
function
|
|
2422
|
+
function Hn({ items: e, indicatorPosition: t = "end", className: r, cardClassName: i, ...a }) {
|
|
2320
2423
|
let o = n.useId();
|
|
2321
|
-
return /* @__PURE__ */ X(
|
|
2424
|
+
return /* @__PURE__ */ X(Bn, {
|
|
2322
2425
|
className: Q("gap-2", r),
|
|
2323
2426
|
...a,
|
|
2324
2427
|
children: e.map((e, n) => {
|
|
@@ -2326,7 +2429,7 @@ function Bn({ items: e, indicatorPosition: t = "end", className: r, cardClassNam
|
|
|
2326
2429
|
return /* @__PURE__ */ Z("label", {
|
|
2327
2430
|
htmlFor: r,
|
|
2328
2431
|
className: Q("flex w-full items-start gap-3 rounded-md border border-input p-4 shadow-xs transition-colors", "has-data-[state=checked]:border-primary/50", e.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer", i),
|
|
2329
|
-
children: [/* @__PURE__ */ X(
|
|
2432
|
+
children: [/* @__PURE__ */ X(Vn, {
|
|
2330
2433
|
id: r,
|
|
2331
2434
|
value: e.value,
|
|
2332
2435
|
disabled: e.disabled,
|
|
@@ -2359,7 +2462,7 @@ function Bn({ items: e, indicatorPosition: t = "end", className: r, cardClassNam
|
|
|
2359
2462
|
}
|
|
2360
2463
|
//#endregion
|
|
2361
2464
|
//#region src/components/custom/color-picker.tsx
|
|
2362
|
-
var
|
|
2465
|
+
var Un = [
|
|
2363
2466
|
"var(--primary)",
|
|
2364
2467
|
"var(--red)",
|
|
2365
2468
|
"var(--orange)",
|
|
@@ -2373,7 +2476,7 @@ var Vn = [
|
|
|
2373
2476
|
"var(--gray)",
|
|
2374
2477
|
"var(--foreground)"
|
|
2375
2478
|
];
|
|
2376
|
-
function
|
|
2479
|
+
function Wn(e) {
|
|
2377
2480
|
if (typeof window > "u" || /^#[0-9a-fA-F]{6}$/.test(e)) return e;
|
|
2378
2481
|
let t = document.createElement("span");
|
|
2379
2482
|
t.style.color = e, document.body.appendChild(t);
|
|
@@ -2384,15 +2487,15 @@ function Hn(e) {
|
|
|
2384
2487
|
let i = (e) => e.toString(16).padStart(2, "0");
|
|
2385
2488
|
return `#${i(+r[0])}${i(+r[1])}${i(+r[2])}`;
|
|
2386
2489
|
}
|
|
2387
|
-
function
|
|
2490
|
+
function Gn({ value: e, onChange: t, swatches: r = Un, trigger: i = "swatch", placeholder: a = "Pick a color", disabled: o, className: s }) {
|
|
2388
2491
|
let [c, l] = n.useState(e), [u, d] = n.useState(e);
|
|
2389
2492
|
e !== u && (d(e), l(e));
|
|
2390
2493
|
let f = (e) => {
|
|
2391
|
-
t(
|
|
2494
|
+
t(Wn(e));
|
|
2392
2495
|
}, p = (e) => {
|
|
2393
2496
|
l(e), /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e) && t(e);
|
|
2394
2497
|
};
|
|
2395
|
-
return /* @__PURE__ */ Z(
|
|
2498
|
+
return /* @__PURE__ */ Z(an, { children: [/* @__PURE__ */ X(on, {
|
|
2396
2499
|
asChild: !0,
|
|
2397
2500
|
children: i === "input" ? /* @__PURE__ */ Z("button", {
|
|
2398
2501
|
type: "button",
|
|
@@ -2413,13 +2516,13 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2413
2516
|
style: { background: e || "transparent" },
|
|
2414
2517
|
children: !e && /* @__PURE__ */ X(ce, { className: "size-4 text-muted-foreground" })
|
|
2415
2518
|
})
|
|
2416
|
-
}), /* @__PURE__ */ Z(
|
|
2519
|
+
}), /* @__PURE__ */ Z(sn, {
|
|
2417
2520
|
className: "w-64",
|
|
2418
2521
|
align: "start",
|
|
2419
2522
|
children: [/* @__PURE__ */ X("div", {
|
|
2420
2523
|
className: "grid grid-cols-6 gap-2",
|
|
2421
2524
|
children: r.map((t) => {
|
|
2422
|
-
let n =
|
|
2525
|
+
let n = Wn(t).toLowerCase() === e.toLowerCase();
|
|
2423
2526
|
return /* @__PURE__ */ X("button", {
|
|
2424
2527
|
type: "button",
|
|
2425
2528
|
"aria-label": t,
|
|
@@ -2440,7 +2543,7 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2440
2543
|
onChange: (e) => t(e.target.value),
|
|
2441
2544
|
className: "absolute inset-0 size-full cursor-pointer opacity-0"
|
|
2442
2545
|
})
|
|
2443
|
-
}), /* @__PURE__ */ X(
|
|
2546
|
+
}), /* @__PURE__ */ X(zt, {
|
|
2444
2547
|
value: c,
|
|
2445
2548
|
onChange: (e) => p(e.target.value),
|
|
2446
2549
|
placeholder: "#000000",
|
|
@@ -2451,75 +2554,75 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2451
2554
|
}
|
|
2452
2555
|
//#endregion
|
|
2453
2556
|
//#region src/components/ui/alert-dialog.tsx
|
|
2454
|
-
function
|
|
2557
|
+
function Kn({ ...e }) {
|
|
2455
2558
|
return /* @__PURE__ */ X(G.Root, {
|
|
2456
2559
|
"data-slot": "alert-dialog",
|
|
2457
2560
|
...e
|
|
2458
2561
|
});
|
|
2459
2562
|
}
|
|
2460
|
-
function
|
|
2563
|
+
function qn({ ...e }) {
|
|
2461
2564
|
return /* @__PURE__ */ X(G.Trigger, {
|
|
2462
2565
|
"data-slot": "alert-dialog-trigger",
|
|
2463
2566
|
...e
|
|
2464
2567
|
});
|
|
2465
2568
|
}
|
|
2466
|
-
function
|
|
2569
|
+
function Jn({ ...e }) {
|
|
2467
2570
|
return /* @__PURE__ */ X(G.Portal, {
|
|
2468
2571
|
"data-slot": "alert-dialog-portal",
|
|
2469
2572
|
...e
|
|
2470
2573
|
});
|
|
2471
2574
|
}
|
|
2472
|
-
function
|
|
2575
|
+
function Yn({ className: e, ...t }) {
|
|
2473
2576
|
return /* @__PURE__ */ X(G.Overlay, {
|
|
2474
2577
|
"data-slot": "alert-dialog-overlay",
|
|
2475
2578
|
className: Q("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
2476
2579
|
...t
|
|
2477
2580
|
});
|
|
2478
2581
|
}
|
|
2479
|
-
function
|
|
2480
|
-
return /* @__PURE__ */ Z(
|
|
2582
|
+
function Xn({ className: e, size: t = "default", ...n }) {
|
|
2583
|
+
return /* @__PURE__ */ Z(Jn, { children: [/* @__PURE__ */ X(Yn, {}), /* @__PURE__ */ X(G.Content, {
|
|
2481
2584
|
"data-slot": "alert-dialog-content",
|
|
2482
2585
|
"data-size": t,
|
|
2483
2586
|
className: Q("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
2484
2587
|
...n
|
|
2485
2588
|
})] });
|
|
2486
2589
|
}
|
|
2487
|
-
function
|
|
2590
|
+
function Zn({ className: e, ...t }) {
|
|
2488
2591
|
return /* @__PURE__ */ X("div", {
|
|
2489
2592
|
"data-slot": "alert-dialog-header",
|
|
2490
2593
|
className: Q("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
2491
2594
|
...t
|
|
2492
2595
|
});
|
|
2493
2596
|
}
|
|
2494
|
-
function
|
|
2597
|
+
function Qn({ className: e, ...t }) {
|
|
2495
2598
|
return /* @__PURE__ */ X("div", {
|
|
2496
2599
|
"data-slot": "alert-dialog-footer",
|
|
2497
2600
|
className: Q("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
2498
2601
|
...t
|
|
2499
2602
|
});
|
|
2500
2603
|
}
|
|
2501
|
-
function
|
|
2604
|
+
function $n({ className: e, ...t }) {
|
|
2502
2605
|
return /* @__PURE__ */ X("div", {
|
|
2503
2606
|
"data-slot": "alert-dialog-media",
|
|
2504
2607
|
className: Q("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", e),
|
|
2505
2608
|
...t
|
|
2506
2609
|
});
|
|
2507
2610
|
}
|
|
2508
|
-
function
|
|
2611
|
+
function er({ className: e, ...t }) {
|
|
2509
2612
|
return /* @__PURE__ */ X(G.Title, {
|
|
2510
2613
|
"data-slot": "alert-dialog-title",
|
|
2511
2614
|
className: Q("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
2512
2615
|
...t
|
|
2513
2616
|
});
|
|
2514
2617
|
}
|
|
2515
|
-
function
|
|
2618
|
+
function tr({ className: e, ...t }) {
|
|
2516
2619
|
return /* @__PURE__ */ X(G.Description, {
|
|
2517
2620
|
"data-slot": "alert-dialog-description",
|
|
2518
2621
|
className: Q("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
2519
2622
|
...t
|
|
2520
2623
|
});
|
|
2521
2624
|
}
|
|
2522
|
-
function
|
|
2625
|
+
function nr({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
2523
2626
|
return /* @__PURE__ */ X($, {
|
|
2524
2627
|
variant: t,
|
|
2525
2628
|
size: n,
|
|
@@ -2531,7 +2634,7 @@ function er({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
2531
2634
|
})
|
|
2532
2635
|
});
|
|
2533
2636
|
}
|
|
2534
|
-
function
|
|
2637
|
+
function rr({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
2535
2638
|
return /* @__PURE__ */ X($, {
|
|
2536
2639
|
variant: t,
|
|
2537
2640
|
size: n,
|
|
@@ -2545,7 +2648,7 @@ function tr({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
2545
2648
|
}
|
|
2546
2649
|
//#endregion
|
|
2547
2650
|
//#region src/components/custom/confirm-prompt.tsx
|
|
2548
|
-
function
|
|
2651
|
+
function ir({ show: e, title: t = "Are you absolutely sure?", message: r = "This action cannot be undone. This will permanently delete and remove your data from our servers.", onConfirm: i, onCancel: a, loading: o, disabled: s, validate: c, item: l = "CONFIRM", confirmLabel: u = "Confirm", cancelLabel: d = "Cancel" }) {
|
|
2549
2652
|
let [f, p] = n.useState(""), [h, g] = n.useState(!1), _ = o ?? h, v = s || _ || !(!c || f === l), y = () => {
|
|
2550
2653
|
_ || (p(""), a());
|
|
2551
2654
|
}, b = async () => {
|
|
@@ -2555,24 +2658,24 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2555
2658
|
g(!1);
|
|
2556
2659
|
}
|
|
2557
2660
|
};
|
|
2558
|
-
return /* @__PURE__ */ X(
|
|
2661
|
+
return /* @__PURE__ */ X(Kn, {
|
|
2559
2662
|
open: !!e,
|
|
2560
2663
|
onOpenChange: (e) => {
|
|
2561
2664
|
e || y();
|
|
2562
2665
|
},
|
|
2563
|
-
children: /* @__PURE__ */ Z(
|
|
2666
|
+
children: /* @__PURE__ */ Z(Xn, {
|
|
2564
2667
|
className: "sm:max-w-lg!",
|
|
2565
2668
|
children: [
|
|
2566
|
-
/* @__PURE__ */ Z(
|
|
2669
|
+
/* @__PURE__ */ Z(Zn, { children: [/* @__PURE__ */ Z(er, {
|
|
2567
2670
|
className: "flex items-center gap-2",
|
|
2568
2671
|
children: [/* @__PURE__ */ X("div", {
|
|
2569
2672
|
className: "flex size-8 shrink-0 items-center justify-center rounded-full bg-amber-100 dark:bg-amber-900/30",
|
|
2570
2673
|
children: /* @__PURE__ */ X(m, { className: "size-5 text-amber-600 dark:text-amber-500" })
|
|
2571
2674
|
}), t]
|
|
2572
|
-
}), r != null && /* @__PURE__ */ X(
|
|
2675
|
+
}), r != null && /* @__PURE__ */ X(tr, { children: r })] }),
|
|
2573
2676
|
c && /* @__PURE__ */ Z("div", {
|
|
2574
2677
|
className: "space-y-1",
|
|
2575
|
-
children: [/* @__PURE__ */ Z(
|
|
2678
|
+
children: [/* @__PURE__ */ Z(tr, { children: [
|
|
2576
2679
|
"To confirm, type",
|
|
2577
2680
|
" ",
|
|
2578
2681
|
/* @__PURE__ */ Z("span", {
|
|
@@ -2585,7 +2688,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2585
2688
|
}),
|
|
2586
2689
|
" ",
|
|
2587
2690
|
"in the box below"
|
|
2588
|
-
] }), /* @__PURE__ */ X(
|
|
2691
|
+
] }), /* @__PURE__ */ X(mn, {
|
|
2589
2692
|
value: f,
|
|
2590
2693
|
onChange: (e) => p(e.target.value),
|
|
2591
2694
|
size: "sm",
|
|
@@ -2598,7 +2701,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2598
2701
|
}
|
|
2599
2702
|
})]
|
|
2600
2703
|
}),
|
|
2601
|
-
/* @__PURE__ */ Z(
|
|
2704
|
+
/* @__PURE__ */ Z(Qn, {
|
|
2602
2705
|
className: "gap-2 space-x-0!",
|
|
2603
2706
|
children: [/* @__PURE__ */ X($, {
|
|
2604
2707
|
variant: "outline",
|
|
@@ -2618,7 +2721,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2618
2721
|
}
|
|
2619
2722
|
//#endregion
|
|
2620
2723
|
//#region src/components/custom/custom-tabs.tsx
|
|
2621
|
-
function
|
|
2724
|
+
function ar({ type: e = "underline", items: t, className: n, listClassName: r, ...i }) {
|
|
2622
2725
|
return /* @__PURE__ */ X(je.Root, {
|
|
2623
2726
|
"data-slot": "custom-tabs",
|
|
2624
2727
|
"data-type": e,
|
|
@@ -2627,14 +2730,14 @@ function rr({ type: e = "underline", items: t, className: n, listClassName: r, .
|
|
|
2627
2730
|
children: /* @__PURE__ */ X(je.List, {
|
|
2628
2731
|
"data-slot": "custom-tabs-list",
|
|
2629
2732
|
className: Q("inline-flex items-center text-muted-foreground", e === "underline" && "w-full gap-6 border-b border-border", e === "pill" && "w-fit gap-1 rounded-lg bg-muted p-1", r),
|
|
2630
|
-
children: t.map((t) => /* @__PURE__ */ X(
|
|
2733
|
+
children: t.map((t) => /* @__PURE__ */ X(or, {
|
|
2631
2734
|
type: e,
|
|
2632
2735
|
item: t
|
|
2633
2736
|
}, t.value))
|
|
2634
2737
|
})
|
|
2635
2738
|
});
|
|
2636
2739
|
}
|
|
2637
|
-
function
|
|
2740
|
+
function or({ type: e, item: t }) {
|
|
2638
2741
|
return /* @__PURE__ */ Z(je.Trigger, {
|
|
2639
2742
|
"data-slot": "custom-tabs-trigger",
|
|
2640
2743
|
value: t.value,
|
|
@@ -2647,7 +2750,7 @@ function ir({ type: e, item: t }) {
|
|
|
2647
2750
|
className: Q("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-medium tabular-nums", "bg-muted text-muted-foreground", e === "underline" && "group-data-[state=active]/trigger:bg-primary/10 group-data-[state=active]/trigger:text-primary", e === "pill" && "group-data-[state=active]/trigger:bg-primary-foreground/20 group-data-[state=active]/trigger:text-primary-foreground"),
|
|
2648
2751
|
children: t.count
|
|
2649
2752
|
}),
|
|
2650
|
-
t.badge != null && /* @__PURE__ */ X(
|
|
2753
|
+
t.badge != null && /* @__PURE__ */ X(ht, {
|
|
2651
2754
|
className: "px-2 text-[10px]",
|
|
2652
2755
|
children: t.badge
|
|
2653
2756
|
})
|
|
@@ -2656,7 +2759,7 @@ function ir({ type: e, item: t }) {
|
|
|
2656
2759
|
}
|
|
2657
2760
|
//#endregion
|
|
2658
2761
|
//#region src/components/custom/data-cell.tsx
|
|
2659
|
-
function
|
|
2762
|
+
function sr({ label: e, value: t, icon: n, layout: r = "stacked", className: i, ...a }) {
|
|
2660
2763
|
let o = n && /* @__PURE__ */ X("span", {
|
|
2661
2764
|
className: "shrink-0 text-muted-foreground [&_svg]:size-4",
|
|
2662
2765
|
children: n
|
|
@@ -2689,7 +2792,7 @@ function ar({ label: e, value: t, icon: n, layout: r = "stacked", className: i,
|
|
|
2689
2792
|
}
|
|
2690
2793
|
//#endregion
|
|
2691
2794
|
//#region src/components/custom/def-row.tsx
|
|
2692
|
-
function
|
|
2795
|
+
function cr({ label: e, value: t, className: n, ...r }) {
|
|
2693
2796
|
return /* @__PURE__ */ Z("div", {
|
|
2694
2797
|
"data-slot": "def-row",
|
|
2695
2798
|
className: Q("flex items-center justify-between gap-4 py-2", n),
|
|
@@ -2705,13 +2808,13 @@ function or({ label: e, value: t, className: n, ...r }) {
|
|
|
2705
2808
|
}
|
|
2706
2809
|
//#endregion
|
|
2707
2810
|
//#region src/components/custom/divider.tsx
|
|
2708
|
-
var
|
|
2811
|
+
var lr = W("flex items-center", {
|
|
2709
2812
|
variants: { orientation: {
|
|
2710
2813
|
horizontal: "w-full",
|
|
2711
2814
|
vertical: "h-full flex-col"
|
|
2712
2815
|
} },
|
|
2713
2816
|
defaultVariants: { orientation: "horizontal" }
|
|
2714
|
-
}),
|
|
2817
|
+
}), ur = W("", {
|
|
2715
2818
|
variants: {
|
|
2716
2819
|
color: {
|
|
2717
2820
|
default: "bg-border",
|
|
@@ -2765,7 +2868,7 @@ var sr = W("flex items-center", {
|
|
|
2765
2868
|
thickness: "thin",
|
|
2766
2869
|
orientation: "horizontal"
|
|
2767
2870
|
}
|
|
2768
|
-
}),
|
|
2871
|
+
}), dr = W("font-medium whitespace-nowrap", {
|
|
2769
2872
|
variants: {
|
|
2770
2873
|
color: {
|
|
2771
2874
|
default: "text-foreground",
|
|
@@ -2782,7 +2885,7 @@ var sr = W("flex items-center", {
|
|
|
2782
2885
|
color: "default",
|
|
2783
2886
|
size: "sm"
|
|
2784
2887
|
}
|
|
2785
|
-
}),
|
|
2888
|
+
}), fr = W("flex items-center justify-center rounded-full text-xs font-medium", {
|
|
2786
2889
|
variants: {
|
|
2787
2890
|
color: {
|
|
2788
2891
|
default: "border border-border bg-background text-foreground",
|
|
@@ -2800,8 +2903,8 @@ var sr = W("flex items-center", {
|
|
|
2800
2903
|
size: "md"
|
|
2801
2904
|
}
|
|
2802
2905
|
});
|
|
2803
|
-
function
|
|
2804
|
-
let d = Q(
|
|
2906
|
+
function pr({ className: e, label: t, count: n, color: r = "default", thickness: i = "thin", labelSize: a = "sm", labelPosition: o = "start", orientation: s = "horizontal", height: c = "h-full", icon: l, ...u }) {
|
|
2907
|
+
let d = Q(ur({
|
|
2805
2908
|
color: r,
|
|
2806
2909
|
thickness: i,
|
|
2807
2910
|
orientation: s
|
|
@@ -2816,11 +2919,11 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2816
2919
|
if (t == null && n === void 0) return /* @__PURE__ */ X("div", {
|
|
2817
2920
|
"data-slot": "divider",
|
|
2818
2921
|
role: "separator",
|
|
2819
|
-
className: Q(
|
|
2922
|
+
className: Q(lr({ orientation: s }), d, e),
|
|
2820
2923
|
...u
|
|
2821
2924
|
});
|
|
2822
2925
|
let f = n === void 0 ? null : /* @__PURE__ */ X("span", {
|
|
2823
|
-
className: Q(
|
|
2926
|
+
className: Q(fr({
|
|
2824
2927
|
color: r,
|
|
2825
2928
|
size: a
|
|
2826
2929
|
})),
|
|
@@ -2829,7 +2932,7 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2829
2932
|
return o === "start" ? /* @__PURE__ */ Z("div", {
|
|
2830
2933
|
"data-slot": "divider",
|
|
2831
2934
|
role: "separator",
|
|
2832
|
-
className: Q(
|
|
2935
|
+
className: Q(lr(), "gap-2", e),
|
|
2833
2936
|
...u,
|
|
2834
2937
|
children: [
|
|
2835
2938
|
l ? /* @__PURE__ */ X("span", {
|
|
@@ -2837,7 +2940,7 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2837
2940
|
children: l
|
|
2838
2941
|
}) : /* @__PURE__ */ X("div", { className: Q("w-3 shrink-0", d) }),
|
|
2839
2942
|
/* @__PURE__ */ X("span", {
|
|
2840
|
-
className: Q(
|
|
2943
|
+
className: Q(dr({
|
|
2841
2944
|
color: r,
|
|
2842
2945
|
size: a
|
|
2843
2946
|
}), !l && "px-2"),
|
|
@@ -2849,12 +2952,12 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2849
2952
|
}) : o === "center" ? /* @__PURE__ */ Z("div", {
|
|
2850
2953
|
"data-slot": "divider",
|
|
2851
2954
|
role: "separator",
|
|
2852
|
-
className: Q(
|
|
2955
|
+
className: Q(lr(), e),
|
|
2853
2956
|
...u,
|
|
2854
2957
|
children: [
|
|
2855
2958
|
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2856
2959
|
/* @__PURE__ */ X("span", {
|
|
2857
|
-
className: Q(
|
|
2960
|
+
className: Q(dr({
|
|
2858
2961
|
color: r,
|
|
2859
2962
|
size: a
|
|
2860
2963
|
}), "px-3"),
|
|
@@ -2866,19 +2969,19 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2866
2969
|
}) : /* @__PURE__ */ Z("div", {
|
|
2867
2970
|
"data-slot": "divider",
|
|
2868
2971
|
role: "separator",
|
|
2869
|
-
className: Q(
|
|
2972
|
+
className: Q(lr(), e),
|
|
2870
2973
|
...u,
|
|
2871
2974
|
children: [
|
|
2872
2975
|
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2873
2976
|
n !== void 0 && /* @__PURE__ */ X("span", {
|
|
2874
|
-
className: Q(
|
|
2977
|
+
className: Q(fr({
|
|
2875
2978
|
color: r,
|
|
2876
2979
|
size: a
|
|
2877
2980
|
}), "mr-2"),
|
|
2878
2981
|
children: n
|
|
2879
2982
|
}),
|
|
2880
2983
|
/* @__PURE__ */ X("span", {
|
|
2881
|
-
className: Q(
|
|
2984
|
+
className: Q(dr({
|
|
2882
2985
|
color: r,
|
|
2883
2986
|
size: a
|
|
2884
2987
|
}), "pl-3"),
|
|
@@ -2889,53 +2992,53 @@ function dr({ className: e, label: t, count: n, color: r = "default", thickness:
|
|
|
2889
2992
|
}
|
|
2890
2993
|
//#endregion
|
|
2891
2994
|
//#region src/components/ui/empty.tsx
|
|
2892
|
-
function
|
|
2995
|
+
function mr({ className: e, ...t }) {
|
|
2893
2996
|
return /* @__PURE__ */ X("div", {
|
|
2894
2997
|
"data-slot": "empty",
|
|
2895
2998
|
className: Q("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", e),
|
|
2896
2999
|
...t
|
|
2897
3000
|
});
|
|
2898
3001
|
}
|
|
2899
|
-
function
|
|
3002
|
+
function hr({ className: e, ...t }) {
|
|
2900
3003
|
return /* @__PURE__ */ X("div", {
|
|
2901
3004
|
"data-slot": "empty-header",
|
|
2902
3005
|
className: Q("flex max-w-sm flex-col items-center gap-2 text-center", e),
|
|
2903
3006
|
...t
|
|
2904
3007
|
});
|
|
2905
3008
|
}
|
|
2906
|
-
var
|
|
3009
|
+
var gr = W("flex shrink-0 items-center justify-center mb-2 [&_svg:not([class*='size-'])]:size-6", {
|
|
2907
3010
|
variants: { variant: {
|
|
2908
3011
|
default: "bg-transparent",
|
|
2909
3012
|
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
2910
3013
|
} },
|
|
2911
3014
|
defaultVariants: { variant: "default" }
|
|
2912
3015
|
});
|
|
2913
|
-
function
|
|
3016
|
+
function _r({ className: e, variant: t = "default", ...n }) {
|
|
2914
3017
|
return /* @__PURE__ */ X("div", {
|
|
2915
3018
|
"data-slot": "empty-icon",
|
|
2916
3019
|
"data-variant": t,
|
|
2917
|
-
className: Q(
|
|
3020
|
+
className: Q(gr({
|
|
2918
3021
|
variant: t,
|
|
2919
3022
|
className: e
|
|
2920
3023
|
})),
|
|
2921
3024
|
...n
|
|
2922
3025
|
});
|
|
2923
3026
|
}
|
|
2924
|
-
function
|
|
3027
|
+
function vr({ className: e, ...t }) {
|
|
2925
3028
|
return /* @__PURE__ */ X("div", {
|
|
2926
3029
|
"data-slot": "empty-title",
|
|
2927
3030
|
className: Q("text-lg font-medium tracking-tight", e),
|
|
2928
3031
|
...t
|
|
2929
3032
|
});
|
|
2930
3033
|
}
|
|
2931
|
-
function
|
|
3034
|
+
function yr({ className: e, ...t }) {
|
|
2932
3035
|
return /* @__PURE__ */ X("p", {
|
|
2933
3036
|
"data-slot": "empty-description",
|
|
2934
3037
|
className: Q("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-foreground", e),
|
|
2935
3038
|
...t
|
|
2936
3039
|
});
|
|
2937
3040
|
}
|
|
2938
|
-
function
|
|
3041
|
+
function br({ className: e, ...t }) {
|
|
2939
3042
|
return /* @__PURE__ */ X("div", {
|
|
2940
3043
|
"data-slot": "empty-content",
|
|
2941
3044
|
className: Q("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
|
|
@@ -2944,22 +3047,22 @@ function vr({ className: e, ...t }) {
|
|
|
2944
3047
|
}
|
|
2945
3048
|
//#endregion
|
|
2946
3049
|
//#region src/components/custom/empty-state.tsx
|
|
2947
|
-
function
|
|
2948
|
-
return /* @__PURE__ */ Z(
|
|
3050
|
+
function xr({ icon: e = /* @__PURE__ */ X(L, {}), mediaVariant: t = "icon", title: n = "No data", description: r, actions: i, ...a }) {
|
|
3051
|
+
return /* @__PURE__ */ Z(mr, {
|
|
2949
3052
|
...a,
|
|
2950
|
-
children: [/* @__PURE__ */ Z(
|
|
2951
|
-
e != null && /* @__PURE__ */ X(
|
|
3053
|
+
children: [/* @__PURE__ */ Z(hr, { children: [
|
|
3054
|
+
e != null && /* @__PURE__ */ X(_r, {
|
|
2952
3055
|
variant: t,
|
|
2953
3056
|
children: e
|
|
2954
3057
|
}),
|
|
2955
|
-
n != null && /* @__PURE__ */ X(
|
|
2956
|
-
r != null && /* @__PURE__ */ X(
|
|
2957
|
-
] }), i != null && /* @__PURE__ */ X(
|
|
3058
|
+
n != null && /* @__PURE__ */ X(vr, { children: n }),
|
|
3059
|
+
r != null && /* @__PURE__ */ X(yr, { children: r })
|
|
3060
|
+
] }), i != null && /* @__PURE__ */ X(br, { children: i })]
|
|
2958
3061
|
});
|
|
2959
3062
|
}
|
|
2960
3063
|
//#endregion
|
|
2961
3064
|
//#region src/components/custom/faceted-filter.tsx
|
|
2962
|
-
function
|
|
3065
|
+
function Sr(e) {
|
|
2963
3066
|
let { title: t, options: r, searchPlaceholder: i, searchable: a = !0, className: o } = e, s = e.mode !== "single", c = n.useMemo(() => new Set(s ? e.value : e.value ? [e.value] : []), [s, e.value]), l = (t) => {
|
|
2964
3067
|
if (s) {
|
|
2965
3068
|
let n = new Set(c);
|
|
@@ -2969,7 +3072,7 @@ function br(e) {
|
|
|
2969
3072
|
n(c.has(t) ? null : t);
|
|
2970
3073
|
}
|
|
2971
3074
|
};
|
|
2972
|
-
return /* @__PURE__ */ Z(
|
|
3075
|
+
return /* @__PURE__ */ Z(an, { children: [/* @__PURE__ */ X(on, {
|
|
2973
3076
|
asChild: !0,
|
|
2974
3077
|
children: /* @__PURE__ */ Z($, {
|
|
2975
3078
|
variant: "outline",
|
|
@@ -2977,24 +3080,24 @@ function br(e) {
|
|
|
2977
3080
|
children: [
|
|
2978
3081
|
/* @__PURE__ */ X(ue, {}),
|
|
2979
3082
|
t,
|
|
2980
|
-
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
3083
|
+
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(_t, {
|
|
2981
3084
|
orientation: "vertical",
|
|
2982
3085
|
className: "mx-0.5 h-4"
|
|
2983
|
-
}), /* @__PURE__ */ X(
|
|
3086
|
+
}), /* @__PURE__ */ X(ht, {
|
|
2984
3087
|
variant: "secondary",
|
|
2985
3088
|
className: "rounded-sm px-1 font-normal",
|
|
2986
3089
|
children: c.size
|
|
2987
3090
|
})] })
|
|
2988
3091
|
]
|
|
2989
3092
|
})
|
|
2990
|
-
}), /* @__PURE__ */ X(
|
|
3093
|
+
}), /* @__PURE__ */ X(sn, {
|
|
2991
3094
|
className: "w-56 p-0",
|
|
2992
3095
|
align: "start",
|
|
2993
|
-
children: /* @__PURE__ */ Z(
|
|
2994
|
-
/* @__PURE__ */ X(
|
|
2995
|
-
/* @__PURE__ */ X(
|
|
3096
|
+
children: /* @__PURE__ */ Z(Yt, { children: [a && /* @__PURE__ */ X(Zt, { placeholder: i ?? t }), /* @__PURE__ */ Z(Qt, { children: [
|
|
3097
|
+
/* @__PURE__ */ X($t, { children: "No results found." }),
|
|
3098
|
+
/* @__PURE__ */ X(en, { children: r.map((e) => {
|
|
2996
3099
|
let t = c.has(e.value);
|
|
2997
|
-
return /* @__PURE__ */ Z(
|
|
3100
|
+
return /* @__PURE__ */ Z(nn, {
|
|
2998
3101
|
onSelect: () => l(e.value),
|
|
2999
3102
|
children: [
|
|
3000
3103
|
/* @__PURE__ */ X("div", {
|
|
@@ -3013,7 +3116,7 @@ function br(e) {
|
|
|
3013
3116
|
]
|
|
3014
3117
|
}, e.value);
|
|
3015
3118
|
}) }),
|
|
3016
|
-
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
3119
|
+
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, { children: /* @__PURE__ */ X(nn, {
|
|
3017
3120
|
onSelect: () => {
|
|
3018
3121
|
s ? e.onChange([]) : e.onChange(null);
|
|
3019
3122
|
},
|
|
@@ -3025,7 +3128,7 @@ function br(e) {
|
|
|
3025
3128
|
}
|
|
3026
3129
|
//#endregion
|
|
3027
3130
|
//#region src/components/custom/list-card.tsx
|
|
3028
|
-
function
|
|
3131
|
+
function Cr({ name: e, src: t, className: n }) {
|
|
3029
3132
|
let r = e.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
3030
3133
|
return /* @__PURE__ */ Z("span", {
|
|
3031
3134
|
className: Q("flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground", n),
|
|
@@ -3042,7 +3145,7 @@ function xr({ name: e, src: t, className: n }) {
|
|
|
3042
3145
|
})]
|
|
3043
3146
|
});
|
|
3044
3147
|
}
|
|
3045
|
-
function
|
|
3148
|
+
function wr({ icon: e, children: t, className: n }) {
|
|
3046
3149
|
return /* @__PURE__ */ Z("span", {
|
|
3047
3150
|
className: Q("inline-flex min-w-0 items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs text-muted-foreground [&_svg]:size-3.5 [&_svg]:shrink-0 [&_svg]:opacity-70", n),
|
|
3048
3151
|
children: [e, /* @__PURE__ */ X("span", {
|
|
@@ -3051,8 +3154,8 @@ function Sr({ icon: e, children: t, className: n }) {
|
|
|
3051
3154
|
})]
|
|
3052
3155
|
});
|
|
3053
3156
|
}
|
|
3054
|
-
function
|
|
3055
|
-
let g = p != null, _ = s === "row", v = l ? /* @__PURE__ */ X(
|
|
3157
|
+
function Tr({ title: e, description: t, media: n, badge: r, meta: i, footer: a, actions: o, layout: s = "stacked", variant: c = "default", selectable: l = !1, selected: u, onSelectedChange: d, active: f = !1, onClick: p, className: m, ...h }) {
|
|
3158
|
+
let g = p != null, _ = s === "row", v = l ? /* @__PURE__ */ X(On, {
|
|
3056
3159
|
checked: u,
|
|
3057
3160
|
onCheckedChange: (e) => d?.(e === !0),
|
|
3058
3161
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -3062,7 +3165,7 @@ function Cr({ title: e, description: t, media: n, badge: r, meta: i, footer: a,
|
|
|
3062
3165
|
src: n,
|
|
3063
3166
|
alt: "",
|
|
3064
3167
|
className: "size-12 shrink-0 rounded-md object-cover"
|
|
3065
|
-
}) : n, b = r == null ? null : typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ X(
|
|
3168
|
+
}) : n, b = r == null ? null : typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ X(ht, {
|
|
3066
3169
|
variant: "secondary",
|
|
3067
3170
|
className: "font-medium",
|
|
3068
3171
|
children: r
|
|
@@ -3150,22 +3253,22 @@ function Cr({ title: e, description: t, media: n, badge: r, meta: i, footer: a,
|
|
|
3150
3253
|
]
|
|
3151
3254
|
});
|
|
3152
3255
|
}
|
|
3153
|
-
var
|
|
3256
|
+
var Er = {
|
|
3154
3257
|
1: "grid-cols-1",
|
|
3155
3258
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
3156
3259
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
3157
3260
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
3158
3261
|
};
|
|
3159
|
-
function
|
|
3262
|
+
function Dr({ columns: e = 3, className: t, ...n }) {
|
|
3160
3263
|
return /* @__PURE__ */ X("div", {
|
|
3161
3264
|
"data-slot": "list-card-grid",
|
|
3162
|
-
className: Q("grid w-full gap-4",
|
|
3265
|
+
className: Q("grid w-full gap-4", Er[e], t),
|
|
3163
3266
|
...n
|
|
3164
3267
|
});
|
|
3165
3268
|
}
|
|
3166
3269
|
//#endregion
|
|
3167
3270
|
//#region src/components/custom/map-marker-pin.tsx
|
|
3168
|
-
function
|
|
3271
|
+
function Or({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active: i = !1, label: a, labelOnActive: o = !0, className: s, ...c }) {
|
|
3169
3272
|
let l = a != null && (!o || i);
|
|
3170
3273
|
return /* @__PURE__ */ Z("span", {
|
|
3171
3274
|
"data-slot": "map-marker-pin",
|
|
@@ -3206,7 +3309,7 @@ function Er({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active:
|
|
|
3206
3309
|
}
|
|
3207
3310
|
//#endregion
|
|
3208
3311
|
//#region src/components/custom/not-found.tsx
|
|
3209
|
-
function
|
|
3312
|
+
function kr({ code: e = "404", title: t = "Page Not Found", description: n = "Sorry, we couldn't find the page you're looking for. The page might have been moved, deleted, or never existed.", showBack: r = !0, onGoBack: i, homeHref: a = "/", homeLabel: o = "Go to Home", actions: s, className: c, ...l }) {
|
|
3210
3313
|
let u = () => {
|
|
3211
3314
|
i ? i() : typeof window < "u" && window.history.back();
|
|
3212
3315
|
};
|
|
@@ -3240,7 +3343,7 @@ function Dr({ code: e = "404", title: t = "Page Not Found", description: n = "So
|
|
|
3240
3343
|
asChild: !0,
|
|
3241
3344
|
children: /* @__PURE__ */ Z("a", {
|
|
3242
3345
|
href: a,
|
|
3243
|
-
children: [/* @__PURE__ */ X(
|
|
3346
|
+
children: [/* @__PURE__ */ X(ee, {}), o]
|
|
3244
3347
|
})
|
|
3245
3348
|
}),
|
|
3246
3349
|
s
|
|
@@ -3251,7 +3354,7 @@ function Dr({ code: e = "404", title: t = "Page Not Found", description: n = "So
|
|
|
3251
3354
|
}
|
|
3252
3355
|
//#endregion
|
|
3253
3356
|
//#region src/components/custom/quick-stat.tsx
|
|
3254
|
-
function
|
|
3357
|
+
function Ar({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
3255
3358
|
return /* @__PURE__ */ Z("div", {
|
|
3256
3359
|
"data-slot": "quick-stat",
|
|
3257
3360
|
className: Q("flex items-center gap-1.5 text-sm", r),
|
|
@@ -3274,7 +3377,7 @@ function Or({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
|
3274
3377
|
}
|
|
3275
3378
|
//#endregion
|
|
3276
3379
|
//#region src/components/ui/card.tsx
|
|
3277
|
-
var
|
|
3380
|
+
var jr = W("group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", {
|
|
3278
3381
|
variants: { variant: {
|
|
3279
3382
|
default: "bg-card text-card-foreground ring-foreground/10",
|
|
3280
3383
|
alt: "bg-muted/40 text-card-foreground ring-foreground/10",
|
|
@@ -3285,51 +3388,51 @@ var kr = W("group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-
|
|
|
3285
3388
|
} },
|
|
3286
3389
|
defaultVariants: { variant: "default" }
|
|
3287
3390
|
});
|
|
3288
|
-
function
|
|
3391
|
+
function Mr({ className: e, size: t = "default", variant: n = "default", ...r }) {
|
|
3289
3392
|
return /* @__PURE__ */ X("div", {
|
|
3290
3393
|
"data-slot": "card",
|
|
3291
3394
|
"data-size": t,
|
|
3292
3395
|
"data-variant": n,
|
|
3293
|
-
className: Q(
|
|
3396
|
+
className: Q(jr({ variant: n }), e),
|
|
3294
3397
|
...r
|
|
3295
3398
|
});
|
|
3296
3399
|
}
|
|
3297
|
-
function
|
|
3400
|
+
function Nr({ className: e, ...t }) {
|
|
3298
3401
|
return /* @__PURE__ */ X("div", {
|
|
3299
3402
|
"data-slot": "card-header",
|
|
3300
3403
|
className: Q("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3", e),
|
|
3301
3404
|
...t
|
|
3302
3405
|
});
|
|
3303
3406
|
}
|
|
3304
|
-
function
|
|
3407
|
+
function Pr({ className: e, ...t }) {
|
|
3305
3408
|
return /* @__PURE__ */ X("div", {
|
|
3306
3409
|
"data-slot": "card-title",
|
|
3307
3410
|
className: Q("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
3308
3411
|
...t
|
|
3309
3412
|
});
|
|
3310
3413
|
}
|
|
3311
|
-
function
|
|
3414
|
+
function Fr({ className: e, ...t }) {
|
|
3312
3415
|
return /* @__PURE__ */ X("div", {
|
|
3313
3416
|
"data-slot": "card-description",
|
|
3314
3417
|
className: Q("text-sm text-muted-foreground", e),
|
|
3315
3418
|
...t
|
|
3316
3419
|
});
|
|
3317
3420
|
}
|
|
3318
|
-
function
|
|
3421
|
+
function Ir({ className: e, ...t }) {
|
|
3319
3422
|
return /* @__PURE__ */ X("div", {
|
|
3320
3423
|
"data-slot": "card-action",
|
|
3321
3424
|
className: Q("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
3322
3425
|
...t
|
|
3323
3426
|
});
|
|
3324
3427
|
}
|
|
3325
|
-
function
|
|
3428
|
+
function Lr({ className: e, ...t }) {
|
|
3326
3429
|
return /* @__PURE__ */ X("div", {
|
|
3327
3430
|
"data-slot": "card-content",
|
|
3328
3431
|
className: Q("px-4 group-data-[size=sm]/card:px-3", e),
|
|
3329
3432
|
...t
|
|
3330
3433
|
});
|
|
3331
3434
|
}
|
|
3332
|
-
function
|
|
3435
|
+
function Rr({ className: e, ...t }) {
|
|
3333
3436
|
return /* @__PURE__ */ X("div", {
|
|
3334
3437
|
"data-slot": "card-footer",
|
|
3335
3438
|
className: Q("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3", e),
|
|
@@ -3338,7 +3441,7 @@ function Ir({ className: e, ...t }) {
|
|
|
3338
3441
|
}
|
|
3339
3442
|
//#endregion
|
|
3340
3443
|
//#region src/components/custom/sensor-card.tsx
|
|
3341
|
-
var
|
|
3444
|
+
var zr = {
|
|
3342
3445
|
primary: {
|
|
3343
3446
|
text: "text-primary",
|
|
3344
3447
|
bg: "bg-primary"
|
|
@@ -3356,8 +3459,8 @@ var Lr = {
|
|
|
3356
3459
|
bg: "bg-muted-foreground"
|
|
3357
3460
|
}
|
|
3358
3461
|
};
|
|
3359
|
-
function
|
|
3360
|
-
let h =
|
|
3462
|
+
function Br({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, colorVariant: a = "primary", accentColorVariant: o, valueColorVariant: s, showPercentSign: c = !0, unit: l, stackedLayout: u = !1, variant: d = "default", onClick: f, onValueClick: p, className: m }) {
|
|
3463
|
+
let h = zr[a], g = zr[o ?? a], _ = s ? zr[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(fe, { className: Q(v, h.text) }) : /* @__PURE__ */ X(D, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(Y, { children: [u ? /* @__PURE__ */ Z("div", {
|
|
3361
3464
|
className: "flex items-center gap-3",
|
|
3362
3465
|
children: [y, /* @__PURE__ */ Z("div", {
|
|
3363
3466
|
className: "flex flex-col",
|
|
@@ -3399,7 +3502,7 @@ function Rr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3399
3502
|
children: c && r !== "" && !isNaN(Number(r)) ? `${r}%` : r
|
|
3400
3503
|
})]
|
|
3401
3504
|
})] }), x = Q("flex w-full flex-row items-center justify-between gap-3", u ? "py-3 pr-3 pl-3" : "py-3.5 pr-3 pl-4", f && "cursor-pointer hover:bg-accent", m);
|
|
3402
|
-
return d === "standalone" ? /* @__PURE__ */ X(
|
|
3505
|
+
return d === "standalone" ? /* @__PURE__ */ X(Mr, {
|
|
3403
3506
|
className: "p-0",
|
|
3404
3507
|
onClick: f,
|
|
3405
3508
|
children: /* @__PURE__ */ X("div", {
|
|
@@ -3414,39 +3517,39 @@ function Rr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3414
3517
|
}
|
|
3415
3518
|
//#endregion
|
|
3416
3519
|
//#region src/components/ui/sheet.tsx
|
|
3417
|
-
function
|
|
3520
|
+
function Vr({ ...e }) {
|
|
3418
3521
|
return /* @__PURE__ */ X(K.Root, {
|
|
3419
3522
|
"data-slot": "sheet",
|
|
3420
3523
|
...e
|
|
3421
3524
|
});
|
|
3422
3525
|
}
|
|
3423
|
-
function
|
|
3526
|
+
function Hr({ ...e }) {
|
|
3424
3527
|
return /* @__PURE__ */ X(K.Trigger, {
|
|
3425
3528
|
"data-slot": "sheet-trigger",
|
|
3426
3529
|
...e
|
|
3427
3530
|
});
|
|
3428
3531
|
}
|
|
3429
|
-
function
|
|
3532
|
+
function Ur({ ...e }) {
|
|
3430
3533
|
return /* @__PURE__ */ X(K.Close, {
|
|
3431
3534
|
"data-slot": "sheet-close",
|
|
3432
3535
|
...e
|
|
3433
3536
|
});
|
|
3434
3537
|
}
|
|
3435
|
-
function
|
|
3538
|
+
function Wr({ ...e }) {
|
|
3436
3539
|
return /* @__PURE__ */ X(K.Portal, {
|
|
3437
3540
|
"data-slot": "sheet-portal",
|
|
3438
3541
|
...e
|
|
3439
3542
|
});
|
|
3440
3543
|
}
|
|
3441
|
-
function
|
|
3544
|
+
function Gr({ className: e, ...t }) {
|
|
3442
3545
|
return /* @__PURE__ */ X(K.Overlay, {
|
|
3443
3546
|
"data-slot": "sheet-overlay",
|
|
3444
3547
|
className: Q("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
3445
3548
|
...t
|
|
3446
3549
|
});
|
|
3447
3550
|
}
|
|
3448
|
-
function
|
|
3449
|
-
return /* @__PURE__ */ Z(
|
|
3551
|
+
function Kr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
3552
|
+
return /* @__PURE__ */ Z(Wr, { children: [/* @__PURE__ */ X(Gr, {}), /* @__PURE__ */ Z(K.Content, {
|
|
3450
3553
|
"data-slot": "sheet-content",
|
|
3451
3554
|
"data-side": n,
|
|
3452
3555
|
className: Q("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", e),
|
|
@@ -3466,28 +3569,28 @@ function Wr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
3466
3569
|
})]
|
|
3467
3570
|
})] });
|
|
3468
3571
|
}
|
|
3469
|
-
function
|
|
3572
|
+
function qr({ className: e, ...t }) {
|
|
3470
3573
|
return /* @__PURE__ */ X("div", {
|
|
3471
3574
|
"data-slot": "sheet-header",
|
|
3472
3575
|
className: Q("flex flex-col gap-0.5 p-4", e),
|
|
3473
3576
|
...t
|
|
3474
3577
|
});
|
|
3475
3578
|
}
|
|
3476
|
-
function
|
|
3579
|
+
function Jr({ className: e, ...t }) {
|
|
3477
3580
|
return /* @__PURE__ */ X("div", {
|
|
3478
3581
|
"data-slot": "sheet-footer",
|
|
3479
3582
|
className: Q("mt-auto flex flex-col gap-2 p-4", e),
|
|
3480
3583
|
...t
|
|
3481
3584
|
});
|
|
3482
3585
|
}
|
|
3483
|
-
function
|
|
3586
|
+
function Yr({ className: e, ...t }) {
|
|
3484
3587
|
return /* @__PURE__ */ X(K.Title, {
|
|
3485
3588
|
"data-slot": "sheet-title",
|
|
3486
3589
|
className: Q("text-base font-medium text-foreground", e),
|
|
3487
3590
|
...t
|
|
3488
3591
|
});
|
|
3489
3592
|
}
|
|
3490
|
-
function
|
|
3593
|
+
function Xr({ className: e, ...t }) {
|
|
3491
3594
|
return /* @__PURE__ */ X(K.Description, {
|
|
3492
3595
|
"data-slot": "sheet-description",
|
|
3493
3596
|
className: Q("text-sm text-muted-foreground", e),
|
|
@@ -3496,17 +3599,17 @@ function Jr({ className: e, ...t }) {
|
|
|
3496
3599
|
}
|
|
3497
3600
|
//#endregion
|
|
3498
3601
|
//#region src/components/custom/side-sheet.tsx
|
|
3499
|
-
function
|
|
3602
|
+
function Zr({ children: e, title: t, open: n, onClose: r, description: i, side: a = "right", floating: o, onBack: s, notDismissable: c, footer: l, className: u }) {
|
|
3500
3603
|
let d = s !== void 0;
|
|
3501
|
-
return /* @__PURE__ */ X(
|
|
3604
|
+
return /* @__PURE__ */ X(Vr, {
|
|
3502
3605
|
open: n,
|
|
3503
3606
|
onOpenChange: c ? void 0 : (e) => !e && r(),
|
|
3504
|
-
children: /* @__PURE__ */ Z(
|
|
3607
|
+
children: /* @__PURE__ */ Z(Kr, {
|
|
3505
3608
|
side: a,
|
|
3506
3609
|
showCloseButton: !1,
|
|
3507
3610
|
className: Q("flex w-full flex-col gap-0 overflow-hidden p-0", "data-[side=left]:sm:max-w-[570px] data-[side=right]:sm:max-w-[570px]", o && Q("rounded-xl shadow-xl ring-1 ring-foreground/10", "data-[side=right]:inset-y-3 data-[side=right]:right-3 data-[side=right]:h-auto", "data-[side=left]:inset-y-3 data-[side=left]:left-3 data-[side=left]:h-auto"), u),
|
|
3508
3611
|
children: [
|
|
3509
|
-
/* @__PURE__ */ Z(
|
|
3612
|
+
/* @__PURE__ */ Z(qr, {
|
|
3510
3613
|
className: "shrink-0 flex-row items-center gap-2 border-b border-border px-4 py-3",
|
|
3511
3614
|
children: [/* @__PURE__ */ X($, {
|
|
3512
3615
|
type: "button",
|
|
@@ -3520,10 +3623,10 @@ function Yr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3520
3623
|
children: X(d ? x : U, {})
|
|
3521
3624
|
}), /* @__PURE__ */ Z("div", {
|
|
3522
3625
|
className: "flex min-w-0 flex-col",
|
|
3523
|
-
children: [/* @__PURE__ */ X(
|
|
3626
|
+
children: [/* @__PURE__ */ X(Yr, {
|
|
3524
3627
|
className: "truncate text-left text-lg font-semibold",
|
|
3525
3628
|
children: t
|
|
3526
|
-
}), i && /* @__PURE__ */ X(
|
|
3629
|
+
}), i && /* @__PURE__ */ X(Xr, {
|
|
3527
3630
|
className: "text-left",
|
|
3528
3631
|
children: i
|
|
3529
3632
|
})]
|
|
@@ -3541,7 +3644,7 @@ function Yr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3541
3644
|
})
|
|
3542
3645
|
});
|
|
3543
3646
|
}
|
|
3544
|
-
function
|
|
3647
|
+
function Qr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
3545
3648
|
return /* @__PURE__ */ Z("div", {
|
|
3546
3649
|
"data-slot": "side-sheet-section",
|
|
3547
3650
|
...i,
|
|
@@ -3563,7 +3666,7 @@ function Xr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
|
3563
3666
|
}
|
|
3564
3667
|
//#endregion
|
|
3565
3668
|
//#region src/components/custom/stat-card.tsx
|
|
3566
|
-
var
|
|
3669
|
+
var $r = {
|
|
3567
3670
|
primary: {
|
|
3568
3671
|
text: "text-primary",
|
|
3569
3672
|
bg: "bg-primary",
|
|
@@ -3590,7 +3693,7 @@ var Zr = {
|
|
|
3590
3693
|
soft: "bg-muted"
|
|
3591
3694
|
}
|
|
3592
3695
|
};
|
|
3593
|
-
function
|
|
3696
|
+
function ei({ data: e, colorVar: t }) {
|
|
3594
3697
|
let r = n.useId().replace(/:/g, "");
|
|
3595
3698
|
return /* @__PURE__ */ X("div", {
|
|
3596
3699
|
className: "mt-3 h-16 w-full",
|
|
@@ -3637,11 +3740,11 @@ function Qr({ data: e, colorVar: t }) {
|
|
|
3637
3740
|
})
|
|
3638
3741
|
});
|
|
3639
3742
|
}
|
|
3640
|
-
function
|
|
3641
|
-
let u =
|
|
3642
|
-
return /* @__PURE__ */ Z(
|
|
3743
|
+
function ti({ title: e, value: t, description: n, icon: r, color: i = "primary", trend: a, progress: o, sparkline: s, ring: c, className: l }) {
|
|
3744
|
+
let u = $r[i], d = i === "muted" ? "var(--muted-foreground)" : `var(--${ni(i)})`;
|
|
3745
|
+
return /* @__PURE__ */ Z(Mr, {
|
|
3643
3746
|
className: Q("gap-3", l),
|
|
3644
|
-
children: [/* @__PURE__ */ Z(
|
|
3747
|
+
children: [/* @__PURE__ */ Z(Nr, {
|
|
3645
3748
|
className: "flex flex-row items-start justify-between gap-2 pb-0",
|
|
3646
3749
|
children: [/* @__PURE__ */ X("span", {
|
|
3647
3750
|
className: "text-sm font-medium text-muted-foreground",
|
|
@@ -3650,10 +3753,10 @@ function $r({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3650
3753
|
className: Q("flex size-9 shrink-0 items-center justify-center rounded-md", u.soft, u.text, "[&_svg]:size-4"),
|
|
3651
3754
|
children: r
|
|
3652
3755
|
})]
|
|
3653
|
-
}), /* @__PURE__ */ Z(
|
|
3756
|
+
}), /* @__PURE__ */ Z(Lr, { children: [
|
|
3654
3757
|
c ? /* @__PURE__ */ Z("div", {
|
|
3655
3758
|
className: "mt-1 flex items-center gap-4",
|
|
3656
|
-
children: [/* @__PURE__ */ X(
|
|
3759
|
+
children: [/* @__PURE__ */ X(ri, {
|
|
3657
3760
|
ring: c,
|
|
3658
3761
|
colors: u
|
|
3659
3762
|
}), /* @__PURE__ */ Z("div", {
|
|
@@ -3693,14 +3796,14 @@ function $r({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3693
3796
|
children: [/* @__PURE__ */ X("span", { children: o.caption }), /* @__PURE__ */ X("span", { children: o.target })]
|
|
3694
3797
|
})]
|
|
3695
3798
|
}),
|
|
3696
|
-
s && s.length > 1 && /* @__PURE__ */ X(
|
|
3799
|
+
s && s.length > 1 && /* @__PURE__ */ X(ei, {
|
|
3697
3800
|
data: s,
|
|
3698
3801
|
colorVar: d
|
|
3699
3802
|
})
|
|
3700
3803
|
] })]
|
|
3701
3804
|
});
|
|
3702
3805
|
}
|
|
3703
|
-
function
|
|
3806
|
+
function ni(e) {
|
|
3704
3807
|
switch (e) {
|
|
3705
3808
|
case "primary": return "primary";
|
|
3706
3809
|
case "success": return "green";
|
|
@@ -3709,7 +3812,7 @@ function ei(e) {
|
|
|
3709
3812
|
default: return "muted-foreground";
|
|
3710
3813
|
}
|
|
3711
3814
|
}
|
|
3712
|
-
function
|
|
3815
|
+
function ri({ ring: e, colors: t }) {
|
|
3713
3816
|
let n = Math.max(0, Math.min(100, e.value)), r = 2 * Math.PI * 34;
|
|
3714
3817
|
return /* @__PURE__ */ Z("div", {
|
|
3715
3818
|
className: "relative size-20 shrink-0",
|
|
@@ -3743,7 +3846,7 @@ function ti({ ring: e, colors: t }) {
|
|
|
3743
3846
|
}
|
|
3744
3847
|
//#endregion
|
|
3745
3848
|
//#region src/components/custom/status-list.tsx
|
|
3746
|
-
var
|
|
3849
|
+
var ii = {
|
|
3747
3850
|
neutral: {
|
|
3748
3851
|
text: "text-muted-foreground",
|
|
3749
3852
|
pill: "border-transparent bg-muted text-muted-foreground",
|
|
@@ -3785,16 +3888,16 @@ var ni = {
|
|
|
3785
3888
|
avatar: "bg-red/15 text-red"
|
|
3786
3889
|
}
|
|
3787
3890
|
};
|
|
3788
|
-
function
|
|
3891
|
+
function ai({ tone: e = "neutral", className: t, children: n }) {
|
|
3789
3892
|
return /* @__PURE__ */ X("span", {
|
|
3790
|
-
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5",
|
|
3893
|
+
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5", ii[e].softBox, t),
|
|
3791
3894
|
children: n
|
|
3792
3895
|
});
|
|
3793
3896
|
}
|
|
3794
|
-
function
|
|
3897
|
+
function oi({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
3795
3898
|
let i = t.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
3796
3899
|
return /* @__PURE__ */ X("span", {
|
|
3797
|
-
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold",
|
|
3900
|
+
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold", ii[n].avatar, r),
|
|
3798
3901
|
children: e ? /* @__PURE__ */ X("img", {
|
|
3799
3902
|
src: e,
|
|
3800
3903
|
alt: t,
|
|
@@ -3802,14 +3905,14 @@ function ii({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
|
3802
3905
|
}) : i
|
|
3803
3906
|
});
|
|
3804
3907
|
}
|
|
3805
|
-
function
|
|
3908
|
+
function si({ className: e, ...t }) {
|
|
3806
3909
|
return /* @__PURE__ */ X("div", {
|
|
3807
3910
|
"data-slot": "status-list",
|
|
3808
3911
|
className: Q("flex flex-col gap-2", e),
|
|
3809
3912
|
...t
|
|
3810
3913
|
});
|
|
3811
3914
|
}
|
|
3812
|
-
function
|
|
3915
|
+
function ci({ label: e, count: t, className: n, children: r, ...i }) {
|
|
3813
3916
|
return /* @__PURE__ */ Z("div", {
|
|
3814
3917
|
"data-slot": "status-list-group",
|
|
3815
3918
|
className: n,
|
|
@@ -3830,8 +3933,8 @@ function oi({ label: e, count: t, className: n, children: r, ...i }) {
|
|
|
3830
3933
|
})]
|
|
3831
3934
|
});
|
|
3832
3935
|
}
|
|
3833
|
-
function
|
|
3834
|
-
let u =
|
|
3936
|
+
function li({ media: e, title: t, description: n, status: r, statusVariant: i = "pill", hint: a, tone: o = "neutral", active: s = !1, className: c, ...l }) {
|
|
3937
|
+
let u = ii[o];
|
|
3835
3938
|
return /* @__PURE__ */ Z("div", {
|
|
3836
3939
|
"data-slot": "status-list-item",
|
|
3837
3940
|
className: Q("flex items-center gap-3 rounded-lg border p-3", s ? Q("border-transparent ring-1", u.activeBg) : "bg-card", c),
|
|
@@ -3856,7 +3959,7 @@ function si({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3856
3959
|
}), r != null && (i === "text" ? /* @__PURE__ */ X("span", {
|
|
3857
3960
|
className: Q("text-sm font-medium", u.text),
|
|
3858
3961
|
children: r
|
|
3859
|
-
}) : /* @__PURE__ */ X(
|
|
3962
|
+
}) : /* @__PURE__ */ X(ht, {
|
|
3860
3963
|
variant: "outline",
|
|
3861
3964
|
className: Q("font-medium", i === "outline" ? u.outline : u.pill),
|
|
3862
3965
|
children: r
|
|
@@ -3867,26 +3970,26 @@ function si({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3867
3970
|
}
|
|
3868
3971
|
//#endregion
|
|
3869
3972
|
//#region src/components/ui/select.tsx
|
|
3870
|
-
function
|
|
3973
|
+
function ui({ ...e }) {
|
|
3871
3974
|
return /* @__PURE__ */ X(J.Root, {
|
|
3872
3975
|
"data-slot": "select",
|
|
3873
3976
|
...e
|
|
3874
3977
|
});
|
|
3875
3978
|
}
|
|
3876
|
-
function
|
|
3979
|
+
function di({ className: e, ...t }) {
|
|
3877
3980
|
return /* @__PURE__ */ X(J.Group, {
|
|
3878
3981
|
"data-slot": "select-group",
|
|
3879
3982
|
className: Q("scroll-my-1 p-1", e),
|
|
3880
3983
|
...t
|
|
3881
3984
|
});
|
|
3882
3985
|
}
|
|
3883
|
-
function
|
|
3986
|
+
function fi({ ...e }) {
|
|
3884
3987
|
return /* @__PURE__ */ X(J.Value, {
|
|
3885
3988
|
"data-slot": "select-value",
|
|
3886
3989
|
...e
|
|
3887
3990
|
});
|
|
3888
3991
|
}
|
|
3889
|
-
function
|
|
3992
|
+
function pi({ className: e, size: t = "default", children: n, ...r }) {
|
|
3890
3993
|
return /* @__PURE__ */ Z(J.Trigger, {
|
|
3891
3994
|
"data-slot": "select-trigger",
|
|
3892
3995
|
"data-size": t,
|
|
@@ -3898,7 +4001,7 @@ function di({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
3898
4001
|
})]
|
|
3899
4002
|
});
|
|
3900
4003
|
}
|
|
3901
|
-
function
|
|
4004
|
+
function mi({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
3902
4005
|
return /* @__PURE__ */ X(J.Portal, { children: /* @__PURE__ */ Z(J.Content, {
|
|
3903
4006
|
"data-slot": "select-content",
|
|
3904
4007
|
"data-align-trigger": n === "item-aligned",
|
|
@@ -3907,24 +4010,24 @@ function fi({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
3907
4010
|
align: r,
|
|
3908
4011
|
...i,
|
|
3909
4012
|
children: [
|
|
3910
|
-
/* @__PURE__ */ X(
|
|
4013
|
+
/* @__PURE__ */ X(vi, {}),
|
|
3911
4014
|
/* @__PURE__ */ X(J.Viewport, {
|
|
3912
4015
|
"data-position": n,
|
|
3913
4016
|
className: Q("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
3914
4017
|
children: t
|
|
3915
4018
|
}),
|
|
3916
|
-
/* @__PURE__ */ X(
|
|
4019
|
+
/* @__PURE__ */ X(yi, {})
|
|
3917
4020
|
]
|
|
3918
4021
|
}) });
|
|
3919
4022
|
}
|
|
3920
|
-
function
|
|
4023
|
+
function hi({ className: e, ...t }) {
|
|
3921
4024
|
return /* @__PURE__ */ X(J.Label, {
|
|
3922
4025
|
"data-slot": "select-label",
|
|
3923
4026
|
className: Q("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
3924
4027
|
...t
|
|
3925
4028
|
});
|
|
3926
4029
|
}
|
|
3927
|
-
function
|
|
4030
|
+
function gi({ className: e, children: t, ...n }) {
|
|
3928
4031
|
return /* @__PURE__ */ Z(J.Item, {
|
|
3929
4032
|
"data-slot": "select-item",
|
|
3930
4033
|
className: Q("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
@@ -3935,14 +4038,14 @@ function mi({ className: e, children: t, ...n }) {
|
|
|
3935
4038
|
}), /* @__PURE__ */ X(J.ItemText, { children: t })]
|
|
3936
4039
|
});
|
|
3937
4040
|
}
|
|
3938
|
-
function
|
|
4041
|
+
function _i({ className: e, ...t }) {
|
|
3939
4042
|
return /* @__PURE__ */ X(J.Separator, {
|
|
3940
4043
|
"data-slot": "select-separator",
|
|
3941
4044
|
className: Q("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
3942
4045
|
...t
|
|
3943
4046
|
});
|
|
3944
4047
|
}
|
|
3945
|
-
function
|
|
4048
|
+
function vi({ className: e, ...t }) {
|
|
3946
4049
|
return /* @__PURE__ */ X(J.ScrollUpButton, {
|
|
3947
4050
|
"data-slot": "select-scroll-up-button",
|
|
3948
4051
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3950,7 +4053,7 @@ function gi({ className: e, ...t }) {
|
|
|
3950
4053
|
children: /* @__PURE__ */ X(C, {})
|
|
3951
4054
|
});
|
|
3952
4055
|
}
|
|
3953
|
-
function
|
|
4056
|
+
function yi({ className: e, ...t }) {
|
|
3954
4057
|
return /* @__PURE__ */ X(J.ScrollDownButton, {
|
|
3955
4058
|
"data-slot": "select-scroll-down-button",
|
|
3956
4059
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3960,7 +4063,7 @@ function _i({ className: e, ...t }) {
|
|
|
3960
4063
|
}
|
|
3961
4064
|
//#endregion
|
|
3962
4065
|
//#region src/components/ui/calendar.tsx
|
|
3963
|
-
function
|
|
4066
|
+
function bi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: a, formatters: o, components: s, ...c }) {
|
|
3964
4067
|
let l = Ve();
|
|
3965
4068
|
return /* @__PURE__ */ X(Be, {
|
|
3966
4069
|
showOutsideDays: n,
|
|
@@ -4012,19 +4115,19 @@ function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
4012
4115
|
}),
|
|
4013
4116
|
Dropdown: ({ value: e, onChange: t, options: n = [], "aria-label": r }) => {
|
|
4014
4117
|
let i = n.find((t) => t.value === Number(e));
|
|
4015
|
-
return /* @__PURE__ */ Z(
|
|
4118
|
+
return /* @__PURE__ */ Z(ui, {
|
|
4016
4119
|
value: e == null ? void 0 : String(e),
|
|
4017
4120
|
onValueChange: (e) => {
|
|
4018
4121
|
t?.({ target: { value: e } });
|
|
4019
4122
|
},
|
|
4020
|
-
children: [/* @__PURE__ */ X(
|
|
4123
|
+
children: [/* @__PURE__ */ X(pi, {
|
|
4021
4124
|
size: "sm",
|
|
4022
4125
|
"aria-label": r,
|
|
4023
4126
|
className: "h-7 gap-1 border-none px-2 font-medium shadow-none focus-visible:ring-0 [&_svg]:opacity-60",
|
|
4024
|
-
children: /* @__PURE__ */ X(
|
|
4025
|
-
}), /* @__PURE__ */ X(
|
|
4127
|
+
children: /* @__PURE__ */ X(fi, { children: i?.label })
|
|
4128
|
+
}), /* @__PURE__ */ X(mi, {
|
|
4026
4129
|
className: "max-h-60",
|
|
4027
|
-
children: n.map((e) => /* @__PURE__ */ X(
|
|
4130
|
+
children: n.map((e) => /* @__PURE__ */ X(gi, {
|
|
4028
4131
|
value: String(e.value),
|
|
4029
4132
|
disabled: e.disabled,
|
|
4030
4133
|
children: e.label
|
|
@@ -4032,7 +4135,7 @@ function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
4032
4135
|
})]
|
|
4033
4136
|
});
|
|
4034
4137
|
},
|
|
4035
|
-
DayButton: ({ ...e }) => /* @__PURE__ */ X(
|
|
4138
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ X(xi, {
|
|
4036
4139
|
locale: a,
|
|
4037
4140
|
...e
|
|
4038
4141
|
}),
|
|
@@ -4048,7 +4151,7 @@ function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
4048
4151
|
...c
|
|
4049
4152
|
});
|
|
4050
4153
|
}
|
|
4051
|
-
function
|
|
4154
|
+
function xi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
4052
4155
|
let o = Ve(), s = n.useRef(null);
|
|
4053
4156
|
return n.useEffect(() => {
|
|
4054
4157
|
r.focused && s.current?.focus();
|
|
@@ -4067,10 +4170,10 @@ function yi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
|
4067
4170
|
}
|
|
4068
4171
|
//#endregion
|
|
4069
4172
|
//#region src/components/custom/date-time-range-picker-utils.ts
|
|
4070
|
-
function
|
|
4173
|
+
function Si(e) {
|
|
4071
4174
|
return `${e.getUTCFullYear()}-${String(e.getUTCMonth() + 1).padStart(2, "0")}-${String(e.getUTCDate()).padStart(2, "0")}T${String(e.getUTCHours()).padStart(2, "0")}:${String(e.getUTCMinutes()).padStart(2, "0")}:${String(e.getUTCSeconds()).padStart(2, "0")}Z`;
|
|
4072
4175
|
}
|
|
4073
|
-
function
|
|
4176
|
+
function Ci(e, t) {
|
|
4074
4177
|
if (!e) return null;
|
|
4075
4178
|
let n = new Date(e);
|
|
4076
4179
|
if (isNaN(n.getTime())) return null;
|
|
@@ -4093,7 +4196,7 @@ function xi(e, t) {
|
|
|
4093
4196
|
s: i("second").padStart(2, "0")
|
|
4094
4197
|
};
|
|
4095
4198
|
}
|
|
4096
|
-
function
|
|
4199
|
+
function wi(e, t, n, r, i, a, o) {
|
|
4097
4200
|
let s = Date.UTC(e, t, n, parseInt(r), parseInt(i), parseInt(a)), c = new Date(s), l = new Intl.DateTimeFormat("en-US", {
|
|
4098
4201
|
year: "numeric",
|
|
4099
4202
|
month: "2-digit",
|
|
@@ -4104,9 +4207,9 @@ function Si(e, t, n, r, i, a, o) {
|
|
|
4104
4207
|
hour12: !1,
|
|
4105
4208
|
timeZone: o
|
|
4106
4209
|
}).formatToParts(c), u = (e) => parseInt(l.find((t) => t.type === e)?.value || "0", 10), d = Date.UTC(u("year"), u("month") - 1, u("day"), u("hour"), u("minute"), u("second")) - s;
|
|
4107
|
-
return
|
|
4210
|
+
return Si(new Date(s - d));
|
|
4108
4211
|
}
|
|
4109
|
-
var
|
|
4212
|
+
var Ti = [
|
|
4110
4213
|
{
|
|
4111
4214
|
value: "hour",
|
|
4112
4215
|
label: "Hour"
|
|
@@ -4124,8 +4227,8 @@ var Ci = [
|
|
|
4124
4227
|
label: "Month"
|
|
4125
4228
|
}
|
|
4126
4229
|
];
|
|
4127
|
-
function
|
|
4128
|
-
let t = /* @__PURE__ */ new Date(), n =
|
|
4230
|
+
function Ei(e) {
|
|
4231
|
+
let t = /* @__PURE__ */ new Date(), n = Si(t), r = new Date(t);
|
|
4129
4232
|
switch (e) {
|
|
4130
4233
|
case "hour":
|
|
4131
4234
|
r.setUTCHours(r.getUTCHours() - 1);
|
|
@@ -4141,20 +4244,20 @@ function wi(e) {
|
|
|
4141
4244
|
break;
|
|
4142
4245
|
}
|
|
4143
4246
|
return {
|
|
4144
|
-
from:
|
|
4247
|
+
from: Si(r),
|
|
4145
4248
|
to: n
|
|
4146
4249
|
};
|
|
4147
4250
|
}
|
|
4148
|
-
function
|
|
4251
|
+
function Di(e, t) {
|
|
4149
4252
|
let n = new Date(e.from).getTime(), r = new Date(e.to).getTime(), i = r - n, a = t === "prev" ? -i : i;
|
|
4150
4253
|
return {
|
|
4151
4254
|
preset: e.preset,
|
|
4152
|
-
from:
|
|
4153
|
-
to:
|
|
4255
|
+
from: Si(new Date(n + a)),
|
|
4256
|
+
to: Si(new Date(r + a))
|
|
4154
4257
|
};
|
|
4155
4258
|
}
|
|
4156
|
-
function
|
|
4157
|
-
if (e.preset) return
|
|
4259
|
+
function Oi(e, t) {
|
|
4260
|
+
if (e.preset) return Ti.find((t) => t.value === e.preset)?.label ?? e.preset;
|
|
4158
4261
|
if (e.from && e.to) {
|
|
4159
4262
|
let n = (e) => new Date(e).toLocaleString("en-US", {
|
|
4160
4263
|
year: "numeric",
|
|
@@ -4171,7 +4274,7 @@ function Ei(e, t) {
|
|
|
4171
4274
|
}
|
|
4172
4275
|
//#endregion
|
|
4173
4276
|
//#region src/components/custom/date-time-picker.tsx
|
|
4174
|
-
function
|
|
4277
|
+
function ki({ value: e, max: t, onChange: r }) {
|
|
4175
4278
|
let [i, a] = n.useState(e);
|
|
4176
4279
|
n.useEffect(() => {
|
|
4177
4280
|
a(e);
|
|
@@ -4196,13 +4299,13 @@ function Di({ value: e, max: t, onChange: r }) {
|
|
|
4196
4299
|
className: Q("h-8 w-12 rounded-md border border-input bg-transparent text-center text-sm font-medium dark:bg-input/30", "focus:border-ring focus:ring-3 focus:ring-ring/50 focus:outline-none", "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none")
|
|
4197
4300
|
});
|
|
4198
4301
|
}
|
|
4199
|
-
function
|
|
4200
|
-
let [p, m] = n.useState(!1), h = o || "UTC", _ =
|
|
4302
|
+
function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & time", showTime: a = !0, timezone: o, minDate: s, maxDate: c, captionLayout: l = "dropdown", yearRange: u, disabled: d, className: f }) {
|
|
4303
|
+
let [p, m] = n.useState(!1), h = o || "UTC", _ = Ci(e, h), [v, y] = n.useState(_?.h ?? "00"), [b, x] = n.useState(_?.m ?? "00"), [S, C] = n.useState(_?.s ?? "00");
|
|
4201
4304
|
n.useEffect(() => {
|
|
4202
|
-
let t =
|
|
4305
|
+
let t = Ci(e, h);
|
|
4203
4306
|
y(t?.h ?? "00"), x(t?.m ?? "00"), C(t?.s ?? "00");
|
|
4204
4307
|
}, [e, h]);
|
|
4205
|
-
let w = _ ? new Date(_.year, _.month, _.day) : void 0, T = (e, n, r, i, a, o) => t(
|
|
4308
|
+
let w = _ ? new Date(_.year, _.month, _.day) : void 0, T = (e, n, r, i, a, o) => t(wi(e, n, r, i, a, o, h)), E = (e) => {
|
|
4206
4309
|
e && (T(e.getFullYear(), e.getMonth(), e.getDate(), a ? v : "00", a ? b : "00", a ? S : "00"), a || m(!1));
|
|
4207
4310
|
}, D = (e, t) => {
|
|
4208
4311
|
let n = e === "h" ? t : v, r = e === "m" ? t : b, i = e === "s" ? t : S;
|
|
@@ -4217,7 +4320,7 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4217
4320
|
if (t.setHours(23, 59, 59, 999), e > t) return !0;
|
|
4218
4321
|
}
|
|
4219
4322
|
return !1;
|
|
4220
|
-
}, A = (/* @__PURE__ */ new Date()).getFullYear(), [
|
|
4323
|
+
}, A = (/* @__PURE__ */ new Date()).getFullYear(), [j, M] = u ?? [A - 100, A + 5], N = s ? Math.max(j, new Date(s).getFullYear()) : j, P = c ? Math.min(M, new Date(c).getFullYear()) : M, F = new Date(N, 0, 1), I = new Date(P, 11, 31), ee = _ ? new Date(e).toLocaleString("en-US", {
|
|
4221
4324
|
year: "numeric",
|
|
4222
4325
|
month: "short",
|
|
4223
4326
|
day: "2-digit",
|
|
@@ -4234,11 +4337,11 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4234
4337
|
children: [r != null && /* @__PURE__ */ X("label", {
|
|
4235
4338
|
className: "px-0.5 text-xs text-muted-foreground",
|
|
4236
4339
|
children: r
|
|
4237
|
-
}), /* @__PURE__ */ Z(
|
|
4340
|
+
}), /* @__PURE__ */ Z(an, {
|
|
4238
4341
|
open: p,
|
|
4239
4342
|
onOpenChange: m,
|
|
4240
4343
|
modal: !1,
|
|
4241
|
-
children: [/* @__PURE__ */ X(
|
|
4344
|
+
children: [/* @__PURE__ */ X(on, {
|
|
4242
4345
|
asChild: !0,
|
|
4243
4346
|
children: /* @__PURE__ */ Z("button", {
|
|
4244
4347
|
type: "button",
|
|
@@ -4246,28 +4349,28 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4246
4349
|
className: Q("flex h-8 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-1 text-sm transition-colors outline-none dark:bg-input/30", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", p && "border-ring ring-3 ring-ring/50", !_ && "text-muted-foreground", "disabled:pointer-events-none disabled:opacity-50"),
|
|
4247
4350
|
children: [/* @__PURE__ */ X("span", {
|
|
4248
4351
|
className: "truncate",
|
|
4249
|
-
children:
|
|
4352
|
+
children: ee
|
|
4250
4353
|
}), /* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" })]
|
|
4251
4354
|
})
|
|
4252
|
-
}), /* @__PURE__ */ Z(
|
|
4355
|
+
}), /* @__PURE__ */ Z(sn, {
|
|
4253
4356
|
className: "w-auto p-0",
|
|
4254
4357
|
align: "start",
|
|
4255
4358
|
sideOffset: 4,
|
|
4256
|
-
children: [/* @__PURE__ */ X(
|
|
4359
|
+
children: [/* @__PURE__ */ X(bi, {
|
|
4257
4360
|
mode: "single",
|
|
4258
4361
|
selected: w,
|
|
4259
4362
|
onSelect: E,
|
|
4260
4363
|
disabled: O,
|
|
4261
4364
|
defaultMonth: w,
|
|
4262
4365
|
captionLayout: l,
|
|
4263
|
-
startMonth:
|
|
4264
|
-
endMonth:
|
|
4366
|
+
startMonth: F,
|
|
4367
|
+
endMonth: I,
|
|
4265
4368
|
autoFocus: !0
|
|
4266
4369
|
}), a && /* @__PURE__ */ Z("div", {
|
|
4267
4370
|
className: "flex items-center gap-2 border-t px-3 py-2.5",
|
|
4268
4371
|
children: [
|
|
4269
4372
|
/* @__PURE__ */ X(k, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4270
|
-
/* @__PURE__ */ X(
|
|
4373
|
+
/* @__PURE__ */ X(ki, {
|
|
4271
4374
|
value: v,
|
|
4272
4375
|
max: 23,
|
|
4273
4376
|
onChange: (e) => D("h", e)
|
|
@@ -4276,7 +4379,7 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4276
4379
|
className: "text-sm font-medium text-muted-foreground",
|
|
4277
4380
|
children: ":"
|
|
4278
4381
|
}),
|
|
4279
|
-
/* @__PURE__ */ X(
|
|
4382
|
+
/* @__PURE__ */ X(ki, {
|
|
4280
4383
|
value: b,
|
|
4281
4384
|
max: 59,
|
|
4282
4385
|
onChange: (e) => D("m", e)
|
|
@@ -4285,7 +4388,7 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4285
4388
|
className: "text-sm font-medium text-muted-foreground",
|
|
4286
4389
|
children: ":"
|
|
4287
4390
|
}),
|
|
4288
|
-
/* @__PURE__ */ X(
|
|
4391
|
+
/* @__PURE__ */ X(ki, {
|
|
4289
4392
|
value: S,
|
|
4290
4393
|
max: 59,
|
|
4291
4394
|
onChange: (e) => D("s", e)
|
|
@@ -4298,8 +4401,8 @@ function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4298
4401
|
}
|
|
4299
4402
|
//#endregion
|
|
4300
4403
|
//#region src/components/custom/date-time-range-picker.tsx
|
|
4301
|
-
var
|
|
4302
|
-
let c = a ??
|
|
4404
|
+
var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o }, s) {
|
|
4405
|
+
let c = a ?? Ti, [l, u] = n.useState(!1), [d, f] = n.useState(e.from), [p, m] = n.useState(e.to);
|
|
4303
4406
|
n.useEffect(() => {
|
|
4304
4407
|
f(e.from), m(e.to);
|
|
4305
4408
|
}, [e]);
|
|
@@ -4311,13 +4414,13 @@ var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4311
4414
|
}, _ = (e) => {
|
|
4312
4415
|
t({
|
|
4313
4416
|
preset: e,
|
|
4314
|
-
...
|
|
4417
|
+
...Ei(e)
|
|
4315
4418
|
}), u(!1);
|
|
4316
4419
|
};
|
|
4317
|
-
return /* @__PURE__ */ Z(
|
|
4420
|
+
return /* @__PURE__ */ Z(an, {
|
|
4318
4421
|
open: l,
|
|
4319
4422
|
onOpenChange: u,
|
|
4320
|
-
children: [/* @__PURE__ */ X(
|
|
4423
|
+
children: [/* @__PURE__ */ X(on, {
|
|
4321
4424
|
asChild: !0,
|
|
4322
4425
|
children: /* @__PURE__ */ Z("button", {
|
|
4323
4426
|
ref: s,
|
|
@@ -4327,12 +4430,12 @@ var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4327
4430
|
/* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" }),
|
|
4328
4431
|
/* @__PURE__ */ X("span", {
|
|
4329
4432
|
className: "truncate",
|
|
4330
|
-
children:
|
|
4433
|
+
children: Oi(e, i)
|
|
4331
4434
|
}),
|
|
4332
4435
|
/* @__PURE__ */ X(y, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform", l && "rotate-180") })
|
|
4333
4436
|
]
|
|
4334
4437
|
})
|
|
4335
|
-
}), /* @__PURE__ */ X(
|
|
4438
|
+
}), /* @__PURE__ */ X(sn, {
|
|
4336
4439
|
align: "end",
|
|
4337
4440
|
sideOffset: 4,
|
|
4338
4441
|
className: "w-auto p-0",
|
|
@@ -4360,7 +4463,7 @@ var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4360
4463
|
className: "px-0.5 text-sm text-muted-foreground",
|
|
4361
4464
|
children: "Custom range"
|
|
4362
4465
|
}),
|
|
4363
|
-
/* @__PURE__ */ X(
|
|
4466
|
+
/* @__PURE__ */ X(Ai, {
|
|
4364
4467
|
value: d,
|
|
4365
4468
|
onChange: h,
|
|
4366
4469
|
label: "From",
|
|
@@ -4368,7 +4471,7 @@ var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4368
4471
|
timezone: i,
|
|
4369
4472
|
maxDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
4370
4473
|
}),
|
|
4371
|
-
/* @__PURE__ */ X(
|
|
4474
|
+
/* @__PURE__ */ X(Ai, {
|
|
4372
4475
|
value: p,
|
|
4373
4476
|
onChange: m,
|
|
4374
4477
|
label: "To",
|
|
@@ -4403,36 +4506,36 @@ var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4403
4506
|
})
|
|
4404
4507
|
})]
|
|
4405
4508
|
});
|
|
4406
|
-
}),
|
|
4509
|
+
}), Mi = W("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
4407
4510
|
variants: { variant: {
|
|
4408
4511
|
default: "bg-card text-card-foreground",
|
|
4409
4512
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
4410
4513
|
} },
|
|
4411
4514
|
defaultVariants: { variant: "default" }
|
|
4412
4515
|
});
|
|
4413
|
-
function
|
|
4516
|
+
function Ni({ className: e, variant: t, ...n }) {
|
|
4414
4517
|
return /* @__PURE__ */ X("div", {
|
|
4415
4518
|
"data-slot": "alert",
|
|
4416
4519
|
role: "alert",
|
|
4417
|
-
className: Q(
|
|
4520
|
+
className: Q(Mi({ variant: t }), e),
|
|
4418
4521
|
...n
|
|
4419
4522
|
});
|
|
4420
4523
|
}
|
|
4421
|
-
function
|
|
4524
|
+
function Pi({ className: e, ...t }) {
|
|
4422
4525
|
return /* @__PURE__ */ X("div", {
|
|
4423
4526
|
"data-slot": "alert-title",
|
|
4424
4527
|
className: Q("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
4425
4528
|
...t
|
|
4426
4529
|
});
|
|
4427
4530
|
}
|
|
4428
|
-
function
|
|
4531
|
+
function Fi({ className: e, ...t }) {
|
|
4429
4532
|
return /* @__PURE__ */ X("div", {
|
|
4430
4533
|
"data-slot": "alert-description",
|
|
4431
4534
|
className: Q("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
4432
4535
|
...t
|
|
4433
4536
|
});
|
|
4434
4537
|
}
|
|
4435
|
-
function
|
|
4538
|
+
function Ii({ className: e, ...t }) {
|
|
4436
4539
|
return /* @__PURE__ */ X("div", {
|
|
4437
4540
|
"data-slot": "alert-action",
|
|
4438
4541
|
className: Q("absolute top-2 right-2", e),
|
|
@@ -4441,30 +4544,30 @@ function Pi({ className: e, ...t }) {
|
|
|
4441
4544
|
}
|
|
4442
4545
|
//#endregion
|
|
4443
4546
|
//#region src/components/ui/button-group.tsx
|
|
4444
|
-
var
|
|
4547
|
+
var Li = W("group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
4445
4548
|
variants: { orientation: {
|
|
4446
4549
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!",
|
|
4447
4550
|
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!"
|
|
4448
4551
|
} },
|
|
4449
4552
|
defaultVariants: { orientation: "horizontal" }
|
|
4450
4553
|
});
|
|
4451
|
-
function
|
|
4554
|
+
function Ri({ className: e, orientation: t, ...n }) {
|
|
4452
4555
|
return /* @__PURE__ */ X("div", {
|
|
4453
4556
|
role: "group",
|
|
4454
4557
|
"data-slot": "button-group",
|
|
4455
4558
|
"data-orientation": t,
|
|
4456
|
-
className: Q(
|
|
4559
|
+
className: Q(Li({ orientation: t }), e),
|
|
4457
4560
|
...n
|
|
4458
4561
|
});
|
|
4459
4562
|
}
|
|
4460
|
-
function
|
|
4563
|
+
function zi({ className: e, asChild: t = !1, ...n }) {
|
|
4461
4564
|
return /* @__PURE__ */ X(t ? ke.Root : "div", {
|
|
4462
4565
|
className: Q("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
4463
4566
|
...n
|
|
4464
4567
|
});
|
|
4465
4568
|
}
|
|
4466
|
-
function
|
|
4467
|
-
return /* @__PURE__ */ X(
|
|
4569
|
+
function Bi({ className: e, orientation: t = "vertical", ...n }) {
|
|
4570
|
+
return /* @__PURE__ */ X(_t, {
|
|
4468
4571
|
"data-slot": "button-group-separator",
|
|
4469
4572
|
orientation: t,
|
|
4470
4573
|
className: Q("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", e),
|
|
@@ -4473,28 +4576,28 @@ function Ri({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4473
4576
|
}
|
|
4474
4577
|
//#endregion
|
|
4475
4578
|
//#region src/components/ui/chart.tsx
|
|
4476
|
-
var
|
|
4579
|
+
var Vi = {
|
|
4477
4580
|
light: "",
|
|
4478
4581
|
dark: ".dark"
|
|
4479
|
-
},
|
|
4582
|
+
}, Hi = {
|
|
4480
4583
|
width: 320,
|
|
4481
4584
|
height: 200
|
|
4482
|
-
},
|
|
4483
|
-
function
|
|
4484
|
-
let e = n.useContext(
|
|
4585
|
+
}, Ui = n.createContext(null);
|
|
4586
|
+
function Wi() {
|
|
4587
|
+
let e = n.useContext(Ui);
|
|
4485
4588
|
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
4486
4589
|
return e;
|
|
4487
4590
|
}
|
|
4488
|
-
function
|
|
4591
|
+
function Gi({ id: e, className: t, children: r, config: i, initialDimension: a = Hi, ...o }) {
|
|
4489
4592
|
let s = n.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
|
|
4490
|
-
return /* @__PURE__ */ X(
|
|
4593
|
+
return /* @__PURE__ */ X(Ui.Provider, {
|
|
4491
4594
|
value: { config: i },
|
|
4492
4595
|
children: /* @__PURE__ */ Z("div", {
|
|
4493
4596
|
"data-slot": "chart",
|
|
4494
4597
|
"data-chart": c,
|
|
4495
4598
|
className: Q("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", t),
|
|
4496
4599
|
...o,
|
|
4497
|
-
children: [/* @__PURE__ */ X(
|
|
4600
|
+
children: [/* @__PURE__ */ X(Ki, {
|
|
4498
4601
|
id: c,
|
|
4499
4602
|
config: i
|
|
4500
4603
|
}), /* @__PURE__ */ X(Ie.ResponsiveContainer, {
|
|
@@ -4504,9 +4607,9 @@ function Ui({ id: e, className: t, children: r, config: i, initialDimension: a =
|
|
|
4504
4607
|
})
|
|
4505
4608
|
});
|
|
4506
4609
|
}
|
|
4507
|
-
var
|
|
4610
|
+
var Ki = ({ id: e, config: t }) => {
|
|
4508
4611
|
let n = Object.entries(t).filter(([, e]) => e.theme ?? e.color);
|
|
4509
|
-
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(
|
|
4612
|
+
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(Vi).map(([t, r]) => `
|
|
4510
4613
|
${r} [data-chart=${e}] {
|
|
4511
4614
|
${n.map(([e, n]) => {
|
|
4512
4615
|
let r = n.theme?.[t] ?? n.color;
|
|
@@ -4514,11 +4617,11 @@ ${n.map(([e, n]) => {
|
|
|
4514
4617
|
}).join("\n")}
|
|
4515
4618
|
}
|
|
4516
4619
|
`).join("\n") } }) : null;
|
|
4517
|
-
},
|
|
4518
|
-
function
|
|
4519
|
-
let { config: m } =
|
|
4620
|
+
}, qi = Ie.Tooltip;
|
|
4621
|
+
function Ji({ active: e, payload: t, className: r, indicator: i = "dot", hideLabel: a = !1, hideIndicator: o = !1, label: s, labelFormatter: c, labelClassName: l, formatter: u, color: d, nameKey: f, labelKey: p }) {
|
|
4622
|
+
let { config: m } = Wi(), h = n.useMemo(() => {
|
|
4520
4623
|
if (a || !t?.length) return null;
|
|
4521
|
-
let [e] = t, n =
|
|
4624
|
+
let [e] = t, n = Zi(m, e, `${p ?? e?.dataKey ?? e?.name ?? "value"}`), r = !p && typeof s == "string" ? m[s]?.label ?? s : n?.label;
|
|
4522
4625
|
return c ? /* @__PURE__ */ X("div", {
|
|
4523
4626
|
className: Q("font-medium", l),
|
|
4524
4627
|
children: c(r, t)
|
|
@@ -4542,7 +4645,7 @@ function Ki({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4542
4645
|
children: [g ? null : h, /* @__PURE__ */ X("div", {
|
|
4543
4646
|
className: "grid gap-1.5",
|
|
4544
4647
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
4545
|
-
let n =
|
|
4648
|
+
let n = Zi(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
|
|
4546
4649
|
return /* @__PURE__ */ X("div", {
|
|
4547
4650
|
className: Q("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", i === "dot" && "items-center"),
|
|
4548
4651
|
children: u && e?.value !== void 0 && e.name ? u(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ Z(Y, { children: [n?.icon ? /* @__PURE__ */ X(n.icon, {}) : !o && /* @__PURE__ */ X("div", {
|
|
@@ -4574,13 +4677,13 @@ function Ki({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4574
4677
|
})]
|
|
4575
4678
|
});
|
|
4576
4679
|
}
|
|
4577
|
-
var
|
|
4578
|
-
function
|
|
4579
|
-
let { config: a } =
|
|
4680
|
+
var Yi = Ie.Legend;
|
|
4681
|
+
function Xi({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
4682
|
+
let { config: a } = Wi();
|
|
4580
4683
|
return n?.length ? /* @__PURE__ */ X("div", {
|
|
4581
4684
|
className: Q("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
4582
4685
|
children: n.filter((e) => e.type !== "none").map((e, n) => {
|
|
4583
|
-
let r =
|
|
4686
|
+
let r = Zi(a, e, `${i ?? e.dataKey ?? "value"}`);
|
|
4584
4687
|
return /* @__PURE__ */ Z("div", {
|
|
4585
4688
|
className: Q("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
4586
4689
|
children: [r?.icon && !t ? /* @__PURE__ */ X(r.icon, {}) : /* @__PURE__ */ X("div", {
|
|
@@ -4591,26 +4694,26 @@ function Ji({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
|
|
|
4591
4694
|
})
|
|
4592
4695
|
}) : null;
|
|
4593
4696
|
}
|
|
4594
|
-
function
|
|
4697
|
+
function Zi(e, t, n) {
|
|
4595
4698
|
if (typeof t != "object" || !t) return;
|
|
4596
4699
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
4597
4700
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
4598
4701
|
}
|
|
4599
4702
|
//#endregion
|
|
4600
4703
|
//#region src/components/ui/hover-card.tsx
|
|
4601
|
-
function
|
|
4704
|
+
function Qi({ ...e }) {
|
|
4602
4705
|
return /* @__PURE__ */ X(Se.Root, {
|
|
4603
4706
|
"data-slot": "hover-card",
|
|
4604
4707
|
...e
|
|
4605
4708
|
});
|
|
4606
4709
|
}
|
|
4607
|
-
function
|
|
4710
|
+
function $i({ ...e }) {
|
|
4608
4711
|
return /* @__PURE__ */ X(Se.Trigger, {
|
|
4609
4712
|
"data-slot": "hover-card-trigger",
|
|
4610
4713
|
...e
|
|
4611
4714
|
});
|
|
4612
4715
|
}
|
|
4613
|
-
function
|
|
4716
|
+
function ea({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4614
4717
|
return /* @__PURE__ */ X(Se.Portal, {
|
|
4615
4718
|
"data-slot": "hover-card-portal",
|
|
4616
4719
|
children: /* @__PURE__ */ X(Se.Content, {
|
|
@@ -4624,7 +4727,7 @@ function Qi({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4624
4727
|
}
|
|
4625
4728
|
//#endregion
|
|
4626
4729
|
//#region src/components/ui/item.tsx
|
|
4627
|
-
function
|
|
4730
|
+
function ta({ className: e, ...t }) {
|
|
4628
4731
|
return /* @__PURE__ */ X("div", {
|
|
4629
4732
|
role: "list",
|
|
4630
4733
|
"data-slot": "item-group",
|
|
@@ -4632,15 +4735,15 @@ function $i({ className: e, ...t }) {
|
|
|
4632
4735
|
...t
|
|
4633
4736
|
});
|
|
4634
4737
|
}
|
|
4635
|
-
function
|
|
4636
|
-
return /* @__PURE__ */ X(
|
|
4738
|
+
function na({ className: e, ...t }) {
|
|
4739
|
+
return /* @__PURE__ */ X(_t, {
|
|
4637
4740
|
"data-slot": "item-separator",
|
|
4638
4741
|
orientation: "horizontal",
|
|
4639
4742
|
className: Q("my-2", e),
|
|
4640
4743
|
...t
|
|
4641
4744
|
});
|
|
4642
4745
|
}
|
|
4643
|
-
var
|
|
4746
|
+
var ra = W("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
4644
4747
|
variants: {
|
|
4645
4748
|
variant: {
|
|
4646
4749
|
default: "border-transparent",
|
|
@@ -4658,12 +4761,12 @@ var ta = W("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
4658
4761
|
size: "default"
|
|
4659
4762
|
}
|
|
4660
4763
|
});
|
|
4661
|
-
function
|
|
4764
|
+
function ia({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
4662
4765
|
return /* @__PURE__ */ X(r ? ke.Root : "div", {
|
|
4663
4766
|
"data-slot": "item",
|
|
4664
4767
|
"data-variant": t,
|
|
4665
4768
|
"data-size": n,
|
|
4666
|
-
className: Q(
|
|
4769
|
+
className: Q(ra({
|
|
4667
4770
|
variant: t,
|
|
4668
4771
|
size: n,
|
|
4669
4772
|
className: e
|
|
@@ -4671,7 +4774,7 @@ function na({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
4671
4774
|
...i
|
|
4672
4775
|
});
|
|
4673
4776
|
}
|
|
4674
|
-
var
|
|
4777
|
+
var aa = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
4675
4778
|
variants: { variant: {
|
|
4676
4779
|
default: "bg-transparent",
|
|
4677
4780
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -4679,53 +4782,53 @@ var ra = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot
|
|
|
4679
4782
|
} },
|
|
4680
4783
|
defaultVariants: { variant: "default" }
|
|
4681
4784
|
});
|
|
4682
|
-
function
|
|
4785
|
+
function oa({ className: e, variant: t = "default", ...n }) {
|
|
4683
4786
|
return /* @__PURE__ */ X("div", {
|
|
4684
4787
|
"data-slot": "item-media",
|
|
4685
4788
|
"data-variant": t,
|
|
4686
|
-
className: Q(
|
|
4789
|
+
className: Q(aa({
|
|
4687
4790
|
variant: t,
|
|
4688
4791
|
className: e
|
|
4689
4792
|
})),
|
|
4690
4793
|
...n
|
|
4691
4794
|
});
|
|
4692
4795
|
}
|
|
4693
|
-
function
|
|
4796
|
+
function sa({ className: e, ...t }) {
|
|
4694
4797
|
return /* @__PURE__ */ X("div", {
|
|
4695
4798
|
"data-slot": "item-content",
|
|
4696
4799
|
className: Q("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", e),
|
|
4697
4800
|
...t
|
|
4698
4801
|
});
|
|
4699
4802
|
}
|
|
4700
|
-
function
|
|
4803
|
+
function ca({ className: e, ...t }) {
|
|
4701
4804
|
return /* @__PURE__ */ X("div", {
|
|
4702
4805
|
"data-slot": "item-title",
|
|
4703
4806
|
className: Q("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", e),
|
|
4704
4807
|
...t
|
|
4705
4808
|
});
|
|
4706
4809
|
}
|
|
4707
|
-
function
|
|
4810
|
+
function la({ className: e, ...t }) {
|
|
4708
4811
|
return /* @__PURE__ */ X("p", {
|
|
4709
4812
|
"data-slot": "item-description",
|
|
4710
4813
|
className: Q("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
4711
4814
|
...t
|
|
4712
4815
|
});
|
|
4713
4816
|
}
|
|
4714
|
-
function
|
|
4817
|
+
function ua({ className: e, ...t }) {
|
|
4715
4818
|
return /* @__PURE__ */ X("div", {
|
|
4716
4819
|
"data-slot": "item-actions",
|
|
4717
4820
|
className: Q("flex items-center gap-2", e),
|
|
4718
4821
|
...t
|
|
4719
4822
|
});
|
|
4720
4823
|
}
|
|
4721
|
-
function
|
|
4824
|
+
function da({ className: e, ...t }) {
|
|
4722
4825
|
return /* @__PURE__ */ X("div", {
|
|
4723
4826
|
"data-slot": "item-header",
|
|
4724
4827
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
4725
4828
|
...t
|
|
4726
4829
|
});
|
|
4727
4830
|
}
|
|
4728
|
-
function
|
|
4831
|
+
function fa({ className: e, ...t }) {
|
|
4729
4832
|
return /* @__PURE__ */ X("div", {
|
|
4730
4833
|
"data-slot": "item-footer",
|
|
4731
4834
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
@@ -4734,10 +4837,10 @@ function ua({ className: e, ...t }) {
|
|
|
4734
4837
|
}
|
|
4735
4838
|
//#endregion
|
|
4736
4839
|
//#region src/components/ui/map.tsx
|
|
4737
|
-
var
|
|
4840
|
+
var pa = {
|
|
4738
4841
|
dark: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
|
4739
4842
|
light: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
4740
|
-
},
|
|
4843
|
+
}, ma = [
|
|
4741
4844
|
{
|
|
4742
4845
|
label: "Light",
|
|
4743
4846
|
url: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
@@ -4750,13 +4853,13 @@ var da = {
|
|
|
4750
4853
|
label: "Dark",
|
|
4751
4854
|
url: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
4752
4855
|
}
|
|
4753
|
-
],
|
|
4754
|
-
function
|
|
4755
|
-
let e = o(
|
|
4856
|
+
], ha = r(null);
|
|
4857
|
+
function ga() {
|
|
4858
|
+
let e = o(ha);
|
|
4756
4859
|
if (!e) throw Error("useMap must be used within a Map component");
|
|
4757
4860
|
return e;
|
|
4758
4861
|
}
|
|
4759
|
-
function
|
|
4862
|
+
function _a() {
|
|
4760
4863
|
return /* @__PURE__ */ X("div", {
|
|
4761
4864
|
className: "bg-background/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-xs",
|
|
4762
4865
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4769,7 +4872,7 @@ function ha() {
|
|
|
4769
4872
|
})
|
|
4770
4873
|
});
|
|
4771
4874
|
}
|
|
4772
|
-
function
|
|
4875
|
+
function va(e) {
|
|
4773
4876
|
let t = e.getCenter();
|
|
4774
4877
|
return {
|
|
4775
4878
|
center: [t.lng, t.lat],
|
|
@@ -4778,20 +4881,20 @@ function ga(e) {
|
|
|
4778
4881
|
pitch: e.getPitch()
|
|
4779
4882
|
};
|
|
4780
4883
|
}
|
|
4781
|
-
var
|
|
4782
|
-
let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, D] = f(0), O = d(null), k = d(null), A = d(!1),
|
|
4783
|
-
|
|
4784
|
-
let
|
|
4785
|
-
dark: r?.dark ??
|
|
4786
|
-
light: r?.light ??
|
|
4884
|
+
var ya = i(function({ children: e, className: t, theme: n, styles: r, projection: i, viewport: o, onViewportChange: c, loading: p = !1, controls: m = !0, tiles: h = ma, ...g }, _) {
|
|
4885
|
+
let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, D] = f(0), O = d(null), k = d(null), A = d(!1), j = o !== void 0 && c !== void 0, M = d(c);
|
|
4886
|
+
M.current = c;
|
|
4887
|
+
let N = u(() => ({
|
|
4888
|
+
dark: r?.dark ?? pa.dark,
|
|
4889
|
+
light: r?.light ?? pa.light
|
|
4787
4890
|
}), [r]);
|
|
4788
4891
|
l(_, () => b, [b]);
|
|
4789
|
-
let
|
|
4892
|
+
let P = a(() => {
|
|
4790
4893
|
k.current &&= (clearTimeout(k.current), null);
|
|
4791
4894
|
}, []);
|
|
4792
4895
|
s(() => {
|
|
4793
4896
|
if (!y.current) return;
|
|
4794
|
-
let e = v[0]?.url ??
|
|
4897
|
+
let e = v[0]?.url ?? N.light;
|
|
4795
4898
|
O.current = e;
|
|
4796
4899
|
let t = new He.Map({
|
|
4797
4900
|
container: y.current,
|
|
@@ -4801,18 +4904,18 @@ var _a = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4801
4904
|
...g,
|
|
4802
4905
|
...o
|
|
4803
4906
|
}), n = () => {
|
|
4804
|
-
|
|
4907
|
+
P(), k.current = setTimeout(() => {
|
|
4805
4908
|
T(!0), i && t.setProjection(i);
|
|
4806
4909
|
}, 100);
|
|
4807
4910
|
}, r = () => C(!0), a = () => {
|
|
4808
|
-
A.current ||
|
|
4911
|
+
A.current || M.current?.(va(t));
|
|
4809
4912
|
};
|
|
4810
4913
|
return t.on("load", r), t.on("styledata", n), t.on("move", a), x(t), () => {
|
|
4811
|
-
|
|
4914
|
+
P(), t.off("load", r), t.off("styledata", n), t.off("move", a), t.remove(), C(!1), T(!1), x(null);
|
|
4812
4915
|
};
|
|
4813
4916
|
}, []), s(() => {
|
|
4814
|
-
if (!b || !
|
|
4815
|
-
let e =
|
|
4917
|
+
if (!b || !j || !o || b.isMoving()) return;
|
|
4918
|
+
let e = va(b), t = {
|
|
4816
4919
|
center: o.center ?? e.center,
|
|
4817
4920
|
zoom: o.zoom ?? e.zoom,
|
|
4818
4921
|
bearing: o.bearing ?? e.bearing,
|
|
@@ -4821,20 +4924,20 @@ var _a = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4821
4924
|
t.center[0] === e.center[0] && t.center[1] === e.center[1] && t.zoom === e.zoom && t.bearing === e.bearing && t.pitch === e.pitch || (A.current = !0, b.jumpTo(t), A.current = !1);
|
|
4822
4925
|
}, [
|
|
4823
4926
|
b,
|
|
4824
|
-
|
|
4927
|
+
j,
|
|
4825
4928
|
o
|
|
4826
4929
|
]), s(() => {
|
|
4827
4930
|
if (!b) return;
|
|
4828
|
-
let e = v[E]?.url ?? (n === "dark" ?
|
|
4829
|
-
O.current !== e && (
|
|
4931
|
+
let e = v[E]?.url ?? (n === "dark" ? N.dark : N.light);
|
|
4932
|
+
O.current !== e && (P(), O.current = e, T(!1), b.setStyle(e, { diff: !0 }));
|
|
4830
4933
|
}, [
|
|
4831
4934
|
b,
|
|
4832
4935
|
E,
|
|
4833
4936
|
n,
|
|
4834
|
-
|
|
4835
|
-
|
|
4937
|
+
N,
|
|
4938
|
+
P
|
|
4836
4939
|
]);
|
|
4837
|
-
let
|
|
4940
|
+
let F = u(() => ({
|
|
4838
4941
|
map: b,
|
|
4839
4942
|
isLoaded: S && w
|
|
4840
4943
|
}), [
|
|
@@ -4842,12 +4945,12 @@ var _a = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4842
4945
|
S,
|
|
4843
4946
|
w
|
|
4844
4947
|
]);
|
|
4845
|
-
return /* @__PURE__ */ X(
|
|
4846
|
-
value:
|
|
4948
|
+
return /* @__PURE__ */ X(ha.Provider, {
|
|
4949
|
+
value: F,
|
|
4847
4950
|
children: /* @__PURE__ */ Z("div", {
|
|
4848
4951
|
ref: y,
|
|
4849
4952
|
className: Q("relative h-full w-full", t),
|
|
4850
|
-
children: [(!S || p) && /* @__PURE__ */ X(
|
|
4953
|
+
children: [(!S || p) && /* @__PURE__ */ X(_a, {}), b && /* @__PURE__ */ Z(Y, { children: [m && /* @__PURE__ */ X(Na, {
|
|
4851
4954
|
position: "top-right",
|
|
4852
4955
|
tiles: v,
|
|
4853
4956
|
tileIndex: E,
|
|
@@ -4855,14 +4958,14 @@ var _a = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4855
4958
|
}), e] })]
|
|
4856
4959
|
})
|
|
4857
4960
|
});
|
|
4858
|
-
}),
|
|
4859
|
-
function
|
|
4860
|
-
let e = o(
|
|
4961
|
+
}), ba = r(null);
|
|
4962
|
+
function xa() {
|
|
4963
|
+
let e = o(ba);
|
|
4861
4964
|
if (!e) throw Error("Marker components must be used within MapMarker");
|
|
4862
4965
|
return e;
|
|
4863
4966
|
}
|
|
4864
|
-
function
|
|
4865
|
-
let { map: m } =
|
|
4967
|
+
function Sa({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter: i, onMouseLeave: a, onDragStart: o, onDrag: c, onDragEnd: l, draggable: f = !1, ...p }) {
|
|
4968
|
+
let { map: m } = ga(), h = d({
|
|
4866
4969
|
onClick: r,
|
|
4867
4970
|
onMouseEnter: i,
|
|
4868
4971
|
onMouseLeave: a,
|
|
@@ -4910,7 +5013,7 @@ function ba({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4910
5013
|
};
|
|
4911
5014
|
}, [m]), (g.getLngLat().lng !== e || g.getLngLat().lat !== t) && g.setLngLat([e, t]), g.isDraggable() !== f && g.setDraggable(f);
|
|
4912
5015
|
let _ = g.getOffset(), v = p.offset ?? [0, 0], [y, b] = Array.isArray(v) ? v : [v.x, v.y];
|
|
4913
|
-
return (_.x !== y || _.y !== b) && g.setOffset(v), g.getRotation() !== p.rotation && g.setRotation(p.rotation ?? 0), g.getRotationAlignment() !== p.rotationAlignment && g.setRotationAlignment(p.rotationAlignment ?? "auto"), g.getPitchAlignment() !== p.pitchAlignment && g.setPitchAlignment(p.pitchAlignment ?? "auto"), /* @__PURE__ */ X(
|
|
5016
|
+
return (_.x !== y || _.y !== b) && g.setOffset(v), g.getRotation() !== p.rotation && g.setRotation(p.rotation ?? 0), g.getRotationAlignment() !== p.rotationAlignment && g.setRotationAlignment(p.rotationAlignment ?? "auto"), g.getPitchAlignment() !== p.pitchAlignment && g.setPitchAlignment(p.pitchAlignment ?? "auto"), /* @__PURE__ */ X(ba.Provider, {
|
|
4914
5017
|
value: {
|
|
4915
5018
|
marker: g,
|
|
4916
5019
|
map: m
|
|
@@ -4918,17 +5021,17 @@ function ba({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4918
5021
|
children: n
|
|
4919
5022
|
});
|
|
4920
5023
|
}
|
|
4921
|
-
function
|
|
4922
|
-
let { marker: n } =
|
|
5024
|
+
function Ca({ children: e, className: t }) {
|
|
5025
|
+
let { marker: n } = xa();
|
|
4923
5026
|
return Ue(/* @__PURE__ */ X("div", {
|
|
4924
5027
|
className: Q("relative cursor-pointer", t),
|
|
4925
|
-
children: e || /* @__PURE__ */ X(
|
|
5028
|
+
children: e || /* @__PURE__ */ X(wa, {})
|
|
4926
5029
|
}), n.getElement());
|
|
4927
5030
|
}
|
|
4928
|
-
function
|
|
5031
|
+
function wa() {
|
|
4929
5032
|
return /* @__PURE__ */ X("div", { className: "relative h-4 w-4 rounded-full border-2 border-white bg-blue-500 shadow-lg" });
|
|
4930
5033
|
}
|
|
4931
|
-
function
|
|
5034
|
+
function Ta({ onClick: e }) {
|
|
4932
5035
|
return /* @__PURE__ */ X("button", {
|
|
4933
5036
|
type: "button",
|
|
4934
5037
|
onClick: e,
|
|
@@ -4937,8 +5040,8 @@ function Ca({ onClick: e }) {
|
|
|
4937
5040
|
children: /* @__PURE__ */ X(be, { className: "size-3.5" })
|
|
4938
5041
|
});
|
|
4939
5042
|
}
|
|
4940
|
-
function
|
|
4941
|
-
let { marker: i, map: a } =
|
|
5043
|
+
function Ea({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
5044
|
+
let { marker: i, map: a } = xa(), o = u(() => document.createElement("div"), []), c = d(r), l = u(() => new He.Popup({
|
|
4942
5045
|
offset: 16,
|
|
4943
5046
|
...r,
|
|
4944
5047
|
closeButton: !1
|
|
@@ -4953,11 +5056,11 @@ function wa({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
|
4953
5056
|
}
|
|
4954
5057
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
4955
5058
|
className: Q("bg-popover text-popover-foreground relative max-w-62 rounded-md border p-3 shadow-md", "animate-in fade-in-0 zoom-in-95 duration-200 ease-out", t),
|
|
4956
|
-
children: [n && /* @__PURE__ */ X(
|
|
5059
|
+
children: [n && /* @__PURE__ */ X(Ta, { onClick: () => l.remove() }), e]
|
|
4957
5060
|
}), o);
|
|
4958
5061
|
}
|
|
4959
|
-
function
|
|
4960
|
-
let { marker: r, map: i } =
|
|
5062
|
+
function Da({ children: e, className: t, ...n }) {
|
|
5063
|
+
let { marker: r, map: i } = xa(), a = u(() => document.createElement("div"), []), o = d(n), c = u(() => new He.Popup({
|
|
4961
5064
|
offset: 16,
|
|
4962
5065
|
...n,
|
|
4963
5066
|
closeOnClick: !0,
|
|
@@ -4981,7 +5084,7 @@ function Ta({ children: e, className: t, ...n }) {
|
|
|
4981
5084
|
children: e
|
|
4982
5085
|
}), a);
|
|
4983
5086
|
}
|
|
4984
|
-
function
|
|
5087
|
+
function Oa({ children: e, className: t, position: n = "top" }) {
|
|
4985
5088
|
return /* @__PURE__ */ X("div", {
|
|
4986
5089
|
className: Q("absolute left-1/2 -translate-x-1/2 whitespace-nowrap", "text-foreground text-[10px] font-medium", {
|
|
4987
5090
|
top: "bottom-full mb-1",
|
|
@@ -4990,19 +5093,19 @@ function Ea({ children: e, className: t, position: n = "top" }) {
|
|
|
4990
5093
|
children: e
|
|
4991
5094
|
});
|
|
4992
5095
|
}
|
|
4993
|
-
var
|
|
5096
|
+
var ka = {
|
|
4994
5097
|
"top-left": "top-2 left-2",
|
|
4995
5098
|
"top-right": "top-2 right-2",
|
|
4996
5099
|
"bottom-left": "bottom-2 left-2",
|
|
4997
5100
|
"bottom-right": "bottom-10 right-2"
|
|
4998
5101
|
};
|
|
4999
|
-
function
|
|
5102
|
+
function Aa({ children: e }) {
|
|
5000
5103
|
return /* @__PURE__ */ X("div", {
|
|
5001
5104
|
className: "border-border bg-background [&>button:not(:last-child)]:border-border flex flex-col overflow-hidden rounded-md border shadow-sm [&>button:not(:last-child)]:border-b",
|
|
5002
5105
|
children: e
|
|
5003
5106
|
});
|
|
5004
5107
|
}
|
|
5005
|
-
function
|
|
5108
|
+
function ja({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
5006
5109
|
return /* @__PURE__ */ X("button", {
|
|
5007
5110
|
onClick: e,
|
|
5008
5111
|
"aria-label": t,
|
|
@@ -5012,7 +5115,7 @@ function ka({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
|
5012
5115
|
children: n
|
|
5013
5116
|
});
|
|
5014
5117
|
}
|
|
5015
|
-
function
|
|
5118
|
+
function Ma({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
5016
5119
|
let [i, a] = f(!1), o = d(null);
|
|
5017
5120
|
return s(() => {
|
|
5018
5121
|
if (!i) return;
|
|
@@ -5027,7 +5130,7 @@ function Aa({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
5027
5130
|
}, [i]), /* @__PURE__ */ Z("div", {
|
|
5028
5131
|
ref: o,
|
|
5029
5132
|
className: "relative",
|
|
5030
|
-
children: [/* @__PURE__ */ X(
|
|
5133
|
+
children: [/* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
5031
5134
|
onClick: () => a((e) => !e),
|
|
5032
5135
|
label: `Basemap: ${e[t]?.label ?? ""}`,
|
|
5033
5136
|
children: /* @__PURE__ */ X(z, { className: "size-4" })
|
|
@@ -5048,8 +5151,8 @@ function Aa({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
5048
5151
|
})]
|
|
5049
5152
|
});
|
|
5050
5153
|
}
|
|
5051
|
-
function
|
|
5052
|
-
let { map: d } =
|
|
5154
|
+
function Na({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !1, showLocate: r = !1, showFullscreen: i = !1, className: o, onLocate: s, tiles: c = [], tileIndex: l = 0, onTileChange: u }) {
|
|
5155
|
+
let { map: d } = ga(), [p, m] = f(!1), h = a(() => {
|
|
5053
5156
|
d?.zoomTo(d.getZoom() + 1, { duration: 300 });
|
|
5054
5157
|
}, [d]), g = a(() => {
|
|
5055
5158
|
d?.zoomTo(d.getZoom() - 1, { duration: 300 });
|
|
@@ -5074,31 +5177,31 @@ function ja({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
|
|
|
5074
5177
|
e && (document.fullscreenElement ? document.exitFullscreen() : e.requestFullscreen());
|
|
5075
5178
|
}, [d]);
|
|
5076
5179
|
return /* @__PURE__ */ Z("div", {
|
|
5077
|
-
className: Q("absolute z-10 flex flex-col gap-1.5",
|
|
5180
|
+
className: Q("absolute z-10 flex flex-col gap-1.5", ka[e], o),
|
|
5078
5181
|
children: [
|
|
5079
|
-
t && /* @__PURE__ */ Z(
|
|
5182
|
+
t && /* @__PURE__ */ Z(Aa, { children: [/* @__PURE__ */ X(ja, {
|
|
5080
5183
|
onClick: h,
|
|
5081
5184
|
label: "Zoom in",
|
|
5082
5185
|
children: /* @__PURE__ */ X(le, { className: "size-4" })
|
|
5083
|
-
}), /* @__PURE__ */ X(
|
|
5186
|
+
}), /* @__PURE__ */ X(ja, {
|
|
5084
5187
|
onClick: g,
|
|
5085
5188
|
label: "Zoom out",
|
|
5086
5189
|
children: /* @__PURE__ */ X(oe, { className: "size-4" })
|
|
5087
5190
|
})] }),
|
|
5088
|
-
c.length > 1 && /* @__PURE__ */ X(
|
|
5191
|
+
c.length > 1 && /* @__PURE__ */ X(Ma, {
|
|
5089
5192
|
tiles: c,
|
|
5090
5193
|
tileIndex: l,
|
|
5091
5194
|
onTileChange: u,
|
|
5092
5195
|
openLeft: e.endsWith("right")
|
|
5093
5196
|
}),
|
|
5094
|
-
n && /* @__PURE__ */ X(
|
|
5095
|
-
r && /* @__PURE__ */ X(
|
|
5197
|
+
n && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(Pa, { onClick: _ }) }),
|
|
5198
|
+
r && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
5096
5199
|
onClick: v,
|
|
5097
5200
|
label: "Find my location",
|
|
5098
5201
|
disabled: p,
|
|
5099
5202
|
children: p ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin" }) : /* @__PURE__ */ X(ae, { className: "size-4" })
|
|
5100
5203
|
}) }),
|
|
5101
|
-
i && /* @__PURE__ */ X(
|
|
5204
|
+
i && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
5102
5205
|
onClick: y,
|
|
5103
5206
|
label: "Toggle fullscreen",
|
|
5104
5207
|
children: /* @__PURE__ */ X(V, { className: "size-4" })
|
|
@@ -5106,8 +5209,8 @@ function ja({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
|
|
|
5106
5209
|
]
|
|
5107
5210
|
});
|
|
5108
5211
|
}
|
|
5109
|
-
function
|
|
5110
|
-
let { map: t } =
|
|
5212
|
+
function Pa({ onClick: e }) {
|
|
5213
|
+
let { map: t } = ga(), n = d(null);
|
|
5111
5214
|
return s(() => {
|
|
5112
5215
|
if (!t || !n.current) return;
|
|
5113
5216
|
let e = n.current, r = () => {
|
|
@@ -5117,7 +5220,7 @@ function Ma({ onClick: e }) {
|
|
|
5117
5220
|
return t.on("rotate", r), t.on("pitch", r), r(), () => {
|
|
5118
5221
|
t.off("rotate", r), t.off("pitch", r);
|
|
5119
5222
|
};
|
|
5120
|
-
}, [t]), /* @__PURE__ */ X(
|
|
5223
|
+
}, [t]), /* @__PURE__ */ X(ja, {
|
|
5121
5224
|
onClick: e,
|
|
5122
5225
|
label: "Reset bearing to north",
|
|
5123
5226
|
children: /* @__PURE__ */ Z("svg", {
|
|
@@ -5146,8 +5249,8 @@ function Ma({ onClick: e }) {
|
|
|
5146
5249
|
})
|
|
5147
5250
|
});
|
|
5148
5251
|
}
|
|
5149
|
-
function
|
|
5150
|
-
let { map: c } =
|
|
5252
|
+
function Fa({ longitude: e, latitude: t, onClose: n, children: r, className: i, closeButton: a = !1, ...o }) {
|
|
5253
|
+
let { map: c } = ga(), l = d(o), f = d(n);
|
|
5151
5254
|
f.current = n;
|
|
5152
5255
|
let p = u(() => document.createElement("div"), []), m = u(() => new He.Popup({
|
|
5153
5256
|
offset: 16,
|
|
@@ -5166,13 +5269,13 @@ function Na({ longitude: e, latitude: t, onClose: n, children: r, className: i,
|
|
|
5166
5269
|
}
|
|
5167
5270
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
5168
5271
|
className: Q("bg-popover text-popover-foreground relative max-w-62 rounded-md border p-3 shadow-md", "animate-in fade-in-0 zoom-in-95 duration-200 ease-out", i),
|
|
5169
|
-
children: [a && /* @__PURE__ */ X(
|
|
5272
|
+
children: [a && /* @__PURE__ */ X(Ta, { onClick: () => {
|
|
5170
5273
|
m.remove();
|
|
5171
5274
|
} }), r]
|
|
5172
5275
|
}), p);
|
|
5173
5276
|
}
|
|
5174
|
-
function
|
|
5175
|
-
let { map: f, isLoaded: p } =
|
|
5277
|
+
function Ia({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity: i = .8, dashArray: a, onClick: o, onMouseEnter: l, onMouseLeave: u, interactive: d = !0 }) {
|
|
5278
|
+
let { map: f, isLoaded: p } = ga(), m = c(), h = e ?? m, g = `route-source-${h}`, _ = `route-layer-${h}`;
|
|
5176
5279
|
return s(() => {
|
|
5177
5280
|
if (!(!p || !f)) return f.addSource(g, {
|
|
5178
5281
|
type: "geojson",
|
|
@@ -5251,15 +5354,15 @@ function Pa({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity
|
|
|
5251
5354
|
d
|
|
5252
5355
|
]), null;
|
|
5253
5356
|
}
|
|
5254
|
-
var
|
|
5357
|
+
var La = .2, Ra = 64, za = 12, Ba = 6, Va = {
|
|
5255
5358
|
"line-color": "#4285F4",
|
|
5256
5359
|
"line-width": 2,
|
|
5257
5360
|
"line-opacity": .85
|
|
5258
|
-
},
|
|
5361
|
+
}, Ha = {
|
|
5259
5362
|
"line-join": "round",
|
|
5260
5363
|
"line-cap": "round"
|
|
5261
5364
|
};
|
|
5262
|
-
function
|
|
5365
|
+
function Ua(e, t) {
|
|
5263
5366
|
if (!t) return e;
|
|
5264
5367
|
let n = { ...e };
|
|
5265
5368
|
for (let [e, r] of Object.entries(t)) {
|
|
@@ -5278,7 +5381,7 @@ function Va(e, t) {
|
|
|
5278
5381
|
}
|
|
5279
5382
|
return n;
|
|
5280
5383
|
}
|
|
5281
|
-
function
|
|
5384
|
+
function Wa(e, t, n, r) {
|
|
5282
5385
|
let [i, a] = e, [o, s] = t, c = o - i, l = s - a, u = Math.hypot(c, l);
|
|
5283
5386
|
if (u === 0 || n === 0) return [e, t];
|
|
5284
5387
|
let d = (i + o) / 2, f = (a + s) / 2, p = -l / u, m = c / u, h = u * n, g = d + p * h, _ = f + m * h, v = [], y = Math.max(2, Math.floor(r));
|
|
@@ -5288,16 +5391,16 @@ function Ha(e, t, n, r) {
|
|
|
5288
5391
|
}
|
|
5289
5392
|
return v;
|
|
5290
5393
|
}
|
|
5291
|
-
function
|
|
5292
|
-
let { map: h, isLoaded: g } =
|
|
5293
|
-
...
|
|
5394
|
+
function Ga({ data: e, id: t, curvature: n = La, samples: r = Ra, paint: i, layout: a, hoverPaint: o, onClick: l, onHover: f, interactive: p = !0, beforeId: m }) {
|
|
5395
|
+
let { map: h, isLoaded: g } = ga(), _ = c(), v = t ?? _, y = `arc-source-${v}`, b = `arc-layer-${v}`, x = `arc-hit-layer-${v}`, S = u(() => Ua({
|
|
5396
|
+
...Va,
|
|
5294
5397
|
...i
|
|
5295
5398
|
}, o), [i, o]), C = u(() => ({
|
|
5296
|
-
...
|
|
5399
|
+
...Ha,
|
|
5297
5400
|
...a
|
|
5298
5401
|
}), [a]), w = u(() => {
|
|
5299
|
-
let e = i?.["line-width"] ??
|
|
5300
|
-
return Math.max((typeof e == "number" ? e :
|
|
5402
|
+
let e = i?.["line-width"] ?? Va["line-width"];
|
|
5403
|
+
return Math.max((typeof e == "number" ? e : za) + Ba, za);
|
|
5301
5404
|
}, [i]), T = u(() => ({
|
|
5302
5405
|
type: "FeatureCollection",
|
|
5303
5406
|
features: e.map((e) => {
|
|
@@ -5307,7 +5410,7 @@ function Ua({ data: e, id: t, curvature: n = Fa, samples: r = Ia, paint: i, layo
|
|
|
5307
5410
|
properties: a,
|
|
5308
5411
|
geometry: {
|
|
5309
5412
|
type: "LineString",
|
|
5310
|
-
coordinates:
|
|
5413
|
+
coordinates: Wa(t, i, n, r)
|
|
5311
5414
|
}
|
|
5312
5415
|
};
|
|
5313
5416
|
})
|
|
@@ -5333,7 +5436,7 @@ function Ua({ data: e, id: t, curvature: n = Fa, samples: r = Ia, paint: i, layo
|
|
|
5333
5436
|
id: x,
|
|
5334
5437
|
type: "line",
|
|
5335
5438
|
source: y,
|
|
5336
|
-
layout:
|
|
5439
|
+
layout: Ha,
|
|
5337
5440
|
paint: {
|
|
5338
5441
|
"line-color": "rgba(0, 0, 0, 0)",
|
|
5339
5442
|
"line-width": w,
|
|
@@ -5416,12 +5519,12 @@ function Ua({ data: e, id: t, curvature: n = Fa, samples: r = Ia, paint: i, layo
|
|
|
5416
5519
|
p
|
|
5417
5520
|
]), null;
|
|
5418
5521
|
}
|
|
5419
|
-
function
|
|
5522
|
+
function Ka({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterColors: r = [
|
|
5420
5523
|
"#22c55e",
|
|
5421
5524
|
"#eab308",
|
|
5422
5525
|
"#ef4444"
|
|
5423
5526
|
], clusterThresholds: i = [100, 750], pointColor: a = "#3b82f6", onPointClick: o, onClusterClick: l }) {
|
|
5424
|
-
let { map: u, isLoaded: f } =
|
|
5527
|
+
let { map: u, isLoaded: f } = ga(), p = c(), m = `cluster-source-${p}`, h = `clusters-${p}`, g = `cluster-count-${p}`, _ = `unclustered-point-${p}`, v = d({
|
|
5425
5528
|
clusterColors: r,
|
|
5426
5529
|
clusterThresholds: i,
|
|
5427
5530
|
pointColor: a
|
|
@@ -5576,7 +5679,7 @@ function Wa({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterCol
|
|
|
5576
5679
|
}
|
|
5577
5680
|
//#endregion
|
|
5578
5681
|
//#region src/components/ui/progress.tsx
|
|
5579
|
-
function
|
|
5682
|
+
function qa({ className: e, value: t, ...n }) {
|
|
5580
5683
|
return /* @__PURE__ */ X(Te.Root, {
|
|
5581
5684
|
"data-slot": "progress",
|
|
5582
5685
|
className: Q("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", e),
|
|
@@ -5590,7 +5693,7 @@ function Ga({ className: e, value: t, ...n }) {
|
|
|
5590
5693
|
}
|
|
5591
5694
|
//#endregion
|
|
5592
5695
|
//#region src/components/ui/slider.tsx
|
|
5593
|
-
function
|
|
5696
|
+
function Ja({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
|
|
5594
5697
|
let s = n.useMemo(() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, a], [
|
|
5595
5698
|
r,
|
|
5596
5699
|
t,
|
|
@@ -5620,14 +5723,14 @@ function Ka({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
|
|
|
5620
5723
|
}
|
|
5621
5724
|
//#endregion
|
|
5622
5725
|
//#region src/components/ui/sonner.tsx
|
|
5623
|
-
var
|
|
5726
|
+
var Ya = ({ ...e }) => {
|
|
5624
5727
|
let { theme: t = "system" } = We();
|
|
5625
5728
|
return /* @__PURE__ */ X(Ge, {
|
|
5626
5729
|
theme: t,
|
|
5627
5730
|
className: "toaster group",
|
|
5628
5731
|
icons: {
|
|
5629
5732
|
success: /* @__PURE__ */ X(E, { className: "size-4" }),
|
|
5630
|
-
info: /* @__PURE__ */ X(
|
|
5733
|
+
info: /* @__PURE__ */ X(R, { className: "size-4" }),
|
|
5631
5734
|
warning: /* @__PURE__ */ X(_e, { className: "size-4" }),
|
|
5632
5735
|
error: /* @__PURE__ */ X(se, { className: "size-4" }),
|
|
5633
5736
|
loading: /* @__PURE__ */ X(B, { className: "size-4 animate-spin" })
|
|
@@ -5641,20 +5744,20 @@ var qa = ({ ...e }) => {
|
|
|
5641
5744
|
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
5642
5745
|
...e
|
|
5643
5746
|
});
|
|
5644
|
-
},
|
|
5645
|
-
let e = o(
|
|
5747
|
+
}, Xa = r(void 0), Za = r(void 0), Qa = () => {
|
|
5748
|
+
let e = o(Xa);
|
|
5646
5749
|
if (!e) throw Error("useStepper must be used within a Stepper");
|
|
5647
5750
|
return e;
|
|
5648
|
-
},
|
|
5649
|
-
let e = o(
|
|
5751
|
+
}, $a = () => {
|
|
5752
|
+
let e = o(Za);
|
|
5650
5753
|
if (!e) throw Error("useStepItem must be used within a StepperItem");
|
|
5651
5754
|
return e;
|
|
5652
5755
|
};
|
|
5653
|
-
function
|
|
5756
|
+
function eo({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i = "horizontal", className: a, ...o }) {
|
|
5654
5757
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5655
5758
|
t === void 0 && c(e), r?.(e);
|
|
5656
5759
|
}, [t, r]), u = t ?? s;
|
|
5657
|
-
return /* @__PURE__ */ X(
|
|
5760
|
+
return /* @__PURE__ */ X(Xa.Provider, {
|
|
5658
5761
|
value: {
|
|
5659
5762
|
activeStep: u,
|
|
5660
5763
|
orientation: i,
|
|
@@ -5668,9 +5771,9 @@ function Qa({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i =
|
|
|
5668
5771
|
})
|
|
5669
5772
|
});
|
|
5670
5773
|
}
|
|
5671
|
-
function
|
|
5672
|
-
let { activeStep: s } =
|
|
5673
|
-
return /* @__PURE__ */ X(
|
|
5774
|
+
function to({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, className: i, children: a, ...o }) {
|
|
5775
|
+
let { activeStep: s } = Qa(), c = t || e < s ? "completed" : s === e ? "active" : "inactive", l = r && e === s;
|
|
5776
|
+
return /* @__PURE__ */ X(Za.Provider, {
|
|
5674
5777
|
value: {
|
|
5675
5778
|
isDisabled: n,
|
|
5676
5779
|
isLoading: l,
|
|
@@ -5687,8 +5790,8 @@ function $a({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, cla
|
|
|
5687
5790
|
})
|
|
5688
5791
|
});
|
|
5689
5792
|
}
|
|
5690
|
-
function
|
|
5691
|
-
let { setActiveStep: i } =
|
|
5793
|
+
function no({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5794
|
+
let { setActiveStep: i } = Qa(), { step: a, isDisabled: o } = $a();
|
|
5692
5795
|
return e ? /* @__PURE__ */ X(e ? ke.Root : "span", {
|
|
5693
5796
|
className: t,
|
|
5694
5797
|
"data-slot": "stepper-trigger",
|
|
@@ -5703,8 +5806,8 @@ function eo({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5703
5806
|
children: n
|
|
5704
5807
|
});
|
|
5705
5808
|
}
|
|
5706
|
-
function
|
|
5707
|
-
let { state: i, step: a, isLoading: o } =
|
|
5809
|
+
function ro({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5810
|
+
let { state: i, step: a, isLoading: o } = $a();
|
|
5708
5811
|
return /* @__PURE__ */ X("span", {
|
|
5709
5812
|
className: Q("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-muted font-medium text-muted-foreground text-xs data-[state=active]:bg-primary data-[state=completed]:bg-primary data-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground", t),
|
|
5710
5813
|
"data-slot": "stepper-indicator",
|
|
@@ -5731,21 +5834,21 @@ function to({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5731
5834
|
] })
|
|
5732
5835
|
});
|
|
5733
5836
|
}
|
|
5734
|
-
function
|
|
5837
|
+
function io({ className: e, ...t }) {
|
|
5735
5838
|
return /* @__PURE__ */ X("h3", {
|
|
5736
5839
|
className: Q("font-medium text-sm", e),
|
|
5737
5840
|
"data-slot": "stepper-title",
|
|
5738
5841
|
...t
|
|
5739
5842
|
});
|
|
5740
5843
|
}
|
|
5741
|
-
function
|
|
5844
|
+
function ao({ className: e, ...t }) {
|
|
5742
5845
|
return /* @__PURE__ */ X("p", {
|
|
5743
5846
|
className: Q("text-muted-foreground text-sm", e),
|
|
5744
5847
|
"data-slot": "stepper-description",
|
|
5745
5848
|
...t
|
|
5746
5849
|
});
|
|
5747
5850
|
}
|
|
5748
|
-
function
|
|
5851
|
+
function oo({ className: e, ...t }) {
|
|
5749
5852
|
return /* @__PURE__ */ X("div", {
|
|
5750
5853
|
className: Q("m-0.5 bg-muted group-data-[orientation=horizontal]/stepper:h-0.5 group-data-[orientation=vertical]/stepper:h-12 group-data-[orientation=horizontal]/stepper:w-full group-data-[orientation=vertical]/stepper:w-0.5 group-data-[orientation=horizontal]/stepper:flex-1 group-data-[state=completed]/step:bg-primary", e),
|
|
5751
5854
|
"data-slot": "stepper-separator",
|
|
@@ -5754,7 +5857,7 @@ function io({ className: e, ...t }) {
|
|
|
5754
5857
|
}
|
|
5755
5858
|
//#endregion
|
|
5756
5859
|
//#region src/components/ui/switch.tsx
|
|
5757
|
-
function
|
|
5860
|
+
function so({ className: e, size: t = "default", ...n }) {
|
|
5758
5861
|
return /* @__PURE__ */ X(Ae.Root, {
|
|
5759
5862
|
"data-slot": "switch",
|
|
5760
5863
|
"data-size": t,
|
|
@@ -5768,7 +5871,7 @@ function ao({ className: e, size: t = "default", ...n }) {
|
|
|
5768
5871
|
}
|
|
5769
5872
|
//#endregion
|
|
5770
5873
|
//#region src/components/ui/tabs.tsx
|
|
5771
|
-
function
|
|
5874
|
+
function co({ className: e, orientation: t = "horizontal", ...n }) {
|
|
5772
5875
|
return /* @__PURE__ */ X(je.Root, {
|
|
5773
5876
|
"data-slot": "tabs",
|
|
5774
5877
|
"data-orientation": t,
|
|
@@ -5776,29 +5879,29 @@ function oo({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
5776
5879
|
...n
|
|
5777
5880
|
});
|
|
5778
5881
|
}
|
|
5779
|
-
var
|
|
5882
|
+
var lo = W("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
5780
5883
|
variants: { variant: {
|
|
5781
5884
|
default: "bg-muted",
|
|
5782
5885
|
line: "gap-1 bg-transparent"
|
|
5783
5886
|
} },
|
|
5784
5887
|
defaultVariants: { variant: "default" }
|
|
5785
5888
|
});
|
|
5786
|
-
function
|
|
5889
|
+
function uo({ className: e, variant: t = "default", ...n }) {
|
|
5787
5890
|
return /* @__PURE__ */ X(je.List, {
|
|
5788
5891
|
"data-slot": "tabs-list",
|
|
5789
5892
|
"data-variant": t,
|
|
5790
|
-
className: Q(
|
|
5893
|
+
className: Q(lo({ variant: t }), e),
|
|
5791
5894
|
...n
|
|
5792
5895
|
});
|
|
5793
5896
|
}
|
|
5794
|
-
function
|
|
5897
|
+
function fo({ className: e, ...t }) {
|
|
5795
5898
|
return /* @__PURE__ */ X(je.Trigger, {
|
|
5796
5899
|
"data-slot": "tabs-trigger",
|
|
5797
5900
|
className: Q("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
5798
5901
|
...t
|
|
5799
5902
|
});
|
|
5800
5903
|
}
|
|
5801
|
-
function
|
|
5904
|
+
function po({ className: e, ...t }) {
|
|
5802
5905
|
return /* @__PURE__ */ X(je.Content, {
|
|
5803
5906
|
"data-slot": "tabs-content",
|
|
5804
5907
|
className: Q("flex-1 text-sm outline-none", e),
|
|
@@ -5807,16 +5910,16 @@ function uo({ className: e, ...t }) {
|
|
|
5807
5910
|
}
|
|
5808
5911
|
//#endregion
|
|
5809
5912
|
//#region src/components/ui/timeline.tsx
|
|
5810
|
-
var
|
|
5811
|
-
let e = n.useContext(
|
|
5913
|
+
var mo = n.createContext(void 0), ho = () => {
|
|
5914
|
+
let e = n.useContext(mo);
|
|
5812
5915
|
if (!e) throw Error("useTimeline must be used within a Timeline");
|
|
5813
5916
|
return e;
|
|
5814
5917
|
};
|
|
5815
|
-
function
|
|
5918
|
+
function go({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i = "vertical", className: a, ...o }) {
|
|
5816
5919
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5817
5920
|
t === void 0 && c(e), r?.(e);
|
|
5818
5921
|
}, [t, r]), u = t ?? s;
|
|
5819
|
-
return /* @__PURE__ */ X(
|
|
5922
|
+
return /* @__PURE__ */ X(mo.Provider, {
|
|
5820
5923
|
value: {
|
|
5821
5924
|
activeStep: u,
|
|
5822
5925
|
setActiveStep: l
|
|
@@ -5829,28 +5932,28 @@ function mo({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i =
|
|
|
5829
5932
|
})
|
|
5830
5933
|
});
|
|
5831
5934
|
}
|
|
5832
|
-
function
|
|
5935
|
+
function _o({ className: e, ...t }) {
|
|
5833
5936
|
return /* @__PURE__ */ X("div", {
|
|
5834
5937
|
className: Q("text-muted-foreground text-sm", e),
|
|
5835
5938
|
"data-slot": "timeline-content",
|
|
5836
5939
|
...t
|
|
5837
5940
|
});
|
|
5838
5941
|
}
|
|
5839
|
-
function
|
|
5942
|
+
function vo({ asChild: e = !1, className: t, ...n }) {
|
|
5840
5943
|
return /* @__PURE__ */ X(e ? ke.Root : "time", {
|
|
5841
5944
|
className: Q("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", t),
|
|
5842
5945
|
"data-slot": "timeline-date",
|
|
5843
5946
|
...n
|
|
5844
5947
|
});
|
|
5845
5948
|
}
|
|
5846
|
-
function
|
|
5949
|
+
function yo({ className: e, ...t }) {
|
|
5847
5950
|
return /* @__PURE__ */ X("div", {
|
|
5848
5951
|
className: Q(e),
|
|
5849
5952
|
"data-slot": "timeline-header",
|
|
5850
5953
|
...t
|
|
5851
5954
|
});
|
|
5852
5955
|
}
|
|
5853
|
-
function
|
|
5956
|
+
function bo({ className: e, children: t, ...n }) {
|
|
5854
5957
|
return /* @__PURE__ */ X("div", {
|
|
5855
5958
|
"aria-hidden": "true",
|
|
5856
5959
|
className: Q("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute size-4 rounded-full border-2 border-primary/20 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=horizontal]/timeline:left-0 group-data-completed/timeline-item:border-primary", e),
|
|
@@ -5859,8 +5962,8 @@ function vo({ className: e, children: t, ...n }) {
|
|
|
5859
5962
|
children: t
|
|
5860
5963
|
});
|
|
5861
5964
|
}
|
|
5862
|
-
function
|
|
5863
|
-
let { activeStep: r } =
|
|
5965
|
+
function xo({ step: e, className: t, ...n }) {
|
|
5966
|
+
let { activeStep: r } = ho();
|
|
5864
5967
|
return /* @__PURE__ */ X("div", {
|
|
5865
5968
|
className: Q("group/timeline-item relative flex flex-1 flex-col gap-0.5 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:not-last:pb-12 has-[+[data-completed]]:[&_[data-slot=timeline-separator]]:bg-primary", t),
|
|
5866
5969
|
"data-completed": e <= r || void 0,
|
|
@@ -5868,7 +5971,7 @@ function yo({ step: e, className: t, ...n }) {
|
|
|
5868
5971
|
...n
|
|
5869
5972
|
});
|
|
5870
5973
|
}
|
|
5871
|
-
function
|
|
5974
|
+
function So({ className: e, ...t }) {
|
|
5872
5975
|
return /* @__PURE__ */ X("div", {
|
|
5873
5976
|
"aria-hidden": "true",
|
|
5874
5977
|
className: Q("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute self-start bg-primary/10 group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=vertical]/timeline:translate-y-4.5", e),
|
|
@@ -5876,7 +5979,7 @@ function bo({ className: e, ...t }) {
|
|
|
5876
5979
|
...t
|
|
5877
5980
|
});
|
|
5878
5981
|
}
|
|
5879
|
-
function
|
|
5982
|
+
function Co({ className: e, ...t }) {
|
|
5880
5983
|
return /* @__PURE__ */ X("h3", {
|
|
5881
5984
|
className: Q("font-medium text-sm", e),
|
|
5882
5985
|
"data-slot": "timeline-title",
|
|
@@ -5885,7 +5988,7 @@ function xo({ className: e, ...t }) {
|
|
|
5885
5988
|
}
|
|
5886
5989
|
//#endregion
|
|
5887
5990
|
//#region src/components/ui/toggle.tsx
|
|
5888
|
-
var
|
|
5991
|
+
var wo = W("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
5889
5992
|
variants: {
|
|
5890
5993
|
variant: {
|
|
5891
5994
|
default: "bg-transparent",
|
|
@@ -5902,10 +6005,10 @@ var So = W("group/toggle inline-flex items-center justify-center gap-1 rounded-l
|
|
|
5902
6005
|
size: "default"
|
|
5903
6006
|
}
|
|
5904
6007
|
});
|
|
5905
|
-
function
|
|
6008
|
+
function To({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
5906
6009
|
return /* @__PURE__ */ X(Me.Root, {
|
|
5907
6010
|
"data-slot": "toggle",
|
|
5908
|
-
className: Q(
|
|
6011
|
+
className: Q(wo({
|
|
5909
6012
|
variant: t,
|
|
5910
6013
|
size: n,
|
|
5911
6014
|
className: e
|
|
@@ -5915,13 +6018,13 @@ function Co({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
5915
6018
|
}
|
|
5916
6019
|
//#endregion
|
|
5917
6020
|
//#region src/components/ui/toggle-group.tsx
|
|
5918
|
-
var
|
|
6021
|
+
var Eo = n.createContext({
|
|
5919
6022
|
size: "default",
|
|
5920
6023
|
variant: "default",
|
|
5921
6024
|
spacing: 2,
|
|
5922
6025
|
orientation: "horizontal"
|
|
5923
6026
|
});
|
|
5924
|
-
function
|
|
6027
|
+
function Do({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
|
|
5925
6028
|
return /* @__PURE__ */ X(Ne.Root, {
|
|
5926
6029
|
"data-slot": "toggle-group",
|
|
5927
6030
|
"data-variant": t,
|
|
@@ -5931,7 +6034,7 @@ function To({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5931
6034
|
style: { "--gap": r },
|
|
5932
6035
|
className: Q("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch", e),
|
|
5933
6036
|
...o,
|
|
5934
|
-
children: /* @__PURE__ */ X(
|
|
6037
|
+
children: /* @__PURE__ */ X(Eo.Provider, {
|
|
5935
6038
|
value: {
|
|
5936
6039
|
variant: t,
|
|
5937
6040
|
size: n,
|
|
@@ -5942,14 +6045,14 @@ function To({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5942
6045
|
})
|
|
5943
6046
|
});
|
|
5944
6047
|
}
|
|
5945
|
-
function
|
|
5946
|
-
let o = n.useContext(
|
|
6048
|
+
function Oo({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
|
|
6049
|
+
let o = n.useContext(Eo);
|
|
5947
6050
|
return /* @__PURE__ */ X(Ne.Item, {
|
|
5948
6051
|
"data-slot": "toggle-group-item",
|
|
5949
6052
|
"data-variant": o.variant || r,
|
|
5950
6053
|
"data-size": o.size || i,
|
|
5951
6054
|
"data-spacing": o.spacing,
|
|
5952
|
-
className: Q("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
6055
|
+
className: Q("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", wo({
|
|
5953
6056
|
variant: o.variant || r,
|
|
5954
6057
|
size: o.size || i
|
|
5955
6058
|
}), e),
|
|
@@ -5959,26 +6062,26 @@ function Eo({ className: e, children: t, variant: r = "default", size: i = "defa
|
|
|
5959
6062
|
}
|
|
5960
6063
|
//#endregion
|
|
5961
6064
|
//#region src/components/ui/tooltip.tsx
|
|
5962
|
-
function
|
|
6065
|
+
function ko({ delayDuration: e = 0, ...t }) {
|
|
5963
6066
|
return /* @__PURE__ */ X(Pe.Provider, {
|
|
5964
6067
|
"data-slot": "tooltip-provider",
|
|
5965
6068
|
delayDuration: e,
|
|
5966
6069
|
...t
|
|
5967
6070
|
});
|
|
5968
6071
|
}
|
|
5969
|
-
function
|
|
6072
|
+
function Ao({ ...e }) {
|
|
5970
6073
|
return /* @__PURE__ */ X(Pe.Root, {
|
|
5971
6074
|
"data-slot": "tooltip",
|
|
5972
6075
|
...e
|
|
5973
6076
|
});
|
|
5974
6077
|
}
|
|
5975
|
-
function
|
|
6078
|
+
function jo({ ...e }) {
|
|
5976
6079
|
return /* @__PURE__ */ X(Pe.Trigger, {
|
|
5977
6080
|
"data-slot": "tooltip-trigger",
|
|
5978
6081
|
...e
|
|
5979
6082
|
});
|
|
5980
6083
|
}
|
|
5981
|
-
function
|
|
6084
|
+
function Mo({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
5982
6085
|
return /* @__PURE__ */ X(Pe.Portal, { children: /* @__PURE__ */ Z(Pe.Content, {
|
|
5983
6086
|
"data-slot": "tooltip-content",
|
|
5984
6087
|
sideOffset: t,
|
|
@@ -5988,6 +6091,6 @@ function Ao({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
5988
6091
|
}) });
|
|
5989
6092
|
}
|
|
5990
6093
|
//#endregion
|
|
5991
|
-
export { pt as ActionsMenu,
|
|
6094
|
+
export { pt as ActionsMenu, mn as AdvancedInput, Dn as AdvancedSelect, Ni as Alert, Ii as AlertAction, bn as AlertCard, xn as AlertCardAction, Fi as AlertDescription, Kn as AlertDialog, nr as AlertDialogAction, rr as AlertDialogCancel, Xn as AlertDialogContent, tr as AlertDialogDescription, Qn as AlertDialogFooter, Zn as AlertDialogHeader, $n as AlertDialogMedia, Yn as AlertDialogOverlay, Jn as AlertDialogPortal, er as AlertDialogTitle, qn as AlertDialogTrigger, Pi as AlertTitle, ht as Badge, $ as Button, Ri as ButtonGroup, Bi as ButtonGroupSeparator, zi as ButtonGroupText, bi as Calendar, xi as CalendarDayButton, Mr as Card, Ir as CardAction, Lr as CardContent, Fr as CardDescription, Rr as CardFooter, Nr as CardHeader, Hn as CardRadioGroup, Pr as CardTitle, Gi as ChartContainer, Yi as ChartLegend, Xi as ChartLegendContent, Ki as ChartStyle, qi as ChartTooltip, Ji as ChartTooltipContent, On as Checkbox, Gn as ColorPicker, Yt as Command, Xt as CommandDialog, $t as CommandEmpty, en as CommandGroup, Zt as CommandInput, nn as CommandItem, Qt as CommandList, tn as CommandSeparator, rn as CommandShortcut, ir as ConfirmPrompt, ar as CustomTabs, sr as DataCell, Rn as DataTable, Ai as DateTimePicker, ji as DateTimeRangePicker, cr as DefRow, kt as Dialog, Mt as DialogClose, Pt as DialogContent, Rt as DialogDescription, It as DialogFooter, Ft as DialogHeader, Nt as DialogOverlay, jt as DialogPortal, Lt as DialogTitle, At as DialogTrigger, pr as Divider, Xe as DropdownMenu, nt as DropdownMenuCheckboxItem, $e as DropdownMenuContent, et as DropdownMenuGroup, tt as DropdownMenuItem, at as DropdownMenuLabel, Ze as DropdownMenuPortal, rt as DropdownMenuRadioGroup, it as DropdownMenuRadioItem, ot as DropdownMenuSeparator, st as DropdownMenuShortcut, ct as DropdownMenuSub, ut as DropdownMenuSubContent, lt as DropdownMenuSubTrigger, Qe as DropdownMenuTrigger, mr as Empty, br as EmptyContent, yr as EmptyDescription, hr as EmptyHeader, _r as EmptyMedia, xr as EmptyState, vr as EmptyTitle, Sr as FacetedFilter, St as Field, Ct as FieldContent, Et as FieldDescription, Ot as FieldError, bt as FieldGroup, wt as FieldLabel, yt as FieldLegend, Dt as FieldSeparator, vt as FieldSet, Tt as FieldTitle, Tn as FileUpload, zn as FormDialog, Qi as HoverCard, ea as HoverCardContent, $i as HoverCardTrigger, zt as Input, Vt as InputGroup, Ut as InputGroupAddon, Gt as InputGroupButton, qt as InputGroupInput, Kt as InputGroupText, Jt as InputGroupTextarea, ia as Item, ua as ItemActions, sa as ItemContent, la as ItemDescription, fa as ItemFooter, ta as ItemGroup, da as ItemHeader, oa as ItemMedia, na as ItemSeparator, ca as ItemTitle, gt as Label, Tr as ListCard, wr as ListCardChip, Dr as ListCardGrid, Cr as ListCardPerson, ya as Map, Ga as MapArc, Ka as MapClusterLayer, Na as MapControls, Sa as MapMarker, Or as MapMarkerPin, Fa as MapPopup, Ia as MapRoute, Ca as MarkerContent, Oa as MarkerLabel, Ea as MarkerPopup, Da as MarkerTooltip, kr as NotFound, fn as PHONE_COUNTRIES, vn as PhoneInput, an as Popover, cn as PopoverAnchor, sn as PopoverContent, dn as PopoverDescription, ln as PopoverHeader, un as PopoverTitle, on as PopoverTrigger, qa as Progress, Ar as QuickStat, Bn as RadioGroup, Vn as RadioGroupItem, ui as Select, mi as SelectContent, di as SelectGroup, gi as SelectItem, hi as SelectLabel, yi as SelectScrollDownButton, vi as SelectScrollUpButton, _i as SelectSeparator, pi as SelectTrigger, fi as SelectValue, Br as SensorCard, _t as Separator, Vr as Sheet, Ur as SheetClose, Kr as SheetContent, Xr as SheetDescription, Jr as SheetFooter, qr as SheetHeader, Yr as SheetTitle, Hr as SheetTrigger, Zr as SideSheet, Qr as SideSheetSection, Ja as Slider, Je as Spinner, ti as StatCard, oi as StatusAvatar, ai as StatusIcon, si as StatusList, ci as StatusListGroup, li as StatusListItem, eo as Stepper, ao as StepperDescription, ro as StepperIndicator, to as StepperItem, oo as StepperSeparator, io as StepperTitle, no as StepperTrigger, so as Switch, kn as Table, jn as TableBody, In as TableCaption, Fn as TableCell, Mn as TableFooter, Pn as TableHead, An as TableHeader, Nn as TableRow, co as Tabs, po as TabsContent, uo as TabsList, fo as TabsTrigger, Bt as Textarea, go as Timeline, _o as TimelineContent, vo as TimelineDate, yo as TimelineHeader, bo as TimelineIndicator, xo as TimelineItem, So as TimelineSeparator, Co as TimelineTitle, Ya as Toaster, To as Toggle, Do as ToggleGroup, Oo as ToggleGroupItem, Ao as Tooltip, Mo as TooltipContent, ko as TooltipProvider, jo as TooltipTrigger, mt as badgeVariants, Li as buttonGroupVariants, Ye as buttonVariants, jr as cardVariants, Q as cn, lr as dividerVariants, Ke as formatBytes, Di as navigateRange, Ei as presetToRange, lo as tabsListVariants, wo as toggleVariants, qe as useFileUpload, ga as useMap };
|
|
5992
6095
|
|
|
5993
6096
|
//# sourceMappingURL=index.js.map
|