@idmwx/idmui-gl4 1.8.1 → 1.8.3
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
|
@@ -3,10 +3,10 @@ var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as Le } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ye, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ve, vShow as Ze, mergeProps as B, normalizeStyle as ae } from "vue";
|
|
7
7
|
import xe from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
|
-
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as
|
|
9
|
+
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as We } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Co, TidesAssist as So } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Mo from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
@@ -1490,10 +1490,10 @@ const ui = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1493
|
-
var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q,
|
|
1493
|
+
var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q, ie, he, ce, pe, ge, F, me, ve, Pe, Ce;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const l = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (
|
|
1496
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Pe = l == null ? void 0 : l.current) == null ? void 0 : Pe.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Ce = l == null ? void 0 : l.weather) == null ? void 0 : Ce.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1690,7 +1690,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1690
1690
|
s("div", gi, [
|
|
1691
1691
|
s("div", fi, [
|
|
1692
1692
|
s("div", {
|
|
1693
|
-
class:
|
|
1693
|
+
class: Ye(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (P = o.port) == null ? void 0 : P.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
1696
|
s("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
|
|
@@ -2043,7 +2043,7 @@ const br = {
|
|
|
2043
2043
|
function _r(t, e, o, i, a, r) {
|
|
2044
2044
|
const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
|
|
2045
2045
|
return y(), M("div", null, [
|
|
2046
|
-
|
|
2046
|
+
Ve(p(c, {
|
|
2047
2047
|
id: "idmPortInfo",
|
|
2048
2048
|
ref: "idmPortInfo"
|
|
2049
2049
|
}, {
|
|
@@ -2066,7 +2066,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2066
2066
|
]),
|
|
2067
2067
|
_: 1
|
|
2068
2068
|
}, 512), [
|
|
2069
|
-
[
|
|
2069
|
+
[Ze, a.showInfo]
|
|
2070
2070
|
]),
|
|
2071
2071
|
a.showDetail ? (y(), R(n, B({
|
|
2072
2072
|
key: 0,
|
|
@@ -3184,7 +3184,7 @@ const Ms = {
|
|
|
3184
3184
|
function Os(t, e, o, i, a, r) {
|
|
3185
3185
|
const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3186
3186
|
return y(), M("div", null, [
|
|
3187
|
-
|
|
3187
|
+
Ve(p(c, { id: "idmTidalInfo" }, {
|
|
3188
3188
|
default: f(() => [
|
|
3189
3189
|
p(l, { class: "pr-8 text-body-1" }, {
|
|
3190
3190
|
default: f(() => {
|
|
@@ -3203,7 +3203,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 1
|
|
3205
3205
|
}, 512), [
|
|
3206
|
-
[
|
|
3206
|
+
[Ze, a.showInfo]
|
|
3207
3207
|
]),
|
|
3208
3208
|
a.showDetail ? (y(), R(n, B({
|
|
3209
3209
|
key: 0,
|
|
@@ -3425,7 +3425,7 @@ function Hs(t, e, o, i, a, r) {
|
|
|
3425
3425
|
var l, c, n;
|
|
3426
3426
|
return y(), M("div", {
|
|
3427
3427
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3428
|
-
style:
|
|
3428
|
+
style: ae({ right: a.right + "px" })
|
|
3429
3429
|
}, [
|
|
3430
3430
|
s("div", null, m((l = a.lngLat) == null ? void 0 : l.lat), 1),
|
|
3431
3431
|
s("div", null, m((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
@@ -4346,7 +4346,7 @@ const Gs = {
|
|
|
4346
4346
|
function Zs(t, e, o, i, a, r) {
|
|
4347
4347
|
const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4348
4348
|
return y(), M("div", null, [
|
|
4349
|
-
|
|
4349
|
+
Ve(p(c, {
|
|
4350
4350
|
id: "idmFollowPortInfo",
|
|
4351
4351
|
ref: "idmFollowPortInfo"
|
|
4352
4352
|
}, {
|
|
@@ -4369,7 +4369,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
4369
4369
|
]),
|
|
4370
4370
|
_: 1
|
|
4371
4371
|
}, 512), [
|
|
4372
|
-
[
|
|
4372
|
+
[Ze, a.showInfo]
|
|
4373
4373
|
]),
|
|
4374
4374
|
a.showDetail ? (y(), R(n, B({
|
|
4375
4375
|
key: 0,
|
|
@@ -4521,7 +4521,7 @@ const qs = {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
function Js(t, e, o, i, a, r) {
|
|
4523
4523
|
const l = x("v-card-text"), c = x("v-card");
|
|
4524
|
-
return
|
|
4524
|
+
return Ve((y(), R(c, {
|
|
4525
4525
|
id: "idmFollowPositionInfo",
|
|
4526
4526
|
ref: "idmFollowPositionInfo"
|
|
4527
4527
|
}, {
|
|
@@ -4543,7 +4543,7 @@ function Js(t, e, o, i, a, r) {
|
|
|
4543
4543
|
]),
|
|
4544
4544
|
_: 1
|
|
4545
4545
|
}, 512)), [
|
|
4546
|
-
[
|
|
4546
|
+
[Ze, a.showInfo]
|
|
4547
4547
|
]);
|
|
4548
4548
|
}
|
|
4549
4549
|
const Qs = /* @__PURE__ */ q(qs, [["render", Js], ["__scopeId", "data-v-cd6c9f7e"]]);
|
|
@@ -4756,12 +4756,12 @@ const el = {
|
|
|
4756
4756
|
class: "border rounded-sm"
|
|
4757
4757
|
}, dl = { class: "text-body-2 text-center pt-1" };
|
|
4758
4758
|
function hl(t, e, o, i, a, r) {
|
|
4759
|
-
var $, ne, se, Q,
|
|
4759
|
+
var $, ne, se, Q, ie, he, ce, pe, ge;
|
|
4760
4760
|
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), _ = x("IdmLatLng"), g = x("IdmTerminator"), P = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), z = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), k = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), V = x("IdmIceAreas"), ee = x("IdmFollowPort"), J = x("IdmFollowPosition");
|
|
4761
4761
|
return y(), M("div", tl, [
|
|
4762
4762
|
s("div", {
|
|
4763
4763
|
class: "menu-bar-box transition px-1 rounded",
|
|
4764
|
-
style:
|
|
4764
|
+
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4765
4765
|
}, [
|
|
4766
4766
|
p(c, {
|
|
4767
4767
|
text: t.$t("layer.mapLayers"),
|
|
@@ -4786,8 +4786,8 @@ function hl(t, e, o, i, a, r) {
|
|
|
4786
4786
|
}, 8, ["text"])
|
|
4787
4787
|
], 4),
|
|
4788
4788
|
s("div", {
|
|
4789
|
-
class:
|
|
4790
|
-
style:
|
|
4789
|
+
class: Ye(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
4790
|
+
style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
4791
4791
|
}, [
|
|
4792
4792
|
s("div", ol, [
|
|
4793
4793
|
s("div", al, m(t.$t("layer.layers")), 1),
|
|
@@ -4834,7 +4834,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4834
4834
|
onClick: (me) => r.handleToggleMapFeather(F)
|
|
4835
4835
|
}, [
|
|
4836
4836
|
s("div", {
|
|
4837
|
-
class:
|
|
4837
|
+
class: Ye([a.mapFeather === F.value ? "active" : "", "img-box"])
|
|
4838
4838
|
}, [
|
|
4839
4839
|
F.value === "dark" ? (y(), M("img", ll)) : F.value === "nautical" ? (y(), M("img", nl)) : F.value === "satellite" ? (y(), M("img", cl)) : (y(), M("img", ml))
|
|
4840
4840
|
], 2),
|
|
@@ -5039,7 +5039,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5039
5039
|
o.map ? (y(), R(L, B({
|
|
5040
5040
|
key: 6,
|
|
5041
5041
|
map: o.map,
|
|
5042
|
-
zone: (
|
|
5042
|
+
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5043
5043
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5044
5044
|
o.map ? (y(), R(z, B({
|
|
5045
5045
|
key: 7,
|
|
@@ -5200,7 +5200,7 @@ class Do {
|
|
|
5200
5200
|
o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
5201
5201
|
}
|
|
5202
5202
|
}
|
|
5203
|
-
class
|
|
5203
|
+
class Ne {
|
|
5204
5204
|
/**
|
|
5205
5205
|
* 创建着色器
|
|
5206
5206
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -5775,7 +5775,7 @@ const bl = {
|
|
|
5775
5775
|
texture: void 0,
|
|
5776
5776
|
rampColor: void 0,
|
|
5777
5777
|
aPositionBuffer: void 0,
|
|
5778
|
-
webgl: new
|
|
5778
|
+
webgl: new Ne(),
|
|
5779
5779
|
etime: void 0,
|
|
5780
5780
|
wrapper: void 0,
|
|
5781
5781
|
animation: void 0,
|
|
@@ -5924,7 +5924,7 @@ function xl(t, e, o, i, a, r) {
|
|
|
5924
5924
|
return (l = o.factor) != null && l.active ? (y(), M("div", wl, [
|
|
5925
5925
|
s("div", {
|
|
5926
5926
|
class: "legend-bars-gl4 wind",
|
|
5927
|
-
style:
|
|
5927
|
+
style: ae({ right: a.right + "px" })
|
|
5928
5928
|
}, e[0] || (e[0] = [
|
|
5929
5929
|
s("span", null, "kts", -1),
|
|
5930
5930
|
s("span", null, "0", -1),
|
|
@@ -6116,7 +6116,7 @@ const Ll = {
|
|
|
6116
6116
|
texture: void 0,
|
|
6117
6117
|
rampColor: void 0,
|
|
6118
6118
|
aPositionBuffer: void 0,
|
|
6119
|
-
webgl: new
|
|
6119
|
+
webgl: new Ne(),
|
|
6120
6120
|
etime: void 0,
|
|
6121
6121
|
wrapper: void 0,
|
|
6122
6122
|
animation: void 0,
|
|
@@ -6262,7 +6262,7 @@ function Cl(t, e, o, i, a, r) {
|
|
|
6262
6262
|
return (l = o.factor) != null && l.active ? (y(), M("div", Pl, [
|
|
6263
6263
|
s("div", {
|
|
6264
6264
|
class: "legend-bars-gl4 current",
|
|
6265
|
-
style:
|
|
6265
|
+
style: ae({ right: a.right + "px" })
|
|
6266
6266
|
}, e[0] || (e[0] = [
|
|
6267
6267
|
s("span", null, "kts", -1),
|
|
6268
6268
|
s("span", null, "0", -1),
|
|
@@ -6299,7 +6299,7 @@ const Sl = {
|
|
|
6299
6299
|
texture: void 0,
|
|
6300
6300
|
rampColor: void 0,
|
|
6301
6301
|
aPositionBuffer: void 0,
|
|
6302
|
-
webgl: new
|
|
6302
|
+
webgl: new Ne(),
|
|
6303
6303
|
etime: void 0,
|
|
6304
6304
|
right: 10
|
|
6305
6305
|
};
|
|
@@ -6386,7 +6386,7 @@ function Il(t, e, o, i, a, r) {
|
|
|
6386
6386
|
return (l = o.factor) != null && l.active ? (y(), M("div", Ml, [
|
|
6387
6387
|
s("div", {
|
|
6388
6388
|
class: "legend-bars-gl4 sig-wave",
|
|
6389
|
-
style:
|
|
6389
|
+
style: ae({ right: a.right + "px" })
|
|
6390
6390
|
}, e[0] || (e[0] = [
|
|
6391
6391
|
s("span", null, "m", -1),
|
|
6392
6392
|
s("span", null, "0.5", -1),
|
|
@@ -6571,7 +6571,7 @@ const Bl = {
|
|
|
6571
6571
|
texture: void 0,
|
|
6572
6572
|
rampColor: void 0,
|
|
6573
6573
|
aPositionBuffer: void 0,
|
|
6574
|
-
webgl: new
|
|
6574
|
+
webgl: new Ne(),
|
|
6575
6575
|
etime: void 0,
|
|
6576
6576
|
right: 10
|
|
6577
6577
|
};
|
|
@@ -6658,7 +6658,7 @@ function jl(t, e, o, i, a, r) {
|
|
|
6658
6658
|
return (l = o.factor) != null && l.active ? (y(), M("div", El, [
|
|
6659
6659
|
s("div", {
|
|
6660
6660
|
class: "legend-bars-gl4 swell",
|
|
6661
|
-
style:
|
|
6661
|
+
style: ae({ right: a.right + "px" })
|
|
6662
6662
|
}, e[0] || (e[0] = [
|
|
6663
6663
|
s("span", null, "m", -1),
|
|
6664
6664
|
s("span", null, "0.5", -1),
|
|
@@ -6825,7 +6825,7 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6825
6825
|
return (n = o.prmsl) != null && n.active ? (y(), M("div", Hl, [
|
|
6826
6826
|
s("div", {
|
|
6827
6827
|
class: "menu-bar-box pa-1 rounded",
|
|
6828
|
-
style:
|
|
6828
|
+
style: ae({ right: a.right + "px" })
|
|
6829
6829
|
}, [
|
|
6830
6830
|
p(c, {
|
|
6831
6831
|
text: "Map Layers",
|
|
@@ -6877,7 +6877,7 @@ const Wl = {
|
|
|
6877
6877
|
texture: void 0,
|
|
6878
6878
|
rampColor: void 0,
|
|
6879
6879
|
aPositionBuffer: void 0,
|
|
6880
|
-
webgl: new
|
|
6880
|
+
webgl: new Ne(),
|
|
6881
6881
|
etime: void 0,
|
|
6882
6882
|
right: 10
|
|
6883
6883
|
};
|
|
@@ -6957,7 +6957,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
6957
6957
|
return (l = o.factor) != null && l.active ? (y(), M("div", Vl, [
|
|
6958
6958
|
s("div", {
|
|
6959
6959
|
class: "legend-bars-gl4 ice-edge",
|
|
6960
|
-
style:
|
|
6960
|
+
style: ae({ right: a.right + "px" })
|
|
6961
6961
|
}, e[0] || (e[0] = [
|
|
6962
6962
|
s("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
6963
6963
|
s("span", null, null, -1),
|
|
@@ -6999,7 +6999,7 @@ const ql = {
|
|
|
6999
6999
|
texture: void 0,
|
|
7000
7000
|
rampColor: void 0,
|
|
7001
7001
|
aPositionBuffer: void 0,
|
|
7002
|
-
webgl: new
|
|
7002
|
+
webgl: new Ne(),
|
|
7003
7003
|
etime: void 0,
|
|
7004
7004
|
right: 10
|
|
7005
7005
|
};
|
|
@@ -7070,7 +7070,7 @@ function $l(t, e, o, i, a, r) {
|
|
|
7070
7070
|
return (l = o.factor) != null && l.active ? (y(), M("div", Xl, [
|
|
7071
7071
|
s("div", {
|
|
7072
7072
|
class: "legend-bars-gl4 ice-cover",
|
|
7073
|
-
style:
|
|
7073
|
+
style: ae({ right: a.right + "px" })
|
|
7074
7074
|
}, e[0] || (e[0] = [
|
|
7075
7075
|
s("span", null, "%", -1),
|
|
7076
7076
|
s("span", null, "20", -1),
|
|
@@ -7106,7 +7106,7 @@ const Jl = {
|
|
|
7106
7106
|
texture: void 0,
|
|
7107
7107
|
rampColor: void 0,
|
|
7108
7108
|
aPositionBuffer: void 0,
|
|
7109
|
-
webgl: new
|
|
7109
|
+
webgl: new Ne(),
|
|
7110
7110
|
etime: void 0,
|
|
7111
7111
|
right: 10
|
|
7112
7112
|
};
|
|
@@ -7184,7 +7184,7 @@ function en(t, e, o, i, a, r) {
|
|
|
7184
7184
|
return (l = o.factor) != null && l.active ? (y(), M("div", Ql, [
|
|
7185
7185
|
s("div", {
|
|
7186
7186
|
class: "legend-bars-gl4 ice-thickness",
|
|
7187
|
-
style:
|
|
7187
|
+
style: ae({ right: a.right + "px" })
|
|
7188
7188
|
}, e[0] || (e[0] = [
|
|
7189
7189
|
s("span", null, "m", -1),
|
|
7190
7190
|
s("span", null, "0", -1),
|
|
@@ -7225,7 +7225,7 @@ const on = {
|
|
|
7225
7225
|
texture: void 0,
|
|
7226
7226
|
rampColor: void 0,
|
|
7227
7227
|
aPositionBuffer: void 0,
|
|
7228
|
-
webgl: new
|
|
7228
|
+
webgl: new Ne(),
|
|
7229
7229
|
etime: void 0,
|
|
7230
7230
|
right: 10
|
|
7231
7231
|
};
|
|
@@ -7300,7 +7300,7 @@ function rn(t, e, o, i, a, r) {
|
|
|
7300
7300
|
return (l = o.factor) != null && l.active ? (y(), M("div", an, [
|
|
7301
7301
|
s("div", {
|
|
7302
7302
|
class: "legend-bars-gl4 precip3h",
|
|
7303
|
-
style:
|
|
7303
|
+
style: ae({ right: a.right + "px" })
|
|
7304
7304
|
}, e[0] || (e[0] = [
|
|
7305
7305
|
s("span", null, "mm", -1),
|
|
7306
7306
|
s("span", null, "1.5", -1),
|
|
@@ -7339,7 +7339,7 @@ const ln = {
|
|
|
7339
7339
|
texture: void 0,
|
|
7340
7340
|
rampColor: void 0,
|
|
7341
7341
|
aPositionBuffer: void 0,
|
|
7342
|
-
webgl: new
|
|
7342
|
+
webgl: new Ne(),
|
|
7343
7343
|
etime: void 0
|
|
7344
7344
|
};
|
|
7345
7345
|
},
|
|
@@ -7407,7 +7407,7 @@ function cn(t, e, o, i, a, r) {
|
|
|
7407
7407
|
return (l = o.factor) != null && l.active ? (y(), M("div", nn, [
|
|
7408
7408
|
s("div", {
|
|
7409
7409
|
class: "legend-bars-gl4 visibility",
|
|
7410
|
-
style:
|
|
7410
|
+
style: ae({ right: a.right + "px" })
|
|
7411
7411
|
}, e[0] || (e[0] = [
|
|
7412
7412
|
s("span", null, "nm", -1),
|
|
7413
7413
|
s("span", null, "0", -1),
|
|
@@ -7439,7 +7439,7 @@ const dn = {
|
|
|
7439
7439
|
texture: void 0,
|
|
7440
7440
|
rampColor: void 0,
|
|
7441
7441
|
aPositionBuffer: void 0,
|
|
7442
|
-
webgl: new
|
|
7442
|
+
webgl: new Ne(),
|
|
7443
7443
|
etime: void 0,
|
|
7444
7444
|
right: 10
|
|
7445
7445
|
};
|
|
@@ -7515,7 +7515,7 @@ function pn(t, e, o, i, a, r) {
|
|
|
7515
7515
|
return (l = o.factor) != null && l.active ? (y(), M("div", hn, [
|
|
7516
7516
|
s("div", {
|
|
7517
7517
|
class: "legend-bars-gl4 water-temp",
|
|
7518
|
-
style:
|
|
7518
|
+
style: ae({ right: a.right + "px" })
|
|
7519
7519
|
}, e[0] || (e[0] = [
|
|
7520
7520
|
s("span", null, "°C", -1),
|
|
7521
7521
|
s("span", null, "0", -1),
|
|
@@ -7555,7 +7555,7 @@ const gn = {
|
|
|
7555
7555
|
texture: void 0,
|
|
7556
7556
|
rampColor: void 0,
|
|
7557
7557
|
aPositionBuffer: void 0,
|
|
7558
|
-
webgl: new
|
|
7558
|
+
webgl: new Ne(),
|
|
7559
7559
|
etime: void 0,
|
|
7560
7560
|
right: 10
|
|
7561
7561
|
};
|
|
@@ -7634,7 +7634,7 @@ function yn(t, e, o, i, a, r) {
|
|
|
7634
7634
|
return (l = o.factor) != null && l.active ? (y(), M("div", fn, [
|
|
7635
7635
|
s("div", {
|
|
7636
7636
|
class: "legend-bars-gl4 temp",
|
|
7637
|
-
style:
|
|
7637
|
+
style: ae({ right: a.right + "px" })
|
|
7638
7638
|
}, e[0] || (e[0] = [
|
|
7639
7639
|
s("span", null, "°C", -1),
|
|
7640
7640
|
s("span", null, "-20", -1),
|
|
@@ -8325,12 +8325,12 @@ const wn = {
|
|
|
8325
8325
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8326
8326
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
8327
8327
|
function ic(t, e, o, i, a, r) {
|
|
8328
|
-
var Q,
|
|
8328
|
+
var Q, ie, he, ce, pe, ge, F, me, ve, Pe, Ce, De, Ae, Re, ke;
|
|
8329
8329
|
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), Z = x("IdmSwell"), Y = x("IdmIceEdge"), V = x("IdmIceCover"), ee = x("IdmIceThickness"), J = x("IdmPrecip3h"), $ = x("IdmVisibility"), ne = x("IdmWaterTemp"), se = x("IdmTemp");
|
|
8330
8330
|
return y(), M("div", xn, [
|
|
8331
8331
|
s("div", {
|
|
8332
8332
|
class: "menu-bar-box transition pa-1",
|
|
8333
|
-
style:
|
|
8333
|
+
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
8334
8334
|
}, [
|
|
8335
8335
|
p(c, {
|
|
8336
8336
|
text: t.$t("weather.weatherLayers"),
|
|
@@ -8357,7 +8357,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8357
8357
|
r.showTipMenu ? (y(), M("div", vn, [
|
|
8358
8358
|
s("div", {
|
|
8359
8359
|
class: "menu-bar-box pa-1 rounded",
|
|
8360
|
-
style:
|
|
8360
|
+
style: ae({ right: a.right + "px" })
|
|
8361
8361
|
}, [
|
|
8362
8362
|
p(c, {
|
|
8363
8363
|
text: "Legend",
|
|
@@ -8386,7 +8386,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8386
8386
|
width: "435",
|
|
8387
8387
|
elevation: "16",
|
|
8388
8388
|
class: "card-info d-flex justify-center align-start",
|
|
8389
|
-
style:
|
|
8389
|
+
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
8390
8390
|
}, {
|
|
8391
8391
|
default: f(() => [
|
|
8392
8392
|
p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
@@ -8402,8 +8402,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8402
8402
|
default: f(() => [
|
|
8403
8403
|
s("div", _n, [
|
|
8404
8404
|
s("i", {
|
|
8405
|
-
class:
|
|
8406
|
-
style:
|
|
8405
|
+
class: Ye(["iconfont", r.barbsIconName[te]]),
|
|
8406
|
+
style: ae({ color: o.theme === "dark" ? "#fff" : "#000" })
|
|
8407
8407
|
}, null, 6),
|
|
8408
8408
|
s("span", kn, m(Number(G) < 10 ? `00${G}kts` : Number(G) < 100 ? `0${G}kts` : `${G}kts`), 1)
|
|
8409
8409
|
])
|
|
@@ -8435,7 +8435,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8435
8435
|
s("div", zn, [
|
|
8436
8436
|
te === 0 ? (y(), M("div", Ln)) : (y(), M("div", {
|
|
8437
8437
|
key: 1,
|
|
8438
|
-
style:
|
|
8438
|
+
style: ae({ width: "24px", height: "12px", background: G.color })
|
|
8439
8439
|
}, null, 4)),
|
|
8440
8440
|
s("div", Pn, m(G.label), 1)
|
|
8441
8441
|
])
|
|
@@ -8468,7 +8468,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8468
8468
|
s("div", Tn, [
|
|
8469
8469
|
s("i", {
|
|
8470
8470
|
class: "iconfont icon-a-direction-arrow opacity-80",
|
|
8471
|
-
style:
|
|
8471
|
+
style: ae({ fontSize: 40 * G.size + "px" })
|
|
8472
8472
|
}, null, 4)
|
|
8473
8473
|
]),
|
|
8474
8474
|
s("div", Sn, m(G.label), 1)
|
|
@@ -8488,8 +8488,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8488
8488
|
}, 8, ["style"])) : D("", !0)
|
|
8489
8489
|
])) : D("", !0),
|
|
8490
8490
|
s("div", {
|
|
8491
|
-
class:
|
|
8492
|
-
style:
|
|
8491
|
+
class: Ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
8492
|
+
style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
8493
8493
|
}, [
|
|
8494
8494
|
s("div", Mn, [
|
|
8495
8495
|
s("div", In, [
|
|
@@ -8519,7 +8519,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8519
8519
|
}, 8, ["onClick"])
|
|
8520
8520
|
]),
|
|
8521
8521
|
s("div", {
|
|
8522
|
-
class:
|
|
8522
|
+
class: Ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
8523
8523
|
}, [
|
|
8524
8524
|
p(w, {
|
|
8525
8525
|
class: "block-bg mx-auto mb-3",
|
|
@@ -8742,14 +8742,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
8742
8742
|
}),
|
|
8743
8743
|
p(h, { class: "" }, {
|
|
8744
8744
|
default: f(() => {
|
|
8745
|
-
var G, te,
|
|
8745
|
+
var G, te, Fe, Me, ue, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
8746
8746
|
return [
|
|
8747
8747
|
s("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
8748
|
-
s("div", Bn, m((
|
|
8748
|
+
s("div", Bn, m((Fe = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Te = (ue = (Me = a.models) == null ? void 0 : Me.weather) == null ? void 0 : ue.NOAA) == null ? void 0 : Te.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
8749
8749
|
s("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8750
|
-
s("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (
|
|
8750
|
+
s("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ge = (He = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ge.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
8751
8751
|
s("div", Nn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Be = (Ie = (ye = a.models) == null ? void 0 : ye.weather) == null ? void 0 : Ie.NOAA) == null ? void 0 : Be.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
8752
|
-
s("div", Fn, m((W = (
|
|
8752
|
+
s("div", Fn, m((W = (Ue = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : W.source) + " " + m(($e = (Xe = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Xe.ECMWF) == null ? void 0 : $e.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = (Ke = (_e = a.models) == null ? void 0 : _e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
8753
8753
|
s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8754
8754
|
s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
8755
8755
|
s("div", Un, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
@@ -8791,7 +8791,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8791
8791
|
key: 2,
|
|
8792
8792
|
map: o.map,
|
|
8793
8793
|
"before-layer": "empty-layer-2",
|
|
8794
|
-
"sig-wave-height": (
|
|
8794
|
+
"sig-wave-height": (ie = a.weatherLayers) == null ? void 0 : ie["sig-wave-height"],
|
|
8795
8795
|
"menu-toggle": o.menuToggle,
|
|
8796
8796
|
"active-weather-layers": a.activeWeatherLayers
|
|
8797
8797
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
@@ -9228,15 +9228,15 @@ class Ya {
|
|
|
9228
9228
|
}), a;
|
|
9229
9229
|
}
|
|
9230
9230
|
static pickHourly(e, o) {
|
|
9231
|
-
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q,
|
|
9232
|
-
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"),
|
|
9233
|
-
if (U.isBetween(Oe,
|
|
9231
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q, ie, he, ce, pe, ge, F, me, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ue, Te;
|
|
9232
|
+
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), He = re.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Ge = [];
|
|
9233
|
+
if (U.isBetween(Oe, He, "millisecond", "[]")) {
|
|
9234
9234
|
const E = U.utc().diff(Oe, "h", !1);
|
|
9235
9235
|
let ye, Ie;
|
|
9236
9236
|
if (fe) {
|
|
9237
9237
|
let Be = 0, Ee = 0, j = 0;
|
|
9238
|
-
for (const
|
|
9239
|
-
const W =
|
|
9238
|
+
for (const Ue of fe) {
|
|
9239
|
+
const W = Ue == null ? void 0 : Ue.hourly;
|
|
9240
9240
|
for (let _e = E - (E - 1) % 3; _e <= E; _e++)
|
|
9241
9241
|
Be += (b = W == null ? void 0 : W.precipitation) == null ? void 0 : b.at(_e);
|
|
9242
9242
|
for (let _e = E - (E - 1) % 6; _e <= E; _e++)
|
|
@@ -9270,9 +9270,9 @@ class Ya {
|
|
|
9270
9270
|
isDay: ($ = W == null ? void 0 : W.is_day) == null ? void 0 : $.at(E)
|
|
9271
9271
|
};
|
|
9272
9272
|
const { name: qe, url: Xe, bg: $e } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
9273
|
-
ye.name = qe, ye.url = Xe, ye.bg = $e, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree),
|
|
9273
|
+
ye.name = qe, ye.url = Xe, ye.bg = $e, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Ge.push({
|
|
9274
9274
|
utc: Oe.add(E, "h").format(),
|
|
9275
|
-
model:
|
|
9275
|
+
model: Ue.model,
|
|
9276
9276
|
weather: { ...ye }
|
|
9277
9277
|
});
|
|
9278
9278
|
}
|
|
@@ -9286,7 +9286,7 @@ class Ya {
|
|
|
9286
9286
|
sig: {
|
|
9287
9287
|
height: (ne = j == null ? void 0 : j.wave_height) == null ? void 0 : ne.at(E),
|
|
9288
9288
|
degree: (se = j == null ? void 0 : j.wave_direction) == null ? void 0 : se.at(E),
|
|
9289
|
-
bearing: ((Q = j == null ? void 0 : j.wave_direction) == null ? void 0 : Q.at(E)) !== null ? (((
|
|
9289
|
+
bearing: ((Q = j == null ? void 0 : j.wave_direction) == null ? void 0 : Q.at(E)) !== null ? (((ie = j == null ? void 0 : j.wave_direction) == null ? void 0 : ie.at(E)) + 180) % 360 : null,
|
|
9290
9290
|
period: (he = j == null ? void 0 : j.wave_period) == null ? void 0 : he.at(E)
|
|
9291
9291
|
},
|
|
9292
9292
|
swell: {
|
|
@@ -9307,16 +9307,16 @@ class Ya {
|
|
|
9307
9307
|
current: {
|
|
9308
9308
|
speed: (G = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : G.at(E),
|
|
9309
9309
|
kts: (te = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : te.at(E),
|
|
9310
|
-
degree: (
|
|
9310
|
+
degree: (Fe = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Fe.at(E),
|
|
9311
9311
|
bearing: ((Me = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Me.at(E)) ?? null
|
|
9312
9312
|
},
|
|
9313
9313
|
sst: (ue = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ue.at(E),
|
|
9314
9314
|
height: (Te = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Te.at(E)
|
|
9315
|
-
}, Ie.wave = this.parseWave(Ie.wave, ye == null ? void 0 : ye.wind), Ie.current.direction = this.degree2Direction(Ie.current.degree), Object.assign(
|
|
9315
|
+
}, Ie.wave = this.parseWave(Ie.wave, ye == null ? void 0 : ye.wind), Ie.current.direction = this.degree2Direction(Ie.current.degree), Object.assign(Ge[Be], Ie), Be++;
|
|
9316
9316
|
}
|
|
9317
9317
|
}
|
|
9318
9318
|
}
|
|
9319
|
-
return
|
|
9319
|
+
return Ge;
|
|
9320
9320
|
}
|
|
9321
9321
|
static toLegacy(e) {
|
|
9322
9322
|
var o, i, a, r, l, c, n, u, h, b;
|
|
@@ -9341,9 +9341,9 @@ class Ya {
|
|
|
9341
9341
|
};
|
|
9342
9342
|
}
|
|
9343
9343
|
static pickDaily(e, o) {
|
|
9344
|
-
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q,
|
|
9345
|
-
const Re = typeof o == "string" ? S(o) : o, ke = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = ke == null ? void 0 : ke[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)),
|
|
9346
|
-
if (Re.isBetween(te,
|
|
9344
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q, ie, he, ce, pe, ge, F, me, ve, Pe, Ce, De, Ae;
|
|
9345
|
+
const Re = typeof o == "string" ? S(o) : o, ke = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = ke == null ? void 0 : ke[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (l = ke == null ? void 0 : ke[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9346
|
+
if (Re.isBetween(te, Fe, "millisecond", "[]")) {
|
|
9347
9347
|
let ue, Te;
|
|
9348
9348
|
const U = Re.diff(te, "d", !1);
|
|
9349
9349
|
if (ke)
|
|
@@ -9381,8 +9381,8 @@ class Ya {
|
|
|
9381
9381
|
bearing: ((V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U)) !== null ? (((ee = oe.wind_direction_10m_dominant) == null ? void 0 : ee.at(U)) + 180) % 360 : null
|
|
9382
9382
|
}
|
|
9383
9383
|
};
|
|
9384
|
-
const { name: re, url: Oe, bg:
|
|
9385
|
-
ue.name = re, ue.url = Oe, ue.bg =
|
|
9384
|
+
const { name: re, url: Oe, bg: He } = this.parseWeatherCode(ue.code, !0);
|
|
9385
|
+
ue.name = re, ue.url = Oe, ue.bg = He, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Me.push({
|
|
9386
9386
|
utc: te.add(U, "d").utc().format(),
|
|
9387
9387
|
model: fe.model,
|
|
9388
9388
|
weather: { ...ue }
|
|
@@ -9401,7 +9401,7 @@ class Ya {
|
|
|
9401
9401
|
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) !== null ? (((Q = re.wave_direction_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
|
|
9402
9402
|
},
|
|
9403
9403
|
swell: {
|
|
9404
|
-
height: (
|
|
9404
|
+
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(U),
|
|
9405
9405
|
degree: (he = re.swell_wave_direction_dominant) == null ? void 0 : he.at(U),
|
|
9406
9406
|
period: (ce = re.swell_wave_period_max) == null ? void 0 : ce.at(U),
|
|
9407
9407
|
peakPeriod: (pe = re.swell_wave_peak_period_max) == null ? void 0 : pe.at(U),
|
|
@@ -10332,15 +10332,15 @@ const sc = {
|
|
|
10332
10332
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10333
10333
|
for (const Q of $)
|
|
10334
10334
|
if (!Q.properties.disabled) {
|
|
10335
|
-
let
|
|
10336
|
-
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ?
|
|
10335
|
+
let ie = "#f44336";
|
|
10336
|
+
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((b = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((_ = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) < 47 ? ie = "#f2f202" : ((P = (g = Q.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ie = "#ff9100" : ((L = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (z = Q.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 79 ? ie = "#f44336" : ((k = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 79 && ((N = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ie = "#f903d0" : ((Y = (Z = Q.properties) == null ? void 0 : Z.wind) == null ? void 0 : Y.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
10337
10337
|
const he = `<svg t="1719918955501"
|
|
10338
10338
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10339
10339
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
10340
10340
|
<path
|
|
10341
10341
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
10342
|
-
fill="${
|
|
10343
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
10342
|
+
fill="${ie}" p-id="18383"></path>
|
|
10343
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${ie}"
|
|
10344
10344
|
p-id="18384"></path>
|
|
10345
10345
|
<path
|
|
10346
10346
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -10528,7 +10528,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10528
10528
|
return y(), M("div", lc, [
|
|
10529
10529
|
s("div", {
|
|
10530
10530
|
class: "menu-bar-box transition pa-1",
|
|
10531
|
-
style:
|
|
10531
|
+
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
10532
10532
|
}, [
|
|
10533
10533
|
p(c, {
|
|
10534
10534
|
text: t.$t("tropical.tropicals"),
|
|
@@ -10623,7 +10623,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10623
10623
|
variant: k.disabled ? "text" : "flat",
|
|
10624
10624
|
color: k.disabled ? "" : "primary",
|
|
10625
10625
|
"min-width": 30,
|
|
10626
|
-
class:
|
|
10626
|
+
class: Ye(["model text-none text-body-1 px-1", k.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10627
10627
|
onClick: je((N) => r.handleForecastToggle(k), ["stop"])
|
|
10628
10628
|
}, {
|
|
10629
10629
|
default: f(() => [
|
|
@@ -10689,11 +10689,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10689
10689
|
_: 1
|
|
10690
10690
|
}),
|
|
10691
10691
|
s("div", Tc, [
|
|
10692
|
-
|
|
10692
|
+
Ve(p(b, { elevation: "16" }, {
|
|
10693
10693
|
default: f(() => [
|
|
10694
10694
|
p(n, null, {
|
|
10695
10695
|
default: f(() => [
|
|
10696
|
-
|
|
10696
|
+
Ve(s("div", Sc, e[6] || (e[6] = [
|
|
10697
10697
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
10698
10698
|
s("div", { class: "icon td" }),
|
|
10699
10699
|
s("div", { class: "label" }, "TD")
|
|
@@ -10719,9 +10719,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
10719
10719
|
s("div", { class: "label" }, "Super TY")
|
|
10720
10720
|
], -1)
|
|
10721
10721
|
]), 512), [
|
|
10722
|
-
[
|
|
10722
|
+
[Ze, a.showLegend]
|
|
10723
10723
|
]),
|
|
10724
|
-
|
|
10724
|
+
Ve(s("div", Mc, e[7] || (e[7] = [
|
|
10725
10725
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
10726
10726
|
s("div", { class: "icon history" }),
|
|
10727
10727
|
s("div", { class: "label" }, "History")
|
|
@@ -10739,7 +10739,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10739
10739
|
s("div", { class: "label" }, "50kts Radii")
|
|
10740
10740
|
], -1)
|
|
10741
10741
|
]), 512), [
|
|
10742
|
-
[
|
|
10742
|
+
[Ze, a.showLegend]
|
|
10743
10743
|
])
|
|
10744
10744
|
]),
|
|
10745
10745
|
_: 1
|
|
@@ -10747,11 +10747,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10747
10747
|
]),
|
|
10748
10748
|
_: 1
|
|
10749
10749
|
}, 512), [
|
|
10750
|
-
[
|
|
10750
|
+
[Ze, a.showLegend]
|
|
10751
10751
|
])
|
|
10752
10752
|
])
|
|
10753
10753
|
])) : D("", !0),
|
|
10754
|
-
|
|
10754
|
+
Ve(p(b, {
|
|
10755
10755
|
id: "tropicalHoverMarkerInfo",
|
|
10756
10756
|
elevation: "16",
|
|
10757
10757
|
"max-width": "280"
|
|
@@ -10823,7 +10823,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10823
10823
|
]),
|
|
10824
10824
|
_: 1
|
|
10825
10825
|
}, 512), [
|
|
10826
|
-
[
|
|
10826
|
+
[Ze, a.showHoverPoint]
|
|
10827
10827
|
])
|
|
10828
10828
|
]);
|
|
10829
10829
|
}
|
|
@@ -10885,6 +10885,28 @@ const om = {
|
|
|
10885
10885
|
};
|
|
10886
10886
|
},
|
|
10887
10887
|
computed: {
|
|
10888
|
+
getStyle() {
|
|
10889
|
+
if (this.position === "top")
|
|
10890
|
+
return {
|
|
10891
|
+
bottom: "40px",
|
|
10892
|
+
left: `-${(350 - this.width) / 2}px`
|
|
10893
|
+
};
|
|
10894
|
+
if (this.position === "bottom")
|
|
10895
|
+
return {
|
|
10896
|
+
top: "40px",
|
|
10897
|
+
left: `-${(350 - this.width) / 2}px`
|
|
10898
|
+
};
|
|
10899
|
+
if (this.position === "left")
|
|
10900
|
+
return {
|
|
10901
|
+
bottom: "-140px",
|
|
10902
|
+
left: "-358px"
|
|
10903
|
+
};
|
|
10904
|
+
if (this.position === "right")
|
|
10905
|
+
return {
|
|
10906
|
+
bottom: "-140px",
|
|
10907
|
+
right: "-358px"
|
|
10908
|
+
};
|
|
10909
|
+
},
|
|
10888
10910
|
currentYear() {
|
|
10889
10911
|
return S(this.currentTimestamp).format("YYYY");
|
|
10890
10912
|
},
|
|
@@ -11002,7 +11024,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11002
11024
|
text: "",
|
|
11003
11025
|
height: o.height,
|
|
11004
11026
|
width: o.width,
|
|
11005
|
-
class: "elevation-0 text-body-1 px-2 btn-border-1 btn-bg-1",
|
|
11027
|
+
class: "elevation-0 text-body-1 px-2 btn-border-1 btn-bg-1 justify-start",
|
|
11006
11028
|
onClick: r.handleOpenDatePicker
|
|
11007
11029
|
}, {
|
|
11008
11030
|
default: f(() => [
|
|
@@ -11012,7 +11034,8 @@ function lm(t, e, o, i, a, r) {
|
|
|
11012
11034
|
}, 8, ["height", "width", "onClick"]),
|
|
11013
11035
|
a.showDatePicker ? (y(), R(g, {
|
|
11014
11036
|
key: 0,
|
|
11015
|
-
class:
|
|
11037
|
+
class: "card-box d-flex flex-column border",
|
|
11038
|
+
style: ae(r.getStyle)
|
|
11016
11039
|
}, {
|
|
11017
11040
|
default: f(() => [
|
|
11018
11041
|
p(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
@@ -11105,7 +11128,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11105
11128
|
})
|
|
11106
11129
|
]),
|
|
11107
11130
|
_: 1
|
|
11108
|
-
}, 8, ["
|
|
11131
|
+
}, 8, ["style"])) : D("", !0)
|
|
11109
11132
|
], 512);
|
|
11110
11133
|
}
|
|
11111
11134
|
const Ao = /* @__PURE__ */ q(om, [["render", lm]]);
|
|
@@ -11351,10 +11374,10 @@ const nm = {
|
|
|
11351
11374
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11352
11375
|
},
|
|
11353
11376
|
initTableData(t) {
|
|
11354
|
-
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q,
|
|
11377
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q, ie, he, ce, pe, ge, F, me, ve;
|
|
11355
11378
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11356
11379
|
const e = ((l = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11357
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (
|
|
11380
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
11358
11381
|
},
|
|
11359
11382
|
handleBind() {
|
|
11360
11383
|
var t, e;
|
|
@@ -11467,7 +11490,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11467
11490
|
return y(), M("div", cm, [
|
|
11468
11491
|
s("div", {
|
|
11469
11492
|
class: "menu-bar-box transition pa-1",
|
|
11470
|
-
style:
|
|
11493
|
+
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
11471
11494
|
}, [
|
|
11472
11495
|
p(c, {
|
|
11473
11496
|
text: t.$t("spot.spotsMeteo"),
|
|
@@ -11494,7 +11517,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11494
11517
|
a.showForm ? (y(), R(I, {
|
|
11495
11518
|
key: 0,
|
|
11496
11519
|
class: "spot-form-card",
|
|
11497
|
-
style:
|
|
11520
|
+
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
11498
11521
|
}, {
|
|
11499
11522
|
default: f(() => [
|
|
11500
11523
|
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
@@ -11741,7 +11764,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11741
11764
|
density: "compact",
|
|
11742
11765
|
height: "30",
|
|
11743
11766
|
value: "GFS",
|
|
11744
|
-
class:
|
|
11767
|
+
class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
|
|
11745
11768
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
11746
11769
|
"base-color": ""
|
|
11747
11770
|
}, {
|
|
@@ -11754,7 +11777,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11754
11777
|
p(l, {
|
|
11755
11778
|
density: "compact",
|
|
11756
11779
|
height: "30",
|
|
11757
|
-
class:
|
|
11780
|
+
class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
11758
11781
|
color: a.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
11759
11782
|
"base-color": "",
|
|
11760
11783
|
value: "ECMWF"
|
|
@@ -11947,14 +11970,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11947
11970
|
]),
|
|
11948
11971
|
_: 1
|
|
11949
11972
|
})) : D("", !0),
|
|
11950
|
-
|
|
11973
|
+
Ve(s("div", Zm, [
|
|
11951
11974
|
(y(), M("svg", Ym, [
|
|
11952
11975
|
s("use", {
|
|
11953
11976
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
11954
11977
|
}, null, 8, qm)
|
|
11955
11978
|
]))
|
|
11956
11979
|
], 512), [
|
|
11957
|
-
[
|
|
11980
|
+
[Ze, a.showMeteo]
|
|
11958
11981
|
])
|
|
11959
11982
|
]);
|
|
11960
11983
|
}
|
|
@@ -12131,10 +12154,10 @@ const Km = {
|
|
|
12131
12154
|
let o = 0;
|
|
12132
12155
|
const i = [];
|
|
12133
12156
|
for (let a = 1; a < e.length; a++) {
|
|
12134
|
-
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h =
|
|
12157
|
+
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = We.calculateDistance(n, u, c.mode === "RL", 4), b = We.calculateBearing(n, u, c.mode === "RL", 2);
|
|
12135
12158
|
o = X.roundPrecision(o + h, 4);
|
|
12136
12159
|
let w;
|
|
12137
|
-
c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(
|
|
12160
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, u, 200));
|
|
12138
12161
|
const _ = H.lineString(w.map((P) => [P.lng, P.lat]));
|
|
12139
12162
|
_.properties.dist = h, _.properties.bearing = b, _.properties.total = o, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
|
|
12140
12163
|
const g = e[a];
|
|
@@ -12149,17 +12172,17 @@ const Km = {
|
|
|
12149
12172
|
let r, l;
|
|
12150
12173
|
if (e) {
|
|
12151
12174
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
12152
|
-
r =
|
|
12175
|
+
r = We.calculateDistance(u, h, n.mode === "RL", 4), l = We.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12153
12176
|
let b;
|
|
12154
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
12177
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, h, 200));
|
|
12155
12178
|
const w = H.lineString(b.map((_) => [_.lng, _.lat]));
|
|
12156
12179
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12157
12180
|
}
|
|
12158
12181
|
if (i) {
|
|
12159
12182
|
const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12160
|
-
r =
|
|
12183
|
+
r = We.calculateDistance(u, h, n.mode === "RL", 4), l = We.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12161
12184
|
let b;
|
|
12162
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
12185
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, h, 200));
|
|
12163
12186
|
const w = H.lineString(b.map((_) => [_.lng, _.lat]));
|
|
12164
12187
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12165
12188
|
}
|
|
@@ -12315,7 +12338,7 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12315
12338
|
return y(), M("div", Jm, [
|
|
12316
12339
|
s("div", {
|
|
12317
12340
|
class: "menu-bar-box transition pa-1",
|
|
12318
|
-
style:
|
|
12341
|
+
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
12319
12342
|
}, [
|
|
12320
12343
|
p(c, {
|
|
12321
12344
|
text: t.$t("measure.measure"),
|
|
@@ -12476,7 +12499,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12476
12499
|
return y(), M("div", od, [
|
|
12477
12500
|
s("div", {
|
|
12478
12501
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
12479
|
-
style:
|
|
12502
|
+
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12480
12503
|
}, [
|
|
12481
12504
|
s("div", ad, [
|
|
12482
12505
|
p(l, B({
|
|
@@ -12750,7 +12773,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12750
12773
|
], 4),
|
|
12751
12774
|
s("div", {
|
|
12752
12775
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
12753
|
-
style:
|
|
12776
|
+
style: ae({ right: a.right + "px" })
|
|
12754
12777
|
}, [
|
|
12755
12778
|
a.showTimezone ? (y(), M("div", ld, [
|
|
12756
12779
|
(y(!0), M(be, null, we(a.offsets, (g) => (y(), M("div", {
|
|
@@ -12918,7 +12941,7 @@ class yd {
|
|
|
12918
12941
|
de(this, "hi");
|
|
12919
12942
|
de(this, "td");
|
|
12920
12943
|
de(this, "windy");
|
|
12921
|
-
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q,
|
|
12944
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, Z, Y, V, ee, J, $, ne, se, Q, ie, he, ce, pe, ge, F, me, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ue, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa, Va;
|
|
12922
12945
|
this.i4 = {
|
|
12923
12946
|
source: {
|
|
12924
12947
|
type: "raster",
|
|
@@ -31575,7 +31598,7 @@ class yd {
|
|
|
31575
31598
|
(ee = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31576
31599
|
($ = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31577
31600
|
(se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
|
|
31578
|
-
(
|
|
31601
|
+
(ie = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ie.find((d) => d.id === "ne-10m-label"),
|
|
31579
31602
|
(ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
|
|
31580
31603
|
(ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
|
|
31581
31604
|
(me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
|
|
@@ -31583,7 +31606,7 @@ class yd {
|
|
|
31583
31606
|
(De = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31584
31607
|
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31585
31608
|
(G = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : G.find((d) => d.id === "country-label"),
|
|
31586
|
-
(
|
|
31609
|
+
(Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((d) => d.id === "continent-label"),
|
|
31587
31610
|
(ue = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : ue.find((d) => d.id === "tide-stations"),
|
|
31588
31611
|
(U = (Te = this.originStyle) == null ? void 0 : Te.light.layers) == null ? void 0 : U.find((d) => d.id === "empty-layer-3"),
|
|
31589
31612
|
(oe = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : oe.find((d) => d.id === "empty-layer-4")
|
|
@@ -31602,8 +31625,8 @@ class yd {
|
|
|
31602
31625
|
range: [0.5, 10]
|
|
31603
31626
|
},
|
|
31604
31627
|
sources: (Oe = this.originStyle) == null ? void 0 : Oe.dark.sources,
|
|
31605
|
-
sprite: (
|
|
31606
|
-
glyphs: (
|
|
31628
|
+
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
31629
|
+
glyphs: (Ge = this.originStyle) == null ? void 0 : Ge.dark.glyphs,
|
|
31607
31630
|
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
31608
31631
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
31609
31632
|
owner: "neatchenheng",
|
|
@@ -31613,7 +31636,7 @@ class yd {
|
|
|
31613
31636
|
layers: [
|
|
31614
31637
|
(Ie = (ye = this.originStyle) == null ? void 0 : ye.dark.layers) == null ? void 0 : Ie.find((d) => d.id === "land"),
|
|
31615
31638
|
(Ee = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "water"),
|
|
31616
|
-
(
|
|
31639
|
+
(Ue = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : Ue.find((d) => d.id === "ice-area-fill"),
|
|
31617
31640
|
(qe = (W = this.originStyle) == null ? void 0 : W.dark.layers) == null ? void 0 : qe.find((d) => d.id === "ice-area-line"),
|
|
31618
31641
|
($e = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : $e.find((d) => d.id === "loadlines-label"),
|
|
31619
31642
|
(Ke = (_e = this.originStyle) == null ? void 0 : _e.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-fill"),
|
|
@@ -31884,7 +31907,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
31884
31907
|
e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
|
|
31885
31908
|
s("div", {
|
|
31886
31909
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
31887
|
-
style:
|
|
31910
|
+
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31888
31911
|
}, [
|
|
31889
31912
|
s("div", xd, [
|
|
31890
31913
|
p(l, {
|
|
@@ -31976,6 +31999,28 @@ const Ld = {
|
|
|
31976
31999
|
};
|
|
31977
32000
|
},
|
|
31978
32001
|
computed: {
|
|
32002
|
+
getStyle() {
|
|
32003
|
+
if (this.position === "top")
|
|
32004
|
+
return {
|
|
32005
|
+
bottom: "40px",
|
|
32006
|
+
left: `-${(260 - this.width) / 2}px`
|
|
32007
|
+
};
|
|
32008
|
+
if (this.position === "bottom")
|
|
32009
|
+
return {
|
|
32010
|
+
top: "40px",
|
|
32011
|
+
left: `-${(260 - this.width) / 2}px`
|
|
32012
|
+
};
|
|
32013
|
+
if (this.position === "left")
|
|
32014
|
+
return {
|
|
32015
|
+
bottom: "-140px",
|
|
32016
|
+
left: "-278px"
|
|
32017
|
+
};
|
|
32018
|
+
if (this.position === "right")
|
|
32019
|
+
return {
|
|
32020
|
+
bottom: "-140px",
|
|
32021
|
+
right: "-278px"
|
|
32022
|
+
};
|
|
32023
|
+
},
|
|
31979
32024
|
currentYear() {
|
|
31980
32025
|
return S(this.dateRange[0]).format("YYYY");
|
|
31981
32026
|
},
|
|
@@ -32106,7 +32151,8 @@ function Td(t, e, o, i, a, r) {
|
|
|
32106
32151
|
}, 8, ["height", "width", "onClick"]),
|
|
32107
32152
|
a.showDatePicker ? (y(), R(b, {
|
|
32108
32153
|
key: 0,
|
|
32109
|
-
class:
|
|
32154
|
+
class: "card-box d-flex flex-column border",
|
|
32155
|
+
style: ae(r.getStyle)
|
|
32110
32156
|
}, {
|
|
32111
32157
|
default: f(() => [
|
|
32112
32158
|
p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
@@ -32166,7 +32212,7 @@ function Td(t, e, o, i, a, r) {
|
|
|
32166
32212
|
})
|
|
32167
32213
|
]),
|
|
32168
32214
|
_: 1
|
|
32169
|
-
}, 8, ["
|
|
32215
|
+
}, 8, ["style"])) : D("", !0)
|
|
32170
32216
|
], 512);
|
|
32171
32217
|
}
|
|
32172
32218
|
const Sd = /* @__PURE__ */ q(Ld, [["render", Td]]), Hd = {
|
|
@@ -32185,6 +32231,6 @@ export {
|
|
|
32185
32231
|
Io as PortDetail,
|
|
32186
32232
|
Xa as TropicalGL,
|
|
32187
32233
|
Do as Viewport,
|
|
32188
|
-
|
|
32234
|
+
Ne as WebGL,
|
|
32189
32235
|
le as WebGLSchema
|
|
32190
32236
|
};
|