@idmwx/idmui-gl4 1.6.7 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +105 -105
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
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 ze } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as We, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
|
-
import { LngLatHelper as
|
|
9
|
+
import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as ao, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
11
11
|
import * as ro from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
@@ -1365,7 +1365,7 @@ const ui = {
|
|
|
1365
1365
|
computed: {
|
|
1366
1366
|
dateList() {
|
|
1367
1367
|
var o, i, a, r;
|
|
1368
|
-
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ?
|
|
1368
|
+
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? X.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
|
|
1369
1369
|
for (let l = 0; l < 4; l++) {
|
|
1370
1370
|
let c = {
|
|
1371
1371
|
index: l,
|
|
@@ -1386,7 +1386,7 @@ const ui = {
|
|
|
1386
1386
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
1387
1387
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
1388
1388
|
return "-";
|
|
1389
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
1389
|
+
const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1390
1390
|
return M(t).utcOffset(i).format(o);
|
|
1391
1391
|
};
|
|
1392
1392
|
},
|
|
@@ -1394,18 +1394,18 @@ const ui = {
|
|
|
1394
1394
|
return function(t) {
|
|
1395
1395
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
1396
1396
|
return "-";
|
|
1397
|
-
const e =
|
|
1397
|
+
const e = X.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
1398
1398
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
1399
1399
|
};
|
|
1400
1400
|
},
|
|
1401
1401
|
computePosition() {
|
|
1402
1402
|
return function(t) {
|
|
1403
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
1403
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
1404
1404
|
};
|
|
1405
1405
|
},
|
|
1406
1406
|
computeRoundPrecision() {
|
|
1407
1407
|
return function(t, e = 4) {
|
|
1408
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
1408
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
},
|
|
@@ -1487,10 +1487,10 @@ const ui = {
|
|
|
1487
1487
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1488
1488
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1489
1489
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1490
|
-
var c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
1490
|
+
var c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
|
|
1491
1491
|
let r = {};
|
|
1492
1492
|
const l = ((c = ao.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1493
|
-
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((z = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : z.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((k = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : k.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 = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((U = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : U.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ne = (
|
|
1493
|
+
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((z = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : z.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((k = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : k.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 = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((U = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : U.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((J = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.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 = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.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 = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.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;
|
|
1494
1494
|
});
|
|
1495
1495
|
},
|
|
1496
1496
|
handleTide() {
|
|
@@ -1735,7 +1735,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1735
1735
|
p(u, { color: "warning" })
|
|
1736
1736
|
]),
|
|
1737
1737
|
default: f(() => [
|
|
1738
|
-
|
|
1738
|
+
K(" " + m(t.$t("actions.unfollow")), 1)
|
|
1739
1739
|
]),
|
|
1740
1740
|
_: 1
|
|
1741
1741
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -1748,7 +1748,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1748
1748
|
onClick: r.handleFollow
|
|
1749
1749
|
}, {
|
|
1750
1750
|
default: f(() => [
|
|
1751
|
-
|
|
1751
|
+
K(m(t.$t("actions.follow")), 1)
|
|
1752
1752
|
]),
|
|
1753
1753
|
_: 1
|
|
1754
1754
|
}, 8, ["onClick"])),
|
|
@@ -1760,7 +1760,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1760
1760
|
onClick: r.handleMeteoMore
|
|
1761
1761
|
}, {
|
|
1762
1762
|
default: f(() => [
|
|
1763
|
-
|
|
1763
|
+
K(m(t.$t("actions.7dayForcast")), 1)
|
|
1764
1764
|
]),
|
|
1765
1765
|
_: 1
|
|
1766
1766
|
}, 8, ["onClick"])
|
|
@@ -1825,7 +1825,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1825
1825
|
value: g.index
|
|
1826
1826
|
}, {
|
|
1827
1827
|
default: f(() => [
|
|
1828
|
-
|
|
1828
|
+
K(m(g.label), 1)
|
|
1829
1829
|
]),
|
|
1830
1830
|
_: 2
|
|
1831
1831
|
}, 1032, ["value"]))), 256))
|
|
@@ -1838,7 +1838,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1838
1838
|
key: g.id
|
|
1839
1839
|
}, [
|
|
1840
1840
|
s("th", Gi, [
|
|
1841
|
-
|
|
1841
|
+
K(m(t.$t(`${g.key}`)) + " ", 1),
|
|
1842
1842
|
g.unit ? (y(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : D("", !0)
|
|
1843
1843
|
]),
|
|
1844
1844
|
s("td", Ui, [
|
|
@@ -2424,7 +2424,7 @@ const Dr = /* @__PURE__ */ Y(Mr, [["render", Ir]]), Ar = {
|
|
|
2424
2424
|
methods: {
|
|
2425
2425
|
handleRender() {
|
|
2426
2426
|
this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
2427
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
2427
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => X.convertToMonotonicLng2(e));
|
|
2428
2428
|
}), this.map.addSource(this.source, {
|
|
2429
2429
|
type: "geojson",
|
|
2430
2430
|
data: this.area
|
|
@@ -2724,7 +2724,7 @@ const qr = {
|
|
|
2724
2724
|
computed: {
|
|
2725
2725
|
dateList() {
|
|
2726
2726
|
var o, i, a, r;
|
|
2727
|
-
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ?
|
|
2727
|
+
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? X.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
2728
2728
|
for (let l = 0; l < 4; l++) {
|
|
2729
2729
|
let c = {
|
|
2730
2730
|
index: l,
|
|
@@ -2743,7 +2743,7 @@ const qr = {
|
|
|
2743
2743
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
2744
2744
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
2745
2745
|
return "-";
|
|
2746
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
2746
|
+
const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2747
2747
|
return M(t).utcOffset(i).format(o);
|
|
2748
2748
|
};
|
|
2749
2749
|
},
|
|
@@ -2751,18 +2751,18 @@ const qr = {
|
|
|
2751
2751
|
return function(t) {
|
|
2752
2752
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
2753
2753
|
return "-";
|
|
2754
|
-
const e =
|
|
2754
|
+
const e = X.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
2755
2755
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
2756
2756
|
};
|
|
2757
2757
|
},
|
|
2758
2758
|
computePosition() {
|
|
2759
2759
|
return function(t) {
|
|
2760
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
2760
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
2761
2761
|
};
|
|
2762
2762
|
},
|
|
2763
2763
|
computeRoundPrecision() {
|
|
2764
2764
|
return function(t, e = 4) {
|
|
2765
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
2765
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
2766
2766
|
};
|
|
2767
2767
|
}
|
|
2768
2768
|
},
|
|
@@ -3035,7 +3035,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3035
3035
|
value: z.index
|
|
3036
3036
|
}, {
|
|
3037
3037
|
default: f(() => [
|
|
3038
|
-
|
|
3038
|
+
K(m(z.label), 1)
|
|
3039
3039
|
]),
|
|
3040
3040
|
_: 2
|
|
3041
3041
|
}, 1032, ["value"]))), 256))
|
|
@@ -3271,7 +3271,7 @@ const Fs = {
|
|
|
3271
3271
|
},
|
|
3272
3272
|
"lngLat.e": {
|
|
3273
3273
|
handler(t) {
|
|
3274
|
-
this.lngLat.lng =
|
|
3274
|
+
this.lngLat.lng = X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty, this.lngLat.lat = X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty, this.lngLat.str = `[${X.str2Lng(t == null ? void 0 : t.lng, 4)}, ${X.str2Lat(t == null ? void 0 : t.lat, 4)}]`;
|
|
3275
3275
|
},
|
|
3276
3276
|
immediate: !0
|
|
3277
3277
|
}
|
|
@@ -4384,7 +4384,7 @@ const qs = {
|
|
|
4384
4384
|
computed: {
|
|
4385
4385
|
computePosition() {
|
|
4386
4386
|
return function(t) {
|
|
4387
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
4387
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
4388
4388
|
};
|
|
4389
4389
|
}
|
|
4390
4390
|
},
|
|
@@ -4720,7 +4720,7 @@ const el = {
|
|
|
4720
4720
|
class: "border rounded-sm"
|
|
4721
4721
|
}, dl = { class: "text-body-2 text-center pt-1" };
|
|
4722
4722
|
function hl(t, e, o, i, a, r) {
|
|
4723
|
-
var
|
|
4723
|
+
var $, ne, se, J, ae, he, ce, pe, ge;
|
|
4724
4724
|
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), z = w("IdmLatLng"), g = w("IdmTerminator"), P = w("IdmTimezone"), T = w("IdmPort"), O = w("IdmAlertZone"), I = w("IdmTideStations"), L = w("IdmEcaZone"), k = w("IdmWarZone"), v = w("IdmGmdssArea"), C = w("IdmLoadLine"), _ = w("IdmWorldMarine"), A = w("IdmVRA"), N = w("IdmSpecialArea"), V = w("IdmWorld12nm"), Z = w("IdmChinaRoute"), U = w("IdmIceAreas"), ee = w("IdmFollowPort"), Q = w("IdmFollowPosition");
|
|
4725
4725
|
return y(), S("div", tl, [
|
|
4726
4726
|
s("div", {
|
|
@@ -4782,7 +4782,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4782
4782
|
style: { "font-size": "16px !important" }
|
|
4783
4783
|
}, {
|
|
4784
4784
|
default: f(() => [
|
|
4785
|
-
|
|
4785
|
+
K(m(t.$t("layer.mapFeathers")), 1)
|
|
4786
4786
|
]),
|
|
4787
4787
|
_: 1
|
|
4788
4788
|
})
|
|
@@ -4835,7 +4835,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4835
4835
|
style: { "font-size": "16px !important" }
|
|
4836
4836
|
}, {
|
|
4837
4837
|
default: f(() => [
|
|
4838
|
-
|
|
4838
|
+
K(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4839
4839
|
]),
|
|
4840
4840
|
_: 1
|
|
4841
4841
|
})
|
|
@@ -4874,7 +4874,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4874
4874
|
style: { "font-size": "16px !important" }
|
|
4875
4875
|
}, {
|
|
4876
4876
|
default: f(() => [
|
|
4877
|
-
|
|
4877
|
+
K(m(t.$t("layer.otherLayers")), 1)
|
|
4878
4878
|
]),
|
|
4879
4879
|
_: 1
|
|
4880
4880
|
})
|
|
@@ -4913,7 +4913,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4913
4913
|
style: { "font-size": "16px !important" }
|
|
4914
4914
|
}, {
|
|
4915
4915
|
default: f(() => [
|
|
4916
|
-
|
|
4916
|
+
K(m(t.$t("layer.myFollows")), 1)
|
|
4917
4917
|
]),
|
|
4918
4918
|
_: 1
|
|
4919
4919
|
})
|
|
@@ -4961,7 +4961,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4961
4961
|
o.map ? (y(), R(g, B({
|
|
4962
4962
|
key: 1,
|
|
4963
4963
|
map: o.map,
|
|
4964
|
-
area: (
|
|
4964
|
+
area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
|
|
4965
4965
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
4966
4966
|
o.map ? (y(), R(P, B({
|
|
4967
4967
|
key: 2,
|
|
@@ -7996,7 +7996,7 @@ const wn = {
|
|
|
7996
7996
|
var u, h, b, x, z, g, P;
|
|
7997
7997
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7998
7998
|
let e = 0, o = 0;
|
|
7999
|
-
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r =
|
|
7999
|
+
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = X.convertToStdLng(i._sw.lng), l = X.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8000
8000
|
for (const T in this.weatherLayers) {
|
|
8001
8001
|
let O = !1;
|
|
8002
8002
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
@@ -8011,35 +8011,35 @@ const wn = {
|
|
|
8011
8011
|
var N, V, Z, U, ee, Q;
|
|
8012
8012
|
if (a < 2) {
|
|
8013
8013
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8014
|
-
const
|
|
8014
|
+
const $ = H.point([_, v], {
|
|
8015
8015
|
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8016
8016
|
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8017
8017
|
});
|
|
8018
|
-
I.push(
|
|
8018
|
+
I.push($);
|
|
8019
8019
|
}
|
|
8020
8020
|
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8021
|
-
const
|
|
8021
|
+
const $ = H.point([_, v], {
|
|
8022
8022
|
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8023
8023
|
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8024
8024
|
});
|
|
8025
|
-
I.push(
|
|
8025
|
+
I.push($);
|
|
8026
8026
|
}
|
|
8027
8027
|
}) : C.forEach((_, A) => {
|
|
8028
8028
|
var N, V, Z, U, ee, Q;
|
|
8029
8029
|
if (r < 2) {
|
|
8030
8030
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8031
|
-
const
|
|
8031
|
+
const $ = H.point([_, v], {
|
|
8032
8032
|
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8033
8033
|
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8034
8034
|
});
|
|
8035
|
-
I.push(
|
|
8035
|
+
I.push($);
|
|
8036
8036
|
}
|
|
8037
8037
|
} else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8038
|
-
const
|
|
8038
|
+
const $ = H.point([_, v], {
|
|
8039
8039
|
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8040
8040
|
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8041
8041
|
});
|
|
8042
|
-
I.push(
|
|
8042
|
+
I.push($);
|
|
8043
8043
|
}
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
@@ -8075,35 +8075,35 @@ const wn = {
|
|
|
8075
8075
|
var N, V, Z, U, ee, Q;
|
|
8076
8076
|
if (a < 2) {
|
|
8077
8077
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8078
|
-
const
|
|
8078
|
+
const $ = H.point([_, v], {
|
|
8079
8079
|
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8080
8080
|
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8081
8081
|
});
|
|
8082
|
-
I.push(
|
|
8082
|
+
I.push($);
|
|
8083
8083
|
}
|
|
8084
8084
|
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8085
|
-
const
|
|
8085
|
+
const $ = H.point([_, v], {
|
|
8086
8086
|
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8087
8087
|
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8088
8088
|
});
|
|
8089
|
-
I.push(
|
|
8089
|
+
I.push($);
|
|
8090
8090
|
}
|
|
8091
8091
|
}) : C.forEach((_, A) => {
|
|
8092
8092
|
var N, V, Z, U, ee, Q;
|
|
8093
8093
|
if (r < 2) {
|
|
8094
8094
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8095
|
-
const
|
|
8095
|
+
const $ = H.point([_, v], {
|
|
8096
8096
|
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8097
8097
|
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8098
8098
|
});
|
|
8099
|
-
I.push(
|
|
8099
|
+
I.push($);
|
|
8100
8100
|
}
|
|
8101
8101
|
} else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8102
|
-
const
|
|
8102
|
+
const $ = H.point([_, v], {
|
|
8103
8103
|
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8104
8104
|
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8105
8105
|
});
|
|
8106
|
-
I.push(
|
|
8106
|
+
I.push($);
|
|
8107
8107
|
}
|
|
8108
8108
|
});
|
|
8109
8109
|
}
|
|
@@ -8227,7 +8227,7 @@ const wn = {
|
|
|
8227
8227
|
}
|
|
8228
8228
|
for (const v in L.Point)
|
|
8229
8229
|
L.Point[v].lng.forEach((C, _) => {
|
|
8230
|
-
C =
|
|
8230
|
+
C = X.convertToStdLng(C), k.push(
|
|
8231
8231
|
H.point([C, v], {
|
|
8232
8232
|
val: L.Point[v].val[_],
|
|
8233
8233
|
type: L.Point[v].type[_]
|
|
@@ -8249,7 +8249,7 @@ const wn = {
|
|
|
8249
8249
|
this.handleDrawWeather4Json();
|
|
8250
8250
|
},
|
|
8251
8251
|
handleBboxClip(t, e) {
|
|
8252
|
-
const o = [], i =
|
|
8252
|
+
const o = [], i = X.convertToStdLng(e._sw.lng), a = X.convertToStdLng(e._ne.lng);
|
|
8253
8253
|
return t.features.forEach((r) => {
|
|
8254
8254
|
if (r.geometry.type !== "Point")
|
|
8255
8255
|
if (i > a) {
|
|
@@ -8282,7 +8282,7 @@ const wn = {
|
|
|
8282
8282
|
}, 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 mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 py-2" }, $n = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
|
|
8283
8283
|
function Jn(t, e, o, i, a, r) {
|
|
8284
8284
|
var J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
|
|
8285
|
-
const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), z = w("VSwitch"), g = w("VCardTitle"), P = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), L = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), v = w("IdmCurrentDirection"), C = w("IdmPrmsl"), _ = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), U = w("IdmIceCover"), ee = w("IdmIceThickness"), Q = w("IdmPrecip3h"),
|
|
8285
|
+
const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), z = w("VSwitch"), g = w("VCardTitle"), P = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), L = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), v = w("IdmCurrentDirection"), C = w("IdmPrmsl"), _ = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), U = w("IdmIceCover"), ee = w("IdmIceThickness"), Q = w("IdmPrecip3h"), $ = w("IdmVisibility"), ne = w("IdmWaterTemp"), se = w("IdmTemp");
|
|
8286
8286
|
return y(), S("div", xn, [
|
|
8287
8287
|
s("div", {
|
|
8288
8288
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8489,7 +8489,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8489
8489
|
style: { "font-size": "16px !important" }
|
|
8490
8490
|
}, {
|
|
8491
8491
|
default: f(() => [
|
|
8492
|
-
|
|
8492
|
+
K(m(t.$t("weather.overlays")), 1)
|
|
8493
8493
|
]),
|
|
8494
8494
|
_: 1
|
|
8495
8495
|
})
|
|
@@ -8529,7 +8529,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8529
8529
|
style: { "font-size": "16px !important" }
|
|
8530
8530
|
}, {
|
|
8531
8531
|
default: f(() => [
|
|
8532
|
-
|
|
8532
|
+
K(m(t.$t("weather.renders")), 1)
|
|
8533
8533
|
]),
|
|
8534
8534
|
_: 1
|
|
8535
8535
|
})
|
|
@@ -8606,7 +8606,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8606
8606
|
disabled: !a.autoActive
|
|
8607
8607
|
}, {
|
|
8608
8608
|
default: f(() => [
|
|
8609
|
-
|
|
8609
|
+
K(m(t.$t("weather.significant")), 1)
|
|
8610
8610
|
]),
|
|
8611
8611
|
_: 1
|
|
8612
8612
|
}, 8, ["color", "disabled"]),
|
|
@@ -8620,7 +8620,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8620
8620
|
value: "swell"
|
|
8621
8621
|
}, {
|
|
8622
8622
|
default: f(() => [
|
|
8623
|
-
|
|
8623
|
+
K(m(t.$t("weather.swell")), 1)
|
|
8624
8624
|
]),
|
|
8625
8625
|
_: 1
|
|
8626
8626
|
}, 8, ["color", "disabled"])
|
|
@@ -8649,7 +8649,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8649
8649
|
disabled: !a.autoActive
|
|
8650
8650
|
}, {
|
|
8651
8651
|
default: f(() => [
|
|
8652
|
-
|
|
8652
|
+
K(m(t.$t("weather.coverage")), 1)
|
|
8653
8653
|
]),
|
|
8654
8654
|
_: 1
|
|
8655
8655
|
}, 8, ["color", "disabled"]),
|
|
@@ -8663,7 +8663,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8663
8663
|
value: "ice-thickness"
|
|
8664
8664
|
}, {
|
|
8665
8665
|
default: f(() => [
|
|
8666
|
-
|
|
8666
|
+
K(m(t.$t("weather.thickness")), 1)
|
|
8667
8667
|
]),
|
|
8668
8668
|
_: 1
|
|
8669
8669
|
}, 8, ["color", "disabled"])
|
|
@@ -8689,7 +8689,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8689
8689
|
style: { "font-size": "16px !important" }
|
|
8690
8690
|
}, {
|
|
8691
8691
|
default: f(() => [
|
|
8692
|
-
|
|
8692
|
+
K(m(t.$t("weather.forecastModel")), 1)
|
|
8693
8693
|
]),
|
|
8694
8694
|
_: 1
|
|
8695
8695
|
})
|
|
@@ -8812,7 +8812,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8812
8812
|
factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
|
|
8813
8813
|
"menu-toggle": o.menuToggle
|
|
8814
8814
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8815
|
-
o.map ? (y(), R(
|
|
8815
|
+
o.map ? (y(), R($, B({
|
|
8816
8816
|
key: 13,
|
|
8817
8817
|
viewport: a.viewport,
|
|
8818
8818
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
@@ -9179,7 +9179,7 @@ class Za {
|
|
|
9179
9179
|
}), a;
|
|
9180
9180
|
}
|
|
9181
9181
|
static pickHourly(e, o) {
|
|
9182
|
-
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
9182
|
+
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
|
|
9183
9183
|
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.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"), re = Ce.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"), Oe = [];
|
|
9184
9184
|
if (ue.isBetween(oe, re, "millisecond", "[]")) {
|
|
9185
9185
|
const j = ue.utc().diff(oe, "h", !1);
|
|
@@ -9232,7 +9232,7 @@ class Za {
|
|
|
9232
9232
|
wave: {
|
|
9233
9233
|
sig: {
|
|
9234
9234
|
height: (Q = E == null ? void 0 : E.wave_height) == null ? void 0 : Q.at(j),
|
|
9235
|
-
degree: (
|
|
9235
|
+
degree: ($ = E == null ? void 0 : E.wave_direction) == null ? void 0 : $.at(j),
|
|
9236
9236
|
bearing: ((ne = E == null ? void 0 : E.wave_direction) == null ? void 0 : ne.at(j)) !== null ? (((se = E == null ? void 0 : E.wave_direction) == null ? void 0 : se.at(j)) + 180) % 360 : null,
|
|
9237
9237
|
period: (J = E == null ? void 0 : E.wave_period) == null ? void 0 : J.at(j)
|
|
9238
9238
|
},
|
|
@@ -9288,7 +9288,7 @@ class Za {
|
|
|
9288
9288
|
};
|
|
9289
9289
|
}
|
|
9290
9290
|
static pickDaily(e, o) {
|
|
9291
|
-
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
9291
|
+
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
|
|
9292
9292
|
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9293
9293
|
if (Re.isBetween(te, He, "millisecond", "[]")) {
|
|
9294
9294
|
let ue, fe;
|
|
@@ -9343,7 +9343,7 @@ class Za {
|
|
|
9343
9343
|
wave: {
|
|
9344
9344
|
sig: {
|
|
9345
9345
|
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(W),
|
|
9346
|
-
degree: (
|
|
9346
|
+
degree: ($ = re.wave_direction_dominant) == null ? void 0 : $.at(W),
|
|
9347
9347
|
period: (ne = re.wave_period_max) == null ? void 0 : ne.at(W),
|
|
9348
9348
|
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(W)) !== null ? (((J = re.wave_direction_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
9349
9349
|
},
|
|
@@ -9904,7 +9904,7 @@ const tc = {
|
|
|
9904
9904
|
};
|
|
9905
9905
|
},
|
|
9906
9906
|
computePosition() {
|
|
9907
|
-
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
9907
|
+
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
9908
9908
|
}
|
|
9909
9909
|
},
|
|
9910
9910
|
watch: {
|
|
@@ -10260,7 +10260,7 @@ const tc = {
|
|
|
10260
10260
|
handleDateChange() {
|
|
10261
10261
|
var t, e, o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee;
|
|
10262
10262
|
if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10263
|
-
const Q = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
10263
|
+
const Q = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((J) => J.properties.date === (Q == null ? void 0 : Q.format()) && !J.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
|
|
10264
10264
|
ne.forEach((J) => {
|
|
10265
10265
|
se.features.push(J);
|
|
10266
10266
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -10277,7 +10277,7 @@ const tc = {
|
|
|
10277
10277
|
"line-width": 1
|
|
10278
10278
|
}
|
|
10279
10279
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10280
|
-
for (const J of
|
|
10280
|
+
for (const J of $)
|
|
10281
10281
|
if (!J.properties.disabled) {
|
|
10282
10282
|
let ae = "#f44336";
|
|
10283
10283
|
((c = (l = J.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = J.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = J.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((z = (x = J.properties) == null ? void 0 : x.wind) == null ? void 0 : z.kts) < 47 ? ae = "#f2f202" : ((P = (g = J.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = J.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((L = (I = J.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (k = J.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 79 ? ae = "#f44336" : ((_ = (C = J.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((N = (A = J.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = J.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
@@ -10574,7 +10574,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10574
10574
|
onClick: je((N) => r.handleForecastToggle(_), ["stop"])
|
|
10575
10575
|
}, {
|
|
10576
10576
|
default: f(() => [
|
|
10577
|
-
|
|
10577
|
+
K(m(_.model), 1)
|
|
10578
10578
|
]),
|
|
10579
10579
|
_: 2
|
|
10580
10580
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10599,7 +10599,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10599
10599
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10600
10600
|
])),
|
|
10601
10601
|
default: f(() => [
|
|
10602
|
-
|
|
10602
|
+
K(" " + m(t.$t("weather.legend")), 1)
|
|
10603
10603
|
]),
|
|
10604
10604
|
_: 1
|
|
10605
10605
|
}, 8, ["color"]),
|
|
@@ -10612,7 +10612,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10612
10612
|
onClick: e[1] || (e[1] = je((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10613
10613
|
}, {
|
|
10614
10614
|
default: f(() => [
|
|
10615
|
-
|
|
10615
|
+
K(m(t.$t("actions.notify")), 1)
|
|
10616
10616
|
]),
|
|
10617
10617
|
_: 1
|
|
10618
10618
|
})) : D("", !0),
|
|
@@ -10624,7 +10624,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10624
10624
|
onClick: e[2] || (e[2] = je((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10625
10625
|
}, {
|
|
10626
10626
|
default: f(() => [
|
|
10627
|
-
|
|
10627
|
+
K(m(t.$t("actions.viewReport")), 1)
|
|
10628
10628
|
]),
|
|
10629
10629
|
_: 1
|
|
10630
10630
|
})
|
|
@@ -10719,7 +10719,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10719
10719
|
p(z),
|
|
10720
10720
|
p(n, { class: "text-body-1" }, {
|
|
10721
10721
|
default: f(() => {
|
|
10722
|
-
var g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
10722
|
+
var g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se;
|
|
10723
10723
|
return [
|
|
10724
10724
|
s("div", Sc, [
|
|
10725
10725
|
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Mc, [
|
|
@@ -10754,7 +10754,7 @@ function $c(t, e, o, i, a, r) {
|
|
|
10754
10754
|
s("label", Vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10755
10755
|
s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
10756
10756
|
])) : D("", !0),
|
|
10757
|
-
((
|
|
10757
|
+
(($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), S("div", Zc, [
|
|
10758
10758
|
s("label", Yc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10759
10759
|
s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
|
|
10760
10760
|
])) : D("", !0),
|
|
@@ -10953,7 +10953,7 @@ function om(t, e, o, i, a, r) {
|
|
|
10953
10953
|
onClick: r.handleOpenDatePicker
|
|
10954
10954
|
}, {
|
|
10955
10955
|
default: f(() => [
|
|
10956
|
-
|
|
10956
|
+
K(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
10957
10957
|
]),
|
|
10958
10958
|
_: 1
|
|
10959
10959
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -11002,7 +11002,7 @@ function om(t, e, o, i, a, r) {
|
|
|
11002
11002
|
onClick: (O) => a.currentTime = P
|
|
11003
11003
|
}, {
|
|
11004
11004
|
default: f(() => [
|
|
11005
|
-
|
|
11005
|
+
K(m(P), 1)
|
|
11006
11006
|
]),
|
|
11007
11007
|
_: 2
|
|
11008
11008
|
}, 1032, ["onClick"])
|
|
@@ -11029,7 +11029,7 @@ function om(t, e, o, i, a, r) {
|
|
|
11029
11029
|
onClick: r.handleCancelDate
|
|
11030
11030
|
}, {
|
|
11031
11031
|
default: f(() => e[1] || (e[1] = [
|
|
11032
|
-
|
|
11032
|
+
K("Cancel", -1)
|
|
11033
11033
|
])),
|
|
11034
11034
|
_: 1,
|
|
11035
11035
|
__: [1]
|
|
@@ -11042,7 +11042,7 @@ function om(t, e, o, i, a, r) {
|
|
|
11042
11042
|
onClick: r.handleConfirmDate
|
|
11043
11043
|
}, {
|
|
11044
11044
|
default: f(() => e[2] || (e[2] = [
|
|
11045
|
-
|
|
11045
|
+
K("Confirm", -1)
|
|
11046
11046
|
])),
|
|
11047
11047
|
_: 1,
|
|
11048
11048
|
__: [2]
|
|
@@ -11170,12 +11170,12 @@ const am = {
|
|
|
11170
11170
|
},
|
|
11171
11171
|
computePosition() {
|
|
11172
11172
|
return function(t) {
|
|
11173
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
11173
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
11174
11174
|
};
|
|
11175
11175
|
},
|
|
11176
11176
|
computeRoundPrecision() {
|
|
11177
11177
|
return function(t, e = 4) {
|
|
11178
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
11178
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
11179
11179
|
};
|
|
11180
11180
|
}
|
|
11181
11181
|
},
|
|
@@ -11295,10 +11295,10 @@ const am = {
|
|
|
11295
11295
|
(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;
|
|
11296
11296
|
},
|
|
11297
11297
|
initTableData(t) {
|
|
11298
|
-
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
11298
|
+
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe;
|
|
11299
11299
|
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;
|
|
11300
11300
|
const e = ((l = ao.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11301
|
-
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((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.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((k = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : k.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 = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((U = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : U.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = (
|
|
11301
|
+
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((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.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((k = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : k.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 = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((U = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : U.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.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((J = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.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 = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11302
11302
|
},
|
|
11303
11303
|
handleBind() {
|
|
11304
11304
|
var t, e;
|
|
@@ -11314,7 +11314,7 @@ const am = {
|
|
|
11314
11314
|
return !1;
|
|
11315
11315
|
},
|
|
11316
11316
|
handleGetPosition(t) {
|
|
11317
|
-
this.form.latDegree = Number(
|
|
11317
|
+
this.form.latDegree = Number(X.lat2pretty(t.lat).degree), this.form.latMinute = Number(X.lat2pretty(t.lat).minute), this.form.latDirection = X.lat2pretty(t.lat).direction, this.form.lngDegree = Number(X.lng2pretty(t.lng).degree), this.form.lngMinute = Number(X.lng2pretty(t.lng).minute), this.form.lngDirection = X.lng2pretty(t.lng).direction;
|
|
11318
11318
|
},
|
|
11319
11319
|
handleDrawInfoMarker(t) {
|
|
11320
11320
|
t && (this.map.flyTo({
|
|
@@ -11539,7 +11539,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11539
11539
|
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11540
11540
|
}, {
|
|
11541
11541
|
default: f(() => [
|
|
11542
|
-
|
|
11542
|
+
K(m(a.form.lngDirection), 1)
|
|
11543
11543
|
]),
|
|
11544
11544
|
_: 1
|
|
11545
11545
|
})
|
|
@@ -11619,7 +11619,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11619
11619
|
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11620
11620
|
}, {
|
|
11621
11621
|
default: f(() => [
|
|
11622
|
-
|
|
11622
|
+
K(m(a.form.latDirection), 1)
|
|
11623
11623
|
]),
|
|
11624
11624
|
_: 1
|
|
11625
11625
|
})
|
|
@@ -11690,7 +11690,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11690
11690
|
"base-color": ""
|
|
11691
11691
|
}, {
|
|
11692
11692
|
default: f(() => e[14] || (e[14] = [
|
|
11693
|
-
|
|
11693
|
+
K("NOAA", -1)
|
|
11694
11694
|
])),
|
|
11695
11695
|
_: 1,
|
|
11696
11696
|
__: [14]
|
|
@@ -11704,7 +11704,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11704
11704
|
value: "ECMWF"
|
|
11705
11705
|
}, {
|
|
11706
11706
|
default: f(() => e[15] || (e[15] = [
|
|
11707
|
-
|
|
11707
|
+
K("ECMWF", -1)
|
|
11708
11708
|
])),
|
|
11709
11709
|
_: 1,
|
|
11710
11710
|
__: [15]
|
|
@@ -11731,7 +11731,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11731
11731
|
onClick: r.cancelForm
|
|
11732
11732
|
}, {
|
|
11733
11733
|
default: f(() => [
|
|
11734
|
-
|
|
11734
|
+
K(m(t.$t("actions.clear")), 1)
|
|
11735
11735
|
]),
|
|
11736
11736
|
_: 1
|
|
11737
11737
|
}, 8, ["onClick"]),
|
|
@@ -11745,7 +11745,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11745
11745
|
class: "text-none text-body-1"
|
|
11746
11746
|
}, {
|
|
11747
11747
|
default: f(() => [
|
|
11748
|
-
|
|
11748
|
+
K(m(t.$t("actions.confirm")), 1)
|
|
11749
11749
|
]),
|
|
11750
11750
|
_: 1
|
|
11751
11751
|
}, 8, ["loading"])
|
|
@@ -11851,7 +11851,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11851
11851
|
})
|
|
11852
11852
|
]),
|
|
11853
11853
|
default: f(() => [
|
|
11854
|
-
|
|
11854
|
+
K(" " + m(t.$t("actions.unfollow")), 1)
|
|
11855
11855
|
]),
|
|
11856
11856
|
_: 1
|
|
11857
11857
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -11868,7 +11868,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11868
11868
|
p(L, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
11869
11869
|
]),
|
|
11870
11870
|
default: f(() => [
|
|
11871
|
-
|
|
11871
|
+
K(m(t.$t("actions.follow")) + " ", 1)
|
|
11872
11872
|
]),
|
|
11873
11873
|
_: 1
|
|
11874
11874
|
}, 8, ["onClick"])),
|
|
@@ -11881,7 +11881,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
11881
11881
|
onClick: je(r.handleMeteoMore, ["stop"])
|
|
11882
11882
|
}, {
|
|
11883
11883
|
default: f(() => [
|
|
11884
|
-
|
|
11884
|
+
K(m(t.$t("spot.forecast")), 1)
|
|
11885
11885
|
]),
|
|
11886
11886
|
_: 1
|
|
11887
11887
|
}, 8, ["onClick"])
|
|
@@ -12076,13 +12076,13 @@ const Zm = {
|
|
|
12076
12076
|
const i = [];
|
|
12077
12077
|
for (let a = 1; a < e.length; a++) {
|
|
12078
12078
|
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 = Ge.calculateDistance(n, u, c.mode === "RL", 4), b = Ge.calculateBearing(n, u, c.mode === "RL", 2);
|
|
12079
|
-
o =
|
|
12079
|
+
o = X.roundPrecision(o + h, 4);
|
|
12080
12080
|
let x;
|
|
12081
|
-
c.mode === "RL" ? x =
|
|
12081
|
+
c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
|
|
12082
12082
|
const z = H.lineString(x.map((P) => [P.lng, P.lat]));
|
|
12083
12083
|
z.properties.dist = h, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
12084
12084
|
const g = e[a];
|
|
12085
|
-
g.properties.totalDist =
|
|
12085
|
+
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12086
12086
|
}
|
|
12087
12087
|
e.push(...i), t.total = o;
|
|
12088
12088
|
}
|
|
@@ -12095,7 +12095,7 @@ const Zm = {
|
|
|
12095
12095
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
12096
12096
|
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12097
12097
|
let b;
|
|
12098
|
-
n.mode === "RL" ? b =
|
|
12098
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12099
12099
|
const x = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12100
12100
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
12101
12101
|
}
|
|
@@ -12103,7 +12103,7 @@ const Zm = {
|
|
|
12103
12103
|
const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12104
12104
|
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12105
12105
|
let b;
|
|
12106
|
-
n.mode === "RL" ? b =
|
|
12106
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12107
12107
|
const x = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12108
12108
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
12109
12109
|
}
|
|
@@ -12149,7 +12149,7 @@ const Zm = {
|
|
|
12149
12149
|
if (i)
|
|
12150
12150
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
12151
12151
|
else {
|
|
12152
|
-
const n =
|
|
12152
|
+
const n = X.roundPrecision((t.total ?? 0) + r, 1);
|
|
12153
12153
|
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
12154
12154
|
"measure.bearing"
|
|
12155
12155
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
@@ -12442,7 +12442,7 @@ function sd(t, e, o, i, a, r) {
|
|
|
12442
12442
|
"min-width": "30"
|
|
12443
12443
|
}, {
|
|
12444
12444
|
default: f(() => [
|
|
12445
|
-
|
|
12445
|
+
K(m(a.intervalHour) + " h ", 1),
|
|
12446
12446
|
p(h, { activator: "parent" }, {
|
|
12447
12447
|
default: f(() => [
|
|
12448
12448
|
p(u, { class: "pa-1" }, {
|
|
@@ -12464,7 +12464,7 @@ function sd(t, e, o, i, a, r) {
|
|
|
12464
12464
|
onClick: (T) => a.intervalHour = g
|
|
12465
12465
|
}, {
|
|
12466
12466
|
default: f(() => [
|
|
12467
|
-
|
|
12467
|
+
K(m(g) + "h", 1)
|
|
12468
12468
|
]),
|
|
12469
12469
|
_: 2
|
|
12470
12470
|
}, 1032, ["onClick"])
|
|
@@ -12672,7 +12672,7 @@ function sd(t, e, o, i, a, r) {
|
|
|
12672
12672
|
onClick: e[7] || (e[7] = (g) => a.source = "GFS")
|
|
12673
12673
|
}, {
|
|
12674
12674
|
default: f(() => e[16] || (e[16] = [
|
|
12675
|
-
|
|
12675
|
+
K("NOAA", -1)
|
|
12676
12676
|
])),
|
|
12677
12677
|
_: 1,
|
|
12678
12678
|
__: [16]
|
|
@@ -12685,7 +12685,7 @@ function sd(t, e, o, i, a, r) {
|
|
|
12685
12685
|
onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
|
|
12686
12686
|
}, {
|
|
12687
12687
|
default: f(() => e[17] || (e[17] = [
|
|
12688
|
-
|
|
12688
|
+
K("ECMWF", -1)
|
|
12689
12689
|
])),
|
|
12690
12690
|
_: 1,
|
|
12691
12691
|
__: [17]
|
|
@@ -12713,7 +12713,7 @@ function sd(t, e, o, i, a, r) {
|
|
|
12713
12713
|
onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
|
|
12714
12714
|
}, {
|
|
12715
12715
|
default: f(() => [
|
|
12716
|
-
|
|
12716
|
+
K(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12717
12717
|
]),
|
|
12718
12718
|
_: 1
|
|
12719
12719
|
}),
|
|
@@ -12861,7 +12861,7 @@ class hd {
|
|
|
12861
12861
|
de(this, "hi");
|
|
12862
12862
|
de(this, "td");
|
|
12863
12863
|
de(this, "windy");
|
|
12864
|
-
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q,
|
|
12864
|
+
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, $, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, 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, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Do, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, qo, Xo, $o, Ko, Qo, Jo, 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, Wa, Ua;
|
|
12865
12865
|
this.i4 = {
|
|
12866
12866
|
source: {
|
|
12867
12867
|
type: "raster",
|
|
@@ -31516,7 +31516,7 @@ class hd {
|
|
|
31516
31516
|
(N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
|
|
31517
31517
|
(Z = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Z.find((d) => d.id === "water-line-label"),
|
|
31518
31518
|
(ee = (U = this.originStyle) == null ? void 0 : U.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31519
|
-
(
|
|
31519
|
+
($ = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31520
31520
|
(se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
|
|
31521
31521
|
(ae = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
|
|
31522
31522
|
(ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
|
|
@@ -31973,7 +31973,7 @@ const xd = {
|
|
|
31973
31973
|
handleResetDateRange() {
|
|
31974
31974
|
var a, r, l;
|
|
31975
31975
|
let t, e;
|
|
31976
|
-
(a = this.defaultRange) != null && a.length ? (t = this.defaultRange[0], e = (r = this.defaultRange) == null ? void 0 : r.
|
|
31976
|
+
(a = this.defaultRange) != null && a.length ? (t = this.defaultRange[0], e = (r = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : r.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays;
|
|
31977
31977
|
const o = M.tz(t, this.timeZoneName).clone(), i = [];
|
|
31978
31978
|
if (e < 0)
|
|
31979
31979
|
for (let c = e + 1; c <= 0; c++)
|
|
@@ -32036,7 +32036,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
32036
32036
|
onClick: r.handleOpenDatePicker
|
|
32037
32037
|
}, {
|
|
32038
32038
|
default: f(() => [
|
|
32039
|
-
|
|
32039
|
+
K(m(a.dateRangeStr), 1)
|
|
32040
32040
|
]),
|
|
32041
32041
|
_: 1
|
|
32042
32042
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -32079,7 +32079,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
32079
32079
|
onClick: r.handleCancelDate
|
|
32080
32080
|
}, {
|
|
32081
32081
|
default: f(() => e[1] || (e[1] = [
|
|
32082
|
-
|
|
32082
|
+
K("Cancel", -1)
|
|
32083
32083
|
])),
|
|
32084
32084
|
_: 1,
|
|
32085
32085
|
__: [1]
|
|
@@ -32092,7 +32092,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
32092
32092
|
onClick: r.handleConfirmDate
|
|
32093
32093
|
}, {
|
|
32094
32094
|
default: f(() => e[2] || (e[2] = [
|
|
32095
|
-
|
|
32095
|
+
K("Confirm", -1)
|
|
32096
32096
|
])),
|
|
32097
32097
|
_: 1,
|
|
32098
32098
|
__: [2]
|