@blueking/ai-blueking 2.2.4-beta.8 → 2.2.4-beta.9

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.
@@ -55311,10 +55311,13 @@ var Aq = { class: "ai-input-attachment" }, jq = { class: "ai-input-attachment-de
55311
55311
  key: 1,
55312
55312
  class: "bkai-icon bkai-auto-refresh-line"
55313
55313
  }, f$ = { class: "right-section" }, p$ = {
55314
- key: 4,
55314
+ key: 3,
55315
+ class: "header-actions"
55316
+ }, m$ = {
55317
+ key: 5,
55315
55318
  "aria-hidden": "true",
55316
55319
  class: "header-toolbar-divider"
55317
- }, m$ = /* @__PURE__ */ we(/* @__PURE__ */ x({
55320
+ }, h$ = /* @__PURE__ */ we(/* @__PURE__ */ x({
55318
55321
  __name: "index",
55319
55322
  props: {
55320
55323
  agentName: { default: "" },
@@ -55605,8 +55608,9 @@ var Aq = { class: "ai-input-attachment" }, jq = { class: "ai-input-attachment-de
55605
55608
  content: J(ZE)("转人工"),
55606
55609
  boundary: "parent"
55607
55610
  }]]) : m("v-if", !0),
55611
+ t.$slots.headerActions ? (V(), h("div", p$, [W(t.$slots, "headerActions", {}, void 0, !0)])) : m("v-if", !0),
55608
55612
  r.showCompressionIcon ? ge((V(), h("i", {
55609
- key: 3,
55613
+ key: 4,
55610
55614
  class: P(["bkai-icon", D.value]),
55611
55615
  onClick: n[5] ||= (e) => i("toggle-compression")
55612
55616
  }, null, 2)), [[J(o), {
@@ -55621,9 +55625,9 @@ var Aq = { class: "ai-input-attachment" }, jq = { class: "ai-input-attachment-de
55621
55625
  boundary: "parent"
55622
55626
  }]]),
55623
55627
  m(" 设计稿:关闭与侧栏展开之间有竖线分隔 "),
55624
- r.showAsideToggle ? (V(), h("span", p$)) : m("v-if", !0),
55628
+ r.showAsideToggle ? (V(), h("span", m$)) : m("v-if", !0),
55625
55629
  r.showAsideToggle ? ge((V(), h("span", {
55626
- key: 5,
55630
+ key: 6,
55627
55631
  class: "bkai-icon aside-toggle",
55628
55632
  onClick: n[7] ||= ve((e) => i("toggle-aside"), ["stop"])
55629
55633
  }, [y(J(a))])), [[J(o), {
@@ -55633,31 +55637,31 @@ var Aq = { class: "ai-input-attachment" }, jq = { class: "ai-input-attachment-de
55633
55637
  ])
55634
55638
  ], 2));
55635
55639
  }
55636
- }), [["__scopeId", "data-v-03aace06"]]);
55640
+ }), [["__scopeId", "data-v-c3948a0e"]]);
55637
55641
  //#endregion
55638
55642
  //#region src/bootstrap/agent-bootstrap.ts
