nxd-plugin 1.8.45 → 1.8.47

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.
Files changed (89) hide show
  1. package/dist/chunks/GridData-DKQLl2Yn.mjs +2 -0
  2. package/dist/chunks/YCServiceSummary-CAOOfFZP.mjs +2 -0
  3. package/dist/chunks/{component-Agent-Cm2BEfcV.mjs → component-Agent-DwXtdLhK.mjs} +287 -228
  4. package/dist/chunks/{component-AiChat-C0nCRTDL.mjs → component-AiChat-Cj1xCAtL.mjs} +1 -1
  5. package/dist/chunks/{component-AqiMonitor-buvqeOgY.mjs → component-AqiMonitor-CiRH3KK9.mjs} +1 -1
  6. package/dist/chunks/{component-ChartCumulativePre-C4PgcnVy.mjs → component-ChartCumulativePre-jgepn88x.mjs} +2 -2
  7. package/dist/chunks/{component-ChartServiceMaterial-C7a1Qqo_.mjs → component-ChartServiceMaterial-CE9IfnBv.mjs} +2 -2
  8. package/dist/chunks/{component-Duty-DOs3Ug6k.mjs → component-Duty-BsFsOk0K.mjs} +2 -2
  9. package/dist/chunks/{component-EarlyWarningStatistic-CXmSRC_Z.mjs → component-EarlyWarningStatistic-8yavuyPf.mjs} +2 -2
  10. package/dist/chunks/{component-EarlyWarningStatistic2-DBipE3hf.mjs → component-EarlyWarningStatistic2-DppX7jcV.mjs} +2 -2
  11. package/dist/chunks/{component-Forecast72h-CU8p9veB.mjs → component-Forecast72h-CD6eT1xe.mjs} +1 -1
  12. package/dist/chunks/{component-GeologyLiveAlarm-Br4JKabm.mjs → component-GeologyLiveAlarm-CKdsxprI.mjs} +2 -2
  13. package/dist/chunks/component-GridData-o7hipw0h.mjs +756 -0
  14. package/dist/chunks/{component-GridForecastMsg-8ERFdIt7.mjs → component-GridForecastMsg-BooZUH5C.mjs} +1 -1
  15. package/dist/chunks/{component-HDSeaLegend-DQXZYgpR.mjs → component-HDSeaLegend-DgPHlKXO.mjs} +2 -2
  16. package/dist/chunks/{component-HdCameraList-CzJDCIUd.mjs → component-HdCameraList-DuC-_0uH.mjs} +2 -2
  17. package/dist/chunks/{component-HdFarmStation-Bw9K6NJn.mjs → component-HdFarmStation-BtYLSMAY.mjs} +2 -2
  18. package/dist/chunks/{component-HdFarmStationDialog-jR-LBbQP.mjs → component-HdFarmStationDialog-BHxuJEsh.mjs} +1 -1
  19. package/dist/chunks/{component-HdForecastProducts-TXRVg26S.mjs → component-HdForecastProducts-BnI8u5s4.mjs} +1 -1
  20. package/dist/chunks/{component-HdHeatChart-DZak9Ft6.mjs → component-HdHeatChart-CuqWcjET.mjs} +1 -1
  21. package/dist/chunks/{component-HdHeatChartDialog-D1fXxl0L.mjs → component-HdHeatChartDialog-pXLf6f_w.mjs} +2 -2
  22. package/dist/chunks/{component-HdHeatService-B6jbZMfm.mjs → component-HdHeatService-CBo6v1T6.mjs} +1 -1
  23. package/dist/chunks/{component-HdInsectDetailList-B3sikKhM.mjs → component-HdInsectDetailList-MrAoHbsv.mjs} +1 -1
  24. package/dist/chunks/{component-HdInsectList-BhwtKWGc.mjs → component-HdInsectList-Dswl1k3W.mjs} +1 -1
  25. package/dist/chunks/{component-HdMajorActivity-EC4Hvfqb.mjs → component-HdMajorActivity-Dcgr5Lp_.mjs} +2 -2
  26. package/dist/chunks/{component-HdObservation-DZLNEWhN.mjs → component-HdObservation-DmRN3dBq.mjs} +3 -3
  27. package/dist/chunks/{component-HdPreSituation-DBGR2Ryu.mjs → component-HdPreSituation-KMOE4Mt_.mjs} +3 -3
  28. package/dist/chunks/{component-HdQxServiceEffects-dREiY6bN.mjs → component-HdQxServiceEffects-CZZHRjNN.mjs} +1 -1
  29. package/dist/chunks/{component-HdRadarList-BxHqX6lK.mjs → component-HdRadarList-Cx_cRpjb.mjs} +3 -3
  30. package/dist/chunks/{component-HdRadarTime-BmXlFJFB.mjs → component-HdRadarTime-D6ZLrCfA.mjs} +1 -1
  31. package/dist/chunks/{component-HdRadarTimeLine-DuKt7347.mjs → component-HdRadarTimeLine-CwdMMlPK.mjs} +1 -1
  32. package/dist/chunks/{component-HdRisk-CAF1JxIu.mjs → component-HdRisk-Cx_Wuyuy.mjs} +2 -2
  33. package/dist/chunks/{component-HdSeaCase-DVhbtYSc.mjs → component-HdSeaCase-C9gN_sjI.mjs} +1 -1
  34. package/dist/chunks/{component-HdServiceMarterial-CAXKIPOW.mjs → component-HdServiceMarterial-CT_sdZkH.mjs} +2 -2
  35. package/dist/chunks/{component-HdServiceRequirements-ByhUd4ey.mjs → component-HdServiceRequirements-CrpxYdNK.mjs} +2 -2
  36. package/dist/chunks/{component-HdSoil-qNATYOOB.mjs → component-HdSoil-eQTGGIkq.mjs} +2 -2
  37. package/dist/chunks/{component-HdSoilDetailList-BbihIcJ9.mjs → component-HdSoilDetailList-B1VZ5iDc.mjs} +1 -1
  38. package/dist/chunks/{component-HdStationTem-C7eTBEla.mjs → component-HdStationTem-BCls8KKc.mjs} +3 -3
  39. package/dist/chunks/{component-HdSuggestion-BGz6-uaw.mjs → component-HdSuggestion-BnGlQLfg.mjs} +2 -2
  40. package/dist/chunks/{component-HdThreeWeatherTrend-CZTzNuEZ.mjs → component-HdThreeWeatherTrend-D_dPqael.mjs} +3 -3
  41. package/dist/chunks/{component-HdWaveForcast-CFfbmxOJ.mjs → component-HdWaveForcast-B-RPD_5H.mjs} +2 -2
  42. package/dist/chunks/{component-HighQuality-qHBWb-O7.mjs → component-HighQuality-BpOhQkvl.mjs} +1 -1
  43. package/dist/chunks/{component-HighWayEarlyWarningRed-D5xK5D0V.mjs → component-HighWayEarlyWarningRed-BwmqvV6c.mjs} +2 -2
  44. package/dist/chunks/{component-HighWayFreeze-Bfzy5Py4.mjs → component-HighWayFreeze-DyDyOInt.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayLiveAlarm-C0NVxNlc.mjs → component-HighwayLiveAlarm-DDhriJHu.mjs} +2 -2
  46. package/dist/chunks/{component-HighwayLiveAlarmNew-BkPc1uHT.mjs → component-HighwayLiveAlarmNew-Dxf6DUyI.mjs} +3 -3
  47. package/dist/chunks/{component-HighwayStations-gLCzqaFg.mjs → component-HighwayStations-B-h6dG6Y.mjs} +2 -2
  48. package/dist/chunks/{component-HighwayWeatherForecast-Di4k_gXe.mjs → component-HighwayWeatherForecast-BVj7aWS1.mjs} +5 -5
  49. package/dist/chunks/{component-IframeWeb-BI6ARPim.mjs → component-IframeWeb-B2CTwN6w.mjs} +1 -1
  50. package/dist/chunks/{component-ImageGeneration-HZcmty4a.mjs → component-ImageGeneration-70AuumKi.mjs} +560 -321
  51. package/dist/chunks/{component-IntroducePic-BzcpXcDu.mjs → component-IntroducePic-Bo227tKg.mjs} +1 -1
  52. package/dist/chunks/{component-LithiumBatteryMiningArea-CWmowyvH.mjs → component-LithiumBatteryMiningArea-BDFvxMfk.mjs} +2 -2
  53. package/dist/chunks/{component-MapPopup-BMpK3HDv.mjs → component-MapPopup-vqI8jKFt.mjs} +1 -1
  54. package/dist/chunks/{component-MaterialPreview-opXV5MsP.mjs → component-MaterialPreview-CUz2PkU0.mjs} +1 -1
  55. package/dist/chunks/{component-PieLegend-DbYkitpz.mjs → component-PieLegend-BIImVR6x.mjs} +1 -1
  56. package/dist/chunks/{component-PrecipitationRanking-DCkl4WcA.mjs → component-PrecipitationRanking-Ct4OY0FJ.mjs} +3 -3
  57. package/dist/chunks/{component-RadarChart-elpvJJcV.mjs → component-RadarChart-7kA3pjCB.mjs} +2 -2
  58. package/dist/chunks/{component-RadarLegend-CooXza3E.mjs → component-RadarLegend-ByCdufPU.mjs} +1 -1
  59. package/dist/chunks/{component-RadarShortTerm-a2cNj-TF.mjs → component-RadarShortTerm-pixyOE-9.mjs} +4 -4
  60. package/dist/chunks/{component-RadarTime-CvudM45Q.mjs → component-RadarTime-DuIABgoI.mjs} +2 -2
  61. package/dist/chunks/{component-RenderMarkdown-hrLIIwgE.mjs → component-RenderMarkdown-Bn2qLtnE.mjs} +2 -2
  62. package/dist/chunks/{component-ReservoirLiveAlarm-CzZpNTun.mjs → component-ReservoirLiveAlarm-C-NS9Erh.mjs} +3 -3
  63. package/dist/chunks/{component-ServiceMaterial-9oH_DZq1.mjs → component-ServiceMaterial-BVatsrsj.mjs} +2 -2
  64. package/dist/chunks/{component-ServiceMaterialsBtn-ckhadvV7.mjs → component-ServiceMaterialsBtn-BgMw_lBj.mjs} +2 -2
  65. package/dist/chunks/{component-StationDialog-XTeGI3qA.mjs → component-StationDialog-_pkrpDnI.mjs} +3 -3
  66. package/dist/chunks/{component-StationList-rrmZM7q1.mjs → component-StationList-D4XTo6r2.mjs} +3 -3
  67. package/dist/chunks/{component-TimeBasedForecast-C8eEmt7r.mjs → component-TimeBasedForecast-4ZZ7ZnCH.mjs} +4 -4
  68. package/dist/chunks/{component-Typhoon-RsStDsjO.mjs → component-Typhoon-DKmZhXAu.mjs} +2 -2
  69. package/dist/chunks/{component-WarningLine-gmXFFeUv.mjs → component-WarningLine-B-2b5J3R.mjs} +2 -2
  70. package/dist/chunks/{component-WarningSignal-CjQjyTr4.mjs → component-WarningSignal-Dv03xQ5u.mjs} +3 -3
  71. package/dist/chunks/{component-WeatherForecast-CtNxOx9i.mjs → component-WeatherForecast-DqdD9JUX.mjs} +4 -4
  72. package/dist/chunks/{component-YCDataMonitor-CI7XRJ83.mjs → component-YCDataMonitor-BPflVY09.mjs} +1 -1
  73. package/dist/chunks/{component-YCDataService-DRN7c-yB.mjs → component-YCDataService-DGIoFH31.mjs} +6 -6
  74. package/dist/chunks/{component-YCHighWaySummary-BUAKtn19.mjs → component-YCHighWaySummary-CvW4Oc_G.mjs} +2 -2
  75. package/dist/chunks/{component-YCHome-C1IvF19Y.mjs → component-YCHome-BNYalrzu.mjs} +4 -4
  76. package/dist/chunks/{component-YCHomeLegend-DzDo8zz6.mjs → component-YCHomeLegend-CpA6i_j6.mjs} +2 -2
  77. package/dist/chunks/{component-YCLoginNew-DULGc-uY.mjs → component-YCLoginNew-BfAbQH6O.mjs} +2 -2
  78. package/dist/chunks/{component-YCServiceSummary-BuJLWviw.mjs → component-YCServiceSummary-CbPG7pl2.mjs} +1 -1
  79. package/dist/components/Agent/Agent.vue.d.ts +1 -0
  80. package/dist/components/GridData/GridData.vue.d.ts +53 -0
  81. package/dist/composables/useDraggable.d.ts +3 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/nxd-plugin.mjs +75 -75
  84. package/dist/styles/component-Agent.css +1 -1
  85. package/dist/styles/component-GridData.css +1 -0
  86. package/dist/styles/component-YCDataService.css +1 -1
  87. package/dist/styles/component-YCLoginNew.css +1 -1
  88. package/package.json +2 -2
  89. package/dist/chunks/YCServiceSummary-CisUcq7u.mjs +0 -2
