@fses/workbench-app 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WORKBENCH-CLOSURE.json +12 -12
- package/dist/Workspace-fYH2XNdb.js +22699 -0
- package/dist/fses-workbench-app.js +2 -2
- package/dist/{index-DbH6tMQy.js → index-CbIJlts1.js} +8 -8
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +2 -2
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +41 -2
- package/dist/internal/personal-workbench/lib/deepAgentQueueState.d.ts +111 -0
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +72 -0
- package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +2 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-XpOzwm56.js → useWorkbenchRuntime-Ch8lqkjO.js} +6707 -6315
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +293 -293
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +1 -1
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/package.json +3 -3
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +656 -641
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +3700 -3674
- package/node_modules/@fses/workbench-card/dist/types/block.d.ts +9 -0
- package/node_modules/@fses/workbench-card/package.json +4 -3
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +19950 -0
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2 -2
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +34 -13
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +20 -5
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +5 -1
- package/node_modules/@fses/workbench-card/src/types/block.ts +9 -0
- package/package.json +3 -3
- package/dist/Workspace-DMye5DU8.js +0 -43113
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as oe, computed as ie, watch as Rt, inject as Zd, defineComponent as Sn, onMounted as qc, onUnmounted as Xd, openBlock as
|
|
1
|
+
import { ref as oe, computed as ie, watch as Rt, inject as Zd, defineComponent as Sn, onMounted as qc, onUnmounted as Xd, openBlock as k, createElementBlock as x, normalizeStyle as ti, createElementVNode as v, createCommentVNode as ne, nextTick as cn, toDisplayString as J, createVNode as nt, Fragment as Ke, renderList as ft, normalizeClass as Ye, withKeys as Ka, withModifiers as En, unref as Me, createTextVNode as la, onBeforeUnmount as ka, createBlock as Jt, reactive as zc, withDirectives as cs, vModelText as ls, renderSlot as wr, Teleport as Er, resolveDynamicComponent as $o, getCurrentInstance as ef, useSlots as tf, withCtx as _a } from "vue";
|
|
2
2
|
import { EditOutlined as Wc, CheckOutlined as nf, CloseOutlined as us, PlusOutlined as af, SendOutlined as rf, LoadingOutlined as ni, ClockCircleOutlined as ai, CloseCircleOutlined as Fo, CheckCircleOutlined as No, DownOutlined as sf, MessageOutlined as of, SettingOutlined as cf, LeftOutlined as Go, CommentOutlined as Ho, EllipsisOutlined as qo, DragOutlined as lf } from "@ant-design/icons-vue";
|
|
3
3
|
import { Tooltip as gr, message as uf } from "ant-design-vue";
|
|
4
4
|
import { Marked as Uc } from "marked";
|
|
@@ -3549,11 +3549,11 @@ const nh = {
|
|
|
3549
3549
|
}
|
|
3550
3550
|
), Xd(() => {
|
|
3551
3551
|
Ge(), R(), l == null || l.disconnect(), l = null, o == null || o.dispose(), o = null;
|
|
3552
|
-
}), (ye, pe) => (
|
|
3552
|
+
}), (ye, pe) => (k(), x("div", {
|
|
3553
3553
|
class: "echarts-view",
|
|
3554
3554
|
style: ti(V.value)
|
|
3555
3555
|
}, [
|
|
3556
|
-
E.value ? ne("", !0) : (
|
|
3556
|
+
E.value ? ne("", !0) : (k(), x("div", nh, [...pe[0] || (pe[0] = [
|
|
3557
3557
|
v("span", { class: "echarts-view__spinner" }, null, -1),
|
|
3558
3558
|
v("span", { class: "echarts-view__label" }, "图表加载中", -1)
|
|
3559
3559
|
])])),
|
|
@@ -3623,7 +3623,7 @@ const nh = {
|
|
|
3623
3623
|
}
|
|
3624
3624
|
return (P, R) => {
|
|
3625
3625
|
var U;
|
|
3626
|
-
return
|
|
3626
|
+
return k(), x("article", {
|
|
3627
3627
|
ref_key: "cardRef",
|
|
3628
3628
|
ref: l,
|
|
3629
3629
|
class: "chart-card"
|
|
@@ -3631,16 +3631,16 @@ const nh = {
|
|
|
3631
3631
|
v("header", rh, [
|
|
3632
3632
|
v("div", sh, [
|
|
3633
3633
|
v("h3", ih, J(e.card.title), 1),
|
|
3634
|
-
T.value ? (
|
|
3634
|
+
T.value ? (k(), x("span", oh, "v" + J(T.value), 1)) : ne("", !0)
|
|
3635
3635
|
])
|
|
3636
3636
|
]),
|
|
3637
|
-
e.card.period ? (
|
|
3637
|
+
e.card.period ? (k(), x("div", ch, J(e.card.period), 1)) : ne("", !0),
|
|
3638
3638
|
nt(Cl, {
|
|
3639
3639
|
class: "chart-card__chart",
|
|
3640
3640
|
option: g.value,
|
|
3641
3641
|
height: _.value
|
|
3642
3642
|
}, null, 8, ["option", "height"]),
|
|
3643
|
-
e.card.summary ? (
|
|
3643
|
+
e.card.summary ? (k(), x("p", lh, J(e.card.summary), 1)) : ne("", !0),
|
|
3644
3644
|
v("dl", uh, [
|
|
3645
3645
|
v("div", dh, [
|
|
3646
3646
|
R[0] || (R[0] = v("dt", null, "数据来源", -1)),
|
|
@@ -3650,13 +3650,13 @@ const nh = {
|
|
|
3650
3650
|
R[1] || (R[1] = v("dt", null, "权限", -1)),
|
|
3651
3651
|
v("dd", null, J(e.card.permission.label), 1)
|
|
3652
3652
|
]),
|
|
3653
|
-
(U = e.card.meta) != null && U.prompt ? (
|
|
3653
|
+
(U = e.card.meta) != null && U.prompt ? (k(), x("div", mh, [
|
|
3654
3654
|
R[2] || (R[2] = v("dt", null, "需求", -1)),
|
|
3655
3655
|
v("dd", null, J(e.card.meta.prompt), 1)
|
|
3656
3656
|
])) : ne("", !0)
|
|
3657
3657
|
]),
|
|
3658
|
-
E.value.length ? (
|
|
3659
|
-
(
|
|
3658
|
+
E.value.length ? (k(), x("div", ph, [
|
|
3659
|
+
(k(!0), x(Ke, null, ft(E.value, (j) => (k(), x("button", {
|
|
3660
3660
|
key: j,
|
|
3661
3661
|
type: "button",
|
|
3662
3662
|
class: "chart-card__business-action",
|
|
@@ -4727,17 +4727,17 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
4727
4727
|
return ((n = Ie(t)) == null ? void 0 : n.options.length) ?? _t(t).options.length;
|
|
4728
4728
|
}
|
|
4729
4729
|
function _t(t) {
|
|
4730
|
-
const n = [t, ...Je(t)], r = Be(n, t), i = r.map((h,
|
|
4730
|
+
const n = [t, ...Je(t)], r = Be(n, t), i = r.map((h, A) => ({
|
|
4731
4731
|
...se[0],
|
|
4732
|
-
key: `table:${yt(h, "table")}:${
|
|
4732
|
+
key: `table:${yt(h, "table")}:${A}`,
|
|
4733
4733
|
label: Pe(h, t),
|
|
4734
4734
|
item: h,
|
|
4735
4735
|
previewMode: "table",
|
|
4736
4736
|
disabled: !1,
|
|
4737
4737
|
statusLabel: Ra(h)
|
|
4738
|
-
})), c = X(t), m = c.map((h,
|
|
4739
|
-
key: `template:${h.capabilityId}:${
|
|
4740
|
-
label: tn(h,
|
|
4738
|
+
})), c = X(t), m = c.map((h, A) => ({
|
|
4739
|
+
key: `template:${h.capabilityId}:${A}`,
|
|
4740
|
+
label: tn(h, A),
|
|
4741
4741
|
icon: fa(h),
|
|
4742
4742
|
iconPath: gn(h),
|
|
4743
4743
|
item: h,
|
|
@@ -4755,8 +4755,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
4755
4755
|
const r = /* @__PURE__ */ new Set(), i = t.filter((h) => yn(h) > 0).filter((h) => st(h) || ke(h, n)), c = i.some(
|
|
4756
4756
|
(h) => !ke(h, n) && L(h)
|
|
4757
4757
|
), m = i.filter((h) => !(c && ke(h, n))).filter((h) => {
|
|
4758
|
-
const
|
|
4759
|
-
return r.has(
|
|
4758
|
+
const A = yt(h, "table");
|
|
4759
|
+
return r.has(A) ? !1 : (r.add(A), !0);
|
|
4760
4760
|
});
|
|
4761
4761
|
return q(
|
|
4762
4762
|
H(
|
|
@@ -5014,30 +5014,30 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5014
5014
|
return /(^|[._\-\s])(first|primary|default|basic|base|simple|main|recommended|common)($|[._\-\s])/u.test(n) && (r += 12), /[\u57fa\u7840\u9ed8\u8ba4\u9996\u9009\u4f18\u5148\u5e38\u7528\u5339\u914d]/u.test(n) && (r += 12), /(^|[._\-\s])(second|duplicate|another|copy|variant|alternative|alt)($|[._\-\s])/u.test(n) && (r -= 12), /(\u53e6|\u7b2c\u4e8c|\u5907\u9009|\u91cd\u590d)/u.test(n) && (r -= 12), r;
|
|
5015
5015
|
}
|
|
5016
5016
|
function $t(t, n) {
|
|
5017
|
-
const r = Da(t, n), i = Gt(r), c = Pa(r), m = Ur(i, c), h = jr(c, m),
|
|
5017
|
+
const r = Da(t, n), i = Gt(r), c = Pa(r), m = Ur(i, c), h = jr(c, m), A = f(n);
|
|
5018
5018
|
let N = ot(n);
|
|
5019
|
-
return i.length > 0 && (N += 20), c.length > 0 && (N += 10), m && (N += 20), h.length > 0 && (N += 15), ["bar", "line", "ranking", "gauge", "funnel"].includes(
|
|
5019
|
+
return i.length > 0 && (N += 20), c.length > 0 && (N += 10), m && (N += 20), h.length > 0 && (N += 15), ["bar", "line", "ranking", "gauge", "funnel"].includes(A) && m && h.length >= 1 && (N += 20), A === "pie" && m && h.length >= 1 && (N += i.length <= 12 ? 18 : 12), A === "scatter" && m && h.length >= 1 && (N += 16), A === "heatmap" && (N += m && h.length >= 2 ? 18 : 4), ["network", "graph", "sankey"].includes(A) && Po(r) && (N += 18), ["tree", "treemap", "sunburst"].includes(A) && h.length >= 1 && (N += 10), N;
|
|
5020
5020
|
}
|
|
5021
5021
|
function un(t, n) {
|
|
5022
5022
|
return n.fitScore - t.fitScore || t.commonRank - n.commonRank || t.index - n.index;
|
|
5023
5023
|
}
|
|
5024
5024
|
function ct(t, n) {
|
|
5025
|
-
const r = n.map((h,
|
|
5025
|
+
const r = n.map((h, A) => ({
|
|
5026
5026
|
candidate: h,
|
|
5027
|
-
index:
|
|
5027
|
+
index: A,
|
|
5028
5028
|
type: f(h),
|
|
5029
5029
|
fitScore: $t(t, h),
|
|
5030
5030
|
commonRank: Te(h)
|
|
5031
5031
|
})).sort(un), i = /* @__PURE__ */ new Map(), c = [];
|
|
5032
5032
|
for (const h of r) {
|
|
5033
|
-
const
|
|
5034
|
-
|
|
5033
|
+
const A = i.get(h.type) || [];
|
|
5034
|
+
A.length === 0 && c.push(h.type), A.push(h), i.set(h.type, A);
|
|
5035
5035
|
}
|
|
5036
5036
|
const m = [];
|
|
5037
5037
|
for (; c.length > 0; )
|
|
5038
5038
|
for (let h = 0; h < c.length; ) {
|
|
5039
|
-
const
|
|
5040
|
-
G && m.push(G), !N || N.length === 0 ? (i.delete(
|
|
5039
|
+
const A = c[h], N = i.get(A), G = N == null ? void 0 : N.shift();
|
|
5040
|
+
G && m.push(G), !N || N.length === 0 ? (i.delete(A), c.splice(h, 1)) : h += 1;
|
|
5041
5041
|
}
|
|
5042
5042
|
return m.map((h) => h.candidate);
|
|
5043
5043
|
}
|
|
@@ -5241,7 +5241,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5241
5241
|
return !n || /^[?\s]+$/u.test(n) || /\?{2,}/u.test(n) || /\uFFFD/u.test(n) ? "" : n;
|
|
5242
5242
|
}
|
|
5243
5243
|
function Dn(t) {
|
|
5244
|
-
const n = O(t.cardConfig), r = O(t.selectedConfig), i = O(r.values), c = O(t.dataBinding), m = O(t.queryResult), h = O(m.data),
|
|
5244
|
+
const n = O(t.cardConfig), r = O(t.selectedConfig), i = O(r.values), c = O(t.dataBinding), m = O(t.queryResult), h = O(m.data), A = O(m.dataBinding), N = O(c.queryResult), G = O(N.data), K = pn(t), _e = O(K.data), je = O(_e.dataBinding), wt = O(K.meta), nn = O(wt.queryResult);
|
|
5245
5245
|
return Un(
|
|
5246
5246
|
ar(N.columns),
|
|
5247
5247
|
ar(nn.columns),
|
|
@@ -5257,7 +5257,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5257
5257
|
xt(je.fieldLabels),
|
|
5258
5258
|
xt(_e.fieldLabels),
|
|
5259
5259
|
xt(h.fieldLabels),
|
|
5260
|
-
xt(
|
|
5260
|
+
xt(A.fieldLabels),
|
|
5261
5261
|
xt(m.fieldLabels),
|
|
5262
5262
|
xt(O(m.metadata).fieldLabels),
|
|
5263
5263
|
xt(c.fieldLabels),
|
|
@@ -5296,8 +5296,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5296
5296
|
function Zn(t, n) {
|
|
5297
5297
|
if (!Array.isArray(t)) return {};
|
|
5298
5298
|
const r = $r(n), i = t.flatMap((m, h) => {
|
|
5299
|
-
const
|
|
5300
|
-
return
|
|
5299
|
+
const A = (ue(m) ? hn(m) : r[h]) || "", N = ue(m) ? Lt(m.label, A) || Lt(m.title, A) || Lt(m.displayName, A) : Lt(m, A);
|
|
5300
|
+
return A && N ? [[A, N]] : [];
|
|
5301
5301
|
}), c = i.reduce((m, [, h]) => (m.set(h, (m.get(h) ?? 0) + 1), m), /* @__PURE__ */ new Map());
|
|
5302
5302
|
return Object.fromEntries(i.filter(([, m]) => c.get(m) === 1));
|
|
5303
5303
|
}
|
|
@@ -5307,8 +5307,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5307
5307
|
if (!r) return {};
|
|
5308
5308
|
const i = $r(n);
|
|
5309
5309
|
return Object.fromEntries(Object.keys(r).flatMap((c, m) => {
|
|
5310
|
-
const h = i[m] || "",
|
|
5311
|
-
return h &&
|
|
5310
|
+
const h = i[m] || "", A = Lt(c, h);
|
|
5311
|
+
return h && A ? [[h, A]] : [];
|
|
5312
5312
|
}));
|
|
5313
5313
|
}
|
|
5314
5314
|
function pa(t) {
|
|
@@ -5360,7 +5360,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5360
5360
|
return Array.isArray(t) ? `[${t.map((n) => p(n)).join(",")}]` : ue(t) ? `{${Object.keys(t).sort().map((n) => `${n}:${p(t[n])}`).join("|")}}` : typeof t == "string" ? t.trim() : typeof t == "number" || typeof t == "boolean" ? String(t) : "";
|
|
5361
5361
|
}
|
|
5362
5362
|
function S(t) {
|
|
5363
|
-
var i, c, m, h,
|
|
5363
|
+
var i, c, m, h, A, N;
|
|
5364
5364
|
if (rt(t)) {
|
|
5365
5365
|
const G = Xn(t), K = Object.keys(G).length > 0 ? p(G) : "", _e = ta(t) || Ba(t) || "";
|
|
5366
5366
|
return [
|
|
@@ -5380,7 +5380,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5380
5380
|
ce(t),
|
|
5381
5381
|
t.dataShape || "",
|
|
5382
5382
|
r || p((h = t.visualIntent) == null ? void 0 : h.dimensionFields),
|
|
5383
|
-
r ? "" : p((
|
|
5383
|
+
r ? "" : p((A = t.visualIntent) == null ? void 0 : A.measureFields),
|
|
5384
5384
|
r ? "" : p((N = t.visualIntent) == null ? void 0 : N.filterFields),
|
|
5385
5385
|
ja(t)
|
|
5386
5386
|
].join("|");
|
|
@@ -5447,9 +5447,9 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5447
5447
|
i.push(c);
|
|
5448
5448
|
continue;
|
|
5449
5449
|
}
|
|
5450
|
-
const h = Nt(c).filter((
|
|
5450
|
+
const h = Nt(c).filter((A) => n.has(A));
|
|
5451
5451
|
if (h.length > 0) {
|
|
5452
|
-
h.forEach((
|
|
5452
|
+
h.forEach((A) => r.add(A));
|
|
5453
5453
|
continue;
|
|
5454
5454
|
}
|
|
5455
5455
|
i.push(c);
|
|
@@ -5482,13 +5482,13 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5482
5482
|
if (!rr(m)) continue;
|
|
5483
5483
|
const h = ha(m);
|
|
5484
5484
|
if (!h || !r.has(h)) continue;
|
|
5485
|
-
const
|
|
5486
|
-
if (!
|
|
5487
|
-
const N = i.get(
|
|
5485
|
+
const A = h ? n.get(h) : void 0;
|
|
5486
|
+
if (!A || A === m) continue;
|
|
5487
|
+
const N = i.get(A) ?? [];
|
|
5488
5488
|
N.push(
|
|
5489
5489
|
de(m),
|
|
5490
5490
|
...Je(m).map(de)
|
|
5491
|
-
), i.set(
|
|
5491
|
+
), i.set(A, N), c.add(m);
|
|
5492
5492
|
}
|
|
5493
5493
|
return t.flatMap((m) => {
|
|
5494
5494
|
if (c.has(m)) return [];
|
|
@@ -5510,8 +5510,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5510
5510
|
c && r.set(c, n.length), n.push(i);
|
|
5511
5511
|
continue;
|
|
5512
5512
|
}
|
|
5513
|
-
const h = n[m],
|
|
5514
|
-
n[m] =
|
|
5513
|
+
const h = n[m], A = Y(h) && De(i) && me(i);
|
|
5514
|
+
n[m] = A ? {
|
|
5515
5515
|
...i,
|
|
5516
5516
|
viewAlternatives: [
|
|
5517
5517
|
de(h),
|
|
@@ -5807,8 +5807,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5807
5807
|
if (!ue(c)) return [];
|
|
5808
5808
|
const h = Array.isArray(c.cells) ? c.cells : [];
|
|
5809
5809
|
if (h.length === 0) return [];
|
|
5810
|
-
const
|
|
5811
|
-
return [Object.keys(
|
|
5810
|
+
const A = Object.fromEntries(h.map((N, G) => [r[G] || `column_${G + 1}`, N]));
|
|
5811
|
+
return [Object.keys(A).length > 0 ? A : { [`row_${m + 1}`]: "" }];
|
|
5812
5812
|
});
|
|
5813
5813
|
}
|
|
5814
5814
|
function Gt(t) {
|
|
@@ -5825,11 +5825,11 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5825
5825
|
const r = Object.keys(n[0] ?? {});
|
|
5826
5826
|
if (t.length === 0 || r.length === 0) return [];
|
|
5827
5827
|
const i = t.flatMap((c, m) => {
|
|
5828
|
-
const h = hn(c),
|
|
5829
|
-
if (!
|
|
5830
|
-
const N = Lt(Hi(c),
|
|
5828
|
+
const h = hn(c), A = h && n.some((G) => Object.prototype.hasOwnProperty.call(G, h)) ? h : r[m] || "";
|
|
5829
|
+
if (!A || !n.some((G) => Object.prototype.hasOwnProperty.call(G, A))) return [];
|
|
5830
|
+
const N = Lt(Hi(c), A);
|
|
5831
5831
|
return N ? [{
|
|
5832
|
-
field:
|
|
5832
|
+
field: A,
|
|
5833
5833
|
label: N,
|
|
5834
5834
|
...ue(c) && typeof c.role == "string" && c.role.trim() ? { role: c.role.trim() } : {},
|
|
5835
5835
|
...ue(c) && typeof c.type == "string" && c.type.trim() ? { type: c.type.trim() } : {}
|
|
@@ -5854,10 +5854,10 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5854
5854
|
function qi(t, n, r, i) {
|
|
5855
5855
|
const c = hn(t);
|
|
5856
5856
|
if (!c) return "";
|
|
5857
|
-
const m = i || c, h = ue(t) ? dt(t.label) || dt(t.title) || dt(t.displayName) : void 0,
|
|
5857
|
+
const m = i || c, h = ue(t) ? dt(t.label) || dt(t.title) || dt(t.displayName) : void 0, A = Lt(h, m) || void 0;
|
|
5858
5858
|
return ue(t) && t.role, wa({
|
|
5859
5859
|
key: m,
|
|
5860
|
-
explicitLabel:
|
|
5860
|
+
explicitLabel: A,
|
|
5861
5861
|
labels: n
|
|
5862
5862
|
});
|
|
5863
5863
|
}
|
|
@@ -5870,10 +5870,10 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5870
5870
|
}
|
|
5871
5871
|
function cu(t, n, r) {
|
|
5872
5872
|
const i = t.flatMap((m, h) => {
|
|
5873
|
-
const
|
|
5874
|
-
if (!
|
|
5875
|
-
const N = r[
|
|
5876
|
-
return N && iu(N) ? [{ key:
|
|
5873
|
+
const A = cr(m, n, h);
|
|
5874
|
+
if (!A) return [];
|
|
5875
|
+
const N = r[A] || Lt(ou(m), A);
|
|
5876
|
+
return N && iu(N) ? [{ key: A, label: N }] : [];
|
|
5877
5877
|
}), c = i.reduce((m, h) => (m[h.label] = (m[h.label] || 0) + 1, m), {});
|
|
5878
5878
|
return new Set(i.filter((m) => c[m.label] > 1).map((m) => m.key));
|
|
5879
5879
|
}
|
|
@@ -5917,7 +5917,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5917
5917
|
const i = n[0];
|
|
5918
5918
|
if (!i) return "";
|
|
5919
5919
|
const c = r.primaryValue, m = Object.keys(i).filter(
|
|
5920
|
-
(h) => n.some((
|
|
5920
|
+
(h) => n.some((A) => Object.is(A[h], c) || String(A[h]) === String(c))
|
|
5921
5921
|
);
|
|
5922
5922
|
return m.length === 1 ? m[0] : "";
|
|
5923
5923
|
}
|
|
@@ -5948,8 +5948,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
5948
5948
|
pa(n),
|
|
5949
5949
|
xt(r.fieldLabels),
|
|
5950
5950
|
xt(n.fieldLabels)
|
|
5951
|
-
), h = c ? Un(m, Dn(t)) : Un(Dn(t), m),
|
|
5952
|
-
gu(t,
|
|
5951
|
+
), h = c ? Un(m, Dn(t)) : Un(Dn(t), m), A = Array.isArray(n.columns) ? n.columns : [], N = Array.isArray(r.columns) ? r.columns : [], G = dn(t), K = Array.isArray(G.displayColumns) ? G.displayColumns : [], _e = mu(A, i, h) ? [] : K, je = su(
|
|
5952
|
+
gu(t, A, N, i, _e),
|
|
5953
5953
|
h
|
|
5954
5954
|
), wt = cu(je, i, h), nn = je.map((bt, Yt) => cr(bt, i, Yt)).filter(Boolean), Nn = fu(
|
|
5955
5955
|
lu(h, wt),
|
|
@@ -6017,7 +6017,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6017
6017
|
return Math.floor(n);
|
|
6018
6018
|
}
|
|
6019
6019
|
function bu(t) {
|
|
6020
|
-
const n = ya(t), r = O(n.data), i = O(n.metadata), c = O(r.metadata), m = O(n.dataBinding), h = O(m.queryResult),
|
|
6020
|
+
const n = ya(t), r = O(n.data), i = O(n.metadata), c = O(r.metadata), m = O(n.dataBinding), h = O(m.queryResult), A = [
|
|
6021
6021
|
n.rowCount,
|
|
6022
6022
|
n.totalCount,
|
|
6023
6023
|
n.total_count,
|
|
@@ -6039,7 +6039,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6039
6039
|
h.total_count,
|
|
6040
6040
|
h.total
|
|
6041
6041
|
];
|
|
6042
|
-
for (const N of
|
|
6042
|
+
for (const N of A) {
|
|
6043
6043
|
const G = yu(N);
|
|
6044
6044
|
if (G !== void 0) return G;
|
|
6045
6045
|
}
|
|
@@ -6052,8 +6052,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6052
6052
|
}
|
|
6053
6053
|
function Wi(t, n) {
|
|
6054
6054
|
const r = Math.max(1, Math.floor(n)), i = Math.min(Fg, r), c = Math.min(Math.max(1, Math.floor(t)), r), m = Math.floor(i / 2);
|
|
6055
|
-
let h = c - m,
|
|
6056
|
-
return h < 1 && (h = 1,
|
|
6055
|
+
let h = c - m, A = h + i - 1;
|
|
6056
|
+
return h < 1 && (h = 1, A = i), A > r && (A = r, h = Math.max(1, A - i + 1)), Array.from({ length: A - h + 1 }, (N, G) => h + G);
|
|
6057
6057
|
}
|
|
6058
6058
|
function Ui(t) {
|
|
6059
6059
|
const n = yn(t), r = As(t);
|
|
@@ -6147,8 +6147,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6147
6147
|
function Iu(t, n) {
|
|
6148
6148
|
const r = Array.isArray(n.series) ? n.series.filter(ue).filter((h) => Array.isArray(h.data)) : [];
|
|
6149
6149
|
if (r.length === 0) return;
|
|
6150
|
-
const i = Array.isArray(t.series) ? t.series.filter(ue) : [], c = r.map((h,
|
|
6151
|
-
const N = i[
|
|
6150
|
+
const i = Array.isArray(t.series) ? t.series.filter(ue) : [], c = r.map((h, A) => {
|
|
6151
|
+
const N = i[A] || i.find((G) => W(G.type) === W(h.typeHint)) || i.find((G) => W(G.type) === W(h.type)) || i[0] || {};
|
|
6152
6152
|
return {
|
|
6153
6153
|
...N,
|
|
6154
6154
|
type: W(h.typeHint) || W(h.type) || W(N.type) || "line",
|
|
@@ -6300,12 +6300,12 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6300
6300
|
return typeof _e == "number" && Number.isFinite(_e) ? [{ label: rn(G[h]) || `项 ${K + 1}`, value: _e }] : [];
|
|
6301
6301
|
})
|
|
6302
6302
|
};
|
|
6303
|
-
const
|
|
6303
|
+
const A = /* @__PURE__ */ new Map();
|
|
6304
6304
|
for (const G of i) {
|
|
6305
6305
|
const K = rn(G[h]);
|
|
6306
|
-
!K || K === "-" ||
|
|
6306
|
+
!K || K === "-" || A.set(K, (A.get(K) || 0) + 1);
|
|
6307
6307
|
}
|
|
6308
|
-
const N = Array.from(
|
|
6308
|
+
const N = Array.from(A.entries()).map(([G, K]) => ({ label: G, value: K }));
|
|
6309
6309
|
return N.length > 0 ? { title: "记录数", type: r, points: N } : null;
|
|
6310
6310
|
}
|
|
6311
6311
|
function xn(t) {
|
|
@@ -6397,8 +6397,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6397
6397
|
function Pa(t) {
|
|
6398
6398
|
const n = ya(t), r = O(n.data), i = Gt(t), m = (Array.isArray(n.columns) ? n.columns : Array.isArray(r.columns) ? r.columns : []).map((G, K) => cr(G, i, K)).filter(Boolean);
|
|
6399
6399
|
if (m.length > 0) return m;
|
|
6400
|
-
const h = dn(t).columns,
|
|
6401
|
-
if (
|
|
6400
|
+
const h = dn(t).columns, A = Array.isArray(h) ? h.map((G) => W(G)).filter(Boolean) : [];
|
|
6401
|
+
if (A.length > 0) return A;
|
|
6402
6402
|
const N = Gt(t)[0];
|
|
6403
6403
|
return N ? Object.keys(N) : [];
|
|
6404
6404
|
}
|
|
@@ -6429,18 +6429,18 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6429
6429
|
function Nu(t, n, r, i) {
|
|
6430
6430
|
const c = oo(t, r);
|
|
6431
6431
|
if (!c) return null;
|
|
6432
|
-
const { sourceKey: m, targetKey: h } = c,
|
|
6432
|
+
const { sourceKey: m, targetKey: h } = c, A = /* @__PURE__ */ new Set(), N = n.flatMap((G) => {
|
|
6433
6433
|
const K = rn(G[m]), _e = rn(G[h]);
|
|
6434
|
-
return !K || K === "-" || !_e || _e === "-" ? [] : (
|
|
6434
|
+
return !K || K === "-" || !_e || _e === "-" ? [] : (A.add(K), A.add(_e), [{ source: K, target: _e, value: Fn(G[i]) ?? 1 }]);
|
|
6435
6435
|
});
|
|
6436
6436
|
return N.length === 0 ? null : {
|
|
6437
|
-
nodes: Array.from(
|
|
6437
|
+
nodes: Array.from(A).map((G) => ({ name: G })),
|
|
6438
6438
|
links: N
|
|
6439
6439
|
};
|
|
6440
6440
|
}
|
|
6441
6441
|
function co(t, n, r = !0) {
|
|
6442
6442
|
var N, G;
|
|
6443
|
-
const i = Gt(t), c = Pa(t), m = Ur(i, c), h = jr(c, m),
|
|
6443
|
+
const i = Gt(t), c = Pa(t), m = Ur(i, c), h = jr(c, m), A = xs(t, { useMaterializedOption: r, previewType: n });
|
|
6444
6444
|
if (n === "graph" || n === "sankey") {
|
|
6445
6445
|
const K = Nu(t, i, h, m);
|
|
6446
6446
|
return K ? n === "graph" ? {
|
|
@@ -6463,18 +6463,18 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6463
6463
|
}]
|
|
6464
6464
|
} : null;
|
|
6465
6465
|
}
|
|
6466
|
-
if (!
|
|
6466
|
+
if (!A || A.points.length === 0) return null;
|
|
6467
6467
|
if (n === "radar") {
|
|
6468
|
-
if (
|
|
6469
|
-
const K = Math.max(1, ...
|
|
6468
|
+
if (A.points.length < Ys) return null;
|
|
6469
|
+
const K = Math.max(1, ...A.points.map((_e) => _e.value));
|
|
6470
6470
|
return {
|
|
6471
6471
|
radar: {
|
|
6472
|
-
indicator:
|
|
6472
|
+
indicator: A.points.map((_e) => ({ name: _e.label, max: Math.max(K, _e.value) }))
|
|
6473
6473
|
},
|
|
6474
6474
|
series: [{
|
|
6475
6475
|
type: "radar",
|
|
6476
|
-
name:
|
|
6477
|
-
data: [{ name:
|
|
6476
|
+
name: A.title,
|
|
6477
|
+
data: [{ name: A.title, value: A.points.map((_e) => _e.value) }]
|
|
6478
6478
|
}]
|
|
6479
6479
|
};
|
|
6480
6480
|
}
|
|
@@ -6483,32 +6483,32 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6483
6483
|
tooltip: { trigger: "item" },
|
|
6484
6484
|
series: [{
|
|
6485
6485
|
type: "funnel",
|
|
6486
|
-
name:
|
|
6487
|
-
data:
|
|
6486
|
+
name: A.title,
|
|
6487
|
+
data: A.points.map((K) => ({ name: K.label, value: K.value }))
|
|
6488
6488
|
}]
|
|
6489
6489
|
};
|
|
6490
6490
|
if (n === "heatmap")
|
|
6491
6491
|
return {
|
|
6492
6492
|
tooltip: { position: "top" },
|
|
6493
|
-
xAxis: { type: "category", data:
|
|
6494
|
-
yAxis: { type: "category", data: [
|
|
6495
|
-
visualMap: { min: 0, max: Math.max(1, ...
|
|
6493
|
+
xAxis: { type: "category", data: A.points.map((K) => K.label) },
|
|
6494
|
+
yAxis: { type: "category", data: [A.title] },
|
|
6495
|
+
visualMap: { min: 0, max: Math.max(1, ...A.points.map((K) => K.value)), calculable: !0, orient: "horizontal" },
|
|
6496
6496
|
series: [{
|
|
6497
6497
|
type: "heatmap",
|
|
6498
|
-
data:
|
|
6498
|
+
data: A.points.map((K, _e) => [_e, 0, K.value])
|
|
6499
6499
|
}]
|
|
6500
6500
|
};
|
|
6501
6501
|
if (n === "gauge")
|
|
6502
6502
|
return {
|
|
6503
6503
|
series: [{
|
|
6504
6504
|
type: "gauge",
|
|
6505
|
-
data: [{ name: ((N =
|
|
6505
|
+
data: [{ name: ((N = A.points[0]) == null ? void 0 : N.label) || A.title, value: ((G = A.points[0]) == null ? void 0 : G.value) ?? 0 }]
|
|
6506
6506
|
}]
|
|
6507
6507
|
};
|
|
6508
6508
|
if (n === "tree" || n === "treemap" || n === "sunburst") {
|
|
6509
6509
|
const K = [{
|
|
6510
|
-
name:
|
|
6511
|
-
children:
|
|
6510
|
+
name: A.title,
|
|
6511
|
+
children: A.points.map((_e) => ({ name: _e.label, value: _e.value }))
|
|
6512
6512
|
}];
|
|
6513
6513
|
return {
|
|
6514
6514
|
tooltip: { trigger: "item" },
|
|
@@ -6522,11 +6522,11 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6522
6522
|
return null;
|
|
6523
6523
|
}
|
|
6524
6524
|
function lo(t) {
|
|
6525
|
-
const n = t.map((h) => Math.max(0, h.value)), r = n[0] ?? 0, i = n.slice(1).reduce((h,
|
|
6525
|
+
const n = t.map((h) => Math.max(0, h.value)), r = n[0] ?? 0, i = n.slice(1).reduce((h, A) => h + A, 0);
|
|
6526
6526
|
if (!(n.length > 1 && r > 0 && i <= r)) {
|
|
6527
6527
|
let h = 0;
|
|
6528
6528
|
return {
|
|
6529
|
-
helper: n.map((
|
|
6529
|
+
helper: n.map((A, N) => {
|
|
6530
6530
|
const G = N === 0 ? 0 : h;
|
|
6531
6531
|
return h += n[N] ?? 0, G;
|
|
6532
6532
|
}),
|
|
@@ -6535,7 +6535,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6535
6535
|
}
|
|
6536
6536
|
let m = r;
|
|
6537
6537
|
return {
|
|
6538
|
-
helper: n.map((h,
|
|
6538
|
+
helper: n.map((h, A) => A === 0 ? 0 : (m = Math.max(0, m - h), m)),
|
|
6539
6539
|
values: n
|
|
6540
6540
|
};
|
|
6541
6541
|
}
|
|
@@ -6627,7 +6627,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6627
6627
|
if (t.type === "waterfall") return zu(t);
|
|
6628
6628
|
if (t.type === "pareto") return Wu(t);
|
|
6629
6629
|
if (t.type === "mixedBarLine") {
|
|
6630
|
-
const c = t.points.map((
|
|
6630
|
+
const c = t.points.map((A) => A.label), m = t.points.map((A) => A.value), h = {
|
|
6631
6631
|
grid: { left: 40, right: 16, top: 24, bottom: 34 },
|
|
6632
6632
|
tooltip: { trigger: "axis" },
|
|
6633
6633
|
legend: { data: [t.title, `${t.title} trend`] },
|
|
@@ -6726,9 +6726,9 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6726
6726
|
}
|
|
6727
6727
|
function Vu(t, n, r, i, c) {
|
|
6728
6728
|
return [
|
|
6729
|
-
...Array.isArray(t.yFields) ? t.yFields.map((
|
|
6729
|
+
...Array.isArray(t.yFields) ? t.yFields.map((A) => W(A)).filter(Boolean) : [],
|
|
6730
6730
|
Is(t, ["yField", "measureField", "valueField"])
|
|
6731
|
-
].filter((
|
|
6731
|
+
].filter((A, N, G) => A && G.indexOf(A) === N).find((A) => n.some((N) => Fn(N[A]) !== null)) || r.find((A) => A !== i && A !== c && n.some((N) => Fn(N[A]) !== null)) || "";
|
|
6732
6732
|
}
|
|
6733
6733
|
function Qu(t, n) {
|
|
6734
6734
|
const r = new Set(t.map((i) => rn(i[n])).filter((i) => i && i !== "-"));
|
|
@@ -6753,19 +6753,19 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6753
6753
|
if (n.length === 0 || r.length < 3) return null;
|
|
6754
6754
|
const i = Xn(t), c = Is(i, ["seriesField", "groupField", "colorField"]) || Rs(t, "seriesFields");
|
|
6755
6755
|
let m = Rs(t, "dimensionFields") || Is(i, ["xField", "labelField", "categoryField", "dimensionField"]) || r.find((Wt) => Wt !== c && n.some((bt) => Fn(bt[Wt]) === null)) || "";
|
|
6756
|
-
const h = Rs(t, "measureFields"),
|
|
6757
|
-
let N = c || Yu(n, r, m,
|
|
6758
|
-
if (m && N && po(n, m) && !po(n, N) && ([m, N] = [N, m]), !m || !
|
|
6756
|
+
const h = Rs(t, "measureFields"), A = h && n.some((Wt) => Fn(Wt[h]) !== null) ? h : Vu(i, n, r, m, c);
|
|
6757
|
+
let N = c || Yu(n, r, m, A);
|
|
6758
|
+
if (m && N && po(n, m) && !po(n, N) && ([m, N] = [N, m]), !m || !A || m === N) return null;
|
|
6759
6759
|
const G = [], K = [], _e = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Set(), wt = /* @__PURE__ */ new Map();
|
|
6760
6760
|
if (n.forEach((Wt, bt) => {
|
|
6761
|
-
const Yt = rn(Wt[m]), Ut = rn(Wt[N]), $a = Fn(Wt[
|
|
6761
|
+
const Yt = rn(Wt[m]), Ut = rn(Wt[N]), $a = Fn(Wt[A]);
|
|
6762
6762
|
if (!Ut || Ut === "-" || $a === null) return;
|
|
6763
6763
|
const va = Yt && Yt !== "-" ? Yt : `项 ${bt + 1}`;
|
|
6764
6764
|
_e.has(va) || (_e.add(va), G.push(va)), je.has(Ut) || (je.add(Ut), K.push(Ut));
|
|
6765
6765
|
const Gs = wt.get(Ut) ?? /* @__PURE__ */ new Map();
|
|
6766
6766
|
Gs.set(va, (Gs.get(va) ?? 0) + $a), wt.set(Ut, Gs);
|
|
6767
6767
|
}), G.length === 0 || K.length < 2) return null;
|
|
6768
|
-
const nn = Dn(t), Nn = On(
|
|
6768
|
+
const nn = Dn(t), Nn = On(A, nn) || A, ba = K.map((Wt) => Ku(Wt, Nn)), Kn = K.map((Wt) => {
|
|
6769
6769
|
const bt = wt.get(Wt) ?? /* @__PURE__ */ new Map();
|
|
6770
6770
|
return G.map((Yt) => bt.get(Yt) ?? 0);
|
|
6771
6771
|
});
|
|
@@ -6788,9 +6788,9 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6788
6788
|
const h = n.map((K, _e) => {
|
|
6789
6789
|
const je = rn(K[m]);
|
|
6790
6790
|
return je && je !== "-" ? je : `项 ${_e + 1}`;
|
|
6791
|
-
}),
|
|
6791
|
+
}), A = Dn(t);
|
|
6792
6792
|
if (c.length > 0) {
|
|
6793
|
-
const K = c.map((je) => On(je,
|
|
6793
|
+
const K = c.map((je) => On(je, A) || je), _e = c.map((je) => n.map((wt) => Fn(wt[je]) ?? 0));
|
|
6794
6794
|
return {
|
|
6795
6795
|
labels: h,
|
|
6796
6796
|
measureLabels: K,
|
|
@@ -6957,13 +6957,13 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
6957
6957
|
if (!r || r.seriesValues.length <= 1) return null;
|
|
6958
6958
|
const i = In(n);
|
|
6959
6959
|
if (!["bar", "line", "scatter", "pictorialBar"].includes(i) && n !== "mixedBarLine") return null;
|
|
6960
|
-
const c = r.measureLabels.map((h,
|
|
6961
|
-
const N = n === "mixedBarLine" ?
|
|
6960
|
+
const c = r.measureLabels.map((h, A) => {
|
|
6961
|
+
const N = n === "mixedBarLine" ? A === 0 ? "bar" : "line" : i;
|
|
6962
6962
|
return {
|
|
6963
6963
|
type: N,
|
|
6964
6964
|
name: h || r.title,
|
|
6965
6965
|
...N === "bar" && fd(t) ? { stack: "total" } : {},
|
|
6966
|
-
data: Ma(r,
|
|
6966
|
+
data: Ma(r, A)
|
|
6967
6967
|
};
|
|
6968
6968
|
}), m = {
|
|
6969
6969
|
grid: { left: 40, right: 16, top: 24, bottom: 34 },
|
|
@@ -7010,13 +7010,13 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7010
7010
|
}
|
|
7011
7011
|
function hd(t, n) {
|
|
7012
7012
|
const r = zt(t), i = na(r, "bar"), c = Math.max(1, n.measureLabels.length), m = i[0] || { type: "bar", coordinateSystem: "polar" };
|
|
7013
|
-
return r.series = Array.from({ length: c }, (h,
|
|
7013
|
+
return r.series = Array.from({ length: c }, (h, A) => {
|
|
7014
7014
|
const G = {
|
|
7015
|
-
...i[
|
|
7015
|
+
...i[A] || m,
|
|
7016
7016
|
type: "bar",
|
|
7017
7017
|
coordinateSystem: "polar",
|
|
7018
|
-
name: n.measureLabels[
|
|
7019
|
-
data: Ma(n,
|
|
7018
|
+
name: n.measureLabels[A] || n.title,
|
|
7019
|
+
data: Ma(n, A)
|
|
7020
7020
|
};
|
|
7021
7021
|
return delete G.encode, delete G.datasetIndex, G;
|
|
7022
7022
|
}), r.polar = od(r.polar), id(r, n.labels), r.legend = cd(La(r.legend, n.measureLabels)), Rn(r, n.labels), r;
|
|
@@ -7024,20 +7024,20 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7024
7024
|
function gd(t, n, r) {
|
|
7025
7025
|
const i = zt(t), c = na(i, n), m = Math.max(1, r.measureLabels.length), h = c[0] || { type: n };
|
|
7026
7026
|
if (n === "bar" && fr(c)) {
|
|
7027
|
-
const
|
|
7027
|
+
const A = lo(r.points);
|
|
7028
7028
|
let N = 0;
|
|
7029
7029
|
i.series = c.map((G) => {
|
|
7030
7030
|
const K = { ...G, type: n };
|
|
7031
7031
|
if (dr(G))
|
|
7032
|
-
Object.assign(K, Ls(G), { type: n, data:
|
|
7032
|
+
Object.assign(K, Ls(G), { type: n, data: A.helper });
|
|
7033
7033
|
else {
|
|
7034
7034
|
const _e = N;
|
|
7035
|
-
N += 1, K.name = r.measureLabels[_e] || r.title, K.data = _e === 0 ?
|
|
7035
|
+
N += 1, K.name = r.measureLabels[_e] || r.title, K.data = _e === 0 ? A.values : Ma(r, _e);
|
|
7036
7036
|
}
|
|
7037
7037
|
return delete K.encode, delete K.datasetIndex, K;
|
|
7038
7038
|
});
|
|
7039
7039
|
} else
|
|
7040
|
-
i.series = Array.from({ length: m }, (
|
|
7040
|
+
i.series = Array.from({ length: m }, (A, N) => {
|
|
7041
7041
|
const K = {
|
|
7042
7042
|
...c[N] || h,
|
|
7043
7043
|
type: n,
|
|
@@ -7049,26 +7049,26 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7049
7049
|
return Vr(i, r.labels), (i.legend !== void 0 || m > 1) && (i.legend = La(i.legend, r.measureLabels)), Rn(i, r.labels), i;
|
|
7050
7050
|
}
|
|
7051
7051
|
function yd(t, n) {
|
|
7052
|
-
const r = zt(t), i = bn(r), c = n.measureLabels.length <= 1 ? ["bar", "line"] : n.measureLabels.map((
|
|
7053
|
-
const G = i[N] || i.find((wt) => W(wt.type) ===
|
|
7052
|
+
const r = zt(t), i = bn(r), c = n.measureLabels.length <= 1 ? ["bar", "line"] : n.measureLabels.map((A, N) => N === 0 ? "bar" : "line"), m = i[0] || { type: "bar" }, h = c.map((A, N) => {
|
|
7053
|
+
const G = i[N] || i.find((wt) => W(wt.type) === A) || m, K = Math.min(N, n.seriesValues.length - 1), _e = n.measureLabels[K] || n.title, je = {
|
|
7054
7054
|
...G,
|
|
7055
|
-
type:
|
|
7056
|
-
name:
|
|
7055
|
+
type: A,
|
|
7056
|
+
name: A === "line" && c.length === 2 && n.measureLabels.length <= 1 ? `${_e} trend` : _e,
|
|
7057
7057
|
data: Ma(n, K)
|
|
7058
7058
|
};
|
|
7059
7059
|
return delete je.encode, delete je.datasetIndex, je;
|
|
7060
7060
|
});
|
|
7061
|
-
return r.series = h, Vr(r, n.labels), r.legend = La(r.legend, h.map((
|
|
7061
|
+
return r.series = h, Vr(r, n.labels), r.legend = La(r.legend, h.map((A) => W(A.name)).filter(Boolean)), Rn(r, n.labels), r;
|
|
7062
7062
|
}
|
|
7063
7063
|
function bd(t, n, r) {
|
|
7064
|
-
const i = zt(t), m = na(i, "pie")[0] || { type: "pie" }, h = _d(n),
|
|
7064
|
+
const i = zt(t), m = na(i, "pie")[0] || { type: "pie" }, h = _d(n), A = {
|
|
7065
7065
|
...m,
|
|
7066
7066
|
type: "pie",
|
|
7067
7067
|
name: n.title,
|
|
7068
7068
|
data: h.map((K) => ({ name: K.label, value: K.value }))
|
|
7069
7069
|
};
|
|
7070
|
-
r !== "donut" && Array.isArray(
|
|
7071
|
-
const N = go(
|
|
7070
|
+
r !== "donut" && Array.isArray(A.radius) && delete A.radius, r === "donut" && A.radius === void 0 && (A.radius = ["38%", "68%"]), delete A.coordinateSystem, delete A.calendarIndex, delete A.left, delete A.right, delete A.top, delete A.bottom, delete A.width, delete A.height, m.coordinateSystem !== void 0 && delete A.center;
|
|
7071
|
+
const N = go(A) ? yo(A) : bo(A, r);
|
|
7072
7072
|
i.series = [N];
|
|
7073
7073
|
const G = h.map((K) => K.label);
|
|
7074
7074
|
return i.legend = La(i.legend, G), i.legend = vo(
|
|
@@ -7092,8 +7092,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7092
7092
|
const n = Array.isArray(t.data) ? t.data : [], r = Cd(n), i = n.length >= Js;
|
|
7093
7093
|
return {
|
|
7094
7094
|
...t,
|
|
7095
|
-
radius:
|
|
7096
|
-
center:
|
|
7095
|
+
radius: i ? ["18%", "58%"] : r ? ["26%", "58%"] : ["16%", "58%"],
|
|
7096
|
+
center: i ? ["50%", "43%"] : ["50%", "48%"],
|
|
7097
7097
|
avoidLabelOverlap: !0,
|
|
7098
7098
|
minAngle: 2,
|
|
7099
7099
|
label: {
|
|
@@ -7124,13 +7124,13 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7124
7124
|
};
|
|
7125
7125
|
}
|
|
7126
7126
|
function bo(t, n, r = !1) {
|
|
7127
|
-
const i = Array.isArray(t.data) ? t.data : [], c = r || i.length >= Js, m = ur(n), h = n === "donut" || m,
|
|
7127
|
+
const i = Array.isArray(t.data) ? t.data : [], c = r || i.length >= Js, m = ur(n), h = n === "donut" || m, A = m ? ao() : {};
|
|
7128
7128
|
return {
|
|
7129
7129
|
...t,
|
|
7130
|
-
...
|
|
7130
|
+
...A,
|
|
7131
7131
|
...m && c ? { left: 0, right: 0, top: 0, bottom: Kg } : {},
|
|
7132
|
-
radius: h ?
|
|
7133
|
-
center: m ? Du(t.center) :
|
|
7132
|
+
radius: h ? m ? A.radius : c ? ["38%", "62%"] : ["36%", "64%"] : c ? "58%" : t.radius,
|
|
7133
|
+
center: m ? Du(t.center) : c ? ["50%", "44%"] : t.center ?? ["50%", "48%"],
|
|
7134
7134
|
avoidLabelOverlap: !0,
|
|
7135
7135
|
minAngle: 2,
|
|
7136
7136
|
label: {
|
|
@@ -7188,7 +7188,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7188
7188
|
return (t[i] ?? 0) * (1 - m) + (t[c] ?? 0) * m;
|
|
7189
7189
|
}
|
|
7190
7190
|
function kd(t, n) {
|
|
7191
|
-
const r = [...Ma(n, 0)].sort((h,
|
|
7191
|
+
const r = [...Ma(n, 0)].sort((h, A) => h - A);
|
|
7192
7192
|
if (r.length < 2) return null;
|
|
7193
7193
|
const i = [[
|
|
7194
7194
|
r[0],
|
|
@@ -7206,7 +7206,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7206
7206
|
}
|
|
7207
7207
|
function Sd(t, n) {
|
|
7208
7208
|
if (n.seriesValues.length < 4) return null;
|
|
7209
|
-
const r = n.labels.map((m, h) => n.seriesValues.slice(0, 4).map((
|
|
7209
|
+
const r = n.labels.map((m, h) => n.seriesValues.slice(0, 4).map((A) => A[h] ?? 0)), i = zt(t), c = na(i, "candlestick");
|
|
7210
7210
|
return i.series = [{
|
|
7211
7211
|
...c[0] || {},
|
|
7212
7212
|
type: "candlestick",
|
|
@@ -7233,11 +7233,11 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7233
7233
|
type: "themeRiver",
|
|
7234
7234
|
name: n.title,
|
|
7235
7235
|
data: n.labels.flatMap(
|
|
7236
|
-
(c, m) => n.measureLabels.map((h,
|
|
7236
|
+
(c, m) => n.measureLabels.map((h, A) => {
|
|
7237
7237
|
var N;
|
|
7238
7238
|
return [
|
|
7239
7239
|
c,
|
|
7240
|
-
((N = n.seriesValues[
|
|
7240
|
+
((N = n.seriesValues[A]) == null ? void 0 : N[m]) ?? 0,
|
|
7241
7241
|
h
|
|
7242
7242
|
];
|
|
7243
7243
|
})
|
|
@@ -7293,8 +7293,8 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7293
7293
|
if (xn(m))
|
|
7294
7294
|
return pr(t, m) ? Oa(m, i) : null;
|
|
7295
7295
|
if (Rd(t, i)) {
|
|
7296
|
-
const
|
|
7297
|
-
if (
|
|
7296
|
+
const A = _o(t, i);
|
|
7297
|
+
if (A) return A;
|
|
7298
7298
|
}
|
|
7299
7299
|
const h = Wr(t, O(c.option));
|
|
7300
7300
|
return xn(h) && pr(t, h) ? Oa(h, i) : mo(t, i);
|
|
@@ -7421,7 +7421,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7421
7421
|
function Od(t, n) {
|
|
7422
7422
|
const r = bn(t);
|
|
7423
7423
|
if (!r.some((G) => ue(G) && W(G.type) === "pie")) return t;
|
|
7424
|
-
const c = Array.from(new Set(r.flatMap((G) => W(G.type) === "pie" ? Bs(G) : []))), m = r.some((G) => W(G.type) === "pie" && $s(Bs(G))), h = xo(t).length > 0 ? xo(t) : St,
|
|
7424
|
+
const c = Array.from(new Set(r.flatMap((G) => W(G.type) === "pie" ? Bs(G) : []))), m = r.some((G) => W(G.type) === "pie" && $s(Bs(G))), h = xo(t).length > 0 ? xo(t) : St, A = (G) => !ue(G) || W(G.type) !== "pie" || !Array.isArray(G.data) ? G : {
|
|
7425
7425
|
...Dd(G, n),
|
|
7426
7426
|
data: G.data.map((_e, je) => {
|
|
7427
7427
|
if (!ue(_e)) return _e;
|
|
@@ -7434,7 +7434,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7434
7434
|
}
|
|
7435
7435
|
};
|
|
7436
7436
|
})
|
|
7437
|
-
}, N = Array.isArray(t.series) ? t.series.map(
|
|
7437
|
+
}, N = Array.isArray(t.series) ? t.series.map(A) : A(t.series);
|
|
7438
7438
|
return {
|
|
7439
7439
|
...t,
|
|
7440
7440
|
color: h,
|
|
@@ -7583,14 +7583,14 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7583
7583
|
return Ee(t) === "chart" && !!mr(t);
|
|
7584
7584
|
}
|
|
7585
7585
|
function Oo(t) {
|
|
7586
|
-
const n = ue(o.draft.queryResult) && (Nr(o.draft.queryResult) || Gr(o.draft.queryResult)) ? o.draft.queryResult : null, r = ue(t.queryResult) ? Ni(t.queryResult, n) : t.queryResult, i = ue(r) ? Gi(r, n) : r, c = ue(i) ? i : n, m = pn(t), h = O(m.data),
|
|
7586
|
+
const n = ue(o.draft.queryResult) && (Nr(o.draft.queryResult) || Gr(o.draft.queryResult)) ? o.draft.queryResult : null, r = ue(t.queryResult) ? Ni(t.queryResult, n) : t.queryResult, i = ue(r) ? Gi(r, n) : r, c = ue(i) ? i : n, m = pn(t), h = O(m.data), A = O(m.meta), N = O(A.queryResult), G = O(h.dataBinding), K = O(t.dataBinding), _e = O(c == null ? void 0 : c.dataBinding), je = Object.keys(G).length > 0 ? G : Object.keys(K).length > 0 ? K : _e, wt = ue(t.blockPlan) && Object.keys(je).length > 0 ? {
|
|
7587
7587
|
...m,
|
|
7588
7588
|
data: {
|
|
7589
7589
|
...h,
|
|
7590
7590
|
dataBinding: je
|
|
7591
7591
|
},
|
|
7592
7592
|
meta: {
|
|
7593
|
-
...
|
|
7593
|
+
...A,
|
|
7594
7594
|
queryResult: {
|
|
7595
7595
|
...N,
|
|
7596
7596
|
...c ?? {},
|
|
@@ -7631,7 +7631,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7631
7631
|
if (!hr(t, n)) return n;
|
|
7632
7632
|
const i = Da(t, n), c = r ?? Ao(t, n, !0);
|
|
7633
7633
|
if (!c) return n;
|
|
7634
|
-
const m = pn(i), h = O(m.renderer),
|
|
7634
|
+
const m = pn(i), h = O(m.renderer), A = O(m.data), {
|
|
7635
7635
|
slices: N,
|
|
7636
7636
|
innerRadius: G,
|
|
7637
7637
|
protocolConfig: K,
|
|
@@ -7640,7 +7640,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7640
7640
|
rendererType: wt,
|
|
7641
7641
|
optionPatch: nn,
|
|
7642
7642
|
...Nn
|
|
7643
|
-
} =
|
|
7643
|
+
} = A, ba = O(m.meta), Kn = ya(i), Wt = O(Kn.dataBinding), bt = O(i.dataBinding), Yt = O(A.dataBinding), Ut = Object.keys(Yt).length > 0 ? Yt : Object.keys(bt).length > 0 ? bt : Wt, $a = W(m.id) || `preview-${i.capabilityId.replace(/[^a-z0-9]+/giu, "-")}`, va = ve(t) || we(t) || we(i);
|
|
7644
7644
|
return {
|
|
7645
7645
|
...i,
|
|
7646
7646
|
previewStatus: "ready",
|
|
@@ -7708,17 +7708,17 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7708
7708
|
}
|
|
7709
7709
|
return (t, n) => {
|
|
7710
7710
|
var r;
|
|
7711
|
-
return
|
|
7711
|
+
return k(), x("section", Vh, [
|
|
7712
7712
|
v("header", Qh, [
|
|
7713
7713
|
v("div", Yh, [
|
|
7714
7714
|
n[0] || (n[0] = v("span", null, "推荐卡片", -1)),
|
|
7715
|
-
Ei.value ? (
|
|
7715
|
+
Ei.value ? (k(), x("span", Jh, J(Ei.value), 1)) : ne("", !0)
|
|
7716
7716
|
])
|
|
7717
7717
|
]),
|
|
7718
7718
|
v("p", Zh, J(o.draft.message), 1),
|
|
7719
|
-
Pi.value ? (
|
|
7720
|
-
Ri.value > 0 ? (
|
|
7721
|
-
(
|
|
7719
|
+
Pi.value ? (k(), x("p", Xh, J(Pi.value), 1)) : ne("", !0),
|
|
7720
|
+
Ri.value > 0 ? (k(), x("div", eg, [
|
|
7721
|
+
(k(!0), x(Ke, null, ft(Zt.value, (i) => (k(), x("article", {
|
|
7722
7722
|
key: d(i),
|
|
7723
7723
|
class: Ye(["card-recommendation__item card-recommendation__preview-card", {
|
|
7724
7724
|
"card-recommendation__preview-card--inserting": Ft(i) === "inserting",
|
|
@@ -7729,7 +7729,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7729
7729
|
}, [
|
|
7730
7730
|
v("header", ng, [
|
|
7731
7731
|
v("div", ag, [
|
|
7732
|
-
ku(i) ? (
|
|
7732
|
+
ku(i) ? (k(), x("input", {
|
|
7733
7733
|
key: 0,
|
|
7734
7734
|
class: "card-recommendation__title-input",
|
|
7735
7735
|
value: D.value[d(i)],
|
|
@@ -7737,7 +7737,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7737
7737
|
onInput: (c) => wu(i, c),
|
|
7738
7738
|
onBlur: (c) => Qi(i),
|
|
7739
7739
|
onKeydown: Ka(En((c) => Qi(i), ["prevent"]), ["enter"])
|
|
7740
|
-
}, null, 40, rg)) : (
|
|
7740
|
+
}, null, 40, rg)) : (k(), x("div", sg, J(Vi(i)), 1)),
|
|
7741
7741
|
v("button", {
|
|
7742
7742
|
type: "button",
|
|
7743
7743
|
class: "card-recommendation__edit-title",
|
|
@@ -7751,7 +7751,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7751
7751
|
], 8, ig)
|
|
7752
7752
|
]),
|
|
7753
7753
|
v("div", og, [
|
|
7754
|
-
mn(i) ? (
|
|
7754
|
+
mn(i) ? (k(), x("button", {
|
|
7755
7755
|
key: 0,
|
|
7756
7756
|
type: "button",
|
|
7757
7757
|
class: "card-recommendation__chart-switch",
|
|
@@ -7775,18 +7775,18 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7775
7775
|
disabled: !Kd(i) || !!Ft(i),
|
|
7776
7776
|
onClick: (c) => Yd(i)
|
|
7777
7777
|
}, [
|
|
7778
|
-
Ft(i) === "inserting" ? (
|
|
7778
|
+
Ft(i) === "inserting" ? (k(), x("span", dg)) : ne("", !0),
|
|
7779
7779
|
la(" " + J(Qt(i)), 1)
|
|
7780
7780
|
], 10, ug)
|
|
7781
7781
|
])
|
|
7782
7782
|
]),
|
|
7783
|
-
At(i) ? (
|
|
7783
|
+
At(i) ? (k(), x("div", fg, [
|
|
7784
7784
|
v("div", mg, [
|
|
7785
7785
|
n[3] || (n[3] = v("div", { class: "card-recommendation__switch-panel-title" }, "图表切换", -1)),
|
|
7786
7786
|
v("div", pg, "可选 " + J(vt(i)), 1)
|
|
7787
7787
|
]),
|
|
7788
7788
|
v("div", hg, [
|
|
7789
|
-
(
|
|
7789
|
+
(k(!0), x(Ke, null, ft(C(i), (c) => (k(), x("button", {
|
|
7790
7790
|
key: c.key,
|
|
7791
7791
|
type: "button",
|
|
7792
7792
|
class: Ye(["card-recommendation__view-option", {
|
|
@@ -7800,7 +7800,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7800
7800
|
tabindex: c.placeholder ? -1 : void 0,
|
|
7801
7801
|
onClick: (m) => Wn(i, c)
|
|
7802
7802
|
}, [
|
|
7803
|
-
qn(c) ? (
|
|
7803
|
+
qn(c) ? (k(), x("img", {
|
|
7804
7804
|
key: 0,
|
|
7805
7805
|
class: Ye(["card-recommendation__view-option-image", {
|
|
7806
7806
|
"card-recommendation__view-option-image--loading": !Mn(c),
|
|
@@ -7813,17 +7813,17 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7813
7813
|
onLoad: (m) => Hn(c),
|
|
7814
7814
|
onError: (m) => Ln(c)
|
|
7815
7815
|
}, null, 42, yg)) : ne("", !0),
|
|
7816
|
-
te(c) ? (
|
|
7816
|
+
te(c) ? (k(), x("span", {
|
|
7817
7817
|
key: 1,
|
|
7818
7818
|
class: Ye(["card-recommendation__view-option-icon", `card-recommendation__view-option-icon--${c.icon}`]),
|
|
7819
7819
|
"aria-hidden": "true"
|
|
7820
7820
|
}, null, 2)) : ne("", !0),
|
|
7821
|
-
he(c) ? (
|
|
7821
|
+
he(c) ? (k(), x("span", bg)) : ne("", !0),
|
|
7822
7822
|
v("span", vg, J(c.label), 1),
|
|
7823
|
-
c.item ? (
|
|
7823
|
+
c.item ? (k(), x("span", _g, J(c.statusLabel || Hd(i, c.item)), 1)) : ne("", !0)
|
|
7824
7824
|
], 10, gg))), 128))
|
|
7825
7825
|
]),
|
|
7826
|
-
tt(i) > 1 ? (
|
|
7826
|
+
tt(i) > 1 ? (k(), x("div", Cg, [
|
|
7827
7827
|
v("button", {
|
|
7828
7828
|
type: "button",
|
|
7829
7829
|
class: "card-recommendation__switch-page",
|
|
@@ -7843,7 +7843,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7843
7843
|
}, " 下一页 ", 40, kg)
|
|
7844
7844
|
])) : ne("", !0)
|
|
7845
7845
|
])) : ne("", !0),
|
|
7846
|
-
zd(i) ? (
|
|
7846
|
+
zd(i) ? (k(), x("div", {
|
|
7847
7847
|
key: 1,
|
|
7848
7848
|
class: "card-recommendation__chart-preview",
|
|
7849
7849
|
"data-chart-type": Vd(i),
|
|
@@ -7882,33 +7882,33 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7882
7882
|
option: So(i),
|
|
7883
7883
|
height: Ce(i)
|
|
7884
7884
|
}, null, 8, ["option", "height"])
|
|
7885
|
-
], 8, Sg)) : (
|
|
7885
|
+
], 8, Sg)) : (k(), x("div", Rg, [
|
|
7886
7886
|
v("table", null, [
|
|
7887
7887
|
v("thead", null, [
|
|
7888
7888
|
v("tr", null, [
|
|
7889
|
-
(
|
|
7889
|
+
(k(!0), x(Ke, null, ft(ji(i), (c) => (k(), x("th", {
|
|
7890
7890
|
key: c.key
|
|
7891
7891
|
}, J(c.label), 1))), 128))
|
|
7892
7892
|
])
|
|
7893
7893
|
]),
|
|
7894
7894
|
v("tbody", null, [
|
|
7895
|
-
(
|
|
7896
|
-
(
|
|
7895
|
+
(k(!0), x(Ke, null, ft(Cu(i), (c, m) => (k(), x("tr", { key: m }, [
|
|
7896
|
+
(k(!0), x(Ke, null, ft(ji(i), (h) => (k(), x("td", {
|
|
7897
7897
|
key: h.key
|
|
7898
7898
|
}, J(rn(c[h.key])), 1))), 128))
|
|
7899
7899
|
]))), 128))
|
|
7900
7900
|
])
|
|
7901
7901
|
]),
|
|
7902
|
-
Ki(i) > 0 ? (
|
|
7902
|
+
Ki(i) > 0 ? (k(), x("div", Eg, [
|
|
7903
7903
|
v("span", null, "共 " + J(Ki(i)) + " 条", 1),
|
|
7904
|
-
qr(i) > 1 ? (
|
|
7904
|
+
qr(i) > 1 ? (k(), x("span", Pg, J(vu(i)), 1)) : ne("", !0),
|
|
7905
7905
|
v("button", {
|
|
7906
7906
|
type: "button",
|
|
7907
7907
|
class: "card-recommendation__page-button card-recommendation__page-arrow",
|
|
7908
7908
|
disabled: ea(i) <= 1,
|
|
7909
7909
|
onClick: (c) => Ss(i, ea(i) - 1)
|
|
7910
7910
|
}, " ‹ ", 8, Lg),
|
|
7911
|
-
(
|
|
7911
|
+
(k(!0), x(Ke, null, ft(_u(i), (c) => (k(), x("button", {
|
|
7912
7912
|
key: c,
|
|
7913
7913
|
type: "button",
|
|
7914
7914
|
class: Ye(["card-recommendation__page-button", { "card-recommendation__page-current": ea(i) === c }]),
|
|
@@ -7923,9 +7923,9 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7923
7923
|
])) : ne("", !0)
|
|
7924
7924
|
]))
|
|
7925
7925
|
], 42, tg))), 128))
|
|
7926
|
-
])) : (
|
|
7927
|
-
(r = o.draft.fallbackActions) != null && r.length ? (
|
|
7928
|
-
(
|
|
7926
|
+
])) : (k(), x("div", Og, [
|
|
7927
|
+
(r = o.draft.fallbackActions) != null && r.length ? (k(), x("div", Bg, [
|
|
7928
|
+
(k(!0), x(Ke, null, ft(o.draft.fallbackActions, (i) => (k(), x("button", {
|
|
7929
7929
|
key: i.action,
|
|
7930
7930
|
type: "button",
|
|
7931
7931
|
class: "card-recommendation__fallback-action",
|
|
@@ -7937,7 +7937,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7937
7937
|
]);
|
|
7938
7938
|
};
|
|
7939
7939
|
}
|
|
7940
|
-
}), Zg = /* @__PURE__ */ wn(Jg, [["__scopeId", "data-v-
|
|
7940
|
+
}), Zg = /* @__PURE__ */ wn(Jg, [["__scopeId", "data-v-abe448c1"]]), Xg = {
|
|
7941
7941
|
key: 1,
|
|
7942
7942
|
class: "card-recommendation-deferred",
|
|
7943
7943
|
"aria-live": "polite"
|
|
@@ -7970,12 +7970,12 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7970
7970
|
(E) => {
|
|
7971
7971
|
_(), l.value = !E, u.value = !1;
|
|
7972
7972
|
}
|
|
7973
|
-
), ka(_), (E, V) => l.value ? (
|
|
7973
|
+
), ka(_), (E, V) => l.value ? (k(), Jt(Zg, {
|
|
7974
7974
|
key: 0,
|
|
7975
7975
|
draft: e.draft,
|
|
7976
7976
|
onChoose: V[0] || (V[0] = (D, P) => o("choose", D, P)),
|
|
7977
7977
|
onConfigure: V[1] || (V[1] = (D) => o("configure", D))
|
|
7978
|
-
}, null, 8, ["draft"])) : (
|
|
7978
|
+
}, null, 8, ["draft"])) : (k(), x("section", Xg, [
|
|
7979
7979
|
V[2] || (V[2] = v("div", { class: "card-recommendation-deferred__main" }, [
|
|
7980
7980
|
v("div", { class: "card-recommendation-deferred__title" }, "推荐卡片已保留"),
|
|
7981
7981
|
v("div", { class: "card-recommendation-deferred__meta" }, "加载后查看可用候选")
|
|
@@ -7986,7 +7986,7 @@ const Vh = { class: "card-recommendation" }, Qh = { class: "card-recommendation_
|
|
|
7986
7986
|
disabled: u.value,
|
|
7987
7987
|
onClick: T
|
|
7988
7988
|
}, [
|
|
7989
|
-
u.value ? (
|
|
7989
|
+
u.value ? (k(), x("span", ty)) : ne("", !0),
|
|
7990
7990
|
la(" " + J(u.value ? "加载中" : "加载推荐卡片"), 1)
|
|
7991
7991
|
], 8, ey)
|
|
7992
7992
|
]));
|
|
@@ -8358,7 +8358,7 @@ const iy = {
|
|
|
8358
8358
|
const ee = I.split(/[\\/]+/).filter(Boolean);
|
|
8359
8359
|
return ee[ee.length - 1] || I;
|
|
8360
8360
|
}
|
|
8361
|
-
return (f, y) => ye.value ? (
|
|
8361
|
+
return (f, y) => ye.value ? (k(), x("div", iy, [
|
|
8362
8362
|
v("button", {
|
|
8363
8363
|
type: "button",
|
|
8364
8364
|
class: "collapsed-activity__summary codex-turn-process__toggle",
|
|
@@ -8377,21 +8377,21 @@ const iy = {
|
|
|
8377
8377
|
}, null, -1)
|
|
8378
8378
|
])], 2)
|
|
8379
8379
|
], 8, oy),
|
|
8380
|
-
s.expanded ? (
|
|
8380
|
+
s.expanded ? (k(), x("div", {
|
|
8381
8381
|
key: 0,
|
|
8382
8382
|
id: Ge.value,
|
|
8383
8383
|
class: "collapsed-activity__items codex-turn-process__body"
|
|
8384
8384
|
}, [
|
|
8385
|
-
(
|
|
8385
|
+
(k(!0), x(Ke, null, ft(Ae.value, (I) => (k(), x("div", {
|
|
8386
8386
|
key: I.id,
|
|
8387
8387
|
class: "collapsed-activity__task"
|
|
8388
8388
|
}, [
|
|
8389
|
-
I.commentary ? (
|
|
8389
|
+
I.commentary ? (k(), x("article", uy, [
|
|
8390
8390
|
v("div", dy, [
|
|
8391
8391
|
v("span", fy, J(I.commentary.text), 1)
|
|
8392
8392
|
])
|
|
8393
8393
|
])) : ne("", !0),
|
|
8394
|
-
De(I) ? (
|
|
8394
|
+
De(I) ? (k(), x("button", {
|
|
8395
8395
|
key: 1,
|
|
8396
8396
|
type: "button",
|
|
8397
8397
|
class: "codex-turn-process__group-toggle collapsed-activity__invocation-group-toggle",
|
|
@@ -8411,16 +8411,16 @@ const iy = {
|
|
|
8411
8411
|
}, null, -1)
|
|
8412
8412
|
])], 2)
|
|
8413
8413
|
], 8, my)) : ne("", !0),
|
|
8414
|
-
I.items.length > 0 && !xe(I) ? (
|
|
8414
|
+
I.items.length > 0 && !xe(I) ? (k(), x("div", {
|
|
8415
8415
|
key: 2,
|
|
8416
8416
|
id: ht(I),
|
|
8417
8417
|
class: "collapsed-activity__invocations codex-turn-process__tools"
|
|
8418
8418
|
}, [
|
|
8419
|
-
(
|
|
8419
|
+
(k(!0), x(Ke, null, ft(I.items, (ee) => (k(), x("article", {
|
|
8420
8420
|
key: ee.id,
|
|
8421
8421
|
class: Ye(["codex-process-item collapsed-activity__invocation", [`codex-process-item--${ee.viewStatus}`, `is-${ee.status}`]])
|
|
8422
8422
|
}, [
|
|
8423
|
-
X(ee) ? (
|
|
8423
|
+
X(ee) ? (k(), x("button", {
|
|
8424
8424
|
key: 0,
|
|
8425
8425
|
type: "button",
|
|
8426
8426
|
class: "codex-process-item__action-row a2 collapsed-activity__invocation-toggle",
|
|
@@ -8447,7 +8447,7 @@ const iy = {
|
|
|
8447
8447
|
class: Ye(["collapsed-activity__invocation-arrow", { "is-open": !ke(ee) }]),
|
|
8448
8448
|
"aria-hidden": "true"
|
|
8449
8449
|
}, null, 2)
|
|
8450
|
-
], 8, gy)) : (
|
|
8450
|
+
], 8, gy)) : (k(), x("div", by, [
|
|
8451
8451
|
v("span", vy, [
|
|
8452
8452
|
v("span", _y, J(ee.titleLabel), 1)
|
|
8453
8453
|
]),
|
|
@@ -8455,19 +8455,19 @@ const iy = {
|
|
|
8455
8455
|
class: Ye(["codex-process-item__status-hint", `is-${ee.viewStatus}`])
|
|
8456
8456
|
}, J(tt(ee)), 3)
|
|
8457
8457
|
])),
|
|
8458
|
-
X(ee) && !ke(ee) ? (
|
|
8458
|
+
X(ee) && !ke(ee) ? (k(), x("div", {
|
|
8459
8459
|
key: 2,
|
|
8460
8460
|
id: qe(ee),
|
|
8461
8461
|
class: "collapsed-activity__invocation-detail codex-process-item__details"
|
|
8462
8462
|
}, [
|
|
8463
|
-
C(ee.inputSummary) ? (
|
|
8463
|
+
C(ee.inputSummary) ? (k(), x("section", Ay, [
|
|
8464
8464
|
y[3] || (y[3] = v("h4", null, "输入", -1)),
|
|
8465
8465
|
v("pre", null, J(ee.inputSummary), 1)
|
|
8466
8466
|
])) : ne("", !0),
|
|
8467
|
-
z(ee) ? (
|
|
8467
|
+
z(ee) ? (k(), x("section", ky, [
|
|
8468
8468
|
y[4] || (y[4] = v("h4", { class: "is-error" }, "错误", -1)),
|
|
8469
8469
|
v("pre", Sy, J(z(ee)), 1)
|
|
8470
|
-
])) : le(ee) ? (
|
|
8470
|
+
])) : le(ee) ? (k(), x("section", wy, [
|
|
8471
8471
|
y[5] || (y[5] = v("h4", null, "输出", -1)),
|
|
8472
8472
|
v("pre", null, J(le(ee)), 1)
|
|
8473
8473
|
])) : ne("", !0)
|
|
@@ -8475,13 +8475,13 @@ const iy = {
|
|
|
8475
8475
|
], 2))), 128))
|
|
8476
8476
|
], 8, hy)) : ne("", !0)
|
|
8477
8477
|
]))), 128)),
|
|
8478
|
-
(
|
|
8478
|
+
(k(!0), x(Ke, null, ft(U.value.filter((I) => I.error), (I) => (k(), x("div", {
|
|
8479
8479
|
key: `error-${I.id}`,
|
|
8480
8480
|
class: "collapsed-activity__error"
|
|
8481
8481
|
}, [
|
|
8482
8482
|
v("span", Ty, J(I.error), 1)
|
|
8483
8483
|
]))), 128)),
|
|
8484
|
-
se.value ? (
|
|
8484
|
+
se.value ? (k(), x("div", xy, J(se.value), 1)) : ne("", !0)
|
|
8485
8485
|
], 8, ly)) : ne("", !0)
|
|
8486
8486
|
])) : ne("", !0);
|
|
8487
8487
|
}
|
|
@@ -8539,20 +8539,20 @@ const iy = {
|
|
|
8539
8539
|
};
|
|
8540
8540
|
return P[D] ? P[D] : D.replace("card.", "").replace(".", " / ");
|
|
8541
8541
|
}
|
|
8542
|
-
return (D, P) => (
|
|
8542
|
+
return (D, P) => (k(), x("div", Ey, [
|
|
8543
8543
|
P[5] || (P[5] = v("div", { class: "plan-draft__header" }, "工作台方案确认", -1)),
|
|
8544
8544
|
v("div", Py, [
|
|
8545
|
-
(
|
|
8545
|
+
(k(!0), x(Ke, null, ft(e.draft.blocks, (R) => (k(), x("div", {
|
|
8546
8546
|
key: R.blockId,
|
|
8547
8547
|
class: "plan-draft__block"
|
|
8548
8548
|
}, [
|
|
8549
8549
|
v("span", Ly, J(R.title), 1),
|
|
8550
8550
|
v("span", My, J(V(R.capabilityId)) + " · " + J(R.layout.w) + "×" + J(R.layout.h), 1),
|
|
8551
|
-
R.confidence < 0.7 ? (
|
|
8551
|
+
R.confidence < 0.7 ? (k(), x("span", Dy, "?")) : ne("", !0)
|
|
8552
8552
|
]))), 128))
|
|
8553
8553
|
]),
|
|
8554
|
-
s.autoInsert ? (
|
|
8555
|
-
!s.autoInsert && l.value ? (
|
|
8554
|
+
s.autoInsert ? (k(), x("div", Oy, " 识别完成后将自动应用到画布 ")) : ne("", !0),
|
|
8555
|
+
!s.autoInsert && l.value ? (k(), x("div", By, [
|
|
8556
8556
|
cs(v("textarea", {
|
|
8557
8557
|
"onUpdate:modelValue": P[0] || (P[0] = (R) => u.value = R),
|
|
8558
8558
|
class: "plan-draft__modify-input",
|
|
@@ -8573,7 +8573,7 @@ const iy = {
|
|
|
8573
8573
|
onClick: P[1] || (P[1] = (R) => l.value = !1)
|
|
8574
8574
|
}, "取消")
|
|
8575
8575
|
])
|
|
8576
|
-
])) : s.autoInsert ? ne("", !0) : (
|
|
8576
|
+
])) : s.autoInsert ? ne("", !0) : (k(), x("div", Fy, [
|
|
8577
8577
|
v("button", {
|
|
8578
8578
|
type: "button",
|
|
8579
8579
|
class: "plan-draft__btn plan-draft__btn--primary",
|
|
@@ -8888,7 +8888,7 @@ const iy = {
|
|
|
8888
8888
|
Oe(), kt();
|
|
8889
8889
|
}), (C, z) => {
|
|
8890
8890
|
var le;
|
|
8891
|
-
return
|
|
8891
|
+
return k(), x("div", {
|
|
8892
8892
|
class: Ye(["chat-msg", [
|
|
8893
8893
|
`chat-msg--${e.message.role}`,
|
|
8894
8894
|
{
|
|
@@ -8898,43 +8898,43 @@ const iy = {
|
|
|
8898
8898
|
}
|
|
8899
8899
|
]])
|
|
8900
8900
|
}, [
|
|
8901
|
-
e.message.error && e.message.role === "status" ? (
|
|
8901
|
+
e.message.error && e.message.role === "status" ? (k(), x("div", Hy, [
|
|
8902
8902
|
z[6] || (z[6] = v("div", { class: "chat-msg__error-title" }, "请求失败", -1)),
|
|
8903
8903
|
v("div", qy, J(e.message.error), 1)
|
|
8904
8904
|
])) : ne("", !0),
|
|
8905
|
-
e.message.role === "assistant" && Et.value.length > 0 ? (
|
|
8905
|
+
e.message.role === "assistant" && Et.value.length > 0 ? (k(), Jt(Ry, {
|
|
8906
8906
|
key: 1,
|
|
8907
8907
|
class: "chat-msg__thinking-process",
|
|
8908
8908
|
messages: Et.value,
|
|
8909
8909
|
"turn-active": e.message.loading || e.message.streaming
|
|
8910
8910
|
}, null, 8, ["messages", "turn-active"])) : ne("", !0),
|
|
8911
|
-
!e.message.loading && e.message.content && Y.value ? (
|
|
8911
|
+
!e.message.loading && e.message.content && Y.value ? (k(), x("div", {
|
|
8912
8912
|
key: 2,
|
|
8913
8913
|
class: Ye(["chat-msg__text", { "chat-msg__text--reveal": et.value }]),
|
|
8914
8914
|
innerHTML: Y.value
|
|
8915
8915
|
}, null, 10, zy)) : ne("", !0),
|
|
8916
|
-
(
|
|
8916
|
+
(k(!0), x(Ke, null, ft(ye.value ? fe.value : [], (X, ke) => (k(), x("section", {
|
|
8917
8917
|
key: `${e.message.id}-query-result-table-${ke}`,
|
|
8918
8918
|
class: "chat-msg__query-result-table"
|
|
8919
8919
|
}, [
|
|
8920
|
-
X.title || pe(X) ? (
|
|
8921
|
-
X.title ? (
|
|
8922
|
-
pe(X) ? (
|
|
8920
|
+
X.title || pe(X) ? (k(), x("header", Wy, [
|
|
8921
|
+
X.title ? (k(), x("div", Uy, J(X.title), 1)) : ne("", !0),
|
|
8922
|
+
pe(X) ? (k(), x("div", jy, J(pe(X)), 1)) : ne("", !0)
|
|
8923
8923
|
])) : ne("", !0),
|
|
8924
8924
|
v("div", Ky, [
|
|
8925
8925
|
v("table", null, [
|
|
8926
8926
|
v("thead", null, [
|
|
8927
8927
|
v("tr", null, [
|
|
8928
|
-
(
|
|
8928
|
+
(k(!0), x(Ke, null, ft(X.columns, (Pe) => (k(), x("th", {
|
|
8929
8929
|
key: Pe.key
|
|
8930
8930
|
}, J(Pe.label), 1))), 128))
|
|
8931
8931
|
])
|
|
8932
8932
|
]),
|
|
8933
8933
|
v("tbody", null, [
|
|
8934
|
-
(
|
|
8934
|
+
(k(!0), x(Ke, null, ft(X.rows, (Pe, qe) => (k(), x("tr", {
|
|
8935
8935
|
key: F(X, Pe, qe)
|
|
8936
8936
|
}, [
|
|
8937
|
-
(
|
|
8937
|
+
(k(!0), x(Ke, null, ft(X.columns, (lt) => (k(), x("td", {
|
|
8938
8938
|
key: lt.key
|
|
8939
8939
|
}, J(re(Pe, lt.key)), 1))), 128))
|
|
8940
8940
|
]))), 128))
|
|
@@ -8942,8 +8942,8 @@ const iy = {
|
|
|
8942
8942
|
])
|
|
8943
8943
|
])
|
|
8944
8944
|
]))), 128)),
|
|
8945
|
-
He.value.length > 0 ? (
|
|
8946
|
-
(
|
|
8945
|
+
He.value.length > 0 ? (k(), x("div", Vy, [
|
|
8946
|
+
(k(!0), x(Ke, null, ft(He.value, (X) => (k(), x("button", {
|
|
8947
8947
|
key: X,
|
|
8948
8948
|
type: "button",
|
|
8949
8949
|
class: "chat-msg__follow-up-action",
|
|
@@ -8951,7 +8951,7 @@ const iy = {
|
|
|
8951
8951
|
onClick: (ke) => Ee(X)
|
|
8952
8952
|
}, J(X), 9, Qy))), 128))
|
|
8953
8953
|
])) : ne("", !0),
|
|
8954
|
-
!e.message.loading && P.value.length > 0 ? (
|
|
8954
|
+
!e.message.loading && P.value.length > 0 ? (k(), x("div", {
|
|
8955
8955
|
key: 4,
|
|
8956
8956
|
class: Ye(["chat-msg__attachments", `chat-msg__attachments--${e.message.role}`])
|
|
8957
8957
|
}, [
|
|
@@ -8965,18 +8965,18 @@ const iy = {
|
|
|
8965
8965
|
onDownload: L
|
|
8966
8966
|
}, null, 8, ["items", "actions", "file-matchers", "variant"])
|
|
8967
8967
|
], 2)) : ne("", !0),
|
|
8968
|
-
j.value ? (
|
|
8969
|
-
(
|
|
8968
|
+
j.value ? (k(), x("div", Yy, [
|
|
8969
|
+
(k(!0), x(Ke, null, ft(Q.value, (X) => (k(), Jt(yh, {
|
|
8970
8970
|
key: X.id,
|
|
8971
8971
|
card: X,
|
|
8972
8972
|
"show-insert-action": U.value,
|
|
8973
8973
|
onInsertCard: (ke) => l("insertCard", ke)
|
|
8974
8974
|
}, null, 8, ["card", "show-insert-action", "onInsertCard"]))), 128))
|
|
8975
8975
|
])) : ne("", !0),
|
|
8976
|
-
e.message.role === "assistant" && !e.message.loading && ce.value ? (
|
|
8976
|
+
e.message.role === "assistant" && !e.message.loading && ce.value ? (k(), x("div", Jy, [
|
|
8977
8977
|
v("div", Zy, J(se.value), 1),
|
|
8978
8978
|
v("div", Xy, [
|
|
8979
|
-
(
|
|
8979
|
+
(k(!0), x(Ke, null, ft(ge.value, (X) => (k(), x("button", {
|
|
8980
8980
|
key: X.index,
|
|
8981
8981
|
type: "button",
|
|
8982
8982
|
class: "chat-msg__task-choice-action",
|
|
@@ -8987,7 +8987,7 @@ const iy = {
|
|
|
8987
8987
|
v("span", tb, J(X.index), 1),
|
|
8988
8988
|
v("span", nb, J(X.label), 1)
|
|
8989
8989
|
], 8, eb))), 128)),
|
|
8990
|
-
Tt.value ? (
|
|
8990
|
+
Tt.value ? (k(), x("button", {
|
|
8991
8991
|
key: 0,
|
|
8992
8992
|
type: "button",
|
|
8993
8993
|
class: "chat-msg__task-choice-cancel",
|
|
@@ -8996,7 +8996,7 @@ const iy = {
|
|
|
8996
8996
|
}, J((le = e.message.taskStateDraft) == null ? void 0 : le.cancelPhrase), 9, ab)) : ne("", !0)
|
|
8997
8997
|
])
|
|
8998
8998
|
])) : ne("", !0),
|
|
8999
|
-
e.message.role === "assistant" && !e.message.loading && e.message.planDraft ? (
|
|
8999
|
+
e.message.role === "assistant" && !e.message.loading && e.message.planDraft ? (k(), x("div", rb, [
|
|
9000
9000
|
nt(Gy, {
|
|
9001
9001
|
draft: e.message.planDraft,
|
|
9002
9002
|
"auto-insert": e.autoInsertComposePlan,
|
|
@@ -9006,7 +9006,7 @@ const iy = {
|
|
|
9006
9006
|
onAutoInsertChange: z[3] || (z[3] = (X) => l("autoInsertComposePlanChange", X))
|
|
9007
9007
|
}, null, 8, ["draft", "auto-insert"])
|
|
9008
9008
|
])) : ne("", !0),
|
|
9009
|
-
e.message.role === "assistant" && !e.message.loading && e.message.cardRecommendationDraft && !j.value ? (
|
|
9009
|
+
e.message.role === "assistant" && !e.message.loading && e.message.cardRecommendationDraft && !j.value ? (k(), x("div", sb, [
|
|
9010
9010
|
nt(ay, {
|
|
9011
9011
|
draft: e.message.cardRecommendationDraft,
|
|
9012
9012
|
defer: e.message.deferCardRecommendationRender,
|
|
@@ -9014,21 +9014,21 @@ const iy = {
|
|
|
9014
9014
|
onConfigure: z[5] || (z[5] = (X) => l("configureCardRecommendation", X))
|
|
9015
9015
|
}, null, 8, ["draft", "defer"])
|
|
9016
9016
|
])) : ne("", !0),
|
|
9017
|
-
e.message.role === "assistant" && !e.message.loading && ve.value ? (
|
|
9017
|
+
e.message.role === "assistant" && !e.message.loading && ve.value ? (k(), x("section", ib, [
|
|
9018
9018
|
v("header", ob, [
|
|
9019
9019
|
v("div", cb, [
|
|
9020
9020
|
v("div", lb, J(ve.value.taskKindLabel), 1),
|
|
9021
9021
|
v("div", ub, J(ve.value.title), 1)
|
|
9022
9022
|
]),
|
|
9023
|
-
gt.value ? (
|
|
9023
|
+
gt.value ? (k(), x("span", {
|
|
9024
9024
|
key: 0,
|
|
9025
9025
|
class: Ye(["chat-msg__task-status", `chat-msg__task-status--${ve.value.statusTone}`])
|
|
9026
9026
|
}, J(ve.value.statusLabel), 3)) : ne("", !0)
|
|
9027
9027
|
]),
|
|
9028
|
-
Ae.value.length > 0 ? (
|
|
9028
|
+
Ae.value.length > 0 ? (k(), x("div", db, [
|
|
9029
9029
|
z[7] || (z[7] = v("div", { class: "chat-msg__task-section-title" }, "已收集字段", -1)),
|
|
9030
9030
|
v("dl", fb, [
|
|
9031
|
-
(
|
|
9031
|
+
(k(!0), x(Ke, null, ft(Ae.value, (X) => (k(), x(Ke, {
|
|
9032
9032
|
key: X.code
|
|
9033
9033
|
}, [
|
|
9034
9034
|
v("dt", mb, J(X.name), 1),
|
|
@@ -9036,25 +9036,25 @@ const iy = {
|
|
|
9036
9036
|
], 64))), 128))
|
|
9037
9037
|
])
|
|
9038
9038
|
])) : ne("", !0),
|
|
9039
|
-
ve.value.missingFields.length > 0 ? (
|
|
9039
|
+
ve.value.missingFields.length > 0 ? (k(), x("div", hb, [
|
|
9040
9040
|
z[8] || (z[8] = v("div", { class: "chat-msg__task-section-title" }, "待补充字段", -1)),
|
|
9041
9041
|
v("div", gb, [
|
|
9042
|
-
(
|
|
9042
|
+
(k(!0), x(Ke, null, ft(ve.value.missingFields, (X) => (k(), x("span", {
|
|
9043
9043
|
key: X.code,
|
|
9044
9044
|
class: "chat-msg__task-missing"
|
|
9045
9045
|
}, J(X.name), 1))), 128))
|
|
9046
9046
|
])
|
|
9047
9047
|
])) : ne("", !0),
|
|
9048
|
-
ve.value.lastErrorMessage ? (
|
|
9049
|
-
ve.value.resultSummary ? (
|
|
9050
|
-
Tt.value ? (
|
|
9048
|
+
ve.value.lastErrorMessage ? (k(), x("div", yb, J(ve.value.lastErrorMessage), 1)) : ne("", !0),
|
|
9049
|
+
ve.value.resultSummary ? (k(), x("div", bb, J(ve.value.resultSummary), 1)) : ne("", !0),
|
|
9050
|
+
Tt.value ? (k(), x("div", vb, [
|
|
9051
9051
|
v("button", {
|
|
9052
9052
|
type: "button",
|
|
9053
9053
|
class: "chat-msg__task-action chat-msg__task-action--cancel",
|
|
9054
9054
|
disabled: e.taskStateActionsDisabled,
|
|
9055
9055
|
onClick: _t
|
|
9056
9056
|
}, J(ve.value.cancelPhrase), 9, _b),
|
|
9057
|
-
we.value ? (
|
|
9057
|
+
we.value ? (k(), x("button", {
|
|
9058
9058
|
key: 0,
|
|
9059
9059
|
type: "button",
|
|
9060
9060
|
class: "chat-msg__task-action chat-msg__task-action--confirm",
|
|
@@ -9063,11 +9063,11 @@ const iy = {
|
|
|
9063
9063
|
}, J(ve.value.confirmPhrase), 9, Cb)) : ne("", !0)
|
|
9064
9064
|
])) : ne("", !0)
|
|
9065
9065
|
])) : ne("", !0),
|
|
9066
|
-
e.message.role === "assistant" && !e.message.loading && e.message.memoryCaptureDraft && Je.value !== "dismissed" ? (
|
|
9066
|
+
e.message.role === "assistant" && !e.message.loading && e.message.memoryCaptureDraft && Je.value !== "dismissed" ? (k(), x("div", Ab, [
|
|
9067
9067
|
v("div", kb, J(e.message.memoryCaptureDraft.title), 1),
|
|
9068
9068
|
v("div", Sb, J(e.message.memoryCaptureDraft.content), 1),
|
|
9069
9069
|
v("div", wb, [
|
|
9070
|
-
Je.value === "draft" ? (
|
|
9070
|
+
Je.value === "draft" ? (k(), x("button", {
|
|
9071
9071
|
key: 0,
|
|
9072
9072
|
type: "button",
|
|
9073
9073
|
class: "chat-msg__memory-action chat-msg__memory-action--secondary",
|
|
@@ -9081,7 +9081,7 @@ const iy = {
|
|
|
9081
9081
|
}, J(yt.value), 9, Tb)
|
|
9082
9082
|
])
|
|
9083
9083
|
])) : ne("", !0),
|
|
9084
|
-
e.message.role === "status" && e.message.detail ? (
|
|
9084
|
+
e.message.role === "status" && e.message.detail ? (k(), x("div", xb, [
|
|
9085
9085
|
v("div", Ib, [
|
|
9086
9086
|
v("span", {
|
|
9087
9087
|
class: "detail-toggle",
|
|
@@ -9193,16 +9193,16 @@ const iy = {
|
|
|
9193
9193
|
Q();
|
|
9194
9194
|
},
|
|
9195
9195
|
{ immediate: !0 }
|
|
9196
|
-
), qc(ye), ka(Q), (ge, se) => (
|
|
9196
|
+
), qc(ye), ka(Q), (ge, se) => (k(), x("div", {
|
|
9197
9197
|
ref_key: "scrollRef",
|
|
9198
9198
|
ref: u,
|
|
9199
9199
|
class: "chat-message-list",
|
|
9200
9200
|
onScroll: fe
|
|
9201
9201
|
}, [
|
|
9202
|
-
(
|
|
9202
|
+
(k(!0), x(Ke, null, ft(V.value, (He) => (k(), x(Ke, {
|
|
9203
9203
|
key: R(He)
|
|
9204
9204
|
}, [
|
|
9205
|
-
He.type === "user" ? (
|
|
9205
|
+
He.type === "user" ? (k(), Jt(Nc, {
|
|
9206
9206
|
key: 0,
|
|
9207
9207
|
ref_for: !0,
|
|
9208
9208
|
ref: (ce) => pe(He.message.id, ce),
|
|
@@ -9222,7 +9222,7 @@ const iy = {
|
|
|
9222
9222
|
onModifyPlan: se[9] || (se[9] = (ce, ve) => l("modifyPlan", ce, ve)),
|
|
9223
9223
|
onSendFollowUp: se[10] || (se[10] = (ce) => l("sendFollowUp", ce)),
|
|
9224
9224
|
onAutoInsertComposePlanChange: se[11] || (se[11] = (ce) => l("autoInsertComposePlanChange", ce))
|
|
9225
|
-
}, null, 8, ["message", "messages", "auto-insert-compose-plan", "task-state-actions-disabled"])) : He.type === "assistant" ? (
|
|
9225
|
+
}, null, 8, ["message", "messages", "auto-insert-compose-plan", "task-state-actions-disabled"])) : He.type === "assistant" ? (k(), Jt(Nc, {
|
|
9226
9226
|
key: 1,
|
|
9227
9227
|
ref_for: !0,
|
|
9228
9228
|
ref: (ce) => pe(He.message.id, ce),
|
|
@@ -9241,7 +9241,7 @@ const iy = {
|
|
|
9241
9241
|
onModifyPlan: se[21] || (se[21] = (ce, ve) => l("modifyPlan", ce, ve)),
|
|
9242
9242
|
onSendFollowUp: se[22] || (se[22] = (ce) => l("sendFollowUp", ce)),
|
|
9243
9243
|
onAutoInsertComposePlanChange: se[23] || (se[23] = (ce) => l("autoInsertComposePlanChange", ce))
|
|
9244
|
-
}, null, 8, ["message", "messages", "task-state-actions-disabled"])) : U(He) ? (
|
|
9244
|
+
}, null, 8, ["message", "messages", "task-state-actions-disabled"])) : U(He) ? (k(), x("div", Lb, " 思考中 " + J(_.value) + "s ", 1)) : ne("", !0)
|
|
9245
9245
|
], 64))), 128))
|
|
9246
9246
|
], 544));
|
|
9247
9247
|
}
|
|
@@ -9577,7 +9577,7 @@ ${y}` : f.businessGroupName;
|
|
|
9577
9577
|
window.removeEventListener("resize", St), document.removeEventListener("pointerdown", Be, !0);
|
|
9578
9578
|
})), ka(() => {
|
|
9579
9579
|
ge.value = 0, ye.value = !1, et();
|
|
9580
|
-
}), (f, y) => (
|
|
9580
|
+
}), (f, y) => (k(), x("div", Ob, [
|
|
9581
9581
|
v("div", {
|
|
9582
9582
|
class: Ye(["chat-sender__surface", { "chat-sender__surface--dragging": ye.value }]),
|
|
9583
9583
|
onDragenter: kt,
|
|
@@ -9602,7 +9602,7 @@ ${y}` : f.businessGroupName;
|
|
|
9602
9602
|
}, null, 40, Bb), [
|
|
9603
9603
|
[ls, u.value]
|
|
9604
9604
|
]),
|
|
9605
|
-
Tt.value.length ? (
|
|
9605
|
+
Tt.value.length ? (k(), x("div", $b, [
|
|
9606
9606
|
nt(Me(jc), {
|
|
9607
9607
|
items: Tt.value,
|
|
9608
9608
|
actions: ve,
|
|
@@ -9611,13 +9611,13 @@ ${y}` : f.businessGroupName;
|
|
|
9611
9611
|
wrap: "",
|
|
9612
9612
|
onRemove: ht
|
|
9613
9613
|
}, null, 8, ["items", "variant"]),
|
|
9614
|
-
(
|
|
9614
|
+
(k(!0), x(Ke, null, ft(Q.value.filter((I) => I.type === "file"), (I) => (k(), x("div", {
|
|
9615
9615
|
key: I.id,
|
|
9616
9616
|
class: "chat-sender__attachment-name"
|
|
9617
9617
|
}, J(I.file.name), 1))), 128))
|
|
9618
9618
|
])) : ne("", !0),
|
|
9619
|
-
Ge.value ? (
|
|
9620
|
-
Ae.value ? (
|
|
9619
|
+
Ge.value ? (k(), x("div", Fb, J(Ge.value), 1)) : ne("", !0),
|
|
9620
|
+
Ae.value ? (k(), x("div", Nb, "正在准备图片附件…")) : ne("", !0),
|
|
9621
9621
|
v("input", {
|
|
9622
9622
|
ref_key: "attachmentInputRef",
|
|
9623
9623
|
ref: fe,
|
|
@@ -9665,7 +9665,7 @@ ${y}` : f.businessGroupName;
|
|
|
9665
9665
|
onClick: en
|
|
9666
9666
|
}, [
|
|
9667
9667
|
y[4] || (y[4] = v("span", { class: "chat-sender__business-label" }, "业务分组", -1)),
|
|
9668
|
-
e.selectedBusinessGroup ? (
|
|
9668
|
+
e.selectedBusinessGroup ? (k(), x("span", {
|
|
9669
9669
|
key: 0,
|
|
9670
9670
|
class: "chat-sender__business-tag",
|
|
9671
9671
|
"aria-label": e.selectedBusinessGroup.businessGroupName
|
|
@@ -9690,7 +9690,7 @@ ${y}` : f.businessGroupName;
|
|
|
9690
9690
|
]),
|
|
9691
9691
|
v("div", jb, [
|
|
9692
9692
|
wr(f.$slots, "history", {}, void 0, !0),
|
|
9693
|
-
e.loading ? (
|
|
9693
|
+
e.loading ? (k(), x("button", {
|
|
9694
9694
|
key: 0,
|
|
9695
9695
|
"data-testid": "chat-cancel",
|
|
9696
9696
|
type: "button",
|
|
@@ -9707,7 +9707,7 @@ ${y}` : f.businessGroupName;
|
|
|
9707
9707
|
class: "chat-sender__stop-core",
|
|
9708
9708
|
"aria-hidden": "true"
|
|
9709
9709
|
}, null, -1)
|
|
9710
|
-
])])) : (
|
|
9710
|
+
])])) : (k(), x("button", {
|
|
9711
9711
|
key: 1,
|
|
9712
9712
|
type: "button",
|
|
9713
9713
|
class: "chat-sender__send",
|
|
@@ -9722,8 +9722,8 @@ ${y}` : f.businessGroupName;
|
|
|
9722
9722
|
])
|
|
9723
9723
|
])
|
|
9724
9724
|
], 34),
|
|
9725
|
-
(
|
|
9726
|
-
T.value ? (
|
|
9725
|
+
(k(), Jt(Er, { to: "body" }, [
|
|
9726
|
+
T.value ? (k(), x("div", {
|
|
9727
9727
|
key: 0,
|
|
9728
9728
|
ref_key: "businessGroupPopoverRef",
|
|
9729
9729
|
ref: D,
|
|
@@ -9743,12 +9743,12 @@ ${y}` : f.businessGroupName;
|
|
|
9743
9743
|
[ls, E.value]
|
|
9744
9744
|
]),
|
|
9745
9745
|
v("div", Qb, [
|
|
9746
|
-
e.businessGroupLoading ? (
|
|
9746
|
+
e.businessGroupLoading ? (k(), x("div", Yb, [
|
|
9747
9747
|
nt(Me(ni)),
|
|
9748
9748
|
y[6] || (y[6] = v("span", null, "加载中", -1))
|
|
9749
|
-
])) : e.businessGroupError ? (
|
|
9749
|
+
])) : e.businessGroupError ? (k(), x("div", Jb, J(e.businessGroupError), 1)) : (k(!0), x(Ke, { key: 2 }, ft(yt.value, (I) => {
|
|
9750
9750
|
var ee, Te;
|
|
9751
|
-
return
|
|
9751
|
+
return k(), x("button", {
|
|
9752
9752
|
key: I.businessGroupCode,
|
|
9753
9753
|
type: "button",
|
|
9754
9754
|
class: Ye(["chat-sender__business-option", { "chat-sender__business-option--active": I.businessGroupCode === ((ee = e.selectedBusinessGroup) == null ? void 0 : ee.businessGroupCode) }]),
|
|
@@ -9787,12 +9787,12 @@ ${y}` : f.businessGroupName;
|
|
|
9787
9787
|
])
|
|
9788
9788
|
], 10, Zb);
|
|
9789
9789
|
}), 128)),
|
|
9790
|
-
!e.businessGroupLoading && yt.value.length === 0 ? (
|
|
9790
|
+
!e.businessGroupLoading && yt.value.length === 0 ? (k(), x("div", rv, " 暂无匹配分组 ")) : ne("", !0)
|
|
9791
9791
|
])
|
|
9792
9792
|
], 44, Vb)) : ne("", !0)
|
|
9793
9793
|
])),
|
|
9794
|
-
(
|
|
9795
|
-
U.value ? (
|
|
9794
|
+
(k(), Jt(Er, { to: "body" }, [
|
|
9795
|
+
U.value ? (k(), x("div", {
|
|
9796
9796
|
key: 0,
|
|
9797
9797
|
class: "chat-sender__business-floating-tooltip",
|
|
9798
9798
|
style: ti(U.value.style),
|
|
@@ -9817,7 +9817,7 @@ ${y}` : f.businessGroupName;
|
|
|
9817
9817
|
const _ = s.usage.estimatedTokens.toLocaleString(), T = s.usage.contextWindow.toLocaleString();
|
|
9818
9818
|
return s.loading ? "正在压缩上下文" : s.disabled ? "当前对话处理中,完成后可压缩上下文" : `上下文占用约 ${s.usage.percent}%(估算 ${_} / ${T} tokens),点击压缩当前对话`;
|
|
9819
9819
|
}), u = 2 * Math.PI * 14, g = ie(() => u * (1 - s.usage.percent / 100));
|
|
9820
|
-
return (_, T) => (
|
|
9820
|
+
return (_, T) => (k(), x("button", {
|
|
9821
9821
|
type: "button",
|
|
9822
9822
|
class: Ye(["context-usage", [e.usage.level, { loading: e.loading }]]),
|
|
9823
9823
|
title: l.value,
|
|
@@ -9826,7 +9826,7 @@ ${y}` : f.businessGroupName;
|
|
|
9826
9826
|
"data-testid": "context-usage-control",
|
|
9827
9827
|
onClick: T[0] || (T[0] = (E) => o("compact"))
|
|
9828
9828
|
}, [
|
|
9829
|
-
(
|
|
9829
|
+
(k(), x("svg", uv, [
|
|
9830
9830
|
T[1] || (T[1] = v("circle", {
|
|
9831
9831
|
class: "ring-track",
|
|
9832
9832
|
cx: "18",
|
|
@@ -9972,7 +9972,7 @@ ${y}` : f.businessGroupName;
|
|
|
9972
9972
|
{ immediate: !0 }
|
|
9973
9973
|
), ka(() => {
|
|
9974
9974
|
u && (clearInterval(u), u = null);
|
|
9975
|
-
}), (fe, ye) => e.plan && g.value > 0 ? (
|
|
9975
|
+
}), (fe, ye) => e.plan && g.value > 0 ? (k(), x("section", {
|
|
9976
9976
|
key: 0,
|
|
9977
9977
|
class: Ye(["task-todo-plan", {
|
|
9978
9978
|
"task-todo-plan--active": e.plan.active,
|
|
@@ -9988,31 +9988,31 @@ ${y}` : f.businessGroupName;
|
|
|
9988
9988
|
"data-testid": "task-todo-plan-summary",
|
|
9989
9989
|
onClick: Ge
|
|
9990
9990
|
}, [
|
|
9991
|
-
(
|
|
9991
|
+
(k(), Jt($o(U.value), {
|
|
9992
9992
|
class: "task-todo-plan__summary-icon",
|
|
9993
9993
|
"aria-hidden": "true"
|
|
9994
9994
|
})),
|
|
9995
9995
|
v("span", hv, J(R.value), 1),
|
|
9996
|
-
E.value && e.plan.active ? (
|
|
9996
|
+
E.value && e.plan.active ? (k(), x("span", gv, J(E.value.title), 1)) : ne("", !0),
|
|
9997
9997
|
nt(Me(sf), {
|
|
9998
9998
|
class: Ye(["task-todo-plan__arrow", { "is-open": s.value }]),
|
|
9999
9999
|
"aria-hidden": "true"
|
|
10000
10000
|
}, null, 8, ["class"])
|
|
10001
10001
|
], 8, pv),
|
|
10002
|
-
s.value ? (
|
|
10003
|
-
(
|
|
10002
|
+
s.value ? (k(), x("div", yv, [
|
|
10003
|
+
(k(!0), x(Ke, null, ft(e.plan.steps, (pe) => (k(), x("div", {
|
|
10004
10004
|
key: pe.id,
|
|
10005
10005
|
class: Ye(["task-todo-plan__step", `task-todo-plan__step--${pe.status}`]),
|
|
10006
10006
|
"data-testid": "task-todo-plan-step"
|
|
10007
10007
|
}, [
|
|
10008
|
-
(
|
|
10008
|
+
(k(), Jt($o(j(pe)), {
|
|
10009
10009
|
class: "task-todo-plan__step-icon",
|
|
10010
10010
|
"aria-hidden": "true"
|
|
10011
10011
|
})),
|
|
10012
10012
|
v("div", bv, [
|
|
10013
10013
|
v("div", vv, J(pe.title), 1),
|
|
10014
|
-
pe.detail ? (
|
|
10015
|
-
pe.error ? (
|
|
10014
|
+
pe.detail ? (k(), x("div", _v, J(pe.detail), 1)) : ne("", !0),
|
|
10015
|
+
pe.error ? (k(), x("div", Cv, J(pe.error), 1)) : ne("", !0)
|
|
10016
10016
|
])
|
|
10017
10017
|
], 2))), 128))
|
|
10018
10018
|
])) : ne("", !0)
|
|
@@ -10846,16 +10846,16 @@ ${y}` : f.businessGroupName;
|
|
|
10846
10846
|
openSettingsPanelFromHost: Te,
|
|
10847
10847
|
setMemoryCaptureStatus: On,
|
|
10848
10848
|
moveMessageToEnd: D.moveMessageToEnd
|
|
10849
|
-
}), (d, p) => (
|
|
10849
|
+
}), (d, p) => (k(), Jt(Me(df), null, {
|
|
10850
10850
|
default: _a(() => [
|
|
10851
10851
|
v("div", Sv, [
|
|
10852
10852
|
v("div", wv, [
|
|
10853
|
-
Ae.value === "chat" ? (
|
|
10853
|
+
Ae.value === "chat" ? (k(), x("div", {
|
|
10854
10854
|
key: 0,
|
|
10855
10855
|
class: Ye(["runtime-chat__topbar", { "runtime-chat__topbar--shadow": He.value }]),
|
|
10856
10856
|
"aria-label": "对话工具"
|
|
10857
10857
|
}, [
|
|
10858
|
-
T.value ? (
|
|
10858
|
+
T.value ? (k(), x("div", Tv, [
|
|
10859
10859
|
wr(d.$slots, "topbar-leading", {}, void 0, !0)
|
|
10860
10860
|
])) : ne("", !0),
|
|
10861
10861
|
v("div", xv, [
|
|
@@ -10878,7 +10878,7 @@ ${y}` : f.businessGroupName;
|
|
|
10878
10878
|
]),
|
|
10879
10879
|
_: 1
|
|
10880
10880
|
}),
|
|
10881
|
-
e.enableChatHistory ? (
|
|
10881
|
+
e.enableChatHistory ? (k(), Jt(Me(gr), {
|
|
10882
10882
|
key: 0,
|
|
10883
10883
|
title: "历史对话",
|
|
10884
10884
|
placement: "bottom",
|
|
@@ -10918,7 +10918,7 @@ ${y}` : f.businessGroupName;
|
|
|
10918
10918
|
])
|
|
10919
10919
|
], 2)) : ne("", !0),
|
|
10920
10920
|
v("div", Rv, [
|
|
10921
|
-
Ae.value === "chat" && ve.value.length > 0 ? (
|
|
10921
|
+
Ae.value === "chat" && ve.value.length > 0 ? (k(), Jt(Db, {
|
|
10922
10922
|
key: 0,
|
|
10923
10923
|
ref_key: "messageListRef",
|
|
10924
10924
|
ref: Ge,
|
|
@@ -10939,7 +10939,7 @@ ${y}` : f.businessGroupName;
|
|
|
10939
10939
|
onSendFollowUp: ct,
|
|
10940
10940
|
onAutoInsertComposePlanChange: p[3] || (p[3] = (S) => l("auto-insert-compose-plan-change", S)),
|
|
10941
10941
|
onScrollPositionChange: jt
|
|
10942
|
-
}, null, 8, ["messages", "hidden-status-message-ids", "auto-insert-compose-plan", "task-state-actions-disabled"])) : Ae.value === "chat" && Me(j) ? (
|
|
10942
|
+
}, null, 8, ["messages", "hidden-status-message-ids", "auto-insert-compose-plan", "task-state-actions-disabled"])) : Ae.value === "chat" && Me(j) ? (k(), x("section", Ev, [...p[15] || (p[15] = [
|
|
10943
10943
|
v("div", {
|
|
10944
10944
|
class: "chat-switching-skeleton__spinner",
|
|
10945
10945
|
"aria-hidden": "true"
|
|
@@ -10950,7 +10950,7 @@ ${y}` : f.businessGroupName;
|
|
|
10950
10950
|
v("div", { class: "chat-switching-skeleton__message chat-switching-skeleton__message--user" }),
|
|
10951
10951
|
v("div", { class: "chat-switching-skeleton__message chat-switching-skeleton__message--assistant" })
|
|
10952
10952
|
], -1)
|
|
10953
|
-
])])) : Ae.value === "chat" ? (
|
|
10953
|
+
])])) : Ae.value === "chat" ? (k(), x("section", {
|
|
10954
10954
|
key: 2,
|
|
10955
10955
|
ref_key: "welcomeWorkspaceRef",
|
|
10956
10956
|
ref: se,
|
|
@@ -10962,7 +10962,7 @@ ${y}` : f.businessGroupName;
|
|
|
10962
10962
|
class: "ai-chat-prologue",
|
|
10963
10963
|
innerHTML: en.value
|
|
10964
10964
|
}, null, 8, Pv)
|
|
10965
|
-
], 544)) : Ae.value === "history" ? (
|
|
10965
|
+
], 544)) : Ae.value === "history" ? (k(), x("section", Lv, [
|
|
10966
10966
|
v("header", {
|
|
10967
10967
|
class: Ye(["chat-panel__header", { "chat-panel__header--with-extra": E.value }])
|
|
10968
10968
|
}, [
|
|
@@ -10975,7 +10975,7 @@ ${y}` : f.businessGroupName;
|
|
|
10975
10975
|
nt(Me(Go))
|
|
10976
10976
|
]),
|
|
10977
10977
|
p[16] || (p[16] = v("h2", { class: "chat-panel__title" }, "历史", -1)),
|
|
10978
|
-
E.value ? (
|
|
10978
|
+
E.value ? (k(), x("div", Mv, [
|
|
10979
10979
|
wr(d.$slots, "utility-header-extra", {}, void 0, !0)
|
|
10980
10980
|
])) : ne("", !0),
|
|
10981
10981
|
v("button", {
|
|
@@ -10988,15 +10988,15 @@ ${y}` : f.businessGroupName;
|
|
|
10988
10988
|
])
|
|
10989
10989
|
], 2),
|
|
10990
10990
|
v("div", Dv, [
|
|
10991
|
-
Me(U) ? (
|
|
10991
|
+
Me(U) ? (k(), x("div", Ov, [...p[17] || (p[17] = [
|
|
10992
10992
|
v("span", {
|
|
10993
10993
|
class: "chat-history-panel__spinner",
|
|
10994
10994
|
"aria-hidden": "true"
|
|
10995
10995
|
}, null, -1),
|
|
10996
10996
|
v("span", null, "正在加载历史对话", -1)
|
|
10997
|
-
])])) : (
|
|
10997
|
+
])])) : (k(), x("section", Bv, [
|
|
10998
10998
|
p[18] || (p[18] = v("h3", { class: "chat-history-group__title" }, "今天", -1)),
|
|
10999
|
-
(
|
|
10999
|
+
(k(!0), x(Ke, null, ft(De.value, (S) => (k(), x("div", {
|
|
11000
11000
|
key: S.id,
|
|
11001
11001
|
class: Ye(["chat-history-item", {
|
|
11002
11002
|
"chat-history-item--active": S.id === pe.value,
|
|
@@ -11012,7 +11012,7 @@ ${y}` : f.businessGroupName;
|
|
|
11012
11012
|
}, [
|
|
11013
11013
|
nt(Me(Ho), { class: "chat-history-item__icon" }),
|
|
11014
11014
|
v("span", Nv, [
|
|
11015
|
-
qt(S.title) ? (
|
|
11015
|
+
qt(S.title) ? (k(), Jt(Me(gr), {
|
|
11016
11016
|
key: 0,
|
|
11017
11017
|
title: S.title,
|
|
11018
11018
|
placement: "topRight",
|
|
@@ -11027,12 +11027,12 @@ ${y}` : f.businessGroupName;
|
|
|
11027
11027
|
], 8, Gv)
|
|
11028
11028
|
]),
|
|
11029
11029
|
_: 2
|
|
11030
|
-
}, 1032, ["title"])) : (
|
|
11030
|
+
}, 1032, ["title"])) : (k(), x("span", {
|
|
11031
11031
|
key: 1,
|
|
11032
11032
|
class: "chat-history-item__title",
|
|
11033
11033
|
"data-testid": `chat-history-title-${S.id}`
|
|
11034
11034
|
}, J(S.title), 9, qv)),
|
|
11035
|
-
Oe(S.updatedAt) ? (
|
|
11035
|
+
Oe(S.updatedAt) ? (k(), x("span", {
|
|
11036
11036
|
key: 2,
|
|
11037
11037
|
class: "chat-history-item__time",
|
|
11038
11038
|
title: Ie(S.updatedAt),
|
|
@@ -11051,7 +11051,7 @@ ${y}` : f.businessGroupName;
|
|
|
11051
11051
|
}, [
|
|
11052
11052
|
nt(Me(qo))
|
|
11053
11053
|
], 8, Uv),
|
|
11054
|
-
M.value === S.id ? (
|
|
11054
|
+
M.value === S.id ? (k(), x("div", {
|
|
11055
11055
|
key: 0,
|
|
11056
11056
|
class: "chat-history-item__menu",
|
|
11057
11057
|
onClick: p[4] || (p[4] = En(() => {
|
|
@@ -11073,9 +11073,9 @@ ${y}` : f.businessGroupName;
|
|
|
11073
11073
|
])
|
|
11074
11074
|
], 10, $v))), 128))
|
|
11075
11075
|
])),
|
|
11076
|
-
Me(U) ? ne("", !0) : (
|
|
11076
|
+
Me(U) ? ne("", !0) : (k(), x("section", Vv, [
|
|
11077
11077
|
p[19] || (p[19] = v("h3", { class: "chat-history-group__title" }, "过去 30 天", -1)),
|
|
11078
|
-
(
|
|
11078
|
+
(k(!0), x(Ke, null, ft(xe.value, (S) => (k(), x("div", {
|
|
11079
11079
|
key: S.id,
|
|
11080
11080
|
class: Ye(["chat-history-item", {
|
|
11081
11081
|
"chat-history-item--active": S.id === pe.value,
|
|
@@ -11091,7 +11091,7 @@ ${y}` : f.businessGroupName;
|
|
|
11091
11091
|
}, [
|
|
11092
11092
|
nt(Me(Ho), { class: "chat-history-item__icon" }),
|
|
11093
11093
|
v("span", Jv, [
|
|
11094
|
-
qt(S.title) ? (
|
|
11094
|
+
qt(S.title) ? (k(), Jt(Me(gr), {
|
|
11095
11095
|
key: 0,
|
|
11096
11096
|
title: S.title,
|
|
11097
11097
|
placement: "topRight",
|
|
@@ -11106,12 +11106,12 @@ ${y}` : f.businessGroupName;
|
|
|
11106
11106
|
], 8, Zv)
|
|
11107
11107
|
]),
|
|
11108
11108
|
_: 2
|
|
11109
|
-
}, 1032, ["title"])) : (
|
|
11109
|
+
}, 1032, ["title"])) : (k(), x("span", {
|
|
11110
11110
|
key: 1,
|
|
11111
11111
|
class: "chat-history-item__title",
|
|
11112
11112
|
"data-testid": `chat-history-title-${S.id}`
|
|
11113
11113
|
}, J(S.title), 9, e_)),
|
|
11114
|
-
Oe(S.updatedAt) ? (
|
|
11114
|
+
Oe(S.updatedAt) ? (k(), x("span", {
|
|
11115
11115
|
key: 2,
|
|
11116
11116
|
class: "chat-history-item__time",
|
|
11117
11117
|
title: Ie(S.updatedAt),
|
|
@@ -11130,7 +11130,7 @@ ${y}` : f.businessGroupName;
|
|
|
11130
11130
|
}, [
|
|
11131
11131
|
nt(Me(qo))
|
|
11132
11132
|
], 8, a_),
|
|
11133
|
-
M.value === S.id ? (
|
|
11133
|
+
M.value === S.id ? (k(), x("div", {
|
|
11134
11134
|
key: 0,
|
|
11135
11135
|
class: "chat-history-item__menu",
|
|
11136
11136
|
onClick: p[5] || (p[5] = En(() => {
|
|
@@ -11152,9 +11152,9 @@ ${y}` : f.businessGroupName;
|
|
|
11152
11152
|
])
|
|
11153
11153
|
], 10, Qv))), 128))
|
|
11154
11154
|
])),
|
|
11155
|
-
!Me(U) && ye.value.length === 0 ? (
|
|
11155
|
+
!Me(U) && ye.value.length === 0 ? (k(), x("div", i_, " 暂无历史对话 ")) : ne("", !0)
|
|
11156
11156
|
])
|
|
11157
|
-
])) : (
|
|
11157
|
+
])) : (k(), x("section", o_, [
|
|
11158
11158
|
v("header", {
|
|
11159
11159
|
class: Ye(["chat-panel__header", { "chat-panel__header--with-extra": E.value }])
|
|
11160
11160
|
}, [
|
|
@@ -11167,7 +11167,7 @@ ${y}` : f.businessGroupName;
|
|
|
11167
11167
|
nt(Me(Go))
|
|
11168
11168
|
]),
|
|
11169
11169
|
p[20] || (p[20] = v("h2", { class: "chat-panel__title" }, "工作台设置", -1)),
|
|
11170
|
-
E.value ? (
|
|
11170
|
+
E.value ? (k(), x("div", c_, [
|
|
11171
11171
|
wr(d.$slots, "utility-header-extra", {}, void 0, !0)
|
|
11172
11172
|
])) : ne("", !0),
|
|
11173
11173
|
v("button", {
|
|
@@ -11180,7 +11180,7 @@ ${y}` : f.businessGroupName;
|
|
|
11180
11180
|
])
|
|
11181
11181
|
], 2),
|
|
11182
11182
|
v("div", l_, [
|
|
11183
|
-
e.showDefaultWorkbenchActions ? (
|
|
11183
|
+
e.showDefaultWorkbenchActions ? (k(), x(Ke, { key: 0 }, [
|
|
11184
11184
|
v("button", {
|
|
11185
11185
|
type: "button",
|
|
11186
11186
|
class: "chat-settings-panel__secondary",
|
|
@@ -11194,14 +11194,14 @@ ${y}` : f.businessGroupName;
|
|
|
11194
11194
|
onClick: p[7] || (p[7] = (S) => l("restore-default-workbench"))
|
|
11195
11195
|
}, " 恢复默认工作台 ")
|
|
11196
11196
|
], 64)) : ne("", !0),
|
|
11197
|
-
ce.value ? ne("", !0) : (
|
|
11197
|
+
ce.value ? ne("", !0) : (k(), x("button", {
|
|
11198
11198
|
key: 1,
|
|
11199
11199
|
type: "button",
|
|
11200
11200
|
class: "chat-settings-panel__secondary chat-settings-panel__secondary--wide",
|
|
11201
11201
|
"data-testid": "chat-settings-edit-workbench",
|
|
11202
11202
|
onClick: $e
|
|
11203
11203
|
}, " 编辑工作台 ")),
|
|
11204
|
-
ce.value ? (
|
|
11204
|
+
ce.value ? (k(), x(Ke, { key: 2 }, [
|
|
11205
11205
|
v("button", {
|
|
11206
11206
|
type: "button",
|
|
11207
11207
|
class: "chat-settings-panel__secondary",
|
|
@@ -11218,7 +11218,7 @@ ${y}` : f.businessGroupName;
|
|
|
11218
11218
|
disabled: ge.value,
|
|
11219
11219
|
onClick: Kt
|
|
11220
11220
|
}, [
|
|
11221
|
-
ge.value ? (
|
|
11221
|
+
ge.value ? (k(), x(Ke, { key: 0 }, [
|
|
11222
11222
|
p[22] || (p[22] = v("span", null, "保存中", -1)),
|
|
11223
11223
|
p[23] || (p[23] = v("span", {
|
|
11224
11224
|
class: "chat-saving-dots",
|
|
@@ -11228,16 +11228,16 @@ ${y}` : f.businessGroupName;
|
|
|
11228
11228
|
v("span", { class: "chat-saving-dots__dot" }, "."),
|
|
11229
11229
|
v("span", { class: "chat-saving-dots__dot" }, ".")
|
|
11230
11230
|
], -1))
|
|
11231
|
-
], 64)) : (
|
|
11231
|
+
], 64)) : (k(), x(Ke, { key: 1 }, [
|
|
11232
11232
|
la("保存")
|
|
11233
11233
|
], 64))
|
|
11234
11234
|
], 8, u_)
|
|
11235
11235
|
], 64)) : ne("", !0)
|
|
11236
11236
|
]),
|
|
11237
|
-
e.showPersonaSettings ? (
|
|
11237
|
+
e.showPersonaSettings ? (k(), x("div", d_, [
|
|
11238
11238
|
p[24] || (p[24] = v("div", { class: "chat-settings-panel__persona-title" }, "人格设定", -1)),
|
|
11239
11239
|
v("div", f_, [
|
|
11240
|
-
(
|
|
11240
|
+
(k(), x(Ke, null, ft(Et, (S) => v("button", {
|
|
11241
11241
|
key: S.id,
|
|
11242
11242
|
type: "button",
|
|
11243
11243
|
class: Ye(["chat-settings-panel__persona-option", {
|
|
@@ -11253,8 +11253,8 @@ ${y}` : f.businessGroupName;
|
|
|
11253
11253
|
])
|
|
11254
11254
|
]))
|
|
11255
11255
|
]),
|
|
11256
|
-
Ae.value === "chat" ? (
|
|
11257
|
-
we.value ? (
|
|
11256
|
+
Ae.value === "chat" ? (k(), x("div", h_, [
|
|
11257
|
+
we.value ? (k(), Jt(kv, {
|
|
11258
11258
|
key: 0,
|
|
11259
11259
|
plan: we.value
|
|
11260
11260
|
}, null, 8, ["plan"])) : ne("", !0),
|
|
@@ -11290,8 +11290,8 @@ ${y}` : f.businessGroupName;
|
|
|
11290
11290
|
])) : ne("", !0)
|
|
11291
11291
|
])
|
|
11292
11292
|
]),
|
|
11293
|
-
(
|
|
11294
|
-
We.value ? (
|
|
11293
|
+
(k(), Jt(Er, { to: "body" }, [
|
|
11294
|
+
We.value ? (k(), x("div", {
|
|
11295
11295
|
key: 0,
|
|
11296
11296
|
class: "rename-overlay",
|
|
11297
11297
|
onClick: p[14] || (p[14] = En((S) => We.value = !1, ["self"]))
|
|
@@ -11319,8 +11319,8 @@ ${y}` : f.businessGroupName;
|
|
|
11319
11319
|
])
|
|
11320
11320
|
])) : ne("", !0)
|
|
11321
11321
|
])),
|
|
11322
|
-
(
|
|
11323
|
-
Z.value ? (
|
|
11322
|
+
(k(), Jt(Er, { to: "body" }, [
|
|
11323
|
+
Z.value ? (k(), x("div", {
|
|
11324
11324
|
key: 0,
|
|
11325
11325
|
class: "delete-overlay",
|
|
11326
11326
|
onClick: En(ke, ["self"])
|
|
@@ -11348,8 +11348,8 @@ ${y}` : f.businessGroupName;
|
|
|
11348
11348
|
])
|
|
11349
11349
|
])) : ne("", !0)
|
|
11350
11350
|
])),
|
|
11351
|
-
(
|
|
11352
|
-
L.value ? (
|
|
11351
|
+
(k(), Jt(Er, { to: "body" }, [
|
|
11352
|
+
L.value ? (k(), x("div", {
|
|
11353
11353
|
key: 0,
|
|
11354
11354
|
class: "clear-overlay",
|
|
11355
11355
|
onClick: En($t, ["self"])
|