@blueking/ai-blueking 2.2.3-dev.2 → 2.2.3

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