55639
- function h$(e) {
55643
+ function g$(e) {
55640
55644
  let t = HE(e);
55641
55645
  fetch(t, {
55642
55646
  method: "GET",
55643
55647
  credentials: "include"
55644
55648
  }).catch(() => {});
55645
55649
  }
55646
- async function g$(e, t = {}) {
55650
+ async function _$(e, t = {}) {
55647
55651
  let { enableModelSelect: n = !0 } = t, r = [e.agent.getAgentInfo(), e.session.getSessions()];
55648
55652
  n && typeof e.agent.getLlms == "function" && r.push(e.agent.getLlms().catch((e) => {
55649
55653
  console.error("[runAgentBootstrap] Failed to load models:", e);
55650
55654
  })), await Promise.all(r);
55651
55655
  let i = e.agent.info.value?.saasUrl;
55652
- i && h$(i);
55656
+ i && g$(i);
55653
55657
  }
55654
55658
  //#endregion
55655
55659
  //#region src/manager/business/model-selection-manager.ts
55656
- var _$ = class extends Error {
55660
+ var v$ = class extends Error {
55657
55661
  constructor(e = "当前没有可用模型,无法创建会话") {
55658
55662
  super(e), this.name = "ModelUnavailableError";
55659
55663
  }
55660
- }, v$ = class {
55664
+ }, y$ = class {
55661
55665
  _isLoading;
55662
55666
  _models;
55663
55667
  _selectedLlmCode;
@@ -55762,7 +55766,7 @@ var _$ = class extends Error {
55762
55766
  resolveModelForSession(e) {
55763
55767
  if (!this.enabled) return e;
55764
55768
  let t = this._models.value;
55765
- if (t.length === 0) throw new _$();
55769
+ if (t.length === 0) throw new v$();
55766
55770
  return e && t.some((t) => t.llm_code === e) ? e : this.hasValidSelection() ? this._selectedLlmCode.value : this.defaultModelCode();
55767
55771
  }
55768
55772
  setModels(e) {
@@ -55778,7 +55782,7 @@ var _$ = class extends Error {
55778
55782
  }
55779
55783
  this._selectedLlmCode.value = this._models.value.find((t) => t.llm_name === e)?.llm_code;
55780
55784
  }
55781
- }, y$ = class {
55785
+ }, b$ = class {
55782
55786
  _isGenerating;
55783
55787
  _isStopLoading;
55784
55788
  agentModule;
@@ -55813,7 +55817,7 @@ var _$ = class extends Error {
55813
55817
  this.eventEmitter?.emit(e, t);
55814
55818
  }
55815
55819
  constructor(e, t, n = null, r = null, i = {}, a) {
55816
- this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new v$(e, n), this._isGenerating = H(!1), this._isStopLoading = H(!1);
55820
+ this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new y$(e, n), this._isGenerating = H(!1), this._isStopLoading = H(!1);
55817
55821
  }
55818
55822
  get isGenerating() {
55819
55823
  return this._isGenerating;
@@ -55981,7 +55985,7 @@ var _$ = class extends Error {
55981
55985
  this._isStopLoading.value = !1;
55982
55986
  }
55983
55987
  }
55984
- }, b$ = class {
55988
+ }, x$ = class {
55985
55989
  agentModule;
55986
55990
  config;
55987
55991
  eventEmitter;
@@ -55995,7 +55999,7 @@ var _$ = class extends Error {
55995
55999
  return await this.modelSelection.ensureLoaded(), this.modelSelection.resolveModelForSession(e);
55996
56000
  }
55997
56001
  constructor(e, t = null, n = null, r = {}, i = null, a) {
55998
- this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new v$(t, e, { enabled: !1 });
56002
+ this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new y$(t, e, { enabled: !1 });
55999
56003
  }
56000
56004
  get currentSession() {
56001
56005
  return this.sessionModule.current;
@@ -56166,7 +56170,7 @@ var _$ = class extends Error {
56166
56170
  }), e;
56167
56171
  }
56168
56172
  }
56169
- }, x$ = class {
56173
+ }, S$ = class {
56170
56174
  messageModule;
56171
56175
  sessionModule;
56172
56176
  constructor(e, t) {
@@ -56183,7 +56187,7 @@ var _$ = class extends Error {
56183
56187
  userMessageIds: e.map((e) => String(e.id))
56184
56188
  };
56185
56189
  }
56186
- }, S$ = class {
56190
+ }, C$ = class {
56187
56191
  _agentShortcuts;
56188
56192
  _effectiveShortcuts;
56189
56193
  _propsShortcuts;
@@ -56240,7 +56244,7 @@ var _$ = class extends Error {
56240
56244
  setShortcuts(e) {
56241
56245
  this._propsShortcuts.value = e;
56242
56246
  }
56243
- }, C$ = class {
56247
+ }, w$ = class {
56244
56248
  _isCompressed;
56245
56249
  _isDraggingOrResizing;
56246
56250
  _nimbusMinimized;
@@ -56459,12 +56463,12 @@ var _$ = class extends Error {
56459
56463
  };
56460
56464
  }
56461
56465
  };
56462
- function w$(e) {
56463
- return new C$(e);
56466
+ function T$(e) {
56467
+ return new w$(e);
56464
56468
  }
56465
56469
  //#endregion
56466
56470
  //#region src/manager/event-types.ts
56467
- var T$ = {
56471
+ var E$ = {
56468
56472
  "panel-show": "show",
56469
56473
  "panel-hide": "close",
56470
56474
  "panel-toggle": null,
@@ -56514,7 +56518,7 @@ var T$ = {
56514
56518
  "agent-info-loaded": null,
56515
56519
  error: null
56516
56520
  };
56517
- function E$(e, t) {
56521
+ function D$(e, t) {
56518
56522
  switch (e) {
56519
56523
  case "send-message": return [t.content];
56520
56524
  case "rename": return [t.newName, t.sessionCode];
@@ -56545,12 +56549,12 @@ function E$(e, t) {
56545
56549
  }
56546
56550
  //#endregion
56547
56551
  //#region src/components/composables/use-chatbot-init.ts
56548
- var D$ = class extends Error {
56552
+ var O$ = class extends Error {
56549
56553
  constructor() {
56550
56554
  super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
56551
56555
  }
56552
56556
  };
56553
- function O$(e) {
56557
+ function k$(e) {
56554
56558
  let { props: t, emit: n, reportError: r, managerErrorBridge: i } = e, a = G(null), o = G(null), s = G(null), c = G(null), l = H(!1), u = H(!t.chatHelper), f = H(null), p = d(() => l.value), m = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
56555
56559
  valid: !1,
56556
56560
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
@@ -56586,7 +56590,7 @@ function O$(e) {
56586
56590
  }, _ = 0, v = null, y = null, b = null, x = (e) => {
56587
56591
  b &&= (e ? b.reject(e) : b.resolve(), null), v = null;
56588
56592
  }, S = (e) => {
56589
- if (e !== _) throw new D$();
56593
+ if (e !== _) throw new O$();
56590
56594
  }, C = async (e) => {
56591
56595
  if (t.enableModelSelect !== !1) {
56592
56596
  if (t.models?.length) {
@@ -56600,26 +56604,26 @@ function O$(e) {
56600
56604
  l.value = !1, f.value = null, u.value = !t.chatHelper, g(d), S(e), a.value = null, o.value = null, s.value = null, c.value = null;
56601
56605
  let p = h();
56602
56606
  if (!p) throw f.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
56603
- let m = t.modelSelectionManager ?? new v$(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new b$(p.session, p.agent, i, {
56607
+ let m = t.modelSelectionManager ?? new y$(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new x$(p.session, p.agent, i, {
56604
56608
  enableChatSession: !0,
56605
56609
  autoSwitchToInitialSession: !!t.sessionCode,
56606
56610
  loadRecentSessionOnMount: t.autoLoad,
56607
56611
  initialSessionCode: t.sessionCode,
56608
56612
  alwaysCreateNewSession: t.alwaysCreateNewSession
56609
- }, p.message, m), v = new y$(p.agent, p.message, p.session, i, {
56613
+ }, p.message, m), v = new b$(p.agent, p.message, p.session, i, {
56610
56614
  openingRemark: t.helloText,
56611
56615
  predefinedQuestions: t.prompts,
56612
56616
  placeholder: t.placeholder,
56613
56617
  onSessionRenamed: (e, t) => n("rename", e, t)
56614
- }, m), y = new S$(null, t.shortcuts || []);
56618
+ }, m), y = new C$(null, t.shortcuts || []);
56615
56619
  a.value = p, o.value = _, s.value = v, c.value = y;
56616
56620
  try {
56617
- u.value ? (await g$(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), S(e), await C(m), S(e), await _.loadRecentSession({ skipLoadSessions: !0 }), S(e)) : await C(m), S(e), l.value = !0, n("agent-info-loaded", p);
56621
+ u.value ? (await _$(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), S(e), await C(m), S(e), await _.loadRecentSession({ skipLoadSessions: !0 }), S(e)) : await C(m), S(e), l.value = !0, n("agent-info-loaded", p);
56618
56622
  } catch (t) {
56619
56623
  throw S(e), f.value = r(t, "Failed to initialize ChatBot"), t;
56620
56624
  }
56621
56625
  }, T = () => {
56622
- x(new D$()), y = null;
56626
+ x(new O$()), y = null;
56623
56627
  let e = ++_;
56624
56628
  v = new Promise((t, n) => {
56625
56629
  b = {
@@ -56650,24 +56654,24 @@ function O$(e) {
56650
56654
  }
56651
56655
  //#endregion
56652
56656
  //#region src/components/composables/use-chatbot-state.ts
56653
- var k$ = [{
56657
+ var A$ = [{
56654
56658
  id: "rebuild",
56655
56659
  hidden: !0
56656
- }], A$ = [{
56660
+ }], j$ = [{
56657
56661
  id: "delete",
56658
56662
  hidden: !0
56659
- }], j$ = [{
56663
+ }], M$ = [{
56660
56664
  id: "edit",
56661
56665
  hidden: !0
56662
56666
  }, {
56663
56667
  id: "delete",
56664
56668
  hidden: !0
56665
56669
  }];
56666
- function M$(e, t, n) {
56670
+ function N$(e, t, n) {
56667
56671
  return e ? [...n, ...t ?? []] : t;
56668
56672
  }
56669
- function N$(e) {
56670
- let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = d(() => r.value?.isStopLoading.value ? dO.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? dO.Streaming : dO.Complete), u = d(() => l.value === dO.Streaming ? pK.Disabled : void 0), f = d(() => ((t.chatHelper || n.value)?.agent)?.info.value?.agentType === "claw"), p = d(() => M$(f.value, t.messageTools, k$)), m = d(() => M$(f.value, t.updateTools, A$)), h = d(() => M$(f.value, void 0, j$)), g = d(() => r.value?.messages.value ?? []), _ = d(() => r.value?.isMessagesLoading.value ?? !1);
56673
+ function P$(e) {
56674
+ let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = d(() => r.value?.isStopLoading.value ? dO.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? dO.Streaming : dO.Complete), u = d(() => l.value === dO.Streaming ? pK.Disabled : void 0), f = d(() => ((t.chatHelper || n.value)?.agent)?.info.value?.agentType === "claw"), p = d(() => N$(f.value, t.messageTools, A$)), m = d(() => N$(f.value, t.updateTools, j$)), h = d(() => N$(f.value, void 0, M$)), g = d(() => r.value?.messages.value ?? []), _ = d(() => r.value?.isMessagesLoading.value ?? !1);
56671
56675
  return {
56672
56676
  messageStatus: l,
56673
56677
  messageToolsStatus: u,
@@ -56698,12 +56702,12 @@ function N$(e) {
56698
56702
  }
56699
56703
  //#endregion
56700
56704
  //#region src/components/composables/use-error-reporter.ts
56701
- var P$ = new Set([
56705
+ var F$ = new Set([
56702
56706
  "chat-error",
56703
56707
  "receive-error",
56704
56708
  "session-error"
56705
56709
  ]);
56706
- function F$(e, t = {}) {
56710
+ function I$(e, t = {}) {
56707
56711
  let n = /* @__PURE__ */ new WeakSet(), r = (r, i) => {
56708
56712
  let a = zE(r);
56709
56713
  return n.has(a) ? a : (n.add(a), console.error(i ? `[ChatBot] ${i}:` : "[ChatBot] error:", r), e("error", a), oe(t.errorToast) !== !1 && FC({
@@ -56713,50 +56717,50 @@ function F$(e, t = {}) {
56713
56717
  };
56714
56718
  return {
56715
56719
  managerErrorBridge: { emit: (e, t) => {
56716
- P$.has(e) && r(t?.error);
56720
+ F$.has(e) && r(t?.error);
56717
56721
  } },
56718
56722
  reportError: r
56719
56723
  };
56720
56724
  }
56721
56725
  //#endregion
56722
56726
  //#region src/components/composables/use-interrupt-resume.ts
56723
- var I$ = {
56727
+ var L$ = {
56724
56728
  [pO.ApprovalCancel]: mT.ApprovalCancel,
56725
56729
  [pO.FlowNodeRetry]: mT.FlowNodeRetry,
56726
56730
  [pO.FlowNodeSkip]: mT.FlowNodeSkip
56727
56731
  };
56728
- function L$(e) {
56732
+ function R$(e) {
56729
56733
  return "operation" in e;
56730
56734
  }
56731
- function R$(e) {
56735
+ function z$(e) {
56732
56736
  return "interruptId" in e && "reason" in e && e.reason === cO.UserQuestion;
56733
56737
  }
56734
- function z$(e) {
56738
+ function B$(e) {
56735
56739
  return e === "cancelled" ? wT.Cancelled : wT.Resolved;
56736
56740
  }
56737
- function B$(e) {
56741
+ function V$(e) {
56738
56742
  let t = e?.session.current?.value?.sessionCode;
56739
56743
  if (!t) throw Error("[ChatBot] Cannot resume interrupt: no active session");
56740
56744
  return t;
56741
56745
  }
56742
- function V$(e) {
56746
+ function H$(e) {
56743
56747
  return {
56744
56748
  interruptId: e.interruptId,
56745
- status: z$(e.status),
56749
+ status: B$(e.status),
56746
56750
  payload: e.payload
56747
56751
  };
56748
56752
  }
56749
- function H$(e) {
56753
+ function U$(e) {
56750
56754
  let { chatHelper: t, reportError: n } = e, r = async (e) => {
56751
56755
  let n = t.value;
56752
56756
  if (!n) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
56753
- if (!L$(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
56754
- let r = B$(n);
56757
+ if (!R$(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
56758
+ let r = V$(n);
56755
56759
  if (e.operation === pO.ApprovalRefresh) {
56756
56760
  n.agent.pollResumeSession(r);
56757
56761
  return;
56758
56762
  }
56759
- let i = I$[e.operation];
56763
+ let i = L$[e.operation];
56760
56764
  if (!i) throw Error(`[ChatBot] Unsupported interrupt resume operation: ${e.operation}`);
56761
56765
  let a = n.agent;
56762
56766
  if (e.operation === pO.ApprovalCancel) {
@@ -56770,21 +56774,21 @@ function H$(e) {
56770
56774
  }, i = async (e, n) => {
56771
56775
  let r = t.value;
56772
56776
  if (!r) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
56773
- let i = B$(r);
56777
+ let i = V$(r);
56774
56778
  await r.agent.streamRequest({
56775
56779
  sessionCode: i,
56776
- resume: V$(e),
56780
+ resume: H$(e),
56777
56781
  ...n ? { input: n } : {}
56778
56782
  });
56779
56783
  };
56780
56784
  return {
56781
56785
  handleInterruptResume: async (e, t) => {
56782
56786
  try {
56783
- if (L$(e)) {
56787
+ if (R$(e)) {
56784
56788
  await r(e);
56785
56789
  return;
56786
56790
  }
56787
- if (R$(e)) {
56791
+ if (z$(e)) {
56788
56792
  await i(e);
56789
56793
  return;
56790
56794
  }
@@ -56795,7 +56799,7 @@ function H$(e) {
56795
56799
  },
56796
56800
  resumeUserQuestionWithInput: async (e, t) => {
56797
56801
  try {
56798
- if (!t.payload || !R$(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
56802
+ if (!t.payload || !z$(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
56799
56803
  let n = typeof e == "string" ? e.trim() : "";
56800
56804
  if (!n) throw Error("[ChatBot] User question free text input is empty");
56801
56805
  await i(t.payload, n);
@@ -56807,7 +56811,7 @@ function H$(e) {
56807
56811
  }
56808
56812
  //#endregion
56809
56813
  //#region src/components/composables/use-message-sender.ts
56810
- function U$(e) {
56814
+ function W$(e) {
56811
56815
  let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = G([[]]), u = G("");
56812
56816
  pe(() => n.value?.session.current?.value?.sessionCode, (e, t) => {
56813
56817
  t && t !== e && (u.value = "");
@@ -56876,11 +56880,11 @@ function U$(e) {
56876
56880
  }
56877
56881
  //#endregion
56878
56882
  //#region src/components/composables/use-share-selection.ts
56879
- var W$ = (e) => !e || e.id === "share";
56880
- function G$(e) {
56883
+ var G$ = (e) => !e || e.id === "share";
56884
+ function K$(e) {
56881
56885
  let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
56882
56886
  if (!(!n.value || e.length === 0)) try {
56883
- await UE((await new x$(n.value.message, n.value.session).shareMessages(e)).shareUrl), FC({
56887
+ await UE((await new S$(n.value.message, n.value.session).shareMessages(e)).shareUrl), FC({
56884
56888
  message: "分享链接已复制到剪贴板",
56885
56889
  theme: "success"
56886
56890
  });
@@ -56892,12 +56896,12 @@ function G$(e) {
56892
56896
  }
56893
56897
  };
56894
56898
  return { handleConfirmShare: async (e, n) => {
56895
- r.value && W$(n) && await i(e), t("confirm-share", e, n);
56899
+ r.value && G$(n) && await i(e), t("confirm-share", e, n);
56896
56900
  } };
56897
56901
  }
56898
56902
  //#endregion
56899
56903
  //#region src/components/composables/use-shortcuts.ts
56900
- function K$(e) {
56904
+ function q$(e) {
56901
56905
  let { props: t, emit: n, shortcutManager: r, doSendMessage: i, reportError: a, selectedShortcut: o } = e, s = d(() => r.value?.effectiveShortcuts.value ?? []), c = (e, t) => {
56902
56906
  let n = e, r;
56903
56907
  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) {
@@ -56991,7 +56995,7 @@ function K$(e) {
56991
56995
  }
56992
56996
  //#endregion
56993
56997
  //#region src/components/composables/use-tool-actions.ts
56994
- function q$(e) {
56998
+ function J$(e) {
56995
56999
  let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, getShortcutFromMessage: o, buildShortcutProperty: s, getRequestOptions: c, reportError: l, stopGeneration: u } = e, d = async (e) => {
56996
57000
  if (!r.value || !n.value) {
56997
57001
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
@@ -57163,7 +57167,7 @@ function q$(e) {
57163
57167
  }
57164
57168
  //#endregion
57165
57169
  //#region src/components/chat-bot.vue
57166
- var J$ = /* @__PURE__ */ x({
57170
+ var Y$ = /* @__PURE__ */ x({
57167
57171
  __name: "chat-bot",
57168
57172
  props: {
57169
57173
  alwaysCreateNewSession: { type: Boolean },
@@ -57264,15 +57268,15 @@ var J$ = /* @__PURE__ */ x({
57264
57268
  set: () => {}
57265
57269
  }), w = d(() => R.value?.selectedLlmCode.value), T = () => {
57266
57270
  g.value?.focus?.();
57267
- }, { reportError: E, managerErrorBridge: D } = F$(s, { errorToast: () => r.errorToast }), { chatHelper: k, isStandaloneMode: A, isInitialized: j, isReady: M, initError: N, whenReady: L, chatBusinessManager: R, sessionBusinessManager: z, shortcutManager: B } = O$({
57271
+ }, { reportError: E, managerErrorBridge: D } = I$(s, { errorToast: () => r.errorToast }), { chatHelper: k, isStandaloneMode: A, isInitialized: j, isReady: M, initError: N, whenReady: L, chatBusinessManager: R, sessionBusinessManager: z, shortcutManager: B } = k$({
57268
57272
  props: r,
57269
57273
  emit: s,
57270
57274
  reportError: E,
57271
57275
  managerErrorBridge: D
57272
- }), { handleInterruptResume: ee, resumeUserQuestionWithInput: te } = H$({
57276
+ }), { handleInterruptResume: ee, resumeUserQuestionWithInput: te } = U$({
57273
57277
  chatHelper: k,
57274
57278
  reportError: E
57275
- }), { userInput: ne, cite: re, handleUpdateModelValue: U, doSendMessage: ie, handleSendMessage: ae, handleUpload: K, handleArtifactClick: q, handleStopSending: oe, stopGeneration: se } = U$({
57279
+ }), { userInput: ne, cite: re, handleUpdateModelValue: U, doSendMessage: ie, handleSendMessage: ae, handleUpload: K, handleArtifactClick: q, handleStopSending: oe, stopGeneration: se } = W$({
57276
57280
  emit: s,
57277
57281
  chatHelper: k,
57278
57282
  chatBusinessManager: R,
@@ -57281,7 +57285,7 @@ var J$ = /* @__PURE__ */ x({
57281
57285
  resumeUserQuestionWithInput: te,
57282
57286
  selectedShortcut: x,
57283
57287
  selectedResources: b
57284
- }), { handleSelectShortcut: ce, handleCloseShortcut: le, handleShortcutSubmit: de, selectShortcutWithText: fe, getShortcutFromMessage: me, buildShortcutProperty: he, sendShortcutDirectly: ge } = K$({
57288
+ }), { handleSelectShortcut: ce, handleCloseShortcut: le, handleShortcutSubmit: de, selectShortcutWithText: fe, getShortcutFromMessage: me, buildShortcutProperty: he, sendShortcutDirectly: ge } = q$({
57285
57289
  props: r,
57286
57290
  emit: s,
57287
57291
  chatHelper: k,
@@ -57289,7 +57293,7 @@ var J$ = /* @__PURE__ */ x({
57289
57293
  doSendMessage: ie,
57290
57294
  reportError: E,
57291
57295
  selectedShortcut: x
57292
- }), { messageStatus: _e, messageToolsStatus: ve, effectiveMessageTools: ye, effectiveUpdateTools: be, effectiveUserMessageTools: xe, messages: Se, isMessagesLoading: Ce, isGenerating: we, currentSession: Te, isWelcomeState: Ee, openingRemark: De, effectiveResources: Oe, effectivePrompts: ke, effectiveSkills: Ae, effectiveSupportUpload: je, chatbotStyle: Me, filteredShortcuts: Ne } = N$({
57296
+ }), { messageStatus: _e, messageToolsStatus: ve, effectiveMessageTools: ye, effectiveUpdateTools: be, effectiveUserMessageTools: xe, messages: Se, isMessagesLoading: Ce, isGenerating: we, currentSession: Te, isWelcomeState: Ee, openingRemark: De, effectiveResources: Oe, effectivePrompts: ke, effectiveSkills: Ae, effectiveSupportUpload: je, chatbotStyle: Me, filteredShortcuts: Ne } = P$({
57293
57297
  props: r,
57294
57298
  chatHelper: k,
57295
57299
  chatBusinessManager: R,
@@ -57298,7 +57302,7 @@ var J$ = /* @__PURE__ */ x({
57298
57302
  isStandaloneMode: A,
57299
57303
  isInitialized: j,
57300
57304
  selectedShortcut: x
57301
- }), { handleAgentAction: Pe, handleAgentFeedback: Fe, handleUserAction: Ie, handleUserInputConfirm: Le, handleUserShortcutConfirm: Re, handleStopStreaming: ze } = q$({
57305
+ }), { handleAgentAction: Pe, handleAgentFeedback: Fe, handleUserAction: Ie, handleUserInputConfirm: Le, handleUserShortcutConfirm: Re, handleStopStreaming: ze } = J$({
57302
57306
  emit: s,
57303
57307
  chatHelper: k,
57304
57308
  chatBusinessManager: R,
@@ -57326,7 +57330,7 @@ var J$ = /* @__PURE__ */ x({
57326
57330
  pe(() => r.models, (e) => {
57327
57331
  r.enableModelSelect === !1 || !R.value || e?.length && R.value.setModels(e);
57328
57332
  });
57329
- let { handleConfirmShare: Ge } = G$({
57333
+ let { handleConfirmShare: Ge } = K$({
57330
57334
  emit: s,
57331
57335
  chatHelper: k,
57332
57336
  isStandaloneMode: A
@@ -57487,7 +57491,7 @@ var J$ = /* @__PURE__ */ x({
57487
57491
  });
57488
57492
  //#endregion
57489
57493
  //#region src/vue2-wrapper.ts
57490
- function Y$(e, t) {
57494
+ function X$(e, t) {
57491
57495
  let { name: n, props: r, emitNames: i, exposeKeys: a, slots: o = [], deepWatchProps: s = [], methods: c = {} } = t, l = Object.keys(r);
57492
57496
  return {
57493
57497
  name: n,
@@ -57516,10 +57520,10 @@ function Y$(e, t) {
57516
57520
  t !== void 0 && (a[e] = (e) => t(e));
57517
57521
  }
57518
57522
  let s = Object.keys(a).length > 0 ? a : void 0;
57519
- return T(Oc, { prefix: Q$() }, { default: () => T(e, {
57523
+ return T(Oc, { prefix: $$() }, { default: () => T(e, {
57520
57524
  ...n.$attrs,
57521
57525
  ...r,
57522
- ...Z$(t, i),
57526
+ ...Q$(t, i),
57523
57527
  ref: (e) => {
57524
57528
  n.componentInstance = e;
57525
57529
  }
@@ -57548,28 +57552,28 @@ function Y$(e, t) {
57548
57552
  methods: c
57549
57553
  };
57550
57554
  }
57551
- function X$(e) {
57555
+ function Z$(e) {
57552
57556
  return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
57553
57557
  }
57554
- function Z$(e, t) {
57558
+ function Q$(e, t) {
57555
57559
  let n = {};
57556
- for (let r of t) n[X$(r)] = (...t) => {
57560
+ for (let r of t) n[Z$(r)] = (...t) => {
57557
57561
  e(r, ...t);
57558
57562
  };
57559
57563
  return n;
57560
57564
  }
57561
- function Q$() {
57565
+ function $$() {
57562
57566
  return "ai-bk";
57563
57567
  }
57564
57568
  //#endregion
57565
57569
  //#region src/composables/use-chat-bootstrap.ts
57566
- var $$ = /* @__PURE__ */ function(e) {
57570
+ var e1 = /* @__PURE__ */ function(e) {
57567
57571
  return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
57568
57572
  }({});
57569
- function e1(e) {
57573
+ function t1(e) {
57570
57574
  let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i, enableModelSelect: a = !0 } = e, o = oe(t);
57571
57575
  if (!o) throw Error("[useChatBootstrap] url is required");
57572
- let s = H($$.IDLE), c = H(null), l = H(!1), u = /* @__PURE__ */ new Map(), f = new TT({
57576
+ let s = H(e1.IDLE), c = H(null), l = H(!1), u = /* @__PURE__ */ new Map(), f = new TT({
57573
57577
  onStart: () => {
57574
57578
  i?.onStart?.();
57575
57579
  },
@@ -57587,14 +57591,14 @@ function e1(e) {
57587
57591
  protocol: f
57588
57592
  });
57589
57593
  f.injectMessageModule(p.message);
57590
- let m = d(() => s.value === $$.LOADING_AGENT), h = d(() => s.value === $$.READY), g = d(() => p.agent.info.value ?? null), _ = d(() => g.value?.agentName ?? ""), v = d(() => p.session.current.value ?? null), y = d(() => p.session.list.value ?? []), b = null, x = 0, S = async (e) => {
57594
+ let m = d(() => s.value === e1.LOADING_AGENT), h = d(() => s.value === e1.READY), g = d(() => p.agent.info.value ?? null), _ = d(() => g.value?.agentName ?? ""), v = d(() => p.session.current.value ?? null), y = d(() => p.session.list.value ?? []), b = null, x = 0, S = async (e) => {
57591
57595
  c.value = null;
57592
57596
  try {
57593
- if (s.value = $$.LOADING_AGENT, await g$(p, { enableModelSelect: a }), e !== x) return;
57594
- s.value = $$.READY, l.value = !0;
57597
+ if (s.value = e1.LOADING_AGENT, await _$(p, { enableModelSelect: a }), e !== x) return;
57598
+ s.value = e1.READY, l.value = !0;
57595
57599
  } catch (t) {
57596
57600
  if (e !== x) return;
57597
- throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = $$.ERROR, t;
57601
+ throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = e1.ERROR, t;
57598
57602
  }
57599
57603
  }, C = async () => {
57600
57604
  if (l.value) return;
@@ -57604,7 +57608,7 @@ function e1(e) {
57604
57608
  e === x && (b = null);
57605
57609
  }), b;
57606
57610
  }, w = () => {
57607
- x += 1, s.value = $$.IDLE, c.value = null, l.value = !1, b = null;
57611
+ x += 1, s.value = e1.IDLE, c.value = null, l.value = !1, b = null;
57608
57612
  }, T = async () => {
57609
57613
  w(), await C();
57610
57614
  }, E = async (e) => {
@@ -57638,7 +57642,7 @@ function e1(e) {
57638
57642
  }
57639
57643
  //#endregion
57640
57644
  //#region src/composables/use-event-bridge.ts
57641
- function t1(e) {
57645
+ function n1(e) {
57642
57646
  return {
57643
57647
  sendMessage: (t) => e("send-message", { content: t }),
57644
57648
  receiveStart: () => e("receive-start", {}),
@@ -57659,12 +57663,12 @@ function t1(e) {
57659
57663
  shareMessages: (t) => e("share-messages", { messageIds: t })
57660
57664
  };
57661
57665
  }
57662
- function n1(e) {
57666
+ function r1(e) {
57663
57667
  let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
57664
- for (let [e, a] of Object.entries(T$)) {
57668
+ for (let [e, a] of Object.entries(E$)) {
57665
57669
  if (a === null) continue;
57666
57670
  let o = t.on(e, (t) => {
57667
- let i = E$(e, t);
57671
+ let i = D$(e, t);
57668
57672
  r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
57669
57673
  });
57670
57674
  i.push(o);
@@ -57686,17 +57690,17 @@ function n1(e) {
57686
57690
  }
57687
57691
  //#endregion
57688
57692
  //#region src/composables/use-ai-blueking-init.ts
57689
- function r1(e) {
57690
- let { props: t, emit: n } = e, r = H(), i = H(), a = d(() => HE(t.url ?? "")), o = w$({
57693
+ function i1(e) {
57694
+ let { props: t, emit: n } = e, r = H(), i = H(), a = d(() => HE(t.url ?? "")), o = T$({
57691
57695
  initialPanelVisible: !1,
57692
57696
  initialNimbusMinimized: t.defaultMinimize,
57693
57697
  enablePopup: t.enablePopup,
57694
57698
  enableNimbus: !t.hideNimbus,
57695
57699
  enableDraggable: t.draggable
57696
- }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = n1({
57700
+ }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = r1({
57697
57701
  componentManager: o,
57698
57702
  emit: n
57699
- }), u = t1(l), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
57703
+ }), u = n1(l), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
57700
57704
  p &&= (clearTimeout(p.timer), null);
57701
57705
  }, g = (e) => {
57702
57706
  let { apiName: n, error: r, action: i, source: a, shouldToast: s = !0 } = e, c = r instanceof Error ? r.message : String(r), l = r instanceof Error ? r : null;
@@ -57738,7 +57742,7 @@ function r1(e) {
57738
57742
  error: e,
57739
57743
  source: "business"
57740
57744
  });
57741
- }, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } = e1({
57745
+ }, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } = t1({
57742
57746
  url: a,
57743
57747
  requestOptions: () => oe(t.requestOptions),
57744
57748
  autoInit: !0,
@@ -57765,7 +57769,7 @@ function r1(e) {
57765
57769
  D.onError?.((e) => {
57766
57770
  _(e);
57767
57771
  }, { ignoreErrors: t.ignoreErrors });
57768
- let O = new v$(D.agent, D.session, { enabled: t.enableModelSelect !== !1 }), k = async () => {
57772
+ let O = new y$(D.agent, D.session, { enabled: t.enableModelSelect !== !1 }), k = async () => {
57769
57773
  if (t.enableModelSelect !== !1) {
57770
57774
  if (t.models?.length) {
57771
57775
  O.setModels(t.models);
@@ -57773,11 +57777,11 @@ function r1(e) {
57773
57777
  }
57774
57778
  await O.ensureLoaded();
57775
57779
  }
57776
- }, A = new b$(D.session, D.agent, null, {
57780
+ }, A = new x$(D.session, D.agent, null, {
57777
57781
  enableChatSession: t.enableChatSession,
57778
57782
  initialSessionCode: t.initialSessionCode,
57779
57783
  alwaysCreateNewSession: t.alwaysCreateNewSession
57780
- }, D.message, O), j = new x$(D.message, D.session), M = new S$(null, t.shortcuts || []), N = null, P = () => t.loadRecentSessionOnMount ? (N ||= k().then(() => A.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
57784
+ }, D.message, O), j = new S$(D.message, D.session), M = new C$(null, t.shortcuts || []), N = null, P = () => t.loadRecentSessionOnMount ? (N ||= k().then(() => A.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
57781
57785
  N = null;
57782
57786
  }), N) : Promise.resolve(), F = async () => {
57783
57787
  await v("init", async () => {
@@ -57865,7 +57869,7 @@ function r1(e) {
57865
57869
  }
57866
57870
  //#endregion
57867
57871
  //#region src/composables/use-ai-selection.ts
57868
- function i1(e) {
57872
+ function a1(e) {
57869
57873
  let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = H(!1), s = H("");
57870
57874
  return {
57871
57875
  aiSelectionVisible: o,
@@ -57887,7 +57891,7 @@ function i1(e) {
57887
57891
  }
57888
57892
  //#endregion
57889
57893
  //#region src/composables/use-nimbus.ts
57890
- function a1(e, t = !1) {
57894
+ function o1(e, t = !1) {
57891
57895
  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) => {
57892
57896
  e ? i.value = window.innerWidth - 12 : i.value = r;
57893
57897
  }, f = (e, t) => {
@@ -57940,9 +57944,9 @@ function a1(e, t = !1) {
57940
57944
  }
57941
57945
  //#endregion
57942
57946
  //#region src/composables/use-panel-container.ts
57943
- var o1 = 560;
57944
- function s1(e) {
57945
- let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = H(!0), c = o1, l = async (e) => {
57947
+ var s1 = 560;
57948
+ function c1(e) {
57949
+ let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = H(!0), c = s1, l = async (e) => {
57946
57950
  t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
57947
57951
  }, u = async (e) => {
57948
57952
  await l(e);
@@ -57969,7 +57973,7 @@ function s1(e) {
57969
57973
  }, y = (e) => {
57970
57974
  t.setCompressed(e);
57971
57975
  }, b = (e, t) => {
57972
- c = Math.max(o1, t ?? c);
57976
+ c = Math.max(s1, t ?? c);
57973
57977
  }, x = async () => {
57974
57978
  s.value &&= (await t.expandForSidePanel(c, { onBeforeSizeChange: () => {
57975
57979
  s.value = !1;
@@ -58044,7 +58048,7 @@ function s1(e) {
58044
58048
  }
58045
58049
  //#endregion
58046
58050
  //#region src/composables/use-session-handlers.ts
58047
- function c1(e) {
58051
+ function l1(e) {
58048
58052
  let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, reportSdkError: a, currentSession: o } = e, s = H(""), c = H(!0), l = H(!1), u = H(!1), d = () => IE(t.message.list.value);
58049
58053
  return pe(() => o.value, (e) => {
58050
58054
  e && (s.value = e.sessionName || "", l.value = (e.sessionContentCount ?? 0) > 0 || d());
@@ -58175,7 +58179,7 @@ function c1(e) {
58175
58179
  }
58176
58180
  //#endregion
58177
58181
  //#region src/composables/use-share-handlers.ts
58178
- function l1(e) {
58182
+ function u1(e) {
58179
58183
  let { shareBusinessManager: t, chatBotRef: n, emit: r, forwarders: i, reportSdkError: a } = e, o = H(!1);
58180
58184
  return {
58181
58185
  isShareLoading: o,
@@ -58186,7 +58190,7 @@ function l1(e) {
58186
58190
  n.value?.exitShareMode();
58187
58191
  },
58188
58192
  handleConfirmShare: async (e, s) => {
58189
- if (!W$(s)) {
58193
+ if (!G$(s)) {
58190
58194
  n.value?.exitShareMode(), r("confirm-share", e, s);
58191
58195
  return;
58192
58196
  }
@@ -58212,7 +58216,7 @@ function l1(e) {
58212
58216
  }
58213
58217
  //#endregion
58214
58218
  //#region src/composables/use-tippy.ts
58215
- function u1(e = {}) {
58219
+ function d1(e = {}) {
58216
58220
  let t = H([]), n = (n, r, i = {}) => {
58217
58221
  try {
58218
58222
  let a = typeof n == "string" ? document.querySelector(n) : n;
@@ -58265,7 +58269,7 @@ function u1(e = {}) {
58265
58269
  }
58266
58270
  //#endregion
58267
58271
  //#region src/config/prop-defaults.ts
58268
- var d1 = {
58272
+ var f1 = {
58269
58273
  url: "",
58270
58274
  title: "",
58271
58275
  extCls: "",
@@ -58315,31 +58319,31 @@ var d1 = {
58315
58319
  };
58316
58320
  //#endregion
58317
58321
  //#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
58318
- function f1(e) {
58322
+ function p1(e) {
58319
58323
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
58320
58324
  }
58321
- function p1(e, t, n, r = 1) {
58325
+ function m1(e, t, n, r = 1) {
58322
58326
  let [i, a] = typeof r == "number" ? [r, r] : r;
58323
58327
  return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
58324
58328
  }
58325
- function m1(e, t, n) {
58326
- return e - t - n;
58327
- }
58328
58329
  function h1(e, t, n) {
58329
58330
  return e - t - n;
58330
58331
  }
58331
58332
  function g1(e, t, n) {
58332
- return t !== null && e < t ? t : n !== null && n < e ? n : e;
58333
+ return e - t - n;
58333
58334
  }
58334
58335
  function _1(e, t, n) {
58336
+ return t !== null && e < t ? t : n !== null && n < e ? n : e;
58337
+ }
58338
+ function v1(e, t, n) {
58335
58339
  let r = e, i = [
58336
58340
  "matches",
58337
58341
  "webkitMatchesSelector",
58338
58342
  "mozMatchesSelector",
58339
58343
  "msMatchesSelector",
58340
58344
  "oMatchesSelector"
58341
- ].find((e) => f1(r[e]));
58342
- if (!f1(r[i])) return !1;
58345
+ ].find((e) => p1(r[e]));
58346
+ if (!p1(r[i])) return !1;
58343
58347
  do {
58344
58348
  if (r[i](t)) return !0;
58345
58349
  if (r === n) return !1;
@@ -58347,21 +58351,21 @@ function _1(e, t, n) {
58347
58351
  } while (r);
58348
58352
  return !1;
58349
58353
  }
58350
- function v1(e) {
58354
+ function y1(e) {
58351
58355
  let t = window.getComputedStyle(e);
58352
58356
  return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
58353
58357
  }
58354
- function y1(e, t, n) {
58358
+ function b1(e, t, n) {
58355
58359
  e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
58356
58360
  }
58357
- function b1(e, t, n) {
58361
+ function x1(e, t, n) {
58358
58362
  e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
58359
58363
  }
58360
- var x1 = (e, t) => {
58364
+ var S1 = (e, t) => {
58361
58365
  let n = e.__vccOpts || e;
58362
58366
  for (let [e, r] of t) n[e] = r;
58363
58367
  return n;
58364
- }, S1 = {
58368
+ }, C1 = {
58365
58369
  mouse: {
58366
58370
  start: "mousedown",
58367
58371
  move: "mousemove",
@@ -58372,17 +58376,17 @@ var x1 = (e, t) => {
58372
58376
  move: "touchmove",
58373
58377
  stop: "touchend"
58374
58378
  }
58375
- }, C1 = {
58379
+ }, w1 = {
58376
58380
  userSelect: "none",
58377
58381
  MozUserSelect: "none",
58378
58382
  WebkitUserSelect: "none",
58379
58383
  MsUserSelect: "none"
58380
- }, w1 = {
58384
+ }, T1 = {
58381
58385
  userSelect: "auto",
58382
58386
  MozUserSelect: "auto",
58383
58387
  WebkitUserSelect: "auto",
58384
58388
  MsUserSelect: "auto"
58385
- }, T1 = S1.mouse, E1 = {
58389
+ }, E1 = C1.mouse, D1 = {
58386
58390
  replace: !0,
58387
58391
  name: "vue-draggable-resizable",
58388
58392
  props: {
@@ -58587,11 +58591,11 @@ var x1 = (e, t) => {
58587
58591
  this.enableNativeDrag || (this.$el.ondragstart = () => !1);
58588
58592
  let [e, t] = this.getParentSize();
58589
58593
  this.parentWidth = e, this.parentHeight = t;
58590
- let [n, r] = v1(this.$el);
58591
- 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"), y1(document.documentElement, "mousedown", this.deselect), y1(document.documentElement, "touchend touchcancel", this.deselect), y1(window, "resize", this.checkParentSize);
58594
+ let [n, r] = y1(this.$el);
58595
+ 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"), b1(document.documentElement, "mousedown", this.deselect), b1(document.documentElement, "touchend touchcancel", this.deselect), b1(window, "resize", this.checkParentSize);
58592
58596
  },
58593
58597
  beforeUnmount: function() {
58594
- b1(document.documentElement, "mousedown", this.deselect), b1(document.documentElement, "touchstart", this.handleUp), b1(document.documentElement, "mousemove", this.move), b1(document.documentElement, "touchmove", this.move), b1(document.documentElement, "mouseup", this.handleUp), b1(document.documentElement, "touchend touchcancel", this.deselect), b1(window, "resize", this.checkParentSize);
58598
+ x1(document.documentElement, "mousedown", this.deselect), x1(document.documentElement, "touchstart", this.handleUp), x1(document.documentElement, "mousemove", this.move), x1(document.documentElement, "touchmove", this.move), x1(document.documentElement, "mouseup", this.handleUp), x1(document.documentElement, "touchend touchcancel", this.deselect), x1(window, "resize", this.checkParentSize);
58595
58599
  },
58596
58600
  methods: {
58597
58601
  resetBoundsAndMouseState() {
@@ -58627,21 +58631,21 @@ var x1 = (e, t) => {
58627
58631
  return [null, null];
58628
58632
  },
58629
58633
  elementTouchDown(e) {
58630
- T1 = S1.touch, this.elementDown(e);
58634
+ E1 = C1.touch, this.elementDown(e);
58631
58635
  },
58632
58636
  elementMouseDown(e) {
58633
- T1 = S1.mouse, this.elementDown(e);
58637
+ E1 = C1.mouse, this.elementDown(e);
58634
58638
  },
58635
58639
  elementDown(e) {
58636
58640
  if (e instanceof MouseEvent && e.button !== 0) return;
58637
58641
  let t = e.target || e.srcElement;
58638
58642
  if (this.$el.contains(t)) {
58639
58643
  if (this.onDragStart(e) === !1) return;
58640
- if (this.dragHandle && !_1(t, this.dragHandle, this.$el) || this.dragCancel && _1(t, this.dragCancel, this.$el)) {
58644
+ if (this.dragHandle && !v1(t, this.dragHandle, this.$el) || this.dragCancel && v1(t, this.dragCancel, this.$el)) {
58641
58645
  this.dragging = !1;
58642
58646
  return;
58643
58647
  }
58644
- 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()), y1(document.documentElement, T1.move, this.move), y1(document.documentElement, T1.stop, this.handleUp);
58648
+ 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()), b1(document.documentElement, E1.move, this.move), b1(document.documentElement, E1.stop, this.handleUp);
58645
58649
  }
58646
58650
  },
58647
58651
  calcDragLimits() {
@@ -58658,13 +58662,13 @@ var x1 = (e, t) => {
58658
58662
  },
58659
58663
  deselect(e) {
58660
58664
  let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
58661
- !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), b1(document.documentElement, T1.move, this.handleResize)), this.resetBoundsAndMouseState();
58665
+ !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), x1(document.documentElement, E1.move, this.handleResize)), this.resetBoundsAndMouseState();
58662
58666
  },
58663
58667
  handleTouchDown(e, t) {
58664
- T1 = S1.touch, this.handleDown(e, t);
58668
+ E1 = C1.touch, this.handleDown(e, t);
58665
58669
  },
58666
58670
  handleDown(e, t) {
58667
- 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(), y1(document.documentElement, T1.move, this.handleResize), y1(document.documentElement, T1.stop, this.handleUp));
58671
+ 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(), b1(document.documentElement, E1.move, this.handleResize), b1(document.documentElement, E1.stop, this.handleUp));
58668
58672
  },
58669
58673
  calcResizeLimits() {
58670
58674
  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;
@@ -58685,41 +58689,41 @@ var x1 = (e, t) => {
58685
58689
  this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
58686
58690
  },
58687
58691
  handleDrag(e) {
58688
- let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = p1(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 = g1(i.left - a, r.minLeft, r.maxLeft), c = g1(i.top - o, r.minTop, r.maxTop);
58692
+ let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = m1(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 = _1(i.left - a, r.minLeft, r.maxLeft), c = _1(i.top - o, r.minTop, r.maxTop);
58689
58693
  if (this.onDrag(s, c) === !1) return;
58690
- let l = g1(i.right + a, r.minRight, r.maxRight), u = g1(i.bottom + o, r.minBottom, r.maxBottom);
58694
+ let l = _1(i.right + a, r.minRight, r.maxRight), u = _1(i.bottom + o, r.minBottom, r.maxBottom);
58691
58695
  this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
58692
58696
  },
58693
58697
  moveHorizontally(e) {
58694
- let [t, n] = p1(this.grid, e, this.top, 1), r = g1(t, this.bounds.minLeft, this.bounds.maxLeft);
58698
+ let [t, n] = m1(this.grid, e, this.top, 1), r = _1(t, this.bounds.minLeft, this.bounds.maxLeft);
58695
58699
  this.left = r, this.right = this.parentWidth - this.width - r;
58696
58700
  },
58697
58701
  moveVertically(e) {
58698
- let [t, n] = p1(this.grid, this.left, e, 1), r = g1(n, this.bounds.minTop, this.bounds.maxTop);
58702
+ let [t, n] = m1(this.grid, this.left, e, 1), r = _1(n, this.bounds.minTop, this.bounds.maxTop);
58699
58703
  this.top = r, this.bottom = this.parentHeight - this.height - r;
58700
58704
  },
58701
58705
  handleResize(e) {
58702
58706
  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);
58703
58707
  !this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
58704
- let [l, u] = p1(this.grid, s, c, this.scale);
58705
- this.handle.includes("b") ? (i = g1(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 = g1(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 = g1(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 = g1(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58706
- let d = m1(this.parentWidth, t, r), f = h1(this.parentHeight, n, i);
58708
+ let [l, u] = m1(this.grid, s, c, this.scale);
58709
+ this.handle.includes("b") ? (i = _1(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 = _1(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 = _1(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 = _1(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58710
+ let d = h1(this.parentWidth, t, r), f = g1(this.parentHeight, n, i);
58707
58711
  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);
58708
58712
  },
58709
58713
  changeWidth(e) {
58710
- let [t, n] = p1(this.grid, e, 0, 1), r = g1(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58714
+ let [t, n] = m1(this.grid, e, 0, 1), r = _1(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58711
58715
  this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
58712
- let a = m1(this.parentWidth, this.left, r), o = h1(this.parentHeight, this.top, i);
58716
+ let a = h1(this.parentWidth, this.left, r), o = g1(this.parentHeight, this.top, i);
58713
58717
  this.right = r, this.bottom = i, this.width = a, this.height = o;
58714
58718
  },
58715
58719
  changeHeight(e) {
58716
- let [t, n] = p1(this.grid, 0, e, 1), r = g1(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58720
+ let [t, n] = m1(this.grid, 0, e, 1), r = _1(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58717
58721
  this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
58718
- let a = m1(this.parentWidth, this.left, i), o = h1(this.parentHeight, this.top, r);
58722
+ let a = h1(this.parentWidth, this.left, i), o = g1(this.parentHeight, this.top, r);
58719
58723
  this.right = i, this.bottom = r, this.width = a, this.height = o;
58720
58724
  },
58721
58725
  handleUp(e) {
58722
- 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)), b1(document.documentElement, T1.move, this.handleResize);
58726
+ 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)), x1(document.documentElement, E1.move, this.handleResize);
58723
58727
  }
58724
58728
  },
58725
58729
  computed: {
@@ -58729,7 +58733,7 @@ var x1 = (e, t) => {
58729
58733
  width: this.computedWidth,
58730
58734
  height: this.computedHeight,
58731
58735
  zIndex: this.zIndex,
58732
- ...this.dragging && this.disableUserSelect ? C1 : w1
58736
+ ...this.dragging && this.disableUserSelect ? w1 : T1
58733
58737
  };
58734
58738
  },
58735
58739
  actualHandles() {
@@ -58791,8 +58795,8 @@ var x1 = (e, t) => {
58791
58795
  this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
58792
58796
  }
58793
58797
  }
58794
- }, D1 = ["onMousedown", "onTouchstart"];
58795
- function O1(e, t, n, r, i, a) {
58798
+ }, O1 = ["onMousedown", "onTouchstart"];
58799
+ function k1(e, t, n, r, i, a) {
58796
58800
  return V(), h("div", {
58797
58801
  style: I(a.style),
58798
58802
  class: P([{
@@ -58810,18 +58814,18 @@ function O1(e, t, n, r, i, a) {
58810
58814
  style: I({ display: e.enabled ? "block" : "none" }),
58811
58815
  onMousedown: ve((e) => a.handleDown(t, e), ["stop", "prevent"]),
58812
58816
  onTouchstart: ve((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
58813
- }, [W(e.$slots, t)], 46, D1))), 128)), W(e.$slots, "default")], 38);
58817
+ }, [W(e.$slots, t)], 46, O1))), 128)), W(e.$slots, "default")], 38);
58814
58818
  }
58815
- var k1 = /* @__PURE__ */ x1(E1, [["render", O1]]);
58816
- function A1(e) {
58817
- A1.installed || (A1.installed = !0, e.component("VueDraggableResizable", k1));
58819
+ var A1 = /* @__PURE__ */ S1(D1, [["render", k1]]);
58820
+ function j1(e) {
58821
+ j1.installed || (j1.installed = !0, e.component("VueDraggableResizable", A1));
58818
58822
  }
58819
- var j1 = { install: A1 }, M1 = null;
58820
- typeof window < "u" ? M1 = window.Vue : typeof global < "u" && (M1 = global.Vue), M1 && M1.use(j1);
58823
+ var M1 = { install: j1 }, N1 = null;
58824
+ typeof window < "u" ? N1 = window.Vue : typeof global < "u" && (N1 = global.Vue), N1 && N1.use(M1);
58821
58825
  //#endregion
58822
58826
  //#region src/containers/use-draggable.ts
58823
- var N1 = 3;
58824
- function P1(e = {}, t) {
58827
+ var P1 = 3;
58828
+ function F1(e = {}, t) {
58825
58829
  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 = 0, S = 0, C = !1, w = null, T = H(!1), E = (e) => {
58826
58830
  let t = window.innerWidth, n = { ...e };
58827
58831
  return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
@@ -58831,7 +58835,7 @@ function P1(e = {}, t) {
58831
58835
  width: m.value,
58832
58836
  height: h.value
58833
58837
  }), O = (e, t) => {
58834
- T.value && (w !== null && Math.abs(e - w.x) <= N1 && Math.abs(t - w.width) <= N1 || (y = null, C = !1));
58838
+ T.value && (w !== null && Math.abs(e - w.x) <= P1 && Math.abs(t - w.width) <= P1 || (y = null, C = !1));
58835
58839
  }, k = (e, n) => {
58836
58840
  p.value = e, f.value = n, v.value = e - (window.innerWidth - m.value), O(e, m.value), t?.onDragging?.(D());
58837
58841
  }, A = (e, n, r, i) => {
@@ -58943,7 +58947,7 @@ function P1(e = {}, t) {
58943
58947
  }
58944
58948
  //#endregion
58945
58949
  //#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
58946
- var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58950
+ var I1 = { class: "draggable-container-content" }, L1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58947
58951
  __name: "draggable-container",
58948
58952
  props: {
58949
58953
  className: { default: "" },
@@ -58980,7 +58984,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
58980
58984
  "compression-change"
58981
58985
  ],
58982
58986
  setup(e, { expose: t, emit: n }) {
58983
- 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, abortSidePanelSequence: O } = P1({
58987
+ 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, abortSidePanelSequence: O } = F1({
58984
58988
  initWidth: r.defaultWidth,
58985
58989
  minWidth: r.minWidth,
58986
58990
  minHeight: r.minHeight,
@@ -59030,7 +59034,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59030
59034
  positionAndSize: A,
59031
59035
  isCompressed: h,
59032
59036
  isSidePanelExpanded: _
59033
- }), (e, t) => ge((V(), p(J(k1), {
59037
+ }), (e, t) => ge((V(), p(J(A1), {
59034
59038
  ref: "draggableRef",
59035
59039
  active: r.visible,
59036
59040
  class: P([
@@ -59057,7 +59061,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59057
59061
  onResizeStop: R,
59058
59062
  onResizing: F
59059
59063
  }, {
59060
- default: Y(() => [g("div", F1, [W(e.$slots, "default", {}, void 0, !0)])]),
59064
+ default: Y(() => [g("div", I1, [W(e.$slots, "default", {}, void 0, !0)])]),
59061
59065
  _: 3
59062
59066
  }, 8, [
59063
59067
  "active",
@@ -59075,11 +59079,11 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59075
59079
  "y"
59076
59080
  ])), [[fe, r.visible]]);
59077
59081
  }
59078
- }), [["__scopeId", "data-v-7417a71b"]]), L1 = { class: "nimbus-bkai-wrapper" }, R1 = [
59082
+ }), [["__scopeId", "data-v-7417a71b"]]), R1 = { class: "nimbus-bkai-wrapper" }, z1 = [
59079
59083
  "width",
59080
59084
  "height",
59081
59085
  "src"
59082
- ], z1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
59086
+ ], B1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
59083
59087
  name: "NimbusButton",
59084
59088
  __name: "nimbus",
59085
59089
  props: {
@@ -59131,11 +59135,11 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59131
59135
  right: -6
59132
59136
  }
59133
59137
  }
59134
- }, 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 } = a1(r, n.isMinimize);
59138
+ }, 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 } = o1(r, n.isMinimize);
59135
59139
  pe(u, (e) => {
59136
59140
  r("update:isMinimize", e);
59137
59141
  });
59138
- let x = d(() => u.value ? ZE("恢复默认大小") : ZE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = u1({
59142
+ let x = d(() => u.value ? ZE("恢复默认大小") : ZE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = d1({
59139
59143
  theme: "ai-blueking",
59140
59144
  delay: [0, 0]
59141
59145
  }), w = () => {
@@ -59155,7 +59159,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59155
59159
  }), window.addEventListener("resize", w);
59156
59160
  }), L(() => {
59157
59161
  window.removeEventListener("resize", w);
59158
- }), (t, n) => (V(), p(J(k1), {
59162
+ }), (t, n) => (V(), p(J(A1), {
59159
59163
  active: !e.isPanelShow,
59160
59164
  axis: "y",
59161
59165
  draggable: !0,
@@ -59177,12 +59181,12 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59177
59181
  onMouseenter: n[3] ||= (...e) => J(_) && J(_)(...e),
59178
59182
  onMouseleave: n[4] ||= (...e) => J(v) && J(v)(...e),
59179
59183
  onMouseup: n[5] ||= (...e) => J(b) && J(b)(...e)
59180
- }, [g("div", L1, [g("img", {
59184
+ }, [g("div", R1, [g("img", {
59181
59185
  width: a.value.img,
59182
59186
  height: a.value.img,
59183
59187
  src: J(i$),
59184
59188
  alt: "nimbus"
59185
- }, null, 8, R1)]), g("i", {
59189
+ }, null, 8, z1)]), g("i", {
59186
59190
  ref_key: "minimizeButtonRef",
59187
59191
  ref: s,
59188
59192
  class: P(["nimbus-mini bkai-icon", J(u) ? "bkai-yinyong" : "bkai-minus-line"]),
@@ -59198,7 +59202,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59198
59202
  "onDragging"
59199
59203
  ]));
59200
59204
  }
59201
- }), [["__scopeId", "data-v-26b6f3ea"]]), B1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
59205
+ }), [["__scopeId", "data-v-26b6f3ea"]]), V1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
59202
59206
  inheritAttrs: !1,
59203
59207
  __name: "ai-blueking",
59204
59208
  props: /* @__PURE__ */ A({
@@ -59255,7 +59259,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59255
59259
  resizeProps: {},
59256
59260
  size: {},
59257
59261
  timezone: {}
59258
- }, d1),
59262
+ }, f1),
59259
59263
  emits: [
59260
59264
  "show",
59261
59265
  "close",
@@ -59284,30 +59288,30 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59284
59288
  "share"
59285
59289
  ],
59286
59290
  setup(e, { expose: t, emit: n }) {
59287
- let r = e, i = n, a = se(), { chatHelper: o, componentManager: c, modelSelection: l, sessionBusinessManager: u, shareBusinessManager: f, shortcutManager: h, forwarders: v, forwardToManager: b, chatBotRef: x, draggableContainerRef: S, panelVisible: w, nimbusMinimized: T, normalizedUrl: E, agentName: D, currentSession: k, isCompressed: A, isWelcomeState: j, agentResources: M, agentPrompts: N, agentSkills: L, handleError: R, reportSdkError: z, ensureSessionReady: B, updateAgentInfo: ee } = r1({
59291
+ let r = e, i = n, a = se(), { chatHelper: o, componentManager: c, modelSelection: l, sessionBusinessManager: u, shareBusinessManager: f, shortcutManager: h, forwarders: v, forwardToManager: b, chatBotRef: x, draggableContainerRef: S, panelVisible: w, nimbusMinimized: T, normalizedUrl: E, agentName: D, currentSession: k, isCompressed: A, isWelcomeState: j, agentResources: M, agentPrompts: N, agentSkills: L, handleError: R, reportSdkError: z, ensureSessionReady: B, updateAgentInfo: ee } = i1({
59288
59292
  props: r,
59289
59293
  emit: i
59290
- }), te = d(() => l.selectedLlmCode.value), { show: ne, hide: H, handleShow: re, handleClose: U, handleNimbusClick: ie, handleDragging: ae, handleResizing: G, handleDragStop: K, handleResizeStop: q, handleToggleCompression: oe, handleCompressionChange: ce, handleExecutionPanelChange: le, handleToggleAside: ue, handleAsideCollapsedUpdate: de, asideCollapsed: fe, sendMessage: pe, handleReceiveStart: me, handleReceiveText: he, handleReceiveEnd: ge, handleStop: _e, stopGeneration: ve, setCiteText: ye, focusInput: be, selectShortcut: xe, sendShortcut: Se, getChatHelper: Ce, updatePosition: we, updateSize: Te, updatePositionAndSize: Ee, handleShortcutClick: De } = s1({
59294
+ }), te = d(() => l.selectedLlmCode.value), { show: ne, hide: H, handleShow: re, handleClose: U, handleNimbusClick: ie, handleDragging: ae, handleResizing: G, handleDragStop: K, handleResizeStop: q, handleToggleCompression: oe, handleCompressionChange: ce, handleExecutionPanelChange: le, handleToggleAside: ue, handleAsideCollapsedUpdate: de, asideCollapsed: fe, sendMessage: pe, handleReceiveStart: me, handleReceiveText: he, handleReceiveEnd: ge, handleStop: _e, stopGeneration: ve, setCiteText: ye, focusInput: be, selectShortcut: xe, sendShortcut: Se, getChatHelper: Ce, updatePosition: we, updateSize: Te, updatePositionAndSize: Ee, handleShortcutClick: De } = c1({
59291
59295
  componentManager: c,
59292
59296
  chatBotRef: x,
59293
59297
  forwarders: v,
59294
59298
  forwardToManager: b,
59295
59299
  beforeNimbusClick: r.beforeNimbusClick,
59296
59300
  ensureSessionReady: B
59297
- }), { sessionName: Oe, hasPermission: ke, hasSessionContents: Ae, autoGenerateLoading: je, handleNewChat: Me, handleNewChatCreated: Ne, handleHistoryClick: Pe, handleHistorySessionSwitch: Fe, handleHistorySessionDelete: Ie, handleHistorySessionRename: Le, handleAutoGenerateName: Re, handleHelpClick: ze, handleRename: Be, handleSessionRenamed: Ve, handleSessionSwitched: He, addNewSession: Ue, switchToSession: We, updateSessionName: Ge } = c1({
59301
+ }), { sessionName: Oe, hasPermission: ke, hasSessionContents: Ae, autoGenerateLoading: je, handleNewChat: Me, handleNewChatCreated: Ne, handleHistoryClick: Pe, handleHistorySessionSwitch: Fe, handleHistorySessionDelete: Ie, handleHistorySessionRename: Le, handleAutoGenerateName: Re, handleHelpClick: ze, handleRename: Be, handleSessionRenamed: Ve, handleSessionSwitched: He, addNewSession: Ue, switchToSession: We, updateSessionName: Ge } = l1({
59298
59302
  chatHelper: o,
59299
59303
  sessionBusinessManager: u,
59300
59304
  chatBotRef: x,
59301
59305
  forwarders: v,
59302
59306
  reportSdkError: z,
59303
59307
  currentSession: k
59304
- }), { isShareLoading: Ke, handleShare: qe, handleCancelShare: Je, handleConfirmShare: Ye } = l1({
59308
+ }), { isShareLoading: Ke, handleShare: qe, handleCancelShare: Je, handleConfirmShare: Ye } = u1({
59305
59309
  shareBusinessManager: f,
59306
59310
  chatBotRef: x,
59307
59311
  emit: (e, t, n) => i(e, t, n),
59308
59312
  forwarders: v,
59309
59313
  reportSdkError: z
59310
- }), { aiSelectionVisible: Xe, filteredPopupShortcuts: Ze, handleSelectionChange: Qe, handleAiSelectionShortcut: $e } = i1({
59314
+ }), { aiSelectionVisible: Xe, filteredPopupShortcuts: Ze, handleSelectionChange: Qe, handleAiSelectionShortcut: $e } = a1({
59311
59315
  shortcutManager: h,
59312
59316
  chatBotRef: x,
59313
59317
  forwardToManager: b,
@@ -59341,7 +59345,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59341
59345
  J(a).class
59342
59346
  ]) }, [
59343
59347
  m(" 可拖拽容器 "),
59344
- y(J(I1), {
59348
+ y(J(L1), {
59345
59349
  ref_key: "draggableContainerRef",
59346
59350
  ref: S,
59347
59351
  "compressed-padding": r.miniPadding,
@@ -59362,7 +59366,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59362
59366
  }, {
59363
59367
  default: Y(() => [g("div", { class: P(["ai-blueking-panel", { "has-messages": !J(j) }]) }, [
59364
59368
  m(" 独立的 Header 组件 "),
59365
- r.hideHeader ? m("v-if", !0) : (V(), p(m$, {
59369
+ r.hideHeader ? m("v-if", !0) : (V(), p(h$, {
59366
59370
  key: 0,
59367
59371
  "agent-name": J(D),
59368
59372
  "aside-collapsed": J(fe),
@@ -59400,9 +59404,13 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59400
59404
  name: "headerLeft",
59401
59405
  fn: Y(() => [W(e.$slots, "headerLeft", {}, void 0, !0)]),
59402
59406
  key: "0"
59407
+ } : void 0, e.$slots.headerActions ? {
59408
+ name: "headerActions",
59409
+ fn: Y(() => [W(e.$slots, "headerActions", {}, void 0, !0)]),
59410
+ key: "1"
59403
59411
  } : void 0]), 1032, /* @__PURE__ */ "agent-name.aside-collapsed.auto-generate-loading.chat-helper.draggable.dropdown-menu-config.enable-chat-session.has-permission.has-session-contents.is-compression-height.render-mode.selected-llm-code.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.onToggleAside.onToggleCompression".split("."))),
59404
59412
  m(" ChatBot 核心组件(仅聊天区域) "),
59405
- y(J$, {
59413
+ y(Y$, {
59406
59414
  ref_key: "chatBotRef",
59407
59415
  ref: x,
59408
59416
  "always-create-new-session": r.alwaysCreateNewSession,
@@ -59489,7 +59497,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59489
59497
  "onResizing"
59490
59498
  ]),
59491
59499
  m(" Nimbus 悬浮球 "),
59492
- r.hideNimbus ? m("v-if", !0) : (V(), p(z1, {
59500
+ r.hideNimbus ? m("v-if", !0) : (V(), p(B1, {
59493
59501
  key: 0,
59494
59502
  "is-minimize": J(T),
59495
59503
  "onUpdate:isMinimize": t[5] ||= (e) => O(T) ? T.value = e : null,
@@ -59524,7 +59532,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59524
59532
  ])) : m("v-if", !0)
59525
59533
  ], 2)], 8, ["to"]));
59526
59534
  }
59527
- }), [["__scopeId", "data-v-9a52267b"]]), V1 = [
59535
+ }), [["__scopeId", "data-v-349f1f25"]]), H1 = [
59528
59536
  "close",
59529
59537
  "show",
59530
59538
  "stop",
@@ -59550,7 +59558,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59550
59558
  "help-click",
59551
59559
  "rename",
59552
59560
  "share"
59553
- ], H1 = [
59561
+ ], U1 = [
59554
59562
  "show",
59555
59563
  "handleShow",
59556
59564
  "handleClose",
@@ -59568,7 +59576,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59568
59576
  "getChatHelper",
59569
59577
  "selectShortcut",
59570
59578
  "sendShortcut"
59571
- ], U1 = Y$(B1, {
59579
+ ], W1 = X$(V1, {
59572
59580
  name: "AIBluekingV2",
59573
59581
  props: {
59574
59582
  extCls: {
@@ -59768,10 +59776,11 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59768
59776
  default: void 0
59769
59777
  }
59770
59778
  },
59771
- emitNames: [...V1],
59772
- exposeKeys: [...H1],
59779
+ emitNames: [...H1],
59780
+ exposeKeys: [...U1],
59773
59781
  slots: [
59774
59782
  "codeHeader",
59783
+ "headerActions",
59775
59784
  "headerLeft",
59776
59785
  "message",
59777
59786
  "welcome"
@@ -59834,7 +59843,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59834
59843
  return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
59835
59844
  }
59836
59845
  }
59837
- }), W1 = [
59846
+ }), G1 = [
59838
59847
  "send-message",
59839
59848
  "error",
59840
59849
  "stop",
@@ -59852,7 +59861,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59852
59861
  "feedback",
59853
59862
  "agent-action",
59854
59863
  "rename"
59855
- ], G1 = [
59864
+ ], K1 = [
59856
59865
  "sendMessage",
59857
59866
  "stopGeneration",
59858
59867
  "focusInput",
@@ -59868,7 +59877,7 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59868
59877
  "messages",
59869
59878
  "isReady",
59870
59879
  "whenReady"
59871
- ], K1 = Y$(J$, {
59880
+ ], q1 = X$(Y$, {
59872
59881
  name: "ChatBotV2",
59873
59882
  props: {
59874
59883
  chatHelper: {
@@ -59980,8 +59989,8 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59980
59989
  default: !0
59981
59990
  }
59982
59991
  },
59983
- emitNames: [...W1],
59984
- exposeKeys: [...G1],
59992
+ emitNames: [...G1],
59993
+ exposeKeys: [...K1],
59985
59994
  slots: [
59986
59995
  "codeHeader",
59987
59996
  "message",
@@ -59994,4 +60003,4 @@ var F1 = { class: "draggable-container-content" }, I1 = /* @__PURE__ */ we(/* @_
59994
60003
  ]
59995
60004
  });
59996
60005
  //#endregion
59997
- export { K1 as ChatBotV2, U1 as default, w as h };
60006
+ export { q1 as ChatBotV2, W1 as default, w as h };