@blueking/chat-x 0.0.49-beta.4 → 0.0.49-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10640,9 +10640,10 @@ var $d = ["src"], ef = {
10640
10640
  }
10641
10641
  }), T_ = [
10642
10642
  "id",
10643
+ "data-message-group-id",
10643
10644
  "onMouseenter",
10644
10645
  "onMouseleave"
10645
- ], E_ = { class: "ai-message-fixed-bottom" }, D_ = /* @__PURE__ */ m({
10646
+ ], E_ = ["data-message-id"], D_ = { class: "ai-message-fixed-bottom" }, O_ = /* @__PURE__ */ m({
10646
10647
  __name: "message-container",
10647
10648
  props: /* @__PURE__ */ y({
10648
10649
  enableSelection: {
@@ -10669,27 +10670,30 @@ var $d = ["src"], ef = {
10669
10670
  }),
10670
10671
  emits: /* @__PURE__ */ y(["stopStreaming"], ["update:selectedUserMessages"]),
10671
10672
  setup(t) {
10672
- let n = t, r = B(t, "selectedUserMessages"), i = V("messageContainerRef"), d = V("messageContainerBottomRef"), { jumpToBottom: p, toScrollBottom: m, debouncedShowScrollBottomBtn: h } = ei(i, d);
10673
+ let n = t, r = B(t, "selectedUserMessages"), i = (e) => {
10674
+ let t = e.id || e.uid;
10675
+ return t === void 0 ? void 0 : String(t);
10676
+ }, d = V("messageContainerRef"), p = V("messageContainerBottomRef"), { jumpToBottom: m, toScrollBottom: h, debouncedShowScrollBottomBtn: g } = ei(d, p);
10673
10677
  E(() => {
10674
10678
  var e;
10675
- (e = n.messageGroups) != null && e.length && (p(), requestAnimationFrame(() => p()));
10679
+ (e = n.messageGroups) != null && e.length && (m(), requestAnimationFrame(() => m()));
10676
10680
  });
10677
- let { copy: g } = Yr(), _ = (e, t) => {
10681
+ let { copy: _ } = Yr(), v = (e, t) => {
10678
10682
  if (!(t != null && t.length)) return e;
10679
10683
  let n = e.map((e) => {
10680
10684
  let n = t.find((t) => t.id === e.id);
10681
10685
  return n ? X(X({}, e), n) : e;
10682
10686
  }), r = t.filter((t) => !e.some((e) => e.id === t.id));
10683
10687
  return [...n, ...r].filter((e) => !e.hidden);
10684
- }, v = a(() => _(kt, n.messageTools).filter((e) => n.renderMode !== Ft.Test || e.id !== "share")), y = a(() => _(jt, n.updateTools)), x = a(() => n.renderMode === Ft.Share ? n.messageGroups.filter((e) => e.type !== q.Loading) : n.messageGroups), C = (e) => {
10688
+ }, y = a(() => v(kt, n.messageTools).filter((e) => n.renderMode !== Ft.Test || e.id !== "share")), x = a(() => v(jt, n.updateTools)), C = a(() => n.renderMode === Ft.Share ? n.messageGroups.filter((e) => e.type !== q.Loading) : n.messageGroups), T = (e) => {
10685
10689
  var t;
10686
10690
  let n = (t = e.messages) == null ? void 0 : t.at(-1);
10687
10691
  (n == null ? void 0 : n.role) !== q.Interrupt && (e.isHover = !0);
10688
- }, T = (e, t) => {
10692
+ }, D = (e, t) => {
10689
10693
  var n;
10690
10694
  let r = (n = t.toElement) == null ? t.relatedTarget : n;
10691
10695
  r instanceof Element && r.classList.contains("ai-user-feedback") || (e.isHover = !1);
10692
- }, D = (e, t) => {
10696
+ }, O = (e, t) => {
10693
10697
  var i, a;
10694
10698
  let o = e.type === q.User;
10695
10699
  (i = n.messageGroups) == null || i.forEach((r, i) => {
@@ -10699,15 +10703,15 @@ var $d = ["src"], ef = {
10699
10703
  e && (e.checked = t);
10700
10704
  }
10701
10705
  }), r.value = (a = n.messageGroups) == null ? void 0 : a.filter((e) => e.checked).map((e) => e.messages).flat();
10702
- }, O = function() {
10706
+ }, A = function() {
10703
10707
  var e = Z(function* (e, t) {
10704
10708
  var r;
10705
- return e.id === "copy" && g(t.filter((e) => e.role !== q.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), (r = n.onAgentAction) == null ? void 0 : r.call(n, e, t);
10709
+ return e.id === "copy" && _(t.filter((e) => e.role !== q.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), (r = n.onAgentAction) == null ? void 0 : r.call(n, e, t);
10706
10710
  });
10707
10711
  return function(t, n) {
10708
10712
  return e.apply(this, arguments);
10709
10713
  };
10710
- }(), A = function() {
10714
+ }(), j = function() {
10711
10715
  var e = Z(function* (e, t) {
10712
10716
  var r;
10713
10717
  (r = n.onUserAction) == null || r.call(n, e, t);
@@ -10715,7 +10719,7 @@ var $d = ["src"], ef = {
10715
10719
  return function(t, n) {
10716
10720
  return e.apply(this, arguments);
10717
10721
  };
10718
- }(), j = function() {
10722
+ }(), M = function() {
10719
10723
  var e = Z(function* (e, t, r) {
10720
10724
  var i;
10721
10725
  (i = n.onUserInputConfirm) == null || i.call(n, e, t, r);
@@ -10723,7 +10727,7 @@ var $d = ["src"], ef = {
10723
10727
  return function(t, n, r) {
10724
10728
  return e.apply(this, arguments);
10725
10729
  };
10726
- }(), M = function() {
10730
+ }(), ee = function() {
10727
10731
  var e = Z(function* (e, t) {
10728
10732
  var r;
10729
10733
  (r = n.onUserShortcutConfirm) == null || r.call(n, e, t);
@@ -10734,39 +10738,41 @@ var $d = ["src"], ef = {
10734
10738
  }();
10735
10739
  return (r, a) => (k(), c("div", {
10736
10740
  ref_key: "messageContainerRef",
10737
- ref: i,
10741
+ ref: d,
10738
10742
  class: "ai-message-container"
10739
10743
  }, [
10740
- (k(!0), c(e, null, N(x.value, (i, a) => (k(), c("div", {
10741
- id: i.uid,
10742
- key: a,
10744
+ (k(!0), c(e, null, N(C.value, (a, d) => (k(), c("div", {
10745
+ id: a.uid,
10746
+ key: d,
10743
10747
  class: "message-group",
10744
- style: w({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
10745
- onMouseenter: (e) => C(i),
10746
- onMouseleave: (e) => T(i, e)
10747
- }, [P(r.$slots, "group", b({ ref_for: !0 }, { group: i }), () => [t.enableSelection && i.type !== R(q).Loading ? (k(), o(R(ue), {
10748
+ "data-message-group-id": a.uid,
10749
+ style: w({ backgroundColor: a.checked ? "#f5f7fa" : "transparent" }),
10750
+ onMouseenter: (e) => T(a),
10751
+ onMouseleave: (e) => D(a, e)
10752
+ }, [P(r.$slots, "group", b({ ref_for: !0 }, { group: a }), () => [t.enableSelection && a.type !== R(q).Loading ? (k(), o(R(ue), {
10748
10753
  key: 0,
10749
10754
  class: "message-group-checkbox",
10750
- "model-value": i.checked,
10751
- "onUpdate:modelValue": (e) => D(i, e)
10755
+ "model-value": a.checked,
10756
+ "onUpdate:modelValue": (e) => O(a, e)
10752
10757
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : s("", !0), l("div", {
10753
- class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === R(Ft).Share || t.enableSelection && i.type !== R(q).Loading }]),
10754
- style: w({ width: t.enableSelection && i.type !== R(q).Loading ? "calc(100% - 16px)" : "100%" })
10755
- }, [(k(!0), c(e, null, N(i.messages, (e, i) => P(r.$slots, "default", b({
10756
- key: i,
10757
- ref_for: !0
10758
- }, {
10758
+ class: S(["message-group-messages", { "message-group-enabled-selection": t.renderMode === R(Ft).Share || t.enableSelection && a.type !== R(q).Loading }]),
10759
+ style: w({ width: t.enableSelection && a.type !== R(q).Loading ? "calc(100% - 16px)" : "100%" })
10760
+ }, [(k(!0), c(e, null, N(a.messages, (e, a) => (k(), c("div", {
10761
+ key: a,
10762
+ class: "ai-message-item",
10763
+ "data-message-id": i(e)
10764
+ }, [P(r.$slots, "default", b({ ref_for: !0 }, {
10759
10765
  message: e,
10760
10766
  messageToolsStatus: t.messageToolsStatus,
10761
10767
  onInterruptResume: n.onInterruptResume
10762
10768
  }), () => [(k(), o(w_, {
10763
- key: i,
10769
+ key: a,
10764
10770
  message: e,
10765
10771
  "message-tools-status": t.messageToolsStatus,
10766
- "on-action": (t) => A(t, e),
10767
- "on-input-confirm": (t, n) => j(e, t, n),
10772
+ "on-action": (t) => j(t, e),
10773
+ "on-input-confirm": (t, n) => M(e, t, n),
10768
10774
  "on-interrupt-resume": n.onInterruptResume,
10769
- "on-shortcut-confirm": (t) => M(e, t),
10775
+ "on-shortcut-confirm": (t) => ee(e, t),
10770
10776
  "tippy-options": t.messageToolsTippyOptions
10771
10777
  }, u({ _: 2 }, [r.$slots.answeredQuestion ? {
10772
10778
  name: "answeredQuestion",
@@ -10780,17 +10786,17 @@ var $d = ["src"], ef = {
10780
10786
  "on-interrupt-resume",
10781
10787
  "on-shortcut-confirm",
10782
10788
  "tippy-options"
10783
- ]))])), 128)), t.renderMode !== R(Ft).Share && !(t.enableSelection && i.type !== R(q).Loading) && !i.pause && i.type === R(q).Assistant && t.messageToolsStatus !== R(Ad).Hidden ? (k(), o(Zm, {
10789
+ ]))])], 8, E_))), 128)), t.renderMode !== R(Ft).Share && !(t.enableSelection && a.type !== R(q).Loading) && !a.pause && a.type === R(q).Assistant && t.messageToolsStatus !== R(Ad).Hidden ? (k(), o(Zm, {
10784
10790
  key: 0,
10785
- "message-tools": v.value,
10791
+ "message-tools": y.value,
10786
10792
  "message-tools-status": t.messageToolsStatus,
10787
- "on-action": (e) => O(e, i.messages),
10788
- style: w({ visibility: i.isHover ? "visible" : "hidden" }),
10793
+ "on-action": (e) => A(e, a.messages),
10794
+ style: w({ visibility: a.isHover ? "visible" : "hidden" }),
10789
10795
  "tippy-options": n.messageToolsTippyOptions,
10790
- "update-tools": y.value,
10796
+ "update-tools": x.value,
10791
10797
  onFeedback: (e, t, r) => {
10792
- var a;
10793
- return (a = n.onAgentFeedback) == null ? void 0 : a.call(n, e, i.messages, t, r);
10798
+ var i;
10799
+ return (i = n.onAgentFeedback) == null ? void 0 : i.call(n, e, a.messages, t, r);
10794
10800
  }
10795
10801
  }, null, 8, [
10796
10802
  "message-tools",
@@ -10803,11 +10809,11 @@ var $d = ["src"], ef = {
10803
10809
  ])) : s("", !0)], 6)])], 44, T_))), 128)),
10804
10810
  l("div", {
10805
10811
  ref_key: "messageContainerBottomRef",
10806
- ref: d,
10812
+ ref: p,
10807
10813
  class: "message-container-bottom",
10808
10814
  tabindex: "0"
10809
10815
  }, null, 512),
10810
- l("div", E_, [W(f(fr, {
10816
+ l("div", D_, [W(f(fr, {
10811
10817
  loading: t.messageStatus === R(J).StopLoading,
10812
10818
  title: t.messageStatus === R(J).StopLoading ? R(G)("正在停止") : R(G)("停止生成"),
10813
10819
  onClick: a[0] || (a[0] = (e) => r.$emit("stopStreaming"))
@@ -10816,20 +10822,20 @@ var $d = ["src"], ef = {
10816
10822
  _: 1
10817
10823
  }, 8, ["loading", "title"]), [[ie, t.renderMode !== R(Ft).Share && (t.messageStatus === R(J).Streaming || t.messageStatus === R(J).StopLoading || t.messageStatus === R(J).Fetching || t.messageStatus === R(J).Pending)]]), W(f(fr, {
10818
10824
  title: R(G)("返回底部"),
10819
- onClick: a[1] || (a[1] = () => R(m)("smooth"))
10825
+ onClick: a[1] || (a[1] = () => R(h)("smooth"))
10820
10826
  }, {
10821
10827
  icon: U(() => [f(R(qn))]),
10822
10828
  _: 1
10823
- }, 8, ["title"]), [[ie, R(h)]])])
10829
+ }, 8, ["title"]), [[ie, R(g)]])])
10824
10830
  ], 512));
10825
10831
  }
10826
- }), O_ = { class: "ai-execution-summary" }, k_ = { class: "ai-execution-summary-header" }, A_ = { class: "ai-execution-summary-content" }, j_ = ["onMouseenter"], M_ = { class: "content-item-header" }, N_ = { class: "content-item-title" }, P_ = { class: "content-item-messages" }, F_ = {
10832
+ }), k_ = { class: "ai-execution-summary" }, A_ = { class: "ai-execution-summary-header" }, j_ = { class: "ai-execution-summary-content" }, M_ = ["onMouseenter"], N_ = { class: "content-item-header" }, P_ = { class: "content-item-title" }, F_ = { class: "content-item-messages" }, I_ = {
10827
10833
  key: 0,
10828
10834
  class: "timeline-line"
10829
- }, I_ = {
10835
+ }, L_ = {
10830
10836
  key: 1,
10831
10837
  class: "ai-execution-summary-content-empty"
10832
- }, L_ = { class: "ai-execution-summary-content-empty-text" }, R_ = /* @__PURE__ */ m({
10838
+ }, R_ = { class: "ai-execution-summary-content-empty-text" }, z_ = /* @__PURE__ */ m({
10833
10839
  __name: "execution-summary",
10834
10840
  props: { messageGroups: {} },
10835
10841
  emits: ["locateMessageGroup", "updateKeyword"],
@@ -10843,21 +10849,21 @@ var $d = ["src"], ef = {
10843
10849
  }, h = () => {
10844
10850
  a.value = "", r("updateKeyword", "");
10845
10851
  };
10846
- return (n, g) => (k(), c("div", O_, [l("div", k_, [f(R(pe), {
10852
+ return (n, g) => (k(), c("div", k_, [l("div", A_, [f(R(pe), {
10847
10853
  modelValue: R(a),
10848
10854
  "onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
10849
10855
  class: "ai-execution-summary-header-input",
10850
10856
  clearable: "",
10851
10857
  placeholder: R(G)("搜索 关键字")
10852
- }, null, 8, ["modelValue", "placeholder"])]), l("div", A_, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
10858
+ }, null, 8, ["modelValue", "placeholder"])]), l("div", j_, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
10853
10859
  key: n.uid,
10854
10860
  class: "ai-execution-summary-content-item",
10855
10861
  onMouseenter: (e) => u.value = n.uid,
10856
10862
  onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
10857
10863
  }, [
10858
- l("div", M_, [
10864
+ l("div", N_, [
10859
10865
  g[3] || (g[3] = l("span", { class: "timeline-dot" }, null, -1)),
10860
- W((k(), c("span", N_, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(Pi), X({}, R(i))]]),
10866
+ W((k(), c("span", P_, [d(L(typeof n.userMessageTitle == "number" ? p(n.userMessageTitle) : n.userMessageTitle), 1)])), [[R(Pi), X({}, R(i))]]),
10861
10867
  W(f(R(le), {
10862
10868
  class: "content-item-locate",
10863
10869
  text: "",
@@ -10868,15 +10874,15 @@ var $d = ["src"], ef = {
10868
10874
  _: 1
10869
10875
  }, 8, ["onClick"]), [[ie, u.value === n.uid]])
10870
10876
  ]),
10871
- l("div", P_, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(w_, {
10877
+ l("div", F_, [(k(!0), c(e, null, N(n.messages, (e, t) => (k(), o(w_, {
10872
10878
  key: t,
10873
10879
  message: e
10874
10880
  }, null, 8, ["message"]))), 128))]),
10875
- r < t.messageGroups.length - 1 ? (k(), c("div", F_)) : s("", !0)
10876
- ], 40, j_))), 128)) : (k(), c("div", I_, [f(R(de), {
10881
+ r < t.messageGroups.length - 1 ? (k(), c("div", I_)) : s("", !0)
10882
+ ], 40, M_))), 128)) : (k(), c("div", L_, [f(R(de), {
10877
10883
  class: "empty-exception",
10878
10884
  type: "empty"
10879
- }), l("div", L_, [d(L(R(a) ? R(G)("搜索结果为空") : R(G)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(le), {
10885
+ }), l("div", R_, [d(L(R(a) ? R(G)("搜索结果为空") : R(G)("暂无数据")) + " ", 1), R(a) ? (k(), o(R(le), {
10880
10886
  key: 0,
10881
10887
  text: "",
10882
10888
  theme: "primary",
@@ -10886,7 +10892,7 @@ var $d = ["src"], ef = {
10886
10892
  _: 1
10887
10893
  })) : s("", !0)])]))])]));
10888
10894
  }
10889
- }), z_ = { class: "ai-selection-footer" }, B_ = { class: "ai-selection-footer-left" }, V_ = { class: "select-all-text" }, H_ = { class: "ai-selection-footer-right" }, U_ = /* @__PURE__ */ m({
10895
+ }), B_ = { class: "ai-selection-footer" }, V_ = { class: "ai-selection-footer-left" }, H_ = { class: "select-all-text" }, U_ = { class: "ai-selection-footer-right" }, W_ = /* @__PURE__ */ m({
10890
10896
  __name: "selection-footer",
10891
10897
  props: {
10892
10898
  isAllSelected: { type: Boolean },
@@ -10900,10 +10906,10 @@ var $d = ["src"], ef = {
10900
10906
  ],
10901
10907
  setup(e, { emit: t }) {
10902
10908
  let n = t;
10903
- return (t, r) => (k(), c("div", z_, [l("div", B_, [f(R(ue), {
10909
+ return (t, r) => (k(), c("div", B_, [l("div", V_, [f(R(ue), {
10904
10910
  "model-value": e.isAllSelected,
10905
10911
  "onUpdate:modelValue": r[0] || (r[0] = (e) => n("toggle-all", e))
10906
- }, null, 8, ["model-value"]), l("span", V_, L(R(G)("全选")), 1)]), l("div", H_, [f(R(le), {
10912
+ }, null, 8, ["model-value"]), l("span", H_, L(R(G)("全选")), 1)]), l("div", U_, [f(R(le), {
10907
10913
  disabled: e.loading,
10908
10914
  onClick: r[1] || (r[1] = (e) => n("cancel"))
10909
10915
  }, {
@@ -10919,16 +10925,16 @@ var $d = ["src"], ef = {
10919
10925
  _: 1
10920
10926
  }, 8, ["disabled", "loading"])])]));
10921
10927
  }
10922
- }), W_ = ["data-ai-size"], G_ = {
10928
+ }), G_ = ["data-ai-size"], K_ = {
10923
10929
  key: 0,
10924
10930
  class: "ai-chat-container-loading"
10925
- }, K_ = { class: "screen-wrapper" }, q_ = {
10931
+ }, q_ = { class: "screen-wrapper" }, J_ = {
10926
10932
  key: 1,
10927
10933
  class: "ai-welcome-content"
10928
- }, J_ = { class: "ai-welcome-title" }, Y_ = {
10934
+ }, Y_ = { class: "ai-welcome-title" }, X_ = {
10929
10935
  key: 0,
10930
10936
  class: "ai-welcome-remark"
10931
- }, X_ = /* @__PURE__ */ m({
10937
+ }, Z_ = /* @__PURE__ */ m({
10932
10938
  __name: "chat-container",
10933
10939
  props: /* @__PURE__ */ y({
10934
10940
  chatLoading: { type: Boolean },
@@ -11185,7 +11191,7 @@ var $d = ["src"], ef = {
11185
11191
  "--resize-main-width": he.value,
11186
11192
  borderTopColor: R(re) ? "transparent" : "#eaebf0"
11187
11193
  })
11188
- }, [t.chatLoading ? (k(), c("div", G_, [f(wp)])) : (k(), o(R(_e), b({
11194
+ }, [t.chatLoading ? (k(), c("div", K_, [f(wp)])) : (k(), o(R(_e), b({
11189
11195
  key: 1,
11190
11196
  class: ["ai-chat-container-resize-layout", { "ai-is-collapse": R(re) || R(te).length > 0 && !((a = de.value) != null && a.length) && ((u = R(ve)) == null ? void 0 : u.length) < 1 && !Oe.value }]
11191
11197
  }, T.value, { onResizing: Ke }), {
@@ -11206,7 +11212,7 @@ var $d = ["src"], ef = {
11206
11212
  }, {
11207
11213
  setting: U(() => {
11208
11214
  var e;
11209
- return [l("div", K_, [f(Ii, {
11215
+ return [l("div", q_, [f(Ii, {
11210
11216
  class: "screen-btn",
11211
11217
  "tippy-options": X(X({}, t.commonTippyOptions), {}, {
11212
11218
  appendTo: R(_) ? m.value : (e = t.commonTippyOptions) == null ? void 0 : e.appendTo,
@@ -11251,7 +11257,7 @@ var $d = ["src"], ef = {
11251
11257
  }, null, 8, ["label", "name"]))), 128))]),
11252
11258
  _: 1
11253
11259
  }, 8, ["active"]),
11254
- ((u = R(z)) == null ? void 0 : u.name) === R("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [R(re) ? s("", !0) : (k(), o(R_, {
11260
+ ((u = R(z)) == null ? void 0 : u.name) === R("execution") && t.executionTabVisible !== !1 ? (k(), c(e, { key: 0 }, [R(re) ? s("", !0) : (k(), o(z_, {
11255
11261
  key: 0,
11256
11262
  "message-groups": R(ve),
11257
11263
  style: { height: "calc(100% - 40px)" },
@@ -11314,7 +11320,7 @@ var $d = ["src"], ef = {
11314
11320
  onUserShortcutConfirm: t.onUserShortcutConfirm
11315
11321
  })), () => {
11316
11322
  var e;
11317
- return [(e = t.messages) != null && e.length ? (k(), o(D_, {
11323
+ return [(e = t.messages) != null && e.length ? (k(), o(O_, {
11318
11324
  key: 0,
11319
11325
  "selected-user-messages": fe.value,
11320
11326
  "onUpdate:selectedUserMessages": r[1] || (r[1] = (e) => fe.value = e),
@@ -11359,17 +11365,17 @@ var $d = ["src"], ef = {
11359
11365
  "render-mode",
11360
11366
  "update-tools"
11361
11367
  ])) : s("", !0)];
11362
- }) : (k(), c("div", q_, [P(n.$slots, "welcome", C(h({
11368
+ }) : (k(), c("div", J_, [P(n.$slots, "welcome", C(h({
11363
11369
  openingRemark: t.openingRemark,
11364
11370
  welcomeTitle: t.welcomeTitle
11365
11371
  })), () => {
11366
11372
  var e;
11367
11373
  return [
11368
11374
  f(R(Kt)),
11369
- l("h2", J_, L((e = t.welcomeTitle) == null ? R(G)("你好,我是小鲸") : e), 1),
11370
- t.openingRemark ? (k(), c("div", Y_, [f(Zl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
11375
+ l("h2", Y_, L((e = t.welcomeTitle) == null ? R(G)("你好,我是小鲸") : e), 1),
11376
+ t.openingRemark ? (k(), c("div", X_, [f(Zl, { content: t.openingRemark }, null, 8, ["content"])])) : s("", !0)
11371
11377
  ];
11372
- })])), p.value === R(Ft).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(xe) ? (k(), o(U_, {
11378
+ })])), p.value === R(Ft).Share ? s("", !0) : (k(), c(e, { key: 2 }, [R(xe) ? (k(), o(W_, {
11373
11379
  key: 0,
11374
11380
  "is-all-selected": R(Se),
11375
11381
  loading: !1,
@@ -11449,10 +11455,10 @@ var $d = ["src"], ef = {
11449
11455
  ]))], 64))];
11450
11456
  }),
11451
11457
  _: 3
11452
- }, 16, ["class"]))], 12, W_);
11458
+ }, 16, ["class"]))], 12, G_);
11453
11459
  };
11454
11460
  }
11455
- }), Z_ = { class: "ai-image-preview-group" }, Q_ = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
11461
+ }), Q_ = { class: "ai-image-preview-group" }, $_ = /* @__PURE__ */ m(X(X({}, { name: "ImagePreviewGroup" }), {}, {
11456
11462
  __name: "image-preview-group",
11457
11463
  props: {
11458
11464
  maskClosable: {
@@ -11481,7 +11487,7 @@ var $d = ["src"], ef = {
11481
11487
  let a = [...t.keys()], o = a.map((e) => t.get(e)()), s = a.indexOf(e);
11482
11488
  r.value = o, i.value = s >= 0 ? s : 0, n.value = !0;
11483
11489
  }
11484
- }), (t, a) => (k(), c("div", Z_, [P(t.$slots, "default"), n.value ? (k(), o(af, {
11490
+ }), (t, a) => (k(), c("div", Q_, [P(t.$slots, "default"), n.value ? (k(), o(af, {
11485
11491
  key: 0,
11486
11492
  current: i.value,
11487
11493
  "onUpdate:current": a[0] || (a[0] = (e) => i.value = e),
@@ -11504,10 +11510,10 @@ var $d = ["src"], ef = {
11504
11510
  "show-info"
11505
11511
  ])) : s("", !0)]));
11506
11512
  }
11507
- })), $_ = ["alt", "src"], ev = {
11513
+ })), ev = ["alt", "src"], tv = {
11508
11514
  key: 1,
11509
11515
  class: "ai-image-error"
11510
- }, tv = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
11516
+ }, nv = /* @__PURE__ */ m(X(X({}, { name: "AiImage" }), {}, {
11511
11517
  __name: "image",
11512
11518
  props: {
11513
11519
  alt: { default: "" },
@@ -11599,8 +11605,8 @@ var $d = ["src"], ef = {
11599
11605
  style: j,
11600
11606
  onError: N,
11601
11607
  onLoad: M
11602
- }, null, 40, $_)) : s("", !0),
11603
- h.value === "error" ? (k(), c("div", ev, [f(R($t), { class: "ai-image-error-icon" })])) : s("", !0),
11608
+ }, null, 40, ev)) : s("", !0),
11609
+ h.value === "error" ? (k(), c("div", tv, [f(R($t), { class: "ai-image-error-icon" })])) : s("", !0),
11604
11610
  h.value === "error" ? (k(), c("div", {
11605
11611
  key: 2,
11606
11612
  class: "ai-image-error-overlay",
@@ -11628,4 +11634,4 @@ var $d = ["src"], ef = {
11628
11634
  }
11629
11635
  }));
11630
11636
  //#endregion
11631
- export { Kt as AIBluekingBannerIcon, Gt as AIBluekingIcon, yt as AIFileType, K as APPROVAL_STATUS, vt as APPROVAL_STATUS_MAP, Hr as ARTIFACT_PREVIEW_TOKEN, cr as ActiveLikeIcon, lr as ActiveUnLikeIcon, Qn as AgentIcon, tv as AiImage, yr as AiLoading, Tr as AiSelection, qn as ArrowDownIcon, Cn as ArrowLeftIcon, Zt as ArrowRightIcon, wn as ArrowRightPreviewIcon, hn as ArtifactTabIcon, tn as BkFlowFailedIcon, rn as BkFlowPendingIcon, an as BkFlowSkippedIcon, en as BkFlowSuccessIcon, nn as BkFlowSuspendedIcon, wt as CHAT_Z_INDEX, kt as CONST_MESSAGE_TOOLS, jt as CONST_UPDATE_TOOLS, At as CONST_USER_MESSAGE_TOOLS, Zr as CONTAINER_SCROLL_TOKEN, ni as CUSTOM_TAB_TOKEN, X_ as ChatContainer, lp as ChatInput, Nn as CheckCircleFillIcon, tr as CiteIcon, Fn as CloseCircleFillIcon, On as CloseCircleIcon, Xn as CloseIcon, hl as CodeContent, Wn as CollapsedIcon, Kn as ContentLoadingIcon, Zl as ContentRender, er as CopyIcon, dr as DEFAULT_SHORTCUTS, ii as DEFAULT_TAB_ORDER, bu as Delete, An as DeleteCircleIcon, or as DeleteIcon, kn as DocLinkIcon, qt as DocumentIcon, gn as DownloadFileIcon, xn as DownloadIcon, Et as EDITOR_MENU_Z_INDEX, Tt as EDITOR_Z_INDEX, ri as EXECUTION_TAB_NAME, sr as EditIcon, zn as EnterIcon, Gn as ErrorIcon, on as ExecutionIcon, R_ as ExecutionSummary, Ur as FILE_ARTIFACT_TAB_NAME, jn as FileUploadIcon, bn as FitScreenIcon, Jn as FullScreenIcon, li as GLOBAL_CONFIG_TOKEN, Pt as HIGHLIGHT_KEYWORD_CLASS_NAME, Ln as HelpDocIcon, Qm as HighlightKeyword, mn as HtmlIcon, Dd as IMAGE_PREVIEW_GROUP_KEY, $r as INSTANT_SCROLL_DISTANCE, En as ImageBrokenIcon, Sl as ImageContent, $t as ImageErrorIcon, af as ImagePreview, Q_ as ImagePreviewGroup, Dn as ImageSizeIcon, Rn as InfoIcon, xu as InsertText, r_ as InterruptMessageRender, gt as InterruptReason, bt as InterruptResumeOperation, fn as JpgIcon, dn as JsonIcon, It as LOADING_MESSAGE_ID, wl as LatexContent, ir as LikeIcon, Qt as LinkIcon, Hn as LoadingMessageIcon, Mt as MAX_UPLOAD_FILES, Nt as MAX_UPLOAD_FILE_SIZE, Jl as MarkdownContent, un as MarkdownIcon, Lt as MarkdownLanguageMap, El as MermaidContent, D_ as MessageContainer, _t as MessageContentType, wp as MessageLoading, w_ as MessageRender, q as MessageRole, Od as MessageState, J as MessageStatus, Zm as MessageTools, Ad as MessageToolsStatus, Km as MessageUserFeedback, sp as ModelSelector, $n as MoreAgentIcon, Zn as MoreIcon, sn as NodeOutputIcon, cn as NodeTabIcon, $p as OTHERS_OPTION_LABEL, Pi as OverflowTips, ln as PdfIcon, Sn as PreviewCloseIcon, Jt as PreviewIcon, nr as RebuildIcon, Tn as ReloadIcon, Xt as RemoveIcon, Ft as RenderMode, Su as ReplaceAll, In as RevokedIcon, yn as RotateIcon, Ot as SELECTION_Z_INDEX, Dt as SHORTCUT_MENU_Z_INDEX, Qr as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, fr as ScrollBtn, Mn as SearchIcon, U_ as SelectionFooter, Vn as SendMessageIcon, rr as ShareIcon, Sr as ShortcutBtn, kr as ShortcutBtns, Br as ShortcutRender, Bn as SkipIcon, Yt as TargetIcon, Un as ThinkingIcon, Pn as TimeIcon, Mg as ToolCallRender, ur as ToolIconsMap, pn as TxtIcon, Yn as UnFullScreenIcon, ar as UnLikeIcon, kd as UploadStatus, St as UserMultiChoiceQuestionSchema, fm as UserQuestionAnsweredCard, Fm as UserQuestionCard, vm as UserQuestionChoice, gm as UserQuestionOption, Ct as UserQuestionSchema, xt as UserSingleChoiceQuestionSchema, Gl as VNodeRenderer, _n as ZoomInIcon, vn as ZoomOutIcon, nm as buildSkipResumePayload, kl as commonErrorContent, Y as commonSVGProps, Ze as completeMarkdownSyntax, bd as createEditor, tu 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, xi as getScrollParent, di as injectGlobalConfig, mt as isEn, Le as isImageFile, ht as lang, Gc as markdownAnimationAttrs, Qc as markdownItBkInlineStyle, rl as markdownItLatex, al as markdownItMermaid, wu as microtask, Cu as min, He as needsMarkdownCompletion, Ed as noop, xd as plainSchema, Ue as removeCompletionSuffix, Td as resourceTypeMap, wd as schema, nu as stringToDoc, G as t, em as toLetter, Wr as triggerArtifactDownload, Vr as useAnimationText, Kr as useArtifactPreviewConsumer, Gr as useArtifactPreviewProvider, Yr as useClipboard, Xr as useCommandSelection, ti as useContainerScrollConsumer, ei as useContainerScrollProvider, oi as useCustomTabConsumer, ai as useCustomTabProvider, ci as useFullScreen, ui as useGlobalConfig, fi as useMenuKeydown, bi as useMessageGroup, Er as useObserverVisibleList, Si as useParentScrolling, tm as useUserQuestion, Cd as voidNode };
11637
+ export { Kt as AIBluekingBannerIcon, Gt as AIBluekingIcon, yt as AIFileType, K as APPROVAL_STATUS, vt as APPROVAL_STATUS_MAP, Hr as ARTIFACT_PREVIEW_TOKEN, cr as ActiveLikeIcon, lr as ActiveUnLikeIcon, Qn as AgentIcon, nv as AiImage, yr as AiLoading, Tr as AiSelection, qn as ArrowDownIcon, Cn as ArrowLeftIcon, Zt as ArrowRightIcon, wn as ArrowRightPreviewIcon, hn as ArtifactTabIcon, tn as BkFlowFailedIcon, rn as BkFlowPendingIcon, an as BkFlowSkippedIcon, en as BkFlowSuccessIcon, nn as BkFlowSuspendedIcon, wt as CHAT_Z_INDEX, kt as CONST_MESSAGE_TOOLS, jt as CONST_UPDATE_TOOLS, At as CONST_USER_MESSAGE_TOOLS, Zr as CONTAINER_SCROLL_TOKEN, ni as CUSTOM_TAB_TOKEN, Z_ as ChatContainer, lp as ChatInput, Nn as CheckCircleFillIcon, tr as CiteIcon, Fn as CloseCircleFillIcon, On as CloseCircleIcon, Xn as CloseIcon, hl as CodeContent, Wn as CollapsedIcon, Kn as ContentLoadingIcon, Zl as ContentRender, er as CopyIcon, dr as DEFAULT_SHORTCUTS, ii as DEFAULT_TAB_ORDER, bu as Delete, An as DeleteCircleIcon, or as DeleteIcon, kn as DocLinkIcon, qt as DocumentIcon, gn as DownloadFileIcon, xn as DownloadIcon, Et as EDITOR_MENU_Z_INDEX, Tt as EDITOR_Z_INDEX, ri as EXECUTION_TAB_NAME, sr as EditIcon, zn as EnterIcon, Gn as ErrorIcon, on as ExecutionIcon, z_ as ExecutionSummary, Ur as FILE_ARTIFACT_TAB_NAME, jn as FileUploadIcon, bn as FitScreenIcon, Jn as FullScreenIcon, li as GLOBAL_CONFIG_TOKEN, Pt as HIGHLIGHT_KEYWORD_CLASS_NAME, Ln as HelpDocIcon, Qm as HighlightKeyword, mn as HtmlIcon, Dd as IMAGE_PREVIEW_GROUP_KEY, $r as INSTANT_SCROLL_DISTANCE, En as ImageBrokenIcon, Sl as ImageContent, $t as ImageErrorIcon, af as ImagePreview, $_ as ImagePreviewGroup, Dn as ImageSizeIcon, Rn as InfoIcon, xu as InsertText, r_ as InterruptMessageRender, gt as InterruptReason, bt as InterruptResumeOperation, fn as JpgIcon, dn as JsonIcon, It as LOADING_MESSAGE_ID, wl as LatexContent, ir as LikeIcon, Qt as LinkIcon, Hn as LoadingMessageIcon, Mt as MAX_UPLOAD_FILES, Nt as MAX_UPLOAD_FILE_SIZE, Jl as MarkdownContent, un as MarkdownIcon, Lt as MarkdownLanguageMap, El as MermaidContent, O_ as MessageContainer, _t as MessageContentType, wp as MessageLoading, w_ as MessageRender, q as MessageRole, Od as MessageState, J as MessageStatus, Zm as MessageTools, Ad as MessageToolsStatus, Km as MessageUserFeedback, sp as ModelSelector, $n as MoreAgentIcon, Zn as MoreIcon, sn as NodeOutputIcon, cn as NodeTabIcon, $p as OTHERS_OPTION_LABEL, Pi as OverflowTips, ln as PdfIcon, Sn as PreviewCloseIcon, Jt as PreviewIcon, nr as RebuildIcon, Tn as ReloadIcon, Xt as RemoveIcon, Ft as RenderMode, Su as ReplaceAll, In as RevokedIcon, yn as RotateIcon, Ot as SELECTION_Z_INDEX, Dt as SHORTCUT_MENU_Z_INDEX, Qr as SHOW_SCROLL_BOTTOM_BTN_DISTANCE, fr as ScrollBtn, Mn as SearchIcon, W_ as SelectionFooter, Vn as SendMessageIcon, rr as ShareIcon, Sr as ShortcutBtn, kr as ShortcutBtns, Br as ShortcutRender, Bn as SkipIcon, Yt as TargetIcon, Un as ThinkingIcon, Pn as TimeIcon, Mg as ToolCallRender, ur as ToolIconsMap, pn as TxtIcon, Yn as UnFullScreenIcon, ar as UnLikeIcon, kd as UploadStatus, St as UserMultiChoiceQuestionSchema, fm as UserQuestionAnsweredCard, Fm as UserQuestionCard, vm as UserQuestionChoice, gm as UserQuestionOption, Ct as UserQuestionSchema, xt as UserSingleChoiceQuestionSchema, Gl as VNodeRenderer, _n as ZoomInIcon, vn as ZoomOutIcon, nm as buildSkipResumePayload, kl as commonErrorContent, Y as commonSVGProps, Ze as completeMarkdownSyntax, bd as createEditor, tu 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, xi as getScrollParent, di as injectGlobalConfig, mt as isEn, Le as isImageFile, ht as lang, Gc as markdownAnimationAttrs, Qc as markdownItBkInlineStyle, rl as markdownItLatex, al as markdownItMermaid, wu as microtask, Cu as min, He as needsMarkdownCompletion, Ed as noop, xd as plainSchema, Ue as removeCompletionSuffix, Td as resourceTypeMap, wd as schema, nu as stringToDoc, G as t, em as toLetter, Wr as triggerArtifactDownload, Vr as useAnimationText, Kr as useArtifactPreviewConsumer, Gr as useArtifactPreviewProvider, Yr as useClipboard, Xr as useCommandSelection, ti as useContainerScrollConsumer, ei as useContainerScrollProvider, oi as useCustomTabConsumer, ai as useCustomTabProvider, ci as useFullScreen, ui as useGlobalConfig, fi as useMenuKeydown, bi as useMessageGroup, Er as useObserverVisibleList, Si as useParentScrolling, tm as useUserQuestion, Cd as voidNode };