@blueking/chat-x 0.0.46-beta.3 → 0.0.46-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ag-ui/types/interrupt.d.ts +5 -2
- package/dist/index.css +1 -1
- package/dist/index.js +755 -708
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +7 -1
- package/dist/mcp/generated/docs/interrupt.md +7 -2
- package/dist/mcp/generated/docs/tool-approval-card.md +26 -10
- package/dist/mcp/generated/index.json +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as
|
|
1
|
+
import { Fragment as e, Teleport as t, Text as n, Transition as r, cloneVNode as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, guardReactiveProps as h, h as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onScopeDispose as D, onUnmounted as O, openBlock as k, provide as A, reactive as j, readonly as M, ref as ee, renderList as N, renderSlot as P, resolveDynamicComponent as F, shallowRef as I, toDisplayString as L, toRef as te, toValue as R, unref as z, useAttrs as ne, useModel as re, useSlots as ie, useTemplateRef as B, vShow as ae, watch as V, watchEffect as oe, watchPostEffect as se, withCtx as H, withDirectives as U, withKeys as ce, withModifiers as le } from "vue";
|
|
2
2
|
import { Button as W, Checkbox as ue, Exception as de, Form as fe, Input as pe, Loading as me, Message as he, Radio as ge, ResizeLayout as _e, Select as ve, Switcher as ye, Tab as be } from "bkui-vue";
|
|
3
3
|
import { Tippy as xe, directive as Se } from "vue-tippy";
|
|
4
4
|
import "tippy.js/dist/tippy.css";
|
|
@@ -602,6 +602,12 @@ var ut = (e) => {
|
|
|
602
602
|
复制单据: "Copy Ticket",
|
|
603
603
|
复制单据链接: "Copy Ticket Link",
|
|
604
604
|
取消审批: "Cancel Approval",
|
|
605
|
+
已取消审批: "Approval Cancelled",
|
|
606
|
+
刷新单据状态: "Refresh Ticket Status",
|
|
607
|
+
"该单据已被拒绝,无法取消": "This ticket has been rejected and cannot be cancelled",
|
|
608
|
+
"该单据已通过,无法取消": "This ticket has been approved and cannot be cancelled",
|
|
609
|
+
"单据已取消,无需重复点击": "This ticket has been cancelled, no need to click again",
|
|
610
|
+
当前状态无法取消审批: "Approval cannot be cancelled in the current status",
|
|
605
611
|
"当前会话有 {count} 个待审批单,如需继续,请先取消审批": "There are {count} pending approval tickets in the current conversation. To continue, cancel approval first.",
|
|
606
612
|
暂不支持的中断消息: "Unsupported interrupt message",
|
|
607
613
|
检索中: "Searching",
|
|
@@ -668,7 +674,7 @@ var ut = (e) => {
|
|
|
668
674
|
[K.REVOKED]: G("已撤销"),
|
|
669
675
|
[K.DRAFT]: G("待审批")
|
|
670
676
|
}, yt = /* @__PURE__ */ function(e) {
|
|
671
|
-
return e.ApprovalCancel = "approval_cancel", e.FlowNodeRetry = "flow_node_retry", e.FlowNodeSkip = "flow_node_skip", e;
|
|
677
|
+
return e.ApprovalCancel = "approval_cancel", e.ApprovalRefresh = "approval_refresh", e.FlowNodeRetry = "flow_node_retry", e.FlowNodeSkip = "flow_node_skip", e;
|
|
672
678
|
}({}), bt = {
|
|
673
679
|
properties: { question: {
|
|
674
680
|
enum: [],
|
|
@@ -1514,12 +1520,12 @@ var Wt = m({
|
|
|
1514
1520
|
"is-disabled": e.disabled
|
|
1515
1521
|
}]),
|
|
1516
1522
|
onClick: i
|
|
1517
|
-
}, [e.loading ? (k(), o(
|
|
1523
|
+
}, [e.loading ? (k(), o(z(me), {
|
|
1518
1524
|
key: 0,
|
|
1519
1525
|
mode: "spin",
|
|
1520
1526
|
size: "mini",
|
|
1521
1527
|
theme: "primary"
|
|
1522
|
-
})) :
|
|
1528
|
+
})) : P(t.$slots, "icon", { key: 1 }), P(t.$slots, "title", {}, () => [d(L(e.title), 1)])], 2));
|
|
1523
1529
|
}
|
|
1524
1530
|
}), rr = { class: "ai-loading-ring" }, ir = {
|
|
1525
1531
|
fill: "none",
|
|
@@ -1623,8 +1629,8 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1623
1629
|
},
|
|
1624
1630
|
emits: ["click"],
|
|
1625
1631
|
setup(t, { expose: n, emit: r }) {
|
|
1626
|
-
let i = t, a =
|
|
1627
|
-
|
|
1632
|
+
let i = t, a = I(!1), l = r;
|
|
1633
|
+
V(() => {
|
|
1628
1634
|
var e;
|
|
1629
1635
|
return (e = i.shortcut) == null ? void 0 : e.icon;
|
|
1630
1636
|
}, () => {
|
|
@@ -1632,7 +1638,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1632
1638
|
}, { immediate: !0 });
|
|
1633
1639
|
let u = (e) => {
|
|
1634
1640
|
l("click", e);
|
|
1635
|
-
}, f =
|
|
1641
|
+
}, f = B("el");
|
|
1636
1642
|
return n({ get $el() {
|
|
1637
1643
|
return f.value;
|
|
1638
1644
|
} }), (n, r) => (k(), c("button", {
|
|
@@ -1640,9 +1646,9 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1640
1646
|
ref: f,
|
|
1641
1647
|
class: S(["ai-shortcut-btn", { "is-menu-mode": t.mode === "menu" }]),
|
|
1642
1648
|
onClick: r[1] || (r[1] = (e) => u(t.shortcut))
|
|
1643
|
-
}, [
|
|
1649
|
+
}, [P(n.$slots, "default", {}, () => {
|
|
1644
1650
|
var n, i, l, u, f, p, m;
|
|
1645
|
-
return [(n = t.shortcut) != null && n.icon ? (k(), c(e, { key: 0 }, [typeof t.shortcut.icon == "string" ? (k(), c(e, { key: 0 }, [t.shortcut.icon.startsWith("http") ? (k(), c(e, { key: 0 }, [a.value ? (k(), o(
|
|
1651
|
+
return [(n = t.shortcut) != null && n.icon ? (k(), c(e, { key: 0 }, [typeof t.shortcut.icon == "string" ? (k(), c(e, { key: 0 }, [t.shortcut.icon.startsWith("http") ? (k(), c(e, { key: 0 }, [a.value ? (k(), o(z(Hn), {
|
|
1646
1652
|
key: 1,
|
|
1647
1653
|
class: "ai-shortcut-btn-icon"
|
|
1648
1654
|
})) : (k(), c("img", {
|
|
@@ -1653,14 +1659,14 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1653
1659
|
}, null, 40, dr))], 64)) : (k(), c("span", {
|
|
1654
1660
|
key: 1,
|
|
1655
1661
|
class: S(t.shortcut.icon)
|
|
1656
|
-
}, null, 2))], 64)) : (k(), o(
|
|
1662
|
+
}, null, 2))], 64)) : (k(), o(F(typeof ((i = t.shortcut) == null ? void 0 : i.icon) == "function" ? (l = (u = t.shortcut).icon) == null ? void 0 : l.call(u, g) : t.shortcut.icon), {
|
|
1657
1663
|
key: 1,
|
|
1658
1664
|
class: "ai-shortcut-btn-icon"
|
|
1659
|
-
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(
|
|
1665
|
+
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(z(Hn), {
|
|
1660
1666
|
key: 1,
|
|
1661
1667
|
class: "ai-shortcut-btn-icon"
|
|
1662
|
-
})) : s("", !0), d(" " +
|
|
1663
|
-
}),
|
|
1668
|
+
})) : s("", !0), d(" " + L(((p = t.shortcut) == null ? void 0 : p.alias) || ((m = t.shortcut) == null ? void 0 : m.name)), 1)];
|
|
1669
|
+
}), P(n.$slots, "append")], 2));
|
|
1664
1670
|
}
|
|
1665
1671
|
}), pr = { class: "ai-selection-popover-content" }, mr = {
|
|
1666
1672
|
key: 0,
|
|
@@ -1678,10 +1684,10 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1678
1684
|
}),
|
|
1679
1685
|
emits: /* @__PURE__ */ y(["selectShortcut", "selectionChange"], ["update:visible"]),
|
|
1680
1686
|
setup(n, { emit: i }) {
|
|
1681
|
-
let a = n, u =
|
|
1687
|
+
let a = n, u = re(n, "visible"), d = i, p = B("popoverRef"), m = B("moreMenuRef"), h = I({
|
|
1682
1688
|
x: 0,
|
|
1683
1689
|
y: 0
|
|
1684
|
-
}), g =
|
|
1690
|
+
}), g = I(""), _ = I(null), v = I(!1), y = (e) => {
|
|
1685
1691
|
if ((e == null ? void 0 : e.shadowRoot) instanceof ShadowRoot) {
|
|
1686
1692
|
try {
|
|
1687
1693
|
let t = e.shadowRoot;
|
|
@@ -1777,22 +1783,22 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1777
1783
|
D(200);
|
|
1778
1784
|
}, j = () => {
|
|
1779
1785
|
D(300);
|
|
1780
|
-
},
|
|
1786
|
+
}, M = (e) => {
|
|
1781
1787
|
var t;
|
|
1782
1788
|
u.value && (t = p.value) != null && t.contains(e.target) || S();
|
|
1783
|
-
},
|
|
1789
|
+
}, ee = (e) => {
|
|
1784
1790
|
var t;
|
|
1785
1791
|
!_.value || !u.value || e.target instanceof HTMLElement && e.target.contains((t = _.value) == null ? void 0 : t.anchorNode) && S();
|
|
1786
|
-
},
|
|
1792
|
+
}, F = () => {
|
|
1787
1793
|
var e;
|
|
1788
1794
|
(e = m.value) == null || e.show();
|
|
1789
1795
|
};
|
|
1790
1796
|
return E(() => {
|
|
1791
|
-
document.addEventListener("selectionchange", j), document.addEventListener("mouseup", A), document.addEventListener("mousedown",
|
|
1797
|
+
document.addEventListener("selectionchange", j), document.addEventListener("mouseup", A), document.addEventListener("mousedown", M), document.addEventListener("scroll", ee, !0), window.addEventListener("resize", S), window.addEventListener("blur", S);
|
|
1792
1798
|
}), O(() => {
|
|
1793
|
-
document.removeEventListener("selectionchange", j), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown",
|
|
1799
|
+
document.removeEventListener("selectionchange", j), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown", M), document.removeEventListener("scroll", ee, !0), window.removeEventListener("resize", S), window.removeEventListener("blur", S);
|
|
1794
1800
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-fade" }, {
|
|
1795
|
-
default:
|
|
1801
|
+
default: H(() => [u.value ? (k(), c("div", {
|
|
1796
1802
|
key: 0,
|
|
1797
1803
|
ref_key: "popoverRef",
|
|
1798
1804
|
ref: p,
|
|
@@ -1800,18 +1806,18 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1800
1806
|
style: w({
|
|
1801
1807
|
left: `${h.value.x}px`,
|
|
1802
1808
|
top: `${h.value.y}px`,
|
|
1803
|
-
zIndex:
|
|
1804
|
-
"--selection-z-index":
|
|
1809
|
+
zIndex: z(Dt),
|
|
1810
|
+
"--selection-z-index": z(Dt)
|
|
1805
1811
|
}),
|
|
1806
|
-
onMousedown: a[2] || (a[2] =
|
|
1807
|
-
}, [l("div", pr, [
|
|
1812
|
+
onMousedown: a[2] || (a[2] = le(() => {}, ["stop"]))
|
|
1813
|
+
}, [l("div", pr, [P(i.$slots, "default", { shortcuts: n.shortcuts }, () => [(k(!0), c(e, null, N(n.shortcuts.slice(0, n.maxShortcutCount), (t, r) => (k(), c(e, { key: t.id }, [r < n.maxShortcutCount ? (k(), o(fr, {
|
|
1808
1814
|
key: 0,
|
|
1809
1815
|
shortcut: t,
|
|
1810
1816
|
onClick: (e) => C(t)
|
|
1811
1817
|
}, null, 8, ["shortcut", "onClick"])) : s("", !0)], 64))), 128)), n.shortcuts.length > n.maxShortcutCount ? (k(), c(e, { key: 0 }, [a[3] || (a[3] = l("div", {
|
|
1812
1818
|
class: "ai-divider",
|
|
1813
1819
|
style: { margin: "0 4px" }
|
|
1814
|
-
}, null, -1)), f(
|
|
1820
|
+
}, null, -1)), f(z(xe), {
|
|
1815
1821
|
ref_key: "moreMenuRef",
|
|
1816
1822
|
ref: m,
|
|
1817
1823
|
arrow: !1,
|
|
@@ -1826,17 +1832,17 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1826
1832
|
v.value = !0;
|
|
1827
1833
|
})
|
|
1828
1834
|
}, {
|
|
1829
|
-
content:
|
|
1835
|
+
content: H(() => [v.value ? (k(), c("div", mr, [(k(!0), c(e, null, N(n.shortcuts.slice(n.maxShortcutCount), (e) => (k(), o(fr, {
|
|
1830
1836
|
key: e.id,
|
|
1831
1837
|
mode: "menu",
|
|
1832
1838
|
shortcut: e,
|
|
1833
1839
|
onClick: (t) => C(e)
|
|
1834
1840
|
}, null, 8, ["shortcut", "onClick"]))), 128))])) : s("", !0)]),
|
|
1835
|
-
default:
|
|
1841
|
+
default: H(() => [f(fr, {
|
|
1836
1842
|
style: { width: "28px" },
|
|
1837
|
-
onClick:
|
|
1843
|
+
onClick: F
|
|
1838
1844
|
}, {
|
|
1839
|
-
default:
|
|
1845
|
+
default: H(() => [f(z(Pn), { class: "shortcut-btn-more-icon" })]),
|
|
1840
1846
|
_: 1
|
|
1841
1847
|
})]),
|
|
1842
1848
|
_: 1
|
|
@@ -1845,7 +1851,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1845
1851
|
})]));
|
|
1846
1852
|
}
|
|
1847
1853
|
}), gr = (e, t, n) => {
|
|
1848
|
-
let r =
|
|
1854
|
+
let r = I([]), i = function() {
|
|
1849
1855
|
var i = Z(function* () {
|
|
1850
1856
|
if (!e.value || t.value.length === 0) return;
|
|
1851
1857
|
yield x();
|
|
@@ -1864,7 +1870,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1864
1870
|
return i.apply(this, arguments);
|
|
1865
1871
|
};
|
|
1866
1872
|
}(), a = null;
|
|
1867
|
-
return
|
|
1873
|
+
return V([t, n.moreItemRef], () => {
|
|
1868
1874
|
x(() => {
|
|
1869
1875
|
i();
|
|
1870
1876
|
});
|
|
@@ -1885,14 +1891,14 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1885
1891
|
props: { shortcuts: {} },
|
|
1886
1892
|
emits: ["selectShortcut"],
|
|
1887
1893
|
setup(t, { emit: n }) {
|
|
1888
|
-
let r = () => document.body, i = t, u = n, d =
|
|
1894
|
+
let r = () => document.body, i = t, u = n, d = B("containerRef"), p = I([]), m = B("moreMenuRef"), h = B("moreBtnRef"), { visibleItems: g } = gr(d, p, {
|
|
1889
1895
|
items: a(() => i.shortcuts),
|
|
1890
1896
|
gap: vr,
|
|
1891
1897
|
moreItemRef: h
|
|
1892
|
-
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v =
|
|
1898
|
+
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v = I(!1), y = (e, t) => {
|
|
1893
1899
|
e && "$el" in e ? p.value[t] = e.$el : e && e instanceof HTMLElement && (p.value[t] = e);
|
|
1894
1900
|
};
|
|
1895
|
-
|
|
1901
|
+
V(() => i.shortcuts, () => {
|
|
1896
1902
|
p.value = Array(i.shortcuts.length).fill(null);
|
|
1897
1903
|
}, { deep: !0 });
|
|
1898
1904
|
let b = () => {
|
|
@@ -1900,7 +1906,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1900
1906
|
}, x = (e) => {
|
|
1901
1907
|
v.value = !1, u("selectShortcut", e);
|
|
1902
1908
|
};
|
|
1903
|
-
return
|
|
1909
|
+
return V(v, (e) => {
|
|
1904
1910
|
if (e) {
|
|
1905
1911
|
var t;
|
|
1906
1912
|
(t = m.value) == null || t.show();
|
|
@@ -1912,18 +1918,18 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1912
1918
|
ref_key: "containerRef",
|
|
1913
1919
|
ref: d,
|
|
1914
1920
|
class: "shortcut-btns"
|
|
1915
|
-
}, [(k(!0), c(e, null,
|
|
1921
|
+
}, [(k(!0), c(e, null, N(t.shortcuts, (e, t) => (k(), o(fr, {
|
|
1916
1922
|
key: e.key || e.id,
|
|
1917
1923
|
ref_for: !0,
|
|
1918
1924
|
ref: (e) => y(e, t),
|
|
1919
|
-
class: S(["shortcut-btns-item", { "shortcut-btns-item-hidden": !
|
|
1925
|
+
class: S(["shortcut-btns-item", { "shortcut-btns-item-hidden": !z(g).includes(e) }]),
|
|
1920
1926
|
shortcut: e,
|
|
1921
1927
|
onClick: (t) => x(e)
|
|
1922
1928
|
}, null, 8, [
|
|
1923
1929
|
"class",
|
|
1924
1930
|
"shortcut",
|
|
1925
1931
|
"onClick"
|
|
1926
|
-
]))), 128)), _.value.length > 0 ? (k(), o(
|
|
1932
|
+
]))), 128)), _.value.length > 0 ? (k(), o(z(xe), {
|
|
1927
1933
|
key: 0,
|
|
1928
1934
|
ref_key: "moreMenuRef",
|
|
1929
1935
|
ref: m,
|
|
@@ -1933,24 +1939,24 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1933
1939
|
offset: [0, 6],
|
|
1934
1940
|
theme: "ai-chat-box-light light",
|
|
1935
1941
|
trigger: "manual",
|
|
1936
|
-
"z-index":
|
|
1942
|
+
"z-index": z(Et),
|
|
1937
1943
|
onHidden: i[0] || (i[0] = () => {
|
|
1938
1944
|
v.value = !1;
|
|
1939
1945
|
})
|
|
1940
1946
|
}, {
|
|
1941
|
-
content:
|
|
1947
|
+
content: H(() => [l("div", _r, [(k(!0), c(e, null, N(_.value, (e) => (k(), o(fr, {
|
|
1942
1948
|
key: e.id,
|
|
1943
1949
|
mode: "menu",
|
|
1944
1950
|
shortcut: e,
|
|
1945
1951
|
onClick: (t) => x(e)
|
|
1946
1952
|
}, null, 8, ["shortcut", "onClick"]))), 128))])]),
|
|
1947
|
-
default:
|
|
1953
|
+
default: H(() => [f(fr, {
|
|
1948
1954
|
ref_key: "moreBtnRef",
|
|
1949
1955
|
ref: h,
|
|
1950
1956
|
class: "shortcut-btns-item shortcut-btns-more",
|
|
1951
1957
|
onClick: b
|
|
1952
1958
|
}, {
|
|
1953
|
-
default:
|
|
1959
|
+
default: H(() => [f(z(Un), { class: "shortcut-btns-more-icon" }), l("span", null, L(z(G)("更多")), 1)]),
|
|
1954
1960
|
_: 1
|
|
1955
1961
|
}, 512)]),
|
|
1956
1962
|
_: 1
|
|
@@ -1999,8 +2005,8 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
1999
2005
|
},
|
|
2000
2006
|
emits: ["close", "submit"],
|
|
2001
2007
|
setup(t, { emit: n }) {
|
|
2002
|
-
let r = t, i = n, a =
|
|
2003
|
-
|
|
2008
|
+
let r = t, i = n, a = B("formRef"), s = j({}), u = I({});
|
|
2009
|
+
oe(() => {
|
|
2004
2010
|
var e;
|
|
2005
2011
|
if (r.formModel) for (let e in r.formModel) s[e] = r.formModel[e];
|
|
2006
2012
|
for (let o of (e = r == null ? void 0 : r.components) == null ? [] : e) if (o.key) {
|
|
@@ -2060,13 +2066,13 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2060
2066
|
i("close");
|
|
2061
2067
|
};
|
|
2062
2068
|
return (n, r) => (k(), c("div", wr, [l("div", Tr, [
|
|
2063
|
-
f(
|
|
2064
|
-
l("span", Er,
|
|
2065
|
-
f(
|
|
2069
|
+
f(z(Nn), { class: "header-icon" }),
|
|
2070
|
+
l("span", Er, L(t.alias || t.name), 1),
|
|
2071
|
+
f(z(Bn), {
|
|
2066
2072
|
class: "header-close",
|
|
2067
2073
|
onClick: y
|
|
2068
2074
|
})
|
|
2069
|
-
]), l("div", Dr, [f(
|
|
2075
|
+
]), l("div", Dr, [f(z(fe), {
|
|
2070
2076
|
ref_key: "formRef",
|
|
2071
2077
|
ref: a,
|
|
2072
2078
|
class: "shortcut-render-form",
|
|
@@ -2074,28 +2080,28 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2074
2080
|
model: s,
|
|
2075
2081
|
rules: u.value
|
|
2076
2082
|
}, {
|
|
2077
|
-
default:
|
|
2083
|
+
default: H(() => [(k(!0), c(e, null, N(t.components, (e, t) => (k(), o(z(fe).FormItem, b({
|
|
2078
2084
|
key: e.id,
|
|
2079
2085
|
ref_for: !0
|
|
2080
2086
|
}, m(e), {
|
|
2081
2087
|
class: "shortcut-render-form-item",
|
|
2082
2088
|
style: { gridColumn: p(e, t) }
|
|
2083
2089
|
}), {
|
|
2084
|
-
label:
|
|
2090
|
+
label: H(() => {
|
|
2085
2091
|
var t, n;
|
|
2086
|
-
return [l("span", Or,
|
|
2092
|
+
return [l("span", Or, L((t = e.name) == null ? (n = e.formItemProps) == null ? void 0 : n.label : t), 1)];
|
|
2087
2093
|
}),
|
|
2088
|
-
default:
|
|
2094
|
+
default: H(() => [(k(), o(F(h(e))))]),
|
|
2089
2095
|
_: 2
|
|
2090
|
-
}, 1040, ["style"]))), 128)), f(
|
|
2091
|
-
default:
|
|
2096
|
+
}, 1040, ["style"]))), 128)), f(z(fe).FormItem, { class: "shortcut-footer-item" }, {
|
|
2097
|
+
default: H(() => [l("div", kr, [f(z(W), {
|
|
2092
2098
|
theme: "primary",
|
|
2093
2099
|
onClick: _
|
|
2094
2100
|
}, {
|
|
2095
|
-
default:
|
|
2101
|
+
default: H(() => [d(L(z(G)("提交")), 1)]),
|
|
2096
2102
|
_: 1
|
|
2097
|
-
}), f(
|
|
2098
|
-
default:
|
|
2103
|
+
}), f(z(W), { onClick: v }, {
|
|
2104
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
2099
2105
|
_: 1
|
|
2100
2106
|
})])]),
|
|
2101
2107
|
_: 1
|
|
@@ -2104,9 +2110,9 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2104
2110
|
}, 8, ["model", "rules"])])]));
|
|
2105
2111
|
}
|
|
2106
2112
|
}), jr = (e, t) => {
|
|
2107
|
-
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i =
|
|
2108
|
-
return
|
|
2109
|
-
let t =
|
|
2113
|
+
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i = ee([]), o = ee("");
|
|
2114
|
+
return V(() => e, (e) => {
|
|
2115
|
+
let t = R(e);
|
|
2110
2116
|
if (t === o.value) return;
|
|
2111
2117
|
if (!(o.value && t.indexOf(o.value) === 0)) {
|
|
2112
2118
|
i.value = [t], o.value = t;
|
|
@@ -2149,10 +2155,10 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2149
2155
|
return e.apply(this, arguments);
|
|
2150
2156
|
};
|
|
2151
2157
|
}() }), Fr = () => {
|
|
2152
|
-
let e =
|
|
2158
|
+
let e = I({
|
|
2153
2159
|
column: 0,
|
|
2154
2160
|
line: 0
|
|
2155
|
-
}), t =
|
|
2161
|
+
}), t = I([]);
|
|
2156
2162
|
return {
|
|
2157
2163
|
commandSelection: e,
|
|
2158
2164
|
docSnapshot: t,
|
|
@@ -2168,7 +2174,7 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2168
2174
|
}
|
|
2169
2175
|
};
|
|
2170
2176
|
}, Ir = Symbol("CONTAINER_SCROLL_TOKEN"), Lr = 100, Rr = (e, t) => {
|
|
2171
|
-
let n =
|
|
2177
|
+
let n = I(!1), r = null, i = I(0), o = I(!0), s = p((e, t) => {
|
|
2172
2178
|
let n, r = !1;
|
|
2173
2179
|
return {
|
|
2174
2180
|
get() {
|
|
@@ -2195,18 +2201,18 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2195
2201
|
})));
|
|
2196
2202
|
let c = () => {
|
|
2197
2203
|
var e;
|
|
2198
|
-
o.value = !0, (e =
|
|
2204
|
+
o.value = !0, (e = R(t)) == null || e.scrollIntoView({
|
|
2199
2205
|
behavior: "smooth",
|
|
2200
2206
|
block: "end"
|
|
2201
2207
|
});
|
|
2202
2208
|
}, l = () => {
|
|
2203
2209
|
var t;
|
|
2204
|
-
(t =
|
|
2210
|
+
(t = R(e)) == null || t.scrollTo({
|
|
2205
2211
|
top: 0,
|
|
2206
2212
|
behavior: "smooth"
|
|
2207
2213
|
});
|
|
2208
2214
|
}, u = () => {
|
|
2209
|
-
let t =
|
|
2215
|
+
let t = R(e);
|
|
2210
2216
|
if (!t) return;
|
|
2211
2217
|
let { scrollHeight: r, scrollTop: a, clientHeight: o } = t, c = r - a - o;
|
|
2212
2218
|
i.value = Math.max(0, c), s.value = !n.value && i.value > 100;
|
|
@@ -2214,8 +2220,8 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2214
2220
|
e.deltaY < 0 && (o.value = !1);
|
|
2215
2221
|
};
|
|
2216
2222
|
return E(() => {
|
|
2217
|
-
|
|
2218
|
-
let a =
|
|
2223
|
+
oe(() => {
|
|
2224
|
+
let a = R(e), c = R(t);
|
|
2219
2225
|
!a || !c || (r == null || r.disconnect(), a.removeEventListener("scroll", u), a.removeEventListener("wheel", d), u(), r = new IntersectionObserver((e) => {
|
|
2220
2226
|
e.forEach((e) => {
|
|
2221
2227
|
e.isIntersecting ? (n.value = !0, i.value = 0, o.value = !0, s.value = !1) : (n.value = !1, u());
|
|
@@ -2224,7 +2230,7 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2224
2230
|
});
|
|
2225
2231
|
}), D(() => {
|
|
2226
2232
|
r == null || r.disconnect();
|
|
2227
|
-
let t =
|
|
2233
|
+
let t = R(e);
|
|
2228
2234
|
t && (t.removeEventListener("scroll", u), t.removeEventListener("wheel", d));
|
|
2229
2235
|
}), {
|
|
2230
2236
|
autoScrollEnabled: o,
|
|
@@ -2241,7 +2247,7 @@ function Ur(e) {
|
|
|
2241
2247
|
label: G("执行情况"),
|
|
2242
2248
|
name: Vr,
|
|
2243
2249
|
order: 0
|
|
2244
|
-
}, n =
|
|
2250
|
+
}, n = I([t]), r = ee(t), i = I(!0), o = a(() => {
|
|
2245
2251
|
var t, n;
|
|
2246
2252
|
return (t = (n = e.executionTabVisible) == null ? void 0 : n.call(e)) == null ? !0 : t;
|
|
2247
2253
|
}), s = (e) => e.name === "execution" ? o.value : e.visible !== !1, c = a(() => n.value.filter(s).slice().sort((e, t) => {
|
|
@@ -2265,7 +2271,7 @@ function Ur(e) {
|
|
|
2265
2271
|
}, f = () => {
|
|
2266
2272
|
n.value = [t], r.value = t, i.value = !0;
|
|
2267
2273
|
};
|
|
2268
|
-
return
|
|
2274
|
+
return V(c, (e) => {
|
|
2269
2275
|
s(r.value) || e.length && d(e[0]);
|
|
2270
2276
|
}), A(Br, {
|
|
2271
2277
|
tabs: n,
|
|
@@ -2301,14 +2307,14 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2301
2307
|
change: "webkitfullscreenchange"
|
|
2302
2308
|
} : null;
|
|
2303
2309
|
})(), Kr = (e) => {
|
|
2304
|
-
let t = !!Gr, n =
|
|
2310
|
+
let t = !!Gr, n = I(!1), r = () => {
|
|
2305
2311
|
var t;
|
|
2306
|
-
return (t =
|
|
2312
|
+
return (t = z(e)) == null ? typeof document > "u" ? null : document.documentElement : t;
|
|
2307
2313
|
}, i = () => {
|
|
2308
2314
|
var e;
|
|
2309
2315
|
return Gr ? (e = document[Gr.element]) == null ? null : e : null;
|
|
2310
2316
|
}, a = () => {
|
|
2311
|
-
let t = i(), r =
|
|
2317
|
+
let t = i(), r = z(e);
|
|
2312
2318
|
n.value = r ? t === r : !!t;
|
|
2313
2319
|
}, o = function() {
|
|
2314
2320
|
var e = Z(function* () {
|
|
@@ -2337,7 +2343,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2337
2343
|
document.removeEventListener(Gr.change, a);
|
|
2338
2344
|
})), {
|
|
2339
2345
|
isSupported: t,
|
|
2340
|
-
isFullScreen:
|
|
2346
|
+
isFullScreen: M(n),
|
|
2341
2347
|
enter: o,
|
|
2342
2348
|
exit: s,
|
|
2343
2349
|
toggle: () => n.value ? s() : o()
|
|
@@ -2346,7 +2352,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2346
2352
|
size: e.size,
|
|
2347
2353
|
supportUpload: e.supportUpload
|
|
2348
2354
|
}), Yr = () => _(qr, void 0), Xr = (e) => {
|
|
2349
|
-
let t =
|
|
2355
|
+
let t = I(0);
|
|
2350
2356
|
E(() => {
|
|
2351
2357
|
window.addEventListener("keydown", i, !0);
|
|
2352
2358
|
}), D(() => {
|
|
@@ -2428,8 +2434,8 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2428
2434
|
return e.reason === gt.AIDevToolApproval && ti.has((t = e.metadata) == null || (t = t.ticket) == null ? void 0 : t.status);
|
|
2429
2435
|
}).length : e;
|
|
2430
2436
|
}, 0), ii = (e) => {
|
|
2431
|
-
let t =
|
|
2432
|
-
|
|
2437
|
+
let t = ee([]), n = I(!1);
|
|
2438
|
+
oe(() => {
|
|
2433
2439
|
var n;
|
|
2434
2440
|
let r = [], i = [];
|
|
2435
2441
|
for (let t of e.messages.value) {
|
|
@@ -2485,7 +2491,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2485
2491
|
})) == null ? !1 : s
|
|
2486
2492
|
});
|
|
2487
2493
|
}
|
|
2488
|
-
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) === q.User &&
|
|
2494
|
+
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) === q.User && R(e.renderMode) !== Pt.Share && i.push({
|
|
2489
2495
|
messages: [{
|
|
2490
2496
|
role: q.Loading,
|
|
2491
2497
|
content: "",
|
|
@@ -2531,7 +2537,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2531
2537
|
var e;
|
|
2532
2538
|
return (e = t.value) == null ? void 0 : e.filter((e) => e.type === q.User).every((e) => e.checked);
|
|
2533
2539
|
});
|
|
2534
|
-
return
|
|
2540
|
+
return V(e.selectedUserMessages, (e) => {
|
|
2535
2541
|
if (t.value.length) for (let [r, i] of t.value.entries()) {
|
|
2536
2542
|
var n;
|
|
2537
2543
|
if (i.type === q.Assistant) continue;
|
|
@@ -2577,7 +2583,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2577
2583
|
let t = e.parentElement;
|
|
2578
2584
|
return t ? ai(t) : document.body;
|
|
2579
2585
|
}, oi = (e) => {
|
|
2580
|
-
let t =
|
|
2586
|
+
let t = I(!1), n = null, r = I(null), i = () => {
|
|
2581
2587
|
t.value = !0, n && clearTimeout(n), n = setTimeout(() => {
|
|
2582
2588
|
t.value = !1;
|
|
2583
2589
|
}, 300);
|
|
@@ -2586,7 +2592,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2586
2592
|
};
|
|
2587
2593
|
return E(() => {
|
|
2588
2594
|
var t, n, o, s;
|
|
2589
|
-
r.value = ai(
|
|
2595
|
+
r.value = ai(R(e)), (t = r.value) == null || t.removeEventListener("scroll", i), (n = r.value) == null || n.removeEventListener("scrollend", a), (o = r.value) == null || o.addEventListener("scroll", i), (s = r.value) == null || s.addEventListener("scrollend", a);
|
|
2590
2596
|
}), D(() => {
|
|
2591
2597
|
var e, t;
|
|
2592
2598
|
(e = r.value) == null || e.removeEventListener("scroll", i), (t = r.value) == null || t.removeEventListener("scrollend", a);
|
|
@@ -2595,9 +2601,9 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2595
2601
|
scrollParent: r
|
|
2596
2602
|
};
|
|
2597
2603
|
}, si = Symbol("KEYWORD_TOKEN"), ci = Symbol("RENDER_MODE_TOKEN"), li = Symbol("COMMON_TIPPY_OPTIONS_TOKEN"), ui = () => {
|
|
2598
|
-
let e =
|
|
2604
|
+
let e = I("");
|
|
2599
2605
|
return A(si, a(() => e.value)), { keyword: e };
|
|
2600
|
-
}, di = ({ renderMode: e }) => (A(ci, a(() =>
|
|
2606
|
+
}, di = ({ renderMode: e }) => (A(ci, a(() => R(e))), { renderMode: e }), fi = () => _(ci, a(() => Pt.Chat)), pi = (e) => {
|
|
2601
2607
|
A(li, e.tippyOptions);
|
|
2602
2608
|
}, mi = () => _(si, void 0), hi = () => _(li, void 0), gi = (e) => {
|
|
2603
2609
|
let t = mi();
|
|
@@ -2671,14 +2677,14 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2671
2677
|
} })), s = (e) => {
|
|
2672
2678
|
n.disabled || r("click", n, e);
|
|
2673
2679
|
};
|
|
2674
|
-
return (t, n) =>
|
|
2680
|
+
return (t, n) => U((k(), c("div", {
|
|
2675
2681
|
class: S(["ai-tool-btn", {
|
|
2676
2682
|
"is-active": e.active,
|
|
2677
2683
|
"is-disabled": e.disabled
|
|
2678
2684
|
}]),
|
|
2679
2685
|
style: w({ "--ai-tool-btn-active-color": e.id === "like" || e.id === "activeLike" ? "#3a84ff" : "#E71818" }),
|
|
2680
2686
|
onClick: s
|
|
2681
|
-
}, [
|
|
2687
|
+
}, [P(t.$slots, "default", {}, () => [e.id && e.id in z(er) ? (k(), o(F(z(er)[e.id]), { key: 0 })) : (k(), c("div", yi, L(e.name), 1))])], 6)), [[z(Se), i.value]]);
|
|
2682
2688
|
}
|
|
2683
2689
|
}), xi = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Si = /[\0-\x1F\x7F-\x9F]/, Ci = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, wi = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Ti = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Ei = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Di = /* @__PURE__ */ Ie({
|
|
2684
2690
|
Any: () => xi,
|
|
@@ -5502,7 +5508,7 @@ var kc = (e) => {
|
|
|
5502
5508
|
props: { token: {} },
|
|
5503
5509
|
emits: ["mounted"],
|
|
5504
5510
|
setup(t, { emit: n }) {
|
|
5505
|
-
let r = t, i = n, o =
|
|
5511
|
+
let r = t, i = n, o = B("codeRef"), u = I(""), { copy: p } = Pr(), m = I([]), g = I(""), _ = I(""), v = /* @__PURE__ */ new Map(), y = (e) => {
|
|
5506
5512
|
for (let n of e) if (n.type === "fence" || n.type === "code_block") {
|
|
5507
5513
|
var t;
|
|
5508
5514
|
return {
|
|
@@ -5563,7 +5569,7 @@ var kc = (e) => {
|
|
|
5563
5569
|
let { language: e } = y(r.token), t = ["hljs"];
|
|
5564
5570
|
return e && t.push(`language-${e}`), t.join(" ");
|
|
5565
5571
|
});
|
|
5566
|
-
|
|
5572
|
+
V(() => r.token, (e) => {
|
|
5567
5573
|
let { content: t, language: n } = y(e);
|
|
5568
5574
|
u.value = n, E(t, n), x(() => {
|
|
5569
5575
|
i("mounted", { get el() {
|
|
@@ -5580,8 +5586,8 @@ var kc = (e) => {
|
|
|
5580
5586
|
t && p(t);
|
|
5581
5587
|
};
|
|
5582
5588
|
return (n, r) => (k(), c("div", Kc, [l("div", qc, [
|
|
5583
|
-
l("span", Jc,
|
|
5584
|
-
|
|
5589
|
+
l("span", Jc, L(u.value), 1),
|
|
5590
|
+
P(n.$slots, "header", C(h({
|
|
5585
5591
|
language: u.value,
|
|
5586
5592
|
token: t.token
|
|
5587
5593
|
}))),
|
|
@@ -5595,10 +5601,10 @@ var kc = (e) => {
|
|
|
5595
5601
|
ref_key: "codeRef",
|
|
5596
5602
|
ref: o,
|
|
5597
5603
|
class: S(D.value)
|
|
5598
|
-
}, [(k(!0), c(e, null,
|
|
5604
|
+
}, [(k(!0), c(e, null, N(m.value, (t, n) => (k(), c(e, { key: `completed-${n}` }, [l("span", {
|
|
5599
5605
|
class: "code-line",
|
|
5600
5606
|
innerHTML: t.html
|
|
5601
|
-
}, null, 8, Xc), r[0] || (r[0] = d(
|
|
5607
|
+
}, null, 8, Xc), r[0] || (r[0] = d(L("\n"), -1))], 64))), 128)), g.value ? (k(), c("span", {
|
|
5602
5608
|
key: 0,
|
|
5603
5609
|
class: "code-line current-line",
|
|
5604
5610
|
innerHTML: _.value
|
|
@@ -5617,7 +5623,7 @@ var kc = (e) => {
|
|
|
5617
5623
|
src: {}
|
|
5618
5624
|
},
|
|
5619
5625
|
setup(e) {
|
|
5620
|
-
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i =
|
|
5626
|
+
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i = I(!r.value), o = I(!1), s = I(r.value), u = r.value ? n.src : "", d = a(() => r.value ? !1 : !!(!h.value || i.value || !s.value && o.value)), p = a(() => s.value && o.value && !i.value), m = Ne(() => {
|
|
5621
5627
|
s.value = !0;
|
|
5622
5628
|
}, 500), h = a(() => {
|
|
5623
5629
|
var e;
|
|
@@ -5651,19 +5657,19 @@ var kc = (e) => {
|
|
|
5651
5657
|
leading: !0,
|
|
5652
5658
|
trailing: !0
|
|
5653
5659
|
});
|
|
5654
|
-
return
|
|
5660
|
+
return V(() => n.src, (e) => {
|
|
5655
5661
|
if (t.has(e)) {
|
|
5656
5662
|
u = e, i.value = !1, o.value = !1, s.value = !0;
|
|
5657
5663
|
return;
|
|
5658
5664
|
}
|
|
5659
5665
|
s.value = !1, m(), h.value ? g(e) : (i.value = !0, o.value = !1);
|
|
5660
|
-
}, { immediate: !0 }),
|
|
5666
|
+
}, { immediate: !0 }), V(h, (e) => {
|
|
5661
5667
|
e && n.src && g(n.src);
|
|
5662
|
-
}), (t, n) => (k(), c("span", el, [d.value ? (k(), c("span", tl, [f(
|
|
5668
|
+
}), (t, n) => (k(), c("span", el, [d.value ? (k(), c("span", tl, [f(z(me), {
|
|
5663
5669
|
mode: "spin",
|
|
5664
5670
|
size: "mini",
|
|
5665
5671
|
theme: "primary"
|
|
5666
|
-
}), l("span", nl,
|
|
5672
|
+
}), l("span", nl, L(z(G)("图片加载中...")), 1)])) : p.value ? (k(), c("span", rl, [n[0] || (n[0] = l("span", { class: "md-image-error-icon" }, "⚠️", -1)), l("span", il, L(e.alt || z(G)("图片加载失败")), 1)])) : (k(), c("img", {
|
|
5667
5673
|
key: 2,
|
|
5668
5674
|
alt: e.alt,
|
|
5669
5675
|
class: "md-image",
|
|
@@ -5675,7 +5681,7 @@ var kc = (e) => {
|
|
|
5675
5681
|
__name: "latex-content",
|
|
5676
5682
|
props: { token: {} },
|
|
5677
5683
|
setup(e) {
|
|
5678
|
-
let t = e, n =
|
|
5684
|
+
let t = e, n = I(""), r = [
|
|
5679
5685
|
"frac",
|
|
5680
5686
|
"dfrac",
|
|
5681
5687
|
"tfrac",
|
|
@@ -5881,7 +5887,7 @@ var kc = (e) => {
|
|
|
5881
5887
|
}
|
|
5882
5888
|
return t;
|
|
5883
5889
|
}, g = a(() => t.token.filter((e) => e.type === "math_block").length === 1 && t.token.length <= 1), _ = a(() => g.value ? "div" : "span"), v = a(() => g.value ? "block-latex-content" : "inline-latex-content");
|
|
5884
|
-
return
|
|
5890
|
+
return V(() => t.token, Te(() => {
|
|
5885
5891
|
let e = h(t.token);
|
|
5886
5892
|
e && n.value !== e && (n.value = e);
|
|
5887
5893
|
}, 100, {
|
|
@@ -5890,7 +5896,7 @@ var kc = (e) => {
|
|
|
5890
5896
|
}), {
|
|
5891
5897
|
deep: !0,
|
|
5892
5898
|
immediate: !0
|
|
5893
|
-
}), (e, t) => (k(), o(
|
|
5899
|
+
}), (e, t) => (k(), o(F(_.value), {
|
|
5894
5900
|
class: S(v.value),
|
|
5895
5901
|
innerHTML: n.value
|
|
5896
5902
|
}, null, 8, ["class", "innerHTML"]));
|
|
@@ -5900,7 +5906,7 @@ var kc = (e) => {
|
|
|
5900
5906
|
props: { token: {} },
|
|
5901
5907
|
emits: ["mounted"],
|
|
5902
5908
|
setup(e, { emit: t }) {
|
|
5903
|
-
let n =
|
|
5909
|
+
let n = I(""), r = B("mermaidContentRef"), i = e, a = t, o = null, s = "", l = function() {
|
|
5904
5910
|
var e = Z(function* () {
|
|
5905
5911
|
if (o) return o;
|
|
5906
5912
|
if (!o) try {
|
|
@@ -5920,7 +5926,7 @@ var kc = (e) => {
|
|
|
5920
5926
|
}
|
|
5921
5927
|
return "";
|
|
5922
5928
|
};
|
|
5923
|
-
return
|
|
5929
|
+
return V(() => i.token, Te(function() {
|
|
5924
5930
|
var e = Z(function* (e) {
|
|
5925
5931
|
let t = u(e);
|
|
5926
5932
|
if (t === s) return;
|
|
@@ -5960,7 +5966,7 @@ var kc = (e) => {
|
|
|
5960
5966
|
__name: "common-error-content",
|
|
5961
5967
|
props: { content: {} },
|
|
5962
5968
|
setup(e) {
|
|
5963
|
-
return (t, n) => (k(), c("div", dl, [f(
|
|
5969
|
+
return (t, n) => (k(), c("div", dl, [f(z(Fn)), l("div", fl, L(e.content), 1)]));
|
|
5964
5970
|
}
|
|
5965
5971
|
}), ml = /* @__PURE__ */ new Map(), hl = () => {
|
|
5966
5972
|
ml = /* @__PURE__ */ new Map();
|
|
@@ -6154,7 +6160,7 @@ var kc = (e) => {
|
|
|
6154
6160
|
"encoding",
|
|
6155
6161
|
"style"
|
|
6156
6162
|
]
|
|
6157
|
-
}, r = t, i = zr(), a =
|
|
6163
|
+
}, r = t, i = zr(), a = I([]), s = new Ec().use(Ic).use(Ee).use(De).use(Oe).use(ke).use(Ae).use(je).use(Uc).use(Vc, { katexOptions: { strict: !1 } }).use(Gc, /^hljs-(left|center|right)$/), l = {
|
|
6158
6164
|
html: !0,
|
|
6159
6165
|
mditOptions: s.options,
|
|
6160
6166
|
renderer: s.renderer,
|
|
@@ -6196,7 +6202,7 @@ var kc = (e) => {
|
|
|
6196
6202
|
}
|
|
6197
6203
|
return t;
|
|
6198
6204
|
};
|
|
6199
|
-
|
|
6205
|
+
V(() => r.content, Te((e) => {
|
|
6200
6206
|
if (!e) {
|
|
6201
6207
|
a.value = [];
|
|
6202
6208
|
return;
|
|
@@ -6223,32 +6229,32 @@ var kc = (e) => {
|
|
|
6223
6229
|
leading: !0,
|
|
6224
6230
|
trailing: !0
|
|
6225
6231
|
});
|
|
6226
|
-
return (n, r) => (k(), c("div", Al, [t.status ===
|
|
6232
|
+
return (n, r) => (k(), c("div", Al, [t.status === z(J).Error ? (k(), o(pl, {
|
|
6227
6233
|
key: 0,
|
|
6228
6234
|
content: t.content
|
|
6229
|
-
}, null, 8, ["content"])) : (k(), c("div", jl, [(k(!0), c(e, null,
|
|
6235
|
+
}, null, 8, ["content"])) : (k(), c("div", jl, [(k(!0), c(e, null, N(a.value, (t, r) => (k(), c(e, { key: r }, [u(t) ? (k(), o(z(ul), {
|
|
6230
6236
|
key: r,
|
|
6231
6237
|
token: t,
|
|
6232
|
-
onMounted:
|
|
6238
|
+
onMounted: z(m)
|
|
6233
6239
|
}, null, 8, ["token", "onMounted"])) : f(t) ? (k(), o(cl, {
|
|
6234
6240
|
key: r,
|
|
6235
6241
|
token: t,
|
|
6236
|
-
onMounted:
|
|
6237
|
-
}, null, 8, ["token", "onMounted"])) : d(t) ? (k(), o(
|
|
6242
|
+
onMounted: z(m)
|
|
6243
|
+
}, null, 8, ["token", "onMounted"])) : d(t) ? (k(), o(z($c), {
|
|
6238
6244
|
key: r,
|
|
6239
6245
|
token: t,
|
|
6240
|
-
onMounted:
|
|
6246
|
+
onMounted: z(m)
|
|
6241
6247
|
}, {
|
|
6242
|
-
header:
|
|
6248
|
+
header: H(({ language: e, token: t }) => [P(n.$slots, "codeHeader", b({ ref_for: !0 }, {
|
|
6243
6249
|
language: e,
|
|
6244
6250
|
token: t
|
|
6245
6251
|
}))]),
|
|
6246
6252
|
_: 3
|
|
6247
|
-
}, 8, ["token", "onMounted"])) : (k(), o(
|
|
6253
|
+
}, 8, ["token", "onMounted"])) : (k(), o(z(kl), {
|
|
6248
6254
|
key: r,
|
|
6249
6255
|
options: l,
|
|
6250
6256
|
tokens: t,
|
|
6251
|
-
onVnodeMounted:
|
|
6257
|
+
onVnodeMounted: z(m)
|
|
6252
6258
|
}, null, 8, ["tokens", "onVnodeMounted"]))], 64))), 128))]))]));
|
|
6253
6259
|
}
|
|
6254
6260
|
}), Nl = ["onClick"], Pl = /* @__PURE__ */ m({
|
|
@@ -6262,27 +6268,27 @@ var kc = (e) => {
|
|
|
6262
6268
|
url: e.url,
|
|
6263
6269
|
originFileUrl: e.originFile
|
|
6264
6270
|
})));
|
|
6265
|
-
return (t, n) => (k(!0), c(e, null,
|
|
6271
|
+
return (t, n) => (k(!0), c(e, null, N(i.value, (e) => (k(), c("div", {
|
|
6266
6272
|
key: e.title,
|
|
6267
6273
|
class: "ai-reference-item"
|
|
6268
6274
|
}, [
|
|
6269
|
-
f(
|
|
6275
|
+
f(z(bn), { color: "#D66F6B" }),
|
|
6270
6276
|
l("span", {
|
|
6271
6277
|
class: "ai-reference-item-title",
|
|
6272
6278
|
onClick: (t) => e.url && r(e.url, t)
|
|
6273
|
-
},
|
|
6274
|
-
e.url && e.originFileUrl ?
|
|
6279
|
+
}, L(e.title), 9, Nl),
|
|
6280
|
+
e.url && e.originFileUrl ? U((k(), o(z(qt), {
|
|
6275
6281
|
key: 0,
|
|
6276
6282
|
onClick: (t) => e.url && r(e.url, t)
|
|
6277
|
-
}, null, 8, ["onClick"])), [[
|
|
6278
|
-
content:
|
|
6283
|
+
}, null, 8, ["onClick"])), [[z(Se), {
|
|
6284
|
+
content: z(G)("预览内容"),
|
|
6279
6285
|
theme: "ai-chat-box"
|
|
6280
6286
|
}]]) : s("", !0),
|
|
6281
|
-
e.url && e.originFileUrl ?
|
|
6287
|
+
e.url && e.originFileUrl ? U((k(), o(z(Jt), {
|
|
6282
6288
|
key: 1,
|
|
6283
6289
|
onClick: (t) => e.originFileUrl && r(e.originFileUrl, t)
|
|
6284
|
-
}, null, 8, ["onClick"])), [[
|
|
6285
|
-
content:
|
|
6290
|
+
}, null, 8, ["onClick"])), [[z(Se), {
|
|
6291
|
+
content: z(G)("跳转详情"),
|
|
6286
6292
|
theme: "ai-chat-box"
|
|
6287
6293
|
}]]) : s("", !0)
|
|
6288
6294
|
]))), 128));
|
|
@@ -6295,7 +6301,7 @@ var kc = (e) => {
|
|
|
6295
6301
|
type: {}
|
|
6296
6302
|
},
|
|
6297
6303
|
setup(e) {
|
|
6298
|
-
let t =
|
|
6304
|
+
let t = ie(), n = e, r = a(() => {
|
|
6299
6305
|
if (typeof n.content == "string" || n.type === _t.Text) return g(Ml, {
|
|
6300
6306
|
content: n.content,
|
|
6301
6307
|
status: n.status
|
|
@@ -6305,7 +6311,7 @@ var kc = (e) => {
|
|
|
6305
6311
|
} });
|
|
6306
6312
|
if (typeof n.content == "object" && Array.isArray(n.content)) return g(Pl, { content: n.content });
|
|
6307
6313
|
});
|
|
6308
|
-
return (e, t) =>
|
|
6314
|
+
return (e, t) => P(e.$slots, "default", C(h({ content: n.content })), () => [(k(), o(F(r.value)))]);
|
|
6309
6315
|
}
|
|
6310
6316
|
}), Il = ([e], [t]) => e === t ? 0 : e < t ? 1 : -1, Ll = (e, t) => {
|
|
6311
6317
|
let n = Il(e, t);
|
|
@@ -6672,7 +6678,7 @@ var kc = (e) => {
|
|
|
6672
6678
|
}
|
|
6673
6679
|
}, j = () => {
|
|
6674
6680
|
S || k();
|
|
6675
|
-
},
|
|
6681
|
+
}, M = (e) => {
|
|
6676
6682
|
e.preventDefault();
|
|
6677
6683
|
let t = e.inputType;
|
|
6678
6684
|
if (t.startsWith("format") || t === "historyUndo" || t === "historyRedo") return;
|
|
@@ -6687,31 +6693,31 @@ var kc = (e) => {
|
|
|
6687
6693
|
x || (x = new Gl().select(...l)), Ll(...i) !== 0 && x.delete(...i), a && x.insert(i[0], Bl(a));
|
|
6688
6694
|
}
|
|
6689
6695
|
S || k();
|
|
6690
|
-
},
|
|
6696
|
+
}, ee = () => {
|
|
6691
6697
|
S || O(), S = !0;
|
|
6692
|
-
}, M = () => {
|
|
6693
|
-
k();
|
|
6694
6698
|
}, N = () => {
|
|
6695
|
-
|
|
6699
|
+
k();
|
|
6696
6700
|
}, P = () => {
|
|
6697
|
-
C = !
|
|
6701
|
+
C = !0, O();
|
|
6698
6702
|
}, F = () => {
|
|
6703
|
+
C = !1;
|
|
6704
|
+
}, I = () => {
|
|
6699
6705
|
if (b) {
|
|
6700
6706
|
b = !1;
|
|
6701
6707
|
return;
|
|
6702
6708
|
}
|
|
6703
6709
|
C && !S && !w && O();
|
|
6704
|
-
}, I = (e) => {
|
|
6705
|
-
O(), Ll(...l) !== 0 && r(e, $l(f(), ...Rl(l)), n);
|
|
6706
|
-
}, ne = (e) => {
|
|
6707
|
-
e.preventDefault(), I(e.clipboardData);
|
|
6708
6710
|
}, L = (e) => {
|
|
6709
|
-
|
|
6711
|
+
O(), Ll(...l) !== 0 && r(e, $l(f(), ...Rl(l)), n);
|
|
6712
|
+
}, te = (e) => {
|
|
6713
|
+
e.preventDefault(), L(e.clipboardData);
|
|
6710
6714
|
}, R = (e) => {
|
|
6715
|
+
e.preventDefault(), u || (L(e.clipboardData), h(new Gl().delete(...Rl(l))));
|
|
6716
|
+
}, z = (e) => {
|
|
6711
6717
|
e.preventDefault();
|
|
6712
6718
|
let [t, n] = Rl(l);
|
|
6713
6719
|
h(new Gl().delete(t, n).insert(t, i(e.clipboardData, E)));
|
|
6714
|
-
},
|
|
6720
|
+
}, ne = (e) => {
|
|
6715
6721
|
e.preventDefault();
|
|
6716
6722
|
let t = e.dataTransfer, r = Zu(T, n, e, E);
|
|
6717
6723
|
if (t && r) {
|
|
@@ -6720,13 +6726,13 @@ var kc = (e) => {
|
|
|
6720
6726
|
let a = e.transform(r);
|
|
6721
6727
|
e.select(a, a).insert(a, i(t, E)).select(a), h(e), n.focus({ preventScroll: !0 });
|
|
6722
6728
|
}
|
|
6723
|
-
},
|
|
6724
|
-
w = !0,
|
|
6725
|
-
},
|
|
6729
|
+
}, re = (e) => {
|
|
6730
|
+
w = !0, L(e.dataTransfer);
|
|
6731
|
+
}, ie = () => {
|
|
6726
6732
|
w = !1;
|
|
6727
6733
|
};
|
|
6728
|
-
return T.addEventListener("selectionchange",
|
|
6729
|
-
y || (y = !0, d = rd, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange",
|
|
6734
|
+
return T.addEventListener("selectionchange", I), n.addEventListener("keydown", A), n.addEventListener("input", j), n.addEventListener("beforeinput", M), n.addEventListener("compositionstart", ee), n.addEventListener("compositionend", N), n.addEventListener("focus", P), n.addEventListener("blur", F), n.addEventListener("copy", te), n.addEventListener("cut", R), n.addEventListener("paste", z), n.addEventListener("drop", ne), n.addEventListener("dragstart", re), n.addEventListener("dragend", ie), () => {
|
|
6735
|
+
y || (y = !0, d = rd, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", I), n.removeEventListener("keydown", A), n.removeEventListener("input", j), n.removeEventListener("beforeinput", M), n.removeEventListener("compositionstart", ee), n.removeEventListener("compositionend", N), n.removeEventListener("focus", P), n.removeEventListener("blur", F), n.removeEventListener("copy", te), n.removeEventListener("cut", R), n.removeEventListener("paste", z), n.removeEventListener("drop", ne), n.removeEventListener("dragstart", re), n.removeEventListener("dragend", ie));
|
|
6730
6736
|
};
|
|
6731
6737
|
},
|
|
6732
6738
|
command: (e, ...t) => {
|
|
@@ -6842,7 +6848,7 @@ var kc = (e) => {
|
|
|
6842
6848
|
},
|
|
6843
6849
|
emits: ["upload"],
|
|
6844
6850
|
setup(e, { emit: t }) {
|
|
6845
|
-
let n = t, r =
|
|
6851
|
+
let n = t, r = B("fileInputRef"), i = () => {
|
|
6846
6852
|
var e;
|
|
6847
6853
|
(e = r.value) == null || e.click();
|
|
6848
6854
|
}, a = (e) => {
|
|
@@ -6865,11 +6871,11 @@ var kc = (e) => {
|
|
|
6865
6871
|
multiple: "",
|
|
6866
6872
|
type: "file",
|
|
6867
6873
|
onChange: a
|
|
6868
|
-
}, null, 40, yd),
|
|
6874
|
+
}, null, 40, yd), U((k(), c("span", {
|
|
6869
6875
|
class: "ai-shortcut-btn file-upload-btn-icon",
|
|
6870
6876
|
onClick: i
|
|
6871
|
-
}, [
|
|
6872
|
-
content:
|
|
6877
|
+
}, [P(t.$slots, "default", {}, () => [f(z(Sn))])])), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
6878
|
+
content: z(G)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
|
|
6873
6879
|
theme: "ai-chat-box",
|
|
6874
6880
|
offset: [0, 16]
|
|
6875
6881
|
})]])]));
|
|
@@ -6882,9 +6888,9 @@ var kc = (e) => {
|
|
|
6882
6888
|
},
|
|
6883
6889
|
setup(e) {
|
|
6884
6890
|
return (t, n) => (k(), c("div", xd, [
|
|
6885
|
-
f(
|
|
6886
|
-
l("span", Sd,
|
|
6887
|
-
e.onClose ? (k(), o(
|
|
6891
|
+
f(z(Gn)),
|
|
6892
|
+
l("span", Sd, L(e.content), 1),
|
|
6893
|
+
e.onClose ? (k(), o(z(Bn), {
|
|
6888
6894
|
key: 0,
|
|
6889
6895
|
onClick: n[0] || (n[0] = (t) => {
|
|
6890
6896
|
var n;
|
|
@@ -6918,48 +6924,48 @@ var kc = (e) => {
|
|
|
6918
6924
|
setup(t, { emit: n }) {
|
|
6919
6925
|
let r = n;
|
|
6920
6926
|
return (n, i) => (k(), c("div", wd, [l("div", Td, [
|
|
6921
|
-
t.isMultiple ? (k(), c("span", Ed,
|
|
6927
|
+
t.isMultiple ? (k(), c("span", Ed, L(t.activeIndex + 1) + " / " + L(t.total), 1)) : s("", !0),
|
|
6922
6928
|
t.isMultiple ? (k(), c("span", Dd)) : s("", !0),
|
|
6923
6929
|
l("div", {
|
|
6924
6930
|
class: "ai-image-preview-toolbar-btn",
|
|
6925
|
-
"data-tooltip":
|
|
6931
|
+
"data-tooltip": z(G)("缩小"),
|
|
6926
6932
|
onClick: i[0] || (i[0] = (e) => r("zoomOut"))
|
|
6927
|
-
}, [f(
|
|
6933
|
+
}, [f(z(ln))], 8, Od),
|
|
6928
6934
|
l("div", {
|
|
6929
6935
|
class: "ai-image-preview-toolbar-btn",
|
|
6930
|
-
"data-tooltip":
|
|
6936
|
+
"data-tooltip": z(G)("放大"),
|
|
6931
6937
|
onClick: i[1] || (i[1] = (e) => r("zoomIn"))
|
|
6932
|
-
}, [f(
|
|
6938
|
+
}, [f(z(cn))], 8, kd),
|
|
6933
6939
|
l("div", {
|
|
6934
6940
|
class: "ai-image-preview-toolbar-btn",
|
|
6935
|
-
"data-tooltip":
|
|
6941
|
+
"data-tooltip": z(G)("旋转"),
|
|
6936
6942
|
onClick: i[2] || (i[2] = (e) => r("rotate"))
|
|
6937
|
-
}, [f(
|
|
6943
|
+
}, [f(z(un))], 8, Ad),
|
|
6938
6944
|
l("div", {
|
|
6939
6945
|
class: "ai-image-preview-toolbar-btn",
|
|
6940
|
-
"data-tooltip":
|
|
6946
|
+
"data-tooltip": z(G)("重置"),
|
|
6941
6947
|
onClick: i[3] || (i[3] = (e) => r("reset"))
|
|
6942
|
-
}, [f(
|
|
6948
|
+
}, [f(z(dn))], 8, jd),
|
|
6943
6949
|
l("div", {
|
|
6944
6950
|
class: "ai-image-preview-toolbar-btn",
|
|
6945
|
-
"data-tooltip":
|
|
6951
|
+
"data-tooltip": z(G)("下载"),
|
|
6946
6952
|
onClick: i[4] || (i[4] = (e) => r("download"))
|
|
6947
|
-
}, [f(
|
|
6948
|
-
n.$slots.extra ? (k(), c(e, { key: 2 }, [i[5] || (i[5] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)),
|
|
6953
|
+
}, [f(z(fn))], 8, Md),
|
|
6954
|
+
n.$slots.extra ? (k(), c(e, { key: 2 }, [i[5] || (i[5] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)), P(n.$slots, "extra")], 64)) : s("", !0),
|
|
6949
6955
|
t.showInfo && t.currentImageInfo ? (k(), c(e, { key: 3 }, [i[7] || (i[7] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)), l("div", Nd, [
|
|
6950
|
-
f(
|
|
6951
|
-
l("span", null,
|
|
6956
|
+
f(z(vn), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6957
|
+
l("span", null, L(t.currentImageInfo.width) + " px " + L(z(G)("宽")), 1),
|
|
6952
6958
|
t.currentImageInfo.resolution ? (k(), c(e, { key: 0 }, [
|
|
6953
6959
|
i[6] || (i[6] = l("span", { class: "ai-image-preview-toolbar-info-dot" }, null, -1)),
|
|
6954
|
-
f(
|
|
6955
|
-
l("span", null,
|
|
6960
|
+
f(z(vn), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6961
|
+
l("span", null, L(t.currentImageInfo.resolution), 1)
|
|
6956
6962
|
], 64)) : s("", !0)
|
|
6957
6963
|
])], 64)) : s("", !0)
|
|
6958
6964
|
])]));
|
|
6959
6965
|
}
|
|
6960
6966
|
})), Fd = .15, Id = .1, Ld = 10;
|
|
6961
6967
|
function Rd() {
|
|
6962
|
-
let e =
|
|
6968
|
+
let e = I(1), t = I(0), n = I(0), r = I(0), i = I(!1), o = I(!1), s = 0, c = 0, l = 0, u = 0, d = a(() => ({
|
|
6963
6969
|
transform: `translate(${n.value}px, ${r.value}px) scale(${e.value}) rotate(${t.value}deg)`,
|
|
6964
6970
|
cursor: i.value ? "grabbing" : "grab",
|
|
6965
6971
|
transition: i.value || o.value ? "none" : "transform 0.3s ease"
|
|
@@ -7015,7 +7021,7 @@ function zd(e) {
|
|
|
7015
7021
|
}, s = () => {
|
|
7016
7022
|
typeof document > "u" || (document.removeEventListener("keydown", a), document.body.style.overflow = "");
|
|
7017
7023
|
};
|
|
7018
|
-
|
|
7024
|
+
V(t, (e) => {
|
|
7019
7025
|
e ? o() : s();
|
|
7020
7026
|
}, { immediate: !0 }), T(() => {
|
|
7021
7027
|
s();
|
|
@@ -7053,7 +7059,7 @@ var Bd = ["src"], Vd = {
|
|
|
7053
7059
|
}),
|
|
7054
7060
|
emits: ["update:visible", "update:current"],
|
|
7055
7061
|
setup(n) {
|
|
7056
|
-
let i = n, d =
|
|
7062
|
+
let i = n, d = re(n, "visible"), p = re(n, "current"), { imageStyle: m, resetTransform: h, zoomIn: g, zoomOut: _, rotateCW: v, handleWheel: y, handleDragStart: b } = Rd(), x = I("loading"), S = [], C = () => {
|
|
7057
7063
|
S.forEach((e) => URL.revokeObjectURL(e)), S.length = 0;
|
|
7058
7064
|
}, E = (e) => {
|
|
7059
7065
|
let t = URL.createObjectURL(e);
|
|
@@ -7073,17 +7079,17 @@ var Bd = ["src"], Vd = {
|
|
|
7073
7079
|
width: e.width,
|
|
7074
7080
|
resolution: e.resolution
|
|
7075
7081
|
};
|
|
7076
|
-
}),
|
|
7082
|
+
}), M = () => {
|
|
7077
7083
|
d.value = !1;
|
|
7078
|
-
},
|
|
7079
|
-
i.maskClosable &&
|
|
7080
|
-
},
|
|
7084
|
+
}, ee = () => {
|
|
7085
|
+
i.maskClosable && M();
|
|
7086
|
+
}, N = (e) => {
|
|
7081
7087
|
p.value = e, h(), x.value = "loading";
|
|
7082
|
-
},
|
|
7083
|
-
|
|
7084
|
-
},
|
|
7085
|
-
|
|
7086
|
-
},
|
|
7088
|
+
}, F = () => {
|
|
7089
|
+
N(p.value > 0 ? p.value - 1 : D.value.length - 1);
|
|
7090
|
+
}, te = () => {
|
|
7091
|
+
N(p.value < D.value.length - 1 ? p.value + 1 : 0);
|
|
7092
|
+
}, R = () => {
|
|
7087
7093
|
let e = O.value, t = e.downloadUrl || e.url;
|
|
7088
7094
|
if (i.onDownload) {
|
|
7089
7095
|
i.onDownload(t);
|
|
@@ -7091,54 +7097,54 @@ var Bd = ["src"], Vd = {
|
|
|
7091
7097
|
}
|
|
7092
7098
|
let n = document.createElement("a");
|
|
7093
7099
|
n.href = t, n.download = e.name || t.split("/").pop() || "image", n.target = "_blank", document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
7094
|
-
},
|
|
7100
|
+
}, ne = () => {
|
|
7095
7101
|
x.value = "loaded";
|
|
7096
|
-
},
|
|
7102
|
+
}, ie = () => {
|
|
7097
7103
|
x.value = "error";
|
|
7098
7104
|
};
|
|
7099
7105
|
return zd({
|
|
7100
7106
|
visible: d,
|
|
7101
|
-
onClose:
|
|
7102
|
-
onPrev: () => A.value &&
|
|
7103
|
-
onNext: () => A.value &&
|
|
7107
|
+
onClose: M,
|
|
7108
|
+
onPrev: () => A.value && F(),
|
|
7109
|
+
onNext: () => A.value && te()
|
|
7104
7110
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-image-preview-fade" }, {
|
|
7105
|
-
default:
|
|
7111
|
+
default: H(() => [d.value ? (k(), c("div", {
|
|
7106
7112
|
key: 0,
|
|
7107
7113
|
class: "ai-image-preview",
|
|
7108
|
-
onWheel: a[1] || (a[1] =
|
|
7114
|
+
onWheel: a[1] || (a[1] = le((...e) => z(y) && z(y)(...e), ["prevent"]))
|
|
7109
7115
|
}, [
|
|
7110
7116
|
l("div", {
|
|
7111
7117
|
class: "ai-image-preview-close",
|
|
7112
|
-
onClick:
|
|
7113
|
-
}, [f(
|
|
7118
|
+
onClick: M
|
|
7119
|
+
}, [f(z(pn), { class: "ai-image-preview-close-icon" })]),
|
|
7114
7120
|
A.value ? (k(), c(e, { key: 0 }, [l("div", {
|
|
7115
7121
|
class: "ai-image-preview-arrow ai-image-preview-arrow-left",
|
|
7116
|
-
onClick:
|
|
7117
|
-
}, [f(
|
|
7122
|
+
onClick: F
|
|
7123
|
+
}, [f(z(mn), { class: "ai-image-preview-arrow-icon" })]), l("div", {
|
|
7118
7124
|
class: "ai-image-preview-arrow ai-image-preview-arrow-right",
|
|
7119
|
-
onClick:
|
|
7120
|
-
}, [f(
|
|
7125
|
+
onClick: te
|
|
7126
|
+
}, [f(z(hn), { class: "ai-image-preview-arrow-icon" })])], 64)) : s("", !0),
|
|
7121
7127
|
l("div", {
|
|
7122
7128
|
class: "ai-image-preview-body",
|
|
7123
|
-
onClick:
|
|
7124
|
-
onMousedown: a[0] || (a[0] = (...e) =>
|
|
7129
|
+
onClick: le(ee, ["self"]),
|
|
7130
|
+
onMousedown: a[0] || (a[0] = (...e) => z(b) && z(b)(...e))
|
|
7125
7131
|
}, [
|
|
7126
7132
|
x.value === "error" ? s("", !0) : (k(), c("img", {
|
|
7127
7133
|
key: 0,
|
|
7128
7134
|
class: "ai-image-preview-img",
|
|
7129
7135
|
draggable: "false",
|
|
7130
7136
|
src: O.value.url,
|
|
7131
|
-
style: w(
|
|
7132
|
-
onError:
|
|
7133
|
-
onLoad:
|
|
7137
|
+
style: w(z(m)),
|
|
7138
|
+
onError: ie,
|
|
7139
|
+
onLoad: ne
|
|
7134
7140
|
}, null, 44, Bd)),
|
|
7135
|
-
x.value === "error" ? (k(), c("div", Vd, [f(
|
|
7141
|
+
x.value === "error" ? (k(), c("div", Vd, [f(z(_n), { class: "ai-image-preview-error-icon" }), l("p", Hd, L(z(G)("抱歉,图片加载失败,可尝试重新加载")), 1)])) : s("", !0),
|
|
7136
7142
|
x.value === "loading" ? (k(), c("div", Ud, [O.value.thumbnailUrl ? (k(), c("img", {
|
|
7137
7143
|
key: 0,
|
|
7138
7144
|
class: "ai-image-preview-img ai-image-preview-img--blur",
|
|
7139
7145
|
draggable: "false",
|
|
7140
7146
|
src: O.value.thumbnailUrl,
|
|
7141
|
-
style: w(
|
|
7147
|
+
style: w(z(m))
|
|
7142
7148
|
}, null, 12, Wd)) : s("", !0)])) : s("", !0)
|
|
7143
7149
|
], 32),
|
|
7144
7150
|
f(Pd, {
|
|
@@ -7147,14 +7153,14 @@ var Bd = ["src"], Vd = {
|
|
|
7147
7153
|
"is-multiple": A.value,
|
|
7148
7154
|
"show-info": n.showInfo,
|
|
7149
7155
|
total: D.value.length,
|
|
7150
|
-
onDownload:
|
|
7151
|
-
onReset:
|
|
7152
|
-
onRotate:
|
|
7153
|
-
onZoomIn:
|
|
7154
|
-
onZoomOut:
|
|
7156
|
+
onDownload: R,
|
|
7157
|
+
onReset: z(h),
|
|
7158
|
+
onRotate: z(v),
|
|
7159
|
+
onZoomIn: z(g),
|
|
7160
|
+
onZoomOut: z(_)
|
|
7155
7161
|
}, u({ _: 2 }, [i.$slots.extra ? {
|
|
7156
7162
|
name: "extra",
|
|
7157
|
-
fn:
|
|
7163
|
+
fn: H(() => [P(i.$slots, "extra")]),
|
|
7158
7164
|
key: "0"
|
|
7159
7165
|
} : void 0]), 1032, [
|
|
7160
7166
|
"active-index",
|
|
@@ -7200,11 +7206,11 @@ var Bd = ["src"], Vd = {
|
|
|
7200
7206
|
u[p(e)] = !0;
|
|
7201
7207
|
}, h = (e) => {
|
|
7202
7208
|
r("deleteFile", e);
|
|
7203
|
-
}, g =
|
|
7209
|
+
}, g = I(!1), _ = I(0), v = a(() => i.files.filter((e) => d(e) && !u[p(e)])), y = a(() => v.value.map((e) => e.url ? e.url : e.file ? e.file : "").filter(Boolean)), b = (e) => {
|
|
7204
7210
|
let t = v.value.indexOf(e);
|
|
7205
7211
|
t < 0 || (_.value = t, g.value = !0);
|
|
7206
7212
|
};
|
|
7207
|
-
return (n, r) => (k(), c("div", Kd, [(k(!0), c(e, null,
|
|
7213
|
+
return (n, r) => (k(), c("div", Kd, [(k(!0), c(e, null, N(t.files, (e) => {
|
|
7208
7214
|
var n, r, i, a, g;
|
|
7209
7215
|
return k(), c("div", {
|
|
7210
7216
|
key: (n = e.file) == null ? void 0 : n.name,
|
|
@@ -7213,14 +7219,14 @@ var Bd = ["src"], Vd = {
|
|
|
7213
7219
|
key: 0,
|
|
7214
7220
|
alt: e.filename || ((r = e.file) == null ? void 0 : r.name),
|
|
7215
7221
|
class: "file-content-image",
|
|
7216
|
-
src: e.url ||
|
|
7222
|
+
src: e.url || z(Re)(e.file),
|
|
7217
7223
|
onClick: (t) => b(e),
|
|
7218
7224
|
onError: (t) => m(e)
|
|
7219
|
-
}, null, 40, qd)) : d(e) && u[p(e)] ? (k(), c("div", Jd, [f(
|
|
7220
|
-
f(
|
|
7221
|
-
l("span", Zd,
|
|
7222
|
-
l("span", Qd,
|
|
7223
|
-
]), l("div", $d,
|
|
7225
|
+
}, null, 40, qd)) : d(e) && u[p(e)] ? (k(), c("div", Jd, [f(z(Qt), { class: "file-error-icon" })])) : (k(), c("div", Yd, [l("div", Xd, [
|
|
7226
|
+
f(z(Kt), { class: "file-icon" }),
|
|
7227
|
+
l("span", Zd, L(e.filename || ((i = e.file) == null ? void 0 : i.name)), 1),
|
|
7228
|
+
l("span", Qd, L(e.file ? z(ze)(e.file) : ((a = e.filename) == null ? void 0 : a.split(".").pop()) || ((g = e.mimeType) == null ? void 0 : g.split("/").pop())), 1)
|
|
7229
|
+
]), l("div", $d, L(z(Be)(e.file)), 1)])), t.readonly ? s("", !0) : (k(), o(z(xn), {
|
|
7224
7230
|
key: 3,
|
|
7225
7231
|
class: "file-delete-icon",
|
|
7226
7232
|
onClick: (t) => h(e)
|
|
@@ -7244,7 +7250,7 @@ var Bd = ["src"], Vd = {
|
|
|
7244
7250
|
prompts: {}
|
|
7245
7251
|
},
|
|
7246
7252
|
setup(t) {
|
|
7247
|
-
let n = t, r =
|
|
7253
|
+
let n = t, r = B("promptListRef"), { activeIndex: i } = Xr({
|
|
7248
7254
|
items: a(() => n.prompts),
|
|
7249
7255
|
onSelect: n.onSelect,
|
|
7250
7256
|
menuRef: r
|
|
@@ -7253,11 +7259,11 @@ var Bd = ["src"], Vd = {
|
|
|
7253
7259
|
ref_key: "promptListRef",
|
|
7254
7260
|
ref: r,
|
|
7255
7261
|
class: "ai-prompt-list"
|
|
7256
|
-
}, [(k(!0), c(e, null,
|
|
7262
|
+
}, [(k(!0), c(e, null, N(t.prompts, (e, n) => (k(), c("div", {
|
|
7257
7263
|
key: e,
|
|
7258
|
-
class: S(["ai-prompt-list-item", { "is-active":
|
|
7264
|
+
class: S(["ai-prompt-list-item", { "is-active": z(i) === n }]),
|
|
7259
7265
|
onClick: (n) => t.onSelect(e)
|
|
7260
|
-
},
|
|
7266
|
+
}, L(e), 11, tf))), 128))], 512));
|
|
7261
7267
|
}
|
|
7262
7268
|
}), rf = ["onClick"], af = ["src", "onError"], of = {
|
|
7263
7269
|
key: 1,
|
|
@@ -7269,22 +7275,22 @@ var Bd = ["src"], Vd = {
|
|
|
7269
7275
|
skills: {}
|
|
7270
7276
|
},
|
|
7271
7277
|
setup(t) {
|
|
7272
|
-
let n = t, r = j(/* @__PURE__ */ new Set()), i =
|
|
7278
|
+
let n = t, r = j(/* @__PURE__ */ new Set()), i = B("skillListRef"), { activeIndex: o } = Xr({
|
|
7273
7279
|
items: a(() => n.skills),
|
|
7274
7280
|
onSelect: n.onSelect,
|
|
7275
7281
|
menuRef: i
|
|
7276
7282
|
});
|
|
7277
|
-
return
|
|
7283
|
+
return oe(() => {
|
|
7278
7284
|
n.skills, o.value = 0;
|
|
7279
7285
|
}), (n, a) => (k(), c("div", {
|
|
7280
7286
|
ref_key: "skillListRef",
|
|
7281
7287
|
ref: i,
|
|
7282
7288
|
class: "ai-skill-list"
|
|
7283
|
-
}, [(k(!0), c(e, null,
|
|
7289
|
+
}, [(k(!0), c(e, null, N(t.skills, (e, n) => {
|
|
7284
7290
|
var i;
|
|
7285
7291
|
return k(), c("div", {
|
|
7286
7292
|
key: e.skill_code,
|
|
7287
|
-
class: S(["ai-skill-list-item", { "is-active":
|
|
7293
|
+
class: S(["ai-skill-list-item", { "is-active": z(o) === n }]),
|
|
7288
7294
|
onClick: (n) => t.onSelect(e)
|
|
7289
7295
|
}, [e.icon && !r.has(e.skill_code) ? (k(), c("img", {
|
|
7290
7296
|
key: 0,
|
|
@@ -7292,7 +7298,7 @@ var Bd = ["src"], Vd = {
|
|
|
7292
7298
|
alt: "",
|
|
7293
7299
|
class: "ai-skill-list-item-icon",
|
|
7294
7300
|
onError: (t) => r.add(e.skill_code)
|
|
7295
|
-
}, null, 40, af)) : (k(), c("div", of,
|
|
7301
|
+
}, null, 40, af)) : (k(), c("div", of, L((i = e.skill_name) == null || (i = i[0]) == null ? void 0 : i.toUpperCase()), 1)), l("div", sf, [l("div", cf, L(e.skill_name), 1)])], 10, rf);
|
|
7296
7302
|
}), 128))], 512));
|
|
7297
7303
|
}
|
|
7298
7304
|
}), uf = { class: "ai-slash-item ai-slash-group-title" }, df = ["onClick"], ff = ["onClick"], pf = ["title"], mf = /* @__PURE__ */ m({
|
|
@@ -7302,18 +7308,18 @@ var Bd = ["src"], Vd = {
|
|
|
7302
7308
|
resourceList: {}
|
|
7303
7309
|
},
|
|
7304
7310
|
setup(t) {
|
|
7305
|
-
let n = t, r =
|
|
7311
|
+
let n = t, r = B("menuRef"), i = ee([
|
|
7306
7312
|
"tool",
|
|
7307
7313
|
"shortcut",
|
|
7308
7314
|
"doc",
|
|
7309
7315
|
"knowledgebase",
|
|
7310
7316
|
"mcp"
|
|
7311
|
-
]), a =
|
|
7317
|
+
]), a = I([]), o = I([]), { activeIndex: u } = Xr({
|
|
7312
7318
|
items: a,
|
|
7313
7319
|
onSelect: n.onSelect,
|
|
7314
7320
|
menuRef: r
|
|
7315
7321
|
});
|
|
7316
|
-
|
|
7322
|
+
oe(() => {
|
|
7317
7323
|
let e = [], t = [];
|
|
7318
7324
|
for (let [a, o] of Object.entries(fd)) {
|
|
7319
7325
|
var r, i;
|
|
@@ -7338,7 +7344,7 @@ var Bd = ["src"], Vd = {
|
|
|
7338
7344
|
ref_key: "menuRef",
|
|
7339
7345
|
ref: r,
|
|
7340
7346
|
class: "ai-slash-menu"
|
|
7341
|
-
}, [(k(!0), c(e, null,
|
|
7347
|
+
}, [(k(!0), c(e, null, N(o.value, (n, r) => (k(), c(e, null, [n.items.length > 0 ? (k(), c("div", {
|
|
7342
7348
|
key: r,
|
|
7343
7349
|
class: "ai-slash-group"
|
|
7344
7350
|
}, [l("div", uf, [
|
|
@@ -7349,17 +7355,17 @@ var Bd = ["src"], Vd = {
|
|
|
7349
7355
|
onClick: (e) => f(n)
|
|
7350
7356
|
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12, df)),
|
|
7351
7357
|
l("span", { class: S(`mark-${n.type}`) }, null, 2),
|
|
7352
|
-
d(" " +
|
|
7353
|
-
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 },
|
|
7358
|
+
d(" " + L(n.name) + " (" + L(n.items.length) + ") ", 1)
|
|
7359
|
+
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 }, N(n.items, (e) => {
|
|
7354
7360
|
var n;
|
|
7355
7361
|
return k(), c("div", {
|
|
7356
7362
|
key: e.id,
|
|
7357
|
-
class: S(["ai-slash-item ai-slash-group-item", { "is-active": ((n = a.value) == null || (n = n[
|
|
7363
|
+
class: S(["ai-slash-item ai-slash-group-item", { "is-active": ((n = a.value) == null || (n = n[z(u)]) == null ? void 0 : n.id) === e.id }]),
|
|
7358
7364
|
onClick: (n) => t.onSelect(e)
|
|
7359
|
-
}, [
|
|
7365
|
+
}, [U((k(), c("span", {
|
|
7360
7366
|
class: "ellipsis-text",
|
|
7361
7367
|
title: e.name
|
|
7362
|
-
}, [d(
|
|
7368
|
+
}, [d(L(e.name), 1)], 8, pf)), [[z(vi), {
|
|
7363
7369
|
text: e.name,
|
|
7364
7370
|
zIndex: 9999999,
|
|
7365
7371
|
placement: "right-start",
|
|
@@ -7391,7 +7397,7 @@ var Bd = ["src"], Vd = {
|
|
|
7391
7397
|
"upload"
|
|
7392
7398
|
],
|
|
7393
7399
|
setup(t, { expose: n, emit: r }) {
|
|
7394
|
-
let i =
|
|
7400
|
+
let i = B("editorRef"), a = B("tippyRef"), u = r, m = t, h = p((e, t) => ({
|
|
7395
7401
|
get() {
|
|
7396
7402
|
return e(), typeof m.modelValue == "string" ? Bl(m.modelValue) : m.modelValue;
|
|
7397
7403
|
},
|
|
@@ -7402,16 +7408,16 @@ var Bd = ["src"], Vd = {
|
|
|
7402
7408
|
return ((t = m.resources) == null ? void 0 : t.find((t) => (t.id === e.data.value || t.name === e.data.value) && t.type === e.data.type)) || null;
|
|
7403
7409
|
})) == null ? void 0 : n.filter((e) => !!e)) || []), t();
|
|
7404
7410
|
}
|
|
7405
|
-
})), g =
|
|
7411
|
+
})), g = I("slash"), _ = I(""), v = I([]), y = I([]), b = I([]), x, C, w = null, T = null, D = () => {
|
|
7406
7412
|
w !== null && (clearTimeout(w), w = null), T !== null && (clearTimeout(T), T = null);
|
|
7407
|
-
}, A = () => document.body, { commandSelection: j, GetCursorPosition:
|
|
7408
|
-
|
|
7409
|
-
x.command(
|
|
7413
|
+
}, A = () => document.body, { commandSelection: j, GetCursorPosition: M, GetDocSnapshot: ee, docSnapshot: P } = Fr();
|
|
7414
|
+
V(() => m.modelValue, () => {
|
|
7415
|
+
x.command(ee), zl(P.value || []) !== zl(h.value || []) && x.command(ou, zl(h.value || []));
|
|
7410
7416
|
}, { deep: !1 });
|
|
7411
|
-
let
|
|
7417
|
+
let F = () => {
|
|
7412
7418
|
w !== null && clearTimeout(w), w = setTimeout(() => {
|
|
7413
7419
|
w = null;
|
|
7414
|
-
let e =
|
|
7420
|
+
let e = ne();
|
|
7415
7421
|
if (_.value = e.query || "", e.isActive) {
|
|
7416
7422
|
var t, n;
|
|
7417
7423
|
(t = a.value) == null || t.setProps({ getReferenceClientRect: () => {
|
|
@@ -7428,15 +7434,15 @@ var Bd = ["src"], Vd = {
|
|
|
7428
7434
|
(r = a.value) == null || r.hide();
|
|
7429
7435
|
}
|
|
7430
7436
|
}, 16);
|
|
7431
|
-
},
|
|
7437
|
+
}, te = (e) => {
|
|
7432
7438
|
if (u("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7433
7439
|
var t;
|
|
7434
7440
|
return e.shiftKey ? void 0 : ((t = e.preventDefault) == null || t.call(e), !1);
|
|
7435
7441
|
}
|
|
7436
|
-
e.key === "@" && (g.value = "slash",
|
|
7437
|
-
},
|
|
7442
|
+
e.key === "@" && (g.value = "slash", F()), e.key === "/" && (g.value = "skill", F()), e.key === "\\" && (g.value = "prompt", F());
|
|
7443
|
+
}, R = () => {
|
|
7438
7444
|
_.value = "";
|
|
7439
|
-
},
|
|
7445
|
+
}, ne = () => {
|
|
7440
7446
|
let e = {
|
|
7441
7447
|
isActive: !1,
|
|
7442
7448
|
query: "",
|
|
@@ -7468,33 +7474,33 @@ var Bd = ["src"], Vd = {
|
|
|
7468
7474
|
} catch (t) {
|
|
7469
7475
|
return e;
|
|
7470
7476
|
}
|
|
7471
|
-
},
|
|
7477
|
+
}, re = (e, t) => e.reduce((e, n, r) => {
|
|
7472
7478
|
if (r >= t) return e;
|
|
7473
7479
|
if (n.type === "text") {
|
|
7474
7480
|
var i;
|
|
7475
7481
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7476
7482
|
}
|
|
7477
7483
|
return n.type === "tag" && (e += 1), e;
|
|
7478
|
-
}, 0),
|
|
7484
|
+
}, 0), ie = (e) => {
|
|
7479
7485
|
var t;
|
|
7480
|
-
x.command(
|
|
7486
|
+
x.command(M);
|
|
7481
7487
|
let { column: n, line: r } = j.value;
|
|
7482
|
-
x.command(hf, [r, n - _.value.length - 1], [r, n]), x.command(gf, [r, n], e), x.command(_f, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(),
|
|
7483
|
-
},
|
|
7488
|
+
x.command(hf, [r, n - _.value.length - 1], [r, n]), x.command(gf, [r, n], e), x.command(_f, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), ae();
|
|
7489
|
+
}, ae = () => {
|
|
7484
7490
|
T !== null && clearTimeout(T), T = setTimeout(() => {
|
|
7485
7491
|
if (T = null, typeof window > "u") return;
|
|
7486
7492
|
let e = window.getSelection(), t = document.createRange();
|
|
7487
7493
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7488
7494
|
}, 100);
|
|
7489
|
-
},
|
|
7490
|
-
x.command(ou, e),
|
|
7491
|
-
},
|
|
7495
|
+
}, se = (e) => {
|
|
7496
|
+
x.command(ou, e), ae();
|
|
7497
|
+
}, U = (e) => {
|
|
7492
7498
|
var t;
|
|
7493
|
-
x.command(
|
|
7499
|
+
x.command(M);
|
|
7494
7500
|
let { column: n, line: r } = j.value;
|
|
7495
|
-
x.command(hf, [r, n - _.value.length - 1], [r, n]), x.command(vf, [r, n], e), x.command(_f, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(),
|
|
7501
|
+
x.command(hf, [r, n - _.value.length - 1], [r, n]), x.command(vf, [r, n], e), x.command(_f, [r, n + _.value.length + 1 + 1], " "), (t = a.value) == null || t.hide(), ae();
|
|
7496
7502
|
};
|
|
7497
|
-
|
|
7503
|
+
oe(() => {
|
|
7498
7504
|
var e, t;
|
|
7499
7505
|
let n = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7500
7506
|
var t;
|
|
@@ -7508,12 +7514,12 @@ var Bd = ["src"], Vd = {
|
|
|
7508
7514
|
(i = a.value) == null || i.hide();
|
|
7509
7515
|
}
|
|
7510
7516
|
});
|
|
7511
|
-
let
|
|
7517
|
+
let ce = (e, t, n, r) => {
|
|
7512
7518
|
if (t.type === "tag") {
|
|
7513
|
-
let t =
|
|
7519
|
+
let t = re(e, n);
|
|
7514
7520
|
x.command(hf, [r, t], [r, t + 1]);
|
|
7515
7521
|
}
|
|
7516
|
-
},
|
|
7522
|
+
}, le = (e) => {
|
|
7517
7523
|
var t;
|
|
7518
7524
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7519
7525
|
if (!n) return;
|
|
@@ -7529,26 +7535,26 @@ var Bd = ["src"], Vd = {
|
|
|
7529
7535
|
schema: dd,
|
|
7530
7536
|
onChange: function() {
|
|
7531
7537
|
var e = Z(function* (e) {
|
|
7532
|
-
h.value = e,
|
|
7538
|
+
h.value = e, F();
|
|
7533
7539
|
});
|
|
7534
7540
|
return function(t) {
|
|
7535
7541
|
return e.apply(this, arguments);
|
|
7536
7542
|
};
|
|
7537
7543
|
}(),
|
|
7538
|
-
onKeyDown: (e) =>
|
|
7544
|
+
onKeyDown: (e) => te(e)
|
|
7539
7545
|
}), C = x.input(i.value);
|
|
7540
7546
|
}, ue = () => g.value === "slash" ? v.value.length < 1 ? !1 : void 0 : g.value === "skill" ? y.value.length < 1 ? !1 : void 0 : b.value.length < 1 ? !1 : void 0;
|
|
7541
7547
|
return E(() => {
|
|
7542
7548
|
var e;
|
|
7543
|
-
W(), (e = i.value) == null || e.addEventListener("paste",
|
|
7549
|
+
W(), (e = i.value) == null || e.addEventListener("paste", le);
|
|
7544
7550
|
}), O(() => {
|
|
7545
7551
|
var e;
|
|
7546
|
-
D(), x.command(ou, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste",
|
|
7552
|
+
D(), x.command(ou, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste", le);
|
|
7547
7553
|
}), n({
|
|
7548
7554
|
cleanup: () => {
|
|
7549
7555
|
x.command(ou, "");
|
|
7550
7556
|
},
|
|
7551
|
-
focus:
|
|
7557
|
+
focus: ae
|
|
7552
7558
|
}), (n, r) => {
|
|
7553
7559
|
var u;
|
|
7554
7560
|
return k(), c("div", yf, [l("div", {
|
|
@@ -7557,16 +7563,16 @@ var Bd = ["src"], Vd = {
|
|
|
7557
7563
|
"aria-placeholder": t.placeholder,
|
|
7558
7564
|
class: "ai-slash-input",
|
|
7559
7565
|
spellcheck: "false"
|
|
7560
|
-
}, [(u = h.value) != null && u.length && h.value.some((e) => e.length) ? (k(!0), c(e, { key: 0 },
|
|
7566
|
+
}, [(u = h.value) != null && u.length && h.value.some((e) => e.length) ? (k(!0), c(e, { key: 0 }, N(h.value, (t, n) => (k(), c("div", { key: n }, [t.length ? (k(!0), c(e, { key: 0 }, N(t, (r, i) => (k(), c(e, { key: i }, [r.type === "text" ? (k(), c("span", xf, L(r.text), 1)) : r.type === "tag" ? (k(), c("span", {
|
|
7561
7567
|
key: 1,
|
|
7562
7568
|
class: S(`mention-tag-${r.data.type}`),
|
|
7563
7569
|
contenteditable: "false",
|
|
7564
7570
|
"data-tag-type": r.data.type,
|
|
7565
7571
|
"data-tag-value": r.data.value
|
|
7566
|
-
}, [d(
|
|
7572
|
+
}, [d(L(r.data.label) + " ", 1), f(z(Yt), {
|
|
7567
7573
|
class: "mention-tag-remove-icon",
|
|
7568
|
-
onClick: (e) =>
|
|
7569
|
-
}, null, 8, ["onClick"])], 10, Sf)) : s("", !0)], 64))), 128)) : (k(), c("br", Cf))]))), 128)) : s("", !0)], 8, bf), f(
|
|
7574
|
+
onClick: (e) => ce(t, r, i, n)
|
|
7575
|
+
}, null, 8, ["onClick"])], 10, Sf)) : s("", !0)], 64))), 128)) : (k(), c("br", Cf))]))), 128)) : s("", !0)], 8, bf), f(z(xe), {
|
|
7570
7576
|
ref_key: "tippyRef",
|
|
7571
7577
|
ref: a,
|
|
7572
7578
|
"append-to": A,
|
|
@@ -7578,21 +7584,21 @@ var Bd = ["src"], Vd = {
|
|
|
7578
7584
|
theme: "light ai-slash-editor-theme",
|
|
7579
7585
|
trigger: "manual",
|
|
7580
7586
|
"trigger-target": i.value,
|
|
7581
|
-
"z-index":
|
|
7582
|
-
onHidden:
|
|
7587
|
+
"z-index": z(Tt),
|
|
7588
|
+
onHidden: R,
|
|
7583
7589
|
onShow: ue
|
|
7584
7590
|
}, {
|
|
7585
|
-
content:
|
|
7591
|
+
content: H(() => [g.value === "slash" ? (k(), o(mf, {
|
|
7586
7592
|
key: 0,
|
|
7587
|
-
"on-select":
|
|
7593
|
+
"on-select": ie,
|
|
7588
7594
|
"resource-list": v.value
|
|
7589
7595
|
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(lf, {
|
|
7590
7596
|
key: 1,
|
|
7591
|
-
"on-select":
|
|
7597
|
+
"on-select": U,
|
|
7592
7598
|
skills: y.value
|
|
7593
7599
|
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(nf, {
|
|
7594
7600
|
key: 2,
|
|
7595
|
-
"on-select":
|
|
7601
|
+
"on-select": se,
|
|
7596
7602
|
prompts: b.value
|
|
7597
7603
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7598
7604
|
_: 1
|
|
@@ -7613,18 +7619,18 @@ var Bd = ["src"], Vd = {
|
|
|
7613
7619
|
}, a = () => {
|
|
7614
7620
|
n.sendDisabledTip || n.messageState === J.Disabled || n.messageState === J.Pending || n.messageState === J.Streaming || r("sendMessage");
|
|
7615
7621
|
};
|
|
7616
|
-
return (t, r) => (k(), c("div", Tf, [
|
|
7622
|
+
return (t, r) => (k(), c("div", Tf, [P(t.$slots, "default"), P(t.$slots, "send-icon", {}, () => [l("div", { class: S(["send-message-icon", [e.messageState && `send-message-icon__${e.messageState}`, { "send-message-icon__disabled": e.sendDisabledTip }]]) }, [e.messageState === z(J).Streaming || e.messageState === z(J).Pending || e.messageState === z(J).Fetching ? U((k(), o(z(Mn), {
|
|
7617
7623
|
key: 0,
|
|
7618
7624
|
onClick: i
|
|
7619
|
-
}, null, 512)), [[
|
|
7620
|
-
content:
|
|
7625
|
+
}, null, 512)), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
7626
|
+
content: z(G)("停止"),
|
|
7621
7627
|
theme: "ai-chat-box",
|
|
7622
7628
|
offset: [0, 16]
|
|
7623
|
-
})]]) :
|
|
7629
|
+
})]]) : U((k(), o(z(jn), {
|
|
7624
7630
|
key: 1,
|
|
7625
7631
|
onClick: a
|
|
7626
|
-
}, null, 512)), [[
|
|
7627
|
-
content: e.sendDisabledTip || (n.messageState ===
|
|
7632
|
+
}, null, 512)), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
7633
|
+
content: e.sendDisabledTip || (n.messageState === z(J).Disabled ? void 0 : z(G)("发送")),
|
|
7628
7634
|
theme: "ai-chat-box",
|
|
7629
7635
|
offset: [0, 16]
|
|
7630
7636
|
})]])], 2)])]));
|
|
@@ -7667,7 +7673,7 @@ var Bd = ["src"], Vd = {
|
|
|
7667
7673
|
"update:modelValue"
|
|
7668
7674
|
], ["update:cite"]),
|
|
7669
7675
|
setup(e, { expose: t, emit: n }) {
|
|
7670
|
-
let r =
|
|
7676
|
+
let r = B("aiSlashInputRef"), i = B("filesRef"), u = re(e, "cite"), d = I(200), p = e, m = n, g = ee(p.defaultUploadFiles || []), _ = a(() => {
|
|
7671
7677
|
var e;
|
|
7672
7678
|
return (e = p.shortcuts) == null ? void 0 : e.find((e) => e.id === p.shortcutId);
|
|
7673
7679
|
}), v = a(() => {
|
|
@@ -7678,7 +7684,7 @@ var Bd = ["src"], Vd = {
|
|
|
7678
7684
|
J.Fetching
|
|
7679
7685
|
].includes(p.messageStatus) ? p.messageStatus : ((e = p.modelValue) == null ? void 0 : e.length) < 1 || Array.isArray(p.modelValue) && !ud(p.modelValue).trim() ? J.Disabled : p.messageStatus;
|
|
7680
7686
|
});
|
|
7681
|
-
|
|
7687
|
+
se(() => {
|
|
7682
7688
|
var e;
|
|
7683
7689
|
let t = p.inputMaxHeight || 200;
|
|
7684
7690
|
if (g.value.length < 1 || !i.value) {
|
|
@@ -7793,7 +7799,7 @@ var Bd = ["src"], Vd = {
|
|
|
7793
7799
|
};
|
|
7794
7800
|
}(), j = (e) => {
|
|
7795
7801
|
g.value = g.value.filter((t) => t.file ? t.file !== e.file : t.url ? t.url !== e.url : t.filename ? t.filename !== e.filename : !0);
|
|
7796
|
-
},
|
|
7802
|
+
}, M = (e, t) => {
|
|
7797
7803
|
m("update:modelValue", e, t);
|
|
7798
7804
|
};
|
|
7799
7805
|
return t({
|
|
@@ -7804,21 +7810,21 @@ var Bd = ["src"], Vd = {
|
|
|
7804
7810
|
triggerSendMessage: y
|
|
7805
7811
|
}), (t, n) => (k(), c("div", {
|
|
7806
7812
|
class: "chat-input-container",
|
|
7807
|
-
style: w({ "--chat-z-index":
|
|
7813
|
+
style: w({ "--chat-z-index": z(Ct) })
|
|
7808
7814
|
}, [
|
|
7809
|
-
|
|
7810
|
-
|
|
7815
|
+
P(t.$slots, "top"),
|
|
7816
|
+
P(t.$slots, "interrupt"),
|
|
7811
7817
|
l("div", {
|
|
7812
7818
|
class: "chat-input",
|
|
7813
7819
|
style: w({ maxHeight: d.value + "px" })
|
|
7814
7820
|
}, [
|
|
7815
|
-
|
|
7821
|
+
P(t.$slots, "input-header", {}, () => [u.value ? (k(), o(Cd, {
|
|
7816
7822
|
key: 0,
|
|
7817
7823
|
class: "chat-input-cite",
|
|
7818
7824
|
content: u.value,
|
|
7819
7825
|
onClose: S
|
|
7820
7826
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
7821
|
-
|
|
7827
|
+
P(t.$slots, "files", C(h({ files: g.value })), () => [g.value.length ? (k(), c("div", {
|
|
7822
7828
|
key: 0,
|
|
7823
7829
|
ref_key: "filesRef",
|
|
7824
7830
|
ref: i,
|
|
@@ -7836,7 +7842,7 @@ var Bd = ["src"], Vd = {
|
|
|
7836
7842
|
resources: e.resources,
|
|
7837
7843
|
skills: e.skills,
|
|
7838
7844
|
onKeydown: b,
|
|
7839
|
-
"onUpdate:modelValue":
|
|
7845
|
+
"onUpdate:modelValue": M,
|
|
7840
7846
|
onUpload: A
|
|
7841
7847
|
}, null, 8, [
|
|
7842
7848
|
"model-value",
|
|
@@ -7852,7 +7858,7 @@ var Bd = ["src"], Vd = {
|
|
|
7852
7858
|
onSendMessage: y,
|
|
7853
7859
|
onStopSending: x
|
|
7854
7860
|
}, {
|
|
7855
|
-
default:
|
|
7861
|
+
default: H(() => {
|
|
7856
7862
|
var n;
|
|
7857
7863
|
return [
|
|
7858
7864
|
e.supportUpload ? (k(), o(bd, {
|
|
@@ -7861,7 +7867,7 @@ var Bd = ["src"], Vd = {
|
|
|
7861
7867
|
onUpload: A
|
|
7862
7868
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
7863
7869
|
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span", Df)) : s("", !0),
|
|
7864
|
-
|
|
7870
|
+
P(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(yr, {
|
|
7865
7871
|
key: 0,
|
|
7866
7872
|
shortcuts: e.shortcuts,
|
|
7867
7873
|
onSelectShortcut: T
|
|
@@ -7870,12 +7876,12 @@ var Bd = ["src"], Vd = {
|
|
|
7870
7876
|
class: "selected-shortcut-btn",
|
|
7871
7877
|
shortcut: _.value
|
|
7872
7878
|
}, {
|
|
7873
|
-
append:
|
|
7879
|
+
append: H(() => [f(z(Bn), { onClick: E })]),
|
|
7874
7880
|
_: 1
|
|
7875
7881
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
7876
7882
|
];
|
|
7877
7883
|
}),
|
|
7878
|
-
"send-icon":
|
|
7884
|
+
"send-icon": H(() => [P(t.$slots, "send-icon")]),
|
|
7879
7885
|
_: 3
|
|
7880
7886
|
}, 8, [
|
|
7881
7887
|
"message-state",
|
|
@@ -7889,13 +7895,13 @@ var Bd = ["src"], Vd = {
|
|
|
7889
7895
|
__name: "input-info-alert",
|
|
7890
7896
|
props: { content: {} },
|
|
7891
7897
|
setup(e) {
|
|
7892
|
-
return (t, n) => (k(), c("div", kf, [f(
|
|
7898
|
+
return (t, n) => (k(), c("div", kf, [f(z(On), { class: "chat-input-info-alert__icon" }), l("span", Af, L(e.content), 1)]));
|
|
7893
7899
|
}
|
|
7894
7900
|
}), Mf = "others", Nf = (e) => e < 26 ? String.fromCharCode(65 + e) : String(e + 1), Pf = (e) => {
|
|
7895
7901
|
let t = a(() => {
|
|
7896
7902
|
var t, n;
|
|
7897
7903
|
return (t = (n = e()) == null || (n = n.metadata) == null ? void 0 : n.questions) == null ? [] : t;
|
|
7898
|
-
}), n =
|
|
7904
|
+
}), n = I({}), r = (e) => n.value[e], i = (e, t) => {
|
|
7899
7905
|
n.value = X(X({}, n.value), {}, { [e]: t });
|
|
7900
7906
|
}, o = a(() => t.value.length), s = a(() => t.value.reduce((e, t, r) => e + +!!n.value[r], 0)), c = a(() => o.value > 0 && s.value === o.value), l = () => t.value.map((e, t) => {
|
|
7901
7907
|
var r;
|
|
@@ -7941,17 +7947,17 @@ var Bd = ["src"], Vd = {
|
|
|
7941
7947
|
},
|
|
7942
7948
|
setup(t) {
|
|
7943
7949
|
let n = t, r = a(() => n.status === "cancelled" ? G("已取消") : G("已回复"));
|
|
7944
|
-
return (n, i) => (k(), c("section", If, [l("header", Lf, [l("div", Rf, [f(
|
|
7950
|
+
return (n, i) => (k(), c("section", If, [l("header", Lf, [l("div", Rf, [f(z(Dn), { class: "ai-user-question-answered__help-icon" }), l("span", zf, L(z(G)("回答内容")), 1)]), l("span", Bf, L(r.value), 1)]), l("div", Vf, [(k(!0), c(e, null, N(t.answers, (r, i) => (k(), c("div", {
|
|
7945
7951
|
key: i,
|
|
7946
7952
|
class: "ai-user-question-answered__item"
|
|
7947
|
-
}, [l("div", Hf, [l("span", Uf,
|
|
7953
|
+
}, [l("div", Hf, [l("span", Uf, L(i + 1) + ". " + L(r.question), 1), r.multiSelect === void 0 ? s("", !0) : (k(), c("span", Wf, L(r.multiSelect ? z(G)("多选") : z(G)("单选")), 1))]), P(n.$slots, "answer", b({ ref_for: !0 }, {
|
|
7948
7954
|
item: r,
|
|
7949
7955
|
index: i,
|
|
7950
7956
|
status: t.status
|
|
7951
|
-
}), () => [(k(!0), c(e, null,
|
|
7957
|
+
}), () => [(k(!0), c(e, null, N(r.answer, (e, t) => (k(), c("p", {
|
|
7952
7958
|
key: t,
|
|
7953
7959
|
class: "ai-user-question-answered__answer"
|
|
7954
|
-
},
|
|
7960
|
+
}, L(e.description || e.label), 1))), 128))])]))), 128))])]));
|
|
7955
7961
|
}
|
|
7956
7962
|
}), Kf = { class: "ai-user-question-option__badge" }, qf = ["placeholder", "value"], Jf = {
|
|
7957
7963
|
key: 1,
|
|
@@ -7983,23 +7989,23 @@ var Bd = ["src"], Vd = {
|
|
|
7983
7989
|
"ai-user-question-option--others": e.option.isOthers
|
|
7984
7990
|
}]),
|
|
7985
7991
|
onClick: i
|
|
7986
|
-
}, [l("span", Kf,
|
|
7992
|
+
}, [l("span", Kf, L(e.option.letter), 1), e.option.isOthers ? (k(), c("input", {
|
|
7987
7993
|
key: 0,
|
|
7988
7994
|
class: "ai-user-question-option__input",
|
|
7989
|
-
placeholder:
|
|
7995
|
+
placeholder: z(G)("请输入..."),
|
|
7990
7996
|
value: e.othersText,
|
|
7991
|
-
onClick: n[0] || (n[0] =
|
|
7997
|
+
onClick: n[0] || (n[0] = le(() => {}, ["stop"])),
|
|
7992
7998
|
onFocus: a,
|
|
7993
7999
|
onInput: o,
|
|
7994
|
-
onKeydown: n[1] || (n[1] = le(
|
|
7995
|
-
}, null, 40, qf)) : (k(), c("span", Jf,
|
|
8000
|
+
onKeydown: n[1] || (n[1] = ce(le((e) => r("confirm"), ["stop"]), ["enter"]))
|
|
8001
|
+
}, null, 40, qf)) : (k(), c("span", Jf, L(e.option.description), 1))], 2));
|
|
7996
8002
|
}
|
|
7997
8003
|
}), Xf = { class: "ai-user-question-choice" }, Zf = /* @__PURE__ */ m({
|
|
7998
8004
|
__name: "user-question-choice",
|
|
7999
8005
|
props: { question: {} },
|
|
8000
8006
|
emits: ["answer", "confirm"],
|
|
8001
8007
|
setup(t, { emit: n }) {
|
|
8002
|
-
let r = t, i = n, s =
|
|
8008
|
+
let r = t, i = n, s = I([]), l = I(""), u = a(() => {
|
|
8003
8009
|
var e;
|
|
8004
8010
|
let t = ((e = r.question.options) == null ? [] : e).filter((e) => e.label !== Mf).map((e, t) => X(X({}, e), {}, {
|
|
8005
8011
|
isOthers: !1,
|
|
@@ -8031,9 +8037,9 @@ var Bd = ["src"], Vd = {
|
|
|
8031
8037
|
}, _ = (e) => {
|
|
8032
8038
|
l.value = e, h();
|
|
8033
8039
|
};
|
|
8034
|
-
return
|
|
8040
|
+
return V(() => r.question, () => {
|
|
8035
8041
|
s.value = [], l.value = "", h();
|
|
8036
|
-
}), (t, n) => (k(), c("div", Xf, [(k(!0), c(e, null,
|
|
8042
|
+
}), (t, n) => (k(), c("div", Xf, [(k(!0), c(e, null, N(u.value, (e, t) => (k(), o(Yf, {
|
|
8037
8043
|
key: t,
|
|
8038
8044
|
option: e,
|
|
8039
8045
|
"others-text": l.value,
|
|
@@ -8058,14 +8064,14 @@ var Bd = ["src"], Vd = {
|
|
|
8058
8064
|
onResume: { type: Function }
|
|
8059
8065
|
},
|
|
8060
8066
|
setup(t) {
|
|
8061
|
-
let n = t, r = hi(), i =
|
|
8067
|
+
let n = t, r = hi(), i = I(!1), { questions: u, answeredCount: p, totalCount: m, completed: h, getAnswer: g, setAnswer: _, buildResolvePayload: v, buildSkipPayload: y } = Pf(() => n.interrupt), x = a(() => {
|
|
8062
8068
|
var e;
|
|
8063
8069
|
return ((e = n.interrupt.metadata) == null || (e = e.questions) == null || (e = e[0]) == null ? void 0 : e.header) || n.interrupt.message || "";
|
|
8064
8070
|
}), C = () => {
|
|
8065
8071
|
i.value = !i.value;
|
|
8066
8072
|
}, T = () => {
|
|
8067
8073
|
i.value && (i.value = !1);
|
|
8068
|
-
}, E =
|
|
8074
|
+
}, E = I(null), D = () => {
|
|
8069
8075
|
var e;
|
|
8070
8076
|
!h.value || E.value !== null || (E.value = "complete", (e = n.onResume) == null || e.call(n, v(), n.interrupt));
|
|
8071
8077
|
}, O = () => {
|
|
@@ -8076,39 +8082,39 @@ var Bd = ["src"], Vd = {
|
|
|
8076
8082
|
l("header", {
|
|
8077
8083
|
class: "ai-user-question-card__header",
|
|
8078
8084
|
onClick: T
|
|
8079
|
-
}, [l("div", Qf, [f(
|
|
8085
|
+
}, [l("div", Qf, [f(z(Dn), { class: "ai-user-question-card__help-icon" }), U((k(), c("span", $f, [d(L(x.value), 1)])), [[z(vi), X({}, z(r))]])]), l("div", ep, [l("span", tp, L(z(p)) + " / " + L(z(m)), 1), f(z(mn), {
|
|
8080
8086
|
class: "ai-user-question-card__arrow",
|
|
8081
8087
|
style: w({ transform: i.value ? "rotate(180deg)" : "rotate(-90deg)" }),
|
|
8082
|
-
onClick:
|
|
8088
|
+
onClick: le(C, ["stop"])
|
|
8083
8089
|
}, null, 8, ["style"])])]),
|
|
8084
|
-
|
|
8090
|
+
U(l("div", np, [(k(!0), c(e, null, N(z(u), (e, n) => (k(), c("div", {
|
|
8085
8091
|
key: n,
|
|
8086
8092
|
class: "ai-user-question-card__question"
|
|
8087
|
-
}, [l("div", rp, [l("span", ip,
|
|
8093
|
+
}, [l("div", rp, [l("span", ip, L(n + 1) + ". " + L(e.question), 1), e.multiSelect === void 0 ? s("", !0) : (k(), c("span", ap, L(e.multiSelect ? z(G)("多选") : z(G)("单选")), 1))]), l("div", op, [P(t.$slots, "question", b({ ref_for: !0 }, {
|
|
8088
8094
|
question: e,
|
|
8089
8095
|
qIndex: n,
|
|
8090
|
-
answer:
|
|
8091
|
-
setAnswer: (e) =>
|
|
8096
|
+
answer: z(g)(n),
|
|
8097
|
+
setAnswer: (e) => z(_)(n, e),
|
|
8092
8098
|
confirm: D
|
|
8093
8099
|
}), () => [f(Zf, {
|
|
8094
8100
|
question: e,
|
|
8095
|
-
onAnswer: (e) =>
|
|
8101
|
+
onAnswer: (e) => z(_)(n, e),
|
|
8096
8102
|
onConfirm: D
|
|
8097
|
-
}, null, 8, ["question", "onAnswer"])])])]))), 128))], 512), [[
|
|
8098
|
-
|
|
8103
|
+
}, null, 8, ["question", "onAnswer"])])])]))), 128))], 512), [[ae, !i.value]]),
|
|
8104
|
+
U(l("footer", sp, [f(z(W), {
|
|
8099
8105
|
class: "ai-user-question-card__complete",
|
|
8100
|
-
disabled: !
|
|
8106
|
+
disabled: !z(h) || E.value === "skip",
|
|
8101
8107
|
loading: E.value === "complete",
|
|
8102
8108
|
size: "small",
|
|
8103
8109
|
theme: "primary",
|
|
8104
8110
|
onClick: D
|
|
8105
8111
|
}, {
|
|
8106
|
-
default:
|
|
8112
|
+
default: H(() => [E.value === "complete" ? s("", !0) : (k(), o(z(kn), {
|
|
8107
8113
|
key: 0,
|
|
8108
8114
|
class: "ai-user-question-card__enter-icon"
|
|
8109
|
-
})), d(" " +
|
|
8115
|
+
})), d(" " + L(z(G)("完成")), 1)]),
|
|
8110
8116
|
_: 1
|
|
8111
|
-
}, 8, ["disabled", "loading"]), f(
|
|
8117
|
+
}, 8, ["disabled", "loading"]), f(z(W), {
|
|
8112
8118
|
class: "ai-user-question-card__skip",
|
|
8113
8119
|
disabled: E.value === "complete",
|
|
8114
8120
|
loading: E.value === "skip",
|
|
@@ -8116,12 +8122,12 @@ var Bd = ["src"], Vd = {
|
|
|
8116
8122
|
text: "",
|
|
8117
8123
|
onClick: O
|
|
8118
8124
|
}, {
|
|
8119
|
-
default:
|
|
8125
|
+
default: H(() => [E.value === "skip" ? s("", !0) : (k(), o(z(An), {
|
|
8120
8126
|
key: 0,
|
|
8121
8127
|
class: "ai-user-question-card__skip-icon"
|
|
8122
|
-
})), d(" " +
|
|
8128
|
+
})), d(" " + L(z(G)("跳过")), 1)]),
|
|
8123
8129
|
_: 1
|
|
8124
|
-
}, 8, ["disabled", "loading"])], 512), [[
|
|
8130
|
+
}, 8, ["disabled", "loading"])], 512), [[ae, !i.value]])
|
|
8125
8131
|
], 2));
|
|
8126
8132
|
}
|
|
8127
8133
|
}), lp = { class: "ai-delete-confirm" }, up = { class: "ai-delete-confirm__title" }, dp = { class: "ai-delete-confirm__desc" }, fp = { class: "ai-delete-confirm__actions" }, pp = /* @__PURE__ */ m({
|
|
@@ -8135,7 +8141,7 @@ var Bd = ["src"], Vd = {
|
|
|
8135
8141
|
},
|
|
8136
8142
|
emits: ["confirm", "cancel"],
|
|
8137
8143
|
setup(e, { emit: t }) {
|
|
8138
|
-
let n = e, r = t, i =
|
|
8144
|
+
let n = e, r = t, i = B("tippyRef"), s = a(() => ({
|
|
8139
8145
|
id: n.id,
|
|
8140
8146
|
name: n.name,
|
|
8141
8147
|
description: n.description,
|
|
@@ -8160,29 +8166,29 @@ var Bd = ["src"], Vd = {
|
|
|
8160
8166
|
};
|
|
8161
8167
|
return O(() => {
|
|
8162
8168
|
p();
|
|
8163
|
-
}), (e, t) => (k(), o(
|
|
8169
|
+
}), (e, t) => (k(), o(z(xe), b({
|
|
8164
8170
|
ref_key: "tippyRef",
|
|
8165
8171
|
ref: i
|
|
8166
8172
|
}, c.value, { onShow: u }), {
|
|
8167
|
-
content:
|
|
8168
|
-
l("div", up,
|
|
8169
|
-
l("div", dp,
|
|
8170
|
-
l("div", fp, [f(
|
|
8173
|
+
content: H(() => [l("div", lp, [
|
|
8174
|
+
l("div", up, L(z(G)("确认删除该回答?")), 1),
|
|
8175
|
+
l("div", dp, L(z(G)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
8176
|
+
l("div", fp, [f(z(W), {
|
|
8171
8177
|
size: "small",
|
|
8172
8178
|
theme: "danger",
|
|
8173
8179
|
onClick: m
|
|
8174
8180
|
}, {
|
|
8175
|
-
default:
|
|
8181
|
+
default: H(() => [d(L(z(G)("删除")), 1)]),
|
|
8176
8182
|
_: 1
|
|
8177
|
-
}), f(
|
|
8183
|
+
}), f(z(W), {
|
|
8178
8184
|
size: "small",
|
|
8179
8185
|
onClick: g
|
|
8180
8186
|
}, {
|
|
8181
|
-
default:
|
|
8187
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
8182
8188
|
_: 1
|
|
8183
8189
|
})])
|
|
8184
8190
|
])]),
|
|
8185
|
-
default:
|
|
8191
|
+
default: H(() => [f(bi, C(h(s.value)), null, 16)]),
|
|
8186
8192
|
_: 1
|
|
8187
8193
|
}, 16));
|
|
8188
8194
|
}
|
|
@@ -8195,7 +8201,7 @@ var Bd = ["src"], Vd = {
|
|
|
8195
8201
|
},
|
|
8196
8202
|
emits: ["submit", "cancel"],
|
|
8197
8203
|
setup(t, { emit: n }) {
|
|
8198
|
-
let r = n, i =
|
|
8204
|
+
let r = n, i = I(""), a = I([]), o = (e) => {
|
|
8199
8205
|
a.value.includes(e) ? a.value = a.value.filter((t) => t !== e) : a.value = [...a.value, e];
|
|
8200
8206
|
}, s = () => {
|
|
8201
8207
|
r("submit", a.value, i.value);
|
|
@@ -8204,40 +8210,40 @@ var Bd = ["src"], Vd = {
|
|
|
8204
8210
|
};
|
|
8205
8211
|
return (n, r) => (k(), c("div", {
|
|
8206
8212
|
class: "ai-user-feedback",
|
|
8207
|
-
onMouseenter: r[1] || (r[1] =
|
|
8213
|
+
onMouseenter: r[1] || (r[1] = le(() => {}, ["stop", "prevent"]))
|
|
8208
8214
|
}, [
|
|
8209
|
-
l("div", mp,
|
|
8210
|
-
l("div", hp, [t.loading ? (k(), c(e, { key: 0 },
|
|
8215
|
+
l("div", mp, L(t.title), 1),
|
|
8216
|
+
l("div", hp, [t.loading ? (k(), c(e, { key: 0 }, N(8, (e) => l("div", {
|
|
8211
8217
|
key: e,
|
|
8212
8218
|
class: "reason-item ai-skeleton-element"
|
|
8213
|
-
})), 64)) : (k(!0), c(e, { key: 1 },
|
|
8219
|
+
})), 64)) : (k(!0), c(e, { key: 1 }, N(t.reasonList, (e) => (k(), c("div", {
|
|
8214
8220
|
key: e,
|
|
8215
8221
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
8216
8222
|
onClick: (t) => o(e)
|
|
8217
|
-
},
|
|
8218
|
-
l("div", _p, [f(
|
|
8223
|
+
}, L(e), 11, gp))), 128))]),
|
|
8224
|
+
l("div", _p, [f(z(pe), {
|
|
8219
8225
|
modelValue: i.value,
|
|
8220
8226
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
8221
|
-
placeholder:
|
|
8227
|
+
placeholder: z(G)("说出您的想法"),
|
|
8222
8228
|
rows: 3,
|
|
8223
8229
|
type: "textarea"
|
|
8224
8230
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
8225
|
-
l("div", vp, [f(
|
|
8231
|
+
l("div", vp, [f(z(W), {
|
|
8226
8232
|
class: "custom-btn",
|
|
8227
8233
|
disabled: !i.value && a.value.length === 0,
|
|
8228
8234
|
size: "small",
|
|
8229
8235
|
theme: "primary",
|
|
8230
8236
|
onClick: s
|
|
8231
8237
|
}, {
|
|
8232
|
-
default:
|
|
8238
|
+
default: H(() => [d(L(z(G)("提交")), 1)]),
|
|
8233
8239
|
_: 1
|
|
8234
|
-
}, 8, ["disabled"]), f(
|
|
8240
|
+
}, 8, ["disabled"]), f(z(W), {
|
|
8235
8241
|
class: "custom-btn",
|
|
8236
8242
|
size: "small",
|
|
8237
8243
|
width: "80px",
|
|
8238
8244
|
onClick: u
|
|
8239
8245
|
}, {
|
|
8240
|
-
default:
|
|
8246
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
8241
8247
|
_: 1
|
|
8242
8248
|
})])
|
|
8243
8249
|
], 32));
|
|
@@ -8263,7 +8269,7 @@ var Bd = ["src"], Vd = {
|
|
|
8263
8269
|
},
|
|
8264
8270
|
emits: ["feedback"],
|
|
8265
8271
|
setup(t, { emit: n }) {
|
|
8266
|
-
let r = t, i = n, u =
|
|
8272
|
+
let r = t, i = n, u = B("feedbackTippyRef"), d = I(!1), p = I([]), m = I(null), h = a(() => X({
|
|
8267
8273
|
arrow: !1,
|
|
8268
8274
|
interactive: !0,
|
|
8269
8275
|
offset: [0, 6],
|
|
@@ -8314,11 +8320,11 @@ var Bd = ["src"], Vd = {
|
|
|
8314
8320
|
return O(() => {
|
|
8315
8321
|
v(), p.value = [];
|
|
8316
8322
|
}), (n, r) => (k(), c("div", bp, [
|
|
8317
|
-
l("div", xp, [(k(!0), c(e, null,
|
|
8323
|
+
l("div", xp, [(k(!0), c(e, null, N(t.messageTools, (n) => (k(), c(e, { key: n.id }, [n.id === "delete" ? (k(), o(pp, b({
|
|
8318
8324
|
key: 0,
|
|
8319
8325
|
ref_for: !0
|
|
8320
8326
|
}, n, {
|
|
8321
|
-
disabled: t.messageToolsStatus ===
|
|
8327
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8322
8328
|
"tippy-options": t.tippyOptions,
|
|
8323
8329
|
onConfirm: (e) => _(n)
|
|
8324
8330
|
}), null, 16, [
|
|
@@ -8329,7 +8335,7 @@ var Bd = ["src"], Vd = {
|
|
|
8329
8335
|
key: 1,
|
|
8330
8336
|
ref_for: !0
|
|
8331
8337
|
}, n, {
|
|
8332
|
-
disabled: t.messageToolsStatus ===
|
|
8338
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8333
8339
|
"tippy-options": t.tippyOptions,
|
|
8334
8340
|
onClick: (e) => g(n)
|
|
8335
8341
|
}), null, 16, [
|
|
@@ -8338,16 +8344,16 @@ var Bd = ["src"], Vd = {
|
|
|
8338
8344
|
"onClick"
|
|
8339
8345
|
]))], 64))), 128))]),
|
|
8340
8346
|
t.updateTools.length > 0 ? (k(), c("div", Sp)) : s("", !0),
|
|
8341
|
-
l("div", Cp, [(k(!0), c(e, null,
|
|
8347
|
+
l("div", Cp, [(k(!0), c(e, null, N(t.updateTools, (n) => (k(), c(e, { key: n.id }, [n.id === "like" || n.id === "unlike" ? (k(), o(z(xe), b({
|
|
8342
8348
|
key: 0,
|
|
8343
8349
|
ref_for: !0,
|
|
8344
8350
|
ref_key: "feedbackTippyRef",
|
|
8345
8351
|
ref: u
|
|
8346
8352
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
8347
|
-
content:
|
|
8353
|
+
content: H(() => [f(yp, {
|
|
8348
8354
|
loading: d.value,
|
|
8349
8355
|
"reason-list": p.value,
|
|
8350
|
-
title: n.id === "like" ?
|
|
8356
|
+
title: n.id === "like" ? z(G)("什么原因让你满意?") : z(G)("什么原因让你不满意?"),
|
|
8351
8357
|
onCancel: v,
|
|
8352
8358
|
onSubmit: (e, t) => S(n, e, t)
|
|
8353
8359
|
}, null, 8, [
|
|
@@ -8356,10 +8362,10 @@ var Bd = ["src"], Vd = {
|
|
|
8356
8362
|
"title",
|
|
8357
8363
|
"onSubmit"
|
|
8358
8364
|
])]),
|
|
8359
|
-
default:
|
|
8365
|
+
default: H(() => [f(bi, b({ ref_for: !0 }, n, {
|
|
8360
8366
|
id: y(n.id),
|
|
8361
8367
|
active: m.value === n.id,
|
|
8362
|
-
disabled: t.messageToolsStatus ===
|
|
8368
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8363
8369
|
"tippy-options": X(X({}, t.tippyOptions), {}, { content: x(n.id) }),
|
|
8364
8370
|
onClick: (e) => g(n)
|
|
8365
8371
|
}), null, 16, [
|
|
@@ -8374,7 +8380,7 @@ var Bd = ["src"], Vd = {
|
|
|
8374
8380
|
key: 1,
|
|
8375
8381
|
ref_for: !0
|
|
8376
8382
|
}, n, {
|
|
8377
|
-
disabled: t.messageToolsStatus ===
|
|
8383
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8378
8384
|
"tippy-options": t.tippyOptions,
|
|
8379
8385
|
onConfirm: (e) => _(n)
|
|
8380
8386
|
}), null, 16, [
|
|
@@ -8385,7 +8391,7 @@ var Bd = ["src"], Vd = {
|
|
|
8385
8391
|
key: 2,
|
|
8386
8392
|
ref_for: !0
|
|
8387
8393
|
}, n, {
|
|
8388
|
-
disabled: t.messageToolsStatus ===
|
|
8394
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8389
8395
|
"tippy-options": t.tippyOptions,
|
|
8390
8396
|
onClick: (e) => g(n)
|
|
8391
8397
|
}), null, 16, [
|
|
@@ -8420,14 +8426,14 @@ var Bd = ["src"], Vd = {
|
|
|
8420
8426
|
}),
|
|
8421
8427
|
emits: ["update:collapsed"],
|
|
8422
8428
|
setup(e) {
|
|
8423
|
-
let t =
|
|
8429
|
+
let t = re(e, "collapsed");
|
|
8424
8430
|
return (n, r) => (k(), c("div", Ep, [l("div", {
|
|
8425
8431
|
class: "ai-activity-message-title",
|
|
8426
8432
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
8427
|
-
}, [
|
|
8433
|
+
}, [P(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === z(_t).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
8428
8434
|
key: 0,
|
|
8429
8435
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
8430
|
-
}, [f(
|
|
8436
|
+
}, [f(z(Pn))], 2))]), U(l("div", Dp, [P(n.$slots, "default")], 512), [[ae, !t.value]])]));
|
|
8431
8437
|
}
|
|
8432
8438
|
}), kp = [
|
|
8433
8439
|
{
|
|
@@ -8498,7 +8504,7 @@ var Bd = ["src"], Vd = {
|
|
|
8498
8504
|
let t = a(() => {
|
|
8499
8505
|
var t;
|
|
8500
8506
|
return Array.isArray(e.value) ? e.value : [(t = e.value) == null ? {} : t];
|
|
8501
|
-
}), n =
|
|
8507
|
+
}), n = I({}), r = (e) => n.value[e.task_id] !== !1;
|
|
8502
8508
|
return {
|
|
8503
8509
|
isTaskExpanded: r,
|
|
8504
8510
|
taskList: t,
|
|
@@ -8564,7 +8570,7 @@ var Bd = ["src"], Vd = {
|
|
|
8564
8570
|
pendingLabel: () => G("跳过中"),
|
|
8565
8571
|
visible: (e) => e.convergedState === "failed" && e.skippable
|
|
8566
8572
|
}], Lp = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, Rp = (e) => {
|
|
8567
|
-
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i =
|
|
8573
|
+
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i = I({}), a = (e, t, r) => {
|
|
8568
8574
|
var a;
|
|
8569
8575
|
let o = Lp(t, r);
|
|
8570
8576
|
i.value[o] || (i.value = X(X({}, i.value), {}, { [o]: e }), (a = n.value) == null || a.call(n, {
|
|
@@ -8604,7 +8610,7 @@ var Bd = ["src"], Vd = {
|
|
|
8604
8610
|
__name: "detail-section",
|
|
8605
8611
|
props: { title: {} },
|
|
8606
8612
|
setup(e) {
|
|
8607
|
-
return (t, n) => (k(), c("div", zp, [l("div", Bp, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", Vp,
|
|
8613
|
+
return (t, n) => (k(), c("div", zp, [l("div", Bp, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", Vp, L(e.title), 1)]), P(t.$slots, "default")]));
|
|
8608
8614
|
}
|
|
8609
8615
|
}), Up = { class: "ai-simple-table" }, Wp = { key: 0 }, Gp = ["colspan"], Kp = /* @__PURE__ */ m({
|
|
8610
8616
|
__name: "simple-table",
|
|
@@ -8613,12 +8619,12 @@ var Bd = ["src"], Vd = {
|
|
|
8613
8619
|
data: {}
|
|
8614
8620
|
},
|
|
8615
8621
|
setup(t) {
|
|
8616
|
-
return (n, r) => (k(), c("table", Up, [l("thead", null, [l("tr", null, [(k(!0), c(e, null,
|
|
8622
|
+
return (n, r) => (k(), c("table", Up, [l("thead", null, [l("tr", null, [(k(!0), c(e, null, N(t.columns, (e) => (k(), c("th", { key: e.key }, L(e.label), 1))), 128))])]), l("tbody", null, [(k(!0), c(e, null, N(t.data, (n, r) => (k(), c("tr", { key: r }, [(k(!0), c(e, null, N(t.columns, (e) => {
|
|
8617
8623
|
var t;
|
|
8618
8624
|
return k(), c("td", {
|
|
8619
8625
|
key: e.key,
|
|
8620
8626
|
class: S({ "is-break-all": e.breakAll })
|
|
8621
|
-
},
|
|
8627
|
+
}, L((t = n[e.key]) == null ? "--" : t), 3);
|
|
8622
8628
|
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", Wp, [l("td", {
|
|
8623
8629
|
class: "is-empty",
|
|
8624
8630
|
colspan: t.columns.length
|
|
@@ -8683,7 +8689,7 @@ var Bd = ["src"], Vd = {
|
|
|
8683
8689
|
breakAll: !0,
|
|
8684
8690
|
key: "value",
|
|
8685
8691
|
label: G("参数值")
|
|
8686
|
-
}], p = { forced_fail: mt ? "Force Fail" : "强制失败" }, m = t, h =
|
|
8692
|
+
}], p = { forced_fail: mt ? "Force Fail" : "强制失败" }, m = t, h = I(pm.Config), g = a(() => {
|
|
8687
8693
|
var e;
|
|
8688
8694
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
8689
8695
|
}), _ = a(() => {
|
|
@@ -8746,55 +8752,55 @@ var Bd = ["src"], Vd = {
|
|
|
8746
8752
|
return (a, p) => {
|
|
8747
8753
|
var m;
|
|
8748
8754
|
return k(), c("div", qp, [
|
|
8749
|
-
l("h3", Jp, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null,
|
|
8750
|
-
l("div", Xp, [(k(), c(e, null,
|
|
8755
|
+
l("h3", Jp, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null, L(z(G)("节点")) + ":", 1), p[0] || (p[0] = l("span", { class: "skeleton-title ai-skeleton-element" }, null, -1))], 64)) : (k(), c("div", Yp, L(z(G)("节点")) + ":" + L((m = g.value) == null ? void 0 : m.node_name), 1)), P(a.$slots, "locateButton")]),
|
|
8756
|
+
l("div", Xp, [(k(), c(e, null, N(n, (e) => l("div", {
|
|
8751
8757
|
key: e.key,
|
|
8752
8758
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
8753
8759
|
onClick: (t) => h.value = e.key
|
|
8754
|
-
}, [(k(), o(
|
|
8755
|
-
l("div", Qp, [h.value === pm.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", $p, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null,
|
|
8760
|
+
}, [(k(), o(F(e.key === pm.Config ? z(sn) : z(on)), { class: "detail-tab-icon" })), d(" " + L(e.label), 1)], 10, Zp)), 64))]),
|
|
8761
|
+
l("div", Qp, [h.value === pm.Config ? (k(), c(e, { key: 0 }, [t.loading ? (k(), c(e, { key: 0 }, [l("div", $p, [p[1] || (p[1] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(6, (e) => l("div", {
|
|
8756
8762
|
key: e,
|
|
8757
8763
|
class: "skeleton-row ai-skeleton-element"
|
|
8758
|
-
})), 64))]), l("div", em, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null,
|
|
8764
|
+
})), 64))]), l("div", em, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(4, (e) => l("div", {
|
|
8759
8765
|
key: e,
|
|
8760
8766
|
class: "skeleton-row ai-skeleton-element"
|
|
8761
8767
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
8762
|
-
f(Hp, { title:
|
|
8763
|
-
default:
|
|
8768
|
+
f(Hp, { title: z(G)("基础信息") }, {
|
|
8769
|
+
default: H(() => {
|
|
8764
8770
|
var t, n, r;
|
|
8765
8771
|
return [l("div", tm, [
|
|
8766
|
-
(k(!0), c(e, null,
|
|
8772
|
+
(k(!0), c(e, null, N(_.value, (e) => (k(), c("div", {
|
|
8767
8773
|
key: e.label,
|
|
8768
8774
|
class: "info-row"
|
|
8769
|
-
}, [l("div", nm,
|
|
8770
|
-
l("div", im, [l("div", am,
|
|
8771
|
-
l("div", lm, [l("div", um,
|
|
8775
|
+
}, [l("div", nm, L(e.label), 1), l("div", rm, L(e.value), 1)]))), 128)),
|
|
8776
|
+
l("div", im, [l("div", am, L(z(G)("失败处理")), 1), l("div", om, [v.value ? (k(), c(e, { key: 0 }, [(t = g.value) != null && t.skippable ? (k(), c("span", sm, [p[3] || (p[3] = l("span", { class: "tag-badge" }, "MS", -1)), d(" " + L(z(G)("手动跳过")) + L(!((n = g.value) == null || (n = n.auto_retry) == null) && n.enable ? ";" : ""), 1)])) : s("", !0), !((r = g.value) == null || (r = r.auto_retry) == null) && r.enable ? (k(), c("span", cm, [p[4] || (p[4] = l("span", { class: "tag-badge" }, "AR", -1)), d(" " + L(y.value), 1)])) : s("", !0)], 64)) : (k(), c(e, { key: 1 }, [d("--")], 64))])]),
|
|
8777
|
+
l("div", lm, [l("div", um, L(z(G)("超时控制")), 1), l("div", dm, L(b.value), 1)])
|
|
8772
8778
|
])];
|
|
8773
8779
|
}),
|
|
8774
8780
|
_: 1
|
|
8775
8781
|
}, 8, ["title"]),
|
|
8776
|
-
f(Hp, { title:
|
|
8777
|
-
default:
|
|
8782
|
+
f(Hp, { title: z(G)("输入参数") }, {
|
|
8783
|
+
default: H(() => [f(Kp, {
|
|
8778
8784
|
columns: r,
|
|
8779
8785
|
data: x.value
|
|
8780
8786
|
}, null, 8, ["data"])]),
|
|
8781
8787
|
_: 1
|
|
8782
8788
|
}, 8, ["title"]),
|
|
8783
|
-
f(Hp, { title:
|
|
8784
|
-
default:
|
|
8789
|
+
f(Hp, { title: z(G)("输出参数") }, {
|
|
8790
|
+
default: H(() => [f(Kp, {
|
|
8785
8791
|
columns: i,
|
|
8786
8792
|
data: C.value
|
|
8787
8793
|
}, null, 8, ["data"])]),
|
|
8788
8794
|
_: 1
|
|
8789
8795
|
}, 8, ["title"])
|
|
8790
|
-
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", fm, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null,
|
|
8796
|
+
], 64))], 64)) : (k(), c(e, { key: 1 }, [t.loading ? (k(), c("div", fm, [p[5] || (p[5] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null, N(5, (e) => l("div", {
|
|
8791
8797
|
key: e,
|
|
8792
8798
|
class: "skeleton-row ai-skeleton-element"
|
|
8793
8799
|
})), 64))])) : (k(), o(Hp, {
|
|
8794
8800
|
key: 1,
|
|
8795
|
-
title:
|
|
8801
|
+
title: z(G)("结构化输出")
|
|
8796
8802
|
}, {
|
|
8797
|
-
default:
|
|
8803
|
+
default: H(() => [f(Kp, {
|
|
8798
8804
|
columns: u,
|
|
8799
8805
|
data: w.value
|
|
8800
8806
|
}, null, 8, ["data"])]),
|
|
@@ -8807,7 +8813,7 @@ var Bd = ["src"], Vd = {
|
|
|
8807
8813
|
let { messageUid: t, taskList: n } = e, r = Wr(), i = zr(), o = a(() => {
|
|
8808
8814
|
var e, t;
|
|
8809
8815
|
return (e = (t = r.selectedTab.value) == null ? void 0 : t.name) == null ? "" : e;
|
|
8810
|
-
}), s =
|
|
8816
|
+
}), s = I(!1), c = () => {
|
|
8811
8817
|
s.value = !0;
|
|
8812
8818
|
}, l = a(() => {
|
|
8813
8819
|
if (s.value) return o.value;
|
|
@@ -8858,7 +8864,7 @@ var Bd = ["src"], Vd = {
|
|
|
8858
8864
|
}
|
|
8859
8865
|
}));
|
|
8860
8866
|
};
|
|
8861
|
-
return
|
|
8867
|
+
return V(o, (e, t) => {
|
|
8862
8868
|
t !== void 0 && c();
|
|
8863
8869
|
}), E(() => {
|
|
8864
8870
|
i != null && i.value && p(n.value.find((e) => e.is_active && e.has_confidence));
|
|
@@ -8892,12 +8898,12 @@ var Bd = ["src"], Vd = {
|
|
|
8892
8898
|
}),
|
|
8893
8899
|
emits: ["update:collapsed"],
|
|
8894
8900
|
setup(t) {
|
|
8895
|
-
let n = t, r = hi(), i =
|
|
8896
|
-
messageUid:
|
|
8901
|
+
let n = t, r = hi(), i = re(t, "collapsed"), u = fi(), p = a(() => u.value === Pt.Share), m = a(() => n.status === J.Pending || n.status === J.Streaming), { isTaskExpanded: h, taskList: g, toggleTaskExpanded: _, viewTasks: v, visibleStats: y } = Fp(te(n, "content")), { isNodeSelected: x, isTaskSelected: C, openConfidence: T, openNodeDetail: E } = vm({
|
|
8902
|
+
messageUid: te(n, "messageUid"),
|
|
8897
8903
|
taskList: g
|
|
8898
8904
|
}), { getNodeActions: D, isNodePending: O } = Rp({
|
|
8899
8905
|
hideResumeActions: p,
|
|
8900
|
-
onInterruptResume:
|
|
8906
|
+
onInterruptResume: te(n, "onInterruptResume"),
|
|
8901
8907
|
openNodeDetail: E
|
|
8902
8908
|
}), A = (e) => {
|
|
8903
8909
|
e.disabled || e.run();
|
|
@@ -8905,23 +8911,23 @@ var Bd = ["src"], Vd = {
|
|
|
8905
8911
|
return (t, n) => (k(), o(Op, {
|
|
8906
8912
|
collapsed: i.value,
|
|
8907
8913
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => i.value = e),
|
|
8908
|
-
"activity-type":
|
|
8914
|
+
"activity-type": z(_t).FlowAgent,
|
|
8909
8915
|
class: "flow-agent-activity"
|
|
8910
8916
|
}, {
|
|
8911
|
-
title:
|
|
8917
|
+
title: H(() => [f(z(xe), b({
|
|
8912
8918
|
class: "flow-agent-title-bar",
|
|
8913
8919
|
theme: "ai-chat-box-light light"
|
|
8914
|
-
}, X(X({},
|
|
8920
|
+
}, X(X({}, z(r)), {}, {
|
|
8915
8921
|
tag: "div",
|
|
8916
8922
|
arrow: !0,
|
|
8917
8923
|
followCursor: !1,
|
|
8918
8924
|
offset: [0, 10]
|
|
8919
8925
|
})), {
|
|
8920
|
-
content:
|
|
8926
|
+
content: H(() => [l("div", xm, [(k(!0), c(e, null, N(z(y), (e) => (k(), c("div", {
|
|
8921
8927
|
key: e.key,
|
|
8922
8928
|
class: "flow-agent-stat-tooltip-item"
|
|
8923
8929
|
}, [
|
|
8924
|
-
l("span", Sm, [e.key === "running" ? (k(), o(
|
|
8930
|
+
l("span", Sm, [e.key === "running" ? (k(), o(z(me), {
|
|
8925
8931
|
key: 0,
|
|
8926
8932
|
mode: "spin",
|
|
8927
8933
|
size: "mini",
|
|
@@ -8931,19 +8937,19 @@ var Bd = ["src"], Vd = {
|
|
|
8931
8937
|
class: "flow-agent-stat-dot",
|
|
8932
8938
|
style: w({ borderColor: e.dotColor })
|
|
8933
8939
|
}, null, 4))]),
|
|
8934
|
-
l("span", Cm,
|
|
8940
|
+
l("span", Cm, L(e.label) + ":", 1),
|
|
8935
8941
|
l("span", {
|
|
8936
8942
|
class: "flow-agent-stat-tooltip-count",
|
|
8937
8943
|
style: w({ color: e.color })
|
|
8938
|
-
},
|
|
8944
|
+
}, L(e.display), 5)
|
|
8939
8945
|
]))), 128))])]),
|
|
8940
|
-
default:
|
|
8946
|
+
default: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": i.value }]) }, [m.value ? (k(), o(lr, {
|
|
8941
8947
|
key: 0,
|
|
8942
8948
|
size: 12
|
|
8943
|
-
})) : (k(), o(
|
|
8949
|
+
})) : (k(), o(z(Xt), { key: 1 }))], 2), l("span", ym, [l("span", bm, L(z(G)("执行情况")) + ":", 1), (k(!0), c(e, null, N(z(y), (e) => (k(), c("span", {
|
|
8944
8950
|
key: e.key,
|
|
8945
8951
|
class: "flow-agent-stat-item"
|
|
8946
|
-
}, [e.key === "running" ? (k(), o(
|
|
8952
|
+
}, [e.key === "running" ? (k(), o(z(me), {
|
|
8947
8953
|
key: 0,
|
|
8948
8954
|
class: "flow-agent-stat-loading",
|
|
8949
8955
|
mode: "spin",
|
|
@@ -8956,42 +8962,42 @@ var Bd = ["src"], Vd = {
|
|
|
8956
8962
|
}, null, 4)), l("span", {
|
|
8957
8963
|
class: "flow-agent-stat-count",
|
|
8958
8964
|
style: w({ color: e.color })
|
|
8959
|
-
},
|
|
8965
|
+
}, L(e.display), 5)]))), 128))])]),
|
|
8960
8966
|
_: 1
|
|
8961
8967
|
}, 16)]),
|
|
8962
|
-
default:
|
|
8968
|
+
default: H(() => [(k(!0), c(e, null, N(z(v), (t) => {
|
|
8963
8969
|
var n;
|
|
8964
8970
|
return k(), c("div", {
|
|
8965
8971
|
key: t.taskId,
|
|
8966
8972
|
class: "flow-agent-task-group"
|
|
8967
8973
|
}, [l("div", { class: S(["flow-agent-task-header", {
|
|
8968
8974
|
"has-confidence": t.hasConfidence,
|
|
8969
|
-
"is-selected":
|
|
8975
|
+
"is-selected": z(C)(t.raw)
|
|
8970
8976
|
}]) }, [
|
|
8971
8977
|
l("span", {
|
|
8972
|
-
class: S(["flow-agent-task-arrow", { "is-expanded":
|
|
8973
|
-
onClick:
|
|
8974
|
-
}, [f(
|
|
8975
|
-
l("span", Tm, [t.convergedState === "running" ? (k(), o(
|
|
8978
|
+
class: S(["flow-agent-task-arrow", { "is-expanded": z(h)(t.raw) }]),
|
|
8979
|
+
onClick: le((e) => z(_)(t.raw), ["stop"])
|
|
8980
|
+
}, [f(z(Xt))], 10, wm),
|
|
8981
|
+
l("span", Tm, [t.convergedState === "running" ? (k(), o(z(me), {
|
|
8976
8982
|
key: 0,
|
|
8977
8983
|
mode: "spin",
|
|
8978
8984
|
size: "mini",
|
|
8979
8985
|
theme: "primary"
|
|
8980
|
-
})) : (k(), o(
|
|
8981
|
-
|
|
8982
|
-
l("span", Dm, [l("span", Om,
|
|
8986
|
+
})) : (k(), o(F(t.stateIcon), { key: 1 }))]),
|
|
8987
|
+
U((k(), c("span", Em, [f(z(Tp), { text: t.taskName }, null, 8, ["text"])])), [[z(vi), X({}, z(r))]]),
|
|
8988
|
+
l("span", Dm, [l("span", Om, L(t.totalTimeText), 1), t.hasConfidence ? (k(), c("span", {
|
|
8983
8989
|
key: 0,
|
|
8984
8990
|
class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
|
|
8985
|
-
onClick:
|
|
8986
|
-
}, [f(
|
|
8987
|
-
], 2),
|
|
8991
|
+
onClick: le((e) => z(T)(t.raw), ["stop"])
|
|
8992
|
+
}, [f(z(on)), d(" " + L((n = t.confidenceTitle) == null ? z(G)("有效证据") : n), 1)], 8, km)) : s("", !0)])
|
|
8993
|
+
], 2), U(l("div", Am, [(k(!0), c(e, null, N(t.nodes, (n) => (k(), c("div", {
|
|
8988
8994
|
key: n.id,
|
|
8989
8995
|
class: S(["flow-agent-node-item", {
|
|
8990
|
-
"is-selected":
|
|
8991
|
-
"is-pending":
|
|
8996
|
+
"is-selected": z(x)(t.raw, n.raw),
|
|
8997
|
+
"is-pending": z(O)(t, n)
|
|
8992
8998
|
}])
|
|
8993
8999
|
}, [
|
|
8994
|
-
l("span", jm, [n.convergedState === "running" ? (k(), o(
|
|
9000
|
+
l("span", jm, [n.convergedState === "running" ? (k(), o(z(me), {
|
|
8995
9001
|
key: 0,
|
|
8996
9002
|
mode: "spin",
|
|
8997
9003
|
size: "mini",
|
|
@@ -9001,26 +9007,26 @@ var Bd = ["src"], Vd = {
|
|
|
9001
9007
|
class: "flow-agent-status-dot",
|
|
9002
9008
|
style: w({ borderColor: n.dotColor })
|
|
9003
9009
|
}, null, 4))]),
|
|
9004
|
-
|
|
9010
|
+
U((k(), c("span", {
|
|
9005
9011
|
class: "flow-agent-node-name",
|
|
9006
9012
|
title: n.name
|
|
9007
|
-
}, [f(
|
|
9008
|
-
l("span", Nm, [l("span", Pm,
|
|
9013
|
+
}, [f(z(Tp), { text: n.name }, null, 8, ["text"])], 8, Mm)), [[z(vi), X({}, z(r))]]),
|
|
9014
|
+
l("span", Nm, [l("span", Pm, L(n.elapsedTimeText), 1), l("span", Fm, [(k(!0), c(e, null, N(z(D)(t, n), (e) => U((k(), c("span", {
|
|
9009
9015
|
key: e.id,
|
|
9010
9016
|
class: S(["flow-agent-node-action-btn", { "is-disabled": e.disabled }]),
|
|
9011
|
-
onClick:
|
|
9012
|
-
}, [e.loading ? (k(), o(
|
|
9017
|
+
onClick: le((t) => A(e), ["stop"])
|
|
9018
|
+
}, [e.loading ? (k(), o(z(me), {
|
|
9013
9019
|
key: 0,
|
|
9014
9020
|
class: "flow-agent-node-action-loading",
|
|
9015
9021
|
mode: "spin",
|
|
9016
9022
|
size: "mini",
|
|
9017
9023
|
theme: "primary"
|
|
9018
|
-
})) : (k(), o(
|
|
9024
|
+
})) : (k(), o(F(e.icon), { key: 1 })), d(" " + L(e.label), 1)], 10, Im)), [[z(Se), e.tooltip ? X(X({}, z(r)), {}, {
|
|
9019
9025
|
content: e.tooltip,
|
|
9020
9026
|
theme: "ai-chat-box",
|
|
9021
9027
|
offset: [0, 8]
|
|
9022
9028
|
}) : { content: "" }]])), 128))])])
|
|
9023
|
-
], 2))), 128))], 512), [[
|
|
9029
|
+
], 2))), 128))], 512), [[ae, z(h)(t.raw)]])]);
|
|
9024
9030
|
}), 128))]),
|
|
9025
9031
|
_: 1
|
|
9026
9032
|
}, 8, ["collapsed", "activity-type"]));
|
|
@@ -9037,16 +9043,16 @@ var Bd = ["src"], Vd = {
|
|
|
9037
9043
|
}),
|
|
9038
9044
|
emits: ["update:collapsed"],
|
|
9039
9045
|
setup(e) {
|
|
9040
|
-
let t = e, n =
|
|
9046
|
+
let t = e, n = re(e, "collapsed"), r = a(() => t.status === J.Pending || t.status === J.Streaming), i = a(() => r.value ? G("检索中") : G("检索完成"));
|
|
9041
9047
|
return (t, a) => (k(), o(Op, {
|
|
9042
9048
|
collapsed: n.value,
|
|
9043
9049
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
9044
9050
|
}, {
|
|
9045
|
-
title:
|
|
9051
|
+
title: H(() => [l("span", Rm, [r.value ? (k(), o(lr, { key: 0 })) : (k(), o(z(Kt), {
|
|
9046
9052
|
key: 1,
|
|
9047
9053
|
style: { "font-size": "12px" }
|
|
9048
|
-
}))]), l("span", zm,
|
|
9049
|
-
default:
|
|
9054
|
+
}))]), l("span", zm, L(i.value), 1)]),
|
|
9055
|
+
default: H(() => {
|
|
9050
9056
|
var t, n;
|
|
9051
9057
|
return [l("div", Bm, [f(Ml, { content: ((t = e.content) == null ? void 0 : t.content) || "" }, null, 8, ["content"])]), f(Pl, { content: ((n = e.content) == null ? void 0 : n.referenceDocument) || [] }, null, 8, ["content"])];
|
|
9052
9058
|
}),
|
|
@@ -9064,7 +9070,7 @@ var Bd = ["src"], Vd = {
|
|
|
9064
9070
|
}),
|
|
9065
9071
|
emits: ["update:collapsed"],
|
|
9066
9072
|
setup(e) {
|
|
9067
|
-
let t = e, n =
|
|
9073
|
+
let t = e, n = re(e, "collapsed"), r = a(() => {
|
|
9068
9074
|
var e, n;
|
|
9069
9075
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
9070
9076
|
return mt ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
@@ -9073,8 +9079,8 @@ var Bd = ["src"], Vd = {
|
|
|
9073
9079
|
collapsed: n.value,
|
|
9074
9080
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
9075
9081
|
}, {
|
|
9076
|
-
title:
|
|
9077
|
-
default:
|
|
9082
|
+
title: H(() => [l("span", Hm, [f(z(Kt), { style: { "font-size": "12px" } })]), l("span", Um, L(r.value), 1)]),
|
|
9083
|
+
default: H(() => [f(Pl, { content: e.content || [] }, null, 8, ["content"])]),
|
|
9078
9084
|
_: 1
|
|
9079
9085
|
}, 8, ["collapsed"]));
|
|
9080
9086
|
}
|
|
@@ -9101,11 +9107,11 @@ var Bd = ["src"], Vd = {
|
|
|
9101
9107
|
[_t.FlowAgent]: Lm,
|
|
9102
9108
|
[_t.KnowledgeRag]: Vm,
|
|
9103
9109
|
[_t.ReferenceDocument]: Wm
|
|
9104
|
-
}, n = e, r =
|
|
9110
|
+
}, n = e, r = re(e, "collapsed"), i = a(() => {
|
|
9105
9111
|
var e;
|
|
9106
9112
|
return t[(e = n.activityType) == null ? "" : e];
|
|
9107
9113
|
});
|
|
9108
|
-
return (t, n) => i.value ? (k(), o(
|
|
9114
|
+
return (t, n) => i.value ? (k(), o(F(i.value), {
|
|
9109
9115
|
key: 0,
|
|
9110
9116
|
collapsed: r.value,
|
|
9111
9117
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => r.value = e),
|
|
@@ -9135,13 +9141,13 @@ var Bd = ["src"], Vd = {
|
|
|
9135
9141
|
return n.desc;
|
|
9136
9142
|
}
|
|
9137
9143
|
});
|
|
9138
|
-
return (n, a) => (k(), c("div", Km, [l("div", qm,
|
|
9144
|
+
return (n, a) => (k(), c("div", Km, [l("div", qm, L(t.title), 1), l("div", Jm, [i.value !== null && typeof i.value == "object" ? (k(!0), c(e, { key: 0 }, N(i.value, (e, t) => (k(), c("div", {
|
|
9139
9145
|
key: t,
|
|
9140
9146
|
class: "desc-panel-item"
|
|
9141
|
-
}, [l("span", Ym, [f(
|
|
9147
|
+
}, [l("span", Ym, [f(z(Tp), { text: String(t) }, null, 8, ["text"]), a[0] || (a[0] = d(":", -1))]), l("span", Xm, [f(z(Tp), {
|
|
9142
9148
|
style: { "word-break": "break-all" },
|
|
9143
9149
|
text: r(e)
|
|
9144
|
-
}, null, 8, ["text"])])]))), 128)) : (k(), o(
|
|
9150
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(z(Tp), {
|
|
9145
9151
|
key: 1,
|
|
9146
9152
|
style: { wordBreak: "break-all" },
|
|
9147
9153
|
text: r(i.value)
|
|
@@ -9165,7 +9171,7 @@ var Bd = ["src"], Vd = {
|
|
|
9165
9171
|
setup(e) {
|
|
9166
9172
|
return (t, n) => (k(), c("div", Qm, [f(Zm, {
|
|
9167
9173
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
9168
|
-
title:
|
|
9174
|
+
title: z(G)("返回内容")
|
|
9169
9175
|
}, null, 8, ["desc", "title"])]));
|
|
9170
9176
|
}
|
|
9171
9177
|
}), eh = { class: "ai-toolcall-render" }, th = { class: "toolcall-header-title" }, nh = { class: "toolcall-status-title" }, rh = {
|
|
@@ -9179,7 +9185,7 @@ var Bd = ["src"], Vd = {
|
|
|
9179
9185
|
toolCall: {}
|
|
9180
9186
|
},
|
|
9181
9187
|
setup(e) {
|
|
9182
|
-
let t = e, n =
|
|
9188
|
+
let t = e, n = I(!0), r = I(null), i = hi(), { keywordMatched: u, keyword: p } = gi(() => {
|
|
9183
9189
|
var e, n, r, i, a;
|
|
9184
9190
|
return [
|
|
9185
9191
|
(e = t.toolCall) == null ? void 0 : e.function.name,
|
|
@@ -9219,33 +9225,33 @@ var Bd = ["src"], Vd = {
|
|
|
9219
9225
|
class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
9220
9226
|
onClick: h
|
|
9221
9227
|
}, [
|
|
9222
|
-
f(
|
|
9223
|
-
d(" " +
|
|
9224
|
-
|
|
9228
|
+
f(z(Xt), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
|
|
9229
|
+
d(" " + L((r = e.toolCall) != null && r.function.mcpName ? z(G)("调用 MCP:") : z(G)("调用工具:")) + " ", 1),
|
|
9230
|
+
U((k(), c("span", th, [f(z(Tp), { text: g.value }, null, 8, ["text"])])), [[z(vi), X(X({}, z(i)), {}, {
|
|
9225
9231
|
text: g.value,
|
|
9226
9232
|
appendTo: "parent"
|
|
9227
9233
|
})]]),
|
|
9228
9234
|
l("span", nh, [
|
|
9229
|
-
e.status ===
|
|
9235
|
+
e.status === z(J).Pending || e.status === z(J).Streaming ? (k(), o(z(me), {
|
|
9230
9236
|
key: 0,
|
|
9231
9237
|
mode: "spin",
|
|
9232
9238
|
size: "mini",
|
|
9233
9239
|
theme: "primary"
|
|
9234
9240
|
})) : s("", !0),
|
|
9235
|
-
f(
|
|
9236
|
-
v.value ? (k(), c("span", rh, " (" +
|
|
9241
|
+
f(z(Tp), { text: _.value }, null, 8, ["text"]),
|
|
9242
|
+
v.value ? (k(), c("span", rh, " (" + L(v.value) + ") ", 1)) : s("", !0)
|
|
9237
9243
|
])
|
|
9238
|
-
], 2),
|
|
9244
|
+
], 2), U(l("div", ih, [
|
|
9239
9245
|
f(Zm, {
|
|
9240
9246
|
desc: (a = e.toolCall) == null ? void 0 : a.function.description,
|
|
9241
|
-
title:
|
|
9247
|
+
title: z(G)("描述")
|
|
9242
9248
|
}, null, 8, ["desc", "title"]),
|
|
9243
9249
|
f(Zm, {
|
|
9244
9250
|
desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
|
|
9245
|
-
title:
|
|
9251
|
+
title: z(G)("参数")
|
|
9246
9252
|
}, null, 8, ["desc", "title"]),
|
|
9247
9253
|
(p = e.toolCall) != null && p.toolMessage ? (k(), o($m, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
9248
|
-
], 512), [[
|
|
9254
|
+
], 512), [[ae, !m.value]])]);
|
|
9249
9255
|
};
|
|
9250
9256
|
}
|
|
9251
9257
|
}), oh = { class: "ai-assistant-message" }, sh = {
|
|
@@ -9265,15 +9271,15 @@ var Bd = ["src"], Vd = {
|
|
|
9265
9271
|
property: {}
|
|
9266
9272
|
},
|
|
9267
9273
|
setup(t) {
|
|
9268
|
-
return (n, r) => (k(), c("div", oh, [t.content ? (k(), c("div", sh, [
|
|
9274
|
+
return (n, r) => (k(), c("div", oh, [t.content ? (k(), c("div", sh, [P(n.$slots, "default", C(h({ content: t.content })), () => [f(Fl, {
|
|
9269
9275
|
content: t.content || "",
|
|
9270
9276
|
status: t.status,
|
|
9271
|
-
type:
|
|
9277
|
+
type: z(_t).Text
|
|
9272
9278
|
}, null, 8, [
|
|
9273
9279
|
"content",
|
|
9274
9280
|
"status",
|
|
9275
9281
|
"type"
|
|
9276
|
-
])])])) : s("", !0), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 1 },
|
|
9282
|
+
])])])) : s("", !0), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 1 }, N(t.toolCalls, (e) => {
|
|
9277
9283
|
var n, r;
|
|
9278
9284
|
return k(), o(ah, {
|
|
9279
9285
|
key: e.id,
|
|
@@ -9295,12 +9301,15 @@ var Bd = ["src"], Vd = {
|
|
|
9295
9301
|
property: {}
|
|
9296
9302
|
},
|
|
9297
9303
|
setup(t) {
|
|
9298
|
-
return (n, r) => (k(), c("div", lh, [(k(!0), c(e, null,
|
|
9304
|
+
return (n, r) => (k(), c("div", lh, [(k(!0), c(e, null, N(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
|
|
9299
9305
|
key: t,
|
|
9300
9306
|
class: "info-message-content"
|
|
9301
|
-
},
|
|
9307
|
+
}, L(e), 1))), 128))]));
|
|
9302
9308
|
}
|
|
9303
|
-
}), dh = { class: "ai-tool-approval-card" }, fh = { class: "ai-tool-approval-card__header" }, ph = { class: "ai-tool-approval-card__title-wrap" }, mh = { class: "ai-tool-approval-card__title" }, hh = { class: "ai-tool-approval-card__fields" }, gh = { class: "ai-tool-approval-card__field" }, _h = { class: "ai-tool-approval-card__field" }, vh = { class: "ai-tool-approval-card__processor" }, yh = { class: "ai-tool-approval-card__processor-text" }, bh = { class: "ai-tool-approval-card__actions" }, xh =
|
|
9309
|
+
}), dh = { class: "ai-tool-approval-card" }, fh = { class: "ai-tool-approval-card__header" }, ph = { class: "ai-tool-approval-card__title-wrap" }, mh = { class: "ai-tool-approval-card__title" }, hh = { class: "ai-tool-approval-card__fields" }, gh = { class: "ai-tool-approval-card__field" }, _h = { class: "ai-tool-approval-card__field" }, vh = { class: "ai-tool-approval-card__processor" }, yh = { class: "ai-tool-approval-card__processor-text" }, bh = { class: "ai-tool-approval-card__actions" }, xh = {
|
|
9310
|
+
key: 1,
|
|
9311
|
+
class: "ai-tool-approval-card__cancel-wrap"
|
|
9312
|
+
}, Sh = 2e3, Ch = /* @__PURE__ */ m({
|
|
9304
9313
|
__name: "tool-approval-card",
|
|
9305
9314
|
props: {
|
|
9306
9315
|
interrupt: {},
|
|
@@ -9323,79 +9332,117 @@ var Bd = ["src"], Vd = {
|
|
|
9323
9332
|
title: "",
|
|
9324
9333
|
url: ""
|
|
9325
9334
|
} : e;
|
|
9326
|
-
}), g =
|
|
9335
|
+
}), g = new Set([K.CANCELLED, K.REVOKED]), _ = {
|
|
9336
|
+
[K.APPROVED]: G("该单据已通过,无法取消"),
|
|
9337
|
+
[K.CANCELLED]: G("单据已取消,无需重复点击"),
|
|
9338
|
+
[K.REJECTED]: G("该单据已被拒绝,无法取消"),
|
|
9339
|
+
[K.REVOKED]: G("单据已取消,无需重复点击")
|
|
9340
|
+
}, v = a(() => p.has(h.value.status)), y = a(() => v.value ? "pending" : h.value.status), b = a(() => {
|
|
9341
|
+
var e;
|
|
9342
|
+
return v.value ? G("评审中") : (e = vt[h.value.status]) == null ? h.value.status : e;
|
|
9343
|
+
}), x = a(() => h.value.approvers.filter(Boolean).join("、") || G("无")), C = a(() => h.value.url || h.value.sn), w = a(() => g.has(h.value.status) ? G("已取消审批") : G("取消审批")), T = a(() => {
|
|
9327
9344
|
var e;
|
|
9328
|
-
return
|
|
9329
|
-
}),
|
|
9345
|
+
return (e = _[h.value.status]) == null ? G("当前状态无法取消审批") : e;
|
|
9346
|
+
}), E = () => {
|
|
9330
9347
|
h.value.url && window.open(h.value.url, "_blank", "noopener");
|
|
9331
|
-
},
|
|
9332
|
-
|
|
9333
|
-
},
|
|
9348
|
+
}, D = () => {
|
|
9349
|
+
C.value && u(C.value);
|
|
9350
|
+
}, A = I(!1), j = I(!1), M, ee = () => {
|
|
9351
|
+
j.value = !0, clearTimeout(M), M = setTimeout(() => {
|
|
9352
|
+
j.value = !1;
|
|
9353
|
+
}, Sh);
|
|
9354
|
+
}, N = () => {
|
|
9334
9355
|
var e;
|
|
9335
|
-
|
|
9356
|
+
A.value || (A.value = !0, ee(), (e = t.onInterruptResume) == null || e.call(t, {
|
|
9336
9357
|
operation: yt.ApprovalCancel,
|
|
9337
9358
|
payload: { interrupt_id: t.interrupt.id }
|
|
9338
9359
|
}, t.interrupt));
|
|
9360
|
+
}, P = () => {
|
|
9361
|
+
var e;
|
|
9362
|
+
j.value || i.value || (ee(), (e = t.onInterruptResume) == null || e.call(t, {
|
|
9363
|
+
operation: yt.ApprovalRefresh,
|
|
9364
|
+
payload: { interrupt_id: t.interrupt.id }
|
|
9365
|
+
}, t.interrupt));
|
|
9339
9366
|
};
|
|
9340
|
-
return (t, r) => (k(), c("section", dh, [
|
|
9367
|
+
return O(() => clearTimeout(M)), (t, r) => (k(), c("section", dh, [
|
|
9341
9368
|
l("header", fh, [l("div", ph, [
|
|
9342
9369
|
r[0] || (r[0] = l("span", { class: "ai-tool-approval-card__title-bar" }, null, -1)),
|
|
9343
|
-
l("span", mh,
|
|
9344
|
-
|
|
9345
|
-
class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !
|
|
9346
|
-
onClick:
|
|
9347
|
-
}, null, 8, ["class"]), [[
|
|
9348
|
-
content:
|
|
9370
|
+
l("span", mh, L(h.value.title || z(G)("算法方案评审单")), 1),
|
|
9371
|
+
U(f(z(Wn), {
|
|
9372
|
+
class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !C.value }]),
|
|
9373
|
+
onClick: D
|
|
9374
|
+
}, null, 8, ["class"]), [[z(Se), X(X({}, z(n)), {}, {
|
|
9375
|
+
content: z(G)("复制单据链接"),
|
|
9349
9376
|
theme: "ai-chat-box",
|
|
9350
9377
|
offset: [0, 8]
|
|
9351
|
-
})]])
|
|
9352
|
-
|
|
9378
|
+
})]]),
|
|
9379
|
+
v.value && !e.readonly ? U((k(), o(z(Kn), {
|
|
9380
|
+
key: 0,
|
|
9381
|
+
class: S(["ai-tool-approval-card__refresh-icon", { "is-disabled": j.value || i.value }]),
|
|
9382
|
+
onClick: P
|
|
9383
|
+
}, null, 8, ["class"])), [[z(Se), X(X({}, z(n)), {}, {
|
|
9384
|
+
content: z(G)("刷新单据状态"),
|
|
9385
|
+
theme: "ai-chat-box",
|
|
9386
|
+
offset: [0, 8]
|
|
9387
|
+
})]]) : s("", !0)
|
|
9388
|
+
]), l("span", { class: S(["ai-tool-approval-card__status", `ai-tool-approval-card__status--${y.value}`]) }, [h.value.status === z(K).APPROVED ? (k(), o(z(Cn), {
|
|
9353
9389
|
key: 0,
|
|
9354
9390
|
class: "ai-tool-approval-card__status-icon"
|
|
9355
|
-
})) :
|
|
9391
|
+
})) : z(m).has(h.value.status) ? (k(), o(z(Tn), {
|
|
9356
9392
|
key: 1,
|
|
9357
9393
|
class: "ai-tool-approval-card__status-icon"
|
|
9358
|
-
})) : h.value.status ===
|
|
9394
|
+
})) : h.value.status === z(K).REVOKED ? (k(), o(z(En), {
|
|
9359
9395
|
key: 2,
|
|
9360
|
-
class: S(["ai-tool-approval-card__status-icon", { "ai-tool-approval-card__status-icon--revoked": h.value.status ===
|
|
9361
|
-
}, null, 8, ["class"])) : (k(), o(
|
|
9396
|
+
class: S(["ai-tool-approval-card__status-icon", { "ai-tool-approval-card__status-icon--revoked": h.value.status === z(K).REVOKED }])
|
|
9397
|
+
}, null, 8, ["class"])) : (k(), o(z(me), {
|
|
9362
9398
|
key: 3,
|
|
9363
9399
|
class: "ai-tool-approval-card__status-icon",
|
|
9364
9400
|
mode: "spin",
|
|
9365
9401
|
size: "mini",
|
|
9366
9402
|
theme: "primary"
|
|
9367
|
-
})), d(" " +
|
|
9368
|
-
l("dl", hh, [l("div", gh, [l("dt", null,
|
|
9369
|
-
l("div", vh, [f(
|
|
9370
|
-
l("div", bh, [f(
|
|
9403
|
+
})), d(" " + L(b.value), 1)], 2)]),
|
|
9404
|
+
l("dl", hh, [l("div", gh, [l("dt", null, L(z(G)("单据编号")), 1), l("dd", null, L(h.value.sn || "--"), 1)]), l("div", _h, [l("dt", null, L(z(G)("提交时间")), 1), l("dd", null, L(h.value.submit_time || "--"), 1)])]),
|
|
9405
|
+
l("div", vh, [f(z(wn), { class: "ai-tool-approval-card__processor-icon" }), U((k(), c("span", yh, [d(L(z(G)("当前处理人")) + ":" + L(x.value), 1)])), [[z(vi), X({}, z(n))]])]),
|
|
9406
|
+
l("div", bh, [f(z(W), {
|
|
9371
9407
|
class: "ai-tool-approval-card__detail",
|
|
9372
9408
|
disabled: !h.value.url,
|
|
9373
9409
|
theme: "primary",
|
|
9374
|
-
onClick:
|
|
9410
|
+
onClick: E
|
|
9375
9411
|
}, {
|
|
9376
|
-
default:
|
|
9412
|
+
default: H(() => [d(L(z(G)("查看单据详情")) + " ", 1), f(z(mn), { class: "ai-tool-approval-card__detail-icon" })]),
|
|
9377
9413
|
_: 1
|
|
9378
|
-
}, 8, ["disabled"]),
|
|
9414
|
+
}, 8, ["disabled"]), v.value && !e.readonly ? (k(), o(z(W), {
|
|
9379
9415
|
key: 0,
|
|
9380
9416
|
class: "ai-tool-approval-card__cancel",
|
|
9381
|
-
disabled:
|
|
9382
|
-
loading:
|
|
9417
|
+
disabled: A.value || i.value,
|
|
9418
|
+
loading: A.value,
|
|
9383
9419
|
outline: "",
|
|
9384
9420
|
theme: "primary",
|
|
9385
|
-
onClick:
|
|
9421
|
+
onClick: N
|
|
9422
|
+
}, {
|
|
9423
|
+
default: H(() => [d(L(z(G)("取消审批")), 1)]),
|
|
9424
|
+
_: 1
|
|
9425
|
+
}, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) : U((k(), c("span", xh, [f(z(W), {
|
|
9426
|
+
class: "ai-tool-approval-card__cancel",
|
|
9427
|
+
disabled: "",
|
|
9428
|
+
outline: ""
|
|
9386
9429
|
}, {
|
|
9387
|
-
default:
|
|
9430
|
+
default: H(() => [d(L(w.value), 1)]),
|
|
9388
9431
|
_: 1
|
|
9389
|
-
},
|
|
9432
|
+
})])), [[z(Se), X(X({}, z(n)), {}, {
|
|
9433
|
+
content: T.value,
|
|
9434
|
+
theme: "ai-chat-box",
|
|
9435
|
+
offset: [0, 8]
|
|
9436
|
+
})]])])
|
|
9390
9437
|
]));
|
|
9391
9438
|
}
|
|
9392
|
-
}),
|
|
9439
|
+
}), wh = { class: "ai-interrupt-message" }, Th = {
|
|
9393
9440
|
key: 0,
|
|
9394
9441
|
class: "ai-interrupt-message__content"
|
|
9395
|
-
},
|
|
9442
|
+
}, Eh = {
|
|
9396
9443
|
key: 1,
|
|
9397
9444
|
class: "ai-interrupt-message__fallback"
|
|
9398
|
-
},
|
|
9445
|
+
}, Dh = /* @__PURE__ */ m({
|
|
9399
9446
|
__name: "interrupt-message",
|
|
9400
9447
|
props: {
|
|
9401
9448
|
content: {},
|
|
@@ -9409,14 +9456,14 @@ var Bd = ["src"], Vd = {
|
|
|
9409
9456
|
onInterruptResume: { type: Function }
|
|
9410
9457
|
},
|
|
9411
9458
|
setup(t) {
|
|
9412
|
-
let n = { [gt.AIDevToolApproval]:
|
|
9459
|
+
let n = { [gt.AIDevToolApproval]: Ch }, r = (e) => ({
|
|
9413
9460
|
id: e.interruptId || e.id || "",
|
|
9414
9461
|
reason: gt.AIDevToolApproval,
|
|
9415
9462
|
toolCallId: "",
|
|
9416
9463
|
metadata: e.payload.metadata
|
|
9417
9464
|
}), i = {
|
|
9418
9465
|
[gt.AIDevToolApproval]: (e) => ({
|
|
9419
|
-
component:
|
|
9466
|
+
component: Ch,
|
|
9420
9467
|
props: {
|
|
9421
9468
|
interrupt: r(e),
|
|
9422
9469
|
readonly: !0
|
|
@@ -9444,29 +9491,29 @@ var Bd = ["src"], Vd = {
|
|
|
9444
9491
|
let r = (t = d.content) == null ? void 0 : t.result;
|
|
9445
9492
|
if (r) return (n = i[r.reason]) == null ? void 0 : n.call(i, r);
|
|
9446
9493
|
});
|
|
9447
|
-
return (n, r) => (k(), c("div",
|
|
9448
|
-
p.value ? (k(), c("div",
|
|
9449
|
-
(k(!0), c(e, null,
|
|
9494
|
+
return (n, r) => (k(), c("div", wh, [
|
|
9495
|
+
p.value ? (k(), c("div", Th, L(p.value), 1)) : s("", !0),
|
|
9496
|
+
(k(!0), c(e, null, N(f.value, (n) => (k(), c(e, { key: n.toolCallId }, [m(n) ? (k(), o(F(m(n)), {
|
|
9450
9497
|
key: 0,
|
|
9451
9498
|
interrupt: n,
|
|
9452
9499
|
"on-interrupt-resume": t.onInterruptResume
|
|
9453
|
-
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div",
|
|
9454
|
-
_.value ? (k(), o(
|
|
9500
|
+
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div", Eh, L(n.message || z(G)("暂不支持的中断消息")), 1))], 64))), 128)),
|
|
9501
|
+
_.value ? (k(), o(F(_.value.component), C(b({ key: 1 }, _.value.props)), u({ _: 2 }, [n.$slots.answeredQuestion ? {
|
|
9455
9502
|
name: "answer",
|
|
9456
|
-
fn:
|
|
9503
|
+
fn: H((e) => [P(n.$slots, "answeredQuestion", C(h(e)))]),
|
|
9457
9504
|
key: "0"
|
|
9458
9505
|
} : void 0]), 1040)) : s("", !0)
|
|
9459
9506
|
]));
|
|
9460
9507
|
}
|
|
9461
|
-
}),
|
|
9508
|
+
}), Oh = { class: "ai-loading-message" }, kh = /* @__PURE__ */ m({
|
|
9462
9509
|
__name: "loading-message",
|
|
9463
9510
|
setup(e) {
|
|
9464
|
-
return (e, t) => (k(), c("div",
|
|
9511
|
+
return (e, t) => (k(), c("div", Oh, [f(lr, { size: 18 }), P(e.$slots, "default", {}, () => [d(L(z(G)("请求中...")), 1)])]));
|
|
9465
9512
|
}
|
|
9466
|
-
}),
|
|
9513
|
+
}), Ah = { class: "ai-reasoning-message" }, jh = {
|
|
9467
9514
|
key: 0,
|
|
9468
9515
|
class: "ai-reasoning-message-title-icon"
|
|
9469
|
-
},
|
|
9516
|
+
}, Mh = { class: "ai-reasoning-message-title-text" }, Nh = { class: "ai-reasoning-message-content" }, Ph = /* @__PURE__ */ m({
|
|
9470
9517
|
__name: "reasoning-message",
|
|
9471
9518
|
props: /* @__PURE__ */ y({
|
|
9472
9519
|
duration: {},
|
|
@@ -9484,7 +9531,7 @@ var Bd = ["src"], Vd = {
|
|
|
9484
9531
|
}),
|
|
9485
9532
|
emits: ["update:collapsed"],
|
|
9486
9533
|
setup(t) {
|
|
9487
|
-
let n = t, r =
|
|
9534
|
+
let n = t, r = re(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
9488
9535
|
var e = Z(function* (e) {
|
|
9489
9536
|
e && (r.value = !0, yield x(), i == null || i());
|
|
9490
9537
|
});
|
|
@@ -9502,59 +9549,59 @@ var Bd = ["src"], Vd = {
|
|
|
9502
9549
|
});
|
|
9503
9550
|
return (n, i) => {
|
|
9504
9551
|
var a;
|
|
9505
|
-
return k(), c("div",
|
|
9552
|
+
return k(), c("div", Ah, [l("div", {
|
|
9506
9553
|
class: S(["ai-reasoning-message-title", {
|
|
9507
9554
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
9508
|
-
"is-thinking": t.status ===
|
|
9509
|
-
"is-complete": t.status ===
|
|
9510
|
-
"is-error": t.status ===
|
|
9555
|
+
"is-thinking": t.status === z(J).Pending || t.status === z(J).Streaming,
|
|
9556
|
+
"is-complete": t.status === z(J).Complete || t.status === z(J).Success,
|
|
9557
|
+
"is-error": t.status === z(J).Error
|
|
9511
9558
|
}]),
|
|
9512
9559
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
9513
9560
|
}, [
|
|
9514
|
-
t.status ===
|
|
9515
|
-
l("span",
|
|
9516
|
-
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(
|
|
9517
|
-
], 2),
|
|
9561
|
+
t.status === z(J).Pending || t.status === z(J).Streaming ? (k(), c("span", jh, [f(lr)])) : s("", !0),
|
|
9562
|
+
l("span", Mh, L(u.value), 1),
|
|
9563
|
+
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(z(Pn))], 2)
|
|
9564
|
+
], 2), U(l("div", Nh, [t.status === z(J).Error ? (k(), o(pl, {
|
|
9518
9565
|
key: 0,
|
|
9519
9566
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
9520
|
-
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 },
|
|
9567
|
+
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, N(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(Ml, {
|
|
9521
9568
|
key: e,
|
|
9522
9569
|
content: e
|
|
9523
|
-
}, null, 8, ["content"]))), 128))], 512), [[
|
|
9570
|
+
}, null, 8, ["content"]))), 128))], 512), [[ae, !r.value]])]);
|
|
9524
9571
|
};
|
|
9525
9572
|
}
|
|
9526
|
-
}),
|
|
9573
|
+
}), Fh = { class: "ai-key-value-content" }, Ih = {
|
|
9527
9574
|
key: 0,
|
|
9528
9575
|
class: "ai-key-value-title"
|
|
9529
|
-
},
|
|
9576
|
+
}, Lh = { class: "ai-key-value-content" }, Rh = { class: "item-key" }, zh = { class: "item-value" }, Bh = /* @__PURE__ */ m({
|
|
9530
9577
|
__name: "key-value-content",
|
|
9531
9578
|
props: {
|
|
9532
9579
|
content: {},
|
|
9533
9580
|
title: {}
|
|
9534
9581
|
},
|
|
9535
9582
|
setup(t) {
|
|
9536
|
-
return (n, r) => (k(), c("div",
|
|
9583
|
+
return (n, r) => (k(), c("div", Fh, [t.title ? (k(), c("div", Ih, [f(z(Nn)), d(" " + L(t.title), 1)])) : s("", !0), l("div", Lh, [(k(!0), c(e, null, N(t.content, (e) => (k(), c("div", {
|
|
9537
9584
|
key: e.key,
|
|
9538
9585
|
class: "key-value-item"
|
|
9539
9586
|
}, [
|
|
9540
|
-
l("div",
|
|
9587
|
+
l("div", Rh, L(e.key), 1),
|
|
9541
9588
|
r[0] || (r[0] = d(" : ", -1)),
|
|
9542
|
-
l("div",
|
|
9589
|
+
l("div", zh, L(e.value), 1)
|
|
9543
9590
|
]))), 128))])]));
|
|
9544
9591
|
}
|
|
9545
|
-
}),
|
|
9592
|
+
}), Vh = { class: "text-content" }, Hh = /* @__PURE__ */ m({
|
|
9546
9593
|
__name: "text-content",
|
|
9547
9594
|
props: { content: {} },
|
|
9548
9595
|
setup(e) {
|
|
9549
|
-
return (t, n) => (k(), c("div",
|
|
9596
|
+
return (t, n) => (k(), c("div", Vh, L(e.content), 1));
|
|
9550
9597
|
}
|
|
9551
|
-
}),
|
|
9598
|
+
}), Uh = { class: "ai-user-message" }, Wh = {
|
|
9552
9599
|
key: 0,
|
|
9553
9600
|
class: "ai-user-message-binary-files"
|
|
9554
|
-
},
|
|
9601
|
+
}, Gh = {
|
|
9555
9602
|
key: 1,
|
|
9556
9603
|
class: "ai-user-message-content"
|
|
9557
|
-
},
|
|
9604
|
+
}, Kh = { class: "user-edit-footer" }, qh = /* @__PURE__ */ m({
|
|
9558
9605
|
__name: "user-message",
|
|
9559
9606
|
props: {
|
|
9560
9607
|
content: {},
|
|
@@ -9572,7 +9619,7 @@ var Bd = ["src"], Vd = {
|
|
|
9572
9619
|
onShortcutConfirm: { type: Function }
|
|
9573
9620
|
},
|
|
9574
9621
|
setup(t) {
|
|
9575
|
-
let n = t, r = Yr(), { copy: i } = Pr(), u =
|
|
9622
|
+
let n = t, r = Yr(), { copy: i } = Pr(), u = I(!1), p = I(""), m = B("chatInputRef"), h = a(() => {
|
|
9576
9623
|
var e;
|
|
9577
9624
|
let t = (e = n.property) == null || (e = e.extra) == null ? void 0 : e.cite;
|
|
9578
9625
|
if (!(!t || typeof t == "string")) return t.title;
|
|
@@ -9660,7 +9707,7 @@ var Bd = ["src"], Vd = {
|
|
|
9660
9707
|
}();
|
|
9661
9708
|
return (n, i) => {
|
|
9662
9709
|
var a, v;
|
|
9663
|
-
return k(), c("div",
|
|
9710
|
+
return k(), c("div", Uh, [g.value && typeof g.value == "string" ? (k(), o(Cd, {
|
|
9664
9711
|
key: 0,
|
|
9665
9712
|
class: "ai-user-message-cite",
|
|
9666
9713
|
content: g.value
|
|
@@ -9677,20 +9724,20 @@ var Bd = ["src"], Vd = {
|
|
|
9677
9724
|
class: "user-edit-input",
|
|
9678
9725
|
"default-upload-files": y.value,
|
|
9679
9726
|
"on-send-message": A,
|
|
9680
|
-
"support-upload": (a = (v =
|
|
9727
|
+
"support-upload": (a = (v = z(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
|
|
9681
9728
|
}, {
|
|
9682
|
-
"send-icon":
|
|
9729
|
+
"send-icon": H(() => [l("div", Kh, [f(z(W), {
|
|
9683
9730
|
size: "small",
|
|
9684
9731
|
onClick: E
|
|
9685
9732
|
}, {
|
|
9686
|
-
default:
|
|
9733
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
9687
9734
|
_: 1
|
|
9688
|
-
}), f(
|
|
9735
|
+
}), f(z(W), {
|
|
9689
9736
|
size: "small",
|
|
9690
9737
|
theme: "primary",
|
|
9691
9738
|
onClick: T
|
|
9692
9739
|
}, {
|
|
9693
|
-
default:
|
|
9740
|
+
default: H(() => [d(L(z(G)("发送")), 1)]),
|
|
9694
9741
|
_: 1
|
|
9695
9742
|
})])]),
|
|
9696
9743
|
_: 1
|
|
@@ -9699,10 +9746,10 @@ var Bd = ["src"], Vd = {
|
|
|
9699
9746
|
"default-upload-files",
|
|
9700
9747
|
"support-upload"
|
|
9701
9748
|
]))], 64)) : (k(), c(e, { key: 1 }, [
|
|
9702
|
-
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div",
|
|
9749
|
+
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", Wh, [f(ef, {
|
|
9703
9750
|
files: x.value,
|
|
9704
9751
|
readonly: !0
|
|
9705
|
-
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null,
|
|
9752
|
+
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null, N(S.value, (e, t) => {
|
|
9706
9753
|
var n;
|
|
9707
9754
|
return k(), c("div", {
|
|
9708
9755
|
key: (n = e.url) == null ? t : n,
|
|
@@ -9712,18 +9759,18 @@ var Bd = ["src"], Vd = {
|
|
|
9712
9759
|
readonly: !0
|
|
9713
9760
|
}, null, 8, ["files"])]);
|
|
9714
9761
|
}), 128))], 64)) : s("", !0),
|
|
9715
|
-
g.value || C.value.length ? (k(), c("div",
|
|
9762
|
+
g.value || C.value.length ? (k(), c("div", Gh, [Array.isArray(g.value) ? (k(), o(Bh, {
|
|
9716
9763
|
key: 0,
|
|
9717
9764
|
content: g.value,
|
|
9718
9765
|
title: h.value
|
|
9719
|
-
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 },
|
|
9766
|
+
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, N(C.value, (e, t) => (k(), o(Hh, {
|
|
9720
9767
|
key: t,
|
|
9721
9768
|
content: e
|
|
9722
9769
|
}, null, 8, ["content"]))), 128)) : s("", !0)])) : s("", !0),
|
|
9723
|
-
t.messageToolsStatus ===
|
|
9770
|
+
t.messageToolsStatus === z(_d).Hidden ? s("", !0) : (k(), o(wp, {
|
|
9724
9771
|
key: 2,
|
|
9725
9772
|
class: "ai-user-message-tools",
|
|
9726
|
-
"message-tools":
|
|
9773
|
+
"message-tools": z(kt),
|
|
9727
9774
|
"message-tools-status": t.messageToolsStatus,
|
|
9728
9775
|
"on-action": w,
|
|
9729
9776
|
"tippy-options": t.tippyOptions,
|
|
@@ -9736,7 +9783,7 @@ var Bd = ["src"], Vd = {
|
|
|
9736
9783
|
], 64))]);
|
|
9737
9784
|
};
|
|
9738
9785
|
}
|
|
9739
|
-
}),
|
|
9786
|
+
}), Jh = /* @__PURE__ */ m({
|
|
9740
9787
|
__name: "message-render",
|
|
9741
9788
|
props: {
|
|
9742
9789
|
messageToolsStatus: {},
|
|
@@ -9748,16 +9795,16 @@ var Bd = ["src"], Vd = {
|
|
|
9748
9795
|
onInterruptResume: { type: Function }
|
|
9749
9796
|
},
|
|
9750
9797
|
setup(e) {
|
|
9751
|
-
let t = e, n =
|
|
9798
|
+
let t = e, n = ie(), r = a(() => {
|
|
9752
9799
|
switch (t.message.role) {
|
|
9753
|
-
case q.User: return g(
|
|
9800
|
+
case q.User: return g(qh, X(X({}, t.message), {}, {
|
|
9754
9801
|
onAction: t.onAction,
|
|
9755
9802
|
onInputConfirm: t.onInputConfirm,
|
|
9756
9803
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
9757
9804
|
messageToolsStatus: t.messageToolsStatus,
|
|
9758
9805
|
tippyOptions: t.tippyOptions
|
|
9759
9806
|
}));
|
|
9760
|
-
case q.Assistant: return g(ch, t.message, { default: (e) =>
|
|
9807
|
+
case q.Assistant: return g(ch, t.message, { default: (e) => P(n, "default", e, () => [g(Fl, {
|
|
9761
9808
|
content: t.message.content || "",
|
|
9762
9809
|
status: t.message.status
|
|
9763
9810
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
@@ -9765,24 +9812,24 @@ var Bd = ["src"], Vd = {
|
|
|
9765
9812
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
9766
9813
|
} } : void 0)]) });
|
|
9767
9814
|
case q.Info: return g(uh, t.message);
|
|
9768
|
-
case q.Reasoning: return g(
|
|
9815
|
+
case q.Reasoning: return g(Ph, t.message);
|
|
9769
9816
|
case q.Tool: return g($m, t.message);
|
|
9770
9817
|
case q.Activity: return g(Gm, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }));
|
|
9771
|
-
case q.Interrupt: return g(
|
|
9818
|
+
case q.Interrupt: return g(Dh, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }), n.answeredQuestion ? { answeredQuestion: (e) => {
|
|
9772
9819
|
var t;
|
|
9773
9820
|
return (t = n.answeredQuestion) == null ? void 0 : t.call(n, e);
|
|
9774
9821
|
} } : void 0);
|
|
9775
|
-
case q.Loading: return g(
|
|
9822
|
+
case q.Loading: return g(kh, t.message);
|
|
9776
9823
|
default: return null;
|
|
9777
9824
|
}
|
|
9778
9825
|
});
|
|
9779
|
-
return (e, t) => (k(), o(
|
|
9826
|
+
return (e, t) => (k(), o(F(r.value)));
|
|
9780
9827
|
}
|
|
9781
|
-
}),
|
|
9828
|
+
}), Yh = [
|
|
9782
9829
|
"id",
|
|
9783
9830
|
"onMouseenter",
|
|
9784
9831
|
"onMouseleave"
|
|
9785
|
-
],
|
|
9832
|
+
], Xh = { class: "ai-message-fixed-bottom" }, Zh = /* @__PURE__ */ m({
|
|
9786
9833
|
__name: "message-container",
|
|
9787
9834
|
props: /* @__PURE__ */ y({
|
|
9788
9835
|
enableSelection: {
|
|
@@ -9807,7 +9854,7 @@ var Bd = ["src"], Vd = {
|
|
|
9807
9854
|
}),
|
|
9808
9855
|
emits: /* @__PURE__ */ y(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
9809
9856
|
setup(t) {
|
|
9810
|
-
let n = t, r =
|
|
9857
|
+
let n = t, r = re(t, "selectedUserMessages"), i = B("messageContainerRef"), d = B("messageContainerBottomRef"), { toScrollBottom: p, debouncedShowScrollBottomBtn: m } = Rr(i, d), { copy: h } = Pr(), g = a(() => Ot.filter((e) => n.renderMode !== Pt.Test || e.id !== "share")), _ = a(() => n.renderMode === Pt.Share ? n.messageGroups.filter((e) => e.type !== q.Loading) : n.messageGroups), v = (e) => {
|
|
9811
9858
|
var t;
|
|
9812
9859
|
let n = (t = e.messages) == null ? void 0 : t.at(-1);
|
|
9813
9860
|
(n == null ? void 0 : n.role) !== q.Interrupt && (e.isHover = !0);
|
|
@@ -9863,29 +9910,29 @@ var Bd = ["src"], Vd = {
|
|
|
9863
9910
|
ref: i,
|
|
9864
9911
|
class: "ai-message-container"
|
|
9865
9912
|
}, [
|
|
9866
|
-
(k(!0), c(e, null,
|
|
9913
|
+
(k(!0), c(e, null, N(_.value, (i, a) => (k(), c("div", {
|
|
9867
9914
|
id: i.uid,
|
|
9868
9915
|
key: a,
|
|
9869
9916
|
class: "message-group",
|
|
9870
9917
|
style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
|
|
9871
9918
|
onMouseenter: (e) => v(i),
|
|
9872
9919
|
onMouseleave: (e) => y(i, e)
|
|
9873
|
-
}, [
|
|
9920
|
+
}, [P(r.$slots, "group", b({ ref_for: !0 }, { group: i }), () => [t.enableSelection && i.type !== z(q).Loading ? (k(), o(z(ue), {
|
|
9874
9921
|
key: 0,
|
|
9875
9922
|
class: "message-group-checkbox",
|
|
9876
9923
|
"model-value": i.checked,
|
|
9877
9924
|
"onUpdate:modelValue": (e) => x(i, e)
|
|
9878
9925
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : s("", !0), l("div", {
|
|
9879
|
-
class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode ===
|
|
9880
|
-
style: w({ width: t.enableSelection && i.type !==
|
|
9881
|
-
}, [(k(!0), c(e, null,
|
|
9926
|
+
class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === z(Pt).Share || t.enableSelection && i.type !== z(q).Loading }]),
|
|
9927
|
+
style: w({ width: t.enableSelection && i.type !== z(q).Loading ? "calc(100% - 16px)" : "100%" })
|
|
9928
|
+
}, [(k(!0), c(e, null, N(i.messages, (e, i) => P(r.$slots, "default", b({
|
|
9882
9929
|
key: i,
|
|
9883
9930
|
ref_for: !0
|
|
9884
9931
|
}, {
|
|
9885
9932
|
message: e,
|
|
9886
9933
|
messageToolsStatus: t.messageToolsStatus,
|
|
9887
9934
|
onInterruptResume: n.onInterruptResume
|
|
9888
|
-
}), () => [(k(), o(
|
|
9935
|
+
}), () => [(k(), o(Jh, {
|
|
9889
9936
|
key: i,
|
|
9890
9937
|
message: e,
|
|
9891
9938
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9896,7 +9943,7 @@ var Bd = ["src"], Vd = {
|
|
|
9896
9943
|
"tippy-options": t.messageToolsTippyOptions
|
|
9897
9944
|
}, u({ _: 2 }, [r.$slots.answeredQuestion ? {
|
|
9898
9945
|
name: "answeredQuestion",
|
|
9899
|
-
fn:
|
|
9946
|
+
fn: H((e) => [P(r.$slots, "answeredQuestion", b({ ref_for: !0 }, e))]),
|
|
9900
9947
|
key: "0"
|
|
9901
9948
|
} : void 0]), 1032, [
|
|
9902
9949
|
"message",
|
|
@@ -9906,7 +9953,7 @@ var Bd = ["src"], Vd = {
|
|
|
9906
9953
|
"on-interrupt-resume",
|
|
9907
9954
|
"on-shortcut-confirm",
|
|
9908
9955
|
"tippy-options"
|
|
9909
|
-
]))])), 128)), t.renderMode !==
|
|
9956
|
+
]))])), 128)), t.renderMode !== z(Pt).Share && !(t.enableSelection && i.type !== z(q).Loading) && !i.pause && i.type === z(q).Assistant && t.messageToolsStatus !== z(_d).Hidden ? (k(), o(wp, {
|
|
9910
9957
|
key: 0,
|
|
9911
9958
|
"message-tools": g.value,
|
|
9912
9959
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9924,41 +9971,41 @@ var Bd = ["src"], Vd = {
|
|
|
9924
9971
|
"style",
|
|
9925
9972
|
"tippy-options",
|
|
9926
9973
|
"onFeedback"
|
|
9927
|
-
])) : s("", !0)], 6)])], 44,
|
|
9974
|
+
])) : s("", !0)], 6)])], 44, Yh))), 128)),
|
|
9928
9975
|
l("div", {
|
|
9929
9976
|
ref_key: "messageContainerBottomRef",
|
|
9930
9977
|
ref: d,
|
|
9931
9978
|
class: "message-container-bottom",
|
|
9932
9979
|
tabindex: "0"
|
|
9933
9980
|
}, null, 512),
|
|
9934
|
-
l("div",
|
|
9935
|
-
loading: t.messageStatus ===
|
|
9936
|
-
title: t.messageStatus ===
|
|
9981
|
+
l("div", Xh, [U(f(nr, {
|
|
9982
|
+
loading: t.messageStatus === z(J).StopLoading,
|
|
9983
|
+
title: t.messageStatus === z(J).StopLoading ? z(G)("正在停止") : z(G)("停止生成"),
|
|
9937
9984
|
onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
|
|
9938
9985
|
}, {
|
|
9939
|
-
icon:
|
|
9986
|
+
icon: H(() => [f(z(yn))]),
|
|
9940
9987
|
_: 1
|
|
9941
|
-
}, 8, ["loading", "title"]), [[
|
|
9942
|
-
title:
|
|
9943
|
-
onClick:
|
|
9988
|
+
}, 8, ["loading", "title"]), [[ae, t.renderMode !== z(Pt).Share && (t.messageStatus === z(J).Streaming || t.messageStatus === z(J).StopLoading || t.messageStatus === z(J).Fetching || t.messageStatus === z(J).Pending)]]), U(f(nr, {
|
|
9989
|
+
title: z(G)("返回底部"),
|
|
9990
|
+
onClick: z(p)
|
|
9944
9991
|
}, {
|
|
9945
|
-
icon:
|
|
9992
|
+
icon: H(() => [f(z(Ln))]),
|
|
9946
9993
|
_: 1
|
|
9947
|
-
}, 8, ["title", "onClick"]), [[
|
|
9994
|
+
}, 8, ["title", "onClick"]), [[ae, z(m)]])])
|
|
9948
9995
|
], 512));
|
|
9949
9996
|
}
|
|
9950
|
-
}),
|
|
9997
|
+
}), Qh = { class: "execution-summary" }, $h = { class: "execution-summary-header" }, eg = { class: "execution-summary-content" }, tg = ["onMouseenter"], ng = { class: "content-item-header" }, rg = { class: "content-item-title" }, ig = { class: "content-item-messages" }, ag = {
|
|
9951
9998
|
key: 0,
|
|
9952
9999
|
class: "timeline-line"
|
|
9953
|
-
},
|
|
10000
|
+
}, og = {
|
|
9954
10001
|
key: 1,
|
|
9955
10002
|
class: "execution-summary-content-empty"
|
|
9956
|
-
},
|
|
10003
|
+
}, sg = { class: "execution-summary-content-empty-text" }, cg = /* @__PURE__ */ m({
|
|
9957
10004
|
__name: "execution-summary",
|
|
9958
10005
|
props: { messageGroups: {} },
|
|
9959
10006
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
9960
10007
|
setup(t, { emit: n }) {
|
|
9961
|
-
let r = n, i = hi(), { keyword: a } = ui(), u =
|
|
10008
|
+
let r = n, i = hi(), { keyword: a } = ui(), u = I(void 0), p = (e) => {
|
|
9962
10009
|
if (!e) return "";
|
|
9963
10010
|
let t = new Date(e), n = (e) => String(e).padStart(2, "0");
|
|
9964
10011
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`;
|
|
@@ -9967,57 +10014,57 @@ var Bd = ["src"], Vd = {
|
|
|
9967
10014
|
}, h = () => {
|
|
9968
10015
|
a.value = "", r("updateKeyword", "");
|
|
9969
10016
|
};
|
|
9970
|
-
return (n, g) => (k(), c("div",
|
|
9971
|
-
modelValue:
|
|
10017
|
+
return (n, g) => (k(), c("div", Qh, [l("div", $h, [f(z(pe), {
|
|
10018
|
+
modelValue: z(a),
|
|
9972
10019
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
9973
10020
|
class: "execution-summary-header-input",
|
|
9974
10021
|
clearable: "",
|
|
9975
|
-
placeholder:
|
|
9976
|
-
}, null, 8, ["modelValue", "placeholder"])]), l("div",
|
|
10022
|
+
placeholder: z(G)("搜索 关键字")
|
|
10023
|
+
}, null, 8, ["modelValue", "placeholder"])]), l("div", eg, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
|
|
9977
10024
|
key: n.uid,
|
|
9978
10025
|
class: "execution-summary-content-item",
|
|
9979
10026
|
onMouseenter: (e) => u.value = n.uid,
|
|
9980
10027
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
9981
10028
|
}, [
|
|
9982
|
-
l("div",
|
|
10029
|
+
l("div", ng, [
|
|
9983
10030
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
9984
|
-
|
|
9985
|
-
|
|
10031
|
+
U((k(), c("span", rg, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[z(vi), X({}, z(i))]]),
|
|
10032
|
+
U(f(z(W), {
|
|
9986
10033
|
class: "content-item-locate",
|
|
9987
10034
|
text: "",
|
|
9988
10035
|
theme: "primary",
|
|
9989
10036
|
onClick: (e) => m(n)
|
|
9990
10037
|
}, {
|
|
9991
|
-
default:
|
|
10038
|
+
default: H(() => [d(L(z(G)("在对话中定位")), 1)]),
|
|
9992
10039
|
_: 1
|
|
9993
|
-
}, 8, ["onClick"]), [[
|
|
10040
|
+
}, 8, ["onClick"]), [[ae, u.value === n.uid]])
|
|
9994
10041
|
]),
|
|
9995
|
-
l("div",
|
|
10042
|
+
l("div", ig, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(Jh, {
|
|
9996
10043
|
key: t,
|
|
9997
10044
|
message: e
|
|
9998
10045
|
}, null, 8, ["message"]))), 128))]),
|
|
9999
|
-
r < t.messageGroups.length - 1 ? (k(), c("div",
|
|
10000
|
-
], 40,
|
|
10046
|
+
r < t.messageGroups.length - 1 ? (k(), c("div", ag)) : s("", !0)
|
|
10047
|
+
], 40, tg))), 128)) : (k(), c("div", og, [f(z(de), {
|
|
10001
10048
|
class: "empty-exception",
|
|
10002
10049
|
type: "empty"
|
|
10003
|
-
}), l("div",
|
|
10050
|
+
}), l("div", sg, [d(L(z(a) ? z(G)("搜索结果为空") : z(G)("暂无数据")) + " ", 1), z(a) ? (k(), o(z(W), {
|
|
10004
10051
|
key: 0,
|
|
10005
10052
|
text: "",
|
|
10006
10053
|
theme: "primary",
|
|
10007
10054
|
onClick: h
|
|
10008
10055
|
}, {
|
|
10009
|
-
default:
|
|
10056
|
+
default: H(() => [d(L(z(G)("清空搜索")), 1)]),
|
|
10010
10057
|
_: 1
|
|
10011
10058
|
})) : s("", !0)])]))])]));
|
|
10012
10059
|
}
|
|
10013
|
-
}),
|
|
10060
|
+
}), lg = ["class", "style"], ug = { class: "ai-message-loading-row" }, dg = { class: "ai-message-loading-icon-wrap" }, fg = {
|
|
10014
10061
|
key: 0,
|
|
10015
10062
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
10016
|
-
},
|
|
10063
|
+
}, pg = {
|
|
10017
10064
|
key: 1,
|
|
10018
10065
|
"aria-live": "polite",
|
|
10019
10066
|
class: "ai-message-loading-text"
|
|
10020
|
-
},
|
|
10067
|
+
}, mg = /* @__PURE__ */ m(X(X({}, {
|
|
10021
10068
|
name: "MessageLoading",
|
|
10022
10069
|
inheritAttrs: !1
|
|
10023
10070
|
}), {}, {
|
|
@@ -10030,9 +10077,9 @@ var Bd = ["src"], Vd = {
|
|
|
10030
10077
|
text: { default: "加载中..." }
|
|
10031
10078
|
},
|
|
10032
10079
|
setup(t) {
|
|
10033
|
-
let n = t, r =
|
|
10080
|
+
let n = t, r = ne(), i = a(() => {
|
|
10034
10081
|
let { class: e, style: t } = r;
|
|
10035
|
-
return xr(r,
|
|
10082
|
+
return xr(r, lg);
|
|
10036
10083
|
}), o = a(() => ({
|
|
10037
10084
|
display: "block",
|
|
10038
10085
|
width: `${n.iconSize}px`,
|
|
@@ -10046,18 +10093,18 @@ var Bd = ["src"], Vd = {
|
|
|
10046
10093
|
return e && typeof e == "object" && !Array.isArray(e) ? X(X({}, t), e) : t;
|
|
10047
10094
|
});
|
|
10048
10095
|
return (t, n) => (k(), c("div", b({
|
|
10049
|
-
class: ["ai-message-loading",
|
|
10096
|
+
class: ["ai-message-loading", z(r).class],
|
|
10050
10097
|
style: u.value
|
|
10051
|
-
}, i.value), [l("div",
|
|
10098
|
+
}, i.value), [l("div", ug, [l("span", dg, [P(t.$slots, "icon", {}, () => [f(z(Wt), {
|
|
10052
10099
|
class: "ai-message-loading-icon-svg",
|
|
10053
10100
|
style: w(o.value)
|
|
10054
|
-
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span",
|
|
10101
|
+
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span", fg, [P(t.$slots, "text")])) : (k(), c("span", pg, [(k(!0), c(e, null, N(s.value, (e, t) => (k(), c("span", {
|
|
10055
10102
|
key: `${t}-${e}`,
|
|
10056
10103
|
class: "ai-message-loading-char",
|
|
10057
10104
|
style: w({ "--char-index": t })
|
|
10058
|
-
},
|
|
10105
|
+
}, L(e), 5))), 128))]))])], 16));
|
|
10059
10106
|
}
|
|
10060
|
-
})),
|
|
10107
|
+
})), hg = { class: "ai-selection-footer" }, gg = { class: "ai-selection-footer-left" }, _g = { class: "select-all-text" }, vg = { class: "ai-selection-footer-right" }, yg = /* @__PURE__ */ m({
|
|
10061
10108
|
__name: "selection-footer",
|
|
10062
10109
|
props: {
|
|
10063
10110
|
isAllSelected: { type: Boolean },
|
|
@@ -10071,35 +10118,35 @@ var Bd = ["src"], Vd = {
|
|
|
10071
10118
|
],
|
|
10072
10119
|
setup(e, { emit: t }) {
|
|
10073
10120
|
let n = t;
|
|
10074
|
-
return (t, r) => (k(), c("div",
|
|
10121
|
+
return (t, r) => (k(), c("div", hg, [l("div", gg, [f(z(ue), {
|
|
10075
10122
|
"model-value": e.isAllSelected,
|
|
10076
10123
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
10077
|
-
}, null, 8, ["model-value"]), l("span",
|
|
10124
|
+
}, null, 8, ["model-value"]), l("span", _g, L(z(G)("全选")), 1)]), l("div", vg, [f(z(W), {
|
|
10078
10125
|
disabled: e.loading,
|
|
10079
10126
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
10080
10127
|
}, {
|
|
10081
|
-
default:
|
|
10128
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
10082
10129
|
_: 1
|
|
10083
|
-
}, 8, ["disabled"]), f(
|
|
10130
|
+
}, 8, ["disabled"]), f(z(W), {
|
|
10084
10131
|
disabled: e.selectedCount === 0,
|
|
10085
10132
|
loading: e.loading,
|
|
10086
10133
|
theme: "primary",
|
|
10087
10134
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
10088
10135
|
}, {
|
|
10089
|
-
default:
|
|
10136
|
+
default: H(() => [d(L(z(G)("确定")), 1)]),
|
|
10090
10137
|
_: 1
|
|
10091
10138
|
}, 8, ["disabled", "loading"])])]));
|
|
10092
10139
|
}
|
|
10093
|
-
}),
|
|
10140
|
+
}), bg = ["data-ai-size"], xg = {
|
|
10094
10141
|
key: 0,
|
|
10095
10142
|
class: "ai-chat-container-loading"
|
|
10096
|
-
},
|
|
10143
|
+
}, Sg = { class: "screen-wrapper" }, Cg = {
|
|
10097
10144
|
key: 1,
|
|
10098
10145
|
class: "ai-welcome-content"
|
|
10099
|
-
},
|
|
10146
|
+
}, wg = { class: "ai-welcome-title" }, Tg = {
|
|
10100
10147
|
key: 0,
|
|
10101
10148
|
class: "ai-welcome-remark"
|
|
10102
|
-
},
|
|
10149
|
+
}, Eg = /* @__PURE__ */ m({
|
|
10103
10150
|
__name: "chat-container",
|
|
10104
10151
|
props: /* @__PURE__ */ y({
|
|
10105
10152
|
chatLoading: { type: Boolean },
|
|
@@ -10170,7 +10217,7 @@ var Bd = ["src"], Vd = {
|
|
|
10170
10217
|
"update:cite"
|
|
10171
10218
|
]),
|
|
10172
10219
|
setup(t, { expose: n, emit: r }) {
|
|
10173
|
-
let i = be.TabPanel, u = t, p =
|
|
10220
|
+
let i = be.TabPanel, u = t, p = re(t, "renderMode"), m = B("fullScreenRef"), { isFullScreen: _, enter: v, exit: y } = Kr(m);
|
|
10174
10221
|
di({ renderMode: p });
|
|
10175
10222
|
let T = a(() => X(X({
|
|
10176
10223
|
collapsible: !1,
|
|
@@ -10178,7 +10225,7 @@ var Bd = ["src"], Vd = {
|
|
|
10178
10225
|
min: 400
|
|
10179
10226
|
}, u.resizeProps), {}, { placement: u.placement })), E = a(() => {
|
|
10180
10227
|
var e, t, n, r, i;
|
|
10181
|
-
return (e = (t = u.getSideRenderComponent) == null ? void 0 : t.call(u, g, (n = (r =
|
|
10228
|
+
return (e = (t = u.getSideRenderComponent) == null ? void 0 : t.call(u, g, (n = (r = R.value.data) == null ? void 0 : r.props) == null ? {} : n)) == null ? (i = R.value.data) == null ? void 0 : i.component : e;
|
|
10182
10229
|
});
|
|
10183
10230
|
Jr({
|
|
10184
10231
|
size: a(() => {
|
|
@@ -10189,29 +10236,29 @@ var Bd = ["src"], Vd = {
|
|
|
10189
10236
|
var e;
|
|
10190
10237
|
return (e = u.supportUpload) == null ? !1 : e;
|
|
10191
10238
|
})
|
|
10192
|
-
}),
|
|
10239
|
+
}), V(() => {
|
|
10193
10240
|
var e;
|
|
10194
10241
|
return (e = u.size) == null ? "small" : e;
|
|
10195
10242
|
}, (e) => {
|
|
10196
10243
|
typeof document < "u" && (document.body.dataset.aiSize = e);
|
|
10197
10244
|
}, { immediate: !0 });
|
|
10198
|
-
let D =
|
|
10245
|
+
let D = re(t, "selectedShortcut"), A = re(t, "cite"), j = r;
|
|
10199
10246
|
pi({ tippyOptions: a(() => {
|
|
10200
10247
|
var e;
|
|
10201
10248
|
return (e = u.commonTippyOptions) == null ? {} : e;
|
|
10202
10249
|
}) });
|
|
10203
|
-
let { displayTabs:
|
|
10250
|
+
let { displayTabs: M, tabs: te, selectedTab: R, isCollapse: ne, addCustomTab: ie, removeCustomTab: ae, selectCustomTab: oe, resetCustomTab: se } = Ur({
|
|
10204
10251
|
executionTabVisible: () => u.executionTabVisible,
|
|
10205
10252
|
onTabChange: function() {
|
|
10206
10253
|
var e = Z(function* (e) {
|
|
10207
10254
|
var t, n;
|
|
10208
|
-
let r = ((t =
|
|
10255
|
+
let r = ((t = R.value.data) == null ? void 0 : t.props) || {
|
|
10209
10256
|
loading: !0,
|
|
10210
10257
|
data: {}
|
|
10211
10258
|
};
|
|
10212
|
-
|
|
10259
|
+
R.value.data = X(X({}, R.value.data), {}, { props: r });
|
|
10213
10260
|
let i = yield (n = u.onCustomTabChange) == null ? void 0 : n.call(u, e);
|
|
10214
|
-
|
|
10261
|
+
R.value.data = X(X({}, R.value.data), {}, { props: X(X({}, r), {}, {
|
|
10215
10262
|
loading: !1,
|
|
10216
10263
|
data: i
|
|
10217
10264
|
}) });
|
|
@@ -10220,16 +10267,16 @@ var Bd = ["src"], Vd = {
|
|
|
10220
10267
|
return e.apply(this, arguments);
|
|
10221
10268
|
};
|
|
10222
10269
|
}()
|
|
10223
|
-
}),
|
|
10224
|
-
keyword:
|
|
10270
|
+
}), ce = I(""), le = ee([]), ue = I(400), de = a(() => `calc(100% - ${ue.value}px)`), { messageGroups: fe, executionGroups: pe, isShareMode: me, isAllSelected: he, onToggleShareAll: ge, onCancelShare: ve, onConfirmShare: ye, pendingApprovalTipText: xe, activeUserQuestionInterrupt: Se } = ii({
|
|
10271
|
+
keyword: ce,
|
|
10225
10272
|
messages: a(() => u.messages),
|
|
10226
10273
|
renderMode: a(() => p.value),
|
|
10227
|
-
selectedUserMessages:
|
|
10274
|
+
selectedUserMessages: le
|
|
10228
10275
|
});
|
|
10229
|
-
|
|
10230
|
-
e && (
|
|
10231
|
-
}),
|
|
10232
|
-
!e.length && !
|
|
10276
|
+
V(ne, (e) => {
|
|
10277
|
+
e && (ce.value = "", ue.value = 0), j("collapseChange", e, ue.value);
|
|
10278
|
+
}), V(() => pe.value, (e) => {
|
|
10279
|
+
!e.length && !ce.value && se();
|
|
10233
10280
|
}, {
|
|
10234
10281
|
immediate: !0,
|
|
10235
10282
|
deep: !1
|
|
@@ -10260,7 +10307,7 @@ var Bd = ["src"], Vd = {
|
|
|
10260
10307
|
return e.apply(this, arguments);
|
|
10261
10308
|
};
|
|
10262
10309
|
}(), Ae = () => {
|
|
10263
|
-
|
|
10310
|
+
ne.value = !ne.value;
|
|
10264
10311
|
}, je = (e) => {
|
|
10265
10312
|
if (!e) return;
|
|
10266
10313
|
let t = document.getElementById(e);
|
|
@@ -10274,9 +10321,9 @@ var Bd = ["src"], Vd = {
|
|
|
10274
10321
|
}
|
|
10275
10322
|
t.scrollIntoView({ behavior: "smooth" });
|
|
10276
10323
|
}, Me = (e) => {
|
|
10277
|
-
|
|
10324
|
+
oe(te.value.find((t) => t.name === e));
|
|
10278
10325
|
}, Ne = (e) => {
|
|
10279
|
-
|
|
10326
|
+
ce.value = e;
|
|
10280
10327
|
}, Pe = function() {
|
|
10281
10328
|
var e = Z(function* (e, t) {
|
|
10282
10329
|
var n;
|
|
@@ -10291,18 +10338,18 @@ var Bd = ["src"], Vd = {
|
|
|
10291
10338
|
};
|
|
10292
10339
|
}(), Fe = () => {
|
|
10293
10340
|
j("confirmShare", ye()), x(() => {
|
|
10294
|
-
me.value = !1,
|
|
10341
|
+
me.value = !1, le.value = [];
|
|
10295
10342
|
});
|
|
10296
10343
|
}, Ie = (e) => {
|
|
10297
10344
|
ue.value = e;
|
|
10298
10345
|
};
|
|
10299
10346
|
return O(() => {
|
|
10300
|
-
|
|
10347
|
+
se(), typeof document < "u" && delete document.body.dataset.aiSize;
|
|
10301
10348
|
}), n({
|
|
10302
|
-
selectedTab:
|
|
10303
|
-
addCustomTab:
|
|
10304
|
-
removeCustomTab:
|
|
10305
|
-
selectCustomTab:
|
|
10349
|
+
selectedTab: R,
|
|
10350
|
+
addCustomTab: ie,
|
|
10351
|
+
removeCustomTab: ae,
|
|
10352
|
+
selectCustomTab: oe,
|
|
10306
10353
|
enterShareMode: () => {
|
|
10307
10354
|
me.value = !0;
|
|
10308
10355
|
},
|
|
@@ -10316,47 +10363,47 @@ var Bd = ["src"], Vd = {
|
|
|
10316
10363
|
"data-ai-size": t.size,
|
|
10317
10364
|
style: w({
|
|
10318
10365
|
"--resize-main-width": de.value,
|
|
10319
|
-
borderTopColor:
|
|
10366
|
+
borderTopColor: z(ne) ? "transparent" : "#eaebf0"
|
|
10320
10367
|
})
|
|
10321
|
-
}, [t.chatLoading ? (k(), c("div",
|
|
10368
|
+
}, [t.chatLoading ? (k(), c("div", xg, [f(mg)])) : (k(), o(z(_e), b({
|
|
10322
10369
|
key: 1,
|
|
10323
|
-
class: ["ai-chat-container-resize-layout", { "ai-is-collapse":
|
|
10370
|
+
class: ["ai-chat-container-resize-layout", { "ai-is-collapse": z(ne) || z(M).length > 0 && !((a = ce.value) != null && a.length) && ((u = z(pe)) == null ? void 0 : u.length) < 1 }]
|
|
10324
10371
|
}, T.value, { onResizing: Ie }), {
|
|
10325
|
-
aside:
|
|
10372
|
+
aside: H(() => {
|
|
10326
10373
|
var n, a, u, p, h;
|
|
10327
|
-
return [!
|
|
10374
|
+
return [!z(ne) && z(M).length > 0 && ((n = z(pe)) != null && n.length || (a = ce.value) != null && a.length) ? (k(), c("div", {
|
|
10328
10375
|
key: 0,
|
|
10329
10376
|
ref_key: "fullScreenRef",
|
|
10330
10377
|
ref: m,
|
|
10331
10378
|
class: "ai-full-screen-wrapper"
|
|
10332
10379
|
}, [
|
|
10333
|
-
f(
|
|
10334
|
-
active: R
|
|
10380
|
+
f(z(be), {
|
|
10381
|
+
active: z(R).name,
|
|
10335
10382
|
class: "ai-chat-container-tab",
|
|
10336
10383
|
"label-height": 40,
|
|
10337
10384
|
type: "unborder-card",
|
|
10338
10385
|
onChange: Me
|
|
10339
10386
|
}, {
|
|
10340
|
-
setting:
|
|
10387
|
+
setting: H(() => {
|
|
10341
10388
|
var e;
|
|
10342
|
-
return [l("div",
|
|
10389
|
+
return [l("div", Sg, [f(bi, {
|
|
10343
10390
|
class: "screen-btn",
|
|
10344
10391
|
"tippy-options": X(X({}, t.commonTippyOptions), {}, {
|
|
10345
|
-
appendTo:
|
|
10346
|
-
content:
|
|
10392
|
+
appendTo: z(_) ? m.value : (e = t.commonTippyOptions) == null ? void 0 : e.appendTo,
|
|
10393
|
+
content: z(_) ? z(G)("退出全屏") : z(G)("全屏")
|
|
10347
10394
|
})
|
|
10348
10395
|
}, {
|
|
10349
|
-
default:
|
|
10396
|
+
default: H(() => [z(_) ? (k(), o(z(zn), {
|
|
10350
10397
|
key: 1,
|
|
10351
|
-
onClick:
|
|
10352
|
-
}, null, 8, ["onClick"])) : (k(), o(
|
|
10398
|
+
onClick: z(y)
|
|
10399
|
+
}, null, 8, ["onClick"])) : (k(), o(z(Rn), {
|
|
10353
10400
|
key: 0,
|
|
10354
|
-
onClick:
|
|
10401
|
+
onClick: z(v)
|
|
10355
10402
|
}, null, 8, ["onClick"]))]),
|
|
10356
10403
|
_: 1
|
|
10357
10404
|
}, 8, ["tippy-options"])])];
|
|
10358
10405
|
}),
|
|
10359
|
-
default:
|
|
10406
|
+
default: H(() => [(k(!0), c(e, null, N(z(M), (e) => (k(), o(z(i), {
|
|
10360
10407
|
key: e.name,
|
|
10361
10408
|
class: "ai-chat-container-tab-panel",
|
|
10362
10409
|
label: () => {
|
|
@@ -10364,18 +10411,18 @@ var Bd = ["src"], Vd = {
|
|
|
10364
10411
|
return g("div", {
|
|
10365
10412
|
class: "ai-execution-summary-label",
|
|
10366
10413
|
onVnodeMounted: (t) => {
|
|
10367
|
-
if (R
|
|
10414
|
+
if (z(R).name === e.name) {
|
|
10368
10415
|
var n;
|
|
10369
10416
|
(n = t.el) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
10370
10417
|
}
|
|
10371
10418
|
}
|
|
10372
|
-
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab:
|
|
10373
|
-
g(e.name ===
|
|
10374
|
-
|
|
10375
|
-
e.closable !== !1 && e.name !==
|
|
10419
|
+
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: z(ae) })) == null ? [
|
|
10420
|
+
g(e.name === z("execution") ? z(an) : z(sn), { class: "ai-execution-summary-icon" }),
|
|
10421
|
+
U(g("span", { class: "ai-execution-summary-label-text" }, (i = e.label) == null ? "" : i), [[z(vi), X(X({}, t.commonTippyOptions), {}, { text: (a = e.label) == null ? "" : a })]]),
|
|
10422
|
+
e.closable !== !1 && e.name !== z("execution") ? g(z(Bn), {
|
|
10376
10423
|
class: "ai-execution-close-icon",
|
|
10377
10424
|
onClick: () => {
|
|
10378
|
-
|
|
10425
|
+
z(ae)(e.name);
|
|
10379
10426
|
}
|
|
10380
10427
|
}) : null
|
|
10381
10428
|
] : n);
|
|
@@ -10384,50 +10431,50 @@ var Bd = ["src"], Vd = {
|
|
|
10384
10431
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
10385
10432
|
_: 1
|
|
10386
10433
|
}, 8, ["active"]),
|
|
10387
|
-
((u = R
|
|
10434
|
+
((u = z(R)) == null ? void 0 : u.name) === z("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [z(ne) ? s("", !0) : (k(), o(cg, {
|
|
10388
10435
|
key: 0,
|
|
10389
|
-
"message-groups":
|
|
10436
|
+
"message-groups": z(pe),
|
|
10390
10437
|
style: { height: "calc(100% - 40px)" },
|
|
10391
10438
|
onLocateMessageGroup: je,
|
|
10392
10439
|
onUpdateKeyword: Ne
|
|
10393
10440
|
}, null, 8, ["message-groups"]))], 64)) : s("", !0),
|
|
10394
|
-
R
|
|
10395
|
-
key: R
|
|
10441
|
+
z(R) ? (k(), c("div", {
|
|
10442
|
+
key: z(R).name,
|
|
10396
10443
|
class: "ai-chat-container-message-slot"
|
|
10397
|
-
}, [(k(), o(
|
|
10398
|
-
locateButton:
|
|
10444
|
+
}, [(k(), o(F(E.value), b({ key: z(R).name }, (p = z(R)) == null || (p = p.data) == null ? void 0 : p.props), {
|
|
10445
|
+
locateButton: H(() => [f(z(W), {
|
|
10399
10446
|
class: "ai-locate-button",
|
|
10400
10447
|
size: "small",
|
|
10401
10448
|
text: "",
|
|
10402
10449
|
theme: "primary",
|
|
10403
10450
|
onClick: r[0] || (r[0] = (e) => {
|
|
10404
10451
|
var t;
|
|
10405
|
-
return je((t = R
|
|
10452
|
+
return je((t = z(R)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
10406
10453
|
})
|
|
10407
10454
|
}, {
|
|
10408
|
-
default:
|
|
10455
|
+
default: H(() => [d(L(z(G)("在对话中定位")), 1)]),
|
|
10409
10456
|
_: 1
|
|
10410
10457
|
})]),
|
|
10411
10458
|
_: 1
|
|
10412
10459
|
}, 16))])) : s("", !0)
|
|
10413
|
-
], 512)) : s("", !0),
|
|
10460
|
+
], 512)) : s("", !0), z(M).length > 0 && (h = z(pe)) != null && h.length ? (k(), c("div", {
|
|
10414
10461
|
key: 1,
|
|
10415
10462
|
class: S(["collapse-button", {
|
|
10416
10463
|
"is-right": t.placement === "right",
|
|
10417
|
-
"is-collapsed":
|
|
10464
|
+
"is-collapsed": z(ne)
|
|
10418
10465
|
}]),
|
|
10419
10466
|
onClick: Ae
|
|
10420
|
-
}, [f(
|
|
10467
|
+
}, [f(z(Pn))], 2)) : s("", !0)];
|
|
10421
10468
|
}),
|
|
10422
|
-
main:
|
|
10469
|
+
main: H(() => {
|
|
10423
10470
|
var i, a, u, d;
|
|
10424
|
-
return [(i = t.messages) != null && i.length ?
|
|
10471
|
+
return [(i = t.messages) != null && i.length ? P(n.$slots, "default", C(b({ key: 0 }, {
|
|
10425
10472
|
messages: t.messages,
|
|
10426
10473
|
messageStatus: t.messageStatus,
|
|
10427
|
-
messageGroups:
|
|
10428
|
-
selectedUserMessages:
|
|
10474
|
+
messageGroups: z(fe),
|
|
10475
|
+
selectedUserMessages: le.value,
|
|
10429
10476
|
messageToolsStatus: t.messageToolsStatus,
|
|
10430
|
-
isShareMode:
|
|
10477
|
+
isShareMode: z(me),
|
|
10431
10478
|
commonTippyOptions: t.commonTippyOptions,
|
|
10432
10479
|
handleAgentAction: Pe,
|
|
10433
10480
|
onAgentFeedback: t.onAgentFeedback,
|
|
@@ -10437,12 +10484,12 @@ var Bd = ["src"], Vd = {
|
|
|
10437
10484
|
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
10438
10485
|
})), () => {
|
|
10439
10486
|
var e;
|
|
10440
|
-
return [(e = t.messages) != null && e.length ? (k(), o(
|
|
10487
|
+
return [(e = t.messages) != null && e.length ? (k(), o(Zh, {
|
|
10441
10488
|
key: 0,
|
|
10442
|
-
"selected-user-messages":
|
|
10443
|
-
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) =>
|
|
10444
|
-
"enable-selection":
|
|
10445
|
-
"message-groups":
|
|
10489
|
+
"selected-user-messages": le.value,
|
|
10490
|
+
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => le.value = e),
|
|
10491
|
+
"enable-selection": z(me),
|
|
10492
|
+
"message-groups": z(fe),
|
|
10446
10493
|
"message-status": Ce.value,
|
|
10447
10494
|
"message-tools-status": t.messageToolsStatus,
|
|
10448
10495
|
"message-tools-tippy-options": t.commonTippyOptions,
|
|
@@ -10456,8 +10503,8 @@ var Bd = ["src"], Vd = {
|
|
|
10456
10503
|
"render-mode": p.value,
|
|
10457
10504
|
onStopStreaming: r[2] || (r[2] = (e) => j("stopStreaming"))
|
|
10458
10505
|
}, {
|
|
10459
|
-
group:
|
|
10460
|
-
default:
|
|
10506
|
+
group: H(({ group: e }) => [P(n.$slots, "group", C(h({ group: e })))]),
|
|
10507
|
+
default: H(({ message: e, messageToolsStatus: t, onInterruptResume: r }) => [P(n.$slots, "message", C(h({
|
|
10461
10508
|
message: e,
|
|
10462
10509
|
messageToolsStatus: t,
|
|
10463
10510
|
onInterruptResume: r
|
|
@@ -10478,24 +10525,24 @@ var Bd = ["src"], Vd = {
|
|
|
10478
10525
|
"on-user-shortcut-confirm",
|
|
10479
10526
|
"render-mode"
|
|
10480
10527
|
])) : s("", !0)];
|
|
10481
|
-
}) : (k(), c("div",
|
|
10528
|
+
}) : (k(), c("div", Cg, [P(n.$slots, "welcome", C(h({
|
|
10482
10529
|
openingRemark: t.openingRemark,
|
|
10483
10530
|
welcomeTitle: t.welcomeTitle
|
|
10484
10531
|
})), () => {
|
|
10485
10532
|
var e;
|
|
10486
10533
|
return [
|
|
10487
|
-
f(
|
|
10488
|
-
l("h2",
|
|
10489
|
-
t.openingRemark ? (k(), c("div",
|
|
10534
|
+
f(z(Gt)),
|
|
10535
|
+
l("h2", wg, L((e = t.welcomeTitle) == null ? z(G)("你好,我是小鲸") : e), 1),
|
|
10536
|
+
t.openingRemark ? (k(), c("div", Tg, [f(Fl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
10490
10537
|
];
|
|
10491
|
-
})])), p.value ===
|
|
10538
|
+
})])), p.value === z(Pt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [z(me) ? (k(), o(yg, {
|
|
10492
10539
|
key: 0,
|
|
10493
|
-
"is-all-selected":
|
|
10540
|
+
"is-all-selected": z(he),
|
|
10494
10541
|
loading: !1,
|
|
10495
|
-
"selected-count":
|
|
10496
|
-
onCancel:
|
|
10542
|
+
"selected-count": le.value.length,
|
|
10543
|
+
onCancel: z(ve),
|
|
10497
10544
|
onConfirm: Fe,
|
|
10498
|
-
onToggleAll:
|
|
10545
|
+
onToggleAll: z(ge)
|
|
10499
10546
|
}, null, 8, [
|
|
10500
10547
|
"is-all-selected",
|
|
10501
10548
|
"selected-count",
|
|
@@ -10517,7 +10564,7 @@ var Bd = ["src"], Vd = {
|
|
|
10517
10564
|
placeholder: t.placeholder,
|
|
10518
10565
|
prompts: t.prompts,
|
|
10519
10566
|
resources: t.resources,
|
|
10520
|
-
"send-disabled-tip":
|
|
10567
|
+
"send-disabled-tip": z(xe),
|
|
10521
10568
|
"shortcut-id": (d = D.value) == null ? void 0 : d.id,
|
|
10522
10569
|
shortcuts: t.shortcuts,
|
|
10523
10570
|
skills: t.skills,
|
|
@@ -10527,12 +10574,12 @@ var Bd = ["src"], Vd = {
|
|
|
10527
10574
|
onSelectShortcut: De,
|
|
10528
10575
|
"onUpdate:modelValue": Oe
|
|
10529
10576
|
}, {
|
|
10530
|
-
interrupt:
|
|
10577
|
+
interrupt: H(() => [z(Se) ? (k(), o(z(cp), {
|
|
10531
10578
|
key: 0,
|
|
10532
|
-
interrupt:
|
|
10579
|
+
interrupt: z(Se),
|
|
10533
10580
|
"on-resume": t.onInterruptResume
|
|
10534
10581
|
}, {
|
|
10535
|
-
question:
|
|
10582
|
+
question: H(({ question: e, qIndex: t, answer: r, setAnswer: i, confirm: a }) => [P(n.$slots, "interruptQuestion", C(h({
|
|
10536
10583
|
question: e,
|
|
10537
10584
|
qIndex: t,
|
|
10538
10585
|
answer: r,
|
|
@@ -10540,9 +10587,9 @@ var Bd = ["src"], Vd = {
|
|
|
10540
10587
|
confirm: a
|
|
10541
10588
|
})))]),
|
|
10542
10589
|
_: 3
|
|
10543
|
-
}, 8, ["interrupt", "on-resume"])) : s("", !0),
|
|
10590
|
+
}, 8, ["interrupt", "on-resume"])) : s("", !0), z(xe) ? (k(), o(jf, {
|
|
10544
10591
|
key: 1,
|
|
10545
|
-
content:
|
|
10592
|
+
content: z(xe)
|
|
10546
10593
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
10547
10594
|
_: 3
|
|
10548
10595
|
}, 8, [
|
|
@@ -10563,10 +10610,10 @@ var Bd = ["src"], Vd = {
|
|
|
10563
10610
|
]))], 64))];
|
|
10564
10611
|
}),
|
|
10565
10612
|
_: 3
|
|
10566
|
-
}, 16, ["class"]))], 12,
|
|
10613
|
+
}, 16, ["class"]))], 12, bg);
|
|
10567
10614
|
};
|
|
10568
10615
|
}
|
|
10569
|
-
}),
|
|
10616
|
+
}), Dg = { class: "ai-image-preview-group" }, Og = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
|
|
10570
10617
|
__name: "image-preview-group",
|
|
10571
10618
|
props: {
|
|
10572
10619
|
maskClosable: {
|
|
@@ -10583,7 +10630,7 @@ var Bd = ["src"], Vd = {
|
|
|
10583
10630
|
}
|
|
10584
10631
|
},
|
|
10585
10632
|
setup(e) {
|
|
10586
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
10633
|
+
let t = /* @__PURE__ */ new Map(), n = I(!1), r = I([]), i = I(0);
|
|
10587
10634
|
return A(md, {
|
|
10588
10635
|
register: (e, n) => {
|
|
10589
10636
|
t.set(e, n);
|
|
@@ -10595,7 +10642,7 @@ var Bd = ["src"], Vd = {
|
|
|
10595
10642
|
let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
|
|
10596
10643
|
r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
|
|
10597
10644
|
}
|
|
10598
|
-
}), (t, a) => (k(), c("div",
|
|
10645
|
+
}), (t, a) => (k(), c("div", Dg, [P(t.$slots, "default"), n.value ? (k(), o(Gd, {
|
|
10599
10646
|
key: 0,
|
|
10600
10647
|
current: i.value,
|
|
10601
10648
|
"onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
|
|
@@ -10607,7 +10654,7 @@ var Bd = ["src"], Vd = {
|
|
|
10607
10654
|
"show-info": e.showInfo
|
|
10608
10655
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
10609
10656
|
name: "extra",
|
|
10610
|
-
fn:
|
|
10657
|
+
fn: H(() => [P(t.$slots, "extra")]),
|
|
10611
10658
|
key: "0"
|
|
10612
10659
|
} : void 0]), 1032, [
|
|
10613
10660
|
"current",
|
|
@@ -10618,10 +10665,10 @@ var Bd = ["src"], Vd = {
|
|
|
10618
10665
|
"show-info"
|
|
10619
10666
|
])) : s("", !0)]));
|
|
10620
10667
|
}
|
|
10621
|
-
})),
|
|
10668
|
+
})), kg = ["alt", "src"], Ag = {
|
|
10622
10669
|
key: 1,
|
|
10623
10670
|
class: "ai-image-error"
|
|
10624
|
-
},
|
|
10671
|
+
}, jg = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
|
|
10625
10672
|
__name: "image",
|
|
10626
10673
|
props: {
|
|
10627
10674
|
alt: { default: "" },
|
|
@@ -10649,7 +10696,7 @@ var Bd = ["src"], Vd = {
|
|
|
10649
10696
|
"preview"
|
|
10650
10697
|
],
|
|
10651
10698
|
setup(e, { expose: t, emit: n }) {
|
|
10652
|
-
let r = e, i = n, d = Symbol(), p = _(md, null), m =
|
|
10699
|
+
let r = e, i = n, d = Symbol(), p = _(md, null), m = ee(), h = I("loading"), g = I(!1), v = I(!r.lazy), y = null, b = a(() => {
|
|
10653
10700
|
var e;
|
|
10654
10701
|
return ((e = r.previewProps) == null ? void 0 : e.src) || r.src;
|
|
10655
10702
|
}), x = () => {
|
|
@@ -10662,7 +10709,7 @@ var Bd = ["src"], Vd = {
|
|
|
10662
10709
|
resolution: e == null ? void 0 : e.resolution,
|
|
10663
10710
|
downloadUrl: e == null ? void 0 : e.downloadUrl
|
|
10664
10711
|
};
|
|
10665
|
-
}, C =
|
|
10712
|
+
}, C = I(0), D = a(() => {
|
|
10666
10713
|
if (!r.lazy || v.value) {
|
|
10667
10714
|
let e = r.src;
|
|
10668
10715
|
return C.value === 0 ? e : `${e}${e.includes("?") ? "&" : "?"}_t=${C.value}`;
|
|
@@ -10675,26 +10722,26 @@ var Bd = ["src"], Vd = {
|
|
|
10675
10722
|
width: "100%",
|
|
10676
10723
|
height: "100%",
|
|
10677
10724
|
objectFit: "cover"
|
|
10678
|
-
}, ee = (e) => {
|
|
10679
|
-
h.value = "loaded", i("load", e);
|
|
10680
10725
|
}, M = (e) => {
|
|
10726
|
+
h.value = "loaded", i("load", e);
|
|
10727
|
+
}, N = (e) => {
|
|
10681
10728
|
h.value = "error", i("error", e);
|
|
10682
|
-
},
|
|
10729
|
+
}, F = () => {
|
|
10683
10730
|
h.value = "loading", C.value = Date.now();
|
|
10684
|
-
},
|
|
10731
|
+
}, te = () => {
|
|
10685
10732
|
!r.preview || h.value !== "loaded" || (p ? p.preview(d) : g.value = !0, i("preview"));
|
|
10686
|
-
},
|
|
10733
|
+
}, R = () => {
|
|
10687
10734
|
!r.lazy || !m.value || (y = new IntersectionObserver((e) => {
|
|
10688
10735
|
var t;
|
|
10689
10736
|
(t = e[0]) != null && t.isIntersecting && (v.value = !0, y == null || y.disconnect(), y = null);
|
|
10690
10737
|
}, { rootMargin: "200px" }), y.observe(m.value));
|
|
10691
|
-
},
|
|
10738
|
+
}, ne = () => {
|
|
10692
10739
|
y == null || y.disconnect(), y = null;
|
|
10693
10740
|
};
|
|
10694
10741
|
return E(() => {
|
|
10695
|
-
|
|
10742
|
+
R(), p == null || p.register(d, x);
|
|
10696
10743
|
}), T(() => {
|
|
10697
|
-
|
|
10744
|
+
ne(), p == null || p.unregister(d);
|
|
10698
10745
|
}), t({ previewVisible: g }), (t, n) => (k(), c("div", {
|
|
10699
10746
|
ref_key: "containerRef",
|
|
10700
10747
|
ref: m,
|
|
@@ -10703,7 +10750,7 @@ var Bd = ["src"], Vd = {
|
|
|
10703
10750
|
"ai-image--preview": e.preview && h.value === "loaded"
|
|
10704
10751
|
}]),
|
|
10705
10752
|
style: w(A.value),
|
|
10706
|
-
onClick:
|
|
10753
|
+
onClick: te
|
|
10707
10754
|
}, [
|
|
10708
10755
|
h.value !== "error" && D.value ? (k(), c("img", {
|
|
10709
10756
|
key: 0,
|
|
@@ -10711,17 +10758,17 @@ var Bd = ["src"], Vd = {
|
|
|
10711
10758
|
class: "ai-image-inner",
|
|
10712
10759
|
src: D.value,
|
|
10713
10760
|
style: j,
|
|
10714
|
-
onError:
|
|
10715
|
-
onLoad:
|
|
10716
|
-
}, null, 40,
|
|
10717
|
-
h.value === "error" ? (k(), c("div",
|
|
10761
|
+
onError: N,
|
|
10762
|
+
onLoad: M
|
|
10763
|
+
}, null, 40, kg)) : s("", !0),
|
|
10764
|
+
h.value === "error" ? (k(), c("div", Ag, [f(z(Qt), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
10718
10765
|
h.value === "error" ? (k(), c("div", {
|
|
10719
10766
|
key: 2,
|
|
10720
10767
|
class: "ai-image-error-overlay",
|
|
10721
|
-
onClick:
|
|
10722
|
-
}, [f(
|
|
10723
|
-
|
|
10724
|
-
!
|
|
10768
|
+
onClick: F
|
|
10769
|
+
}, [f(z(gn), { class: "ai-image-reload-icon" }), l("span", null, L(z(G)("重新加载")), 1)])) : s("", !0),
|
|
10770
|
+
P(t.$slots, "default"),
|
|
10771
|
+
!z(p) && e.preview && g.value ? (k(), o(Gd, {
|
|
10725
10772
|
key: 3,
|
|
10726
10773
|
visible: g.value,
|
|
10727
10774
|
"onUpdate:visible": n[0] || (n[0] = (e) => g.value = e),
|
|
@@ -10730,7 +10777,7 @@ var Bd = ["src"], Vd = {
|
|
|
10730
10777
|
"show-info": e.showInfo
|
|
10731
10778
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
10732
10779
|
name: "extra",
|
|
10733
|
-
fn:
|
|
10780
|
+
fn: H(() => [P(t.$slots, "extra")]),
|
|
10734
10781
|
key: "0"
|
|
10735
10782
|
} : void 0]), 1032, [
|
|
10736
10783
|
"visible",
|
|
@@ -10742,4 +10789,4 @@ var Bd = ["src"], Vd = {
|
|
|
10742
10789
|
}
|
|
10743
10790
|
}));
|
|
10744
10791
|
//#endregion
|
|
10745
|
-
export { Gt as AIBluekingBannerIcon, Wt as AIBluekingIcon, K as APPROVAL_STATUS, vt as APPROVAL_STATUS_MAP, Qn as ActiveLikeIcon, $n as ActiveUnLikeIcon, Hn as AgentIcon,
|
|
10792
|
+
export { Gt as AIBluekingBannerIcon, Wt as AIBluekingIcon, K as APPROVAL_STATUS, vt as APPROVAL_STATUS_MAP, Qn as ActiveLikeIcon, $n as ActiveUnLikeIcon, Hn as AgentIcon, jg as AiImage, lr as AiLoading, hr as AiSelection, Ln as ArrowDownIcon, mn as ArrowLeftIcon, Xt as ArrowRightIcon, hn as ArrowRightPreviewIcon, en as BkFlowFailedIcon, nn as BkFlowPendingIcon, rn as BkFlowSkippedIcon, $t as BkFlowSuccessIcon, tn as BkFlowSuspendedIcon, Ct as CHAT_Z_INDEX, Ot as CONST_MESSAGE_TOOLS, At as CONST_UPDATE_TOOLS, kt as CONST_USER_MESSAGE_TOOLS, Ir as CONTAINER_SCROLL_TOKEN, Br as CUSTOM_TAB_TOKEN, Eg as ChatContainer, Of as ChatInput, Cn as CheckCircleFillIcon, Gn as CiteIcon, Tn as CloseCircleFillIcon, yn as CloseCircleIcon, Bn as CloseIcon, $c as CodeContent, Pn as CollapsedIcon, In as ContentLoadingIcon, Fl as ContentRender, Wn as CopyIcon, tr as DEFAULT_SHORTCUTS, Hr as DEFAULT_TAB_ORDER, iu as Delete, xn as DeleteCircleIcon, Xn as DeleteIcon, bn as DocLinkIcon, Kt as DocumentIcon, fn as DownloadIcon, Tt as EDITOR_MENU_Z_INDEX, wt as EDITOR_Z_INDEX, Vr as EXECUTION_TAB_NAME, Zn as EditIcon, kn as EnterIcon, Fn as ErrorIcon, an as ExecutionIcon, cg as ExecutionSummary, Sn as FileUploadIcon, dn as FitScreenIcon, Rn as FullScreenIcon, qr as GLOBAL_CONFIG_TOKEN, Nt as HIGHLIGHT_KEYWORD_CLASS_NAME, Dn as HelpDocIcon, Tp as HighlightKeyword, md as IMAGE_PREVIEW_GROUP_KEY, _n as ImageBrokenIcon, ol as ImageContent, Qt as ImageErrorIcon, Gd as ImagePreview, Og as ImagePreviewGroup, vn as ImageSizeIcon, On as InfoIcon, au as InsertText, Dh as InterruptMessageRender, gt as InterruptReason, yt as InterruptResumeOperation, Ft as LOADING_MESSAGE_ID, cl as LatexContent, Jn as LikeIcon, Zt as LinkIcon, Mn as LoadingMessageIcon, jt as MAX_UPLOAD_FILES, Mt as MAX_UPLOAD_FILE_SIZE, Ml as MarkdownContent, It as MarkdownLanguageMap, ul as MermaidContent, Zh as MessageContainer, _t as MessageContentType, mg as MessageLoading, Jh as MessageRender, q as MessageRole, hd as MessageState, J as MessageStatus, wp as MessageTools, _d as MessageToolsStatus, yp as MessageUserFeedback, Un as MoreAgentIcon, Vn as MoreIcon, on as NodeOutputIcon, sn as NodeTabIcon, Mf as OTHERS_OPTION_LABEL, vi as OverflowTips, pn as PreviewCloseIcon, qt as PreviewIcon, Kn as RebuildIcon, gn as ReloadIcon, Yt as RemoveIcon, Pt as RenderMode, ou as ReplaceAll, En as RevokedIcon, un as RotateIcon, Dt as SELECTION_Z_INDEX, Et as SHORTCUT_MENU_Z_INDEX, Lr as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, nr as ScrollBtn, yg as SelectionFooter, jn as SendMessageIcon, qn as ShareIcon, fr as ShortcutBtn, yr as ShortcutBtns, Ar as ShortcutRender, An as SkipIcon, Jt as TargetIcon, Nn as ThinkingIcon, wn as TimeIcon, ah as ToolCallRender, er as ToolIconsMap, zn as UnFullScreenIcon, Yn as UnLikeIcon, gd as UploadStatus, xt as UserMultiChoiceQuestionSchema, Gf as UserQuestionAnsweredCard, cp as UserQuestionCard, Zf as UserQuestionChoice, Yf as UserQuestionOption, St as UserQuestionSchema, bt as UserSingleChoiceQuestionSchema, kl as VNodeRenderer, cn as ZoomInIcon, ln as ZoomOutIcon, Ff as buildSkipResumePayload, pl as commonErrorContent, Y as commonSVGProps, Ze as completeMarkdownSyntax, id as createEditor, zl as docToString, dt as formatDuration, pt as formatElapsedTime, Be as formatFileSize, Ve as formatUploadNotAddedMessage, ft as generateUUID, ut as getCookieByName, ze as getFileExtension, Re as getFilePreviewUrl, ai as getScrollParent, Yr as injectGlobalConfig, mt as isEn, Le as isImageFile, ht as lang, kc as markdownAnimationAttrs, Ic as markdownItBkInlineStyle, Vc as markdownItLatex, Uc as markdownItMermaid, cu as microtask, su as min, He as needsMarkdownCompletion, pd as noop, ad as plainSchema, Ue as removeCompletionSuffix, fd as resourceTypeMap, cd as schema, Bl as stringToDoc, G as t, Nf as toLetter, jr as useAnimationText, Pr as useClipboard, Fr as useCommandSelection, zr as useContainerScrollConsumer, Rr as useContainerScrollProvider, Wr as useCustomTabConsumer, Ur as useCustomTabProvider, Kr as useFullScreen, Jr as useGlobalConfig, Xr as useMenuKeydown, ii as useMessageGroup, gr as useObserverVisibleList, oi as useParentScrolling, Pf as useUserQuestion, sd as voidNode };
|