@geekmidas/ui 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["COLOR_MAP: Record<string, string>","ResponsiveContainer","AreaChart","XAxis","YAxis","Tooltip","Area","ms: number","ResponsiveContainer","BarChart","XAxis","YAxis","Tooltip","Bar","Cell","ResponsiveContainer","PieChart","Pie","Cell","Tooltip","defaultPresets: Array<{ label: string; value: TimeRangePreset }>","preset: TimeRangePreset","Slot","SelectPrimitive","ChevronDown","ChevronUp","Check","ref: React.ForwardedRef<HTMLDivElement>","columnKey: string","ArrowUpDown","ArrowUp","ArrowDown","align?: 'left' | 'center' | 'right'","ChevronsLeft","ChevronLeft","ChevronRight","ChevronsRight","Check","Copy","ChevronDown","ChevronRight","pathD: string","Inbox","Search","FileQuestion","ServerOff","Pause","Play","Loader2","ChevronRight","ScrollAreaPrimitive","TooltipPrimitive","value: boolean","PanelLeftOpen","PanelLeftClose","e: React.MouseEvent","e: MouseEvent","firstPaneStyle: React.CSSProperties","Highlight","themes","DialogPrimitive","X","DropdownMenuPrimitive","ChevronRight","Check","Circle","LabelPrimitive","SeparatorPrimitive","TabsPrimitive"],"sources":["../src/lib/utils.ts","../src/components/data-display/charts/area-time-series-chart.tsx","../src/components/data-display/charts/bar-list-chart.tsx","../src/components/data-display/charts/latency-percentiles-chart.tsx","../src/components/data-display/charts/status-distribution-chart.tsx","../src/components/data-display/charts/time-range-selector.tsx","../src/components/ui/button.tsx","../src/components/ui/select.tsx","../src/components/ui/table.tsx","../src/components/data-display/data-table.tsx","../src/components/data-display/json-viewer.tsx","../src/components/data-display/sparkline.tsx","../src/components/data-display/timeline.tsx","../src/components/feedback/empty-state.tsx","../src/components/feedback/live-indicator.tsx","../src/components/feedback/loading.tsx","../src/components/feedback/status-badge.tsx","../src/components/layout/header.tsx","../src/components/layout/shell.tsx","../src/components/ui/scroll-area.tsx","../src/components/ui/tooltip.tsx","../src/components/layout/sidebar.tsx","../src/components/layout/split-pane.tsx","../src/components/ui/badge.tsx","../src/components/ui/card.tsx","../src/components/ui/code-block.tsx","../src/components/ui/dialog.tsx","../src/components/ui/dropdown-menu.tsx","../src/components/ui/input.tsx","../src/components/ui/label.tsx","../src/components/ui/separator.tsx","../src/components/ui/tabs.tsx"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n","'use client';\n\nimport { format } from 'date-fns';\nimport {\n\tArea,\n\tAreaChart,\n\tResponsiveContainer,\n\tTooltip,\n\tXAxis,\n\tYAxis,\n} from 'recharts';\nimport { cn } from '../../../lib/utils';\n\nexport interface TimeSeriesDataPoint {\n\ttimestamp: number;\n\tvalue: number;\n\tsecondaryValue?: number;\n}\n\nexport interface AreaTimeSeriesChartProps {\n\tdata: TimeSeriesDataPoint[];\n\t/** Label for the primary value */\n\tprimaryLabel?: string;\n\t/** Label for the secondary value (optional) */\n\tsecondaryLabel?: string;\n\t/** Color for primary series */\n\tprimaryColor?: string;\n\t/** Color for secondary series */\n\tsecondaryColor?: string;\n\t/** Time format pattern (date-fns) */\n\ttimeFormat?: string;\n\t/** Value formatter */\n\tvalueFormatter?: (value: number) => string;\n\t/** Chart className */\n\tclassName?: string;\n\t/** Show legend */\n\tshowLegend?: boolean;\n}\n\nconst COLOR_MAP: Record<string, string> = {\n\tblue: 'hsl(217, 91%, 60%)',\n\tred: 'hsl(0, 84%, 60%)',\n\tgreen: 'hsl(142, 71%, 45%)',\n\tamber: 'hsl(38, 92%, 50%)',\n\tpurple: 'hsl(263, 70%, 50%)',\n};\n\nexport function AreaTimeSeriesChart({\n\tdata,\n\tprimaryLabel = 'Value',\n\tsecondaryLabel,\n\tprimaryColor = 'blue',\n\tsecondaryColor = 'red',\n\ttimeFormat = 'HH:mm',\n\tvalueFormatter = (v) => v.toLocaleString(),\n\tclassName,\n\tshowLegend,\n}: AreaTimeSeriesChartProps) {\n\tif (data.length === 0) {\n\t\treturn (\n\t\t\t<div className=\"h-48 flex items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data available\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst hasSecondary =\n\t\tsecondaryLabel && data.some((p) => p.secondaryValue !== undefined);\n\n\tconst chartData = data.map((point) => ({\n\t\ttime: format(new Date(point.timestamp), timeFormat),\n\t\ttimestamp: point.timestamp,\n\t\t[primaryLabel]: point.value,\n\t\t...(hasSecondary && secondaryLabel\n\t\t\t? { [secondaryLabel]: point.secondaryValue ?? 0 }\n\t\t\t: {}),\n\t}));\n\n\tconst primaryColorValue = COLOR_MAP[primaryColor] ?? primaryColor;\n\tconst secondaryColorValue = COLOR_MAP[secondaryColor] ?? secondaryColor;\n\n\tconst shouldShowLegend = showLegend ?? hasSecondary;\n\n\treturn (\n\t\t<div className={cn('h-48', className)}>\n\t\t\t<ResponsiveContainer width=\"100%\" height=\"100%\">\n\t\t\t\t<AreaChart data={chartData}>\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<linearGradient id=\"primaryGradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset=\"5%\"\n\t\t\t\t\t\t\t\tstopColor={primaryColorValue}\n\t\t\t\t\t\t\t\tstopOpacity={0.3}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\toffset=\"95%\"\n\t\t\t\t\t\t\t\tstopColor={primaryColorValue}\n\t\t\t\t\t\t\t\tstopOpacity={0}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t{hasSecondary && (\n\t\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\t\tid=\"secondaryGradient\"\n\t\t\t\t\t\t\t\tx1=\"0\"\n\t\t\t\t\t\t\t\ty1=\"0\"\n\t\t\t\t\t\t\t\tx2=\"0\"\n\t\t\t\t\t\t\t\ty2=\"1\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset=\"5%\"\n\t\t\t\t\t\t\t\t\tstopColor={secondaryColorValue}\n\t\t\t\t\t\t\t\t\tstopOpacity={0.3}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\toffset=\"95%\"\n\t\t\t\t\t\t\t\t\tstopColor={secondaryColorValue}\n\t\t\t\t\t\t\t\t\tstopOpacity={0}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</defs>\n\t\t\t\t\t<XAxis\n\t\t\t\t\t\tdataKey=\"time\"\n\t\t\t\t\t\ttick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}\n\t\t\t\t\t\taxisLine={false}\n\t\t\t\t\t\ttickLine={false}\n\t\t\t\t\t/>\n\t\t\t\t\t<YAxis\n\t\t\t\t\t\ttick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}\n\t\t\t\t\t\taxisLine={false}\n\t\t\t\t\t\ttickLine={false}\n\t\t\t\t\t\ttickFormatter={valueFormatter}\n\t\t\t\t\t\twidth={50}\n\t\t\t\t\t/>\n\t\t\t\t\t<Tooltip\n\t\t\t\t\t\tcontent={({ active, payload, label }) => {\n\t\t\t\t\t\t\tif (!active || !payload?.length) return null;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div className=\"rounded-lg border bg-popover px-3 py-2 text-sm shadow-md\">\n\t\t\t\t\t\t\t\t\t<p className=\"font-medium mb-1\">{label}</p>\n\t\t\t\t\t\t\t\t\t{payload.map((entry, index) => (\n\t\t\t\t\t\t\t\t\t\t<p\n\t\t\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"flex items-center gap-2 text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"w-2 h-2 rounded-full\"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ backgroundColor: entry.color }}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t{entry.name}: {valueFormatter(entry.value as number)}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t<Area\n\t\t\t\t\t\ttype=\"monotone\"\n\t\t\t\t\t\tdataKey={primaryLabel}\n\t\t\t\t\t\tstroke={primaryColorValue}\n\t\t\t\t\t\tfill=\"url(#primaryGradient)\"\n\t\t\t\t\t\tstrokeWidth={2}\n\t\t\t\t\t/>\n\t\t\t\t\t{hasSecondary && secondaryLabel && (\n\t\t\t\t\t\t<Area\n\t\t\t\t\t\t\ttype=\"monotone\"\n\t\t\t\t\t\t\tdataKey={secondaryLabel}\n\t\t\t\t\t\t\tstroke={secondaryColorValue}\n\t\t\t\t\t\t\tfill=\"url(#secondaryGradient)\"\n\t\t\t\t\t\t\tstrokeWidth={2}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</AreaChart>\n\t\t\t</ResponsiveContainer>\n\t\t\t{shouldShowLegend && (\n\t\t\t\t<div className=\"flex justify-center gap-4 mt-2\">\n\t\t\t\t\t<div className=\"flex items-center gap-2 text-xs\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName=\"w-3 h-3 rounded-full\"\n\t\t\t\t\t\t\tstyle={{ backgroundColor: primaryColorValue }}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">{primaryLabel}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t{hasSecondary && secondaryLabel && (\n\t\t\t\t\t\t<div className=\"flex items-center gap-2 text-xs\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName=\"w-3 h-3 rounded-full\"\n\t\t\t\t\t\t\t\tstyle={{ backgroundColor: secondaryColorValue }}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">{secondaryLabel}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n","'use client';\n\nimport { cn } from '../../../lib/utils';\n\nexport interface BarListItem {\n\tname: string;\n\tvalue: number;\n}\n\nexport interface BarListChartProps<T extends BarListItem> {\n\tdata: T[];\n\t/** Value formatter */\n\tvalueFormatter?: (value: number) => string;\n\t/** Click handler */\n\tonItemClick?: (item: T) => void;\n\t/** Chart className */\n\tclassName?: string;\n\t/** Empty state message */\n\temptyMessage?: string;\n\t/** Bar color */\n\tcolor?: string;\n}\n\nexport function BarListChart<T extends BarListItem>({\n\tdata,\n\tvalueFormatter = (v) => v.toLocaleString(),\n\tonItemClick,\n\tclassName,\n\temptyMessage = 'No data available',\n\tcolor = 'hsl(217, 91%, 60%)',\n}: BarListChartProps<T>) {\n\tif (data.length === 0) {\n\t\treturn (\n\t\t\t<div className=\"h-48 flex items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\t{emptyMessage}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst maxValue = Math.max(...data.map((d) => d.value));\n\n\treturn (\n\t\t<div className={cn('space-y-3', className)}>\n\t\t\t{data.map((item, index) => {\n\t\t\t\tconst percentage = maxValue > 0 ? (item.value / maxValue) * 100 : 0;\n\t\t\t\tconst isClickable = !!onItemClick;\n\n\t\t\t\treturn (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName={cn('group', isClickable && 'cursor-pointer')}\n\t\t\t\t\t\tonClick={() => onItemClick?.(item)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<div className=\"flex items-center justify-between mb-1\">\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t'text-sm truncate flex-1 mr-4',\n\t\t\t\t\t\t\t\t\tisClickable && 'group-hover:text-foreground',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{item.name}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-sm font-medium tabular-nums\">\n\t\t\t\t\t\t\t\t{valueFormatter(item.value)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"h-2 bg-muted rounded-full overflow-hidden\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t'h-full rounded-full transition-all duration-300',\n\t\t\t\t\t\t\t\t\tisClickable && 'group-hover:opacity-80',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\twidth: `${percentage}%`,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t})}\n\t\t</div>\n\t);\n}\n","'use client';\n\nimport {\n\tBar,\n\tBarChart,\n\tCell,\n\tResponsiveContainer,\n\tTooltip,\n\tXAxis,\n\tYAxis,\n} from 'recharts';\nimport { cn } from '../../../lib/utils';\n\nexport interface LatencyPercentilesChartProps {\n\tp50: number;\n\tp95: number;\n\tp99: number;\n\tclassName?: string;\n\t/** Custom formatter for duration values (default: ms/s format) */\n\tvalueFormatter?: (ms: number) => string;\n}\n\nfunction defaultFormatDuration(ms: number): string {\n\tif (ms < 1) return '<1ms';\n\tif (ms < 1000) return `${Math.round(ms)}ms`;\n\treturn `${(ms / 1000).toFixed(2)}s`;\n}\n\nconst PERCENTILE_COLORS = {\n\tp50: 'hsl(217, 91%, 60%)',\n\tp95: 'hsl(38, 92%, 50%)',\n\tp99: 'hsl(0, 84%, 60%)',\n};\n\nexport function LatencyPercentilesChart({\n\tp50,\n\tp95,\n\tp99,\n\tclassName,\n\tvalueFormatter = defaultFormatDuration,\n}: LatencyPercentilesChartProps) {\n\tconst chartData = [\n\t\t{\n\t\t\tname: 'p50',\n\t\t\tlabel: 'p50 (Median)',\n\t\t\tvalue: p50,\n\t\t\tcolor: PERCENTILE_COLORS.p50,\n\t\t},\n\t\t{ name: 'p95', label: 'p95', value: p95, color: PERCENTILE_COLORS.p95 },\n\t\t{ name: 'p99', label: 'p99', value: p99, color: PERCENTILE_COLORS.p99 },\n\t];\n\n\tif (p99 === 0) {\n\t\treturn (\n\t\t\t<div className=\"h-48 flex items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data available\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className={cn('h-48', className)}>\n\t\t\t<ResponsiveContainer width=\"100%\" height=\"100%\">\n\t\t\t\t<BarChart data={chartData} layout=\"vertical\" barSize={20}>\n\t\t\t\t\t<XAxis\n\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\ttickFormatter={valueFormatter}\n\t\t\t\t\t\ttick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}\n\t\t\t\t\t\taxisLine={false}\n\t\t\t\t\t\ttickLine={false}\n\t\t\t\t\t/>\n\t\t\t\t\t<YAxis\n\t\t\t\t\t\ttype=\"category\"\n\t\t\t\t\t\tdataKey=\"label\"\n\t\t\t\t\t\twidth={90}\n\t\t\t\t\t\ttick={{ fill: 'hsl(var(--muted-foreground))', fontSize: 12 }}\n\t\t\t\t\t\taxisLine={false}\n\t\t\t\t\t\ttickLine={false}\n\t\t\t\t\t/>\n\t\t\t\t\t<Tooltip\n\t\t\t\t\t\tcontent={({ active, payload }) => {\n\t\t\t\t\t\t\tif (!active || !payload?.length) return null;\n\t\t\t\t\t\t\tconst item = payload[0]?.payload as (typeof chartData)[number];\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div className=\"rounded-lg border bg-popover px-3 py-2 text-sm shadow-md\">\n\t\t\t\t\t\t\t\t\t<p className=\"font-medium\">{item.label}</p>\n\t\t\t\t\t\t\t\t\t<p className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{valueFormatter(item.value)}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t<Bar dataKey=\"value\" radius={[0, 4, 4, 0]}>\n\t\t\t\t\t\t{chartData.map((entry, index) => (\n\t\t\t\t\t\t\t<Cell key={`cell-${index}`} fill={entry.color} />\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Bar>\n\t\t\t\t</BarChart>\n\t\t\t</ResponsiveContainer>\n\t\t</div>\n\t);\n}\n","'use client';\n\nimport { Cell, Pie, PieChart, ResponsiveContainer, Tooltip } from 'recharts';\nimport { cn } from '../../../lib/utils';\n\nexport interface StatusDistributionData {\n\t'2xx': number;\n\t'3xx': number;\n\t'4xx': number;\n\t'5xx': number;\n}\n\nexport interface StatusDistributionChartProps {\n\tdata: StatusDistributionData;\n\tclassName?: string;\n}\n\nconst STATUS_CONFIG = {\n\t'2xx': { label: '2xx Success', color: 'hsl(142, 71%, 45%)' },\n\t'3xx': { label: '3xx Redirect', color: 'hsl(217, 91%, 60%)' },\n\t'4xx': { label: '4xx Client Error', color: 'hsl(38, 92%, 50%)' },\n\t'5xx': { label: '5xx Server Error', color: 'hsl(0, 84%, 60%)' },\n} as const;\n\nexport function StatusDistributionChart({\n\tdata,\n\tclassName,\n}: StatusDistributionChartProps) {\n\tconst chartData = (\n\t\tObject.entries(data) as [keyof StatusDistributionData, number][]\n\t)\n\t\t.filter(([, value]) => value > 0)\n\t\t.map(([key, value]) => ({\n\t\t\tname: STATUS_CONFIG[key].label,\n\t\t\tvalue,\n\t\t\tcolor: STATUS_CONFIG[key].color,\n\t\t}));\n\n\tconst total = chartData.reduce((sum, d) => sum + d.value, 0);\n\n\tif (total === 0) {\n\t\treturn (\n\t\t\t<div className=\"h-48 flex items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data available\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className={cn('h-48', className)}>\n\t\t\t<ResponsiveContainer width=\"100%\" height=\"100%\">\n\t\t\t\t<PieChart>\n\t\t\t\t\t<Pie\n\t\t\t\t\t\tdata={chartData}\n\t\t\t\t\t\tcx=\"50%\"\n\t\t\t\t\t\tcy=\"50%\"\n\t\t\t\t\t\tinnerRadius={50}\n\t\t\t\t\t\touterRadius={70}\n\t\t\t\t\t\tpaddingAngle={2}\n\t\t\t\t\t\tdataKey=\"value\"\n\t\t\t\t\t\tnameKey=\"name\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{chartData.map((entry, index) => (\n\t\t\t\t\t\t\t<Cell key={`cell-${index}`} fill={entry.color} />\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Pie>\n\t\t\t\t\t<Tooltip\n\t\t\t\t\t\tcontent={({ active, payload }) => {\n\t\t\t\t\t\t\tif (!active || !payload?.length) return null;\n\t\t\t\t\t\t\tconst item = payload[0]!;\n\t\t\t\t\t\t\tconst percent = (((item.value as number) / total) * 100).toFixed(\n\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div className=\"rounded-lg border bg-popover px-3 py-2 text-sm shadow-md\">\n\t\t\t\t\t\t\t\t\t<p className=\"font-medium\">{item.name}</p>\n\t\t\t\t\t\t\t\t\t<p className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{(item.value as number).toLocaleString()} ({percent}%)\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</PieChart>\n\t\t\t</ResponsiveContainer>\n\t\t\t<div className=\"flex flex-wrap justify-center gap-4 mt-2\">\n\t\t\t\t{chartData.map((item) => (\n\t\t\t\t\t<div key={item.name} className=\"flex items-center gap-2 text-xs\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName=\"w-3 h-3 rounded-full\"\n\t\t\t\t\t\t\tstyle={{ backgroundColor: item.color }}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">{item.name}</span>\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n","'use client';\n\nimport { subDays, subHours } from 'date-fns';\nimport { cn } from '../../../lib/utils';\n\nexport type TimeRangePreset = '1h' | '6h' | '24h' | '7d' | 'custom';\n\nexport interface TimeRange {\n\tpreset: TimeRangePreset;\n\tstart: Date;\n\tend: Date;\n}\n\nexport interface TimeRangeSelectorProps {\n\tvalue: TimeRange;\n\tonChange: (range: TimeRange) => void;\n\t/** Available presets (default: all) */\n\tpresets?: Array<{ label: string; value: TimeRangePreset }>;\n\t/** Show date picker icon */\n\tshowIcon?: boolean;\n\t/** Class name */\n\tclassName?: string;\n}\n\nconst defaultPresets: Array<{ label: string; value: TimeRangePreset }> = [\n\t{ label: '1h', value: '1h' },\n\t{ label: '6h', value: '6h' },\n\t{ label: '24h', value: '24h' },\n\t{ label: '7d', value: '7d' },\n];\n\nfunction getPresetRange(preset: TimeRangePreset): { start: Date; end: Date } {\n\tconst end = new Date();\n\n\tswitch (preset) {\n\t\tcase '1h':\n\t\t\treturn { start: subHours(end, 1), end };\n\t\tcase '6h':\n\t\t\treturn { start: subHours(end, 6), end };\n\t\tcase '24h':\n\t\t\treturn { start: subHours(end, 24), end };\n\t\tcase '7d':\n\t\t\treturn { start: subDays(end, 7), end };\n\t\tdefault:\n\t\t\treturn { start: subHours(end, 1), end };\n\t}\n}\n\nexport function TimeRangeSelector({\n\tvalue,\n\tonChange,\n\tpresets = defaultPresets,\n\tclassName,\n}: TimeRangeSelectorProps) {\n\tconst handlePresetClick = (preset: TimeRangePreset) => {\n\t\tconst range = getPresetRange(preset);\n\t\tonChange({ preset, ...range });\n\t};\n\n\treturn (\n\t\t<div className={cn('flex items-center gap-2', className)}>\n\t\t\t{/* Preset buttons */}\n\t\t\t<div className=\"flex rounded-md border border-border overflow-hidden\">\n\t\t\t\t{presets.map(({ label, value: preset }, index) => (\n\t\t\t\t\t<button\n\t\t\t\t\t\tkey={preset}\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tonClick={() => handlePresetClick(preset)}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'px-3 py-1.5 text-sm font-medium transition-colors',\n\t\t\t\t\t\t\tvalue.preset === preset\n\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t: 'bg-card hover:bg-muted text-foreground',\n\t\t\t\t\t\t\tindex > 0 && 'border-l border-border',\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</button>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\n/**\n * Create a time range from a preset\n */\nexport function createTimeRange(preset: TimeRangePreset = '1h'): TimeRange {\n\tconst range = getPresetRange(preset);\n\treturn { preset, ...range };\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst buttonVariants = cva(\n\t'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm 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]:size-4 [&_svg]:shrink-0',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'bg-primary text-primary-foreground shadow hover:bg-primary/90',\n\t\t\t\tdestructive:\n\t\t\t\t\t'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',\n\t\t\t\toutline:\n\t\t\t\t\t'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',\n\t\t\t\tsecondary:\n\t\t\t\t\t'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',\n\t\t\t\tghost: 'hover:bg-accent hover:text-accent-foreground',\n\t\t\t\tlink: 'text-primary underline-offset-4 hover:underline',\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-9 px-4 py-2',\n\t\t\t\tsm: 'h-8 rounded-md px-3 text-xs',\n\t\t\t\tlg: 'h-10 rounded-md px-8',\n\t\t\t\ticon: 'h-9 w-9',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\n\nexport interface ButtonProps\n\textends React.ButtonHTMLAttributes<HTMLButtonElement>,\n\t\tVariantProps<typeof buttonVariants> {\n\tasChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, asChild = false, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : 'button';\n\t\treturn (\n\t\t\t<Comp\n\t\t\t\tclassName={cn(buttonVariants({ variant, size, className }))}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n","import * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.Trigger>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Trigger\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<SelectPrimitive.Icon asChild>\n\t\t\t<ChevronDown className=\"h-4 w-4 opacity-50\" />\n\t\t</SelectPrimitive.Icon>\n\t</SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex cursor-default items-center justify-center py-1',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<ChevronUp className=\"h-4 w-4\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex cursor-default items-center justify-center py-1',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<ChevronDown className=\"h-4 w-4\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n\tSelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n\t<SelectPrimitive.Portal>\n\t\t<SelectPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'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',\n\t\t\t\tposition === 'popper' &&\n\t\t\t\t\t'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tposition={position}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SelectScrollUpButton />\n\t\t\t<SelectPrimitive.Viewport\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'p-1',\n\t\t\t\t\tposition === 'popper' &&\n\t\t\t\t\t\t'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</SelectPrimitive.Viewport>\n\t\t\t<SelectScrollDownButton />\n\t\t</SelectPrimitive.Content>\n\t</SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.Label>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cn('px-2 py-1.5 text-sm font-semibold', className)}\n\t\t{...props}\n\t/>\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<SelectPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" />\n\t\t\t</SelectPrimitive.ItemIndicator>\n\t\t</span>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n\tReact.ElementRef<typeof SelectPrimitive.Separator>,\n\tReact.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Separator\n\t\tref={ref}\n\t\tclassName={cn('-mx-1 my-1 h-px bg-muted', className)}\n\t\t{...props}\n\t/>\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n\tSelect,\n\tSelectGroup,\n\tSelectValue,\n\tSelectTrigger,\n\tSelectContent,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectScrollUpButton,\n\tSelectScrollDownButton,\n};\n","import * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Table = React.forwardRef<\n\tHTMLTableElement,\n\tReact.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n\t<div className=\"relative w-full overflow-auto\">\n\t\t<table\n\t\t\tref={ref}\n\t\t\tclassName={cn('w-full caption-bottom text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t</div>\n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n\tHTMLTableSectionElement,\n\tReact.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n\t<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n\tHTMLTableSectionElement,\n\tReact.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n\t<tbody\n\t\tref={ref}\n\t\tclassName={cn('[&_tr:last-child]:border-0', className)}\n\t\t{...props}\n\t/>\n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n\tHTMLTableSectionElement,\n\tReact.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n\t<tfoot\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<\n\tHTMLTableRowElement,\n\tReact.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n\t<tr\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n\tHTMLTableCellElement,\n\tReact.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n\t<th\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n\tHTMLTableCellElement,\n\tReact.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n\t<td\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n\tHTMLTableCaptionElement,\n\tReact.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n\t<caption\n\t\tref={ref}\n\t\tclassName={cn('mt-4 text-sm text-muted-foreground', className)}\n\t\t{...props}\n\t/>\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n\tTable,\n\tTableHeader,\n\tTableBody,\n\tTableFooter,\n\tTableHead,\n\tTableRow,\n\tTableCell,\n\tTableCaption,\n};\n","'use client';\n\nimport {\n\tArrowDown,\n\tArrowUp,\n\tArrowUpDown,\n\tChevronLeft,\n\tChevronRight,\n\tChevronsLeft,\n\tChevronsRight,\n} from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\nimport {\n\tSelect,\n\tSelectContent,\n\tSelectItem,\n\tSelectTrigger,\n\tSelectValue,\n} from '../ui/select';\nimport {\n\tTable,\n\tTableBody,\n\tTableCell,\n\tTableHead,\n\tTableHeader,\n\tTableRow,\n} from '../ui/table';\n\nexport interface DataTableColumn<T> {\n\t/** Unique key for the column */\n\tkey: string;\n\t/** Header label */\n\theader: string | React.ReactNode;\n\t/** Accessor function to get cell value */\n\taccessor?: (row: T) => React.ReactNode;\n\t/** Whether this column is sortable */\n\tsortable?: boolean;\n\t/** Custom cell renderer */\n\tcell?: (row: T, index: number) => React.ReactNode;\n\t/** Column width */\n\twidth?: string | number;\n\t/** Alignment */\n\talign?: 'left' | 'center' | 'right';\n\t/** Custom header class */\n\theaderClassName?: string;\n\t/** Custom cell class */\n\tcellClassName?: string;\n}\n\nexport interface DataTableProps<T>\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Array of column definitions */\n\tcolumns: DataTableColumn<T>[];\n\t/** Array of data items */\n\tdata: T[];\n\t/** Key extractor for rows */\n\tgetRowKey?: (row: T, index: number) => string | number;\n\t/** Currently sorted column */\n\tsortColumn?: string;\n\t/** Sort direction */\n\tsortDirection?: 'asc' | 'desc';\n\t/** Callback when sort changes */\n\tonSortChange?: (column: string, direction: 'asc' | 'desc') => void;\n\t/** Whether to show pagination */\n\tpagination?: boolean;\n\t/** Current page (1-indexed) */\n\tpage?: number;\n\t/** Items per page */\n\tpageSize?: number;\n\t/** Total number of items (for server-side pagination) */\n\ttotalItems?: number;\n\t/** Callback when page changes */\n\tonPageChange?: (page: number) => void;\n\t/** Callback when page size changes */\n\tonPageSizeChange?: (pageSize: number) => void;\n\t/** Page size options */\n\tpageSizeOptions?: number[];\n\t/** Whether the table is loading */\n\tloading?: boolean;\n\t/** Empty state content */\n\temptyState?: React.ReactNode;\n\t/** Row click handler */\n\tonRowClick?: (row: T, index: number) => void;\n\t/** Selected row keys */\n\tselectedKeys?: Set<string | number>;\n\t/** Striped rows */\n\tstriped?: boolean;\n\t/** Hoverable rows */\n\thoverable?: boolean;\n\t/** Compact mode */\n\tcompact?: boolean;\n}\n\nfunction DataTableInner<T>(\n\t{\n\t\tclassName,\n\t\tcolumns,\n\t\tdata,\n\t\tgetRowKey = (_, index) => index,\n\t\tsortColumn,\n\t\tsortDirection,\n\t\tonSortChange,\n\t\tpagination = false,\n\t\tpage = 1,\n\t\tpageSize = 10,\n\t\ttotalItems,\n\t\tonPageChange,\n\t\tonPageSizeChange,\n\t\tpageSizeOptions = [10, 20, 50, 100],\n\t\tloading = false,\n\t\temptyState,\n\t\tonRowClick,\n\t\tselectedKeys,\n\t\tstriped = false,\n\t\thoverable = true,\n\t\tcompact = false,\n\t\t...props\n\t}: DataTableProps<T>,\n\tref: React.ForwardedRef<HTMLDivElement>,\n) {\n\tconst total = totalItems ?? data.length;\n\tconst totalPages = Math.ceil(total / pageSize);\n\n\tconst handleSort = (columnKey: string) => {\n\t\tif (!onSortChange) return;\n\n\t\tif (sortColumn === columnKey) {\n\t\t\tonSortChange(columnKey, sortDirection === 'asc' ? 'desc' : 'asc');\n\t\t} else {\n\t\t\tonSortChange(columnKey, 'asc');\n\t\t}\n\t};\n\n\tconst getSortIcon = (columnKey: string) => {\n\t\tif (sortColumn !== columnKey) {\n\t\t\treturn <ArrowUpDown className=\"ml-1 h-3.5 w-3.5 text-muted-foreground\" />;\n\t\t}\n\t\treturn sortDirection === 'asc' ? (\n\t\t\t<ArrowUp className=\"ml-1 h-3.5 w-3.5\" />\n\t\t) : (\n\t\t\t<ArrowDown className=\"ml-1 h-3.5 w-3.5\" />\n\t\t);\n\t};\n\n\tconst getAlignClass = (align?: 'left' | 'center' | 'right') => {\n\t\tswitch (align) {\n\t\t\tcase 'center':\n\t\t\t\treturn 'text-center';\n\t\t\tcase 'right':\n\t\t\t\treturn 'text-right';\n\t\t\tdefault:\n\t\t\t\treturn 'text-left';\n\t\t}\n\t};\n\n\treturn (\n\t\t<div ref={ref} className={cn('w-full', className)} {...props}>\n\t\t\t<div className=\"rounded-md border border-border overflow-hidden\">\n\t\t\t\t<Table>\n\t\t\t\t\t<TableHeader>\n\t\t\t\t\t\t<TableRow className=\"hover:bg-transparent\">\n\t\t\t\t\t\t\t{columns.map((column) => (\n\t\t\t\t\t\t\t\t<TableHead\n\t\t\t\t\t\t\t\t\tkey={column.key}\n\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\tgetAlignClass(column.align),\n\t\t\t\t\t\t\t\t\t\tcolumn.sortable && 'cursor-pointer select-none',\n\t\t\t\t\t\t\t\t\t\tcompact ? 'py-2' : 'py-3',\n\t\t\t\t\t\t\t\t\t\tcolumn.headerClassName,\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\tstyle={{ width: column.width }}\n\t\t\t\t\t\t\t\t\tonClick={\n\t\t\t\t\t\t\t\t\t\tcolumn.sortable ? () => handleSort(column.key) : undefined\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t'flex items-center',\n\t\t\t\t\t\t\t\t\t\t\tcolumn.align === 'center' && 'justify-center',\n\t\t\t\t\t\t\t\t\t\t\tcolumn.align === 'right' && 'justify-end',\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{column.header}\n\t\t\t\t\t\t\t\t\t\t{column.sortable && getSortIcon(column.key)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</TableHead>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t</TableHeader>\n\t\t\t\t\t<TableBody>\n\t\t\t\t\t\t{loading ? (\n\t\t\t\t\t\t\t<TableRow>\n\t\t\t\t\t\t\t\t<TableCell\n\t\t\t\t\t\t\t\t\tcolSpan={columns.length}\n\t\t\t\t\t\t\t\t\tclassName=\"h-24 text-center text-muted-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t\t\t</TableCell>\n\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t) : data.length === 0 ? (\n\t\t\t\t\t\t\t<TableRow>\n\t\t\t\t\t\t\t\t<TableCell\n\t\t\t\t\t\t\t\t\tcolSpan={columns.length}\n\t\t\t\t\t\t\t\t\tclassName=\"h-24 text-center text-muted-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{emptyState ?? 'No data available'}\n\t\t\t\t\t\t\t\t</TableCell>\n\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\tdata.map((row, rowIndex) => {\n\t\t\t\t\t\t\t\tconst rowKey = getRowKey(row, rowIndex);\n\t\t\t\t\t\t\t\tconst isSelected = selectedKeys?.has(rowKey);\n\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<TableRow\n\t\t\t\t\t\t\t\t\t\tkey={rowKey}\n\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\tstriped && rowIndex % 2 === 1 && 'bg-surface/50',\n\t\t\t\t\t\t\t\t\t\t\thoverable && 'hover:bg-surface-hover cursor-pointer',\n\t\t\t\t\t\t\t\t\t\t\tisSelected && 'bg-accent/10',\n\t\t\t\t\t\t\t\t\t\t\tonRowClick && 'cursor-pointer',\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\tonClick={\n\t\t\t\t\t\t\t\t\t\t\tonRowClick ? () => onRowClick(row, rowIndex) : undefined\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{columns.map((column) => (\n\t\t\t\t\t\t\t\t\t\t\t<TableCell\n\t\t\t\t\t\t\t\t\t\t\t\tkey={column.key}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetAlignClass(column.align),\n\t\t\t\t\t\t\t\t\t\t\t\t\tcompact ? 'py-2' : 'py-3',\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolumn.cellClassName,\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{column.cell\n\t\t\t\t\t\t\t\t\t\t\t\t\t? column.cell(row, rowIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: column.accessor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? column.accessor(row)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((row as Record<string, unknown>)[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolumn.key\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t] as React.ReactNode)}\n\t\t\t\t\t\t\t\t\t\t\t</TableCell>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t)}\n\t\t\t\t\t</TableBody>\n\t\t\t\t</Table>\n\t\t\t</div>\n\n\t\t\t{pagination && totalPages > 0 && (\n\t\t\t\t<div className=\"flex items-center justify-between px-2 py-4\">\n\t\t\t\t\t<div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n\t\t\t\t\t\t<span>Rows per page:</span>\n\t\t\t\t\t\t<Select\n\t\t\t\t\t\t\tvalue={String(pageSize)}\n\t\t\t\t\t\t\tonValueChange={(value) => onPageSizeChange?.(Number(value))}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<SelectTrigger className=\"h-8 w-[70px]\">\n\t\t\t\t\t\t\t\t<SelectValue />\n\t\t\t\t\t\t\t</SelectTrigger>\n\t\t\t\t\t\t\t<SelectContent>\n\t\t\t\t\t\t\t\t{pageSizeOptions.map((size) => (\n\t\t\t\t\t\t\t\t\t<SelectItem key={size} value={String(size)}>\n\t\t\t\t\t\t\t\t\t\t{size}\n\t\t\t\t\t\t\t\t\t</SelectItem>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</SelectContent>\n\t\t\t\t\t\t</Select>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"flex items-center gap-2\">\n\t\t\t\t\t\t<span className=\"text-sm text-muted-foreground\">\n\t\t\t\t\t\t\tPage {page} of {totalPages}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<div className=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\tclassName=\"h-8 w-8\"\n\t\t\t\t\t\t\t\tonClick={() => onPageChange?.(1)}\n\t\t\t\t\t\t\t\tdisabled={page <= 1}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ChevronsLeft className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\tclassName=\"h-8 w-8\"\n\t\t\t\t\t\t\t\tonClick={() => onPageChange?.(page - 1)}\n\t\t\t\t\t\t\t\tdisabled={page <= 1}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ChevronLeft className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\tclassName=\"h-8 w-8\"\n\t\t\t\t\t\t\t\tonClick={() => onPageChange?.(page + 1)}\n\t\t\t\t\t\t\t\tdisabled={page >= totalPages}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ChevronRight className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\tclassName=\"h-8 w-8\"\n\t\t\t\t\t\t\t\tonClick={() => onPageChange?.(totalPages)}\n\t\t\t\t\t\t\t\tdisabled={page >= totalPages}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ChevronsRight className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n\nexport const DataTable = React.forwardRef(DataTableInner) as <T>(\n\tprops: DataTableProps<T> & { ref?: React.ForwardedRef<HTMLDivElement> },\n) => React.ReactElement;\n","'use client';\n\nimport { Check, ChevronDown, ChevronRight, Copy } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface JsonViewerProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** The JSON data to display */\n\tdata: unknown;\n\t/** Whether to start expanded */\n\tdefaultExpanded?: boolean;\n\t/** Maximum depth to expand by default */\n\texpandDepth?: number;\n\t/** Whether to show copy button */\n\tcopyable?: boolean;\n\t/** Custom class for keys */\n\tkeyClassName?: string;\n\t/** Custom class for values */\n\tvalueClassName?: string;\n}\n\nconst JsonViewer = React.forwardRef<HTMLDivElement, JsonViewerProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tdata,\n\t\t\tdefaultExpanded = true,\n\t\t\texpandDepth = 2,\n\t\t\tcopyable = true,\n\t\t\tkeyClassName,\n\t\t\tvalueClassName,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst [copied, setCopied] = React.useState(false);\n\n\t\tconst handleCopy = async () => {\n\t\t\tawait navigator.clipboard.writeText(JSON.stringify(data, null, 2));\n\t\t\tsetCopied(true);\n\t\t\tsetTimeout(() => setCopied(false), 2000);\n\t\t};\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative rounded-md bg-surface border border-border font-mono text-sm',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{copyable && (\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tonClick={handleCopy}\n\t\t\t\t\t\tclassName=\"absolute right-2 top-2 p-1.5 rounded-md hover:bg-surface-hover text-muted-foreground hover:text-foreground transition-colors\"\n\t\t\t\t\t\taria-label=\"Copy JSON\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{copied ? (\n\t\t\t\t\t\t\t<Check className=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Copy className=\"h-4 w-4\" />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</button>\n\t\t\t\t)}\n\t\t\t\t<div className=\"p-3 overflow-auto\">\n\t\t\t\t\t<JsonNode\n\t\t\t\t\t\tdata={data}\n\t\t\t\t\t\tdepth={0}\n\t\t\t\t\t\tdefaultExpanded={defaultExpanded}\n\t\t\t\t\t\texpandDepth={expandDepth}\n\t\t\t\t\t\tkeyClassName={keyClassName}\n\t\t\t\t\t\tvalueClassName={valueClassName}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n);\nJsonViewer.displayName = 'JsonViewer';\n\ninterface JsonNodeProps {\n\tdata: unknown;\n\tdepth: number;\n\tdefaultExpanded: boolean;\n\texpandDepth: number;\n\tkeyClassName?: string;\n\tvalueClassName?: string;\n\tpropertyKey?: string;\n\tisLast?: boolean;\n}\n\nfunction JsonNode({\n\tdata,\n\tdepth,\n\tdefaultExpanded,\n\texpandDepth,\n\tkeyClassName,\n\tvalueClassName,\n\tpropertyKey,\n\tisLast = true,\n}: JsonNodeProps) {\n\tconst [expanded, setExpanded] = React.useState(\n\t\tdefaultExpanded && depth < expandDepth,\n\t);\n\n\tconst indent = depth * 16;\n\n\t// Null\n\tif (data === null) {\n\t\treturn (\n\t\t\t<span className=\"inline\">\n\t\t\t\t{propertyKey && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t<span className={cn('text-orange-400', valueClassName)}>null</span>\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t// Undefined\n\tif (data === undefined) {\n\t\treturn (\n\t\t\t<span className=\"inline\">\n\t\t\t\t{propertyKey && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t<span className={cn('text-gray-500', valueClassName)}>undefined</span>\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t// Boolean\n\tif (typeof data === 'boolean') {\n\t\treturn (\n\t\t\t<span className=\"inline\">\n\t\t\t\t{propertyKey && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t<span className={cn('text-blue-400', valueClassName)}>\n\t\t\t\t\t{String(data)}\n\t\t\t\t</span>\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t// Number\n\tif (typeof data === 'number') {\n\t\treturn (\n\t\t\t<span className=\"inline\">\n\t\t\t\t{propertyKey && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t<span className={cn('text-amber-400', valueClassName)}>{data}</span>\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t// String\n\tif (typeof data === 'string') {\n\t\treturn (\n\t\t\t<span className=\"inline\">\n\t\t\t\t{propertyKey && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t<span className={cn('text-green-400', valueClassName)}>\"{data}\"</span>\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t// Array\n\tif (Array.isArray(data)) {\n\t\tif (data.length === 0) {\n\t\t\treturn (\n\t\t\t\t<span className=\"inline\">\n\t\t\t\t\t{propertyKey && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t<span className=\"text-muted-foreground\">[]</span>\n\t\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t\t</span>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div className=\"inline-block\">\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"inline-flex items-center cursor-pointer hover:text-foreground text-muted-foreground\"\n\t\t\t\t\tonClick={() => setExpanded(!expanded)}\n\t\t\t\t>\n\t\t\t\t\t{expanded ? (\n\t\t\t\t\t\t<ChevronDown className=\"h-3.5 w-3.5 mr-0.5\" />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<ChevronRight className=\"h-3.5 w-3.5 mr-0.5\" />\n\t\t\t\t\t)}\n\t\t\t\t\t{propertyKey && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t<span className=\"text-muted-foreground\">[</span>\n\t\t\t\t\t{!expanded && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground mx-1\">\n\t\t\t\t\t\t\t\t{data.length} items\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">]</span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t\t{expanded && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div style={{ paddingLeft: indent + 16 }}>\n\t\t\t\t\t\t\t{data.map((item, index) => (\n\t\t\t\t\t\t\t\t<div key={index}>\n\t\t\t\t\t\t\t\t\t<JsonNode\n\t\t\t\t\t\t\t\t\t\tdata={item}\n\t\t\t\t\t\t\t\t\t\tdepth={depth + 1}\n\t\t\t\t\t\t\t\t\t\tdefaultExpanded={defaultExpanded}\n\t\t\t\t\t\t\t\t\t\texpandDepth={expandDepth}\n\t\t\t\t\t\t\t\t\t\tkeyClassName={keyClassName}\n\t\t\t\t\t\t\t\t\t\tvalueClassName={valueClassName}\n\t\t\t\t\t\t\t\t\t\tisLast={index === data.length - 1}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">]</span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Object\n\tif (typeof data === 'object') {\n\t\tconst entries = Object.entries(data as Record<string, unknown>);\n\n\t\tif (entries.length === 0) {\n\t\t\treturn (\n\t\t\t\t<span className=\"inline\">\n\t\t\t\t\t{propertyKey && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t<span className=\"text-muted-foreground\">{'{}'}</span>\n\t\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t\t</span>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div className=\"inline-block\">\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"inline-flex items-center cursor-pointer hover:text-foreground text-muted-foreground\"\n\t\t\t\t\tonClick={() => setExpanded(!expanded)}\n\t\t\t\t>\n\t\t\t\t\t{expanded ? (\n\t\t\t\t\t\t<ChevronDown className=\"h-3.5 w-3.5 mr-0.5\" />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<ChevronRight className=\"h-3.5 w-3.5 mr-0.5\" />\n\t\t\t\t\t)}\n\t\t\t\t\t{propertyKey && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className={cn('text-purple-400', keyClassName)}>\n\t\t\t\t\t\t\t\t\"{propertyKey}\"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">: </span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t<span className=\"text-muted-foreground\">{'{'}</span>\n\t\t\t\t\t{!expanded && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground mx-1\">...</span>\n\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">{'}'}</span>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t\t{expanded && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div style={{ paddingLeft: indent + 16 }}>\n\t\t\t\t\t\t\t{entries.map(([key, value], index) => (\n\t\t\t\t\t\t\t\t<div key={key}>\n\t\t\t\t\t\t\t\t\t<JsonNode\n\t\t\t\t\t\t\t\t\t\tdata={value}\n\t\t\t\t\t\t\t\t\t\tdepth={depth + 1}\n\t\t\t\t\t\t\t\t\t\tdefaultExpanded={defaultExpanded}\n\t\t\t\t\t\t\t\t\t\texpandDepth={expandDepth}\n\t\t\t\t\t\t\t\t\t\tkeyClassName={keyClassName}\n\t\t\t\t\t\t\t\t\t\tvalueClassName={valueClassName}\n\t\t\t\t\t\t\t\t\t\tpropertyKey={key}\n\t\t\t\t\t\t\t\t\t\tisLast={index === entries.length - 1}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span className=\"text-muted-foreground\">{'}'}</span>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{!isLast && <span className=\"text-muted-foreground\">,</span>}\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Fallback\n\treturn (\n\t\t<span className={cn('text-muted-foreground', valueClassName)}>\n\t\t\t{String(data)}\n\t\t</span>\n\t);\n}\n\nexport { JsonViewer };\n","'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface SparklineProps extends React.SVGAttributes<SVGSVGElement> {\n\t/** Array of data points */\n\tdata: number[];\n\t/** Width of the sparkline */\n\twidth?: number;\n\t/** Height of the sparkline */\n\theight?: number;\n\t/** Stroke color */\n\tcolor?: string;\n\t/** Stroke width */\n\tstrokeWidth?: number;\n\t/** Whether to show filled area under the line */\n\tfilled?: boolean;\n\t/** Fill opacity (0-1) */\n\tfillOpacity?: number;\n\t/** Whether to show dots at data points */\n\tshowDots?: boolean;\n\t/** Whether to curve the line */\n\tcurved?: boolean;\n\t/** Minimum value (defaults to min of data) */\n\tmin?: number;\n\t/** Maximum value (defaults to max of data) */\n\tmax?: number;\n}\n\nconst Sparkline = React.forwardRef<SVGSVGElement, SparklineProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tdata,\n\t\t\twidth = 100,\n\t\t\theight = 32,\n\t\t\tcolor = 'currentColor',\n\t\t\tstrokeWidth = 2,\n\t\t\tfilled = false,\n\t\t\tfillOpacity = 0.2,\n\t\t\tshowDots = false,\n\t\t\tcurved = true,\n\t\t\tmin: minProp,\n\t\t\tmax: maxProp,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tif (data.length === 0) {\n\t\t\treturn (\n\t\t\t\t<svg\n\t\t\t\t\tref={ref}\n\t\t\t\t\tclassName={cn('text-accent', className)}\n\t\t\t\t\twidth={width}\n\t\t\t\t\theight={height}\n\t\t\t\t\tviewBox={`0 0 ${width} ${height}`}\n\t\t\t\t\t{...props}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tconst min = minProp ?? Math.min(...data);\n\t\tconst max = maxProp ?? Math.max(...data);\n\t\tconst range = max - min || 1;\n\n\t\tconst padding = strokeWidth;\n\t\tconst chartWidth = width - padding * 2;\n\t\tconst chartHeight = height - padding * 2;\n\n\t\t// Calculate points\n\t\tconst points = data.map((value, index) => {\n\t\t\tconst x = padding + (index / (data.length - 1 || 1)) * chartWidth;\n\t\t\tconst y = padding + chartHeight - ((value - min) / range) * chartHeight;\n\t\t\treturn { x, y };\n\t\t});\n\n\t\t// Create path\n\t\tlet pathD: string;\n\t\tif (curved && points.length > 2) {\n\t\t\t// Curved line using quadratic bezier curves\n\t\t\tpathD = points.reduce((acc, point, index) => {\n\t\t\t\tif (index === 0) {\n\t\t\t\t\treturn `M ${point.x},${point.y}`;\n\t\t\t\t}\n\t\t\t\tconst prev = points[index - 1]!;\n\t\t\t\tconst cpX = (prev.x + point.x) / 2;\n\t\t\t\treturn `${acc} Q ${prev.x},${prev.y} ${cpX},${(prev.y + point.y) / 2} T ${point.x},${point.y}`;\n\t\t\t}, '');\n\t\t} else {\n\t\t\t// Straight lines\n\t\t\tpathD = points\n\t\t\t\t.map((point, index) =>\n\t\t\t\t\tindex === 0 ? `M ${point.x},${point.y}` : `L ${point.x},${point.y}`,\n\t\t\t\t)\n\t\t\t\t.join(' ');\n\t\t}\n\n\t\t// Create fill path\n\t\tconst fillPathD = filled\n\t\t\t? `${pathD} L ${points[points.length - 1]?.x},${height - padding} L ${points[0]?.x},${height - padding} Z`\n\t\t\t: '';\n\n\t\treturn (\n\t\t\t<svg\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('text-accent', className)}\n\t\t\t\twidth={width}\n\t\t\t\theight={height}\n\t\t\t\tviewBox={`0 0 ${width} ${height}`}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{filled && (\n\t\t\t\t\t<path\n\t\t\t\t\t\td={fillPathD}\n\t\t\t\t\t\tfill={color}\n\t\t\t\t\t\topacity={fillOpacity}\n\t\t\t\t\t\tstrokeWidth={0}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<path\n\t\t\t\t\td={pathD}\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke={color}\n\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\tstrokeLinejoin=\"round\"\n\t\t\t\t/>\n\t\t\t\t{showDots &&\n\t\t\t\t\tpoints.map((point, index) => (\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tcx={point.x}\n\t\t\t\t\t\t\tcy={point.y}\n\t\t\t\t\t\t\tr={strokeWidth + 1}\n\t\t\t\t\t\t\tfill={color}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t</svg>\n\t\t);\n\t},\n);\nSparkline.displayName = 'Sparkline';\n\nexport interface SparkBarProps extends React.SVGAttributes<SVGSVGElement> {\n\t/** Array of data points */\n\tdata: number[];\n\t/** Width of the chart */\n\twidth?: number;\n\t/** Height of the chart */\n\theight?: number;\n\t/** Bar color */\n\tcolor?: string;\n\t/** Gap between bars (as a ratio 0-1) */\n\tgap?: number;\n\t/** Minimum value (defaults to 0) */\n\tmin?: number;\n\t/** Maximum value (defaults to max of data) */\n\tmax?: number;\n\t/** Border radius of bars */\n\tradius?: number;\n}\n\nconst SparkBar = React.forwardRef<SVGSVGElement, SparkBarProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tdata,\n\t\t\twidth = 100,\n\t\t\theight = 32,\n\t\t\tcolor = 'currentColor',\n\t\t\tgap = 0.2,\n\t\t\tmin: minProp = 0,\n\t\t\tmax: maxProp,\n\t\t\tradius = 2,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tif (data.length === 0) {\n\t\t\treturn (\n\t\t\t\t<svg\n\t\t\t\t\tref={ref}\n\t\t\t\t\tclassName={cn('text-accent', className)}\n\t\t\t\t\twidth={width}\n\t\t\t\t\theight={height}\n\t\t\t\t\tviewBox={`0 0 ${width} ${height}`}\n\t\t\t\t\t{...props}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tconst min = minProp;\n\t\tconst max = maxProp ?? Math.max(...data);\n\t\tconst range = max - min || 1;\n\n\t\tconst barWidth = width / data.length;\n\t\tconst gapWidth = barWidth * gap;\n\t\tconst actualBarWidth = barWidth - gapWidth;\n\n\t\treturn (\n\t\t\t<svg\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('text-accent', className)}\n\t\t\t\twidth={width}\n\t\t\t\theight={height}\n\t\t\t\tviewBox={`0 0 ${width} ${height}`}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{data.map((value, index) => {\n\t\t\t\t\tconst barHeight = ((value - min) / range) * height;\n\t\t\t\t\tconst x = index * barWidth + gapWidth / 2;\n\t\t\t\t\tconst y = height - barHeight;\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tx={x}\n\t\t\t\t\t\t\ty={y}\n\t\t\t\t\t\t\twidth={actualBarWidth}\n\t\t\t\t\t\t\theight={barHeight}\n\t\t\t\t\t\t\tfill={color}\n\t\t\t\t\t\t\trx={radius}\n\t\t\t\t\t\t\try={radius}\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</svg>\n\t\t);\n\t},\n);\nSparkBar.displayName = 'SparkBar';\n\nexport interface MetricCardProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Card title */\n\ttitle: string;\n\t/** Main value to display */\n\tvalue: string | number;\n\t/** Optional description or subtext */\n\tdescription?: string;\n\t/** Sparkline data */\n\tsparklineData?: number[];\n\t/** Trend direction */\n\ttrend?: 'up' | 'down' | 'neutral';\n\t/** Trend value (e.g., \"+12%\") */\n\ttrendValue?: string;\n\t/** Icon to display */\n\ticon?: React.ReactNode;\n}\n\nconst MetricCard = React.forwardRef<HTMLDivElement, MetricCardProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\ttitle,\n\t\t\tvalue,\n\t\t\tdescription,\n\t\t\tsparklineData,\n\t\t\ttrend,\n\t\t\ttrendValue,\n\t\t\ticon,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst trendColor =\n\t\t\ttrend === 'up'\n\t\t\t\t? 'text-green-500'\n\t\t\t\t: trend === 'down'\n\t\t\t\t\t? 'text-red-500'\n\t\t\t\t\t: 'text-muted-foreground';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'rounded-lg border border-border bg-surface p-4',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div className=\"flex items-center justify-between\">\n\t\t\t\t\t<span className=\"text-sm font-medium text-muted-foreground\">\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</span>\n\t\t\t\t\t{icon && <span className=\"text-muted-foreground\">{icon}</span>}\n\t\t\t\t</div>\n\t\t\t\t<div className=\"mt-2 flex items-end justify-between\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div className=\"text-2xl font-bold text-foreground\">{value}</div>\n\t\t\t\t\t\t{(description || trendValue) && (\n\t\t\t\t\t\t\t<div className=\"mt-1 flex items-center gap-1\">\n\t\t\t\t\t\t\t\t{trendValue && (\n\t\t\t\t\t\t\t\t\t<span className={cn('text-xs font-medium', trendColor)}>\n\t\t\t\t\t\t\t\t\t\t{trendValue}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{description && (\n\t\t\t\t\t\t\t\t\t<span className=\"text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{description}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{sparklineData && sparklineData.length > 0 && (\n\t\t\t\t\t\t<Sparkline\n\t\t\t\t\t\t\tdata={sparklineData}\n\t\t\t\t\t\t\twidth={80}\n\t\t\t\t\t\t\theight={32}\n\t\t\t\t\t\t\tfilled\n\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\ttrend === 'up'\n\t\t\t\t\t\t\t\t\t? 'text-green-500'\n\t\t\t\t\t\t\t\t\t: trend === 'down'\n\t\t\t\t\t\t\t\t\t\t? 'text-red-500'\n\t\t\t\t\t\t\t\t\t\t: 'text-accent'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n);\nMetricCard.displayName = 'MetricCard';\n\nexport { Sparkline, SparkBar, MetricCard };\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nconst timelineVariants = cva('relative', {\n\tvariants: {\n\t\torientation: {\n\t\t\tvertical: 'flex flex-col',\n\t\t\thorizontal: 'flex flex-row',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\torientation: 'vertical',\n\t},\n});\n\nexport interface TimelineProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof timelineVariants> {}\n\nconst Timeline = React.forwardRef<HTMLDivElement, TimelineProps>(\n\t({ className, orientation = 'vertical', children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(timelineVariants({ orientation, className }))}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nTimeline.displayName = 'Timeline';\n\nconst timelineItemVariants = cva('relative flex', {\n\tvariants: {\n\t\torientation: {\n\t\t\tvertical: 'flex-row gap-4 pb-8 last:pb-0',\n\t\t\thorizontal: 'flex-col gap-2 pr-8 last:pr-0',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\torientation: 'vertical',\n\t},\n});\n\nexport interface TimelineItemProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof timelineItemVariants> {\n\t/** Whether this is the active/current item */\n\tactive?: boolean;\n}\n\nconst TimelineItem = React.forwardRef<HTMLDivElement, TimelineItemProps>(\n\t(\n\t\t{ className, orientation = 'vertical', active, children, ...props },\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(timelineItemVariants({ orientation, className }))}\n\t\t\t\tdata-active={active}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nTimelineItem.displayName = 'TimelineItem';\n\nconst timelineIndicatorVariants = cva(\n\t'flex items-center justify-center rounded-full border-2 shrink-0',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-3 w-3',\n\t\t\t\tmd: 'h-4 w-4',\n\t\t\t\tlg: 'h-6 w-6',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'border-border bg-surface',\n\t\t\t\tprimary: 'border-accent bg-accent',\n\t\t\t\tsuccess: 'border-green-500 bg-green-500',\n\t\t\t\twarning: 'border-amber-500 bg-amber-500',\n\t\t\t\terror: 'border-red-500 bg-red-500',\n\t\t\t\tinfo: 'border-blue-500 bg-blue-500',\n\t\t\t\tmuted: 'border-muted-foreground bg-muted',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface TimelineIndicatorProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof timelineIndicatorVariants> {\n\t/** Whether to show a connecting line */\n\tshowLine?: boolean;\n\t/** Line position */\n\tlinePosition?: 'before' | 'after' | 'both';\n\t/** Orientation (inherited from Timeline) */\n\torientation?: 'vertical' | 'horizontal';\n}\n\nconst TimelineIndicator = React.forwardRef<\n\tHTMLDivElement,\n\tTimelineIndicatorProps\n>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tvariant,\n\t\t\tshowLine = true,\n\t\t\tlinePosition = 'after',\n\t\t\torientation = 'vertical',\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst isVertical = orientation === 'vertical';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative flex items-center',\n\t\t\t\t\tisVertical ? 'flex-col' : 'flex-row',\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{showLine && (linePosition === 'before' || linePosition === 'both') && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'bg-border',\n\t\t\t\t\t\t\tisVertical ? 'w-0.5 flex-1' : 'h-0.5 flex-1',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<div\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\ttimelineIndicatorVariants({ size, variant, className }),\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t\t{showLine && (linePosition === 'after' || linePosition === 'both') && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'bg-border',\n\t\t\t\t\t\t\tisVertical ? 'w-0.5 flex-1' : 'h-0.5 flex-1',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n);\nTimelineIndicator.displayName = 'TimelineIndicator';\n\nexport interface TimelineConnectorProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Orientation (inherited from Timeline) */\n\torientation?: 'vertical' | 'horizontal';\n}\n\nconst TimelineConnector = React.forwardRef<\n\tHTMLDivElement,\n\tTimelineConnectorProps\n>(({ className, orientation = 'vertical', ...props }, ref) => {\n\tconst isVertical = orientation === 'vertical';\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'bg-border',\n\t\t\t\tisVertical\n\t\t\t\t\t? 'absolute left-[7px] top-4 bottom-0 w-0.5'\n\t\t\t\t\t: 'absolute top-[7px] left-4 right-0 h-0.5',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\nTimelineConnector.displayName = 'TimelineConnector';\n\nexport interface TimelineContentProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst TimelineContent = React.forwardRef<HTMLDivElement, TimelineContentProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('flex-1 pt-0.5', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nTimelineContent.displayName = 'TimelineContent';\n\nexport interface TimelineTitleProps\n\textends React.HTMLAttributes<HTMLHeadingElement> {}\n\nconst TimelineTitle = React.forwardRef<HTMLHeadingElement, TimelineTitleProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<h4\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('text-sm font-medium text-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</h4>\n\t\t);\n\t},\n);\nTimelineTitle.displayName = 'TimelineTitle';\n\nexport interface TimelineDescriptionProps\n\textends React.HTMLAttributes<HTMLParagraphElement> {}\n\nconst TimelineDescription = React.forwardRef<\n\tHTMLParagraphElement,\n\tTimelineDescriptionProps\n>(({ className, children, ...props }, ref) => {\n\treturn (\n\t\t<p\n\t\t\tref={ref}\n\t\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</p>\n\t);\n});\nTimelineDescription.displayName = 'TimelineDescription';\n\nexport interface TimelineTimeProps\n\textends React.HTMLAttributes<HTMLSpanElement> {}\n\nconst TimelineTime = React.forwardRef<HTMLSpanElement, TimelineTimeProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('text-xs text-muted-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t);\n\t},\n);\nTimelineTime.displayName = 'TimelineTime';\n\nexport {\n\tTimeline,\n\tTimelineItem,\n\tTimelineIndicator,\n\tTimelineConnector,\n\tTimelineContent,\n\tTimelineTitle,\n\tTimelineDescription,\n\tTimelineTime,\n\ttimelineVariants,\n\ttimelineItemVariants,\n\ttimelineIndicatorVariants,\n};\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { FileQuestion, Inbox, Search, ServerOff } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\n\nconst emptyStateVariants = cva(\n\t'flex flex-col items-center justify-center text-center',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'gap-2 p-4',\n\t\t\t\tmd: 'gap-3 p-6',\n\t\t\t\tlg: 'gap-4 p-8',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport interface EmptyStateProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof emptyStateVariants> {\n\t/** Icon to display */\n\ticon?: React.ReactNode;\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Primary action button */\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\t/** Secondary action button */\n\tsecondaryAction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n}\n\nconst EmptyState = React.forwardRef<HTMLDivElement, EmptyStateProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\ticon,\n\t\t\ttitle,\n\t\t\tdescription,\n\t\t\taction,\n\t\t\tsecondaryAction,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst iconSize =\n\t\t\tsize === 'sm' ? 'h-8 w-8' : size === 'lg' ? 'h-16 w-16' : 'h-12 w-12';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(emptyStateVariants({ size, className }))}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{icon && (\n\t\t\t\t\t<div className={cn('text-muted-foreground', iconSize)}>{icon}</div>\n\t\t\t\t)}\n\t\t\t\t{title && (\n\t\t\t\t\t<h3\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'font-semibold text-foreground',\n\t\t\t\t\t\t\tsize === 'sm' && 'text-sm',\n\t\t\t\t\t\t\tsize === 'lg' && 'text-xl',\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</h3>\n\t\t\t\t)}\n\t\t\t\t{description && (\n\t\t\t\t\t<p\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'text-muted-foreground max-w-sm',\n\t\t\t\t\t\t\tsize === 'sm' && 'text-xs',\n\t\t\t\t\t\t\tsize === 'lg' && 'text-base',\n\t\t\t\t\t\t\t!size && 'text-sm',\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</p>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t\t{(action || secondaryAction) && (\n\t\t\t\t\t<div className=\"flex items-center gap-2 mt-2\">\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tsize={size === 'sm' ? 'sm' : size === 'lg' ? 'default' : 'sm'}\n\t\t\t\t\t\t\t\tonClick={action.onClick}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{secondaryAction && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize={size === 'sm' ? 'sm' : size === 'lg' ? 'default' : 'sm'}\n\t\t\t\t\t\t\t\tonClick={secondaryAction.onClick}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{secondaryAction.label}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n);\nEmptyState.displayName = 'EmptyState';\n\n// Preset empty states for common use cases\n\nexport interface NoDataProps extends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst NoData = React.forwardRef<HTMLDivElement, NoDataProps>(\n\t({ title = 'No data', ...props }, ref) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<Inbox className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNoData.displayName = 'NoData';\n\nexport interface NoResultsProps\n\textends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n\tsearchTerm?: string;\n}\n\nconst NoResults = React.forwardRef<HTMLDivElement, NoResultsProps>(\n\t({ title = 'No results found', searchTerm, description, ...props }, ref) => {\n\t\tconst desc =\n\t\t\tdescription ??\n\t\t\t(searchTerm\n\t\t\t\t? `No results found for \"${searchTerm}\". Try adjusting your search.`\n\t\t\t\t: 'Try adjusting your search or filters.');\n\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<Search className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={desc}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNoResults.displayName = 'NoResults';\n\nexport interface NotFoundProps extends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst NotFound = React.forwardRef<HTMLDivElement, NotFoundProps>(\n\t(\n\t\t{\n\t\t\ttitle = 'Page not found',\n\t\t\tdescription = \"The page you're looking for doesn't exist or has been moved.\",\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<FileQuestion className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={description}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNotFound.displayName = 'NotFound';\n\nexport interface ServerErrorProps\n\textends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst ServerError = React.forwardRef<HTMLDivElement, ServerErrorProps>(\n\t(\n\t\t{\n\t\t\ttitle = 'Something went wrong',\n\t\t\tdescription = 'An unexpected error occurred. Please try again later.',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<ServerOff className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={description}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nServerError.displayName = 'ServerError';\n\nexport {\n\tEmptyState,\n\tNoData,\n\tNoResults,\n\tNotFound,\n\tServerError,\n\temptyStateVariants,\n};\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Pause, Play } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\n\nconst liveIndicatorVariants = cva(\n\t'inline-flex items-center gap-2 rounded-full text-sm font-medium',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6 px-2 text-xs',\n\t\t\t\tmd: 'h-7 px-2.5',\n\t\t\t\tlg: 'h-8 px-3',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-surface border border-border',\n\t\t\t\tsolid: '',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface LiveIndicatorProps\n\textends Omit<React.HTMLAttributes<HTMLDivElement>, 'onToggle'>,\n\t\tVariantProps<typeof liveIndicatorVariants> {\n\t/** Whether the indicator is in live/active state */\n\tlive?: boolean;\n\t/** Label to show when live */\n\tliveLabel?: string;\n\t/** Label to show when paused */\n\tpausedLabel?: string;\n\t/** Whether to show a toggle button */\n\ttoggleable?: boolean;\n\t/** Callback when toggled */\n\tonLiveToggle?: (live: boolean) => void;\n\t/** Custom color for the dot when live */\n\tliveColor?: string;\n}\n\nconst LiveIndicator = React.forwardRef<HTMLDivElement, LiveIndicatorProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tvariant,\n\t\t\tlive = true,\n\t\t\tliveLabel = 'Live',\n\t\t\tpausedLabel = 'Paused',\n\t\t\ttoggleable = false,\n\t\t\tonLiveToggle,\n\t\t\tliveColor = '#22c55e',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst handleToggle = () => {\n\t\t\tonLiveToggle?.(!live);\n\t\t};\n\n\t\tconst dotColor = live ? liveColor : '#6b7280';\n\t\tconst textColor = live ? liveColor : undefined;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\tliveIndicatorVariants({ size, variant, className }),\n\t\t\t\t\tvariant === 'solid' && live && 'bg-green-500/10',\n\t\t\t\t\tvariant === 'solid' && !live && 'bg-muted',\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn('rounded-full', live && 'animate-pulse')}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: dotColor,\n\t\t\t\t\t\twidth: size === 'sm' ? 6 : size === 'lg' ? 10 : 8,\n\t\t\t\t\t\theight: size === 'sm' ? 6 : size === 'lg' ? 10 : 8,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<span style={{ color: textColor }}>\n\t\t\t\t\t{live ? liveLabel : pausedLabel}\n\t\t\t\t</span>\n\t\t\t\t{toggleable && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'ml-1 rounded-full',\n\t\t\t\t\t\t\tsize === 'sm' && 'h-4 w-4',\n\t\t\t\t\t\t\tsize === 'md' && 'h-5 w-5',\n\t\t\t\t\t\t\tsize === 'lg' && 'h-6 w-6',\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t>\n\t\t\t\t\t\t{live ? (\n\t\t\t\t\t\t\t<Pause\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\tsize === 'sm' && 'h-2.5 w-2.5',\n\t\t\t\t\t\t\t\t\tsize === 'md' && 'h-3 w-3',\n\t\t\t\t\t\t\t\t\tsize === 'lg' && 'h-3.5 w-3.5',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Play\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\tsize === 'sm' && 'h-2.5 w-2.5',\n\t\t\t\t\t\t\t\t\tsize === 'md' && 'h-3 w-3',\n\t\t\t\t\t\t\t\t\tsize === 'lg' && 'h-3.5 w-3.5',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Button>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n);\nLiveIndicator.displayName = 'LiveIndicator';\n\nexport interface ConnectionStatusProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Connection status */\n\tstatus: 'connected' | 'connecting' | 'disconnected' | 'error';\n\t/** Whether to show label */\n\tshowLabel?: boolean;\n\t/** Size of the indicator */\n\tsize?: 'sm' | 'md' | 'lg';\n}\n\nconst connectionStatusConfig = {\n\tconnected: {\n\t\tcolor: '#22c55e',\n\t\tlabel: 'Connected',\n\t\tpulse: false,\n\t},\n\tconnecting: {\n\t\tcolor: '#f59e0b',\n\t\tlabel: 'Connecting...',\n\t\tpulse: true,\n\t},\n\tdisconnected: {\n\t\tcolor: '#6b7280',\n\t\tlabel: 'Disconnected',\n\t\tpulse: false,\n\t},\n\terror: {\n\t\tcolor: '#ef4444',\n\t\tlabel: 'Error',\n\t\tpulse: true,\n\t},\n};\n\nconst ConnectionStatus = React.forwardRef<\n\tHTMLDivElement,\n\tConnectionStatusProps\n>(({ className, status, showLabel = true, size = 'md', ...props }, ref) => {\n\tconst config = connectionStatusConfig[status];\n\tconst dotSize = size === 'sm' ? 6 : size === 'lg' ? 10 : 8;\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={cn('inline-flex items-center gap-2', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName={cn('rounded-full', config.pulse && 'animate-pulse')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: config.color,\n\t\t\t\t\twidth: dotSize,\n\t\t\t\t\theight: dotSize,\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t{showLabel && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'text-sm',\n\t\t\t\t\t\tsize === 'sm' && 'text-xs',\n\t\t\t\t\t\tsize === 'lg' && 'text-base',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ color: config.color }}\n\t\t\t\t>\n\t\t\t\t\t{config.label}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nConnectionStatus.displayName = 'ConnectionStatus';\n\nexport { LiveIndicator, ConnectionStatus, liveIndicatorVariants };\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Loader2 } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nconst spinnerVariants = cva('animate-spin text-muted-foreground', {\n\tvariants: {\n\t\tsize: {\n\t\t\txs: 'h-3 w-3',\n\t\t\tsm: 'h-4 w-4',\n\t\t\tmd: 'h-6 w-6',\n\t\t\tlg: 'h-8 w-8',\n\t\t\txl: 'h-12 w-12',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: 'md',\n\t},\n});\n\nexport interface SpinnerProps\n\textends Omit<React.SVGAttributes<SVGSVGElement>, 'children'>,\n\t\tVariantProps<typeof spinnerVariants> {}\n\nconst Spinner = React.forwardRef<SVGSVGElement, SpinnerProps>(\n\t({ className, size, ...props }, ref) => {\n\t\treturn (\n\t\t\t<Loader2\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(spinnerVariants({ size, className }))}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nSpinner.displayName = 'Spinner';\n\nconst loadingOverlayVariants = cva(\n\t'absolute inset-0 flex items-center justify-center bg-background/80 backdrop-blur-sm',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-background/80',\n\t\t\t\tdark: 'bg-background/90',\n\t\t\t\tlight: 'bg-background/50',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface LoadingOverlayProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof loadingOverlayVariants> {\n\t/** Whether the overlay is visible */\n\tloading?: boolean;\n\t/** Text to display below spinner */\n\ttext?: string;\n\t/** Spinner size */\n\tspinnerSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n}\n\nconst LoadingOverlay = React.forwardRef<HTMLDivElement, LoadingOverlayProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tvariant,\n\t\t\tloading = true,\n\t\t\ttext,\n\t\t\tspinnerSize = 'lg',\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tif (!loading) return null;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(loadingOverlayVariants({ variant, className }))}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div className=\"flex flex-col items-center gap-3\">\n\t\t\t\t\t<Spinner size={spinnerSize} />\n\t\t\t\t\t{text && (\n\t\t\t\t\t\t<span className=\"text-sm text-muted-foreground\">{text}</span>\n\t\t\t\t\t)}\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingOverlay.displayName = 'LoadingOverlay';\n\nexport interface LoadingContainerProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Whether the container is loading */\n\tloading?: boolean;\n\t/** Text to display below spinner */\n\tloadingText?: string;\n\t/** Spinner size */\n\tspinnerSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\t/** Overlay variant */\n\toverlayVariant?: 'default' | 'dark' | 'light';\n}\n\nconst LoadingContainer = React.forwardRef<\n\tHTMLDivElement,\n\tLoadingContainerProps\n>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tloading = false,\n\t\t\tloadingText,\n\t\t\tspinnerSize,\n\t\t\toverlayVariant,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('relative', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t\t<LoadingOverlay\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttext={loadingText}\n\t\t\t\t\tspinnerSize={spinnerSize}\n\t\t\t\t\tvariant={overlayVariant}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingContainer.displayName = 'LoadingContainer';\n\nexport interface LoadingDotsProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Size of dots */\n\tsize?: 'sm' | 'md' | 'lg';\n}\n\nconst LoadingDots = React.forwardRef<HTMLDivElement, LoadingDotsProps>(\n\t({ className, size = 'md', ...props }, ref) => {\n\t\tconst dotSize =\n\t\t\tsize === 'sm' ? 'h-1 w-1' : size === 'lg' ? 'h-2.5 w-2.5' : 'h-1.5 w-1.5';\n\t\tconst gap = size === 'sm' ? 'gap-1' : size === 'lg' ? 'gap-2' : 'gap-1.5';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex items-center', gap, className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '0ms' }}\n\t\t\t\t/>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '150ms' }}\n\t\t\t\t/>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '300ms' }}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingDots.displayName = 'LoadingDots';\n\nexport interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Width of the skeleton */\n\twidth?: string | number;\n\t/** Height of the skeleton */\n\theight?: string | number;\n\t/** Whether to use rounded corners */\n\trounded?: boolean | 'sm' | 'md' | 'lg' | 'full';\n}\n\nconst Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n\t({ className, width, height, rounded = 'md', style, ...props }, ref) => {\n\t\tconst roundedClass =\n\t\t\trounded === true\n\t\t\t\t? 'rounded-md'\n\t\t\t\t: rounded === false\n\t\t\t\t\t? ''\n\t\t\t\t\t: rounded === 'sm'\n\t\t\t\t\t\t? 'rounded-sm'\n\t\t\t\t\t\t: rounded === 'lg'\n\t\t\t\t\t\t\t? 'rounded-lg'\n\t\t\t\t\t\t\t: rounded === 'full'\n\t\t\t\t\t\t\t\t? 'rounded-full'\n\t\t\t\t\t\t\t\t: 'rounded-md';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('animate-pulse bg-muted', roundedClass, className)}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth,\n\t\t\t\t\theight,\n\t\t\t\t\t...style,\n\t\t\t\t}}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nSkeleton.displayName = 'Skeleton';\n\nexport {\n\tSpinner,\n\tLoadingOverlay,\n\tLoadingContainer,\n\tLoadingDots,\n\tSkeleton,\n\tspinnerVariants,\n\tloadingOverlayVariants,\n};\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport {\n\tgetLogLevelColor,\n\tgetMethodColor,\n\tgetStatusColor,\n} from '../../styles/theme';\n\nconst statusBadgeVariants = cva(\n\t'inline-flex items-center justify-center rounded-full text-xs font-medium',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-5 min-w-5 px-1.5',\n\t\t\t\tmd: 'h-6 min-w-6 px-2',\n\t\t\t\tlg: 'h-7 min-w-7 px-2.5',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport interface StatusBadgeProps\n\textends React.HTMLAttributes<HTMLSpanElement>,\n\t\tVariantProps<typeof statusBadgeVariants> {\n\t/** HTTP status code to display */\n\tstatus?: number;\n\t/** HTTP method to display */\n\tmethod?: string;\n\t/** Log level to display */\n\tlogLevel?: string;\n\t/** Custom color (overrides automatic color) */\n\tcolor?: string;\n\t/** Whether to show a pulsing dot */\n\tpulse?: boolean;\n}\n\nconst StatusBadge = React.forwardRef<HTMLSpanElement, StatusBadgeProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tstatus,\n\t\t\tmethod,\n\t\t\tlogLevel,\n\t\t\tcolor: customColor,\n\t\t\tpulse,\n\t\t\tchildren,\n\t\t\tstyle,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\t// Determine color based on props\n\t\tlet color = customColor;\n\t\tlet content = children;\n\n\t\tif (status !== undefined) {\n\t\t\tcolor = color ?? getStatusColor(status);\n\t\t\tcontent = content ?? String(status);\n\t\t} else if (method) {\n\t\t\tcolor = color ?? getMethodColor(method);\n\t\t\tcontent = content ?? method.toUpperCase();\n\t\t} else if (logLevel) {\n\t\t\tcolor = color ?? getLogLevelColor(logLevel);\n\t\t\tcontent = content ?? logLevel.toUpperCase();\n\t\t}\n\n\t\tconst backgroundColor = color ? `${color}20` : undefined;\n\t\tconst textColor = color;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(statusBadgeVariants({ size, className }))}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor,\n\t\t\t\t\tcolor: textColor,\n\t\t\t\t\t...style,\n\t\t\t\t}}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{pulse && (\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName=\"mr-1.5 h-1.5 w-1.5 rounded-full animate-pulse\"\n\t\t\t\t\t\tstyle={{ backgroundColor: color }}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{content}\n\t\t\t</span>\n\t\t);\n\t},\n);\nStatusBadge.displayName = 'StatusBadge';\n\nexport interface HttpStatusBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** HTTP status code */\n\tcode: number;\n}\n\nconst HttpStatusBadge = React.forwardRef<HTMLSpanElement, HttpStatusBadgeProps>(\n\t({ code, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} status={code} {...props} />;\n\t},\n);\nHttpStatusBadge.displayName = 'HttpStatusBadge';\n\nexport interface HttpMethodBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** HTTP method */\n\tmethod: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';\n}\n\nconst HttpMethodBadge = React.forwardRef<HTMLSpanElement, HttpMethodBadgeProps>(\n\t({ method, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} method={method} {...props} />;\n\t},\n);\nHttpMethodBadge.displayName = 'HttpMethodBadge';\n\nexport interface LogLevelBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** Log level */\n\tlevel: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';\n}\n\nconst LogLevelBadge = React.forwardRef<HTMLSpanElement, LogLevelBadgeProps>(\n\t({ level, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} logLevel={level} {...props} />;\n\t},\n);\nLogLevelBadge.displayName = 'LogLevelBadge';\n\nexport {\n\tStatusBadge,\n\tHttpStatusBadge,\n\tHttpMethodBadge,\n\tLogLevelBadge,\n\tstatusBadgeVariants,\n};\n","'use client';\n\nimport { ChevronRight } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface HeaderProps extends React.HTMLAttributes<HTMLElement> {\n\tsticky?: boolean;\n}\n\nconst Header = React.forwardRef<HTMLElement, HeaderProps>(\n\t({ className, sticky = false, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<header\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'flex h-14 items-center gap-4 border-b border-border bg-surface px-4',\n\t\t\t\t\tsticky && 'sticky top-0 z-10',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</header>\n\t\t);\n\t},\n);\nHeader.displayName = 'Header';\n\nexport interface HeaderTitleProps\n\textends React.HTMLAttributes<HTMLHeadingElement> {}\n\nconst HeaderTitle = React.forwardRef<HTMLHeadingElement, HeaderTitleProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<h1\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('text-lg font-semibold text-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</h1>\n\t\t);\n\t},\n);\nHeaderTitle.displayName = 'HeaderTitle';\n\nexport interface HeaderDescriptionProps\n\textends React.HTMLAttributes<HTMLParagraphElement> {}\n\nconst HeaderDescription = React.forwardRef<\n\tHTMLParagraphElement,\n\tHeaderDescriptionProps\n>(({ className, children, ...props }, ref) => {\n\treturn (\n\t\t<p\n\t\t\tref={ref}\n\t\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</p>\n\t);\n});\nHeaderDescription.displayName = 'HeaderDescription';\n\nexport interface HeaderActionsProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst HeaderActions = React.forwardRef<HTMLDivElement, HeaderActionsProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('ml-auto flex items-center gap-2', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nHeaderActions.displayName = 'HeaderActions';\n\nexport interface BreadcrumbItem {\n\tlabel: string;\n\thref?: string;\n\tcurrent?: boolean;\n}\n\nexport interface HeaderBreadcrumbsProps\n\textends React.HTMLAttributes<HTMLElement> {\n\titems: BreadcrumbItem[];\n\tseparator?: React.ReactNode;\n}\n\nconst HeaderBreadcrumbs = React.forwardRef<HTMLElement, HeaderBreadcrumbsProps>(\n\t({ className, items, separator, ...props }, ref) => {\n\t\treturn (\n\t\t\t<nav\n\t\t\t\tref={ref}\n\t\t\t\taria-label=\"Breadcrumb\"\n\t\t\t\tclassName={cn('flex items-center gap-1 text-sm', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<ol className=\"flex items-center gap-1\">\n\t\t\t\t\t{items.map((item, index) => (\n\t\t\t\t\t\t<li key={item.label} className=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t{index > 0 && (\n\t\t\t\t\t\t\t\t<span className=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{separator ?? <ChevronRight className=\"h-3.5 w-3.5\" />}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{item.href && !item.current ? (\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\thref={item.href}\n\t\t\t\t\t\t\t\t\tclassName=\"text-muted-foreground hover:text-foreground transition-colors\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{item.label}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\titem.current\n\t\t\t\t\t\t\t\t\t\t\t? 'text-foreground font-medium'\n\t\t\t\t\t\t\t\t\t\t\t: 'text-muted-foreground',\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\taria-current={item.current ? 'page' : undefined}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{item.label}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))}\n\t\t\t\t</ol>\n\t\t\t</nav>\n\t\t);\n\t},\n);\nHeaderBreadcrumbs.displayName = 'HeaderBreadcrumbs';\n\nexport interface HeaderGroupProps extends React.HTMLAttributes<HTMLDivElement> {\n\talign?: 'start' | 'center' | 'end';\n}\n\nconst HeaderGroup = React.forwardRef<HTMLDivElement, HeaderGroupProps>(\n\t({ className, align = 'start', children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'flex items-center gap-3',\n\t\t\t\t\talign === 'center' && 'justify-center',\n\t\t\t\t\talign === 'end' && 'justify-end ml-auto',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nHeaderGroup.displayName = 'HeaderGroup';\n\nexport {\n\tHeader,\n\tHeaderTitle,\n\tHeaderDescription,\n\tHeaderActions,\n\tHeaderBreadcrumbs,\n\tHeaderGroup,\n};\n","'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface ShellProps extends React.HTMLAttributes<HTMLDivElement> {}\n\nconst Shell = React.forwardRef<HTMLDivElement, ShellProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex h-screen w-full bg-background', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShell.displayName = 'Shell';\n\nexport interface ShellSidebarProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst ShellSidebar = React.forwardRef<HTMLDivElement, ShellSidebarProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('shrink-0', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShellSidebar.displayName = 'ShellSidebar';\n\nexport interface ShellMainProps extends React.HTMLAttributes<HTMLDivElement> {}\n\nconst ShellMain = React.forwardRef<HTMLDivElement, ShellMainProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex flex-1 flex-col overflow-hidden', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShellMain.displayName = 'ShellMain';\n\nexport interface ShellHeaderProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst ShellHeader = React.forwardRef<HTMLDivElement, ShellHeaderProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('shrink-0', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShellHeader.displayName = 'ShellHeader';\n\nexport interface ShellContentProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\tscrollable?: boolean;\n}\n\nconst ShellContent = React.forwardRef<HTMLDivElement, ShellContentProps>(\n\t({ className, scrollable = true, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex-1', scrollable && 'overflow-auto', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShellContent.displayName = 'ShellContent';\n\nexport interface ShellFooterProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst ShellFooter = React.forwardRef<HTMLDivElement, ShellFooterProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('shrink-0 border-t border-border bg-surface', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nShellFooter.displayName = 'ShellFooter';\n\nexport {\n\tShell,\n\tShellSidebar,\n\tShellMain,\n\tShellHeader,\n\tShellContent,\n\tShellFooter,\n};\n","import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst ScrollArea = React.forwardRef<\n\tReact.ElementRef<typeof ScrollAreaPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n\t<ScrollAreaPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn('relative overflow-hidden', className)}\n\t\t{...props}\n\t>\n\t\t<ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n\t\t\t{children}\n\t\t</ScrollAreaPrimitive.Viewport>\n\t\t<ScrollBar />\n\t\t<ScrollAreaPrimitive.Corner />\n\t</ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n\tReact.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n\tReact.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n\t<ScrollAreaPrimitive.ScrollAreaScrollbar\n\t\tref={ref}\n\t\torientation={orientation}\n\t\tclassName={cn(\n\t\t\t'flex touch-none select-none transition-colors',\n\t\t\torientation === 'vertical' &&\n\t\t\t\t'h-full w-2.5 border-l border-l-transparent p-[1px]',\n\t\t\torientation === 'horizontal' &&\n\t\t\t\t'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n\t</ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n","import * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n\tReact.ElementRef<typeof TooltipPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n\t<TooltipPrimitive.Portal>\n\t\t<TooltipPrimitive.Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { type LucideIcon, PanelLeftClose, PanelLeftOpen } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\nimport { ScrollArea } from '../ui/scroll-area';\nimport {\n\tTooltip,\n\tTooltipContent,\n\tTooltipProvider,\n\tTooltipTrigger,\n} from '../ui/tooltip';\n\nconst sidebarVariants = cva(\n\t'flex flex-col border-r border-border bg-surface transition-all duration-200',\n\t{\n\t\tvariants: {\n\t\t\tcollapsed: {\n\t\t\t\ttrue: 'w-16',\n\t\t\t\tfalse: 'w-64',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tcollapsed: false,\n\t\t},\n\t},\n);\n\nexport interface SidebarProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof sidebarVariants> {\n\tcollapsed?: boolean;\n\tonCollapsedChange?: (collapsed: boolean) => void;\n\theader?: React.ReactNode;\n\tfooter?: React.ReactNode;\n}\n\nconst SidebarContext = React.createContext<{\n\tcollapsed: boolean;\n\tsetCollapsed: (collapsed: boolean) => void;\n}>({\n\tcollapsed: false,\n\tsetCollapsed: () => {},\n});\n\nexport function useSidebar() {\n\tconst context = React.useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error('useSidebar must be used within a Sidebar');\n\t}\n\treturn context;\n}\n\nconst Sidebar = React.forwardRef<HTMLDivElement, SidebarProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tcollapsed: controlledCollapsed,\n\t\t\tonCollapsedChange,\n\t\t\theader,\n\t\t\tfooter,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst [internalCollapsed, setInternalCollapsed] = React.useState(false);\n\t\tconst collapsed = controlledCollapsed ?? internalCollapsed;\n\n\t\tconst setCollapsed = React.useCallback(\n\t\t\t(value: boolean) => {\n\t\t\t\tsetInternalCollapsed(value);\n\t\t\t\tonCollapsedChange?.(value);\n\t\t\t},\n\t\t\t[onCollapsedChange],\n\t\t);\n\n\t\treturn (\n\t\t\t<SidebarContext.Provider value={{ collapsed, setCollapsed }}>\n\t\t\t\t<TooltipProvider delayDuration={0}>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\tclassName={cn(sidebarVariants({ collapsed, className }))}\n\t\t\t\t\t\t{...props}\n\t\t\t\t\t>\n\t\t\t\t\t\t{header && (\n\t\t\t\t\t\t\t<div className=\"flex h-14 items-center border-b border-border px-4\">\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<ScrollArea className=\"flex-1\">\n\t\t\t\t\t\t\t<div className=\"flex flex-col gap-1 p-2\">{children}</div>\n\t\t\t\t\t\t</ScrollArea>\n\t\t\t\t\t\t{footer && (\n\t\t\t\t\t\t\t<div className=\"border-t border-border p-2\">{footer}</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipProvider>\n\t\t\t</SidebarContext.Provider>\n\t\t);\n\t},\n);\nSidebar.displayName = 'Sidebar';\n\nexport interface SidebarToggleProps\n\textends React.ButtonHTMLAttributes<HTMLButtonElement> {}\n\nconst SidebarToggle = React.forwardRef<HTMLButtonElement, SidebarToggleProps>(\n\t({ className, ...props }, ref) => {\n\t\tconst { collapsed, setCollapsed } = useSidebar();\n\n\t\treturn (\n\t\t\t<Button\n\t\t\t\tref={ref}\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tsize=\"icon\"\n\t\t\t\tclassName={cn('h-8 w-8', className)}\n\t\t\t\tonClick={() => setCollapsed(!collapsed)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{collapsed ? (\n\t\t\t\t\t<PanelLeftOpen className=\"h-4 w-4\" />\n\t\t\t\t) : (\n\t\t\t\t\t<PanelLeftClose className=\"h-4 w-4\" />\n\t\t\t\t)}\n\t\t\t\t<span className=\"sr-only\">\n\t\t\t\t\t{collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n\t\t\t\t</span>\n\t\t\t</Button>\n\t\t);\n\t},\n);\nSidebarToggle.displayName = 'SidebarToggle';\n\nexport interface SidebarSectionProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\ttitle?: string;\n}\n\nconst SidebarSection = React.forwardRef<HTMLDivElement, SidebarSectionProps>(\n\t({ className, title, children, ...props }, ref) => {\n\t\tconst { collapsed } = useSidebar();\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex flex-col gap-1', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{title && !collapsed && (\n\t\t\t\t\t<div className=\"px-2 py-1.5 text-xs font-medium text-muted-foreground uppercase tracking-wider\">\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{title && collapsed && (\n\t\t\t\t\t<div className=\"mx-auto my-1 h-px w-6 bg-border\" />\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nSidebarSection.displayName = 'SidebarSection';\n\nexport interface SidebarItemProps\n\textends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\ticon?: LucideIcon;\n\tactive?: boolean;\n\tbadge?: React.ReactNode;\n}\n\nconst SidebarItem = React.forwardRef<HTMLButtonElement, SidebarItemProps>(\n\t({ className, icon: Icon, active, badge, children, ...props }, ref) => {\n\t\tconst { collapsed } = useSidebar();\n\n\t\tconst button = (\n\t\t\t<button\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors',\n\t\t\t\t\t'text-muted-foreground hover:bg-surface-hover hover:text-foreground',\n\t\t\t\t\t'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n\t\t\t\t\tactive && 'bg-surface-hover text-foreground',\n\t\t\t\t\tcollapsed && 'justify-center px-0',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{Icon && <Icon className=\"h-4 w-4 shrink-0\" />}\n\t\t\t\t{!collapsed && <span className=\"flex-1 truncate\">{children}</span>}\n\t\t\t\t{!collapsed && badge && <span>{badge}</span>}\n\t\t\t</button>\n\t\t);\n\n\t\tif (collapsed) {\n\t\t\treturn (\n\t\t\t\t<Tooltip>\n\t\t\t\t\t<TooltipTrigger asChild>{button}</TooltipTrigger>\n\t\t\t\t\t<TooltipContent side=\"right\" className=\"flex items-center gap-2\">\n\t\t\t\t\t\t{children}\n\t\t\t\t\t\t{badge}\n\t\t\t\t\t</TooltipContent>\n\t\t\t\t</Tooltip>\n\t\t\t);\n\t\t}\n\n\t\treturn button;\n\t},\n);\nSidebarItem.displayName = 'SidebarItem';\n\nexport interface SidebarLinkProps\n\textends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n\ticon?: LucideIcon;\n\tactive?: boolean;\n\tbadge?: React.ReactNode;\n}\n\nconst SidebarLink = React.forwardRef<HTMLAnchorElement, SidebarLinkProps>(\n\t({ className, icon: Icon, active, badge, children, ...props }, ref) => {\n\t\tconst { collapsed } = useSidebar();\n\n\t\tconst link = (\n\t\t\t<a\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors',\n\t\t\t\t\t'text-muted-foreground hover:bg-surface-hover hover:text-foreground',\n\t\t\t\t\t'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n\t\t\t\t\tactive && 'bg-surface-hover text-foreground',\n\t\t\t\t\tcollapsed && 'justify-center px-0',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{Icon && <Icon className=\"h-4 w-4 shrink-0\" />}\n\t\t\t\t{!collapsed && <span className=\"flex-1 truncate\">{children}</span>}\n\t\t\t\t{!collapsed && badge && <span>{badge}</span>}\n\t\t\t</a>\n\t\t);\n\n\t\tif (collapsed) {\n\t\t\treturn (\n\t\t\t\t<Tooltip>\n\t\t\t\t\t<TooltipTrigger asChild>{link}</TooltipTrigger>\n\t\t\t\t\t<TooltipContent side=\"right\" className=\"flex items-center gap-2\">\n\t\t\t\t\t\t{children}\n\t\t\t\t\t\t{badge}\n\t\t\t\t\t</TooltipContent>\n\t\t\t\t</Tooltip>\n\t\t\t);\n\t\t}\n\n\t\treturn link;\n\t},\n);\nSidebarLink.displayName = 'SidebarLink';\n\nexport {\n\tSidebar,\n\tSidebarToggle,\n\tSidebarSection,\n\tSidebarItem,\n\tSidebarLink,\n\tsidebarVariants,\n};\n","'use client';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface SplitPaneProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Direction of the split */\n\tdirection?: 'horizontal' | 'vertical';\n\t/** Initial size of the first pane (in pixels or percentage) */\n\tdefaultSize?: number | string;\n\t/** Minimum size of the first pane in pixels */\n\tminSize?: number;\n\t/** Maximum size of the first pane in pixels */\n\tmaxSize?: number;\n\t/** Called when the pane size changes */\n\tonSizeChange?: (size: number) => void;\n\t/** Whether to show the resize handle */\n\tresizable?: boolean;\n}\n\nconst SplitPane = React.forwardRef<HTMLDivElement, SplitPaneProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tdirection = 'horizontal',\n\t\t\tdefaultSize = '50%',\n\t\t\tminSize = 100,\n\t\t\tmaxSize,\n\t\t\tonSizeChange,\n\t\t\tresizable = true,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst containerRef = React.useRef<HTMLDivElement>(null);\n\t\tconst [size, setSize] = React.useState<number | null>(null);\n\t\tconst [isDragging, setIsDragging] = React.useState(false);\n\n\t\tconst childArray = React.Children.toArray(children);\n\t\tconst firstPane = childArray[0];\n\t\tconst secondPane = childArray[1];\n\n\t\tconst isHorizontal = direction === 'horizontal';\n\n\t\t// Initialize size from defaultSize\n\t\tReact.useEffect(() => {\n\t\t\tif (size !== null || !containerRef.current) return;\n\n\t\t\tconst containerSize = isHorizontal\n\t\t\t\t? containerRef.current.offsetWidth\n\t\t\t\t: containerRef.current.offsetHeight;\n\n\t\t\tif (typeof defaultSize === 'string' && defaultSize.endsWith('%')) {\n\t\t\t\tconst percent = parseFloat(defaultSize) / 100;\n\t\t\t\tsetSize(Math.round(containerSize * percent));\n\t\t\t} else if (typeof defaultSize === 'number') {\n\t\t\t\tsetSize(defaultSize);\n\t\t\t} else {\n\t\t\t\tsetSize(Math.round(containerSize / 2));\n\t\t\t}\n\t\t}, [defaultSize, isHorizontal, size]);\n\n\t\tconst handleMouseDown = React.useCallback(\n\t\t\t(e: React.MouseEvent) => {\n\t\t\t\tif (!resizable) return;\n\t\t\t\te.preventDefault();\n\t\t\t\tsetIsDragging(true);\n\t\t\t},\n\t\t\t[resizable],\n\t\t);\n\n\t\tReact.useEffect(() => {\n\t\t\tif (!isDragging) return;\n\n\t\t\tconst handleMouseMove = (e: MouseEvent) => {\n\t\t\t\tif (!containerRef.current) return;\n\n\t\t\t\tconst containerRect = containerRef.current.getBoundingClientRect();\n\t\t\t\tconst containerSize = isHorizontal\n\t\t\t\t\t? containerRect.width\n\t\t\t\t\t: containerRect.height;\n\n\t\t\t\tlet newSize = isHorizontal\n\t\t\t\t\t? e.clientX - containerRect.left\n\t\t\t\t\t: e.clientY - containerRect.top;\n\n\t\t\t\t// Apply constraints\n\t\t\t\tnewSize = Math.max(minSize, newSize);\n\t\t\t\tif (maxSize) {\n\t\t\t\t\tnewSize = Math.min(maxSize, newSize);\n\t\t\t\t}\n\t\t\t\tnewSize = Math.min(containerSize - minSize, newSize);\n\n\t\t\t\tsetSize(newSize);\n\t\t\t\tonSizeChange?.(newSize);\n\t\t\t};\n\n\t\t\tconst handleMouseUp = () => {\n\t\t\t\tsetIsDragging(false);\n\t\t\t};\n\n\t\t\tdocument.addEventListener('mousemove', handleMouseMove);\n\t\t\tdocument.addEventListener('mouseup', handleMouseUp);\n\n\t\t\treturn () => {\n\t\t\t\tdocument.removeEventListener('mousemove', handleMouseMove);\n\t\t\t\tdocument.removeEventListener('mouseup', handleMouseUp);\n\t\t\t};\n\t\t}, [isDragging, isHorizontal, minSize, maxSize, onSizeChange]);\n\n\t\tconst firstPaneStyle: React.CSSProperties = {\n\t\t\t[isHorizontal ? 'width' : 'height']:\n\t\t\t\tsize !== null ? `${size}px` : defaultSize,\n\t\t\tflexShrink: 0,\n\t\t};\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={(node) => {\n\t\t\t\t\t(\n\t\t\t\t\t\tcontainerRef as React.MutableRefObject<HTMLDivElement | null>\n\t\t\t\t\t).current = node;\n\t\t\t\t\tif (typeof ref === 'function') {\n\t\t\t\t\t\tref(node);\n\t\t\t\t\t} else if (ref) {\n\t\t\t\t\t\tref.current = node;\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'flex overflow-hidden',\n\t\t\t\t\tisHorizontal ? 'flex-row' : 'flex-col',\n\t\t\t\t\tisDragging && 'cursor-col-resize select-none',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName={cn('overflow-auto', isHorizontal ? 'min-w-0' : 'min-h-0')}\n\t\t\t\t\tstyle={firstPaneStyle}\n\t\t\t\t>\n\t\t\t\t\t{firstPane}\n\t\t\t\t</div>\n\n\t\t\t\t{resizable && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'flex shrink-0 items-center justify-center bg-border transition-colors',\n\t\t\t\t\t\t\tisHorizontal\n\t\t\t\t\t\t\t\t? 'w-1 cursor-col-resize hover:bg-border-hover active:bg-accent'\n\t\t\t\t\t\t\t\t: 'h-1 cursor-row-resize hover:bg-border-hover active:bg-accent',\n\t\t\t\t\t\t\tisDragging && 'bg-accent',\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\t\t>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'rounded-full bg-muted-foreground/50',\n\t\t\t\t\t\t\t\tisHorizontal ? 'h-8 w-1' : 'h-1 w-8',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t<div\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'flex-1 overflow-auto',\n\t\t\t\t\t\tisHorizontal ? 'min-w-0' : 'min-h-0',\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{secondPane}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n);\nSplitPane.displayName = 'SplitPane';\n\nexport interface SplitPanePanelProps\n\textends React.HTMLAttributes<HTMLDivElement> {}\n\nconst SplitPanePanel = React.forwardRef<HTMLDivElement, SplitPanePanelProps>(\n\t({ className, children, ...props }, ref) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('h-full w-full', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nSplitPanePanel.displayName = 'SplitPanePanel';\n\nexport { SplitPane, SplitPanePanel };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport type * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst badgeVariants = cva(\n\t'inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n\t\t\t\tdestructive:\n\t\t\t\t\t'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80',\n\t\t\t\toutline: 'text-foreground',\n\t\t\t\tsuccess: 'border-transparent bg-emerald-500/15 text-emerald-400',\n\t\t\t\twarning: 'border-transparent bg-amber-500/15 text-amber-400',\n\t\t\t\tinfo: 'border-transparent bg-blue-500/15 text-blue-400',\n\t\t\t\t// HTTP method variants\n\t\t\t\tget: 'border-transparent bg-blue-500/15 text-blue-400 font-mono',\n\t\t\t\tpost: 'border-transparent bg-emerald-500/15 text-emerald-400 font-mono',\n\t\t\t\tput: 'border-transparent bg-amber-500/15 text-amber-400 font-mono',\n\t\t\t\tpatch: 'border-transparent bg-violet-500/15 text-violet-400 font-mono',\n\t\t\t\tdelete: 'border-transparent bg-red-500/15 text-red-400 font-mono',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface BadgeProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n\treturn (\n\t\t<div className={cn(badgeVariants({ variant }), className)} {...props} />\n\t);\n}\n\nexport { Badge, badgeVariants };\n","import * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Card = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'rounded-xl border bg-card text-card-foreground shadow',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cn('flex flex-col space-y-1.5 p-6', className)}\n\t\t{...props}\n\t/>\n));\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cn('font-semibold leading-none tracking-tight', className)}\n\t\t{...props}\n\t/>\n));\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t{...props}\n\t/>\n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div ref={ref} className={cn('p-6 pt-0', className)} {...props} />\n));\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef<\n\tHTMLDivElement,\n\tReact.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cn('flex items-center p-6 pt-0', className)}\n\t\t{...props}\n\t/>\n));\nCardFooter.displayName = 'CardFooter';\n\nexport {\n\tCard,\n\tCardHeader,\n\tCardFooter,\n\tCardTitle,\n\tCardDescription,\n\tCardContent,\n};\n","import { Highlight, themes } from 'prism-react-renderer';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface CodeBlockProps {\n\tcode: string;\n\tlanguage?: string;\n\tshowLineNumbers?: boolean;\n\tclassName?: string;\n}\n\nconst CodeBlock = React.forwardRef<HTMLPreElement, CodeBlockProps>(\n\t(\n\t\t{ code, language = 'typescript', showLineNumbers = false, className },\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<Highlight theme={themes.vsDark} code={code.trim()} language={language}>\n\t\t\t\t{({\n\t\t\t\t\tclassName: highlightClassName,\n\t\t\t\t\tstyle,\n\t\t\t\t\ttokens,\n\t\t\t\t\tgetLineProps,\n\t\t\t\t\tgetTokenProps,\n\t\t\t\t}) => (\n\t\t\t\t\t<pre\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'overflow-auto rounded-md border bg-[#1e1e1e] p-4 text-sm',\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<code className={highlightClassName}>\n\t\t\t\t\t\t\t{tokens.map((line, i) => {\n\t\t\t\t\t\t\t\tconst lineProps = getLineProps({ line, key: i });\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<div key={i} {...lineProps} className=\"table-row\">\n\t\t\t\t\t\t\t\t\t\t{showLineNumbers && (\n\t\t\t\t\t\t\t\t\t\t\t<span className=\"table-cell select-none pr-4 text-right text-muted-foreground opacity-50\">\n\t\t\t\t\t\t\t\t\t\t\t\t{i + 1}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t<span className=\"table-cell\">\n\t\t\t\t\t\t\t\t\t\t\t{line.map((token, key) => (\n\t\t\t\t\t\t\t\t\t\t\t\t<span key={key} {...getTokenProps({ token, key })} />\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</code>\n\t\t\t\t\t</pre>\n\t\t\t\t)}\n\t\t\t</Highlight>\n\t\t);\n\t},\n);\nCodeBlock.displayName = 'CodeBlock';\n\nexport { CodeBlock };\n","import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Overlay>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Overlay\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n\t<DialogPortal>\n\t\t<DialogOverlay />\n\t\t<DialogPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<DialogPrimitive.Close 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\">\n\t\t\t\t<X className=\"h-4 w-4\" />\n\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t</DialogPrimitive.Close>\n\t\t</DialogPrimitive.Content>\n\t</DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n\tclassName,\n\t...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn(\n\t\t\t'flex flex-col space-y-1.5 text-center sm:text-left',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({\n\tclassName,\n\t...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn(\n\t\t\t'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Title>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Title\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'text-lg font-semibold leading-none tracking-tight',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Description>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Description\n\t\tref={ref}\n\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t{...props}\n\t/>\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n\tDialog,\n\tDialogPortal,\n\tDialogOverlay,\n\tDialogTrigger,\n\tDialogClose,\n\tDialogContent,\n\tDialogHeader,\n\tDialogFooter,\n\tDialogTitle,\n\tDialogDescription,\n};\n","import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex cursor-default gap-2 select-none items-center 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',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<ChevronRight className=\"ml-auto\" />\n\t</DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n\tDropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubContent\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuSubContent.displayName =\n\tDropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Portal>\n\t\t<DropdownMenuPrimitive.Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n\t\t\t\t'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',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n\tDropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.RadioItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Circle className=\"h-2 w-2 fill-current\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Label>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'px-2 py-1.5 text-sm font-semibold',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Separator\n\t\tref={ref}\n\t\tclassName={cn('-mx-1 my-1 h-px bg-muted', className)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n\tclassName,\n\t...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuTrigger,\n\tDropdownMenuContent,\n\tDropdownMenuItem,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuRadioItem,\n\tDropdownMenuLabel,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuGroup,\n\tDropdownMenuPortal,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuRadioGroup,\n};\n","import * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n\t({ className, type, ...props }, ref) => {\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={type}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'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',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nInput.displayName = 'Input';\n\nexport { Input };\n","import * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst labelVariants = cva(\n\t'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n);\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(labelVariants(), className)}\n\t\t{...props}\n\t/>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n","import * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Separator = React.forwardRef<\n\tReact.ElementRef<typeof SeparatorPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n\t(\n\t\t{ className, orientation = 'horizontal', decorative = true, ...props },\n\t\tref,\n\t) => (\n\t\t<SeparatorPrimitive.Root\n\t\t\tref={ref}\n\t\t\tdecorative={decorative}\n\t\t\torientation={orientation}\n\t\t\tclassName={cn(\n\t\t\t\t'shrink-0 bg-border',\n\t\t\t\torientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import * as TabsPrimitive from '@radix-ui/react-tabs';\nimport * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = React.forwardRef<\n\tReact.ElementRef<typeof TabsPrimitive.List>,\n\tReact.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n\t<TabsPrimitive.List\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = React.forwardRef<\n\tReact.ElementRef<typeof TabsPrimitive.Trigger>,\n\tReact.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n\t<TabsPrimitive.Trigger\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'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',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = React.forwardRef<\n\tReact.ElementRef<typeof TabsPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n\t<TabsPrimitive.Content\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,GAAG,GAAG,QAAsB;AAC3C,QAAO,4BAAQ,eAAK,OAAO,CAAC;AAC5B;;;;ACkCD,MAAMA,YAAoC;CACzC,MAAM;CACN,KAAK;CACL,OAAO;CACP,OAAO;CACP,QAAQ;AACR;AAED,SAAgB,oBAAoB,EACnC,MACA,eAAe,SACf,gBACA,eAAe,QACf,iBAAiB,OACjB,aAAa,SACb,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAC1C,WACA,YAC0B,EAAE;AAC5B,KAAI,KAAK,WAAW,EACnB,wBACC,2BAAC;EAAI,WAAU;YAAsE;GAE/E;CAIR,MAAM,eACL,kBAAkB,KAAK,KAAK,CAAC,MAAM,EAAE,0BAA6B;CAEnE,MAAM,YAAY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