@krak-stack/registry 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +23 -9
- package/dist/components/agent/react.js +226 -1072
- package/dist/components/app-switcher/html.js +10 -53
- package/dist/components/app-switcher/react.js +29 -139
- package/dist/components/async-action-button/html.js +3 -34
- package/dist/components/async-action-button/react.d.ts +1 -1
- package/dist/components/async-action-button/react.js +8 -54
- package/dist/components/audit-log-table/react.js +555 -1265
- package/dist/components/bulk-list-input/html.js +3 -40
- package/dist/components/bulk-list-input/react.d.ts +1 -1
- package/dist/components/bulk-list-input/react.js +6 -59
- package/dist/components/code-block/html.js +1 -35
- package/dist/components/code-block/react.js +12 -59
- package/dist/components/color-input/html.js +2 -19
- package/dist/components/color-input/react.js +6 -97
- package/dist/components/copy-button/html.js +1 -35
- package/dist/components/copy-button/react.d.ts +1 -1
- package/dist/components/copy-button/react.js +7 -54
- package/dist/components/copy-value/html.js +11 -52
- package/dist/components/copy-value/react.js +25 -165
- package/dist/components/cron-input/html.js +2 -18
- package/dist/components/cron-input/react.js +15 -30
- package/dist/components/danger-confirmation/html.js +11 -57
- package/dist/components/danger-confirmation/react.js +26 -187
- package/dist/components/data-table/html.d.ts +12 -12
- package/dist/components/data-table/html.js +200 -174
- package/dist/components/data-table/react.js +549 -1259
- package/dist/components/date-input/html.js +19 -74
- package/dist/components/date-input/react.d.ts +1 -1
- package/dist/components/date-input/react.js +28 -313
- package/dist/components/docs/classes.d.ts +15 -0
- package/dist/components/docs/html.d.ts +55 -0
- package/dist/components/docs/html.js +837 -0
- package/dist/components/docs/index.d.ts +49 -0
- package/dist/components/docs/react.d.ts +10 -0
- package/dist/components/docs/react.js +949 -0
- package/dist/components/docs/schema.d.ts +49 -0
- package/dist/components/editable-text/html.js +6 -52
- package/dist/components/editable-text/react.js +13 -83
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/editing-locale-switcher/html.js +13 -43
- package/dist/components/editing-locale-switcher/react.js +17 -141
- package/dist/components/effect-form/react.js +249 -812
- package/dist/components/email-composer/react.js +62 -279
- package/dist/components/email-editor/html.js +13 -58
- package/dist/components/email-editor/react.js +187 -483
- package/dist/components/error-component/html.js +2 -47
- package/dist/components/error-component/react.js +33 -137
- package/dist/components/file-input/html.js +9 -40
- package/dist/components/file-input/react.js +39 -208
- package/dist/components/form/react.js +212 -777
- package/dist/components/icon-input/html.js +9 -56
- package/dist/components/icon-input/react.js +43 -143
- package/dist/components/image-crop-editor/html.js +1 -35
- package/dist/components/image-crop-editor/react.js +21 -66
- package/dist/components/locale-switcher/html.js +8 -55
- package/dist/components/locale-switcher/react.js +21 -146
- package/dist/components/map-menu/html.d.ts +8 -8
- package/dist/components/map-menu/html.js +13 -72
- package/dist/components/map-menu/react.js +92 -309
- package/dist/components/markdown/html.js +1 -35
- package/dist/components/markdown/react.js +20 -64
- package/dist/components/notification-menu/html.js +14 -50
- package/dist/components/notification-menu/react.js +73 -343
- package/dist/components/pagination/html.js +17 -73
- package/dist/components/pagination/react.js +37 -200
- package/dist/components/phone-number-input/html.js +19 -57
- package/dist/components/phone-number-input/react.d.ts +1 -1
- package/dist/components/phone-number-input/react.js +43 -142
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/registry-previews/component-example.js +26 -126
- package/dist/components/rich-text-editor/html.d.ts +12 -12
- package/dist/components/rich-text-editor/html.js +12 -85
- package/dist/components/rich-text-editor/react.js +55 -272
- package/dist/components/search-menu/classes.d.ts +2 -0
- package/dist/components/search-menu/html.d.ts +2 -0
- package/dist/components/search-menu/html.js +40 -73
- package/dist/components/search-menu/index.d.ts +27 -2
- package/dist/components/search-menu/react.d.ts +1 -1
- package/dist/components/search-menu/react.js +59 -280
- package/dist/components/search-menu/schema.d.ts +1 -0
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.js +13 -48
- package/dist/components/select-with-custom-input/react.js +22 -146
- package/dist/components/sidebar-layout/html.d.ts +16 -6
- package/dist/components/sidebar-layout/html.js +83 -69
- package/dist/components/sidebar-layout/index.d.ts +16 -0
- package/dist/components/sidebar-layout/react.js +105 -698
- package/dist/components/stats-card/react.js +13 -58
- package/dist/components/support/html.js +14 -69
- package/dist/components/support/react.js +74 -320
- package/dist/components/theme-switcher/html.js +11 -55
- package/dist/components/theme-switcher/react.js +28 -152
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/time-input/html.js +8 -53
- package/dist/components/time-input/react.js +34 -188
- package/dist/components/timezone-input/html.js +11 -67
- package/dist/components/timezone-input/react.js +41 -143
- package/dist/components/toast/html.d.ts +6 -6
- package/dist/components/toast/html.js +13 -46
- package/dist/components/tracking-notice/react.js +39 -188
- package/dist/components/unsaved-changes-guard/html.js +9 -43
- package/dist/components/unsaved-changes-guard/react.js +19 -169
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/upload-attachment/html.js +4 -35
- package/dist/components/upload-attachment/react.js +25 -164
- package/dist/components/virtualized-combobox/html.js +10 -35
- package/dist/components/virtualized-combobox/react.js +28 -129
- package/dist/components/webhook-delivery-table/html.js +211 -184
- package/dist/components/webhook-delivery-table/react.js +585 -1362
- package/dist/lib/docs.integrations.server.js +150 -202
- package/dist/lib/docs.js +305 -1085
- package/dist/lib/docs.server.js +134 -186
- package/dist/lib/documentation-toolkit.js +144 -196
- package/dist/services/agent/client/index.js +226 -1072
- package/dist/services/notification/client/index.js +73 -343
- package/dist/services/notification/public.js +73 -343
- package/package.json +5 -13
- package/dist/components/effectcn/alert-dialog.d.ts +0 -13
- package/dist/components/effectcn/button.d.ts +0 -31
- package/dist/components/effectcn/calendar.d.ts +0 -12
- package/dist/components/effectcn/checkbox.d.ts +0 -10
- package/dist/components/effectcn/combobox.d.ts +0 -25
- package/dist/components/effectcn/dialog.d.ts +0 -19
- package/dist/components/effectcn/field.d.ts +0 -11
- package/dist/components/effectcn/file-drop.d.ts +0 -8
- package/dist/components/effectcn/input.d.ts +0 -26
- package/dist/components/effectcn/menu.d.ts +0 -85
- package/dist/components/effectcn/menubar.d.ts +0 -8
- package/dist/components/effectcn/popover.d.ts +0 -18
- package/dist/components/effectcn/scroll-area.d.ts +0 -12
- package/dist/components/effectcn/select.d.ts +0 -68
- package/dist/components/effectcn/toast.d.ts +0 -29
- package/dist/components/ui/alert-dialog.d.ts +0 -18
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/attachment.d.ts +0 -23
- package/dist/components/ui/badge.d.ts +0 -7
- package/dist/components/ui/bubble.d.ts +0 -16
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/card.d.ts +0 -11
- package/dist/components/ui/checkbox.d.ts +0 -3
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -18
- package/dist/components/ui/dialog.d.ts +0 -17
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/field.d.ts +0 -24
- package/dist/components/ui/input-group.d.ts +0 -17
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/item.d.ts +0 -22
- package/dist/components/ui/label.d.ts +0 -3
- package/dist/components/ui/menubar.d.ts +0 -29
- package/dist/components/ui/message-scroller.d.ts +0 -10
- package/dist/components/ui/message.d.ts +0 -10
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -4
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -159
- package/dist/components/ui/separator.d.ts +0 -3
- package/dist/components/ui/sheet.d.ts +0 -14
- package/dist/components/ui/sidebar.d.ts +0 -63
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -10
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/tooltip.d.ts +0 -6
- package/dist/components/ui/trace.d.ts +0 -18
- package/dist/lib/effectcn-form.d.ts +0 -3
- package/dist/lib/effectcn-form.js +0 -54
|
@@ -148,9 +148,9 @@ var makeAgentAtoms = ({
|
|
|
148
148
|
};
|
|
149
149
|
// ../../src/components/agent/react.tsx
|
|
150
150
|
import { useEffect, useId, useRef as useRef2, useState as useState2 } from "react";
|
|
151
|
-
import { Dialog as
|
|
151
|
+
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
152
152
|
import {
|
|
153
|
-
ArrowDownIcon
|
|
153
|
+
ArrowDownIcon,
|
|
154
154
|
BotIcon,
|
|
155
155
|
Maximize2Icon,
|
|
156
156
|
MessageCircleDashedIcon,
|
|
@@ -159,58 +159,11 @@ import {
|
|
|
159
159
|
SendIcon,
|
|
160
160
|
SquareIcon,
|
|
161
161
|
WrenchIcon,
|
|
162
|
-
XIcon
|
|
162
|
+
XIcon
|
|
163
163
|
} from "lucide-react";
|
|
164
164
|
|
|
165
|
-
// ../../src/components/ui/button.tsx
|
|
166
|
-
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
167
|
-
import { cva } from "class-variance-authority";
|
|
168
|
-
|
|
169
|
-
// ../../src/lib/utils.ts
|
|
170
|
-
import { cn } from "cn";
|
|
171
|
-
|
|
172
|
-
// ../../src/components/ui/button.tsx
|
|
173
|
-
import { jsx } from "react/jsx-runtime";
|
|
174
|
-
var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
175
|
-
variants: {
|
|
176
|
-
variant: {
|
|
177
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
178
|
-
outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
179
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
180
|
-
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
181
|
-
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
182
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
183
|
-
},
|
|
184
|
-
size: {
|
|
185
|
-
default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
186
|
-
xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
187
|
-
sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
188
|
-
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
189
|
-
icon: "size-9",
|
|
190
|
-
"icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
191
|
-
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
|
|
192
|
-
"icon-lg": "size-10"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
defaultVariants: {
|
|
196
|
-
variant: "default",
|
|
197
|
-
size: "default"
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
function Button({
|
|
201
|
-
className,
|
|
202
|
-
variant = "default",
|
|
203
|
-
size = "default",
|
|
204
|
-
...props
|
|
205
|
-
}) {
|
|
206
|
-
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
207
|
-
"data-slot": "button",
|
|
208
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
209
|
-
...props
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
|
|
213
165
|
// ../../src/components/copy-button/react.tsx
|
|
166
|
+
import { Button } from "@/components/ui/button";
|
|
214
167
|
import { Check, Copy, TriangleAlert } from "lucide-react";
|
|
215
168
|
import { Redacted as Redacted2 } from "effect";
|
|
216
169
|
import { Component as Component2 } from "effect/ui";
|
|
@@ -313,7 +266,7 @@ var copyButtonStatus = (status, copy, description) => {
|
|
|
313
266
|
};
|
|
314
267
|
|
|
315
268
|
// ../../src/components/copy-button/react.tsx
|
|
316
|
-
import { jsx
|
|
269
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
317
270
|
"use client";
|
|
318
271
|
function CopyButton({
|
|
319
272
|
value,
|
|
@@ -371,22 +324,22 @@ function CopyButton({
|
|
|
371
324
|
size: size ?? defaultSize,
|
|
372
325
|
...props,
|
|
373
326
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ jsx("span", {
|
|
375
328
|
"aria-live": "polite",
|
|
376
329
|
className: "sr-only",
|
|
377
330
|
role: "status",
|
|
378
331
|
children: copyButtonStatus(status, labels, valueDescription)
|
|
379
332
|
}),
|
|
380
|
-
status === "copied" ? /* @__PURE__ */
|
|
333
|
+
status === "copied" ? /* @__PURE__ */ jsx(Check, {
|
|
381
334
|
"aria-hidden": "true"
|
|
382
335
|
}) : null,
|
|
383
|
-
status === "failed" ? /* @__PURE__ */
|
|
336
|
+
status === "failed" ? /* @__PURE__ */ jsx(TriangleAlert, {
|
|
384
337
|
"aria-hidden": "true"
|
|
385
338
|
}) : null,
|
|
386
|
-
status === "idle" ? /* @__PURE__ */
|
|
339
|
+
status === "idle" ? /* @__PURE__ */ jsx(Copy, {
|
|
387
340
|
"aria-hidden": "true"
|
|
388
341
|
}) : null,
|
|
389
|
-
isLarge ? /* @__PURE__ */
|
|
342
|
+
isLarge ? /* @__PURE__ */ jsx("span", {
|
|
390
343
|
children: labels.copy
|
|
391
344
|
}) : null
|
|
392
345
|
]
|
|
@@ -454,7 +407,7 @@ var codeBlockMessages = (locale = "en", translations) => ({
|
|
|
454
407
|
var codeLanguage = (language = "text") => language.toLowerCase() || "text";
|
|
455
408
|
|
|
456
409
|
// ../../src/components/code-block/react.tsx
|
|
457
|
-
import { jsx as
|
|
410
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
458
411
|
function CodeBlock({
|
|
459
412
|
classes: classOverrides,
|
|
460
413
|
code,
|
|
@@ -471,17 +424,17 @@ function CodeBlock({
|
|
|
471
424
|
className: codeBlockClasses.root,
|
|
472
425
|
"data-code-theme": true,
|
|
473
426
|
children: [
|
|
474
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ jsx2("style", {
|
|
475
428
|
children: codeThemeCss
|
|
476
429
|
}),
|
|
477
430
|
/* @__PURE__ */ jsxs2("div", {
|
|
478
431
|
className: codeBlockClasses.header,
|
|
479
432
|
children: [
|
|
480
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ jsx2("span", {
|
|
481
434
|
className: codeBlockClasses.language,
|
|
482
435
|
children: highlighted.lang
|
|
483
436
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ jsx2(CopyButton, {
|
|
485
438
|
value: code,
|
|
486
439
|
valueDescription: labels.codeDescription(highlighted.lang),
|
|
487
440
|
variant: "ghost",
|
|
@@ -490,13 +443,16 @@ function CodeBlock({
|
|
|
490
443
|
})
|
|
491
444
|
]
|
|
492
445
|
}),
|
|
493
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ jsx2("div", {
|
|
494
447
|
className: codeBlockClasses.viewport,
|
|
495
448
|
dangerouslySetInnerHTML: { __html: highlighted.html }
|
|
496
449
|
})
|
|
497
450
|
]
|
|
498
451
|
});
|
|
499
452
|
}
|
|
453
|
+
// ../../src/lib/utils.ts
|
|
454
|
+
import { cn } from "cn";
|
|
455
|
+
|
|
500
456
|
// ../../src/components/markdown/classes.ts
|
|
501
457
|
var markdownClass = "[&_a:hover]:text-primary [&_a]:decoration-border [&_blockquote]:border-primary/40 [&_blockquote]:bg-muted/40 [&_h2_a]:text-muted-foreground [&_h3_a]:text-muted-foreground [&_[data-inline-code]]:bg-muted text-[0.98rem] leading-7 [&_[data-inline-code]]:rounded [&_[data-inline-code]]:px-1.5 [&_[data-inline-code]]:py-0.5 [&_[data-inline-code]]:font-mono [&_[data-inline-code]]:text-[0.875em] [&_[data-markdown-table]]:overflow-x-auto [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_blockquote]:my-5 [&_blockquote]:rounded-r-lg [&_blockquote]:border-l-4 [&_blockquote]:px-5 [&_blockquote]:py-1 [&_h2]:mt-12 [&_h2]:scroll-mt-20 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2_a]:ml-2 [&_h2_a]:no-underline [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:scroll-mt-20 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_h3_a]:ml-2 [&_h3_a]:no-underline [&_ol]:my-5 [&_p]:my-5 [&_table]:w-full [&_table]:text-sm [&_td]:border-b [&_td]:p-2 [&_th]:border-b [&_th]:p-2 [&_th]:text-left [&_ul]:my-5 [&_li]:my-1 [&_li>ol]:my-2 [&_li>p]:my-2 [&_li>ul]:my-2 [&_ol]:list-decimal [&_ol]:ps-6 [&_ul]:list-disc [&_ul]:ps-6";
|
|
502
458
|
|
|
@@ -520,7 +476,7 @@ var markdownSegments = ({
|
|
|
520
476
|
};
|
|
521
477
|
|
|
522
478
|
// ../../src/components/markdown/react.tsx
|
|
523
|
-
import { jsx as
|
|
479
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
524
480
|
var MarkdownContent = ({
|
|
525
481
|
classes,
|
|
526
482
|
className,
|
|
@@ -532,13 +488,13 @@ var MarkdownContent = ({
|
|
|
532
488
|
const content = [];
|
|
533
489
|
for (const segment of markdownSegments({ html, codeBlocks })) {
|
|
534
490
|
const { block, index } = segment;
|
|
535
|
-
content.push(/* @__PURE__ */
|
|
491
|
+
content.push(/* @__PURE__ */ jsx3("div", {
|
|
536
492
|
dangerouslySetInnerHTML: { __html: segment.html }
|
|
537
493
|
}, `html-${index}`));
|
|
538
494
|
if (block)
|
|
539
|
-
content.push(/* @__PURE__ */
|
|
495
|
+
content.push(/* @__PURE__ */ jsx3("div", {
|
|
540
496
|
className: "my-5",
|
|
541
|
-
children: /* @__PURE__ */
|
|
497
|
+
children: /* @__PURE__ */ jsx3(CodeBlock, {
|
|
542
498
|
code: block.code,
|
|
543
499
|
language: block.language,
|
|
544
500
|
locale,
|
|
@@ -546,887 +502,85 @@ var MarkdownContent = ({
|
|
|
546
502
|
})
|
|
547
503
|
}, `code-${index}`));
|
|
548
504
|
}
|
|
549
|
-
return /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
550
506
|
className: cn(classes?.root ?? markdownClass, className),
|
|
551
507
|
children: content
|
|
552
508
|
});
|
|
553
509
|
};
|
|
554
|
-
// ../../src/components/
|
|
555
|
-
import {
|
|
556
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
557
|
-
var alertVariants = cva2("group/alert relative grid w-full gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
558
|
-
variants: {
|
|
559
|
-
variant: {
|
|
560
|
-
default: "bg-card text-card-foreground",
|
|
561
|
-
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
defaultVariants: {
|
|
565
|
-
variant: "default"
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
function Alert({
|
|
569
|
-
className,
|
|
570
|
-
variant,
|
|
571
|
-
...props
|
|
572
|
-
}) {
|
|
573
|
-
return /* @__PURE__ */ jsx5("div", {
|
|
574
|
-
"data-slot": "alert",
|
|
575
|
-
role: "alert",
|
|
576
|
-
className: cn(alertVariants({ variant }), className),
|
|
577
|
-
...props
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
function AlertTitle({ className, ...props }) {
|
|
581
|
-
return /* @__PURE__ */ jsx5("div", {
|
|
582
|
-
"data-slot": "alert-title",
|
|
583
|
-
className: cn("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", className),
|
|
584
|
-
...props
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
function AlertDescription({
|
|
588
|
-
className,
|
|
589
|
-
...props
|
|
590
|
-
}) {
|
|
591
|
-
return /* @__PURE__ */ jsx5("div", {
|
|
592
|
-
"data-slot": "alert-description",
|
|
593
|
-
className: cn("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
|
|
594
|
-
...props
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
// ../../src/components/ui/attachment.tsx
|
|
599
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
600
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
601
|
-
import { cva as cva3 } from "class-variance-authority";
|
|
602
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
603
|
-
var attachmentVariants = cva3("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", {
|
|
604
|
-
variants: {
|
|
605
|
-
size: {
|
|
606
|
-
default: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
|
|
607
|
-
sm: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",
|
|
608
|
-
xs: "gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1"
|
|
609
|
-
},
|
|
610
|
-
orientation: {
|
|
611
|
-
horizontal: "min-w-40 items-center",
|
|
612
|
-
vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
function Attachment({
|
|
617
|
-
className,
|
|
618
|
-
state = "done",
|
|
619
|
-
size = "default",
|
|
620
|
-
orientation = "horizontal",
|
|
621
|
-
...props
|
|
622
|
-
}) {
|
|
623
|
-
return /* @__PURE__ */ jsx6("div", {
|
|
624
|
-
"data-slot": "attachment",
|
|
625
|
-
"data-state": state,
|
|
626
|
-
"data-size": size,
|
|
627
|
-
"data-orientation": orientation,
|
|
628
|
-
className: cn(attachmentVariants({ size, orientation }), className),
|
|
629
|
-
...props
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
var attachmentMediaVariants = cva3("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", {
|
|
633
|
-
variants: {
|
|
634
|
-
variant: {
|
|
635
|
-
icon: "",
|
|
636
|
-
image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
defaultVariants: {
|
|
640
|
-
variant: "icon"
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
function AttachmentMedia({
|
|
644
|
-
className,
|
|
645
|
-
variant = "icon",
|
|
646
|
-
...props
|
|
647
|
-
}) {
|
|
648
|
-
return /* @__PURE__ */ jsx6("div", {
|
|
649
|
-
"data-slot": "attachment-media",
|
|
650
|
-
"data-variant": variant,
|
|
651
|
-
className: cn(attachmentMediaVariants({ variant }), className),
|
|
652
|
-
...props
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
function AttachmentContent({
|
|
656
|
-
className,
|
|
657
|
-
...props
|
|
658
|
-
}) {
|
|
659
|
-
return /* @__PURE__ */ jsx6("div", {
|
|
660
|
-
"data-slot": "attachment-content",
|
|
661
|
-
className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
662
|
-
...props
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
function AttachmentTitle({
|
|
666
|
-
className,
|
|
667
|
-
...props
|
|
668
|
-
}) {
|
|
669
|
-
return /* @__PURE__ */ jsx6("span", {
|
|
670
|
-
"data-slot": "attachment-title",
|
|
671
|
-
className: cn("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
672
|
-
...props
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
function AttachmentActions({
|
|
676
|
-
className,
|
|
677
|
-
...props
|
|
678
|
-
}) {
|
|
679
|
-
return /* @__PURE__ */ jsx6("div", {
|
|
680
|
-
"data-slot": "attachment-actions",
|
|
681
|
-
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
682
|
-
...props
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
function AttachmentAction({
|
|
686
|
-
className,
|
|
687
|
-
variant,
|
|
688
|
-
size = "icon-xs",
|
|
689
|
-
...props
|
|
690
|
-
}) {
|
|
691
|
-
return /* @__PURE__ */ jsx6(Button, {
|
|
692
|
-
"data-slot": "attachment-action",
|
|
693
|
-
variant: variant ?? "ghost",
|
|
694
|
-
size,
|
|
695
|
-
className: cn(className),
|
|
696
|
-
...props
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
// ../../src/components/ui/badge.tsx
|
|
701
|
-
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
702
|
-
import { useRender as useRender2 } from "@base-ui/react/use-render";
|
|
703
|
-
import { cva as cva4 } from "class-variance-authority";
|
|
704
|
-
var badgeVariants = cva4("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
705
|
-
variants: {
|
|
706
|
-
variant: {
|
|
707
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
708
|
-
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
709
|
-
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
710
|
-
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
711
|
-
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
712
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
defaultVariants: {
|
|
716
|
-
variant: "default"
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
function Badge({
|
|
720
|
-
className,
|
|
721
|
-
variant = "default",
|
|
722
|
-
render,
|
|
723
|
-
...props
|
|
724
|
-
}) {
|
|
725
|
-
return useRender2({
|
|
726
|
-
defaultTagName: "span",
|
|
727
|
-
props: mergeProps2({
|
|
728
|
-
className: cn(badgeVariants({ variant }), className)
|
|
729
|
-
}, props),
|
|
730
|
-
render,
|
|
731
|
-
state: {
|
|
732
|
-
slot: "badge",
|
|
733
|
-
variant
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
// ../../src/components/ui/bubble.tsx
|
|
739
|
-
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
740
|
-
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
741
|
-
import { cva as cva5 } from "class-variance-authority";
|
|
742
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
743
|
-
var bubbleVariants = cva5("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
|
|
744
|
-
variants: {
|
|
745
|
-
variant: {
|
|
746
|
-
default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
|
|
747
|
-
secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
|
|
748
|
-
muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
|
|
749
|
-
tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
|
|
750
|
-
outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
|
|
751
|
-
ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
|
|
752
|
-
destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
defaultVariants: {
|
|
756
|
-
variant: "default"
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
function Bubble({
|
|
760
|
-
variant = "default",
|
|
761
|
-
align = "start",
|
|
762
|
-
className,
|
|
763
|
-
...props
|
|
764
|
-
}) {
|
|
765
|
-
return /* @__PURE__ */ jsx7("div", {
|
|
766
|
-
"data-slot": "bubble",
|
|
767
|
-
"data-variant": variant,
|
|
768
|
-
"data-align": align,
|
|
769
|
-
className: cn(bubbleVariants({ variant }), className),
|
|
770
|
-
...props
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
function BubbleContent({
|
|
774
|
-
className,
|
|
775
|
-
render,
|
|
776
|
-
...props
|
|
777
|
-
}) {
|
|
778
|
-
return useRender3({
|
|
779
|
-
defaultTagName: "div",
|
|
780
|
-
props: mergeProps3({
|
|
781
|
-
className: cn("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", className)
|
|
782
|
-
}, props),
|
|
783
|
-
render,
|
|
784
|
-
state: {
|
|
785
|
-
slot: "bubble-content"
|
|
786
|
-
}
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
var bubbleReactionsVariants = cva5("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
|
|
790
|
-
variants: {
|
|
791
|
-
side: {
|
|
792
|
-
top: "top-0 -translate-y-3/4",
|
|
793
|
-
bottom: "bottom-0 translate-y-3/4"
|
|
794
|
-
},
|
|
795
|
-
align: {
|
|
796
|
-
start: "left-3",
|
|
797
|
-
end: "right-3"
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
defaultVariants: {
|
|
801
|
-
side: "bottom",
|
|
802
|
-
align: "end"
|
|
803
|
-
}
|
|
804
|
-
});
|
|
805
|
-
|
|
806
|
-
// ../../src/components/ui/command.tsx
|
|
807
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
808
|
-
import { SearchIcon } from "lucide-react";
|
|
809
|
-
|
|
810
|
-
// ../../src/components/ui/dialog.tsx
|
|
811
|
-
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
812
|
-
import { cn as cn2 } from "cn";
|
|
813
|
-
import { XIcon } from "lucide-react";
|
|
814
|
-
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
815
|
-
function Dialog({ ...props }) {
|
|
816
|
-
return /* @__PURE__ */ jsx8(DialogPrimitive.Root, {
|
|
817
|
-
"data-slot": "dialog",
|
|
818
|
-
...props
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
function DialogTrigger({ ...props }) {
|
|
822
|
-
return /* @__PURE__ */ jsx8(DialogPrimitive.Trigger, {
|
|
823
|
-
"data-slot": "dialog-trigger",
|
|
824
|
-
...props
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
function DialogPortal({ ...props }) {
|
|
828
|
-
return /* @__PURE__ */ jsx8(DialogPrimitive.Portal, {
|
|
829
|
-
"data-slot": "dialog-portal",
|
|
830
|
-
...props
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
function DialogClose({ ...props }) {
|
|
834
|
-
return /* @__PURE__ */ jsx8(DialogPrimitive.Close, {
|
|
835
|
-
"data-slot": "dialog-close",
|
|
836
|
-
...props
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
function DialogHeader({ className, ...props }) {
|
|
840
|
-
return /* @__PURE__ */ jsx8("div", {
|
|
841
|
-
"data-slot": "dialog-header",
|
|
842
|
-
className: cn2("flex flex-col gap-2", className),
|
|
843
|
-
...props
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
function DialogTitle({ className, ...props }) {
|
|
847
|
-
return /* @__PURE__ */ jsx8(DialogPrimitive.Title, {
|
|
848
|
-
"data-slot": "dialog-title",
|
|
849
|
-
className: cn2("leading-none font-medium", className),
|
|
850
|
-
...props
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
// ../../src/components/ui/command.tsx
|
|
855
|
-
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
856
|
-
function Command2({
|
|
857
|
-
className,
|
|
858
|
-
...props
|
|
859
|
-
}) {
|
|
860
|
-
return /* @__PURE__ */ jsx9(CommandPrimitive, {
|
|
861
|
-
"data-slot": "command",
|
|
862
|
-
className: cn("flex size-full flex-col overflow-hidden rounded-xl bg-popover p-1 text-popover-foreground", className),
|
|
863
|
-
...props
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
function CommandList({
|
|
867
|
-
className,
|
|
868
|
-
...props
|
|
869
|
-
}) {
|
|
870
|
-
return /* @__PURE__ */ jsx9(CommandPrimitive.List, {
|
|
871
|
-
"data-slot": "command-list",
|
|
872
|
-
className: cn("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
|
|
873
|
-
...props
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
function CommandEmpty({
|
|
877
|
-
className,
|
|
878
|
-
...props
|
|
879
|
-
}) {
|
|
880
|
-
return /* @__PURE__ */ jsx9(CommandPrimitive.Empty, {
|
|
881
|
-
"data-slot": "command-empty",
|
|
882
|
-
className: cn("py-6 text-center text-sm", className),
|
|
883
|
-
...props
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
function CommandGroup({
|
|
887
|
-
className,
|
|
888
|
-
...props
|
|
889
|
-
}) {
|
|
890
|
-
return /* @__PURE__ */ jsx9(CommandPrimitive.Group, {
|
|
891
|
-
"data-slot": "command-group",
|
|
892
|
-
className: cn("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", className),
|
|
893
|
-
...props
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
function CommandItem({
|
|
897
|
-
className,
|
|
898
|
-
...props
|
|
899
|
-
}) {
|
|
900
|
-
return /* @__PURE__ */ jsx9(CommandPrimitive.Item, {
|
|
901
|
-
"data-slot": "command-item",
|
|
902
|
-
className: cn("group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
903
|
-
...props
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
// ../../src/components/ui/empty.tsx
|
|
908
|
-
import { cva as cva6 } from "class-variance-authority";
|
|
909
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
910
|
-
function Empty({ className, ...props }) {
|
|
911
|
-
return /* @__PURE__ */ jsx10("div", {
|
|
912
|
-
"data-slot": "empty",
|
|
913
|
-
className: cn("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance", className),
|
|
914
|
-
...props
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
function EmptyHeader({ className, ...props }) {
|
|
918
|
-
return /* @__PURE__ */ jsx10("div", {
|
|
919
|
-
"data-slot": "empty-header",
|
|
920
|
-
className: cn("flex max-w-sm flex-col items-center gap-2", className),
|
|
921
|
-
...props
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
var emptyMediaVariants = cva6("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
925
|
-
variants: {
|
|
926
|
-
variant: {
|
|
927
|
-
default: "bg-transparent",
|
|
928
|
-
icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
|
|
929
|
-
}
|
|
930
|
-
},
|
|
931
|
-
defaultVariants: {
|
|
932
|
-
variant: "default"
|
|
933
|
-
}
|
|
934
|
-
});
|
|
935
|
-
function EmptyMedia({
|
|
936
|
-
className,
|
|
937
|
-
variant = "default",
|
|
938
|
-
...props
|
|
939
|
-
}) {
|
|
940
|
-
return /* @__PURE__ */ jsx10("div", {
|
|
941
|
-
"data-slot": "empty-icon",
|
|
942
|
-
"data-variant": variant,
|
|
943
|
-
className: cn(emptyMediaVariants({ variant, className })),
|
|
944
|
-
...props
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
function EmptyTitle({ className, ...props }) {
|
|
948
|
-
return /* @__PURE__ */ jsx10("div", {
|
|
949
|
-
"data-slot": "empty-title",
|
|
950
|
-
className: cn("text-lg font-medium tracking-tight", className),
|
|
951
|
-
...props
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
function EmptyDescription({ className, ...props }) {
|
|
955
|
-
return /* @__PURE__ */ jsx10("div", {
|
|
956
|
-
"data-slot": "empty-description",
|
|
957
|
-
className: cn("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
958
|
-
...props
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
// ../../src/components/ui/input-group.tsx
|
|
963
|
-
import { cva as cva7 } from "class-variance-authority";
|
|
964
|
-
|
|
965
|
-
// ../../src/components/ui/input.tsx
|
|
966
|
-
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
967
|
-
|
|
968
|
-
// ../../src/components/ui/textarea.tsx
|
|
969
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
970
|
-
function Textarea({ className, ...props }) {
|
|
971
|
-
return /* @__PURE__ */ jsx11("textarea", {
|
|
972
|
-
"data-slot": "textarea",
|
|
973
|
-
className: cn("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
|
|
974
|
-
...props
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
// ../../src/components/ui/input-group.tsx
|
|
979
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
980
|
-
function InputGroup({ className, ...props }) {
|
|
981
|
-
return /* @__PURE__ */ jsx12("div", {
|
|
982
|
-
"data-slot": "input-group",
|
|
983
|
-
role: "group",
|
|
984
|
-
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
985
|
-
...props
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
var inputGroupAddonVariants = cva7("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
989
|
-
variants: {
|
|
990
|
-
align: {
|
|
991
|
-
"inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
|
|
992
|
-
"inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
|
|
993
|
-
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
994
|
-
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
defaultVariants: { align: "inline-start" }
|
|
998
|
-
});
|
|
999
|
-
function InputGroupAddon({
|
|
1000
|
-
className,
|
|
1001
|
-
align = "inline-start",
|
|
1002
|
-
...props
|
|
1003
|
-
}) {
|
|
1004
|
-
return /* @__PURE__ */ jsx12("div", {
|
|
1005
|
-
role: "group",
|
|
1006
|
-
"data-slot": "input-group-addon",
|
|
1007
|
-
"data-align": align,
|
|
1008
|
-
className: cn(inputGroupAddonVariants({ align }), className),
|
|
1009
|
-
onClick: (event) => {
|
|
1010
|
-
if (event.target instanceof HTMLElement && event.target.closest("button")) {
|
|
1011
|
-
return;
|
|
1012
|
-
}
|
|
1013
|
-
event.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
1014
|
-
},
|
|
1015
|
-
...props
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
var inputGroupButtonVariants = cva7("flex items-center gap-2 text-sm shadow-none", {
|
|
1019
|
-
variants: {
|
|
1020
|
-
size: {
|
|
1021
|
-
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
1022
|
-
sm: "",
|
|
1023
|
-
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
1024
|
-
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
defaultVariants: { size: "xs" }
|
|
1028
|
-
});
|
|
1029
|
-
function InputGroupButton({
|
|
1030
|
-
className,
|
|
1031
|
-
type = "button",
|
|
1032
|
-
variant = "ghost",
|
|
1033
|
-
size = "xs",
|
|
1034
|
-
...props
|
|
1035
|
-
}) {
|
|
1036
|
-
return /* @__PURE__ */ jsx12(Button, {
|
|
1037
|
-
type,
|
|
1038
|
-
"data-size": size,
|
|
1039
|
-
variant,
|
|
1040
|
-
className: cn(inputGroupButtonVariants({ size }), className),
|
|
1041
|
-
...props
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
function InputGroupTextarea({
|
|
1045
|
-
className,
|
|
1046
|
-
...props
|
|
1047
|
-
}) {
|
|
1048
|
-
return /* @__PURE__ */ jsx12(Textarea, {
|
|
1049
|
-
"data-slot": "input-group-control",
|
|
1050
|
-
className: cn("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
1051
|
-
...props
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
// ../../src/components/ui/item.tsx
|
|
1056
|
-
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
1057
|
-
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
1058
|
-
import { cva as cva8 } from "class-variance-authority";
|
|
1059
|
-
import { cn as cn3 } from "cn";
|
|
1060
|
-
|
|
1061
|
-
// ../../src/components/ui/separator.tsx
|
|
1062
|
-
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1063
|
-
|
|
1064
|
-
// ../../src/components/ui/item.tsx
|
|
1065
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1066
|
-
var itemVariants = cva8("group/item flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
1067
|
-
variants: {
|
|
1068
|
-
variant: {
|
|
1069
|
-
default: "border-transparent",
|
|
1070
|
-
outline: "border-border",
|
|
1071
|
-
muted: "border-transparent bg-muted/50"
|
|
1072
|
-
},
|
|
1073
|
-
size: {
|
|
1074
|
-
default: "gap-3.5 px-4 py-3.5",
|
|
1075
|
-
sm: "gap-2.5 px-3 py-2.5",
|
|
1076
|
-
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
|
|
1077
|
-
}
|
|
1078
|
-
},
|
|
1079
|
-
defaultVariants: {
|
|
1080
|
-
variant: "default",
|
|
1081
|
-
size: "default"
|
|
1082
|
-
}
|
|
1083
|
-
});
|
|
1084
|
-
function Item({
|
|
1085
|
-
className,
|
|
1086
|
-
variant = "default",
|
|
1087
|
-
size = "default",
|
|
1088
|
-
render,
|
|
1089
|
-
...props
|
|
1090
|
-
}) {
|
|
1091
|
-
return useRender4({
|
|
1092
|
-
defaultTagName: "div",
|
|
1093
|
-
props: mergeProps4({
|
|
1094
|
-
className: cn3(itemVariants({ variant, size, className }))
|
|
1095
|
-
}, props),
|
|
1096
|
-
render,
|
|
1097
|
-
state: {
|
|
1098
|
-
slot: "item",
|
|
1099
|
-
variant,
|
|
1100
|
-
size
|
|
1101
|
-
}
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
var itemMediaVariants = cva8("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
1105
|
-
variants: {
|
|
1106
|
-
variant: {
|
|
1107
|
-
default: "bg-transparent",
|
|
1108
|
-
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
1109
|
-
image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
defaultVariants: {
|
|
1113
|
-
variant: "default"
|
|
1114
|
-
}
|
|
1115
|
-
});
|
|
1116
|
-
function ItemMedia({
|
|
1117
|
-
className,
|
|
1118
|
-
variant = "default",
|
|
1119
|
-
...props
|
|
1120
|
-
}) {
|
|
1121
|
-
return /* @__PURE__ */ jsx13("div", {
|
|
1122
|
-
"data-slot": "item-media",
|
|
1123
|
-
"data-variant": variant,
|
|
1124
|
-
className: cn3(itemMediaVariants({ variant, className })),
|
|
1125
|
-
...props
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
function ItemContent({ className, ...props }) {
|
|
1129
|
-
return /* @__PURE__ */ jsx13("div", {
|
|
1130
|
-
"data-slot": "item-content",
|
|
1131
|
-
className: cn3("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className),
|
|
1132
|
-
...props
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
function ItemTitle({ className, ...props }) {
|
|
1136
|
-
return /* @__PURE__ */ jsx13("div", {
|
|
1137
|
-
"data-slot": "item-title",
|
|
1138
|
-
className: cn3("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", className),
|
|
1139
|
-
...props
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
function ItemDescription({ className, ...props }) {
|
|
1143
|
-
return /* @__PURE__ */ jsx13("p", {
|
|
1144
|
-
"data-slot": "item-description",
|
|
1145
|
-
className: cn3("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
1146
|
-
...props
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
function ItemActions({ className, ...props }) {
|
|
1150
|
-
return /* @__PURE__ */ jsx13("div", {
|
|
1151
|
-
"data-slot": "item-actions",
|
|
1152
|
-
className: cn3("flex items-center gap-2", className),
|
|
1153
|
-
...props
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
function ItemFooter({ className, ...props }) {
|
|
1157
|
-
return /* @__PURE__ */ jsx13("div", {
|
|
1158
|
-
"data-slot": "item-footer",
|
|
1159
|
-
className: cn3("flex basis-full items-center justify-between gap-2", className),
|
|
1160
|
-
...props
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
// ../../src/components/ui/message.tsx
|
|
1165
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1166
|
-
function Message({
|
|
1167
|
-
className,
|
|
1168
|
-
align = "start",
|
|
1169
|
-
...props
|
|
1170
|
-
}) {
|
|
1171
|
-
return /* @__PURE__ */ jsx14("div", {
|
|
1172
|
-
"data-slot": "message",
|
|
1173
|
-
"data-align": align,
|
|
1174
|
-
className: cn("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse", className),
|
|
1175
|
-
...props
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
function MessageContent({ className, ...props }) {
|
|
1179
|
-
return /* @__PURE__ */ jsx14("div", {
|
|
1180
|
-
"data-slot": "message-content",
|
|
1181
|
-
className: cn("flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end", className),
|
|
1182
|
-
...props
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
// ../../src/components/ui/message-scroller.tsx
|
|
510
|
+
// ../../src/components/agent/react.tsx
|
|
511
|
+
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
1187
512
|
import {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
variant,
|
|
1260
|
-
size
|
|
1261
|
-
}),
|
|
1262
|
-
...props,
|
|
1263
|
-
children: children ?? /* @__PURE__ */ jsxs5(Fragment, {
|
|
1264
|
-
children: [
|
|
1265
|
-
/* @__PURE__ */ jsx15(ArrowDownIcon, {}),
|
|
1266
|
-
/* @__PURE__ */ jsx15("span", {
|
|
1267
|
-
className: "sr-only",
|
|
1268
|
-
children: direction === "end" ? "Scroll to end" : "Scroll to start"
|
|
1269
|
-
})
|
|
1270
|
-
]
|
|
1271
|
-
})
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
// ../../src/components/ui/popover.tsx
|
|
1276
|
-
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
1277
|
-
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1278
|
-
function Popover({ ...props }) {
|
|
1279
|
-
return /* @__PURE__ */ jsx16(PopoverPrimitive.Root, {
|
|
1280
|
-
"data-slot": "popover",
|
|
1281
|
-
...props
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
function PopoverTrigger({ ...props }) {
|
|
1285
|
-
return /* @__PURE__ */ jsx16(PopoverPrimitive.Trigger, {
|
|
1286
|
-
"data-slot": "popover-trigger",
|
|
1287
|
-
...props
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
function PopoverContent({
|
|
1291
|
-
className,
|
|
1292
|
-
align = "center",
|
|
1293
|
-
alignOffset = 0,
|
|
1294
|
-
side = "bottom",
|
|
1295
|
-
sideOffset = 4,
|
|
1296
|
-
...props
|
|
1297
|
-
}) {
|
|
1298
|
-
return /* @__PURE__ */ jsx16(PopoverPrimitive.Portal, {
|
|
1299
|
-
children: /* @__PURE__ */ jsx16(PopoverPrimitive.Positioner, {
|
|
1300
|
-
align,
|
|
1301
|
-
alignOffset,
|
|
1302
|
-
side,
|
|
1303
|
-
sideOffset,
|
|
1304
|
-
className: "isolate z-50",
|
|
1305
|
-
children: /* @__PURE__ */ jsx16(PopoverPrimitive.Popup, {
|
|
1306
|
-
"data-slot": "popover-content",
|
|
1307
|
-
className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
1308
|
-
...props
|
|
1309
|
-
})
|
|
1310
|
-
})
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
// ../../src/components/ui/trace.tsx
|
|
1315
|
-
import { cn as cn4 } from "cn";
|
|
1316
|
-
|
|
1317
|
-
// ../../src/components/ui/collapsible.tsx
|
|
1318
|
-
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
1319
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1320
|
-
function Collapsible({ ...props }) {
|
|
1321
|
-
return /* @__PURE__ */ jsx17(CollapsiblePrimitive.Root, {
|
|
1322
|
-
"data-slot": "collapsible",
|
|
1323
|
-
...props
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
function CollapsibleTrigger({ ...props }) {
|
|
1327
|
-
return /* @__PURE__ */ jsx17(CollapsiblePrimitive.Trigger, {
|
|
1328
|
-
"data-slot": "collapsible-trigger",
|
|
1329
|
-
...props
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
function CollapsibleContent({ ...props }) {
|
|
1333
|
-
return /* @__PURE__ */ jsx17(CollapsiblePrimitive.Panel, {
|
|
1334
|
-
"data-slot": "collapsible-content",
|
|
1335
|
-
...props
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
// ../../src/components/ui/trace.tsx
|
|
1340
|
-
import { ChevronRightIcon } from "lucide-react";
|
|
1341
|
-
import { jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1342
|
-
function Trace({ className, ...props }) {
|
|
1343
|
-
return /* @__PURE__ */ jsx18("div", {
|
|
1344
|
-
"data-slot": "trace",
|
|
1345
|
-
className: cn4("flex w-full min-w-0 flex-col gap-2 *:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit *:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0 *:has-[>[data-slot=trace-line]]:rounded-md *:has-[>[data-slot=trace-line]]:text-left *:has-[>[data-slot=trace-line]]:outline-none *:has-[>[data-slot=trace-line]]:focus-visible:ring-3 *:has-[>[data-slot=trace-line]]:focus-visible:ring-ring/50", className),
|
|
1346
|
-
...props
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
function TraceLine({
|
|
1350
|
-
className,
|
|
1351
|
-
status,
|
|
1352
|
-
...props
|
|
1353
|
-
}) {
|
|
1354
|
-
return /* @__PURE__ */ jsx18("span", {
|
|
1355
|
-
"data-slot": "trace-line",
|
|
1356
|
-
"data-status": status,
|
|
1357
|
-
className: cn4("flex w-fit max-w-full min-w-0 items-center gap-2 text-sm text-muted-foreground transition-colors in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground data-[status=error]:text-destructive data-[status=error]:in-[a:hover,button:hover]:text-destructive data-[status=pending]:opacity-60 data-[status=running]:*:data-[slot=trace-title]:shimmer", className),
|
|
1358
|
-
...props
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
function TraceIcon({ className, ...props }) {
|
|
1362
|
-
return /* @__PURE__ */ jsx18("span", {
|
|
1363
|
-
"data-slot": "trace-icon",
|
|
1364
|
-
"aria-hidden": "true",
|
|
1365
|
-
className: cn4("flex size-4 shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [[data-slot=trace-title]~&]:-ml-1", className),
|
|
1366
|
-
...props
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
function TraceTitle({ className, ...props }) {
|
|
1370
|
-
return /* @__PURE__ */ jsx18("span", {
|
|
1371
|
-
"data-slot": "trace-title",
|
|
1372
|
-
className: cn4("min-w-0 truncate motion-reduce:shimmer-none", className),
|
|
1373
|
-
...props
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
function TraceDescription({
|
|
1377
|
-
className,
|
|
1378
|
-
...props
|
|
1379
|
-
}) {
|
|
1380
|
-
return /* @__PURE__ */ jsx18("span", {
|
|
1381
|
-
"data-slot": "trace-description",
|
|
1382
|
-
className: cn4("shrink-0 text-muted-foreground/70 tabular-nums", className),
|
|
1383
|
-
...props
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
function TraceCollapsible({
|
|
1387
|
-
className,
|
|
1388
|
-
...props
|
|
1389
|
-
}) {
|
|
1390
|
-
return /* @__PURE__ */ jsx18(Collapsible, {
|
|
1391
|
-
"data-slot": "trace-collapsible",
|
|
1392
|
-
className: cn4("flex w-full min-w-0 flex-col", className),
|
|
1393
|
-
...props
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
function TraceCollapsibleTrigger({
|
|
1397
|
-
className,
|
|
1398
|
-
children,
|
|
1399
|
-
...props
|
|
1400
|
-
}) {
|
|
1401
|
-
return /* @__PURE__ */ jsxs6(CollapsibleTrigger, {
|
|
1402
|
-
"data-slot": "trace-collapsible-trigger",
|
|
1403
|
-
className: cn4("group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1 rounded-md text-left text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 has-[[data-status=error]]:text-destructive", className),
|
|
1404
|
-
...props,
|
|
1405
|
-
children: [
|
|
1406
|
-
children,
|
|
1407
|
-
/* @__PURE__ */ jsx18(TraceIcon, {
|
|
1408
|
-
className: "transition-transform group-aria-expanded/trace-collapsible-trigger:rotate-90",
|
|
1409
|
-
children: /* @__PURE__ */ jsx18(ChevronRightIcon, {})
|
|
1410
|
-
})
|
|
1411
|
-
]
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
function TraceCollapsibleContent({
|
|
1415
|
-
className,
|
|
1416
|
-
children,
|
|
1417
|
-
...props
|
|
1418
|
-
}) {
|
|
1419
|
-
return /* @__PURE__ */ jsx18(CollapsibleContent, {
|
|
1420
|
-
"data-slot": "trace-collapsible-content",
|
|
1421
|
-
className: "h-(--collapsible-panel-height) min-w-0 overflow-hidden transition-[height] duration-200 data-ending-style:h-0 data-starting-style:h-0",
|
|
1422
|
-
...props,
|
|
1423
|
-
children: /* @__PURE__ */ jsx18("div", {
|
|
1424
|
-
"data-slot": "trace-collapsible-content-inner",
|
|
1425
|
-
className: cn4("mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l pr-1 pl-4 leading-relaxed wrap-break-word text-muted-foreground", className),
|
|
1426
|
-
children
|
|
1427
|
-
})
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
513
|
+
Attachment,
|
|
514
|
+
AttachmentAction,
|
|
515
|
+
AttachmentActions,
|
|
516
|
+
AttachmentContent,
|
|
517
|
+
AttachmentMedia,
|
|
518
|
+
AttachmentTitle
|
|
519
|
+
} from "@/components/ui/attachment";
|
|
520
|
+
import { Badge } from "@/components/ui/badge";
|
|
521
|
+
import { Bubble, BubbleContent } from "@/components/ui/bubble";
|
|
522
|
+
import { Button as Button2 } from "@/components/ui/button";
|
|
523
|
+
import {
|
|
524
|
+
Command as Command3,
|
|
525
|
+
CommandEmpty,
|
|
526
|
+
CommandGroup,
|
|
527
|
+
CommandItem,
|
|
528
|
+
CommandList
|
|
529
|
+
} from "@/components/ui/command";
|
|
530
|
+
import {
|
|
531
|
+
Dialog,
|
|
532
|
+
DialogClose,
|
|
533
|
+
DialogHeader,
|
|
534
|
+
DialogPortal,
|
|
535
|
+
DialogTitle,
|
|
536
|
+
DialogTrigger
|
|
537
|
+
} from "@/components/ui/dialog";
|
|
538
|
+
import {
|
|
539
|
+
Empty,
|
|
540
|
+
EmptyDescription,
|
|
541
|
+
EmptyHeader,
|
|
542
|
+
EmptyMedia,
|
|
543
|
+
EmptyTitle
|
|
544
|
+
} from "@/components/ui/empty";
|
|
545
|
+
import {
|
|
546
|
+
InputGroup,
|
|
547
|
+
InputGroupAddon,
|
|
548
|
+
InputGroupButton,
|
|
549
|
+
InputGroupTextarea
|
|
550
|
+
} from "@/components/ui/input-group";
|
|
551
|
+
import {
|
|
552
|
+
Item,
|
|
553
|
+
ItemActions,
|
|
554
|
+
ItemContent,
|
|
555
|
+
ItemDescription,
|
|
556
|
+
ItemFooter,
|
|
557
|
+
ItemMedia,
|
|
558
|
+
ItemTitle
|
|
559
|
+
} from "@/components/ui/item";
|
|
560
|
+
import { Message, MessageContent } from "@/components/ui/message";
|
|
561
|
+
import {
|
|
562
|
+
MessageScroller,
|
|
563
|
+
MessageScrollerButton,
|
|
564
|
+
MessageScrollerContent,
|
|
565
|
+
MessageScrollerItem,
|
|
566
|
+
MessageScrollerProvider,
|
|
567
|
+
MessageScrollerViewport
|
|
568
|
+
} from "@/components/ui/message-scroller";
|
|
569
|
+
import {
|
|
570
|
+
Popover,
|
|
571
|
+
PopoverContent,
|
|
572
|
+
PopoverTrigger
|
|
573
|
+
} from "@/components/ui/popover";
|
|
574
|
+
import {
|
|
575
|
+
Trace,
|
|
576
|
+
TraceCollapsible,
|
|
577
|
+
TraceCollapsibleContent,
|
|
578
|
+
TraceCollapsibleTrigger,
|
|
579
|
+
TraceDescription,
|
|
580
|
+
TraceIcon,
|
|
581
|
+
TraceLine,
|
|
582
|
+
TraceTitle
|
|
583
|
+
} from "@/components/ui/trace";
|
|
1430
584
|
|
|
1431
585
|
// ../../src/services/agent/schema.ts
|
|
1432
586
|
import { Schema as Schema4 } from "effect";
|
|
@@ -1517,7 +671,7 @@ import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/
|
|
|
1517
671
|
// ../../src/components/agent/index.ts
|
|
1518
672
|
import { Context, Effect as Effect3, Layer as Layer2, Redacted as Redacted3, Schema as Schema6, Stream as Stream2 } from "effect";
|
|
1519
673
|
import { AtomRegistry } from "effect/reactivity";
|
|
1520
|
-
import { Command as
|
|
674
|
+
import { Command as Command2, Component as Component3, Subscription, UiSchema as UiSchema2 } from "effect/ui";
|
|
1521
675
|
|
|
1522
676
|
// ../../src/components/agent/schema.ts
|
|
1523
677
|
import { Schema as Schema5 } from "effect";
|
|
@@ -1678,7 +832,7 @@ var AgentWidgetMessage = UiSchema2.TaggedEnum({
|
|
|
1678
832
|
Delivered: { success: Schema6.Boolean }
|
|
1679
833
|
}).annotate({ identifier: "AgentWidgetMessage" });
|
|
1680
834
|
|
|
1681
|
-
class DispatchIntent extends
|
|
835
|
+
class DispatchIntent extends Command2.Service()("agent/DispatchIntent", { args: { intent: AgentWidgetIntentSchema }, success: AgentWidgetMessage }) {
|
|
1682
836
|
}
|
|
1683
837
|
var agentWidgetOptions = {
|
|
1684
838
|
name: "AgentWidget",
|
|
@@ -1779,7 +933,7 @@ var agentWidgetBehaviours = {
|
|
|
1779
933
|
};
|
|
1780
934
|
|
|
1781
935
|
// ../../src/components/agent/react.tsx
|
|
1782
|
-
import { jsx as
|
|
936
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1783
937
|
var messages2 = {
|
|
1784
938
|
en: {
|
|
1785
939
|
codeDescription: (language) => `${language} code`,
|
|
@@ -1842,7 +996,7 @@ var highlightedInput = (input, references) => {
|
|
|
1842
996
|
return input;
|
|
1843
997
|
const mentionPattern = new RegExp(`(${mentions.map(escapeRegExp).join("|")})(?![\\p{L}\\p{N}_-])`, "gu");
|
|
1844
998
|
const mentionSet = new Set(mentions);
|
|
1845
|
-
return input.split(mentionPattern).map((part, index) => mentionSet.has(part) ? /* @__PURE__ */
|
|
999
|
+
return input.split(mentionPattern).map((part, index) => mentionSet.has(part) ? /* @__PURE__ */ jsx4("span", {
|
|
1846
1000
|
className: "bg-primary text-primary-foreground rounded-sm [box-shadow:2px_0_0_var(--primary),-2px_0_0_var(--primary)]",
|
|
1847
1001
|
children: part
|
|
1848
1002
|
}, `${part}:${index}`) : part);
|
|
@@ -1875,13 +1029,13 @@ var ToolInput = ({
|
|
|
1875
1029
|
labels,
|
|
1876
1030
|
locale,
|
|
1877
1031
|
tool
|
|
1878
|
-
}) => /* @__PURE__ */
|
|
1032
|
+
}) => /* @__PURE__ */ jsxs3("div", {
|
|
1879
1033
|
className: "min-w-0 space-y-2",
|
|
1880
1034
|
children: [
|
|
1881
|
-
tool.metadata.description ? /* @__PURE__ */
|
|
1035
|
+
tool.metadata.description ? /* @__PURE__ */ jsx4("p", {
|
|
1882
1036
|
children: tool.metadata.description
|
|
1883
1037
|
}) : null,
|
|
1884
|
-
/* @__PURE__ */
|
|
1038
|
+
/* @__PURE__ */ jsx4(CodeBlock, {
|
|
1885
1039
|
code: agentToolInput(tool.input),
|
|
1886
1040
|
language: "json",
|
|
1887
1041
|
locale,
|
|
@@ -1901,45 +1055,45 @@ var ToolApproval = ({
|
|
|
1901
1055
|
locale,
|
|
1902
1056
|
onApproval,
|
|
1903
1057
|
tool
|
|
1904
|
-
}) => /* @__PURE__ */
|
|
1058
|
+
}) => /* @__PURE__ */ jsxs3(Item, {
|
|
1905
1059
|
variant: "outline",
|
|
1906
1060
|
size: "sm",
|
|
1907
1061
|
role: "group",
|
|
1908
1062
|
"aria-label": tool.metadata.title ?? tool.name,
|
|
1909
1063
|
children: [
|
|
1910
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ jsx4(ItemMedia, {
|
|
1911
1065
|
variant: "icon",
|
|
1912
|
-
children: /* @__PURE__ */
|
|
1066
|
+
children: /* @__PURE__ */ jsx4(WrenchIcon, {})
|
|
1913
1067
|
}),
|
|
1914
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ jsxs3(ItemContent, {
|
|
1915
1069
|
className: "min-w-0",
|
|
1916
1070
|
children: [
|
|
1917
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ jsxs3(ItemTitle, {
|
|
1918
1072
|
className: "line-clamp-none",
|
|
1919
1073
|
children: [
|
|
1920
1074
|
tool.metadata.title ?? tool.name,
|
|
1921
|
-
tool.metadata.destructive ? /* @__PURE__ */
|
|
1075
|
+
tool.metadata.destructive ? /* @__PURE__ */ jsx4(Badge, {
|
|
1922
1076
|
variant: "destructive",
|
|
1923
1077
|
children: labels.approvalDestructiveLabel
|
|
1924
1078
|
}) : null
|
|
1925
1079
|
]
|
|
1926
1080
|
}),
|
|
1927
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ jsx4(ItemDescription, {
|
|
1928
1082
|
className: "line-clamp-none",
|
|
1929
1083
|
children: tool.metadata.destructive ? labels.approvalDestructive : labels.approvalRequired
|
|
1930
1084
|
})
|
|
1931
1085
|
]
|
|
1932
1086
|
}),
|
|
1933
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ jsxs3(ItemActions, {
|
|
1934
1088
|
children: [
|
|
1935
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ jsx4(Button2, {
|
|
1936
1090
|
size: "sm",
|
|
1937
1091
|
variant: tool.metadata.destructive ? "destructive" : "default",
|
|
1938
1092
|
disabled,
|
|
1939
1093
|
onClick: () => onApproval(tool, true),
|
|
1940
1094
|
children: labels.approve
|
|
1941
1095
|
}),
|
|
1942
|
-
/* @__PURE__ */
|
|
1096
|
+
/* @__PURE__ */ jsx4(Button2, {
|
|
1943
1097
|
size: "sm",
|
|
1944
1098
|
variant: "outline",
|
|
1945
1099
|
disabled,
|
|
@@ -1948,20 +1102,20 @@ var ToolApproval = ({
|
|
|
1948
1102
|
})
|
|
1949
1103
|
]
|
|
1950
1104
|
}),
|
|
1951
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ jsx4(ItemFooter, {
|
|
1952
1106
|
className: "block min-w-0",
|
|
1953
|
-
children: /* @__PURE__ */
|
|
1954
|
-
children: /* @__PURE__ */
|
|
1107
|
+
children: /* @__PURE__ */ jsx4(Trace, {
|
|
1108
|
+
children: /* @__PURE__ */ jsxs3(TraceCollapsible, {
|
|
1955
1109
|
children: [
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
-
children: /* @__PURE__ */
|
|
1958
|
-
children: /* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleTrigger, {
|
|
1111
|
+
children: /* @__PURE__ */ jsx4(TraceLine, {
|
|
1112
|
+
children: /* @__PURE__ */ jsx4(TraceTitle, {
|
|
1959
1113
|
children: labels.viewMore
|
|
1960
1114
|
})
|
|
1961
1115
|
})
|
|
1962
1116
|
}),
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
children: /* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleContent, {
|
|
1118
|
+
children: /* @__PURE__ */ jsx4(ToolInput, {
|
|
1965
1119
|
labels,
|
|
1966
1120
|
locale,
|
|
1967
1121
|
tool
|
|
@@ -1981,29 +1135,29 @@ var ToolActivity = ({
|
|
|
1981
1135
|
}) => {
|
|
1982
1136
|
const running = pending && (tool.status === "running" || tool.status === "approved");
|
|
1983
1137
|
const statusLabel = tool.status === "failed" ? labels.toolFailed : tool.status === "denied" ? labels.toolDenied : running ? labels.toolRunning : undefined;
|
|
1984
|
-
const line = /* @__PURE__ */
|
|
1138
|
+
const line = /* @__PURE__ */ jsxs3(TraceLine, {
|
|
1985
1139
|
status: tool.status === "failed" ? "error" : running ? "running" : undefined,
|
|
1986
1140
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
children: /* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ jsx4(TraceIcon, {
|
|
1142
|
+
children: /* @__PURE__ */ jsx4(WrenchIcon, {})
|
|
1989
1143
|
}),
|
|
1990
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ jsx4(TraceTitle, {
|
|
1991
1145
|
children: tool.metadata.title ?? tool.name
|
|
1992
1146
|
}),
|
|
1993
|
-
statusLabel ? /* @__PURE__ */
|
|
1147
|
+
statusLabel ? /* @__PURE__ */ jsx4(TraceDescription, {
|
|
1994
1148
|
children: statusLabel
|
|
1995
1149
|
}) : null
|
|
1996
1150
|
]
|
|
1997
1151
|
});
|
|
1998
1152
|
if (running)
|
|
1999
1153
|
return line;
|
|
2000
|
-
return /* @__PURE__ */
|
|
1154
|
+
return /* @__PURE__ */ jsxs3(TraceCollapsible, {
|
|
2001
1155
|
children: [
|
|
2002
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleTrigger, {
|
|
2003
1157
|
children: line
|
|
2004
1158
|
}),
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
children: /* @__PURE__ */
|
|
1159
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleContent, {
|
|
1160
|
+
children: /* @__PURE__ */ jsx4(ToolInput, {
|
|
2007
1161
|
labels,
|
|
2008
1162
|
locale,
|
|
2009
1163
|
tool
|
|
@@ -2028,47 +1182,47 @@ function ToolActivityLog({
|
|
|
2028
1182
|
const running = pending && approvals.length === 0;
|
|
2029
1183
|
const failed = activity.some((tool) => tool.status === "failed");
|
|
2030
1184
|
if (tools.length === 0) {
|
|
2031
|
-
return /* @__PURE__ */
|
|
2032
|
-
children: /* @__PURE__ */
|
|
1185
|
+
return /* @__PURE__ */ jsx4(Trace, {
|
|
1186
|
+
children: /* @__PURE__ */ jsxs3(TraceLine, {
|
|
2033
1187
|
status: pending ? "running" : undefined,
|
|
2034
1188
|
children: [
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
children: /* @__PURE__ */
|
|
1189
|
+
/* @__PURE__ */ jsx4(TraceIcon, {
|
|
1190
|
+
children: /* @__PURE__ */ jsx4(WrenchIcon, {})
|
|
2037
1191
|
}),
|
|
2038
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ jsx4(TraceTitle, {
|
|
2039
1193
|
children: labels.toolRunning
|
|
2040
1194
|
})
|
|
2041
1195
|
]
|
|
2042
1196
|
})
|
|
2043
1197
|
});
|
|
2044
1198
|
}
|
|
2045
|
-
return /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2046
1200
|
className: "flex flex-col gap-2",
|
|
2047
1201
|
children: [
|
|
2048
|
-
currentTool ? /* @__PURE__ */
|
|
2049
|
-
children: /* @__PURE__ */
|
|
1202
|
+
currentTool ? /* @__PURE__ */ jsx4(Trace, {
|
|
1203
|
+
children: /* @__PURE__ */ jsxs3(TraceCollapsible, {
|
|
2050
1204
|
open: open ?? running,
|
|
2051
1205
|
onOpenChange: setOpen,
|
|
2052
1206
|
children: [
|
|
2053
|
-
/* @__PURE__ */
|
|
2054
|
-
children: /* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleTrigger, {
|
|
1208
|
+
children: /* @__PURE__ */ jsxs3(TraceLine, {
|
|
2055
1209
|
status: failed ? "error" : running ? "running" : undefined,
|
|
2056
1210
|
children: [
|
|
2057
|
-
/* @__PURE__ */
|
|
2058
|
-
children: /* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ jsx4(TraceIcon, {
|
|
1212
|
+
children: /* @__PURE__ */ jsx4(WrenchIcon, {})
|
|
2059
1213
|
}),
|
|
2060
|
-
/* @__PURE__ */
|
|
1214
|
+
/* @__PURE__ */ jsx4(TraceTitle, {
|
|
2061
1215
|
children: approvals.length > 0 || running ? labels.toolActivity : workedSeconds !== undefined ? labels.toolWorked(workedSeconds) : currentTool.metadata.title ?? currentTool.name
|
|
2062
1216
|
}),
|
|
2063
|
-
failed || running ? /* @__PURE__ */
|
|
1217
|
+
failed || running ? /* @__PURE__ */ jsx4(TraceDescription, {
|
|
2064
1218
|
children: failed ? labels.toolFailed : labels.toolRunning
|
|
2065
1219
|
}) : null
|
|
2066
1220
|
]
|
|
2067
1221
|
})
|
|
2068
1222
|
}),
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
children: /* @__PURE__ */
|
|
2071
|
-
children: activity.map((tool) => /* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ jsx4(TraceCollapsibleContent, {
|
|
1224
|
+
children: /* @__PURE__ */ jsx4(Trace, {
|
|
1225
|
+
children: activity.map((tool) => /* @__PURE__ */ jsx4(ToolActivity, {
|
|
2072
1226
|
labels,
|
|
2073
1227
|
locale,
|
|
2074
1228
|
pending,
|
|
@@ -2079,7 +1233,7 @@ function ToolActivityLog({
|
|
|
2079
1233
|
]
|
|
2080
1234
|
})
|
|
2081
1235
|
}) : null,
|
|
2082
|
-
approvals.map((tool) => /* @__PURE__ */
|
|
1236
|
+
approvals.map((tool) => /* @__PURE__ */ jsx4(ToolApproval, {
|
|
2083
1237
|
disabled,
|
|
2084
1238
|
labels,
|
|
2085
1239
|
locale,
|
|
@@ -2127,11 +1281,11 @@ function AgentMessageRow({
|
|
|
2127
1281
|
pending,
|
|
2128
1282
|
workedSeconds
|
|
2129
1283
|
]);
|
|
2130
|
-
return /* @__PURE__ */
|
|
1284
|
+
return /* @__PURE__ */ jsx4(Message, {
|
|
2131
1285
|
align: isUser ? "end" : "start",
|
|
2132
|
-
children: /* @__PURE__ */
|
|
1286
|
+
children: /* @__PURE__ */ jsxs3(MessageContent, {
|
|
2133
1287
|
children: [
|
|
2134
|
-
!isUser && (message.tools.length > 0 || pending && !message.text) ? /* @__PURE__ */
|
|
1288
|
+
!isUser && (message.tools.length > 0 || pending && !message.text) ? /* @__PURE__ */ jsx4(ToolActivityLog, {
|
|
2135
1289
|
disabled,
|
|
2136
1290
|
labels,
|
|
2137
1291
|
locale,
|
|
@@ -2140,18 +1294,18 @@ function AgentMessageRow({
|
|
|
2140
1294
|
tools: message.tools,
|
|
2141
1295
|
workedSeconds
|
|
2142
1296
|
}) : null,
|
|
2143
|
-
message.text ? isUser ? /* @__PURE__ */
|
|
1297
|
+
message.text ? isUser ? /* @__PURE__ */ jsx4(Bubble, {
|
|
2144
1298
|
align: "end",
|
|
2145
|
-
children: /* @__PURE__ */
|
|
1299
|
+
children: /* @__PURE__ */ jsx4(BubbleContent, {
|
|
2146
1300
|
className: "whitespace-pre-wrap",
|
|
2147
1301
|
children: message.text
|
|
2148
1302
|
})
|
|
2149
|
-
}) : /* @__PURE__ */
|
|
1303
|
+
}) : /* @__PURE__ */ jsx4(Bubble, {
|
|
2150
1304
|
variant: "ghost",
|
|
2151
1305
|
className: "w-full",
|
|
2152
|
-
children: /* @__PURE__ */
|
|
1306
|
+
children: /* @__PURE__ */ jsx4(BubbleContent, {
|
|
2153
1307
|
className: "w-full",
|
|
2154
|
-
children: message.markdown ? /* @__PURE__ */
|
|
1308
|
+
children: message.markdown ? /* @__PURE__ */ jsx4(MarkdownContent, {
|
|
2155
1309
|
className: "w-full",
|
|
2156
1310
|
codeBlocks: message.markdown.codeBlocks,
|
|
2157
1311
|
html: message.markdown.html,
|
|
@@ -2163,7 +1317,7 @@ function AgentMessageRow({
|
|
|
2163
1317
|
}
|
|
2164
1318
|
},
|
|
2165
1319
|
locale
|
|
2166
|
-
}) : /* @__PURE__ */
|
|
1320
|
+
}) : /* @__PURE__ */ jsx4("div", {
|
|
2167
1321
|
className: "whitespace-pre-wrap",
|
|
2168
1322
|
children: message.text
|
|
2169
1323
|
})
|
|
@@ -2263,71 +1417,71 @@ function AgentWidget({
|
|
|
2263
1417
|
}
|
|
2264
1418
|
setOpen(nextOpen);
|
|
2265
1419
|
};
|
|
2266
|
-
return /* @__PURE__ */
|
|
1420
|
+
return /* @__PURE__ */ jsxs3(Dialog, {
|
|
2267
1421
|
open,
|
|
2268
1422
|
onOpenChange: handleOpenChange,
|
|
2269
1423
|
modal: false,
|
|
2270
1424
|
disablePointerDismissal: true,
|
|
2271
1425
|
children: [
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
render: /* @__PURE__ */
|
|
1426
|
+
/* @__PURE__ */ jsxs3(DialogTrigger, {
|
|
1427
|
+
render: /* @__PURE__ */ jsx4(Button2, {
|
|
2274
1428
|
size: "icon-lg",
|
|
2275
1429
|
className: "fixed right-4 bottom-4 z-9999 rounded-full shadow-lg md:right-6 md:bottom-6"
|
|
2276
1430
|
}),
|
|
2277
1431
|
children: [
|
|
2278
|
-
/* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ jsx4(BotIcon, {}),
|
|
1433
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2280
1434
|
className: "sr-only",
|
|
2281
1435
|
children: labels.open
|
|
2282
1436
|
})
|
|
2283
1437
|
]
|
|
2284
1438
|
}),
|
|
2285
|
-
/* @__PURE__ */
|
|
2286
|
-
children: /* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ jsx4(DialogPortal, {
|
|
1440
|
+
children: /* @__PURE__ */ jsxs3(DialogPrimitive.Popup, {
|
|
2287
1441
|
"data-slot": "dialog-content",
|
|
2288
1442
|
className: cn("bg-popover text-popover-foreground ring-foreground/10 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 fixed z-50 flex flex-col gap-0 overflow-hidden rounded-xl text-sm shadow-lg ring-1 duration-100 outline-none", maximized ? "inset-4 max-h-none max-w-none md:inset-6" : "right-4 bottom-20 h-[min(42rem,calc(100svh-6rem))] w-[calc(100%-2rem)] max-w-md md:right-6"),
|
|
2289
1443
|
children: [
|
|
2290
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ jsx4(DialogHeader, {
|
|
2291
1445
|
className: "shrink-0 border-b p-4",
|
|
2292
|
-
children: /* @__PURE__ */
|
|
1446
|
+
children: /* @__PURE__ */ jsxs3("div", {
|
|
2293
1447
|
className: "flex items-center gap-1",
|
|
2294
1448
|
children: [
|
|
2295
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ jsx4(DialogTitle, {
|
|
2296
1450
|
className: "min-w-0 flex-1 truncate text-sm leading-none font-medium",
|
|
2297
1451
|
children: labels.title
|
|
2298
1452
|
}),
|
|
2299
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ jsxs3(Button2, {
|
|
2300
1454
|
variant: "ghost",
|
|
2301
1455
|
size: "icon-sm",
|
|
2302
1456
|
onClick: () => setOpen(false),
|
|
2303
1457
|
children: [
|
|
2304
|
-
/* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ jsx4(MinusIcon, {}),
|
|
1459
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2306
1460
|
className: "sr-only",
|
|
2307
1461
|
children: labels.minimize
|
|
2308
1462
|
})
|
|
2309
1463
|
]
|
|
2310
1464
|
}),
|
|
2311
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ jsxs3(Button2, {
|
|
2312
1466
|
variant: "ghost",
|
|
2313
1467
|
size: "icon-sm",
|
|
2314
1468
|
onClick: () => setMaximized((current) => !current),
|
|
2315
1469
|
children: [
|
|
2316
|
-
maximized ? /* @__PURE__ */
|
|
2317
|
-
/* @__PURE__ */
|
|
1470
|
+
maximized ? /* @__PURE__ */ jsx4(Minimize2Icon, {}) : /* @__PURE__ */ jsx4(Maximize2Icon, {}),
|
|
1471
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2318
1472
|
className: "sr-only",
|
|
2319
1473
|
children: maximized ? labels.restore : labels.maximize
|
|
2320
1474
|
})
|
|
2321
1475
|
]
|
|
2322
1476
|
}),
|
|
2323
|
-
/* @__PURE__ */
|
|
2324
|
-
render: /* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ jsxs3(DialogClose, {
|
|
1478
|
+
render: /* @__PURE__ */ jsx4(Button2, {
|
|
2325
1479
|
variant: "ghost",
|
|
2326
1480
|
size: "icon-sm"
|
|
2327
1481
|
}),
|
|
2328
1482
|
children: [
|
|
2329
|
-
/* @__PURE__ */
|
|
2330
|
-
/* @__PURE__ */
|
|
1483
|
+
/* @__PURE__ */ jsx4(XIcon, {}),
|
|
1484
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2331
1485
|
className: "sr-only",
|
|
2332
1486
|
children: labels.close
|
|
2333
1487
|
})
|
|
@@ -2336,38 +1490,38 @@ function AgentWidget({
|
|
|
2336
1490
|
]
|
|
2337
1491
|
})
|
|
2338
1492
|
}),
|
|
2339
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2340
1494
|
className: "min-h-0 flex-1 overflow-hidden",
|
|
2341
|
-
children: state.messages.length === 0 && !state.error ? /* @__PURE__ */
|
|
1495
|
+
children: state.messages.length === 0 && !state.error ? /* @__PURE__ */ jsx4(Empty, {
|
|
2342
1496
|
className: "h-full",
|
|
2343
|
-
children: /* @__PURE__ */
|
|
1497
|
+
children: /* @__PURE__ */ jsxs3(EmptyHeader, {
|
|
2344
1498
|
children: [
|
|
2345
|
-
/* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ jsx4(EmptyMedia, {
|
|
2346
1500
|
variant: "icon",
|
|
2347
|
-
children: /* @__PURE__ */
|
|
1501
|
+
children: /* @__PURE__ */ jsx4(MessageCircleDashedIcon, {})
|
|
2348
1502
|
}),
|
|
2349
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ jsx4(EmptyTitle, {
|
|
2350
1504
|
children: labels.welcome
|
|
2351
1505
|
}),
|
|
2352
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx4(EmptyDescription, {
|
|
2353
1507
|
children: labels.description
|
|
2354
1508
|
})
|
|
2355
1509
|
]
|
|
2356
1510
|
})
|
|
2357
|
-
}) : /* @__PURE__ */
|
|
1511
|
+
}) : /* @__PURE__ */ jsx4(MessageScrollerProvider, {
|
|
2358
1512
|
autoScroll: true,
|
|
2359
|
-
children: /* @__PURE__ */
|
|
1513
|
+
children: /* @__PURE__ */ jsxs3(MessageScroller, {
|
|
2360
1514
|
children: [
|
|
2361
|
-
/* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ jsx4(MessageScrollerViewport, {
|
|
2362
1516
|
"aria-label": labels.title,
|
|
2363
|
-
children: /* @__PURE__ */
|
|
1517
|
+
children: /* @__PURE__ */ jsxs3(MessageScrollerContent, {
|
|
2364
1518
|
"aria-busy": state.pending,
|
|
2365
1519
|
className: "p-4",
|
|
2366
1520
|
children: [
|
|
2367
|
-
state.messages.map((message, index) => /* @__PURE__ */
|
|
1521
|
+
state.messages.map((message, index) => /* @__PURE__ */ jsx4(MessageScrollerItem, {
|
|
2368
1522
|
messageId: message.id,
|
|
2369
1523
|
scrollAnchor: message.role === "user",
|
|
2370
|
-
children: /* @__PURE__ */
|
|
1524
|
+
children: /* @__PURE__ */ jsx4(AgentMessageRow, {
|
|
2371
1525
|
disabled: state.pending,
|
|
2372
1526
|
labels,
|
|
2373
1527
|
locale,
|
|
@@ -2376,15 +1530,15 @@ function AgentWidget({
|
|
|
2376
1530
|
pending: state.pending && index === state.messages.length - 1
|
|
2377
1531
|
})
|
|
2378
1532
|
}, message.id)),
|
|
2379
|
-
state.error ? /* @__PURE__ */
|
|
1533
|
+
state.error ? /* @__PURE__ */ jsx4(MessageScrollerItem, {
|
|
2380
1534
|
messageId: "error",
|
|
2381
|
-
children: /* @__PURE__ */
|
|
1535
|
+
children: /* @__PURE__ */ jsxs3(Alert, {
|
|
2382
1536
|
variant: "destructive",
|
|
2383
1537
|
children: [
|
|
2384
|
-
/* @__PURE__ */
|
|
1538
|
+
/* @__PURE__ */ jsx4(AlertTitle, {
|
|
2385
1539
|
children: labels.title
|
|
2386
1540
|
}),
|
|
2387
|
-
/* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ jsx4(AlertDescription, {
|
|
2388
1542
|
children: errorMessage(state.error, labels)
|
|
2389
1543
|
})
|
|
2390
1544
|
]
|
|
@@ -2393,10 +1547,10 @@ function AgentWidget({
|
|
|
2393
1547
|
]
|
|
2394
1548
|
})
|
|
2395
1549
|
}),
|
|
2396
|
-
/* @__PURE__ */
|
|
1550
|
+
/* @__PURE__ */ jsxs3(MessageScrollerButton, {
|
|
2397
1551
|
children: [
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
/* @__PURE__ */
|
|
1552
|
+
/* @__PURE__ */ jsx4(ArrowDownIcon, {}),
|
|
1553
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2400
1554
|
className: "sr-only",
|
|
2401
1555
|
children: labels.scrollLatest
|
|
2402
1556
|
})
|
|
@@ -2406,58 +1560,58 @@ function AgentWidget({
|
|
|
2406
1560
|
})
|
|
2407
1561
|
})
|
|
2408
1562
|
}),
|
|
2409
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ jsx4("form", {
|
|
2410
1564
|
className: "shrink-0 border-t p-3",
|
|
2411
1565
|
onSubmit: (event) => {
|
|
2412
1566
|
event.preventDefault();
|
|
2413
1567
|
sendMessage();
|
|
2414
1568
|
},
|
|
2415
|
-
children: /* @__PURE__ */
|
|
1569
|
+
children: /* @__PURE__ */ jsxs3(InputGroup, {
|
|
2416
1570
|
children: [
|
|
2417
|
-
activeContext ? /* @__PURE__ */
|
|
1571
|
+
activeContext ? /* @__PURE__ */ jsx4(InputGroupAddon, {
|
|
2418
1572
|
align: "block-start",
|
|
2419
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ jsxs3(Attachment, {
|
|
2420
1574
|
size: "xs",
|
|
2421
1575
|
className: "min-w-0",
|
|
2422
1576
|
children: [
|
|
2423
|
-
activeContext.icon ? /* @__PURE__ */
|
|
1577
|
+
activeContext.icon ? /* @__PURE__ */ jsx4(AttachmentMedia, {
|
|
2424
1578
|
children: activeContext.icon
|
|
2425
1579
|
}) : null,
|
|
2426
|
-
/* @__PURE__ */
|
|
2427
|
-
children: /* @__PURE__ */
|
|
1580
|
+
/* @__PURE__ */ jsx4(AttachmentContent, {
|
|
1581
|
+
children: /* @__PURE__ */ jsx4(AttachmentTitle, {
|
|
2428
1582
|
children: activeContext.label
|
|
2429
1583
|
})
|
|
2430
1584
|
}),
|
|
2431
|
-
onRemoveContext ? /* @__PURE__ */
|
|
2432
|
-
children: /* @__PURE__ */
|
|
1585
|
+
onRemoveContext ? /* @__PURE__ */ jsx4(AttachmentActions, {
|
|
1586
|
+
children: /* @__PURE__ */ jsx4(AttachmentAction, {
|
|
2433
1587
|
type: "button",
|
|
2434
1588
|
"aria-label": `${labels.removeContext}: ${activeContext.label}`,
|
|
2435
1589
|
onClick: onRemoveContext,
|
|
2436
|
-
children: /* @__PURE__ */
|
|
1590
|
+
children: /* @__PURE__ */ jsx4(XIcon, {})
|
|
2437
1591
|
})
|
|
2438
1592
|
}) : null
|
|
2439
1593
|
]
|
|
2440
1594
|
})
|
|
2441
1595
|
}) : null,
|
|
2442
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2443
1597
|
className: "relative w-full min-w-0 self-stretch text-left",
|
|
2444
1598
|
children: [
|
|
2445
|
-
/* @__PURE__ */
|
|
1599
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2446
1600
|
ref: inputOverlayRef,
|
|
2447
1601
|
"aria-hidden": "true",
|
|
2448
1602
|
className: "text-foreground pointer-events-none absolute inset-0 [scrollbar-width:thin] [scrollbar-gutter:stable] overflow-hidden px-2.5 py-2 text-left font-[inherit] text-base break-words whitespace-pre-wrap md:text-sm",
|
|
2449
1603
|
children: highlightedInput(input, references)
|
|
2450
1604
|
}),
|
|
2451
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsxs3(Popover, {
|
|
2452
1606
|
open: referencePickerOpen,
|
|
2453
1607
|
triggerId: referenceInputId,
|
|
2454
1608
|
children: [
|
|
2455
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ jsx4(PopoverTrigger, {
|
|
2456
1610
|
id: referenceInputId,
|
|
2457
1611
|
nativeButton: false,
|
|
2458
1612
|
onKeyDown: (event) => event.preventBaseUIHandler(),
|
|
2459
1613
|
onKeyUp: (event) => event.preventBaseUIHandler(),
|
|
2460
|
-
render: /* @__PURE__ */
|
|
1614
|
+
render: /* @__PURE__ */ jsx4(InputGroupTextarea, {
|
|
2461
1615
|
ref: inputRef,
|
|
2462
1616
|
className: "caret-foreground selection:bg-primary selection:text-primary-foreground relative max-h-32 w-full [scrollbar-width:thin] [scrollbar-color:var(--border)_transparent] [scrollbar-gutter:stable] overflow-y-auto overscroll-contain text-left text-transparent",
|
|
2463
1617
|
value: input,
|
|
@@ -2509,30 +1663,30 @@ function AgentWidget({
|
|
|
2509
1663
|
}
|
|
2510
1664
|
})
|
|
2511
1665
|
}),
|
|
2512
|
-
/* @__PURE__ */
|
|
1666
|
+
/* @__PURE__ */ jsx4(PopoverContent, {
|
|
2513
1667
|
align: "start",
|
|
2514
1668
|
initialFocus: false,
|
|
2515
1669
|
side: "top",
|
|
2516
1670
|
className: "w-[min(24rem,calc(100vw-2rem))] p-0",
|
|
2517
|
-
children: /* @__PURE__ */
|
|
1671
|
+
children: /* @__PURE__ */ jsx4(Command3, {
|
|
2518
1672
|
shouldFilter: false,
|
|
2519
1673
|
value: activeReference?.key ?? "",
|
|
2520
1674
|
onValueChange: setActiveReferenceKey,
|
|
2521
|
-
children: /* @__PURE__ */
|
|
1675
|
+
children: /* @__PURE__ */ jsxs3(CommandList, {
|
|
2522
1676
|
id: referenceListId,
|
|
2523
1677
|
children: [
|
|
2524
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ jsx4(CommandEmpty, {
|
|
2525
1679
|
children: labels.noReferences
|
|
2526
1680
|
}),
|
|
2527
|
-
matchingReferences.length > 0 ? /* @__PURE__ */
|
|
1681
|
+
matchingReferences.length > 0 ? /* @__PURE__ */ jsx4(CommandGroup, {
|
|
2528
1682
|
heading: labels.references,
|
|
2529
|
-
children: matchingReferences.map((reference, index) => /* @__PURE__ */
|
|
1683
|
+
children: matchingReferences.map((reference, index) => /* @__PURE__ */ jsxs3(CommandItem, {
|
|
2530
1684
|
id: `${referenceInputId}-reference-${index}`,
|
|
2531
1685
|
value: reference.key,
|
|
2532
1686
|
onSelect: () => selectReference(reference),
|
|
2533
1687
|
children: [
|
|
2534
1688
|
reference.icon,
|
|
2535
|
-
/* @__PURE__ */
|
|
1689
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2536
1690
|
className: "truncate",
|
|
2537
1691
|
children: reference.label
|
|
2538
1692
|
})
|
|
@@ -2547,26 +1701,26 @@ function AgentWidget({
|
|
|
2547
1701
|
})
|
|
2548
1702
|
]
|
|
2549
1703
|
}),
|
|
2550
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsx4(InputGroupAddon, {
|
|
2551
1705
|
align: "block-end",
|
|
2552
1706
|
className: "justify-end",
|
|
2553
|
-
children: state.pending ? /* @__PURE__ */
|
|
1707
|
+
children: state.pending ? /* @__PURE__ */ jsxs3(InputGroupButton, {
|
|
2554
1708
|
size: "icon-xs",
|
|
2555
1709
|
onClick: onInterrupt,
|
|
2556
1710
|
children: [
|
|
2557
|
-
/* @__PURE__ */
|
|
2558
|
-
/* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ jsx4(SquareIcon, {}),
|
|
1712
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2559
1713
|
className: "sr-only",
|
|
2560
1714
|
children: labels.stop
|
|
2561
1715
|
})
|
|
2562
1716
|
]
|
|
2563
|
-
}) : /* @__PURE__ */
|
|
1717
|
+
}) : /* @__PURE__ */ jsxs3(InputGroupButton, {
|
|
2564
1718
|
type: "submit",
|
|
2565
1719
|
size: "icon-xs",
|
|
2566
1720
|
disabled: !input.trim() || hasPendingApproval2,
|
|
2567
1721
|
children: [
|
|
2568
|
-
/* @__PURE__ */
|
|
2569
|
-
/* @__PURE__ */
|
|
1722
|
+
/* @__PURE__ */ jsx4(SendIcon, {}),
|
|
1723
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2570
1724
|
className: "sr-only",
|
|
2571
1725
|
children: labels.send
|
|
2572
1726
|
})
|