@cupcodev/ui 6.0.1 → 6.1.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/README.md +1 -1
- package/dist/index.cjs +625 -637
- package/dist/index.js +613 -625
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2535,47 +2535,6 @@ var NavbarCupcode = ({
|
|
|
2535
2535
|
};
|
|
2536
2536
|
var NavbarCupcode_default = NavbarCupcode;
|
|
2537
2537
|
|
|
2538
|
-
// src/components/cupcode/TelescupImage.tsx
|
|
2539
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
2540
|
-
var TelescupImage = ({
|
|
2541
|
-
apiId,
|
|
2542
|
-
imageWidth,
|
|
2543
|
-
imageHeight,
|
|
2544
|
-
fit = "cover",
|
|
2545
|
-
format = "avif",
|
|
2546
|
-
quality = 60,
|
|
2547
|
-
lang = "pt-BR",
|
|
2548
|
-
alt,
|
|
2549
|
-
title,
|
|
2550
|
-
loading = "lazy",
|
|
2551
|
-
className,
|
|
2552
|
-
...props
|
|
2553
|
-
}) => {
|
|
2554
|
-
const { url, meta } = useTelescupImage(
|
|
2555
|
-
{
|
|
2556
|
-
id: apiId,
|
|
2557
|
-
width: imageWidth,
|
|
2558
|
-
height: imageHeight,
|
|
2559
|
-
fit,
|
|
2560
|
-
format,
|
|
2561
|
-
quality
|
|
2562
|
-
},
|
|
2563
|
-
lang
|
|
2564
|
-
);
|
|
2565
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2566
|
-
"img",
|
|
2567
|
-
{
|
|
2568
|
-
src: url,
|
|
2569
|
-
"data-api-id": apiId,
|
|
2570
|
-
alt: alt || meta.alt || "",
|
|
2571
|
-
title: title || meta.title,
|
|
2572
|
-
loading,
|
|
2573
|
-
className,
|
|
2574
|
-
...props
|
|
2575
|
-
}
|
|
2576
|
-
);
|
|
2577
|
-
};
|
|
2578
|
-
|
|
2579
2538
|
// src/components/cupcode/UserMenuCupcode.tsx
|
|
2580
2539
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2581
2540
|
var import_lucide_react8 = require("lucide-react");
|
|
@@ -2585,11 +2544,11 @@ var import_react15 = require("react");
|
|
|
2585
2544
|
var React6 = __toESM(require("react"), 1);
|
|
2586
2545
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2587
2546
|
var import_lucide_react4 = require("lucide-react");
|
|
2588
|
-
var
|
|
2547
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
2589
2548
|
var Select = SelectPrimitive.Root;
|
|
2590
2549
|
var SelectGroup = SelectPrimitive.Group;
|
|
2591
2550
|
var SelectValue = SelectPrimitive.Value;
|
|
2592
|
-
var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2551
|
+
var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2593
2552
|
SelectPrimitive.Trigger,
|
|
2594
2553
|
{
|
|
2595
2554
|
ref,
|
|
@@ -2600,32 +2559,32 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
|
|
|
2600
2559
|
...props,
|
|
2601
2560
|
children: [
|
|
2602
2561
|
children,
|
|
2603
|
-
/* @__PURE__ */ (0,
|
|
2562
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
2604
2563
|
]
|
|
2605
2564
|
}
|
|
2606
2565
|
));
|
|
2607
2566
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2608
|
-
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2567
|
+
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2609
2568
|
SelectPrimitive.ScrollUpButton,
|
|
2610
2569
|
{
|
|
2611
2570
|
ref,
|
|
2612
2571
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2613
2572
|
...props,
|
|
2614
|
-
children: /* @__PURE__ */ (0,
|
|
2573
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ChevronUp, { className: "h-4 w-4" })
|
|
2615
2574
|
}
|
|
2616
2575
|
));
|
|
2617
2576
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2618
|
-
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2577
|
+
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2619
2578
|
SelectPrimitive.ScrollDownButton,
|
|
2620
2579
|
{
|
|
2621
2580
|
ref,
|
|
2622
2581
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2623
2582
|
...props,
|
|
2624
|
-
children: /* @__PURE__ */ (0,
|
|
2583
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4" })
|
|
2625
2584
|
}
|
|
2626
2585
|
));
|
|
2627
2586
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2628
|
-
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0,
|
|
2587
|
+
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2629
2588
|
SelectPrimitive.Content,
|
|
2630
2589
|
{
|
|
2631
2590
|
ref,
|
|
@@ -2637,8 +2596,8 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
2637
2596
|
position,
|
|
2638
2597
|
...props,
|
|
2639
2598
|
children: [
|
|
2640
|
-
/* @__PURE__ */ (0,
|
|
2641
|
-
/* @__PURE__ */ (0,
|
|
2599
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectScrollUpButton, {}),
|
|
2600
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2642
2601
|
SelectPrimitive.Viewport,
|
|
2643
2602
|
{
|
|
2644
2603
|
className: cn(
|
|
@@ -2648,14 +2607,14 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
2648
2607
|
children
|
|
2649
2608
|
}
|
|
2650
2609
|
),
|
|
2651
|
-
/* @__PURE__ */ (0,
|
|
2610
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectScrollDownButton, {})
|
|
2652
2611
|
]
|
|
2653
2612
|
}
|
|
2654
2613
|
) }));
|
|
2655
2614
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2656
|
-
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2615
|
+
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
2657
2616
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2658
|
-
var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2617
|
+
var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2659
2618
|
SelectPrimitive.Item,
|
|
2660
2619
|
{
|
|
2661
2620
|
ref,
|
|
@@ -2665,20 +2624,20 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
2665
2624
|
),
|
|
2666
2625
|
...props,
|
|
2667
2626
|
children: [
|
|
2668
|
-
/* @__PURE__ */ (0,
|
|
2669
|
-
/* @__PURE__ */ (0,
|
|
2627
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" }) }) }),
|
|
2628
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemText, { children })
|
|
2670
2629
|
]
|
|
2671
2630
|
}
|
|
2672
2631
|
));
|
|
2673
2632
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2674
|
-
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2633
|
+
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2675
2634
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2676
2635
|
|
|
2677
2636
|
// src/components/ui/avatar.tsx
|
|
2678
2637
|
var React7 = __toESM(require("react"), 1);
|
|
2679
2638
|
var AvatarPrimitive2 = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
2680
|
-
var
|
|
2681
|
-
var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2639
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
2640
|
+
var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2682
2641
|
AvatarPrimitive2.Root,
|
|
2683
2642
|
{
|
|
2684
2643
|
ref,
|
|
@@ -2687,7 +2646,7 @@ var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2687
2646
|
}
|
|
2688
2647
|
));
|
|
2689
2648
|
Avatar2.displayName = AvatarPrimitive2.Root.displayName;
|
|
2690
|
-
var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2649
|
+
var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2691
2650
|
AvatarPrimitive2.Image,
|
|
2692
2651
|
{
|
|
2693
2652
|
ref,
|
|
@@ -2696,7 +2655,7 @@ var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2696
2655
|
}
|
|
2697
2656
|
));
|
|
2698
2657
|
AvatarImage2.displayName = AvatarPrimitive2.Image.displayName;
|
|
2699
|
-
var AvatarFallback2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2658
|
+
var AvatarFallback2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2700
2659
|
AvatarPrimitive2.Fallback,
|
|
2701
2660
|
{
|
|
2702
2661
|
ref,
|
|
@@ -2755,7 +2714,7 @@ function responsiveSizeClasses(s, currentBp) {
|
|
|
2755
2714
|
|
|
2756
2715
|
// src/components/cupcode/JellyButton.tsx
|
|
2757
2716
|
var import_react9 = require("react");
|
|
2758
|
-
var
|
|
2717
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2759
2718
|
var JellyButton = (0, import_react9.forwardRef)(
|
|
2760
2719
|
({ variant = "primary", size = "md", className, children, type = "button", ...props }, ref) => {
|
|
2761
2720
|
const sizeClass = {
|
|
@@ -2764,7 +2723,7 @@ var JellyButton = (0, import_react9.forwardRef)(
|
|
|
2764
2723
|
lg: "cc-blob-cta--lg"
|
|
2765
2724
|
}[size];
|
|
2766
2725
|
const variantClass = variant === "primary" || variant === "original-green" ? "cc-blob-cta--primary" : variant === "secondary" || variant === "original-pink" ? "cc-blob-cta--secondary" : "cc-blob-cta--half";
|
|
2767
|
-
return /* @__PURE__ */ (0,
|
|
2726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
2768
2727
|
"button",
|
|
2769
2728
|
{
|
|
2770
2729
|
ref,
|
|
@@ -2772,15 +2731,15 @@ var JellyButton = (0, import_react9.forwardRef)(
|
|
|
2772
2731
|
className: cn("cc-blob-cta", sizeClass, variantClass, className),
|
|
2773
2732
|
...props,
|
|
2774
2733
|
children: [
|
|
2775
|
-
/* @__PURE__ */ (0,
|
|
2776
|
-
/* @__PURE__ */ (0,
|
|
2777
|
-
/* @__PURE__ */ (0,
|
|
2778
|
-
/* @__PURE__ */ (0,
|
|
2779
|
-
/* @__PURE__ */ (0,
|
|
2734
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "cc-blob-cta__color-wrap", "aria-hidden": "true", children: [
|
|
2735
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__color cc-blob-cta__color--1" }),
|
|
2736
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__color cc-blob-cta__color--3" }),
|
|
2737
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__color cc-blob-cta__color--2" }),
|
|
2738
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__bg" })
|
|
2780
2739
|
] }),
|
|
2781
|
-
/* @__PURE__ */ (0,
|
|
2782
|
-
/* @__PURE__ */ (0,
|
|
2783
|
-
/* @__PURE__ */ (0,
|
|
2740
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__label", children }),
|
|
2741
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__glow cc-blob-cta__glow--1", "aria-hidden": "true" }),
|
|
2742
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "cc-blob-cta__glow cc-blob-cta__glow--2", "aria-hidden": "true" })
|
|
2784
2743
|
]
|
|
2785
2744
|
}
|
|
2786
2745
|
);
|
|
@@ -2789,7 +2748,7 @@ var JellyButton = (0, import_react9.forwardRef)(
|
|
|
2789
2748
|
JellyButton.displayName = "JellyButton";
|
|
2790
2749
|
|
|
2791
2750
|
// src/components/cupcode/JellyButtonOriginal.tsx
|
|
2792
|
-
var
|
|
2751
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2793
2752
|
var resolveResponsiveSize = (value, currentBp) => {
|
|
2794
2753
|
var _a78, _b7, _c, _d, _e;
|
|
2795
2754
|
if (typeof value === "string") {
|
|
@@ -2839,16 +2798,16 @@ function JellyButtonOriginal({
|
|
|
2839
2798
|
window.location.href = href;
|
|
2840
2799
|
}
|
|
2841
2800
|
};
|
|
2842
|
-
return /* @__PURE__ */ (0,
|
|
2801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2843
2802
|
JellyButton,
|
|
2844
2803
|
{
|
|
2845
2804
|
variant: color === "green" ? "original-green" : "original-pink",
|
|
2846
2805
|
size: resolvedSize,
|
|
2847
2806
|
className,
|
|
2848
2807
|
onClick: handleClick,
|
|
2849
|
-
children: /* @__PURE__ */ (0,
|
|
2850
|
-
icon ? /* @__PURE__ */ (0,
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
2808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
|
|
2809
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "inline-flex items-center justify-center", children: icon }) : null,
|
|
2810
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: label })
|
|
2852
2811
|
] })
|
|
2853
2812
|
}
|
|
2854
2813
|
);
|
|
@@ -2858,14 +2817,14 @@ function JellyButtonOriginal({
|
|
|
2858
2817
|
var React8 = __toESM(require("react"), 1);
|
|
2859
2818
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
2860
2819
|
var import_lucide_react5 = require("lucide-react");
|
|
2861
|
-
var
|
|
2820
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2862
2821
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2863
2822
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2864
2823
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
2865
2824
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
2866
2825
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
2867
2826
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
2868
|
-
var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2827
|
+
var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2869
2828
|
DropdownMenuPrimitive.SubTrigger,
|
|
2870
2829
|
{
|
|
2871
2830
|
ref,
|
|
@@ -2877,12 +2836,12 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
|
|
|
2877
2836
|
...props,
|
|
2878
2837
|
children: [
|
|
2879
2838
|
children,
|
|
2880
|
-
/* @__PURE__ */ (0,
|
|
2839
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
2881
2840
|
]
|
|
2882
2841
|
}
|
|
2883
2842
|
));
|
|
2884
2843
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2885
|
-
var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2844
|
+
var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2886
2845
|
DropdownMenuPrimitive.SubContent,
|
|
2887
2846
|
{
|
|
2888
2847
|
ref,
|
|
@@ -2894,7 +2853,7 @@ var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) =>
|
|
|
2894
2853
|
}
|
|
2895
2854
|
));
|
|
2896
2855
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2897
|
-
var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2856
|
+
var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2898
2857
|
DropdownMenuPrimitive.Content,
|
|
2899
2858
|
{
|
|
2900
2859
|
ref,
|
|
@@ -2907,7 +2866,7 @@ var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
2907
2866
|
}
|
|
2908
2867
|
) }));
|
|
2909
2868
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2910
|
-
var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2869
|
+
var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2911
2870
|
DropdownMenuPrimitive.Item,
|
|
2912
2871
|
{
|
|
2913
2872
|
ref,
|
|
@@ -2920,7 +2879,7 @@ var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2920
2879
|
}
|
|
2921
2880
|
));
|
|
2922
2881
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2923
|
-
var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2882
|
+
var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2924
2883
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2925
2884
|
{
|
|
2926
2885
|
ref,
|
|
@@ -2931,13 +2890,13 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
|
|
|
2931
2890
|
checked,
|
|
2932
2891
|
...props,
|
|
2933
2892
|
children: [
|
|
2934
|
-
/* @__PURE__ */ (0,
|
|
2893
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" }) }) }),
|
|
2935
2894
|
children
|
|
2936
2895
|
]
|
|
2937
2896
|
}
|
|
2938
2897
|
));
|
|
2939
2898
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2940
|
-
var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2899
|
+
var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2941
2900
|
DropdownMenuPrimitive.RadioItem,
|
|
2942
2901
|
{
|
|
2943
2902
|
ref,
|
|
@@ -2947,13 +2906,13 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
|
|
|
2947
2906
|
),
|
|
2948
2907
|
...props,
|
|
2949
2908
|
children: [
|
|
2950
|
-
/* @__PURE__ */ (0,
|
|
2909
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react5.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2951
2910
|
children
|
|
2952
2911
|
]
|
|
2953
2912
|
}
|
|
2954
2913
|
));
|
|
2955
2914
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2956
|
-
var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2915
|
+
var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2957
2916
|
DropdownMenuPrimitive.Label,
|
|
2958
2917
|
{
|
|
2959
2918
|
ref,
|
|
@@ -2962,10 +2921,10 @@ var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2962
2921
|
}
|
|
2963
2922
|
));
|
|
2964
2923
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2965
|
-
var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2924
|
+
var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2966
2925
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
2967
2926
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
2968
|
-
return /* @__PURE__ */ (0,
|
|
2927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
2969
2928
|
};
|
|
2970
2929
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2971
2930
|
|
|
@@ -2977,7 +2936,7 @@ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
|
2977
2936
|
var React9 = __toESM(require("react"), 1);
|
|
2978
2937
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
2979
2938
|
var import_class_variance_authority = require("class-variance-authority");
|
|
2980
|
-
var
|
|
2939
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2981
2940
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
2982
2941
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2983
2942
|
{
|
|
@@ -3007,17 +2966,17 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
3007
2966
|
var Button = React9.forwardRef(
|
|
3008
2967
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
3009
2968
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
3010
|
-
return /* @__PURE__ */ (0,
|
|
2969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
3011
2970
|
}
|
|
3012
2971
|
);
|
|
3013
2972
|
Button.displayName = "Button";
|
|
3014
2973
|
|
|
3015
2974
|
// src/components/ui/alert-dialog.tsx
|
|
3016
|
-
var
|
|
2975
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
3017
2976
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
3018
2977
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
3019
2978
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
3020
|
-
var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2979
|
+
var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3021
2980
|
AlertDialogPrimitive.Overlay,
|
|
3022
2981
|
{
|
|
3023
2982
|
className: cn(
|
|
@@ -3029,9 +2988,9 @@ var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3029
2988
|
}
|
|
3030
2989
|
));
|
|
3031
2990
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
3032
|
-
var AlertDialogContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3033
|
-
/* @__PURE__ */ (0,
|
|
3034
|
-
/* @__PURE__ */ (0,
|
|
2991
|
+
var AlertDialogContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AlertDialogPortal, { children: [
|
|
2992
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogOverlay, {}),
|
|
2993
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3035
2994
|
AlertDialogPrimitive.Content,
|
|
3036
2995
|
{
|
|
3037
2996
|
ref,
|
|
@@ -3044,17 +3003,17 @@ var AlertDialogContent = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3044
3003
|
)
|
|
3045
3004
|
] }));
|
|
3046
3005
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
3047
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3006
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
3048
3007
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
3049
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3008
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
3050
3009
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3051
|
-
var AlertDialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3010
|
+
var AlertDialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
3052
3011
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
3053
|
-
var AlertDialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3012
|
+
var AlertDialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
3054
3013
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
3055
|
-
var AlertDialogAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3014
|
+
var AlertDialogAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
3056
3015
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
3057
|
-
var AlertDialogCancel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3016
|
+
var AlertDialogCancel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3058
3017
|
AlertDialogPrimitive.Cancel,
|
|
3059
3018
|
{
|
|
3060
3019
|
ref,
|
|
@@ -3068,12 +3027,12 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
|
3068
3027
|
var React11 = __toESM(require("react"), 1);
|
|
3069
3028
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3070
3029
|
var import_lucide_react6 = require("lucide-react");
|
|
3071
|
-
var
|
|
3030
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3072
3031
|
var Dialog = DialogPrimitive.Root;
|
|
3073
3032
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
3074
3033
|
var DialogPortal = DialogPrimitive.Portal;
|
|
3075
3034
|
var DialogClose = DialogPrimitive.Close;
|
|
3076
|
-
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3035
|
+
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3077
3036
|
DialogPrimitive.Overlay,
|
|
3078
3037
|
{
|
|
3079
3038
|
ref,
|
|
@@ -3085,9 +3044,9 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3085
3044
|
}
|
|
3086
3045
|
));
|
|
3087
3046
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
3088
|
-
var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3089
|
-
/* @__PURE__ */ (0,
|
|
3090
|
-
/* @__PURE__ */ (0,
|
|
3047
|
+
var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPortal, { children: [
|
|
3048
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogOverlay, {}),
|
|
3049
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
3091
3050
|
DialogPrimitive.Content,
|
|
3092
3051
|
{
|
|
3093
3052
|
ref,
|
|
@@ -3098,20 +3057,20 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
3098
3057
|
...props,
|
|
3099
3058
|
children: [
|
|
3100
3059
|
children,
|
|
3101
|
-
/* @__PURE__ */ (0,
|
|
3102
|
-
/* @__PURE__ */ (0,
|
|
3103
|
-
/* @__PURE__ */ (0,
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
|
|
3062
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3104
3063
|
] })
|
|
3105
3064
|
]
|
|
3106
3065
|
}
|
|
3107
3066
|
)
|
|
3108
3067
|
] }));
|
|
3109
3068
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
3110
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3069
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
3111
3070
|
DialogHeader.displayName = "DialogHeader";
|
|
3112
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3071
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
3113
3072
|
DialogFooter.displayName = "DialogFooter";
|
|
3114
|
-
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3073
|
+
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3115
3074
|
DialogPrimitive.Title,
|
|
3116
3075
|
{
|
|
3117
3076
|
ref,
|
|
@@ -3120,14 +3079,14 @@ var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3120
3079
|
}
|
|
3121
3080
|
));
|
|
3122
3081
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3123
|
-
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3082
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
3124
3083
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3125
3084
|
|
|
3126
3085
|
// src/components/ui/switch.tsx
|
|
3127
3086
|
var React12 = __toESM(require("react"), 1);
|
|
3128
3087
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
3129
|
-
var
|
|
3130
|
-
var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3088
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3089
|
+
var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3131
3090
|
SwitchPrimitives.Root,
|
|
3132
3091
|
{
|
|
3133
3092
|
className: cn(
|
|
@@ -3136,7 +3095,7 @@ var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3136
3095
|
),
|
|
3137
3096
|
...props,
|
|
3138
3097
|
ref,
|
|
3139
|
-
children: /* @__PURE__ */ (0,
|
|
3098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3140
3099
|
SwitchPrimitives.Thumb,
|
|
3141
3100
|
{
|
|
3142
3101
|
className: cn(
|
|
@@ -4810,6 +4769,47 @@ function useTelescupAssets(options) {
|
|
|
4810
4769
|
};
|
|
4811
4770
|
}
|
|
4812
4771
|
|
|
4772
|
+
// src/components/cupcode/TelescupImage.tsx
|
|
4773
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
4774
|
+
var TelescupImage = ({
|
|
4775
|
+
apiId,
|
|
4776
|
+
imageWidth,
|
|
4777
|
+
imageHeight,
|
|
4778
|
+
fit = "cover",
|
|
4779
|
+
format = "avif",
|
|
4780
|
+
quality = 60,
|
|
4781
|
+
lang = "pt-BR",
|
|
4782
|
+
alt,
|
|
4783
|
+
title,
|
|
4784
|
+
loading = "lazy",
|
|
4785
|
+
className,
|
|
4786
|
+
...props
|
|
4787
|
+
}) => {
|
|
4788
|
+
const { url, meta } = useTelescupImage(
|
|
4789
|
+
{
|
|
4790
|
+
id: apiId,
|
|
4791
|
+
width: imageWidth,
|
|
4792
|
+
height: imageHeight,
|
|
4793
|
+
fit,
|
|
4794
|
+
format,
|
|
4795
|
+
quality
|
|
4796
|
+
},
|
|
4797
|
+
lang
|
|
4798
|
+
);
|
|
4799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4800
|
+
"img",
|
|
4801
|
+
{
|
|
4802
|
+
src: url,
|
|
4803
|
+
"data-api-id": apiId,
|
|
4804
|
+
alt: alt || meta.alt || "",
|
|
4805
|
+
title: title || meta.title,
|
|
4806
|
+
loading,
|
|
4807
|
+
className,
|
|
4808
|
+
...props
|
|
4809
|
+
}
|
|
4810
|
+
);
|
|
4811
|
+
};
|
|
4812
|
+
|
|
4813
4813
|
// src/components/cupcode/TelescupVideo.tsx
|
|
4814
4814
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
4815
4815
|
var TelescupVideo = ({
|
|
@@ -6793,7 +6793,9 @@ var applyThemePreference = (preference) => {
|
|
|
6793
6793
|
const appliedMode = resolveAppliedThemeMode(preference);
|
|
6794
6794
|
root.classList.toggle("dark", appliedMode === "dark");
|
|
6795
6795
|
root.classList.toggle("light", appliedMode === "light");
|
|
6796
|
+
root.dataset.theme = appliedMode;
|
|
6796
6797
|
root.dataset.cupcodeTheme = preference;
|
|
6798
|
+
root.style.colorScheme = appliedMode;
|
|
6797
6799
|
if (typeof window === "undefined") return;
|
|
6798
6800
|
try {
|
|
6799
6801
|
window.localStorage.setItem(THEME_PREFERENCE_STORAGE_KEY, preference);
|
|
@@ -23076,6 +23078,7 @@ var DATE_WITH_YEAR_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", {
|
|
|
23076
23078
|
year: "numeric"
|
|
23077
23079
|
});
|
|
23078
23080
|
var CHAT_FEATURE_FLAGS_STORAGE_KEY = "cc_chat_feature_flags";
|
|
23081
|
+
var DEFAULT_LOGO_SLOT_CLASS_NAME = "h-10 w-[175px] shrink-0";
|
|
23079
23082
|
var getDefaultChatFeatureFlags = () => ({
|
|
23080
23083
|
hasReadAt: true,
|
|
23081
23084
|
hasReplyToMessage: true,
|
|
@@ -24877,30 +24880,7 @@ var MainNavbar = ({
|
|
|
24877
24880
|
}, [currentPathname, onNavigate, showNavItems]);
|
|
24878
24881
|
const resolvedLogo = (0, import_react18.useMemo)(() => {
|
|
24879
24882
|
if (logo !== void 0) return logo;
|
|
24880
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.
|
|
24881
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
24882
|
-
TelescupImage,
|
|
24883
|
-
{
|
|
24884
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
24885
|
-
imageWidth: 40,
|
|
24886
|
-
imageHeight: 40,
|
|
24887
|
-
alt: "Design System Cupcode",
|
|
24888
|
-
loading: "eager",
|
|
24889
|
-
className: "h-10 w-auto"
|
|
24890
|
-
}
|
|
24891
|
-
),
|
|
24892
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
24893
|
-
TelescupImage,
|
|
24894
|
-
{
|
|
24895
|
-
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
24896
|
-
imageWidth: 120,
|
|
24897
|
-
imageHeight: 32,
|
|
24898
|
-
alt: "Cupcode",
|
|
24899
|
-
loading: "eager",
|
|
24900
|
-
className: "h-8 w-auto"
|
|
24901
|
-
}
|
|
24902
|
-
)
|
|
24903
|
-
] });
|
|
24883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: DEFAULT_LOGO_SLOT_CLASS_NAME, "aria-hidden": "true" });
|
|
24904
24884
|
}, [logo]);
|
|
24905
24885
|
const handleCtaClick = () => {
|
|
24906
24886
|
if (onNavigate) {
|
|
@@ -25192,48 +25172,6 @@ var import_lucide_react10 = require("lucide-react");
|
|
|
25192
25172
|
var import_react19 = require("react");
|
|
25193
25173
|
var import_react_router_dom = require("react-router-dom");
|
|
25194
25174
|
|
|
25195
|
-
// src/components/layout/DsNavbarLogo.tsx
|
|
25196
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
25197
|
-
var DsNavbarLogo = () => {
|
|
25198
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center gap-[15px]", children: [
|
|
25199
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25200
|
-
TelescupImage,
|
|
25201
|
-
{
|
|
25202
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
25203
|
-
imageWidth: 40,
|
|
25204
|
-
imageHeight: 40,
|
|
25205
|
-
alt: "Design System Cupcode",
|
|
25206
|
-
loading: "eager",
|
|
25207
|
-
className: "h-10 w-auto"
|
|
25208
|
-
}
|
|
25209
|
-
),
|
|
25210
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25211
|
-
TelescupImage,
|
|
25212
|
-
{
|
|
25213
|
-
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
25214
|
-
imageWidth: 120,
|
|
25215
|
-
imageHeight: 32,
|
|
25216
|
-
alt: "Cupcode",
|
|
25217
|
-
loading: "eager",
|
|
25218
|
-
className: "h-8 w-auto"
|
|
25219
|
-
}
|
|
25220
|
-
)
|
|
25221
|
-
] });
|
|
25222
|
-
};
|
|
25223
|
-
var DsNavbarCompactLogo = () => {
|
|
25224
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25225
|
-
TelescupImage,
|
|
25226
|
-
{
|
|
25227
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
25228
|
-
imageWidth: 32,
|
|
25229
|
-
imageHeight: 32,
|
|
25230
|
-
alt: "Cupcode",
|
|
25231
|
-
loading: "eager",
|
|
25232
|
-
className: "h-8 w-8 rounded-lg object-contain"
|
|
25233
|
-
}
|
|
25234
|
-
);
|
|
25235
|
-
};
|
|
25236
|
-
|
|
25237
25175
|
// src/components/layout/sidebar-groups.tsx
|
|
25238
25176
|
var toStableId = (value) => value.toLowerCase().normalize("NFD").replace(/\p{Diacritic}+/gu, "").replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)+/g, "");
|
|
25239
25177
|
var getGroupMetadata = (item) => {
|
|
@@ -25278,13 +25216,15 @@ var buildSidebarGroupsFromNavItems = (items, defaultGroupLabel = "Principal") =>
|
|
|
25278
25216
|
var defaultSidebarGroups = buildSidebarGroupsFromNavItems(getMainNavItems());
|
|
25279
25217
|
|
|
25280
25218
|
// src/components/layout/sidebar.tsx
|
|
25281
|
-
var
|
|
25219
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
25282
25220
|
var findGroupByRoute = (groups, pathname) => {
|
|
25283
25221
|
var _a78, _b7;
|
|
25284
25222
|
return (_b7 = (_a78 = groups.find((group) => group.items.some((item) => item.route === pathname))) == null ? void 0 : _a78.label) != null ? _b7 : null;
|
|
25285
25223
|
};
|
|
25286
|
-
var IconFallback = () => /* @__PURE__ */ (0,
|
|
25287
|
-
var
|
|
25224
|
+
var IconFallback = () => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react10.Circle, { className: "h-3 w-3 opacity-80", "aria-hidden": "true" });
|
|
25225
|
+
var DEFAULT_EXPANDED_LOGO_SLOT = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "h-10 w-[175px] shrink-0", "aria-hidden": "true" });
|
|
25226
|
+
var DEFAULT_COLLAPSED_LOGO_SLOT = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "h-8 w-8 shrink-0 rounded-lg", "aria-hidden": "true" });
|
|
25227
|
+
var IconSlot = ({ icon, className }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: cn("inline-flex items-center justify-center [&>svg]:h-4 [&>svg]:w-4", className), children: icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IconFallback, {}) });
|
|
25288
25228
|
var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
25289
25229
|
const location = (0, import_react_router_dom.useLocation)();
|
|
25290
25230
|
const navScrollRef = (0, import_react19.useRef)(null);
|
|
@@ -25305,8 +25245,8 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25305
25245
|
})).filter((group) => group.items.length > 0);
|
|
25306
25246
|
}, [normalizedQuery, resolvedGroups]);
|
|
25307
25247
|
const visibleGroups = isCollapsed ? resolvedGroups : filteredGroups;
|
|
25308
|
-
const resolvedExpandedLogo = logo != null ? logo :
|
|
25309
|
-
const resolvedCollapsedLogo = collapsedLogo != null ? collapsedLogo :
|
|
25248
|
+
const resolvedExpandedLogo = logo != null ? logo : DEFAULT_EXPANDED_LOGO_SLOT;
|
|
25249
|
+
const resolvedCollapsedLogo = collapsedLogo != null ? collapsedLogo : DEFAULT_COLLAPSED_LOGO_SLOT;
|
|
25310
25250
|
(0, import_react19.useEffect)(() => {
|
|
25311
25251
|
if (!openGroup && resolvedGroups.length > 0) {
|
|
25312
25252
|
setOpenGroup(resolvedGroups[0].label);
|
|
@@ -25346,17 +25286,17 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25346
25286
|
window.cancelAnimationFrame(frame);
|
|
25347
25287
|
};
|
|
25348
25288
|
}, [location.pathname]);
|
|
25349
|
-
return /* @__PURE__ */ (0,
|
|
25289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25350
25290
|
import_framer_motion.motion.aside,
|
|
25351
25291
|
{
|
|
25352
25292
|
className: "fixed left-0 top-0 h-full z-30 p-2 overflow-hidden",
|
|
25353
25293
|
animate: { width: isCollapsed ? 76 : 320 },
|
|
25354
25294
|
transition: { duration: 0.25, ease: "easeInOut" },
|
|
25355
|
-
children: /* @__PURE__ */ (0,
|
|
25356
|
-
/* @__PURE__ */ (0,
|
|
25357
|
-
!isCollapsed ? /* @__PURE__ */ (0,
|
|
25358
|
-
/* @__PURE__ */ (0,
|
|
25359
|
-
/* @__PURE__ */ (0,
|
|
25295
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "h-full rounded-r-2xl border border-l-0 border-white/15 bg-background/40 p-3 shadow-[0_24px_44px_-30px_rgba(58,42,88,0.7)] backdrop-blur-xl [transform:translateZ(0)] flex flex-col overflow-hidden", children: [
|
|
25296
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("mb-3 flex min-h-11 items-center", isCollapsed ? "justify-center" : "justify-start px-1"), children: isCollapsed ? resolvedCollapsedLogo : resolvedExpandedLogo }),
|
|
25297
|
+
!isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative mb-3", children: [
|
|
25298
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react10.Search, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-ink/65" }),
|
|
25299
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25360
25300
|
"input",
|
|
25361
25301
|
{
|
|
25362
25302
|
type: "search",
|
|
@@ -25367,9 +25307,9 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25367
25307
|
}
|
|
25368
25308
|
)
|
|
25369
25309
|
] }) : null,
|
|
25370
|
-
/* @__PURE__ */ (0,
|
|
25310
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ref: navScrollRef, className: "cc-scrollbar cc-scrollbar-purple flex-1 overflow-y-auto overflow-x-hidden pr-1", children: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-col items-center gap-2", children: resolvedGroups.map((group) => {
|
|
25371
25311
|
const isActiveGroup = (activeGroup != null ? activeGroup : openGroup) === group.label;
|
|
25372
|
-
return /* @__PURE__ */ (0,
|
|
25312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25373
25313
|
"button",
|
|
25374
25314
|
{
|
|
25375
25315
|
type: "button",
|
|
@@ -25382,14 +25322,14 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25382
25322
|
isActiveGroup ? "bg-cupcode-purple shadow-md text-white" : "bg-white/10 hover:bg-[rgba(151,90,182,0.30)] text-ink"
|
|
25383
25323
|
),
|
|
25384
25324
|
"aria-label": `Abrir grupo ${group.label}`,
|
|
25385
|
-
children: /* @__PURE__ */ (0,
|
|
25325
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IconSlot, { icon: group.icon, className: cn("[&>svg]:h-5 [&>svg]:w-5", isActiveGroup && "text-white") })
|
|
25386
25326
|
},
|
|
25387
25327
|
group.id
|
|
25388
25328
|
);
|
|
25389
|
-
}) }) : /* @__PURE__ */ (0,
|
|
25329
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "space-y-2", children: visibleGroups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "rounded-xl bg-white/20 px-3 py-3 text-xs text-ink-muted", children: "Nenhum item encontrado." }) : visibleGroups.map((group) => {
|
|
25390
25330
|
const isOpen = openGroup === group.label;
|
|
25391
|
-
return /* @__PURE__ */ (0,
|
|
25392
|
-
/* @__PURE__ */ (0,
|
|
25331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("section", { className: "rounded-xl bg-white/14", children: [
|
|
25332
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
25393
25333
|
"button",
|
|
25394
25334
|
{
|
|
25395
25335
|
type: "button",
|
|
@@ -25397,13 +25337,13 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25397
25337
|
className: "flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors duration-200 hover:bg-[rgba(151,90,182,0.30)]",
|
|
25398
25338
|
"aria-expanded": isOpen,
|
|
25399
25339
|
children: [
|
|
25400
|
-
/* @__PURE__ */ (0,
|
|
25401
|
-
/* @__PURE__ */ (0,
|
|
25402
|
-
/* @__PURE__ */ (0,
|
|
25340
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IconSlot, { icon: group.icon, className: "h-8 w-8 rounded-xl bg-white/55 text-ink" }),
|
|
25341
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-[11px] font-semibold uppercase tracking-[0.12em] text-ink/80", children: group.label }),
|
|
25342
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react10.ChevronDown, { className: cn("ml-auto h-4 w-4 text-ink/65 transition-transform", isOpen && "rotate-90") })
|
|
25403
25343
|
]
|
|
25404
25344
|
}
|
|
25405
25345
|
),
|
|
25406
|
-
/* @__PURE__ */ (0,
|
|
25346
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_framer_motion.AnimatePresence, { initial: false, children: isOpen ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25407
25347
|
import_framer_motion.motion.div,
|
|
25408
25348
|
{
|
|
25409
25349
|
initial: { height: 0 },
|
|
@@ -25411,9 +25351,9 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25411
25351
|
exit: { height: 0 },
|
|
25412
25352
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
25413
25353
|
className: "overflow-hidden",
|
|
25414
|
-
children: /* @__PURE__ */ (0,
|
|
25354
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("nav", { className: "space-y-1 pb-2", children: group.items.map((item) => {
|
|
25415
25355
|
const isActive = location.pathname === item.route;
|
|
25416
|
-
return /* @__PURE__ */ (0,
|
|
25356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
25417
25357
|
import_react_router_dom.NavLink,
|
|
25418
25358
|
{
|
|
25419
25359
|
to: item.route,
|
|
@@ -25422,7 +25362,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25422
25362
|
isActive && "bg-white/40 font-medium text-ink"
|
|
25423
25363
|
),
|
|
25424
25364
|
children: [
|
|
25425
|
-
/* @__PURE__ */ (0,
|
|
25365
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
25426
25366
|
IconSlot,
|
|
25427
25367
|
{
|
|
25428
25368
|
icon: item.icon,
|
|
@@ -25432,7 +25372,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25432
25372
|
)
|
|
25433
25373
|
}
|
|
25434
25374
|
),
|
|
25435
|
-
/* @__PURE__ */ (0,
|
|
25375
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: cn("truncate", isActive && "font-medium"), children: item.label })
|
|
25436
25376
|
]
|
|
25437
25377
|
},
|
|
25438
25378
|
item.id
|
|
@@ -25448,7 +25388,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25448
25388
|
};
|
|
25449
25389
|
|
|
25450
25390
|
// src/components/layout/main-layout.tsx
|
|
25451
|
-
var
|
|
25391
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
25452
25392
|
var SIDEBAR_COLLAPSED_WIDTH = 76;
|
|
25453
25393
|
var SIDEBAR_EXPANDED_WIDTH = 320;
|
|
25454
25394
|
var SIDEBAR_COLLAPSED_STORAGE_KEY = "cc-layout-sidebar-collapsed";
|
|
@@ -25487,8 +25427,8 @@ var MainLayout = ({
|
|
|
25487
25427
|
() => cn(navbarOffsetClassName, navbarProps == null ? void 0 : navbarProps.className),
|
|
25488
25428
|
[navbarOffsetClassName, navbarProps == null ? void 0 : navbarProps.className]
|
|
25489
25429
|
);
|
|
25490
|
-
return /* @__PURE__ */ (0,
|
|
25491
|
-
/* @__PURE__ */ (0,
|
|
25430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: cn("relative min-h-screen", className), children: [
|
|
25431
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25492
25432
|
AppSidebar,
|
|
25493
25433
|
{
|
|
25494
25434
|
isCollapsed: sidebarCollapsed,
|
|
@@ -25497,7 +25437,7 @@ var MainLayout = ({
|
|
|
25497
25437
|
collapsedLogo: sidebarCollapsedLogo
|
|
25498
25438
|
}
|
|
25499
25439
|
),
|
|
25500
|
-
/* @__PURE__ */ (0,
|
|
25440
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25501
25441
|
MainNavbar,
|
|
25502
25442
|
{
|
|
25503
25443
|
...navbarProps,
|
|
@@ -25505,7 +25445,7 @@ var MainLayout = ({
|
|
|
25505
25445
|
className: mergedNavbarClassName
|
|
25506
25446
|
}
|
|
25507
25447
|
),
|
|
25508
|
-
/* @__PURE__ */ (0,
|
|
25448
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25509
25449
|
"div",
|
|
25510
25450
|
{
|
|
25511
25451
|
className: "fixed z-[210]",
|
|
@@ -25513,14 +25453,14 @@ var MainLayout = ({
|
|
|
25513
25453
|
left: contentMarginLeft - 22,
|
|
25514
25454
|
top: "calc(max(env(safe-area-inset-top), 0px) + 18px)"
|
|
25515
25455
|
},
|
|
25516
|
-
children: /* @__PURE__ */ (0,
|
|
25456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25517
25457
|
"button",
|
|
25518
25458
|
{
|
|
25519
25459
|
type: "button",
|
|
25520
25460
|
onClick: toggleSidebar,
|
|
25521
25461
|
"aria-label": sidebarCollapsed ? "Expandir sidebar" : "Recolher sidebar",
|
|
25522
25462
|
className: "inline-flex h-20 w-11 items-center justify-center rounded-[22px] border border-white/20 bg-[hsla(258,34%,34%,0.4)] text-white/90 shadow-[0_12px_28px_-16px_rgba(0,0,0,0.75)] backdrop-blur-xl transition-colors duration-200 hover:bg-[hsla(258,38%,38%,0.52)]",
|
|
25523
|
-
children: /* @__PURE__ */ (0,
|
|
25463
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25524
25464
|
import_lucide_react11.ChevronRight,
|
|
25525
25465
|
{
|
|
25526
25466
|
className: cn(
|
|
@@ -25533,7 +25473,7 @@ var MainLayout = ({
|
|
|
25533
25473
|
)
|
|
25534
25474
|
}
|
|
25535
25475
|
),
|
|
25536
|
-
/* @__PURE__ */ (0,
|
|
25476
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
25537
25477
|
"main",
|
|
25538
25478
|
{
|
|
25539
25479
|
className: cn("relative min-h-screen pt-24", contentClassName),
|
|
@@ -25550,7 +25490,7 @@ var MainLayout = ({
|
|
|
25550
25490
|
// src/components/cupcode/ErrorBoundary.tsx
|
|
25551
25491
|
var import_react21 = __toESM(require("react"), 1);
|
|
25552
25492
|
var import_lucide_react12 = require("lucide-react");
|
|
25553
|
-
var
|
|
25493
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
25554
25494
|
var ErrorBoundary = class extends import_react21.default.Component {
|
|
25555
25495
|
constructor(props) {
|
|
25556
25496
|
super(props);
|
|
@@ -25570,17 +25510,17 @@ var ErrorBoundary = class extends import_react21.default.Component {
|
|
|
25570
25510
|
if (this.props.fallback) {
|
|
25571
25511
|
return this.props.fallback;
|
|
25572
25512
|
}
|
|
25573
|
-
return /* @__PURE__ */ (0,
|
|
25574
|
-
/* @__PURE__ */ (0,
|
|
25575
|
-
/* @__PURE__ */ (0,
|
|
25576
|
-
/* @__PURE__ */ (0,
|
|
25577
|
-
this.state.error && /* @__PURE__ */ (0,
|
|
25578
|
-
/* @__PURE__ */ (0,
|
|
25579
|
-
/* @__PURE__ */ (0,
|
|
25513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "min-h-screen flex items-center justify-center p-6 bg-gradient-to-br from-cupcode-surface to-muted", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "max-w-md w-full glass rounded-xl p-8 text-center animate-scale-in", children: [
|
|
25514
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mb-6 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "p-4 rounded-full bg-destructive/10", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react12.AlertTriangle, { className: "w-12 h-12 text-destructive" }) }) }),
|
|
25515
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("h2", { className: "text-2xl font-display font-bold text-foreground mb-3", children: "Algo deu errado" }),
|
|
25516
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-muted-foreground mb-6", children: "Desculpe, encontramos um erro inesperado. Por favor, tente novamente." }),
|
|
25517
|
+
this.state.error && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("details", { className: "mb-6 text-left", children: [
|
|
25518
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("summary", { className: "cursor-pointer text-sm text-muted-foreground hover:text-foreground", children: "Detalhes t\xE9cnicos" }),
|
|
25519
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("pre", { className: "mt-2 p-3 bg-muted rounded-md text-xs overflow-x-auto", children: this.state.error.message })
|
|
25580
25520
|
] }),
|
|
25581
|
-
/* @__PURE__ */ (0,
|
|
25582
|
-
/* @__PURE__ */ (0,
|
|
25583
|
-
/* @__PURE__ */ (0,
|
|
25521
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex gap-3 justify-center", children: [
|
|
25522
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(JellyButton, { onClick: this.handleReset, variant: "primary", children: "Tentar novamente" }),
|
|
25523
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(JellyButton, { onClick: () => window.location.href = "/", variant: "secondary", children: "Ir para in\xEDcio" })
|
|
25584
25524
|
] })
|
|
25585
25525
|
] }) });
|
|
25586
25526
|
}
|
|
@@ -25590,7 +25530,7 @@ var ErrorBoundary = class extends import_react21.default.Component {
|
|
|
25590
25530
|
|
|
25591
25531
|
// src/components/cupcode/EyebrowCupcode.tsx
|
|
25592
25532
|
var import_react22 = require("react");
|
|
25593
|
-
var
|
|
25533
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
25594
25534
|
var Eyebrow = (0, import_react22.forwardRef)(
|
|
25595
25535
|
({ variant = "galaxy", glow = false, className, children, ...props }, ref) => {
|
|
25596
25536
|
const baseClasses = cn(
|
|
@@ -25606,7 +25546,7 @@ var Eyebrow = (0, import_react22.forwardRef)(
|
|
|
25606
25546
|
purple: "bg-cupcode-purple text-white shadow-[0_0_20px_rgba(124,91,187,0.4)]",
|
|
25607
25547
|
outline: "border-2 border-cupcode-purple text-cupcode-purple bg-transparent"
|
|
25608
25548
|
};
|
|
25609
|
-
return /* @__PURE__ */ (0,
|
|
25549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
25610
25550
|
"div",
|
|
25611
25551
|
{
|
|
25612
25552
|
ref,
|
|
@@ -25620,7 +25560,7 @@ var Eyebrow = (0, import_react22.forwardRef)(
|
|
|
25620
25560
|
Eyebrow.displayName = "Eyebrow";
|
|
25621
25561
|
|
|
25622
25562
|
// src/components/cupcode/HeroTitle.tsx
|
|
25623
|
-
var
|
|
25563
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
25624
25564
|
var HeroTitle = ({
|
|
25625
25565
|
eyebrow,
|
|
25626
25566
|
smallPrefix,
|
|
@@ -25634,25 +25574,25 @@ var HeroTitle = ({
|
|
|
25634
25574
|
3: "h3"
|
|
25635
25575
|
};
|
|
25636
25576
|
const Tag = headingTagMap[level];
|
|
25637
|
-
return /* @__PURE__ */ (0,
|
|
25638
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
25639
|
-
/* @__PURE__ */ (0,
|
|
25640
|
-
smallPrefix && /* @__PURE__ */ (0,
|
|
25641
|
-
/* @__PURE__ */ (0,
|
|
25577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("space-y-3", className), children: [
|
|
25578
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "span-destaque animate-fade-in", children: eyebrow }),
|
|
25579
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Tag, { className: "font-display font-bold leading-tight animate-slide-up", children: [
|
|
25580
|
+
smallPrefix && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("small", { className: "block text-base font-normal opacity-70 mb-1", children: smallPrefix }),
|
|
25581
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("b", { className: "block bg-gradient-to-r from-cupcode-hover to-cupcode-purple bg-clip-text text-transparent", children: strong })
|
|
25642
25582
|
] })
|
|
25643
25583
|
] });
|
|
25644
25584
|
};
|
|
25645
25585
|
|
|
25646
25586
|
// src/components/cupcode/InputField.tsx
|
|
25647
25587
|
var React25 = __toESM(require("react"), 1);
|
|
25648
|
-
var
|
|
25588
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
25649
25589
|
var InputField = React25.forwardRef(
|
|
25650
25590
|
({ className, type, label, error, leftIcon, rightIcon, ...props }, ref) => {
|
|
25651
|
-
return /* @__PURE__ */ (0,
|
|
25652
|
-
label && /* @__PURE__ */ (0,
|
|
25653
|
-
/* @__PURE__ */ (0,
|
|
25654
|
-
leftIcon && /* @__PURE__ */ (0,
|
|
25655
|
-
/* @__PURE__ */ (0,
|
|
25591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "cc-stack space-2 w-full", children: [
|
|
25592
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25593
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative", children: [
|
|
25594
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-cupcode-purple opacity-60", children: leftIcon }),
|
|
25595
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
25656
25596
|
"input",
|
|
25657
25597
|
{
|
|
25658
25598
|
type,
|
|
@@ -25674,16 +25614,16 @@ var InputField = React25.forwardRef(
|
|
|
25674
25614
|
...props
|
|
25675
25615
|
}
|
|
25676
25616
|
),
|
|
25677
|
-
rightIcon && /* @__PURE__ */ (0,
|
|
25617
|
+
rightIcon && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-cupcode-purple opacity-60", children: rightIcon })
|
|
25678
25618
|
] }),
|
|
25679
|
-
error && /* @__PURE__ */ (0,
|
|
25619
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
25680
25620
|
] });
|
|
25681
25621
|
}
|
|
25682
25622
|
);
|
|
25683
25623
|
InputField.displayName = "InputField";
|
|
25684
25624
|
|
|
25685
25625
|
// src/components/cupcode/LoadingSpinner.tsx
|
|
25686
|
-
var
|
|
25626
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
25687
25627
|
var sizes = {
|
|
25688
25628
|
sm: "h-4 w-4 border-2",
|
|
25689
25629
|
md: "h-8 w-8 border-3",
|
|
@@ -25693,7 +25633,7 @@ var LoadingSpinner = ({
|
|
|
25693
25633
|
size = "md",
|
|
25694
25634
|
className
|
|
25695
25635
|
}) => {
|
|
25696
|
-
return /* @__PURE__ */ (0,
|
|
25636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
25697
25637
|
"div",
|
|
25698
25638
|
{
|
|
25699
25639
|
className: cn(
|
|
@@ -25703,12 +25643,12 @@ var LoadingSpinner = ({
|
|
|
25703
25643
|
),
|
|
25704
25644
|
role: "status",
|
|
25705
25645
|
"aria-label": "Loading",
|
|
25706
|
-
children: /* @__PURE__ */ (0,
|
|
25646
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "Loading..." })
|
|
25707
25647
|
}
|
|
25708
25648
|
);
|
|
25709
25649
|
};
|
|
25710
25650
|
var Skeleton2 = ({ className }) => {
|
|
25711
|
-
return /* @__PURE__ */ (0,
|
|
25651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
25712
25652
|
"div",
|
|
25713
25653
|
{
|
|
25714
25654
|
className: cn(
|
|
@@ -25719,7 +25659,7 @@ var Skeleton2 = ({ className }) => {
|
|
|
25719
25659
|
);
|
|
25720
25660
|
};
|
|
25721
25661
|
var SkeletonText = ({ lines = 3 }) => {
|
|
25722
|
-
return /* @__PURE__ */ (0,
|
|
25662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "space-y-2", children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
25723
25663
|
Skeleton2,
|
|
25724
25664
|
{
|
|
25725
25665
|
className: cn(
|
|
@@ -25732,7 +25672,7 @@ var SkeletonText = ({ lines = 3 }) => {
|
|
|
25732
25672
|
};
|
|
25733
25673
|
|
|
25734
25674
|
// src/components/cupcode/LoadingScreen.tsx
|
|
25735
|
-
var
|
|
25675
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
25736
25676
|
var LoadingScreen = ({
|
|
25737
25677
|
message = "Carregando...",
|
|
25738
25678
|
fullScreen = true,
|
|
@@ -25740,28 +25680,28 @@ var LoadingScreen = ({
|
|
|
25740
25680
|
}) => {
|
|
25741
25681
|
const containerClasses = fullScreen ? "fixed inset-0 z-50 flex items-center justify-center bg-background" : "flex items-center justify-center p-12";
|
|
25742
25682
|
if (variant === "minimal") {
|
|
25743
|
-
return /* @__PURE__ */ (0,
|
|
25683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: containerClasses, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingSpinner, { size: "lg" }) });
|
|
25744
25684
|
}
|
|
25745
25685
|
if (variant === "galaxy") {
|
|
25746
|
-
return /* @__PURE__ */ (0,
|
|
25747
|
-
/* @__PURE__ */ (0,
|
|
25748
|
-
/* @__PURE__ */ (0,
|
|
25749
|
-
/* @__PURE__ */ (0,
|
|
25686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn(containerClasses, "cc-gradient-galaxy"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "glass rounded-2xl p-8 flex flex-col items-center space-y-4 animate-scale-in", children: [
|
|
25687
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative", children: [
|
|
25688
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingSpinner, { size: "lg" }),
|
|
25689
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "absolute inset-0 blur-2xl bg-cupcode-hover/30 animate-pulse-scale" })
|
|
25750
25690
|
] }),
|
|
25751
|
-
message && /* @__PURE__ */ (0,
|
|
25691
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-white font-semibold text-lg animate-pulse", children: message })
|
|
25752
25692
|
] }) });
|
|
25753
25693
|
}
|
|
25754
|
-
return /* @__PURE__ */ (0,
|
|
25755
|
-
/* @__PURE__ */ (0,
|
|
25756
|
-
/* @__PURE__ */ (0,
|
|
25757
|
-
/* @__PURE__ */ (0,
|
|
25694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: containerClasses, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "glass rounded-2xl p-8 flex flex-col items-center space-y-6 animate-scale-in max-w-sm", children: [
|
|
25695
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative", children: [
|
|
25696
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-20 h-20 rounded-full cc-gradient-animated flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-16 h-16 rounded-full bg-background flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingSpinner, { size: "md" }) }) }),
|
|
25697
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "absolute inset-0 blur-xl bg-cupcode-purple/20 animate-pulse-scale -z-10" })
|
|
25758
25698
|
] }),
|
|
25759
|
-
message && /* @__PURE__ */ (0,
|
|
25760
|
-
/* @__PURE__ */ (0,
|
|
25761
|
-
/* @__PURE__ */ (0,
|
|
25762
|
-
/* @__PURE__ */ (0,
|
|
25763
|
-
/* @__PURE__ */ (0,
|
|
25764
|
-
/* @__PURE__ */ (0,
|
|
25699
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "text-center space-y-2", children: [
|
|
25700
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-bold text-lg cc-text-gradient-galaxy", children: message }),
|
|
25701
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-1 justify-center", children: [
|
|
25702
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-2 h-2 rounded-full bg-cupcode-hover animate-bounce", style: { animationDelay: "0ms" } }),
|
|
25703
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-2 h-2 rounded-full bg-cupcode-purple animate-bounce", style: { animationDelay: "150ms" } }),
|
|
25704
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-2 h-2 rounded-full bg-cupcode-hover animate-bounce", style: { animationDelay: "300ms" } })
|
|
25765
25705
|
] })
|
|
25766
25706
|
] })
|
|
25767
25707
|
] }) });
|
|
@@ -25771,12 +25711,12 @@ var LoadingScreen = ({
|
|
|
25771
25711
|
var React26 = __toESM(require("react"), 1);
|
|
25772
25712
|
var DialogPrimitive3 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
25773
25713
|
var import_lucide_react13 = require("lucide-react");
|
|
25774
|
-
var
|
|
25714
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
25775
25715
|
var Modal = DialogPrimitive3.Root;
|
|
25776
25716
|
var ModalTrigger = DialogPrimitive3.Trigger;
|
|
25777
25717
|
var ModalPortal = DialogPrimitive3.Portal;
|
|
25778
25718
|
var ModalClose = DialogPrimitive3.Close;
|
|
25779
|
-
var ModalOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
25719
|
+
var ModalOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
25780
25720
|
DialogPrimitive3.Overlay,
|
|
25781
25721
|
{
|
|
25782
25722
|
ref,
|
|
@@ -25796,9 +25736,9 @@ var ModalContent = React26.forwardRef(({ className, children, size = "md", ...pr
|
|
|
25796
25736
|
lg: "max-w-lg",
|
|
25797
25737
|
xl: "max-w-xl"
|
|
25798
25738
|
};
|
|
25799
|
-
return /* @__PURE__ */ (0,
|
|
25800
|
-
/* @__PURE__ */ (0,
|
|
25801
|
-
/* @__PURE__ */ (0,
|
|
25739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(ModalPortal, { children: [
|
|
25740
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ModalOverlay, {}),
|
|
25741
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
25802
25742
|
DialogPrimitive3.Content,
|
|
25803
25743
|
{
|
|
25804
25744
|
ref,
|
|
@@ -25813,9 +25753,9 @@ var ModalContent = React26.forwardRef(({ className, children, size = "md", ...pr
|
|
|
25813
25753
|
...props,
|
|
25814
25754
|
children: [
|
|
25815
25755
|
children,
|
|
25816
|
-
/* @__PURE__ */ (0,
|
|
25817
|
-
/* @__PURE__ */ (0,
|
|
25818
|
-
/* @__PURE__ */ (0,
|
|
25756
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(DialogPrimitive3.Close, { className: "absolute right-4 top-4 rounded-md p-1 opacity-70 ring-offset-background transition-opacity hover:opacity-100 hover:bg-cupcode-ink/10 focus:outline-none focus:ring-2 focus:ring-cupcode-purple focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
25757
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react13.X, { className: "h-4 w-4" }),
|
|
25758
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "Close" })
|
|
25819
25759
|
] })
|
|
25820
25760
|
]
|
|
25821
25761
|
}
|
|
@@ -25826,7 +25766,7 @@ ModalContent.displayName = DialogPrimitive3.Content.displayName;
|
|
|
25826
25766
|
var ModalHeader = ({
|
|
25827
25767
|
className,
|
|
25828
25768
|
...props
|
|
25829
|
-
}) => /* @__PURE__ */ (0,
|
|
25769
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
25830
25770
|
"div",
|
|
25831
25771
|
{
|
|
25832
25772
|
className: cn("flex flex-col space-y-2 text-center sm:text-left mb-4", className),
|
|
@@ -25837,7 +25777,7 @@ ModalHeader.displayName = "ModalHeader";
|
|
|
25837
25777
|
var ModalFooter = ({
|
|
25838
25778
|
className,
|
|
25839
25779
|
...props
|
|
25840
|
-
}) => /* @__PURE__ */ (0,
|
|
25780
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
25841
25781
|
"div",
|
|
25842
25782
|
{
|
|
25843
25783
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 mt-6", className),
|
|
@@ -25845,7 +25785,7 @@ var ModalFooter = ({
|
|
|
25845
25785
|
}
|
|
25846
25786
|
);
|
|
25847
25787
|
ModalFooter.displayName = "ModalFooter";
|
|
25848
|
-
var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
25788
|
+
var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
25849
25789
|
DialogPrimitive3.Title,
|
|
25850
25790
|
{
|
|
25851
25791
|
ref,
|
|
@@ -25854,7 +25794,7 @@ var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
25854
25794
|
}
|
|
25855
25795
|
));
|
|
25856
25796
|
ModalTitle.displayName = DialogPrimitive3.Title.displayName;
|
|
25857
|
-
var ModalDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
25797
|
+
var ModalDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
25858
25798
|
DialogPrimitive3.Description,
|
|
25859
25799
|
{
|
|
25860
25800
|
ref,
|
|
@@ -25866,7 +25806,7 @@ ModalDescription.displayName = DialogPrimitive3.Description.displayName;
|
|
|
25866
25806
|
|
|
25867
25807
|
// src/components/cupcode/ParticleSystem.tsx
|
|
25868
25808
|
var import_react23 = require("react");
|
|
25869
|
-
var
|
|
25809
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
25870
25810
|
function ParticleSystem({
|
|
25871
25811
|
count: count2 = 50,
|
|
25872
25812
|
variant = "stars",
|
|
@@ -25938,7 +25878,7 @@ function ParticleSystem({
|
|
|
25938
25878
|
cancelAnimationFrame(animationId);
|
|
25939
25879
|
};
|
|
25940
25880
|
}, [count2, variant]);
|
|
25941
|
-
return /* @__PURE__ */ (0,
|
|
25881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
25942
25882
|
"canvas",
|
|
25943
25883
|
{
|
|
25944
25884
|
ref: canvasRef,
|
|
@@ -25949,7 +25889,7 @@ function ParticleSystem({
|
|
|
25949
25889
|
|
|
25950
25890
|
// src/components/cupcode/PricingCard.tsx
|
|
25951
25891
|
var import_lucide_react14 = require("lucide-react");
|
|
25952
|
-
var
|
|
25892
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
25953
25893
|
function PricingCard({
|
|
25954
25894
|
title,
|
|
25955
25895
|
price,
|
|
@@ -25961,7 +25901,7 @@ function PricingCard({
|
|
|
25961
25901
|
buttonText = "Escolher plano",
|
|
25962
25902
|
className
|
|
25963
25903
|
}) {
|
|
25964
|
-
return /* @__PURE__ */ (0,
|
|
25904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
25965
25905
|
CardGlass,
|
|
25966
25906
|
{
|
|
25967
25907
|
className: cn(
|
|
@@ -25971,17 +25911,17 @@ function PricingCard({
|
|
|
25971
25911
|
className
|
|
25972
25912
|
),
|
|
25973
25913
|
children: [
|
|
25974
|
-
highlighted && /* @__PURE__ */ (0,
|
|
25975
|
-
/* @__PURE__ */ (0,
|
|
25976
|
-
/* @__PURE__ */ (0,
|
|
25977
|
-
description && /* @__PURE__ */ (0,
|
|
25914
|
+
highlighted && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "bg-cupcode-purple text-white text-xs font-bold px-4 py-1 rounded-pill", children: "POPULAR" }) }),
|
|
25915
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "text-center mb-6", children: [
|
|
25916
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h3", { className: "text-2xl font-display font-bold text-foreground mb-2", children: title }),
|
|
25917
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-sm text-muted-foreground", children: description })
|
|
25978
25918
|
] }),
|
|
25979
|
-
/* @__PURE__ */ (0,
|
|
25980
|
-
/* @__PURE__ */ (0,
|
|
25981
|
-
/* @__PURE__ */ (0,
|
|
25919
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-center mb-8", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-baseline justify-center gap-2", children: [
|
|
25920
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-5xl font-display font-bold cc-text-gradient-galaxy", children: price }),
|
|
25921
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-muted-foreground", children: period })
|
|
25982
25922
|
] }) }),
|
|
25983
|
-
/* @__PURE__ */ (0,
|
|
25984
|
-
/* @__PURE__ */ (0,
|
|
25923
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("ul", { className: "space-3 mb-8", children: features.map((feature, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("li", { className: "flex items-start gap-3", children: [
|
|
25924
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
25985
25925
|
import_lucide_react14.Check,
|
|
25986
25926
|
{
|
|
25987
25927
|
className: cn(
|
|
@@ -25990,7 +25930,7 @@ function PricingCard({
|
|
|
25990
25930
|
)
|
|
25991
25931
|
}
|
|
25992
25932
|
),
|
|
25993
|
-
/* @__PURE__ */ (0,
|
|
25933
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
25994
25934
|
"span",
|
|
25995
25935
|
{
|
|
25996
25936
|
className: cn(
|
|
@@ -26001,7 +25941,7 @@ function PricingCard({
|
|
|
26001
25941
|
}
|
|
26002
25942
|
)
|
|
26003
25943
|
] }, index)) }),
|
|
26004
|
-
/* @__PURE__ */ (0,
|
|
25944
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
26005
25945
|
JellyButton,
|
|
26006
25946
|
{
|
|
26007
25947
|
onClick: onSelect,
|
|
@@ -26018,7 +25958,7 @@ function PricingCard({
|
|
|
26018
25958
|
// src/components/cupcode/ProgressCupcode.tsx
|
|
26019
25959
|
var React27 = __toESM(require("react"), 1);
|
|
26020
25960
|
var ProgressPrimitive2 = __toESM(require("@radix-ui/react-progress"), 1);
|
|
26021
|
-
var
|
|
25961
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
26022
25962
|
var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default", showLabel = false, size = "md", ...props }, ref) => {
|
|
26023
25963
|
const sizeClasses2 = {
|
|
26024
25964
|
sm: "h-2",
|
|
@@ -26032,15 +25972,15 @@ var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default
|
|
|
26032
25972
|
warning: "bg-warning",
|
|
26033
25973
|
error: "bg-destructive"
|
|
26034
25974
|
};
|
|
26035
|
-
return /* @__PURE__ */ (0,
|
|
26036
|
-
showLabel && /* @__PURE__ */ (0,
|
|
26037
|
-
/* @__PURE__ */ (0,
|
|
26038
|
-
/* @__PURE__ */ (0,
|
|
25975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "w-full space-y-2", children: [
|
|
25976
|
+
showLabel && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center justify-between text-sm", children: [
|
|
25977
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "font-semibold text-foreground", children: "Progresso" }),
|
|
25978
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
26039
25979
|
value,
|
|
26040
25980
|
"%"
|
|
26041
25981
|
] })
|
|
26042
25982
|
] }),
|
|
26043
|
-
/* @__PURE__ */ (0,
|
|
25983
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
26044
25984
|
ProgressPrimitive2.Root,
|
|
26045
25985
|
{
|
|
26046
25986
|
ref,
|
|
@@ -26050,7 +25990,7 @@ var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default
|
|
|
26050
25990
|
className
|
|
26051
25991
|
),
|
|
26052
25992
|
...props,
|
|
26053
|
-
children: /* @__PURE__ */ (0,
|
|
25993
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
26054
25994
|
ProgressPrimitive2.Indicator,
|
|
26055
25995
|
{
|
|
26056
25996
|
className: cn(
|
|
@@ -26068,7 +26008,7 @@ ProgressCupcode.displayName = "ProgressCupcode";
|
|
|
26068
26008
|
|
|
26069
26009
|
// src/components/cupcode/ScrollbarTheme.tsx
|
|
26070
26010
|
var React28 = __toESM(require("react"), 1);
|
|
26071
|
-
var
|
|
26011
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
26072
26012
|
var SCROLLBAR_COLOR_ATTR = "data-cc-scrollbar-color";
|
|
26073
26013
|
var SCROLLBAR_THEME_ATTR = "data-cc-scrollbar-theme";
|
|
26074
26014
|
var ScrollbarThemeProvider = ({
|
|
@@ -26107,7 +26047,7 @@ var ScrollbarThemeProvider = ({
|
|
|
26107
26047
|
return null;
|
|
26108
26048
|
};
|
|
26109
26049
|
var ScrollbarArea = React28.forwardRef(
|
|
26110
|
-
({ color = "purple", theme = "auto", className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26050
|
+
({ color = "purple", theme = "auto", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
26111
26051
|
"div",
|
|
26112
26052
|
{
|
|
26113
26053
|
ref,
|
|
@@ -26128,11 +26068,11 @@ ScrollbarArea.displayName = "ScrollbarArea";
|
|
|
26128
26068
|
var React29 = __toESM(require("react"), 1);
|
|
26129
26069
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
26130
26070
|
var import_lucide_react15 = require("lucide-react");
|
|
26131
|
-
var
|
|
26071
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
26132
26072
|
var Select2 = SelectPrimitive2.Root;
|
|
26133
26073
|
var SelectGroup2 = SelectPrimitive2.Group;
|
|
26134
26074
|
var SelectValue2 = SelectPrimitive2.Value;
|
|
26135
|
-
var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26075
|
+
var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
26136
26076
|
SelectPrimitive2.Trigger,
|
|
26137
26077
|
{
|
|
26138
26078
|
ref,
|
|
@@ -26150,12 +26090,12 @@ var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref)
|
|
|
26150
26090
|
...props,
|
|
26151
26091
|
children: [
|
|
26152
26092
|
children,
|
|
26153
|
-
/* @__PURE__ */ (0,
|
|
26093
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
26154
26094
|
]
|
|
26155
26095
|
}
|
|
26156
26096
|
));
|
|
26157
26097
|
SelectTrigger2.displayName = SelectPrimitive2.Trigger.displayName;
|
|
26158
|
-
var SelectContent2 = React29.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0,
|
|
26098
|
+
var SelectContent2 = React29.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
26159
26099
|
SelectPrimitive2.Content,
|
|
26160
26100
|
{
|
|
26161
26101
|
ref,
|
|
@@ -26172,7 +26112,7 @@ var SelectContent2 = React29.forwardRef(({ className, children, position = "popp
|
|
|
26172
26112
|
),
|
|
26173
26113
|
position,
|
|
26174
26114
|
...props,
|
|
26175
|
-
children: /* @__PURE__ */ (0,
|
|
26115
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
26176
26116
|
SelectPrimitive2.Viewport,
|
|
26177
26117
|
{
|
|
26178
26118
|
className: cn(
|
|
@@ -26185,7 +26125,7 @@ var SelectContent2 = React29.forwardRef(({ className, children, position = "popp
|
|
|
26185
26125
|
}
|
|
26186
26126
|
) }));
|
|
26187
26127
|
SelectContent2.displayName = SelectPrimitive2.Content.displayName;
|
|
26188
|
-
var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26128
|
+
var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
26189
26129
|
SelectPrimitive2.Item,
|
|
26190
26130
|
{
|
|
26191
26131
|
ref,
|
|
@@ -26198,8 +26138,8 @@ var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
26198
26138
|
),
|
|
26199
26139
|
...props,
|
|
26200
26140
|
children: [
|
|
26201
|
-
/* @__PURE__ */ (0,
|
|
26202
|
-
/* @__PURE__ */ (0,
|
|
26141
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react15.Check, { className: "h-4 w-4 text-cupcode-purple" }) }) }),
|
|
26142
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectPrimitive2.ItemText, { children })
|
|
26203
26143
|
]
|
|
26204
26144
|
}
|
|
26205
26145
|
));
|
|
@@ -26213,21 +26153,21 @@ var SelectField = ({
|
|
|
26213
26153
|
options,
|
|
26214
26154
|
disabled
|
|
26215
26155
|
}) => {
|
|
26216
|
-
return /* @__PURE__ */ (0,
|
|
26217
|
-
label && /* @__PURE__ */ (0,
|
|
26218
|
-
/* @__PURE__ */ (0,
|
|
26219
|
-
/* @__PURE__ */ (0,
|
|
26220
|
-
/* @__PURE__ */ (0,
|
|
26156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "cc-stack space-2 w-full", children: [
|
|
26157
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
26158
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Select2, { value, onValueChange, disabled, children: [
|
|
26159
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectTrigger2, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectValue2, { placeholder }) }),
|
|
26160
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectContent2, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectGroup2, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectItem2, { value: option.value, children: option.label }, option.value)) }) })
|
|
26221
26161
|
] }),
|
|
26222
|
-
error && /* @__PURE__ */ (0,
|
|
26162
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
26223
26163
|
] });
|
|
26224
26164
|
};
|
|
26225
26165
|
|
|
26226
26166
|
// src/components/cupcode/SwitchField.tsx
|
|
26227
26167
|
var React30 = __toESM(require("react"), 1);
|
|
26228
26168
|
var SwitchPrimitives2 = __toESM(require("@radix-ui/react-switch"), 1);
|
|
26229
|
-
var
|
|
26230
|
-
var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26169
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
26170
|
+
var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
26231
26171
|
SwitchPrimitives2.Root,
|
|
26232
26172
|
{
|
|
26233
26173
|
className: cn(
|
|
@@ -26242,7 +26182,7 @@ var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
26242
26182
|
),
|
|
26243
26183
|
...props,
|
|
26244
26184
|
ref,
|
|
26245
|
-
children: /* @__PURE__ */ (0,
|
|
26185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
26246
26186
|
SwitchPrimitives2.Thumb,
|
|
26247
26187
|
{
|
|
26248
26188
|
className: cn(
|
|
@@ -26258,21 +26198,21 @@ var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
26258
26198
|
));
|
|
26259
26199
|
Switch2.displayName = SwitchPrimitives2.Root.displayName;
|
|
26260
26200
|
var SwitchField = ({ label, description, ...props }) => {
|
|
26261
|
-
return /* @__PURE__ */ (0,
|
|
26262
|
-
/* @__PURE__ */ (0,
|
|
26263
|
-
label && /* @__PURE__ */ (0,
|
|
26264
|
-
description && /* @__PURE__ */ (0,
|
|
26201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center justify-between space-x-4", children: [
|
|
26202
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "cc-stack space-1 flex-1", children: [
|
|
26203
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink cursor-pointer", children: label }),
|
|
26204
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-xs text-muted-foreground", children: description })
|
|
26265
26205
|
] }),
|
|
26266
|
-
/* @__PURE__ */ (0,
|
|
26206
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Switch2, { ...props })
|
|
26267
26207
|
] });
|
|
26268
26208
|
};
|
|
26269
26209
|
|
|
26270
26210
|
// src/components/cupcode/TabsCupcode.tsx
|
|
26271
26211
|
var React31 = __toESM(require("react"), 1);
|
|
26272
26212
|
var TabsPrimitive2 = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
26273
|
-
var
|
|
26213
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
26274
26214
|
var Tabs2 = TabsPrimitive2.Root;
|
|
26275
|
-
var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26215
|
+
var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
26276
26216
|
TabsPrimitive2.List,
|
|
26277
26217
|
{
|
|
26278
26218
|
ref,
|
|
@@ -26285,7 +26225,7 @@ var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
26285
26225
|
}
|
|
26286
26226
|
));
|
|
26287
26227
|
TabsList2.displayName = TabsPrimitive2.List.displayName;
|
|
26288
|
-
var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26228
|
+
var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
26289
26229
|
TabsPrimitive2.Trigger,
|
|
26290
26230
|
{
|
|
26291
26231
|
ref,
|
|
@@ -26307,7 +26247,7 @@ var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
26307
26247
|
}
|
|
26308
26248
|
));
|
|
26309
26249
|
TabsTrigger2.displayName = TabsPrimitive2.Trigger.displayName;
|
|
26310
|
-
var TabsContent2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26250
|
+
var TabsContent2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
26311
26251
|
TabsPrimitive2.Content,
|
|
26312
26252
|
{
|
|
26313
26253
|
ref,
|
|
@@ -26324,12 +26264,12 @@ TabsContent2.displayName = TabsPrimitive2.Content.displayName;
|
|
|
26324
26264
|
|
|
26325
26265
|
// src/components/cupcode/TextareaField.tsx
|
|
26326
26266
|
var React32 = __toESM(require("react"), 1);
|
|
26327
|
-
var
|
|
26267
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
26328
26268
|
var TextareaField = React32.forwardRef(
|
|
26329
26269
|
({ className, label, error, ...props }, ref) => {
|
|
26330
|
-
return /* @__PURE__ */ (0,
|
|
26331
|
-
label && /* @__PURE__ */ (0,
|
|
26332
|
-
/* @__PURE__ */ (0,
|
|
26270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "cc-stack space-2 w-full", children: [
|
|
26271
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
26272
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
26333
26273
|
"textarea",
|
|
26334
26274
|
{
|
|
26335
26275
|
className: cn(
|
|
@@ -26349,7 +26289,7 @@ var TextareaField = React32.forwardRef(
|
|
|
26349
26289
|
...props
|
|
26350
26290
|
}
|
|
26351
26291
|
),
|
|
26352
|
-
error && /* @__PURE__ */ (0,
|
|
26292
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
26353
26293
|
] });
|
|
26354
26294
|
}
|
|
26355
26295
|
);
|
|
@@ -26358,7 +26298,7 @@ TextareaField.displayName = "TextareaField";
|
|
|
26358
26298
|
// src/components/cupcode/ThemeToggle.tsx
|
|
26359
26299
|
var React33 = __toESM(require("react"), 1);
|
|
26360
26300
|
var import_lucide_react16 = require("lucide-react");
|
|
26361
|
-
var
|
|
26301
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
26362
26302
|
var THEME_STORAGE_KEY2 = "cupcode-theme";
|
|
26363
26303
|
function isThemeMode(value) {
|
|
26364
26304
|
return value === "light" || value === "dark";
|
|
@@ -26386,13 +26326,25 @@ function applyThemeClass(theme) {
|
|
|
26386
26326
|
const root = document.documentElement;
|
|
26387
26327
|
root.classList.toggle("dark", theme === "dark");
|
|
26388
26328
|
root.classList.toggle("light", theme === "light");
|
|
26329
|
+
root.dataset.theme = theme;
|
|
26330
|
+
root.style.colorScheme = theme;
|
|
26331
|
+
}
|
|
26332
|
+
function readThemeFromRoot() {
|
|
26333
|
+
var _a78;
|
|
26334
|
+
if (typeof document === "undefined") return null;
|
|
26335
|
+
const root = document.documentElement;
|
|
26336
|
+
const datasetTheme = (_a78 = root.dataset.theme) != null ? _a78 : null;
|
|
26337
|
+
if (isThemeMode(datasetTheme)) return datasetTheme;
|
|
26338
|
+
if (root.classList.contains("dark")) return "dark";
|
|
26339
|
+
if (root.classList.contains("light")) return "light";
|
|
26340
|
+
return null;
|
|
26389
26341
|
}
|
|
26390
26342
|
function resolveTheme(defaultTheme) {
|
|
26343
|
+
const rootTheme = readThemeFromRoot();
|
|
26344
|
+
if (rootTheme) return rootTheme;
|
|
26391
26345
|
const storedTheme = readStoredTheme();
|
|
26392
26346
|
if (storedTheme) return storedTheme;
|
|
26393
26347
|
if (typeof document === "undefined") return defaultTheme;
|
|
26394
|
-
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
26395
|
-
if (document.documentElement.classList.contains("light")) return "light";
|
|
26396
26348
|
if (typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
26397
26349
|
return "dark";
|
|
26398
26350
|
}
|
|
@@ -26426,11 +26378,11 @@ var ThemeToggle2 = ({
|
|
|
26426
26378
|
const resolvedTheme = resolveTheme(defaultTheme);
|
|
26427
26379
|
setInternalTheme((currentTheme) => currentTheme === resolvedTheme ? currentTheme : resolvedTheme);
|
|
26428
26380
|
});
|
|
26429
|
-
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
|
26381
|
+
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class", "data-theme"] });
|
|
26430
26382
|
return () => observer.disconnect();
|
|
26431
26383
|
}, [defaultTheme, isControlled]);
|
|
26432
26384
|
if (!mounted) {
|
|
26433
|
-
return /* @__PURE__ */ (0,
|
|
26385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn("w-10 h-10 rounded-lg bg-muted", className) });
|
|
26434
26386
|
}
|
|
26435
26387
|
const handleToggle = () => {
|
|
26436
26388
|
const nextTheme = activeTheme === "dark" ? "light" : "dark";
|
|
@@ -26439,9 +26391,10 @@ var ThemeToggle2 = ({
|
|
|
26439
26391
|
}
|
|
26440
26392
|
onThemeChange == null ? void 0 : onThemeChange(nextTheme);
|
|
26441
26393
|
};
|
|
26442
|
-
return /* @__PURE__ */ (0,
|
|
26394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
26443
26395
|
"button",
|
|
26444
26396
|
{
|
|
26397
|
+
type: "button",
|
|
26445
26398
|
onClick: handleToggle,
|
|
26446
26399
|
className: cn(
|
|
26447
26400
|
"relative inline-flex items-center justify-center w-10 h-10",
|
|
@@ -26452,9 +26405,9 @@ var ThemeToggle2 = ({
|
|
|
26452
26405
|
),
|
|
26453
26406
|
"aria-label": "Toggle theme",
|
|
26454
26407
|
children: [
|
|
26455
|
-
/* @__PURE__ */ (0,
|
|
26456
|
-
/* @__PURE__ */ (0,
|
|
26457
|
-
/* @__PURE__ */ (0,
|
|
26408
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react16.Sun, { className: "h-5 w-5 text-cupcode-purple rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
26409
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react16.Moon, { className: "absolute h-5 w-5 text-cupcode-hover rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
26410
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: "sr-only", children: [
|
|
26458
26411
|
"Current theme: ",
|
|
26459
26412
|
activeTheme
|
|
26460
26413
|
] })
|
|
@@ -26466,7 +26419,7 @@ var ThemeToggle2 = ({
|
|
|
26466
26419
|
// src/components/theme-provider.tsx
|
|
26467
26420
|
var import_react24 = require("react");
|
|
26468
26421
|
var import_react_dom = require("react-dom");
|
|
26469
|
-
var
|
|
26422
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
26470
26423
|
var STORAGE_KEY2 = "cupcode-theme";
|
|
26471
26424
|
var LEGACY_STORAGE_KEY = "theme";
|
|
26472
26425
|
function getPreferredTheme() {
|
|
@@ -26483,6 +26436,27 @@ function getStoredTheme() {
|
|
|
26483
26436
|
const storedTheme = (_a78 = window.localStorage.getItem(STORAGE_KEY2)) != null ? _a78 : window.localStorage.getItem(LEGACY_STORAGE_KEY);
|
|
26484
26437
|
return storedTheme === "light" || storedTheme === "dark" ? storedTheme : null;
|
|
26485
26438
|
}
|
|
26439
|
+
function getThemeFromRoot() {
|
|
26440
|
+
if (typeof document === "undefined") {
|
|
26441
|
+
return null;
|
|
26442
|
+
}
|
|
26443
|
+
const { documentElement: root } = document;
|
|
26444
|
+
const datasetTheme = root.dataset.theme;
|
|
26445
|
+
if (datasetTheme === "light" || datasetTheme === "dark") {
|
|
26446
|
+
return datasetTheme;
|
|
26447
|
+
}
|
|
26448
|
+
if (root.classList.contains("dark")) {
|
|
26449
|
+
return "dark";
|
|
26450
|
+
}
|
|
26451
|
+
if (root.classList.contains("light")) {
|
|
26452
|
+
return "light";
|
|
26453
|
+
}
|
|
26454
|
+
return null;
|
|
26455
|
+
}
|
|
26456
|
+
function resolveTheme2() {
|
|
26457
|
+
var _a78, _b7;
|
|
26458
|
+
return (_b7 = (_a78 = getThemeFromRoot()) != null ? _a78 : getStoredTheme()) != null ? _b7 : getPreferredTheme();
|
|
26459
|
+
}
|
|
26486
26460
|
function applyThemeToRoot(theme) {
|
|
26487
26461
|
const root = document.documentElement;
|
|
26488
26462
|
root.classList.toggle("dark", theme === "dark");
|
|
@@ -26495,15 +26469,11 @@ function persistTheme(theme) {
|
|
|
26495
26469
|
window.localStorage.setItem(LEGACY_STORAGE_KEY, theme);
|
|
26496
26470
|
}
|
|
26497
26471
|
function ThemeProvider({ children }) {
|
|
26498
|
-
const [theme, setThemeState] = (0, import_react24.useState)(() =>
|
|
26499
|
-
var _a78;
|
|
26500
|
-
return (_a78 = getStoredTheme()) != null ? _a78 : getPreferredTheme();
|
|
26501
|
-
});
|
|
26472
|
+
const [theme, setThemeState] = (0, import_react24.useState)(() => resolveTheme2());
|
|
26502
26473
|
const [mounted, setMounted] = (0, import_react24.useState)(false);
|
|
26503
26474
|
(0, import_react24.useEffect)(() => {
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
setThemeState(initialTheme);
|
|
26475
|
+
const initialTheme = resolveTheme2();
|
|
26476
|
+
setThemeState((currentTheme) => currentTheme === initialTheme ? currentTheme : initialTheme);
|
|
26507
26477
|
applyThemeToRoot(initialTheme);
|
|
26508
26478
|
setMounted(true);
|
|
26509
26479
|
}, []);
|
|
@@ -26530,6 +26500,24 @@ function ThemeProvider({ children }) {
|
|
|
26530
26500
|
mediaQuery.addEventListener("change", handleChange);
|
|
26531
26501
|
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
26532
26502
|
}, []);
|
|
26503
|
+
(0, import_react24.useEffect)(() => {
|
|
26504
|
+
if (typeof document === "undefined") {
|
|
26505
|
+
return;
|
|
26506
|
+
}
|
|
26507
|
+
const root = document.documentElement;
|
|
26508
|
+
const observer = new MutationObserver(() => {
|
|
26509
|
+
const rootTheme = getThemeFromRoot();
|
|
26510
|
+
if (!rootTheme) {
|
|
26511
|
+
return;
|
|
26512
|
+
}
|
|
26513
|
+
setThemeState((currentTheme) => currentTheme === rootTheme ? currentTheme : rootTheme);
|
|
26514
|
+
});
|
|
26515
|
+
observer.observe(root, {
|
|
26516
|
+
attributes: true,
|
|
26517
|
+
attributeFilter: ["class", "data-theme"]
|
|
26518
|
+
});
|
|
26519
|
+
return () => observer.disconnect();
|
|
26520
|
+
}, []);
|
|
26533
26521
|
const setTheme = (0, import_react24.useCallback)((nextTheme) => {
|
|
26534
26522
|
setThemeState(nextTheme);
|
|
26535
26523
|
}, []);
|
|
@@ -26567,7 +26555,7 @@ function ThemeProvider({ children }) {
|
|
|
26567
26555
|
}),
|
|
26568
26556
|
[theme, setTheme, toggleTheme]
|
|
26569
26557
|
);
|
|
26570
|
-
return /* @__PURE__ */ (0,
|
|
26558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ThemeContext.Provider, { value, children });
|
|
26571
26559
|
}
|
|
26572
26560
|
function ThemeScript() {
|
|
26573
26561
|
const script = `
|
|
@@ -26588,15 +26576,15 @@ function ThemeScript() {
|
|
|
26588
26576
|
root.style.colorScheme = theme;
|
|
26589
26577
|
})();
|
|
26590
26578
|
`;
|
|
26591
|
-
return /* @__PURE__ */ (0,
|
|
26579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("script", { dangerouslySetInnerHTML: { __html: script } });
|
|
26592
26580
|
}
|
|
26593
26581
|
|
|
26594
26582
|
// src/components/cupcode/TimelineCupcode.tsx
|
|
26595
|
-
var
|
|
26583
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
26596
26584
|
function Timeline({ items, variant = "vertical", className }) {
|
|
26597
26585
|
if (variant === "horizontal") {
|
|
26598
|
-
return /* @__PURE__ */ (0,
|
|
26599
|
-
/* @__PURE__ */ (0,
|
|
26586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: cn("flex items-start gap-4 overflow-x-auto pb-4", className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col items-center min-w-[200px]", children: [
|
|
26587
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
26600
26588
|
"div",
|
|
26601
26589
|
{
|
|
26602
26590
|
className: cn(
|
|
@@ -26604,27 +26592,27 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26604
26592
|
"transition-all duration-300",
|
|
26605
26593
|
item.active ? "cc-gradient-galaxy text-white elevation-3 scale-110" : "bg-muted text-muted-foreground"
|
|
26606
26594
|
),
|
|
26607
|
-
children: item.icon || /* @__PURE__ */ (0,
|
|
26595
|
+
children: item.icon || /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-bold", children: index + 1 })
|
|
26608
26596
|
}
|
|
26609
26597
|
),
|
|
26610
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
26598
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: cn(
|
|
26611
26599
|
"h-1 w-full mb-3",
|
|
26612
26600
|
item.active ? "bg-cupcode-purple" : "bg-muted"
|
|
26613
26601
|
) }),
|
|
26614
|
-
/* @__PURE__ */ (0,
|
|
26615
|
-
/* @__PURE__ */ (0,
|
|
26602
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "text-center", children: [
|
|
26603
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h4", { className: cn(
|
|
26616
26604
|
"font-display font-semibold mb-1",
|
|
26617
26605
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
26618
26606
|
), children: item.title }),
|
|
26619
|
-
item.description && /* @__PURE__ */ (0,
|
|
26620
|
-
item.date && /* @__PURE__ */ (0,
|
|
26607
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-sm text-muted-foreground", children: item.description }),
|
|
26608
|
+
item.date && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-xs text-muted-foreground mt-1", children: item.date })
|
|
26621
26609
|
] })
|
|
26622
26610
|
] }, item.id)) });
|
|
26623
26611
|
}
|
|
26624
|
-
return /* @__PURE__ */ (0,
|
|
26625
|
-
/* @__PURE__ */ (0,
|
|
26626
|
-
items.map((item, index) => /* @__PURE__ */ (0,
|
|
26627
|
-
/* @__PURE__ */ (0,
|
|
26612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: cn("relative space-6", className), children: [
|
|
26613
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "absolute left-6 top-0 bottom-0 w-0.5 bg-muted" }),
|
|
26614
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "relative flex gap-6 pb-8 last:pb-0", children: [
|
|
26615
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
26628
26616
|
"div",
|
|
26629
26617
|
{
|
|
26630
26618
|
className: cn(
|
|
@@ -26632,16 +26620,16 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26632
26620
|
"transition-all duration-300",
|
|
26633
26621
|
item.active ? "cc-gradient-galaxy text-white elevation-3" : "bg-muted text-muted-foreground"
|
|
26634
26622
|
),
|
|
26635
|
-
children: item.icon || /* @__PURE__ */ (0,
|
|
26623
|
+
children: item.icon || /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-bold", children: index + 1 })
|
|
26636
26624
|
}
|
|
26637
26625
|
),
|
|
26638
|
-
/* @__PURE__ */ (0,
|
|
26639
|
-
/* @__PURE__ */ (0,
|
|
26626
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex-1 pt-1", children: [
|
|
26627
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h4", { className: cn(
|
|
26640
26628
|
"font-display font-semibold mb-1",
|
|
26641
26629
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
26642
26630
|
), children: item.title }),
|
|
26643
|
-
item.description && /* @__PURE__ */ (0,
|
|
26644
|
-
item.date && /* @__PURE__ */ (0,
|
|
26631
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-sm text-muted-foreground mb-2", children: item.description }),
|
|
26632
|
+
item.date && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-xs text-muted-foreground", children: item.date })
|
|
26645
26633
|
] })
|
|
26646
26634
|
] }, item.id))
|
|
26647
26635
|
] });
|
|
@@ -26649,7 +26637,7 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26649
26637
|
|
|
26650
26638
|
// src/components/cupcode/ToastCupcode.tsx
|
|
26651
26639
|
var import_lucide_react17 = require("lucide-react");
|
|
26652
|
-
var
|
|
26640
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
26653
26641
|
var variantStyles2 = {
|
|
26654
26642
|
success: {
|
|
26655
26643
|
gradient: "from-success/20 to-success/5",
|
|
@@ -26684,7 +26672,7 @@ var ToastCupcode = ({
|
|
|
26684
26672
|
}) => {
|
|
26685
26673
|
const style = variantStyles2[variant];
|
|
26686
26674
|
const Icon3 = style.icon;
|
|
26687
|
-
return /* @__PURE__ */ (0,
|
|
26675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
26688
26676
|
"div",
|
|
26689
26677
|
{
|
|
26690
26678
|
className: cn(
|
|
@@ -26696,18 +26684,18 @@ var ToastCupcode = ({
|
|
|
26696
26684
|
"min-w-[300px] max-w-[420px]",
|
|
26697
26685
|
"animate-slide-up"
|
|
26698
26686
|
),
|
|
26699
|
-
children: /* @__PURE__ */ (0,
|
|
26700
|
-
/* @__PURE__ */ (0,
|
|
26701
|
-
/* @__PURE__ */ (0,
|
|
26702
|
-
/* @__PURE__ */ (0,
|
|
26703
|
-
description && /* @__PURE__ */ (0,
|
|
26687
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
26688
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon3, { className: cn("h-5 w-5 shrink-0 mt-0.5", style.iconColor) }),
|
|
26689
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-1 space-y-1", children: [
|
|
26690
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-sm font-semibold text-cupcode-ink", children: title }),
|
|
26691
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-xs text-cupcode-ink/70", children: description })
|
|
26704
26692
|
] }),
|
|
26705
|
-
onClose && /* @__PURE__ */ (0,
|
|
26693
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
26706
26694
|
"button",
|
|
26707
26695
|
{
|
|
26708
26696
|
onClick: onClose,
|
|
26709
26697
|
className: "shrink-0 rounded-md p-1 hover:bg-cupcode-ink/10 transition-colors",
|
|
26710
|
-
children: /* @__PURE__ */ (0,
|
|
26698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react17.X, { className: "h-4 w-4 text-cupcode-ink/50" })
|
|
26711
26699
|
}
|
|
26712
26700
|
)
|
|
26713
26701
|
] })
|
|
@@ -26717,11 +26705,11 @@ var ToastCupcode = ({
|
|
|
26717
26705
|
|
|
26718
26706
|
// src/components/cupcode/VideoWatchButton.tsx
|
|
26719
26707
|
var import_react25 = __toESM(require("react"), 1);
|
|
26720
|
-
var
|
|
26721
|
-
var PlayGlyph = () => /* @__PURE__ */ (0,
|
|
26708
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
26709
|
+
var PlayGlyph = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { viewBox: "0 0 18 18", "aria-hidden": "true", className: "h-[18px] w-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M6 4.5L13.5 9L6 13.5V4.5Z", fill: "currentColor" }) });
|
|
26722
26710
|
var VideoWatchButton = import_react25.default.forwardRef(
|
|
26723
26711
|
({ className, label = "Assistir", type = "button", "aria-label": ariaLabel, ...props }, ref) => {
|
|
26724
|
-
return /* @__PURE__ */ (0,
|
|
26712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
26725
26713
|
"button",
|
|
26726
26714
|
{
|
|
26727
26715
|
ref,
|
|
@@ -26730,18 +26718,18 @@ var VideoWatchButton = import_react25.default.forwardRef(
|
|
|
26730
26718
|
className: cn("cc-video-watch-btn", className),
|
|
26731
26719
|
...props,
|
|
26732
26720
|
children: [
|
|
26733
|
-
/* @__PURE__ */ (0,
|
|
26734
|
-
/* @__PURE__ */ (0,
|
|
26735
|
-
/* @__PURE__ */ (0,
|
|
26736
|
-
/* @__PURE__ */ (0,
|
|
26737
|
-
/* @__PURE__ */ (0,
|
|
26738
|
-
/* @__PURE__ */ (0,
|
|
26739
|
-
/* @__PURE__ */ (0,
|
|
26740
|
-
/* @__PURE__ */ (0,
|
|
26741
|
-
/* @__PURE__ */ (0,
|
|
26721
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "cc-video-watch-btn__bg", children: [
|
|
26722
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__icon", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PlayGlyph, {}) }),
|
|
26723
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__label", children: label }),
|
|
26724
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "cc-video-watch-btn__mask", "aria-hidden": "true", children: [
|
|
26725
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--1" }),
|
|
26726
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--2" }),
|
|
26727
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--3" }),
|
|
26728
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--4" }),
|
|
26729
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--5" })
|
|
26742
26730
|
] })
|
|
26743
26731
|
] }),
|
|
26744
|
-
/* @__PURE__ */ (0,
|
|
26732
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "cc-video-watch-btn__glow", "aria-hidden": "true" })
|
|
26745
26733
|
]
|
|
26746
26734
|
}
|
|
26747
26735
|
);
|
|
@@ -26752,11 +26740,11 @@ VideoWatchButton.displayName = "VideoWatchButton";
|
|
|
26752
26740
|
// src/components/cupcode/TooltipCupcode.tsx
|
|
26753
26741
|
var React36 = __toESM(require("react"), 1);
|
|
26754
26742
|
var TooltipPrimitive2 = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
26755
|
-
var
|
|
26743
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
26756
26744
|
var TooltipProvider2 = TooltipPrimitive2.Provider;
|
|
26757
26745
|
var TooltipCupcode = TooltipPrimitive2.Root;
|
|
26758
26746
|
var TooltipTrigger2 = TooltipPrimitive2.Trigger;
|
|
26759
|
-
var TooltipContent2 = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26747
|
+
var TooltipContent2 = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
26760
26748
|
TooltipPrimitive2.Content,
|
|
26761
26749
|
{
|
|
26762
26750
|
ref,
|
|
@@ -26780,11 +26768,11 @@ TooltipContent2.displayName = TooltipPrimitive2.Content.displayName;
|
|
|
26780
26768
|
var React37 = __toESM(require("react"), 1);
|
|
26781
26769
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"), 1);
|
|
26782
26770
|
var import_lucide_react18 = require("lucide-react");
|
|
26783
|
-
var
|
|
26771
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
26784
26772
|
var Accordion = AccordionPrimitive2.Root;
|
|
26785
|
-
var AccordionItem2 = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26773
|
+
var AccordionItem2 = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionPrimitive2.Item, { ref, className: cn("border-b", className), ...props }));
|
|
26786
26774
|
AccordionItem2.displayName = "AccordionItem";
|
|
26787
|
-
var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26775
|
+
var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionPrimitive2.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
26788
26776
|
AccordionPrimitive2.Trigger,
|
|
26789
26777
|
{
|
|
26790
26778
|
ref,
|
|
@@ -26795,18 +26783,18 @@ var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, r
|
|
|
26795
26783
|
...props,
|
|
26796
26784
|
children: [
|
|
26797
26785
|
children,
|
|
26798
|
-
/* @__PURE__ */ (0,
|
|
26786
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react18.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
26799
26787
|
]
|
|
26800
26788
|
}
|
|
26801
26789
|
) }));
|
|
26802
26790
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
26803
|
-
var AccordionContent2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26791
|
+
var AccordionContent2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
26804
26792
|
AccordionPrimitive2.Content,
|
|
26805
26793
|
{
|
|
26806
26794
|
ref,
|
|
26807
26795
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
26808
26796
|
...props,
|
|
26809
|
-
children: /* @__PURE__ */ (0,
|
|
26797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: cn("pb-4 pt-0", className), children })
|
|
26810
26798
|
}
|
|
26811
26799
|
));
|
|
26812
26800
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
@@ -26814,7 +26802,7 @@ AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
|
26814
26802
|
// src/components/ui/alert.tsx
|
|
26815
26803
|
var React38 = __toESM(require("react"), 1);
|
|
26816
26804
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
26817
|
-
var
|
|
26805
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
26818
26806
|
var alertVariants = (0, import_class_variance_authority3.cva)(
|
|
26819
26807
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
26820
26808
|
{
|
|
@@ -26829,14 +26817,14 @@ var alertVariants = (0, import_class_variance_authority3.cva)(
|
|
|
26829
26817
|
}
|
|
26830
26818
|
}
|
|
26831
26819
|
);
|
|
26832
|
-
var Alert = React38.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26820
|
+
var Alert = React38.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
26833
26821
|
Alert.displayName = "Alert";
|
|
26834
26822
|
var AlertTitle = React38.forwardRef(
|
|
26835
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26823
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
26836
26824
|
);
|
|
26837
26825
|
AlertTitle.displayName = "AlertTitle";
|
|
26838
26826
|
var AlertDescription = React38.forwardRef(
|
|
26839
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26827
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
26840
26828
|
);
|
|
26841
26829
|
AlertDescription.displayName = "AlertDescription";
|
|
26842
26830
|
|
|
@@ -26848,11 +26836,11 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
26848
26836
|
var React39 = __toESM(require("react"), 1);
|
|
26849
26837
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
26850
26838
|
var import_lucide_react19 = require("lucide-react");
|
|
26851
|
-
var
|
|
26852
|
-
var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
26839
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
26840
|
+
var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
26853
26841
|
Breadcrumb.displayName = "Breadcrumb";
|
|
26854
26842
|
var BreadcrumbList = React39.forwardRef(
|
|
26855
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26843
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
26856
26844
|
"ol",
|
|
26857
26845
|
{
|
|
26858
26846
|
ref,
|
|
@@ -26866,16 +26854,16 @@ var BreadcrumbList = React39.forwardRef(
|
|
|
26866
26854
|
);
|
|
26867
26855
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
26868
26856
|
var BreadcrumbItem = React39.forwardRef(
|
|
26869
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26857
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
26870
26858
|
);
|
|
26871
26859
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
26872
26860
|
var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
26873
26861
|
const Comp = asChild ? import_react_slot2.Slot : "a";
|
|
26874
|
-
return /* @__PURE__ */ (0,
|
|
26862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Comp, { ref, className: cn("transition-colors hover:text-foreground", className), ...props });
|
|
26875
26863
|
});
|
|
26876
26864
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
26877
26865
|
var BreadcrumbPage = React39.forwardRef(
|
|
26878
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26866
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
26879
26867
|
"span",
|
|
26880
26868
|
{
|
|
26881
26869
|
ref,
|
|
@@ -26888,9 +26876,9 @@ var BreadcrumbPage = React39.forwardRef(
|
|
|
26888
26876
|
)
|
|
26889
26877
|
);
|
|
26890
26878
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
26891
|
-
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0,
|
|
26879
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react19.ChevronRight, {}) });
|
|
26892
26880
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
26893
|
-
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
26881
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
26894
26882
|
"span",
|
|
26895
26883
|
{
|
|
26896
26884
|
role: "presentation",
|
|
@@ -26898,8 +26886,8 @@ var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import
|
|
|
26898
26886
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
26899
26887
|
...props,
|
|
26900
26888
|
children: [
|
|
26901
|
-
/* @__PURE__ */ (0,
|
|
26902
|
-
/* @__PURE__ */ (0,
|
|
26889
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react19.MoreHorizontal, { className: "h-4 w-4" }),
|
|
26890
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: "More" })
|
|
26903
26891
|
]
|
|
26904
26892
|
}
|
|
26905
26893
|
);
|
|
@@ -26908,9 +26896,9 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
26908
26896
|
// src/components/ui/calendar.tsx
|
|
26909
26897
|
var import_lucide_react20 = require("lucide-react");
|
|
26910
26898
|
var import_react_day_picker = require("react-day-picker");
|
|
26911
|
-
var
|
|
26899
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
26912
26900
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
26913
|
-
return /* @__PURE__ */ (0,
|
|
26901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
26914
26902
|
import_react_day_picker.DayPicker,
|
|
26915
26903
|
{
|
|
26916
26904
|
showOutsideDays,
|
|
@@ -26945,9 +26933,9 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
26945
26933
|
components: {
|
|
26946
26934
|
Chevron: ({ orientation, className: className2, ...chevronProps }) => {
|
|
26947
26935
|
if (orientation === "left") {
|
|
26948
|
-
return /* @__PURE__ */ (0,
|
|
26936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react20.ChevronLeft, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
26949
26937
|
}
|
|
26950
|
-
return /* @__PURE__ */ (0,
|
|
26938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react20.ChevronRight, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
26951
26939
|
}
|
|
26952
26940
|
},
|
|
26953
26941
|
...props
|
|
@@ -26958,27 +26946,27 @@ Calendar.displayName = "Calendar";
|
|
|
26958
26946
|
|
|
26959
26947
|
// src/components/ui/card.tsx
|
|
26960
26948
|
var React40 = __toESM(require("react"), 1);
|
|
26961
|
-
var
|
|
26962
|
-
var Card = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26949
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
26950
|
+
var Card = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props }));
|
|
26963
26951
|
Card.displayName = "Card";
|
|
26964
26952
|
var CardHeader = React40.forwardRef(
|
|
26965
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26953
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
26966
26954
|
);
|
|
26967
26955
|
CardHeader.displayName = "CardHeader";
|
|
26968
26956
|
var CardTitle = React40.forwardRef(
|
|
26969
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26957
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
26970
26958
|
);
|
|
26971
26959
|
CardTitle.displayName = "CardTitle";
|
|
26972
26960
|
var CardDescription = React40.forwardRef(
|
|
26973
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26961
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
26974
26962
|
);
|
|
26975
26963
|
CardDescription.displayName = "CardDescription";
|
|
26976
26964
|
var CardContent = React40.forwardRef(
|
|
26977
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26965
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
26978
26966
|
);
|
|
26979
26967
|
CardContent.displayName = "CardContent";
|
|
26980
26968
|
var CardFooter = React40.forwardRef(
|
|
26981
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
26969
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
26982
26970
|
);
|
|
26983
26971
|
CardFooter.displayName = "CardFooter";
|
|
26984
26972
|
|
|
@@ -26986,7 +26974,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
26986
26974
|
var React41 = __toESM(require("react"), 1);
|
|
26987
26975
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
26988
26976
|
var import_lucide_react21 = require("lucide-react");
|
|
26989
|
-
var
|
|
26977
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
26990
26978
|
var CarouselContext = React41.createContext(null);
|
|
26991
26979
|
function useCarousel() {
|
|
26992
26980
|
const context = React41.useContext(CarouselContext);
|
|
@@ -27048,7 +27036,7 @@ var Carousel = React41.forwardRef(
|
|
|
27048
27036
|
api == null ? void 0 : api.off("select", onSelect);
|
|
27049
27037
|
};
|
|
27050
27038
|
}, [api, onSelect]);
|
|
27051
|
-
return /* @__PURE__ */ (0,
|
|
27039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
27052
27040
|
CarouselContext.Provider,
|
|
27053
27041
|
{
|
|
27054
27042
|
value: {
|
|
@@ -27061,7 +27049,7 @@ var Carousel = React41.forwardRef(
|
|
|
27061
27049
|
canScrollPrev,
|
|
27062
27050
|
canScrollNext
|
|
27063
27051
|
},
|
|
27064
|
-
children: /* @__PURE__ */ (0,
|
|
27052
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
27065
27053
|
"div",
|
|
27066
27054
|
{
|
|
27067
27055
|
ref,
|
|
@@ -27081,7 +27069,7 @@ Carousel.displayName = "Carousel";
|
|
|
27081
27069
|
var CarouselContent = React41.forwardRef(
|
|
27082
27070
|
({ className, ...props }, ref) => {
|
|
27083
27071
|
const { carouselRef, orientation } = useCarousel();
|
|
27084
|
-
return /* @__PURE__ */ (0,
|
|
27072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
27085
27073
|
"div",
|
|
27086
27074
|
{
|
|
27087
27075
|
ref,
|
|
@@ -27095,7 +27083,7 @@ CarouselContent.displayName = "CarouselContent";
|
|
|
27095
27083
|
var CarouselItem = React41.forwardRef(
|
|
27096
27084
|
({ className, ...props }, ref) => {
|
|
27097
27085
|
const { orientation } = useCarousel();
|
|
27098
|
-
return /* @__PURE__ */ (0,
|
|
27086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
27099
27087
|
"div",
|
|
27100
27088
|
{
|
|
27101
27089
|
ref,
|
|
@@ -27111,7 +27099,7 @@ CarouselItem.displayName = "CarouselItem";
|
|
|
27111
27099
|
var CarouselPrevious = React41.forwardRef(
|
|
27112
27100
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
27113
27101
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
27114
|
-
return /* @__PURE__ */ (0,
|
|
27102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
27115
27103
|
Button,
|
|
27116
27104
|
{
|
|
27117
27105
|
ref,
|
|
@@ -27126,8 +27114,8 @@ var CarouselPrevious = React41.forwardRef(
|
|
|
27126
27114
|
onClick: scrollPrev,
|
|
27127
27115
|
...props,
|
|
27128
27116
|
children: [
|
|
27129
|
-
/* @__PURE__ */ (0,
|
|
27130
|
-
/* @__PURE__ */ (0,
|
|
27117
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react21.ArrowLeft, { className: "h-4 w-4" }),
|
|
27118
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
27131
27119
|
]
|
|
27132
27120
|
}
|
|
27133
27121
|
);
|
|
@@ -27137,7 +27125,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
|
|
|
27137
27125
|
var CarouselNext = React41.forwardRef(
|
|
27138
27126
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
27139
27127
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
27140
|
-
return /* @__PURE__ */ (0,
|
|
27128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
27141
27129
|
Button,
|
|
27142
27130
|
{
|
|
27143
27131
|
ref,
|
|
@@ -27152,8 +27140,8 @@ var CarouselNext = React41.forwardRef(
|
|
|
27152
27140
|
onClick: scrollNext,
|
|
27153
27141
|
...props,
|
|
27154
27142
|
children: [
|
|
27155
|
-
/* @__PURE__ */ (0,
|
|
27156
|
-
/* @__PURE__ */ (0,
|
|
27143
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react21.ArrowRight, { className: "h-4 w-4" }),
|
|
27144
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
27157
27145
|
]
|
|
27158
27146
|
}
|
|
27159
27147
|
);
|
|
@@ -27164,7 +27152,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
27164
27152
|
// src/components/ui/chart.tsx
|
|
27165
27153
|
var React42 = __toESM(require("react"), 1);
|
|
27166
27154
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
27167
|
-
var
|
|
27155
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
27168
27156
|
var THEMES = { light: "", dark: ".dark" };
|
|
27169
27157
|
var ChartContext = React42.createContext(null);
|
|
27170
27158
|
function useChart() {
|
|
@@ -27177,7 +27165,7 @@ function useChart() {
|
|
|
27177
27165
|
var ChartContainer = React42.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
27178
27166
|
const uniqueId = React42.useId();
|
|
27179
27167
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
27180
|
-
return /* @__PURE__ */ (0,
|
|
27168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
27181
27169
|
"div",
|
|
27182
27170
|
{
|
|
27183
27171
|
"data-chart": chartId,
|
|
@@ -27188,8 +27176,8 @@ var ChartContainer = React42.forwardRef(({ id, className, children, config, ...p
|
|
|
27188
27176
|
),
|
|
27189
27177
|
...props,
|
|
27190
27178
|
children: [
|
|
27191
|
-
/* @__PURE__ */ (0,
|
|
27192
|
-
/* @__PURE__ */ (0,
|
|
27179
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChartStyle, { id: chartId, config }),
|
|
27180
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
27193
27181
|
]
|
|
27194
27182
|
}
|
|
27195
27183
|
) });
|
|
@@ -27200,7 +27188,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
27200
27188
|
if (!colorConfig.length) {
|
|
27201
27189
|
return null;
|
|
27202
27190
|
}
|
|
27203
|
-
return /* @__PURE__ */ (0,
|
|
27191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
27204
27192
|
"style",
|
|
27205
27193
|
{
|
|
27206
27194
|
dangerouslySetInnerHTML: {
|
|
@@ -27247,18 +27235,18 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
27247
27235
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
27248
27236
|
const value = !labelKey && typeof label === "string" ? ((_a78 = config[label]) == null ? void 0 : _a78.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
27249
27237
|
if (labelFormatter) {
|
|
27250
|
-
return /* @__PURE__ */ (0,
|
|
27238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
27251
27239
|
}
|
|
27252
27240
|
if (!value) {
|
|
27253
27241
|
return null;
|
|
27254
27242
|
}
|
|
27255
|
-
return /* @__PURE__ */ (0,
|
|
27243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
27256
27244
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
27257
27245
|
if (!active || !(payload == null ? void 0 : payload.length)) {
|
|
27258
27246
|
return null;
|
|
27259
27247
|
}
|
|
27260
27248
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
27261
|
-
return /* @__PURE__ */ (0,
|
|
27249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
27262
27250
|
"div",
|
|
27263
27251
|
{
|
|
27264
27252
|
ref,
|
|
@@ -27268,19 +27256,19 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
27268
27256
|
),
|
|
27269
27257
|
children: [
|
|
27270
27258
|
!nestLabel ? tooltipLabel : null,
|
|
27271
|
-
/* @__PURE__ */ (0,
|
|
27259
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
27272
27260
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
27273
27261
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
27274
27262
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
27275
|
-
return /* @__PURE__ */ (0,
|
|
27263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
27276
27264
|
"div",
|
|
27277
27265
|
{
|
|
27278
27266
|
className: cn(
|
|
27279
27267
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
27280
27268
|
indicator === "dot" && "items-center"
|
|
27281
27269
|
),
|
|
27282
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
27283
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
27270
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
27271
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
27284
27272
|
"div",
|
|
27285
27273
|
{
|
|
27286
27274
|
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
@@ -27295,7 +27283,7 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
27295
27283
|
}
|
|
27296
27284
|
}
|
|
27297
27285
|
),
|
|
27298
|
-
/* @__PURE__ */ (0,
|
|
27286
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
27299
27287
|
"div",
|
|
27300
27288
|
{
|
|
27301
27289
|
className: cn(
|
|
@@ -27303,11 +27291,11 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
27303
27291
|
nestLabel ? "items-end" : "items-center"
|
|
27304
27292
|
),
|
|
27305
27293
|
children: [
|
|
27306
|
-
/* @__PURE__ */ (0,
|
|
27294
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
27307
27295
|
nestLabel ? tooltipLabel : null,
|
|
27308
|
-
/* @__PURE__ */ (0,
|
|
27296
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
27309
27297
|
] }),
|
|
27310
|
-
item.value && /* @__PURE__ */ (0,
|
|
27298
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
27311
27299
|
]
|
|
27312
27300
|
}
|
|
27313
27301
|
)
|
|
@@ -27328,7 +27316,7 @@ var ChartLegendContent = React42.forwardRef(({ className, hideIcon = false, payl
|
|
|
27328
27316
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
27329
27317
|
return null;
|
|
27330
27318
|
}
|
|
27331
|
-
return /* @__PURE__ */ (0,
|
|
27319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
27332
27320
|
"div",
|
|
27333
27321
|
{
|
|
27334
27322
|
ref,
|
|
@@ -27336,12 +27324,12 @@ var ChartLegendContent = React42.forwardRef(({ className, hideIcon = false, payl
|
|
|
27336
27324
|
children: payload.map((item) => {
|
|
27337
27325
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
27338
27326
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
27339
|
-
return /* @__PURE__ */ (0,
|
|
27327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
27340
27328
|
"div",
|
|
27341
27329
|
{
|
|
27342
27330
|
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
27343
27331
|
children: [
|
|
27344
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
27332
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
27345
27333
|
"div",
|
|
27346
27334
|
{
|
|
27347
27335
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -27378,8 +27366,8 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
27378
27366
|
var React43 = __toESM(require("react"), 1);
|
|
27379
27367
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
27380
27368
|
var import_lucide_react22 = require("lucide-react");
|
|
27381
|
-
var
|
|
27382
|
-
var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27369
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
27370
|
+
var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
27383
27371
|
CheckboxPrimitive.Root,
|
|
27384
27372
|
{
|
|
27385
27373
|
ref,
|
|
@@ -27388,7 +27376,7 @@ var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27388
27376
|
className
|
|
27389
27377
|
),
|
|
27390
27378
|
...props,
|
|
27391
|
-
children: /* @__PURE__ */ (0,
|
|
27379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_lucide_react22.Check, { className: "h-4 w-4" }) })
|
|
27392
27380
|
}
|
|
27393
27381
|
));
|
|
27394
27382
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
@@ -27403,8 +27391,8 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
27403
27391
|
var React44 = __toESM(require("react"), 1);
|
|
27404
27392
|
var import_cmdk = require("cmdk");
|
|
27405
27393
|
var import_lucide_react23 = require("lucide-react");
|
|
27406
|
-
var
|
|
27407
|
-
var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27394
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
27395
|
+
var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
27408
27396
|
import_cmdk.Command,
|
|
27409
27397
|
{
|
|
27410
27398
|
ref,
|
|
@@ -27417,11 +27405,11 @@ var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27417
27405
|
));
|
|
27418
27406
|
Command.displayName = import_cmdk.Command.displayName;
|
|
27419
27407
|
var CommandDialog = ({ children, ...props }) => {
|
|
27420
|
-
return /* @__PURE__ */ (0,
|
|
27408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[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", children }) }) });
|
|
27421
27409
|
};
|
|
27422
|
-
var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27423
|
-
/* @__PURE__ */ (0,
|
|
27424
|
-
/* @__PURE__ */ (0,
|
|
27410
|
+
var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
27411
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_lucide_react23.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
27412
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
27425
27413
|
import_cmdk.Command.Input,
|
|
27426
27414
|
{
|
|
27427
27415
|
ref,
|
|
@@ -27434,7 +27422,7 @@ var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
27434
27422
|
)
|
|
27435
27423
|
] }));
|
|
27436
27424
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
27437
|
-
var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27425
|
+
var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
27438
27426
|
import_cmdk.Command.List,
|
|
27439
27427
|
{
|
|
27440
27428
|
ref,
|
|
@@ -27443,9 +27431,9 @@ var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
27443
27431
|
}
|
|
27444
27432
|
));
|
|
27445
27433
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
27446
|
-
var CommandEmpty = React44.forwardRef((props, ref) => /* @__PURE__ */ (0,
|
|
27434
|
+
var CommandEmpty = React44.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
27447
27435
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
27448
|
-
var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27436
|
+
var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
27449
27437
|
import_cmdk.Command.Group,
|
|
27450
27438
|
{
|
|
27451
27439
|
ref,
|
|
@@ -27457,9 +27445,9 @@ var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
27457
27445
|
}
|
|
27458
27446
|
));
|
|
27459
27447
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
27460
|
-
var CommandSeparator = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27448
|
+
var CommandSeparator = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
27461
27449
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
27462
|
-
var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27450
|
+
var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
27463
27451
|
import_cmdk.Command.Item,
|
|
27464
27452
|
{
|
|
27465
27453
|
ref,
|
|
@@ -27472,7 +27460,7 @@ var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
27472
27460
|
));
|
|
27473
27461
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
27474
27462
|
var CommandShortcut = ({ className, ...props }) => {
|
|
27475
|
-
return /* @__PURE__ */ (0,
|
|
27463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27476
27464
|
};
|
|
27477
27465
|
CommandShortcut.displayName = "CommandShortcut";
|
|
27478
27466
|
|
|
@@ -27480,14 +27468,14 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
27480
27468
|
var React45 = __toESM(require("react"), 1);
|
|
27481
27469
|
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
27482
27470
|
var import_lucide_react24 = require("lucide-react");
|
|
27483
|
-
var
|
|
27471
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
27484
27472
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
27485
27473
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
27486
27474
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
27487
27475
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
27488
27476
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
27489
27477
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
27490
|
-
var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27478
|
+
var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
27491
27479
|
ContextMenuPrimitive.SubTrigger,
|
|
27492
27480
|
{
|
|
27493
27481
|
ref,
|
|
@@ -27499,12 +27487,12 @@ var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ..
|
|
|
27499
27487
|
...props,
|
|
27500
27488
|
children: [
|
|
27501
27489
|
children,
|
|
27502
|
-
/* @__PURE__ */ (0,
|
|
27490
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react24.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
27503
27491
|
]
|
|
27504
27492
|
}
|
|
27505
27493
|
));
|
|
27506
27494
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
27507
|
-
var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27495
|
+
var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
27508
27496
|
ContextMenuPrimitive.SubContent,
|
|
27509
27497
|
{
|
|
27510
27498
|
ref,
|
|
@@ -27516,7 +27504,7 @@ var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) =>
|
|
|
27516
27504
|
}
|
|
27517
27505
|
));
|
|
27518
27506
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
27519
|
-
var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27507
|
+
var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
27520
27508
|
ContextMenuPrimitive.Content,
|
|
27521
27509
|
{
|
|
27522
27510
|
ref,
|
|
@@ -27528,7 +27516,7 @@ var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /*
|
|
|
27528
27516
|
}
|
|
27529
27517
|
) }));
|
|
27530
27518
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
27531
|
-
var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27519
|
+
var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
27532
27520
|
ContextMenuPrimitive.Item,
|
|
27533
27521
|
{
|
|
27534
27522
|
ref,
|
|
@@ -27541,7 +27529,7 @@ var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
27541
27529
|
}
|
|
27542
27530
|
));
|
|
27543
27531
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
27544
|
-
var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27532
|
+
var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
27545
27533
|
ContextMenuPrimitive.CheckboxItem,
|
|
27546
27534
|
{
|
|
27547
27535
|
ref,
|
|
@@ -27552,13 +27540,13 @@ var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked
|
|
|
27552
27540
|
checked,
|
|
27553
27541
|
...props,
|
|
27554
27542
|
children: [
|
|
27555
|
-
/* @__PURE__ */ (0,
|
|
27543
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react24.Check, { className: "h-4 w-4" }) }) }),
|
|
27556
27544
|
children
|
|
27557
27545
|
]
|
|
27558
27546
|
}
|
|
27559
27547
|
));
|
|
27560
27548
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
27561
|
-
var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27549
|
+
var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
27562
27550
|
ContextMenuPrimitive.RadioItem,
|
|
27563
27551
|
{
|
|
27564
27552
|
ref,
|
|
@@ -27568,13 +27556,13 @@ var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }
|
|
|
27568
27556
|
),
|
|
27569
27557
|
...props,
|
|
27570
27558
|
children: [
|
|
27571
|
-
/* @__PURE__ */ (0,
|
|
27559
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react24.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
27572
27560
|
children
|
|
27573
27561
|
]
|
|
27574
27562
|
}
|
|
27575
27563
|
));
|
|
27576
27564
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
27577
|
-
var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27565
|
+
var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
27578
27566
|
ContextMenuPrimitive.Label,
|
|
27579
27567
|
{
|
|
27580
27568
|
ref,
|
|
@@ -27583,10 +27571,10 @@ var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref)
|
|
|
27583
27571
|
}
|
|
27584
27572
|
));
|
|
27585
27573
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
27586
|
-
var ContextMenuSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27574
|
+
var ContextMenuSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
27587
27575
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
27588
27576
|
var ContextMenuShortcut = ({ className, ...props }) => {
|
|
27589
|
-
return /* @__PURE__ */ (0,
|
|
27577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27590
27578
|
};
|
|
27591
27579
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
27592
27580
|
|
|
@@ -27599,19 +27587,19 @@ var import_react_hook_form = require("react-hook-form");
|
|
|
27599
27587
|
var React46 = __toESM(require("react"), 1);
|
|
27600
27588
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
27601
27589
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
27602
|
-
var
|
|
27590
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
27603
27591
|
var labelVariants = (0, import_class_variance_authority4.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
27604
|
-
var Label4 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27592
|
+
var Label4 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
27605
27593
|
Label4.displayName = LabelPrimitive.Root.displayName;
|
|
27606
27594
|
|
|
27607
27595
|
// src/components/ui/form.tsx
|
|
27608
|
-
var
|
|
27596
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
27609
27597
|
var Form = import_react_hook_form.FormProvider;
|
|
27610
27598
|
var FormFieldContext = React47.createContext({});
|
|
27611
27599
|
var FormField = ({
|
|
27612
27600
|
...props
|
|
27613
27601
|
}) => {
|
|
27614
|
-
return /* @__PURE__ */ (0,
|
|
27602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
27615
27603
|
};
|
|
27616
27604
|
var useFormField = () => {
|
|
27617
27605
|
const fieldContext = React47.useContext(FormFieldContext);
|
|
@@ -27635,19 +27623,19 @@ var FormItemContext = React47.createContext({});
|
|
|
27635
27623
|
var FormItem = React47.forwardRef(
|
|
27636
27624
|
({ className, ...props }, ref) => {
|
|
27637
27625
|
const id = React47.useId();
|
|
27638
|
-
return /* @__PURE__ */ (0,
|
|
27626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
27639
27627
|
}
|
|
27640
27628
|
);
|
|
27641
27629
|
FormItem.displayName = "FormItem";
|
|
27642
27630
|
var FormLabel = React47.forwardRef(({ className, ...props }, ref) => {
|
|
27643
27631
|
const { error, formItemId } = useFormField();
|
|
27644
|
-
return /* @__PURE__ */ (0,
|
|
27632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Label4, { ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
27645
27633
|
});
|
|
27646
27634
|
FormLabel.displayName = "FormLabel";
|
|
27647
27635
|
var FormControl = React47.forwardRef(
|
|
27648
27636
|
({ ...props }, ref) => {
|
|
27649
27637
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
27650
|
-
return /* @__PURE__ */ (0,
|
|
27638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
27651
27639
|
import_react_slot3.Slot,
|
|
27652
27640
|
{
|
|
27653
27641
|
ref,
|
|
@@ -27663,7 +27651,7 @@ FormControl.displayName = "FormControl";
|
|
|
27663
27651
|
var FormDescription = React47.forwardRef(
|
|
27664
27652
|
({ className, ...props }, ref) => {
|
|
27665
27653
|
const { formDescriptionId } = useFormField();
|
|
27666
|
-
return /* @__PURE__ */ (0,
|
|
27654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
27667
27655
|
}
|
|
27668
27656
|
);
|
|
27669
27657
|
FormDescription.displayName = "FormDescription";
|
|
@@ -27674,17 +27662,17 @@ var FormMessage = React47.forwardRef(
|
|
|
27674
27662
|
if (!body) {
|
|
27675
27663
|
return null;
|
|
27676
27664
|
}
|
|
27677
|
-
return /* @__PURE__ */ (0,
|
|
27665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
27678
27666
|
}
|
|
27679
27667
|
);
|
|
27680
27668
|
FormMessage.displayName = "FormMessage";
|
|
27681
27669
|
|
|
27682
27670
|
// src/components/ui/glass-card.tsx
|
|
27683
27671
|
var React48 = __toESM(require("react"), 1);
|
|
27684
|
-
var
|
|
27672
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
27685
27673
|
var GlassCard = React48.forwardRef(
|
|
27686
27674
|
({ className, ...props }, ref) => {
|
|
27687
|
-
return /* @__PURE__ */ (0,
|
|
27675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { ref, className: cn("glass-card", className), ...props });
|
|
27688
27676
|
}
|
|
27689
27677
|
);
|
|
27690
27678
|
GlassCard.displayName = "GlassCard";
|
|
@@ -27692,10 +27680,10 @@ GlassCard.displayName = "GlassCard";
|
|
|
27692
27680
|
// src/components/ui/hover-card.tsx
|
|
27693
27681
|
var React49 = __toESM(require("react"), 1);
|
|
27694
27682
|
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
27695
|
-
var
|
|
27683
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
27696
27684
|
var HoverCard = HoverCardPrimitive.Root;
|
|
27697
27685
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
27698
|
-
var HoverCardContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27686
|
+
var HoverCardContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
27699
27687
|
HoverCardPrimitive.Content,
|
|
27700
27688
|
{
|
|
27701
27689
|
ref,
|
|
@@ -27714,9 +27702,9 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
27714
27702
|
var React50 = __toESM(require("react"), 1);
|
|
27715
27703
|
var import_input_otp = require("input-otp");
|
|
27716
27704
|
var import_lucide_react25 = require("lucide-react");
|
|
27717
|
-
var
|
|
27705
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
27718
27706
|
var InputOTP = React50.forwardRef(
|
|
27719
|
-
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27707
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
27720
27708
|
import_input_otp.OTPInput,
|
|
27721
27709
|
{
|
|
27722
27710
|
ref,
|
|
@@ -27728,13 +27716,13 @@ var InputOTP = React50.forwardRef(
|
|
|
27728
27716
|
);
|
|
27729
27717
|
InputOTP.displayName = "InputOTP";
|
|
27730
27718
|
var InputOTPGroup = React50.forwardRef(
|
|
27731
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27719
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props })
|
|
27732
27720
|
);
|
|
27733
27721
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
27734
27722
|
var InputOTPSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
|
27735
27723
|
const inputOTPContext = React50.useContext(import_input_otp.OTPInputContext);
|
|
27736
27724
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
27737
|
-
return /* @__PURE__ */ (0,
|
|
27725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
27738
27726
|
"div",
|
|
27739
27727
|
{
|
|
27740
27728
|
ref,
|
|
@@ -27746,14 +27734,14 @@ var InputOTPSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
27746
27734
|
...props,
|
|
27747
27735
|
children: [
|
|
27748
27736
|
char,
|
|
27749
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
27737
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
27750
27738
|
]
|
|
27751
27739
|
}
|
|
27752
27740
|
);
|
|
27753
27741
|
});
|
|
27754
27742
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
27755
27743
|
var InputOTPSeparator = React50.forwardRef(
|
|
27756
|
-
({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
27744
|
+
({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_lucide_react25.Dot, {}) })
|
|
27757
27745
|
);
|
|
27758
27746
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
27759
27747
|
|
|
@@ -27761,13 +27749,13 @@ InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
|
27761
27749
|
var React51 = __toESM(require("react"), 1);
|
|
27762
27750
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
27763
27751
|
var import_lucide_react26 = require("lucide-react");
|
|
27764
|
-
var
|
|
27752
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
27765
27753
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
27766
27754
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
27767
27755
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
27768
27756
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
27769
27757
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
27770
|
-
var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27758
|
+
var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27771
27759
|
MenubarPrimitive.Root,
|
|
27772
27760
|
{
|
|
27773
27761
|
ref,
|
|
@@ -27776,7 +27764,7 @@ var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27776
27764
|
}
|
|
27777
27765
|
));
|
|
27778
27766
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
27779
|
-
var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27767
|
+
var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27780
27768
|
MenubarPrimitive.Trigger,
|
|
27781
27769
|
{
|
|
27782
27770
|
ref,
|
|
@@ -27788,7 +27776,7 @@ var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
27788
27776
|
}
|
|
27789
27777
|
));
|
|
27790
27778
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
27791
|
-
var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27779
|
+
var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
27792
27780
|
MenubarPrimitive.SubTrigger,
|
|
27793
27781
|
{
|
|
27794
27782
|
ref,
|
|
@@ -27800,12 +27788,12 @@ var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...pro
|
|
|
27800
27788
|
...props,
|
|
27801
27789
|
children: [
|
|
27802
27790
|
children,
|
|
27803
|
-
/* @__PURE__ */ (0,
|
|
27791
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react26.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
27804
27792
|
]
|
|
27805
27793
|
}
|
|
27806
27794
|
));
|
|
27807
27795
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
27808
|
-
var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27796
|
+
var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27809
27797
|
MenubarPrimitive.SubContent,
|
|
27810
27798
|
{
|
|
27811
27799
|
ref,
|
|
@@ -27817,7 +27805,7 @@ var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /*
|
|
|
27817
27805
|
}
|
|
27818
27806
|
));
|
|
27819
27807
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
27820
|
-
var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27808
|
+
var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27821
27809
|
MenubarPrimitive.Content,
|
|
27822
27810
|
{
|
|
27823
27811
|
ref,
|
|
@@ -27832,7 +27820,7 @@ var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffs
|
|
|
27832
27820
|
}
|
|
27833
27821
|
) }));
|
|
27834
27822
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
27835
|
-
var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27823
|
+
var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27836
27824
|
MenubarPrimitive.Item,
|
|
27837
27825
|
{
|
|
27838
27826
|
ref,
|
|
@@ -27845,7 +27833,7 @@ var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
27845
27833
|
}
|
|
27846
27834
|
));
|
|
27847
27835
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
27848
|
-
var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27836
|
+
var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
27849
27837
|
MenubarPrimitive.CheckboxItem,
|
|
27850
27838
|
{
|
|
27851
27839
|
ref,
|
|
@@ -27856,13 +27844,13 @@ var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ..
|
|
|
27856
27844
|
checked,
|
|
27857
27845
|
...props,
|
|
27858
27846
|
children: [
|
|
27859
|
-
/* @__PURE__ */ (0,
|
|
27847
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react26.Check, { className: "h-4 w-4" }) }) }),
|
|
27860
27848
|
children
|
|
27861
27849
|
]
|
|
27862
27850
|
}
|
|
27863
27851
|
));
|
|
27864
27852
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
27865
|
-
var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27853
|
+
var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
27866
27854
|
MenubarPrimitive.RadioItem,
|
|
27867
27855
|
{
|
|
27868
27856
|
ref,
|
|
@@ -27872,13 +27860,13 @@ var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, re
|
|
|
27872
27860
|
),
|
|
27873
27861
|
...props,
|
|
27874
27862
|
children: [
|
|
27875
|
-
/* @__PURE__ */ (0,
|
|
27863
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react26.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
27876
27864
|
children
|
|
27877
27865
|
]
|
|
27878
27866
|
}
|
|
27879
27867
|
));
|
|
27880
27868
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
27881
|
-
var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27869
|
+
var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
27882
27870
|
MenubarPrimitive.Label,
|
|
27883
27871
|
{
|
|
27884
27872
|
ref,
|
|
@@ -27887,10 +27875,10 @@ var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
27887
27875
|
}
|
|
27888
27876
|
));
|
|
27889
27877
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
27890
|
-
var MenubarSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27878
|
+
var MenubarSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
27891
27879
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
27892
27880
|
var MenubarShortcut = ({ className, ...props }) => {
|
|
27893
|
-
return /* @__PURE__ */ (0,
|
|
27881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27894
27882
|
};
|
|
27895
27883
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
27896
27884
|
|
|
@@ -27899,8 +27887,8 @@ var React52 = __toESM(require("react"), 1);
|
|
|
27899
27887
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
27900
27888
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
27901
27889
|
var import_lucide_react27 = require("lucide-react");
|
|
27902
|
-
var
|
|
27903
|
-
var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27890
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
27891
|
+
var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
27904
27892
|
NavigationMenuPrimitive.Root,
|
|
27905
27893
|
{
|
|
27906
27894
|
ref,
|
|
@@ -27908,12 +27896,12 @@ var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref)
|
|
|
27908
27896
|
...props,
|
|
27909
27897
|
children: [
|
|
27910
27898
|
children,
|
|
27911
|
-
/* @__PURE__ */ (0,
|
|
27899
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NavigationMenuViewport, {})
|
|
27912
27900
|
]
|
|
27913
27901
|
}
|
|
27914
27902
|
));
|
|
27915
27903
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
27916
|
-
var NavigationMenuList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27904
|
+
var NavigationMenuList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
27917
27905
|
NavigationMenuPrimitive.List,
|
|
27918
27906
|
{
|
|
27919
27907
|
ref,
|
|
@@ -27926,7 +27914,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
27926
27914
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority5.cva)(
|
|
27927
27915
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
27928
27916
|
);
|
|
27929
|
-
var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27917
|
+
var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
27930
27918
|
NavigationMenuPrimitive.Trigger,
|
|
27931
27919
|
{
|
|
27932
27920
|
ref,
|
|
@@ -27935,7 +27923,7 @@ var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props
|
|
|
27935
27923
|
children: [
|
|
27936
27924
|
children,
|
|
27937
27925
|
" ",
|
|
27938
|
-
/* @__PURE__ */ (0,
|
|
27926
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
27939
27927
|
import_lucide_react27.ChevronDown,
|
|
27940
27928
|
{
|
|
27941
27929
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -27946,7 +27934,7 @@ var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props
|
|
|
27946
27934
|
}
|
|
27947
27935
|
));
|
|
27948
27936
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
27949
|
-
var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27937
|
+
var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
27950
27938
|
NavigationMenuPrimitive.Content,
|
|
27951
27939
|
{
|
|
27952
27940
|
ref,
|
|
@@ -27959,7 +27947,7 @@ var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) =>
|
|
|
27959
27947
|
));
|
|
27960
27948
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
27961
27949
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
27962
|
-
var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27950
|
+
var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
27963
27951
|
NavigationMenuPrimitive.Viewport,
|
|
27964
27952
|
{
|
|
27965
27953
|
className: cn(
|
|
@@ -27971,7 +27959,7 @@ var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) =
|
|
|
27971
27959
|
}
|
|
27972
27960
|
) }));
|
|
27973
27961
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
27974
|
-
var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27962
|
+
var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
27975
27963
|
NavigationMenuPrimitive.Indicator,
|
|
27976
27964
|
{
|
|
27977
27965
|
ref,
|
|
@@ -27980,7 +27968,7 @@ var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref)
|
|
|
27980
27968
|
className
|
|
27981
27969
|
),
|
|
27982
27970
|
...props,
|
|
27983
|
-
children: /* @__PURE__ */ (0,
|
|
27971
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
27984
27972
|
}
|
|
27985
27973
|
));
|
|
27986
27974
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
@@ -27988,8 +27976,8 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
27988
27976
|
// src/components/ui/pagination.tsx
|
|
27989
27977
|
var React53 = __toESM(require("react"), 1);
|
|
27990
27978
|
var import_lucide_react28 = require("lucide-react");
|
|
27991
|
-
var
|
|
27992
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
27979
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
27980
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
27993
27981
|
"nav",
|
|
27994
27982
|
{
|
|
27995
27983
|
role: "navigation",
|
|
@@ -28000,12 +27988,12 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
28000
27988
|
);
|
|
28001
27989
|
Pagination.displayName = "Pagination";
|
|
28002
27990
|
var PaginationContent = React53.forwardRef(
|
|
28003
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27991
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
28004
27992
|
);
|
|
28005
27993
|
PaginationContent.displayName = "PaginationContent";
|
|
28006
|
-
var PaginationItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
27994
|
+
var PaginationItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("li", { ref, className: cn("", className), ...props }));
|
|
28007
27995
|
PaginationItem.displayName = "PaginationItem";
|
|
28008
|
-
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0,
|
|
27996
|
+
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
28009
27997
|
"a",
|
|
28010
27998
|
{
|
|
28011
27999
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -28020,29 +28008,29 @@ var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @_
|
|
|
28020
28008
|
}
|
|
28021
28009
|
);
|
|
28022
28010
|
PaginationLink.displayName = "PaginationLink";
|
|
28023
|
-
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28024
|
-
/* @__PURE__ */ (0,
|
|
28025
|
-
/* @__PURE__ */ (0,
|
|
28011
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className), ...props, children: [
|
|
28012
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react28.ChevronLeft, { className: "h-4 w-4" }),
|
|
28013
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: "Previous" })
|
|
28026
28014
|
] });
|
|
28027
28015
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
28028
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28029
|
-
/* @__PURE__ */ (0,
|
|
28030
|
-
/* @__PURE__ */ (0,
|
|
28016
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className), ...props, children: [
|
|
28017
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: "Next" }),
|
|
28018
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react28.ChevronRight, { className: "h-4 w-4" })
|
|
28031
28019
|
] });
|
|
28032
28020
|
PaginationNext.displayName = "PaginationNext";
|
|
28033
|
-
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28034
|
-
/* @__PURE__ */ (0,
|
|
28035
|
-
/* @__PURE__ */ (0,
|
|
28021
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
28022
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react28.MoreHorizontal, { className: "h-4 w-4" }),
|
|
28023
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
28036
28024
|
] });
|
|
28037
28025
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
28038
28026
|
|
|
28039
28027
|
// src/components/ui/popover.tsx
|
|
28040
28028
|
var React54 = __toESM(require("react"), 1);
|
|
28041
28029
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
28042
|
-
var
|
|
28030
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
28043
28031
|
var Popover = PopoverPrimitive.Root;
|
|
28044
28032
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
28045
|
-
var PopoverContent = React54.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28033
|
+
var PopoverContent = React54.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
28046
28034
|
PopoverPrimitive.Content,
|
|
28047
28035
|
{
|
|
28048
28036
|
ref,
|
|
@@ -28061,13 +28049,13 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
28061
28049
|
var React55 = __toESM(require("react"), 1);
|
|
28062
28050
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
28063
28051
|
var import_lucide_react29 = require("lucide-react");
|
|
28064
|
-
var
|
|
28052
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
28065
28053
|
var RadioGroup4 = React55.forwardRef(({ className, ...props }, ref) => {
|
|
28066
|
-
return /* @__PURE__ */ (0,
|
|
28054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
28067
28055
|
});
|
|
28068
28056
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
28069
28057
|
var RadioGroupItem = React55.forwardRef(({ className, ...props }, ref) => {
|
|
28070
|
-
return /* @__PURE__ */ (0,
|
|
28058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
28071
28059
|
RadioGroupPrimitive.Item,
|
|
28072
28060
|
{
|
|
28073
28061
|
ref,
|
|
@@ -28076,7 +28064,7 @@ var RadioGroupItem = React55.forwardRef(({ className, ...props }, ref) => {
|
|
|
28076
28064
|
className
|
|
28077
28065
|
),
|
|
28078
28066
|
...props,
|
|
28079
|
-
children: /* @__PURE__ */ (0,
|
|
28067
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react29.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
28080
28068
|
}
|
|
28081
28069
|
);
|
|
28082
28070
|
});
|
|
@@ -28085,8 +28073,8 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
28085
28073
|
// src/components/ui/resizable.tsx
|
|
28086
28074
|
var import_lucide_react30 = require("lucide-react");
|
|
28087
28075
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
28088
|
-
var
|
|
28089
|
-
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28076
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
28077
|
+
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
28090
28078
|
ResizablePrimitive.PanelGroup,
|
|
28091
28079
|
{
|
|
28092
28080
|
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
@@ -28098,7 +28086,7 @@ var ResizableHandle = ({
|
|
|
28098
28086
|
withHandle,
|
|
28099
28087
|
className,
|
|
28100
28088
|
...props
|
|
28101
|
-
}) => /* @__PURE__ */ (0,
|
|
28089
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
28102
28090
|
ResizablePrimitive.PanelResizeHandle,
|
|
28103
28091
|
{
|
|
28104
28092
|
className: cn(
|
|
@@ -28106,15 +28094,15 @@ var ResizableHandle = ({
|
|
|
28106
28094
|
className
|
|
28107
28095
|
),
|
|
28108
28096
|
...props,
|
|
28109
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
28097
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_lucide_react30.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
28110
28098
|
}
|
|
28111
28099
|
);
|
|
28112
28100
|
|
|
28113
28101
|
// src/components/ui/separator.tsx
|
|
28114
28102
|
var React56 = __toESM(require("react"), 1);
|
|
28115
28103
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
28116
|
-
var
|
|
28117
|
-
var Separator5 = React56.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28104
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
28105
|
+
var Separator5 = React56.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
28118
28106
|
SeparatorPrimitive.Root,
|
|
28119
28107
|
{
|
|
28120
28108
|
ref,
|
|
@@ -28131,12 +28119,12 @@ var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
|
28131
28119
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
28132
28120
|
var import_lucide_react31 = require("lucide-react");
|
|
28133
28121
|
var React57 = __toESM(require("react"), 1);
|
|
28134
|
-
var
|
|
28122
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
28135
28123
|
var Sheet = SheetPrimitive.Root;
|
|
28136
28124
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
28137
28125
|
var SheetClose = SheetPrimitive.Close;
|
|
28138
28126
|
var SheetPortal = SheetPrimitive.Portal;
|
|
28139
|
-
var SheetOverlay = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28127
|
+
var SheetOverlay = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
28140
28128
|
SheetPrimitive.Overlay,
|
|
28141
28129
|
{
|
|
28142
28130
|
className: cn(
|
|
@@ -28173,11 +28161,11 @@ var SheetContent = React57.forwardRef(
|
|
|
28173
28161
|
closeButtonClassName,
|
|
28174
28162
|
closeButtonLabel = "Close",
|
|
28175
28163
|
...props
|
|
28176
|
-
}, ref) => /* @__PURE__ */ (0,
|
|
28177
|
-
/* @__PURE__ */ (0,
|
|
28178
|
-
/* @__PURE__ */ (0,
|
|
28164
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(SheetPortal, { children: [
|
|
28165
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SheetOverlay, {}),
|
|
28166
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
28179
28167
|
children,
|
|
28180
|
-
showCloseButton ? /* @__PURE__ */ (0,
|
|
28168
|
+
showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
28181
28169
|
SheetPrimitive.Close,
|
|
28182
28170
|
{
|
|
28183
28171
|
className: cn(
|
|
@@ -28185,8 +28173,8 @@ var SheetContent = React57.forwardRef(
|
|
|
28185
28173
|
closeButtonClassName
|
|
28186
28174
|
),
|
|
28187
28175
|
children: [
|
|
28188
|
-
/* @__PURE__ */ (0,
|
|
28189
|
-
/* @__PURE__ */ (0,
|
|
28176
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_lucide_react31.X, { className: "h-4 w-4" }),
|
|
28177
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "sr-only", children: closeButtonLabel })
|
|
28190
28178
|
]
|
|
28191
28179
|
}
|
|
28192
28180
|
) : null
|
|
@@ -28194,13 +28182,13 @@ var SheetContent = React57.forwardRef(
|
|
|
28194
28182
|
] })
|
|
28195
28183
|
);
|
|
28196
28184
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
28197
|
-
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28185
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
28198
28186
|
SheetHeader.displayName = "SheetHeader";
|
|
28199
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
28187
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
28200
28188
|
SheetFooter.displayName = "SheetFooter";
|
|
28201
|
-
var SheetTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28189
|
+
var SheetTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
28202
28190
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
28203
|
-
var SheetDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28191
|
+
var SheetDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
28204
28192
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
28205
28193
|
|
|
28206
28194
|
// src/components/ui/sidebar.tsx
|
|
@@ -28227,7 +28215,7 @@ function useIsMobile() {
|
|
|
28227
28215
|
}
|
|
28228
28216
|
|
|
28229
28217
|
// src/components/ui/sidebar.tsx
|
|
28230
|
-
var
|
|
28218
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
28231
28219
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
28232
28220
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
28233
28221
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -28285,7 +28273,7 @@ var SidebarProvider = React59.forwardRef(({ defaultOpen = true, open: openProp,
|
|
|
28285
28273
|
}),
|
|
28286
28274
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
28287
28275
|
);
|
|
28288
|
-
return /* @__PURE__ */ (0,
|
|
28276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28289
28277
|
"div",
|
|
28290
28278
|
{
|
|
28291
28279
|
style: {
|
|
@@ -28304,7 +28292,7 @@ SidebarProvider.displayName = "SidebarProvider";
|
|
|
28304
28292
|
var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
28305
28293
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
28306
28294
|
if (collapsible === "none") {
|
|
28307
|
-
return /* @__PURE__ */ (0,
|
|
28295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28308
28296
|
"div",
|
|
28309
28297
|
{
|
|
28310
28298
|
className: cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className),
|
|
@@ -28315,7 +28303,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
28315
28303
|
);
|
|
28316
28304
|
}
|
|
28317
28305
|
if (isMobile) {
|
|
28318
|
-
return /* @__PURE__ */ (0,
|
|
28306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28319
28307
|
SheetContent,
|
|
28320
28308
|
{
|
|
28321
28309
|
"data-sidebar": "sidebar",
|
|
@@ -28325,11 +28313,11 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
28325
28313
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
28326
28314
|
},
|
|
28327
28315
|
side,
|
|
28328
|
-
children: /* @__PURE__ */ (0,
|
|
28316
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
28329
28317
|
}
|
|
28330
28318
|
) });
|
|
28331
28319
|
}
|
|
28332
|
-
return /* @__PURE__ */ (0,
|
|
28320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
28333
28321
|
"div",
|
|
28334
28322
|
{
|
|
28335
28323
|
ref,
|
|
@@ -28339,7 +28327,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
28339
28327
|
"data-variant": variant,
|
|
28340
28328
|
"data-side": side,
|
|
28341
28329
|
children: [
|
|
28342
|
-
/* @__PURE__ */ (0,
|
|
28330
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28343
28331
|
"div",
|
|
28344
28332
|
{
|
|
28345
28333
|
className: cn(
|
|
@@ -28350,7 +28338,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
28350
28338
|
)
|
|
28351
28339
|
}
|
|
28352
28340
|
),
|
|
28353
|
-
/* @__PURE__ */ (0,
|
|
28341
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28354
28342
|
"div",
|
|
28355
28343
|
{
|
|
28356
28344
|
className: cn(
|
|
@@ -28361,7 +28349,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
28361
28349
|
className
|
|
28362
28350
|
),
|
|
28363
28351
|
...props,
|
|
28364
|
-
children: /* @__PURE__ */ (0,
|
|
28352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28365
28353
|
"div",
|
|
28366
28354
|
{
|
|
28367
28355
|
"data-sidebar": "sidebar",
|
|
@@ -28379,7 +28367,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
28379
28367
|
var SidebarTrigger = React59.forwardRef(
|
|
28380
28368
|
({ className, onClick, ...props }, ref) => {
|
|
28381
28369
|
const { toggleSidebar } = useSidebar();
|
|
28382
|
-
return /* @__PURE__ */ (0,
|
|
28370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
28383
28371
|
Button,
|
|
28384
28372
|
{
|
|
28385
28373
|
ref,
|
|
@@ -28393,8 +28381,8 @@ var SidebarTrigger = React59.forwardRef(
|
|
|
28393
28381
|
},
|
|
28394
28382
|
...props,
|
|
28395
28383
|
children: [
|
|
28396
|
-
/* @__PURE__ */ (0,
|
|
28397
|
-
/* @__PURE__ */ (0,
|
|
28384
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_lucide_react32.PanelLeft, {}),
|
|
28385
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
28398
28386
|
]
|
|
28399
28387
|
}
|
|
28400
28388
|
);
|
|
@@ -28404,7 +28392,7 @@ SidebarTrigger.displayName = "SidebarTrigger";
|
|
|
28404
28392
|
var SidebarRail = React59.forwardRef(
|
|
28405
28393
|
({ className, ...props }, ref) => {
|
|
28406
28394
|
const { toggleSidebar } = useSidebar();
|
|
28407
|
-
return /* @__PURE__ */ (0,
|
|
28395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28408
28396
|
"button",
|
|
28409
28397
|
{
|
|
28410
28398
|
ref,
|
|
@@ -28429,7 +28417,7 @@ var SidebarRail = React59.forwardRef(
|
|
|
28429
28417
|
);
|
|
28430
28418
|
SidebarRail.displayName = "SidebarRail";
|
|
28431
28419
|
var SidebarInset = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28432
|
-
return /* @__PURE__ */ (0,
|
|
28420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28433
28421
|
"main",
|
|
28434
28422
|
{
|
|
28435
28423
|
ref,
|
|
@@ -28445,7 +28433,7 @@ var SidebarInset = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
28445
28433
|
SidebarInset.displayName = "SidebarInset";
|
|
28446
28434
|
var SidebarInput = React59.forwardRef(
|
|
28447
28435
|
({ className, ...props }, ref) => {
|
|
28448
|
-
return /* @__PURE__ */ (0,
|
|
28436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28449
28437
|
Input,
|
|
28450
28438
|
{
|
|
28451
28439
|
ref,
|
|
@@ -28461,16 +28449,16 @@ var SidebarInput = React59.forwardRef(
|
|
|
28461
28449
|
);
|
|
28462
28450
|
SidebarInput.displayName = "SidebarInput";
|
|
28463
28451
|
var SidebarHeader = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28464
|
-
return /* @__PURE__ */ (0,
|
|
28452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
28465
28453
|
});
|
|
28466
28454
|
SidebarHeader.displayName = "SidebarHeader";
|
|
28467
28455
|
var SidebarFooter = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28468
|
-
return /* @__PURE__ */ (0,
|
|
28456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
28469
28457
|
});
|
|
28470
28458
|
SidebarFooter.displayName = "SidebarFooter";
|
|
28471
28459
|
var SidebarSeparator = React59.forwardRef(
|
|
28472
28460
|
({ className, ...props }, ref) => {
|
|
28473
|
-
return /* @__PURE__ */ (0,
|
|
28461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28474
28462
|
Separator5,
|
|
28475
28463
|
{
|
|
28476
28464
|
ref,
|
|
@@ -28483,7 +28471,7 @@ var SidebarSeparator = React59.forwardRef(
|
|
|
28483
28471
|
);
|
|
28484
28472
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
28485
28473
|
var SidebarContent = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28486
|
-
return /* @__PURE__ */ (0,
|
|
28474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28487
28475
|
"div",
|
|
28488
28476
|
{
|
|
28489
28477
|
ref,
|
|
@@ -28498,7 +28486,7 @@ var SidebarContent = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
28498
28486
|
});
|
|
28499
28487
|
SidebarContent.displayName = "SidebarContent";
|
|
28500
28488
|
var SidebarGroup = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28501
|
-
return /* @__PURE__ */ (0,
|
|
28489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28502
28490
|
"div",
|
|
28503
28491
|
{
|
|
28504
28492
|
ref,
|
|
@@ -28512,7 +28500,7 @@ SidebarGroup.displayName = "SidebarGroup";
|
|
|
28512
28500
|
var SidebarGroupLabel = React59.forwardRef(
|
|
28513
28501
|
({ className, asChild = false, ...props }, ref) => {
|
|
28514
28502
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
28515
|
-
return /* @__PURE__ */ (0,
|
|
28503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28516
28504
|
Comp,
|
|
28517
28505
|
{
|
|
28518
28506
|
ref,
|
|
@@ -28531,7 +28519,7 @@ SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
|
28531
28519
|
var SidebarGroupAction = React59.forwardRef(
|
|
28532
28520
|
({ className, asChild = false, ...props }, ref) => {
|
|
28533
28521
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
28534
|
-
return /* @__PURE__ */ (0,
|
|
28522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28535
28523
|
Comp,
|
|
28536
28524
|
{
|
|
28537
28525
|
ref,
|
|
@@ -28550,12 +28538,12 @@ var SidebarGroupAction = React59.forwardRef(
|
|
|
28550
28538
|
);
|
|
28551
28539
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
28552
28540
|
var SidebarGroupContent = React59.forwardRef(
|
|
28553
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28541
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
28554
28542
|
);
|
|
28555
28543
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
28556
|
-
var SidebarMenu = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28544
|
+
var SidebarMenu = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
28557
28545
|
SidebarMenu.displayName = "SidebarMenu";
|
|
28558
|
-
var SidebarMenuItem = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28546
|
+
var SidebarMenuItem = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
28559
28547
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
28560
28548
|
var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
28561
28549
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none 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:pr-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",
|
|
@@ -28580,7 +28568,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
|
28580
28568
|
var SidebarMenuButton = React59.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
28581
28569
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
28582
28570
|
const { isMobile, state } = useSidebar();
|
|
28583
|
-
const button = /* @__PURE__ */ (0,
|
|
28571
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28584
28572
|
Comp,
|
|
28585
28573
|
{
|
|
28586
28574
|
ref,
|
|
@@ -28599,15 +28587,15 @@ var SidebarMenuButton = React59.forwardRef(({ asChild = false, isActive = false,
|
|
|
28599
28587
|
children: tooltip
|
|
28600
28588
|
};
|
|
28601
28589
|
}
|
|
28602
|
-
return /* @__PURE__ */ (0,
|
|
28603
|
-
/* @__PURE__ */ (0,
|
|
28604
|
-
/* @__PURE__ */ (0,
|
|
28590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Tooltip, { children: [
|
|
28591
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
28592
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
28605
28593
|
] });
|
|
28606
28594
|
});
|
|
28607
28595
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
28608
28596
|
var SidebarMenuAction = React59.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
28609
28597
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
28610
|
-
return /* @__PURE__ */ (0,
|
|
28598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28611
28599
|
Comp,
|
|
28612
28600
|
{
|
|
28613
28601
|
ref,
|
|
@@ -28629,7 +28617,7 @@ var SidebarMenuAction = React59.forwardRef(({ className, asChild = false, showOn
|
|
|
28629
28617
|
});
|
|
28630
28618
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
28631
28619
|
var SidebarMenuBadge = React59.forwardRef(
|
|
28632
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28620
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28633
28621
|
"div",
|
|
28634
28622
|
{
|
|
28635
28623
|
ref,
|
|
@@ -28652,7 +28640,7 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28652
28640
|
const width = React59.useMemo(() => {
|
|
28653
28641
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
28654
28642
|
}, []);
|
|
28655
|
-
return /* @__PURE__ */ (0,
|
|
28643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
28656
28644
|
"div",
|
|
28657
28645
|
{
|
|
28658
28646
|
ref,
|
|
@@ -28660,8 +28648,8 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28660
28648
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
28661
28649
|
...props,
|
|
28662
28650
|
children: [
|
|
28663
|
-
showIcon && /* @__PURE__ */ (0,
|
|
28664
|
-
/* @__PURE__ */ (0,
|
|
28651
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
28652
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28665
28653
|
Skeleton,
|
|
28666
28654
|
{
|
|
28667
28655
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -28677,7 +28665,7 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28677
28665
|
});
|
|
28678
28666
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
28679
28667
|
var SidebarMenuSub = React59.forwardRef(
|
|
28680
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28668
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28681
28669
|
"ul",
|
|
28682
28670
|
{
|
|
28683
28671
|
ref,
|
|
@@ -28692,11 +28680,11 @@ var SidebarMenuSub = React59.forwardRef(
|
|
|
28692
28680
|
)
|
|
28693
28681
|
);
|
|
28694
28682
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
28695
|
-
var SidebarMenuSubItem = React59.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
28683
|
+
var SidebarMenuSubItem = React59.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("li", { ref, ...props }));
|
|
28696
28684
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
28697
28685
|
var SidebarMenuSubButton = React59.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
28698
28686
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
28699
|
-
return /* @__PURE__ */ (0,
|
|
28687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
28700
28688
|
Comp,
|
|
28701
28689
|
{
|
|
28702
28690
|
ref,
|
|
@@ -28720,16 +28708,16 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
|
28720
28708
|
// src/components/ui/slider.tsx
|
|
28721
28709
|
var React60 = __toESM(require("react"), 1);
|
|
28722
28710
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
28723
|
-
var
|
|
28724
|
-
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28711
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
28712
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
28725
28713
|
SliderPrimitive.Root,
|
|
28726
28714
|
{
|
|
28727
28715
|
ref,
|
|
28728
28716
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
28729
28717
|
...props,
|
|
28730
28718
|
children: [
|
|
28731
|
-
/* @__PURE__ */ (0,
|
|
28732
|
-
/* @__PURE__ */ (0,
|
|
28719
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
28720
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
28733
28721
|
]
|
|
28734
28722
|
}
|
|
28735
28723
|
));
|
|
@@ -28737,25 +28725,25 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
28737
28725
|
|
|
28738
28726
|
// src/components/ui/table.tsx
|
|
28739
28727
|
var React61 = __toESM(require("react"), 1);
|
|
28740
|
-
var
|
|
28728
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
28741
28729
|
var Table = React61.forwardRef(
|
|
28742
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28730
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
28743
28731
|
);
|
|
28744
28732
|
Table.displayName = "Table";
|
|
28745
28733
|
var TableHeader = React61.forwardRef(
|
|
28746
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28734
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
28747
28735
|
);
|
|
28748
28736
|
TableHeader.displayName = "TableHeader";
|
|
28749
28737
|
var TableBody = React61.forwardRef(
|
|
28750
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28738
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
28751
28739
|
);
|
|
28752
28740
|
TableBody.displayName = "TableBody";
|
|
28753
28741
|
var TableFooter = React61.forwardRef(
|
|
28754
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28742
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
28755
28743
|
);
|
|
28756
28744
|
TableFooter.displayName = "TableFooter";
|
|
28757
28745
|
var TableRow = React61.forwardRef(
|
|
28758
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28746
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
28759
28747
|
"tr",
|
|
28760
28748
|
{
|
|
28761
28749
|
ref,
|
|
@@ -28766,7 +28754,7 @@ var TableRow = React61.forwardRef(
|
|
|
28766
28754
|
);
|
|
28767
28755
|
TableRow.displayName = "TableRow";
|
|
28768
28756
|
var TableHead = React61.forwardRef(
|
|
28769
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28757
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
28770
28758
|
"th",
|
|
28771
28759
|
{
|
|
28772
28760
|
ref,
|
|
@@ -28780,11 +28768,11 @@ var TableHead = React61.forwardRef(
|
|
|
28780
28768
|
);
|
|
28781
28769
|
TableHead.displayName = "TableHead";
|
|
28782
28770
|
var TableCell = React61.forwardRef(
|
|
28783
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28771
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })
|
|
28784
28772
|
);
|
|
28785
28773
|
TableCell.displayName = "TableCell";
|
|
28786
28774
|
var TableCaption = React61.forwardRef(
|
|
28787
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28775
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
28788
28776
|
);
|
|
28789
28777
|
TableCaption.displayName = "TableCaption";
|
|
28790
28778
|
|
|
@@ -28793,9 +28781,9 @@ var React62 = __toESM(require("react"), 1);
|
|
|
28793
28781
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
28794
28782
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
28795
28783
|
var import_lucide_react33 = require("lucide-react");
|
|
28796
|
-
var
|
|
28784
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
28797
28785
|
var ToastProvider = ToastPrimitives.Provider;
|
|
28798
|
-
var ToastViewport = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28786
|
+
var ToastViewport = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
28799
28787
|
ToastPrimitives.Viewport,
|
|
28800
28788
|
{
|
|
28801
28789
|
ref,
|
|
@@ -28822,10 +28810,10 @@ var toastVariants = (0, import_class_variance_authority8.cva)(
|
|
|
28822
28810
|
}
|
|
28823
28811
|
);
|
|
28824
28812
|
var Toast = React62.forwardRef(({ className, variant, ...props }, ref) => {
|
|
28825
|
-
return /* @__PURE__ */ (0,
|
|
28813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ToastPrimitives.Root, { ref, className: cn(toastVariants({ variant }), className), ...props });
|
|
28826
28814
|
});
|
|
28827
28815
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
28828
|
-
var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28816
|
+
var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
28829
28817
|
ToastPrimitives.Action,
|
|
28830
28818
|
{
|
|
28831
28819
|
ref,
|
|
@@ -28837,7 +28825,7 @@ var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
28837
28825
|
}
|
|
28838
28826
|
));
|
|
28839
28827
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
28840
|
-
var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28828
|
+
var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
28841
28829
|
ToastPrimitives.Close,
|
|
28842
28830
|
{
|
|
28843
28831
|
ref,
|
|
@@ -28851,31 +28839,31 @@ var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /
|
|
|
28851
28839
|
},
|
|
28852
28840
|
"toast-close": "",
|
|
28853
28841
|
...props,
|
|
28854
|
-
children: /* @__PURE__ */ (0,
|
|
28842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_lucide_react33.X, { className: "h-4 w-4" })
|
|
28855
28843
|
}
|
|
28856
28844
|
));
|
|
28857
28845
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
28858
|
-
var ToastTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28846
|
+
var ToastTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
28859
28847
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
28860
|
-
var ToastDescription = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28848
|
+
var ToastDescription = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ToastPrimitives.Description, { ref, className: cn("text-sm opacity-90", className), ...props }));
|
|
28861
28849
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
28862
28850
|
|
|
28863
28851
|
// src/components/ui/toaster.tsx
|
|
28864
|
-
var
|
|
28852
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
28865
28853
|
function Toaster2() {
|
|
28866
28854
|
const { toasts } = useToast();
|
|
28867
|
-
return /* @__PURE__ */ (0,
|
|
28855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(ToastProvider, { children: [
|
|
28868
28856
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
28869
|
-
return /* @__PURE__ */ (0,
|
|
28870
|
-
/* @__PURE__ */ (0,
|
|
28871
|
-
title && /* @__PURE__ */ (0,
|
|
28872
|
-
description && /* @__PURE__ */ (0,
|
|
28857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Toast, { ...props, children: [
|
|
28858
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "grid gap-1", children: [
|
|
28859
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ToastTitle, { children: title }),
|
|
28860
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ToastDescription, { children: description })
|
|
28873
28861
|
] }),
|
|
28874
28862
|
action,
|
|
28875
|
-
/* @__PURE__ */ (0,
|
|
28863
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ToastClose, {})
|
|
28876
28864
|
] }, id);
|
|
28877
28865
|
}),
|
|
28878
|
-
/* @__PURE__ */ (0,
|
|
28866
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ToastViewport, {})
|
|
28879
28867
|
] });
|
|
28880
28868
|
}
|
|
28881
28869
|
|
|
@@ -28883,7 +28871,7 @@ function Toaster2() {
|
|
|
28883
28871
|
var React63 = __toESM(require("react"), 1);
|
|
28884
28872
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
28885
28873
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
28886
|
-
var
|
|
28874
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
28887
28875
|
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
28888
28876
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
28889
28877
|
{
|
|
@@ -28904,22 +28892,22 @@ var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
|
28904
28892
|
}
|
|
28905
28893
|
}
|
|
28906
28894
|
);
|
|
28907
|
-
var Toggle = React63.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28895
|
+
var Toggle = React63.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
28908
28896
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
28909
28897
|
|
|
28910
28898
|
// src/components/ui/toggle-group.tsx
|
|
28911
28899
|
var React64 = __toESM(require("react"), 1);
|
|
28912
28900
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
28913
|
-
var
|
|
28901
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
28914
28902
|
var ToggleGroupContext = React64.createContext({
|
|
28915
28903
|
size: "default",
|
|
28916
28904
|
variant: "default"
|
|
28917
28905
|
});
|
|
28918
|
-
var ToggleGroup = React64.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28906
|
+
var ToggleGroup = React64.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
28919
28907
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
28920
28908
|
var ToggleGroupItem = React64.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
28921
28909
|
const context = React64.useContext(ToggleGroupContext);
|
|
28922
|
-
return /* @__PURE__ */ (0,
|
|
28910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
28923
28911
|
ToggleGroupPrimitive.Item,
|
|
28924
28912
|
{
|
|
28925
28913
|
ref,
|
|
@@ -29028,7 +29016,7 @@ var useLayoutModeControl = () => {
|
|
|
29028
29016
|
|
|
29029
29017
|
// src/lib/auth.tsx
|
|
29030
29018
|
var import_react28 = require("react");
|
|
29031
|
-
var
|
|
29019
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
29032
29020
|
var STORAGE_KEYS = {
|
|
29033
29021
|
accessToken: "cc_access_token",
|
|
29034
29022
|
idToken: "cc_id_token",
|
|
@@ -29916,7 +29904,7 @@ var AuthProvider = ({ children }) => {
|
|
|
29916
29904
|
}),
|
|
29917
29905
|
[status, user, accessToken, login, logout, completeLogin, getAccessToken, presenceStatus, setPresenceStatus]
|
|
29918
29906
|
);
|
|
29919
|
-
return /* @__PURE__ */ (0,
|
|
29907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(AuthContext.Provider, { value, children });
|
|
29920
29908
|
};
|
|
29921
29909
|
var useAuth = () => {
|
|
29922
29910
|
const ctx = (0, import_react28.useContext)(AuthContext);
|