@blueking/ai-blueking 2.0.0-dev.21 → 2.0.0-dev.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ai-blueking.vue.d.ts","sourceRoot":"","sources":["../src/ai-blueking.vue"],"names":[],"mappings":"AA2xBE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAmB,gBAAgB,EAAE,eAAe,EAAsB,SAAS,EAAE,MAAM,SAAS,CAAC;AA6gCnH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ai-blueking.vue.d.ts","sourceRoot":"","sources":["../src/ai-blueking.vue"],"names":[],"mappings":"AA4xBE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAmB,gBAAgB,EAAE,eAAe,EAAsB,SAAS,EAAE,MAAM,SAAS,CAAC;AA+gCnH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-header/index.vue"],"names":[],"mappings":"AA8rBE,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,SAAS,CAAC;AA+pB9D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAvqBhB,CAppBgC;wBAopBhC,CAppBgE;iBAopBhE,CAnpBmB;;6EA+zCnB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-header/index.vue"],"names":[],"mappings":"AAiuBE,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,SAAS,CAAC;AA2rB9D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAnsBhB,CAvrBgC;wBAurBhC,CAvrBgE;iBAurBhE,CAtrBmB;;6EA83CnB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-history-panel.d.ts","sourceRoot":"","sources":["../../src/composables/use-history-panel.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAmC,KAAK,GAAG,EAAE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,gBAAgB;IAChB,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpC,aAAa;IACb,cAAc,EAAE,SAAS,CAAC;IAC1B,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,iBAAiB;IACjB,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,KAAK,CAAC;QACvF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1B,QAAQ,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,QAAQ,CAAC;KACzD,CAAC;CACH;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB;;;;gCAiIvB,KAAK;;;EAsCzC"}
1
+ {"version":3,"file":"use-history-panel.d.ts","sourceRoot":"","sources":["../../src/composables/use-history-panel.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAmC,KAAK,GAAG,EAAE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,gBAAgB;IAChB,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpC,aAAa;IACb,cAAc,EAAE,SAAS,CAAC;IAC1B,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,iBAAiB;IACjB,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,KAAK,CAAC;QACvF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1B,QAAQ,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,QAAQ,CAAC;KACzD,CAAC;CACH;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB;;;;gCAuIvB,KAAK;;;EAsCzC"}
@@ -640,7 +640,8 @@ var _hoisted_1$43 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
640
640
  props: /* @__PURE__ */ mergeModels({
641
641
  maxShortcutCount: { default: 3 },
642
642
  offset: { default: 10 },
643
- shortcuts: { default: () => DEFAULT_SHORTCUTS }
643
+ shortcuts: { default: () => DEFAULT_SHORTCUTS },
644
+ excludeSelectors: { default: () => [] }
644
645
  }, {
645
646
  visible: {
646
647
  type: Boolean,
@@ -650,7 +651,7 @@ var _hoisted_1$43 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
650
651
  }),
651
652
  emits: /* @__PURE__ */ mergeModels(["selectShortcut", "selectionChange"], ["update:visible"]),
652
653
  setup(e, { emit: n }) {
653
- useCssVars((e) => ({ v6908c8f9: unref(SELECTION_Z_INDEX) }));
654
+ useCssVars((e) => ({ v16af25a0: unref(SELECTION_Z_INDEX) }));
654
655
  let r = e, i = useModel(e, "visible"), a = n, l = useTemplateRef("popoverRef"), d = useTemplateRef("moreMenuRef"), m = shallowRef({
655
656
  x: 0,
656
657
  y: 0
@@ -692,6 +693,18 @@ var _hoisted_1$43 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
692
693
  z();
693
694
  return;
694
695
  }
696
+ if (r.excludeSelectors.length > 0 && k.value?.rangeCount) try {
697
+ let e = k.value.getRangeAt(0).commonAncestorContainer, n = e.nodeType === Node.TEXT_NODE ? e.parentNode : e;
698
+ for (; n && n !== document.body;) {
699
+ if (n instanceof Element) {
700
+ for (let e of r.excludeSelectors) if (n.closest(e)) {
701
+ z();
702
+ return;
703
+ }
704
+ }
705
+ n = n.parentNode;
706
+ }
707
+ } catch {}
695
708
  e !== E.value && a("selectionChange", e), E.value = e;
696
709
  let n = null;
697
710
  try {
@@ -23394,13 +23407,15 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23394
23407
  id: {},
23395
23408
  name: {},
23396
23409
  active: { type: Boolean },
23397
- disabled: { type: Boolean }
23410
+ disabled: { type: Boolean },
23411
+ tippyOptions: {}
23398
23412
  },
23399
23413
  emits: ["click"],
23400
23414
  setup(e, { emit: n }) {
23401
23415
  let r = e, i = n, a = computed(() => ({
23402
23416
  content: r.description,
23403
23417
  theme: "ai-chat-box",
23418
+ ...r.tippyOptions || {},
23404
23419
  onShow: () => {
23405
23420
  if (r.disabled) return !1;
23406
23421
  }
@@ -25402,8 +25417,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
25402
25417
  ref_for: !0
25403
25418
  }, n, {
25404
25419
  disabled: e.messageToolsStatus === unref(MessageToolsStatus).Disabled,
25420
+ "tippy-options": e.tippyOptions,
25405
25421
  onClick: (e) => E(n)
25406
- }), null, 16, ["disabled", "onClick"]))), 128))]),
25422
+ }), null, 16, [
25423
+ "disabled",
25424
+ "tippy-options",
25425
+ "onClick"
25426
+ ]))), 128))]),
25407
25427
  e.updateTools.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$13)) : createCommentVNode("v-if", !0),
