@asteby/metacore-starter-core 4.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +471 -562
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +14 -13
- package/dist/components/ui/code-editor.d.ts +0 -13
- package/dist/components/ui/code-editor.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -4,47 +4,49 @@ import { create as n } from "zustand";
|
|
|
4
4
|
import { Toaster as r, toast as i } from "sonner";
|
|
5
5
|
import a, { AxiosError as o } from "axios";
|
|
6
6
|
import * as s from "react";
|
|
7
|
-
import { createContext as c, useContext as l, useEffect as u, useRef as
|
|
8
|
-
import * as
|
|
9
|
-
import { Check as
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { cva as
|
|
12
|
-
import * as
|
|
13
|
-
import { Slot as
|
|
14
|
-
import * as
|
|
15
|
-
import { DayPicker as
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import * as T from "@radix-ui/react-
|
|
21
|
-
import * as E from "@radix-ui/react-dropdown-menu";
|
|
7
|
+
import { createContext as c, useContext as l, useEffect as u, useRef as ee, useState as te } from "react";
|
|
8
|
+
import * as d from "@radix-ui/react-accordion";
|
|
9
|
+
import { Check as f, CheckIcon as p, ChevronDown as m, ChevronDownIcon as h, ChevronLeftIcon as ne, ChevronRightIcon as re, ChevronUpIcon as ie, ChevronsUpDown as ae, CircleIcon as oe, Image as se, Loader2 as ce, MinusIcon as le, PanelLeftIcon as ue, SearchIcon as de, X as fe, XIcon as pe } from "lucide-react";
|
|
10
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
|
+
import { cva as v } from "class-variance-authority";
|
|
12
|
+
import * as y from "@radix-ui/react-alert-dialog";
|
|
13
|
+
import { Slot as b } from "@radix-ui/react-slot";
|
|
14
|
+
import * as x from "@radix-ui/react-avatar";
|
|
15
|
+
import { DayPicker as me, getDefaultClassNames as he } from "react-day-picker";
|
|
16
|
+
import * as ge from "@radix-ui/react-checkbox";
|
|
17
|
+
import * as S from "@radix-ui/react-collapsible";
|
|
18
|
+
import { Command as C } from "cmdk";
|
|
19
|
+
import * as w from "@radix-ui/react-dialog";
|
|
20
|
+
import * as T from "@radix-ui/react-dropdown-menu";
|
|
22
21
|
import { Controller as _e, FormProvider as ve, useFormContext as ye, useFormState as be } from "react-hook-form";
|
|
23
22
|
import * as xe from "@radix-ui/react-label";
|
|
24
23
|
import { OTPInput as Se, OTPInputContext as Ce } from "input-otp";
|
|
25
|
-
import * as
|
|
24
|
+
import * as E from "@radix-ui/react-popover";
|
|
26
25
|
import * as we from "react-phone-number-input";
|
|
27
26
|
import Te from "react-phone-number-input/flags";
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
27
|
+
import * as D from "@radix-ui/react-scroll-area";
|
|
28
|
+
import * as O from "@radix-ui/react-progress";
|
|
29
|
+
import * as k from "@radix-ui/react-radio-group";
|
|
31
30
|
import * as A from "@radix-ui/react-select";
|
|
32
|
-
import * as
|
|
31
|
+
import * as Ee from "@radix-ui/react-separator";
|
|
33
32
|
import * as j from "@radix-ui/react-tooltip";
|
|
34
|
-
import * as
|
|
33
|
+
import * as De from "@radix-ui/react-switch";
|
|
35
34
|
import * as M from "@radix-ui/react-tabs";
|
|
36
35
|
//#region src/lib/utils.ts
|
|
37
36
|
function N(...n) {
|
|
38
37
|
return t(e(n));
|
|
39
38
|
}
|
|
39
|
+
function Oe() {
|
|
40
|
+
return (globalThis.__METACORE_BACKEND_URL__ || "http://localhost:8080").replace(/\/api\/?$/, "").replace(/\/+$/, "");
|
|
41
|
+
}
|
|
40
42
|
function ke(e, t) {
|
|
41
43
|
if (!e) return "";
|
|
42
44
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
43
|
-
let n =
|
|
45
|
+
let n = Oe();
|
|
44
46
|
return e.startsWith("/storage/") ? `${n}${e}` : `${n}/storage/${t}/${e}`;
|
|
45
47
|
}
|
|
46
48
|
function Ae(e) {
|
|
47
|
-
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${
|
|
49
|
+
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${Oe()}${e.startsWith("/") ? e : `/${e}`}` : "";
|
|
48
50
|
}
|
|
49
51
|
function je(e = 1e3) {
|
|
50
52
|
return new Promise((t) => setTimeout(t, e));
|
|
@@ -439,35 +441,35 @@ function et(e) {
|
|
|
439
441
|
}
|
|
440
442
|
//#endregion
|
|
441
443
|
//#region src/components/ui/accordion.tsx
|
|
442
|
-
var tt =
|
|
444
|
+
var tt = d.Root, nt = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g(d.Item, {
|
|
443
445
|
ref: n,
|
|
444
446
|
className: N("border-b", e),
|
|
445
447
|
...t
|
|
446
448
|
}));
|
|
447
449
|
nt.displayName = "AccordionItem";
|
|
448
|
-
var rt = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
450
|
+
var rt = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g(d.Header, {
|
|
449
451
|
className: "flex",
|
|
450
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ _(d.Trigger, {
|
|
451
453
|
ref: r,
|
|
452
454
|
className: N("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
|
|
453
455
|
...n,
|
|
454
|
-
children: [t, /* @__PURE__ */
|
|
456
|
+
children: [t, /* @__PURE__ */ g(m, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
455
457
|
})
|
|
456
458
|
}));
|
|
457
|
-
rt.displayName =
|
|
458
|
-
var it = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
459
|
+
rt.displayName = d.Trigger.displayName;
|
|
460
|
+
var it = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g(d.Content, {
|
|
459
461
|
ref: r,
|
|
460
462
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
461
463
|
...n,
|
|
462
|
-
children: /* @__PURE__ */
|
|
464
|
+
children: /* @__PURE__ */ g("div", {
|
|
463
465
|
className: N("pb-4 pt-0", e),
|
|
464
466
|
children: t
|
|
465
467
|
})
|
|
466
468
|
}));
|
|
467
|
-
it.displayName =
|
|
469
|
+
it.displayName = d.Content.displayName;
|
|
468
470
|
//#endregion
|
|
469
471
|
//#region src/components/ui/alert.tsx
|
|
470
|
-
var at =
|
|
472
|
+
var at = v("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
471
473
|
variants: { variant: {
|
|
472
474
|
default: "bg-card text-card-foreground",
|
|
473
475
|
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
@@ -475,7 +477,7 @@ var at = b("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:
|
|
|
475
477
|
defaultVariants: { variant: "default" }
|
|
476
478
|
});
|
|
477
479
|
function ot({ className: e, variant: t, ...n }) {
|
|
478
|
-
return /* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ g("div", {
|
|
479
481
|
"data-slot": "alert",
|
|
480
482
|
role: "alert",
|
|
481
483
|
className: N(at({ variant: t }), e),
|
|
@@ -483,14 +485,14 @@ function ot({ className: e, variant: t, ...n }) {
|
|
|
483
485
|
});
|
|
484
486
|
}
|
|
485
487
|
function st({ className: e, ...t }) {
|
|
486
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ g("div", {
|
|
487
489
|
"data-slot": "alert-title",
|
|
488
490
|
className: N("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
489
491
|
...t
|
|
490
492
|
});
|
|
491
493
|
}
|
|
492
494
|
function ct({ className: e, ...t }) {
|
|
493
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ g("div", {
|
|
494
496
|
"data-slot": "alert-description",
|
|
495
497
|
className: N("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", e),
|
|
496
498
|
...t
|
|
@@ -498,7 +500,7 @@ function ct({ className: e, ...t }) {
|
|
|
498
500
|
}
|
|
499
501
|
//#endregion
|
|
500
502
|
//#region src/components/ui/button.tsx
|
|
501
|
-
var R =
|
|
503
|
+
var R = v("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
502
504
|
variants: {
|
|
503
505
|
variant: {
|
|
504
506
|
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
@@ -521,7 +523,7 @@ var R = b("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
521
523
|
}
|
|
522
524
|
});
|
|
523
525
|
function z({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
|
|
524
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ g(r ? b : "button", {
|
|
525
527
|
"data-slot": "button",
|
|
526
528
|
className: N(R({
|
|
527
529
|
variant: t,
|
|
@@ -534,73 +536,73 @@ function z({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
|
|
|
534
536
|
//#endregion
|
|
535
537
|
//#region src/components/ui/alert-dialog.tsx
|
|
536
538
|
function lt({ ...e }) {
|
|
537
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ g(y.Root, {
|
|
538
540
|
"data-slot": "alert-dialog",
|
|
539
541
|
...e
|
|
540
542
|
});
|
|
541
543
|
}
|
|
542
544
|
function ut({ ...e }) {
|
|
543
|
-
return /* @__PURE__ */
|
|
545
|
+
return /* @__PURE__ */ g(y.Trigger, {
|
|
544
546
|
"data-slot": "alert-dialog-trigger",
|
|
545
547
|
...e
|
|
546
548
|
});
|
|
547
549
|
}
|
|
548
550
|
function dt({ ...e }) {
|
|
549
|
-
return /* @__PURE__ */
|
|
551
|
+
return /* @__PURE__ */ g(y.Portal, {
|
|
550
552
|
"data-slot": "alert-dialog-portal",
|
|
551
553
|
...e
|
|
552
554
|
});
|
|
553
555
|
}
|
|
554
556
|
function ft({ className: e, ...t }) {
|
|
555
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ g(y.Overlay, {
|
|
556
558
|
"data-slot": "alert-dialog-overlay",
|
|
557
559
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
558
560
|
...t
|
|
559
561
|
});
|
|
560
562
|
}
|
|
561
563
|
function pt({ className: e, ...t }) {
|
|
562
|
-
return /* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ _(dt, { children: [/* @__PURE__ */ g(ft, {}), /* @__PURE__ */ g(y.Content, {
|
|
563
565
|
"data-slot": "alert-dialog-content",
|
|
564
566
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
565
567
|
...t
|
|
566
568
|
})] });
|
|
567
569
|
}
|
|
568
570
|
function mt({ className: e, ...t }) {
|
|
569
|
-
return /* @__PURE__ */
|
|
571
|
+
return /* @__PURE__ */ g("div", {
|
|
570
572
|
"data-slot": "alert-dialog-header",
|
|
571
573
|
className: N("flex flex-col gap-2 text-center sm:text-start", e),
|
|
572
574
|
...t
|
|
573
575
|
});
|
|
574
576
|
}
|
|
575
577
|
function ht({ className: e, ...t }) {
|
|
576
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ g("div", {
|
|
577
579
|
"data-slot": "alert-dialog-footer",
|
|
578
580
|
className: N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
579
581
|
...t
|
|
580
582
|
});
|
|
581
583
|
}
|
|
582
584
|
function gt({ className: e, ...t }) {
|
|
583
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ g(y.Title, {
|
|
584
586
|
"data-slot": "alert-dialog-title",
|
|
585
587
|
className: N("text-lg font-semibold", e),
|
|
586
588
|
...t
|
|
587
589
|
});
|
|
588
590
|
}
|
|
589
591
|
function _t({ className: e, ...t }) {
|
|
590
|
-
return /* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ g(y.Description, {
|
|
591
593
|
"data-slot": "alert-dialog-description",
|
|
592
594
|
className: N("text-muted-foreground text-sm", e),
|
|
593
595
|
...t
|
|
594
596
|
});
|
|
595
597
|
}
|
|
596
598
|
function vt({ className: e, ...t }) {
|
|
597
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ g(y.Action, {
|
|
598
600
|
className: N(R(), e),
|
|
599
601
|
...t
|
|
600
602
|
});
|
|
601
603
|
}
|
|
602
604
|
function yt({ className: e, ...t }) {
|
|
603
|
-
return /* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ g(y.Cancel, {
|
|
604
606
|
className: N(R({ variant: "outline" }), e),
|
|
605
607
|
...t
|
|
606
608
|
});
|
|
@@ -608,21 +610,21 @@ function yt({ className: e, ...t }) {
|
|
|
608
610
|
//#endregion
|
|
609
611
|
//#region src/components/ui/avatar.tsx
|
|
610
612
|
function bt({ className: e, ...t }) {
|
|
611
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ g(x.Root, {
|
|
612
614
|
"data-slot": "avatar",
|
|
613
615
|
className: N("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
614
616
|
...t
|
|
615
617
|
});
|
|
616
618
|
}
|
|
617
619
|
function xt({ className: e, ...t }) {
|
|
618
|
-
return /* @__PURE__ */
|
|
620
|
+
return /* @__PURE__ */ g(x.Image, {
|
|
619
621
|
"data-slot": "avatar-image",
|
|
620
622
|
className: N("aspect-square size-full object-cover", e),
|
|
621
623
|
...t
|
|
622
624
|
});
|
|
623
625
|
}
|
|
624
626
|
function St({ className: e, ...t }) {
|
|
625
|
-
return /* @__PURE__ */
|
|
627
|
+
return /* @__PURE__ */ g(x.Fallback, {
|
|
626
628
|
"data-slot": "avatar-fallback",
|
|
627
629
|
className: N("bg-muted flex size-full items-center justify-center rounded-full", e),
|
|
628
630
|
...t
|
|
@@ -630,7 +632,7 @@ function St({ className: e, ...t }) {
|
|
|
630
632
|
}
|
|
631
633
|
//#endregion
|
|
632
634
|
//#region src/components/ui/badge.tsx
|
|
633
|
-
var Ct =
|
|
635
|
+
var Ct = v("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
634
636
|
variants: { variant: {
|
|
635
637
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
636
638
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -640,7 +642,7 @@ var Ct = b("inline-flex items-center justify-center rounded-md border px-2 py-0.
|
|
|
640
642
|
defaultVariants: { variant: "default" }
|
|
641
643
|
});
|
|
642
644
|
function wt({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
643
|
-
return /* @__PURE__ */
|
|
645
|
+
return /* @__PURE__ */ g(n ? b : "span", {
|
|
644
646
|
"data-slot": "badge",
|
|
645
647
|
className: N(Ct({ variant: t }), e),
|
|
646
648
|
...r
|
|
@@ -649,8 +651,8 @@ function wt({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
|
649
651
|
//#endregion
|
|
650
652
|
//#region src/components/ui/calendar.tsx
|
|
651
653
|
function Tt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
|
|
652
|
-
let c =
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
+
let c = he();
|
|
655
|
+
return /* @__PURE__ */ g(me, {
|
|
654
656
|
showOutsideDays: n,
|
|
655
657
|
className: N("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
656
658
|
captionLayout: r,
|
|
@@ -687,20 +689,20 @@ function Tt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
687
689
|
...t
|
|
688
690
|
},
|
|
689
691
|
components: {
|
|
690
|
-
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */
|
|
692
|
+
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ g("div", {
|
|
691
693
|
"data-slot": "calendar",
|
|
692
694
|
ref: t,
|
|
693
695
|
className: N(e),
|
|
694
696
|
...n
|
|
695
697
|
}),
|
|
696
|
-
Chevron: ({ className: e, orientation: t, ...n }) =>
|
|
698
|
+
Chevron: ({ className: e, orientation: t, ...n }) => g(t === "left" ? ne : t === "right" ? re : h, {
|
|
697
699
|
className: N("size-4", e),
|
|
698
700
|
...n
|
|
699
701
|
}),
|
|
700
702
|
DayButton: Et,
|
|
701
|
-
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */
|
|
703
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ g("td", {
|
|
702
704
|
...t,
|
|
703
|
-
children: /* @__PURE__ */
|
|
705
|
+
children: /* @__PURE__ */ g("div", {
|
|
704
706
|
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
705
707
|
children: e
|
|
706
708
|
})
|
|
@@ -711,10 +713,10 @@ function Tt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
711
713
|
});
|
|
712
714
|
}
|
|
713
715
|
function Et({ className: e, day: t, modifiers: n, ...r }) {
|
|
714
|
-
let i =
|
|
716
|
+
let i = he(), a = s.useRef(null);
|
|
715
717
|
return s.useEffect(() => {
|
|
716
718
|
n.focused && a.current?.focus();
|
|
717
|
-
}, [n.focused]), /* @__PURE__ */
|
|
719
|
+
}, [n.focused]), /* @__PURE__ */ g(z, {
|
|
718
720
|
ref: a,
|
|
719
721
|
variant: "ghost",
|
|
720
722
|
size: "icon",
|
|
@@ -730,49 +732,49 @@ function Et({ className: e, day: t, modifiers: n, ...r }) {
|
|
|
730
732
|
//#endregion
|
|
731
733
|
//#region src/components/ui/card.tsx
|
|
732
734
|
function Dt({ className: e, ...t }) {
|
|
733
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ g("div", {
|
|
734
736
|
"data-slot": "card",
|
|
735
737
|
className: N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
|
|
736
738
|
...t
|
|
737
739
|
});
|
|
738
740
|
}
|
|
739
741
|
function Ot({ className: e, ...t }) {
|
|
740
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ g("div", {
|
|
741
743
|
"data-slot": "card-header",
|
|
742
744
|
className: N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
|
|
743
745
|
...t
|
|
744
746
|
});
|
|
745
747
|
}
|
|
746
748
|
function kt({ className: e, ...t }) {
|
|
747
|
-
return /* @__PURE__ */
|
|
749
|
+
return /* @__PURE__ */ g("div", {
|
|
748
750
|
"data-slot": "card-title",
|
|
749
751
|
className: N("leading-none font-semibold", e),
|
|
750
752
|
...t
|
|
751
753
|
});
|
|
752
754
|
}
|
|
753
755
|
function At({ className: e, ...t }) {
|
|
754
|
-
return /* @__PURE__ */
|
|
756
|
+
return /* @__PURE__ */ g("div", {
|
|
755
757
|
"data-slot": "card-description",
|
|
756
758
|
className: N("text-muted-foreground text-sm", e),
|
|
757
759
|
...t
|
|
758
760
|
});
|
|
759
761
|
}
|
|
760
762
|
function jt({ className: e, ...t }) {
|
|
761
|
-
return /* @__PURE__ */
|
|
763
|
+
return /* @__PURE__ */ g("div", {
|
|
762
764
|
"data-slot": "card-action",
|
|
763
765
|
className: N("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
764
766
|
...t
|
|
765
767
|
});
|
|
766
768
|
}
|
|
767
769
|
function Mt({ className: e, ...t }) {
|
|
768
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ g("div", {
|
|
769
771
|
"data-slot": "card-content",
|
|
770
772
|
className: N("px-6", e),
|
|
771
773
|
...t
|
|
772
774
|
});
|
|
773
775
|
}
|
|
774
776
|
function Nt({ className: e, ...t }) {
|
|
775
|
-
return /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ g("div", {
|
|
776
778
|
"data-slot": "card-footer",
|
|
777
779
|
className: N("flex items-center px-6 [.border-t]:pt-6", e),
|
|
778
780
|
...t
|
|
@@ -781,187 +783,81 @@ function Nt({ className: e, ...t }) {
|
|
|
781
783
|
//#endregion
|
|
782
784
|
//#region src/components/ui/checkbox.tsx
|
|
783
785
|
function Pt({ className: e, ...t }) {
|
|
784
|
-
return /* @__PURE__ */
|
|
786
|
+
return /* @__PURE__ */ g(ge.Root, {
|
|
785
787
|
"data-slot": "checkbox",
|
|
786
788
|
className: N("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
787
789
|
...t,
|
|
788
|
-
children: /* @__PURE__ */
|
|
790
|
+
children: /* @__PURE__ */ g(ge.Indicator, {
|
|
789
791
|
"data-slot": "checkbox-indicator",
|
|
790
792
|
className: "flex items-center justify-center text-current transition-none",
|
|
791
|
-
children: /* @__PURE__ */
|
|
792
|
-
})
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/context/theme-provider.tsx
|
|
797
|
-
var Ft = "system", It = c({
|
|
798
|
-
defaultTheme: Ft,
|
|
799
|
-
resolvedTheme: "light",
|
|
800
|
-
theme: Ft,
|
|
801
|
-
setTheme: () => null,
|
|
802
|
-
resetTheme: () => null
|
|
803
|
-
}), Lt = () => {
|
|
804
|
-
let e = l(It);
|
|
805
|
-
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
806
|
-
return e;
|
|
807
|
-
};
|
|
808
|
-
//#endregion
|
|
809
|
-
//#region src/components/ui/code-editor.tsx
|
|
810
|
-
function Rt({ value: e, onChange: t, language: n = "json", height: r = "200px", readOnly: i = !1, minimap: a = !1, onDrop: o, disableValidation: s = !1 }) {
|
|
811
|
-
let { theme: c } = Lt(), l = d(null), [u, p] = f(!1);
|
|
812
|
-
return /* @__PURE__ */ v("div", {
|
|
813
|
-
className: N("border rounded-md overflow-hidden bg-background transition-all duration-200", u && "ring-2 ring-violet-500 ring-offset-2 border-violet-500"),
|
|
814
|
-
children: /* @__PURE__ */ v(he, {
|
|
815
|
-
height: r,
|
|
816
|
-
language: n,
|
|
817
|
-
value: e,
|
|
818
|
-
onChange: t,
|
|
819
|
-
beforeMount: (e) => {
|
|
820
|
-
s && n === "json" && e.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
821
|
-
validate: !1,
|
|
822
|
-
schemaValidation: "ignore"
|
|
823
|
-
});
|
|
824
|
-
},
|
|
825
|
-
onMount: (e, n) => {
|
|
826
|
-
l.current = e, e.updateOptions({
|
|
827
|
-
scrollBeyondLastLine: !1,
|
|
828
|
-
fontSize: 12,
|
|
829
|
-
fontFamily: "'Geist Mono', monospace",
|
|
830
|
-
padding: {
|
|
831
|
-
top: 8,
|
|
832
|
-
bottom: 8
|
|
833
|
-
}
|
|
834
|
-
}), s && n.editor.setModelMarkers(e.getModel(), "json", []);
|
|
835
|
-
let r = e.getDomNode();
|
|
836
|
-
r && (r.addEventListener("dragover", (e) => {
|
|
837
|
-
e.preventDefault(), e.stopPropagation(), p(!0);
|
|
838
|
-
}), r.addEventListener("dragleave", (e) => {
|
|
839
|
-
e.preventDefault(), p(!1);
|
|
840
|
-
}), r.addEventListener("drop", (n) => {
|
|
841
|
-
n.preventDefault(), n.stopPropagation(), p(!1);
|
|
842
|
-
let r = n.dataTransfer?.getData("variable") || n.dataTransfer?.getData("text/plain");
|
|
843
|
-
if (!r) return;
|
|
844
|
-
let i = e.getTargetAtClientPoint(n.clientX, n.clientY);
|
|
845
|
-
if (i?.position) {
|
|
846
|
-
let t = i.position;
|
|
847
|
-
e.executeEdits("drop", [{
|
|
848
|
-
range: {
|
|
849
|
-
startLineNumber: t.lineNumber,
|
|
850
|
-
startColumn: t.column,
|
|
851
|
-
endLineNumber: t.lineNumber,
|
|
852
|
-
endColumn: t.column
|
|
853
|
-
},
|
|
854
|
-
text: r
|
|
855
|
-
}]), e.setPosition({
|
|
856
|
-
lineNumber: t.lineNumber,
|
|
857
|
-
column: t.column + r.length
|
|
858
|
-
}), e.focus();
|
|
859
|
-
} else {
|
|
860
|
-
let t = e.getPosition();
|
|
861
|
-
t && e.executeEdits("drop", [{
|
|
862
|
-
range: {
|
|
863
|
-
startLineNumber: t.lineNumber,
|
|
864
|
-
startColumn: t.column,
|
|
865
|
-
endLineNumber: t.lineNumber,
|
|
866
|
-
endColumn: t.column
|
|
867
|
-
},
|
|
868
|
-
text: r
|
|
869
|
-
}]);
|
|
870
|
-
}
|
|
871
|
-
let a = e.getValue();
|
|
872
|
-
t?.(a), o?.(r);
|
|
873
|
-
}));
|
|
874
|
-
},
|
|
875
|
-
theme: c === "dark" ? "vs-dark" : "light",
|
|
876
|
-
options: {
|
|
877
|
-
readOnly: i,
|
|
878
|
-
minimap: { enabled: a },
|
|
879
|
-
scrollBeyondLastLine: !1,
|
|
880
|
-
fontSize: 12,
|
|
881
|
-
fontFamily: "'Geist Mono', monospace",
|
|
882
|
-
padding: {
|
|
883
|
-
top: 8,
|
|
884
|
-
bottom: 8
|
|
885
|
-
},
|
|
886
|
-
lineNumbers: "on",
|
|
887
|
-
renderLineHighlight: "all",
|
|
888
|
-
automaticLayout: !0,
|
|
889
|
-
dropIntoEditor: { enabled: !0 }
|
|
890
|
-
},
|
|
891
|
-
loading: /* @__PURE__ */ y("div", {
|
|
892
|
-
className: "flex items-center justify-center h-full text-muted-foreground gap-2",
|
|
893
|
-
children: [/* @__PURE__ */ v(oe, { className: "h-4 w-4 animate-spin" }), /* @__PURE__ */ v("span", {
|
|
894
|
-
className: "text-xs",
|
|
895
|
-
children: "Cargando editor..."
|
|
896
|
-
})]
|
|
897
|
-
})
|
|
793
|
+
children: /* @__PURE__ */ g(p, { className: "size-3.5" })
|
|
898
794
|
})
|
|
899
795
|
});
|
|
900
796
|
}
|
|
901
797
|
//#endregion
|
|
902
798
|
//#region src/components/ui/collapsible.tsx
|
|
903
|
-
function
|
|
904
|
-
return /* @__PURE__ */
|
|
799
|
+
function Ft({ ...e }) {
|
|
800
|
+
return /* @__PURE__ */ g(S.Root, {
|
|
905
801
|
"data-slot": "collapsible",
|
|
906
802
|
...e
|
|
907
803
|
});
|
|
908
804
|
}
|
|
909
|
-
function
|
|
910
|
-
return /* @__PURE__ */
|
|
805
|
+
function It({ ...e }) {
|
|
806
|
+
return /* @__PURE__ */ g(S.CollapsibleTrigger, {
|
|
911
807
|
"data-slot": "collapsible-trigger",
|
|
912
808
|
...e
|
|
913
809
|
});
|
|
914
810
|
}
|
|
915
|
-
function
|
|
916
|
-
return /* @__PURE__ */
|
|
811
|
+
function Lt({ ...e }) {
|
|
812
|
+
return /* @__PURE__ */ g(S.CollapsibleContent, {
|
|
917
813
|
"data-slot": "collapsible-content",
|
|
918
814
|
...e
|
|
919
815
|
});
|
|
920
816
|
}
|
|
921
817
|
//#endregion
|
|
922
818
|
//#region src/components/ui/dialog.tsx
|
|
923
|
-
function
|
|
924
|
-
return /* @__PURE__ */
|
|
819
|
+
function Rt({ ...e }) {
|
|
820
|
+
return /* @__PURE__ */ g(w.Root, {
|
|
925
821
|
"data-slot": "dialog",
|
|
926
822
|
...e
|
|
927
823
|
});
|
|
928
824
|
}
|
|
929
|
-
function
|
|
930
|
-
return /* @__PURE__ */
|
|
825
|
+
function zt({ ...e }) {
|
|
826
|
+
return /* @__PURE__ */ g(w.Trigger, {
|
|
931
827
|
"data-slot": "dialog-trigger",
|
|
932
828
|
...e
|
|
933
829
|
});
|
|
934
830
|
}
|
|
935
|
-
function
|
|
936
|
-
return /* @__PURE__ */
|
|
831
|
+
function Bt({ ...e }) {
|
|
832
|
+
return /* @__PURE__ */ g(w.Portal, {
|
|
937
833
|
"data-slot": "dialog-portal",
|
|
938
834
|
...e
|
|
939
835
|
});
|
|
940
836
|
}
|
|
941
|
-
function
|
|
942
|
-
return /* @__PURE__ */
|
|
837
|
+
function Vt({ ...e }) {
|
|
838
|
+
return /* @__PURE__ */ g(w.Close, {
|
|
943
839
|
"data-slot": "dialog-close",
|
|
944
840
|
...e
|
|
945
841
|
});
|
|
946
842
|
}
|
|
947
|
-
function
|
|
948
|
-
return /* @__PURE__ */
|
|
843
|
+
function Ht({ className: e, ...t }) {
|
|
844
|
+
return /* @__PURE__ */ g(w.Overlay, {
|
|
949
845
|
"data-slot": "dialog-overlay",
|
|
950
846
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
951
847
|
...t
|
|
952
848
|
});
|
|
953
849
|
}
|
|
954
|
-
function
|
|
955
|
-
return /* @__PURE__ */
|
|
850
|
+
function Ut({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
851
|
+
return /* @__PURE__ */ _(Bt, {
|
|
956
852
|
"data-slot": "dialog-portal",
|
|
957
|
-
children: [/* @__PURE__ */
|
|
853
|
+
children: [/* @__PURE__ */ g(Ht, {}), /* @__PURE__ */ _(w.Content, {
|
|
958
854
|
"data-slot": "dialog-content",
|
|
959
855
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
960
856
|
...r,
|
|
961
|
-
children: [t, n && /* @__PURE__ */
|
|
857
|
+
children: [t, n && /* @__PURE__ */ _(w.Close, {
|
|
962
858
|
"data-slot": "dialog-close",
|
|
963
859
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
964
|
-
children: [/* @__PURE__ */
|
|
860
|
+
children: [/* @__PURE__ */ g(pe, {}), /* @__PURE__ */ g("span", {
|
|
965
861
|
className: "sr-only",
|
|
966
862
|
children: "Close"
|
|
967
863
|
})]
|
|
@@ -969,29 +865,29 @@ function qt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
969
865
|
})]
|
|
970
866
|
});
|
|
971
867
|
}
|
|
972
|
-
function
|
|
973
|
-
return /* @__PURE__ */
|
|
868
|
+
function Wt({ className: e, ...t }) {
|
|
869
|
+
return /* @__PURE__ */ g("div", {
|
|
974
870
|
"data-slot": "dialog-header",
|
|
975
871
|
className: N("flex flex-col gap-2 text-center sm:text-start", e),
|
|
976
872
|
...t
|
|
977
873
|
});
|
|
978
874
|
}
|
|
979
|
-
function
|
|
980
|
-
return /* @__PURE__ */
|
|
875
|
+
function Gt({ className: e, ...t }) {
|
|
876
|
+
return /* @__PURE__ */ g("div", {
|
|
981
877
|
"data-slot": "dialog-footer",
|
|
982
878
|
className: N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
983
879
|
...t
|
|
984
880
|
});
|
|
985
881
|
}
|
|
986
|
-
function
|
|
987
|
-
return /* @__PURE__ */
|
|
882
|
+
function Kt({ className: e, ...t }) {
|
|
883
|
+
return /* @__PURE__ */ g(w.Title, {
|
|
988
884
|
"data-slot": "dialog-title",
|
|
989
885
|
className: N("text-lg leading-none font-semibold", e),
|
|
990
886
|
...t
|
|
991
887
|
});
|
|
992
888
|
}
|
|
993
|
-
function
|
|
994
|
-
return /* @__PURE__ */
|
|
889
|
+
function qt({ className: e, ...t }) {
|
|
890
|
+
return /* @__PURE__ */ g(w.Description, {
|
|
995
891
|
"data-slot": "dialog-description",
|
|
996
892
|
className: N("text-muted-foreground text-sm", e),
|
|
997
893
|
...t
|
|
@@ -1000,22 +896,22 @@ function Zt({ className: e, ...t }) {
|
|
|
1000
896
|
//#endregion
|
|
1001
897
|
//#region src/components/ui/command.tsx
|
|
1002
898
|
function B({ className: e, ...t }) {
|
|
1003
|
-
return /* @__PURE__ */
|
|
899
|
+
return /* @__PURE__ */ g(C, {
|
|
1004
900
|
"data-slot": "command",
|
|
1005
901
|
className: N("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", e),
|
|
1006
902
|
...t
|
|
1007
903
|
});
|
|
1008
904
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return /* @__PURE__ */
|
|
905
|
+
function Jt({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...a }) {
|
|
906
|
+
return /* @__PURE__ */ _(Rt, {
|
|
1011
907
|
...a,
|
|
1012
|
-
children: [/* @__PURE__ */
|
|
908
|
+
children: [/* @__PURE__ */ _(Wt, {
|
|
1013
909
|
className: "sr-only",
|
|
1014
|
-
children: [/* @__PURE__ */
|
|
1015
|
-
}), /* @__PURE__ */
|
|
910
|
+
children: [/* @__PURE__ */ g(Kt, { children: e }), /* @__PURE__ */ g(qt, { children: t })]
|
|
911
|
+
}), /* @__PURE__ */ g(Ut, {
|
|
1016
912
|
className: N("overflow-hidden p-0", r),
|
|
1017
913
|
showCloseButton: i,
|
|
1018
|
-
children: /* @__PURE__ */
|
|
914
|
+
children: /* @__PURE__ */ g(B, {
|
|
1019
915
|
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
1020
916
|
children: n
|
|
1021
917
|
})
|
|
@@ -1023,10 +919,10 @@ function Qt({ title: e = "Command Palette", description: t = "Search for a comma
|
|
|
1023
919
|
});
|
|
1024
920
|
}
|
|
1025
921
|
function V({ className: e, ...t }) {
|
|
1026
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ _("div", {
|
|
1027
923
|
"data-slot": "command-input-wrapper",
|
|
1028
924
|
className: "flex h-10 items-center gap-2 border-b px-3",
|
|
1029
|
-
children: [/* @__PURE__ */
|
|
925
|
+
children: [/* @__PURE__ */ g(de, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ g(C.Input, {
|
|
1030
926
|
"data-slot": "command-input",
|
|
1031
927
|
className: N("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1032
928
|
...t
|
|
@@ -1034,42 +930,42 @@ function V({ className: e, ...t }) {
|
|
|
1034
930
|
});
|
|
1035
931
|
}
|
|
1036
932
|
function H({ className: e, ...t }) {
|
|
1037
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ g(C.List, {
|
|
1038
934
|
"data-slot": "command-list",
|
|
1039
935
|
className: N("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
|
|
1040
936
|
...t
|
|
1041
937
|
});
|
|
1042
938
|
}
|
|
1043
939
|
function U({ ...e }) {
|
|
1044
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ g(C.Empty, {
|
|
1045
941
|
"data-slot": "command-empty",
|
|
1046
942
|
className: "py-6 text-center text-sm",
|
|
1047
943
|
...e
|
|
1048
944
|
});
|
|
1049
945
|
}
|
|
1050
946
|
function W({ className: e, ...t }) {
|
|
1051
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ g(C.Group, {
|
|
1052
948
|
"data-slot": "command-group",
|
|
1053
949
|
className: N("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", e),
|
|
1054
950
|
...t
|
|
1055
951
|
});
|
|
1056
952
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return /* @__PURE__ */
|
|
953
|
+
function Yt({ className: e, ...t }) {
|
|
954
|
+
return /* @__PURE__ */ g(C.Separator, {
|
|
1059
955
|
"data-slot": "command-separator",
|
|
1060
956
|
className: N("bg-border -mx-1 h-px", e),
|
|
1061
957
|
...t
|
|
1062
958
|
});
|
|
1063
959
|
}
|
|
1064
960
|
function G({ className: e, ...t }) {
|
|
1065
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ g(C.Item, {
|
|
1066
962
|
"data-slot": "command-item",
|
|
1067
963
|
className: N("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1068
964
|
...t
|
|
1069
965
|
});
|
|
1070
966
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return /* @__PURE__ */
|
|
967
|
+
function Xt({ className: e, ...t }) {
|
|
968
|
+
return /* @__PURE__ */ g("span", {
|
|
1073
969
|
"data-slot": "command-shortcut",
|
|
1074
970
|
className: N("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
1075
971
|
...t
|
|
@@ -1077,40 +973,40 @@ function en({ className: e, ...t }) {
|
|
|
1077
973
|
}
|
|
1078
974
|
//#endregion
|
|
1079
975
|
//#region src/components/ui/dropdown-menu.tsx
|
|
1080
|
-
function
|
|
1081
|
-
return /* @__PURE__ */
|
|
976
|
+
function Zt({ ...e }) {
|
|
977
|
+
return /* @__PURE__ */ g(T.Root, {
|
|
1082
978
|
"data-slot": "dropdown-menu",
|
|
1083
979
|
...e
|
|
1084
980
|
});
|
|
1085
981
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return /* @__PURE__ */
|
|
982
|
+
function Qt({ ...e }) {
|
|
983
|
+
return /* @__PURE__ */ g(T.Portal, {
|
|
1088
984
|
"data-slot": "dropdown-menu-portal",
|
|
1089
985
|
...e
|
|
1090
986
|
});
|
|
1091
987
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return /* @__PURE__ */
|
|
988
|
+
function $t({ ...e }) {
|
|
989
|
+
return /* @__PURE__ */ g(T.Trigger, {
|
|
1094
990
|
"data-slot": "dropdown-menu-trigger",
|
|
1095
991
|
...e
|
|
1096
992
|
});
|
|
1097
993
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return /* @__PURE__ */
|
|
994
|
+
function en({ className: e, sideOffset: t = 4, ...n }) {
|
|
995
|
+
return /* @__PURE__ */ g(T.Portal, { children: /* @__PURE__ */ g(T.Content, {
|
|
1100
996
|
"data-slot": "dropdown-menu-content",
|
|
1101
997
|
sideOffset: t,
|
|
1102
998
|
className: N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e),
|
|
1103
999
|
...n
|
|
1104
1000
|
}) });
|
|
1105
1001
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return /* @__PURE__ */
|
|
1002
|
+
function tn({ ...e }) {
|
|
1003
|
+
return /* @__PURE__ */ g(T.Group, {
|
|
1108
1004
|
"data-slot": "dropdown-menu-group",
|
|
1109
1005
|
...e
|
|
1110
1006
|
});
|
|
1111
1007
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return /* @__PURE__ */
|
|
1008
|
+
function nn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
1009
|
+
return /* @__PURE__ */ g(T.Item, {
|
|
1114
1010
|
"data-slot": "dropdown-menu-item",
|
|
1115
1011
|
"data-inset": t,
|
|
1116
1012
|
"data-variant": n,
|
|
@@ -1118,74 +1014,74 @@ function sn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
1118
1014
|
...r
|
|
1119
1015
|
});
|
|
1120
1016
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return /* @__PURE__ */
|
|
1017
|
+
function rn({ className: e, children: t, checked: n, ...r }) {
|
|
1018
|
+
return /* @__PURE__ */ _(T.CheckboxItem, {
|
|
1123
1019
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1124
1020
|
className: N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1125
1021
|
checked: n,
|
|
1126
1022
|
...r,
|
|
1127
|
-
children: [/* @__PURE__ */
|
|
1023
|
+
children: [/* @__PURE__ */ g("span", {
|
|
1128
1024
|
className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
|
|
1129
|
-
children: /* @__PURE__ */
|
|
1025
|
+
children: /* @__PURE__ */ g(T.ItemIndicator, { children: /* @__PURE__ */ g(p, { className: "size-4" }) })
|
|
1130
1026
|
}), t]
|
|
1131
1027
|
});
|
|
1132
1028
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return /* @__PURE__ */
|
|
1029
|
+
function an({ ...e }) {
|
|
1030
|
+
return /* @__PURE__ */ g(T.RadioGroup, {
|
|
1135
1031
|
"data-slot": "dropdown-menu-radio-group",
|
|
1136
1032
|
...e
|
|
1137
1033
|
});
|
|
1138
1034
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return /* @__PURE__ */
|
|
1035
|
+
function on({ className: e, children: t, ...n }) {
|
|
1036
|
+
return /* @__PURE__ */ _(T.RadioItem, {
|
|
1141
1037
|
"data-slot": "dropdown-menu-radio-item",
|
|
1142
1038
|
className: N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1143
1039
|
...n,
|
|
1144
|
-
children: [/* @__PURE__ */
|
|
1040
|
+
children: [/* @__PURE__ */ g("span", {
|
|
1145
1041
|
className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
|
|
1146
|
-
children: /* @__PURE__ */
|
|
1042
|
+
children: /* @__PURE__ */ g(T.ItemIndicator, { children: /* @__PURE__ */ g(oe, { className: "size-2 fill-current" }) })
|
|
1147
1043
|
}), t]
|
|
1148
1044
|
});
|
|
1149
1045
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return /* @__PURE__ */
|
|
1046
|
+
function sn({ className: e, inset: t, ...n }) {
|
|
1047
|
+
return /* @__PURE__ */ g(T.Label, {
|
|
1152
1048
|
"data-slot": "dropdown-menu-label",
|
|
1153
1049
|
"data-inset": t,
|
|
1154
1050
|
className: N("px-2 py-1.5 text-sm font-medium data-[inset]:ps-8", e),
|
|
1155
1051
|
...n
|
|
1156
1052
|
});
|
|
1157
1053
|
}
|
|
1158
|
-
function
|
|
1159
|
-
return /* @__PURE__ */
|
|
1054
|
+
function cn({ className: e, ...t }) {
|
|
1055
|
+
return /* @__PURE__ */ g(T.Separator, {
|
|
1160
1056
|
"data-slot": "dropdown-menu-separator",
|
|
1161
1057
|
className: N("bg-border -mx-1 my-1 h-px", e),
|
|
1162
1058
|
...t
|
|
1163
1059
|
});
|
|
1164
1060
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return /* @__PURE__ */
|
|
1061
|
+
function ln({ className: e, ...t }) {
|
|
1062
|
+
return /* @__PURE__ */ g("span", {
|
|
1167
1063
|
"data-slot": "dropdown-menu-shortcut",
|
|
1168
1064
|
className: N("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
1169
1065
|
...t
|
|
1170
1066
|
});
|
|
1171
1067
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return /* @__PURE__ */
|
|
1068
|
+
function un({ ...e }) {
|
|
1069
|
+
return /* @__PURE__ */ g(T.Sub, {
|
|
1174
1070
|
"data-slot": "dropdown-menu-sub",
|
|
1175
1071
|
...e
|
|
1176
1072
|
});
|
|
1177
1073
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return /* @__PURE__ */
|
|
1074
|
+
function dn({ className: e, inset: t, children: n, ...r }) {
|
|
1075
|
+
return /* @__PURE__ */ _(T.SubTrigger, {
|
|
1180
1076
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1181
1077
|
"data-inset": t,
|
|
1182
1078
|
className: N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:ps-8", e),
|
|
1183
1079
|
...r,
|
|
1184
|
-
children: [n, /* @__PURE__ */
|
|
1080
|
+
children: [n, /* @__PURE__ */ g(re, { className: "ms-auto size-4" })]
|
|
1185
1081
|
});
|
|
1186
1082
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return /* @__PURE__ */
|
|
1083
|
+
function fn({ className: e, ...t }) {
|
|
1084
|
+
return /* @__PURE__ */ g(T.SubContent, {
|
|
1189
1085
|
"data-slot": "dropdown-menu-sub-content",
|
|
1190
1086
|
className: N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
1191
1087
|
...t
|
|
@@ -1194,7 +1090,7 @@ function gn({ className: e, ...t }) {
|
|
|
1194
1090
|
//#endregion
|
|
1195
1091
|
//#region src/components/ui/label.tsx
|
|
1196
1092
|
function K({ className: e, ...t }) {
|
|
1197
|
-
return /* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ g(xe.Root, {
|
|
1198
1094
|
"data-slot": "label",
|
|
1199
1095
|
className: N("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),
|
|
1200
1096
|
...t
|
|
@@ -1202,11 +1098,11 @@ function K({ className: e, ...t }) {
|
|
|
1202
1098
|
}
|
|
1203
1099
|
//#endregion
|
|
1204
1100
|
//#region src/components/ui/form.tsx
|
|
1205
|
-
var
|
|
1101
|
+
var pn = ve, mn = s.createContext({}), hn = ({ ...e }) => /* @__PURE__ */ g(mn.Provider, {
|
|
1206
1102
|
value: { name: e.name },
|
|
1207
|
-
children: /* @__PURE__ */
|
|
1103
|
+
children: /* @__PURE__ */ g(_e, { ...e })
|
|
1208
1104
|
}), q = () => {
|
|
1209
|
-
let e = s.useContext(
|
|
1105
|
+
let e = s.useContext(mn), t = s.useContext(gn), { getFieldState: n } = ye(), r = be({ name: e.name }), i = n(e.name, r);
|
|
1210
1106
|
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
1211
1107
|
let { id: a } = t;
|
|
1212
1108
|
return {
|
|
@@ -1217,21 +1113,21 @@ var _n = ve, vn = s.createContext({}), yn = ({ ...e }) => /* @__PURE__ */ v(vn.P
|
|
|
1217
1113
|
formMessageId: `${a}-form-item-message`,
|
|
1218
1114
|
...i
|
|
1219
1115
|
};
|
|
1220
|
-
},
|
|
1221
|
-
function
|
|
1116
|
+
}, gn = s.createContext({});
|
|
1117
|
+
function _n({ className: e, ...t }) {
|
|
1222
1118
|
let n = s.useId();
|
|
1223
|
-
return /* @__PURE__ */
|
|
1119
|
+
return /* @__PURE__ */ g(gn.Provider, {
|
|
1224
1120
|
value: { id: n },
|
|
1225
|
-
children: /* @__PURE__ */
|
|
1121
|
+
children: /* @__PURE__ */ g("div", {
|
|
1226
1122
|
"data-slot": "form-item",
|
|
1227
1123
|
className: N("grid gap-2", e),
|
|
1228
1124
|
...t
|
|
1229
1125
|
})
|
|
1230
1126
|
});
|
|
1231
1127
|
}
|
|
1232
|
-
function
|
|
1128
|
+
function vn({ className: e, ...t }) {
|
|
1233
1129
|
let { error: n, formItemId: r } = q();
|
|
1234
|
-
return /* @__PURE__ */
|
|
1130
|
+
return /* @__PURE__ */ g(K, {
|
|
1235
1131
|
"data-slot": "form-label",
|
|
1236
1132
|
"data-error": !!n,
|
|
1237
1133
|
className: N("data-[error=true]:text-destructive", e),
|
|
@@ -1239,9 +1135,9 @@ function Sn({ className: e, ...t }) {
|
|
|
1239
1135
|
...t
|
|
1240
1136
|
});
|
|
1241
1137
|
}
|
|
1242
|
-
function
|
|
1138
|
+
function yn({ ...e }) {
|
|
1243
1139
|
let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = q();
|
|
1244
|
-
return /* @__PURE__ */
|
|
1140
|
+
return /* @__PURE__ */ g(b, {
|
|
1245
1141
|
"data-slot": "form-control",
|
|
1246
1142
|
id: n,
|
|
1247
1143
|
"aria-describedby": t ? `${r} ${i}` : `${r}`,
|
|
@@ -1249,18 +1145,18 @@ function Cn({ ...e }) {
|
|
|
1249
1145
|
...e
|
|
1250
1146
|
});
|
|
1251
1147
|
}
|
|
1252
|
-
function
|
|
1148
|
+
function bn({ className: e, ...t }) {
|
|
1253
1149
|
let { formDescriptionId: n } = q();
|
|
1254
|
-
return /* @__PURE__ */
|
|
1150
|
+
return /* @__PURE__ */ g("p", {
|
|
1255
1151
|
"data-slot": "form-description",
|
|
1256
1152
|
id: n,
|
|
1257
1153
|
className: N("text-muted-foreground text-sm", e),
|
|
1258
1154
|
...t
|
|
1259
1155
|
});
|
|
1260
1156
|
}
|
|
1261
|
-
function
|
|
1157
|
+
function xn({ className: e, ...t }) {
|
|
1262
1158
|
let { error: n, formMessageId: r } = q(), i = n ? String(n?.message ?? "") : t.children;
|
|
1263
|
-
return i ? /* @__PURE__ */
|
|
1159
|
+
return i ? /* @__PURE__ */ g("p", {
|
|
1264
1160
|
"data-slot": "form-message",
|
|
1265
1161
|
id: r,
|
|
1266
1162
|
className: N("text-destructive text-sm", e),
|
|
@@ -1270,12 +1166,12 @@ function Tn({ className: e, ...t }) {
|
|
|
1270
1166
|
}
|
|
1271
1167
|
//#endregion
|
|
1272
1168
|
//#region src/components/ui/image-upload.tsx
|
|
1273
|
-
function
|
|
1274
|
-
let s =
|
|
1169
|
+
function Sn({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple: a = !1, className: o }) {
|
|
1170
|
+
let s = ee(null), [c, l] = te(!1), [d, f] = te([]);
|
|
1275
1171
|
u(() => {
|
|
1276
|
-
|
|
1172
|
+
f(Array.isArray(e) ? e : e ? [e] : []);
|
|
1277
1173
|
}, [e]);
|
|
1278
|
-
let
|
|
1174
|
+
let p = async (e) => {
|
|
1279
1175
|
let t = e.target.files;
|
|
1280
1176
|
if (!t || t.length === 0) return;
|
|
1281
1177
|
let n = [];
|
|
@@ -1291,8 +1187,8 @@ function En({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple:
|
|
|
1291
1187
|
}
|
|
1292
1188
|
n.push(r);
|
|
1293
1189
|
}
|
|
1294
|
-
n.length > 0 && await
|
|
1295
|
-
},
|
|
1190
|
+
n.length > 0 && await m(n);
|
|
1191
|
+
}, m = async (e) => {
|
|
1296
1192
|
l(!0);
|
|
1297
1193
|
try {
|
|
1298
1194
|
let n = e.map(async (e) => {
|
|
@@ -1304,41 +1200,41 @@ function En({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple:
|
|
|
1304
1200
|
return console.error("Single file upload failed", e), null;
|
|
1305
1201
|
}
|
|
1306
1202
|
}), r = (await Promise.all(n)).filter((e) => e !== null);
|
|
1307
|
-
r.length > 0 && (t(a ? [...
|
|
1203
|
+
r.length > 0 && (t(a ? [...d, ...r] : r[0]), i.success(`${r.length} imagen(es) cargada(s)`));
|
|
1308
1204
|
} catch (e) {
|
|
1309
1205
|
console.error("Upload Error:", e), i.error("Error al subir imágenes");
|
|
1310
1206
|
} finally {
|
|
1311
1207
|
l(!1), s.current && (s.current.value = "");
|
|
1312
1208
|
}
|
|
1313
|
-
},
|
|
1314
|
-
t(a ?
|
|
1209
|
+
}, h = (e) => {
|
|
1210
|
+
t(a ? d.filter((t) => t !== e) : "");
|
|
1315
1211
|
};
|
|
1316
|
-
return /* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ _("div", {
|
|
1317
1213
|
className: N("space-y-4", o),
|
|
1318
1214
|
children: [
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
|
|
1215
|
+
/* @__PURE__ */ g(K, { children: n }),
|
|
1216
|
+
d.length > 0 && /* @__PURE__ */ g("div", {
|
|
1321
1217
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 mb-4",
|
|
1322
|
-
children:
|
|
1218
|
+
children: d.map((e, t) => /* @__PURE__ */ _("div", {
|
|
1323
1219
|
className: "relative group rounded-lg overflow-hidden border bg-background aspect-square flex items-center justify-center bg-gray-50 dark:bg-gray-800/50",
|
|
1324
|
-
children: [/* @__PURE__ */
|
|
1220
|
+
children: [/* @__PURE__ */ g("img", {
|
|
1325
1221
|
src: e,
|
|
1326
1222
|
alt: `Image ${t + 1}`,
|
|
1327
1223
|
className: "h-full w-full object-contain p-1"
|
|
1328
|
-
}), !r && /* @__PURE__ */
|
|
1224
|
+
}), !r && /* @__PURE__ */ g("div", {
|
|
1329
1225
|
className: "absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
1330
|
-
children: /* @__PURE__ */
|
|
1226
|
+
children: /* @__PURE__ */ g(z, {
|
|
1331
1227
|
type: "button",
|
|
1332
1228
|
variant: "destructive",
|
|
1333
1229
|
size: "icon",
|
|
1334
1230
|
className: "h-6 w-6 rounded-full",
|
|
1335
|
-
onClick: () =>
|
|
1336
|
-
children: /* @__PURE__ */
|
|
1231
|
+
onClick: () => h(e),
|
|
1232
|
+
children: /* @__PURE__ */ g(fe, { className: "h-3 w-3" })
|
|
1337
1233
|
})
|
|
1338
1234
|
})]
|
|
1339
1235
|
}, t))
|
|
1340
1236
|
}),
|
|
1341
|
-
!r && (a ||
|
|
1237
|
+
!r && (a || d.length === 0) && /* @__PURE__ */ _("div", {
|
|
1342
1238
|
className: `
|
|
1343
1239
|
border-2 border-dashed border-muted-foreground/25 rounded-lg
|
|
1344
1240
|
flex flex-col items-center justify-center p-6 gap-2
|
|
@@ -1347,22 +1243,22 @@ function En({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple:
|
|
|
1347
1243
|
`,
|
|
1348
1244
|
onClick: () => s.current?.click(),
|
|
1349
1245
|
children: [
|
|
1350
|
-
c ? /* @__PURE__ */
|
|
1351
|
-
/* @__PURE__ */
|
|
1246
|
+
c ? /* @__PURE__ */ g(ce, { className: "h-8 w-8 animate-spin text-muted-foreground" }) : /* @__PURE__ */ g(se, { className: "h-8 w-8 text-muted-foreground" }),
|
|
1247
|
+
/* @__PURE__ */ g("span", {
|
|
1352
1248
|
className: "text-sm text-muted-foreground font-medium",
|
|
1353
1249
|
children: c ? "Subiendo..." : a ? "Click para agregar imágenes" : "Click para subir imagen"
|
|
1354
1250
|
}),
|
|
1355
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ g("p", {
|
|
1356
1252
|
className: "text-xs text-muted-foreground/70",
|
|
1357
1253
|
children: "Soporta: JPG, PNG, WEBP (Max 5MB)"
|
|
1358
1254
|
}),
|
|
1359
|
-
/* @__PURE__ */
|
|
1255
|
+
/* @__PURE__ */ g("input", {
|
|
1360
1256
|
type: "file",
|
|
1361
1257
|
ref: s,
|
|
1362
1258
|
className: "hidden",
|
|
1363
1259
|
accept: "image/*",
|
|
1364
1260
|
multiple: a,
|
|
1365
|
-
onChange:
|
|
1261
|
+
onChange: p,
|
|
1366
1262
|
disabled: r || c
|
|
1367
1263
|
})
|
|
1368
1264
|
]
|
|
@@ -1373,7 +1269,7 @@ function En({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple:
|
|
|
1373
1269
|
//#endregion
|
|
1374
1270
|
//#region src/components/ui/input.tsx
|
|
1375
1271
|
function J({ className: e, type: t, ...n }) {
|
|
1376
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ g("input", {
|
|
1377
1273
|
type: t,
|
|
1378
1274
|
"data-slot": "input",
|
|
1379
1275
|
className: N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", e),
|
|
@@ -1382,58 +1278,58 @@ function J({ className: e, type: t, ...n }) {
|
|
|
1382
1278
|
}
|
|
1383
1279
|
//#endregion
|
|
1384
1280
|
//#region src/components/ui/input-otp.tsx
|
|
1385
|
-
function
|
|
1386
|
-
return /* @__PURE__ */
|
|
1281
|
+
function Cn({ className: e, containerClassName: t, ...n }) {
|
|
1282
|
+
return /* @__PURE__ */ g(Se, {
|
|
1387
1283
|
"data-slot": "input-otp",
|
|
1388
1284
|
containerClassName: N("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
1389
1285
|
className: N("disabled:cursor-not-allowed", e),
|
|
1390
1286
|
...n
|
|
1391
1287
|
});
|
|
1392
1288
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return /* @__PURE__ */
|
|
1289
|
+
function wn({ className: e, ...t }) {
|
|
1290
|
+
return /* @__PURE__ */ g("div", {
|
|
1395
1291
|
"data-slot": "input-otp-group",
|
|
1396
1292
|
className: N("flex items-center", e),
|
|
1397
1293
|
...t
|
|
1398
1294
|
});
|
|
1399
1295
|
}
|
|
1400
|
-
function
|
|
1296
|
+
function Tn({ index: e, className: t, ...n }) {
|
|
1401
1297
|
let { char: r, hasFakeCaret: i, isActive: a } = s.useContext(Ce)?.slots[e] ?? {};
|
|
1402
|
-
return /* @__PURE__ */
|
|
1298
|
+
return /* @__PURE__ */ _("div", {
|
|
1403
1299
|
"data-slot": "input-otp-slot",
|
|
1404
1300
|
"data-active": a,
|
|
1405
1301
|
className: N("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", t),
|
|
1406
1302
|
...n,
|
|
1407
|
-
children: [r, i && /* @__PURE__ */
|
|
1303
|
+
children: [r, i && /* @__PURE__ */ g("div", {
|
|
1408
1304
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
1409
|
-
children: /* @__PURE__ */
|
|
1305
|
+
children: /* @__PURE__ */ g("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" })
|
|
1410
1306
|
})]
|
|
1411
1307
|
});
|
|
1412
1308
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return /* @__PURE__ */
|
|
1309
|
+
function En({ ...e }) {
|
|
1310
|
+
return /* @__PURE__ */ g("div", {
|
|
1415
1311
|
"data-slot": "input-otp-separator",
|
|
1416
1312
|
role: "separator",
|
|
1417
1313
|
...e,
|
|
1418
|
-
children: /* @__PURE__ */
|
|
1314
|
+
children: /* @__PURE__ */ g(le, {})
|
|
1419
1315
|
});
|
|
1420
1316
|
}
|
|
1421
1317
|
//#endregion
|
|
1422
1318
|
//#region src/components/ui/popover.tsx
|
|
1423
1319
|
function Y({ ...e }) {
|
|
1424
|
-
return /* @__PURE__ */
|
|
1320
|
+
return /* @__PURE__ */ g(E.Root, {
|
|
1425
1321
|
"data-slot": "popover",
|
|
1426
1322
|
...e
|
|
1427
1323
|
});
|
|
1428
1324
|
}
|
|
1429
1325
|
function X({ ...e }) {
|
|
1430
|
-
return /* @__PURE__ */
|
|
1326
|
+
return /* @__PURE__ */ g(E.Trigger, {
|
|
1431
1327
|
"data-slot": "popover-trigger",
|
|
1432
1328
|
...e
|
|
1433
1329
|
});
|
|
1434
1330
|
}
|
|
1435
1331
|
function Z({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1436
|
-
return /* @__PURE__ */
|
|
1332
|
+
return /* @__PURE__ */ g(E.Portal, { children: /* @__PURE__ */ g(E.Content, {
|
|
1437
1333
|
"data-slot": "popover-content",
|
|
1438
1334
|
align: t,
|
|
1439
1335
|
sideOffset: n,
|
|
@@ -1441,42 +1337,42 @@ function Z({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
1441
1337
|
...r
|
|
1442
1338
|
}) });
|
|
1443
1339
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return /* @__PURE__ */
|
|
1340
|
+
function Dn({ ...e }) {
|
|
1341
|
+
return /* @__PURE__ */ g(E.Anchor, {
|
|
1446
1342
|
"data-slot": "popover-anchor",
|
|
1447
1343
|
...e
|
|
1448
1344
|
});
|
|
1449
1345
|
}
|
|
1450
1346
|
//#endregion
|
|
1451
1347
|
//#region src/components/ui/multi-select.tsx
|
|
1452
|
-
function
|
|
1348
|
+
function On({ options: e, selected: t, onChange: n, placeholder: r = "Select options...", className: i }) {
|
|
1453
1349
|
let [a, o] = s.useState(!1), c = (e) => {
|
|
1454
1350
|
n(t.filter((t) => t !== e));
|
|
1455
1351
|
};
|
|
1456
|
-
return /* @__PURE__ */
|
|
1352
|
+
return /* @__PURE__ */ _(Y, {
|
|
1457
1353
|
open: a,
|
|
1458
1354
|
onOpenChange: o,
|
|
1459
|
-
children: [/* @__PURE__ */
|
|
1355
|
+
children: [/* @__PURE__ */ g(X, {
|
|
1460
1356
|
asChild: !0,
|
|
1461
|
-
children: /* @__PURE__ */
|
|
1357
|
+
children: /* @__PURE__ */ _("div", {
|
|
1462
1358
|
role: "combobox",
|
|
1463
1359
|
"aria-expanded": a,
|
|
1464
1360
|
className: N("flex w-full justify-between items-center rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer hover:bg-accent hover:text-accent-foreground", "h-auto min-h-10", i),
|
|
1465
1361
|
onClick: () => o(!a),
|
|
1466
|
-
children: [/* @__PURE__ */
|
|
1362
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1467
1363
|
className: "flex flex-wrap gap-1",
|
|
1468
1364
|
children: t.length > 0 ? t.map((t) => {
|
|
1469
1365
|
let n = e.find((e) => e.value === t);
|
|
1470
|
-
return n ? /* @__PURE__ */
|
|
1366
|
+
return n ? /* @__PURE__ */ _(wt, {
|
|
1471
1367
|
variant: "secondary",
|
|
1472
1368
|
className: "mr-1 mb-1",
|
|
1473
1369
|
onClick: (e) => {
|
|
1474
1370
|
e.stopPropagation(), c(t);
|
|
1475
1371
|
},
|
|
1476
1372
|
children: [
|
|
1477
|
-
n.icon && /* @__PURE__ */
|
|
1373
|
+
n.icon && /* @__PURE__ */ g(n.icon, { className: "mr-1 h-3 w-3" }),
|
|
1478
1374
|
n.label,
|
|
1479
|
-
/* @__PURE__ */
|
|
1375
|
+
/* @__PURE__ */ g("button", {
|
|
1480
1376
|
className: "ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
1481
1377
|
onKeyDown: (e) => {
|
|
1482
1378
|
e.key === "Enter" && c(t);
|
|
@@ -1487,30 +1383,30 @@ function Mn({ options: e, selected: t, onChange: n, placeholder: r = "Select opt
|
|
|
1487
1383
|
onClick: (e) => {
|
|
1488
1384
|
e.preventDefault(), e.stopPropagation(), c(t);
|
|
1489
1385
|
},
|
|
1490
|
-
children: /* @__PURE__ */
|
|
1386
|
+
children: /* @__PURE__ */ g(fe, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
1491
1387
|
})
|
|
1492
1388
|
]
|
|
1493
1389
|
}, n.value) : null;
|
|
1494
|
-
}) : /* @__PURE__ */
|
|
1390
|
+
}) : /* @__PURE__ */ g("span", {
|
|
1495
1391
|
className: "text-muted-foreground font-normal",
|
|
1496
1392
|
children: r
|
|
1497
1393
|
})
|
|
1498
|
-
}), /* @__PURE__ */
|
|
1394
|
+
}), /* @__PURE__ */ g(ae, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
1499
1395
|
})
|
|
1500
|
-
}), /* @__PURE__ */
|
|
1396
|
+
}), /* @__PURE__ */ g(Z, {
|
|
1501
1397
|
className: "w-full p-0",
|
|
1502
|
-
children: /* @__PURE__ */
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1398
|
+
children: /* @__PURE__ */ _(B, { children: [
|
|
1399
|
+
/* @__PURE__ */ g(V, { placeholder: "Search..." }),
|
|
1400
|
+
/* @__PURE__ */ g(U, { children: "No item found." }),
|
|
1401
|
+
/* @__PURE__ */ g(H, { children: /* @__PURE__ */ g(W, {
|
|
1506
1402
|
className: "max-h-64 overflow-auto",
|
|
1507
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1403
|
+
children: e.map((e) => /* @__PURE__ */ _(G, {
|
|
1508
1404
|
onSelect: () => {
|
|
1509
1405
|
t.includes(e.value) ? n(t.filter((t) => t !== e.value)) : n([...t, e.value]), o(!0);
|
|
1510
1406
|
},
|
|
1511
1407
|
children: [
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
e.icon && /* @__PURE__ */
|
|
1408
|
+
/* @__PURE__ */ g(f, { className: N("mr-2 h-4 w-4", t.includes(e.value) ? "opacity-100" : "opacity-0") }),
|
|
1409
|
+
e.icon && /* @__PURE__ */ g(e.icon, { className: "mr-2 h-4 w-4" }),
|
|
1514
1410
|
e.label
|
|
1515
1411
|
]
|
|
1516
1412
|
}, e.value))
|
|
@@ -1521,106 +1417,106 @@ function Mn({ options: e, selected: t, onChange: n, placeholder: r = "Select opt
|
|
|
1521
1417
|
}
|
|
1522
1418
|
//#endregion
|
|
1523
1419
|
//#region src/components/ui/scroll-area.tsx
|
|
1524
|
-
var
|
|
1420
|
+
var Q = s.forwardRef(({ className: e, children: t, orientation: n = "vertical", type: r = "hover", ...i }, a) => /* @__PURE__ */ _(D.Root, {
|
|
1525
1421
|
ref: a,
|
|
1526
1422
|
"data-slot": "scroll-area",
|
|
1527
1423
|
type: r,
|
|
1528
1424
|
className: N("relative overflow-hidden", e),
|
|
1529
1425
|
...i,
|
|
1530
1426
|
children: [
|
|
1531
|
-
/* @__PURE__ */
|
|
1427
|
+
/* @__PURE__ */ g(D.Viewport, {
|
|
1532
1428
|
"data-slot": "scroll-area-viewport",
|
|
1533
1429
|
className: N("focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", n === "horizontal" && "overflow-x-auto!"),
|
|
1534
1430
|
children: t
|
|
1535
1431
|
}),
|
|
1536
|
-
/* @__PURE__ */
|
|
1537
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ g(kn, { orientation: n }),
|
|
1433
|
+
/* @__PURE__ */ g(D.Corner, {})
|
|
1538
1434
|
]
|
|
1539
1435
|
}));
|
|
1540
|
-
|
|
1541
|
-
var
|
|
1436
|
+
Q.displayName = "ScrollArea";
|
|
1437
|
+
var kn = s.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ g(D.ScrollAreaScrollbar, {
|
|
1542
1438
|
ref: r,
|
|
1543
1439
|
"data-slot": "scroll-area-scrollbar",
|
|
1544
1440
|
orientation: t,
|
|
1545
1441
|
className: N("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-3 border-l border-l-transparent", t === "horizontal" && "h-3 flex-col border-t border-t-transparent", e),
|
|
1546
1442
|
...n,
|
|
1547
|
-
children: /* @__PURE__ */
|
|
1443
|
+
children: /* @__PURE__ */ g(D.ScrollAreaThumb, {
|
|
1548
1444
|
"data-slot": "scroll-area-thumb",
|
|
1549
1445
|
className: "bg-foreground/35 hover:bg-foreground/50 relative flex-1 rounded-full transition-colors"
|
|
1550
1446
|
})
|
|
1551
1447
|
}));
|
|
1552
|
-
|
|
1448
|
+
kn.displayName = "ScrollBar";
|
|
1553
1449
|
//#endregion
|
|
1554
1450
|
//#region src/components/ui/phone-input.tsx
|
|
1555
|
-
var
|
|
1451
|
+
var An = s.forwardRef(({ className: e, onChange: t, ...n }, r) => /* @__PURE__ */ g(we.default, {
|
|
1556
1452
|
ref: r,
|
|
1557
1453
|
className: N("flex", e),
|
|
1558
|
-
flagComponent:
|
|
1559
|
-
countrySelectComponent:
|
|
1560
|
-
inputComponent:
|
|
1454
|
+
flagComponent: Nn,
|
|
1455
|
+
countrySelectComponent: Mn,
|
|
1456
|
+
inputComponent: jn,
|
|
1561
1457
|
smartCaret: !1,
|
|
1562
1458
|
onChange: (e) => t?.(e || ""),
|
|
1563
1459
|
...n
|
|
1564
1460
|
}));
|
|
1565
|
-
|
|
1566
|
-
var
|
|
1461
|
+
An.displayName = "PhoneInput";
|
|
1462
|
+
var jn = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g(J, {
|
|
1567
1463
|
className: N("rounded-e-lg rounded-s-none", e),
|
|
1568
1464
|
...t,
|
|
1569
1465
|
ref: n
|
|
1570
1466
|
}));
|
|
1571
|
-
|
|
1572
|
-
var
|
|
1467
|
+
jn.displayName = "InputComponent";
|
|
1468
|
+
var Mn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
1573
1469
|
let i = s.useCallback((e) => {
|
|
1574
1470
|
n(e);
|
|
1575
1471
|
}, [n]);
|
|
1576
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ _(Y, { children: [/* @__PURE__ */ g(X, {
|
|
1577
1473
|
asChild: !0,
|
|
1578
|
-
children: /* @__PURE__ */
|
|
1474
|
+
children: /* @__PURE__ */ _(z, {
|
|
1579
1475
|
type: "button",
|
|
1580
1476
|
variant: "outline",
|
|
1581
1477
|
className: N("flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10"),
|
|
1582
1478
|
disabled: e,
|
|
1583
|
-
children: [/* @__PURE__ */
|
|
1479
|
+
children: [/* @__PURE__ */ g(Nn, {
|
|
1584
1480
|
country: t,
|
|
1585
1481
|
countryName: t
|
|
1586
|
-
}), /* @__PURE__ */
|
|
1482
|
+
}), /* @__PURE__ */ g(ae, { className: N("-mr-2 size-4 opacity-50", e ? "hidden" : "opacity-100") })]
|
|
1587
1483
|
})
|
|
1588
|
-
}), /* @__PURE__ */
|
|
1484
|
+
}), /* @__PURE__ */ g(Z, {
|
|
1589
1485
|
className: "w-[300px] p-0",
|
|
1590
|
-
children: /* @__PURE__ */
|
|
1486
|
+
children: /* @__PURE__ */ _(B, { children: [/* @__PURE__ */ g(V, { placeholder: "Buscar país..." }), /* @__PURE__ */ g(H, { children: /* @__PURE__ */ _(Q, {
|
|
1591
1487
|
className: "h-72",
|
|
1592
|
-
children: [/* @__PURE__ */
|
|
1488
|
+
children: [/* @__PURE__ */ g(U, { children: "País no encontrado." }), /* @__PURE__ */ g(W, { children: r.filter((e) => e.value).map((e) => /* @__PURE__ */ _(G, {
|
|
1593
1489
|
className: "gap-2",
|
|
1594
1490
|
onSelect: () => i(e.value),
|
|
1595
1491
|
children: [
|
|
1596
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ g(Nn, {
|
|
1597
1493
|
country: e.value,
|
|
1598
1494
|
countryName: e.label
|
|
1599
1495
|
}),
|
|
1600
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ g("span", {
|
|
1601
1497
|
className: "flex-1 text-sm",
|
|
1602
1498
|
children: e.label
|
|
1603
1499
|
}),
|
|
1604
|
-
e.value && /* @__PURE__ */
|
|
1500
|
+
e.value && /* @__PURE__ */ g("span", {
|
|
1605
1501
|
className: "text-sm text-foreground/50",
|
|
1606
1502
|
children: `+${we.getCountryCallingCode(e.value)}`
|
|
1607
1503
|
}),
|
|
1608
|
-
/* @__PURE__ */
|
|
1504
|
+
/* @__PURE__ */ g(p, { className: N("ml-auto size-4", e.value === t ? "opacity-100" : "opacity-0") })
|
|
1609
1505
|
]
|
|
1610
1506
|
}, e.value)) })]
|
|
1611
1507
|
}) })] })
|
|
1612
1508
|
})] });
|
|
1613
|
-
},
|
|
1509
|
+
}, Nn = ({ country: e, countryName: t }) => {
|
|
1614
1510
|
let n = Te[e];
|
|
1615
|
-
return /* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ g("span", {
|
|
1616
1512
|
className: "flex h-5 w-7 shrink-0 items-center justify-center overflow-hidden rounded-sm bg-foreground/10 [&_svg]:h-full [&_svg]:w-full [&_svg]:object-cover",
|
|
1617
|
-
children: n && /* @__PURE__ */
|
|
1513
|
+
children: n && /* @__PURE__ */ g(n, { title: t })
|
|
1618
1514
|
});
|
|
1619
|
-
},
|
|
1515
|
+
}, Pn = s.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ g(O.Root, {
|
|
1620
1516
|
ref: r,
|
|
1621
1517
|
className: N("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
|
|
1622
1518
|
...n,
|
|
1623
|
-
children: /* @__PURE__ */
|
|
1519
|
+
children: /* @__PURE__ */ g(O.Indicator, {
|
|
1624
1520
|
className: "h-full bg-primary transition-transform duration-300 ease-out",
|
|
1625
1521
|
style: {
|
|
1626
1522
|
width: "100%",
|
|
@@ -1628,121 +1524,121 @@ var In = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1628
1524
|
}
|
|
1629
1525
|
})
|
|
1630
1526
|
}));
|
|
1631
|
-
|
|
1527
|
+
Pn.displayName = O.Root.displayName;
|
|
1632
1528
|
//#endregion
|
|
1633
1529
|
//#region src/components/ui/radio-group.tsx
|
|
1634
|
-
function
|
|
1635
|
-
return /* @__PURE__ */
|
|
1530
|
+
function Fn({ className: e, ...t }) {
|
|
1531
|
+
return /* @__PURE__ */ g(k.Root, {
|
|
1636
1532
|
"data-slot": "radio-group",
|
|
1637
1533
|
className: N("grid gap-3", e),
|
|
1638
1534
|
...t
|
|
1639
1535
|
});
|
|
1640
1536
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return /* @__PURE__ */
|
|
1537
|
+
function In({ className: e, ...t }) {
|
|
1538
|
+
return /* @__PURE__ */ g(k.Item, {
|
|
1643
1539
|
"data-slot": "radio-group-item",
|
|
1644
1540
|
className: N("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1645
1541
|
...t,
|
|
1646
|
-
children: /* @__PURE__ */
|
|
1542
|
+
children: /* @__PURE__ */ g(k.Indicator, {
|
|
1647
1543
|
"data-slot": "radio-group-indicator",
|
|
1648
1544
|
className: "relative flex items-center justify-center",
|
|
1649
|
-
children: /* @__PURE__ */
|
|
1545
|
+
children: /* @__PURE__ */ g(oe, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
1650
1546
|
})
|
|
1651
1547
|
});
|
|
1652
1548
|
}
|
|
1653
1549
|
//#endregion
|
|
1654
1550
|
//#region src/components/ui/select.tsx
|
|
1655
|
-
function
|
|
1656
|
-
return /* @__PURE__ */
|
|
1551
|
+
function Ln({ ...e }) {
|
|
1552
|
+
return /* @__PURE__ */ g(A.Root, {
|
|
1657
1553
|
"data-slot": "select",
|
|
1658
1554
|
...e
|
|
1659
1555
|
});
|
|
1660
1556
|
}
|
|
1661
|
-
function
|
|
1662
|
-
return /* @__PURE__ */
|
|
1557
|
+
function Rn({ ...e }) {
|
|
1558
|
+
return /* @__PURE__ */ g(A.Group, {
|
|
1663
1559
|
"data-slot": "select-group",
|
|
1664
1560
|
...e
|
|
1665
1561
|
});
|
|
1666
1562
|
}
|
|
1667
|
-
function
|
|
1668
|
-
return /* @__PURE__ */
|
|
1563
|
+
function zn({ ...e }) {
|
|
1564
|
+
return /* @__PURE__ */ g(A.Value, {
|
|
1669
1565
|
"data-slot": "select-value",
|
|
1670
1566
|
...e
|
|
1671
1567
|
});
|
|
1672
1568
|
}
|
|
1673
|
-
function
|
|
1674
|
-
return /* @__PURE__ */
|
|
1569
|
+
function Bn({ className: e, size: t = "default", children: n, ...r }) {
|
|
1570
|
+
return /* @__PURE__ */ _(A.Trigger, {
|
|
1675
1571
|
"data-slot": "select-trigger",
|
|
1676
1572
|
"data-size": t,
|
|
1677
1573
|
className: N("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1678
1574
|
...r,
|
|
1679
|
-
children: [n, /* @__PURE__ */
|
|
1575
|
+
children: [n, /* @__PURE__ */ g(A.Icon, {
|
|
1680
1576
|
asChild: !0,
|
|
1681
|
-
children: /* @__PURE__ */
|
|
1577
|
+
children: /* @__PURE__ */ g(h, { className: "size-4 opacity-50" })
|
|
1682
1578
|
})]
|
|
1683
1579
|
});
|
|
1684
1580
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return /* @__PURE__ */
|
|
1581
|
+
function Vn({ className: e, children: t, position: n = "popper", ...r }) {
|
|
1582
|
+
return /* @__PURE__ */ g(A.Portal, { children: /* @__PURE__ */ _(A.Content, {
|
|
1687
1583
|
"data-slot": "select-content",
|
|
1688
1584
|
className: N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
1689
1585
|
position: n,
|
|
1690
1586
|
...r,
|
|
1691
1587
|
children: [
|
|
1692
|
-
/* @__PURE__ */
|
|
1693
|
-
/* @__PURE__ */
|
|
1588
|
+
/* @__PURE__ */ g(Gn, {}),
|
|
1589
|
+
/* @__PURE__ */ g(A.Viewport, {
|
|
1694
1590
|
className: N("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
1695
1591
|
children: t
|
|
1696
1592
|
}),
|
|
1697
|
-
/* @__PURE__ */
|
|
1593
|
+
/* @__PURE__ */ g(Kn, {})
|
|
1698
1594
|
]
|
|
1699
1595
|
}) });
|
|
1700
1596
|
}
|
|
1701
|
-
function
|
|
1702
|
-
return /* @__PURE__ */
|
|
1597
|
+
function Hn({ className: e, ...t }) {
|
|
1598
|
+
return /* @__PURE__ */ g(A.Label, {
|
|
1703
1599
|
"data-slot": "select-label",
|
|
1704
1600
|
className: N("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
1705
1601
|
...t
|
|
1706
1602
|
});
|
|
1707
1603
|
}
|
|
1708
|
-
function
|
|
1709
|
-
return /* @__PURE__ */
|
|
1604
|
+
function Un({ className: e, children: t, ...n }) {
|
|
1605
|
+
return /* @__PURE__ */ _(A.Item, {
|
|
1710
1606
|
"data-slot": "select-item",
|
|
1711
1607
|
className: N("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none 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),
|
|
1712
1608
|
...n,
|
|
1713
|
-
children: [/* @__PURE__ */
|
|
1609
|
+
children: [/* @__PURE__ */ g("span", {
|
|
1714
1610
|
className: "absolute end-2 flex size-3.5 items-center justify-center",
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1716
|
-
}), /* @__PURE__ */
|
|
1611
|
+
children: /* @__PURE__ */ g(A.ItemIndicator, { children: /* @__PURE__ */ g(p, { className: "size-4" }) })
|
|
1612
|
+
}), /* @__PURE__ */ g(A.ItemText, { children: t })]
|
|
1717
1613
|
});
|
|
1718
1614
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return /* @__PURE__ */
|
|
1615
|
+
function Wn({ className: e, ...t }) {
|
|
1616
|
+
return /* @__PURE__ */ g(A.Separator, {
|
|
1721
1617
|
"data-slot": "select-separator",
|
|
1722
1618
|
className: N("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
1723
1619
|
...t
|
|
1724
1620
|
});
|
|
1725
1621
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return /* @__PURE__ */
|
|
1622
|
+
function Gn({ className: e, ...t }) {
|
|
1623
|
+
return /* @__PURE__ */ g(A.ScrollUpButton, {
|
|
1728
1624
|
"data-slot": "select-scroll-up-button",
|
|
1729
1625
|
className: N("flex cursor-default items-center justify-center py-1", e),
|
|
1730
1626
|
...t,
|
|
1731
|
-
children: /* @__PURE__ */
|
|
1627
|
+
children: /* @__PURE__ */ g(ie, { className: "size-4" })
|
|
1732
1628
|
});
|
|
1733
1629
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return /* @__PURE__ */
|
|
1630
|
+
function Kn({ className: e, ...t }) {
|
|
1631
|
+
return /* @__PURE__ */ g(A.ScrollDownButton, {
|
|
1736
1632
|
"data-slot": "select-scroll-down-button",
|
|
1737
1633
|
className: N("flex cursor-default items-center justify-center py-1", e),
|
|
1738
1634
|
...t,
|
|
1739
|
-
children: /* @__PURE__ */
|
|
1635
|
+
children: /* @__PURE__ */ g(h, { className: "size-4" })
|
|
1740
1636
|
});
|
|
1741
1637
|
}
|
|
1742
1638
|
//#endregion
|
|
1743
1639
|
//#region src/components/ui/separator.tsx
|
|
1744
|
-
function
|
|
1745
|
-
return /* @__PURE__ */
|
|
1640
|
+
function qn({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
1641
|
+
return /* @__PURE__ */ g(Ee.Root, {
|
|
1746
1642
|
"data-slot": "separator",
|
|
1747
1643
|
decorative: n,
|
|
1748
1644
|
orientation: t,
|
|
@@ -1752,74 +1648,74 @@ function Zn({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1752
1648
|
}
|
|
1753
1649
|
//#endregion
|
|
1754
1650
|
//#region src/components/ui/sheet.tsx
|
|
1755
|
-
function
|
|
1756
|
-
return /* @__PURE__ */
|
|
1651
|
+
function Jn({ ...e }) {
|
|
1652
|
+
return /* @__PURE__ */ g(w.Root, {
|
|
1757
1653
|
"data-slot": "sheet",
|
|
1758
1654
|
...e
|
|
1759
1655
|
});
|
|
1760
1656
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return /* @__PURE__ */
|
|
1657
|
+
function Yn({ ...e }) {
|
|
1658
|
+
return /* @__PURE__ */ g(w.Trigger, {
|
|
1763
1659
|
"data-slot": "sheet-trigger",
|
|
1764
1660
|
...e
|
|
1765
1661
|
});
|
|
1766
1662
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return /* @__PURE__ */
|
|
1663
|
+
function Xn({ ...e }) {
|
|
1664
|
+
return /* @__PURE__ */ g(w.Close, {
|
|
1769
1665
|
"data-slot": "sheet-close",
|
|
1770
1666
|
...e
|
|
1771
1667
|
});
|
|
1772
1668
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return /* @__PURE__ */
|
|
1669
|
+
function Zn({ ...e }) {
|
|
1670
|
+
return /* @__PURE__ */ g(w.Portal, {
|
|
1775
1671
|
"data-slot": "sheet-portal",
|
|
1776
1672
|
...e
|
|
1777
1673
|
});
|
|
1778
1674
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return /* @__PURE__ */
|
|
1675
|
+
function Qn({ className: e, ...t }) {
|
|
1676
|
+
return /* @__PURE__ */ g(w.Overlay, {
|
|
1781
1677
|
"data-slot": "sheet-overlay",
|
|
1782
1678
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
1783
1679
|
...t
|
|
1784
1680
|
});
|
|
1785
1681
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return /* @__PURE__ */
|
|
1682
|
+
function $n({ className: e, children: t, side: n = "right", ...r }) {
|
|
1683
|
+
return /* @__PURE__ */ _(Zn, { children: [/* @__PURE__ */ g(Qn, {}), /* @__PURE__ */ _(w.Content, {
|
|
1788
1684
|
"data-slot": "sheet-content",
|
|
1789
1685
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
1790
1686
|
...r,
|
|
1791
|
-
children: [t, /* @__PURE__ */
|
|
1687
|
+
children: [t, /* @__PURE__ */ _(w.Close, {
|
|
1792
1688
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
1793
|
-
children: [/* @__PURE__ */
|
|
1689
|
+
children: [/* @__PURE__ */ g(pe, { className: "size-4" }), /* @__PURE__ */ g("span", {
|
|
1794
1690
|
className: "sr-only",
|
|
1795
1691
|
children: "Close"
|
|
1796
1692
|
})]
|
|
1797
1693
|
})]
|
|
1798
1694
|
})] });
|
|
1799
1695
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return /* @__PURE__ */
|
|
1696
|
+
function er({ className: e, ...t }) {
|
|
1697
|
+
return /* @__PURE__ */ g("div", {
|
|
1802
1698
|
"data-slot": "sheet-header",
|
|
1803
1699
|
className: N("flex flex-col gap-1.5 p-4", e),
|
|
1804
1700
|
...t
|
|
1805
1701
|
});
|
|
1806
1702
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return /* @__PURE__ */
|
|
1703
|
+
function tr({ className: e, ...t }) {
|
|
1704
|
+
return /* @__PURE__ */ g("div", {
|
|
1809
1705
|
"data-slot": "sheet-footer",
|
|
1810
1706
|
className: N("mt-auto flex flex-col gap-2 p-4", e),
|
|
1811
1707
|
...t
|
|
1812
1708
|
});
|
|
1813
1709
|
}
|
|
1814
|
-
function
|
|
1815
|
-
return /* @__PURE__ */
|
|
1710
|
+
function nr({ className: e, ...t }) {
|
|
1711
|
+
return /* @__PURE__ */ g(w.Title, {
|
|
1816
1712
|
"data-slot": "sheet-title",
|
|
1817
1713
|
className: N("text-foreground font-semibold", e),
|
|
1818
1714
|
...t
|
|
1819
1715
|
});
|
|
1820
1716
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return /* @__PURE__ */
|
|
1717
|
+
function rr({ className: e, ...t }) {
|
|
1718
|
+
return /* @__PURE__ */ g(w.Description, {
|
|
1823
1719
|
"data-slot": "sheet-description",
|
|
1824
1720
|
className: N("text-muted-foreground text-sm", e),
|
|
1825
1721
|
...t
|
|
@@ -1827,20 +1723,20 @@ function sr({ className: e, ...t }) {
|
|
|
1827
1723
|
}
|
|
1828
1724
|
//#endregion
|
|
1829
1725
|
//#region src/hooks/use-mobile.tsx
|
|
1830
|
-
var
|
|
1831
|
-
function
|
|
1726
|
+
var ir = 768;
|
|
1727
|
+
function ar() {
|
|
1832
1728
|
let [e, t] = s.useState(void 0);
|
|
1833
1729
|
return s.useEffect(() => {
|
|
1834
|
-
let e = window.matchMedia(`(max-width: ${
|
|
1835
|
-
t(window.innerWidth <
|
|
1730
|
+
let e = window.matchMedia(`(max-width: ${ir - 1}px)`), n = () => {
|
|
1731
|
+
t(window.innerWidth < ir);
|
|
1836
1732
|
};
|
|
1837
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
1733
|
+
return e.addEventListener("change", n), t(window.innerWidth < ir), () => e.removeEventListener("change", n);
|
|
1838
1734
|
}, []), !!e;
|
|
1839
1735
|
}
|
|
1840
1736
|
//#endregion
|
|
1841
1737
|
//#region src/components/ui/skeleton.tsx
|
|
1842
|
-
function
|
|
1843
|
-
return /* @__PURE__ */
|
|
1738
|
+
function or({ className: e, ...t }) {
|
|
1739
|
+
return /* @__PURE__ */ g("div", {
|
|
1844
1740
|
"data-slot": "skeleton",
|
|
1845
1741
|
className: N("bg-accent animate-pulse rounded-md", e),
|
|
1846
1742
|
...t
|
|
@@ -1848,83 +1744,83 @@ function ur({ className: e, ...t }) {
|
|
|
1848
1744
|
}
|
|
1849
1745
|
//#endregion
|
|
1850
1746
|
//#region src/components/ui/tooltip.tsx
|
|
1851
|
-
function
|
|
1852
|
-
return /* @__PURE__ */
|
|
1747
|
+
function sr({ delayDuration: e = 0, ...t }) {
|
|
1748
|
+
return /* @__PURE__ */ g(j.Provider, {
|
|
1853
1749
|
"data-slot": "tooltip-provider",
|
|
1854
1750
|
delayDuration: e,
|
|
1855
1751
|
...t
|
|
1856
1752
|
});
|
|
1857
1753
|
}
|
|
1858
|
-
function
|
|
1859
|
-
return /* @__PURE__ */
|
|
1754
|
+
function cr({ ...e }) {
|
|
1755
|
+
return /* @__PURE__ */ g(sr, { children: /* @__PURE__ */ g(j.Root, {
|
|
1860
1756
|
"data-slot": "tooltip",
|
|
1861
1757
|
...e
|
|
1862
1758
|
}) });
|
|
1863
1759
|
}
|
|
1864
|
-
function
|
|
1865
|
-
return /* @__PURE__ */
|
|
1760
|
+
function lr({ ...e }) {
|
|
1761
|
+
return /* @__PURE__ */ g(j.Trigger, {
|
|
1866
1762
|
"data-slot": "tooltip-trigger",
|
|
1867
1763
|
...e
|
|
1868
1764
|
});
|
|
1869
1765
|
}
|
|
1870
|
-
function
|
|
1871
|
-
return /* @__PURE__ */
|
|
1766
|
+
function ur({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
1767
|
+
return /* @__PURE__ */ g(j.Portal, { children: /* @__PURE__ */ _(j.Content, {
|
|
1872
1768
|
"data-slot": "tooltip-content",
|
|
1873
1769
|
sideOffset: t,
|
|
1874
1770
|
className: N("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", e),
|
|
1875
1771
|
...r,
|
|
1876
|
-
children: [n, /* @__PURE__ */
|
|
1772
|
+
children: [n, /* @__PURE__ */ g(j.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
1877
1773
|
}) });
|
|
1878
1774
|
}
|
|
1879
1775
|
//#endregion
|
|
1880
1776
|
//#region src/components/ui/sidebar.tsx
|
|
1881
|
-
var
|
|
1777
|
+
var dr = "sidebar_state", fr = 3600 * 24 * 7, pr = "16rem", mr = "18rem", hr = "3rem", gr = "b", _r = s.createContext(null);
|
|
1882
1778
|
function $() {
|
|
1883
|
-
let e = s.useContext(
|
|
1779
|
+
let e = s.useContext(_r);
|
|
1884
1780
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
1885
1781
|
return e;
|
|
1886
1782
|
}
|
|
1887
|
-
function
|
|
1888
|
-
let c =
|
|
1889
|
-
let t = typeof e == "function" ? e(
|
|
1890
|
-
n ? n(t) :
|
|
1891
|
-
}, [n,
|
|
1783
|
+
function vr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
|
|
1784
|
+
let c = ar(), [l, u] = s.useState(!1), [ee, te] = s.useState(e), d = t ?? ee, f = s.useCallback((e) => {
|
|
1785
|
+
let t = typeof e == "function" ? e(d) : e;
|
|
1786
|
+
n ? n(t) : te(t), document.cookie = `${dr}=${t}; path=/; max-age=${fr}`;
|
|
1787
|
+
}, [n, d]), p = s.useCallback(() => c ? u((e) => !e) : f((e) => !e), [
|
|
1892
1788
|
c,
|
|
1893
|
-
|
|
1789
|
+
f,
|
|
1894
1790
|
u
|
|
1895
1791
|
]);
|
|
1896
1792
|
s.useEffect(() => {
|
|
1897
1793
|
let e = (e) => {
|
|
1898
|
-
e.key ===
|
|
1794
|
+
e.key === gr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), p());
|
|
1899
1795
|
};
|
|
1900
1796
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1901
|
-
}, [
|
|
1902
|
-
let
|
|
1903
|
-
state:
|
|
1904
|
-
open:
|
|
1905
|
-
setOpen:
|
|
1797
|
+
}, [p]);
|
|
1798
|
+
let m = d ? "expanded" : "collapsed", h = s.useMemo(() => ({
|
|
1799
|
+
state: m,
|
|
1800
|
+
open: d,
|
|
1801
|
+
setOpen: f,
|
|
1906
1802
|
isMobile: c,
|
|
1907
1803
|
openMobile: l,
|
|
1908
1804
|
setOpenMobile: u,
|
|
1909
|
-
toggleSidebar:
|
|
1805
|
+
toggleSidebar: p
|
|
1910
1806
|
}), [
|
|
1911
|
-
g,
|
|
1912
|
-
p,
|
|
1913
1807
|
m,
|
|
1808
|
+
d,
|
|
1809
|
+
f,
|
|
1914
1810
|
c,
|
|
1915
1811
|
l,
|
|
1916
1812
|
u,
|
|
1917
|
-
|
|
1813
|
+
p
|
|
1918
1814
|
]);
|
|
1919
|
-
return /* @__PURE__ */
|
|
1920
|
-
value:
|
|
1921
|
-
children: /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ g(_r.Provider, {
|
|
1816
|
+
value: h,
|
|
1817
|
+
children: /* @__PURE__ */ g(sr, {
|
|
1922
1818
|
delayDuration: 0,
|
|
1923
|
-
children: /* @__PURE__ */
|
|
1819
|
+
children: /* @__PURE__ */ g("div", {
|
|
1924
1820
|
"data-slot": "sidebar-wrapper",
|
|
1925
1821
|
style: {
|
|
1926
|
-
"--sidebar-width":
|
|
1927
|
-
"--sidebar-width-icon":
|
|
1822
|
+
"--sidebar-width": pr,
|
|
1823
|
+
"--sidebar-width-icon": hr,
|
|
1928
1824
|
...i
|
|
1929
1825
|
},
|
|
1930
1826
|
className: N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-svh w-full overflow-hidden", r),
|
|
@@ -1934,47 +1830,47 @@ function Sr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
1934
1830
|
})
|
|
1935
1831
|
});
|
|
1936
1832
|
}
|
|
1937
|
-
function
|
|
1833
|
+
function yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
1938
1834
|
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = $();
|
|
1939
|
-
return n === "none" ? /* @__PURE__ */
|
|
1835
|
+
return n === "none" ? /* @__PURE__ */ g("div", {
|
|
1940
1836
|
"data-slot": "sidebar",
|
|
1941
1837
|
className: N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
1942
1838
|
...a,
|
|
1943
1839
|
children: i
|
|
1944
|
-
}) : o ? /* @__PURE__ */
|
|
1840
|
+
}) : o ? /* @__PURE__ */ g(Jn, {
|
|
1945
1841
|
open: c,
|
|
1946
1842
|
onOpenChange: l,
|
|
1947
1843
|
...a,
|
|
1948
|
-
children: /* @__PURE__ */
|
|
1844
|
+
children: /* @__PURE__ */ _($n, {
|
|
1949
1845
|
"data-sidebar": "sidebar",
|
|
1950
1846
|
"data-slot": "sidebar",
|
|
1951
1847
|
"data-mobile": "true",
|
|
1952
1848
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
1953
|
-
style: { "--sidebar-width":
|
|
1849
|
+
style: { "--sidebar-width": mr },
|
|
1954
1850
|
side: e,
|
|
1955
|
-
children: [/* @__PURE__ */
|
|
1851
|
+
children: [/* @__PURE__ */ _(er, {
|
|
1956
1852
|
className: "sr-only",
|
|
1957
|
-
children: [/* @__PURE__ */
|
|
1958
|
-
}), /* @__PURE__ */
|
|
1853
|
+
children: [/* @__PURE__ */ g(nr, { children: "Sidebar" }), /* @__PURE__ */ g(rr, { children: "Displays the mobile sidebar." })]
|
|
1854
|
+
}), /* @__PURE__ */ g("div", {
|
|
1959
1855
|
className: "flex h-full w-full flex-col",
|
|
1960
1856
|
children: i
|
|
1961
1857
|
})]
|
|
1962
1858
|
})
|
|
1963
|
-
}) : /* @__PURE__ */
|
|
1859
|
+
}) : /* @__PURE__ */ _("div", {
|
|
1964
1860
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
1965
1861
|
"data-state": s,
|
|
1966
1862
|
"data-collapsible": s === "collapsed" ? n : "",
|
|
1967
1863
|
"data-variant": t,
|
|
1968
1864
|
"data-side": e,
|
|
1969
1865
|
"data-slot": "sidebar",
|
|
1970
|
-
children: [/* @__PURE__ */
|
|
1866
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1971
1867
|
"data-slot": "sidebar-gap",
|
|
1972
1868
|
className: N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1973
|
-
}), /* @__PURE__ */
|
|
1869
|
+
}), /* @__PURE__ */ g("div", {
|
|
1974
1870
|
"data-slot": "sidebar-container",
|
|
1975
1871
|
className: N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[inset-inline,width] duration-200 ease-linear md:flex", e === "left" ? "start-0 group-data-[collapsible=offcanvas]:-start-[calc(var(--sidebar-width))]" : "end-0 group-data-[collapsible=offcanvas]:-end-[calc(var(--sidebar-width))]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", r),
|
|
1976
1872
|
...a,
|
|
1977
|
-
children: /* @__PURE__ */
|
|
1873
|
+
children: /* @__PURE__ */ g("div", {
|
|
1978
1874
|
"data-sidebar": "sidebar",
|
|
1979
1875
|
"data-slot": "sidebar-inner",
|
|
1980
1876
|
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
@@ -1983,9 +1879,9 @@ function Cr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1983
1879
|
})]
|
|
1984
1880
|
});
|
|
1985
1881
|
}
|
|
1986
|
-
function
|
|
1882
|
+
function br({ className: e, onClick: t, ...n }) {
|
|
1987
1883
|
let { toggleSidebar: r } = $();
|
|
1988
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ _(z, {
|
|
1989
1885
|
"data-sidebar": "trigger",
|
|
1990
1886
|
"data-slot": "sidebar-trigger",
|
|
1991
1887
|
variant: "ghost",
|
|
@@ -1995,15 +1891,15 @@ function wr({ className: e, onClick: t, ...n }) {
|
|
|
1995
1891
|
t?.(e), r();
|
|
1996
1892
|
},
|
|
1997
1893
|
...n,
|
|
1998
|
-
children: [/* @__PURE__ */
|
|
1894
|
+
children: [/* @__PURE__ */ g(ue, {}), /* @__PURE__ */ g("span", {
|
|
1999
1895
|
className: "sr-only",
|
|
2000
1896
|
children: "Toggle Sidebar"
|
|
2001
1897
|
})]
|
|
2002
1898
|
});
|
|
2003
1899
|
}
|
|
2004
|
-
function
|
|
1900
|
+
function xr({ className: e, ...t }) {
|
|
2005
1901
|
let { toggleSidebar: n } = $();
|
|
2006
|
-
return /* @__PURE__ */
|
|
1902
|
+
return /* @__PURE__ */ g("button", {
|
|
2007
1903
|
"data-sidebar": "rail",
|
|
2008
1904
|
"data-slot": "sidebar-rail",
|
|
2009
1905
|
"aria-label": "Toggle Sidebar",
|
|
@@ -2014,102 +1910,102 @@ function Tr({ className: e, ...t }) {
|
|
|
2014
1910
|
...t
|
|
2015
1911
|
});
|
|
2016
1912
|
}
|
|
2017
|
-
function
|
|
2018
|
-
return /* @__PURE__ */
|
|
1913
|
+
function Sr({ className: e, ...t }) {
|
|
1914
|
+
return /* @__PURE__ */ g("div", {
|
|
2019
1915
|
"data-slot": "sidebar-inset",
|
|
2020
1916
|
className: N("bg-background relative flex w-full flex-1 flex-col overflow-y-auto", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2", e),
|
|
2021
1917
|
...t
|
|
2022
1918
|
});
|
|
2023
1919
|
}
|
|
2024
|
-
function
|
|
2025
|
-
return /* @__PURE__ */
|
|
1920
|
+
function Cr({ className: e, ...t }) {
|
|
1921
|
+
return /* @__PURE__ */ g(J, {
|
|
2026
1922
|
"data-slot": "sidebar-input",
|
|
2027
1923
|
"data-sidebar": "input",
|
|
2028
1924
|
className: N("bg-background h-8 w-full shadow-none", e),
|
|
2029
1925
|
...t
|
|
2030
1926
|
});
|
|
2031
1927
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return /* @__PURE__ */
|
|
1928
|
+
function wr({ className: e, ...t }) {
|
|
1929
|
+
return /* @__PURE__ */ g("div", {
|
|
2034
1930
|
"data-slot": "sidebar-header",
|
|
2035
1931
|
"data-sidebar": "header",
|
|
2036
1932
|
className: N("flex flex-col gap-2 p-2", e),
|
|
2037
1933
|
...t
|
|
2038
1934
|
});
|
|
2039
1935
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return /* @__PURE__ */
|
|
1936
|
+
function Tr({ className: e, ...t }) {
|
|
1937
|
+
return /* @__PURE__ */ g("div", {
|
|
2042
1938
|
"data-slot": "sidebar-footer",
|
|
2043
1939
|
"data-sidebar": "footer",
|
|
2044
1940
|
className: N("flex flex-col gap-2 p-2", e),
|
|
2045
1941
|
...t
|
|
2046
1942
|
});
|
|
2047
1943
|
}
|
|
2048
|
-
function
|
|
2049
|
-
return /* @__PURE__ */
|
|
1944
|
+
function Er({ className: e, ...t }) {
|
|
1945
|
+
return /* @__PURE__ */ g(qn, {
|
|
2050
1946
|
"data-slot": "sidebar-separator",
|
|
2051
1947
|
"data-sidebar": "separator",
|
|
2052
1948
|
className: N("bg-sidebar-border mx-2 w-auto", e),
|
|
2053
1949
|
...t
|
|
2054
1950
|
});
|
|
2055
1951
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return /* @__PURE__ */
|
|
1952
|
+
function Dr({ className: e, ...t }) {
|
|
1953
|
+
return /* @__PURE__ */ g("div", {
|
|
2058
1954
|
"data-slot": "sidebar-content",
|
|
2059
1955
|
"data-sidebar": "content",
|
|
2060
1956
|
className: N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
2061
1957
|
...t
|
|
2062
1958
|
});
|
|
2063
1959
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return /* @__PURE__ */
|
|
1960
|
+
function Or({ className: e, ...t }) {
|
|
1961
|
+
return /* @__PURE__ */ g("div", {
|
|
2066
1962
|
"data-slot": "sidebar-group",
|
|
2067
1963
|
"data-sidebar": "group",
|
|
2068
1964
|
className: N("relative flex w-full min-w-0 flex-col p-2", e),
|
|
2069
1965
|
...t
|
|
2070
1966
|
});
|
|
2071
1967
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return /* @__PURE__ */
|
|
1968
|
+
function kr({ className: e, asChild: t = !1, ...n }) {
|
|
1969
|
+
return /* @__PURE__ */ g(t ? b : "div", {
|
|
2074
1970
|
"data-slot": "sidebar-group-label",
|
|
2075
1971
|
"data-sidebar": "group-label",
|
|
2076
1972
|
className: N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
|
|
2077
1973
|
...n
|
|
2078
1974
|
});
|
|
2079
1975
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return /* @__PURE__ */
|
|
1976
|
+
function Ar({ className: e, asChild: t = !1, ...n }) {
|
|
1977
|
+
return /* @__PURE__ */ g(t ? b : "button", {
|
|
2082
1978
|
"data-slot": "sidebar-group-action",
|
|
2083
1979
|
"data-sidebar": "group-action",
|
|
2084
1980
|
className: N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute end-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
|
|
2085
1981
|
...n
|
|
2086
1982
|
});
|
|
2087
1983
|
}
|
|
2088
|
-
function
|
|
2089
|
-
return /* @__PURE__ */
|
|
1984
|
+
function jr({ className: e, ...t }) {
|
|
1985
|
+
return /* @__PURE__ */ g("div", {
|
|
2090
1986
|
"data-slot": "sidebar-group-content",
|
|
2091
1987
|
"data-sidebar": "group-content",
|
|
2092
1988
|
className: N("w-full text-sm", e),
|
|
2093
1989
|
...t
|
|
2094
1990
|
});
|
|
2095
1991
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return /* @__PURE__ */
|
|
1992
|
+
function Mr({ className: e, ...t }) {
|
|
1993
|
+
return /* @__PURE__ */ g("ul", {
|
|
2098
1994
|
"data-slot": "sidebar-menu",
|
|
2099
1995
|
"data-sidebar": "menu",
|
|
2100
1996
|
className: N("flex w-full min-w-0 flex-col gap-1", e),
|
|
2101
1997
|
...t
|
|
2102
1998
|
});
|
|
2103
1999
|
}
|
|
2104
|
-
function
|
|
2105
|
-
return /* @__PURE__ */
|
|
2000
|
+
function Nr({ className: e, ...t }) {
|
|
2001
|
+
return /* @__PURE__ */ g("li", {
|
|
2106
2002
|
"data-slot": "sidebar-menu-item",
|
|
2107
2003
|
"data-sidebar": "menu-item",
|
|
2108
2004
|
className: N("group/menu-item relative", e),
|
|
2109
2005
|
...t
|
|
2110
2006
|
});
|
|
2111
2007
|
}
|
|
2112
|
-
var
|
|
2008
|
+
var Pr = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
2113
2009
|
variants: {
|
|
2114
2010
|
variant: {
|
|
2115
2011
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -2126,79 +2022,79 @@ var Rr = b("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
2126
2022
|
size: "default"
|
|
2127
2023
|
}
|
|
2128
2024
|
});
|
|
2129
|
-
function
|
|
2130
|
-
let s = e ?
|
|
2025
|
+
function Fr({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
2026
|
+
let s = e ? b : "button", { isMobile: c, state: l } = $(), u = /* @__PURE__ */ g(s, {
|
|
2131
2027
|
"data-slot": "sidebar-menu-button",
|
|
2132
2028
|
"data-sidebar": "menu-button",
|
|
2133
2029
|
"data-size": r,
|
|
2134
2030
|
"data-active": t,
|
|
2135
|
-
className: N(
|
|
2031
|
+
className: N(Pr({
|
|
2136
2032
|
variant: n,
|
|
2137
2033
|
size: r
|
|
2138
2034
|
}), a),
|
|
2139
2035
|
...o
|
|
2140
2036
|
});
|
|
2141
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */
|
|
2037
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ _(cr, { children: [/* @__PURE__ */ g(lr, {
|
|
2142
2038
|
asChild: !0,
|
|
2143
2039
|
children: u
|
|
2144
|
-
}), /* @__PURE__ */
|
|
2040
|
+
}), /* @__PURE__ */ g(ur, {
|
|
2145
2041
|
side: "right",
|
|
2146
2042
|
align: "center",
|
|
2147
2043
|
hidden: l !== "collapsed" || c,
|
|
2148
2044
|
...i
|
|
2149
2045
|
})] })) : u;
|
|
2150
2046
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return /* @__PURE__ */
|
|
2047
|
+
function Ir({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
2048
|
+
return /* @__PURE__ */ g(t ? b : "button", {
|
|
2153
2049
|
"data-slot": "sidebar-menu-action",
|
|
2154
2050
|
"data-sidebar": "menu-action",
|
|
2155
2051
|
className: N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute end-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
|
|
2156
2052
|
...r
|
|
2157
2053
|
});
|
|
2158
2054
|
}
|
|
2159
|
-
function
|
|
2160
|
-
return /* @__PURE__ */
|
|
2055
|
+
function Lr({ className: e, ...t }) {
|
|
2056
|
+
return /* @__PURE__ */ g("div", {
|
|
2161
2057
|
"data-slot": "sidebar-menu-badge",
|
|
2162
2058
|
"data-sidebar": "menu-badge",
|
|
2163
2059
|
className: N("text-sidebar-foreground pointer-events-none absolute end-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
|
|
2164
2060
|
...t
|
|
2165
2061
|
});
|
|
2166
2062
|
}
|
|
2167
|
-
function
|
|
2063
|
+
function Rr({ className: e, showIcon: t = !1, ...n }) {
|
|
2168
2064
|
let r = s.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
2169
|
-
return /* @__PURE__ */
|
|
2065
|
+
return /* @__PURE__ */ _("div", {
|
|
2170
2066
|
"data-slot": "sidebar-menu-skeleton",
|
|
2171
2067
|
"data-sidebar": "menu-skeleton",
|
|
2172
2068
|
className: N("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
2173
2069
|
...n,
|
|
2174
|
-
children: [t && /* @__PURE__ */
|
|
2070
|
+
children: [t && /* @__PURE__ */ g(or, {
|
|
2175
2071
|
className: "size-4 rounded-md",
|
|
2176
2072
|
"data-sidebar": "menu-skeleton-icon"
|
|
2177
|
-
}), /* @__PURE__ */
|
|
2073
|
+
}), /* @__PURE__ */ g(or, {
|
|
2178
2074
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2179
2075
|
"data-sidebar": "menu-skeleton-text",
|
|
2180
2076
|
style: { "--skeleton-width": r }
|
|
2181
2077
|
})]
|
|
2182
2078
|
});
|
|
2183
2079
|
}
|
|
2184
|
-
function
|
|
2185
|
-
return /* @__PURE__ */
|
|
2080
|
+
function zr({ className: e, ...t }) {
|
|
2081
|
+
return /* @__PURE__ */ g("ul", {
|
|
2186
2082
|
"data-slot": "sidebar-menu-sub",
|
|
2187
2083
|
"data-sidebar": "menu-sub",
|
|
2188
2084
|
className: N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-s px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
|
|
2189
2085
|
...t
|
|
2190
2086
|
});
|
|
2191
2087
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return /* @__PURE__ */
|
|
2088
|
+
function Br({ className: e, ...t }) {
|
|
2089
|
+
return /* @__PURE__ */ g("li", {
|
|
2194
2090
|
"data-slot": "sidebar-menu-sub-item",
|
|
2195
2091
|
"data-sidebar": "menu-sub-item",
|
|
2196
2092
|
className: N("group/menu-sub-item relative", e),
|
|
2197
2093
|
...t
|
|
2198
2094
|
});
|
|
2199
2095
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return /* @__PURE__ */
|
|
2096
|
+
function Vr({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
2097
|
+
return /* @__PURE__ */ g(e ? b : "a", {
|
|
2202
2098
|
"data-slot": "sidebar-menu-sub-button",
|
|
2203
2099
|
"data-sidebar": "menu-sub-button",
|
|
2204
2100
|
"data-size": t,
|
|
@@ -2208,10 +2104,23 @@ function Gr({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
2208
2104
|
});
|
|
2209
2105
|
}
|
|
2210
2106
|
//#endregion
|
|
2107
|
+
//#region src/context/theme-provider.tsx
|
|
2108
|
+
var Hr = "system", Ur = c({
|
|
2109
|
+
defaultTheme: Hr,
|
|
2110
|
+
resolvedTheme: "light",
|
|
2111
|
+
theme: Hr,
|
|
2112
|
+
setTheme: () => null,
|
|
2113
|
+
resetTheme: () => null
|
|
2114
|
+
}), Wr = () => {
|
|
2115
|
+
let e = l(Ur);
|
|
2116
|
+
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
2117
|
+
return e;
|
|
2118
|
+
};
|
|
2119
|
+
//#endregion
|
|
2211
2120
|
//#region src/components/ui/sonner.tsx
|
|
2212
|
-
function
|
|
2213
|
-
let { theme: t = "system" } =
|
|
2214
|
-
return /* @__PURE__ */
|
|
2121
|
+
function Gr({ ...e }) {
|
|
2122
|
+
let { theme: t = "system" } = Wr();
|
|
2123
|
+
return /* @__PURE__ */ g(r, {
|
|
2215
2124
|
theme: t,
|
|
2216
2125
|
className: "toaster group [&_div[data-content]]:w-full",
|
|
2217
2126
|
toastOptions: { classNames: {
|
|
@@ -2231,12 +2140,12 @@ function Kr({ ...e }) {
|
|
|
2231
2140
|
}
|
|
2232
2141
|
//#endregion
|
|
2233
2142
|
//#region src/components/ui/switch.tsx
|
|
2234
|
-
function
|
|
2235
|
-
return /* @__PURE__ */
|
|
2143
|
+
function Kr({ className: e, ...t }) {
|
|
2144
|
+
return /* @__PURE__ */ g(De.Root, {
|
|
2236
2145
|
"data-slot": "switch",
|
|
2237
2146
|
className: N("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
2238
2147
|
...t,
|
|
2239
|
-
children: /* @__PURE__ */
|
|
2148
|
+
children: /* @__PURE__ */ g(De.Thumb, {
|
|
2240
2149
|
"data-slot": "switch-thumb",
|
|
2241
2150
|
className: N("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")
|
|
2242
2151
|
})
|
|
@@ -2244,62 +2153,62 @@ function qr({ className: e, ...t }) {
|
|
|
2244
2153
|
}
|
|
2245
2154
|
//#endregion
|
|
2246
2155
|
//#region src/components/ui/table.tsx
|
|
2247
|
-
function
|
|
2248
|
-
let r = /* @__PURE__ */
|
|
2156
|
+
function qr({ className: e, noWrapper: t, ...n }) {
|
|
2157
|
+
let r = /* @__PURE__ */ g("table", {
|
|
2249
2158
|
"data-slot": "table",
|
|
2250
2159
|
className: N("w-full caption-bottom text-sm", e),
|
|
2251
2160
|
...n
|
|
2252
2161
|
});
|
|
2253
|
-
return t ? r : /* @__PURE__ */
|
|
2162
|
+
return t ? r : /* @__PURE__ */ g("div", {
|
|
2254
2163
|
"data-slot": "table-container",
|
|
2255
2164
|
className: "relative w-full overflow-x-auto",
|
|
2256
2165
|
children: r
|
|
2257
2166
|
});
|
|
2258
2167
|
}
|
|
2259
|
-
function
|
|
2260
|
-
return /* @__PURE__ */
|
|
2168
|
+
function Jr({ className: e, ...t }) {
|
|
2169
|
+
return /* @__PURE__ */ g("thead", {
|
|
2261
2170
|
"data-slot": "table-header",
|
|
2262
2171
|
className: N("[&_tr]:border-b", e),
|
|
2263
2172
|
...t
|
|
2264
2173
|
});
|
|
2265
2174
|
}
|
|
2266
|
-
function
|
|
2267
|
-
return /* @__PURE__ */
|
|
2175
|
+
function Yr({ className: e, ...t }) {
|
|
2176
|
+
return /* @__PURE__ */ g("tbody", {
|
|
2268
2177
|
"data-slot": "table-body",
|
|
2269
2178
|
className: N("[&_tr:last-child]:border-0", e),
|
|
2270
2179
|
...t
|
|
2271
2180
|
});
|
|
2272
2181
|
}
|
|
2273
|
-
function
|
|
2274
|
-
return /* @__PURE__ */
|
|
2182
|
+
function Xr({ className: e, ...t }) {
|
|
2183
|
+
return /* @__PURE__ */ g("tfoot", {
|
|
2275
2184
|
"data-slot": "table-footer",
|
|
2276
2185
|
className: N("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
2277
2186
|
...t
|
|
2278
2187
|
});
|
|
2279
2188
|
}
|
|
2280
|
-
function
|
|
2281
|
-
return /* @__PURE__ */
|
|
2189
|
+
function Zr({ className: e, ...t }) {
|
|
2190
|
+
return /* @__PURE__ */ g("tr", {
|
|
2282
2191
|
"data-slot": "table-row",
|
|
2283
2192
|
className: N("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
2284
2193
|
...t
|
|
2285
2194
|
});
|
|
2286
2195
|
}
|
|
2287
|
-
function
|
|
2288
|
-
return /* @__PURE__ */
|
|
2196
|
+
function Qr({ className: e, ...t }) {
|
|
2197
|
+
return /* @__PURE__ */ g("th", {
|
|
2289
2198
|
"data-slot": "table-head",
|
|
2290
2199
|
className: N("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2291
2200
|
...t
|
|
2292
2201
|
});
|
|
2293
2202
|
}
|
|
2294
|
-
function
|
|
2295
|
-
return /* @__PURE__ */
|
|
2203
|
+
function $r({ className: e, ...t }) {
|
|
2204
|
+
return /* @__PURE__ */ g("td", {
|
|
2296
2205
|
"data-slot": "table-cell",
|
|
2297
2206
|
className: N("p-2 align-middle whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2298
2207
|
...t
|
|
2299
2208
|
});
|
|
2300
2209
|
}
|
|
2301
|
-
function
|
|
2302
|
-
return /* @__PURE__ */
|
|
2210
|
+
function ei({ className: e, ...t }) {
|
|
2211
|
+
return /* @__PURE__ */ g("caption", {
|
|
2303
2212
|
"data-slot": "table-caption",
|
|
2304
2213
|
className: N("text-muted-foreground mt-4 text-sm", e),
|
|
2305
2214
|
...t
|
|
@@ -2307,29 +2216,29 @@ function ti({ className: e, ...t }) {
|
|
|
2307
2216
|
}
|
|
2308
2217
|
//#endregion
|
|
2309
2218
|
//#region src/components/ui/tabs.tsx
|
|
2310
|
-
function
|
|
2311
|
-
return /* @__PURE__ */
|
|
2219
|
+
function ti({ className: e, ...t }) {
|
|
2220
|
+
return /* @__PURE__ */ g(M.Root, {
|
|
2312
2221
|
"data-slot": "tabs",
|
|
2313
2222
|
className: N("flex flex-col gap-2", e),
|
|
2314
2223
|
...t
|
|
2315
2224
|
});
|
|
2316
2225
|
}
|
|
2317
|
-
function
|
|
2318
|
-
return /* @__PURE__ */
|
|
2226
|
+
function ni({ className: e, ...t }) {
|
|
2227
|
+
return /* @__PURE__ */ g(M.List, {
|
|
2319
2228
|
"data-slot": "tabs-list",
|
|
2320
2229
|
className: N("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
|
|
2321
2230
|
...t
|
|
2322
2231
|
});
|
|
2323
2232
|
}
|
|
2324
|
-
function
|
|
2325
|
-
return /* @__PURE__ */
|
|
2233
|
+
function ri({ className: e, ...t }) {
|
|
2234
|
+
return /* @__PURE__ */ g(M.Trigger, {
|
|
2326
2235
|
"data-slot": "tabs-trigger",
|
|
2327
2236
|
className: N("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2328
2237
|
...t
|
|
2329
2238
|
});
|
|
2330
2239
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return /* @__PURE__ */
|
|
2240
|
+
function ii({ className: e, ...t }) {
|
|
2241
|
+
return /* @__PURE__ */ g(M.Content, {
|
|
2333
2242
|
"data-slot": "tabs-content",
|
|
2334
2243
|
className: N("flex-1 outline-none", e),
|
|
2335
2244
|
...t
|
|
@@ -2337,14 +2246,14 @@ function ai({ className: e, ...t }) {
|
|
|
2337
2246
|
}
|
|
2338
2247
|
//#endregion
|
|
2339
2248
|
//#region src/components/ui/textarea.tsx
|
|
2340
|
-
function
|
|
2341
|
-
return /* @__PURE__ */
|
|
2249
|
+
function ai({ className: e, ...t }) {
|
|
2250
|
+
return /* @__PURE__ */ g("textarea", {
|
|
2342
2251
|
"data-slot": "textarea",
|
|
2343
2252
|
className: N("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
2344
2253
|
...t
|
|
2345
2254
|
});
|
|
2346
2255
|
}
|
|
2347
2256
|
//#endregion
|
|
2348
|
-
export { tt as Accordion, it as AccordionContent, nt as AccordionItem, rt as AccordionTrigger, ot as Alert, ct as AlertDescription, lt as AlertDialog, vt as AlertDialogAction, yt as AlertDialogCancel, pt as AlertDialogContent, _t as AlertDialogDescription, ht as AlertDialogFooter, mt as AlertDialogHeader, ft as AlertDialogOverlay, dt as AlertDialogPortal, gt as AlertDialogTitle, ut as AlertDialogTrigger, st as AlertTitle, bt as Avatar, St as AvatarFallback, xt as AvatarImage, wt as Badge, z as Button, Tt as Calendar, Et as CalendarDayButton, Dt as Card, jt as CardAction, Mt as CardContent, At as CardDescription, Nt as CardFooter, Ot as CardHeader, kt as CardTitle, Pt as Checkbox,
|
|
2257
|
+
export { tt as Accordion, it as AccordionContent, nt as AccordionItem, rt as AccordionTrigger, ot as Alert, ct as AlertDescription, lt as AlertDialog, vt as AlertDialogAction, yt as AlertDialogCancel, pt as AlertDialogContent, _t as AlertDialogDescription, ht as AlertDialogFooter, mt as AlertDialogHeader, ft as AlertDialogOverlay, dt as AlertDialogPortal, gt as AlertDialogTitle, ut as AlertDialogTrigger, st as AlertTitle, bt as Avatar, St as AvatarFallback, xt as AvatarImage, wt as Badge, z as Button, Tt as Calendar, Et as CalendarDayButton, Dt as Card, jt as CardAction, Mt as CardContent, At as CardDescription, Nt as CardFooter, Ot as CardHeader, kt as CardTitle, Pt as Checkbox, Ft as Collapsible, Lt as CollapsibleContent, It as CollapsibleTrigger, B as Command, Jt as CommandDialog, U as CommandEmpty, W as CommandGroup, V as CommandInput, G as CommandItem, H as CommandList, Yt as CommandSeparator, Xt as CommandShortcut, Rt as Dialog, Vt as DialogClose, Ut as DialogContent, qt as DialogDescription, Gt as DialogFooter, Wt as DialogHeader, Ht as DialogOverlay, Bt as DialogPortal, Kt as DialogTitle, zt as DialogTrigger, Zt as DropdownMenu, rn as DropdownMenuCheckboxItem, en as DropdownMenuContent, tn as DropdownMenuGroup, nn as DropdownMenuItem, sn as DropdownMenuLabel, Qt as DropdownMenuPortal, an as DropdownMenuRadioGroup, on as DropdownMenuRadioItem, cn as DropdownMenuSeparator, ln as DropdownMenuShortcut, un as DropdownMenuSub, fn as DropdownMenuSubContent, dn as DropdownMenuSubTrigger, $t as DropdownMenuTrigger, pn as Form, yn as FormControl, bn as FormDescription, hn as FormField, _n as FormItem, vn as FormLabel, xn as FormMessage, Sn as ImageUpload, J as Input, Cn as InputOTP, wn as InputOTPGroup, En as InputOTPSeparator, Tn as InputOTPSlot, K as Label, On as MultiSelect, An as PhoneInput, Y as Popover, Dn as PopoverAnchor, Z as PopoverContent, X as PopoverTrigger, Pn as Progress, Fn as RadioGroup, In as RadioGroupItem, Ne as SPANISH_SYMBOLS, Q as ScrollArea, kn as ScrollBar, Ln as Select, Vn as SelectContent, Rn as SelectGroup, Un as SelectItem, Hn as SelectLabel, Kn as SelectScrollDownButton, Gn as SelectScrollUpButton, Wn as SelectSeparator, Bn as SelectTrigger, zn as SelectValue, qn as Separator, Jn as Sheet, Xn as SheetClose, $n as SheetContent, rr as SheetDescription, tr as SheetFooter, er as SheetHeader, nr as SheetTitle, Yn as SheetTrigger, yr as Sidebar, Dr as SidebarContent, Tr as SidebarFooter, Or as SidebarGroup, Ar as SidebarGroupAction, jr as SidebarGroupContent, kr as SidebarGroupLabel, wr as SidebarHeader, Cr as SidebarInput, Sr as SidebarInset, Mr as SidebarMenu, Ir as SidebarMenuAction, Lr as SidebarMenuBadge, Fr as SidebarMenuButton, Nr as SidebarMenuItem, Rr as SidebarMenuSkeleton, zr as SidebarMenuSub, Vr as SidebarMenuSubButton, Br as SidebarMenuSubItem, vr as SidebarProvider, xr as SidebarRail, Er as SidebarSeparator, br as SidebarTrigger, or as Skeleton, Kr as Switch, qr as Table, Yr as TableBody, ei as TableCaption, $r as TableCell, Xr as TableFooter, Qr as TableHead, Jr as TableHeader, Zr as TableRow, ti as Tabs, ii as TabsContent, ni as TabsList, ri as TabsTrigger, ai as Textarea, Gr as Toaster, cr as Tooltip, ur as TooltipContent, sr as TooltipProvider, lr as TooltipTrigger, L as api, Ct as badgeVariants, R as buttonVariants, N as cn, Le as fmtCurrency, Pe as formatCurrency, Ge as generateBadgeStyles, Re as getAllTimezones, qe as getCookie, Ve as getCountries, Fe as getCurrencySymbol, Ae as getImageUrl, Me as getPageNumbers, ke as getStorageUrl, et as handleServerError, Ze as notificationManager, Xe as playNotificationSound, $e as pushService, Ye as removeCookie, We as resolveColorCss, Ue as resolveColorHex, Je as setCookie, je as sleep, q as useFormField, Ie as useFormatCurrency, $ as useSidebar };
|
|
2349
2258
|
|
|
2350
2259
|
//# sourceMappingURL=index.js.map
|