nxd-plugin 1.8.45 → 1.8.46

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