nxd-plugin 1.8.35 → 1.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/YCServiceSummary-CPxUo9rG.mjs +2 -0
- package/dist/chunks/{component-Agent-Cr-ntDoH.mjs → component-Agent-D29NaL88.mjs} +126 -120
- package/dist/chunks/{component-AiChat-DApn4-2y.mjs → component-AiChat-Bzf6wZyI.mjs} +1 -1
- package/dist/chunks/{component-AqiMonitor-BUXDYKbQ.mjs → component-AqiMonitor-gS8g8KDE.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-BaHd1iUO.mjs → component-ChartCumulativePre-CvyKwsPW.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-R-h4rGRH.mjs → component-ChartServiceMaterial-KRWvovRh.mjs} +2 -2
- package/dist/chunks/{component-Duty-D_8KvfNe.mjs → component-Duty-i4nBQusH.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-BCrTZD4q.mjs → component-EarlyWarningStatistic-CXrIkKI_.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-BR0gmPUZ.mjs → component-EarlyWarningStatistic2-D-zuoouJ.mjs} +2 -2
- package/dist/chunks/{component-Forecast72h-B85PYYlt.mjs → component-Forecast72h-C2m-Ne5P.mjs} +1 -1
- package/dist/chunks/{component-GeologyLiveAlarm-D-8PLp8C.mjs → component-GeologyLiveAlarm-C3Ssmndq.mjs} +2 -2
- package/dist/chunks/{component-GridForecastMsg-DP0QB8OG.mjs → component-GridForecastMsg-LDtXqNeM.mjs} +1 -1
- package/dist/chunks/{component-HDSeaLegend-Lx4CVdBe.mjs → component-HDSeaLegend-BmNyQHuI.mjs} +2 -2
- package/dist/chunks/{component-HdCameraList-BkpFsBPc.mjs → component-HdCameraList-C5U48T7e.mjs} +2 -2
- package/dist/chunks/{component-HdFarmStation-QWV3F5p7.mjs → component-HdFarmStation-BTOmaaWt.mjs} +2 -2
- package/dist/chunks/{component-HdFarmStationDialog-C42Kalh1.mjs → component-HdFarmStationDialog-CkH1eGWm.mjs} +1 -1
- package/dist/chunks/{component-HdForecastProducts-BgjJEfkx.mjs → component-HdForecastProducts-BcKsIy_n.mjs} +1 -1
- package/dist/chunks/{component-HdHeatChart-CCRZPuMc.mjs → component-HdHeatChart-B-h_hgJp.mjs} +1 -1
- package/dist/chunks/{component-HdHeatChartDialog-DeoxDSyl.mjs → component-HdHeatChartDialog-BIsVNy9X.mjs} +2 -2
- package/dist/chunks/{component-HdHeatService-CmbwlkaA.mjs → component-HdHeatService-CHzEmx91.mjs} +1 -1
- package/dist/chunks/{component-HdInsectDetailList-By-U2peB.mjs → component-HdInsectDetailList-BQTfYfMc.mjs} +1 -1
- package/dist/chunks/{component-HdInsectList-BlVzoIgO.mjs → component-HdInsectList-D4Iarp80.mjs} +1 -1
- package/dist/chunks/{component-HdMajorActivity-DNeXIzo9.mjs → component-HdMajorActivity-hlL1pGqv.mjs} +2 -2
- package/dist/chunks/{component-HdObservation-CT3xn1ly.mjs → component-HdObservation-woG4mrUI.mjs} +3 -3
- package/dist/chunks/{component-HdPreSituation-DDNcwiwp.mjs → component-HdPreSituation-CdWpaMIg.mjs} +3 -3
- package/dist/chunks/{component-HdQxServiceEffects-BBzdn4-G.mjs → component-HdQxServiceEffects-yzTTrD3Y.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-BqobCRLG.mjs → component-HdRadarList-D_N_guo4.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-D_4TfBtL.mjs → component-HdRadarTime-DybdASv9.mjs} +1 -1
- package/dist/chunks/{component-HdRadarTimeLine-1eC-qOqz.mjs → component-HdRadarTimeLine-DHT424Im.mjs} +1 -1
- package/dist/chunks/{component-HdRisk-Dq273IqG.mjs → component-HdRisk-DcNOlbLx.mjs} +2 -2
- package/dist/chunks/{component-HdSeaCase-FmlzNkBj.mjs → component-HdSeaCase-ChC0ymj7.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-C7D1ZwhV.mjs → component-HdServiceMarterial-BuRNsOe2.mjs} +2 -2
- package/dist/chunks/{component-HdServiceRequirements-BTUKNojU.mjs → component-HdServiceRequirements-CGS2T6WP.mjs} +2 -2
- package/dist/chunks/{component-HdSoil-2_TlWGNW.mjs → component-HdSoil-JM7eY_Eh.mjs} +2 -2
- package/dist/chunks/{component-HdSoilDetailList-BwRGMjV9.mjs → component-HdSoilDetailList-CGJatowZ.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-D0Dt3LHl.mjs → component-HdStationTem-BnGd0Kr8.mjs} +3 -3
- package/dist/chunks/{component-HdSuggestion-ofUMSp3s.mjs → component-HdSuggestion-Bu3p88AM.mjs} +2 -2
- package/dist/chunks/{component-HdThreeWeatherTrend-Kh64QzKx.mjs → component-HdThreeWeatherTrend-gBmaKPJO.mjs} +3 -3
- package/dist/chunks/{component-HdWaveForcast-DppP_HvM.mjs → component-HdWaveForcast-DAomA302.mjs} +2 -2
- package/dist/chunks/{component-HighQuality-C7RXFw-E.mjs → component-HighQuality-B5w1Oj8P.mjs} +1 -1
- package/dist/chunks/{component-HighWayEarlyWarningRed-Cv-Rh-cC.mjs → component-HighWayEarlyWarningRed-D6__uUfN.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-DLqbbIG5.mjs → component-HighWayFreeze-xhldTKjj.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-B7jI-RZI.mjs → component-HighwayLiveAlarm-DcerA_u-.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-B-jkZXom.mjs → component-HighwayLiveAlarmNew-BLJnYWBS.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-C7bVg74m.mjs → component-HighwayStations-CmK4R6Wm.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-C0Z_0C3X.mjs → component-HighwayWeatherForecast-BctSpjXK.mjs} +5 -5
- package/dist/chunks/{component-IframeWeb-BM0dqiO9.mjs → component-IframeWeb-BLQFQ6jc.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-5Bdvbyfs.mjs → component-ImageGeneration-DQ4OGc0D.mjs} +2 -2
- package/dist/chunks/{component-IntroducePic-_nigmGDe.mjs → component-IntroducePic-BP8vtQK5.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-B21dEJLE.mjs → component-LithiumBatteryMiningArea-BZtZ2YBw.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-52oQnhOj.mjs → component-MapPopup-BZG6kZ9L.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-CrfvJxHz.mjs → component-MaterialPreview-lC-1xPcu.mjs} +1 -1
- package/dist/chunks/{component-PieLegend-CgHQfWD4.mjs → component-PieLegend-wogLQDom.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-C0TROtSR.mjs → component-PrecipitationRanking-D8H4DZ6-.mjs} +3 -3
- package/dist/chunks/{component-RadarChart-COc4gmuU.mjs → component-RadarChart-DSM9HZzL.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-CjhaPfOW.mjs → component-RadarLegend-C-9IG-GR.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-DJgvtI9c.mjs → component-RadarShortTerm-lgnAptGu.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-Br0xVEuq.mjs → component-RadarTime-CjVaenhV.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-InDC2lO4.mjs → component-RenderMarkdown-f42yP-ij.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DP-lWjfx.mjs → component-ReservoirLiveAlarm-Ctun5rt_.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-Cijz6IMh.mjs → component-ServiceMaterial-QPWaL8VY.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-BdnH5TSY.mjs → component-ServiceMaterialsBtn-BM4fjaAw.mjs} +2 -2
- package/dist/chunks/{component-StationDialog-CcpEWARd.mjs → component-StationDialog-DUx5DNpl.mjs} +3 -3
- package/dist/chunks/{component-StationList-DyspLaBT.mjs → component-StationList-CDlf1xJh.mjs} +3 -3
- package/dist/chunks/{component-TimeBasedForecast-DS12UnL3.mjs → component-TimeBasedForecast-DOoea8hY.mjs} +4 -4
- package/dist/chunks/{component-Typhoon-BLL7-FHD.mjs → component-Typhoon-Cl4n7nf1.mjs} +2 -2
- package/dist/chunks/{component-WarningLine-CjXljhuQ.mjs → component-WarningLine-BM_UKefj.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BUq7JNyw.mjs → component-WarningSignal-BB09ahTi.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-CBY40Y1j.mjs → component-WeatherForecast-d92kvD06.mjs} +4 -4
- package/dist/chunks/{component-YCDataMonitor-Clu5RdqK.mjs → component-YCDataMonitor-D1jl2sEw.mjs} +1 -1
- package/dist/chunks/{component-YCDataService-BX8obEW9.mjs → component-YCDataService-DG60--e8.mjs} +3 -3
- package/dist/chunks/{component-YCHighWaySummary-DfDlTv13.mjs → component-YCHighWaySummary-CRzdB9gf.mjs} +2 -2
- package/dist/chunks/{component-YCHome-CoTwNCRI.mjs → component-YCHome-BQrWRywc.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend--xlIidkR.mjs → component-YCHomeLegend-D8PCLUMe.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-CQ9V5l-b.mjs → component-YCLoginNew-Dcm8obmh.mjs} +2 -2
- package/dist/chunks/{component-YCServiceSummary-DeDBpyuC.mjs → component-YCServiceSummary-5xh4q3d6.mjs} +1 -1
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-Agent.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-D6Jrh3KH.mjs +0 -2
|
@@ -26864,28 +26864,22 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
26864
26864
|
}, dl = {
|
|
26865
26865
|
key: 5,
|
|
26866
26866
|
class: "Agent__answerActions"
|
|
26867
|
-
}, fl = { class: "Agent__main" }, pl = ["onKeydown"], ml = { class: "Agent__actions" }, hl = { class: "Agent__typeGroup" }, gl = { class: "Agent__typeLabel" }, _l = {
|
|
26868
|
-
key: 0,
|
|
26869
|
-
class: "Agent__typeMenu"
|
|
26870
|
-
}, vl = ["onClick"], yl = { class: "Agent__typeLabel" }, bl = {
|
|
26871
|
-
key: 0,
|
|
26872
|
-
class: "Agent__typeMenu"
|
|
26873
|
-
}, xl = ["onClick"], Sl = ["title"], Cl = {
|
|
26867
|
+
}, fl = { class: "Agent__main" }, pl = ["onKeydown"], ml = { class: "Agent__actions" }, hl = { class: "Agent__typeGroup" }, gl = { class: "Agent__typeLabel" }, _l = ["onClick"], vl = { class: "Agent__typeLabel" }, yl = ["onClick"], bl = ["title"], xl = {
|
|
26874
26868
|
key: 0,
|
|
26875
26869
|
viewBox: "0 0 24 24",
|
|
26876
26870
|
width: "18",
|
|
26877
26871
|
height: "18",
|
|
26878
26872
|
fill: "currentColor"
|
|
26879
|
-
},
|
|
26873
|
+
}, Sl = {
|
|
26880
26874
|
key: 1,
|
|
26881
26875
|
viewBox: "0 0 24 24",
|
|
26882
26876
|
width: "18",
|
|
26883
26877
|
height: "18",
|
|
26884
26878
|
fill: "currentColor"
|
|
26885
|
-
},
|
|
26879
|
+
}, Cl = ["disabled"], wl = {
|
|
26886
26880
|
key: 2,
|
|
26887
26881
|
class: "Agent__divider"
|
|
26888
|
-
},
|
|
26882
|
+
}, Tl = "", El = 200, Dl = 45, Ol = /* @__PURE__ */ g({
|
|
26889
26883
|
__name: "Agent",
|
|
26890
26884
|
props: {
|
|
26891
26885
|
interfaceBaseHttp: {
|
|
@@ -26939,7 +26933,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
26939
26933
|
calling: "执行中",
|
|
26940
26934
|
success: "已完成",
|
|
26941
26935
|
error: "失败"
|
|
26942
|
-
}, F = w(""), I = w(), L = w(), R = w([]), z = w(!1), B = w(!1), ee = -1, V = null, te = !1, H = w(!1), ne = w(), U = w(!1), W = w(), G = w(!1), K = w(""), re = w(!1), q = l(() => !!K.value), { x: ie, y: ae, dragging: J, onStart: Y } = Pt({ disabled: H }), oe = O(), { typeOptions: se, currentSubList: ce, activeLabel: le, activeSubItem: ue, selectLabel: de, selectSubItem: fe, resetMenu: pe, currentAi: me, loading: he, send: ge, clear: _e, dispose: ve, login: ye, fetchSubMenu: be, findAgentGroup: xe, materialTaskId: Se } = kc(r), { visible: Ce, block: we, editorRef: Te, loading: Ee, error: De, openDocument: Oe, closeDocument: ke, retry: Ae, treeRef: je, channelTree: Me, selectedChannelKeys: Ne, checkAll: Pe, isIndeterminate: Fe, publishLoading: Ie, handleTreeCheck: Le, handleCheckAllChange: Re, handlePublishConfirm: ze } = Ac(r, Se), Be = l(() => z.value || he.value), Ve = l(() => xe(r.agentType)), He = l(() => Ve.value?.label || ""), Ue = l(() => q.value ? K.value : He.value), We = l(() => Ve.value?.list || []), X = l(() => q.value ? ce.value : We.value), Ge = l(() =>
|
|
26936
|
+
}, F = w(""), I = w(), L = w(), R = w([]), z = w(!1), B = w(!1), ee = -1, V = null, te = !1, H = w(!1), ne = w(), U = w(!1), W = w(), G = w(!1), K = w(""), re = w(!1), q = l(() => !!K.value), { x: ie, y: ae, dragging: J, onStart: Y } = Pt({ disabled: H }), oe = O(), { typeOptions: se, currentSubList: ce, activeLabel: le, activeSubItem: ue, selectLabel: de, selectSubItem: fe, resetMenu: pe, currentAi: me, loading: he, send: ge, clear: _e, dispose: ve, login: ye, fetchSubMenu: be, findAgentGroup: xe, materialTaskId: Se } = kc(r), { visible: Ce, block: we, editorRef: Te, loading: Ee, error: De, openDocument: Oe, closeDocument: ke, retry: Ae, treeRef: je, channelTree: Me, selectedChannelKeys: Ne, checkAll: Pe, isIndeterminate: Fe, publishLoading: Ie, handleTreeCheck: Le, handleCheckAllChange: Re, handlePublishConfirm: ze } = Ac(r, Se), Be = l(() => z.value || he.value), Ve = l(() => xe(r.agentType)), He = l(() => Ve.value?.label || ""), Ue = l(() => q.value ? K.value : He.value), We = l(() => Ve.value?.list || []), X = l(() => q.value ? ce.value : We.value), Ge = l(() => tt(K.value) && ue.value?.title || ""), Ke = l(() => !(!F.value.trim() || Be.value || q.value && !le.value)), qe = l(() => H.value ? {} : {
|
|
26943
26937
|
...oe.style || {},
|
|
26944
26938
|
transform: `translate3d(${ie.value}px, ${ae.value}px, 0)`
|
|
26945
26939
|
}), Je = (e) => {
|
|
@@ -26956,34 +26950,38 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
26956
26950
|
}, Ye = (e) => {
|
|
26957
26951
|
let t = e.target;
|
|
26958
26952
|
ne.value?.contains(t) || (U.value = !1), W.value?.contains(t) || (G.value = !1);
|
|
26959
|
-
}, Xe = () => {
|
|
26960
|
-
|
|
26961
|
-
|
|
26962
|
-
|
|
26953
|
+
}, Xe = w(!0), Ze = w(El), Qe = (e) => {
|
|
26954
|
+
if (!e) return;
|
|
26955
|
+
let t = e.getBoundingClientRect(), n = t.top - 8, r = window.innerHeight - t.bottom - 8;
|
|
26956
|
+
Xe.value = n >= r, Ze.value = Math.max(80, Math.min(El, Xe.value ? n : r));
|
|
26957
|
+
}, $e = () => {
|
|
26958
|
+
U.value = !U.value, U.value && (G.value = !1, Qe(ne.value));
|
|
26959
|
+
}, et = () => {
|
|
26960
|
+
G.value = !G.value, G.value && (U.value = !1, Qe(W.value));
|
|
26963
26961
|
};
|
|
26964
26962
|
x(() => {
|
|
26965
|
-
|
|
26963
|
+
gt(), It(), R.value = [], ee = -1, B.value = !1, window.addEventListener("message", Je), window.addEventListener("pagehide", Lt), window.addEventListener("click", Ye), ye().then(() => be());
|
|
26966
26964
|
}), S(() => {
|
|
26967
|
-
|
|
26965
|
+
Ft(), It(), ve(), ke(), window.removeEventListener("message", Je), window.removeEventListener("pagehide", Lt), window.removeEventListener("click", Ye);
|
|
26968
26966
|
});
|
|
26969
|
-
let
|
|
26970
|
-
let t = de(e,
|
|
26971
|
-
t?.content ?
|
|
26967
|
+
let tt = (e) => wc[e] === "smartMake", nt = (e) => {
|
|
26968
|
+
let t = de(e, tt(e));
|
|
26969
|
+
t?.content ? _t(t.content) : vt();
|
|
26972
26970
|
};
|
|
26973
26971
|
A(ce, (e) => {
|
|
26974
|
-
!q.value || ue.value || !e.length ||
|
|
26972
|
+
!q.value || ue.value || !e.length || tt(K.value) && fe(e[0]);
|
|
26975
26973
|
});
|
|
26976
|
-
let
|
|
26974
|
+
let rt = (e) => {
|
|
26977
26975
|
if (U.value = !1, G.value = !1, e !== K.value) {
|
|
26978
26976
|
if (K.value = e, pe(), !e) {
|
|
26979
|
-
|
|
26977
|
+
vt();
|
|
26980
26978
|
return;
|
|
26981
26979
|
}
|
|
26982
|
-
|
|
26980
|
+
nt(e);
|
|
26983
26981
|
}
|
|
26984
|
-
},
|
|
26985
|
-
G.value = !1,
|
|
26986
|
-
},
|
|
26982
|
+
}, it = (e) => {
|
|
26983
|
+
G.value = !1, tt(K.value) && fe(e), e.content && _t(e.content);
|
|
26984
|
+
}, at = (e) => g[e || "thinking"] || "";
|
|
26987
26985
|
A(me, (e) => {
|
|
26988
26986
|
let t = R.value[ee];
|
|
26989
26987
|
if (!t || !t.legacy || !e) return;
|
|
@@ -26995,9 +26993,9 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
26995
26993
|
result: e.content || "",
|
|
26996
26994
|
expanded: !1,
|
|
26997
26995
|
status: e.status || "thinking"
|
|
26998
|
-
})), t.markdown = n && e.content || "", t.file = n && (e.blocks || []).find((e) => e.type === "file") || null, t.status = e.thinkingStatus === "error" ? "error" : n ? "done" : "pending", t.error = e.thinkingStatus === "error" ? e.content || "请求失败,请稍后重试" : "",
|
|
26996
|
+
})), t.markdown = n && e.content || "", t.file = n && (e.blocks || []).find((e) => e.type === "file") || null, t.status = e.thinkingStatus === "error" ? "error" : n ? "done" : "pending", t.error = e.thinkingStatus === "error" ? e.content || "请求失败,请稍后重试" : "", Dt();
|
|
26999
26997
|
});
|
|
27000
|
-
let
|
|
26998
|
+
let ot = (e) => String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), st = (e) => {
|
|
27001
26999
|
if (!e) return "";
|
|
27002
27000
|
e = e.replace(/^[\s"'“”‘’"〝〞]+/, "").replace(/[\s"'“”‘’"〝〞]+$/, "");
|
|
27003
27001
|
let t = e.split("\n");
|
|
@@ -27013,18 +27011,18 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27013
27011
|
for (e.length > t.length && (e = e.slice(0, t.length)); e.length < t.length;) e.push("");
|
|
27014
27012
|
a.push(e), i++;
|
|
27015
27013
|
}
|
|
27016
|
-
let o = "<table class=\"Agent__mdTable\"><thead><tr>" + t.map((e) => `<th>${
|
|
27017
|
-
o += "<tbody>" + a.map((e) => "<tr>" + e.map((e) => `<td>${
|
|
27018
|
-
} else r.push(
|
|
27014
|
+
let o = "<table class=\"Agent__mdTable\"><thead><tr>" + t.map((e) => `<th>${ot(e)}</th>`).join("") + "</tr></thead>";
|
|
27015
|
+
o += "<tbody>" + a.map((e) => "<tr>" + e.map((e) => `<td>${ot(e)}</td>`).join("") + "</tr>").join("") + "</tbody></table>", r.push(o);
|
|
27016
|
+
} else r.push(ot(e)), i++;
|
|
27019
27017
|
}
|
|
27020
27018
|
return r.join("<br>");
|
|
27021
|
-
},
|
|
27019
|
+
}, ct = (e) => {
|
|
27022
27020
|
try {
|
|
27023
27021
|
return (JSON.parse(e).items || []).filter((e) => e && e.icon && e.label);
|
|
27024
27022
|
} catch {
|
|
27025
27023
|
return [];
|
|
27026
27024
|
}
|
|
27027
|
-
},
|
|
27025
|
+
}, lt = (e) => r.interfaceBaseHttp.replace(/\/$/, "") + "/skills/skill_sea_legend/assets/icons/" + e, ut = (e) => {
|
|
27028
27026
|
if (!e) return [];
|
|
27029
27027
|
let t = [], n = 0;
|
|
27030
27028
|
for (;;) {
|
|
@@ -27047,7 +27045,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27047
27045
|
}) : o === "sea-legend" ? t.push({
|
|
27048
27046
|
type: "seaLegend",
|
|
27049
27047
|
content: s,
|
|
27050
|
-
items:
|
|
27048
|
+
items: ct(s)
|
|
27051
27049
|
}) : t.push({
|
|
27052
27050
|
type: "text",
|
|
27053
27051
|
content: e.slice(r, a + 3)
|
|
@@ -27057,83 +27055,83 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27057
27055
|
type: "text",
|
|
27058
27056
|
content: e.slice(n)
|
|
27059
27057
|
}), t;
|
|
27060
|
-
},
|
|
27058
|
+
}, dt = () => {
|
|
27061
27059
|
let e = I.value;
|
|
27062
27060
|
if (!e) return;
|
|
27063
27061
|
let t = e.innerText.replace(/\n+$/, "").replace(/\u200B/g, "");
|
|
27064
|
-
t.trim() ? F.value = t :
|
|
27065
|
-
},
|
|
27062
|
+
t.trim() ? F.value = t : gt(), mt();
|
|
27063
|
+
}, ft = (e) => {
|
|
27066
27064
|
e.preventDefault();
|
|
27067
27065
|
let t = e.clipboardData?.getData("text/plain") || "";
|
|
27068
27066
|
document.execCommand("insertText", !1, t);
|
|
27069
|
-
},
|
|
27067
|
+
}, pt = () => {
|
|
27070
27068
|
let e = I.value;
|
|
27071
27069
|
e && e.style.setProperty("--anchor-top", `${e.scrollTop}px`);
|
|
27072
|
-
},
|
|
27070
|
+
}, mt = () => {
|
|
27073
27071
|
let e = I.value;
|
|
27074
|
-
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 150)}px`, e.style.overflowY = e.scrollHeight > 150 ? "auto" : "hidden",
|
|
27075
|
-
},
|
|
27072
|
+
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 150)}px`, e.style.overflowY = e.scrollHeight > 150 ? "auto" : "hidden", pt());
|
|
27073
|
+
}, ht = () => {
|
|
27076
27074
|
let e = I.value, t = window.getSelection();
|
|
27077
27075
|
if (!e || !t) return;
|
|
27078
27076
|
let n = document.createRange();
|
|
27079
27077
|
n.selectNodeContents(e), n.collapse(!1), t.removeAllRanges(), t.addRange(n);
|
|
27080
|
-
},
|
|
27078
|
+
}, gt = () => {
|
|
27081
27079
|
let e = I.value;
|
|
27082
|
-
e && (e.innerHTML =
|
|
27083
|
-
},
|
|
27080
|
+
e && (e.innerHTML = Tl, F.value = "", ht());
|
|
27081
|
+
}, _t = (e) => {
|
|
27084
27082
|
let t = I.value;
|
|
27085
27083
|
if (t) {
|
|
27086
27084
|
if (!e) {
|
|
27087
|
-
|
|
27085
|
+
gt();
|
|
27088
27086
|
return;
|
|
27089
27087
|
}
|
|
27090
27088
|
t.innerText = e, F.value = e, v(() => {
|
|
27091
|
-
|
|
27089
|
+
mt(), t.focus(), ht();
|
|
27092
27090
|
});
|
|
27093
27091
|
}
|
|
27094
|
-
},
|
|
27095
|
-
|
|
27096
|
-
|
|
27092
|
+
}, vt = () => {
|
|
27093
|
+
gt(), v(() => {
|
|
27094
|
+
mt(), I.value?.focus(), ht();
|
|
27097
27095
|
});
|
|
27098
|
-
},
|
|
27099
|
-
e && (
|
|
27100
|
-
},
|
|
27101
|
-
let t =
|
|
27096
|
+
}, yt = w([]), bt = /* @__PURE__ */ new Map(), xt = (e, t) => {
|
|
27097
|
+
e && (yt.value[t] = e);
|
|
27098
|
+
}, St = (e) => {
|
|
27099
|
+
let t = yt.value[e], n = R.value[e];
|
|
27102
27100
|
if (!t || !n) return;
|
|
27103
|
-
let r =
|
|
27104
|
-
r && (clearTimeout(r),
|
|
27105
|
-
t.style.maxHeight = `${
|
|
27106
|
-
}),
|
|
27107
|
-
n.thinkingClamped = !0,
|
|
27101
|
+
let r = bt.get(e);
|
|
27102
|
+
r && (clearTimeout(r), bt.delete(e)), n.thinkingOpen ? (t.style.maxHeight = `${t.scrollHeight}px`, n.thinkingOpen = !1, requestAnimationFrame(() => {
|
|
27103
|
+
t.style.maxHeight = `${Dl}px`;
|
|
27104
|
+
}), bt.set(e, window.setTimeout(() => {
|
|
27105
|
+
n.thinkingClamped = !0, bt.delete(e);
|
|
27108
27106
|
}, 260))) : (n.thinkingClamped = !1, n.thinkingOpen = !0, v(() => {
|
|
27109
|
-
t.style.maxHeight = `${t.scrollHeight}px`,
|
|
27110
|
-
t.style.maxHeight = "",
|
|
27107
|
+
t.style.maxHeight = `${t.scrollHeight}px`, bt.set(e, window.setTimeout(() => {
|
|
27108
|
+
t.style.maxHeight = "", bt.delete(e);
|
|
27111
27109
|
}, 280));
|
|
27112
27110
|
}));
|
|
27113
|
-
},
|
|
27111
|
+
}, Ct = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : "id-" + Math.random().toString(36).slice(2) + "-" + Date.now().toString(36), wt = () => {
|
|
27114
27112
|
try {
|
|
27115
27113
|
return localStorage.getItem("agentSessionId");
|
|
27116
27114
|
} catch {
|
|
27117
27115
|
return null;
|
|
27118
27116
|
}
|
|
27119
|
-
},
|
|
27117
|
+
}, Tt = (e) => {
|
|
27120
27118
|
try {
|
|
27121
27119
|
localStorage.setItem("agentSessionId", e);
|
|
27122
27120
|
} catch {}
|
|
27123
|
-
},
|
|
27121
|
+
}, Et = w(wt() || Ct()), Dt = () => {
|
|
27124
27122
|
v(() => {
|
|
27125
27123
|
let e = L.value;
|
|
27126
27124
|
e && (e.scrollTop = e.scrollHeight);
|
|
27127
27125
|
});
|
|
27128
|
-
},
|
|
27129
|
-
H.value = !H.value, !H.value && Ce.value && ke(),
|
|
27130
|
-
},
|
|
27126
|
+
}, Ot = () => {
|
|
27127
|
+
H.value = !H.value, !H.value && Ce.value && ke(), Dt();
|
|
27128
|
+
}, kt = (e) => {
|
|
27131
27129
|
e && (H.value = !0, Oe({
|
|
27132
27130
|
name: e.name,
|
|
27133
27131
|
fileUrl: e.fileUrl,
|
|
27134
27132
|
ext: e.ext
|
|
27135
27133
|
}));
|
|
27136
|
-
},
|
|
27134
|
+
}, At = async (e) => {
|
|
27137
27135
|
if (!e?.fileUrl) return;
|
|
27138
27136
|
let t = (r.baseHttp || "").replace(/\/$/, ""), n = /^(https?:)?\/\//i.test(e.fileUrl) || e.fileUrl.startsWith("data:") ? e.fileUrl : t + (e.fileUrl.startsWith("/") ? e.fileUrl : `/${e.fileUrl}`), i = e.name || "file";
|
|
27139
27137
|
try {
|
|
@@ -27146,16 +27144,16 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27146
27144
|
} catch {}
|
|
27147
27145
|
let a = document.createElement("a");
|
|
27148
27146
|
a.href = n, a.download = i, a.target = "_blank", document.body.appendChild(a), a.click(), document.body.removeChild(a);
|
|
27149
|
-
},
|
|
27147
|
+
}, jt = (e, t) => {
|
|
27150
27148
|
let n = R.value[ee];
|
|
27151
27149
|
if (n) {
|
|
27152
27150
|
if (e === "thinking") n.thinking += t;
|
|
27153
|
-
else if (e === "token") n.answer += t, n.answerParts =
|
|
27151
|
+
else if (e === "token") n.answer += t, n.answerParts = ut(n.answer);
|
|
27154
27152
|
else if (e === "reset") n.answer = "", n.answerParts = [];
|
|
27155
27153
|
else if (e === "tool_call") try {
|
|
27156
27154
|
let e = JSON.parse(t);
|
|
27157
27155
|
n.tools.push({
|
|
27158
|
-
id: e.id ||
|
|
27156
|
+
id: e.id || Ct(),
|
|
27159
27157
|
name: e.name,
|
|
27160
27158
|
args: JSON.stringify(e.arguments),
|
|
27161
27159
|
result: "",
|
|
@@ -27167,16 +27165,16 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27167
27165
|
r && (r.result = e.result || "");
|
|
27168
27166
|
} catch {}
|
|
27169
27167
|
else e === "error" && (n.status = "error", n.error = t);
|
|
27170
|
-
|
|
27168
|
+
Dt();
|
|
27171
27169
|
}
|
|
27172
|
-
},
|
|
27170
|
+
}, Mt = async () => {
|
|
27173
27171
|
let e = F.value.trim();
|
|
27174
27172
|
if (!e || Be.value) return;
|
|
27175
27173
|
if (q.value) {
|
|
27176
|
-
await
|
|
27174
|
+
await Nt(e);
|
|
27177
27175
|
return;
|
|
27178
27176
|
}
|
|
27179
|
-
re.value &&
|
|
27177
|
+
re.value && Rt();
|
|
27180
27178
|
let t = r.interfaceBaseHttp.replace(/\/$/, "") + "/api/agent/chat";
|
|
27181
27179
|
R.value.push({
|
|
27182
27180
|
question: e,
|
|
@@ -27188,13 +27186,13 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27188
27186
|
error: "",
|
|
27189
27187
|
thinkingOpen: !0,
|
|
27190
27188
|
thinkingClamped: !1
|
|
27191
|
-
}), ee = R.value.length - 1,
|
|
27189
|
+
}), ee = R.value.length - 1, vt(), z.value = !0, Dt(), te = !1, V = new AbortController();
|
|
27192
27190
|
try {
|
|
27193
27191
|
let n = await fetch(t, {
|
|
27194
27192
|
method: "POST",
|
|
27195
27193
|
headers: { "Content-Type": "application/json" },
|
|
27196
27194
|
body: JSON.stringify({
|
|
27197
|
-
sessionId:
|
|
27195
|
+
sessionId: Et.value,
|
|
27198
27196
|
message: e,
|
|
27199
27197
|
agentType: r.agentType
|
|
27200
27198
|
}),
|
|
@@ -27214,7 +27212,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27214
27212
|
else if (e.startsWith("data:")) {
|
|
27215
27213
|
let t = e.slice(5).replace(/^ /, "");
|
|
27216
27214
|
l ? c += "\n" + t : (c = t, l = !0);
|
|
27217
|
-
} else e.trim() === "" && (s &&
|
|
27215
|
+
} else e.trim() === "" && (s && jt(s, c), s = "", c = "", l = !1);
|
|
27218
27216
|
}
|
|
27219
27217
|
}
|
|
27220
27218
|
let u = R.value[ee];
|
|
@@ -27223,9 +27221,9 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27223
27221
|
let t = R.value[ee];
|
|
27224
27222
|
t && !te && (t.status = "error", t.error = "请求失败:" + (e instanceof Error ? e.message : String(e)));
|
|
27225
27223
|
} finally {
|
|
27226
|
-
V = null, z.value = !1, te || (B.value = !0),
|
|
27224
|
+
V = null, z.value = !1, te || (B.value = !0), Dt(), I.value?.focus(), F.value || ht();
|
|
27227
27225
|
}
|
|
27228
|
-
},
|
|
27226
|
+
}, Nt = async (e) => {
|
|
27229
27227
|
_e(), R.value = [], ee = -1, re.value = !0, R.value.push({
|
|
27230
27228
|
question: e,
|
|
27231
27229
|
thinking: "",
|
|
@@ -27239,16 +27237,16 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27239
27237
|
legacy: !0,
|
|
27240
27238
|
markdown: "",
|
|
27241
27239
|
file: null
|
|
27242
|
-
}), ee = R.value.length - 1,
|
|
27240
|
+
}), ee = R.value.length - 1, vt(), Dt();
|
|
27243
27241
|
try {
|
|
27244
27242
|
await ge(e);
|
|
27245
27243
|
} finally {
|
|
27246
|
-
B.value = !0,
|
|
27244
|
+
B.value = !0, Dt(), I.value?.focus(), F.value || ht();
|
|
27247
27245
|
}
|
|
27248
|
-
},
|
|
27246
|
+
}, Ft = () => {
|
|
27249
27247
|
V &&= (te = !0, V.abort(), null);
|
|
27250
|
-
},
|
|
27251
|
-
let t =
|
|
27248
|
+
}, It = (e = !1) => {
|
|
27249
|
+
let t = Et.value;
|
|
27252
27250
|
if (!t) return;
|
|
27253
27251
|
let n = r.interfaceBaseHttp.replace(/\/$/, "") + "/api/agent/reset?sessionId=" + encodeURIComponent(t);
|
|
27254
27252
|
if (e && typeof navigator.sendBeacon == "function") {
|
|
@@ -27259,10 +27257,10 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27259
27257
|
method: "POST",
|
|
27260
27258
|
keepalive: !0
|
|
27261
27259
|
}).catch(() => {});
|
|
27262
|
-
},
|
|
27263
|
-
|
|
27264
|
-
},
|
|
27265
|
-
|
|
27260
|
+
}, Lt = () => {
|
|
27261
|
+
Ft(), It(!0);
|
|
27262
|
+
}, Rt = () => {
|
|
27263
|
+
Ft(), It(), _e(), Et.value = Ct(), Tt(Et.value), R.value = [], ee = -1, B.value = !1, z.value = !1, re.value = !1, q.value && nt(K.value);
|
|
27266
27264
|
};
|
|
27267
27265
|
return (e, t) => {
|
|
27268
27266
|
let n = a, r = o, l = i;
|
|
@@ -27340,7 +27338,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27340
27338
|
e.thinking || e.legacy && e.tools.length ? (C(), f("div", Gc, [
|
|
27341
27339
|
p("div", {
|
|
27342
27340
|
class: "Agent__thinkingHead",
|
|
27343
|
-
onClick: (e) =>
|
|
27341
|
+
onClick: (e) => St(n)
|
|
27344
27342
|
}, [t[10] ||= p("span", { class: "Agent__thinkingLabel" }, "思考过程", -1), (C(), f("svg", {
|
|
27345
27343
|
class: y(["Agent__thinkingArrow", { "is-open": e.thinkingOpen }]),
|
|
27346
27344
|
viewBox: "0 0 24 24",
|
|
@@ -27354,7 +27352,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27354
27352
|
}, [...t[9] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 8, Kc),
|
|
27355
27353
|
p("div", {
|
|
27356
27354
|
ref_for: !0,
|
|
27357
|
-
ref: (e) =>
|
|
27355
|
+
ref: (e) => xt(e, n),
|
|
27358
27356
|
class: y(["Agent__thinkingText", { "is-clamped": e.thinkingClamped }])
|
|
27359
27357
|
}, E(e.thinking), 3),
|
|
27360
27358
|
e.legacy && e.tools.length ? (C(), f("div", qc, [(C(!0), f(s, null, T(e.tools, (e) => (C(), f("div", {
|
|
@@ -27363,19 +27361,19 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27363
27361
|
}, [
|
|
27364
27362
|
p("span", { class: y(["Agent__toolDot", `Agent__toolDot--${e.status || "thinking"}`]) }, null, 2),
|
|
27365
27363
|
p("span", Jc, E(e.name), 1),
|
|
27366
|
-
p("span", Yc, E(
|
|
27364
|
+
p("span", Yc, E(at(e.status)), 1)
|
|
27367
27365
|
]))), 128))])) : d("", !0)
|
|
27368
27366
|
])) : d("", !0),
|
|
27369
27367
|
(C(!0), f(s, null, T(e.answerParts, (e, t) => (C(), f(s, { key: t }, [e.type === "text" ? (C(), f("div", {
|
|
27370
27368
|
key: 0,
|
|
27371
27369
|
class: "Agent__answerText",
|
|
27372
|
-
innerHTML:
|
|
27370
|
+
innerHTML: st(e.content)
|
|
27373
27371
|
}, null, 8, Xc)) : e.type === "seaLegend" ? (C(), f("div", Zc, [(C(!0), f(s, null, T(e.items, (e, t) => (C(), f("div", {
|
|
27374
27372
|
key: t,
|
|
27375
27373
|
class: "Agent__legendItem"
|
|
27376
27374
|
}, [p("img", {
|
|
27377
27375
|
class: "Agent__legendIcon",
|
|
27378
|
-
src:
|
|
27376
|
+
src: lt(e.icon),
|
|
27379
27377
|
alt: e.label
|
|
27380
27378
|
}, null, 8, Qc), p("span", $c, E(e.label), 1)]))), 128))])) : (C(), f("iframe", {
|
|
27381
27379
|
key: 2,
|
|
@@ -27397,11 +27395,11 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27397
27395
|
p("div", rl, [p("div", il, E(e.file.name), 1), e.file.ext ? (C(), f("div", al, E(e.file.ext.toUpperCase()), 1)) : d("", !0)]),
|
|
27398
27396
|
p("div", ol, [p("button", {
|
|
27399
27397
|
class: "Agent__fileBtn",
|
|
27400
|
-
onClick: (t) =>
|
|
27398
|
+
onClick: (t) => kt(e.file)
|
|
27401
27399
|
}, "审核发布", 8, sl), p("button", {
|
|
27402
27400
|
class: "Agent__fileBtn Agent__fileBtn--download",
|
|
27403
27401
|
title: "下载",
|
|
27404
|
-
onClick: (t) =>
|
|
27402
|
+
onClick: (t) => At(e.file)
|
|
27405
27403
|
}, [...t[11] ||= [p("svg", {
|
|
27406
27404
|
viewBox: "0 0 24 24",
|
|
27407
27405
|
width: "14",
|
|
@@ -27459,10 +27457,10 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27459
27457
|
class: y(["Agent__input", { "is-empty": !F.value }]),
|
|
27460
27458
|
contenteditable: "true",
|
|
27461
27459
|
"data-placeholder": "有什么想问的吗?",
|
|
27462
|
-
onInput:
|
|
27463
|
-
onScroll:
|
|
27464
|
-
onPaste:
|
|
27465
|
-
onKeydown: N(P(
|
|
27460
|
+
onInput: dt,
|
|
27461
|
+
onScroll: pt,
|
|
27462
|
+
onPaste: ft,
|
|
27463
|
+
onKeydown: N(P(Mt, ["exact", "prevent"]), ["enter"])
|
|
27466
27464
|
}, null, 42, pl), p("img", {
|
|
27467
27465
|
class: "Agent__logo",
|
|
27468
27466
|
src: Cc,
|
|
@@ -27479,7 +27477,7 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27479
27477
|
}, [p("button", {
|
|
27480
27478
|
class: y(["Agent__typeTrigger", { "is-legacy": q.value }]),
|
|
27481
27479
|
title: "选择类型",
|
|
27482
|
-
onClick: P(
|
|
27480
|
+
onClick: P($e, ["stop"])
|
|
27483
27481
|
}, [p("span", gl, E(Ue.value), 1), (C(), f("svg", {
|
|
27484
27482
|
class: y(["Agent__typeCaret", { "is-open": U.value }]),
|
|
27485
27483
|
viewBox: "0 0 24 24",
|
|
@@ -27490,18 +27488,22 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27490
27488
|
"stroke-width": "2",
|
|
27491
27489
|
"stroke-linecap": "round",
|
|
27492
27490
|
"stroke-linejoin": "round"
|
|
27493
|
-
}, [...t[15] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), U.value ? (C(), f("div",
|
|
27491
|
+
}, [...t[15] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), U.value ? (C(), f("div", {
|
|
27492
|
+
key: 0,
|
|
27493
|
+
class: y(["Agent__typeMenu", { "is-down": !Xe.value }]),
|
|
27494
|
+
style: b({ maxHeight: `${Ze.value}px` })
|
|
27495
|
+
}, [
|
|
27494
27496
|
p("button", {
|
|
27495
27497
|
class: y(["Agent__typeOption", { "is-active": !q.value }]),
|
|
27496
|
-
onClick: t[4] ||= (e) =>
|
|
27498
|
+
onClick: t[4] ||= (e) => rt("")
|
|
27497
27499
|
}, E(He.value), 3),
|
|
27498
27500
|
t[16] ||= p("div", { class: "Agent__typeSplit" }, null, -1),
|
|
27499
27501
|
(C(!0), f(s, null, T(D(se), (e) => (C(), f("button", {
|
|
27500
27502
|
key: e,
|
|
27501
27503
|
class: y(["Agent__typeOption", { "is-active": q.value && K.value === e }]),
|
|
27502
|
-
onClick: (t) =>
|
|
27503
|
-
}, E(e), 11,
|
|
27504
|
-
])) : d("", !0)], 512), X.value.length ? (C(), f("div", {
|
|
27504
|
+
onClick: (t) => rt(e)
|
|
27505
|
+
}, E(e), 11, _l))), 128))
|
|
27506
|
+
], 6)) : d("", !0)], 512), X.value.length ? (C(), f("div", {
|
|
27505
27507
|
key: 0,
|
|
27506
27508
|
ref_key: "subTypeRef",
|
|
27507
27509
|
ref: W,
|
|
@@ -27512,8 +27514,8 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27512
27514
|
"is-plain": !Ge.value
|
|
27513
27515
|
}]),
|
|
27514
27516
|
title: "选择二级类型",
|
|
27515
|
-
onClick: P(
|
|
27516
|
-
}, [p("span",
|
|
27517
|
+
onClick: P(et, ["stop"])
|
|
27518
|
+
}, [p("span", vl, E(Ge.value || "请选择"), 1), (C(), f("svg", {
|
|
27517
27519
|
class: y(["Agent__typeCaret", { "is-open": G.value }]),
|
|
27518
27520
|
viewBox: "0 0 24 24",
|
|
27519
27521
|
width: "14",
|
|
@@ -27523,43 +27525,47 @@ var Cc = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
|
|
|
27523
27525
|
"stroke-width": "2",
|
|
27524
27526
|
"stroke-linecap": "round",
|
|
27525
27527
|
"stroke-linejoin": "round"
|
|
27526
|
-
}, [...t[17] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), G.value ? (C(), f("div",
|
|
27528
|
+
}, [...t[17] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), G.value ? (C(), f("div", {
|
|
27529
|
+
key: 0,
|
|
27530
|
+
class: y(["Agent__typeMenu", { "is-down": !Xe.value }]),
|
|
27531
|
+
style: b({ maxHeight: `${Ze.value}px` })
|
|
27532
|
+
}, [(C(!0), f(s, null, T(X.value, (e) => (C(), f("button", {
|
|
27527
27533
|
key: e.id || e.title,
|
|
27528
27534
|
class: y(["Agent__typeOption", { "is-active": !!Ge.value && D(ue)?.id === e.id && D(ue)?.title === e.title }]),
|
|
27529
|
-
onClick: (t) =>
|
|
27530
|
-
}, E(e.title), 11,
|
|
27535
|
+
onClick: (t) => it(e)
|
|
27536
|
+
}, E(e.title), 11, yl))), 128))], 6)) : d("", !0)], 512)) : d("", !0)]),
|
|
27531
27537
|
B.value || Be.value ? (C(), f("button", {
|
|
27532
27538
|
key: 0,
|
|
27533
27539
|
class: "Agent__btn Agent__btn--newTask",
|
|
27534
27540
|
title: "开启新任务",
|
|
27535
|
-
onClick:
|
|
27541
|
+
onClick: Rt
|
|
27536
27542
|
}, "新任务 ")) : d("", !0),
|
|
27537
27543
|
M(p("button", {
|
|
27538
27544
|
class: "Agent__btn Agent__btn--clear",
|
|
27539
27545
|
title: "清空",
|
|
27540
|
-
onClick:
|
|
27546
|
+
onClick: vt
|
|
27541
27547
|
}, "× ", 512), [[k, F.value]]),
|
|
27542
27548
|
p("button", {
|
|
27543
27549
|
class: "Agent__btn",
|
|
27544
27550
|
title: H.value ? "退出全屏" : "全屏",
|
|
27545
|
-
onClick:
|
|
27546
|
-
}, [H.value ? (C(), f("svg",
|
|
27551
|
+
onClick: Ot
|
|
27552
|
+
}, [H.value ? (C(), f("svg", Sl, [...t[19] ||= [p("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" }, null, -1)]])) : (C(), f("svg", xl, [...t[18] ||= [p("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }, null, -1)]]))], 8, bl),
|
|
27547
27553
|
p("button", {
|
|
27548
27554
|
class: "Agent__btn Agent__btn--send",
|
|
27549
27555
|
disabled: !Ke.value,
|
|
27550
27556
|
title: "发送",
|
|
27551
|
-
onClick:
|
|
27557
|
+
onClick: Mt
|
|
27552
27558
|
}, [...t[20] ||= [p("svg", {
|
|
27553
27559
|
viewBox: "0 0 24 24",
|
|
27554
27560
|
width: "18",
|
|
27555
27561
|
height: "18",
|
|
27556
27562
|
fill: "currentColor"
|
|
27557
|
-
}, [p("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })], -1)]], 8,
|
|
27563
|
+
}, [p("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })], -1)]], 8, Cl)
|
|
27558
27564
|
]),
|
|
27559
|
-
D(Ce) || R.value.length > 0 || Be.value ? (C(), f("div",
|
|
27565
|
+
D(Ce) || R.value.length > 0 || Be.value ? (C(), f("div", wl)) : d("", !0)
|
|
27560
27566
|
])], 6)], 8, ["disabled"]);
|
|
27561
27567
|
};
|
|
27562
27568
|
}
|
|
27563
|
-
}),
|
|
27569
|
+
}), kl = /* @__PURE__ */ t({ default: () => Al }), Al = /* @__PURE__ */ Ot(Ol, [["__scopeId", "data-v-056961db"]]);
|
|
27564
27570
|
//#endregion
|
|
27565
|
-
export { Mt as a, kt as c, Et as d, bt as f, Tt as h, Nt as i, Ot as l, mt as m, Sc as n, jt as o, Dt as p, Pt as r, At as s,
|
|
27571
|
+
export { Mt as a, kt as c, Et as d, bt as f, Tt as h, Nt as i, Ot as l, mt as m, Sc as n, jt as o, Dt as p, Pt as r, At as s, kl as t, _t as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, l as t, n, r, u as i } from "./component-Agent-
|
|
1
|
+
import { f as e, l as t, n, r, u as i } from "./component-Agent-D29NaL88.mjs";
|
|
2
2
|
import { ElButton as a, ElCheckbox as o, ElDialog as s, ElTree as c } from "element-plus/es";
|
|
3
3
|
import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, nextTick as b, normalizeClass as x, normalizeStyle as ee, onBeforeUnmount as te, onMounted as ne, onUnmounted as re, openBlock as S, ref as C, renderList as w, toDisplayString as T, unref as ie, useAttrs as ae, vShow as oe, watch as E, withCtx as se, withDirectives as D, withModifiers as O } from "vue";
|
|
4
4
|
import * as k from "echarts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
2
2
|
import { ElLoadingDirective as n } from "element-plus/es";
|
|
3
3
|
import { Fragment as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createStaticVNode as s, defineComponent as c, getCurrentInstance as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, vModelRadio as h, withDirectives as g } from "vue";
|
|
4
4
|
//#region src/assets/img/head.png
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
4
4
|
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
|
|
5
5
|
import * as b from "echarts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
4
4
|
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
|
|
5
5
|
import * as y from "echarts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createTextVNode as o, defineComponent as s, onBeforeUnmount as c, onMounted as l, openBlock as u, ref as d, toDisplayString as f } from "vue";
|
|
4
4
|
//#region src/components/Duty/Duty.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var p = { class: "Duty" }, m = { class: "duty-section" }, h = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
4
4
|
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
|
|
5
5
|
import * as y from "echarts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { ElLoadingDirective as n } from "element-plus/es";
|
|
4
4
|
import { Fragment as r, computed as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeStyle as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, vShow as g, withDirectives as _ } from "vue";
|
|
5
5
|
import "element-plus/es/components/loading/style/css";
|
package/dist/chunks/{component-Forecast72h-B85PYYlt.mjs → component-Forecast72h-C2m-Ne5P.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
2
2
|
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
3
3
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createVNode as ee, defineComponent as d, getCurrentInstance as te, nextTick as f, normalizeClass as ne, normalizeStyle as re, onBeforeUnmount as ie, onMounted as ae, onUnmounted as oe, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as se, withDirectives as ce } from "vue";
|
|
4
4
|
import * as _ from "echarts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import { f as e, l as t } from "./component-Agent-
|
|
1
|
+
import "./component-AqiMonitor-gS8g8KDE.mjs";
|
|
2
|
+
import { f as e, l as t } from "./component-Agent-D29NaL88.mjs";
|
|
3
3
|
import { ElIcon as n, ElLoadingDirective as r, ElRadio as i, ElRadioGroup as a } from "element-plus/es";
|
|
4
4
|
import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as ee, nextTick as m, normalizeClass as h, normalizeStyle as te, onBeforeUnmount as g, onMounted as ne, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, withCtx as C, withDirectives as w } from "vue";
|
|
5
5
|
import { ArrowRight as T } from "@element-plus/icons-vue";
|