florixui 1.9.0 → 1.11.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 +11 -1
- package/dist/components/custom/advanced-input.d.ts +24 -1
- package/dist/components/custom/divider.d.ts +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +925 -652
- 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 ee, FileArchiveIcon as j, FileIcon as M, FileSpreadsheetIcon as N, FileTextIcon as P, HeadphonesIcon as F, HomeIcon as I, ImageIcon as L, ImageUpIcon as te, InboxIcon as R, InfoIcon 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 ee, FileArchiveIcon as j, FileIcon as M, FileSpreadsheetIcon as N, FileTextIcon as P, HeadphonesIcon as F, HomeIcon as I, ImageIcon as L, ImageUpIcon as te, InboxIcon as R, InfoIcon as ne, 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";
|
|
@@ -191,7 +191,7 @@ var Ke = (e, t = 2) => {
|
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/components/ui/spinner.tsx
|
|
193
193
|
function Je({ className: e, ...t }) {
|
|
194
|
-
return /* @__PURE__ */ X(
|
|
194
|
+
return /* @__PURE__ */ X(B, {
|
|
195
195
|
role: "status",
|
|
196
196
|
"aria-label": "Loading",
|
|
197
197
|
className: Q("size-4 animate-spin", e),
|
|
@@ -376,7 +376,7 @@ var dt = 16;
|
|
|
376
376
|
function ft(e) {
|
|
377
377
|
return e.type === void 0 || e.type === "action";
|
|
378
378
|
}
|
|
379
|
-
function pt({ items: e, trigger: t, triggerIcon: n =
|
|
379
|
+
function pt({ items: e, trigger: t, triggerIcon: n = H, triggerLabel: r = "Open menu", width: i = "10rem", align: a = "end", className: o, open: s, onOpenChange: c }) {
|
|
380
380
|
return /* @__PURE__ */ Z(Xe, {
|
|
381
381
|
open: s,
|
|
382
382
|
onOpenChange: c,
|
|
@@ -415,8 +415,39 @@ function pt({ items: e, trigger: t, triggerIcon: n = U, 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,
|
|
@@ -579,7 +610,7 @@ function Mt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
579
610
|
variant: "ghost",
|
|
580
611
|
className: "absolute top-2 right-2",
|
|
581
612
|
size: "icon-sm",
|
|
582
|
-
children: [/* @__PURE__ */ X(
|
|
613
|
+
children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
|
|
583
614
|
className: "sr-only",
|
|
584
615
|
children: "Close"
|
|
585
616
|
})]
|
|
@@ -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,7 +1148,8 @@ function dn({ error: e, errorMessage: t, helperText: n, errorId: r, helperId: i
|
|
|
1117
1148
|
}) : null
|
|
1118
1149
|
});
|
|
1119
1150
|
}
|
|
1120
|
-
var
|
|
1151
|
+
var mn = n.forwardRef(function(e, t) {
|
|
1152
|
+
if (e.as === "tags") return /* @__PURE__ */ X(gn, { ...e });
|
|
1121
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`, j = [
|
|
1122
1154
|
S && s ? D : null,
|
|
1123
1155
|
!S && c ? O : null,
|
|
@@ -1132,7 +1164,7 @@ 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
1170
|
children: [a, N]
|
|
@@ -1146,49 +1178,49 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1146
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", M, "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: P, onFocus: F, ...I } = x, L = P ?? "text", te = L === "password", R = te && T ? "text" : L,
|
|
1195
|
+
let { type: P, onFocus: F, ...I } = x, L = P ?? "text", te = L === "password", R = te && T ? "text" : L, ne = te ? /* @__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
1201
|
children: X(T ? ee : A, { className: "size-4" })
|
|
1170
|
-
}) : null,
|
|
1202
|
+
}) : null, z = _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" }) : f, B = te ? ne : p, ie = (e) => {
|
|
1171
1203
|
R === "number" && e.target.select(), F?.(e);
|
|
1172
|
-
},
|
|
1204
|
+
}, ae = !!(h || g), V = /* @__PURE__ */ X("input", {
|
|
1173
1205
|
id: w,
|
|
1174
1206
|
type: R,
|
|
1175
1207
|
ref: t,
|
|
1176
1208
|
disabled: m,
|
|
1177
1209
|
"aria-invalid": S,
|
|
1178
1210
|
"aria-describedby": j,
|
|
1179
|
-
onFocus:
|
|
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",
|
|
1211
|
+
onFocus: ie,
|
|
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", M, 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),
|
|
1181
1213
|
...I
|
|
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
1221
|
children: [a, N]
|
|
1190
1222
|
}),
|
|
1191
|
-
|
|
1223
|
+
ae ? /* @__PURE__ */ Z("div", {
|
|
1192
1224
|
"aria-invalid": S,
|
|
1193
1225
|
className: Q("flex items-center overflow-hidden rounded-lg border border-input transition-colors", M, 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: [
|
|
@@ -1199,14 +1231,14 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1199
1231
|
/* @__PURE__ */ Z("div", {
|
|
1200
1232
|
className: "relative flex h-full flex-1 items-center",
|
|
1201
1233
|
children: [
|
|
1202
|
-
|
|
1234
|
+
z && /* @__PURE__ */ X("div", {
|
|
1203
1235
|
className: "pointer-events-none absolute left-3 flex items-center text-muted-foreground [&_svg]:size-4",
|
|
1204
|
-
children:
|
|
1236
|
+
children: z
|
|
1205
1237
|
}),
|
|
1206
|
-
|
|
1207
|
-
|
|
1238
|
+
V,
|
|
1239
|
+
B && /* @__PURE__ */ X("div", {
|
|
1208
1240
|
className: "absolute right-3 z-10 flex items-center",
|
|
1209
|
-
children:
|
|
1241
|
+
children: B
|
|
1210
1242
|
})
|
|
1211
1243
|
]
|
|
1212
1244
|
}),
|
|
@@ -1218,38 +1250,126 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1218
1250
|
}) : /* @__PURE__ */ Z("div", {
|
|
1219
1251
|
className: "relative",
|
|
1220
1252
|
children: [
|
|
1221
|
-
|
|
1253
|
+
z && /* @__PURE__ */ X("div", {
|
|
1222
1254
|
className: "pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:size-4",
|
|
1223
|
-
children:
|
|
1255
|
+
children: z
|
|
1224
1256
|
}),
|
|
1225
|
-
|
|
1226
|
-
|
|
1257
|
+
V,
|
|
1258
|
+
B && /* @__PURE__ */ X("div", {
|
|
1227
1259
|
className: "absolute right-3 top-1/2 z-10 flex -translate-y-1/2 items-center",
|
|
1228
|
-
children:
|
|
1260
|
+
children: B
|
|
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", ee = (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
|
+
}, j = () => {
|
|
1301
|
+
b.trim() && (ee(b), x(""));
|
|
1302
|
+
}, M = (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: () => M(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) => ee(e)), x(n);
|
|
1332
|
+
} else x(t);
|
|
1333
|
+
},
|
|
1334
|
+
onKeyDown: (t) => {
|
|
1335
|
+
p.includes(t.key) ? (t.preventDefault(), j()) : t.key === "Backspace" && b === "" && e.length > 0 && M(e.length - 1);
|
|
1336
|
+
},
|
|
1337
|
+
onBlur: j,
|
|
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: () => M(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,50 +1445,19 @@ 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: ne,
|
|
1365
1454
|
badge: "blue",
|
|
1366
1455
|
filled: "border-blue/30 bg-blue/10 text-blue",
|
|
1367
1456
|
iconBox: "bg-blue/10 text-blue",
|
|
1368
1457
|
actionBtn: "bg-blue text-white hover:bg-blue/90"
|
|
1369
1458
|
},
|
|
1370
1459
|
warning: {
|
|
1371
|
-
icon:
|
|
1460
|
+
icon: _e,
|
|
1372
1461
|
badge: "orange",
|
|
1373
1462
|
filled: "border-orange/30 bg-orange/10 text-orange",
|
|
1374
1463
|
iconBox: "bg-orange/10 text-orange",
|
|
@@ -1389,13 +1478,13 @@ 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,
|
|
1397
1486
|
className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-md text-current/60 transition-colors hover:bg-current/10 hover:text-current",
|
|
1398
|
-
children: /* @__PURE__ */ X(
|
|
1487
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1399
1488
|
});
|
|
1400
1489
|
return t === "filled" ? /* @__PURE__ */ Z("div", {
|
|
1401
1490
|
role: "alert",
|
|
@@ -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,16 +1548,16 @@ 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
1563
|
Icon: j
|
|
@@ -1491,14 +1580,14 @@ var bn = [
|
|
|
1491
1580
|
},
|
|
1492
1581
|
{
|
|
1493
1582
|
match: (e) => e.includes("video/"),
|
|
1494
|
-
Icon:
|
|
1583
|
+
Icon: ye
|
|
1495
1584
|
}
|
|
1496
1585
|
];
|
|
1497
|
-
function
|
|
1498
|
-
for (let { match: t, Icon: n } of
|
|
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" });
|
|
1499
1588
|
return /* @__PURE__ */ X(M, { 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,
|
|
@@ -1574,7 +1663,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1574
1663
|
className: "z-50 flex size-8 cursor-pointer items-center justify-center rounded-full bg-black/60 text-white outline-none transition-[color,box-shadow] hover:bg-black/80 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
1575
1664
|
onClick: () => t && v(t.id),
|
|
1576
1665
|
type: "button",
|
|
1577
|
-
children: /* @__PURE__ */ X(
|
|
1666
|
+
children: /* @__PURE__ */ X(U, {
|
|
1578
1667
|
"aria-hidden": "true",
|
|
1579
1668
|
className: "size-4"
|
|
1580
1669
|
})
|
|
@@ -1615,7 +1704,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1615
1704
|
onClick: _,
|
|
1616
1705
|
size: "sm",
|
|
1617
1706
|
variant: "outline",
|
|
1618
|
-
children: [/* @__PURE__ */ X(
|
|
1707
|
+
children: [/* @__PURE__ */ X(ve, {
|
|
1619
1708
|
"aria-hidden": "true",
|
|
1620
1709
|
className: "-ms-0.5 size-3.5 opacity-60"
|
|
1621
1710
|
}), "Add files"]
|
|
@@ -1624,7 +1713,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1624
1713
|
onClick: y,
|
|
1625
1714
|
size: "sm",
|
|
1626
1715
|
variant: "outline",
|
|
1627
|
-
children: [/* @__PURE__ */ X(
|
|
1716
|
+
children: [/* @__PURE__ */ X(me, {
|
|
1628
1717
|
"aria-hidden": "true",
|
|
1629
1718
|
className: "-ms-0.5 size-3.5 opacity-60"
|
|
1630
1719
|
}), "Remove all"]
|
|
@@ -1635,13 +1724,13 @@ 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",
|
|
1642
1731
|
onClick: () => v(e.id),
|
|
1643
1732
|
size: "icon",
|
|
1644
|
-
children: /* @__PURE__ */ X(
|
|
1733
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1645
1734
|
}),
|
|
1646
1735
|
/* @__PURE__ */ Z("div", {
|
|
1647
1736
|
className: "flex min-w-0 flex-col gap-0.5 border-t p-3",
|
|
@@ -1682,7 +1771,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1682
1771
|
disabled: o,
|
|
1683
1772
|
onClick: _,
|
|
1684
1773
|
variant: "outline",
|
|
1685
|
-
children: [/* @__PURE__ */ X(
|
|
1774
|
+
children: [/* @__PURE__ */ X(ve, {
|
|
1686
1775
|
"aria-hidden": "true",
|
|
1687
1776
|
className: "-ms-1 opacity-60"
|
|
1688
1777
|
}), "Select files"]
|
|
@@ -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 [R,
|
|
1702
|
-
L && e || (
|
|
1703
|
-
}, [j, L]), [
|
|
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: ee = !1, onOpenChange: j, onLoadMore: M, hasNextPage: N = !1, isFetchingNextPage: P = !1, allowEmpty: F = !1, showSelectAll: I = !1, readOnly: L = !1, popoverClassName: te }) {
|
|
1790
|
+
let [R, ne] = n.useState(ee), z = n.useRef(!1), B = n.useRef(null), ie = n.useId(), ae = n.useCallback((e) => {
|
|
1791
|
+
L && e || (ne(e), j?.(e), e && (z.current = !1));
|
|
1792
|
+
}, [j, L]), [V, oe] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
|
|
1704
1793
|
n.useEffect(() => {
|
|
1705
|
-
l &&
|
|
1794
|
+
l && oe(Array.isArray(r) ? r : r ? [r] : []);
|
|
1706
1795
|
}, [l, r]), n.useEffect(() => {
|
|
1707
|
-
P || (
|
|
1796
|
+
P || (z.current = !1);
|
|
1708
1797
|
}, [P]);
|
|
1709
|
-
let
|
|
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,33 +1803,33 @@ 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,
|
|
1724
1813
|
e
|
|
1725
|
-
]),
|
|
1814
|
+
]), ce = n.useMemo(() => l || !r ? "" : typeof r == "string" ? r : Array.isArray(r) ? "" : H(r), [
|
|
1726
1815
|
l,
|
|
1727
1816
|
r,
|
|
1728
|
-
|
|
1729
|
-
]),
|
|
1817
|
+
H
|
|
1818
|
+
]), le = n.useMemo(() => e.map((e) => typeof e == "string" ? {
|
|
1730
1819
|
value: e,
|
|
1731
1820
|
label: e
|
|
1732
|
-
} :
|
|
1733
|
-
value:
|
|
1734
|
-
label:
|
|
1821
|
+
} : En(e) ? e : {
|
|
1822
|
+
value: H(e),
|
|
1823
|
+
label: se(e)
|
|
1735
1824
|
}), [
|
|
1736
1825
|
e,
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
]),
|
|
1740
|
-
let e = [...
|
|
1826
|
+
se,
|
|
1827
|
+
H
|
|
1828
|
+
]), ue = n.useCallback((t) => e.find((e) => H(e) === t), [e, H]), fe = n.useMemo(() => {
|
|
1829
|
+
let e = [...le];
|
|
1741
1830
|
return t.forEach((t) => e.push(...t.options)), e;
|
|
1742
|
-
}, [
|
|
1743
|
-
let r = e.find((e) =>
|
|
1831
|
+
}, [le, t]), pe = (n) => {
|
|
1832
|
+
let r = e.find((e) => H(e) === n);
|
|
1744
1833
|
if (r === void 0 && t.length > 0) for (let e of t) {
|
|
1745
1834
|
let t = e.options.find((e) => e.value === n);
|
|
1746
1835
|
if (t) {
|
|
@@ -1749,77 +1838,77 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1749
1838
|
}
|
|
1750
1839
|
}
|
|
1751
1840
|
if (l) {
|
|
1752
|
-
let e =
|
|
1753
|
-
if (!e && A &&
|
|
1754
|
-
let t = e ?
|
|
1755
|
-
|
|
1756
|
-
} else i?.(r),
|
|
1757
|
-
},
|
|
1841
|
+
let e = V.some((e) => H(e) === n);
|
|
1842
|
+
if (!e && A && V.length >= A || e && V.length === 1 && !F) return;
|
|
1843
|
+
let t = e ? V.filter((e) => H(e) !== n) : [...V, r];
|
|
1844
|
+
oe(t), i?.(t);
|
|
1845
|
+
} else i?.(r), ne(!1);
|
|
1846
|
+
}, me = l && fe.length > 0 && fe.length === V.length, he = () => {
|
|
1758
1847
|
if (l) {
|
|
1759
|
-
if (
|
|
1760
|
-
F && (
|
|
1848
|
+
if (me) {
|
|
1849
|
+
F && (oe([]), i?.([]));
|
|
1761
1850
|
return;
|
|
1762
1851
|
}
|
|
1763
|
-
A &&
|
|
1852
|
+
A && fe.length > A || (oe(fe), i?.(fe));
|
|
1764
1853
|
}
|
|
1765
|
-
},
|
|
1766
|
-
e.stopPropagation(), l ? (
|
|
1767
|
-
},
|
|
1768
|
-
if (e.stopPropagation(),
|
|
1769
|
-
let n =
|
|
1770
|
-
|
|
1771
|
-
},
|
|
1854
|
+
}, ge = (e) => {
|
|
1855
|
+
e.stopPropagation(), l ? (oe([]), i?.([])) : i?.("");
|
|
1856
|
+
}, _e = (e, t) => {
|
|
1857
|
+
if (e.stopPropagation(), V.length === 1 && !F) return;
|
|
1858
|
+
let n = V.filter((e) => H(e) !== H(t));
|
|
1859
|
+
oe(n), i?.(n);
|
|
1860
|
+
}, ve = n.useCallback((e) => {
|
|
1772
1861
|
let t = e.currentTarget;
|
|
1773
|
-
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && M && N && !P && !
|
|
1862
|
+
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && M && N && !P && !z.current && (z.current = !0, M());
|
|
1774
1863
|
}, [
|
|
1775
1864
|
M,
|
|
1776
1865
|
N,
|
|
1777
1866
|
P
|
|
1778
|
-
]),
|
|
1779
|
-
!o && !L && (
|
|
1867
|
+
]), ye = l ? V.length > 0 : !!ce, be = () => l ? null : fe.find((e) => e.value === ce)?.label || a, W = () => {
|
|
1868
|
+
!o && !L && (B.current?.focus(), ne(!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
|
-
children: l &&
|
|
1871
|
+
children: l && V.length > 0 ? E ? /* @__PURE__ */ X("span", {
|
|
1783
1872
|
className: "min-w-0 truncate",
|
|
1784
|
-
children: D ? D(
|
|
1873
|
+
children: D ? D(V) : `${V.length} selected`
|
|
1785
1874
|
}) : /* @__PURE__ */ X("div", {
|
|
1786
1875
|
className: "flex flex-wrap items-center gap-1.5",
|
|
1787
|
-
children:
|
|
1876
|
+
children: V.map((e, t) => /* @__PURE__ */ Z("span", {
|
|
1788
1877
|
className: "inline-flex items-center gap-1 rounded-sm bg-primary px-2 py-0.5 text-xs font-normal text-primary-foreground",
|
|
1789
|
-
children: [
|
|
1878
|
+
children: [se(e), !o && /* @__PURE__ */ X("button", {
|
|
1790
1879
|
type: "button",
|
|
1791
|
-
"aria-label": `Remove ${
|
|
1792
|
-
onClick: (t) =>
|
|
1880
|
+
"aria-label": `Remove ${se(e)}`,
|
|
1881
|
+
onClick: (t) => _e(t, e),
|
|
1793
1882
|
className: "rounded-sm transition-colors hover:bg-primary/80",
|
|
1794
|
-
children: /* @__PURE__ */ X(
|
|
1883
|
+
children: /* @__PURE__ */ X(U, { className: "size-3" })
|
|
1795
1884
|
})]
|
|
1796
|
-
}, `${
|
|
1885
|
+
}, `${H(e)}-${t}`))
|
|
1797
1886
|
}) : /* @__PURE__ */ X("span", {
|
|
1798
|
-
className: Q("block min-w-0 truncate", !
|
|
1799
|
-
children:
|
|
1887
|
+
className: Q("block min-w-0 truncate", !ye && "text-muted-foreground/60"),
|
|
1888
|
+
children: be() || a
|
|
1800
1889
|
})
|
|
1801
1890
|
}), Ce = /* @__PURE__ */ Z("div", {
|
|
1802
1891
|
className: "flex shrink-0 items-center gap-1",
|
|
1803
|
-
children: [m &&
|
|
1892
|
+
children: [m && ye && !o && /* @__PURE__ */ X("span", {
|
|
1804
1893
|
role: "button",
|
|
1805
1894
|
tabIndex: 0,
|
|
1806
1895
|
"aria-label": "Clear",
|
|
1807
|
-
onClick:
|
|
1896
|
+
onClick: ge,
|
|
1808
1897
|
onKeyDown: (e) => {
|
|
1809
|
-
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(),
|
|
1898
|
+
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), ge(e));
|
|
1810
1899
|
},
|
|
1811
1900
|
className: "cursor-pointer rounded-sm p-0.5 transition-colors hover:bg-accent",
|
|
1812
|
-
children: /* @__PURE__ */ X(
|
|
1901
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1813
1902
|
}), /* @__PURE__ */ X(b, {
|
|
1814
1903
|
size: 16,
|
|
1815
1904
|
className: "shrink-0 opacity-60",
|
|
1816
1905
|
"aria-hidden": !0
|
|
1817
1906
|
})]
|
|
1818
1907
|
}), we = (e) => {
|
|
1819
|
-
let t = l ?
|
|
1820
|
-
return /* @__PURE__ */ Z(
|
|
1908
|
+
let t = l ? V.some((t) => H(t) === e.value) : ce === e.value, n = ue(e.value);
|
|
1909
|
+
return /* @__PURE__ */ Z(nn, {
|
|
1821
1910
|
value: e.value,
|
|
1822
|
-
onSelect: () =>
|
|
1911
|
+
onSelect: () => pe(e.value),
|
|
1823
1912
|
disabled: e.disabled,
|
|
1824
1913
|
children: [
|
|
1825
1914
|
l ? /* @__PURE__ */ X("div", {
|
|
@@ -1861,46 +1950,46 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1861
1950
|
})
|
|
1862
1951
|
]
|
|
1863
1952
|
}, e.value);
|
|
1864
|
-
}, Te = /* @__PURE__ */ X(
|
|
1953
|
+
}, Te = /* @__PURE__ */ X(sn, {
|
|
1865
1954
|
className: Q("w-(--radix-popper-anchor-width) min-w-(--radix-popper-anchor-width) p-0", te),
|
|
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(
|
|
1875
|
-
onScroll:
|
|
1963
|
+
}), /* @__PURE__ */ X(Qt, {
|
|
1964
|
+
onScroll: ve,
|
|
1876
1965
|
children: T ? /* @__PURE__ */ X("div", {
|
|
1877
1966
|
className: "flex items-center justify-center py-6",
|
|
1878
|
-
children: /* @__PURE__ */ X(
|
|
1967
|
+
children: /* @__PURE__ */ X(re, { className: "size-5 animate-spin text-muted-foreground" })
|
|
1879
1968
|
}) : /* @__PURE__ */ Z(Y, { children: [
|
|
1880
|
-
l && I &&
|
|
1969
|
+
l && I && fe.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(en, { children: /* @__PURE__ */ Z(nn, {
|
|
1881
1970
|
value: "__select_all__",
|
|
1882
|
-
onSelect:
|
|
1971
|
+
onSelect: he,
|
|
1883
1972
|
className: "font-medium",
|
|
1884
1973
|
children: [/* @__PURE__ */ X("div", {
|
|
1885
|
-
className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border",
|
|
1886
|
-
children:
|
|
1974
|
+
className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border", me ? "border-primary bg-primary" : "border-input"),
|
|
1975
|
+
children: me && /* @__PURE__ */ X(v, {
|
|
1887
1976
|
size: 12,
|
|
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(), ne(!1);
|
|
1902
1991
|
},
|
|
1903
|
-
children: [/* @__PURE__ */ X(
|
|
1992
|
+
children: [/* @__PURE__ */ X(de, {
|
|
1904
1993
|
size: 16,
|
|
1905
1994
|
className: "-ms-1 opacity-60",
|
|
1906
1995
|
"aria-hidden": !0
|
|
@@ -1908,7 +1997,7 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1908
1997
|
}) })] }),
|
|
1909
1998
|
P && /* @__PURE__ */ X("div", {
|
|
1910
1999
|
className: "flex items-center justify-center py-3",
|
|
1911
|
-
children: /* @__PURE__ */ X(
|
|
2000
|
+
children: /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" })
|
|
1912
2001
|
})
|
|
1913
2002
|
] })
|
|
1914
2003
|
})] })
|
|
@@ -1920,17 +2009,17 @@ 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(
|
|
1924
|
-
htmlFor:
|
|
2012
|
+
y && /* @__PURE__ */ Z(wt, {
|
|
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(
|
|
2018
|
+
G ? /* @__PURE__ */ Z(an, {
|
|
1930
2019
|
open: R,
|
|
1931
|
-
onOpenChange:
|
|
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,
|
|
@@ -1941,10 +2030,10 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1941
2030
|
children: O
|
|
1942
2031
|
}),
|
|
1943
2032
|
/* @__PURE__ */ Z($, {
|
|
1944
|
-
id:
|
|
2033
|
+
id: ie,
|
|
1945
2034
|
type: "button",
|
|
1946
2035
|
disabled: o,
|
|
1947
|
-
ref:
|
|
2036
|
+
ref: B,
|
|
1948
2037
|
variant: "ghost",
|
|
1949
2038
|
role: "combobox",
|
|
1950
2039
|
"aria-expanded": R,
|
|
@@ -1961,17 +2050,17 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1961
2050
|
]
|
|
1962
2051
|
})
|
|
1963
2052
|
}), Te]
|
|
1964
|
-
}) : /* @__PURE__ */ Z(
|
|
2053
|
+
}) : /* @__PURE__ */ Z(an, {
|
|
1965
2054
|
open: R,
|
|
1966
|
-
onOpenChange:
|
|
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
|
-
id:
|
|
2060
|
+
id: ie,
|
|
1972
2061
|
type: "button",
|
|
1973
2062
|
disabled: o,
|
|
1974
|
-
ref:
|
|
2063
|
+
ref: B,
|
|
1975
2064
|
variant: "outline",
|
|
1976
2065
|
role: "combobox",
|
|
1977
2066
|
"aria-expanded": R,
|
|
@@ -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,12 +2159,12 @@ 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), selectable: i = !1, selectedIds: a, onSelectionChange: o, rowActions: s, loading: c = !1, emptyMessage: l = "No results.", pagination: u = !1, pageSize: d = 25, pageSizeOptions: f = [
|
|
2079
2168
|
25,
|
|
2080
2169
|
50,
|
|
2081
2170
|
100,
|
|
@@ -2096,34 +2185,34 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2096
2185
|
u,
|
|
2097
2186
|
L,
|
|
2098
2187
|
M
|
|
2099
|
-
]), R = "px-4 py-3 first:pl-5 last:pr-5",
|
|
2188
|
+
]), R = "px-4 py-3 first:pl-5 last:pr-5", ne = "px-4 first:pl-5 last:pr-5", z = !g && h !== void 0 ? typeof h == "number" ? `${h}px` : h : void 0;
|
|
2100
2189
|
return /* @__PURE__ */ Z("div", {
|
|
2101
2190
|
className: Q("overflow-hidden rounded-lg border", u && "rounded-b-none border-b-0", (g || h !== void 0) && "flex min-h-0 flex-col [&_[data-slot=table-container]]:overflow-y-auto", g && "min-h-0 flex-1 [&_[data-slot=table-container]]:min-h-0 [&_[data-slot=table-container]]:flex-1", !g && h !== void 0 && "[&_[data-slot=table-container]]:max-h-(--dt-max-h)", v),
|
|
2102
|
-
style:
|
|
2103
|
-
children: [/* @__PURE__ */ Z(
|
|
2191
|
+
style: z ? { "--dt-max-h": z } : void 0,
|
|
2192
|
+
children: [/* @__PURE__ */ Z(kn, { children: [/* @__PURE__ */ X(An, {
|
|
2104
2193
|
className: Q("bg-muted/60", m && 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")),
|
|
2105
|
-
children: /* @__PURE__ */ Z(
|
|
2194
|
+
children: /* @__PURE__ */ Z(Nn, {
|
|
2106
2195
|
className: "hover:bg-transparent",
|
|
2107
2196
|
children: [
|
|
2108
|
-
i && /* @__PURE__ */ X(
|
|
2109
|
-
className: Q("w-10",
|
|
2110
|
-
children: /* @__PURE__ */ X(
|
|
2197
|
+
i && /* @__PURE__ */ X(Pn, {
|
|
2198
|
+
className: Q("w-10", ne),
|
|
2199
|
+
children: /* @__PURE__ */ X(On, {
|
|
2111
2200
|
"aria-label": "Select all rows",
|
|
2112
2201
|
checked: O ? !0 : k ? "indeterminate" : !1,
|
|
2113
2202
|
onCheckedChange: A
|
|
2114
2203
|
})
|
|
2115
2204
|
}),
|
|
2116
|
-
e.map((e) => /* @__PURE__ */ X(
|
|
2205
|
+
e.map((e) => /* @__PURE__ */ X(Pn, {
|
|
2117
2206
|
style: e.width ? { width: e.width } : void 0,
|
|
2118
|
-
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase",
|
|
2207
|
+
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase", ne, e.align && Ln[e.align], e.className, e.headerClassName),
|
|
2119
2208
|
children: e.header
|
|
2120
2209
|
}, e.key)),
|
|
2121
|
-
s && /* @__PURE__ */ X(
|
|
2210
|
+
s && /* @__PURE__ */ X(Pn, { className: "w-12" })
|
|
2122
2211
|
]
|
|
2123
2212
|
})
|
|
2124
|
-
}), /* @__PURE__ */ X(
|
|
2213
|
+
}), /* @__PURE__ */ X(jn, { children: c ? /* @__PURE__ */ X(Nn, {
|
|
2125
2214
|
className: "hover:bg-transparent",
|
|
2126
|
-
children: /* @__PURE__ */ X(
|
|
2215
|
+
children: /* @__PURE__ */ X(Fn, {
|
|
2127
2216
|
colSpan: j,
|
|
2128
2217
|
className: "h-28 text-center",
|
|
2129
2218
|
children: /* @__PURE__ */ Z("span", {
|
|
@@ -2131,35 +2220,35 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2131
2220
|
children: [/* @__PURE__ */ X(Je, { className: "size-4" }), " Loading…"]
|
|
2132
2221
|
})
|
|
2133
2222
|
})
|
|
2134
|
-
}) : t.length === 0 ? /* @__PURE__ */ X(
|
|
2223
|
+
}) : t.length === 0 ? /* @__PURE__ */ X(Nn, {
|
|
2135
2224
|
className: "hover:bg-transparent",
|
|
2136
|
-
children: /* @__PURE__ */ X(
|
|
2225
|
+
children: /* @__PURE__ */ X(Fn, {
|
|
2137
2226
|
colSpan: j,
|
|
2138
2227
|
className: "h-28 text-center text-muted-foreground",
|
|
2139
2228
|
children: l
|
|
2140
2229
|
})
|
|
2141
2230
|
}) : te.map(({ row: t, index: n }) => {
|
|
2142
2231
|
let r = y[n], a = E.includes(r);
|
|
2143
|
-
return /* @__PURE__ */ Z(
|
|
2232
|
+
return /* @__PURE__ */ Z(Nn, {
|
|
2144
2233
|
"data-state": a ? "selected" : void 0,
|
|
2145
2234
|
onClick: _ ? () => _(t) : void 0,
|
|
2146
2235
|
className: Q(p && !a && "odd:bg-muted/40", a && "bg-primary/10 shadow-[inset_3px_0_0_0_var(--primary)] hover:bg-primary/15", _ && "cursor-pointer"),
|
|
2147
2236
|
children: [
|
|
2148
|
-
i && /* @__PURE__ */ X(
|
|
2237
|
+
i && /* @__PURE__ */ X(Fn, {
|
|
2149
2238
|
className: Q("w-10", R),
|
|
2150
2239
|
onClick: (e) => e.stopPropagation(),
|
|
2151
|
-
children: /* @__PURE__ */ X(
|
|
2240
|
+
children: /* @__PURE__ */ X(On, {
|
|
2152
2241
|
"aria-label": "Select row",
|
|
2153
2242
|
checked: a,
|
|
2154
2243
|
onCheckedChange: () => ee(r)
|
|
2155
2244
|
})
|
|
2156
2245
|
}),
|
|
2157
|
-
e.map((e) => /* @__PURE__ */ X(
|
|
2246
|
+
e.map((e) => /* @__PURE__ */ X(Fn, {
|
|
2158
2247
|
style: e.width ? { width: e.width } : void 0,
|
|
2159
|
-
className: Q(R, e.align &&
|
|
2248
|
+
className: Q(R, e.align && Ln[e.align], e.className),
|
|
2160
2249
|
children: e.cell ? e.cell(t, n) : String(t[e.key] ?? "")
|
|
2161
2250
|
}, e.key)),
|
|
2162
|
-
s && /* @__PURE__ */ X(
|
|
2251
|
+
s && /* @__PURE__ */ X(Fn, {
|
|
2163
2252
|
className: "w-12 pr-3 text-right",
|
|
2164
2253
|
onClick: (e) => e.stopPropagation(),
|
|
2165
2254
|
children: /* @__PURE__ */ X(pt, { items: s(t) })
|
|
@@ -2188,7 +2277,7 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2188
2277
|
children: [/* @__PURE__ */ X("span", {
|
|
2189
2278
|
className: "whitespace-nowrap",
|
|
2190
2279
|
children: "Rows per page"
|
|
2191
|
-
}), /* @__PURE__ */ X(
|
|
2280
|
+
}), /* @__PURE__ */ X(Dn, {
|
|
2192
2281
|
size: "sm",
|
|
2193
2282
|
className: "w-20",
|
|
2194
2283
|
value: String(M),
|
|
@@ -2244,26 +2333,26 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2244
2333
|
}
|
|
2245
2334
|
//#endregion
|
|
2246
2335
|
//#region src/components/custom/form-dialog.tsx
|
|
2247
|
-
function
|
|
2248
|
-
return /* @__PURE__ */ X(
|
|
2336
|
+
function zn({ children: e, title: t, open: n, onClose: r, description: i, notDismissable: a, footer: o, className: s }) {
|
|
2337
|
+
return /* @__PURE__ */ X(kt, {
|
|
2249
2338
|
open: n,
|
|
2250
2339
|
onOpenChange: a ? void 0 : (e) => !e && r(),
|
|
2251
|
-
children: /* @__PURE__ */ X(
|
|
2340
|
+
children: /* @__PURE__ */ X(Pt, {
|
|
2252
2341
|
showCloseButton: !1,
|
|
2253
2342
|
className: Q("max-h-[75vh] gap-0 p-0 sm:max-w-2xl", s),
|
|
2254
2343
|
children: /* @__PURE__ */ Z("div", {
|
|
2255
2344
|
className: "flex max-h-[75vh] flex-col",
|
|
2256
2345
|
children: [
|
|
2257
|
-
t && /* @__PURE__ */ X(
|
|
2346
|
+
t && /* @__PURE__ */ X(Ft, {
|
|
2258
2347
|
className: "flex-shrink-0 border-b border-border p-6 pb-4",
|
|
2259
2348
|
children: /* @__PURE__ */ Z("div", {
|
|
2260
2349
|
className: "flex items-start justify-between gap-4",
|
|
2261
2350
|
children: [/* @__PURE__ */ Z("div", {
|
|
2262
2351
|
className: "flex flex-col gap-1",
|
|
2263
|
-
children: [/* @__PURE__ */ X(
|
|
2352
|
+
children: [/* @__PURE__ */ X(Lt, {
|
|
2264
2353
|
className: "text-left text-xl font-semibold",
|
|
2265
2354
|
children: t
|
|
2266
|
-
}), i && /* @__PURE__ */ X(
|
|
2355
|
+
}), i && /* @__PURE__ */ X(Rt, {
|
|
2267
2356
|
className: "text-left text-muted-foreground",
|
|
2268
2357
|
children: i
|
|
2269
2358
|
})]
|
|
@@ -2276,7 +2365,7 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2276
2365
|
onClick: (e) => {
|
|
2277
2366
|
e.preventDefault(), e.stopPropagation(), r();
|
|
2278
2367
|
},
|
|
2279
|
-
children: /* @__PURE__ */ X(
|
|
2368
|
+
children: /* @__PURE__ */ X(U, {})
|
|
2280
2369
|
})]
|
|
2281
2370
|
})
|
|
2282
2371
|
}),
|
|
@@ -2284,7 +2373,7 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2284
2373
|
className: "flex-1 overflow-y-auto p-6",
|
|
2285
2374
|
children: e
|
|
2286
2375
|
}),
|
|
2287
|
-
o && /* @__PURE__ */ X(
|
|
2376
|
+
o && /* @__PURE__ */ X(It, {
|
|
2288
2377
|
className: "m-0 flex-shrink-0 rounded-none border-t border-border bg-transparent p-6 pt-4",
|
|
2289
2378
|
children: o
|
|
2290
2379
|
})
|
|
@@ -2295,14 +2384,14 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2295
2384
|
}
|
|
2296
2385
|
//#endregion
|
|
2297
2386
|
//#region src/components/ui/radio-group.tsx
|
|
2298
|
-
function
|
|
2387
|
+
function Bn({ className: e, ...t }) {
|
|
2299
2388
|
return /* @__PURE__ */ X(Ee.Root, {
|
|
2300
2389
|
"data-slot": "radio-group",
|
|
2301
2390
|
className: Q("grid w-full gap-2", e),
|
|
2302
2391
|
...t
|
|
2303
2392
|
});
|
|
2304
2393
|
}
|
|
2305
|
-
function
|
|
2394
|
+
function Vn({ className: e, ...t }) {
|
|
2306
2395
|
return /* @__PURE__ */ X(Ee.Item, {
|
|
2307
2396
|
"data-slot": "radio-group-item",
|
|
2308
2397
|
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 +2405,9 @@ function zn({ className: e, ...t }) {
|
|
|
2316
2405
|
}
|
|
2317
2406
|
//#endregion
|
|
2318
2407
|
//#region src/components/custom/card-radio-group.tsx
|
|
2319
|
-
function
|
|
2408
|
+
function Hn({ items: e, indicatorPosition: t = "end", className: r, cardClassName: i, ...a }) {
|
|
2320
2409
|
let o = n.useId();
|
|
2321
|
-
return /* @__PURE__ */ X(
|
|
2410
|
+
return /* @__PURE__ */ X(Bn, {
|
|
2322
2411
|
className: Q("gap-2", r),
|
|
2323
2412
|
...a,
|
|
2324
2413
|
children: e.map((e, n) => {
|
|
@@ -2326,7 +2415,7 @@ function Bn({ items: e, indicatorPosition: t = "end", className: r, cardClassNam
|
|
|
2326
2415
|
return /* @__PURE__ */ Z("label", {
|
|
2327
2416
|
htmlFor: r,
|
|
2328
2417
|
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(
|
|
2418
|
+
children: [/* @__PURE__ */ X(Vn, {
|
|
2330
2419
|
id: r,
|
|
2331
2420
|
value: e.value,
|
|
2332
2421
|
disabled: e.disabled,
|
|
@@ -2359,7 +2448,7 @@ function Bn({ items: e, indicatorPosition: t = "end", className: r, cardClassNam
|
|
|
2359
2448
|
}
|
|
2360
2449
|
//#endregion
|
|
2361
2450
|
//#region src/components/custom/color-picker.tsx
|
|
2362
|
-
var
|
|
2451
|
+
var Un = [
|
|
2363
2452
|
"var(--primary)",
|
|
2364
2453
|
"var(--red)",
|
|
2365
2454
|
"var(--orange)",
|
|
@@ -2373,7 +2462,7 @@ var Vn = [
|
|
|
2373
2462
|
"var(--gray)",
|
|
2374
2463
|
"var(--foreground)"
|
|
2375
2464
|
];
|
|
2376
|
-
function
|
|
2465
|
+
function Wn(e) {
|
|
2377
2466
|
if (typeof window > "u" || /^#[0-9a-fA-F]{6}$/.test(e)) return e;
|
|
2378
2467
|
let t = document.createElement("span");
|
|
2379
2468
|
t.style.color = e, document.body.appendChild(t);
|
|
@@ -2384,15 +2473,15 @@ function Hn(e) {
|
|
|
2384
2473
|
let i = (e) => e.toString(16).padStart(2, "0");
|
|
2385
2474
|
return `#${i(+r[0])}${i(+r[1])}${i(+r[2])}`;
|
|
2386
2475
|
}
|
|
2387
|
-
function
|
|
2476
|
+
function Gn({ value: e, onChange: t, swatches: r = Un, trigger: i = "swatch", placeholder: a = "Pick a color", disabled: o, className: s }) {
|
|
2388
2477
|
let [c, l] = n.useState(e), [u, d] = n.useState(e);
|
|
2389
2478
|
e !== u && (d(e), l(e));
|
|
2390
2479
|
let f = (e) => {
|
|
2391
|
-
t(
|
|
2480
|
+
t(Wn(e));
|
|
2392
2481
|
}, p = (e) => {
|
|
2393
2482
|
l(e), /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e) && t(e);
|
|
2394
2483
|
};
|
|
2395
|
-
return /* @__PURE__ */ Z(
|
|
2484
|
+
return /* @__PURE__ */ Z(an, { children: [/* @__PURE__ */ X(on, {
|
|
2396
2485
|
asChild: !0,
|
|
2397
2486
|
children: i === "input" ? /* @__PURE__ */ Z("button", {
|
|
2398
2487
|
type: "button",
|
|
@@ -2411,15 +2500,15 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2411
2500
|
"aria-label": "Pick a color",
|
|
2412
2501
|
className: Q("flex size-9 items-center justify-center rounded-md border ring-1 ring-foreground/10 outline-none transition-transform hover:scale-105 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50", s),
|
|
2413
2502
|
style: { background: e || "transparent" },
|
|
2414
|
-
children: !e && /* @__PURE__ */ X(
|
|
2503
|
+
children: !e && /* @__PURE__ */ X(ce, { className: "size-4 text-muted-foreground" })
|
|
2415
2504
|
})
|
|
2416
|
-
}), /* @__PURE__ */ Z(
|
|
2505
|
+
}), /* @__PURE__ */ Z(sn, {
|
|
2417
2506
|
className: "w-64",
|
|
2418
2507
|
align: "start",
|
|
2419
2508
|
children: [/* @__PURE__ */ X("div", {
|
|
2420
2509
|
className: "grid grid-cols-6 gap-2",
|
|
2421
2510
|
children: r.map((t) => {
|
|
2422
|
-
let n =
|
|
2511
|
+
let n = Wn(t).toLowerCase() === e.toLowerCase();
|
|
2423
2512
|
return /* @__PURE__ */ X("button", {
|
|
2424
2513
|
type: "button",
|
|
2425
2514
|
"aria-label": t,
|
|
@@ -2440,7 +2529,7 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2440
2529
|
onChange: (e) => t(e.target.value),
|
|
2441
2530
|
className: "absolute inset-0 size-full cursor-pointer opacity-0"
|
|
2442
2531
|
})
|
|
2443
|
-
}), /* @__PURE__ */ X(
|
|
2532
|
+
}), /* @__PURE__ */ X(zt, {
|
|
2444
2533
|
value: c,
|
|
2445
2534
|
onChange: (e) => p(e.target.value),
|
|
2446
2535
|
placeholder: "#000000",
|
|
@@ -2451,75 +2540,75 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2451
2540
|
}
|
|
2452
2541
|
//#endregion
|
|
2453
2542
|
//#region src/components/ui/alert-dialog.tsx
|
|
2454
|
-
function
|
|
2543
|
+
function Kn({ ...e }) {
|
|
2455
2544
|
return /* @__PURE__ */ X(G.Root, {
|
|
2456
2545
|
"data-slot": "alert-dialog",
|
|
2457
2546
|
...e
|
|
2458
2547
|
});
|
|
2459
2548
|
}
|
|
2460
|
-
function
|
|
2549
|
+
function qn({ ...e }) {
|
|
2461
2550
|
return /* @__PURE__ */ X(G.Trigger, {
|
|
2462
2551
|
"data-slot": "alert-dialog-trigger",
|
|
2463
2552
|
...e
|
|
2464
2553
|
});
|
|
2465
2554
|
}
|
|
2466
|
-
function
|
|
2555
|
+
function Jn({ ...e }) {
|
|
2467
2556
|
return /* @__PURE__ */ X(G.Portal, {
|
|
2468
2557
|
"data-slot": "alert-dialog-portal",
|
|
2469
2558
|
...e
|
|
2470
2559
|
});
|
|
2471
2560
|
}
|
|
2472
|
-
function
|
|
2561
|
+
function Yn({ className: e, ...t }) {
|
|
2473
2562
|
return /* @__PURE__ */ X(G.Overlay, {
|
|
2474
2563
|
"data-slot": "alert-dialog-overlay",
|
|
2475
2564
|
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
2565
|
...t
|
|
2477
2566
|
});
|
|
2478
2567
|
}
|
|
2479
|
-
function
|
|
2480
|
-
return /* @__PURE__ */ Z(
|
|
2568
|
+
function Xn({ className: e, size: t = "default", ...n }) {
|
|
2569
|
+
return /* @__PURE__ */ Z(Jn, { children: [/* @__PURE__ */ X(Yn, {}), /* @__PURE__ */ X(G.Content, {
|
|
2481
2570
|
"data-slot": "alert-dialog-content",
|
|
2482
2571
|
"data-size": t,
|
|
2483
2572
|
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
2573
|
...n
|
|
2485
2574
|
})] });
|
|
2486
2575
|
}
|
|
2487
|
-
function
|
|
2576
|
+
function Zn({ className: e, ...t }) {
|
|
2488
2577
|
return /* @__PURE__ */ X("div", {
|
|
2489
2578
|
"data-slot": "alert-dialog-header",
|
|
2490
2579
|
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
2580
|
...t
|
|
2492
2581
|
});
|
|
2493
2582
|
}
|
|
2494
|
-
function
|
|
2583
|
+
function Qn({ className: e, ...t }) {
|
|
2495
2584
|
return /* @__PURE__ */ X("div", {
|
|
2496
2585
|
"data-slot": "alert-dialog-footer",
|
|
2497
2586
|
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
2587
|
...t
|
|
2499
2588
|
});
|
|
2500
2589
|
}
|
|
2501
|
-
function
|
|
2590
|
+
function $n({ className: e, ...t }) {
|
|
2502
2591
|
return /* @__PURE__ */ X("div", {
|
|
2503
2592
|
"data-slot": "alert-dialog-media",
|
|
2504
2593
|
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
2594
|
...t
|
|
2506
2595
|
});
|
|
2507
2596
|
}
|
|
2508
|
-
function
|
|
2597
|
+
function er({ className: e, ...t }) {
|
|
2509
2598
|
return /* @__PURE__ */ X(G.Title, {
|
|
2510
2599
|
"data-slot": "alert-dialog-title",
|
|
2511
2600
|
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
2601
|
...t
|
|
2513
2602
|
});
|
|
2514
2603
|
}
|
|
2515
|
-
function
|
|
2604
|
+
function tr({ className: e, ...t }) {
|
|
2516
2605
|
return /* @__PURE__ */ X(G.Description, {
|
|
2517
2606
|
"data-slot": "alert-dialog-description",
|
|
2518
2607
|
className: Q("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
2519
2608
|
...t
|
|
2520
2609
|
});
|
|
2521
2610
|
}
|
|
2522
|
-
function
|
|
2611
|
+
function nr({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
2523
2612
|
return /* @__PURE__ */ X($, {
|
|
2524
2613
|
variant: t,
|
|
2525
2614
|
size: n,
|
|
@@ -2531,7 +2620,7 @@ function er({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
2531
2620
|
})
|
|
2532
2621
|
});
|
|
2533
2622
|
}
|
|
2534
|
-
function
|
|
2623
|
+
function rr({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
2535
2624
|
return /* @__PURE__ */ X($, {
|
|
2536
2625
|
variant: t,
|
|
2537
2626
|
size: n,
|
|
@@ -2545,7 +2634,7 @@ function tr({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
2545
2634
|
}
|
|
2546
2635
|
//#endregion
|
|
2547
2636
|
//#region src/components/custom/confirm-prompt.tsx
|
|
2548
|
-
function
|
|
2637
|
+
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
2638
|
let [f, p] = n.useState(""), [h, g] = n.useState(!1), _ = o ?? h, v = s || _ || !(!c || f === l), y = () => {
|
|
2550
2639
|
_ || (p(""), a());
|
|
2551
2640
|
}, b = async () => {
|
|
@@ -2555,24 +2644,24 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2555
2644
|
g(!1);
|
|
2556
2645
|
}
|
|
2557
2646
|
};
|
|
2558
|
-
return /* @__PURE__ */ X(
|
|
2647
|
+
return /* @__PURE__ */ X(Kn, {
|
|
2559
2648
|
open: !!e,
|
|
2560
2649
|
onOpenChange: (e) => {
|
|
2561
2650
|
e || y();
|
|
2562
2651
|
},
|
|
2563
|
-
children: /* @__PURE__ */ Z(
|
|
2652
|
+
children: /* @__PURE__ */ Z(Xn, {
|
|
2564
2653
|
className: "sm:max-w-lg!",
|
|
2565
2654
|
children: [
|
|
2566
|
-
/* @__PURE__ */ Z(
|
|
2655
|
+
/* @__PURE__ */ Z(Zn, { children: [/* @__PURE__ */ Z(er, {
|
|
2567
2656
|
className: "flex items-center gap-2",
|
|
2568
2657
|
children: [/* @__PURE__ */ X("div", {
|
|
2569
2658
|
className: "flex size-8 shrink-0 items-center justify-center rounded-full bg-amber-100 dark:bg-amber-900/30",
|
|
2570
2659
|
children: /* @__PURE__ */ X(m, { className: "size-5 text-amber-600 dark:text-amber-500" })
|
|
2571
2660
|
}), t]
|
|
2572
|
-
}), r != null && /* @__PURE__ */ X(
|
|
2661
|
+
}), r != null && /* @__PURE__ */ X(tr, { children: r })] }),
|
|
2573
2662
|
c && /* @__PURE__ */ Z("div", {
|
|
2574
2663
|
className: "space-y-1",
|
|
2575
|
-
children: [/* @__PURE__ */ Z(
|
|
2664
|
+
children: [/* @__PURE__ */ Z(tr, { children: [
|
|
2576
2665
|
"To confirm, type",
|
|
2577
2666
|
" ",
|
|
2578
2667
|
/* @__PURE__ */ Z("span", {
|
|
@@ -2585,7 +2674,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2585
2674
|
}),
|
|
2586
2675
|
" ",
|
|
2587
2676
|
"in the box below"
|
|
2588
|
-
] }), /* @__PURE__ */ X(
|
|
2677
|
+
] }), /* @__PURE__ */ X(mn, {
|
|
2589
2678
|
value: f,
|
|
2590
2679
|
onChange: (e) => p(e.target.value),
|
|
2591
2680
|
size: "sm",
|
|
@@ -2598,7 +2687,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2598
2687
|
}
|
|
2599
2688
|
})]
|
|
2600
2689
|
}),
|
|
2601
|
-
/* @__PURE__ */ Z(
|
|
2690
|
+
/* @__PURE__ */ Z(Qn, {
|
|
2602
2691
|
className: "gap-2 space-x-0!",
|
|
2603
2692
|
children: [/* @__PURE__ */ X($, {
|
|
2604
2693
|
variant: "outline",
|
|
@@ -2609,7 +2698,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2609
2698
|
onClick: b,
|
|
2610
2699
|
className: Q("bg-red-500 text-white hover:bg-red-600"),
|
|
2611
2700
|
disabled: v,
|
|
2612
|
-
children: _ ? /* @__PURE__ */ X(
|
|
2701
|
+
children: _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin" }) : u
|
|
2613
2702
|
})]
|
|
2614
2703
|
})
|
|
2615
2704
|
]
|
|
@@ -2618,7 +2707,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2618
2707
|
}
|
|
2619
2708
|
//#endregion
|
|
2620
2709
|
//#region src/components/custom/custom-tabs.tsx
|
|
2621
|
-
function
|
|
2710
|
+
function ar({ type: e = "underline", items: t, className: n, listClassName: r, ...i }) {
|
|
2622
2711
|
return /* @__PURE__ */ X(je.Root, {
|
|
2623
2712
|
"data-slot": "custom-tabs",
|
|
2624
2713
|
"data-type": e,
|
|
@@ -2627,14 +2716,14 @@ function rr({ type: e = "underline", items: t, className: n, listClassName: r, .
|
|
|
2627
2716
|
children: /* @__PURE__ */ X(je.List, {
|
|
2628
2717
|
"data-slot": "custom-tabs-list",
|
|
2629
2718
|
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(
|
|
2719
|
+
children: t.map((t) => /* @__PURE__ */ X(or, {
|
|
2631
2720
|
type: e,
|
|
2632
2721
|
item: t
|
|
2633
2722
|
}, t.value))
|
|
2634
2723
|
})
|
|
2635
2724
|
});
|
|
2636
2725
|
}
|
|
2637
|
-
function
|
|
2726
|
+
function or({ type: e, item: t }) {
|
|
2638
2727
|
return /* @__PURE__ */ Z(je.Trigger, {
|
|
2639
2728
|
"data-slot": "custom-tabs-trigger",
|
|
2640
2729
|
value: t.value,
|
|
@@ -2647,7 +2736,7 @@ function ir({ type: e, item: t }) {
|
|
|
2647
2736
|
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
2737
|
children: t.count
|
|
2649
2738
|
}),
|
|
2650
|
-
t.badge != null && /* @__PURE__ */ X(
|
|
2739
|
+
t.badge != null && /* @__PURE__ */ X(ht, {
|
|
2651
2740
|
className: "px-2 text-[10px]",
|
|
2652
2741
|
children: t.badge
|
|
2653
2742
|
})
|
|
@@ -2656,7 +2745,7 @@ function ir({ type: e, item: t }) {
|
|
|
2656
2745
|
}
|
|
2657
2746
|
//#endregion
|
|
2658
2747
|
//#region src/components/custom/data-cell.tsx
|
|
2659
|
-
function
|
|
2748
|
+
function sr({ label: e, value: t, icon: n, layout: r = "stacked", className: i, ...a }) {
|
|
2660
2749
|
let o = n && /* @__PURE__ */ X("span", {
|
|
2661
2750
|
className: "shrink-0 text-muted-foreground [&_svg]:size-4",
|
|
2662
2751
|
children: n
|
|
@@ -2689,7 +2778,7 @@ function ar({ label: e, value: t, icon: n, layout: r = "stacked", className: i,
|
|
|
2689
2778
|
}
|
|
2690
2779
|
//#endregion
|
|
2691
2780
|
//#region src/components/custom/def-row.tsx
|
|
2692
|
-
function
|
|
2781
|
+
function cr({ label: e, value: t, className: n, ...r }) {
|
|
2693
2782
|
return /* @__PURE__ */ Z("div", {
|
|
2694
2783
|
"data-slot": "def-row",
|
|
2695
2784
|
className: Q("flex items-center justify-between gap-4 py-2", n),
|
|
@@ -2704,54 +2793,238 @@ function or({ label: e, value: t, className: n, ...r }) {
|
|
|
2704
2793
|
});
|
|
2705
2794
|
}
|
|
2706
2795
|
//#endregion
|
|
2796
|
+
//#region src/components/custom/divider.tsx
|
|
2797
|
+
var lr = W("flex items-center", {
|
|
2798
|
+
variants: { orientation: {
|
|
2799
|
+
horizontal: "w-full",
|
|
2800
|
+
vertical: "h-full flex-col"
|
|
2801
|
+
} },
|
|
2802
|
+
defaultVariants: { orientation: "horizontal" }
|
|
2803
|
+
}), ur = W("", {
|
|
2804
|
+
variants: {
|
|
2805
|
+
color: {
|
|
2806
|
+
default: "bg-border",
|
|
2807
|
+
primary: "bg-primary",
|
|
2808
|
+
muted: "bg-muted-foreground"
|
|
2809
|
+
},
|
|
2810
|
+
thickness: {
|
|
2811
|
+
thin: "",
|
|
2812
|
+
medium: "",
|
|
2813
|
+
thick: ""
|
|
2814
|
+
},
|
|
2815
|
+
orientation: {
|
|
2816
|
+
horizontal: "border-t",
|
|
2817
|
+
vertical: "w-px"
|
|
2818
|
+
}
|
|
2819
|
+
},
|
|
2820
|
+
compoundVariants: [
|
|
2821
|
+
{
|
|
2822
|
+
orientation: "horizontal",
|
|
2823
|
+
thickness: "thin",
|
|
2824
|
+
class: "border-t"
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
orientation: "horizontal",
|
|
2828
|
+
thickness: "medium",
|
|
2829
|
+
class: "border-t-2"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
orientation: "horizontal",
|
|
2833
|
+
thickness: "thick",
|
|
2834
|
+
class: "border-t-4"
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
orientation: "vertical",
|
|
2838
|
+
thickness: "thin",
|
|
2839
|
+
class: "w-px"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
orientation: "vertical",
|
|
2843
|
+
thickness: "medium",
|
|
2844
|
+
class: "w-0.5"
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
orientation: "vertical",
|
|
2848
|
+
thickness: "thick",
|
|
2849
|
+
class: "w-1"
|
|
2850
|
+
}
|
|
2851
|
+
],
|
|
2852
|
+
defaultVariants: {
|
|
2853
|
+
color: "default",
|
|
2854
|
+
thickness: "thin",
|
|
2855
|
+
orientation: "horizontal"
|
|
2856
|
+
}
|
|
2857
|
+
}), dr = W("font-medium whitespace-nowrap", {
|
|
2858
|
+
variants: {
|
|
2859
|
+
color: {
|
|
2860
|
+
default: "text-foreground",
|
|
2861
|
+
primary: "text-primary",
|
|
2862
|
+
muted: "text-muted-foreground"
|
|
2863
|
+
},
|
|
2864
|
+
size: {
|
|
2865
|
+
sm: "text-xs",
|
|
2866
|
+
md: "text-sm",
|
|
2867
|
+
lg: "text-base"
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
defaultVariants: {
|
|
2871
|
+
color: "default",
|
|
2872
|
+
size: "sm"
|
|
2873
|
+
}
|
|
2874
|
+
}), fr = W("flex items-center justify-center rounded-full text-xs font-medium", {
|
|
2875
|
+
variants: {
|
|
2876
|
+
color: {
|
|
2877
|
+
default: "border border-border bg-background text-foreground",
|
|
2878
|
+
primary: "border border-primary/20 bg-primary/10 text-primary",
|
|
2879
|
+
muted: "border border-muted-foreground/20 bg-muted text-muted-foreground"
|
|
2880
|
+
},
|
|
2881
|
+
size: {
|
|
2882
|
+
sm: "h-5 w-5 text-[10px]",
|
|
2883
|
+
md: "h-6 w-6 text-xs",
|
|
2884
|
+
lg: "h-7 w-7 text-sm"
|
|
2885
|
+
}
|
|
2886
|
+
},
|
|
2887
|
+
defaultVariants: {
|
|
2888
|
+
color: "default",
|
|
2889
|
+
size: "md"
|
|
2890
|
+
}
|
|
2891
|
+
});
|
|
2892
|
+
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 }) {
|
|
2893
|
+
let d = Q(ur({
|
|
2894
|
+
color: r,
|
|
2895
|
+
thickness: i,
|
|
2896
|
+
orientation: s
|
|
2897
|
+
}));
|
|
2898
|
+
if (s === "vertical") return /* @__PURE__ */ X("div", {
|
|
2899
|
+
"data-slot": "divider",
|
|
2900
|
+
role: "separator",
|
|
2901
|
+
"aria-orientation": "vertical",
|
|
2902
|
+
className: Q(d, "rounded", c, e),
|
|
2903
|
+
...u
|
|
2904
|
+
});
|
|
2905
|
+
if (t == null && n === void 0) return /* @__PURE__ */ X("div", {
|
|
2906
|
+
"data-slot": "divider",
|
|
2907
|
+
role: "separator",
|
|
2908
|
+
className: Q(lr({ orientation: s }), d, e),
|
|
2909
|
+
...u
|
|
2910
|
+
});
|
|
2911
|
+
let f = n === void 0 ? null : /* @__PURE__ */ X("span", {
|
|
2912
|
+
className: Q(fr({
|
|
2913
|
+
color: r,
|
|
2914
|
+
size: a
|
|
2915
|
+
})),
|
|
2916
|
+
children: n
|
|
2917
|
+
});
|
|
2918
|
+
return o === "start" ? /* @__PURE__ */ Z("div", {
|
|
2919
|
+
"data-slot": "divider",
|
|
2920
|
+
role: "separator",
|
|
2921
|
+
className: Q(lr(), "gap-2", e),
|
|
2922
|
+
...u,
|
|
2923
|
+
children: [
|
|
2924
|
+
l ? /* @__PURE__ */ X("span", {
|
|
2925
|
+
className: "shrink-0",
|
|
2926
|
+
children: l
|
|
2927
|
+
}) : /* @__PURE__ */ X("div", { className: Q("w-3 shrink-0", d) }),
|
|
2928
|
+
/* @__PURE__ */ X("span", {
|
|
2929
|
+
className: Q(dr({
|
|
2930
|
+
color: r,
|
|
2931
|
+
size: a
|
|
2932
|
+
}), !l && "px-2"),
|
|
2933
|
+
children: t
|
|
2934
|
+
}),
|
|
2935
|
+
f,
|
|
2936
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d, n !== void 0 && "ml-2") })
|
|
2937
|
+
]
|
|
2938
|
+
}) : o === "center" ? /* @__PURE__ */ Z("div", {
|
|
2939
|
+
"data-slot": "divider",
|
|
2940
|
+
role: "separator",
|
|
2941
|
+
className: Q(lr(), e),
|
|
2942
|
+
...u,
|
|
2943
|
+
children: [
|
|
2944
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2945
|
+
/* @__PURE__ */ X("span", {
|
|
2946
|
+
className: Q(dr({
|
|
2947
|
+
color: r,
|
|
2948
|
+
size: a
|
|
2949
|
+
}), "px-3"),
|
|
2950
|
+
children: t
|
|
2951
|
+
}),
|
|
2952
|
+
f,
|
|
2953
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d, n !== void 0 && "ml-2") })
|
|
2954
|
+
]
|
|
2955
|
+
}) : /* @__PURE__ */ Z("div", {
|
|
2956
|
+
"data-slot": "divider",
|
|
2957
|
+
role: "separator",
|
|
2958
|
+
className: Q(lr(), e),
|
|
2959
|
+
...u,
|
|
2960
|
+
children: [
|
|
2961
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2962
|
+
n !== void 0 && /* @__PURE__ */ X("span", {
|
|
2963
|
+
className: Q(fr({
|
|
2964
|
+
color: r,
|
|
2965
|
+
size: a
|
|
2966
|
+
}), "mr-2"),
|
|
2967
|
+
children: n
|
|
2968
|
+
}),
|
|
2969
|
+
/* @__PURE__ */ X("span", {
|
|
2970
|
+
className: Q(dr({
|
|
2971
|
+
color: r,
|
|
2972
|
+
size: a
|
|
2973
|
+
}), "pl-3"),
|
|
2974
|
+
children: t
|
|
2975
|
+
})
|
|
2976
|
+
]
|
|
2977
|
+
});
|
|
2978
|
+
}
|
|
2979
|
+
//#endregion
|
|
2707
2980
|
//#region src/components/ui/empty.tsx
|
|
2708
|
-
function
|
|
2981
|
+
function mr({ className: e, ...t }) {
|
|
2709
2982
|
return /* @__PURE__ */ X("div", {
|
|
2710
2983
|
"data-slot": "empty",
|
|
2711
2984
|
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),
|
|
2712
2985
|
...t
|
|
2713
2986
|
});
|
|
2714
2987
|
}
|
|
2715
|
-
function
|
|
2988
|
+
function hr({ className: e, ...t }) {
|
|
2716
2989
|
return /* @__PURE__ */ X("div", {
|
|
2717
2990
|
"data-slot": "empty-header",
|
|
2718
2991
|
className: Q("flex max-w-sm flex-col items-center gap-2 text-center", e),
|
|
2719
2992
|
...t
|
|
2720
2993
|
});
|
|
2721
2994
|
}
|
|
2722
|
-
var
|
|
2995
|
+
var gr = W("flex shrink-0 items-center justify-center mb-2 [&_svg:not([class*='size-'])]:size-6", {
|
|
2723
2996
|
variants: { variant: {
|
|
2724
2997
|
default: "bg-transparent",
|
|
2725
2998
|
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
2726
2999
|
} },
|
|
2727
3000
|
defaultVariants: { variant: "default" }
|
|
2728
3001
|
});
|
|
2729
|
-
function
|
|
3002
|
+
function _r({ className: e, variant: t = "default", ...n }) {
|
|
2730
3003
|
return /* @__PURE__ */ X("div", {
|
|
2731
3004
|
"data-slot": "empty-icon",
|
|
2732
3005
|
"data-variant": t,
|
|
2733
|
-
className: Q(
|
|
3006
|
+
className: Q(gr({
|
|
2734
3007
|
variant: t,
|
|
2735
3008
|
className: e
|
|
2736
3009
|
})),
|
|
2737
3010
|
...n
|
|
2738
3011
|
});
|
|
2739
3012
|
}
|
|
2740
|
-
function
|
|
3013
|
+
function vr({ className: e, ...t }) {
|
|
2741
3014
|
return /* @__PURE__ */ X("div", {
|
|
2742
3015
|
"data-slot": "empty-title",
|
|
2743
3016
|
className: Q("text-lg font-medium tracking-tight", e),
|
|
2744
3017
|
...t
|
|
2745
3018
|
});
|
|
2746
3019
|
}
|
|
2747
|
-
function
|
|
3020
|
+
function yr({ className: e, ...t }) {
|
|
2748
3021
|
return /* @__PURE__ */ X("p", {
|
|
2749
3022
|
"data-slot": "empty-description",
|
|
2750
3023
|
className: Q("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-foreground", e),
|
|
2751
3024
|
...t
|
|
2752
3025
|
});
|
|
2753
3026
|
}
|
|
2754
|
-
function
|
|
3027
|
+
function br({ className: e, ...t }) {
|
|
2755
3028
|
return /* @__PURE__ */ X("div", {
|
|
2756
3029
|
"data-slot": "empty-content",
|
|
2757
3030
|
className: Q("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
|
|
@@ -2760,22 +3033,22 @@ function pr({ className: e, ...t }) {
|
|
|
2760
3033
|
}
|
|
2761
3034
|
//#endregion
|
|
2762
3035
|
//#region src/components/custom/empty-state.tsx
|
|
2763
|
-
function
|
|
2764
|
-
return /* @__PURE__ */ Z(
|
|
3036
|
+
function xr({ icon: e = /* @__PURE__ */ X(R, {}), mediaVariant: t = "icon", title: n = "No data", description: r, actions: i, ...a }) {
|
|
3037
|
+
return /* @__PURE__ */ Z(mr, {
|
|
2765
3038
|
...a,
|
|
2766
|
-
children: [/* @__PURE__ */ Z(
|
|
2767
|
-
e != null && /* @__PURE__ */ X(
|
|
3039
|
+
children: [/* @__PURE__ */ Z(hr, { children: [
|
|
3040
|
+
e != null && /* @__PURE__ */ X(_r, {
|
|
2768
3041
|
variant: t,
|
|
2769
3042
|
children: e
|
|
2770
3043
|
}),
|
|
2771
|
-
n != null && /* @__PURE__ */ X(
|
|
2772
|
-
r != null && /* @__PURE__ */ X(
|
|
2773
|
-
] }), i != null && /* @__PURE__ */ X(
|
|
3044
|
+
n != null && /* @__PURE__ */ X(vr, { children: n }),
|
|
3045
|
+
r != null && /* @__PURE__ */ X(yr, { children: r })
|
|
3046
|
+
] }), i != null && /* @__PURE__ */ X(br, { children: i })]
|
|
2774
3047
|
});
|
|
2775
3048
|
}
|
|
2776
3049
|
//#endregion
|
|
2777
3050
|
//#region src/components/custom/faceted-filter.tsx
|
|
2778
|
-
function
|
|
3051
|
+
function Sr(e) {
|
|
2779
3052
|
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) => {
|
|
2780
3053
|
if (s) {
|
|
2781
3054
|
let n = new Set(c);
|
|
@@ -2785,32 +3058,32 @@ function hr(e) {
|
|
|
2785
3058
|
n(c.has(t) ? null : t);
|
|
2786
3059
|
}
|
|
2787
3060
|
};
|
|
2788
|
-
return /* @__PURE__ */ Z(
|
|
3061
|
+
return /* @__PURE__ */ Z(an, { children: [/* @__PURE__ */ X(on, {
|
|
2789
3062
|
asChild: !0,
|
|
2790
3063
|
children: /* @__PURE__ */ Z($, {
|
|
2791
3064
|
variant: "outline",
|
|
2792
3065
|
className: Q("w-fit border-dashed", o),
|
|
2793
3066
|
children: [
|
|
2794
|
-
/* @__PURE__ */ X(
|
|
3067
|
+
/* @__PURE__ */ X(ue, {}),
|
|
2795
3068
|
t,
|
|
2796
|
-
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
3069
|
+
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(_t, {
|
|
2797
3070
|
orientation: "vertical",
|
|
2798
3071
|
className: "mx-0.5 h-4"
|
|
2799
|
-
}), /* @__PURE__ */ X(
|
|
3072
|
+
}), /* @__PURE__ */ X(ht, {
|
|
2800
3073
|
variant: "secondary",
|
|
2801
3074
|
className: "rounded-sm px-1 font-normal",
|
|
2802
3075
|
children: c.size
|
|
2803
3076
|
})] })
|
|
2804
3077
|
]
|
|
2805
3078
|
})
|
|
2806
|
-
}), /* @__PURE__ */ X(
|
|
3079
|
+
}), /* @__PURE__ */ X(sn, {
|
|
2807
3080
|
className: "w-56 p-0",
|
|
2808
3081
|
align: "start",
|
|
2809
|
-
children: /* @__PURE__ */ Z(
|
|
2810
|
-
/* @__PURE__ */ X(
|
|
2811
|
-
/* @__PURE__ */ X(
|
|
3082
|
+
children: /* @__PURE__ */ Z(Yt, { children: [a && /* @__PURE__ */ X(Zt, { placeholder: i ?? t }), /* @__PURE__ */ Z(Qt, { children: [
|
|
3083
|
+
/* @__PURE__ */ X($t, { children: "No results found." }),
|
|
3084
|
+
/* @__PURE__ */ X(en, { children: r.map((e) => {
|
|
2812
3085
|
let t = c.has(e.value);
|
|
2813
|
-
return /* @__PURE__ */ Z(
|
|
3086
|
+
return /* @__PURE__ */ Z(nn, {
|
|
2814
3087
|
onSelect: () => l(e.value),
|
|
2815
3088
|
children: [
|
|
2816
3089
|
/* @__PURE__ */ X("div", {
|
|
@@ -2829,7 +3102,7 @@ function hr(e) {
|
|
|
2829
3102
|
]
|
|
2830
3103
|
}, e.value);
|
|
2831
3104
|
}) }),
|
|
2832
|
-
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
3105
|
+
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, { children: /* @__PURE__ */ X(nn, {
|
|
2833
3106
|
onSelect: () => {
|
|
2834
3107
|
s ? e.onChange([]) : e.onChange(null);
|
|
2835
3108
|
},
|
|
@@ -2841,7 +3114,7 @@ function hr(e) {
|
|
|
2841
3114
|
}
|
|
2842
3115
|
//#endregion
|
|
2843
3116
|
//#region src/components/custom/list-card.tsx
|
|
2844
|
-
function
|
|
3117
|
+
function Cr({ name: e, src: t, className: n }) {
|
|
2845
3118
|
let r = e.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
2846
3119
|
return /* @__PURE__ */ Z("span", {
|
|
2847
3120
|
className: Q("flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground", n),
|
|
@@ -2858,7 +3131,7 @@ function gr({ name: e, src: t, className: n }) {
|
|
|
2858
3131
|
})]
|
|
2859
3132
|
});
|
|
2860
3133
|
}
|
|
2861
|
-
function
|
|
3134
|
+
function wr({ icon: e, children: t, className: n }) {
|
|
2862
3135
|
return /* @__PURE__ */ Z("span", {
|
|
2863
3136
|
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),
|
|
2864
3137
|
children: [e, /* @__PURE__ */ X("span", {
|
|
@@ -2867,8 +3140,8 @@ function _r({ icon: e, children: t, className: n }) {
|
|
|
2867
3140
|
})]
|
|
2868
3141
|
});
|
|
2869
3142
|
}
|
|
2870
|
-
function
|
|
2871
|
-
let g = p != null, _ = s === "row", v = l ? /* @__PURE__ */ X(
|
|
3143
|
+
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 }) {
|
|
3144
|
+
let g = p != null, _ = s === "row", v = l ? /* @__PURE__ */ X(On, {
|
|
2872
3145
|
checked: u,
|
|
2873
3146
|
onCheckedChange: (e) => d?.(e === !0),
|
|
2874
3147
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -2878,7 +3151,7 @@ function vr({ title: e, description: t, media: n, badge: r, meta: i, footer: a,
|
|
|
2878
3151
|
src: n,
|
|
2879
3152
|
alt: "",
|
|
2880
3153
|
className: "size-12 shrink-0 rounded-md object-cover"
|
|
2881
|
-
}) : n, b = r == null ? null : typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ X(
|
|
3154
|
+
}) : n, b = r == null ? null : typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ X(ht, {
|
|
2882
3155
|
variant: "secondary",
|
|
2883
3156
|
className: "font-medium",
|
|
2884
3157
|
children: r
|
|
@@ -2966,22 +3239,22 @@ function vr({ title: e, description: t, media: n, badge: r, meta: i, footer: a,
|
|
|
2966
3239
|
]
|
|
2967
3240
|
});
|
|
2968
3241
|
}
|
|
2969
|
-
var
|
|
3242
|
+
var Er = {
|
|
2970
3243
|
1: "grid-cols-1",
|
|
2971
3244
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
2972
3245
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
2973
3246
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
2974
3247
|
};
|
|
2975
|
-
function
|
|
3248
|
+
function Dr({ columns: e = 3, className: t, ...n }) {
|
|
2976
3249
|
return /* @__PURE__ */ X("div", {
|
|
2977
3250
|
"data-slot": "list-card-grid",
|
|
2978
|
-
className: Q("grid w-full gap-4",
|
|
3251
|
+
className: Q("grid w-full gap-4", Er[e], t),
|
|
2979
3252
|
...n
|
|
2980
3253
|
});
|
|
2981
3254
|
}
|
|
2982
3255
|
//#endregion
|
|
2983
3256
|
//#region src/components/custom/map-marker-pin.tsx
|
|
2984
|
-
function
|
|
3257
|
+
function Or({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active: i = !1, label: a, labelOnActive: o = !0, className: s, ...c }) {
|
|
2985
3258
|
let l = a != null && (!o || i);
|
|
2986
3259
|
return /* @__PURE__ */ Z("span", {
|
|
2987
3260
|
"data-slot": "map-marker-pin",
|
|
@@ -3022,7 +3295,7 @@ function xr({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active:
|
|
|
3022
3295
|
}
|
|
3023
3296
|
//#endregion
|
|
3024
3297
|
//#region src/components/custom/not-found.tsx
|
|
3025
|
-
function
|
|
3298
|
+
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 }) {
|
|
3026
3299
|
let u = () => {
|
|
3027
3300
|
i ? i() : typeof window < "u" && window.history.back();
|
|
3028
3301
|
};
|
|
@@ -3067,7 +3340,7 @@ function Sr({ code: e = "404", title: t = "Page Not Found", description: n = "So
|
|
|
3067
3340
|
}
|
|
3068
3341
|
//#endregion
|
|
3069
3342
|
//#region src/components/custom/quick-stat.tsx
|
|
3070
|
-
function
|
|
3343
|
+
function Ar({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
3071
3344
|
return /* @__PURE__ */ Z("div", {
|
|
3072
3345
|
"data-slot": "quick-stat",
|
|
3073
3346
|
className: Q("flex items-center gap-1.5 text-sm", r),
|
|
@@ -3090,7 +3363,7 @@ function Cr({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
|
3090
3363
|
}
|
|
3091
3364
|
//#endregion
|
|
3092
3365
|
//#region src/components/ui/card.tsx
|
|
3093
|
-
var
|
|
3366
|
+
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", {
|
|
3094
3367
|
variants: { variant: {
|
|
3095
3368
|
default: "bg-card text-card-foreground ring-foreground/10",
|
|
3096
3369
|
alt: "bg-muted/40 text-card-foreground ring-foreground/10",
|
|
@@ -3101,51 +3374,51 @@ var wr = W("group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-
|
|
|
3101
3374
|
} },
|
|
3102
3375
|
defaultVariants: { variant: "default" }
|
|
3103
3376
|
});
|
|
3104
|
-
function
|
|
3377
|
+
function Mr({ className: e, size: t = "default", variant: n = "default", ...r }) {
|
|
3105
3378
|
return /* @__PURE__ */ X("div", {
|
|
3106
3379
|
"data-slot": "card",
|
|
3107
3380
|
"data-size": t,
|
|
3108
3381
|
"data-variant": n,
|
|
3109
|
-
className: Q(
|
|
3382
|
+
className: Q(jr({ variant: n }), e),
|
|
3110
3383
|
...r
|
|
3111
3384
|
});
|
|
3112
3385
|
}
|
|
3113
|
-
function
|
|
3386
|
+
function Nr({ className: e, ...t }) {
|
|
3114
3387
|
return /* @__PURE__ */ X("div", {
|
|
3115
3388
|
"data-slot": "card-header",
|
|
3116
3389
|
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),
|
|
3117
3390
|
...t
|
|
3118
3391
|
});
|
|
3119
3392
|
}
|
|
3120
|
-
function
|
|
3393
|
+
function Pr({ className: e, ...t }) {
|
|
3121
3394
|
return /* @__PURE__ */ X("div", {
|
|
3122
3395
|
"data-slot": "card-title",
|
|
3123
3396
|
className: Q("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
3124
3397
|
...t
|
|
3125
3398
|
});
|
|
3126
3399
|
}
|
|
3127
|
-
function
|
|
3400
|
+
function Fr({ className: e, ...t }) {
|
|
3128
3401
|
return /* @__PURE__ */ X("div", {
|
|
3129
3402
|
"data-slot": "card-description",
|
|
3130
3403
|
className: Q("text-sm text-muted-foreground", e),
|
|
3131
3404
|
...t
|
|
3132
3405
|
});
|
|
3133
3406
|
}
|
|
3134
|
-
function
|
|
3407
|
+
function Ir({ className: e, ...t }) {
|
|
3135
3408
|
return /* @__PURE__ */ X("div", {
|
|
3136
3409
|
"data-slot": "card-action",
|
|
3137
3410
|
className: Q("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
3138
3411
|
...t
|
|
3139
3412
|
});
|
|
3140
3413
|
}
|
|
3141
|
-
function
|
|
3414
|
+
function Lr({ className: e, ...t }) {
|
|
3142
3415
|
return /* @__PURE__ */ X("div", {
|
|
3143
3416
|
"data-slot": "card-content",
|
|
3144
3417
|
className: Q("px-4 group-data-[size=sm]/card:px-3", e),
|
|
3145
3418
|
...t
|
|
3146
3419
|
});
|
|
3147
3420
|
}
|
|
3148
|
-
function
|
|
3421
|
+
function Rr({ className: e, ...t }) {
|
|
3149
3422
|
return /* @__PURE__ */ X("div", {
|
|
3150
3423
|
"data-slot": "card-footer",
|
|
3151
3424
|
className: Q("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3", e),
|
|
@@ -3154,7 +3427,7 @@ function jr({ className: e, ...t }) {
|
|
|
3154
3427
|
}
|
|
3155
3428
|
//#endregion
|
|
3156
3429
|
//#region src/components/custom/sensor-card.tsx
|
|
3157
|
-
var
|
|
3430
|
+
var zr = {
|
|
3158
3431
|
primary: {
|
|
3159
3432
|
text: "text-primary",
|
|
3160
3433
|
bg: "bg-primary"
|
|
@@ -3172,8 +3445,8 @@ var Mr = {
|
|
|
3172
3445
|
bg: "bg-muted-foreground"
|
|
3173
3446
|
}
|
|
3174
3447
|
};
|
|
3175
|
-
function
|
|
3176
|
-
let h =
|
|
3448
|
+
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 }) {
|
|
3449
|
+
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", {
|
|
3177
3450
|
className: "flex items-center gap-3",
|
|
3178
3451
|
children: [y, /* @__PURE__ */ Z("div", {
|
|
3179
3452
|
className: "flex flex-col",
|
|
@@ -3215,7 +3488,7 @@ function Nr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3215
3488
|
children: c && r !== "" && !isNaN(Number(r)) ? `${r}%` : r
|
|
3216
3489
|
})]
|
|
3217
3490
|
})] }), 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);
|
|
3218
|
-
return d === "standalone" ? /* @__PURE__ */ X(
|
|
3491
|
+
return d === "standalone" ? /* @__PURE__ */ X(Mr, {
|
|
3219
3492
|
className: "p-0",
|
|
3220
3493
|
onClick: f,
|
|
3221
3494
|
children: /* @__PURE__ */ X("div", {
|
|
@@ -3230,39 +3503,39 @@ function Nr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3230
3503
|
}
|
|
3231
3504
|
//#endregion
|
|
3232
3505
|
//#region src/components/ui/sheet.tsx
|
|
3233
|
-
function
|
|
3506
|
+
function Vr({ ...e }) {
|
|
3234
3507
|
return /* @__PURE__ */ X(K.Root, {
|
|
3235
3508
|
"data-slot": "sheet",
|
|
3236
3509
|
...e
|
|
3237
3510
|
});
|
|
3238
3511
|
}
|
|
3239
|
-
function
|
|
3512
|
+
function Hr({ ...e }) {
|
|
3240
3513
|
return /* @__PURE__ */ X(K.Trigger, {
|
|
3241
3514
|
"data-slot": "sheet-trigger",
|
|
3242
3515
|
...e
|
|
3243
3516
|
});
|
|
3244
3517
|
}
|
|
3245
|
-
function
|
|
3518
|
+
function Ur({ ...e }) {
|
|
3246
3519
|
return /* @__PURE__ */ X(K.Close, {
|
|
3247
3520
|
"data-slot": "sheet-close",
|
|
3248
3521
|
...e
|
|
3249
3522
|
});
|
|
3250
3523
|
}
|
|
3251
|
-
function
|
|
3524
|
+
function Wr({ ...e }) {
|
|
3252
3525
|
return /* @__PURE__ */ X(K.Portal, {
|
|
3253
3526
|
"data-slot": "sheet-portal",
|
|
3254
3527
|
...e
|
|
3255
3528
|
});
|
|
3256
3529
|
}
|
|
3257
|
-
function
|
|
3530
|
+
function Gr({ className: e, ...t }) {
|
|
3258
3531
|
return /* @__PURE__ */ X(K.Overlay, {
|
|
3259
3532
|
"data-slot": "sheet-overlay",
|
|
3260
3533
|
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),
|
|
3261
3534
|
...t
|
|
3262
3535
|
});
|
|
3263
3536
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return /* @__PURE__ */ Z(
|
|
3537
|
+
function Kr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
3538
|
+
return /* @__PURE__ */ Z(Wr, { children: [/* @__PURE__ */ X(Gr, {}), /* @__PURE__ */ Z(K.Content, {
|
|
3266
3539
|
"data-slot": "sheet-content",
|
|
3267
3540
|
"data-side": n,
|
|
3268
3541
|
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),
|
|
@@ -3274,7 +3547,7 @@ function zr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
3274
3547
|
variant: "ghost",
|
|
3275
3548
|
className: "absolute top-3 right-3",
|
|
3276
3549
|
size: "icon-sm",
|
|
3277
|
-
children: [/* @__PURE__ */ X(
|
|
3550
|
+
children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
|
|
3278
3551
|
className: "sr-only",
|
|
3279
3552
|
children: "Close"
|
|
3280
3553
|
})]
|
|
@@ -3282,28 +3555,28 @@ function zr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
3282
3555
|
})]
|
|
3283
3556
|
})] });
|
|
3284
3557
|
}
|
|
3285
|
-
function
|
|
3558
|
+
function qr({ className: e, ...t }) {
|
|
3286
3559
|
return /* @__PURE__ */ X("div", {
|
|
3287
3560
|
"data-slot": "sheet-header",
|
|
3288
3561
|
className: Q("flex flex-col gap-0.5 p-4", e),
|
|
3289
3562
|
...t
|
|
3290
3563
|
});
|
|
3291
3564
|
}
|
|
3292
|
-
function
|
|
3565
|
+
function Jr({ className: e, ...t }) {
|
|
3293
3566
|
return /* @__PURE__ */ X("div", {
|
|
3294
3567
|
"data-slot": "sheet-footer",
|
|
3295
3568
|
className: Q("mt-auto flex flex-col gap-2 p-4", e),
|
|
3296
3569
|
...t
|
|
3297
3570
|
});
|
|
3298
3571
|
}
|
|
3299
|
-
function
|
|
3572
|
+
function Yr({ className: e, ...t }) {
|
|
3300
3573
|
return /* @__PURE__ */ X(K.Title, {
|
|
3301
3574
|
"data-slot": "sheet-title",
|
|
3302
3575
|
className: Q("text-base font-medium text-foreground", e),
|
|
3303
3576
|
...t
|
|
3304
3577
|
});
|
|
3305
3578
|
}
|
|
3306
|
-
function
|
|
3579
|
+
function Xr({ className: e, ...t }) {
|
|
3307
3580
|
return /* @__PURE__ */ X(K.Description, {
|
|
3308
3581
|
"data-slot": "sheet-description",
|
|
3309
3582
|
className: Q("text-sm text-muted-foreground", e),
|
|
@@ -3312,17 +3585,17 @@ function Ur({ className: e, ...t }) {
|
|
|
3312
3585
|
}
|
|
3313
3586
|
//#endregion
|
|
3314
3587
|
//#region src/components/custom/side-sheet.tsx
|
|
3315
|
-
function
|
|
3588
|
+
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 }) {
|
|
3316
3589
|
let d = s !== void 0;
|
|
3317
|
-
return /* @__PURE__ */ X(
|
|
3590
|
+
return /* @__PURE__ */ X(Vr, {
|
|
3318
3591
|
open: n,
|
|
3319
3592
|
onOpenChange: c ? void 0 : (e) => !e && r(),
|
|
3320
|
-
children: /* @__PURE__ */ Z(
|
|
3593
|
+
children: /* @__PURE__ */ Z(Kr, {
|
|
3321
3594
|
side: a,
|
|
3322
3595
|
showCloseButton: !1,
|
|
3323
3596
|
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),
|
|
3324
3597
|
children: [
|
|
3325
|
-
/* @__PURE__ */ Z(
|
|
3598
|
+
/* @__PURE__ */ Z(qr, {
|
|
3326
3599
|
className: "shrink-0 flex-row items-center gap-2 border-b border-border px-4 py-3",
|
|
3327
3600
|
children: [/* @__PURE__ */ X($, {
|
|
3328
3601
|
type: "button",
|
|
@@ -3333,13 +3606,13 @@ function Wr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3333
3606
|
onClick: (e) => {
|
|
3334
3607
|
e.preventDefault(), e.stopPropagation(), (d ? s : r)();
|
|
3335
3608
|
},
|
|
3336
|
-
children: X(d ? x :
|
|
3609
|
+
children: X(d ? x : U, {})
|
|
3337
3610
|
}), /* @__PURE__ */ Z("div", {
|
|
3338
3611
|
className: "flex min-w-0 flex-col",
|
|
3339
|
-
children: [/* @__PURE__ */ X(
|
|
3612
|
+
children: [/* @__PURE__ */ X(Yr, {
|
|
3340
3613
|
className: "truncate text-left text-lg font-semibold",
|
|
3341
3614
|
children: t
|
|
3342
|
-
}), i && /* @__PURE__ */ X(
|
|
3615
|
+
}), i && /* @__PURE__ */ X(Xr, {
|
|
3343
3616
|
className: "text-left",
|
|
3344
3617
|
children: i
|
|
3345
3618
|
})]
|
|
@@ -3357,7 +3630,7 @@ function Wr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3357
3630
|
})
|
|
3358
3631
|
});
|
|
3359
3632
|
}
|
|
3360
|
-
function
|
|
3633
|
+
function Qr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
3361
3634
|
return /* @__PURE__ */ Z("div", {
|
|
3362
3635
|
"data-slot": "side-sheet-section",
|
|
3363
3636
|
...i,
|
|
@@ -3379,7 +3652,7 @@ function Gr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
|
3379
3652
|
}
|
|
3380
3653
|
//#endregion
|
|
3381
3654
|
//#region src/components/custom/stat-card.tsx
|
|
3382
|
-
var
|
|
3655
|
+
var $r = {
|
|
3383
3656
|
primary: {
|
|
3384
3657
|
text: "text-primary",
|
|
3385
3658
|
bg: "bg-primary",
|
|
@@ -3406,7 +3679,7 @@ var Kr = {
|
|
|
3406
3679
|
soft: "bg-muted"
|
|
3407
3680
|
}
|
|
3408
3681
|
};
|
|
3409
|
-
function
|
|
3682
|
+
function ei({ data: e, colorVar: t }) {
|
|
3410
3683
|
let r = n.useId().replace(/:/g, "");
|
|
3411
3684
|
return /* @__PURE__ */ X("div", {
|
|
3412
3685
|
className: "mt-3 h-16 w-full",
|
|
@@ -3453,11 +3726,11 @@ function qr({ data: e, colorVar: t }) {
|
|
|
3453
3726
|
})
|
|
3454
3727
|
});
|
|
3455
3728
|
}
|
|
3456
|
-
function
|
|
3457
|
-
let u =
|
|
3458
|
-
return /* @__PURE__ */ Z(
|
|
3729
|
+
function ti({ title: e, value: t, description: n, icon: r, color: i = "primary", trend: a, progress: o, sparkline: s, ring: c, className: l }) {
|
|
3730
|
+
let u = $r[i], d = i === "muted" ? "var(--muted-foreground)" : `var(--${ni(i)})`;
|
|
3731
|
+
return /* @__PURE__ */ Z(Mr, {
|
|
3459
3732
|
className: Q("gap-3", l),
|
|
3460
|
-
children: [/* @__PURE__ */ Z(
|
|
3733
|
+
children: [/* @__PURE__ */ Z(Nr, {
|
|
3461
3734
|
className: "flex flex-row items-start justify-between gap-2 pb-0",
|
|
3462
3735
|
children: [/* @__PURE__ */ X("span", {
|
|
3463
3736
|
className: "text-sm font-medium text-muted-foreground",
|
|
@@ -3466,10 +3739,10 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3466
3739
|
className: Q("flex size-9 shrink-0 items-center justify-center rounded-md", u.soft, u.text, "[&_svg]:size-4"),
|
|
3467
3740
|
children: r
|
|
3468
3741
|
})]
|
|
3469
|
-
}), /* @__PURE__ */ Z(
|
|
3742
|
+
}), /* @__PURE__ */ Z(Lr, { children: [
|
|
3470
3743
|
c ? /* @__PURE__ */ Z("div", {
|
|
3471
3744
|
className: "mt-1 flex items-center gap-4",
|
|
3472
|
-
children: [/* @__PURE__ */ X(
|
|
3745
|
+
children: [/* @__PURE__ */ X(ri, {
|
|
3473
3746
|
ring: c,
|
|
3474
3747
|
colors: u
|
|
3475
3748
|
}), /* @__PURE__ */ Z("div", {
|
|
@@ -3490,7 +3763,7 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3490
3763
|
className: "mt-1 flex items-center gap-1 text-sm text-muted-foreground",
|
|
3491
3764
|
children: [/* @__PURE__ */ Z("span", {
|
|
3492
3765
|
className: Q("flex items-center gap-1 font-medium", a.direction === "down" ? "text-red" : "text-green"),
|
|
3493
|
-
children: [a.direction === "down" ? /* @__PURE__ */ X(
|
|
3766
|
+
children: [a.direction === "down" ? /* @__PURE__ */ X(he, { className: "size-4" }) : /* @__PURE__ */ X(ge, { className: "size-4" }), a.value]
|
|
3494
3767
|
}), a.label]
|
|
3495
3768
|
}) : n && !c ? /* @__PURE__ */ X("p", {
|
|
3496
3769
|
className: "mt-1 text-sm text-muted-foreground",
|
|
@@ -3509,14 +3782,14 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3509
3782
|
children: [/* @__PURE__ */ X("span", { children: o.caption }), /* @__PURE__ */ X("span", { children: o.target })]
|
|
3510
3783
|
})]
|
|
3511
3784
|
}),
|
|
3512
|
-
s && s.length > 1 && /* @__PURE__ */ X(
|
|
3785
|
+
s && s.length > 1 && /* @__PURE__ */ X(ei, {
|
|
3513
3786
|
data: s,
|
|
3514
3787
|
colorVar: d
|
|
3515
3788
|
})
|
|
3516
3789
|
] })]
|
|
3517
3790
|
});
|
|
3518
3791
|
}
|
|
3519
|
-
function
|
|
3792
|
+
function ni(e) {
|
|
3520
3793
|
switch (e) {
|
|
3521
3794
|
case "primary": return "primary";
|
|
3522
3795
|
case "success": return "green";
|
|
@@ -3525,7 +3798,7 @@ function Yr(e) {
|
|
|
3525
3798
|
default: return "muted-foreground";
|
|
3526
3799
|
}
|
|
3527
3800
|
}
|
|
3528
|
-
function
|
|
3801
|
+
function ri({ ring: e, colors: t }) {
|
|
3529
3802
|
let n = Math.max(0, Math.min(100, e.value)), r = 2 * Math.PI * 34;
|
|
3530
3803
|
return /* @__PURE__ */ Z("div", {
|
|
3531
3804
|
className: "relative size-20 shrink-0",
|
|
@@ -3559,7 +3832,7 @@ function Xr({ ring: e, colors: t }) {
|
|
|
3559
3832
|
}
|
|
3560
3833
|
//#endregion
|
|
3561
3834
|
//#region src/components/custom/status-list.tsx
|
|
3562
|
-
var
|
|
3835
|
+
var ii = {
|
|
3563
3836
|
neutral: {
|
|
3564
3837
|
text: "text-muted-foreground",
|
|
3565
3838
|
pill: "border-transparent bg-muted text-muted-foreground",
|
|
@@ -3601,16 +3874,16 @@ var Zr = {
|
|
|
3601
3874
|
avatar: "bg-red/15 text-red"
|
|
3602
3875
|
}
|
|
3603
3876
|
};
|
|
3604
|
-
function
|
|
3877
|
+
function ai({ tone: e = "neutral", className: t, children: n }) {
|
|
3605
3878
|
return /* @__PURE__ */ X("span", {
|
|
3606
|
-
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5",
|
|
3879
|
+
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5", ii[e].softBox, t),
|
|
3607
3880
|
children: n
|
|
3608
3881
|
});
|
|
3609
3882
|
}
|
|
3610
|
-
function
|
|
3883
|
+
function oi({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
3611
3884
|
let i = t.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
3612
3885
|
return /* @__PURE__ */ X("span", {
|
|
3613
|
-
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold",
|
|
3886
|
+
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold", ii[n].avatar, r),
|
|
3614
3887
|
children: e ? /* @__PURE__ */ X("img", {
|
|
3615
3888
|
src: e,
|
|
3616
3889
|
alt: t,
|
|
@@ -3618,14 +3891,14 @@ function $r({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
|
3618
3891
|
}) : i
|
|
3619
3892
|
});
|
|
3620
3893
|
}
|
|
3621
|
-
function
|
|
3894
|
+
function si({ className: e, ...t }) {
|
|
3622
3895
|
return /* @__PURE__ */ X("div", {
|
|
3623
3896
|
"data-slot": "status-list",
|
|
3624
3897
|
className: Q("flex flex-col gap-2", e),
|
|
3625
3898
|
...t
|
|
3626
3899
|
});
|
|
3627
3900
|
}
|
|
3628
|
-
function
|
|
3901
|
+
function ci({ label: e, count: t, className: n, children: r, ...i }) {
|
|
3629
3902
|
return /* @__PURE__ */ Z("div", {
|
|
3630
3903
|
"data-slot": "status-list-group",
|
|
3631
3904
|
className: n,
|
|
@@ -3646,8 +3919,8 @@ function ti({ label: e, count: t, className: n, children: r, ...i }) {
|
|
|
3646
3919
|
})]
|
|
3647
3920
|
});
|
|
3648
3921
|
}
|
|
3649
|
-
function
|
|
3650
|
-
let u =
|
|
3922
|
+
function li({ media: e, title: t, description: n, status: r, statusVariant: i = "pill", hint: a, tone: o = "neutral", active: s = !1, className: c, ...l }) {
|
|
3923
|
+
let u = ii[o];
|
|
3651
3924
|
return /* @__PURE__ */ Z("div", {
|
|
3652
3925
|
"data-slot": "status-list-item",
|
|
3653
3926
|
className: Q("flex items-center gap-3 rounded-lg border p-3", s ? Q("border-transparent ring-1", u.activeBg) : "bg-card", c),
|
|
@@ -3672,7 +3945,7 @@ function ni({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3672
3945
|
}), r != null && (i === "text" ? /* @__PURE__ */ X("span", {
|
|
3673
3946
|
className: Q("text-sm font-medium", u.text),
|
|
3674
3947
|
children: r
|
|
3675
|
-
}) : /* @__PURE__ */ X(
|
|
3948
|
+
}) : /* @__PURE__ */ X(ht, {
|
|
3676
3949
|
variant: "outline",
|
|
3677
3950
|
className: Q("font-medium", i === "outline" ? u.outline : u.pill),
|
|
3678
3951
|
children: r
|
|
@@ -3683,26 +3956,26 @@ function ni({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3683
3956
|
}
|
|
3684
3957
|
//#endregion
|
|
3685
3958
|
//#region src/components/ui/select.tsx
|
|
3686
|
-
function
|
|
3959
|
+
function ui({ ...e }) {
|
|
3687
3960
|
return /* @__PURE__ */ X(J.Root, {
|
|
3688
3961
|
"data-slot": "select",
|
|
3689
3962
|
...e
|
|
3690
3963
|
});
|
|
3691
3964
|
}
|
|
3692
|
-
function
|
|
3965
|
+
function di({ className: e, ...t }) {
|
|
3693
3966
|
return /* @__PURE__ */ X(J.Group, {
|
|
3694
3967
|
"data-slot": "select-group",
|
|
3695
3968
|
className: Q("scroll-my-1 p-1", e),
|
|
3696
3969
|
...t
|
|
3697
3970
|
});
|
|
3698
3971
|
}
|
|
3699
|
-
function
|
|
3972
|
+
function fi({ ...e }) {
|
|
3700
3973
|
return /* @__PURE__ */ X(J.Value, {
|
|
3701
3974
|
"data-slot": "select-value",
|
|
3702
3975
|
...e
|
|
3703
3976
|
});
|
|
3704
3977
|
}
|
|
3705
|
-
function
|
|
3978
|
+
function pi({ className: e, size: t = "default", children: n, ...r }) {
|
|
3706
3979
|
return /* @__PURE__ */ Z(J.Trigger, {
|
|
3707
3980
|
"data-slot": "select-trigger",
|
|
3708
3981
|
"data-size": t,
|
|
@@ -3714,7 +3987,7 @@ function oi({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
3714
3987
|
})]
|
|
3715
3988
|
});
|
|
3716
3989
|
}
|
|
3717
|
-
function
|
|
3990
|
+
function mi({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
3718
3991
|
return /* @__PURE__ */ X(J.Portal, { children: /* @__PURE__ */ Z(J.Content, {
|
|
3719
3992
|
"data-slot": "select-content",
|
|
3720
3993
|
"data-align-trigger": n === "item-aligned",
|
|
@@ -3723,24 +3996,24 @@ function si({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
3723
3996
|
align: r,
|
|
3724
3997
|
...i,
|
|
3725
3998
|
children: [
|
|
3726
|
-
/* @__PURE__ */ X(
|
|
3999
|
+
/* @__PURE__ */ X(vi, {}),
|
|
3727
4000
|
/* @__PURE__ */ X(J.Viewport, {
|
|
3728
4001
|
"data-position": n,
|
|
3729
4002
|
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" && ""),
|
|
3730
4003
|
children: t
|
|
3731
4004
|
}),
|
|
3732
|
-
/* @__PURE__ */ X(
|
|
4005
|
+
/* @__PURE__ */ X(yi, {})
|
|
3733
4006
|
]
|
|
3734
4007
|
}) });
|
|
3735
4008
|
}
|
|
3736
|
-
function
|
|
4009
|
+
function hi({ className: e, ...t }) {
|
|
3737
4010
|
return /* @__PURE__ */ X(J.Label, {
|
|
3738
4011
|
"data-slot": "select-label",
|
|
3739
4012
|
className: Q("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
3740
4013
|
...t
|
|
3741
4014
|
});
|
|
3742
4015
|
}
|
|
3743
|
-
function
|
|
4016
|
+
function gi({ className: e, children: t, ...n }) {
|
|
3744
4017
|
return /* @__PURE__ */ Z(J.Item, {
|
|
3745
4018
|
"data-slot": "select-item",
|
|
3746
4019
|
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),
|
|
@@ -3751,14 +4024,14 @@ function li({ className: e, children: t, ...n }) {
|
|
|
3751
4024
|
}), /* @__PURE__ */ X(J.ItemText, { children: t })]
|
|
3752
4025
|
});
|
|
3753
4026
|
}
|
|
3754
|
-
function
|
|
4027
|
+
function _i({ className: e, ...t }) {
|
|
3755
4028
|
return /* @__PURE__ */ X(J.Separator, {
|
|
3756
4029
|
"data-slot": "select-separator",
|
|
3757
4030
|
className: Q("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
3758
4031
|
...t
|
|
3759
4032
|
});
|
|
3760
4033
|
}
|
|
3761
|
-
function
|
|
4034
|
+
function vi({ className: e, ...t }) {
|
|
3762
4035
|
return /* @__PURE__ */ X(J.ScrollUpButton, {
|
|
3763
4036
|
"data-slot": "select-scroll-up-button",
|
|
3764
4037
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3766,7 +4039,7 @@ function di({ className: e, ...t }) {
|
|
|
3766
4039
|
children: /* @__PURE__ */ X(C, {})
|
|
3767
4040
|
});
|
|
3768
4041
|
}
|
|
3769
|
-
function
|
|
4042
|
+
function yi({ className: e, ...t }) {
|
|
3770
4043
|
return /* @__PURE__ */ X(J.ScrollDownButton, {
|
|
3771
4044
|
"data-slot": "select-scroll-down-button",
|
|
3772
4045
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3776,7 +4049,7 @@ function fi({ className: e, ...t }) {
|
|
|
3776
4049
|
}
|
|
3777
4050
|
//#endregion
|
|
3778
4051
|
//#region src/components/ui/calendar.tsx
|
|
3779
|
-
function
|
|
4052
|
+
function bi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: a, formatters: o, components: s, ...c }) {
|
|
3780
4053
|
let l = Ve();
|
|
3781
4054
|
return /* @__PURE__ */ X(Be, {
|
|
3782
4055
|
showOutsideDays: n,
|
|
@@ -3828,19 +4101,19 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3828
4101
|
}),
|
|
3829
4102
|
Dropdown: ({ value: e, onChange: t, options: n = [], "aria-label": r }) => {
|
|
3830
4103
|
let i = n.find((t) => t.value === Number(e));
|
|
3831
|
-
return /* @__PURE__ */ Z(
|
|
4104
|
+
return /* @__PURE__ */ Z(ui, {
|
|
3832
4105
|
value: e == null ? void 0 : String(e),
|
|
3833
4106
|
onValueChange: (e) => {
|
|
3834
4107
|
t?.({ target: { value: e } });
|
|
3835
4108
|
},
|
|
3836
|
-
children: [/* @__PURE__ */ X(
|
|
4109
|
+
children: [/* @__PURE__ */ X(pi, {
|
|
3837
4110
|
size: "sm",
|
|
3838
4111
|
"aria-label": r,
|
|
3839
4112
|
className: "h-7 gap-1 border-none px-2 font-medium shadow-none focus-visible:ring-0 [&_svg]:opacity-60",
|
|
3840
|
-
children: /* @__PURE__ */ X(
|
|
3841
|
-
}), /* @__PURE__ */ X(
|
|
4113
|
+
children: /* @__PURE__ */ X(fi, { children: i?.label })
|
|
4114
|
+
}), /* @__PURE__ */ X(mi, {
|
|
3842
4115
|
className: "max-h-60",
|
|
3843
|
-
children: n.map((e) => /* @__PURE__ */ X(
|
|
4116
|
+
children: n.map((e) => /* @__PURE__ */ X(gi, {
|
|
3844
4117
|
value: String(e.value),
|
|
3845
4118
|
disabled: e.disabled,
|
|
3846
4119
|
children: e.label
|
|
@@ -3848,7 +4121,7 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3848
4121
|
})]
|
|
3849
4122
|
});
|
|
3850
4123
|
},
|
|
3851
|
-
DayButton: ({ ...e }) => /* @__PURE__ */ X(
|
|
4124
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ X(xi, {
|
|
3852
4125
|
locale: a,
|
|
3853
4126
|
...e
|
|
3854
4127
|
}),
|
|
@@ -3864,7 +4137,7 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3864
4137
|
...c
|
|
3865
4138
|
});
|
|
3866
4139
|
}
|
|
3867
|
-
function
|
|
4140
|
+
function xi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
3868
4141
|
let o = Ve(), s = n.useRef(null);
|
|
3869
4142
|
return n.useEffect(() => {
|
|
3870
4143
|
r.focused && s.current?.focus();
|
|
@@ -3883,10 +4156,10 @@ function mi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
|
3883
4156
|
}
|
|
3884
4157
|
//#endregion
|
|
3885
4158
|
//#region src/components/custom/date-time-range-picker-utils.ts
|
|
3886
|
-
function
|
|
4159
|
+
function Si(e) {
|
|
3887
4160
|
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`;
|
|
3888
4161
|
}
|
|
3889
|
-
function
|
|
4162
|
+
function Ci(e, t) {
|
|
3890
4163
|
if (!e) return null;
|
|
3891
4164
|
let n = new Date(e);
|
|
3892
4165
|
if (isNaN(n.getTime())) return null;
|
|
@@ -3909,7 +4182,7 @@ function gi(e, t) {
|
|
|
3909
4182
|
s: i("second").padStart(2, "0")
|
|
3910
4183
|
};
|
|
3911
4184
|
}
|
|
3912
|
-
function
|
|
4185
|
+
function wi(e, t, n, r, i, a, o) {
|
|
3913
4186
|
let s = Date.UTC(e, t, n, parseInt(r), parseInt(i), parseInt(a)), c = new Date(s), l = new Intl.DateTimeFormat("en-US", {
|
|
3914
4187
|
year: "numeric",
|
|
3915
4188
|
month: "2-digit",
|
|
@@ -3920,9 +4193,9 @@ function _i(e, t, n, r, i, a, o) {
|
|
|
3920
4193
|
hour12: !1,
|
|
3921
4194
|
timeZone: o
|
|
3922
4195
|
}).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;
|
|
3923
|
-
return
|
|
4196
|
+
return Si(new Date(s - d));
|
|
3924
4197
|
}
|
|
3925
|
-
var
|
|
4198
|
+
var Ti = [
|
|
3926
4199
|
{
|
|
3927
4200
|
value: "hour",
|
|
3928
4201
|
label: "Hour"
|
|
@@ -3940,8 +4213,8 @@ var vi = [
|
|
|
3940
4213
|
label: "Month"
|
|
3941
4214
|
}
|
|
3942
4215
|
];
|
|
3943
|
-
function
|
|
3944
|
-
let t = /* @__PURE__ */ new Date(), n =
|
|
4216
|
+
function Ei(e) {
|
|
4217
|
+
let t = /* @__PURE__ */ new Date(), n = Si(t), r = new Date(t);
|
|
3945
4218
|
switch (e) {
|
|
3946
4219
|
case "hour":
|
|
3947
4220
|
r.setUTCHours(r.getUTCHours() - 1);
|
|
@@ -3957,20 +4230,20 @@ function yi(e) {
|
|
|
3957
4230
|
break;
|
|
3958
4231
|
}
|
|
3959
4232
|
return {
|
|
3960
|
-
from:
|
|
4233
|
+
from: Si(r),
|
|
3961
4234
|
to: n
|
|
3962
4235
|
};
|
|
3963
4236
|
}
|
|
3964
|
-
function
|
|
4237
|
+
function Di(e, t) {
|
|
3965
4238
|
let n = new Date(e.from).getTime(), r = new Date(e.to).getTime(), i = r - n, a = t === "prev" ? -i : i;
|
|
3966
4239
|
return {
|
|
3967
4240
|
preset: e.preset,
|
|
3968
|
-
from:
|
|
3969
|
-
to:
|
|
4241
|
+
from: Si(new Date(n + a)),
|
|
4242
|
+
to: Si(new Date(r + a))
|
|
3970
4243
|
};
|
|
3971
4244
|
}
|
|
3972
|
-
function
|
|
3973
|
-
if (e.preset) return
|
|
4245
|
+
function Oi(e, t) {
|
|
4246
|
+
if (e.preset) return Ti.find((t) => t.value === e.preset)?.label ?? e.preset;
|
|
3974
4247
|
if (e.from && e.to) {
|
|
3975
4248
|
let n = (e) => new Date(e).toLocaleString("en-US", {
|
|
3976
4249
|
year: "numeric",
|
|
@@ -3987,7 +4260,7 @@ function xi(e, t) {
|
|
|
3987
4260
|
}
|
|
3988
4261
|
//#endregion
|
|
3989
4262
|
//#region src/components/custom/date-time-picker.tsx
|
|
3990
|
-
function
|
|
4263
|
+
function ki({ value: e, max: t, onChange: r }) {
|
|
3991
4264
|
let [i, a] = n.useState(e);
|
|
3992
4265
|
n.useEffect(() => {
|
|
3993
4266
|
a(e);
|
|
@@ -4012,13 +4285,13 @@ function Si({ value: e, max: t, onChange: r }) {
|
|
|
4012
4285
|
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")
|
|
4013
4286
|
});
|
|
4014
4287
|
}
|
|
4015
|
-
function
|
|
4016
|
-
let [p, m] = n.useState(!1), h = o || "UTC", _ =
|
|
4288
|
+
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 }) {
|
|
4289
|
+
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");
|
|
4017
4290
|
n.useEffect(() => {
|
|
4018
|
-
let t =
|
|
4291
|
+
let t = Ci(e, h);
|
|
4019
4292
|
y(t?.h ?? "00"), x(t?.m ?? "00"), C(t?.s ?? "00");
|
|
4020
4293
|
}, [e, h]);
|
|
4021
|
-
let w = _ ? new Date(_.year, _.month, _.day) : void 0, T = (e, n, r, i, a, o) => t(
|
|
4294
|
+
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) => {
|
|
4022
4295
|
e && (T(e.getFullYear(), e.getMonth(), e.getDate(), a ? v : "00", a ? b : "00", a ? S : "00"), a || m(!1));
|
|
4023
4296
|
}, D = (e, t) => {
|
|
4024
4297
|
let n = e === "h" ? t : v, r = e === "m" ? t : b, i = e === "s" ? t : S;
|
|
@@ -4050,11 +4323,11 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4050
4323
|
children: [r != null && /* @__PURE__ */ X("label", {
|
|
4051
4324
|
className: "px-0.5 text-xs text-muted-foreground",
|
|
4052
4325
|
children: r
|
|
4053
|
-
}), /* @__PURE__ */ Z(
|
|
4326
|
+
}), /* @__PURE__ */ Z(an, {
|
|
4054
4327
|
open: p,
|
|
4055
4328
|
onOpenChange: m,
|
|
4056
4329
|
modal: !1,
|
|
4057
|
-
children: [/* @__PURE__ */ X(
|
|
4330
|
+
children: [/* @__PURE__ */ X(on, {
|
|
4058
4331
|
asChild: !0,
|
|
4059
4332
|
children: /* @__PURE__ */ Z("button", {
|
|
4060
4333
|
type: "button",
|
|
@@ -4065,11 +4338,11 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4065
4338
|
children: I
|
|
4066
4339
|
}), /* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" })]
|
|
4067
4340
|
})
|
|
4068
|
-
}), /* @__PURE__ */ Z(
|
|
4341
|
+
}), /* @__PURE__ */ Z(sn, {
|
|
4069
4342
|
className: "w-auto p-0",
|
|
4070
4343
|
align: "start",
|
|
4071
4344
|
sideOffset: 4,
|
|
4072
|
-
children: [/* @__PURE__ */ X(
|
|
4345
|
+
children: [/* @__PURE__ */ X(bi, {
|
|
4073
4346
|
mode: "single",
|
|
4074
4347
|
selected: w,
|
|
4075
4348
|
onSelect: E,
|
|
@@ -4083,7 +4356,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4083
4356
|
className: "flex items-center gap-2 border-t px-3 py-2.5",
|
|
4084
4357
|
children: [
|
|
4085
4358
|
/* @__PURE__ */ X(k, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4086
|
-
/* @__PURE__ */ X(
|
|
4359
|
+
/* @__PURE__ */ X(ki, {
|
|
4087
4360
|
value: v,
|
|
4088
4361
|
max: 23,
|
|
4089
4362
|
onChange: (e) => D("h", e)
|
|
@@ -4092,7 +4365,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4092
4365
|
className: "text-sm font-medium text-muted-foreground",
|
|
4093
4366
|
children: ":"
|
|
4094
4367
|
}),
|
|
4095
|
-
/* @__PURE__ */ X(
|
|
4368
|
+
/* @__PURE__ */ X(ki, {
|
|
4096
4369
|
value: b,
|
|
4097
4370
|
max: 59,
|
|
4098
4371
|
onChange: (e) => D("m", e)
|
|
@@ -4101,7 +4374,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4101
4374
|
className: "text-sm font-medium text-muted-foreground",
|
|
4102
4375
|
children: ":"
|
|
4103
4376
|
}),
|
|
4104
|
-
/* @__PURE__ */ X(
|
|
4377
|
+
/* @__PURE__ */ X(ki, {
|
|
4105
4378
|
value: S,
|
|
4106
4379
|
max: 59,
|
|
4107
4380
|
onChange: (e) => D("s", e)
|
|
@@ -4114,8 +4387,8 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4114
4387
|
}
|
|
4115
4388
|
//#endregion
|
|
4116
4389
|
//#region src/components/custom/date-time-range-picker.tsx
|
|
4117
|
-
var
|
|
4118
|
-
let c = a ??
|
|
4390
|
+
var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o }, s) {
|
|
4391
|
+
let c = a ?? Ti, [l, u] = n.useState(!1), [d, f] = n.useState(e.from), [p, m] = n.useState(e.to);
|
|
4119
4392
|
n.useEffect(() => {
|
|
4120
4393
|
f(e.from), m(e.to);
|
|
4121
4394
|
}, [e]);
|
|
@@ -4127,13 +4400,13 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4127
4400
|
}, _ = (e) => {
|
|
4128
4401
|
t({
|
|
4129
4402
|
preset: e,
|
|
4130
|
-
...
|
|
4403
|
+
...Ei(e)
|
|
4131
4404
|
}), u(!1);
|
|
4132
4405
|
};
|
|
4133
|
-
return /* @__PURE__ */ Z(
|
|
4406
|
+
return /* @__PURE__ */ Z(an, {
|
|
4134
4407
|
open: l,
|
|
4135
4408
|
onOpenChange: u,
|
|
4136
|
-
children: [/* @__PURE__ */ X(
|
|
4409
|
+
children: [/* @__PURE__ */ X(on, {
|
|
4137
4410
|
asChild: !0,
|
|
4138
4411
|
children: /* @__PURE__ */ Z("button", {
|
|
4139
4412
|
ref: s,
|
|
@@ -4143,12 +4416,12 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4143
4416
|
/* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" }),
|
|
4144
4417
|
/* @__PURE__ */ X("span", {
|
|
4145
4418
|
className: "truncate",
|
|
4146
|
-
children:
|
|
4419
|
+
children: Oi(e, i)
|
|
4147
4420
|
}),
|
|
4148
4421
|
/* @__PURE__ */ X(y, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform", l && "rotate-180") })
|
|
4149
4422
|
]
|
|
4150
4423
|
})
|
|
4151
|
-
}), /* @__PURE__ */ X(
|
|
4424
|
+
}), /* @__PURE__ */ X(sn, {
|
|
4152
4425
|
align: "end",
|
|
4153
4426
|
sideOffset: 4,
|
|
4154
4427
|
className: "w-auto p-0",
|
|
@@ -4176,7 +4449,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4176
4449
|
className: "px-0.5 text-sm text-muted-foreground",
|
|
4177
4450
|
children: "Custom range"
|
|
4178
4451
|
}),
|
|
4179
|
-
/* @__PURE__ */ X(
|
|
4452
|
+
/* @__PURE__ */ X(Ai, {
|
|
4180
4453
|
value: d,
|
|
4181
4454
|
onChange: h,
|
|
4182
4455
|
label: "From",
|
|
@@ -4184,7 +4457,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4184
4457
|
timezone: i,
|
|
4185
4458
|
maxDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
4186
4459
|
}),
|
|
4187
|
-
/* @__PURE__ */ X(
|
|
4460
|
+
/* @__PURE__ */ X(Ai, {
|
|
4188
4461
|
value: p,
|
|
4189
4462
|
onChange: m,
|
|
4190
4463
|
label: "To",
|
|
@@ -4219,36 +4492,36 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4219
4492
|
})
|
|
4220
4493
|
})]
|
|
4221
4494
|
});
|
|
4222
|
-
}),
|
|
4495
|
+
}), 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", {
|
|
4223
4496
|
variants: { variant: {
|
|
4224
4497
|
default: "bg-card text-card-foreground",
|
|
4225
4498
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
4226
4499
|
} },
|
|
4227
4500
|
defaultVariants: { variant: "default" }
|
|
4228
4501
|
});
|
|
4229
|
-
function
|
|
4502
|
+
function Ni({ className: e, variant: t, ...n }) {
|
|
4230
4503
|
return /* @__PURE__ */ X("div", {
|
|
4231
4504
|
"data-slot": "alert",
|
|
4232
4505
|
role: "alert",
|
|
4233
|
-
className: Q(
|
|
4506
|
+
className: Q(Mi({ variant: t }), e),
|
|
4234
4507
|
...n
|
|
4235
4508
|
});
|
|
4236
4509
|
}
|
|
4237
|
-
function
|
|
4510
|
+
function Pi({ className: e, ...t }) {
|
|
4238
4511
|
return /* @__PURE__ */ X("div", {
|
|
4239
4512
|
"data-slot": "alert-title",
|
|
4240
4513
|
className: Q("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
4241
4514
|
...t
|
|
4242
4515
|
});
|
|
4243
4516
|
}
|
|
4244
|
-
function
|
|
4517
|
+
function Fi({ className: e, ...t }) {
|
|
4245
4518
|
return /* @__PURE__ */ X("div", {
|
|
4246
4519
|
"data-slot": "alert-description",
|
|
4247
4520
|
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),
|
|
4248
4521
|
...t
|
|
4249
4522
|
});
|
|
4250
4523
|
}
|
|
4251
|
-
function
|
|
4524
|
+
function Ii({ className: e, ...t }) {
|
|
4252
4525
|
return /* @__PURE__ */ X("div", {
|
|
4253
4526
|
"data-slot": "alert-action",
|
|
4254
4527
|
className: Q("absolute top-2 right-2", e),
|
|
@@ -4257,30 +4530,30 @@ function ki({ className: e, ...t }) {
|
|
|
4257
4530
|
}
|
|
4258
4531
|
//#endregion
|
|
4259
4532
|
//#region src/components/ui/button-group.tsx
|
|
4260
|
-
var
|
|
4533
|
+
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", {
|
|
4261
4534
|
variants: { orientation: {
|
|
4262
4535
|
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!",
|
|
4263
4536
|
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!"
|
|
4264
4537
|
} },
|
|
4265
4538
|
defaultVariants: { orientation: "horizontal" }
|
|
4266
4539
|
});
|
|
4267
|
-
function
|
|
4540
|
+
function Ri({ className: e, orientation: t, ...n }) {
|
|
4268
4541
|
return /* @__PURE__ */ X("div", {
|
|
4269
4542
|
role: "group",
|
|
4270
4543
|
"data-slot": "button-group",
|
|
4271
4544
|
"data-orientation": t,
|
|
4272
|
-
className: Q(
|
|
4545
|
+
className: Q(Li({ orientation: t }), e),
|
|
4273
4546
|
...n
|
|
4274
4547
|
});
|
|
4275
4548
|
}
|
|
4276
|
-
function
|
|
4549
|
+
function zi({ className: e, asChild: t = !1, ...n }) {
|
|
4277
4550
|
return /* @__PURE__ */ X(t ? ke.Root : "div", {
|
|
4278
4551
|
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),
|
|
4279
4552
|
...n
|
|
4280
4553
|
});
|
|
4281
4554
|
}
|
|
4282
|
-
function
|
|
4283
|
-
return /* @__PURE__ */ X(
|
|
4555
|
+
function Bi({ className: e, orientation: t = "vertical", ...n }) {
|
|
4556
|
+
return /* @__PURE__ */ X(_t, {
|
|
4284
4557
|
"data-slot": "button-group-separator",
|
|
4285
4558
|
orientation: t,
|
|
4286
4559
|
className: Q("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", e),
|
|
@@ -4289,28 +4562,28 @@ function Ni({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4289
4562
|
}
|
|
4290
4563
|
//#endregion
|
|
4291
4564
|
//#region src/components/ui/chart.tsx
|
|
4292
|
-
var
|
|
4565
|
+
var Vi = {
|
|
4293
4566
|
light: "",
|
|
4294
4567
|
dark: ".dark"
|
|
4295
|
-
},
|
|
4568
|
+
}, Hi = {
|
|
4296
4569
|
width: 320,
|
|
4297
4570
|
height: 200
|
|
4298
|
-
},
|
|
4299
|
-
function
|
|
4300
|
-
let e = n.useContext(
|
|
4571
|
+
}, Ui = n.createContext(null);
|
|
4572
|
+
function Wi() {
|
|
4573
|
+
let e = n.useContext(Ui);
|
|
4301
4574
|
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
4302
4575
|
return e;
|
|
4303
4576
|
}
|
|
4304
|
-
function
|
|
4577
|
+
function Gi({ id: e, className: t, children: r, config: i, initialDimension: a = Hi, ...o }) {
|
|
4305
4578
|
let s = n.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
|
|
4306
|
-
return /* @__PURE__ */ X(
|
|
4579
|
+
return /* @__PURE__ */ X(Ui.Provider, {
|
|
4307
4580
|
value: { config: i },
|
|
4308
4581
|
children: /* @__PURE__ */ Z("div", {
|
|
4309
4582
|
"data-slot": "chart",
|
|
4310
4583
|
"data-chart": c,
|
|
4311
4584
|
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),
|
|
4312
4585
|
...o,
|
|
4313
|
-
children: [/* @__PURE__ */ X(
|
|
4586
|
+
children: [/* @__PURE__ */ X(Ki, {
|
|
4314
4587
|
id: c,
|
|
4315
4588
|
config: i
|
|
4316
4589
|
}), /* @__PURE__ */ X(Ie.ResponsiveContainer, {
|
|
@@ -4320,9 +4593,9 @@ function Ri({ id: e, className: t, children: r, config: i, initialDimension: a =
|
|
|
4320
4593
|
})
|
|
4321
4594
|
});
|
|
4322
4595
|
}
|
|
4323
|
-
var
|
|
4596
|
+
var Ki = ({ id: e, config: t }) => {
|
|
4324
4597
|
let n = Object.entries(t).filter(([, e]) => e.theme ?? e.color);
|
|
4325
|
-
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(
|
|
4598
|
+
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(Vi).map(([t, r]) => `
|
|
4326
4599
|
${r} [data-chart=${e}] {
|
|
4327
4600
|
${n.map(([e, n]) => {
|
|
4328
4601
|
let r = n.theme?.[t] ?? n.color;
|
|
@@ -4330,11 +4603,11 @@ ${n.map(([e, n]) => {
|
|
|
4330
4603
|
}).join("\n")}
|
|
4331
4604
|
}
|
|
4332
4605
|
`).join("\n") } }) : null;
|
|
4333
|
-
},
|
|
4334
|
-
function
|
|
4335
|
-
let { config: m } =
|
|
4606
|
+
}, qi = Ie.Tooltip;
|
|
4607
|
+
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 }) {
|
|
4608
|
+
let { config: m } = Wi(), h = n.useMemo(() => {
|
|
4336
4609
|
if (a || !t?.length) return null;
|
|
4337
|
-
let [e] = t, n =
|
|
4610
|
+
let [e] = t, n = Zi(m, e, `${p ?? e?.dataKey ?? e?.name ?? "value"}`), r = !p && typeof s == "string" ? m[s]?.label ?? s : n?.label;
|
|
4338
4611
|
return c ? /* @__PURE__ */ X("div", {
|
|
4339
4612
|
className: Q("font-medium", l),
|
|
4340
4613
|
children: c(r, t)
|
|
@@ -4358,7 +4631,7 @@ function Vi({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4358
4631
|
children: [g ? null : h, /* @__PURE__ */ X("div", {
|
|
4359
4632
|
className: "grid gap-1.5",
|
|
4360
4633
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
4361
|
-
let n =
|
|
4634
|
+
let n = Zi(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
|
|
4362
4635
|
return /* @__PURE__ */ X("div", {
|
|
4363
4636
|
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"),
|
|
4364
4637
|
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", {
|
|
@@ -4390,13 +4663,13 @@ function Vi({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4390
4663
|
})]
|
|
4391
4664
|
});
|
|
4392
4665
|
}
|
|
4393
|
-
var
|
|
4394
|
-
function
|
|
4395
|
-
let { config: a } =
|
|
4666
|
+
var Yi = Ie.Legend;
|
|
4667
|
+
function Xi({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
4668
|
+
let { config: a } = Wi();
|
|
4396
4669
|
return n?.length ? /* @__PURE__ */ X("div", {
|
|
4397
4670
|
className: Q("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
4398
4671
|
children: n.filter((e) => e.type !== "none").map((e, n) => {
|
|
4399
|
-
let r =
|
|
4672
|
+
let r = Zi(a, e, `${i ?? e.dataKey ?? "value"}`);
|
|
4400
4673
|
return /* @__PURE__ */ Z("div", {
|
|
4401
4674
|
className: Q("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
4402
4675
|
children: [r?.icon && !t ? /* @__PURE__ */ X(r.icon, {}) : /* @__PURE__ */ X("div", {
|
|
@@ -4407,26 +4680,26 @@ function Ui({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
|
|
|
4407
4680
|
})
|
|
4408
4681
|
}) : null;
|
|
4409
4682
|
}
|
|
4410
|
-
function
|
|
4683
|
+
function Zi(e, t, n) {
|
|
4411
4684
|
if (typeof t != "object" || !t) return;
|
|
4412
4685
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
4413
4686
|
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];
|
|
4414
4687
|
}
|
|
4415
4688
|
//#endregion
|
|
4416
4689
|
//#region src/components/ui/hover-card.tsx
|
|
4417
|
-
function
|
|
4690
|
+
function Qi({ ...e }) {
|
|
4418
4691
|
return /* @__PURE__ */ X(Se.Root, {
|
|
4419
4692
|
"data-slot": "hover-card",
|
|
4420
4693
|
...e
|
|
4421
4694
|
});
|
|
4422
4695
|
}
|
|
4423
|
-
function
|
|
4696
|
+
function $i({ ...e }) {
|
|
4424
4697
|
return /* @__PURE__ */ X(Se.Trigger, {
|
|
4425
4698
|
"data-slot": "hover-card-trigger",
|
|
4426
4699
|
...e
|
|
4427
4700
|
});
|
|
4428
4701
|
}
|
|
4429
|
-
function
|
|
4702
|
+
function ea({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4430
4703
|
return /* @__PURE__ */ X(Se.Portal, {
|
|
4431
4704
|
"data-slot": "hover-card-portal",
|
|
4432
4705
|
children: /* @__PURE__ */ X(Se.Content, {
|
|
@@ -4440,7 +4713,7 @@ function qi({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4440
4713
|
}
|
|
4441
4714
|
//#endregion
|
|
4442
4715
|
//#region src/components/ui/item.tsx
|
|
4443
|
-
function
|
|
4716
|
+
function ta({ className: e, ...t }) {
|
|
4444
4717
|
return /* @__PURE__ */ X("div", {
|
|
4445
4718
|
role: "list",
|
|
4446
4719
|
"data-slot": "item-group",
|
|
@@ -4448,15 +4721,15 @@ function Ji({ className: e, ...t }) {
|
|
|
4448
4721
|
...t
|
|
4449
4722
|
});
|
|
4450
4723
|
}
|
|
4451
|
-
function
|
|
4452
|
-
return /* @__PURE__ */ X(
|
|
4724
|
+
function na({ className: e, ...t }) {
|
|
4725
|
+
return /* @__PURE__ */ X(_t, {
|
|
4453
4726
|
"data-slot": "item-separator",
|
|
4454
4727
|
orientation: "horizontal",
|
|
4455
4728
|
className: Q("my-2", e),
|
|
4456
4729
|
...t
|
|
4457
4730
|
});
|
|
4458
4731
|
}
|
|
4459
|
-
var
|
|
4732
|
+
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", {
|
|
4460
4733
|
variants: {
|
|
4461
4734
|
variant: {
|
|
4462
4735
|
default: "border-transparent",
|
|
@@ -4474,12 +4747,12 @@ var Xi = W("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
4474
4747
|
size: "default"
|
|
4475
4748
|
}
|
|
4476
4749
|
});
|
|
4477
|
-
function
|
|
4750
|
+
function ia({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
4478
4751
|
return /* @__PURE__ */ X(r ? ke.Root : "div", {
|
|
4479
4752
|
"data-slot": "item",
|
|
4480
4753
|
"data-variant": t,
|
|
4481
4754
|
"data-size": n,
|
|
4482
|
-
className: Q(
|
|
4755
|
+
className: Q(ra({
|
|
4483
4756
|
variant: t,
|
|
4484
4757
|
size: n,
|
|
4485
4758
|
className: e
|
|
@@ -4487,7 +4760,7 @@ function Zi({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
4487
4760
|
...i
|
|
4488
4761
|
});
|
|
4489
4762
|
}
|
|
4490
|
-
var
|
|
4763
|
+
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", {
|
|
4491
4764
|
variants: { variant: {
|
|
4492
4765
|
default: "bg-transparent",
|
|
4493
4766
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -4495,53 +4768,53 @@ var Qi = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot
|
|
|
4495
4768
|
} },
|
|
4496
4769
|
defaultVariants: { variant: "default" }
|
|
4497
4770
|
});
|
|
4498
|
-
function
|
|
4771
|
+
function oa({ className: e, variant: t = "default", ...n }) {
|
|
4499
4772
|
return /* @__PURE__ */ X("div", {
|
|
4500
4773
|
"data-slot": "item-media",
|
|
4501
4774
|
"data-variant": t,
|
|
4502
|
-
className: Q(
|
|
4775
|
+
className: Q(aa({
|
|
4503
4776
|
variant: t,
|
|
4504
4777
|
className: e
|
|
4505
4778
|
})),
|
|
4506
4779
|
...n
|
|
4507
4780
|
});
|
|
4508
4781
|
}
|
|
4509
|
-
function
|
|
4782
|
+
function sa({ className: e, ...t }) {
|
|
4510
4783
|
return /* @__PURE__ */ X("div", {
|
|
4511
4784
|
"data-slot": "item-content",
|
|
4512
4785
|
className: Q("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", e),
|
|
4513
4786
|
...t
|
|
4514
4787
|
});
|
|
4515
4788
|
}
|
|
4516
|
-
function
|
|
4789
|
+
function ca({ className: e, ...t }) {
|
|
4517
4790
|
return /* @__PURE__ */ X("div", {
|
|
4518
4791
|
"data-slot": "item-title",
|
|
4519
4792
|
className: Q("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", e),
|
|
4520
4793
|
...t
|
|
4521
4794
|
});
|
|
4522
4795
|
}
|
|
4523
|
-
function
|
|
4796
|
+
function la({ className: e, ...t }) {
|
|
4524
4797
|
return /* @__PURE__ */ X("p", {
|
|
4525
4798
|
"data-slot": "item-description",
|
|
4526
4799
|
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),
|
|
4527
4800
|
...t
|
|
4528
4801
|
});
|
|
4529
4802
|
}
|
|
4530
|
-
function
|
|
4803
|
+
function ua({ className: e, ...t }) {
|
|
4531
4804
|
return /* @__PURE__ */ X("div", {
|
|
4532
4805
|
"data-slot": "item-actions",
|
|
4533
4806
|
className: Q("flex items-center gap-2", e),
|
|
4534
4807
|
...t
|
|
4535
4808
|
});
|
|
4536
4809
|
}
|
|
4537
|
-
function
|
|
4810
|
+
function da({ className: e, ...t }) {
|
|
4538
4811
|
return /* @__PURE__ */ X("div", {
|
|
4539
4812
|
"data-slot": "item-header",
|
|
4540
4813
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
4541
4814
|
...t
|
|
4542
4815
|
});
|
|
4543
4816
|
}
|
|
4544
|
-
function
|
|
4817
|
+
function fa({ className: e, ...t }) {
|
|
4545
4818
|
return /* @__PURE__ */ X("div", {
|
|
4546
4819
|
"data-slot": "item-footer",
|
|
4547
4820
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
@@ -4550,10 +4823,10 @@ function aa({ className: e, ...t }) {
|
|
|
4550
4823
|
}
|
|
4551
4824
|
//#endregion
|
|
4552
4825
|
//#region src/components/ui/map.tsx
|
|
4553
|
-
var
|
|
4826
|
+
var pa = {
|
|
4554
4827
|
dark: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
|
4555
4828
|
light: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
4556
|
-
},
|
|
4829
|
+
}, ma = [
|
|
4557
4830
|
{
|
|
4558
4831
|
label: "Light",
|
|
4559
4832
|
url: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
@@ -4566,13 +4839,13 @@ var oa = {
|
|
|
4566
4839
|
label: "Dark",
|
|
4567
4840
|
url: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
4568
4841
|
}
|
|
4569
|
-
],
|
|
4570
|
-
function
|
|
4571
|
-
let e = o(
|
|
4842
|
+
], ha = r(null);
|
|
4843
|
+
function ga() {
|
|
4844
|
+
let e = o(ha);
|
|
4572
4845
|
if (!e) throw Error("useMap must be used within a Map component");
|
|
4573
4846
|
return e;
|
|
4574
4847
|
}
|
|
4575
|
-
function
|
|
4848
|
+
function _a() {
|
|
4576
4849
|
return /* @__PURE__ */ X("div", {
|
|
4577
4850
|
className: "bg-background/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-xs",
|
|
4578
4851
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4585,7 +4858,7 @@ function ua() {
|
|
|
4585
4858
|
})
|
|
4586
4859
|
});
|
|
4587
4860
|
}
|
|
4588
|
-
function
|
|
4861
|
+
function va(e) {
|
|
4589
4862
|
let t = e.getCenter();
|
|
4590
4863
|
return {
|
|
4591
4864
|
center: [t.lng, t.lat],
|
|
@@ -4594,12 +4867,12 @@ function da(e) {
|
|
|
4594
4867
|
pitch: e.getPitch()
|
|
4595
4868
|
};
|
|
4596
4869
|
}
|
|
4597
|
-
var
|
|
4870
|
+
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 }, _) {
|
|
4598
4871
|
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), ee = o !== void 0 && c !== void 0, j = d(c);
|
|
4599
4872
|
j.current = c;
|
|
4600
4873
|
let M = u(() => ({
|
|
4601
|
-
dark: r?.dark ??
|
|
4602
|
-
light: r?.light ??
|
|
4874
|
+
dark: r?.dark ?? pa.dark,
|
|
4875
|
+
light: r?.light ?? pa.light
|
|
4603
4876
|
}), [r]);
|
|
4604
4877
|
l(_, () => b, [b]);
|
|
4605
4878
|
let N = a(() => {
|
|
@@ -4621,14 +4894,14 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4621
4894
|
T(!0), i && t.setProjection(i);
|
|
4622
4895
|
}, 100);
|
|
4623
4896
|
}, r = () => C(!0), a = () => {
|
|
4624
|
-
A.current || j.current?.(
|
|
4897
|
+
A.current || j.current?.(va(t));
|
|
4625
4898
|
};
|
|
4626
4899
|
return t.on("load", r), t.on("styledata", n), t.on("move", a), x(t), () => {
|
|
4627
4900
|
N(), t.off("load", r), t.off("styledata", n), t.off("move", a), t.remove(), C(!1), T(!1), x(null);
|
|
4628
4901
|
};
|
|
4629
4902
|
}, []), s(() => {
|
|
4630
4903
|
if (!b || !ee || !o || b.isMoving()) return;
|
|
4631
|
-
let e =
|
|
4904
|
+
let e = va(b), t = {
|
|
4632
4905
|
center: o.center ?? e.center,
|
|
4633
4906
|
zoom: o.zoom ?? e.zoom,
|
|
4634
4907
|
bearing: o.bearing ?? e.bearing,
|
|
@@ -4658,12 +4931,12 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4658
4931
|
S,
|
|
4659
4932
|
w
|
|
4660
4933
|
]);
|
|
4661
|
-
return /* @__PURE__ */ X(
|
|
4934
|
+
return /* @__PURE__ */ X(ha.Provider, {
|
|
4662
4935
|
value: P,
|
|
4663
4936
|
children: /* @__PURE__ */ Z("div", {
|
|
4664
4937
|
ref: y,
|
|
4665
4938
|
className: Q("relative h-full w-full", t),
|
|
4666
|
-
children: [(!S || p) && /* @__PURE__ */ X(
|
|
4939
|
+
children: [(!S || p) && /* @__PURE__ */ X(_a, {}), b && /* @__PURE__ */ Z(Y, { children: [m && /* @__PURE__ */ X(Na, {
|
|
4667
4940
|
position: "top-right",
|
|
4668
4941
|
tiles: v,
|
|
4669
4942
|
tileIndex: E,
|
|
@@ -4671,14 +4944,14 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4671
4944
|
}), e] })]
|
|
4672
4945
|
})
|
|
4673
4946
|
});
|
|
4674
|
-
}),
|
|
4675
|
-
function
|
|
4676
|
-
let e = o(
|
|
4947
|
+
}), ba = r(null);
|
|
4948
|
+
function xa() {
|
|
4949
|
+
let e = o(ba);
|
|
4677
4950
|
if (!e) throw Error("Marker components must be used within MapMarker");
|
|
4678
4951
|
return e;
|
|
4679
4952
|
}
|
|
4680
|
-
function
|
|
4681
|
-
let { map: m } =
|
|
4953
|
+
function Sa({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter: i, onMouseLeave: a, onDragStart: o, onDrag: c, onDragEnd: l, draggable: f = !1, ...p }) {
|
|
4954
|
+
let { map: m } = ga(), h = d({
|
|
4682
4955
|
onClick: r,
|
|
4683
4956
|
onMouseEnter: i,
|
|
4684
4957
|
onMouseLeave: a,
|
|
@@ -4726,7 +4999,7 @@ function ha({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4726
4999
|
};
|
|
4727
5000
|
}, [m]), (g.getLngLat().lng !== e || g.getLngLat().lat !== t) && g.setLngLat([e, t]), g.isDraggable() !== f && g.setDraggable(f);
|
|
4728
5001
|
let _ = g.getOffset(), v = p.offset ?? [0, 0], [y, b] = Array.isArray(v) ? v : [v.x, v.y];
|
|
4729
|
-
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(
|
|
5002
|
+
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, {
|
|
4730
5003
|
value: {
|
|
4731
5004
|
marker: g,
|
|
4732
5005
|
map: m
|
|
@@ -4734,27 +5007,27 @@ function ha({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4734
5007
|
children: n
|
|
4735
5008
|
});
|
|
4736
5009
|
}
|
|
4737
|
-
function
|
|
4738
|
-
let { marker: n } =
|
|
5010
|
+
function Ca({ children: e, className: t }) {
|
|
5011
|
+
let { marker: n } = xa();
|
|
4739
5012
|
return Ue(/* @__PURE__ */ X("div", {
|
|
4740
5013
|
className: Q("relative cursor-pointer", t),
|
|
4741
|
-
children: e || /* @__PURE__ */ X(
|
|
5014
|
+
children: e || /* @__PURE__ */ X(wa, {})
|
|
4742
5015
|
}), n.getElement());
|
|
4743
5016
|
}
|
|
4744
|
-
function
|
|
5017
|
+
function wa() {
|
|
4745
5018
|
return /* @__PURE__ */ X("div", { className: "relative h-4 w-4 rounded-full border-2 border-white bg-blue-500 shadow-lg" });
|
|
4746
5019
|
}
|
|
4747
|
-
function
|
|
5020
|
+
function Ta({ onClick: e }) {
|
|
4748
5021
|
return /* @__PURE__ */ X("button", {
|
|
4749
5022
|
type: "button",
|
|
4750
5023
|
onClick: e,
|
|
4751
5024
|
"aria-label": "Close popup",
|
|
4752
5025
|
className: "focus-visible:ring-ring hover:bg-muted text-foreground absolute top-0.5 right-0.5 z-10 inline-flex size-5 cursor-pointer items-center justify-center rounded-sm transition-colors focus:outline-none focus-visible:ring-2",
|
|
4753
|
-
children: /* @__PURE__ */ X(
|
|
5026
|
+
children: /* @__PURE__ */ X(be, { className: "size-3.5" })
|
|
4754
5027
|
});
|
|
4755
5028
|
}
|
|
4756
|
-
function
|
|
4757
|
-
let { marker: i, map: a } =
|
|
5029
|
+
function Ea({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
5030
|
+
let { marker: i, map: a } = xa(), o = u(() => document.createElement("div"), []), c = d(r), l = u(() => new He.Popup({
|
|
4758
5031
|
offset: 16,
|
|
4759
5032
|
...r,
|
|
4760
5033
|
closeButton: !1
|
|
@@ -4769,11 +5042,11 @@ function ya({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
|
4769
5042
|
}
|
|
4770
5043
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
4771
5044
|
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),
|
|
4772
|
-
children: [n && /* @__PURE__ */ X(
|
|
5045
|
+
children: [n && /* @__PURE__ */ X(Ta, { onClick: () => l.remove() }), e]
|
|
4773
5046
|
}), o);
|
|
4774
5047
|
}
|
|
4775
|
-
function
|
|
4776
|
-
let { marker: r, map: i } =
|
|
5048
|
+
function Da({ children: e, className: t, ...n }) {
|
|
5049
|
+
let { marker: r, map: i } = xa(), a = u(() => document.createElement("div"), []), o = d(n), c = u(() => new He.Popup({
|
|
4777
5050
|
offset: 16,
|
|
4778
5051
|
...n,
|
|
4779
5052
|
closeOnClick: !0,
|
|
@@ -4797,7 +5070,7 @@ function ba({ children: e, className: t, ...n }) {
|
|
|
4797
5070
|
children: e
|
|
4798
5071
|
}), a);
|
|
4799
5072
|
}
|
|
4800
|
-
function
|
|
5073
|
+
function Oa({ children: e, className: t, position: n = "top" }) {
|
|
4801
5074
|
return /* @__PURE__ */ X("div", {
|
|
4802
5075
|
className: Q("absolute left-1/2 -translate-x-1/2 whitespace-nowrap", "text-foreground text-[10px] font-medium", {
|
|
4803
5076
|
top: "bottom-full mb-1",
|
|
@@ -4806,19 +5079,19 @@ function xa({ children: e, className: t, position: n = "top" }) {
|
|
|
4806
5079
|
children: e
|
|
4807
5080
|
});
|
|
4808
5081
|
}
|
|
4809
|
-
var
|
|
5082
|
+
var ka = {
|
|
4810
5083
|
"top-left": "top-2 left-2",
|
|
4811
5084
|
"top-right": "top-2 right-2",
|
|
4812
5085
|
"bottom-left": "bottom-2 left-2",
|
|
4813
5086
|
"bottom-right": "bottom-10 right-2"
|
|
4814
5087
|
};
|
|
4815
|
-
function
|
|
5088
|
+
function Aa({ children: e }) {
|
|
4816
5089
|
return /* @__PURE__ */ X("div", {
|
|
4817
5090
|
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",
|
|
4818
5091
|
children: e
|
|
4819
5092
|
});
|
|
4820
5093
|
}
|
|
4821
|
-
function
|
|
5094
|
+
function ja({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
4822
5095
|
return /* @__PURE__ */ X("button", {
|
|
4823
5096
|
onClick: e,
|
|
4824
5097
|
"aria-label": t,
|
|
@@ -4828,7 +5101,7 @@ function wa({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
|
4828
5101
|
children: n
|
|
4829
5102
|
});
|
|
4830
5103
|
}
|
|
4831
|
-
function
|
|
5104
|
+
function Ma({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
4832
5105
|
let [i, a] = f(!1), o = d(null);
|
|
4833
5106
|
return s(() => {
|
|
4834
5107
|
if (!i) return;
|
|
@@ -4843,10 +5116,10 @@ function Ta({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
4843
5116
|
}, [i]), /* @__PURE__ */ Z("div", {
|
|
4844
5117
|
ref: o,
|
|
4845
5118
|
className: "relative",
|
|
4846
|
-
children: [/* @__PURE__ */ X(
|
|
5119
|
+
children: [/* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
4847
5120
|
onClick: () => a((e) => !e),
|
|
4848
5121
|
label: `Basemap: ${e[t]?.label ?? ""}`,
|
|
4849
|
-
children: /* @__PURE__ */ X(
|
|
5122
|
+
children: /* @__PURE__ */ X(z, { className: "size-4" })
|
|
4850
5123
|
}) }), i && /* @__PURE__ */ X("div", {
|
|
4851
5124
|
role: "listbox",
|
|
4852
5125
|
"aria-label": "Basemap",
|
|
@@ -4864,8 +5137,8 @@ function Ta({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
4864
5137
|
})]
|
|
4865
5138
|
});
|
|
4866
5139
|
}
|
|
4867
|
-
function
|
|
4868
|
-
let { map: d } =
|
|
5140
|
+
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 }) {
|
|
5141
|
+
let { map: d } = ga(), [p, m] = f(!1), h = a(() => {
|
|
4869
5142
|
d?.zoomTo(d.getZoom() + 1, { duration: 300 });
|
|
4870
5143
|
}, [d]), g = a(() => {
|
|
4871
5144
|
d?.zoomTo(d.getZoom() - 1, { duration: 300 });
|
|
@@ -4890,40 +5163,40 @@ function Ea({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
|
|
|
4890
5163
|
e && (document.fullscreenElement ? document.exitFullscreen() : e.requestFullscreen());
|
|
4891
5164
|
}, [d]);
|
|
4892
5165
|
return /* @__PURE__ */ Z("div", {
|
|
4893
|
-
className: Q("absolute z-10 flex flex-col gap-1.5",
|
|
5166
|
+
className: Q("absolute z-10 flex flex-col gap-1.5", ka[e], o),
|
|
4894
5167
|
children: [
|
|
4895
|
-
t && /* @__PURE__ */ Z(
|
|
5168
|
+
t && /* @__PURE__ */ Z(Aa, { children: [/* @__PURE__ */ X(ja, {
|
|
4896
5169
|
onClick: h,
|
|
4897
5170
|
label: "Zoom in",
|
|
4898
|
-
children: /* @__PURE__ */ X(
|
|
4899
|
-
}), /* @__PURE__ */ X(
|
|
5171
|
+
children: /* @__PURE__ */ X(le, { className: "size-4" })
|
|
5172
|
+
}), /* @__PURE__ */ X(ja, {
|
|
4900
5173
|
onClick: g,
|
|
4901
5174
|
label: "Zoom out",
|
|
4902
|
-
children: /* @__PURE__ */ X(
|
|
5175
|
+
children: /* @__PURE__ */ X(oe, { className: "size-4" })
|
|
4903
5176
|
})] }),
|
|
4904
|
-
c.length > 1 && /* @__PURE__ */ X(
|
|
5177
|
+
c.length > 1 && /* @__PURE__ */ X(Ma, {
|
|
4905
5178
|
tiles: c,
|
|
4906
5179
|
tileIndex: l,
|
|
4907
5180
|
onTileChange: u,
|
|
4908
5181
|
openLeft: e.endsWith("right")
|
|
4909
5182
|
}),
|
|
4910
|
-
n && /* @__PURE__ */ X(
|
|
4911
|
-
r && /* @__PURE__ */ X(
|
|
5183
|
+
n && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(Pa, { onClick: _ }) }),
|
|
5184
|
+
r && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
4912
5185
|
onClick: v,
|
|
4913
5186
|
label: "Find my location",
|
|
4914
5187
|
disabled: p,
|
|
4915
|
-
children: p ? /* @__PURE__ */ X(
|
|
5188
|
+
children: p ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin" }) : /* @__PURE__ */ X(ae, { className: "size-4" })
|
|
4916
5189
|
}) }),
|
|
4917
|
-
i && /* @__PURE__ */ X(
|
|
5190
|
+
i && /* @__PURE__ */ X(Aa, { children: /* @__PURE__ */ X(ja, {
|
|
4918
5191
|
onClick: y,
|
|
4919
5192
|
label: "Toggle fullscreen",
|
|
4920
|
-
children: /* @__PURE__ */ X(
|
|
5193
|
+
children: /* @__PURE__ */ X(V, { className: "size-4" })
|
|
4921
5194
|
}) })
|
|
4922
5195
|
]
|
|
4923
5196
|
});
|
|
4924
5197
|
}
|
|
4925
|
-
function
|
|
4926
|
-
let { map: t } =
|
|
5198
|
+
function Pa({ onClick: e }) {
|
|
5199
|
+
let { map: t } = ga(), n = d(null);
|
|
4927
5200
|
return s(() => {
|
|
4928
5201
|
if (!t || !n.current) return;
|
|
4929
5202
|
let e = n.current, r = () => {
|
|
@@ -4933,7 +5206,7 @@ function Da({ onClick: e }) {
|
|
|
4933
5206
|
return t.on("rotate", r), t.on("pitch", r), r(), () => {
|
|
4934
5207
|
t.off("rotate", r), t.off("pitch", r);
|
|
4935
5208
|
};
|
|
4936
|
-
}, [t]), /* @__PURE__ */ X(
|
|
5209
|
+
}, [t]), /* @__PURE__ */ X(ja, {
|
|
4937
5210
|
onClick: e,
|
|
4938
5211
|
label: "Reset bearing to north",
|
|
4939
5212
|
children: /* @__PURE__ */ Z("svg", {
|
|
@@ -4962,8 +5235,8 @@ function Da({ onClick: e }) {
|
|
|
4962
5235
|
})
|
|
4963
5236
|
});
|
|
4964
5237
|
}
|
|
4965
|
-
function
|
|
4966
|
-
let { map: c } =
|
|
5238
|
+
function Fa({ longitude: e, latitude: t, onClose: n, children: r, className: i, closeButton: a = !1, ...o }) {
|
|
5239
|
+
let { map: c } = ga(), l = d(o), f = d(n);
|
|
4967
5240
|
f.current = n;
|
|
4968
5241
|
let p = u(() => document.createElement("div"), []), m = u(() => new He.Popup({
|
|
4969
5242
|
offset: 16,
|
|
@@ -4982,13 +5255,13 @@ function Oa({ longitude: e, latitude: t, onClose: n, children: r, className: i,
|
|
|
4982
5255
|
}
|
|
4983
5256
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
4984
5257
|
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),
|
|
4985
|
-
children: [a && /* @__PURE__ */ X(
|
|
5258
|
+
children: [a && /* @__PURE__ */ X(Ta, { onClick: () => {
|
|
4986
5259
|
m.remove();
|
|
4987
5260
|
} }), r]
|
|
4988
5261
|
}), p);
|
|
4989
5262
|
}
|
|
4990
|
-
function
|
|
4991
|
-
let { map: f, isLoaded: p } =
|
|
5263
|
+
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 }) {
|
|
5264
|
+
let { map: f, isLoaded: p } = ga(), m = c(), h = e ?? m, g = `route-source-${h}`, _ = `route-layer-${h}`;
|
|
4992
5265
|
return s(() => {
|
|
4993
5266
|
if (!(!p || !f)) return f.addSource(g, {
|
|
4994
5267
|
type: "geojson",
|
|
@@ -5067,15 +5340,15 @@ function ka({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity
|
|
|
5067
5340
|
d
|
|
5068
5341
|
]), null;
|
|
5069
5342
|
}
|
|
5070
|
-
var
|
|
5343
|
+
var La = .2, Ra = 64, za = 12, Ba = 6, Va = {
|
|
5071
5344
|
"line-color": "#4285F4",
|
|
5072
5345
|
"line-width": 2,
|
|
5073
5346
|
"line-opacity": .85
|
|
5074
|
-
},
|
|
5347
|
+
}, Ha = {
|
|
5075
5348
|
"line-join": "round",
|
|
5076
5349
|
"line-cap": "round"
|
|
5077
5350
|
};
|
|
5078
|
-
function
|
|
5351
|
+
function Ua(e, t) {
|
|
5079
5352
|
if (!t) return e;
|
|
5080
5353
|
let n = { ...e };
|
|
5081
5354
|
for (let [e, r] of Object.entries(t)) {
|
|
@@ -5094,7 +5367,7 @@ function Ia(e, t) {
|
|
|
5094
5367
|
}
|
|
5095
5368
|
return n;
|
|
5096
5369
|
}
|
|
5097
|
-
function
|
|
5370
|
+
function Wa(e, t, n, r) {
|
|
5098
5371
|
let [i, a] = e, [o, s] = t, c = o - i, l = s - a, u = Math.hypot(c, l);
|
|
5099
5372
|
if (u === 0 || n === 0) return [e, t];
|
|
5100
5373
|
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));
|
|
@@ -5104,16 +5377,16 @@ function La(e, t, n, r) {
|
|
|
5104
5377
|
}
|
|
5105
5378
|
return v;
|
|
5106
5379
|
}
|
|
5107
|
-
function
|
|
5108
|
-
let { map: h, isLoaded: g } =
|
|
5109
|
-
...
|
|
5380
|
+
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 }) {
|
|
5381
|
+
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({
|
|
5382
|
+
...Va,
|
|
5110
5383
|
...i
|
|
5111
5384
|
}, o), [i, o]), C = u(() => ({
|
|
5112
|
-
...
|
|
5385
|
+
...Ha,
|
|
5113
5386
|
...a
|
|
5114
5387
|
}), [a]), w = u(() => {
|
|
5115
|
-
let e = i?.["line-width"] ??
|
|
5116
|
-
return Math.max((typeof e == "number" ? e :
|
|
5388
|
+
let e = i?.["line-width"] ?? Va["line-width"];
|
|
5389
|
+
return Math.max((typeof e == "number" ? e : za) + Ba, za);
|
|
5117
5390
|
}, [i]), T = u(() => ({
|
|
5118
5391
|
type: "FeatureCollection",
|
|
5119
5392
|
features: e.map((e) => {
|
|
@@ -5123,7 +5396,7 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5123
5396
|
properties: a,
|
|
5124
5397
|
geometry: {
|
|
5125
5398
|
type: "LineString",
|
|
5126
|
-
coordinates:
|
|
5399
|
+
coordinates: Wa(t, i, n, r)
|
|
5127
5400
|
}
|
|
5128
5401
|
};
|
|
5129
5402
|
})
|
|
@@ -5149,7 +5422,7 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5149
5422
|
id: x,
|
|
5150
5423
|
type: "line",
|
|
5151
5424
|
source: y,
|
|
5152
|
-
layout:
|
|
5425
|
+
layout: Ha,
|
|
5153
5426
|
paint: {
|
|
5154
5427
|
"line-color": "rgba(0, 0, 0, 0)",
|
|
5155
5428
|
"line-width": w,
|
|
@@ -5232,12 +5505,12 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5232
5505
|
p
|
|
5233
5506
|
]), null;
|
|
5234
5507
|
}
|
|
5235
|
-
function
|
|
5508
|
+
function Ka({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterColors: r = [
|
|
5236
5509
|
"#22c55e",
|
|
5237
5510
|
"#eab308",
|
|
5238
5511
|
"#ef4444"
|
|
5239
5512
|
], clusterThresholds: i = [100, 750], pointColor: a = "#3b82f6", onPointClick: o, onClusterClick: l }) {
|
|
5240
|
-
let { map: u, isLoaded: f } =
|
|
5513
|
+
let { map: u, isLoaded: f } = ga(), p = c(), m = `cluster-source-${p}`, h = `clusters-${p}`, g = `cluster-count-${p}`, _ = `unclustered-point-${p}`, v = d({
|
|
5241
5514
|
clusterColors: r,
|
|
5242
5515
|
clusterThresholds: i,
|
|
5243
5516
|
pointColor: a
|
|
@@ -5392,7 +5665,7 @@ function za({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterCol
|
|
|
5392
5665
|
}
|
|
5393
5666
|
//#endregion
|
|
5394
5667
|
//#region src/components/ui/progress.tsx
|
|
5395
|
-
function
|
|
5668
|
+
function qa({ className: e, value: t, ...n }) {
|
|
5396
5669
|
return /* @__PURE__ */ X(Te.Root, {
|
|
5397
5670
|
"data-slot": "progress",
|
|
5398
5671
|
className: Q("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", e),
|
|
@@ -5406,7 +5679,7 @@ function Ba({ className: e, value: t, ...n }) {
|
|
|
5406
5679
|
}
|
|
5407
5680
|
//#endregion
|
|
5408
5681
|
//#region src/components/ui/slider.tsx
|
|
5409
|
-
function
|
|
5682
|
+
function Ja({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
|
|
5410
5683
|
let s = n.useMemo(() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, a], [
|
|
5411
5684
|
r,
|
|
5412
5685
|
t,
|
|
@@ -5436,17 +5709,17 @@ function Va({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
|
|
|
5436
5709
|
}
|
|
5437
5710
|
//#endregion
|
|
5438
5711
|
//#region src/components/ui/sonner.tsx
|
|
5439
|
-
var
|
|
5712
|
+
var Ya = ({ ...e }) => {
|
|
5440
5713
|
let { theme: t = "system" } = We();
|
|
5441
5714
|
return /* @__PURE__ */ X(Ge, {
|
|
5442
5715
|
theme: t,
|
|
5443
5716
|
className: "toaster group",
|
|
5444
5717
|
icons: {
|
|
5445
5718
|
success: /* @__PURE__ */ X(E, { className: "size-4" }),
|
|
5446
|
-
info: /* @__PURE__ */ X(
|
|
5447
|
-
warning: /* @__PURE__ */ X(
|
|
5448
|
-
error: /* @__PURE__ */ X(
|
|
5449
|
-
loading: /* @__PURE__ */ X(
|
|
5719
|
+
info: /* @__PURE__ */ X(ne, { className: "size-4" }),
|
|
5720
|
+
warning: /* @__PURE__ */ X(_e, { className: "size-4" }),
|
|
5721
|
+
error: /* @__PURE__ */ X(se, { className: "size-4" }),
|
|
5722
|
+
loading: /* @__PURE__ */ X(B, { className: "size-4 animate-spin" })
|
|
5450
5723
|
},
|
|
5451
5724
|
style: {
|
|
5452
5725
|
"--normal-bg": "var(--popover)",
|
|
@@ -5457,20 +5730,20 @@ var Ha = ({ ...e }) => {
|
|
|
5457
5730
|
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
5458
5731
|
...e
|
|
5459
5732
|
});
|
|
5460
|
-
},
|
|
5461
|
-
let e = o(
|
|
5733
|
+
}, Xa = r(void 0), Za = r(void 0), Qa = () => {
|
|
5734
|
+
let e = o(Xa);
|
|
5462
5735
|
if (!e) throw Error("useStepper must be used within a Stepper");
|
|
5463
5736
|
return e;
|
|
5464
|
-
},
|
|
5465
|
-
let e = o(
|
|
5737
|
+
}, $a = () => {
|
|
5738
|
+
let e = o(Za);
|
|
5466
5739
|
if (!e) throw Error("useStepItem must be used within a StepperItem");
|
|
5467
5740
|
return e;
|
|
5468
5741
|
};
|
|
5469
|
-
function
|
|
5742
|
+
function eo({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i = "horizontal", className: a, ...o }) {
|
|
5470
5743
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5471
5744
|
t === void 0 && c(e), r?.(e);
|
|
5472
5745
|
}, [t, r]), u = t ?? s;
|
|
5473
|
-
return /* @__PURE__ */ X(
|
|
5746
|
+
return /* @__PURE__ */ X(Xa.Provider, {
|
|
5474
5747
|
value: {
|
|
5475
5748
|
activeStep: u,
|
|
5476
5749
|
orientation: i,
|
|
@@ -5484,9 +5757,9 @@ function qa({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i =
|
|
|
5484
5757
|
})
|
|
5485
5758
|
});
|
|
5486
5759
|
}
|
|
5487
|
-
function
|
|
5488
|
-
let { activeStep: s } =
|
|
5489
|
-
return /* @__PURE__ */ X(
|
|
5760
|
+
function to({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, className: i, children: a, ...o }) {
|
|
5761
|
+
let { activeStep: s } = Qa(), c = t || e < s ? "completed" : s === e ? "active" : "inactive", l = r && e === s;
|
|
5762
|
+
return /* @__PURE__ */ X(Za.Provider, {
|
|
5490
5763
|
value: {
|
|
5491
5764
|
isDisabled: n,
|
|
5492
5765
|
isLoading: l,
|
|
@@ -5503,8 +5776,8 @@ function Ja({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, cla
|
|
|
5503
5776
|
})
|
|
5504
5777
|
});
|
|
5505
5778
|
}
|
|
5506
|
-
function
|
|
5507
|
-
let { setActiveStep: i } =
|
|
5779
|
+
function no({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5780
|
+
let { setActiveStep: i } = Qa(), { step: a, isDisabled: o } = $a();
|
|
5508
5781
|
return e ? /* @__PURE__ */ X(e ? ke.Root : "span", {
|
|
5509
5782
|
className: t,
|
|
5510
5783
|
"data-slot": "stepper-trigger",
|
|
@@ -5519,8 +5792,8 @@ function Ya({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5519
5792
|
children: n
|
|
5520
5793
|
});
|
|
5521
5794
|
}
|
|
5522
|
-
function
|
|
5523
|
-
let { state: i, step: a, isLoading: o } =
|
|
5795
|
+
function ro({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5796
|
+
let { state: i, step: a, isLoading: o } = $a();
|
|
5524
5797
|
return /* @__PURE__ */ X("span", {
|
|
5525
5798
|
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),
|
|
5526
5799
|
"data-slot": "stepper-indicator",
|
|
@@ -5538,7 +5811,7 @@ function Xa({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5538
5811
|
}),
|
|
5539
5812
|
o && /* @__PURE__ */ X("span", {
|
|
5540
5813
|
className: "absolute transition-all",
|
|
5541
|
-
children: /* @__PURE__ */ X(
|
|
5814
|
+
children: /* @__PURE__ */ X(ie, {
|
|
5542
5815
|
"aria-hidden": "true",
|
|
5543
5816
|
className: "animate-spin",
|
|
5544
5817
|
size: 14
|
|
@@ -5547,21 +5820,21 @@ function Xa({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5547
5820
|
] })
|
|
5548
5821
|
});
|
|
5549
5822
|
}
|
|
5550
|
-
function
|
|
5823
|
+
function io({ className: e, ...t }) {
|
|
5551
5824
|
return /* @__PURE__ */ X("h3", {
|
|
5552
5825
|
className: Q("font-medium text-sm", e),
|
|
5553
5826
|
"data-slot": "stepper-title",
|
|
5554
5827
|
...t
|
|
5555
5828
|
});
|
|
5556
5829
|
}
|
|
5557
|
-
function
|
|
5830
|
+
function ao({ className: e, ...t }) {
|
|
5558
5831
|
return /* @__PURE__ */ X("p", {
|
|
5559
5832
|
className: Q("text-muted-foreground text-sm", e),
|
|
5560
5833
|
"data-slot": "stepper-description",
|
|
5561
5834
|
...t
|
|
5562
5835
|
});
|
|
5563
5836
|
}
|
|
5564
|
-
function
|
|
5837
|
+
function oo({ className: e, ...t }) {
|
|
5565
5838
|
return /* @__PURE__ */ X("div", {
|
|
5566
5839
|
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),
|
|
5567
5840
|
"data-slot": "stepper-separator",
|
|
@@ -5570,7 +5843,7 @@ function $a({ className: e, ...t }) {
|
|
|
5570
5843
|
}
|
|
5571
5844
|
//#endregion
|
|
5572
5845
|
//#region src/components/ui/switch.tsx
|
|
5573
|
-
function
|
|
5846
|
+
function so({ className: e, size: t = "default", ...n }) {
|
|
5574
5847
|
return /* @__PURE__ */ X(Ae.Root, {
|
|
5575
5848
|
"data-slot": "switch",
|
|
5576
5849
|
"data-size": t,
|
|
@@ -5584,7 +5857,7 @@ function eo({ className: e, size: t = "default", ...n }) {
|
|
|
5584
5857
|
}
|
|
5585
5858
|
//#endregion
|
|
5586
5859
|
//#region src/components/ui/tabs.tsx
|
|
5587
|
-
function
|
|
5860
|
+
function co({ className: e, orientation: t = "horizontal", ...n }) {
|
|
5588
5861
|
return /* @__PURE__ */ X(je.Root, {
|
|
5589
5862
|
"data-slot": "tabs",
|
|
5590
5863
|
"data-orientation": t,
|
|
@@ -5592,29 +5865,29 @@ function to({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
5592
5865
|
...n
|
|
5593
5866
|
});
|
|
5594
5867
|
}
|
|
5595
|
-
var
|
|
5868
|
+
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", {
|
|
5596
5869
|
variants: { variant: {
|
|
5597
5870
|
default: "bg-muted",
|
|
5598
5871
|
line: "gap-1 bg-transparent"
|
|
5599
5872
|
} },
|
|
5600
5873
|
defaultVariants: { variant: "default" }
|
|
5601
5874
|
});
|
|
5602
|
-
function
|
|
5875
|
+
function uo({ className: e, variant: t = "default", ...n }) {
|
|
5603
5876
|
return /* @__PURE__ */ X(je.List, {
|
|
5604
5877
|
"data-slot": "tabs-list",
|
|
5605
5878
|
"data-variant": t,
|
|
5606
|
-
className: Q(
|
|
5879
|
+
className: Q(lo({ variant: t }), e),
|
|
5607
5880
|
...n
|
|
5608
5881
|
});
|
|
5609
5882
|
}
|
|
5610
|
-
function
|
|
5883
|
+
function fo({ className: e, ...t }) {
|
|
5611
5884
|
return /* @__PURE__ */ X(je.Trigger, {
|
|
5612
5885
|
"data-slot": "tabs-trigger",
|
|
5613
5886
|
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),
|
|
5614
5887
|
...t
|
|
5615
5888
|
});
|
|
5616
5889
|
}
|
|
5617
|
-
function
|
|
5890
|
+
function po({ className: e, ...t }) {
|
|
5618
5891
|
return /* @__PURE__ */ X(je.Content, {
|
|
5619
5892
|
"data-slot": "tabs-content",
|
|
5620
5893
|
className: Q("flex-1 text-sm outline-none", e),
|
|
@@ -5623,16 +5896,16 @@ function ao({ className: e, ...t }) {
|
|
|
5623
5896
|
}
|
|
5624
5897
|
//#endregion
|
|
5625
5898
|
//#region src/components/ui/timeline.tsx
|
|
5626
|
-
var
|
|
5627
|
-
let e = n.useContext(
|
|
5899
|
+
var mo = n.createContext(void 0), ho = () => {
|
|
5900
|
+
let e = n.useContext(mo);
|
|
5628
5901
|
if (!e) throw Error("useTimeline must be used within a Timeline");
|
|
5629
5902
|
return e;
|
|
5630
5903
|
};
|
|
5631
|
-
function
|
|
5904
|
+
function go({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i = "vertical", className: a, ...o }) {
|
|
5632
5905
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5633
5906
|
t === void 0 && c(e), r?.(e);
|
|
5634
5907
|
}, [t, r]), u = t ?? s;
|
|
5635
|
-
return /* @__PURE__ */ X(
|
|
5908
|
+
return /* @__PURE__ */ X(mo.Provider, {
|
|
5636
5909
|
value: {
|
|
5637
5910
|
activeStep: u,
|
|
5638
5911
|
setActiveStep: l
|
|
@@ -5645,28 +5918,28 @@ function co({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i =
|
|
|
5645
5918
|
})
|
|
5646
5919
|
});
|
|
5647
5920
|
}
|
|
5648
|
-
function
|
|
5921
|
+
function _o({ className: e, ...t }) {
|
|
5649
5922
|
return /* @__PURE__ */ X("div", {
|
|
5650
5923
|
className: Q("text-muted-foreground text-sm", e),
|
|
5651
5924
|
"data-slot": "timeline-content",
|
|
5652
5925
|
...t
|
|
5653
5926
|
});
|
|
5654
5927
|
}
|
|
5655
|
-
function
|
|
5928
|
+
function vo({ asChild: e = !1, className: t, ...n }) {
|
|
5656
5929
|
return /* @__PURE__ */ X(e ? ke.Root : "time", {
|
|
5657
5930
|
className: Q("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", t),
|
|
5658
5931
|
"data-slot": "timeline-date",
|
|
5659
5932
|
...n
|
|
5660
5933
|
});
|
|
5661
5934
|
}
|
|
5662
|
-
function
|
|
5935
|
+
function yo({ className: e, ...t }) {
|
|
5663
5936
|
return /* @__PURE__ */ X("div", {
|
|
5664
5937
|
className: Q(e),
|
|
5665
5938
|
"data-slot": "timeline-header",
|
|
5666
5939
|
...t
|
|
5667
5940
|
});
|
|
5668
5941
|
}
|
|
5669
|
-
function
|
|
5942
|
+
function bo({ className: e, children: t, ...n }) {
|
|
5670
5943
|
return /* @__PURE__ */ X("div", {
|
|
5671
5944
|
"aria-hidden": "true",
|
|
5672
5945
|
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),
|
|
@@ -5675,8 +5948,8 @@ function po({ className: e, children: t, ...n }) {
|
|
|
5675
5948
|
children: t
|
|
5676
5949
|
});
|
|
5677
5950
|
}
|
|
5678
|
-
function
|
|
5679
|
-
let { activeStep: r } =
|
|
5951
|
+
function xo({ step: e, className: t, ...n }) {
|
|
5952
|
+
let { activeStep: r } = ho();
|
|
5680
5953
|
return /* @__PURE__ */ X("div", {
|
|
5681
5954
|
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),
|
|
5682
5955
|
"data-completed": e <= r || void 0,
|
|
@@ -5684,7 +5957,7 @@ function mo({ step: e, className: t, ...n }) {
|
|
|
5684
5957
|
...n
|
|
5685
5958
|
});
|
|
5686
5959
|
}
|
|
5687
|
-
function
|
|
5960
|
+
function So({ className: e, ...t }) {
|
|
5688
5961
|
return /* @__PURE__ */ X("div", {
|
|
5689
5962
|
"aria-hidden": "true",
|
|
5690
5963
|
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),
|
|
@@ -5692,7 +5965,7 @@ function ho({ className: e, ...t }) {
|
|
|
5692
5965
|
...t
|
|
5693
5966
|
});
|
|
5694
5967
|
}
|
|
5695
|
-
function
|
|
5968
|
+
function Co({ className: e, ...t }) {
|
|
5696
5969
|
return /* @__PURE__ */ X("h3", {
|
|
5697
5970
|
className: Q("font-medium text-sm", e),
|
|
5698
5971
|
"data-slot": "timeline-title",
|
|
@@ -5701,7 +5974,7 @@ function go({ className: e, ...t }) {
|
|
|
5701
5974
|
}
|
|
5702
5975
|
//#endregion
|
|
5703
5976
|
//#region src/components/ui/toggle.tsx
|
|
5704
|
-
var
|
|
5977
|
+
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", {
|
|
5705
5978
|
variants: {
|
|
5706
5979
|
variant: {
|
|
5707
5980
|
default: "bg-transparent",
|
|
@@ -5718,10 +5991,10 @@ var _o = W("group/toggle inline-flex items-center justify-center gap-1 rounded-l
|
|
|
5718
5991
|
size: "default"
|
|
5719
5992
|
}
|
|
5720
5993
|
});
|
|
5721
|
-
function
|
|
5994
|
+
function To({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
5722
5995
|
return /* @__PURE__ */ X(Me.Root, {
|
|
5723
5996
|
"data-slot": "toggle",
|
|
5724
|
-
className: Q(
|
|
5997
|
+
className: Q(wo({
|
|
5725
5998
|
variant: t,
|
|
5726
5999
|
size: n,
|
|
5727
6000
|
className: e
|
|
@@ -5731,13 +6004,13 @@ function vo({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
5731
6004
|
}
|
|
5732
6005
|
//#endregion
|
|
5733
6006
|
//#region src/components/ui/toggle-group.tsx
|
|
5734
|
-
var
|
|
6007
|
+
var Eo = n.createContext({
|
|
5735
6008
|
size: "default",
|
|
5736
6009
|
variant: "default",
|
|
5737
6010
|
spacing: 2,
|
|
5738
6011
|
orientation: "horizontal"
|
|
5739
6012
|
});
|
|
5740
|
-
function
|
|
6013
|
+
function Do({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
|
|
5741
6014
|
return /* @__PURE__ */ X(Ne.Root, {
|
|
5742
6015
|
"data-slot": "toggle-group",
|
|
5743
6016
|
"data-variant": t,
|
|
@@ -5747,7 +6020,7 @@ function bo({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5747
6020
|
style: { "--gap": r },
|
|
5748
6021
|
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),
|
|
5749
6022
|
...o,
|
|
5750
|
-
children: /* @__PURE__ */ X(
|
|
6023
|
+
children: /* @__PURE__ */ X(Eo.Provider, {
|
|
5751
6024
|
value: {
|
|
5752
6025
|
variant: t,
|
|
5753
6026
|
size: n,
|
|
@@ -5758,14 +6031,14 @@ function bo({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5758
6031
|
})
|
|
5759
6032
|
});
|
|
5760
6033
|
}
|
|
5761
|
-
function
|
|
5762
|
-
let o = n.useContext(
|
|
6034
|
+
function Oo({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
|
|
6035
|
+
let o = n.useContext(Eo);
|
|
5763
6036
|
return /* @__PURE__ */ X(Ne.Item, {
|
|
5764
6037
|
"data-slot": "toggle-group-item",
|
|
5765
6038
|
"data-variant": o.variant || r,
|
|
5766
6039
|
"data-size": o.size || i,
|
|
5767
6040
|
"data-spacing": o.spacing,
|
|
5768
|
-
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",
|
|
6041
|
+
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({
|
|
5769
6042
|
variant: o.variant || r,
|
|
5770
6043
|
size: o.size || i
|
|
5771
6044
|
}), e),
|
|
@@ -5775,26 +6048,26 @@ function xo({ className: e, children: t, variant: r = "default", size: i = "defa
|
|
|
5775
6048
|
}
|
|
5776
6049
|
//#endregion
|
|
5777
6050
|
//#region src/components/ui/tooltip.tsx
|
|
5778
|
-
function
|
|
6051
|
+
function ko({ delayDuration: e = 0, ...t }) {
|
|
5779
6052
|
return /* @__PURE__ */ X(Pe.Provider, {
|
|
5780
6053
|
"data-slot": "tooltip-provider",
|
|
5781
6054
|
delayDuration: e,
|
|
5782
6055
|
...t
|
|
5783
6056
|
});
|
|
5784
6057
|
}
|
|
5785
|
-
function
|
|
6058
|
+
function Ao({ ...e }) {
|
|
5786
6059
|
return /* @__PURE__ */ X(Pe.Root, {
|
|
5787
6060
|
"data-slot": "tooltip",
|
|
5788
6061
|
...e
|
|
5789
6062
|
});
|
|
5790
6063
|
}
|
|
5791
|
-
function
|
|
6064
|
+
function jo({ ...e }) {
|
|
5792
6065
|
return /* @__PURE__ */ X(Pe.Trigger, {
|
|
5793
6066
|
"data-slot": "tooltip-trigger",
|
|
5794
6067
|
...e
|
|
5795
6068
|
});
|
|
5796
6069
|
}
|
|
5797
|
-
function
|
|
6070
|
+
function Mo({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
5798
6071
|
return /* @__PURE__ */ X(Pe.Portal, { children: /* @__PURE__ */ Z(Pe.Content, {
|
|
5799
6072
|
"data-slot": "tooltip-content",
|
|
5800
6073
|
sideOffset: t,
|
|
@@ -5804,6 +6077,6 @@ function To({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
5804
6077
|
}) });
|
|
5805
6078
|
}
|
|
5806
6079
|
//#endregion
|
|
5807
|
-
export { pt as ActionsMenu,
|
|
6080
|
+
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 };
|
|
5808
6081
|
|
|
5809
6082
|
//# sourceMappingURL=index.js.map
|