nxd-plugin 1.7.3 → 1.7.41

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 (32) hide show
  1. package/dist/chunks/{component-HighwayLiveAlarmNew-Br-t28Hr.mjs → component-HighwayLiveAlarmNew-W2DKwrPk.mjs} +222 -202
  2. package/dist/chunks/{component-ImageGeneration-DSUc0Jzf.mjs → component-ImageGeneration-9XdsjkaE.mjs} +1 -1
  3. package/dist/chunks/component-PieLegend-JVqrszxO.mjs +48 -0
  4. package/dist/chunks/component-RadarLegend-DQp5wjbz.mjs +89 -0
  5. package/dist/chunks/component-RadarShortTerm-CZEP_KxT.mjs +373 -0
  6. package/dist/chunks/{component-ServiceMaterialsBtn-DzeJfuGW.mjs → component-ServiceMaterialsBtn-DjUo4Hsx.mjs} +1 -1
  7. package/dist/chunks/{component-YCHome-4jtJSQOh.mjs → component-YCHome-B2wOG1EV.mjs} +474 -445
  8. package/dist/chunks/{component-YCLogin-3JpsBCAJ.mjs → component-YCLogin-DWhvv-rf.mjs} +2 -2
  9. package/dist/chunks/{component-YCLoginNew-BZvJGYAm.mjs → component-YCLoginNew-CPPSTPXH.mjs} +2 -2
  10. package/dist/nxd-plugin.mjs +20 -18
  11. package/dist/src/components/HighwayLiveAlarmNew/HighwayLiveAlarmNew.vue.d.ts +2 -0
  12. package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +2 -2
  13. package/dist/src/components/PieLegend/PieLegend.vue.d.ts +14 -0
  14. package/dist/src/components/RadarLegend/RadarLegend.vue.d.ts +23 -0
  15. package/dist/src/index.d.ts +3 -1
  16. package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
  17. package/dist/styles/component-PieLegend.css +1 -0
  18. package/dist/styles/component-RadarLegend.css +1 -0
  19. package/dist/styles/component-RadarShortTerm.css +1 -1
  20. package/dist/styles/component-YCHome.css +1 -1
  21. package/dist/styles/component-YCLogin.css +1 -1
  22. package/dist/styles/component-YCLoginNew.css +1 -1
  23. package/package.json +1 -1
  24. package/dist/chunks/component-RadarShortTerm-CidtgjJ5.mjs +0 -367
  25. /package/dist/chunks/{component-MapPopup-B2Jmyc6L.mjs → component-MapPopup-0uM1uyql.mjs} +0 -0
  26. /package/dist/chunks/{component-RadarChart-CGAMxnMk.mjs → component-RadarChart-Dz5sm2q5.mjs} +0 -0
  27. /package/dist/chunks/{component-RadarTime-YYlhiftO.mjs → component-RadarTime--DUvLJh2.mjs} +0 -0
  28. /package/dist/chunks/{component-ServiceMaterial-Bx9kF9Yi.mjs → component-ServiceMaterial-D9i1nsOr.mjs} +0 -0
  29. /package/dist/chunks/{component-TimeBasedForecast-D4syarmJ.mjs → component-TimeBasedForecast-Bc4EOR8R.mjs} +0 -0
  30. /package/dist/chunks/{component-WarningLine-D5PmJ8Si.mjs → component-WarningLine-C5AGlCZR.mjs} +0 -0
  31. /package/dist/chunks/{component-WarningSignal-Dj3r1iCu.mjs → component-WarningSignal-BaKdzl4i.mjs} +0 -0
  32. /package/dist/chunks/{component-WeatherForecast-CYzKbPGG.mjs → component-WeatherForecast-BzF3E06F.mjs} +0 -0
@@ -1,11 +1,11 @@
1
1
  import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { I as e, K as t, L as n, P as r, Q as i, S as a, c as o, d as s, et as c, f as l, l as u, m as d, n as f, r as p, u as m } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
3
- import { C as h, D as g, E as _, F as v, Ht as y, I as b, Lt as ee, Mt as x, P as S, a as te, f as C, h as w, j as T, n as E, r as ne, z as re } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
- import { a as D, i as ie, n as ae, o as oe, r as se } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
3
+ import { C as h, D as g, E as _, F as v, Ht as y, I as b, Lt as ee, Mt as x, P as S, a as te, f as C, h as w, j as T, n as E, r as ne, z as D } from "./component-AqiMonitor-DoGm_NCt.mjs";
4
+ import { a as re, i as ie, n as ae, o as oe, r as se } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
5
5
  import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
6
- import { Fragment as O, computed as k, createBlock as ce, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentInstance as le, inject as I, isRef as ue, mergeProps as L, nextTick as de, normalizeClass as R, normalizeStyle as fe, onBeforeUnmount as pe, onMounted as me, openBlock as z, provide as he, ref as B, renderList as V, renderSlot as ge, resolveDynamicComponent as H, toDisplayString as U, toRaw as _e, toRefs as ve, unref as W, useSlots as G, vModelCheckbox as ye, vShow as K, watch as q, withCtx as J, withDirectives as Y, withModifiers as be } from "vue";
6
+ import { Fragment as O, computed as k, createBlock as ce, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentInstance as le, inject as I, isRef as ue, mergeProps as L, nextTick as de, normalizeClass as R, normalizeStyle as fe, onBeforeUnmount as pe, onMounted as me, openBlock as z, provide as he, ref as B, renderList as V, renderSlot as H, resolveDynamicComponent as ge, toDisplayString as U, toRaw as W, toRefs as _e, unref as G, useSlots as ve, vModelCheckbox as K, vShow as q, watch as ye, withCtx as J, withDirectives as Y, withModifiers as X } from "vue";
7
7
  //#region node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
