@fairshare/ui-kit 0.1.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.
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/dist/accordion/Accordion.d.ts +11 -0
- package/dist/agent-status/AgentStatus.d.ts +8 -0
- package/dist/approval-gate/ApprovalGate.d.ts +12 -0
- package/dist/attachments/Attachments.d.ts +10 -0
- package/dist/avatar/Avatar.d.ts +10 -0
- package/dist/badge/Badge.d.ts +6 -0
- package/dist/banner/Banner.d.ts +14 -0
- package/dist/branch/Branch.d.ts +8 -0
- package/dist/breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/dist/button/Button.d.ts +7 -0
- package/dist/card/Card.d.ts +8 -0
- package/dist/chain-of-thought/ChainOfThought.d.ts +11 -0
- package/dist/checkbox/Checkbox.d.ts +3 -0
- package/dist/checkpoint/Checkpoint.d.ts +6 -0
- package/dist/code-block/CodeBlock.d.ts +5 -0
- package/dist/combobox/Combobox.d.ts +10 -0
- package/dist/commit/Commit.d.ts +13 -0
- package/dist/confidence-badge/ConfidenceBadge.d.ts +8 -0
- package/dist/connection/Connection.d.ts +8 -0
- package/dist/conversation/Conversation.d.ts +7 -0
- package/dist/description-list/DescriptionList.d.ts +9 -0
- package/dist/dialog/Dialog.d.ts +16 -0
- package/dist/diff-view/DiffView.d.ts +12 -0
- package/dist/drawer/Drawer.d.ts +8 -0
- package/dist/empty-state/EmptyState.d.ts +8 -0
- package/dist/feedback-buttons/FeedbackButtons.d.ts +4 -0
- package/dist/field/Field.d.ts +11 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +2629 -0
- package/dist/inline-citation/InlineCitation.d.ts +8 -0
- package/dist/input/Input.d.ts +9 -0
- package/dist/label/Label.d.ts +3 -0
- package/dist/menu/Menu.d.ts +22 -0
- package/dist/message/Message.d.ts +7 -0
- package/dist/message-actions/MessageActions.d.ts +8 -0
- package/dist/meter/Meter.d.ts +6 -0
- package/dist/number-field/NumberField.d.ts +3 -0
- package/dist/pagination/Pagination.d.ts +6 -0
- package/dist/plan/Plan.d.ts +11 -0
- package/dist/popover/Popover.d.ts +8 -0
- package/dist/progress/Progress.d.ts +3 -0
- package/dist/prompt-input/PromptInput.d.ts +12 -0
- package/dist/queue/Queue.d.ts +10 -0
- package/dist/radio/RadioGroup.d.ts +10 -0
- package/dist/select/Select.d.ts +12 -0
- package/dist/shimmer/Shimmer.d.ts +6 -0
- package/dist/sidebar/Sidebar.d.ts +42 -0
- package/dist/skeleton/Skeleton.d.ts +8 -0
- package/dist/slider/Slider.d.ts +3 -0
- package/dist/sources/Sources.d.ts +11 -0
- package/dist/spinner/Spinner.d.ts +5 -0
- package/dist/stack-trace/StackTrace.d.ts +11 -0
- package/dist/stat-card/StatCard.d.ts +9 -0
- package/dist/streaming-text/StreamingText.d.ts +8 -0
- package/dist/styles.css +2 -0
- package/dist/suggestion-chip/SuggestionChip.d.ts +9 -0
- package/dist/switch/Switch.d.ts +3 -0
- package/dist/table/Table.d.ts +21 -0
- package/dist/tabs/Tabs.d.ts +11 -0
- package/dist/terminal/Terminal.d.ts +10 -0
- package/dist/test-results/TestResults.d.ts +9 -0
- package/dist/thinking-block/ThinkingBlock.d.ts +11 -0
- package/dist/toast/Toast.d.ts +13 -0
- package/dist/token-meter/TokenMeter.d.ts +9 -0
- package/dist/tool-call-timeline/ToolCallTimeline.d.ts +13 -0
- package/dist/tooltip/Tooltip.d.ts +9 -0
- package/dist/tree/Tree.d.ts +19 -0
- package/dist/user-profile/UserProfile.d.ts +16 -0
- package/dist/web-preview/WebPreview.d.ts +7 -0
- package/package.json +60 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2629 @@
|
|
|
1
|
+
import { ArrowDown as e, ArrowUp as t, Brain as n, Check as r, ChevronDown as i, ChevronLeft as a, ChevronRight as o, ChevronsUpDown as s, CircleAlert as c, CircleCheck as l, Copy as u, ExternalLink as d, FileText as ee, Flag as f, GitBranch as te, GitCommitHorizontal as p, Globe as m, Info as h, Link as g, Minus as _, Pencil as v, Plus as y, RefreshCw as ne, ShieldAlert as b, ThumbsDown as re, ThumbsUp as ie, TriangleAlert as ae, X as x } from "lucide-react";
|
|
2
|
+
import { Accordion as oe } from "@base-ui/react/accordion";
|
|
3
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
4
|
+
import { isValidElement as se, useEffect as ce, useLayoutEffect as le, useMemo as ue, useRef as de, useState as T, useSyncExternalStore as fe } from "react";
|
|
5
|
+
import { Button as pe } from "@base-ui/react/button";
|
|
6
|
+
import { Avatar as me } from "@base-ui/react/avatar";
|
|
7
|
+
import { Checkbox as he } from "@base-ui/react/checkbox";
|
|
8
|
+
import { Combobox as E } from "@base-ui/react/combobox";
|
|
9
|
+
import { Tooltip as ge } from "@base-ui/react/tooltip";
|
|
10
|
+
import { Dialog as D } from "@base-ui/react/dialog";
|
|
11
|
+
import { Drawer as O } from "@base-ui/react/drawer";
|
|
12
|
+
import { Field as _e } from "@base-ui/react/field";
|
|
13
|
+
import { Input as ve } from "@base-ui/react/input";
|
|
14
|
+
import { Menu as k } from "@base-ui/react/menu";
|
|
15
|
+
import { Meter as ye } from "@base-ui/react/meter";
|
|
16
|
+
import { NumberField as be } from "@base-ui/react/number-field";
|
|
17
|
+
import { Popover as xe } from "@base-ui/react/popover";
|
|
18
|
+
import { Progress as Se } from "@base-ui/react/progress";
|
|
19
|
+
import { Radio as Ce } from "@base-ui/react/radio";
|
|
20
|
+
import { RadioGroup as we } from "@base-ui/react/radio-group";
|
|
21
|
+
import { Select as A } from "@base-ui/react/select";
|
|
22
|
+
import { Slider as Te } from "@base-ui/react/slider";
|
|
23
|
+
import { Switch as Ee } from "@base-ui/react/switch";
|
|
24
|
+
import { Toast as j } from "@base-ui/react/toast";
|
|
25
|
+
import { Tabs as De } from "@base-ui/react/tabs";
|
|
26
|
+
var M = {
|
|
27
|
+
root: "_root_1vayc_1",
|
|
28
|
+
item: "_item_1vayc_8",
|
|
29
|
+
header: "_header_1vayc_12",
|
|
30
|
+
trigger: "_trigger_1vayc_16",
|
|
31
|
+
chevron: "_chevron_1vayc_43",
|
|
32
|
+
panel: "_panel_1vayc_54",
|
|
33
|
+
panelInner: "_panelInner_1vayc_65"
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/lib/accordion/Accordion.tsx
|
|
37
|
+
function Oe({ items: e, ...t }) {
|
|
38
|
+
return /* @__PURE__ */ C(oe.Root, {
|
|
39
|
+
...t,
|
|
40
|
+
className: M.root,
|
|
41
|
+
children: e.map((e) => /* @__PURE__ */ w(oe.Item, {
|
|
42
|
+
value: e.value,
|
|
43
|
+
className: M.item,
|
|
44
|
+
children: [/* @__PURE__ */ C(oe.Header, {
|
|
45
|
+
className: M.header,
|
|
46
|
+
children: /* @__PURE__ */ w(oe.Trigger, {
|
|
47
|
+
className: M.trigger,
|
|
48
|
+
children: [e.title, /* @__PURE__ */ C(i, {
|
|
49
|
+
className: M.chevron,
|
|
50
|
+
"aria-hidden": !0
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
}), /* @__PURE__ */ C(oe.Panel, {
|
|
54
|
+
className: M.panel,
|
|
55
|
+
children: /* @__PURE__ */ C("div", {
|
|
56
|
+
className: M.panelInner,
|
|
57
|
+
children: e.content
|
|
58
|
+
})
|
|
59
|
+
})]
|
|
60
|
+
}, e.value))
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
var ke = {
|
|
64
|
+
root: "_root_wc68u_1",
|
|
65
|
+
iconOnly: "_iconOnly_wc68u_19",
|
|
66
|
+
primary: "_primary_wc68u_32",
|
|
67
|
+
danger: "_danger_wc68u_41",
|
|
68
|
+
secondary: "_secondary_wc68u_50",
|
|
69
|
+
ghost: "_ghost_wc68u_59"
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/lib/button/Button.tsx
|
|
73
|
+
function N({ variant: e = "primary", iconOnly: t, ...n }) {
|
|
74
|
+
return /* @__PURE__ */ C(pe, {
|
|
75
|
+
...n,
|
|
76
|
+
className: `${ke.root} ${ke[e]} ${t ? ke.iconOnly : ""}`
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
var Ae = {
|
|
80
|
+
sm: "_sm_pxd6w_1",
|
|
81
|
+
md: "_md_pxd6w_6",
|
|
82
|
+
lg: "_lg_pxd6w_11",
|
|
83
|
+
ring: "_ring_pxd6w_17",
|
|
84
|
+
spin: "_spin_pxd6w_1",
|
|
85
|
+
dots: "_dots_pxd6w_28",
|
|
86
|
+
dotPulse: "_dotPulse_pxd6w_1",
|
|
87
|
+
bars: "_bars_pxd6w_52",
|
|
88
|
+
bar: "_bar_pxd6w_52",
|
|
89
|
+
quad: "_quad_pxd6w_80"
|
|
90
|
+
}, je = {
|
|
91
|
+
ring: 0,
|
|
92
|
+
dots: 3,
|
|
93
|
+
bars: 4,
|
|
94
|
+
quad: 4
|
|
95
|
+
};
|
|
96
|
+
function Me({ size: e = "md", variant: t = "ring" }) {
|
|
97
|
+
return /* @__PURE__ */ C("span", {
|
|
98
|
+
className: `${Ae[t]} ${Ae[e]}`,
|
|
99
|
+
role: "status",
|
|
100
|
+
"aria-label": "Loading",
|
|
101
|
+
children: Array.from({ length: je[t] }, (e, t) => /* @__PURE__ */ C("i", {}, t))
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
var Ne = {
|
|
105
|
+
root: "_root_1nbc6_1",
|
|
106
|
+
doneIcon: "_doneIcon_1nbc6_14",
|
|
107
|
+
label: "_label_1nbc6_21",
|
|
108
|
+
elapsed: "_elapsed_1nbc6_28"
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/lib/agent-status/AgentStatus.tsx
|
|
112
|
+
function Pe({ label: e, running: t, onStop: n }) {
|
|
113
|
+
let [i, a] = T(0), [o, s] = T(t);
|
|
114
|
+
t !== o && (s(t), t && a(0)), ce(() => {
|
|
115
|
+
if (!t) return;
|
|
116
|
+
let e = setInterval(() => a((e) => e + 1), 1e3);
|
|
117
|
+
return () => clearInterval(e);
|
|
118
|
+
}, [t]);
|
|
119
|
+
let c = `${Math.floor(i / 60)}:${String(i % 60).padStart(2, "0")}`;
|
|
120
|
+
return /* @__PURE__ */ w("div", {
|
|
121
|
+
className: Ne.root,
|
|
122
|
+
children: [
|
|
123
|
+
t ? /* @__PURE__ */ C(Me, { size: "sm" }) : /* @__PURE__ */ C(r, { className: Ne.doneIcon }),
|
|
124
|
+
/* @__PURE__ */ C("span", {
|
|
125
|
+
className: Ne.label,
|
|
126
|
+
children: e
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ C("span", {
|
|
129
|
+
className: Ne.elapsed,
|
|
130
|
+
children: c
|
|
131
|
+
}),
|
|
132
|
+
t && n && /* @__PURE__ */ C(N, {
|
|
133
|
+
variant: "ghost",
|
|
134
|
+
onClick: n,
|
|
135
|
+
children: "Stop"
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
var Fe = {
|
|
141
|
+
root: "_root_xrkgz_1",
|
|
142
|
+
neutral: "_neutral_xrkgz_16",
|
|
143
|
+
info: "_info_xrkgz_20",
|
|
144
|
+
success: "_success_xrkgz_24",
|
|
145
|
+
warning: "_warning_xrkgz_28",
|
|
146
|
+
danger: "_danger_xrkgz_32"
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/lib/badge/Badge.tsx
|
|
150
|
+
function Ie({ variant: e = "neutral", children: t }) {
|
|
151
|
+
return /* @__PURE__ */ C("span", {
|
|
152
|
+
className: `${Fe.root} ${Fe[e]}`,
|
|
153
|
+
children: t
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
var P = {
|
|
157
|
+
root: "_root_1ehxr_1",
|
|
158
|
+
header: "_header_1ehxr_14",
|
|
159
|
+
icon: "_icon_1ehxr_20",
|
|
160
|
+
text: "_text_1ehxr_28",
|
|
161
|
+
title: "_title_1ehxr_35",
|
|
162
|
+
description: "_description_1ehxr_39",
|
|
163
|
+
preview: "_preview_1ehxr_43",
|
|
164
|
+
actions: "_actions_1ehxr_52"
|
|
165
|
+
};
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/lib/approval-gate/ApprovalGate.tsx
|
|
168
|
+
function Le({ title: e, description: t, children: n, approveLabel: r = "Approve", denyLabel: i = "Deny", onApprove: a, onDeny: o }) {
|
|
169
|
+
let [s, c] = T(null);
|
|
170
|
+
return /* @__PURE__ */ w("div", {
|
|
171
|
+
className: P.root,
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ w("div", {
|
|
174
|
+
className: P.header,
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ C(b, { className: P.icon }),
|
|
177
|
+
/* @__PURE__ */ w("div", {
|
|
178
|
+
className: P.text,
|
|
179
|
+
children: [/* @__PURE__ */ C("strong", {
|
|
180
|
+
className: P.title,
|
|
181
|
+
children: e
|
|
182
|
+
}), t != null && /* @__PURE__ */ C("span", {
|
|
183
|
+
className: P.description,
|
|
184
|
+
children: t
|
|
185
|
+
})]
|
|
186
|
+
}),
|
|
187
|
+
s === "approved" && /* @__PURE__ */ C(Ie, {
|
|
188
|
+
variant: "success",
|
|
189
|
+
children: "Approved"
|
|
190
|
+
}),
|
|
191
|
+
s === "denied" && /* @__PURE__ */ C(Ie, {
|
|
192
|
+
variant: "danger",
|
|
193
|
+
children: "Denied"
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
}),
|
|
197
|
+
n != null && /* @__PURE__ */ C("div", {
|
|
198
|
+
className: P.preview,
|
|
199
|
+
children: n
|
|
200
|
+
}),
|
|
201
|
+
s === null && /* @__PURE__ */ w("div", {
|
|
202
|
+
className: P.actions,
|
|
203
|
+
children: [/* @__PURE__ */ C(N, {
|
|
204
|
+
variant: "secondary",
|
|
205
|
+
onClick: () => {
|
|
206
|
+
c("denied"), o?.();
|
|
207
|
+
},
|
|
208
|
+
children: i
|
|
209
|
+
}), /* @__PURE__ */ C(N, {
|
|
210
|
+
onClick: () => {
|
|
211
|
+
c("approved"), a?.();
|
|
212
|
+
},
|
|
213
|
+
children: r
|
|
214
|
+
})]
|
|
215
|
+
})
|
|
216
|
+
]
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
var Re = {
|
|
220
|
+
root: "_root_1so34_1",
|
|
221
|
+
chip: "_chip_1so34_7",
|
|
222
|
+
icon: "_icon_1so34_20",
|
|
223
|
+
name: "_name_1so34_27",
|
|
224
|
+
size: "_size_1so34_33",
|
|
225
|
+
remove: "_remove_1so34_38"
|
|
226
|
+
};
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/lib/attachments/Attachments.tsx
|
|
229
|
+
function ze(e) {
|
|
230
|
+
return typeof e == "string" ? e : e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
231
|
+
}
|
|
232
|
+
function Be({ files: e, onRemove: t }) {
|
|
233
|
+
return e.length === 0 ? null : /* @__PURE__ */ C("div", {
|
|
234
|
+
className: Re.root,
|
|
235
|
+
children: e.map((e, n) => /* @__PURE__ */ w("span", {
|
|
236
|
+
className: Re.chip,
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ C(ee, { className: Re.icon }),
|
|
239
|
+
/* @__PURE__ */ C("span", {
|
|
240
|
+
className: Re.name,
|
|
241
|
+
children: e.name
|
|
242
|
+
}),
|
|
243
|
+
e.size != null && /* @__PURE__ */ C("span", {
|
|
244
|
+
className: Re.size,
|
|
245
|
+
children: ze(e.size)
|
|
246
|
+
}),
|
|
247
|
+
t && /* @__PURE__ */ C("button", {
|
|
248
|
+
type: "button",
|
|
249
|
+
"aria-label": `Remove ${e.name}`,
|
|
250
|
+
className: Re.remove,
|
|
251
|
+
onClick: () => t(n),
|
|
252
|
+
children: /* @__PURE__ */ C(x, {})
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
}, `${e.name}-${n}`))
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
var Ve = {
|
|
259
|
+
root: "_root_1nv2h_1",
|
|
260
|
+
sm: "_sm_1nv2h_14",
|
|
261
|
+
md: "_md_1nv2h_20",
|
|
262
|
+
lg: "_lg_1nv2h_26",
|
|
263
|
+
image: "_image_1nv2h_32",
|
|
264
|
+
fallback: "_fallback_1nv2h_38"
|
|
265
|
+
};
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/lib/avatar/Avatar.tsx
|
|
268
|
+
function He({ src: e, alt: t, fallback: n, size: r = "md", ...i }) {
|
|
269
|
+
return /* @__PURE__ */ w(me.Root, {
|
|
270
|
+
...i,
|
|
271
|
+
className: `${Ve.root} ${Ve[r]}`,
|
|
272
|
+
children: [e && /* @__PURE__ */ C(me.Image, {
|
|
273
|
+
src: e,
|
|
274
|
+
alt: t,
|
|
275
|
+
className: Ve.image
|
|
276
|
+
}), /* @__PURE__ */ C(me.Fallback, {
|
|
277
|
+
className: Ve.fallback,
|
|
278
|
+
children: n
|
|
279
|
+
})]
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
var F = {
|
|
283
|
+
root: "_root_6o8t8_1",
|
|
284
|
+
icon: "_icon_6o8t8_13",
|
|
285
|
+
content: "_content_6o8t8_25",
|
|
286
|
+
title: "_title_6o8t8_32",
|
|
287
|
+
action: "_action_6o8t8_36",
|
|
288
|
+
dismiss: "_dismiss_6o8t8_41",
|
|
289
|
+
info: "_info_6o8t8_65",
|
|
290
|
+
success: "_success_6o8t8_69",
|
|
291
|
+
warning: "_warning_6o8t8_73",
|
|
292
|
+
danger: "_danger_6o8t8_77"
|
|
293
|
+
}, Ue = {
|
|
294
|
+
info: /* @__PURE__ */ C(h, {}),
|
|
295
|
+
success: /* @__PURE__ */ C(l, {}),
|
|
296
|
+
warning: /* @__PURE__ */ C(ae, {}),
|
|
297
|
+
danger: /* @__PURE__ */ C(c, {})
|
|
298
|
+
};
|
|
299
|
+
function We({ variant: e = "info", title: t, children: n, icon: r, onDismiss: i, dismissible: a, action: o }) {
|
|
300
|
+
let [s, c] = T(!1);
|
|
301
|
+
if (s) return null;
|
|
302
|
+
let l = a || i != null, u = r === void 0 ? Ue[e] : r;
|
|
303
|
+
return /* @__PURE__ */ w("div", {
|
|
304
|
+
role: "status",
|
|
305
|
+
className: `${F.root} ${F[e]}`,
|
|
306
|
+
children: [
|
|
307
|
+
u != null && /* @__PURE__ */ C("span", {
|
|
308
|
+
className: F.icon,
|
|
309
|
+
children: u
|
|
310
|
+
}),
|
|
311
|
+
/* @__PURE__ */ w("div", {
|
|
312
|
+
className: F.content,
|
|
313
|
+
children: [t != null && /* @__PURE__ */ C("strong", {
|
|
314
|
+
className: F.title,
|
|
315
|
+
children: t
|
|
316
|
+
}), /* @__PURE__ */ C("span", { children: n })]
|
|
317
|
+
}),
|
|
318
|
+
o != null && /* @__PURE__ */ C("span", {
|
|
319
|
+
className: F.action,
|
|
320
|
+
children: o
|
|
321
|
+
}),
|
|
322
|
+
l && /* @__PURE__ */ C("button", {
|
|
323
|
+
type: "button",
|
|
324
|
+
"aria-label": "Dismiss",
|
|
325
|
+
className: F.dismiss,
|
|
326
|
+
onClick: () => {
|
|
327
|
+
c(!0), i?.();
|
|
328
|
+
},
|
|
329
|
+
children: "×"
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
var Ge = {
|
|
335
|
+
root: "_root_14cyy_1",
|
|
336
|
+
count: "_count_14cyy_9",
|
|
337
|
+
button: "_button_14cyy_14"
|
|
338
|
+
};
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/lib/branch/Branch.tsx
|
|
341
|
+
function Ke({ count: e, index: t, onIndexChange: n }) {
|
|
342
|
+
return /* @__PURE__ */ w("div", {
|
|
343
|
+
className: Ge.root,
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ C("button", {
|
|
346
|
+
type: "button",
|
|
347
|
+
"aria-label": "Previous branch",
|
|
348
|
+
className: Ge.button,
|
|
349
|
+
disabled: t <= 0,
|
|
350
|
+
onClick: () => n?.(t - 1),
|
|
351
|
+
children: /* @__PURE__ */ C(a, {})
|
|
352
|
+
}),
|
|
353
|
+
/* @__PURE__ */ w("span", {
|
|
354
|
+
className: Ge.count,
|
|
355
|
+
children: [
|
|
356
|
+
t + 1,
|
|
357
|
+
" / ",
|
|
358
|
+
e
|
|
359
|
+
]
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ C("button", {
|
|
362
|
+
type: "button",
|
|
363
|
+
"aria-label": "Next branch",
|
|
364
|
+
className: Ge.button,
|
|
365
|
+
disabled: t >= e - 1,
|
|
366
|
+
onClick: () => n?.(t + 1),
|
|
367
|
+
children: /* @__PURE__ */ C(o, {})
|
|
368
|
+
})
|
|
369
|
+
]
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
var qe = {
|
|
373
|
+
list: "_list_1op8k_1",
|
|
374
|
+
item: "_item_1op8k_11",
|
|
375
|
+
link: "_link_1op8k_17",
|
|
376
|
+
current: "_current_1op8k_33",
|
|
377
|
+
separator: "_separator_1op8k_38"
|
|
378
|
+
};
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/lib/breadcrumbs/Breadcrumbs.tsx
|
|
381
|
+
function Je({ items: e }) {
|
|
382
|
+
return /* @__PURE__ */ C("nav", {
|
|
383
|
+
"aria-label": "Breadcrumb",
|
|
384
|
+
children: /* @__PURE__ */ C("ol", {
|
|
385
|
+
className: qe.list,
|
|
386
|
+
children: e.map((t, n) => {
|
|
387
|
+
let r = n === e.length - 1;
|
|
388
|
+
return /* @__PURE__ */ C("li", {
|
|
389
|
+
className: qe.item,
|
|
390
|
+
children: r ? /* @__PURE__ */ C("span", {
|
|
391
|
+
className: qe.current,
|
|
392
|
+
"aria-current": "page",
|
|
393
|
+
children: t.label
|
|
394
|
+
}) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("a", {
|
|
395
|
+
href: t.href,
|
|
396
|
+
onClick: t.onClick,
|
|
397
|
+
className: qe.link,
|
|
398
|
+
children: t.label
|
|
399
|
+
}), /* @__PURE__ */ C(o, {
|
|
400
|
+
className: qe.separator,
|
|
401
|
+
"aria-hidden": !0
|
|
402
|
+
})] })
|
|
403
|
+
}, n);
|
|
404
|
+
})
|
|
405
|
+
})
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
var Ye = {
|
|
409
|
+
root: "_root_1y5ao_1",
|
|
410
|
+
header: "_header_1y5ao_12",
|
|
411
|
+
title: "_title_1y5ao_21",
|
|
412
|
+
extra: "_extra_1y5ao_27",
|
|
413
|
+
body: "_body_1y5ao_32"
|
|
414
|
+
};
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region src/lib/card/Card.tsx
|
|
417
|
+
function Xe({ title: e, extra: t, children: n }) {
|
|
418
|
+
return /* @__PURE__ */ w("div", {
|
|
419
|
+
className: Ye.root,
|
|
420
|
+
children: [(e != null || t != null) && /* @__PURE__ */ w("div", {
|
|
421
|
+
className: Ye.header,
|
|
422
|
+
children: [e != null && /* @__PURE__ */ C("strong", {
|
|
423
|
+
className: Ye.title,
|
|
424
|
+
children: e
|
|
425
|
+
}), t != null && /* @__PURE__ */ C("div", {
|
|
426
|
+
className: Ye.extra,
|
|
427
|
+
children: t
|
|
428
|
+
})]
|
|
429
|
+
}), /* @__PURE__ */ C("div", {
|
|
430
|
+
className: Ye.body,
|
|
431
|
+
children: n
|
|
432
|
+
})]
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
var Ze = {
|
|
436
|
+
root: "_root_3p8rm_1",
|
|
437
|
+
step: "_step_3p8rm_9",
|
|
438
|
+
number: "_number_3p8rm_32",
|
|
439
|
+
active: "_active_3p8rm_47",
|
|
440
|
+
label: "_label_3p8rm_54",
|
|
441
|
+
shimmer: "_shimmer_3p8rm_1",
|
|
442
|
+
done: "_done_3p8rm_78",
|
|
443
|
+
pending: "_pending_3p8rm_82",
|
|
444
|
+
detail: "_detail_3p8rm_87"
|
|
445
|
+
};
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/lib/chain-of-thought/ChainOfThought.tsx
|
|
448
|
+
function Qe({ steps: e }) {
|
|
449
|
+
return /* @__PURE__ */ C("ol", {
|
|
450
|
+
className: Ze.root,
|
|
451
|
+
children: e.map((e, t) => /* @__PURE__ */ w("li", {
|
|
452
|
+
className: `${Ze.step} ${Ze[e.status ?? "done"]}`,
|
|
453
|
+
children: [
|
|
454
|
+
/* @__PURE__ */ C("span", {
|
|
455
|
+
className: Ze.number,
|
|
456
|
+
children: t + 1
|
|
457
|
+
}),
|
|
458
|
+
/* @__PURE__ */ C("span", {
|
|
459
|
+
className: Ze.label,
|
|
460
|
+
children: e.label
|
|
461
|
+
}),
|
|
462
|
+
e.detail != null && /* @__PURE__ */ C("span", {
|
|
463
|
+
className: Ze.detail,
|
|
464
|
+
children: e.detail
|
|
465
|
+
})
|
|
466
|
+
]
|
|
467
|
+
}, t))
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
var $e = {
|
|
471
|
+
root: "_root_1y9ix_1",
|
|
472
|
+
indicator: "_indicator_1y9ix_32"
|
|
473
|
+
};
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region src/lib/checkbox/Checkbox.tsx
|
|
476
|
+
function et(e) {
|
|
477
|
+
return /* @__PURE__ */ C(he.Root, {
|
|
478
|
+
...e,
|
|
479
|
+
className: $e.root,
|
|
480
|
+
children: /* @__PURE__ */ C(he.Indicator, {
|
|
481
|
+
className: $e.indicator,
|
|
482
|
+
children: /* @__PURE__ */ C("svg", {
|
|
483
|
+
viewBox: "0 0 12 10",
|
|
484
|
+
width: "12",
|
|
485
|
+
height: "10",
|
|
486
|
+
fill: "none",
|
|
487
|
+
"aria-hidden": !0,
|
|
488
|
+
children: /* @__PURE__ */ C("path", {
|
|
489
|
+
d: "M1 5l3.5 3.5L11 1",
|
|
490
|
+
stroke: "currentColor",
|
|
491
|
+
strokeWidth: "2"
|
|
492
|
+
})
|
|
493
|
+
})
|
|
494
|
+
})
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
var tt = {
|
|
498
|
+
root: "_root_l1m88_1",
|
|
499
|
+
icon: "_icon_l1m88_9",
|
|
500
|
+
line: "_line_l1m88_15",
|
|
501
|
+
restore: "_restore_l1m88_21"
|
|
502
|
+
};
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region src/lib/checkpoint/Checkpoint.tsx
|
|
505
|
+
function nt({ label: e = "Checkpoint", onRestore: t }) {
|
|
506
|
+
return /* @__PURE__ */ w("div", {
|
|
507
|
+
className: tt.root,
|
|
508
|
+
children: [
|
|
509
|
+
/* @__PURE__ */ C(f, { className: tt.icon }),
|
|
510
|
+
/* @__PURE__ */ C("span", { children: e }),
|
|
511
|
+
/* @__PURE__ */ C("span", { className: tt.line }),
|
|
512
|
+
t && /* @__PURE__ */ C("button", {
|
|
513
|
+
type: "button",
|
|
514
|
+
className: tt.restore,
|
|
515
|
+
onClick: t,
|
|
516
|
+
children: "Restore"
|
|
517
|
+
})
|
|
518
|
+
]
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
var rt = {
|
|
522
|
+
root: "_root_1oph3_1",
|
|
523
|
+
header: "_header_1oph3_9",
|
|
524
|
+
language: "_language_1oph3_17",
|
|
525
|
+
copy: "_copy_1oph3_23",
|
|
526
|
+
copied: "_copied_1oph3_52",
|
|
527
|
+
code: "_code_1oph3_56"
|
|
528
|
+
};
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/lib/code-block/CodeBlock.tsx
|
|
531
|
+
function it({ code: e, language: t }) {
|
|
532
|
+
let [n, i] = T(!1);
|
|
533
|
+
async function a() {
|
|
534
|
+
await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 1500);
|
|
535
|
+
}
|
|
536
|
+
return /* @__PURE__ */ w("div", {
|
|
537
|
+
className: rt.root,
|
|
538
|
+
children: [/* @__PURE__ */ w("div", {
|
|
539
|
+
className: rt.header,
|
|
540
|
+
children: [/* @__PURE__ */ C("span", {
|
|
541
|
+
className: rt.language,
|
|
542
|
+
children: t
|
|
543
|
+
}), /* @__PURE__ */ C("button", {
|
|
544
|
+
type: "button",
|
|
545
|
+
"aria-label": "Copy code",
|
|
546
|
+
className: rt.copy,
|
|
547
|
+
onClick: a,
|
|
548
|
+
children: n ? /* @__PURE__ */ C(r, { className: rt.copied }) : /* @__PURE__ */ C(u, {})
|
|
549
|
+
})]
|
|
550
|
+
}), /* @__PURE__ */ C("pre", {
|
|
551
|
+
className: rt.code,
|
|
552
|
+
children: e
|
|
553
|
+
})]
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
var I = {
|
|
557
|
+
inputGroup: "_inputGroup_15zl9_1",
|
|
558
|
+
input: "_input_15zl9_1",
|
|
559
|
+
trigger: "_trigger_15zl9_38",
|
|
560
|
+
positioner: "_positioner_15zl9_59",
|
|
561
|
+
popup: "_popup_15zl9_63",
|
|
562
|
+
empty: "_empty_15zl9_84",
|
|
563
|
+
list: "_list_15zl9_93",
|
|
564
|
+
item: "_item_15zl9_97",
|
|
565
|
+
itemIndicator: "_itemIndicator_15zl9_112",
|
|
566
|
+
itemText: "_itemText_15zl9_118"
|
|
567
|
+
};
|
|
568
|
+
//#endregion
|
|
569
|
+
//#region src/lib/combobox/Combobox.tsx
|
|
570
|
+
function at({ items: e, placeholder: t, ...n }) {
|
|
571
|
+
return /* @__PURE__ */ w(E.Root, {
|
|
572
|
+
items: e,
|
|
573
|
+
...n,
|
|
574
|
+
children: [/* @__PURE__ */ w(E.InputGroup, {
|
|
575
|
+
className: I.inputGroup,
|
|
576
|
+
children: [/* @__PURE__ */ C(E.Input, {
|
|
577
|
+
placeholder: t,
|
|
578
|
+
className: I.input
|
|
579
|
+
}), /* @__PURE__ */ C(E.Trigger, {
|
|
580
|
+
className: I.trigger,
|
|
581
|
+
"aria-label": "Open popup",
|
|
582
|
+
children: /* @__PURE__ */ C(i, {})
|
|
583
|
+
})]
|
|
584
|
+
}), /* @__PURE__ */ C(E.Portal, { children: /* @__PURE__ */ C(E.Positioner, {
|
|
585
|
+
className: I.positioner,
|
|
586
|
+
sideOffset: 4,
|
|
587
|
+
children: /* @__PURE__ */ w(E.Popup, {
|
|
588
|
+
className: I.popup,
|
|
589
|
+
children: [/* @__PURE__ */ C(E.Empty, {
|
|
590
|
+
className: I.empty,
|
|
591
|
+
children: "No results."
|
|
592
|
+
}), /* @__PURE__ */ C(E.List, {
|
|
593
|
+
className: I.list,
|
|
594
|
+
children: (e) => /* @__PURE__ */ w(E.Item, {
|
|
595
|
+
value: e,
|
|
596
|
+
className: I.item,
|
|
597
|
+
children: [/* @__PURE__ */ C(E.ItemIndicator, {
|
|
598
|
+
className: I.itemIndicator,
|
|
599
|
+
children: /* @__PURE__ */ C("svg", {
|
|
600
|
+
viewBox: "0 0 12 10",
|
|
601
|
+
width: "10",
|
|
602
|
+
height: "8",
|
|
603
|
+
fill: "none",
|
|
604
|
+
"aria-hidden": !0,
|
|
605
|
+
children: /* @__PURE__ */ C("path", {
|
|
606
|
+
d: "M1 5l3.5 3.5L11 1",
|
|
607
|
+
stroke: "currentColor",
|
|
608
|
+
strokeWidth: "2"
|
|
609
|
+
})
|
|
610
|
+
})
|
|
611
|
+
}), /* @__PURE__ */ C("span", {
|
|
612
|
+
className: I.itemText,
|
|
613
|
+
children: e.label
|
|
614
|
+
})]
|
|
615
|
+
}, e.value)
|
|
616
|
+
})]
|
|
617
|
+
})
|
|
618
|
+
}) })]
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
var L = {
|
|
622
|
+
root: "_root_boi5e_1",
|
|
623
|
+
header: "_header_boi5e_14",
|
|
624
|
+
icon: "_icon_boi5e_20",
|
|
625
|
+
message: "_message_boi5e_27",
|
|
626
|
+
hash: "_hash_boi5e_32",
|
|
627
|
+
author: "_author_boi5e_41",
|
|
628
|
+
files: "_files_boi5e_47",
|
|
629
|
+
file: "_file_boi5e_47",
|
|
630
|
+
path: "_path_boi5e_64",
|
|
631
|
+
add: "_add_boi5e_72",
|
|
632
|
+
del: "_del_boi5e_77"
|
|
633
|
+
};
|
|
634
|
+
//#endregion
|
|
635
|
+
//#region src/lib/commit/Commit.tsx
|
|
636
|
+
function ot({ message: e, hash: t, author: n, files: r }) {
|
|
637
|
+
return /* @__PURE__ */ w("div", {
|
|
638
|
+
className: L.root,
|
|
639
|
+
children: [
|
|
640
|
+
/* @__PURE__ */ w("div", {
|
|
641
|
+
className: L.header,
|
|
642
|
+
children: [
|
|
643
|
+
/* @__PURE__ */ C(p, { className: L.icon }),
|
|
644
|
+
/* @__PURE__ */ C("span", {
|
|
645
|
+
className: L.message,
|
|
646
|
+
children: e
|
|
647
|
+
}),
|
|
648
|
+
t != null && /* @__PURE__ */ C("code", {
|
|
649
|
+
className: L.hash,
|
|
650
|
+
children: t.slice(0, 7)
|
|
651
|
+
})
|
|
652
|
+
]
|
|
653
|
+
}),
|
|
654
|
+
n != null && /* @__PURE__ */ C("div", {
|
|
655
|
+
className: L.author,
|
|
656
|
+
children: n
|
|
657
|
+
}),
|
|
658
|
+
r != null && r.length > 0 && /* @__PURE__ */ C("ul", {
|
|
659
|
+
className: L.files,
|
|
660
|
+
children: r.map((e) => /* @__PURE__ */ w("li", {
|
|
661
|
+
className: L.file,
|
|
662
|
+
children: [
|
|
663
|
+
/* @__PURE__ */ C("span", {
|
|
664
|
+
className: L.path,
|
|
665
|
+
children: e.path
|
|
666
|
+
}),
|
|
667
|
+
e.additions != null && /* @__PURE__ */ w("span", {
|
|
668
|
+
className: L.add,
|
|
669
|
+
children: ["+", e.additions]
|
|
670
|
+
}),
|
|
671
|
+
e.deletions != null && /* @__PURE__ */ w("span", {
|
|
672
|
+
className: L.del,
|
|
673
|
+
children: ["-", e.deletions]
|
|
674
|
+
})
|
|
675
|
+
]
|
|
676
|
+
}, e.path))
|
|
677
|
+
})
|
|
678
|
+
]
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
var st = {
|
|
682
|
+
positioner: "_positioner_1w3sf_1",
|
|
683
|
+
popup: "_popup_1w3sf_5"
|
|
684
|
+
};
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region src/lib/tooltip/Tooltip.tsx
|
|
687
|
+
function ct({ content: e, children: t, side: n = "top", ...r }) {
|
|
688
|
+
return /* @__PURE__ */ w(ge.Root, {
|
|
689
|
+
...r,
|
|
690
|
+
children: [/* @__PURE__ */ C(ge.Trigger, { render: t }), /* @__PURE__ */ C(ge.Portal, { children: /* @__PURE__ */ C(ge.Positioner, {
|
|
691
|
+
side: n,
|
|
692
|
+
sideOffset: 6,
|
|
693
|
+
className: st.positioner,
|
|
694
|
+
children: /* @__PURE__ */ C(ge.Popup, {
|
|
695
|
+
className: st.popup,
|
|
696
|
+
children: e
|
|
697
|
+
})
|
|
698
|
+
}) })]
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
var lt = { root: "_root_hmusm_1" };
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/lib/confidence-badge/ConfidenceBadge.tsx
|
|
704
|
+
function ut({ score: e, reason: t }) {
|
|
705
|
+
let n = Math.round(e * 100), r = e >= .8 ? "success" : e >= .5 ? "warning" : "danger", i = /* @__PURE__ */ C("span", {
|
|
706
|
+
className: lt.root,
|
|
707
|
+
tabIndex: t == null ? void 0 : 0,
|
|
708
|
+
children: /* @__PURE__ */ w(Ie, {
|
|
709
|
+
variant: r,
|
|
710
|
+
children: [n, "% confident"]
|
|
711
|
+
})
|
|
712
|
+
});
|
|
713
|
+
return t == null ? i : /* @__PURE__ */ C(ct, {
|
|
714
|
+
content: t,
|
|
715
|
+
children: i
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
var dt = {
|
|
719
|
+
root: "_root_1ux6k_1",
|
|
720
|
+
dot: "_dot_1ux6k_9",
|
|
721
|
+
connected: "_connected_1ux6k_15",
|
|
722
|
+
connecting: "_connecting_1ux6k_19",
|
|
723
|
+
pulse: "_pulse_1ux6k_1",
|
|
724
|
+
disconnected: "_disconnected_1ux6k_24"
|
|
725
|
+
}, ft = {
|
|
726
|
+
connected: "Connected",
|
|
727
|
+
connecting: "Reconnecting…",
|
|
728
|
+
disconnected: "Offline"
|
|
729
|
+
};
|
|
730
|
+
function pt({ status: e, label: t }) {
|
|
731
|
+
return /* @__PURE__ */ w("span", {
|
|
732
|
+
className: dt.root,
|
|
733
|
+
children: [/* @__PURE__ */ C("span", { className: `${dt.dot} ${dt[e]}` }), t ?? ft[e]]
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
var mt = {
|
|
737
|
+
root: "_root_1tsj2_1",
|
|
738
|
+
scroll: "_scroll_1tsj2_10",
|
|
739
|
+
jump: "_jump_1tsj2_20"
|
|
740
|
+
};
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region src/lib/conversation/Conversation.tsx
|
|
743
|
+
function ht({ children: t, height: n = "20rem" }) {
|
|
744
|
+
let r = de(null), [i, a] = T(!0);
|
|
745
|
+
return ce(() => {
|
|
746
|
+
i && r.current?.scrollTo({ top: r.current.scrollHeight });
|
|
747
|
+
}, [t, i]), /* @__PURE__ */ w("div", {
|
|
748
|
+
className: mt.root,
|
|
749
|
+
style: { height: n },
|
|
750
|
+
children: [/* @__PURE__ */ C("div", {
|
|
751
|
+
ref: r,
|
|
752
|
+
className: mt.scroll,
|
|
753
|
+
onScroll: (e) => {
|
|
754
|
+
let t = e.currentTarget;
|
|
755
|
+
a(t.scrollHeight - t.scrollTop - t.clientHeight < 40);
|
|
756
|
+
},
|
|
757
|
+
children: t
|
|
758
|
+
}), !i && /* @__PURE__ */ C("button", {
|
|
759
|
+
type: "button",
|
|
760
|
+
"aria-label": "Scroll to latest",
|
|
761
|
+
className: mt.jump,
|
|
762
|
+
onClick: () => r.current?.scrollTo({
|
|
763
|
+
top: r.current.scrollHeight,
|
|
764
|
+
behavior: "smooth"
|
|
765
|
+
}),
|
|
766
|
+
children: /* @__PURE__ */ C(e, {})
|
|
767
|
+
})]
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
var gt = {
|
|
771
|
+
root: "_root_9lx2p_1",
|
|
772
|
+
row: "_row_9lx2p_6",
|
|
773
|
+
label: "_label_9lx2p_17",
|
|
774
|
+
value: "_value_9lx2p_21"
|
|
775
|
+
};
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region src/lib/description-list/DescriptionList.tsx
|
|
778
|
+
function _t({ items: e }) {
|
|
779
|
+
return /* @__PURE__ */ C("dl", {
|
|
780
|
+
className: gt.root,
|
|
781
|
+
children: e.map((e, t) => /* @__PURE__ */ w("div", {
|
|
782
|
+
className: gt.row,
|
|
783
|
+
children: [/* @__PURE__ */ C("dt", {
|
|
784
|
+
className: gt.label,
|
|
785
|
+
children: e.label
|
|
786
|
+
}), /* @__PURE__ */ C("dd", {
|
|
787
|
+
className: gt.value,
|
|
788
|
+
children: e.value
|
|
789
|
+
})]
|
|
790
|
+
}, t))
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
var vt = {
|
|
794
|
+
backdrop: "_backdrop_bubeg_1",
|
|
795
|
+
popup: "_popup_bubeg_15",
|
|
796
|
+
footer: "_footer_bubeg_41",
|
|
797
|
+
title: "_title_bubeg_48"
|
|
798
|
+
};
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/lib/dialog/Dialog.tsx
|
|
801
|
+
function yt({ trigger: e, title: t, children: n, action: r, secondaryAction: i, ...a }) {
|
|
802
|
+
return /* @__PURE__ */ w(D.Root, {
|
|
803
|
+
...a,
|
|
804
|
+
children: [/* @__PURE__ */ C(D.Trigger, { render: e }), /* @__PURE__ */ w(D.Portal, { children: [/* @__PURE__ */ C(D.Backdrop, { className: vt.backdrop }), /* @__PURE__ */ w(D.Popup, {
|
|
805
|
+
className: vt.popup,
|
|
806
|
+
children: [
|
|
807
|
+
/* @__PURE__ */ C(D.Title, {
|
|
808
|
+
className: vt.title,
|
|
809
|
+
children: t
|
|
810
|
+
}),
|
|
811
|
+
n,
|
|
812
|
+
/* @__PURE__ */ C("div", {
|
|
813
|
+
className: vt.footer,
|
|
814
|
+
children: r == null && i == null ? /* @__PURE__ */ C(D.Close, {
|
|
815
|
+
render: /* @__PURE__ */ C(N, { variant: "secondary" }),
|
|
816
|
+
children: "Close"
|
|
817
|
+
}) : /* @__PURE__ */ w(S, { children: [i != null && /* @__PURE__ */ C(D.Close, {
|
|
818
|
+
render: /* @__PURE__ */ C(N, {
|
|
819
|
+
variant: "secondary",
|
|
820
|
+
onClick: i.onClick
|
|
821
|
+
}),
|
|
822
|
+
children: i.label
|
|
823
|
+
}), r != null && /* @__PURE__ */ C(D.Close, {
|
|
824
|
+
render: /* @__PURE__ */ C(N, { onClick: r.onClick }),
|
|
825
|
+
children: r.label
|
|
826
|
+
})] })
|
|
827
|
+
})
|
|
828
|
+
]
|
|
829
|
+
})] })]
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
var bt = {
|
|
833
|
+
root: "_root_1k99p_1",
|
|
834
|
+
header: "_header_1k99p_9",
|
|
835
|
+
fileName: "_fileName_1k99p_32",
|
|
836
|
+
code: "_code_1k99p_39",
|
|
837
|
+
marker: "_marker_1k99p_54",
|
|
838
|
+
add: "_add_1k99p_61",
|
|
839
|
+
remove: "_remove_1k99p_69"
|
|
840
|
+
}, xt = {
|
|
841
|
+
add: "+",
|
|
842
|
+
remove: "-",
|
|
843
|
+
context: " "
|
|
844
|
+
};
|
|
845
|
+
function St({ lines: e, fileName: t, onAccept: n, onReject: i }) {
|
|
846
|
+
let a = t != null || n != null || i != null;
|
|
847
|
+
return /* @__PURE__ */ w("div", {
|
|
848
|
+
className: bt.root,
|
|
849
|
+
children: [a && /* @__PURE__ */ w("div", {
|
|
850
|
+
className: bt.header,
|
|
851
|
+
children: [
|
|
852
|
+
/* @__PURE__ */ C("span", {
|
|
853
|
+
className: bt.fileName,
|
|
854
|
+
children: t
|
|
855
|
+
}),
|
|
856
|
+
i && /* @__PURE__ */ w(N, {
|
|
857
|
+
variant: "ghost",
|
|
858
|
+
onClick: i,
|
|
859
|
+
children: [/* @__PURE__ */ C(x, {}), " Reject"]
|
|
860
|
+
}),
|
|
861
|
+
n && /* @__PURE__ */ w(N, {
|
|
862
|
+
variant: "secondary",
|
|
863
|
+
onClick: n,
|
|
864
|
+
children: [/* @__PURE__ */ C(r, {}), " Accept"]
|
|
865
|
+
})
|
|
866
|
+
]
|
|
867
|
+
}), /* @__PURE__ */ C("pre", {
|
|
868
|
+
className: bt.code,
|
|
869
|
+
children: e.map((e, t) => /* @__PURE__ */ w("div", {
|
|
870
|
+
className: bt[e.type],
|
|
871
|
+
children: [/* @__PURE__ */ C("span", {
|
|
872
|
+
className: bt.marker,
|
|
873
|
+
children: xt[e.type]
|
|
874
|
+
}), e.text]
|
|
875
|
+
}, t))
|
|
876
|
+
})]
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
var R = {
|
|
880
|
+
backdrop: "_backdrop_1xa9p_1",
|
|
881
|
+
viewport: "_viewport_1xa9p_19",
|
|
882
|
+
popup: "_popup_1xa9p_28",
|
|
883
|
+
content: "_content_1xa9p_54",
|
|
884
|
+
header: "_header_1xa9p_60",
|
|
885
|
+
title: "_title_1xa9p_66",
|
|
886
|
+
close: "_close_1xa9p_72"
|
|
887
|
+
};
|
|
888
|
+
//#endregion
|
|
889
|
+
//#region src/lib/drawer/Drawer.tsx
|
|
890
|
+
function Ct({ trigger: e, title: t, children: n, ...r }) {
|
|
891
|
+
return /* @__PURE__ */ w(O.Root, {
|
|
892
|
+
swipeDirection: "right",
|
|
893
|
+
...r,
|
|
894
|
+
children: [/* @__PURE__ */ C(O.Trigger, { render: e }), /* @__PURE__ */ w(O.Portal, { children: [/* @__PURE__ */ C(O.Backdrop, { className: R.backdrop }), /* @__PURE__ */ C(O.Viewport, {
|
|
895
|
+
className: R.viewport,
|
|
896
|
+
children: /* @__PURE__ */ C(O.Popup, {
|
|
897
|
+
className: R.popup,
|
|
898
|
+
children: /* @__PURE__ */ w(O.Content, {
|
|
899
|
+
className: R.content,
|
|
900
|
+
children: [/* @__PURE__ */ w("div", {
|
|
901
|
+
className: R.header,
|
|
902
|
+
children: [/* @__PURE__ */ C(O.Title, {
|
|
903
|
+
className: R.title,
|
|
904
|
+
children: t
|
|
905
|
+
}), /* @__PURE__ */ C(O.Close, {
|
|
906
|
+
className: R.close,
|
|
907
|
+
"aria-label": "Close",
|
|
908
|
+
children: "×"
|
|
909
|
+
})]
|
|
910
|
+
}), n]
|
|
911
|
+
})
|
|
912
|
+
})
|
|
913
|
+
})] })]
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
var wt = {
|
|
917
|
+
root: "_root_11udt_1",
|
|
918
|
+
icon: "_icon_11udt_15",
|
|
919
|
+
title: "_title_11udt_26",
|
|
920
|
+
description: "_description_11udt_30",
|
|
921
|
+
action: "_action_11udt_35"
|
|
922
|
+
};
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region src/lib/empty-state/EmptyState.tsx
|
|
925
|
+
function Tt({ icon: e, title: t, description: n, action: r }) {
|
|
926
|
+
return /* @__PURE__ */ w("div", {
|
|
927
|
+
className: wt.root,
|
|
928
|
+
children: [
|
|
929
|
+
e != null && /* @__PURE__ */ C("span", {
|
|
930
|
+
className: wt.icon,
|
|
931
|
+
children: e
|
|
932
|
+
}),
|
|
933
|
+
/* @__PURE__ */ C("strong", {
|
|
934
|
+
className: wt.title,
|
|
935
|
+
children: t
|
|
936
|
+
}),
|
|
937
|
+
n != null && /* @__PURE__ */ C("p", {
|
|
938
|
+
className: wt.description,
|
|
939
|
+
children: n
|
|
940
|
+
}),
|
|
941
|
+
r != null && /* @__PURE__ */ C("div", {
|
|
942
|
+
className: wt.action,
|
|
943
|
+
children: r
|
|
944
|
+
})
|
|
945
|
+
]
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
var Et = {
|
|
949
|
+
root: "_root_1pu00_1",
|
|
950
|
+
button: "_button_1pu00_6",
|
|
951
|
+
selected: "_selected_1pu00_35"
|
|
952
|
+
};
|
|
953
|
+
//#endregion
|
|
954
|
+
//#region src/lib/feedback-buttons/FeedbackButtons.tsx
|
|
955
|
+
function Dt({ onFeedback: e }) {
|
|
956
|
+
let [t, n] = T(null);
|
|
957
|
+
function r(t) {
|
|
958
|
+
n(t), e?.(t);
|
|
959
|
+
}
|
|
960
|
+
return /* @__PURE__ */ w("div", {
|
|
961
|
+
className: Et.root,
|
|
962
|
+
children: [/* @__PURE__ */ C("button", {
|
|
963
|
+
type: "button",
|
|
964
|
+
"aria-label": "Good response",
|
|
965
|
+
"aria-pressed": t === "up",
|
|
966
|
+
className: `${Et.button} ${t === "up" ? Et.selected : ""}`,
|
|
967
|
+
onClick: () => r("up"),
|
|
968
|
+
children: /* @__PURE__ */ C(ie, {})
|
|
969
|
+
}), /* @__PURE__ */ C("button", {
|
|
970
|
+
type: "button",
|
|
971
|
+
"aria-label": "Bad response",
|
|
972
|
+
"aria-pressed": t === "down",
|
|
973
|
+
className: `${Et.button} ${t === "down" ? Et.selected : ""}`,
|
|
974
|
+
onClick: () => r("down"),
|
|
975
|
+
children: /* @__PURE__ */ C(re, {})
|
|
976
|
+
})]
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
var Ot = {
|
|
980
|
+
root: "_root_5w615_1",
|
|
981
|
+
label: "_label_5w615_9",
|
|
982
|
+
hint: "_hint_5w615_14",
|
|
983
|
+
error: "_error_5w615_20"
|
|
984
|
+
};
|
|
985
|
+
//#endregion
|
|
986
|
+
//#region src/lib/field/Field.tsx
|
|
987
|
+
function kt({ label: e, hint: t, error: n, children: r, ...i }) {
|
|
988
|
+
return /* @__PURE__ */ w(_e.Root, {
|
|
989
|
+
invalid: n != null,
|
|
990
|
+
...i,
|
|
991
|
+
className: Ot.root,
|
|
992
|
+
children: [
|
|
993
|
+
e != null && /* @__PURE__ */ C(_e.Label, {
|
|
994
|
+
className: Ot.label,
|
|
995
|
+
children: e
|
|
996
|
+
}),
|
|
997
|
+
r,
|
|
998
|
+
t != null && n == null && /* @__PURE__ */ C(_e.Description, {
|
|
999
|
+
className: Ot.hint,
|
|
1000
|
+
children: t
|
|
1001
|
+
}),
|
|
1002
|
+
n != null && /* @__PURE__ */ C(_e.Error, {
|
|
1003
|
+
match: !0,
|
|
1004
|
+
className: Ot.error,
|
|
1005
|
+
children: n
|
|
1006
|
+
})
|
|
1007
|
+
]
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
var At = { root: "_root_1egc0_1" };
|
|
1011
|
+
//#endregion
|
|
1012
|
+
//#region src/lib/inline-citation/InlineCitation.tsx
|
|
1013
|
+
function jt({ index: e, url: t, title: n }) {
|
|
1014
|
+
return /* @__PURE__ */ C(ct, {
|
|
1015
|
+
content: n ?? t,
|
|
1016
|
+
children: /* @__PURE__ */ w("a", {
|
|
1017
|
+
href: t,
|
|
1018
|
+
target: "_blank",
|
|
1019
|
+
rel: "noreferrer",
|
|
1020
|
+
className: At.root,
|
|
1021
|
+
children: [
|
|
1022
|
+
"[",
|
|
1023
|
+
e,
|
|
1024
|
+
"]"
|
|
1025
|
+
]
|
|
1026
|
+
})
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
var Mt = {
|
|
1030
|
+
root: "_root_1src3_1",
|
|
1031
|
+
group: "_group_1src3_28",
|
|
1032
|
+
bare: "_bare_1src3_43",
|
|
1033
|
+
affix: "_affix_1src3_63"
|
|
1034
|
+
};
|
|
1035
|
+
//#endregion
|
|
1036
|
+
//#region src/lib/input/Input.tsx
|
|
1037
|
+
function Nt({ prefix: e, suffix: t, ...n }) {
|
|
1038
|
+
return e == null && t == null ? /* @__PURE__ */ C(ve, {
|
|
1039
|
+
...n,
|
|
1040
|
+
className: Mt.root
|
|
1041
|
+
}) : /* @__PURE__ */ w("span", {
|
|
1042
|
+
className: Mt.group,
|
|
1043
|
+
children: [
|
|
1044
|
+
e != null && /* @__PURE__ */ C("span", {
|
|
1045
|
+
className: Mt.affix,
|
|
1046
|
+
children: e
|
|
1047
|
+
}),
|
|
1048
|
+
/* @__PURE__ */ C(ve, {
|
|
1049
|
+
...n,
|
|
1050
|
+
className: Mt.bare
|
|
1051
|
+
}),
|
|
1052
|
+
t != null && /* @__PURE__ */ C("span", {
|
|
1053
|
+
className: Mt.affix,
|
|
1054
|
+
children: t
|
|
1055
|
+
})
|
|
1056
|
+
]
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
var Pt = { root: "_root_iftjy_1" };
|
|
1060
|
+
//#endregion
|
|
1061
|
+
//#region src/lib/label/Label.tsx
|
|
1062
|
+
function Ft(e) {
|
|
1063
|
+
return /* @__PURE__ */ C("label", {
|
|
1064
|
+
...e,
|
|
1065
|
+
className: Pt.root
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
var z = {
|
|
1069
|
+
positioner: "_positioner_dlwmz_1",
|
|
1070
|
+
popup: "_popup_dlwmz_5",
|
|
1071
|
+
item: "_item_dlwmz_24",
|
|
1072
|
+
itemIcon: "_itemIcon_dlwmz_35",
|
|
1073
|
+
danger: "_danger_dlwmz_54",
|
|
1074
|
+
groupLabel: "_groupLabel_dlwmz_58",
|
|
1075
|
+
separator: "_separator_dlwmz_68"
|
|
1076
|
+
};
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region src/lib/menu/Menu.tsx
|
|
1079
|
+
function It({ item: e, index: t }) {
|
|
1080
|
+
return /* @__PURE__ */ w(k.Item, {
|
|
1081
|
+
disabled: e.disabled,
|
|
1082
|
+
onClick: e.onClick,
|
|
1083
|
+
className: `${z.item} ${e.danger ? z.danger : ""}`,
|
|
1084
|
+
children: [e.icon != null && /* @__PURE__ */ C("span", {
|
|
1085
|
+
className: z.itemIcon,
|
|
1086
|
+
children: e.icon
|
|
1087
|
+
}), e.label]
|
|
1088
|
+
}, t);
|
|
1089
|
+
}
|
|
1090
|
+
function Lt({ trigger: e, items: t, side: n, align: r, ...i }) {
|
|
1091
|
+
return /* @__PURE__ */ w(k.Root, {
|
|
1092
|
+
...i,
|
|
1093
|
+
children: [/* @__PURE__ */ C(k.Trigger, { render: e }), /* @__PURE__ */ C(k.Portal, { children: /* @__PURE__ */ C(k.Positioner, {
|
|
1094
|
+
side: n,
|
|
1095
|
+
align: r,
|
|
1096
|
+
sideOffset: 4,
|
|
1097
|
+
className: z.positioner,
|
|
1098
|
+
children: /* @__PURE__ */ C(k.Popup, {
|
|
1099
|
+
className: z.popup,
|
|
1100
|
+
children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ C(k.Separator, { className: z.separator }, t) : "group" in e ? /* @__PURE__ */ w(k.Group, { children: [/* @__PURE__ */ C(k.GroupLabel, {
|
|
1101
|
+
className: z.groupLabel,
|
|
1102
|
+
children: e.group
|
|
1103
|
+
}), e.items.map((e, t) => /* @__PURE__ */ C(It, {
|
|
1104
|
+
item: e,
|
|
1105
|
+
index: t
|
|
1106
|
+
}, t))] }, t) : /* @__PURE__ */ C(It, {
|
|
1107
|
+
item: e,
|
|
1108
|
+
index: t
|
|
1109
|
+
}, t))
|
|
1110
|
+
})
|
|
1111
|
+
}) })]
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
var Rt = {
|
|
1115
|
+
root: "_root_11yfx_1",
|
|
1116
|
+
user: "_user_11yfx_9",
|
|
1117
|
+
avatar: "_avatar_11yfx_13",
|
|
1118
|
+
bubble: "_bubble_11yfx_17",
|
|
1119
|
+
assistant: "_assistant_11yfx_31"
|
|
1120
|
+
};
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/lib/message/Message.tsx
|
|
1123
|
+
function zt({ role: e, avatar: t, children: n }) {
|
|
1124
|
+
return /* @__PURE__ */ w("div", {
|
|
1125
|
+
className: `${Rt.root} ${Rt[e]}`,
|
|
1126
|
+
children: [t != null && /* @__PURE__ */ C("span", {
|
|
1127
|
+
className: Rt.avatar,
|
|
1128
|
+
children: t
|
|
1129
|
+
}), /* @__PURE__ */ C("div", {
|
|
1130
|
+
className: Rt.bubble,
|
|
1131
|
+
children: n
|
|
1132
|
+
})]
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
var Bt = { root: "_root_1slzu_1" }, Vt = [
|
|
1136
|
+
{
|
|
1137
|
+
key: "onRegenerate",
|
|
1138
|
+
label: "Regenerate",
|
|
1139
|
+
icon: /* @__PURE__ */ C(ne, {})
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
key: "onEdit",
|
|
1143
|
+
label: "Edit & resend",
|
|
1144
|
+
icon: /* @__PURE__ */ C(v, {})
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
key: "onCopy",
|
|
1148
|
+
label: "Copy",
|
|
1149
|
+
icon: /* @__PURE__ */ C(u, {})
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
key: "onBranch",
|
|
1153
|
+
label: "Branch from here",
|
|
1154
|
+
icon: /* @__PURE__ */ C(te, {})
|
|
1155
|
+
}
|
|
1156
|
+
];
|
|
1157
|
+
function Ht(e) {
|
|
1158
|
+
return /* @__PURE__ */ C("div", {
|
|
1159
|
+
className: Bt.root,
|
|
1160
|
+
children: Vt.map(({ key: t, label: n, icon: r }) => {
|
|
1161
|
+
let i = e[t];
|
|
1162
|
+
return i ? /* @__PURE__ */ C(ct, {
|
|
1163
|
+
content: n,
|
|
1164
|
+
children: /* @__PURE__ */ C(N, {
|
|
1165
|
+
variant: "ghost",
|
|
1166
|
+
iconOnly: !0,
|
|
1167
|
+
"aria-label": n,
|
|
1168
|
+
onClick: i,
|
|
1169
|
+
children: r
|
|
1170
|
+
})
|
|
1171
|
+
}, t) : null;
|
|
1172
|
+
})
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
var Ut = {
|
|
1176
|
+
root: "_root_1ulej_1",
|
|
1177
|
+
label: "_label_1ulej_10",
|
|
1178
|
+
value: "_value_1ulej_14",
|
|
1179
|
+
track: "_track_1ulej_20",
|
|
1180
|
+
indicator: "_indicator_1ulej_28"
|
|
1181
|
+
};
|
|
1182
|
+
//#endregion
|
|
1183
|
+
//#region src/lib/meter/Meter.tsx
|
|
1184
|
+
function Wt({ label: e, ...t }) {
|
|
1185
|
+
return /* @__PURE__ */ w(ye.Root, {
|
|
1186
|
+
...t,
|
|
1187
|
+
className: Ut.root,
|
|
1188
|
+
children: [
|
|
1189
|
+
e != null && /* @__PURE__ */ C(ye.Label, {
|
|
1190
|
+
className: Ut.label,
|
|
1191
|
+
children: e
|
|
1192
|
+
}),
|
|
1193
|
+
/* @__PURE__ */ C(ye.Value, { className: Ut.value }),
|
|
1194
|
+
/* @__PURE__ */ C(ye.Track, {
|
|
1195
|
+
className: Ut.track,
|
|
1196
|
+
children: /* @__PURE__ */ C(ye.Indicator, { className: Ut.indicator })
|
|
1197
|
+
})
|
|
1198
|
+
]
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
var Gt = {
|
|
1202
|
+
root: "_root_ce7wr_1",
|
|
1203
|
+
group: "_group_ce7wr_5",
|
|
1204
|
+
stepper: "_stepper_ce7wr_20",
|
|
1205
|
+
input: "_input_ce7wr_52"
|
|
1206
|
+
};
|
|
1207
|
+
//#endregion
|
|
1208
|
+
//#region src/lib/number-field/NumberField.tsx
|
|
1209
|
+
function Kt(e) {
|
|
1210
|
+
return /* @__PURE__ */ C(be.Root, {
|
|
1211
|
+
...e,
|
|
1212
|
+
className: Gt.root,
|
|
1213
|
+
children: /* @__PURE__ */ w(be.Group, {
|
|
1214
|
+
className: Gt.group,
|
|
1215
|
+
children: [
|
|
1216
|
+
/* @__PURE__ */ C(be.Decrement, {
|
|
1217
|
+
className: Gt.stepper,
|
|
1218
|
+
"aria-label": "Decrease",
|
|
1219
|
+
children: /* @__PURE__ */ C(_, {})
|
|
1220
|
+
}),
|
|
1221
|
+
/* @__PURE__ */ C(be.Input, { className: Gt.input }),
|
|
1222
|
+
/* @__PURE__ */ C(be.Increment, {
|
|
1223
|
+
className: Gt.stepper,
|
|
1224
|
+
"aria-label": "Increase",
|
|
1225
|
+
children: /* @__PURE__ */ C(y, {})
|
|
1226
|
+
})
|
|
1227
|
+
]
|
|
1228
|
+
})
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
var qt = {
|
|
1232
|
+
root: "_root_1km66_1",
|
|
1233
|
+
button: "_button_1km66_7",
|
|
1234
|
+
current: "_current_1km66_25",
|
|
1235
|
+
ellipsis: "_ellipsis_1km66_49"
|
|
1236
|
+
};
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region src/lib/pagination/Pagination.tsx
|
|
1239
|
+
function Jt(e, t) {
|
|
1240
|
+
return t <= 7 ? Array.from({ length: t }, (e, t) => t + 1) : e <= 3 ? [
|
|
1241
|
+
1,
|
|
1242
|
+
2,
|
|
1243
|
+
3,
|
|
1244
|
+
4,
|
|
1245
|
+
5,
|
|
1246
|
+
"…",
|
|
1247
|
+
t
|
|
1248
|
+
] : e >= t - 2 ? [
|
|
1249
|
+
1,
|
|
1250
|
+
"…",
|
|
1251
|
+
t - 4,
|
|
1252
|
+
t - 3,
|
|
1253
|
+
t - 2,
|
|
1254
|
+
t - 1,
|
|
1255
|
+
t
|
|
1256
|
+
] : [
|
|
1257
|
+
1,
|
|
1258
|
+
"…",
|
|
1259
|
+
e - 1,
|
|
1260
|
+
e,
|
|
1261
|
+
e + 1,
|
|
1262
|
+
"…",
|
|
1263
|
+
t
|
|
1264
|
+
];
|
|
1265
|
+
}
|
|
1266
|
+
function Yt({ page: e, pageCount: t, onPageChange: n }) {
|
|
1267
|
+
return /* @__PURE__ */ w("nav", {
|
|
1268
|
+
className: qt.root,
|
|
1269
|
+
"aria-label": "Pagination",
|
|
1270
|
+
children: [
|
|
1271
|
+
/* @__PURE__ */ C("button", {
|
|
1272
|
+
type: "button",
|
|
1273
|
+
className: qt.button,
|
|
1274
|
+
disabled: e <= 1,
|
|
1275
|
+
onClick: () => n(e - 1),
|
|
1276
|
+
"aria-label": "Previous page",
|
|
1277
|
+
children: /* @__PURE__ */ C(a, {})
|
|
1278
|
+
}),
|
|
1279
|
+
Jt(e, t).map((t, r) => t === "…" ? /* @__PURE__ */ C("span", {
|
|
1280
|
+
className: qt.ellipsis,
|
|
1281
|
+
children: "…"
|
|
1282
|
+
}, `gap-${r}`) : /* @__PURE__ */ C("button", {
|
|
1283
|
+
type: "button",
|
|
1284
|
+
className: `${qt.button} ${t === e ? qt.current : ""}`,
|
|
1285
|
+
"aria-current": t === e ? "page" : void 0,
|
|
1286
|
+
onClick: () => n(t),
|
|
1287
|
+
children: t
|
|
1288
|
+
}, t)),
|
|
1289
|
+
/* @__PURE__ */ C("button", {
|
|
1290
|
+
type: "button",
|
|
1291
|
+
className: qt.button,
|
|
1292
|
+
disabled: e >= t,
|
|
1293
|
+
onClick: () => n(e + 1),
|
|
1294
|
+
"aria-label": "Next page",
|
|
1295
|
+
children: /* @__PURE__ */ C(o, {})
|
|
1296
|
+
})
|
|
1297
|
+
]
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
var B = {
|
|
1301
|
+
root: "_root_bluvi_1",
|
|
1302
|
+
header: "_header_bluvi_10",
|
|
1303
|
+
title: "_title_bluvi_18",
|
|
1304
|
+
progress: "_progress_bluvi_22",
|
|
1305
|
+
list: "_list_bluvi_28",
|
|
1306
|
+
step: "_step_bluvi_37",
|
|
1307
|
+
iconCell: "_iconCell_bluvi_43",
|
|
1308
|
+
dot: "_dot_bluvi_63",
|
|
1309
|
+
iconDone: "_iconDone_bluvi_70",
|
|
1310
|
+
iconError: "_iconError_bluvi_74",
|
|
1311
|
+
done: "_done_bluvi_78",
|
|
1312
|
+
label: "_label_bluvi_78",
|
|
1313
|
+
pending: "_pending_bluvi_82",
|
|
1314
|
+
active: "_active_bluvi_87",
|
|
1315
|
+
shimmer: "_shimmer_bluvi_1"
|
|
1316
|
+
};
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region src/lib/plan/Plan.tsx
|
|
1319
|
+
function Xt({ status: e }) {
|
|
1320
|
+
return e === "active" ? /* @__PURE__ */ C(Me, { size: "sm" }) : e === "done" ? /* @__PURE__ */ C(r, { className: B.iconDone }) : e === "error" ? /* @__PURE__ */ C(c, { className: B.iconError }) : /* @__PURE__ */ C("span", { className: B.dot });
|
|
1321
|
+
}
|
|
1322
|
+
function Zt({ title: e, steps: t }) {
|
|
1323
|
+
let n = t.filter((e) => e.status === "done").length;
|
|
1324
|
+
return /* @__PURE__ */ w("div", {
|
|
1325
|
+
className: B.root,
|
|
1326
|
+
children: [/* @__PURE__ */ w("div", {
|
|
1327
|
+
className: B.header,
|
|
1328
|
+
children: [/* @__PURE__ */ C("span", {
|
|
1329
|
+
className: B.title,
|
|
1330
|
+
children: e ?? "Plan"
|
|
1331
|
+
}), /* @__PURE__ */ w("span", {
|
|
1332
|
+
className: B.progress,
|
|
1333
|
+
children: [
|
|
1334
|
+
n,
|
|
1335
|
+
" / ",
|
|
1336
|
+
t.length
|
|
1337
|
+
]
|
|
1338
|
+
})]
|
|
1339
|
+
}), /* @__PURE__ */ C("ol", {
|
|
1340
|
+
className: B.list,
|
|
1341
|
+
children: t.map((e, t) => {
|
|
1342
|
+
let n = e.status ?? "pending";
|
|
1343
|
+
return /* @__PURE__ */ w("li", {
|
|
1344
|
+
className: `${B.step} ${B[n]}`,
|
|
1345
|
+
children: [/* @__PURE__ */ C("span", {
|
|
1346
|
+
className: B.iconCell,
|
|
1347
|
+
children: /* @__PURE__ */ C(Xt, { status: n })
|
|
1348
|
+
}), /* @__PURE__ */ C("span", {
|
|
1349
|
+
className: B.label,
|
|
1350
|
+
children: e.title
|
|
1351
|
+
})]
|
|
1352
|
+
}, t);
|
|
1353
|
+
})
|
|
1354
|
+
})]
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
var Qt = {
|
|
1358
|
+
positioner: "_positioner_1obqp_1",
|
|
1359
|
+
popup: "_popup_1obqp_5",
|
|
1360
|
+
title: "_title_1obqp_27"
|
|
1361
|
+
};
|
|
1362
|
+
//#endregion
|
|
1363
|
+
//#region src/lib/popover/Popover.tsx
|
|
1364
|
+
function $t({ trigger: e, title: t, children: n, ...r }) {
|
|
1365
|
+
return /* @__PURE__ */ w(xe.Root, {
|
|
1366
|
+
...r,
|
|
1367
|
+
children: [/* @__PURE__ */ C(xe.Trigger, { render: e }), /* @__PURE__ */ C(xe.Portal, { children: /* @__PURE__ */ C(xe.Positioner, {
|
|
1368
|
+
sideOffset: 6,
|
|
1369
|
+
className: Qt.positioner,
|
|
1370
|
+
children: /* @__PURE__ */ w(xe.Popup, {
|
|
1371
|
+
className: Qt.popup,
|
|
1372
|
+
children: [t != null && /* @__PURE__ */ C(xe.Title, {
|
|
1373
|
+
className: Qt.title,
|
|
1374
|
+
children: t
|
|
1375
|
+
}), n]
|
|
1376
|
+
})
|
|
1377
|
+
}) })]
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
var en = {
|
|
1381
|
+
root: "_root_17kww_1",
|
|
1382
|
+
track: "_track_17kww_6",
|
|
1383
|
+
indicator: "_indicator_17kww_14"
|
|
1384
|
+
};
|
|
1385
|
+
//#endregion
|
|
1386
|
+
//#region src/lib/progress/Progress.tsx
|
|
1387
|
+
function tn(e) {
|
|
1388
|
+
return /* @__PURE__ */ C(Se.Root, {
|
|
1389
|
+
...e,
|
|
1390
|
+
className: en.root,
|
|
1391
|
+
children: /* @__PURE__ */ C(Se.Track, {
|
|
1392
|
+
className: en.track,
|
|
1393
|
+
children: /* @__PURE__ */ C(Se.Indicator, { className: en.indicator })
|
|
1394
|
+
})
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
var nn = {
|
|
1398
|
+
root: "_root_19uae_1",
|
|
1399
|
+
textarea: "_textarea_19uae_16",
|
|
1400
|
+
footer: "_footer_19uae_35",
|
|
1401
|
+
actions: "_actions_19uae_55"
|
|
1402
|
+
};
|
|
1403
|
+
//#endregion
|
|
1404
|
+
//#region src/lib/prompt-input/PromptInput.tsx
|
|
1405
|
+
function rn({ placeholder: e = "Ask anything…", disabled: n, actions: r, value: i, onValueChange: a, onSubmit: o }) {
|
|
1406
|
+
let [s, c] = T(""), l = i ?? s;
|
|
1407
|
+
function u(e) {
|
|
1408
|
+
c(e), a?.(e);
|
|
1409
|
+
}
|
|
1410
|
+
function d() {
|
|
1411
|
+
let e = l.trim();
|
|
1412
|
+
!e || n || (o?.(e), u(""));
|
|
1413
|
+
}
|
|
1414
|
+
return /* @__PURE__ */ w("div", {
|
|
1415
|
+
className: nn.root,
|
|
1416
|
+
children: [/* @__PURE__ */ C("textarea", {
|
|
1417
|
+
className: nn.textarea,
|
|
1418
|
+
rows: 2,
|
|
1419
|
+
placeholder: e,
|
|
1420
|
+
disabled: n,
|
|
1421
|
+
value: l,
|
|
1422
|
+
onChange: (e) => u(e.target.value),
|
|
1423
|
+
onKeyDown: (e) => {
|
|
1424
|
+
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), d());
|
|
1425
|
+
}
|
|
1426
|
+
}), /* @__PURE__ */ w("div", {
|
|
1427
|
+
className: nn.footer,
|
|
1428
|
+
children: [/* @__PURE__ */ C("div", {
|
|
1429
|
+
className: nn.actions,
|
|
1430
|
+
children: r
|
|
1431
|
+
}), /* @__PURE__ */ C(N, {
|
|
1432
|
+
iconOnly: !0,
|
|
1433
|
+
"aria-label": "Send",
|
|
1434
|
+
disabled: n || !l.trim(),
|
|
1435
|
+
onClick: d,
|
|
1436
|
+
children: /* @__PURE__ */ C(t, {})
|
|
1437
|
+
})]
|
|
1438
|
+
})]
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
var an = {
|
|
1442
|
+
root: "_root_zkx40_1",
|
|
1443
|
+
item: "_item_zkx40_12",
|
|
1444
|
+
position: "_position_zkx40_22",
|
|
1445
|
+
label: "_label_zkx40_28",
|
|
1446
|
+
remove: "_remove_zkx40_35"
|
|
1447
|
+
};
|
|
1448
|
+
//#endregion
|
|
1449
|
+
//#region src/lib/queue/Queue.tsx
|
|
1450
|
+
function on({ items: e, onRemove: t }) {
|
|
1451
|
+
return /* @__PURE__ */ C("ol", {
|
|
1452
|
+
className: an.root,
|
|
1453
|
+
children: e.map((e, n) => /* @__PURE__ */ w("li", {
|
|
1454
|
+
className: an.item,
|
|
1455
|
+
children: [
|
|
1456
|
+
/* @__PURE__ */ C("span", {
|
|
1457
|
+
className: an.position,
|
|
1458
|
+
children: n + 1
|
|
1459
|
+
}),
|
|
1460
|
+
/* @__PURE__ */ C("span", {
|
|
1461
|
+
className: an.label,
|
|
1462
|
+
children: e.label
|
|
1463
|
+
}),
|
|
1464
|
+
t && /* @__PURE__ */ C("button", {
|
|
1465
|
+
type: "button",
|
|
1466
|
+
"aria-label": "Remove from queue",
|
|
1467
|
+
className: an.remove,
|
|
1468
|
+
onClick: () => t(e.id),
|
|
1469
|
+
children: /* @__PURE__ */ C(x, {})
|
|
1470
|
+
})
|
|
1471
|
+
]
|
|
1472
|
+
}, e.id))
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
var sn = {
|
|
1476
|
+
group: "_group_1ygs1_1",
|
|
1477
|
+
label: "_label_1ygs1_7",
|
|
1478
|
+
radio: "_radio_1ygs1_16",
|
|
1479
|
+
indicator: "_indicator_1ygs1_45"
|
|
1480
|
+
};
|
|
1481
|
+
//#endregion
|
|
1482
|
+
//#region src/lib/radio/RadioGroup.tsx
|
|
1483
|
+
function cn({ items: e, ...t }) {
|
|
1484
|
+
return /* @__PURE__ */ C(we, {
|
|
1485
|
+
...t,
|
|
1486
|
+
className: sn.group,
|
|
1487
|
+
children: e.map((e) => /* @__PURE__ */ w("label", {
|
|
1488
|
+
className: sn.label,
|
|
1489
|
+
children: [/* @__PURE__ */ C(Ce.Root, {
|
|
1490
|
+
value: e.value,
|
|
1491
|
+
className: sn.radio,
|
|
1492
|
+
children: /* @__PURE__ */ C(Ce.Indicator, { className: sn.indicator })
|
|
1493
|
+
}), e.label]
|
|
1494
|
+
}, e.value))
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
var V = {
|
|
1498
|
+
trigger: "_trigger_1pklq_1",
|
|
1499
|
+
ghost: "_ghost_1pklq_17",
|
|
1500
|
+
value: "_value_1pklq_44",
|
|
1501
|
+
icon: "_icon_1pklq_49",
|
|
1502
|
+
positioner: "_positioner_1pklq_54",
|
|
1503
|
+
popup: "_popup_1pklq_58",
|
|
1504
|
+
item: "_item_1pklq_70",
|
|
1505
|
+
itemIndicator: "_itemIndicator_1pklq_87",
|
|
1506
|
+
itemText: "_itemText_1pklq_93"
|
|
1507
|
+
};
|
|
1508
|
+
//#endregion
|
|
1509
|
+
//#region src/lib/select/Select.tsx
|
|
1510
|
+
function ln({ items: e, placeholder: t, variant: n = "default", ...r }) {
|
|
1511
|
+
return /* @__PURE__ */ w(A.Root, {
|
|
1512
|
+
items: e,
|
|
1513
|
+
...r,
|
|
1514
|
+
children: [/* @__PURE__ */ w(A.Trigger, {
|
|
1515
|
+
className: `${V.trigger} ${n === "ghost" ? V.ghost : ""}`,
|
|
1516
|
+
children: [/* @__PURE__ */ C(A.Value, {
|
|
1517
|
+
className: V.value,
|
|
1518
|
+
placeholder: t
|
|
1519
|
+
}), /* @__PURE__ */ C(A.Icon, {
|
|
1520
|
+
className: V.icon,
|
|
1521
|
+
children: /* @__PURE__ */ C("svg", {
|
|
1522
|
+
viewBox: "0 0 10 6",
|
|
1523
|
+
width: "10",
|
|
1524
|
+
height: "6",
|
|
1525
|
+
fill: "none",
|
|
1526
|
+
"aria-hidden": !0,
|
|
1527
|
+
children: /* @__PURE__ */ C("path", {
|
|
1528
|
+
d: "M1 1l4 4 4-4",
|
|
1529
|
+
stroke: "currentColor",
|
|
1530
|
+
strokeWidth: "1.5"
|
|
1531
|
+
})
|
|
1532
|
+
})
|
|
1533
|
+
})]
|
|
1534
|
+
}), /* @__PURE__ */ C(A.Portal, { children: /* @__PURE__ */ C(A.Positioner, {
|
|
1535
|
+
className: V.positioner,
|
|
1536
|
+
sideOffset: 4,
|
|
1537
|
+
alignItemWithTrigger: !1,
|
|
1538
|
+
children: /* @__PURE__ */ C(A.Popup, {
|
|
1539
|
+
className: V.popup,
|
|
1540
|
+
children: e.map((e) => /* @__PURE__ */ w(A.Item, {
|
|
1541
|
+
value: e.value,
|
|
1542
|
+
className: V.item,
|
|
1543
|
+
children: [/* @__PURE__ */ C(A.ItemIndicator, {
|
|
1544
|
+
className: V.itemIndicator,
|
|
1545
|
+
children: /* @__PURE__ */ C("svg", {
|
|
1546
|
+
viewBox: "0 0 12 10",
|
|
1547
|
+
width: "10",
|
|
1548
|
+
height: "8",
|
|
1549
|
+
fill: "none",
|
|
1550
|
+
"aria-hidden": !0,
|
|
1551
|
+
children: /* @__PURE__ */ C("path", {
|
|
1552
|
+
d: "M1 5l3.5 3.5L11 1",
|
|
1553
|
+
stroke: "currentColor",
|
|
1554
|
+
strokeWidth: "2"
|
|
1555
|
+
})
|
|
1556
|
+
})
|
|
1557
|
+
}), /* @__PURE__ */ C(A.ItemText, {
|
|
1558
|
+
className: V.itemText,
|
|
1559
|
+
children: e.label
|
|
1560
|
+
})]
|
|
1561
|
+
}, e.value))
|
|
1562
|
+
})
|
|
1563
|
+
}) })]
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
var un = {
|
|
1567
|
+
root: "_root_tgugn_1",
|
|
1568
|
+
shimmer: "_shimmer_tgugn_1"
|
|
1569
|
+
};
|
|
1570
|
+
//#endregion
|
|
1571
|
+
//#region src/lib/shimmer/Shimmer.tsx
|
|
1572
|
+
function dn({ children: e }) {
|
|
1573
|
+
return /* @__PURE__ */ C("span", {
|
|
1574
|
+
className: un.root,
|
|
1575
|
+
children: e
|
|
1576
|
+
});
|
|
1577
|
+
}
|
|
1578
|
+
var H = {
|
|
1579
|
+
root: "_root_63dbe_1",
|
|
1580
|
+
item: "_item_63dbe_41",
|
|
1581
|
+
mobileBackdrop: "_mobileBackdrop_63dbe_45",
|
|
1582
|
+
header: "_header_63dbe_54",
|
|
1583
|
+
headerIcon: "_headerIcon_63dbe_62",
|
|
1584
|
+
headerText: "_headerText_63dbe_79",
|
|
1585
|
+
headerTitle: "_headerTitle_63dbe_85",
|
|
1586
|
+
headerSubtitle: "_headerSubtitle_63dbe_91",
|
|
1587
|
+
nav: "_nav_63dbe_107",
|
|
1588
|
+
indicator: "_indicator_63dbe_118",
|
|
1589
|
+
sectionTitle: "_sectionTitle_63dbe_128",
|
|
1590
|
+
section: "_section_63dbe_128",
|
|
1591
|
+
list: "_list_63dbe_149",
|
|
1592
|
+
icon: "_icon_63dbe_195",
|
|
1593
|
+
label: "_label_63dbe_210",
|
|
1594
|
+
badge: "_badge_63dbe_216",
|
|
1595
|
+
footerActions: "_footerActions_63dbe_256",
|
|
1596
|
+
footer: "_footer_63dbe_256",
|
|
1597
|
+
grabber: "_grabber_63dbe_276",
|
|
1598
|
+
grabberHandle: "_grabberHandle_63dbe_295"
|
|
1599
|
+
}, fn = "(max-width: 768px)";
|
|
1600
|
+
function pn(e) {
|
|
1601
|
+
let t = window.matchMedia(fn);
|
|
1602
|
+
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
1603
|
+
}
|
|
1604
|
+
function mn() {
|
|
1605
|
+
return fe(pn, () => window.matchMedia(fn).matches, () => !1);
|
|
1606
|
+
}
|
|
1607
|
+
function hn(e) {
|
|
1608
|
+
return typeof e == "object" && !!e && !se(e) && "title" in e;
|
|
1609
|
+
}
|
|
1610
|
+
function gn({ header: e, sections: t, footer: n, activeKey: r, onNavigate: i, collapsed: s, onCollapsedChange: c, footerActions: l, mobileOpen: u, onMobileOpenChange: d }) {
|
|
1611
|
+
let ee = de(null), [f, te] = T(null), p = de(null), m = de(/* @__PURE__ */ new Map()), [h, g] = T(null), _ = mn() && d != null, v = !_ && s;
|
|
1612
|
+
return ce(() => {
|
|
1613
|
+
if (!_ || !u) return;
|
|
1614
|
+
let e = (e) => {
|
|
1615
|
+
e.key === "Escape" && d(!1);
|
|
1616
|
+
};
|
|
1617
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
1618
|
+
}, [
|
|
1619
|
+
_,
|
|
1620
|
+
u,
|
|
1621
|
+
d
|
|
1622
|
+
]), le(() => {
|
|
1623
|
+
let e = r == null ? null : m.current.get(r), t = p.current;
|
|
1624
|
+
if (e == null || t == null) {
|
|
1625
|
+
g(null);
|
|
1626
|
+
return;
|
|
1627
|
+
}
|
|
1628
|
+
g({
|
|
1629
|
+
top: e.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop,
|
|
1630
|
+
height: e.offsetHeight
|
|
1631
|
+
});
|
|
1632
|
+
}, [
|
|
1633
|
+
r,
|
|
1634
|
+
v,
|
|
1635
|
+
t
|
|
1636
|
+
]), /* @__PURE__ */ w(S, { children: [_ && u && /* @__PURE__ */ C("button", {
|
|
1637
|
+
type: "button",
|
|
1638
|
+
className: H.mobileBackdrop,
|
|
1639
|
+
"aria-label": "Close navigation",
|
|
1640
|
+
onClick: () => d(!1)
|
|
1641
|
+
}), /* @__PURE__ */ w("aside", {
|
|
1642
|
+
ref: ee,
|
|
1643
|
+
className: H.root,
|
|
1644
|
+
"data-collapsed": v || void 0,
|
|
1645
|
+
"data-mobile": _ || void 0,
|
|
1646
|
+
"data-mobile-open": _ && u || void 0,
|
|
1647
|
+
inert: _ && !u ? !0 : void 0,
|
|
1648
|
+
children: [
|
|
1649
|
+
e != null && /* @__PURE__ */ C("div", {
|
|
1650
|
+
className: H.header,
|
|
1651
|
+
children: hn(e) ? /* @__PURE__ */ w(S, { children: [e.icon != null && /* @__PURE__ */ C("span", {
|
|
1652
|
+
className: H.headerIcon,
|
|
1653
|
+
children: e.icon
|
|
1654
|
+
}), /* @__PURE__ */ w("span", {
|
|
1655
|
+
className: H.headerText,
|
|
1656
|
+
children: [/* @__PURE__ */ C("span", {
|
|
1657
|
+
className: H.headerTitle,
|
|
1658
|
+
children: e.title
|
|
1659
|
+
}), e.subtitle != null && /* @__PURE__ */ C("span", {
|
|
1660
|
+
className: H.headerSubtitle,
|
|
1661
|
+
children: e.subtitle
|
|
1662
|
+
})]
|
|
1663
|
+
})] }) : e
|
|
1664
|
+
}),
|
|
1665
|
+
/* @__PURE__ */ w("nav", {
|
|
1666
|
+
ref: p,
|
|
1667
|
+
className: H.nav,
|
|
1668
|
+
children: [h != null && /* @__PURE__ */ C("span", {
|
|
1669
|
+
className: H.indicator,
|
|
1670
|
+
style: {
|
|
1671
|
+
top: h.top,
|
|
1672
|
+
height: h.height
|
|
1673
|
+
},
|
|
1674
|
+
"aria-hidden": !0
|
|
1675
|
+
}), t.map((e, t) => /* @__PURE__ */ w("div", {
|
|
1676
|
+
className: H.section,
|
|
1677
|
+
children: [e.title != null && /* @__PURE__ */ C("div", {
|
|
1678
|
+
className: H.sectionTitle,
|
|
1679
|
+
children: e.title
|
|
1680
|
+
}), /* @__PURE__ */ C("ul", {
|
|
1681
|
+
className: H.list,
|
|
1682
|
+
children: e.items.map((e) => {
|
|
1683
|
+
let t = e.key === r, n = /* @__PURE__ */ w(S, { children: [
|
|
1684
|
+
e.icon != null && /* @__PURE__ */ C("span", {
|
|
1685
|
+
className: H.icon,
|
|
1686
|
+
children: e.icon
|
|
1687
|
+
}),
|
|
1688
|
+
/* @__PURE__ */ C("span", {
|
|
1689
|
+
className: H.label,
|
|
1690
|
+
children: e.label
|
|
1691
|
+
}),
|
|
1692
|
+
e.badge != null && /* @__PURE__ */ C("span", {
|
|
1693
|
+
className: H.badge,
|
|
1694
|
+
children: e.badge
|
|
1695
|
+
})
|
|
1696
|
+
] }), a = {
|
|
1697
|
+
className: H.item,
|
|
1698
|
+
"aria-current": t ? "page" : void 0,
|
|
1699
|
+
onClick: () => {
|
|
1700
|
+
e.onClick?.(), i?.(e.key), _ && d(!1);
|
|
1701
|
+
}
|
|
1702
|
+
}, o = e.href == null ? /* @__PURE__ */ C("button", {
|
|
1703
|
+
type: "button",
|
|
1704
|
+
...a,
|
|
1705
|
+
children: n
|
|
1706
|
+
}) : /* @__PURE__ */ C("a", {
|
|
1707
|
+
href: e.href,
|
|
1708
|
+
...a,
|
|
1709
|
+
children: n
|
|
1710
|
+
});
|
|
1711
|
+
return /* @__PURE__ */ C("li", {
|
|
1712
|
+
ref: (t) => {
|
|
1713
|
+
t ? m.current.set(e.key, t) : m.current.delete(e.key);
|
|
1714
|
+
},
|
|
1715
|
+
children: v ? /* @__PURE__ */ C(ct, {
|
|
1716
|
+
content: e.label,
|
|
1717
|
+
side: "right",
|
|
1718
|
+
children: o
|
|
1719
|
+
}) : o
|
|
1720
|
+
}, e.key);
|
|
1721
|
+
})
|
|
1722
|
+
})]
|
|
1723
|
+
}, t))]
|
|
1724
|
+
}),
|
|
1725
|
+
l != null && /* @__PURE__ */ C("div", {
|
|
1726
|
+
className: H.footerActions,
|
|
1727
|
+
children: l
|
|
1728
|
+
}),
|
|
1729
|
+
n != null && /* @__PURE__ */ C("div", {
|
|
1730
|
+
className: H.footer,
|
|
1731
|
+
children: n
|
|
1732
|
+
}),
|
|
1733
|
+
c != null && !_ && /* @__PURE__ */ C("button", {
|
|
1734
|
+
type: "button",
|
|
1735
|
+
className: H.grabber,
|
|
1736
|
+
"aria-label": v ? "Expand sidebar" : "Collapse sidebar",
|
|
1737
|
+
"aria-expanded": !v,
|
|
1738
|
+
onClick: () => c(!v),
|
|
1739
|
+
onMouseMove: (e) => {
|
|
1740
|
+
let t = ee.current?.getBoundingClientRect().top ?? 0;
|
|
1741
|
+
te(e.clientY - t);
|
|
1742
|
+
},
|
|
1743
|
+
children: /* @__PURE__ */ C("span", {
|
|
1744
|
+
className: H.grabberHandle,
|
|
1745
|
+
style: f == null ? void 0 : { top: f },
|
|
1746
|
+
"aria-hidden": !0,
|
|
1747
|
+
children: C(v ? o : a, {})
|
|
1748
|
+
})
|
|
1749
|
+
})
|
|
1750
|
+
]
|
|
1751
|
+
})] });
|
|
1752
|
+
}
|
|
1753
|
+
var _n = {
|
|
1754
|
+
root: "_root_h0sez_1",
|
|
1755
|
+
pulse: "_pulse_h0sez_1"
|
|
1756
|
+
};
|
|
1757
|
+
//#endregion
|
|
1758
|
+
//#region src/lib/skeleton/Skeleton.tsx
|
|
1759
|
+
function vn({ width: e = "100%", height: t = "1rem", circle: n }) {
|
|
1760
|
+
return /* @__PURE__ */ C("span", {
|
|
1761
|
+
className: _n.root,
|
|
1762
|
+
style: {
|
|
1763
|
+
width: e,
|
|
1764
|
+
height: t,
|
|
1765
|
+
borderRadius: n ? "50%" : void 0
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
}
|
|
1769
|
+
var yn = {
|
|
1770
|
+
root: "_root_cbbub_1",
|
|
1771
|
+
control: "_control_cbbub_7",
|
|
1772
|
+
track: "_track_cbbub_15",
|
|
1773
|
+
indicator: "_indicator_cbbub_23",
|
|
1774
|
+
thumb: "_thumb_cbbub_30"
|
|
1775
|
+
};
|
|
1776
|
+
//#endregion
|
|
1777
|
+
//#region src/lib/slider/Slider.tsx
|
|
1778
|
+
function bn(e) {
|
|
1779
|
+
return /* @__PURE__ */ C(Te.Root, {
|
|
1780
|
+
...e,
|
|
1781
|
+
className: yn.root,
|
|
1782
|
+
children: /* @__PURE__ */ C(Te.Control, {
|
|
1783
|
+
className: yn.control,
|
|
1784
|
+
children: /* @__PURE__ */ w(Te.Track, {
|
|
1785
|
+
className: yn.track,
|
|
1786
|
+
children: [/* @__PURE__ */ C(Te.Indicator, { className: yn.indicator }), /* @__PURE__ */ C(Te.Thumb, { className: yn.thumb })]
|
|
1787
|
+
})
|
|
1788
|
+
})
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
var U = {
|
|
1792
|
+
root: "_root_j8t8s_1",
|
|
1793
|
+
summary: "_summary_j8t8s_10",
|
|
1794
|
+
icon: "_icon_j8t8s_30",
|
|
1795
|
+
chevron: "_chevron_j8t8s_31",
|
|
1796
|
+
list: "_list_j8t8s_46",
|
|
1797
|
+
entry: "_entry_j8t8s_55",
|
|
1798
|
+
index: "_index_j8t8s_61",
|
|
1799
|
+
link: "_link_j8t8s_68",
|
|
1800
|
+
title: "_title_j8t8s_76",
|
|
1801
|
+
host: "_host_j8t8s_91",
|
|
1802
|
+
description: "_description_j8t8s_96"
|
|
1803
|
+
};
|
|
1804
|
+
//#endregion
|
|
1805
|
+
//#region src/lib/sources/Sources.tsx
|
|
1806
|
+
function xn(e) {
|
|
1807
|
+
try {
|
|
1808
|
+
return new URL(e).hostname.replace(/^www\./, "");
|
|
1809
|
+
} catch {
|
|
1810
|
+
return e;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
function Sn({ sources: e, defaultOpen: t }) {
|
|
1814
|
+
return /* @__PURE__ */ w("details", {
|
|
1815
|
+
className: U.root,
|
|
1816
|
+
open: t,
|
|
1817
|
+
children: [/* @__PURE__ */ w("summary", {
|
|
1818
|
+
className: U.summary,
|
|
1819
|
+
children: [
|
|
1820
|
+
/* @__PURE__ */ C(g, { className: U.icon }),
|
|
1821
|
+
/* @__PURE__ */ w("span", { children: [
|
|
1822
|
+
"Used ",
|
|
1823
|
+
e.length,
|
|
1824
|
+
" source",
|
|
1825
|
+
e.length === 1 ? "" : "s"
|
|
1826
|
+
] }),
|
|
1827
|
+
/* @__PURE__ */ C(i, { className: U.chevron })
|
|
1828
|
+
]
|
|
1829
|
+
}), /* @__PURE__ */ C("ul", {
|
|
1830
|
+
className: U.list,
|
|
1831
|
+
children: e.map((e, t) => /* @__PURE__ */ w("li", {
|
|
1832
|
+
className: U.entry,
|
|
1833
|
+
children: [/* @__PURE__ */ w("span", {
|
|
1834
|
+
className: U.index,
|
|
1835
|
+
children: [
|
|
1836
|
+
"[",
|
|
1837
|
+
t + 1,
|
|
1838
|
+
"]"
|
|
1839
|
+
]
|
|
1840
|
+
}), /* @__PURE__ */ w("a", {
|
|
1841
|
+
href: e.url,
|
|
1842
|
+
target: "_blank",
|
|
1843
|
+
rel: "noreferrer",
|
|
1844
|
+
className: U.link,
|
|
1845
|
+
children: [
|
|
1846
|
+
/* @__PURE__ */ C("span", {
|
|
1847
|
+
className: U.title,
|
|
1848
|
+
children: e.title
|
|
1849
|
+
}),
|
|
1850
|
+
/* @__PURE__ */ C("span", {
|
|
1851
|
+
className: U.host,
|
|
1852
|
+
children: xn(e.url)
|
|
1853
|
+
}),
|
|
1854
|
+
e.description != null && /* @__PURE__ */ C("span", {
|
|
1855
|
+
className: U.description,
|
|
1856
|
+
children: e.description
|
|
1857
|
+
})
|
|
1858
|
+
]
|
|
1859
|
+
})]
|
|
1860
|
+
}, t))
|
|
1861
|
+
})]
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
var W = {
|
|
1865
|
+
root: "_root_gfw1r_1",
|
|
1866
|
+
message: "_message_gfw1r_11",
|
|
1867
|
+
icon: "_icon_gfw1r_20",
|
|
1868
|
+
frames: "_frames_gfw1r_26",
|
|
1869
|
+
frame: "_frame_gfw1r_26",
|
|
1870
|
+
frameButton: "_frameButton_gfw1r_34",
|
|
1871
|
+
location: "_location_gfw1r_50",
|
|
1872
|
+
at: "_at_gfw1r_60"
|
|
1873
|
+
};
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region src/lib/stack-trace/StackTrace.tsx
|
|
1876
|
+
function Cn({ message: e, frames: t, onFrameClick: n }) {
|
|
1877
|
+
return /* @__PURE__ */ w("div", {
|
|
1878
|
+
className: W.root,
|
|
1879
|
+
children: [/* @__PURE__ */ w("div", {
|
|
1880
|
+
className: W.message,
|
|
1881
|
+
children: [/* @__PURE__ */ C(c, { className: W.icon }), e]
|
|
1882
|
+
}), /* @__PURE__ */ C("ol", {
|
|
1883
|
+
className: W.frames,
|
|
1884
|
+
children: t.map((e, t) => {
|
|
1885
|
+
let r = e.line == null ? e.file : `${e.file}:${e.line}`, i = /* @__PURE__ */ w(S, { children: [
|
|
1886
|
+
/* @__PURE__ */ C("span", {
|
|
1887
|
+
className: W.at,
|
|
1888
|
+
children: "at "
|
|
1889
|
+
}),
|
|
1890
|
+
e.fn,
|
|
1891
|
+
" ",
|
|
1892
|
+
/* @__PURE__ */ w("span", {
|
|
1893
|
+
className: W.location,
|
|
1894
|
+
children: [
|
|
1895
|
+
"(",
|
|
1896
|
+
r,
|
|
1897
|
+
")"
|
|
1898
|
+
]
|
|
1899
|
+
})
|
|
1900
|
+
] });
|
|
1901
|
+
return /* @__PURE__ */ C("li", { children: n ? /* @__PURE__ */ C("button", {
|
|
1902
|
+
type: "button",
|
|
1903
|
+
className: W.frameButton,
|
|
1904
|
+
onClick: () => n(e, t),
|
|
1905
|
+
children: i
|
|
1906
|
+
}) : /* @__PURE__ */ C("span", {
|
|
1907
|
+
className: W.frame,
|
|
1908
|
+
children: i
|
|
1909
|
+
}) }, t);
|
|
1910
|
+
})
|
|
1911
|
+
})]
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
var G = {
|
|
1915
|
+
root: "_root_1wkjk_1",
|
|
1916
|
+
label: "_label_1wkjk_13",
|
|
1917
|
+
value: "_value_1wkjk_21",
|
|
1918
|
+
footer: "_footer_1wkjk_29",
|
|
1919
|
+
deltaUp: "_deltaUp_1wkjk_36",
|
|
1920
|
+
deltaDown: "_deltaDown_1wkjk_41",
|
|
1921
|
+
hint: "_hint_1wkjk_46"
|
|
1922
|
+
};
|
|
1923
|
+
//#endregion
|
|
1924
|
+
//#region src/lib/stat-card/StatCard.tsx
|
|
1925
|
+
function wn({ label: e, value: t, delta: n, hint: r }) {
|
|
1926
|
+
return /* @__PURE__ */ w("div", {
|
|
1927
|
+
className: G.root,
|
|
1928
|
+
children: [
|
|
1929
|
+
/* @__PURE__ */ C("span", {
|
|
1930
|
+
className: G.label,
|
|
1931
|
+
children: e
|
|
1932
|
+
}),
|
|
1933
|
+
/* @__PURE__ */ C("span", {
|
|
1934
|
+
className: G.value,
|
|
1935
|
+
children: t
|
|
1936
|
+
}),
|
|
1937
|
+
(n != null || r != null) && /* @__PURE__ */ w("span", {
|
|
1938
|
+
className: G.footer,
|
|
1939
|
+
children: [n != null && /* @__PURE__ */ w("span", {
|
|
1940
|
+
className: n < 0 ? G.deltaDown : G.deltaUp,
|
|
1941
|
+
children: [
|
|
1942
|
+
n >= 0 ? "↑" : "↓",
|
|
1943
|
+
" ",
|
|
1944
|
+
Math.abs(n),
|
|
1945
|
+
"%"
|
|
1946
|
+
]
|
|
1947
|
+
}), r != null && /* @__PURE__ */ C("span", {
|
|
1948
|
+
className: G.hint,
|
|
1949
|
+
children: r
|
|
1950
|
+
})]
|
|
1951
|
+
})
|
|
1952
|
+
]
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
var Tn = {
|
|
1956
|
+
root: "_root_1gtow_1",
|
|
1957
|
+
cursor: "_cursor_1gtow_8",
|
|
1958
|
+
blink: "_blink_1gtow_1"
|
|
1959
|
+
};
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region src/lib/streaming-text/StreamingText.tsx
|
|
1962
|
+
function En({ text: e, streaming: t, speed: n }) {
|
|
1963
|
+
let [r, i] = T(n ? 0 : e.length), [a, o] = T(`${n}|${e}`), s = `${n}|${e}`;
|
|
1964
|
+
s !== a && (o(s), i(n ? 0 : e.length)), ce(() => {
|
|
1965
|
+
if (!n) return;
|
|
1966
|
+
let t = Math.max(1, Math.round(n / 30)), r = setInterval(() => {
|
|
1967
|
+
i((n) => (n + t >= e.length && clearInterval(r), Math.min(e.length, n + t)));
|
|
1968
|
+
}, 1e3 / 30);
|
|
1969
|
+
return () => clearInterval(r);
|
|
1970
|
+
}, [e, n]);
|
|
1971
|
+
let c = r >= e.length;
|
|
1972
|
+
return /* @__PURE__ */ w("span", {
|
|
1973
|
+
className: Tn.root,
|
|
1974
|
+
children: [e.slice(0, r), (t || !c) && /* @__PURE__ */ C("span", {
|
|
1975
|
+
className: Tn.cursor,
|
|
1976
|
+
"aria-hidden": !0
|
|
1977
|
+
})]
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
var Dn = {
|
|
1981
|
+
root: "_root_2qojr_1",
|
|
1982
|
+
button: "_button_2qojr_14",
|
|
1983
|
+
accept: "_accept_2qojr_43"
|
|
1984
|
+
};
|
|
1985
|
+
//#endregion
|
|
1986
|
+
//#region src/lib/suggestion-chip/SuggestionChip.tsx
|
|
1987
|
+
function On({ children: e, onAccept: t, onDismiss: n }) {
|
|
1988
|
+
let [i, a] = T(!1);
|
|
1989
|
+
return i ? null : /* @__PURE__ */ w("span", {
|
|
1990
|
+
className: Dn.root,
|
|
1991
|
+
children: [
|
|
1992
|
+
/* @__PURE__ */ C("span", { children: e }),
|
|
1993
|
+
/* @__PURE__ */ C("button", {
|
|
1994
|
+
type: "button",
|
|
1995
|
+
"aria-label": "Accept suggestion",
|
|
1996
|
+
className: `${Dn.button} ${Dn.accept}`,
|
|
1997
|
+
onClick: () => {
|
|
1998
|
+
a(!0), t?.();
|
|
1999
|
+
},
|
|
2000
|
+
children: /* @__PURE__ */ C(r, {})
|
|
2001
|
+
}),
|
|
2002
|
+
/* @__PURE__ */ C("button", {
|
|
2003
|
+
type: "button",
|
|
2004
|
+
"aria-label": "Dismiss suggestion",
|
|
2005
|
+
className: Dn.button,
|
|
2006
|
+
onClick: () => {
|
|
2007
|
+
a(!0), n?.();
|
|
2008
|
+
},
|
|
2009
|
+
children: /* @__PURE__ */ C(x, {})
|
|
2010
|
+
})
|
|
2011
|
+
]
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
var kn = {
|
|
2015
|
+
root: "_root_ht0a2_1",
|
|
2016
|
+
thumb: "_thumb_ht0a2_22"
|
|
2017
|
+
};
|
|
2018
|
+
//#endregion
|
|
2019
|
+
//#region src/lib/switch/Switch.tsx
|
|
2020
|
+
function An(e) {
|
|
2021
|
+
return /* @__PURE__ */ C(Ee.Root, {
|
|
2022
|
+
...e,
|
|
2023
|
+
className: kn.root,
|
|
2024
|
+
children: /* @__PURE__ */ C(Ee.Thumb, { className: kn.thumb })
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
var K = {
|
|
2028
|
+
container: "_container_k25o5_1",
|
|
2029
|
+
wrapper: "_wrapper_k25o5_7",
|
|
2030
|
+
table: "_table_k25o5_14",
|
|
2031
|
+
th: "_th_k25o5_21",
|
|
2032
|
+
sortButton: "_sortButton_k25o5_35",
|
|
2033
|
+
sortIcon: "_sortIcon_k25o5_58",
|
|
2034
|
+
tr: "_tr_k25o5_62",
|
|
2035
|
+
checkCell: "_checkCell_k25o5_74",
|
|
2036
|
+
pager: "_pager_k25o5_80",
|
|
2037
|
+
td: "_td_k25o5_85"
|
|
2038
|
+
};
|
|
2039
|
+
//#endregion
|
|
2040
|
+
//#region src/lib/table/Table.tsx
|
|
2041
|
+
function jn(e, t) {
|
|
2042
|
+
return e == null ? t == null ? 0 : 1 : t == null ? -1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t));
|
|
2043
|
+
}
|
|
2044
|
+
function Mn({ columns: e, data: t, rowKey: n, maxHeight: r, selectable: i, onSelectionChange: a, pageSize: o }) {
|
|
2045
|
+
let [s, c] = T(null), [l, u] = T(/* @__PURE__ */ new Set()), [d, ee] = T(1), f = (e, t) => n ? n(e) : t, te = ue(() => s ? [...t].sort((e, t) => jn(e[s.key], t[s.key]) * s.dir) : t, [t, s]), p = o ? Math.max(1, Math.ceil(te.length / o)) : 1, m = Math.min(d, p), h = o ? te.slice((m - 1) * o, m * o) : te;
|
|
2046
|
+
function g(e) {
|
|
2047
|
+
c((t) => t?.key === e ? t.dir === 1 ? {
|
|
2048
|
+
key: e,
|
|
2049
|
+
dir: -1
|
|
2050
|
+
} : null : {
|
|
2051
|
+
key: e,
|
|
2052
|
+
dir: 1
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
function _(e) {
|
|
2056
|
+
u(e), a?.([...e]);
|
|
2057
|
+
}
|
|
2058
|
+
function v(e, t) {
|
|
2059
|
+
let n = new Set(l);
|
|
2060
|
+
t ? n.add(e) : n.delete(e), _(n);
|
|
2061
|
+
}
|
|
2062
|
+
let y = ue(() => t.map((e, t) => f(e, t)), [t, n]), ne = y.length > 0 && y.every((e) => l.has(e)), b = y.some((e) => l.has(e));
|
|
2063
|
+
function re(e) {
|
|
2064
|
+
_(e ? new Set(y) : /* @__PURE__ */ new Set());
|
|
2065
|
+
}
|
|
2066
|
+
return /* @__PURE__ */ w("div", {
|
|
2067
|
+
className: K.container,
|
|
2068
|
+
children: [/* @__PURE__ */ C("div", {
|
|
2069
|
+
className: K.wrapper,
|
|
2070
|
+
style: r ? { maxHeight: r } : void 0,
|
|
2071
|
+
children: /* @__PURE__ */ w("table", {
|
|
2072
|
+
className: K.table,
|
|
2073
|
+
children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", { children: [i && /* @__PURE__ */ C("th", {
|
|
2074
|
+
className: `${K.th} ${K.checkCell}`,
|
|
2075
|
+
children: /* @__PURE__ */ C(et, {
|
|
2076
|
+
checked: ne,
|
|
2077
|
+
indeterminate: b && !ne,
|
|
2078
|
+
onCheckedChange: re,
|
|
2079
|
+
"aria-label": "Select all rows"
|
|
2080
|
+
})
|
|
2081
|
+
}), e.map((e) => /* @__PURE__ */ C("th", {
|
|
2082
|
+
className: K.th,
|
|
2083
|
+
"data-align": e.align,
|
|
2084
|
+
"aria-sort": s?.key === e.key ? s.dir === 1 ? "ascending" : "descending" : void 0,
|
|
2085
|
+
children: e.sortable ? /* @__PURE__ */ w("button", {
|
|
2086
|
+
type: "button",
|
|
2087
|
+
className: K.sortButton,
|
|
2088
|
+
onClick: () => g(e.key),
|
|
2089
|
+
children: [e.header, /* @__PURE__ */ C("span", {
|
|
2090
|
+
className: K.sortIcon,
|
|
2091
|
+
children: s?.key === e.key ? s.dir === 1 ? "↑" : "↓" : "↕"
|
|
2092
|
+
})]
|
|
2093
|
+
}) : e.header
|
|
2094
|
+
}, e.key))] }) }), /* @__PURE__ */ C("tbody", { children: h.map((t, n) => {
|
|
2095
|
+
let r = f(t, n);
|
|
2096
|
+
return /* @__PURE__ */ w("tr", {
|
|
2097
|
+
className: K.tr,
|
|
2098
|
+
"data-selected": l.has(r) || void 0,
|
|
2099
|
+
children: [i && /* @__PURE__ */ C("td", {
|
|
2100
|
+
className: `${K.td} ${K.checkCell}`,
|
|
2101
|
+
children: /* @__PURE__ */ C(et, {
|
|
2102
|
+
checked: l.has(r),
|
|
2103
|
+
onCheckedChange: (e) => v(r, e),
|
|
2104
|
+
"aria-label": "Select row"
|
|
2105
|
+
})
|
|
2106
|
+
}), e.map((e) => /* @__PURE__ */ C("td", {
|
|
2107
|
+
className: K.td,
|
|
2108
|
+
"data-align": e.align,
|
|
2109
|
+
children: e.render ? e.render(t) : t[e.key]
|
|
2110
|
+
}, e.key))]
|
|
2111
|
+
}, r);
|
|
2112
|
+
}) })]
|
|
2113
|
+
})
|
|
2114
|
+
}), o != null && p > 1 && /* @__PURE__ */ C("div", {
|
|
2115
|
+
className: K.pager,
|
|
2116
|
+
children: /* @__PURE__ */ C(Yt, {
|
|
2117
|
+
page: m,
|
|
2118
|
+
pageCount: p,
|
|
2119
|
+
onPageChange: ee
|
|
2120
|
+
})
|
|
2121
|
+
})]
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
var Nn = {
|
|
2125
|
+
root: "_root_1rocf_2",
|
|
2126
|
+
title: "_title_1rocf_10",
|
|
2127
|
+
body: "_body_1rocf_19",
|
|
2128
|
+
stdout: "_stdout_1rocf_33",
|
|
2129
|
+
stderr: "_stderr_1rocf_37",
|
|
2130
|
+
input: "_input_1rocf_41",
|
|
2131
|
+
prompt: "_prompt_1rocf_45"
|
|
2132
|
+
};
|
|
2133
|
+
//#endregion
|
|
2134
|
+
//#region src/lib/terminal/Terminal.tsx
|
|
2135
|
+
function Pn({ lines: e, title: t }) {
|
|
2136
|
+
return /* @__PURE__ */ w("div", {
|
|
2137
|
+
className: Nn.root,
|
|
2138
|
+
children: [t != null && /* @__PURE__ */ C("div", {
|
|
2139
|
+
className: Nn.title,
|
|
2140
|
+
children: t
|
|
2141
|
+
}), /* @__PURE__ */ C("pre", {
|
|
2142
|
+
className: Nn.body,
|
|
2143
|
+
children: e.map((e, t) => /* @__PURE__ */ w("div", {
|
|
2144
|
+
className: Nn[e.type ?? "stdout"],
|
|
2145
|
+
children: [e.type === "input" && /* @__PURE__ */ C("span", {
|
|
2146
|
+
className: Nn.prompt,
|
|
2147
|
+
children: "$ "
|
|
2148
|
+
}), e.text]
|
|
2149
|
+
}, t))
|
|
2150
|
+
})]
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
var q = {
|
|
2154
|
+
root: "_root_faapz_1",
|
|
2155
|
+
summary: "_summary_faapz_10",
|
|
2156
|
+
passCount: "_passCount_faapz_19",
|
|
2157
|
+
failCount: "_failCount_faapz_23",
|
|
2158
|
+
skipCount: "_skipCount_faapz_27",
|
|
2159
|
+
list: "_list_faapz_31",
|
|
2160
|
+
row: "_row_faapz_37",
|
|
2161
|
+
details: "_details_faapz_50",
|
|
2162
|
+
pass: "_pass_faapz_19",
|
|
2163
|
+
fail: "_fail_faapz_23",
|
|
2164
|
+
skip: "_skip_faapz_27",
|
|
2165
|
+
name: "_name_faapz_77",
|
|
2166
|
+
message: "_message_faapz_83"
|
|
2167
|
+
};
|
|
2168
|
+
//#endregion
|
|
2169
|
+
//#region src/lib/test-results/TestResults.tsx
|
|
2170
|
+
function Fn({ results: e }) {
|
|
2171
|
+
let t = e.filter((e) => e.status === "pass").length, n = e.filter((e) => e.status === "fail").length, i = e.filter((e) => e.status === "skip").length;
|
|
2172
|
+
return /* @__PURE__ */ w("div", {
|
|
2173
|
+
className: q.root,
|
|
2174
|
+
children: [/* @__PURE__ */ w("div", {
|
|
2175
|
+
className: q.summary,
|
|
2176
|
+
children: [
|
|
2177
|
+
/* @__PURE__ */ w("span", {
|
|
2178
|
+
className: q.passCount,
|
|
2179
|
+
children: [t, " passed"]
|
|
2180
|
+
}),
|
|
2181
|
+
n > 0 && /* @__PURE__ */ w("span", {
|
|
2182
|
+
className: q.failCount,
|
|
2183
|
+
children: [n, " failed"]
|
|
2184
|
+
}),
|
|
2185
|
+
i > 0 && /* @__PURE__ */ w("span", {
|
|
2186
|
+
className: q.skipCount,
|
|
2187
|
+
children: [i, " skipped"]
|
|
2188
|
+
})
|
|
2189
|
+
]
|
|
2190
|
+
}), /* @__PURE__ */ C("ul", {
|
|
2191
|
+
className: q.list,
|
|
2192
|
+
children: e.map((e, t) => /* @__PURE__ */ C("li", {
|
|
2193
|
+
className: q.item,
|
|
2194
|
+
children: e.status === "fail" && e.message != null ? /* @__PURE__ */ w("details", {
|
|
2195
|
+
className: q.details,
|
|
2196
|
+
children: [/* @__PURE__ */ w("summary", {
|
|
2197
|
+
className: q.row,
|
|
2198
|
+
children: [/* @__PURE__ */ C(x, { className: q.fail }), /* @__PURE__ */ C("span", {
|
|
2199
|
+
className: q.name,
|
|
2200
|
+
children: e.name
|
|
2201
|
+
})]
|
|
2202
|
+
}), /* @__PURE__ */ C("pre", {
|
|
2203
|
+
className: q.message,
|
|
2204
|
+
children: e.message
|
|
2205
|
+
})]
|
|
2206
|
+
}) : /* @__PURE__ */ w("span", {
|
|
2207
|
+
className: q.row,
|
|
2208
|
+
children: [
|
|
2209
|
+
e.status === "pass" && /* @__PURE__ */ C(r, { className: q.pass }),
|
|
2210
|
+
e.status === "fail" && /* @__PURE__ */ C(x, { className: q.fail }),
|
|
2211
|
+
e.status === "skip" && /* @__PURE__ */ C(_, { className: q.skip }),
|
|
2212
|
+
/* @__PURE__ */ C("span", {
|
|
2213
|
+
className: q.name,
|
|
2214
|
+
children: e.name
|
|
2215
|
+
})
|
|
2216
|
+
]
|
|
2217
|
+
})
|
|
2218
|
+
}, t))
|
|
2219
|
+
})]
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
var J = {
|
|
2223
|
+
viewport: "_viewport_10hkp_1",
|
|
2224
|
+
root: "_root_10hkp_9",
|
|
2225
|
+
title: "_title_10hkp_76",
|
|
2226
|
+
description: "_description_10hkp_82",
|
|
2227
|
+
actions: "_actions_10hkp_87",
|
|
2228
|
+
actionButton: "_actionButton_10hkp_93",
|
|
2229
|
+
actionPrimary: "_actionPrimary_10hkp_109",
|
|
2230
|
+
actionSecondary: "_actionSecondary_10hkp_118",
|
|
2231
|
+
close: "_close_10hkp_127"
|
|
2232
|
+
};
|
|
2233
|
+
//#endregion
|
|
2234
|
+
//#region src/lib/toast/Toast.tsx
|
|
2235
|
+
function In() {
|
|
2236
|
+
return j.useToastManager();
|
|
2237
|
+
}
|
|
2238
|
+
function Ln() {
|
|
2239
|
+
let { toasts: e, close: t } = j.useToastManager();
|
|
2240
|
+
return e.map((e) => {
|
|
2241
|
+
let { action: n, secondaryAction: r } = e.data ?? {};
|
|
2242
|
+
return /* @__PURE__ */ w(j.Root, {
|
|
2243
|
+
toast: e,
|
|
2244
|
+
className: J.root,
|
|
2245
|
+
children: [
|
|
2246
|
+
/* @__PURE__ */ C(j.Title, { className: J.title }),
|
|
2247
|
+
/* @__PURE__ */ C(j.Description, { className: J.description }),
|
|
2248
|
+
(n || r) && /* @__PURE__ */ w("div", {
|
|
2249
|
+
className: J.actions,
|
|
2250
|
+
children: [r && /* @__PURE__ */ C("button", {
|
|
2251
|
+
type: "button",
|
|
2252
|
+
className: `${J.actionButton} ${J.actionSecondary}`,
|
|
2253
|
+
onClick: () => {
|
|
2254
|
+
r.onClick(), t(e.id);
|
|
2255
|
+
},
|
|
2256
|
+
children: r.label
|
|
2257
|
+
}), n && /* @__PURE__ */ C("button", {
|
|
2258
|
+
type: "button",
|
|
2259
|
+
className: `${J.actionButton} ${J.actionPrimary}`,
|
|
2260
|
+
onClick: () => {
|
|
2261
|
+
n.onClick(), t(e.id);
|
|
2262
|
+
},
|
|
2263
|
+
children: n.label
|
|
2264
|
+
})]
|
|
2265
|
+
}),
|
|
2266
|
+
/* @__PURE__ */ C(j.Close, {
|
|
2267
|
+
className: J.close,
|
|
2268
|
+
"aria-label": "Close",
|
|
2269
|
+
children: "×"
|
|
2270
|
+
})
|
|
2271
|
+
]
|
|
2272
|
+
}, e.id);
|
|
2273
|
+
});
|
|
2274
|
+
}
|
|
2275
|
+
function Rn({ children: e }) {
|
|
2276
|
+
return /* @__PURE__ */ w(j.Provider, {
|
|
2277
|
+
limit: 5,
|
|
2278
|
+
children: [e, /* @__PURE__ */ C(j.Portal, { children: /* @__PURE__ */ C(j.Viewport, {
|
|
2279
|
+
className: J.viewport,
|
|
2280
|
+
children: /* @__PURE__ */ C(Ln, {})
|
|
2281
|
+
}) })]
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
var zn = {
|
|
2285
|
+
root: "_root_1ghc7_1",
|
|
2286
|
+
list: "_list_1ghc7_7",
|
|
2287
|
+
tab: "_tab_1ghc7_15",
|
|
2288
|
+
indicator: "_indicator_1ghc7_36",
|
|
2289
|
+
panel: "_panel_1ghc7_46"
|
|
2290
|
+
};
|
|
2291
|
+
//#endregion
|
|
2292
|
+
//#region src/lib/tabs/Tabs.tsx
|
|
2293
|
+
function Bn({ tabs: e, ...t }) {
|
|
2294
|
+
return /* @__PURE__ */ w(De.Root, {
|
|
2295
|
+
defaultValue: e[0]?.value,
|
|
2296
|
+
...t,
|
|
2297
|
+
className: zn.root,
|
|
2298
|
+
children: [/* @__PURE__ */ w(De.List, {
|
|
2299
|
+
className: zn.list,
|
|
2300
|
+
children: [e.map((e) => /* @__PURE__ */ C(De.Tab, {
|
|
2301
|
+
value: e.value,
|
|
2302
|
+
className: zn.tab,
|
|
2303
|
+
children: e.label
|
|
2304
|
+
}, e.value)), /* @__PURE__ */ C(De.Indicator, { className: zn.indicator })]
|
|
2305
|
+
}), e.map((e) => /* @__PURE__ */ C(De.Panel, {
|
|
2306
|
+
value: e.value,
|
|
2307
|
+
className: zn.panel,
|
|
2308
|
+
children: e.content
|
|
2309
|
+
}, e.value))]
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
var Y = {
|
|
2313
|
+
root: "_root_18fdp_1",
|
|
2314
|
+
summary: "_summary_18fdp_10",
|
|
2315
|
+
icon: "_icon_18fdp_30",
|
|
2316
|
+
chevron: "_chevron_18fdp_31",
|
|
2317
|
+
duration: "_duration_18fdp_37",
|
|
2318
|
+
shimmer: "_shimmer_18fdp_48",
|
|
2319
|
+
body: "_body_18fdp_80"
|
|
2320
|
+
};
|
|
2321
|
+
//#endregion
|
|
2322
|
+
//#region src/lib/thinking-block/ThinkingBlock.tsx
|
|
2323
|
+
function Vn({ label: e, duration: t, active: r, defaultOpen: a, children: o }) {
|
|
2324
|
+
return /* @__PURE__ */ w("details", {
|
|
2325
|
+
className: Y.root,
|
|
2326
|
+
open: a,
|
|
2327
|
+
children: [/* @__PURE__ */ w("summary", {
|
|
2328
|
+
className: Y.summary,
|
|
2329
|
+
children: [
|
|
2330
|
+
/* @__PURE__ */ C(n, { className: Y.icon }),
|
|
2331
|
+
/* @__PURE__ */ C("span", {
|
|
2332
|
+
className: r ? Y.shimmer : void 0,
|
|
2333
|
+
children: e ?? "Thinking"
|
|
2334
|
+
}),
|
|
2335
|
+
t != null && /* @__PURE__ */ C("span", {
|
|
2336
|
+
className: Y.duration,
|
|
2337
|
+
children: t
|
|
2338
|
+
}),
|
|
2339
|
+
/* @__PURE__ */ C(i, { className: Y.chevron })
|
|
2340
|
+
]
|
|
2341
|
+
}), /* @__PURE__ */ C("div", {
|
|
2342
|
+
className: Y.body,
|
|
2343
|
+
children: o
|
|
2344
|
+
})]
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
var X = {
|
|
2348
|
+
root: "_root_1oosr_1",
|
|
2349
|
+
header: "_header_1oosr_8",
|
|
2350
|
+
label: "_label_1oosr_16",
|
|
2351
|
+
counts: "_counts_1oosr_21",
|
|
2352
|
+
cost: "_cost_1oosr_26",
|
|
2353
|
+
track: "_track_1oosr_30",
|
|
2354
|
+
fill: "_fill_1oosr_37",
|
|
2355
|
+
warning: "_warning_1oosr_44",
|
|
2356
|
+
danger: "_danger_1oosr_48"
|
|
2357
|
+
};
|
|
2358
|
+
//#endregion
|
|
2359
|
+
//#region src/lib/token-meter/TokenMeter.tsx
|
|
2360
|
+
function Hn({ used: e, limit: t, label: n = "Context", cost: r }) {
|
|
2361
|
+
let i = Math.min(1, e / t), a = i >= .9 ? X.danger : i >= .75 ? X.warning : "";
|
|
2362
|
+
return /* @__PURE__ */ w("div", {
|
|
2363
|
+
className: X.root,
|
|
2364
|
+
children: [/* @__PURE__ */ w("div", {
|
|
2365
|
+
className: X.header,
|
|
2366
|
+
children: [/* @__PURE__ */ C("span", {
|
|
2367
|
+
className: X.label,
|
|
2368
|
+
children: n
|
|
2369
|
+
}), /* @__PURE__ */ w("span", {
|
|
2370
|
+
className: X.counts,
|
|
2371
|
+
children: [
|
|
2372
|
+
e.toLocaleString(),
|
|
2373
|
+
" / ",
|
|
2374
|
+
t.toLocaleString(),
|
|
2375
|
+
r != null && /* @__PURE__ */ w("span", {
|
|
2376
|
+
className: X.cost,
|
|
2377
|
+
children: [" · ", r]
|
|
2378
|
+
})
|
|
2379
|
+
]
|
|
2380
|
+
})]
|
|
2381
|
+
}), /* @__PURE__ */ C("div", {
|
|
2382
|
+
className: X.track,
|
|
2383
|
+
role: "meter",
|
|
2384
|
+
"aria-valuemin": 0,
|
|
2385
|
+
"aria-valuemax": t,
|
|
2386
|
+
"aria-valuenow": e,
|
|
2387
|
+
children: /* @__PURE__ */ C("div", {
|
|
2388
|
+
className: `${X.fill} ${a}`,
|
|
2389
|
+
style: { width: `${i * 100}%` }
|
|
2390
|
+
})
|
|
2391
|
+
})]
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
var Z = {
|
|
2395
|
+
root: "_root_4nfwa_1",
|
|
2396
|
+
step: "_step_4nfwa_9",
|
|
2397
|
+
iconCell: "_iconCell_4nfwa_33",
|
|
2398
|
+
done: "_done_4nfwa_53",
|
|
2399
|
+
error: "_error_4nfwa_57",
|
|
2400
|
+
pendingDot: "_pendingDot_4nfwa_61",
|
|
2401
|
+
name: "_name_4nfwa_69",
|
|
2402
|
+
nameError: "_nameError_4nfwa_75",
|
|
2403
|
+
muted: "_muted_4nfwa_79",
|
|
2404
|
+
duration: "_duration_4nfwa_84",
|
|
2405
|
+
detail: "_detail_4nfwa_90"
|
|
2406
|
+
};
|
|
2407
|
+
//#endregion
|
|
2408
|
+
//#region src/lib/tool-call-timeline/ToolCallTimeline.tsx
|
|
2409
|
+
function Un({ status: e }) {
|
|
2410
|
+
return e === "running" ? /* @__PURE__ */ C(Me, { size: "sm" }) : e === "done" ? /* @__PURE__ */ C(r, { className: Z.done }) : e === "error" ? /* @__PURE__ */ C(x, { className: Z.error }) : /* @__PURE__ */ C("span", { className: Z.pendingDot });
|
|
2411
|
+
}
|
|
2412
|
+
function Wn({ steps: e }) {
|
|
2413
|
+
return /* @__PURE__ */ C("ol", {
|
|
2414
|
+
className: Z.root,
|
|
2415
|
+
children: e.map((e, t) => /* @__PURE__ */ w("li", {
|
|
2416
|
+
className: Z.step,
|
|
2417
|
+
children: [
|
|
2418
|
+
/* @__PURE__ */ C("span", {
|
|
2419
|
+
className: Z.iconCell,
|
|
2420
|
+
children: /* @__PURE__ */ C(Un, { status: e.status })
|
|
2421
|
+
}),
|
|
2422
|
+
/* @__PURE__ */ C("span", {
|
|
2423
|
+
className: `${Z.name} ${e.status === "pending" ? Z.muted : ""} ${e.status === "error" ? Z.nameError : ""}`,
|
|
2424
|
+
children: e.name
|
|
2425
|
+
}),
|
|
2426
|
+
e.duration != null && /* @__PURE__ */ C("span", {
|
|
2427
|
+
className: Z.duration,
|
|
2428
|
+
children: e.duration
|
|
2429
|
+
}),
|
|
2430
|
+
e.detail != null && /* @__PURE__ */ C("span", {
|
|
2431
|
+
className: Z.detail,
|
|
2432
|
+
children: e.detail
|
|
2433
|
+
})
|
|
2434
|
+
]
|
|
2435
|
+
}, t))
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
var Q = {
|
|
2439
|
+
root: "_root_1qwlc_1",
|
|
2440
|
+
group: "_group_1qwlc_2",
|
|
2441
|
+
item: "_item_1qwlc_16",
|
|
2442
|
+
row: "_row_1qwlc_20",
|
|
2443
|
+
chevron: "_chevron_1qwlc_48",
|
|
2444
|
+
icon: "_icon_1qwlc_60",
|
|
2445
|
+
label: "_label_1qwlc_70"
|
|
2446
|
+
};
|
|
2447
|
+
//#endregion
|
|
2448
|
+
//#region src/lib/tree/Tree.tsx
|
|
2449
|
+
function Gn({ items: e, expandedKeys: t, defaultExpandedKeys: n, onExpandedChange: r, selectedKey: i, defaultSelectedKey: a, onSelect: s, ...c }) {
|
|
2450
|
+
let [l, u] = T(() => new Set(n)), [d, ee] = T(a), f = t == null ? l : new Set(t), te = i === void 0 ? d : i, [p, m] = T(), h = de(/* @__PURE__ */ new Map()), g = [], _ = (e, t) => {
|
|
2451
|
+
for (let n of e) g.push({
|
|
2452
|
+
item: n,
|
|
2453
|
+
parent: t
|
|
2454
|
+
}), n.children?.length && f.has(n.key) && _(n.children, n.key);
|
|
2455
|
+
};
|
|
2456
|
+
_(e);
|
|
2457
|
+
let v = g.some((e) => e.item.key === p) ? p : g[0]?.item.key, y = (e) => {
|
|
2458
|
+
let n = new Set(f);
|
|
2459
|
+
n.delete(e) || n.add(e), t ?? u(n), r?.([...n]);
|
|
2460
|
+
}, ne = (e) => {
|
|
2461
|
+
i === void 0 && ee(e.key), s?.(e.key, e);
|
|
2462
|
+
}, b = (e) => {
|
|
2463
|
+
e != null && (m(e), h.current.get(e)?.focus());
|
|
2464
|
+
}, re = (e) => {
|
|
2465
|
+
let t = g.findIndex((e) => e.item.key === v);
|
|
2466
|
+
if (t < 0) return;
|
|
2467
|
+
let { item: n, parent: r } = g[t], i = !!n.children?.length, a = i && f.has(n.key);
|
|
2468
|
+
switch (e.key) {
|
|
2469
|
+
case "ArrowDown":
|
|
2470
|
+
b(g[t + 1]?.item.key);
|
|
2471
|
+
break;
|
|
2472
|
+
case "ArrowUp":
|
|
2473
|
+
b(g[t - 1]?.item.key);
|
|
2474
|
+
break;
|
|
2475
|
+
case "ArrowRight":
|
|
2476
|
+
if (!i) return;
|
|
2477
|
+
a ? b(n.children[0].key) : y(n.key);
|
|
2478
|
+
break;
|
|
2479
|
+
case "ArrowLeft":
|
|
2480
|
+
a ? y(n.key) : b(r);
|
|
2481
|
+
break;
|
|
2482
|
+
case "Home":
|
|
2483
|
+
b(g[0]?.item.key);
|
|
2484
|
+
break;
|
|
2485
|
+
case "End":
|
|
2486
|
+
b(g[g.length - 1]?.item.key);
|
|
2487
|
+
break;
|
|
2488
|
+
case "Enter":
|
|
2489
|
+
case " ":
|
|
2490
|
+
ne(n), i && y(n.key);
|
|
2491
|
+
break;
|
|
2492
|
+
default: return;
|
|
2493
|
+
}
|
|
2494
|
+
e.preventDefault();
|
|
2495
|
+
}, ie = (e, t) => e.map((e) => {
|
|
2496
|
+
let n = !!e.children?.length, r = n && f.has(e.key);
|
|
2497
|
+
return /* @__PURE__ */ w("li", {
|
|
2498
|
+
role: "treeitem",
|
|
2499
|
+
"aria-expanded": n ? r : void 0,
|
|
2500
|
+
"aria-selected": te === e.key,
|
|
2501
|
+
tabIndex: e.key === v ? 0 : -1,
|
|
2502
|
+
className: Q.item,
|
|
2503
|
+
ref: (t) => {
|
|
2504
|
+
t ? h.current.set(e.key, t) : h.current.delete(e.key);
|
|
2505
|
+
},
|
|
2506
|
+
onFocus: (t) => {
|
|
2507
|
+
t.target === t.currentTarget && m(e.key);
|
|
2508
|
+
},
|
|
2509
|
+
children: [/* @__PURE__ */ w("div", {
|
|
2510
|
+
className: Q.row,
|
|
2511
|
+
style: { paddingLeft: `${.5 + t * 1.25}rem` },
|
|
2512
|
+
onClick: () => {
|
|
2513
|
+
b(e.key), ne(e), n && y(e.key);
|
|
2514
|
+
},
|
|
2515
|
+
children: [
|
|
2516
|
+
/* @__PURE__ */ C(o, {
|
|
2517
|
+
className: Q.chevron,
|
|
2518
|
+
"data-open": r || void 0,
|
|
2519
|
+
style: n ? void 0 : { visibility: "hidden" },
|
|
2520
|
+
"aria-hidden": !0
|
|
2521
|
+
}),
|
|
2522
|
+
e.icon != null && /* @__PURE__ */ C("span", {
|
|
2523
|
+
className: Q.icon,
|
|
2524
|
+
children: e.icon
|
|
2525
|
+
}),
|
|
2526
|
+
/* @__PURE__ */ C("span", {
|
|
2527
|
+
className: Q.label,
|
|
2528
|
+
children: e.label
|
|
2529
|
+
})
|
|
2530
|
+
]
|
|
2531
|
+
}), r && /* @__PURE__ */ C("ul", {
|
|
2532
|
+
role: "group",
|
|
2533
|
+
className: Q.group,
|
|
2534
|
+
children: ie(e.children, t + 1)
|
|
2535
|
+
})]
|
|
2536
|
+
}, e.key);
|
|
2537
|
+
});
|
|
2538
|
+
return /* @__PURE__ */ C("ul", {
|
|
2539
|
+
role: "tree",
|
|
2540
|
+
className: Q.root,
|
|
2541
|
+
onKeyDown: re,
|
|
2542
|
+
...c,
|
|
2543
|
+
children: ie(e, 0)
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
var $ = {
|
|
2547
|
+
root: "_root_19blp_1",
|
|
2548
|
+
button: "_button_19blp_22",
|
|
2549
|
+
text: "_text_19blp_39",
|
|
2550
|
+
name: "_name_19blp_46",
|
|
2551
|
+
subtitle: "_subtitle_19blp_53",
|
|
2552
|
+
chevron: "_chevron_19blp_61"
|
|
2553
|
+
};
|
|
2554
|
+
//#endregion
|
|
2555
|
+
//#region src/lib/user-profile/UserProfile.tsx
|
|
2556
|
+
function Kn({ name: e, subtitle: t, src: n, fallback: r, menu: i, collapsed: a }) {
|
|
2557
|
+
let o = /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(He, {
|
|
2558
|
+
size: "sm",
|
|
2559
|
+
src: n,
|
|
2560
|
+
fallback: r
|
|
2561
|
+
}), !a && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("span", {
|
|
2562
|
+
className: $.text,
|
|
2563
|
+
children: [/* @__PURE__ */ C("span", {
|
|
2564
|
+
className: $.name,
|
|
2565
|
+
children: e
|
|
2566
|
+
}), t != null && /* @__PURE__ */ C("span", {
|
|
2567
|
+
className: $.subtitle,
|
|
2568
|
+
children: t
|
|
2569
|
+
})]
|
|
2570
|
+
}), i != null && /* @__PURE__ */ C(s, {
|
|
2571
|
+
className: $.chevron,
|
|
2572
|
+
"aria-hidden": !0
|
|
2573
|
+
})] })] });
|
|
2574
|
+
return i == null ? /* @__PURE__ */ C("div", {
|
|
2575
|
+
className: $.root,
|
|
2576
|
+
"data-collapsed": a || void 0,
|
|
2577
|
+
children: o
|
|
2578
|
+
}) : /* @__PURE__ */ C(Lt, {
|
|
2579
|
+
items: i,
|
|
2580
|
+
side: "right",
|
|
2581
|
+
align: "end",
|
|
2582
|
+
trigger: /* @__PURE__ */ C("button", {
|
|
2583
|
+
type: "button",
|
|
2584
|
+
className: `${$.root} ${$.button}`,
|
|
2585
|
+
"data-collapsed": a || void 0,
|
|
2586
|
+
children: o
|
|
2587
|
+
})
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
var qn = {
|
|
2591
|
+
root: "_root_8tq5z_1",
|
|
2592
|
+
bar: "_bar_8tq5z_9",
|
|
2593
|
+
icon: "_icon_8tq5z_18",
|
|
2594
|
+
url: "_url_8tq5z_25",
|
|
2595
|
+
open: "_open_8tq5z_34",
|
|
2596
|
+
frame: "_frame_8tq5z_59"
|
|
2597
|
+
};
|
|
2598
|
+
//#endregion
|
|
2599
|
+
//#region src/lib/web-preview/WebPreview.tsx
|
|
2600
|
+
function Jn({ url: e, height: t = "16rem", title: n = "Web preview" }) {
|
|
2601
|
+
return /* @__PURE__ */ w("div", {
|
|
2602
|
+
className: qn.root,
|
|
2603
|
+
children: [/* @__PURE__ */ w("div", {
|
|
2604
|
+
className: qn.bar,
|
|
2605
|
+
children: [
|
|
2606
|
+
/* @__PURE__ */ C(m, { className: qn.icon }),
|
|
2607
|
+
/* @__PURE__ */ C("span", {
|
|
2608
|
+
className: qn.url,
|
|
2609
|
+
children: e
|
|
2610
|
+
}),
|
|
2611
|
+
/* @__PURE__ */ C("a", {
|
|
2612
|
+
href: e,
|
|
2613
|
+
target: "_blank",
|
|
2614
|
+
rel: "noreferrer",
|
|
2615
|
+
"aria-label": "Open in new tab",
|
|
2616
|
+
className: qn.open,
|
|
2617
|
+
children: /* @__PURE__ */ C(d, {})
|
|
2618
|
+
})
|
|
2619
|
+
]
|
|
2620
|
+
}), /* @__PURE__ */ C("iframe", {
|
|
2621
|
+
src: e,
|
|
2622
|
+
title: n,
|
|
2623
|
+
className: qn.frame,
|
|
2624
|
+
style: { height: t }
|
|
2625
|
+
})]
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
//#endregion
|
|
2629
|
+
export { Oe as Accordion, Pe as AgentStatus, Le as ApprovalGate, Be as Attachments, He as Avatar, Ie as Badge, We as Banner, Ke as Branch, Je as Breadcrumbs, N as Button, Xe as Card, Qe as ChainOfThought, et as Checkbox, nt as Checkpoint, it as CodeBlock, at as Combobox, ot as Commit, ut as ConfidenceBadge, pt as Connection, ht as Conversation, _t as DescriptionList, yt as Dialog, St as DiffView, Ct as Drawer, Tt as EmptyState, Dt as FeedbackButtons, kt as Field, jt as InlineCitation, Nt as Input, Ft as Label, Lt as Menu, zt as Message, Ht as MessageActions, Wt as Meter, Kt as NumberField, Yt as Pagination, Zt as Plan, $t as Popover, tn as Progress, rn as PromptInput, on as Queue, cn as RadioGroup, ln as Select, dn as Shimmer, gn as Sidebar, vn as Skeleton, bn as Slider, Sn as Sources, Me as Spinner, Cn as StackTrace, wn as StatCard, En as StreamingText, On as SuggestionChip, An as Switch, Mn as Table, Bn as Tabs, Pn as Terminal, Fn as TestResults, Vn as ThinkingBlock, Rn as ToastProvider, Hn as TokenMeter, Wn as ToolCallTimeline, ct as Tooltip, Gn as Tree, Kn as UserProfile, Jn as WebPreview, mn as useIsMobile, In as useToast };
|