@blueking/ai-blueking 2.1.4-beta.11 → 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.
@@ -57274,18 +57274,20 @@ var X0 = class {
57274
57274
  reset() {
57275
57275
  this.clearSelection(), this.disableSelectionMode(), this.stopEditingSession(), this.clearLoadingStates();
57276
57276
  }
57277
+ }, Z0 = class extends Error {
57278
+ constructor() {
57279
+ super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
57280
+ }
57277
57281
  };
57278
- //#endregion
57279
- //#region src/components/composables/use-chatbot-init.ts
57280
- function Z0(e) {
57281
- let { props: t, emit: n, scrollToBottom: r } = e, i = /* @__PURE__ */ Zt(null), a = /* @__PURE__ */ Zt(null), o = /* @__PURE__ */ Zt(null), s = /* @__PURE__ */ Zt(null), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ z(!t.chatHelper), u = /* @__PURE__ */ z(null), d = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
57282
+ function Q0(e) {
57283
+ let { props: t, emit: n, scrollToBottom: r } = e, i = /* @__PURE__ */ Zt(null), a = /* @__PURE__ */ Zt(null), o = /* @__PURE__ */ Zt(null), s = /* @__PURE__ */ Zt(null), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ z(!t.chatHelper), u = /* @__PURE__ */ z(null), d = Y(() => c.value), f = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
57282
57284
  valid: !1,
57283
57285
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
57284
57286
  } : { valid: !0 } : t.url ? { valid: !0 } : {
57285
57287
  valid: !1,
57286
57288
  error: "[ChatBot] Neither chatHelper nor url provided. Component requires at least one."
57287
- }, f = () => {
57288
- let e = d();
57289
+ }, p = () => {
57290
+ let e = f();
57289
57291
  if (!e.valid) return console.error(e.error), u.value = Error(e.error), null;
57290
57292
  if (t.chatHelper) return t.chatHelper;
57291
57293
  let i = new k1({
@@ -57306,43 +57308,65 @@ function Z0(e) {
57306
57308
  protocol: i
57307
57309
  });
57308
57310
  return i.injectMessageModule(a.message), a;
57309
- }, p = async (e, t) => {
57311
+ }, m = async (e, t) => {
57310
57312
  if (e) try {
57311
57313
  let n = e.session.current?.value?.sessionCode ?? "";
57312
57314
  await e.agent.stopChat(n), t && e.agent.abortChat();
57313
57315
  } catch {}
57314
- }, m = 0, h = async () => {
57315
- let e = ++m, r = i.value, d = l.value;
57316
- 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;
57317
- let h = f();
57318
- if (!h) return;
57319
- let g = new U0(h.session, h.agent, null, {
57316
+ }, h = 0, g = null, _ = null, v = null, y = (e) => {
57317
+ v &&= (e ? v.reject(e) : v.resolve(), null), g = null;
57318
+ }, b = (e) => {
57319
+ if (e !== h) throw new Z0();
57320
+ }, x = async (e) => {
57321
+ let r = i.value, d = l.value;
57322
+ c.value = !1, u.value = null, l.value = !t.chatHelper, await m(r, d), b(e), i.value = null, a.value = null, o.value = null, s.value = null;
57323
+ let f = p();
57324
+ if (!f) throw u.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
57325
+ let h = new U0(f.session, f.agent, null, {
57320
57326
  enableChatSession: !0,
57321
57327
  autoSwitchToInitialSession: !!t.sessionCode,
57322
57328
  loadRecentSessionOnMount: t.autoLoad,
57323
57329
  initialSessionCode: t.sessionCode,
57324
57330
  alwaysCreateNewSession: t.alwaysCreateNewSession
57325
- }), _ = new H0(h.agent, h.message, h.session, null, {
57331
+ }), g = new H0(f.agent, f.message, f.session, null, {
57326
57332
  openingRemark: t.helloText,
57327
57333
  predefinedQuestions: t.prompts,
57328
57334
  placeholder: t.placeholder
57329
- }), v = new G0(null, t.shortcuts || []);
57330
- i.value = h, a.value = g, o.value = _, s.value = v;
57335
+ }), _ = new G0(null, t.shortcuts || []);
57336
+ i.value = f, a.value = h, o.value = g, s.value = _;
57331
57337
  try {
57332
- if (l.value && (await Promise.all([h.agent.getAgentInfo(), h.session.getSessions()]), e !== m || (await g.loadRecentSession({ skipLoadSessions: !0 }), e !== m))) return;
57333
- c.value = !0, n("agent-info-loaded", h);
57338
+ l.value && (await Promise.all([f.agent.getAgentInfo(), f.session.getSessions()]), b(e), await h.loadRecentSession({ skipLoadSessions: !0 }), b(e)), b(e), c.value = !0, n("agent-info-loaded", f);
57334
57339
  } catch (t) {
57335
- if (e !== m) return;
57336
- console.error("Failed to initialize ChatBot:", t), u.value = t, n("error", t);
57340
+ throw b(e), console.error("Failed to initialize ChatBot:", t), u.value = t, n("error", t), t;
57337
57341
  }
57342
+ }, S = () => {
57343
+ y(new Z0()), _ = null;
57344
+ let e = ++h;
57345
+ g = new Promise((t, n) => {
57346
+ v = {
57347
+ resolve: t,
57348
+ reject: n
57349
+ }, x(e).then(() => {
57350
+ v &&= (_ = Promise.resolve(), v.resolve(), null);
57351
+ }).catch((e) => {
57352
+ if (v) {
57353
+ let t = e instanceof Error ? e : Error(String(e));
57354
+ v.reject(t), v = null;
57355
+ }
57356
+ }).finally(() => {
57357
+ e === h && (g = null);
57358
+ });
57359
+ }), g.catch(() => {});
57338
57360
  };
57339
- return Qn([() => t.url, () => t.chatHelper], () => h(), { immediate: !0 }), Yr(() => {
57340
- p(i.value, l.value);
57361
+ return Qn([() => t.url, () => t.chatHelper], () => S(), { immediate: !0 }), Yr(() => {
57362
+ y(), m(i.value, l.value);
57341
57363
  }), {
57342
57364
  chatHelper: i,
57343
57365
  isStandaloneMode: l,
57344
57366
  isInitialized: c,
57367
+ isReady: d,
57345
57368
  initError: u,
57369
+ whenReady: () => c.value ? (_ ||= Promise.resolve(), _) : u.value ? Promise.reject(u.value) : g || Promise.resolve(),
57346
57370
  chatBusinessManager: o,
57347
57371
  sessionBusinessManager: a,
57348
57372
  shortcutManager: s
@@ -57350,7 +57374,7 @@ function Z0(e) {
57350
57374
  }
57351
57375
  //#endregion
57352
57376
  //#region src/components/composables/use-chatbot-state.ts
57353
- function Q0(e) {
57377
+ function $0(e) {
57354
57378
  let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = Y(() => r.value?.isStopLoading.value ? Ys.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? Ys.Streaming : Ys.Complete), u = Y(() => l.value === Ys.Streaming ? nz.Disabled : void 0), d = Y(() => r.value?.messages.value ?? []), f = Y(() => r.value?.isMessagesLoading.value ?? !1);
57355
57379
  return {
57356
57380
  messageStatus: l,
@@ -57373,7 +57397,7 @@ function Q0(e) {
57373
57397
  }
57374
57398
  //#endregion
57375
57399
  //#region src/components/composables/use-message-sender.ts
57376
- function $0(e) {
57400
+ function e2(e) {
57377
57401
  let { emit: t, chatHelper: n, chatBusinessManager: r, selectedShortcut: i, selectedResources: a } = e, o = /* @__PURE__ */ Zt([[]]), s = /* @__PURE__ */ Zt(""), c = (e, t) => {
57378
57402
  o.value = e, a.value = t;
57379
57403
  }, l = async (e, i = {}) => {
@@ -57416,7 +57440,7 @@ function $0(e) {
57416
57440
  }
57417
57441
  //#endregion
57418
57442
  //#region src/components/composables/use-share-selection.ts
57419
- function e2(e) {
57443
+ function t2(e) {
57420
57444
  let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
57421
57445
  if (!(!n.value || e.length === 0)) try {
57422
57446
  await o0((await new W0(n.value.message, n.value.session).shareMessages(e)).shareUrl), VF({
@@ -57436,7 +57460,7 @@ function e2(e) {
57436
57460
  }
57437
57461
  //#endregion
57438
57462
  //#region src/components/composables/use-shortcuts.ts
57439
- function t2(e) {
57463
+ function n2(e) {
57440
57464
  let { props: t, emit: n, shortcutManager: r, doSendMessage: i, selectedShortcut: a } = e, o = Y(() => r.value?.effectiveShortcuts.value ?? []), s = (e, t) => {
57441
57465
  let n = e, r;
57442
57466
  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) {
@@ -57530,7 +57554,7 @@ function t2(e) {
57530
57554
  }
57531
57555
  //#endregion
57532
57556
  //#region src/components/composables/use-tool-actions.ts
57533
- function n2(e) {
57557
+ function r2(e) {
57534
57558
  let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, scrollToBottom: o, getShortcutFromMessage: s, buildShortcutProperty: c } = e, l = async (e) => {
57535
57559
  if (!r.value || !n.value) {
57536
57560
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
@@ -57707,7 +57731,7 @@ function n2(e) {
57707
57731
  }
57708
57732
  //#endregion
57709
57733
  //#region src/components/chat-bot.vue
57710
- var r2 = /* @__PURE__ */ V({
57734
+ var i2 = /* @__PURE__ */ V({
57711
57735
  __name: "chat-bot",
57712
57736
  props: {
57713
57737
  autoLoad: {
@@ -57767,130 +57791,132 @@ var r2 = /* @__PURE__ */ V({
57767
57791
  await An(), o.value && (o.value.scrollTop = o.value.scrollHeight);
57768
57792
  }, p = () => {
57769
57793
  c.value?.focus?.();
57770
- }, { chatHelper: m, isStandaloneMode: h, isInitialized: g, initError: _, chatBusinessManager: v, sessionBusinessManager: y, shortcutManager: b } = Z0({
57794
+ }, { chatHelper: m, isStandaloneMode: h, isInitialized: g, isReady: _, initError: v, whenReady: y, chatBusinessManager: b, sessionBusinessManager: x, shortcutManager: S } = Q0({
57771
57795
  props: r,
57772
57796
  emit: i,
57773
57797
  scrollToBottom: f
57774
- }), { userInput: x, cite: S, handleUpdateModelValue: C, doSendMessage: w, handleSendMessage: T, handleUpload: E, handleStopSending: D, stopGeneration: O } = $0({
57798
+ }), { userInput: C, cite: w, handleUpdateModelValue: T, doSendMessage: E, handleSendMessage: D, handleUpload: O, handleStopSending: k, stopGeneration: A } = e2({
57775
57799
  emit: i,
57776
57800
  chatHelper: m,
57777
- chatBusinessManager: v,
57801
+ chatBusinessManager: b,
57778
57802
  selectedShortcut: u,
57779
57803
  selectedResources: l
57780
- }), { handleSelectShortcut: k, handleCloseShortcut: A, handleShortcutSubmit: j, selectShortcutWithText: M, getShortcutFromMessage: N, buildShortcutProperty: P, sendShortcutDirectly: F } = t2({
57804
+ }), { handleSelectShortcut: j, handleCloseShortcut: M, handleShortcutSubmit: N, selectShortcutWithText: P, getShortcutFromMessage: F, buildShortcutProperty: I, sendShortcutDirectly: ee } = n2({
57781
57805
  props: r,
57782
57806
  emit: i,
57783
57807
  chatHelper: m,
57784
- shortcutManager: b,
57785
- doSendMessage: w,
57808
+ shortcutManager: S,
57809
+ doSendMessage: E,
57786
57810
  selectedShortcut: u
57787
- }), { messageStatus: I, messageToolsStatus: ee, messages: L, isMessagesLoading: te, isGenerating: ne, currentSession: re, isWelcomeState: ie, openingRemark: ae, effectiveResources: oe, effectivePrompts: ce, effectiveSupportUpload: le, chatbotStyle: ue, filteredShortcuts: de } = Q0({
57811
+ }), { messageStatus: L, messageToolsStatus: te, messages: ne, isMessagesLoading: re, isGenerating: ie, currentSession: ae, isWelcomeState: oe, openingRemark: ce, effectiveResources: le, effectivePrompts: ue, effectiveSupportUpload: de, chatbotStyle: me, filteredShortcuts: he } = $0({
57788
57812
  props: r,
57789
57813
  chatHelper: m,
57790
- chatBusinessManager: v,
57791
- sessionBusinessManager: y,
57792
- shortcutManager: b,
57814
+ chatBusinessManager: b,
57815
+ sessionBusinessManager: x,
57816
+ shortcutManager: S,
57793
57817
  isStandaloneMode: h,
57794
57818
  isInitialized: g,
57795
57819
  selectedShortcut: u
57796
- }), { handleAgentAction: me, handleAgentFeedback: he, handleUserAction: ge, handleUserInputConfirm: _e, handleUserShortcutConfirm: ve, handleStopStreaming: ye } = n2({
57820
+ }), { handleAgentAction: ge, handleAgentFeedback: _e, handleUserAction: ve, handleUserInputConfirm: ye, handleUserShortcutConfirm: R, handleStopStreaming: be } = r2({
57797
57821
  emit: i,
57798
57822
  chatHelper: m,
57799
- chatBusinessManager: v,
57800
- cite: S,
57823
+ chatBusinessManager: b,
57824
+ cite: w,
57801
57825
  focusInput: p,
57802
57826
  scrollToBottom: f,
57803
- getShortcutFromMessage: N,
57804
- buildShortcutProperty: P
57805
- }), R = Y(() => !g.value || te.value), { handleConfirmShare: be } = e2({
57827
+ getShortcutFromMessage: F,
57828
+ buildShortcutProperty: I
57829
+ }), xe = Y(() => !g.value || re.value), { handleConfirmShare: Se } = t2({
57806
57830
  emit: i,
57807
57831
  chatHelper: m,
57808
57832
  isStandaloneMode: h
57809
- }), xe = (e) => {
57833
+ }), Ce = (e) => {
57810
57834
  i("execution-panel-change", e);
57811
- }, Se = async (e) => {
57835
+ }, we = async (e) => {
57812
57836
  if (r.onCustomTabChange) return r.onCustomTabChange(e);
57813
57837
  let t = e.data?.props;
57814
57838
  if (t?.task_id != null && t?.node_id) return m.value?.message.getFlowAgentTaskNodeInfo(t.task_id, t.node_id);
57815
57839
  };
57816
57840
  return t({
57817
- sendMessage: (e) => T(e, [[]]),
57818
- stopGeneration: O,
57841
+ sendMessage: (e) => D(e, [[]]),
57842
+ stopGeneration: A,
57819
57843
  switchSession: async (e) => {
57820
- if (!y.value) {
57844
+ if (!x.value) {
57821
57845
  console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
57822
57846
  return;
57823
57847
  }
57824
57848
  try {
57825
- await y.value.switchSession(e), i("session-switched", y.value.currentSession.value);
57849
+ await x.value.switchSession(e), i("session-switched", x.value.currentSession.value);
57826
57850
  } catch (e) {
57827
57851
  console.error("Failed to switch session:", e), i("error", e);
57828
57852
  }
57829
57853
  },
57830
- messages: L,
57831
- currentSession: re,
57832
- isGenerating: ne,
57854
+ messages: ne,
57855
+ currentSession: ae,
57856
+ isGenerating: ie,
57857
+ isReady: _,
57858
+ whenReady: y,
57833
57859
  getChatHelper: () => m.value,
57834
57860
  setCiteText: (e) => {
57835
- S.value = e;
57861
+ w.value = e;
57836
57862
  },
57837
57863
  focusInput: p,
57838
57864
  enterShareMode: () => s.value?.enterShareMode(),
57839
57865
  exitShareMode: () => s.value?.exitShareMode(),
57840
57866
  selectShortcut: (e, t) => {
57841
- M(e, t);
57867
+ P(e, t);
57842
57868
  },
57843
- sendShortcut: (e, t) => F(e, t)
57869
+ sendShortcut: (e, t) => ee(e, t)
57844
57870
  }), (t, n) => (U(), W("div", {
57845
57871
  class: fe([
57846
57872
  "ai-chatbot",
57847
57873
  r.extCls,
57848
- { "welcome-state": B(ie) }
57874
+ { "welcome-state": B(oe) }
57849
57875
  ]),
57850
- style: se(B(ue))
57876
+ style: se(B(me))
57851
57877
  }, [q(B(d1), {
57852
57878
  ref_key: "chatContainerRef",
57853
57879
  ref: s,
57854
- cite: B(S),
57855
- "onUpdate:cite": n[0] ||= (e) => /* @__PURE__ */ Xt(S) ? S.value = e : null,
57880
+ cite: B(w),
57881
+ "onUpdate:cite": n[0] ||= (e) => /* @__PURE__ */ Xt(w) ? w.value = e : null,
57856
57882
  "selected-shortcut": u.value,
57857
57883
  "onUpdate:selectedShortcut": n[1] ||= (e) => u.value = e,
57858
57884
  "render-mode": d.value,
57859
57885
  "onUpdate:renderMode": n[2] ||= (e) => d.value = e,
57860
- "chat-loading": R.value,
57886
+ "chat-loading": xe.value,
57861
57887
  "common-tippy-options": e.messageToolsTippyOptions,
57862
- "message-status": B(I),
57863
- "message-tools-status": B(ee),
57864
- messages: B(L),
57865
- "model-value": B(x),
57866
- "on-agent-action": B(me),
57867
- "on-agent-feedback": B(he),
57888
+ "message-status": B(L),
57889
+ "message-tools-status": B(te),
57890
+ messages: B(ne),
57891
+ "model-value": B(C),
57892
+ "on-agent-action": B(ge),
57893
+ "on-agent-feedback": B(_e),
57868
57894
  "get-side-render-component": r.getSideRenderComponent,
57869
57895
  "get-side-tab-render-component": r.getSideTabRenderComponent,
57870
- "on-custom-tab-change": Se,
57871
- "on-send-message": B(T),
57872
- "on-stop-sending": B(D),
57873
- "on-upload": B(E),
57874
- "on-user-action": B(ge),
57875
- "on-user-input-confirm": B(_e),
57876
- "on-user-shortcut-confirm": B(ve),
57877
- "opening-remark": B(ae),
57896
+ "on-custom-tab-change": we,
57897
+ "on-send-message": B(D),
57898
+ "on-stop-sending": B(k),
57899
+ "on-upload": B(O),
57900
+ "on-user-action": B(ve),
57901
+ "on-user-input-confirm": B(ye),
57902
+ "on-user-shortcut-confirm": B(R),
57903
+ "opening-remark": B(ce),
57878
57904
  placeholder: r.placeholder,
57879
57905
  placement: r.placement,
57880
- prompts: B(ce),
57906
+ prompts: B(ue),
57881
57907
  "resize-props": r.resizeProps,
57882
- resources: B(oe),
57908
+ resources: B(le),
57883
57909
  "shortcut-id": u.value?.id,
57884
- shortcuts: B(de),
57885
- "support-upload": B(le),
57886
- onCollapseChange: xe,
57887
- onConfirmShare: B(be),
57888
- onDeleteShortcut: B(A),
57889
- onSelectShortcut: B(k),
57890
- onShortcutClose: B(A),
57891
- onShortcutSubmit: B(j),
57892
- onStopStreaming: B(ye),
57893
- "onUpdate:modelValue": B(C)
57910
+ shortcuts: B(he),
57911
+ "support-upload": B(de),
57912
+ onCollapseChange: Ce,
57913
+ onConfirmShare: B(Se),
57914
+ onDeleteShortcut: B(M),
57915
+ onSelectShortcut: B(j),
57916
+ onShortcutClose: B(M),
57917
+ onShortcutSubmit: B(N),
57918
+ onStopStreaming: B(be),
57919
+ "onUpdate:modelValue": B(T)
57894
57920
  }, {
57895
57921
  message: Hn(({ message: n, messageToolsStatus: r }) => [J(" 消费方提供了 #message slot 时,优先使用消费方的渲染 "), B(a).message ? ui(t.$slots, "message", {
57896
57922
  key: 0,
@@ -57899,9 +57925,9 @@ var r2 = /* @__PURE__ */ V({
57899
57925
  }) : (U(), W(H, { key: 1 }, [J(" 否则使用默认的 MessageRender "), q(B(I$), {
57900
57926
  message: n,
57901
57927
  "message-tools-status": r,
57902
- "on-action": (e) => B(ge)(e, n),
57903
- "on-input-confirm": (e, t) => B(_e)(n, e, t),
57904
- "on-shortcut-confirm": (e) => B(ve)(n, e),
57928
+ "on-action": (e) => B(ve)(e, n),
57929
+ "on-input-confirm": (e, t) => B(ye)(n, e, t),
57930
+ "on-shortcut-confirm": (e) => B(R)(n, e),
57905
57931
  "tippy-options": e.messageToolsTippyOptions
57906
57932
  }, li({ _: 2 }, [t.$slots.codeHeader ? {
57907
57933
  name: "codeHeader",
@@ -57918,13 +57944,13 @@ var r2 = /* @__PURE__ */ V({
57918
57944
  _: 3
57919
57945
  }, 8, /* @__PURE__ */ "cite.selected-shortcut.render-mode.chat-loading.common-tippy-options.message-status.message-tools-status.messages.model-value.on-agent-action.on-agent-feedback.get-side-render-component.get-side-tab-render-component.on-send-message.on-stop-sending.on-upload.on-user-action.on-user-input-confirm.on-user-shortcut-confirm.opening-remark.placeholder.placement.prompts.resize-props.resources.shortcut-id.shortcuts.support-upload.onConfirmShare.onDeleteShortcut.onSelectShortcut.onShortcutClose.onShortcutSubmit.onStopStreaming.onUpdate:modelValue".split("."))], 6));
57920
57946
  }
57921
- }), i2 = /* @__PURE__ */ function(e) {
57947
+ }), a2 = /* @__PURE__ */ function(e) {
57922
57948
  return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
57923
57949
  }({});
57924
- function a2(e) {
57950
+ function o2(e) {
57925
57951
  let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i } = e, a = en(t);
57926
57952
  if (!a) throw Error("[useChatBootstrap] url is required");
57927
- let o = /* @__PURE__ */ z(i2.IDLE), s = /* @__PURE__ */ z(null), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ new Map(), u = new k1({
57953
+ let o = /* @__PURE__ */ z(a2.IDLE), s = /* @__PURE__ */ z(null), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ new Map(), u = new k1({
57928
57954
  onStart: () => {
57929
57955
  i?.onStart?.();
57930
57956
  },
@@ -57942,14 +57968,14 @@ function a2(e) {
57942
57968
  protocol: u
57943
57969
  });
57944
57970
  u.injectMessageModule(d.message);
57945
- let f = Y(() => o.value === i2.LOADING_AGENT), p = Y(() => o.value === i2.READY), m = Y(() => d.agent.info.value ?? null), h = Y(() => m.value?.agentName ?? ""), g = Y(() => d.session.current.value ?? null), _ = Y(() => d.session.list.value ?? []), v = null, y = 0, b = async (e) => {
57971
+ let f = Y(() => o.value === a2.LOADING_AGENT), p = Y(() => o.value === a2.READY), m = Y(() => d.agent.info.value ?? null), h = Y(() => m.value?.agentName ?? ""), g = Y(() => d.session.current.value ?? null), _ = Y(() => d.session.list.value ?? []), v = null, y = 0, b = async (e) => {
57946
57972
  s.value = null;
57947
57973
  try {
57948
- if (o.value = i2.LOADING_AGENT, await Promise.all([d.agent.getAgentInfo(), d.session.getSessions()]), e !== y) return;
57949
- o.value = i2.READY, c.value = !0;
57974
+ if (o.value = a2.LOADING_AGENT, await Promise.all([d.agent.getAgentInfo(), d.session.getSessions()]), e !== y) return;
57975
+ o.value = a2.READY, c.value = !0;
57950
57976
  } catch (t) {
57951
57977
  if (e !== y) return;
57952
- throw console.error("[useChatBootstrap] Initialization failed:", t), s.value = t, o.value = i2.ERROR, t;
57978
+ throw console.error("[useChatBootstrap] Initialization failed:", t), s.value = t, o.value = a2.ERROR, t;
57953
57979
  }
57954
57980
  }, x = async () => {
57955
57981
  if (c.value) return;
@@ -57959,7 +57985,7 @@ function a2(e) {
57959
57985
  e === y && (v = null);
57960
57986
  }), v;
57961
57987
  }, S = () => {
57962
- y += 1, o.value = i2.IDLE, s.value = null, c.value = !1, v = null;
57988
+ y += 1, o.value = a2.IDLE, s.value = null, c.value = !1, v = null;
57963
57989
  }, C = async () => {
57964
57990
  S(), await x();
57965
57991
  }, w = async (e) => {
@@ -57993,7 +58019,7 @@ function a2(e) {
57993
58019
  }
57994
58020
  //#endregion
57995
58021
  //#region src/composables/use-event-bridge.ts
57996
- function o2(e) {
58022
+ function s2(e) {
57997
58023
  return {
57998
58024
  sendMessage: (t) => e("send-message", { content: t }),
57999
58025
  receiveStart: () => e("receive-start", {}),
@@ -58011,7 +58037,7 @@ function o2(e) {
58011
58037
  shareMessages: (t) => e("share-messages", { messageIds: t })
58012
58038
  };
58013
58039
  }
58014
- function s2(e) {
58040
+ function c2(e) {
58015
58041
  let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
58016
58042
  for (let [e, a] of Object.entries(J0)) {
58017
58043
  if (a === null) continue;
@@ -58038,17 +58064,17 @@ function s2(e) {
58038
58064
  }
58039
58065
  //#endregion
58040
58066
  //#region src/composables/use-ai-blueking-init.ts
58041
- function c2(e) {
58067
+ function l2(e) {
58042
58068
  let { props: t, emit: n } = e, r = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), a = Y(() => a0(t.url ?? "")), o = q0({
58043
58069
  initialPanelVisible: !1,
58044
58070
  initialNimbusMinimized: t.defaultMinimize,
58045
58071
  enablePopup: t.enablePopup,
58046
58072
  enableNimbus: !t.hideNimbus,
58047
58073
  enableDraggable: t.draggable
58048
- }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = s2({
58074
+ }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = c2({
58049
58075
  componentManager: o,
58050
58076
  emit: n
58051
- }), u = o2(l), d = (e, t) => {
58077
+ }), u = s2(l), d = (e, t) => {
58052
58078
  let n = t instanceof Error ? t.message : String(t);
58053
58079
  console.error(`[AIBlueking] ${e} error:`, t), o.emitInternal("sdk-error", {
58054
58080
  apiName: e,
@@ -58058,9 +58084,9 @@ function c2(e) {
58058
58084
  });
58059
58085
  }, f = (e) => {
58060
58086
  d("chat", e);
58061
- }, { chatHelper: p, isReady: m, error: h, agentInfo: g, agentName: _, currentSession: v, initialize: y } = a2({
58087
+ }, { chatHelper: p, isReady: m, error: h, agentInfo: g, agentName: _, currentSession: v, initialize: y } = o2({
58062
58088
  url: a,
58063
- requestOptions: t.requestOptions,
58089
+ requestOptions: () => en(t.requestOptions),
58064
58090
  autoInit: !0,
58065
58091
  protocolCallbacks: {
58066
58092
  onStart: () => {
@@ -58142,7 +58168,7 @@ function c2(e) {
58142
58168
  }
58143
58169
  //#endregion
58144
58170
  //#region src/composables/use-ai-selection.ts
58145
- function l2(e) {
58171
+ function u2(e) {
58146
58172
  let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = /* @__PURE__ */ z(!1), s = /* @__PURE__ */ z("");
58147
58173
  return {
58148
58174
  aiSelectionVisible: o,
@@ -58164,7 +58190,7 @@ function l2(e) {
58164
58190
  }
58165
58191
  //#endregion
58166
58192
  //#region src/composables/use-nimbus.ts
58167
- function u2(e, t = !1) {
58193
+ function d2(e, t = !1) {
58168
58194
  let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = /* @__PURE__ */ z(r), a = /* @__PURE__ */ z(n), o = /* @__PURE__ */ z(0), s = /* @__PURE__ */ z(t), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ z(!1), u = 0, d = (e) => {
58169
58195
  e ? i.value = window.innerWidth - 12 : i.value = r;
58170
58196
  }, f = (e, t) => {
@@ -58217,8 +58243,8 @@ function u2(e, t = !1) {
58217
58243
  }
58218
58244
  //#endregion
58219
58245
  //#region src/composables/use-panel-container.ts
58220
- var d2 = 420;
58221
- function f2(e) {
58246
+ var f2 = 420;
58247
+ function p2(e) {
58222
58248
  let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = async (e) => {
58223
58249
  t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
58224
58250
  }, c = async (e) => {
@@ -58259,7 +58285,7 @@ function f2(e) {
58259
58285
  t.setCompressed(e);
58260
58286
  },
58261
58287
  handleExecutionPanelChange: (e) => {
58262
- e ? t.collapseSidePanel() : t.expandForSidePanel(d2);
58288
+ e ? t.collapseSidePanel() : t.expandForSidePanel(f2);
58263
58289
  },
58264
58290
  sendMessage: async (e) => {
58265
58291
  n.value && await n.value.sendMessage(e);
@@ -58306,7 +58332,7 @@ function f2(e) {
58306
58332
  }
58307
58333
  //#endregion
58308
58334
  //#region src/composables/use-session-handlers.ts
58309
- function p2(e) {
58335
+ function m2(e) {
58310
58336
  let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, handleError: a, currentSession: o } = e, s = /* @__PURE__ */ z(""), c = /* @__PURE__ */ z(!0), l = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(!1), d = () => t.message.list.value.some((e) => {
58311
58337
  if (!("property" in e)) return !0;
58312
58338
  let { property: t } = e;
@@ -58396,7 +58422,7 @@ function p2(e) {
58396
58422
  }
58397
58423
  //#endregion
58398
58424
  //#region src/composables/use-share-handlers.ts
58399
- function m2(e) {
58425
+ function h2(e) {
58400
58426
  let { shareBusinessManager: t, chatBotRef: n, forwarders: r, handleError: i } = e, a = /* @__PURE__ */ z(!1);
58401
58427
  return {
58402
58428
  isShareLoading: a,
@@ -58424,7 +58450,7 @@ function m2(e) {
58424
58450
  }
58425
58451
  //#endregion
58426
58452
  //#region src/composables/use-tippy.ts
58427
- function h2(e = {}) {
58453
+ function g2(e = {}) {
58428
58454
  let t = /* @__PURE__ */ z([]), n = (n, r, i = {}) => {
58429
58455
  try {
58430
58456
  let a = typeof n == "string" ? document.querySelector(n) : n;
@@ -58477,7 +58503,7 @@ function h2(e = {}) {
58477
58503
  }
58478
58504
  //#endregion
58479
58505
  //#region src/config/prop-defaults.ts
58480
- var g2 = {
58506
+ var _2 = {
58481
58507
  url: "",
58482
58508
  title: "",
58483
58509
  extCls: "",
@@ -58519,7 +58545,7 @@ var g2 = {
58519
58545
  showShare: !0
58520
58546
  }),
58521
58547
  defaultChatInputPosition: void 0
58522
- }, _2 = class extends k1 {
58548
+ }, v2 = class extends k1 {
58523
58549
  eventEmitter;
58524
58550
  constructor(e = {}) {
58525
58551
  super({
@@ -58548,7 +58574,7 @@ var g2 = {
58548
58574
  super.handleToolCallStartEvent(e), this.eventEmitter?.emit("tool-call-start", { event: e });
58549
58575
  }
58550
58576
  };
58551
- function v2(e = {}) {
58577
+ function y2(e = {}) {
58552
58578
  let { eventEmitter: t, onStart: n, onMessage: r, onDone: i, onError: a, onTextChunk: o } = e;
58553
58579
  return new k1({
58554
58580
  onStart: () => {
@@ -58567,31 +58593,31 @@ function v2(e = {}) {
58567
58593
  }
58568
58594
  //#endregion
58569
58595
  //#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
58570
- function y2(e) {
58596
+ function b2(e) {
58571
58597
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
58572
58598
  }
58573
- function b2(e, t, n, r = 1) {
58599
+ function x2(e, t, n, r = 1) {
58574
58600
  let [i, a] = typeof r == "number" ? [r, r] : r;
58575
58601
  return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
58576
58602
  }
58577
- function x2(e, t, n) {
58578
- return e - t - n;
58579
- }
58580
58603
  function S2(e, t, n) {
58581
58604
  return e - t - n;
58582
58605
  }
58583
58606
  function C2(e, t, n) {
58584
- return t !== null && e < t ? t : n !== null && n < e ? n : e;
58607
+ return e - t - n;
58585
58608
  }
58586
58609
  function w2(e, t, n) {
58610
+ return t !== null && e < t ? t : n !== null && n < e ? n : e;
58611
+ }
58612
+ function T2(e, t, n) {
58587
58613
  let r = e, i = [
58588
58614
  "matches",
58589
58615
  "webkitMatchesSelector",
58590
58616
  "mozMatchesSelector",
58591
58617
  "msMatchesSelector",
58592
58618
  "oMatchesSelector"
58593
- ].find((e) => y2(r[e]));
58594
- if (!y2(r[i])) return !1;
58619
+ ].find((e) => b2(r[e]));
58620
+ if (!b2(r[i])) return !1;
58595
58621
  do {
58596
58622
  if (r[i](t)) return !0;
58597
58623
  if (r === n) return !1;
@@ -58599,21 +58625,21 @@ function w2(e, t, n) {
58599
58625
  } while (r);
58600
58626
  return !1;
58601
58627
  }
58602
- function T2(e) {
58628
+ function E2(e) {
58603
58629
  let t = window.getComputedStyle(e);
58604
58630
  return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
58605
58631
  }
58606
- function E2(e, t, n) {
58632
+ function D2(e, t, n) {
58607
58633
  e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
58608
58634
  }
58609
- function D2(e, t, n) {
58635
+ function O2(e, t, n) {
58610
58636
  e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
58611
58637
  }
58612
- var O2 = (e, t) => {
58638
+ var k2 = (e, t) => {
58613
58639
  let n = e.__vccOpts || e;
58614
58640
  for (let [e, r] of t) n[e] = r;
58615
58641
  return n;
58616
- }, k2 = {
58642
+ }, A2 = {
58617
58643
  mouse: {
58618
58644
  start: "mousedown",
58619
58645
  move: "mousemove",
@@ -58624,17 +58650,17 @@ var O2 = (e, t) => {
58624
58650
  move: "touchmove",
58625
58651
  stop: "touchend"
58626
58652
  }
58627
- }, A2 = {
58653
+ }, j2 = {
58628
58654
  userSelect: "none",
58629
58655
  MozUserSelect: "none",
58630
58656
  WebkitUserSelect: "none",
58631
58657
  MsUserSelect: "none"
58632
- }, j2 = {
58658
+ }, M2 = {
58633
58659
  userSelect: "auto",
58634
58660
  MozUserSelect: "auto",
58635
58661
  WebkitUserSelect: "auto",
58636
58662
  MsUserSelect: "auto"
58637
- }, M2 = k2.mouse, N2 = {
58663
+ }, N2 = A2.mouse, P2 = {
58638
58664
  replace: !0,
58639
58665
  name: "vue-draggable-resizable",
58640
58666
  props: {
@@ -58839,11 +58865,11 @@ var O2 = (e, t) => {
58839
58865
  this.enableNativeDrag || (this.$el.ondragstart = () => !1);
58840
58866
  let [e, t] = this.getParentSize();
58841
58867
  this.parentWidth = e, this.parentHeight = t;
58842
- let [n, r] = T2(this.$el);
58843
- 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"), E2(document.documentElement, "mousedown", this.deselect), E2(document.documentElement, "touchend touchcancel", this.deselect), E2(window, "resize", this.checkParentSize);
58868
+ let [n, r] = E2(this.$el);
58869
+ 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"), D2(document.documentElement, "mousedown", this.deselect), D2(document.documentElement, "touchend touchcancel", this.deselect), D2(window, "resize", this.checkParentSize);
58844
58870
  },
58845
58871
  beforeUnmount: function() {
58846
- D2(document.documentElement, "mousedown", this.deselect), D2(document.documentElement, "touchstart", this.handleUp), D2(document.documentElement, "mousemove", this.move), D2(document.documentElement, "touchmove", this.move), D2(document.documentElement, "mouseup", this.handleUp), D2(document.documentElement, "touchend touchcancel", this.deselect), D2(window, "resize", this.checkParentSize);
58872
+ O2(document.documentElement, "mousedown", this.deselect), O2(document.documentElement, "touchstart", this.handleUp), O2(document.documentElement, "mousemove", this.move), O2(document.documentElement, "touchmove", this.move), O2(document.documentElement, "mouseup", this.handleUp), O2(document.documentElement, "touchend touchcancel", this.deselect), O2(window, "resize", this.checkParentSize);
58847
58873
  },
58848
58874
  methods: {
58849
58875
  resetBoundsAndMouseState() {
@@ -58879,21 +58905,21 @@ var O2 = (e, t) => {
58879
58905
  return [null, null];
58880
58906
  },
58881
58907
  elementTouchDown(e) {
58882
- M2 = k2.touch, this.elementDown(e);
58908
+ N2 = A2.touch, this.elementDown(e);
58883
58909
  },
58884
58910
  elementMouseDown(e) {
58885
- M2 = k2.mouse, this.elementDown(e);
58911
+ N2 = A2.mouse, this.elementDown(e);
58886
58912
  },
58887
58913
  elementDown(e) {
58888
58914
  if (e instanceof MouseEvent && e.button !== 0) return;
58889
58915
  let t = e.target || e.srcElement;
58890
58916
  if (this.$el.contains(t)) {
58891
58917
  if (this.onDragStart(e) === !1) return;
58892
- if (this.dragHandle && !w2(t, this.dragHandle, this.$el) || this.dragCancel && w2(t, this.dragCancel, this.$el)) {
58918
+ if (this.dragHandle && !T2(t, this.dragHandle, this.$el) || this.dragCancel && T2(t, this.dragCancel, this.$el)) {
58893
58919
  this.dragging = !1;
58894
58920
  return;
58895
58921
  }
58896
- 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()), E2(document.documentElement, M2.move, this.move), E2(document.documentElement, M2.stop, this.handleUp);
58922
+ 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()), D2(document.documentElement, N2.move, this.move), D2(document.documentElement, N2.stop, this.handleUp);
58897
58923
  }
58898
58924
  },
58899
58925
  calcDragLimits() {
@@ -58910,13 +58936,13 @@ var O2 = (e, t) => {
58910
58936
  },
58911
58937
  deselect(e) {
58912
58938
  let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
58913
- !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), D2(document.documentElement, M2.move, this.handleResize)), this.resetBoundsAndMouseState();
58939
+ !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), O2(document.documentElement, N2.move, this.handleResize)), this.resetBoundsAndMouseState();
58914
58940
  },
58915
58941
  handleTouchDown(e, t) {
58916
- M2 = k2.touch, this.handleDown(e, t);
58942
+ N2 = A2.touch, this.handleDown(e, t);
58917
58943
  },
58918
58944
  handleDown(e, t) {
58919
- 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(), E2(document.documentElement, M2.move, this.handleResize), E2(document.documentElement, M2.stop, this.handleUp));
58945
+ 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(), D2(document.documentElement, N2.move, this.handleResize), D2(document.documentElement, N2.stop, this.handleUp));
58920
58946
  },
58921
58947
  calcResizeLimits() {
58922
58948
  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;
@@ -58937,41 +58963,41 @@ var O2 = (e, t) => {
58937
58963
  this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
58938
58964
  },
58939
58965
  handleDrag(e) {
58940
- let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = b2(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 = C2(i.left - a, r.minLeft, r.maxLeft), c = C2(i.top - o, r.minTop, r.maxTop);
58966
+ let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = x2(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 = w2(i.left - a, r.minLeft, r.maxLeft), c = w2(i.top - o, r.minTop, r.maxTop);
58941
58967
  if (this.onDrag(s, c) === !1) return;
58942
- let l = C2(i.right + a, r.minRight, r.maxRight), u = C2(i.bottom + o, r.minBottom, r.maxBottom);
58968
+ let l = w2(i.right + a, r.minRight, r.maxRight), u = w2(i.bottom + o, r.minBottom, r.maxBottom);
58943
58969
  this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
58944
58970
  },
58945
58971
  moveHorizontally(e) {
58946
- let [t, n] = b2(this.grid, e, this.top, 1), r = C2(t, this.bounds.minLeft, this.bounds.maxLeft);
58972
+ let [t, n] = x2(this.grid, e, this.top, 1), r = w2(t, this.bounds.minLeft, this.bounds.maxLeft);
58947
58973
  this.left = r, this.right = this.parentWidth - this.width - r;
58948
58974
  },
58949
58975
  moveVertically(e) {
58950
- let [t, n] = b2(this.grid, this.left, e, 1), r = C2(n, this.bounds.minTop, this.bounds.maxTop);
58976
+ let [t, n] = x2(this.grid, this.left, e, 1), r = w2(n, this.bounds.minTop, this.bounds.maxTop);
58951
58977
  this.top = r, this.bottom = this.parentHeight - this.height - r;
58952
58978
  },
58953
58979
  handleResize(e) {
58954
58980
  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);
58955
58981
  !this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
58956
- let [l, u] = b2(this.grid, s, c, this.scale);
58957
- this.handle.includes("b") ? (i = C2(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 = C2(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 = C2(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 = C2(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58958
- let d = x2(this.parentWidth, t, r), f = S2(this.parentHeight, n, i);
58982
+ let [l, u] = x2(this.grid, s, c, this.scale);
58983
+ this.handle.includes("b") ? (i = w2(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 = w2(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 = w2(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 = w2(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58984
+ let d = S2(this.parentWidth, t, r), f = C2(this.parentHeight, n, i);
58959
58985
  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);
58960
58986
  },
58961
58987
  changeWidth(e) {
58962
- let [t, n] = b2(this.grid, e, 0, 1), r = C2(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58988
+ let [t, n] = x2(this.grid, e, 0, 1), r = w2(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58963
58989
  this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
58964
- let a = x2(this.parentWidth, this.left, r), o = S2(this.parentHeight, this.top, i);
58990
+ let a = S2(this.parentWidth, this.left, r), o = C2(this.parentHeight, this.top, i);
58965
58991
  this.right = r, this.bottom = i, this.width = a, this.height = o;
58966
58992
  },
58967
58993
  changeHeight(e) {
58968
- let [t, n] = b2(this.grid, 0, e, 1), r = C2(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58994
+ let [t, n] = x2(this.grid, 0, e, 1), r = w2(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58969
58995
  this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
58970
- let a = x2(this.parentWidth, this.left, i), o = S2(this.parentHeight, this.top, r);
58996
+ let a = S2(this.parentWidth, this.left, i), o = C2(this.parentHeight, this.top, r);
58971
58997
  this.right = i, this.bottom = r, this.width = a, this.height = o;
58972
58998
  },
58973
58999
  handleUp(e) {
58974
- 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)), D2(document.documentElement, M2.move, this.handleResize);
59000
+ 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)), O2(document.documentElement, N2.move, this.handleResize);
58975
59001
  }
58976
59002
  },
58977
59003
  computed: {
@@ -58981,7 +59007,7 @@ var O2 = (e, t) => {
58981
59007
  width: this.computedWidth,
58982
59008
  height: this.computedHeight,
58983
59009
  zIndex: this.zIndex,
58984
- ...this.dragging && this.disableUserSelect ? A2 : j2
59010
+ ...this.dragging && this.disableUserSelect ? j2 : M2
58985
59011
  };
58986
59012
  },
58987
59013
  actualHandles() {
@@ -59043,8 +59069,8 @@ var O2 = (e, t) => {
59043
59069
  this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
59044
59070
  }
59045
59071
  }
59046
- }, P2 = ["onMousedown", "onTouchstart"];
59047
- function F2(e, t, n, r, i, a) {
59072
+ }, F2 = ["onMousedown", "onTouchstart"];
59073
+ function I2(e, t, n, r, i, a) {
59048
59074
  return U(), W("div", {
59049
59075
  style: se(a.style),
59050
59076
  class: fe([{
@@ -59062,17 +59088,17 @@ function F2(e, t, n, r, i, a) {
59062
59088
  style: se({ display: e.enabled ? "block" : "none" }),
59063
59089
  onMousedown: zs((e) => a.handleDown(t, e), ["stop", "prevent"]),
59064
59090
  onTouchstart: zs((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
59065
- }, [ui(e.$slots, t)], 46, P2))), 128)), ui(e.$slots, "default")], 38);
59091
+ }, [ui(e.$slots, t)], 46, F2))), 128)), ui(e.$slots, "default")], 38);
59066
59092
  }
59067
- var I2 = /* @__PURE__ */ O2(N2, [["render", F2]]);
59068
- function L2(e) {
59069
- L2.installed || (L2.installed = !0, e.component("VueDraggableResizable", I2));
59093
+ var L2 = /* @__PURE__ */ k2(P2, [["render", I2]]);
59094
+ function R2(e) {
59095
+ R2.installed || (R2.installed = !0, e.component("VueDraggableResizable", L2));
59070
59096
  }
59071
- var R2 = { install: L2 }, z2 = null;
59072
- typeof window < "u" ? z2 = window.Vue : typeof global < "u" && (z2 = global.Vue), z2 && z2.use(R2);
59097
+ var z2 = { install: R2 }, B2 = null;
59098
+ typeof window < "u" ? B2 = window.Vue : typeof global < "u" && (B2 = global.Vue), B2 && B2.use(z2);
59073
59099
  //#endregion
59074
59100
  //#region src/containers/use-draggable.ts
59075
- function B2(e = {}, t) {
59101
+ function V2(e = {}, t) {
59076
59102
  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 = /* @__PURE__ */ z(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = /* @__PURE__ */ z(e.defaultTop === void 0 ? 0 : e.defaultTop), u = /* @__PURE__ */ z(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = /* @__PURE__ */ z(n), f = /* @__PURE__ */ z(l.value), p = /* @__PURE__ */ z(c.value), m = /* @__PURE__ */ z(d.value), h = /* @__PURE__ */ z(u.value), g = /* @__PURE__ */ z(Math.max(window.innerWidth * (a / 100), m.value)), _ = /* @__PURE__ */ z(!1), v = /* @__PURE__ */ z(0), y = null, b = null, x = /* @__PURE__ */ z(!1), S = (e) => {
59077
59103
  let t = window.innerWidth, n = { ...e };
59078
59104
  return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
@@ -59165,7 +59191,7 @@ function B2(e = {}, t) {
59165
59191
  }
59166
59192
  //#endregion
59167
59193
  //#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
59168
- var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59194
+ var H2 = { class: "draggable-container-content" }, U2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59169
59195
  __name: "draggable-container",
59170
59196
  props: {
59171
59197
  className: { default: "" },
@@ -59202,7 +59228,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59202
59228
  "compression-change"
59203
59229
  ],
59204
59230
  setup(e, { expose: t, emit: n }) {
59205
- let r = e, i = n, a = /* @__PURE__ */ z(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: d, height: f, isCompressed: p, isSidePanelExpanded: m, handleDragging: h, handleResizing: g, handleDragStop: _, handleResizeStop: v, toggleCompression: y, updatePosition: b, updateSize: x, updatePositionAndSize: S, expandForSidePanel: C, collapseSidePanel: w } = B2({
59231
+ let r = e, i = n, a = /* @__PURE__ */ z(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: d, height: f, isCompressed: p, isSidePanelExpanded: m, handleDragging: h, handleResizing: g, handleDragStop: _, handleResizeStop: v, toggleCompression: y, updatePosition: b, updateSize: x, updatePositionAndSize: S, expandForSidePanel: C, collapseSidePanel: w } = V2({
59206
59232
  initWidth: r.defaultWidth,
59207
59233
  minWidth: r.minWidth,
59208
59234
  minHeight: r.minHeight,
@@ -59251,7 +59277,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59251
59277
  positionAndSize: E,
59252
59278
  isCompressed: p,
59253
59279
  isSidePanelExpanded: m
59254
- }), (e, t) => Un((U(), G(B(I2), {
59280
+ }), (e, t) => Un((U(), G(B(L2), {
59255
59281
  ref: "draggableRef",
59256
59282
  active: r.visible,
59257
59283
  class: fe(["draggable-container-wrapper", r.className]),
@@ -59274,7 +59300,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59274
59300
  onResizeStop: M,
59275
59301
  onResizing: A
59276
59302
  }, {
59277
- default: Hn(() => [K("div", V2, [ui(e.$slots, "default", {}, void 0, !0)])]),
59303
+ default: Hn(() => [K("div", H2, [ui(e.$slots, "default", {}, void 0, !0)])]),
59278
59304
  _: 3
59279
59305
  }, 8, [
59280
59306
  "active",
@@ -59292,11 +59318,11 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59292
59318
  "y"
59293
59319
  ])), [[es, r.visible]]);
59294
59320
  }
59295
- }), [["__scopeId", "data-v-1118456b"]]), U2 = { class: "nimbus-bkai-wrapper" }, W2 = [
59321
+ }), [["__scopeId", "data-v-1118456b"]]), W2 = { class: "nimbus-bkai-wrapper" }, G2 = [
59296
59322
  "width",
59297
59323
  "height",
59298
59324
  "src"
59299
- ], G2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59325
+ ], K2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59300
59326
  name: "NimbusButton",
59301
59327
  __name: "nimbus",
59302
59328
  props: {
@@ -59348,11 +59374,11 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59348
59374
  right: -6
59349
59375
  }
59350
59376
  }
59351
- }, a = Y(() => i[n.size]), o = /* @__PURE__ */ z(null), s = /* @__PURE__ */ z(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: d, handleMinimize: f, handleDragging: p, handleMouseEnter: m, handleMouseLeave: h, handleMouseDown: g, handleMouseUp: _ } = u2(r, n.isMinimize);
59377
+ }, a = Y(() => i[n.size]), o = /* @__PURE__ */ z(null), s = /* @__PURE__ */ z(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: d, handleMinimize: f, handleDragging: p, handleMouseEnter: m, handleMouseLeave: h, handleMouseDown: g, handleMouseUp: _ } = d2(r, n.isMinimize);
59352
59378
  Qn(u, (e) => {
59353
59379
  r("update:isMinimize", e);
59354
59380
  });
59355
- let v = Y(() => u.value ? m0("恢复默认大小") : m0("最小化,将缩成锚点")), { createTooltip: y, destroyAll: b } = h2({
59381
+ let v = Y(() => u.value ? m0("恢复默认大小") : m0("最小化,将缩成锚点")), { createTooltip: y, destroyAll: b } = g2({
59356
59382
  theme: "ai-blueking",
59357
59383
  delay: [0, 0]
59358
59384
  }), x = () => {
@@ -59372,7 +59398,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59372
59398
  }), window.addEventListener("resize", x);
59373
59399
  }), Yr(() => {
59374
59400
  window.removeEventListener("resize", x);
59375
- }), (t, n) => (U(), G(B(I2), {
59401
+ }), (t, n) => (U(), G(B(L2), {
59376
59402
  active: !e.isPanelShow,
59377
59403
  axis: "y",
59378
59404
  draggable: !0,
@@ -59394,12 +59420,12 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59394
59420
  onMouseenter: n[3] ||= (...e) => B(m) && B(m)(...e),
59395
59421
  onMouseleave: n[4] ||= (...e) => B(h) && B(h)(...e),
59396
59422
  onMouseup: n[5] ||= (...e) => B(_) && B(_)(...e)
59397
- }, [K("div", U2, [K("img", {
59423
+ }, [K("div", W2, [K("img", {
59398
59424
  width: a.value.img,
59399
59425
  height: a.value.img,
59400
59426
  src: B(f1),
59401
59427
  alt: "nimbus"
59402
- }, null, 8, W2)]), K("i", {
59428
+ }, null, 8, G2)]), K("i", {
59403
59429
  ref_key: "minimizeButtonRef",
59404
59430
  ref: s,
59405
59431
  class: fe(["nimbus-mini bkai-icon", B(u) ? "bkai-yinyong" : "bkai-minus-line"]),
@@ -59415,7 +59441,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59415
59441
  "onDragging"
59416
59442
  ]));
59417
59443
  }
59418
- }), [["__scopeId", "data-v-26b6f3ea"]]), K2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59444
+ }), [["__scopeId", "data-v-26b6f3ea"]]), q2 = /* @__PURE__ */ b0(/* @__PURE__ */ V({
59419
59445
  __name: "ai-blueking",
59420
59446
  props: /* @__PURE__ */ bi({
59421
59447
  autoSwitchToInitialSession: { type: Boolean },
@@ -59461,7 +59487,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59461
59487
  getSideRenderComponent: { type: Function },
59462
59488
  getSideTabRenderComponent: { type: Function },
59463
59489
  onCustomTabChange: { type: Function }
59464
- }, g2),
59490
+ }, _2),
59465
59491
  emits: [
59466
59492
  "show",
59467
59493
  "close",
@@ -59488,29 +59514,29 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59488
59514
  "share"
59489
59515
  ],
59490
59516
  setup(e, { expose: t, emit: n }) {
59491
- let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: o, shareBusinessManager: s, shortcutManager: c, forwarders: l, forwardToManager: u, chatBotRef: d, draggableContainerRef: f, panelVisible: p, nimbusMinimized: m, normalizedUrl: h, agentName: g, currentSession: _, isCompressed: v, isWelcomeState: y, messageToolsTippyOptions: b, agentResources: x, agentPrompts: S, handleError: C, ensureSessionReady: w } = c2({
59517
+ let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: o, shareBusinessManager: s, shortcutManager: c, forwarders: l, forwardToManager: u, chatBotRef: d, draggableContainerRef: f, panelVisible: p, nimbusMinimized: m, normalizedUrl: h, agentName: g, currentSession: _, isCompressed: v, isWelcomeState: y, messageToolsTippyOptions: b, agentResources: x, agentPrompts: S, handleError: C, ensureSessionReady: w } = l2({
59492
59518
  props: r,
59493
59519
  emit: n
59494
- }), { show: T, hide: E, handleShow: D, handleClose: O, handleNimbusClick: k, handleDragging: A, handleResizing: j, handleDragStop: M, handleResizeStop: N, handleToggleCompression: P, handleCompressionChange: F, handleExecutionPanelChange: I, sendMessage: ee, handleReceiveStart: L, handleReceiveText: te, handleReceiveEnd: ne, handleStop: re, stopGeneration: ie, setCiteText: ae, focusInput: oe, selectShortcut: ce, sendShortcut: le, getChatHelper: ue, updatePosition: de, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } = f2({
59520
+ }), { show: T, hide: E, handleShow: D, handleClose: O, handleNimbusClick: k, handleDragging: A, handleResizing: j, handleDragStop: M, handleResizeStop: N, handleToggleCompression: P, handleCompressionChange: F, handleExecutionPanelChange: I, sendMessage: ee, handleReceiveStart: L, handleReceiveText: te, handleReceiveEnd: ne, handleStop: re, stopGeneration: ie, setCiteText: ae, focusInput: oe, selectShortcut: ce, sendShortcut: le, getChatHelper: ue, updatePosition: de, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } = p2({
59495
59521
  componentManager: a,
59496
59522
  chatBotRef: d,
59497
59523
  forwarders: l,
59498
59524
  forwardToManager: u,
59499
59525
  beforeNimbusClick: r.beforeNimbusClick,
59500
59526
  ensureSessionReady: w
59501
- }), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: R, handleNewChat: be, handleNewChatCreated: xe, handleHistoryClick: Se, handleHistorySessionSwitch: Ce, handleHistorySessionDelete: we, handleHistorySessionRename: Te, handleAutoGenerateName: Ee, handleHelpClick: De, handleRename: Oe, handleSessionSwitched: ke, addNewSession: Ae, switchToSession: je, updateSessionName: Me } = p2({
59527
+ }), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: R, handleNewChat: be, handleNewChatCreated: xe, handleHistoryClick: Se, handleHistorySessionSwitch: Ce, handleHistorySessionDelete: we, handleHistorySessionRename: Te, handleAutoGenerateName: Ee, handleHelpClick: De, handleRename: Oe, handleSessionSwitched: ke, addNewSession: Ae, switchToSession: je, updateSessionName: Me } = m2({
59502
59528
  chatHelper: i,
59503
59529
  sessionBusinessManager: o,
59504
59530
  chatBotRef: d,
59505
59531
  forwarders: l,
59506
59532
  handleError: C,
59507
59533
  currentSession: _
59508
- }), { isShareLoading: Ne, handleShare: Pe, handleCancelShare: Fe, handleConfirmShare: Ie } = m2({
59534
+ }), { isShareLoading: Ne, handleShare: Pe, handleCancelShare: Fe, handleConfirmShare: Ie } = h2({
59509
59535
  shareBusinessManager: s,
59510
59536
  chatBotRef: d,
59511
59537
  forwarders: l,
59512
59538
  handleError: C
59513
- }), { aiSelectionVisible: Le, filteredPopupShortcuts: Re, handleSelectionChange: ze, handleAiSelectionShortcut: Be } = l2({
59539
+ }), { aiSelectionVisible: Le, filteredPopupShortcuts: Re, handleSelectionChange: ze, handleAiSelectionShortcut: Be } = u2({
59514
59540
  shortcutManager: c,
59515
59541
  chatBotRef: d,
59516
59542
  forwardToManager: u,
@@ -59539,7 +59565,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59539
59565
  focusInput: oe
59540
59566
  }), (e, t) => (U(), G(pr, { to: r.teleportTo }, [K("div", { class: fe(["ai-blueking-v2", r.extCls]) }, [
59541
59567
  J(" 可拖拽容器 "),
59542
- q(B(H2), {
59568
+ q(B(U2), {
59543
59569
  ref_key: "draggableContainerRef",
59544
59570
  ref: f,
59545
59571
  "compressed-padding": r.miniPadding,
@@ -59597,7 +59623,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59597
59623
  key: "0"
59598
59624
  } : 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("."))),
59599
59625
  J(" ChatBot 核心组件(仅聊天区域) "),
59600
- q(r2, {
59626
+ q(i2, {
59601
59627
  ref_key: "chatBotRef",
59602
59628
  ref: d,
59603
59629
  "always-create-new-session": r.alwaysCreateNewSession,
@@ -59658,7 +59684,7 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59658
59684
  "onResizing"
59659
59685
  ]),
59660
59686
  J(" Nimbus 悬浮球 "),
59661
- r.hideNimbus ? J("v-if", !0) : (U(), G(G2, {
59687
+ r.hideNimbus ? J("v-if", !0) : (U(), G(K2, {
59662
59688
  key: 0,
59663
59689
  "is-minimize": B(m),
59664
59690
  "onUpdate:isMinimize": t[4] ||= (e) => /* @__PURE__ */ Xt(m) ? m.value = e : null,
@@ -59696,35 +59722,35 @@ var V2 = { class: "draggable-container-content" }, H2 = /* @__PURE__ */ b0(/* @_
59696
59722
  }), [["__scopeId", "data-v-f367dd3f"]]);
59697
59723
  //#endregion
59698
59724
  //#region src/vue2-wrapper.ts
59699
- function q2(e) {
59725
+ function J2(e) {
59700
59726
  return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
59701
59727
  }
59702
59728
  //#endregion
59703
59729
  //#region src/standalone-mount-core.ts
59704
- function J2() {
59730
+ function Y2() {
59705
59731
  return "bk";
59706
59732
  }
59707
- function Y2(e) {
59733
+ function X2(e) {
59708
59734
  if (typeof e != "string") return e;
59709
59735
  let t = document.querySelector(e);
59710
59736
  if (!t) throw Error(`[ai-blueking] mount container not found: ${e}`);
59711
59737
  return t;
59712
59738
  }
59713
- function X2(e) {
59739
+ function Z2(e) {
59714
59740
  if (!e) return {};
59715
59741
  let t = {};
59716
59742
  for (let [n, r] of Object.entries(e)) {
59717
59743
  if (!r) continue;
59718
- let e = n.startsWith("on") && n.length > 2 ? n : q2(n);
59744
+ let e = n.startsWith("on") && n.length > 2 ? n : J2(n);
59719
59745
  t[e] = r;
59720
59746
  }
59721
59747
  return t;
59722
59748
  }
59723
- function Z2(e, t, n) {
59724
- let r = Y2(e), i = /* @__PURE__ */ zt({ ...n?.props ?? {} }), a = null, o = Ws({ setup() {
59725
- return () => X(Fb, { prefix: J2() }, { default: () => X(t, {
59749
+ function Q2(e, t, n) {
59750
+ let r = X2(e), i = /* @__PURE__ */ zt({ ...n?.props ?? {} }), a = null, o = Ws({ setup() {
59751
+ return () => X(Fb, { prefix: Y2() }, { default: () => X(t, {
59726
59752
  ...i,
59727
- ...X2(n?.on),
59753
+ ...Z2(n?.on),
59728
59754
  ref: (e) => {
59729
59755
  a = e;
59730
59756
  }
@@ -59746,11 +59772,11 @@ function Z2(e, t, n) {
59746
59772
  }
59747
59773
  //#endregion
59748
59774
  //#region src/standalone-mount.ts
59749
- function Q2(e, t) {
59750
- return Z2(e, K2, t);
59751
- }
59752
59775
  function $2(e, t) {
59753
- return Z2(e, r2, t);
59776
+ return Q2(e, q2, t);
59777
+ }
59778
+ function e4(e, t) {
59779
+ return Q2(e, i2, t);
59754
59780
  }
59755
59781
  //#endregion
59756
- export { k1 as AGUIProtocol, K2 as AIBlueking, _2 as BluekingProtocol, i2 as BootstrapPhase, r2 as ChatBot, H0 as ChatBusinessManager, K0 as ComponentManager, H2 as DraggableContainer, qs as MessageContentType, gc as RenderMode, U0 as SessionBusinessManager, G0 as ShortcutManager, X0 as UIStateManager, X2 as buildStandaloneListeners, Ws as createApp, v2 as createBluekingProtocol, q0 as createComponentManager, g2 as defaultProps, X as h, Q2 as mountAIBlueking, $2 as mountChatBot, Z2 as mountStandaloneComponent, n0 as parseCustomBlocks, Us as render, Y2 as resolveMountContainer, a2 as useChatBootstrap, Q1 as useChatHelper, B2 as useDraggable };
59782
+ export { k1 as AGUIProtocol, q2 as AIBlueking, v2 as BluekingProtocol, a2 as BootstrapPhase, i2 as ChatBot, H0 as ChatBusinessManager, K0 as ComponentManager, U2 as DraggableContainer, qs as MessageContentType, gc as RenderMode, U0 as SessionBusinessManager, G0 as ShortcutManager, X0 as UIStateManager, Z2 as buildStandaloneListeners, Ws as createApp, y2 as createBluekingProtocol, q0 as createComponentManager, _2 as defaultProps, X as h, $2 as mountAIBlueking, e4 as mountChatBot, Q2 as mountStandaloneComponent, n0 as parseCustomBlocks, Us as render, X2 as resolveMountContainer, o2 as useChatBootstrap, Q1 as useChatHelper, V2 as useDraggable };