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