@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.js
CHANGED
|
@@ -2118,47 +2118,6 @@ var NavbarCupcode = ({
|
|
|
2118
2118
|
};
|
|
2119
2119
|
var NavbarCupcode_default = NavbarCupcode;
|
|
2120
2120
|
|
|
2121
|
-
// src/components/cupcode/TelescupImage.tsx
|
|
2122
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2123
|
-
var TelescupImage = ({
|
|
2124
|
-
apiId,
|
|
2125
|
-
imageWidth,
|
|
2126
|
-
imageHeight,
|
|
2127
|
-
fit = "cover",
|
|
2128
|
-
format = "avif",
|
|
2129
|
-
quality = 60,
|
|
2130
|
-
lang = "pt-BR",
|
|
2131
|
-
alt,
|
|
2132
|
-
title,
|
|
2133
|
-
loading = "lazy",
|
|
2134
|
-
className,
|
|
2135
|
-
...props
|
|
2136
|
-
}) => {
|
|
2137
|
-
const { url, meta } = useTelescupImage(
|
|
2138
|
-
{
|
|
2139
|
-
id: apiId,
|
|
2140
|
-
width: imageWidth,
|
|
2141
|
-
height: imageHeight,
|
|
2142
|
-
fit,
|
|
2143
|
-
format,
|
|
2144
|
-
quality
|
|
2145
|
-
},
|
|
2146
|
-
lang
|
|
2147
|
-
);
|
|
2148
|
-
return /* @__PURE__ */ jsx12(
|
|
2149
|
-
"img",
|
|
2150
|
-
{
|
|
2151
|
-
src: url,
|
|
2152
|
-
"data-api-id": apiId,
|
|
2153
|
-
alt: alt || meta.alt || "",
|
|
2154
|
-
title: title || meta.title,
|
|
2155
|
-
loading,
|
|
2156
|
-
className,
|
|
2157
|
-
...props
|
|
2158
|
-
}
|
|
2159
|
-
);
|
|
2160
|
-
};
|
|
2161
|
-
|
|
2162
2121
|
// src/components/cupcode/UserMenuCupcode.tsx
|
|
2163
2122
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
2164
2123
|
import {
|
|
@@ -2218,7 +2177,7 @@ import {
|
|
|
2218
2177
|
import * as React6 from "react";
|
|
2219
2178
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2220
2179
|
import { Check, ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
2221
|
-
import { jsx as
|
|
2180
|
+
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2222
2181
|
var Select = SelectPrimitive.Root;
|
|
2223
2182
|
var SelectGroup = SelectPrimitive.Group;
|
|
2224
2183
|
var SelectValue = SelectPrimitive.Value;
|
|
@@ -2233,32 +2192,32 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
|
|
|
2233
2192
|
...props,
|
|
2234
2193
|
children: [
|
|
2235
2194
|
children,
|
|
2236
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ jsx12(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx12(ChevronDown2, { className: "h-4 w-4 opacity-50" }) })
|
|
2237
2196
|
]
|
|
2238
2197
|
}
|
|
2239
2198
|
));
|
|
2240
2199
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2241
|
-
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2200
|
+
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
2242
2201
|
SelectPrimitive.ScrollUpButton,
|
|
2243
2202
|
{
|
|
2244
2203
|
ref,
|
|
2245
2204
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2246
2205
|
...props,
|
|
2247
|
-
children: /* @__PURE__ */
|
|
2206
|
+
children: /* @__PURE__ */ jsx12(ChevronUp, { className: "h-4 w-4" })
|
|
2248
2207
|
}
|
|
2249
2208
|
));
|
|
2250
2209
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2251
|
-
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2210
|
+
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
2252
2211
|
SelectPrimitive.ScrollDownButton,
|
|
2253
2212
|
{
|
|
2254
2213
|
ref,
|
|
2255
2214
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2256
2215
|
...props,
|
|
2257
|
-
children: /* @__PURE__ */
|
|
2216
|
+
children: /* @__PURE__ */ jsx12(ChevronDown2, { className: "h-4 w-4" })
|
|
2258
2217
|
}
|
|
2259
2218
|
));
|
|
2260
2219
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2261
|
-
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
2220
|
+
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx12(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs10(
|
|
2262
2221
|
SelectPrimitive.Content,
|
|
2263
2222
|
{
|
|
2264
2223
|
ref,
|
|
@@ -2270,8 +2229,8 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
2270
2229
|
position,
|
|
2271
2230
|
...props,
|
|
2272
2231
|
children: [
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ jsx12(SelectScrollUpButton, {}),
|
|
2233
|
+
/* @__PURE__ */ jsx12(
|
|
2275
2234
|
SelectPrimitive.Viewport,
|
|
2276
2235
|
{
|
|
2277
2236
|
className: cn(
|
|
@@ -2281,12 +2240,12 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
2281
2240
|
children
|
|
2282
2241
|
}
|
|
2283
2242
|
),
|
|
2284
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx12(SelectScrollDownButton, {})
|
|
2285
2244
|
]
|
|
2286
2245
|
}
|
|
2287
2246
|
) }));
|
|
2288
2247
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2289
|
-
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2248
|
+
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
2290
2249
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2291
2250
|
var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
2292
2251
|
SelectPrimitive.Item,
|
|
@@ -2298,20 +2257,20 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
2298
2257
|
),
|
|
2299
2258
|
...props,
|
|
2300
2259
|
children: [
|
|
2301
|
-
/* @__PURE__ */
|
|
2302
|
-
/* @__PURE__ */
|
|
2260
|
+
/* @__PURE__ */ jsx12("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx12(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx12(Check, { className: "h-4 w-4" }) }) }),
|
|
2261
|
+
/* @__PURE__ */ jsx12(SelectPrimitive.ItemText, { children })
|
|
2303
2262
|
]
|
|
2304
2263
|
}
|
|
2305
2264
|
));
|
|
2306
2265
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2307
|
-
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2266
|
+
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2308
2267
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2309
2268
|
|
|
2310
2269
|
// src/components/ui/avatar.tsx
|
|
2311
2270
|
import * as React7 from "react";
|
|
2312
2271
|
import * as AvatarPrimitive2 from "@radix-ui/react-avatar";
|
|
2313
|
-
import { jsx as
|
|
2314
|
-
var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2272
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2273
|
+
var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
2315
2274
|
AvatarPrimitive2.Root,
|
|
2316
2275
|
{
|
|
2317
2276
|
ref,
|
|
@@ -2320,7 +2279,7 @@ var Avatar2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2320
2279
|
}
|
|
2321
2280
|
));
|
|
2322
2281
|
Avatar2.displayName = AvatarPrimitive2.Root.displayName;
|
|
2323
|
-
var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2282
|
+
var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
2324
2283
|
AvatarPrimitive2.Image,
|
|
2325
2284
|
{
|
|
2326
2285
|
ref,
|
|
@@ -2329,7 +2288,7 @@ var AvatarImage2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2329
2288
|
}
|
|
2330
2289
|
));
|
|
2331
2290
|
AvatarImage2.displayName = AvatarPrimitive2.Image.displayName;
|
|
2332
|
-
var AvatarFallback2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2291
|
+
var AvatarFallback2 = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
2333
2292
|
AvatarPrimitive2.Fallback,
|
|
2334
2293
|
{
|
|
2335
2294
|
ref,
|
|
@@ -2388,7 +2347,7 @@ function responsiveSizeClasses(s, currentBp) {
|
|
|
2388
2347
|
|
|
2389
2348
|
// src/components/cupcode/JellyButton.tsx
|
|
2390
2349
|
import { forwardRef as forwardRef8 } from "react";
|
|
2391
|
-
import { jsx as
|
|
2350
|
+
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2392
2351
|
var JellyButton = forwardRef8(
|
|
2393
2352
|
({ variant = "primary", size = "md", className, children, type = "button", ...props }, ref) => {
|
|
2394
2353
|
const sizeClass = {
|
|
@@ -2406,14 +2365,14 @@ var JellyButton = forwardRef8(
|
|
|
2406
2365
|
...props,
|
|
2407
2366
|
children: [
|
|
2408
2367
|
/* @__PURE__ */ jsxs11("span", { className: "cc-blob-cta__color-wrap", "aria-hidden": "true", children: [
|
|
2409
|
-
/* @__PURE__ */
|
|
2410
|
-
/* @__PURE__ */
|
|
2411
|
-
/* @__PURE__ */
|
|
2412
|
-
/* @__PURE__ */
|
|
2368
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__color cc-blob-cta__color--1" }),
|
|
2369
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__color cc-blob-cta__color--3" }),
|
|
2370
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__color cc-blob-cta__color--2" }),
|
|
2371
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__bg" })
|
|
2413
2372
|
] }),
|
|
2414
|
-
/* @__PURE__ */
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */
|
|
2373
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__label", children }),
|
|
2374
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__glow cc-blob-cta__glow--1", "aria-hidden": "true" }),
|
|
2375
|
+
/* @__PURE__ */ jsx14("span", { className: "cc-blob-cta__glow cc-blob-cta__glow--2", "aria-hidden": "true" })
|
|
2417
2376
|
]
|
|
2418
2377
|
}
|
|
2419
2378
|
);
|
|
@@ -2422,7 +2381,7 @@ var JellyButton = forwardRef8(
|
|
|
2422
2381
|
JellyButton.displayName = "JellyButton";
|
|
2423
2382
|
|
|
2424
2383
|
// src/components/cupcode/JellyButtonOriginal.tsx
|
|
2425
|
-
import { jsx as
|
|
2384
|
+
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2426
2385
|
var resolveResponsiveSize = (value, currentBp) => {
|
|
2427
2386
|
var _a78, _b7, _c, _d, _e;
|
|
2428
2387
|
if (typeof value === "string") {
|
|
@@ -2472,7 +2431,7 @@ function JellyButtonOriginal({
|
|
|
2472
2431
|
window.location.href = href;
|
|
2473
2432
|
}
|
|
2474
2433
|
};
|
|
2475
|
-
return /* @__PURE__ */
|
|
2434
|
+
return /* @__PURE__ */ jsx15(
|
|
2476
2435
|
JellyButton,
|
|
2477
2436
|
{
|
|
2478
2437
|
variant: color === "green" ? "original-green" : "original-pink",
|
|
@@ -2480,8 +2439,8 @@ function JellyButtonOriginal({
|
|
|
2480
2439
|
className,
|
|
2481
2440
|
onClick: handleClick,
|
|
2482
2441
|
children: /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-2", children: [
|
|
2483
|
-
icon ? /* @__PURE__ */
|
|
2484
|
-
/* @__PURE__ */
|
|
2442
|
+
icon ? /* @__PURE__ */ jsx15("span", { className: "inline-flex items-center justify-center", children: icon }) : null,
|
|
2443
|
+
/* @__PURE__ */ jsx15("span", { children: label })
|
|
2485
2444
|
] })
|
|
2486
2445
|
}
|
|
2487
2446
|
);
|
|
@@ -2491,7 +2450,7 @@ function JellyButtonOriginal({
|
|
|
2491
2450
|
import * as React8 from "react";
|
|
2492
2451
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2493
2452
|
import { Check as Check2, ChevronRight, Circle } from "lucide-react";
|
|
2494
|
-
import { jsx as
|
|
2453
|
+
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2495
2454
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2496
2455
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2497
2456
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
@@ -2510,12 +2469,12 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
|
|
|
2510
2469
|
...props,
|
|
2511
2470
|
children: [
|
|
2512
2471
|
children,
|
|
2513
|
-
/* @__PURE__ */
|
|
2472
|
+
/* @__PURE__ */ jsx16(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
2514
2473
|
]
|
|
2515
2474
|
}
|
|
2516
2475
|
));
|
|
2517
2476
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2518
|
-
var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2477
|
+
var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
2519
2478
|
DropdownMenuPrimitive.SubContent,
|
|
2520
2479
|
{
|
|
2521
2480
|
ref,
|
|
@@ -2527,7 +2486,7 @@ var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) =>
|
|
|
2527
2486
|
}
|
|
2528
2487
|
));
|
|
2529
2488
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2530
|
-
var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
2489
|
+
var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx16(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx16(
|
|
2531
2490
|
DropdownMenuPrimitive.Content,
|
|
2532
2491
|
{
|
|
2533
2492
|
ref,
|
|
@@ -2540,7 +2499,7 @@ var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
2540
2499
|
}
|
|
2541
2500
|
) }));
|
|
2542
2501
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2543
|
-
var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
2502
|
+
var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
2544
2503
|
DropdownMenuPrimitive.Item,
|
|
2545
2504
|
{
|
|
2546
2505
|
ref,
|
|
@@ -2564,7 +2523,7 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
|
|
|
2564
2523
|
checked,
|
|
2565
2524
|
...props,
|
|
2566
2525
|
children: [
|
|
2567
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ jsx16("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx16(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx16(Check2, { className: "h-4 w-4" }) }) }),
|
|
2568
2527
|
children
|
|
2569
2528
|
]
|
|
2570
2529
|
}
|
|
@@ -2580,13 +2539,13 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
|
|
|
2580
2539
|
),
|
|
2581
2540
|
...props,
|
|
2582
2541
|
children: [
|
|
2583
|
-
/* @__PURE__ */
|
|
2542
|
+
/* @__PURE__ */ jsx16("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx16(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx16(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2584
2543
|
children
|
|
2585
2544
|
]
|
|
2586
2545
|
}
|
|
2587
2546
|
));
|
|
2588
2547
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2589
|
-
var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
2548
|
+
var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
2590
2549
|
DropdownMenuPrimitive.Label,
|
|
2591
2550
|
{
|
|
2592
2551
|
ref,
|
|
@@ -2595,10 +2554,10 @@ var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2595
2554
|
}
|
|
2596
2555
|
));
|
|
2597
2556
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2598
|
-
var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2557
|
+
var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2599
2558
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
2600
2559
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
2601
|
-
return /* @__PURE__ */
|
|
2560
|
+
return /* @__PURE__ */ jsx16("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
2602
2561
|
};
|
|
2603
2562
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2604
2563
|
|
|
@@ -2610,7 +2569,7 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
|
2610
2569
|
import * as React9 from "react";
|
|
2611
2570
|
import { Slot } from "@radix-ui/react-slot";
|
|
2612
2571
|
import { cva } from "class-variance-authority";
|
|
2613
|
-
import { jsx as
|
|
2572
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2614
2573
|
var buttonVariants = cva(
|
|
2615
2574
|
"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",
|
|
2616
2575
|
{
|
|
@@ -2640,17 +2599,17 @@ var buttonVariants = cva(
|
|
|
2640
2599
|
var Button = React9.forwardRef(
|
|
2641
2600
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
2642
2601
|
const Comp = asChild ? Slot : "button";
|
|
2643
|
-
return /* @__PURE__ */
|
|
2602
|
+
return /* @__PURE__ */ jsx17(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
2644
2603
|
}
|
|
2645
2604
|
);
|
|
2646
2605
|
Button.displayName = "Button";
|
|
2647
2606
|
|
|
2648
2607
|
// src/components/ui/alert-dialog.tsx
|
|
2649
|
-
import { jsx as
|
|
2608
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2650
2609
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
2651
2610
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
2652
2611
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
2653
|
-
var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2612
|
+
var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
2654
2613
|
AlertDialogPrimitive.Overlay,
|
|
2655
2614
|
{
|
|
2656
2615
|
className: cn(
|
|
@@ -2663,8 +2622,8 @@ var AlertDialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2663
2622
|
));
|
|
2664
2623
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
2665
2624
|
var AlertDialogContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs14(AlertDialogPortal, { children: [
|
|
2666
|
-
/* @__PURE__ */
|
|
2667
|
-
/* @__PURE__ */
|
|
2625
|
+
/* @__PURE__ */ jsx18(AlertDialogOverlay, {}),
|
|
2626
|
+
/* @__PURE__ */ jsx18(
|
|
2668
2627
|
AlertDialogPrimitive.Content,
|
|
2669
2628
|
{
|
|
2670
2629
|
ref,
|
|
@@ -2677,17 +2636,17 @@ var AlertDialogContent = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2677
2636
|
)
|
|
2678
2637
|
] }));
|
|
2679
2638
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
2680
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
2639
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx18("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
2681
2640
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
2682
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
2641
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx18("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
2683
2642
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2684
|
-
var AlertDialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2643
|
+
var AlertDialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
2685
2644
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
2686
|
-
var AlertDialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2645
|
+
var AlertDialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
2687
2646
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
2688
|
-
var AlertDialogAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2647
|
+
var AlertDialogAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
2689
2648
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
2690
|
-
var AlertDialogCancel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2649
|
+
var AlertDialogCancel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
2691
2650
|
AlertDialogPrimitive.Cancel,
|
|
2692
2651
|
{
|
|
2693
2652
|
ref,
|
|
@@ -2701,12 +2660,12 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
|
2701
2660
|
import * as React11 from "react";
|
|
2702
2661
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2703
2662
|
import { X as X3 } from "lucide-react";
|
|
2704
|
-
import { jsx as
|
|
2663
|
+
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2705
2664
|
var Dialog = DialogPrimitive.Root;
|
|
2706
2665
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2707
2666
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2708
2667
|
var DialogClose = DialogPrimitive.Close;
|
|
2709
|
-
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2668
|
+
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2710
2669
|
DialogPrimitive.Overlay,
|
|
2711
2670
|
{
|
|
2712
2671
|
ref,
|
|
@@ -2719,7 +2678,7 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2719
2678
|
));
|
|
2720
2679
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2721
2680
|
var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs15(DialogPortal, { children: [
|
|
2722
|
-
/* @__PURE__ */
|
|
2681
|
+
/* @__PURE__ */ jsx19(DialogOverlay, {}),
|
|
2723
2682
|
/* @__PURE__ */ jsxs15(
|
|
2724
2683
|
DialogPrimitive.Content,
|
|
2725
2684
|
{
|
|
@@ -2732,19 +2691,19 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
2732
2691
|
children: [
|
|
2733
2692
|
children,
|
|
2734
2693
|
/* @__PURE__ */ jsxs15(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: [
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2694
|
+
/* @__PURE__ */ jsx19(X3, { className: "h-4 w-4" }),
|
|
2695
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
2737
2696
|
] })
|
|
2738
2697
|
]
|
|
2739
2698
|
}
|
|
2740
2699
|
)
|
|
2741
2700
|
] }));
|
|
2742
2701
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
2743
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
2702
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx19("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
2744
2703
|
DialogHeader.displayName = "DialogHeader";
|
|
2745
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
2704
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx19("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
2746
2705
|
DialogFooter.displayName = "DialogFooter";
|
|
2747
|
-
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2706
|
+
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2748
2707
|
DialogPrimitive.Title,
|
|
2749
2708
|
{
|
|
2750
2709
|
ref,
|
|
@@ -2753,14 +2712,14 @@ var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2753
2712
|
}
|
|
2754
2713
|
));
|
|
2755
2714
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2756
|
-
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2715
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
2757
2716
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2758
2717
|
|
|
2759
2718
|
// src/components/ui/switch.tsx
|
|
2760
2719
|
import * as React12 from "react";
|
|
2761
2720
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
2762
|
-
import { jsx as
|
|
2763
|
-
var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2721
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2722
|
+
var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2764
2723
|
SwitchPrimitives.Root,
|
|
2765
2724
|
{
|
|
2766
2725
|
className: cn(
|
|
@@ -2769,7 +2728,7 @@ var Switch = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2769
2728
|
),
|
|
2770
2729
|
...props,
|
|
2771
2730
|
ref,
|
|
2772
|
-
children: /* @__PURE__ */
|
|
2731
|
+
children: /* @__PURE__ */ jsx20(
|
|
2773
2732
|
SwitchPrimitives.Thumb,
|
|
2774
2733
|
{
|
|
2775
2734
|
className: cn(
|
|
@@ -4443,6 +4402,47 @@ function useTelescupAssets(options) {
|
|
|
4443
4402
|
};
|
|
4444
4403
|
}
|
|
4445
4404
|
|
|
4405
|
+
// src/components/cupcode/TelescupImage.tsx
|
|
4406
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
4407
|
+
var TelescupImage = ({
|
|
4408
|
+
apiId,
|
|
4409
|
+
imageWidth,
|
|
4410
|
+
imageHeight,
|
|
4411
|
+
fit = "cover",
|
|
4412
|
+
format = "avif",
|
|
4413
|
+
quality = 60,
|
|
4414
|
+
lang = "pt-BR",
|
|
4415
|
+
alt,
|
|
4416
|
+
title,
|
|
4417
|
+
loading = "lazy",
|
|
4418
|
+
className,
|
|
4419
|
+
...props
|
|
4420
|
+
}) => {
|
|
4421
|
+
const { url, meta } = useTelescupImage(
|
|
4422
|
+
{
|
|
4423
|
+
id: apiId,
|
|
4424
|
+
width: imageWidth,
|
|
4425
|
+
height: imageHeight,
|
|
4426
|
+
fit,
|
|
4427
|
+
format,
|
|
4428
|
+
quality
|
|
4429
|
+
},
|
|
4430
|
+
lang
|
|
4431
|
+
);
|
|
4432
|
+
return /* @__PURE__ */ jsx21(
|
|
4433
|
+
"img",
|
|
4434
|
+
{
|
|
4435
|
+
src: url,
|
|
4436
|
+
"data-api-id": apiId,
|
|
4437
|
+
alt: alt || meta.alt || "",
|
|
4438
|
+
title: title || meta.title,
|
|
4439
|
+
loading,
|
|
4440
|
+
className,
|
|
4441
|
+
...props
|
|
4442
|
+
}
|
|
4443
|
+
);
|
|
4444
|
+
};
|
|
4445
|
+
|
|
4446
4446
|
// src/components/cupcode/TelescupVideo.tsx
|
|
4447
4447
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
4448
4448
|
var TelescupVideo = ({
|
|
@@ -6426,7 +6426,9 @@ var applyThemePreference = (preference) => {
|
|
|
6426
6426
|
const appliedMode = resolveAppliedThemeMode(preference);
|
|
6427
6427
|
root.classList.toggle("dark", appliedMode === "dark");
|
|
6428
6428
|
root.classList.toggle("light", appliedMode === "light");
|
|
6429
|
+
root.dataset.theme = appliedMode;
|
|
6429
6430
|
root.dataset.cupcodeTheme = preference;
|
|
6431
|
+
root.style.colorScheme = appliedMode;
|
|
6430
6432
|
if (typeof window === "undefined") return;
|
|
6431
6433
|
try {
|
|
6432
6434
|
window.localStorage.setItem(THEME_PREFERENCE_STORAGE_KEY, preference);
|
|
@@ -22709,6 +22711,7 @@ var DATE_WITH_YEAR_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", {
|
|
|
22709
22711
|
year: "numeric"
|
|
22710
22712
|
});
|
|
22711
22713
|
var CHAT_FEATURE_FLAGS_STORAGE_KEY = "cc_chat_feature_flags";
|
|
22714
|
+
var DEFAULT_LOGO_SLOT_CLASS_NAME = "h-10 w-[175px] shrink-0";
|
|
22712
22715
|
var getDefaultChatFeatureFlags = () => ({
|
|
22713
22716
|
hasReadAt: true,
|
|
22714
22717
|
hasReplyToMessage: true,
|
|
@@ -24510,30 +24513,7 @@ var MainNavbar = ({
|
|
|
24510
24513
|
}, [currentPathname, onNavigate, showNavItems]);
|
|
24511
24514
|
const resolvedLogo = useMemo9(() => {
|
|
24512
24515
|
if (logo !== void 0) return logo;
|
|
24513
|
-
return /* @__PURE__ */
|
|
24514
|
-
/* @__PURE__ */ jsx39(
|
|
24515
|
-
TelescupImage,
|
|
24516
|
-
{
|
|
24517
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
24518
|
-
imageWidth: 40,
|
|
24519
|
-
imageHeight: 40,
|
|
24520
|
-
alt: "Design System Cupcode",
|
|
24521
|
-
loading: "eager",
|
|
24522
|
-
className: "h-10 w-auto"
|
|
24523
|
-
}
|
|
24524
|
-
),
|
|
24525
|
-
/* @__PURE__ */ jsx39(
|
|
24526
|
-
TelescupImage,
|
|
24527
|
-
{
|
|
24528
|
-
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
24529
|
-
imageWidth: 120,
|
|
24530
|
-
imageHeight: 32,
|
|
24531
|
-
alt: "Cupcode",
|
|
24532
|
-
loading: "eager",
|
|
24533
|
-
className: "h-8 w-auto"
|
|
24534
|
-
}
|
|
24535
|
-
)
|
|
24536
|
-
] });
|
|
24516
|
+
return /* @__PURE__ */ jsx39("div", { className: DEFAULT_LOGO_SLOT_CLASS_NAME, "aria-hidden": "true" });
|
|
24537
24517
|
}, [logo]);
|
|
24538
24518
|
const handleCtaClick = () => {
|
|
24539
24519
|
if (onNavigate) {
|
|
@@ -24825,48 +24805,6 @@ import { ChevronDown as ChevronDown4, Circle as Circle2, Search as Search2 } fro
|
|
|
24825
24805
|
import { useEffect as useEffect15, useMemo as useMemo10, useRef as useRef11, useState as useState14 } from "react";
|
|
24826
24806
|
import { NavLink, useLocation } from "react-router-dom";
|
|
24827
24807
|
|
|
24828
|
-
// src/components/layout/DsNavbarLogo.tsx
|
|
24829
|
-
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
24830
|
-
var DsNavbarLogo = () => {
|
|
24831
|
-
return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-[15px]", children: [
|
|
24832
|
-
/* @__PURE__ */ jsx40(
|
|
24833
|
-
TelescupImage,
|
|
24834
|
-
{
|
|
24835
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
24836
|
-
imageWidth: 40,
|
|
24837
|
-
imageHeight: 40,
|
|
24838
|
-
alt: "Design System Cupcode",
|
|
24839
|
-
loading: "eager",
|
|
24840
|
-
className: "h-10 w-auto"
|
|
24841
|
-
}
|
|
24842
|
-
),
|
|
24843
|
-
/* @__PURE__ */ jsx40(
|
|
24844
|
-
TelescupImage,
|
|
24845
|
-
{
|
|
24846
|
-
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
24847
|
-
imageWidth: 120,
|
|
24848
|
-
imageHeight: 32,
|
|
24849
|
-
alt: "Cupcode",
|
|
24850
|
-
loading: "eager",
|
|
24851
|
-
className: "h-8 w-auto"
|
|
24852
|
-
}
|
|
24853
|
-
)
|
|
24854
|
-
] });
|
|
24855
|
-
};
|
|
24856
|
-
var DsNavbarCompactLogo = () => {
|
|
24857
|
-
return /* @__PURE__ */ jsx40(
|
|
24858
|
-
TelescupImage,
|
|
24859
|
-
{
|
|
24860
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
24861
|
-
imageWidth: 32,
|
|
24862
|
-
imageHeight: 32,
|
|
24863
|
-
alt: "Cupcode",
|
|
24864
|
-
loading: "eager",
|
|
24865
|
-
className: "h-8 w-8 rounded-lg object-contain"
|
|
24866
|
-
}
|
|
24867
|
-
);
|
|
24868
|
-
};
|
|
24869
|
-
|
|
24870
24808
|
// src/components/layout/sidebar-groups.tsx
|
|
24871
24809
|
var toStableId = (value) => value.toLowerCase().normalize("NFD").replace(/\p{Diacritic}+/gu, "").replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)+/g, "");
|
|
24872
24810
|
var getGroupMetadata = (item) => {
|
|
@@ -24911,13 +24849,15 @@ var buildSidebarGroupsFromNavItems = (items, defaultGroupLabel = "Principal") =>
|
|
|
24911
24849
|
var defaultSidebarGroups = buildSidebarGroupsFromNavItems(getMainNavItems());
|
|
24912
24850
|
|
|
24913
24851
|
// src/components/layout/sidebar.tsx
|
|
24914
|
-
import { jsx as
|
|
24852
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
24915
24853
|
var findGroupByRoute = (groups, pathname) => {
|
|
24916
24854
|
var _a78, _b7;
|
|
24917
24855
|
return (_b7 = (_a78 = groups.find((group) => group.items.some((item) => item.route === pathname))) == null ? void 0 : _a78.label) != null ? _b7 : null;
|
|
24918
24856
|
};
|
|
24919
|
-
var IconFallback = () => /* @__PURE__ */
|
|
24920
|
-
var
|
|
24857
|
+
var IconFallback = () => /* @__PURE__ */ jsx40(Circle2, { className: "h-3 w-3 opacity-80", "aria-hidden": "true" });
|
|
24858
|
+
var DEFAULT_EXPANDED_LOGO_SLOT = /* @__PURE__ */ jsx40("div", { className: "h-10 w-[175px] shrink-0", "aria-hidden": "true" });
|
|
24859
|
+
var DEFAULT_COLLAPSED_LOGO_SLOT = /* @__PURE__ */ jsx40("div", { className: "h-8 w-8 shrink-0 rounded-lg", "aria-hidden": "true" });
|
|
24860
|
+
var IconSlot = ({ icon, className }) => /* @__PURE__ */ jsx40("span", { className: cn("inline-flex items-center justify-center [&>svg]:h-4 [&>svg]:w-4", className), children: icon != null ? icon : /* @__PURE__ */ jsx40(IconFallback, {}) });
|
|
24921
24861
|
var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
24922
24862
|
const location = useLocation();
|
|
24923
24863
|
const navScrollRef = useRef11(null);
|
|
@@ -24938,8 +24878,8 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
24938
24878
|
})).filter((group) => group.items.length > 0);
|
|
24939
24879
|
}, [normalizedQuery, resolvedGroups]);
|
|
24940
24880
|
const visibleGroups = isCollapsed ? resolvedGroups : filteredGroups;
|
|
24941
|
-
const resolvedExpandedLogo = logo != null ? logo :
|
|
24942
|
-
const resolvedCollapsedLogo = collapsedLogo != null ? collapsedLogo :
|
|
24881
|
+
const resolvedExpandedLogo = logo != null ? logo : DEFAULT_EXPANDED_LOGO_SLOT;
|
|
24882
|
+
const resolvedCollapsedLogo = collapsedLogo != null ? collapsedLogo : DEFAULT_COLLAPSED_LOGO_SLOT;
|
|
24943
24883
|
useEffect15(() => {
|
|
24944
24884
|
if (!openGroup && resolvedGroups.length > 0) {
|
|
24945
24885
|
setOpenGroup(resolvedGroups[0].label);
|
|
@@ -24979,17 +24919,17 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
24979
24919
|
window.cancelAnimationFrame(frame);
|
|
24980
24920
|
};
|
|
24981
24921
|
}, [location.pathname]);
|
|
24982
|
-
return /* @__PURE__ */
|
|
24922
|
+
return /* @__PURE__ */ jsx40(
|
|
24983
24923
|
motion.aside,
|
|
24984
24924
|
{
|
|
24985
24925
|
className: "fixed left-0 top-0 h-full z-30 p-2 overflow-hidden",
|
|
24986
24926
|
animate: { width: isCollapsed ? 76 : 320 },
|
|
24987
24927
|
transition: { duration: 0.25, ease: "easeInOut" },
|
|
24988
|
-
children: /* @__PURE__ */
|
|
24989
|
-
/* @__PURE__ */
|
|
24990
|
-
!isCollapsed ? /* @__PURE__ */
|
|
24991
|
-
/* @__PURE__ */
|
|
24992
|
-
/* @__PURE__ */
|
|
24928
|
+
children: /* @__PURE__ */ jsxs25("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: [
|
|
24929
|
+
/* @__PURE__ */ jsx40("div", { className: cn("mb-3 flex min-h-11 items-center", isCollapsed ? "justify-center" : "justify-start px-1"), children: isCollapsed ? resolvedCollapsedLogo : resolvedExpandedLogo }),
|
|
24930
|
+
!isCollapsed ? /* @__PURE__ */ jsxs25("div", { className: "relative mb-3", children: [
|
|
24931
|
+
/* @__PURE__ */ jsx40(Search2, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-ink/65" }),
|
|
24932
|
+
/* @__PURE__ */ jsx40(
|
|
24993
24933
|
"input",
|
|
24994
24934
|
{
|
|
24995
24935
|
type: "search",
|
|
@@ -25000,9 +24940,9 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25000
24940
|
}
|
|
25001
24941
|
)
|
|
25002
24942
|
] }) : null,
|
|
25003
|
-
/* @__PURE__ */
|
|
24943
|
+
/* @__PURE__ */ jsx40("div", { ref: navScrollRef, className: "cc-scrollbar cc-scrollbar-purple flex-1 overflow-y-auto overflow-x-hidden pr-1", children: isCollapsed ? /* @__PURE__ */ jsx40("div", { className: "flex flex-col items-center gap-2", children: resolvedGroups.map((group) => {
|
|
25004
24944
|
const isActiveGroup = (activeGroup != null ? activeGroup : openGroup) === group.label;
|
|
25005
|
-
return /* @__PURE__ */
|
|
24945
|
+
return /* @__PURE__ */ jsx40(
|
|
25006
24946
|
"button",
|
|
25007
24947
|
{
|
|
25008
24948
|
type: "button",
|
|
@@ -25015,14 +24955,14 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25015
24955
|
isActiveGroup ? "bg-cupcode-purple shadow-md text-white" : "bg-white/10 hover:bg-[rgba(151,90,182,0.30)] text-ink"
|
|
25016
24956
|
),
|
|
25017
24957
|
"aria-label": `Abrir grupo ${group.label}`,
|
|
25018
|
-
children: /* @__PURE__ */
|
|
24958
|
+
children: /* @__PURE__ */ jsx40(IconSlot, { icon: group.icon, className: cn("[&>svg]:h-5 [&>svg]:w-5", isActiveGroup && "text-white") })
|
|
25019
24959
|
},
|
|
25020
24960
|
group.id
|
|
25021
24961
|
);
|
|
25022
|
-
}) }) : /* @__PURE__ */
|
|
24962
|
+
}) }) : /* @__PURE__ */ jsx40("div", { className: "space-y-2", children: visibleGroups.length === 0 ? /* @__PURE__ */ jsx40("p", { className: "rounded-xl bg-white/20 px-3 py-3 text-xs text-ink-muted", children: "Nenhum item encontrado." }) : visibleGroups.map((group) => {
|
|
25023
24963
|
const isOpen = openGroup === group.label;
|
|
25024
|
-
return /* @__PURE__ */
|
|
25025
|
-
/* @__PURE__ */
|
|
24964
|
+
return /* @__PURE__ */ jsxs25("section", { className: "rounded-xl bg-white/14", children: [
|
|
24965
|
+
/* @__PURE__ */ jsxs25(
|
|
25026
24966
|
"button",
|
|
25027
24967
|
{
|
|
25028
24968
|
type: "button",
|
|
@@ -25030,13 +24970,13 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25030
24970
|
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)]",
|
|
25031
24971
|
"aria-expanded": isOpen,
|
|
25032
24972
|
children: [
|
|
25033
|
-
/* @__PURE__ */
|
|
25034
|
-
/* @__PURE__ */
|
|
25035
|
-
/* @__PURE__ */
|
|
24973
|
+
/* @__PURE__ */ jsx40(IconSlot, { icon: group.icon, className: "h-8 w-8 rounded-xl bg-white/55 text-ink" }),
|
|
24974
|
+
/* @__PURE__ */ jsx40("span", { className: "text-[11px] font-semibold uppercase tracking-[0.12em] text-ink/80", children: group.label }),
|
|
24975
|
+
/* @__PURE__ */ jsx40(ChevronDown4, { className: cn("ml-auto h-4 w-4 text-ink/65 transition-transform", isOpen && "rotate-90") })
|
|
25036
24976
|
]
|
|
25037
24977
|
}
|
|
25038
24978
|
),
|
|
25039
|
-
/* @__PURE__ */
|
|
24979
|
+
/* @__PURE__ */ jsx40(AnimatePresence, { initial: false, children: isOpen ? /* @__PURE__ */ jsx40(
|
|
25040
24980
|
motion.div,
|
|
25041
24981
|
{
|
|
25042
24982
|
initial: { height: 0 },
|
|
@@ -25044,9 +24984,9 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25044
24984
|
exit: { height: 0 },
|
|
25045
24985
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
25046
24986
|
className: "overflow-hidden",
|
|
25047
|
-
children: /* @__PURE__ */
|
|
24987
|
+
children: /* @__PURE__ */ jsx40("nav", { className: "space-y-1 pb-2", children: group.items.map((item) => {
|
|
25048
24988
|
const isActive = location.pathname === item.route;
|
|
25049
|
-
return /* @__PURE__ */
|
|
24989
|
+
return /* @__PURE__ */ jsxs25(
|
|
25050
24990
|
NavLink,
|
|
25051
24991
|
{
|
|
25052
24992
|
to: item.route,
|
|
@@ -25055,7 +24995,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25055
24995
|
isActive && "bg-white/40 font-medium text-ink"
|
|
25056
24996
|
),
|
|
25057
24997
|
children: [
|
|
25058
|
-
/* @__PURE__ */
|
|
24998
|
+
/* @__PURE__ */ jsx40(
|
|
25059
24999
|
IconSlot,
|
|
25060
25000
|
{
|
|
25061
25001
|
icon: item.icon,
|
|
@@ -25065,7 +25005,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25065
25005
|
)
|
|
25066
25006
|
}
|
|
25067
25007
|
),
|
|
25068
|
-
/* @__PURE__ */
|
|
25008
|
+
/* @__PURE__ */ jsx40("span", { className: cn("truncate", isActive && "font-medium"), children: item.label })
|
|
25069
25009
|
]
|
|
25070
25010
|
},
|
|
25071
25011
|
item.id
|
|
@@ -25081,7 +25021,7 @@ var AppSidebar = ({ isCollapsed, onToggle, groups, logo, collapsedLogo }) => {
|
|
|
25081
25021
|
};
|
|
25082
25022
|
|
|
25083
25023
|
// src/components/layout/main-layout.tsx
|
|
25084
|
-
import { jsx as
|
|
25024
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
25085
25025
|
var SIDEBAR_COLLAPSED_WIDTH = 76;
|
|
25086
25026
|
var SIDEBAR_EXPANDED_WIDTH = 320;
|
|
25087
25027
|
var SIDEBAR_COLLAPSED_STORAGE_KEY = "cc-layout-sidebar-collapsed";
|
|
@@ -25120,8 +25060,8 @@ var MainLayout = ({
|
|
|
25120
25060
|
() => cn(navbarOffsetClassName, navbarProps == null ? void 0 : navbarProps.className),
|
|
25121
25061
|
[navbarOffsetClassName, navbarProps == null ? void 0 : navbarProps.className]
|
|
25122
25062
|
);
|
|
25123
|
-
return /* @__PURE__ */
|
|
25124
|
-
/* @__PURE__ */
|
|
25063
|
+
return /* @__PURE__ */ jsxs26("div", { className: cn("relative min-h-screen", className), children: [
|
|
25064
|
+
/* @__PURE__ */ jsx41(
|
|
25125
25065
|
AppSidebar,
|
|
25126
25066
|
{
|
|
25127
25067
|
isCollapsed: sidebarCollapsed,
|
|
@@ -25130,7 +25070,7 @@ var MainLayout = ({
|
|
|
25130
25070
|
collapsedLogo: sidebarCollapsedLogo
|
|
25131
25071
|
}
|
|
25132
25072
|
),
|
|
25133
|
-
/* @__PURE__ */
|
|
25073
|
+
/* @__PURE__ */ jsx41(
|
|
25134
25074
|
MainNavbar,
|
|
25135
25075
|
{
|
|
25136
25076
|
...navbarProps,
|
|
@@ -25138,7 +25078,7 @@ var MainLayout = ({
|
|
|
25138
25078
|
className: mergedNavbarClassName
|
|
25139
25079
|
}
|
|
25140
25080
|
),
|
|
25141
|
-
/* @__PURE__ */
|
|
25081
|
+
/* @__PURE__ */ jsx41(
|
|
25142
25082
|
"div",
|
|
25143
25083
|
{
|
|
25144
25084
|
className: "fixed z-[210]",
|
|
@@ -25146,14 +25086,14 @@ var MainLayout = ({
|
|
|
25146
25086
|
left: contentMarginLeft - 22,
|
|
25147
25087
|
top: "calc(max(env(safe-area-inset-top), 0px) + 18px)"
|
|
25148
25088
|
},
|
|
25149
|
-
children: /* @__PURE__ */
|
|
25089
|
+
children: /* @__PURE__ */ jsx41(
|
|
25150
25090
|
"button",
|
|
25151
25091
|
{
|
|
25152
25092
|
type: "button",
|
|
25153
25093
|
onClick: toggleSidebar,
|
|
25154
25094
|
"aria-label": sidebarCollapsed ? "Expandir sidebar" : "Recolher sidebar",
|
|
25155
25095
|
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)]",
|
|
25156
|
-
children: /* @__PURE__ */
|
|
25096
|
+
children: /* @__PURE__ */ jsx41(
|
|
25157
25097
|
ChevronRight2,
|
|
25158
25098
|
{
|
|
25159
25099
|
className: cn(
|
|
@@ -25166,7 +25106,7 @@ var MainLayout = ({
|
|
|
25166
25106
|
)
|
|
25167
25107
|
}
|
|
25168
25108
|
),
|
|
25169
|
-
/* @__PURE__ */
|
|
25109
|
+
/* @__PURE__ */ jsx41(
|
|
25170
25110
|
"main",
|
|
25171
25111
|
{
|
|
25172
25112
|
className: cn("relative min-h-screen pt-24", contentClassName),
|
|
@@ -25183,7 +25123,7 @@ var MainLayout = ({
|
|
|
25183
25123
|
// src/components/cupcode/ErrorBoundary.tsx
|
|
25184
25124
|
import React24 from "react";
|
|
25185
25125
|
import { AlertTriangle } from "lucide-react";
|
|
25186
|
-
import { jsx as
|
|
25126
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
25187
25127
|
var ErrorBoundary = class extends React24.Component {
|
|
25188
25128
|
constructor(props) {
|
|
25189
25129
|
super(props);
|
|
@@ -25203,17 +25143,17 @@ var ErrorBoundary = class extends React24.Component {
|
|
|
25203
25143
|
if (this.props.fallback) {
|
|
25204
25144
|
return this.props.fallback;
|
|
25205
25145
|
}
|
|
25206
|
-
return /* @__PURE__ */
|
|
25207
|
-
/* @__PURE__ */
|
|
25208
|
-
/* @__PURE__ */
|
|
25209
|
-
/* @__PURE__ */
|
|
25210
|
-
this.state.error && /* @__PURE__ */
|
|
25211
|
-
/* @__PURE__ */
|
|
25212
|
-
/* @__PURE__ */
|
|
25146
|
+
return /* @__PURE__ */ jsx42("div", { className: "min-h-screen flex items-center justify-center p-6 bg-gradient-to-br from-cupcode-surface to-muted", children: /* @__PURE__ */ jsxs27("div", { className: "max-w-md w-full glass rounded-xl p-8 text-center animate-scale-in", children: [
|
|
25147
|
+
/* @__PURE__ */ jsx42("div", { className: "mb-6 flex justify-center", children: /* @__PURE__ */ jsx42("div", { className: "p-4 rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx42(AlertTriangle, { className: "w-12 h-12 text-destructive" }) }) }),
|
|
25148
|
+
/* @__PURE__ */ jsx42("h2", { className: "text-2xl font-display font-bold text-foreground mb-3", children: "Algo deu errado" }),
|
|
25149
|
+
/* @__PURE__ */ jsx42("p", { className: "text-muted-foreground mb-6", children: "Desculpe, encontramos um erro inesperado. Por favor, tente novamente." }),
|
|
25150
|
+
this.state.error && /* @__PURE__ */ jsxs27("details", { className: "mb-6 text-left", children: [
|
|
25151
|
+
/* @__PURE__ */ jsx42("summary", { className: "cursor-pointer text-sm text-muted-foreground hover:text-foreground", children: "Detalhes t\xE9cnicos" }),
|
|
25152
|
+
/* @__PURE__ */ jsx42("pre", { className: "mt-2 p-3 bg-muted rounded-md text-xs overflow-x-auto", children: this.state.error.message })
|
|
25213
25153
|
] }),
|
|
25214
|
-
/* @__PURE__ */
|
|
25215
|
-
/* @__PURE__ */
|
|
25216
|
-
/* @__PURE__ */
|
|
25154
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex gap-3 justify-center", children: [
|
|
25155
|
+
/* @__PURE__ */ jsx42(JellyButton, { onClick: this.handleReset, variant: "primary", children: "Tentar novamente" }),
|
|
25156
|
+
/* @__PURE__ */ jsx42(JellyButton, { onClick: () => window.location.href = "/", variant: "secondary", children: "Ir para in\xEDcio" })
|
|
25217
25157
|
] })
|
|
25218
25158
|
] }) });
|
|
25219
25159
|
}
|
|
@@ -25223,7 +25163,7 @@ var ErrorBoundary = class extends React24.Component {
|
|
|
25223
25163
|
|
|
25224
25164
|
// src/components/cupcode/EyebrowCupcode.tsx
|
|
25225
25165
|
import { forwardRef as forwardRef20 } from "react";
|
|
25226
|
-
import { jsx as
|
|
25166
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
25227
25167
|
var Eyebrow = forwardRef20(
|
|
25228
25168
|
({ variant = "galaxy", glow = false, className, children, ...props }, ref) => {
|
|
25229
25169
|
const baseClasses = cn(
|
|
@@ -25239,7 +25179,7 @@ var Eyebrow = forwardRef20(
|
|
|
25239
25179
|
purple: "bg-cupcode-purple text-white shadow-[0_0_20px_rgba(124,91,187,0.4)]",
|
|
25240
25180
|
outline: "border-2 border-cupcode-purple text-cupcode-purple bg-transparent"
|
|
25241
25181
|
};
|
|
25242
|
-
return /* @__PURE__ */
|
|
25182
|
+
return /* @__PURE__ */ jsx43(
|
|
25243
25183
|
"div",
|
|
25244
25184
|
{
|
|
25245
25185
|
ref,
|
|
@@ -25253,7 +25193,7 @@ var Eyebrow = forwardRef20(
|
|
|
25253
25193
|
Eyebrow.displayName = "Eyebrow";
|
|
25254
25194
|
|
|
25255
25195
|
// src/components/cupcode/HeroTitle.tsx
|
|
25256
|
-
import { jsx as
|
|
25196
|
+
import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
25257
25197
|
var HeroTitle = ({
|
|
25258
25198
|
eyebrow,
|
|
25259
25199
|
smallPrefix,
|
|
@@ -25267,25 +25207,25 @@ var HeroTitle = ({
|
|
|
25267
25207
|
3: "h3"
|
|
25268
25208
|
};
|
|
25269
25209
|
const Tag = headingTagMap[level];
|
|
25270
|
-
return /* @__PURE__ */
|
|
25271
|
-
eyebrow && /* @__PURE__ */
|
|
25272
|
-
/* @__PURE__ */
|
|
25273
|
-
smallPrefix && /* @__PURE__ */
|
|
25274
|
-
/* @__PURE__ */
|
|
25210
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("space-y-3", className), children: [
|
|
25211
|
+
eyebrow && /* @__PURE__ */ jsx44("span", { className: "span-destaque animate-fade-in", children: eyebrow }),
|
|
25212
|
+
/* @__PURE__ */ jsxs28(Tag, { className: "font-display font-bold leading-tight animate-slide-up", children: [
|
|
25213
|
+
smallPrefix && /* @__PURE__ */ jsx44("small", { className: "block text-base font-normal opacity-70 mb-1", children: smallPrefix }),
|
|
25214
|
+
/* @__PURE__ */ jsx44("b", { className: "block bg-gradient-to-r from-cupcode-hover to-cupcode-purple bg-clip-text text-transparent", children: strong })
|
|
25275
25215
|
] })
|
|
25276
25216
|
] });
|
|
25277
25217
|
};
|
|
25278
25218
|
|
|
25279
25219
|
// src/components/cupcode/InputField.tsx
|
|
25280
25220
|
import * as React25 from "react";
|
|
25281
|
-
import { jsx as
|
|
25221
|
+
import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
25282
25222
|
var InputField = React25.forwardRef(
|
|
25283
25223
|
({ className, type, label, error, leftIcon, rightIcon, ...props }, ref) => {
|
|
25284
|
-
return /* @__PURE__ */
|
|
25285
|
-
label && /* @__PURE__ */
|
|
25286
|
-
/* @__PURE__ */
|
|
25287
|
-
leftIcon && /* @__PURE__ */
|
|
25288
|
-
/* @__PURE__ */
|
|
25224
|
+
return /* @__PURE__ */ jsxs29("div", { className: "cc-stack space-2 w-full", children: [
|
|
25225
|
+
label && /* @__PURE__ */ jsx45("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25226
|
+
/* @__PURE__ */ jsxs29("div", { className: "relative", children: [
|
|
25227
|
+
leftIcon && /* @__PURE__ */ jsx45("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-cupcode-purple opacity-60", children: leftIcon }),
|
|
25228
|
+
/* @__PURE__ */ jsx45(
|
|
25289
25229
|
"input",
|
|
25290
25230
|
{
|
|
25291
25231
|
type,
|
|
@@ -25307,16 +25247,16 @@ var InputField = React25.forwardRef(
|
|
|
25307
25247
|
...props
|
|
25308
25248
|
}
|
|
25309
25249
|
),
|
|
25310
|
-
rightIcon && /* @__PURE__ */
|
|
25250
|
+
rightIcon && /* @__PURE__ */ jsx45("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-cupcode-purple opacity-60", children: rightIcon })
|
|
25311
25251
|
] }),
|
|
25312
|
-
error && /* @__PURE__ */
|
|
25252
|
+
error && /* @__PURE__ */ jsx45("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
25313
25253
|
] });
|
|
25314
25254
|
}
|
|
25315
25255
|
);
|
|
25316
25256
|
InputField.displayName = "InputField";
|
|
25317
25257
|
|
|
25318
25258
|
// src/components/cupcode/LoadingSpinner.tsx
|
|
25319
|
-
import { jsx as
|
|
25259
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
25320
25260
|
var sizes = {
|
|
25321
25261
|
sm: "h-4 w-4 border-2",
|
|
25322
25262
|
md: "h-8 w-8 border-3",
|
|
@@ -25326,7 +25266,7 @@ var LoadingSpinner = ({
|
|
|
25326
25266
|
size = "md",
|
|
25327
25267
|
className
|
|
25328
25268
|
}) => {
|
|
25329
|
-
return /* @__PURE__ */
|
|
25269
|
+
return /* @__PURE__ */ jsx46(
|
|
25330
25270
|
"div",
|
|
25331
25271
|
{
|
|
25332
25272
|
className: cn(
|
|
@@ -25336,12 +25276,12 @@ var LoadingSpinner = ({
|
|
|
25336
25276
|
),
|
|
25337
25277
|
role: "status",
|
|
25338
25278
|
"aria-label": "Loading",
|
|
25339
|
-
children: /* @__PURE__ */
|
|
25279
|
+
children: /* @__PURE__ */ jsx46("span", { className: "sr-only", children: "Loading..." })
|
|
25340
25280
|
}
|
|
25341
25281
|
);
|
|
25342
25282
|
};
|
|
25343
25283
|
var Skeleton2 = ({ className }) => {
|
|
25344
|
-
return /* @__PURE__ */
|
|
25284
|
+
return /* @__PURE__ */ jsx46(
|
|
25345
25285
|
"div",
|
|
25346
25286
|
{
|
|
25347
25287
|
className: cn(
|
|
@@ -25352,7 +25292,7 @@ var Skeleton2 = ({ className }) => {
|
|
|
25352
25292
|
);
|
|
25353
25293
|
};
|
|
25354
25294
|
var SkeletonText = ({ lines = 3 }) => {
|
|
25355
|
-
return /* @__PURE__ */
|
|
25295
|
+
return /* @__PURE__ */ jsx46("div", { className: "space-y-2", children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx46(
|
|
25356
25296
|
Skeleton2,
|
|
25357
25297
|
{
|
|
25358
25298
|
className: cn(
|
|
@@ -25365,7 +25305,7 @@ var SkeletonText = ({ lines = 3 }) => {
|
|
|
25365
25305
|
};
|
|
25366
25306
|
|
|
25367
25307
|
// src/components/cupcode/LoadingScreen.tsx
|
|
25368
|
-
import { jsx as
|
|
25308
|
+
import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
25369
25309
|
var LoadingScreen = ({
|
|
25370
25310
|
message = "Carregando...",
|
|
25371
25311
|
fullScreen = true,
|
|
@@ -25373,28 +25313,28 @@ var LoadingScreen = ({
|
|
|
25373
25313
|
}) => {
|
|
25374
25314
|
const containerClasses = fullScreen ? "fixed inset-0 z-50 flex items-center justify-center bg-background" : "flex items-center justify-center p-12";
|
|
25375
25315
|
if (variant === "minimal") {
|
|
25376
|
-
return /* @__PURE__ */
|
|
25316
|
+
return /* @__PURE__ */ jsx47("div", { className: containerClasses, children: /* @__PURE__ */ jsx47(LoadingSpinner, { size: "lg" }) });
|
|
25377
25317
|
}
|
|
25378
25318
|
if (variant === "galaxy") {
|
|
25379
|
-
return /* @__PURE__ */
|
|
25380
|
-
/* @__PURE__ */
|
|
25381
|
-
/* @__PURE__ */
|
|
25382
|
-
/* @__PURE__ */
|
|
25319
|
+
return /* @__PURE__ */ jsx47("div", { className: cn(containerClasses, "cc-gradient-galaxy"), children: /* @__PURE__ */ jsxs30("div", { className: "glass rounded-2xl p-8 flex flex-col items-center space-y-4 animate-scale-in", children: [
|
|
25320
|
+
/* @__PURE__ */ jsxs30("div", { className: "relative", children: [
|
|
25321
|
+
/* @__PURE__ */ jsx47(LoadingSpinner, { size: "lg" }),
|
|
25322
|
+
/* @__PURE__ */ jsx47("div", { className: "absolute inset-0 blur-2xl bg-cupcode-hover/30 animate-pulse-scale" })
|
|
25383
25323
|
] }),
|
|
25384
|
-
message && /* @__PURE__ */
|
|
25324
|
+
message && /* @__PURE__ */ jsx47("p", { className: "text-white font-semibold text-lg animate-pulse", children: message })
|
|
25385
25325
|
] }) });
|
|
25386
25326
|
}
|
|
25387
|
-
return /* @__PURE__ */
|
|
25388
|
-
/* @__PURE__ */
|
|
25389
|
-
/* @__PURE__ */
|
|
25390
|
-
/* @__PURE__ */
|
|
25327
|
+
return /* @__PURE__ */ jsx47("div", { className: containerClasses, children: /* @__PURE__ */ jsxs30("div", { className: "glass rounded-2xl p-8 flex flex-col items-center space-y-6 animate-scale-in max-w-sm", children: [
|
|
25328
|
+
/* @__PURE__ */ jsxs30("div", { className: "relative", children: [
|
|
25329
|
+
/* @__PURE__ */ jsx47("div", { className: "w-20 h-20 rounded-full cc-gradient-animated flex items-center justify-center", children: /* @__PURE__ */ jsx47("div", { className: "w-16 h-16 rounded-full bg-background flex items-center justify-center", children: /* @__PURE__ */ jsx47(LoadingSpinner, { size: "md" }) }) }),
|
|
25330
|
+
/* @__PURE__ */ jsx47("div", { className: "absolute inset-0 blur-xl bg-cupcode-purple/20 animate-pulse-scale -z-10" })
|
|
25391
25331
|
] }),
|
|
25392
|
-
message && /* @__PURE__ */
|
|
25393
|
-
/* @__PURE__ */
|
|
25394
|
-
/* @__PURE__ */
|
|
25395
|
-
/* @__PURE__ */
|
|
25396
|
-
/* @__PURE__ */
|
|
25397
|
-
/* @__PURE__ */
|
|
25332
|
+
message && /* @__PURE__ */ jsxs30("div", { className: "text-center space-y-2", children: [
|
|
25333
|
+
/* @__PURE__ */ jsx47("p", { className: "font-bold text-lg cc-text-gradient-galaxy", children: message }),
|
|
25334
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex gap-1 justify-center", children: [
|
|
25335
|
+
/* @__PURE__ */ jsx47("div", { className: "w-2 h-2 rounded-full bg-cupcode-hover animate-bounce", style: { animationDelay: "0ms" } }),
|
|
25336
|
+
/* @__PURE__ */ jsx47("div", { className: "w-2 h-2 rounded-full bg-cupcode-purple animate-bounce", style: { animationDelay: "150ms" } }),
|
|
25337
|
+
/* @__PURE__ */ jsx47("div", { className: "w-2 h-2 rounded-full bg-cupcode-hover animate-bounce", style: { animationDelay: "300ms" } })
|
|
25398
25338
|
] })
|
|
25399
25339
|
] })
|
|
25400
25340
|
] }) });
|
|
@@ -25404,12 +25344,12 @@ var LoadingScreen = ({
|
|
|
25404
25344
|
import * as React26 from "react";
|
|
25405
25345
|
import * as DialogPrimitive3 from "@radix-ui/react-dialog";
|
|
25406
25346
|
import { X as X5 } from "lucide-react";
|
|
25407
|
-
import { jsx as
|
|
25347
|
+
import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
25408
25348
|
var Modal = DialogPrimitive3.Root;
|
|
25409
25349
|
var ModalTrigger = DialogPrimitive3.Trigger;
|
|
25410
25350
|
var ModalPortal = DialogPrimitive3.Portal;
|
|
25411
25351
|
var ModalClose = DialogPrimitive3.Close;
|
|
25412
|
-
var ModalOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25352
|
+
var ModalOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
25413
25353
|
DialogPrimitive3.Overlay,
|
|
25414
25354
|
{
|
|
25415
25355
|
ref,
|
|
@@ -25429,9 +25369,9 @@ var ModalContent = React26.forwardRef(({ className, children, size = "md", ...pr
|
|
|
25429
25369
|
lg: "max-w-lg",
|
|
25430
25370
|
xl: "max-w-xl"
|
|
25431
25371
|
};
|
|
25432
|
-
return /* @__PURE__ */
|
|
25433
|
-
/* @__PURE__ */
|
|
25434
|
-
/* @__PURE__ */
|
|
25372
|
+
return /* @__PURE__ */ jsxs31(ModalPortal, { children: [
|
|
25373
|
+
/* @__PURE__ */ jsx48(ModalOverlay, {}),
|
|
25374
|
+
/* @__PURE__ */ jsxs31(
|
|
25435
25375
|
DialogPrimitive3.Content,
|
|
25436
25376
|
{
|
|
25437
25377
|
ref,
|
|
@@ -25446,9 +25386,9 @@ var ModalContent = React26.forwardRef(({ className, children, size = "md", ...pr
|
|
|
25446
25386
|
...props,
|
|
25447
25387
|
children: [
|
|
25448
25388
|
children,
|
|
25449
|
-
/* @__PURE__ */
|
|
25450
|
-
/* @__PURE__ */
|
|
25451
|
-
/* @__PURE__ */
|
|
25389
|
+
/* @__PURE__ */ jsxs31(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: [
|
|
25390
|
+
/* @__PURE__ */ jsx48(X5, { className: "h-4 w-4" }),
|
|
25391
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "Close" })
|
|
25452
25392
|
] })
|
|
25453
25393
|
]
|
|
25454
25394
|
}
|
|
@@ -25459,7 +25399,7 @@ ModalContent.displayName = DialogPrimitive3.Content.displayName;
|
|
|
25459
25399
|
var ModalHeader = ({
|
|
25460
25400
|
className,
|
|
25461
25401
|
...props
|
|
25462
|
-
}) => /* @__PURE__ */
|
|
25402
|
+
}) => /* @__PURE__ */ jsx48(
|
|
25463
25403
|
"div",
|
|
25464
25404
|
{
|
|
25465
25405
|
className: cn("flex flex-col space-y-2 text-center sm:text-left mb-4", className),
|
|
@@ -25470,7 +25410,7 @@ ModalHeader.displayName = "ModalHeader";
|
|
|
25470
25410
|
var ModalFooter = ({
|
|
25471
25411
|
className,
|
|
25472
25412
|
...props
|
|
25473
|
-
}) => /* @__PURE__ */
|
|
25413
|
+
}) => /* @__PURE__ */ jsx48(
|
|
25474
25414
|
"div",
|
|
25475
25415
|
{
|
|
25476
25416
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 mt-6", className),
|
|
@@ -25478,7 +25418,7 @@ var ModalFooter = ({
|
|
|
25478
25418
|
}
|
|
25479
25419
|
);
|
|
25480
25420
|
ModalFooter.displayName = "ModalFooter";
|
|
25481
|
-
var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25421
|
+
var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
25482
25422
|
DialogPrimitive3.Title,
|
|
25483
25423
|
{
|
|
25484
25424
|
ref,
|
|
@@ -25487,7 +25427,7 @@ var ModalTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
25487
25427
|
}
|
|
25488
25428
|
));
|
|
25489
25429
|
ModalTitle.displayName = DialogPrimitive3.Title.displayName;
|
|
25490
|
-
var ModalDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25430
|
+
var ModalDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
25491
25431
|
DialogPrimitive3.Description,
|
|
25492
25432
|
{
|
|
25493
25433
|
ref,
|
|
@@ -25499,7 +25439,7 @@ ModalDescription.displayName = DialogPrimitive3.Description.displayName;
|
|
|
25499
25439
|
|
|
25500
25440
|
// src/components/cupcode/ParticleSystem.tsx
|
|
25501
25441
|
import { useEffect as useEffect17, useRef as useRef12 } from "react";
|
|
25502
|
-
import { jsx as
|
|
25442
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
25503
25443
|
function ParticleSystem({
|
|
25504
25444
|
count: count2 = 50,
|
|
25505
25445
|
variant = "stars",
|
|
@@ -25571,7 +25511,7 @@ function ParticleSystem({
|
|
|
25571
25511
|
cancelAnimationFrame(animationId);
|
|
25572
25512
|
};
|
|
25573
25513
|
}, [count2, variant]);
|
|
25574
|
-
return /* @__PURE__ */
|
|
25514
|
+
return /* @__PURE__ */ jsx49(
|
|
25575
25515
|
"canvas",
|
|
25576
25516
|
{
|
|
25577
25517
|
ref: canvasRef,
|
|
@@ -25582,7 +25522,7 @@ function ParticleSystem({
|
|
|
25582
25522
|
|
|
25583
25523
|
// src/components/cupcode/PricingCard.tsx
|
|
25584
25524
|
import { Check as Check4 } from "lucide-react";
|
|
25585
|
-
import { jsx as
|
|
25525
|
+
import { jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
25586
25526
|
function PricingCard({
|
|
25587
25527
|
title,
|
|
25588
25528
|
price,
|
|
@@ -25594,7 +25534,7 @@ function PricingCard({
|
|
|
25594
25534
|
buttonText = "Escolher plano",
|
|
25595
25535
|
className
|
|
25596
25536
|
}) {
|
|
25597
|
-
return /* @__PURE__ */
|
|
25537
|
+
return /* @__PURE__ */ jsxs32(
|
|
25598
25538
|
CardGlass,
|
|
25599
25539
|
{
|
|
25600
25540
|
className: cn(
|
|
@@ -25604,17 +25544,17 @@ function PricingCard({
|
|
|
25604
25544
|
className
|
|
25605
25545
|
),
|
|
25606
25546
|
children: [
|
|
25607
|
-
highlighted && /* @__PURE__ */
|
|
25608
|
-
/* @__PURE__ */
|
|
25609
|
-
/* @__PURE__ */
|
|
25610
|
-
description && /* @__PURE__ */
|
|
25547
|
+
highlighted && /* @__PURE__ */ jsx50("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx50("span", { className: "bg-cupcode-purple text-white text-xs font-bold px-4 py-1 rounded-pill", children: "POPULAR" }) }),
|
|
25548
|
+
/* @__PURE__ */ jsxs32("div", { className: "text-center mb-6", children: [
|
|
25549
|
+
/* @__PURE__ */ jsx50("h3", { className: "text-2xl font-display font-bold text-foreground mb-2", children: title }),
|
|
25550
|
+
description && /* @__PURE__ */ jsx50("p", { className: "text-sm text-muted-foreground", children: description })
|
|
25611
25551
|
] }),
|
|
25612
|
-
/* @__PURE__ */
|
|
25613
|
-
/* @__PURE__ */
|
|
25614
|
-
/* @__PURE__ */
|
|
25552
|
+
/* @__PURE__ */ jsx50("div", { className: "text-center mb-8", children: /* @__PURE__ */ jsxs32("div", { className: "flex items-baseline justify-center gap-2", children: [
|
|
25553
|
+
/* @__PURE__ */ jsx50("span", { className: "text-5xl font-display font-bold cc-text-gradient-galaxy", children: price }),
|
|
25554
|
+
/* @__PURE__ */ jsx50("span", { className: "text-muted-foreground", children: period })
|
|
25615
25555
|
] }) }),
|
|
25616
|
-
/* @__PURE__ */
|
|
25617
|
-
/* @__PURE__ */
|
|
25556
|
+
/* @__PURE__ */ jsx50("ul", { className: "space-3 mb-8", children: features.map((feature, index) => /* @__PURE__ */ jsxs32("li", { className: "flex items-start gap-3", children: [
|
|
25557
|
+
/* @__PURE__ */ jsx50(
|
|
25618
25558
|
Check4,
|
|
25619
25559
|
{
|
|
25620
25560
|
className: cn(
|
|
@@ -25623,7 +25563,7 @@ function PricingCard({
|
|
|
25623
25563
|
)
|
|
25624
25564
|
}
|
|
25625
25565
|
),
|
|
25626
|
-
/* @__PURE__ */
|
|
25566
|
+
/* @__PURE__ */ jsx50(
|
|
25627
25567
|
"span",
|
|
25628
25568
|
{
|
|
25629
25569
|
className: cn(
|
|
@@ -25634,7 +25574,7 @@ function PricingCard({
|
|
|
25634
25574
|
}
|
|
25635
25575
|
)
|
|
25636
25576
|
] }, index)) }),
|
|
25637
|
-
/* @__PURE__ */
|
|
25577
|
+
/* @__PURE__ */ jsx50(
|
|
25638
25578
|
JellyButton,
|
|
25639
25579
|
{
|
|
25640
25580
|
onClick: onSelect,
|
|
@@ -25651,7 +25591,7 @@ function PricingCard({
|
|
|
25651
25591
|
// src/components/cupcode/ProgressCupcode.tsx
|
|
25652
25592
|
import * as React27 from "react";
|
|
25653
25593
|
import * as ProgressPrimitive2 from "@radix-ui/react-progress";
|
|
25654
|
-
import { jsx as
|
|
25594
|
+
import { jsx as jsx51, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
25655
25595
|
var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default", showLabel = false, size = "md", ...props }, ref) => {
|
|
25656
25596
|
const sizeClasses2 = {
|
|
25657
25597
|
sm: "h-2",
|
|
@@ -25665,15 +25605,15 @@ var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default
|
|
|
25665
25605
|
warning: "bg-warning",
|
|
25666
25606
|
error: "bg-destructive"
|
|
25667
25607
|
};
|
|
25668
|
-
return /* @__PURE__ */
|
|
25669
|
-
showLabel && /* @__PURE__ */
|
|
25670
|
-
/* @__PURE__ */
|
|
25671
|
-
/* @__PURE__ */
|
|
25608
|
+
return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-2", children: [
|
|
25609
|
+
showLabel && /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between text-sm", children: [
|
|
25610
|
+
/* @__PURE__ */ jsx51("span", { className: "font-semibold text-foreground", children: "Progresso" }),
|
|
25611
|
+
/* @__PURE__ */ jsxs33("span", { className: "text-muted-foreground", children: [
|
|
25672
25612
|
value,
|
|
25673
25613
|
"%"
|
|
25674
25614
|
] })
|
|
25675
25615
|
] }),
|
|
25676
|
-
/* @__PURE__ */
|
|
25616
|
+
/* @__PURE__ */ jsx51(
|
|
25677
25617
|
ProgressPrimitive2.Root,
|
|
25678
25618
|
{
|
|
25679
25619
|
ref,
|
|
@@ -25683,7 +25623,7 @@ var ProgressCupcode = React27.forwardRef(({ className, value, variant = "default
|
|
|
25683
25623
|
className
|
|
25684
25624
|
),
|
|
25685
25625
|
...props,
|
|
25686
|
-
children: /* @__PURE__ */
|
|
25626
|
+
children: /* @__PURE__ */ jsx51(
|
|
25687
25627
|
ProgressPrimitive2.Indicator,
|
|
25688
25628
|
{
|
|
25689
25629
|
className: cn(
|
|
@@ -25701,7 +25641,7 @@ ProgressCupcode.displayName = "ProgressCupcode";
|
|
|
25701
25641
|
|
|
25702
25642
|
// src/components/cupcode/ScrollbarTheme.tsx
|
|
25703
25643
|
import * as React28 from "react";
|
|
25704
|
-
import { jsx as
|
|
25644
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
25705
25645
|
var SCROLLBAR_COLOR_ATTR = "data-cc-scrollbar-color";
|
|
25706
25646
|
var SCROLLBAR_THEME_ATTR = "data-cc-scrollbar-theme";
|
|
25707
25647
|
var ScrollbarThemeProvider = ({
|
|
@@ -25740,7 +25680,7 @@ var ScrollbarThemeProvider = ({
|
|
|
25740
25680
|
return null;
|
|
25741
25681
|
};
|
|
25742
25682
|
var ScrollbarArea = React28.forwardRef(
|
|
25743
|
-
({ color = "purple", theme = "auto", className, ...props }, ref) => /* @__PURE__ */
|
|
25683
|
+
({ color = "purple", theme = "auto", className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
25744
25684
|
"div",
|
|
25745
25685
|
{
|
|
25746
25686
|
ref,
|
|
@@ -25761,11 +25701,11 @@ ScrollbarArea.displayName = "ScrollbarArea";
|
|
|
25761
25701
|
import * as React29 from "react";
|
|
25762
25702
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
25763
25703
|
import { Check as Check5, ChevronDown as ChevronDown5 } from "lucide-react";
|
|
25764
|
-
import { jsx as
|
|
25704
|
+
import { jsx as jsx53, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
25765
25705
|
var Select2 = SelectPrimitive2.Root;
|
|
25766
25706
|
var SelectGroup2 = SelectPrimitive2.Group;
|
|
25767
25707
|
var SelectValue2 = SelectPrimitive2.Value;
|
|
25768
|
-
var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
25708
|
+
var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs34(
|
|
25769
25709
|
SelectPrimitive2.Trigger,
|
|
25770
25710
|
{
|
|
25771
25711
|
ref,
|
|
@@ -25783,12 +25723,12 @@ var SelectTrigger2 = React29.forwardRef(({ className, children, ...props }, ref)
|
|
|
25783
25723
|
...props,
|
|
25784
25724
|
children: [
|
|
25785
25725
|
children,
|
|
25786
|
-
/* @__PURE__ */
|
|
25726
|
+
/* @__PURE__ */ jsx53(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ jsx53(ChevronDown5, { className: "h-4 w-4 opacity-50" }) })
|
|
25787
25727
|
]
|
|
25788
25728
|
}
|
|
25789
25729
|
));
|
|
25790
25730
|
SelectTrigger2.displayName = SelectPrimitive2.Trigger.displayName;
|
|
25791
|
-
var SelectContent2 = React29.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
25731
|
+
var SelectContent2 = React29.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx53(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx53(
|
|
25792
25732
|
SelectPrimitive2.Content,
|
|
25793
25733
|
{
|
|
25794
25734
|
ref,
|
|
@@ -25805,7 +25745,7 @@ var SelectContent2 = React29.forwardRef(({ className, children, position = "popp
|
|
|
25805
25745
|
),
|
|
25806
25746
|
position,
|
|
25807
25747
|
...props,
|
|
25808
|
-
children: /* @__PURE__ */
|
|
25748
|
+
children: /* @__PURE__ */ jsx53(
|
|
25809
25749
|
SelectPrimitive2.Viewport,
|
|
25810
25750
|
{
|
|
25811
25751
|
className: cn(
|
|
@@ -25818,7 +25758,7 @@ var SelectContent2 = React29.forwardRef(({ className, children, position = "popp
|
|
|
25818
25758
|
}
|
|
25819
25759
|
) }));
|
|
25820
25760
|
SelectContent2.displayName = SelectPrimitive2.Content.displayName;
|
|
25821
|
-
var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
25761
|
+
var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs34(
|
|
25822
25762
|
SelectPrimitive2.Item,
|
|
25823
25763
|
{
|
|
25824
25764
|
ref,
|
|
@@ -25831,8 +25771,8 @@ var SelectItem2 = React29.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
25831
25771
|
),
|
|
25832
25772
|
...props,
|
|
25833
25773
|
children: [
|
|
25834
|
-
/* @__PURE__ */
|
|
25835
|
-
/* @__PURE__ */
|
|
25774
|
+
/* @__PURE__ */ jsx53("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx53(SelectPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx53(Check5, { className: "h-4 w-4 text-cupcode-purple" }) }) }),
|
|
25775
|
+
/* @__PURE__ */ jsx53(SelectPrimitive2.ItemText, { children })
|
|
25836
25776
|
]
|
|
25837
25777
|
}
|
|
25838
25778
|
));
|
|
@@ -25846,21 +25786,21 @@ var SelectField = ({
|
|
|
25846
25786
|
options,
|
|
25847
25787
|
disabled
|
|
25848
25788
|
}) => {
|
|
25849
|
-
return /* @__PURE__ */
|
|
25850
|
-
label && /* @__PURE__ */
|
|
25851
|
-
/* @__PURE__ */
|
|
25852
|
-
/* @__PURE__ */
|
|
25853
|
-
/* @__PURE__ */
|
|
25789
|
+
return /* @__PURE__ */ jsxs34("div", { className: "cc-stack space-2 w-full", children: [
|
|
25790
|
+
label && /* @__PURE__ */ jsx53("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25791
|
+
/* @__PURE__ */ jsxs34(Select2, { value, onValueChange, disabled, children: [
|
|
25792
|
+
/* @__PURE__ */ jsx53(SelectTrigger2, { children: /* @__PURE__ */ jsx53(SelectValue2, { placeholder }) }),
|
|
25793
|
+
/* @__PURE__ */ jsx53(SelectContent2, { children: /* @__PURE__ */ jsx53(SelectGroup2, { children: options.map((option) => /* @__PURE__ */ jsx53(SelectItem2, { value: option.value, children: option.label }, option.value)) }) })
|
|
25854
25794
|
] }),
|
|
25855
|
-
error && /* @__PURE__ */
|
|
25795
|
+
error && /* @__PURE__ */ jsx53("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
25856
25796
|
] });
|
|
25857
25797
|
};
|
|
25858
25798
|
|
|
25859
25799
|
// src/components/cupcode/SwitchField.tsx
|
|
25860
25800
|
import * as React30 from "react";
|
|
25861
25801
|
import * as SwitchPrimitives2 from "@radix-ui/react-switch";
|
|
25862
|
-
import { jsx as
|
|
25863
|
-
var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25802
|
+
import { jsx as jsx54, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
25803
|
+
var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx54(
|
|
25864
25804
|
SwitchPrimitives2.Root,
|
|
25865
25805
|
{
|
|
25866
25806
|
className: cn(
|
|
@@ -25875,7 +25815,7 @@ var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
25875
25815
|
),
|
|
25876
25816
|
...props,
|
|
25877
25817
|
ref,
|
|
25878
|
-
children: /* @__PURE__ */
|
|
25818
|
+
children: /* @__PURE__ */ jsx54(
|
|
25879
25819
|
SwitchPrimitives2.Thumb,
|
|
25880
25820
|
{
|
|
25881
25821
|
className: cn(
|
|
@@ -25891,21 +25831,21 @@ var Switch2 = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
25891
25831
|
));
|
|
25892
25832
|
Switch2.displayName = SwitchPrimitives2.Root.displayName;
|
|
25893
25833
|
var SwitchField = ({ label, description, ...props }) => {
|
|
25894
|
-
return /* @__PURE__ */
|
|
25895
|
-
/* @__PURE__ */
|
|
25896
|
-
label && /* @__PURE__ */
|
|
25897
|
-
description && /* @__PURE__ */
|
|
25834
|
+
return /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between space-x-4", children: [
|
|
25835
|
+
/* @__PURE__ */ jsxs35("div", { className: "cc-stack space-1 flex-1", children: [
|
|
25836
|
+
label && /* @__PURE__ */ jsx54("label", { className: "text-sm font-semibold text-cupcode-ink cursor-pointer", children: label }),
|
|
25837
|
+
description && /* @__PURE__ */ jsx54("p", { className: "text-xs text-muted-foreground", children: description })
|
|
25898
25838
|
] }),
|
|
25899
|
-
/* @__PURE__ */
|
|
25839
|
+
/* @__PURE__ */ jsx54(Switch2, { ...props })
|
|
25900
25840
|
] });
|
|
25901
25841
|
};
|
|
25902
25842
|
|
|
25903
25843
|
// src/components/cupcode/TabsCupcode.tsx
|
|
25904
25844
|
import * as React31 from "react";
|
|
25905
25845
|
import * as TabsPrimitive2 from "@radix-ui/react-tabs";
|
|
25906
|
-
import { jsx as
|
|
25846
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
25907
25847
|
var Tabs2 = TabsPrimitive2.Root;
|
|
25908
|
-
var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25848
|
+
var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
25909
25849
|
TabsPrimitive2.List,
|
|
25910
25850
|
{
|
|
25911
25851
|
ref,
|
|
@@ -25918,7 +25858,7 @@ var TabsList2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
25918
25858
|
}
|
|
25919
25859
|
));
|
|
25920
25860
|
TabsList2.displayName = TabsPrimitive2.List.displayName;
|
|
25921
|
-
var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25861
|
+
var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
25922
25862
|
TabsPrimitive2.Trigger,
|
|
25923
25863
|
{
|
|
25924
25864
|
ref,
|
|
@@ -25940,7 +25880,7 @@ var TabsTrigger2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
25940
25880
|
}
|
|
25941
25881
|
));
|
|
25942
25882
|
TabsTrigger2.displayName = TabsPrimitive2.Trigger.displayName;
|
|
25943
|
-
var TabsContent2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
25883
|
+
var TabsContent2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
25944
25884
|
TabsPrimitive2.Content,
|
|
25945
25885
|
{
|
|
25946
25886
|
ref,
|
|
@@ -25957,12 +25897,12 @@ TabsContent2.displayName = TabsPrimitive2.Content.displayName;
|
|
|
25957
25897
|
|
|
25958
25898
|
// src/components/cupcode/TextareaField.tsx
|
|
25959
25899
|
import * as React32 from "react";
|
|
25960
|
-
import { jsx as
|
|
25900
|
+
import { jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
25961
25901
|
var TextareaField = React32.forwardRef(
|
|
25962
25902
|
({ className, label, error, ...props }, ref) => {
|
|
25963
|
-
return /* @__PURE__ */
|
|
25964
|
-
label && /* @__PURE__ */
|
|
25965
|
-
/* @__PURE__ */
|
|
25903
|
+
return /* @__PURE__ */ jsxs36("div", { className: "cc-stack space-2 w-full", children: [
|
|
25904
|
+
label && /* @__PURE__ */ jsx56("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25905
|
+
/* @__PURE__ */ jsx56(
|
|
25966
25906
|
"textarea",
|
|
25967
25907
|
{
|
|
25968
25908
|
className: cn(
|
|
@@ -25982,7 +25922,7 @@ var TextareaField = React32.forwardRef(
|
|
|
25982
25922
|
...props
|
|
25983
25923
|
}
|
|
25984
25924
|
),
|
|
25985
|
-
error && /* @__PURE__ */
|
|
25925
|
+
error && /* @__PURE__ */ jsx56("p", { className: "text-xs font-medium text-destructive animate-fade-in", children: error })
|
|
25986
25926
|
] });
|
|
25987
25927
|
}
|
|
25988
25928
|
);
|
|
@@ -25991,7 +25931,7 @@ TextareaField.displayName = "TextareaField";
|
|
|
25991
25931
|
// src/components/cupcode/ThemeToggle.tsx
|
|
25992
25932
|
import * as React33 from "react";
|
|
25993
25933
|
import { Moon as Moon2, Sun as Sun2 } from "lucide-react";
|
|
25994
|
-
import { jsx as
|
|
25934
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
25995
25935
|
var THEME_STORAGE_KEY2 = "cupcode-theme";
|
|
25996
25936
|
function isThemeMode(value) {
|
|
25997
25937
|
return value === "light" || value === "dark";
|
|
@@ -26019,13 +25959,25 @@ function applyThemeClass(theme) {
|
|
|
26019
25959
|
const root = document.documentElement;
|
|
26020
25960
|
root.classList.toggle("dark", theme === "dark");
|
|
26021
25961
|
root.classList.toggle("light", theme === "light");
|
|
25962
|
+
root.dataset.theme = theme;
|
|
25963
|
+
root.style.colorScheme = theme;
|
|
25964
|
+
}
|
|
25965
|
+
function readThemeFromRoot() {
|
|
25966
|
+
var _a78;
|
|
25967
|
+
if (typeof document === "undefined") return null;
|
|
25968
|
+
const root = document.documentElement;
|
|
25969
|
+
const datasetTheme = (_a78 = root.dataset.theme) != null ? _a78 : null;
|
|
25970
|
+
if (isThemeMode(datasetTheme)) return datasetTheme;
|
|
25971
|
+
if (root.classList.contains("dark")) return "dark";
|
|
25972
|
+
if (root.classList.contains("light")) return "light";
|
|
25973
|
+
return null;
|
|
26022
25974
|
}
|
|
26023
25975
|
function resolveTheme(defaultTheme) {
|
|
25976
|
+
const rootTheme = readThemeFromRoot();
|
|
25977
|
+
if (rootTheme) return rootTheme;
|
|
26024
25978
|
const storedTheme = readStoredTheme();
|
|
26025
25979
|
if (storedTheme) return storedTheme;
|
|
26026
25980
|
if (typeof document === "undefined") return defaultTheme;
|
|
26027
|
-
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
26028
|
-
if (document.documentElement.classList.contains("light")) return "light";
|
|
26029
25981
|
if (typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
26030
25982
|
return "dark";
|
|
26031
25983
|
}
|
|
@@ -26059,11 +26011,11 @@ var ThemeToggle2 = ({
|
|
|
26059
26011
|
const resolvedTheme = resolveTheme(defaultTheme);
|
|
26060
26012
|
setInternalTheme((currentTheme) => currentTheme === resolvedTheme ? currentTheme : resolvedTheme);
|
|
26061
26013
|
});
|
|
26062
|
-
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
|
26014
|
+
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["class", "data-theme"] });
|
|
26063
26015
|
return () => observer.disconnect();
|
|
26064
26016
|
}, [defaultTheme, isControlled]);
|
|
26065
26017
|
if (!mounted) {
|
|
26066
|
-
return /* @__PURE__ */
|
|
26018
|
+
return /* @__PURE__ */ jsx57("div", { className: cn("w-10 h-10 rounded-lg bg-muted", className) });
|
|
26067
26019
|
}
|
|
26068
26020
|
const handleToggle = () => {
|
|
26069
26021
|
const nextTheme = activeTheme === "dark" ? "light" : "dark";
|
|
@@ -26072,9 +26024,10 @@ var ThemeToggle2 = ({
|
|
|
26072
26024
|
}
|
|
26073
26025
|
onThemeChange == null ? void 0 : onThemeChange(nextTheme);
|
|
26074
26026
|
};
|
|
26075
|
-
return /* @__PURE__ */
|
|
26027
|
+
return /* @__PURE__ */ jsxs37(
|
|
26076
26028
|
"button",
|
|
26077
26029
|
{
|
|
26030
|
+
type: "button",
|
|
26078
26031
|
onClick: handleToggle,
|
|
26079
26032
|
className: cn(
|
|
26080
26033
|
"relative inline-flex items-center justify-center w-10 h-10",
|
|
@@ -26085,9 +26038,9 @@ var ThemeToggle2 = ({
|
|
|
26085
26038
|
),
|
|
26086
26039
|
"aria-label": "Toggle theme",
|
|
26087
26040
|
children: [
|
|
26088
|
-
/* @__PURE__ */
|
|
26089
|
-
/* @__PURE__ */
|
|
26090
|
-
/* @__PURE__ */
|
|
26041
|
+
/* @__PURE__ */ jsx57(Sun2, { className: "h-5 w-5 text-cupcode-purple rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
26042
|
+
/* @__PURE__ */ jsx57(Moon2, { className: "absolute h-5 w-5 text-cupcode-hover rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
26043
|
+
/* @__PURE__ */ jsxs37("span", { className: "sr-only", children: [
|
|
26091
26044
|
"Current theme: ",
|
|
26092
26045
|
activeTheme
|
|
26093
26046
|
] })
|
|
@@ -26104,7 +26057,7 @@ import {
|
|
|
26104
26057
|
useState as useState17
|
|
26105
26058
|
} from "react";
|
|
26106
26059
|
import { flushSync } from "react-dom";
|
|
26107
|
-
import { jsx as
|
|
26060
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
26108
26061
|
var STORAGE_KEY2 = "cupcode-theme";
|
|
26109
26062
|
var LEGACY_STORAGE_KEY = "theme";
|
|
26110
26063
|
function getPreferredTheme() {
|
|
@@ -26121,6 +26074,27 @@ function getStoredTheme() {
|
|
|
26121
26074
|
const storedTheme = (_a78 = window.localStorage.getItem(STORAGE_KEY2)) != null ? _a78 : window.localStorage.getItem(LEGACY_STORAGE_KEY);
|
|
26122
26075
|
return storedTheme === "light" || storedTheme === "dark" ? storedTheme : null;
|
|
26123
26076
|
}
|
|
26077
|
+
function getThemeFromRoot() {
|
|
26078
|
+
if (typeof document === "undefined") {
|
|
26079
|
+
return null;
|
|
26080
|
+
}
|
|
26081
|
+
const { documentElement: root } = document;
|
|
26082
|
+
const datasetTheme = root.dataset.theme;
|
|
26083
|
+
if (datasetTheme === "light" || datasetTheme === "dark") {
|
|
26084
|
+
return datasetTheme;
|
|
26085
|
+
}
|
|
26086
|
+
if (root.classList.contains("dark")) {
|
|
26087
|
+
return "dark";
|
|
26088
|
+
}
|
|
26089
|
+
if (root.classList.contains("light")) {
|
|
26090
|
+
return "light";
|
|
26091
|
+
}
|
|
26092
|
+
return null;
|
|
26093
|
+
}
|
|
26094
|
+
function resolveTheme2() {
|
|
26095
|
+
var _a78, _b7;
|
|
26096
|
+
return (_b7 = (_a78 = getThemeFromRoot()) != null ? _a78 : getStoredTheme()) != null ? _b7 : getPreferredTheme();
|
|
26097
|
+
}
|
|
26124
26098
|
function applyThemeToRoot(theme) {
|
|
26125
26099
|
const root = document.documentElement;
|
|
26126
26100
|
root.classList.toggle("dark", theme === "dark");
|
|
@@ -26133,15 +26107,11 @@ function persistTheme(theme) {
|
|
|
26133
26107
|
window.localStorage.setItem(LEGACY_STORAGE_KEY, theme);
|
|
26134
26108
|
}
|
|
26135
26109
|
function ThemeProvider({ children }) {
|
|
26136
|
-
const [theme, setThemeState] = useState17(() =>
|
|
26137
|
-
var _a78;
|
|
26138
|
-
return (_a78 = getStoredTheme()) != null ? _a78 : getPreferredTheme();
|
|
26139
|
-
});
|
|
26110
|
+
const [theme, setThemeState] = useState17(() => resolveTheme2());
|
|
26140
26111
|
const [mounted, setMounted] = useState17(false);
|
|
26141
26112
|
useEffect20(() => {
|
|
26142
|
-
|
|
26143
|
-
|
|
26144
|
-
setThemeState(initialTheme);
|
|
26113
|
+
const initialTheme = resolveTheme2();
|
|
26114
|
+
setThemeState((currentTheme) => currentTheme === initialTheme ? currentTheme : initialTheme);
|
|
26145
26115
|
applyThemeToRoot(initialTheme);
|
|
26146
26116
|
setMounted(true);
|
|
26147
26117
|
}, []);
|
|
@@ -26168,6 +26138,24 @@ function ThemeProvider({ children }) {
|
|
|
26168
26138
|
mediaQuery.addEventListener("change", handleChange);
|
|
26169
26139
|
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
26170
26140
|
}, []);
|
|
26141
|
+
useEffect20(() => {
|
|
26142
|
+
if (typeof document === "undefined") {
|
|
26143
|
+
return;
|
|
26144
|
+
}
|
|
26145
|
+
const root = document.documentElement;
|
|
26146
|
+
const observer = new MutationObserver(() => {
|
|
26147
|
+
const rootTheme = getThemeFromRoot();
|
|
26148
|
+
if (!rootTheme) {
|
|
26149
|
+
return;
|
|
26150
|
+
}
|
|
26151
|
+
setThemeState((currentTheme) => currentTheme === rootTheme ? currentTheme : rootTheme);
|
|
26152
|
+
});
|
|
26153
|
+
observer.observe(root, {
|
|
26154
|
+
attributes: true,
|
|
26155
|
+
attributeFilter: ["class", "data-theme"]
|
|
26156
|
+
});
|
|
26157
|
+
return () => observer.disconnect();
|
|
26158
|
+
}, []);
|
|
26171
26159
|
const setTheme = useCallback8((nextTheme) => {
|
|
26172
26160
|
setThemeState(nextTheme);
|
|
26173
26161
|
}, []);
|
|
@@ -26205,7 +26193,7 @@ function ThemeProvider({ children }) {
|
|
|
26205
26193
|
}),
|
|
26206
26194
|
[theme, setTheme, toggleTheme]
|
|
26207
26195
|
);
|
|
26208
|
-
return /* @__PURE__ */
|
|
26196
|
+
return /* @__PURE__ */ jsx58(ThemeContext.Provider, { value, children });
|
|
26209
26197
|
}
|
|
26210
26198
|
function ThemeScript() {
|
|
26211
26199
|
const script = `
|
|
@@ -26226,15 +26214,15 @@ function ThemeScript() {
|
|
|
26226
26214
|
root.style.colorScheme = theme;
|
|
26227
26215
|
})();
|
|
26228
26216
|
`;
|
|
26229
|
-
return /* @__PURE__ */
|
|
26217
|
+
return /* @__PURE__ */ jsx58("script", { dangerouslySetInnerHTML: { __html: script } });
|
|
26230
26218
|
}
|
|
26231
26219
|
|
|
26232
26220
|
// src/components/cupcode/TimelineCupcode.tsx
|
|
26233
|
-
import { jsx as
|
|
26221
|
+
import { jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
26234
26222
|
function Timeline({ items, variant = "vertical", className }) {
|
|
26235
26223
|
if (variant === "horizontal") {
|
|
26236
|
-
return /* @__PURE__ */
|
|
26237
|
-
/* @__PURE__ */
|
|
26224
|
+
return /* @__PURE__ */ jsx59("div", { className: cn("flex items-start gap-4 overflow-x-auto pb-4", className), children: items.map((item, index) => /* @__PURE__ */ jsxs38("div", { className: "flex flex-col items-center min-w-[200px]", children: [
|
|
26225
|
+
/* @__PURE__ */ jsx59(
|
|
26238
26226
|
"div",
|
|
26239
26227
|
{
|
|
26240
26228
|
className: cn(
|
|
@@ -26242,27 +26230,27 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26242
26230
|
"transition-all duration-300",
|
|
26243
26231
|
item.active ? "cc-gradient-galaxy text-white elevation-3 scale-110" : "bg-muted text-muted-foreground"
|
|
26244
26232
|
),
|
|
26245
|
-
children: item.icon || /* @__PURE__ */
|
|
26233
|
+
children: item.icon || /* @__PURE__ */ jsx59("span", { className: "text-sm font-bold", children: index + 1 })
|
|
26246
26234
|
}
|
|
26247
26235
|
),
|
|
26248
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
26236
|
+
index < items.length - 1 && /* @__PURE__ */ jsx59("div", { className: cn(
|
|
26249
26237
|
"h-1 w-full mb-3",
|
|
26250
26238
|
item.active ? "bg-cupcode-purple" : "bg-muted"
|
|
26251
26239
|
) }),
|
|
26252
|
-
/* @__PURE__ */
|
|
26253
|
-
/* @__PURE__ */
|
|
26240
|
+
/* @__PURE__ */ jsxs38("div", { className: "text-center", children: [
|
|
26241
|
+
/* @__PURE__ */ jsx59("h4", { className: cn(
|
|
26254
26242
|
"font-display font-semibold mb-1",
|
|
26255
26243
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
26256
26244
|
), children: item.title }),
|
|
26257
|
-
item.description && /* @__PURE__ */
|
|
26258
|
-
item.date && /* @__PURE__ */
|
|
26245
|
+
item.description && /* @__PURE__ */ jsx59("p", { className: "text-sm text-muted-foreground", children: item.description }),
|
|
26246
|
+
item.date && /* @__PURE__ */ jsx59("p", { className: "text-xs text-muted-foreground mt-1", children: item.date })
|
|
26259
26247
|
] })
|
|
26260
26248
|
] }, item.id)) });
|
|
26261
26249
|
}
|
|
26262
|
-
return /* @__PURE__ */
|
|
26263
|
-
/* @__PURE__ */
|
|
26264
|
-
items.map((item, index) => /* @__PURE__ */
|
|
26265
|
-
/* @__PURE__ */
|
|
26250
|
+
return /* @__PURE__ */ jsxs38("div", { className: cn("relative space-6", className), children: [
|
|
26251
|
+
/* @__PURE__ */ jsx59("div", { className: "absolute left-6 top-0 bottom-0 w-0.5 bg-muted" }),
|
|
26252
|
+
items.map((item, index) => /* @__PURE__ */ jsxs38("div", { className: "relative flex gap-6 pb-8 last:pb-0", children: [
|
|
26253
|
+
/* @__PURE__ */ jsx59(
|
|
26266
26254
|
"div",
|
|
26267
26255
|
{
|
|
26268
26256
|
className: cn(
|
|
@@ -26270,16 +26258,16 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26270
26258
|
"transition-all duration-300",
|
|
26271
26259
|
item.active ? "cc-gradient-galaxy text-white elevation-3" : "bg-muted text-muted-foreground"
|
|
26272
26260
|
),
|
|
26273
|
-
children: item.icon || /* @__PURE__ */
|
|
26261
|
+
children: item.icon || /* @__PURE__ */ jsx59("span", { className: "text-sm font-bold", children: index + 1 })
|
|
26274
26262
|
}
|
|
26275
26263
|
),
|
|
26276
|
-
/* @__PURE__ */
|
|
26277
|
-
/* @__PURE__ */
|
|
26264
|
+
/* @__PURE__ */ jsxs38("div", { className: "flex-1 pt-1", children: [
|
|
26265
|
+
/* @__PURE__ */ jsx59("h4", { className: cn(
|
|
26278
26266
|
"font-display font-semibold mb-1",
|
|
26279
26267
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
26280
26268
|
), children: item.title }),
|
|
26281
|
-
item.description && /* @__PURE__ */
|
|
26282
|
-
item.date && /* @__PURE__ */
|
|
26269
|
+
item.description && /* @__PURE__ */ jsx59("p", { className: "text-sm text-muted-foreground mb-2", children: item.description }),
|
|
26270
|
+
item.date && /* @__PURE__ */ jsx59("p", { className: "text-xs text-muted-foreground", children: item.date })
|
|
26283
26271
|
] })
|
|
26284
26272
|
] }, item.id))
|
|
26285
26273
|
] });
|
|
@@ -26287,7 +26275,7 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
26287
26275
|
|
|
26288
26276
|
// src/components/cupcode/ToastCupcode.tsx
|
|
26289
26277
|
import { X as X6, CheckCircle, AlertCircle, Info as Info2, AlertTriangle as AlertTriangle2 } from "lucide-react";
|
|
26290
|
-
import { jsx as
|
|
26278
|
+
import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
26291
26279
|
var variantStyles2 = {
|
|
26292
26280
|
success: {
|
|
26293
26281
|
gradient: "from-success/20 to-success/5",
|
|
@@ -26322,7 +26310,7 @@ var ToastCupcode = ({
|
|
|
26322
26310
|
}) => {
|
|
26323
26311
|
const style = variantStyles2[variant];
|
|
26324
26312
|
const Icon3 = style.icon;
|
|
26325
|
-
return /* @__PURE__ */
|
|
26313
|
+
return /* @__PURE__ */ jsx60(
|
|
26326
26314
|
"div",
|
|
26327
26315
|
{
|
|
26328
26316
|
className: cn(
|
|
@@ -26334,18 +26322,18 @@ var ToastCupcode = ({
|
|
|
26334
26322
|
"min-w-[300px] max-w-[420px]",
|
|
26335
26323
|
"animate-slide-up"
|
|
26336
26324
|
),
|
|
26337
|
-
children: /* @__PURE__ */
|
|
26338
|
-
/* @__PURE__ */
|
|
26339
|
-
/* @__PURE__ */
|
|
26340
|
-
/* @__PURE__ */
|
|
26341
|
-
description && /* @__PURE__ */
|
|
26325
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex items-start gap-3", children: [
|
|
26326
|
+
/* @__PURE__ */ jsx60(Icon3, { className: cn("h-5 w-5 shrink-0 mt-0.5", style.iconColor) }),
|
|
26327
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex-1 space-y-1", children: [
|
|
26328
|
+
/* @__PURE__ */ jsx60("p", { className: "text-sm font-semibold text-cupcode-ink", children: title }),
|
|
26329
|
+
description && /* @__PURE__ */ jsx60("p", { className: "text-xs text-cupcode-ink/70", children: description })
|
|
26342
26330
|
] }),
|
|
26343
|
-
onClose && /* @__PURE__ */
|
|
26331
|
+
onClose && /* @__PURE__ */ jsx60(
|
|
26344
26332
|
"button",
|
|
26345
26333
|
{
|
|
26346
26334
|
onClick: onClose,
|
|
26347
26335
|
className: "shrink-0 rounded-md p-1 hover:bg-cupcode-ink/10 transition-colors",
|
|
26348
|
-
children: /* @__PURE__ */
|
|
26336
|
+
children: /* @__PURE__ */ jsx60(X6, { className: "h-4 w-4 text-cupcode-ink/50" })
|
|
26349
26337
|
}
|
|
26350
26338
|
)
|
|
26351
26339
|
] })
|
|
@@ -26355,11 +26343,11 @@ var ToastCupcode = ({
|
|
|
26355
26343
|
|
|
26356
26344
|
// src/components/cupcode/VideoWatchButton.tsx
|
|
26357
26345
|
import React35 from "react";
|
|
26358
|
-
import { jsx as
|
|
26359
|
-
var PlayGlyph = () => /* @__PURE__ */
|
|
26346
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
26347
|
+
var PlayGlyph = () => /* @__PURE__ */ jsx61("svg", { viewBox: "0 0 18 18", "aria-hidden": "true", className: "h-[18px] w-[18px]", children: /* @__PURE__ */ jsx61("path", { d: "M6 4.5L13.5 9L6 13.5V4.5Z", fill: "currentColor" }) });
|
|
26360
26348
|
var VideoWatchButton = React35.forwardRef(
|
|
26361
26349
|
({ className, label = "Assistir", type = "button", "aria-label": ariaLabel, ...props }, ref) => {
|
|
26362
|
-
return /* @__PURE__ */
|
|
26350
|
+
return /* @__PURE__ */ jsxs40(
|
|
26363
26351
|
"button",
|
|
26364
26352
|
{
|
|
26365
26353
|
ref,
|
|
@@ -26368,18 +26356,18 @@ var VideoWatchButton = React35.forwardRef(
|
|
|
26368
26356
|
className: cn("cc-video-watch-btn", className),
|
|
26369
26357
|
...props,
|
|
26370
26358
|
children: [
|
|
26371
|
-
/* @__PURE__ */
|
|
26372
|
-
/* @__PURE__ */
|
|
26373
|
-
/* @__PURE__ */
|
|
26374
|
-
/* @__PURE__ */
|
|
26375
|
-
/* @__PURE__ */
|
|
26376
|
-
/* @__PURE__ */
|
|
26377
|
-
/* @__PURE__ */
|
|
26378
|
-
/* @__PURE__ */
|
|
26379
|
-
/* @__PURE__ */
|
|
26359
|
+
/* @__PURE__ */ jsxs40("span", { className: "cc-video-watch-btn__bg", children: [
|
|
26360
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__icon", children: /* @__PURE__ */ jsx61(PlayGlyph, {}) }),
|
|
26361
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__label", children: label }),
|
|
26362
|
+
/* @__PURE__ */ jsxs40("span", { className: "cc-video-watch-btn__mask", "aria-hidden": "true", children: [
|
|
26363
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--1" }),
|
|
26364
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--2" }),
|
|
26365
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--3" }),
|
|
26366
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--4" }),
|
|
26367
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__blob cc-video-watch-btn__blob--5" })
|
|
26380
26368
|
] })
|
|
26381
26369
|
] }),
|
|
26382
|
-
/* @__PURE__ */
|
|
26370
|
+
/* @__PURE__ */ jsx61("span", { className: "cc-video-watch-btn__glow", "aria-hidden": "true" })
|
|
26383
26371
|
]
|
|
26384
26372
|
}
|
|
26385
26373
|
);
|
|
@@ -26390,11 +26378,11 @@ VideoWatchButton.displayName = "VideoWatchButton";
|
|
|
26390
26378
|
// src/components/cupcode/TooltipCupcode.tsx
|
|
26391
26379
|
import * as React36 from "react";
|
|
26392
26380
|
import * as TooltipPrimitive2 from "@radix-ui/react-tooltip";
|
|
26393
|
-
import { jsx as
|
|
26381
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
26394
26382
|
var TooltipProvider2 = TooltipPrimitive2.Provider;
|
|
26395
26383
|
var TooltipCupcode = TooltipPrimitive2.Root;
|
|
26396
26384
|
var TooltipTrigger2 = TooltipPrimitive2.Trigger;
|
|
26397
|
-
var TooltipContent2 = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
26385
|
+
var TooltipContent2 = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
26398
26386
|
TooltipPrimitive2.Content,
|
|
26399
26387
|
{
|
|
26400
26388
|
ref,
|
|
@@ -26418,11 +26406,11 @@ TooltipContent2.displayName = TooltipPrimitive2.Content.displayName;
|
|
|
26418
26406
|
import * as React37 from "react";
|
|
26419
26407
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
|
26420
26408
|
import { ChevronDown as ChevronDown6 } from "lucide-react";
|
|
26421
|
-
import { jsx as
|
|
26409
|
+
import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
26422
26410
|
var Accordion = AccordionPrimitive2.Root;
|
|
26423
|
-
var AccordionItem2 = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
26411
|
+
var AccordionItem2 = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx63(AccordionPrimitive2.Item, { ref, className: cn("border-b", className), ...props }));
|
|
26424
26412
|
AccordionItem2.displayName = "AccordionItem";
|
|
26425
|
-
var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26413
|
+
var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx63(AccordionPrimitive2.Header, { className: "flex", children: /* @__PURE__ */ jsxs41(
|
|
26426
26414
|
AccordionPrimitive2.Trigger,
|
|
26427
26415
|
{
|
|
26428
26416
|
ref,
|
|
@@ -26433,18 +26421,18 @@ var AccordionTrigger2 = React37.forwardRef(({ className, children, ...props }, r
|
|
|
26433
26421
|
...props,
|
|
26434
26422
|
children: [
|
|
26435
26423
|
children,
|
|
26436
|
-
/* @__PURE__ */
|
|
26424
|
+
/* @__PURE__ */ jsx63(ChevronDown6, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
26437
26425
|
]
|
|
26438
26426
|
}
|
|
26439
26427
|
) }));
|
|
26440
26428
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
26441
|
-
var AccordionContent2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26429
|
+
var AccordionContent2 = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx63(
|
|
26442
26430
|
AccordionPrimitive2.Content,
|
|
26443
26431
|
{
|
|
26444
26432
|
ref,
|
|
26445
26433
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
26446
26434
|
...props,
|
|
26447
|
-
children: /* @__PURE__ */
|
|
26435
|
+
children: /* @__PURE__ */ jsx63("div", { className: cn("pb-4 pt-0", className), children })
|
|
26448
26436
|
}
|
|
26449
26437
|
));
|
|
26450
26438
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
@@ -26452,7 +26440,7 @@ AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
|
26452
26440
|
// src/components/ui/alert.tsx
|
|
26453
26441
|
import * as React38 from "react";
|
|
26454
26442
|
import { cva as cva3 } from "class-variance-authority";
|
|
26455
|
-
import { jsx as
|
|
26443
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
26456
26444
|
var alertVariants = cva3(
|
|
26457
26445
|
"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",
|
|
26458
26446
|
{
|
|
@@ -26467,14 +26455,14 @@ var alertVariants = cva3(
|
|
|
26467
26455
|
}
|
|
26468
26456
|
}
|
|
26469
26457
|
);
|
|
26470
|
-
var Alert = React38.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
26458
|
+
var Alert = React38.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx64("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
26471
26459
|
Alert.displayName = "Alert";
|
|
26472
26460
|
var AlertTitle = React38.forwardRef(
|
|
26473
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26461
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx64("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
26474
26462
|
);
|
|
26475
26463
|
AlertTitle.displayName = "AlertTitle";
|
|
26476
26464
|
var AlertDescription = React38.forwardRef(
|
|
26477
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26465
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx64("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
26478
26466
|
);
|
|
26479
26467
|
AlertDescription.displayName = "AlertDescription";
|
|
26480
26468
|
|
|
@@ -26486,11 +26474,11 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
26486
26474
|
import * as React39 from "react";
|
|
26487
26475
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
26488
26476
|
import { ChevronRight as ChevronRight3, MoreHorizontal } from "lucide-react";
|
|
26489
|
-
import { jsx as
|
|
26490
|
-
var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */
|
|
26477
|
+
import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
26478
|
+
var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx65("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
26491
26479
|
Breadcrumb.displayName = "Breadcrumb";
|
|
26492
26480
|
var BreadcrumbList = React39.forwardRef(
|
|
26493
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26481
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx65(
|
|
26494
26482
|
"ol",
|
|
26495
26483
|
{
|
|
26496
26484
|
ref,
|
|
@@ -26504,16 +26492,16 @@ var BreadcrumbList = React39.forwardRef(
|
|
|
26504
26492
|
);
|
|
26505
26493
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
26506
26494
|
var BreadcrumbItem = React39.forwardRef(
|
|
26507
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26495
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx65("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
26508
26496
|
);
|
|
26509
26497
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
26510
26498
|
var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
26511
26499
|
const Comp = asChild ? Slot2 : "a";
|
|
26512
|
-
return /* @__PURE__ */
|
|
26500
|
+
return /* @__PURE__ */ jsx65(Comp, { ref, className: cn("transition-colors hover:text-foreground", className), ...props });
|
|
26513
26501
|
});
|
|
26514
26502
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
26515
26503
|
var BreadcrumbPage = React39.forwardRef(
|
|
26516
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26504
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx65(
|
|
26517
26505
|
"span",
|
|
26518
26506
|
{
|
|
26519
26507
|
ref,
|
|
@@ -26526,9 +26514,9 @@ var BreadcrumbPage = React39.forwardRef(
|
|
|
26526
26514
|
)
|
|
26527
26515
|
);
|
|
26528
26516
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
26529
|
-
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */
|
|
26517
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ jsx65("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children != null ? children : /* @__PURE__ */ jsx65(ChevronRight3, {}) });
|
|
26530
26518
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
26531
|
-
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */
|
|
26519
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs42(
|
|
26532
26520
|
"span",
|
|
26533
26521
|
{
|
|
26534
26522
|
role: "presentation",
|
|
@@ -26536,8 +26524,8 @@ var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs43(
|
|
|
26536
26524
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
26537
26525
|
...props,
|
|
26538
26526
|
children: [
|
|
26539
|
-
/* @__PURE__ */
|
|
26540
|
-
/* @__PURE__ */
|
|
26527
|
+
/* @__PURE__ */ jsx65(MoreHorizontal, { className: "h-4 w-4" }),
|
|
26528
|
+
/* @__PURE__ */ jsx65("span", { className: "sr-only", children: "More" })
|
|
26541
26529
|
]
|
|
26542
26530
|
}
|
|
26543
26531
|
);
|
|
@@ -26546,9 +26534,9 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
26546
26534
|
// src/components/ui/calendar.tsx
|
|
26547
26535
|
import { ChevronLeft, ChevronRight as ChevronRight4 } from "lucide-react";
|
|
26548
26536
|
import { DayPicker } from "react-day-picker";
|
|
26549
|
-
import { jsx as
|
|
26537
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
26550
26538
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
26551
|
-
return /* @__PURE__ */
|
|
26539
|
+
return /* @__PURE__ */ jsx66(
|
|
26552
26540
|
DayPicker,
|
|
26553
26541
|
{
|
|
26554
26542
|
showOutsideDays,
|
|
@@ -26583,9 +26571,9 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
26583
26571
|
components: {
|
|
26584
26572
|
Chevron: ({ orientation, className: className2, ...chevronProps }) => {
|
|
26585
26573
|
if (orientation === "left") {
|
|
26586
|
-
return /* @__PURE__ */
|
|
26574
|
+
return /* @__PURE__ */ jsx66(ChevronLeft, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
26587
26575
|
}
|
|
26588
|
-
return /* @__PURE__ */
|
|
26576
|
+
return /* @__PURE__ */ jsx66(ChevronRight4, { className: cn("h-4 w-4", className2), ...chevronProps });
|
|
26589
26577
|
}
|
|
26590
26578
|
},
|
|
26591
26579
|
...props
|
|
@@ -26596,27 +26584,27 @@ Calendar.displayName = "Calendar";
|
|
|
26596
26584
|
|
|
26597
26585
|
// src/components/ui/card.tsx
|
|
26598
26586
|
import * as React40 from "react";
|
|
26599
|
-
import { jsx as
|
|
26600
|
-
var Card = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
26587
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
26588
|
+
var Card = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx67("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props }));
|
|
26601
26589
|
Card.displayName = "Card";
|
|
26602
26590
|
var CardHeader = React40.forwardRef(
|
|
26603
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26591
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx67("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
26604
26592
|
);
|
|
26605
26593
|
CardHeader.displayName = "CardHeader";
|
|
26606
26594
|
var CardTitle = React40.forwardRef(
|
|
26607
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26595
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx67("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
26608
26596
|
);
|
|
26609
26597
|
CardTitle.displayName = "CardTitle";
|
|
26610
26598
|
var CardDescription = React40.forwardRef(
|
|
26611
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26599
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx67("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
26612
26600
|
);
|
|
26613
26601
|
CardDescription.displayName = "CardDescription";
|
|
26614
26602
|
var CardContent = React40.forwardRef(
|
|
26615
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26603
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx67("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
26616
26604
|
);
|
|
26617
26605
|
CardContent.displayName = "CardContent";
|
|
26618
26606
|
var CardFooter = React40.forwardRef(
|
|
26619
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
26607
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx67("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
26620
26608
|
);
|
|
26621
26609
|
CardFooter.displayName = "CardFooter";
|
|
26622
26610
|
|
|
@@ -26624,7 +26612,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
26624
26612
|
import * as React41 from "react";
|
|
26625
26613
|
import useEmblaCarousel from "embla-carousel-react";
|
|
26626
26614
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
26627
|
-
import { jsx as
|
|
26615
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
26628
26616
|
var CarouselContext = React41.createContext(null);
|
|
26629
26617
|
function useCarousel() {
|
|
26630
26618
|
const context = React41.useContext(CarouselContext);
|
|
@@ -26686,7 +26674,7 @@ var Carousel = React41.forwardRef(
|
|
|
26686
26674
|
api == null ? void 0 : api.off("select", onSelect);
|
|
26687
26675
|
};
|
|
26688
26676
|
}, [api, onSelect]);
|
|
26689
|
-
return /* @__PURE__ */
|
|
26677
|
+
return /* @__PURE__ */ jsx68(
|
|
26690
26678
|
CarouselContext.Provider,
|
|
26691
26679
|
{
|
|
26692
26680
|
value: {
|
|
@@ -26699,7 +26687,7 @@ var Carousel = React41.forwardRef(
|
|
|
26699
26687
|
canScrollPrev,
|
|
26700
26688
|
canScrollNext
|
|
26701
26689
|
},
|
|
26702
|
-
children: /* @__PURE__ */
|
|
26690
|
+
children: /* @__PURE__ */ jsx68(
|
|
26703
26691
|
"div",
|
|
26704
26692
|
{
|
|
26705
26693
|
ref,
|
|
@@ -26719,7 +26707,7 @@ Carousel.displayName = "Carousel";
|
|
|
26719
26707
|
var CarouselContent = React41.forwardRef(
|
|
26720
26708
|
({ className, ...props }, ref) => {
|
|
26721
26709
|
const { carouselRef, orientation } = useCarousel();
|
|
26722
|
-
return /* @__PURE__ */
|
|
26710
|
+
return /* @__PURE__ */ jsx68("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx68(
|
|
26723
26711
|
"div",
|
|
26724
26712
|
{
|
|
26725
26713
|
ref,
|
|
@@ -26733,7 +26721,7 @@ CarouselContent.displayName = "CarouselContent";
|
|
|
26733
26721
|
var CarouselItem = React41.forwardRef(
|
|
26734
26722
|
({ className, ...props }, ref) => {
|
|
26735
26723
|
const { orientation } = useCarousel();
|
|
26736
|
-
return /* @__PURE__ */
|
|
26724
|
+
return /* @__PURE__ */ jsx68(
|
|
26737
26725
|
"div",
|
|
26738
26726
|
{
|
|
26739
26727
|
ref,
|
|
@@ -26749,7 +26737,7 @@ CarouselItem.displayName = "CarouselItem";
|
|
|
26749
26737
|
var CarouselPrevious = React41.forwardRef(
|
|
26750
26738
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
26751
26739
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
26752
|
-
return /* @__PURE__ */
|
|
26740
|
+
return /* @__PURE__ */ jsxs43(
|
|
26753
26741
|
Button,
|
|
26754
26742
|
{
|
|
26755
26743
|
ref,
|
|
@@ -26764,8 +26752,8 @@ var CarouselPrevious = React41.forwardRef(
|
|
|
26764
26752
|
onClick: scrollPrev,
|
|
26765
26753
|
...props,
|
|
26766
26754
|
children: [
|
|
26767
|
-
/* @__PURE__ */
|
|
26768
|
-
/* @__PURE__ */
|
|
26755
|
+
/* @__PURE__ */ jsx68(ArrowLeft, { className: "h-4 w-4" }),
|
|
26756
|
+
/* @__PURE__ */ jsx68("span", { className: "sr-only", children: "Previous slide" })
|
|
26769
26757
|
]
|
|
26770
26758
|
}
|
|
26771
26759
|
);
|
|
@@ -26775,7 +26763,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
|
|
|
26775
26763
|
var CarouselNext = React41.forwardRef(
|
|
26776
26764
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
26777
26765
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
26778
|
-
return /* @__PURE__ */
|
|
26766
|
+
return /* @__PURE__ */ jsxs43(
|
|
26779
26767
|
Button,
|
|
26780
26768
|
{
|
|
26781
26769
|
ref,
|
|
@@ -26790,8 +26778,8 @@ var CarouselNext = React41.forwardRef(
|
|
|
26790
26778
|
onClick: scrollNext,
|
|
26791
26779
|
...props,
|
|
26792
26780
|
children: [
|
|
26793
|
-
/* @__PURE__ */
|
|
26794
|
-
/* @__PURE__ */
|
|
26781
|
+
/* @__PURE__ */ jsx68(ArrowRight, { className: "h-4 w-4" }),
|
|
26782
|
+
/* @__PURE__ */ jsx68("span", { className: "sr-only", children: "Next slide" })
|
|
26795
26783
|
]
|
|
26796
26784
|
}
|
|
26797
26785
|
);
|
|
@@ -26802,7 +26790,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
26802
26790
|
// src/components/ui/chart.tsx
|
|
26803
26791
|
import * as React42 from "react";
|
|
26804
26792
|
import * as RechartsPrimitive from "recharts";
|
|
26805
|
-
import { Fragment as Fragment6, jsx as
|
|
26793
|
+
import { Fragment as Fragment6, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
26806
26794
|
var THEMES = { light: "", dark: ".dark" };
|
|
26807
26795
|
var ChartContext = React42.createContext(null);
|
|
26808
26796
|
function useChart() {
|
|
@@ -26815,7 +26803,7 @@ function useChart() {
|
|
|
26815
26803
|
var ChartContainer = React42.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
26816
26804
|
const uniqueId = React42.useId();
|
|
26817
26805
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
26818
|
-
return /* @__PURE__ */
|
|
26806
|
+
return /* @__PURE__ */ jsx69(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs44(
|
|
26819
26807
|
"div",
|
|
26820
26808
|
{
|
|
26821
26809
|
"data-chart": chartId,
|
|
@@ -26826,8 +26814,8 @@ var ChartContainer = React42.forwardRef(({ id, className, children, config, ...p
|
|
|
26826
26814
|
),
|
|
26827
26815
|
...props,
|
|
26828
26816
|
children: [
|
|
26829
|
-
/* @__PURE__ */
|
|
26830
|
-
/* @__PURE__ */
|
|
26817
|
+
/* @__PURE__ */ jsx69(ChartStyle, { id: chartId, config }),
|
|
26818
|
+
/* @__PURE__ */ jsx69(RechartsPrimitive.ResponsiveContainer, { children })
|
|
26831
26819
|
]
|
|
26832
26820
|
}
|
|
26833
26821
|
) });
|
|
@@ -26838,7 +26826,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
26838
26826
|
if (!colorConfig.length) {
|
|
26839
26827
|
return null;
|
|
26840
26828
|
}
|
|
26841
|
-
return /* @__PURE__ */
|
|
26829
|
+
return /* @__PURE__ */ jsx69(
|
|
26842
26830
|
"style",
|
|
26843
26831
|
{
|
|
26844
26832
|
dangerouslySetInnerHTML: {
|
|
@@ -26885,18 +26873,18 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
26885
26873
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
26886
26874
|
const value = !labelKey && typeof label === "string" ? ((_a78 = config[label]) == null ? void 0 : _a78.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
26887
26875
|
if (labelFormatter) {
|
|
26888
|
-
return /* @__PURE__ */
|
|
26876
|
+
return /* @__PURE__ */ jsx69("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
26889
26877
|
}
|
|
26890
26878
|
if (!value) {
|
|
26891
26879
|
return null;
|
|
26892
26880
|
}
|
|
26893
|
-
return /* @__PURE__ */
|
|
26881
|
+
return /* @__PURE__ */ jsx69("div", { className: cn("font-medium", labelClassName), children: value });
|
|
26894
26882
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
26895
26883
|
if (!active || !(payload == null ? void 0 : payload.length)) {
|
|
26896
26884
|
return null;
|
|
26897
26885
|
}
|
|
26898
26886
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
26899
|
-
return /* @__PURE__ */
|
|
26887
|
+
return /* @__PURE__ */ jsxs44(
|
|
26900
26888
|
"div",
|
|
26901
26889
|
{
|
|
26902
26890
|
ref,
|
|
@@ -26906,19 +26894,19 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
26906
26894
|
),
|
|
26907
26895
|
children: [
|
|
26908
26896
|
!nestLabel ? tooltipLabel : null,
|
|
26909
|
-
/* @__PURE__ */
|
|
26897
|
+
/* @__PURE__ */ jsx69("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
26910
26898
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
26911
26899
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
26912
26900
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
26913
|
-
return /* @__PURE__ */
|
|
26901
|
+
return /* @__PURE__ */ jsx69(
|
|
26914
26902
|
"div",
|
|
26915
26903
|
{
|
|
26916
26904
|
className: cn(
|
|
26917
26905
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
26918
26906
|
indicator === "dot" && "items-center"
|
|
26919
26907
|
),
|
|
26920
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
26921
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */
|
|
26908
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs44(Fragment6, { children: [
|
|
26909
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx69(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx69(
|
|
26922
26910
|
"div",
|
|
26923
26911
|
{
|
|
26924
26912
|
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
@@ -26933,7 +26921,7 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
26933
26921
|
}
|
|
26934
26922
|
}
|
|
26935
26923
|
),
|
|
26936
|
-
/* @__PURE__ */
|
|
26924
|
+
/* @__PURE__ */ jsxs44(
|
|
26937
26925
|
"div",
|
|
26938
26926
|
{
|
|
26939
26927
|
className: cn(
|
|
@@ -26941,11 +26929,11 @@ var ChartTooltipContent = React42.forwardRef(
|
|
|
26941
26929
|
nestLabel ? "items-end" : "items-center"
|
|
26942
26930
|
),
|
|
26943
26931
|
children: [
|
|
26944
|
-
/* @__PURE__ */
|
|
26932
|
+
/* @__PURE__ */ jsxs44("div", { className: "grid gap-1.5", children: [
|
|
26945
26933
|
nestLabel ? tooltipLabel : null,
|
|
26946
|
-
/* @__PURE__ */
|
|
26934
|
+
/* @__PURE__ */ jsx69("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
26947
26935
|
] }),
|
|
26948
|
-
item.value && /* @__PURE__ */
|
|
26936
|
+
item.value && /* @__PURE__ */ jsx69("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
26949
26937
|
]
|
|
26950
26938
|
}
|
|
26951
26939
|
)
|
|
@@ -26966,7 +26954,7 @@ var ChartLegendContent = React42.forwardRef(({ className, hideIcon = false, payl
|
|
|
26966
26954
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
26967
26955
|
return null;
|
|
26968
26956
|
}
|
|
26969
|
-
return /* @__PURE__ */
|
|
26957
|
+
return /* @__PURE__ */ jsx69(
|
|
26970
26958
|
"div",
|
|
26971
26959
|
{
|
|
26972
26960
|
ref,
|
|
@@ -26974,12 +26962,12 @@ var ChartLegendContent = React42.forwardRef(({ className, hideIcon = false, payl
|
|
|
26974
26962
|
children: payload.map((item) => {
|
|
26975
26963
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
26976
26964
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
26977
|
-
return /* @__PURE__ */
|
|
26965
|
+
return /* @__PURE__ */ jsxs44(
|
|
26978
26966
|
"div",
|
|
26979
26967
|
{
|
|
26980
26968
|
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
26981
26969
|
children: [
|
|
26982
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */
|
|
26970
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx69(itemConfig.icon, {}) : /* @__PURE__ */ jsx69(
|
|
26983
26971
|
"div",
|
|
26984
26972
|
{
|
|
26985
26973
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -27016,8 +27004,8 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
27016
27004
|
import * as React43 from "react";
|
|
27017
27005
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
27018
27006
|
import { Check as Check6 } from "lucide-react";
|
|
27019
|
-
import { jsx as
|
|
27020
|
-
var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27007
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
27008
|
+
var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx70(
|
|
27021
27009
|
CheckboxPrimitive.Root,
|
|
27022
27010
|
{
|
|
27023
27011
|
ref,
|
|
@@ -27026,7 +27014,7 @@ var Checkbox = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27026
27014
|
className
|
|
27027
27015
|
),
|
|
27028
27016
|
...props,
|
|
27029
|
-
children: /* @__PURE__ */
|
|
27017
|
+
children: /* @__PURE__ */ jsx70(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx70(Check6, { className: "h-4 w-4" }) })
|
|
27030
27018
|
}
|
|
27031
27019
|
));
|
|
27032
27020
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
@@ -27041,8 +27029,8 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
27041
27029
|
import * as React44 from "react";
|
|
27042
27030
|
import { Command as CommandPrimitive } from "cmdk";
|
|
27043
27031
|
import { Search as Search3 } from "lucide-react";
|
|
27044
|
-
import { jsx as
|
|
27045
|
-
var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27032
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
27033
|
+
var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx71(
|
|
27046
27034
|
CommandPrimitive,
|
|
27047
27035
|
{
|
|
27048
27036
|
ref,
|
|
@@ -27055,11 +27043,11 @@ var Command = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27055
27043
|
));
|
|
27056
27044
|
Command.displayName = CommandPrimitive.displayName;
|
|
27057
27045
|
var CommandDialog = ({ children, ...props }) => {
|
|
27058
|
-
return /* @__PURE__ */
|
|
27046
|
+
return /* @__PURE__ */ jsx71(Dialog, { ...props, children: /* @__PURE__ */ jsx71(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx71(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 }) }) });
|
|
27059
27047
|
};
|
|
27060
|
-
var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27061
|
-
/* @__PURE__ */
|
|
27062
|
-
/* @__PURE__ */
|
|
27048
|
+
var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs45("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
27049
|
+
/* @__PURE__ */ jsx71(Search3, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
27050
|
+
/* @__PURE__ */ jsx71(
|
|
27063
27051
|
CommandPrimitive.Input,
|
|
27064
27052
|
{
|
|
27065
27053
|
ref,
|
|
@@ -27072,7 +27060,7 @@ var CommandInput = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
27072
27060
|
)
|
|
27073
27061
|
] }));
|
|
27074
27062
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
27075
|
-
var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27063
|
+
var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx71(
|
|
27076
27064
|
CommandPrimitive.List,
|
|
27077
27065
|
{
|
|
27078
27066
|
ref,
|
|
@@ -27081,9 +27069,9 @@ var CommandList = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
27081
27069
|
}
|
|
27082
27070
|
));
|
|
27083
27071
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
27084
|
-
var CommandEmpty = React44.forwardRef((props, ref) => /* @__PURE__ */
|
|
27072
|
+
var CommandEmpty = React44.forwardRef((props, ref) => /* @__PURE__ */ jsx71(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
27085
27073
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
27086
|
-
var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27074
|
+
var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx71(
|
|
27087
27075
|
CommandPrimitive.Group,
|
|
27088
27076
|
{
|
|
27089
27077
|
ref,
|
|
@@ -27095,9 +27083,9 @@ var CommandGroup = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
27095
27083
|
}
|
|
27096
27084
|
));
|
|
27097
27085
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
27098
|
-
var CommandSeparator = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27086
|
+
var CommandSeparator = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx71(CommandPrimitive.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
27099
27087
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
27100
|
-
var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27088
|
+
var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx71(
|
|
27101
27089
|
CommandPrimitive.Item,
|
|
27102
27090
|
{
|
|
27103
27091
|
ref,
|
|
@@ -27110,7 +27098,7 @@ var CommandItem = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
27110
27098
|
));
|
|
27111
27099
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
27112
27100
|
var CommandShortcut = ({ className, ...props }) => {
|
|
27113
|
-
return /* @__PURE__ */
|
|
27101
|
+
return /* @__PURE__ */ jsx71("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27114
27102
|
};
|
|
27115
27103
|
CommandShortcut.displayName = "CommandShortcut";
|
|
27116
27104
|
|
|
@@ -27118,14 +27106,14 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
27118
27106
|
import * as React45 from "react";
|
|
27119
27107
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
27120
27108
|
import { Check as Check7, ChevronRight as ChevronRight5, Circle as Circle3 } from "lucide-react";
|
|
27121
|
-
import { jsx as
|
|
27109
|
+
import { jsx as jsx72, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
27122
27110
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
27123
27111
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
27124
27112
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
27125
27113
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
27126
27114
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
27127
27115
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
27128
|
-
var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
27116
|
+
var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs46(
|
|
27129
27117
|
ContextMenuPrimitive.SubTrigger,
|
|
27130
27118
|
{
|
|
27131
27119
|
ref,
|
|
@@ -27137,12 +27125,12 @@ var ContextMenuSubTrigger = React45.forwardRef(({ className, inset, children, ..
|
|
|
27137
27125
|
...props,
|
|
27138
27126
|
children: [
|
|
27139
27127
|
children,
|
|
27140
|
-
/* @__PURE__ */
|
|
27128
|
+
/* @__PURE__ */ jsx72(ChevronRight5, { className: "ml-auto h-4 w-4" })
|
|
27141
27129
|
]
|
|
27142
27130
|
}
|
|
27143
27131
|
));
|
|
27144
27132
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
27145
|
-
var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27133
|
+
var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx72(
|
|
27146
27134
|
ContextMenuPrimitive.SubContent,
|
|
27147
27135
|
{
|
|
27148
27136
|
ref,
|
|
@@ -27154,7 +27142,7 @@ var ContextMenuSubContent = React45.forwardRef(({ className, ...props }, ref) =>
|
|
|
27154
27142
|
}
|
|
27155
27143
|
));
|
|
27156
27144
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
27157
|
-
var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27145
|
+
var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx72(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx72(
|
|
27158
27146
|
ContextMenuPrimitive.Content,
|
|
27159
27147
|
{
|
|
27160
27148
|
ref,
|
|
@@ -27166,7 +27154,7 @@ var ContextMenuContent = React45.forwardRef(({ className, ...props }, ref) => /*
|
|
|
27166
27154
|
}
|
|
27167
27155
|
) }));
|
|
27168
27156
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
27169
|
-
var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
27157
|
+
var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx72(
|
|
27170
27158
|
ContextMenuPrimitive.Item,
|
|
27171
27159
|
{
|
|
27172
27160
|
ref,
|
|
@@ -27179,7 +27167,7 @@ var ContextMenuItem = React45.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
27179
27167
|
}
|
|
27180
27168
|
));
|
|
27181
27169
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
27182
|
-
var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
27170
|
+
var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs46(
|
|
27183
27171
|
ContextMenuPrimitive.CheckboxItem,
|
|
27184
27172
|
{
|
|
27185
27173
|
ref,
|
|
@@ -27190,13 +27178,13 @@ var ContextMenuCheckboxItem = React45.forwardRef(({ className, children, checked
|
|
|
27190
27178
|
checked,
|
|
27191
27179
|
...props,
|
|
27192
27180
|
children: [
|
|
27193
|
-
/* @__PURE__ */
|
|
27181
|
+
/* @__PURE__ */ jsx72("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx72(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx72(Check7, { className: "h-4 w-4" }) }) }),
|
|
27194
27182
|
children
|
|
27195
27183
|
]
|
|
27196
27184
|
}
|
|
27197
27185
|
));
|
|
27198
27186
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
27199
|
-
var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
27187
|
+
var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs46(
|
|
27200
27188
|
ContextMenuPrimitive.RadioItem,
|
|
27201
27189
|
{
|
|
27202
27190
|
ref,
|
|
@@ -27206,13 +27194,13 @@ var ContextMenuRadioItem = React45.forwardRef(({ className, children, ...props }
|
|
|
27206
27194
|
),
|
|
27207
27195
|
...props,
|
|
27208
27196
|
children: [
|
|
27209
|
-
/* @__PURE__ */
|
|
27197
|
+
/* @__PURE__ */ jsx72("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx72(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx72(Circle3, { className: "h-2 w-2 fill-current" }) }) }),
|
|
27210
27198
|
children
|
|
27211
27199
|
]
|
|
27212
27200
|
}
|
|
27213
27201
|
));
|
|
27214
27202
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
27215
|
-
var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
27203
|
+
var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx72(
|
|
27216
27204
|
ContextMenuPrimitive.Label,
|
|
27217
27205
|
{
|
|
27218
27206
|
ref,
|
|
@@ -27221,10 +27209,10 @@ var ContextMenuLabel = React45.forwardRef(({ className, inset, ...props }, ref)
|
|
|
27221
27209
|
}
|
|
27222
27210
|
));
|
|
27223
27211
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
27224
|
-
var ContextMenuSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27212
|
+
var ContextMenuSeparator = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx72(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
27225
27213
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
27226
27214
|
var ContextMenuShortcut = ({ className, ...props }) => {
|
|
27227
|
-
return /* @__PURE__ */
|
|
27215
|
+
return /* @__PURE__ */ jsx72("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27228
27216
|
};
|
|
27229
27217
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
27230
27218
|
|
|
@@ -27237,19 +27225,19 @@ import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
|
27237
27225
|
import * as React46 from "react";
|
|
27238
27226
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
27239
27227
|
import { cva as cva4 } from "class-variance-authority";
|
|
27240
|
-
import { jsx as
|
|
27228
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
27241
27229
|
var labelVariants = cva4("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
27242
|
-
var Label4 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27230
|
+
var Label4 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx73(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
27243
27231
|
Label4.displayName = LabelPrimitive.Root.displayName;
|
|
27244
27232
|
|
|
27245
27233
|
// src/components/ui/form.tsx
|
|
27246
|
-
import { jsx as
|
|
27234
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
27247
27235
|
var Form = FormProvider;
|
|
27248
27236
|
var FormFieldContext = React47.createContext({});
|
|
27249
27237
|
var FormField = ({
|
|
27250
27238
|
...props
|
|
27251
27239
|
}) => {
|
|
27252
|
-
return /* @__PURE__ */
|
|
27240
|
+
return /* @__PURE__ */ jsx74(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx74(Controller, { ...props }) });
|
|
27253
27241
|
};
|
|
27254
27242
|
var useFormField = () => {
|
|
27255
27243
|
const fieldContext = React47.useContext(FormFieldContext);
|
|
@@ -27273,19 +27261,19 @@ var FormItemContext = React47.createContext({});
|
|
|
27273
27261
|
var FormItem = React47.forwardRef(
|
|
27274
27262
|
({ className, ...props }, ref) => {
|
|
27275
27263
|
const id = React47.useId();
|
|
27276
|
-
return /* @__PURE__ */
|
|
27264
|
+
return /* @__PURE__ */ jsx74(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx74("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
27277
27265
|
}
|
|
27278
27266
|
);
|
|
27279
27267
|
FormItem.displayName = "FormItem";
|
|
27280
27268
|
var FormLabel = React47.forwardRef(({ className, ...props }, ref) => {
|
|
27281
27269
|
const { error, formItemId } = useFormField();
|
|
27282
|
-
return /* @__PURE__ */
|
|
27270
|
+
return /* @__PURE__ */ jsx74(Label4, { ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
27283
27271
|
});
|
|
27284
27272
|
FormLabel.displayName = "FormLabel";
|
|
27285
27273
|
var FormControl = React47.forwardRef(
|
|
27286
27274
|
({ ...props }, ref) => {
|
|
27287
27275
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
27288
|
-
return /* @__PURE__ */
|
|
27276
|
+
return /* @__PURE__ */ jsx74(
|
|
27289
27277
|
Slot3,
|
|
27290
27278
|
{
|
|
27291
27279
|
ref,
|
|
@@ -27301,7 +27289,7 @@ FormControl.displayName = "FormControl";
|
|
|
27301
27289
|
var FormDescription = React47.forwardRef(
|
|
27302
27290
|
({ className, ...props }, ref) => {
|
|
27303
27291
|
const { formDescriptionId } = useFormField();
|
|
27304
|
-
return /* @__PURE__ */
|
|
27292
|
+
return /* @__PURE__ */ jsx74("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
27305
27293
|
}
|
|
27306
27294
|
);
|
|
27307
27295
|
FormDescription.displayName = "FormDescription";
|
|
@@ -27312,17 +27300,17 @@ var FormMessage = React47.forwardRef(
|
|
|
27312
27300
|
if (!body) {
|
|
27313
27301
|
return null;
|
|
27314
27302
|
}
|
|
27315
|
-
return /* @__PURE__ */
|
|
27303
|
+
return /* @__PURE__ */ jsx74("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
27316
27304
|
}
|
|
27317
27305
|
);
|
|
27318
27306
|
FormMessage.displayName = "FormMessage";
|
|
27319
27307
|
|
|
27320
27308
|
// src/components/ui/glass-card.tsx
|
|
27321
27309
|
import * as React48 from "react";
|
|
27322
|
-
import { jsx as
|
|
27310
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
27323
27311
|
var GlassCard = React48.forwardRef(
|
|
27324
27312
|
({ className, ...props }, ref) => {
|
|
27325
|
-
return /* @__PURE__ */
|
|
27313
|
+
return /* @__PURE__ */ jsx75("div", { ref, className: cn("glass-card", className), ...props });
|
|
27326
27314
|
}
|
|
27327
27315
|
);
|
|
27328
27316
|
GlassCard.displayName = "GlassCard";
|
|
@@ -27330,10 +27318,10 @@ GlassCard.displayName = "GlassCard";
|
|
|
27330
27318
|
// src/components/ui/hover-card.tsx
|
|
27331
27319
|
import * as React49 from "react";
|
|
27332
27320
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
27333
|
-
import { jsx as
|
|
27321
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
27334
27322
|
var HoverCard = HoverCardPrimitive.Root;
|
|
27335
27323
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
27336
|
-
var HoverCardContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
27324
|
+
var HoverCardContent = React49.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx76(
|
|
27337
27325
|
HoverCardPrimitive.Content,
|
|
27338
27326
|
{
|
|
27339
27327
|
ref,
|
|
@@ -27352,9 +27340,9 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
27352
27340
|
import * as React50 from "react";
|
|
27353
27341
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
27354
27342
|
import { Dot } from "lucide-react";
|
|
27355
|
-
import { jsx as
|
|
27343
|
+
import { jsx as jsx77, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
27356
27344
|
var InputOTP = React50.forwardRef(
|
|
27357
|
-
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */
|
|
27345
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx77(
|
|
27358
27346
|
OTPInput,
|
|
27359
27347
|
{
|
|
27360
27348
|
ref,
|
|
@@ -27366,13 +27354,13 @@ var InputOTP = React50.forwardRef(
|
|
|
27366
27354
|
);
|
|
27367
27355
|
InputOTP.displayName = "InputOTP";
|
|
27368
27356
|
var InputOTPGroup = React50.forwardRef(
|
|
27369
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
27357
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx77("div", { ref, className: cn("flex items-center", className), ...props })
|
|
27370
27358
|
);
|
|
27371
27359
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
27372
27360
|
var InputOTPSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
|
27373
27361
|
const inputOTPContext = React50.useContext(OTPInputContext);
|
|
27374
27362
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
27375
|
-
return /* @__PURE__ */
|
|
27363
|
+
return /* @__PURE__ */ jsxs47(
|
|
27376
27364
|
"div",
|
|
27377
27365
|
{
|
|
27378
27366
|
ref,
|
|
@@ -27384,14 +27372,14 @@ var InputOTPSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
27384
27372
|
...props,
|
|
27385
27373
|
children: [
|
|
27386
27374
|
char,
|
|
27387
|
-
hasFakeCaret && /* @__PURE__ */
|
|
27375
|
+
hasFakeCaret && /* @__PURE__ */ jsx77("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx77("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
27388
27376
|
]
|
|
27389
27377
|
}
|
|
27390
27378
|
);
|
|
27391
27379
|
});
|
|
27392
27380
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
27393
27381
|
var InputOTPSeparator = React50.forwardRef(
|
|
27394
|
-
({ ...props }, ref) => /* @__PURE__ */
|
|
27382
|
+
({ ...props }, ref) => /* @__PURE__ */ jsx77("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx77(Dot, {}) })
|
|
27395
27383
|
);
|
|
27396
27384
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
27397
27385
|
|
|
@@ -27399,13 +27387,13 @@ InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
|
27399
27387
|
import * as React51 from "react";
|
|
27400
27388
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
27401
27389
|
import { Check as Check8, ChevronRight as ChevronRight6, Circle as Circle4 } from "lucide-react";
|
|
27402
|
-
import { jsx as
|
|
27390
|
+
import { jsx as jsx78, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
27403
27391
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
27404
27392
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
27405
27393
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
27406
27394
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
27407
27395
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
27408
|
-
var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27396
|
+
var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
27409
27397
|
MenubarPrimitive.Root,
|
|
27410
27398
|
{
|
|
27411
27399
|
ref,
|
|
@@ -27414,7 +27402,7 @@ var Menubar = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
27414
27402
|
}
|
|
27415
27403
|
));
|
|
27416
27404
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
27417
|
-
var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27405
|
+
var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
27418
27406
|
MenubarPrimitive.Trigger,
|
|
27419
27407
|
{
|
|
27420
27408
|
ref,
|
|
@@ -27426,7 +27414,7 @@ var MenubarTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
27426
27414
|
}
|
|
27427
27415
|
));
|
|
27428
27416
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
27429
|
-
var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
27417
|
+
var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs48(
|
|
27430
27418
|
MenubarPrimitive.SubTrigger,
|
|
27431
27419
|
{
|
|
27432
27420
|
ref,
|
|
@@ -27438,12 +27426,12 @@ var MenubarSubTrigger = React51.forwardRef(({ className, inset, children, ...pro
|
|
|
27438
27426
|
...props,
|
|
27439
27427
|
children: [
|
|
27440
27428
|
children,
|
|
27441
|
-
/* @__PURE__ */
|
|
27429
|
+
/* @__PURE__ */ jsx78(ChevronRight6, { className: "ml-auto h-4 w-4" })
|
|
27442
27430
|
]
|
|
27443
27431
|
}
|
|
27444
27432
|
));
|
|
27445
27433
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
27446
|
-
var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27434
|
+
var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
27447
27435
|
MenubarPrimitive.SubContent,
|
|
27448
27436
|
{
|
|
27449
27437
|
ref,
|
|
@@ -27455,7 +27443,7 @@ var MenubarSubContent = React51.forwardRef(({ className, ...props }, ref) => /*
|
|
|
27455
27443
|
}
|
|
27456
27444
|
));
|
|
27457
27445
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
27458
|
-
var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
27446
|
+
var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx78(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx78(
|
|
27459
27447
|
MenubarPrimitive.Content,
|
|
27460
27448
|
{
|
|
27461
27449
|
ref,
|
|
@@ -27470,7 +27458,7 @@ var MenubarContent = React51.forwardRef(({ className, align = "start", alignOffs
|
|
|
27470
27458
|
}
|
|
27471
27459
|
) }));
|
|
27472
27460
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
27473
|
-
var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
27461
|
+
var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
27474
27462
|
MenubarPrimitive.Item,
|
|
27475
27463
|
{
|
|
27476
27464
|
ref,
|
|
@@ -27483,7 +27471,7 @@ var MenubarItem = React51.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
27483
27471
|
}
|
|
27484
27472
|
));
|
|
27485
27473
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
27486
|
-
var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
27474
|
+
var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs48(
|
|
27487
27475
|
MenubarPrimitive.CheckboxItem,
|
|
27488
27476
|
{
|
|
27489
27477
|
ref,
|
|
@@ -27494,13 +27482,13 @@ var MenubarCheckboxItem = React51.forwardRef(({ className, children, checked, ..
|
|
|
27494
27482
|
checked,
|
|
27495
27483
|
...props,
|
|
27496
27484
|
children: [
|
|
27497
|
-
/* @__PURE__ */
|
|
27485
|
+
/* @__PURE__ */ jsx78("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx78(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx78(Check8, { className: "h-4 w-4" }) }) }),
|
|
27498
27486
|
children
|
|
27499
27487
|
]
|
|
27500
27488
|
}
|
|
27501
27489
|
));
|
|
27502
27490
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
27503
|
-
var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
27491
|
+
var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs48(
|
|
27504
27492
|
MenubarPrimitive.RadioItem,
|
|
27505
27493
|
{
|
|
27506
27494
|
ref,
|
|
@@ -27510,13 +27498,13 @@ var MenubarRadioItem = React51.forwardRef(({ className, children, ...props }, re
|
|
|
27510
27498
|
),
|
|
27511
27499
|
...props,
|
|
27512
27500
|
children: [
|
|
27513
|
-
/* @__PURE__ */
|
|
27501
|
+
/* @__PURE__ */ jsx78("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx78(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx78(Circle4, { className: "h-2 w-2 fill-current" }) }) }),
|
|
27514
27502
|
children
|
|
27515
27503
|
]
|
|
27516
27504
|
}
|
|
27517
27505
|
));
|
|
27518
27506
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
27519
|
-
var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
27507
|
+
var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
27520
27508
|
MenubarPrimitive.Label,
|
|
27521
27509
|
{
|
|
27522
27510
|
ref,
|
|
@@ -27525,10 +27513,10 @@ var MenubarLabel = React51.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
27525
27513
|
}
|
|
27526
27514
|
));
|
|
27527
27515
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
27528
|
-
var MenubarSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27516
|
+
var MenubarSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
27529
27517
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
27530
27518
|
var MenubarShortcut = ({ className, ...props }) => {
|
|
27531
|
-
return /* @__PURE__ */
|
|
27519
|
+
return /* @__PURE__ */ jsx78("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
27532
27520
|
};
|
|
27533
27521
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
27534
27522
|
|
|
@@ -27537,8 +27525,8 @@ import * as React52 from "react";
|
|
|
27537
27525
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
27538
27526
|
import { cva as cva5 } from "class-variance-authority";
|
|
27539
27527
|
import { ChevronDown as ChevronDown7 } from "lucide-react";
|
|
27540
|
-
import { jsx as
|
|
27541
|
-
var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
27528
|
+
import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
27529
|
+
var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs49(
|
|
27542
27530
|
NavigationMenuPrimitive.Root,
|
|
27543
27531
|
{
|
|
27544
27532
|
ref,
|
|
@@ -27546,12 +27534,12 @@ var NavigationMenu = React52.forwardRef(({ className, children, ...props }, ref)
|
|
|
27546
27534
|
...props,
|
|
27547
27535
|
children: [
|
|
27548
27536
|
children,
|
|
27549
|
-
/* @__PURE__ */
|
|
27537
|
+
/* @__PURE__ */ jsx79(NavigationMenuViewport, {})
|
|
27550
27538
|
]
|
|
27551
27539
|
}
|
|
27552
27540
|
));
|
|
27553
27541
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
27554
|
-
var NavigationMenuList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27542
|
+
var NavigationMenuList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx79(
|
|
27555
27543
|
NavigationMenuPrimitive.List,
|
|
27556
27544
|
{
|
|
27557
27545
|
ref,
|
|
@@ -27564,7 +27552,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
27564
27552
|
var navigationMenuTriggerStyle = cva5(
|
|
27565
27553
|
"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"
|
|
27566
27554
|
);
|
|
27567
|
-
var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
27555
|
+
var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs49(
|
|
27568
27556
|
NavigationMenuPrimitive.Trigger,
|
|
27569
27557
|
{
|
|
27570
27558
|
ref,
|
|
@@ -27573,7 +27561,7 @@ var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props
|
|
|
27573
27561
|
children: [
|
|
27574
27562
|
children,
|
|
27575
27563
|
" ",
|
|
27576
|
-
/* @__PURE__ */
|
|
27564
|
+
/* @__PURE__ */ jsx79(
|
|
27577
27565
|
ChevronDown7,
|
|
27578
27566
|
{
|
|
27579
27567
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -27584,7 +27572,7 @@ var NavigationMenuTrigger = React52.forwardRef(({ className, children, ...props
|
|
|
27584
27572
|
}
|
|
27585
27573
|
));
|
|
27586
27574
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
27587
|
-
var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27575
|
+
var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx79(
|
|
27588
27576
|
NavigationMenuPrimitive.Content,
|
|
27589
27577
|
{
|
|
27590
27578
|
ref,
|
|
@@ -27597,7 +27585,7 @@ var NavigationMenuContent = React52.forwardRef(({ className, ...props }, ref) =>
|
|
|
27597
27585
|
));
|
|
27598
27586
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
27599
27587
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
27600
|
-
var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27588
|
+
var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx79("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx79(
|
|
27601
27589
|
NavigationMenuPrimitive.Viewport,
|
|
27602
27590
|
{
|
|
27603
27591
|
className: cn(
|
|
@@ -27609,7 +27597,7 @@ var NavigationMenuViewport = React52.forwardRef(({ className, ...props }, ref) =
|
|
|
27609
27597
|
}
|
|
27610
27598
|
) }));
|
|
27611
27599
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
27612
|
-
var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27600
|
+
var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx79(
|
|
27613
27601
|
NavigationMenuPrimitive.Indicator,
|
|
27614
27602
|
{
|
|
27615
27603
|
ref,
|
|
@@ -27618,7 +27606,7 @@ var NavigationMenuIndicator = React52.forwardRef(({ className, ...props }, ref)
|
|
|
27618
27606
|
className
|
|
27619
27607
|
),
|
|
27620
27608
|
...props,
|
|
27621
|
-
children: /* @__PURE__ */
|
|
27609
|
+
children: /* @__PURE__ */ jsx79("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
27622
27610
|
}
|
|
27623
27611
|
));
|
|
27624
27612
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
@@ -27626,8 +27614,8 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
27626
27614
|
// src/components/ui/pagination.tsx
|
|
27627
27615
|
import * as React53 from "react";
|
|
27628
27616
|
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight7, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
27629
|
-
import { jsx as
|
|
27630
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
27617
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
27618
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx80(
|
|
27631
27619
|
"nav",
|
|
27632
27620
|
{
|
|
27633
27621
|
role: "navigation",
|
|
@@ -27638,12 +27626,12 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx81(
|
|
|
27638
27626
|
);
|
|
27639
27627
|
Pagination.displayName = "Pagination";
|
|
27640
27628
|
var PaginationContent = React53.forwardRef(
|
|
27641
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
27629
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx80("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
27642
27630
|
);
|
|
27643
27631
|
PaginationContent.displayName = "PaginationContent";
|
|
27644
|
-
var PaginationItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27632
|
+
var PaginationItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx80("li", { ref, className: cn("", className), ...props }));
|
|
27645
27633
|
PaginationItem.displayName = "PaginationItem";
|
|
27646
|
-
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */
|
|
27634
|
+
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ jsx80(
|
|
27647
27635
|
"a",
|
|
27648
27636
|
{
|
|
27649
27637
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -27658,29 +27646,29 @@ var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @_
|
|
|
27658
27646
|
}
|
|
27659
27647
|
);
|
|
27660
27648
|
PaginationLink.displayName = "PaginationLink";
|
|
27661
|
-
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */
|
|
27662
|
-
/* @__PURE__ */
|
|
27663
|
-
/* @__PURE__ */
|
|
27649
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs50(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className), ...props, children: [
|
|
27650
|
+
/* @__PURE__ */ jsx80(ChevronLeft2, { className: "h-4 w-4" }),
|
|
27651
|
+
/* @__PURE__ */ jsx80("span", { children: "Previous" })
|
|
27664
27652
|
] });
|
|
27665
27653
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
27666
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */
|
|
27667
|
-
/* @__PURE__ */
|
|
27668
|
-
/* @__PURE__ */
|
|
27654
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs50(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className), ...props, children: [
|
|
27655
|
+
/* @__PURE__ */ jsx80("span", { children: "Next" }),
|
|
27656
|
+
/* @__PURE__ */ jsx80(ChevronRight7, { className: "h-4 w-4" })
|
|
27669
27657
|
] });
|
|
27670
27658
|
PaginationNext.displayName = "PaginationNext";
|
|
27671
|
-
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */
|
|
27672
|
-
/* @__PURE__ */
|
|
27673
|
-
/* @__PURE__ */
|
|
27659
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs50("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
27660
|
+
/* @__PURE__ */ jsx80(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
27661
|
+
/* @__PURE__ */ jsx80("span", { className: "sr-only", children: "More pages" })
|
|
27674
27662
|
] });
|
|
27675
27663
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
27676
27664
|
|
|
27677
27665
|
// src/components/ui/popover.tsx
|
|
27678
27666
|
import * as React54 from "react";
|
|
27679
27667
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
27680
|
-
import { jsx as
|
|
27668
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
27681
27669
|
var Popover = PopoverPrimitive.Root;
|
|
27682
27670
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
27683
|
-
var PopoverContent = React54.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
27671
|
+
var PopoverContent = React54.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx81(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx81(
|
|
27684
27672
|
PopoverPrimitive.Content,
|
|
27685
27673
|
{
|
|
27686
27674
|
ref,
|
|
@@ -27699,13 +27687,13 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
27699
27687
|
import * as React55 from "react";
|
|
27700
27688
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
27701
27689
|
import { Circle as Circle5 } from "lucide-react";
|
|
27702
|
-
import { jsx as
|
|
27690
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
27703
27691
|
var RadioGroup4 = React55.forwardRef(({ className, ...props }, ref) => {
|
|
27704
|
-
return /* @__PURE__ */
|
|
27692
|
+
return /* @__PURE__ */ jsx82(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
27705
27693
|
});
|
|
27706
27694
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
27707
27695
|
var RadioGroupItem = React55.forwardRef(({ className, ...props }, ref) => {
|
|
27708
|
-
return /* @__PURE__ */
|
|
27696
|
+
return /* @__PURE__ */ jsx82(
|
|
27709
27697
|
RadioGroupPrimitive.Item,
|
|
27710
27698
|
{
|
|
27711
27699
|
ref,
|
|
@@ -27714,7 +27702,7 @@ var RadioGroupItem = React55.forwardRef(({ className, ...props }, ref) => {
|
|
|
27714
27702
|
className
|
|
27715
27703
|
),
|
|
27716
27704
|
...props,
|
|
27717
|
-
children: /* @__PURE__ */
|
|
27705
|
+
children: /* @__PURE__ */ jsx82(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx82(Circle5, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
27718
27706
|
}
|
|
27719
27707
|
);
|
|
27720
27708
|
});
|
|
@@ -27723,8 +27711,8 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
27723
27711
|
// src/components/ui/resizable.tsx
|
|
27724
27712
|
import { GripVertical } from "lucide-react";
|
|
27725
27713
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
27726
|
-
import { jsx as
|
|
27727
|
-
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */
|
|
27714
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
27715
|
+
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsx83(
|
|
27728
27716
|
ResizablePrimitive.PanelGroup,
|
|
27729
27717
|
{
|
|
27730
27718
|
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
@@ -27736,7 +27724,7 @@ var ResizableHandle = ({
|
|
|
27736
27724
|
withHandle,
|
|
27737
27725
|
className,
|
|
27738
27726
|
...props
|
|
27739
|
-
}) => /* @__PURE__ */
|
|
27727
|
+
}) => /* @__PURE__ */ jsx83(
|
|
27740
27728
|
ResizablePrimitive.PanelResizeHandle,
|
|
27741
27729
|
{
|
|
27742
27730
|
className: cn(
|
|
@@ -27744,15 +27732,15 @@ var ResizableHandle = ({
|
|
|
27744
27732
|
className
|
|
27745
27733
|
),
|
|
27746
27734
|
...props,
|
|
27747
|
-
children: withHandle && /* @__PURE__ */
|
|
27735
|
+
children: withHandle && /* @__PURE__ */ jsx83("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx83(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
27748
27736
|
}
|
|
27749
27737
|
);
|
|
27750
27738
|
|
|
27751
27739
|
// src/components/ui/separator.tsx
|
|
27752
27740
|
import * as React56 from "react";
|
|
27753
27741
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
27754
|
-
import { jsx as
|
|
27755
|
-
var Separator5 = React56.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
27742
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
27743
|
+
var Separator5 = React56.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx84(
|
|
27756
27744
|
SeparatorPrimitive.Root,
|
|
27757
27745
|
{
|
|
27758
27746
|
ref,
|
|
@@ -27769,12 +27757,12 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
|
27769
27757
|
import { cva as cva6 } from "class-variance-authority";
|
|
27770
27758
|
import { X as X7 } from "lucide-react";
|
|
27771
27759
|
import * as React57 from "react";
|
|
27772
|
-
import { jsx as
|
|
27760
|
+
import { jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
27773
27761
|
var Sheet = SheetPrimitive.Root;
|
|
27774
27762
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
27775
27763
|
var SheetClose = SheetPrimitive.Close;
|
|
27776
27764
|
var SheetPortal = SheetPrimitive.Portal;
|
|
27777
|
-
var SheetOverlay = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27765
|
+
var SheetOverlay = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx85(
|
|
27778
27766
|
SheetPrimitive.Overlay,
|
|
27779
27767
|
{
|
|
27780
27768
|
className: cn(
|
|
@@ -27811,11 +27799,11 @@ var SheetContent = React57.forwardRef(
|
|
|
27811
27799
|
closeButtonClassName,
|
|
27812
27800
|
closeButtonLabel = "Close",
|
|
27813
27801
|
...props
|
|
27814
|
-
}, ref) => /* @__PURE__ */
|
|
27815
|
-
/* @__PURE__ */
|
|
27816
|
-
/* @__PURE__ */
|
|
27802
|
+
}, ref) => /* @__PURE__ */ jsxs51(SheetPortal, { children: [
|
|
27803
|
+
/* @__PURE__ */ jsx85(SheetOverlay, {}),
|
|
27804
|
+
/* @__PURE__ */ jsxs51(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
27817
27805
|
children,
|
|
27818
|
-
showCloseButton ? /* @__PURE__ */
|
|
27806
|
+
showCloseButton ? /* @__PURE__ */ jsxs51(
|
|
27819
27807
|
SheetPrimitive.Close,
|
|
27820
27808
|
{
|
|
27821
27809
|
className: cn(
|
|
@@ -27823,8 +27811,8 @@ var SheetContent = React57.forwardRef(
|
|
|
27823
27811
|
closeButtonClassName
|
|
27824
27812
|
),
|
|
27825
27813
|
children: [
|
|
27826
|
-
/* @__PURE__ */
|
|
27827
|
-
/* @__PURE__ */
|
|
27814
|
+
/* @__PURE__ */ jsx85(X7, { className: "h-4 w-4" }),
|
|
27815
|
+
/* @__PURE__ */ jsx85("span", { className: "sr-only", children: closeButtonLabel })
|
|
27828
27816
|
]
|
|
27829
27817
|
}
|
|
27830
27818
|
) : null
|
|
@@ -27832,13 +27820,13 @@ var SheetContent = React57.forwardRef(
|
|
|
27832
27820
|
] })
|
|
27833
27821
|
);
|
|
27834
27822
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
27835
|
-
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
27823
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx85("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
27836
27824
|
SheetHeader.displayName = "SheetHeader";
|
|
27837
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
27825
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx85("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
27838
27826
|
SheetFooter.displayName = "SheetFooter";
|
|
27839
|
-
var SheetTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27827
|
+
var SheetTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx85(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
27840
27828
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
27841
|
-
var SheetDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27829
|
+
var SheetDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx85(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
27842
27830
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
27843
27831
|
|
|
27844
27832
|
// src/components/ui/sidebar.tsx
|
|
@@ -27865,7 +27853,7 @@ function useIsMobile() {
|
|
|
27865
27853
|
}
|
|
27866
27854
|
|
|
27867
27855
|
// src/components/ui/sidebar.tsx
|
|
27868
|
-
import { jsx as
|
|
27856
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
27869
27857
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
27870
27858
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
27871
27859
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -27923,7 +27911,7 @@ var SidebarProvider = React59.forwardRef(({ defaultOpen = true, open: openProp,
|
|
|
27923
27911
|
}),
|
|
27924
27912
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
27925
27913
|
);
|
|
27926
|
-
return /* @__PURE__ */
|
|
27914
|
+
return /* @__PURE__ */ jsx86(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx86(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx86(
|
|
27927
27915
|
"div",
|
|
27928
27916
|
{
|
|
27929
27917
|
style: {
|
|
@@ -27942,7 +27930,7 @@ SidebarProvider.displayName = "SidebarProvider";
|
|
|
27942
27930
|
var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
27943
27931
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
27944
27932
|
if (collapsible === "none") {
|
|
27945
|
-
return /* @__PURE__ */
|
|
27933
|
+
return /* @__PURE__ */ jsx86(
|
|
27946
27934
|
"div",
|
|
27947
27935
|
{
|
|
27948
27936
|
className: cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className),
|
|
@@ -27953,7 +27941,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27953
27941
|
);
|
|
27954
27942
|
}
|
|
27955
27943
|
if (isMobile) {
|
|
27956
|
-
return /* @__PURE__ */
|
|
27944
|
+
return /* @__PURE__ */ jsx86(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsx86(
|
|
27957
27945
|
SheetContent,
|
|
27958
27946
|
{
|
|
27959
27947
|
"data-sidebar": "sidebar",
|
|
@@ -27963,11 +27951,11 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27963
27951
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
27964
27952
|
},
|
|
27965
27953
|
side,
|
|
27966
|
-
children: /* @__PURE__ */
|
|
27954
|
+
children: /* @__PURE__ */ jsx86("div", { className: "flex h-full w-full flex-col", children })
|
|
27967
27955
|
}
|
|
27968
27956
|
) });
|
|
27969
27957
|
}
|
|
27970
|
-
return /* @__PURE__ */
|
|
27958
|
+
return /* @__PURE__ */ jsxs52(
|
|
27971
27959
|
"div",
|
|
27972
27960
|
{
|
|
27973
27961
|
ref,
|
|
@@ -27977,7 +27965,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27977
27965
|
"data-variant": variant,
|
|
27978
27966
|
"data-side": side,
|
|
27979
27967
|
children: [
|
|
27980
|
-
/* @__PURE__ */
|
|
27968
|
+
/* @__PURE__ */ jsx86(
|
|
27981
27969
|
"div",
|
|
27982
27970
|
{
|
|
27983
27971
|
className: cn(
|
|
@@ -27988,7 +27976,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27988
27976
|
)
|
|
27989
27977
|
}
|
|
27990
27978
|
),
|
|
27991
|
-
/* @__PURE__ */
|
|
27979
|
+
/* @__PURE__ */ jsx86(
|
|
27992
27980
|
"div",
|
|
27993
27981
|
{
|
|
27994
27982
|
className: cn(
|
|
@@ -27999,7 +27987,7 @@ var Sidebar = React59.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27999
27987
|
className
|
|
28000
27988
|
),
|
|
28001
27989
|
...props,
|
|
28002
|
-
children: /* @__PURE__ */
|
|
27990
|
+
children: /* @__PURE__ */ jsx86(
|
|
28003
27991
|
"div",
|
|
28004
27992
|
{
|
|
28005
27993
|
"data-sidebar": "sidebar",
|
|
@@ -28017,7 +28005,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
28017
28005
|
var SidebarTrigger = React59.forwardRef(
|
|
28018
28006
|
({ className, onClick, ...props }, ref) => {
|
|
28019
28007
|
const { toggleSidebar } = useSidebar();
|
|
28020
|
-
return /* @__PURE__ */
|
|
28008
|
+
return /* @__PURE__ */ jsxs52(
|
|
28021
28009
|
Button,
|
|
28022
28010
|
{
|
|
28023
28011
|
ref,
|
|
@@ -28031,8 +28019,8 @@ var SidebarTrigger = React59.forwardRef(
|
|
|
28031
28019
|
},
|
|
28032
28020
|
...props,
|
|
28033
28021
|
children: [
|
|
28034
|
-
/* @__PURE__ */
|
|
28035
|
-
/* @__PURE__ */
|
|
28022
|
+
/* @__PURE__ */ jsx86(PanelLeft2, {}),
|
|
28023
|
+
/* @__PURE__ */ jsx86("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
28036
28024
|
]
|
|
28037
28025
|
}
|
|
28038
28026
|
);
|
|
@@ -28042,7 +28030,7 @@ SidebarTrigger.displayName = "SidebarTrigger";
|
|
|
28042
28030
|
var SidebarRail = React59.forwardRef(
|
|
28043
28031
|
({ className, ...props }, ref) => {
|
|
28044
28032
|
const { toggleSidebar } = useSidebar();
|
|
28045
|
-
return /* @__PURE__ */
|
|
28033
|
+
return /* @__PURE__ */ jsx86(
|
|
28046
28034
|
"button",
|
|
28047
28035
|
{
|
|
28048
28036
|
ref,
|
|
@@ -28067,7 +28055,7 @@ var SidebarRail = React59.forwardRef(
|
|
|
28067
28055
|
);
|
|
28068
28056
|
SidebarRail.displayName = "SidebarRail";
|
|
28069
28057
|
var SidebarInset = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28070
|
-
return /* @__PURE__ */
|
|
28058
|
+
return /* @__PURE__ */ jsx86(
|
|
28071
28059
|
"main",
|
|
28072
28060
|
{
|
|
28073
28061
|
ref,
|
|
@@ -28083,7 +28071,7 @@ var SidebarInset = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
28083
28071
|
SidebarInset.displayName = "SidebarInset";
|
|
28084
28072
|
var SidebarInput = React59.forwardRef(
|
|
28085
28073
|
({ className, ...props }, ref) => {
|
|
28086
|
-
return /* @__PURE__ */
|
|
28074
|
+
return /* @__PURE__ */ jsx86(
|
|
28087
28075
|
Input,
|
|
28088
28076
|
{
|
|
28089
28077
|
ref,
|
|
@@ -28099,16 +28087,16 @@ var SidebarInput = React59.forwardRef(
|
|
|
28099
28087
|
);
|
|
28100
28088
|
SidebarInput.displayName = "SidebarInput";
|
|
28101
28089
|
var SidebarHeader = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28102
|
-
return /* @__PURE__ */
|
|
28090
|
+
return /* @__PURE__ */ jsx86("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
28103
28091
|
});
|
|
28104
28092
|
SidebarHeader.displayName = "SidebarHeader";
|
|
28105
28093
|
var SidebarFooter = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28106
|
-
return /* @__PURE__ */
|
|
28094
|
+
return /* @__PURE__ */ jsx86("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
28107
28095
|
});
|
|
28108
28096
|
SidebarFooter.displayName = "SidebarFooter";
|
|
28109
28097
|
var SidebarSeparator = React59.forwardRef(
|
|
28110
28098
|
({ className, ...props }, ref) => {
|
|
28111
|
-
return /* @__PURE__ */
|
|
28099
|
+
return /* @__PURE__ */ jsx86(
|
|
28112
28100
|
Separator5,
|
|
28113
28101
|
{
|
|
28114
28102
|
ref,
|
|
@@ -28121,7 +28109,7 @@ var SidebarSeparator = React59.forwardRef(
|
|
|
28121
28109
|
);
|
|
28122
28110
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
28123
28111
|
var SidebarContent = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28124
|
-
return /* @__PURE__ */
|
|
28112
|
+
return /* @__PURE__ */ jsx86(
|
|
28125
28113
|
"div",
|
|
28126
28114
|
{
|
|
28127
28115
|
ref,
|
|
@@ -28136,7 +28124,7 @@ var SidebarContent = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
28136
28124
|
});
|
|
28137
28125
|
SidebarContent.displayName = "SidebarContent";
|
|
28138
28126
|
var SidebarGroup = React59.forwardRef(({ className, ...props }, ref) => {
|
|
28139
|
-
return /* @__PURE__ */
|
|
28127
|
+
return /* @__PURE__ */ jsx86(
|
|
28140
28128
|
"div",
|
|
28141
28129
|
{
|
|
28142
28130
|
ref,
|
|
@@ -28150,7 +28138,7 @@ SidebarGroup.displayName = "SidebarGroup";
|
|
|
28150
28138
|
var SidebarGroupLabel = React59.forwardRef(
|
|
28151
28139
|
({ className, asChild = false, ...props }, ref) => {
|
|
28152
28140
|
const Comp = asChild ? Slot4 : "div";
|
|
28153
|
-
return /* @__PURE__ */
|
|
28141
|
+
return /* @__PURE__ */ jsx86(
|
|
28154
28142
|
Comp,
|
|
28155
28143
|
{
|
|
28156
28144
|
ref,
|
|
@@ -28169,7 +28157,7 @@ SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
|
28169
28157
|
var SidebarGroupAction = React59.forwardRef(
|
|
28170
28158
|
({ className, asChild = false, ...props }, ref) => {
|
|
28171
28159
|
const Comp = asChild ? Slot4 : "button";
|
|
28172
|
-
return /* @__PURE__ */
|
|
28160
|
+
return /* @__PURE__ */ jsx86(
|
|
28173
28161
|
Comp,
|
|
28174
28162
|
{
|
|
28175
28163
|
ref,
|
|
@@ -28188,12 +28176,12 @@ var SidebarGroupAction = React59.forwardRef(
|
|
|
28188
28176
|
);
|
|
28189
28177
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
28190
28178
|
var SidebarGroupContent = React59.forwardRef(
|
|
28191
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28179
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx86("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
28192
28180
|
);
|
|
28193
28181
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
28194
|
-
var SidebarMenu = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28182
|
+
var SidebarMenu = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx86("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
28195
28183
|
SidebarMenu.displayName = "SidebarMenu";
|
|
28196
|
-
var SidebarMenuItem = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28184
|
+
var SidebarMenuItem = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx86("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
28197
28185
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
28198
28186
|
var sidebarMenuButtonVariants = cva7(
|
|
28199
28187
|
"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",
|
|
@@ -28218,7 +28206,7 @@ var sidebarMenuButtonVariants = cva7(
|
|
|
28218
28206
|
var SidebarMenuButton = React59.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
28219
28207
|
const Comp = asChild ? Slot4 : "button";
|
|
28220
28208
|
const { isMobile, state } = useSidebar();
|
|
28221
|
-
const button = /* @__PURE__ */
|
|
28209
|
+
const button = /* @__PURE__ */ jsx86(
|
|
28222
28210
|
Comp,
|
|
28223
28211
|
{
|
|
28224
28212
|
ref,
|
|
@@ -28237,15 +28225,15 @@ var SidebarMenuButton = React59.forwardRef(({ asChild = false, isActive = false,
|
|
|
28237
28225
|
children: tooltip
|
|
28238
28226
|
};
|
|
28239
28227
|
}
|
|
28240
|
-
return /* @__PURE__ */
|
|
28241
|
-
/* @__PURE__ */
|
|
28242
|
-
/* @__PURE__ */
|
|
28228
|
+
return /* @__PURE__ */ jsxs52(Tooltip, { children: [
|
|
28229
|
+
/* @__PURE__ */ jsx86(TooltipTrigger, { asChild: true, children: button }),
|
|
28230
|
+
/* @__PURE__ */ jsx86(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
28243
28231
|
] });
|
|
28244
28232
|
});
|
|
28245
28233
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
28246
28234
|
var SidebarMenuAction = React59.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
28247
28235
|
const Comp = asChild ? Slot4 : "button";
|
|
28248
|
-
return /* @__PURE__ */
|
|
28236
|
+
return /* @__PURE__ */ jsx86(
|
|
28249
28237
|
Comp,
|
|
28250
28238
|
{
|
|
28251
28239
|
ref,
|
|
@@ -28267,7 +28255,7 @@ var SidebarMenuAction = React59.forwardRef(({ className, asChild = false, showOn
|
|
|
28267
28255
|
});
|
|
28268
28256
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
28269
28257
|
var SidebarMenuBadge = React59.forwardRef(
|
|
28270
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28258
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx86(
|
|
28271
28259
|
"div",
|
|
28272
28260
|
{
|
|
28273
28261
|
ref,
|
|
@@ -28290,7 +28278,7 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28290
28278
|
const width = React59.useMemo(() => {
|
|
28291
28279
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
28292
28280
|
}, []);
|
|
28293
|
-
return /* @__PURE__ */
|
|
28281
|
+
return /* @__PURE__ */ jsxs52(
|
|
28294
28282
|
"div",
|
|
28295
28283
|
{
|
|
28296
28284
|
ref,
|
|
@@ -28298,8 +28286,8 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28298
28286
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
28299
28287
|
...props,
|
|
28300
28288
|
children: [
|
|
28301
|
-
showIcon && /* @__PURE__ */
|
|
28302
|
-
/* @__PURE__ */
|
|
28289
|
+
showIcon && /* @__PURE__ */ jsx86(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
28290
|
+
/* @__PURE__ */ jsx86(
|
|
28303
28291
|
Skeleton,
|
|
28304
28292
|
{
|
|
28305
28293
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -28315,7 +28303,7 @@ var SidebarMenuSkeleton = React59.forwardRef(({ className, showIcon = false, ...
|
|
|
28315
28303
|
});
|
|
28316
28304
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
28317
28305
|
var SidebarMenuSub = React59.forwardRef(
|
|
28318
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28306
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx86(
|
|
28319
28307
|
"ul",
|
|
28320
28308
|
{
|
|
28321
28309
|
ref,
|
|
@@ -28330,11 +28318,11 @@ var SidebarMenuSub = React59.forwardRef(
|
|
|
28330
28318
|
)
|
|
28331
28319
|
);
|
|
28332
28320
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
28333
|
-
var SidebarMenuSubItem = React59.forwardRef(({ ...props }, ref) => /* @__PURE__ */
|
|
28321
|
+
var SidebarMenuSubItem = React59.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx86("li", { ref, ...props }));
|
|
28334
28322
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
28335
28323
|
var SidebarMenuSubButton = React59.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
28336
28324
|
const Comp = asChild ? Slot4 : "a";
|
|
28337
|
-
return /* @__PURE__ */
|
|
28325
|
+
return /* @__PURE__ */ jsx86(
|
|
28338
28326
|
Comp,
|
|
28339
28327
|
{
|
|
28340
28328
|
ref,
|
|
@@ -28358,16 +28346,16 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
|
28358
28346
|
// src/components/ui/slider.tsx
|
|
28359
28347
|
import * as React60 from "react";
|
|
28360
28348
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
28361
|
-
import { jsx as
|
|
28362
|
-
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28349
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
28350
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs53(
|
|
28363
28351
|
SliderPrimitive.Root,
|
|
28364
28352
|
{
|
|
28365
28353
|
ref,
|
|
28366
28354
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
28367
28355
|
...props,
|
|
28368
28356
|
children: [
|
|
28369
|
-
/* @__PURE__ */
|
|
28370
|
-
/* @__PURE__ */
|
|
28357
|
+
/* @__PURE__ */ jsx87(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx87(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
28358
|
+
/* @__PURE__ */ jsx87(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" })
|
|
28371
28359
|
]
|
|
28372
28360
|
}
|
|
28373
28361
|
));
|
|
@@ -28375,25 +28363,25 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
28375
28363
|
|
|
28376
28364
|
// src/components/ui/table.tsx
|
|
28377
28365
|
import * as React61 from "react";
|
|
28378
|
-
import { jsx as
|
|
28366
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
28379
28367
|
var Table = React61.forwardRef(
|
|
28380
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28368
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx88("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
28381
28369
|
);
|
|
28382
28370
|
Table.displayName = "Table";
|
|
28383
28371
|
var TableHeader = React61.forwardRef(
|
|
28384
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28372
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
28385
28373
|
);
|
|
28386
28374
|
TableHeader.displayName = "TableHeader";
|
|
28387
28375
|
var TableBody = React61.forwardRef(
|
|
28388
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28376
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
28389
28377
|
);
|
|
28390
28378
|
TableBody.displayName = "TableBody";
|
|
28391
28379
|
var TableFooter = React61.forwardRef(
|
|
28392
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28380
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
28393
28381
|
);
|
|
28394
28382
|
TableFooter.displayName = "TableFooter";
|
|
28395
28383
|
var TableRow = React61.forwardRef(
|
|
28396
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28384
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88(
|
|
28397
28385
|
"tr",
|
|
28398
28386
|
{
|
|
28399
28387
|
ref,
|
|
@@ -28404,7 +28392,7 @@ var TableRow = React61.forwardRef(
|
|
|
28404
28392
|
);
|
|
28405
28393
|
TableRow.displayName = "TableRow";
|
|
28406
28394
|
var TableHead = React61.forwardRef(
|
|
28407
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28395
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88(
|
|
28408
28396
|
"th",
|
|
28409
28397
|
{
|
|
28410
28398
|
ref,
|
|
@@ -28418,11 +28406,11 @@ var TableHead = React61.forwardRef(
|
|
|
28418
28406
|
);
|
|
28419
28407
|
TableHead.displayName = "TableHead";
|
|
28420
28408
|
var TableCell = React61.forwardRef(
|
|
28421
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28409
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })
|
|
28422
28410
|
);
|
|
28423
28411
|
TableCell.displayName = "TableCell";
|
|
28424
28412
|
var TableCaption = React61.forwardRef(
|
|
28425
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
28413
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx88("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
28426
28414
|
);
|
|
28427
28415
|
TableCaption.displayName = "TableCaption";
|
|
28428
28416
|
|
|
@@ -28431,9 +28419,9 @@ import * as React62 from "react";
|
|
|
28431
28419
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
28432
28420
|
import { cva as cva8 } from "class-variance-authority";
|
|
28433
28421
|
import { X as X8 } from "lucide-react";
|
|
28434
|
-
import { jsx as
|
|
28422
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
28435
28423
|
var ToastProvider = ToastPrimitives.Provider;
|
|
28436
|
-
var ToastViewport = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28424
|
+
var ToastViewport = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx89(
|
|
28437
28425
|
ToastPrimitives.Viewport,
|
|
28438
28426
|
{
|
|
28439
28427
|
ref,
|
|
@@ -28460,10 +28448,10 @@ var toastVariants = cva8(
|
|
|
28460
28448
|
}
|
|
28461
28449
|
);
|
|
28462
28450
|
var Toast = React62.forwardRef(({ className, variant, ...props }, ref) => {
|
|
28463
|
-
return /* @__PURE__ */
|
|
28451
|
+
return /* @__PURE__ */ jsx89(ToastPrimitives.Root, { ref, className: cn(toastVariants({ variant }), className), ...props });
|
|
28464
28452
|
});
|
|
28465
28453
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
28466
|
-
var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28454
|
+
var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx89(
|
|
28467
28455
|
ToastPrimitives.Action,
|
|
28468
28456
|
{
|
|
28469
28457
|
ref,
|
|
@@ -28475,7 +28463,7 @@ var ToastAction = React62.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
28475
28463
|
}
|
|
28476
28464
|
));
|
|
28477
28465
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
28478
|
-
var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /* @__PURE__ */
|
|
28466
|
+
var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /* @__PURE__ */ jsx89(
|
|
28479
28467
|
ToastPrimitives.Close,
|
|
28480
28468
|
{
|
|
28481
28469
|
ref,
|
|
@@ -28489,31 +28477,31 @@ var ToastClose = React62.forwardRef(({ className, onClick, ...props }, ref) => /
|
|
|
28489
28477
|
},
|
|
28490
28478
|
"toast-close": "",
|
|
28491
28479
|
...props,
|
|
28492
|
-
children: /* @__PURE__ */
|
|
28480
|
+
children: /* @__PURE__ */ jsx89(X8, { className: "h-4 w-4" })
|
|
28493
28481
|
}
|
|
28494
28482
|
));
|
|
28495
28483
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
28496
|
-
var ToastTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28484
|
+
var ToastTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx89(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
28497
28485
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
28498
|
-
var ToastDescription = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28486
|
+
var ToastDescription = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx89(ToastPrimitives.Description, { ref, className: cn("text-sm opacity-90", className), ...props }));
|
|
28499
28487
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
28500
28488
|
|
|
28501
28489
|
// src/components/ui/toaster.tsx
|
|
28502
|
-
import { jsx as
|
|
28490
|
+
import { jsx as jsx90, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
28503
28491
|
function Toaster2() {
|
|
28504
28492
|
const { toasts } = useToast();
|
|
28505
|
-
return /* @__PURE__ */
|
|
28493
|
+
return /* @__PURE__ */ jsxs54(ToastProvider, { children: [
|
|
28506
28494
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
28507
|
-
return /* @__PURE__ */
|
|
28508
|
-
/* @__PURE__ */
|
|
28509
|
-
title && /* @__PURE__ */
|
|
28510
|
-
description && /* @__PURE__ */
|
|
28495
|
+
return /* @__PURE__ */ jsxs54(Toast, { ...props, children: [
|
|
28496
|
+
/* @__PURE__ */ jsxs54("div", { className: "grid gap-1", children: [
|
|
28497
|
+
title && /* @__PURE__ */ jsx90(ToastTitle, { children: title }),
|
|
28498
|
+
description && /* @__PURE__ */ jsx90(ToastDescription, { children: description })
|
|
28511
28499
|
] }),
|
|
28512
28500
|
action,
|
|
28513
|
-
/* @__PURE__ */
|
|
28501
|
+
/* @__PURE__ */ jsx90(ToastClose, {})
|
|
28514
28502
|
] }, id);
|
|
28515
28503
|
}),
|
|
28516
|
-
/* @__PURE__ */
|
|
28504
|
+
/* @__PURE__ */ jsx90(ToastViewport, {})
|
|
28517
28505
|
] });
|
|
28518
28506
|
}
|
|
28519
28507
|
|
|
@@ -28521,7 +28509,7 @@ function Toaster2() {
|
|
|
28521
28509
|
import * as React63 from "react";
|
|
28522
28510
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
28523
28511
|
import { cva as cva9 } from "class-variance-authority";
|
|
28524
|
-
import { jsx as
|
|
28512
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
28525
28513
|
var toggleVariants = cva9(
|
|
28526
28514
|
"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",
|
|
28527
28515
|
{
|
|
@@ -28542,22 +28530,22 @@ var toggleVariants = cva9(
|
|
|
28542
28530
|
}
|
|
28543
28531
|
}
|
|
28544
28532
|
);
|
|
28545
|
-
var Toggle = React63.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */
|
|
28533
|
+
var Toggle = React63.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx91(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
28546
28534
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
28547
28535
|
|
|
28548
28536
|
// src/components/ui/toggle-group.tsx
|
|
28549
28537
|
import * as React64 from "react";
|
|
28550
28538
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
28551
|
-
import { jsx as
|
|
28539
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
28552
28540
|
var ToggleGroupContext = React64.createContext({
|
|
28553
28541
|
size: "default",
|
|
28554
28542
|
variant: "default"
|
|
28555
28543
|
});
|
|
28556
|
-
var ToggleGroup = React64.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */
|
|
28544
|
+
var ToggleGroup = React64.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx92(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ jsx92(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
28557
28545
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
28558
28546
|
var ToggleGroupItem = React64.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
28559
28547
|
const context = React64.useContext(ToggleGroupContext);
|
|
28560
|
-
return /* @__PURE__ */
|
|
28548
|
+
return /* @__PURE__ */ jsx92(
|
|
28561
28549
|
ToggleGroupPrimitive.Item,
|
|
28562
28550
|
{
|
|
28563
28551
|
ref,
|
|
@@ -28666,7 +28654,7 @@ var useLayoutModeControl = () => {
|
|
|
28666
28654
|
|
|
28667
28655
|
// src/lib/auth.tsx
|
|
28668
28656
|
import { createContext as createContext7, useCallback as useCallback12, useContext as useContext8, useEffect as useEffect26, useMemo as useMemo15, useRef as useRef13, useState as useState23 } from "react";
|
|
28669
|
-
import { jsx as
|
|
28657
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
28670
28658
|
var STORAGE_KEYS = {
|
|
28671
28659
|
accessToken: "cc_access_token",
|
|
28672
28660
|
idToken: "cc_id_token",
|
|
@@ -29554,7 +29542,7 @@ var AuthProvider = ({ children }) => {
|
|
|
29554
29542
|
}),
|
|
29555
29543
|
[status, user, accessToken, login, logout, completeLogin, getAccessToken, presenceStatus, setPresenceStatus]
|
|
29556
29544
|
);
|
|
29557
|
-
return /* @__PURE__ */
|
|
29545
|
+
return /* @__PURE__ */ jsx93(AuthContext.Provider, { value, children });
|
|
29558
29546
|
};
|
|
29559
29547
|
var useAuth = () => {
|
|
29560
29548
|
const ctx = useContext8(AuthContext);
|