@blueking/chat-x 0.0.46-beta.4 → 0.0.46-beta.6
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 +758 -709
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +8 -1
- package/dist/mcp/generated/docs/interrupt-message.md +3 -3
- package/dist/mcp/generated/docs/interrupt.md +7 -2
- package/dist/mcp/generated/docs/tool-approval-card.md +27 -11
- 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";
|
|
@@ -603,6 +603,13 @@ var ut = (e) => {
|
|
|
603
603
|
复制单据: "Copy Ticket",
|
|
604
604
|
复制单据链接: "Copy Ticket Link",
|
|
605
605
|
取消审批: "Cancel Approval",
|
|
606
|
+
已取消审批: "Approval Cancelled",
|
|
607
|
+
刷新单据状态: "Refresh Ticket Status",
|
|
608
|
+
单据已取消审批: "Approval Cancelled",
|
|
609
|
+
"该单据已被拒绝,无法取消": "This ticket has been rejected and cannot be cancelled",
|
|
610
|
+
"该单据已通过,无法取消": "This ticket has been approved and cannot be cancelled",
|
|
611
|
+
"单据已取消,无需重复点击": "This ticket has been cancelled, no need to click again",
|
|
612
|
+
当前状态无法取消审批: "Approval cannot be cancelled in the current status",
|
|
606
613
|
"当前会话有 {count} 个待审批单,如需继续,请先取消审批": "There are {count} pending approval tickets in the current conversation. To continue, cancel approval first.",
|
|
607
614
|
暂不支持的中断消息: "Unsupported interrupt message",
|
|
608
615
|
检索中: "Searching",
|
|
@@ -669,7 +676,7 @@ var ut = (e) => {
|
|
|
669
676
|
[K.REVOKED]: G("已撤销"),
|
|
670
677
|
[K.DRAFT]: G("待审批")
|
|
671
678
|
}, yt = /* @__PURE__ */ function(e) {
|
|
672
|
-
return e.ApprovalCancel = "approval_cancel", e.FlowNodeRetry = "flow_node_retry", e.FlowNodeSkip = "flow_node_skip", e;
|
|
679
|
+
return e.ApprovalCancel = "approval_cancel", e.ApprovalRefresh = "approval_refresh", e.FlowNodeRetry = "flow_node_retry", e.FlowNodeSkip = "flow_node_skip", e;
|
|
673
680
|
}({}), bt = {
|
|
674
681
|
properties: { question: {
|
|
675
682
|
enum: [],
|
|
@@ -1515,12 +1522,12 @@ var Wt = m({
|
|
|
1515
1522
|
"is-disabled": e.disabled
|
|
1516
1523
|
}]),
|
|
1517
1524
|
onClick: i
|
|
1518
|
-
}, [e.loading ? (k(), o(
|
|
1525
|
+
}, [e.loading ? (k(), o(z(me), {
|
|
1519
1526
|
key: 0,
|
|
1520
1527
|
mode: "spin",
|
|
1521
1528
|
size: "mini",
|
|
1522
1529
|
theme: "primary"
|
|
1523
|
-
})) :
|
|
1530
|
+
})) : P(t.$slots, "icon", { key: 1 }), P(t.$slots, "title", {}, () => [d(L(e.title), 1)])], 2));
|
|
1524
1531
|
}
|
|
1525
1532
|
}), rr = { class: "ai-loading-ring" }, ir = {
|
|
1526
1533
|
fill: "none",
|
|
@@ -1624,8 +1631,8 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1624
1631
|
},
|
|
1625
1632
|
emits: ["click"],
|
|
1626
1633
|
setup(t, { expose: n, emit: r }) {
|
|
1627
|
-
let i = t, a =
|
|
1628
|
-
|
|
1634
|
+
let i = t, a = I(!1), l = r;
|
|
1635
|
+
V(() => {
|
|
1629
1636
|
var e;
|
|
1630
1637
|
return (e = i.shortcut) == null ? void 0 : e.icon;
|
|
1631
1638
|
}, () => {
|
|
@@ -1633,7 +1640,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1633
1640
|
}, { immediate: !0 });
|
|
1634
1641
|
let u = (e) => {
|
|
1635
1642
|
l("click", e);
|
|
1636
|
-
}, f =
|
|
1643
|
+
}, f = B("el");
|
|
1637
1644
|
return n({ get $el() {
|
|
1638
1645
|
return f.value;
|
|
1639
1646
|
} }), (n, r) => (k(), c("button", {
|
|
@@ -1641,9 +1648,9 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1641
1648
|
ref: f,
|
|
1642
1649
|
class: S(["ai-shortcut-btn", { "is-menu-mode": t.mode === "menu" }]),
|
|
1643
1650
|
onClick: r[1] || (r[1] = (e) => u(t.shortcut))
|
|
1644
|
-
}, [
|
|
1651
|
+
}, [P(n.$slots, "default", {}, () => {
|
|
1645
1652
|
var n, i, l, u, f, p, m;
|
|
1646
|
-
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(
|
|
1653
|
+
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), {
|
|
1647
1654
|
key: 1,
|
|
1648
1655
|
class: "ai-shortcut-btn-icon"
|
|
1649
1656
|
})) : (k(), c("img", {
|
|
@@ -1654,14 +1661,14 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1654
1661
|
}, null, 40, dr))], 64)) : (k(), c("span", {
|
|
1655
1662
|
key: 1,
|
|
1656
1663
|
class: S(t.shortcut.icon)
|
|
1657
|
-
}, null, 2))], 64)) : (k(), o(
|
|
1664
|
+
}, 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), {
|
|
1658
1665
|
key: 1,
|
|
1659
1666
|
class: "ai-shortcut-btn-icon"
|
|
1660
|
-
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(
|
|
1667
|
+
}))], 64)) : t.shortcut && !((f = t.shortcut.components) != null && f.length) ? (k(), o(z(Hn), {
|
|
1661
1668
|
key: 1,
|
|
1662
1669
|
class: "ai-shortcut-btn-icon"
|
|
1663
|
-
})) : s("", !0), d(" " +
|
|
1664
|
-
}),
|
|
1670
|
+
})) : s("", !0), d(" " + L(((p = t.shortcut) == null ? void 0 : p.alias) || ((m = t.shortcut) == null ? void 0 : m.name)), 1)];
|
|
1671
|
+
}), P(n.$slots, "append")], 2));
|
|
1665
1672
|
}
|
|
1666
1673
|
}), pr = { class: "ai-selection-popover-content" }, mr = {
|
|
1667
1674
|
key: 0,
|
|
@@ -1679,10 +1686,10 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1679
1686
|
}),
|
|
1680
1687
|
emits: /* @__PURE__ */ y(["selectShortcut", "selectionChange"], ["update:visible"]),
|
|
1681
1688
|
setup(n, { emit: i }) {
|
|
1682
|
-
let a = n, u =
|
|
1689
|
+
let a = n, u = re(n, "visible"), d = i, p = B("popoverRef"), m = B("moreMenuRef"), h = I({
|
|
1683
1690
|
x: 0,
|
|
1684
1691
|
y: 0
|
|
1685
|
-
}), g =
|
|
1692
|
+
}), g = I(""), _ = I(null), v = I(!1), y = (e) => {
|
|
1686
1693
|
if ((e == null ? void 0 : e.shadowRoot) instanceof ShadowRoot) {
|
|
1687
1694
|
try {
|
|
1688
1695
|
let t = e.shadowRoot;
|
|
@@ -1778,22 +1785,22 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1778
1785
|
D(200);
|
|
1779
1786
|
}, j = () => {
|
|
1780
1787
|
D(300);
|
|
1781
|
-
},
|
|
1788
|
+
}, M = (e) => {
|
|
1782
1789
|
var t;
|
|
1783
1790
|
u.value && (t = p.value) != null && t.contains(e.target) || S();
|
|
1784
|
-
},
|
|
1791
|
+
}, ee = (e) => {
|
|
1785
1792
|
var t;
|
|
1786
1793
|
!_.value || !u.value || e.target instanceof HTMLElement && e.target.contains((t = _.value) == null ? void 0 : t.anchorNode) && S();
|
|
1787
|
-
},
|
|
1794
|
+
}, F = () => {
|
|
1788
1795
|
var e;
|
|
1789
1796
|
(e = m.value) == null || e.show();
|
|
1790
1797
|
};
|
|
1791
1798
|
return E(() => {
|
|
1792
|
-
document.addEventListener("selectionchange", j), document.addEventListener("mouseup", A), document.addEventListener("mousedown",
|
|
1799
|
+
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);
|
|
1793
1800
|
}), O(() => {
|
|
1794
|
-
document.removeEventListener("selectionchange", j), document.removeEventListener("mouseup", A), document.removeEventListener("mousedown",
|
|
1801
|
+
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);
|
|
1795
1802
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-fade" }, {
|
|
1796
|
-
default:
|
|
1803
|
+
default: H(() => [u.value ? (k(), c("div", {
|
|
1797
1804
|
key: 0,
|
|
1798
1805
|
ref_key: "popoverRef",
|
|
1799
1806
|
ref: p,
|
|
@@ -1801,18 +1808,18 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1801
1808
|
style: w({
|
|
1802
1809
|
left: `${h.value.x}px`,
|
|
1803
1810
|
top: `${h.value.y}px`,
|
|
1804
|
-
zIndex:
|
|
1805
|
-
"--selection-z-index":
|
|
1811
|
+
zIndex: z(Dt),
|
|
1812
|
+
"--selection-z-index": z(Dt)
|
|
1806
1813
|
}),
|
|
1807
|
-
onMousedown: a[2] || (a[2] =
|
|
1808
|
-
}, [l("div", pr, [
|
|
1814
|
+
onMousedown: a[2] || (a[2] = le(() => {}, ["stop"]))
|
|
1815
|
+
}, [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, {
|
|
1809
1816
|
key: 0,
|
|
1810
1817
|
shortcut: t,
|
|
1811
1818
|
onClick: (e) => C(t)
|
|
1812
1819
|
}, null, 8, ["shortcut", "onClick"])) : s("", !0)], 64))), 128)), n.shortcuts.length > n.maxShortcutCount ? (k(), c(e, { key: 0 }, [a[3] || (a[3] = l("div", {
|
|
1813
1820
|
class: "ai-divider",
|
|
1814
1821
|
style: { margin: "0 4px" }
|
|
1815
|
-
}, null, -1)), f(
|
|
1822
|
+
}, null, -1)), f(z(xe), {
|
|
1816
1823
|
ref_key: "moreMenuRef",
|
|
1817
1824
|
ref: m,
|
|
1818
1825
|
arrow: !1,
|
|
@@ -1827,17 +1834,17 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1827
1834
|
v.value = !0;
|
|
1828
1835
|
})
|
|
1829
1836
|
}, {
|
|
1830
|
-
content:
|
|
1837
|
+
content: H(() => [v.value ? (k(), c("div", mr, [(k(!0), c(e, null, N(n.shortcuts.slice(n.maxShortcutCount), (e) => (k(), o(fr, {
|
|
1831
1838
|
key: e.id,
|
|
1832
1839
|
mode: "menu",
|
|
1833
1840
|
shortcut: e,
|
|
1834
1841
|
onClick: (t) => C(e)
|
|
1835
1842
|
}, null, 8, ["shortcut", "onClick"]))), 128))])) : s("", !0)]),
|
|
1836
|
-
default:
|
|
1843
|
+
default: H(() => [f(fr, {
|
|
1837
1844
|
style: { width: "28px" },
|
|
1838
|
-
onClick:
|
|
1845
|
+
onClick: F
|
|
1839
1846
|
}, {
|
|
1840
|
-
default:
|
|
1847
|
+
default: H(() => [f(z(Pn), { class: "shortcut-btn-more-icon" })]),
|
|
1841
1848
|
_: 1
|
|
1842
1849
|
})]),
|
|
1843
1850
|
_: 1
|
|
@@ -1846,7 +1853,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1846
1853
|
})]));
|
|
1847
1854
|
}
|
|
1848
1855
|
}), gr = (e, t, n) => {
|
|
1849
|
-
let r =
|
|
1856
|
+
let r = I([]), i = function() {
|
|
1850
1857
|
var i = Z(function* () {
|
|
1851
1858
|
if (!e.value || t.value.length === 0) return;
|
|
1852
1859
|
yield x();
|
|
@@ -1865,7 +1872,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1865
1872
|
return i.apply(this, arguments);
|
|
1866
1873
|
};
|
|
1867
1874
|
}(), a = null;
|
|
1868
|
-
return
|
|
1875
|
+
return V([t, n.moreItemRef], () => {
|
|
1869
1876
|
x(() => {
|
|
1870
1877
|
i();
|
|
1871
1878
|
});
|
|
@@ -1886,14 +1893,14 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1886
1893
|
props: { shortcuts: {} },
|
|
1887
1894
|
emits: ["selectShortcut"],
|
|
1888
1895
|
setup(t, { emit: n }) {
|
|
1889
|
-
let r = () => document.body, i = t, u = n, d =
|
|
1896
|
+
let r = () => document.body, i = t, u = n, d = B("containerRef"), p = I([]), m = B("moreMenuRef"), h = B("moreBtnRef"), { visibleItems: g } = gr(d, p, {
|
|
1890
1897
|
items: a(() => i.shortcuts),
|
|
1891
1898
|
gap: vr,
|
|
1892
1899
|
moreItemRef: h
|
|
1893
|
-
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v =
|
|
1900
|
+
}), _ = a(() => i.shortcuts.filter((e) => !g.value.includes(e))), v = I(!1), y = (e, t) => {
|
|
1894
1901
|
e && "$el" in e ? p.value[t] = e.$el : e && e instanceof HTMLElement && (p.value[t] = e);
|
|
1895
1902
|
};
|
|
1896
|
-
|
|
1903
|
+
V(() => i.shortcuts, () => {
|
|
1897
1904
|
p.value = Array(i.shortcuts.length).fill(null);
|
|
1898
1905
|
}, { deep: !0 });
|
|
1899
1906
|
let b = () => {
|
|
@@ -1901,7 +1908,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1901
1908
|
}, x = (e) => {
|
|
1902
1909
|
v.value = !1, u("selectShortcut", e);
|
|
1903
1910
|
};
|
|
1904
|
-
return
|
|
1911
|
+
return V(v, (e) => {
|
|
1905
1912
|
if (e) {
|
|
1906
1913
|
var t;
|
|
1907
1914
|
(t = m.value) == null || t.show();
|
|
@@ -1913,18 +1920,18 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1913
1920
|
ref_key: "containerRef",
|
|
1914
1921
|
ref: d,
|
|
1915
1922
|
class: "shortcut-btns"
|
|
1916
|
-
}, [(k(!0), c(e, null,
|
|
1923
|
+
}, [(k(!0), c(e, null, N(t.shortcuts, (e, t) => (k(), o(fr, {
|
|
1917
1924
|
key: e.key || e.id,
|
|
1918
1925
|
ref_for: !0,
|
|
1919
1926
|
ref: (e) => y(e, t),
|
|
1920
|
-
class: S(["shortcut-btns-item", { "shortcut-btns-item-hidden": !
|
|
1927
|
+
class: S(["shortcut-btns-item", { "shortcut-btns-item-hidden": !z(g).includes(e) }]),
|
|
1921
1928
|
shortcut: e,
|
|
1922
1929
|
onClick: (t) => x(e)
|
|
1923
1930
|
}, null, 8, [
|
|
1924
1931
|
"class",
|
|
1925
1932
|
"shortcut",
|
|
1926
1933
|
"onClick"
|
|
1927
|
-
]))), 128)), _.value.length > 0 ? (k(), o(
|
|
1934
|
+
]))), 128)), _.value.length > 0 ? (k(), o(z(xe), {
|
|
1928
1935
|
key: 0,
|
|
1929
1936
|
ref_key: "moreMenuRef",
|
|
1930
1937
|
ref: m,
|
|
@@ -1934,24 +1941,24 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1934
1941
|
offset: [0, 6],
|
|
1935
1942
|
theme: "ai-chat-box-light light",
|
|
1936
1943
|
trigger: "manual",
|
|
1937
|
-
"z-index":
|
|
1944
|
+
"z-index": z(Et),
|
|
1938
1945
|
onHidden: i[0] || (i[0] = () => {
|
|
1939
1946
|
v.value = !1;
|
|
1940
1947
|
})
|
|
1941
1948
|
}, {
|
|
1942
|
-
content:
|
|
1949
|
+
content: H(() => [l("div", _r, [(k(!0), c(e, null, N(_.value, (e) => (k(), o(fr, {
|
|
1943
1950
|
key: e.id,
|
|
1944
1951
|
mode: "menu",
|
|
1945
1952
|
shortcut: e,
|
|
1946
1953
|
onClick: (t) => x(e)
|
|
1947
1954
|
}, null, 8, ["shortcut", "onClick"]))), 128))])]),
|
|
1948
|
-
default:
|
|
1955
|
+
default: H(() => [f(fr, {
|
|
1949
1956
|
ref_key: "moreBtnRef",
|
|
1950
1957
|
ref: h,
|
|
1951
1958
|
class: "shortcut-btns-item shortcut-btns-more",
|
|
1952
1959
|
onClick: b
|
|
1953
1960
|
}, {
|
|
1954
|
-
default:
|
|
1961
|
+
default: H(() => [f(z(Un), { class: "shortcut-btns-more-icon" }), l("span", null, L(z(G)("更多")), 1)]),
|
|
1955
1962
|
_: 1
|
|
1956
1963
|
}, 512)]),
|
|
1957
1964
|
_: 1
|
|
@@ -2000,8 +2007,8 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2000
2007
|
},
|
|
2001
2008
|
emits: ["close", "submit"],
|
|
2002
2009
|
setup(t, { emit: n }) {
|
|
2003
|
-
let r = t, i = n, a =
|
|
2004
|
-
|
|
2010
|
+
let r = t, i = n, a = B("formRef"), s = j({}), u = I({});
|
|
2011
|
+
oe(() => {
|
|
2005
2012
|
var e;
|
|
2006
2013
|
if (r.formModel) for (let e in r.formModel) s[e] = r.formModel[e];
|
|
2007
2014
|
for (let o of (e = r == null ? void 0 : r.components) == null ? [] : e) if (o.key) {
|
|
@@ -2061,13 +2068,13 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2061
2068
|
i("close");
|
|
2062
2069
|
};
|
|
2063
2070
|
return (n, r) => (k(), c("div", wr, [l("div", Tr, [
|
|
2064
|
-
f(
|
|
2065
|
-
l("span", Er,
|
|
2066
|
-
f(
|
|
2071
|
+
f(z(Nn), { class: "header-icon" }),
|
|
2072
|
+
l("span", Er, L(t.alias || t.name), 1),
|
|
2073
|
+
f(z(Bn), {
|
|
2067
2074
|
class: "header-close",
|
|
2068
2075
|
onClick: y
|
|
2069
2076
|
})
|
|
2070
|
-
]), l("div", Dr, [f(
|
|
2077
|
+
]), l("div", Dr, [f(z(fe), {
|
|
2071
2078
|
ref_key: "formRef",
|
|
2072
2079
|
ref: a,
|
|
2073
2080
|
class: "shortcut-render-form",
|
|
@@ -2075,28 +2082,28 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2075
2082
|
model: s,
|
|
2076
2083
|
rules: u.value
|
|
2077
2084
|
}, {
|
|
2078
|
-
default:
|
|
2085
|
+
default: H(() => [(k(!0), c(e, null, N(t.components, (e, t) => (k(), o(z(fe).FormItem, b({
|
|
2079
2086
|
key: e.id,
|
|
2080
2087
|
ref_for: !0
|
|
2081
2088
|
}, m(e), {
|
|
2082
2089
|
class: "shortcut-render-form-item",
|
|
2083
2090
|
style: { gridColumn: p(e, t) }
|
|
2084
2091
|
}), {
|
|
2085
|
-
label:
|
|
2092
|
+
label: H(() => {
|
|
2086
2093
|
var t, n;
|
|
2087
|
-
return [l("span", Or,
|
|
2094
|
+
return [l("span", Or, L((t = e.name) == null ? (n = e.formItemProps) == null ? void 0 : n.label : t), 1)];
|
|
2088
2095
|
}),
|
|
2089
|
-
default:
|
|
2096
|
+
default: H(() => [(k(), o(F(h(e))))]),
|
|
2090
2097
|
_: 2
|
|
2091
|
-
}, 1040, ["style"]))), 128)), f(
|
|
2092
|
-
default:
|
|
2098
|
+
}, 1040, ["style"]))), 128)), f(z(fe).FormItem, { class: "shortcut-footer-item" }, {
|
|
2099
|
+
default: H(() => [l("div", kr, [f(z(W), {
|
|
2093
2100
|
theme: "primary",
|
|
2094
2101
|
onClick: _
|
|
2095
2102
|
}, {
|
|
2096
|
-
default:
|
|
2103
|
+
default: H(() => [d(L(z(G)("提交")), 1)]),
|
|
2097
2104
|
_: 1
|
|
2098
|
-
}), f(
|
|
2099
|
-
default:
|
|
2105
|
+
}), f(z(W), { onClick: v }, {
|
|
2106
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
2100
2107
|
_: 1
|
|
2101
2108
|
})])]),
|
|
2102
2109
|
_: 1
|
|
@@ -2105,9 +2112,9 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2105
2112
|
}, 8, ["model", "rules"])])]));
|
|
2106
2113
|
}
|
|
2107
2114
|
}), jr = (e, t) => {
|
|
2108
|
-
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i =
|
|
2109
|
-
return
|
|
2110
|
-
let t =
|
|
2115
|
+
let { easing: n = "ease-in-out", fadeDuration: r = 200 } = t || {}, i = ee([]), o = ee("");
|
|
2116
|
+
return V(() => e, (e) => {
|
|
2117
|
+
let t = R(e);
|
|
2111
2118
|
if (t === o.value) return;
|
|
2112
2119
|
if (!(o.value && t.indexOf(o.value) === 0)) {
|
|
2113
2120
|
i.value = [t], o.value = t;
|
|
@@ -2150,10 +2157,10 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2150
2157
|
return e.apply(this, arguments);
|
|
2151
2158
|
};
|
|
2152
2159
|
}() }), Fr = () => {
|
|
2153
|
-
let e =
|
|
2160
|
+
let e = I({
|
|
2154
2161
|
column: 0,
|
|
2155
2162
|
line: 0
|
|
2156
|
-
}), t =
|
|
2163
|
+
}), t = I([]);
|
|
2157
2164
|
return {
|
|
2158
2165
|
commandSelection: e,
|
|
2159
2166
|
docSnapshot: t,
|
|
@@ -2169,7 +2176,7 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2169
2176
|
}
|
|
2170
2177
|
};
|
|
2171
2178
|
}, Ir = Symbol("CONTAINER_SCROLL_TOKEN"), Lr = 100, Rr = (e, t) => {
|
|
2172
|
-
let n =
|
|
2179
|
+
let n = I(!1), r = null, i = I(0), o = I(!0), s = p((e, t) => {
|
|
2173
2180
|
let n, r = !1;
|
|
2174
2181
|
return {
|
|
2175
2182
|
get() {
|
|
@@ -2196,18 +2203,18 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2196
2203
|
})));
|
|
2197
2204
|
let c = () => {
|
|
2198
2205
|
var e;
|
|
2199
|
-
o.value = !0, (e =
|
|
2206
|
+
o.value = !0, (e = R(t)) == null || e.scrollIntoView({
|
|
2200
2207
|
behavior: "smooth",
|
|
2201
2208
|
block: "end"
|
|
2202
2209
|
});
|
|
2203
2210
|
}, l = () => {
|
|
2204
2211
|
var t;
|
|
2205
|
-
(t =
|
|
2212
|
+
(t = R(e)) == null || t.scrollTo({
|
|
2206
2213
|
top: 0,
|
|
2207
2214
|
behavior: "smooth"
|
|
2208
2215
|
});
|
|
2209
2216
|
}, u = () => {
|
|
2210
|
-
let t =
|
|
2217
|
+
let t = R(e);
|
|
2211
2218
|
if (!t) return;
|
|
2212
2219
|
let { scrollHeight: r, scrollTop: a, clientHeight: o } = t, c = r - a - o;
|
|
2213
2220
|
i.value = Math.max(0, c), s.value = !n.value && i.value > 100;
|
|
@@ -2215,8 +2222,8 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2215
2222
|
e.deltaY < 0 && (o.value = !1);
|
|
2216
2223
|
};
|
|
2217
2224
|
return E(() => {
|
|
2218
|
-
|
|
2219
|
-
let a =
|
|
2225
|
+
oe(() => {
|
|
2226
|
+
let a = R(e), c = R(t);
|
|
2220
2227
|
!a || !c || (r == null || r.disconnect(), a.removeEventListener("scroll", u), a.removeEventListener("wheel", d), u(), r = new IntersectionObserver((e) => {
|
|
2221
2228
|
e.forEach((e) => {
|
|
2222
2229
|
e.isIntersecting ? (n.value = !0, i.value = 0, o.value = !0, s.value = !1) : (n.value = !1, u());
|
|
@@ -2225,7 +2232,7 @@ var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr =
|
|
|
2225
2232
|
});
|
|
2226
2233
|
}), D(() => {
|
|
2227
2234
|
r == null || r.disconnect();
|
|
2228
|
-
let t =
|
|
2235
|
+
let t = R(e);
|
|
2229
2236
|
t && (t.removeEventListener("scroll", u), t.removeEventListener("wheel", d));
|
|
2230
2237
|
}), {
|
|
2231
2238
|
autoScrollEnabled: o,
|
|
@@ -2242,7 +2249,7 @@ function Ur(e) {
|
|
|
2242
2249
|
label: G("执行情况"),
|
|
2243
2250
|
name: Vr,
|
|
2244
2251
|
order: 0
|
|
2245
|
-
}, n =
|
|
2252
|
+
}, n = I([t]), r = ee(t), i = I(!0), o = a(() => {
|
|
2246
2253
|
var t, n;
|
|
2247
2254
|
return (t = (n = e.executionTabVisible) == null ? void 0 : n.call(e)) == null ? !0 : t;
|
|
2248
2255
|
}), s = (e) => e.name === "execution" ? o.value : e.visible !== !1, c = a(() => n.value.filter(s).slice().sort((e, t) => {
|
|
@@ -2266,7 +2273,7 @@ function Ur(e) {
|
|
|
2266
2273
|
}, f = () => {
|
|
2267
2274
|
n.value = [t], r.value = t, i.value = !0;
|
|
2268
2275
|
};
|
|
2269
|
-
return
|
|
2276
|
+
return V(c, (e) => {
|
|
2270
2277
|
s(r.value) || e.length && d(e[0]);
|
|
2271
2278
|
}), A(Br, {
|
|
2272
2279
|
tabs: n,
|
|
@@ -2302,14 +2309,14 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2302
2309
|
change: "webkitfullscreenchange"
|
|
2303
2310
|
} : null;
|
|
2304
2311
|
})(), Kr = (e) => {
|
|
2305
|
-
let t = !!Gr, n =
|
|
2312
|
+
let t = !!Gr, n = I(!1), r = () => {
|
|
2306
2313
|
var t;
|
|
2307
|
-
return (t =
|
|
2314
|
+
return (t = z(e)) == null ? typeof document > "u" ? null : document.documentElement : t;
|
|
2308
2315
|
}, i = () => {
|
|
2309
2316
|
var e;
|
|
2310
2317
|
return Gr ? (e = document[Gr.element]) == null ? null : e : null;
|
|
2311
2318
|
}, a = () => {
|
|
2312
|
-
let t = i(), r =
|
|
2319
|
+
let t = i(), r = z(e);
|
|
2313
2320
|
n.value = r ? t === r : !!t;
|
|
2314
2321
|
}, o = function() {
|
|
2315
2322
|
var e = Z(function* () {
|
|
@@ -2338,7 +2345,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2338
2345
|
document.removeEventListener(Gr.change, a);
|
|
2339
2346
|
})), {
|
|
2340
2347
|
isSupported: t,
|
|
2341
|
-
isFullScreen:
|
|
2348
|
+
isFullScreen: M(n),
|
|
2342
2349
|
enter: o,
|
|
2343
2350
|
exit: s,
|
|
2344
2351
|
toggle: () => n.value ? s() : o()
|
|
@@ -2347,7 +2354,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2347
2354
|
size: e.size,
|
|
2348
2355
|
supportUpload: e.supportUpload
|
|
2349
2356
|
}), Yr = () => _(qr, void 0), Xr = (e) => {
|
|
2350
|
-
let t =
|
|
2357
|
+
let t = I(0);
|
|
2351
2358
|
E(() => {
|
|
2352
2359
|
window.addEventListener("keydown", i, !0);
|
|
2353
2360
|
}), D(() => {
|
|
@@ -2429,8 +2436,8 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2429
2436
|
return e.reason === gt.AIDevToolApproval && ti.has((t = e.metadata) == null || (t = t.ticket) == null ? void 0 : t.status);
|
|
2430
2437
|
}).length : e;
|
|
2431
2438
|
}, 0), ii = (e) => {
|
|
2432
|
-
let t =
|
|
2433
|
-
|
|
2439
|
+
let t = ee([]), n = I(!1);
|
|
2440
|
+
oe(() => {
|
|
2434
2441
|
var n;
|
|
2435
2442
|
let r = [], i = [];
|
|
2436
2443
|
for (let t of e.messages.value) {
|
|
@@ -2486,7 +2493,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2486
2493
|
})) == null ? !1 : s
|
|
2487
2494
|
});
|
|
2488
2495
|
}
|
|
2489
|
-
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) === q.User &&
|
|
2496
|
+
((n = e.messages.value.at(-1)) == null ? void 0 : n.role) === q.User && R(e.renderMode) !== Pt.Share && i.push({
|
|
2490
2497
|
messages: [{
|
|
2491
2498
|
role: q.Loading,
|
|
2492
2499
|
content: "",
|
|
@@ -2532,7 +2539,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2532
2539
|
var e;
|
|
2533
2540
|
return (e = t.value) == null ? void 0 : e.filter((e) => e.type === q.User).every((e) => e.checked);
|
|
2534
2541
|
});
|
|
2535
|
-
return
|
|
2542
|
+
return V(e.selectedUserMessages, (e) => {
|
|
2536
2543
|
if (t.value.length) for (let [r, i] of t.value.entries()) {
|
|
2537
2544
|
var n;
|
|
2538
2545
|
if (i.type === q.Assistant) continue;
|
|
@@ -2578,7 +2585,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2578
2585
|
let t = e.parentElement;
|
|
2579
2586
|
return t ? ai(t) : document.body;
|
|
2580
2587
|
}, oi = (e) => {
|
|
2581
|
-
let t =
|
|
2588
|
+
let t = I(!1), n = null, r = I(null), i = () => {
|
|
2582
2589
|
t.value = !0, n && clearTimeout(n), n = setTimeout(() => {
|
|
2583
2590
|
t.value = !1;
|
|
2584
2591
|
}, 300);
|
|
@@ -2587,7 +2594,7 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2587
2594
|
};
|
|
2588
2595
|
return E(() => {
|
|
2589
2596
|
var t, n, o, s;
|
|
2590
|
-
r.value = ai(
|
|
2597
|
+
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);
|
|
2591
2598
|
}), D(() => {
|
|
2592
2599
|
var e, t;
|
|
2593
2600
|
(e = r.value) == null || e.removeEventListener("scroll", i), (t = r.value) == null || t.removeEventListener("scrollend", a);
|
|
@@ -2596,9 +2603,9 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2596
2603
|
scrollParent: r
|
|
2597
2604
|
};
|
|
2598
2605
|
}, si = Symbol("KEYWORD_TOKEN"), ci = Symbol("RENDER_MODE_TOKEN"), li = Symbol("COMMON_TIPPY_OPTIONS_TOKEN"), ui = () => {
|
|
2599
|
-
let e =
|
|
2606
|
+
let e = I("");
|
|
2600
2607
|
return A(si, a(() => e.value)), { keyword: e };
|
|
2601
|
-
}, di = ({ renderMode: e }) => (A(ci, a(() =>
|
|
2608
|
+
}, di = ({ renderMode: e }) => (A(ci, a(() => R(e))), { renderMode: e }), fi = () => _(ci, a(() => Pt.Chat)), pi = (e) => {
|
|
2602
2609
|
A(li, e.tippyOptions);
|
|
2603
2610
|
}, mi = () => _(si, void 0), hi = () => _(li, void 0), gi = (e) => {
|
|
2604
2611
|
let t = mi();
|
|
@@ -2672,14 +2679,14 @@ var Wr = () => _(Br), Gr = (() => {
|
|
|
2672
2679
|
} })), s = (e) => {
|
|
2673
2680
|
n.disabled || r("click", n, e);
|
|
2674
2681
|
};
|
|
2675
|
-
return (t, n) =>
|
|
2682
|
+
return (t, n) => U((k(), c("div", {
|
|
2676
2683
|
class: S(["ai-tool-btn", {
|
|
2677
2684
|
"is-active": e.active,
|
|
2678
2685
|
"is-disabled": e.disabled
|
|
2679
2686
|
}]),
|
|
2680
2687
|
style: w({ "--ai-tool-btn-active-color": e.id === "like" || e.id === "activeLike" ? "#3a84ff" : "#E71818" }),
|
|
2681
2688
|
onClick: s
|
|
2682
|
-
}, [
|
|
2689
|
+
}, [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]]);
|
|
2683
2690
|
}
|
|
2684
2691
|
}), 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({
|
|
2685
2692
|
Any: () => xi,
|
|
@@ -5503,7 +5510,7 @@ var kc = (e) => {
|
|
|
5503
5510
|
props: { token: {} },
|
|
5504
5511
|
emits: ["mounted"],
|
|
5505
5512
|
setup(t, { emit: n }) {
|
|
5506
|
-
let r = t, i = n, o =
|
|
5513
|
+
let r = t, i = n, o = B("codeRef"), u = I(""), { copy: p } = Pr(), m = I([]), g = I(""), _ = I(""), v = /* @__PURE__ */ new Map(), y = (e) => {
|
|
5507
5514
|
for (let n of e) if (n.type === "fence" || n.type === "code_block") {
|
|
5508
5515
|
var t;
|
|
5509
5516
|
return {
|
|
@@ -5564,7 +5571,7 @@ var kc = (e) => {
|
|
|
5564
5571
|
let { language: e } = y(r.token), t = ["hljs"];
|
|
5565
5572
|
return e && t.push(`language-${e}`), t.join(" ");
|
|
5566
5573
|
});
|
|
5567
|
-
|
|
5574
|
+
V(() => r.token, (e) => {
|
|
5568
5575
|
let { content: t, language: n } = y(e);
|
|
5569
5576
|
u.value = n, E(t, n), x(() => {
|
|
5570
5577
|
i("mounted", { get el() {
|
|
@@ -5581,8 +5588,8 @@ var kc = (e) => {
|
|
|
5581
5588
|
t && p(t);
|
|
5582
5589
|
};
|
|
5583
5590
|
return (n, r) => (k(), c("div", Kc, [l("div", qc, [
|
|
5584
|
-
l("span", Jc,
|
|
5585
|
-
|
|
5591
|
+
l("span", Jc, L(u.value), 1),
|
|
5592
|
+
P(n.$slots, "header", C(h({
|
|
5586
5593
|
language: u.value,
|
|
5587
5594
|
token: t.token
|
|
5588
5595
|
}))),
|
|
@@ -5596,10 +5603,10 @@ var kc = (e) => {
|
|
|
5596
5603
|
ref_key: "codeRef",
|
|
5597
5604
|
ref: o,
|
|
5598
5605
|
class: S(D.value)
|
|
5599
|
-
}, [(k(!0), c(e, null,
|
|
5606
|
+
}, [(k(!0), c(e, null, N(m.value, (t, n) => (k(), c(e, { key: `completed-${n}` }, [l("span", {
|
|
5600
5607
|
class: "code-line",
|
|
5601
5608
|
innerHTML: t.html
|
|
5602
|
-
}, null, 8, Xc), r[0] || (r[0] = d(
|
|
5609
|
+
}, null, 8, Xc), r[0] || (r[0] = d(L("\n"), -1))], 64))), 128)), g.value ? (k(), c("span", {
|
|
5603
5610
|
key: 0,
|
|
5604
5611
|
class: "code-line current-line",
|
|
5605
5612
|
innerHTML: _.value
|
|
@@ -5618,7 +5625,7 @@ var kc = (e) => {
|
|
|
5618
5625
|
src: {}
|
|
5619
5626
|
},
|
|
5620
5627
|
setup(e) {
|
|
5621
|
-
let t = /* @__PURE__ */ new Set(), n = e, r = a(() => t.has(n.src)), i =
|
|
5628
|
+
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(() => {
|
|
5622
5629
|
s.value = !0;
|
|
5623
5630
|
}, 500), h = a(() => {
|
|
5624
5631
|
var e;
|
|
@@ -5652,19 +5659,19 @@ var kc = (e) => {
|
|
|
5652
5659
|
leading: !0,
|
|
5653
5660
|
trailing: !0
|
|
5654
5661
|
});
|
|
5655
|
-
return
|
|
5662
|
+
return V(() => n.src, (e) => {
|
|
5656
5663
|
if (t.has(e)) {
|
|
5657
5664
|
u = e, i.value = !1, o.value = !1, s.value = !0;
|
|
5658
5665
|
return;
|
|
5659
5666
|
}
|
|
5660
5667
|
s.value = !1, m(), h.value ? g(e) : (i.value = !0, o.value = !1);
|
|
5661
|
-
}, { immediate: !0 }),
|
|
5668
|
+
}, { immediate: !0 }), V(h, (e) => {
|
|
5662
5669
|
e && n.src && g(n.src);
|
|
5663
|
-
}), (t, n) => (k(), c("span", el, [d.value ? (k(), c("span", tl, [f(
|
|
5670
|
+
}), (t, n) => (k(), c("span", el, [d.value ? (k(), c("span", tl, [f(z(me), {
|
|
5664
5671
|
mode: "spin",
|
|
5665
5672
|
size: "mini",
|
|
5666
5673
|
theme: "primary"
|
|
5667
|
-
}), l("span", nl,
|
|
5674
|
+
}), 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", {
|
|
5668
5675
|
key: 2,
|
|
5669
5676
|
alt: e.alt,
|
|
5670
5677
|
class: "md-image",
|
|
@@ -5676,7 +5683,7 @@ var kc = (e) => {
|
|
|
5676
5683
|
__name: "latex-content",
|
|
5677
5684
|
props: { token: {} },
|
|
5678
5685
|
setup(e) {
|
|
5679
|
-
let t = e, n =
|
|
5686
|
+
let t = e, n = I(""), r = [
|
|
5680
5687
|
"frac",
|
|
5681
5688
|
"dfrac",
|
|
5682
5689
|
"tfrac",
|
|
@@ -5882,7 +5889,7 @@ var kc = (e) => {
|
|
|
5882
5889
|
}
|
|
5883
5890
|
return t;
|
|
5884
5891
|
}, 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");
|
|
5885
|
-
return
|
|
5892
|
+
return V(() => t.token, Te(() => {
|
|
5886
5893
|
let e = h(t.token);
|
|
5887
5894
|
e && n.value !== e && (n.value = e);
|
|
5888
5895
|
}, 100, {
|
|
@@ -5891,7 +5898,7 @@ var kc = (e) => {
|
|
|
5891
5898
|
}), {
|
|
5892
5899
|
deep: !0,
|
|
5893
5900
|
immediate: !0
|
|
5894
|
-
}), (e, t) => (k(), o(
|
|
5901
|
+
}), (e, t) => (k(), o(F(_.value), {
|
|
5895
5902
|
class: S(v.value),
|
|
5896
5903
|
innerHTML: n.value
|
|
5897
5904
|
}, null, 8, ["class", "innerHTML"]));
|
|
@@ -5901,7 +5908,7 @@ var kc = (e) => {
|
|
|
5901
5908
|
props: { token: {} },
|
|
5902
5909
|
emits: ["mounted"],
|
|
5903
5910
|
setup(e, { emit: t }) {
|
|
5904
|
-
let n =
|
|
5911
|
+
let n = I(""), r = B("mermaidContentRef"), i = e, a = t, o = null, s = "", l = function() {
|
|
5905
5912
|
var e = Z(function* () {
|
|
5906
5913
|
if (o) return o;
|
|
5907
5914
|
if (!o) try {
|
|
@@ -5921,7 +5928,7 @@ var kc = (e) => {
|
|
|
5921
5928
|
}
|
|
5922
5929
|
return "";
|
|
5923
5930
|
};
|
|
5924
|
-
return
|
|
5931
|
+
return V(() => i.token, Te(function() {
|
|
5925
5932
|
var e = Z(function* (e) {
|
|
5926
5933
|
let t = u(e);
|
|
5927
5934
|
if (t === s) return;
|
|
@@ -5961,7 +5968,7 @@ var kc = (e) => {
|
|
|
5961
5968
|
__name: "common-error-content",
|
|
5962
5969
|
props: { content: {} },
|
|
5963
5970
|
setup(e) {
|
|
5964
|
-
return (t, n) => (k(), c("div", dl, [f(
|
|
5971
|
+
return (t, n) => (k(), c("div", dl, [f(z(Fn)), l("div", fl, L(e.content), 1)]));
|
|
5965
5972
|
}
|
|
5966
5973
|
}), ml = /* @__PURE__ */ new Map(), hl = () => {
|
|
5967
5974
|
ml = /* @__PURE__ */ new Map();
|
|
@@ -6155,7 +6162,7 @@ var kc = (e) => {
|
|
|
6155
6162
|
"encoding",
|
|
6156
6163
|
"style"
|
|
6157
6164
|
]
|
|
6158
|
-
}, r = t, i = zr(), a =
|
|
6165
|
+
}, 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 = {
|
|
6159
6166
|
html: !0,
|
|
6160
6167
|
mditOptions: s.options,
|
|
6161
6168
|
renderer: s.renderer,
|
|
@@ -6197,7 +6204,7 @@ var kc = (e) => {
|
|
|
6197
6204
|
}
|
|
6198
6205
|
return t;
|
|
6199
6206
|
};
|
|
6200
|
-
|
|
6207
|
+
V(() => r.content, Te((e) => {
|
|
6201
6208
|
if (!e) {
|
|
6202
6209
|
a.value = [];
|
|
6203
6210
|
return;
|
|
@@ -6224,32 +6231,32 @@ var kc = (e) => {
|
|
|
6224
6231
|
leading: !0,
|
|
6225
6232
|
trailing: !0
|
|
6226
6233
|
});
|
|
6227
|
-
return (n, r) => (k(), c("div", Al, [t.status ===
|
|
6234
|
+
return (n, r) => (k(), c("div", Al, [t.status === z(J).Error ? (k(), o(pl, {
|
|
6228
6235
|
key: 0,
|
|
6229
6236
|
content: t.content
|
|
6230
|
-
}, null, 8, ["content"])) : (k(), c("div", jl, [(k(!0), c(e, null,
|
|
6237
|
+
}, 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), {
|
|
6231
6238
|
key: r,
|
|
6232
6239
|
token: t,
|
|
6233
|
-
onMounted:
|
|
6240
|
+
onMounted: z(m)
|
|
6234
6241
|
}, null, 8, ["token", "onMounted"])) : f(t) ? (k(), o(cl, {
|
|
6235
6242
|
key: r,
|
|
6236
6243
|
token: t,
|
|
6237
|
-
onMounted:
|
|
6238
|
-
}, null, 8, ["token", "onMounted"])) : d(t) ? (k(), o(
|
|
6244
|
+
onMounted: z(m)
|
|
6245
|
+
}, null, 8, ["token", "onMounted"])) : d(t) ? (k(), o(z($c), {
|
|
6239
6246
|
key: r,
|
|
6240
6247
|
token: t,
|
|
6241
|
-
onMounted:
|
|
6248
|
+
onMounted: z(m)
|
|
6242
6249
|
}, {
|
|
6243
|
-
header:
|
|
6250
|
+
header: H(({ language: e, token: t }) => [P(n.$slots, "codeHeader", b({ ref_for: !0 }, {
|
|
6244
6251
|
language: e,
|
|
6245
6252
|
token: t
|
|
6246
6253
|
}))]),
|
|
6247
6254
|
_: 3
|
|
6248
|
-
}, 8, ["token", "onMounted"])) : (k(), o(
|
|
6255
|
+
}, 8, ["token", "onMounted"])) : (k(), o(z(kl), {
|
|
6249
6256
|
key: r,
|
|
6250
6257
|
options: l,
|
|
6251
6258
|
tokens: t,
|
|
6252
|
-
onVnodeMounted:
|
|
6259
|
+
onVnodeMounted: z(m)
|
|
6253
6260
|
}, null, 8, ["tokens", "onVnodeMounted"]))], 64))), 128))]))]));
|
|
6254
6261
|
}
|
|
6255
6262
|
}), Nl = ["onClick"], Pl = /* @__PURE__ */ m({
|
|
@@ -6263,27 +6270,27 @@ var kc = (e) => {
|
|
|
6263
6270
|
url: e.url,
|
|
6264
6271
|
originFileUrl: e.originFile
|
|
6265
6272
|
})));
|
|
6266
|
-
return (t, n) => (k(!0), c(e, null,
|
|
6273
|
+
return (t, n) => (k(!0), c(e, null, N(i.value, (e) => (k(), c("div", {
|
|
6267
6274
|
key: e.title,
|
|
6268
6275
|
class: "ai-reference-item"
|
|
6269
6276
|
}, [
|
|
6270
|
-
f(
|
|
6277
|
+
f(z(bn), { color: "#D66F6B" }),
|
|
6271
6278
|
l("span", {
|
|
6272
6279
|
class: "ai-reference-item-title",
|
|
6273
6280
|
onClick: (t) => e.url && r(e.url, t)
|
|
6274
|
-
},
|
|
6275
|
-
e.url && e.originFileUrl ?
|
|
6281
|
+
}, L(e.title), 9, Nl),
|
|
6282
|
+
e.url && e.originFileUrl ? U((k(), o(z(qt), {
|
|
6276
6283
|
key: 0,
|
|
6277
6284
|
onClick: (t) => e.url && r(e.url, t)
|
|
6278
|
-
}, null, 8, ["onClick"])), [[
|
|
6279
|
-
content:
|
|
6285
|
+
}, null, 8, ["onClick"])), [[z(Se), {
|
|
6286
|
+
content: z(G)("预览内容"),
|
|
6280
6287
|
theme: "ai-chat-box"
|
|
6281
6288
|
}]]) : s("", !0),
|
|
6282
|
-
e.url && e.originFileUrl ?
|
|
6289
|
+
e.url && e.originFileUrl ? U((k(), o(z(Jt), {
|
|
6283
6290
|
key: 1,
|
|
6284
6291
|
onClick: (t) => e.originFileUrl && r(e.originFileUrl, t)
|
|
6285
|
-
}, null, 8, ["onClick"])), [[
|
|
6286
|
-
content:
|
|
6292
|
+
}, null, 8, ["onClick"])), [[z(Se), {
|
|
6293
|
+
content: z(G)("跳转详情"),
|
|
6287
6294
|
theme: "ai-chat-box"
|
|
6288
6295
|
}]]) : s("", !0)
|
|
6289
6296
|
]))), 128));
|
|
@@ -6296,7 +6303,7 @@ var kc = (e) => {
|
|
|
6296
6303
|
type: {}
|
|
6297
6304
|
},
|
|
6298
6305
|
setup(e) {
|
|
6299
|
-
let t =
|
|
6306
|
+
let t = ie(), n = e, r = a(() => {
|
|
6300
6307
|
if (typeof n.content == "string" || n.type === _t.Text) return g(Ml, {
|
|
6301
6308
|
content: n.content,
|
|
6302
6309
|
status: n.status
|
|
@@ -6306,7 +6313,7 @@ var kc = (e) => {
|
|
|
6306
6313
|
} });
|
|
6307
6314
|
if (typeof n.content == "object" && Array.isArray(n.content)) return g(Pl, { content: n.content });
|
|
6308
6315
|
});
|
|
6309
|
-
return (e, t) =>
|
|
6316
|
+
return (e, t) => P(e.$slots, "default", C(h({ content: n.content })), () => [(k(), o(F(r.value)))]);
|
|
6310
6317
|
}
|
|
6311
6318
|
}), Il = ([e], [t]) => e === t ? 0 : e < t ? 1 : -1, Ll = (e, t) => {
|
|
6312
6319
|
let n = Il(e, t);
|
|
@@ -6673,7 +6680,7 @@ var kc = (e) => {
|
|
|
6673
6680
|
}
|
|
6674
6681
|
}, j = () => {
|
|
6675
6682
|
S || k();
|
|
6676
|
-
},
|
|
6683
|
+
}, M = (e) => {
|
|
6677
6684
|
e.preventDefault();
|
|
6678
6685
|
let t = e.inputType;
|
|
6679
6686
|
if (t.startsWith("format") || t === "historyUndo" || t === "historyRedo") return;
|
|
@@ -6688,31 +6695,31 @@ var kc = (e) => {
|
|
|
6688
6695
|
x || (x = new Gl().select(...l)), Ll(...i) !== 0 && x.delete(...i), a && x.insert(i[0], Bl(a));
|
|
6689
6696
|
}
|
|
6690
6697
|
S || k();
|
|
6691
|
-
},
|
|
6698
|
+
}, ee = () => {
|
|
6692
6699
|
S || O(), S = !0;
|
|
6693
|
-
}, M = () => {
|
|
6694
|
-
k();
|
|
6695
6700
|
}, N = () => {
|
|
6696
|
-
|
|
6701
|
+
k();
|
|
6697
6702
|
}, P = () => {
|
|
6698
|
-
C = !
|
|
6703
|
+
C = !0, O();
|
|
6699
6704
|
}, F = () => {
|
|
6705
|
+
C = !1;
|
|
6706
|
+
}, I = () => {
|
|
6700
6707
|
if (b) {
|
|
6701
6708
|
b = !1;
|
|
6702
6709
|
return;
|
|
6703
6710
|
}
|
|
6704
6711
|
C && !S && !w && O();
|
|
6705
|
-
}, I = (e) => {
|
|
6706
|
-
O(), Ll(...l) !== 0 && r(e, $l(f(), ...Rl(l)), n);
|
|
6707
|
-
}, ne = (e) => {
|
|
6708
|
-
e.preventDefault(), I(e.clipboardData);
|
|
6709
6712
|
}, L = (e) => {
|
|
6710
|
-
|
|
6713
|
+
O(), Ll(...l) !== 0 && r(e, $l(f(), ...Rl(l)), n);
|
|
6714
|
+
}, te = (e) => {
|
|
6715
|
+
e.preventDefault(), L(e.clipboardData);
|
|
6711
6716
|
}, R = (e) => {
|
|
6717
|
+
e.preventDefault(), u || (L(e.clipboardData), h(new Gl().delete(...Rl(l))));
|
|
6718
|
+
}, z = (e) => {
|
|
6712
6719
|
e.preventDefault();
|
|
6713
6720
|
let [t, n] = Rl(l);
|
|
6714
6721
|
h(new Gl().delete(t, n).insert(t, i(e.clipboardData, E)));
|
|
6715
|
-
},
|
|
6722
|
+
}, ne = (e) => {
|
|
6716
6723
|
e.preventDefault();
|
|
6717
6724
|
let t = e.dataTransfer, r = Zu(T, n, e, E);
|
|
6718
6725
|
if (t && r) {
|
|
@@ -6721,13 +6728,13 @@ var kc = (e) => {
|
|
|
6721
6728
|
let a = e.transform(r);
|
|
6722
6729
|
e.select(a, a).insert(a, i(t, E)).select(a), h(e), n.focus({ preventScroll: !0 });
|
|
6723
6730
|
}
|
|
6724
|
-
},
|
|
6725
|
-
w = !0,
|
|
6726
|
-
},
|
|
6731
|
+
}, re = (e) => {
|
|
6732
|
+
w = !0, L(e.dataTransfer);
|
|
6733
|
+
}, ie = () => {
|
|
6727
6734
|
w = !1;
|
|
6728
6735
|
};
|
|
6729
|
-
return T.addEventListener("selectionchange",
|
|
6730
|
-
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",
|
|
6736
|
+
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), () => {
|
|
6737
|
+
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));
|
|
6731
6738
|
};
|
|
6732
6739
|
},
|
|
6733
6740
|
command: (e, ...t) => {
|
|
@@ -6843,7 +6850,7 @@ var kc = (e) => {
|
|
|
6843
6850
|
},
|
|
6844
6851
|
emits: ["upload"],
|
|
6845
6852
|
setup(e, { emit: t }) {
|
|
6846
|
-
let n = t, r =
|
|
6853
|
+
let n = t, r = B("fileInputRef"), i = () => {
|
|
6847
6854
|
var e;
|
|
6848
6855
|
(e = r.value) == null || e.click();
|
|
6849
6856
|
}, a = (e) => {
|
|
@@ -6866,11 +6873,11 @@ var kc = (e) => {
|
|
|
6866
6873
|
multiple: "",
|
|
6867
6874
|
type: "file",
|
|
6868
6875
|
onChange: a
|
|
6869
|
-
}, null, 40, yd),
|
|
6876
|
+
}, null, 40, yd), U((k(), c("span", {
|
|
6870
6877
|
class: "ai-shortcut-btn file-upload-btn-icon",
|
|
6871
6878
|
onClick: i
|
|
6872
|
-
}, [
|
|
6873
|
-
content:
|
|
6879
|
+
}, [P(t.$slots, "default", {}, () => [f(z(Sn))])])), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
6880
|
+
content: z(G)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
|
|
6874
6881
|
theme: "ai-chat-box",
|
|
6875
6882
|
offset: [0, 16]
|
|
6876
6883
|
})]])]));
|
|
@@ -6883,9 +6890,9 @@ var kc = (e) => {
|
|
|
6883
6890
|
},
|
|
6884
6891
|
setup(e) {
|
|
6885
6892
|
return (t, n) => (k(), c("div", xd, [
|
|
6886
|
-
f(
|
|
6887
|
-
l("span", Sd,
|
|
6888
|
-
e.onClose ? (k(), o(
|
|
6893
|
+
f(z(Gn)),
|
|
6894
|
+
l("span", Sd, L(e.content), 1),
|
|
6895
|
+
e.onClose ? (k(), o(z(Bn), {
|
|
6889
6896
|
key: 0,
|
|
6890
6897
|
onClick: n[0] || (n[0] = (t) => {
|
|
6891
6898
|
var n;
|
|
@@ -6919,48 +6926,48 @@ var kc = (e) => {
|
|
|
6919
6926
|
setup(t, { emit: n }) {
|
|
6920
6927
|
let r = n;
|
|
6921
6928
|
return (n, i) => (k(), c("div", wd, [l("div", Td, [
|
|
6922
|
-
t.isMultiple ? (k(), c("span", Ed,
|
|
6929
|
+
t.isMultiple ? (k(), c("span", Ed, L(t.activeIndex + 1) + " / " + L(t.total), 1)) : s("", !0),
|
|
6923
6930
|
t.isMultiple ? (k(), c("span", Dd)) : s("", !0),
|
|
6924
6931
|
l("div", {
|
|
6925
6932
|
class: "ai-image-preview-toolbar-btn",
|
|
6926
|
-
"data-tooltip":
|
|
6933
|
+
"data-tooltip": z(G)("缩小"),
|
|
6927
6934
|
onClick: i[0] || (i[0] = (e) => r("zoomOut"))
|
|
6928
|
-
}, [f(
|
|
6935
|
+
}, [f(z(ln))], 8, Od),
|
|
6929
6936
|
l("div", {
|
|
6930
6937
|
class: "ai-image-preview-toolbar-btn",
|
|
6931
|
-
"data-tooltip":
|
|
6938
|
+
"data-tooltip": z(G)("放大"),
|
|
6932
6939
|
onClick: i[1] || (i[1] = (e) => r("zoomIn"))
|
|
6933
|
-
}, [f(
|
|
6940
|
+
}, [f(z(cn))], 8, kd),
|
|
6934
6941
|
l("div", {
|
|
6935
6942
|
class: "ai-image-preview-toolbar-btn",
|
|
6936
|
-
"data-tooltip":
|
|
6943
|
+
"data-tooltip": z(G)("旋转"),
|
|
6937
6944
|
onClick: i[2] || (i[2] = (e) => r("rotate"))
|
|
6938
|
-
}, [f(
|
|
6945
|
+
}, [f(z(un))], 8, Ad),
|
|
6939
6946
|
l("div", {
|
|
6940
6947
|
class: "ai-image-preview-toolbar-btn",
|
|
6941
|
-
"data-tooltip":
|
|
6948
|
+
"data-tooltip": z(G)("重置"),
|
|
6942
6949
|
onClick: i[3] || (i[3] = (e) => r("reset"))
|
|
6943
|
-
}, [f(
|
|
6950
|
+
}, [f(z(dn))], 8, jd),
|
|
6944
6951
|
l("div", {
|
|
6945
6952
|
class: "ai-image-preview-toolbar-btn",
|
|
6946
|
-
"data-tooltip":
|
|
6953
|
+
"data-tooltip": z(G)("下载"),
|
|
6947
6954
|
onClick: i[4] || (i[4] = (e) => r("download"))
|
|
6948
|
-
}, [f(
|
|
6949
|
-
n.$slots.extra ? (k(), c(e, { key: 2 }, [i[5] || (i[5] = l("span", { class: "ai-image-preview-toolbar-divider" }, null, -1)),
|
|
6955
|
+
}, [f(z(fn))], 8, Md),
|
|
6956
|
+
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),
|
|
6950
6957
|
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, [
|
|
6951
|
-
f(
|
|
6952
|
-
l("span", null,
|
|
6958
|
+
f(z(vn), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6959
|
+
l("span", null, L(t.currentImageInfo.width) + " px " + L(z(G)("宽")), 1),
|
|
6953
6960
|
t.currentImageInfo.resolution ? (k(), c(e, { key: 0 }, [
|
|
6954
6961
|
i[6] || (i[6] = l("span", { class: "ai-image-preview-toolbar-info-dot" }, null, -1)),
|
|
6955
|
-
f(
|
|
6956
|
-
l("span", null,
|
|
6962
|
+
f(z(vn), { class: "ai-image-preview-toolbar-info-icon" }),
|
|
6963
|
+
l("span", null, L(t.currentImageInfo.resolution), 1)
|
|
6957
6964
|
], 64)) : s("", !0)
|
|
6958
6965
|
])], 64)) : s("", !0)
|
|
6959
6966
|
])]));
|
|
6960
6967
|
}
|
|
6961
6968
|
})), Fd = .15, Id = .1, Ld = 10;
|
|
6962
6969
|
function Rd() {
|
|
6963
|
-
let e =
|
|
6970
|
+
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(() => ({
|
|
6964
6971
|
transform: `translate(${n.value}px, ${r.value}px) scale(${e.value}) rotate(${t.value}deg)`,
|
|
6965
6972
|
cursor: i.value ? "grabbing" : "grab",
|
|
6966
6973
|
transition: i.value || o.value ? "none" : "transform 0.3s ease"
|
|
@@ -7016,7 +7023,7 @@ function zd(e) {
|
|
|
7016
7023
|
}, s = () => {
|
|
7017
7024
|
typeof document > "u" || (document.removeEventListener("keydown", a), document.body.style.overflow = "");
|
|
7018
7025
|
};
|
|
7019
|
-
|
|
7026
|
+
V(t, (e) => {
|
|
7020
7027
|
e ? o() : s();
|
|
7021
7028
|
}, { immediate: !0 }), T(() => {
|
|
7022
7029
|
s();
|
|
@@ -7054,7 +7061,7 @@ var Bd = ["src"], Vd = {
|
|
|
7054
7061
|
}),
|
|
7055
7062
|
emits: ["update:visible", "update:current"],
|
|
7056
7063
|
setup(n) {
|
|
7057
|
-
let i = n, d =
|
|
7064
|
+
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 = () => {
|
|
7058
7065
|
S.forEach((e) => URL.revokeObjectURL(e)), S.length = 0;
|
|
7059
7066
|
}, E = (e) => {
|
|
7060
7067
|
let t = URL.createObjectURL(e);
|
|
@@ -7074,17 +7081,17 @@ var Bd = ["src"], Vd = {
|
|
|
7074
7081
|
width: e.width,
|
|
7075
7082
|
resolution: e.resolution
|
|
7076
7083
|
};
|
|
7077
|
-
}),
|
|
7084
|
+
}), M = () => {
|
|
7078
7085
|
d.value = !1;
|
|
7079
|
-
},
|
|
7080
|
-
i.maskClosable &&
|
|
7081
|
-
},
|
|
7086
|
+
}, ee = () => {
|
|
7087
|
+
i.maskClosable && M();
|
|
7088
|
+
}, N = (e) => {
|
|
7082
7089
|
p.value = e, h(), x.value = "loading";
|
|
7083
|
-
},
|
|
7084
|
-
|
|
7085
|
-
},
|
|
7086
|
-
|
|
7087
|
-
},
|
|
7090
|
+
}, F = () => {
|
|
7091
|
+
N(p.value > 0 ? p.value - 1 : D.value.length - 1);
|
|
7092
|
+
}, te = () => {
|
|
7093
|
+
N(p.value < D.value.length - 1 ? p.value + 1 : 0);
|
|
7094
|
+
}, R = () => {
|
|
7088
7095
|
let e = O.value, t = e.downloadUrl || e.url;
|
|
7089
7096
|
if (i.onDownload) {
|
|
7090
7097
|
i.onDownload(t);
|
|
@@ -7092,54 +7099,54 @@ var Bd = ["src"], Vd = {
|
|
|
7092
7099
|
}
|
|
7093
7100
|
let n = document.createElement("a");
|
|
7094
7101
|
n.href = t, n.download = e.name || t.split("/").pop() || "image", n.target = "_blank", document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
7095
|
-
},
|
|
7102
|
+
}, ne = () => {
|
|
7096
7103
|
x.value = "loaded";
|
|
7097
|
-
},
|
|
7104
|
+
}, ie = () => {
|
|
7098
7105
|
x.value = "error";
|
|
7099
7106
|
};
|
|
7100
7107
|
return zd({
|
|
7101
7108
|
visible: d,
|
|
7102
|
-
onClose:
|
|
7103
|
-
onPrev: () => A.value &&
|
|
7104
|
-
onNext: () => A.value &&
|
|
7109
|
+
onClose: M,
|
|
7110
|
+
onPrev: () => A.value && F(),
|
|
7111
|
+
onNext: () => A.value && te()
|
|
7105
7112
|
}), (i, a) => (k(), o(t, { to: "body" }, [f(r, { name: "ai-image-preview-fade" }, {
|
|
7106
|
-
default:
|
|
7113
|
+
default: H(() => [d.value ? (k(), c("div", {
|
|
7107
7114
|
key: 0,
|
|
7108
7115
|
class: "ai-image-preview",
|
|
7109
|
-
onWheel: a[1] || (a[1] =
|
|
7116
|
+
onWheel: a[1] || (a[1] = le((...e) => z(y) && z(y)(...e), ["prevent"]))
|
|
7110
7117
|
}, [
|
|
7111
7118
|
l("div", {
|
|
7112
7119
|
class: "ai-image-preview-close",
|
|
7113
|
-
onClick:
|
|
7114
|
-
}, [f(
|
|
7120
|
+
onClick: M
|
|
7121
|
+
}, [f(z(pn), { class: "ai-image-preview-close-icon" })]),
|
|
7115
7122
|
A.value ? (k(), c(e, { key: 0 }, [l("div", {
|
|
7116
7123
|
class: "ai-image-preview-arrow ai-image-preview-arrow-left",
|
|
7117
|
-
onClick:
|
|
7118
|
-
}, [f(
|
|
7124
|
+
onClick: F
|
|
7125
|
+
}, [f(z(mn), { class: "ai-image-preview-arrow-icon" })]), l("div", {
|
|
7119
7126
|
class: "ai-image-preview-arrow ai-image-preview-arrow-right",
|
|
7120
|
-
onClick:
|
|
7121
|
-
}, [f(
|
|
7127
|
+
onClick: te
|
|
7128
|
+
}, [f(z(hn), { class: "ai-image-preview-arrow-icon" })])], 64)) : s("", !0),
|
|
7122
7129
|
l("div", {
|
|
7123
7130
|
class: "ai-image-preview-body",
|
|
7124
|
-
onClick:
|
|
7125
|
-
onMousedown: a[0] || (a[0] = (...e) =>
|
|
7131
|
+
onClick: le(ee, ["self"]),
|
|
7132
|
+
onMousedown: a[0] || (a[0] = (...e) => z(b) && z(b)(...e))
|
|
7126
7133
|
}, [
|
|
7127
7134
|
x.value === "error" ? s("", !0) : (k(), c("img", {
|
|
7128
7135
|
key: 0,
|
|
7129
7136
|
class: "ai-image-preview-img",
|
|
7130
7137
|
draggable: "false",
|
|
7131
7138
|
src: O.value.url,
|
|
7132
|
-
style: w(
|
|
7133
|
-
onError:
|
|
7134
|
-
onLoad:
|
|
7139
|
+
style: w(z(m)),
|
|
7140
|
+
onError: ie,
|
|
7141
|
+
onLoad: ne
|
|
7135
7142
|
}, null, 44, Bd)),
|
|
7136
|
-
x.value === "error" ? (k(), c("div", Vd, [f(
|
|
7143
|
+
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),
|
|
7137
7144
|
x.value === "loading" ? (k(), c("div", Ud, [O.value.thumbnailUrl ? (k(), c("img", {
|
|
7138
7145
|
key: 0,
|
|
7139
7146
|
class: "ai-image-preview-img ai-image-preview-img--blur",
|
|
7140
7147
|
draggable: "false",
|
|
7141
7148
|
src: O.value.thumbnailUrl,
|
|
7142
|
-
style: w(
|
|
7149
|
+
style: w(z(m))
|
|
7143
7150
|
}, null, 12, Wd)) : s("", !0)])) : s("", !0)
|
|
7144
7151
|
], 32),
|
|
7145
7152
|
f(Pd, {
|
|
@@ -7148,14 +7155,14 @@ var Bd = ["src"], Vd = {
|
|
|
7148
7155
|
"is-multiple": A.value,
|
|
7149
7156
|
"show-info": n.showInfo,
|
|
7150
7157
|
total: D.value.length,
|
|
7151
|
-
onDownload:
|
|
7152
|
-
onReset:
|
|
7153
|
-
onRotate:
|
|
7154
|
-
onZoomIn:
|
|
7155
|
-
onZoomOut:
|
|
7158
|
+
onDownload: R,
|
|
7159
|
+
onReset: z(h),
|
|
7160
|
+
onRotate: z(v),
|
|
7161
|
+
onZoomIn: z(g),
|
|
7162
|
+
onZoomOut: z(_)
|
|
7156
7163
|
}, u({ _: 2 }, [i.$slots.extra ? {
|
|
7157
7164
|
name: "extra",
|
|
7158
|
-
fn:
|
|
7165
|
+
fn: H(() => [P(i.$slots, "extra")]),
|
|
7159
7166
|
key: "0"
|
|
7160
7167
|
} : void 0]), 1032, [
|
|
7161
7168
|
"active-index",
|
|
@@ -7201,11 +7208,11 @@ var Bd = ["src"], Vd = {
|
|
|
7201
7208
|
u[p(e)] = !0;
|
|
7202
7209
|
}, h = (e) => {
|
|
7203
7210
|
r("deleteFile", e);
|
|
7204
|
-
}, g =
|
|
7211
|
+
}, 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) => {
|
|
7205
7212
|
let t = v.value.indexOf(e);
|
|
7206
7213
|
t < 0 || (_.value = t, g.value = !0);
|
|
7207
7214
|
};
|
|
7208
|
-
return (n, r) => (k(), c("div", Kd, [(k(!0), c(e, null,
|
|
7215
|
+
return (n, r) => (k(), c("div", Kd, [(k(!0), c(e, null, N(t.files, (e) => {
|
|
7209
7216
|
var n, r, i, a, g;
|
|
7210
7217
|
return k(), c("div", {
|
|
7211
7218
|
key: (n = e.file) == null ? void 0 : n.name,
|
|
@@ -7214,14 +7221,14 @@ var Bd = ["src"], Vd = {
|
|
|
7214
7221
|
key: 0,
|
|
7215
7222
|
alt: e.filename || ((r = e.file) == null ? void 0 : r.name),
|
|
7216
7223
|
class: "file-content-image",
|
|
7217
|
-
src: e.url ||
|
|
7224
|
+
src: e.url || z(Re)(e.file),
|
|
7218
7225
|
onClick: (t) => b(e),
|
|
7219
7226
|
onError: (t) => m(e)
|
|
7220
|
-
}, null, 40, qd)) : d(e) && u[p(e)] ? (k(), c("div", Jd, [f(
|
|
7221
|
-
f(
|
|
7222
|
-
l("span", Zd,
|
|
7223
|
-
l("span", Qd,
|
|
7224
|
-
]), l("div", $d,
|
|
7227
|
+
}, 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, [
|
|
7228
|
+
f(z(Kt), { class: "file-icon" }),
|
|
7229
|
+
l("span", Zd, L(e.filename || ((i = e.file) == null ? void 0 : i.name)), 1),
|
|
7230
|
+
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)
|
|
7231
|
+
]), l("div", $d, L(z(Be)(e.file)), 1)])), t.readonly ? s("", !0) : (k(), o(z(xn), {
|
|
7225
7232
|
key: 3,
|
|
7226
7233
|
class: "file-delete-icon",
|
|
7227
7234
|
onClick: (t) => h(e)
|
|
@@ -7245,7 +7252,7 @@ var Bd = ["src"], Vd = {
|
|
|
7245
7252
|
prompts: {}
|
|
7246
7253
|
},
|
|
7247
7254
|
setup(t) {
|
|
7248
|
-
let n = t, r =
|
|
7255
|
+
let n = t, r = B("promptListRef"), { activeIndex: i } = Xr({
|
|
7249
7256
|
items: a(() => n.prompts),
|
|
7250
7257
|
onSelect: n.onSelect,
|
|
7251
7258
|
menuRef: r
|
|
@@ -7254,11 +7261,11 @@ var Bd = ["src"], Vd = {
|
|
|
7254
7261
|
ref_key: "promptListRef",
|
|
7255
7262
|
ref: r,
|
|
7256
7263
|
class: "ai-prompt-list"
|
|
7257
|
-
}, [(k(!0), c(e, null,
|
|
7264
|
+
}, [(k(!0), c(e, null, N(t.prompts, (e, n) => (k(), c("div", {
|
|
7258
7265
|
key: e,
|
|
7259
|
-
class: S(["ai-prompt-list-item", { "is-active":
|
|
7266
|
+
class: S(["ai-prompt-list-item", { "is-active": z(i) === n }]),
|
|
7260
7267
|
onClick: (n) => t.onSelect(e)
|
|
7261
|
-
},
|
|
7268
|
+
}, L(e), 11, tf))), 128))], 512));
|
|
7262
7269
|
}
|
|
7263
7270
|
}), rf = ["onClick"], af = ["src", "onError"], of = {
|
|
7264
7271
|
key: 1,
|
|
@@ -7270,22 +7277,22 @@ var Bd = ["src"], Vd = {
|
|
|
7270
7277
|
skills: {}
|
|
7271
7278
|
},
|
|
7272
7279
|
setup(t) {
|
|
7273
|
-
let n = t, r = j(/* @__PURE__ */ new Set()), i =
|
|
7280
|
+
let n = t, r = j(/* @__PURE__ */ new Set()), i = B("skillListRef"), { activeIndex: o } = Xr({
|
|
7274
7281
|
items: a(() => n.skills),
|
|
7275
7282
|
onSelect: n.onSelect,
|
|
7276
7283
|
menuRef: i
|
|
7277
7284
|
});
|
|
7278
|
-
return
|
|
7285
|
+
return oe(() => {
|
|
7279
7286
|
n.skills, o.value = 0;
|
|
7280
7287
|
}), (n, a) => (k(), c("div", {
|
|
7281
7288
|
ref_key: "skillListRef",
|
|
7282
7289
|
ref: i,
|
|
7283
7290
|
class: "ai-skill-list"
|
|
7284
|
-
}, [(k(!0), c(e, null,
|
|
7291
|
+
}, [(k(!0), c(e, null, N(t.skills, (e, n) => {
|
|
7285
7292
|
var i;
|
|
7286
7293
|
return k(), c("div", {
|
|
7287
7294
|
key: e.skill_code,
|
|
7288
|
-
class: S(["ai-skill-list-item", { "is-active":
|
|
7295
|
+
class: S(["ai-skill-list-item", { "is-active": z(o) === n }]),
|
|
7289
7296
|
onClick: (n) => t.onSelect(e)
|
|
7290
7297
|
}, [e.icon && !r.has(e.skill_code) ? (k(), c("img", {
|
|
7291
7298
|
key: 0,
|
|
@@ -7293,7 +7300,7 @@ var Bd = ["src"], Vd = {
|
|
|
7293
7300
|
alt: "",
|
|
7294
7301
|
class: "ai-skill-list-item-icon",
|
|
7295
7302
|
onError: (t) => r.add(e.skill_code)
|
|
7296
|
-
}, null, 40, af)) : (k(), c("div", of,
|
|
7303
|
+
}, 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);
|
|
7297
7304
|
}), 128))], 512));
|
|
7298
7305
|
}
|
|
7299
7306
|
}), uf = { class: "ai-slash-item ai-slash-group-title" }, df = ["onClick"], ff = ["onClick"], pf = ["title"], mf = /* @__PURE__ */ m({
|
|
@@ -7303,18 +7310,18 @@ var Bd = ["src"], Vd = {
|
|
|
7303
7310
|
resourceList: {}
|
|
7304
7311
|
},
|
|
7305
7312
|
setup(t) {
|
|
7306
|
-
let n = t, r =
|
|
7313
|
+
let n = t, r = B("menuRef"), i = ee([
|
|
7307
7314
|
"tool",
|
|
7308
7315
|
"shortcut",
|
|
7309
7316
|
"doc",
|
|
7310
7317
|
"knowledgebase",
|
|
7311
7318
|
"mcp"
|
|
7312
|
-
]), a =
|
|
7319
|
+
]), a = I([]), o = I([]), { activeIndex: u } = Xr({
|
|
7313
7320
|
items: a,
|
|
7314
7321
|
onSelect: n.onSelect,
|
|
7315
7322
|
menuRef: r
|
|
7316
7323
|
});
|
|
7317
|
-
|
|
7324
|
+
oe(() => {
|
|
7318
7325
|
let e = [], t = [];
|
|
7319
7326
|
for (let [a, o] of Object.entries(fd)) {
|
|
7320
7327
|
var r, i;
|
|
@@ -7339,7 +7346,7 @@ var Bd = ["src"], Vd = {
|
|
|
7339
7346
|
ref_key: "menuRef",
|
|
7340
7347
|
ref: r,
|
|
7341
7348
|
class: "ai-slash-menu"
|
|
7342
|
-
}, [(k(!0), c(e, null,
|
|
7349
|
+
}, [(k(!0), c(e, null, N(o.value, (n, r) => (k(), c(e, null, [n.items.length > 0 ? (k(), c("div", {
|
|
7343
7350
|
key: r,
|
|
7344
7351
|
class: "ai-slash-group"
|
|
7345
7352
|
}, [l("div", uf, [
|
|
@@ -7350,17 +7357,17 @@ var Bd = ["src"], Vd = {
|
|
|
7350
7357
|
onClick: (e) => f(n)
|
|
7351
7358
|
}, [...p[0] || (p[0] = [l("path", { d: "M800 512L288 928V96z" }, null, -1)])], 12, df)),
|
|
7352
7359
|
l("span", { class: S(`mark-${n.type}`) }, null, 2),
|
|
7353
|
-
d(" " +
|
|
7354
|
-
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 },
|
|
7360
|
+
d(" " + L(n.name) + " (" + L(n.items.length) + ") ", 1)
|
|
7361
|
+
]), i.value.includes(n.type) ? (k(!0), c(e, { key: 0 }, N(n.items, (e) => {
|
|
7355
7362
|
var n;
|
|
7356
7363
|
return k(), c("div", {
|
|
7357
7364
|
key: e.id,
|
|
7358
|
-
class: S(["ai-slash-item ai-slash-group-item", { "is-active": ((n = a.value) == null || (n = n[
|
|
7365
|
+
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 }]),
|
|
7359
7366
|
onClick: (n) => t.onSelect(e)
|
|
7360
|
-
}, [
|
|
7367
|
+
}, [U((k(), c("span", {
|
|
7361
7368
|
class: "ellipsis-text",
|
|
7362
7369
|
title: e.name
|
|
7363
|
-
}, [d(
|
|
7370
|
+
}, [d(L(e.name), 1)], 8, pf)), [[z(vi), {
|
|
7364
7371
|
text: e.name,
|
|
7365
7372
|
zIndex: 9999999,
|
|
7366
7373
|
placement: "right-start",
|
|
@@ -7392,7 +7399,7 @@ var Bd = ["src"], Vd = {
|
|
|
7392
7399
|
"upload"
|
|
7393
7400
|
],
|
|
7394
7401
|
setup(t, { expose: n, emit: r }) {
|
|
7395
|
-
let i =
|
|
7402
|
+
let i = B("editorRef"), a = B("tippyRef"), u = r, m = t, h = p((e, t) => ({
|
|
7396
7403
|
get() {
|
|
7397
7404
|
return e(), typeof m.modelValue == "string" ? Bl(m.modelValue) : m.modelValue;
|
|
7398
7405
|
},
|
|
@@ -7403,16 +7410,16 @@ var Bd = ["src"], Vd = {
|
|
|
7403
7410
|
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;
|
|
7404
7411
|
})) == null ? void 0 : n.filter((e) => !!e)) || []), t();
|
|
7405
7412
|
}
|
|
7406
|
-
})), g =
|
|
7413
|
+
})), g = I("slash"), _ = I(""), v = I([]), y = I([]), b = I([]), x, C, w = null, T = null, D = () => {
|
|
7407
7414
|
w !== null && (clearTimeout(w), w = null), T !== null && (clearTimeout(T), T = null);
|
|
7408
|
-
}, A = () => document.body, { commandSelection: j, GetCursorPosition:
|
|
7409
|
-
|
|
7410
|
-
x.command(
|
|
7415
|
+
}, A = () => document.body, { commandSelection: j, GetCursorPosition: M, GetDocSnapshot: ee, docSnapshot: P } = Fr();
|
|
7416
|
+
V(() => m.modelValue, () => {
|
|
7417
|
+
x.command(ee), zl(P.value || []) !== zl(h.value || []) && x.command(ou, zl(h.value || []));
|
|
7411
7418
|
}, { deep: !1 });
|
|
7412
|
-
let
|
|
7419
|
+
let F = () => {
|
|
7413
7420
|
w !== null && clearTimeout(w), w = setTimeout(() => {
|
|
7414
7421
|
w = null;
|
|
7415
|
-
let e =
|
|
7422
|
+
let e = ne();
|
|
7416
7423
|
if (_.value = e.query || "", e.isActive) {
|
|
7417
7424
|
var t, n;
|
|
7418
7425
|
(t = a.value) == null || t.setProps({ getReferenceClientRect: () => {
|
|
@@ -7429,15 +7436,15 @@ var Bd = ["src"], Vd = {
|
|
|
7429
7436
|
(r = a.value) == null || r.hide();
|
|
7430
7437
|
}
|
|
7431
7438
|
}, 16);
|
|
7432
|
-
},
|
|
7439
|
+
}, te = (e) => {
|
|
7433
7440
|
if (u("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") {
|
|
7434
7441
|
var t;
|
|
7435
7442
|
return e.shiftKey ? void 0 : ((t = e.preventDefault) == null || t.call(e), !1);
|
|
7436
7443
|
}
|
|
7437
|
-
e.key === "@" && (g.value = "slash",
|
|
7438
|
-
},
|
|
7444
|
+
e.key === "@" && (g.value = "slash", F()), e.key === "/" && (g.value = "skill", F()), e.key === "\\" && (g.value = "prompt", F());
|
|
7445
|
+
}, R = () => {
|
|
7439
7446
|
_.value = "";
|
|
7440
|
-
},
|
|
7447
|
+
}, ne = () => {
|
|
7441
7448
|
let e = {
|
|
7442
7449
|
isActive: !1,
|
|
7443
7450
|
query: "",
|
|
@@ -7469,33 +7476,33 @@ var Bd = ["src"], Vd = {
|
|
|
7469
7476
|
} catch (t) {
|
|
7470
7477
|
return e;
|
|
7471
7478
|
}
|
|
7472
|
-
},
|
|
7479
|
+
}, re = (e, t) => e.reduce((e, n, r) => {
|
|
7473
7480
|
if (r >= t) return e;
|
|
7474
7481
|
if (n.type === "text") {
|
|
7475
7482
|
var i;
|
|
7476
7483
|
e += ((i = n.text) == null ? void 0 : i.length) || 0;
|
|
7477
7484
|
}
|
|
7478
7485
|
return n.type === "tag" && (e += 1), e;
|
|
7479
|
-
}, 0),
|
|
7486
|
+
}, 0), ie = (e) => {
|
|
7480
7487
|
var t;
|
|
7481
|
-
x.command(
|
|
7488
|
+
x.command(M);
|
|
7482
7489
|
let { column: n, line: r } = j.value;
|
|
7483
|
-
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(),
|
|
7484
|
-
},
|
|
7490
|
+
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();
|
|
7491
|
+
}, ae = () => {
|
|
7485
7492
|
T !== null && clearTimeout(T), T = setTimeout(() => {
|
|
7486
7493
|
if (T = null, typeof window > "u") return;
|
|
7487
7494
|
let e = window.getSelection(), t = document.createRange();
|
|
7488
7495
|
i.value && e && (t.selectNodeContents(i.value), t.collapse(!1), e.removeAllRanges(), e.addRange(t));
|
|
7489
7496
|
}, 100);
|
|
7490
|
-
},
|
|
7491
|
-
x.command(ou, e),
|
|
7492
|
-
},
|
|
7497
|
+
}, se = (e) => {
|
|
7498
|
+
x.command(ou, e), ae();
|
|
7499
|
+
}, U = (e) => {
|
|
7493
7500
|
var t;
|
|
7494
|
-
x.command(
|
|
7501
|
+
x.command(M);
|
|
7495
7502
|
let { column: n, line: r } = j.value;
|
|
7496
|
-
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(),
|
|
7503
|
+
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();
|
|
7497
7504
|
};
|
|
7498
|
-
|
|
7505
|
+
oe(() => {
|
|
7499
7506
|
var e, t;
|
|
7500
7507
|
let n = (e = m.resources) == null ? void 0 : e.filter((e) => {
|
|
7501
7508
|
var t;
|
|
@@ -7509,12 +7516,12 @@ var Bd = ["src"], Vd = {
|
|
|
7509
7516
|
(i = a.value) == null || i.hide();
|
|
7510
7517
|
}
|
|
7511
7518
|
});
|
|
7512
|
-
let
|
|
7519
|
+
let ce = (e, t, n, r) => {
|
|
7513
7520
|
if (t.type === "tag") {
|
|
7514
|
-
let t =
|
|
7521
|
+
let t = re(e, n);
|
|
7515
7522
|
x.command(hf, [r, t], [r, t + 1]);
|
|
7516
7523
|
}
|
|
7517
|
-
},
|
|
7524
|
+
}, le = (e) => {
|
|
7518
7525
|
var t;
|
|
7519
7526
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
7520
7527
|
if (!n) return;
|
|
@@ -7530,26 +7537,26 @@ var Bd = ["src"], Vd = {
|
|
|
7530
7537
|
schema: dd,
|
|
7531
7538
|
onChange: function() {
|
|
7532
7539
|
var e = Z(function* (e) {
|
|
7533
|
-
h.value = e,
|
|
7540
|
+
h.value = e, F();
|
|
7534
7541
|
});
|
|
7535
7542
|
return function(t) {
|
|
7536
7543
|
return e.apply(this, arguments);
|
|
7537
7544
|
};
|
|
7538
7545
|
}(),
|
|
7539
|
-
onKeyDown: (e) =>
|
|
7546
|
+
onKeyDown: (e) => te(e)
|
|
7540
7547
|
}), C = x.input(i.value);
|
|
7541
7548
|
}, 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;
|
|
7542
7549
|
return E(() => {
|
|
7543
7550
|
var e;
|
|
7544
|
-
W(), (e = i.value) == null || e.addEventListener("paste",
|
|
7551
|
+
W(), (e = i.value) == null || e.addEventListener("paste", le);
|
|
7545
7552
|
}), O(() => {
|
|
7546
7553
|
var e;
|
|
7547
|
-
D(), x.command(ou, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste",
|
|
7554
|
+
D(), x.command(ou, ""), C == null || C(), (e = i.value) == null || e.removeEventListener("paste", le);
|
|
7548
7555
|
}), n({
|
|
7549
7556
|
cleanup: () => {
|
|
7550
7557
|
x.command(ou, "");
|
|
7551
7558
|
},
|
|
7552
|
-
focus:
|
|
7559
|
+
focus: ae
|
|
7553
7560
|
}), (n, r) => {
|
|
7554
7561
|
var u;
|
|
7555
7562
|
return k(), c("div", yf, [l("div", {
|
|
@@ -7558,16 +7565,16 @@ var Bd = ["src"], Vd = {
|
|
|
7558
7565
|
"aria-placeholder": t.placeholder,
|
|
7559
7566
|
class: "ai-slash-input",
|
|
7560
7567
|
spellcheck: "false"
|
|
7561
|
-
}, [(u = h.value) != null && u.length && h.value.some((e) => e.length) ? (k(!0), c(e, { key: 0 },
|
|
7568
|
+
}, [(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", {
|
|
7562
7569
|
key: 1,
|
|
7563
7570
|
class: S(`mention-tag-${r.data.type}`),
|
|
7564
7571
|
contenteditable: "false",
|
|
7565
7572
|
"data-tag-type": r.data.type,
|
|
7566
7573
|
"data-tag-value": r.data.value
|
|
7567
|
-
}, [d(
|
|
7574
|
+
}, [d(L(r.data.label) + " ", 1), f(z(Yt), {
|
|
7568
7575
|
class: "mention-tag-remove-icon",
|
|
7569
|
-
onClick: (e) =>
|
|
7570
|
-
}, null, 8, ["onClick"])], 10, Sf)) : s("", !0)], 64))), 128)) : (k(), c("br", Cf))]))), 128)) : s("", !0)], 8, bf), f(
|
|
7576
|
+
onClick: (e) => ce(t, r, i, n)
|
|
7577
|
+
}, null, 8, ["onClick"])], 10, Sf)) : s("", !0)], 64))), 128)) : (k(), c("br", Cf))]))), 128)) : s("", !0)], 8, bf), f(z(xe), {
|
|
7571
7578
|
ref_key: "tippyRef",
|
|
7572
7579
|
ref: a,
|
|
7573
7580
|
"append-to": A,
|
|
@@ -7579,21 +7586,21 @@ var Bd = ["src"], Vd = {
|
|
|
7579
7586
|
theme: "light ai-slash-editor-theme",
|
|
7580
7587
|
trigger: "manual",
|
|
7581
7588
|
"trigger-target": i.value,
|
|
7582
|
-
"z-index":
|
|
7583
|
-
onHidden:
|
|
7589
|
+
"z-index": z(Tt),
|
|
7590
|
+
onHidden: R,
|
|
7584
7591
|
onShow: ue
|
|
7585
7592
|
}, {
|
|
7586
|
-
content:
|
|
7593
|
+
content: H(() => [g.value === "slash" ? (k(), o(mf, {
|
|
7587
7594
|
key: 0,
|
|
7588
|
-
"on-select":
|
|
7595
|
+
"on-select": ie,
|
|
7589
7596
|
"resource-list": v.value
|
|
7590
7597
|
}, null, 8, ["resource-list"])) : g.value === "skill" ? (k(), o(lf, {
|
|
7591
7598
|
key: 1,
|
|
7592
|
-
"on-select":
|
|
7599
|
+
"on-select": U,
|
|
7593
7600
|
skills: y.value
|
|
7594
7601
|
}, null, 8, ["skills"])) : g.value === "prompt" ? (k(), o(nf, {
|
|
7595
7602
|
key: 2,
|
|
7596
|
-
"on-select":
|
|
7603
|
+
"on-select": se,
|
|
7597
7604
|
prompts: b.value
|
|
7598
7605
|
}, null, 8, ["prompts"])) : s("", !0)]),
|
|
7599
7606
|
_: 1
|
|
@@ -7614,18 +7621,18 @@ var Bd = ["src"], Vd = {
|
|
|
7614
7621
|
}, a = () => {
|
|
7615
7622
|
n.sendDisabledTip || n.messageState === J.Disabled || n.messageState === J.Pending || n.messageState === J.Streaming || r("sendMessage");
|
|
7616
7623
|
};
|
|
7617
|
-
return (t, r) => (k(), c("div", Tf, [
|
|
7624
|
+
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), {
|
|
7618
7625
|
key: 0,
|
|
7619
7626
|
onClick: i
|
|
7620
|
-
}, null, 512)), [[
|
|
7621
|
-
content:
|
|
7627
|
+
}, null, 512)), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
7628
|
+
content: z(G)("停止"),
|
|
7622
7629
|
theme: "ai-chat-box",
|
|
7623
7630
|
offset: [0, 16]
|
|
7624
|
-
})]]) :
|
|
7631
|
+
})]]) : U((k(), o(z(jn), {
|
|
7625
7632
|
key: 1,
|
|
7626
7633
|
onClick: a
|
|
7627
|
-
}, null, 512)), [[
|
|
7628
|
-
content: e.sendDisabledTip || (n.messageState ===
|
|
7634
|
+
}, null, 512)), [[z(Se), X(X({}, e.tippyOptions), {}, {
|
|
7635
|
+
content: e.sendDisabledTip || (n.messageState === z(J).Disabled ? void 0 : z(G)("发送")),
|
|
7629
7636
|
theme: "ai-chat-box",
|
|
7630
7637
|
offset: [0, 16]
|
|
7631
7638
|
})]])], 2)])]));
|
|
@@ -7668,7 +7675,7 @@ var Bd = ["src"], Vd = {
|
|
|
7668
7675
|
"update:modelValue"
|
|
7669
7676
|
], ["update:cite"]),
|
|
7670
7677
|
setup(e, { expose: t, emit: n }) {
|
|
7671
|
-
let r =
|
|
7678
|
+
let r = B("aiSlashInputRef"), i = B("filesRef"), u = re(e, "cite"), d = I(200), p = e, m = n, g = ee(p.defaultUploadFiles || []), _ = a(() => {
|
|
7672
7679
|
var e;
|
|
7673
7680
|
return (e = p.shortcuts) == null ? void 0 : e.find((e) => e.id === p.shortcutId);
|
|
7674
7681
|
}), v = a(() => {
|
|
@@ -7679,7 +7686,7 @@ var Bd = ["src"], Vd = {
|
|
|
7679
7686
|
J.Fetching
|
|
7680
7687
|
].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;
|
|
7681
7688
|
});
|
|
7682
|
-
|
|
7689
|
+
se(() => {
|
|
7683
7690
|
var e;
|
|
7684
7691
|
let t = p.inputMaxHeight || 200;
|
|
7685
7692
|
if (g.value.length < 1 || !i.value) {
|
|
@@ -7794,7 +7801,7 @@ var Bd = ["src"], Vd = {
|
|
|
7794
7801
|
};
|
|
7795
7802
|
}(), j = (e) => {
|
|
7796
7803
|
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);
|
|
7797
|
-
},
|
|
7804
|
+
}, M = (e, t) => {
|
|
7798
7805
|
m("update:modelValue", e, t);
|
|
7799
7806
|
};
|
|
7800
7807
|
return t({
|
|
@@ -7805,21 +7812,21 @@ var Bd = ["src"], Vd = {
|
|
|
7805
7812
|
triggerSendMessage: y
|
|
7806
7813
|
}), (t, n) => (k(), c("div", {
|
|
7807
7814
|
class: "chat-input-container",
|
|
7808
|
-
style: w({ "--chat-z-index":
|
|
7815
|
+
style: w({ "--chat-z-index": z(Ct) })
|
|
7809
7816
|
}, [
|
|
7810
|
-
|
|
7811
|
-
|
|
7817
|
+
P(t.$slots, "top"),
|
|
7818
|
+
P(t.$slots, "interrupt"),
|
|
7812
7819
|
l("div", {
|
|
7813
7820
|
class: "chat-input",
|
|
7814
7821
|
style: w({ maxHeight: d.value + "px" })
|
|
7815
7822
|
}, [
|
|
7816
|
-
|
|
7823
|
+
P(t.$slots, "input-header", {}, () => [u.value ? (k(), o(Cd, {
|
|
7817
7824
|
key: 0,
|
|
7818
7825
|
class: "chat-input-cite",
|
|
7819
7826
|
content: u.value,
|
|
7820
7827
|
onClose: S
|
|
7821
7828
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
7822
|
-
|
|
7829
|
+
P(t.$slots, "files", C(h({ files: g.value })), () => [g.value.length ? (k(), c("div", {
|
|
7823
7830
|
key: 0,
|
|
7824
7831
|
ref_key: "filesRef",
|
|
7825
7832
|
ref: i,
|
|
@@ -7837,7 +7844,7 @@ var Bd = ["src"], Vd = {
|
|
|
7837
7844
|
resources: e.resources,
|
|
7838
7845
|
skills: e.skills,
|
|
7839
7846
|
onKeydown: b,
|
|
7840
|
-
"onUpdate:modelValue":
|
|
7847
|
+
"onUpdate:modelValue": M,
|
|
7841
7848
|
onUpload: A
|
|
7842
7849
|
}, null, 8, [
|
|
7843
7850
|
"model-value",
|
|
@@ -7853,7 +7860,7 @@ var Bd = ["src"], Vd = {
|
|
|
7853
7860
|
onSendMessage: y,
|
|
7854
7861
|
onStopSending: x
|
|
7855
7862
|
}, {
|
|
7856
|
-
default:
|
|
7863
|
+
default: H(() => {
|
|
7857
7864
|
var n;
|
|
7858
7865
|
return [
|
|
7859
7866
|
e.supportUpload ? (k(), o(bd, {
|
|
@@ -7862,7 +7869,7 @@ var Bd = ["src"], Vd = {
|
|
|
7862
7869
|
onUpload: A
|
|
7863
7870
|
}, null, 8, ["tippy-options"])) : s("", !0),
|
|
7864
7871
|
e.supportUpload && ((n = e.shortcuts) != null && n.length || _.value) ? (k(), c("span", Df)) : s("", !0),
|
|
7865
|
-
|
|
7872
|
+
P(t.$slots, "attachment", {}, () => [e.shortcuts && !_.value ? (k(), o(yr, {
|
|
7866
7873
|
key: 0,
|
|
7867
7874
|
shortcuts: e.shortcuts,
|
|
7868
7875
|
onSelectShortcut: T
|
|
@@ -7871,12 +7878,12 @@ var Bd = ["src"], Vd = {
|
|
|
7871
7878
|
class: "selected-shortcut-btn",
|
|
7872
7879
|
shortcut: _.value
|
|
7873
7880
|
}, {
|
|
7874
|
-
append:
|
|
7881
|
+
append: H(() => [f(z(Bn), { onClick: E })]),
|
|
7875
7882
|
_: 1
|
|
7876
7883
|
}, 8, ["shortcut"])) : s("", !0)])
|
|
7877
7884
|
];
|
|
7878
7885
|
}),
|
|
7879
|
-
"send-icon":
|
|
7886
|
+
"send-icon": H(() => [P(t.$slots, "send-icon")]),
|
|
7880
7887
|
_: 3
|
|
7881
7888
|
}, 8, [
|
|
7882
7889
|
"message-state",
|
|
@@ -7890,13 +7897,13 @@ var Bd = ["src"], Vd = {
|
|
|
7890
7897
|
__name: "input-info-alert",
|
|
7891
7898
|
props: { content: {} },
|
|
7892
7899
|
setup(e) {
|
|
7893
|
-
return (t, n) => (k(), c("div", kf, [f(
|
|
7900
|
+
return (t, n) => (k(), c("div", kf, [f(z(On), { class: "chat-input-info-alert__icon" }), l("span", Af, L(e.content), 1)]));
|
|
7894
7901
|
}
|
|
7895
7902
|
}), Mf = "others", Nf = (e) => e < 26 ? String.fromCharCode(65 + e) : String(e + 1), Pf = (e) => {
|
|
7896
7903
|
let t = a(() => {
|
|
7897
7904
|
var t, n;
|
|
7898
7905
|
return (t = (n = e()) == null || (n = n.metadata) == null ? void 0 : n.questions) == null ? [] : t;
|
|
7899
|
-
}), n =
|
|
7906
|
+
}), n = I({}), r = (e) => n.value[e], i = (e, t) => {
|
|
7900
7907
|
n.value = X(X({}, n.value), {}, { [e]: t });
|
|
7901
7908
|
}, 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) => {
|
|
7902
7909
|
var r;
|
|
@@ -7942,17 +7949,17 @@ var Bd = ["src"], Vd = {
|
|
|
7942
7949
|
},
|
|
7943
7950
|
setup(t) {
|
|
7944
7951
|
let n = t, r = a(() => n.status === "cancelled" ? G("已取消") : G("已回复"));
|
|
7945
|
-
return (n, i) => (k(), c("section", If, [l("header", Lf, [l("div", Rf, [f(
|
|
7952
|
+
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", {
|
|
7946
7953
|
key: i,
|
|
7947
7954
|
class: "ai-user-question-answered__item"
|
|
7948
|
-
}, [l("div", Hf, [l("span", Uf,
|
|
7955
|
+
}, [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 }, {
|
|
7949
7956
|
item: r,
|
|
7950
7957
|
index: i,
|
|
7951
7958
|
status: t.status
|
|
7952
|
-
}), () => [(k(!0), c(e, null,
|
|
7959
|
+
}), () => [(k(!0), c(e, null, N(r.answer, (e, t) => (k(), c("p", {
|
|
7953
7960
|
key: t,
|
|
7954
7961
|
class: "ai-user-question-answered__answer"
|
|
7955
|
-
},
|
|
7962
|
+
}, L(e.description || e.label), 1))), 128))])]))), 128))])]));
|
|
7956
7963
|
}
|
|
7957
7964
|
}), Kf = { class: "ai-user-question-option__badge" }, qf = ["placeholder", "value"], Jf = {
|
|
7958
7965
|
key: 1,
|
|
@@ -7984,23 +7991,23 @@ var Bd = ["src"], Vd = {
|
|
|
7984
7991
|
"ai-user-question-option--others": e.option.isOthers
|
|
7985
7992
|
}]),
|
|
7986
7993
|
onClick: i
|
|
7987
|
-
}, [l("span", Kf,
|
|
7994
|
+
}, [l("span", Kf, L(e.option.letter), 1), e.option.isOthers ? (k(), c("input", {
|
|
7988
7995
|
key: 0,
|
|
7989
7996
|
class: "ai-user-question-option__input",
|
|
7990
|
-
placeholder:
|
|
7997
|
+
placeholder: z(G)("请输入..."),
|
|
7991
7998
|
value: e.othersText,
|
|
7992
|
-
onClick: n[0] || (n[0] =
|
|
7999
|
+
onClick: n[0] || (n[0] = le(() => {}, ["stop"])),
|
|
7993
8000
|
onFocus: a,
|
|
7994
8001
|
onInput: o,
|
|
7995
|
-
onKeydown: n[1] || (n[1] = le(
|
|
7996
|
-
}, null, 40, qf)) : (k(), c("span", Jf,
|
|
8002
|
+
onKeydown: n[1] || (n[1] = ce(le((e) => r("confirm"), ["stop"]), ["enter"]))
|
|
8003
|
+
}, null, 40, qf)) : (k(), c("span", Jf, L(e.option.description), 1))], 2));
|
|
7997
8004
|
}
|
|
7998
8005
|
}), Xf = { class: "ai-user-question-choice" }, Zf = /* @__PURE__ */ m({
|
|
7999
8006
|
__name: "user-question-choice",
|
|
8000
8007
|
props: { question: {} },
|
|
8001
8008
|
emits: ["answer", "confirm"],
|
|
8002
8009
|
setup(t, { emit: n }) {
|
|
8003
|
-
let r = t, i = n, s =
|
|
8010
|
+
let r = t, i = n, s = I([]), l = I(""), u = a(() => {
|
|
8004
8011
|
var e;
|
|
8005
8012
|
let t = ((e = r.question.options) == null ? [] : e).filter((e) => e.label !== Mf).map((e, t) => X(X({}, e), {}, {
|
|
8006
8013
|
isOthers: !1,
|
|
@@ -8032,9 +8039,9 @@ var Bd = ["src"], Vd = {
|
|
|
8032
8039
|
}, _ = (e) => {
|
|
8033
8040
|
l.value = e, h();
|
|
8034
8041
|
};
|
|
8035
|
-
return
|
|
8042
|
+
return V(() => r.question, () => {
|
|
8036
8043
|
s.value = [], l.value = "", h();
|
|
8037
|
-
}), (t, n) => (k(), c("div", Xf, [(k(!0), c(e, null,
|
|
8044
|
+
}), (t, n) => (k(), c("div", Xf, [(k(!0), c(e, null, N(u.value, (e, t) => (k(), o(Yf, {
|
|
8038
8045
|
key: t,
|
|
8039
8046
|
option: e,
|
|
8040
8047
|
"others-text": l.value,
|
|
@@ -8059,14 +8066,14 @@ var Bd = ["src"], Vd = {
|
|
|
8059
8066
|
onResume: { type: Function }
|
|
8060
8067
|
},
|
|
8061
8068
|
setup(t) {
|
|
8062
|
-
let n = t, r = hi(), i =
|
|
8069
|
+
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(() => {
|
|
8063
8070
|
var e;
|
|
8064
8071
|
return ((e = n.interrupt.metadata) == null || (e = e.questions) == null || (e = e[0]) == null ? void 0 : e.header) || n.interrupt.message || "";
|
|
8065
8072
|
}), C = () => {
|
|
8066
8073
|
i.value = !i.value;
|
|
8067
8074
|
}, T = () => {
|
|
8068
8075
|
i.value && (i.value = !1);
|
|
8069
|
-
}, E =
|
|
8076
|
+
}, E = I(null), D = () => {
|
|
8070
8077
|
var e;
|
|
8071
8078
|
!h.value || E.value !== null || (E.value = "complete", (e = n.onResume) == null || e.call(n, v(), n.interrupt));
|
|
8072
8079
|
}, O = () => {
|
|
@@ -8077,39 +8084,39 @@ var Bd = ["src"], Vd = {
|
|
|
8077
8084
|
l("header", {
|
|
8078
8085
|
class: "ai-user-question-card__header",
|
|
8079
8086
|
onClick: T
|
|
8080
|
-
}, [l("div", Qf, [f(
|
|
8087
|
+
}, [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), {
|
|
8081
8088
|
class: "ai-user-question-card__arrow",
|
|
8082
8089
|
style: w({ transform: i.value ? "rotate(180deg)" : "rotate(-90deg)" }),
|
|
8083
|
-
onClick:
|
|
8090
|
+
onClick: le(C, ["stop"])
|
|
8084
8091
|
}, null, 8, ["style"])])]),
|
|
8085
|
-
|
|
8092
|
+
U(l("div", np, [(k(!0), c(e, null, N(z(u), (e, n) => (k(), c("div", {
|
|
8086
8093
|
key: n,
|
|
8087
8094
|
class: "ai-user-question-card__question"
|
|
8088
|
-
}, [l("div", rp, [l("span", ip,
|
|
8095
|
+
}, [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 }, {
|
|
8089
8096
|
question: e,
|
|
8090
8097
|
qIndex: n,
|
|
8091
|
-
answer:
|
|
8092
|
-
setAnswer: (e) =>
|
|
8098
|
+
answer: z(g)(n),
|
|
8099
|
+
setAnswer: (e) => z(_)(n, e),
|
|
8093
8100
|
confirm: D
|
|
8094
8101
|
}), () => [f(Zf, {
|
|
8095
8102
|
question: e,
|
|
8096
|
-
onAnswer: (e) =>
|
|
8103
|
+
onAnswer: (e) => z(_)(n, e),
|
|
8097
8104
|
onConfirm: D
|
|
8098
|
-
}, null, 8, ["question", "onAnswer"])])])]))), 128))], 512), [[
|
|
8099
|
-
|
|
8105
|
+
}, null, 8, ["question", "onAnswer"])])])]))), 128))], 512), [[ae, !i.value]]),
|
|
8106
|
+
U(l("footer", sp, [f(z(W), {
|
|
8100
8107
|
class: "ai-user-question-card__complete",
|
|
8101
|
-
disabled: !
|
|
8108
|
+
disabled: !z(h) || E.value === "skip",
|
|
8102
8109
|
loading: E.value === "complete",
|
|
8103
8110
|
size: "small",
|
|
8104
8111
|
theme: "primary",
|
|
8105
8112
|
onClick: D
|
|
8106
8113
|
}, {
|
|
8107
|
-
default:
|
|
8114
|
+
default: H(() => [E.value === "complete" ? s("", !0) : (k(), o(z(kn), {
|
|
8108
8115
|
key: 0,
|
|
8109
8116
|
class: "ai-user-question-card__enter-icon"
|
|
8110
|
-
})), d(" " +
|
|
8117
|
+
})), d(" " + L(z(G)("完成")), 1)]),
|
|
8111
8118
|
_: 1
|
|
8112
|
-
}, 8, ["disabled", "loading"]), f(
|
|
8119
|
+
}, 8, ["disabled", "loading"]), f(z(W), {
|
|
8113
8120
|
class: "ai-user-question-card__skip",
|
|
8114
8121
|
disabled: E.value === "complete",
|
|
8115
8122
|
loading: E.value === "skip",
|
|
@@ -8117,12 +8124,12 @@ var Bd = ["src"], Vd = {
|
|
|
8117
8124
|
text: "",
|
|
8118
8125
|
onClick: O
|
|
8119
8126
|
}, {
|
|
8120
|
-
default:
|
|
8127
|
+
default: H(() => [E.value === "skip" ? s("", !0) : (k(), o(z(An), {
|
|
8121
8128
|
key: 0,
|
|
8122
8129
|
class: "ai-user-question-card__skip-icon"
|
|
8123
|
-
})), d(" " +
|
|
8130
|
+
})), d(" " + L(z(G)("跳过")), 1)]),
|
|
8124
8131
|
_: 1
|
|
8125
|
-
}, 8, ["disabled", "loading"])], 512), [[
|
|
8132
|
+
}, 8, ["disabled", "loading"])], 512), [[ae, !i.value]])
|
|
8126
8133
|
], 2));
|
|
8127
8134
|
}
|
|
8128
8135
|
}), 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({
|
|
@@ -8136,7 +8143,7 @@ var Bd = ["src"], Vd = {
|
|
|
8136
8143
|
},
|
|
8137
8144
|
emits: ["confirm", "cancel"],
|
|
8138
8145
|
setup(e, { emit: t }) {
|
|
8139
|
-
let n = e, r = t, i =
|
|
8146
|
+
let n = e, r = t, i = B("tippyRef"), s = a(() => ({
|
|
8140
8147
|
id: n.id,
|
|
8141
8148
|
name: n.name,
|
|
8142
8149
|
description: n.description,
|
|
@@ -8161,29 +8168,29 @@ var Bd = ["src"], Vd = {
|
|
|
8161
8168
|
};
|
|
8162
8169
|
return O(() => {
|
|
8163
8170
|
p();
|
|
8164
|
-
}), (e, t) => (k(), o(
|
|
8171
|
+
}), (e, t) => (k(), o(z(xe), b({
|
|
8165
8172
|
ref_key: "tippyRef",
|
|
8166
8173
|
ref: i
|
|
8167
8174
|
}, c.value, { onShow: u }), {
|
|
8168
|
-
content:
|
|
8169
|
-
l("div", up,
|
|
8170
|
-
l("div", dp,
|
|
8171
|
-
l("div", fp, [f(
|
|
8175
|
+
content: H(() => [l("div", lp, [
|
|
8176
|
+
l("div", up, L(z(G)("确认删除该回答?")), 1),
|
|
8177
|
+
l("div", dp, L(z(G)("删除操作无法撤回,请谨慎操作!")), 1),
|
|
8178
|
+
l("div", fp, [f(z(W), {
|
|
8172
8179
|
size: "small",
|
|
8173
8180
|
theme: "danger",
|
|
8174
8181
|
onClick: m
|
|
8175
8182
|
}, {
|
|
8176
|
-
default:
|
|
8183
|
+
default: H(() => [d(L(z(G)("删除")), 1)]),
|
|
8177
8184
|
_: 1
|
|
8178
|
-
}), f(
|
|
8185
|
+
}), f(z(W), {
|
|
8179
8186
|
size: "small",
|
|
8180
8187
|
onClick: g
|
|
8181
8188
|
}, {
|
|
8182
|
-
default:
|
|
8189
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
8183
8190
|
_: 1
|
|
8184
8191
|
})])
|
|
8185
8192
|
])]),
|
|
8186
|
-
default:
|
|
8193
|
+
default: H(() => [f(bi, C(h(s.value)), null, 16)]),
|
|
8187
8194
|
_: 1
|
|
8188
8195
|
}, 16));
|
|
8189
8196
|
}
|
|
@@ -8196,7 +8203,7 @@ var Bd = ["src"], Vd = {
|
|
|
8196
8203
|
},
|
|
8197
8204
|
emits: ["submit", "cancel"],
|
|
8198
8205
|
setup(t, { emit: n }) {
|
|
8199
|
-
let r = n, i =
|
|
8206
|
+
let r = n, i = I(""), a = I([]), o = (e) => {
|
|
8200
8207
|
a.value.includes(e) ? a.value = a.value.filter((t) => t !== e) : a.value = [...a.value, e];
|
|
8201
8208
|
}, s = () => {
|
|
8202
8209
|
r("submit", a.value, i.value);
|
|
@@ -8205,40 +8212,40 @@ var Bd = ["src"], Vd = {
|
|
|
8205
8212
|
};
|
|
8206
8213
|
return (n, r) => (k(), c("div", {
|
|
8207
8214
|
class: "ai-user-feedback",
|
|
8208
|
-
onMouseenter: r[1] || (r[1] =
|
|
8215
|
+
onMouseenter: r[1] || (r[1] = le(() => {}, ["stop", "prevent"]))
|
|
8209
8216
|
}, [
|
|
8210
|
-
l("div", mp,
|
|
8211
|
-
l("div", hp, [t.loading ? (k(), c(e, { key: 0 },
|
|
8217
|
+
l("div", mp, L(t.title), 1),
|
|
8218
|
+
l("div", hp, [t.loading ? (k(), c(e, { key: 0 }, N(8, (e) => l("div", {
|
|
8212
8219
|
key: e,
|
|
8213
8220
|
class: "reason-item ai-skeleton-element"
|
|
8214
|
-
})), 64)) : (k(!0), c(e, { key: 1 },
|
|
8221
|
+
})), 64)) : (k(!0), c(e, { key: 1 }, N(t.reasonList, (e) => (k(), c("div", {
|
|
8215
8222
|
key: e,
|
|
8216
8223
|
class: S(["reason-item", { "is-active": a.value.includes(e) }]),
|
|
8217
8224
|
onClick: (t) => o(e)
|
|
8218
|
-
},
|
|
8219
|
-
l("div", _p, [f(
|
|
8225
|
+
}, L(e), 11, gp))), 128))]),
|
|
8226
|
+
l("div", _p, [f(z(pe), {
|
|
8220
8227
|
modelValue: i.value,
|
|
8221
8228
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
8222
|
-
placeholder:
|
|
8229
|
+
placeholder: z(G)("说出您的想法"),
|
|
8223
8230
|
rows: 3,
|
|
8224
8231
|
type: "textarea"
|
|
8225
8232
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
8226
|
-
l("div", vp, [f(
|
|
8233
|
+
l("div", vp, [f(z(W), {
|
|
8227
8234
|
class: "custom-btn",
|
|
8228
8235
|
disabled: !i.value && a.value.length === 0,
|
|
8229
8236
|
size: "small",
|
|
8230
8237
|
theme: "primary",
|
|
8231
8238
|
onClick: s
|
|
8232
8239
|
}, {
|
|
8233
|
-
default:
|
|
8240
|
+
default: H(() => [d(L(z(G)("提交")), 1)]),
|
|
8234
8241
|
_: 1
|
|
8235
|
-
}, 8, ["disabled"]), f(
|
|
8242
|
+
}, 8, ["disabled"]), f(z(W), {
|
|
8236
8243
|
class: "custom-btn",
|
|
8237
8244
|
size: "small",
|
|
8238
8245
|
width: "80px",
|
|
8239
8246
|
onClick: u
|
|
8240
8247
|
}, {
|
|
8241
|
-
default:
|
|
8248
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
8242
8249
|
_: 1
|
|
8243
8250
|
})])
|
|
8244
8251
|
], 32));
|
|
@@ -8264,7 +8271,7 @@ var Bd = ["src"], Vd = {
|
|
|
8264
8271
|
},
|
|
8265
8272
|
emits: ["feedback"],
|
|
8266
8273
|
setup(t, { emit: n }) {
|
|
8267
|
-
let r = t, i = n, u =
|
|
8274
|
+
let r = t, i = n, u = B("feedbackTippyRef"), d = I(!1), p = I([]), m = I(null), h = a(() => X({
|
|
8268
8275
|
arrow: !1,
|
|
8269
8276
|
interactive: !0,
|
|
8270
8277
|
offset: [0, 6],
|
|
@@ -8315,11 +8322,11 @@ var Bd = ["src"], Vd = {
|
|
|
8315
8322
|
return O(() => {
|
|
8316
8323
|
v(), p.value = [];
|
|
8317
8324
|
}), (n, r) => (k(), c("div", bp, [
|
|
8318
|
-
l("div", xp, [(k(!0), c(e, null,
|
|
8325
|
+
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({
|
|
8319
8326
|
key: 0,
|
|
8320
8327
|
ref_for: !0
|
|
8321
8328
|
}, n, {
|
|
8322
|
-
disabled: t.messageToolsStatus ===
|
|
8329
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8323
8330
|
"tippy-options": t.tippyOptions,
|
|
8324
8331
|
onConfirm: (e) => _(n)
|
|
8325
8332
|
}), null, 16, [
|
|
@@ -8330,7 +8337,7 @@ var Bd = ["src"], Vd = {
|
|
|
8330
8337
|
key: 1,
|
|
8331
8338
|
ref_for: !0
|
|
8332
8339
|
}, n, {
|
|
8333
|
-
disabled: t.messageToolsStatus ===
|
|
8340
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8334
8341
|
"tippy-options": t.tippyOptions,
|
|
8335
8342
|
onClick: (e) => g(n)
|
|
8336
8343
|
}), null, 16, [
|
|
@@ -8339,16 +8346,16 @@ var Bd = ["src"], Vd = {
|
|
|
8339
8346
|
"onClick"
|
|
8340
8347
|
]))], 64))), 128))]),
|
|
8341
8348
|
t.updateTools.length > 0 ? (k(), c("div", Sp)) : s("", !0),
|
|
8342
|
-
l("div", Cp, [(k(!0), c(e, null,
|
|
8349
|
+
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({
|
|
8343
8350
|
key: 0,
|
|
8344
8351
|
ref_for: !0,
|
|
8345
8352
|
ref_key: "feedbackTippyRef",
|
|
8346
8353
|
ref: u
|
|
8347
8354
|
}, { ref_for: !0 }, h.value, { onShow: (e) => C(n.id) }), {
|
|
8348
|
-
content:
|
|
8355
|
+
content: H(() => [f(yp, {
|
|
8349
8356
|
loading: d.value,
|
|
8350
8357
|
"reason-list": p.value,
|
|
8351
|
-
title: n.id === "like" ?
|
|
8358
|
+
title: n.id === "like" ? z(G)("什么原因让你满意?") : z(G)("什么原因让你不满意?"),
|
|
8352
8359
|
onCancel: v,
|
|
8353
8360
|
onSubmit: (e, t) => S(n, e, t)
|
|
8354
8361
|
}, null, 8, [
|
|
@@ -8357,10 +8364,10 @@ var Bd = ["src"], Vd = {
|
|
|
8357
8364
|
"title",
|
|
8358
8365
|
"onSubmit"
|
|
8359
8366
|
])]),
|
|
8360
|
-
default:
|
|
8367
|
+
default: H(() => [f(bi, b({ ref_for: !0 }, n, {
|
|
8361
8368
|
id: y(n.id),
|
|
8362
8369
|
active: m.value === n.id,
|
|
8363
|
-
disabled: t.messageToolsStatus ===
|
|
8370
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8364
8371
|
"tippy-options": X(X({}, t.tippyOptions), {}, { content: x(n.id) }),
|
|
8365
8372
|
onClick: (e) => g(n)
|
|
8366
8373
|
}), null, 16, [
|
|
@@ -8375,7 +8382,7 @@ var Bd = ["src"], Vd = {
|
|
|
8375
8382
|
key: 1,
|
|
8376
8383
|
ref_for: !0
|
|
8377
8384
|
}, n, {
|
|
8378
|
-
disabled: t.messageToolsStatus ===
|
|
8385
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8379
8386
|
"tippy-options": t.tippyOptions,
|
|
8380
8387
|
onConfirm: (e) => _(n)
|
|
8381
8388
|
}), null, 16, [
|
|
@@ -8386,7 +8393,7 @@ var Bd = ["src"], Vd = {
|
|
|
8386
8393
|
key: 2,
|
|
8387
8394
|
ref_for: !0
|
|
8388
8395
|
}, n, {
|
|
8389
|
-
disabled: t.messageToolsStatus ===
|
|
8396
|
+
disabled: t.messageToolsStatus === z(_d).Disabled,
|
|
8390
8397
|
"tippy-options": t.tippyOptions,
|
|
8391
8398
|
onClick: (e) => g(n)
|
|
8392
8399
|
}), null, 16, [
|
|
@@ -8421,14 +8428,14 @@ var Bd = ["src"], Vd = {
|
|
|
8421
8428
|
}),
|
|
8422
8429
|
emits: ["update:collapsed"],
|
|
8423
8430
|
setup(e) {
|
|
8424
|
-
let t =
|
|
8431
|
+
let t = re(e, "collapsed");
|
|
8425
8432
|
return (n, r) => (k(), c("div", Ep, [l("div", {
|
|
8426
8433
|
class: "ai-activity-message-title",
|
|
8427
8434
|
onClick: r[0] || (r[0] = (e) => t.value = !t.value)
|
|
8428
|
-
}, [
|
|
8435
|
+
}, [P(n.$slots, "title", C(h({ collapsed: t.value }))), e.activityType === z(_t).FlowAgent ? s("", !0) : (k(), c("span", {
|
|
8429
8436
|
key: 0,
|
|
8430
8437
|
class: S(["ai-activity-message-title-icon collapsed-icon", { "is-collapsed": t.value }])
|
|
8431
|
-
}, [f(
|
|
8438
|
+
}, [f(z(Pn))], 2))]), U(l("div", Dp, [P(n.$slots, "default")], 512), [[ae, !t.value]])]));
|
|
8432
8439
|
}
|
|
8433
8440
|
}), kp = [
|
|
8434
8441
|
{
|
|
@@ -8499,7 +8506,7 @@ var Bd = ["src"], Vd = {
|
|
|
8499
8506
|
let t = a(() => {
|
|
8500
8507
|
var t;
|
|
8501
8508
|
return Array.isArray(e.value) ? e.value : [(t = e.value) == null ? {} : t];
|
|
8502
|
-
}), n =
|
|
8509
|
+
}), n = I({}), r = (e) => n.value[e.task_id] !== !1;
|
|
8503
8510
|
return {
|
|
8504
8511
|
isTaskExpanded: r,
|
|
8505
8512
|
taskList: t,
|
|
@@ -8565,7 +8572,7 @@ var Bd = ["src"], Vd = {
|
|
|
8565
8572
|
pendingLabel: () => G("跳过中"),
|
|
8566
8573
|
visible: (e) => e.convergedState === "failed" && e.skippable
|
|
8567
8574
|
}], Lp = (e, t) => `${e.task_id}:${t.id}:${t.retry}`, Rp = (e) => {
|
|
8568
|
-
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i =
|
|
8575
|
+
let { hideResumeActions: t, onInterruptResume: n, openNodeDetail: r } = e, i = I({}), a = (e, t, r) => {
|
|
8569
8576
|
var a;
|
|
8570
8577
|
let o = Lp(t, r);
|
|
8571
8578
|
i.value[o] || (i.value = X(X({}, i.value), {}, { [o]: e }), (a = n.value) == null || a.call(n, {
|
|
@@ -8605,7 +8612,7 @@ var Bd = ["src"], Vd = {
|
|
|
8605
8612
|
__name: "detail-section",
|
|
8606
8613
|
props: { title: {} },
|
|
8607
8614
|
setup(e) {
|
|
8608
|
-
return (t, n) => (k(), c("div", zp, [l("div", Bp, [n[0] || (n[0] = l("span", { class: "section-bar" }, null, -1)), l("span", Vp,
|
|
8615
|
+
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")]));
|
|
8609
8616
|
}
|
|
8610
8617
|
}), Up = { class: "ai-simple-table" }, Wp = { key: 0 }, Gp = ["colspan"], Kp = /* @__PURE__ */ m({
|
|
8611
8618
|
__name: "simple-table",
|
|
@@ -8614,12 +8621,12 @@ var Bd = ["src"], Vd = {
|
|
|
8614
8621
|
data: {}
|
|
8615
8622
|
},
|
|
8616
8623
|
setup(t) {
|
|
8617
|
-
return (n, r) => (k(), c("table", Up, [l("thead", null, [l("tr", null, [(k(!0), c(e, null,
|
|
8624
|
+
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) => {
|
|
8618
8625
|
var t;
|
|
8619
8626
|
return k(), c("td", {
|
|
8620
8627
|
key: e.key,
|
|
8621
8628
|
class: S({ "is-break-all": e.breakAll })
|
|
8622
|
-
},
|
|
8629
|
+
}, L((t = n[e.key]) == null ? "--" : t), 3);
|
|
8623
8630
|
}), 128))]))), 128)), t.data.length ? s("", !0) : (k(), c("tr", Wp, [l("td", {
|
|
8624
8631
|
class: "is-empty",
|
|
8625
8632
|
colspan: t.columns.length
|
|
@@ -8684,7 +8691,7 @@ var Bd = ["src"], Vd = {
|
|
|
8684
8691
|
breakAll: !0,
|
|
8685
8692
|
key: "value",
|
|
8686
8693
|
label: G("参数值")
|
|
8687
|
-
}], p = { forced_fail: mt ? "Force Fail" : "强制失败" }, m = t, h =
|
|
8694
|
+
}], p = { forced_fail: mt ? "Force Fail" : "强制失败" }, m = t, h = I(pm.Config), g = a(() => {
|
|
8688
8695
|
var e;
|
|
8689
8696
|
return (e = m.data) == null ? void 0 : e.basic_info;
|
|
8690
8697
|
}), _ = a(() => {
|
|
@@ -8747,55 +8754,55 @@ var Bd = ["src"], Vd = {
|
|
|
8747
8754
|
return (a, p) => {
|
|
8748
8755
|
var m;
|
|
8749
8756
|
return k(), c("div", qp, [
|
|
8750
|
-
l("h3", Jp, [t.loading ? (k(), c(e, { key: 0 }, [l("span", null,
|
|
8751
|
-
l("div", Xp, [(k(), c(e, null,
|
|
8757
|
+
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")]),
|
|
8758
|
+
l("div", Xp, [(k(), c(e, null, N(n, (e) => l("div", {
|
|
8752
8759
|
key: e.key,
|
|
8753
8760
|
class: S(["detail-tab", { "is-active": h.value === e.key }]),
|
|
8754
8761
|
onClick: (t) => h.value = e.key
|
|
8755
|
-
}, [(k(), o(
|
|
8756
|
-
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,
|
|
8762
|
+
}, [(k(), o(F(e.key === pm.Config ? z(sn) : z(on)), { class: "detail-tab-icon" })), d(" " + L(e.label), 1)], 10, Zp)), 64))]),
|
|
8763
|
+
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", {
|
|
8757
8764
|
key: e,
|
|
8758
8765
|
class: "skeleton-row ai-skeleton-element"
|
|
8759
|
-
})), 64))]), l("div", em, [p[2] || (p[2] = l("div", { class: "skeleton-heading ai-skeleton-element" }, null, -1)), (k(), c(e, null,
|
|
8766
|
+
})), 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", {
|
|
8760
8767
|
key: e,
|
|
8761
8768
|
class: "skeleton-row ai-skeleton-element"
|
|
8762
8769
|
})), 64))])], 64)) : (k(), c(e, { key: 1 }, [
|
|
8763
|
-
f(Hp, { title:
|
|
8764
|
-
default:
|
|
8770
|
+
f(Hp, { title: z(G)("基础信息") }, {
|
|
8771
|
+
default: H(() => {
|
|
8765
8772
|
var t, n, r;
|
|
8766
8773
|
return [l("div", tm, [
|
|
8767
|
-
(k(!0), c(e, null,
|
|
8774
|
+
(k(!0), c(e, null, N(_.value, (e) => (k(), c("div", {
|
|
8768
8775
|
key: e.label,
|
|
8769
8776
|
class: "info-row"
|
|
8770
|
-
}, [l("div", nm,
|
|
8771
|
-
l("div", im, [l("div", am,
|
|
8772
|
-
l("div", lm, [l("div", um,
|
|
8777
|
+
}, [l("div", nm, L(e.label), 1), l("div", rm, L(e.value), 1)]))), 128)),
|
|
8778
|
+
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))])]),
|
|
8779
|
+
l("div", lm, [l("div", um, L(z(G)("超时控制")), 1), l("div", dm, L(b.value), 1)])
|
|
8773
8780
|
])];
|
|
8774
8781
|
}),
|
|
8775
8782
|
_: 1
|
|
8776
8783
|
}, 8, ["title"]),
|
|
8777
|
-
f(Hp, { title:
|
|
8778
|
-
default:
|
|
8784
|
+
f(Hp, { title: z(G)("输入参数") }, {
|
|
8785
|
+
default: H(() => [f(Kp, {
|
|
8779
8786
|
columns: r,
|
|
8780
8787
|
data: x.value
|
|
8781
8788
|
}, null, 8, ["data"])]),
|
|
8782
8789
|
_: 1
|
|
8783
8790
|
}, 8, ["title"]),
|
|
8784
|
-
f(Hp, { title:
|
|
8785
|
-
default:
|
|
8791
|
+
f(Hp, { title: z(G)("输出参数") }, {
|
|
8792
|
+
default: H(() => [f(Kp, {
|
|
8786
8793
|
columns: i,
|
|
8787
8794
|
data: C.value
|
|
8788
8795
|
}, null, 8, ["data"])]),
|
|
8789
8796
|
_: 1
|
|
8790
8797
|
}, 8, ["title"])
|
|
8791
|
-
], 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,
|
|
8798
|
+
], 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", {
|
|
8792
8799
|
key: e,
|
|
8793
8800
|
class: "skeleton-row ai-skeleton-element"
|
|
8794
8801
|
})), 64))])) : (k(), o(Hp, {
|
|
8795
8802
|
key: 1,
|
|
8796
|
-
title:
|
|
8803
|
+
title: z(G)("结构化输出")
|
|
8797
8804
|
}, {
|
|
8798
|
-
default:
|
|
8805
|
+
default: H(() => [f(Kp, {
|
|
8799
8806
|
columns: u,
|
|
8800
8807
|
data: w.value
|
|
8801
8808
|
}, null, 8, ["data"])]),
|
|
@@ -8808,7 +8815,7 @@ var Bd = ["src"], Vd = {
|
|
|
8808
8815
|
let { messageUid: t, taskList: n } = e, r = Wr(), i = zr(), o = a(() => {
|
|
8809
8816
|
var e, t;
|
|
8810
8817
|
return (e = (t = r.selectedTab.value) == null ? void 0 : t.name) == null ? "" : e;
|
|
8811
|
-
}), s =
|
|
8818
|
+
}), s = I(!1), c = () => {
|
|
8812
8819
|
s.value = !0;
|
|
8813
8820
|
}, l = a(() => {
|
|
8814
8821
|
if (s.value) return o.value;
|
|
@@ -8859,7 +8866,7 @@ var Bd = ["src"], Vd = {
|
|
|
8859
8866
|
}
|
|
8860
8867
|
}));
|
|
8861
8868
|
};
|
|
8862
|
-
return
|
|
8869
|
+
return V(o, (e, t) => {
|
|
8863
8870
|
t !== void 0 && c();
|
|
8864
8871
|
}), E(() => {
|
|
8865
8872
|
i != null && i.value && p(n.value.find((e) => e.is_active && e.has_confidence));
|
|
@@ -8893,12 +8900,12 @@ var Bd = ["src"], Vd = {
|
|
|
8893
8900
|
}),
|
|
8894
8901
|
emits: ["update:collapsed"],
|
|
8895
8902
|
setup(t) {
|
|
8896
|
-
let n = t, r = hi(), i =
|
|
8897
|
-
messageUid:
|
|
8903
|
+
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({
|
|
8904
|
+
messageUid: te(n, "messageUid"),
|
|
8898
8905
|
taskList: g
|
|
8899
8906
|
}), { getNodeActions: D, isNodePending: O } = Rp({
|
|
8900
8907
|
hideResumeActions: p,
|
|
8901
|
-
onInterruptResume:
|
|
8908
|
+
onInterruptResume: te(n, "onInterruptResume"),
|
|
8902
8909
|
openNodeDetail: E
|
|
8903
8910
|
}), A = (e) => {
|
|
8904
8911
|
e.disabled || e.run();
|
|
@@ -8906,23 +8913,23 @@ var Bd = ["src"], Vd = {
|
|
|
8906
8913
|
return (t, n) => (k(), o(Op, {
|
|
8907
8914
|
collapsed: i.value,
|
|
8908
8915
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => i.value = e),
|
|
8909
|
-
"activity-type":
|
|
8916
|
+
"activity-type": z(_t).FlowAgent,
|
|
8910
8917
|
class: "flow-agent-activity"
|
|
8911
8918
|
}, {
|
|
8912
|
-
title:
|
|
8919
|
+
title: H(() => [f(z(xe), b({
|
|
8913
8920
|
class: "flow-agent-title-bar",
|
|
8914
8921
|
theme: "ai-chat-box-light light"
|
|
8915
|
-
}, X(X({},
|
|
8922
|
+
}, X(X({}, z(r)), {}, {
|
|
8916
8923
|
tag: "div",
|
|
8917
8924
|
arrow: !0,
|
|
8918
8925
|
followCursor: !1,
|
|
8919
8926
|
offset: [0, 10]
|
|
8920
8927
|
})), {
|
|
8921
|
-
content:
|
|
8928
|
+
content: H(() => [l("div", xm, [(k(!0), c(e, null, N(z(y), (e) => (k(), c("div", {
|
|
8922
8929
|
key: e.key,
|
|
8923
8930
|
class: "flow-agent-stat-tooltip-item"
|
|
8924
8931
|
}, [
|
|
8925
|
-
l("span", Sm, [e.key === "running" ? (k(), o(
|
|
8932
|
+
l("span", Sm, [e.key === "running" ? (k(), o(z(me), {
|
|
8926
8933
|
key: 0,
|
|
8927
8934
|
mode: "spin",
|
|
8928
8935
|
size: "mini",
|
|
@@ -8932,19 +8939,19 @@ var Bd = ["src"], Vd = {
|
|
|
8932
8939
|
class: "flow-agent-stat-dot",
|
|
8933
8940
|
style: w({ borderColor: e.dotColor })
|
|
8934
8941
|
}, null, 4))]),
|
|
8935
|
-
l("span", Cm,
|
|
8942
|
+
l("span", Cm, L(e.label) + ":", 1),
|
|
8936
8943
|
l("span", {
|
|
8937
8944
|
class: "flow-agent-stat-tooltip-count",
|
|
8938
8945
|
style: w({ color: e.color })
|
|
8939
|
-
},
|
|
8946
|
+
}, L(e.display), 5)
|
|
8940
8947
|
]))), 128))])]),
|
|
8941
|
-
default:
|
|
8948
|
+
default: H(() => [l("span", { class: S(["ai-activity-message-title-icon", { "icon-collapsed": i.value }]) }, [m.value ? (k(), o(lr, {
|
|
8942
8949
|
key: 0,
|
|
8943
8950
|
size: 12
|
|
8944
|
-
})) : (k(), o(
|
|
8951
|
+
})) : (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", {
|
|
8945
8952
|
key: e.key,
|
|
8946
8953
|
class: "flow-agent-stat-item"
|
|
8947
|
-
}, [e.key === "running" ? (k(), o(
|
|
8954
|
+
}, [e.key === "running" ? (k(), o(z(me), {
|
|
8948
8955
|
key: 0,
|
|
8949
8956
|
class: "flow-agent-stat-loading",
|
|
8950
8957
|
mode: "spin",
|
|
@@ -8957,42 +8964,42 @@ var Bd = ["src"], Vd = {
|
|
|
8957
8964
|
}, null, 4)), l("span", {
|
|
8958
8965
|
class: "flow-agent-stat-count",
|
|
8959
8966
|
style: w({ color: e.color })
|
|
8960
|
-
},
|
|
8967
|
+
}, L(e.display), 5)]))), 128))])]),
|
|
8961
8968
|
_: 1
|
|
8962
8969
|
}, 16)]),
|
|
8963
|
-
default:
|
|
8970
|
+
default: H(() => [(k(!0), c(e, null, N(z(v), (t) => {
|
|
8964
8971
|
var n;
|
|
8965
8972
|
return k(), c("div", {
|
|
8966
8973
|
key: t.taskId,
|
|
8967
8974
|
class: "flow-agent-task-group"
|
|
8968
8975
|
}, [l("div", { class: S(["flow-agent-task-header", {
|
|
8969
8976
|
"has-confidence": t.hasConfidence,
|
|
8970
|
-
"is-selected":
|
|
8977
|
+
"is-selected": z(C)(t.raw)
|
|
8971
8978
|
}]) }, [
|
|
8972
8979
|
l("span", {
|
|
8973
|
-
class: S(["flow-agent-task-arrow", { "is-expanded":
|
|
8974
|
-
onClick:
|
|
8975
|
-
}, [f(
|
|
8976
|
-
l("span", Tm, [t.convergedState === "running" ? (k(), o(
|
|
8980
|
+
class: S(["flow-agent-task-arrow", { "is-expanded": z(h)(t.raw) }]),
|
|
8981
|
+
onClick: le((e) => z(_)(t.raw), ["stop"])
|
|
8982
|
+
}, [f(z(Xt))], 10, wm),
|
|
8983
|
+
l("span", Tm, [t.convergedState === "running" ? (k(), o(z(me), {
|
|
8977
8984
|
key: 0,
|
|
8978
8985
|
mode: "spin",
|
|
8979
8986
|
size: "mini",
|
|
8980
8987
|
theme: "primary"
|
|
8981
|
-
})) : (k(), o(
|
|
8982
|
-
|
|
8983
|
-
l("span", Dm, [l("span", Om,
|
|
8988
|
+
})) : (k(), o(F(t.stateIcon), { key: 1 }))]),
|
|
8989
|
+
U((k(), c("span", Em, [f(z(Tp), { text: t.taskName }, null, 8, ["text"])])), [[z(vi), X({}, z(r))]]),
|
|
8990
|
+
l("span", Dm, [l("span", Om, L(t.totalTimeText), 1), t.hasConfidence ? (k(), c("span", {
|
|
8984
8991
|
key: 0,
|
|
8985
8992
|
class: "flow-agent-task-action-btn flow-agent-task-confidence-btn",
|
|
8986
|
-
onClick:
|
|
8987
|
-
}, [f(
|
|
8988
|
-
], 2),
|
|
8993
|
+
onClick: le((e) => z(T)(t.raw), ["stop"])
|
|
8994
|
+
}, [f(z(on)), d(" " + L((n = t.confidenceTitle) == null ? z(G)("有效证据") : n), 1)], 8, km)) : s("", !0)])
|
|
8995
|
+
], 2), U(l("div", Am, [(k(!0), c(e, null, N(t.nodes, (n) => (k(), c("div", {
|
|
8989
8996
|
key: n.id,
|
|
8990
8997
|
class: S(["flow-agent-node-item", {
|
|
8991
|
-
"is-selected":
|
|
8992
|
-
"is-pending":
|
|
8998
|
+
"is-selected": z(x)(t.raw, n.raw),
|
|
8999
|
+
"is-pending": z(O)(t, n)
|
|
8993
9000
|
}])
|
|
8994
9001
|
}, [
|
|
8995
|
-
l("span", jm, [n.convergedState === "running" ? (k(), o(
|
|
9002
|
+
l("span", jm, [n.convergedState === "running" ? (k(), o(z(me), {
|
|
8996
9003
|
key: 0,
|
|
8997
9004
|
mode: "spin",
|
|
8998
9005
|
size: "mini",
|
|
@@ -9002,26 +9009,26 @@ var Bd = ["src"], Vd = {
|
|
|
9002
9009
|
class: "flow-agent-status-dot",
|
|
9003
9010
|
style: w({ borderColor: n.dotColor })
|
|
9004
9011
|
}, null, 4))]),
|
|
9005
|
-
|
|
9012
|
+
U((k(), c("span", {
|
|
9006
9013
|
class: "flow-agent-node-name",
|
|
9007
9014
|
title: n.name
|
|
9008
|
-
}, [f(
|
|
9009
|
-
l("span", Nm, [l("span", Pm,
|
|
9015
|
+
}, [f(z(Tp), { text: n.name }, null, 8, ["text"])], 8, Mm)), [[z(vi), X({}, z(r))]]),
|
|
9016
|
+
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", {
|
|
9010
9017
|
key: e.id,
|
|
9011
9018
|
class: S(["flow-agent-node-action-btn", { "is-disabled": e.disabled }]),
|
|
9012
|
-
onClick:
|
|
9013
|
-
}, [e.loading ? (k(), o(
|
|
9019
|
+
onClick: le((t) => A(e), ["stop"])
|
|
9020
|
+
}, [e.loading ? (k(), o(z(me), {
|
|
9014
9021
|
key: 0,
|
|
9015
9022
|
class: "flow-agent-node-action-loading",
|
|
9016
9023
|
mode: "spin",
|
|
9017
9024
|
size: "mini",
|
|
9018
9025
|
theme: "primary"
|
|
9019
|
-
})) : (k(), o(
|
|
9026
|
+
})) : (k(), o(F(e.icon), { key: 1 })), d(" " + L(e.label), 1)], 10, Im)), [[z(Se), e.tooltip ? X(X({}, z(r)), {}, {
|
|
9020
9027
|
content: e.tooltip,
|
|
9021
9028
|
theme: "ai-chat-box",
|
|
9022
9029
|
offset: [0, 8]
|
|
9023
9030
|
}) : { content: "" }]])), 128))])])
|
|
9024
|
-
], 2))), 128))], 512), [[
|
|
9031
|
+
], 2))), 128))], 512), [[ae, z(h)(t.raw)]])]);
|
|
9025
9032
|
}), 128))]),
|
|
9026
9033
|
_: 1
|
|
9027
9034
|
}, 8, ["collapsed", "activity-type"]));
|
|
@@ -9038,16 +9045,16 @@ var Bd = ["src"], Vd = {
|
|
|
9038
9045
|
}),
|
|
9039
9046
|
emits: ["update:collapsed"],
|
|
9040
9047
|
setup(e) {
|
|
9041
|
-
let t = e, n =
|
|
9048
|
+
let t = e, n = re(e, "collapsed"), r = a(() => t.status === J.Pending || t.status === J.Streaming), i = a(() => r.value ? G("检索中") : G("检索完成"));
|
|
9042
9049
|
return (t, a) => (k(), o(Op, {
|
|
9043
9050
|
collapsed: n.value,
|
|
9044
9051
|
"onUpdate:collapsed": a[0] || (a[0] = (e) => n.value = e)
|
|
9045
9052
|
}, {
|
|
9046
|
-
title:
|
|
9053
|
+
title: H(() => [l("span", Rm, [r.value ? (k(), o(lr, { key: 0 })) : (k(), o(z(Kt), {
|
|
9047
9054
|
key: 1,
|
|
9048
9055
|
style: { "font-size": "12px" }
|
|
9049
|
-
}))]), l("span", zm,
|
|
9050
|
-
default:
|
|
9056
|
+
}))]), l("span", zm, L(i.value), 1)]),
|
|
9057
|
+
default: H(() => {
|
|
9051
9058
|
var t, n;
|
|
9052
9059
|
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"])];
|
|
9053
9060
|
}),
|
|
@@ -9065,7 +9072,7 @@ var Bd = ["src"], Vd = {
|
|
|
9065
9072
|
}),
|
|
9066
9073
|
emits: ["update:collapsed"],
|
|
9067
9074
|
setup(e) {
|
|
9068
|
-
let t = e, n =
|
|
9075
|
+
let t = e, n = re(e, "collapsed"), r = a(() => {
|
|
9069
9076
|
var e, n;
|
|
9070
9077
|
let r = (e = (n = t.content) == null ? void 0 : n.length) == null ? 0 : e;
|
|
9071
9078
|
return mt ? `Reference ${r} documents as reference` : `引用 ${r} 篇资料作为参考`;
|
|
@@ -9074,8 +9081,8 @@ var Bd = ["src"], Vd = {
|
|
|
9074
9081
|
collapsed: n.value,
|
|
9075
9082
|
"onUpdate:collapsed": i[0] || (i[0] = (e) => n.value = e)
|
|
9076
9083
|
}, {
|
|
9077
|
-
title:
|
|
9078
|
-
default:
|
|
9084
|
+
title: H(() => [l("span", Hm, [f(z(Kt), { style: { "font-size": "12px" } })]), l("span", Um, L(r.value), 1)]),
|
|
9085
|
+
default: H(() => [f(Pl, { content: e.content || [] }, null, 8, ["content"])]),
|
|
9079
9086
|
_: 1
|
|
9080
9087
|
}, 8, ["collapsed"]));
|
|
9081
9088
|
}
|
|
@@ -9102,11 +9109,11 @@ var Bd = ["src"], Vd = {
|
|
|
9102
9109
|
[_t.FlowAgent]: Lm,
|
|
9103
9110
|
[_t.KnowledgeRag]: Vm,
|
|
9104
9111
|
[_t.ReferenceDocument]: Wm
|
|
9105
|
-
}, n = e, r =
|
|
9112
|
+
}, n = e, r = re(e, "collapsed"), i = a(() => {
|
|
9106
9113
|
var e;
|
|
9107
9114
|
return t[(e = n.activityType) == null ? "" : e];
|
|
9108
9115
|
});
|
|
9109
|
-
return (t, n) => i.value ? (k(), o(
|
|
9116
|
+
return (t, n) => i.value ? (k(), o(F(i.value), {
|
|
9110
9117
|
key: 0,
|
|
9111
9118
|
collapsed: r.value,
|
|
9112
9119
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => r.value = e),
|
|
@@ -9136,13 +9143,13 @@ var Bd = ["src"], Vd = {
|
|
|
9136
9143
|
return n.desc;
|
|
9137
9144
|
}
|
|
9138
9145
|
});
|
|
9139
|
-
return (n, a) => (k(), c("div", Km, [l("div", qm,
|
|
9146
|
+
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", {
|
|
9140
9147
|
key: t,
|
|
9141
9148
|
class: "desc-panel-item"
|
|
9142
|
-
}, [l("span", Ym, [f(
|
|
9149
|
+
}, [l("span", Ym, [f(z(Tp), { text: String(t) }, null, 8, ["text"]), a[0] || (a[0] = d(":", -1))]), l("span", Xm, [f(z(Tp), {
|
|
9143
9150
|
style: { "word-break": "break-all" },
|
|
9144
9151
|
text: r(e)
|
|
9145
|
-
}, null, 8, ["text"])])]))), 128)) : (k(), o(
|
|
9152
|
+
}, null, 8, ["text"])])]))), 128)) : (k(), o(z(Tp), {
|
|
9146
9153
|
key: 1,
|
|
9147
9154
|
style: { wordBreak: "break-all" },
|
|
9148
9155
|
text: r(i.value)
|
|
@@ -9166,7 +9173,7 @@ var Bd = ["src"], Vd = {
|
|
|
9166
9173
|
setup(e) {
|
|
9167
9174
|
return (t, n) => (k(), c("div", Qm, [f(Zm, {
|
|
9168
9175
|
desc: e.content || (typeof e.error == "string" ? e.error : void 0),
|
|
9169
|
-
title:
|
|
9176
|
+
title: z(G)("返回内容")
|
|
9170
9177
|
}, null, 8, ["desc", "title"])]));
|
|
9171
9178
|
}
|
|
9172
9179
|
}), eh = { class: "ai-toolcall-render" }, th = { class: "toolcall-header-title" }, nh = { class: "toolcall-status-title" }, rh = {
|
|
@@ -9180,7 +9187,7 @@ var Bd = ["src"], Vd = {
|
|
|
9180
9187
|
toolCall: {}
|
|
9181
9188
|
},
|
|
9182
9189
|
setup(e) {
|
|
9183
|
-
let t = e, n =
|
|
9190
|
+
let t = e, n = I(!0), r = I(null), i = hi(), { keywordMatched: u, keyword: p } = gi(() => {
|
|
9184
9191
|
var e, n, r, i, a;
|
|
9185
9192
|
return [
|
|
9186
9193
|
(e = t.toolCall) == null ? void 0 : e.function.name,
|
|
@@ -9220,33 +9227,33 @@ var Bd = ["src"], Vd = {
|
|
|
9220
9227
|
class: S(["ai-toolcall-render-header", `toolcall-status-${e.status}`]),
|
|
9221
9228
|
onClick: h
|
|
9222
9229
|
}, [
|
|
9223
|
-
f(
|
|
9224
|
-
d(" " +
|
|
9225
|
-
|
|
9230
|
+
f(z(Xt), { class: S({ "is-collapsed": m.value }) }, null, 8, ["class"]),
|
|
9231
|
+
d(" " + L((r = e.toolCall) != null && r.function.mcpName ? z(G)("调用 MCP:") : z(G)("调用工具:")) + " ", 1),
|
|
9232
|
+
U((k(), c("span", th, [f(z(Tp), { text: g.value }, null, 8, ["text"])])), [[z(vi), X(X({}, z(i)), {}, {
|
|
9226
9233
|
text: g.value,
|
|
9227
9234
|
appendTo: "parent"
|
|
9228
9235
|
})]]),
|
|
9229
9236
|
l("span", nh, [
|
|
9230
|
-
e.status ===
|
|
9237
|
+
e.status === z(J).Pending || e.status === z(J).Streaming ? (k(), o(z(me), {
|
|
9231
9238
|
key: 0,
|
|
9232
9239
|
mode: "spin",
|
|
9233
9240
|
size: "mini",
|
|
9234
9241
|
theme: "primary"
|
|
9235
9242
|
})) : s("", !0),
|
|
9236
|
-
f(
|
|
9237
|
-
v.value ? (k(), c("span", rh, " (" +
|
|
9243
|
+
f(z(Tp), { text: _.value }, null, 8, ["text"]),
|
|
9244
|
+
v.value ? (k(), c("span", rh, " (" + L(v.value) + ") ", 1)) : s("", !0)
|
|
9238
9245
|
])
|
|
9239
|
-
], 2),
|
|
9246
|
+
], 2), U(l("div", ih, [
|
|
9240
9247
|
f(Zm, {
|
|
9241
9248
|
desc: (a = e.toolCall) == null ? void 0 : a.function.description,
|
|
9242
|
-
title:
|
|
9249
|
+
title: z(G)("描述")
|
|
9243
9250
|
}, null, 8, ["desc", "title"]),
|
|
9244
9251
|
f(Zm, {
|
|
9245
9252
|
desc: (u = e.toolCall) == null ? void 0 : u.function.arguments,
|
|
9246
|
-
title:
|
|
9253
|
+
title: z(G)("参数")
|
|
9247
9254
|
}, null, 8, ["desc", "title"]),
|
|
9248
9255
|
(p = e.toolCall) != null && p.toolMessage ? (k(), o($m, C(b({ key: 0 }, e.toolCall.toolMessage)), null, 16)) : s("", !0)
|
|
9249
|
-
], 512), [[
|
|
9256
|
+
], 512), [[ae, !m.value]])]);
|
|
9250
9257
|
};
|
|
9251
9258
|
}
|
|
9252
9259
|
}), oh = { class: "ai-assistant-message" }, sh = {
|
|
@@ -9266,15 +9273,15 @@ var Bd = ["src"], Vd = {
|
|
|
9266
9273
|
property: {}
|
|
9267
9274
|
},
|
|
9268
9275
|
setup(t) {
|
|
9269
|
-
return (n, r) => (k(), c("div", oh, [t.content ? (k(), c("div", sh, [
|
|
9276
|
+
return (n, r) => (k(), c("div", oh, [t.content ? (k(), c("div", sh, [P(n.$slots, "default", C(h({ content: t.content })), () => [f(Fl, {
|
|
9270
9277
|
content: t.content || "",
|
|
9271
9278
|
status: t.status,
|
|
9272
|
-
type:
|
|
9279
|
+
type: z(_t).Text
|
|
9273
9280
|
}, null, 8, [
|
|
9274
9281
|
"content",
|
|
9275
9282
|
"status",
|
|
9276
9283
|
"type"
|
|
9277
|
-
])])])) : s("", !0), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 1 },
|
|
9284
|
+
])])])) : s("", !0), t.toolCalls && t.toolCalls.length > 0 ? (k(!0), c(e, { key: 1 }, N(t.toolCalls, (e) => {
|
|
9278
9285
|
var n, r;
|
|
9279
9286
|
return k(), o(ah, {
|
|
9280
9287
|
key: e.id,
|
|
@@ -9296,15 +9303,18 @@ var Bd = ["src"], Vd = {
|
|
|
9296
9303
|
property: {}
|
|
9297
9304
|
},
|
|
9298
9305
|
setup(t) {
|
|
9299
|
-
return (n, r) => (k(), c("div", lh, [(k(!0), c(e, null,
|
|
9306
|
+
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", {
|
|
9300
9307
|
key: t,
|
|
9301
9308
|
class: "info-message-content"
|
|
9302
|
-
},
|
|
9309
|
+
}, L(e), 1))), 128))]));
|
|
9303
9310
|
}
|
|
9304
9311
|
}), 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 = {
|
|
9305
9312
|
key: 0,
|
|
9306
9313
|
class: "ai-tool-approval-card__processor"
|
|
9307
|
-
}, yh = { class: "ai-tool-approval-card__processor-text" }, bh = { class: "ai-tool-approval-card__actions" }, xh =
|
|
9314
|
+
}, yh = { class: "ai-tool-approval-card__processor-text" }, bh = { class: "ai-tool-approval-card__actions" }, xh = {
|
|
9315
|
+
key: 1,
|
|
9316
|
+
class: "ai-tool-approval-card__cancel-wrap"
|
|
9317
|
+
}, Sh = 2e3, Ch = /* @__PURE__ */ m({
|
|
9308
9318
|
__name: "tool-approval-card",
|
|
9309
9319
|
props: {
|
|
9310
9320
|
interrupt: {},
|
|
@@ -9327,79 +9337,117 @@ var Bd = ["src"], Vd = {
|
|
|
9327
9337
|
title: "",
|
|
9328
9338
|
url: ""
|
|
9329
9339
|
} : e;
|
|
9330
|
-
}), g =
|
|
9340
|
+
}), g = new Set([K.CANCELLED, K.REVOKED]), _ = {
|
|
9341
|
+
[K.APPROVED]: G("该单据已通过,无法取消"),
|
|
9342
|
+
[K.CANCELLED]: G("单据已取消审批"),
|
|
9343
|
+
[K.REJECTED]: G("该单据已被拒绝,无法取消"),
|
|
9344
|
+
[K.REVOKED]: G("单据已取消审批")
|
|
9345
|
+
}, v = a(() => p.has(h.value.status)), y = a(() => v.value ? "pending" : h.value.status), b = a(() => {
|
|
9346
|
+
var e;
|
|
9347
|
+
return v.value ? G("审批中") : (e = vt[h.value.status]) == null ? h.value.status : e;
|
|
9348
|
+
}), 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(() => {
|
|
9331
9349
|
var e;
|
|
9332
|
-
return
|
|
9333
|
-
}),
|
|
9350
|
+
return (e = _[h.value.status]) == null ? G("当前状态无法取消审批") : e;
|
|
9351
|
+
}), E = () => {
|
|
9334
9352
|
h.value.url && window.open(h.value.url, "_blank", "noopener");
|
|
9335
|
-
},
|
|
9336
|
-
|
|
9337
|
-
},
|
|
9353
|
+
}, D = () => {
|
|
9354
|
+
C.value && u(C.value);
|
|
9355
|
+
}, A = I(!1), j = I(!1), M, ee = () => {
|
|
9356
|
+
j.value = !0, clearTimeout(M), M = setTimeout(() => {
|
|
9357
|
+
j.value = !1;
|
|
9358
|
+
}, Sh);
|
|
9359
|
+
}, N = () => {
|
|
9338
9360
|
var e;
|
|
9339
|
-
|
|
9361
|
+
A.value || (A.value = !0, ee(), (e = t.onInterruptResume) == null || e.call(t, {
|
|
9340
9362
|
operation: yt.ApprovalCancel,
|
|
9341
9363
|
payload: { interrupt_id: t.interrupt.id }
|
|
9342
9364
|
}, t.interrupt));
|
|
9365
|
+
}, P = () => {
|
|
9366
|
+
var e;
|
|
9367
|
+
j.value || i.value || (ee(), (e = t.onInterruptResume) == null || e.call(t, {
|
|
9368
|
+
operation: yt.ApprovalRefresh,
|
|
9369
|
+
payload: { interrupt_id: t.interrupt.id }
|
|
9370
|
+
}, t.interrupt));
|
|
9343
9371
|
};
|
|
9344
|
-
return (t, r) => (k(), c("section", dh, [
|
|
9372
|
+
return O(() => clearTimeout(M)), (t, r) => (k(), c("section", dh, [
|
|
9345
9373
|
l("header", fh, [l("div", ph, [
|
|
9346
9374
|
r[0] || (r[0] = l("span", { class: "ai-tool-approval-card__title-bar" }, null, -1)),
|
|
9347
|
-
l("span", mh,
|
|
9348
|
-
|
|
9349
|
-
class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !
|
|
9350
|
-
onClick:
|
|
9351
|
-
}, null, 8, ["class"]), [[
|
|
9352
|
-
content:
|
|
9375
|
+
l("span", mh, L(h.value.title || z(G)("算法方案评审单")), 1),
|
|
9376
|
+
U(f(z(Wn), {
|
|
9377
|
+
class: S(["ai-tool-approval-card__copy-icon", { "is-disabled": !C.value }]),
|
|
9378
|
+
onClick: D
|
|
9379
|
+
}, null, 8, ["class"]), [[z(Se), X(X({}, z(n)), {}, {
|
|
9380
|
+
content: z(G)("复制单据链接"),
|
|
9381
|
+
theme: "ai-chat-box",
|
|
9382
|
+
offset: [0, 8]
|
|
9383
|
+
})]]),
|
|
9384
|
+
v.value && !e.readonly ? U((k(), o(z(Kn), {
|
|
9385
|
+
key: 0,
|
|
9386
|
+
class: S(["ai-tool-approval-card__refresh-icon", { "is-disabled": j.value || i.value }]),
|
|
9387
|
+
onClick: P
|
|
9388
|
+
}, null, 8, ["class"])), [[z(Se), X(X({}, z(n)), {}, {
|
|
9389
|
+
content: z(G)("刷新单据状态"),
|
|
9353
9390
|
theme: "ai-chat-box",
|
|
9354
9391
|
offset: [0, 8]
|
|
9355
|
-
})]])
|
|
9356
|
-
]), l("span", { class: S(["ai-tool-approval-card__status", `ai-tool-approval-card__status--${
|
|
9392
|
+
})]]) : s("", !0)
|
|
9393
|
+
]), 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), {
|
|
9357
9394
|
key: 0,
|
|
9358
9395
|
class: "ai-tool-approval-card__status-icon"
|
|
9359
|
-
})) :
|
|
9396
|
+
})) : z(m).has(h.value.status) ? (k(), o(z(Tn), {
|
|
9360
9397
|
key: 1,
|
|
9361
9398
|
class: "ai-tool-approval-card__status-icon"
|
|
9362
|
-
})) : h.value.status ===
|
|
9399
|
+
})) : h.value.status === z(K).REVOKED ? (k(), o(z(En), {
|
|
9363
9400
|
key: 2,
|
|
9364
|
-
class: S(["ai-tool-approval-card__status-icon", { "ai-tool-approval-card__status-icon--revoked": h.value.status ===
|
|
9365
|
-
}, null, 8, ["class"])) : (k(), o(
|
|
9401
|
+
class: S(["ai-tool-approval-card__status-icon", { "ai-tool-approval-card__status-icon--revoked": h.value.status === z(K).REVOKED }])
|
|
9402
|
+
}, null, 8, ["class"])) : (k(), o(z(me), {
|
|
9366
9403
|
key: 3,
|
|
9367
9404
|
class: "ai-tool-approval-card__status-icon",
|
|
9368
9405
|
mode: "spin",
|
|
9369
9406
|
size: "mini",
|
|
9370
9407
|
theme: "primary"
|
|
9371
|
-
})), d(" " +
|
|
9372
|
-
l("dl", hh, [l("div", gh, [l("dt", null,
|
|
9373
|
-
|
|
9374
|
-
l("div", bh, [f(
|
|
9408
|
+
})), d(" " + L(b.value), 1)], 2)]),
|
|
9409
|
+
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)])]),
|
|
9410
|
+
v.value ? (k(), c("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))]])])) : s("", !0),
|
|
9411
|
+
l("div", bh, [f(z(W), {
|
|
9375
9412
|
class: "ai-tool-approval-card__detail",
|
|
9376
9413
|
disabled: !h.value.url,
|
|
9377
9414
|
theme: "primary",
|
|
9378
|
-
onClick:
|
|
9415
|
+
onClick: E
|
|
9379
9416
|
}, {
|
|
9380
|
-
default:
|
|
9417
|
+
default: H(() => [d(L(z(G)("查看单据详情")) + " ", 1), f(z(mn), { class: "ai-tool-approval-card__detail-icon" })]),
|
|
9381
9418
|
_: 1
|
|
9382
|
-
}, 8, ["disabled"]),
|
|
9419
|
+
}, 8, ["disabled"]), v.value && !e.readonly ? (k(), o(z(W), {
|
|
9383
9420
|
key: 0,
|
|
9384
9421
|
class: "ai-tool-approval-card__cancel",
|
|
9385
|
-
disabled:
|
|
9386
|
-
loading:
|
|
9422
|
+
disabled: A.value || i.value,
|
|
9423
|
+
loading: A.value,
|
|
9387
9424
|
outline: "",
|
|
9388
9425
|
theme: "primary",
|
|
9389
|
-
onClick:
|
|
9426
|
+
onClick: N
|
|
9390
9427
|
}, {
|
|
9391
|
-
default:
|
|
9428
|
+
default: H(() => [d(L(z(G)("取消审批")), 1)]),
|
|
9392
9429
|
_: 1
|
|
9393
|
-
}, 8, ["disabled", "loading"])) : s("", !0)
|
|
9430
|
+
}, 8, ["disabled", "loading"])) : e.readonly ? s("", !0) : U((k(), c("span", xh, [f(z(W), {
|
|
9431
|
+
class: "ai-tool-approval-card__cancel",
|
|
9432
|
+
disabled: "",
|
|
9433
|
+
outline: ""
|
|
9434
|
+
}, {
|
|
9435
|
+
default: H(() => [d(L(w.value), 1)]),
|
|
9436
|
+
_: 1
|
|
9437
|
+
})])), [[z(Se), X(X({}, z(n)), {}, {
|
|
9438
|
+
content: T.value,
|
|
9439
|
+
theme: "ai-chat-box",
|
|
9440
|
+
offset: [0, 8]
|
|
9441
|
+
})]])])
|
|
9394
9442
|
]));
|
|
9395
9443
|
}
|
|
9396
|
-
}),
|
|
9444
|
+
}), wh = { class: "ai-interrupt-message" }, Th = {
|
|
9397
9445
|
key: 0,
|
|
9398
9446
|
class: "ai-interrupt-message__content"
|
|
9399
|
-
},
|
|
9447
|
+
}, Eh = {
|
|
9400
9448
|
key: 1,
|
|
9401
9449
|
class: "ai-interrupt-message__fallback"
|
|
9402
|
-
},
|
|
9450
|
+
}, Dh = /* @__PURE__ */ m({
|
|
9403
9451
|
__name: "interrupt-message",
|
|
9404
9452
|
props: {
|
|
9405
9453
|
content: {},
|
|
@@ -9413,17 +9461,18 @@ var Bd = ["src"], Vd = {
|
|
|
9413
9461
|
onInterruptResume: { type: Function }
|
|
9414
9462
|
},
|
|
9415
9463
|
setup(t) {
|
|
9416
|
-
let n = { [gt.AIDevToolApproval]:
|
|
9464
|
+
let n = { [gt.AIDevToolApproval]: Ch }, r = (e) => ({
|
|
9417
9465
|
id: e.interruptId || e.id || "",
|
|
9418
9466
|
reason: gt.AIDevToolApproval,
|
|
9419
9467
|
toolCallId: "",
|
|
9420
9468
|
metadata: e.payload.metadata
|
|
9421
9469
|
}), i = {
|
|
9422
9470
|
[gt.AIDevToolApproval]: (e) => ({
|
|
9423
|
-
component:
|
|
9471
|
+
component: Ch,
|
|
9424
9472
|
props: {
|
|
9425
9473
|
interrupt: r(e),
|
|
9426
|
-
|
|
9474
|
+
onInterruptResume: d.onInterruptResume,
|
|
9475
|
+
readonly: !1
|
|
9427
9476
|
}
|
|
9428
9477
|
}),
|
|
9429
9478
|
[gt.UserQuestion]: (e) => {
|
|
@@ -9448,29 +9497,29 @@ var Bd = ["src"], Vd = {
|
|
|
9448
9497
|
let r = (t = d.content) == null ? void 0 : t.result;
|
|
9449
9498
|
if (r) return (n = i[r.reason]) == null ? void 0 : n.call(i, r);
|
|
9450
9499
|
});
|
|
9451
|
-
return (n, r) => (k(), c("div",
|
|
9452
|
-
p.value ? (k(), c("div",
|
|
9453
|
-
(k(!0), c(e, null,
|
|
9500
|
+
return (n, r) => (k(), c("div", wh, [
|
|
9501
|
+
p.value ? (k(), c("div", Th, L(p.value), 1)) : s("", !0),
|
|
9502
|
+
(k(!0), c(e, null, N(f.value, (n) => (k(), c(e, { key: n.toolCallId }, [m(n) ? (k(), o(F(m(n)), {
|
|
9454
9503
|
key: 0,
|
|
9455
9504
|
interrupt: n,
|
|
9456
9505
|
"on-interrupt-resume": t.onInterruptResume
|
|
9457
|
-
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div",
|
|
9458
|
-
_.value ? (k(), o(
|
|
9506
|
+
}, null, 40, ["interrupt", "on-interrupt-resume"])) : g(n) ? s("", !0) : (k(), c("div", Eh, L(n.message || z(G)("暂不支持的中断消息")), 1))], 64))), 128)),
|
|
9507
|
+
_.value ? (k(), o(F(_.value.component), C(b({ key: 1 }, _.value.props)), u({ _: 2 }, [n.$slots.answeredQuestion ? {
|
|
9459
9508
|
name: "answer",
|
|
9460
|
-
fn:
|
|
9509
|
+
fn: H((e) => [P(n.$slots, "answeredQuestion", C(h(e)))]),
|
|
9461
9510
|
key: "0"
|
|
9462
9511
|
} : void 0]), 1040)) : s("", !0)
|
|
9463
9512
|
]));
|
|
9464
9513
|
}
|
|
9465
|
-
}),
|
|
9514
|
+
}), Oh = { class: "ai-loading-message" }, kh = /* @__PURE__ */ m({
|
|
9466
9515
|
__name: "loading-message",
|
|
9467
9516
|
setup(e) {
|
|
9468
|
-
return (e, t) => (k(), c("div",
|
|
9517
|
+
return (e, t) => (k(), c("div", Oh, [f(lr, { size: 18 }), P(e.$slots, "default", {}, () => [d(L(z(G)("请求中...")), 1)])]));
|
|
9469
9518
|
}
|
|
9470
|
-
}),
|
|
9519
|
+
}), Ah = { class: "ai-reasoning-message" }, jh = {
|
|
9471
9520
|
key: 0,
|
|
9472
9521
|
class: "ai-reasoning-message-title-icon"
|
|
9473
|
-
},
|
|
9522
|
+
}, Mh = { class: "ai-reasoning-message-title-text" }, Nh = { class: "ai-reasoning-message-content" }, Ph = /* @__PURE__ */ m({
|
|
9474
9523
|
__name: "reasoning-message",
|
|
9475
9524
|
props: /* @__PURE__ */ y({
|
|
9476
9525
|
duration: {},
|
|
@@ -9488,7 +9537,7 @@ var Bd = ["src"], Vd = {
|
|
|
9488
9537
|
}),
|
|
9489
9538
|
emits: ["update:collapsed"],
|
|
9490
9539
|
setup(t) {
|
|
9491
|
-
let n = t, r =
|
|
9540
|
+
let n = t, r = re(t, "collapsed"), { stop: i } = V(() => n.duration, function() {
|
|
9492
9541
|
var e = Z(function* (e) {
|
|
9493
9542
|
e && (r.value = !0, yield x(), i == null || i());
|
|
9494
9543
|
});
|
|
@@ -9506,59 +9555,59 @@ var Bd = ["src"], Vd = {
|
|
|
9506
9555
|
});
|
|
9507
9556
|
return (n, i) => {
|
|
9508
9557
|
var a;
|
|
9509
|
-
return k(), c("div",
|
|
9558
|
+
return k(), c("div", Ah, [l("div", {
|
|
9510
9559
|
class: S(["ai-reasoning-message-title", {
|
|
9511
9560
|
"ai-reasoning-message-title-collapsed": r.value,
|
|
9512
|
-
"is-thinking": t.status ===
|
|
9513
|
-
"is-complete": t.status ===
|
|
9514
|
-
"is-error": t.status ===
|
|
9561
|
+
"is-thinking": t.status === z(J).Pending || t.status === z(J).Streaming,
|
|
9562
|
+
"is-complete": t.status === z(J).Complete || t.status === z(J).Success,
|
|
9563
|
+
"is-error": t.status === z(J).Error
|
|
9515
9564
|
}]),
|
|
9516
9565
|
onClick: i[0] || (i[0] = (e) => r.value = !r.value)
|
|
9517
9566
|
}, [
|
|
9518
|
-
t.status ===
|
|
9519
|
-
l("span",
|
|
9520
|
-
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(
|
|
9521
|
-
], 2),
|
|
9567
|
+
t.status === z(J).Pending || t.status === z(J).Streaming ? (k(), c("span", jh, [f(lr)])) : s("", !0),
|
|
9568
|
+
l("span", Mh, L(u.value), 1),
|
|
9569
|
+
l("span", { class: S(["ai-reasoning-message-title-icon collapsed-icon", { "is-collapsed": r.value }]) }, [f(z(Pn))], 2)
|
|
9570
|
+
], 2), U(l("div", Nh, [t.status === z(J).Error ? (k(), o(pl, {
|
|
9522
9571
|
key: 0,
|
|
9523
9572
|
content: ((a = t.content) == null ? void 0 : a.join("\n")) || ""
|
|
9524
|
-
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 },
|
|
9573
|
+
}, null, 8, ["content"])) : (k(!0), c(e, { key: 1 }, N(Array.isArray(t.content) ? t.content : [t.content], (e) => (k(), o(Ml, {
|
|
9525
9574
|
key: e,
|
|
9526
9575
|
content: e
|
|
9527
|
-
}, null, 8, ["content"]))), 128))], 512), [[
|
|
9576
|
+
}, null, 8, ["content"]))), 128))], 512), [[ae, !r.value]])]);
|
|
9528
9577
|
};
|
|
9529
9578
|
}
|
|
9530
|
-
}),
|
|
9579
|
+
}), Fh = { class: "ai-key-value-content" }, Ih = {
|
|
9531
9580
|
key: 0,
|
|
9532
9581
|
class: "ai-key-value-title"
|
|
9533
|
-
},
|
|
9582
|
+
}, Lh = { class: "ai-key-value-content" }, Rh = { class: "item-key" }, zh = { class: "item-value" }, Bh = /* @__PURE__ */ m({
|
|
9534
9583
|
__name: "key-value-content",
|
|
9535
9584
|
props: {
|
|
9536
9585
|
content: {},
|
|
9537
9586
|
title: {}
|
|
9538
9587
|
},
|
|
9539
9588
|
setup(t) {
|
|
9540
|
-
return (n, r) => (k(), c("div",
|
|
9589
|
+
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", {
|
|
9541
9590
|
key: e.key,
|
|
9542
9591
|
class: "key-value-item"
|
|
9543
9592
|
}, [
|
|
9544
|
-
l("div",
|
|
9593
|
+
l("div", Rh, L(e.key), 1),
|
|
9545
9594
|
r[0] || (r[0] = d(" : ", -1)),
|
|
9546
|
-
l("div",
|
|
9595
|
+
l("div", zh, L(e.value), 1)
|
|
9547
9596
|
]))), 128))])]));
|
|
9548
9597
|
}
|
|
9549
|
-
}),
|
|
9598
|
+
}), Vh = { class: "text-content" }, Hh = /* @__PURE__ */ m({
|
|
9550
9599
|
__name: "text-content",
|
|
9551
9600
|
props: { content: {} },
|
|
9552
9601
|
setup(e) {
|
|
9553
|
-
return (t, n) => (k(), c("div",
|
|
9602
|
+
return (t, n) => (k(), c("div", Vh, L(e.content), 1));
|
|
9554
9603
|
}
|
|
9555
|
-
}),
|
|
9604
|
+
}), Uh = { class: "ai-user-message" }, Wh = {
|
|
9556
9605
|
key: 0,
|
|
9557
9606
|
class: "ai-user-message-binary-files"
|
|
9558
|
-
},
|
|
9607
|
+
}, Gh = {
|
|
9559
9608
|
key: 1,
|
|
9560
9609
|
class: "ai-user-message-content"
|
|
9561
|
-
},
|
|
9610
|
+
}, Kh = { class: "user-edit-footer" }, qh = /* @__PURE__ */ m({
|
|
9562
9611
|
__name: "user-message",
|
|
9563
9612
|
props: {
|
|
9564
9613
|
content: {},
|
|
@@ -9576,7 +9625,7 @@ var Bd = ["src"], Vd = {
|
|
|
9576
9625
|
onShortcutConfirm: { type: Function }
|
|
9577
9626
|
},
|
|
9578
9627
|
setup(t) {
|
|
9579
|
-
let n = t, r = Yr(), { copy: i } = Pr(), u =
|
|
9628
|
+
let n = t, r = Yr(), { copy: i } = Pr(), u = I(!1), p = I(""), m = B("chatInputRef"), h = a(() => {
|
|
9580
9629
|
var e;
|
|
9581
9630
|
let t = (e = n.property) == null || (e = e.extra) == null ? void 0 : e.cite;
|
|
9582
9631
|
if (!(!t || typeof t == "string")) return t.title;
|
|
@@ -9664,7 +9713,7 @@ var Bd = ["src"], Vd = {
|
|
|
9664
9713
|
}();
|
|
9665
9714
|
return (n, i) => {
|
|
9666
9715
|
var a, v;
|
|
9667
|
-
return k(), c("div",
|
|
9716
|
+
return k(), c("div", Uh, [g.value && typeof g.value == "string" ? (k(), o(Cd, {
|
|
9668
9717
|
key: 0,
|
|
9669
9718
|
class: "ai-user-message-cite",
|
|
9670
9719
|
content: g.value
|
|
@@ -9681,20 +9730,20 @@ var Bd = ["src"], Vd = {
|
|
|
9681
9730
|
class: "user-edit-input",
|
|
9682
9731
|
"default-upload-files": y.value,
|
|
9683
9732
|
"on-send-message": A,
|
|
9684
|
-
"support-upload": (a = (v =
|
|
9733
|
+
"support-upload": (a = (v = z(r)) == null ? void 0 : v.supportUpload.value) == null ? !1 : a
|
|
9685
9734
|
}, {
|
|
9686
|
-
"send-icon":
|
|
9735
|
+
"send-icon": H(() => [l("div", Kh, [f(z(W), {
|
|
9687
9736
|
size: "small",
|
|
9688
9737
|
onClick: E
|
|
9689
9738
|
}, {
|
|
9690
|
-
default:
|
|
9739
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
9691
9740
|
_: 1
|
|
9692
|
-
}), f(
|
|
9741
|
+
}), f(z(W), {
|
|
9693
9742
|
size: "small",
|
|
9694
9743
|
theme: "primary",
|
|
9695
9744
|
onClick: T
|
|
9696
9745
|
}, {
|
|
9697
|
-
default:
|
|
9746
|
+
default: H(() => [d(L(z(G)("发送")), 1)]),
|
|
9698
9747
|
_: 1
|
|
9699
9748
|
})])]),
|
|
9700
9749
|
_: 1
|
|
@@ -9703,10 +9752,10 @@ var Bd = ["src"], Vd = {
|
|
|
9703
9752
|
"default-upload-files",
|
|
9704
9753
|
"support-upload"
|
|
9705
9754
|
]))], 64)) : (k(), c(e, { key: 1 }, [
|
|
9706
|
-
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div",
|
|
9755
|
+
y.value.length ? (k(), c(e, { key: 0 }, [x.value.length ? (k(), c("div", Wh, [f(ef, {
|
|
9707
9756
|
files: x.value,
|
|
9708
9757
|
readonly: !0
|
|
9709
|
-
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null,
|
|
9758
|
+
}, null, 8, ["files"])])) : s("", !0), (k(!0), c(e, null, N(S.value, (e, t) => {
|
|
9710
9759
|
var n;
|
|
9711
9760
|
return k(), c("div", {
|
|
9712
9761
|
key: (n = e.url) == null ? t : n,
|
|
@@ -9716,18 +9765,18 @@ var Bd = ["src"], Vd = {
|
|
|
9716
9765
|
readonly: !0
|
|
9717
9766
|
}, null, 8, ["files"])]);
|
|
9718
9767
|
}), 128))], 64)) : s("", !0),
|
|
9719
|
-
g.value || C.value.length ? (k(), c("div",
|
|
9768
|
+
g.value || C.value.length ? (k(), c("div", Gh, [Array.isArray(g.value) ? (k(), o(Bh, {
|
|
9720
9769
|
key: 0,
|
|
9721
9770
|
content: g.value,
|
|
9722
9771
|
title: h.value
|
|
9723
|
-
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 },
|
|
9772
|
+
}, null, 8, ["content", "title"])) : t.content ? (k(!0), c(e, { key: 1 }, N(C.value, (e, t) => (k(), o(Hh, {
|
|
9724
9773
|
key: t,
|
|
9725
9774
|
content: e
|
|
9726
9775
|
}, null, 8, ["content"]))), 128)) : s("", !0)])) : s("", !0),
|
|
9727
|
-
t.messageToolsStatus ===
|
|
9776
|
+
t.messageToolsStatus === z(_d).Hidden ? s("", !0) : (k(), o(wp, {
|
|
9728
9777
|
key: 2,
|
|
9729
9778
|
class: "ai-user-message-tools",
|
|
9730
|
-
"message-tools":
|
|
9779
|
+
"message-tools": z(kt),
|
|
9731
9780
|
"message-tools-status": t.messageToolsStatus,
|
|
9732
9781
|
"on-action": w,
|
|
9733
9782
|
"tippy-options": t.tippyOptions,
|
|
@@ -9740,7 +9789,7 @@ var Bd = ["src"], Vd = {
|
|
|
9740
9789
|
], 64))]);
|
|
9741
9790
|
};
|
|
9742
9791
|
}
|
|
9743
|
-
}),
|
|
9792
|
+
}), Jh = /* @__PURE__ */ m({
|
|
9744
9793
|
__name: "message-render",
|
|
9745
9794
|
props: {
|
|
9746
9795
|
messageToolsStatus: {},
|
|
@@ -9752,16 +9801,16 @@ var Bd = ["src"], Vd = {
|
|
|
9752
9801
|
onInterruptResume: { type: Function }
|
|
9753
9802
|
},
|
|
9754
9803
|
setup(e) {
|
|
9755
|
-
let t = e, n =
|
|
9804
|
+
let t = e, n = ie(), r = a(() => {
|
|
9756
9805
|
switch (t.message.role) {
|
|
9757
|
-
case q.User: return g(
|
|
9806
|
+
case q.User: return g(qh, X(X({}, t.message), {}, {
|
|
9758
9807
|
onAction: t.onAction,
|
|
9759
9808
|
onInputConfirm: t.onInputConfirm,
|
|
9760
9809
|
onShortcutConfirm: t.onShortcutConfirm,
|
|
9761
9810
|
messageToolsStatus: t.messageToolsStatus,
|
|
9762
9811
|
tippyOptions: t.tippyOptions
|
|
9763
9812
|
}));
|
|
9764
|
-
case q.Assistant: return g(ch, t.message, { default: (e) =>
|
|
9813
|
+
case q.Assistant: return g(ch, t.message, { default: (e) => P(n, "default", e, () => [g(Fl, {
|
|
9765
9814
|
content: t.message.content || "",
|
|
9766
9815
|
status: t.message.status
|
|
9767
9816
|
}, n.codeHeader ? { codeHeader: (e) => {
|
|
@@ -9769,24 +9818,24 @@ var Bd = ["src"], Vd = {
|
|
|
9769
9818
|
return (t = n.codeHeader) == null ? void 0 : t.call(n, e);
|
|
9770
9819
|
} } : void 0)]) });
|
|
9771
9820
|
case q.Info: return g(uh, t.message);
|
|
9772
|
-
case q.Reasoning: return g(
|
|
9821
|
+
case q.Reasoning: return g(Ph, t.message);
|
|
9773
9822
|
case q.Tool: return g($m, t.message);
|
|
9774
9823
|
case q.Activity: return g(Gm, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }));
|
|
9775
|
-
case q.Interrupt: return g(
|
|
9824
|
+
case q.Interrupt: return g(Dh, X(X({}, t.message), {}, { onInterruptResume: t.onInterruptResume }), n.answeredQuestion ? { answeredQuestion: (e) => {
|
|
9776
9825
|
var t;
|
|
9777
9826
|
return (t = n.answeredQuestion) == null ? void 0 : t.call(n, e);
|
|
9778
9827
|
} } : void 0);
|
|
9779
|
-
case q.Loading: return g(
|
|
9828
|
+
case q.Loading: return g(kh, t.message);
|
|
9780
9829
|
default: return null;
|
|
9781
9830
|
}
|
|
9782
9831
|
});
|
|
9783
|
-
return (e, t) => (k(), o(
|
|
9832
|
+
return (e, t) => (k(), o(F(r.value)));
|
|
9784
9833
|
}
|
|
9785
|
-
}),
|
|
9834
|
+
}), Yh = [
|
|
9786
9835
|
"id",
|
|
9787
9836
|
"onMouseenter",
|
|
9788
9837
|
"onMouseleave"
|
|
9789
|
-
],
|
|
9838
|
+
], Xh = { class: "ai-message-fixed-bottom" }, Zh = /* @__PURE__ */ m({
|
|
9790
9839
|
__name: "message-container",
|
|
9791
9840
|
props: /* @__PURE__ */ y({
|
|
9792
9841
|
enableSelection: {
|
|
@@ -9811,7 +9860,7 @@ var Bd = ["src"], Vd = {
|
|
|
9811
9860
|
}),
|
|
9812
9861
|
emits: /* @__PURE__ */ y(["stopStreaming"], ["update:selectedUserMessages"]),
|
|
9813
9862
|
setup(t) {
|
|
9814
|
-
let n = t, r =
|
|
9863
|
+
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) => {
|
|
9815
9864
|
var t;
|
|
9816
9865
|
let n = (t = e.messages) == null ? void 0 : t.at(-1);
|
|
9817
9866
|
(n == null ? void 0 : n.role) !== q.Interrupt && (e.isHover = !0);
|
|
@@ -9867,29 +9916,29 @@ var Bd = ["src"], Vd = {
|
|
|
9867
9916
|
ref: i,
|
|
9868
9917
|
class: "ai-message-container"
|
|
9869
9918
|
}, [
|
|
9870
|
-
(k(!0), c(e, null,
|
|
9919
|
+
(k(!0), c(e, null, N(_.value, (i, a) => (k(), c("div", {
|
|
9871
9920
|
id: i.uid,
|
|
9872
9921
|
key: a,
|
|
9873
9922
|
class: "message-group",
|
|
9874
9923
|
style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
|
|
9875
9924
|
onMouseenter: (e) => v(i),
|
|
9876
9925
|
onMouseleave: (e) => y(i, e)
|
|
9877
|
-
}, [
|
|
9926
|
+
}, [P(r.$slots, "group", b({ ref_for: !0 }, { group: i }), () => [t.enableSelection && i.type !== z(q).Loading ? (k(), o(z(ue), {
|
|
9878
9927
|
key: 0,
|
|
9879
9928
|
class: "message-group-checkbox",
|
|
9880
9929
|
"model-value": i.checked,
|
|
9881
9930
|
"onUpdate:modelValue": (e) => x(i, e)
|
|
9882
9931
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : s("", !0), l("div", {
|
|
9883
|
-
class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode ===
|
|
9884
|
-
style: w({ width: t.enableSelection && i.type !==
|
|
9885
|
-
}, [(k(!0), c(e, null,
|
|
9932
|
+
class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === z(Pt).Share || t.enableSelection && i.type !== z(q).Loading }]),
|
|
9933
|
+
style: w({ width: t.enableSelection && i.type !== z(q).Loading ? "calc(100% - 16px)" : "100%" })
|
|
9934
|
+
}, [(k(!0), c(e, null, N(i.messages, (e, i) => P(r.$slots, "default", b({
|
|
9886
9935
|
key: i,
|
|
9887
9936
|
ref_for: !0
|
|
9888
9937
|
}, {
|
|
9889
9938
|
message: e,
|
|
9890
9939
|
messageToolsStatus: t.messageToolsStatus,
|
|
9891
9940
|
onInterruptResume: n.onInterruptResume
|
|
9892
|
-
}), () => [(k(), o(
|
|
9941
|
+
}), () => [(k(), o(Jh, {
|
|
9893
9942
|
key: i,
|
|
9894
9943
|
message: e,
|
|
9895
9944
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9900,7 +9949,7 @@ var Bd = ["src"], Vd = {
|
|
|
9900
9949
|
"tippy-options": t.messageToolsTippyOptions
|
|
9901
9950
|
}, u({ _: 2 }, [r.$slots.answeredQuestion ? {
|
|
9902
9951
|
name: "answeredQuestion",
|
|
9903
|
-
fn:
|
|
9952
|
+
fn: H((e) => [P(r.$slots, "answeredQuestion", b({ ref_for: !0 }, e))]),
|
|
9904
9953
|
key: "0"
|
|
9905
9954
|
} : void 0]), 1032, [
|
|
9906
9955
|
"message",
|
|
@@ -9910,7 +9959,7 @@ var Bd = ["src"], Vd = {
|
|
|
9910
9959
|
"on-interrupt-resume",
|
|
9911
9960
|
"on-shortcut-confirm",
|
|
9912
9961
|
"tippy-options"
|
|
9913
|
-
]))])), 128)), t.renderMode !==
|
|
9962
|
+
]))])), 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, {
|
|
9914
9963
|
key: 0,
|
|
9915
9964
|
"message-tools": g.value,
|
|
9916
9965
|
"message-tools-status": t.messageToolsStatus,
|
|
@@ -9928,41 +9977,41 @@ var Bd = ["src"], Vd = {
|
|
|
9928
9977
|
"style",
|
|
9929
9978
|
"tippy-options",
|
|
9930
9979
|
"onFeedback"
|
|
9931
|
-
])) : s("", !0)], 6)])], 44,
|
|
9980
|
+
])) : s("", !0)], 6)])], 44, Yh))), 128)),
|
|
9932
9981
|
l("div", {
|
|
9933
9982
|
ref_key: "messageContainerBottomRef",
|
|
9934
9983
|
ref: d,
|
|
9935
9984
|
class: "message-container-bottom",
|
|
9936
9985
|
tabindex: "0"
|
|
9937
9986
|
}, null, 512),
|
|
9938
|
-
l("div",
|
|
9939
|
-
loading: t.messageStatus ===
|
|
9940
|
-
title: t.messageStatus ===
|
|
9987
|
+
l("div", Xh, [U(f(nr, {
|
|
9988
|
+
loading: t.messageStatus === z(J).StopLoading,
|
|
9989
|
+
title: t.messageStatus === z(J).StopLoading ? z(G)("正在停止") : z(G)("停止生成"),
|
|
9941
9990
|
onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
|
|
9942
9991
|
}, {
|
|
9943
|
-
icon:
|
|
9992
|
+
icon: H(() => [f(z(yn))]),
|
|
9944
9993
|
_: 1
|
|
9945
|
-
}, 8, ["loading", "title"]), [[
|
|
9946
|
-
title:
|
|
9947
|
-
onClick:
|
|
9994
|
+
}, 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, {
|
|
9995
|
+
title: z(G)("返回底部"),
|
|
9996
|
+
onClick: z(p)
|
|
9948
9997
|
}, {
|
|
9949
|
-
icon:
|
|
9998
|
+
icon: H(() => [f(z(Ln))]),
|
|
9950
9999
|
_: 1
|
|
9951
|
-
}, 8, ["title", "onClick"]), [[
|
|
10000
|
+
}, 8, ["title", "onClick"]), [[ae, z(m)]])])
|
|
9952
10001
|
], 512));
|
|
9953
10002
|
}
|
|
9954
|
-
}),
|
|
10003
|
+
}), 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 = {
|
|
9955
10004
|
key: 0,
|
|
9956
10005
|
class: "timeline-line"
|
|
9957
|
-
},
|
|
10006
|
+
}, og = {
|
|
9958
10007
|
key: 1,
|
|
9959
10008
|
class: "execution-summary-content-empty"
|
|
9960
|
-
},
|
|
10009
|
+
}, sg = { class: "execution-summary-content-empty-text" }, cg = /* @__PURE__ */ m({
|
|
9961
10010
|
__name: "execution-summary",
|
|
9962
10011
|
props: { messageGroups: {} },
|
|
9963
10012
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
9964
10013
|
setup(t, { emit: n }) {
|
|
9965
|
-
let r = n, i = hi(), { keyword: a } = ui(), u =
|
|
10014
|
+
let r = n, i = hi(), { keyword: a } = ui(), u = I(void 0), p = (e) => {
|
|
9966
10015
|
if (!e) return "";
|
|
9967
10016
|
let t = new Date(e), n = (e) => String(e).padStart(2, "0");
|
|
9968
10017
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`;
|
|
@@ -9971,57 +10020,57 @@ var Bd = ["src"], Vd = {
|
|
|
9971
10020
|
}, h = () => {
|
|
9972
10021
|
a.value = "", r("updateKeyword", "");
|
|
9973
10022
|
};
|
|
9974
|
-
return (n, g) => (k(), c("div",
|
|
9975
|
-
modelValue:
|
|
10023
|
+
return (n, g) => (k(), c("div", Qh, [l("div", $h, [f(z(pe), {
|
|
10024
|
+
modelValue: z(a),
|
|
9976
10025
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
9977
10026
|
class: "execution-summary-header-input",
|
|
9978
10027
|
clearable: "",
|
|
9979
|
-
placeholder:
|
|
9980
|
-
}, null, 8, ["modelValue", "placeholder"])]), l("div",
|
|
10028
|
+
placeholder: z(G)("搜索 关键字")
|
|
10029
|
+
}, null, 8, ["modelValue", "placeholder"])]), l("div", eg, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
|
|
9981
10030
|
key: n.uid,
|
|
9982
10031
|
class: "execution-summary-content-item",
|
|
9983
10032
|
onMouseenter: (e) => u.value = n.uid,
|
|
9984
10033
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
9985
10034
|
}, [
|
|
9986
|
-
l("div",
|
|
10035
|
+
l("div", ng, [
|
|
9987
10036
|
g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
|
|
9988
|
-
|
|
9989
|
-
|
|
10037
|
+
U((k(), c("span", rg, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[z(vi), X({}, z(i))]]),
|
|
10038
|
+
U(f(z(W), {
|
|
9990
10039
|
class: "content-item-locate",
|
|
9991
10040
|
text: "",
|
|
9992
10041
|
theme: "primary",
|
|
9993
10042
|
onClick: (e) => m(n)
|
|
9994
10043
|
}, {
|
|
9995
|
-
default:
|
|
10044
|
+
default: H(() => [d(L(z(G)("在对话中定位")), 1)]),
|
|
9996
10045
|
_: 1
|
|
9997
|
-
}, 8, ["onClick"]), [[
|
|
10046
|
+
}, 8, ["onClick"]), [[ae, u.value === n.uid]])
|
|
9998
10047
|
]),
|
|
9999
|
-
l("div",
|
|
10048
|
+
l("div", ig, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(Jh, {
|
|
10000
10049
|
key: t,
|
|
10001
10050
|
message: e
|
|
10002
10051
|
}, null, 8, ["message"]))), 128))]),
|
|
10003
|
-
r < t.messageGroups.length - 1 ? (k(), c("div",
|
|
10004
|
-
], 40,
|
|
10052
|
+
r < t.messageGroups.length - 1 ? (k(), c("div", ag)) : s("", !0)
|
|
10053
|
+
], 40, tg))), 128)) : (k(), c("div", og, [f(z(de), {
|
|
10005
10054
|
class: "empty-exception",
|
|
10006
10055
|
type: "empty"
|
|
10007
|
-
}), l("div",
|
|
10056
|
+
}), l("div", sg, [d(L(z(a) ? z(G)("搜索结果为空") : z(G)("暂无数据")) + " ", 1), z(a) ? (k(), o(z(W), {
|
|
10008
10057
|
key: 0,
|
|
10009
10058
|
text: "",
|
|
10010
10059
|
theme: "primary",
|
|
10011
10060
|
onClick: h
|
|
10012
10061
|
}, {
|
|
10013
|
-
default:
|
|
10062
|
+
default: H(() => [d(L(z(G)("清空搜索")), 1)]),
|
|
10014
10063
|
_: 1
|
|
10015
10064
|
})) : s("", !0)])]))])]));
|
|
10016
10065
|
}
|
|
10017
|
-
}),
|
|
10066
|
+
}), lg = ["class", "style"], ug = { class: "ai-message-loading-row" }, dg = { class: "ai-message-loading-icon-wrap" }, fg = {
|
|
10018
10067
|
key: 0,
|
|
10019
10068
|
class: "ai-message-loading-text ai-message-loading-text-custom"
|
|
10020
|
-
},
|
|
10069
|
+
}, pg = {
|
|
10021
10070
|
key: 1,
|
|
10022
10071
|
"aria-live": "polite",
|
|
10023
10072
|
class: "ai-message-loading-text"
|
|
10024
|
-
},
|
|
10073
|
+
}, mg = /* @__PURE__ */ m(X(X({}, {
|
|
10025
10074
|
name: "MessageLoading",
|
|
10026
10075
|
inheritAttrs: !1
|
|
10027
10076
|
}), {}, {
|
|
@@ -10034,9 +10083,9 @@ var Bd = ["src"], Vd = {
|
|
|
10034
10083
|
text: { default: "加载中..." }
|
|
10035
10084
|
},
|
|
10036
10085
|
setup(t) {
|
|
10037
|
-
let n = t, r =
|
|
10086
|
+
let n = t, r = ne(), i = a(() => {
|
|
10038
10087
|
let { class: e, style: t } = r;
|
|
10039
|
-
return xr(r,
|
|
10088
|
+
return xr(r, lg);
|
|
10040
10089
|
}), o = a(() => ({
|
|
10041
10090
|
display: "block",
|
|
10042
10091
|
width: `${n.iconSize}px`,
|
|
@@ -10050,18 +10099,18 @@ var Bd = ["src"], Vd = {
|
|
|
10050
10099
|
return e && typeof e == "object" && !Array.isArray(e) ? X(X({}, t), e) : t;
|
|
10051
10100
|
});
|
|
10052
10101
|
return (t, n) => (k(), c("div", b({
|
|
10053
|
-
class: ["ai-message-loading",
|
|
10102
|
+
class: ["ai-message-loading", z(r).class],
|
|
10054
10103
|
style: u.value
|
|
10055
|
-
}, i.value), [l("div",
|
|
10104
|
+
}, i.value), [l("div", ug, [l("span", dg, [P(t.$slots, "icon", {}, () => [f(z(Wt), {
|
|
10056
10105
|
class: "ai-message-loading-icon-svg",
|
|
10057
10106
|
style: w(o.value)
|
|
10058
|
-
}, null, 8, ["style"])])]), t.$slots.text ? (k(), c("span",
|
|
10107
|
+
}, 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", {
|
|
10059
10108
|
key: `${t}-${e}`,
|
|
10060
10109
|
class: "ai-message-loading-char",
|
|
10061
10110
|
style: w({ "--char-index": t })
|
|
10062
|
-
},
|
|
10111
|
+
}, L(e), 5))), 128))]))])], 16));
|
|
10063
10112
|
}
|
|
10064
|
-
})),
|
|
10113
|
+
})), 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({
|
|
10065
10114
|
__name: "selection-footer",
|
|
10066
10115
|
props: {
|
|
10067
10116
|
isAllSelected: { type: Boolean },
|
|
@@ -10075,35 +10124,35 @@ var Bd = ["src"], Vd = {
|
|
|
10075
10124
|
],
|
|
10076
10125
|
setup(e, { emit: t }) {
|
|
10077
10126
|
let n = t;
|
|
10078
|
-
return (t, r) => (k(), c("div",
|
|
10127
|
+
return (t, r) => (k(), c("div", hg, [l("div", gg, [f(z(ue), {
|
|
10079
10128
|
"model-value": e.isAllSelected,
|
|
10080
10129
|
"onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
|
|
10081
|
-
}, null, 8, ["model-value"]), l("span",
|
|
10130
|
+
}, null, 8, ["model-value"]), l("span", _g, L(z(G)("全选")), 1)]), l("div", vg, [f(z(W), {
|
|
10082
10131
|
disabled: e.loading,
|
|
10083
10132
|
onClick: r[1] || (r[1] = (e) => n("cancel"))
|
|
10084
10133
|
}, {
|
|
10085
|
-
default:
|
|
10134
|
+
default: H(() => [d(L(z(G)("取消")), 1)]),
|
|
10086
10135
|
_: 1
|
|
10087
|
-
}, 8, ["disabled"]), f(
|
|
10136
|
+
}, 8, ["disabled"]), f(z(W), {
|
|
10088
10137
|
disabled: e.selectedCount === 0,
|
|
10089
10138
|
loading: e.loading,
|
|
10090
10139
|
theme: "primary",
|
|
10091
10140
|
onClick: r[2] || (r[2] = (e) => n("confirm"))
|
|
10092
10141
|
}, {
|
|
10093
|
-
default:
|
|
10142
|
+
default: H(() => [d(L(z(G)("确定")), 1)]),
|
|
10094
10143
|
_: 1
|
|
10095
10144
|
}, 8, ["disabled", "loading"])])]));
|
|
10096
10145
|
}
|
|
10097
|
-
}),
|
|
10146
|
+
}), bg = ["data-ai-size"], xg = {
|
|
10098
10147
|
key: 0,
|
|
10099
10148
|
class: "ai-chat-container-loading"
|
|
10100
|
-
},
|
|
10149
|
+
}, Sg = { class: "screen-wrapper" }, Cg = {
|
|
10101
10150
|
key: 1,
|
|
10102
10151
|
class: "ai-welcome-content"
|
|
10103
|
-
},
|
|
10152
|
+
}, wg = { class: "ai-welcome-title" }, Tg = {
|
|
10104
10153
|
key: 0,
|
|
10105
10154
|
class: "ai-welcome-remark"
|
|
10106
|
-
},
|
|
10155
|
+
}, Eg = /* @__PURE__ */ m({
|
|
10107
10156
|
__name: "chat-container",
|
|
10108
10157
|
props: /* @__PURE__ */ y({
|
|
10109
10158
|
chatLoading: { type: Boolean },
|
|
@@ -10174,7 +10223,7 @@ var Bd = ["src"], Vd = {
|
|
|
10174
10223
|
"update:cite"
|
|
10175
10224
|
]),
|
|
10176
10225
|
setup(t, { expose: n, emit: r }) {
|
|
10177
|
-
let i = be.TabPanel, u = t, p =
|
|
10226
|
+
let i = be.TabPanel, u = t, p = re(t, "renderMode"), m = B("fullScreenRef"), { isFullScreen: _, enter: v, exit: y } = Kr(m);
|
|
10178
10227
|
di({ renderMode: p });
|
|
10179
10228
|
let T = a(() => X(X({
|
|
10180
10229
|
collapsible: !1,
|
|
@@ -10182,7 +10231,7 @@ var Bd = ["src"], Vd = {
|
|
|
10182
10231
|
min: 400
|
|
10183
10232
|
}, u.resizeProps), {}, { placement: u.placement })), E = a(() => {
|
|
10184
10233
|
var e, t, n, r, i;
|
|
10185
|
-
return (e = (t = u.getSideRenderComponent) == null ? void 0 : t.call(u, g, (n = (r =
|
|
10234
|
+
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;
|
|
10186
10235
|
});
|
|
10187
10236
|
Jr({
|
|
10188
10237
|
size: a(() => {
|
|
@@ -10193,29 +10242,29 @@ var Bd = ["src"], Vd = {
|
|
|
10193
10242
|
var e;
|
|
10194
10243
|
return (e = u.supportUpload) == null ? !1 : e;
|
|
10195
10244
|
})
|
|
10196
|
-
}),
|
|
10245
|
+
}), V(() => {
|
|
10197
10246
|
var e;
|
|
10198
10247
|
return (e = u.size) == null ? "small" : e;
|
|
10199
10248
|
}, (e) => {
|
|
10200
10249
|
typeof document < "u" && (document.body.dataset.aiSize = e);
|
|
10201
10250
|
}, { immediate: !0 });
|
|
10202
|
-
let D =
|
|
10251
|
+
let D = re(t, "selectedShortcut"), A = re(t, "cite"), j = r;
|
|
10203
10252
|
pi({ tippyOptions: a(() => {
|
|
10204
10253
|
var e;
|
|
10205
10254
|
return (e = u.commonTippyOptions) == null ? {} : e;
|
|
10206
10255
|
}) });
|
|
10207
|
-
let { displayTabs:
|
|
10256
|
+
let { displayTabs: M, tabs: te, selectedTab: R, isCollapse: ne, addCustomTab: ie, removeCustomTab: ae, selectCustomTab: oe, resetCustomTab: se } = Ur({
|
|
10208
10257
|
executionTabVisible: () => u.executionTabVisible,
|
|
10209
10258
|
onTabChange: function() {
|
|
10210
10259
|
var e = Z(function* (e) {
|
|
10211
10260
|
var t, n;
|
|
10212
|
-
let r = ((t =
|
|
10261
|
+
let r = ((t = R.value.data) == null ? void 0 : t.props) || {
|
|
10213
10262
|
loading: !0,
|
|
10214
10263
|
data: {}
|
|
10215
10264
|
};
|
|
10216
|
-
|
|
10265
|
+
R.value.data = X(X({}, R.value.data), {}, { props: r });
|
|
10217
10266
|
let i = yield (n = u.onCustomTabChange) == null ? void 0 : n.call(u, e);
|
|
10218
|
-
|
|
10267
|
+
R.value.data = X(X({}, R.value.data), {}, { props: X(X({}, r), {}, {
|
|
10219
10268
|
loading: !1,
|
|
10220
10269
|
data: i
|
|
10221
10270
|
}) });
|
|
@@ -10224,16 +10273,16 @@ var Bd = ["src"], Vd = {
|
|
|
10224
10273
|
return e.apply(this, arguments);
|
|
10225
10274
|
};
|
|
10226
10275
|
}()
|
|
10227
|
-
}),
|
|
10228
|
-
keyword:
|
|
10276
|
+
}), 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({
|
|
10277
|
+
keyword: ce,
|
|
10229
10278
|
messages: a(() => u.messages),
|
|
10230
10279
|
renderMode: a(() => p.value),
|
|
10231
|
-
selectedUserMessages:
|
|
10280
|
+
selectedUserMessages: le
|
|
10232
10281
|
});
|
|
10233
|
-
|
|
10234
|
-
e && (
|
|
10235
|
-
}),
|
|
10236
|
-
!e.length && !
|
|
10282
|
+
V(ne, (e) => {
|
|
10283
|
+
e && (ce.value = "", ue.value = 0), j("collapseChange", e, ue.value);
|
|
10284
|
+
}), V(() => pe.value, (e) => {
|
|
10285
|
+
!e.length && !ce.value && se();
|
|
10237
10286
|
}, {
|
|
10238
10287
|
immediate: !0,
|
|
10239
10288
|
deep: !1
|
|
@@ -10264,7 +10313,7 @@ var Bd = ["src"], Vd = {
|
|
|
10264
10313
|
return e.apply(this, arguments);
|
|
10265
10314
|
};
|
|
10266
10315
|
}(), Ae = () => {
|
|
10267
|
-
|
|
10316
|
+
ne.value = !ne.value;
|
|
10268
10317
|
}, je = (e) => {
|
|
10269
10318
|
if (!e) return;
|
|
10270
10319
|
let t = document.getElementById(e);
|
|
@@ -10278,9 +10327,9 @@ var Bd = ["src"], Vd = {
|
|
|
10278
10327
|
}
|
|
10279
10328
|
t.scrollIntoView({ behavior: "smooth" });
|
|
10280
10329
|
}, Me = (e) => {
|
|
10281
|
-
|
|
10330
|
+
oe(te.value.find((t) => t.name === e));
|
|
10282
10331
|
}, Ne = (e) => {
|
|
10283
|
-
|
|
10332
|
+
ce.value = e;
|
|
10284
10333
|
}, Pe = function() {
|
|
10285
10334
|
var e = Z(function* (e, t) {
|
|
10286
10335
|
var n;
|
|
@@ -10295,18 +10344,18 @@ var Bd = ["src"], Vd = {
|
|
|
10295
10344
|
};
|
|
10296
10345
|
}(), Fe = () => {
|
|
10297
10346
|
j("confirmShare", ye()), x(() => {
|
|
10298
|
-
me.value = !1,
|
|
10347
|
+
me.value = !1, le.value = [];
|
|
10299
10348
|
});
|
|
10300
10349
|
}, Ie = (e) => {
|
|
10301
10350
|
ue.value = e;
|
|
10302
10351
|
};
|
|
10303
10352
|
return O(() => {
|
|
10304
|
-
|
|
10353
|
+
se(), typeof document < "u" && delete document.body.dataset.aiSize;
|
|
10305
10354
|
}), n({
|
|
10306
|
-
selectedTab:
|
|
10307
|
-
addCustomTab:
|
|
10308
|
-
removeCustomTab:
|
|
10309
|
-
selectCustomTab:
|
|
10355
|
+
selectedTab: R,
|
|
10356
|
+
addCustomTab: ie,
|
|
10357
|
+
removeCustomTab: ae,
|
|
10358
|
+
selectCustomTab: oe,
|
|
10310
10359
|
enterShareMode: () => {
|
|
10311
10360
|
me.value = !0;
|
|
10312
10361
|
},
|
|
@@ -10320,47 +10369,47 @@ var Bd = ["src"], Vd = {
|
|
|
10320
10369
|
"data-ai-size": t.size,
|
|
10321
10370
|
style: w({
|
|
10322
10371
|
"--resize-main-width": de.value,
|
|
10323
|
-
borderTopColor:
|
|
10372
|
+
borderTopColor: z(ne) ? "transparent" : "#eaebf0"
|
|
10324
10373
|
})
|
|
10325
|
-
}, [t.chatLoading ? (k(), c("div",
|
|
10374
|
+
}, [t.chatLoading ? (k(), c("div", xg, [f(mg)])) : (k(), o(z(_e), b({
|
|
10326
10375
|
key: 1,
|
|
10327
|
-
class: ["ai-chat-container-resize-layout", { "ai-is-collapse":
|
|
10376
|
+
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 }]
|
|
10328
10377
|
}, T.value, { onResizing: Ie }), {
|
|
10329
|
-
aside:
|
|
10378
|
+
aside: H(() => {
|
|
10330
10379
|
var n, a, u, p, h;
|
|
10331
|
-
return [!
|
|
10380
|
+
return [!z(ne) && z(M).length > 0 && ((n = z(pe)) != null && n.length || (a = ce.value) != null && a.length) ? (k(), c("div", {
|
|
10332
10381
|
key: 0,
|
|
10333
10382
|
ref_key: "fullScreenRef",
|
|
10334
10383
|
ref: m,
|
|
10335
10384
|
class: "ai-full-screen-wrapper"
|
|
10336
10385
|
}, [
|
|
10337
|
-
f(
|
|
10338
|
-
active: R
|
|
10386
|
+
f(z(be), {
|
|
10387
|
+
active: z(R).name,
|
|
10339
10388
|
class: "ai-chat-container-tab",
|
|
10340
10389
|
"label-height": 40,
|
|
10341
10390
|
type: "unborder-card",
|
|
10342
10391
|
onChange: Me
|
|
10343
10392
|
}, {
|
|
10344
|
-
setting:
|
|
10393
|
+
setting: H(() => {
|
|
10345
10394
|
var e;
|
|
10346
|
-
return [l("div",
|
|
10395
|
+
return [l("div", Sg, [f(bi, {
|
|
10347
10396
|
class: "screen-btn",
|
|
10348
10397
|
"tippy-options": X(X({}, t.commonTippyOptions), {}, {
|
|
10349
|
-
appendTo:
|
|
10350
|
-
content:
|
|
10398
|
+
appendTo: z(_) ? m.value : (e = t.commonTippyOptions) == null ? void 0 : e.appendTo,
|
|
10399
|
+
content: z(_) ? z(G)("退出全屏") : z(G)("全屏")
|
|
10351
10400
|
})
|
|
10352
10401
|
}, {
|
|
10353
|
-
default:
|
|
10402
|
+
default: H(() => [z(_) ? (k(), o(z(zn), {
|
|
10354
10403
|
key: 1,
|
|
10355
|
-
onClick:
|
|
10356
|
-
}, null, 8, ["onClick"])) : (k(), o(
|
|
10404
|
+
onClick: z(y)
|
|
10405
|
+
}, null, 8, ["onClick"])) : (k(), o(z(Rn), {
|
|
10357
10406
|
key: 0,
|
|
10358
|
-
onClick:
|
|
10407
|
+
onClick: z(v)
|
|
10359
10408
|
}, null, 8, ["onClick"]))]),
|
|
10360
10409
|
_: 1
|
|
10361
10410
|
}, 8, ["tippy-options"])])];
|
|
10362
10411
|
}),
|
|
10363
|
-
default:
|
|
10412
|
+
default: H(() => [(k(!0), c(e, null, N(z(M), (e) => (k(), o(z(i), {
|
|
10364
10413
|
key: e.name,
|
|
10365
10414
|
class: "ai-chat-container-tab-panel",
|
|
10366
10415
|
label: () => {
|
|
@@ -10368,18 +10417,18 @@ var Bd = ["src"], Vd = {
|
|
|
10368
10417
|
return g("div", {
|
|
10369
10418
|
class: "ai-execution-summary-label",
|
|
10370
10419
|
onVnodeMounted: (t) => {
|
|
10371
|
-
if (R
|
|
10420
|
+
if (z(R).name === e.name) {
|
|
10372
10421
|
var n;
|
|
10373
10422
|
(n = t.el) == null || n.scrollIntoView({ behavior: "smooth" });
|
|
10374
10423
|
}
|
|
10375
10424
|
}
|
|
10376
|
-
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab:
|
|
10377
|
-
g(e.name ===
|
|
10378
|
-
|
|
10379
|
-
e.closable !== !1 && e.name !==
|
|
10425
|
+
}, (n = (r = t.getSideTabRenderComponent) == null ? void 0 : r.call(t, g, e, { removeCustomTab: z(ae) })) == null ? [
|
|
10426
|
+
g(e.name === z("execution") ? z(an) : z(sn), { class: "ai-execution-summary-icon" }),
|
|
10427
|
+
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 })]]),
|
|
10428
|
+
e.closable !== !1 && e.name !== z("execution") ? g(z(Bn), {
|
|
10380
10429
|
class: "ai-execution-close-icon",
|
|
10381
10430
|
onClick: () => {
|
|
10382
|
-
|
|
10431
|
+
z(ae)(e.name);
|
|
10383
10432
|
}
|
|
10384
10433
|
}) : null
|
|
10385
10434
|
] : n);
|
|
@@ -10388,50 +10437,50 @@ var Bd = ["src"], Vd = {
|
|
|
10388
10437
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
10389
10438
|
_: 1
|
|
10390
10439
|
}, 8, ["active"]),
|
|
10391
|
-
((u = R
|
|
10440
|
+
((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, {
|
|
10392
10441
|
key: 0,
|
|
10393
|
-
"message-groups":
|
|
10442
|
+
"message-groups": z(pe),
|
|
10394
10443
|
style: { height: "calc(100% - 40px)" },
|
|
10395
10444
|
onLocateMessageGroup: je,
|
|
10396
10445
|
onUpdateKeyword: Ne
|
|
10397
10446
|
}, null, 8, ["message-groups"]))], 64)) : s("", !0),
|
|
10398
|
-
R
|
|
10399
|
-
key: R
|
|
10447
|
+
z(R) ? (k(), c("div", {
|
|
10448
|
+
key: z(R).name,
|
|
10400
10449
|
class: "ai-chat-container-message-slot"
|
|
10401
|
-
}, [(k(), o(
|
|
10402
|
-
locateButton:
|
|
10450
|
+
}, [(k(), o(F(E.value), b({ key: z(R).name }, (p = z(R)) == null || (p = p.data) == null ? void 0 : p.props), {
|
|
10451
|
+
locateButton: H(() => [f(z(W), {
|
|
10403
10452
|
class: "ai-locate-button",
|
|
10404
10453
|
size: "small",
|
|
10405
10454
|
text: "",
|
|
10406
10455
|
theme: "primary",
|
|
10407
10456
|
onClick: r[0] || (r[0] = (e) => {
|
|
10408
10457
|
var t;
|
|
10409
|
-
return je((t = R
|
|
10458
|
+
return je((t = z(R)) == null || (t = t.data) == null ? void 0 : t.messageUid);
|
|
10410
10459
|
})
|
|
10411
10460
|
}, {
|
|
10412
|
-
default:
|
|
10461
|
+
default: H(() => [d(L(z(G)("在对话中定位")), 1)]),
|
|
10413
10462
|
_: 1
|
|
10414
10463
|
})]),
|
|
10415
10464
|
_: 1
|
|
10416
10465
|
}, 16))])) : s("", !0)
|
|
10417
|
-
], 512)) : s("", !0),
|
|
10466
|
+
], 512)) : s("", !0), z(M).length > 0 && (h = z(pe)) != null && h.length ? (k(), c("div", {
|
|
10418
10467
|
key: 1,
|
|
10419
10468
|
class: S(["collapse-button", {
|
|
10420
10469
|
"is-right": t.placement === "right",
|
|
10421
|
-
"is-collapsed":
|
|
10470
|
+
"is-collapsed": z(ne)
|
|
10422
10471
|
}]),
|
|
10423
10472
|
onClick: Ae
|
|
10424
|
-
}, [f(
|
|
10473
|
+
}, [f(z(Pn))], 2)) : s("", !0)];
|
|
10425
10474
|
}),
|
|
10426
|
-
main:
|
|
10475
|
+
main: H(() => {
|
|
10427
10476
|
var i, a, u, d;
|
|
10428
|
-
return [(i = t.messages) != null && i.length ?
|
|
10477
|
+
return [(i = t.messages) != null && i.length ? P(n.$slots, "default", C(b({ key: 0 }, {
|
|
10429
10478
|
messages: t.messages,
|
|
10430
10479
|
messageStatus: t.messageStatus,
|
|
10431
|
-
messageGroups:
|
|
10432
|
-
selectedUserMessages:
|
|
10480
|
+
messageGroups: z(fe),
|
|
10481
|
+
selectedUserMessages: le.value,
|
|
10433
10482
|
messageToolsStatus: t.messageToolsStatus,
|
|
10434
|
-
isShareMode:
|
|
10483
|
+
isShareMode: z(me),
|
|
10435
10484
|
commonTippyOptions: t.commonTippyOptions,
|
|
10436
10485
|
handleAgentAction: Pe,
|
|
10437
10486
|
onAgentFeedback: t.onAgentFeedback,
|
|
@@ -10441,12 +10490,12 @@ var Bd = ["src"], Vd = {
|
|
|
10441
10490
|
onUserShortcutConfirm: t.onUserShortcutConfirm
|
|
10442
10491
|
})), () => {
|
|
10443
10492
|
var e;
|
|
10444
|
-
return [(e = t.messages) != null && e.length ? (k(), o(
|
|
10493
|
+
return [(e = t.messages) != null && e.length ? (k(), o(Zh, {
|
|
10445
10494
|
key: 0,
|
|
10446
|
-
"selected-user-messages":
|
|
10447
|
-
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) =>
|
|
10448
|
-
"enable-selection":
|
|
10449
|
-
"message-groups":
|
|
10495
|
+
"selected-user-messages": le.value,
|
|
10496
|
+
"onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => le.value = e),
|
|
10497
|
+
"enable-selection": z(me),
|
|
10498
|
+
"message-groups": z(fe),
|
|
10450
10499
|
"message-status": Ce.value,
|
|
10451
10500
|
"message-tools-status": t.messageToolsStatus,
|
|
10452
10501
|
"message-tools-tippy-options": t.commonTippyOptions,
|
|
@@ -10460,8 +10509,8 @@ var Bd = ["src"], Vd = {
|
|
|
10460
10509
|
"render-mode": p.value,
|
|
10461
10510
|
onStopStreaming: r[2] || (r[2] = (e) => j("stopStreaming"))
|
|
10462
10511
|
}, {
|
|
10463
|
-
group:
|
|
10464
|
-
default:
|
|
10512
|
+
group: H(({ group: e }) => [P(n.$slots, "group", C(h({ group: e })))]),
|
|
10513
|
+
default: H(({ message: e, messageToolsStatus: t, onInterruptResume: r }) => [P(n.$slots, "message", C(h({
|
|
10465
10514
|
message: e,
|
|
10466
10515
|
messageToolsStatus: t,
|
|
10467
10516
|
onInterruptResume: r
|
|
@@ -10482,24 +10531,24 @@ var Bd = ["src"], Vd = {
|
|
|
10482
10531
|
"on-user-shortcut-confirm",
|
|
10483
10532
|
"render-mode"
|
|
10484
10533
|
])) : s("", !0)];
|
|
10485
|
-
}) : (k(), c("div",
|
|
10534
|
+
}) : (k(), c("div", Cg, [P(n.$slots, "welcome", C(h({
|
|
10486
10535
|
openingRemark: t.openingRemark,
|
|
10487
10536
|
welcomeTitle: t.welcomeTitle
|
|
10488
10537
|
})), () => {
|
|
10489
10538
|
var e;
|
|
10490
10539
|
return [
|
|
10491
|
-
f(
|
|
10492
|
-
l("h2",
|
|
10493
|
-
t.openingRemark ? (k(), c("div",
|
|
10540
|
+
f(z(Gt)),
|
|
10541
|
+
l("h2", wg, L((e = t.welcomeTitle) == null ? z(G)("你好,我是小鲸") : e), 1),
|
|
10542
|
+
t.openingRemark ? (k(), c("div", Tg, [f(Fl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
|
|
10494
10543
|
];
|
|
10495
|
-
})])), p.value ===
|
|
10544
|
+
})])), p.value === z(Pt).Share ? s("", !0) : (k(), c(e, { key: 2 }, [z(me) ? (k(), o(yg, {
|
|
10496
10545
|
key: 0,
|
|
10497
|
-
"is-all-selected":
|
|
10546
|
+
"is-all-selected": z(he),
|
|
10498
10547
|
loading: !1,
|
|
10499
|
-
"selected-count":
|
|
10500
|
-
onCancel:
|
|
10548
|
+
"selected-count": le.value.length,
|
|
10549
|
+
onCancel: z(ve),
|
|
10501
10550
|
onConfirm: Fe,
|
|
10502
|
-
onToggleAll:
|
|
10551
|
+
onToggleAll: z(ge)
|
|
10503
10552
|
}, null, 8, [
|
|
10504
10553
|
"is-all-selected",
|
|
10505
10554
|
"selected-count",
|
|
@@ -10521,7 +10570,7 @@ var Bd = ["src"], Vd = {
|
|
|
10521
10570
|
placeholder: t.placeholder,
|
|
10522
10571
|
prompts: t.prompts,
|
|
10523
10572
|
resources: t.resources,
|
|
10524
|
-
"send-disabled-tip":
|
|
10573
|
+
"send-disabled-tip": z(xe),
|
|
10525
10574
|
"shortcut-id": (d = D.value) == null ? void 0 : d.id,
|
|
10526
10575
|
shortcuts: t.shortcuts,
|
|
10527
10576
|
skills: t.skills,
|
|
@@ -10531,12 +10580,12 @@ var Bd = ["src"], Vd = {
|
|
|
10531
10580
|
onSelectShortcut: De,
|
|
10532
10581
|
"onUpdate:modelValue": Oe
|
|
10533
10582
|
}, {
|
|
10534
|
-
interrupt:
|
|
10583
|
+
interrupt: H(() => [z(Se) ? (k(), o(z(cp), {
|
|
10535
10584
|
key: 0,
|
|
10536
|
-
interrupt:
|
|
10585
|
+
interrupt: z(Se),
|
|
10537
10586
|
"on-resume": t.onInterruptResume
|
|
10538
10587
|
}, {
|
|
10539
|
-
question:
|
|
10588
|
+
question: H(({ question: e, qIndex: t, answer: r, setAnswer: i, confirm: a }) => [P(n.$slots, "interruptQuestion", C(h({
|
|
10540
10589
|
question: e,
|
|
10541
10590
|
qIndex: t,
|
|
10542
10591
|
answer: r,
|
|
@@ -10544,9 +10593,9 @@ var Bd = ["src"], Vd = {
|
|
|
10544
10593
|
confirm: a
|
|
10545
10594
|
})))]),
|
|
10546
10595
|
_: 3
|
|
10547
|
-
}, 8, ["interrupt", "on-resume"])) : s("", !0),
|
|
10596
|
+
}, 8, ["interrupt", "on-resume"])) : s("", !0), z(xe) ? (k(), o(jf, {
|
|
10548
10597
|
key: 1,
|
|
10549
|
-
content:
|
|
10598
|
+
content: z(xe)
|
|
10550
10599
|
}, null, 8, ["content"])) : s("", !0)]),
|
|
10551
10600
|
_: 3
|
|
10552
10601
|
}, 8, [
|
|
@@ -10567,10 +10616,10 @@ var Bd = ["src"], Vd = {
|
|
|
10567
10616
|
]))], 64))];
|
|
10568
10617
|
}),
|
|
10569
10618
|
_: 3
|
|
10570
|
-
}, 16, ["class"]))], 12,
|
|
10619
|
+
}, 16, ["class"]))], 12, bg);
|
|
10571
10620
|
};
|
|
10572
10621
|
}
|
|
10573
|
-
}),
|
|
10622
|
+
}), Dg = { class: "ai-image-preview-group" }, Og = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
|
|
10574
10623
|
__name: "image-preview-group",
|
|
10575
10624
|
props: {
|
|
10576
10625
|
maskClosable: {
|
|
@@ -10587,7 +10636,7 @@ var Bd = ["src"], Vd = {
|
|
|
10587
10636
|
}
|
|
10588
10637
|
},
|
|
10589
10638
|
setup(e) {
|
|
10590
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
10639
|
+
let t = /* @__PURE__ */ new Map(), n = I(!1), r = I([]), i = I(0);
|
|
10591
10640
|
return A(md, {
|
|
10592
10641
|
register: (e, n) => {
|
|
10593
10642
|
t.set(e, n);
|
|
@@ -10599,7 +10648,7 @@ var Bd = ["src"], Vd = {
|
|
|
10599
10648
|
let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
|
|
10600
10649
|
r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
|
|
10601
10650
|
}
|
|
10602
|
-
}), (t, a) => (k(), c("div",
|
|
10651
|
+
}), (t, a) => (k(), c("div", Dg, [P(t.$slots, "default"), n.value ? (k(), o(Gd, {
|
|
10603
10652
|
key: 0,
|
|
10604
10653
|
current: i.value,
|
|
10605
10654
|
"onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
|
|
@@ -10611,7 +10660,7 @@ var Bd = ["src"], Vd = {
|
|
|
10611
10660
|
"show-info": e.showInfo
|
|
10612
10661
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
10613
10662
|
name: "extra",
|
|
10614
|
-
fn:
|
|
10663
|
+
fn: H(() => [P(t.$slots, "extra")]),
|
|
10615
10664
|
key: "0"
|
|
10616
10665
|
} : void 0]), 1032, [
|
|
10617
10666
|
"current",
|
|
@@ -10622,10 +10671,10 @@ var Bd = ["src"], Vd = {
|
|
|
10622
10671
|
"show-info"
|
|
10623
10672
|
])) : s("", !0)]));
|
|
10624
10673
|
}
|
|
10625
|
-
})),
|
|
10674
|
+
})), kg = ["alt", "src"], Ag = {
|
|
10626
10675
|
key: 1,
|
|
10627
10676
|
class: "ai-image-error"
|
|
10628
|
-
},
|
|
10677
|
+
}, jg = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
|
|
10629
10678
|
__name: "image",
|
|
10630
10679
|
props: {
|
|
10631
10680
|
alt: { default: "" },
|
|
@@ -10653,7 +10702,7 @@ var Bd = ["src"], Vd = {
|
|
|
10653
10702
|
"preview"
|
|
10654
10703
|
],
|
|
10655
10704
|
setup(e, { expose: t, emit: n }) {
|
|
10656
|
-
let r = e, i = n, d = Symbol(), p = _(md, null), m =
|
|
10705
|
+
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(() => {
|
|
10657
10706
|
var e;
|
|
10658
10707
|
return ((e = r.previewProps) == null ? void 0 : e.src) || r.src;
|
|
10659
10708
|
}), x = () => {
|
|
@@ -10666,7 +10715,7 @@ var Bd = ["src"], Vd = {
|
|
|
10666
10715
|
resolution: e == null ? void 0 : e.resolution,
|
|
10667
10716
|
downloadUrl: e == null ? void 0 : e.downloadUrl
|
|
10668
10717
|
};
|
|
10669
|
-
}, C =
|
|
10718
|
+
}, C = I(0), D = a(() => {
|
|
10670
10719
|
if (!r.lazy || v.value) {
|
|
10671
10720
|
let e = r.src;
|
|
10672
10721
|
return C.value === 0 ? e : `${e}${e.includes("?") ? "&" : "?"}_t=${C.value}`;
|
|
@@ -10679,26 +10728,26 @@ var Bd = ["src"], Vd = {
|
|
|
10679
10728
|
width: "100%",
|
|
10680
10729
|
height: "100%",
|
|
10681
10730
|
objectFit: "cover"
|
|
10682
|
-
}, ee = (e) => {
|
|
10683
|
-
h.value = "loaded", i("load", e);
|
|
10684
10731
|
}, M = (e) => {
|
|
10732
|
+
h.value = "loaded", i("load", e);
|
|
10733
|
+
}, N = (e) => {
|
|
10685
10734
|
h.value = "error", i("error", e);
|
|
10686
|
-
},
|
|
10735
|
+
}, F = () => {
|
|
10687
10736
|
h.value = "loading", C.value = Date.now();
|
|
10688
|
-
},
|
|
10737
|
+
}, te = () => {
|
|
10689
10738
|
!r.preview || h.value !== "loaded" || (p ? p.preview(d) : g.value = !0, i("preview"));
|
|
10690
|
-
},
|
|
10739
|
+
}, R = () => {
|
|
10691
10740
|
!r.lazy || !m.value || (y = new IntersectionObserver((e) => {
|
|
10692
10741
|
var t;
|
|
10693
10742
|
(t = e[0]) != null && t.isIntersecting && (v.value = !0, y == null || y.disconnect(), y = null);
|
|
10694
10743
|
}, { rootMargin: "200px" }), y.observe(m.value));
|
|
10695
|
-
},
|
|
10744
|
+
}, ne = () => {
|
|
10696
10745
|
y == null || y.disconnect(), y = null;
|
|
10697
10746
|
};
|
|
10698
10747
|
return E(() => {
|
|
10699
|
-
|
|
10748
|
+
R(), p == null || p.register(d, x);
|
|
10700
10749
|
}), T(() => {
|
|
10701
|
-
|
|
10750
|
+
ne(), p == null || p.unregister(d);
|
|
10702
10751
|
}), t({ previewVisible: g }), (t, n) => (k(), c("div", {
|
|
10703
10752
|
ref_key: "containerRef",
|
|
10704
10753
|
ref: m,
|
|
@@ -10707,7 +10756,7 @@ var Bd = ["src"], Vd = {
|
|
|
10707
10756
|
"ai-image--preview": e.preview && h.value === "loaded"
|
|
10708
10757
|
}]),
|
|
10709
10758
|
style: w(A.value),
|
|
10710
|
-
onClick:
|
|
10759
|
+
onClick: te
|
|
10711
10760
|
}, [
|
|
10712
10761
|
h.value !== "error" && D.value ? (k(), c("img", {
|
|
10713
10762
|
key: 0,
|
|
@@ -10715,17 +10764,17 @@ var Bd = ["src"], Vd = {
|
|
|
10715
10764
|
class: "ai-image-inner",
|
|
10716
10765
|
src: D.value,
|
|
10717
10766
|
style: j,
|
|
10718
|
-
onError:
|
|
10719
|
-
onLoad:
|
|
10720
|
-
}, null, 40,
|
|
10721
|
-
h.value === "error" ? (k(), c("div",
|
|
10767
|
+
onError: N,
|
|
10768
|
+
onLoad: M
|
|
10769
|
+
}, null, 40, kg)) : s("", !0),
|
|
10770
|
+
h.value === "error" ? (k(), c("div", Ag, [f(z(Qt), { class: "ai-image-error-icon" })])) : s("", !0),
|
|
10722
10771
|
h.value === "error" ? (k(), c("div", {
|
|
10723
10772
|
key: 2,
|
|
10724
10773
|
class: "ai-image-error-overlay",
|
|
10725
|
-
onClick:
|
|
10726
|
-
}, [f(
|
|
10727
|
-
|
|
10728
|
-
!
|
|
10774
|
+
onClick: F
|
|
10775
|
+
}, [f(z(gn), { class: "ai-image-reload-icon" }), l("span", null, L(z(G)("重新加载")), 1)])) : s("", !0),
|
|
10776
|
+
P(t.$slots, "default"),
|
|
10777
|
+
!z(p) && e.preview && g.value ? (k(), o(Gd, {
|
|
10729
10778
|
key: 3,
|
|
10730
10779
|
visible: g.value,
|
|
10731
10780
|
"onUpdate:visible": n[0] || (n[0] = (e) => g.value = e),
|
|
@@ -10734,7 +10783,7 @@ var Bd = ["src"], Vd = {
|
|
|
10734
10783
|
"show-info": e.showInfo
|
|
10735
10784
|
}, u({ _: 2 }, [t.$slots.extra ? {
|
|
10736
10785
|
name: "extra",
|
|
10737
|
-
fn:
|
|
10786
|
+
fn: H(() => [P(t.$slots, "extra")]),
|
|
10738
10787
|
key: "0"
|
|
10739
10788
|
} : void 0]), 1032, [
|
|
10740
10789
|
"visible",
|
|
@@ -10746,4 +10795,4 @@ var Bd = ["src"], Vd = {
|
|
|
10746
10795
|
}
|
|
10747
10796
|
}));
|
|
10748
10797
|
//#endregion
|
|
10749
|
-
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,
|
|
10798
|
+
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 };
|