nxd-plugin 1.7.1 → 1.7.2

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.
@@ -576,7 +576,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
576
576
  itemStyle: { color: a },
577
577
  label: { color: a }
578
578
  });
579
- }), x.value = d, S.value = f, b.value = ["全部", ...f.map((e) => e.name)], b.value.includes(y.value) || (y.value = "全部"), Ft(y.value), Bt(), c.value = Ae(u), F(), u.length > 0 && le(), je(s);
579
+ }), x.value = d, S.value = f, b.value = ["全部", ...f.map((e) => e.name)], b.value.includes(y.value) || (y.value = "全部"), It(y.value), Vt(), c.value = Ae(u), F(), u.length > 0 && le(), je(s);
580
580
  }, he = (e) => {
581
581
  r("toMapView", {
582
582
  lng: e.longitude ? Number(e.longitude) : Number(e.x),
@@ -713,10 +713,22 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
713
713
  m.value.setOption(n);
714
714
  }, Me = async (e) => {
715
715
  h.value = e, e === "chart" && (await de(), m.value?.resize());
716
- }, Ot = (e) => e === "全部" ? Object.values(x.value) : x.value[e] ? [x.value[e]] : [], kt = () => y.value === "全部" ? o.value : o.value.filter((e) => e.name === y.value), At = (e) => e?.pointds || e?.pointds$1 || [], jt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
716
+ }, Ot = (e) => e === "全部" ? Object.values(x.value) : x.value[e] ? [x.value[e]] : [], kt = () => y.value === "全部" ? o.value : o.value.filter((e) => e.name === y.value), At = (e) => e?.pointds || e?.pointds$1 || [], jt = (e) => {
717
+ if (e.length < 3) return [e];
718
+ let t = [], n = [e[0]];
719
+ for (let r = 1; r < e.length - 1; r++) {
720
+ let i = e[r - 1], a = e[r], o = e[r + 1], s = Number(i.x ?? i.longitude) - Number(a.x ?? a.longitude), c = Number(i.y ?? i.latitude) - Number(a.y ?? a.latitude), l = Number(o.x ?? o.longitude) - Number(a.x ?? a.longitude), u = Number(o.y ?? o.latitude) - Number(a.y ?? a.latitude), d = Math.sqrt(s * s + c * c), f = Math.sqrt(l * l + u * u);
721
+ if (d > 0 && f > 0 && (s * l + c * u) / (d * f) < -.5) {
722
+ n.push(a), t.push(n), n = [a];
723
+ continue;
724
+ }
725
+ n.push(a);
726
+ }
727
+ return n.push(e[e.length - 1]), t.push(n), t;
728
+ }, Mt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
717
729
  lng: Number(e.x ?? e.longitude),
718
730
  lat: Number(e.y ?? e.latitude)
719
- })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), Mt = (e, t) => {
731
+ })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), Nt = (e, t) => {
720
732
  let n = [
721
733
  t?.station_number,
722
734
  t?.stationid,
@@ -737,15 +749,13 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
737
749
  let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
738
750
  return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
739
751
  });