25408
25428
  createElementVNode("div", _hoisted_4$10, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.updateTools, (n) => (openBlock(), createElementBlock(Fragment, { key: n.id }, [["like", "unlike"].includes(n.id) ? (openBlock(), createBlock(unref(Tippy), mergeProps({
25409
25429
  key: 0,
@@ -25427,11 +25447,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
25427
25447
  id: j(n.id),
25428
25448
  active: u.value === n.id,
25429
25449
  disabled: e.messageToolsStatus === unref(MessageToolsStatus).Disabled,
25450
+ "tippy-options": e.tippyOptions,
25430
25451
  onClick: (e) => E(n)
25431
25452
  }), null, 16, [
25432
25453
  "id",
25433
25454
  "active",
25434
25455
  "disabled",
25456
+ "tippy-options",
25435
25457
  "onClick"
25436
25458
  ])]),
25437
25459
  _: 2
@@ -25440,8 +25462,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
25440
25462
  ref_for: !0
25441
25463
  }, n, {
25442
25464
  disabled: e.messageToolsStatus === unref(MessageToolsStatus).Disabled,
25465
+ "tippy-options": e.tippyOptions,
25443
25466
  onClick: (e) => E(n)
25444
- }), null, 16, ["disabled", "onClick"]))], 64))), 128))])
25467
+ }), null, 16, [
25468
+ "disabled",
25469
+ "tippy-options",
25470
+ "onClick"
25471
+ ]))], 64))), 128))])
25445
25472
  ], 512));
25446
25473
  }