@@ -5038,20 +5038,50 @@ var Ot = (e = {}) => {
5038
5038
  //#endregion
5039
5039
  //#region src/composables/useDraggable.ts
5040
5040
  function Ut(e = {}) {
5041
- let { initialX: t = 0, initialY: n = 0 } = e, r = T(t), i = T(n), a = T(!1), o = 0, s = 0, c = 0, l = 0, u = () => {
5041
+ let { initialX: t = 0, initialY: n = 0, padding: r = 8 } = e, i = T(t), a = T(n), o = T(!1), s = 0, c = 0, l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = 0, g = 0, _ = 0, v = 0, y = () => {
5042
5042
  let t = e.disabled;
5043
5043
  return t === void 0 ? !1 : typeof t == "boolean" ? t : t.value;
5044
- }, d = (e) => {
5045
- a.value && (r.value = c + e.clientX - o, i.value = l + e.clientY - s);
5046
- }, f = () => {
5047
- a.value = !1, document.removeEventListener("pointermove", d), document.removeEventListener("pointerup", f);
5044
+ }, b = () => {
5045
+ h = 0, g = 0, _ = window.innerWidth, v = window.innerHeight;
5046
+ let t = e.target?.value?.parentElement;
5047
+ if (!t || t === document.body || t === document.documentElement || getComputedStyle(t).position === "static") return;
5048
+ let n = t.getBoundingClientRect();
5049
+ n.width <= 0 || n.height <= 0 || (h = Math.max(n.left, 0), g = Math.max(n.top, 0), _ = Math.min(n.right, window.innerWidth), v = Math.min(n.bottom, window.innerHeight));
5050
+ }, x = () => {
5051
+ let t = e.target?.value;
5052
+ if (!t) return !1;
5053
+ let n = t.getBoundingClientRect();
5054
+ return d = n.left - i.value, f = n.top - a.value, p = n.width, m = n.height, b(), !0;
5055
+ }, S = () => {
5056
+ let e = r + h - d, t = Math.max(e, _ - r - d - p), n = r + g - f;
5057
+ return {
5058
+ minX: e,
5059
+ maxX: t,
5060
+ minY: n,
5061
+ maxY: Math.max(n, v - r - f - m)
5062
+ };
5063
+ }, C = (t) => {
5064
+ if (!o.value) return;
5065
+ let n = l + t.clientX - s, r = u + t.clientY - c;
5066
+ if (e.target?.value) {
5067
+ let e = S();
5068
+ n = Math.min(Math.max(n, e.minX), e.maxX), r = Math.min(Math.max(r, e.minY), e.maxY);
5069
+ }
5070
+ i.value = n, a.value = r;
5071
+ }, w = () => {
5072
+ o.value = !1, document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", w);
5048
5073
  };
5049
5074
  return {
5050
- x: r,
5051
- y: i,
5052
- dragging: a,
5075
+ x: i,
5076
+ y: a,
5077
+ dragging: o,
5053
5078
  onStart: (e) => {
5054
- u() || (a.value = !0, o = e.clientX, s = e.clientY, c = r.value, l = i.value, document.addEventListener("pointermove", d), document.addEventListener("pointerup", f));
5079
+ y() || (o.value = !0, s = e.clientX, c = e.clientY, l = i.value, u = a.value, x(), document.addEventListener("pointermove", C), document.addEventListener("pointerup", w));
5080
+ },
5081
+ clamp: () => {
5082
+ if (!x()) return;
5083
+ let e = S();
5084
+ i.value = Math.min(Math.max(i.value, e.minX), e.maxX), a.value = Math.min(Math.max(a.value, e.minY), e.maxY);
5055
5085
  }
5056
5086
  };
5057
5087
  }
@@ -52819,28 +52849,28 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
52819
52849
  }, ZS = {
52820
52850
  key: 5,
52821
52851
  class: "Agent__answerActions"
52822
- }, QS = { class: "Agent__main" }, $S = ["onKeydown"], eC = { class: "Agent__actions" }, tC = { class: "Agent__typeGroup" }, nC = { class: "Agent__typeLabel" }, rC = ["onClick"], iC = { class: "Agent__typeLabel" }, aC = ["onClick"], oC = ["title"], sC = {
52852
+ }, QS = { class: "Agent__main" }, $S = ["onKeydown"], eC = ["title"], tC = { class: "Agent__actions" }, nC = { class: "Agent__typeGroup" }, rC = { class: "Agent__typeLabel" }, iC = ["onClick"], aC = { class: "Agent__typeLabel" }, oC = ["onClick"], sC = ["title"], cC = {
52823
52853
  key: 0,
52824
52854
  viewBox: "0 0 24 24",
52825
52855
  width: "18",
52826
52856
  height: "18",
52827
52857
  fill: "currentColor"
52828
- }, cC = {
52858
+ }, lC = {
52829
52859
  key: 1,
52830
52860
  viewBox: "0 0 24 24",
52831
52861
  width: "18",
52832
52862
  height: "18",
52833
52863
  fill: "currentColor"
52834
- }, lC = ["disabled"], uC = {
52864
+ }, uC = ["disabled"], dC = {
52835
52865
  key: 2,
52836
52866
  class: "Agent__divider"
52837
- }, dC = { class: "Agent__camPlayer" }, fC = { class: "Agent__camHead" }, pC = { class: "Agent__camTitle" }, mC = { class: "Agent__camBody" }, hC = {
52867
+ }, fC = { class: "Agent__camPlayer" }, pC = { class: "Agent__camHead" }, mC = { class: "Agent__camTitle" }, hC = { class: "Agent__camBody" }, gC = {
52838
52868
  key: 0,
52839
52869
  class: "Agent__camState Agent__camState--loading"
52840
- }, gC = {
52870
+ }, _C = {
52841
52871
  key: 1,
52842
52872
  class: "Agent__camState Agent__camState--error"
52843
- }, _C = "​", vC = 200, yC = 45, bC = /* @__PURE__ */ g({
52873
+ }, vC = "​", yC = 10, bC = 200, xC = 45, SC = /* @__PURE__ */ g({
52844
52874
  __name: "Agent",
52845
52875
  props: {
52846
52876
  interfaceBaseHttp: {
@@ -52894,17 +52924,33 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
52894
52924
  calling: "执行中",
52895
52925
  success: "已完成",
52896
52926
  error: "失败"
52897
- }, I = T(""), L = T(), R = T(), z = T([]), B = T(!1), ee = T(!1), te = -1, ne = null, re = !1, V = T(!1), ie = T(), H = T(!1), ae = T(), oe = T(!1), se = T(""), ce = T(!1), le = l(() => !!se.value), { x: ue, y: de, dragging: fe, onStart: pe } = Ut({ disabled: V }), me = k(), { typeOptions: he, currentSubList: ge, activeLabel: _e, activeSubItem: ve, selectLabel: ye, selectSubItem: be, resetMenu: xe, currentAi: Se, loading: Ce, send: we, clear: Te, dispose: Ee, login: De, fetchSubMenu: Oe, findAgentGroup: ke, materialTaskId: Ae } = mS(r), { visible: je, block: Me, editorRef: Ne, loading: Pe, error: Fe, openDocument: Ie, closeDocument: Le, retry: Re, treeRef: ze, channelTree: Be, selectedChannelKeys: Ve, checkAll: He, isIndeterminate: Ue, publishLoading: We, handleTreeCheck: Ge, handleCheckAllChange: Ke, handlePublishConfirm: qe } = hS(r, Ae), Je = l(() => B.value || Ce.value), Ye = l(() => ke(r.agentType)), Xe = l(() => Ye.value?.label || ""), Ze = l(() => le.value ? se.value : Xe.value), Qe = l(() => Ye.value?.list || []), $e = l(() => le.value ? ge.value : Qe.value), et = l(() => At(se.value) && ve.value?.title || ""), tt = l(() => !(!I.value.trim() || Je.value || le.value && !_e.value)), nt = l(() => V.value ? {} : {
52898
- ...me.style || {},
52899
- transform: `translate3d(${ue.value}px, ${de.value}px, 0)`
52900
- }), rt = (e) => {
52927
+ }, I = T(""), L = T(), R = T(), z = T([]), B = T(!1), ee = T(!1), te = -1, ne = null, re = !1, V = T(!1), ie = T(), H = T(!1), ae = T(), oe = T(!1), se = T(""), ce = T(!1), le = l(() => !!se.value), ue = T(), { x: de, y: fe, dragging: pe, onStart: me, clamp: he } = Ut({
52928
+ disabled: V,
52929
+ target: ue
52930
+ }), ge = () => {
52931
+ V.value || he();
52932
+ }, _e = T(!1), ve = (e) => {
52933
+ let t = ue.value;
52934
+ if (!t) return !1;
52935
+ let n = t.getBoundingClientRect(), r = Math.min(e.clientX - n.left, n.right - e.clientX), i = Math.min(e.clientY - n.top, n.bottom - e.clientY);
52936
+ return r <= yC || i <= yC;
52937
+ }, ye = (e) => {
52938
+ e.defaultPrevented || V.value || ve(e) && (e.preventDefault(), me(e));
52939
+ }, be = (e) => {
52940
+ _e.value = !pe.value && !V.value && ve(e);
52941
+ }, xe = () => {
52942
+ _e.value = !1;
52943
+ }, Se = k(), { typeOptions: Ce, currentSubList: we, activeLabel: Te, activeSubItem: Ee, selectLabel: De, selectSubItem: Oe, resetMenu: ke, currentAi: Ae, loading: je, send: Me, clear: Ne, dispose: Pe, login: Fe, fetchSubMenu: Ie, findAgentGroup: Le, materialTaskId: Re } = mS(r), { visible: ze, block: Be, editorRef: Ve, loading: He, error: Ue, openDocument: We, closeDocument: Ge, retry: Ke, treeRef: qe, channelTree: Je, selectedChannelKeys: Ye, checkAll: Xe, isIndeterminate: Ze, publishLoading: Qe, handleTreeCheck: $e, handleCheckAllChange: et, handlePublishConfirm: tt } = hS(r, Re), nt = l(() => B.value || je.value), rt = l(() => Le(r.agentType)), it = l(() => rt.value?.label || ""), at = l(() => le.value ? se.value : it.value), ot = l(() => rt.value?.list || []), st = l(() => le.value ? we.value : ot.value), ct = l(() => Wt(se.value) && Ee.value?.title || ""), lt = l(() => !(!I.value.trim() || nt.value || le.value && !Te.value)), ut = l(() => V.value ? {} : {
52944
+ ...Se.style || {},
52945
+ transform: `translate3d(${de.value}px, ${fe.value}px, 0)`
52946
+ }), dt = (e) => {
52901
52947
  let t = `<script>window.__agentCfg=${JSON.stringify({
52902
52948
  baseHttp: r.workflowBaseUrl || r.baseHttp || "",
52903
52949
  appKey: r.appKey || "",
52904
52950
  appSalt: r.appSalt || ""
52905
52951
  })}<\/script>`;
52906
52952
  return e.includes("<head>") ? e.replace("<head>", "<head>" + t) : t + e;
52907
- }, it = (e) => {
52953
+ }, ft = (e) => {
52908
52954
  let t = e.data;
52909
52955
  if (console.log("d", t), t && t.type === "chartHeight" && typeof t.height == "number" && t.height > 0) {
52910
52956
  let n = document.querySelectorAll("iframe");
@@ -52914,21 +52960,21 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
52914
52960
  }
52915
52961
  return;
52916
52962
  }
52917
- if (t && t.type === "openTool" && t.payload && n("openTool", t.payload), t && t.type === "toMapView" && t.payload !== void 0 && n("toMapView", t.payload), t && t.type === "addMarker" && t.payload) return lt(t.payload);
52918
- if (t && t.type === "clearMarker") return ut();
52919
- t && t.type === "playCamera" && t.payload && xt(t.payload);
52920
- }, at = T([]), ot = {}, st = "hdCamera", ct = (e) => {
52963
+ if (t && t.type === "openTool" && t.payload && n("openTool", t.payload), t && t.type === "toMapView" && t.payload !== void 0 && n("toMapView", t.payload), t && t.type === "addMarker" && t.payload) return _t(t.payload);
52964
+ if (t && t.type === "clearMarker") return vt();
52965
+ t && t.type === "playCamera" && t.payload && At(t.payload);
52966
+ }, pt = T([]), mt = {}, ht = "hdCamera", gt = (e) => {
52921
52967
  let t = ["宝山农高蓝莓产业园摄像头", "大村农高蓝莓产业园摄像头"].includes(e.name) ? Ic : Fc;
52922
52968
  return `<div data-markerId="camera-${e.id}" class="hd-camera-marker" style="position:relative;display:inline-block;width:24px;height:24px;"><img src="${t}" alt="摄像头" style="width:24px;height:24px;display:block;cursor:pointer;" title="${e.name.replace("摄像头", "")}" /></div>`;
52923
- }, lt = (e) => {
52969
+ }, _t = (e) => {
52924
52970
  let t = (e?.cameras || []).filter((e) => e.lat && e.lon);
52925
52971
  if (!t.length) {
52926
52972
  console.warn("Agent 没有有效经纬度数据,跳过绘制");
52927
52973
  return;
52928
52974
  }
52929
- at.value = t, ot = e.play || ot;
52975
+ pt.value = t, mt = e.play || mt;
52930
52976
  let r = e.layer || "hdCamera";
52931
- st = r, n("addMarker", {
52977
+ ht = r, n("addMarker", {
52932
52978
  mapMarker: {
52933
52979
  clickOpen: !0,
52934
52980
  spotObject: [{
@@ -52937,7 +52983,7 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
52937
52983
  spotArrone: t.map((e) => ({
52938
52984
  lng: Number(e.lon),
52939
52985
  lat: Number(e.lat),
52940
- htmlString: ct(e),
52986
+ htmlString: gt(e),
52941
52987
  data: e,
52942
52988
  otherData: { markId: r }
52943
52989
  })),
@@ -52948,51 +52994,51 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
52948
52994
  },
52949
52995
  removeMarker: r
52950
52996
  });
52951
- }, ut = () => {
52952
- at.value = [], n("clearMarker", st);
52953
- }, dt = (e) => {
52997
+ }, vt = () => {
52998
+ pt.value = [], n("clearMarker", ht);
52999
+ }, yt = (e) => {
52954
53000
  let t = e.target?.closest?.(".hd-camera-marker");
52955
53001
  if (!t) return;
52956
53002
  e.stopPropagation();
52957
- let n = (t.getAttribute("data-markerId") || "").replace("camera-", ""), r = at.value.find((e) => String(e.id) === n);
52958
- r && xt({
53003
+ let n = (t.getAttribute("data-markerId") || "").replace("camera-", ""), r = pt.value.find((e) => String(e.id) === n);
53004
+ r && At({
52959
53005
  name: r.name,
52960
53006
  id: r.id,
52961
53007
  video: r.video,
52962
- play: ot
53008
+ play: mt
52963
53009
  });
52964
- }, ft = w({
53010
+ }, bt = w({
52965
53011
  visible: !1,
52966
53012
  title: "",
52967
53013
  loading: !1,
52968
53014
  error: ""
52969
- }), pt = T(null), mt = null, ht = null, gt = () => {
52970
- if (mt) {
53015
+ }), xt = T(null), St = null, Ct = null, wt = () => {
53016
+ if (St) {
52971
53017
  try {
52972
- mt.pause(), mt.unload(), mt.detachMediaElement(), mt.destroy();
53018
+ St.pause(), St.unload(), St.detachMediaElement(), St.destroy();
52973
53019
  } catch (e) {
52974
53020
  console.warn("Agent 销毁 flv 播放器失败", e);
52975
53021
  }
52976
- mt = null;
53022
+ St = null;
52977
53023
  }
52978
- if (ht) {
53024
+ if (Ct) {
52979
53025
  try {
52980
- ht.destroy();
53026
+ Ct.destroy();
52981
53027
  } catch (e) {
52982
53028
  console.warn("Agent 销毁 hls 播放器失败", e);
52983
53029
  }
52984
- ht = null;
53030
+ Ct = null;
52985
53031
  }
52986
- let e = pt.value;
53032
+ let e = xt.value;
52987
53033
  if (e) try {
52988
53034
  e.pause(), e.removeAttribute("src"), e.load();
52989
53035
  } catch (e) {
52990
53036
  console.warn("Agent 重置 video 元素失败", e);
52991
53037
  }
52992
- }, _t = (e) => {
53038
+ }, Tt = (e) => {
52993
53039
  let t = e.toLowerCase();
52994
53040
  return t.includes(".m3u8") || t.includes("/hls/") || t.includes("application/x-mpegurl");
52995
- }, vt = (e, t) => t?.proxyTarget && e.startsWith(t.proxyTarget) ? `${t.proxyPrefix || ""}${e.slice(t.proxyTarget.length)}` : e, yt = async (e) => {
53041
+ }, Et = (e, t) => t?.proxyTarget && e.startsWith(t.proxyTarget) ? `${t.proxyPrefix || ""}${e.slice(t.proxyTarget.length)}` : e, Dt = async (e) => {
52996
53042
  if (e.video) return e.video;
52997
53043
  let t = e.play || {};
52998
53044
  if (!t.wfId) throw Error("该点位暂无视频流地址");
@@ -53016,22 +53062,22 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53016
53062
  }
53017
53063
  let a = i?.data ?? i, o = a?.flv || a?.flvUrl || a?.flv_url || "";
53018
53064
  if (!o) throw Error("未获取到视频流地址");
53019
- return vt(String(o), t);
53020
- }, bt = (e) => {
53021
- gt();
53022
- let t = pt.value;
53065
+ return Et(String(o), t);
53066
+ }, Ot = (e) => {
53067
+ wt();
53068
+ let t = xt.value;
53023
53069
  if (t) {
53024
- if (_t(e)) {
53025
- sS.isSupported() ? (ht = new sS({ liveDurationInfinity: !0 }), ht.loadSource(e), ht.attachMedia(t), ht.on(sS.Events.MANIFEST_PARSED, () => t.play().catch(() => {})), ht.on(sS.Events.ERROR, (e, t) => {
53026
- t?.fatal && (ft.error = "HLS 视频流播放失败");
53027
- })) : t.canPlayType("application/vnd.apple.mpegurl") ? (t.src = e, t.play().catch(() => {})) : ft.error = "当前浏览器不支持 HLS 视频播放";
53070
+ if (Tt(e)) {
53071
+ sS.isSupported() ? (Ct = new sS({ liveDurationInfinity: !0 }), Ct.loadSource(e), Ct.attachMedia(t), Ct.on(sS.Events.MANIFEST_PARSED, () => t.play().catch(() => {})), Ct.on(sS.Events.ERROR, (e, t) => {
53072
+ t?.fatal && (bt.error = "HLS 视频流播放失败");
53073
+ })) : t.canPlayType("application/vnd.apple.mpegurl") ? (t.src = e, t.play().catch(() => {})) : bt.error = "当前浏览器不支持 HLS 视频播放";
53028
53074
  return;
53029
53075
  }
53030
53076
  if (!gS.default.isSupported()) {
53031
- ft.error = "当前浏览器不支持 FLV 视频播放";
53077
+ bt.error = "当前浏览器不支持 FLV 视频播放";
53032
53078
  return;
53033
53079
  }
53034
- mt = gS.default.createPlayer({
53080
+ St = gS.default.createPlayer({
53035
53081
  type: "flv",
53036
53082
  url: e,
53037
53083
  isLive: !0,
@@ -53043,57 +53089,64 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53043
53089
  enableStashBuffer: !1,
53044
53090
  stashInitialSize: 1280,
53045
53091
  autoCleanupSourceBuffer: !0
53046
- }), mt.attachMediaElement(t), mt.load(), mt.play().catch(() => {}), mt.on(gS.default.Events.ERROR, () => {
53047
- ft.error = "FLV 视频流播放失败";
53092
+ }), St.attachMediaElement(t), St.load(), St.play().catch(() => {}), St.on(gS.default.Events.ERROR, () => {
53093
+ bt.error = "FLV 视频流播放失败";
53048
53094
  });
53049
53095
  }
53050
- }, xt = async (e) => {
53051
- ft.visible = !0, ft.title = e?.name || "", ft.error = "", ft.loading = !0, await v();
53096
+ }, At = async (e) => {
53097
+ bt.visible = !0, bt.title = e?.name || "", bt.error = "", bt.loading = !0, await v();
53052
53098
  try {
53053
- bt(await yt(e));
53099
+ Ot(await Dt(e));
53054
53100
  } catch (e) {
53055
- ft.error = e?.message || "视频流加载失败";
53101
+ bt.error = e?.message || "视频流加载失败";
53056
53102
  } finally {
53057
- ft.loading = !1;
53103
+ bt.loading = !1;
53058
53104
  }
53059
- }, St = () => {
53060
- gt(), ft.visible = !1, ft.loading = !1, ft.error = "";
53061
- }, Ct = (e) => {
53105
+ }, jt = () => {
53106
+ wt(), bt.visible = !1, bt.loading = !1, bt.error = "";
53107
+ }, Mt = (e) => {
53062
53108
  let t = e.target;
53063
53109
  ie.value?.contains(t) || (H.value = !1), ae.value?.contains(t) || (oe.value = !1);
53064
- }, wt = T(!0), Tt = T(vC), Et = (e) => {
53110
+ }, Nt = T(!0), Pt = T(bC), Ft = (e) => {
53065
53111
  if (!e) return;
53066
53112
  let t = e.getBoundingClientRect(), n = t.top - 8, r = window.innerHeight - t.bottom - 8;
53067
- wt.value = n >= r, Tt.value = Math.max(80, Math.min(vC, wt.value ? n : r));
53068
- }, Dt = () => {
53069
- H.value = !H.value, H.value && (oe.value = !1, Et(ie.value));
53070
- }, Ot = () => {
53071
- oe.value = !oe.value, oe.value && (H.value = !1, Et(ae.value));
53113
+ Nt.value = n >= r, Pt.value = Math.max(80, Math.min(bC, Nt.value ? n : r));
53114
+ }, It = () => {
53115
+ H.value = !H.value, H.value && (oe.value = !1, Ft(ie.value));
53116
+ }, Lt = () => {
53117
+ oe.value = !oe.value, oe.value && (H.value = !1, Ft(ae.value));
53118
+ }, Rt = null, zt = 0, Bt = () => {
53119
+ let e = ue.value;
53120
+ if (!e || V.value) return;
53121
+ let t = e.getBoundingClientRect().height;
53122
+ zt && t !== zt && (fe.value += zt - t), zt = t, v(ge);
53123
+ }, Vt = null, Ht = () => {
53124
+ V.value || v(he);
53072
53125
  };
53073
53126
  x(() => {
53074
- Kt(), fn(), z.value = [], te = -1, ee.value = !1, window.addEventListener("message", it), window.addEventListener("pagehide", pn), window.addEventListener("click", Ct), document.addEventListener("click", dt), De().then(() => Oe());
53127
+ on(), Tn(), z.value = [], te = -1, ee.value = !1, window.addEventListener("message", ft), window.addEventListener("pagehide", En), window.addEventListener("click", Mt), window.addEventListener("resize", ge), document.addEventListener("click", yt), ue.value && (Rt = new ResizeObserver(Bt), Rt.observe(ue.value), zt = ue.value.getBoundingClientRect().height, ue.value.parentElement && (Vt = new ResizeObserver(Ht), Vt.observe(ue.value.parentElement))), v(ge), Fe().then(() => Ie());
53075
53128
  }), S(() => {
53076
- dn(), fn(), Ee(), Le(), St(), window.removeEventListener("message", it), window.removeEventListener("pagehide", pn), window.removeEventListener("click", Ct), document.removeEventListener("click", dt);
53129
+ wn(), Tn(), Pe(), Ge(), jt(), Rt?.disconnect(), Rt = null, Vt?.disconnect(), Vt = null, window.removeEventListener("message", ft), window.removeEventListener("pagehide", En), window.removeEventListener("click", Mt), window.removeEventListener("resize", ge), document.removeEventListener("click", yt);
53077
53130
  });
53078
- let At = (e) => lS[e] === "smartMake", jt = (e) => {
53079
- let t = ye(e, At(e));
53080
- t?.content ? qt(t.content) : Jt();
53131
+ let Wt = (e) => lS[e] === "smartMake", Gt = (e) => {
53132
+ let t = De(e, Wt(e));
53133
+ t?.content ? sn(t.content) : cn();
53081
53134
  };
53082
- j(ge, (e) => {
53083
- !le.value || ve.value || !e.length || At(se.value) && be(e[0]);
53135
+ j(we, (e) => {
53136
+ !le.value || Ee.value || !e.length || Wt(se.value) && Oe(e[0]);
53084
53137
  });
53085
- let Mt = (e) => {
53138
+ let Kt = (e) => {
53086
53139
  if (H.value = !1, oe.value = !1, e !== se.value) {
53087
- if (se.value = e, xe(), !e) {
53088
- Jt();
53140
+ if (se.value = e, ke(), !e) {
53141
+ cn();
53089
53142
  return;
53090
53143
  }
53091
- jt(e);
53144
+ Gt(e);
53092
53145
  }
53093
- }, Nt = (e) => {
53094
- oe.value = !1, At(se.value) && be(e), e.content && qt(e.content);
53095
- }, Pt = (e) => g[e || "thinking"] || "";
53096
- j(Se, (e) => {
53146
+ }, qt = (e) => {
53147
+ oe.value = !1, Wt(se.value) && Oe(e), e.content && sn(e.content);
53148
+ }, Jt = (e) => g[e || "thinking"] || "";
53149
+ j(Ae, (e) => {
53097
53150
  let t = z.value[te];
53098
53151
  if (!t || !t.legacy || !e) return;
53099
53152
  let n = e.thinkingStatus === "end";
@@ -53104,9 +53157,9 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53104
53157
  result: e.content || "",
53105
53158
  expanded: !1,
53106
53159
  status: e.status || "thinking"
53107
- })), 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 || "请求失败,请稍后重试" : "", rn();
53160
+ })), 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 || "请求失败,请稍后重试" : "", _n();
53108
53161
  });
53109
- let Ft = (e) => String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), It = (e) => {
53162
+ let Yt = (e) => String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Xt = (e) => {
53110
53163
  if (!e) return "";
53111
53164
  e = e.replace(/^[\s"'“”‘’"〝〞]+/, "").replace(/[\s"'“”‘’"〝〞]+$/, "");
53112
53165
  let t = e.split("\n");
@@ -53122,18 +53175,18 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53122
53175
  for (e.length > t.length && (e = e.slice(0, t.length)); e.length < t.length;) e.push("");
53123
53176
  a.push(e), i++;
53124
53177
  }
53125
- let o = "<table class=\"Agent__mdTable\"><thead><tr>" + t.map((e) => `<th>${Ft(e)}</th>`).join("") + "</tr></thead>";
53126
- o += "<tbody>" + a.map((e) => "<tr>" + e.map((e) => `<td>${Ft(e)}</td>`).join("") + "</tr>").join("") + "</tbody></table>", r.push(o);
53127
- } else r.push(Ft(e)), i++;
53178
+ let o = "<table class=\"Agent__mdTable\"><thead><tr>" + t.map((e) => `<th>${Yt(e)}</th>`).join("") + "</tr></thead>";
53179
+ o += "<tbody>" + a.map((e) => "<tr>" + e.map((e) => `<td>${Yt(e)}</td>`).join("") + "</tr>").join("") + "</tbody></table>", r.push(o);
53180
+ } else r.push(Yt(e)), i++;
53128
53181
  }
53129
53182
  return r.join("<br>");
53130
- }, Lt = (e) => {
53183
+ }, Zt = (e) => {
53131
53184
  try {
53132
53185
  return (JSON.parse(e).items || []).filter((e) => e && e.icon && e.label);
53133
53186
  } catch {
53134
53187
  return [];
53135
53188
  }
53136
- }, Rt = (e) => r.interfaceBaseHttp.replace(/\/$/, "") + "/skills/skill_sea_legend/assets/icons/" + e, zt = (e) => {
53189
+ }, Qt = (e) => r.interfaceBaseHttp.replace(/\/$/, "") + "/skills/skill_sea_legend/assets/icons/" + e, $t = (e) => {
53137
53190
  if (!e) return [];
53138
53191
  let t = [], n = 0;
53139
53192
  for (;;) {
@@ -53159,7 +53212,7 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53159
53212
  }) : o === "sea-legend" ? t.push({
53160
53213
  type: "seaLegend",
53161
53214
  content: s,
53162
- items: Lt(s)
53215
+ items: Zt(s)
53163
53216
  }) : t.push({
53164
53217
  type: "text",
53165
53218
  content: e.slice(r, a + 3)
@@ -53169,83 +53222,83 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53169
53222
  type: "text",
53170
53223
  content: e.slice(n)
53171
53224
  }), t;
53172
- }, Bt = () => {
53225
+ }, en = () => {
53173
53226
  let e = L.value;
53174
53227
  if (!e) return;
53175
53228
  let t = e.innerText.replace(/\n+$/, "").replace(/\u200B/g, "");
53176
- t.trim() ? I.value = t : Kt(), Wt();
53177
- }, Vt = (e) => {
53229
+ t.trim() ? I.value = t : on(), rn();
53230
+ }, tn = (e) => {
53178
53231
  e.preventDefault();
53179
53232
  let t = e.clipboardData?.getData("text/plain") || "";
53180
53233
  document.execCommand("insertText", !1, t);
53181
- }, Ht = () => {
53234
+ }, nn = () => {
53182
53235
  let e = L.value;
53183
53236
  e && e.style.setProperty("--anchor-top", `${e.scrollTop}px`);
53184
- }, Wt = () => {
53237
+ }, rn = () => {
53185
53238
  let e = L.value;
53186
- e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 150)}px`, e.style.overflowY = e.scrollHeight > 150 ? "auto" : "hidden", Ht());
53187
- }, Gt = () => {
53239
+ e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 150)}px`, e.style.overflowY = e.scrollHeight > 150 ? "auto" : "hidden", nn());
53240
+ }, an = () => {
53188
53241
  let e = L.value, t = window.getSelection();
53189
53242
  if (!e || !t) return;
53190
53243
  let n = document.createRange();
53191
53244
  n.selectNodeContents(e), n.collapse(!1), t.removeAllRanges(), t.addRange(n);
53192
- }, Kt = () => {
53245
+ }, on = () => {
53193
53246
  let e = L.value;
53194
- e && (e.innerHTML = _C, I.value = "", Gt());
53195
- }, qt = (e) => {
53247
+ e && (e.innerHTML = vC, I.value = "", an());
53248
+ }, sn = (e) => {
53196
53249
  let t = L.value;
53197
53250
  if (t) {
53198
53251
  if (!e) {
53199
- Kt();
53252
+ on();
53200
53253
  return;
53201
53254
  }
53202
53255
  t.innerText = e, I.value = e, v(() => {
53203
- Wt(), t.focus(), Gt();
53256
+ rn(), t.focus(), an();
53204
53257
  });
53205
53258
  }
53206
- }, Jt = () => {
53207
- Kt(), v(() => {
53208
- Wt(), L.value?.focus(), Gt();
53259
+ }, cn = () => {
53260
+ on(), v(() => {
53261
+ rn(), L.value?.focus(), an();
53209
53262
  });
53210
- }, Yt = T([]), Xt = /* @__PURE__ */ new Map(), Zt = (e, t) => {
53211
- e && (Yt.value[t] = e);
53212
- }, Qt = (e) => {
53213
- let t = Yt.value[e], n = z.value[e];
53263
+ }, ln = T([]), un = /* @__PURE__ */ new Map(), dn = (e, t) => {
53264
+ e && (ln.value[t] = e);
53265
+ }, fn = (e) => {
53266
+ let t = ln.value[e], n = z.value[e];
53214
53267
  if (!t || !n) return;
53215
- let r = Xt.get(e);
53216
- r && (clearTimeout(r), Xt.delete(e)), n.thinkingOpen ? (t.style.maxHeight = `${t.scrollHeight}px`, n.thinkingOpen = !1, requestAnimationFrame(() => {
53217
- t.style.maxHeight = `${yC}px`;
53218
- }), Xt.set(e, window.setTimeout(() => {
53219
- n.thinkingClamped = !0, Xt.delete(e);
53268
+ let r = un.get(e);
53269
+ r && (clearTimeout(r), un.delete(e)), n.thinkingOpen ? (t.style.maxHeight = `${t.scrollHeight}px`, n.thinkingOpen = !1, requestAnimationFrame(() => {
53270
+ t.style.maxHeight = `${xC}px`;
53271
+ }), un.set(e, window.setTimeout(() => {
53272
+ n.thinkingClamped = !0, un.delete(e);
53220
53273
  }, 260))) : (n.thinkingClamped = !1, n.thinkingOpen = !0, v(() => {
53221
- t.style.maxHeight = `${t.scrollHeight}px`, Xt.set(e, window.setTimeout(() => {
53222
- t.style.maxHeight = "", Xt.delete(e);
53274
+ t.style.maxHeight = `${t.scrollHeight}px`, un.set(e, window.setTimeout(() => {
53275
+ t.style.maxHeight = "", un.delete(e);
53223
53276
  }, 280));
53224
53277
  }));
53225
- }, $t = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : "id-" + Math.random().toString(36).slice(2) + "-" + Date.now().toString(36), en = () => {
53278
+ }, pn = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : "id-" + Math.random().toString(36).slice(2) + "-" + Date.now().toString(36), mn = () => {
53226
53279
  try {
53227
53280
  return localStorage.getItem("agentSessionId");
53228
53281
  } catch {
53229
53282
  return null;
53230
53283
  }
53231
- }, tn = (e) => {
53284
+ }, hn = (e) => {
53232
53285
  try {
53233
53286
  localStorage.setItem("agentSessionId", e);
53234
53287
  } catch {}
53235
- }, nn = T(en() || $t()), rn = () => {
53288
+ }, gn = T(mn() || pn()), _n = () => {
53236
53289
  v(() => {
53237
53290
  let e = R.value;
53238
53291
  e && (e.scrollTop = e.scrollHeight);
53239
53292
  });
53240
- }, an = () => {
53241
- V.value = !V.value, !V.value && je.value && Le(), rn();
53242
- }, on = (e) => {
53243
- e && (V.value = !0, Ie({
53293
+ }, vn = () => {
53294
+ V.value = !V.value, !V.value && ze.value && Ge(), V.value || v(ge), _n();
53295
+ }, yn = (e) => {
53296
+ e && (V.value = !0, We({
53244
53297
  name: e.name,
53245
53298
  fileUrl: e.fileUrl,
53246
53299
  ext: e.ext
53247
53300
  }));
53248
- }, sn = async (e) => {
53301
+ }, bn = async (e) => {
53249
53302
  if (!e?.fileUrl) return;
53250
53303
  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";
53251
53304
  try {
@@ -53258,16 +53311,16 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53258
53311
  } catch {}
53259
53312
  let a = document.createElement("a");
53260
53313
  a.href = n, a.download = i, a.target = "_blank", document.body.appendChild(a), a.click(), document.body.removeChild(a);
53261
- }, cn = (e, t) => {
53314
+ }, xn = (e, t) => {
53262
53315
  let n = z.value[te];
53263
53316
  if (n) {
53264
53317
  if (e === "thinking") n.thinking += t;
53265
- else if (e === "token") n.answer += t, n.answerParts = zt(n.answer);
53318
+ else if (e === "token") n.answer += t, n.answerParts = $t(n.answer);
53266
53319
  else if (e === "reset") n.answer = "", n.answerParts = [];
53267
53320
  else if (e === "tool_call") try {
53268
53321
  let e = JSON.parse(t);
53269
53322
  n.tools.push({
53270
- id: e.id || $t(),
53323
+ id: e.id || pn(),
53271
53324
  name: e.name,
53272
53325
  args: JSON.stringify(e.arguments),
53273
53326
  result: "",
@@ -53279,16 +53332,16 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53279
53332
  r && (r.result = e.result || "");
53280
53333
  } catch {}
53281
53334
  else e === "error" && (n.status = "error", n.error = t);
53282
- rn();
53335
+ _n();
53283
53336
  }
53284
- }, ln = async () => {
53337
+ }, Sn = async () => {
53285
53338
  let e = I.value.trim();
53286
- if (!e || Je.value) return;
53339
+ if (!e || nt.value) return;
53287
53340
  if (le.value) {
53288
- await un(e);
53341
+ await Cn(e);
53289
53342
  return;
53290
53343
  }
53291
- ce.value && mn();
53344
+ ce.value && Dn();
53292
53345
  let t = r.interfaceBaseHttp.replace(/\/$/, "") + "/api/agent/chat";
53293
53346
  z.value.push({
53294
53347
  question: e,
@@ -53300,13 +53353,13 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53300
53353
  error: "",
53301
53354
  thinkingOpen: !0,
53302
53355
  thinkingClamped: !1
53303
- }), te = z.value.length - 1, Jt(), B.value = !0, rn(), re = !1, ne = new AbortController();
53356
+ }), te = z.value.length - 1, cn(), B.value = !0, _n(), re = !1, ne = new AbortController();
53304
53357
  try {
53305
53358
  let n = await fetch(t, {
53306
53359
  method: "POST",
53307
53360
  headers: { "Content-Type": "application/json" },
53308
53361
  body: JSON.stringify({
53309
- sessionId: nn.value,
53362
+ sessionId: gn.value,
53310
53363
  message: e,
53311
53364
  agentType: r.agentType
53312
53365
  }),
@@ -53326,7 +53379,7 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53326
53379
  else if (e.startsWith("data:")) {
53327
53380
  let t = e.slice(5).replace(/^ /, "");
53328
53381
  l ? c += "\n" + t : (c = t, l = !0);
53329
- } else e.trim() === "" && (s && cn(s, c), s = "", c = "", l = !1);
53382
+ } else e.trim() === "" && (s && xn(s, c), s = "", c = "", l = !1);
53330
53383
  }
53331
53384
  }
53332
53385
  let u = z.value[te];
@@ -53335,10 +53388,10 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53335
53388
  let t = z.value[te];
53336
53389
  t && !re && (t.status = "error", t.error = "请求失败:" + (e instanceof Error ? e.message : String(e)));
53337
53390
  } finally {
53338
- ne = null, B.value = !1, re || (ee.value = !0), rn(), L.value?.focus(), I.value || Gt();
53391
+ ne = null, B.value = !1, re || (ee.value = !0), _n(), L.value?.focus(), I.value || an();
53339
53392
  }
53340
- }, un = async (e) => {
53341
- Te(), z.value = [], te = -1, ce.value = !0, z.value.push({
53393
+ }, Cn = async (e) => {
53394
+ Ne(), z.value = [], te = -1, ce.value = !0, z.value.push({
53342
53395
  question: e,
53343
53396
  thinking: "",
53344
53397
  tools: [],
@@ -53351,16 +53404,16 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53351
53404
  legacy: !0,
53352
53405
  markdown: "",
53353
53406
  file: null
53354
- }), te = z.value.length - 1, Jt(), rn();
53407
+ }), te = z.value.length - 1, cn(), _n();
53355
53408
  try {
53356
- await we(e);
53409
+ await Me(e);
53357
53410
  } finally {
53358
- ee.value = !0, rn(), L.value?.focus(), I.value || Gt();
53411
+ ee.value = !0, _n(), L.value?.focus(), I.value || an();
53359
53412
  }
53360
- }, dn = () => {
53413
+ }, wn = () => {
53361
53414
  ne &&= (re = !0, ne.abort(), null);
53362
- }, fn = (e = !1) => {
53363
- let t = nn.value;
53415
+ }, Tn = (e = !1) => {
53416
+ let t = gn.value;
53364
53417
  if (!t) return;
53365
53418
  let n = r.interfaceBaseHttp.replace(/\/$/, "") + "/api/agent/reset?sessionId=" + encodeURIComponent(t);
53366
53419
  if (e && typeof navigator.sendBeacon == "function") {
@@ -53371,10 +53424,10 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53371
53424
  method: "POST",
53372
53425
  keepalive: !0
53373
53426
  }).catch(() => {});
53374
- }, pn = () => {
53375
- dn(), fn(!0);
53376
- }, mn = () => {
53377
- dn(), fn(), Te(), nn.value = $t(), tn(nn.value), z.value = [], te = -1, ee.value = !1, B.value = !1, ce.value = !1, le.value && jt(se.value);
53427
+ }, En = () => {
53428
+ wn(), Tn(!0);
53429
+ }, Dn = () => {
53430
+ wn(), Tn(), Ne(), gn.value = pn(), hn(gn.value), z.value = [], te = -1, ee.value = !1, B.value = !1, ce.value = !1, le.value && Gt(se.value);
53378
53431
  };
53379
53432
  return (e, t) => {
53380
53433
  let n = a, r = o, l = i;
@@ -53382,34 +53435,40 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53382
53435
  to: "body",
53383
53436
  disabled: !V.value
53384
53437
  }, [p("div", {
53438
+ ref_key: "rootRef",
53439
+ ref: ue,
53385
53440
  class: y(["Agent", {
53386
- "is-dragging": O(fe),
53387
- "is-fullscreen": V.value
53441
+ "is-dragging": O(pe),
53442
+ "is-fullscreen": V.value,
53443
+ "is-edge-hover": _e.value
53388
53444
  }]),
53389
- style: b(nt.value)
53445
+ style: b(ut.value),
53446
+ onPointerdown: ye,
53447
+ onMousemove: be,
53448
+ onMouseleave: xe
53390
53449
  }, [p("div", _S, [
53391
- O(je) ? (C(), f("div", vS, [p("div", yS, [p("div", bS, D(O(Me)?.name || "文档"), 1), p("button", {
53450
+ O(ze) ? (C(), f("div", vS, [p("div", yS, [p("div", bS, D(O(Be)?.name || "文档"), 1), p("button", {
53392
53451
  class: "Agent__docClose",
53393
53452
  title: "关闭文档",
53394
- onClick: t[0] ||= (...e) => O(Le) && O(Le)(...e)
53453
+ onClick: t[0] ||= (...e) => O(Ge) && O(Ge)(...e)
53395
53454
  }, "×")]), p("div", xS, [p("div", SS, [
53396
53455
  p("div", {
53397
53456
  ref_key: "editorRef",
53398
- ref: Ne,
53457
+ ref: Ve,
53399
53458
  class: "Agent__docEditorMount"
53400
53459
  }, null, 512),
53401
- O(Pe) ? (C(), f("div", CS, [...t[5] ||= [p("span", { class: "Agent__docSpinner" }, null, -1), p("span", null, "正在加载文档编辑器...", -1)]])) : d("", !0),
53402
- O(Fe) ? (C(), f("div", wS, [p("span", TS, D(O(Fe)), 1), p("button", {
53460
+ O(He) ? (C(), f("div", CS, [...t[5] ||= [p("span", { class: "Agent__docSpinner" }, null, -1), p("span", null, "正在加载文档编辑器...", -1)]])) : d("", !0),
53461
+ O(Ue) ? (C(), f("div", wS, [p("span", TS, D(O(Ue)), 1), p("button", {
53403
53462
  class: "Agent__docRetry",
53404
- onClick: t[1] ||= (...e) => O(Re) && O(Re)(...e)
53463
+ onClick: t[1] ||= (...e) => O(Ke) && O(Ke)(...e)
53405
53464
  }, "重试")])) : d("", !0)
53406
53465
  ]), p("div", ES, [
53407
53466
  t[8] ||= p("div", { class: "Agent__docPublishTitle" }, "发布渠道选择", -1),
53408
53467
  p("div", DS, [h(n, {
53409
- modelValue: O(He),
53410
- "onUpdate:modelValue": t[2] ||= (e) => _(He) ? He.value = e : null,
53411
- indeterminate: O(Ue),
53412
- onChange: O(Ke)
53468
+ modelValue: O(Xe),
53469
+ "onUpdate:modelValue": t[2] ||= (e) => _(Xe) ? Xe.value = e : null,
53470
+ indeterminate: O(Ze),
53471
+ onChange: O(et)
53413
53472
  }, {
53414
53473
  default: M(() => [...t[6] ||= [m("全选", -1)]]),
53415
53474
  _: 1
@@ -53420,15 +53479,15 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53420
53479
  ])]),
53421
53480
  h(r, {
53422
53481
  ref_key: "treeRef",
53423
- ref: ze,
53482
+ ref: qe,
53424
53483
  class: "Agent__docTree",
53425
- data: O(Be),
53484
+ data: O(Je),
53426
53485
  "node-key": "id",
53427
53486
  "show-checkbox": "",
53428
53487
  "check-strictly": "",
53429
53488
  "default-expand-all": "",
53430
- "default-checked-keys": O(Ve),
53431
- onCheck: O(Ge)
53489
+ "default-checked-keys": O(Ye),
53490
+ onCheck: O($e)
53432
53491
  }, null, 8, [
53433
53492
  "data",
53434
53493
  "default-checked-keys",
@@ -53436,14 +53495,14 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53436
53495
  ]),
53437
53496
  p("div", OS, [h(l, {
53438
53497
  type: "primary",
53439
- loading: O(We),
53440
- onClick: O(qe)
53498
+ loading: O(Qe),
53499
+ onClick: O(tt)
53441
53500
  }, {
53442
53501
  default: M(() => [...t[7] ||= [m("发送", -1)]]),
53443
53502
  _: 1
53444
53503
  }, 8, ["loading", "onClick"])])
53445
53504
  ])])])) : d("", !0),
53446
- !O(je) && (z.value.length > 0 || Je.value) ? (C(), f("div", {
53505
+ !O(ze) && (z.value.length > 0 || nt.value) ? (C(), f("div", {
53447
53506
  key: 1,
53448
53507
  ref_key: "messagesRef",
53449
53508
  ref: R,
@@ -53452,7 +53511,7 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53452
53511
  e.thinking || e.legacy && e.tools.length ? (C(), f("div", jS, [
53453
53512
  p("div", {
53454
53513
  class: "Agent__thinkingHead",
53455
- onClick: (e) => Qt(n)
53514
+ onClick: (e) => fn(n)
53456
53515
  }, [t[10] ||= p("span", { class: "Agent__thinkingLabel" }, "思考过程", -1), (C(), f("svg", {
53457
53516
  class: y(["Agent__thinkingArrow", { "is-open": e.thinkingOpen }]),
53458
53517
  viewBox: "0 0 24 24",
@@ -53466,7 +53525,7 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53466
53525
  }, [...t[9] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 8, MS),
53467
53526
  p("div", {
53468
53527
  ref_for: !0,
53469
- ref: (e) => Zt(e, n),
53528
+ ref: (e) => dn(e, n),
53470
53529
  class: y(["Agent__thinkingText", { "is-clamped": e.thinkingClamped }])
53471
53530
  }, D(e.thinking), 3),
53472
53531
  e.legacy && e.tools.length ? (C(), f("div", NS, [(C(!0), f(s, null, E(e.tools, (e) => (C(), f("div", {
@@ -53475,24 +53534,24 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53475
53534
  }, [
53476
53535
  p("span", { class: y(["Agent__toolDot", `Agent__toolDot--${e.status || "thinking"}`]) }, null, 2),
53477
53536
  p("span", PS, D(e.name), 1),
53478
- p("span", FS, D(Pt(e.status)), 1)
53537
+ p("span", FS, D(Jt(e.status)), 1)
53479
53538
  ]))), 128))])) : d("", !0)
53480
53539
  ])) : d("", !0),
53481
53540
  (C(!0), f(s, null, E(e.answerParts, (e, t) => (C(), f(s, { key: t }, [e.type === "text" ? (C(), f("div", {
53482
53541
  key: 0,
53483
53542
  class: "Agent__answerText",
53484
- innerHTML: It(e.content)
53543
+ innerHTML: Xt(e.content)
53485
53544
  }, null, 8, IS)) : e.type === "seaLegend" ? (C(), f("div", LS, [(C(!0), f(s, null, E(e.items, (e, t) => (C(), f("div", {
53486
53545
  key: t,
53487
53546
  class: "Agent__legendItem"
53488
53547
  }, [p("img", {
53489
53548
  class: "Agent__legendIcon",
53490
- src: Rt(e.icon),
53549
+ src: Qt(e.icon),
53491
53550
  alt: e.label
53492
53551
  }, null, 8, RS), p("span", zS, D(e.label), 1)]))), 128))])) : (C(), f("iframe", {
53493
53552
  key: 2,
53494
53553
  class: "Agent__answerIframe",
53495
- srcdoc: rt(e.content)
53554
+ srcdoc: dt(e.content)
53496
53555
  }, null, 8, BS))], 64))), 128)),
53497
53556
  e.markdown ? (C(), f("div", {
53498
53557
  key: 1,
@@ -53509,11 +53568,11 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53509
53568
  p("div", US, [p("div", WS, D(e.file.name), 1), e.file.ext ? (C(), f("div", GS, D(e.file.ext.toUpperCase()), 1)) : d("", !0)]),
53510
53569
  p("div", KS, [p("button", {
53511
53570
  class: "Agent__fileBtn",
53512
- onClick: (t) => on(e.file)
53571
+ onClick: (t) => yn(e.file)
53513
53572
  }, "审核发布", 8, qS), p("button", {
53514
53573
  class: "Agent__fileBtn Agent__fileBtn--download",
53515
53574
  title: "下载",
53516
- onClick: (t) => sn(e.file)
53575
+ onClick: (t) => bn(e.file)
53517
53576
  }, [...t[11] ||= [p("svg", {
53518
53577
  viewBox: "0 0 24 24",
53519
53578
  width: "14",
@@ -53571,28 +53630,28 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53571
53630
  class: y(["Agent__input", { "is-empty": !I.value }]),
53572
53631
  contenteditable: "true",
53573
53632
  "data-placeholder": "有什么想问的吗?",
53574
- onInput: Bt,
53575
- onScroll: Ht,
53576
- onPaste: Vt,
53577
- onKeydown: P(F(ln, ["exact", "prevent"]), ["enter"])
53633
+ onInput: en,
53634
+ onScroll: nn,
53635
+ onPaste: tn,
53636
+ onKeydown: P(F(Sn, ["exact", "prevent"]), ["enter"])
53578
53637
  }, null, 42, $S), p("img", {
53579
53638
  class: "Agent__logo",
53580
53639
  src: cS,
53581
53640
  alt: "AI",
53582
- title: "按住拖动",
53641
+ title: V.value ? "" : "按住拖动",
53583
53642
  draggable: "false",
53584
- onPointerdown: t[3] ||= F((...e) => O(pe) && O(pe)(...e), ["prevent"])
53585
- }, null, 32)]),
53586
- p("div", eC, [
53587
- p("div", tC, [p("div", {
53643
+ onPointerdown: t[3] ||= F((...e) => O(me) && O(me)(...e), ["prevent"])
53644
+ }, null, 40, eC)]),
53645
+ p("div", tC, [
53646
+ p("div", nC, [p("div", {
53588
53647
  ref_key: "typeRef",
53589
53648
  ref: ie,
53590
53649
  class: "Agent__typeSelect"
53591
53650
  }, [p("button", {
53592
53651
  class: y(["Agent__typeTrigger", { "is-legacy": le.value }]),
53593
53652
  title: "选择类型",
53594
- onClick: F(Dt, ["stop"])
53595
- }, [p("span", nC, D(Ze.value), 1), (C(), f("svg", {
53653
+ onClick: F(It, ["stop"])
53654
+ }, [p("span", rC, D(at.value), 1), (C(), f("svg", {
53596
53655
  class: y(["Agent__typeCaret", { "is-open": H.value }]),
53597
53656
  viewBox: "0 0 24 24",
53598
53657
  width: "14",
@@ -53604,32 +53663,32 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53604
53663
  "stroke-linejoin": "round"
53605
53664
  }, [...t[15] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), H.value ? (C(), f("div", {
53606
53665
  key: 0,
53607
- class: y(["Agent__typeMenu", { "is-down": !wt.value }]),
53608
- style: b({ maxHeight: `${Tt.value}px` })
53666
+ class: y(["Agent__typeMenu", { "is-down": !Nt.value }]),
53667
+ style: b({ maxHeight: `${Pt.value}px` })
53609
53668
  }, [
53610
53669
  p("button", {
53611
53670
  class: y(["Agent__typeOption", { "is-active": !le.value }]),
53612
- onClick: t[4] ||= (e) => Mt("")
53613
- }, D(Xe.value), 3),
53671
+ onClick: t[4] ||= (e) => Kt("")
53672
+ }, D(it.value), 3),
53614
53673
  t[16] ||= p("div", { class: "Agent__typeSplit" }, null, -1),
53615
- (C(!0), f(s, null, E(O(he), (e) => (C(), f("button", {
53674
+ (C(!0), f(s, null, E(O(Ce), (e) => (C(), f("button", {
53616
53675
  key: e,
53617
53676
  class: y(["Agent__typeOption", { "is-active": le.value && se.value === e }]),
53618
- onClick: (t) => Mt(e)
53619
- }, D(e), 11, rC))), 128))
53620
- ], 6)) : d("", !0)], 512), $e.value.length ? (C(), f("div", {
53677
+ onClick: (t) => Kt(e)
53678
+ }, D(e), 11, iC))), 128))
53679
+ ], 6)) : d("", !0)], 512), st.value.length ? (C(), f("div", {
53621
53680
  key: 0,
53622
53681
  ref_key: "subTypeRef",
53623
53682
  ref: ae,
53624
53683
  class: "Agent__typeSelect"
53625
53684
  }, [p("button", {
53626
53685
  class: y(["Agent__typeTrigger", {
53627
- "is-legacy": !!et.value,
53628
- "is-plain": !et.value
53686
+ "is-legacy": !!ct.value,
53687
+ "is-plain": !ct.value
53629
53688
  }]),
53630
53689
  title: "选择二级类型",
53631
- onClick: F(Ot, ["stop"])
53632
- }, [p("span", iC, D(et.value || "请选择"), 1), (C(), f("svg", {
53690
+ onClick: F(Lt, ["stop"])
53691
+ }, [p("span", aC, D(ct.value || "请选择"), 1), (C(), f("svg", {
53633
53692
  class: y(["Agent__typeCaret", { "is-open": oe.value }]),
53634
53693
  viewBox: "0 0 24 24",
53635
53694
  width: "14",
@@ -53641,63 +53700,63 @@ var cS = "data:image/webp;base64,UklGRpCHCABXRUJQVlA4WAoAAAASAAAA2wEAxAEAQU5JTQY
53641
53700
  "stroke-linejoin": "round"
53642
53701
  }, [...t[17] ||= [p("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 2), oe.value ? (C(), f("div", {
53643
53702
  key: 0,
53644
- class: y(["Agent__typeMenu", { "is-down": !wt.value }]),
53645
- style: b({ maxHeight: `${Tt.value}px` })
53646
- }, [(C(!0), f(s, null, E($e.value, (e) => (C(), f("button", {
53703
+ class: y(["Agent__typeMenu", { "is-down": !Nt.value }]),
53704
+ style: b({ maxHeight: `${Pt.value}px` })
53705
+ }, [(C(!0), f(s, null, E(st.value, (e) => (C(), f("button", {
53647
53706
  key: e.id || e.title,
53648
- class: y(["Agent__typeOption", { "is-active": !!et.value && O(ve)?.id === e.id && O(ve)?.title === e.title }]),
53649
- onClick: (t) => Nt(e)
53650
- }, D(e.title), 11, aC))), 128))], 6)) : d("", !0)], 512)) : d("", !0)]),
53651
- ee.value || Je.value ? (C(), f("button", {
53707
+ class: y(["Agent__typeOption", { "is-active": !!ct.value && O(Ee)?.id === e.id && O(Ee)?.title === e.title }]),
53708
+ onClick: (t) => qt(e)
53709
+ }, D(e.title), 11, oC))), 128))], 6)) : d("", !0)], 512)) : d("", !0)]),
53710
+ ee.value || nt.value ? (C(), f("button", {
53652
53711
  key: 0,
53653
53712
  class: "Agent__btn Agent__btn--newTask",
53654
53713
  title: "开启新任务",
53655
- onClick: mn
53714
+ onClick: Dn
53656
53715
  }, "新任务 ")) : d("", !0),
53657
53716
  N(p("button", {
53658
53717
  class: "Agent__btn Agent__btn--clear",
53659
53718
  title: "清空",
53660
- onClick: Jt
53719
+ onClick: cn
53661
53720
  }, "× ", 512), [[A, I.value]]),
53662
53721
  p("button", {
53663
53722
  class: "Agent__btn",
53664
53723
  title: V.value ? "退出全屏" : "全屏",
53665
- onClick: an
53666
- }, [V.value ? (C(), f("svg", cC, [...t[19] ||= [p("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" }, null, -1)]])) : (C(), f("svg", sC, [...t[18] ||= [p("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }, null, -1)]]))], 8, oC),
53724
+ onClick: vn
53725
+ }, [V.value ? (C(), f("svg", lC, [...t[19] ||= [p("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" }, null, -1)]])) : (C(), f("svg", cC, [...t[18] ||= [p("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }, null, -1)]]))], 8, sC),
53667
53726
  p("button", {
53668
53727
  class: "Agent__btn Agent__btn--send",
53669
- disabled: !tt.value,
53728
+ disabled: !lt.value,
53670
53729
  title: "发送",
53671
- onClick: ln
53730
+ onClick: Sn
53672
53731
  }, [...t[20] ||= [p("svg", {
53673
53732
  viewBox: "0 0 24 24",
53674
53733
  width: "18",
53675
53734
  height: "18",
53676
53735
  fill: "currentColor"
53677
- }, [p("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })], -1)]], 8, lC)
53736
+ }, [p("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })], -1)]], 8, uC)
53678
53737
  ]),
53679
- O(je) || z.value.length > 0 || Je.value ? (C(), f("div", uC)) : d("", !0)
53680
- ])], 6)], 8, ["disabled"])), (C(), u(c, { to: "body" }, [ft.visible ? (C(), f("div", {
53738
+ O(ze) || z.value.length > 0 || nt.value ? (C(), f("div", dC)) : d("", !0)
53739
+ ])], 38)], 8, ["disabled"])), (C(), u(c, { to: "body" }, [bt.visible ? (C(), f("div", {
53681
53740
  key: 0,
53682
53741
  class: "Agent__camMask",
53683
- onClick: F(St, ["self"])
53684
- }, [p("div", dC, [p("div", fC, [
53742
+ onClick: F(jt, ["self"])
53743
+ }, [p("div", fC, [p("div", pC, [
53685
53744
  t[21] ||= p("i", { class: "Agent__camHeadBar" }, null, -1),
53686
- p("span", pC, D(ft.title), 1),
53745
+ p("span", mC, D(bt.title), 1),
53687
53746
  p("button", {
53688
53747
  class: "Agent__camClose",
53689
- onClick: St
53748
+ onClick: jt
53690
53749
  }, "✕")
53691
- ]), p("div", mC, [N(p("video", {
53750
+ ]), p("div", hC, [N(p("video", {
53692
53751
  ref_key: "cameraVideoEl",
53693
- ref: pt,
53752
+ ref: xt,
53694
53753
  class: "Agent__camVideo",
53695
53754
  controls: "",
53696
53755
  autoplay: "",
53697
53756
  playsinline: ""
53698
- }, null, 512), [[A, !ft.loading && !ft.error]]), ft.loading ? (C(), f("div", hC, "视频加载中...")) : ft.error ? (C(), f("div", gC, D(ft.error), 1)) : d("", !0)])])])) : d("", !0)]))], 64);
53757
+ }, null, 512), [[A, !bt.loading && !bt.error]]), bt.loading ? (C(), f("div", gC, "视频加载中...")) : bt.error ? (C(), f("div", _C, D(bt.error), 1)) : d("", !0)])])])) : d("", !0)]))], 64);
53699
53758
  };
53700
53759
  }
53701
- }), xC = /* @__PURE__ */ t({ default: () => SC }), SC = /* @__PURE__ */ Lt(bC, [["__scopeId", "data-v-118a2aab"]]);
53760
+ }), CC = /* @__PURE__ */ t({ default: () => wC }), wC = /* @__PURE__ */ Lt(SC, [["__scopeId", "data-v-cfca5d56"]]);
53702
53761
  //#endregion
53703
- export { It as _, Fc as a, Ht as c, zt as d, Rt as f, kt as g, Ft as h, Ic as i, Vt as l, Et as m, sS as n, Pc as o, Lt as p, Lc as r, Ut as s, xC as t, Bt as u, Ct as v, Pt as y };
53762
+ export { It as _, Fc as a, Ht as c, zt as d, Rt as f, kt as g, Ft as h, Ic as i, Vt as l, Et as m, sS as n, Pc as o, Lt as p, Lc as r, Ut as s, CC as t, Bt as u, Ct as v, Pt as y };