@blueking/ai-blueking 2.2.5-beta.2 → 2.2.5-beta.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/components/chat-bot.vue.d.ts.map +1 -1
- package/dist/components/composables/use-message-sender.d.ts +2 -1
- package/dist/components/composables/use-message-sender.d.ts.map +1 -1
- package/dist/composables/use-ai-blueking-init.d.ts.map +1 -1
- package/dist/standalone/index.es.min.js +110 -75
- package/dist/standalone/index.iife.min.js +2 -2
- package/dist/standalone/index.umd.min.js +2 -2
- package/dist/vue2/index.es.min.js +261 -226
- package/dist/vue2/index.iife.min.js +3 -3
- package/dist/vue2/index.umd.min.js +3 -3
- package/dist/vue3/index.es.min.js +110 -75
- package/dist/vue3/index.iife.min.js +2 -2
- package/dist/vue3/index.umd.min.js +4 -4
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { o as e, r as t, t as n } from "./chunk-WQLz0Won.js";
|
|
|
2
2
|
import { t as r } from "./purify.es-CZ_RvYUu.js";
|
|
3
3
|
import { t as i } from "./katex-CKrw0rbA.js";
|
|
4
4
|
import * as a from "@blueking/bkui-library";
|
|
5
|
-
import { Fragment as o, Teleport as s, Text as c, Transition as l, cloneVNode as u, computed as d, createApp as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, customRef as b, defineComponent as x, getCurrentInstance as S, guardReactiveProps as C, h as w, h as T, inject as E, isReactive as D, isRef as O, isVNode as k, mergeDefaults as A, mergeModels as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeProps as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as R, onScopeDispose as
|
|
5
|
+
import { Fragment as o, Teleport as s, Text as c, Transition as l, cloneVNode as u, computed as d, createApp as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, customRef as b, defineComponent as x, getCurrentInstance as S, guardReactiveProps as C, h as w, h as T, inject as E, isReactive as D, isRef as O, isVNode as k, mergeDefaults as A, mergeModels as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeProps as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as R, onScopeDispose as z, onUnmounted as ee, openBlock as B, provide as te, reactive as ne, readonly as re, ref as V, render as ie, renderList as H, renderSlot as U, resolveDynamicComponent as ae, shallowReactive as oe, shallowRef as W, toDisplayString as G, toRef as K, toValue as se, unref as q, useAttrs as ce, useCssVars as le, useId as ue, useModel as de, useSlots as fe, useTemplateRef as pe, vShow as me, watch as J, watchEffect as he, watchPostEffect as ge, withCtx as Y, withDirectives as _e, withKeys as ve, withModifiers as ye } from "@blueking/bkui-library";
|
|
6
6
|
import be from "tippy.js";
|
|
7
7
|
import "tippy.js/dist/tippy.css";
|
|
8
8
|
//#region src/assets/icon/iconcool.js
|
|
@@ -774,10 +774,10 @@ function cn(e) {
|
|
|
774
774
|
};
|
|
775
775
|
if (S) {
|
|
776
776
|
if (a) {
|
|
777
|
-
var k = b === "y" ? "top" : ke, A = b === "y" ? De : Oe, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === "start" ? C[j] : w[j], L = v === "start" ? -w[j] : -C[j], R = t.elements.arrow,
|
|
777
|
+
var k = b === "y" ? "top" : ke, A = b === "y" ? De : Oe, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === "start" ? C[j] : w[j], L = v === "start" ? -w[j] : -C[j], R = t.elements.arrow, z = p && R ? tt(R) : {
|
|
778
778
|
width: 0,
|
|
779
779
|
height: 0
|
|
780
|
-
},
|
|
780
|
+
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : pt(), B = ee[k], te = ee[A], ne = dt(0, C[j], z[j]), re = y ? C[j] / 2 - F - ne - B - E.mainAxis : I - ne - B - E.mainAxis, V = y ? -C[j] / 2 + F + ne + te + E.mainAxis : L + ne + te + E.mainAxis, ie = t.elements.arrow && lt(t.elements.arrow), H = ie ? b === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, U = D?.[b] ?? 0, ae = M + re - U - H, oe = M + V - U, W = dt(p ? Xe(N, ae) : N, M, p ? Ye(P, oe) : P);
|
|
781
781
|
S[b] = W, O[b] = W - M;
|
|
782
782
|
}
|
|
783
783
|
if (s) {
|
|
@@ -8135,7 +8135,7 @@ var Iy = {};
|
|
|
8135
8135
|
"right",
|
|
8136
8136
|
"bottom",
|
|
8137
8137
|
"left"
|
|
8138
|
-
], P = ["start", "end"], F = /* @__PURE__ */ N.reduce((e, t) => e.concat(t, t + "-" + P[0], t + "-" + P[1]), []), I = Math.min, L = Math.max, R = Math.round,
|
|
8138
|
+
], P = ["start", "end"], F = /* @__PURE__ */ N.reduce((e, t) => e.concat(t, t + "-" + P[0], t + "-" + P[1]), []), I = Math.min, L = Math.max, R = Math.round, z = Math.floor, ee = (e) => ({
|
|
8139
8139
|
x: e,
|
|
8140
8140
|
y: e
|
|
8141
8141
|
}), B = {
|
|
@@ -8731,14 +8731,14 @@ var Iy = {};
|
|
|
8731
8731
|
}
|
|
8732
8732
|
function Ke(e) {
|
|
8733
8733
|
let t = Ge(e);
|
|
8734
|
-
if (!je(t)) return
|
|
8734
|
+
if (!je(t)) return ee(1);
|
|
8735
8735
|
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = We(t), o = (a ? R(n.width) : n.width) / r, s = (a ? R(n.height) : n.height) / i;
|
|
8736
8736
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
8737
8737
|
x: o,
|
|
8738
8738
|
y: s
|
|
8739
8739
|
};
|
|
8740
8740
|
}
|
|
8741
|
-
let qe = /* @__PURE__ */
|
|
8741
|
+
let qe = /* @__PURE__ */ ee(0);
|
|
8742
8742
|
function Je(e) {
|
|
8743
8743
|
let t = De(e);
|
|
8744
8744
|
return !Le() || !t.visualViewport ? qe : {
|
|
@@ -8751,9 +8751,9 @@ var Iy = {};
|
|
|
8751
8751
|
}
|
|
8752
8752
|
function Xe(e, t, n, r) {
|
|
8753
8753
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
8754
|
-
let i = e.getBoundingClientRect(), a = Ge(e), o =
|
|
8754
|
+
let i = e.getBoundingClientRect(), a = Ge(e), o = ee(1);
|
|
8755
8755
|
t && (r ? Ae(r) && (o = Ke(r)) : o = Ke(e));
|
|
8756
|
-
let s = Ye(a, n, r) ? Je(a) :
|
|
8756
|
+
let s = Ye(a, n, r) ? Je(a) : ee(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
8757
8757
|
if (a) {
|
|
8758
8758
|
let e = De(a), t = r && Ae(r) ? De(r) : r, n = e.frameElement;
|
|
8759
8759
|
for (; n && r && t !== e;) {
|
|
@@ -8774,7 +8774,7 @@ var Iy = {};
|
|
|
8774
8774
|
let o = {
|
|
8775
8775
|
scrollLeft: 0,
|
|
8776
8776
|
scrollTop: 0
|
|
8777
|
-
}, s =
|
|
8777
|
+
}, s = ee(1), c = ee(0);
|
|
8778
8778
|
if ((i || !i && r !== "fixed") && ((Ee(n) !== "body" || Ne(a)) && (o = Be(n)), je(n))) {
|
|
8779
8779
|
let e = Xe(n);
|
|
8780
8780
|
s = Ke(n), c.x = e.x + n.clientLeft, c.y = e.y + n.clientTop;
|
|
@@ -8816,7 +8816,7 @@ var Iy = {};
|
|
|
8816
8816
|
};
|
|
8817
8817
|
}
|
|
8818
8818
|
function nt(e, t) {
|
|
8819
|
-
let n = Xe(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = je(e) ? Ke(e) :
|
|
8819
|
+
let n = Xe(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = je(e) ? Ke(e) : ee(1);
|
|
8820
8820
|
return {
|
|
8821
8821
|
width: e.clientWidth * a.x,
|
|
8822
8822
|
height: e.clientHeight * a.y,
|
|
@@ -8876,7 +8876,7 @@ var Iy = {};
|
|
|
8876
8876
|
let r = je(t), i = Oe(t), a = n === "fixed", o = Xe(e, !0, a, t), s = {
|
|
8877
8877
|
scrollLeft: 0,
|
|
8878
8878
|
scrollTop: 0
|
|
8879
|
-
}, c =
|
|
8879
|
+
}, c = ee(0);
|
|
8880
8880
|
if (r || !r && !a) if ((Ee(t) !== "body" || Ne(i)) && (s = Be(t)), r) {
|
|
8881
8881
|
let e = Xe(t, !0, a, t);
|
|
8882
8882
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
@@ -8933,7 +8933,7 @@ var Iy = {};
|
|
|
8933
8933
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
8934
8934
|
let { left: l, top: u, width: d, height: f } = e.getBoundingClientRect();
|
|
8935
8935
|
if (s || t(), !d || !f) return;
|
|
8936
|
-
let p =
|
|
8936
|
+
let p = z(u), m = z(i.clientWidth - (l + d)), h = z(i.clientHeight - (u + f)), g = z(l), _ = {
|
|
8937
8937
|
rootMargin: -p + "px " + -m + "px " + -h + "px " + -g + "px",
|
|
8938
8938
|
threshold: L(0, I(1, c)) || 1
|
|
8939
8939
|
}, v = !0;
|
|
@@ -9213,15 +9213,15 @@ var Iy = {};
|
|
|
9213
9213
|
"bottom"
|
|
9214
9214
|
].includes(c) || (l = "top"), j(a, t, r, s), N(o, l, s), typeof n == "function" && n();
|
|
9215
9215
|
});
|
|
9216
|
-
}, I = void 0, L = void 0, R = !1,
|
|
9216
|
+
}, I = void 0, L = void 0, R = !1, z = function() {
|
|
9217
9217
|
return Array.isArray(n.popoverDelay) ? [n.popoverDelay[0], n.popoverDelay.slice(-1)[0]] : [n.popoverDelay, n.popoverDelay];
|
|
9218
|
-
},
|
|
9219
|
-
var e =
|
|
9218
|
+
}, ee = function() {
|
|
9219
|
+
var e = z()[0];
|
|
9220
9220
|
L = setTimeout(function() {
|
|
9221
9221
|
o.value && (n.disabled || (l.value = !0));
|
|
9222
9222
|
}, e);
|
|
9223
9223
|
}, B = function() {
|
|
9224
|
-
var e =
|
|
9224
|
+
var e = z()[1];
|
|
9225
9225
|
I = setTimeout(function() {
|
|
9226
9226
|
o.value && (L && clearTimeout(L), R = !1, l.value = !1);
|
|
9227
9227
|
}, e);
|
|
@@ -9232,11 +9232,11 @@ var Iy = {};
|
|
|
9232
9232
|
var e = C(o.value?.$el);
|
|
9233
9233
|
e && (e.style.setProperty("display", "none"), r != null && r.emit && r.emit(b.CONTENT_AfterHidden, { isShow: !1 }));
|
|
9234
9234
|
}, re = function() {
|
|
9235
|
-
l.value ? B() :
|
|
9235
|
+
l.value ? B() : ee();
|
|
9236
9236
|
}, V = function(e) {
|
|
9237
9237
|
if (n.trigger === "hover") {
|
|
9238
9238
|
R ||= !0;
|
|
9239
|
-
var t =
|
|
9239
|
+
var t = z()[1];
|
|
9240
9240
|
I && (clearTimeout(I), setTimeout(function() {
|
|
9241
9241
|
I = void 0;
|
|
9242
9242
|
}, t)), H(e);
|
|
@@ -9255,20 +9255,20 @@ var Iy = {};
|
|
|
9255
9255
|
}), (0, t.watch)(l, function(e) {
|
|
9256
9256
|
e ? te() : ne();
|
|
9257
9257
|
}), {
|
|
9258
|
-
showPopover:
|
|
9258
|
+
showPopover: ee,
|
|
9259
9259
|
hidePopover: B,
|
|
9260
9260
|
resolveTriggerEvents: function() {
|
|
9261
9261
|
return {
|
|
9262
9262
|
hover: [{
|
|
9263
9263
|
content: [["mouseenter", V], ["mouseleave", ie]],
|
|
9264
9264
|
reference: [
|
|
9265
|
-
["mouseenter",
|
|
9265
|
+
["mouseenter", ee],
|
|
9266
9266
|
["mouseleave", B],
|
|
9267
|
-
["focus",
|
|
9267
|
+
["focus", ee],
|
|
9268
9268
|
["blur", B]
|
|
9269
9269
|
]
|
|
9270
9270
|
}],
|
|
9271
|
-
click: [[["click",
|
|
9271
|
+
click: [[["click", ee]]],
|
|
9272
9272
|
manual: [{
|
|
9273
9273
|
content: [["mouseenter", H], ["mouseleave", U]],
|
|
9274
9274
|
reference: [[]]
|
|
@@ -9409,7 +9409,7 @@ var Iy = {};
|
|
|
9409
9409
|
return;
|
|
9410
9410
|
}
|
|
9411
9411
|
te.value = R(n || t) || "body";
|
|
9412
|
-
}, L = Wt(e, "#"), R = L.getPrefixId,
|
|
9412
|
+
}, L = Wt(e, "#"), R = L.getPrefixId, z = L.clearParentNodeId, ee = function() {
|
|
9413
9413
|
var e;
|
|
9414
9414
|
f == null || (e = f.value) == null || e.setAttribute("data-fllsrn-id", d);
|
|
9415
9415
|
}, B = function() {
|
|
@@ -9420,7 +9420,7 @@ var Iy = {};
|
|
|
9420
9420
|
}, te = (0, t.ref)("body"), ne = function() {
|
|
9421
9421
|
P();
|
|
9422
9422
|
}, re = function(e) {
|
|
9423
|
-
f.value = e, C(e), u.value = S(),
|
|
9423
|
+
f.value = e, C(e), u.value = S(), ee();
|
|
9424
9424
|
}, V = function(t) {
|
|
9425
9425
|
document.fullscreenElement || B(), re(t.target), I(), _(null, e);
|
|
9426
9426
|
}, ie = function() {
|
|
@@ -9428,7 +9428,7 @@ var Iy = {};
|
|
|
9428
9428
|
}, H = function() {
|
|
9429
9429
|
ne();
|
|
9430
9430
|
var e = x().root;
|
|
9431
|
-
|
|
9431
|
+
z(e), document.body.removeEventListener("fullscreenchange", V), document.removeEventListener("click", ae);
|
|
9432
9432
|
}, U = function(e) {
|
|
9433
9433
|
var t, n;
|
|
9434
9434
|
return ((t = a.value) == null || (t = t.$el) == null || (n = t.contains) == null ? void 0 : n.call(t, e)) ?? !1;
|
|
@@ -10133,28 +10133,28 @@ var Hy = {};
|
|
|
10133
10133
|
beforeMount: function(e, t) {
|
|
10134
10134
|
var n = P(t), r = n.trigger, i = n.showOnInit, a = I(n), o = null;
|
|
10135
10135
|
if (i && (0, m.nextTick)(function() {
|
|
10136
|
-
|
|
10136
|
+
z(e);
|
|
10137
10137
|
}), r === "hover") {
|
|
10138
10138
|
var s = null;
|
|
10139
10139
|
e.addEventListener("mouseenter", function() {
|
|
10140
10140
|
o = setTimeout(function() {
|
|
10141
|
-
|
|
10141
|
+
z(e), clearTimeout(s), clearTimeout(o);
|
|
10142
10142
|
}, n.delay);
|
|
10143
10143
|
}), a.addEventListener("mouseenter", function() {
|
|
10144
10144
|
clearTimeout(s);
|
|
10145
10145
|
}), e.addEventListener("mouseleave", function() {
|
|
10146
10146
|
clearTimeout(o), s = setTimeout(function() {
|
|
10147
|
-
|
|
10147
|
+
ee(e);
|
|
10148
10148
|
}, 100);
|
|
10149
10149
|
}), a.addEventListener("mouseleave", function() {
|
|
10150
10150
|
clearTimeout(o), s = setTimeout(function() {
|
|
10151
|
-
|
|
10151
|
+
ee(e);
|
|
10152
10152
|
}, 100);
|
|
10153
10153
|
});
|
|
10154
10154
|
} else r === "click" && document.body.addEventListener("click", function(t) {
|
|
10155
10155
|
e.contains(t.target) && !a.hasAttribute("data-show") ? o = setTimeout(function() {
|
|
10156
|
-
|
|
10157
|
-
}, n.delay) : !e.contains(t.target) && a.hasAttribute("data-show") &&
|
|
10156
|
+
z(e), clearTimeout(o);
|
|
10157
|
+
}, n.delay) : !e.contains(t.target) && a.hasAttribute("data-show") && ee(e);
|
|
10158
10158
|
});
|
|
10159
10159
|
j.set(e, {
|
|
10160
10160
|
opts: n,
|
|
@@ -10166,7 +10166,7 @@ var Hy = {};
|
|
|
10166
10166
|
j.get(e) && (j.get(e).opts = P(t));
|
|
10167
10167
|
},
|
|
10168
10168
|
unmounted: function(e) {
|
|
10169
|
-
|
|
10169
|
+
ee(e), j.delete(e);
|
|
10170
10170
|
}
|
|
10171
10171
|
};
|
|
10172
10172
|
function N() {
|
|
@@ -10237,7 +10237,7 @@ var Hy = {};
|
|
|
10237
10237
|
});
|
|
10238
10238
|
}
|
|
10239
10239
|
}
|
|
10240
|
-
function
|
|
10240
|
+
function z(e) {
|
|
10241
10241
|
if (j.get(e)) {
|
|
10242
10242
|
var t = j.get(e), n = t.popper, r = t.opts, i = r.disabled, a = r.content, o = r.arrow, s = r.onShow, c = r.boundary, l = r.modifiers, u = l === void 0 ? [] : l;
|
|
10243
10243
|
if (!i) {
|
|
@@ -10257,7 +10257,7 @@ var Hy = {};
|
|
|
10257
10257
|
}
|
|
10258
10258
|
}
|
|
10259
10259
|
}
|
|
10260
|
-
function
|
|
10260
|
+
function ee(e) {
|
|
10261
10261
|
if (j.get(e)) {
|
|
10262
10262
|
var t = j.get(e), n = t.popper, r = t.popperInstance, i = t.opts.onHide;
|
|
10263
10263
|
if (n && document.body.contains(n)) {
|
|
@@ -10500,7 +10500,7 @@ var Hy = {};
|
|
|
10500
10500
|
clear: B
|
|
10501
10501
|
});
|
|
10502
10502
|
function L() {
|
|
10503
|
-
R(),
|
|
10503
|
+
R(), ee();
|
|
10504
10504
|
}
|
|
10505
10505
|
function R() {
|
|
10506
10506
|
var e = v.value?.offsetParent === null;
|
|
@@ -10511,12 +10511,12 @@ var Hy = {};
|
|
|
10511
10511
|
});
|
|
10512
10512
|
} else S.value = { minHeight: H(v.value).minHeight };
|
|
10513
10513
|
}
|
|
10514
|
-
function
|
|
10514
|
+
function z() {
|
|
10515
10515
|
return v.value?.scrollWidth > v.value?.clientWidth + 2;
|
|
10516
10516
|
}
|
|
10517
|
-
function
|
|
10517
|
+
function ee() {
|
|
10518
10518
|
setTimeout(function() {
|
|
10519
|
-
x.value =
|
|
10519
|
+
x.value = z();
|
|
10520
10520
|
});
|
|
10521
10521
|
}
|
|
10522
10522
|
function B() {
|
|
@@ -13638,18 +13638,18 @@ var QS = {};
|
|
|
13638
13638
|
}
|
|
13639
13639
|
var R = function(e) {
|
|
13640
13640
|
return typeof Element > "u" ? !1 : e instanceof Element;
|
|
13641
|
-
},
|
|
13641
|
+
}, z = /* @__PURE__ */ new Map(), ee;
|
|
13642
13642
|
document.addEventListener("mousedown", function(e) {
|
|
13643
|
-
return
|
|
13643
|
+
return ee = e;
|
|
13644
13644
|
}), document.addEventListener("mouseup", function(e) {
|
|
13645
|
-
var t = F(
|
|
13645
|
+
var t = F(z.values()), n;
|
|
13646
13646
|
try {
|
|
13647
13647
|
for (t.s(); !(n = t.n()).done;) {
|
|
13648
13648
|
var r = n.value, i = F(r), a;
|
|
13649
13649
|
try {
|
|
13650
13650
|
for (i.s(); !(a = i.n()).done;) {
|
|
13651
13651
|
var o = a.value.documentHandler;
|
|
13652
|
-
o(e,
|
|
13652
|
+
o(e, ee);
|
|
13653
13653
|
}
|
|
13654
13654
|
} catch (e) {
|
|
13655
13655
|
i.e(e);
|
|
@@ -13674,14 +13674,14 @@ var QS = {};
|
|
|
13674
13674
|
}
|
|
13675
13675
|
var te = {
|
|
13676
13676
|
beforeMount: function(e, t) {
|
|
13677
|
-
|
|
13677
|
+
z.has(e) || z.set(e, []), z.get(e).push({
|
|
13678
13678
|
documentHandler: B(e, t),
|
|
13679
13679
|
bindingFn: t.value
|
|
13680
13680
|
});
|
|
13681
13681
|
},
|
|
13682
13682
|
updated: function(e, t) {
|
|
13683
|
-
|
|
13684
|
-
var n =
|
|
13683
|
+
z.has(e) || z.set(e, []);
|
|
13684
|
+
var n = z.get(e), r = n.findIndex(function(e) {
|
|
13685
13685
|
return e.bindingFn === t.oldValue;
|
|
13686
13686
|
}), i = {
|
|
13687
13687
|
documentHandler: B(e, t),
|
|
@@ -13690,7 +13690,7 @@ var QS = {};
|
|
|
13690
13690
|
r >= 0 ? n.splice(r, 1, i) : n.push(i);
|
|
13691
13691
|
},
|
|
13692
13692
|
unmounted: function(e) {
|
|
13693
|
-
|
|
13693
|
+
z.delete(e);
|
|
13694
13694
|
}
|
|
13695
13695
|
};
|
|
13696
13696
|
te.install = function(e) {
|
|
@@ -14322,7 +14322,7 @@ var QS = {};
|
|
|
14322
14322
|
"search-change"
|
|
14323
14323
|
],
|
|
14324
14324
|
setup: function(t, n) {
|
|
14325
|
-
var r = n.emit, i = (0, b.useLocale)("select"), a = (0, b.usePrefix)().resolveClassName, c = (0, o.toRefs)(t), g = c.modelValue, _ = c.disabled, y = c.filterable, x = c.multiple, C = c.remoteMethod, w = c.loading, T = c.popoverMinWidth, E = c.showOnInit, D = c.multipleMode, O = c.allowCreate, k = c.customContent, A = c.showSelectedIcon, M = c.inputSearch, N = c.enableVirtualRender, P = c.showSelectAll, F = c.showAll, I = c.allOptionId, L = c.scrollHeight, R = c.list,
|
|
14325
|
+
var r = n.emit, i = (0, b.useLocale)("select"), a = (0, b.usePrefix)().resolveClassName, c = (0, o.toRefs)(t), g = c.modelValue, _ = c.disabled, y = c.filterable, x = c.multiple, C = c.remoteMethod, w = c.loading, T = c.popoverMinWidth, E = c.showOnInit, D = c.multipleMode, O = c.allowCreate, k = c.customContent, A = c.showSelectedIcon, M = c.inputSearch, N = c.enableVirtualRender, P = c.showSelectAll, F = c.showAll, I = c.allOptionId, L = c.scrollHeight, R = c.list, z = c.displayKey, ee = c.idKey, B = c.collapseTags, te = c.autoHeight, ne = c.popoverOptions, re = c.allowEmptyValues, V = c.autoFocus, ie = c.keepSearchValue, H = c.selectedStyle, U = c.filterOption, ae = c.searchWithPinyin, oe = c.highlightKeyword, W = c.disableFocusBehavior, G = c.trigger, K = c.disableScrollToSelectedOption, se = (0, o.ref)(null), q = (0, o.computed)(function() {
|
|
14326
14326
|
return t.allOptionText;
|
|
14327
14327
|
}), ce = (0, o.computed)(function() {
|
|
14328
14328
|
return t.noDataText === void 0 ? i.value.noData : t.noDataText;
|
|
@@ -14346,7 +14346,7 @@ var QS = {};
|
|
|
14346
14346
|
}, v({}, `${I.value}`, i.value.all));
|
|
14347
14347
|
}), De = (0, o.ref)(), Oe = (0, o.computed)(function() {
|
|
14348
14348
|
return R.value.reduce(function(e, t) {
|
|
14349
|
-
return e[t[
|
|
14349
|
+
return e[t[ee.value]] = t[z.value], e;
|
|
14350
14350
|
}, {});
|
|
14351
14351
|
});
|
|
14352
14352
|
(0, o.watch)([xe, R], function() {
|
|
@@ -14362,7 +14362,7 @@ var QS = {};
|
|
|
14362
14362
|
});
|
|
14363
14363
|
var Ae = (0, o.computed)(function() {
|
|
14364
14364
|
return ze.value ? R.value : R.value.filter(function(e) {
|
|
14365
|
-
return xt(Tt.value, String(e[
|
|
14365
|
+
return xt(Tt.value, String(e[z.value]), e);
|
|
14366
14366
|
});
|
|
14367
14367
|
}), je = (0, o.computed)(function() {
|
|
14368
14368
|
return _.value || w.value;
|
|
@@ -14561,7 +14561,7 @@ var QS = {};
|
|
|
14561
14561
|
Se.value.forEach(function(e) {
|
|
14562
14562
|
e.disabled || t.has(e.optionID) || t.set(e.optionID, e.optionName || e.optionID);
|
|
14563
14563
|
}), (e = R.value) == null || e.forEach(function(e) {
|
|
14564
|
-
e.disabled || t.has(e[
|
|
14564
|
+
e.disabled || t.has(e[ee.value]) || t.set(e[ee.value], e[z.value]);
|
|
14565
14565
|
}), Te.value = Array.from(t.keys()).map(function(e) {
|
|
14566
14566
|
return {
|
|
14567
14567
|
value: e,
|
|
@@ -14625,8 +14625,8 @@ var QS = {};
|
|
|
14625
14625
|
}, Ut = function(e) {
|
|
14626
14626
|
Te.value = e.map(function(e) {
|
|
14627
14627
|
return {
|
|
14628
|
-
label: e[
|
|
14629
|
-
value: e[
|
|
14628
|
+
label: e[z.value],
|
|
14629
|
+
value: e[ee.value]
|
|
14630
14630
|
};
|
|
14631
14631
|
});
|
|
14632
14632
|
}, Wt = function(e) {
|
|
@@ -17067,7 +17067,7 @@ var FC = {};
|
|
|
17067
17067
|
}, v.value);
|
|
17068
17068
|
}, R = function(e) {
|
|
17069
17069
|
e.preventDefault(), e.stopPropagation(), P.value = !1;
|
|
17070
|
-
},
|
|
17070
|
+
}, z, ee = (0, i.ref)(null), B = function(t) {
|
|
17071
17071
|
var n = t;
|
|
17072
17072
|
if (e(t) === "object") try {
|
|
17073
17073
|
n = JSON.stringify(t);
|
|
@@ -17083,7 +17083,7 @@ var FC = {};
|
|
|
17083
17083
|
["success", "error"].forEach(function(n) {
|
|
17084
17084
|
e.on(n, function(e) {
|
|
17085
17085
|
var r = A.value;
|
|
17086
|
-
if (
|
|
17086
|
+
if (ee.value = n, r) {
|
|
17087
17087
|
var i, a, o = e.trigger, s = o.offsetLeft, c = o.offsetWidth, l = o.offsetTop, u = e.trigger.closest(".message-tree"), d = u ? u.scrollTop : 0;
|
|
17088
17088
|
(i = r.classList).remove.apply(i, [
|
|
17089
17089
|
"success",
|
|
@@ -17091,7 +17091,7 @@ var FC = {};
|
|
|
17091
17091
|
"is-hidden"
|
|
17092
17092
|
]), (a = r.classList).add.apply(a, [n, "is-show"]);
|
|
17093
17093
|
var f = s + c / 2 - 41, p = l - d - 40;
|
|
17094
|
-
r.style.setProperty("transform", `translate(${f}px, ${p}px`),
|
|
17094
|
+
r.style.setProperty("transform", `translate(${f}px, ${p}px`), z && clearTimeout(z), z = setTimeout(function() {
|
|
17095
17095
|
var e, t;
|
|
17096
17096
|
(e = r.classList).remove.apply(e, ["is-show"]), (t = r.classList).add.apply(t, ["is-hidden"]);
|
|
17097
17097
|
}, 2e3);
|
|
@@ -17269,7 +17269,7 @@ var FC = {};
|
|
|
17269
17269
|
refCopyStatus: A,
|
|
17270
17270
|
refCopyMsgDiv: N,
|
|
17271
17271
|
toolOperation: F,
|
|
17272
|
-
copyStatus:
|
|
17272
|
+
copyStatus: ee,
|
|
17273
17273
|
t: u,
|
|
17274
17274
|
resolveClassName: d,
|
|
17275
17275
|
copyValueItem: re
|
|
@@ -18726,7 +18726,7 @@ var aT = {};
|
|
|
18726
18726
|
}
|
|
18727
18727
|
var L = /* @__PURE__ */ new WeakMap(), R = {
|
|
18728
18728
|
beforeMount: function(e, t) {
|
|
18729
|
-
var n =
|
|
18729
|
+
var n = ee(t), r = n.trigger, i = n.showOnInit, a = te(n), o = null;
|
|
18730
18730
|
if (i && (0, w.nextTick)(function() {
|
|
18731
18731
|
V(e);
|
|
18732
18732
|
}), r === "hover") {
|
|
@@ -18758,13 +18758,13 @@ var aT = {};
|
|
|
18758
18758
|
});
|
|
18759
18759
|
},
|
|
18760
18760
|
updated: function(e, t) {
|
|
18761
|
-
L.get(e) && (L.get(e).opts =
|
|
18761
|
+
L.get(e) && (L.get(e).opts = ee(t));
|
|
18762
18762
|
},
|
|
18763
18763
|
unmounted: function(e) {
|
|
18764
18764
|
ie(e), L.delete(e);
|
|
18765
18765
|
}
|
|
18766
18766
|
};
|
|
18767
|
-
function
|
|
18767
|
+
function z() {
|
|
18768
18768
|
return {
|
|
18769
18769
|
arrow: !0,
|
|
18770
18770
|
disabled: !1,
|
|
@@ -18781,8 +18781,8 @@ var aT = {};
|
|
|
18781
18781
|
onHide: function() {}
|
|
18782
18782
|
};
|
|
18783
18783
|
}
|
|
18784
|
-
function
|
|
18785
|
-
var n =
|
|
18784
|
+
function ee(e) {
|
|
18785
|
+
var n = z();
|
|
18786
18786
|
return t(e.value) === "object" ? Object.assign(n, e.value) : n.content = e.value, n;
|
|
18787
18787
|
}
|
|
18788
18788
|
function B(e, t) {
|
|
@@ -21747,6 +21747,7 @@ var hE = (e) => {
|
|
|
21747
21747
|
timeout: i?.timeout ?? o
|
|
21748
21748
|
});
|
|
21749
21749
|
},
|
|
21750
|
+
deletePvFile: (t, n, r) => e.delete(`session/${t}/pv_files/`, { path: n }, r),
|
|
21750
21751
|
isResumeSession: (t, n) => e.get(`session/${t}/is_resume/`, void 0, n)
|
|
21751
21752
|
}), DE = (e) => ({
|
|
21752
21753
|
agent: gE(e),
|
|
@@ -21922,6 +21923,7 @@ var hE = (e) => {
|
|
|
21922
21923
|
return IE(r) ? (await e.http?.session.uploadPvFiles(t, n))?.results ?? [] : (await Promise.all(n.map((n) => e.http?.session.uploadFile(t, n)))).filter((e) => !!e);
|
|
21923
21924
|
},
|
|
21924
21925
|
getPvFileDownloadUrl: (t, n, r) => e.http?.session.getPvFileDownloadUrl(t, n, r),
|
|
21926
|
+
deletePvFile: (t, n) => e.http?.session.deletePvFile(t, n),
|
|
21925
21927
|
reset: () => {
|
|
21926
21928
|
t.value = [], n.value = null, r.value = 0, i.value = 0, a.value = 0, o.value = !1, s.value = !1, c.value = !1, l.value = !1, u.value = !1, f.value = !1, p.value = !1, m.value = !1;
|
|
21927
21929
|
}
|
|
@@ -24619,10 +24621,10 @@ function Yj(e) {
|
|
|
24619
24621
|
};
|
|
24620
24622
|
if (S) {
|
|
24621
24623
|
if (a) {
|
|
24622
|
-
var k = b === "y" ? hA : vA, A = b === "y" ? gA : _A, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === xA ? C[j] : w[j], L = v === xA ? -w[j] : -C[j], R = t.elements.arrow,
|
|
24624
|
+
var k = b === "y" ? hA : vA, A = b === "y" ? gA : _A, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === xA ? C[j] : w[j], L = v === xA ? -w[j] : -C[j], R = t.elements.arrow, z = p && R ? UA(R) : {
|
|
24623
24625
|
width: 0,
|
|
24624
24626
|
height: 0
|
|
24625
|
-
},
|
|
24627
|
+
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tj(), B = ee[k], te = ee[A], ne = $A(0, C[j], z[j]), re = y ? C[j] / 2 - F - ne - B - E.mainAxis : I - ne - B - E.mainAxis, V = y ? -C[j] / 2 + F + ne + te + E.mainAxis : L + ne + te + E.mainAxis, ie = t.elements.arrow && ZA(t.elements.arrow), H = ie ? b === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, U = D?.[b] ?? 0, ae = M + re - U - H, oe = M + V - U, W = $A(p ? BA(N, ae) : N, M, p ? zA(P, oe) : P);
|
|
24626
24628
|
S[b] = W, O[b] = W - M;
|
|
24627
24629
|
}
|
|
24628
24630
|
if (s) {
|
|
@@ -25197,16 +25199,16 @@ function cN(e, t) {
|
|
|
25197
25199
|
function R() {
|
|
25198
25200
|
c = !0;
|
|
25199
25201
|
}
|
|
25200
|
-
function
|
|
25202
|
+
function z() {
|
|
25201
25203
|
c = !1;
|
|
25202
25204
|
}
|
|
25203
|
-
function
|
|
25205
|
+
function ee() {
|
|
25204
25206
|
var e = k();
|
|
25205
|
-
e.addEventListener("mousedown", L, !0), e.addEventListener("touchend", L, mM), e.addEventListener("touchstart",
|
|
25207
|
+
e.addEventListener("mousedown", L, !0), e.addEventListener("touchend", L, mM), e.addEventListener("touchstart", z, mM), e.addEventListener("touchmove", R, mM);
|
|
25206
25208
|
}
|
|
25207
25209
|
function B() {
|
|
25208
25210
|
var e = k();
|
|
25209
|
-
e.removeEventListener("mousedown", L, !0), e.removeEventListener("touchend", L, mM), e.removeEventListener("touchstart",
|
|
25211
|
+
e.removeEventListener("mousedown", L, !0), e.removeEventListener("touchend", L, mM), e.removeEventListener("touchstart", z, mM), e.removeEventListener("touchmove", R, mM);
|
|
25210
25212
|
}
|
|
25211
25213
|
function te(e, t) {
|
|
25212
25214
|
re(e, function() {
|
|
@@ -25360,7 +25362,7 @@ function cN(e, t) {
|
|
|
25360
25362
|
return EM(x.querySelectorAll("[data-tippy-root]"));
|
|
25361
25363
|
}
|
|
25362
25364
|
function le(e) {
|
|
25363
|
-
y.clearDelayTimeouts(), e && N("onTrigger", [y, e]),
|
|
25365
|
+
y.clearDelayTimeouts(), e && N("onTrigger", [y, e]), ee();
|
|
25364
25366
|
var t = j(!0), n = T(), i = n[0], a = n[1];
|
|
25365
25367
|
BM.isTouch && i === "hold" && a && (t = a), t ? r = setTimeout(function() {
|
|
25366
25368
|
y.show();
|
|
@@ -25406,7 +25408,7 @@ function cN(e, t) {
|
|
|
25406
25408
|
function he() {
|
|
25407
25409
|
var e = y.state.isVisible, t = y.state.isDestroyed, n = !y.state.isEnabled, r = BM.isTouch && !y.props.touch, i = gM(y.props.duration, 0, qM.duration);
|
|
25408
25410
|
if (!(e || t || n || r) && !O().hasAttribute("disabled") && (N("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
25409
|
-
if (y.state.isVisible = !0, D() && (x.style.visibility = "visible"), M(),
|
|
25411
|
+
if (y.state.isVisible = !0, D() && (x.style.visibility = "visible"), M(), ee(), y.state.isMounted || (x.style.transition = "none"), D()) {
|
|
25410
25412
|
var a = A(), o = a.box, s = a.content;
|
|
25411
25413
|
PM([o, s], 0);
|
|
25412
25414
|
}
|
|
@@ -25900,7 +25902,7 @@ function EN(e, t = {}, n = {
|
|
|
25900
25902
|
mount: C,
|
|
25901
25903
|
state: a
|
|
25902
25904
|
};
|
|
25903
|
-
return n.mount && (r ? r.isMounted ? C() : R(C) : C()), r &&
|
|
25905
|
+
return n.mount && (r ? r.isMounted ? C() : R(C) : C()), r && ee(() => {
|
|
25904
25906
|
g();
|
|
25905
25907
|
}), O(t) || D(t) ? J(t, d, { immediate: !1 }) : O(t.content) && J(t.content, p, { immediate: !1 }), w;
|
|
25906
25908
|
}
|
|
@@ -26319,7 +26321,7 @@ var FN = ["src"], IN = /* @__PURE__ */ x({
|
|
|
26319
26321
|
};
|
|
26320
26322
|
return R(() => {
|
|
26321
26323
|
document.addEventListener("selectionchange", E), document.addEventListener("mouseup", T), document.addEventListener("mousedown", D), document.addEventListener("scroll", O, !0), window.addEventListener("resize", x), window.addEventListener("blur", x);
|
|
26322
|
-
}),
|
|
26324
|
+
}), ee(() => {
|
|
26323
26325
|
document.removeEventListener("selectionchange", E), document.removeEventListener("mouseup", T), document.removeEventListener("mousedown", D), document.removeEventListener("scroll", O, !0), window.removeEventListener("resize", x), window.removeEventListener("blur", x);
|
|
26324
26326
|
}), (t, n) => (B(), p(s, { to: "body" }, [y(l, { name: "ai-fade" }, {
|
|
26325
26327
|
default: Y(() => [r.value ? (B(), h("div", {
|
|
@@ -26398,7 +26400,7 @@ var FN = ["src"], IN = /* @__PURE__ */ x({
|
|
|
26398
26400
|
}), a.observe(e.value)), N(() => {
|
|
26399
26401
|
i();
|
|
26400
26402
|
});
|
|
26401
|
-
}),
|
|
26403
|
+
}), z(() => {
|
|
26402
26404
|
a?.disconnect();
|
|
26403
26405
|
}), {
|
|
26404
26406
|
visibleItems: r,
|
|
@@ -26731,7 +26733,7 @@ var FN = ["src"], IN = /* @__PURE__ */ x({
|
|
|
26731
26733
|
});
|
|
26732
26734
|
}), r.observe(c), s.addEventListener("scroll", f, { passive: !0 }), s.addEventListener("wheel", p, { passive: !0 }));
|
|
26733
26735
|
});
|
|
26734
|
-
}),
|
|
26736
|
+
}), z(() => {
|
|
26735
26737
|
r?.disconnect();
|
|
26736
26738
|
let t = se(e);
|
|
26737
26739
|
t && (t.removeEventListener("scroll", f), t.removeEventListener("wheel", p));
|
|
@@ -26835,7 +26837,7 @@ var fP = () => E(lP), pP = (() => {
|
|
|
26835
26837
|
await document[pP.exit]?.();
|
|
26836
26838
|
} catch {}
|
|
26837
26839
|
};
|
|
26838
|
-
return pP && (document.addEventListener(pP.change, a),
|
|
26840
|
+
return pP && (document.addEventListener(pP.change, a), z(() => {
|
|
26839
26841
|
document.removeEventListener(pP.change, a);
|
|
26840
26842
|
})), {
|
|
26841
26843
|
isSupported: t,
|
|
@@ -26853,7 +26855,7 @@ var fP = () => E(lP), pP = (() => {
|
|
|
26853
26855
|
let t = W(0);
|
|
26854
26856
|
R(() => {
|
|
26855
26857
|
window.addEventListener("keydown", i, !0);
|
|
26856
|
-
}),
|
|
26858
|
+
}), z(() => {
|
|
26857
26859
|
window.removeEventListener("keydown", i, !0);
|
|
26858
26860
|
});
|
|
26859
26861
|
let n = (t) => {
|
|
@@ -31134,7 +31136,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31134
31136
|
});
|
|
31135
31137
|
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
31136
31138
|
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
31137
|
-
}, L = I("//", "$"), R = I("/\\*", "\\*/"),
|
|
31139
|
+
}, L = I("//", "$"), R = I("/\\*", "\\*/"), z = I("#", "$"), ee = {
|
|
31138
31140
|
scope: "number",
|
|
31139
31141
|
begin: D,
|
|
31140
31142
|
relevance: 0
|
|
@@ -31188,11 +31190,11 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31188
31190
|
}
|
|
31189
31191
|
});
|
|
31190
31192
|
},
|
|
31191
|
-
HASH_COMMENT_MODE:
|
|
31193
|
+
HASH_COMMENT_MODE: z,
|
|
31192
31194
|
IDENT_RE: T,
|
|
31193
31195
|
MATCH_NOTHING_RE: w,
|
|
31194
31196
|
METHOD_GUARD: ie,
|
|
31195
|
-
NUMBER_MODE:
|
|
31197
|
+
NUMBER_MODE: ee,
|
|
31196
31198
|
NUMBER_RE: D,
|
|
31197
31199
|
PHRASAL_WORDS_MODE: F,
|
|
31198
31200
|
QUOTE_STRING_MODE: P,
|
|
@@ -31425,9 +31427,9 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31425
31427
|
code: r,
|
|
31426
31428
|
language: i
|
|
31427
31429
|
};
|
|
31428
|
-
|
|
31430
|
+
z("before:highlight", a);
|
|
31429
31431
|
let o = a.result ? a.result : v(a.language, a.code, n);
|
|
31430
|
-
return o.code = a.code,
|
|
31432
|
+
return o.code = a.code, z("after:highlight", o), o;
|
|
31431
31433
|
}
|
|
31432
31434
|
function v(e, n, i, a) {
|
|
31433
31435
|
let c = Object.create(null);
|
|
@@ -31632,7 +31634,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31632
31634
|
function w(e) {
|
|
31633
31635
|
let t = null, n = d(e);
|
|
31634
31636
|
if (u(n)) return;
|
|
31635
|
-
if (
|
|
31637
|
+
if (z("before:highlightElement", {
|
|
31636
31638
|
el: e,
|
|
31637
31639
|
language: n
|
|
31638
31640
|
}), e.dataset.highlighted) {
|
|
@@ -31652,7 +31654,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31652
31654
|
}, i.secondBest && (e.secondBest = {
|
|
31653
31655
|
language: i.secondBest.language,
|
|
31654
31656
|
relevance: i.secondBest.relevance
|
|
31655
|
-
}),
|
|
31657
|
+
}), z("after:highlightElement", {
|
|
31656
31658
|
el: e,
|
|
31657
31659
|
result: i,
|
|
31658
31660
|
text: r
|
|
@@ -31722,13 +31724,13 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31722
31724
|
let t = a.indexOf(e);
|
|
31723
31725
|
t !== -1 && a.splice(t, 1);
|
|
31724
31726
|
}
|
|
31725
|
-
function
|
|
31727
|
+
function z(e, t) {
|
|
31726
31728
|
let n = e;
|
|
31727
31729
|
a.forEach(function(e) {
|
|
31728
31730
|
e[n] && e[n](t);
|
|
31729
31731
|
});
|
|
31730
31732
|
}
|
|
31731
|
-
function
|
|
31733
|
+
function ee(e) {
|
|
31732
31734
|
return J("10.7.0", "highlightBlock will be removed entirely in v12.0"), J("10.7.0", "Please use highlightElement now."), w(e);
|
|
31733
31735
|
}
|
|
31734
31736
|
Object.assign(e, {
|
|
@@ -31736,7 +31738,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
31736
31738
|
highlightAuto: S,
|
|
31737
31739
|
highlightAll: k,
|
|
31738
31740
|
highlightElement: w,
|
|
31739
|
-
highlightBlock:
|
|
31741
|
+
highlightBlock: ee,
|
|
31740
31742
|
configure: T,
|
|
31741
31743
|
initHighlighting: E,
|
|
31742
31744
|
initHighlightingOnLoad: D,
|
|
@@ -40257,7 +40259,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
40257
40259
|
3: "title.function"
|
|
40258
40260
|
},
|
|
40259
40261
|
contains: [{ begin: /\(\)/ }, k]
|
|
40260
|
-
},
|
|
40262
|
+
}, z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", ee = {
|
|
40261
40263
|
match: [
|
|
40262
40264
|
/const|var|let/,
|
|
40263
40265
|
/\s+/,
|
|
@@ -40265,7 +40267,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
40265
40267
|
/\s*/,
|
|
40266
40268
|
/=\s*/,
|
|
40267
40269
|
/(async\s*)?/,
|
|
40268
|
-
t.lookahead(
|
|
40270
|
+
t.lookahead(z)
|
|
40269
40271
|
],
|
|
40270
40272
|
keywords: "async",
|
|
40271
40273
|
className: {
|
|
@@ -40310,7 +40312,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
40310
40312
|
match: d + t.lookahead(":"),
|
|
40311
40313
|
relevance: 0
|
|
40312
40314
|
},
|
|
40313
|
-
|
|
40315
|
+
ee,
|
|
40314
40316
|
{
|
|
40315
40317
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
40316
40318
|
keywords: "return throw case",
|
|
@@ -40320,7 +40322,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
40320
40322
|
e.REGEXP_MODE,
|
|
40321
40323
|
{
|
|
40322
40324
|
className: "function",
|
|
40323
|
-
begin:
|
|
40325
|
+
begin: z,
|
|
40324
40326
|
returnBegin: !0,
|
|
40325
40327
|
end: "\\s*=>",
|
|
40326
40328
|
contains: [{
|
|
@@ -47413,21 +47415,21 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47413
47415
|
I(e),
|
|
47414
47416
|
L(e)
|
|
47415
47417
|
]
|
|
47416
|
-
}),
|
|
47418
|
+
}), z = (e = "") => ({
|
|
47417
47419
|
begin: i(e, /"/),
|
|
47418
47420
|
end: i(/"/, e),
|
|
47419
47421
|
contains: [F(e), L(e)]
|
|
47420
|
-
}),
|
|
47422
|
+
}), ee = {
|
|
47421
47423
|
className: "string",
|
|
47422
47424
|
variants: [
|
|
47423
47425
|
R(),
|
|
47424
47426
|
R("#"),
|
|
47425
47427
|
R("##"),
|
|
47426
47428
|
R("###"),
|
|
47427
|
-
|
|
47428
|
-
|
|
47429
|
-
|
|
47430
|
-
|
|
47429
|
+
z(),
|
|
47430
|
+
z("#"),
|
|
47431
|
+
z("##"),
|
|
47432
|
+
z("###")
|
|
47431
47433
|
]
|
|
47432
47434
|
}, B = [e.BACKSLASH_ESCAPE, {
|
|
47433
47435
|
begin: /\[/,
|
|
@@ -47478,7 +47480,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47478
47480
|
contains: [
|
|
47479
47481
|
...j,
|
|
47480
47482
|
P,
|
|
47481
|
-
|
|
47483
|
+
ee
|
|
47482
47484
|
]
|
|
47483
47485
|
}] }
|
|
47484
47486
|
},
|
|
@@ -47547,7 +47549,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47547
47549
|
...k,
|
|
47548
47550
|
...j,
|
|
47549
47551
|
P,
|
|
47550
|
-
|
|
47552
|
+
ee,
|
|
47551
47553
|
...ie,
|
|
47552
47554
|
...H,
|
|
47553
47555
|
U
|
|
@@ -47578,7 +47580,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47578
47580
|
...O,
|
|
47579
47581
|
...j,
|
|
47580
47582
|
P,
|
|
47581
|
-
|
|
47583
|
+
ee,
|
|
47582
47584
|
...H,
|
|
47583
47585
|
U,
|
|
47584
47586
|
oe
|
|
@@ -47683,7 +47685,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47683
47685
|
}
|
|
47684
47686
|
]
|
|
47685
47687
|
};
|
|
47686
|
-
for (let e of
|
|
47688
|
+
for (let e of ee.variants) {
|
|
47687
47689
|
let t = e.contains.find((e) => e.label === "interpol");
|
|
47688
47690
|
t.keywords = D;
|
|
47689
47691
|
let n = [
|
|
@@ -47691,7 +47693,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47691
47693
|
...k,
|
|
47692
47694
|
...j,
|
|
47693
47695
|
P,
|
|
47694
|
-
|
|
47696
|
+
ee,
|
|
47695
47697
|
...ie
|
|
47696
47698
|
];
|
|
47697
47699
|
t.contains = [...n, {
|
|
@@ -47723,7 +47725,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
47723
47725
|
...k,
|
|
47724
47726
|
...j,
|
|
47725
47727
|
P,
|
|
47726
|
-
|
|
47728
|
+
ee,
|
|
47727
47729
|
...ie,
|
|
47728
47730
|
...H,
|
|
47729
47731
|
U,
|
|
@@ -48493,7 +48495,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
48493
48495
|
3: "title.function"
|
|
48494
48496
|
},
|
|
48495
48497
|
contains: [{ begin: /\(\)/ }, k]
|
|
48496
|
-
},
|
|
48498
|
+
}, z = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", ee = {
|
|
48497
48499
|
match: [
|
|
48498
48500
|
/const|var|let/,
|
|
48499
48501
|
/\s+/,
|
|
@@ -48501,7 +48503,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
48501
48503
|
/\s*/,
|
|
48502
48504
|
/=\s*/,
|
|
48503
48505
|
/(async\s*)?/,
|
|
48504
|
-
t.lookahead(
|
|
48506
|
+
t.lookahead(z)
|
|
48505
48507
|
],
|
|
48506
48508
|
keywords: "async",
|
|
48507
48509
|
className: {
|
|
@@ -48546,7 +48548,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
48546
48548
|
match: d + t.lookahead(":"),
|
|
48547
48549
|
relevance: 0
|
|
48548
48550
|
},
|
|
48549
|
-
|
|
48551
|
+
ee,
|
|
48550
48552
|
{
|
|
48551
48553
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
48552
48554
|
keywords: "return throw case",
|
|
@@ -48556,7 +48558,7 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
48556
48558
|
e.REGEXP_MODE,
|
|
48557
48559
|
{
|
|
48558
48560
|
className: "function",
|
|
48559
|
-
begin:
|
|
48561
|
+
begin: z,
|
|
48560
48562
|
returnBegin: !0,
|
|
48561
48563
|
end: "\\s*=>",
|
|
48562
48564
|
contains: [{
|
|
@@ -50840,9 +50842,9 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
50840
50842
|
C && !S && !w && O();
|
|
50841
50843
|
}, R = (e) => {
|
|
50842
50844
|
O(), oG(...l) !== 0 && r(e, SG(f(), ...sG(l)), n);
|
|
50843
|
-
}, ee = (e) => {
|
|
50844
|
-
e.preventDefault(), R(e.clipboardData);
|
|
50845
50845
|
}, z = (e) => {
|
|
50846
|
+
e.preventDefault(), R(e.clipboardData);
|
|
50847
|
+
}, ee = (e) => {
|
|
50846
50848
|
e.preventDefault(), u || (R(e.clipboardData), h(new mG().delete(...sG(l))));
|
|
50847
50849
|
}, B = (e) => {
|
|
50848
50850
|
e.preventDefault();
|
|
@@ -50862,8 +50864,8 @@ var bB = "::bk{", xB = ":/bk::", SB = (e) => {
|
|
|
50862
50864
|
}, re = () => {
|
|
50863
50865
|
w = !1;
|
|
50864
50866
|
};
|
|
50865
|
-
return T.addEventListener("selectionchange", L), n.addEventListener("keydown", A), n.addEventListener("input", j), n.addEventListener("beforeinput", M), n.addEventListener("compositionstart", N), n.addEventListener("compositionend", P), n.addEventListener("focus", F), n.addEventListener("blur", I), n.addEventListener("copy",
|
|
50866
|
-
y || (y = !0, d = wK, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", L), n.removeEventListener("keydown", A), n.removeEventListener("input", j), n.removeEventListener("beforeinput", M), n.removeEventListener("compositionstart", N), n.removeEventListener("compositionend", P), n.removeEventListener("focus", F), n.removeEventListener("blur", I), n.removeEventListener("copy",
|
|
50867
|
+
return T.addEventListener("selectionchange", L), n.addEventListener("keydown", A), n.addEventListener("input", j), n.addEventListener("beforeinput", M), n.addEventListener("compositionstart", N), n.addEventListener("compositionend", P), n.addEventListener("focus", F), n.addEventListener("blur", I), n.addEventListener("copy", z), n.addEventListener("cut", ee), n.addEventListener("paste", B), n.addEventListener("drop", te), n.addEventListener("dragstart", ne), n.addEventListener("dragend", re), () => {
|
|
50868
|
+
y || (y = !0, d = wK, n.contentEditable = a, n.role = m, n.ariaMultiLine = g, n.ariaReadOnly = _, n.style.whiteSpace = v, D._dispose(), T.removeEventListener("selectionchange", L), n.removeEventListener("keydown", A), n.removeEventListener("input", j), n.removeEventListener("beforeinput", M), n.removeEventListener("compositionstart", N), n.removeEventListener("compositionend", P), n.removeEventListener("focus", F), n.removeEventListener("blur", I), n.removeEventListener("copy", z), n.removeEventListener("cut", ee), n.removeEventListener("paste", B), n.removeEventListener("drop", te), n.removeEventListener("dragstart", ne), n.removeEventListener("dragend", re));
|
|
50867
50869
|
};
|
|
50868
50870
|
},
|
|
50869
50871
|
command: (e, ...t) => {
|
|
@@ -51834,7 +51836,7 @@ var ZK = ["src"], QK = {
|
|
|
51834
51836
|
};
|
|
51835
51837
|
return R(() => {
|
|
51836
51838
|
N(), r.value?.addEventListener("paste", M);
|
|
51837
|
-
}),
|
|
51839
|
+
}), ee(() => {
|
|
51838
51840
|
S(), _.command(DG, ""), v?.(), r.value?.removeEventListener("paste", M);
|
|
51839
51841
|
}), t({
|
|
51840
51842
|
appendMention: A,
|
|
@@ -51981,7 +51983,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
51981
51983
|
};
|
|
51982
51984
|
return R(() => {
|
|
51983
51985
|
window.addEventListener("keydown", l, !0);
|
|
51984
|
-
}),
|
|
51986
|
+
}), ee(() => {
|
|
51985
51987
|
window.removeEventListener("keydown", l, !0);
|
|
51986
51988
|
}), (t, n) => (B(), h("div", {
|
|
51987
51989
|
ref_key: "panelRef",
|
|
@@ -52323,7 +52325,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
52323
52325
|
keyword: E,
|
|
52324
52326
|
trigger: T,
|
|
52325
52327
|
groupItemLimit: d(() => u.menuGroupItemLimit)
|
|
52326
|
-
}), L = d(() => !!T.value && M.value), R = d(() => u.supportUpload || u.menuSources.length > 0),
|
|
52328
|
+
}), L = d(() => !!T.value && M.value), R = d(() => u.supportUpload || u.menuSources.length > 0), z = (e) => {
|
|
52327
52329
|
T.value = e.trigger, E.value = e.keyword;
|
|
52328
52330
|
}, te = () => {
|
|
52329
52331
|
r.value?.closeMenu?.();
|
|
@@ -52483,7 +52485,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
52483
52485
|
return;
|
|
52484
52486
|
}
|
|
52485
52487
|
document.removeEventListener("mousedown", Pe, !0);
|
|
52486
|
-
}),
|
|
52488
|
+
}), ee(() => {
|
|
52487
52489
|
document.removeEventListener("mousedown", Pe, !0);
|
|
52488
52490
|
});
|
|
52489
52491
|
let Fe = () => {
|
|
@@ -52544,7 +52546,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
52544
52546
|
"model-value": e.modelValue,
|
|
52545
52547
|
placeholder: v.value,
|
|
52546
52548
|
onKeydown: fe,
|
|
52547
|
-
onMenuChange:
|
|
52549
|
+
onMenuChange: z,
|
|
52548
52550
|
"onUpdate:modelValue": Me,
|
|
52549
52551
|
onUpload: Se
|
|
52550
52552
|
}, null, 8, ["model-value", "placeholder"]),
|
|
@@ -53455,7 +53457,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
53455
53457
|
}, u = () => {
|
|
53456
53458
|
c(), r("cancel");
|
|
53457
53459
|
};
|
|
53458
|
-
return
|
|
53460
|
+
return ee(() => {
|
|
53459
53461
|
c();
|
|
53460
53462
|
}), (e, t) => (B(), p(q(AN), M({
|
|
53461
53463
|
ref_key: "tippyRef",
|
|
@@ -53600,7 +53602,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
53600
53602
|
if (n.messageToolsStatus === AK.Disabled) return !1;
|
|
53601
53603
|
if (c.value && c.value === e) return c.value = null, !1;
|
|
53602
53604
|
};
|
|
53603
|
-
return
|
|
53605
|
+
return ee(() => {
|
|
53604
53606
|
_(), s.value = [];
|
|
53605
53607
|
}), (t, n) => (B(), h("div", DX, [
|
|
53606
53608
|
t.$slots.prepend ? (B(), h("div", OX, [U(t.$slots, "prepend")])) : m("v-if", !0),
|
|
@@ -54118,7 +54120,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
54118
54120
|
t !== void 0 && s();
|
|
54119
54121
|
}), R(() => {
|
|
54120
54122
|
i?.value && p(n.value.find((e) => e.is_active && e.has_confidence));
|
|
54121
|
-
}),
|
|
54123
|
+
}), ee(() => {
|
|
54122
54124
|
if (i?.value) for (let e of n.value) {
|
|
54123
54125
|
r.removeCustomTab?.(wZ(e)), r.removeCustomTab?.(TZ(e));
|
|
54124
54126
|
for (let t of Object.values(e.nodes ?? {})) r.removeCustomTab?.(EZ(e, t));
|
|
@@ -54639,7 +54641,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
54639
54641
|
payload: { interrupt_id: t.interrupt.id }
|
|
54640
54642
|
}, t.interrupt));
|
|
54641
54643
|
};
|
|
54642
|
-
return
|
|
54644
|
+
return ee(() => clearTimeout(A)), (t, r) => (B(), h("section", wQ, [
|
|
54643
54645
|
g("header", TQ, [g("div", EQ, [
|
|
54644
54646
|
r[0] ||= g("span", { class: "ai-tool-approval-card__title-bar" }, null, -1),
|
|
54645
54647
|
g("span", DQ, G(l.value.title || q(Q)("算法方案评审单")), 1),
|
|
@@ -54861,7 +54863,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
54861
54863
|
c(), !(!e || typeof ResizeObserver > "u") && (s = new ResizeObserver(([e]) => {
|
|
54862
54864
|
i.value = e.contentRect.height;
|
|
54863
54865
|
}), s.observe(e));
|
|
54864
|
-
}, { flush: "post" }),
|
|
54866
|
+
}, { flush: "post" }), ee(c), (t, i) => (B(), h("div", JQ, [g("div", {
|
|
54865
54867
|
class: P(["ai-collapsible-content-body", { "is-collapsed": o.value }]),
|
|
54866
54868
|
style: I(o.value ? { maxHeight: `${e.maxHeight}px` } : void 0)
|
|
54867
54869
|
}, [m(" 折叠由外层 max-height 实现,真实高度始终从这一层测量 "), g("div", {
|
|
@@ -55485,7 +55487,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55485
55487
|
appendTo: s.value
|
|
55486
55488
|
} : { ...i.commonTippyOptions });
|
|
55487
55489
|
wF({ tippyOptions: j });
|
|
55488
|
-
let { displayTabs: P, tabs: L, selectedTab: R, isCollapse:
|
|
55490
|
+
let { displayTabs: P, tabs: L, selectedTab: R, isCollapse: z, addCustomTab: te, ensureCustomTab: ne, removeCustomTab: re, selectCustomTab: ie, resetCustomTab: oe } = dP({
|
|
55489
55491
|
collapsed: A,
|
|
55490
55492
|
executionTabVisible: () => i.executionTabVisible,
|
|
55491
55493
|
onTabChange: async (e) => {
|
|
@@ -55539,7 +55541,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55539
55541
|
return;
|
|
55540
55542
|
}
|
|
55541
55543
|
e.some((e) => e.outputId === Ae.value) || je(e[0].outputId);
|
|
55542
|
-
}, { immediate: !0 }), J(
|
|
55544
|
+
}, { immediate: !0 }), J(z, (e) => {
|
|
55543
55545
|
e ? (se.value = "", fe.value = 0) : fe.value = me.value, O("collapseChange", e, fe.value);
|
|
55544
55546
|
});
|
|
55545
55547
|
let Me = d(() => i.messageStatus === jD.StopLoading ? jD.StopLoading : ye.value?.some((e) => e.messages.some((e) => e.id === "__loading__")) ? jD.Fetching : i.messageStatus), Ne = () => {
|
|
@@ -55596,7 +55598,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55596
55598
|
}, Je = () => {
|
|
55597
55599
|
he.value = !1;
|
|
55598
55600
|
};
|
|
55599
|
-
return
|
|
55601
|
+
return ee(() => {
|
|
55600
55602
|
oe(), typeof document < "u" && delete document.body.dataset.aiSize;
|
|
55601
55603
|
}), t({
|
|
55602
55604
|
selectedTab: R,
|
|
@@ -55619,7 +55621,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55619
55621
|
}, [e.chatLoading ? (B(), h("div", A$, [y(zJ)])) : (B(), p(q(Lw), M({
|
|
55620
55622
|
key: 1,
|
|
55621
55623
|
class: ["ai-chat-container-resize-layout", {
|
|
55622
|
-
"ai-is-collapse": q(
|
|
55624
|
+
"ai-is-collapse": q(z) || q(P).length === 0,
|
|
55623
55625
|
"ai-is-welcome": !e.messages?.length,
|
|
55624
55626
|
"is-resizing": he.value
|
|
55625
55627
|
}]
|
|
@@ -55628,7 +55630,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55628
55630
|
onResizing: qe
|
|
55629
55631
|
}), {
|
|
55630
55632
|
aside: Y(() => [y(l, { name: "ai-aside-content" }, {
|
|
55631
|
-
default: Y(() => [!q(
|
|
55633
|
+
default: Y(() => [!q(z) && q(P).length > 0 ? (B(), h("div", {
|
|
55632
55634
|
key: 0,
|
|
55633
55635
|
ref_key: "fullScreenRef",
|
|
55634
55636
|
ref: s,
|
|
@@ -55682,7 +55684,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55682
55684
|
}, null, 8, ["label", "name"]))), 128))]),
|
|
55683
55685
|
_: 1
|
|
55684
55686
|
}, 8, ["active"]),
|
|
55685
|
-
q(R)?.name === q("execution") && e.executionTabVisible !== !1 ? (B(), h(o, { key: 0 }, [q(
|
|
55687
|
+
q(R)?.name === q("execution") && e.executionTabVisible !== !1 ? (B(), h(o, { key: 0 }, [q(z) ? m("v-if", !0) : (B(), p(C$, {
|
|
55686
55688
|
key: 0,
|
|
55687
55689
|
"message-groups": q(be),
|
|
55688
55690
|
style: { height: "calc(100% - 40px)" },
|
|
@@ -55993,9 +55995,9 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
55993
55995
|
}
|
|
55994
55996
|
}, F = (e) => {
|
|
55995
55997
|
e.stopPropagation(), r.sessionBusinessManager ? (w || T(), w && w.handleTriggerClick(e)) : i("history-click", e);
|
|
55996
|
-
},
|
|
55998
|
+
}, z = () => {
|
|
55997
55999
|
i("help-click");
|
|
55998
|
-
},
|
|
56000
|
+
}, ee = (e) => {
|
|
55999
56001
|
e.stopPropagation(), w && w.isVisible() && w.hide(), l.value && (S.value ? l.value.hide() : l.value.show());
|
|
56000
56002
|
}, te = () => {
|
|
56001
56003
|
l.value?.hide(), ie();
|
|
@@ -56124,7 +56126,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
56124
56126
|
])) : m("v-if", !0)]),
|
|
56125
56127
|
default: Y(() => [g("span", {
|
|
56126
56128
|
class: "bkai-icon bkai-more",
|
|
56127
|
-
onClick:
|
|
56129
|
+
onClick: ee
|
|
56128
56130
|
})]),
|
|
56129
56131
|
_: 1
|
|
56130
56132
|
}, 512)) : m("v-if", !0)
|
|
@@ -56164,7 +56166,7 @@ var eJ = { class: "ai-input-attachment" }, tJ = { class: "ai-input-attachment-de
|
|
|
56164
56166
|
e.chatGroup?.enabled ? _e((B(), h("i", {
|
|
56165
56167
|
key: 2,
|
|
56166
56168
|
class: "bkai-icon bkai-zhushou",
|
|
56167
|
-
onClick:
|
|
56169
|
+
onClick: z
|
|
56168
56170
|
}, null, 512)), [[q(o), {
|
|
56169
56171
|
content: q(oD)("转人工"),
|
|
56170
56172
|
boundary: "parent"
|
|
@@ -57380,7 +57382,25 @@ function x1(e) {
|
|
|
57380
57382
|
});
|
|
57381
57383
|
let u = (e) => {
|
|
57382
57384
|
c.value = e;
|
|
57383
|
-
}, d =
|
|
57385
|
+
}, d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
57386
|
+
if (e) {
|
|
57387
|
+
if ("path" in e && e.path) return e.path;
|
|
57388
|
+
if ("id" in e && e.id) return e.id;
|
|
57389
|
+
}
|
|
57390
|
+
}, p = async (e, t) => {
|
|
57391
|
+
try {
|
|
57392
|
+
await n.value.session.deletePvFile(e, t);
|
|
57393
|
+
} catch (e) {
|
|
57394
|
+
a(e, "Failed to delete uploaded file");
|
|
57395
|
+
}
|
|
57396
|
+
}, m = (e, t, n) => {
|
|
57397
|
+
t.forEach((t, r) => {
|
|
57398
|
+
if (!d.has(t)) return;
|
|
57399
|
+
d.delete(t);
|
|
57400
|
+
let i = f(n[r]);
|
|
57401
|
+
i && p(e, i);
|
|
57402
|
+
});
|
|
57403
|
+
}, h = async (e, a = {}) => {
|
|
57384
57404
|
if (!r.value || !n.value) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
|
|
57385
57405
|
let o = n.value.session.current?.value?.sessionCode;
|
|
57386
57406
|
if (!o) throw Error("[ChatBot] Cannot send message: no active session");
|
|
@@ -57390,13 +57410,17 @@ function x1(e) {
|
|
|
57390
57410
|
...a,
|
|
57391
57411
|
...s ? { property: s } : {}
|
|
57392
57412
|
});
|
|
57393
|
-
},
|
|
57413
|
+
}, g = async (e) => {
|
|
57394
57414
|
let t = n.value?.session.current?.value?.sessionCode;
|
|
57395
57415
|
if (!t) throw Error("[ChatBot] Cannot upload: no active session");
|
|
57396
|
-
|
|
57397
|
-
|
|
57398
|
-
|
|
57399
|
-
|
|
57416
|
+
try {
|
|
57417
|
+
let r = await n.value.session.uploadFiles(t, e);
|
|
57418
|
+
if (!r?.length) throw Error("[ChatBot] Upload failed: empty response");
|
|
57419
|
+
return m(t, e, r), r;
|
|
57420
|
+
} catch (t) {
|
|
57421
|
+
throw e.forEach((e) => d.delete(e)), t;
|
|
57422
|
+
}
|
|
57423
|
+
}, _ = async (e) => {
|
|
57400
57424
|
let t = n.value?.session.current?.value?.sessionCode;
|
|
57401
57425
|
if (!t) throw Error("[ChatBot] Cannot resolve artifact URL: no active session");
|
|
57402
57426
|
let r = await n.value.session.getPvFileDownloadUrl(t, e.outputId);
|
|
@@ -57404,7 +57428,16 @@ function x1(e) {
|
|
|
57404
57428
|
download_url: r?.download_url,
|
|
57405
57429
|
preview_url: r?.preview_url
|
|
57406
57430
|
};
|
|
57407
|
-
},
|
|
57431
|
+
}, v = async (e) => {
|
|
57432
|
+
let t = e.outputId || e.id;
|
|
57433
|
+
if (e.file && !t) {
|
|
57434
|
+
d.add(e.file);
|
|
57435
|
+
return;
|
|
57436
|
+
}
|
|
57437
|
+
e.file && d.delete(e.file);
|
|
57438
|
+
let r = n.value?.session.current?.value?.sessionCode;
|
|
57439
|
+
!t || !r || await p(r, t);
|
|
57440
|
+
}, y = async (e, t, n) => {
|
|
57408
57441
|
try {
|
|
57409
57442
|
if (n?.payload && o) {
|
|
57410
57443
|
c.value = [[]], l.value = "", await o(e, n);
|
|
@@ -57416,13 +57449,13 @@ function x1(e) {
|
|
|
57416
57449
|
...Object.keys(r).length ? { extra: r } : {},
|
|
57417
57450
|
...i ? { docSchema: i } : {}
|
|
57418
57451
|
};
|
|
57419
|
-
await
|
|
57452
|
+
await h(e, Object.keys(a).length ? { property: a } : {});
|
|
57420
57453
|
} catch (e) {
|
|
57421
57454
|
a(e, "Failed to send message");
|
|
57422
57455
|
}
|
|
57423
|
-
},
|
|
57424
|
-
await
|
|
57425
|
-
},
|
|
57456
|
+
}, b = async () => {
|
|
57457
|
+
await x();
|
|
57458
|
+
}, x = async () => {
|
|
57426
57459
|
if (!r.value) {
|
|
57427
57460
|
console.error("[ChatBot] Cannot stop generation: chatBusinessManager not initialized");
|
|
57428
57461
|
return;
|
|
@@ -57437,12 +57470,13 @@ function x1(e) {
|
|
|
57437
57470
|
userInput: c,
|
|
57438
57471
|
cite: l,
|
|
57439
57472
|
handleUpdateModelValue: u,
|
|
57440
|
-
doSendMessage:
|
|
57441
|
-
handleSendMessage:
|
|
57442
|
-
handleArtifactClick:
|
|
57443
|
-
|
|
57444
|
-
|
|
57445
|
-
|
|
57473
|
+
doSendMessage: h,
|
|
57474
|
+
handleSendMessage: y,
|
|
57475
|
+
handleArtifactClick: _,
|
|
57476
|
+
handleDeleteFile: v,
|
|
57477
|
+
handleUpload: g,
|
|
57478
|
+
handleStopSending: b,
|
|
57479
|
+
stopGeneration: x
|
|
57446
57480
|
};
|
|
57447
57481
|
}
|
|
57448
57482
|
//#endregion
|
|
@@ -57838,15 +57872,15 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57838
57872
|
set: () => {}
|
|
57839
57873
|
}), S = d(() => L.value?.selectedLlmCode.value), w = () => {
|
|
57840
57874
|
g.value?.focus?.();
|
|
57841
|
-
}, { reportError: T, managerErrorBridge: E } = p1(s, { errorToast: () => r.errorToast }), { chatHelper: D, isStandaloneMode: k, isInitialized: A, isReady: j, initError: M, whenReady: N, chatBusinessManager: L, sessionBusinessManager: R, shortcutManager:
|
|
57875
|
+
}, { reportError: T, managerErrorBridge: E } = p1(s, { errorToast: () => r.errorToast }), { chatHelper: D, isStandaloneMode: k, isInitialized: A, isReady: j, initError: M, whenReady: N, chatBusinessManager: L, sessionBusinessManager: R, shortcutManager: z } = o1({
|
|
57842
57876
|
props: r,
|
|
57843
57877
|
emit: s,
|
|
57844
57878
|
reportError: T,
|
|
57845
57879
|
managerErrorBridge: E
|
|
57846
|
-
}), { handleInterruptResume:
|
|
57880
|
+
}), { handleInterruptResume: ee, resumeUserQuestionWithInput: te } = b1({
|
|
57847
57881
|
chatHelper: D,
|
|
57848
57882
|
reportError: T
|
|
57849
|
-
}), { userInput: ne, cite: re, handleUpdateModelValue: ie, doSendMessage: H, handleSendMessage: ae, handleUpload: oe,
|
|
57883
|
+
}), { userInput: ne, cite: re, handleUpdateModelValue: ie, doSendMessage: H, handleSendMessage: ae, handleUpload: oe, handleDeleteFile: W, handleArtifactClick: G, handleStopSending: K, stopGeneration: se } = x1({
|
|
57850
57884
|
emit: s,
|
|
57851
57885
|
chatHelper: D,
|
|
57852
57886
|
chatBusinessManager: L,
|
|
@@ -57854,65 +57888,65 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57854
57888
|
reportError: T,
|
|
57855
57889
|
resumeUserQuestionWithInput: te,
|
|
57856
57890
|
selectedShortcut: b
|
|
57857
|
-
}), { handleSelectShortcut:
|
|
57891
|
+
}), { handleSelectShortcut: ce, handleCloseShortcut: le, handleShortcutSubmit: ue, selectShortcutWithText: de, getShortcutFromMessage: pe, buildShortcutProperty: me, sendShortcutDirectly: he } = w1({
|
|
57858
57892
|
props: r,
|
|
57859
57893
|
emit: s,
|
|
57860
57894
|
chatHelper: D,
|
|
57861
|
-
shortcutManager:
|
|
57895
|
+
shortcutManager: z,
|
|
57862
57896
|
doSendMessage: H,
|
|
57863
57897
|
reportError: T,
|
|
57864
57898
|
selectedShortcut: b
|
|
57865
|
-
}), { messageStatus:
|
|
57899
|
+
}), { messageStatus: ge, messageToolsStatus: _e, effectiveMessageTools: ve, effectiveUpdateTools: ye, effectiveUserMessageTools: be, messages: xe, isMessagesLoading: Se, isGenerating: Ce, currentSession: we, isWelcomeState: Te, openingRemark: Ee, effectiveMenuSources: De, effectiveSupportUpload: Oe, chatbotStyle: ke, filteredShortcuts: Ae } = d1({
|
|
57866
57900
|
props: r,
|
|
57867
57901
|
chatHelper: D,
|
|
57868
57902
|
chatBusinessManager: L,
|
|
57869
57903
|
sessionBusinessManager: R,
|
|
57870
|
-
shortcutManager:
|
|
57904
|
+
shortcutManager: z,
|
|
57871
57905
|
isStandaloneMode: k,
|
|
57872
57906
|
isInitialized: A,
|
|
57873
57907
|
selectedShortcut: b
|
|
57874
|
-
}), { handleAgentAction:
|
|
57908
|
+
}), { handleAgentAction: je, handleAgentFeedback: Me, handleUserAction: Ne, handleUserInputConfirm: Pe, handleUserShortcutConfirm: Fe, handleStopStreaming: Ie } = T1({
|
|
57875
57909
|
emit: s,
|
|
57876
57910
|
chatHelper: D,
|
|
57877
57911
|
chatBusinessManager: L,
|
|
57878
57912
|
cite: re,
|
|
57879
57913
|
focusInput: w,
|
|
57880
|
-
getShortcutFromMessage:
|
|
57881
|
-
buildShortcutProperty:
|
|
57914
|
+
getShortcutFromMessage: pe,
|
|
57915
|
+
buildShortcutProperty: me,
|
|
57882
57916
|
getRequestOptions: () => r.requestOptions,
|
|
57883
57917
|
reportError: T,
|
|
57884
|
-
stopGeneration:
|
|
57885
|
-
}),
|
|
57918
|
+
stopGeneration: se
|
|
57919
|
+
}), Le = d(() => !A.value || Se.value), Re = d(() => {
|
|
57886
57920
|
if (r.useAgentName) return D.value?.agent.info.value?.agentName || void 0;
|
|
57887
|
-
}),
|
|
57921
|
+
}), ze = d(() => {
|
|
57888
57922
|
if (r.enableModelSelect === !1) return;
|
|
57889
57923
|
let e = L.value?.models.value ?? [];
|
|
57890
57924
|
return e.length > 0 ? e : void 0;
|
|
57891
|
-
}),
|
|
57925
|
+
}), Be = d({
|
|
57892
57926
|
get: () => L.value?.selectedModelName.value ?? "",
|
|
57893
57927
|
set: (e) => {
|
|
57894
57928
|
L.value?.setSelectedModelByName(e);
|
|
57895
57929
|
}
|
|
57896
|
-
}),
|
|
57930
|
+
}), Ve = (e) => {
|
|
57897
57931
|
L.value?.setSelectedModel(e);
|
|
57898
57932
|
};
|
|
57899
57933
|
J(() => r.models, (e) => {
|
|
57900
57934
|
r.enableModelSelect === !1 || !L.value || e?.length && L.value.setModels(e);
|
|
57901
57935
|
});
|
|
57902
|
-
let { handleConfirmShare:
|
|
57936
|
+
let { handleConfirmShare: He } = C1({
|
|
57903
57937
|
emit: s,
|
|
57904
57938
|
chatHelper: D,
|
|
57905
57939
|
isStandaloneMode: k
|
|
57906
|
-
}),
|
|
57940
|
+
}), Ue = (e, t) => {
|
|
57907
57941
|
s("execution-panel-change", e, t);
|
|
57908
|
-
},
|
|
57942
|
+
}, We = async (e) => {
|
|
57909
57943
|
if (r.onCustomTabChange) return r.onCustomTabChange(e);
|
|
57910
57944
|
let t = e.data?.props;
|
|
57911
57945
|
if (t?.task_id != null && t?.node_id) return D.value?.message.getFlowAgentTaskNodeInfo(t.task_id, t.node_id);
|
|
57912
57946
|
};
|
|
57913
57947
|
return t({
|
|
57914
57948
|
sendMessage: (e) => ae(e, [[]]),
|
|
57915
|
-
stopGeneration:
|
|
57949
|
+
stopGeneration: se,
|
|
57916
57950
|
switchSession: async (e) => {
|
|
57917
57951
|
if (!R.value) {
|
|
57918
57952
|
console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
|
|
@@ -57924,9 +57958,9 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57924
57958
|
T(e, "Failed to switch session");
|
|
57925
57959
|
}
|
|
57926
57960
|
},
|
|
57927
|
-
messages:
|
|
57928
|
-
currentSession:
|
|
57929
|
-
isGenerating:
|
|
57961
|
+
messages: xe,
|
|
57962
|
+
currentSession: we,
|
|
57963
|
+
isGenerating: Ce,
|
|
57930
57964
|
get isReady() {
|
|
57931
57965
|
return j.value;
|
|
57932
57966
|
},
|
|
@@ -57939,16 +57973,16 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57939
57973
|
enterShareMode: () => p.value?.enterShareMode(),
|
|
57940
57974
|
exitShareMode: () => p.value?.exitShareMode(),
|
|
57941
57975
|
selectShortcut: (e, t) => {
|
|
57942
|
-
|
|
57976
|
+
de(e, t);
|
|
57943
57977
|
},
|
|
57944
|
-
sendShortcut: (e, t) =>
|
|
57978
|
+
sendShortcut: (e, t) => he(e, t),
|
|
57945
57979
|
updateAgentInfo: async () => {
|
|
57946
57980
|
let e = D.value;
|
|
57947
57981
|
if (!e) return null;
|
|
57948
57982
|
try {
|
|
57949
57983
|
await e.agent.getAgentInfo();
|
|
57950
57984
|
let t = e.agent.info.value ?? null;
|
|
57951
|
-
return t?.conversationSettings?.commands &&
|
|
57985
|
+
return t?.conversationSettings?.commands && z.value?.setAgentShortcuts(t.conversationSettings.commands), t;
|
|
57952
57986
|
} catch (e) {
|
|
57953
57987
|
return T(e, "Failed to update agentInfo"), null;
|
|
57954
57988
|
}
|
|
@@ -57960,9 +57994,9 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57960
57994
|
class: P([
|
|
57961
57995
|
"ai-chatbot",
|
|
57962
57996
|
r.extCls,
|
|
57963
|
-
{ "welcome-state": q(
|
|
57997
|
+
{ "welcome-state": q(Te) }
|
|
57964
57998
|
]),
|
|
57965
|
-
style: I(q(
|
|
57999
|
+
style: I(q(ke))
|
|
57966
58000
|
}, [y(q(F$), {
|
|
57967
58001
|
ref_key: "chatContainerRef",
|
|
57968
58002
|
ref: p,
|
|
@@ -57972,52 +58006,53 @@ var E1 = /* @__PURE__ */ x({
|
|
|
57972
58006
|
"onUpdate:cite": t[1] ||= (e) => O(re) ? re.value = e : null,
|
|
57973
58007
|
"render-mode": x.value,
|
|
57974
58008
|
"onUpdate:renderMode": t[2] ||= (e) => x.value = e,
|
|
57975
|
-
"selected-model":
|
|
57976
|
-
"onUpdate:selectedModel": t[3] ||= (e) =>
|
|
58009
|
+
"selected-model": Be.value,
|
|
58010
|
+
"onUpdate:selectedModel": t[3] ||= (e) => Be.value = e,
|
|
57977
58011
|
"selected-shortcut": b.value,
|
|
57978
58012
|
"onUpdate:selectedShortcut": t[4] ||= (e) => b.value = e,
|
|
57979
|
-
"chat-loading":
|
|
58013
|
+
"chat-loading": Le.value,
|
|
57980
58014
|
"common-tippy-options": v.value,
|
|
57981
58015
|
"execution-tab-visible": r.executionTabVisible,
|
|
57982
58016
|
"get-side-render-component": r.getSideRenderComponent,
|
|
57983
58017
|
"get-side-tab-render-component": r.getSideTabRenderComponent,
|
|
57984
|
-
"message-status": q(
|
|
57985
|
-
"message-tools": q(
|
|
57986
|
-
"message-tools-status": q(
|
|
57987
|
-
"menu-sources": q(
|
|
57988
|
-
messages: q(
|
|
58018
|
+
"message-status": q(ge),
|
|
58019
|
+
"message-tools": q(ve),
|
|
58020
|
+
"message-tools-status": q(_e),
|
|
58021
|
+
"menu-sources": q(De),
|
|
58022
|
+
messages: q(xe),
|
|
57989
58023
|
"model-value": q(ne),
|
|
57990
|
-
models:
|
|
57991
|
-
"on-agent-action": q(
|
|
57992
|
-
"on-agent-feedback": q(
|
|
57993
|
-
"on-artifact-click": q(
|
|
57994
|
-
"on-custom-tab-change":
|
|
57995
|
-
"on-interrupt-resume": q(
|
|
58024
|
+
models: ze.value,
|
|
58025
|
+
"on-agent-action": q(je),
|
|
58026
|
+
"on-agent-feedback": q(Me),
|
|
58027
|
+
"on-artifact-click": q(G),
|
|
58028
|
+
"on-custom-tab-change": We,
|
|
58029
|
+
"on-interrupt-resume": q(ee),
|
|
57996
58030
|
"on-send-message": q(ae),
|
|
57997
|
-
"on-stop-sending": q(
|
|
58031
|
+
"on-stop-sending": q(K),
|
|
57998
58032
|
"on-upload": q(oe),
|
|
57999
|
-
"on-user-action": q(
|
|
58000
|
-
"on-user-input-confirm": q(
|
|
58001
|
-
"on-user-shortcut-confirm": q(
|
|
58002
|
-
"opening-remark": q(
|
|
58033
|
+
"on-user-action": q(Ne),
|
|
58034
|
+
"on-user-input-confirm": q(Pe),
|
|
58035
|
+
"on-user-shortcut-confirm": q(Fe),
|
|
58036
|
+
"opening-remark": q(Ee),
|
|
58003
58037
|
placeholder: r.placeholder,
|
|
58004
58038
|
"resize-props": a.value,
|
|
58005
58039
|
"shortcut-id": b.value?.id,
|
|
58006
|
-
shortcuts: q(
|
|
58040
|
+
shortcuts: q(Ae),
|
|
58007
58041
|
size: r.size,
|
|
58008
58042
|
timezone: r.timezone,
|
|
58009
|
-
"support-upload": q(
|
|
58010
|
-
"update-tools": q(
|
|
58011
|
-
"user-message-tools": q(
|
|
58012
|
-
"welcome-title":
|
|
58013
|
-
onCollapseChange:
|
|
58014
|
-
onConfirmShare: q(
|
|
58015
|
-
|
|
58016
|
-
|
|
58017
|
-
|
|
58018
|
-
|
|
58019
|
-
|
|
58020
|
-
|
|
58043
|
+
"support-upload": q(Oe),
|
|
58044
|
+
"update-tools": q(ye),
|
|
58045
|
+
"user-message-tools": q(be),
|
|
58046
|
+
"welcome-title": Re.value,
|
|
58047
|
+
onCollapseChange: Ue,
|
|
58048
|
+
onConfirmShare: q(He),
|
|
58049
|
+
onDeleteFile: q(W),
|
|
58050
|
+
onDeleteShortcut: q(le),
|
|
58051
|
+
onModelChange: Ve,
|
|
58052
|
+
onSelectShortcut: q(ce),
|
|
58053
|
+
onShortcutClose: q(le),
|
|
58054
|
+
onShortcutSubmit: q(ue),
|
|
58055
|
+
onStopStreaming: q(Ie),
|
|
58021
58056
|
"onUpdate:modelValue": q(ie)
|
|
58022
58057
|
}, _({
|
|
58023
58058
|
message: Y(({ message: t, messageToolsStatus: n, onInterruptResume: r }) => [m(" 消费方提供了 #message slot 时,优先使用消费方的渲染 "), q(c).message ? U(e.$slots, "message", {
|
|
@@ -58027,12 +58062,12 @@ var E1 = /* @__PURE__ */ x({
|
|
|
58027
58062
|
onInterruptResume: r
|
|
58028
58063
|
}) : (B(), h(o, { key: 1 }, [m(" 否则使用默认的 MessageRender "), y(q(c$), {
|
|
58029
58064
|
message: t,
|
|
58030
|
-
"message-tools": q(
|
|
58065
|
+
"message-tools": q(be),
|
|
58031
58066
|
"message-tools-status": n,
|
|
58032
|
-
"on-action": (e) => q(
|
|
58033
|
-
"on-input-confirm": (e, n) => q(
|
|
58067
|
+
"on-action": (e) => q(Ne)(e, t),
|
|
58068
|
+
"on-input-confirm": (e, n) => q(Pe)(t, e, n),
|
|
58034
58069
|
"on-interrupt-resume": r,
|
|
58035
|
-
"on-shortcut-confirm": (e) => q(
|
|
58070
|
+
"on-shortcut-confirm": (e) => q(Fe)(t, e),
|
|
58036
58071
|
"tippy-options": v.value
|
|
58037
58072
|
}, _({ _: 2 }, [e.$slots.codeHeader ? {
|
|
58038
58073
|
name: "codeHeader",
|
|
@@ -58053,7 +58088,7 @@ var E1 = /* @__PURE__ */ x({
|
|
|
58053
58088
|
name: "welcome",
|
|
58054
58089
|
fn: Y((t) => [U(e.$slots, "welcome", F(C(t)))]),
|
|
58055
58090
|
key: "0"
|
|
58056
|
-
} : 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.menu-sources.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.resize-props.shortcut-id.shortcuts.size.timezone.support-upload.update-tools.user-message-tools.welcome-title.onConfirmShare.onDeleteShortcut.onSelectShortcut.onShortcutClose.onShortcutSubmit.onStopStreaming.onUpdate:modelValue".split("."))], 6));
|
|
58091
|
+
} : 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.menu-sources.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.resize-props.shortcut-id.shortcuts.size.timezone.support-upload.update-tools.user-message-tools.welcome-title.onConfirmShare.onDeleteFile.onDeleteShortcut.onSelectShortcut.onShortcutClose.onShortcutSubmit.onStopStreaming.onUpdate:modelValue".split("."))], 6));
|
|
58057
58092
|
}
|
|
58058
58093
|
});
|
|
58059
58094
|
//#endregion
|
|
@@ -58247,7 +58282,7 @@ function P1(e) {
|
|
|
58247
58282
|
}, c = () => {
|
|
58248
58283
|
i.forEach((e) => e()), i.length = 0;
|
|
58249
58284
|
};
|
|
58250
|
-
return a(),
|
|
58285
|
+
return a(), ee(() => {
|
|
58251
58286
|
c();
|
|
58252
58287
|
}), {
|
|
58253
58288
|
forwardToManager: o,
|
|
@@ -58354,7 +58389,7 @@ function F1(e) {
|
|
|
58354
58389
|
await v("init", async () => {
|
|
58355
58390
|
await E(), await P();
|
|
58356
58391
|
});
|
|
58357
|
-
}, I = d(() => o.isCompressed.value),
|
|
58392
|
+
}, I = d(() => o.isCompressed.value), z = d(() => w.value), ee = d(() => D.message.list.value.length === 0);
|
|
58358
58393
|
J(() => S.value, (e) => {
|
|
58359
58394
|
e && (h(), g({
|
|
58360
58395
|
apiName: "init",
|
|
@@ -58416,10 +58451,10 @@ function F1(e) {
|
|
|
58416
58451
|
nimbusMinimized: c,
|
|
58417
58452
|
normalizedUrl: a,
|
|
58418
58453
|
agentInfo: C,
|
|
58419
|
-
agentName:
|
|
58454
|
+
agentName: z,
|
|
58420
58455
|
currentSession: T,
|
|
58421
58456
|
isCompressed: I,
|
|
58422
|
-
isWelcomeState:
|
|
58457
|
+
isWelcomeState: ee,
|
|
58423
58458
|
handleError: y,
|
|
58424
58459
|
reportSdkError: g,
|
|
58425
58460
|
ensureSessionReady: F,
|
|
@@ -58462,7 +58497,7 @@ function L1(e, t = !1) {
|
|
|
58462
58497
|
};
|
|
58463
58498
|
return R(() => {
|
|
58464
58499
|
window.addEventListener("resize", p), p();
|
|
58465
|
-
}),
|
|
58500
|
+
}), ee(() => {
|
|
58466
58501
|
window.removeEventListener("resize", p);
|
|
58467
58502
|
}), {
|
|
58468
58503
|
nimbusWidth: 48,
|
|
@@ -59420,17 +59455,17 @@ function f0(e = {}, t) {
|
|
|
59420
59455
|
})) : (f.value = window.innerHeight - o - s, p.value = c.value - s, m.value = n, h.value = o), _.value = !_.value;
|
|
59421
59456
|
}, I = (e, t) => {
|
|
59422
59457
|
p.value = e, f.value = t, v.value = e - (window.innerWidth - m.value);
|
|
59423
|
-
},
|
|
59458
|
+
}, z = (e, t) => {
|
|
59424
59459
|
m.value = Math.max(r, Math.min(e, g.value)), h.value = Math.max(i, t);
|
|
59425
|
-
},
|
|
59426
|
-
I(e, t),
|
|
59460
|
+
}, ee = (e, t, n, r) => {
|
|
59461
|
+
I(e, t), z(n, r);
|
|
59427
59462
|
}, B = () => {
|
|
59428
59463
|
v.value = p.value - (window.innerWidth - m.value);
|
|
59429
59464
|
}, te = async (e, t, n, r, i = "expand") => {
|
|
59430
59465
|
let a = t.x !== e.x, o = t.width !== e.width, s = async () => {
|
|
59431
59466
|
a && (I(t.x, t.y), await N());
|
|
59432
59467
|
}, c = async () => {
|
|
59433
|
-
r?.onBeforeSizeChange?.(), o && (
|
|
59468
|
+
r?.onBeforeSizeChange?.(), o && (z(t.width, t.height), await N());
|
|
59434
59469
|
};
|
|
59435
59470
|
try {
|
|
59436
59471
|
if (i === "expand") {
|
|
@@ -59464,8 +59499,8 @@ function f0(e = {}, t) {
|
|
|
59464
59499
|
handleResizeStop: M,
|
|
59465
59500
|
toggleCompression: F,
|
|
59466
59501
|
updatePosition: I,
|
|
59467
|
-
updateSize:
|
|
59468
|
-
updatePositionAndSize:
|
|
59502
|
+
updateSize: z,
|
|
59503
|
+
updatePositionAndSize: ee,
|
|
59469
59504
|
expandForSidePanel: async (e, t) => {
|
|
59470
59505
|
if (T.value) return;
|
|
59471
59506
|
let n = D();
|
|
@@ -59500,7 +59535,7 @@ function f0(e = {}, t) {
|
|
|
59500
59535
|
C = !1, await te(t, s, n, e, "collapse");
|
|
59501
59536
|
},
|
|
59502
59537
|
abortSidePanelSequence: () => {
|
|
59503
|
-
S += 1, T.value = !1, C = !1, y && (I(y.x, y.y),
|
|
59538
|
+
S += 1, T.value = !1, C = !1, y && (I(y.x, y.y), z(y.width, y.height)), B(), w = D();
|
|
59504
59539
|
}
|
|
59505
59540
|
};
|
|
59506
59541
|
}
|
|
@@ -59850,7 +59885,7 @@ var p0 = { class: "draggable-container-content" }, m0 = /* @__PURE__ */ Te(/* @_
|
|
|
59850
59885
|
let r = e, i = n, a = ce(), { chatHelper: o, componentManager: c, modelSelection: l, sessionBusinessManager: u, shareBusinessManager: f, shortcutManager: h, forwarders: v, forwardToManager: b, chatBotRef: x, draggableContainerRef: S, panelVisible: w, nimbusMinimized: T, normalizedUrl: E, agentName: D, currentSession: k, isCompressed: A, isWelcomeState: j, handleError: M, reportSdkError: N, ensureSessionReady: L, updateAgentInfo: R } = F1({
|
|
59851
59886
|
props: r,
|
|
59852
59887
|
emit: i
|
|
59853
|
-
}),
|
|
59888
|
+
}), z = d(() => l.selectedLlmCode.value), { show: ee, hide: te, handleShow: ne, handleClose: re, handleNimbusClick: V, handleDragging: ie, handleResizing: H, handleDragStop: ae, handleResizeStop: oe, handleToggleCompression: W, handleCompressionChange: G, handleExecutionPanelChange: K, handleToggleAside: se, handleAsideCollapsedUpdate: le, asideCollapsed: ue, sendMessage: de, handleReceiveStart: fe, handleReceiveText: pe, handleReceiveEnd: me, handleStop: J, stopGeneration: he, setCiteText: ge, focusInput: _e, selectShortcut: ve, sendShortcut: ye, getChatHelper: be, updatePosition: xe, updateSize: Se, updatePositionAndSize: Ce, handleShortcutClick: we } = z1({
|
|
59854
59889
|
componentManager: c,
|
|
59855
59890
|
chatBotRef: x,
|
|
59856
59891
|
forwarders: v,
|
|
@@ -59874,13 +59909,13 @@ var p0 = { class: "draggable-container-content" }, m0 = /* @__PURE__ */ Te(/* @_
|
|
|
59874
59909
|
shortcutManager: h,
|
|
59875
59910
|
chatBotRef: x,
|
|
59876
59911
|
forwardToManager: b,
|
|
59877
|
-
show:
|
|
59912
|
+
show: ee,
|
|
59878
59913
|
props: r
|
|
59879
59914
|
}), Ze = (e) => {
|
|
59880
59915
|
De.value = !0, v.sendMessage(e);
|
|
59881
59916
|
};
|
|
59882
59917
|
return t({
|
|
59883
|
-
show:
|
|
59918
|
+
show: ee,
|
|
59884
59919
|
handleShow: ne,
|
|
59885
59920
|
handleClose: re,
|
|
59886
59921
|
hide: te,
|
|
@@ -59938,7 +59973,7 @@ var p0 = { class: "draggable-container-content" }, m0 = /* @__PURE__ */ Te(/* @_
|
|
|
59938
59973
|
"has-session-contents": q(De),
|
|
59939
59974
|
"is-compression-height": q(A),
|
|
59940
59975
|
"render-mode": r.renderMode,
|
|
59941
|
-
"selected-llm-code":
|
|
59976
|
+
"selected-llm-code": z.value,
|
|
59942
59977
|
"session-business-manager": q(u),
|
|
59943
59978
|
"session-name": q(Te),
|
|
59944
59979
|
"show-compression-icon": r.showCompressionIcon,
|