@blueking/ai-blueking 2.1.3-beta.2 → 2.1.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.
- package/dist/vue2/index.es.min.js +212 -158
- package/dist/vue2/index.iife.min.js +347 -347
- package/dist/vue2/index.umd.min.js +265 -265
- package/dist/vue3/index.es.min.js +264 -210
- package/dist/vue3/index.iife.min.js +131 -131
- package/dist/vue3/index.umd.min.js +4 -4
- package/package.json +2 -2
|
@@ -52256,7 +52256,7 @@ var kK = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAA
|
|
|
52256
52256
|
n.baseURL && !r.startsWith("http") && (r = n.baseURL + r), r = iq(r, n.params);
|
|
52257
52257
|
let i = oq(n.data), a = new Headers(oq(n.headers));
|
|
52258
52258
|
t && !a.has("Accept") && a.set("Accept", "text/event-stream"), i != null && (n.transformRequest ? i = n.transformRequest(i, oq(n.headers)) : a.get("Content-Type")?.includes("application/json") && typeof i == "object" && !(i instanceof FormData) && !(i instanceof Blob) && !(i instanceof ArrayBuffer) && (i = JSON.stringify(i)));
|
|
52259
|
-
let o = n.controller
|
|
52259
|
+
let o = n.controller ?? new AbortController(), s = {
|
|
52260
52260
|
method: n.method,
|
|
52261
52261
|
credentials: n.credentials,
|
|
52262
52262
|
mode: n.mode,
|
|
@@ -52427,15 +52427,69 @@ function cq(e, t) {
|
|
|
52427
52427
|
new rq();
|
|
52428
52428
|
//#endregion
|
|
52429
52429
|
//#region ../chat-helper/src/http/fetch/index.ts
|
|
52430
|
-
var lq = (
|
|
52430
|
+
var lq = new Set([
|
|
52431
|
+
"POST",
|
|
52432
|
+
"PUT",
|
|
52433
|
+
"PATCH",
|
|
52434
|
+
"DELETE"
|
|
52435
|
+
]);
|
|
52436
|
+
function uq(e) {
|
|
52437
|
+
if (!e || typeof e != "object") return !1;
|
|
52438
|
+
let t = Object.getPrototypeOf(e);
|
|
52439
|
+
return t === Object.prototype || t === null;
|
|
52440
|
+
}
|
|
52441
|
+
function dq(e) {
|
|
52442
|
+
return typeof e == "function" ? e() : e;
|
|
52443
|
+
}
|
|
52444
|
+
function fq(e, t) {
|
|
52445
|
+
let { headers: n, data: r } = t.requestData;
|
|
52446
|
+
!n && !r || e.interceptors.request.use((e) => {
|
|
52447
|
+
let t = e;
|
|
52448
|
+
if (n) {
|
|
52449
|
+
let r = dq(n);
|
|
52450
|
+
if (r && Object.keys(r).length > 0) {
|
|
52451
|
+
let n = dq(e.headers) ?? {};
|
|
52452
|
+
t = {
|
|
52453
|
+
...t,
|
|
52454
|
+
headers: {
|
|
52455
|
+
...n,
|
|
52456
|
+
...r
|
|
52457
|
+
}
|
|
52458
|
+
};
|
|
52459
|
+
}
|
|
52460
|
+
}
|
|
52461
|
+
let i = (e.method ?? "GET").toUpperCase();
|
|
52462
|
+
if (r && lq.has(i)) {
|
|
52463
|
+
let n = dq(r);
|
|
52464
|
+
if (n && Object.keys(n).length > 0) {
|
|
52465
|
+
let r = dq(e.data);
|
|
52466
|
+
r == null ? t = {
|
|
52467
|
+
...t,
|
|
52468
|
+
data: n
|
|
52469
|
+
} : uq(r) ? t = {
|
|
52470
|
+
...t,
|
|
52471
|
+
data: {
|
|
52472
|
+
...n,
|
|
52473
|
+
...r
|
|
52474
|
+
}
|
|
52475
|
+
} : console.warn("[chat-helper] requestData.data 无法注入:当前请求体不是普通对象(FormData/Blob/string 等),已跳过合并。", {
|
|
52476
|
+
method: i,
|
|
52477
|
+
existingType: typeof r
|
|
52478
|
+
});
|
|
52479
|
+
}
|
|
52480
|
+
}
|
|
52481
|
+
return t;
|
|
52482
|
+
});
|
|
52483
|
+
}
|
|
52484
|
+
var pq = (e) => {
|
|
52431
52485
|
let t = new rq({ baseURL: e.requestData.urlPrefix });
|
|
52432
|
-
return e.interceptors?.request && t.interceptors.request.use(e.interceptors.request), e.interceptors?.response && t.interceptors.response.use(e.interceptors.response), {
|
|
52486
|
+
return fq(t, e), e.interceptors?.request && t.interceptors.request.use(e.interceptors.request), e.interceptors?.response && t.interceptors.response.use(e.interceptors.response), {
|
|
52433
52487
|
fetchClient: t,
|
|
52434
52488
|
reset: (e) => {
|
|
52435
|
-
t.defaults.baseURL = e.requestData.urlPrefix, t.interceptors.request.clear(), t.interceptors.response.clear(), e.interceptors?.request && t.interceptors.request.use(e.interceptors.request), e.interceptors?.response && t.interceptors.response.use(e.interceptors.response);
|
|
52489
|
+
t.defaults.baseURL = e.requestData.urlPrefix, t.interceptors.request.clear(), t.interceptors.response.clear(), fq(t, e), e.interceptors?.request && t.interceptors.request.use(e.interceptors.request), e.interceptors?.response && t.interceptors.response.use(e.interceptors.response);
|
|
52436
52490
|
}
|
|
52437
52491
|
};
|
|
52438
|
-
},
|
|
52492
|
+
}, mq = (e) => ({ getAgentInfo: (t) => e.get("agent/info/", void 0, t).then(zK) }), hq = (e) => ({
|
|
52439
52493
|
getMessages: (t, n, r) => e.get("session_content/content/", {
|
|
52440
52494
|
session_code: t,
|
|
52441
52495
|
limit: n
|
|
@@ -52452,7 +52506,7 @@ var lq = (e) => {
|
|
|
52452
52506
|
stopChat: (t, n) => e.post("session_content/stop/", { session_code: t }, n),
|
|
52453
52507
|
getFlowAgentTaskInfo: (t, n) => e.get(`flow_agent/${t}/task_info/`, void 0, n),
|
|
52454
52508
|
getFlowAgentTaskNodeInfo: (t, n, r) => e.get(`flow_agent/${t}/task_node_info/${n}/`, void 0, r)
|
|
52455
|
-
}),
|
|
52509
|
+
}), gq = (e) => ({
|
|
52456
52510
|
clearSession: (t, n) => e.post(`chat_completion/${t}/clear/`, void 0, n),
|
|
52457
52511
|
getSessions: (t) => e.get("session/", void 0, t).then((e) => e.map(GK)),
|
|
52458
52512
|
plusSession: (t, n) => e.post("session/", KK(t), n).then((e) => GK(e)),
|
|
@@ -52470,18 +52524,18 @@ var lq = (e) => {
|
|
|
52470
52524
|
headers: { "Content-Disposition": `attachment; filename="${n.name}"` }
|
|
52471
52525
|
}));
|
|
52472
52526
|
}
|
|
52473
|
-
}),
|
|
52474
|
-
agent:
|
|
52475
|
-
session:
|
|
52476
|
-
message:
|
|
52527
|
+
}), _q = (e) => ({
|
|
52528
|
+
agent: mq(e),
|
|
52529
|
+
session: gq(e),
|
|
52530
|
+
message: hq(e),
|
|
52477
52531
|
fetchClient: e
|
|
52478
|
-
}),
|
|
52479
|
-
let { fetchClient: t, reset: n } =
|
|
52532
|
+
}), vq = (e) => {
|
|
52533
|
+
let { fetchClient: t, reset: n } = pq(e);
|
|
52480
52534
|
return {
|
|
52481
|
-
...
|
|
52535
|
+
..._q(t),
|
|
52482
52536
|
reset: n
|
|
52483
52537
|
};
|
|
52484
|
-
},
|
|
52538
|
+
}, yq = () => ({
|
|
52485
52539
|
agent: null,
|
|
52486
52540
|
http: null,
|
|
52487
52541
|
message: null,
|
|
@@ -52498,7 +52552,7 @@ var lq = (e) => {
|
|
|
52498
52552
|
registerSession(e) {
|
|
52499
52553
|
this.session = e;
|
|
52500
52554
|
}
|
|
52501
|
-
}),
|
|
52555
|
+
}), bq = (e) => {
|
|
52502
52556
|
let t = V([]), n = V(null), r = V(!1), i = V(!1), a = V(!1), o = V(!1), s = V(!1), c = V(!1), l = V(!1), u = (e) => {
|
|
52503
52557
|
t.value = t.value.map((t) => t.sessionCode === e.sessionCode ? {
|
|
52504
52558
|
...t,
|
|
@@ -52576,8 +52630,8 @@ var lq = (e) => {
|
|
|
52576
52630
|
t.value = [], n.value = null, r.value = !1, i.value = !1, a.value = !1, o.value = !1, s.value = !1, c.value = !1, l.value = !1;
|
|
52577
52631
|
}
|
|
52578
52632
|
};
|
|
52579
|
-
},
|
|
52580
|
-
let t =
|
|
52633
|
+
}, xq = (e) => {
|
|
52634
|
+
let t = yq(), n = vq(e), r = tq(t, e.protocol), i = XK(t), a = bq(t);
|
|
52581
52635
|
return t.registerHttp(n), t.registerMessage(i), t.registerAgent(r), t.registerSession(a), {
|
|
52582
52636
|
agent: r,
|
|
52583
52637
|
session: a,
|
|
@@ -52587,7 +52641,7 @@ var lq = (e) => {
|
|
|
52587
52641
|
n.reset(e), r.reset(e.protocol), i.reset(), a.reset();
|
|
52588
52642
|
}
|
|
52589
52643
|
};
|
|
52590
|
-
},
|
|
52644
|
+
}, Sq = class {
|
|
52591
52645
|
_isGenerating;
|
|
52592
52646
|
_isStopLoading;
|
|
52593
52647
|
agentModule;
|
|
@@ -52742,7 +52796,7 @@ var lq = (e) => {
|
|
|
52742
52796
|
this._isStopLoading.value = !1;
|
|
52743
52797
|
}
|
|
52744
52798
|
}
|
|
52745
|
-
},
|
|
52799
|
+
}, Cq = class {
|
|
52746
52800
|
agentModule;
|
|
52747
52801
|
config;
|
|
52748
52802
|
eventEmitter;
|
|
@@ -52871,7 +52925,7 @@ var lq = (e) => {
|
|
|
52871
52925
|
}), e;
|
|
52872
52926
|
}
|
|
52873
52927
|
}
|
|
52874
|
-
},
|
|
52928
|
+
}, wq = class {
|
|
52875
52929
|
messageModule;
|
|
52876
52930
|
sessionModule;
|
|
52877
52931
|
constructor(e, t) {
|
|
@@ -52888,7 +52942,7 @@ var lq = (e) => {
|
|
|
52888
52942
|
userMessageIds: e.map((e) => String(e.id))
|
|
52889
52943
|
};
|
|
52890
52944
|
}
|
|
52891
|
-
},
|
|
52945
|
+
}, Tq = class {
|
|
52892
52946
|
_agentShortcuts;
|
|
52893
52947
|
_effectiveShortcuts;
|
|
52894
52948
|
_propsShortcuts;
|
|
@@ -52945,7 +52999,7 @@ var lq = (e) => {
|
|
|
52945
52999
|
setShortcuts(e) {
|
|
52946
53000
|
this._propsShortcuts.value = e;
|
|
52947
53001
|
}
|
|
52948
|
-
},
|
|
53002
|
+
}, Eq = class {
|
|
52949
53003
|
_isCompressed;
|
|
52950
53004
|
_isDraggingOrResizing;
|
|
52951
53005
|
_nimbusMinimized;
|
|
@@ -53160,12 +53214,12 @@ var lq = (e) => {
|
|
|
53160
53214
|
};
|
|
53161
53215
|
}
|
|
53162
53216
|
};
|
|
53163
|
-
function
|
|
53164
|
-
return new
|
|
53217
|
+
function Dq(e) {
|
|
53218
|
+
return new Eq(e);
|
|
53165
53219
|
}
|
|
53166
53220
|
//#endregion
|
|
53167
53221
|
//#region src/manager/event-types.ts
|
|
53168
|
-
var
|
|
53222
|
+
var Oq = {
|
|
53169
53223
|
"panel-show": "show",
|
|
53170
53224
|
"panel-hide": "close",
|
|
53171
53225
|
"panel-toggle": null,
|
|
@@ -53215,7 +53269,7 @@ var wq = {
|
|
|
53215
53269
|
"agent-info-loaded": null,
|
|
53216
53270
|
error: null
|
|
53217
53271
|
};
|
|
53218
|
-
function
|
|
53272
|
+
function kq(e, t) {
|
|
53219
53273
|
switch (e) {
|
|
53220
53274
|
case "send-message": return [t.content];
|
|
53221
53275
|
case "rename": return [t.newName];
|
|
@@ -53246,7 +53300,7 @@ function Tq(e, t) {
|
|
|
53246
53300
|
}
|
|
53247
53301
|
//#endregion
|
|
53248
53302
|
//#region src/components/composables/use-chatbot-init.ts
|
|
53249
|
-
function
|
|
53303
|
+
function Aq(e) {
|
|
53250
53304
|
let { props: t, emit: n, scrollToBottom: r } = e, i = W(null), a = W(null), o = W(null), s = W(null), c = V(!1), l = V(!t.chatHelper), u = V(null), d = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
|
|
53251
53305
|
valid: !1,
|
|
53252
53306
|
error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
|
|
@@ -53270,7 +53324,7 @@ function Eq(e) {
|
|
|
53270
53324
|
onError: (e) => {
|
|
53271
53325
|
n("error", e);
|
|
53272
53326
|
}
|
|
53273
|
-
}), a =
|
|
53327
|
+
}), a = xq({
|
|
53274
53328
|
requestData: {
|
|
53275
53329
|
urlPrefix: uT(t.url),
|
|
53276
53330
|
headers: t.requestOptions?.headers,
|
|
@@ -53289,17 +53343,17 @@ function Eq(e) {
|
|
|
53289
53343
|
c.value = !1, u.value = null, l.value = !t.chatHelper, await p(r, d), i.value = null, a.value = null, o.value = null, s.value = null;
|
|
53290
53344
|
let h = f();
|
|
53291
53345
|
if (!h) return;
|
|
53292
|
-
let g = new
|
|
53346
|
+
let g = new Cq(h.session, h.agent, null, {
|
|
53293
53347
|
enableChatSession: !0,
|
|
53294
53348
|
autoSwitchToInitialSession: !!t.sessionCode,
|
|
53295
53349
|
loadRecentSessionOnMount: t.autoLoad,
|
|
53296
53350
|
initialSessionCode: t.sessionCode,
|
|
53297
53351
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
53298
|
-
}), _ = new
|
|
53352
|
+
}), _ = new Sq(h.agent, h.message, h.session, null, {
|
|
53299
53353
|
openingRemark: t.helloText,
|
|
53300
53354
|
predefinedQuestions: t.prompts,
|
|
53301
53355
|
placeholder: t.placeholder
|
|
53302
|
-
}), v = new
|
|
53356
|
+
}), v = new Tq(null, t.shortcuts || []);
|
|
53303
53357
|
i.value = h, a.value = g, o.value = _, s.value = v;
|
|
53304
53358
|
try {
|
|
53305
53359
|
if (l.value && (await Promise.all([h.agent.getAgentInfo(), h.session.getSessions()]), e !== m || (await g.loadRecentSession({ skipLoadSessions: !0 }), e !== m))) return;
|
|
@@ -53323,7 +53377,7 @@ function Eq(e) {
|
|
|
53323
53377
|
}
|
|
53324
53378
|
//#endregion
|
|
53325
53379
|
//#region src/components/composables/use-chatbot-state.ts
|
|
53326
|
-
function
|
|
53380
|
+
function jq(e) {
|
|
53327
53381
|
let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = u(() => r.value?.isStopLoading.value ? gN.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? gN.Streaming : gN.Complete), d = u(() => l.value === gN.Streaming ? PI.Disabled : void 0), f = u(() => r.value?.messages.value ?? []), p = u(() => r.value?.isMessagesLoading.value ?? !1);
|
|
53328
53382
|
return {
|
|
53329
53383
|
messageStatus: l,
|
|
@@ -53346,7 +53400,7 @@ function Dq(e) {
|
|
|
53346
53400
|
}
|
|
53347
53401
|
//#endregion
|
|
53348
53402
|
//#region src/components/composables/use-message-sender.ts
|
|
53349
|
-
function
|
|
53403
|
+
function Mq(e) {
|
|
53350
53404
|
let { emit: t, chatHelper: n, chatBusinessManager: r, selectedShortcut: i, selectedResources: a } = e, o = W([[]]), s = W(""), c = (e, t) => {
|
|
53351
53405
|
o.value = e, a.value = t;
|
|
53352
53406
|
}, l = async (e, i = {}) => {
|
|
@@ -53389,10 +53443,10 @@ function Oq(e) {
|
|
|
53389
53443
|
}
|
|
53390
53444
|
//#endregion
|
|
53391
53445
|
//#region src/components/composables/use-share-selection.ts
|
|
53392
|
-
function
|
|
53446
|
+
function Nq(e) {
|
|
53393
53447
|
let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
|
|
53394
53448
|
if (!(!n.value || e.length === 0)) try {
|
|
53395
|
-
await dT((await new
|
|
53449
|
+
await dT((await new wq(n.value.message, n.value.session).shareMessages(e)).shareUrl), AC({
|
|
53396
53450
|
message: "分享链接已复制到剪贴板",
|
|
53397
53451
|
theme: "success"
|
|
53398
53452
|
});
|
|
@@ -53409,7 +53463,7 @@ function kq(e) {
|
|
|
53409
53463
|
}
|
|
53410
53464
|
//#endregion
|
|
53411
53465
|
//#region src/components/composables/use-shortcuts.ts
|
|
53412
|
-
function
|
|
53466
|
+
function Pq(e) {
|
|
53413
53467
|
let { props: t, emit: n, shortcutManager: r, doSendMessage: i, selectedShortcut: a } = e, o = u(() => r.value?.effectiveShortcuts.value ?? []), s = (e, t) => {
|
|
53414
53468
|
let n = e, r;
|
|
53415
53469
|
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) {
|
|
@@ -53503,7 +53557,7 @@ function Aq(e) {
|
|
|
53503
53557
|
}
|
|
53504
53558
|
//#endregion
|
|
53505
53559
|
//#region src/components/composables/use-tool-actions.ts
|
|
53506
|
-
function
|
|
53560
|
+
function Fq(e) {
|
|
53507
53561
|
let { emit: t, chatHelper: n, chatBusinessManager: r, cite: i, focusInput: a, scrollToBottom: o, getShortcutFromMessage: s, buildShortcutProperty: c } = e, l = async (e) => {
|
|
53508
53562
|
if (!r.value || !n.value) {
|
|
53509
53563
|
console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
|
|
@@ -53680,7 +53734,7 @@ function jq(e) {
|
|
|
53680
53734
|
}
|
|
53681
53735
|
//#endregion
|
|
53682
53736
|
//#region src/components/chat-bot.vue
|
|
53683
|
-
var
|
|
53737
|
+
var Iq = /* @__PURE__ */ b({
|
|
53684
53738
|
__name: "chat-bot",
|
|
53685
53739
|
props: {
|
|
53686
53740
|
autoLoad: {
|
|
@@ -53737,24 +53791,24 @@ var Mq = /* @__PURE__ */ b({
|
|
|
53737
53791
|
await M(), a.value && (a.value.scrollTop = a.value.scrollHeight);
|
|
53738
53792
|
}, p = () => {
|
|
53739
53793
|
s.value?.focus?.();
|
|
53740
|
-
}, { chatHelper: h, isStandaloneMode: _, isInitialized: y, initError: b, chatBusinessManager: x, sessionBusinessManager: C, shortcutManager: w } =
|
|
53794
|
+
}, { chatHelper: h, isStandaloneMode: _, isInitialized: y, initError: b, chatBusinessManager: x, sessionBusinessManager: C, shortcutManager: w } = Aq({
|
|
53741
53795
|
props: r,
|
|
53742
53796
|
emit: i,
|
|
53743
53797
|
scrollToBottom: f
|
|
53744
|
-
}), { userInput: T, cite: E, handleUpdateModelValue: O, doSendMessage: k, handleSendMessage: A, handleUpload: j, handleStopSending: I, stopGeneration: L } =
|
|
53798
|
+
}), { userInput: T, cite: E, handleUpdateModelValue: O, doSendMessage: k, handleSendMessage: A, handleUpload: j, handleStopSending: I, stopGeneration: L } = Mq({
|
|
53745
53799
|
emit: i,
|
|
53746
53800
|
chatHelper: h,
|
|
53747
53801
|
chatBusinessManager: x,
|
|
53748
53802
|
selectedShortcut: l,
|
|
53749
53803
|
selectedResources: c
|
|
53750
|
-
}), { handleSelectShortcut: R, handleCloseShortcut: z, handleShortcutSubmit: ee, selectShortcutWithText: te, getShortcutFromMessage: ne, buildShortcutProperty: H, sendShortcutDirectly: re } =
|
|
53804
|
+
}), { handleSelectShortcut: R, handleCloseShortcut: z, handleShortcutSubmit: ee, selectShortcutWithText: te, getShortcutFromMessage: ne, buildShortcutProperty: H, sendShortcutDirectly: re } = Pq({
|
|
53751
53805
|
props: r,
|
|
53752
53806
|
emit: i,
|
|
53753
53807
|
chatHelper: h,
|
|
53754
53808
|
shortcutManager: w,
|
|
53755
53809
|
doSendMessage: k,
|
|
53756
53810
|
selectedShortcut: l
|
|
53757
|
-
}), { messageStatus: G, messageToolsStatus: ie, messages: ae, isMessagesLoading: q, isGenerating: oe, currentSession: se, isWelcomeState: ce, openingRemark: le, effectiveResources: ue, effectivePrompts: de, effectiveSupportUpload: fe, chatbotStyle: pe, filteredShortcuts: me } =
|
|
53811
|
+
}), { messageStatus: G, messageToolsStatus: ie, messages: ae, isMessagesLoading: q, isGenerating: oe, currentSession: se, isWelcomeState: ce, openingRemark: le, effectiveResources: ue, effectivePrompts: de, effectiveSupportUpload: fe, chatbotStyle: pe, filteredShortcuts: me } = jq({
|
|
53758
53812
|
props: r,
|
|
53759
53813
|
chatHelper: h,
|
|
53760
53814
|
chatBusinessManager: x,
|
|
@@ -53763,7 +53817,7 @@ var Mq = /* @__PURE__ */ b({
|
|
|
53763
53817
|
isStandaloneMode: _,
|
|
53764
53818
|
isInitialized: y,
|
|
53765
53819
|
selectedShortcut: l
|
|
53766
|
-
}), { handleAgentAction: he, handleAgentFeedback: ge, handleUserAction: _e, handleUserInputConfirm: ve, handleUserShortcutConfirm: ye, handleStopStreaming: be } =
|
|
53820
|
+
}), { handleAgentAction: he, handleAgentFeedback: ge, handleUserAction: _e, handleUserInputConfirm: ve, handleUserShortcutConfirm: ye, handleStopStreaming: be } = Fq({
|
|
53767
53821
|
emit: i,
|
|
53768
53822
|
chatHelper: h,
|
|
53769
53823
|
chatBusinessManager: x,
|
|
@@ -53772,7 +53826,7 @@ var Mq = /* @__PURE__ */ b({
|
|
|
53772
53826
|
scrollToBottom: f,
|
|
53773
53827
|
getShortcutFromMessage: ne,
|
|
53774
53828
|
buildShortcutProperty: H
|
|
53775
|
-
}), xe = u(() => !y.value || q.value), { handleConfirmShare: Se } =
|
|
53829
|
+
}), xe = u(() => !y.value || q.value), { handleConfirmShare: Se } = Nq({
|
|
53776
53830
|
emit: i,
|
|
53777
53831
|
chatHelper: h,
|
|
53778
53832
|
isStandaloneMode: _
|
|
@@ -53884,7 +53938,7 @@ var Mq = /* @__PURE__ */ b({
|
|
|
53884
53938
|
});
|
|
53885
53939
|
//#endregion
|
|
53886
53940
|
//#region src/vue2-wrapper.ts
|
|
53887
|
-
function
|
|
53941
|
+
function Lq(e, t) {
|
|
53888
53942
|
let { name: n, props: r, emitNames: i, exposeKeys: a, slots: o = [], deepWatchProps: s = [], methods: c = {} } = t, l = Object.keys(r);
|
|
53889
53943
|
return {
|
|
53890
53944
|
name: n,
|
|
@@ -53917,7 +53971,7 @@ function Nq(e, t) {
|
|
|
53917
53971
|
return w(e, {
|
|
53918
53972
|
...n.$attrs,
|
|
53919
53973
|
...r,
|
|
53920
|
-
...
|
|
53974
|
+
...zq(t, i),
|
|
53921
53975
|
ref: (e) => {
|
|
53922
53976
|
n.componentInstance = e;
|
|
53923
53977
|
}
|
|
@@ -53945,12 +53999,12 @@ function Nq(e, t) {
|
|
|
53945
53999
|
methods: c
|
|
53946
54000
|
};
|
|
53947
54001
|
}
|
|
53948
|
-
function
|
|
54002
|
+
function Rq(e) {
|
|
53949
54003
|
return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
53950
54004
|
}
|
|
53951
|
-
function
|
|
54005
|
+
function zq(e, t) {
|
|
53952
54006
|
let n = {};
|
|
53953
|
-
for (let r of t) n[
|
|
54007
|
+
for (let r of t) n[Rq(r)] = (...t) => {
|
|
53954
54008
|
e(r, ...t);
|
|
53955
54009
|
};
|
|
53956
54010
|
return n;
|
|
@@ -53965,13 +54019,13 @@ function Fq(e, t) {
|
|
|
53965
54019
|
})();
|
|
53966
54020
|
//#endregion
|
|
53967
54021
|
//#region src/composables/use-chat-bootstrap.ts
|
|
53968
|
-
var
|
|
54022
|
+
var Bq = /* @__PURE__ */ function(e) {
|
|
53969
54023
|
return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
|
|
53970
54024
|
}({});
|
|
53971
|
-
function
|
|
54025
|
+
function Vq(e) {
|
|
53972
54026
|
let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i } = e, a = ie(t);
|
|
53973
54027
|
if (!a) throw Error("[useChatBootstrap] url is required");
|
|
53974
|
-
let o = V(
|
|
54028
|
+
let o = V(Bq.IDLE), s = V(null), c = V(!1), l = /* @__PURE__ */ new Map(), d = new eq({
|
|
53975
54029
|
onStart: () => {
|
|
53976
54030
|
i?.onStart?.();
|
|
53977
54031
|
},
|
|
@@ -53984,7 +54038,7 @@ function Lq(e) {
|
|
|
53984
54038
|
onError: (e) => {
|
|
53985
54039
|
i?.onError?.(e);
|
|
53986
54040
|
}
|
|
53987
|
-
}), f =
|
|
54041
|
+
}), f = xq({
|
|
53988
54042
|
requestData: {
|
|
53989
54043
|
urlPrefix: a,
|
|
53990
54044
|
headers: n?.headers,
|
|
@@ -53993,19 +54047,19 @@ function Lq(e) {
|
|
|
53993
54047
|
protocol: d
|
|
53994
54048
|
});
|
|
53995
54049
|
d.injectMessageModule(f.message);
|
|
53996
|
-
let p = u(() => o.value ===
|
|
54050
|
+
let p = u(() => o.value === Bq.LOADING_AGENT), m = u(() => o.value === Bq.READY), h = u(() => f.agent.info.value ?? null), g = u(() => h.value?.agentName ?? ""), _ = u(() => f.session.current.value ?? null), v = u(() => f.session.list.value ?? []), y = async () => {
|
|
53997
54051
|
if (!c.value && !p.value) {
|
|
53998
54052
|
s.value = null;
|
|
53999
54053
|
try {
|
|
54000
|
-
o.value =
|
|
54054
|
+
o.value = Bq.LOADING_AGENT, await Promise.all([f.agent.getAgentInfo(), f.session.getSessions()]), o.value = Bq.READY, c.value = !0;
|
|
54001
54055
|
} catch (e) {
|
|
54002
|
-
throw console.error("[useChatBootstrap] Initialization failed:", e), s.value = e, o.value =
|
|
54056
|
+
throw console.error("[useChatBootstrap] Initialization failed:", e), s.value = e, o.value = Bq.ERROR, e;
|
|
54003
54057
|
}
|
|
54004
54058
|
}
|
|
54005
54059
|
}, b = async () => {
|
|
54006
|
-
o.value =
|
|
54060
|
+
o.value = Bq.IDLE, s.value = null, c.value = !1, await y();
|
|
54007
54061
|
}, x = async (e) => {
|
|
54008
|
-
o.value =
|
|
54062
|
+
o.value = Bq.IDLE, s.value = null, c.value = !1;
|
|
54009
54063
|
let t = f.http;
|
|
54010
54064
|
t?.updateConfig ? t.updateConfig({ urlPrefix: e }) : console.warn("[useChatBootstrap] chatHelper.http.updateConfig is not implemented yet, URL change may not take effect"), await y();
|
|
54011
54065
|
};
|
|
@@ -54035,7 +54089,7 @@ function Lq(e) {
|
|
|
54035
54089
|
}
|
|
54036
54090
|
//#endregion
|
|
54037
54091
|
//#region src/composables/use-event-bridge.ts
|
|
54038
|
-
function
|
|
54092
|
+
function Hq(e) {
|
|
54039
54093
|
return {
|
|
54040
54094
|
sendMessage: (t) => e("send-message", { content: t }),
|
|
54041
54095
|
receiveStart: () => e("receive-start", {}),
|
|
@@ -54053,12 +54107,12 @@ function Rq(e) {
|
|
|
54053
54107
|
shareMessages: (t) => e("share-messages", { messageIds: t })
|
|
54054
54108
|
};
|
|
54055
54109
|
}
|
|
54056
|
-
function
|
|
54110
|
+
function Uq(e) {
|
|
54057
54111
|
let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
|
|
54058
|
-
for (let [e, a] of Object.entries(
|
|
54112
|
+
for (let [e, a] of Object.entries(Oq)) {
|
|
54059
54113
|
if (a === null) continue;
|
|
54060
54114
|
let o = t.on(e, (t) => {
|
|
54061
|
-
let i =
|
|
54115
|
+
let i = kq(e, t);
|
|
54062
54116
|
r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
|
|
54063
54117
|
});
|
|
54064
54118
|
i.push(o);
|
|
@@ -54080,17 +54134,17 @@ function zq(e) {
|
|
|
54080
54134
|
}
|
|
54081
54135
|
//#endregion
|
|
54082
54136
|
//#region src/composables/use-ai-blueking-init.ts
|
|
54083
|
-
function
|
|
54084
|
-
let { props: t, emit: n } = e, r = V(), i = V(), a = u(() => uT(t.url ?? "")), o =
|
|
54137
|
+
function Wq(e) {
|
|
54138
|
+
let { props: t, emit: n } = e, r = V(), i = V(), a = u(() => uT(t.url ?? "")), o = Dq({
|
|
54085
54139
|
initialPanelVisible: !1,
|
|
54086
54140
|
initialNimbusMinimized: t.defaultMinimize,
|
|
54087
54141
|
enablePopup: t.enablePopup,
|
|
54088
54142
|
enableNimbus: !t.hideNimbus,
|
|
54089
54143
|
enableDraggable: t.draggable
|
|
54090
|
-
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } =
|
|
54144
|
+
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = Uq({
|
|
54091
54145
|
componentManager: o,
|
|
54092
54146
|
emit: n
|
|
54093
|
-
}), d =
|
|
54147
|
+
}), d = Hq(l), f = (e, t) => {
|
|
54094
54148
|
let n = t instanceof Error ? t.message : String(t);
|
|
54095
54149
|
console.error(`[AIBlueking] ${e} error:`, t), o.emitInternal("sdk-error", {
|
|
54096
54150
|
apiName: e,
|
|
@@ -54100,7 +54154,7 @@ function Bq(e) {
|
|
|
54100
54154
|
});
|
|
54101
54155
|
}, p = (e) => {
|
|
54102
54156
|
f("chat", e);
|
|
54103
|
-
}, { chatHelper: m, isReady: h, error: g, agentInfo: _, agentName: v, currentSession: y } =
|
|
54157
|
+
}, { chatHelper: m, isReady: h, error: g, agentInfo: _, agentName: v, currentSession: y } = Vq({
|
|
54104
54158
|
url: a,
|
|
54105
54159
|
requestOptions: t.requestOptions,
|
|
54106
54160
|
autoInit: !0,
|
|
@@ -54118,11 +54172,11 @@ function Bq(e) {
|
|
|
54118
54172
|
f("chat", e);
|
|
54119
54173
|
}
|
|
54120
54174
|
}
|
|
54121
|
-
}), b = m, x = new
|
|
54175
|
+
}), b = m, x = new Cq(b.session, b.agent, null, {
|
|
54122
54176
|
enableChatSession: t.enableChatSession,
|
|
54123
54177
|
initialSessionCode: t.initialSessionCode,
|
|
54124
54178
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
54125
|
-
}), S = new
|
|
54179
|
+
}), S = new wq(b.message, b.session), C = new Tq(null, t.shortcuts || []), w = { appendTo: (e) => {
|
|
54126
54180
|
let t = e.closest(".draggable-container-content");
|
|
54127
54181
|
return console.log("[ai-blueking] appendTo called, ref:", e), console.log("[ai-blueking] appendTo closest result:", t), t ?? document.body;
|
|
54128
54182
|
} }, T = u(() => o.isCompressed.value), E = u(() => v.value), D = u(() => b.message.list.value.length === 0), O = u(() => t.resources?.length ? t.resources : _.value?.resources ?? []), k = u(() => t.prompts?.length ? t.prompts : _.value?.conversationSettings?.predefinedQuestions ?? []);
|
|
@@ -54179,7 +54233,7 @@ function Bq(e) {
|
|
|
54179
54233
|
}
|
|
54180
54234
|
//#endregion
|
|
54181
54235
|
//#region src/composables/use-ai-selection.ts
|
|
54182
|
-
function
|
|
54236
|
+
function Gq(e) {
|
|
54183
54237
|
let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = V(!1), s = V("");
|
|
54184
54238
|
return {
|
|
54185
54239
|
aiSelectionVisible: o,
|
|
@@ -54201,7 +54255,7 @@ function Vq(e) {
|
|
|
54201
54255
|
}
|
|
54202
54256
|
//#endregion
|
|
54203
54257
|
//#region src/composables/use-nimbus.ts
|
|
54204
|
-
function
|
|
54258
|
+
function Kq(e, t = !1) {
|
|
54205
54259
|
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) => {
|
|
54206
54260
|
e ? i.value = window.innerWidth - 12 : i.value = r;
|
|
54207
54261
|
}, f = (e, t) => {
|
|
@@ -54254,8 +54308,8 @@ function Hq(e, t = !1) {
|
|
|
54254
54308
|
}
|
|
54255
54309
|
//#endregion
|
|
54256
54310
|
//#region src/composables/use-panel-container.ts
|
|
54257
|
-
var
|
|
54258
|
-
function
|
|
54311
|
+
var qq = 420;
|
|
54312
|
+
function Jq(e) {
|
|
54259
54313
|
let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a } = e, o = async (e) => {
|
|
54260
54314
|
t.showPanel(e), e && n.value && await n.value.switchSession(e);
|
|
54261
54315
|
}, s = async (e) => {
|
|
@@ -54296,7 +54350,7 @@ function Wq(e) {
|
|
|
54296
54350
|
t.setCompressed(e);
|
|
54297
54351
|
},
|
|
54298
54352
|
handleExecutionPanelChange: (e) => {
|
|
54299
|
-
e ? t.collapseSidePanel() : t.expandForSidePanel(
|
|
54353
|
+
e ? t.collapseSidePanel() : t.expandForSidePanel(qq);
|
|
54300
54354
|
},
|
|
54301
54355
|
sendMessage: async (e) => {
|
|
54302
54356
|
n.value && await n.value.sendMessage(e);
|
|
@@ -54343,7 +54397,7 @@ function Wq(e) {
|
|
|
54343
54397
|
}
|
|
54344
54398
|
//#endregion
|
|
54345
54399
|
//#region src/composables/use-session-handlers.ts
|
|
54346
|
-
function
|
|
54400
|
+
function Yq(e) {
|
|
54347
54401
|
let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, handleError: a, currentSession: o } = e, s = V(""), c = V(!0), l = V(!1), u = V(!1), d = () => t.message.list.value.some((e) => {
|
|
54348
54402
|
if (!("property" in e)) return !0;
|
|
54349
54403
|
let { property: t } = e;
|
|
@@ -54433,7 +54487,7 @@ function Gq(e) {
|
|
|
54433
54487
|
}
|
|
54434
54488
|
//#endregion
|
|
54435
54489
|
//#region src/composables/use-share-handlers.ts
|
|
54436
|
-
function
|
|
54490
|
+
function Xq(e) {
|
|
54437
54491
|
let { shareBusinessManager: t, chatBotRef: n, forwarders: r, handleError: i } = e, a = V(!1);
|
|
54438
54492
|
return {
|
|
54439
54493
|
isShareLoading: a,
|
|
@@ -54461,7 +54515,7 @@ function Kq(e) {
|
|
|
54461
54515
|
}
|
|
54462
54516
|
//#endregion
|
|
54463
54517
|
//#region src/composables/use-tippy.ts
|
|
54464
|
-
function
|
|
54518
|
+
function Zq(e = {}) {
|
|
54465
54519
|
let t = V([]), n = (n, r, i = {}) => {
|
|
54466
54520
|
try {
|
|
54467
54521
|
let a = typeof n == "string" ? document.querySelector(n) : n;
|
|
@@ -54514,7 +54568,7 @@ function qq(e = {}) {
|
|
|
54514
54568
|
}
|
|
54515
54569
|
//#endregion
|
|
54516
54570
|
//#region src/config/prop-defaults.ts
|
|
54517
|
-
var
|
|
54571
|
+
var Qq = {
|
|
54518
54572
|
url: "",
|
|
54519
54573
|
title: "",
|
|
54520
54574
|
extCls: "",
|
|
@@ -54559,31 +54613,31 @@ var Jq = {
|
|
|
54559
54613
|
};
|
|
54560
54614
|
//#endregion
|
|
54561
54615
|
//#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
|
|
54562
|
-
function
|
|
54616
|
+
function $q(e) {
|
|
54563
54617
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
54564
54618
|
}
|
|
54565
|
-
function
|
|
54619
|
+
function eJ(e, t, n, r = 1) {
|
|
54566
54620
|
let [i, a] = typeof r == "number" ? [r, r] : r;
|
|
54567
54621
|
return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
|
|
54568
54622
|
}
|
|
54569
|
-
function
|
|
54623
|
+
function tJ(e, t, n) {
|
|
54570
54624
|
return e - t - n;
|
|
54571
54625
|
}
|
|
54572
|
-
function
|
|
54626
|
+
function nJ(e, t, n) {
|
|
54573
54627
|
return e - t - n;
|
|
54574
54628
|
}
|
|
54575
|
-
function
|
|
54629
|
+
function rJ(e, t, n) {
|
|
54576
54630
|
return t !== null && e < t ? t : n !== null && n < e ? n : e;
|
|
54577
54631
|
}
|
|
54578
|
-
function
|
|
54632
|
+
function iJ(e, t, n) {
|
|
54579
54633
|
let r = e, i = [
|
|
54580
54634
|
"matches",
|
|
54581
54635
|
"webkitMatchesSelector",
|
|
54582
54636
|
"mozMatchesSelector",
|
|
54583
54637
|
"msMatchesSelector",
|
|
54584
54638
|
"oMatchesSelector"
|
|
54585
|
-
].find((e) =>
|
|
54586
|
-
if (
|
|
54639
|
+
].find((e) => $q(r[e]));
|
|
54640
|
+
if (!$q(r[i])) return !1;
|
|
54587
54641
|
do {
|
|
54588
54642
|
if (r[i](t)) return !0;
|
|
54589
54643
|
if (r === n) return !1;
|
|
@@ -54591,21 +54645,21 @@ function eJ(e, t, n) {
|
|
|
54591
54645
|
} while (r);
|
|
54592
54646
|
return !1;
|
|
54593
54647
|
}
|
|
54594
|
-
function
|
|
54648
|
+
function aJ(e) {
|
|
54595
54649
|
let t = window.getComputedStyle(e);
|
|
54596
54650
|
return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
|
|
54597
54651
|
}
|
|
54598
|
-
function
|
|
54652
|
+
function oJ(e, t, n) {
|
|
54599
54653
|
e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
|
|
54600
54654
|
}
|
|
54601
|
-
function
|
|
54655
|
+
function sJ(e, t, n) {
|
|
54602
54656
|
e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
|
|
54603
54657
|
}
|
|
54604
|
-
var
|
|
54658
|
+
var cJ = (e, t) => {
|
|
54605
54659
|
let n = e.__vccOpts || e;
|
|
54606
54660
|
for (let [e, r] of t) n[e] = r;
|
|
54607
54661
|
return n;
|
|
54608
|
-
},
|
|
54662
|
+
}, lJ = {
|
|
54609
54663
|
mouse: {
|
|
54610
54664
|
start: "mousedown",
|
|
54611
54665
|
move: "mousemove",
|
|
@@ -54616,17 +54670,17 @@ var iJ = (e, t) => {
|
|
|
54616
54670
|
move: "touchmove",
|
|
54617
54671
|
stop: "touchend"
|
|
54618
54672
|
}
|
|
54619
|
-
},
|
|
54673
|
+
}, uJ = {
|
|
54620
54674
|
userSelect: "none",
|
|
54621
54675
|
MozUserSelect: "none",
|
|
54622
54676
|
WebkitUserSelect: "none",
|
|
54623
54677
|
MsUserSelect: "none"
|
|
54624
|
-
},
|
|
54678
|
+
}, dJ = {
|
|
54625
54679
|
userSelect: "auto",
|
|
54626
54680
|
MozUserSelect: "auto",
|
|
54627
54681
|
WebkitUserSelect: "auto",
|
|
54628
54682
|
MsUserSelect: "auto"
|
|
54629
|
-
},
|
|
54683
|
+
}, fJ = lJ.mouse, pJ = {
|
|
54630
54684
|
replace: !0,
|
|
54631
54685
|
name: "vue-draggable-resizable",
|
|
54632
54686
|
props: {
|
|
@@ -54831,11 +54885,11 @@ var iJ = (e, t) => {
|
|
|
54831
54885
|
this.enableNativeDrag || (this.$el.ondragstart = () => !1);
|
|
54832
54886
|
let [e, t] = this.getParentSize();
|
|
54833
54887
|
this.parentWidth = e, this.parentHeight = t;
|
|
54834
|
-
let [n, r] =
|
|
54835
|
-
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"),
|
|
54888
|
+
let [n, r] = aJ(this.$el);
|
|
54889
|
+
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"), oJ(document.documentElement, "mousedown", this.deselect), oJ(document.documentElement, "touchend touchcancel", this.deselect), oJ(window, "resize", this.checkParentSize);
|
|
54836
54890
|
},
|
|
54837
54891
|
beforeUnmount: function() {
|
|
54838
|
-
|
|
54892
|
+
sJ(document.documentElement, "mousedown", this.deselect), sJ(document.documentElement, "touchstart", this.handleUp), sJ(document.documentElement, "mousemove", this.move), sJ(document.documentElement, "touchmove", this.move), sJ(document.documentElement, "mouseup", this.handleUp), sJ(document.documentElement, "touchend touchcancel", this.deselect), sJ(window, "resize", this.checkParentSize);
|
|
54839
54893
|
},
|
|
54840
54894
|
methods: {
|
|
54841
54895
|
resetBoundsAndMouseState() {
|
|
@@ -54871,21 +54925,21 @@ var iJ = (e, t) => {
|
|
|
54871
54925
|
return [null, null];
|
|
54872
54926
|
},
|
|
54873
54927
|
elementTouchDown(e) {
|
|
54874
|
-
|
|
54928
|
+
fJ = lJ.touch, this.elementDown(e);
|
|
54875
54929
|
},
|
|
54876
54930
|
elementMouseDown(e) {
|
|
54877
|
-
|
|
54931
|
+
fJ = lJ.mouse, this.elementDown(e);
|
|
54878
54932
|
},
|
|
54879
54933
|
elementDown(e) {
|
|
54880
54934
|
if (e instanceof MouseEvent && e.button !== 0) return;
|
|
54881
54935
|
let t = e.target || e.srcElement;
|
|
54882
54936
|
if (this.$el.contains(t)) {
|
|
54883
54937
|
if (this.onDragStart(e) === !1) return;
|
|
54884
|
-
if (this.dragHandle && !
|
|
54938
|
+
if (this.dragHandle && !iJ(t, this.dragHandle, this.$el) || this.dragCancel && iJ(t, this.dragCancel, this.$el)) {
|
|
54885
54939
|
this.dragging = !1;
|
|
54886
54940
|
return;
|
|
54887
54941
|
}
|
|
54888
|
-
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()),
|
|
54942
|
+
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()), oJ(document.documentElement, fJ.move, this.move), oJ(document.documentElement, fJ.stop, this.handleUp);
|
|
54889
54943
|
}
|
|
54890
54944
|
},
|
|
54891
54945
|
calcDragLimits() {
|
|
@@ -54902,13 +54956,13 @@ var iJ = (e, t) => {
|
|
|
54902
54956
|
},
|
|
54903
54957
|
deselect(e) {
|
|
54904
54958
|
let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
|
|
54905
|
-
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)),
|
|
54959
|
+
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), sJ(document.documentElement, fJ.move, this.handleResize)), this.resetBoundsAndMouseState();
|
|
54906
54960
|
},
|
|
54907
54961
|
handleTouchDown(e, t) {
|
|
54908
|
-
|
|
54962
|
+
fJ = lJ.touch, this.handleDown(e, t);
|
|
54909
54963
|
},
|
|
54910
54964
|
handleDown(e, t) {
|
|
54911
|
-
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(),
|
|
54965
|
+
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(), oJ(document.documentElement, fJ.move, this.handleResize), oJ(document.documentElement, fJ.stop, this.handleUp));
|
|
54912
54966
|
},
|
|
54913
54967
|
calcResizeLimits() {
|
|
54914
54968
|
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;
|
|
@@ -54929,41 +54983,41 @@ var iJ = (e, t) => {
|
|
|
54929
54983
|
this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
|
|
54930
54984
|
},
|
|
54931
54985
|
handleDrag(e) {
|
|
54932
|
-
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] =
|
|
54986
|
+
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = eJ(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 = rJ(i.left - a, r.minLeft, r.maxLeft), c = rJ(i.top - o, r.minTop, r.maxTop);
|
|
54933
54987
|
if (this.onDrag(s, c) === !1) return;
|
|
54934
|
-
let l =
|
|
54988
|
+
let l = rJ(i.right + a, r.minRight, r.maxRight), u = rJ(i.bottom + o, r.minBottom, r.maxBottom);
|
|
54935
54989
|
this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
|
|
54936
54990
|
},
|
|
54937
54991
|
moveHorizontally(e) {
|
|
54938
|
-
let [t, n] =
|
|
54992
|
+
let [t, n] = eJ(this.grid, e, this.top, 1), r = rJ(t, this.bounds.minLeft, this.bounds.maxLeft);
|
|
54939
54993
|
this.left = r, this.right = this.parentWidth - this.width - r;
|
|
54940
54994
|
},
|
|
54941
54995
|
moveVertically(e) {
|
|
54942
|
-
let [t, n] =
|
|
54996
|
+
let [t, n] = eJ(this.grid, this.left, e, 1), r = rJ(n, this.bounds.minTop, this.bounds.maxTop);
|
|
54943
54997
|
this.top = r, this.bottom = this.parentHeight - this.height - r;
|
|
54944
54998
|
},
|
|
54945
54999
|
handleResize(e) {
|
|
54946
55000
|
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);
|
|
54947
55001
|
!this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
|
|
54948
|
-
let [l, u] =
|
|
54949
|
-
this.handle.includes("b") ? (i =
|
|
54950
|
-
let d =
|
|
55002
|
+
let [l, u] = eJ(this.grid, s, c, this.scale);
|
|
55003
|
+
this.handle.includes("b") ? (i = rJ(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 = rJ(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 = rJ(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 = rJ(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
|
|
55004
|
+
let d = tJ(this.parentWidth, t, r), f = nJ(this.parentHeight, n, i);
|
|
54951
55005
|
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);
|
|
54952
55006
|
},
|
|
54953
55007
|
changeWidth(e) {
|
|
54954
|
-
let [t, n] =
|
|
55008
|
+
let [t, n] = eJ(this.grid, e, 0, 1), r = rJ(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
|
|
54955
55009
|
this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
|
|
54956
|
-
let a =
|
|
55010
|
+
let a = tJ(this.parentWidth, this.left, r), o = nJ(this.parentHeight, this.top, i);
|
|
54957
55011
|
this.right = r, this.bottom = i, this.width = a, this.height = o;
|
|
54958
55012
|
},
|
|
54959
55013
|
changeHeight(e) {
|
|
54960
|
-
let [t, n] =
|
|
55014
|
+
let [t, n] = eJ(this.grid, 0, e, 1), r = rJ(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
|
|
54961
55015
|
this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
|
|
54962
|
-
let a =
|
|
55016
|
+
let a = tJ(this.parentWidth, this.left, i), o = nJ(this.parentHeight, this.top, r);
|
|
54963
55017
|
this.right = i, this.bottom = r, this.width = a, this.height = o;
|
|
54964
55018
|
},
|
|
54965
55019
|
handleUp(e) {
|
|
54966
|
-
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)),
|
|
55020
|
+
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)), sJ(document.documentElement, fJ.move, this.handleResize);
|
|
54967
55021
|
}
|
|
54968
55022
|
},
|
|
54969
55023
|
computed: {
|
|
@@ -54973,7 +55027,7 @@ var iJ = (e, t) => {
|
|
|
54973
55027
|
width: this.computedWidth,
|
|
54974
55028
|
height: this.computedHeight,
|
|
54975
55029
|
zIndex: this.zIndex,
|
|
54976
|
-
...this.dragging && this.disableUserSelect ?
|
|
55030
|
+
...this.dragging && this.disableUserSelect ? uJ : dJ
|
|
54977
55031
|
};
|
|
54978
55032
|
},
|
|
54979
55033
|
actualHandles() {
|
|
@@ -55035,8 +55089,8 @@ var iJ = (e, t) => {
|
|
|
55035
55089
|
this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
|
|
55036
55090
|
}
|
|
55037
55091
|
}
|
|
55038
|
-
},
|
|
55039
|
-
function
|
|
55092
|
+
}, mJ = ["onMousedown", "onTouchstart"];
|
|
55093
|
+
function hJ(e, t, n, r, i, o) {
|
|
55040
55094
|
return B(), m("div", {
|
|
55041
55095
|
style: F(o.style),
|
|
55042
55096
|
class: N([{
|
|
@@ -55054,17 +55108,17 @@ function dJ(e, t, n, r, i, o) {
|
|
|
55054
55108
|
style: F({ display: e.enabled ? "block" : "none" }),
|
|
55055
55109
|
onMousedown: me((e) => o.handleDown(t, e), ["stop", "prevent"]),
|
|
55056
55110
|
onTouchstart: me((e) => o.handleTouchDown(t, e), ["stop", "prevent"])
|
|
55057
|
-
}, [U(e.$slots, t)], 46,
|
|
55111
|
+
}, [U(e.$slots, t)], 46, mJ))), 128)), U(e.$slots, "default")], 38);
|
|
55058
55112
|
}
|
|
55059
|
-
var
|
|
55060
|
-
function
|
|
55061
|
-
|
|
55113
|
+
var gJ = /* @__PURE__ */ cJ(pJ, [["render", hJ]]);
|
|
55114
|
+
function _J(e) {
|
|
55115
|
+
_J.installed || (_J.installed = !0, e.component("VueDraggableResizable", gJ));
|
|
55062
55116
|
}
|
|
55063
|
-
var
|
|
55064
|
-
typeof window < "u" ?
|
|
55117
|
+
var vJ = { install: _J }, yJ = null;
|
|
55118
|
+
typeof window < "u" ? yJ = window.Vue : typeof global < "u" && (yJ = global.Vue), yJ && yJ.use(vJ);
|
|
55065
55119
|
//#endregion
|
|
55066
55120
|
//#region src/containers/use-draggable.ts
|
|
55067
|
-
function
|
|
55121
|
+
function bJ(e = {}, t) {
|
|
55068
55122
|
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 = V(!1), S = (e) => {
|
|
55069
55123
|
let t = window.innerWidth, n = { ...e };
|
|
55070
55124
|
return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
|
|
@@ -55157,7 +55211,7 @@ function gJ(e = {}, t) {
|
|
|
55157
55211
|
}
|
|
55158
55212
|
//#endregion
|
|
55159
55213
|
//#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
|
|
55160
|
-
var
|
|
55214
|
+
var xJ = { class: "draggable-container-content" }, SJ = /* @__PURE__ */ be(/* @__PURE__ */ b({
|
|
55161
55215
|
__name: "draggable-container",
|
|
55162
55216
|
props: {
|
|
55163
55217
|
className: { default: "" },
|
|
@@ -55194,7 +55248,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55194
55248
|
"compression-change"
|
|
55195
55249
|
],
|
|
55196
55250
|
setup(e, { expose: t, emit: n }) {
|
|
55197
|
-
let r = e, i = n, a = V(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: d, width: p, height: m, isCompressed: g, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D } =
|
|
55251
|
+
let r = e, i = n, a = V(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: d, width: p, height: m, isCompressed: g, isSidePanelExpanded: _, handleDragging: v, handleResizing: y, handleDragStop: b, handleResizeStop: x, toggleCompression: S, updatePosition: C, updateSize: w, updatePositionAndSize: T, expandForSidePanel: E, collapseSidePanel: D } = bJ({
|
|
55198
55252
|
initWidth: r.defaultWidth,
|
|
55199
55253
|
minWidth: r.minWidth,
|
|
55200
55254
|
minHeight: r.minHeight,
|
|
@@ -55243,7 +55297,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55243
55297
|
positionAndSize: k,
|
|
55244
55298
|
isCompressed: g,
|
|
55245
55299
|
isSidePanelExpanded: _
|
|
55246
|
-
}), (e, t) => pe((B(), f(K(
|
|
55300
|
+
}), (e, t) => pe((B(), f(K(gJ), {
|
|
55247
55301
|
ref: "draggableRef",
|
|
55248
55302
|
active: r.visible,
|
|
55249
55303
|
class: N(["draggable-container-wrapper", r.className]),
|
|
@@ -55266,7 +55320,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55266
55320
|
onResizeStop: L,
|
|
55267
55321
|
onResizing: P
|
|
55268
55322
|
}, {
|
|
55269
|
-
default: J(() => [h("div",
|
|
55323
|
+
default: J(() => [h("div", xJ, [U(e.$slots, "default", {}, void 0, !0)])]),
|
|
55270
55324
|
_: 3
|
|
55271
55325
|
}, 8, [
|
|
55272
55326
|
"active",
|
|
@@ -55284,11 +55338,11 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55284
55338
|
"y"
|
|
55285
55339
|
])), [[le, r.visible]]);
|
|
55286
55340
|
}
|
|
55287
|
-
}), [["__scopeId", "data-v-1118456b"]]),
|
|
55341
|
+
}), [["__scopeId", "data-v-1118456b"]]), CJ = { class: "nimbus-bkai-wrapper" }, wJ = [
|
|
55288
55342
|
"width",
|
|
55289
55343
|
"height",
|
|
55290
55344
|
"src"
|
|
55291
|
-
],
|
|
55345
|
+
], TJ = /* @__PURE__ */ be(/* @__PURE__ */ b({
|
|
55292
55346
|
name: "NimbusButton",
|
|
55293
55347
|
__name: "nimbus",
|
|
55294
55348
|
props: {
|
|
@@ -55340,11 +55394,11 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55340
55394
|
right: -6
|
|
55341
55395
|
}
|
|
55342
55396
|
}
|
|
55343
|
-
}, a = u(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: d, handleClick: p, handleMinimize: m, handleDragging: g, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } =
|
|
55397
|
+
}, a = u(() => i[n.size]), o = V(null), s = V(null), { nimbusLeft: c, nimbusTop: l, isMinimize: d, handleClick: p, handleMinimize: m, handleDragging: g, handleMouseEnter: _, handleMouseLeave: v, handleMouseDown: y, handleMouseUp: b } = Kq(r, n.isMinimize);
|
|
55344
55398
|
ue(d, (e) => {
|
|
55345
55399
|
r("update:isMinimize", e);
|
|
55346
55400
|
});
|
|
55347
|
-
let x = u(() => d.value ? yT("恢复默认大小") : yT("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } =
|
|
55401
|
+
let x = u(() => d.value ? yT("恢复默认大小") : yT("最小化,将缩成锚点")), { createTooltip: S, destroyAll: C } = Zq({
|
|
55348
55402
|
theme: "ai-blueking",
|
|
55349
55403
|
delay: [0, 0]
|
|
55350
55404
|
}), w = () => {
|
|
@@ -55364,7 +55418,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55364
55418
|
}), window.addEventListener("resize", w);
|
|
55365
55419
|
}), I(() => {
|
|
55366
55420
|
window.removeEventListener("resize", w);
|
|
55367
|
-
}), (t, n) => (B(), f(K(
|
|
55421
|
+
}), (t, n) => (B(), f(K(gJ), {
|
|
55368
55422
|
active: !e.isPanelShow,
|
|
55369
55423
|
axis: "y",
|
|
55370
55424
|
draggable: !0,
|
|
@@ -55386,12 +55440,12 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55386
55440
|
onMouseenter: n[3] ||= (...e) => K(_) && K(_)(...e),
|
|
55387
55441
|
onMouseleave: n[4] ||= (...e) => K(v) && K(v)(...e),
|
|
55388
55442
|
onMouseup: n[5] ||= (...e) => K(b) && K(b)(...e)
|
|
55389
|
-
}, [h("div",
|
|
55443
|
+
}, [h("div", CJ, [h("img", {
|
|
55390
55444
|
width: a.value.img,
|
|
55391
55445
|
height: a.value.img,
|
|
55392
55446
|
src: K(kK),
|
|
55393
55447
|
alt: "nimbus"
|
|
55394
|
-
}, null, 8,
|
|
55448
|
+
}, null, 8, wJ)]), h("i", {
|
|
55395
55449
|
ref_key: "minimizeButtonRef",
|
|
55396
55450
|
ref: s,
|
|
55397
55451
|
class: N(["nimbus-mini bkai-icon", K(d) ? "bkai-yinyong" : "bkai-minus-line"]),
|
|
@@ -55407,7 +55461,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55407
55461
|
"onDragging"
|
|
55408
55462
|
]));
|
|
55409
55463
|
}
|
|
55410
|
-
}), [["__scopeId", "data-v-26b6f3ea"]]),
|
|
55464
|
+
}), [["__scopeId", "data-v-26b6f3ea"]]), EJ = /* @__PURE__ */ be(/* @__PURE__ */ b({
|
|
55411
55465
|
__name: "ai-blueking",
|
|
55412
55466
|
props: /* @__PURE__ */ k({
|
|
55413
55467
|
autoSwitchToInitialSession: { type: Boolean },
|
|
@@ -55450,7 +55504,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55450
55504
|
renderMode: {},
|
|
55451
55505
|
shortcutFilter: { type: Function },
|
|
55452
55506
|
resizeProps: {}
|
|
55453
|
-
},
|
|
55507
|
+
}, Qq),
|
|
55454
55508
|
emits: [
|
|
55455
55509
|
"show",
|
|
55456
55510
|
"close",
|
|
@@ -55477,28 +55531,28 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55477
55531
|
"share"
|
|
55478
55532
|
],
|
|
55479
55533
|
setup(e, { expose: t, emit: n }) {
|
|
55480
|
-
let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: s, shareBusinessManager: c, shortcutManager: l, forwarders: u, forwardToManager: d, chatBotRef: m, draggableContainerRef: _, panelVisible: y, nimbusMinimized: b, normalizedUrl: x, agentName: C, currentSession: w, isCompressed: T, isWelcomeState: E, messageToolsTippyOptions: O, agentResources: k, agentPrompts: A, handleError: j } =
|
|
55534
|
+
let r = e, { chatHelper: i, componentManager: a, sessionBusinessManager: s, shareBusinessManager: c, shortcutManager: l, forwarders: u, forwardToManager: d, chatBotRef: m, draggableContainerRef: _, panelVisible: y, nimbusMinimized: b, normalizedUrl: x, agentName: C, currentSession: w, isCompressed: T, isWelcomeState: E, messageToolsTippyOptions: O, agentResources: k, agentPrompts: A, handleError: j } = Wq({
|
|
55481
55535
|
props: r,
|
|
55482
55536
|
emit: n
|
|
55483
|
-
}), { show: M, hide: I, handleShow: L, handleClose: R, handleNimbusClick: z, handleDragging: ee, handleResizing: te, handleDragStop: V, handleResizeStop: ne, handleToggleCompression: H, handleCompressionChange: re, handleExecutionPanelChange: W, sendMessage: G, handleReceiveStart: ie, handleReceiveText: ae, handleReceiveEnd: q, handleStop: oe, stopGeneration: se, setCiteText: ce, focusInput: le, selectShortcut: ue, sendShortcut: de, getChatHelper: fe, updatePosition: pe, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } =
|
|
55537
|
+
}), { show: M, hide: I, handleShow: L, handleClose: R, handleNimbusClick: z, handleDragging: ee, handleResizing: te, handleDragStop: V, handleResizeStop: ne, handleToggleCompression: H, handleCompressionChange: re, handleExecutionPanelChange: W, sendMessage: G, handleReceiveStart: ie, handleReceiveText: ae, handleReceiveEnd: q, handleStop: oe, stopGeneration: se, setCiteText: ce, focusInput: le, selectShortcut: ue, sendShortcut: de, getChatHelper: fe, updatePosition: pe, updateSize: me, updatePositionAndSize: he, handleShortcutClick: ge } = Jq({
|
|
55484
55538
|
componentManager: a,
|
|
55485
55539
|
chatBotRef: m,
|
|
55486
55540
|
forwarders: u,
|
|
55487
55541
|
forwardToManager: d,
|
|
55488
55542
|
beforeNimbusClick: r.beforeNimbusClick
|
|
55489
|
-
}), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: be, handleNewChat: xe, handleNewChatCreated: Se, handleHistoryClick: Ce, handleHistorySessionSwitch: we, handleHistorySessionDelete: Te, handleHistorySessionRename: Ee, handleAutoGenerateName: De, handleHelpClick: Oe, handleRename: ke, handleSessionSwitched: Ae, addNewSession: je, switchToSession: Me, updateSessionName: Ne } =
|
|
55543
|
+
}), { sessionName: _e, hasPermission: ve, hasSessionContents: ye, autoGenerateLoading: be, handleNewChat: xe, handleNewChatCreated: Se, handleHistoryClick: Ce, handleHistorySessionSwitch: we, handleHistorySessionDelete: Te, handleHistorySessionRename: Ee, handleAutoGenerateName: De, handleHelpClick: Oe, handleRename: ke, handleSessionSwitched: Ae, addNewSession: je, switchToSession: Me, updateSessionName: Ne } = Yq({
|
|
55490
55544
|
chatHelper: i,
|
|
55491
55545
|
sessionBusinessManager: s,
|
|
55492
55546
|
chatBotRef: m,
|
|
55493
55547
|
forwarders: u,
|
|
55494
55548
|
handleError: j,
|
|
55495
55549
|
currentSession: w
|
|
55496
|
-
}), { isShareLoading: Pe, handleShare: Fe, handleCancelShare: Ie, handleConfirmShare: Le } =
|
|
55550
|
+
}), { isShareLoading: Pe, handleShare: Fe, handleCancelShare: Ie, handleConfirmShare: Le } = Xq({
|
|
55497
55551
|
shareBusinessManager: c,
|
|
55498
55552
|
chatBotRef: m,
|
|
55499
55553
|
forwarders: u,
|
|
55500
55554
|
handleError: j
|
|
55501
|
-
}), { aiSelectionVisible: Re, filteredPopupShortcuts: ze, handleSelectionChange: Be, handleAiSelectionShortcut: Ve } =
|
|
55555
|
+
}), { aiSelectionVisible: Re, filteredPopupShortcuts: ze, handleSelectionChange: Be, handleAiSelectionShortcut: Ve } = Gq({
|
|
55502
55556
|
shortcutManager: l,
|
|
55503
55557
|
chatBotRef: m,
|
|
55504
55558
|
forwardToManager: d,
|
|
@@ -55527,7 +55581,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55527
55581
|
focusInput: le
|
|
55528
55582
|
}), (e, t) => (B(), f(o, { to: r.teleportTo }, [h("div", { class: N(["ai-blueking-v2", r.extCls]) }, [
|
|
55529
55583
|
p(" 可拖拽容器 "),
|
|
55530
|
-
v(K(
|
|
55584
|
+
v(K(SJ), {
|
|
55531
55585
|
ref_key: "draggableContainerRef",
|
|
55532
55586
|
ref: _,
|
|
55533
55587
|
"compressed-padding": r.miniPadding,
|
|
@@ -55585,7 +55639,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55585
55639
|
key: "0"
|
|
55586
55640
|
} : void 0]), 1032, /* @__PURE__ */ "agent-name.chat-helper.draggable.dropdown-menu-config.enable-chat-session.has-permission.has-session-contents.auto-generate-loading.is-compression-height.render-mode.session-business-manager.session-name.show-compression-icon.show-history-icon.show-more-icon.show-new-chat-icon.title.onAutoGenerateName.onClose.onHelpClick.onHistoryClick.onHistorySessionDelete.onHistorySessionRename.onHistorySessionSwitch.onNewChat.onNewChatCreated.onRename.onShare.onToggleCompression".split("."))),
|
|
55587
55641
|
p(" ChatBot 核心组件(仅聊天区域) "),
|
|
55588
|
-
v(
|
|
55642
|
+
v(Iq, {
|
|
55589
55643
|
ref_key: "chatBotRef",
|
|
55590
55644
|
ref: m,
|
|
55591
55645
|
"always-create-new-session": r.alwaysCreateNewSession,
|
|
@@ -55664,7 +55718,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55664
55718
|
"onResizing"
|
|
55665
55719
|
]),
|
|
55666
55720
|
p(" Nimbus 悬浮球 "),
|
|
55667
|
-
r.hideNimbus ? p("v-if", !0) : (B(), f(
|
|
55721
|
+
r.hideNimbus ? p("v-if", !0) : (B(), f(TJ, {
|
|
55668
55722
|
key: 0,
|
|
55669
55723
|
"is-minimize": K(b),
|
|
55670
55724
|
"onUpdate:isMinimize": t[4] ||= (e) => D(b) ? b.value = e : null,
|
|
@@ -55699,7 +55753,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55699
55753
|
])) : p("v-if", !0)
|
|
55700
55754
|
], 2)], 8, ["to"]));
|
|
55701
55755
|
}
|
|
55702
|
-
}), [["__scopeId", "data-v-a1adc8bc"]]),
|
|
55756
|
+
}), [["__scopeId", "data-v-a1adc8bc"]]), DJ = [
|
|
55703
55757
|
"close",
|
|
55704
55758
|
"show",
|
|
55705
55759
|
"stop",
|
|
@@ -55723,7 +55777,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55723
55777
|
"help-click",
|
|
55724
55778
|
"rename",
|
|
55725
55779
|
"share"
|
|
55726
|
-
],
|
|
55780
|
+
], OJ = [
|
|
55727
55781
|
"show",
|
|
55728
55782
|
"handleShow",
|
|
55729
55783
|
"handleClose",
|
|
@@ -55741,7 +55795,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55741
55795
|
"getChatHelper",
|
|
55742
55796
|
"selectShortcut",
|
|
55743
55797
|
"sendShortcut"
|
|
55744
|
-
],
|
|
55798
|
+
], kJ = Lq(EJ, {
|
|
55745
55799
|
name: "AIBluekingV2",
|
|
55746
55800
|
props: {
|
|
55747
55801
|
extCls: {
|
|
@@ -55901,8 +55955,8 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55901
55955
|
default: void 0
|
|
55902
55956
|
}
|
|
55903
55957
|
},
|
|
55904
|
-
emitNames: [...
|
|
55905
|
-
exposeKeys: [...
|
|
55958
|
+
emitNames: [...DJ],
|
|
55959
|
+
exposeKeys: [...OJ],
|
|
55906
55960
|
slots: ["codeHeader", "headerLeft"],
|
|
55907
55961
|
deepWatchProps: [
|
|
55908
55962
|
"requestOptions",
|
|
@@ -55962,7 +56016,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55962
56016
|
return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
|
|
55963
56017
|
}
|
|
55964
56018
|
}
|
|
55965
|
-
}),
|
|
56019
|
+
}), AJ = [
|
|
55966
56020
|
"send-message",
|
|
55967
56021
|
"error",
|
|
55968
56022
|
"stop",
|
|
@@ -55977,7 +56031,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55977
56031
|
"cancel-share",
|
|
55978
56032
|
"execution-panel-change",
|
|
55979
56033
|
"feedback"
|
|
55980
|
-
],
|
|
56034
|
+
], jJ = [
|
|
55981
56035
|
"sendMessage",
|
|
55982
56036
|
"stopGeneration",
|
|
55983
56037
|
"focusInput",
|
|
@@ -55991,7 +56045,7 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
55991
56045
|
"currentSession",
|
|
55992
56046
|
"isGenerating",
|
|
55993
56047
|
"messages"
|
|
55994
|
-
],
|
|
56048
|
+
], MJ = Lq(Iq, {
|
|
55995
56049
|
name: "ChatBotV2",
|
|
55996
56050
|
props: {
|
|
55997
56051
|
chatHelper: {
|
|
@@ -56067,8 +56121,8 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
56067
56121
|
default: void 0
|
|
56068
56122
|
}
|
|
56069
56123
|
},
|
|
56070
|
-
emitNames: [...
|
|
56071
|
-
exposeKeys: [...
|
|
56124
|
+
emitNames: [...AJ],
|
|
56125
|
+
exposeKeys: [...jJ],
|
|
56072
56126
|
slots: ["codeHeader"],
|
|
56073
56127
|
deepWatchProps: [
|
|
56074
56128
|
"requestOptions",
|
|
@@ -56077,4 +56131,4 @@ var _J = { class: "draggable-container-content" }, vJ = /* @__PURE__ */ be(/* @_
|
|
|
56077
56131
|
]
|
|
56078
56132
|
});
|
|
56079
56133
|
//#endregion
|
|
56080
|
-
export {
|
|
56134
|
+
export { MJ as ChatBotV2, kJ as default, C as h };
|