@blueking/chat-x 0.0.49-beta.10 → 0.0.49-beta.12
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/dist/index.css +1 -1
- package/dist/index.js +270 -262
- package/dist/index.js.map +1 -1
- package/dist/mcp/generated/index.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11035,10 +11035,14 @@ var Hf = ["src"], Uf = {
|
|
|
11035
11035
|
onMouseleave: (e) => O(a, e)
|
|
11036
11036
|
}, [F(r.$slots, "group", b({ ref_for: !0 }, { group: a }), () => [t.enableSelection && a.type !== z(q).Loading ? (k(), o(z(ue), {
|
|
11037
11037
|
key: 0,
|
|
11038
|
-
class: "message-group-checkbox",
|
|
11038
|
+
class: S(["message-group-checkbox", { "is-user-group": a.type === z(q).User }]),
|
|
11039
11039
|
"model-value": a.checked,
|
|
11040
11040
|
"onUpdate:modelValue": (e) => A(a, e)
|
|
11041
|
-
}, null, 8, [
|
|
11041
|
+
}, null, 8, [
|
|
11042
|
+
"class",
|
|
11043
|
+
"model-value",
|
|
11044
|
+
"onUpdate:modelValue"
|
|
11045
|
+
])) : s("", !0), l("div", {
|
|
11042
11046
|
class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === z(Lt).Share || t.enableSelection && a.type !== z(q).Loading }]),
|
|
11043
11047
|
style: w({ width: t.enableSelection && a.type !== z(q).Loading ? "calc(100% - 16px)" : "100%" })
|
|
11044
11048
|
}, [(k(!0), c(e, null, P(a.messages, (e, a) => (k(), c("div", {
|
|
@@ -11478,275 +11482,279 @@ var Hf = ["src"], Uf = {
|
|
|
11478
11482
|
exitShareMode: () => {
|
|
11479
11483
|
Xe();
|
|
11480
11484
|
}
|
|
11481
|
-
}), (n, i) =>
|
|
11482
|
-
|
|
11483
|
-
"
|
|
11484
|
-
|
|
11485
|
-
"
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
"
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
class: "ai-full-screen-wrapper"
|
|
11507
|
-
}, [
|
|
11508
|
-
f(z(be), {
|
|
11509
|
-
active: z(H).name,
|
|
11510
|
-
class: "ai-chat-container-tab",
|
|
11511
|
-
"label-height": 40,
|
|
11512
|
-
type: "unborder-card",
|
|
11513
|
-
onChange: Ke
|
|
11514
|
-
}, {
|
|
11515
|
-
setting: U(() => [l("div", ty, [f(wa, {
|
|
11516
|
-
class: "screen-btn",
|
|
11517
|
-
"tippy-options": X(X({}, ne.value), {}, { content: z(v) ? z(G)("退出全屏") : z(G)("全屏") })
|
|
11518
|
-
}, {
|
|
11519
|
-
default: U(() => [z(v) ? (k(), o(z(Ir), {
|
|
11520
|
-
key: 1,
|
|
11521
|
-
onClick: z(S)
|
|
11522
|
-
}, null, 8, ["onClick"])) : (k(), o(z(Fr), {
|
|
11523
|
-
key: 0,
|
|
11524
|
-
onClick: z(y)
|
|
11525
|
-
}, null, 8, ["onClick"]))]),
|
|
11526
|
-
_: 1
|
|
11527
|
-
}, 8, ["tippy-options"])])]),
|
|
11528
|
-
default: U(() => [(k(!0), c(e, null, P(z(ie), (e) => (k(), o(z(u), {
|
|
11529
|
-
key: e.name,
|
|
11530
|
-
class: "ai-chat-container-tab-panel",
|
|
11531
|
-
label: () => {
|
|
11532
|
-
var n, r, i, a;
|
|
11533
|
-
return g("div", {
|
|
11534
|
-
class: "ai-execution-summary-label",
|
|
11535
|
-
onVnodeMounted: (t) => {
|
|
11536
|
-
if (z(H).name === e.name) {
|
|
11537
|
-
var n;
|
|
11538
|
-
(n = t.el) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
11539
|
-
}
|
|
11540
|
-
}
|
|
11541
|
-
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: z(ue) })) == null ? [
|
|
11542
|
-
g(Ge(e.name), { class: "ai-execution-summary-icon" }),
|
|
11543
|
-
W(g("span", { class: "ai-execution-summary-label-text" }, (i = e.label) == null ? "" : i), [[z(Sa), X(X({}, ne.value), {}, { text: (a = e.label) == null ? "" : a })]]),
|
|
11544
|
-
e.closable !== !1 && e.name !== z("execution") ? g(z(Lr), {
|
|
11545
|
-
class: "ai-execution-close-icon",
|
|
11546
|
-
onClick: () => {
|
|
11547
|
-
z(ue)(e.name);
|
|
11548
|
-
}
|
|
11549
|
-
}) : null
|
|
11550
|
-
] : n);
|
|
11551
|
-
},
|
|
11552
|
-
name: e.name
|
|
11553
|
-
}, null, 8, ["label", "name"]))), 128))]),
|
|
11554
|
-
_: 1
|
|
11555
|
-
}, 8, ["active"]),
|
|
11556
|
-
((n = z(H)) == null ? void 0 : n.name) === z("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [z(oe) ? s("", !0) : (k(), o(qv, {
|
|
11485
|
+
}), (n, i) => {
|
|
11486
|
+
var a;
|
|
11487
|
+
return k(), c("div", {
|
|
11488
|
+
class: "ai-chat-container",
|
|
11489
|
+
"data-ai-size": t.size,
|
|
11490
|
+
style: w({
|
|
11491
|
+
"--resize-main-width": Ce.value,
|
|
11492
|
+
"--resize-aside-width": we.value,
|
|
11493
|
+
borderTopColor: z(oe) ? "transparent" : "#eaebf0"
|
|
11494
|
+
})
|
|
11495
|
+
}, [t.chatLoading ? (k(), c("div", ey, [f(dm)])) : (k(), o(z(_e), b({
|
|
11496
|
+
key: 1,
|
|
11497
|
+
class: ["ai-chat-container-resize-layout", {
|
|
11498
|
+
"ai-is-collapse": z(oe) || z(ie).length === 0,
|
|
11499
|
+
"ai-is-welcome": !((a = t.messages) != null && a.length),
|
|
11500
|
+
"is-resizing": Se.value
|
|
11501
|
+
}]
|
|
11502
|
+
}, T.value, {
|
|
11503
|
+
onAfterResize: Qe,
|
|
11504
|
+
onResizing: Ze
|
|
11505
|
+
}), {
|
|
11506
|
+
aside: U(() => [f(r, { name: "ai-aside-content" }, {
|
|
11507
|
+
default: U(() => {
|
|
11508
|
+
var n, r, a;
|
|
11509
|
+
return [!z(oe) && z(ie).length > 0 ? (k(), c("div", {
|
|
11557
11510
|
key: 0,
|
|
11558
|
-
"
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
}, null, 8, [
|
|
11569
|
-
"active-id",
|
|
11570
|
-
"artifacts",
|
|
11571
|
-
"onSelect"
|
|
11572
|
-
])) : s("", !0),
|
|
11573
|
-
z(H) && z(H).name !== z("file-artifact") ? (k(), c("div", {
|
|
11574
|
-
key: z(H).name,
|
|
11575
|
-
class: "ai-chat-container-message-slot"
|
|
11576
|
-
}, [(k(), o(I(E.value), b({ key: z(H).name }, (a = z(H)) == null || (a = a.data) == null ? void 0 : a.props), {
|
|
11577
|
-
locateButton: U(() => [f(z(le), {
|
|
11578
|
-
class: "ai-locate-button",
|
|
11579
|
-
size: "small",
|
|
11580
|
-
text: "",
|
|
11581
|
-
theme: "primary",
|
|
11582
|
-
onClick: i[0] || (i[0] = (e) => {
|
|
11583
|
-
var t;
|
|
11584
|
-
return We((t = z(H)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
11585
|
-
})
|
|
11511
|
+
ref_key: "fullScreenRef",
|
|
11512
|
+
ref: _,
|
|
11513
|
+
class: "ai-full-screen-wrapper"
|
|
11514
|
+
}, [
|
|
11515
|
+
f(z(be), {
|
|
11516
|
+
active: z(H).name,
|
|
11517
|
+
class: "ai-chat-container-tab",
|
|
11518
|
+
"label-height": 40,
|
|
11519
|
+
type: "unborder-card",
|
|
11520
|
+
onChange: Ke
|
|
11586
11521
|
}, {
|
|
11587
|
-
|
|
11522
|
+
setting: U(() => [l("div", ty, [f(wa, {
|
|
11523
|
+
class: "screen-btn",
|
|
11524
|
+
"tippy-options": X(X({}, ne.value), {}, { content: z(v) ? z(G)("退出全屏") : z(G)("全屏") })
|
|
11525
|
+
}, {
|
|
11526
|
+
default: U(() => [z(v) ? (k(), o(z(Ir), {
|
|
11527
|
+
key: 1,
|
|
11528
|
+
onClick: z(S)
|
|
11529
|
+
}, null, 8, ["onClick"])) : (k(), o(z(Fr), {
|
|
11530
|
+
key: 0,
|
|
11531
|
+
onClick: z(y)
|
|
11532
|
+
}, null, 8, ["onClick"]))]),
|
|
11533
|
+
_: 1
|
|
11534
|
+
}, 8, ["tippy-options"])])]),
|
|
11535
|
+
default: U(() => [(k(!0), c(e, null, P(z(ie), (e) => (k(), o(z(u), {
|
|
11536
|
+
key: e.name,
|
|
11537
|
+
class: "ai-chat-container-tab-panel",
|
|
11538
|
+
label: () => {
|
|
11539
|
+
var n, r, i, a;
|
|
11540
|
+
return g("div", {
|
|
11541
|
+
class: "ai-execution-summary-label",
|
|
11542
|
+
onVnodeMounted: (t) => {
|
|
11543
|
+
if (z(H).name === e.name) {
|
|
11544
|
+
var n;
|
|
11545
|
+
(n = t.el) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
11546
|
+
}
|
|
11547
|
+
}
|
|
11548
|
+
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: z(ue) })) == null ? [
|
|
11549
|
+
g(Ge(e.name), { class: "ai-execution-summary-icon" }),
|
|
11550
|
+
W(g("span", { class: "ai-execution-summary-label-text" }, (i = e.label) == null ? "" : i), [[z(Sa), X(X({}, ne.value), {}, { text: (a = e.label) == null ? "" : a })]]),
|
|
11551
|
+
e.closable !== !1 && e.name !== z("execution") ? g(z(Lr), {
|
|
11552
|
+
class: "ai-execution-close-icon",
|
|
11553
|
+
onClick: () => {
|
|
11554
|
+
z(ue)(e.name);
|
|
11555
|
+
}
|
|
11556
|
+
}) : null
|
|
11557
|
+
] : n);
|
|
11558
|
+
},
|
|
11559
|
+
name: e.name
|
|
11560
|
+
}, null, 8, ["label", "name"]))), 128))]),
|
|
11588
11561
|
_: 1
|
|
11589
|
-
}
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11562
|
+
}, 8, ["active"]),
|
|
11563
|
+
((n = z(H)) == null ? void 0 : n.name) === z("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [z(oe) ? s("", !0) : (k(), o(qv, {
|
|
11564
|
+
key: 0,
|
|
11565
|
+
"message-groups": z(Ee),
|
|
11566
|
+
style: { height: "calc(100% - 40px)" },
|
|
11567
|
+
onLocateMessageGroup: We,
|
|
11568
|
+
onUpdateKeyword: qe
|
|
11569
|
+
}, null, 8, ["message-groups"]))], 64)) : ((r = z(H)) == null ? void 0 : r.name) === z("file-artifact") ? (k(), o(Jm, {
|
|
11570
|
+
key: 1,
|
|
11571
|
+
"active-id": z(Fe),
|
|
11572
|
+
artifacts: z(De),
|
|
11573
|
+
style: { height: "calc(100% - 40px)" },
|
|
11574
|
+
onSelect: z(Ie)
|
|
11575
|
+
}, null, 8, [
|
|
11576
|
+
"active-id",
|
|
11577
|
+
"artifacts",
|
|
11578
|
+
"onSelect"
|
|
11579
|
+
])) : s("", !0),
|
|
11580
|
+
z(H) && z(H).name !== z("file-artifact") ? (k(), c("div", {
|
|
11581
|
+
key: z(H).name,
|
|
11582
|
+
class: "ai-chat-container-message-slot"
|
|
11583
|
+
}, [(k(), o(I(E.value), b({ key: z(H).name }, (a = z(H)) == null || (a = a.data) == null ? void 0 : a.props), {
|
|
11584
|
+
locateButton: U(() => [f(z(le), {
|
|
11585
|
+
class: "ai-locate-button",
|
|
11586
|
+
size: "small",
|
|
11587
|
+
text: "",
|
|
11588
|
+
theme: "primary",
|
|
11589
|
+
onClick: i[0] || (i[0] = (e) => {
|
|
11590
|
+
var t;
|
|
11591
|
+
return We((t = z(H)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
11592
|
+
})
|
|
11593
|
+
}, {
|
|
11594
|
+
default: U(() => [d(R(z(G)("在对话中定位")), 1)]),
|
|
11595
|
+
_: 1
|
|
11596
|
+
})]),
|
|
11597
|
+
_: 1
|
|
11598
|
+
}, 16))])) : s("", !0)
|
|
11599
|
+
], 512)) : s("", !0)];
|
|
11600
|
+
}),
|
|
11601
|
+
_: 1
|
|
11602
|
+
})]),
|
|
11603
|
+
main: U(() => {
|
|
11604
|
+
var r, a, u, d;
|
|
11605
|
+
return [(r = t.messages) != null && r.length ? F(n.$slots, "default", C(b({ key: 0 }, {
|
|
11606
|
+
messages: t.messages,
|
|
11607
|
+
messageStatus: t.messageStatus,
|
|
11608
|
+
messageGroups: z(Te),
|
|
11609
|
+
selectedUserMessages: he.value,
|
|
11610
|
+
messageToolsStatus: t.messageToolsStatus,
|
|
11611
|
+
isShareMode: z(Oe),
|
|
11612
|
+
commonTippyOptions: ne.value,
|
|
11613
|
+
handleAgentAction: Je,
|
|
11614
|
+
onAgentFeedback: t.onAgentFeedback,
|
|
11615
|
+
onInterruptResume: t.onInterruptResume,
|
|
11616
|
+
onUserAction: t.onUserAction,
|
|
11617
|
+
onUserInputConfirm: t.onUserInputConfirm,
|
|
11618
|
+
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
11619
|
+
})), () => {
|
|
11620
|
+
var e;
|
|
11621
|
+
return [(e = t.messages) != null && e.length ? (k(), o(Iv, {
|
|
11622
|
+
key: 0,
|
|
11623
|
+
"selected-user-messages": he.value,
|
|
11624
|
+
"onUpdate:selectedUserMessages": i[1] || (i[1] = (e) => he.value = e),
|
|
11625
|
+
"enable-selection": z(Oe),
|
|
11626
|
+
"message-groups": z(Te),
|
|
11627
|
+
"message-status": Le.value,
|
|
11628
|
+
"message-tools": t.messageTools,
|
|
11629
|
+
"message-tools-status": t.messageToolsStatus,
|
|
11630
|
+
"message-tools-tippy-options": ne.value,
|
|
11631
|
+
messages: t.messages,
|
|
11632
|
+
"on-agent-action": Je,
|
|
11633
|
+
"on-agent-feedback": t.onAgentFeedback,
|
|
11634
|
+
"on-interrupt-resume": t.onInterruptResume,
|
|
11635
|
+
"on-user-action": t.onUserAction,
|
|
11636
|
+
"on-user-input-confirm": t.onUserInputConfirm,
|
|
11637
|
+
"on-user-shortcut-confirm": t.onUserShortcutConfirm,
|
|
11638
|
+
"render-mode": m.value,
|
|
11639
|
+
"update-tools": t.updateTools,
|
|
11640
|
+
onStopStreaming: i[2] || (i[2] = (e) => M("stopStreaming"))
|
|
11641
|
+
}, {
|
|
11642
|
+
group: U(({ group: e }) => [F(n.$slots, "group", C(h({ group: e })))]),
|
|
11643
|
+
default: U(({ message: e, messageToolsStatus: t, onInterruptResume: r }) => [F(n.$slots, "message", C(h({
|
|
11644
|
+
message: e,
|
|
11645
|
+
messageToolsStatus: t,
|
|
11646
|
+
onInterruptResume: r
|
|
11647
|
+
})))]),
|
|
11648
|
+
_: 3
|
|
11649
|
+
}, 8, [
|
|
11650
|
+
"selected-user-messages",
|
|
11651
|
+
"enable-selection",
|
|
11652
|
+
"message-groups",
|
|
11653
|
+
"message-status",
|
|
11654
|
+
"message-tools",
|
|
11655
|
+
"message-tools-status",
|
|
11656
|
+
"message-tools-tippy-options",
|
|
11657
|
+
"messages",
|
|
11658
|
+
"on-agent-feedback",
|
|
11659
|
+
"on-interrupt-resume",
|
|
11660
|
+
"on-user-action",
|
|
11661
|
+
"on-user-input-confirm",
|
|
11662
|
+
"on-user-shortcut-confirm",
|
|
11663
|
+
"render-mode",
|
|
11664
|
+
"update-tools"
|
|
11665
|
+
])) : s("", !0)];
|
|
11666
|
+
}) : (k(), c("div", ny, [F(n.$slots, "welcome", C(h({
|
|
11667
|
+
openingRemark: t.openingRemark,
|
|
11668
|
+
welcomeTitle: t.welcomeTitle
|
|
11669
|
+
})), () => {
|
|
11670
|
+
var e;
|
|
11671
|
+
return [
|
|
11672
|
+
f(z(Jt)),
|
|
11673
|
+
l("h2", ry, R((e = t.welcomeTitle) == null ? z(G)("你好,我是小鲸") : e), 1),
|
|
11674
|
+
t.openingRemark ? (k(), c("div", iy, [f(zu, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
11675
|
+
];
|
|
11676
|
+
})])), m.value === z(Lt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [z(Oe) ? (k(), o(Qv, {
|
|
11615
11677
|
key: 0,
|
|
11616
|
-
"
|
|
11617
|
-
|
|
11618
|
-
"
|
|
11619
|
-
|
|
11678
|
+
"is-all-selected": z(ke),
|
|
11679
|
+
loading: !1,
|
|
11680
|
+
"selected-count": he.value.length,
|
|
11681
|
+
onCancel: Xe,
|
|
11682
|
+
onConfirm: Ye,
|
|
11683
|
+
onToggleAll: z(Ae)
|
|
11684
|
+
}, null, 8, [
|
|
11685
|
+
"is-all-selected",
|
|
11686
|
+
"selected-count",
|
|
11687
|
+
"onToggleAll"
|
|
11688
|
+
])) : !((a = D.value) == null || (a = a.components) == null) && a.length ? (k(), o(Oi, b({ key: 1 }, D.value, {
|
|
11689
|
+
class: { "is-welcome-overlay": !((u = t.messages) != null && u.length) },
|
|
11690
|
+
onClose: Re,
|
|
11691
|
+
onSubmit: ze
|
|
11692
|
+
}), null, 16, ["class"])) : (k(), o(Zp, {
|
|
11693
|
+
key: 2,
|
|
11694
|
+
cite: A.value,
|
|
11695
|
+
"onUpdate:cite": i[3] || (i[3] = (e) => A.value = e),
|
|
11696
|
+
"selected-model": j.value,
|
|
11697
|
+
"onUpdate:selectedModel": i[4] || (i[4] = (e) => j.value = e),
|
|
11620
11698
|
"message-status": Le.value,
|
|
11621
|
-
"
|
|
11622
|
-
|
|
11623
|
-
"
|
|
11624
|
-
|
|
11625
|
-
"on-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
"
|
|
11630
|
-
"
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11699
|
+
"model-value": t.modelValue,
|
|
11700
|
+
models: t.models,
|
|
11701
|
+
"on-send-message": Ue,
|
|
11702
|
+
"on-stop-sending": t.onStopSending,
|
|
11703
|
+
"on-upload": t.onUpload,
|
|
11704
|
+
placeholder: t.placeholder,
|
|
11705
|
+
prompts: t.prompts,
|
|
11706
|
+
resources: t.resources,
|
|
11707
|
+
"send-disabled-tip": z(Ne),
|
|
11708
|
+
"shortcut-id": (d = D.value) == null ? void 0 : d.id,
|
|
11709
|
+
shortcuts: t.shortcuts,
|
|
11710
|
+
skills: t.skills,
|
|
11711
|
+
"support-upload": t.supportUpload,
|
|
11712
|
+
"tippy-options": ne.value,
|
|
11713
|
+
onDeleteShortcut: Be,
|
|
11714
|
+
onModelChange: i[5] || (i[5] = (e) => M("modelChange", e)),
|
|
11715
|
+
onSelectShortcut: Ve,
|
|
11716
|
+
"onUpdate:modelValue": He
|
|
11634
11717
|
}, {
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11718
|
+
interrupt: U(() => [z(Pe) ? (k(), o(z(jh), {
|
|
11719
|
+
key: 0,
|
|
11720
|
+
interrupt: z(Pe),
|
|
11721
|
+
"on-resume": t.onInterruptResume
|
|
11722
|
+
}, {
|
|
11723
|
+
question: U(({ question: e, qIndex: t, answer: r, setAnswer: i, confirm: a }) => [F(n.$slots, "interruptQuestion", C(h({
|
|
11724
|
+
question: e,
|
|
11725
|
+
qIndex: t,
|
|
11726
|
+
answer: r,
|
|
11727
|
+
setAnswer: i,
|
|
11728
|
+
confirm: a
|
|
11729
|
+
})))]),
|
|
11730
|
+
_: 3
|
|
11731
|
+
}, 8, ["interrupt", "on-resume"])) : s("", !0), z(Ne) ? (k(), o(em, {
|
|
11732
|
+
key: 1,
|
|
11733
|
+
content: z(Ne)
|
|
11734
|
+
}, null, 8, ["content"])) : s("", !0)]),
|
|
11641
11735
|
_: 3
|
|
11642
11736
|
}, 8, [
|
|
11643
|
-
"
|
|
11644
|
-
"
|
|
11645
|
-
"message-groups",
|
|
11737
|
+
"cite",
|
|
11738
|
+
"selected-model",
|
|
11646
11739
|
"message-status",
|
|
11647
|
-
"
|
|
11648
|
-
"
|
|
11649
|
-
"
|
|
11650
|
-
"
|
|
11651
|
-
"
|
|
11652
|
-
"
|
|
11653
|
-
"
|
|
11654
|
-
"
|
|
11655
|
-
"
|
|
11656
|
-
"
|
|
11657
|
-
"
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
f(z(Jt)),
|
|
11666
|
-
l("h2", ry, R((e = t.welcomeTitle) == null ? z(G)("你好,我是小鲸") : e), 1),
|
|
11667
|
-
t.openingRemark ? (k(), c("div", iy, [f(zu, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
11668
|
-
];
|
|
11669
|
-
})])), m.value === z(Lt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [z(Oe) ? (k(), o(Qv, {
|
|
11670
|
-
key: 0,
|
|
11671
|
-
"is-all-selected": z(ke),
|
|
11672
|
-
loading: !1,
|
|
11673
|
-
"selected-count": he.value.length,
|
|
11674
|
-
onCancel: Xe,
|
|
11675
|
-
onConfirm: Ye,
|
|
11676
|
-
onToggleAll: z(Ae)
|
|
11677
|
-
}, null, 8, [
|
|
11678
|
-
"is-all-selected",
|
|
11679
|
-
"selected-count",
|
|
11680
|
-
"onToggleAll"
|
|
11681
|
-
])) : !((a = D.value) == null || (a = a.components) == null) && a.length ? (k(), o(Oi, b({ key: 1 }, D.value, {
|
|
11682
|
-
class: { "is-welcome-overlay": !((u = t.messages) != null && u.length) },
|
|
11683
|
-
onClose: Re,
|
|
11684
|
-
onSubmit: ze
|
|
11685
|
-
}), null, 16, ["class"])) : (k(), o(Zp, {
|
|
11686
|
-
key: 2,
|
|
11687
|
-
cite: A.value,
|
|
11688
|
-
"onUpdate:cite": i[3] || (i[3] = (e) => A.value = e),
|
|
11689
|
-
"selected-model": j.value,
|
|
11690
|
-
"onUpdate:selectedModel": i[4] || (i[4] = (e) => j.value = e),
|
|
11691
|
-
"message-status": Le.value,
|
|
11692
|
-
"model-value": t.modelValue,
|
|
11693
|
-
models: t.models,
|
|
11694
|
-
"on-send-message": Ue,
|
|
11695
|
-
"on-stop-sending": t.onStopSending,
|
|
11696
|
-
"on-upload": t.onUpload,
|
|
11697
|
-
placeholder: t.placeholder,
|
|
11698
|
-
prompts: t.prompts,
|
|
11699
|
-
resources: t.resources,
|
|
11700
|
-
"send-disabled-tip": z(Ne),
|
|
11701
|
-
"shortcut-id": (d = D.value) == null ? void 0 : d.id,
|
|
11702
|
-
shortcuts: t.shortcuts,
|
|
11703
|
-
skills: t.skills,
|
|
11704
|
-
"support-upload": t.supportUpload,
|
|
11705
|
-
"tippy-options": ne.value,
|
|
11706
|
-
onDeleteShortcut: Be,
|
|
11707
|
-
onModelChange: i[5] || (i[5] = (e) => M("modelChange", e)),
|
|
11708
|
-
onSelectShortcut: Ve,
|
|
11709
|
-
"onUpdate:modelValue": He
|
|
11710
|
-
}, {
|
|
11711
|
-
interrupt: U(() => [z(Pe) ? (k(), o(z(jh), {
|
|
11712
|
-
key: 0,
|
|
11713
|
-
interrupt: z(Pe),
|
|
11714
|
-
"on-resume": t.onInterruptResume
|
|
11715
|
-
}, {
|
|
11716
|
-
question: U(({ question: e, qIndex: t, answer: r, setAnswer: i, confirm: a }) => [F(n.$slots, "interruptQuestion", C(h({
|
|
11717
|
-
question: e,
|
|
11718
|
-
qIndex: t,
|
|
11719
|
-
answer: r,
|
|
11720
|
-
setAnswer: i,
|
|
11721
|
-
confirm: a
|
|
11722
|
-
})))]),
|
|
11723
|
-
_: 3
|
|
11724
|
-
}, 8, ["interrupt", "on-resume"])) : s("", !0), z(Ne) ? (k(), o(em, {
|
|
11725
|
-
key: 1,
|
|
11726
|
-
content: z(Ne)
|
|
11727
|
-
}, null, 8, ["content"])) : s("", !0)]),
|
|
11728
|
-
_: 3
|
|
11729
|
-
}, 8, [
|
|
11730
|
-
"cite",
|
|
11731
|
-
"selected-model",
|
|
11732
|
-
"message-status",
|
|
11733
|
-
"model-value",
|
|
11734
|
-
"models",
|
|
11735
|
-
"on-stop-sending",
|
|
11736
|
-
"on-upload",
|
|
11737
|
-
"placeholder",
|
|
11738
|
-
"prompts",
|
|
11739
|
-
"resources",
|
|
11740
|
-
"send-disabled-tip",
|
|
11741
|
-
"shortcut-id",
|
|
11742
|
-
"shortcuts",
|
|
11743
|
-
"skills",
|
|
11744
|
-
"support-upload",
|
|
11745
|
-
"tippy-options"
|
|
11746
|
-
]))], 64))];
|
|
11747
|
-
}),
|
|
11748
|
-
_: 3
|
|
11749
|
-
}, 16, ["class"]))], 12, $v));
|
|
11740
|
+
"model-value",
|
|
11741
|
+
"models",
|
|
11742
|
+
"on-stop-sending",
|
|
11743
|
+
"on-upload",
|
|
11744
|
+
"placeholder",
|
|
11745
|
+
"prompts",
|
|
11746
|
+
"resources",
|
|
11747
|
+
"send-disabled-tip",
|
|
11748
|
+
"shortcut-id",
|
|
11749
|
+
"shortcuts",
|
|
11750
|
+
"skills",
|
|
11751
|
+
"support-upload",
|
|
11752
|
+
"tippy-options"
|
|
11753
|
+
]))], 64))];
|
|
11754
|
+
}),
|
|
11755
|
+
_: 3
|
|
11756
|
+
}, 16, ["class"]))], 12, $v);
|
|
11757
|
+
};
|
|
11750
11758
|
}
|
|
11751
11759
|
}), oy = { class: "ai-image-preview-group" }, sy = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
|
|
11752
11760
|
__name: "image-preview-group",
|