@idmui/spot 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,119 +1,119 @@
1
1
  import X from "moment";
2
- import ee from "moment-timezone";
3
- import { Search as Ce } from "@element-plus/icons-vue";
4
- import { LngLatHelper as ue } from "@idm-plugin/geo";
5
- import * as ke from "echarts";
6
- import { markRaw as Pe, resolveComponent as we, openBlock as n, createElementBlock as o, createElementVNode as i, createVNode as ge, withCtx as ve, Fragment as b, renderList as x, createBlock as He, toDisplayString as f, createCommentVNode as be, createTextVNode as _, normalizeClass as z, normalizeStyle as ce } from "vue";
7
- import De from "axios";
8
- class Se {
9
- static pickHourly(e, t) {
10
- var h, s, w, M, C, S, L, N, I, P, H, a, r, K, D, R, A, E, G, F, O, B, V, U, Z, J, Y, j, g, k, p, y, W, v, q, te, ae, re, oe, T, se, m, ie, u, le, he, de, xe;
11
- const fe = typeof t == "string" ? X(t) : t, $ = e == null ? void 0 : e.weather, ye = e == null ? void 0 : e.marine, _e = X((s = (h = $ == null ? void 0 : $[0]) == null ? void 0 : h.hourly) == null ? void 0 : s.date).utc(), pe = _e.clone().add((C = (M = (w = $ == null ? void 0 : $[0]) == null ? void 0 : w.hourly) == null ? void 0 : M.time) == null ? void 0 : C.at(0), "h"), Le = _e.clone().add((N = (L = (S = $ == null ? void 0 : $[0]) == null ? void 0 : S.hourly) == null ? void 0 : L.time) == null ? void 0 : N.at(-1), "h"), ze = [];
12
- if (fe.isBetween(pe, Le, "millisecond", "[]")) {
13
- const d = fe.utc().diff(pe, "h", !1);
14
- let Q, ne;
2
+ import tt from "moment-timezone";
3
+ import { Search as Mt } from "@element-plus/icons-vue";
4
+ import { LngLatHelper as ut } from "@idm-plugin/geo";
5
+ import * as wt from "echarts";
6
+ import { markRaw as Ct, resolveComponent as gt, openBlock as o, createElementBlock as r, createElementVNode as i, createVNode as vt, withCtx as bt, Fragment as b, renderList as x, createBlock as Pt, toDisplayString as f, createTextVNode as _, normalizeClass as z, createCommentVNode as Ht, normalizeStyle as ct } from "vue";
7
+ import kt from "axios";
8
+ class Dt {
9
+ static pickHourly(t, e) {
10
+ var h, s, v, M, C, S, L, N, I, P, a, n, Q, K, D, T, R, E, A, G, F, O, B, V, U, Z, J, Y, w, k, p, y, H, g, j, et, at, rt, ot, W, st, m, it, u, lt, ht, dt, xt;
11
+ const ft = typeof e == "string" ? X(e) : e, $ = t == null ? void 0 : t.weather, yt = t == null ? void 0 : t.marine, _t = X((s = (h = $ == null ? void 0 : $[0]) == null ? void 0 : h.hourly) == null ? void 0 : s.date).utc(), pt = _t.clone().add((C = (M = (v = $ == null ? void 0 : $[0]) == null ? void 0 : v.hourly) == null ? void 0 : M.time) == null ? void 0 : C.at(0), "h"), St = _t.clone().add((N = (L = (S = $ == null ? void 0 : $[0]) == null ? void 0 : S.hourly) == null ? void 0 : L.time) == null ? void 0 : N.at(-1), "h"), zt = [];
12
+ if (ft.isBetween(pt, St, "millisecond", "[]")) {
13
+ const d = ft.utc().diff(pt, "h", !1);
14
+ let q, nt;
15
15
  if ($)
16
- for (const me of $) {
17
- const c = me.hourly;
18
- Q = {
16
+ for (const mt of $) {
17
+ const c = mt.hourly;
18
+ q = {
19
19
  temp: (I = c.temperature_2m) == null ? void 0 : I.at(d),
20
20
  apparentTemp: (P = c.apparent_temperature) == null ? void 0 : P.at(d),
21
- rh: (H = c.relative_humidity_2m) == null ? void 0 : H.at(d),
22
- dp: (a = c.dew_point_2m) == null ? void 0 : a.at(d),
21
+ rh: (a = c.relative_humidity_2m) == null ? void 0 : a.at(d),
22
+ dp: (n = c.dew_point_2m) == null ? void 0 : n.at(d),
23
23
  precip: {
24
- probability: (r = c.precipitation_probability) == null ? void 0 : r.at(d),
24
+ probability: (Q = c.precipitation_probability) == null ? void 0 : Q.at(d),
25
25
  sum: (K = c.precipitation) == null ? void 0 : K.at(d)
26
26
  },
27
27
  pmsl: (D = c.pressure_msl) == null ? void 0 : D.at(d),
28
- psurf: (R = c.surface_pressure) == null ? void 0 : R.at(d),
29
- code: (A = c.weather_code) == null ? void 0 : A.at(d),
28
+ psurf: (T = c.surface_pressure) == null ? void 0 : T.at(d),
29
+ code: (R = c.weather_code) == null ? void 0 : R.at(d),
30
30
  visibility: this.m2nm((E = c.visibility) == null ? void 0 : E.at(d)),
31
31
  wind: {
32
- speed: (G = c.wind_speed_10m) == null ? void 0 : G.at(d),
33
- kts: (F = c.wind_speed_10m) == null ? void 0 : F.at(d),
34
- degree: (O = c.wind_direction_10m) == null ? void 0 : O.at(d),
35
- bearing: ((B = c.wind_direction_10m) == null ? void 0 : B.at(d)) !== null ? (((V = c.wind_direction_10m) == null ? void 0 : V.at(d)) + 180) % 360 : null,
36
- gusts: (U = c.wind_gusts_10m) == null ? void 0 : U.at(d)
32
+ speed: (A = c.wind_speed_10m) == null ? void 0 : A.at(d),
33
+ kts: (G = c.wind_speed_10m) == null ? void 0 : G.at(d),
34
+ degree: (F = c.wind_direction_10m) == null ? void 0 : F.at(d),
35
+ bearing: ((O = c.wind_direction_10m) == null ? void 0 : O.at(d)) !== null ? (((B = c.wind_direction_10m) == null ? void 0 : B.at(d)) + 180) % 360 : null,
36
+ gusts: (V = c.wind_gusts_10m) == null ? void 0 : V.at(d)
37
37
  },
38
- isDay: (Z = c.is_day) == null ? void 0 : Z.at(d)
38
+ isDay: (U = c.is_day) == null ? void 0 : U.at(d)
39
39
  };
40
- const { name: Ne, url: Ie, bg: Me } = this.parseWeatherCode(Q.code, Q.isDay);
41
- Q.name = Ne, Q.url = Ie, Q.bg = Me, Q.wind.scale = this.beaufort(this.kts2ms(Q.wind.kts)), Q.wind.direction = this.degree2Direction(Q.wind.degree);
40
+ const { name: Lt, url: Nt, bg: It } = this.parseWeatherCode(q.code, q.isDay);
41
+ q.name = Lt, q.url = Nt, q.bg = It, q.wind.scale = this.beaufort(this.kts2ms(q.wind.kts)), q.wind.direction = this.degree2Direction(q.wind.degree);
42
42
  }
43
- if (ye)
44
- for (const me of ye) {
45
- const c = me.hourly;
46
- ne = {
43
+ if (yt)
44
+ for (const mt of yt) {
45
+ const c = mt.hourly;
46
+ nt = {
47
47
  wave: {
48
48
  sig: {
49
- height: (J = c.wave_height) == null ? void 0 : J.at(d),
50
- degree: (Y = c.wave_direction) == null ? void 0 : Y.at(d),
51
- bearing: ((j = c.wave_direction) == null ? void 0 : j.at(d)) !== null ? (((g = c.wave_direction) == null ? void 0 : g.at(d)) + 180) % 360 : null,
49
+ height: (Z = c.wave_height) == null ? void 0 : Z.at(d),
50
+ degree: (J = c.wave_direction) == null ? void 0 : J.at(d),
51
+ bearing: ((Y = c.wave_direction) == null ? void 0 : Y.at(d)) !== null ? (((w = c.wave_direction) == null ? void 0 : w.at(d)) + 180) % 360 : null,
52
52
  period: (k = c.wave_period) == null ? void 0 : k.at(d)
53
53
  },
54
54
  swell: {
55
55
  height: (p = c.swell_wave_height) == null ? void 0 : p.at(d),
56
56
  degree: (y = c.swell_wave_direction) == null ? void 0 : y.at(d),
57
- bearing: ((W = c.swell_wave_direction) == null ? void 0 : W.at(d)) !== null ? (((v = c.swell_wave_direction) == null ? void 0 : v.at(d)) + 180) % 360 : null,
58
- period: (q = c.swell_wave_period) == null ? void 0 : q.at(d),
59
- peakPeriod: (te = c.swell_wave_peak_period) == null ? void 0 : te.at(d)
57
+ bearing: ((H = c.swell_wave_direction) == null ? void 0 : H.at(d)) !== null ? (((g = c.swell_wave_direction) == null ? void 0 : g.at(d)) + 180) % 360 : null,
58
+ period: (j = c.swell_wave_period) == null ? void 0 : j.at(d),
59
+ peakPeriod: (et = c.swell_wave_peak_period) == null ? void 0 : et.at(d)
60
60
  },
61
61
  wd: {
62
- height: (ae = c.wind_wave_height) == null ? void 0 : ae.at(d),
63
- degree: (re = c.wind_wave_direction) == null ? void 0 : re.at(d),
64
- bearing: ((oe = c.wind_wave_direction) == null ? void 0 : oe.at(d)) !== null ? (((T = c.wind_wave_direction) == null ? void 0 : T.at(d)) + 180) % 360 : null,
65
- period: (se = c.wind_wave_period) == null ? void 0 : se.at(d),
62
+ height: (at = c.wind_wave_height) == null ? void 0 : at.at(d),
63
+ degree: (rt = c.wind_wave_direction) == null ? void 0 : rt.at(d),
64
+ bearing: ((ot = c.wind_wave_direction) == null ? void 0 : ot.at(d)) !== null ? (((W = c.wind_wave_direction) == null ? void 0 : W.at(d)) + 180) % 360 : null,
65
+ period: (st = c.wind_wave_period) == null ? void 0 : st.at(d),
66
66
  peakPeriod: (m = c.wind_wave_peak_period) == null ? void 0 : m.at(d)
67
67
  }
68
68
  },
69
69
  current: {
70
- speed: (ie = c.ocean_current_velocity) == null ? void 0 : ie.at(d),
70
+ speed: (it = c.ocean_current_velocity) == null ? void 0 : it.at(d),
71
71
  kts: (u = c.ocean_current_velocity) == null ? void 0 : u.at(d),
72
- degree: (le = c.ocean_current_direction) == null ? void 0 : le.at(d),
73
- bearing: ((he = c.ocean_current_direction) == null ? void 0 : he.at(d)) ?? null
72
+ degree: (lt = c.ocean_current_direction) == null ? void 0 : lt.at(d),
73
+ bearing: ((ht = c.ocean_current_direction) == null ? void 0 : ht.at(d)) ?? null
74
74
  },
75
- sst: (de = c.sea_surface_temperature) == null ? void 0 : de.at(d),
76
- height: (xe = c.sea_level_height_msl) == null ? void 0 : xe.at(d)
77
- }, ne.wave = this.parseWave(ne.wave), ne.current.direction = this.degree2Direction(ne.current.degree);
75
+ sst: (dt = c.sea_surface_temperature) == null ? void 0 : dt.at(d),
76
+ height: (xt = c.sea_level_height_msl) == null ? void 0 : xt.at(d)
77
+ }, nt.wave = this.parseWave(nt.wave), nt.current.direction = this.degree2Direction(nt.current.degree);
78
78
  }
79
- ze.push({
80
- utc: pe.add(d, "h").format(),
81
- weather: { ...Q },
82
- ...ne
79
+ zt.push({
80
+ utc: pt.add(d, "h").format(),
81
+ weather: { ...q },
82
+ ...nt
83
83
  });
84
84
  }
85
- return ze;
85
+ return zt;
86
86
  }
87
- static toLegacy(e) {
87
+ static toLegacy(t) {
88
88
  return {
89
- wind: e.weather.wind,
90
- visibility: e.weather.visibility,
91
- temp: e.weather.temp,
92
- prmsl: e.weather.pmsl,
89
+ wind: t.weather.wind,
90
+ visibility: t.weather.visibility,
91
+ temp: t.weather.temp,
92
+ prmsl: t.weather.pmsl,
93
93
  gusts: {
94
- kts: e.weather.wind.gusts
94
+ kts: t.weather.wind.gusts
95
95
  },
96
- precip: e.weather.precip,
97
- code: e.weather.code,
98
- name: e.weather.name,
99
- url: e.weather.url,
100
- wave: e.wave,
101
- current: e.current,
102
- sst: e.sst,
103
- height: e.height,
104
- utc: e.utc
96
+ precip: t.weather.precip,
97
+ code: t.weather.code,
98
+ name: t.weather.name,
99
+ url: t.weather.url,
100
+ wave: t.wave,
101
+ current: t.current,
102
+ sst: t.sst,
103
+ height: t.height,
104
+ utc: t.utc
105
105
  };
106
106
  }
107
- static pickDaily(e, t) {
108
- var h, s, w, M, C, S, L, N, I, P, H, a, r, K, D, R, A, E, G, F, O, B, V, U, Z, J, Y, j, g, k, p, y, W;
109
- const v = typeof t == "string" ? X(t) : t, q = e == null ? void 0 : e.weather, te = e == null ? void 0 : e.marine, ae = X((w = (s = (h = q == null ? void 0 : q[0]) == null ? void 0 : h.daily) == null ? void 0 : s.time) == null ? void 0 : w.at(0)), re = X((S = (C = (M = q == null ? void 0 : q[0]) == null ? void 0 : M.daily) == null ? void 0 : C.time) == null ? void 0 : S.at(-1)), oe = [];
110
- if (v.isBetween(ae, re, "millisecond", "[]")) {
111
- let T, se;
112
- const m = v.diff(ae, "d", !1);
113
- if (q)
114
- for (const ie of q) {
115
- const u = ie.daily;
116
- T = {
107
+ static pickDaily(t, e) {
108
+ var h, s, v, M, C, S, L, N, I, P, a, n, Q, K, D, T, R, E, A, G, F, O, B, V, U, Z, J, Y, w, k, p, y, H;
109
+ const g = typeof e == "string" ? X(e) : e, j = t == null ? void 0 : t.weather, et = t == null ? void 0 : t.marine, at = X((v = (s = (h = j == null ? void 0 : j[0]) == null ? void 0 : h.daily) == null ? void 0 : s.time) == null ? void 0 : v.at(0)), rt = X((S = (C = (M = j == null ? void 0 : j[0]) == null ? void 0 : M.daily) == null ? void 0 : C.time) == null ? void 0 : S.at(-1)), ot = [];
110
+ if (g.isBetween(at, rt, "millisecond", "[]")) {
111
+ let W, st;
112
+ const m = g.diff(at, "d", !1);
113
+ if (j)
114
+ for (const it of j) {
115
+ const u = it.daily;
116
+ W = {
117
117
  code: (L = u.weather_code) == null ? void 0 : L.at(m),
118
118
  temp: {
119
119
  max: (N = u.temperature_2m_max) == null ? void 0 : N.at(m),
@@ -121,447 +121,447 @@ class Se {
121
121
  mean: (P = u.temperature_2m_mean) == null ? void 0 : P.at(m)
122
122
  },
123
123
  apparentTemp: {
124
- max: (H = u.apparent_temperature_max) == null ? void 0 : H.at(m),
125
- min: (a = u.apparent_temperature_min) == null ? void 0 : a.at(m)
124
+ max: (a = u.apparent_temperature_max) == null ? void 0 : a.at(m),
125
+ min: (n = u.apparent_temperature_min) == null ? void 0 : n.at(m)
126
126
  },
127
127
  precip: {
128
- sum: (r = u.precipitation_sum) == null ? void 0 : r.at(m),
128
+ sum: (Q = u.precipitation_sum) == null ? void 0 : Q.at(m),
129
129
  hours: (K = u.precipitation_hours) == null ? void 0 : K.at(m),
130
130
  probability: (D = u.precipitation_probability_max) == null ? void 0 : D.at(m)
131
131
  },
132
132
  rh: {
133
- max: (R = u.relative_humidity_2m_max) == null ? void 0 : R.at(m),
134
- min: (A = u.relative_humidity_2m_min) == null ? void 0 : A.at(m),
133
+ max: (T = u.relative_humidity_2m_max) == null ? void 0 : T.at(m),
134
+ min: (R = u.relative_humidity_2m_min) == null ? void 0 : R.at(m),
135
135
  mean: (E = u.relative_humidity_2m_mean) == null ? void 0 : E.at(m)
136
136
  },
137
137
  wind: {
138
- speed: (G = u.wind_speed_10m_max) == null ? void 0 : G.at(m),
139
- kts: (F = u.wind_speed_10m_max) == null ? void 0 : F.at(m),
140
- degree: (O = u.wind_direction_10m_dominant) == null ? void 0 : O.at(m),
141
- gusts: (B = u.wind_gusts_10m_max) == null ? void 0 : B.at(m)
138
+ speed: (A = u.wind_speed_10m_max) == null ? void 0 : A.at(m),
139
+ kts: (G = u.wind_speed_10m_max) == null ? void 0 : G.at(m),
140
+ degree: (F = u.wind_direction_10m_dominant) == null ? void 0 : F.at(m),
141
+ gusts: (O = u.wind_gusts_10m_max) == null ? void 0 : O.at(m)
142
142
  }
143
143
  };
144
- const { name: le, url: he, bg: de } = this.parseWeatherCode(T.code, !0);
145
- T.name = le, T.url = he, T.bg = de, T.wind.scale = this.beaufort(this.kts2ms(T.wind.kts)), T.wind.direction = this.degree2Direction(T.wind.degree);
144
+ const { name: lt, url: ht, bg: dt } = this.parseWeatherCode(W.code, !0);
145
+ W.name = lt, W.url = ht, W.bg = dt, W.wind.scale = this.beaufort(this.kts2ms(W.wind.kts)), W.wind.direction = this.degree2Direction(W.wind.degree);
146
146
  }
147
- if (te)
148
- for (const ie of te) {
149
- const u = ie.daily;
150
- se = {
147
+ if (et)
148
+ for (const it of et) {
149
+ const u = it.daily;
150
+ st = {
151
151
  wave: {
152
152
  sig: {
153
- height: (V = u.wave_height_max) == null ? void 0 : V.at(m),
154
- degree: (U = u.wave_direction_dominant) == null ? void 0 : U.at(m),
155
- period: (Z = u.wave_period_max) == null ? void 0 : Z.at(m)
153
+ height: (B = u.wave_height_max) == null ? void 0 : B.at(m),
154
+ degree: (V = u.wave_direction_dominant) == null ? void 0 : V.at(m),
155
+ period: (U = u.wave_period_max) == null ? void 0 : U.at(m)
156
156
  },
157
157
  swell: {
158
- height: (J = u.swell_wave_height_max) == null ? void 0 : J.at(m),
159
- degree: (Y = u.wave_direction_dominant) == null ? void 0 : Y.at(m),
160
- period: (j = u.swell_wave_period_max) == null ? void 0 : j.at(m),
161
- peakPeriod: (g = u.swell_wave_peak_period_max) == null ? void 0 : g.at(m)
158
+ height: (Z = u.swell_wave_height_max) == null ? void 0 : Z.at(m),
159
+ degree: (J = u.wave_direction_dominant) == null ? void 0 : J.at(m),
160
+ period: (Y = u.swell_wave_period_max) == null ? void 0 : Y.at(m),
161
+ peakPeriod: (w = u.swell_wave_peak_period_max) == null ? void 0 : w.at(m)
162
162
  },
163
163
  wd: {
164
164
  height: (k = u.wind_wave_height_max) == null ? void 0 : k.at(m),
165
165
  degree: (p = u.wind_wave_direction_dominant) == null ? void 0 : p.at(m),
166
166
  period: (y = u.wind_wave_period_max) == null ? void 0 : y.at(m),
167
- peakPeriod: (W = u.wind_wave_peak_period_max) == null ? void 0 : W.at(m)
167
+ peakPeriod: (H = u.wind_wave_peak_period_max) == null ? void 0 : H.at(m)
168
168
  }
169
169
  }
170
- }, se.wave = this.parseWave(se.wave);
170
+ }, st.wave = this.parseWave(st.wave);
171
171
  }
172
- oe.push({
173
- utc: ae.add(m, "d").utc().format(),
174
- weather: { ...T },
175
- ...se
172
+ ot.push({
173
+ utc: at.add(m, "d").utc().format(),
174
+ weather: { ...W },
175
+ ...st
176
176
  });
177
177
  }
178
- return oe;
178
+ return ot;
179
179
  }
180
- static parseWave(e) {
181
- return e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e;
180
+ static parseWave(t) {
181
+ return t.sig.direction = this.degree2Direction(t.sig.degree), t.swell.direction = this.degree2Direction(t.swell.degree), t.wd.direction = this.degree2Direction(t.wd.degree), t.sig.scale = this.douglas(t.sig.height), t.swell.scale = this.douglas(t.swell.height), t.wd.scale = this.douglas(t.wd.height), t;
182
182
  }
183
- static parseWeatherCode(e, t) {
184
- const h = this.weatherCode(e);
185
- return (t ? h.day : h.night) || {};
183
+ static parseWeatherCode(t, e) {
184
+ const h = this.weatherCode(t);
185
+ return (e ? h.day : h.night) || {};
186
186
  }
187
- static weatherCode(e) {
188
- const t = {
189
- code: e
187
+ static weatherCode(t) {
188
+ const e = {
189
+ code: t
190
190
  };
191
- switch (e) {
191
+ switch (t) {
192
192
  case 0:
193
- t.day = {
193
+ e.day = {
194
194
  name: "Sunny",
195
195
  url: "https://osshz.idmwx.com/asset/weather/01d.svg",
196
196
  bg: "https://osshz.idmwx.com/asset/weather/bg1.png"
197
- }, t.night = {
197
+ }, e.night = {
198
198
  name: "Clear",
199
199
  url: "https://osshz.idmwx.com/asset/weather/01n.svg",
200
200
  bg: "https://osshz.idmwx.com/asset/weather/bg1.png"
201
201
  };
202
202
  break;
203
203
  case 1:
204
- t.day = {
204
+ e.day = {
205
205
  name: "Mainly Sunny",
206
206
  url: "https://osshz.idmwx.com/asset/weather/01d.svg",
207
207
  bg: "https://osshz.idmwx.com/asset/weather/bg1.png"
208
- }, t.night = {
208
+ }, e.night = {
209
209
  name: "Mainly Clear",
210
210
  url: "https://osshz.idmwx.com/asset/weather/01n.svg",
211
211
  bg: "https://osshz.idmwx.com/asset/weather/bg1.png"
212
212
  };
213
213
  break;
214
214
  case 2:
215
- t.day = {
215
+ e.day = {
216
216
  name: "Partly Cloudy",
217
217
  url: "https://osshz.idmwx.com/asset/weather/02d.svg",
218
218
  bg: "https://osshz.idmwx.com/asset/weather/bg2.png"
219
- }, t.night = {
219
+ }, e.night = {
220
220
  name: "Partly Cloudy",
221
221
  url: "https://osshz.idmwx.com/asset/weather/02n.svg",
222
222
  bg: "https://osshz.idmwx.com/asset/weather/bg2.png"
223
223
  };
224
224
  break;
225
225
  case 3:
226
- t.day = {
226
+ e.day = {
227
227
  name: "Overcast",
228
228
  url: "https://osshz.idmwx.com/asset/weather/04d.svg",
229
229
  bg: "https://osshz.idmwx.com/asset/weather/bg3.png"
230
- }, t.night = {
230
+ }, e.night = {
231
231
  name: "Overcast",
232
232
  url: "https://osshz.idmwx.com/asset/weather/04n.svg",
233
233
  bg: "https://osshz.idmwx.com/asset/weather/bg3.png"
234
234
  };
235
235
  break;
236
236
  case 45:
237
- t.day = {
237
+ e.day = {
238
238
  name: "Foggy",
239
239
  url: "https://osshz.idmwx.com/asset/weather/50d.svg",
240
240
  bg: "https://osshz.idmwx.com/asset/weather/bg4.png"
241
- }, t.night = {
241
+ }, e.night = {
242
242
  name: "Foggy",
243
243
  url: "https://osshz.idmwx.com/asset/weather/50n.svg",
244
244
  bg: "https://osshz.idmwx.com/asset/weather/bg4.png"
245
245
  };
246
246
  break;
247
247
  case 48:
248
- t.day = {
248
+ e.day = {
249
249
  name: "Rime Fog",
250
250
  url: "https://osshz.idmwx.com/asset/weather/50d.svg",
251
251
  bg: "https://osshz.idmwx.com/asset/weather/bg4.png"
252
- }, t.night = {
252
+ }, e.night = {
253
253
  name: "Rime Fog",
254
254
  url: "https://osshz.idmwx.com/asset/weather/50n.svg",
255
255
  bg: "https://osshz.idmwx.com/asset/weather/bg4.png"
256
256
  };
257
257
  break;
258
258
  case 51:
259
- t.day = {
259
+ e.day = {
260
260
  name: "Light Drizzle",
261
261
  url: "https://osshz.idmwx.com/asset/weather/14d.svg",
262
262
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
263
- }, t.night = {
263
+ }, e.night = {
264
264
  name: "Light Drizzle",
265
265
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
266
266
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
267
267
  };
268
268
  break;
269
269
  case 53:
270
- t.day = {
270
+ e.day = {
271
271
  name: "Drizzle",
272
272
  url: "https://osshz.idmwx.com/asset/weather/14d.svg",
273
273
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
274
- }, t.night = {
274
+ }, e.night = {
275
275
  name: "Drizzle",
276
276
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
277
277
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
278
278
  };
279
279
  break;
280
280
  case 55:
281
- t.day = {
281
+ e.day = {
282
282
  name: "Heavy Drizzle",
283
283
  url: "https://osshz.idmwx.com/asset/weather/15d.svg",
284
284
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
285
- }, t.night = {
285
+ }, e.night = {
286
286
  name: "Heavy Drizzle",
287
287
  url: "https://osshz.idmwx.com/asset/weather/15n.svg",
288
288
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
289
289
  };
290
290
  break;
291
291
  case 56:
292
- t.day = {
292
+ e.day = {
293
293
  name: "Light Freezing Drizzle",
294
294
  url: "https://osshz.idmwx.com/asset/weather/14d.svg",
295
295
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
296
- }, t.night = {
296
+ }, e.night = {
297
297
  name: "Light Freezing Drizzle",
298
298
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
299
299
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
300
300
  };
301
301
  break;
302
302
  case 57:
303
- t.day = {
303
+ e.day = {
304
304
  name: "Freezing Drizzle",
305
305
  url: "https://osshz.idmwx.com/asset/weather/14d.svg",
306
306
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
307
- }, t.night = {
307
+ }, e.night = {
308
308
  name: "Freezing Drizzle",
309
309
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
310
310
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
311
311
  };
312
312
  break;
313
313
  case 61:
314
- t.day = {
314
+ e.day = {
315
315
  name: "Light Rain",
316
316
  url: "https://osshz.idmwx.com/asset/weather/16d.svg",
317
317
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
318
- }, t.night = {
318
+ }, e.night = {
319
319
  name: "Light Rain",
320
320
  url: "https://osshz.idmwx.com/asset/weather/10n.svg",
321
321
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
322
322
  };
323
323
  break;
324
324
  case 63:
325
- t.day = {
325
+ e.day = {
326
326
  name: "Rain",
327
327
  url: "https://osshz.idmwx.com/asset/weather/16d.svg",
328
328
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
329
- }, t.night = {
329
+ }, e.night = {
330
330
  name: "Rain",
331
331
  url: "https://osshz.idmwx.com/asset/weather/10n.svg",
332
332
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
333
333
  };
334
334
  break;
335
335
  case 65:
336
- t.day = {
336
+ e.day = {
337
337
  name: "Heavy Rain",
338
338
  url: "https://osshz.idmwx.com/asset/weather/16d.svg",
339
339
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
340
- }, t.night = {
340
+ }, e.night = {
341
341
  name: "Heavy Rain",
342
342
  url: "https://osshz.idmwx.com/asset/weather/10n.svg",
343
343
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
344
344
  };
345
345
  break;
346
346
  case 66:
347
- t.day = {
347
+ e.day = {
348
348
  name: "Light Freezing Rain",
349
349
  url: "https://osshz.idmwx.com/asset/weather/16d.svg",
350
350
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
351
- }, t.night = {
351
+ }, e.night = {
352
352
  name: "Light Freezing Rain",
353
353
  url: "https://osshz.idmwx.com/asset/weather/10n.svg",
354
354
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
355
355
  };
356
356
  break;
357
357
  case 67:
358
- t.day = {
358
+ e.day = {
359
359
  name: "Freezing Rain",
360
360
  url: "https://osshz.idmwx.com/asset/weather/16d.svg",
361
361
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
362
- }, t.night = {
362
+ }, e.night = {
363
363
  name: "Freezing Rain",
364
364
  url: "https://osshz.idmwx.com/asset/weather/10n.svg",
365
365
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
366
366
  };
367
367
  break;
368
368
  case 71:
369
- t.day = {
369
+ e.day = {
370
370
  name: "Light Snow",
371
371
  url: "https://osshz.idmwx.com/asset/weather/17d.svg",
372
372
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
373
- }, t.night = {
373
+ }, e.night = {
374
374
  name: "Light Snow",
375
375
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
376
376
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
377
377
  };
378
378
  break;
379
379
  case 73:
380
- t.day = {
380
+ e.day = {
381
381
  name: "Snow",
382
382
  url: "https://osshz.idmwx.com/asset/weather/17d.svg",
383
383
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
384
- }, t.night = {
384
+ }, e.night = {
385
385
  name: "Snow",
386
386
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
387
387
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
388
388
  };
389
389
  break;
390
390
  case 75:
391
- t.day = {
391
+ e.day = {
392
392
  name: "Heavy Snow",
393
393
  url: "https://osshz.idmwx.com/asset/weather/17d.svg",
394
394
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
395
- }, t.night = {
395
+ }, e.night = {
396
396
  name: "Heavy Snow",
397
397
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
398
398
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
399
399
  };
400
400
  break;
401
401
  case 77:
402
- t.day = {
402
+ e.day = {
403
403
  name: "Snow Grains",
404
404
  url: "https://osshz.idmwx.com/asset/weather/17d.svg",
405
405
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
406
- }, t.night = {
406
+ }, e.night = {
407
407
  name: "Snow Grains",
408
408
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
409
409
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
410
410
  };
411
411
  break;
412
412
  case 80:
413
- t.day = {
413
+ e.day = {
414
414
  name: "Light Showers",
415
415
  url: "https://osshz.idmwx.com/asset/weather/09d.svg",
416
416
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
417
- }, t.night = {
417
+ }, e.night = {
418
418
  name: "Light Showers",
419
419
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
420
420
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
421
421
  };
422
422
  break;
423
423
  case 81:
424
- t.day = {
424
+ e.day = {
425
425
  name: "Showers",
426
426
  url: "https://osshz.idmwx.com/asset/weather/09d.svg",
427
427
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
428
- }, t.night = {
428
+ }, e.night = {
429
429
  name: "Showers",
430
430
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
431
431
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
432
432
  };
433
433
  break;
434
434
  case 82:
435
- t.day = {
435
+ e.day = {
436
436
  name: "Heavy Showers",
437
437
  url: "https://osshz.idmwx.com/asset/weather/09d.svg",
438
438
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
439
- }, t.night = {
439
+ }, e.night = {
440
440
  name: "Heavy Showers",
441
441
  url: "https://osshz.idmwx.com/asset/weather/09n.svg",
442
442
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
443
443
  };
444
444
  break;
445
445
  case 85:
446
- t.day = {
446
+ e.day = {
447
447
  name: "Light Snow Showers",
448
448
  url: "https://osshz.idmwx.com/asset/weather/13d.svg",
449
449
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
450
- }, t.night = {
450
+ }, e.night = {
451
451
  name: "Light Snow Showers",
452
452
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
453
453
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
454
454
  };
455
455
  break;
456
456
  case 86:
457
- t.day = {
457
+ e.day = {
458
458
  name: "Snow Showers",
459
459
  url: "https://osshz.idmwx.com/asset/weather/13d.svg",
460
460
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
461
- }, t.night = {
461
+ }, e.night = {
462
462
  name: "Snow Showers",
463
463
  url: "https://osshz.idmwx.com/asset/weather/13n.svg",
464
464
  bg: "https://osshz.idmwx.com/asset/weather/bg6.png"
465
465
  };
466
466
  break;
467
467
  case 95:
468
- t.day = {
468
+ e.day = {
469
469
  name: "Thunderstorm",
470
470
  url: "https://osshz.idmwx.com/asset/weather/11d.svg",
471
471
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
472
- }, t.night = {
472
+ }, e.night = {
473
473
  name: "Thunderstorm",
474
474
  url: "https://osshz.idmwx.com/asset/weather/11n.svg",
475
475
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
476
476
  };
477
477
  break;
478
478
  case 96:
479
- t.day = {
479
+ e.day = {
480
480
  name: "Light Thunderstorms With Hail",
481
481
  url: "https://osshz.idmwx.com/asset/weather/11d.svg",
482
482
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
483
- }, t.night = {
483
+ }, e.night = {
484
484
  name: "Light Thunderstorms With Hail",
485
485
  url: "https://osshz.idmwx.com/asset/weather/11n.svg",
486
486
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
487
487
  };
488
488
  break;
489
489
  case 99:
490
- t.day = {
490
+ e.day = {
491
491
  name: "Thunderstorms With Hail",
492
492
  url: "https://osshz.idmwx.com/asset/weather/11d.svg",
493
493
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
494
- }, t.night = {
494
+ }, e.night = {
495
495
  name: "Thunderstorms With Hail",
496
496
  url: "https://osshz.idmwx.com/asset/weather/11n.svg",
497
497
  bg: "https://osshz.idmwx.com/asset/weather/bg5.png"
498
498
  };
499
499
  break;
500
500
  }
501
- return t;
501
+ return e;
502
502
  }
503
- static kts2ms(e) {
504
- return isNaN(e) || e === null ? e : Math.round(e * 1852 / 3600 * 1e4) / 1e4;
503
+ static kts2ms(t) {
504
+ return isNaN(t) || t === null ? t : Math.round(t * 1852 / 3600 * 1e4) / 1e4;
505
505
  }
506
- static kts2kmh(e) {
507
- return isNaN(e) || e === null ? e : e * 1.852;
506
+ static kts2kmh(t) {
507
+ return isNaN(t) || t === null ? t : t * 1.852;
508
508
  }
509
- static m2nm(e) {
510
- return isNaN(e) || e === null ? e : Math.round(e / 1e3 / 1.852 * 1e4) / 1e4;
509
+ static m2nm(t) {
510
+ return isNaN(t) || t === null ? t : Math.round(t / 1e3 / 1.852 * 1e4) / 1e4;
511
511
  }
512
- static kmh2kts(e) {
513
- return isNaN(e) || e === null ? e : this.ms2kts(e * 1e3 / 3600);
512
+ static kmh2kts(t) {
513
+ return isNaN(t) || t === null ? t : this.ms2kts(t * 1e3 / 3600);
514
514
  }
515
- static ms2kts(e) {
516
- return isNaN(e) || e === null ? e : Math.round(e * 3600 / 1852 * 1e4) / 1e4;
515
+ static ms2kts(t) {
516
+ return isNaN(t) || t === null ? t : Math.round(t * 3600 / 1852 * 1e4) / 1e4;
517
517
  }
518
518
  /**
519
519
  * 角度转为弧度
520
520
  * @param degree
521
521
  */
522
- static degree2Radian(e) {
523
- if (isNaN(e) || e === null)
524
- return e;
525
- let t = e % 360 / 360 * 2 * Math.PI;
526
- return t = t < 0 ? t + 2 * Math.PI : t, t;
522
+ static degree2Radian(t) {
523
+ if (isNaN(t) || t === null)
524
+ return t;
525
+ let e = t % 360 / 360 * 2 * Math.PI;
526
+ return e = e < 0 ? e + 2 * Math.PI : e, e;
527
527
  }
528
528
  /**
529
529
  * 将方位角转换为方向
530
530
  * @param degree 角度[-360,360]
531
531
  * @return {string}
532
532
  */
533
- static degree2Direction(e) {
534
- const t = this.degree2Radian(e);
535
- if (isNaN(t) || t === null)
533
+ static degree2Direction(t) {
534
+ const e = this.degree2Radian(t);
535
+ if (isNaN(e) || e === null)
536
536
  return null;
537
537
  let h = "N/A";
538
538
  const s = Math.PI / 16;
539
- return t < s ? h = "N" : t >= s && t < 3 * s ? h = "NNE" : t >= 3 * s && t < 5 * s ? h = "NE" : t >= 5 * s && t < 7 * s ? h = "ENE" : t >= 7 * s && t < 9 * s ? h = "E" : t >= 9 * s && t < 11 * s ? h = "ESE" : t >= 11 * s && t < 13 * s ? h = "SE" : t >= 13 * s && t < 15 * s ? h = "SSE" : t >= 15 * s && t < 17 * s ? h = "S" : t >= 17 * s && t < 19 * s ? h = "SSW" : t >= 19 * s && t < 21 * s ? h = "SW" : t >= 21 * s && t < 23 * s ? h = "WSW" : t >= 23 * s && t < 25 * s ? h = "W" : t >= 25 * s && t < 27 * s ? h = "WNW" : t >= 27 * s && t < 29 * s ? h = "NW" : t >= 29 * s && t < 31 * s ? h = "NNW" : t >= 31 * s && t < 32 * s && (h = "N"), h;
539
+ return e < s ? h = "N" : e >= s && e < 3 * s ? h = "NNE" : e >= 3 * s && e < 5 * s ? h = "NE" : e >= 5 * s && e < 7 * s ? h = "ENE" : e >= 7 * s && e < 9 * s ? h = "E" : e >= 9 * s && e < 11 * s ? h = "ESE" : e >= 11 * s && e < 13 * s ? h = "SE" : e >= 13 * s && e < 15 * s ? h = "SSE" : e >= 15 * s && e < 17 * s ? h = "S" : e >= 17 * s && e < 19 * s ? h = "SSW" : e >= 19 * s && e < 21 * s ? h = "SW" : e >= 21 * s && e < 23 * s ? h = "WSW" : e >= 23 * s && e < 25 * s ? h = "W" : e >= 25 * s && e < 27 * s ? h = "WNW" : e >= 27 * s && e < 29 * s ? h = "NW" : e >= 29 * s && e < 31 * s ? h = "NNW" : e >= 31 * s && e < 32 * s && (h = "N"), h;
540
540
  }
541
541
  /**
542
542
  * 计算风力蒲福等级
543
543
  * @param speed m/s
544
544
  * @returns {number}
545
545
  */
546
- static beaufort(e) {
547
- let t = 0;
548
- return isNaN(e) || (e = Math.round(e * 10) / 10, e <= 0.2 ? t = 0 : e <= 1.5 ? t = 1 : e <= 3.3 ? t = 2 : e <= 5.4 ? t = 3 : e <= 7.9 ? t = 4 : e <= 10.7 ? t = 5 : e <= 13.8 ? t = 6 : e <= 17.1 ? t = 7 : e <= 20.7 ? t = 8 : e <= 22.4 ? t = 9 : e <= 28.4 ? t = 10 : e <= 32.6 ? t = 11 : e > 32.6 && (t = 12)), t;
546
+ static beaufort(t) {
547
+ let e = 0;
548
+ return isNaN(t) || (t = Math.round(t * 10) / 10, t <= 0.2 ? e = 0 : t <= 1.5 ? e = 1 : t <= 3.3 ? e = 2 : t <= 5.4 ? e = 3 : t <= 7.9 ? e = 4 : t <= 10.7 ? e = 5 : t <= 13.8 ? e = 6 : t <= 17.1 ? e = 7 : t <= 20.7 ? e = 8 : t <= 22.4 ? e = 9 : t <= 28.4 ? e = 10 : t <= 32.6 ? e = 11 : t > 32.6 && (e = 12)), e;
549
549
  }
550
550
  /**
551
551
  * 计算海浪等级
552
552
  * @param height 高度 m
553
553
  */
554
- static douglas(e) {
555
- let t = "Calm";
556
- return isNaN(e) || e <= 0.1 ? t = "Calm" : e <= 0.5 ? t = "Smooth" : e <= 1.25 ? t = "Slight" : e <= 2.5 ? t = "Moderate" : e <= 4 ? t = "Rough" : e <= 6 ? t = "VeryRough" : e <= 9 ? t = "High" : e <= 14 ? t = "VeryHigh" : t = "Precipitous", t;
554
+ static douglas(t) {
555
+ let e = "Calm";
556
+ return isNaN(t) || t <= 0.1 ? e = "Calm" : t <= 0.5 ? e = "Smooth" : t <= 1.25 ? e = "Slight" : t <= 2.5 ? e = "Moderate" : t <= 4 ? e = "Rough" : t <= 6 ? e = "VeryRough" : t <= 9 ? e = "High" : t <= 14 ? e = "VeryHigh" : e = "Precipitous", e;
557
557
  }
558
558
  }
559
- const We = (l, e) => {
560
- const t = l.__vccOpts || l;
561
- for (const [h, s] of e)
562
- t[h] = s;
563
- return t;
564
- }, Te = {
559
+ const Wt = (l, t) => {
560
+ const e = l.__vccOpts || l;
561
+ for (const [h, s] of t)
562
+ e[h] = s;
563
+ return e;
564
+ }, Tt = {
565
565
  name: "SpotReport",
566
566
  props: {
567
567
  token: {
@@ -576,7 +576,7 @@ const We = (l, e) => {
576
576
  type: Number,
577
577
  default: 8
578
578
  },
579
- report: {
579
+ point: {
580
580
  type: Object,
581
581
  default: () => ({})
582
582
  }
@@ -586,15 +586,14 @@ const We = (l, e) => {
586
586
  return {
587
587
  placeholder: "search for port name or coordinates",
588
588
  searchName: void 0,
589
- rawSearchIcon: Pe(Ce),
589
+ rawSearchIcon: Ct(Mt),
590
590
  positionOffset: void 0,
591
591
  positionGmt: void 0,
592
592
  issuedDate: void 0,
593
593
  meteoData: {},
594
- a: void 0,
595
594
  positionList: [],
596
595
  position: void 0,
597
- loading: !0,
596
+ loading: !1,
598
597
  activeIndex: void 0,
599
598
  tableData: {},
600
599
  pickedDate: void 0,
@@ -606,7 +605,7 @@ const We = (l, e) => {
606
605
  computed: {
607
606
  computeHourL() {
608
607
  return function(l) {
609
- return l ? `${ee(l).tz(this.positionGmt).format("HH")}` : "-";
608
+ return l ? `${tt(l).tz(this.positionGmt).format("HH")}` : "-";
610
609
  };
611
610
  },
612
611
  computeHourZ() {
@@ -616,41 +615,43 @@ const We = (l, e) => {
616
615
  },
617
616
  computeWeek() {
618
617
  return function(l) {
619
- return l ? `${ee(l).tz(this.positionGmt).format("dddd")}` : "-";
618
+ return l ? `${tt(l).tz(this.positionGmt).format("dddd")}` : "-";
620
619
  };
621
620
  },
622
621
  computeMMMDD() {
623
622
  return function(l) {
624
- return l ? `${ee(l).tz(this.positionGmt).format("MMM-DD")}` : "-";
623
+ return l ? `${tt(l).tz(this.positionGmt).format("MMM-DD")}` : "-";
625
624
  };
626
625
  },
627
626
  computeLat() {
628
- return function(l, e = 4) {
629
- return ue.lat2pretty(l, e).pretty;
627
+ return function(l, t = 4) {
628
+ return ut.lat2pretty(l, t).pretty;
630
629
  };
631
630
  },
632
631
  computeLng() {
633
- return function(l, e = 4) {
634
- return ue.lng2pretty(l, e).pretty;
632
+ return function(l, t = 4) {
633
+ return ut.lng2pretty(l, t).pretty;
635
634
  };
636
635
  },
637
636
  roundPrecision() {
638
- return function(l, e = 4) {
639
- return isNaN(l) ? "-" : ue.roundPrecision(l, e);
637
+ return function(l, t = 4) {
638
+ return isNaN(l) ? "-" : ut.roundPrecision(l, t);
640
639
  };
641
640
  }
642
641
  },
643
642
  watch: {
644
- "report.version": {
643
+ point: {
645
644
  handler() {
646
- var l, e, t;
647
- this.report && (this.meteoData = this.report, this.position = {
648
- id: this.report.portId,
649
- lat: (l = this.report) == null ? void 0 : l.lat,
650
- lng: (e = this.report) == null ? void 0 : e.lng,
651
- name: ((t = this.report) == null ? void 0 : t.searchName) || this.computeLat(this.report.lat) + "," + this.computeLng(this.report.lng)
652
- }, this.handleRender());
653
- }
645
+ var l, t;
646
+ this.point && (this.position = {
647
+ // id: this.report.portId,
648
+ lat: (l = this.point) == null ? void 0 : l.lat,
649
+ lng: (t = this.point) == null ? void 0 : t.lng,
650
+ name: this.computeLat(this.point.lat) + "," + this.computeLng(this.point.lng)
651
+ }, this.handleFetchMeteo());
652
+ },
653
+ deep: !0,
654
+ immediate: !0
654
655
  }
655
656
  },
656
657
  methods: {
@@ -660,14 +661,14 @@ const We = (l, e) => {
660
661
  });
661
662
  },
662
663
  initInfo() {
663
- var l, e, t, h;
664
- this.loading = !1, this.positionGmt = (e = (l = this.meteoData.weather) == null ? void 0 : l[0]) == null ? void 0 : e.timezone, this.positionOffset = (h = (t = this.meteoData.weather) == null ? void 0 : t[0]) == null ? void 0 : h.offset, this.issuedDate = X(this.ts).utc().format("MMM-DD/HHmm[Z], YYYY"), this.activeIndex = ee(this.ts).tz(this.positionGmt).hour(), this.pickedDate = ee(this.ts).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.collectList = JSON.parse(localStorage.getItem("idmCollectList") || "[]"), this.positionList = JSON.parse(JSON.stringify(this.collectList)), this.isCollected = this.collectList.some((s) => {
665
- var w;
666
- return s.name === ((w = this.position) == null ? void 0 : w.name);
664
+ var l, t, e, h;
665
+ this.loading = !1, this.positionGmt = (t = (l = this.meteoData.weather) == null ? void 0 : l[0]) == null ? void 0 : t.timezone, this.positionOffset = (h = (e = this.meteoData.weather) == null ? void 0 : e[0]) == null ? void 0 : h.offset, this.issuedDate = X(this.ts).utc().format("MMM-DD/HHmm[Z], YYYY"), this.activeIndex = tt(this.ts).tz(this.positionGmt).hour(), this.pickedDate = tt(this.ts).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.collectList = JSON.parse(localStorage.getItem("idmCollectList") || "[]"), this.positionList = JSON.parse(JSON.stringify(this.collectList)), this.isCollected = this.collectList.some((s) => {
666
+ var v;
667
+ return s.name === ((v = this.position) == null ? void 0 : v.name);
667
668
  });
668
669
  },
669
670
  initTableData() {
670
- var l, e, t, h, s, w, M, C, S, L, N, I, P, H, a, r, K, D, R, A, E, G, F, O, B, V, U, Z, J, Y, j, g, k, p;
671
+ var l, t, e, h, s, v, M, C, S, L, N, I, P, a, n, Q, K, D, T, R, E, A, G, F, O, B, V, U, Z, J, Y, w, k, p;
671
672
  this.tableData = {
672
673
  hours: [],
673
674
  utcHours: [],
@@ -695,22 +696,22 @@ const We = (l, e) => {
695
696
  seaTemp: []
696
697
  };
697
698
  for (let y = 0; y < 24; y++) {
698
- const W = X(this.pickedDate).clone().add(y, "h").format();
699
- this.tableData.hours.push(W);
700
- const v = ((l = Se.pickHourly(this.meteoData, W)) == null ? void 0 : l[0]) || {};
701
- this.tableData.weatherUrls.push((e = v.weather) == null ? void 0 : e.url), this.tableData.weatherNames.push(((t = v.weather) == null ? void 0 : t.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((h = v.weather) == null ? void 0 : h.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((w = (s = v.weather) == null ? void 0 : s.precip) == null ? void 0 : w.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((C = (M = v.weather) == null ? void 0 : M.precip) == null ? void 0 : C.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((S = v.weather) == null ? void 0 : S.visibility, 0) ?? "-"), this.tableData.humidity.push(this.roundPrecision((L = v.weather) == null ? void 0 : L.rh, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((I = (N = v.weather) == null ? void 0 : N.wind) == null ? void 0 : I.kts, 1)), this.tableData.windDir.push((H = (P = v.weather) == null ? void 0 : P.wind) == null ? void 0 : H.bearing), this.tableData.windGust.push(this.roundPrecision((r = (a = v.weather) == null ? void 0 : a.wind) == null ? void 0 : r.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (K = v.wave) == null ? void 0 : K.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((A = (R = v.wave) == null ? void 0 : R.sig) == null ? void 0 : A.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (E = v.wave) == null ? void 0 : E.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((O = (F = v.wave) == null ? void 0 : F.wd) == null ? void 0 : O.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((V = (B = v.wave) == null ? void 0 : B.wd) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((Z = (U = v.wave) == null ? void 0 : U.swell) == null ? void 0 : Z.height, 1) ?? "-"), this.tableData.swellDir.push((Y = (J = v.wave) == null ? void 0 : J.swell) == null ? void 0 : Y.bearing), this.tableData.swellPeriod.push(this.roundPrecision((g = (j = v.wave) == null ? void 0 : j.swell) == null ? void 0 : g.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((k = v.current) == null ? void 0 : k.speed, 1) ?? "-"), this.tableData.currentDir.push((p = v.current) == null ? void 0 : p.bearing), this.tableData.seaLevel.push(this.roundPrecision(v.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(v.sst, 0) ?? "-");
699
+ const H = X(this.pickedDate).clone().add(y, "h").format();
700
+ this.tableData.hours.push(H);
701
+ const g = ((l = Dt.pickHourly(this.meteoData, H)) == null ? void 0 : l[0]) || {};
702
+ this.tableData.weatherUrls.push((t = g.weather) == null ? void 0 : t.url), this.tableData.weatherNames.push(((e = g.weather) == null ? void 0 : e.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((h = g.weather) == null ? void 0 : h.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((v = (s = g.weather) == null ? void 0 : s.precip) == null ? void 0 : v.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((C = (M = g.weather) == null ? void 0 : M.precip) == null ? void 0 : C.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((S = g.weather) == null ? void 0 : S.visibility, 0) ?? "-"), this.tableData.humidity.push(this.roundPrecision((L = g.weather) == null ? void 0 : L.rh, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((I = (N = g.weather) == null ? void 0 : N.wind) == null ? void 0 : I.kts, 1)), this.tableData.windDir.push((a = (P = g.weather) == null ? void 0 : P.wind) == null ? void 0 : a.bearing), this.tableData.windGust.push(this.roundPrecision((Q = (n = g.weather) == null ? void 0 : n.wind) == null ? void 0 : Q.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (K = g.wave) == null ? void 0 : K.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((R = (T = g.wave) == null ? void 0 : T.sig) == null ? void 0 : R.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((A = (E = g.wave) == null ? void 0 : E.wd) == null ? void 0 : A.height, 1) ?? "-"), this.tableData.windwaveDir.push((F = (G = g.wave) == null ? void 0 : G.wd) == null ? void 0 : F.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((B = (O = g.wave) == null ? void 0 : O.wd) == null ? void 0 : B.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((U = (V = g.wave) == null ? void 0 : V.swell) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.swellDir.push((J = (Z = g.wave) == null ? void 0 : Z.swell) == null ? void 0 : J.bearing), this.tableData.swellPeriod.push(this.roundPrecision((w = (Y = g.wave) == null ? void 0 : Y.swell) == null ? void 0 : w.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((k = g.current) == null ? void 0 : k.speed, 1) ?? "-"), this.tableData.currentDir.push((p = g.current) == null ? void 0 : p.bearing), this.tableData.seaLevel.push(this.roundPrecision(g.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(g.sst, 0) ?? "-");
702
703
  }
703
704
  },
704
705
  initEchart() {
705
- var R, A, E, G, F, O, B, V, U, Z, J, Y, j;
706
- const l = [], e = [], t = [], h = [], s = [], w = [], M = [], C = [], S = [], L = [], N = {};
707
- for (let g = 0; g < 7; g++) {
708
- const k = X(this.pickedDate).clone().add(g, "d");
709
- l.push(ee(k).tz(this.positionGmt).format("yyyy-MM-DD")), e.push(this.computeMMMDD(k)), t.push(g === 0 ? "Today" : this.computeWeek(k));
710
- const p = ((R = Se.pickDaily(this.meteoData, k)) == null ? void 0 : R[0]) || {};
711
- h.push(this.roundPrecision((E = (A = p.weather) == null ? void 0 : A.temp) == null ? void 0 : E.min, 0)), s.push(this.roundPrecision((F = (G = p.weather) == null ? void 0 : G.temp) == null ? void 0 : F.max, 0)), C.push(this.roundPrecision((B = (O = p.weather) == null ? void 0 : O.wind) == null ? void 0 : B.kts, 1) ?? "- kts"), L.push(this.roundPrecision((U = (V = p.weather) == null ? void 0 : V.precip) == null ? void 0 : U.sum, 0) ?? "- mm"), w.push({ symbol: "image://" + ((Z = p.weather) == null ? void 0 : Z.url) }), M.push((J = p.weather) == null ? void 0 : J.name), S.push((j = (Y = p.weather) == null ? void 0 : Y.wind) == null ? void 0 : j.degree);
706
+ var T, R, E, A, G, F, O, B, V, U, Z, J, Y;
707
+ const l = [], t = [], e = [], h = [], s = [], v = [], M = [], C = [], S = [], L = [], N = {};
708
+ for (let w = 0; w < 7; w++) {
709
+ const k = X(this.pickedDate).clone().add(w, "d");
710
+ l.push(tt(k).tz(this.positionGmt).format("yyyy-MM-DD")), t.push(this.computeMMMDD(k)), e.push(w === 0 ? "Today" : this.computeWeek(k));
711
+ const p = ((T = Dt.pickDaily(this.meteoData, k)) == null ? void 0 : T[0]) || {};
712
+ h.push(this.roundPrecision((E = (R = p.weather) == null ? void 0 : R.temp) == null ? void 0 : E.min, 0)), s.push(this.roundPrecision((G = (A = p.weather) == null ? void 0 : A.temp) == null ? void 0 : G.max, 0)), C.push(this.roundPrecision((O = (F = p.weather) == null ? void 0 : F.wind) == null ? void 0 : O.kts, 1) ?? "- kts"), L.push(this.roundPrecision((V = (B = p.weather) == null ? void 0 : B.precip) == null ? void 0 : V.sum, 0) ?? "- mm"), v.push({ symbol: "image://" + ((U = p.weather) == null ? void 0 : U.url) }), M.push((Z = p.weather) == null ? void 0 : Z.name), S.push((Y = (J = p.weather) == null ? void 0 : J.wind) == null ? void 0 : Y.degree);
712
713
  }
713
- const I = Math.max(...s.filter((g) => typeof g == "number" && !isNaN(g))) - Math.min(...h.filter((g) => typeof g == "number" && !isNaN(g))), P = Math.min(...h.filter((g) => typeof g == "number" && !isNaN(g))) - 1.5 * I, H = Math.max(...s.filter((g) => typeof g == "number" && !isNaN(g))) + 2 * I, a = 4 + 0.5 / l.length * 92 + "%", r = "data:image/svg+xml;base64," + window.btoa(
714
+ const I = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) - Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))), P = Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))) - 1.5 * I, a = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) + 2 * I, n = 4 + 0.5 / l.length * 92 + "%", Q = "data:image/svg+xml;base64," + window.btoa(
714
715
  unescape(
715
716
  encodeURIComponent(
716
717
  '<svg t="1740385441519" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10951" width="200" height="200"><path d="M512 804.83593751A276.87183211 276.87183211 0 0 1 235.12816789 527.9641054Q235.12816789 375.21005376 512 13.82031251q276.87183211 361.30792288 276.87183211 514.14379289a276.87183211 276.87183211 0 0 1-276.87183211 276.87183211zM294.4461577 527.9641054a217.47202472 217.47202472 0 0 0 217.5538423 217.55384231 19.79993605 19.79993605 0 1 0 0-39.51805453 177.9539702 177.9539702 0 0 1-177.9539702-178.03578778 19.79993605 19.79993605 0 0 0-39.5998721 0z" fill="#0c73a8" p-id="10952"></path></svg>'
@@ -725,21 +726,21 @@ const We = (l, e) => {
725
726
  ), D = new Image(64, 64);
726
727
  D.src = K, D.onload = () => {
727
728
  for (let p = 0; p < 7; p++) {
728
- const y = document.createElement("canvas"), W = y.getContext("2d");
729
+ const y = document.createElement("canvas"), H = y.getContext("2d");
729
730
  y.width = D.width, y.height = D.height;
730
- const q = S[p] * (Math.PI / 180);
731
- W.translate(y.width / 2, y.height / 2), W.rotate(q), W.translate(-D.width / 2, -D.height / 2), W.drawImage(D, 0, 0, 64, 64);
732
- const te = y.toDataURL();
731
+ const j = S[p] * (Math.PI / 180);
732
+ H.translate(y.width / 2, y.height / 2), H.rotate(j), H.translate(-D.width / 2, -D.height / 2), H.drawImage(D, 0, 0, 64, 64);
733
+ const et = y.toDataURL();
733
734
  N[`WindIcon${p}`] = {
734
735
  height: 12,
735
736
  width: 12,
736
737
  align: "left",
737
738
  backgroundColor: {
738
- image: te
739
+ image: et
739
740
  }
740
741
  };
741
742
  }
742
- const g = ke.init(document.getElementById("weather-chart")), k = {
743
+ const w = wt.init(document.getElementById("weather-chart")), k = {
743
744
  grid: {
744
745
  bottom: 0,
745
746
  top: 0,
@@ -768,8 +769,8 @@ const We = (l, e) => {
768
769
  },
769
770
  singleAxis: [
770
771
  {
771
- left: a,
772
- right: a,
772
+ left: n,
773
+ right: n,
773
774
  type: "category",
774
775
  show: !1,
775
776
  axisLine: {
@@ -794,8 +795,8 @@ const We = (l, e) => {
794
795
  height: "2%"
795
796
  },
796
797
  {
797
- left: a,
798
- right: a,
798
+ left: n,
799
+ right: n,
799
800
  type: "category",
800
801
  show: !1,
801
802
  axisLine: {
@@ -820,8 +821,8 @@ const We = (l, e) => {
820
821
  height: "2%"
821
822
  },
822
823
  {
823
- left: a,
824
- right: a,
824
+ left: n,
825
+ right: n,
825
826
  type: "category",
826
827
  show: !1,
827
828
  axisLine: {
@@ -846,8 +847,8 @@ const We = (l, e) => {
846
847
  height: "2%"
847
848
  },
848
849
  {
849
- left: a,
850
- right: a,
850
+ left: n,
851
+ right: n,
851
852
  type: "category",
852
853
  show: !1,
853
854
  axisLine: {
@@ -872,8 +873,8 @@ const We = (l, e) => {
872
873
  height: "2%"
873
874
  },
874
875
  {
875
- left: a,
876
- right: a,
876
+ left: n,
877
+ right: n,
877
878
  type: "category",
878
879
  show: !1,
879
880
  axisLine: {
@@ -903,7 +904,7 @@ const We = (l, e) => {
903
904
  name: "温度(℃)",
904
905
  show: !1,
905
906
  min: P,
906
- max: H,
907
+ max: a,
907
908
  axisLabel: {
908
909
  formatter: "{value} °C"
909
910
  }
@@ -913,7 +914,7 @@ const We = (l, e) => {
913
914
  singleAxisIndex: 0,
914
915
  coordinateSystem: "singleAxis",
915
916
  type: "scatter",
916
- data: t,
917
+ data: e,
917
918
  label: {
918
919
  show: !0,
919
920
  color: "#fff",
@@ -926,7 +927,7 @@ const We = (l, e) => {
926
927
  singleAxisIndex: 1,
927
928
  coordinateSystem: "singleAxis",
928
929
  type: "scatter",
929
- data: e,
930
+ data: t,
930
931
  label: {
931
932
  show: !0,
932
933
  color: "#fff",
@@ -939,7 +940,7 @@ const We = (l, e) => {
939
940
  singleAxisIndex: 2,
940
941
  coordinateSystem: "singleAxis",
941
942
  type: "scatter",
942
- data: w,
943
+ data: v,
943
944
  symbolSize: 36
944
945
  },
945
946
  {
@@ -1026,7 +1027,7 @@ const We = (l, e) => {
1026
1027
  width: 16,
1027
1028
  align: "left",
1028
1029
  backgroundColor: {
1029
- image: r
1030
+ image: Q
1030
1031
  }
1031
1032
  },
1032
1033
  title: {
@@ -1042,9 +1043,10 @@ const We = (l, e) => {
1042
1043
  }
1043
1044
  ]
1044
1045
  };
1045
- g.setOption(k), g.on("click", (p) => {
1046
+ w.setOption(k), w.on("click", (p) => {
1047
+ debugger;
1046
1048
  const y = p.dataIndex;
1047
- this.pickedDate = ee(l[y]).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = y === 0 ? "Today" : this.computeWeek(this.pickedDate), this.activeIndex = y === 0 ? ee(this.ts).tz(this.positionGmt).hour() : void 0, this.initTableData(), k.series[3].markArea = {
1049
+ this.pickedDate = tt(l[y]).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = y === 0 ? "Today" : this.computeWeek(this.pickedDate), this.activeIndex = y === 0 ? tt(this.ts).tz(this.positionGmt).hour() : void 0, this.initTableData(), k.series[3].markArea = {
1048
1050
  itemStyle: {
1049
1051
  color: "rgb(71,143,206)"
1050
1052
  },
@@ -1058,7 +1060,7 @@ const We = (l, e) => {
1058
1060
  }
1059
1061
  ]
1060
1062
  ]
1061
- }, g.setOption(k);
1063
+ }, w.setOption(k);
1062
1064
  });
1063
1065
  };
1064
1066
  },
@@ -1067,74 +1069,76 @@ const We = (l, e) => {
1067
1069
  },
1068
1070
  async fetchSuggestPosition(l) {
1069
1071
  var h;
1070
- const e = l.replaceAll(",", ",");
1071
- if (!e)
1072
+ const t = l.replaceAll(",", ",");
1073
+ if (!t)
1072
1074
  return this.positionList = this.collectList, !1;
1073
- const t = await De.get(`https://cbe.idmwx.com/api/arc/ports/suggest?n=${e}`, {
1075
+ const e = await kt.get(`https://cbe.idmwx.com/api/arc/ports/suggest?n=${t}`, {
1074
1076
  headers: {
1075
1077
  Authorization: this.token
1076
1078
  }
1077
1079
  });
1078
- (t == null ? void 0 : t.data.code) === 0 && (this.positionList = (h = t == null ? void 0 : t.data.data) == null ? void 0 : h.map((s) => (s.name = s.id ? s.name : this.computeLat(s.lat) + ", " + this.computeLng(s.lng), s)));
1080
+ (e == null ? void 0 : e.data.code) === 0 && (this.positionList = (h = e == null ? void 0 : e.data.data) == null ? void 0 : h.map((s) => (s.name = s.id ? s.name : this.computeLat(s.lat) + ", " + this.computeLng(s.lng), s)));
1081
+ },
1082
+ handleSearch() {
1083
+ var l, t, e;
1084
+ this.searchName && (this.handleClear(), this.position = {
1085
+ portId: (l = this.positionList.find((h) => h.name === this.searchName)) == null ? void 0 : l.id,
1086
+ lat: (t = this.positionList.find((h) => h.name === this.searchName)) == null ? void 0 : t.lat,
1087
+ lng: (e = this.positionList.find((h) => h.name === this.searchName)) == null ? void 0 : e.lng,
1088
+ name: this.searchName
1089
+ }, this.$emit("url", this.position), this.handleFetchMeteo());
1079
1090
  },
1080
1091
  async handleFetchMeteo() {
1081
- var t, h, s;
1082
- if (!this.searchName)
1092
+ if (!this.token)
1083
1093
  return !1;
1084
- this.position = {
1085
- portId: (t = this.positionList.find((w) => w.name === this.searchName)) == null ? void 0 : t.id,
1086
- lat: (h = this.positionList.find((w) => w.name === this.searchName)) == null ? void 0 : h.lat,
1087
- lng: (s = this.positionList.find((w) => w.name === this.searchName)) == null ? void 0 : s.lng,
1088
- name: this.searchName
1089
- }, this.$emit("url", this.position), this.handleClear();
1094
+ this.loading = !0;
1090
1095
  const l = {
1091
1096
  lat: this.position.lat,
1092
1097
  lng: this.position.lng,
1093
- // datetime: this.ts ? moment(this.ts).utc().add(-1,'d').format() : moment().add(-1,'d').utc().format(),
1094
1098
  forecastDays: 8,
1095
1099
  selfHosted: !1
1096
- }, e = await De.post("https://cbe.idmwx.com/api/arc/meteo2/spot/forecast", l, {
1100
+ }, t = await kt.post("https://cbe.idmwx.com/api/arc/meteo2/spot/forecast", l, {
1097
1101
  headers: {
1098
1102
  Authorization: this.token
1099
1103
  }
1100
1104
  });
1101
- (e == null ? void 0 : e.data.code) === 0 && (this.meteoData = {
1102
- ...e == null ? void 0 : e.data.data
1103
- }), this.handleRender();
1105
+ (t == null ? void 0 : t.data.code) === 0 && (this.meteoData = {
1106
+ ...t == null ? void 0 : t.data.data
1107
+ }), this.loading = !1, this.handleRender();
1104
1108
  },
1105
1109
  handleClear() {
1106
- this.loading = !0, this.meteoData = {}, this.isCollected = !1, ke.dispose(document.getElementById("weather-chart"));
1110
+ this.position = {}, this.meteoData = {}, this.isCollected = !1, wt && document.getElementById("weather-chart") && wt.dispose(document.getElementById("weather-chart"));
1107
1111
  }
1108
1112
  }
1109
- }, Re = { class: "spot-report" }, Ae = { class: "header-box flex-between" }, Ee = { class: "bg" }, Ge = { class: "search-box flex-start" }, Fe = { class: "content-box" }, Oe = { class: "title-box flex-between" }, Be = { class: "main-title" }, Ve = { class: "sub-title" }, Ue = { class: "flex-end" }, Ze = {
1113
+ }, Rt = { class: "spot-report" }, Et = { class: "header-box flex-between" }, At = { class: "bg" }, Gt = { class: "search-box flex-start" }, Ft = { class: "content-box" }, Ot = { class: "title-box flex-between" }, Bt = { class: "main-title" }, Vt = { class: "sub-title" }, Ut = { class: "flex-end" }, Zt = {
1110
1114
  key: 0,
1111
1115
  id: "weather-chart"
1112
- }, Je = {
1116
+ }, Jt = {
1113
1117
  key: 1,
1114
1118
  class: "weather-chart flex-center"
1115
- }, Ye = {
1119
+ }, Yt = {
1116
1120
  key: 2,
1117
1121
  class: "weather-chart flex-center"
1118
- }, je = {
1122
+ }, jt = {
1119
1123
  key: 3,
1120
1124
  class: "card-box"
1121
- }, qe = { class: "date" }, Qe = { class: "basic-table" }, Ke = { class: "day" }, Xe = { class: "hour" }, $e = { class: "icon" }, et = ["src"], tt = { class: "text" }, st = { class: "text" }, at = { class: "text" }, it = { class: "text" }, nt = { class: "text" }, ot = { class: "text" }, rt = { key: 1 }, lt = { class: "text" }, ht = { class: "text" }, dt = { class: "wave-current-table" }, ct = { class: "text" }, pt = { class: "text" }, mt = { key: 1 }, ut = { class: "text" }, wt = { class: "text" }, gt = { class: "text" }, vt = { key: 1 }, bt = { class: "text" }, xt = { class: "text" }, ft = { class: "text" }, yt = { key: 1 }, _t = { class: "text" }, zt = { class: "sea-table" }, kt = { class: "text" }, Dt = { class: "text" }, St = {
1125
+ }, qt = { class: "date" }, Qt = { class: "basic-table" }, Kt = { class: "day" }, Xt = { class: "hour" }, $t = { class: "icon" }, te = ["src"], ee = { class: "text" }, se = { class: "text" }, ae = { class: "text" }, ie = { class: "text" }, ne = { class: "text" }, oe = { class: "text" }, re = { key: 1 }, le = { class: "text" }, he = { class: "text" }, de = { class: "wave-current-table" }, ce = { class: "text" }, pe = { class: "text" }, me = { key: 1 }, ue = { class: "text" }, we = { class: "text" }, ge = { class: "text" }, ve = { key: 1 }, be = { class: "text" }, xe = { class: "text" }, fe = { class: "text" }, ye = { key: 1 }, _e = { class: "text" }, ze = { class: "sea-table" }, ke = { class: "text" }, De = { class: "text" }, Se = {
1122
1126
  key: 4,
1123
1127
  class: "card-box flex-center"
1124
- }, Lt = {
1128
+ }, Le = {
1125
1129
  key: 5,
1126
1130
  class: "card-box flex-center"
1127
1131
  };
1128
- function Nt(l, e, t, h, s, w) {
1129
- var L, N, I, P, H;
1130
- const M = we("ElOption"), C = we("ElSelect"), S = we("ElTooltip");
1131
- return n(), o("div", Re, [
1132
- i("div", Ae, [
1133
- i("div", Ee, [
1134
- i("div", Ge, [
1135
- ge(C, {
1132
+ function Ne(l, t, e, h, s, v) {
1133
+ var L, N, I, P;
1134
+ const M = gt("ElOption"), C = gt("ElSelect"), S = gt("ElTooltip");
1135
+ return o(), r("div", Rt, [
1136
+ i("div", Et, [
1137
+ i("div", At, [
1138
+ i("div", Gt, [
1139
+ vt(C, {
1136
1140
  modelValue: s.searchName,
1137
- "onUpdate:modelValue": e[0] || (e[0] = (a) => s.searchName = a),
1141
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => s.searchName = a),
1138
1142
  filterable: "",
1139
1143
  class: "input",
1140
1144
  clearable: "",
@@ -1142,13 +1146,13 @@ function Nt(l, e, t, h, s, w) {
1142
1146
  placeholder: s.placeholder,
1143
1147
  autocomplete: "",
1144
1148
  "remote-show-suffix": "",
1145
- onFocus: e[1] || (e[1] = (a) => s.placeholder = ""),
1146
- onBlur: e[2] || (e[2] = (a) => s.placeholder = "search for port name or coordinates"),
1147
- "remote-method": w.fetchSuggestPosition,
1148
- onChange: w.handleFetchMeteo
1149
+ onFocus: t[1] || (t[1] = (a) => s.placeholder = ""),
1150
+ onBlur: t[2] || (t[2] = (a) => s.placeholder = "search for port name or coordinates"),
1151
+ "remote-method": v.fetchSuggestPosition,
1152
+ onChange: v.handleSearch
1149
1153
  }, {
1150
- default: ve(() => [
1151
- (n(!0), o(b, null, x(s.positionList, (a) => (n(), He(M, {
1154
+ default: bt(() => [
1155
+ (o(!0), r(b, null, x(s.positionList, (a) => (o(), Pt(M, {
1152
1156
  key: a.name,
1153
1157
  label: a.name,
1154
1158
  value: a.name
@@ -1159,40 +1163,40 @@ function Nt(l, e, t, h, s, w) {
1159
1163
  ])
1160
1164
  ])
1161
1165
  ]),
1162
- i("div", Fe, [
1163
- i("div", Oe, [
1166
+ i("div", Ft, [
1167
+ i("div", Ot, [
1164
1168
  i("div", null, [
1165
- i("div", Be, "Weather forecast for " + f(((L = s.position) == null ? void 0 : L.name) || "-") + " ( " + f(s.positionOffset) + " )", 1),
1166
- i("div", Ve, "At " + f((N = s.position) != null && N.portId ? "port" : "coordinates") + ", issued " + f(s.issuedDate), 1)
1169
+ i("div", Bt, "Weather forecast for " + f(((L = s.position) == null ? void 0 : L.name) || "-") + " ( " + f(s.positionOffset) + " )", 1),
1170
+ i("div", Vt, "At " + f((N = s.position) != null && N.portId ? "port" : "coordinates") + ", issued " + f(s.issuedDate), 1)
1167
1171
  ]),
1168
- i("div", Ue, [
1169
- ge(S, {
1172
+ i("div", Ut, [
1173
+ vt(S, {
1170
1174
  placement: "left",
1171
1175
  effect: "light",
1172
1176
  content: s.isCollected ? "remove the port/coordinate from the search list" : "add the port/coordinate to the search list",
1173
1177
  "show-after": 1e3
1174
1178
  }, {
1175
- default: ve(() => [
1176
- s.isCollected ? (n(), o("span", {
1179
+ default: bt(() => [
1180
+ s.isCollected ? (o(), r("span", {
1177
1181
  key: 0,
1178
1182
  class: "iconfont icon active",
1179
- onClick: e[3] || (e[3] = (...a) => w.handleCollect && w.handleCollect(...a))
1180
- }, "")) : (n(), o("span", {
1183
+ onClick: t[3] || (t[3] = (...a) => v.handleCollect && v.handleCollect(...a))
1184
+ }, "")) : (o(), r("span", {
1181
1185
  key: 1,
1182
1186
  class: "iconfont icon",
1183
- onClick: e[4] || (e[4] = (...a) => w.handleCollect && w.handleCollect(...a))
1187
+ onClick: t[4] || (t[4] = (...a) => v.handleCollect && v.handleCollect(...a))
1184
1188
  }, ""))
1185
1189
  ]),
1186
1190
  _: 1
1187
1191
  }, 8, ["content"])
1188
1192
  ])
1189
1193
  ]),
1190
- (I = s.position) != null && I.name && !s.loading ? (n(), o("div", Ze)) : s.loading ? (n(), o("div", Je, "Loading....")) : s.position.name ? be("", !0) : (n(), o("div", Ye, "No Data")),
1191
- (P = s.position) != null && P.name && !s.loading ? (n(), o("div", je, [
1192
- i("div", qe, f(s.pickedWeek) + " " + f(w.computeMMMDD(s.pickedDate)), 1),
1193
- i("table", Qe, [
1194
- i("tr", Ke, [
1195
- e[5] || (e[5] = i("th", {
1194
+ (I = s.position) != null && I.name && e.token && !s.loading ? (o(), r("div", Zt)) : s.loading ? (o(), r("div", Jt, "Loading....")) : (o(), r("div", Yt, "No Data")),
1195
+ (P = s.position) != null && P.name && e.token && !s.loading ? (o(), r("div", jt, [
1196
+ i("div", qt, f(s.pickedWeek) + " " + f(v.computeMMMDD(s.pickedDate)), 1),
1197
+ i("table", Qt, [
1198
+ i("tr", Kt, [
1199
+ t[5] || (t[5] = i("th", {
1196
1200
  rowspan: "1",
1197
1201
  colspan: "1",
1198
1202
  class: "tr-title"
@@ -1200,15 +1204,15 @@ function Nt(l, e, t, h, s, w) {
1200
1204
  _("Local time"),
1201
1205
  i("span", { class: "unit" }, "(LT)")
1202
1206
  ], -1)),
1203
- (n(!0), o(b, null, x(s.tableData.hours, (a, r) => (n(), o("th", {
1207
+ (o(!0), r(b, null, x(s.tableData.hours, (a, n) => (o(), r("th", {
1204
1208
  rowspan: "1",
1205
1209
  colspan: "1",
1206
- class: z(s.activeIndex === r ? "active" : ""),
1210
+ class: z(s.activeIndex === n ? "active" : ""),
1207
1211
  key: Math.random() + "local"
1208
- }, f(w.computeHourL(a)), 3))), 128))
1212
+ }, f(v.computeHourL(a)), 3))), 128))
1209
1213
  ]),
1210
- i("tr", Xe, [
1211
- e[6] || (e[6] = i("th", {
1214
+ i("tr", Xt, [
1215
+ t[6] || (t[6] = i("th", {
1212
1216
  rowspan: "1",
1213
1217
  colspan: "1",
1214
1218
  class: "tr-title"
@@ -1216,15 +1220,15 @@ function Nt(l, e, t, h, s, w) {
1216
1220
  _("UTC"),
1217
1221
  i("span", { class: "unit" })
1218
1222
  ], -1)),
1219
- (n(!0), o(b, null, x(s.tableData.hours, (a, r) => (n(), o("th", {
1223
+ (o(!0), r(b, null, x(s.tableData.hours, (a, n) => (o(), r("th", {
1220
1224
  rowspan: "1",
1221
1225
  colspan: "1",
1222
- class: z(s.activeIndex === r ? "active" : ""),
1226
+ class: z(s.activeIndex === n ? "active" : ""),
1223
1227
  key: Math.random() + "z"
1224
- }, f(w.computeHourZ(a)), 3))), 128))
1228
+ }, f(v.computeHourZ(a)), 3))), 128))
1225
1229
  ]),
1226
- i("tr", $e, [
1227
- e[7] || (e[7] = i("td", {
1230
+ i("tr", $t, [
1231
+ t[7] || (t[7] = i("td", {
1228
1232
  rowspan: "1",
1229
1233
  colspan: "1",
1230
1234
  class: "tr-title"
@@ -1232,31 +1236,31 @@ function Nt(l, e, t, h, s, w) {
1232
1236
  _("Weather"),
1233
1237
  i("span", { class: "unit" })
1234
1238
  ], -1)),
1235
- (n(!0), o(b, null, x(s.tableData.weatherUrls, (a, r) => (n(), o("td", {
1239
+ (o(!0), r(b, null, x(s.tableData.weatherUrls, (a, n) => (o(), r("td", {
1236
1240
  rowspan: "1",
1237
1241
  colspan: "1",
1238
- class: z(s.activeIndex === r ? "active" : ""),
1242
+ class: z(s.activeIndex === n ? "active" : ""),
1239
1243
  key: Math.random() + "url"
1240
1244
  }, [
1241
- ge(S, {
1245
+ vt(S, {
1242
1246
  placement: "top",
1243
1247
  effect: "light",
1244
- content: s.tableData.weatherNames[r],
1248
+ content: s.tableData.weatherNames[n],
1245
1249
  "show-after": 500
1246
1250
  }, {
1247
- default: ve(() => [
1248
- a ? (n(), o("img", {
1251
+ default: bt(() => [
1252
+ a ? (o(), r("img", {
1249
1253
  key: 0,
1250
1254
  class: "iconfont weather-icon",
1251
1255
  src: a
1252
- }, null, 8, et)) : be("", !0)
1256
+ }, null, 8, te)) : Ht("", !0)
1253
1257
  ]),
1254
1258
  _: 2
1255
1259
  }, 1032, ["content"])
1256
1260
  ], 2))), 128))
1257
1261
  ]),
1258
- i("tr", tt, [
1259
- e[8] || (e[8] = i("td", {
1262
+ i("tr", ee, [
1263
+ t[8] || (t[8] = i("td", {
1260
1264
  rowspan: "1",
1261
1265
  colspan: "1",
1262
1266
  class: "tr-title"
@@ -1264,15 +1268,15 @@ function Nt(l, e, t, h, s, w) {
1264
1268
  _("Temperature"),
1265
1269
  i("span", { class: "unit" }, "°C")
1266
1270
  ], -1)),
1267
- (n(!0), o(b, null, x(s.tableData.temp, (a, r) => (n(), o("td", {
1271
+ (o(!0), r(b, null, x(s.tableData.temp, (a, n) => (o(), r("td", {
1268
1272
  rowspan: "1",
1269
1273
  colspan: "1",
1270
- class: z(s.activeIndex === r ? "active" : ""),
1274
+ class: z(s.activeIndex === n ? "active" : ""),
1271
1275
  key: Math.random() + a
1272
1276
  }, f(a), 3))), 128))
1273
1277
  ]),
1274
- i("tr", st, [
1275
- e[9] || (e[9] = i("td", {
1278
+ i("tr", se, [
1279
+ t[9] || (t[9] = i("td", {
1276
1280
  rowspan: "1",
1277
1281
  colspan: "1",
1278
1282
  class: "tr-title"
@@ -1280,15 +1284,15 @@ function Nt(l, e, t, h, s, w) {
1280
1284
  _("Precipitation Probability"),
1281
1285
  i("span", { class: "unit" }, "%")
1282
1286
  ], -1)),
1283
- (n(!0), o(b, null, x(s.tableData.precipProbability, (a, r) => (n(), o("td", {
1287
+ (o(!0), r(b, null, x(s.tableData.precipProbability, (a, n) => (o(), r("td", {
1284
1288
  rowspan: "1",
1285
1289
  colspan: "1",
1286
- class: z(s.activeIndex === r ? "active" : ""),
1290
+ class: z(s.activeIndex === n ? "active" : ""),
1287
1291
  key: Math.random() + a
1288
1292
  }, f(a), 3))), 128))
1289
1293
  ]),
1290
- i("tr", at, [
1291
- e[10] || (e[10] = i("td", {
1294
+ i("tr", ae, [
1295
+ t[10] || (t[10] = i("td", {
1292
1296
  rowspan: "1",
1293
1297
  colspan: "1",
1294
1298
  class: "tr-title"
@@ -1296,15 +1300,15 @@ function Nt(l, e, t, h, s, w) {
1296
1300
  _("Precipitation 1h"),
1297
1301
  i("span", { class: "unit" }, "mm")
1298
1302
  ], -1)),
1299
- (n(!0), o(b, null, x(s.tableData.precip1h, (a, r) => (n(), o("td", {
1303
+ (o(!0), r(b, null, x(s.tableData.precip1h, (a, n) => (o(), r("td", {
1300
1304
  rowspan: "1",
1301
1305
  colspan: "1",
1302
- class: z(s.activeIndex === r ? "active" : ""),
1306
+ class: z(s.activeIndex === n ? "active" : ""),
1303
1307
  key: Math.random() + a
1304
1308
  }, f(a), 3))), 128))
1305
1309
  ]),
1306
- i("tr", it, [
1307
- e[11] || (e[11] = i("td", {
1310
+ i("tr", ie, [
1311
+ t[11] || (t[11] = i("td", {
1308
1312
  rowspan: "1",
1309
1313
  colspan: "1",
1310
1314
  class: "tr-title"
@@ -1312,15 +1316,15 @@ function Nt(l, e, t, h, s, w) {
1312
1316
  _("Visibility"),
1313
1317
  i("span", { class: "unit" }, "nm")
1314
1318
  ], -1)),
1315
- (n(!0), o(b, null, x(s.tableData.visibility, (a, r) => (n(), o("td", {
1319
+ (o(!0), r(b, null, x(s.tableData.visibility, (a, n) => (o(), r("td", {
1316
1320
  rowspan: "1",
1317
1321
  colspan: "1",
1318
- class: z(s.activeIndex === r ? "active" : ""),
1322
+ class: z(s.activeIndex === n ? "active" : ""),
1319
1323
  key: Math.random() + a
1320
1324
  }, f(a), 3))), 128))
1321
1325
  ]),
1322
- i("tr", nt, [
1323
- e[12] || (e[12] = i("td", {
1326
+ i("tr", ne, [
1327
+ t[12] || (t[12] = i("td", {
1324
1328
  rowspan: "1",
1325
1329
  colspan: "1",
1326
1330
  class: "tr-title"
@@ -1328,15 +1332,15 @@ function Nt(l, e, t, h, s, w) {
1328
1332
  _("Relative Humidity"),
1329
1333
  i("span", { class: "unit" }, "%")
1330
1334
  ], -1)),
1331
- (n(!0), o(b, null, x(s.tableData.humidity, (a, r) => (n(), o("td", {
1335
+ (o(!0), r(b, null, x(s.tableData.humidity, (a, n) => (o(), r("td", {
1332
1336
  rowspan: "1",
1333
1337
  colspan: "1",
1334
- class: z(s.activeIndex === r ? "active" : ""),
1338
+ class: z(s.activeIndex === n ? "active" : ""),
1335
1339
  key: Math.random() + a
1336
1340
  }, f(a), 3))), 128))
1337
1341
  ]),
1338
- i("tr", ot, [
1339
- e[13] || (e[13] = i("td", {
1342
+ i("tr", oe, [
1343
+ t[13] || (t[13] = i("td", {
1340
1344
  rowspan: "1",
1341
1345
  colspan: "1",
1342
1346
  class: "tr-title"
@@ -1344,21 +1348,21 @@ function Nt(l, e, t, h, s, w) {
1344
1348
  _("Wind direction"),
1345
1349
  i("span", { class: "unit" })
1346
1350
  ], -1)),
1347
- (n(!0), o(b, null, x(s.tableData.windDir, (a, r) => (n(), o("td", {
1351
+ (o(!0), r(b, null, x(s.tableData.windDir, (a, n) => (o(), r("td", {
1348
1352
  rowspan: "1",
1349
1353
  colspan: "1",
1350
- class: z(s.activeIndex === r ? "active" : ""),
1354
+ class: z(s.activeIndex === n ? "active" : ""),
1351
1355
  key: Math.random() + a
1352
1356
  }, [
1353
- isNaN(a) ? (n(), o("span", rt, "-")) : (n(), o("span", {
1357
+ isNaN(a) ? (o(), r("span", re, "-")) : (o(), r("span", {
1354
1358
  key: 0,
1355
1359
  class: "iconfont icon",
1356
- style: ce({ display: "inline-block", transform: `rotate(${a}deg)` })
1360
+ style: ct({ display: "inline-block", transform: `rotate(${a}deg)` })
1357
1361
  }, "", 4))
1358
1362
  ], 2))), 128))
1359
1363
  ]),
1360
- i("tr", lt, [
1361
- e[14] || (e[14] = i("td", {
1364
+ i("tr", le, [
1365
+ t[14] || (t[14] = i("td", {
1362
1366
  rowspan: "1",
1363
1367
  colspan: "1",
1364
1368
  class: "tr-title"
@@ -1366,15 +1370,15 @@ function Nt(l, e, t, h, s, w) {
1366
1370
  _("Wind speed"),
1367
1371
  i("span", { class: "unit" }, "kts")
1368
1372
  ], -1)),
1369
- (n(!0), o(b, null, x(s.tableData.windSpeed, (a, r) => (n(), o("td", {
1373
+ (o(!0), r(b, null, x(s.tableData.windSpeed, (a, n) => (o(), r("td", {
1370
1374
  rowspan: "1",
1371
1375
  colspan: "1",
1372
- class: z(s.activeIndex === r ? "active" : ""),
1376
+ class: z(s.activeIndex === n ? "active" : ""),
1373
1377
  key: Math.random() + a
1374
1378
  }, f(a), 3))), 128))
1375
1379
  ]),
1376
- i("tr", ht, [
1377
- e[15] || (e[15] = i("td", {
1380
+ i("tr", he, [
1381
+ t[15] || (t[15] = i("td", {
1378
1382
  rowspan: "1",
1379
1383
  colspan: "1",
1380
1384
  class: "tr-title"
@@ -1382,18 +1386,18 @@ function Nt(l, e, t, h, s, w) {
1382
1386
  _("Wind gust"),
1383
1387
  i("span", { class: "unit" }, "kts")
1384
1388
  ], -1)),
1385
- (n(!0), o(b, null, x(s.tableData.windGust, (a, r) => (n(), o("td", {
1389
+ (o(!0), r(b, null, x(s.tableData.windGust, (a, n) => (o(), r("td", {
1386
1390
  rowspan: "1",
1387
1391
  colspan: "1",
1388
- class: z(s.activeIndex === r ? "active" : ""),
1392
+ class: z(s.activeIndex === n ? "active" : ""),
1389
1393
  key: Math.random() + a
1390
1394
  }, f(a), 3))), 128))
1391
1395
  ])
1392
1396
  ]),
1393
- e[27] || (e[27] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1394
- i("table", dt, [
1395
- i("tr", ct, [
1396
- e[16] || (e[16] = i("td", {
1397
+ t[27] || (t[27] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1398
+ i("table", de, [
1399
+ i("tr", ce, [
1400
+ t[16] || (t[16] = i("td", {
1397
1401
  rowspan: "1",
1398
1402
  colspan: "1",
1399
1403
  class: "tr-title"
@@ -1401,15 +1405,15 @@ function Nt(l, e, t, h, s, w) {
1401
1405
  _("Wind wave height"),
1402
1406
  i("span", { class: "unit" }, "m")
1403
1407
  ], -1)),
1404
- (n(!0), o(b, null, x(s.tableData.windwaveHeight, (a, r) => (n(), o("td", {
1408
+ (o(!0), r(b, null, x(s.tableData.windwaveHeight, (a, n) => (o(), r("td", {
1405
1409
  rowspan: "1",
1406
1410
  colspan: "1",
1407
- class: z(s.activeIndex === r ? "active" : ""),
1411
+ class: z(s.activeIndex === n ? "active" : ""),
1408
1412
  key: Math.random() + a
1409
1413
  }, f(a), 3))), 128))
1410
1414
  ]),
1411
- i("tr", pt, [
1412
- e[17] || (e[17] = i("td", {
1415
+ i("tr", pe, [
1416
+ t[17] || (t[17] = i("td", {
1413
1417
  rowspan: "1",
1414
1418
  colspan: "1",
1415
1419
  class: "tr-title"
@@ -1417,21 +1421,21 @@ function Nt(l, e, t, h, s, w) {
1417
1421
  _("Wind wave direction"),
1418
1422
  i("span", { class: "unit" })
1419
1423
  ], -1)),
1420
- (n(!0), o(b, null, x(s.tableData.windwaveDir, (a, r) => (n(), o("td", {
1424
+ (o(!0), r(b, null, x(s.tableData.windwaveDir, (a, n) => (o(), r("td", {
1421
1425
  rowspan: "1",
1422
1426
  colspan: "1",
1423
- class: z(s.activeIndex === r ? "active" : ""),
1427
+ class: z(s.activeIndex === n ? "active" : ""),
1424
1428
  key: Math.random() + a
1425
1429
  }, [
1426
- isNaN(a) ? (n(), o("span", mt, "-")) : (n(), o("span", {
1430
+ isNaN(a) ? (o(), r("span", me, "-")) : (o(), r("span", {
1427
1431
  key: 0,
1428
1432
  class: "iconfont icon",
1429
- style: ce({ display: "inline-block", transform: `rotate(${a}deg)` })
1433
+ style: ct({ display: "inline-block", transform: `rotate(${a}deg)` })
1430
1434
  }, "", 4))
1431
1435
  ], 2))), 128))
1432
1436
  ]),
1433
- i("tr", ut, [
1434
- e[18] || (e[18] = i("td", {
1437
+ i("tr", ue, [
1438
+ t[18] || (t[18] = i("td", {
1435
1439
  rowspan: "1",
1436
1440
  colspan: "1",
1437
1441
  class: "tr-title"
@@ -1439,15 +1443,15 @@ function Nt(l, e, t, h, s, w) {
1439
1443
  _("Wind wave period"),
1440
1444
  i("span", { class: "unit" }, "s")
1441
1445
  ], -1)),
1442
- (n(!0), o(b, null, x(s.tableData.windwavePeriod, (a, r) => (n(), o("td", {
1446
+ (o(!0), r(b, null, x(s.tableData.windwavePeriod, (a, n) => (o(), r("td", {
1443
1447
  rowspan: "1",
1444
1448
  colspan: "1",
1445
- class: z(s.activeIndex === r ? "active" : ""),
1449
+ class: z(s.activeIndex === n ? "active" : ""),
1446
1450
  key: Math.random() + a
1447
1451
  }, f(a), 3))), 128))
1448
1452
  ]),
1449
- i("tr", wt, [
1450
- e[19] || (e[19] = i("td", {
1453
+ i("tr", we, [
1454
+ t[19] || (t[19] = i("td", {
1451
1455
  rowspan: "1",
1452
1456
  colspan: "1",
1453
1457
  class: "tr-title"
@@ -1455,15 +1459,15 @@ function Nt(l, e, t, h, s, w) {
1455
1459
  _("Swell height"),
1456
1460
  i("span", { class: "unit" }, "m")
1457
1461
  ], -1)),
1458
- (n(!0), o(b, null, x(s.tableData.swellHeight, (a, r) => (n(), o("td", {
1462
+ (o(!0), r(b, null, x(s.tableData.swellHeight, (a, n) => (o(), r("td", {
1459
1463
  rowspan: "1",
1460
1464
  colspan: "1",
1461
- class: z(s.activeIndex === r ? "active" : ""),
1465
+ class: z(s.activeIndex === n ? "active" : ""),
1462
1466
  key: Math.random() + a
1463
1467
  }, f(a), 3))), 128))
1464
1468
  ]),
1465
- i("tr", gt, [
1466
- e[20] || (e[20] = i("td", {
1469
+ i("tr", ge, [
1470
+ t[20] || (t[20] = i("td", {
1467
1471
  rowspan: "1",
1468
1472
  colspan: "1",
1469
1473
  class: "tr-title"
@@ -1471,21 +1475,21 @@ function Nt(l, e, t, h, s, w) {
1471
1475
  _("Swell direction"),
1472
1476
  i("span", { class: "unit" })
1473
1477
  ], -1)),
1474
- (n(!0), o(b, null, x(s.tableData.swellDir, (a, r) => (n(), o("td", {
1478
+ (o(!0), r(b, null, x(s.tableData.swellDir, (a, n) => (o(), r("td", {
1475
1479
  rowspan: "1",
1476
1480
  colspan: "1",
1477
- class: z(s.activeIndex === r ? "active" : ""),
1481
+ class: z(s.activeIndex === n ? "active" : ""),
1478
1482
  key: Math.random() + a
1479
1483
  }, [
1480
- isNaN(a) ? (n(), o("span", vt, "-")) : (n(), o("span", {
1484
+ isNaN(a) ? (o(), r("span", ve, "-")) : (o(), r("span", {
1481
1485
  key: 0,
1482
1486
  class: "iconfont icon",
1483
- style: ce({ display: "inline-block", transform: `rotate(${a}deg)` })
1487
+ style: ct({ display: "inline-block", transform: `rotate(${a}deg)` })
1484
1488
  }, "", 4))
1485
1489
  ], 2))), 128))
1486
1490
  ]),
1487
- i("tr", bt, [
1488
- e[21] || (e[21] = i("td", {
1491
+ i("tr", be, [
1492
+ t[21] || (t[21] = i("td", {
1489
1493
  rowspan: "1",
1490
1494
  colspan: "1",
1491
1495
  class: "tr-title"
@@ -1493,15 +1497,15 @@ function Nt(l, e, t, h, s, w) {
1493
1497
  _("Swell period"),
1494
1498
  i("span", { class: "unit" }, "s")
1495
1499
  ], -1)),
1496
- (n(!0), o(b, null, x(s.tableData.swellPeriod, (a, r) => (n(), o("td", {
1500
+ (o(!0), r(b, null, x(s.tableData.swellPeriod, (a, n) => (o(), r("td", {
1497
1501
  rowspan: "1",
1498
1502
  colspan: "1",
1499
- class: z(s.activeIndex === r ? "active" : ""),
1503
+ class: z(s.activeIndex === n ? "active" : ""),
1500
1504
  key: Math.random() + a
1501
1505
  }, f(a), 3))), 128))
1502
1506
  ]),
1503
- i("tr", xt, [
1504
- e[22] || (e[22] = i("td", {
1507
+ i("tr", xe, [
1508
+ t[22] || (t[22] = i("td", {
1505
1509
  rowspan: "1",
1506
1510
  colspan: "1",
1507
1511
  class: "tr-title"
@@ -1509,15 +1513,15 @@ function Nt(l, e, t, h, s, w) {
1509
1513
  _("Sig wave height"),
1510
1514
  i("span", { class: "unit" }, "m")
1511
1515
  ], -1)),
1512
- (n(!0), o(b, null, x(s.tableData.sigwaveHeight, (a, r) => (n(), o("td", {
1516
+ (o(!0), r(b, null, x(s.tableData.sigwaveHeight, (a, n) => (o(), r("td", {
1513
1517
  rowspan: "1",
1514
1518
  colspan: "1",
1515
- class: z(s.activeIndex === r ? "active" : ""),
1519
+ class: z(s.activeIndex === n ? "active" : ""),
1516
1520
  key: Math.random() + a
1517
1521
  }, f(a), 3))), 128))
1518
1522
  ]),
1519
- i("tr", ft, [
1520
- e[23] || (e[23] = i("td", {
1523
+ i("tr", fe, [
1524
+ t[23] || (t[23] = i("td", {
1521
1525
  rowspan: "1",
1522
1526
  colspan: "1",
1523
1527
  class: "tr-title"
@@ -1525,21 +1529,21 @@ function Nt(l, e, t, h, s, w) {
1525
1529
  _("Current direction"),
1526
1530
  i("span", { class: "unit" })
1527
1531
  ], -1)),
1528
- (n(!0), o(b, null, x(s.tableData.currentDir, (a, r) => (n(), o("td", {
1532
+ (o(!0), r(b, null, x(s.tableData.currentDir, (a, n) => (o(), r("td", {
1529
1533
  rowspan: "1",
1530
1534
  colspan: "1",
1531
- class: z(s.activeIndex === r ? "active" : ""),
1535
+ class: z(s.activeIndex === n ? "active" : ""),
1532
1536
  key: Math.random() + a
1533
1537
  }, [
1534
- isNaN(a) ? (n(), o("span", yt, "-")) : (n(), o("span", {
1538
+ isNaN(a) ? (o(), r("span", ye, "-")) : (o(), r("span", {
1535
1539
  key: 0,
1536
1540
  class: "iconfont icon",
1537
- style: ce({ display: "inline-block", transform: `rotate(${a}deg)` })
1541
+ style: ct({ display: "inline-block", transform: `rotate(${a}deg)` })
1538
1542
  }, "", 4))
1539
1543
  ], 2))), 128))
1540
1544
  ]),
1541
- i("tr", _t, [
1542
- e[24] || (e[24] = i("td", {
1545
+ i("tr", _e, [
1546
+ t[24] || (t[24] = i("td", {
1543
1547
  rowspan: "1",
1544
1548
  colspan: "1",
1545
1549
  class: "tr-title"
@@ -1547,18 +1551,18 @@ function Nt(l, e, t, h, s, w) {
1547
1551
  _("Current speed"),
1548
1552
  i("span", { class: "unit" }, "kts")
1549
1553
  ], -1)),
1550
- (n(!0), o(b, null, x(s.tableData.currentSpeed, (a, r) => (n(), o("td", {
1554
+ (o(!0), r(b, null, x(s.tableData.currentSpeed, (a, n) => (o(), r("td", {
1551
1555
  rowspan: "1",
1552
1556
  colspan: "1",
1553
- class: z(s.activeIndex === r ? "active" : ""),
1557
+ class: z(s.activeIndex === n ? "active" : ""),
1554
1558
  key: Math.random() + a
1555
1559
  }, f(a), 3))), 128))
1556
1560
  ])
1557
1561
  ]),
1558
- e[28] || (e[28] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1559
- i("table", zt, [
1560
- i("tr", kt, [
1561
- e[25] || (e[25] = i("td", {
1562
+ t[28] || (t[28] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1563
+ i("table", ze, [
1564
+ i("tr", ke, [
1565
+ t[25] || (t[25] = i("td", {
1562
1566
  rowspan: "1",
1563
1567
  colspan: "1",
1564
1568
  class: "tr-title"
@@ -1566,15 +1570,15 @@ function Nt(l, e, t, h, s, w) {
1566
1570
  _("Sea level height"),
1567
1571
  i("span", { class: "unit" }, "m")
1568
1572
  ], -1)),
1569
- (n(!0), o(b, null, x(s.tableData.seaLevel, (a, r) => (n(), o("td", {
1573
+ (o(!0), r(b, null, x(s.tableData.seaLevel, (a, n) => (o(), r("td", {
1570
1574
  rowspan: "1",
1571
1575
  colspan: "1",
1572
- class: z(s.activeIndex === r ? "active" : ""),
1576
+ class: z(s.activeIndex === n ? "active" : ""),
1573
1577
  key: Math.random() + a
1574
1578
  }, f(a), 3))), 128))
1575
1579
  ]),
1576
- i("tr", Dt, [
1577
- e[26] || (e[26] = i("td", {
1580
+ i("tr", De, [
1581
+ t[26] || (t[26] = i("td", {
1578
1582
  rowspan: "1",
1579
1583
  colspan: "1",
1580
1584
  class: "tr-title"
@@ -1582,24 +1586,24 @@ function Nt(l, e, t, h, s, w) {
1582
1586
  _("Sea surface temperature"),
1583
1587
  i("span", { class: "unit" }, "°C")
1584
1588
  ], -1)),
1585
- (n(!0), o(b, null, x(s.tableData.seaTemp, (a, r) => (n(), o("td", {
1589
+ (o(!0), r(b, null, x(s.tableData.seaTemp, (a, n) => (o(), r("td", {
1586
1590
  rowspan: "1",
1587
1591
  colspan: "1",
1588
- class: z(s.activeIndex === r ? "active" : ""),
1592
+ class: z(s.activeIndex === n ? "active" : ""),
1589
1593
  key: Math.random() + a
1590
1594
  }, f(a), 3))), 128))
1591
1595
  ])
1592
1596
  ])
1593
- ])) : s.loading ? (n(), o("div", St, "Loading....")) : (H = s.position) != null && H.name ? be("", !0) : (n(), o("div", Lt, "No Data"))
1597
+ ])) : s.loading ? (o(), r("div", Se, "Loading....")) : (o(), r("div", Le, "No Data"))
1594
1598
  ])
1595
1599
  ]);
1596
1600
  }
1597
- const It = /* @__PURE__ */ We(Te, [["render", Nt], ["__scopeId", "data-v-3ab7a0ef"]]), Rt = {
1601
+ const Ie = /* @__PURE__ */ Wt(Tt, [["render", Ne], ["__scopeId", "data-v-0fc2d8fa"]]), Re = {
1598
1602
  install(l) {
1599
- l.component("SpotReport", It);
1603
+ l.component("SpotReport", Ie);
1600
1604
  }
1601
1605
  };
1602
1606
  export {
1603
- It as SpotReport,
1604
- Rt as SpotReportPlugin
1607
+ Ie as SpotReport,
1608
+ Re as SpotReportPlugin
1605
1609
  };