@idmui/spot 0.0.4 → 0.0.5

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,474 +1,479 @@
1
- import U from "moment";
1
+ import I from "moment";
2
2
  import q from "moment-timezone";
3
- import { Search as ge } from "@element-plus/icons-vue";
4
- import { LngLatHelper as se } from "@idm-plugin/geo";
5
- import * as re from "echarts";
6
- import { markRaw as ve, resolveComponent as ae, openBlock as o, createElementBlock as n, createElementVNode as i, createVNode as le, withCtx as he, Fragment as x, renderList as _, createBlock as ye, toDisplayString as y, createCommentVNode as ie, normalizeClass as b, createTextVNode as D, normalizeStyle as $ } from "vue";
7
- import de from "axios";
8
- class ce {
9
- static pickHourly(t, e) {
10
- var h, s, u, C, W, P, N, I, H, v, S, a, l, R, T, E, G, A, F, V, O, B, J, w, k, M, Z, K, j, L, f, p, g, m;
11
- const X = typeof e == "string" ? U(e) : e, Q = t.weather, pe = t.marine, oe = U(Q[0].hourly.date).utc(), ee = oe.clone().add(Q[0].hourly.time.at(0), "h"), ue = oe.clone().add(Q[0].hourly.time.at(-1), "h"), ne = [];
12
- if (X.isBetween(ee, ue, "millisecond", "[]")) {
13
- const d = X.utc().diff(ee, "h", !1);
14
- let Y, z;
15
- for (const te of Q) {
16
- const c = te.hourly;
17
- Y = {
18
- temp: (h = c.temperature_2m) == null ? void 0 : h.at(d),
19
- apparentTemp: (s = c.apparent_temperature) == null ? void 0 : s.at(d),
20
- rh: (u = c.relative_humidity_2m) == null ? void 0 : u.at(d),
21
- dp: (C = c.dew_point_2m) == null ? void 0 : C.at(d),
3
+ import { Search as xe } from "@element-plus/icons-vue";
4
+ import { LngLatHelper as ae } from "@idm-plugin/geo";
5
+ import * as ue from "echarts";
6
+ import { markRaw as _e, resolveComponent as ie, openBlock as n, createElementBlock as o, createElementVNode as i, createVNode as ne, withCtx as oe, Fragment as g, renderList as v, createBlock as be, toDisplayString as y, createCommentVNode as re, createTextVNode as x, normalizeClass as _, normalizeStyle as ee } from "vue";
7
+ import me from "axios";
8
+ class we {
9
+ static pickHourly(e, t) {
10
+ var h, s, m, L, P, z, S, M, C, f, k, a, r, H, W, T, R, E, A, G, F, V, O, w, b, N, Z, j, Y, D, B, u, J, d, Q, X, le, de;
11
+ const he = typeof t == "string" ? I(t) : t, $ = e.weather, ge = e.marine, ce = I($[0].hourly.date).utc(), te = ce.clone().add($[0].hourly.time.at(0), "h"), ve = ce.clone().add($[0].hourly.time.at(-1), "h"), pe = [];
12
+ if (he.isBetween(te, ve, "millisecond", "[]")) {
13
+ const c = he.utc().diff(te, "h", !1);
14
+ let U, K;
15
+ for (const se of $) {
16
+ const p = se.hourly;
17
+ U = {
18
+ temp: (h = p.temperature_2m) == null ? void 0 : h.at(c),
19
+ apparentTemp: (s = p.apparent_temperature) == null ? void 0 : s.at(c),
20
+ rh: (m = p.relative_humidity_2m) == null ? void 0 : m.at(c),
21
+ dp: (L = p.dew_point_2m) == null ? void 0 : L.at(c),
22
22
  precip: {
23
- probability: (W = c.precipitation_probability) == null ? void 0 : W.at(d),
24
- sum: (P = c.precipitation) == null ? void 0 : P.at(d)
23
+ probability: (P = p.precipitation_probability) == null ? void 0 : P.at(c),
24
+ sum: (z = p.precipitation) == null ? void 0 : z.at(c)
25
25
  },
26
- code: (N = c.weather_code) == null ? void 0 : N.at(d),
27
- visibility: this.m2nm((I = c.visibility) == null ? void 0 : I.at(d)),
26
+ code: (S = p.weather_code) == null ? void 0 : S.at(c),
27
+ visibility: this.m2nm((M = p.visibility) == null ? void 0 : M.at(c)),
28
28
  wind: {
29
- speed: (H = c.wind_speed_10m) == null ? void 0 : H.at(d),
30
- kts: (v = c.wind_speed_10m) == null ? void 0 : v.at(d),
31
- degree: (S = c.wind_direction_10m) == null ? void 0 : S.at(d),
32
- bearing: (((a = c.wind_direction_10m) == null ? void 0 : a.at(d)) + 180) % 360,
33
- gusts: (l = c.wind_gusts_10m) == null ? void 0 : l.at(d)
29
+ speed: (C = p.wind_speed_10m) == null ? void 0 : C.at(c),
30
+ kts: (f = p.wind_speed_10m) == null ? void 0 : f.at(c),
31
+ degree: (k = p.wind_direction_10m) == null ? void 0 : k.at(c),
32
+ bearing: ((a = p.wind_direction_10m) == null ? void 0 : a.at(c)) !== null ? (((r = p.wind_direction_10m) == null ? void 0 : r.at(c)) + 180) % 360 : null,
33
+ gusts: (H = p.wind_gusts_10m) == null ? void 0 : H.at(c)
34
34
  },
35
- isDay: (R = c.is_day) == null ? void 0 : R.at(d)
35
+ isDay: (W = p.is_day) == null ? void 0 : W.at(c)
36
36
  };
37
- const { name: me, url: we } = this.parseWeatherCode(Y.code, Y.isDay);
38
- Y.name = me, Y.url = we, Y.wind.scale = this.beaufort(this.kts2ms(Y.wind.kts)), Y.wind.direction = this.degree2Direction(Y.wind.degree);
37
+ const { name: ye, url: fe } = this.parseWeatherCode(U.code, U.isDay);
38
+ U.name = ye, U.url = fe, U.wind.scale = this.beaufort(this.kts2ms(U.wind.kts)), U.wind.direction = this.degree2Direction(U.wind.degree);
39
39
  }
40
- for (const te of pe) {
41
- const c = te.hourly;
42
- z = {
40
+ for (const se of ge) {
41
+ const p = se.hourly;
42
+ K = {
43
43
  wave: {
44
44
  sig: {
45
- height: (T = c.wave_height) == null ? void 0 : T.at(d),
46
- degree: (E = c.wave_direction) == null ? void 0 : E.at(d),
47
- bearing: (((G = c.wave_direction) == null ? void 0 : G.at(d)) + 180) % 360,
48
- period: (A = c.wave_period) == null ? void 0 : A.at(d)
45
+ height: (T = p.wave_height) == null ? void 0 : T.at(c),
46
+ degree: (R = p.wave_direction) == null ? void 0 : R.at(c),
47
+ bearing: ((E = p.wave_direction) == null ? void 0 : E.at(c)) !== null ? (((A = p.wave_direction) == null ? void 0 : A.at(c)) + 180) % 360 : null,
48
+ period: (G = p.wave_period) == null ? void 0 : G.at(c)
49
49
  },
50
50
  swell: {
51
- height: (F = c.swell_wave_height) == null ? void 0 : F.at(d),
52
- degree: (V = c.swell_wave_direction) == null ? void 0 : V.at(d),
53
- bearing: (((O = c.swell_wave_direction) == null ? void 0 : O.at(d)) + 180) % 360,
54
- period: (B = c.swell_wave_period) == null ? void 0 : B.at(d),
55
- peakPeriod: (J = c.swell_wave_peak_period) == null ? void 0 : J.at(d)
51
+ height: (F = p.swell_wave_height) == null ? void 0 : F.at(c),
52
+ degree: (V = p.swell_wave_direction) == null ? void 0 : V.at(c),
53
+ bearing: ((O = p.swell_wave_direction) == null ? void 0 : O.at(c)) !== null ? (((w = p.swell_wave_direction) == null ? void 0 : w.at(c)) + 180) % 360 : null,
54
+ period: (b = p.swell_wave_period) == null ? void 0 : b.at(c),
55
+ peakPeriod: (N = p.swell_wave_peak_period) == null ? void 0 : N.at(c)
56
56
  },
57
57
  wd: {
58
- height: (w = c.wind_wave_height) == null ? void 0 : w.at(d),
59
- degree: (k = c.wind_wave_direction) == null ? void 0 : k.at(d),
60
- bearing: (((M = c.wind_wave_direction) == null ? void 0 : M.at(d)) + 180) % 360,
61
- period: (Z = c.wind_wave_period) == null ? void 0 : Z.at(d),
62
- peakPeriod: (K = c.wind_wave_peak_period) == null ? void 0 : K.at(d)
58
+ height: (Z = p.wind_wave_height) == null ? void 0 : Z.at(c),
59
+ degree: (j = p.wind_wave_direction) == null ? void 0 : j.at(c),
60
+ bearing: ((Y = p.wind_wave_direction) == null ? void 0 : Y.at(c)) !== null ? (((D = p.wind_wave_direction) == null ? void 0 : D.at(c)) + 180) % 360 : null,
61
+ period: (B = p.wind_wave_period) == null ? void 0 : B.at(c),
62
+ peakPeriod: (u = p.wind_wave_peak_period) == null ? void 0 : u.at(c)
63
63
  }
64
64
  },
65
65
  current: {
66
- speed: (j = c.ocean_current_velocity) == null ? void 0 : j.at(d),
67
- kts: (L = c.ocean_current_velocity) == null ? void 0 : L.at(d),
68
- degree: (f = c.ocean_current_direction) == null ? void 0 : f.at(d),
69
- bearing: (p = c.ocean_current_direction) == null ? void 0 : p.at(d)
66
+ speed: (J = p.ocean_current_velocity) == null ? void 0 : J.at(c),
67
+ kts: (d = p.ocean_current_velocity) == null ? void 0 : d.at(c),
68
+ degree: (Q = p.ocean_current_direction) == null ? void 0 : Q.at(c),
69
+ bearing: ((X = p.ocean_current_direction) == null ? void 0 : X.at(c)) ?? null
70
70
  },
71
- sst: (g = c.sea_surface_temperature) == null ? void 0 : g.at(d),
72
- height: (m = c.sea_level_height_msl) == null ? void 0 : m.at(d)
73
- }, z.wave.sig.direction = this.degree2Direction(z.wave.sig.degree), z.wave.swell.direction = this.degree2Direction(z.wave.swell.degree), z.wave.wd.direction = this.degree2Direction(z.wave.wd.degree), z.wave.sig.scale = this.douglas(z.wave.sig.height), z.wave.swell.scale = this.douglas(z.wave.swell.height), z.wave.wd.scale = this.douglas(z.wave.wd.height), z.current.direction = this.degree2Direction(z.current.degree);
71
+ sst: (le = p.sea_surface_temperature) == null ? void 0 : le.at(c),
72
+ height: (de = p.sea_level_height_msl) == null ? void 0 : de.at(c)
73
+ }, K.wave = this.parseWave(K.wave), K.current.direction = this.degree2Direction(K.current.degree);
74
74
  }
75
- ne.push({
76
- utc: ee.add(d, "h").format(),
77
- weather: { ...Y },
78
- ...z
75
+ pe.push({
76
+ utc: te.add(c, "h").format(),
77
+ weather: { ...U },
78
+ ...K
79
79
  });
80
80
  }
81
- return ne;
81
+ return pe;
82
82
  }
83
- static pickDaily(t, e) {
84
- var h, s, u, C, W, P, N, I, H, v, S, a, l, R, T, E, G, A, F, V, O, B, J;
85
- const w = typeof e == "string" ? U(e) : e, k = t.weather, M = t.marine, Z = U(k[0].daily.time.at(0)), K = U(k[0].daily.time.at(-1)), j = [];
86
- if (w.isBetween(Z, K, "millisecond", "[]")) {
87
- let L, f;
88
- const p = w.diff(Z, "d", !1);
89
- for (const g of k) {
90
- const m = g.daily;
91
- L = {
92
- code: (h = m.weather_code) == null ? void 0 : h.at(p),
83
+ static pickDaily(e, t) {
84
+ var h, s, m, L, P, z, S, M, C, f, k, a, r, H, W, T, R, E, A, G, F, V, O;
85
+ const w = typeof t == "string" ? I(t) : t, b = e.weather, N = e.marine, Z = I(b[0].daily.time.at(0)), j = I(b[0].daily.time.at(-1)), Y = [];
86
+ if (w.isBetween(Z, j, "millisecond", "[]")) {
87
+ let D, B;
88
+ const u = w.diff(Z, "d", !1);
89
+ for (const J of b) {
90
+ const d = J.daily;
91
+ D = {
92
+ code: (h = d.weather_code) == null ? void 0 : h.at(u),
93
93
  temp: {
94
- max: (s = m.temperature_2m_max) == null ? void 0 : s.at(p),
95
- min: (u = m.temperature_2m_min) == null ? void 0 : u.at(p)
94
+ max: (s = d.temperature_2m_max) == null ? void 0 : s.at(u),
95
+ min: (m = d.temperature_2m_min) == null ? void 0 : m.at(u)
96
96
  },
97
97
  apparentTemp: {
98
- max: (C = m.apparent_temperature_max) == null ? void 0 : C.at(p),
99
- min: (W = m.apparent_temperature_min) == null ? void 0 : W.at(p)
98
+ max: (L = d.apparent_temperature_max) == null ? void 0 : L.at(u),
99
+ min: (P = d.apparent_temperature_min) == null ? void 0 : P.at(u)
100
100
  },
101
101
  precip: {
102
- sum: (P = m.precipitation_sum) == null ? void 0 : P.at(p),
103
- hours: (N = m.precipitation_hours) == null ? void 0 : N.at(p),
104
- probability: (I = m.precipitation_probability_max) == null ? void 0 : I.at(p)
102
+ sum: (z = d.precipitation_sum) == null ? void 0 : z.at(u),
103
+ hours: (S = d.precipitation_hours) == null ? void 0 : S.at(u),
104
+ probability: (M = d.precipitation_probability_max) == null ? void 0 : M.at(u)
105
105
  },
106
106
  wind: {
107
- speed: (H = m.wind_speed_10m_max) == null ? void 0 : H.at(p),
108
- kts: (v = m.wind_speed_10m_max) == null ? void 0 : v.at(p),
109
- degree: (S = m.wind_direction_10m_dominant) == null ? void 0 : S.at(p),
110
- gusts: (a = m.wind_gusts_10m_max) == null ? void 0 : a.at(p)
107
+ speed: (C = d.wind_speed_10m_max) == null ? void 0 : C.at(u),
108
+ kts: (f = d.wind_speed_10m_max) == null ? void 0 : f.at(u),
109
+ degree: (k = d.wind_direction_10m_dominant) == null ? void 0 : k.at(u),
110
+ gusts: (a = d.wind_gusts_10m_max) == null ? void 0 : a.at(u)
111
111
  }
112
112
  };
113
- const { name: X, url: Q } = this.parseWeatherCode(L.code, !0);
114
- L.name = X, L.url = Q, L.wind.scale = this.beaufort(this.kts2ms(L.wind.kts)), L.wind.direction = this.degree2Direction(L.wind.degree);
113
+ const { name: Q, url: X } = this.parseWeatherCode(D.code, !0);
114
+ D.name = Q, D.url = X, D.wind.scale = this.beaufort(this.kts2ms(D.wind.kts)), D.wind.direction = this.degree2Direction(D.wind.degree);
115
115
  }
116
- for (const g of M) {
117
- const m = g.daily;
118
- f = {
116
+ for (const J of N) {
117
+ const d = J.daily;
118
+ B = {
119
119
  wave: {
120
120
  sig: {
121
- height: (l = m.wave_height_max) == null ? void 0 : l.at(p),
122
- degree: (R = m.wave_direction_dominant) == null ? void 0 : R.at(p),
123
- period: (T = m.wave_period_max) == null ? void 0 : T.at(p)
121
+ height: (r = d.wave_height_max) == null ? void 0 : r.at(u),
122
+ degree: (H = d.wave_direction_dominant) == null ? void 0 : H.at(u),
123
+ period: (W = d.wave_period_max) == null ? void 0 : W.at(u)
124
124
  },
125
125
  swell: {
126
- height: (E = m.swell_wave_height_max) == null ? void 0 : E.at(p),
127
- degree: (G = m.wave_direction_dominant) == null ? void 0 : G.at(p),
128
- period: (A = m.swell_wave_period_max) == null ? void 0 : A.at(p),
129
- peakPeriod: (F = m.swell_wave_peak_period_max) == null ? void 0 : F.at(p)
126
+ height: (T = d.swell_wave_height_max) == null ? void 0 : T.at(u),
127
+ degree: (R = d.wave_direction_dominant) == null ? void 0 : R.at(u),
128
+ period: (E = d.swell_wave_period_max) == null ? void 0 : E.at(u),
129
+ peakPeriod: (A = d.swell_wave_peak_period_max) == null ? void 0 : A.at(u)
130
130
  },
131
131
  wd: {
132
- height: (V = m.wind_wave_height_max) == null ? void 0 : V.at(p),
133
- degree: (O = m.wind_wave_direction_dominant) == null ? void 0 : O.at(p),
134
- period: (B = m.wind_wave_period_max) == null ? void 0 : B.at(p),
135
- peakPeriod: (J = m.wind_wave_peak_period_max) == null ? void 0 : J.at(p)
132
+ height: (G = d.wind_wave_height_max) == null ? void 0 : G.at(u),
133
+ degree: (F = d.wind_wave_direction_dominant) == null ? void 0 : F.at(u),
134
+ period: (V = d.wind_wave_period_max) == null ? void 0 : V.at(u),
135
+ peakPeriod: (O = d.wind_wave_peak_period_max) == null ? void 0 : O.at(u)
136
136
  }
137
137
  }
138
- }, f.wave.sig.direction = this.degree2Direction(f.wave.sig.degree), f.wave.swell.direction = this.degree2Direction(f.wave.swell.degree), f.wave.wd.direction = this.degree2Direction(f.wave.wd.degree), f.wave.sig.scale = this.douglas(f.wave.sig.height), f.wave.swell.scale = this.douglas(f.wave.swell.height), f.wave.wd.scale = this.douglas(f.wave.wd.height);
138
+ }, B.wave = this.parseWave(B.wave);
139
139
  }
140
- j.push({
141
- utc: Z.add(p, "d").utc().format(),
142
- weather: { ...L },
143
- ...f
140
+ Y.push({
141
+ utc: Z.add(u, "d").utc().format(),
142
+ weather: { ...D },
143
+ ...B
144
144
  });
145
145
  }
146
- return j;
146
+ return Y;
147
147
  }
148
- static parseWeatherCode(t, e) {
149
- const h = this.weatherCode(t);
150
- return e ? h.day : h.night;
148
+ static parseWave(e) {
149
+ 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;
151
150
  }
152
- static weatherCode(t) {
153
- const e = {
154
- code: t
151
+ static parseWeatherCode(e, t) {
152
+ const h = this.weatherCode(e);
153
+ return t ? h.day : h.night;
154
+ }
155
+ static weatherCode(e) {
156
+ const t = {
157
+ code: e
155
158
  };
156
- switch (t) {
159
+ switch (e) {
157
160
  case 0:
158
- e.day = {
161
+ t.day = {
159
162
  name: "Sunny",
160
163
  url: "https://osshz.idmwx.com/asset/weather/01d.svg"
161
- }, e.night = {
164
+ }, t.night = {
162
165
  name: "Clear",
163
166
  url: "https://osshz.idmwx.com/asset/weather/01n.svg"
164
167
  };
165
168
  break;
166
169
  case 1:
167
- e.day = {
170
+ t.day = {
168
171
  name: "Mainly Sunny",
169
172
  url: "https://osshz.idmwx.com/asset/weather/01d.svg"
170
- }, e.night = {
173
+ }, t.night = {
171
174
  name: "Mainly Clear",
172
175
  url: "https://osshz.idmwx.com/asset/weather/01n.svg"
173
176
  };
174
177
  break;
175
178
  case 2:
176
- e.day = {
179
+ t.day = {
177
180
  name: "Partly Cloudy",
178
181
  url: "https://osshz.idmwx.com/asset/weather/02d.svg"
179
- }, e.night = {
182
+ }, t.night = {
180
183
  name: "Partly Cloudy",
181
184
  url: "https://osshz.idmwx.com/asset/weather/02n.svg"
182
185
  };
183
186
  break;
184
187
  case 3:
185
- e.day = {
188
+ t.day = {
186
189
  name: "Cloudy",
187
190
  url: "https://osshz.idmwx.com/asset/weather/03d.svg"
188
- }, e.night = {
191
+ }, t.night = {
189
192
  name: "Cloudy",
190
193
  url: "https://osshz.idmwx.com/asset/weather/03n.svg"
191
194
  };
192
195
  break;
193
196
  case 45:
194
- e.day = {
197
+ t.day = {
195
198
  name: "Foggy",
196
199
  url: "https://osshz.idmwx.com/asset/weather/50d.svg"
197
- }, e.night = {
200
+ }, t.night = {
198
201
  name: "Foggy",
199
202
  url: "https://osshz.idmwx.com/asset/weather/50n.svg"
200
203
  };
201
204
  break;
202
205
  case 48:
203
- e.day = {
206
+ t.day = {
204
207
  name: "Rime Fog",
205
208
  url: "https://osshz.idmwx.com/asset/weather/50d.svg"
206
- }, e.night = {
209
+ }, t.night = {
207
210
  name: "Rime Fog",
208
211
  url: "https://osshz.idmwx.com/asset/weather/50n.svg"
209
212
  };
210
213
  break;
211
214
  case 51:
212
- e.day = {
215
+ t.day = {
213
216
  name: "Light Drizzle",
214
217
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
215
- }, e.night = {
218
+ }, t.night = {
216
219
  name: "Light Drizzle",
217
220
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
218
221
  };
219
222
  break;
220
223
  case 53:
221
- e.day = {
224
+ t.day = {
222
225
  name: "Drizzle",
223
226
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
224
- }, e.night = {
227
+ }, t.night = {
225
228
  name: "Drizzle",
226
229
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
227
230
  };
228
231
  break;
229
232
  case 55:
230
- e.day = {
233
+ t.day = {
231
234
  name: "Heavy Drizzle",
232
235
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
233
- }, e.night = {
236
+ }, t.night = {
234
237
  name: "Heavy Drizzle",
235
238
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
236
239
  };
237
240
  break;
238
241
  case 56:
239
- e.day = {
242
+ t.day = {
240
243
  name: "Light Freezing Drizzle",
241
244
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
242
- }, e.night = {
245
+ }, t.night = {
243
246
  name: "Light Freezing Drizzle",
244
247
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
245
248
  };
246
249
  break;
247
250
  case 57:
248
- e.day = {
251
+ t.day = {
249
252
  name: "Freezing Drizzle",
250
253
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
251
- }, e.night = {
254
+ }, t.night = {
252
255
  name: "Freezing Drizzle",
253
256
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
254
257
  };
255
258
  break;
256
259
  case 61:
257
- e.day = {
260
+ t.day = {
258
261
  name: "Light Rain",
259
262
  url: "https://osshz.idmwx.com/asset/weather/10d.svg"
260
- }, e.night = {
263
+ }, t.night = {
261
264
  name: "Light Rain",
262
265
  url: "https://osshz.idmwx.com/asset/weather/10n.svg"
263
266
  };
264
267
  break;
265
268
  case 63:
266
- e.day = {
269
+ t.day = {
267
270
  name: "Rain",
268
271
  url: "https://osshz.idmwx.com/asset/weather/10d.svg"
269
- }, e.night = {
272
+ }, t.night = {
270
273
  name: "Rain",
271
274
  url: "https://osshz.idmwx.com/asset/weather/10n.svg"
272
275
  };
273
276
  break;
274
277
  case 65:
275
- e.day = {
278
+ t.day = {
276
279
  name: "Heavy Rain",
277
280
  url: "https://osshz.idmwx.com/asset/weather/10d.svg"
278
- }, e.night = {
281
+ }, t.night = {
279
282
  name: "Heavy Rain",
280
283
  url: "https://osshz.idmwx.com/asset/weather/10n.svg"
281
284
  };
282
285
  break;
283
286
  case 66:
284
- e.day = {
287
+ t.day = {
285
288
  name: "Light Freezing Rain",
286
289
  url: "https://osshz.idmwx.com/asset/weather/10d.svg"
287
- }, e.night = {
290
+ }, t.night = {
288
291
  name: "Light Freezing Rain",
289
292
  url: "https://osshz.idmwx.com/asset/weather/10n.svg"
290
293
  };
291
294
  break;
292
295
  case 67:
293
- e.day = {
296
+ t.day = {
294
297
  name: "Freezing Rain",
295
298
  url: "https://osshz.idmwx.com/asset/weather/10d.svg"
296
- }, e.night = {
299
+ }, t.night = {
297
300
  name: "Freezing Rain",
298
301
  url: "https://osshz.idmwx.com/asset/weather/10n.svg"
299
302
  };
300
303
  break;
301
304
  case 71:
302
- e.day = {
305
+ t.day = {
303
306
  name: "Light Snow",
304
307
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
305
- }, e.night = {
308
+ }, t.night = {
306
309
  name: "Light Snow",
307
310
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
308
311
  };
309
312
  break;
310
313
  case 73:
311
- e.day = {
314
+ t.day = {
312
315
  name: "Snow",
313
316
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
314
- }, e.night = {
317
+ }, t.night = {
315
318
  name: "Snow",
316
319
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
317
320
  };
318
321
  break;
319
322
  case 75:
320
- e.day = {
323
+ t.day = {
321
324
  name: "Heavy Snow",
322
325
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
323
- }, e.night = {
326
+ }, t.night = {
324
327
  name: "Heavy Snow",
325
328
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
326
329
  };
327
330
  break;
328
331
  case 77:
329
- e.day = {
332
+ t.day = {
330
333
  name: "Snow Grains",
331
334
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
332
- }, e.night = {
335
+ }, t.night = {
333
336
  name: "Snow Grains",
334
337
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
335
338
  };
336
339
  break;
337
340
  case 80:
338
- e.day = {
341
+ t.day = {
339
342
  name: "Light Showers",
340
343
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
341
- }, e.night = {
344
+ }, t.night = {
342
345
  name: "Light Showers",
343
346
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
344
347
  };
345
348
  break;
346
349
  case 81:
347
- e.day = {
350
+ t.day = {
348
351
  name: "Showers",
349
352
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
350
- }, e.night = {
353
+ }, t.night = {
351
354
  name: "Showers",
352
355
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
353
356
  };
354
357
  break;
355
358
  case 82:
356
- e.day = {
359
+ t.day = {
357
360
  name: "Heavy Showers",
358
361
  url: "https://osshz.idmwx.com/asset/weather/09d.svg"
359
- }, e.night = {
362
+ }, t.night = {
360
363
  name: "Heavy Showers",
361
364
  url: "https://osshz.idmwx.com/asset/weather/09n.svg"
362
365
  };
363
366
  break;
364
367
  case 85:
365
- e.day = {
368
+ t.day = {
366
369
  name: "Light Snow Showers",
367
370
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
368
- }, e.night = {
371
+ }, t.night = {
369
372
  name: "Light Snow Showers",
370
373
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
371
374
  };
372
375
  break;
373
376
  case 86:
374
- e.day = {
377
+ t.day = {
375
378
  name: "Snow Showers",
376
379
  url: "https://osshz.idmwx.com/asset/weather/13d.svg"
377
- }, e.night = {
380
+ }, t.night = {
378
381
  name: "Snow Showers",
379
382
  url: "https://osshz.idmwx.com/asset/weather/13n.svg"
380
383
  };
381
384
  break;
382
385
  case 95:
383
- e.day = {
386
+ t.day = {
384
387
  name: "Thunderstorm",
385
388
  url: "https://osshz.idmwx.com/asset/weather/11d.svg"
386
- }, e.night = {
389
+ }, t.night = {
387
390
  name: "Thunderstorm",
388
391
  url: "https://osshz.idmwx.com/asset/weather/11n.svg"
389
392
  };
390
393
  break;
391
394
  case 96:
392
- e.day = {
395
+ t.day = {
393
396
  name: "Light Thunderstorms With Hail",
394
397
  url: "https://osshz.idmwx.com/asset/weather/11d.svg"
395
- }, e.night = {
398
+ }, t.night = {
396
399
  name: "Light Thunderstorms With Hail",
397
400
  url: "https://osshz.idmwx.com/asset/weather/11n.svg"
398
401
  };
399
402
  break;
400
403
  case 99:
401
- e.day = {
404
+ t.day = {
402
405
  name: "Thunderstorms With Hail",
403
406
  url: "https://osshz.idmwx.com/asset/weather/11d.svg"
404
- }, e.night = {
407
+ }, t.night = {
405
408
  name: "Thunderstorms With Hail",
406
409
  url: "https://osshz.idmwx.com/asset/weather/11n.svg"
407
410
  };
408
411
  break;
409
412
  }
410
- return e;
413
+ return t;
411
414
  }
412
- static kts2ms(t) {
413
- return Number.isNaN(t) ? t : Math.round(t * 1852 / 3600 * 1e4) / 1e4;
415
+ static kts2ms(e) {
416
+ return isNaN(e) ? e : Math.round(e * 1852 / 3600 * 1e4) / 1e4;
414
417
  }
415
- static kts2kmh(t) {
416
- return Number.isNaN(t) ? t : t * 1.852;
418
+ static kts2kmh(e) {
419
+ return isNaN(e) ? e : e * 1.852;
417
420
  }
418
- static m2nm(t) {
419
- return Number.isNaN(t) ? t : Math.round(t / 1e3 / 1.852 * 1e4) / 1e4;
421
+ static m2nm(e) {
422
+ return isNaN(e) ? e : Math.round(e / 1e3 / 1.852 * 1e4) / 1e4;
420
423
  }
421
- static kmh2kts(t) {
422
- return Number.isNaN(t) ? t : this.ms2kts(t * 1e3 / 3600);
424
+ static kmh2kts(e) {
425
+ return isNaN(e) ? e : this.ms2kts(e * 1e3 / 3600);
423
426
  }
424
- static ms2kts(t) {
425
- return Number.isNaN(t) ? t : Math.round(t * 3600 / 1852 * 1e4) / 1e4;
427
+ static ms2kts(e) {
428
+ return isNaN(e) ? e : Math.round(e * 3600 / 1852 * 1e4) / 1e4;
426
429
  }
427
430
  /**
428
431
  * 角度转为弧度
429
432
  * @param degree
430
433
  */
431
- static degree2Radian(t) {
432
- if (Number.isNaN(t))
433
- return t;
434
- let e = t % 360 / 360 * 2 * Math.PI;
435
- return e = e < 0 ? e + 2 * Math.PI : e, e;
434
+ static degree2Radian(e) {
435
+ if (isNaN(e) || e === null)
436
+ return e;
437
+ let t = e % 360 / 360 * 2 * Math.PI;
438
+ return t = t < 0 ? t + 2 * Math.PI : t, t;
436
439
  }
437
440
  /**
438
441
  * 将方位角转换为方向
439
442
  * @param degree 角度[-360,360]
440
443
  * @return {string}
441
444
  */
442
- static degree2Direction(t) {
443
- const e = this.degree2Radian(t);
445
+ static degree2Direction(e) {
446
+ const t = this.degree2Radian(e);
447
+ if (isNaN(t) || t === null)
448
+ return null;
444
449
  let h = "N/A";
445
450
  const s = Math.PI / 16;
446
- 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;
451
+ 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;
447
452
  }
448
453
  /**
449
454
  * 计算风力蒲福等级
450
455
  * @param speed m/s
451
456
  * @returns {number}
452
457
  */
453
- static beaufort(t) {
454
- let e = 0;
455
- 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;
458
+ static beaufort(e) {
459
+ let t = 0;
460
+ 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;
456
461
  }
457
462
  /**
458
463
  * 计算海浪等级
459
464
  * @param height 高度 m
460
465
  */
461
- static douglas(t) {
462
- let e = "Calm";
463
- 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;
466
+ static douglas(e) {
467
+ let t = "Calm";
468
+ 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;
464
469
  }
465
470
  }
466
- const fe = (r, t) => {
467
- const e = r.__vccOpts || r;
468
- for (const [h, s] of t)
469
- e[h] = s;
470
- return e;
471
- }, xe = {
471
+ const ke = (l, e) => {
472
+ const t = l.__vccOpts || l;
473
+ for (const [h, s] of e)
474
+ t[h] = s;
475
+ return t;
476
+ }, De = {
472
477
  name: "SpotReport",
473
478
  // components: { Search }, //Download
474
479
  props: {
@@ -478,7 +483,7 @@ const fe = (r, t) => {
478
483
  },
479
484
  ts: {
480
485
  type: String,
481
- default: U().utc().format()
486
+ default: I().utc().format()
482
487
  },
483
488
  timeZone: {
484
489
  type: Number,
@@ -493,9 +498,9 @@ const fe = (r, t) => {
493
498
  return {
494
499
  placeholder: "search for port name or coordinates",
495
500
  searchName: void 0,
496
- rawSearchIcon: ve(ge),
501
+ rawSearchIcon: _e(xe),
497
502
  positionGmt: void 0,
498
- localDate: void 0,
503
+ issuedDate: void 0,
499
504
  meteoData: {},
500
505
  a: void 0,
501
506
  positionList: [],
@@ -504,55 +509,56 @@ const fe = (r, t) => {
504
509
  activeIndex: void 0,
505
510
  tableData: {},
506
511
  pickedDate: void 0,
512
+ pickedWeek: "Today",
507
513
  collectList: [],
508
514
  isCollected: !1
509
515
  };
510
516
  },
511
517
  computed: {
512
518
  computeHourL() {
513
- return function(r) {
514
- return r ? `${q(r).tz(this.positionGmt).format("HH")}` : "-";
519
+ return function(l) {
520
+ return l ? `${q(l).tz(this.positionGmt).format("HH")}` : "-";
515
521
  };
516
522
  },
517
523
  computeHourZ() {
518
- return function(r) {
519
- return r ? `${U(r).utc().format("HH")}Z` : "-";
524
+ return function(l) {
525
+ return l ? `${I(l).utc().format("HH")}Z` : "-";
520
526
  };
521
527
  },
522
528
  computeWeek() {
523
- return function(r) {
524
- return r ? `${q(r).tz(this.positionGmt).format("dddd")}` : "-";
529
+ return function(l) {
530
+ return l ? `${q(l).tz(this.positionGmt).format("dddd")}` : "-";
525
531
  };
526
532
  },
527
533
  computeMMMDD() {
528
- return function(r) {
529
- return r ? `${q(r).tz(this.positionGmt).format("MMM-DD")}` : "-";
534
+ return function(l) {
535
+ return l ? `${q(l).tz(this.positionGmt).format("MMM-DD")}` : "-";
530
536
  };
531
537
  },
532
538
  computeLat() {
533
- return function(r, t = 4) {
534
- return se.lat2pretty(r, t).pretty;
539
+ return function(l, e = 4) {
540
+ return ae.lat2pretty(l, e).pretty;
535
541
  };
536
542
  },
537
543
  computeLng() {
538
- return function(r, t = 4) {
539
- return se.lng2pretty(r, t).pretty;
544
+ return function(l, e = 4) {
545
+ return ae.lng2pretty(l, e).pretty;
540
546
  };
541
547
  },
542
548
  roundPrecision() {
543
- return function(r, t = 4) {
544
- return isNaN(r) ? "-" : se.roundPrecision(r, t);
549
+ return function(l, e = 4) {
550
+ return isNaN(l) ? "-" : ae.roundPrecision(l, e);
545
551
  };
546
552
  }
547
553
  },
548
554
  watch: {
549
555
  "report.version": {
550
556
  handler() {
551
- var r, t;
557
+ var l, e;
552
558
  this.report && (this.meteoData = this.report, this.position = {
553
559
  id: this.report.portId,
554
- lat: (r = this.report) == null ? void 0 : r.lat,
555
- lng: (t = this.report) == null ? void 0 : t.lng,
560
+ lat: (l = this.report) == null ? void 0 : l.lat,
561
+ lng: (e = this.report) == null ? void 0 : e.lng,
556
562
  name: this.computeLat(this.report.lat) + "," + this.computeLng(this.report.lng)
557
563
  }, this.handleRender());
558
564
  }
@@ -560,23 +566,24 @@ const fe = (r, t) => {
560
566
  },
561
567
  methods: {
562
568
  handleRender() {
563
- var r, t;
564
- this.loading = !1, this.positionGmt = (t = (r = this.meteoData.weather) == null ? void 0 : r[0]) == null ? void 0 : t.timezone, this.localDate = q(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm, YYYY [LT]"), this.activeIndex = q(this.ts).tz(this.positionGmt).hour(), this.pickedDate = q(this.ts).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.$nextTick(() => {
565
- this.initInfo(), this.initTableData(), this.initEchart();
569
+ this.initInfo(), this.initTableData(), this.$nextTick(() => {
570
+ this.initEchart();
566
571
  });
567
572
  },
568
573
  initInfo() {
569
- this.collectList = JSON.parse(localStorage.getItem("idmCollectList") || "[]"), this.positionList = JSON.parse(JSON.stringify(this.collectList)), this.isCollected = this.collectList.some((r) => {
570
- var t;
571
- return r.name === ((t = this.position) == null ? void 0 : t.name);
574
+ var l, e;
575
+ this.loading = !1, this.positionGmt = (e = (l = this.meteoData.weather) == null ? void 0 : l[0]) == null ? void 0 : e.timezone, this.issuedDate = I(this.ts).utc().format("MMM-DD/HHmm,YYYY[Z]"), this.activeIndex = q(this.ts).tz(this.positionGmt).hour(), this.pickedDate = q(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((t) => {
576
+ var h;
577
+ return t.name === ((h = this.position) == null ? void 0 : h.name);
572
578
  });
573
579
  },
574
580
  initTableData() {
575
- var r, t, e, h, s, u, C, W, P, N, I, H, v, S, a, l, R, T, E, G, A, F, V, O, B, J, w, k, M, Z, K, j, L;
581
+ var l, e, t, h, s, m, L, P, z, S, M, C, f, k, a, r, H, W, T, R, E, A, G, F, V, O, w, b, N, Z, j, Y, D, B;
576
582
  this.tableData = {
577
583
  hours: [],
578
584
  utcHours: [],
579
585
  weatherUrls: [],
586
+ weatherNames: [],
580
587
  temp: [],
581
588
  precipProbability: [],
582
589
  precip1h: [],
@@ -594,25 +601,27 @@ const fe = (r, t) => {
594
601
  swellDir: [],
595
602
  swellPeriod: [],
596
603
  currentSpeed: [],
597
- currentDir: []
604
+ currentDir: [],
605
+ seaLevel: [],
606
+ seaTemp: []
598
607
  };
599
- for (let f = 0; f < 24; f++) {
600
- const p = U(this.pickedDate).clone().add(f, "h").format();
601
- this.tableData.hours.push(p);
602
- const g = ((r = ce.pickHourly(this.meteoData, p)) == null ? void 0 : r[0]) || {};
603
- this.tableData.weatherUrls.push((t = g.weather) == null ? void 0 : t.url), this.tableData.temp.push(this.roundPrecision((e = g.weather) == null ? void 0 : e.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((s = (h = g.weather) == null ? void 0 : h.precip) == null ? void 0 : s.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((C = (u = g.weather) == null ? void 0 : u.precip) == null ? void 0 : C.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((W = g.weather) == null ? void 0 : W.visibility, 0) ?? "-"), this.tableData.humidity.push(this.roundPrecision((P = g.weather) == null ? void 0 : P.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((v = (H = g.weather) == null ? void 0 : H.wind) == null ? void 0 : v.bearing), this.tableData.windGust.push(this.roundPrecision((a = (S = g.weather) == null ? void 0 : S.wind) == null ? void 0 : a.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R = (l = g.wave) == null ? void 0 : l.sig) == null ? void 0 : R.height, 1) ?? "-"), this.tableData.sigwaveDir.push((E = (T = g.wave) == null ? void 0 : T.sig) == null ? void 0 : E.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((A = (G = g.wave) == null ? void 0 : G.wd) == null ? void 0 : A.height, 1) ?? "-"), this.tableData.windwaveDir.push((V = (F = g.wave) == null ? void 0 : F.wd) == null ? void 0 : V.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((w = (J = g.wave) == null ? void 0 : J.swell) == null ? void 0 : w.height, 1) ?? "-"), this.tableData.swellDir.push((M = (k = g.wave) == null ? void 0 : k.swell) == null ? void 0 : M.bearing), this.tableData.swellPeriod.push(this.roundPrecision((K = (Z = g.wave) == null ? void 0 : Z.swell) == null ? void 0 : K.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((j = g.current) == null ? void 0 : j.speed, 1) ?? "-"), this.tableData.currentDir.push((L = g.current) == null ? void 0 : L.bearing);
608
+ for (let u = 0; u < 24; u++) {
609
+ const J = I(this.pickedDate).clone().add(u, "h").format();
610
+ this.tableData.hours.push(J);
611
+ const d = ((l = we.pickHourly(this.meteoData, J)) == null ? void 0 : l[0]) || {};
612
+ this.tableData.weatherUrls.push((e = d.weather) == null ? void 0 : e.url), this.tableData.weatherNames.push(((t = d.weather) == null ? void 0 : t.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((h = d.weather) == null ? void 0 : h.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (s = d.weather) == null ? void 0 : s.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((P = (L = d.weather) == null ? void 0 : L.precip) == null ? void 0 : P.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((z = d.weather) == null ? void 0 : z.visibility, 0) ?? "-"), this.tableData.humidity.push(this.roundPrecision((S = d.weather) == null ? void 0 : S.rh, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((C = (M = d.weather) == null ? void 0 : M.wind) == null ? void 0 : C.kts, 1)), this.tableData.windDir.push((k = (f = d.weather) == null ? void 0 : f.wind) == null ? void 0 : k.bearing), this.tableData.windGust.push(this.roundPrecision((r = (a = d.weather) == null ? void 0 : a.wind) == null ? void 0 : r.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((W = (H = d.wave) == null ? void 0 : H.sig) == null ? void 0 : W.height, 1) ?? "-"), this.tableData.sigwaveDir.push((R = (T = d.wave) == null ? void 0 : T.sig) == null ? void 0 : R.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((A = (E = d.wave) == null ? void 0 : E.wd) == null ? void 0 : A.height, 1) ?? "-"), this.tableData.windwaveDir.push((F = (G = d.wave) == null ? void 0 : G.wd) == null ? void 0 : F.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((O = (V = d.wave) == null ? void 0 : V.wd) == null ? void 0 : O.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((b = (w = d.wave) == null ? void 0 : w.swell) == null ? void 0 : b.height, 1) ?? "-"), this.tableData.swellDir.push((Z = (N = d.wave) == null ? void 0 : N.swell) == null ? void 0 : Z.bearing), this.tableData.swellPeriod.push(this.roundPrecision((Y = (j = d.wave) == null ? void 0 : j.swell) == null ? void 0 : Y.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((D = d.current) == null ? void 0 : D.speed, 1) ?? "-"), this.tableData.currentDir.push((B = d.current) == null ? void 0 : B.bearing), this.tableData.seaLevel.push(this.roundPrecision(d.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(d.sst, 1) ?? "-");
604
613
  }
605
614
  },
606
615
  initEchart() {
607
- var l, R, T, E, G, A, F, V, O, B, J;
608
- const r = [], t = [], e = [], h = [], s = [], u = [], C = [], W = [], P = [];
616
+ var r, H, W, T, R, E, A, G, F, V, O;
617
+ const l = [], e = [], t = [], h = [], s = [], m = [], L = [], P = [], z = [];
609
618
  for (let w = 0; w < 7; w++) {
610
- const k = U(this.pickedDate).clone().add(w, "d");
611
- r.push(q(k).tz(this.positionGmt).format("yyyy-MM-DD")), t.push(this.computeMMMDD(k)), e.push(this.computeWeek(k));
612
- const M = ((l = ce.pickDaily(this.meteoData, k)) == null ? void 0 : l[0]) || {};
613
- h.push(this.roundPrecision((T = (R = M.weather) == null ? void 0 : R.temp) == null ? void 0 : T.min, 0)), s.push(this.roundPrecision((G = (E = M.weather) == null ? void 0 : E.temp) == null ? void 0 : G.max, 0)), C.push(this.roundPrecision((F = (A = M.weather) == null ? void 0 : A.wind) == null ? void 0 : F.kts, 1) + " kts"), P.push(this.roundPrecision((O = (V = M.weather) == null ? void 0 : V.precip) == null ? void 0 : O.sum, 0) + " mm"), u.push({ symbol: "image://" + ((B = M.weather) == null ? void 0 : B.url) }), W.push({ symbol: "image://" + ((J = M.weather) == null ? void 0 : J.url) });
619
+ const b = I(this.pickedDate).clone().add(w, "d");
620
+ l.push(q(b).tz(this.positionGmt).format("yyyy-MM-DD")), e.push(this.computeMMMDD(b)), t.push(w === 0 ? "Today" : this.computeWeek(b));
621
+ const N = ((r = we.pickDaily(this.meteoData, b)) == null ? void 0 : r[0]) || {};
622
+ h.push(this.roundPrecision((W = (H = N.weather) == null ? void 0 : H.temp) == null ? void 0 : W.min, 0)), s.push(this.roundPrecision((R = (T = N.weather) == null ? void 0 : T.temp) == null ? void 0 : R.max, 0)), L.push(this.roundPrecision((A = (E = N.weather) == null ? void 0 : E.wind) == null ? void 0 : A.kts, 1) + " kts"), z.push(this.roundPrecision((F = (G = N.weather) == null ? void 0 : G.precip) == null ? void 0 : F.sum, 0) + " mm"), m.push({ symbol: "image://" + ((V = N.weather) == null ? void 0 : V.url) }), P.push({ symbol: "image://" + ((O = N.weather) == null ? void 0 : O.url) });
614
623
  }
615
- const N = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) - Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))), I = Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))) - 1.5 * N, H = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) + 2 * N, v = 4 + 0.5 / r.length * 92 + "%", S = re.init(document.getElementById("weather-chart")), a = {
624
+ const S = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) - Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))), M = Math.min(...h.filter((w) => typeof w == "number" && !isNaN(w))) - 1.5 * S, C = Math.max(...s.filter((w) => typeof w == "number" && !isNaN(w))) + 2 * S, f = 4 + 0.5 / l.length * 92 + "%", k = ue.init(document.getElementById("weather-chart")), a = {
616
625
  grid: {
617
626
  bottom: 0,
618
627
  top: 0,
@@ -632,13 +641,13 @@ const fe = (r, t) => {
632
641
  top: "50%",
633
642
  height: "50%",
634
643
  type: "category",
635
- data: r,
644
+ data: l,
636
645
  show: !1
637
646
  },
638
647
  singleAxis: [
639
648
  {
640
- left: v,
641
- right: v,
649
+ left: f,
650
+ right: f,
642
651
  type: "category",
643
652
  show: !1,
644
653
  axisLine: {
@@ -658,13 +667,13 @@ const fe = (r, t) => {
658
667
  // 隐藏分割线
659
668
  },
660
669
  boundaryGap: !1,
661
- data: r,
662
- top: "5%",
670
+ data: l,
671
+ top: "7%",
663
672
  height: "2%"
664
673
  },
665
674
  {
666
- left: v,
667
- right: v,
675
+ left: f,
676
+ right: f,
668
677
  type: "category",
669
678
  show: !1,
670
679
  axisLine: {
@@ -684,13 +693,13 @@ const fe = (r, t) => {
684
693
  // 隐藏分割线
685
694
  },
686
695
  boundaryGap: !1,
687
- data: r,
688
- top: "14%",
696
+ data: l,
697
+ top: "16%",
689
698
  height: "2%"
690
699
  },
691
700
  {
692
- left: v,
693
- right: v,
701
+ left: f,
702
+ right: f,
694
703
  type: "category",
695
704
  show: !1,
696
705
  axisLine: {
@@ -710,13 +719,13 @@ const fe = (r, t) => {
710
719
  // 隐藏分割线
711
720
  },
712
721
  boundaryGap: !1,
713
- data: r,
722
+ data: l,
714
723
  top: "27%",
715
724
  height: "2%"
716
725
  },
717
726
  {
718
- left: v,
719
- right: v,
727
+ left: f,
728
+ right: f,
720
729
  type: "category",
721
730
  show: !1,
722
731
  axisLine: {
@@ -736,13 +745,13 @@ const fe = (r, t) => {
736
745
  // 隐藏分割线
737
746
  },
738
747
  boundaryGap: !1,
739
- data: r,
748
+ data: l,
740
749
  top: "84%",
741
750
  height: "2%"
742
751
  },
743
752
  {
744
- left: v,
745
- right: v,
753
+ left: f,
754
+ right: f,
746
755
  type: "category",
747
756
  show: !1,
748
757
  axisLine: {
@@ -762,7 +771,7 @@ const fe = (r, t) => {
762
771
  // 隐藏分割线
763
772
  },
764
773
  boundaryGap: !1,
765
- data: r,
774
+ data: l,
766
775
  top: "93%",
767
776
  height: "2%"
768
777
  }
@@ -771,8 +780,8 @@ const fe = (r, t) => {
771
780
  type: "value",
772
781
  name: "温度(℃)",
773
782
  show: !1,
774
- min: I,
775
- max: H,
783
+ min: M,
784
+ max: C,
776
785
  axisLabel: {
777
786
  formatter: "{value} °C"
778
787
  }
@@ -782,10 +791,11 @@ const fe = (r, t) => {
782
791
  singleAxisIndex: 0,
783
792
  coordinateSystem: "singleAxis",
784
793
  type: "scatter",
785
- data: e,
794
+ data: t,
786
795
  label: {
787
796
  show: !0,
788
797
  color: "#000",
798
+ fontSize: 14,
789
799
  formatter: "{c}"
790
800
  },
791
801
  symbolSize: 0
@@ -794,7 +804,7 @@ const fe = (r, t) => {
794
804
  singleAxisIndex: 1,
795
805
  coordinateSystem: "singleAxis",
796
806
  type: "scatter",
797
- data: t,
807
+ data: e,
798
808
  label: {
799
809
  show: !0,
800
810
  color: "#000",
@@ -806,7 +816,7 @@ const fe = (r, t) => {
806
816
  singleAxisIndex: 2,
807
817
  coordinateSystem: "singleAxis",
808
818
  type: "scatter",
809
- data: u,
819
+ data: m,
810
820
  symbolSize: 36
811
821
  },
812
822
  {
@@ -833,7 +843,7 @@ const fe = (r, t) => {
833
843
  x: "4%"
834
844
  },
835
845
  {
836
- x: 4 + 1 / r.length * 92 + "%"
846
+ x: 4 + 1 / l.length * 92 + "%"
837
847
  }
838
848
  ]
839
849
  ]
@@ -858,7 +868,7 @@ const fe = (r, t) => {
858
868
  singleAxisIndex: 3,
859
869
  coordinateSystem: "singleAxis",
860
870
  type: "scatter",
861
- data: C,
871
+ data: L,
862
872
  label: {
863
873
  show: !0,
864
874
  color: "#000",
@@ -870,7 +880,7 @@ const fe = (r, t) => {
870
880
  singleAxisIndex: 4,
871
881
  coordinateSystem: "singleAxis",
872
882
  type: "scatter",
873
- data: P,
883
+ data: z,
874
884
  label: {
875
885
  show: !0,
876
886
  color: "#000",
@@ -880,102 +890,98 @@ const fe = (r, t) => {
880
890
  }
881
891
  ]
882
892
  };
883
- S.setOption(a), S.on("click", (w) => {
884
- const k = w.dataIndex;
885
- this.pickedDate = q(r[k]).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.initTableData(), a.series[3].markArea = {
893
+ k.setOption(a), k.on("click", (w) => {
894
+ const b = w.dataIndex;
895
+ this.pickedDate = q(l[b]).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = b === 0 ? "Today" : this.computeWeek(this.pickedDate), this.initTableData(), a.series[3].markArea = {
886
896
  itemStyle: {
887
897
  color: "#e1f7ff"
888
898
  },
889
899
  data: [
890
900
  [
891
901
  {
892
- x: 4 + k / r.length * 92 + "%"
902
+ x: 4 + b / l.length * 92 + "%"
893
903
  },
894
904
  {
895
- x: 4 + (k + 1) / r.length * 92 + "%"
905
+ x: 4 + (b + 1) / l.length * 92 + "%"
896
906
  }
897
907
  ]
898
908
  ]
899
- }, S.setOption(a);
909
+ }, k.setOption(a);
900
910
  });
901
911
  },
902
912
  handleCollect() {
903
- this.isCollected = !this.isCollected, this.isCollected ? this.collectList.push({ name: this.position.name, lat: this.position.lat, lng: this.position.lng }) : this.collectList = this.collectList.filter((r) => r.name !== this.position.name), localStorage.setItem("idmCollectList", JSON.stringify(this.collectList));
913
+ this.isCollected = !this.isCollected, this.isCollected ? this.collectList.push({ name: this.position.name, lat: this.position.lat, lng: this.position.lng }) : this.collectList = this.collectList.filter((l) => l.name !== this.position.name), localStorage.setItem("idmCollectList", JSON.stringify(this.collectList));
904
914
  },
905
- async fetchSuggestPosition(r) {
915
+ async fetchSuggestPosition(l) {
906
916
  var h;
907
- const t = r.replaceAll(",", ",");
908
- if (!t)
917
+ const e = l.replaceAll(",", ",");
918
+ if (!e)
909
919
  return this.positionList = this.collectList, !1;
910
- const e = await de.get(`https://cbe.idmwx.com/api/arc/ports/suggest?n=${t}`, {
920
+ const t = await me.get(`https://cbe.idmwx.com/api/arc/ports/suggest?n=${e}`, {
911
921
  headers: {
912
922
  Authorization: this.token
913
923
  }
914
924
  });
915
- (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)));
925
+ (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)));
916
926
  },
917
927
  async handleFetchMeteo() {
918
- var e, h, s;
928
+ var t, h, s;
919
929
  if (!this.searchName)
920
930
  return !1;
921
931
  this.position = {
922
- portId: (e = this.positionList.find((u) => u.name === this.searchName)) == null ? void 0 : e.id,
923
- lat: (h = this.positionList.find((u) => u.name === this.searchName)) == null ? void 0 : h.lat,
924
- lng: (s = this.positionList.find((u) => u.name === this.searchName)) == null ? void 0 : s.lng,
932
+ portId: (t = this.positionList.find((m) => m.name === this.searchName)) == null ? void 0 : t.id,
933
+ lat: (h = this.positionList.find((m) => m.name === this.searchName)) == null ? void 0 : h.lat,
934
+ lng: (s = this.positionList.find((m) => m.name === this.searchName)) == null ? void 0 : s.lng,
925
935
  name: this.searchName
926
936
  }, this.handleClear();
927
- const r = {
937
+ const l = {
928
938
  lat: this.position.lat,
929
939
  lng: this.position.lng,
930
- datetime: this.ts ? U(this.ts).utc().add(-1, "d").format() : U().add(-1, "d").utc().format(),
940
+ datetime: this.ts ? I(this.ts).utc().add(-1, "d").format() : I().add(-1, "d").utc().format(),
931
941
  forecastDays: 8,
932
942
  selfHosted: !1
933
- }, t = await de.post("https://cbe.idmwx.com/api/arc/meteo2/spot/forecast", r, {
943
+ }, e = await me.post("https://cbe.idmwx.com/api/arc/meteo2/spot/forecast", l, {
934
944
  headers: {
935
945
  Authorization: this.token
936
946
  }
937
947
  });
938
- (t == null ? void 0 : t.data.code) === 0 && (this.meteoData = {
939
- ...t == null ? void 0 : t.data.data
948
+ (e == null ? void 0 : e.data.code) === 0 && (this.meteoData = {
949
+ ...e == null ? void 0 : e.data.data
940
950
  }), this.handleRender();
941
951
  },
942
952
  handleClear() {
943
- this.loading = !0, this.meteoData = {}, this.isCollected = !1, re.dispose(document.getElementById("weather-chart"));
953
+ this.loading = !0, this.meteoData = {}, this.isCollected = !1, ue.dispose(document.getElementById("weather-chart"));
944
954
  }
945
955
  }
946
- }, _e = { class: "spot-report" }, be = { class: "header-box flex-between" }, ke = { class: "bg" }, De = { class: "search-box flex-start" }, ze = { class: "content-box" }, Se = { class: "title-box flex-between" }, Le = { class: "main-title" }, Ne = { class: "sub-title" }, Me = { class: "flex-end" }, Ce = {
956
+ }, ze = { class: "spot-report" }, Se = { class: "header-box flex-between" }, Ne = { class: "bg" }, Le = { class: "search-box flex-start" }, Me = { class: "content-box" }, Ce = { class: "title-box flex-between" }, Pe = { class: "main-title" }, Ie = { class: "sub-title" }, He = { class: "flex-end" }, We = {
947
957
  key: 0,
948
958
  id: "weather-chart"
949
- }, Pe = {
959
+ }, Te = {
950
960
  key: 1,
951
961
  class: "weather-chart flex-center"
952
- }, Ie = {
962
+ }, Re = {
953
963
  key: 2,
954
964
  class: "weather-chart flex-center"
955
- }, He = {
965
+ }, Ee = {
956
966
  key: 3,
957
967
  class: "card-box"
958
- }, We = { class: "date" }, Re = { class: "basic-table" }, Te = { class: "day" }, Ee = {
959
- rowspan: "1",
960
- colspan: "1",
961
- class: "tr-title"
962
- }, Ge = { class: "hour" }, Ae = { class: "icon" }, Fe = ["src"], Ve = { class: "text" }, Oe = { class: "text" }, Be = { class: "text" }, Je = { class: "text" }, Ue = { class: "text" }, Ye = { class: "text" }, Ze = { key: 1 }, je = { class: "text" }, qe = { class: "text" }, Ke = { class: "wave-current-table" }, Qe = { class: "text" }, Xe = { class: "text" }, $e = { key: 1 }, et = { class: "text" }, tt = { class: "text" }, st = { class: "text" }, at = { key: 1 }, it = { class: "text" }, ot = { class: "text" }, nt = { class: "text" }, rt = { key: 1 }, lt = { class: "text" }, ht = {
968
+ }, Ae = { class: "date" }, Ge = { class: "basic-table" }, Fe = { class: "day" }, Ve = { class: "hour" }, Oe = { class: "icon" }, Be = ["src"], Ue = { class: "text" }, Ze = { class: "text" }, Je = { class: "text" }, Ye = { class: "text" }, je = { class: "text" }, qe = { class: "text" }, Ke = { key: 1 }, Qe = { class: "text" }, Xe = { class: "text" }, $e = { class: "wave-current-table" }, et = { class: "text" }, tt = { class: "text" }, st = { key: 1 }, at = { class: "text" }, it = { class: "text" }, nt = { class: "text" }, ot = { key: 1 }, rt = { class: "text" }, lt = { class: "text" }, dt = { class: "text" }, ht = { key: 1 }, ct = { class: "text" }, pt = { class: "sea-table" }, ut = { class: "text" }, mt = { class: "text" }, wt = {
963
969
  key: 4,
964
970
  class: "card-box flex-center"
965
- }, dt = {
971
+ }, gt = {
966
972
  key: 5,
967
973
  class: "card-box flex-center"
968
974
  };
969
- function ct(r, t, e, h, s, u) {
970
- var N, I, H, v, S;
971
- const C = ae("ElOption"), W = ae("ElSelect"), P = ae("ElTooltip");
972
- return o(), n("div", _e, [
973
- i("div", be, [
974
- i("div", ke, [
975
- i("div", De, [
976
- le(W, {
975
+ function vt(l, e, t, h, s, m) {
976
+ var S, M, C, f, k;
977
+ const L = ie("ElOption"), P = ie("ElSelect"), z = ie("ElTooltip");
978
+ return n(), o("div", ze, [
979
+ i("div", Se, [
980
+ i("div", Ne, [
981
+ i("div", Le, [
982
+ ne(P, {
977
983
  modelValue: s.searchName,
978
- "onUpdate:modelValue": t[0] || (t[0] = (a) => s.searchName = a),
984
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => s.searchName = a),
979
985
  filterable: "",
980
986
  class: "input",
981
987
  clearable: "",
@@ -983,13 +989,13 @@ function ct(r, t, e, h, s, u) {
983
989
  placeholder: s.placeholder,
984
990
  autocomplete: "",
985
991
  "remote-show-suffix": "",
986
- onFocus: t[1] || (t[1] = (a) => s.placeholder = ""),
987
- onBlur: t[2] || (t[2] = (a) => s.placeholder = "search for port name or coordinates"),
988
- "remote-method": u.fetchSuggestPosition,
989
- onChange: u.handleFetchMeteo
992
+ onFocus: e[1] || (e[1] = (a) => s.placeholder = ""),
993
+ onBlur: e[2] || (e[2] = (a) => s.placeholder = "search for port name or coordinates"),
994
+ "remote-method": m.fetchSuggestPosition,
995
+ onChange: m.handleFetchMeteo
990
996
  }, {
991
- default: he(() => [
992
- (o(!0), n(x, null, _(s.positionList, (a) => (o(), ye(C, {
997
+ default: oe(() => [
998
+ (n(!0), o(g, null, v(s.positionList, (a) => (n(), be(L, {
993
999
  key: a.name,
994
1000
  label: a.name,
995
1001
  value: a.name
@@ -1000,389 +1006,447 @@ function ct(r, t, e, h, s, u) {
1000
1006
  ])
1001
1007
  ])
1002
1008
  ]),
1003
- i("div", ze, [
1004
- i("div", Se, [
1009
+ i("div", Me, [
1010
+ i("div", Ce, [
1005
1011
  i("div", null, [
1006
- i("div", Le, "Weather forecast for " + y(((N = s.position) == null ? void 0 : N.name) || "-") + " ( " + y(s.positionGmt) + " )", 1),
1007
- i("div", Ne, "At " + y((I = s.position) != null && I.portId ? "port" : "coordinates") + ", issued " + y(s.localDate), 1)
1012
+ i("div", Pe, "Weather forecast for " + y(((S = s.position) == null ? void 0 : S.name) || "-") + " ( " + y(s.positionGmt) + " )", 1),
1013
+ i("div", Ie, "At " + y((M = s.position) != null && M.portId ? "port" : "coordinates") + ", issued " + y(s.issuedDate), 1)
1008
1014
  ]),
1009
- i("div", Me, [
1010
- le(P, {
1015
+ i("div", He, [
1016
+ ne(z, {
1011
1017
  placement: "left",
1012
1018
  effect: "light",
1013
1019
  content: s.isCollected ? "remove the port/coordinate from the search list" : "add the port/coordinate to the search list",
1014
1020
  "show-after": 1e3
1015
1021
  }, {
1016
- default: he(() => [
1017
- s.isCollected ? (o(), n("span", {
1022
+ default: oe(() => [
1023
+ s.isCollected ? (n(), o("span", {
1018
1024
  key: 0,
1019
1025
  class: "iconfont icon active",
1020
- onClick: t[3] || (t[3] = (...a) => u.handleCollect && u.handleCollect(...a))
1021
- }, "")) : (o(), n("span", {
1026
+ onClick: e[3] || (e[3] = (...a) => m.handleCollect && m.handleCollect(...a))
1027
+ }, "")) : (n(), o("span", {
1022
1028
  key: 1,
1023
1029
  class: "iconfont icon",
1024
- onClick: t[4] || (t[4] = (...a) => u.handleCollect && u.handleCollect(...a))
1030
+ onClick: e[4] || (e[4] = (...a) => m.handleCollect && m.handleCollect(...a))
1025
1031
  }, ""))
1026
1032
  ]),
1027
1033
  _: 1
1028
1034
  }, 8, ["content"])
1029
1035
  ])
1030
1036
  ]),
1031
- (H = s.position) != null && H.name && !s.loading ? (o(), n("div", Ce)) : s.loading ? (o(), n("div", Pe, "Loading....")) : s.position.name ? ie("", !0) : (o(), n("div", Ie, "No Data")),
1032
- (v = s.position) != null && v.name && !s.loading ? (o(), n("div", He, [
1033
- i("div", We, y(u.computeWeek(s.pickedDate)) + " " + y(u.computeMMMDD(s.pickedDate)), 1),
1034
- i("table", Re, [
1035
- i("tr", Te, [
1036
- i("th", Ee, "Local time (" + y(s.positionGmt) + ")", 1),
1037
- (o(!0), n(x, null, _(s.tableData.hours, (a, l) => (o(), n("th", {
1037
+ (C = s.position) != null && C.name && !s.loading ? (n(), o("div", We)) : s.loading ? (n(), o("div", Te, "Loading....")) : s.position.name ? re("", !0) : (n(), o("div", Re, "No Data")),
1038
+ (f = s.position) != null && f.name && !s.loading ? (n(), o("div", Ee, [
1039
+ i("div", Ae, y(s.pickedWeek) + " " + y(m.computeMMMDD(s.pickedDate)), 1),
1040
+ i("table", Ge, [
1041
+ i("tr", Fe, [
1042
+ e[5] || (e[5] = i("th", {
1038
1043
  rowspan: "1",
1039
1044
  colspan: "1",
1040
- class: b(s.activeIndex === l ? "active" : ""),
1045
+ class: "tr-title"
1046
+ }, [
1047
+ x("Local time"),
1048
+ i("span", { class: "unit" }, "(LT)")
1049
+ ], -1)),
1050
+ (n(!0), o(g, null, v(s.tableData.hours, (a, r) => (n(), o("th", {
1051
+ rowspan: "1",
1052
+ colspan: "1",
1053
+ class: _(s.activeIndex === r ? "active" : ""),
1041
1054
  key: Math.random() + "local"
1042
- }, y(u.computeHourL(a)), 3))), 128))
1055
+ }, y(m.computeHourL(a)), 3))), 128))
1043
1056
  ]),
1044
- i("tr", Ge, [
1045
- t[5] || (t[5] = i("th", {
1057
+ i("tr", Ve, [
1058
+ e[6] || (e[6] = i("th", {
1046
1059
  rowspan: "1",
1047
1060
  colspan: "1",
1048
1061
  class: "tr-title"
1049
- }, null, -1)),
1050
- (o(!0), n(x, null, _(s.tableData.hours, (a, l) => (o(), n("th", {
1062
+ }, [
1063
+ x("UTC"),
1064
+ i("span", { class: "unit" })
1065
+ ], -1)),
1066
+ (n(!0), o(g, null, v(s.tableData.hours, (a, r) => (n(), o("th", {
1051
1067
  rowspan: "1",
1052
1068
  colspan: "1",
1053
- class: b(s.activeIndex === l ? "active" : ""),
1069
+ class: _(s.activeIndex === r ? "active" : ""),
1054
1070
  key: Math.random() + "z"
1055
- }, y(u.computeHourZ(a)), 3))), 128))
1071
+ }, y(m.computeHourZ(a)), 3))), 128))
1056
1072
  ]),
1057
- i("tr", Ae, [
1058
- t[6] || (t[6] = i("td", {
1073
+ i("tr", Oe, [
1074
+ e[7] || (e[7] = i("td", {
1059
1075
  rowspan: "1",
1060
1076
  colspan: "1",
1061
1077
  class: "tr-title"
1062
- }, "Weather", -1)),
1063
- (o(!0), n(x, null, _(s.tableData.weatherUrls, (a, l) => (o(), n("td", {
1078
+ }, [
1079
+ x("Weather"),
1080
+ i("span", { class: "unit" })
1081
+ ], -1)),
1082
+ (n(!0), o(g, null, v(s.tableData.weatherUrls, (a, r) => (n(), o("td", {
1064
1083
  rowspan: "1",
1065
1084
  colspan: "1",
1066
- class: b(s.activeIndex === l ? "active" : ""),
1085
+ class: _(s.activeIndex === r ? "active" : ""),
1067
1086
  key: Math.random() + "url"
1068
1087
  }, [
1069
- a ? (o(), n("img", {
1070
- key: 0,
1071
- class: "iconfont weather-icon",
1072
- src: a
1073
- }, null, 8, Fe)) : ie("", !0)
1088
+ ne(z, {
1089
+ placement: "top",
1090
+ effect: "light",
1091
+ content: s.tableData.weatherNames[r],
1092
+ "show-after": 500
1093
+ }, {
1094
+ default: oe(() => [
1095
+ a ? (n(), o("img", {
1096
+ key: 0,
1097
+ class: "iconfont weather-icon",
1098
+ src: a
1099
+ }, null, 8, Be)) : re("", !0)
1100
+ ]),
1101
+ _: 2
1102
+ }, 1032, ["content"])
1074
1103
  ], 2))), 128))
1075
1104
  ]),
1076
- i("tr", Ve, [
1077
- t[7] || (t[7] = i("td", {
1105
+ i("tr", Ue, [
1106
+ e[8] || (e[8] = i("td", {
1078
1107
  rowspan: "1",
1079
1108
  colspan: "1",
1080
1109
  class: "tr-title"
1081
1110
  }, [
1082
- D("Temperature"),
1111
+ x("Temperature"),
1083
1112
  i("span", { class: "unit" }, "°C")
1084
1113
  ], -1)),
1085
- (o(!0), n(x, null, _(s.tableData.temp, (a, l) => (o(), n("td", {
1114
+ (n(!0), o(g, null, v(s.tableData.temp, (a, r) => (n(), o("td", {
1086
1115
  rowspan: "1",
1087
1116
  colspan: "1",
1088
- class: b(s.activeIndex === l ? "active" : ""),
1117
+ class: _(s.activeIndex === r ? "active" : ""),
1089
1118
  key: Math.random() + a
1090
1119
  }, y(a), 3))), 128))
1091
1120
  ]),
1092
- i("tr", Oe, [
1093
- t[8] || (t[8] = i("td", {
1121
+ i("tr", Ze, [
1122
+ e[9] || (e[9] = i("td", {
1094
1123
  rowspan: "1",
1095
1124
  colspan: "1",
1096
1125
  class: "tr-title"
1097
1126
  }, [
1098
- D("Precipitation Probability"),
1127
+ x("Precipitation Probability"),
1099
1128
  i("span", { class: "unit" }, "%")
1100
1129
  ], -1)),
1101
- (o(!0), n(x, null, _(s.tableData.precipProbability, (a, l) => (o(), n("td", {
1130
+ (n(!0), o(g, null, v(s.tableData.precipProbability, (a, r) => (n(), o("td", {
1102
1131
  rowspan: "1",
1103
1132
  colspan: "1",
1104
- class: b(s.activeIndex === l ? "active" : ""),
1133
+ class: _(s.activeIndex === r ? "active" : ""),
1105
1134
  key: Math.random() + a
1106
1135
  }, y(a), 3))), 128))
1107
1136
  ]),
1108
- i("tr", Be, [
1109
- t[9] || (t[9] = i("td", {
1137
+ i("tr", Je, [
1138
+ e[10] || (e[10] = i("td", {
1110
1139
  rowspan: "1",
1111
1140
  colspan: "1",
1112
1141
  class: "tr-title"
1113
1142
  }, [
1114
- D("Precipitation 1h"),
1143
+ x("Precipitation 1h"),
1115
1144
  i("span", { class: "unit" }, "mm")
1116
1145
  ], -1)),
1117
- (o(!0), n(x, null, _(s.tableData.precip1h, (a, l) => (o(), n("td", {
1146
+ (n(!0), o(g, null, v(s.tableData.precip1h, (a, r) => (n(), o("td", {
1118
1147
  rowspan: "1",
1119
1148
  colspan: "1",
1120
- class: b(s.activeIndex === l ? "active" : ""),
1149
+ class: _(s.activeIndex === r ? "active" : ""),
1121
1150
  key: Math.random() + a
1122
1151
  }, y(a), 3))), 128))
1123
1152
  ]),
1124
- i("tr", Je, [
1125
- t[10] || (t[10] = i("td", {
1153
+ i("tr", Ye, [
1154
+ e[11] || (e[11] = i("td", {
1126
1155
  rowspan: "1",
1127
1156
  colspan: "1",
1128
1157
  class: "tr-title"
1129
1158
  }, [
1130
- D("Visibility"),
1159
+ x("Visibility"),
1131
1160
  i("span", { class: "unit" }, "nm")
1132
1161
  ], -1)),
1133
- (o(!0), n(x, null, _(s.tableData.visibility, (a, l) => (o(), n("td", {
1162
+ (n(!0), o(g, null, v(s.tableData.visibility, (a, r) => (n(), o("td", {
1134
1163
  rowspan: "1",
1135
1164
  colspan: "1",
1136
- class: b(s.activeIndex === l ? "active" : ""),
1165
+ class: _(s.activeIndex === r ? "active" : ""),
1137
1166
  key: Math.random() + a
1138
1167
  }, y(a), 3))), 128))
1139
1168
  ]),
1140
- i("tr", Ue, [
1141
- t[11] || (t[11] = i("td", {
1169
+ i("tr", je, [
1170
+ e[12] || (e[12] = i("td", {
1142
1171
  rowspan: "1",
1143
1172
  colspan: "1",
1144
1173
  class: "tr-title"
1145
1174
  }, [
1146
- D("Relative Humidity"),
1175
+ x("Relative Humidity"),
1147
1176
  i("span", { class: "unit" }, "%")
1148
1177
  ], -1)),
1149
- (o(!0), n(x, null, _(s.tableData.humidity, (a, l) => (o(), n("td", {
1178
+ (n(!0), o(g, null, v(s.tableData.humidity, (a, r) => (n(), o("td", {
1150
1179
  rowspan: "1",
1151
1180
  colspan: "1",
1152
- class: b(s.activeIndex === l ? "active" : ""),
1181
+ class: _(s.activeIndex === r ? "active" : ""),
1153
1182
  key: Math.random() + a
1154
1183
  }, y(a), 3))), 128))
1155
1184
  ]),
1156
- i("tr", Ye, [
1157
- t[12] || (t[12] = i("td", {
1185
+ i("tr", qe, [
1186
+ e[13] || (e[13] = i("td", {
1158
1187
  rowspan: "1",
1159
1188
  colspan: "1",
1160
1189
  class: "tr-title"
1161
1190
  }, [
1162
- D("Wind direction"),
1191
+ x("Wind direction"),
1163
1192
  i("span", { class: "unit" })
1164
1193
  ], -1)),
1165
- (o(!0), n(x, null, _(s.tableData.windDir, (a, l) => (o(), n("td", {
1194
+ (n(!0), o(g, null, v(s.tableData.windDir, (a, r) => (n(), o("td", {
1166
1195
  rowspan: "1",
1167
1196
  colspan: "1",
1168
- class: b(s.activeIndex === l ? "active" : ""),
1197
+ class: _(s.activeIndex === r ? "active" : ""),
1169
1198
  key: Math.random() + a
1170
1199
  }, [
1171
- a ? (o(), n("span", {
1200
+ isNaN(a) ? (n(), o("span", Ke, "-")) : (n(), o("span", {
1172
1201
  key: 0,
1173
1202
  class: "iconfont icon",
1174
- style: $({ display: "inline-block", transform: `rotate(${a}deg)` })
1175
- }, "", 4)) : (o(), n("span", Ze, "-"))
1203
+ style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
1204
+ }, "", 4))
1176
1205
  ], 2))), 128))
1177
1206
  ]),
1178
- i("tr", je, [
1179
- t[13] || (t[13] = i("td", {
1207
+ i("tr", Qe, [
1208
+ e[14] || (e[14] = i("td", {
1180
1209
  rowspan: "1",
1181
1210
  colspan: "1",
1182
1211
  class: "tr-title"
1183
1212
  }, [
1184
- D("Wind speed"),
1213
+ x("Wind speed"),
1185
1214
  i("span", { class: "unit" }, "kts")
1186
1215
  ], -1)),
1187
- (o(!0), n(x, null, _(s.tableData.windSpeed, (a, l) => (o(), n("td", {
1216
+ (n(!0), o(g, null, v(s.tableData.windSpeed, (a, r) => (n(), o("td", {
1188
1217
  rowspan: "1",
1189
1218
  colspan: "1",
1190
- class: b(s.activeIndex === l ? "active" : ""),
1219
+ class: _(s.activeIndex === r ? "active" : ""),
1191
1220
  key: Math.random() + a
1192
1221
  }, y(a), 3))), 128))
1193
1222
  ]),
1194
- i("tr", qe, [
1195
- t[14] || (t[14] = i("td", {
1223
+ i("tr", Xe, [
1224
+ e[15] || (e[15] = i("td", {
1196
1225
  rowspan: "1",
1197
1226
  colspan: "1",
1198
1227
  class: "tr-title"
1199
1228
  }, [
1200
- D("Wind gust"),
1229
+ x("Wind gust"),
1201
1230
  i("span", { class: "unit" }, "kts")
1202
1231
  ], -1)),
1203
- (o(!0), n(x, null, _(s.tableData.windGust, (a, l) => (o(), n("td", {
1232
+ (n(!0), o(g, null, v(s.tableData.windGust, (a, r) => (n(), o("td", {
1204
1233
  rowspan: "1",
1205
1234
  colspan: "1",
1206
- class: b(s.activeIndex === l ? "active" : ""),
1235
+ class: _(s.activeIndex === r ? "active" : ""),
1207
1236
  key: Math.random() + a
1208
1237
  }, y(a), 3))), 128))
1209
1238
  ])
1210
1239
  ]),
1211
- t[24] || (t[24] = i("div", { style: { "text-align": "center", padding: "3px 0 3px 200px" } }, "Wave & Current", -1)),
1212
- i("table", Ke, [
1213
- i("tr", Qe, [
1214
- t[15] || (t[15] = i("td", {
1240
+ e[27] || (e[27] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1241
+ i("table", $e, [
1242
+ i("tr", et, [
1243
+ e[16] || (e[16] = i("td", {
1215
1244
  rowspan: "1",
1216
1245
  colspan: "1",
1217
1246
  class: "tr-title"
1218
1247
  }, [
1219
- D("Wind wave height"),
1248
+ x("Wind wave height"),
1220
1249
  i("span", { class: "unit" }, "m")
1221
1250
  ], -1)),
1222
- (o(!0), n(x, null, _(s.tableData.windwaveHeight, (a, l) => (o(), n("td", {
1251
+ (n(!0), o(g, null, v(s.tableData.windwaveHeight, (a, r) => (n(), o("td", {
1223
1252
  rowspan: "1",
1224
1253
  colspan: "1",
1225
- class: b(s.activeIndex === l ? "active" : ""),
1254
+ class: _(s.activeIndex === r ? "active" : ""),
1226
1255
  key: Math.random() + a
1227
1256
  }, y(a), 3))), 128))
1228
1257
  ]),
1229
- i("tr", Xe, [
1230
- t[16] || (t[16] = i("td", {
1258
+ i("tr", tt, [
1259
+ e[17] || (e[17] = i("td", {
1231
1260
  rowspan: "1",
1232
1261
  colspan: "1",
1233
1262
  class: "tr-title"
1234
1263
  }, [
1235
- D("Wind wave direction"),
1264
+ x("Wind wave direction"),
1236
1265
  i("span", { class: "unit" })
1237
1266
  ], -1)),
1238
- (o(!0), n(x, null, _(s.tableData.windwaveDir, (a, l) => (o(), n("td", {
1267
+ (n(!0), o(g, null, v(s.tableData.windwaveDir, (a, r) => (n(), o("td", {
1239
1268
  rowspan: "1",
1240
1269
  colspan: "1",
1241
- class: b(s.activeIndex === l ? "active" : ""),
1270
+ class: _(s.activeIndex === r ? "active" : ""),
1242
1271
  key: Math.random() + a
1243
1272
  }, [
1244
- a ? (o(), n("span", {
1273
+ isNaN(a) ? (n(), o("span", st, "-")) : (n(), o("span", {
1245
1274
  key: 0,
1246
1275
  class: "iconfont icon",
1247
- style: $({ display: "inline-block", transform: `rotate(${a}deg)` })
1248
- }, "", 4)) : (o(), n("span", $e, "-"))
1276
+ style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
1277
+ }, "", 4))
1249
1278
  ], 2))), 128))
1250
1279
  ]),
1251
- i("tr", et, [
1252
- t[17] || (t[17] = i("td", {
1280
+ i("tr", at, [
1281
+ e[18] || (e[18] = i("td", {
1253
1282
  rowspan: "1",
1254
1283
  colspan: "1",
1255
1284
  class: "tr-title"
1256
1285
  }, [
1257
- D("Wind wave period"),
1286
+ x("Wind wave period"),
1258
1287
  i("span", { class: "unit" }, "s")
1259
1288
  ], -1)),
1260
- (o(!0), n(x, null, _(s.tableData.windwavePeriod, (a, l) => (o(), n("td", {
1289
+ (n(!0), o(g, null, v(s.tableData.windwavePeriod, (a, r) => (n(), o("td", {
1261
1290
  rowspan: "1",
1262
1291
  colspan: "1",
1263
- class: b(s.activeIndex === l ? "active" : ""),
1292
+ class: _(s.activeIndex === r ? "active" : ""),
1264
1293
  key: Math.random() + a
1265
1294
  }, y(a), 3))), 128))
1266
1295
  ]),
1267
- i("tr", tt, [
1268
- t[18] || (t[18] = i("td", {
1296
+ i("tr", it, [
1297
+ e[19] || (e[19] = i("td", {
1269
1298
  rowspan: "1",
1270
1299
  colspan: "1",
1271
1300
  class: "tr-title"
1272
1301
  }, [
1273
- D("Swell height"),
1302
+ x("Swell height"),
1274
1303
  i("span", { class: "unit" }, "m")
1275
1304
  ], -1)),
1276
- (o(!0), n(x, null, _(s.tableData.swellHeight, (a, l) => (o(), n("td", {
1305
+ (n(!0), o(g, null, v(s.tableData.swellHeight, (a, r) => (n(), o("td", {
1277
1306
  rowspan: "1",
1278
1307
  colspan: "1",
1279
- class: b(s.activeIndex === l ? "active" : ""),
1308
+ class: _(s.activeIndex === r ? "active" : ""),
1280
1309
  key: Math.random() + a
1281
1310
  }, y(a), 3))), 128))
1282
1311
  ]),
1283
- i("tr", st, [
1284
- t[19] || (t[19] = i("td", {
1312
+ i("tr", nt, [
1313
+ e[20] || (e[20] = i("td", {
1285
1314
  rowspan: "1",
1286
1315
  colspan: "1",
1287
1316
  class: "tr-title"
1288
1317
  }, [
1289
- D("Swell direction"),
1318
+ x("Swell direction"),
1290
1319
  i("span", { class: "unit" })
1291
1320
  ], -1)),
1292
- (o(!0), n(x, null, _(s.tableData.swellDir, (a, l) => (o(), n("td", {
1321
+ (n(!0), o(g, null, v(s.tableData.swellDir, (a, r) => (n(), o("td", {
1293
1322
  rowspan: "1",
1294
1323
  colspan: "1",
1295
- class: b(s.activeIndex === l ? "active" : ""),
1324
+ class: _(s.activeIndex === r ? "active" : ""),
1296
1325
  key: Math.random() + a
1297
1326
  }, [
1298
- a ? (o(), n("span", {
1327
+ isNaN(a) ? (n(), o("span", ot, "-")) : (n(), o("span", {
1299
1328
  key: 0,
1300
1329
  class: "iconfont icon",
1301
- style: $({ display: "inline-block", transform: `rotate(${a}deg)` })
1302
- }, "", 4)) : (o(), n("span", at, "-"))
1330
+ style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
1331
+ }, "", 4))
1303
1332
  ], 2))), 128))
1304
1333
  ]),
1305
- i("tr", it, [
1306
- t[20] || (t[20] = i("td", {
1334
+ i("tr", rt, [
1335
+ e[21] || (e[21] = i("td", {
1307
1336
  rowspan: "1",
1308
1337
  colspan: "1",
1309
1338
  class: "tr-title"
1310
1339
  }, [
1311
- D("Swell period"),
1340
+ x("Swell period"),
1312
1341
  i("span", { class: "unit" }, "s")
1313
1342
  ], -1)),
1314
- (o(!0), n(x, null, _(s.tableData.swellPeriod, (a, l) => (o(), n("td", {
1343
+ (n(!0), o(g, null, v(s.tableData.swellPeriod, (a, r) => (n(), o("td", {
1315
1344
  rowspan: "1",
1316
1345
  colspan: "1",
1317
- class: b(s.activeIndex === l ? "active" : ""),
1346
+ class: _(s.activeIndex === r ? "active" : ""),
1318
1347
  key: Math.random() + a
1319
1348
  }, y(a), 3))), 128))
1320
1349
  ]),
1321
- i("tr", ot, [
1322
- t[21] || (t[21] = i("td", {
1350
+ i("tr", lt, [
1351
+ e[22] || (e[22] = i("td", {
1323
1352
  rowspan: "1",
1324
1353
  colspan: "1",
1325
1354
  class: "tr-title"
1326
1355
  }, [
1327
- D("Sig wave height"),
1356
+ x("Sig wave height"),
1328
1357
  i("span", { class: "unit" }, "m")
1329
1358
  ], -1)),
1330
- (o(!0), n(x, null, _(s.tableData.sigwaveHeight, (a, l) => (o(), n("td", {
1359
+ (n(!0), o(g, null, v(s.tableData.sigwaveHeight, (a, r) => (n(), o("td", {
1331
1360
  rowspan: "1",
1332
1361
  colspan: "1",
1333
- class: b(s.activeIndex === l ? "active" : ""),
1362
+ class: _(s.activeIndex === r ? "active" : ""),
1334
1363
  key: Math.random() + a
1335
1364
  }, y(a), 3))), 128))
1336
1365
  ]),
1337
- i("tr", nt, [
1338
- t[22] || (t[22] = i("td", {
1366
+ i("tr", dt, [
1367
+ e[23] || (e[23] = i("td", {
1339
1368
  rowspan: "1",
1340
1369
  colspan: "1",
1341
1370
  class: "tr-title"
1342
1371
  }, [
1343
- D("Current direction"),
1372
+ x("Current direction"),
1344
1373
  i("span", { class: "unit" })
1345
1374
  ], -1)),
1346
- (o(!0), n(x, null, _(s.tableData.currentDir, (a, l) => (o(), n("td", {
1375
+ (n(!0), o(g, null, v(s.tableData.currentDir, (a, r) => (n(), o("td", {
1347
1376
  rowspan: "1",
1348
1377
  colspan: "1",
1349
- class: b(s.activeIndex === l ? "active" : ""),
1378
+ class: _(s.activeIndex === r ? "active" : ""),
1350
1379
  key: Math.random() + a
1351
1380
  }, [
1352
- a ? (o(), n("span", {
1381
+ isNaN(a) ? (n(), o("span", ht, "-")) : (n(), o("span", {
1353
1382
  key: 0,
1354
1383
  class: "iconfont icon",
1355
- style: $({ display: "inline-block", transform: `rotate(${a}deg)` })
1356
- }, "", 4)) : (o(), n("span", rt, "-"))
1384
+ style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
1385
+ }, "", 4))
1357
1386
  ], 2))), 128))
1358
1387
  ]),
1359
- i("tr", lt, [
1360
- t[23] || (t[23] = i("td", {
1388
+ i("tr", ct, [
1389
+ e[24] || (e[24] = i("td", {
1361
1390
  rowspan: "1",
1362
1391
  colspan: "1",
1363
1392
  class: "tr-title"
1364
1393
  }, [
1365
- D("Current speed"),
1394
+ x("Current speed"),
1366
1395
  i("span", { class: "unit" }, "kts")
1367
1396
  ], -1)),
1368
- (o(!0), n(x, null, _(s.tableData.currentSpeed, (a, l) => (o(), n("td", {
1397
+ (n(!0), o(g, null, v(s.tableData.currentSpeed, (a, r) => (n(), o("td", {
1398
+ rowspan: "1",
1399
+ colspan: "1",
1400
+ class: _(s.activeIndex === r ? "active" : ""),
1401
+ key: Math.random() + a
1402
+ }, y(a), 3))), 128))
1403
+ ])
1404
+ ]),
1405
+ e[28] || (e[28] = i("div", { style: { "text-align": "center", padding: "3px" } }, null, -1)),
1406
+ i("table", pt, [
1407
+ i("tr", ut, [
1408
+ e[25] || (e[25] = i("td", {
1409
+ rowspan: "1",
1410
+ colspan: "1",
1411
+ class: "tr-title"
1412
+ }, [
1413
+ x("Sea level height"),
1414
+ i("span", { class: "unit" }, "m")
1415
+ ], -1)),
1416
+ (n(!0), o(g, null, v(s.tableData.seaLevel, (a, r) => (n(), o("td", {
1417
+ rowspan: "1",
1418
+ colspan: "1",
1419
+ class: _(s.activeIndex === r ? "active" : ""),
1420
+ key: Math.random() + a
1421
+ }, y(a), 3))), 128))
1422
+ ]),
1423
+ i("tr", mt, [
1424
+ e[26] || (e[26] = i("td", {
1425
+ rowspan: "1",
1426
+ colspan: "1",
1427
+ class: "tr-title"
1428
+ }, [
1429
+ x("Sea surface temperature"),
1430
+ i("span", { class: "unit" }, "°C")
1431
+ ], -1)),
1432
+ (n(!0), o(g, null, v(s.tableData.seaTemp, (a, r) => (n(), o("td", {
1369
1433
  rowspan: "1",
1370
1434
  colspan: "1",
1371
- class: b(s.activeIndex === l ? "active" : ""),
1435
+ class: _(s.activeIndex === r ? "active" : ""),
1372
1436
  key: Math.random() + a
1373
1437
  }, y(a), 3))), 128))
1374
1438
  ])
1375
1439
  ])
1376
- ])) : s.loading ? (o(), n("div", ht, "Loading....")) : (S = s.position) != null && S.name ? ie("", !0) : (o(), n("div", dt, "No Data"))
1440
+ ])) : s.loading ? (n(), o("div", wt, "Loading....")) : (k = s.position) != null && k.name ? re("", !0) : (n(), o("div", gt, "No Data"))
1377
1441
  ])
1378
1442
  ]);
1379
1443
  }
1380
- const pt = /* @__PURE__ */ fe(xe, [["render", ct], ["__scopeId", "data-v-94729511"]]), ft = {
1381
- install(r) {
1382
- r.component("SpotReport", pt);
1444
+ const yt = /* @__PURE__ */ ke(De, [["render", vt], ["__scopeId", "data-v-7b348412"]]), zt = {
1445
+ install(l) {
1446
+ l.component("SpotReport", yt);
1383
1447
  }
1384
1448
  };
1385
1449
  export {
1386
- pt as SpotReport,
1387
- ft as SpotReportPlugin
1450
+ yt as SpotReport,
1451
+ zt as SpotReportPlugin
1388
1452
  };