@arbidocs/react 0.3.119 → 0.3.121

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.
@@ -0,0 +1,1338 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+ import * as React2 from 'react';
5
+ import React2__default, { createContext, useMemo, useState } from 'react';
6
+ import Markdown from 'react-markdown';
7
+ import remarkGfm from 'remark-gfm';
8
+ import rehypeRaw from 'rehype-raw';
9
+ import { Circle, Check, X, ChevronRight, ChevronDown, ChevronUp, Search, Copy } from 'lucide-react';
10
+ import { createPortal } from 'react-dom';
11
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
12
+ import { cva } from 'class-variance-authority';
13
+ import { Slot } from '@radix-ui/react-slot';
14
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
15
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
16
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
17
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
18
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
19
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
20
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
21
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
22
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
23
+ import * as SliderPrimitive from '@radix-ui/react-slider';
24
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
25
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
27
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
28
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
29
+ import * as SelectPrimitive from '@radix-ui/react-select';
30
+ import { Command as Command$1 } from 'cmdk';
31
+
32
+ // src/lib/utils.ts
33
+ function cn(...inputs) {
34
+ return twMerge(clsx(inputs));
35
+ }
36
+ var markdownBaseComponents = {
37
+ h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold", "data-testid": "markdown-heading-1", ...props, children }),
38
+ h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "font-semibold text-base", "data-testid": "markdown-heading-2", ...props, children }),
39
+ h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "font-semibold text-base", "data-testid": "markdown-heading-3", ...props, children }),
40
+ h4: ({ children, ...props }) => /* @__PURE__ */ jsx("h4", { className: "font-semibold text-base", ...props, children }),
41
+ h5: ({ children, ...props }) => /* @__PURE__ */ jsx("h5", { className: "font-medium", ...props, children }),
42
+ strong: ({ children, ...props }) => /* @__PURE__ */ jsx("strong", { className: "font-semibold", ...props, children }),
43
+ blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx("blockquote", { className: "border-l-2 border-primary pl-4", ...props, children }),
44
+ ol: ({ children, ...props }) => /* @__PURE__ */ jsx("ol", { className: "list-decimal space-y-2 pl-6", "data-testid": "markdown-ordered-list", ...props, children }),
45
+ ul: ({ children, ...props }) => /* @__PURE__ */ jsx("ul", { className: "list-none space-y-2 pl-6", "data-testid": "markdown-unordered-list", ...props, children }),
46
+ li: ({ children, ...props }) => /* @__PURE__ */ jsx("li", { className: "my-1.5", ...props, children }),
47
+ table: ({ children, ...props }) => /* @__PURE__ */ jsx("table", { "data-testid": "markdown-table", ...props, children }),
48
+ th: ({ children, ...props }) => /* @__PURE__ */ jsx("th", { ...props, children }),
49
+ td: ({ children, ...props }) => /* @__PURE__ */ jsx("td", { ...props, children }),
50
+ tr: ({ children, ...props }) => /* @__PURE__ */ jsx("tr", { ...props, children }),
51
+ p: ({ children, ...props }) => /* @__PURE__ */ jsx("p", { className: "whitespace-pre-wrap", ...props, children }),
52
+ hr: (props) => /* @__PURE__ */ jsx("hr", { className: "border-foreground/20", ...props }),
53
+ sup: ({ children, ...props }) => /* @__PURE__ */ jsx("sup", { className: "text-xs", ...props, children }),
54
+ sub: ({ children, ...props }) => /* @__PURE__ */ jsx("sub", { className: "text-xs", ...props, children }),
55
+ div: ({ children, className, ...props }) => /* @__PURE__ */ jsx("div", { className, ...props, children }),
56
+ br: (props) => /* @__PURE__ */ jsx("br", { ...props }),
57
+ kbd: ({ children, ...props }) => /* @__PURE__ */ jsx(
58
+ "kbd",
59
+ {
60
+ className: "px-1.5 py-0.5 text-xs font-mono bg-muted border border-border rounded",
61
+ ...props,
62
+ children
63
+ }
64
+ ),
65
+ abbr: ({ children, title, ...props }) => /* @__PURE__ */ jsx("abbr", { title, className: "underline decoration-dotted cursor-help", ...props, children }),
66
+ cite: ({ children, ...props }) => /* @__PURE__ */ jsx("cite", { className: "italic", ...props, children })
67
+ };
68
+ var MarkdownStreamingContext = createContext(false);
69
+
70
+ // src/ai/split-markdown-blocks.ts
71
+ var LIST_ITEM_RE = /^\s*([-*+]|\d+[.)])\s/;
72
+ var BLOCKQUOTE_RE = /^\s*>/;
73
+ function splitMarkdownBlocks(content) {
74
+ if (!content) return [];
75
+ const blocks = [];
76
+ let start = 0;
77
+ let inFence = false;
78
+ let i = 0;
79
+ while (i < content.length) {
80
+ if (content.startsWith("```", i)) {
81
+ inFence = !inFence;
82
+ i += 3;
83
+ continue;
84
+ }
85
+ if (!inFence && content[i] === "\n" && content[i + 1] === "\n") {
86
+ const before = content.slice(start, i);
87
+ const lastLine = before.slice(before.lastIndexOf("\n") + 1);
88
+ const afterStart = i + 2;
89
+ const nextNewline = content.indexOf("\n", afterStart);
90
+ const nextLine = content.slice(afterStart, nextNewline === -1 ? void 0 : nextNewline);
91
+ const bothListItems = LIST_ITEM_RE.test(lastLine) && LIST_ITEM_RE.test(nextLine);
92
+ const bothBlockquotes = BLOCKQUOTE_RE.test(lastLine) && BLOCKQUOTE_RE.test(nextLine);
93
+ if (bothListItems || bothBlockquotes) {
94
+ i += 2;
95
+ continue;
96
+ }
97
+ blocks.push(content.slice(start, afterStart));
98
+ start = afterStart;
99
+ i = afterStart;
100
+ continue;
101
+ }
102
+ i++;
103
+ }
104
+ if (start < content.length) blocks.push(content.slice(start));
105
+ return blocks;
106
+ }
107
+ function CodeBlock({ language, code }) {
108
+ const [copied, setCopied] = useState(false);
109
+ const handleCopy = async () => {
110
+ try {
111
+ await navigator.clipboard.writeText(code);
112
+ setCopied(true);
113
+ setTimeout(() => setCopied(false), 2e3);
114
+ } catch {
115
+ }
116
+ };
117
+ return /* @__PURE__ */ jsxs(
118
+ "div",
119
+ {
120
+ className: "code-block relative my-3 overflow-hidden rounded-md border border-border bg-muted",
121
+ "data-testid": "markdown-code-block",
122
+ children: [
123
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-3 py-1.5", children: [
124
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-xs text-muted-foreground", children: language || "code" }),
125
+ /* @__PURE__ */ jsxs(
126
+ "button",
127
+ {
128
+ type: "button",
129
+ onClick: handleCopy,
130
+ className: "flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground",
131
+ title: copied ? "Copied!" : "Copy code",
132
+ children: [
133
+ copied ? /* @__PURE__ */ jsx(Check, { size: 12 }) : /* @__PURE__ */ jsx(Copy, { size: 12 }),
134
+ /* @__PURE__ */ jsx("span", { children: copied ? "Copied" : "Copy" })
135
+ ]
136
+ }
137
+ )
138
+ ] }),
139
+ /* @__PURE__ */ jsx("pre", { className: "overflow-x-auto p-3 text-sm leading-relaxed", children: /* @__PURE__ */ jsx("code", { className: cn("font-mono text-foreground", language && `language-${language}`), children: code }) })
140
+ ]
141
+ }
142
+ );
143
+ }
144
+ var defaultComponents = {
145
+ ...markdownBaseComponents,
146
+ a: ({ href, children, ...props }) => {
147
+ const isInternal = !href || href.startsWith("#") || href.startsWith("cite:");
148
+ return /* @__PURE__ */ jsx(
149
+ "a",
150
+ {
151
+ className: "text-primary underline underline-offset-2",
152
+ href,
153
+ ...isInternal ? {} : { target: "_blank", rel: "noopener noreferrer" },
154
+ ...props,
155
+ children
156
+ }
157
+ );
158
+ },
159
+ em: ({ children, ...props }) => /* @__PURE__ */ jsx("em", { className: "italic", ...props, children }),
160
+ code: function MarkdownCode({
161
+ className,
162
+ children,
163
+ ...props
164
+ }) {
165
+ const match = /language-(\w+)/.exec(className || "");
166
+ if (!match) {
167
+ return /* @__PURE__ */ jsx(
168
+ "code",
169
+ {
170
+ className: "rounded bg-muted px-1 py-0.5 font-mono text-[0.9em]",
171
+ "data-testid": "markdown-inline-code",
172
+ ...props,
173
+ children
174
+ }
175
+ );
176
+ }
177
+ return /* @__PURE__ */ jsx(CodeBlock, { language: match[1], code: String(children).replace(/\n$/, "") });
178
+ },
179
+ // The CodeBlock renders its own <pre>; unwrap react-markdown's wrapper so we
180
+ // don't nest <pre><pre>.
181
+ pre: ({ children }) => /* @__PURE__ */ jsx(Fragment, { children }),
182
+ blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx("blockquote", { className: "border-l-2 border-border pl-4 italic text-muted-foreground", ...props, children }),
183
+ table: ({ children, ...props }) => /* @__PURE__ */ jsx("div", { className: "my-3 overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsx("table", { "data-testid": "markdown-table", className: "w-full border-collapse text-sm", ...props, children }) }),
184
+ thead: ({ children, ...props }) => /* @__PURE__ */ jsx("thead", { className: "bg-muted", ...props, children }),
185
+ th: ({ children, ...props }) => /* @__PURE__ */ jsx(
186
+ "th",
187
+ {
188
+ className: "border-b border-border px-3 py-2 text-left font-semibold text-foreground",
189
+ ...props,
190
+ children
191
+ }
192
+ ),
193
+ td: ({ children, ...props }) => /* @__PURE__ */ jsx("td", { className: "border-b border-border px-3 py-2 align-top", ...props, children }),
194
+ // General emphasis marks (GFM `~~strikethrough~~` → <del>, raw <ins>/<mark>).
195
+ del: ({ children, ...props }) => /* @__PURE__ */ jsx("del", { className: "text-muted-foreground line-through", ...props, children }),
196
+ ins: ({ children, ...props }) => /* @__PURE__ */ jsx("ins", { className: "underline decoration-primary/60", ...props, children }),
197
+ mark: ({ children, ...props }) => /* @__PURE__ */ jsx("mark", { className: "rounded bg-primary/15 px-0.5 text-foreground", ...props, children })
198
+ };
199
+ var remarkPlugins = [remarkGfm];
200
+ var rehypePlugins = [rehypeRaw];
201
+ var MemoizedBlock = React2__default.memo(function MarkdownBlock({
202
+ content,
203
+ components
204
+ }) {
205
+ return /* @__PURE__ */ jsx(Markdown, { remarkPlugins, rehypePlugins, components, children: content });
206
+ });
207
+ var MarkdownErrorBoundary = class extends React2__default.Component {
208
+ state = { hasError: false };
209
+ static getDerivedStateFromError() {
210
+ return { hasError: true };
211
+ }
212
+ render() {
213
+ return this.state.hasError ? this.props.fallback : this.props.children;
214
+ }
215
+ };
216
+ function MarkdownRendererComponent({
217
+ children,
218
+ components: customComponents,
219
+ isStreaming = false,
220
+ className,
221
+ testId = "markdown-renderer"
222
+ }) {
223
+ const components = useMemo(
224
+ () => customComponents ? { ...defaultComponents, ...customComponents } : defaultComponents,
225
+ [customComponents]
226
+ );
227
+ const blocks = useMemo(() => splitMarkdownBlocks(children), [children]);
228
+ return /* @__PURE__ */ jsx(
229
+ MarkdownErrorBoundary,
230
+ {
231
+ fallback: /* @__PURE__ */ jsx("div", { className: cn("whitespace-pre-wrap break-words text-foreground", className), children }),
232
+ children: /* @__PURE__ */ jsx(MarkdownStreamingContext.Provider, { value: isStreaming, children: /* @__PURE__ */ jsx(
233
+ "div",
234
+ {
235
+ className: cn(
236
+ "markdown-content space-y-3 break-words leading-relaxed text-foreground",
237
+ className
238
+ ),
239
+ "data-testid": testId,
240
+ children: blocks.map((block, index) => /* @__PURE__ */ jsx(MemoizedBlock, { content: block, components }, index))
241
+ }
242
+ ) })
243
+ }
244
+ );
245
+ }
246
+ var MarkdownRenderer = React2__default.memo(MarkdownRendererComponent);
247
+ var TooltipContext = React2.createContext(null);
248
+ var DEFAULT_DELAY = 300;
249
+ var TooltipConfigContext = React2.createContext({
250
+ delayDuration: DEFAULT_DELAY
251
+ });
252
+ var TooltipProvider = ({ children, delayDuration = DEFAULT_DELAY }) => {
253
+ const value = React2.useMemo(() => ({ delayDuration }), [delayDuration]);
254
+ return /* @__PURE__ */ jsx(TooltipConfigContext.Provider, { value, children });
255
+ };
256
+ function Tooltip({ children, delayDuration }) {
257
+ const config = React2.useContext(TooltipConfigContext);
258
+ const delay = delayDuration ?? config.delayDuration;
259
+ const [open, setOpen] = React2.useState(false);
260
+ const triggerRef = React2.useRef(null);
261
+ const timer = React2.useRef(null);
262
+ const contentId = React2.useId();
263
+ const clearTimer = () => {
264
+ if (timer.current) {
265
+ clearTimeout(timer.current);
266
+ timer.current = null;
267
+ }
268
+ };
269
+ const show = React2.useCallback(() => {
270
+ clearTimer();
271
+ timer.current = setTimeout(() => setOpen(true), delay);
272
+ }, [delay]);
273
+ const hide = React2.useCallback(() => {
274
+ clearTimer();
275
+ setOpen(false);
276
+ }, []);
277
+ const setTrigger = React2.useCallback((el) => {
278
+ triggerRef.current = el;
279
+ }, []);
280
+ React2.useEffect(() => () => clearTimer(), []);
281
+ const value = React2.useMemo(
282
+ () => ({ open, show, hide, setTrigger, triggerRef, contentId }),
283
+ [open, show, hide, setTrigger, contentId]
284
+ );
285
+ return /* @__PURE__ */ jsx(TooltipContext.Provider, { value, children });
286
+ }
287
+ function TooltipTrigger({ asChild, children, ...props }) {
288
+ const ctx = React2.useContext(TooltipContext);
289
+ if (!ctx) return /* @__PURE__ */ jsx(Fragment, { children });
290
+ const triggerHandlers = {
291
+ onPointerEnter: (e) => {
292
+ props.onPointerEnter?.(e);
293
+ ctx.show();
294
+ },
295
+ onPointerLeave: (e) => {
296
+ props.onPointerLeave?.(e);
297
+ ctx.hide();
298
+ },
299
+ onFocus: (e) => {
300
+ props.onFocus?.(e);
301
+ ctx.show();
302
+ },
303
+ onBlur: (e) => {
304
+ props.onBlur?.(e);
305
+ ctx.hide();
306
+ },
307
+ "aria-describedby": ctx.open ? ctx.contentId : void 0,
308
+ "data-state": ctx.open ? "open" : "closed"
309
+ };
310
+ if (asChild && React2.isValidElement(children)) {
311
+ const child = children;
312
+ return React2.cloneElement(child, {
313
+ ...props,
314
+ ...triggerHandlers,
315
+ ref: ctx.setTrigger
316
+ });
317
+ }
318
+ return /* @__PURE__ */ jsx(
319
+ "button",
320
+ {
321
+ type: "button",
322
+ ...props,
323
+ ...triggerHandlers,
324
+ ref: ctx.setTrigger,
325
+ children
326
+ }
327
+ );
328
+ }
329
+ var TRANSFORM_BY_SIDE = {
330
+ top: "translate(-50%, -100%)",
331
+ bottom: "translate(-50%, 0)",
332
+ left: "translate(-100%, -50%)",
333
+ right: "translate(0, -50%)"
334
+ };
335
+ var TooltipContent = React2.forwardRef(
336
+ ({ className, side = "top", sideOffset = 4, style, ...props }, ref) => {
337
+ const ctx = React2.useContext(TooltipContext);
338
+ const innerRef = React2.useRef(null);
339
+ const [coords, setCoords] = React2.useState(null);
340
+ React2.useLayoutEffect(() => {
341
+ if (!ctx?.open || !ctx.triggerRef.current) {
342
+ setCoords(null);
343
+ return;
344
+ }
345
+ const r = ctx.triggerRef.current.getBoundingClientRect();
346
+ const c = innerRef.current?.getBoundingClientRect();
347
+ const ch = c?.height ?? 0;
348
+ const cw = c?.width ?? 0;
349
+ const vh = window.innerHeight;
350
+ const vw = window.innerWidth;
351
+ let s = side;
352
+ if (s === "top" && r.top - sideOffset - ch < 0) s = "bottom";
353
+ else if (s === "bottom" && r.bottom + sideOffset + ch > vh) s = "top";
354
+ else if (s === "left" && r.left - sideOffset - cw < 0) s = "right";
355
+ else if (s === "right" && r.right + sideOffset + cw > vw) s = "left";
356
+ setCoords({
357
+ top: s === "top" ? r.top - sideOffset : s === "bottom" ? r.bottom + sideOffset : r.top + r.height / 2,
358
+ left: s === "left" ? r.left - sideOffset : s === "right" ? r.right + sideOffset : r.left + r.width / 2,
359
+ transform: TRANSFORM_BY_SIDE[s]
360
+ });
361
+ }, [ctx?.open, side, sideOffset, ctx?.triggerRef]);
362
+ if (!ctx?.open) return null;
363
+ const setRefs = (node) => {
364
+ innerRef.current = node;
365
+ if (typeof ref === "function") ref(node);
366
+ else if (ref) ref.current = node;
367
+ };
368
+ return createPortal(
369
+ /* @__PURE__ */ jsx(
370
+ "div",
371
+ {
372
+ ref: setRefs,
373
+ id: ctx.contentId,
374
+ role: "tooltip",
375
+ className: cn(
376
+ // The kit owns the tooltip's look: semantic tokens only, so it is
377
+ // legible in every app without one of them defining a global class.
378
+ // The `tooltip-content` hook is kept last-but-one so a host stylesheet
379
+ // can still restyle every tooltip in one place (the ARBI app does, with
380
+ // `!important` rules that win over these defaults).
381
+ "pointer-events-none max-w-[300px] break-words rounded-md border border-border bg-popover px-3 py-2 text-sm font-normal text-popover-foreground shadow-lg",
382
+ "tooltip-content",
383
+ className
384
+ ),
385
+ style: {
386
+ position: "fixed",
387
+ top: coords?.top ?? -9999,
388
+ left: coords?.left ?? -9999,
389
+ transform: coords?.transform ?? TRANSFORM_BY_SIDE[side],
390
+ opacity: coords ? void 0 : 0,
391
+ zIndex: 9999,
392
+ ...style
393
+ },
394
+ ...props
395
+ }
396
+ ),
397
+ document.body
398
+ );
399
+ }
400
+ );
401
+ TooltipContent.displayName = "TooltipContent";
402
+ var Avatar = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
403
+ AvatarPrimitive.Root,
404
+ {
405
+ ref,
406
+ className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
407
+ ...props
408
+ }
409
+ ));
410
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
411
+ var AvatarImage = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
412
+ AvatarPrimitive.Image,
413
+ {
414
+ ref,
415
+ className: cn("aspect-square h-full w-full object-cover", className),
416
+ ...props
417
+ }
418
+ ));
419
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
420
+ var AvatarFallback = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
421
+ AvatarPrimitive.Fallback,
422
+ {
423
+ ref,
424
+ className: cn(
425
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
426
+ className
427
+ ),
428
+ ...props
429
+ }
430
+ ));
431
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
432
+ var badgeVariants = cva(
433
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-sm font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
434
+ {
435
+ variants: {
436
+ variant: {
437
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
438
+ accent: "border-transparent bg-ai-accent-soft text-ai-accent",
439
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
440
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
441
+ outline: "text-foreground"
442
+ }
443
+ },
444
+ defaultVariants: {
445
+ variant: "default"
446
+ }
447
+ }
448
+ );
449
+ function Badge({ className, variant, ...props }) {
450
+ return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
451
+ }
452
+ var buttonVariants = cva(
453
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
454
+ {
455
+ variants: {
456
+ variant: {
457
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
458
+ accent: "bg-ai-accent text-ai-accent-foreground shadow hover:bg-ai-accent/90",
459
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
460
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
461
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
462
+ ghost: "hover:bg-accent hover:text-accent-foreground",
463
+ link: "text-primary underline-offset-4 hover:underline"
464
+ },
465
+ size: {
466
+ default: "h-9 px-4 py-2",
467
+ sm: "h-8 rounded-md px-3",
468
+ lg: "h-10 rounded-md px-8",
469
+ icon: "h-9 w-9"
470
+ }
471
+ },
472
+ defaultVariants: {
473
+ variant: "default",
474
+ size: "default"
475
+ }
476
+ }
477
+ );
478
+ var Button = React2.forwardRef(
479
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
480
+ const Comp = asChild ? Slot : "button";
481
+ return /* @__PURE__ */ jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
482
+ }
483
+ );
484
+ Button.displayName = "Button";
485
+ var HoverCard = HoverCardPrimitive.Root;
486
+ var HoverCardTrigger = HoverCardPrimitive.Trigger;
487
+ var HoverCardContent = React2.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx(
488
+ HoverCardPrimitive.Content,
489
+ {
490
+ ref,
491
+ align,
492
+ sideOffset,
493
+ className: cn(
494
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",
495
+ className
496
+ ),
497
+ ...props
498
+ }
499
+ ) }));
500
+ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
501
+ var cardVariants = cva("rounded-lg bg-card text-card-foreground", {
502
+ variants: {
503
+ variant: {
504
+ flat: "",
505
+ outline: "border",
506
+ elevated: "border shadow-sm"
507
+ }
508
+ },
509
+ defaultVariants: {
510
+ variant: "flat"
511
+ }
512
+ });
513
+ var Card = React2.forwardRef(
514
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
515
+ "div",
516
+ {
517
+ ref,
518
+ "data-slot": "card",
519
+ className: cn(cardVariants({ variant }), className),
520
+ ...props
521
+ }
522
+ )
523
+ );
524
+ Card.displayName = "Card";
525
+ var CardHeader = React2.forwardRef(
526
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
527
+ "div",
528
+ {
529
+ ref,
530
+ "data-slot": "card-header",
531
+ className: cn("flex flex-col space-y-1.5 p-6", className),
532
+ ...props
533
+ }
534
+ )
535
+ );
536
+ CardHeader.displayName = "CardHeader";
537
+ var CardTitle = React2.forwardRef(
538
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
539
+ "div",
540
+ {
541
+ ref,
542
+ "data-slot": "card-title",
543
+ className: cn("font-semibold leading-none tracking-tight", className),
544
+ ...props
545
+ }
546
+ )
547
+ );
548
+ CardTitle.displayName = "CardTitle";
549
+ var CardDescription = React2.forwardRef(
550
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
551
+ "div",
552
+ {
553
+ ref,
554
+ "data-slot": "card-description",
555
+ className: cn("text-sm text-muted-foreground", className),
556
+ ...props
557
+ }
558
+ )
559
+ );
560
+ CardDescription.displayName = "CardDescription";
561
+ var CardContent = React2.forwardRef(
562
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn("p-6 pt-0", className), ...props })
563
+ );
564
+ CardContent.displayName = "CardContent";
565
+ var CardFooter = React2.forwardRef(
566
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
567
+ "div",
568
+ {
569
+ ref,
570
+ "data-slot": "card-footer",
571
+ className: cn("flex items-center p-6 pt-0", className),
572
+ ...props
573
+ }
574
+ )
575
+ );
576
+ CardFooter.displayName = "CardFooter";
577
+ var Input = React2.forwardRef(
578
+ ({ className, type, ...props }, ref) => {
579
+ return /* @__PURE__ */ jsx(
580
+ "input",
581
+ {
582
+ type,
583
+ "data-slot": "input",
584
+ className: cn(
585
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
586
+ className
587
+ ),
588
+ ref,
589
+ ...props
590
+ }
591
+ );
592
+ }
593
+ );
594
+ Input.displayName = "Input";
595
+ var Label = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
596
+ "label",
597
+ {
598
+ ref,
599
+ className: `text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className || ""}`,
600
+ ...props
601
+ }
602
+ ));
603
+ Label.displayName = "Label";
604
+ var Separator = React2.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
605
+ SeparatorPrimitive.Root,
606
+ {
607
+ ref,
608
+ decorative,
609
+ orientation,
610
+ className: cn(
611
+ "shrink-0 bg-border",
612
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
613
+ className
614
+ ),
615
+ ...props
616
+ }
617
+ ));
618
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
619
+ var Textarea = React2.forwardRef(
620
+ ({ className, ...props }, ref) => {
621
+ return /* @__PURE__ */ jsx(
622
+ "textarea",
623
+ {
624
+ className: cn(
625
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
626
+ className
627
+ ),
628
+ ref,
629
+ ...props
630
+ }
631
+ );
632
+ }
633
+ );
634
+ Textarea.displayName = "Textarea";
635
+ var Collapsible = CollapsiblePrimitive.Root;
636
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
637
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
638
+ var Progress = React2.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
639
+ ProgressPrimitive.Root,
640
+ {
641
+ ref,
642
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
643
+ ...props,
644
+ children: /* @__PURE__ */ jsx(
645
+ ProgressPrimitive.Indicator,
646
+ {
647
+ className: "h-full w-full flex-1 bg-primary transition-all",
648
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
649
+ }
650
+ )
651
+ }
652
+ ));
653
+ Progress.displayName = ProgressPrimitive.Root.displayName;
654
+ var ScrollArea = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
655
+ ScrollAreaPrimitive.Root,
656
+ {
657
+ ref,
658
+ className: cn("relative overflow-hidden", className),
659
+ ...props,
660
+ children: [
661
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
662
+ /* @__PURE__ */ jsx(ScrollBar, {}),
663
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
664
+ ]
665
+ }
666
+ ));
667
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
668
+ var ScrollBar = React2.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
669
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
670
+ {
671
+ ref,
672
+ orientation,
673
+ className: cn(
674
+ "flex touch-none select-none transition-colors",
675
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
676
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
677
+ className
678
+ ),
679
+ ...props,
680
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
681
+ }
682
+ ));
683
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
684
+ var RadioGroup = React2.forwardRef(({ className, ...props }, ref) => {
685
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
686
+ });
687
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
688
+ var RadioGroupItem = React2.forwardRef(({ className, ...props }, ref) => {
689
+ return /* @__PURE__ */ jsx(
690
+ RadioGroupPrimitive.Item,
691
+ {
692
+ ref,
693
+ className: cn(
694
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
695
+ className
696
+ ),
697
+ ...props,
698
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
699
+ }
700
+ );
701
+ });
702
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
703
+ var Checkbox = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
704
+ CheckboxPrimitive.Root,
705
+ {
706
+ ref,
707
+ className: cn(
708
+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
709
+ className
710
+ ),
711
+ ...props,
712
+ children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
713
+ }
714
+ ));
715
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
716
+ var Switch = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
717
+ SwitchPrimitives.Root,
718
+ {
719
+ className: cn(
720
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
721
+ className
722
+ ),
723
+ ...props,
724
+ ref,
725
+ children: /* @__PURE__ */ jsx(
726
+ SwitchPrimitives.Thumb,
727
+ {
728
+ className: cn(
729
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
730
+ )
731
+ }
732
+ )
733
+ }
734
+ ));
735
+ Switch.displayName = SwitchPrimitives.Root.displayName;
736
+ var Tabs = TabsPrimitive.Root;
737
+ var TabsList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
738
+ TabsPrimitive.List,
739
+ {
740
+ ref,
741
+ className: cn(
742
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
743
+ className
744
+ ),
745
+ ...props
746
+ }
747
+ ));
748
+ TabsList.displayName = TabsPrimitive.List.displayName;
749
+ var TabsTrigger = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
750
+ TabsPrimitive.Trigger,
751
+ {
752
+ ref,
753
+ className: cn(
754
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all 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=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
755
+ className
756
+ ),
757
+ ...props
758
+ }
759
+ ));
760
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
761
+ var TabsContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
762
+ TabsPrimitive.Content,
763
+ {
764
+ ref,
765
+ className: cn(
766
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
767
+ className
768
+ ),
769
+ ...props
770
+ }
771
+ ));
772
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
773
+ var Table = React2.forwardRef(
774
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
775
+ );
776
+ Table.displayName = "Table";
777
+ var TableHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
778
+ TableHeader.displayName = "TableHeader";
779
+ var TableBody = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
780
+ TableBody.displayName = "TableBody";
781
+ var TableFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
782
+ "tfoot",
783
+ {
784
+ ref,
785
+ className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
786
+ ...props
787
+ }
788
+ ));
789
+ TableFooter.displayName = "TableFooter";
790
+ var TableRow = React2.forwardRef(
791
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
792
+ "tr",
793
+ {
794
+ ref,
795
+ className: cn(
796
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
797
+ className
798
+ ),
799
+ ...props
800
+ }
801
+ )
802
+ );
803
+ TableRow.displayName = "TableRow";
804
+ var TableHead = React2.forwardRef(
805
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
806
+ "th",
807
+ {
808
+ ref,
809
+ className: cn(
810
+ "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
811
+ className
812
+ ),
813
+ ...props
814
+ }
815
+ )
816
+ );
817
+ TableHead.displayName = "TableHead";
818
+ var TableCell = React2.forwardRef(
819
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
820
+ "td",
821
+ {
822
+ ref,
823
+ className: cn(
824
+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
825
+ className
826
+ ),
827
+ ...props
828
+ }
829
+ )
830
+ );
831
+ TableCell.displayName = "TableCell";
832
+ var TableCaption = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
833
+ TableCaption.displayName = "TableCaption";
834
+ var Slider = React2.forwardRef(
835
+ ({ className, rangeClassName, ...props }, ref) => /* @__PURE__ */ jsxs(
836
+ SliderPrimitive.Root,
837
+ {
838
+ ref,
839
+ className: cn("relative flex w-full touch-none select-none items-center", className),
840
+ ...props,
841
+ children: [
842
+ /* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: cn("absolute h-full bg-primary", rangeClassName) }) }),
843
+ /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
844
+ ]
845
+ }
846
+ )
847
+ );
848
+ Slider.displayName = SliderPrimitive.Root.displayName;
849
+ var toggleVariants = cva(
850
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
851
+ {
852
+ variants: {
853
+ variant: {
854
+ default: "bg-transparent",
855
+ outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
856
+ },
857
+ size: {
858
+ default: "h-9 px-2 min-w-9",
859
+ sm: "h-8 px-1.5 min-w-8",
860
+ lg: "h-10 px-2.5 min-w-10"
861
+ }
862
+ },
863
+ defaultVariants: {
864
+ variant: "default",
865
+ size: "default"
866
+ }
867
+ }
868
+ );
869
+ var Toggle = React2.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
870
+ TogglePrimitive.Root,
871
+ {
872
+ ref,
873
+ className: cn(toggleVariants({ variant, size, className })),
874
+ ...props
875
+ }
876
+ ));
877
+ Toggle.displayName = TogglePrimitive.Root.displayName;
878
+ var ToggleGroupContext = React2.createContext({
879
+ size: "default",
880
+ variant: "default"
881
+ });
882
+ var ToggleGroup = React2.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
883
+ ToggleGroupPrimitive.Root,
884
+ {
885
+ ref,
886
+ className: cn("flex items-center justify-center gap-1", className),
887
+ ...props,
888
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
889
+ }
890
+ ));
891
+ ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
892
+ var ToggleGroupItem = React2.forwardRef(({ className, children, variant, size, ...props }, ref) => {
893
+ const context = React2.useContext(ToggleGroupContext);
894
+ return /* @__PURE__ */ jsx(
895
+ ToggleGroupPrimitive.Item,
896
+ {
897
+ ref,
898
+ className: cn(
899
+ toggleVariants({
900
+ variant: context.variant || variant,
901
+ size: context.size || size
902
+ }),
903
+ className
904
+ ),
905
+ ...props,
906
+ children
907
+ }
908
+ );
909
+ });
910
+ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
911
+ var Dialog = DialogPrimitive.Root;
912
+ var DialogTrigger = DialogPrimitive.Trigger;
913
+ var DialogPortal = DialogPrimitive.Portal;
914
+ var DialogClose = DialogPrimitive.Close;
915
+ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
916
+ DialogPrimitive.Overlay,
917
+ {
918
+ ref,
919
+ className: cn(
920
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
921
+ className
922
+ ),
923
+ ...props
924
+ }
925
+ ));
926
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
927
+ var DialogContent = React2.forwardRef(({ className, children, hideCloseButton, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
928
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
929
+ /* @__PURE__ */ jsxs(
930
+ DialogPrimitive.Content,
931
+ {
932
+ ref,
933
+ className: cn(
934
+ "fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem)] max-w-lg max-h-[90vh] translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 rounded-md",
935
+ className
936
+ ),
937
+ ...props,
938
+ children: [
939
+ children,
940
+ !hideCloseButton && /* @__PURE__ */ jsxs(
941
+ DialogPrimitive.Close,
942
+ {
943
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
944
+ "data-testid": "dialog-close-button",
945
+ children: [
946
+ /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
947
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close dialog" })
948
+ ]
949
+ }
950
+ )
951
+ ]
952
+ }
953
+ )
954
+ ] }));
955
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
956
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
957
+ DialogHeader.displayName = "DialogHeader";
958
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
959
+ "div",
960
+ {
961
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
962
+ ...props
963
+ }
964
+ );
965
+ DialogFooter.displayName = "DialogFooter";
966
+ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
967
+ DialogPrimitive.Title,
968
+ {
969
+ ref,
970
+ className: cn("text-lg font-semibold leading-none tracking-tight", className),
971
+ ...props
972
+ }
973
+ ));
974
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
975
+ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
976
+ DialogPrimitive.Description,
977
+ {
978
+ ref,
979
+ className: cn("text-sm text-muted-foreground", className),
980
+ ...props
981
+ }
982
+ ));
983
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
984
+ var Popover = PopoverPrimitive.Root;
985
+ var PopoverTrigger = PopoverPrimitive.Trigger;
986
+ var PopoverAnchor = PopoverPrimitive.Anchor;
987
+ var PopoverContent = React2.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
988
+ PopoverPrimitive.Content,
989
+ {
990
+ ref,
991
+ align,
992
+ sideOffset,
993
+ className: cn(
994
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
995
+ className
996
+ ),
997
+ ...props
998
+ }
999
+ ) }));
1000
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1001
+ var DropdownMenu = DropdownMenuPrimitive.Root;
1002
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1003
+ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
1004
+ var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
1005
+ var DropdownMenuSub = DropdownMenuPrimitive.Sub;
1006
+ var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
1007
+ var DropdownMenuSubTrigger = React2.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1008
+ DropdownMenuPrimitive.SubTrigger,
1009
+ {
1010
+ ref,
1011
+ className: cn(
1012
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1013
+ inset && "pl-8",
1014
+ className
1015
+ ),
1016
+ ...props,
1017
+ children: [
1018
+ children,
1019
+ /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto" })
1020
+ ]
1021
+ }
1022
+ ));
1023
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
1024
+ var DropdownMenuSubContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1025
+ DropdownMenuPrimitive.SubContent,
1026
+ {
1027
+ ref,
1028
+ className: cn(
1029
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
1030
+ className
1031
+ ),
1032
+ ...props
1033
+ }
1034
+ ));
1035
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
1036
+ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1037
+ DropdownMenuPrimitive.Content,
1038
+ {
1039
+ ref,
1040
+ sideOffset,
1041
+ className: cn(
1042
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1043
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
1044
+ className
1045
+ ),
1046
+ ...props
1047
+ }
1048
+ ) }));
1049
+ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1050
+ var DropdownMenuItem = React2.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1051
+ DropdownMenuPrimitive.Item,
1052
+ {
1053
+ ref,
1054
+ className: cn(
1055
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
1056
+ inset && "pl-8",
1057
+ className
1058
+ ),
1059
+ ...props
1060
+ }
1061
+ ));
1062
+ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1063
+ var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
1064
+ DropdownMenuPrimitive.CheckboxItem,
1065
+ {
1066
+ ref,
1067
+ className: cn(
1068
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1069
+ className
1070
+ ),
1071
+ checked,
1072
+ ...props,
1073
+ children: [
1074
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center rounded border border-border bg-popover", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 text-primary" }) }) }),
1075
+ children
1076
+ ]
1077
+ }
1078
+ ));
1079
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1080
+ var DropdownMenuRadioItem = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1081
+ DropdownMenuPrimitive.RadioItem,
1082
+ {
1083
+ ref,
1084
+ className: cn(
1085
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1086
+ className
1087
+ ),
1088
+ ...props,
1089
+ children: [
1090
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
1091
+ children
1092
+ ]
1093
+ }
1094
+ ));
1095
+ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1096
+ var DropdownMenuLabel = React2.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1097
+ DropdownMenuPrimitive.Label,
1098
+ {
1099
+ ref,
1100
+ className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
1101
+ ...props
1102
+ }
1103
+ ));
1104
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1105
+ var DropdownMenuSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1106
+ DropdownMenuPrimitive.Separator,
1107
+ {
1108
+ ref,
1109
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
1110
+ ...props
1111
+ }
1112
+ ));
1113
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
1114
+ var DropdownMenuShortcut = ({ className, ...props }) => {
1115
+ return /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-sm tracking-widest opacity-60", className), ...props });
1116
+ };
1117
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1118
+ var Select = SelectPrimitive.Root;
1119
+ var SelectGroup = SelectPrimitive.Group;
1120
+ var SelectValue = SelectPrimitive.Value;
1121
+ var SelectTrigger = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1122
+ SelectPrimitive.Trigger,
1123
+ {
1124
+ ref,
1125
+ className: cn(
1126
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
1127
+ className
1128
+ ),
1129
+ ...props,
1130
+ children: [
1131
+ children,
1132
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
1133
+ ]
1134
+ }
1135
+ ));
1136
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1137
+ var SelectScrollUpButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1138
+ SelectPrimitive.ScrollUpButton,
1139
+ {
1140
+ ref,
1141
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1142
+ ...props,
1143
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
1144
+ }
1145
+ ));
1146
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1147
+ var SelectScrollDownButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1148
+ SelectPrimitive.ScrollDownButton,
1149
+ {
1150
+ ref,
1151
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1152
+ ...props,
1153
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
1154
+ }
1155
+ ));
1156
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
1157
+ var SelectContent = React2.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
1158
+ SelectPrimitive.Content,
1159
+ {
1160
+ ref,
1161
+ className: cn(
1162
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1163
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1164
+ className
1165
+ ),
1166
+ position,
1167
+ ...props,
1168
+ children: [
1169
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
1170
+ /* @__PURE__ */ jsx(
1171
+ SelectPrimitive.Viewport,
1172
+ {
1173
+ className: cn(
1174
+ "p-1",
1175
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1176
+ ),
1177
+ children
1178
+ }
1179
+ ),
1180
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
1181
+ ]
1182
+ }
1183
+ ) }));
1184
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
1185
+ var SelectLabel = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1186
+ SelectPrimitive.Label,
1187
+ {
1188
+ ref,
1189
+ className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
1190
+ ...props
1191
+ }
1192
+ ));
1193
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
1194
+ var SelectItem = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1195
+ SelectPrimitive.Item,
1196
+ {
1197
+ ref,
1198
+ className: cn(
1199
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1200
+ className
1201
+ ),
1202
+ ...props,
1203
+ children: [
1204
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
1205
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
1206
+ ]
1207
+ }
1208
+ ));
1209
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
1210
+ var SelectSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1211
+ SelectPrimitive.Separator,
1212
+ {
1213
+ ref,
1214
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
1215
+ ...props
1216
+ }
1217
+ ));
1218
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1219
+ var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1220
+ Command$1,
1221
+ {
1222
+ ref,
1223
+ className: cn(
1224
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1225
+ className
1226
+ ),
1227
+ ...props
1228
+ }
1229
+ ));
1230
+ Command.displayName = Command$1.displayName;
1231
+ var CommandDialog = ({ children, ...props }) => {
1232
+ return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
1233
+ };
1234
+ var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "data-cmdk-input-wrapper": "", children: [
1235
+ /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1236
+ /* @__PURE__ */ jsx(
1237
+ Command$1.Input,
1238
+ {
1239
+ ref,
1240
+ className: cn(
1241
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1242
+ className
1243
+ ),
1244
+ ...props
1245
+ }
1246
+ )
1247
+ ] }));
1248
+ CommandInput.displayName = Command$1.Input.displayName;
1249
+ var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1250
+ Command$1.List,
1251
+ {
1252
+ ref,
1253
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1254
+ ...props
1255
+ }
1256
+ ));
1257
+ CommandList.displayName = Command$1.List.displayName;
1258
+ var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
1259
+ CommandEmpty.displayName = Command$1.Empty.displayName;
1260
+ var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1261
+ Command$1.Group,
1262
+ {
1263
+ ref,
1264
+ className: cn(
1265
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
1266
+ className
1267
+ ),
1268
+ ...props
1269
+ }
1270
+ ));
1271
+ CommandGroup.displayName = Command$1.Group.displayName;
1272
+ var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1273
+ Command$1.Separator,
1274
+ {
1275
+ ref,
1276
+ className: cn("-mx-1 h-px bg-border", className),
1277
+ ...props
1278
+ }
1279
+ ));
1280
+ CommandSeparator.displayName = Command$1.Separator.displayName;
1281
+ var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1282
+ Command$1.Item,
1283
+ {
1284
+ ref,
1285
+ className: cn(
1286
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1287
+ className
1288
+ ),
1289
+ ...props
1290
+ }
1291
+ ));
1292
+ CommandItem.displayName = Command$1.Item.displayName;
1293
+ var CommandShortcut = ({ className, ...props }) => {
1294
+ return /* @__PURE__ */ jsx(
1295
+ "span",
1296
+ {
1297
+ className: cn("ml-auto text-sm tracking-widest text-muted-foreground", className),
1298
+ ...props
1299
+ }
1300
+ );
1301
+ };
1302
+ CommandShortcut.displayName = "CommandShortcut";
1303
+ var AI_COMPONENTS = {
1304
+ a: (p) => /* @__PURE__ */ jsx(
1305
+ "a",
1306
+ {
1307
+ className: "text-ai-accent underline underline-offset-2",
1308
+ target: "_blank",
1309
+ rel: "noopener noreferrer",
1310
+ ...p
1311
+ }
1312
+ ),
1313
+ // Redline marks: deletions in red strike, <ins>/<mark> additions accented.
1314
+ del: (p) => /* @__PURE__ */ jsx("del", { className: "rounded bg-destructive/10 text-destructive decoration-destructive/60", ...p }),
1315
+ ins: (p) => /* @__PURE__ */ jsx("ins", { className: "rounded bg-ai-accent-soft px-0.5 text-ai-accent no-underline", ...p }),
1316
+ mark: (p) => /* @__PURE__ */ jsx("mark", { className: "rounded bg-ai-accent-soft px-0.5 text-ai-accent", ...p }),
1317
+ thead: (p) => /* @__PURE__ */ jsx("thead", { className: "bg-secondary/60", ...p })
1318
+ };
1319
+ function AiMarkdown({
1320
+ children,
1321
+ className,
1322
+ isStreaming
1323
+ }) {
1324
+ return /* @__PURE__ */ jsx(
1325
+ MarkdownRenderer,
1326
+ {
1327
+ className: className ?? "text-sm text-foreground",
1328
+ components: AI_COMPONENTS,
1329
+ isStreaming,
1330
+ testId: "ai-markdown",
1331
+ children
1332
+ }
1333
+ );
1334
+ }
1335
+
1336
+ export { AiMarkdown, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, MarkdownRenderer, MarkdownStreamingContext, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cardVariants, cn, markdownBaseComponents, splitMarkdownBlocks, toggleVariants };
1337
+ //# sourceMappingURL=chunk-VTX77MYP.js.map
1338
+ //# sourceMappingURL=chunk-VTX77MYP.js.map