25447
25474
  }), _hoisted_1$21 = { class: "ai-loading-ring" }, _hoisted_2$15 = {
@@ -25967,7 +25994,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
25967
25994
  emits: /* @__PURE__ */ mergeModels(["stopStreaming"], ["update:selectedMessages"]),
25968
25995
  setup(e) {
25969
25996
  let n = e, r = useModel(e, "selectedMessages"), i = useTemplateRef("messageContainerRef"), a = useTemplateRef("messageContainerBottomRef"), s = ref([]), { isScrollBottom: l, toScrollBottom: u, scrollBottomHeight: d } = useContainerScrollProvider(i, a), { copy: m } = useClipboard();
25970
- console.log("[MessageContainer] messageToolsTippyOptions:", n.messageToolsTippyOptions), watchEffect(() => {
25997
+ watchEffect(() => {
25971
25998
  let e = [], r = [];
25972
25999
  for (let i of n.messages) {
25973
26000
  if (i.role === MessageRole$1.User) {
@@ -26228,7 +26255,9 @@ function useHistoryPanel(e) {
26228
26255
  let r = e.target, i = n.value;
26229
26256
  if (i && i.contains(r)) return;
26230
26257
  let a = document.querySelector(".tippy-box[data-theme~=\"history-panel\"]");
26231
- a && a.contains(r) || o.value?.state.isVisible && o.value.hide();
26258
+ if (a && a.contains(r)) return;
26259
+ let s = document.querySelector(".tippy-box[data-theme~=\"more-menu-light\"]");
26260
+ s && s.contains(r) || o.value?.state.isVisible && o.value.hide();
26232
26261
  }, d = () => {
26233
26262
  if (!n.value || o.value) return;
26234
26263
  let e = {
@@ -26596,15 +26625,15 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26596
26625
  "history-session-rename"
26597
26626
  ],
26598
26627
  setup(e, { expose: n, emit: r }) {
26599
- let i = e, a = r, o = bkTooltips, s = ref(null), l = ref(null), u = ref(null), m = ref(null), g = ref(null), k = ref(!1), j = ref(""), I = ref(null), L = null, z = null, B = () => {
26600
- !l.value || !i.sessionBusinessManager || (z = useHistoryDropdown({
26628
+ let i = e, a = r, o = bkTooltips, s = ref(null), l = ref(null), u = ref(null), m = ref(!1), g = ref(""), k = ref(null), j = null, I = /* @__PURE__ */ new Map(), L = null, z = () => {
26629
+ !l.value || !i.sessionBusinessManager || (L = useHistoryDropdown({
26601
26630
  triggerRef: l,
26602
26631
  sessionBusinessManager: i.sessionBusinessManager,
26603
26632
  onSessionSwitch: (e) => a("history-session-switch", e),
26604
26633
  onSessionDelete: (e) => a("history-session-delete", e),
26605
26634
  onSessionRename: (e, n) => a("history-session-rename", e, n)
26606
26635
  }));
26607
- }, H = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), G = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), K = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), q = computed(() => i.hasPermission), J = (e) => q.value ? e : t("暂无使用权限"), Z = () => ({ cursor: q.value ? "pointer" : "not-allowed" }), Dg = computed(() => {
26636
+ }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), G = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), K = computed(() => i.hasPermission), q = (e) => K.value ? e : t("暂无使用权限"), J = () => ({ cursor: K.value ? "pointer" : "not-allowed" }), Z = computed(() => {
26608
26637
  let e = !i.hasSessionContents, n = e ? "disabled" : "", r = e ? `data-tippy-content="${t("请先发起会话")}"` : "", a = "";
26609
26638
  return i.dropdownMenuConfig?.showRename && (a += `
26610
26639
  <div class="tippy-menu-item" data-action="rename">
@@ -26617,7 +26646,7 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26617
26646
  <span>${t("自动生成命名")}</span>
26618
26647
  </div>
26619
26648
  `), i.dropdownMenuConfig?.showShare && (a += `
26620
- <div class="tippy-menu-item" data-action="share">
26649
+ <div class="tippy-menu-item ${n}" data-action="share" ${r}>
26621
26650
  <i class="bkai-icon bkai-fenxiang"></i>
26622
26651
  <span>${t("分享会话")}</span>
26623
26652
  </div>
@@ -26626,7 +26655,7 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26626
26655
  ${a}
26627
26656
  </div>
26628
26657
  `;
26629
- }), $ = async () => {
26658
+ }), Dg = async () => {
26630
26659
  if (i.sessionBusinessManager) try {
26631
26660
  await i.sessionBusinessManager.createNewSession();
26632
26661
  } catch (e) {
@@ -26636,18 +26665,18 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26636
26665
  });
26637
26666
  }
26638
26667
  a("new-chat");
26639
- }, kg = (e) => {
26640
- e.stopPropagation(), i.sessionBusinessManager ? (z || B(), z && z.handleTriggerClick(e)) : a("history-click", e);
26641
- }, Ag = () => {
26668
+ }, $ = (e) => {
26669
+ e.stopPropagation(), i.sessionBusinessManager ? (L || z(), L && L.handleTriggerClick(e)) : a("history-click", e);
26670
+ }, kg = () => {
26642
26671
  a("help-click");
26672
+ }, Ag = (e) => {
26673
+ e.stopPropagation(), L && L.isVisible() && L.hide(), j && (j.state.isVisible ? j.hide() : j.show());
26643
26674
  }, Mg = (e) => {
26644
- e.stopPropagation(), L && (L.state.isVisible ? L.hide() : L.show());
26645
- }, Ng = (e) => {
26646
26675
  e.stopPropagation(), e.preventDefault();
26647
26676
  let n = e.currentTarget, r = n.dataset.action;
26648
- if (!n.classList.contains("disabled")) switch (L && L.hide(), r) {
26677
+ if (!n.classList.contains("disabled")) switch (j && j.hide(), r) {
26649
26678
  case "rename":
26650
- Pg();
26679
+ Ng();
26651
26680
  break;
26652
26681
  case "auto-generate":
26653
26682
  a("auto-generate-name");
@@ -26656,12 +26685,12 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26656
26685
  a("share");
26657
26686
  break;
26658
26687
  }
26659
- }, Pg = () => {
26660
- document.removeEventListener("click", Bg), j.value = i.sessionName || "", k.value = !0, setTimeout(() => {
26661
- document.addEventListener("click", Bg);
26688
+ }, Ng = () => {
26689
+ document.removeEventListener("click", Rg), g.value = i.sessionName || "", m.value = !0, setTimeout(() => {
26690
+ document.addEventListener("click", Rg);
26662
26691
  }, 100), setTimeout(() => {
26663
- if (I.value) try {
26664
- let e = I.value;
26692
+ if (k.value) try {
26693
+ let e = k.value;
26665
26694
  e && typeof e.focus == "function" && e.focus();
26666
26695
  let n = e.$el?.querySelector("input");
26667
26696
  n && typeof n.select == "function" && n.select();
@@ -26669,26 +26698,26 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26669
26698
  console.warn("Failed to focus rename input:", e);
26670
26699
  }
26671
26700
  }, 100);
26672
- }, Fg = () => {
26673
- let e = j.value.trim();
26701
+ }, Pg = () => {
26702
+ let e = g.value.trim();
26674
26703
  if (!e) {
26675
- Ig();
26704
+ Fg();
26676
26705
  return;
26677
26706
  }
26678
- a("rename", e), k.value = !1, j.value = "";
26679
- }, Ig = () => {
26680
- k.value = !1, j.value = "";
26681
- }, Rg = (e, n) => {
26682
- j.value = e, n.key === "Enter" ? Fg() : n.key === "Escape" && Ig();
26683
- }, Bg = (e) => {
26684
- if (!k.value) return;
26707
+ a("rename", e), m.value = !1, g.value = "";
26708
+ }, Fg = () => {
26709
+ m.value = !1, g.value = "";
26710
+ }, Ig = (e, n) => {
26711
+ g.value = e, n.key === "Enter" ? Pg() : n.key === "Escape" && Fg();
26712
+ }, Rg = (e) => {
26713
+ if (!m.value) return;
26685
26714
  let n = e.target, r = document.querySelector(".rename-tooltip");
26686
- r && !r.contains(n) && Ig();
26687
- }, Vg = async () => {
26715
+ r && !r.contains(n) && Fg();
26716
+ }, Bg = async () => {
26688
26717
  if (!u.value) return;
26689
26718
  let e = (await import("tippy.js")).default;
26690
- L &&= (L.destroy(), null), L = e(u.value, {
26691
- content: Dg.value,
26719
+ j &&= (j.destroy(), null), j = e(u.value, {
26720
+ content: Z.value,
26692
26721
  theme: "ai-blueking-light more-menu-light light",
26693
26722
  placement: "bottom-start",
26694
26723
  trigger: "manual",
@@ -26698,25 +26727,44 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26698
26727
  offset: [0, 4],
26699
26728
  appendTo: () => document.querySelector(".ai-blueking-panel") || document.body,
26700
26729
  onShow: () => {
26701
- setTimeout(() => {
26702
- document.querySelectorAll(".tippy-menu-item").forEach((e) => {
26703
- e.addEventListener("click", Ng);
26730
+ setTimeout(async () => {
26731
+ let { default: e } = await import("tippy.js");
26732
+ document.querySelectorAll(".tippy-menu-item").forEach((n) => {
26733
+ let r = n;
26734
+ r.addEventListener("click", Mg);
26735
+ let i = r.getAttribute("data-tippy-content");
26736
+ if (i && !I.has(r)) {
26737
+ let n = e(r, {
26738
+ content: i,
26739
+ theme: "ai-blueking-tooltip",
26740
+ placement: "right",
26741
+ trigger: "mouseenter focus",
26742
+ arrow: !0,
26743
+ delay: [300, 0]
26744
+ });
26745
+ I.set(r, n);
26746
+ }
26704
26747
  });
26705
26748
  }, 0);
26706
26749
  },
26707
26750
  onHide: () => {
26708
26751
  document.querySelectorAll(".tippy-menu-item").forEach((e) => {
26709
- e.removeEventListener("click", Ng);
26752
+ let n = e;
26753
+ n.removeEventListener("click", Mg);
26754
+ let r = I.get(n);
26755
+ r && (r.destroy(), I.delete(n));
26710
26756
  });
26711
26757
  }
26712
26758
  });
26713
26759
  };
26714
26760
  return watch(() => [i.isCompressionHeight, i.hasSessionContents], () => {
26715
- L && L.setContent(Dg.value);
26761
+ j && j.setContent(Z.value);
26716
26762
  }), onMounted(() => {
26717
- Vg(), i.sessionBusinessManager && B(), document.addEventListener("click", Bg);
26763
+ Bg(), i.sessionBusinessManager && z(), document.addEventListener("click", Rg);
26718
26764
  }), onBeforeUnmount(() => {
26719
- L &&= (L.destroy(), null), z &&= (z.destroy(), null), document.removeEventListener("click", Bg);
26765
+ j &&= (j.destroy(), null), I.forEach((e) => {
26766
+ e.destroy();
26767
+ }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", Rg);
26720
26768
  }), n({
26721
26769
  headerRef: s,
26722
26770
  historyIconRef: l
@@ -26729,31 +26777,31 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26729
26777
  alt: "logo",
26730
26778
  src: unref(avatar_default)
26731
26779
  }, null, 8, _hoisted_3$2)]),
26732
- createElementVNode("div", { class: normalizeClass(["title", { "title-with-tooltip": k.value }]) }, [
26733
- createTextVNode(toDisplayString(H.value) + " ", 1),
26780
+ createElementVNode("div", { class: normalizeClass(["title", { "title-with-tooltip": m.value }]) }, [
26781
+ createTextVNode(toDisplayString(B.value) + " ", 1),
26734
26782
  createCommentVNode(" 重命名 tooltip 直接绑定在 title 上 "),
26735
- k.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5$1, [createVNode(unref(Input), {
26783
+ m.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5$1, [createVNode(unref(Input), {
26736
26784
  ref_key: "renameInputRef",
26737
- ref: I,
26738
- modelValue: j.value,
26739
- "onUpdate:modelValue": r[0] ||= (e) => j.value = e,
26785
+ ref: k,
26786
+ modelValue: g.value,
26787
+ "onUpdate:modelValue": r[0] ||= (e) => g.value = e,
26740
26788
  class: "rename-input",
26741
26789
  placeholder: unref(t)("请输入新的会话名称"),
26742
- onKeyup: Rg
26790
+ onKeyup: Ig
26743
26791
  }, null, 8, ["modelValue", "placeholder"]), createElementVNode("div", { class: "rename-buttons" }, [createElementVNode("i", {
26744
26792
  class: "bkai-icon bkai-check-1 rename-btn confirm-btn",
26745
- onClick: Fg
26793
+ onClick: Pg
26746
26794
  }), createElementVNode("i", {
26747
26795
  class: "bkai-icon bkai-close rename-btn cancel-btn",
26748
- onClick: Ig
26796
+ onClick: Fg
26749
26797
  })])])])) : createCommentVNode("v-if", !0)
26750
26798
  ], 2),
26751
- i.showMoreIcon && q.value ? (openBlock(), createElementBlock("span", {
26799
+ i.showMoreIcon && K.value ? (openBlock(), createElementBlock("span", {
26752
26800
  key: 0,
26753
26801
  ref_key: "moreIconRef",
26754
26802
  ref: u,
26755
26803
  class: "bkai-icon bkai-more",
26756
- onClick: Mg
26804
+ onClick: Ag
26757
26805
  }, null, 512)) : createCommentVNode("v-if", !0)
26758
26806
  ]), createElementVNode("div", _hoisted_6$1, [
26759
26807
  createCommentVNode(" 新增会话按钮 "),
@@ -26762,12 +26810,12 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26762
26810
  class: normalizeClass([
26763
26811
  "bkai-icon",
26764
26812
  "bkai-xinzengliaotian",
26765
- { disabled: !q.value }
26813
+ { disabled: !K.value }
26766
26814
  ]),
26767
- style: normalizeStyle(Z()),
26768
- onClick: r[1] ||= (e) => q.value ? $() : void 0
26815
+ style: normalizeStyle(J()),
26816
+ onClick: r[1] ||= (e) => K.value ? Dg() : void 0
26769
26817
  }, null, 6)), [[unref(o), {
26770
- content: J(unref(t)("新增会话")),
26818
+ content: q(unref(t)("新增会话")),
26771
26819
  boundary: "parent"
26772
26820
  }]]) : createCommentVNode("v-if", !0),
26773
26821
  createCommentVNode(" 历史会话按钮 "),
@@ -26778,35 +26826,31 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26778
26826
  class: normalizeClass([
26779
26827
  "bkai-icon",
26780
26828
  "bkai-history",
26781
- { disabled: !q.value }
26829
+ { disabled: !K.value }
26782
26830
  ]),
26783
- style: normalizeStyle(Z()),
26784
- onClick: r[2] ||= (e) => q.value ? kg(e) : void 0
26831
+ style: normalizeStyle(J()),
26832
+ onClick: r[2] ||= (e) => K.value ? $(e) : void 0
26785
26833
  }, null, 6)), [[unref(o), {
26786
- content: J(unref(t)("历史会话")),
26834
+ content: q(unref(t)("历史会话")),
26787
26835
  boundary: "parent"
26788
26836
  }]]) : createCommentVNode("v-if", !0),
26789
26837
  e.chatGroup?.enabled ? withDirectives((openBlock(), createElementBlock("i", {
26790
26838
  key: 2,
26791
26839
  class: "bkai-icon bkai-zhushou",
26792
- onClick: Ag
26840
+ onClick: kg
26793
26841
  }, null, 512)), [[unref(o), {
26794
26842
  content: unref(t)("转人工"),
26795
26843
  boundary: "parent"
26796
26844
  }]]) : createCommentVNode("v-if", !0),
26797
26845
  i.showCompressionIcon ? withDirectives((openBlock(), createElementBlock("i", {
26798
26846
  key: 3,
26799
- ref_key: "compressionRef",
26800
- ref: m,
26801
- class: normalizeClass(["bkai-icon", G.value]),
26847
+ class: normalizeClass(["bkai-icon", H.value]),
26802
26848
  onClick: r[3] ||= (e) => a("toggle-compression")
26803
26849
  }, null, 2)), [[unref(o), {
26804
- content: K.value,
26850
+ content: G.value,
26805
26851
  boundary: "parent"
26806
26852
  }]]) : createCommentVNode("v-if", !0),
26807
26853
  withDirectives(createElementVNode("i", {
26808
- ref_key: "closeRef",
26809
- ref: g,
26810
26854
  class: "bkai-icon bkai-close-line-2",
26811
26855
  onClick: r[4] ||= (e) => a("close")
26812
26856
  }, null, 512), [[unref(o), {
@@ -26815,7 +26859,7 @@ var _hoisted_1$5 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26815
26859
  }]])
26816
26860
  ])], 2));
26817
26861
  }
26818
- }), [["__scopeId", "data-v-e9f38ba5"]]), ChatBusinessManager = class {
26862
+ }), [["__scopeId", "data-v-7bf14eed"]]), ChatBusinessManager = class {
26819
26863
  _isGenerating;
26820
26864
  agentModule;
26821
26865
  config;
@@ -29570,6 +29614,7 @@ var _hoisted_1$2 = { class: "draggable-container-content" }, draggable_container
29570
29614
  key: 1,
29571
29615
  visible: kg.value,
29572
29616
  "onUpdate:visible": n[6] ||= (e) => kg.value = e,
29617
+ "exclude-selectors": [".draggable-container-wrapper"],
29573
29618
  "max-shortcut-count": i.shortcutLimit,
29574
29619
  shortcuts: Vg.value,
29575
29620
  onSelectShortcut: Xg,
@@ -29581,7 +29626,7 @@ var _hoisted_1$2 = { class: "draggable-container-content" }, draggable_container
29581
29626
  ])) : createCommentVNode("v-if", !0)
29582
29627
  ], 2)], 8, ["to"]));
29583
29628
  }
29584
- }), [["__scopeId", "data-v-ddf60092"]]), vue2_default = {
29629
+ }), [["__scopeId", "data-v-a74325da"]]), vue2_default = {
29585
29630
  name: "AIBluekingV2",
29586
29631
  render(e) {
29587
29632
  return e("div", { style: {