@blueking/ai-blueking 2.1.4-beta.12 → 2.1.4-beta.13

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.
@@ -53269,15 +53269,20 @@ function Sq(e, t) {
53269
53269
  }
53270
53270
  //#endregion
53271
53271
  //#region src/components/composables/use-chatbot-init.ts
53272
- function Cq(e) {
53273
- let { props: t, emit: n, scrollToBottom: r } = e, i = G(null), a = G(null), o = G(null), s = G(null), c = H(!1), l = H(!t.chatHelper), u = H(null), d = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
53272
+ var Cq = class extends Error {
53273
+ constructor() {
53274
+ super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
53275
+ }
53276
+ };
53277
+ function wq(e) {
53278
+ let { props: t, emit: n, scrollToBottom: r } = e, i = G(null), a = G(null), o = G(null), s = G(null), c = H(!1), l = H(!t.chatHelper), u = H(null), f = d(() => c.value), p = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
53274
53279
  valid: !1,
53275
53280
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
53276
53281
  } : { valid: !0 } : t.url ? { valid: !0 } : {
53277
53282
  valid: !1,
53278
53283
  error: "[ChatBot] Neither chatHelper nor url provided. Component requires at least one."
53279
- }, f = () => {
53280
- let e = d();
53284
+ }, m = () => {
53285
+ let e = p();
53281
53286
  if (!e.valid) return console.error(e.error), u.value = Error(e.error), null;
53282
53287
  if (t.chatHelper) return t.chatHelper;
53283
53288
  let i = new ST({
@@ -53298,43 +53303,65 @@ function Cq(e) {
53298
53303
  protocol: i
53299
53304
  });
53300
53305
  return i.injectMessageModule(a.message), a;
53301
- }, p = async (e, t) => {
53306
+ }, h = async (e, t) => {
53302
53307
  if (e) try {
53303
53308
  let n = e.session.current?.value?.sessionCode ?? "";
53304
53309
  await e.agent.stopChat(n), t && e.agent.abortChat();
53305
53310
  } catch {}
53306
- }, m = 0, h = async () => {
53307
- let e = ++m, r = i.value, d = l.value;
53308
- c.value = !1, u.value = null, l.value = !t.chatHelper, await p(r, d), i.value = null, a.value = null, o.value = null, s.value = null;
53309
- let h = f();
53310
- if (!h) return;
53311
- let g = new gq(h.session, h.agent, null, {
53311
+ }, g = 0, _ = null, v = null, y = null, b = (e) => {
53312
+ y &&= (e ? y.reject(e) : y.resolve(), null), _ = null;
53313
+ }, x = (e) => {
53314
+ if (e !== g) throw new Cq();
53315
+ }, S = async (e) => {
53316
+ let r = i.value, d = l.value;
53317
+ c.value = !1, u.value = null, l.value = !t.chatHelper, await h(r, d), x(e), i.value = null, a.value = null, o.value = null, s.value = null;
53318
+ let f = m();
53319
+ if (!f) throw u.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
53320
+ let p = new gq(f.session, f.agent, null, {
53312
53321
  enableChatSession: !0,
53313
53322
  autoSwitchToInitialSession: !!t.sessionCode,
53314
53323
  loadRecentSessionOnMount: t.autoLoad,
53315
53324
  initialSessionCode: t.sessionCode,
53316
53325
  alwaysCreateNewSession: t.alwaysCreateNewSession
53317
- }), _ = new hq(h.agent, h.message, h.session, null, {
53326
+ }), g = new hq(f.agent, f.message, f.session, null, {
53318
53327
  openingRemark: t.helloText,
53319
53328
  predefinedQuestions: t.prompts,
53320
53329
  placeholder: t.placeholder
53321
- }), v = new vq(null, t.shortcuts || []);
53322
- i.value = h, a.value = g, o.value = _, s.value = v;
53330
+ }), _ = new vq(null, t.shortcuts || []);
53331
+ i.value = f, a.value = p, o.value = g, s.value = _;
53323
53332
  try {
53324
- if (l.value && (await Promise.all([h.agent.getAgentInfo(), h.session.getSessions()]), e !== m || (await g.loadRecentSession({ skipLoadSessions: !0 }), e !== m))) return;
53325
- c.value = !0, n("agent-info-loaded", h);
53333
+ l.value && (await Promise.all([f.agent.getAgentInfo(), f.session.getSessions()]), x(e), await p.loadRecentSession({ skipLoadSessions: !0 }), x(e)), x(e), c.value = !0, n("agent-info-loaded", f);
53326
53334
  } catch (t) {
53327
- if (e !== m) return;
53328
- console.error("Failed to initialize ChatBot:", t), u.value = t, n("error", t);
53335
+ throw x(e), console.error("Failed to initialize ChatBot:", t), u.value = t, n("error", t), t;
53329
53336
  }
53337
+ }, C = () => {
53338
+ b(new Cq()), v = null;
53339
+ let e = ++g;
53340
+ _ = new Promise((t, n) => {
53341
+ y = {
53342
+ resolve: t,
53343
+ reject: n
53344
+ }, S(e).then(() => {
53345
+ y &&= (v = Promise.resolve(), y.resolve(), null);
53346
+ }).catch((e) => {
53347
+ if (y) {
53348
+ let t = e instanceof Error ? e : Error(String(e));
53349
+ y.reject(t), y = null;
53350
+ }
53351
+ }).finally(() => {
53352
+ e === g && (_ = null);
53353
+ });
53354
+ }), _.catch(() => {});
53330
53355
  };
53331
- return ue([() => t.url, () => t.chatHelper], () => h(), { immediate: !0 }), L(() => {
53332
- p(i.value, l.value);
53356
+ return ue([() => t.url, () => t.chatHelper], () => C(), { immediate: !0 }), L(() => {
53357
+ b(), h(i.value, l.value);
53333
53358
  }), {
53334
53359
  chatHelper: i,
53335
53360
  isStandaloneMode: l,
53336
53361
  isInitialized: c,
53362
+ isReady: f,
53337
53363
  initError: u,
53364
+ whenReady: () => c.value ? (v ||= Promise.resolve(), v) : u.value ? Promise.reject(u.value) : _ || Promise.resolve(),
53338
53365
  chatBusinessManager: o,
53339
53366
  sessionBusinessManager: a,
53340
53367
  shortcutManager: s
@@ -53342,7 +53369,7 @@ function Cq(e) {
53342
53369
  }
53343
53370
  //#endregion
53344
53371
  //#region src/components/composables/use-chatbot-state.ts
53345
- function wq(e) {
53372
+ function Tq(e) {
53346
53373
  let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = d(() => r.value?.isStopLoading.value ? Vk.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? Vk.Streaming : Vk.Complete), u = d(() => l.value === Vk.Streaming ? Yj.Disabled : void 0), f = d(() => r.value?.messages.value ?? []), p = d(() => r.value?.isMessagesLoading.value ?? !1);
53347
53374
  return {
53348
53375
  messageStatus: l,
@@ -53365,7 +53392,7 @@ function wq(e) {
53365
53392
  }
53366
53393
  //#endregion
53367
53394
  //#region src/components/composables/use-message-sender.ts
53368
- function Tq(e) {
53395
+ function Eq(e) {
53369
53396
  let { emit: t, chatHelper: n, chatBusinessManager: r, selectedShortcut: i, selectedResources: a } = e, o = G([[]]), s = G(""), c = (e, t) => {
53370
53397
  o.value = e, a.value = t;
53371
53398
  }, l = async (e, i = {}) => {
@@ -53408,7 +53435,7 @@ function Tq(e) {
53408
53435
  }
53409
53436
  //#endregion
53410
53437
  //#region src/components/composables/use-share-selection.ts
53411
- function Eq(e) {
53438
+ function Dq(e) {
53412
53439
  let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
53413
53440
  if (!(!n.value || e.length === 0)) try {
53414
53441
  await QT((await new _q(n.value.message, n.value.session).shareMessages(e)).shareUrl), jC({
@@ -53428,7 +53455,7 @@ function Eq(e) {
53428
53455
  }
53429
53456
  //#endregion
53430
53457
  //#region src/components/composables/use-shortcuts.ts
53431
- function Dq(e) {
53458
+ function Oq(e) {
53432
53459
  let { props: t, emit: n, shortcutManager: r, doSendMessage: i, selectedShortcut: a } = e, o = d(() => r.value?.effectiveShortcuts.value ?? []), s = (e, t) => {
53433
53460
  let n = e, r;
53434
53461
  if (r = n.enable_fill_back && n.fill_back_component_key ? n.fill_back_component_key : n.components?.find((e) => e.fillBack)?.key, r && t) {
@@ -53522,7 +53549,7 @@ function Dq(e) {
53522
53549
  }
53523
53550
  //#endregion
53524
53551
  //#region src/components/composables/use-tool-actions.ts
53525
- function Oq(e) {
53552
+ function kq(e) {
53526
53553
  let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, scrollToBottom: o, getShortcutFromMessage: s, buildShortcutProperty: c } = e, l = async (e) => {
53527
53554
  if (!r.value || !n.value) {
53528
53555
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
@@ -53699,7 +53726,7 @@ function Oq(e) {
53699
53726
  }
53700
53727
  //#endregion
53701
53728
  //#region src/components/chat-bot.vue
53702
- var kq = /* @__PURE__ */ x({
53729
+ var Aq = /* @__PURE__ */ x({
53703
53730
  __name: "chat-bot",
53704
53731
  props: {
53705
53732
  autoLoad: {
@@ -53759,130 +53786,132 @@ var kq = /* @__PURE__ */ x({
53759
53786
  await N(), s.value && (s.value.scrollTop = s.value.scrollHeight);
53760
53787
  }, v = () => {
53761
53788
  l.value?.focus?.();
53762
- }, { chatHelper: b, isStandaloneMode: x, isInitialized: S, initError: w, chatBusinessManager: T, sessionBusinessManager: E, shortcutManager: D } = Cq({
53789
+ }, { chatHelper: b, isStandaloneMode: x, isInitialized: S, isReady: w, initError: T, whenReady: E, chatBusinessManager: D, sessionBusinessManager: k, shortcutManager: A } = wq({
53763
53790
  props: r,
53764
53791
  emit: i,
53765
53792
  scrollToBottom: g
53766
- }), { userInput: k, cite: A, handleUpdateModelValue: j, doSendMessage: M, handleSendMessage: L, handleUpload: R, handleStopSending: z, stopGeneration: B } = Tq({
53793
+ }), { userInput: j, cite: M, handleUpdateModelValue: L, doSendMessage: R, handleSendMessage: z, handleUpload: B, handleStopSending: ee, stopGeneration: te } = Eq({
53767
53794
  emit: i,
53768
53795
  chatHelper: b,
53769
- chatBusinessManager: T,
53796
+ chatBusinessManager: D,
53770
53797
  selectedShortcut: f,
53771
53798
  selectedResources: u
53772
- }), { handleSelectShortcut: ee, handleCloseShortcut: te, handleShortcutSubmit: ne, selectShortcutWithText: U, getShortcutFromMessage: re, buildShortcutProperty: K, sendShortcutDirectly: ie } = Dq({
53799
+ }), { handleSelectShortcut: ne, handleCloseShortcut: U, handleShortcutSubmit: re, selectShortcutWithText: K, getShortcutFromMessage: ie, buildShortcutProperty: J, sendShortcutDirectly: ae } = Oq({
53773
53800
  props: r,
53774
53801
  emit: i,
53775
53802
  chatHelper: b,
53776
- shortcutManager: D,
53777
- doSendMessage: M,
53803
+ shortcutManager: A,
53804
+ doSendMessage: R,
53778
53805
  selectedShortcut: f
53779
- }), { messageStatus: J, messageToolsStatus: ae, messages: oe, isMessagesLoading: ce, isGenerating: le, currentSession: ue, isWelcomeState: de, openingRemark: fe, effectiveResources: pe, effectivePrompts: me, effectiveSupportUpload: he, chatbotStyle: ge, filteredShortcuts: _e } = wq({
53806
+ }), { messageStatus: oe, messageToolsStatus: ce, messages: le, isMessagesLoading: ue, isGenerating: de, currentSession: fe, isWelcomeState: pe, openingRemark: me, effectiveResources: he, effectivePrompts: ge, effectiveSupportUpload: _e, chatbotStyle: ve, filteredShortcuts: ye } = Tq({
53780
53807
  props: r,
53781
53808
  chatHelper: b,
53782
- chatBusinessManager: T,
53783
- sessionBusinessManager: E,
53784
- shortcutManager: D,
53809
+ chatBusinessManager: D,
53810
+ sessionBusinessManager: k,
53811
+ shortcutManager: A,
53785
53812
  isStandaloneMode: x,
53786
53813
  isInitialized: S,
53787
53814
  selectedShortcut: f
53788
- }), { handleAgentAction: ve, handleAgentFeedback: ye, handleUserAction: be, handleUserInputConfirm: xe, handleUserShortcutConfirm: Se, handleStopStreaming: Ce } = Oq({
53815
+ }), { handleAgentAction: be, handleAgentFeedback: xe, handleUserAction: Se, handleUserInputConfirm: Ce, handleUserShortcutConfirm: we, handleStopStreaming: Te } = kq({
53789
53816
  emit: i,
53790
53817
  chatHelper: b,
53791
- chatBusinessManager: T,
53792
- cite: A,
53818
+ chatBusinessManager: D,
53819
+ cite: M,
53793
53820
  focusInput: v,
53794
53821
  scrollToBottom: g,
53795
- getShortcutFromMessage: re,
53796
- buildShortcutProperty: K
53797
- }), we = d(() => !S.value || ce.value), { handleConfirmShare: Te } = Eq({
53822
+ getShortcutFromMessage: ie,
53823
+ buildShortcutProperty: J
53824
+ }), Ee = d(() => !S.value || ue.value), { handleConfirmShare: De } = Dq({
53798
53825
  emit: i,
53799
53826
  chatHelper: b,
53800
53827
  isStandaloneMode: x
53801
- }), Ee = (e) => {
53828
+ }), Oe = (e) => {
53802
53829
  i("execution-panel-change", e);
53803
- }, De = async (e) => {
53830
+ }, ke = async (e) => {
53804
53831
  if (r.onCustomTabChange) return r.onCustomTabChange(e);
53805
53832
  let t = e.data?.props;
53806
53833
  if (t?.task_id != null && t?.node_id) return b.value?.message.getFlowAgentTaskNodeInfo(t.task_id, t.node_id);
53807
53834
  };
53808
53835
  return t({
53809
- sendMessage: (e) => L(e, [[]]),
53810
- stopGeneration: B,
53836
+ sendMessage: (e) => z(e, [[]]),
53837
+ stopGeneration: te,
53811
53838
  switchSession: async (e) => {
53812
- if (!E.value) {
53839
+ if (!k.value) {
53813
53840
  console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
53814
53841
  return;
53815
53842
  }
53816
53843
  try {
53817
- await E.value.switchSession(e), i("session-switched", E.value.currentSession.value);
53844
+ await k.value.switchSession(e), i("session-switched", k.value.currentSession.value);
53818
53845
  } catch (e) {
53819
53846
  console.error("Failed to switch session:", e), i("error", e);
53820
53847
  }
53821
53848
  },
53822
- messages: oe,
53823
- currentSession: ue,
53824
- isGenerating: le,
53849
+ messages: le,
53850
+ currentSession: fe,
53851
+ isGenerating: de,
53852
+ isReady: w,
53853
+ whenReady: E,
53825
53854
  getChatHelper: () => b.value,
53826
53855
  setCiteText: (e) => {
53827
- A.value = e;
53856
+ M.value = e;
53828
53857
  },
53829
53858
  focusInput: v,
53830
53859
  enterShareMode: () => c.value?.enterShareMode(),
53831
53860
  exitShareMode: () => c.value?.exitShareMode(),
53832
53861
  selectShortcut: (e, t) => {
53833
- U(e, t);
53862
+ K(e, t);
53834
53863
  },
53835
- sendShortcut: (e, t) => ie(e, t)
53864
+ sendShortcut: (e, t) => ae(e, t)
53836
53865
  }), (t, n) => (V(), h("div", {
53837
53866
  class: P([
53838
53867
  "ai-chatbot",
53839
53868
  r.extCls,
53840
- { "welcome-state": q(de) }
53869
+ { "welcome-state": q(pe) }
53841
53870
  ]),
53842
- style: I(q(ge))
53871
+ style: I(q(ve))
53843
53872
  }, [y(q(iq), {
53844
53873
  ref_key: "chatContainerRef",
53845
53874
  ref: c,
53846
- cite: q(A),
53847
- "onUpdate:cite": n[0] ||= (e) => O(A) ? A.value = e : null,
53875
+ cite: q(M),
53876
+ "onUpdate:cite": n[0] ||= (e) => O(M) ? M.value = e : null,
53848
53877
  "selected-shortcut": f.value,
53849
53878
  "onUpdate:selectedShortcut": n[1] ||= (e) => f.value = e,
53850
53879
  "render-mode": p.value,
53851
53880
  "onUpdate:renderMode": n[2] ||= (e) => p.value = e,
53852
- "chat-loading": we.value,
53881
+ "chat-loading": Ee.value,
53853
53882
  "common-tippy-options": e.messageToolsTippyOptions,
53854
- "message-status": q(J),
53855
- "message-tools-status": q(ae),
53856
- messages: q(oe),
53857
- "model-value": q(k),
53858
- "on-agent-action": q(ve),
53859
- "on-agent-feedback": q(ye),
53883
+ "message-status": q(oe),
53884
+ "message-tools-status": q(ce),
53885
+ messages: q(le),
53886
+ "model-value": q(j),
53887
+ "on-agent-action": q(be),
53888
+ "on-agent-feedback": q(xe),
53860
53889
  "get-side-render-component": r.getSideRenderComponent,
53861
53890
  "get-side-tab-render-component": r.getSideTabRenderComponent,
53862
- "on-custom-tab-change": De,
53863
- "on-send-message": q(L),
53864
- "on-stop-sending": q(z),
53865
- "on-upload": q(R),
53866
- "on-user-action": q(be),
53867
- "on-user-input-confirm": q(xe),
53868
- "on-user-shortcut-confirm": q(Se),
53869
- "opening-remark": q(fe),
53891
+ "on-custom-tab-change": ke,
53892
+ "on-send-message": q(z),
53893
+ "on-stop-sending": q(ee),
53894
+ "on-upload": q(B),
53895
+ "on-user-action": q(Se),
53896
+ "on-user-input-confirm": q(Ce),
53897
+ "on-user-shortcut-confirm": q(we),
53898
+ "opening-remark": q(me),
53870
53899
  placeholder: r.placeholder,
53871
53900
  placement: r.placement,
53872
- prompts: q(me),
53901
+ prompts: q(ge),
53873
53902
  "resize-props": r.resizeProps,
53874
- resources: q(pe),
53903
+ resources: q(he),
53875
53904
  "shortcut-id": f.value?.id,
53876
- shortcuts: q(_e),
53877
- "support-upload": q(he),
53878
- onCollapseChange: Ee,
53879
- onConfirmShare: q(Te),
53880
- onDeleteShortcut: q(te),
53881
- onSelectShortcut: q(ee),
53882
- onShortcutClose: q(te),
53883
- onShortcutSubmit: q(ne),
53884
- onStopStreaming: q(Ce),
53885
- "onUpdate:modelValue": q(j)
53905
+ shortcuts: q(ye),
53906
+ "support-upload": q(_e),
53907
+ onCollapseChange: Oe,
53908
+ onConfirmShare: q(De),
53909
+ onDeleteShortcut: q(U),
53910
+ onSelectShortcut: q(ne),
53911
+ onShortcutClose: q(U),
53912
+ onShortcutSubmit: q(re),
53913
+ onStopStreaming: q(Te),
53914
+ "onUpdate:modelValue": q(L)
53886
53915
  }, {
53887
53916
  message: Y(({ message: n, messageToolsStatus: r }) => [m(" 消费方提供了 #message slot 时,优先使用消费方的渲染 "), q(a).message ? W(t.$slots, "message", {
53888
53917
  key: 0,
@@ -53891,9 +53920,9 @@ var kq = /* @__PURE__ */ x({
53891
53920
  }) : (V(), h(o, { key: 1 }, [m(" 否则使用默认的 MessageRender "), y(q(kK), {
53892
53921
  message: n,
53893
53922
  "message-tools-status": r,
53894
- "on-action": (e) => q(be)(e, n),
53895
- "on-input-confirm": (e, t) => q(xe)(n, e, t),
53896
- "on-shortcut-confirm": (e) => q(Se)(n, e),
53923
+ "on-action": (e) => q(Se)(e, n),
53924
+ "on-input-confirm": (e, t) => q(Ce)(n, e, t),
53925
+ "on-shortcut-confirm": (e) => q(we)(n, e),
53897
53926
  "tippy-options": e.messageToolsTippyOptions
53898
53927
  }, _({ _: 2 }, [t.$slots.codeHeader ? {
53899
53928
  name: "codeHeader",
@@ -53913,7 +53942,7 @@ var kq = /* @__PURE__ */ x({
53913
53942
  });
53914
53943
  //#endregion
53915
53944
  //#region src/vue2-wrapper.ts
53916
- function Aq(e, t) {
53945
+ function jq(e, t) {
53917
53946
  let { name: n, props: r, emitNames: i, exposeKeys: a, slots: o = [], deepWatchProps: s = [], methods: c = {} } = t, l = Object.keys(r);
53918
53947
  return {
53919
53948
  name: n,
@@ -53943,10 +53972,10 @@ function Aq(e, t) {
53943
53972
  t !== void 0 && (a[e] = (e) => t(e));
53944
53973
  }
53945
53974
  let s = Object.keys(a).length > 0 ? a : void 0;
53946
- return T(wc, { prefix: Nq() }, { default: () => T(e, {
53975
+ return T(wc, { prefix: Pq() }, { default: () => T(e, {
53947
53976
  ...n.$attrs,
53948
53977
  ...r,
53949
- ...Mq(t, i),
53978
+ ...Nq(t, i),
53950
53979
  ref: (e) => {
53951
53980
  n.componentInstance = e;
53952
53981
  }
@@ -53974,28 +54003,28 @@ function Aq(e, t) {
53974
54003
  methods: c
53975
54004
  };
53976
54005
  }
53977
- function jq(e) {
54006
+ function Mq(e) {
53978
54007
  return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
53979
54008
  }
53980
- function Mq(e, t) {
54009
+ function Nq(e, t) {
53981
54010
  let n = {};
53982
- for (let r of t) n[jq(r)] = (...t) => {
54011
+ for (let r of t) n[Mq(r)] = (...t) => {
53983
54012
  e(r, ...t);
53984
54013
  };
53985
54014
  return n;
53986
54015
  }
53987
- function Nq() {
54016
+ function Pq() {
53988
54017
  return "ai-bk";
53989
54018
  }
53990
54019
  //#endregion
53991
54020
  //#region src/composables/use-chat-bootstrap.ts
53992
- var Pq = /* @__PURE__ */ function(e) {
54021
+ var Fq = /* @__PURE__ */ function(e) {
53993
54022
  return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
53994
54023
  }({});
53995
- function Fq(e) {
54024
+ function Iq(e) {
53996
54025
  let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i } = e, a = ie(t);
53997
54026
  if (!a) throw Error("[useChatBootstrap] url is required");
53998
- let o = H(Pq.IDLE), s = H(null), c = H(!1), l = /* @__PURE__ */ new Map(), u = new ST({
54027
+ let o = H(Fq.IDLE), s = H(null), c = H(!1), l = /* @__PURE__ */ new Map(), u = new ST({
53999
54028
  onStart: () => {
54000
54029
  i?.onStart?.();
54001
54030
  },
@@ -54013,14 +54042,14 @@ function Fq(e) {
54013
54042
  protocol: u
54014
54043
  });
54015
54044
  u.injectMessageModule(f.message);
54016
- let p = d(() => o.value === Pq.LOADING_AGENT), m = d(() => o.value === Pq.READY), h = d(() => f.agent.info.value ?? null), g = d(() => h.value?.agentName ?? ""), _ = d(() => f.session.current.value ?? null), v = d(() => f.session.list.value ?? []), y = null, b = 0, x = async (e) => {
54045
+ let p = d(() => o.value === Fq.LOADING_AGENT), m = d(() => o.value === Fq.READY), h = d(() => f.agent.info.value ?? null), g = d(() => h.value?.agentName ?? ""), _ = d(() => f.session.current.value ?? null), v = d(() => f.session.list.value ?? []), y = null, b = 0, x = async (e) => {
54017
54046
  s.value = null;
54018
54047
  try {
54019
- if (o.value = Pq.LOADING_AGENT, await Promise.all([f.agent.getAgentInfo(), f.session.getSessions()]), e !== b) return;
54020
- o.value = Pq.READY, c.value = !0;
54048
+ if (o.value = Fq.LOADING_AGENT, await Promise.all([f.agent.getAgentInfo(), f.session.getSessions()]), e !== b) return;
54049
+ o.value = Fq.READY, c.value = !0;
54021
54050
  } catch (t) {
54022
54051
  if (e !== b) return;
54023
- throw console.error("[useChatBootstrap] Initialization failed:", t), s.value = t, o.value = Pq.ERROR, t;
54052
+ throw console.error("[useChatBootstrap] Initialization failed:", t), s.value = t, o.value = Fq.ERROR, t;
54024
54053
  }
54025
54054
  }, S = async () => {
54026
54055
  if (c.value) return;
@@ -54030,7 +54059,7 @@ function Fq(e) {
54030
54059
  e === b && (y = null);
54031
54060
  }), y;
54032
54061
  }, C = () => {
54033
- b += 1, o.value = Pq.IDLE, s.value = null, c.value = !1, y = null;
54062
+ b += 1, o.value = Fq.IDLE, s.value = null, c.value = !1, y = null;
54034
54063
  }, w = async () => {
54035
54064
  C(), await S();
54036
54065
  }, T = async (e) => {
@@ -54064,7 +54093,7 @@ function Fq(e) {
54064
54093
  }
54065
54094
  //#endregion
54066
54095
  //#region src/composables/use-event-bridge.ts
54067
- function Iq(e) {
54096
+ function Lq(e) {
54068
54097
  return {
54069
54098
  sendMessage: (t) => e("send-message", { content: t }),
54070
54099
  receiveStart: () => e("receive-start", {}),
@@ -54082,7 +54111,7 @@ function Iq(e) {
54082
54111
  shareMessages: (t) => e("share-messages", { messageIds: t })
54083
54112
  };
54084
54113
  }
54085
- function Lq(e) {
54114
+ function Rq(e) {
54086
54115
  let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
54087
54116
  for (let [e, a] of Object.entries(xq)) {
54088
54117
  if (a === null) continue;
@@ -54109,17 +54138,17 @@ function Lq(e) {
54109
54138
  }
54110
54139
  //#endregion
54111
54140
  //#region src/composables/use-ai-blueking-init.ts
54112
- function Rq(e) {
54141
+ function zq(e) {
54113
54142
  let { props: t, emit: n } = e, r = H(), i = H(), a = d(() => ZT(t.url ?? "")), o = bq({
54114
54143
  initialPanelVisible: !1,
54115
54144
  initialNimbusMinimized: t.defaultMinimize,
54116
54145
  enablePopup: t.enablePopup,
54117
54146
  enableNimbus: !t.hideNimbus,
54118
54147
  enableDraggable: t.draggable
54119
- }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = Lq({
54148
+ }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = Rq({
54120
54149
  componentManager: o,
54121
54150
  emit: n
54122
- }), u = Iq(l), f = (e, t) => {
54151
+ }), u = Lq(l), f = (e, t) => {
54123
54152
  let n = t instanceof Error ? t.message : String(t);
54124
54153
  console.error(`[AIBlueking] ${e} error:`, t), o.emitInternal("sdk-error", {
54125
54154
  apiName: e,
@@ -54129,7 +54158,7 @@ function Rq(e) {
54129
54158
  });
54130
54159
  }, p = (e) => {
54131
54160
  f("chat", e);
54132
- }, { chatHelper: m, isReady: h, error: g, agentInfo: _, agentName: v, currentSession: y, initialize: b } = Fq({
54161
+ }, { chatHelper: m, isReady: h, error: g, agentInfo: _, agentName: v, currentSession: y, initialize: b } = Iq({
54133
54162
  url: a,
54134
54163
  requestOptions: () => ie(t.requestOptions),
54135
54164
  autoInit: !0,
@@ -54213,7 +54242,7 @@ function Rq(e) {
54213
54242
  }
54214
54243
  //#endregion
54215
54244
  //#region src/composables/use-ai-selection.ts
54216
- function zq(e) {
54245
+ function Bq(e) {
54217
54246
  let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = H(!1), s = H("");
54218
54247
  return {
54219
54248
  aiSelectionVisible: o,
@@ -54235,7 +54264,7 @@ function zq(e) {
54235
54264
  }
54236
54265
  //#endregion
54237
54266
  //#region src/composables/use-nimbus.ts
54238
- function Bq(e, t = !1) {
54267
+ function Vq(e, t = !1) {
54239
54268
  let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = H(r), a = H(n), o = H(0), s = H(t), c = H(!1), l = H(!1), u = 0, d = (e) => {
54240
54269
  e ? i.value = window.innerWidth - 12 : i.value = r;
54241
54270
  }, f = (e, t) => {
@@ -54288,8 +54317,8 @@ function Bq(e, t = !1) {
54288
54317
  }
54289
54318
  //#endregion
54290
54319
  //#region src/composables/use-panel-container.ts
54291
- var Vq = 420;
54292
- function Hq(e) {
54320
+ var Hq = 420;
54321
+ function Uq(e) {
54293
54322
  let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = async (e) => {
54294
54323
  t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
54295
54324
  }, c = async (e) => {
@@ -54330,7 +54359,7 @@ function Hq(e) {
54330
54359
  t.setCompressed(e);
54331
54360
  },
54332
54361
  handleExecutionPanelChange: (e) => {
54333
- e ? t.collapseSidePanel() : t.expandForSidePanel(Vq);
54362
+ e ? t.collapseSidePanel() : t.expandForSidePanel(Hq);
54334
54363
  },
54335
54364
  sendMessage: async (e) => {
54336
54365
  n.value && await n.value.sendMessage(e);
@@ -54377,7 +54406,7 @@ function Hq(e) {
54377
54406
  }
54378
54407
  //#endregion
54379
54408
  //#region src/composables/use-session-handlers.ts
54380
- function Uq(e) {
54409
+ function Wq(e) {
54381
54410
  let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, handleError: a, currentSession: o } = e, s = H(""), c = H(!0), l = H(!1), u = H(!1), d = () => t.message.list.value.some((e) => {
54382
54411
  if (!("property" in e)) return !0;
54383
54412
  let { property: t } = e;
@@ -54467,7 +54496,7 @@ function Uq(e) {
54467
54496
  }
54468
54497
  //#endregion
54469
54498
  //#region src/composables/use-share-handlers.ts
54470
- function Wq(e) {
54499
+ function Gq(e) {
54471
54500
  let { shareBusinessManager: t, chatBotRef: n, forwarders: r, handleError: i } = e, a = H(!1);
54472
54501
  return {
54473
54502
  isShareLoading: a,
@@ -54495,7 +54524,7 @@ function Wq(e) {
54495
54524
  }
54496
54525
  //#endregion
54497
54526
  //#region src/composables/use-tippy.ts
54498
- function Gq(e = {}) {
54527
+ function Kq(e = {}) {
54499
54528
  let t = H([]), n = (n, r, i = {}) => {
54500
54529
  try {
54501
54530
  let a = typeof n == "string" ? document.querySelector(n) : n;
@@ -54548,7 +54577,7 @@ function Gq(e = {}) {
54548
54577
  }
54549
54578
  //#endregion
54550
54579
  //#region src/config/prop-defaults.ts
54551
- var Kq = {
54580
+ var qq = {
54552
54581
  url: "",
54553
54582
  title: "",
54554
54583
  extCls: "",
@@ -54593,31 +54622,31 @@ var Kq = {
54593
54622
  };
54594
54623
  //#endregion
54595
54624
  //#region ../../node_modules/.pnpm/vue-draggable-resizable@3.0.0_vue@3.5.32_typescript@5.9.3_/node_modules/vue-draggable-resizable/dist/vue-draggable-resizable.js
54596
- function qq(e) {
54625
+ function Jq(e) {
54597
54626
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
54598
54627
  }
54599
- function Jq(e, t, n, r = 1) {
54628
+ function Yq(e, t, n, r = 1) {
54600
54629
  let [i, a] = typeof r == "number" ? [r, r] : r;
54601
54630
  return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
54602
54631
  }
54603
- function Yq(e, t, n) {
54604
- return e - t - n;
54605
- }
54606
54632
  function Xq(e, t, n) {
54607
54633
  return e - t - n;
54608
54634
  }
54609
54635
  function Zq(e, t, n) {
54610
- return t !== null && e < t ? t : n !== null && n < e ? n : e;
54636
+ return e - t - n;
54611
54637
  }
54612
54638
  function Qq(e, t, n) {
54639
+ return t !== null && e < t ? t : n !== null && n < e ? n : e;
54640
+ }
54641
+ function $q(e, t, n) {
54613
54642
  let r = e, i = [
54614
54643
  "matches",
54615
54644
  "webkitMatchesSelector",
54616
54645
  "mozMatchesSelector",
54617
54646
  "msMatchesSelector",
54618
54647
  "oMatchesSelector"
54619
- ].find((e) => qq(r[e]));
54620
- if (!qq(r[i])) return !1;
54648
+ ].find((e) => Jq(r[e]));
54649
+ if (!Jq(r[i])) return !1;
54621
54650
  do {
54622
54651
  if (r[i](t)) return !0;
54623
54652
  if (r === n) return !1;
@@ -54625,21 +54654,21 @@ function Qq(e, t, n) {
54625
54654
  } while (r);
54626
54655
  return !1;
54627
54656
  }
54628
- function $q(e) {
54657
+ function eJ(e) {
54629
54658
  let t = window.getComputedStyle(e);
54630
54659
  return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
54631
54660
  }
54632
- function eJ(e, t, n) {
54661
+ function tJ(e, t, n) {
54633
54662
  e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
54634
54663
  }
54635
- function tJ(e, t, n) {
54664
+ function nJ(e, t, n) {
54636
54665
  e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
54637
54666
  }
54638
- var nJ = (e, t) => {
54667
+ var rJ = (e, t) => {
54639
54668
  let n = e.__vccOpts || e;
54640
54669
  for (let [e, r] of t) n[e] = r;
54641
54670
  return n;
54642
- }, rJ = {
54671
+ }, iJ = {
54643
54672
  mouse: {
54644
54673
  start: "mousedown",
54645
54674
  move: "mousemove",
@@ -54650,17 +54679,17 @@ var nJ = (e, t) => {
54650
54679
  move: "touchmove",
54651
54680
  stop: "touchend"
54652
54681
  }
54653
- }, iJ = {
54682
+ }, aJ = {
54654
54683
  userSelect: "none",
54655
54684
  MozUserSelect: "none",
54656
54685
  WebkitUserSelect: "none",
54657
54686
  MsUserSelect: "none"
54658
- }, aJ = {
54687
+ }, oJ = {
54659
54688
  userSelect: "auto",
54660
54689
  MozUserSelect: "auto",
54661
54690
  WebkitUserSelect: "auto",
54662
54691
  MsUserSelect: "auto"
54663
- }, oJ = rJ.mouse, sJ = {
54692
+ }, sJ = iJ.mouse, cJ = {
54664
54693
  replace: !0,
54665
54694
  name: "vue-draggable-resizable",
54666
54695
  props: {
@@ -54865,11 +54894,11 @@ var nJ = (e, t) => {
54865
54894
  this.enableNativeDrag || (this.$el.ondragstart = () => !1);
54866
54895
  let [e, t] = this.getParentSize();
54867
54896
  this.parentWidth = e, this.parentHeight = t;
54868
- let [n, r] = $q(this.$el);
54869
- this.aspectFactor = (this.w === "auto" ? n : this.w) / (this.h === "auto" ? r : this.h), this.width = this.w === "auto" ? n : this.w, this.height = this.h === "auto" ? r : this.h, this.right = this.parentWidth - this.width - this.left, this.bottom = this.parentHeight - this.height - this.top, this.active && this.$emit("activated"), eJ(document.documentElement, "mousedown", this.deselect), eJ(document.documentElement, "touchend touchcancel", this.deselect), eJ(window, "resize", this.checkParentSize);
54897
+ let [n, r] = eJ(this.$el);
54898
+ this.aspectFactor = (this.w === "auto" ? n : this.w) / (this.h === "auto" ? r : this.h), this.width = this.w === "auto" ? n : this.w, this.height = this.h === "auto" ? r : this.h, this.right = this.parentWidth - this.width - this.left, this.bottom = this.parentHeight - this.height - this.top, this.active && this.$emit("activated"), tJ(document.documentElement, "mousedown", this.deselect), tJ(document.documentElement, "touchend touchcancel", this.deselect), tJ(window, "resize", this.checkParentSize);
54870
54899
  },
54871
54900
  beforeUnmount: function() {
54872
- tJ(document.documentElement, "mousedown", this.deselect), tJ(document.documentElement, "touchstart", this.handleUp), tJ(document.documentElement, "mousemove", this.move), tJ(document.documentElement, "touchmove", this.move), tJ(document.documentElement, "mouseup", this.handleUp), tJ(document.documentElement, "touchend touchcancel", this.deselect), tJ(window, "resize", this.checkParentSize);
54901
+ nJ(document.documentElement, "mousedown", this.deselect), nJ(document.documentElement, "touchstart", this.handleUp), nJ(document.documentElement, "mousemove", this.move), nJ(document.documentElement, "touchmove", this.move), nJ(document.documentElement, "mouseup", this.handleUp), nJ(document.documentElement, "touchend touchcancel", this.deselect), nJ(window, "resize", this.checkParentSize);
54873
54902
  },
54874
54903
  methods: {
54875
54904
  resetBoundsAndMouseState() {
@@ -54905,21 +54934,21 @@ var nJ = (e, t) => {
54905
54934
  return [null, null];
54906
54935
  },
54907
54936
  elementTouchDown(e) {
54908
- oJ = rJ.touch, this.elementDown(e);
54937
+ sJ = iJ.touch, this.elementDown(e);
54909
54938
  },
54910
54939
  elementMouseDown(e) {
54911
- oJ = rJ.mouse, this.elementDown(e);
54940
+ sJ = iJ.mouse, this.elementDown(e);
54912
54941
  },
54913
54942
  elementDown(e) {
54914
54943
  if (e instanceof MouseEvent && e.button !== 0) return;
54915
54944
  let t = e.target || e.srcElement;
54916
54945
  if (this.$el.contains(t)) {
54917
54946
  if (this.onDragStart(e) === !1) return;
54918
- if (this.dragHandle && !Qq(t, this.dragHandle, this.$el) || this.dragCancel && Qq(t, this.dragCancel, this.$el)) {
54947
+ if (this.dragHandle && !$q(t, this.dragHandle, this.$el) || this.dragCancel && $q(t, this.dragCancel, this.$el)) {
54919
54948
  this.dragging = !1;
54920
54949
  return;
54921
54950
  }
54922
- this.enabled || (this.enabled = !0, this.$emit("activated"), this.$emit("update:active", !0)), this.draggable && (this.dragEnable = !0), this.mouseClickPosition.mouseX = e.touches ? e.touches[0].pageX : e.pageX, this.mouseClickPosition.mouseY = e.touches ? e.touches[0].pageY : e.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.parent && (this.bounds = this.calcDragLimits()), eJ(document.documentElement, oJ.move, this.move), eJ(document.documentElement, oJ.stop, this.handleUp);
54951
+ this.enabled || (this.enabled = !0, this.$emit("activated"), this.$emit("update:active", !0)), this.draggable && (this.dragEnable = !0), this.mouseClickPosition.mouseX = e.touches ? e.touches[0].pageX : e.pageX, this.mouseClickPosition.mouseY = e.touches ? e.touches[0].pageY : e.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.parent && (this.bounds = this.calcDragLimits()), tJ(document.documentElement, sJ.move, this.move), tJ(document.documentElement, sJ.stop, this.handleUp);
54923
54952
  }
54924
54953
  },
54925
54954
  calcDragLimits() {
@@ -54936,13 +54965,13 @@ var nJ = (e, t) => {
54936
54965
  },
54937
54966
  deselect(e) {
54938
54967
  let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
54939
- !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), tJ(document.documentElement, oJ.move, this.handleResize)), this.resetBoundsAndMouseState();
54968
+ !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), nJ(document.documentElement, sJ.move, this.handleResize)), this.resetBoundsAndMouseState();
54940
54969
  },
54941
54970
  handleTouchDown(e, t) {
54942
- oJ = rJ.touch, this.handleDown(e, t);
54971
+ sJ = iJ.touch, this.handleDown(e, t);
54943
54972
  },
54944
54973
  handleDown(e, t) {
54945
- t instanceof MouseEvent && t.which !== 1 || this.onResizeStart(e, t) !== !1 && (t.stopPropagation && t.stopPropagation(), this.lockAspectRatio && !e.includes("m") ? this.handle = "m" + e.substring(1) : this.handle = e, this.resizeEnable = !0, this.mouseClickPosition.mouseX = t.touches ? t.touches[0].pageX : t.pageX, this.mouseClickPosition.mouseY = t.touches ? t.touches[0].pageY : t.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.bounds = this.calcResizeLimits(), eJ(document.documentElement, oJ.move, this.handleResize), eJ(document.documentElement, oJ.stop, this.handleUp));
54974
+ t instanceof MouseEvent && t.which !== 1 || this.onResizeStart(e, t) !== !1 && (t.stopPropagation && t.stopPropagation(), this.lockAspectRatio && !e.includes("m") ? this.handle = "m" + e.substring(1) : this.handle = e, this.resizeEnable = !0, this.mouseClickPosition.mouseX = t.touches ? t.touches[0].pageX : t.pageX, this.mouseClickPosition.mouseY = t.touches ? t.touches[0].pageY : t.pageY, this.mouseClickPosition.left = this.left, this.mouseClickPosition.right = this.right, this.mouseClickPosition.top = this.top, this.mouseClickPosition.bottom = this.bottom, this.bounds = this.calcResizeLimits(), tJ(document.documentElement, sJ.move, this.handleResize), tJ(document.documentElement, sJ.stop, this.handleUp));
54946
54975
  },
54947
54976
  calcResizeLimits() {
54948
54977
  let e = this.minW, t = this.minH, n = this.maxW, r = this.maxH, i = this.aspectFactor, [a, o] = this.grid, s = this.width, c = this.height, l = this.left, u = this.top, d = this.right, f = this.bottom;
@@ -54963,41 +54992,41 @@ var nJ = (e, t) => {
54963
54992
  this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
54964
54993
  },
54965
54994
  handleDrag(e) {
54966
- let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = Jq(n, t && t !== "y" ? i.mouseX - (e.touches ? e.touches[0].pageX : e.pageX) : 0, t && t !== "x" ? i.mouseY - (e.touches ? e.touches[0].pageY : e.pageY) : 0, this.scale), s = Zq(i.left - a, r.minLeft, r.maxLeft), c = Zq(i.top - o, r.minTop, r.maxTop);
54995
+ let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = Yq(n, t && t !== "y" ? i.mouseX - (e.touches ? e.touches[0].pageX : e.pageX) : 0, t && t !== "x" ? i.mouseY - (e.touches ? e.touches[0].pageY : e.pageY) : 0, this.scale), s = Qq(i.left - a, r.minLeft, r.maxLeft), c = Qq(i.top - o, r.minTop, r.maxTop);
54967
54996
  if (this.onDrag(s, c) === !1) return;
54968
- let l = Zq(i.right + a, r.minRight, r.maxRight), u = Zq(i.bottom + o, r.minBottom, r.maxBottom);
54997
+ let l = Qq(i.right + a, r.minRight, r.maxRight), u = Qq(i.bottom + o, r.minBottom, r.maxBottom);
54969
54998
  this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
54970
54999
  },
54971
55000
  moveHorizontally(e) {
54972
- let [t, n] = Jq(this.grid, e, this.top, 1), r = Zq(t, this.bounds.minLeft, this.bounds.maxLeft);
55001
+ let [t, n] = Yq(this.grid, e, this.top, 1), r = Qq(t, this.bounds.minLeft, this.bounds.maxLeft);
54973
55002
  this.left = r, this.right = this.parentWidth - this.width - r;
54974
55003
  },
54975
55004
  moveVertically(e) {
54976
- let [t, n] = Jq(this.grid, this.left, e, 1), r = Zq(n, this.bounds.minTop, this.bounds.maxTop);
55005
+ let [t, n] = Yq(this.grid, this.left, e, 1), r = Qq(n, this.bounds.minTop, this.bounds.maxTop);
54977
55006
  this.top = r, this.bottom = this.parentHeight - this.height - r;
54978
55007
  },
54979
55008
  handleResize(e) {
54980
55009
  let t = this.left, n = this.top, r = this.right, i = this.bottom, a = this.mouseClickPosition, o = this.aspectFactor, s = a.mouseX - (e.touches ? e.touches[0].pageX : e.pageX), c = a.mouseY - (e.touches ? e.touches[0].pageY : e.pageY);
54981
55010
  !this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
54982
- let [l, u] = Jq(this.grid, s, c, this.scale);
54983
- this.handle.includes("b") ? (i = Zq(a.bottom + u, this.bounds.minBottom, this.bounds.maxBottom), this.lockAspectRatio && this.resizingOnY && (r = this.right - (this.bottom - i) * o)) : this.handle.includes("t") && (n = Zq(a.top - u, this.bounds.minTop, this.bounds.maxTop), this.lockAspectRatio && this.resizingOnY && (t = this.left - (this.top - n) * o)), this.handle.includes("r") ? (r = Zq(a.right + l, this.bounds.minRight, this.bounds.maxRight), this.lockAspectRatio && this.resizingOnX && (i = this.bottom - (this.right - r) / o)) : this.handle.includes("l") && (t = Zq(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
54984
- let d = Yq(this.parentWidth, t, r), f = Xq(this.parentHeight, n, i);
55011
+ let [l, u] = Yq(this.grid, s, c, this.scale);
55012
+ this.handle.includes("b") ? (i = Qq(a.bottom + u, this.bounds.minBottom, this.bounds.maxBottom), this.lockAspectRatio && this.resizingOnY && (r = this.right - (this.bottom - i) * o)) : this.handle.includes("t") && (n = Qq(a.top - u, this.bounds.minTop, this.bounds.maxTop), this.lockAspectRatio && this.resizingOnY && (t = this.left - (this.top - n) * o)), this.handle.includes("r") ? (r = Qq(a.right + l, this.bounds.minRight, this.bounds.maxRight), this.lockAspectRatio && this.resizingOnX && (i = this.bottom - (this.right - r) / o)) : this.handle.includes("l") && (t = Qq(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
55013
+ let d = Xq(this.parentWidth, t, r), f = Zq(this.parentHeight, n, i);
54985
55014
  this.onResize(this.handle, t, n, d, f) !== !1 && (this.left = t, this.top = n, this.right = r, this.bottom = i, this.width = d, this.height = f, this.$emit("resizing", this.left, this.top, this.width, this.height), this.resizing = !0);
54986
55015
  },
54987
55016
  changeWidth(e) {
54988
- let [t, n] = Jq(this.grid, e, 0, 1), r = Zq(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
55017
+ let [t, n] = Yq(this.grid, e, 0, 1), r = Qq(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
54989
55018
  this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
54990
- let a = Yq(this.parentWidth, this.left, r), o = Xq(this.parentHeight, this.top, i);
55019
+ let a = Xq(this.parentWidth, this.left, r), o = Zq(this.parentHeight, this.top, i);
54991
55020
  this.right = r, this.bottom = i, this.width = a, this.height = o;
54992
55021
  },
54993
55022
  changeHeight(e) {
54994
- let [t, n] = Jq(this.grid, 0, e, 1), r = Zq(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
55023
+ let [t, n] = Yq(this.grid, 0, e, 1), r = Qq(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
54995
55024
  this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
54996
- let a = Yq(this.parentWidth, this.left, i), o = Xq(this.parentHeight, this.top, r);
55025
+ let a = Xq(this.parentWidth, this.left, i), o = Zq(this.parentHeight, this.top, r);
54997
55026
  this.right = i, this.bottom = r, this.width = a, this.height = o;
54998
55027
  },
54999
55028
  handleUp(e) {
55000
- this.handle = null, this.resetBoundsAndMouseState(), this.dragEnable = !1, this.resizeEnable = !1, this.resizing && (this.resizing = !1, this.$emit("resizeStop", this.left, this.top, this.width, this.height)), this.dragging && (this.dragging = !1, this.$emit("dragStop", this.left, this.top)), tJ(document.documentElement, oJ.move, this.handleResize);
55029
+ this.handle = null, this.resetBoundsAndMouseState(), this.dragEnable = !1, this.resizeEnable = !1, this.resizing && (this.resizing = !1, this.$emit("resizeStop", this.left, this.top, this.width, this.height)), this.dragging && (this.dragging = !1, this.$emit("dragStop", this.left, this.top)), nJ(document.documentElement, sJ.move, this.handleResize);
55001
55030
  }
55002
55031
  },
55003
55032
  computed: {
@@ -55007,7 +55036,7 @@ var nJ = (e, t) => {
55007
55036
  width: this.computedWidth,
55008
55037
  height: this.computedHeight,
55009
55038
  zIndex: this.zIndex,
55010
- ...this.dragging && this.disableUserSelect ? iJ : aJ
55039
+ ...this.dragging && this.disableUserSelect ? aJ : oJ
55011
55040
  };
55012
55041
  },
55013
55042
  actualHandles() {
@@ -55069,8 +55098,8 @@ var nJ = (e, t) => {
55069
55098
  this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
55070
55099
  }
55071
55100
  }
55072
- }, cJ = ["onMousedown", "onTouchstart"];
55073
- function lJ(e, t, n, r, i, a) {
55101
+ }, lJ = ["onMousedown", "onTouchstart"];
55102
+ function uJ(e, t, n, r, i, a) {
55074
55103
  return V(), h("div", {
55075
55104
  style: I(a.style),
55076
55105
  class: P([{
@@ -55088,17 +55117,17 @@ function lJ(e, t, n, r, i, a) {
55088
55117
  style: I({ display: e.enabled ? "block" : "none" }),
55089
55118
  onMousedown: me((e) => a.handleDown(t, e), ["stop", "prevent"]),
55090
55119
  onTouchstart: me((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
55091
- }, [W(e.$slots, t)], 46, cJ))), 128)), W(e.$slots, "default")], 38);
55120
+ }, [W(e.$slots, t)], 46, lJ))), 128)), W(e.$slots, "default")], 38);
55092
55121
  }
55093
- var uJ = /* @__PURE__ */ nJ(sJ, [["render", lJ]]);
55094
- function dJ(e) {
55095
- dJ.installed || (dJ.installed = !0, e.component("VueDraggableResizable", uJ));
55122
+ var dJ = /* @__PURE__ */ rJ(cJ, [["render", uJ]]);
55123
+ function fJ(e) {
55124
+ fJ.installed || (fJ.installed = !0, e.component("VueDraggableResizable", dJ));
55096
55125
  }
55097
- var fJ = { install: dJ }, pJ = null;
55098
- typeof window < "u" ? pJ = window.Vue : typeof global < "u" && (pJ = global.Vue), pJ && pJ.use(fJ);
55126
+ var pJ = { install: fJ }, mJ = null;
55127
+ typeof window < "u" ? mJ = window.Vue : typeof global < "u" && (mJ = global.Vue), mJ && mJ.use(pJ);
55099
55128
  //#endregion
55100
55129
  //#region src/containers/use-draggable.ts
55101
- function mJ(e = {}, t) {
55130
+ function hJ(e = {}, t) {
55102
55131
  let n = e.initWidth || 400, r = e.minWidth || 400, i = e.minHeight || 400, a = e.maxWidthPercent || 40, o = e.compressedHeight || 800, s = e.compressedPadding === void 0 ? 0 : e.compressedPadding, c = H(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = H(e.defaultTop === void 0 ? 0 : e.defaultTop), u = H(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = H(n), f = H(l.value), p = H(c.value), m = H(d.value), h = H(u.value), g = H(Math.max(window.innerWidth * (a / 100), m.value)), _ = H(!1), v = H(0), y = null, b = null, x = H(!1), S = (e) => {
55103
55132
  let t = window.innerWidth, n = { ...e };
55104
55133
  return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
@@ -55191,7 +55220,7 @@ function mJ(e = {}, t) {
55191
55220
  }
55192
55221
  //#endregion
55193
55222
  //#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
55194
- var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @__PURE__ */ x({
55223
+ var gJ = { class: "draggable-container-content" }, _J = /* @__PURE__ */ be(/* @__PURE__ */ x({
55195
55224
  __name: "draggable-container",
55196
55225
  props: {
55197
55226
  className: { default: "" },
@@ -55228,7 +55257,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55228
55257
  "compression-change"
55229
55258
  ],
55230
55259
  setup(e, { expose: t, emit: n }) {
55231
- let r = e, i = n, a = H(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: f, height: m, isCompressed: h, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D } = mJ({
55260
+ let r = e, i = n, a = H(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: f, height: m, isCompressed: h, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D } = hJ({
55232
55261
  initWidth: r.defaultWidth,
55233
55262
  minWidth: r.minWidth,
55234
55263
  minHeight: r.minHeight,
@@ -55277,7 +55306,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55277
55306
  positionAndSize: k,
55278
55307
  isCompressed: h,
55279
55308
  isSidePanelExpanded: _
55280
- }), (e, t) => pe((V(), p(q(uJ), {
55309
+ }), (e, t) => pe((V(), p(q(dJ), {
55281
55310
  ref: "draggableRef",
55282
55311
  active: r.visible,
55283
55312
  class: P(["draggable-container-wrapper", r.className]),
@@ -55300,7 +55329,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55300
55329
  onResizeStop: L,
55301
55330
  onResizing: N
55302
55331
  }, {
55303
- default: Y(() => [g("div", hJ, [W(e.$slots, "default", {}, void 0, !0)])]),
55332
+ default: Y(() => [g("div", gJ, [W(e.$slots, "default", {}, void 0, !0)])]),
55304
55333
  _: 3
55305
55334
  }, 8, [
55306
55335
  "active",
@@ -55318,11 +55347,11 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55318
55347
  "y"
55319
55348
  ])), [[le, r.visible]]);
55320
55349
  }
55321
- }), [["__scopeId", "data-v-1118456b"]]), _J = { class: "nimbus-bkai-wrapper" }, vJ = [
55350
+ }), [["__scopeId", "data-v-1118456b"]]), vJ = { class: "nimbus-bkai-wrapper" }, yJ = [
55322
55351
  "width",
55323
55352
  "height",
55324
55353
  "src"
55325
- ], yJ = /* @__PURE__ */ be(/* @__PURE__ */ x({
55354
+ ], bJ = /* @__PURE__ */ be(/* @__PURE__ */ x({
55326
55355
  name: "NimbusButton",
55327
55356
  __name: "nimbus",
55328
55357
  props: {
@@ -55374,11 +55403,11 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55374
55403
  right: -6
55375
55404
  }
55376
55405
  }
55377
- }, a = d(() => i[n.size]), o = H(null), s = H(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = Bq(r, n.isMinimize);
55406
+ }, a = d(() => i[n.size]), o = H(null), s = H(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = Vq(r, n.isMinimize);
55378
55407
  ue(u, (e) => {
55379
55408
  r("update:isMinimize", e);
55380
55409
  });
55381
- let x = d(() => u.value ? oE("恢复默认大小") : oE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = Gq({
55410
+ let x = d(() => u.value ? oE("恢复默认大小") : oE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = Kq({
55382
55411
  theme: "ai-blueking",
55383
55412
  delay: [0, 0]
55384
55413
  }), w = () => {
@@ -55398,7 +55427,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55398
55427
  }), window.addEventListener("resize", w);
55399
55428
  }), L(() => {
55400
55429
  window.removeEventListener("resize", w);
55401
- }), (t, n) => (V(), p(q(uJ), {
55430
+ }), (t, n) => (V(), p(q(dJ), {
55402
55431
  active: !e.isPanelShow,
55403
55432
  axis: "y",
55404
55433
  draggable: !0,
@@ -55420,12 +55449,12 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55420
55449
  onMouseenter: n[3] ||= (...e) => q(_) && q(_)(...e),
55421
55450
  onMouseleave: n[4] ||= (...e) => q(v) && q(v)(...e),
55422
55451
  onMouseup: n[5] ||= (...e) => q(b) && q(b)(...e)
55423
- }, [g("div", _J, [g("img", {
55452
+ }, [g("div", vJ, [g("img", {
55424
55453
  width: a.value.img,
55425
55454
  height: a.value.img,
55426
55455
  src: q(aq),
55427
55456
  alt: "nimbus"
55428
- }, null, 8, vJ)]), g("i", {
55457
+ }, null, 8, yJ)]), g("i", {
55429
55458
  ref_key: "minimizeButtonRef",
55430
55459
  ref: s,
55431
55460
  class: P(["nimbus-mini bkai-icon", q(u) ? "bkai-yinyong" : "bkai-minus-line"]),
@@ -55441,7 +55470,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55441
55470
  "onDragging"
55442
55471
  ]));
55443
55472
  }
55444
- }), [["__scopeId", "data-v-26b6f3ea"]]), bJ = /* @__PURE__ */ be(/* @__PURE__ */ x({
55473
+ }), [["__scopeId", "data-v-26b6f3ea"]]), xJ = /* @__PURE__ */ be(/* @__PURE__ */ x({
55445
55474
  __name: "ai-blueking",
55446
55475
  props: /* @__PURE__ */ A({
55447
55476
  autoSwitchToInitialSession: { type: Boolean },
@@ -55487,7 +55516,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55487
55516
  getSideRenderComponent: { type: Function },
55488
55517
  getSideTabRenderComponent: { type: Function },
55489
55518
  onCustomTabChange: { type: Function }
55490
- }, Kq),
55519
+ }, qq),
55491
55520
  emits: [
55492
55521
  "show",
55493
55522
  "close",
@@ -55514,29 +55543,29 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55514
55543
  "share"
55515
55544
  ],
55516
55545
  setup(e, { expose: t, emit: n }) {
55517
- let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: o, shareBusinessManager: c, shortcutManager: l, forwarders: u, forwardToManager: d, chatBotRef: f, draggableContainerRef: h, panelVisible: v, nimbusMinimized: b, normalizedUrl: x, agentName: S, currentSession: w, isCompressed: T, isWelcomeState: E, messageToolsTippyOptions: D, agentResources: k, agentPrompts: A, handleError: j, ensureSessionReady: M } = Rq({
55546
+ let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: o, shareBusinessManager: c, shortcutManager: l, forwarders: u, forwardToManager: d, chatBotRef: f, draggableContainerRef: h, panelVisible: v, nimbusMinimized: b, normalizedUrl: x, agentName: S, currentSession: w, isCompressed: T, isWelcomeState: E, messageToolsTippyOptions: D, agentResources: k, agentPrompts: A, handleError: j, ensureSessionReady: M } = zq({
55518
55547
  props: r,
55519
55548
  emit: n
55520
- }), { show: N, hide: L, handleShow: R, handleClose: z, handleNimbusClick: B, handleDragging: ee, handleResizing: te, handleDragStop: H, handleResizeStop: ne, handleToggleCompression: U, handleCompressionChange: re, handleExecutionPanelChange: G, sendMessage: K, handleReceiveStart: ie, handleReceiveText: J, handleReceiveEnd: ae, handleStop: oe, stopGeneration: se, setCiteText: ce, focusInput: le, selectShortcut: ue, sendShortcut: de, getChatHelper: fe, updatePosition: pe, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } = Hq({
55549
+ }), { show: N, hide: L, handleShow: R, handleClose: z, handleNimbusClick: B, handleDragging: ee, handleResizing: te, handleDragStop: H, handleResizeStop: ne, handleToggleCompression: U, handleCompressionChange: re, handleExecutionPanelChange: G, sendMessage: K, handleReceiveStart: ie, handleReceiveText: J, handleReceiveEnd: ae, handleStop: oe, stopGeneration: se, setCiteText: ce, focusInput: le, selectShortcut: ue, sendShortcut: de, getChatHelper: fe, updatePosition: pe, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } = Uq({
55521
55550
  componentManager: a,
55522
55551
  chatBotRef: f,
55523
55552
  forwarders: u,
55524
55553
  forwardToManager: d,
55525
55554
  beforeNimbusClick: r.beforeNimbusClick,
55526
55555
  ensureSessionReady: M
55527
- }), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: be, handleNewChat: xe, handleNewChatCreated: Se, handleHistoryClick: Ce, handleHistorySessionSwitch: we, handleHistorySessionDelete: Te, handleHistorySessionRename: Ee, handleAutoGenerateName: De, handleHelpClick: Oe, handleRename: ke, handleSessionSwitched: Ae, addNewSession: je, switchToSession: Me, updateSessionName: Ne } = Uq({
55556
+ }), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: be, handleNewChat: xe, handleNewChatCreated: Se, handleHistoryClick: Ce, handleHistorySessionSwitch: we, handleHistorySessionDelete: Te, handleHistorySessionRename: Ee, handleAutoGenerateName: De, handleHelpClick: Oe, handleRename: ke, handleSessionSwitched: Ae, addNewSession: je, switchToSession: Me, updateSessionName: Ne } = Wq({
55528
55557
  chatHelper: i,
55529
55558
  sessionBusinessManager: o,
55530
55559
  chatBotRef: f,
55531
55560
  forwarders: u,
55532
55561
  handleError: j,
55533
55562
  currentSession: w
55534
- }), { isShareLoading: Pe, handleShare: Fe, handleCancelShare: Ie, handleConfirmShare: Le } = Wq({
55563
+ }), { isShareLoading: Pe, handleShare: Fe, handleCancelShare: Ie, handleConfirmShare: Le } = Gq({
55535
55564
  shareBusinessManager: c,
55536
55565
  chatBotRef: f,
55537
55566
  forwarders: u,
55538
55567
  handleError: j
55539
- }), { aiSelectionVisible: Re, filteredPopupShortcuts: ze, handleSelectionChange: Be, handleAiSelectionShortcut: Ve } = zq({
55568
+ }), { aiSelectionVisible: Re, filteredPopupShortcuts: ze, handleSelectionChange: Be, handleAiSelectionShortcut: Ve } = Bq({
55540
55569
  shortcutManager: l,
55541
55570
  chatBotRef: f,
55542
55571
  forwardToManager: d,
@@ -55565,7 +55594,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55565
55594
  focusInput: le
55566
55595
  }), (e, t) => (V(), p(s, { to: r.teleportTo }, [g("div", { class: P(["ai-blueking-v2", r.extCls]) }, [
55567
55596
  m(" 可拖拽容器 "),
55568
- y(q(gJ), {
55597
+ y(q(_J), {
55569
55598
  ref_key: "draggableContainerRef",
55570
55599
  ref: h,
55571
55600
  "compressed-padding": r.miniPadding,
@@ -55623,7 +55652,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55623
55652
  key: "0"
55624
55653
  } : void 0]), 1032, /* @__PURE__ */ "agent-name.chat-helper.draggable.dropdown-menu-config.enable-chat-session.has-permission.has-session-contents.auto-generate-loading.is-compression-height.render-mode.session-business-manager.session-name.show-compression-icon.show-history-icon.show-more-icon.show-new-chat-icon.title.onAutoGenerateName.onClose.onHelpClick.onHistoryClick.onHistorySessionDelete.onHistorySessionRename.onHistorySessionSwitch.onNewChat.onNewChatCreated.onRename.onShare.onToggleCompression".split("."))),
55625
55654
  m(" ChatBot 核心组件(仅聊天区域) "),
55626
- y(kq, {
55655
+ y(Aq, {
55627
55656
  ref_key: "chatBotRef",
55628
55657
  ref: f,
55629
55658
  "always-create-new-session": r.alwaysCreateNewSession,
@@ -55684,7 +55713,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55684
55713
  "onResizing"
55685
55714
  ]),
55686
55715
  m(" Nimbus 悬浮球 "),
55687
- r.hideNimbus ? m("v-if", !0) : (V(), p(yJ, {
55716
+ r.hideNimbus ? m("v-if", !0) : (V(), p(bJ, {
55688
55717
  key: 0,
55689
55718
  "is-minimize": q(b),
55690
55719
  "onUpdate:isMinimize": t[4] ||= (e) => O(b) ? b.value = e : null,
@@ -55719,7 +55748,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55719
55748
  ])) : m("v-if", !0)
55720
55749
  ], 2)], 8, ["to"]));
55721
55750
  }
55722
- }), [["__scopeId", "data-v-f367dd3f"]]), xJ = [
55751
+ }), [["__scopeId", "data-v-f367dd3f"]]), SJ = [
55723
55752
  "close",
55724
55753
  "show",
55725
55754
  "stop",
@@ -55743,7 +55772,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55743
55772
  "help-click",
55744
55773
  "rename",
55745
55774
  "share"
55746
- ], SJ = [
55775
+ ], CJ = [
55747
55776
  "show",
55748
55777
  "handleShow",
55749
55778
  "handleClose",
@@ -55761,7 +55790,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55761
55790
  "getChatHelper",
55762
55791
  "selectShortcut",
55763
55792
  "sendShortcut"
55764
- ], CJ = Aq(bJ, {
55793
+ ], wJ = jq(xJ, {
55765
55794
  name: "AIBluekingV2",
55766
55795
  props: {
55767
55796
  extCls: {
@@ -55933,8 +55962,8 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55933
55962
  default: void 0
55934
55963
  }
55935
55964
  },
55936
- emitNames: [...xJ],
55937
- exposeKeys: [...SJ],
55965
+ emitNames: [...SJ],
55966
+ exposeKeys: [...CJ],
55938
55967
  slots: ["codeHeader", "headerLeft"],
55939
55968
  deepWatchProps: [
55940
55969
  "requestOptions",
@@ -55994,7 +56023,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
55994
56023
  return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
55995
56024
  }
55996
56025
  }
55997
- }), wJ = [
56026
+ }), TJ = [
55998
56027
  "send-message",
55999
56028
  "error",
56000
56029
  "stop",
@@ -56009,7 +56038,7 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
56009
56038
  "cancel-share",
56010
56039
  "execution-panel-change",
56011
56040
  "feedback"
56012
- ], TJ = [
56041
+ ], EJ = [
56013
56042
  "sendMessage",
56014
56043
  "stopGeneration",
56015
56044
  "focusInput",
@@ -56022,8 +56051,10 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
56022
56051
  "getChatHelper",
56023
56052
  "currentSession",
56024
56053
  "isGenerating",
56025
- "messages"
56026
- ], EJ = Aq(kq, {
56054
+ "messages",
56055
+ "isReady",
56056
+ "whenReady"
56057
+ ], DJ = jq(Aq, {
56027
56058
  name: "ChatBotV2",
56028
56059
  props: {
56029
56060
  chatHelper: {
@@ -56111,8 +56142,8 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
56111
56142
  default: void 0
56112
56143
  }
56113
56144
  },
56114
- emitNames: [...wJ],
56115
- exposeKeys: [...TJ],
56145
+ emitNames: [...TJ],
56146
+ exposeKeys: [...EJ],
56116
56147
  slots: ["codeHeader"],
56117
56148
  deepWatchProps: [
56118
56149
  "requestOptions",
@@ -56121,4 +56152,4 @@ var hJ = { class: "draggable-container-content" }, gJ = /* @__PURE__ */ be(/* @_
56121
56152
  ]
56122
56153
  });
56123
56154
  //#endregion
56124
- export { EJ as ChatBotV2, CJ as default, w as h };
56155
+ export { DJ as ChatBotV2, wJ as default, w as h };