@idmui/spot 0.0.4 → 0.0.6
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/Spot/src/index.vue.d.ts +2 -1
- package/dist/index.js +516 -452
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,474 +1,479 @@
|
|
|
1
|
-
import
|
|
1
|
+
import I from "moment";
|
|
2
2
|
import q from "moment-timezone";
|
|
3
|
-
import { Search as
|
|
4
|
-
import { LngLatHelper as
|
|
5
|
-
import * as
|
|
6
|
-
import { markRaw as
|
|
7
|
-
import
|
|
8
|
-
class
|
|
9
|
-
static pickHourly(
|
|
10
|
-
var h, s,
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
for (const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
temp: (h =
|
|
19
|
-
apparentTemp: (s =
|
|
20
|
-
rh: (
|
|
21
|
-
dp: (
|
|
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: (
|
|
24
|
-
sum: (
|
|
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: (
|
|
27
|
-
visibility: this.m2nm((
|
|
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: (
|
|
30
|
-
kts: (
|
|
31
|
-
degree: (
|
|
32
|
-
bearing: ((
|
|
33
|
-
gusts: (
|
|
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: (
|
|
35
|
+
isDay: (W = p.is_day) == null ? void 0 : W.at(c)
|
|
36
36
|
};
|
|
37
|
-
const { name:
|
|
38
|
-
|
|
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
|
|
41
|
-
const
|
|
42
|
-
|
|
40
|
+
for (const se of ge) {
|
|
41
|
+
const p = se.hourly;
|
|
42
|
+
K = {
|
|
43
43
|
wave: {
|
|
44
44
|
sig: {
|
|
45
|
-
height: (T =
|
|
46
|
-
degree: (
|
|
47
|
-
bearing: (((
|
|
48
|
-
period: (
|
|
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 =
|
|
52
|
-
degree: (V =
|
|
53
|
-
bearing: ((
|
|
54
|
-
period: (
|
|
55
|
-
peakPeriod: (
|
|
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: (
|
|
59
|
-
degree: (
|
|
60
|
-
bearing: (((
|
|
61
|
-
period: (
|
|
62
|
-
peakPeriod: (
|
|
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: (
|
|
67
|
-
kts: (
|
|
68
|
-
degree: (
|
|
69
|
-
bearing: (
|
|
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: (
|
|
72
|
-
height: (
|
|
73
|
-
},
|
|
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
|
-
|
|
76
|
-
utc:
|
|
77
|
-
weather: { ...
|
|
78
|
-
...
|
|
75
|
+
pe.push({
|
|
76
|
+
utc: te.add(c, "h").format(),
|
|
77
|
+
weather: { ...U },
|
|
78
|
+
...K
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return pe;
|
|
82
82
|
}
|
|
83
|
-
static pickDaily(
|
|
84
|
-
var h, s,
|
|
85
|
-
const w = typeof
|
|
86
|
-
if (w.isBetween(Z,
|
|
87
|
-
let
|
|
88
|
-
const
|
|
89
|
-
for (const
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
code: (h =
|
|
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 =
|
|
95
|
-
min: (
|
|
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: (
|
|
99
|
-
min: (
|
|
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: (
|
|
103
|
-
hours: (
|
|
104
|
-
probability: (
|
|
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: (
|
|
108
|
-
kts: (
|
|
109
|
-
degree: (
|
|
110
|
-
gusts: (a =
|
|
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:
|
|
114
|
-
|
|
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
|
|
117
|
-
const
|
|
118
|
-
|
|
116
|
+
for (const J of N) {
|
|
117
|
+
const d = J.daily;
|
|
118
|
+
B = {
|
|
119
119
|
wave: {
|
|
120
120
|
sig: {
|
|
121
|
-
height: (
|
|
122
|
-
degree: (
|
|
123
|
-
period: (
|
|
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: (
|
|
127
|
-
degree: (
|
|
128
|
-
period: (
|
|
129
|
-
peakPeriod: (
|
|
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: (
|
|
133
|
-
degree: (
|
|
134
|
-
period: (
|
|
135
|
-
peakPeriod: (
|
|
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
|
-
},
|
|
138
|
+
}, B.wave = this.parseWave(B.wave);
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
utc: Z.add(
|
|
142
|
-
weather: { ...
|
|
143
|
-
...
|
|
140
|
+
Y.push({
|
|
141
|
+
utc: Z.add(u, "d").utc().format(),
|
|
142
|
+
weather: { ...D },
|
|
143
|
+
...B
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
return
|
|
146
|
+
return Y;
|
|
147
147
|
}
|
|
148
|
-
static
|
|
149
|
-
|
|
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
|
|
153
|
-
const
|
|
154
|
-
|
|
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 (
|
|
159
|
+
switch (e) {
|
|
157
160
|
case 0:
|
|
158
|
-
|
|
161
|
+
t.day = {
|
|
159
162
|
name: "Sunny",
|
|
160
163
|
url: "https://osshz.idmwx.com/asset/weather/01d.svg"
|
|
161
|
-
},
|
|
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
|
-
|
|
170
|
+
t.day = {
|
|
168
171
|
name: "Mainly Sunny",
|
|
169
172
|
url: "https://osshz.idmwx.com/asset/weather/01d.svg"
|
|
170
|
-
},
|
|
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
|
-
|
|
179
|
+
t.day = {
|
|
177
180
|
name: "Partly Cloudy",
|
|
178
181
|
url: "https://osshz.idmwx.com/asset/weather/02d.svg"
|
|
179
|
-
},
|
|
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
|
-
|
|
188
|
+
t.day = {
|
|
186
189
|
name: "Cloudy",
|
|
187
190
|
url: "https://osshz.idmwx.com/asset/weather/03d.svg"
|
|
188
|
-
},
|
|
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
|
-
|
|
197
|
+
t.day = {
|
|
195
198
|
name: "Foggy",
|
|
196
199
|
url: "https://osshz.idmwx.com/asset/weather/50d.svg"
|
|
197
|
-
},
|
|
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
|
-
|
|
206
|
+
t.day = {
|
|
204
207
|
name: "Rime Fog",
|
|
205
208
|
url: "https://osshz.idmwx.com/asset/weather/50d.svg"
|
|
206
|
-
},
|
|
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
|
-
|
|
215
|
+
t.day = {
|
|
213
216
|
name: "Light Drizzle",
|
|
214
217
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
215
|
-
},
|
|
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
|
-
|
|
224
|
+
t.day = {
|
|
222
225
|
name: "Drizzle",
|
|
223
226
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
224
|
-
},
|
|
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
|
-
|
|
233
|
+
t.day = {
|
|
231
234
|
name: "Heavy Drizzle",
|
|
232
235
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
233
|
-
},
|
|
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
|
-
|
|
242
|
+
t.day = {
|
|
240
243
|
name: "Light Freezing Drizzle",
|
|
241
244
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
242
|
-
},
|
|
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
|
-
|
|
251
|
+
t.day = {
|
|
249
252
|
name: "Freezing Drizzle",
|
|
250
253
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
251
|
-
},
|
|
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
|
-
|
|
260
|
+
t.day = {
|
|
258
261
|
name: "Light Rain",
|
|
259
262
|
url: "https://osshz.idmwx.com/asset/weather/10d.svg"
|
|
260
|
-
},
|
|
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
|
-
|
|
269
|
+
t.day = {
|
|
267
270
|
name: "Rain",
|
|
268
271
|
url: "https://osshz.idmwx.com/asset/weather/10d.svg"
|
|
269
|
-
},
|
|
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
|
-
|
|
278
|
+
t.day = {
|
|
276
279
|
name: "Heavy Rain",
|
|
277
280
|
url: "https://osshz.idmwx.com/asset/weather/10d.svg"
|
|
278
|
-
},
|
|
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
|
-
|
|
287
|
+
t.day = {
|
|
285
288
|
name: "Light Freezing Rain",
|
|
286
289
|
url: "https://osshz.idmwx.com/asset/weather/10d.svg"
|
|
287
|
-
},
|
|
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
|
-
|
|
296
|
+
t.day = {
|
|
294
297
|
name: "Freezing Rain",
|
|
295
298
|
url: "https://osshz.idmwx.com/asset/weather/10d.svg"
|
|
296
|
-
},
|
|
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
|
-
|
|
305
|
+
t.day = {
|
|
303
306
|
name: "Light Snow",
|
|
304
307
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
305
|
-
},
|
|
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
|
-
|
|
314
|
+
t.day = {
|
|
312
315
|
name: "Snow",
|
|
313
316
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
314
|
-
},
|
|
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
|
-
|
|
323
|
+
t.day = {
|
|
321
324
|
name: "Heavy Snow",
|
|
322
325
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
323
|
-
},
|
|
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
|
-
|
|
332
|
+
t.day = {
|
|
330
333
|
name: "Snow Grains",
|
|
331
334
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
332
|
-
},
|
|
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
|
-
|
|
341
|
+
t.day = {
|
|
339
342
|
name: "Light Showers",
|
|
340
343
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
341
|
-
},
|
|
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
|
-
|
|
350
|
+
t.day = {
|
|
348
351
|
name: "Showers",
|
|
349
352
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
350
|
-
},
|
|
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
|
-
|
|
359
|
+
t.day = {
|
|
357
360
|
name: "Heavy Showers",
|
|
358
361
|
url: "https://osshz.idmwx.com/asset/weather/09d.svg"
|
|
359
|
-
},
|
|
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
|
-
|
|
368
|
+
t.day = {
|
|
366
369
|
name: "Light Snow Showers",
|
|
367
370
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
368
|
-
},
|
|
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
|
-
|
|
377
|
+
t.day = {
|
|
375
378
|
name: "Snow Showers",
|
|
376
379
|
url: "https://osshz.idmwx.com/asset/weather/13d.svg"
|
|
377
|
-
},
|
|
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
|
-
|
|
386
|
+
t.day = {
|
|
384
387
|
name: "Thunderstorm",
|
|
385
388
|
url: "https://osshz.idmwx.com/asset/weather/11d.svg"
|
|
386
|
-
},
|
|
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
|
-
|
|
395
|
+
t.day = {
|
|
393
396
|
name: "Light Thunderstorms With Hail",
|
|
394
397
|
url: "https://osshz.idmwx.com/asset/weather/11d.svg"
|
|
395
|
-
},
|
|
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
|
-
|
|
404
|
+
t.day = {
|
|
402
405
|
name: "Thunderstorms With Hail",
|
|
403
406
|
url: "https://osshz.idmwx.com/asset/weather/11d.svg"
|
|
404
|
-
},
|
|
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
|
|
413
|
+
return t;
|
|
411
414
|
}
|
|
412
|
-
static kts2ms(
|
|
413
|
-
return
|
|
415
|
+
static kts2ms(e) {
|
|
416
|
+
return isNaN(e) ? e : Math.round(e * 1852 / 3600 * 1e4) / 1e4;
|
|
414
417
|
}
|
|
415
|
-
static kts2kmh(
|
|
416
|
-
return
|
|
418
|
+
static kts2kmh(e) {
|
|
419
|
+
return isNaN(e) ? e : e * 1.852;
|
|
417
420
|
}
|
|
418
|
-
static m2nm(
|
|
419
|
-
return
|
|
421
|
+
static m2nm(e) {
|
|
422
|
+
return isNaN(e) ? e : Math.round(e / 1e3 / 1.852 * 1e4) / 1e4;
|
|
420
423
|
}
|
|
421
|
-
static kmh2kts(
|
|
422
|
-
return
|
|
424
|
+
static kmh2kts(e) {
|
|
425
|
+
return isNaN(e) ? e : this.ms2kts(e * 1e3 / 3600);
|
|
423
426
|
}
|
|
424
|
-
static ms2kts(
|
|
425
|
-
return
|
|
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(
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
434
|
-
let
|
|
435
|
-
return
|
|
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(
|
|
443
|
-
const
|
|
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
|
|
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(
|
|
454
|
-
let
|
|
455
|
-
return isNaN(
|
|
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(
|
|
462
|
-
let
|
|
463
|
-
return isNaN(
|
|
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
|
|
467
|
-
const
|
|
468
|
-
for (const [h, s] of
|
|
469
|
-
|
|
470
|
-
return
|
|
471
|
-
},
|
|
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:
|
|
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:
|
|
501
|
+
rawSearchIcon: _e(xe),
|
|
497
502
|
positionGmt: void 0,
|
|
498
|
-
|
|
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(
|
|
514
|
-
return
|
|
519
|
+
return function(l) {
|
|
520
|
+
return l ? `${q(l).tz(this.positionGmt).format("HH")}` : "-";
|
|
515
521
|
};
|
|
516
522
|
},
|
|
517
523
|
computeHourZ() {
|
|
518
|
-
return function(
|
|
519
|
-
return
|
|
524
|
+
return function(l) {
|
|
525
|
+
return l ? `${I(l).utc().format("HH")}Z` : "-";
|
|
520
526
|
};
|
|
521
527
|
},
|
|
522
528
|
computeWeek() {
|
|
523
|
-
return function(
|
|
524
|
-
return
|
|
529
|
+
return function(l) {
|
|
530
|
+
return l ? `${q(l).tz(this.positionGmt).format("dddd")}` : "-";
|
|
525
531
|
};
|
|
526
532
|
},
|
|
527
533
|
computeMMMDD() {
|
|
528
|
-
return function(
|
|
529
|
-
return
|
|
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(
|
|
534
|
-
return
|
|
539
|
+
return function(l, e = 4) {
|
|
540
|
+
return ae.lat2pretty(l, e).pretty;
|
|
535
541
|
};
|
|
536
542
|
},
|
|
537
543
|
computeLng() {
|
|
538
|
-
return function(
|
|
539
|
-
return
|
|
544
|
+
return function(l, e = 4) {
|
|
545
|
+
return ae.lng2pretty(l, e).pretty;
|
|
540
546
|
};
|
|
541
547
|
},
|
|
542
548
|
roundPrecision() {
|
|
543
|
-
return function(
|
|
544
|
-
return isNaN(
|
|
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
|
|
557
|
+
var l, e;
|
|
552
558
|
this.report && (this.meteoData = this.report, this.position = {
|
|
553
559
|
id: this.report.portId,
|
|
554
|
-
lat: (
|
|
555
|
-
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
|
-
|
|
564
|
-
|
|
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
|
-
|
|
570
|
-
|
|
571
|
-
|
|
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
|
|
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
|
|
600
|
-
const
|
|
601
|
-
this.tableData.hours.push(
|
|
602
|
-
const
|
|
603
|
-
this.tableData.weatherUrls.push((t =
|
|
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, 0) ?? "-");
|
|
604
613
|
}
|
|
605
614
|
},
|
|
606
615
|
initEchart() {
|
|
607
|
-
var
|
|
608
|
-
const
|
|
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
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
h.push(this.roundPrecision((
|
|
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
|
|
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:
|
|
644
|
+
data: l,
|
|
636
645
|
show: !1
|
|
637
646
|
},
|
|
638
647
|
singleAxis: [
|
|
639
648
|
{
|
|
640
|
-
left:
|
|
641
|
-
right:
|
|
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:
|
|
662
|
-
top: "
|
|
670
|
+
data: l,
|
|
671
|
+
top: "7%",
|
|
663
672
|
height: "2%"
|
|
664
673
|
},
|
|
665
674
|
{
|
|
666
|
-
left:
|
|
667
|
-
right:
|
|
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:
|
|
688
|
-
top: "
|
|
696
|
+
data: l,
|
|
697
|
+
top: "16%",
|
|
689
698
|
height: "2%"
|
|
690
699
|
},
|
|
691
700
|
{
|
|
692
|
-
left:
|
|
693
|
-
right:
|
|
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:
|
|
722
|
+
data: l,
|
|
714
723
|
top: "27%",
|
|
715
724
|
height: "2%"
|
|
716
725
|
},
|
|
717
726
|
{
|
|
718
|
-
left:
|
|
719
|
-
right:
|
|
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:
|
|
748
|
+
data: l,
|
|
740
749
|
top: "84%",
|
|
741
750
|
height: "2%"
|
|
742
751
|
},
|
|
743
752
|
{
|
|
744
|
-
left:
|
|
745
|
-
right:
|
|
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:
|
|
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:
|
|
775
|
-
max:
|
|
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:
|
|
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:
|
|
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:
|
|
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 /
|
|
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:
|
|
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:
|
|
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
|
-
|
|
884
|
-
const
|
|
885
|
-
this.pickedDate = q(
|
|
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 +
|
|
902
|
+
x: 4 + b / l.length * 92 + "%"
|
|
893
903
|
},
|
|
894
904
|
{
|
|
895
|
-
x: 4 + (
|
|
905
|
+
x: 4 + (b + 1) / l.length * 92 + "%"
|
|
896
906
|
}
|
|
897
907
|
]
|
|
898
908
|
]
|
|
899
|
-
},
|
|
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((
|
|
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(
|
|
915
|
+
async fetchSuggestPosition(l) {
|
|
906
916
|
var h;
|
|
907
|
-
const
|
|
908
|
-
if (!
|
|
917
|
+
const e = l.replaceAll(",", ",");
|
|
918
|
+
if (!e)
|
|
909
919
|
return this.positionList = this.collectList, !1;
|
|
910
|
-
const
|
|
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
|
-
(
|
|
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
|
|
928
|
+
var t, h, s;
|
|
919
929
|
if (!this.searchName)
|
|
920
930
|
return !1;
|
|
921
931
|
this.position = {
|
|
922
|
-
portId: (
|
|
923
|
-
lat: (h = this.positionList.find((
|
|
924
|
-
lng: (s = this.positionList.find((
|
|
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
|
|
937
|
+
const l = {
|
|
928
938
|
lat: this.position.lat,
|
|
929
939
|
lng: this.position.lng,
|
|
930
|
-
datetime: this.ts ?
|
|
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
|
-
},
|
|
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
|
-
(
|
|
939
|
-
...
|
|
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,
|
|
953
|
+
this.loading = !0, this.meteoData = {}, this.isCollected = !1, ue.dispose(document.getElementById("weather-chart"));
|
|
944
954
|
}
|
|
945
955
|
}
|
|
946
|
-
},
|
|
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
|
-
},
|
|
959
|
+
}, Te = {
|
|
950
960
|
key: 1,
|
|
951
961
|
class: "weather-chart flex-center"
|
|
952
|
-
},
|
|
962
|
+
}, Re = {
|
|
953
963
|
key: 2,
|
|
954
964
|
class: "weather-chart flex-center"
|
|
955
|
-
},
|
|
965
|
+
}, Ee = {
|
|
956
966
|
key: 3,
|
|
957
967
|
class: "card-box"
|
|
958
|
-
},
|
|
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
|
-
},
|
|
971
|
+
}, gt = {
|
|
966
972
|
key: 5,
|
|
967
973
|
class: "card-box flex-center"
|
|
968
974
|
};
|
|
969
|
-
function
|
|
970
|
-
var
|
|
971
|
-
const
|
|
972
|
-
return
|
|
973
|
-
i("div",
|
|
974
|
-
i("div",
|
|
975
|
-
i("div",
|
|
976
|
-
|
|
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":
|
|
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:
|
|
987
|
-
onBlur:
|
|
988
|
-
"remote-method":
|
|
989
|
-
onChange:
|
|
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:
|
|
992
|
-
(
|
|
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",
|
|
1004
|
-
i("div",
|
|
1009
|
+
i("div", Me, [
|
|
1010
|
+
i("div", Ce, [
|
|
1005
1011
|
i("div", null, [
|
|
1006
|
-
i("div",
|
|
1007
|
-
i("div",
|
|
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",
|
|
1010
|
-
|
|
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:
|
|
1017
|
-
s.isCollected ? (
|
|
1022
|
+
default: oe(() => [
|
|
1023
|
+
s.isCollected ? (n(), o("span", {
|
|
1018
1024
|
key: 0,
|
|
1019
1025
|
class: "iconfont icon active",
|
|
1020
|
-
onClick:
|
|
1021
|
-
}, "")) : (
|
|
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:
|
|
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
|
-
(
|
|
1032
|
-
(
|
|
1033
|
-
i("div",
|
|
1034
|
-
i("table",
|
|
1035
|
-
i("tr",
|
|
1036
|
-
|
|
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:
|
|
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(
|
|
1055
|
+
}, y(m.computeHourL(a)), 3))), 128))
|
|
1043
1056
|
]),
|
|
1044
|
-
i("tr",
|
|
1045
|
-
|
|
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
|
-
},
|
|
1050
|
-
|
|
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:
|
|
1069
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1054
1070
|
key: Math.random() + "z"
|
|
1055
|
-
}, y(
|
|
1071
|
+
}, y(m.computeHourZ(a)), 3))), 128))
|
|
1056
1072
|
]),
|
|
1057
|
-
i("tr",
|
|
1058
|
-
|
|
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
|
-
},
|
|
1063
|
-
|
|
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:
|
|
1085
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1067
1086
|
key: Math.random() + "url"
|
|
1068
1087
|
}, [
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
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",
|
|
1077
|
-
|
|
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
|
-
|
|
1111
|
+
x("Temperature"),
|
|
1083
1112
|
i("span", { class: "unit" }, "°C")
|
|
1084
1113
|
], -1)),
|
|
1085
|
-
(
|
|
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:
|
|
1117
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1089
1118
|
key: Math.random() + a
|
|
1090
1119
|
}, y(a), 3))), 128))
|
|
1091
1120
|
]),
|
|
1092
|
-
i("tr",
|
|
1093
|
-
|
|
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
|
-
|
|
1127
|
+
x("Precipitation Probability"),
|
|
1099
1128
|
i("span", { class: "unit" }, "%")
|
|
1100
1129
|
], -1)),
|
|
1101
|
-
(
|
|
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:
|
|
1133
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1105
1134
|
key: Math.random() + a
|
|
1106
1135
|
}, y(a), 3))), 128))
|
|
1107
1136
|
]),
|
|
1108
|
-
i("tr",
|
|
1109
|
-
|
|
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
|
-
|
|
1143
|
+
x("Precipitation 1h"),
|
|
1115
1144
|
i("span", { class: "unit" }, "mm")
|
|
1116
1145
|
], -1)),
|
|
1117
|
-
(
|
|
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:
|
|
1149
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1121
1150
|
key: Math.random() + a
|
|
1122
1151
|
}, y(a), 3))), 128))
|
|
1123
1152
|
]),
|
|
1124
|
-
i("tr",
|
|
1125
|
-
|
|
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
|
-
|
|
1159
|
+
x("Visibility"),
|
|
1131
1160
|
i("span", { class: "unit" }, "nm")
|
|
1132
1161
|
], -1)),
|
|
1133
|
-
(
|
|
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:
|
|
1165
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1137
1166
|
key: Math.random() + a
|
|
1138
1167
|
}, y(a), 3))), 128))
|
|
1139
1168
|
]),
|
|
1140
|
-
i("tr",
|
|
1141
|
-
|
|
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
|
-
|
|
1175
|
+
x("Relative Humidity"),
|
|
1147
1176
|
i("span", { class: "unit" }, "%")
|
|
1148
1177
|
], -1)),
|
|
1149
|
-
(
|
|
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:
|
|
1181
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1153
1182
|
key: Math.random() + a
|
|
1154
1183
|
}, y(a), 3))), 128))
|
|
1155
1184
|
]),
|
|
1156
|
-
i("tr",
|
|
1157
|
-
|
|
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
|
-
|
|
1191
|
+
x("Wind direction"),
|
|
1163
1192
|
i("span", { class: "unit" })
|
|
1164
1193
|
], -1)),
|
|
1165
|
-
(
|
|
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:
|
|
1197
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1169
1198
|
key: Math.random() + a
|
|
1170
1199
|
}, [
|
|
1171
|
-
a ? (
|
|
1200
|
+
isNaN(a) ? (n(), o("span", Ke, "-")) : (n(), o("span", {
|
|
1172
1201
|
key: 0,
|
|
1173
1202
|
class: "iconfont icon",
|
|
1174
|
-
style:
|
|
1175
|
-
}, "", 4))
|
|
1203
|
+
style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
|
|
1204
|
+
}, "", 4))
|
|
1176
1205
|
], 2))), 128))
|
|
1177
1206
|
]),
|
|
1178
|
-
i("tr",
|
|
1179
|
-
|
|
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
|
-
|
|
1213
|
+
x("Wind speed"),
|
|
1185
1214
|
i("span", { class: "unit" }, "kts")
|
|
1186
1215
|
], -1)),
|
|
1187
|
-
(
|
|
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:
|
|
1219
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1191
1220
|
key: Math.random() + a
|
|
1192
1221
|
}, y(a), 3))), 128))
|
|
1193
1222
|
]),
|
|
1194
|
-
i("tr",
|
|
1195
|
-
|
|
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
|
-
|
|
1229
|
+
x("Wind gust"),
|
|
1201
1230
|
i("span", { class: "unit" }, "kts")
|
|
1202
1231
|
], -1)),
|
|
1203
|
-
(
|
|
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:
|
|
1235
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1207
1236
|
key: Math.random() + a
|
|
1208
1237
|
}, y(a), 3))), 128))
|
|
1209
1238
|
])
|
|
1210
1239
|
]),
|
|
1211
|
-
|
|
1212
|
-
i("table",
|
|
1213
|
-
i("tr",
|
|
1214
|
-
|
|
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
|
-
|
|
1248
|
+
x("Wind wave height"),
|
|
1220
1249
|
i("span", { class: "unit" }, "m")
|
|
1221
1250
|
], -1)),
|
|
1222
|
-
(
|
|
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:
|
|
1254
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1226
1255
|
key: Math.random() + a
|
|
1227
1256
|
}, y(a), 3))), 128))
|
|
1228
1257
|
]),
|
|
1229
|
-
i("tr",
|
|
1230
|
-
|
|
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
|
-
|
|
1264
|
+
x("Wind wave direction"),
|
|
1236
1265
|
i("span", { class: "unit" })
|
|
1237
1266
|
], -1)),
|
|
1238
|
-
(
|
|
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:
|
|
1270
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1242
1271
|
key: Math.random() + a
|
|
1243
1272
|
}, [
|
|
1244
|
-
a ? (
|
|
1273
|
+
isNaN(a) ? (n(), o("span", st, "-")) : (n(), o("span", {
|
|
1245
1274
|
key: 0,
|
|
1246
1275
|
class: "iconfont icon",
|
|
1247
|
-
style:
|
|
1248
|
-
}, "", 4))
|
|
1276
|
+
style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
|
|
1277
|
+
}, "", 4))
|
|
1249
1278
|
], 2))), 128))
|
|
1250
1279
|
]),
|
|
1251
|
-
i("tr",
|
|
1252
|
-
|
|
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
|
-
|
|
1286
|
+
x("Wind wave period"),
|
|
1258
1287
|
i("span", { class: "unit" }, "s")
|
|
1259
1288
|
], -1)),
|
|
1260
|
-
(
|
|
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:
|
|
1292
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1264
1293
|
key: Math.random() + a
|
|
1265
1294
|
}, y(a), 3))), 128))
|
|
1266
1295
|
]),
|
|
1267
|
-
i("tr",
|
|
1268
|
-
|
|
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
|
-
|
|
1302
|
+
x("Swell height"),
|
|
1274
1303
|
i("span", { class: "unit" }, "m")
|
|
1275
1304
|
], -1)),
|
|
1276
|
-
(
|
|
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:
|
|
1308
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1280
1309
|
key: Math.random() + a
|
|
1281
1310
|
}, y(a), 3))), 128))
|
|
1282
1311
|
]),
|
|
1283
|
-
i("tr",
|
|
1284
|
-
|
|
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
|
-
|
|
1318
|
+
x("Swell direction"),
|
|
1290
1319
|
i("span", { class: "unit" })
|
|
1291
1320
|
], -1)),
|
|
1292
|
-
(
|
|
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:
|
|
1324
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1296
1325
|
key: Math.random() + a
|
|
1297
1326
|
}, [
|
|
1298
|
-
a ? (
|
|
1327
|
+
isNaN(a) ? (n(), o("span", ot, "-")) : (n(), o("span", {
|
|
1299
1328
|
key: 0,
|
|
1300
1329
|
class: "iconfont icon",
|
|
1301
|
-
style:
|
|
1302
|
-
}, "", 4))
|
|
1330
|
+
style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
|
|
1331
|
+
}, "", 4))
|
|
1303
1332
|
], 2))), 128))
|
|
1304
1333
|
]),
|
|
1305
|
-
i("tr",
|
|
1306
|
-
|
|
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
|
-
|
|
1340
|
+
x("Swell period"),
|
|
1312
1341
|
i("span", { class: "unit" }, "s")
|
|
1313
1342
|
], -1)),
|
|
1314
|
-
(
|
|
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:
|
|
1346
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1318
1347
|
key: Math.random() + a
|
|
1319
1348
|
}, y(a), 3))), 128))
|
|
1320
1349
|
]),
|
|
1321
|
-
i("tr",
|
|
1322
|
-
|
|
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
|
-
|
|
1356
|
+
x("Sig wave height"),
|
|
1328
1357
|
i("span", { class: "unit" }, "m")
|
|
1329
1358
|
], -1)),
|
|
1330
|
-
(
|
|
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:
|
|
1362
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1334
1363
|
key: Math.random() + a
|
|
1335
1364
|
}, y(a), 3))), 128))
|
|
1336
1365
|
]),
|
|
1337
|
-
i("tr",
|
|
1338
|
-
|
|
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
|
-
|
|
1372
|
+
x("Current direction"),
|
|
1344
1373
|
i("span", { class: "unit" })
|
|
1345
1374
|
], -1)),
|
|
1346
|
-
(
|
|
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:
|
|
1378
|
+
class: _(s.activeIndex === r ? "active" : ""),
|
|
1350
1379
|
key: Math.random() + a
|
|
1351
1380
|
}, [
|
|
1352
|
-
a ? (
|
|
1381
|
+
isNaN(a) ? (n(), o("span", ht, "-")) : (n(), o("span", {
|
|
1353
1382
|
key: 0,
|
|
1354
1383
|
class: "iconfont icon",
|
|
1355
|
-
style:
|
|
1356
|
-
}, "", 4))
|
|
1384
|
+
style: ee({ display: "inline-block", transform: `rotate(${a}deg)` })
|
|
1385
|
+
}, "", 4))
|
|
1357
1386
|
], 2))), 128))
|
|
1358
1387
|
]),
|
|
1359
|
-
i("tr",
|
|
1360
|
-
|
|
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
|
-
|
|
1394
|
+
x("Current speed"),
|
|
1366
1395
|
i("span", { class: "unit" }, "kts")
|
|
1367
1396
|
], -1)),
|
|
1368
|
-
(
|
|
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:
|
|
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 ? (
|
|
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
|
|
1381
|
-
install(
|
|
1382
|
-
|
|
1444
|
+
const yt = /* @__PURE__ */ ke(De, [["render", vt], ["__scopeId", "data-v-6a06d61a"]]), zt = {
|
|
1445
|
+
install(l) {
|
|
1446
|
+
l.component("SpotReport", yt);
|
|
1383
1447
|
}
|
|
1384
1448
|
};
|
|
1385
1449
|
export {
|
|
1386
|
-
|
|
1387
|
-
|
|
1450
|
+
yt as SpotReport,
|
|
1451
|
+
zt as SpotReportPlugin
|
|
1388
1452
|
};
|