8
- var xe = {
8
+ var be = {
9
9
  modelValue: {
10
10
  type: [
11
11
  Number,
@@ -71,7 +71,7 @@ var xe = {
71
71
  },
72
72
  ariaLabel: String,
73
73
  ...n(["ariaControls"])
74
- }, X = {
74
+ }, xe = {
75
75
  [c]: (e) => y(e) || S(e) || T(e),
76
76
  change: (e) => y(e) || S(e) || T(e)
77
77
  }, Z = Symbol("checkboxGroupContextKey"), Se = _({
@@ -123,7 +123,7 @@ var xe = {
123
123
  isDisabled: m(k(() => n === void 0 ? r?.disabled ?? i.value : n.disabled?.value || i.value)),
124
124
  isLimitDisabled: i
125
125
  };
126
- }, Q = (e, { model: t, isLimitExceeded: n, hasOwnLabel: r, isDisabled: a, isLabeledByFormItem: s }) => {
126
+ }, Ee = (e, { model: t, isLimitExceeded: n, hasOwnLabel: r, isDisabled: a, isLabeledByFormItem: s }) => {
127
127
  let c = I(Z, void 0), { formItem: l } = o(), { emit: u } = le();
128
128
  function d(t) {
129
129
  return [
@@ -148,13 +148,13 @@ var xe = {
148
148
  ].includes(t.value)), await de(), f(t.value, i)));
149
149
  }
150
150
  let g = k(() => c?.validateEvent || e.validateEvent);
151
- return q(() => e.modelValue, () => {
151
+ return ye(() => e.modelValue, () => {
152
152
  g.value && l?.validate("change").catch((e) => h(e));
153
153
  }), {
154
154
  handleChange: p,
155
155
  onClickRoot: m
156
156
  };
157
- }, $ = (e) => {
157
+ }, Q = (e) => {
158
158
  let t = B(!1), { emit: n, vnode: r } = le(), i = I(Z, void 0), a = k(() => b(i) === !1), o = B(!1), s = k(() => {
159
159
  let e = r.props ?? {};
160
160
  return "modelValue" in e || "model-value" in e;
@@ -171,10 +171,10 @@ var xe = {
171
171
  isGroup: a,
172
172
  isLimitExceeded: o
173
173
  };
174
- }, Ee = (e, t, { model: n }) => {
174
+ }, $ = (e, t, { model: n }) => {
175
175
  let r = I(Z, void 0), i = B(!1), a = k(() => v(e.value) ? e.label : e.value), o = k(() => {
176
176
  let t = n.value;
177
- return T(t) ? t : x(t) ? ee(a.value) ? t.map(_e).some((e) => re(e, a.value)) : t.map(_e).includes(a.value) : t == null ? !!t : t === e.trueValue || t === e.trueLabel;
177
+ return T(t) ? t : x(t) ? ee(a.value) ? t.map(W).some((e) => D(e, a.value)) : t.map(W).includes(a.value) : t == null ? !!t : t === e.trueValue || t === e.trueLabel;
178
178
  });
179
179
  return {
180
180
  checkboxButtonSize: s(k(() => r?.size?.value), { prop: !0 }),
@@ -185,14 +185,14 @@ var xe = {
185
185
  actualValue: a
186
186
  };
187
187
  }, De = (e, t) => {
188
- let { formItem: n } = o(), { model: r, isGroup: i, isLimitExceeded: a } = $(e), { isFocused: s, isChecked: c, checkboxButtonSize: l, checkboxSize: d, hasOwnLabel: f, actualValue: p } = Ee(e, t, { model: r }), { isDisabled: m } = Te({
188
+ let { formItem: n } = o(), { model: r, isGroup: i, isLimitExceeded: a } = Q(e), { isFocused: s, isChecked: c, checkboxButtonSize: l, checkboxSize: d, hasOwnLabel: f, actualValue: p } = $(e, t, { model: r }), { isDisabled: m } = Te({
189
189
  model: r,
190
190
  isChecked: c
191
191
  }), { inputId: h, isLabeledByFormItem: g } = u(e, {
192
192
  formItemContext: n,
193
193
  disableIdGeneration: f,
194
194
  disableIdManagement: i
195
- }), { handleChange: _, onClickRoot: y } = Q(e, {
195
+ }), { handleChange: _, onClickRoot: y } = Ee(e, {
196
196
  model: r,
197
197
  isLimitExceeded: a,
198
198
  hasOwnLabel: f,
@@ -204,19 +204,19 @@ var xe = {
204
204
  x(r.value) && !r.value.includes(p.value) ? r.value.push(p.value) : r.value = e.trueValue ?? e.trueLabel ?? !0;
205
205
  }
206
206
  e.checked && t();
207
- })(), D({
207
+ })(), re({
208
208
  from: "label act as value",
209
209
  replacement: "value",
210
210
  version: "3.0.0",
211
211
  scope: "el-checkbox",
212
212
  ref: "https://element-plus.org/en-US/component/checkbox.html"
213
- }, k(() => i.value && v(e.value))), D({
213
+ }, k(() => i.value && v(e.value))), re({
214
214
  from: "true-label",
215
215
  replacement: "true-value",
216
216
  version: "3.0.0",
217
217
  scope: "el-checkbox",
218
218
  ref: "https://element-plus.org/en-US/component/checkbox.html"
219
- }, k(() => !!e.trueLabel)), D({
219
+ }, k(() => !!e.trueLabel)), re({
220
220
  from: "false-label",
221
221
  replacement: "false-value",
222
222
  version: "3.0.0",
@@ -245,10 +245,10 @@ var xe = {
245
245
  ], ke = /* @__PURE__ */ F({
246
246
  name: "ElCheckbox",
247
247
  __name: "checkbox",
248
- props: xe,
249
- emits: X,
248
+ props: be,
249
+ emits: xe,
250
250
  setup(e) {
251
- let t = e, { inputId: n, isLabeledByFormItem: r, isChecked: i, isDisabled: a, isFocused: o, checkboxSize: s, hasOwnLabel: c, model: l, actualValue: u, handleChange: d, onClickRoot: f } = De(t, G()), p = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
251
+ let t = e, { inputId: n, isLabeledByFormItem: r, isChecked: i, isDisabled: a, isFocused: o, checkboxSize: s, hasOwnLabel: c, model: l, actualValue: u, handleChange: d, onClickRoot: f } = De(t, ve()), p = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
252
252
  "true-value": t.trueValue ?? t.trueLabel ?? !0,
253
253
  "false-value": t.falseValue ?? t.falseLabel ?? !1
254
254
  } : { value: u.value }), m = w("checkbox"), h = k(() => [
@@ -264,32 +264,32 @@ var xe = {
264
264
  m.is("indeterminate", t.indeterminate),
265
265
  m.is("focus", o.value)
266
266
  ]);
267
- return (t, i) => (z(), ce(H(!W(c) && W(r) ? "span" : "label"), {
268
- for: !W(c) && W(r) ? null : W(n),
267
+ return (t, i) => (z(), ce(ge(!G(c) && G(r) ? "span" : "label"), {
268
+ for: !G(c) && G(r) ? null : G(n),
269
269
  class: R(h.value),
270
270
  "aria-controls": e.indeterminate ? e.ariaControls : null,
271
271
  "aria-checked": e.indeterminate ? "mixed" : void 0,
272
272
  "aria-label": e.ariaLabel,
273
- onClick: W(f)
273
+ onClick: G(f)
274
274
  }, {
275
275
  default: J(() => [M("span", { class: R(g.value) }, [Y(M("input", L({
276
- id: W(n),
276
+ id: G(n),
277
277
  "onUpdate:modelValue": i[0] ||= (e) => ue(l) ? l.value = e : null,
278
- class: W(m).e("original"),
278
+ class: G(m).e("original"),
279
279
  type: "checkbox",
280
280
  indeterminate: e.indeterminate,
281
281
  name: e.name,
282
282
  tabindex: e.tabindex,
283
- disabled: W(a)
283
+ disabled: G(a)
284
284
  }, p.value, {
285
- onChange: i[1] ||= (...e) => W(d) && W(d)(...e),
285
+ onChange: i[1] ||= (...e) => G(d) && G(d)(...e),
286
286
  onFocus: i[2] ||= (e) => o.value = !0,
287
287
  onBlur: i[3] ||= (e) => o.value = !1,
288
- onClick: i[4] ||= be(() => {}, ["stop"])
289
- }), null, 16, Oe), [[ye, W(l)]]), M("span", { class: R(W(m).e("inner")) }, null, 2)], 2), W(c) ? (z(), j("span", {
288
+ onClick: i[4] ||= X(() => {}, ["stop"])
289
+ }), null, 16, Oe), [[K, G(l)]]), M("span", { class: R(G(m).e("inner")) }, null, 2)], 2), G(c) ? (z(), j("span", {
290
290
  key: 0,
291
- class: R(W(m).e("label"))
292
- }, [ge(t.$slots, "default"), t.$slots.default ? A("v-if", !0) : (z(), j(O, { key: 0 }, [N(U(e.label), 1)], 64))], 2)) : A("v-if", !0)]),
291
+ class: R(G(m).e("label"))
292
+ }, [H(t.$slots, "default"), t.$slots.default ? A("v-if", !0) : (z(), j(O, { key: 0 }, [N(U(e.label), 1)], 64))], 2)) : A("v-if", !0)]),
293
293
  _: 3
294
294
  }, 8, [
295
295
  "for",
@@ -307,10 +307,10 @@ var xe = {
307
307
  ], je = /* @__PURE__ */ F({
308
308
  name: "ElCheckboxButton",
309
309
  __name: "checkbox-button",
310
- props: xe,
311
- emits: X,
310
+ props: be,
311
+ emits: xe,
312
312
  setup(e) {
313
- let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = De(t, G()), l = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
313
+ let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = De(t, ve()), l = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
314
314
  "true-value": t.trueValue ?? t.trueLabel ?? !0,
315
315
  "false-value": t.falseValue ?? t.falseLabel ?? !1
316
316
  } : { value: s.value }), u = I(Z, void 0), d = w("checkbox"), f = k(() => {
@@ -330,21 +330,21 @@ var xe = {
330
330
  ]);
331
331
  return (t, a) => (z(), j("label", { class: R(p.value) }, [Y(M("input", L({
332
332
  "onUpdate:modelValue": a[0] ||= (e) => ue(o) ? o.value = e : null,
333
- class: W(d).be("button", "original"),
333
+ class: G(d).be("button", "original"),
334
334
  type: "checkbox",
335
335
  name: e.name,
336
336
  tabindex: e.tabindex,
337
- disabled: W(i)
337
+ disabled: G(i)
338
338
  }, l.value, {
339
- onChange: a[1] ||= (...e) => W(c) && W(c)(...e),
339
+ onChange: a[1] ||= (...e) => G(c) && G(c)(...e),
340
340
  onFocus: a[2] ||= (e) => n.value = !0,
341
341
  onBlur: a[3] ||= (e) => n.value = !1,
342
- onClick: a[4] ||= be(() => {}, ["stop"])
343
- }), null, 16, Ae), [[ye, W(o)]]), t.$slots.default || e.label ? (z(), j("span", {
342
+ onClick: a[4] ||= X(() => {}, ["stop"])
343
+ }), null, 16, Ae), [[K, G(o)]]), t.$slots.default || e.label ? (z(), j("span", {
344
344
  key: 0,
345
- class: R(W(d).be("button", "inner")),
346
- style: fe(W(r) ? f.value : void 0)
347
- }, [ge(t.$slots, "default", {}, () => [N(U(e.label), 1)])], 6)) : A("v-if", !0)], 2));
345
+ class: R(G(d).be("button", "inner")),
346
+ style: fe(G(r) ? f.value : void 0)
347
+ }, [H(t.$slots, "default", {}, () => [N(U(e.label), 1)])], 6)) : A("v-if", !0)], 2));
348
348
  }
349
349
  }), Me = /* @__PURE__ */ F({
350
350
  name: "ElCheckboxGroup",
@@ -380,7 +380,7 @@ var xe = {
380
380
  };
381
381
  }, b = k(() => r.type === "button" ? je : ke);
382
382
  return he(Z, {
383
- ...t(ve(r), [
383
+ ...t(_e(r), [
384
384
  "size",
385
385
  "min",
386
386
  "max",
@@ -391,16 +391,16 @@ var xe = {
391
391
  disabled: l,
392
392
  modelValue: _,
393
393
  changeEvent: g
394
- }), q(() => r.modelValue, (e, t) => {
395
- r.validateEvent && !re(e, t) && d?.validate("change").catch((e) => h(e));
396
- }), (t, n) => (z(), ce(H(e.tag), {
397
- id: W(f),
398
- class: R(W(s).b("group")),
394
+ }), ye(() => r.modelValue, (e, t) => {
395
+ r.validateEvent && !D(e, t) && d?.validate("change").catch((e) => h(e));
396
+ }), (t, n) => (z(), ce(ge(e.tag), {
397
+ id: G(f),
398
+ class: R(G(s).b("group")),
399
399
  role: "group",
400
- "aria-label": W(p) ? void 0 : e.ariaLabel || "checkbox-group",
401
- "aria-labelledby": W(p) ? W(d)?.labelId : void 0
400
+ "aria-label": G(p) ? void 0 : e.ariaLabel || "checkbox-group",
401
+ "aria-labelledby": G(p) ? G(d)?.labelId : void 0
402
402
  }, {
403
- default: J(() => [ge(t.$slots, "default", {}, () => [(z(!0), j(O, null, V(e.options, (e, t) => (z(), ce(H(b.value), L({ key: t }, { ref_for: !0 }, y(e)), null, 16))), 128))])]),
403
+ default: J(() => [H(t.$slots, "default", {}, () => [(z(!0), j(O, null, V(e.options, (e, t) => (z(), ce(ge(b.value), L({ key: t }, { ref_for: !0 }, y(e)), null, 16))), 128))])]),
404
404
  _: 3
405
405
  }, 8, [
406
406
  "id",
@@ -422,13 +422,16 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
422
422
  }, Ie = {
423
423
  key: 0,
424
424
  class: "voice-permission-mask"
425
- }, Le = { class: "HighwayLiveAlarmNew-head" }, Re = { class: "HighwayLiveAlarmNew-head-top" }, ze = { class: "head-actions" }, Be = { class: "view-switch" }, Ve = { class: "HighwayLiveAlarmNew-chart" }, He = { class: "HighwayLiveAlarmNew-setting-panel" }, Ue = { class: "display-setting" }, We = { class: "setting-row setting-row-pile" }, Ge = { class: "setting-pile-options" }, Ke = { class: "setting-row" }, qe = { class: "setting-row" }, Je = { class: "HighwayLiveAlarmNew-table" }, Ye = { class: "table-body" }, Xe = ["onClick"], Ze = { class: "name" }, Qe = ["onClick"], $e = {
425
+ }, Le = { class: "HighwayLiveAlarmNew-head" }, Re = { class: "HighwayLiveAlarmNew-head-top" }, ze = { class: "head-actions" }, Be = { class: "view-switch" }, Ve = { class: "HighwayLiveAlarmNew-chart" }, He = { class: "HighwayLiveAlarmNew-setting-panel" }, Ue = { class: "display-setting" }, We = { style: { display: "flex" } }, Ge = {
426
+ class: "setting-row setting-row-pile",
427
+ style: { flex: "1" }
428
+ }, Ke = { class: "setting-pile-options" }, qe = {
429
+ class: "setting-row setting-row-pile",
430
+ style: { flex: "1" }
431
+ }, Je = { class: "setting-pile-options" }, Ye = { class: "setting-row" }, Xe = { class: "setting-row" }, Ze = { class: "HighwayLiveAlarmNew-table" }, Qe = { class: "table-body" }, $e = ["onClick"], et = { class: "name" }, tt = ["onClick"], nt = {
426
432
  key: 0,
427
433
  style: { color: "red" }
428
- }, et = { class: "station-panel" }, tt = { class: "station-head" }, nt = { class: "metric-head" }, rt = { class: "label" }, it = {
429
- key: 0,
430
- class: "warn-count"
431
- }, at = { class: "metric-head" }, ot = { class: "label" }, st = {
434
+ }, rt = { class: "station-panel" }, it = { class: "station-head" }, at = { class: "metric-head" }, ot = { class: "label" }, st = {
432
435
  key: 0,
433
436
  class: "warn-count"
434
437
  }, ct = { class: "metric-head" }, lt = { class: "label" }, ut = {
@@ -437,22 +440,25 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
437
440
  }, dt = { class: "metric-head" }, ft = { class: "label" }, pt = {
438
441
  key: 0,
439
442
  class: "warn-count"
440
- }, mt = {
443
+ }, mt = { class: "metric-head" }, ht = { class: "label" }, gt = {
444
+ key: 0,
445
+ class: "warn-count"
446
+ }, _t = {
441
447
  key: 0,
442
448
  class: "station-body"
443
- }, ht = ["onClick"], gt = { class: "metric-value" }, _t = { class: "metric-value" }, vt = { class: "metric-value" }, yt = { class: "metric-value" }, bt = {
449
+ }, vt = ["onClick"], yt = { class: "metric-value" }, bt = { class: "metric-value" }, xt = { class: "metric-value" }, St = { class: "metric-value" }, Ct = {
444
450
  key: 1,
445
451
  class: "station-empty"
446
- }, xt = ["onClick"], St = {
452
+ }, wt = ["onClick"], Tt = {
447
453
  key: 0,
448
454
  style: { color: "red" }
449
- }, Ct = { class: "pile-panel" }, wt = {
455
+ }, Et = { class: "pile-panel" }, Dt = {
450
456
  key: 0,
451
457
  class: "pile-body"
452
- }, Tt = ["onClick"], Et = {
458
+ }, Ot = ["onClick"], kt = {
453
459
  key: 1,
454
460
  class: "pile-empty"
455
- }, Dt = "当前高速无任何报警,请放心出行。", Ot = /* @__PURE__ */ E(/* @__PURE__ */ F({
461
+ }, At = "当前高速无任何报警,请放心出行。", jt = /* @__PURE__ */ E(/* @__PURE__ */ F({
456
462
  __name: "HighwayLiveAlarmNew",
457
463
  props: {
458
464
  appKey: {
@@ -486,7 +492,8 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
486
492
  "removeMarker",
487
493
  "addDataTitle",
488
494
  "removeDataTitle",
489
- "toMapView"
495
+ "toMapView",
496
+ "toComponent"
490
497
  ],
491
498
  setup(e, { emit: t }) {
492
499
  let n = e, r = t, i = B([]), o = B([]), s = {
@@ -502,42 +509,42 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
502
509
  field: "visibility_min",
503
510
  unit: "km"
504
511
  }
505
- }, c = B(""), l = B(!1), u = B(null), m = B(null), h = B("table"), g = B("降水"), _ = B(!0), v = B(!1), y = B("全部"), b = B(["全部"]), ee = B("自动站观测时间:--"), x = B({}), S = B([]), C = B({}), w = B({}), T = B({}), E = null, re = k(() => c.value === Dt ? "#52c41a" : "#ff4d4f"), D = (e) => (e || []).filter((e) => q(e)).length, oe = () => E || (E = new Audio(Pe), E.preload = "auto", E), F = () => {
506
- let e = oe();
507
- e.volume = 0, e.currentTime = 0;
508
- let t = e.play();
509
- if (!t) {
510
- v.value = !0;
512
+ }, c = B(""), l = B(!1), u = B(null), m = B(null), h = B("table"), g = B("降水"), _ = B(!0), v = B(!0), y = B(!1), b = B("全部"), ee = B(["全部"]), x = B("自动站观测时间:--"), S = B({}), C = B([]), w = B({}), T = B({}), E = B({}), D = null, re = k(() => c.value === At ? "#52c41a" : "#ff4d4f"), oe = (e) => (e || []).filter((e) => X(e)).length, F = () => D || (D = new Audio(Pe), D.preload = "auto", D), le = () => new Promise((e) => {
513
+ let t = F();
514
+ t.volume = 0, t.currentTime = 0;
515
+ let n = t.play();
516
+ if (!n) {
517
+ y.value = !0, e();
511
518
  return;
512
519
  }
513
- t.then(() => {
514
- e.pause(), e.volume = 1;
520
+ n.then(() => {
521
+ t.pause(), t.volume = 1, e();
515
522
  }).catch(() => {
516
- v.value = !0;
523
+ y.value = !0, e();
517
524
  });
518
- }, le = () => {
519
- let e = oe();
525
+ }), I = () => {
526
+ let e = F();
520
527
  e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
521
- }, I = () => {
522
- let e = oe();
528
+ }, ue = () => {
529
+ let e = F();
523
530
  e.volume = 0, e.currentTime = 0;
524
531
  let t = e.play();
525
532
  if (!t) {
526
- v.value = !1;
533
+ y.value = !1;
527
534
  return;
528
535
  }
529
536
  t.then(() => {
530
- e.pause(), v.value = !1;
537
+ e.pause(), y.value = !1, c.value !== At && I();
531
538
  }).catch(() => {});
532
- }, ue = k(() => Se(y.value === "全部" ? S.value : S.value.filter((e) => e.name === y.value), (e) => Z(e.tags)));
539
+ }, L = k(() => Ce(b.value === "全部" ? C.value : C.value.filter((e) => e.name === b.value), (e) => Se(e.tags)));
533
540
  me(() => {
534
- L(), u.value = setInterval(() => {
535
- L();
541
+ he(), u.value = setInterval(() => {
542
+ he();
536
543
  }, 1e3 * 60 * 10);
537
544
  }), pe(() => {
538
- u.value && clearInterval(u.value), E && (E.pause(), E.currentTime = 0), r("removeLine", "line_HighwayLiveAlarmNew"), m.value?.dispose(), m.value = null;
545
+ u.value && clearInterval(u.value), D && (D.pause(), D.currentTime = 0), r("removeLine", "line_HighwayLiveAlarmNew"), m.value?.dispose(), m.value = null;
539
546
  });
540
- let L = async () => {
547
+ let he = async () => {
541
548
  await ge(), l.value = !0;
542
549
  let e = await ne({
543
550
  appKey: n.appKey,
@@ -551,23 +558,23 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
551
558
  l.value = !1;
552
559
  let t = e.data.result.ds;
553
560
  console.log("得到所有道路", JSON.parse(JSON.stringify(t))), o.value = t;
554
- let i = ee.value, a = Ce(t);
555
- ee.value = a, r("removeDataTitle", i), setTimeout(() => {
561
+ let i = x.value, a = we(t);
562
+ x.value = a, r("removeDataTitle", i), setTimeout(() => {
556
563
  r("addDataTitle", a);
557
564
  }, 1e3);
558
565
  let s = [], u = [], d = {}, f = [];
559
566
  t.forEach((e) => {
560
- let t = Ee(e), n = Se(e.zdzds || [], (e) => q(e)), r = we(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
567
+ let t = De(e), n = Ce(e.zdzds || [], (e) => X(e)), r = Te(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
561
568
  i && u.push({
562
569
  name: e.name,
563
570
  ...t
564
- }), d[e.name] = De(e), f.push({
571
+ }), d[e.name] = Oe(e), f.push({
565
572
  name: e.name,
566
573
  stations: n,
567
574
  piles: r,
568
575
  pileWarnCount: r.filter((e) => e.isWarn).length,
569
- warnCount: ke(n),
570
- tags: Oe(t)
576
+ warnCount: Ae(n),
577
+ tags: ke(t)
571
578
  });
572
579
  let a = i ? "#ff4d4f" : "#52c41a";
573
580
  s.push({
@@ -576,8 +583,8 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
576
583
  itemStyle: { color: a },
577
584
  label: { color: a }
578
585
  });
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);
580
- }, he = (e) => {
586
+ }), S.value = d, C.value = f, ee.value = ["全部", ...f.map((e) => e.name)], ee.value.includes(b.value) || (b.value = "全部"), zt(b.value), Gt(), c.value = je(u), await le(), u.length > 0 && I(), Me(s);
587
+ }, H = (e) => {
581
588
  r("toMapView", {
582
589
  lng: e.longitude ? Number(e.longitude) : Number(e.x),
583
590
  lat: e.latitude ? Number(e.latitude) : Number(e.y),
@@ -595,37 +602,37 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
595
602
  isFormData: n.ids.pieNumber.isFormData
596
603
  });
597
604
  l.value = !1, i.value = e.data.result.output || [], console.log("得到所有桩号", i.value);
598
- }, H = (e) => {
605
+ }, W = (e) => {
599
606
  let t = Number(e);
600
607
  return t < 999999 && t > -999999;
601
608
  }, _e = (e, t, n = 1) => {
602
609
  let r = Number(e);
603
- return H(r) ? `${r.toFixed(n)}${t}` : "";
610
+ return W(r) ? `${r.toFixed(n)}${t}` : "";
604
611
  }, ve = (e) => {
605
612
  let t = Number(e);
606
- return H(t) ? `${(t / 1e3).toFixed(1)}km` : "";
607
- }, G = (e, t = 1) => {
613
+ return W(t) ? `${(t / 1e3).toFixed(1)}km` : "";
614
+ }, K = (e, t = 1) => {
608
615
  let n = Number(e);
609
- return H(n) ? n.toFixed(t) : "--";
616
+ return W(n) ? n.toFixed(t) : "--";
610
617
  }, ye = (e) => {
611
618
  let t = Number(e);
612
- return H(t) ? (t / 1e3).toFixed(1) : "--";
613
- }, q = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, be = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, xe = (e) => e?.Name || e?.name || e?.column || "--", X = (e, t = 1) => {
619
+ return W(t) ? (t / 1e3).toFixed(1) : "--";
620
+ }, X = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, be = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, xe = (e) => e?.Name || e?.name || e?.column || "--", Z = (e, t = 1) => {
614
621
  let n = Number(e);
615
- return H(n) ? n.toFixed(t) : "--";
616
- }, Z = (e) => e.some((e) => e.warn), Se = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Ce = (e) => {
622
+ return W(n) ? n.toFixed(t) : "--";
623
+ }, Se = (e) => e.some((e) => e.warn), Ce = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), we = (e) => {
617
624
  let t = (e || []).find((e) => (e?.zdzds || []).length)?.zdzds?.[0]?.observation_time;
618
625
  return t ? `自动站观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "自动站观测时间:--";
619
- }, we = (e) => Se((e || []).map((e) => ({
626
+ }, Te = (e) => Ce((e || []).map((e) => ({
620
627
  pileNo: xe(e),
621
628
  isWarn: be(e),
622
- rainfall: X(e?.zdzds?.rainfall_1h),
623
- rainfall_6h: X(e?.zdzds?.rainfall_6h),
624
- temperature: X(e?.zdzds?.temperature),
629
+ rainfall: Z(e?.zdzds?.rainfall_1h),
630
+ rainfall_6h: Z(e?.zdzds?.rainfall_6h),
631
+ temperature: Z(e?.zdzds?.temperature),
625
632
  visibility: ye(e?.zdzds?.visibility_min),
626
633
  x: e?.x,
627
634
  y: e?.y
628
- })), (e) => e.isWarn), Te = () => y.value === "全部" ? S.value.flatMap((e) => e.stations || []) : S.value.find((e) => e.name === y.value)?.stations || [], Q = (e, t, n) => e.find((e) => e?.[t] === 1 && H(e?.[n])) || e.find((e) => e?.[t] === 1), $ = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), Ee = (e) => {
635
+ })), (e) => e.isWarn), Ee = () => b.value === "全部" ? C.value.flatMap((e) => e.stations || []) : C.value.find((e) => e.name === b.value)?.stations || [], Q = (e, t, n) => e.find((e) => e?.[t] === 1 && W(e?.[n])) || e.find((e) => e?.[t] === 1), $ = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), De = (e) => {
629
636
  let t = e.zdzds || [], n = e.zhds || [], r = Q(t, "iswarnpre", "rainfall_1h"), i = Q(t, "iswarnpre_6", "rainfall_6h"), a = Q(t, "iswarntemp", "temperature"), o = Q(t, "iswarnvis", "visibility_min"), s = $(n, "iswarnpre"), c = $(n, "iswarnpre_6"), l = $(n, "iswarntemp"), u = $(n, "iswarnvis");
630
637
  return {
631
638
  iswarnrainfall_1h: r || s ? 1 : 0,
@@ -641,7 +648,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
641
648
  tempWarnPile: l,
642
649
  visWarnPile: u
643
650
  };
644
- }, De = (e) => {
651
+ }, Oe = (e) => {
645
652
  let t = e.layer_name;
646
653
  return {
647
654
  oneLayer: {
@@ -652,7 +659,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
652
659
  visible: !0,
653
660
  zIndex: 200
654
661
  };
655
- }, Oe = (e) => {
662
+ }, ke = (e) => {
656
663
  let t = e.iswarnrainfall_1h === 1 || e.iswarnrainfall_6h === 1;
657
664
  return [
658
665
  {
@@ -671,15 +678,15 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
671
678
  value: e.iswarnvis ? ve(e.visWarnStation?.visibility_min) : ""
672
679
  }
673
680
  ];
674
- }, ke = (e) => ({
681
+ }, Ae = (e) => ({
675
682
  rainfall_1h: e.filter((e) => e?.iswarnpre === 1).length,
676
683
  rainfall_6h: e.filter((e) => e?.iswarnpre_6 === 1).length,
677
684
  temp: e.filter((e) => e?.iswarntemp === 1).length,
678
685
  vis: e.filter((e) => e?.iswarnvis === 1).length
679
- }), Ae = (e) => e.length ? `当前${e.map((e) => {
686
+ }), je = (e) => e.length ? `当前${e.map((e) => {
680
687
  let t = [];
681
688
  return (e.iswarnrainfall_1h || e.iswarnrainfall_6h) && t.push("降水"), e.iswarntemp && t.push("温度"), e.iswarnvis && t.push("能见度"), `${e.name}高速${t.join("、")}报警`;
682
- }).join(",")},请合理安排出行!` : Dt, je = (e) => {
689
+ }).join(",")},请合理安排出行!` : At, Me = (e) => {
683
690
  let t = document.querySelector(".HighwayLiveAlarmNew-chart");
684
691
  if (!t) return;
685
692
  m.value ||= ae(t);
@@ -711,12 +718,12 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
711
718
  }]
712
719
  };
713
720
  m.value.setOption(n);
714
- }, Me = async (e) => {
721
+ }, jt = async (e) => {
715
722
  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) => ({
723
+ }, Mt = (e) => e === "全部" ? Object.values(S.value) : S.value[e] ? [S.value[e]] : [], Nt = () => b.value === "全部" ? o.value : o.value.filter((e) => e.name === b.value), Pt = (e) => e?.pointds || e?.pointds$1 || [], Ft = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
717
724
  lng: Number(e.x ?? e.longitude),
718
725
  lat: Number(e.y ?? e.latitude)
719
- })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), Mt = (e, t) => {
726
+ })).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), It = (e, t) => {
720
727
  let n = [
721
728
  t?.station_number,
722
729
  t?.stationid,
@@ -737,15 +744,15 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
737
744
  let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
738
745
  return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
739
746
  });
740
- }, Nt = () => {
747
+ }, Lt = () => {
741
748
  r("removeLine", "line_HighwayLiveAlarmNew");
742
749
  let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
743
- if (kt().forEach((n) => {
744
- let r = At(n);
750
+ if (Nt().forEach((n) => {
751
+ let r = Pt(n);
745
752
  if (r.length < 2) return;
746
753
  let i = r.filter((e) => e.name === n.name);
747
754
  if (i.length < 2) return;
748
- let a = [...(n.zdzds || []).filter((e) => q(e)), ...(n.zhds || []).filter((e) => be(e))].map((e) => Mt(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
755
+ let a = [...(n.zdzds || []).filter((e) => X(e)), ...(n.zhds || []).filter((e) => be(e))].map((e) => It(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
749
756
  if (!a.length) return;
750
757
  let o = (n) => {
751
758
  if (n.length !== 2) return;
@@ -759,7 +766,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
759
766
  }));
760
767
  };
761
768
  if (a.length === 1) {
762
- o(jt(i, a[0]));
769
+ o(Ft(i, a[0]));
763
770
  return;
764
771
  }
765
772
  for (let e = 0; e < a.length - 1; e++) {
@@ -780,20 +787,20 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
780
787
  removeLine: "line_HighwayLiveAlarmNew",
781
788
  mapLine: e
782
789
  });
783
- }, Pt = () => {
784
- let e = ue.value.find((e) => Z(e.tags)), t = {}, n = {}, r = {};
785
- e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), C.value = t, w.value = n, T.value = r;
786
- }, Ft = (e) => {
787
- y.value = e, Pt(), r("removeLayers", Object.values(x.value).map((e) => e.name)), setTimeout(() => {
790
+ }, Rt = () => {
791
+ let e = L.value.find((e) => Se(e.tags)), t = {}, n = {}, r = {};
792
+ e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), w.value = t, T.value = n, E.value = r;
793
+ }, zt = (e) => {
794
+ b.value = e, Rt(), r("removeLayers", Object.values(S.value).map((e) => e.name)), setTimeout(() => {
788
795
  r("addLayers", {
789
- layers: Ot(e),
796
+ layers: Mt(e),
790
797
  isRemove: !0
791
798
  });
792
- }, 1e3), zt(), Nt();
793
- }, It = () => s[g.value], Lt = (e, t) => {
799
+ }, 1e3), Ut(), Lt();
800
+ }, Bt = () => s[g.value], Vt = (e, t) => {
794
801
  let n = Number(e?.[t]);
795
- return H(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
796
- }, Rt = (e, t, n) => `
802
+ return W(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
803
+ }, Ht = (e, t, n) => `
797
804
  <div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
798
805
  <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;'>
799
806
  ${t}${n}
@@ -803,7 +810,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
803
810
  ${e.station_name || "--"}
804
811
  </div>
805
812
  </div>
806
- `, zt = () => {
813
+ `, Ut = () => {
807
814
  let e = {
808
815
  clickOpen: !1,
809
816
  spotObject: [{
@@ -818,9 +825,9 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
818
825
  }],
819
826
  drawArrObj: [],
820
827
  onlyLayerID: "station_highway"
821
- }, t = It(), n = t.field, i = t.unit;
822
- Te().forEach((t) => {
823
- let r = Rt(t, Lt(t, n), i), a = {
828
+ }, t = Bt(), n = t.field, i = t.unit;
829
+ Ee().forEach((t) => {
830
+ let r = Ht(t, Vt(t, n), i), a = {
824
831
  lng: t.longitude,
825
832
  lat: t.latitude,
826
833
  htmlString: r,
@@ -832,7 +839,12 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
832
839
  mapMarker: e,
833
840
  removeMarker: "station_highway"
834
841
  });
835
- }, Bt = () => {
842
+ }, Wt = () => {
843
+ r("toComponent", {
844
+ componentName: "PieLegend",
845
+ show: v.value
846
+ });
847
+ }, Gt = () => {
836
848
  if (!_.value) return r("removeMarker", "pile_highway");
837
849
  let e = {
838
850
  clickOpen: !0,
@@ -891,38 +903,38 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
891
903
  mapMarker: e,
892
904
  removeMarker: "pile_highway"
893
905
  });
894
- }, Vt = (e) => {
895
- let t = !!C.value[e];
896
- C.value[e] = !t, t || (w.value[e] = !1, T.value[e] = !0);
897
- }, Ht = (e) => {
898
- w.value[e] = !w.value[e];
899
- }, Ut = (e) => {
906
+ }, Kt = (e) => {
907
+ let t = !!w.value[e];
908
+ w.value[e] = !t, t || (T.value[e] = !1, E.value[e] = !0);
909
+ }, qt = (e) => {
900
910
  T.value[e] = !T.value[e];
901
- }, Wt = () => {
911
+ }, Jt = (e) => {
912
+ E.value[e] = !E.value[e];
913
+ }, Yt = () => {
902
914
  r("close", "HighwayLiveAlarmNew");
903
915
  };
904
916
  return (e, t) => {
905
917
  let n = Ne, r = se, i = ie, o = f, s = p, u = d, m = te;
906
918
  return Y((z(), j("div", Fe, [
907
- v.value ? (z(), j("div", Ie, [M("div", { class: "voice-permission-dialog" }, [
908
- t[5] ||= M("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
909
- t[6] ||= M("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
919
+ y.value ? (z(), j("div", Ie, [M("div", { class: "voice-permission-dialog" }, [
920
+ t[6] ||= M("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
921
+ t[7] ||= M("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
910
922
  M("button", {
911
923
  class: "voice-permission-btn",
912
- onClick: I
924
+ onClick: ue
913
925
  }, "开启")
914
926
  ])])) : A("", !0),
915
- M("div", Le, [M("div", Re, [t[7] ||= M("div", null, "沿线高速公路实况报警", -1), M("div", ze, [M("div", Be, [M("button", {
927
+ M("div", Le, [M("div", Re, [t[8] ||= M("div", null, "沿线高速公路实况报警", -1), M("div", ze, [M("div", Be, [M("button", {
916
928
  class: R(["switch-btn", { active: h.value === "chart" }]),
917
- onClick: t[0] ||= (e) => Me("chart")
929
+ onClick: t[0] ||= (e) => jt("chart")
918
930
  }, " 图表 ", 2), M("button", {
919
931
  class: R(["switch-btn", { active: h.value === "table" }]),
920
- onClick: t[1] ||= (e) => Me("table")
932
+ onClick: t[1] ||= (e) => jt("table")
921
933
  }, " 表格 ", 2)]), M("div", {
922
934
  class: "closeBtn",
923
- onClick: Wt,
935
+ onClick: Yt,
924
936
  title: "关闭"
925
- })])]), t[8] ||= M("img", {
937
+ })])]), t[9] ||= M("img", {
926
938
  class: "HighwayLiveAlarmNew-head-line",
927
939
  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",
928
940
  alt: ""
@@ -930,132 +942,140 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
930
942
  Y(M("div", {
931
943
  class: "HighwayLiveAlarmNew-summary",
932
944
  style: fe({ color: re.value })
933
- }, U(c.value), 5), [[K, h.value === "chart"]]),
934
- Y(M("div", Ve, null, 512), [[K, h.value === "chart"]]),
945
+ }, U(c.value), 5), [[q, h.value === "chart"]]),
946
+ Y(M("div", Ve, null, 512), [[q, h.value === "chart"]]),
935
947
  Y(M("div", He, [M("div", Ue, [
936
- M("div", We, [t[10] ||= M("span", { class: "setting-label" }, "桩号展示:", -1), M("div", Ge, [P(n, {
948
+ M("div", We, [M("div", Ge, [t[11] ||= M("span", { class: "setting-label" }, "桩号展示:", -1), M("div", Ke, [P(n, {
937
949
  modelValue: _.value,
938
950
  "onUpdate:modelValue": t[2] ||= (e) => _.value = e,
939
951
  class: "pile-checkbox",
940
- onChange: Bt
952
+ onChange: Gt
941
953
  }, {
942
- default: J(() => [...t[9] ||= [N(" 显示 ", -1)]]),
954
+ default: J(() => [...t[10] ||= [N(" 显示 ", -1)]]),
943
955
  _: 1
944
- }, 8, ["modelValue"])])]),
945
- M("div", Ke, [t[14] ||= M("span", { class: "setting-label" }, "地图要素:", -1), P(i, {
956
+ }, 8, ["modelValue"])])]), M("div", qe, [t[13] ||= M("span", { class: "setting-label" }, "桩号图例:", -1), M("div", Je, [P(n, {
957
+ modelValue: v.value,
958
+ "onUpdate:modelValue": t[3] ||= (e) => v.value = e,
959
+ class: "pile-checkbox",
960
+ onChange: Wt
961
+ }, {
962
+ default: J(() => [...t[12] ||= [N(" 显示 ", -1)]]),
963
+ _: 1
964
+ }, 8, ["modelValue"])])])]),
965
+ M("div", Ye, [t[17] ||= M("span", { class: "setting-label" }, "地图要素:", -1), P(i, {
946
966
  modelValue: g.value,
947
- "onUpdate:modelValue": t[3] ||= (e) => g.value = e,
967
+ "onUpdate:modelValue": t[4] ||= (e) => g.value = e,
948
968
  class: "setting-radios",
949
- onChange: zt
969
+ onChange: Ut
950
970
  }, {
951
971
  default: J(() => [
952
972
  P(r, { value: "降水" }, {
953
- default: J(() => [...t[11] ||= [N("降水", -1)]]),
973
+ default: J(() => [...t[14] ||= [N("降水", -1)]]),
954
974
  _: 1
955
975
  }),
956
976
  P(r, { value: "温度" }, {
957
- default: J(() => [...t[12] ||= [N("温度", -1)]]),
977
+ default: J(() => [...t[15] ||= [N("温度", -1)]]),
958
978
  _: 1
959
979
  }),
960
980
  P(r, { value: "能见度" }, {
961
- default: J(() => [...t[13] ||= [N("能见度", -1)]]),
981
+ default: J(() => [...t[16] ||= [N("能见度", -1)]]),
962
982
  _: 1
963
983
  })
964
984
  ]),
965
985
  _: 1
966
986
  }, 8, ["modelValue"])]),
967
- M("div", qe, [t[15] ||= M("span", { class: "setting-label" }, "路线地图:", -1), P(s, {
968
- modelValue: y.value,
969
- "onUpdate:modelValue": t[4] ||= (e) => y.value = e,
987
+ M("div", Xe, [t[18] ||= M("span", { class: "setting-label" }, "路线地图:", -1), P(s, {
988
+ modelValue: b.value,
989
+ "onUpdate:modelValue": t[5] ||= (e) => b.value = e,
970
990
  placeholder: "请选择路线",
971
991
  class: "dark-select",
972
- onChange: Ft
992
+ onChange: zt
973
993
  }, {
974
- default: J(() => [(z(!0), j(O, null, V(b.value, (e) => (z(), ce(o, {
994
+ default: J(() => [(z(!0), j(O, null, V(ee.value, (e) => (z(), ce(o, {
975
995
  key: e,
976
996
  label: e,
977
997
  value: e
978
998
  }, null, 8, ["label", "value"]))), 128))]),
979
999
  _: 1
980
1000
  }, 8, ["modelValue"])])
981
- ])], 512), [[K, h.value === "table"]]),
982
- Y(M("div", Je, [t[28] ||= M("div", { class: "table-head" }, [
1001
+ ])], 512), [[q, h.value === "table"]]),
1002
+ Y(M("div", Ze, [t[31] ||= M("div", { class: "table-head" }, [
983
1003
  M("span", null, "高速名称"),
984
1004
  M("span", null, "状态要素"),
985
1005
  M("span", { class: "head-arrow" })
986
- ], -1), M("div", Ye, [(z(!0), j(O, null, V(ue.value, (e) => (z(), j("div", {
1006
+ ], -1), M("div", Qe, [(z(!0), j(O, null, V(L.value, (e) => (z(), j("div", {
987
1007
  class: "table-row",
988
1008
  key: e.name
989
1009
  }, [
990
1010
  M("div", {
991
1011
  class: "table-row-main",
992
- onClick: (t) => Vt(e.name)
1012
+ onClick: (t) => Kt(e.name)
993
1013
  }, [
994
- M("span", Ze, U(e.name), 1),
995
- M("div", { class: R(["status-tags", { "has-warn": Z(e.tags) }]) }, [(z(!0), j(O, null, V(e.tags, (t) => (z(), j("span", {
1014
+ M("span", et, U(e.name), 1),
1015
+ M("div", { class: R(["status-tags", { "has-warn": Se(e.tags) }]) }, [(z(!0), j(O, null, V(e.tags, (t) => (z(), j("span", {
996
1016
  class: R(["status-tag", { warn: t.warn }]),
997
1017
  key: `${e.name}-${t.label}`
998
1018
  }, [M("span", null, U(t.label), 1)], 2))), 128))], 2),
999
1019
  M("span", {
1000
- class: R(["expand-arrow", { expanded: C.value[e.name] }]),
1020
+ class: R(["expand-arrow", { expanded: w.value[e.name] }]),
1001
1021
  "aria-hidden": "true"
1002
1022
  }, [P(u, null, {
1003
- default: J(() => [P(W(a))]),
1023
+ default: J(() => [P(G(a))]),
1004
1024
  _: 1
1005
1025
  })], 2)
1006
- ], 8, Xe),
1026
+ ], 8, $e),
1007
1027
  Y(M("div", {
1008
1028
  class: "station-title",
1009
- onClick: (t) => Ht(e.name)
1010
- }, [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, {
1011
- default: J(() => [P(W(a))]),
1029
+ onClick: (t) => qt(e.name)
1030
+ }, [M("span", null, [t[19] ||= N(" 自动站数据 ", -1), oe(e.stations) > 0 ? (z(), j("span", nt, " (报警数量:" + U(oe(e.stations)) + "个) ", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: T.value[e.name] }]) }, [P(u, null, {
1031
+ default: J(() => [P(G(a))]),
1012
1032
  _: 1
1013
- })], 2)], 8, Qe), [[K, C.value[e.name]]]),
1014
- Y(M("div", et, [M("div", tt, [
1015
- t[25] ||= M("span", null, "站名", -1),
1016
- M("span", nt, [M("span", rt, [t[17] ||= N(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (z(), j("span", it, U(e.warnCount.rainfall_1h) + "条 ", 1)) : A("", !0)]), t[18] ||= M("span", { class: "unit" }, "(mm)", -1)]),
1017
- M("span", at, [M("span", ot, [t[19] ||= N(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (z(), j("span", st, U(e.warnCount.rainfall_6h) + "条 ", 1)) : A("", !0)]), t[20] ||= M("span", { class: "unit" }, "(mm)", -1)]),
1018
- M("span", ct, [M("span", lt, [t[21] ||= N(" 温度 ", -1), e.warnCount.temp > 0 ? (z(), j("span", ut, U(e.warnCount.temp) + "条 ", 1)) : A("", !0)]), t[22] ||= M("span", { class: "unit" }, "(℃)", -1)]),
1019
- M("span", dt, [M("span", ft, [t[23] ||= N(" 能见度 ", -1), e.warnCount.vis > 0 ? (z(), j("span", pt, U(e.warnCount.vis) + "条 ", 1)) : A("", !0)]), t[24] ||= M("span", { class: "unit" }, "(km)", -1)])
1020
- ]), e.stations.length ? (z(), j("div", mt, [(z(!0), j(O, null, V(e.stations, (t) => (z(), j("div", {
1021
- class: R(["station-row", { "is-warn": q(t) }]),
1033
+ })], 2)], 8, tt), [[q, w.value[e.name]]]),
1034
+ Y(M("div", rt, [M("div", it, [
1035
+ t[28] ||= M("span", null, "站名", -1),
1036
+ M("span", at, [M("span", ot, [t[20] ||= N(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (z(), j("span", st, U(e.warnCount.rainfall_1h) + "条 ", 1)) : A("", !0)]), t[21] ||= M("span", { class: "unit" }, "(mm)", -1)]),
1037
+ M("span", ct, [M("span", lt, [t[22] ||= N(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (z(), j("span", ut, U(e.warnCount.rainfall_6h) + "条 ", 1)) : A("", !0)]), t[23] ||= M("span", { class: "unit" }, "(mm)", -1)]),
1038
+ M("span", dt, [M("span", ft, [t[24] ||= N(" 温度 ", -1), e.warnCount.temp > 0 ? (z(), j("span", pt, U(e.warnCount.temp) + "条 ", 1)) : A("", !0)]), t[25] ||= M("span", { class: "unit" }, "(℃)", -1)]),
1039
+ M("span", mt, [M("span", ht, [t[26] ||= N(" 能见度 ", -1), e.warnCount.vis > 0 ? (z(), j("span", gt, U(e.warnCount.vis) + "条 ", 1)) : A("", !0)]), t[27] ||= M("span", { class: "unit" }, "(km)", -1)])
1040
+ ]), e.stations.length ? (z(), j("div", _t, [(z(!0), j(O, null, V(e.stations, (t) => (z(), j("div", {
1041
+ class: R(["station-row", { "is-warn": X(t) }]),
1022
1042
  key: `${e.name}-${t.station_number}`,
1023
- onClick: (e) => he(t)
1043
+ onClick: (e) => H(t)
1024
1044
  }, [
1025
1045
  M("span", null, U(t.station_name || "--"), 1),
1026
- M("span", gt, U(G(t.rainfall_1h)), 1),
1027
- M("span", _t, U(G(t.rainfall_6h)), 1),
1028
- M("span", vt, U(G(t.temperature)), 1),
1029
- M("span", yt, U(ye(t.visibility_min)), 1)
1030
- ], 10, ht))), 128))])) : (z(), j("div", bt, "暂无站点数据"))], 512), [[K, C.value[e.name] && w.value[e.name]]]),
1046
+ M("span", yt, U(K(t.rainfall_1h)), 1),
1047
+ M("span", bt, U(K(t.rainfall_6h)), 1),
1048
+ M("span", xt, U(K(t.temperature)), 1),
1049
+ M("span", St, U(ye(t.visibility_min)), 1)
1050
+ ], 10, vt))), 128))])) : (z(), j("div", Ct, "暂无站点数据"))], 512), [[q, w.value[e.name] && T.value[e.name]]]),
1031
1051
  Y(M("div", {
1032
1052
  class: "pile-title",
1033
- onClick: (t) => Ut(e.name)
1034
- }, [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, {
1035
- default: J(() => [P(W(a))]),
1053
+ onClick: (t) => Jt(e.name)
1054
+ }, [M("span", null, [t[29] ||= N(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (z(), j("span", Tt, " (报警数量:" + U(e.pileWarnCount) + "个)", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: E.value[e.name] }]) }, [P(u, null, {
1055
+ default: J(() => [P(G(a))]),
1036
1056
  _: 1
1037
- })], 2)], 8, xt), [[K, C.value[e.name]]]),
1038
- Y(M("div", Ct, [t[27] ||= M("div", { class: "pile-head" }, [
1057
+ })], 2)], 8, wt), [[q, w.value[e.name]]]),
1058
+ Y(M("div", Et, [t[30] ||= M("div", { class: "pile-head" }, [
1039
1059
  M("span", null, "桩号"),
1040
1060
  M("span", null, "1h降水"),
1041
1061
  M("span", null, "6h降水"),
1042
1062
  M("span", null, "温度"),
1043
1063
  M("span", null, "能见度")
1044
- ], -1), e.piles.length ? (z(), j("div", wt, [(z(!0), j(O, null, V(e.piles, (e) => (z(), j("div", {
1064
+ ], -1), e.piles.length ? (z(), j("div", Dt, [(z(!0), j(O, null, V(e.piles, (e) => (z(), j("div", {
1045
1065
  class: R(["pile-row", { "is-warn": e.isWarn }]),
1046
1066
  key: e.pileNo,
1047
- onClick: (t) => he(e)
1067
+ onClick: (t) => H(e)
1048
1068
  }, [
1049
1069
  M("span", null, U(e.pileNo), 1),
1050
1070
  M("span", null, U(e.rainfall), 1),
1051
1071
  M("span", null, U(e.rainfall_6h), 1),
1052
1072
  M("span", null, U(e.temperature), 1),
1053
1073
  M("span", null, U(e.visibility), 1)
1054
- ], 10, Tt))), 128))])) : (z(), j("div", Et, "暂无数据"))], 512), [[K, C.value[e.name] && T.value[e.name]]])
1055
- ]))), 128))])], 512), [[K, h.value === "table"]])
1074
+ ], 10, Ot))), 128))])) : (z(), j("div", kt, "暂无数据"))], 512), [[q, w.value[e.name] && E.value[e.name]]])
1075
+ ]))), 128))])], 512), [[q, h.value === "table"]])
1056
1076
  ])), [[m, l.value]]);
1057
1077
  };
1058
1078
  }
1059
- }), [["__scopeId", "data-v-80e34855"]]);
1079
+ }), [["__scopeId", "data-v-c8516d64"]]);
1060
1080
  //#endregion
1061
- export { Ne as n, Ot as t };
1081
+ export { Ne as n, jt as t };