740
- }, Nt = () => {
752
+ }, Pt = () => {
741
753
  r("removeLine", "line_HighwayLiveAlarmNew");
742
754
  let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
743
755
  if (kt().forEach((n) => {
744
756
  let r = At(n);
745
757
  if (r.length < 2) return;
746
- let i = [...(n.zdzds || []).filter((e) => q(e)), ...(n.zhds || []).filter((e) => be(e))].map((e) => Mt(r, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
747
- if (!i.length) return;
748
- let a = (n) => {
758
+ let i = jt(r), a = [...(n.zdzds || []).filter((e) => q(e)), ...(n.zhds || []).filter((e) => be(e))], o = (n) => {
749
759
  if (n.length !== 2) return;
750
760
  let r = `${n[0].lng},${n[0].lat}|${n[1].lng},${n[1].lat}`;
751
761
  t.has(r) || (t.add(r), e.lineArr.push({
@@ -756,33 +766,45 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
756
766
  otherData: { lineId: "line_HighwayLiveAlarmNew" }
757
767
  }));
758
768
  };
759
- if (i.length === 1) {
760
- a(jt(r, i[0]));
761
- return;
762
- }
763
- for (let e = 0; e < i.length - 1; e++) a([r[i[e]], r[i[e + 1]]].filter(Boolean).map((e) => ({
764
- lng: Number(e.x ?? e.longitude),
765
- lat: Number(e.y ?? e.latitude)
766
- })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)));
769
+ i.forEach((e) => {
770
+ if (e.length < 2) return;
771
+ let t = a.map((t) => Nt(e, t)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
772
+ if (t.length) {
773
+ if (t.length === 1) {
774
+ o(Mt(e, t[0]));
775
+ return;
776
+ }
777
+ for (let n = 0; n < t.length - 1; n++) {
778
+ let r = t[n], i = t[n + 1];
779
+ for (let t = r; t < i; t++) {
780
+ let n = [e[t], e[t + 1]].filter(Boolean).map((e) => ({
781
+ lng: Number(e.x ?? e.longitude),
782
+ lat: Number(e.y ?? e.latitude)
783
+ })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat));
784
+ n.length === 2 && o(n);
785
+ }
786
+ }
787
+ }
788
+ });
767
789
  }), !e.lineArr.length) return r("removeLine", "line_HighwayLiveAlarmNew");
768
790
  r("addLine", {
769
791
  removeLine: "line_HighwayLiveAlarmNew",
770
792
  mapLine: e
771
793
  });
772
- }, Pt = () => {
794
+ }, Ft = () => {
773
795
  let e = ue.value.find((e) => Z(e.tags)), t = {}, n = {}, r = {};
774
796
  e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), C.value = t, w.value = n, T.value = r;
775
- }, Ft = (e) => {
776
- y.value = e, Pt(), r("removeLayers", Object.values(x.value).map((e) => e.name)), setTimeout(() => {
797
+ }, It = (e) => {
798
+ y.value = e, Ft(), r("removeLayers", Object.values(x.value).map((e) => e.name)), setTimeout(() => {
777
799
  r("addLayers", {
778
800
  layers: Ot(e),
779
801
  isRemove: !0
780
802
  });
781
- }, 1e3), zt(), Nt();
782
- }, It = () => s[g.value], Lt = (e, t) => {
803
+ }, 1e3), Bt(), Pt();
804
+ }, Lt = () => s[g.value], Rt = (e, t) => {
783
805
  let n = Number(e?.[t]);
784
806
  return H(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
785
- }, Rt = (e, t, n) => `
807
+ }, zt = (e, t, n) => `
786
808
  <div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
787
809
  <div style='color:blue;font-size:14px;font-bold:true;transform:scale(0.9);text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,1px 1px #fff,-1px -1px #fff,1px -1px #fff,-1px 1px #fff;'>
788
810
  ${t}${n}
@@ -792,7 +814,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
792
814
  ${e.station_name || "--"}
793
815
  </div>
794
816
  </div>
795
- `, zt = () => {
817
+ `, Bt = () => {
796
818
  let e = {
797
819
  clickOpen: !1,
798
820
  spotObject: [{
@@ -807,9 +829,9 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
807
829
  }],
808
830
  drawArrObj: [],
809
831
  onlyLayerID: "station_highway"
810
- }, t = It(), n = t.field, i = t.unit;
832
+ }, t = Lt(), n = t.field, i = t.unit;
811
833
  Te().forEach((t) => {
812
- let r = Rt(t, Lt(t, n), i), a = {
834
+ let r = zt(t, Rt(t, n), i), a = {
813
835
  lng: t.longitude,
814
836
  lat: t.latitude,
815
837
  htmlString: r,
@@ -821,7 +843,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
821
843
  mapMarker: e,
822
844
  removeMarker: "station_highway"
823
845
  });
824
- }, Bt = () => {
846
+ }, Vt = () => {
825
847
  if (!_.value) return r("removeMarker", "pile_highway");
826
848
  let e = {
827
849
  clickOpen: !0,
@@ -880,14 +902,14 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
880
902
  mapMarker: e,
881
903
  removeMarker: "pile_highway"
882
904
  });
883
- }, Vt = (e) => {
905
+ }, Ht = (e) => {
884
906
  let t = !!C.value[e];
885
907
  C.value[e] = !t, t || (w.value[e] = !1, T.value[e] = !0);
886
- }, Ht = (e) => {
887
- w.value[e] = !w.value[e];
888
908
  }, Ut = (e) => {
909
+ w.value[e] = !w.value[e];
910
+ }, Wt = (e) => {
889
911
  T.value[e] = !T.value[e];
890
- }, Wt = () => {
912
+ }, Gt = () => {
891
913
  r("close", "HighwayLiveAlarmNew");
892
914
  };
893
915
  return (e, t) => {
@@ -909,7 +931,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
909
931
  onClick: t[1] ||= (e) => Me("table")
910
932
  }, " 表格 ", 2)]), M("div", {
911
933
  class: "closeBtn",
912
- onClick: Wt,
934
+ onClick: Gt,
913
935
  title: "关闭"
914
936
  })])]), t[8] ||= M("img", {
915
937
  class: "HighwayLiveAlarmNew-head-line",
@@ -926,7 +948,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
926
948
  modelValue: _.value,
927
949
  "onUpdate:modelValue": t[2] ||= (e) => _.value = e,
928
950
  class: "pile-checkbox",
929
- onChange: Bt
951
+ onChange: Vt
930
952
  }, {
931
953
  default: J(() => [...t[9] ||= [N(" 显示 ", -1)]]),
932
954
  _: 1
@@ -935,7 +957,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
935
957
  modelValue: g.value,
936
958
  "onUpdate:modelValue": t[3] ||= (e) => g.value = e,
937
959
  class: "setting-radios",
938
- onChange: zt
960
+ onChange: Bt
939
961
  }, {
940
962
  default: J(() => [
941
963
  P(r, { value: "降水" }, {
@@ -958,7 +980,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
958
980
  "onUpdate:modelValue": t[4] ||= (e) => y.value = e,
959
981
  placeholder: "请选择路线",
960
982
  class: "dark-select",
961
- onChange: Ft
983
+ onChange: It
962
984
  }, {
963
985
  default: J(() => [(z(!0), j(O, null, V(b.value, (e) => (z(), ce(o, {
964
986
  key: e,
@@ -978,7 +1000,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
978
1000
  }, [
979
1001
  M("div", {
980
1002
  class: "table-row-main",
981
- onClick: (t) => Vt(e.name)
1003
+ onClick: (t) => Ht(e.name)
982
1004
  }, [
983
1005
  M("span", Ze, U(e.name), 1),
984
1006
  M("div", { class: R(["status-tags", { "has-warn": Z(e.tags) }]) }, [(z(!0), j(O, null, V(e.tags, (t) => (z(), j("span", {
@@ -995,7 +1017,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
995
1017
  ], 8, Xe),
996
1018
  Y(M("div", {
997
1019
  class: "station-title",
998
- onClick: (t) => Ht(e.name)
1020
+ onClick: (t) => Ut(e.name)
999
1021
  }, [M("span", null, [t[16] ||= N(" 自动站数据 ", -1), D(e.stations) > 0 ? (z(), j("span", $e, " (报警数量:" + U(D(e.stations)) + "个) ", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: w.value[e.name] }]) }, [P(u, null, {
1000
1022
  default: J(() => [P(W(a))]),
1001
1023
  _: 1
@@ -1019,7 +1041,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
1019
1041
  ], 10, ht))), 128))])) : (z(), j("div", bt, "暂无站点数据"))], 512), [[K, C.value[e.name] && w.value[e.name]]]),
1020
1042
  Y(M("div", {
1021
1043
  class: "pile-title",
1022
- onClick: (t) => Ut(e.name)
1044
+ onClick: (t) => Wt(e.name)
1023
1045
  }, [M("span", null, [t[26] ||= N(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (z(), j("span", St, " (报警数量:" + U(e.pileWarnCount) + "个)", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: T.value[e.name] }]) }, [P(u, null, {
1024
1046
  default: J(() => [P(W(a))]),
1025
1047
  _: 1
@@ -1045,6 +1067,6 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
1045
1067
  ])), [[m, l.value]]);
1046
1068
  };
1047
1069
  }
1048
- }), [["__scopeId", "data-v-8073d64e"]]);
1070
+ }), [["__scopeId", "data-v-d28f4c1c"]]);
1049
1071
  //#endregion
1050
1072
  export { Ne as n, Ot as t };
@@ -2,7 +2,7 @@ import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { $ as n, C as r, E as i, G as a, I as o, K as s, L as c, M as l, P as u, Q as d, R as f, T as p, W as m, Z as h, a as g, b as _, c as v, d as y, et as b, i as x, l as S, m as C, n as w, r as ee, tt as T, u as E, v as D, w as O, y as te, z as ne } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { At as re, B as ie, Bt as ae, C as oe, Ct as se, D as k, Dt as ce, E as le, Et as ue, Ft as de, Gt as fe, Ht as pe, It as me, Jt as he, Kt as ge, Lt as _e, Mt as ve, Nt as ye, Ot as be, P as xe, Pt as Se, R as Ce, Rt as we, St as Te, Tt as Ee, Ut as De, Vt as Oe, Wt as ke, Yt as Ae, Zt as je, a as Me, c as Ne, f as Pe, g as Fe, h as Ie, ht as Le, in as Re, jt as ze, kt as Be, l as Ve, n as He, nn as Ue, o as We, on as Ge, qt as Ke, u as qe, v as Je, zt as Ye } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
4
  import { a as Xe } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
5
- import { n as Ze } from "./component-HighwayLiveAlarmNew-DhSLAPVu.mjs";
5
+ import { n as Ze } from "./component-HighwayLiveAlarmNew-KR4OZB7F.mjs";
6
6
  import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
7
7
  import { Fragment as Qe, Text as $e, computed as A, createApp as et, createBlock as tt, createCommentVNode as nt, createElementBlock as j, createElementVNode as M, createTextVNode as rt, createVNode as N, defineComponent as it, getCurrentInstance as at, h as ot, inject as st, markRaw as ct, mergeProps as lt, nextTick as ut, normalizeClass as P, normalizeStyle as dt, onMounted as ft, openBlock as F, provide as pt, reactive as mt, ref as ht, renderList as gt, renderSlot as _t, resolveDynamicComponent as vt, shallowRef as yt, toDisplayString as I, toRef as bt, unref as L, useAttrs as xt, useSlots as St, vShow as Ct, watch as wt, watchEffect as Tt, withCtx as Et, withDirectives as R, withKeys as Dt, withModifiers as Ot } from "vue";
8
8
  //#region node_modules/lodash-es/now.js
@@ -1,8 +1,8 @@
1
1
  import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { a as i, n as a, r as o } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
- import "./component-ImageGeneration-B_xKx5rB.mjs";
5
- import { n as s } from "./component-HighwayLiveAlarmNew-DhSLAPVu.mjs";
4
+ import "./component-ImageGeneration-Ch_ajmOP.mjs";
5
+ import { n as s } from "./component-HighwayLiveAlarmNew-KR4OZB7F.mjs";
6
6
  import { n as c } from "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
7
7
  import { Fragment as l, computed as u, createBlock as ee, createCommentVNode as te, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as re, onMounted as ie, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vShow as C, watch as w, withCtx as T, withDirectives as E } from "vue";
8
8
  //#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
@@ -2,7 +2,7 @@ import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { B as e, H as t, N as n, P as r, U as i, V as a, et as o, h as s, m as c, o as l, s as u, y as d } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { C as f, D as p, E as m, Lt as h, Mt as g, Nt as _, Tt as v, _ as y, b, c as ee, g as x, h as S, in as te, j as C, n as w, p as ne, un as T, v as E, w as D, x as O, y as k } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
4
  import { a as A } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
5
- import { n as re } from "./component-ImageGeneration-B_xKx5rB.mjs";
5
+ import { n as re } from "./component-ImageGeneration-Ch_ajmOP.mjs";
6
6
  import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
7
7
  import { Fragment as j, Transition as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createSlots as ie, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentInstance as ae, h as oe, inject as V, isRef as H, mergeProps as U, nextTick as se, normalizeClass as W, normalizeStyle as G, onBeforeUnmount as K, onMounted as q, onScopeDispose as ce, openBlock as J, provide as le, ref as Y, renderSlot as X, resolveDynamicComponent as ue, toDisplayString as de, unref as Z, useSlots as fe, vShow as pe, watch as Q, watchEffect as me, withCtx as $, withDirectives as he } from "vue";
8
8
  //#region node_modules/element-plus/es/hooks/use-draggable/index.mjs
@@ -0,0 +1,209 @@
1
+ import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
+ import { a as e, n as t, r as n } from "./component-AqiMonitor-DoGm_NCt.mjs";
3
+ import { A as r, C as i, D as a, E as ee, M as o, N as s, O as c, P as te, S as ne, T as re, _ as ie, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, u as E, v as D, w as O, x as k, y as A } from "./component-HighwayWeatherForecast-Dn6tjaR-.mjs";
4
+ import { n as j } from "./component-LithiumBatteryMiningArea-Dj1DMKuU.mjs";
5
+ import { Fragment as M, createElementBlock as N, createElementVNode as P, defineComponent as F, getCurrentInstance as I, onMounted as L, openBlock as R, ref as z, renderList as B, toDisplayString as V, withDirectives as H } from "vue";
6
+ //#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
7
+ var U = {
8
+ class: "WeatherForecast",
9
+ "element-loading-background": "rgba(0, 0, 0, 0.4)"
10
+ }, W = { class: "WeatherForecast__head" }, G = { class: "WeatherForecast__head-top" }, K = { class: "WeatherForecast__body" }, q = { class: "WeatherForecast__wrap" }, J = ["src", "alt"], Y = /* @__PURE__ */ t(/* @__PURE__ */ F({
11
+ __name: "WeatherForecast",
12
+ props: {
13
+ appKey: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ appSalt: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ baseHttp: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ ids: {
26
+ type: Object,
27
+ default: () => ({})
28
+ },
29
+ title: {
30
+ type: String,
31
+ default: "天气预报"
32
+ }
33
+ },
34
+ emits: ["close"],
35
+ setup(t, { emit: F }) {
36
+ let Y = I()?.appContext.config.globalProperties.$bus, X = t, ae = F, Z = z(!1), Q = z([]), $ = z({});
37
+ z([
38
+ {
39
+ name: "阿克苏市",
40
+ value: "aksu",
41
+ longitude: "80.2651",
42
+ latitude: "41.1707"
43
+ },
44
+ {
45
+ name: "库车市",
46
+ value: "kuche",
47
+ longitude: "82.9989",
48
+ latitude: "41.7160"
49
+ },
50
+ {
51
+ name: "拜城县",
52
+ value: "baicheng",
53
+ longitude: "81.8670",
54
+ latitude: "41.7860"
55
+ },
56
+ {
57
+ name: "新和县",
58
+ value: "xinhe",
59
+ longitude: "82.6100",
60
+ latitude: "41.5490"
61
+ },
62
+ {
63
+ name: "沙雅县",
64
+ value: "shaya",
65
+ longitude: "82.7800",
66
+ latitude: "41.2200"
67
+ },
68
+ {
69
+ name: "温宿县",
70
+ value: "wensu",
71
+ longitude: "80.3000",
72
+ latitude: "41.1600"
73
+ },
74
+ {
75
+ name: "乌什县",
76
+ value: "wushi",
77
+ longitude: "79.2300",
78
+ latitude: "41.2100"
79
+ },
80
+ {
81
+ name: "柯坪县",
82
+ value: "keping",
83
+ longitude: "79.0200",
84
+ latitude: "40.5000"
85
+ }
86
+ ]), z(null);
87
+ let oe = z(!1);
88
+ L(() => {
89
+ Y?.on("toComponent", (e) => {
90
+ e.componentName === "WeatherForecast" && ($.value = e.data, se());
91
+ });
92
+ }), document.addEventListener("click", (e) => {
93
+ e.target.closest(".WeatherForecast__area-select") || (oe.value = !1);
94
+ });
95
+ let se = async () => {
96
+ await le();
97
+ }, ce = () => {
98
+ ae("close", "WeatherForecast");
99
+ }, le = async () => {
100
+ Z.value = !0;
101
+ let e = {
102
+ lon: $.value.longitude,
103
+ lat: $.value.latitude,
104
+ hours: 168
105
+ }, t = await n({
106
+ appKey: X.appKey,
107
+ appSalt: X.appSalt,
108
+ id: X.ids.data.id,
109
+ variables: { str: j.encode(JSON.stringify(e)) },
110
+ baseHttp: X.baseHttp,
111
+ reqType: X.ids.data.reqType,
112
+ isFormData: X.ids.data.isFormData
113
+ });
114
+ Z.value = !1;
115
+ let M = t.data?.result?.output;
116
+ if (!M) {
117
+ console.warn("天气预报接口返回为空", t), Q.value = [];
118
+ return;
119
+ }
120
+ let N = (typeof M == "string" ? JSON.parse(M) : M).ds;
121
+ if (!Array.isArray(N) || N.length === 0) {
122
+ Q.value = [];
123
+ return;
124
+ }
125
+ let P = [
126
+ "日",
127
+ "一",
128
+ "二",
129
+ "三",
130
+ "四",
131
+ "五",
132
+ "六"
133
+ ];
134
+ Q.value = N.map((e, t) => {
135
+ let n = new Date(e.observation_time.replace(/\//g, "-"));
136
+ n.setDate(n.getDate() + t);
137
+ let j = `${n.getMonth() + 1}`.padStart(2, "0"), M = `${n.getDate()}`.padStart(2, "0");
138
+ return {
139
+ ...e,
140
+ _date: `${j}-${M}`,
141
+ _week: `周${P[n.getDay()]}`,
142
+ _icon: new URL((/* @__PURE__ */ Object.assign({
143
+ "../../assets/img/weatherIcon/0.gif": te,
144
+ "../../assets/img/weatherIcon/1.gif": s,
145
+ "../../assets/img/weatherIcon/10.gif": o,
146
+ "../../assets/img/weatherIcon/11.gif": _,
147
+ "../../assets/img/weatherIcon/12.gif": r,
148
+ "../../assets/img/weatherIcon/13.gif": v,
149
+ "../../assets/img/weatherIcon/14.gif": c,
150
+ "../../assets/img/weatherIcon/15.gif": a,
151
+ "../../assets/img/weatherIcon/16.gif": ee,
152
+ "../../assets/img/weatherIcon/17.gif": re,
153
+ "../../assets/img/weatherIcon/18.gif": O,
154
+ "../../assets/img/weatherIcon/19.gif": i,
155
+ "../../assets/img/weatherIcon/2.gif": ne,
156
+ "../../assets/img/weatherIcon/20.gif": k,
157
+ "../../assets/img/weatherIcon/21.gif": u,
158
+ "../../assets/img/weatherIcon/22.gif": A,
159
+ "../../assets/img/weatherIcon/23.gif": D,
160
+ "../../assets/img/weatherIcon/24.gif": ie,
161
+ "../../assets/img/weatherIcon/25.gif": m,
162
+ "../../assets/img/weatherIcon/26.gif": h,
163
+ "../../assets/img/weatherIcon/27.gif": b,
164
+ "../../assets/img/weatherIcon/28.gif": C,
165
+ "../../assets/img/weatherIcon/29.gif": p,
166
+ "../../assets/img/weatherIcon/3.gif": f,
167
+ "../../assets/img/weatherIcon/30.gif": E,
168
+ "../../assets/img/weatherIcon/31.gif": y,
169
+ "../../assets/img/weatherIcon/4.gif": d,
170
+ "../../assets/img/weatherIcon/5.gif": T,
171
+ "../../assets/img/weatherIcon/53.gif": S,
172
+ "../../assets/img/weatherIcon/6.gif": l,
173
+ "../../assets/img/weatherIcon/7.gif": g,
174
+ "../../assets/img/weatherIcon/8.gif": w,
175
+ "../../assets/img/weatherIcon/9.gif": x
176
+ }))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
177
+ };
178
+ });
179
+ };
180
+ return (n, r) => {
181
+ let i = e;
182
+ return H((R(), N("div", U, [P("div", W, [P("div", G, [P("div", null, V(t.title), 1), P("div", {
183
+ class: "closeBtn",
184
+ onClick: ce,
185
+ title: "关闭"
186
+ })]), r[0] ||= P("img", {
187
+ class: "WeatherForecast__head-line",
188
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
189
+ alt: ""
190
+ }, null, -1)]), P("div", K, [P("div", q, [(R(!0), N(M, null, B(Q.value, (e) => (R(), N("div", {
191
+ class: "WeatherForecast__item",
192
+ key: `${e.observation_time}-${e.hour}`
193
+ }, [
194
+ P("div", null, V(e._date), 1),
195
+ P("div", null, V(e._week), 1),
196
+ P("img", {
197
+ src: e._icon,
198
+ alt: e.weather
199
+ }, null, 8, J),
200
+ P("div", null, V(e.weather), 1),
201
+ P("div", null, V(e.temp_low) + "~" + V(e.temp_high) + "℃", 1),
202
+ P("div", null, V(e.wind_directinfo), 1),
203
+ P("div", null, V(e.wind_speedinfo === null || Number(e.wind_speedinfo) < 3 ? "<3级" : `${e.wind_speedinfo}级`), 1)
204
+ ]))), 128))])])])), [[i, Z.value]]);
205
+ };
206
+ }
207
+ }), [["__scopeId", "data-v-a730bcd5"]]);
208
+ //#endregion
209
+ export { Y as t };
@@ -2,8 +2,8 @@ import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { D as e, F as t, I as n, P as r, S as i, V as a, W as o, _ as s, d as c, f as l, g as u, k as d, m as f, p, q as m, tt as h, x as ee, y as g } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { C as _, D as v, E as y, Ht as b, M as te, Mt as x, Nt as S, O as C, P as w, dn as ne, en as T, h as E, in as D, j as O, jt as k, n as A, nn as re, r as ie, s as ae, sn as oe, un as se, v as ce, w as le } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
4
  import { s as ue } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
5
- import { a as de, i as fe, n as pe, r as j } from "./component-ImageGeneration-B_xKx5rB.mjs";
6
- import { n as me } from "./component-ServiceMaterialsBtn-B8i3U8vW.mjs";
5
+ import { a as de, i as fe, n as pe, r as j } from "./component-ImageGeneration-Ch_ajmOP.mjs";
6
+ import { n as me } from "./component-ServiceMaterialsBtn-DbRVspkX.mjs";
7
7
  import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
8
8
  import { Fragment as he, Transition as ge, TransitionGroup as _e, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createStaticVNode as ve, createTextVNode as ye, createVNode as L, defineComponent as R, inject as be, isVNode as xe, nextTick as Se, normalizeClass as z, normalizeStyle as B, onBeforeUnmount as Ce, onMounted as we, onUnmounted as Te, onUpdated as Ee, openBlock as V, provide as De, reactive as Oe, ref as H, render as ke, renderList as U, renderSlot as W, resolveDynamicComponent as Ae, shallowReactive as je, toDisplayString as G, toRefs as Me, unref as K, useSlots as Ne, vShow as Pe, watch as Fe, withCtx as q, withDirectives as Ie, withKeys as Le, withModifiers as Re } from "vue";
9
9
  //#region node_modules/lodash-es/cloneDeep.js
@@ -1,8 +1,8 @@
1
1
  import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { D as e, O as t, k as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { n as i } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
- import { i as a, n as o, r as s } from "./component-YCHome-BN4o2VkD.mjs";
5
- import { i as c, n as l } from "./component-ImageGeneration-B_xKx5rB.mjs";
4
+ import { i as a, n as o, r as s } from "./component-YCHome-CJTR9axy.mjs";
5
+ import { i as c, n as l } from "./component-ImageGeneration-Ch_ajmOP.mjs";
6
6
  import { Fragment as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, unref as b, withCtx as x, withKeys as S } from "vue";
7
7
  //#region src/components/YCLogin/YCLogin.vue?vue&type=script&setup=true&lang.ts
8
8
  var C = { class: "YCLogin" }, w = { class: "particles" }, T = { class: "login-container" }, E = { class: "login-wrapper" }, D = { class: "login-box" }, O = { class: "login-header" }, k = { class: "header-icon" }, A = { class: "input-icon-box" }, j = { class: "input-icon-box" }, M = /* @__PURE__ */ i(/* @__PURE__ */ m({
@@ -1,8 +1,8 @@
1
1
  import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { D as e, O as t, k as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
3
  import { n as i, r as a } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
- import { i as o, n as s, r as c } from "./component-YCHome-BN4o2VkD.mjs";
5
- import { i as l, n as u } from "./component-ImageGeneration-B_xKx5rB.mjs";
4
+ import { i as o, n as s, r as c } from "./component-YCHome-CJTR9axy.mjs";
5
+ import { i as l, n as u } from "./component-ImageGeneration-Ch_ajmOP.mjs";
6
6
  import { n as d } from "./component-LithiumBatteryMiningArea-Dj1DMKuU.mjs";
7
7
  import { Fragment as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, unref as S, withCtx as C, withKeys as w } from "vue";
8
8
  //#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
@@ -1,19 +1,19 @@
1
1
  import { t as e } from "./chunks/component-HighWayFreeze-C_Y5P0wN.mjs";
2
2
  import { t } from "./chunks/component-AqiMonitor-DoGm_NCt.mjs";
3
3
  import { t as n } from "./chunks/component-HighwayLiveAlarm-DMdnrD3c.mjs";
4
- import { t as r } from "./chunks/component-YCHome-BN4o2VkD.mjs";
5
- import { t as i } from "./chunks/component-ImageGeneration-B_xKx5rB.mjs";
6
- import { t as a } from "./chunks/component-ServiceMaterialsBtn-B8i3U8vW.mjs";
7
- import { t as o } from "./chunks/component-HighwayLiveAlarmNew-DhSLAPVu.mjs";
4
+ import { t as r } from "./chunks/component-YCHome-CJTR9axy.mjs";
5
+ import { t as i } from "./chunks/component-ImageGeneration-Ch_ajmOP.mjs";
6
+ import { t as a } from "./chunks/component-ServiceMaterialsBtn-DbRVspkX.mjs";
7
+ import { t as o } from "./chunks/component-HighwayLiveAlarmNew-KR4OZB7F.mjs";
8
8
  import { t as s } from "./chunks/component-HighWayEarlyWarningRed-D89gFa50.mjs";
9
9
  import { t as c } from "./chunks/component-HighwayStations-CNs3P4Vw.mjs";
10
10
  import { t as l } from "./chunks/component-HighwayWeatherForecast-Dn6tjaR-.mjs";
11
- import { t as u } from "./chunks/component-YCLogin-D1fGCM0J.mjs";
11
+ import { t as u } from "./chunks/component-YCLogin-BJEVO5e9.mjs";
12
12
  import { t as d } from "./chunks/component-LithiumBatteryMiningArea-Dj1DMKuU.mjs";
13
- import { t as f } from "./chunks/component-YCLoginNew-BYFQ4OXh.mjs";
14
- import { t as p } from "./chunks/component-RadarShortTerm-B9Ik0LE3.mjs";
13
+ import { t as f } from "./chunks/component-YCLoginNew-CWtDmJk-.mjs";
14
+ import { t as p } from "./chunks/component-RadarShortTerm-Dxq3c_j-.mjs";
15
15
  import { t as m } from "./chunks/component-TimeBasedForecast-D4syarmJ.mjs";
16
- import { t as h } from "./chunks/component-WeatherForecast-B-KJ3IU3.mjs";
16
+ import { t as h } from "./chunks/component-WeatherForecast-CYzKbPGG.mjs";
17
17
  import { t as g } from "./chunks/component-WarningSignal-Dj3r1iCu.mjs";
18
18
  import { t as _ } from "./chunks/component-RadarChart-CGAMxnMk.mjs";
19
19
  import { t as v } from "./chunks/component-MapPopup-B2Jmyc6L.mjs";