@blueking/ai-blueking 2.2.3-dev.2 → 2.2.4-beta.1

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.
@@ -54251,10 +54251,14 @@ var cK = ["src"], lK = {
54251
54251
  onMouseleave: (e) => w(a, e)
54252
54252
  }, [U(n.$slots, "group", M({ ref_for: !0 }, { group: a }), () => [e.enableSelection && a.type !== q(VD).Loading ? (B(), p(q(hb), {
54253
54253
  key: 0,
54254
- class: "message-group-checkbox",
54254
+ class: P(["message-group-checkbox", { "is-user-group": a.type === q(VD).User }]),
54255
54255
  "model-value": a.checked,
54256
54256
  "onUpdate:modelValue": (e) => T(a, e)
54257
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : m("v-if", !0), g("div", {
54257
+ }, null, 8, [
54258
+ "class",
54259
+ "model-value",
54260
+ "onUpdate:modelValue"
54261
+ ])) : m("v-if", !0), g("div", {
54258
54262
  class: P(["message-group-messages", { "message-group-enabled-selection": e.renderMode === q($D).Share || e.enableSelection && a.type !== q(VD).Loading }]),
54259
54263
  style: I({ width: e.enableSelection && a.type !== q(VD).Loading ? "calc(100% - 16px)" : "100%" })
54260
54264
  }, [(B(!0), h(o, null, H(a.messages, (i, a) => (B(), h("div", {
@@ -54665,13 +54669,13 @@ var cK = ["src"], lK = {
54665
54669
  "data-ai-size": e.size,
54666
54670
  style: I({
54667
54671
  "--resize-main-width": he.value,
54668
- "--resize-aside-width": _e.value,
54669
- borderTopColor: q(L) ? "transparent" : "#eaebf0"
54672
+ "--resize-aside-width": _e.value
54670
54673
  })
54671
54674
  }, [e.chatLoading ? (B(), h("div", yQ, [y(Aq)])) : (B(), p(q(Iw), M({
54672
54675
  key: 1,
54673
54676
  class: ["ai-chat-container-resize-layout", {
54674
54677
  "ai-is-collapse": q(L) || q(A).length === 0,
54678
+ "ai-is-welcome": !e.messages?.length,
54675
54679
  "is-resizing": me.value
54676
54680
  }]
54677
54681
  }, _.value, {
@@ -54924,7 +54928,11 @@ var cK = ["src"], lK = {
54924
54928
  }, MQ = {
54925
54929
  key: 1,
54926
54930
  class: "bkai-icon bkai-auto-refresh-line"
54927
- }, NQ = { class: "right-section" }, PQ = /* @__PURE__ */ we(/* @__PURE__ */ x({
54931
+ }, NQ = { class: "right-section" }, PQ = {
54932
+ key: 4,
54933
+ "aria-hidden": "true",
54934
+ class: "header-toolbar-divider"
54935
+ }, FQ = /* @__PURE__ */ we(/* @__PURE__ */ x({
54928
54936
  __name: "index",
54929
54937
  props: {
54930
54938
  agentName: { default: "" },
@@ -55090,7 +55098,10 @@ var cK = ["src"], lK = {
55090
55098
  }), (t, n) => (B(), h("div", {
55091
55099
  ref_key: "headerRef",
55092
55100
  ref: s,
55093
- class: P(["ai-header drag-handle", { draggable: r.draggable }])
55101
+ class: P(["ai-header drag-handle", {
55102
+ draggable: r.draggable,
55103
+ "is-aside-expanded": !r.asideCollapsed
55104
+ }])
55094
55105
  }, [
55095
55106
  g("div", EQ, [
55096
55107
  g("div", DQ, [g("img", {
@@ -55212,57 +55223,59 @@ var cK = ["src"], lK = {
55212
55223
  content: q(UE)("转人工"),
55213
55224
  boundary: "parent"
55214
55225
  }]]) : m("v-if", !0),
55215
- r.showAsideToggle ? ge((B(), h("span", {
55216
- key: 3,
55217
- class: "bkai-icon aside-toggle",
55218
- onClick: n[5] ||= ve((e) => i("toggle-aside"), ["stop"])
55219
- }, [y(q(a))])), [[q(o), {
55220
- content: r.asideCollapsed ? q(UE)("展开侧栏") : q(UE)("收起侧栏"),
55221
- boundary: "parent"
55222
- }]]) : m("v-if", !0),
55223
55226
  r.showCompressionIcon ? ge((B(), h("i", {
55224
- key: 4,
55227
+ key: 3,
55225
55228
  class: P(["bkai-icon", D.value]),
55226
- onClick: n[6] ||= (e) => i("toggle-compression")
55229
+ onClick: n[5] ||= (e) => i("toggle-compression")
55227
55230
  }, null, 2)), [[q(o), {
55228
55231
  content: O.value,
55229
55232
  boundary: "parent"
55230
55233
  }]]) : m("v-if", !0),
55231
55234
  ge(g("i", {
55232
55235
  class: "bkai-icon bkai-close-line-2",
55233
- onClick: n[7] ||= (e) => i("close")
55236
+ onClick: n[6] ||= (e) => i("close")
55234
55237
  }, null, 512), [[q(o), {
55235
55238
  content: q(UE)("关闭"),
55236
55239
  boundary: "parent"
55237
- }]])
55240
+ }]]),
55241
+ m(" 设计稿:关闭与侧栏展开之间有竖线分隔 "),
55242
+ r.showAsideToggle ? (B(), h("span", PQ)) : m("v-if", !0),
55243
+ r.showAsideToggle ? ge((B(), h("span", {
55244
+ key: 5,
55245
+ class: "bkai-icon aside-toggle",
55246
+ onClick: n[7] ||= ve((e) => i("toggle-aside"), ["stop"])
55247
+ }, [y(q(a))])), [[q(o), {
55248
+ content: r.asideCollapsed ? q(UE)("展开侧栏") : q(UE)("收起侧栏"),
55249
+ boundary: "parent"
55250
+ }]]) : m("v-if", !0)
55238
55251
  ])
55239
55252
  ], 2));
55240
55253
  }
55241
- }), [["__scopeId", "data-v-e7638280"]]);
55254
+ }), [["__scopeId", "data-v-03aace06"]]);
55242
55255
  //#endregion
55243
55256
  //#region src/bootstrap/agent-bootstrap.ts
55244
- function FQ(e) {
55257
+ function IQ(e) {
55245
55258
  let t = PE(e);
55246
55259
  fetch(t, {
55247
55260
  method: "GET",
55248
55261
  credentials: "include"
55249
55262
  }).catch(() => {});
55250
55263
  }
55251
- async function IQ(e, t = {}) {
55264
+ async function LQ(e, t = {}) {
55252
55265
  let { enableModelSelect: n = !0 } = t, r = [e.agent.getAgentInfo(), e.session.getSessions()];
55253
55266
  n && typeof e.agent.getLlms == "function" && r.push(e.agent.getLlms().catch((e) => {
55254
55267
  console.error("[runAgentBootstrap] Failed to load models:", e);
55255
55268
  })), await Promise.all(r);
55256
55269
  let i = e.agent.info.value?.saasUrl;
55257
- i && FQ(i);
55270
+ i && IQ(i);
55258
55271
  }
55259
55272
  //#endregion
55260
55273
  //#region src/manager/business/model-selection-manager.ts
55261
- var LQ = class extends Error {
55274
+ var RQ = class extends Error {
55262
55275
  constructor(e = "当前没有可用模型,无法创建会话") {
55263
55276
  super(e), this.name = "ModelUnavailableError";
55264
55277
  }
55265
- }, RQ = class {
55278
+ }, zQ = class {
55266
55279
  _isLoading;
55267
55280
  _models;
55268
55281
  _selectedLlmCode;
@@ -55367,7 +55380,7 @@ var LQ = class extends Error {
55367
55380
  resolveModelForSession(e) {
55368
55381
  if (!this.enabled) return e;
55369
55382
  let t = this._models.value;
55370
- if (t.length === 0) throw new LQ();
55383
+ if (t.length === 0) throw new RQ();
55371
55384
  return e && t.some((t) => t.llm_code === e) ? e : this.hasValidSelection() ? this._selectedLlmCode.value : this.defaultModelCode();
55372
55385
  }
55373
55386
  setModels(e) {
@@ -55383,7 +55396,7 @@ var LQ = class extends Error {
55383
55396
  }
55384
55397
  this._selectedLlmCode.value = this._models.value.find((t) => t.llm_name === e)?.llm_code;
55385
55398
  }
55386
- }, zQ = class {
55399
+ }, BQ = class {
55387
55400
  _isGenerating;
55388
55401
  _isStopLoading;
55389
55402
  agentModule;
@@ -55418,7 +55431,7 @@ var LQ = class extends Error {
55418
55431
  this.eventEmitter?.emit(e, t);
55419
55432
  }
55420
55433
  constructor(e, t, n = null, r = null, i = {}, a) {
55421
- this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new RQ(e, n), this._isGenerating = V(!1), this._isStopLoading = V(!1);
55434
+ this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new zQ(e, n), this._isGenerating = V(!1), this._isStopLoading = V(!1);
55422
55435
  }
55423
55436
  get isGenerating() {
55424
55437
  return this._isGenerating;
@@ -55586,7 +55599,7 @@ var LQ = class extends Error {
55586
55599
  this._isStopLoading.value = !1;
55587
55600
  }
55588
55601
  }
55589
- }, BQ = class {
55602
+ }, VQ = class {
55590
55603
  agentModule;
55591
55604
  config;
55592
55605
  eventEmitter;
@@ -55600,7 +55613,7 @@ var LQ = class extends Error {
55600
55613
  return await this.modelSelection.ensureLoaded(), this.modelSelection.resolveModelForSession(e);
55601
55614
  }
55602
55615
  constructor(e, t = null, n = null, r = {}, i = null, a) {
55603
- this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new RQ(t, e, { enabled: !1 });
55616
+ this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new zQ(t, e, { enabled: !1 });
55604
55617
  }
55605
55618
  get currentSession() {
55606
55619
  return this.sessionModule.current;
@@ -55771,7 +55784,7 @@ var LQ = class extends Error {
55771
55784
  }), e;
55772
55785
  }
55773
55786
  }
55774
- }, VQ = class {
55787
+ }, HQ = class {
55775
55788
  messageModule;
55776
55789
  sessionModule;
55777
55790
  constructor(e, t) {
@@ -55788,7 +55801,7 @@ var LQ = class extends Error {
55788
55801
  userMessageIds: e.map((e) => String(e.id))
55789
55802
  };
55790
55803
  }
55791
- }, HQ = class {
55804
+ }, UQ = class {
55792
55805
  _agentShortcuts;
55793
55806
  _effectiveShortcuts;
55794
55807
  _propsShortcuts;
@@ -55845,7 +55858,7 @@ var LQ = class extends Error {
55845
55858
  setShortcuts(e) {
55846
55859
  this._propsShortcuts.value = e;
55847
55860
  }
55848
- }, UQ = class {
55861
+ }, WQ = class {
55849
55862
  _isCompressed;
55850
55863
  _isDraggingOrResizing;
55851
55864
  _nimbusMinimized;
@@ -56064,12 +56077,12 @@ var LQ = class extends Error {
56064
56077
  };
56065
56078
  }
56066
56079
  };
56067
- function WQ(e) {
56068
- return new UQ(e);
56080
+ function GQ(e) {
56081
+ return new WQ(e);
56069
56082
  }
56070
56083
  //#endregion
56071
56084
  //#region src/manager/event-types.ts
56072
- var GQ = {
56085
+ var KQ = {
56073
56086
  "panel-show": "show",
56074
56087
  "panel-hide": "close",
56075
56088
  "panel-toggle": null,
@@ -56119,7 +56132,7 @@ var GQ = {
56119
56132
  "agent-info-loaded": null,
56120
56133
  error: null
56121
56134
  };
56122
- function KQ(e, t) {
56135
+ function qQ(e, t) {
56123
56136
  switch (e) {
56124
56137
  case "send-message": return [t.content];
56125
56138
  case "rename": return [t.newName, t.sessionCode];
@@ -56150,12 +56163,12 @@ function KQ(e, t) {
56150
56163
  }
56151
56164
  //#endregion
56152
56165
  //#region src/components/composables/use-chatbot-init.ts
56153
- var qQ = class extends Error {
56166
+ var JQ = class extends Error {
56154
56167
  constructor() {
56155
56168
  super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
56156
56169
  }
56157
56170
  };
56158
- function JQ(e) {
56171
+ function YQ(e) {
56159
56172
  let { props: t, emit: n, reportError: r, managerErrorBridge: i } = e, a = W(null), o = W(null), s = W(null), c = W(null), l = V(!1), u = V(!t.chatHelper), f = V(null), p = d(() => l.value), m = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
56160
56173
  valid: !1,
56161
56174
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
@@ -56191,7 +56204,7 @@ function JQ(e) {
56191
56204
  }, _ = 0, v = null, y = null, b = null, x = (e) => {
56192
56205
  b &&= (e ? b.reject(e) : b.resolve(), null), v = null;
56193
56206
  }, S = (e) => {
56194
- if (e !== _) throw new qQ();
56207
+ if (e !== _) throw new JQ();
56195
56208
  }, C = async (e) => {
56196
56209
  if (t.enableModelSelect !== !1) {
56197
56210
  if (t.models?.length) {
@@ -56205,26 +56218,26 @@ function JQ(e) {
56205
56218
  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;
56206
56219
  let p = h();
56207
56220
  if (!p) throw f.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
56208
- let m = t.modelSelectionManager ?? new RQ(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new BQ(p.session, p.agent, i, {
56221
+ let m = t.modelSelectionManager ?? new zQ(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new VQ(p.session, p.agent, i, {
56209
56222
  enableChatSession: !0,
56210
56223
  autoSwitchToInitialSession: !!t.sessionCode,
56211
56224
  loadRecentSessionOnMount: t.autoLoad,
56212
56225
  initialSessionCode: t.sessionCode,
56213
56226
  alwaysCreateNewSession: t.alwaysCreateNewSession
56214
- }, p.message, m), v = new zQ(p.agent, p.message, p.session, i, {
56227
+ }, p.message, m), v = new BQ(p.agent, p.message, p.session, i, {
56215
56228
  openingRemark: t.helloText,
56216
56229
  predefinedQuestions: t.prompts,
56217
56230
  placeholder: t.placeholder,
56218
56231
  onSessionRenamed: (e, t) => n("rename", e, t)
56219
- }, m), y = new HQ(null, t.shortcuts || []);
56232
+ }, m), y = new UQ(null, t.shortcuts || []);
56220
56233
  a.value = p, o.value = _, s.value = v, c.value = y;
56221
56234
  try {
56222
- u.value ? (await IQ(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);
56235
+ u.value ? (await LQ(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);
56223
56236
  } catch (t) {
56224
56237
  throw S(e), f.value = r(t, "Failed to initialize ChatBot"), t;
56225
56238
  }
56226
56239
  }, T = () => {
56227
- x(new qQ()), y = null;
56240
+ x(new JQ()), y = null;
56228
56241
  let e = ++_;
56229
56242
  v = new Promise((t, n) => {
56230
56243
  b = {
@@ -56255,7 +56268,7 @@ function JQ(e) {
56255
56268
  }
56256
56269
  //#endregion
56257
56270
  //#region src/components/composables/use-chatbot-state.ts
56258
- function YQ(e) {
56271
+ function XQ(e) {
56259
56272
  let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = d(() => r.value?.isStopLoading.value ? Q.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? Q.Streaming : Q.Complete), u = d(() => l.value === Q.Streaming ? zG.Disabled : void 0), f = d(() => r.value?.messages.value ?? []), p = d(() => r.value?.isMessagesLoading.value ?? !1);
56260
56273
  return {
56261
56274
  messageStatus: l,
@@ -56284,12 +56297,12 @@ function YQ(e) {
56284
56297
  }
56285
56298
  //#endregion
56286
56299
  //#region src/components/composables/use-error-reporter.ts
56287
- var XQ = new Set([
56300
+ var ZQ = new Set([
56288
56301
  "chat-error",
56289
56302
  "receive-error",
56290
56303
  "session-error"
56291
56304
  ]);
56292
- function ZQ(e, t = {}) {
56305
+ function QQ(e, t = {}) {
56293
56306
  let n = /* @__PURE__ */ new WeakSet(), r = (r, i) => {
56294
56307
  let a = jE(r);
56295
56308
  return n.has(a) ? a : (n.add(a), console.error(i ? `[ChatBot] ${i}:` : "[ChatBot] error:", r), e("error", a), K(t.errorToast) !== !1 && FC({
@@ -56299,50 +56312,50 @@ function ZQ(e, t = {}) {
56299
56312
  };
56300
56313
  return {
56301
56314
  managerErrorBridge: { emit: (e, t) => {
56302
- XQ.has(e) && r(t?.error);
56315
+ ZQ.has(e) && r(t?.error);
56303
56316
  } },
56304
56317
  reportError: r
56305
56318
  };
56306
56319
  }
56307
56320
  //#endregion
56308
56321
  //#region src/components/composables/use-interrupt-resume.ts
56309
- var QQ = {
56322
+ var $Q = {
56310
56323
  [UD.ApprovalCancel]: mT.ApprovalCancel,
56311
56324
  [UD.FlowNodeRetry]: mT.FlowNodeRetry,
56312
56325
  [UD.FlowNodeSkip]: mT.FlowNodeSkip
56313
56326
  };
56314
- function $Q(e) {
56327
+ function e$(e) {
56315
56328
  return "operation" in e;
56316
56329
  }
56317
- function e$(e) {
56330
+ function t$(e) {
56318
56331
  return "interruptId" in e && "reason" in e && e.reason === zD.UserQuestion;
56319
56332
  }
56320
- function t$(e) {
56333
+ function n$(e) {
56321
56334
  return e === "cancelled" ? wT.Cancelled : wT.Resolved;
56322
56335
  }
56323
- function n$(e) {
56336
+ function r$(e) {
56324
56337
  let t = e?.session.current?.value?.sessionCode;
56325
56338
  if (!t) throw Error("[ChatBot] Cannot resume interrupt: no active session");
56326
56339
  return t;
56327
56340
  }
56328
- function r$(e) {
56341
+ function i$(e) {
56329
56342
  return {
56330
56343
  interruptId: e.interruptId,
56331
- status: t$(e.status),
56344
+ status: n$(e.status),
56332
56345
  payload: e.payload
56333
56346
  };
56334
56347
  }
56335
- function i$(e) {
56348
+ function a$(e) {
56336
56349
  let { chatHelper: t, reportError: n } = e, r = async (e) => {
56337
56350
  let n = t.value;
56338
56351
  if (!n) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
56339
- if (!$Q(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
56340
- let r = n$(n);
56352
+ if (!e$(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
56353
+ let r = r$(n);
56341
56354
  if (e.operation === UD.ApprovalRefresh) {
56342
56355
  n.agent.pollResumeSession(r);
56343
56356
  return;
56344
56357
  }
56345
- let i = QQ[e.operation];
56358
+ let i = $Q[e.operation];
56346
56359
  if (!i) throw Error(`[ChatBot] Unsupported interrupt resume operation: ${e.operation}`);
56347
56360
  let a = n.agent;
56348
56361
  if (e.operation === UD.ApprovalCancel) {
@@ -56356,21 +56369,21 @@ function i$(e) {
56356
56369
  }, i = async (e, n) => {
56357
56370
  let r = t.value;
56358
56371
  if (!r) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
56359
- let i = n$(r);
56372
+ let i = r$(r);
56360
56373
  await r.agent.streamRequest({
56361
56374
  sessionCode: i,
56362
- resume: r$(e),
56375
+ resume: i$(e),
56363
56376
  ...n ? { input: n } : {}
56364
56377
  });
56365
56378
  };
56366
56379
  return {
56367
56380
  handleInterruptResume: async (e, t) => {
56368
56381
  try {
56369
- if ($Q(e)) {
56382
+ if (e$(e)) {
56370
56383
  await r(e);
56371
56384
  return;
56372
56385
  }
56373
- if (e$(e)) {
56386
+ if (t$(e)) {
56374
56387
  await i(e);
56375
56388
  return;
56376
56389
  }
@@ -56381,7 +56394,7 @@ function i$(e) {
56381
56394
  },
56382
56395
  resumeUserQuestionWithInput: async (e, t) => {
56383
56396
  try {
56384
- if (!t.payload || !e$(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
56397
+ if (!t.payload || !t$(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
56385
56398
  let n = typeof e == "string" ? e.trim() : "";
56386
56399
  if (!n) throw Error("[ChatBot] User question free text input is empty");
56387
56400
  await i(t.payload, n);
@@ -56393,7 +56406,7 @@ function i$(e) {
56393
56406
  }
56394
56407
  //#endregion
56395
56408
  //#region src/components/composables/use-message-sender.ts
56396
- function a$(e) {
56409
+ function o$(e) {
56397
56410
  let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = W([[]]), u = W(""), d = (e, t) => {
56398
56411
  l.value = e, c.value = t;
56399
56412
  }, f = async (e, a = {}) => {
@@ -56458,11 +56471,11 @@ function a$(e) {
56458
56471
  }
56459
56472
  //#endregion
56460
56473
  //#region src/components/composables/use-share-selection.ts
56461
- var o$ = (e) => !e || e.id === "share";
56462
- function s$(e) {
56474
+ var s$ = (e) => !e || e.id === "share";
56475
+ function c$(e) {
56463
56476
  let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
56464
56477
  if (!(!n.value || e.length === 0)) try {
56465
- await FE((await new VQ(n.value.message, n.value.session).shareMessages(e)).shareUrl), FC({
56478
+ await FE((await new HQ(n.value.message, n.value.session).shareMessages(e)).shareUrl), FC({
56466
56479
  message: "分享链接已复制到剪贴板",
56467
56480
  theme: "success"
56468
56481
  });
@@ -56474,12 +56487,12 @@ function s$(e) {
56474
56487
  }
56475
56488
  };
56476
56489
  return { handleConfirmShare: async (e, n) => {
56477
- r.value && o$(n) && await i(e), t("confirm-share", e, n);
56490
+ r.value && s$(n) && await i(e), t("confirm-share", e, n);
56478
56491
  } };
56479
56492
  }
56480
56493
  //#endregion
56481
56494
  //#region src/components/composables/use-shortcuts.ts
56482
- function c$(e) {
56495
+ function l$(e) {
56483
56496
  let { props: t, emit: n, shortcutManager: r, doSendMessage: i, reportError: a, selectedShortcut: o } = e, s = d(() => r.value?.effectiveShortcuts.value ?? []), c = (e, t) => {
56484
56497
  let n = e, r;
56485
56498
  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) {
@@ -56573,7 +56586,7 @@ function c$(e) {
56573
56586
  }
56574
56587
  //#endregion
56575
56588
  //#region src/components/composables/use-tool-actions.ts
56576
- function l$(e) {
56589
+ function u$(e) {
56577
56590
  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) => {
56578
56591
  if (!r.value || !n.value) {
56579
56592
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
@@ -56745,7 +56758,7 @@ function l$(e) {
56745
56758
  }
56746
56759
  //#endregion
56747
56760
  //#region src/components/chat-bot.vue
56748
- var u$ = /* @__PURE__ */ x({
56761
+ var d$ = /* @__PURE__ */ x({
56749
56762
  __name: "chat-bot",
56750
56763
  props: {
56751
56764
  alwaysCreateNewSession: { type: Boolean },
@@ -56843,15 +56856,15 @@ var u$ = /* @__PURE__ */ x({
56843
56856
  set: () => {}
56844
56857
  }), x = d(() => N.value?.selectedLlmCode.value), S = () => {
56845
56858
  p.value?.focus?.();
56846
- }, { reportError: w, managerErrorBridge: T } = ZQ(s, { errorToast: () => r.errorToast }), { chatHelper: E, isStandaloneMode: D, isInitialized: k, isReady: A, initError: j, whenReady: M, chatBusinessManager: N, sessionBusinessManager: L, shortcutManager: R } = JQ({
56859
+ }, { reportError: w, managerErrorBridge: T } = QQ(s, { errorToast: () => r.errorToast }), { chatHelper: E, isStandaloneMode: D, isInitialized: k, isReady: A, initError: j, whenReady: M, chatBusinessManager: N, sessionBusinessManager: L, shortcutManager: R } = YQ({
56847
56860
  props: r,
56848
56861
  emit: s,
56849
56862
  reportError: w,
56850
56863
  managerErrorBridge: T
56851
- }), { handleInterruptResume: ee, resumeUserQuestionWithInput: z } = i$({
56864
+ }), { handleInterruptResume: ee, resumeUserQuestionWithInput: z } = a$({
56852
56865
  chatHelper: E,
56853
56866
  reportError: w
56854
- }), { userInput: te, cite: ne, handleUpdateModelValue: re, doSendMessage: ie, handleSendMessage: H, handleUpload: ae, handleArtifactClick: G, handleStopSending: oe, stopGeneration: K } = a$({
56867
+ }), { userInput: te, cite: ne, handleUpdateModelValue: re, doSendMessage: ie, handleSendMessage: H, handleUpload: ae, handleArtifactClick: G, handleStopSending: oe, stopGeneration: K } = o$({
56855
56868
  emit: s,
56856
56869
  chatHelper: E,
56857
56870
  chatBusinessManager: N,
@@ -56860,7 +56873,7 @@ var u$ = /* @__PURE__ */ x({
56860
56873
  resumeUserQuestionWithInput: z,
56861
56874
  selectedShortcut: v,
56862
56875
  selectedResources: g
56863
- }), { handleSelectShortcut: se, handleCloseShortcut: ce, handleShortcutSubmit: le, selectShortcutWithText: de, getShortcutFromMessage: fe, buildShortcutProperty: me, sendShortcutDirectly: he } = c$({
56876
+ }), { handleSelectShortcut: se, handleCloseShortcut: ce, handleShortcutSubmit: le, selectShortcutWithText: de, getShortcutFromMessage: fe, buildShortcutProperty: me, sendShortcutDirectly: he } = l$({
56864
56877
  props: r,
56865
56878
  emit: s,
56866
56879
  chatHelper: E,
@@ -56868,7 +56881,7 @@ var u$ = /* @__PURE__ */ x({
56868
56881
  doSendMessage: ie,
56869
56882
  reportError: w,
56870
56883
  selectedShortcut: v
56871
- }), { messageStatus: ge, messageToolsStatus: _e, messages: ve, isMessagesLoading: ye, isGenerating: be, currentSession: xe, isWelcomeState: Se, openingRemark: Ce, effectiveResources: we, effectivePrompts: Te, effectiveSkills: Ee, effectiveSupportUpload: De, chatbotStyle: Oe, filteredShortcuts: ke } = YQ({
56884
+ }), { messageStatus: ge, messageToolsStatus: _e, messages: ve, isMessagesLoading: ye, isGenerating: be, currentSession: xe, isWelcomeState: Se, openingRemark: Ce, effectiveResources: we, effectivePrompts: Te, effectiveSkills: Ee, effectiveSupportUpload: De, chatbotStyle: Oe, filteredShortcuts: ke } = XQ({
56872
56885
  props: r,
56873
56886
  chatHelper: E,
56874
56887
  chatBusinessManager: N,
@@ -56877,7 +56890,7 @@ var u$ = /* @__PURE__ */ x({
56877
56890
  isStandaloneMode: D,
56878
56891
  isInitialized: k,
56879
56892
  selectedShortcut: v
56880
- }), { handleAgentAction: Ae, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } = l$({
56893
+ }), { handleAgentAction: Ae, handleAgentFeedback: je, handleUserAction: Me, handleUserInputConfirm: Ne, handleUserShortcutConfirm: Pe, handleStopStreaming: Fe } = u$({
56881
56894
  emit: s,
56882
56895
  chatHelper: E,
56883
56896
  chatBusinessManager: N,
@@ -56905,7 +56918,7 @@ var u$ = /* @__PURE__ */ x({
56905
56918
  pe(() => r.models, (e) => {
56906
56919
  r.enableModelSelect === !1 || !N.value || e?.length && N.value.setModels(e);
56907
56920
  });
56908
- let { handleConfirmShare: Ve } = s$({
56921
+ let { handleConfirmShare: Ve } = c$({
56909
56922
  emit: s,
56910
56923
  chatHelper: E,
56911
56924
  isStandaloneMode: D
@@ -57061,7 +57074,7 @@ var u$ = /* @__PURE__ */ x({
57061
57074
  });
57062
57075
  //#endregion
57063
57076
  //#region src/vue2-wrapper.ts
57064
- function d$(e, t) {
57077
+ function f$(e, t) {
57065
57078
  let { name: n, props: r, emitNames: i, exposeKeys: a, slots: o = [], deepWatchProps: s = [], methods: c = {} } = t, l = Object.keys(r);
57066
57079
  return {
57067
57080
  name: n,
@@ -57090,10 +57103,10 @@ function d$(e, t) {
57090
57103
  t !== void 0 && (a[e] = (e) => t(e));
57091
57104
  }
57092
57105
  let s = Object.keys(a).length > 0 ? a : void 0;
57093
- return T(Oc, { prefix: m$() }, { default: () => T(e, {
57106
+ return T(Oc, { prefix: h$() }, { default: () => T(e, {
57094
57107
  ...n.$attrs,
57095
57108
  ...r,
57096
- ...p$(t, i),
57109
+ ...m$(t, i),
57097
57110
  ref: (e) => {
57098
57111
  n.componentInstance = e;
57099
57112
  }
@@ -57122,28 +57135,28 @@ function d$(e, t) {
57122
57135
  methods: c
57123
57136
  };
57124
57137
  }
57125
- function f$(e) {
57138
+ function p$(e) {
57126
57139
  return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
57127
57140
  }
57128
- function p$(e, t) {
57141
+ function m$(e, t) {
57129
57142
  let n = {};
57130
- for (let r of t) n[f$(r)] = (...t) => {
57143
+ for (let r of t) n[p$(r)] = (...t) => {
57131
57144
  e(r, ...t);
57132
57145
  };
57133
57146
  return n;
57134
57147
  }
57135
- function m$() {
57148
+ function h$() {
57136
57149
  return "ai-bk";
57137
57150
  }
57138
57151
  //#endregion
57139
57152
  //#region src/composables/use-chat-bootstrap.ts
57140
- var h$ = /* @__PURE__ */ function(e) {
57153
+ var g$ = /* @__PURE__ */ function(e) {
57141
57154
  return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
57142
57155
  }({});
57143
- function g$(e) {
57156
+ function _$(e) {
57144
57157
  let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i, enableModelSelect: a = !0 } = e, o = K(t);
57145
57158
  if (!o) throw Error("[useChatBootstrap] url is required");
57146
- let s = V(h$.IDLE), c = V(null), l = V(!1), u = /* @__PURE__ */ new Map(), f = new TT({
57159
+ let s = V(g$.IDLE), c = V(null), l = V(!1), u = /* @__PURE__ */ new Map(), f = new TT({
57147
57160
  onStart: () => {
57148
57161
  i?.onStart?.();
57149
57162
  },
@@ -57161,14 +57174,14 @@ function g$(e) {
57161
57174
  protocol: f
57162
57175
  });
57163
57176
  f.injectMessageModule(p.message);
57164
- let m = d(() => s.value === h$.LOADING_AGENT), h = d(() => s.value === h$.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) => {
57177
+ let m = d(() => s.value === g$.LOADING_AGENT), h = d(() => s.value === g$.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) => {
57165
57178
  c.value = null;
57166
57179
  try {
57167
- if (s.value = h$.LOADING_AGENT, await IQ(p, { enableModelSelect: a }), e !== x) return;
57168
- s.value = h$.READY, l.value = !0;
57180
+ if (s.value = g$.LOADING_AGENT, await LQ(p, { enableModelSelect: a }), e !== x) return;
57181
+ s.value = g$.READY, l.value = !0;
57169
57182
  } catch (t) {
57170
57183
  if (e !== x) return;
57171
- throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = h$.ERROR, t;
57184
+ throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = g$.ERROR, t;
57172
57185
  }
57173
57186
  }, C = async () => {
57174
57187
  if (l.value) return;
@@ -57178,7 +57191,7 @@ function g$(e) {
57178
57191
  e === x && (b = null);
57179
57192
  }), b;
57180
57193
  }, w = () => {
57181
- x += 1, s.value = h$.IDLE, c.value = null, l.value = !1, b = null;
57194
+ x += 1, s.value = g$.IDLE, c.value = null, l.value = !1, b = null;
57182
57195
  }, T = async () => {
57183
57196
  w(), await C();
57184
57197
  }, E = async (e) => {
@@ -57212,7 +57225,7 @@ function g$(e) {
57212
57225
  }
57213
57226
  //#endregion
57214
57227
  //#region src/composables/use-event-bridge.ts
57215
- function _$(e) {
57228
+ function v$(e) {
57216
57229
  return {
57217
57230
  sendMessage: (t) => e("send-message", { content: t }),
57218
57231
  receiveStart: () => e("receive-start", {}),
@@ -57233,12 +57246,12 @@ function _$(e) {
57233
57246
  shareMessages: (t) => e("share-messages", { messageIds: t })
57234
57247
  };
57235
57248
  }
57236
- function v$(e) {
57249
+ function y$(e) {
57237
57250
  let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
57238
- for (let [e, a] of Object.entries(GQ)) {
57251
+ for (let [e, a] of Object.entries(KQ)) {
57239
57252
  if (a === null) continue;
57240
57253
  let o = t.on(e, (t) => {
57241
- let i = KQ(e, t);
57254
+ let i = qQ(e, t);
57242
57255
  r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
57243
57256
  });
57244
57257
  i.push(o);
@@ -57260,17 +57273,17 @@ function v$(e) {
57260
57273
  }
57261
57274
  //#endregion
57262
57275
  //#region src/composables/use-ai-blueking-init.ts
57263
- function y$(e) {
57264
- let { props: t, emit: n } = e, r = V(), i = V(), a = d(() => PE(t.url ?? "")), o = WQ({
57276
+ function b$(e) {
57277
+ let { props: t, emit: n } = e, r = V(), i = V(), a = d(() => PE(t.url ?? "")), o = GQ({
57265
57278
  initialPanelVisible: !1,
57266
57279
  initialNimbusMinimized: t.defaultMinimize,
57267
57280
  enablePopup: t.enablePopup,
57268
57281
  enableNimbus: !t.hideNimbus,
57269
57282
  enableDraggable: t.draggable
57270
- }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = v$({
57283
+ }), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = y$({
57271
57284
  componentManager: o,
57272
57285
  emit: n
57273
- }), u = _$(l), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
57286
+ }), u = v$(l), f = /* @__PURE__ */ new WeakSet(), p = null, m = null, h = () => {
57274
57287
  p &&= (clearTimeout(p.timer), null);
57275
57288
  }, g = (e) => {
57276
57289
  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;
@@ -57312,7 +57325,7 @@ function y$(e) {
57312
57325
  error: e,
57313
57326
  source: "business"
57314
57327
  });
57315
- }, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } = g$({
57328
+ }, { chatHelper: b, isReady: x, error: S, agentInfo: C, agentName: w, currentSession: T, initialize: E } = _$({
57316
57329
  url: a,
57317
57330
  requestOptions: () => K(t.requestOptions),
57318
57331
  autoInit: !0,
@@ -57339,7 +57352,7 @@ function y$(e) {
57339
57352
  D.onError?.((e) => {
57340
57353
  _(e);
57341
57354
  }, { ignoreErrors: t.ignoreErrors });
57342
- let O = new RQ(D.agent, D.session, { enabled: t.enableModelSelect !== !1 }), k = async () => {
57355
+ let O = new zQ(D.agent, D.session, { enabled: t.enableModelSelect !== !1 }), k = async () => {
57343
57356
  if (t.enableModelSelect !== !1) {
57344
57357
  if (t.models?.length) {
57345
57358
  O.setModels(t.models);
@@ -57347,11 +57360,11 @@ function y$(e) {
57347
57360
  }
57348
57361
  await O.ensureLoaded();
57349
57362
  }
57350
- }, A = new BQ(D.session, D.agent, null, {
57363
+ }, A = new VQ(D.session, D.agent, null, {
57351
57364
  enableChatSession: t.enableChatSession,
57352
57365
  initialSessionCode: t.initialSessionCode,
57353
57366
  alwaysCreateNewSession: t.alwaysCreateNewSession
57354
- }, D.message, O), j = new VQ(D.message, D.session), M = new HQ(null, t.shortcuts || []), N = null, P = () => t.loadRecentSessionOnMount ? (N ||= k().then(() => A.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
57367
+ }, D.message, O), j = new HQ(D.message, D.session), M = new UQ(null, t.shortcuts || []), N = null, P = () => t.loadRecentSessionOnMount ? (N ||= k().then(() => A.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
57355
57368
  N = null;
57356
57369
  }), N) : Promise.resolve(), F = async () => {
57357
57370
  await v("init", async () => {
@@ -57443,7 +57456,7 @@ function y$(e) {
57443
57456
  }
57444
57457
  //#endregion
57445
57458
  //#region src/composables/use-ai-selection.ts
57446
- function b$(e) {
57459
+ function x$(e) {
57447
57460
  let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = V(!1), s = V("");
57448
57461
  return {
57449
57462
  aiSelectionVisible: o,
@@ -57465,7 +57478,7 @@ function b$(e) {
57465
57478
  }
57466
57479
  //#endregion
57467
57480
  //#region src/composables/use-nimbus.ts
57468
- function x$(e, t = !1) {
57481
+ function S$(e, t = !1) {
57469
57482
  let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = V(r), a = V(n), o = V(0), s = V(t), c = V(!1), l = V(!1), u = 0, d = (e) => {
57470
57483
  e ? i.value = window.innerWidth - 12 : i.value = r;
57471
57484
  }, f = (e, t) => {
@@ -57518,9 +57531,9 @@ function x$(e, t = !1) {
57518
57531
  }
57519
57532
  //#endregion
57520
57533
  //#region src/composables/use-panel-container.ts
57521
- var S$ = 560;
57522
- function C$(e) {
57523
- let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = V(!0), c = S$, l = async (e) => {
57534
+ var C$ = 560;
57535
+ function w$(e) {
57536
+ let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = V(!0), c = C$, l = async (e) => {
57524
57537
  t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
57525
57538
  }, u = async (e) => {
57526
57539
  await l(e);
@@ -57547,7 +57560,7 @@ function C$(e) {
57547
57560
  }, y = (e) => {
57548
57561
  t.setCompressed(e);
57549
57562
  }, b = (e, t) => {
57550
- c = Math.max(S$, t ?? c);
57563
+ c = Math.max(C$, t ?? c);
57551
57564
  }, x = async () => {
57552
57565
  s.value &&= (await t.expandForSidePanel(c, { onBeforeSizeChange: () => {
57553
57566
  s.value = !1;
@@ -57622,7 +57635,7 @@ function C$(e) {
57622
57635
  }
57623
57636
  //#endregion
57624
57637
  //#region src/composables/use-session-handlers.ts
57625
- function w$(e) {
57638
+ function T$(e) {
57626
57639
  let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, reportSdkError: a, currentSession: o } = e, s = V(""), c = V(!0), l = V(!1), u = V(!1), d = () => OE(t.message.list.value);
57627
57640
  return pe(() => o.value, (e) => {
57628
57641
  e && (s.value = e.sessionName || "", l.value = (e.sessionContentCount ?? 0) > 0 || d());
@@ -57753,7 +57766,7 @@ function w$(e) {
57753
57766
  }
57754
57767
  //#endregion
57755
57768
  //#region src/composables/use-share-handlers.ts
57756
- function T$(e) {
57769
+ function E$(e) {
57757
57770
  let { shareBusinessManager: t, chatBotRef: n, emit: r, forwarders: i, reportSdkError: a } = e, o = V(!1);
57758
57771
  return {
57759
57772
  isShareLoading: o,
@@ -57764,7 +57777,7 @@ function T$(e) {
57764
57777
  n.value?.exitShareMode();
57765
57778
  },
57766
57779
  handleConfirmShare: async (e, s) => {
57767
- if (!o$(s)) {
57780
+ if (!s$(s)) {
57768
57781
  n.value?.exitShareMode(), r("confirm-share", e, s);
57769
57782
  return;
57770
57783
  }
@@ -57790,7 +57803,7 @@ function T$(e) {
57790
57803
  }
57791
57804
  //#endregion
57792
57805
  //#region src/composables/use-tippy.ts
57793
- function E$(e = {}) {
57806
+ function D$(e = {}) {
57794
57807
  let t = V([]), n = (n, r, i = {}) => {
57795
57808
  try {
57796
57809
  let a = typeof n == "string" ? document.querySelector(n) : n;
@@ -57843,7 +57856,7 @@ function E$(e = {}) {
57843
57856
  }
57844
57857
  //#endregion
57845
57858
  //#region src/config/prop-defaults.ts
57846
- var D$ = {
57859
+ var O$ = {
57847
57860
  url: "",
57848
57861
  title: "",
57849
57862
  extCls: "",
@@ -57893,31 +57906,31 @@ var D$ = {
57893
57906
  };
57894
57907
  //#endregion
57895
57908
  //#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
57896
- function O$(e) {
57909
+ function k$(e) {
57897
57910
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
57898
57911
  }
57899
- function k$(e, t, n, r = 1) {
57912
+ function A$(e, t, n, r = 1) {
57900
57913
  let [i, a] = typeof r == "number" ? [r, r] : r;
57901
57914
  return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
57902
57915
  }
57903
- function A$(e, t, n) {
57904
- return e - t - n;
57905
- }
57906
57916
  function j$(e, t, n) {
57907
57917
  return e - t - n;
57908
57918
  }
57909
57919
  function M$(e, t, n) {
57910
- return t !== null && e < t ? t : n !== null && n < e ? n : e;
57920
+ return e - t - n;
57911
57921
  }
57912
57922
  function N$(e, t, n) {
57923
+ return t !== null && e < t ? t : n !== null && n < e ? n : e;
57924
+ }
57925
+ function P$(e, t, n) {
57913
57926
  let r = e, i = [
57914
57927
  "matches",
57915
57928
  "webkitMatchesSelector",
57916
57929
  "mozMatchesSelector",
57917
57930
  "msMatchesSelector",
57918
57931
  "oMatchesSelector"
57919
- ].find((e) => O$(r[e]));
57920
- if (!O$(r[i])) return !1;
57932
+ ].find((e) => k$(r[e]));
57933
+ if (!k$(r[i])) return !1;
57921
57934
  do {
57922
57935
  if (r[i](t)) return !0;
57923
57936
  if (r === n) return !1;
@@ -57925,21 +57938,21 @@ function N$(e, t, n) {
57925
57938
  } while (r);
57926
57939
  return !1;
57927
57940
  }
57928
- function P$(e) {
57941
+ function F$(e) {
57929
57942
  let t = window.getComputedStyle(e);
57930
57943
  return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
57931
57944
  }
57932
- function F$(e, t, n) {
57945
+ function I$(e, t, n) {
57933
57946
  e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
57934
57947
  }
57935
- function I$(e, t, n) {
57948
+ function L$(e, t, n) {
57936
57949
  e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
57937
57950
  }
57938
- var L$ = (e, t) => {
57951
+ var R$ = (e, t) => {
57939
57952
  let n = e.__vccOpts || e;
57940
57953
  for (let [e, r] of t) n[e] = r;
57941
57954
  return n;
57942
- }, R$ = {
57955
+ }, z$ = {
57943
57956
  mouse: {
57944
57957
  start: "mousedown",
57945
57958
  move: "mousemove",
@@ -57950,17 +57963,17 @@ var L$ = (e, t) => {
57950
57963
  move: "touchmove",
57951
57964
  stop: "touchend"
57952
57965
  }
57953
- }, z$ = {
57966
+ }, B$ = {
57954
57967
  userSelect: "none",
57955
57968
  MozUserSelect: "none",
57956
57969
  WebkitUserSelect: "none",
57957
57970
  MsUserSelect: "none"
57958
- }, B$ = {
57971
+ }, V$ = {
57959
57972
  userSelect: "auto",
57960
57973
  MozUserSelect: "auto",
57961
57974
  WebkitUserSelect: "auto",
57962
57975
  MsUserSelect: "auto"
57963
- }, V$ = R$.mouse, H$ = {
57976
+ }, H$ = z$.mouse, U$ = {
57964
57977
  replace: !0,
57965
57978
  name: "vue-draggable-resizable",
57966
57979
  props: {
@@ -58165,11 +58178,11 @@ var L$ = (e, t) => {
58165
58178
  this.enableNativeDrag || (this.$el.ondragstart = () => !1);
58166
58179
  let [e, t] = this.getParentSize();
58167
58180
  this.parentWidth = e, this.parentHeight = t;
58168
- let [n, r] = P$(this.$el);
58169
- 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"), F$(document.documentElement, "mousedown", this.deselect), F$(document.documentElement, "touchend touchcancel", this.deselect), F$(window, "resize", this.checkParentSize);
58181
+ let [n, r] = F$(this.$el);
58182
+ 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"), I$(document.documentElement, "mousedown", this.deselect), I$(document.documentElement, "touchend touchcancel", this.deselect), I$(window, "resize", this.checkParentSize);
58170
58183
  },
58171
58184
  beforeUnmount: function() {
58172
- I$(document.documentElement, "mousedown", this.deselect), I$(document.documentElement, "touchstart", this.handleUp), I$(document.documentElement, "mousemove", this.move), I$(document.documentElement, "touchmove", this.move), I$(document.documentElement, "mouseup", this.handleUp), I$(document.documentElement, "touchend touchcancel", this.deselect), I$(window, "resize", this.checkParentSize);
58185
+ L$(document.documentElement, "mousedown", this.deselect), L$(document.documentElement, "touchstart", this.handleUp), L$(document.documentElement, "mousemove", this.move), L$(document.documentElement, "touchmove", this.move), L$(document.documentElement, "mouseup", this.handleUp), L$(document.documentElement, "touchend touchcancel", this.deselect), L$(window, "resize", this.checkParentSize);
58173
58186
  },
58174
58187
  methods: {
58175
58188
  resetBoundsAndMouseState() {
@@ -58205,21 +58218,21 @@ var L$ = (e, t) => {
58205
58218
  return [null, null];
58206
58219
  },
58207
58220
  elementTouchDown(e) {
58208
- V$ = R$.touch, this.elementDown(e);
58221
+ H$ = z$.touch, this.elementDown(e);
58209
58222
  },
58210
58223
  elementMouseDown(e) {
58211
- V$ = R$.mouse, this.elementDown(e);
58224
+ H$ = z$.mouse, this.elementDown(e);
58212
58225
  },
58213
58226
  elementDown(e) {
58214
58227
  if (e instanceof MouseEvent && e.button !== 0) return;
58215
58228
  let t = e.target || e.srcElement;
58216
58229
  if (this.$el.contains(t)) {
58217
58230
  if (this.onDragStart(e) === !1) return;
58218
- if (this.dragHandle && !N$(t, this.dragHandle, this.$el) || this.dragCancel && N$(t, this.dragCancel, this.$el)) {
58231
+ if (this.dragHandle && !P$(t, this.dragHandle, this.$el) || this.dragCancel && P$(t, this.dragCancel, this.$el)) {
58219
58232
  this.dragging = !1;
58220
58233
  return;
58221
58234
  }
58222
- 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()), F$(document.documentElement, V$.move, this.move), F$(document.documentElement, V$.stop, this.handleUp);
58235
+ 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()), I$(document.documentElement, H$.move, this.move), I$(document.documentElement, H$.stop, this.handleUp);
58223
58236
  }
58224
58237
  },
58225
58238
  calcDragLimits() {
@@ -58236,13 +58249,13 @@ var L$ = (e, t) => {
58236
58249
  },
58237
58250
  deselect(e) {
58238
58251
  let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
58239
- !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), I$(document.documentElement, V$.move, this.handleResize)), this.resetBoundsAndMouseState();
58252
+ !this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), L$(document.documentElement, H$.move, this.handleResize)), this.resetBoundsAndMouseState();
58240
58253
  },
58241
58254
  handleTouchDown(e, t) {
58242
- V$ = R$.touch, this.handleDown(e, t);
58255
+ H$ = z$.touch, this.handleDown(e, t);
58243
58256
  },
58244
58257
  handleDown(e, t) {
58245
- 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(), F$(document.documentElement, V$.move, this.handleResize), F$(document.documentElement, V$.stop, this.handleUp));
58258
+ 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(), I$(document.documentElement, H$.move, this.handleResize), I$(document.documentElement, H$.stop, this.handleUp));
58246
58259
  },
58247
58260
  calcResizeLimits() {
58248
58261
  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;
@@ -58263,41 +58276,41 @@ var L$ = (e, t) => {
58263
58276
  this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
58264
58277
  },
58265
58278
  handleDrag(e) {
58266
- let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = k$(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 = M$(i.left - a, r.minLeft, r.maxLeft), c = M$(i.top - o, r.minTop, r.maxTop);
58279
+ let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = A$(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 = N$(i.left - a, r.minLeft, r.maxLeft), c = N$(i.top - o, r.minTop, r.maxTop);
58267
58280
  if (this.onDrag(s, c) === !1) return;
58268
- let l = M$(i.right + a, r.minRight, r.maxRight), u = M$(i.bottom + o, r.minBottom, r.maxBottom);
58281
+ let l = N$(i.right + a, r.minRight, r.maxRight), u = N$(i.bottom + o, r.minBottom, r.maxBottom);
58269
58282
  this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
58270
58283
  },
58271
58284
  moveHorizontally(e) {
58272
- let [t, n] = k$(this.grid, e, this.top, 1), r = M$(t, this.bounds.minLeft, this.bounds.maxLeft);
58285
+ let [t, n] = A$(this.grid, e, this.top, 1), r = N$(t, this.bounds.minLeft, this.bounds.maxLeft);
58273
58286
  this.left = r, this.right = this.parentWidth - this.width - r;
58274
58287
  },
58275
58288
  moveVertically(e) {
58276
- let [t, n] = k$(this.grid, this.left, e, 1), r = M$(n, this.bounds.minTop, this.bounds.maxTop);
58289
+ let [t, n] = A$(this.grid, this.left, e, 1), r = N$(n, this.bounds.minTop, this.bounds.maxTop);
58277
58290
  this.top = r, this.bottom = this.parentHeight - this.height - r;
58278
58291
  },
58279
58292
  handleResize(e) {
58280
58293
  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);
58281
58294
  !this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
58282
- let [l, u] = k$(this.grid, s, c, this.scale);
58283
- this.handle.includes("b") ? (i = M$(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 = M$(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 = M$(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 = M$(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58284
- let d = A$(this.parentWidth, t, r), f = j$(this.parentHeight, n, i);
58295
+ let [l, u] = A$(this.grid, s, c, this.scale);
58296
+ this.handle.includes("b") ? (i = N$(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 = N$(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 = N$(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 = N$(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
58297
+ let d = j$(this.parentWidth, t, r), f = M$(this.parentHeight, n, i);
58285
58298
  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);
58286
58299
  },
58287
58300
  changeWidth(e) {
58288
- let [t, n] = k$(this.grid, e, 0, 1), r = M$(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58301
+ let [t, n] = A$(this.grid, e, 0, 1), r = N$(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
58289
58302
  this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
58290
- let a = A$(this.parentWidth, this.left, r), o = j$(this.parentHeight, this.top, i);
58303
+ let a = j$(this.parentWidth, this.left, r), o = M$(this.parentHeight, this.top, i);
58291
58304
  this.right = r, this.bottom = i, this.width = a, this.height = o;
58292
58305
  },
58293
58306
  changeHeight(e) {
58294
- let [t, n] = k$(this.grid, 0, e, 1), r = M$(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58307
+ let [t, n] = A$(this.grid, 0, e, 1), r = N$(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
58295
58308
  this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
58296
- let a = A$(this.parentWidth, this.left, i), o = j$(this.parentHeight, this.top, r);
58309
+ let a = j$(this.parentWidth, this.left, i), o = M$(this.parentHeight, this.top, r);
58297
58310
  this.right = i, this.bottom = r, this.width = a, this.height = o;
58298
58311
  },
58299
58312
  handleUp(e) {
58300
- 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)), I$(document.documentElement, V$.move, this.handleResize);
58313
+ 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)), L$(document.documentElement, H$.move, this.handleResize);
58301
58314
  }
58302
58315
  },
58303
58316
  computed: {
@@ -58307,7 +58320,7 @@ var L$ = (e, t) => {
58307
58320
  width: this.computedWidth,
58308
58321
  height: this.computedHeight,
58309
58322
  zIndex: this.zIndex,
58310
- ...this.dragging && this.disableUserSelect ? z$ : B$
58323
+ ...this.dragging && this.disableUserSelect ? B$ : V$
58311
58324
  };
58312
58325
  },
58313
58326
  actualHandles() {
@@ -58369,8 +58382,8 @@ var L$ = (e, t) => {
58369
58382
  this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
58370
58383
  }
58371
58384
  }
58372
- }, U$ = ["onMousedown", "onTouchstart"];
58373
- function W$(e, t, n, r, i, a) {
58385
+ }, W$ = ["onMousedown", "onTouchstart"];
58386
+ function G$(e, t, n, r, i, a) {
58374
58387
  return B(), h("div", {
58375
58388
  style: I(a.style),
58376
58389
  class: P([{
@@ -58388,17 +58401,17 @@ function W$(e, t, n, r, i, a) {
58388
58401
  style: I({ display: e.enabled ? "block" : "none" }),
58389
58402
  onMousedown: ve((e) => a.handleDown(t, e), ["stop", "prevent"]),
58390
58403
  onTouchstart: ve((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
58391
- }, [U(e.$slots, t)], 46, U$))), 128)), U(e.$slots, "default")], 38);
58404
+ }, [U(e.$slots, t)], 46, W$))), 128)), U(e.$slots, "default")], 38);
58392
58405
  }
58393
- var G$ = /* @__PURE__ */ L$(H$, [["render", W$]]);
58394
- function K$(e) {
58395
- K$.installed || (K$.installed = !0, e.component("VueDraggableResizable", G$));
58406
+ var K$ = /* @__PURE__ */ R$(U$, [["render", G$]]);
58407
+ function q$(e) {
58408
+ q$.installed || (q$.installed = !0, e.component("VueDraggableResizable", K$));
58396
58409
  }
58397
- var q$ = { install: K$ }, J$ = null;
58398
- typeof window < "u" ? J$ = window.Vue : typeof global < "u" && (J$ = global.Vue), J$ && J$.use(q$);
58410
+ var J$ = { install: q$ }, Y$ = null;
58411
+ typeof window < "u" ? Y$ = window.Vue : typeof global < "u" && (Y$ = global.Vue), Y$ && Y$.use(J$);
58399
58412
  //#endregion
58400
58413
  //#region src/containers/use-draggable.ts
58401
- function Y$(e = {}, t) {
58414
+ function X$(e = {}, t) {
58402
58415
  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 = V(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = V(e.defaultTop === void 0 ? 0 : e.defaultTop), u = V(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = V(n), f = V(l.value), p = V(c.value), m = V(d.value), h = V(u.value), g = V(Math.max(window.innerWidth * (a / 100), m.value)), _ = V(!1), v = V(0), y = null, b = null, x = 0, S = 0, C = V(!1), w = (e) => {
58403
58416
  let t = window.innerWidth, n = { ...e };
58404
58417
  return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
@@ -58509,7 +58522,7 @@ function Y$(e = {}, t) {
58509
58522
  }
58510
58523
  //#endregion
58511
58524
  //#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
58512
- var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @__PURE__ */ x({
58525
+ var Z$ = { class: "draggable-container-content" }, Q$ = /* @__PURE__ */ we(/* @__PURE__ */ x({
58513
58526
  __name: "draggable-container",
58514
58527
  props: {
58515
58528
  className: { default: "" },
@@ -58546,7 +58559,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58546
58559
  "compression-change"
58547
58560
  ],
58548
58561
  setup(e, { expose: t, emit: n }) {
58549
- let r = e, i = n, a = V(!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 } = Y$({
58562
+ let r = e, i = n, a = V(!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 } = X$({
58550
58563
  initWidth: r.defaultWidth,
58551
58564
  minWidth: r.minWidth,
58552
58565
  minHeight: r.minHeight,
@@ -58596,7 +58609,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58596
58609
  positionAndSize: A,
58597
58610
  isCompressed: h,
58598
58611
  isSidePanelExpanded: _
58599
- }), (e, t) => ge((B(), p(q(G$), {
58612
+ }), (e, t) => ge((B(), p(q(K$), {
58600
58613
  ref: "draggableRef",
58601
58614
  active: r.visible,
58602
58615
  class: P([
@@ -58623,7 +58636,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58623
58636
  onResizeStop: R,
58624
58637
  onResizing: F
58625
58638
  }, {
58626
- default: J(() => [g("div", X$, [U(e.$slots, "default", {}, void 0, !0)])]),
58639
+ default: J(() => [g("div", Z$, [U(e.$slots, "default", {}, void 0, !0)])]),
58627
58640
  _: 3
58628
58641
  }, 8, [
58629
58642
  "active",
@@ -58641,11 +58654,11 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58641
58654
  "y"
58642
58655
  ])), [[fe, r.visible]]);
58643
58656
  }
58644
- }), [["__scopeId", "data-v-7417a71b"]]), Q$ = { class: "nimbus-bkai-wrapper" }, $$ = [
58657
+ }), [["__scopeId", "data-v-7417a71b"]]), $$ = { class: "nimbus-bkai-wrapper" }, e1 = [
58645
58658
  "width",
58646
58659
  "height",
58647
58660
  "src"
58648
- ], e1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58661
+ ], t1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58649
58662
  name: "NimbusButton",
58650
58663
  __name: "nimbus",
58651
58664
  props: {
@@ -58697,11 +58710,11 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58697
58710
  right: -6
58698
58711
  }
58699
58712
  }
58700
- }, a = d(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = x$(r, n.isMinimize);
58713
+ }, a = d(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: f, handleMinimize: m, handleDragging: h, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = S$(r, n.isMinimize);
58701
58714
  pe(u, (e) => {
58702
58715
  r("update:isMinimize", e);
58703
58716
  });
58704
- let x = d(() => u.value ? UE("恢复默认大小") : UE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = E$({
58717
+ let x = d(() => u.value ? UE("恢复默认大小") : UE("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = D$({
58705
58718
  theme: "ai-blueking",
58706
58719
  delay: [0, 0]
58707
58720
  }), w = () => {
@@ -58721,7 +58734,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58721
58734
  }), window.addEventListener("resize", w);
58722
58735
  }), L(() => {
58723
58736
  window.removeEventListener("resize", w);
58724
- }), (t, n) => (B(), p(q(G$), {
58737
+ }), (t, n) => (B(), p(q(K$), {
58725
58738
  active: !e.isPanelShow,
58726
58739
  axis: "y",
58727
58740
  draggable: !0,
@@ -58743,12 +58756,12 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58743
58756
  onMouseenter: n[3] ||= (...e) => q(_) && q(_)(...e),
58744
58757
  onMouseleave: n[4] ||= (...e) => q(v) && q(v)(...e),
58745
58758
  onMouseup: n[5] ||= (...e) => q(b) && q(b)(...e)
58746
- }, [g("div", Q$, [g("img", {
58759
+ }, [g("div", $$, [g("img", {
58747
58760
  width: a.value.img,
58748
58761
  height: a.value.img,
58749
58762
  src: q(TQ),
58750
58763
  alt: "nimbus"
58751
- }, null, 8, $$)]), g("i", {
58764
+ }, null, 8, e1)]), g("i", {
58752
58765
  ref_key: "minimizeButtonRef",
58753
58766
  ref: s,
58754
58767
  class: P(["nimbus-mini bkai-icon", q(u) ? "bkai-yinyong" : "bkai-minus-line"]),
@@ -58764,7 +58777,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58764
58777
  "onDragging"
58765
58778
  ]));
58766
58779
  }
58767
- }), [["__scopeId", "data-v-26b6f3ea"]]), t1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58780
+ }), [["__scopeId", "data-v-26b6f3ea"]]), n1 = /* @__PURE__ */ we(/* @__PURE__ */ x({
58768
58781
  inheritAttrs: !1,
58769
58782
  __name: "ai-blueking",
58770
58783
  props: /* @__PURE__ */ A({
@@ -58821,7 +58834,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58821
58834
  resizeProps: {},
58822
58835
  size: {},
58823
58836
  timezone: {}
58824
- }, D$),
58837
+ }, O$),
58825
58838
  emits: [
58826
58839
  "show",
58827
58840
  "close",
@@ -58850,30 +58863,30 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58850
58863
  "share"
58851
58864
  ],
58852
58865
  setup(e, { expose: t, emit: n }) {
58853
- 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, messageToolsTippyOptions: M, agentResources: N, agentPrompts: L, agentSkills: R, handleError: ee, reportSdkError: z, ensureSessionReady: te, updateAgentInfo: ne } = y$({
58866
+ 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, messageToolsTippyOptions: M, agentResources: N, agentPrompts: L, agentSkills: R, handleError: ee, reportSdkError: z, ensureSessionReady: te, updateAgentInfo: ne } = b$({
58854
58867
  props: r,
58855
58868
  emit: i
58856
- }), re = d(() => l.selectedLlmCode.value), { show: V, hide: ie, handleShow: H, handleClose: ae, handleNimbusClick: W, handleDragging: G, handleResizing: oe, handleDragStop: K, handleResizeStop: ce, handleToggleCompression: le, handleCompressionChange: ue, handleExecutionPanelChange: de, handleToggleAside: fe, handleAsideCollapsedUpdate: pe, asideCollapsed: me, sendMessage: he, handleReceiveStart: ge, handleReceiveText: _e, handleReceiveEnd: ve, handleStop: ye, stopGeneration: be, setCiteText: xe, focusInput: Se, selectShortcut: Ce, sendShortcut: we, getChatHelper: Te, updatePosition: Ee, updateSize: De, updatePositionAndSize: Oe, handleShortcutClick: ke } = C$({
58869
+ }), re = d(() => l.selectedLlmCode.value), { show: V, hide: ie, handleShow: H, handleClose: ae, handleNimbusClick: W, handleDragging: G, handleResizing: oe, handleDragStop: K, handleResizeStop: ce, handleToggleCompression: le, handleCompressionChange: ue, handleExecutionPanelChange: de, handleToggleAside: fe, handleAsideCollapsedUpdate: pe, asideCollapsed: me, sendMessage: he, handleReceiveStart: ge, handleReceiveText: _e, handleReceiveEnd: ve, handleStop: ye, stopGeneration: be, setCiteText: xe, focusInput: Se, selectShortcut: Ce, sendShortcut: we, getChatHelper: Te, updatePosition: Ee, updateSize: De, updatePositionAndSize: Oe, handleShortcutClick: ke } = w$({
58857
58870
  componentManager: c,
58858
58871
  chatBotRef: x,
58859
58872
  forwarders: v,
58860
58873
  forwardToManager: b,
58861
58874
  beforeNimbusClick: r.beforeNimbusClick,
58862
58875
  ensureSessionReady: te
58863
- }), { sessionName: Ae, hasPermission: je, hasSessionContents: Me, autoGenerateLoading: Ne, handleNewChat: Pe, handleNewChatCreated: Fe, handleHistoryClick: Ie, handleHistorySessionSwitch: Le, handleHistorySessionDelete: Re, handleHistorySessionRename: ze, handleAutoGenerateName: Be, handleHelpClick: Ve, handleRename: He, handleSessionRenamed: Ue, handleSessionSwitched: We, addNewSession: Ge, switchToSession: Ke, updateSessionName: qe } = w$({
58876
+ }), { sessionName: Ae, hasPermission: je, hasSessionContents: Me, autoGenerateLoading: Ne, handleNewChat: Pe, handleNewChatCreated: Fe, handleHistoryClick: Ie, handleHistorySessionSwitch: Le, handleHistorySessionDelete: Re, handleHistorySessionRename: ze, handleAutoGenerateName: Be, handleHelpClick: Ve, handleRename: He, handleSessionRenamed: Ue, handleSessionSwitched: We, addNewSession: Ge, switchToSession: Ke, updateSessionName: qe } = T$({
58864
58877
  chatHelper: o,
58865
58878
  sessionBusinessManager: u,
58866
58879
  chatBotRef: x,
58867
58880
  forwarders: v,
58868
58881
  reportSdkError: z,
58869
58882
  currentSession: k
58870
- }), { isShareLoading: Je, handleShare: Ye, handleCancelShare: Xe, handleConfirmShare: Ze } = T$({
58883
+ }), { isShareLoading: Je, handleShare: Ye, handleCancelShare: Xe, handleConfirmShare: Ze } = E$({
58871
58884
  shareBusinessManager: f,
58872
58885
  chatBotRef: x,
58873
58886
  emit: (e, t, n) => i(e, t, n),
58874
58887
  forwarders: v,
58875
58888
  reportSdkError: z
58876
- }), { aiSelectionVisible: Qe, filteredPopupShortcuts: $e, handleSelectionChange: et, handleAiSelectionShortcut: tt } = b$({
58889
+ }), { aiSelectionVisible: Qe, filteredPopupShortcuts: $e, handleSelectionChange: et, handleAiSelectionShortcut: tt } = x$({
58877
58890
  shortcutManager: h,
58878
58891
  chatBotRef: x,
58879
58892
  forwardToManager: b,
@@ -58907,7 +58920,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58907
58920
  q(a).class
58908
58921
  ]) }, [
58909
58922
  m(" 可拖拽容器 "),
58910
- y(q(Z$), {
58923
+ y(q(Q$), {
58911
58924
  ref_key: "draggableContainerRef",
58912
58925
  ref: S,
58913
58926
  "compressed-padding": r.miniPadding,
@@ -58928,7 +58941,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58928
58941
  }, {
58929
58942
  default: J(() => [g("div", { class: P(["ai-blueking-panel", { "has-messages": !q(j) }]) }, [
58930
58943
  m(" 独立的 Header 组件 "),
58931
- r.hideHeader ? m("v-if", !0) : (B(), p(PQ, {
58944
+ r.hideHeader ? m("v-if", !0) : (B(), p(FQ, {
58932
58945
  key: 0,
58933
58946
  "agent-name": q(D),
58934
58947
  "aside-collapsed": q(me),
@@ -58968,7 +58981,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
58968
58981
  key: "0"
58969
58982
  } : 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("."))),
58970
58983
  m(" ChatBot 核心组件(仅聊天区域) "),
58971
- y(u$, {
58984
+ y(d$, {
58972
58985
  ref_key: "chatBotRef",
58973
58986
  ref: x,
58974
58987
  "always-create-new-session": r.alwaysCreateNewSession,
@@ -59056,7 +59069,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59056
59069
  "onResizing"
59057
59070
  ]),
59058
59071
  m(" Nimbus 悬浮球 "),
59059
- r.hideNimbus ? m("v-if", !0) : (B(), p(e1, {
59072
+ r.hideNimbus ? m("v-if", !0) : (B(), p(t1, {
59060
59073
  key: 0,
59061
59074
  "is-minimize": q(T),
59062
59075
  "onUpdate:isMinimize": t[5] ||= (e) => O(T) ? T.value = e : null,
@@ -59091,7 +59104,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59091
59104
  ])) : m("v-if", !0)
59092
59105
  ], 2)], 8, ["to"]));
59093
59106
  }
59094
- }), [["__scopeId", "data-v-133cd210"]]), n1 = [
59107
+ }), [["__scopeId", "data-v-133cd210"]]), r1 = [
59095
59108
  "close",
59096
59109
  "show",
59097
59110
  "stop",
@@ -59117,7 +59130,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59117
59130
  "help-click",
59118
59131
  "rename",
59119
59132
  "share"
59120
- ], r1 = [
59133
+ ], i1 = [
59121
59134
  "show",
59122
59135
  "handleShow",
59123
59136
  "handleClose",
@@ -59135,7 +59148,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59135
59148
  "getChatHelper",
59136
59149
  "selectShortcut",
59137
59150
  "sendShortcut"
59138
- ], i1 = d$(t1, {
59151
+ ], a1 = f$(n1, {
59139
59152
  name: "AIBluekingV2",
59140
59153
  props: {
59141
59154
  extCls: {
@@ -59335,8 +59348,8 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59335
59348
  default: void 0
59336
59349
  }
59337
59350
  },
59338
- emitNames: [...n1],
59339
- exposeKeys: [...r1],
59351
+ emitNames: [...r1],
59352
+ exposeKeys: [...i1],
59340
59353
  slots: [
59341
59354
  "codeHeader",
59342
59355
  "headerLeft",
@@ -59401,7 +59414,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59401
59414
  return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
59402
59415
  }
59403
59416
  }
59404
- }), a1 = [
59417
+ }), o1 = [
59405
59418
  "send-message",
59406
59419
  "error",
59407
59420
  "stop",
@@ -59419,7 +59432,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59419
59432
  "feedback",
59420
59433
  "agent-action",
59421
59434
  "rename"
59422
- ], o1 = [
59435
+ ], s1 = [
59423
59436
  "sendMessage",
59424
59437
  "stopGeneration",
59425
59438
  "focusInput",
@@ -59435,7 +59448,7 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59435
59448
  "messages",
59436
59449
  "isReady",
59437
59450
  "whenReady"
59438
- ], s1 = d$(u$, {
59451
+ ], c1 = f$(d$, {
59439
59452
  name: "ChatBotV2",
59440
59453
  props: {
59441
59454
  chatHelper: {
@@ -59547,8 +59560,8 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59547
59560
  default: !0
59548
59561
  }
59549
59562
  },
59550
- emitNames: [...a1],
59551
- exposeKeys: [...o1],
59563
+ emitNames: [...o1],
59564
+ exposeKeys: [...s1],
59552
59565
  slots: [
59553
59566
  "codeHeader",
59554
59567
  "message",
@@ -59561,4 +59574,4 @@ var X$ = { class: "draggable-container-content" }, Z$ = /* @__PURE__ */ we(/* @_
59561
59574
  ]
59562
59575
  });
59563
59576
  //#endregion
59564
- export { s1 as ChatBotV2, i1 as default, w as h };
59577
+ export { c1 as ChatBotV2, a1 as default, w as h };