@blueking/ai-blueking 2.2.4-beta.8 → 2.2.4-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/ai-blueking.vue.d.ts +1 -0
- package/dist/ai-blueking.vue.d.ts.map +1 -1
- package/dist/components/ai-header/index.vue.d.ts +1 -0
- package/dist/components/ai-header/index.vue.d.ts.map +1 -1
- package/dist/standalone/index.es.min.js +200 -192
- package/dist/standalone/index.iife.min.js +3 -3
- package/dist/standalone/index.umd.min.js +3 -3
- package/dist/standalone/style.css +1 -1
- package/dist/vue2/index.es.min.js +201 -192
- package/dist/vue2/index.iife.min.js +3 -3
- package/dist/vue2/index.umd.min.js +3 -3
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +138 -130
- package/dist/vue3/index.iife.min.js +3 -3
- package/dist/vue3/index.umd.min.js +3 -3
- package/dist/vue3/style.css +1 -1
- package/package.json +1 -1
|
@@ -59258,10 +59258,13 @@ var A5 = { class: "left-section" }, j5 = { class: "logo" }, M5 = ["src"], N5 = {
|
|
|
59258
59258
|
key: 1,
|
|
59259
59259
|
class: "bkai-icon bkai-auto-refresh-line"
|
|
59260
59260
|
}, L5 = { class: "right-section" }, R5 = {
|
|
59261
|
-
key:
|
|
59261
|
+
key: 3,
|
|
59262
|
+
class: "header-actions"
|
|
59263
|
+
}, z5 = {
|
|
59264
|
+
key: 5,
|
|
59262
59265
|
"aria-hidden": "true",
|
|
59263
59266
|
class: "header-toolbar-divider"
|
|
59264
|
-
},
|
|
59267
|
+
}, B5 = /* @__PURE__ */ h5(/* @__PURE__ */ H({
|
|
59265
59268
|
__name: "index",
|
|
59266
59269
|
props: {
|
|
59267
59270
|
agentName: { default: "" },
|
|
@@ -59552,8 +59555,9 @@ var A5 = { class: "left-section" }, j5 = { class: "logo" }, M5 = ["src"], N5 = {
|
|
|
59552
59555
|
content: V(l5)("转人工"),
|
|
59553
59556
|
boundary: "parent"
|
|
59554
59557
|
}]]) : Y("v-if", !0),
|
|
59558
|
+
t.$slots.headerActions ? (W(), G("div", R5, [li(t.$slots, "headerActions", {}, void 0, !0)])) : Y("v-if", !0),
|
|
59555
59559
|
r.showCompressionIcon ? Hn((W(), G("i", {
|
|
59556
|
-
key:
|
|
59560
|
+
key: 4,
|
|
59557
59561
|
class: L(["bkai-icon", v.value]),
|
|
59558
59562
|
onClick: n[5] ||= (e) => i("toggle-compression")
|
|
59559
59563
|
}, null, 2)), [[V(o), {
|
|
@@ -59568,9 +59572,9 @@ var A5 = { class: "left-section" }, j5 = { class: "logo" }, M5 = ["src"], N5 = {
|
|
|
59568
59572
|
boundary: "parent"
|
|
59569
59573
|
}]]),
|
|
59570
59574
|
Y(" 设计稿:关闭与侧栏展开之间有竖线分隔 "),
|
|
59571
|
-
r.showAsideToggle ? (W(), G("span",
|
|
59575
|
+
r.showAsideToggle ? (W(), G("span", z5)) : Y("v-if", !0),
|
|
59572
59576
|
r.showAsideToggle ? Hn((W(), G("span", {
|
|
59573
|
-
key:
|
|
59577
|
+
key: 6,
|
|
59574
59578
|
class: "bkai-icon aside-toggle",
|
|
59575
59579
|
onClick: n[7] ||= Rs((e) => i("toggle-aside"), ["stop"])
|
|
59576
59580
|
}, [J(V(a))])), [[V(o), {
|
|
@@ -59580,31 +59584,31 @@ var A5 = { class: "left-section" }, j5 = { class: "logo" }, M5 = ["src"], N5 = {
|
|
|
59580
59584
|
])
|
|
59581
59585
|
], 2));
|
|
59582
59586
|
}
|
|
59583
|
-
}), [["__scopeId", "data-v-
|
|
59587
|
+
}), [["__scopeId", "data-v-c3948a0e"]]);
|
|
59584
59588
|
//#endregion
|
|
59585
59589
|
//#region src/bootstrap/agent-bootstrap.ts
|
|
59586
|
-
function
|
|
59590
|
+
function V5(e) {
|
|
59587
59591
|
let t = e5(e);
|
|
59588
59592
|
fetch(t, {
|
|
59589
59593
|
method: "GET",
|
|
59590
59594
|
credentials: "include"
|
|
59591
59595
|
}).catch(() => {});
|
|
59592
59596
|
}
|
|
59593
|
-
async function
|
|
59597
|
+
async function H5(e, t = {}) {
|
|
59594
59598
|
let { enableModelSelect: n = !0 } = t, r = [e.agent.getAgentInfo(), e.session.getSessions()];
|
|
59595
59599
|
n && typeof e.agent.getLlms == "function" && r.push(e.agent.getLlms().catch((e) => {
|
|
59596
59600
|
console.error("[runAgentBootstrap] Failed to load models:", e);
|
|
59597
59601
|
})), await Promise.all(r);
|
|
59598
59602
|
let i = e.agent.info.value?.saasUrl;
|
|
59599
|
-
i &&
|
|
59603
|
+
i && V5(i);
|
|
59600
59604
|
}
|
|
59601
59605
|
//#endregion
|
|
59602
59606
|
//#region src/manager/business/model-selection-manager.ts
|
|
59603
|
-
var
|
|
59607
|
+
var U5 = class extends Error {
|
|
59604
59608
|
constructor(e = "当前没有可用模型,无法创建会话") {
|
|
59605
59609
|
super(e), this.name = "ModelUnavailableError";
|
|
59606
59610
|
}
|
|
59607
|
-
},
|
|
59611
|
+
}, W5 = class {
|
|
59608
59612
|
_isLoading;
|
|
59609
59613
|
_models;
|
|
59610
59614
|
_selectedLlmCode;
|
|
@@ -59709,7 +59713,7 @@ var H5 = class extends Error {
|
|
|
59709
59713
|
resolveModelForSession(e) {
|
|
59710
59714
|
if (!this.enabled) return e;
|
|
59711
59715
|
let t = this._models.value;
|
|
59712
|
-
if (t.length === 0) throw new
|
|
59716
|
+
if (t.length === 0) throw new U5();
|
|
59713
59717
|
return e && t.some((t) => t.llm_code === e) ? e : this.hasValidSelection() ? this._selectedLlmCode.value : this.defaultModelCode();
|
|
59714
59718
|
}
|
|
59715
59719
|
setModels(e) {
|
|
@@ -59725,7 +59729,7 @@ var H5 = class extends Error {
|
|
|
59725
59729
|
}
|
|
59726
59730
|
this._selectedLlmCode.value = this._models.value.find((t) => t.llm_name === e)?.llm_code;
|
|
59727
59731
|
}
|
|
59728
|
-
},
|
|
59732
|
+
}, G5 = class {
|
|
59729
59733
|
_isGenerating;
|
|
59730
59734
|
_isStopLoading;
|
|
59731
59735
|
agentModule;
|
|
@@ -59760,7 +59764,7 @@ var H5 = class extends Error {
|
|
|
59760
59764
|
this.eventEmitter?.emit(e, t);
|
|
59761
59765
|
}
|
|
59762
59766
|
constructor(e, t, n = null, r = null, i = {}, a) {
|
|
59763
|
-
this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new
|
|
59767
|
+
this.agentModule = e, this.messageModule = t, this.sessionModule = n, this.eventEmitter = r, this.config = i, this.modelSelection = a ?? new W5(e, n), this._isGenerating = /* @__PURE__ */ z(!1), this._isStopLoading = /* @__PURE__ */ z(!1);
|
|
59764
59768
|
}
|
|
59765
59769
|
get isGenerating() {
|
|
59766
59770
|
return this._isGenerating;
|
|
@@ -59928,7 +59932,7 @@ var H5 = class extends Error {
|
|
|
59928
59932
|
this._isStopLoading.value = !1;
|
|
59929
59933
|
}
|
|
59930
59934
|
}
|
|
59931
|
-
},
|
|
59935
|
+
}, K5 = class {
|
|
59932
59936
|
agentModule;
|
|
59933
59937
|
config;
|
|
59934
59938
|
eventEmitter;
|
|
@@ -59942,7 +59946,7 @@ var H5 = class extends Error {
|
|
|
59942
59946
|
return await this.modelSelection.ensureLoaded(), this.modelSelection.resolveModelForSession(e);
|
|
59943
59947
|
}
|
|
59944
59948
|
constructor(e, t = null, n = null, r = {}, i = null, a) {
|
|
59945
|
-
this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new
|
|
59949
|
+
this.sessionModule = e, this.agentModule = t, this.eventEmitter = n, this.config = r, this.messageModule = i, this.modelSelection = a ?? new W5(t, e, { enabled: !1 });
|
|
59946
59950
|
}
|
|
59947
59951
|
get currentSession() {
|
|
59948
59952
|
return this.sessionModule.current;
|
|
@@ -60113,7 +60117,7 @@ var H5 = class extends Error {
|
|
|
60113
60117
|
}), e;
|
|
60114
60118
|
}
|
|
60115
60119
|
}
|
|
60116
|
-
},
|
|
60120
|
+
}, q5 = class {
|
|
60117
60121
|
messageModule;
|
|
60118
60122
|
sessionModule;
|
|
60119
60123
|
constructor(e, t) {
|
|
@@ -60130,7 +60134,7 @@ var H5 = class extends Error {
|
|
|
60130
60134
|
userMessageIds: e.map((e) => String(e.id))
|
|
60131
60135
|
};
|
|
60132
60136
|
}
|
|
60133
|
-
},
|
|
60137
|
+
}, J5 = class {
|
|
60134
60138
|
_agentShortcuts;
|
|
60135
60139
|
_effectiveShortcuts;
|
|
60136
60140
|
_propsShortcuts;
|
|
@@ -60187,7 +60191,7 @@ var H5 = class extends Error {
|
|
|
60187
60191
|
setShortcuts(e) {
|
|
60188
60192
|
this._propsShortcuts.value = e;
|
|
60189
60193
|
}
|
|
60190
|
-
},
|
|
60194
|
+
}, Y5 = class {
|
|
60191
60195
|
_isCompressed;
|
|
60192
60196
|
_isDraggingOrResizing;
|
|
60193
60197
|
_nimbusMinimized;
|
|
@@ -60406,12 +60410,12 @@ var H5 = class extends Error {
|
|
|
60406
60410
|
};
|
|
60407
60411
|
}
|
|
60408
60412
|
};
|
|
60409
|
-
function
|
|
60410
|
-
return new
|
|
60413
|
+
function X5(e) {
|
|
60414
|
+
return new Y5(e);
|
|
60411
60415
|
}
|
|
60412
60416
|
//#endregion
|
|
60413
60417
|
//#region src/manager/event-types.ts
|
|
60414
|
-
var
|
|
60418
|
+
var Z5 = {
|
|
60415
60419
|
"panel-show": "show",
|
|
60416
60420
|
"panel-hide": "close",
|
|
60417
60421
|
"panel-toggle": null,
|
|
@@ -60461,7 +60465,7 @@ var X5 = {
|
|
|
60461
60465
|
"agent-info-loaded": null,
|
|
60462
60466
|
error: null
|
|
60463
60467
|
};
|
|
60464
|
-
function
|
|
60468
|
+
function Q5(e, t) {
|
|
60465
60469
|
switch (e) {
|
|
60466
60470
|
case "send-message": return [t.content];
|
|
60467
60471
|
case "rename": return [t.newName, t.sessionCode];
|
|
@@ -60492,7 +60496,7 @@ function Z5(e, t) {
|
|
|
60492
60496
|
}
|
|
60493
60497
|
//#endregion
|
|
60494
60498
|
//#region src/manager/ui/ui-state-manager.ts
|
|
60495
|
-
var
|
|
60499
|
+
var $5 = class {
|
|
60496
60500
|
_selectedMessageIds;
|
|
60497
60501
|
_isSelectionMode;
|
|
60498
60502
|
_editingSessionCode;
|
|
@@ -60565,12 +60569,12 @@ var Q5 = class {
|
|
|
60565
60569
|
reset() {
|
|
60566
60570
|
this.clearSelection(), this.disableSelectionMode(), this.stopEditingSession(), this.clearLoadingStates();
|
|
60567
60571
|
}
|
|
60568
|
-
},
|
|
60572
|
+
}, e7 = class extends Error {
|
|
60569
60573
|
constructor() {
|
|
60570
60574
|
super("[ChatBot] Initialization was superseded by a newer init"), this.name = "ChatBotInitStaleError";
|
|
60571
60575
|
}
|
|
60572
60576
|
};
|
|
60573
|
-
function
|
|
60577
|
+
function t7(e) {
|
|
60574
60578
|
let { props: t, emit: n, reportError: r, managerErrorBridge: i } = e, a = /* @__PURE__ */ B(null), o = /* @__PURE__ */ B(null), s = /* @__PURE__ */ B(null), c = /* @__PURE__ */ B(null), l = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(!t.chatHelper), d = /* @__PURE__ */ z(null), f = X(() => l.value), p = () => t.chatHelper ? !t.chatHelper.agent || !t.chatHelper.session || !t.chatHelper.message ? {
|
|
60575
60579
|
valid: !1,
|
|
60576
60580
|
error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
|
|
@@ -60606,7 +60610,7 @@ function e7(e) {
|
|
|
60606
60610
|
}, g = 0, _ = null, v = null, y = null, b = (e) => {
|
|
60607
60611
|
y &&= (e ? y.reject(e) : y.resolve(), null), _ = null;
|
|
60608
60612
|
}, x = (e) => {
|
|
60609
|
-
if (e !== g) throw new
|
|
60613
|
+
if (e !== g) throw new e7();
|
|
60610
60614
|
}, S = async (e) => {
|
|
60611
60615
|
if (t.enableModelSelect !== !1) {
|
|
60612
60616
|
if (t.models?.length) {
|
|
@@ -60620,26 +60624,26 @@ function e7(e) {
|
|
|
60620
60624
|
l.value = !1, d.value = null, u.value = !t.chatHelper, h(f), x(e), a.value = null, o.value = null, s.value = null, c.value = null;
|
|
60621
60625
|
let p = m();
|
|
60622
60626
|
if (!p) throw d.value ?? /* @__PURE__ */ Error("[ChatBot] Failed to create chatHelper");
|
|
60623
|
-
let g = t.modelSelectionManager ?? new
|
|
60627
|
+
let g = t.modelSelectionManager ?? new W5(p.agent, p.session, { enabled: t.enableModelSelect !== !1 }), _ = new K5(p.session, p.agent, i, {
|
|
60624
60628
|
enableChatSession: !0,
|
|
60625
60629
|
autoSwitchToInitialSession: !!t.sessionCode,
|
|
60626
60630
|
loadRecentSessionOnMount: t.autoLoad,
|
|
60627
60631
|
initialSessionCode: t.sessionCode,
|
|
60628
60632
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
60629
|
-
}, p.message, g), v = new
|
|
60633
|
+
}, p.message, g), v = new G5(p.agent, p.message, p.session, i, {
|
|
60630
60634
|
openingRemark: t.helloText,
|
|
60631
60635
|
predefinedQuestions: t.prompts,
|
|
60632
60636
|
placeholder: t.placeholder,
|
|
60633
60637
|
onSessionRenamed: (e, t) => n("rename", e, t)
|
|
60634
|
-
}, g), y = new
|
|
60638
|
+
}, g), y = new J5(null, t.shortcuts || []);
|
|
60635
60639
|
a.value = p, o.value = _, s.value = v, c.value = y;
|
|
60636
60640
|
try {
|
|
60637
|
-
u.value ? (await
|
|
60641
|
+
u.value ? (await H5(p, { enableModelSelect: t.enableModelSelect !== !1 && !t.models?.length }), x(e), await S(g), x(e), await _.loadRecentSession({ skipLoadSessions: !0 }), x(e)) : await S(g), x(e), l.value = !0, n("agent-info-loaded", p);
|
|
60638
60642
|
} catch (t) {
|
|
60639
60643
|
throw x(e), d.value = r(t, "Failed to initialize ChatBot"), t;
|
|
60640
60644
|
}
|
|
60641
60645
|
}, w = () => {
|
|
60642
|
-
b(new
|
|
60646
|
+
b(new e7()), v = null;
|
|
60643
60647
|
let e = ++g;
|
|
60644
60648
|
_ = new Promise((t, n) => {
|
|
60645
60649
|
y = {
|
|
@@ -60670,24 +60674,24 @@ function e7(e) {
|
|
|
60670
60674
|
}
|
|
60671
60675
|
//#endregion
|
|
60672
60676
|
//#region src/components/composables/use-chatbot-state.ts
|
|
60673
|
-
var
|
|
60677
|
+
var n7 = [{
|
|
60674
60678
|
id: "rebuild",
|
|
60675
60679
|
hidden: !0
|
|
60676
|
-
}],
|
|
60680
|
+
}], r7 = [{
|
|
60677
60681
|
id: "delete",
|
|
60678
60682
|
hidden: !0
|
|
60679
|
-
}],
|
|
60683
|
+
}], i7 = [{
|
|
60680
60684
|
id: "edit",
|
|
60681
60685
|
hidden: !0
|
|
60682
60686
|
}, {
|
|
60683
60687
|
id: "delete",
|
|
60684
60688
|
hidden: !0
|
|
60685
60689
|
}];
|
|
60686
|
-
function
|
|
60690
|
+
function a7(e, t, n) {
|
|
60687
60691
|
return e ? [...n, ...t ?? []] : t;
|
|
60688
60692
|
}
|
|
60689
|
-
function
|
|
60690
|
-
let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = X(() => r.value?.isStopLoading.value ? qc.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? qc.Streaming : qc.Complete), u = X(() => l.value === qc.Streaming ? kQ.Disabled : void 0), d = X(() => ((t.chatHelper || n.value)?.agent)?.info.value?.agentType === "claw"), f = X(() =>
|
|
60693
|
+
function o7(e) {
|
|
60694
|
+
let { props: t, chatHelper: n, chatBusinessManager: r, sessionBusinessManager: i, shortcutManager: a, isStandaloneMode: o, isInitialized: s, selectedShortcut: c } = e, l = X(() => r.value?.isStopLoading.value ? qc.StopLoading : ((t.chatHelper || n.value)?.agent)?.isChatting?.value ? qc.Streaming : qc.Complete), u = X(() => l.value === qc.Streaming ? kQ.Disabled : void 0), d = X(() => ((t.chatHelper || n.value)?.agent)?.info.value?.agentType === "claw"), f = X(() => a7(d.value, t.messageTools, n7)), p = X(() => a7(d.value, t.updateTools, r7)), m = X(() => a7(d.value, void 0, i7)), h = X(() => r.value?.messages.value ?? []), g = X(() => r.value?.isMessagesLoading.value ?? !1);
|
|
60691
60695
|
return {
|
|
60692
60696
|
messageStatus: l,
|
|
60693
60697
|
messageToolsStatus: u,
|
|
@@ -60718,12 +60722,12 @@ function a7(e) {
|
|
|
60718
60722
|
}
|
|
60719
60723
|
//#endregion
|
|
60720
60724
|
//#region src/components/composables/use-error-reporter.ts
|
|
60721
|
-
var
|
|
60725
|
+
var s7 = new Set([
|
|
60722
60726
|
"chat-error",
|
|
60723
60727
|
"receive-error",
|
|
60724
60728
|
"session-error"
|
|
60725
60729
|
]);
|
|
60726
|
-
function
|
|
60730
|
+
function c7(e, t = {}) {
|
|
60727
60731
|
let n = /* @__PURE__ */ new WeakSet(), r = (r, i) => {
|
|
60728
60732
|
let a = Z8(r);
|
|
60729
60733
|
return n.has(a) ? a : (n.add(a), console.error(i ? `[ChatBot] ${i}:` : "[ChatBot] error:", r), e("error", a), $t(t.errorToast) !== !1 && xP({
|
|
@@ -60733,50 +60737,50 @@ function s7(e, t = {}) {
|
|
|
60733
60737
|
};
|
|
60734
60738
|
return {
|
|
60735
60739
|
managerErrorBridge: { emit: (e, t) => {
|
|
60736
|
-
|
|
60740
|
+
s7.has(e) && r(t?.error);
|
|
60737
60741
|
} },
|
|
60738
60742
|
reportError: r
|
|
60739
60743
|
};
|
|
60740
60744
|
}
|
|
60741
60745
|
//#endregion
|
|
60742
60746
|
//#region src/components/composables/use-interrupt-resume.ts
|
|
60743
|
-
var
|
|
60747
|
+
var l7 = {
|
|
60744
60748
|
[Yc.ApprovalCancel]: T6.ApprovalCancel,
|
|
60745
60749
|
[Yc.FlowNodeRetry]: T6.FlowNodeRetry,
|
|
60746
60750
|
[Yc.FlowNodeSkip]: T6.FlowNodeSkip
|
|
60747
60751
|
};
|
|
60748
|
-
function
|
|
60752
|
+
function u7(e) {
|
|
60749
60753
|
return "operation" in e;
|
|
60750
60754
|
}
|
|
60751
|
-
function
|
|
60755
|
+
function d7(e) {
|
|
60752
60756
|
return "interruptId" in e && "reason" in e && e.reason === Wc.UserQuestion;
|
|
60753
60757
|
}
|
|
60754
|
-
function
|
|
60758
|
+
function f7(e) {
|
|
60755
60759
|
return e === "cancelled" ? F6.Cancelled : F6.Resolved;
|
|
60756
60760
|
}
|
|
60757
|
-
function
|
|
60761
|
+
function p7(e) {
|
|
60758
60762
|
let t = e?.session.current?.value?.sessionCode;
|
|
60759
60763
|
if (!t) throw Error("[ChatBot] Cannot resume interrupt: no active session");
|
|
60760
60764
|
return t;
|
|
60761
60765
|
}
|
|
60762
|
-
function
|
|
60766
|
+
function m7(e) {
|
|
60763
60767
|
return {
|
|
60764
60768
|
interruptId: e.interruptId,
|
|
60765
|
-
status:
|
|
60769
|
+
status: f7(e.status),
|
|
60766
60770
|
payload: e.payload
|
|
60767
60771
|
};
|
|
60768
60772
|
}
|
|
60769
|
-
function
|
|
60773
|
+
function h7(e) {
|
|
60770
60774
|
let { chatHelper: t, reportError: n } = e, r = async (e) => {
|
|
60771
60775
|
let n = t.value;
|
|
60772
60776
|
if (!n) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
|
|
60773
|
-
if (!
|
|
60774
|
-
let r =
|
|
60777
|
+
if (!u7(e)) throw Error("[ChatBot] Unsupported interrupt resume payload");
|
|
60778
|
+
let r = p7(n);
|
|
60775
60779
|
if (e.operation === Yc.ApprovalRefresh) {
|
|
60776
60780
|
n.agent.pollResumeSession(r);
|
|
60777
60781
|
return;
|
|
60778
60782
|
}
|
|
60779
|
-
let i =
|
|
60783
|
+
let i = l7[e.operation];
|
|
60780
60784
|
if (!i) throw Error(`[ChatBot] Unsupported interrupt resume operation: ${e.operation}`);
|
|
60781
60785
|
let a = n.agent;
|
|
60782
60786
|
if (e.operation === Yc.ApprovalCancel) {
|
|
@@ -60790,21 +60794,21 @@ function m7(e) {
|
|
|
60790
60794
|
}, i = async (e, n) => {
|
|
60791
60795
|
let r = t.value;
|
|
60792
60796
|
if (!r) throw Error("[ChatBot] Cannot resume interrupt: chatHelper not initialized");
|
|
60793
|
-
let i =
|
|
60797
|
+
let i = p7(r);
|
|
60794
60798
|
await r.agent.streamRequest({
|
|
60795
60799
|
sessionCode: i,
|
|
60796
|
-
resume:
|
|
60800
|
+
resume: m7(e),
|
|
60797
60801
|
...n ? { input: n } : {}
|
|
60798
60802
|
});
|
|
60799
60803
|
};
|
|
60800
60804
|
return {
|
|
60801
60805
|
handleInterruptResume: async (e, t) => {
|
|
60802
60806
|
try {
|
|
60803
|
-
if (
|
|
60807
|
+
if (u7(e)) {
|
|
60804
60808
|
await r(e);
|
|
60805
60809
|
return;
|
|
60806
60810
|
}
|
|
60807
|
-
if (
|
|
60811
|
+
if (d7(e)) {
|
|
60808
60812
|
await i(e);
|
|
60809
60813
|
return;
|
|
60810
60814
|
}
|
|
@@ -60815,7 +60819,7 @@ function m7(e) {
|
|
|
60815
60819
|
},
|
|
60816
60820
|
resumeUserQuestionWithInput: async (e, t) => {
|
|
60817
60821
|
try {
|
|
60818
|
-
if (!t.payload || !
|
|
60822
|
+
if (!t.payload || !d7(t.payload)) throw Error("[ChatBot] Invalid user question resume options");
|
|
60819
60823
|
let n = typeof e == "string" ? e.trim() : "";
|
|
60820
60824
|
if (!n) throw Error("[ChatBot] User question free text input is empty");
|
|
60821
60825
|
await i(t.payload, n);
|
|
@@ -60827,7 +60831,7 @@ function m7(e) {
|
|
|
60827
60831
|
}
|
|
60828
60832
|
//#endregion
|
|
60829
60833
|
//#region src/components/composables/use-message-sender.ts
|
|
60830
|
-
function
|
|
60834
|
+
function g7(e) {
|
|
60831
60835
|
let { emit: t, chatHelper: n, chatBusinessManager: r, getRequestOptions: i, reportError: a, resumeUserQuestionWithInput: o, selectedShortcut: s, selectedResources: c } = e, l = /* @__PURE__ */ B([[]]), u = /* @__PURE__ */ B("");
|
|
60832
60836
|
Zn(() => n.value?.session.current?.value?.sessionCode, (e, t) => {
|
|
60833
60837
|
t && t !== e && (u.value = "");
|
|
@@ -60896,11 +60900,11 @@ function h7(e) {
|
|
|
60896
60900
|
}
|
|
60897
60901
|
//#endregion
|
|
60898
60902
|
//#region src/components/composables/use-share-selection.ts
|
|
60899
|
-
var
|
|
60900
|
-
function
|
|
60903
|
+
var _7 = (e) => !e || e.id === "share";
|
|
60904
|
+
function v7(e) {
|
|
60901
60905
|
let { emit: t, chatHelper: n, isStandaloneMode: r } = e, i = async (e) => {
|
|
60902
60906
|
if (!(!n.value || e.length === 0)) try {
|
|
60903
|
-
await t5((await new
|
|
60907
|
+
await t5((await new q5(n.value.message, n.value.session).shareMessages(e)).shareUrl), xP({
|
|
60904
60908
|
message: "分享链接已复制到剪贴板",
|
|
60905
60909
|
theme: "success"
|
|
60906
60910
|
});
|
|
@@ -60912,12 +60916,12 @@ function _7(e) {
|
|
|
60912
60916
|
}
|
|
60913
60917
|
};
|
|
60914
60918
|
return { handleConfirmShare: async (e, n) => {
|
|
60915
|
-
r.value &&
|
|
60919
|
+
r.value && _7(n) && await i(e), t("confirm-share", e, n);
|
|
60916
60920
|
} };
|
|
60917
60921
|
}
|
|
60918
60922
|
//#endregion
|
|
60919
60923
|
//#region src/components/composables/use-shortcuts.ts
|
|
60920
|
-
function
|
|
60924
|
+
function y7(e) {
|
|
60921
60925
|
let { props: t, emit: n, shortcutManager: r, doSendMessage: i, reportError: a, selectedShortcut: o } = e, s = X(() => r.value?.effectiveShortcuts.value ?? []), c = (e, t) => {
|
|
60922
60926
|
let n = e, r;
|
|
60923
60927
|
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) {
|
|
@@ -61011,7 +61015,7 @@ function v7(e) {
|
|
|
61011
61015
|
}
|
|
61012
61016
|
//#endregion
|
|
61013
61017
|
//#region src/components/composables/use-tool-actions.ts
|
|
61014
|
-
function
|
|
61018
|
+
function b7(e) {
|
|
61015
61019
|
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) => {
|
|
61016
61020
|
if (!r.value || !n.value) {
|
|
61017
61021
|
console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
|
|
@@ -61183,7 +61187,7 @@ function y7(e) {
|
|
|
61183
61187
|
}
|
|
61184
61188
|
//#endregion
|
|
61185
61189
|
//#region src/components/chat-bot.vue
|
|
61186
|
-
var
|
|
61190
|
+
var x7 = /* @__PURE__ */ H({
|
|
61187
61191
|
__name: "chat-bot",
|
|
61188
61192
|
props: {
|
|
61189
61193
|
alwaysCreateNewSession: { type: Boolean },
|
|
@@ -61284,15 +61288,15 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61284
61288
|
set: () => {}
|
|
61285
61289
|
}), _ = X(() => D.value?.selectedLlmCode.value), v = () => {
|
|
61286
61290
|
f.value?.focus?.();
|
|
61287
|
-
}, { reportError: y, managerErrorBridge: b } =
|
|
61291
|
+
}, { reportError: y, managerErrorBridge: b } = c7(o, { errorToast: () => r.errorToast }), { chatHelper: x, isStandaloneMode: S, isInitialized: C, isReady: w, initError: T, whenReady: E, chatBusinessManager: D, sessionBusinessManager: O, shortcutManager: k } = t7({
|
|
61288
61292
|
props: r,
|
|
61289
61293
|
emit: o,
|
|
61290
61294
|
reportError: y,
|
|
61291
61295
|
managerErrorBridge: b
|
|
61292
|
-
}), { handleInterruptResume: A, resumeUserQuestionWithInput: j } =
|
|
61296
|
+
}), { handleInterruptResume: A, resumeUserQuestionWithInput: j } = h7({
|
|
61293
61297
|
chatHelper: x,
|
|
61294
61298
|
reportError: y
|
|
61295
|
-
}), { userInput: M, cite: N, handleUpdateModelValue: P, doSendMessage: F, handleSendMessage: I, handleUpload: ee, handleArtifactClick: te, handleStopSending: ne, stopGeneration: re } =
|
|
61299
|
+
}), { userInput: M, cite: N, handleUpdateModelValue: P, doSendMessage: F, handleSendMessage: I, handleUpload: ee, handleArtifactClick: te, handleStopSending: ne, stopGeneration: re } = g7({
|
|
61296
61300
|
emit: o,
|
|
61297
61301
|
chatHelper: x,
|
|
61298
61302
|
chatBusinessManager: D,
|
|
@@ -61301,7 +61305,7 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61301
61305
|
resumeUserQuestionWithInput: j,
|
|
61302
61306
|
selectedShortcut: h,
|
|
61303
61307
|
selectedResources: m
|
|
61304
|
-
}), { handleSelectShortcut: ie, handleCloseShortcut: ae, handleShortcutSubmit: oe, selectShortcutWithText: se, getShortcutFromMessage: le, buildShortcutProperty: ue, sendShortcutDirectly: de } =
|
|
61308
|
+
}), { handleSelectShortcut: ie, handleCloseShortcut: ae, handleShortcutSubmit: oe, selectShortcutWithText: se, getShortcutFromMessage: le, buildShortcutProperty: ue, sendShortcutDirectly: de } = y7({
|
|
61305
61309
|
props: r,
|
|
61306
61310
|
emit: o,
|
|
61307
61311
|
chatHelper: x,
|
|
@@ -61309,7 +61313,7 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61309
61313
|
doSendMessage: F,
|
|
61310
61314
|
reportError: y,
|
|
61311
61315
|
selectedShortcut: h
|
|
61312
|
-
}), { messageStatus: fe, messageToolsStatus: me, effectiveMessageTools: he, effectiveUpdateTools: ge, effectiveUserMessageTools: _e, messages: ve, isMessagesLoading: ye, isGenerating: R, currentSession: be, isWelcomeState: xe, openingRemark: Se, effectiveResources: Ce, effectivePrompts: we, effectiveSkills: Te, effectiveSupportUpload: Ee, chatbotStyle: De, filteredShortcuts: Oe } =
|
|
61316
|
+
}), { messageStatus: fe, messageToolsStatus: me, effectiveMessageTools: he, effectiveUpdateTools: ge, effectiveUserMessageTools: _e, messages: ve, isMessagesLoading: ye, isGenerating: R, currentSession: be, isWelcomeState: xe, openingRemark: Se, effectiveResources: Ce, effectivePrompts: we, effectiveSkills: Te, effectiveSupportUpload: Ee, chatbotStyle: De, filteredShortcuts: Oe } = o7({
|
|
61313
61317
|
props: r,
|
|
61314
61318
|
chatHelper: x,
|
|
61315
61319
|
chatBusinessManager: D,
|
|
@@ -61318,7 +61322,7 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61318
61322
|
isStandaloneMode: S,
|
|
61319
61323
|
isInitialized: C,
|
|
61320
61324
|
selectedShortcut: h
|
|
61321
|
-
}), { handleAgentAction: ke, handleAgentFeedback: Ae, handleUserAction: je, handleUserInputConfirm: Me, handleUserShortcutConfirm: Ne, handleStopStreaming: Pe } =
|
|
61325
|
+
}), { handleAgentAction: ke, handleAgentFeedback: Ae, handleUserAction: je, handleUserInputConfirm: Me, handleUserShortcutConfirm: Ne, handleStopStreaming: Pe } = b7({
|
|
61322
61326
|
emit: o,
|
|
61323
61327
|
chatHelper: x,
|
|
61324
61328
|
chatBusinessManager: D,
|
|
@@ -61346,7 +61350,7 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61346
61350
|
Zn(() => r.models, (e) => {
|
|
61347
61351
|
r.enableModelSelect === !1 || !D.value || e?.length && D.value.setModels(e);
|
|
61348
61352
|
});
|
|
61349
|
-
let { handleConfirmShare: Be } =
|
|
61353
|
+
let { handleConfirmShare: Be } = v7({
|
|
61350
61354
|
emit: o,
|
|
61351
61355
|
chatHelper: x,
|
|
61352
61356
|
isStandaloneMode: S
|
|
@@ -61504,13 +61508,13 @@ var b7 = /* @__PURE__ */ H({
|
|
|
61504
61508
|
key: "0"
|
|
61505
61509
|
} : void 0]), 1032, /* @__PURE__ */ "aside-collapsed.cite.render-mode.selected-model.selected-shortcut.chat-loading.common-tippy-options.execution-tab-visible.get-side-render-component.get-side-tab-render-component.message-status.message-tools.message-tools-status.messages.model-value.models.on-agent-action.on-agent-feedback.on-artifact-click.on-interrupt-resume.on-send-message.on-stop-sending.on-upload.on-user-action.on-user-input-confirm.on-user-shortcut-confirm.opening-remark.placeholder.prompts.resize-props.resources.shortcut-id.shortcuts.size.skills.timezone.support-upload.update-tools.user-message-tools.welcome-title.onConfirmShare.onDeleteShortcut.onSelectShortcut.onShortcutClose.onShortcutSubmit.onStopStreaming.onUpdate:modelValue".split("."))], 6));
|
|
61506
61510
|
}
|
|
61507
|
-
}),
|
|
61511
|
+
}), S7 = /* @__PURE__ */ function(e) {
|
|
61508
61512
|
return e.ERROR = "error", e.IDLE = "idle", e.LOADING_AGENT = "loading_agent", e.READY = "ready", e;
|
|
61509
61513
|
}({});
|
|
61510
|
-
function
|
|
61514
|
+
function C7(e) {
|
|
61511
61515
|
let { url: t, requestOptions: n, autoInit: r = !0, protocolCallbacks: i, enableModelSelect: a = !0 } = e, o = $t(t);
|
|
61512
61516
|
if (!o) throw Error("[useChatBootstrap] url is required");
|
|
61513
|
-
let s = /* @__PURE__ */ z(
|
|
61517
|
+
let s = /* @__PURE__ */ z(S7.IDLE), c = /* @__PURE__ */ z(null), l = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ new Map(), d = new I6({
|
|
61514
61518
|
onStart: () => {
|
|
61515
61519
|
i?.onStart?.();
|
|
61516
61520
|
},
|
|
@@ -61528,14 +61532,14 @@ function S7(e) {
|
|
|
61528
61532
|
protocol: d
|
|
61529
61533
|
});
|
|
61530
61534
|
d.injectMessageModule(f.message);
|
|
61531
|
-
let p = X(() => s.value ===
|
|
61535
|
+
let p = X(() => s.value === S7.LOADING_AGENT), m = X(() => s.value === S7.READY), h = X(() => f.agent.info.value ?? null), g = X(() => h.value?.agentName ?? ""), _ = X(() => f.session.current.value ?? null), v = X(() => f.session.list.value ?? []), y = null, b = 0, x = async (e) => {
|
|
61532
61536
|
c.value = null;
|
|
61533
61537
|
try {
|
|
61534
|
-
if (s.value =
|
|
61535
|
-
s.value =
|
|
61538
|
+
if (s.value = S7.LOADING_AGENT, await H5(f, { enableModelSelect: a }), e !== b) return;
|
|
61539
|
+
s.value = S7.READY, l.value = !0;
|
|
61536
61540
|
} catch (t) {
|
|
61537
61541
|
if (e !== b) return;
|
|
61538
|
-
throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value =
|
|
61542
|
+
throw console.error("[useChatBootstrap] Initialization failed:", t), c.value = t, s.value = S7.ERROR, t;
|
|
61539
61543
|
}
|
|
61540
61544
|
}, S = async () => {
|
|
61541
61545
|
if (l.value) return;
|
|
@@ -61545,7 +61549,7 @@ function S7(e) {
|
|
|
61545
61549
|
e === b && (y = null);
|
|
61546
61550
|
}), y;
|
|
61547
61551
|
}, C = () => {
|
|
61548
|
-
b += 1, s.value =
|
|
61552
|
+
b += 1, s.value = S7.IDLE, c.value = null, l.value = !1, y = null;
|
|
61549
61553
|
}, w = async () => {
|
|
61550
61554
|
C(), await S();
|
|
61551
61555
|
}, T = async (e) => {
|
|
@@ -61579,7 +61583,7 @@ function S7(e) {
|
|
|
61579
61583
|
}
|
|
61580
61584
|
//#endregion
|
|
61581
61585
|
//#region src/composables/use-event-bridge.ts
|
|
61582
|
-
function
|
|
61586
|
+
function w7(e) {
|
|
61583
61587
|
return {
|
|
61584
61588
|
sendMessage: (t) => e("send-message", { content: t }),
|
|
61585
61589
|
receiveStart: () => e("receive-start", {}),
|
|
@@ -61600,12 +61604,12 @@ function C7(e) {
|
|
|
61600
61604
|
shareMessages: (t) => e("share-messages", { messageIds: t })
|
|
61601
61605
|
};
|
|
61602
61606
|
}
|
|
61603
|
-
function
|
|
61607
|
+
function T7(e) {
|
|
61604
61608
|
let { componentManager: t, emit: n, debug: r = !1 } = e, i = [], a = () => {
|
|
61605
|
-
for (let [e, a] of Object.entries(
|
|
61609
|
+
for (let [e, a] of Object.entries(Z5)) {
|
|
61606
61610
|
if (a === null) continue;
|
|
61607
61611
|
let o = t.on(e, (t) => {
|
|
61608
|
-
let i =
|
|
61612
|
+
let i = Q5(e, t);
|
|
61609
61613
|
r && console.debug(`[useEventBridge] ${e} -> ${a}`, i), n(a, ...i);
|
|
61610
61614
|
});
|
|
61611
61615
|
i.push(o);
|
|
@@ -61627,17 +61631,17 @@ function w7(e) {
|
|
|
61627
61631
|
}
|
|
61628
61632
|
//#endregion
|
|
61629
61633
|
//#region src/composables/use-ai-blueking-init.ts
|
|
61630
|
-
function
|
|
61631
|
-
let { props: t, emit: n } = e, r = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), a = X(() => e5(t.url ?? "")), o =
|
|
61634
|
+
function E7(e) {
|
|
61635
|
+
let { props: t, emit: n } = e, r = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), a = X(() => e5(t.url ?? "")), o = X5({
|
|
61632
61636
|
initialPanelVisible: !1,
|
|
61633
61637
|
initialNimbusMinimized: t.defaultMinimize,
|
|
61634
61638
|
enablePopup: t.enablePopup,
|
|
61635
61639
|
enableNimbus: !t.hideNimbus,
|
|
61636
61640
|
enableDraggable: t.draggable
|
|
61637
|
-
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } =
|
|
61641
|
+
}), s = o.panelVisible, c = o.nimbusMinimized, { forwardToManager: l } = T7({
|
|
61638
61642
|
componentManager: o,
|
|
61639
61643
|
emit: n
|
|
61640
|
-
}), u =
|
|
61644
|
+
}), u = w7(l), d = /* @__PURE__ */ new WeakSet(), f = null, p = null, m = () => {
|
|
61641
61645
|
f &&= (clearTimeout(f.timer), null);
|
|
61642
61646
|
}, h = (e) => {
|
|
61643
61647
|
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;
|
|
@@ -61679,7 +61683,7 @@ function T7(e) {
|
|
|
61679
61683
|
error: e,
|
|
61680
61684
|
source: "business"
|
|
61681
61685
|
});
|
|
61682
|
-
}, { chatHelper: y, isReady: b, error: x, agentInfo: S, agentName: C, currentSession: w, initialize: T } =
|
|
61686
|
+
}, { chatHelper: y, isReady: b, error: x, agentInfo: S, agentName: C, currentSession: w, initialize: T } = C7({
|
|
61683
61687
|
url: a,
|
|
61684
61688
|
requestOptions: () => $t(t.requestOptions),
|
|
61685
61689
|
autoInit: !0,
|
|
@@ -61706,7 +61710,7 @@ function T7(e) {
|
|
|
61706
61710
|
E.onError?.((e) => {
|
|
61707
61711
|
g(e);
|
|
61708
61712
|
}, { ignoreErrors: t.ignoreErrors });
|
|
61709
|
-
let D = new
|
|
61713
|
+
let D = new W5(E.agent, E.session, { enabled: t.enableModelSelect !== !1 }), O = async () => {
|
|
61710
61714
|
if (t.enableModelSelect !== !1) {
|
|
61711
61715
|
if (t.models?.length) {
|
|
61712
61716
|
D.setModels(t.models);
|
|
@@ -61714,11 +61718,11 @@ function T7(e) {
|
|
|
61714
61718
|
}
|
|
61715
61719
|
await D.ensureLoaded();
|
|
61716
61720
|
}
|
|
61717
|
-
}, k = new
|
|
61721
|
+
}, k = new K5(E.session, E.agent, null, {
|
|
61718
61722
|
enableChatSession: t.enableChatSession,
|
|
61719
61723
|
initialSessionCode: t.initialSessionCode,
|
|
61720
61724
|
alwaysCreateNewSession: t.alwaysCreateNewSession
|
|
61721
|
-
}, E.message, D), A = new
|
|
61725
|
+
}, E.message, D), A = new q5(E.message, E.session), j = new J5(null, t.shortcuts || []), M = null, N = () => t.loadRecentSessionOnMount ? (M ||= O().then(() => k.loadRecentSession({ skipLoadSessions: !0 })).finally(() => {
|
|
61722
61726
|
M = null;
|
|
61723
61727
|
}), M) : Promise.resolve(), P = async () => {
|
|
61724
61728
|
await _("init", async () => {
|
|
@@ -61806,7 +61810,7 @@ function T7(e) {
|
|
|
61806
61810
|
}
|
|
61807
61811
|
//#endregion
|
|
61808
61812
|
//#region src/composables/use-ai-selection.ts
|
|
61809
|
-
function
|
|
61813
|
+
function D7(e) {
|
|
61810
61814
|
let { shortcutManager: t, chatBotRef: n, forwardToManager: r, show: i, props: a } = e, o = /* @__PURE__ */ z(!1), s = /* @__PURE__ */ z("");
|
|
61811
61815
|
return {
|
|
61812
61816
|
aiSelectionVisible: o,
|
|
@@ -61828,7 +61832,7 @@ function E7(e) {
|
|
|
61828
61832
|
}
|
|
61829
61833
|
//#endregion
|
|
61830
61834
|
//#region src/composables/use-nimbus.ts
|
|
61831
|
-
function
|
|
61835
|
+
function O7(e, t = !1) {
|
|
61832
61836
|
let n = window.innerHeight - 48 - 40, r = window.innerWidth - 48 - 16, i = /* @__PURE__ */ z(r), a = /* @__PURE__ */ z(n), o = /* @__PURE__ */ z(0), s = /* @__PURE__ */ z(t), c = /* @__PURE__ */ z(!1), l = /* @__PURE__ */ z(!1), u = 0, d = (e) => {
|
|
61833
61837
|
e ? i.value = window.innerWidth - 12 : i.value = r;
|
|
61834
61838
|
}, f = (e, t) => {
|
|
@@ -61881,9 +61885,9 @@ function D7(e, t = !1) {
|
|
|
61881
61885
|
}
|
|
61882
61886
|
//#endregion
|
|
61883
61887
|
//#region src/composables/use-panel-container.ts
|
|
61884
|
-
var
|
|
61885
|
-
function
|
|
61886
|
-
let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = /* @__PURE__ */ z(!0), c =
|
|
61888
|
+
var k7 = 560;
|
|
61889
|
+
function A7(e) {
|
|
61890
|
+
let { componentManager: t, chatBotRef: n, forwarders: r, forwardToManager: i, beforeNimbusClick: a, ensureSessionReady: o } = e, s = /* @__PURE__ */ z(!0), c = k7, l = async (e) => {
|
|
61887
61891
|
t.showPanel(e), o && await o(), e && n.value && await n.value.switchSession(e);
|
|
61888
61892
|
}, u = async (e) => {
|
|
61889
61893
|
await l(e);
|
|
@@ -61910,7 +61914,7 @@ function k7(e) {
|
|
|
61910
61914
|
}, y = (e) => {
|
|
61911
61915
|
t.setCompressed(e);
|
|
61912
61916
|
}, b = (e, t) => {
|
|
61913
|
-
c = Math.max(
|
|
61917
|
+
c = Math.max(k7, t ?? c);
|
|
61914
61918
|
}, x = async () => {
|
|
61915
61919
|
s.value &&= (await t.expandForSidePanel(c, { onBeforeSizeChange: () => {
|
|
61916
61920
|
s.value = !1;
|
|
@@ -61985,7 +61989,7 @@ function k7(e) {
|
|
|
61985
61989
|
}
|
|
61986
61990
|
//#endregion
|
|
61987
61991
|
//#region src/composables/use-session-handlers.ts
|
|
61988
|
-
function
|
|
61992
|
+
function j7(e) {
|
|
61989
61993
|
let { chatHelper: t, sessionBusinessManager: n, chatBotRef: r, forwarders: i, reportSdkError: a, currentSession: o } = e, s = /* @__PURE__ */ z(""), c = /* @__PURE__ */ z(!0), l = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(!1), d = () => q8(t.message.list.value);
|
|
61990
61994
|
return Zn(() => o.value, (e) => {
|
|
61991
61995
|
e && (s.value = e.sessionName || "", l.value = (e.sessionContentCount ?? 0) > 0 || d());
|
|
@@ -62116,7 +62120,7 @@ function A7(e) {
|
|
|
62116
62120
|
}
|
|
62117
62121
|
//#endregion
|
|
62118
62122
|
//#region src/composables/use-share-handlers.ts
|
|
62119
|
-
function
|
|
62123
|
+
function M7(e) {
|
|
62120
62124
|
let { shareBusinessManager: t, chatBotRef: n, emit: r, forwarders: i, reportSdkError: a } = e, o = /* @__PURE__ */ z(!1);
|
|
62121
62125
|
return {
|
|
62122
62126
|
isShareLoading: o,
|
|
@@ -62127,7 +62131,7 @@ function j7(e) {
|
|
|
62127
62131
|
n.value?.exitShareMode();
|
|
62128
62132
|
},
|
|
62129
62133
|
handleConfirmShare: async (e, s) => {
|
|
62130
|
-
if (!
|
|
62134
|
+
if (!_7(s)) {
|
|
62131
62135
|
n.value?.exitShareMode(), r("confirm-share", e, s);
|
|
62132
62136
|
return;
|
|
62133
62137
|
}
|
|
@@ -62153,7 +62157,7 @@ function j7(e) {
|
|
|
62153
62157
|
}
|
|
62154
62158
|
//#endregion
|
|
62155
62159
|
//#region src/composables/use-tippy.ts
|
|
62156
|
-
function
|
|
62160
|
+
function N7(e = {}) {
|
|
62157
62161
|
let t = /* @__PURE__ */ z([]), n = (n, r, i = {}) => {
|
|
62158
62162
|
try {
|
|
62159
62163
|
let a = typeof n == "string" ? document.querySelector(n) : n;
|
|
@@ -62206,7 +62210,7 @@ function M7(e = {}) {
|
|
|
62206
62210
|
}
|
|
62207
62211
|
//#endregion
|
|
62208
62212
|
//#region src/config/prop-defaults.ts
|
|
62209
|
-
var
|
|
62213
|
+
var P7 = {
|
|
62210
62214
|
url: "",
|
|
62211
62215
|
title: "",
|
|
62212
62216
|
extCls: "",
|
|
@@ -62253,7 +62257,7 @@ var N7 = {
|
|
|
62253
62257
|
defaultChatInputPosition: void 0,
|
|
62254
62258
|
errorToast: !0,
|
|
62255
62259
|
ignoreErrors: () => []
|
|
62256
|
-
},
|
|
62260
|
+
}, F7 = class extends I6 {
|
|
62257
62261
|
eventEmitter;
|
|
62258
62262
|
constructor(e = {}) {
|
|
62259
62263
|
super({
|
|
@@ -62282,7 +62286,7 @@ var N7 = {
|
|
|
62282
62286
|
super.handleToolCallStartEvent(e), this.eventEmitter?.emit("tool-call-start", { event: e });
|
|
62283
62287
|
}
|
|
62284
62288
|
};
|
|
62285
|
-
function
|
|
62289
|
+
function I7(e = {}) {
|
|
62286
62290
|
let { eventEmitter: t, onStart: n, onMessage: r, onDone: i, onError: a, onTextChunk: o } = e;
|
|
62287
62291
|
return new I6({
|
|
62288
62292
|
onStart: () => {
|
|
@@ -62301,31 +62305,31 @@ function F7(e = {}) {
|
|
|
62301
62305
|
}
|
|
62302
62306
|
//#endregion
|
|
62303
62307
|
//#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
|
|
62304
|
-
function
|
|
62308
|
+
function L7(e) {
|
|
62305
62309
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
62306
62310
|
}
|
|
62307
|
-
function
|
|
62311
|
+
function R7(e, t, n, r = 1) {
|
|
62308
62312
|
let [i, a] = typeof r == "number" ? [r, r] : r;
|
|
62309
62313
|
return [Math.round(t / i / e[0]) * e[0], Math.round(n / a / e[1]) * e[1]];
|
|
62310
62314
|
}
|
|
62311
|
-
function R7(e, t, n) {
|
|
62312
|
-
return e - t - n;
|
|
62313
|
-
}
|
|
62314
62315
|
function z7(e, t, n) {
|
|
62315
62316
|
return e - t - n;
|
|
62316
62317
|
}
|
|
62317
62318
|
function B7(e, t, n) {
|
|
62318
|
-
return
|
|
62319
|
+
return e - t - n;
|
|
62319
62320
|
}
|
|
62320
62321
|
function V7(e, t, n) {
|
|
62322
|
+
return t !== null && e < t ? t : n !== null && n < e ? n : e;
|
|
62323
|
+
}
|
|
62324
|
+
function H7(e, t, n) {
|
|
62321
62325
|
let r = e, i = [
|
|
62322
62326
|
"matches",
|
|
62323
62327
|
"webkitMatchesSelector",
|
|
62324
62328
|
"mozMatchesSelector",
|
|
62325
62329
|
"msMatchesSelector",
|
|
62326
62330
|
"oMatchesSelector"
|
|
62327
|
-
].find((e) =>
|
|
62328
|
-
if (!
|
|
62331
|
+
].find((e) => L7(r[e]));
|
|
62332
|
+
if (!L7(r[i])) return !1;
|
|
62329
62333
|
do {
|
|
62330
62334
|
if (r[i](t)) return !0;
|
|
62331
62335
|
if (r === n) return !1;
|
|
@@ -62333,21 +62337,21 @@ function V7(e, t, n) {
|
|
|
62333
62337
|
} while (r);
|
|
62334
62338
|
return !1;
|
|
62335
62339
|
}
|
|
62336
|
-
function
|
|
62340
|
+
function U7(e) {
|
|
62337
62341
|
let t = window.getComputedStyle(e);
|
|
62338
62342
|
return [parseFloat(t.getPropertyValue("width"), 10), parseFloat(t.getPropertyValue("height"), 10)];
|
|
62339
62343
|
}
|
|
62340
|
-
function
|
|
62344
|
+
function W7(e, t, n) {
|
|
62341
62345
|
e && (e.attachEvent ? e.attachEvent("on" + t, n) : e.addEventListener ? e.addEventListener(t, n, !0) : e["on" + t] = n);
|
|
62342
62346
|
}
|
|
62343
|
-
function
|
|
62347
|
+
function G7(e, t, n) {
|
|
62344
62348
|
e && (e.detachEvent ? e.detachEvent("on" + t, n) : e.removeEventListener ? e.removeEventListener(t, n, !0) : e["on" + t] = null);
|
|
62345
62349
|
}
|
|
62346
|
-
var
|
|
62350
|
+
var K7 = (e, t) => {
|
|
62347
62351
|
let n = e.__vccOpts || e;
|
|
62348
62352
|
for (let [e, r] of t) n[e] = r;
|
|
62349
62353
|
return n;
|
|
62350
|
-
},
|
|
62354
|
+
}, q7 = {
|
|
62351
62355
|
mouse: {
|
|
62352
62356
|
start: "mousedown",
|
|
62353
62357
|
move: "mousemove",
|
|
@@ -62358,17 +62362,17 @@ var G7 = (e, t) => {
|
|
|
62358
62362
|
move: "touchmove",
|
|
62359
62363
|
stop: "touchend"
|
|
62360
62364
|
}
|
|
62361
|
-
},
|
|
62365
|
+
}, J7 = {
|
|
62362
62366
|
userSelect: "none",
|
|
62363
62367
|
MozUserSelect: "none",
|
|
62364
62368
|
WebkitUserSelect: "none",
|
|
62365
62369
|
MsUserSelect: "none"
|
|
62366
|
-
},
|
|
62370
|
+
}, Y7 = {
|
|
62367
62371
|
userSelect: "auto",
|
|
62368
62372
|
MozUserSelect: "auto",
|
|
62369
62373
|
WebkitUserSelect: "auto",
|
|
62370
62374
|
MsUserSelect: "auto"
|
|
62371
|
-
},
|
|
62375
|
+
}, X7 = q7.mouse, Z7 = {
|
|
62372
62376
|
replace: !0,
|
|
62373
62377
|
name: "vue-draggable-resizable",
|
|
62374
62378
|
props: {
|
|
@@ -62573,11 +62577,11 @@ var G7 = (e, t) => {
|
|
|
62573
62577
|
this.enableNativeDrag || (this.$el.ondragstart = () => !1);
|
|
62574
62578
|
let [e, t] = this.getParentSize();
|
|
62575
62579
|
this.parentWidth = e, this.parentHeight = t;
|
|
62576
|
-
let [n, r] =
|
|
62577
|
-
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"),
|
|
62580
|
+
let [n, r] = U7(this.$el);
|
|
62581
|
+
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"), W7(document.documentElement, "mousedown", this.deselect), W7(document.documentElement, "touchend touchcancel", this.deselect), W7(window, "resize", this.checkParentSize);
|
|
62578
62582
|
},
|
|
62579
62583
|
beforeUnmount: function() {
|
|
62580
|
-
|
|
62584
|
+
G7(document.documentElement, "mousedown", this.deselect), G7(document.documentElement, "touchstart", this.handleUp), G7(document.documentElement, "mousemove", this.move), G7(document.documentElement, "touchmove", this.move), G7(document.documentElement, "mouseup", this.handleUp), G7(document.documentElement, "touchend touchcancel", this.deselect), G7(window, "resize", this.checkParentSize);
|
|
62581
62585
|
},
|
|
62582
62586
|
methods: {
|
|
62583
62587
|
resetBoundsAndMouseState() {
|
|
@@ -62613,21 +62617,21 @@ var G7 = (e, t) => {
|
|
|
62613
62617
|
return [null, null];
|
|
62614
62618
|
},
|
|
62615
62619
|
elementTouchDown(e) {
|
|
62616
|
-
|
|
62620
|
+
X7 = q7.touch, this.elementDown(e);
|
|
62617
62621
|
},
|
|
62618
62622
|
elementMouseDown(e) {
|
|
62619
|
-
|
|
62623
|
+
X7 = q7.mouse, this.elementDown(e);
|
|
62620
62624
|
},
|
|
62621
62625
|
elementDown(e) {
|
|
62622
62626
|
if (e instanceof MouseEvent && e.button !== 0) return;
|
|
62623
62627
|
let t = e.target || e.srcElement;
|
|
62624
62628
|
if (this.$el.contains(t)) {
|
|
62625
62629
|
if (this.onDragStart(e) === !1) return;
|
|
62626
|
-
if (this.dragHandle && !
|
|
62630
|
+
if (this.dragHandle && !H7(t, this.dragHandle, this.$el) || this.dragCancel && H7(t, this.dragCancel, this.$el)) {
|
|
62627
62631
|
this.dragging = !1;
|
|
62628
62632
|
return;
|
|
62629
62633
|
}
|
|
62630
|
-
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()),
|
|
62634
|
+
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()), W7(document.documentElement, X7.move, this.move), W7(document.documentElement, X7.stop, this.handleUp);
|
|
62631
62635
|
}
|
|
62632
62636
|
},
|
|
62633
62637
|
calcDragLimits() {
|
|
@@ -62644,13 +62648,13 @@ var G7 = (e, t) => {
|
|
|
62644
62648
|
},
|
|
62645
62649
|
deselect(e) {
|
|
62646
62650
|
let t = e.target || e.srcElement, n = RegExp(this.className + "-([trmbl]{2})", "");
|
|
62647
|
-
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)),
|
|
62651
|
+
!this.$el.contains(t) && !n.test(t.className) && (this.enabled && !this.preventDeactivation && (this.enabled = !1, this.$emit("deactivated"), this.$emit("update:active", !1)), G7(document.documentElement, X7.move, this.handleResize)), this.resetBoundsAndMouseState();
|
|
62648
62652
|
},
|
|
62649
62653
|
handleTouchDown(e, t) {
|
|
62650
|
-
|
|
62654
|
+
X7 = q7.touch, this.handleDown(e, t);
|
|
62651
62655
|
},
|
|
62652
62656
|
handleDown(e, t) {
|
|
62653
|
-
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(),
|
|
62657
|
+
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(), W7(document.documentElement, X7.move, this.handleResize), W7(document.documentElement, X7.stop, this.handleUp));
|
|
62654
62658
|
},
|
|
62655
62659
|
calcResizeLimits() {
|
|
62656
62660
|
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;
|
|
@@ -62671,41 +62675,41 @@ var G7 = (e, t) => {
|
|
|
62671
62675
|
this.resizing ? this.handleResize(e) : this.dragEnable && this.handleDrag(e);
|
|
62672
62676
|
},
|
|
62673
62677
|
handleDrag(e) {
|
|
62674
|
-
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] =
|
|
62678
|
+
let t = this.axis, n = this.grid, r = this.bounds, i = this.mouseClickPosition, [a, o] = R7(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 = V7(i.left - a, r.minLeft, r.maxLeft), c = V7(i.top - o, r.minTop, r.maxTop);
|
|
62675
62679
|
if (this.onDrag(s, c) === !1) return;
|
|
62676
|
-
let l =
|
|
62680
|
+
let l = V7(i.right + a, r.minRight, r.maxRight), u = V7(i.bottom + o, r.minBottom, r.maxBottom);
|
|
62677
62681
|
this.left = s, this.top = c, this.right = l, this.bottom = u, this.$emit("dragging", this.left, this.top), this.dragging = !0;
|
|
62678
62682
|
},
|
|
62679
62683
|
moveHorizontally(e) {
|
|
62680
|
-
let [t, n] =
|
|
62684
|
+
let [t, n] = R7(this.grid, e, this.top, 1), r = V7(t, this.bounds.minLeft, this.bounds.maxLeft);
|
|
62681
62685
|
this.left = r, this.right = this.parentWidth - this.width - r;
|
|
62682
62686
|
},
|
|
62683
62687
|
moveVertically(e) {
|
|
62684
|
-
let [t, n] =
|
|
62688
|
+
let [t, n] = R7(this.grid, this.left, e, 1), r = V7(n, this.bounds.minTop, this.bounds.maxTop);
|
|
62685
62689
|
this.top = r, this.bottom = this.parentHeight - this.height - r;
|
|
62686
62690
|
},
|
|
62687
62691
|
handleResize(e) {
|
|
62688
62692
|
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);
|
|
62689
62693
|
!this.widthTouched && s && (this.widthTouched = !0), !this.heightTouched && c && (this.heightTouched = !0);
|
|
62690
|
-
let [l, u] =
|
|
62691
|
-
this.handle.includes("b") ? (i =
|
|
62692
|
-
let d =
|
|
62694
|
+
let [l, u] = R7(this.grid, s, c, this.scale);
|
|
62695
|
+
this.handle.includes("b") ? (i = V7(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 = V7(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 = V7(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 = V7(a.left - l, this.bounds.minLeft, this.bounds.maxLeft), this.lockAspectRatio && this.resizingOnX && (n = this.top - (this.left - t) / o));
|
|
62696
|
+
let d = z7(this.parentWidth, t, r), f = B7(this.parentHeight, n, i);
|
|
62693
62697
|
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);
|
|
62694
62698
|
},
|
|
62695
62699
|
changeWidth(e) {
|
|
62696
|
-
let [t, n] =
|
|
62700
|
+
let [t, n] = R7(this.grid, e, 0, 1), r = V7(this.parentWidth - t - this.left, this.bounds.minRight, this.bounds.maxRight), i = this.bottom;
|
|
62697
62701
|
this.lockAspectRatio && (i = this.bottom - (this.right - r) / this.aspectFactor);
|
|
62698
|
-
let a =
|
|
62702
|
+
let a = z7(this.parentWidth, this.left, r), o = B7(this.parentHeight, this.top, i);
|
|
62699
62703
|
this.right = r, this.bottom = i, this.width = a, this.height = o;
|
|
62700
62704
|
},
|
|
62701
62705
|
changeHeight(e) {
|
|
62702
|
-
let [t, n] =
|
|
62706
|
+
let [t, n] = R7(this.grid, 0, e, 1), r = V7(this.parentHeight - n - this.top, this.bounds.minBottom, this.bounds.maxBottom), i = this.right;
|
|
62703
62707
|
this.lockAspectRatio && (i = this.right - (this.bottom - r) * this.aspectFactor);
|
|
62704
|
-
let a =
|
|
62708
|
+
let a = z7(this.parentWidth, this.left, i), o = B7(this.parentHeight, this.top, r);
|
|
62705
62709
|
this.right = i, this.bottom = r, this.width = a, this.height = o;
|
|
62706
62710
|
},
|
|
62707
62711
|
handleUp(e) {
|
|
62708
|
-
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)),
|
|
62712
|
+
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)), G7(document.documentElement, X7.move, this.handleResize);
|
|
62709
62713
|
}
|
|
62710
62714
|
},
|
|
62711
62715
|
computed: {
|
|
@@ -62715,7 +62719,7 @@ var G7 = (e, t) => {
|
|
|
62715
62719
|
width: this.computedWidth,
|
|
62716
62720
|
height: this.computedHeight,
|
|
62717
62721
|
zIndex: this.zIndex,
|
|
62718
|
-
...this.dragging && this.disableUserSelect ?
|
|
62722
|
+
...this.dragging && this.disableUserSelect ? J7 : Y7
|
|
62719
62723
|
};
|
|
62720
62724
|
},
|
|
62721
62725
|
actualHandles() {
|
|
@@ -62777,8 +62781,8 @@ var G7 = (e, t) => {
|
|
|
62777
62781
|
this.resizing || this.dragging || (this.parent && (this.bounds = this.calcResizeLimits()), this.changeHeight(e));
|
|
62778
62782
|
}
|
|
62779
62783
|
}
|
|
62780
|
-
},
|
|
62781
|
-
function
|
|
62784
|
+
}, Q7 = ["onMousedown", "onTouchstart"];
|
|
62785
|
+
function $7(e, t, n, r, i, a) {
|
|
62782
62786
|
return W(), G("div", {
|
|
62783
62787
|
style: ce(a.style),
|
|
62784
62788
|
class: L([{
|
|
@@ -62796,18 +62800,18 @@ function Q7(e, t, n, r, i, a) {
|
|
|
62796
62800
|
style: ce({ display: e.enabled ? "block" : "none" }),
|
|
62797
62801
|
onMousedown: Rs((e) => a.handleDown(t, e), ["stop", "prevent"]),
|
|
62798
62802
|
onTouchstart: Rs((e) => a.handleTouchDown(t, e), ["stop", "prevent"])
|
|
62799
|
-
}, [li(e.$slots, t)], 46,
|
|
62803
|
+
}, [li(e.$slots, t)], 46, Q7))), 128)), li(e.$slots, "default")], 38);
|
|
62800
62804
|
}
|
|
62801
|
-
var
|
|
62802
|
-
function
|
|
62803
|
-
|
|
62805
|
+
var e9 = /* @__PURE__ */ K7(Z7, [["render", $7]]);
|
|
62806
|
+
function t9(e) {
|
|
62807
|
+
t9.installed || (t9.installed = !0, e.component("VueDraggableResizable", e9));
|
|
62804
62808
|
}
|
|
62805
|
-
var
|
|
62806
|
-
typeof window < "u" ?
|
|
62809
|
+
var n9 = { install: t9 }, r9 = null;
|
|
62810
|
+
typeof window < "u" ? r9 = window.Vue : typeof global < "u" && (r9 = global.Vue), r9 && r9.use(n9);
|
|
62807
62811
|
//#endregion
|
|
62808
62812
|
//#region src/containers/use-draggable.ts
|
|
62809
|
-
var
|
|
62810
|
-
function
|
|
62813
|
+
var i9 = 3;
|
|
62814
|
+
function a9(e = {}, t) {
|
|
62811
62815
|
let n = e.initWidth || 400, r = e.minWidth || 400, i = e.minHeight || 400, a = e.maxWidthPercent || 40, o = e.compressedHeight || 800, s = e.compressedPadding === void 0 ? 0 : e.compressedPadding, c = /* @__PURE__ */ z(e.defaultLeft === void 0 ? window.innerWidth - n : e.defaultLeft), l = /* @__PURE__ */ z(e.defaultTop === void 0 ? 0 : e.defaultTop), u = /* @__PURE__ */ z(e.defaultHeight === void 0 ? window.innerHeight - (e.defaultTop === void 0 ? 0 : e.defaultTop) : e.defaultHeight), d = /* @__PURE__ */ z(n), f = /* @__PURE__ */ z(l.value), p = /* @__PURE__ */ z(c.value), m = /* @__PURE__ */ z(d.value), h = /* @__PURE__ */ z(u.value), g = /* @__PURE__ */ z(Math.max(window.innerWidth * (a / 100), m.value)), _ = /* @__PURE__ */ z(!1), v = /* @__PURE__ */ z(0), y = null, b = null, x = 0, S = 0, C = !1, w = null, T = /* @__PURE__ */ z(!1), E = (e) => {
|
|
62812
62816
|
let t = window.innerWidth, n = { ...e };
|
|
62813
62817
|
return n.width > t && (n.width = t), n.x + n.width > t && (n.x = t - n.width), n.x < 0 && (n.x = 0), n;
|
|
@@ -62817,7 +62821,7 @@ function i9(e = {}, t) {
|
|
|
62817
62821
|
width: m.value,
|
|
62818
62822
|
height: h.value
|
|
62819
62823
|
}), O = (e, t) => {
|
|
62820
|
-
T.value && (w !== null && Math.abs(e - w.x) <=
|
|
62824
|
+
T.value && (w !== null && Math.abs(e - w.x) <= i9 && Math.abs(t - w.width) <= i9 || (y = null, C = !1));
|
|
62821
62825
|
}, k = (e, n) => {
|
|
62822
62826
|
p.value = e, f.value = n, v.value = e - (window.innerWidth - m.value), O(e, m.value), t?.onDragging?.(D());
|
|
62823
62827
|
}, A = (e, n, r, i) => {
|
|
@@ -62929,7 +62933,7 @@ function i9(e = {}, t) {
|
|
|
62929
62933
|
}
|
|
62930
62934
|
//#endregion
|
|
62931
62935
|
//#region src/containers/draggable-container.vue?vue&type=script&setup=true&lang.ts
|
|
62932
|
-
var
|
|
62936
|
+
var o9 = { class: "draggable-container-content" }, s9 = /* @__PURE__ */ h5(/* @__PURE__ */ H({
|
|
62933
62937
|
__name: "draggable-container",
|
|
62934
62938
|
props: {
|
|
62935
62939
|
className: { default: "" },
|
|
@@ -62966,7 +62970,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
62966
62970
|
"compression-change"
|
|
62967
62971
|
],
|
|
62968
62972
|
setup(e, { expose: t, emit: n }) {
|
|
62969
|
-
let r = e, i = n, a = /* @__PURE__ */ z(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: d, height: f, isCompressed: p, isSidePanelExpanded: m, handleDragging: h, handleResizing: g, handleDragStop: _, handleResizeStop: v, toggleCompression: y, updatePosition: b, updateSize: x, updatePositionAndSize: S, expandForSidePanel: C, collapseSidePanel: w, abortSidePanelSequence: T } =
|
|
62973
|
+
let r = e, i = n, a = /* @__PURE__ */ z(!1), { minWidth: o, minHeight: s, maxWidth: c, top: l, left: u, width: d, height: f, isCompressed: p, isSidePanelExpanded: m, handleDragging: h, handleResizing: g, handleDragStop: _, handleResizeStop: v, toggleCompression: y, updatePosition: b, updateSize: x, updatePositionAndSize: S, expandForSidePanel: C, collapseSidePanel: w, abortSidePanelSequence: T } = a9({
|
|
62970
62974
|
initWidth: r.defaultWidth,
|
|
62971
62975
|
minWidth: r.minWidth,
|
|
62972
62976
|
minHeight: r.minHeight,
|
|
@@ -63016,7 +63020,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63016
63020
|
positionAndSize: D,
|
|
63017
63021
|
isCompressed: p,
|
|
63018
63022
|
isSidePanelExpanded: m
|
|
63019
|
-
}), (e, t) => Hn((W(), K(V(
|
|
63023
|
+
}), (e, t) => Hn((W(), K(V(e9), {
|
|
63020
63024
|
ref: "draggableRef",
|
|
63021
63025
|
active: r.visible,
|
|
63022
63026
|
class: L([
|
|
@@ -63043,7 +63047,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63043
63047
|
onResizeStop: N,
|
|
63044
63048
|
onResizing: j
|
|
63045
63049
|
}, {
|
|
63046
|
-
default: Vn(() => [q("div",
|
|
63050
|
+
default: Vn(() => [q("div", o9, [li(e.$slots, "default", {}, void 0, !0)])]),
|
|
63047
63051
|
_: 3
|
|
63048
63052
|
}, 8, [
|
|
63049
63053
|
"active",
|
|
@@ -63061,11 +63065,11 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63061
63065
|
"y"
|
|
63062
63066
|
])), [[$o, r.visible]]);
|
|
63063
63067
|
}
|
|
63064
|
-
}), [["__scopeId", "data-v-7417a71b"]]),
|
|
63068
|
+
}), [["__scopeId", "data-v-7417a71b"]]), c9 = { class: "nimbus-bkai-wrapper" }, l9 = [
|
|
63065
63069
|
"width",
|
|
63066
63070
|
"height",
|
|
63067
63071
|
"src"
|
|
63068
|
-
],
|
|
63072
|
+
], u9 = /* @__PURE__ */ h5(/* @__PURE__ */ H({
|
|
63069
63073
|
name: "NimbusButton",
|
|
63070
63074
|
__name: "nimbus",
|
|
63071
63075
|
props: {
|
|
@@ -63117,11 +63121,11 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63117
63121
|
right: -6
|
|
63118
63122
|
}
|
|
63119
63123
|
}
|
|
63120
|
-
}, a = X(() => i[n.size]), o = /* @__PURE__ */ z(null), s = /* @__PURE__ */ z(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: d, handleMinimize: f, handleDragging: p, handleMouseEnter: m, handleMouseLeave: h, handleMouseDown: g, handleMouseUp: _ } =
|
|
63124
|
+
}, a = X(() => i[n.size]), o = /* @__PURE__ */ z(null), s = /* @__PURE__ */ z(null), { nimbusLeft: c, nimbusTop: l, isMinimize: u, handleClick: d, handleMinimize: f, handleDragging: p, handleMouseEnter: m, handleMouseLeave: h, handleMouseDown: g, handleMouseUp: _ } = O7(r, n.isMinimize);
|
|
63121
63125
|
Zn(u, (e) => {
|
|
63122
63126
|
r("update:isMinimize", e);
|
|
63123
63127
|
});
|
|
63124
|
-
let v = X(() => u.value ? l5("恢复默认大小") : l5("最小化,将缩成锚点")), { createTooltip: y, destroyAll: b } =
|
|
63128
|
+
let v = X(() => u.value ? l5("恢复默认大小") : l5("最小化,将缩成锚点")), { createTooltip: y, destroyAll: b } = N7({
|
|
63125
63129
|
theme: "ai-blueking",
|
|
63126
63130
|
delay: [0, 0]
|
|
63127
63131
|
}), x = () => {
|
|
@@ -63141,7 +63145,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63141
63145
|
}), window.addEventListener("resize", x);
|
|
63142
63146
|
}), Jr(() => {
|
|
63143
63147
|
window.removeEventListener("resize", x);
|
|
63144
|
-
}), (t, n) => (W(), K(V(
|
|
63148
|
+
}), (t, n) => (W(), K(V(e9), {
|
|
63145
63149
|
active: !e.isPanelShow,
|
|
63146
63150
|
axis: "y",
|
|
63147
63151
|
draggable: !0,
|
|
@@ -63163,12 +63167,12 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63163
63167
|
onMouseenter: n[3] ||= (...e) => V(m) && V(m)(...e),
|
|
63164
63168
|
onMouseleave: n[4] ||= (...e) => V(h) && V(h)(...e),
|
|
63165
63169
|
onMouseup: n[5] ||= (...e) => V(_) && V(_)(...e)
|
|
63166
|
-
}, [q("div",
|
|
63170
|
+
}, [q("div", c9, [q("img", {
|
|
63167
63171
|
width: a.value.img,
|
|
63168
63172
|
height: a.value.img,
|
|
63169
63173
|
src: V(b6),
|
|
63170
63174
|
alt: "nimbus"
|
|
63171
|
-
}, null, 8,
|
|
63175
|
+
}, null, 8, l9)]), q("i", {
|
|
63172
63176
|
ref_key: "minimizeButtonRef",
|
|
63173
63177
|
ref: s,
|
|
63174
63178
|
class: L(["nimbus-mini bkai-icon", V(u) ? "bkai-yinyong" : "bkai-minus-line"]),
|
|
@@ -63184,7 +63188,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63184
63188
|
"onDragging"
|
|
63185
63189
|
]));
|
|
63186
63190
|
}
|
|
63187
|
-
}), [["__scopeId", "data-v-26b6f3ea"]]),
|
|
63191
|
+
}), [["__scopeId", "data-v-26b6f3ea"]]), d9 = /* @__PURE__ */ h5(/* @__PURE__ */ H({
|
|
63188
63192
|
inheritAttrs: !1,
|
|
63189
63193
|
__name: "ai-blueking",
|
|
63190
63194
|
props: /* @__PURE__ */ yi({
|
|
@@ -63241,7 +63245,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63241
63245
|
resizeProps: {},
|
|
63242
63246
|
size: {},
|
|
63243
63247
|
timezone: {}
|
|
63244
|
-
},
|
|
63248
|
+
}, P7),
|
|
63245
63249
|
emits: [
|
|
63246
63250
|
"show",
|
|
63247
63251
|
"close",
|
|
@@ -63270,30 +63274,30 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63270
63274
|
"share"
|
|
63271
63275
|
],
|
|
63272
63276
|
setup(e, { expose: t, emit: n }) {
|
|
63273
|
-
let r = e, i = n, a = gi(), { chatHelper: o, componentManager: s, modelSelection: c, sessionBusinessManager: l, shareBusinessManager: u, shortcutManager: d, forwarders: f, forwardToManager: p, chatBotRef: m, draggableContainerRef: h, panelVisible: g, nimbusMinimized: _, normalizedUrl: v, agentName: y, currentSession: b, isCompressed: x, isWelcomeState: S, agentResources: C, agentPrompts: w, agentSkills: T, handleError: E, reportSdkError: D, ensureSessionReady: O, updateAgentInfo: k } =
|
|
63277
|
+
let r = e, i = n, a = gi(), { chatHelper: o, componentManager: s, modelSelection: c, sessionBusinessManager: l, shareBusinessManager: u, shortcutManager: d, forwarders: f, forwardToManager: p, chatBotRef: m, draggableContainerRef: h, panelVisible: g, nimbusMinimized: _, normalizedUrl: v, agentName: y, currentSession: b, isCompressed: x, isWelcomeState: S, agentResources: C, agentPrompts: w, agentSkills: T, handleError: E, reportSdkError: D, ensureSessionReady: O, updateAgentInfo: k } = E7({
|
|
63274
63278
|
props: r,
|
|
63275
63279
|
emit: i
|
|
63276
|
-
}), A = X(() => c.selectedLlmCode.value), { show: j, hide: M, handleShow: N, handleClose: P, handleNimbusClick: F, handleDragging: I, handleResizing: ee, handleDragStop: te, handleResizeStop: ne, handleToggleCompression: re, handleCompressionChange: ie, handleExecutionPanelChange: ae, handleToggleAside: oe, handleAsideCollapsedUpdate: se, asideCollapsed: le, sendMessage: ue, handleReceiveStart: de, handleReceiveText: fe, handleReceiveEnd: me, handleStop: he, stopGeneration: ge, setCiteText: _e, focusInput: ve, selectShortcut: ye, sendShortcut: R, getChatHelper: be, updatePosition: xe, updateSize: Se, updatePositionAndSize: Ce, handleShortcutClick: we } =
|
|
63280
|
+
}), A = X(() => c.selectedLlmCode.value), { show: j, hide: M, handleShow: N, handleClose: P, handleNimbusClick: F, handleDragging: I, handleResizing: ee, handleDragStop: te, handleResizeStop: ne, handleToggleCompression: re, handleCompressionChange: ie, handleExecutionPanelChange: ae, handleToggleAside: oe, handleAsideCollapsedUpdate: se, asideCollapsed: le, sendMessage: ue, handleReceiveStart: de, handleReceiveText: fe, handleReceiveEnd: me, handleStop: he, stopGeneration: ge, setCiteText: _e, focusInput: ve, selectShortcut: ye, sendShortcut: R, getChatHelper: be, updatePosition: xe, updateSize: Se, updatePositionAndSize: Ce, handleShortcutClick: we } = A7({
|
|
63277
63281
|
componentManager: s,
|
|
63278
63282
|
chatBotRef: m,
|
|
63279
63283
|
forwarders: f,
|
|
63280
63284
|
forwardToManager: p,
|
|
63281
63285
|
beforeNimbusClick: r.beforeNimbusClick,
|
|
63282
63286
|
ensureSessionReady: O
|
|
63283
|
-
}), { sessionName: Te, hasPermission: Ee, hasSessionContents: De, autoGenerateLoading: Oe, handleNewChat: ke, handleNewChatCreated: Ae, handleHistoryClick: je, handleHistorySessionSwitch: Me, handleHistorySessionDelete: Ne, handleHistorySessionRename: Pe, handleAutoGenerateName: Fe, handleHelpClick: Ie, handleRename: Le, handleSessionRenamed: Re, handleSessionSwitched: ze, addNewSession: Be, switchToSession: Ve, updateSessionName: He } =
|
|
63287
|
+
}), { sessionName: Te, hasPermission: Ee, hasSessionContents: De, autoGenerateLoading: Oe, handleNewChat: ke, handleNewChatCreated: Ae, handleHistoryClick: je, handleHistorySessionSwitch: Me, handleHistorySessionDelete: Ne, handleHistorySessionRename: Pe, handleAutoGenerateName: Fe, handleHelpClick: Ie, handleRename: Le, handleSessionRenamed: Re, handleSessionSwitched: ze, addNewSession: Be, switchToSession: Ve, updateSessionName: He } = j7({
|
|
63284
63288
|
chatHelper: o,
|
|
63285
63289
|
sessionBusinessManager: l,
|
|
63286
63290
|
chatBotRef: m,
|
|
63287
63291
|
forwarders: f,
|
|
63288
63292
|
reportSdkError: D,
|
|
63289
63293
|
currentSession: b
|
|
63290
|
-
}), { isShareLoading: Ue, handleShare: We, handleCancelShare: Ge, handleConfirmShare: Ke } =
|
|
63294
|
+
}), { isShareLoading: Ue, handleShare: We, handleCancelShare: Ge, handleConfirmShare: Ke } = M7({
|
|
63291
63295
|
shareBusinessManager: u,
|
|
63292
63296
|
chatBotRef: m,
|
|
63293
63297
|
emit: (e, t, n) => i(e, t, n),
|
|
63294
63298
|
forwarders: f,
|
|
63295
63299
|
reportSdkError: D
|
|
63296
|
-
}), { aiSelectionVisible: qe, filteredPopupShortcuts: Je, handleSelectionChange: Ye, handleAiSelectionShortcut: Xe } =
|
|
63300
|
+
}), { aiSelectionVisible: qe, filteredPopupShortcuts: Je, handleSelectionChange: Ye, handleAiSelectionShortcut: Xe } = D7({
|
|
63297
63301
|
shortcutManager: d,
|
|
63298
63302
|
chatBotRef: m,
|
|
63299
63303
|
forwardToManager: p,
|
|
@@ -63327,7 +63331,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63327
63331
|
V(a).class
|
|
63328
63332
|
]) }, [
|
|
63329
63333
|
Y(" 可拖拽容器 "),
|
|
63330
|
-
J(V(
|
|
63334
|
+
J(V(s9), {
|
|
63331
63335
|
ref_key: "draggableContainerRef",
|
|
63332
63336
|
ref: h,
|
|
63333
63337
|
"compressed-padding": r.miniPadding,
|
|
@@ -63348,7 +63352,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63348
63352
|
}, {
|
|
63349
63353
|
default: Vn(() => [q("div", { class: L(["ai-blueking-panel", { "has-messages": !V(S) }]) }, [
|
|
63350
63354
|
Y(" 独立的 Header 组件 "),
|
|
63351
|
-
r.hideHeader ? Y("v-if", !0) : (W(), K(
|
|
63355
|
+
r.hideHeader ? Y("v-if", !0) : (W(), K(B5, {
|
|
63352
63356
|
key: 0,
|
|
63353
63357
|
"agent-name": V(y),
|
|
63354
63358
|
"aside-collapsed": V(le),
|
|
@@ -63386,9 +63390,13 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63386
63390
|
name: "headerLeft",
|
|
63387
63391
|
fn: Vn(() => [li(e.$slots, "headerLeft", {}, void 0, !0)]),
|
|
63388
63392
|
key: "0"
|
|
63393
|
+
} : void 0, e.$slots.headerActions ? {
|
|
63394
|
+
name: "headerActions",
|
|
63395
|
+
fn: Vn(() => [li(e.$slots, "headerActions", {}, void 0, !0)]),
|
|
63396
|
+
key: "1"
|
|
63389
63397
|
} : 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("."))),
|
|
63390
63398
|
Y(" ChatBot 核心组件(仅聊天区域) "),
|
|
63391
|
-
J(
|
|
63399
|
+
J(x7, {
|
|
63392
63400
|
ref_key: "chatBotRef",
|
|
63393
63401
|
ref: m,
|
|
63394
63402
|
"always-create-new-session": r.alwaysCreateNewSession,
|
|
@@ -63475,7 +63483,7 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63475
63483
|
"onResizing"
|
|
63476
63484
|
]),
|
|
63477
63485
|
Y(" Nimbus 悬浮球 "),
|
|
63478
|
-
r.hideNimbus ? Y("v-if", !0) : (W(), K(
|
|
63486
|
+
r.hideNimbus ? Y("v-if", !0) : (W(), K(u9, {
|
|
63479
63487
|
key: 0,
|
|
63480
63488
|
"is-minimize": V(_),
|
|
63481
63489
|
"onUpdate:isMinimize": t[5] ||= (e) => /* @__PURE__ */ Xt(_) ? _.value = e : null,
|
|
@@ -63510,38 +63518,38 @@ var a9 = { class: "draggable-container-content" }, o9 = /* @__PURE__ */ h5(/* @_
|
|
|
63510
63518
|
])) : Y("v-if", !0)
|
|
63511
63519
|
], 2)], 8, ["to"]));
|
|
63512
63520
|
}
|
|
63513
|
-
}), [["__scopeId", "data-v-
|
|
63521
|
+
}), [["__scopeId", "data-v-349f1f25"]]);
|
|
63514
63522
|
//#endregion
|
|
63515
63523
|
//#region src/vue2-wrapper.ts
|
|
63516
|
-
function
|
|
63524
|
+
function f9(e) {
|
|
63517
63525
|
return "on" + e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
63518
63526
|
}
|
|
63519
63527
|
//#endregion
|
|
63520
63528
|
//#region src/standalone-mount-core.ts
|
|
63521
|
-
function
|
|
63529
|
+
function p9() {
|
|
63522
63530
|
return "bk";
|
|
63523
63531
|
}
|
|
63524
|
-
function
|
|
63532
|
+
function m9(e) {
|
|
63525
63533
|
if (typeof e != "string") return e;
|
|
63526
63534
|
let t = document.querySelector(e);
|
|
63527
63535
|
if (!t) throw Error(`[ai-blueking] mount container not found: ${e}`);
|
|
63528
63536
|
return t;
|
|
63529
63537
|
}
|
|
63530
|
-
function
|
|
63538
|
+
function h9(e) {
|
|
63531
63539
|
if (!e) return {};
|
|
63532
63540
|
let t = {};
|
|
63533
63541
|
for (let [n, r] of Object.entries(e)) {
|
|
63534
63542
|
if (!r) continue;
|
|
63535
|
-
let e = n.startsWith("on") && n.length > 2 ? n :
|
|
63543
|
+
let e = n.startsWith("on") && n.length > 2 ? n : f9(n);
|
|
63536
63544
|
t[e] = r;
|
|
63537
63545
|
}
|
|
63538
63546
|
return t;
|
|
63539
63547
|
}
|
|
63540
|
-
function
|
|
63541
|
-
let r =
|
|
63542
|
-
return () => Z(hy, { prefix:
|
|
63548
|
+
function g9(e, t, n) {
|
|
63549
|
+
let r = m9(e), i = /* @__PURE__ */ zt({ ...n?.props ?? {} }), a = null, o = Gs({ setup() {
|
|
63550
|
+
return () => Z(hy, { prefix: p9() }, { default: () => Z(t, {
|
|
63543
63551
|
...i,
|
|
63544
|
-
...
|
|
63552
|
+
...h9(n?.on),
|
|
63545
63553
|
ref: (e) => {
|
|
63546
63554
|
a = e;
|
|
63547
63555
|
}
|
|
@@ -63563,11 +63571,11 @@ function h9(e, t, n) {
|
|
|
63563
63571
|
}
|
|
63564
63572
|
//#endregion
|
|
63565
63573
|
//#region src/standalone-mount.ts
|
|
63566
|
-
function g9(e, t) {
|
|
63567
|
-
return h9(e, u9, t);
|
|
63568
|
-
}
|
|
63569
63574
|
function _9(e, t) {
|
|
63570
|
-
return
|
|
63575
|
+
return g9(e, d9, t);
|
|
63576
|
+
}
|
|
63577
|
+
function v9(e, t) {
|
|
63578
|
+
return g9(e, x7, t);
|
|
63571
63579
|
}
|
|
63572
63580
|
//#endregion
|
|
63573
|
-
export { I6 as AGUIProtocol,
|
|
63581
|
+
export { I6 as AGUIProtocol, d9 as AIBlueking, F7 as BluekingProtocol, S7 as BootstrapPhase, x7 as ChatBot, G5 as ChatBusinessManager, Y5 as ComponentManager, s9 as DraggableContainer, Gc as MessageContentType, al as RenderMode, K5 as SessionBusinessManager, J5 as ShortcutManager, $5 as UIStateManager, h9 as buildStandaloneListeners, Gs as createApp, I7 as createBluekingProtocol, X5 as createComponentManager, P7 as defaultProps, Z as h, _9 as mountAIBlueking, v9 as mountChatBot, g9 as mountStandaloneComponent, X8 as parseCustomBlocks, Ws as render, m9 as resolveMountContainer, C7 as useChatBootstrap, V8 as useChatHelper, a9 as useDraggable };
|