@idmwx/idmui-gl4 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +529 -525
- package/dist/index.umd.cjs +7 -7
- package/dist/mapbox/src/components/spot/index.vue.d.ts +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var me = (t, e, o) => ($a(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 x, createBlock as D, withCtx as u, createVNode as d, withModifiers as
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as He, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
|
-
import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as
|
|
9
|
-
import
|
|
10
|
-
import { Meteo2Assist as
|
|
11
|
-
import * as
|
|
8
|
+
import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
|
+
import A from "moment";
|
|
10
|
+
import { Meteo2Assist as ao, TidesAssist as qa } from "@idm-plugin/meteo";
|
|
11
|
+
import * as ro from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
13
|
-
import { LayerHelper as
|
|
13
|
+
import { LayerHelper as io, CompanyHelper as Qa } from "@idm-plugin/tag-nop";
|
|
14
14
|
import Ja from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
16
16
|
const Y = (t, e) => {
|
|
@@ -508,7 +508,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
508
508
|
density: "compact",
|
|
509
509
|
variant: "plain",
|
|
510
510
|
class: "close",
|
|
511
|
-
onClick:
|
|
511
|
+
onClick: qe(r.handleRemoveMarker, ["stop"])
|
|
512
512
|
}, {
|
|
513
513
|
default: u(() => e[0] || (e[0] = [
|
|
514
514
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
@@ -1373,13 +1373,13 @@ const ui = {
|
|
|
1373
1373
|
let c = {
|
|
1374
1374
|
index: s,
|
|
1375
1375
|
dateTimeList: [],
|
|
1376
|
-
label:
|
|
1377
|
-
startTime:
|
|
1378
|
-
dateTime:
|
|
1376
|
+
label: A().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
1377
|
+
startTime: A().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1378
|
+
dateTime: A().utcOffset(e).add(s, "days").format()
|
|
1379
1379
|
};
|
|
1380
1380
|
for (let n = 0; n < 4; n++)
|
|
1381
1381
|
c.dateTimeList.push(
|
|
1382
|
-
|
|
1382
|
+
A(c.startTime).utcOffset(e).add(n * this.interval, "hours").utc().format()
|
|
1383
1383
|
);
|
|
1384
1384
|
t.push(c);
|
|
1385
1385
|
}
|
|
@@ -1389,7 +1389,7 @@ const ui = {
|
|
|
1389
1389
|
return function(t, e, o = "yyyy-MM-DD HHmm") {
|
|
1390
1390
|
if (t) {
|
|
1391
1391
|
const i = e != null && e.lng && (e != null && e.lat) ? G.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1392
|
-
return
|
|
1392
|
+
return A(t).utcOffset(i).format(o) + " ( UTC " + (i >= 0 ? "+" : "") + i + " )";
|
|
1393
1393
|
}
|
|
1394
1394
|
return "-";
|
|
1395
1395
|
};
|
|
@@ -1398,7 +1398,7 @@ const ui = {
|
|
|
1398
1398
|
return function(t, e, o = "HH:mm") {
|
|
1399
1399
|
if (t) {
|
|
1400
1400
|
const i = e != null && e.lng && (e != null && e.lat) ? G.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1401
|
-
return
|
|
1401
|
+
return A(t).utcOffset(i).format(o);
|
|
1402
1402
|
}
|
|
1403
1403
|
return "-";
|
|
1404
1404
|
};
|
|
@@ -1463,7 +1463,7 @@ const ui = {
|
|
|
1463
1463
|
async fetchMeteoData() {
|
|
1464
1464
|
var a, r, s;
|
|
1465
1465
|
this.loading = !0, this.meteoData = [];
|
|
1466
|
-
const { weatherModels: t, marineModels: e } =
|
|
1466
|
+
const { weatherModels: t, marineModels: e } = ao.autoPickMeteoModel(this.forecastModel);
|
|
1467
1467
|
let o = {
|
|
1468
1468
|
lat: (a = this.port) == null ? void 0 : a.lat,
|
|
1469
1469
|
lng: (r = this.port) == null ? void 0 : r.lng,
|
|
@@ -1492,10 +1492,10 @@ const ui = {
|
|
|
1492
1492
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1493
1493
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1494
1494
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1495
|
-
var c, n, g, p, f, w, P,
|
|
1495
|
+
var c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
|
|
1496
1496
|
let r = {};
|
|
1497
|
-
const s = ((c =
|
|
1498
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((P = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : P.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((
|
|
1497
|
+
const s = ((c = ao.pickHourly(t, A(i))) == null ? void 0 : c[0]) || {};
|
|
1498
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((P = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : P.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((k = s == null ? void 0 : s.weather) == null ? void 0 : k.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (v = s == null ? void 0 : s.weather) == null ? void 0 : v.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (M = s == null ? void 0 : s.weather) == null ? void 0 : M.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (L = s == null ? void 0 : s.wave) == null ? void 0 : L.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.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;
|
|
1499
1499
|
});
|
|
1500
1500
|
},
|
|
1501
1501
|
handleTide() {
|
|
@@ -1539,8 +1539,8 @@ const ui = {
|
|
|
1539
1539
|
}), this.initEchart();
|
|
1540
1540
|
},
|
|
1541
1541
|
initEchart() {
|
|
1542
|
-
|
|
1543
|
-
const t =
|
|
1542
|
+
ro.dispose(this.$refs.tideEchart.style);
|
|
1543
|
+
const t = ro.init(this.$refs.tideEchart), e = {
|
|
1544
1544
|
animation: !1,
|
|
1545
1545
|
tooltip: {
|
|
1546
1546
|
trigger: "axis",
|
|
@@ -1683,16 +1683,16 @@ function yr(t, e, o, i, a, r) {
|
|
|
1683
1683
|
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
|
|
1684
1684
|
return y(), D(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1685
1685
|
default: u(() => {
|
|
1686
|
-
var w, P,
|
|
1686
|
+
var w, P, k, v;
|
|
1687
1687
|
return [
|
|
1688
1688
|
d(c, { class: "w-100" }, {
|
|
1689
1689
|
default: u(() => {
|
|
1690
|
-
var b,
|
|
1690
|
+
var b, M, I, C, _;
|
|
1691
1691
|
return [
|
|
1692
1692
|
l("div", gi, [
|
|
1693
1693
|
l("div", fi, [
|
|
1694
1694
|
l("div", {
|
|
1695
|
-
class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (
|
|
1695
|
+
class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (M = o.port) == null ? void 0 : M.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
|
|
1696
1696
|
style: { width: "36px", height: "24px" }
|
|
1697
1697
|
}, null, 2),
|
|
1698
1698
|
l("div", null, h((C = o.port) == null ? void 0 : C.name), 1)
|
|
@@ -1715,7 +1715,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1715
1715
|
l("div", null, h(t.$t("port.port")), 1),
|
|
1716
1716
|
l("div", null, [
|
|
1717
1717
|
e[3] || (e[3] = l("label", null, "UN/LOCODE: ", -1)),
|
|
1718
|
-
l("span", null, h((
|
|
1718
|
+
l("span", null, h((_ = o.port) == null ? void 0 : _.cntLoCode), 1)
|
|
1719
1719
|
])
|
|
1720
1720
|
])
|
|
1721
1721
|
];
|
|
@@ -1725,8 +1725,8 @@ function yr(t, e, o, i, a, r) {
|
|
|
1725
1725
|
d(n, { class: "w-100" }),
|
|
1726
1726
|
l("div", bi, [
|
|
1727
1727
|
o.followList.some((b) => {
|
|
1728
|
-
var
|
|
1729
|
-
return ((
|
|
1728
|
+
var M;
|
|
1729
|
+
return ((M = b.port) == null ? void 0 : M.id) === o.portId;
|
|
1730
1730
|
}) ? (y(), D(s, {
|
|
1731
1731
|
key: 0,
|
|
1732
1732
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
@@ -1790,7 +1790,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1790
1790
|
]),
|
|
1791
1791
|
l("div", Si, [
|
|
1792
1792
|
l("div", Ii, h(t.$t("port.position")), 1),
|
|
1793
|
-
l("div", Mi, h(r.computeLng((
|
|
1793
|
+
l("div", Mi, h(r.computeLng((k = o.port) == null ? void 0 : k.lng) ?? "-") + " , " + h(r.computeLat((v = o.port) == null ? void 0 : v.lat) ?? "-"), 1)
|
|
1794
1794
|
]),
|
|
1795
1795
|
l("div", Ai, [
|
|
1796
1796
|
l("div", Di, h(t.$t("time.localTime")), 1),
|
|
@@ -1916,9 +1916,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1916
1916
|
l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1917
1917
|
l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
|
|
1918
1918
|
]),
|
|
1919
|
-
(y(!0), S(be, null, we(a.tideTableData, (b,
|
|
1919
|
+
(y(!0), S(be, null, we(a.tideTableData, (b, M) => {
|
|
1920
1920
|
var I;
|
|
1921
|
-
return y(), S("tr", { key:
|
|
1921
|
+
return y(), S("tr", { key: M }, [
|
|
1922
1922
|
l("td", ur, h(t.$t(`tide.${(I = b == null ? void 0 : b.type) == null ? void 0 : I.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
1923
1923
|
l("td", gr, h(r.computeHourLT(b == null ? void 0 : b.date, o.port)), 1),
|
|
1924
1924
|
l("td", fr, h((b == null ? void 0 : b.height) ?? "-") + " m", 1)
|
|
@@ -2057,7 +2057,7 @@ const br = {
|
|
|
2057
2057
|
function _r(t, e, o, i, a, r) {
|
|
2058
2058
|
const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
|
|
2059
2059
|
return y(), S("div", null, [
|
|
2060
|
-
|
|
2060
|
+
He(d(c, {
|
|
2061
2061
|
id: "idmPortInfo",
|
|
2062
2062
|
ref: "idmPortInfo"
|
|
2063
2063
|
}, {
|
|
@@ -2080,7 +2080,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2080
2080
|
]),
|
|
2081
2081
|
_: 1
|
|
2082
2082
|
}, 512), [
|
|
2083
|
-
[
|
|
2083
|
+
[Ue, a.showInfo]
|
|
2084
2084
|
]),
|
|
2085
2085
|
a.showDetail ? (y(), D(n, B({
|
|
2086
2086
|
key: 0,
|
|
@@ -2747,12 +2747,12 @@ const Yr = {
|
|
|
2747
2747
|
let c = {
|
|
2748
2748
|
index: s,
|
|
2749
2749
|
dateTimeList: [],
|
|
2750
|
-
label:
|
|
2751
|
-
startTime:
|
|
2752
|
-
dateTime:
|
|
2750
|
+
label: A().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
2751
|
+
startTime: A().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
2752
|
+
dateTime: A().utcOffset(e).add(s, "days").format()
|
|
2753
2753
|
};
|
|
2754
2754
|
for (let n = 0; n < 4; n++)
|
|
2755
|
-
c.dateTimeList.push(
|
|
2755
|
+
c.dateTimeList.push(A(c.startTime).utcOffset(e).add(n * 3, "hours").utc().format());
|
|
2756
2756
|
t.push(c);
|
|
2757
2757
|
}
|
|
2758
2758
|
return t;
|
|
@@ -2761,7 +2761,7 @@ const Yr = {
|
|
|
2761
2761
|
return function(t, e, o = "yyyy-MM-DD HHmm") {
|
|
2762
2762
|
if (t) {
|
|
2763
2763
|
const i = e != null && e.lng && (e != null && e.lat) ? G.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2764
|
-
return
|
|
2764
|
+
return A(t).utcOffset(i).format(o) + " ( UTC " + (i >= 0 ? "+" : "") + i + " )";
|
|
2765
2765
|
}
|
|
2766
2766
|
return "-";
|
|
2767
2767
|
};
|
|
@@ -2770,7 +2770,7 @@ const Yr = {
|
|
|
2770
2770
|
return function(t, e, o = "HH:mm") {
|
|
2771
2771
|
if (t) {
|
|
2772
2772
|
const i = e != null && e.lng && (e != null && e.lat) ? G.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2773
|
-
return
|
|
2773
|
+
return A(t).utcOffset(i).format(o);
|
|
2774
2774
|
}
|
|
2775
2775
|
return "-";
|
|
2776
2776
|
};
|
|
@@ -2780,7 +2780,7 @@ const Yr = {
|
|
|
2780
2780
|
var o, i;
|
|
2781
2781
|
if (t) {
|
|
2782
2782
|
const a = this.timeZone || 0;
|
|
2783
|
-
return ((i = (o =
|
|
2783
|
+
return ((i = (o = A(t)) == null ? void 0 : o.utcOffset(a)) == null ? void 0 : i.format(e)) + " ( UTC " + (a >= 0 ? "+" : "") + a + " )";
|
|
2784
2784
|
}
|
|
2785
2785
|
return "-";
|
|
2786
2786
|
};
|
|
@@ -2853,8 +2853,8 @@ const Yr = {
|
|
|
2853
2853
|
}), this.initEchart();
|
|
2854
2854
|
},
|
|
2855
2855
|
initEchart() {
|
|
2856
|
-
|
|
2857
|
-
const t =
|
|
2856
|
+
ro.dispose(this.$refs.tideEchart);
|
|
2857
|
+
const t = ro.init(this.$refs.tideEchart), e = {
|
|
2858
2858
|
animation: !1,
|
|
2859
2859
|
tooltip: {
|
|
2860
2860
|
trigger: "axis",
|
|
@@ -2978,15 +2978,15 @@ function Tl(t, e, o, i, a, r) {
|
|
|
2978
2978
|
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
|
|
2979
2979
|
return y(), D(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2980
2980
|
default: u(() => {
|
|
2981
|
-
var f, w, P,
|
|
2981
|
+
var f, w, P, k;
|
|
2982
2982
|
return [
|
|
2983
2983
|
d(c, { class: "w-100" }, {
|
|
2984
2984
|
default: u(() => {
|
|
2985
|
-
var
|
|
2985
|
+
var v;
|
|
2986
2986
|
return [
|
|
2987
2987
|
l("div", Kr, [
|
|
2988
2988
|
l("div", Xr, [
|
|
2989
|
-
l("div", null, h((
|
|
2989
|
+
l("div", null, h((v = o.station) == null ? void 0 : v.name), 1)
|
|
2990
2990
|
]),
|
|
2991
2991
|
d(s, {
|
|
2992
2992
|
icon: "",
|
|
@@ -3030,7 +3030,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3030
3030
|
]),
|
|
3031
3031
|
l("div", nl, [
|
|
3032
3032
|
l("div", cl, h(t.$t("tide.position")), 1),
|
|
3033
|
-
l("div", ml, h(r.computeLng((P = o.station) == null ? void 0 : P.lng) ?? "-") + " , " + h(r.computeLat((
|
|
3033
|
+
l("div", ml, h(r.computeLng((P = o.station) == null ? void 0 : P.lng) ?? "-") + " , " + h(r.computeLat((k = o.station) == null ? void 0 : k.lat) ?? "-"), 1)
|
|
3034
3034
|
]),
|
|
3035
3035
|
l("div", dl, [
|
|
3036
3036
|
l("div", hl, h(t.$t("time.localTime")), 1),
|
|
@@ -3053,7 +3053,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3053
3053
|
l("div", wl, [
|
|
3054
3054
|
d(g, {
|
|
3055
3055
|
modelValue: a.currentIndex,
|
|
3056
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3056
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.currentIndex = v),
|
|
3057
3057
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3058
3058
|
density: "compact",
|
|
3059
3059
|
group: "",
|
|
@@ -3062,15 +3062,15 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3062
3062
|
rounded: "1"
|
|
3063
3063
|
}, {
|
|
3064
3064
|
default: u(() => [
|
|
3065
|
-
(y(!0), S(be, null, we(r.dateList, (
|
|
3065
|
+
(y(!0), S(be, null, we(r.dateList, (v) => (y(), D(s, {
|
|
3066
3066
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3067
3067
|
density: "compact",
|
|
3068
3068
|
color: "primary",
|
|
3069
3069
|
height: "26",
|
|
3070
|
-
value:
|
|
3070
|
+
value: v.index
|
|
3071
3071
|
}, {
|
|
3072
3072
|
default: u(() => [
|
|
3073
|
-
N(h(
|
|
3073
|
+
N(h(v.label), 1)
|
|
3074
3074
|
]),
|
|
3075
3075
|
_: 2
|
|
3076
3076
|
}, 1032, ["value"]))), 256))
|
|
@@ -3085,12 +3085,12 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3085
3085
|
l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
|
|
3086
3086
|
l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
|
|
3087
3087
|
]),
|
|
3088
|
-
(y(!0), S(be, null, we(a.tideTableData, (
|
|
3089
|
-
var
|
|
3088
|
+
(y(!0), S(be, null, we(a.tideTableData, (v, b) => {
|
|
3089
|
+
var M;
|
|
3090
3090
|
return y(), S("tr", { key: b }, [
|
|
3091
|
-
l("td", Ll, h(t.$t(`tide.${(
|
|
3092
|
-
l("td", Pl, h(r.computeHourLT(
|
|
3093
|
-
l("td", Cl, h((
|
|
3091
|
+
l("td", Ll, h(t.$t(`tide.${(M = v == null ? void 0 : v.type) == null ? void 0 : M.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
3092
|
+
l("td", Pl, h(r.computeHourLT(v == null ? void 0 : v.date, o.station)), 1),
|
|
3093
|
+
l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
|
|
3094
3094
|
]);
|
|
3095
3095
|
}), 128))
|
|
3096
3096
|
])
|
|
@@ -3195,7 +3195,7 @@ const Il = {
|
|
|
3195
3195
|
function Ol(t, e, o, i, a, r) {
|
|
3196
3196
|
const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3197
3197
|
return y(), S("div", null, [
|
|
3198
|
-
|
|
3198
|
+
He(d(c, { id: "idmTidalInfo" }, {
|
|
3199
3199
|
default: u(() => [
|
|
3200
3200
|
d(s, { class: "pr-8 text-body-1" }, {
|
|
3201
3201
|
default: u(() => {
|
|
@@ -3214,7 +3214,7 @@ function Ol(t, e, o, i, a, r) {
|
|
|
3214
3214
|
]),
|
|
3215
3215
|
_: 1
|
|
3216
3216
|
}, 512), [
|
|
3217
|
-
[
|
|
3217
|
+
[Ue, a.showInfo]
|
|
3218
3218
|
]),
|
|
3219
3219
|
a.showDetail ? (y(), D(n, B({
|
|
3220
3220
|
key: 0,
|
|
@@ -4367,7 +4367,7 @@ const Ul = {
|
|
|
4367
4367
|
function Zl(t, e, o, i, a, r) {
|
|
4368
4368
|
const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4369
4369
|
return y(), S("div", null, [
|
|
4370
|
-
|
|
4370
|
+
He(d(c, {
|
|
4371
4371
|
id: "idmFollowPortInfo",
|
|
4372
4372
|
ref: "idmFollowPortInfo"
|
|
4373
4373
|
}, {
|
|
@@ -4390,7 +4390,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
4390
4390
|
]),
|
|
4391
4391
|
_: 1
|
|
4392
4392
|
}, 512), [
|
|
4393
|
-
[
|
|
4393
|
+
[Ue, a.showInfo]
|
|
4394
4394
|
]),
|
|
4395
4395
|
a.showDetail ? (y(), D(n, B({
|
|
4396
4396
|
key: 0,
|
|
@@ -5297,13 +5297,13 @@ const Yl = {
|
|
|
5297
5297
|
if (e.properties) {
|
|
5298
5298
|
const f = e.properties;
|
|
5299
5299
|
f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
|
|
5300
|
-
const w =
|
|
5300
|
+
const w = A(), P = (o = A(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), k = {
|
|
5301
5301
|
lat: f.lat,
|
|
5302
5302
|
lng: f.lng,
|
|
5303
5303
|
datetime: this.realTime,
|
|
5304
5304
|
forecastModel: this.forecastModel
|
|
5305
5305
|
};
|
|
5306
|
-
P >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(
|
|
5306
|
+
P >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(k) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(k);
|
|
5307
5307
|
}
|
|
5308
5308
|
},
|
|
5309
5309
|
handleHover(t) {
|
|
@@ -5327,7 +5327,7 @@ const Yl = {
|
|
|
5327
5327
|
};
|
|
5328
5328
|
function Ql(t, e, o, i, a, r) {
|
|
5329
5329
|
const s = x("v-card-text"), c = x("v-card");
|
|
5330
|
-
return
|
|
5330
|
+
return He((y(), D(c, {
|
|
5331
5331
|
id: "idmFollowPositionInfo",
|
|
5332
5332
|
ref: "idmFollowPositionInfo"
|
|
5333
5333
|
}, {
|
|
@@ -5349,7 +5349,7 @@ function Ql(t, e, o, i, a, r) {
|
|
|
5349
5349
|
]),
|
|
5350
5350
|
_: 1
|
|
5351
5351
|
}, 512)), [
|
|
5352
|
-
[
|
|
5352
|
+
[Ue, a.showInfo]
|
|
5353
5353
|
]);
|
|
5354
5354
|
}
|
|
5355
5355
|
const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-d9f71632"]]);
|
|
@@ -5423,7 +5423,7 @@ const es = {
|
|
|
5423
5423
|
right: 10,
|
|
5424
5424
|
toggle: !1,
|
|
5425
5425
|
mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
|
|
5426
|
-
tagLayers: [...
|
|
5426
|
+
tagLayers: [...io.OTHER_LAYERS.filter((t) => t.enabled)],
|
|
5427
5427
|
layerWeight: 0,
|
|
5428
5428
|
otherLayers: {},
|
|
5429
5429
|
activeOtherLayers: [],
|
|
@@ -5571,7 +5571,7 @@ const es = {
|
|
|
5571
5571
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5572
5572
|
function hs(t, e, o, i, a, r) {
|
|
5573
5573
|
var Q, re, de, pe, se, $, ae, ue, ne;
|
|
5574
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), P = x("IdmLatLng"),
|
|
5574
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), P = x("IdmLatLng"), k = x("IdmTerminator"), v = x("IdmTimezone"), b = x("IdmPort"), M = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), T = x("IdmLoadLine"), L = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5575
5575
|
return y(), S("div", ts, [
|
|
5576
5576
|
l("div", {
|
|
5577
5577
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5808,12 +5808,12 @@ function hs(t, e, o, i, a, r) {
|
|
|
5808
5808
|
"menu-toggle": o.menuToggle,
|
|
5809
5809
|
show: a.checkList.includes("graticule")
|
|
5810
5810
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : O("", !0),
|
|
5811
|
-
o.map ? (y(), D(
|
|
5811
|
+
o.map ? (y(), D(k, B({
|
|
5812
5812
|
key: 1,
|
|
5813
5813
|
map: o.map,
|
|
5814
5814
|
area: (Q = a.otherLayers) == null ? void 0 : Q["day-night"]
|
|
5815
5815
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
5816
|
-
o.map ? (y(), D(
|
|
5816
|
+
o.map ? (y(), D(v, B({
|
|
5817
5817
|
key: 2,
|
|
5818
5818
|
map: o.map,
|
|
5819
5819
|
zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
|
|
@@ -5828,7 +5828,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5828
5828
|
"forecast-model": o.forecastModel,
|
|
5829
5829
|
realTime: o.realTime
|
|
5830
5830
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
|
|
5831
|
-
o.map ? (y(), D(
|
|
5831
|
+
o.map ? (y(), D(M, B({
|
|
5832
5832
|
key: 4,
|
|
5833
5833
|
map: o.map,
|
|
5834
5834
|
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
@@ -5853,12 +5853,12 @@ function hs(t, e, o, i, a, r) {
|
|
|
5853
5853
|
map: o.map,
|
|
5854
5854
|
zone: (se = a.otherLayers) == null ? void 0 : se["eca-zones"]
|
|
5855
5855
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
5856
|
-
o.map ? (y(), D(
|
|
5856
|
+
o.map ? (y(), D(_, B({
|
|
5857
5857
|
key: 7,
|
|
5858
5858
|
map: o.map,
|
|
5859
5859
|
zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
|
|
5860
5860
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
5861
|
-
o.map ? (y(), D(
|
|
5861
|
+
o.map ? (y(), D(z, B({
|
|
5862
5862
|
key: 8,
|
|
5863
5863
|
map: o.map,
|
|
5864
5864
|
area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
|
|
@@ -5868,7 +5868,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5868
5868
|
map: o.map,
|
|
5869
5869
|
show: a.checkList.includes("load-lines")
|
|
5870
5870
|
}, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
|
|
5871
|
-
o.map ? (y(), D(
|
|
5871
|
+
o.map ? (y(), D(L, B({
|
|
5872
5872
|
key: 10,
|
|
5873
5873
|
map: o.map,
|
|
5874
5874
|
token: o.token,
|
|
@@ -5968,11 +5968,11 @@ class so {
|
|
|
5968
5968
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5969
5969
|
*/
|
|
5970
5970
|
getBoundPixel() {
|
|
5971
|
-
var
|
|
5972
|
-
const e = (
|
|
5971
|
+
var k, v;
|
|
5972
|
+
const e = (k = this.map) == null ? void 0 : k.getBounds();
|
|
5973
5973
|
if (!e)
|
|
5974
5974
|
return [];
|
|
5975
|
-
const o = ((
|
|
5975
|
+
const o = ((v = this.map) == null ? void 0 : v.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), P = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
5976
5976
|
return [f, w, g + P, p];
|
|
5977
5977
|
}
|
|
5978
5978
|
/**
|
|
@@ -6012,7 +6012,7 @@ class so {
|
|
|
6012
6012
|
o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
6013
6013
|
}
|
|
6014
6014
|
}
|
|
6015
|
-
class
|
|
6015
|
+
class Ne {
|
|
6016
6016
|
/**
|
|
6017
6017
|
* 创建着色器
|
|
6018
6018
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -6157,8 +6157,8 @@ class He {
|
|
|
6157
6157
|
};
|
|
6158
6158
|
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6159
6159
|
const f = e.getBoundPixel(), w = e.map.getZoom() + 1, P = e.getWorldCopy(f, w);
|
|
6160
|
-
for (const
|
|
6161
|
-
const
|
|
6160
|
+
for (const k of P) {
|
|
6161
|
+
const v = (k[0] - f[0]) * e.ratio, b = (k[1] - f[3]) * e.ratio, M = k[2] * e.ratio, [I, C, _, z] = [v, M + v, b, M + b], T = new Float32Array([I, _, C, _, I, z, I, z, C, _, C, z]);
|
|
6162
6162
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6163
6163
|
}
|
|
6164
6164
|
} catch (p) {
|
|
@@ -6587,7 +6587,7 @@ const bs = {
|
|
|
6587
6587
|
texture: void 0,
|
|
6588
6588
|
rampColor: void 0,
|
|
6589
6589
|
aPositionBuffer: void 0,
|
|
6590
|
-
webgl: new
|
|
6590
|
+
webgl: new Ne(),
|
|
6591
6591
|
etime: void 0,
|
|
6592
6592
|
wrapper: void 0,
|
|
6593
6593
|
animation: void 0,
|
|
@@ -6927,7 +6927,7 @@ const Ls = {
|
|
|
6927
6927
|
texture: void 0,
|
|
6928
6928
|
rampColor: void 0,
|
|
6929
6929
|
aPositionBuffer: void 0,
|
|
6930
|
-
webgl: new
|
|
6930
|
+
webgl: new Ne(),
|
|
6931
6931
|
etime: void 0,
|
|
6932
6932
|
wrapper: void 0,
|
|
6933
6933
|
animation: void 0,
|
|
@@ -7109,7 +7109,7 @@ const Ss = {
|
|
|
7109
7109
|
texture: void 0,
|
|
7110
7110
|
rampColor: void 0,
|
|
7111
7111
|
aPositionBuffer: void 0,
|
|
7112
|
-
webgl: new
|
|
7112
|
+
webgl: new Ne(),
|
|
7113
7113
|
etime: void 0,
|
|
7114
7114
|
right: 10
|
|
7115
7115
|
};
|
|
@@ -7713,7 +7713,7 @@ const Ws = {
|
|
|
7713
7713
|
texture: void 0,
|
|
7714
7714
|
rampColor: void 0,
|
|
7715
7715
|
aPositionBuffer: void 0,
|
|
7716
|
-
webgl: new
|
|
7716
|
+
webgl: new Ne(),
|
|
7717
7717
|
etime: void 0,
|
|
7718
7718
|
right: 10
|
|
7719
7719
|
};
|
|
@@ -7834,7 +7834,7 @@ const qs = {
|
|
|
7834
7834
|
texture: void 0,
|
|
7835
7835
|
rampColor: void 0,
|
|
7836
7836
|
aPositionBuffer: void 0,
|
|
7837
|
-
webgl: new
|
|
7837
|
+
webgl: new Ne(),
|
|
7838
7838
|
etime: void 0,
|
|
7839
7839
|
right: 10
|
|
7840
7840
|
};
|
|
@@ -7940,7 +7940,7 @@ const $s = {
|
|
|
7940
7940
|
texture: void 0,
|
|
7941
7941
|
rampColor: void 0,
|
|
7942
7942
|
aPositionBuffer: void 0,
|
|
7943
|
-
webgl: new
|
|
7943
|
+
webgl: new Ne(),
|
|
7944
7944
|
etime: void 0,
|
|
7945
7945
|
right: 10
|
|
7946
7946
|
};
|
|
@@ -8059,7 +8059,7 @@ const tn = {
|
|
|
8059
8059
|
texture: void 0,
|
|
8060
8060
|
rampColor: void 0,
|
|
8061
8061
|
aPositionBuffer: void 0,
|
|
8062
|
-
webgl: new
|
|
8062
|
+
webgl: new Ne(),
|
|
8063
8063
|
etime: void 0,
|
|
8064
8064
|
right: 10
|
|
8065
8065
|
};
|
|
@@ -8173,7 +8173,7 @@ const ln = {
|
|
|
8173
8173
|
texture: void 0,
|
|
8174
8174
|
rampColor: void 0,
|
|
8175
8175
|
aPositionBuffer: void 0,
|
|
8176
|
-
webgl: new
|
|
8176
|
+
webgl: new Ne(),
|
|
8177
8177
|
etime: void 0
|
|
8178
8178
|
};
|
|
8179
8179
|
},
|
|
@@ -8273,7 +8273,7 @@ const mn = {
|
|
|
8273
8273
|
texture: void 0,
|
|
8274
8274
|
rampColor: void 0,
|
|
8275
8275
|
aPositionBuffer: void 0,
|
|
8276
|
-
webgl: new
|
|
8276
|
+
webgl: new Ne(),
|
|
8277
8277
|
etime: void 0,
|
|
8278
8278
|
right: 10
|
|
8279
8279
|
};
|
|
@@ -8389,7 +8389,7 @@ const un = {
|
|
|
8389
8389
|
texture: void 0,
|
|
8390
8390
|
rampColor: void 0,
|
|
8391
8391
|
aPositionBuffer: void 0,
|
|
8392
|
-
webgl: new
|
|
8392
|
+
webgl: new Ne(),
|
|
8393
8393
|
etime: void 0,
|
|
8394
8394
|
right: 10
|
|
8395
8395
|
};
|
|
@@ -8552,8 +8552,8 @@ const bn = {
|
|
|
8552
8552
|
right: 10,
|
|
8553
8553
|
toggle: !1,
|
|
8554
8554
|
autoActive: !0,
|
|
8555
|
-
allLayers: [...
|
|
8556
|
-
tagLayers: [...
|
|
8555
|
+
allLayers: [...io.WEATHER_LAYERS],
|
|
8556
|
+
tagLayers: [...io.WEATHER_LAYERS.filter((t) => !t.hide)],
|
|
8557
8557
|
checkList: [],
|
|
8558
8558
|
renderKey: "",
|
|
8559
8559
|
iceToggleValue: void 0,
|
|
@@ -8603,7 +8603,7 @@ const bn = {
|
|
|
8603
8603
|
return function(t) {
|
|
8604
8604
|
var e;
|
|
8605
8605
|
if (t) {
|
|
8606
|
-
const o =
|
|
8606
|
+
const o = A(t);
|
|
8607
8607
|
return `${(e = o == null ? void 0 : o.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
8608
8608
|
}
|
|
8609
8609
|
return "-";
|
|
@@ -8650,7 +8650,7 @@ const bn = {
|
|
|
8650
8650
|
},
|
|
8651
8651
|
realTime: {
|
|
8652
8652
|
handler(t, e) {
|
|
8653
|
-
t && e &&
|
|
8653
|
+
t && e && A(t).utc().format("yyyy-MM-DD HH") !== A(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8654
8654
|
this.fetchWeatherLayers();
|
|
8655
8655
|
});
|
|
8656
8656
|
},
|
|
@@ -8742,19 +8742,19 @@ const bn = {
|
|
|
8742
8742
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8743
8743
|
let o = 0, i = 0;
|
|
8744
8744
|
if (this.map) {
|
|
8745
|
-
const P = ((a = this.map) == null ? void 0 : a.getZoom()) + 1,
|
|
8745
|
+
const P = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, k = (r = this.map) == null ? void 0 : r.getBounds(), v = `${k._sw.lng},${k._sw.lat},${k._ne.lng},${k._ne.lat}`;
|
|
8746
8746
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8747
|
-
const b =
|
|
8747
|
+
const b = io.WEATHER_LAYERS.find((M) => {
|
|
8748
8748
|
var I;
|
|
8749
|
-
return ((I =
|
|
8749
|
+
return ((I = M.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8750
8750
|
});
|
|
8751
8751
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight : this.weatherWeight + b.weight : this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight - b.weight : this.weatherWeight;
|
|
8752
8752
|
}
|
|
8753
8753
|
if (this.weatherWeight > 0) {
|
|
8754
8754
|
let b = this.weatherWeight;
|
|
8755
8755
|
if (b > 0) {
|
|
8756
|
-
const
|
|
8757
|
-
`${
|
|
8756
|
+
const M = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
8757
|
+
`${M}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${P}&bbox=${v}&t=${this.realTime}`,
|
|
8758
8758
|
{
|
|
8759
8759
|
headers: {
|
|
8760
8760
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -8762,46 +8762,46 @@ const bn = {
|
|
|
8762
8762
|
}
|
|
8763
8763
|
);
|
|
8764
8764
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
8765
|
-
const C = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data,
|
|
8765
|
+
const C = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
|
|
8766
8766
|
for (const T in C)
|
|
8767
|
-
|
|
8767
|
+
_.push(
|
|
8768
8768
|
Se.get(C[T], {
|
|
8769
8769
|
headers: {
|
|
8770
8770
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8771
8771
|
key: T
|
|
8772
8772
|
},
|
|
8773
8773
|
responseType: /\.(jpg|png)$/.test(C[T]) ? "blob" : "json"
|
|
8774
|
-
}).catch((
|
|
8775
|
-
console.log(`[${T}] fetch layer error: ${
|
|
8774
|
+
}).catch((L) => {
|
|
8775
|
+
console.log(`[${T}] fetch layer error: ${L}`);
|
|
8776
8776
|
})
|
|
8777
8777
|
);
|
|
8778
|
-
const
|
|
8779
|
-
this.weatherLayers = {},
|
|
8778
|
+
const z = await Promise.all(_);
|
|
8779
|
+
this.weatherLayers = {}, z.map((T) => {
|
|
8780
8780
|
var V, K, X, Z;
|
|
8781
|
-
const
|
|
8781
|
+
const L = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
|
|
8782
8782
|
let R = (X = (K = T == null ? void 0 : T.config) == null ? void 0 : K.headers) == null ? void 0 : X.key;
|
|
8783
|
-
R &&
|
|
8784
|
-
raw:
|
|
8783
|
+
R && L && (this.weatherLayers[R] = {
|
|
8784
|
+
raw: L,
|
|
8785
8785
|
type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8786
8786
|
etime: I.data.etime
|
|
8787
8787
|
});
|
|
8788
8788
|
});
|
|
8789
8789
|
}
|
|
8790
8790
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8791
|
-
const C = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw,
|
|
8791
|
+
const C = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
8792
8792
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8793
8793
|
type: "json",
|
|
8794
8794
|
direction: C,
|
|
8795
|
-
height: { raw:
|
|
8795
|
+
height: { raw: _ },
|
|
8796
8796
|
etime: I.data.etime
|
|
8797
8797
|
};
|
|
8798
8798
|
}
|
|
8799
8799
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8800
|
-
const C = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw,
|
|
8800
|
+
const C = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8801
8801
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8802
8802
|
type: "json",
|
|
8803
8803
|
direction: C,
|
|
8804
|
-
speed: { raw:
|
|
8804
|
+
speed: { raw: _ },
|
|
8805
8805
|
etime: I.data.etime
|
|
8806
8806
|
};
|
|
8807
8807
|
}
|
|
@@ -8858,176 +8858,176 @@ const bn = {
|
|
|
8858
8858
|
);
|
|
8859
8859
|
},
|
|
8860
8860
|
handleDrawWeather4Json() {
|
|
8861
|
-
var g, p, f, w, P,
|
|
8861
|
+
var g, p, f, w, P, k, v;
|
|
8862
8862
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8863
8863
|
let e = 0, o = 0;
|
|
8864
8864
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = G.convertToStdLng(i._sw.lng), s = G.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8865
8865
|
for (const b in this.weatherLayers) {
|
|
8866
|
-
let
|
|
8866
|
+
let M = !1;
|
|
8867
8867
|
if (this.weatherLayers[b].active && this.weatherLayers[b].type === "json") {
|
|
8868
8868
|
let I = [];
|
|
8869
8869
|
if (b === "swell") {
|
|
8870
|
-
|
|
8870
|
+
M = !0;
|
|
8871
8871
|
const C = ((f = this.weatherLayers[b]) == null ? void 0 : f.direction) || {};
|
|
8872
|
-
for (const
|
|
8873
|
-
if (
|
|
8874
|
-
const T = C[
|
|
8875
|
-
r > s ? T.forEach((
|
|
8872
|
+
for (const z in C)
|
|
8873
|
+
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8874
|
+
const T = C[z].lng;
|
|
8875
|
+
r > s ? T.forEach((L, R) => {
|
|
8876
8876
|
var V, K, X, Z, J, ee;
|
|
8877
8877
|
if (a < 2) {
|
|
8878
|
-
if ((
|
|
8879
|
-
const Q = H.point([
|
|
8880
|
-
val: ((V = C[
|
|
8881
|
-
spd: (X = C[
|
|
8878
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8879
|
+
const Q = H.point([L, z], {
|
|
8880
|
+
val: ((V = C[z].val) == null ? void 0 : V[R]) || ((K = C[z].dir) == null ? void 0 : K[R]),
|
|
8881
|
+
spd: (X = C[z].spd) == null ? void 0 : X[R]
|
|
8882
8882
|
});
|
|
8883
8883
|
I.push(Q);
|
|
8884
8884
|
}
|
|
8885
|
-
} else if ((
|
|
8886
|
-
const Q = H.point([
|
|
8887
|
-
val: ((Z = C[
|
|
8888
|
-
spd: (ee = C[
|
|
8885
|
+
} else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8886
|
+
const Q = H.point([L, z], {
|
|
8887
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[R]) || ((J = C[z].dir) == null ? void 0 : J[R]),
|
|
8888
|
+
spd: (ee = C[z].spd) == null ? void 0 : ee[R]
|
|
8889
8889
|
});
|
|
8890
8890
|
I.push(Q);
|
|
8891
8891
|
}
|
|
8892
|
-
}) : T.forEach((
|
|
8892
|
+
}) : T.forEach((L, R) => {
|
|
8893
8893
|
var V, K, X, Z, J, ee;
|
|
8894
8894
|
if (r < 2) {
|
|
8895
|
-
if ((
|
|
8896
|
-
const Q = H.point([
|
|
8897
|
-
val: ((V = C[
|
|
8898
|
-
spd: (X = C[
|
|
8895
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8896
|
+
const Q = H.point([L, z], {
|
|
8897
|
+
val: ((V = C[z].val) == null ? void 0 : V[R]) || ((K = C[z].dir) == null ? void 0 : K[R]),
|
|
8898
|
+
spd: (X = C[z].spd) == null ? void 0 : X[R]
|
|
8899
8899
|
});
|
|
8900
8900
|
I.push(Q);
|
|
8901
8901
|
}
|
|
8902
|
-
} else if (
|
|
8903
|
-
const Q = H.point([
|
|
8904
|
-
val: ((Z = C[
|
|
8905
|
-
spd: (ee = C[
|
|
8902
|
+
} else if (L >= r && L <= s && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8903
|
+
const Q = H.point([L, z], {
|
|
8904
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[R]) || ((J = C[z].dir) == null ? void 0 : J[R]),
|
|
8905
|
+
spd: (ee = C[z].spd) == null ? void 0 : ee[R]
|
|
8906
8906
|
});
|
|
8907
8907
|
I.push(Q);
|
|
8908
8908
|
}
|
|
8909
8909
|
});
|
|
8910
8910
|
}
|
|
8911
8911
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
8912
|
-
const
|
|
8913
|
-
if (
|
|
8914
|
-
if (!
|
|
8915
|
-
const
|
|
8916
|
-
for (const T in (w =
|
|
8917
|
-
const
|
|
8918
|
-
for (const R of
|
|
8919
|
-
|
|
8912
|
+
const _ = this.weatherLayers[b].height;
|
|
8913
|
+
if (_) {
|
|
8914
|
+
if (!_.data) {
|
|
8915
|
+
const z = [];
|
|
8916
|
+
for (const T in (w = _.raw) == null ? void 0 : w.LineString) {
|
|
8917
|
+
const L = _.raw.LineString[T];
|
|
8918
|
+
for (const R of L)
|
|
8919
|
+
z.push(
|
|
8920
8920
|
H.lineString(R, {
|
|
8921
8921
|
val: Number(T)
|
|
8922
8922
|
})
|
|
8923
8923
|
);
|
|
8924
|
-
|
|
8924
|
+
_.data = H.featureCollection(z);
|
|
8925
8925
|
}
|
|
8926
8926
|
}
|
|
8927
|
-
if (
|
|
8928
|
-
const
|
|
8929
|
-
I = I.concat(
|
|
8927
|
+
if (_.data) {
|
|
8928
|
+
const z = this.handleBboxClip(_.data, i);
|
|
8929
|
+
I = I.concat(z);
|
|
8930
8930
|
}
|
|
8931
8931
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8932
8932
|
}
|
|
8933
8933
|
} else if (b === "current") {
|
|
8934
|
-
|
|
8934
|
+
M = !0;
|
|
8935
8935
|
const C = ((P = this.weatherLayers[b]) == null ? void 0 : P.direction) || {};
|
|
8936
|
-
for (const
|
|
8937
|
-
if (
|
|
8938
|
-
const T = C[
|
|
8939
|
-
r > s ? T.forEach((
|
|
8936
|
+
for (const z in C)
|
|
8937
|
+
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8938
|
+
const T = C[z].lng;
|
|
8939
|
+
r > s ? T.forEach((L, R) => {
|
|
8940
8940
|
var V, K, X, Z, J, ee;
|
|
8941
8941
|
if (a < 2) {
|
|
8942
|
-
if ((
|
|
8943
|
-
const Q = H.point([
|
|
8944
|
-
val: ((V = C[
|
|
8945
|
-
spd: (X = C[
|
|
8942
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8943
|
+
const Q = H.point([L, z], {
|
|
8944
|
+
val: ((V = C[z].val) == null ? void 0 : V[R]) || ((K = C[z].dir) == null ? void 0 : K[R]),
|
|
8945
|
+
spd: (X = C[z].spd) == null ? void 0 : X[R]
|
|
8946
8946
|
});
|
|
8947
8947
|
I.push(Q);
|
|
8948
8948
|
}
|
|
8949
|
-
} else if ((
|
|
8950
|
-
const Q = H.point([
|
|
8951
|
-
val: ((Z = C[
|
|
8952
|
-
spd: (ee = C[
|
|
8949
|
+
} else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8950
|
+
const Q = H.point([L, z], {
|
|
8951
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[R]) || ((J = C[z].dir) == null ? void 0 : J[R]),
|
|
8952
|
+
spd: (ee = C[z].spd) == null ? void 0 : ee[R]
|
|
8953
8953
|
});
|
|
8954
8954
|
I.push(Q);
|
|
8955
8955
|
}
|
|
8956
|
-
}) : T.forEach((
|
|
8956
|
+
}) : T.forEach((L, R) => {
|
|
8957
8957
|
var V, K, X, Z, J, ee;
|
|
8958
8958
|
if (r < 2) {
|
|
8959
|
-
if ((
|
|
8960
|
-
const Q = H.point([
|
|
8961
|
-
val: ((V = C[
|
|
8962
|
-
spd: (X = C[
|
|
8959
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8960
|
+
const Q = H.point([L, z], {
|
|
8961
|
+
val: ((V = C[z].val) == null ? void 0 : V[R]) || ((K = C[z].dir) == null ? void 0 : K[R]),
|
|
8962
|
+
spd: (X = C[z].spd) == null ? void 0 : X[R]
|
|
8963
8963
|
});
|
|
8964
8964
|
I.push(Q);
|
|
8965
8965
|
}
|
|
8966
|
-
} else if (
|
|
8967
|
-
const Q = H.point([
|
|
8968
|
-
val: ((Z = C[
|
|
8969
|
-
spd: (ee = C[
|
|
8966
|
+
} else if (L >= r && L <= s && (!(a <= this.zoom) || L % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8967
|
+
const Q = H.point([L, z], {
|
|
8968
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[R]) || ((J = C[z].dir) == null ? void 0 : J[R]),
|
|
8969
|
+
spd: (ee = C[z].spd) == null ? void 0 : ee[R]
|
|
8970
8970
|
});
|
|
8971
8971
|
I.push(Q);
|
|
8972
8972
|
}
|
|
8973
8973
|
});
|
|
8974
8974
|
}
|
|
8975
8975
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
8976
|
-
const
|
|
8977
|
-
if (
|
|
8978
|
-
if (!
|
|
8976
|
+
const _ = this.weatherLayers[b].speed;
|
|
8977
|
+
if (_) {
|
|
8978
|
+
if (!_.data) {
|
|
8979
8979
|
const T = [];
|
|
8980
|
-
for (const
|
|
8981
|
-
const R =
|
|
8980
|
+
for (const L in (k = _.raw) == null ? void 0 : k.Polygon) {
|
|
8981
|
+
const R = _.raw.Polygon[L];
|
|
8982
8982
|
for (const V of R)
|
|
8983
8983
|
T.push(
|
|
8984
8984
|
H.polygon(V, {
|
|
8985
|
-
val: Number(
|
|
8985
|
+
val: Number(L)
|
|
8986
8986
|
})
|
|
8987
8987
|
);
|
|
8988
8988
|
}
|
|
8989
|
-
|
|
8989
|
+
_.data = H.featureCollection(T);
|
|
8990
8990
|
}
|
|
8991
|
-
const
|
|
8992
|
-
I = I.concat(
|
|
8991
|
+
const z = a < this.zoom ? _.data.features.filter((T) => T.properties.val > 0.5) : _.data.features;
|
|
8992
|
+
I = I.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8993
8993
|
}
|
|
8994
8994
|
} else if (b === "wind") {
|
|
8995
|
-
|
|
8995
|
+
M = !0;
|
|
8996
8996
|
const C = this.weatherLayers.wind.raw;
|
|
8997
|
-
for (const
|
|
8998
|
-
if (
|
|
8999
|
-
const
|
|
9000
|
-
r > s ?
|
|
8997
|
+
for (const _ in C)
|
|
8998
|
+
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8999
|
+
const z = C[_].lng;
|
|
9000
|
+
r > s ? z.forEach((T, L) => {
|
|
9001
9001
|
var R, V, K, X;
|
|
9002
9002
|
if (a < 2) {
|
|
9003
9003
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
9004
|
-
const Z = H.point([T,
|
|
9005
|
-
dir: ((R = C[
|
|
9006
|
-
spd: C[
|
|
9004
|
+
const Z = H.point([T, _], {
|
|
9005
|
+
dir: ((R = C[_].val) == null ? void 0 : R[L]) || ((V = C[_].dir) == null ? void 0 : V[L]),
|
|
9006
|
+
spd: C[_].spd[L]
|
|
9007
9007
|
});
|
|
9008
9008
|
I.push(Z);
|
|
9009
9009
|
}
|
|
9010
9010
|
} else if ((T >= r && T <= 180 || T >= -180 && T <= s) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9011
|
-
const Z = H.point([T,
|
|
9012
|
-
dir: ((K = C[
|
|
9013
|
-
spd: C[
|
|
9011
|
+
const Z = H.point([T, _], {
|
|
9012
|
+
dir: ((K = C[_].val) == null ? void 0 : K[L]) || ((X = C[_].dir) == null ? void 0 : X[L]),
|
|
9013
|
+
spd: C[_].spd[L]
|
|
9014
9014
|
});
|
|
9015
9015
|
I.push(Z);
|
|
9016
9016
|
}
|
|
9017
|
-
}) :
|
|
9017
|
+
}) : z.forEach((T, L) => {
|
|
9018
9018
|
var R, V, K, X;
|
|
9019
9019
|
if (a < 2) {
|
|
9020
9020
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
9021
|
-
const Z = H.point([T,
|
|
9022
|
-
dir: ((R = C[
|
|
9023
|
-
spd: C[
|
|
9021
|
+
const Z = H.point([T, _], {
|
|
9022
|
+
dir: ((R = C[_].val) == null ? void 0 : R[L]) || ((V = C[_].dir) == null ? void 0 : V[L]),
|
|
9023
|
+
spd: C[_].spd[L]
|
|
9024
9024
|
});
|
|
9025
9025
|
I.push(Z);
|
|
9026
9026
|
}
|
|
9027
9027
|
} else if (T >= r && T <= s && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9028
|
-
const Z = H.point([T,
|
|
9029
|
-
dir: ((K = C[
|
|
9030
|
-
spd: C[
|
|
9028
|
+
const Z = H.point([T, _], {
|
|
9029
|
+
dir: ((K = C[_].val) == null ? void 0 : K[L]) || ((X = C[_].dir) == null ? void 0 : X[L]),
|
|
9030
|
+
spd: C[_].spd[L]
|
|
9031
9031
|
});
|
|
9032
9032
|
I.push(Z);
|
|
9033
9033
|
}
|
|
@@ -9038,38 +9038,38 @@ const bn = {
|
|
|
9038
9038
|
if (this.weatherLayers[b].data)
|
|
9039
9039
|
I = this.weatherLayers[b].data;
|
|
9040
9040
|
else {
|
|
9041
|
-
|
|
9041
|
+
M = !0;
|
|
9042
9042
|
const C = this.weatherLayers[b].raw;
|
|
9043
9043
|
if (C) {
|
|
9044
|
-
const
|
|
9045
|
-
for (const
|
|
9046
|
-
const T = C.Polygon[
|
|
9047
|
-
for (const
|
|
9048
|
-
|
|
9049
|
-
H.polygon(
|
|
9050
|
-
val: Number(
|
|
9044
|
+
const _ = [];
|
|
9045
|
+
for (const z in C.Polygon) {
|
|
9046
|
+
const T = C.Polygon[z];
|
|
9047
|
+
for (const L of T)
|
|
9048
|
+
_.push(
|
|
9049
|
+
H.polygon(L, {
|
|
9050
|
+
val: Number(z)
|
|
9051
9051
|
})
|
|
9052
9052
|
);
|
|
9053
9053
|
}
|
|
9054
|
-
for (const
|
|
9055
|
-
const T = C.MultiPolygon[
|
|
9056
|
-
for (const
|
|
9057
|
-
|
|
9058
|
-
H.multiPolygon(
|
|
9059
|
-
val: Number(
|
|
9054
|
+
for (const z in C.MultiPolygon) {
|
|
9055
|
+
const T = C.MultiPolygon[z];
|
|
9056
|
+
for (const L of T)
|
|
9057
|
+
_.push(
|
|
9058
|
+
H.multiPolygon(L, {
|
|
9059
|
+
val: Number(z)
|
|
9060
9060
|
})
|
|
9061
9061
|
);
|
|
9062
9062
|
}
|
|
9063
|
-
for (const
|
|
9064
|
-
const T = C.Point[
|
|
9065
|
-
for (let
|
|
9066
|
-
|
|
9067
|
-
H.point([T.lng[
|
|
9068
|
-
val: Number(T.val[
|
|
9063
|
+
for (const z in C.Point) {
|
|
9064
|
+
const T = C.Point[z];
|
|
9065
|
+
for (let L = 0; L < ((v = T.lng) == null ? void 0 : v.length); L++)
|
|
9066
|
+
_.push(
|
|
9067
|
+
H.point([T.lng[L], z], {
|
|
9068
|
+
val: Number(T.val[L])
|
|
9069
9069
|
})
|
|
9070
9070
|
);
|
|
9071
9071
|
}
|
|
9072
|
-
I = I.concat(
|
|
9072
|
+
I = I.concat(_);
|
|
9073
9073
|
}
|
|
9074
9074
|
}
|
|
9075
9075
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -9077,34 +9077,34 @@ const bn = {
|
|
|
9077
9077
|
if (this.weatherLayers[b].data)
|
|
9078
9078
|
I = this.weatherLayers[b].data;
|
|
9079
9079
|
else {
|
|
9080
|
-
|
|
9080
|
+
M = !0;
|
|
9081
9081
|
const C = this.weatherLayers[b].raw;
|
|
9082
9082
|
if (C) {
|
|
9083
|
-
const
|
|
9084
|
-
for (const
|
|
9085
|
-
const T = C.LineString[
|
|
9086
|
-
for (const
|
|
9087
|
-
|
|
9088
|
-
H.lineString(
|
|
9089
|
-
val: Number(
|
|
9083
|
+
const _ = [];
|
|
9084
|
+
for (const z in C.LineString) {
|
|
9085
|
+
const T = C.LineString[z];
|
|
9086
|
+
for (const L of T)
|
|
9087
|
+
_.push(
|
|
9088
|
+
H.lineString(L, {
|
|
9089
|
+
val: Number(z)
|
|
9090
9090
|
})
|
|
9091
9091
|
);
|
|
9092
9092
|
}
|
|
9093
|
-
for (const
|
|
9094
|
-
C.Point[
|
|
9095
|
-
T = G.convertToStdLng(T),
|
|
9096
|
-
H.point([T,
|
|
9097
|
-
val: C.Point[
|
|
9098
|
-
type: C.Point[
|
|
9093
|
+
for (const z in C.Point)
|
|
9094
|
+
C.Point[z].lng.forEach((T, L) => {
|
|
9095
|
+
T = G.convertToStdLng(T), _.push(
|
|
9096
|
+
H.point([T, z], {
|
|
9097
|
+
val: C.Point[z].val[L],
|
|
9098
|
+
type: C.Point[z].type[L]
|
|
9099
9099
|
})
|
|
9100
9100
|
);
|
|
9101
9101
|
});
|
|
9102
|
-
I = I.concat(
|
|
9102
|
+
I = I.concat(_);
|
|
9103
9103
|
}
|
|
9104
9104
|
}
|
|
9105
9105
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9106
9106
|
}
|
|
9107
|
-
I.length && (this.weatherLayers[b].data = H.featureCollection(I)),
|
|
9107
|
+
I.length && (this.weatherLayers[b].data = H.featureCollection(I)), M && (this.weatherLayers[b].version = Math.random() + 1);
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
9110
|
},
|
|
@@ -9147,7 +9147,7 @@ const bn = {
|
|
|
9147
9147
|
}, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
|
|
9148
9148
|
function Qn(t, e, o, i, a, r) {
|
|
9149
9149
|
var pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
|
|
9150
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), P = x("VSwitch"),
|
|
9150
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), P = x("VSwitch"), k = x("VCardTitle"), v = x("VCardItem"), b = x("VCheckbox"), M = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), T = x("IdmPrmsl"), L = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
|
|
9151
9151
|
return y(), S("div", wn, [
|
|
9152
9152
|
l("div", {
|
|
9153
9153
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9346,9 +9346,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9346
9346
|
elevation: "0"
|
|
9347
9347
|
}, {
|
|
9348
9348
|
default: u(() => [
|
|
9349
|
-
d(
|
|
9349
|
+
d(v, { class: "border-b-thin" }, {
|
|
9350
9350
|
default: u(() => [
|
|
9351
|
-
d(
|
|
9351
|
+
d(k, {
|
|
9352
9352
|
class: "text-subtitle-1 font-weight-medium",
|
|
9353
9353
|
style: { "font-size": "16px !important" }
|
|
9354
9354
|
}, {
|
|
@@ -9386,9 +9386,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9386
9386
|
elevation: "0"
|
|
9387
9387
|
}, {
|
|
9388
9388
|
default: u(() => [
|
|
9389
|
-
d(
|
|
9389
|
+
d(v, { class: "border-b-thin" }, {
|
|
9390
9390
|
default: u(() => [
|
|
9391
|
-
d(
|
|
9391
|
+
d(k, {
|
|
9392
9392
|
class: "text-subtitle-1 font-weight-medium",
|
|
9393
9393
|
style: { "font-size": "16px !important" }
|
|
9394
9394
|
}, {
|
|
@@ -9405,7 +9405,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9405
9405
|
(y(!0), S(be, null, we(a.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (y(), S(be, {
|
|
9406
9406
|
key: U.key
|
|
9407
9407
|
}, [
|
|
9408
|
-
d(
|
|
9408
|
+
d(M, {
|
|
9409
9409
|
modelValue: a.renderKey,
|
|
9410
9410
|
"onUpdate:modelValue": e[3] || (e[3] = (oe) => a.renderKey = oe),
|
|
9411
9411
|
label: t.$t(`weather.${U.locale}`),
|
|
@@ -9501,9 +9501,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9501
9501
|
elevation: "0"
|
|
9502
9502
|
}, {
|
|
9503
9503
|
default: u(() => [
|
|
9504
|
-
d(
|
|
9504
|
+
d(v, { class: "border-b-thin" }, {
|
|
9505
9505
|
default: u(() => [
|
|
9506
|
-
d(
|
|
9506
|
+
d(k, {
|
|
9507
9507
|
class: "text-subtitle-1 font-weight-medium",
|
|
9508
9508
|
style: { "font-size": "16px !important" }
|
|
9509
9509
|
}, {
|
|
@@ -9517,28 +9517,28 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9517
9517
|
}),
|
|
9518
9518
|
d(p, { class: "" }, {
|
|
9519
9519
|
default: u(() => {
|
|
9520
|
-
var U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te,
|
|
9520
|
+
var U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, eo;
|
|
9521
9521
|
return [
|
|
9522
9522
|
l("div", Rn, h(t.$t("weather.atmospheric")), 1),
|
|
9523
9523
|
l("div", On, h((je = (oe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : je.source) + " " + h((fe = (ge = (Ie = a.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + h(t.$t("units.km")) + " " + h((le = (te = (Ce = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : te.meta) == null ? void 0 : le.days) + h(t.$t("units.days")), 1),
|
|
9524
9524
|
l("div", Bn, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
9525
9525
|
l("div", En, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Me = (ye = (j = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : j.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Me.initialisationTime)), 1),
|
|
9526
|
-
l("div", jn, h((E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (q = a.models) == null ? void 0 : q.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((
|
|
9526
|
+
l("div", jn, h((E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (q = a.models) == null ? void 0 : q.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
|
|
9527
9527
|
l("div", Nn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9528
|
-
l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Qe = ($e = (Xe =
|
|
9528
|
+
l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
9529
9529
|
d(f),
|
|
9530
9530
|
l("div", Hn, h(t.$t("weather.wave")), 1),
|
|
9531
|
-
l("div", Un, h((
|
|
9531
|
+
l("div", Un, h((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.source) + " " + h((st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
|
|
9532
9532
|
l("div", Wn, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
9533
|
-
l("div", Gn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((ft = (gt = (ut = (pt =
|
|
9534
|
-
l("div", Vn, h((
|
|
9533
|
+
l("div", Gn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((yt = (ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.NOAA) == null ? void 0 : ft.meta) == null ? void 0 : yt.initialisationTime)), 1),
|
|
9534
|
+
l("div", Vn, h((vt = (xt = (wt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
|
|
9535
9535
|
l("div", Zn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9536
|
-
l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Rt = (Dt = (At = (Mt =
|
|
9536
|
+
l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9537
9537
|
d(f),
|
|
9538
9538
|
l("div", Yn, h(t.$t("weather.currents")), 1),
|
|
9539
|
-
l("div", Kn, h((
|
|
9539
|
+
l("div", Kn, h((Nt = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Nt.source) + " " + h((Wt = (Ut = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
|
|
9540
9540
|
l("div", Xn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9541
|
-
l("div", $n, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Jt = (Qt = (Xt = (Kt =
|
|
9541
|
+
l("div", $n, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((eo = (Jt = (Qt = (Xt = (Kt = a.models) == null ? void 0 : Kt.marine) == null ? void 0 : Xt.current) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : eo.initialisationTime)), 1)
|
|
9542
9542
|
];
|
|
9543
9543
|
}),
|
|
9544
9544
|
_: 1
|
|
@@ -9557,7 +9557,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9557
9557
|
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
9558
9558
|
"menu-toggle": o.menuToggle
|
|
9559
9559
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : O("", !0),
|
|
9560
|
-
o.map ? (y(), D(
|
|
9560
|
+
o.map ? (y(), D(_, B({
|
|
9561
9561
|
key: 2,
|
|
9562
9562
|
map: o.map,
|
|
9563
9563
|
"before-layer": "empty-layer-2",
|
|
@@ -9565,7 +9565,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9565
9565
|
"menu-toggle": o.menuToggle,
|
|
9566
9566
|
"active-weather-layers": a.activeWeatherLayers
|
|
9567
9567
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
|
|
9568
|
-
o.map ? (y(), D(
|
|
9568
|
+
o.map ? (y(), D(z, B({
|
|
9569
9569
|
key: 3,
|
|
9570
9570
|
map: o.map,
|
|
9571
9571
|
"map-feather": o.mapFeather,
|
|
@@ -9581,7 +9581,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9581
9581
|
"menu-toggle": o.menuToggle,
|
|
9582
9582
|
"active-weather-layers": a.activeWeatherLayers
|
|
9583
9583
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
|
|
9584
|
-
o.map ? (y(), D(
|
|
9584
|
+
o.map ? (y(), D(L, B({
|
|
9585
9585
|
key: 5,
|
|
9586
9586
|
viewport: a.viewport,
|
|
9587
9587
|
factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
|
|
@@ -9650,7 +9650,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9650
9650
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0)
|
|
9651
9651
|
]);
|
|
9652
9652
|
}
|
|
9653
|
-
const Jn = /* @__PURE__ */ Y(bn, [["render", Qn]]),
|
|
9653
|
+
const Jn = /* @__PURE__ */ Y(bn, [["render", Qn]]), to = [
|
|
9654
9654
|
{
|
|
9655
9655
|
rank: 0,
|
|
9656
9656
|
name: "Best Match",
|
|
@@ -9809,7 +9809,7 @@ const Jn = /* @__PURE__ */ Y(bn, [["render", Qn]]), eo = [
|
|
|
9809
9809
|
categories: "bom_access_global",
|
|
9810
9810
|
variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
|
|
9811
9811
|
}
|
|
9812
|
-
],
|
|
9812
|
+
], oo = [
|
|
9813
9813
|
{
|
|
9814
9814
|
rank: 0,
|
|
9815
9815
|
name: "Best Match",
|
|
@@ -9930,10 +9930,10 @@ const Jn = /* @__PURE__ */ Y(bn, [["render", Qn]]), eo = [
|
|
|
9930
9930
|
];
|
|
9931
9931
|
class Za {
|
|
9932
9932
|
static standardWeatherModels() {
|
|
9933
|
-
return
|
|
9933
|
+
return to.filter((e) => !e.disabled && e.alias);
|
|
9934
9934
|
}
|
|
9935
9935
|
static standardMarineModels() {
|
|
9936
|
-
return
|
|
9936
|
+
return oo.filter((e) => !e.disabled && e.alias);
|
|
9937
9937
|
}
|
|
9938
9938
|
/**
|
|
9939
9939
|
* 可视化图层模式
|
|
@@ -9967,20 +9967,20 @@ class Za {
|
|
|
9967
9967
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
9968
9968
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
9969
9969
|
for (const c of a) {
|
|
9970
|
-
let n =
|
|
9970
|
+
let n = to.find((p) => {
|
|
9971
9971
|
var f, w, P;
|
|
9972
9972
|
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
|
|
9973
|
-
}), g =
|
|
9973
|
+
}), g = oo.find((p) => {
|
|
9974
9974
|
var f, w, P;
|
|
9975
9975
|
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
|
|
9976
9976
|
});
|
|
9977
|
-
n = n ||
|
|
9977
|
+
n = n || to.find((p) => {
|
|
9978
9978
|
var f, w;
|
|
9979
9979
|
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
|
|
9980
|
-
}), g = g ||
|
|
9980
|
+
}), g = g || oo.find((p) => {
|
|
9981
9981
|
var f, w;
|
|
9982
9982
|
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9983
|
-
}), n = n ||
|
|
9983
|
+
}), n = n || to[0], g = g || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
|
|
9984
9984
|
}
|
|
9985
9985
|
return {
|
|
9986
9986
|
weatherModels: r.join(","),
|
|
@@ -9989,7 +9989,7 @@ class Za {
|
|
|
9989
9989
|
}
|
|
9990
9990
|
static autoPickSubCategories(e) {
|
|
9991
9991
|
e = e.toUpperCase();
|
|
9992
|
-
const o =
|
|
9992
|
+
const o = to.filter((r) => r.alias === e), i = oo.filter((r) => r.alias === e), a = [];
|
|
9993
9993
|
return o.forEach((r) => {
|
|
9994
9994
|
r.categories && a.push(...r.categories.split(","));
|
|
9995
9995
|
}), i.forEach((r) => {
|
|
@@ -9997,8 +9997,8 @@ class Za {
|
|
|
9997
9997
|
}), a;
|
|
9998
9998
|
}
|
|
9999
9999
|
static pickHourly(e, o) {
|
|
10000
|
-
var i, a, r, s, c, n, g, p, f, w, P,
|
|
10001
|
-
const ge = typeof o == "string" ?
|
|
10000
|
+
var i, a, r, s, c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
|
|
10001
|
+
const ge = typeof o == "string" ? A(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = A((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
10002
10002
|
if (ge.isBetween(te, le, "millisecond", "[]")) {
|
|
10003
10003
|
const j = ge.utc().diff(te, "h", !1);
|
|
10004
10004
|
let ye, Me;
|
|
@@ -10012,21 +10012,21 @@ class Za {
|
|
|
10012
10012
|
Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
|
|
10013
10013
|
ye = {
|
|
10014
10014
|
temp: (P = q == null ? void 0 : q.temperature_2m) == null ? void 0 : P.at(j),
|
|
10015
|
-
apparentTemp: (
|
|
10016
|
-
rh: (
|
|
10015
|
+
apparentTemp: (k = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : k.at(j),
|
|
10016
|
+
rh: (v = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : v.at(j),
|
|
10017
10017
|
dp: (b = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : b.at(j),
|
|
10018
10018
|
precip: {
|
|
10019
|
-
probability: (
|
|
10019
|
+
probability: (M = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : M.at(j),
|
|
10020
10020
|
sum: (I = q == null ? void 0 : q.precipitation) == null ? void 0 : I.at(j),
|
|
10021
10021
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
10022
10022
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
10023
10023
|
},
|
|
10024
10024
|
pmsl: (C = q == null ? void 0 : q.pressure_msl) == null ? void 0 : C.at(j),
|
|
10025
|
-
psurf: (
|
|
10026
|
-
code: (
|
|
10025
|
+
psurf: (_ = q == null ? void 0 : q.surface_pressure) == null ? void 0 : _.at(j),
|
|
10026
|
+
code: (z = q == null ? void 0 : q.weather_code) == null ? void 0 : z.at(j),
|
|
10027
10027
|
visibility: this.m2nm((T = q == null ? void 0 : q.visibility) == null ? void 0 : T.at(j)),
|
|
10028
10028
|
wind: {
|
|
10029
|
-
speed: (
|
|
10029
|
+
speed: (L = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : L.at(j),
|
|
10030
10030
|
kts: (R = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : R.at(j),
|
|
10031
10031
|
degree: (V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j),
|
|
10032
10032
|
bearing: ((K = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : K.at(j)) !== null ? (((X = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : X.at(j)) + 180) % 360 : null,
|
|
@@ -10106,8 +10106,8 @@ class Za {
|
|
|
10106
10106
|
};
|
|
10107
10107
|
}
|
|
10108
10108
|
static pickDaily(e, o) {
|
|
10109
|
-
var i, a, r, s, c, n, g, p, f, w, P,
|
|
10110
|
-
const Re = typeof o == "string" ?
|
|
10109
|
+
var i, a, r, s, c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
|
|
10110
|
+
const Re = typeof o == "string" ? A(o) : o, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, oe = A((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)), je = A((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
|
|
10111
10111
|
if (Re.isBetween(oe, je, "millisecond", "[]")) {
|
|
10112
10112
|
let ge, fe;
|
|
10113
10113
|
const W = Re.diff(oe, "d", !1);
|
|
@@ -10123,20 +10123,20 @@ class Za {
|
|
|
10123
10123
|
},
|
|
10124
10124
|
apparentTemp: {
|
|
10125
10125
|
max: (P = te.apparent_temperature_max) == null ? void 0 : P.at(W),
|
|
10126
|
-
min: (
|
|
10126
|
+
min: (k = te.apparent_temperature_min) == null ? void 0 : k.at(W)
|
|
10127
10127
|
},
|
|
10128
10128
|
precip: {
|
|
10129
|
-
sum: (
|
|
10129
|
+
sum: (v = te.precipitation_sum) == null ? void 0 : v.at(W),
|
|
10130
10130
|
rainSum: (b = te.rain_sum) == null ? void 0 : b.at(W),
|
|
10131
|
-
snowfallSum: (
|
|
10131
|
+
snowfallSum: (M = te.snowfall_sum) == null ? void 0 : M.at(W),
|
|
10132
10132
|
showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
|
|
10133
10133
|
hours: (C = te.precipitation_hours) == null ? void 0 : C.at(W),
|
|
10134
|
-
probability: (
|
|
10134
|
+
probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
|
|
10135
10135
|
},
|
|
10136
10136
|
rh: {
|
|
10137
|
-
max: (
|
|
10137
|
+
max: (z = te.relative_humidity_2m_max) == null ? void 0 : z.at(W),
|
|
10138
10138
|
min: (T = te.relative_humidity_2m_min) == null ? void 0 : T.at(W),
|
|
10139
|
-
mean: (
|
|
10139
|
+
mean: (L = te.relative_humidity_2m_mean) == null ? void 0 : L.at(W)
|
|
10140
10140
|
},
|
|
10141
10141
|
wind: {
|
|
10142
10142
|
speed: (R = te.wind_speed_10m_max) == null ? void 0 : R.at(W),
|
|
@@ -10678,7 +10678,7 @@ const ec = {
|
|
|
10678
10678
|
computeTime() {
|
|
10679
10679
|
return (t) => {
|
|
10680
10680
|
if (t) {
|
|
10681
|
-
const e =
|
|
10681
|
+
const e = A(t).utcOffset(this.timeZone), o = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
10682
10682
|
return `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
|
|
10683
10683
|
}
|
|
10684
10684
|
return "-";
|
|
@@ -10742,7 +10742,7 @@ const ec = {
|
|
|
10742
10742
|
async fetchTropicals() {
|
|
10743
10743
|
var a, r, s;
|
|
10744
10744
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
10745
|
-
let e = 0, o = 0, i = (a =
|
|
10745
|
+
let e = 0, o = 0, i = (a = io.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
10746
10746
|
if (i > 0) {
|
|
10747
10747
|
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Se.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
10748
10748
|
headers: {
|
|
@@ -10758,9 +10758,9 @@ const ec = {
|
|
|
10758
10758
|
},
|
|
10759
10759
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
10760
10760
|
}).then((p) => {
|
|
10761
|
-
var P,
|
|
10761
|
+
var P, k, v;
|
|
10762
10762
|
const f = Va.convert2Geojson(((P = p == null ? void 0 : p.data) == null ? void 0 : P.data) || (p == null ? void 0 : p.data));
|
|
10763
|
-
((
|
|
10763
|
+
((v = (k = p == null ? void 0 : p.config) == null ? void 0 : k.headers) == null ? void 0 : v.key) && f && (this.tropicals = {
|
|
10764
10764
|
data: f,
|
|
10765
10765
|
active: !0,
|
|
10766
10766
|
cached: !0,
|
|
@@ -10779,7 +10779,7 @@ const ec = {
|
|
|
10779
10779
|
var e, o;
|
|
10780
10780
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10781
10781
|
var a, r, s, c;
|
|
10782
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (c = (s =
|
|
10782
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (c = (s = A(i.properties.date)) == null ? void 0 : s.utcOffset(this.timeZone)) == null ? void 0 : c.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
10783
10783
|
}), this.handleInit();
|
|
10784
10784
|
},
|
|
10785
10785
|
handleInit() {
|
|
@@ -11015,9 +11015,9 @@ const ec = {
|
|
|
11015
11015
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (a = this.activeTropicalsMarker) == null || a.remove(), this.activeTropicalsMarker = void 0;
|
|
11016
11016
|
},
|
|
11017
11017
|
handleDateChange() {
|
|
11018
|
-
var t, e, o, i, a, r, s, c, n, g, p, f, w, P,
|
|
11018
|
+
var t, e, o, i, a, r, s, c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q;
|
|
11019
11019
|
if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11020
|
-
const re =
|
|
11020
|
+
const re = A(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
|
|
11021
11021
|
pe.forEach(($) => {
|
|
11022
11022
|
se.features.push($);
|
|
11023
11023
|
}), (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, {
|
|
@@ -11037,7 +11037,7 @@ const ec = {
|
|
|
11037
11037
|
for (const $ of de)
|
|
11038
11038
|
if (!$.properties.disabled) {
|
|
11039
11039
|
let ae = "#f44336";
|
|
11040
|
-
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((P = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : P.kts) < 47 ? ae = "#f2f202" : ((
|
|
11040
|
+
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((P = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : P.kts) < 47 ? ae = "#f2f202" : ((v = (k = $.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) >= 47 && ((M = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : M.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((z = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? ae = "#f44336" : ((L = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : L.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
11041
11041
|
const ue = `<svg t="1719918955501"
|
|
11042
11042
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11043
11043
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11079,12 +11079,12 @@ const ec = {
|
|
|
11079
11079
|
history: (g = i[0]) == null ? void 0 : g.properties,
|
|
11080
11080
|
showCircle: (f = (p = o[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
11081
11081
|
}, console.log(document.getElementById("idm-tropical-gl4-info").cloneNode(!0)), this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11082
|
-
var
|
|
11083
|
-
(
|
|
11084
|
-
const w = document.getElementById("idm-tropical-gl4-info").cloneNode(!0), P = (b = (
|
|
11082
|
+
var k, v, b;
|
|
11083
|
+
(k = this.activeTropicalsMarker) == null || k.remove();
|
|
11084
|
+
const w = document.getElementById("idm-tropical-gl4-info").cloneNode(!0), P = (b = (v = w == null ? void 0 : w.children[0]) == null ? void 0 : v.children[1]) == null ? void 0 : b.children[1];
|
|
11085
11085
|
P && (P.onclick = () => {
|
|
11086
|
-
var
|
|
11087
|
-
this.showTropicalsInfo = !1, (
|
|
11086
|
+
var M;
|
|
11087
|
+
this.showTropicalsInfo = !1, (M = this.activeTropicalsMarker) == null || M.remove();
|
|
11088
11088
|
}), this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
11089
11089
|
});
|
|
11090
11090
|
},
|
|
@@ -11222,7 +11222,7 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11222
11222
|
_: 1
|
|
11223
11223
|
}, 8, ["text"])
|
|
11224
11224
|
], 4),
|
|
11225
|
-
|
|
11225
|
+
He(l("div", oc, [
|
|
11226
11226
|
d(f, {
|
|
11227
11227
|
width: "400",
|
|
11228
11228
|
elevation: "16"
|
|
@@ -11230,11 +11230,11 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11230
11230
|
default: u(() => [
|
|
11231
11231
|
d(n, null, {
|
|
11232
11232
|
default: u(() => {
|
|
11233
|
-
var w, P,
|
|
11233
|
+
var w, P, k, v, b, M, I, C, _, z;
|
|
11234
11234
|
return [
|
|
11235
11235
|
l("div", ac, [
|
|
11236
11236
|
l("span", ic, h((w = a.activeTropicals) == null ? void 0 : w.name), 1),
|
|
11237
|
-
(
|
|
11237
|
+
(k = (P = a.activeTropicals) == null ? void 0 : P.history) != null && k.level ? (y(), S("span", rc, ", " + h((b = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : b.level), 1)) : O("", !0)
|
|
11238
11238
|
]),
|
|
11239
11239
|
d(s, {
|
|
11240
11240
|
icon: "",
|
|
@@ -11251,7 +11251,7 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11251
11251
|
}),
|
|
11252
11252
|
l("div", lc, [
|
|
11253
11253
|
l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11254
|
-
l("span", null, h(r.computeTime(((I = (
|
|
11254
|
+
l("span", null, h(r.computeTime(((I = (M = a.activeTropicals) == null ? void 0 : M.history) == null ? void 0 : I.updated) || ((z = (_ = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((T) => !T.disabled)[0]) == null ? void 0 : z.date))), 1)
|
|
11255
11255
|
])
|
|
11256
11256
|
];
|
|
11257
11257
|
}),
|
|
@@ -11260,17 +11260,17 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11260
11260
|
d(g),
|
|
11261
11261
|
d(n, { class: "text-body-1" }, {
|
|
11262
11262
|
default: u(() => {
|
|
11263
|
-
var w, P,
|
|
11263
|
+
var w, P, k, v, b, M, I, C, _;
|
|
11264
11264
|
return [
|
|
11265
11265
|
l("div", nc, [
|
|
11266
11266
|
l("div", cc, [
|
|
11267
11267
|
l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11268
11268
|
l("span", null, h(((P = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
|
|
11269
|
-
l("span", null, ", BF " + h(r.computeBF(((
|
|
11269
|
+
l("span", null, ", BF " + h(r.computeBF(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.kts) || "-")), 1)
|
|
11270
11270
|
]),
|
|
11271
11271
|
l("div", dc, [
|
|
11272
11272
|
l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
|
|
11273
|
-
l("span", null, h(((
|
|
11273
|
+
l("span", null, h(((M = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : M.pressure) || "-") + " hPa", 1)
|
|
11274
11274
|
])
|
|
11275
11275
|
]),
|
|
11276
11276
|
l("div", pc, [
|
|
@@ -11286,16 +11286,16 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11286
11286
|
l("div", bc, [
|
|
11287
11287
|
l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11288
11288
|
l("div", xc, [
|
|
11289
|
-
(y(!0), S(be, null, we((
|
|
11289
|
+
(y(!0), S(be, null, we((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (z, T) => (y(), D(s, {
|
|
11290
11290
|
key: T,
|
|
11291
11291
|
density: "compact",
|
|
11292
|
-
variant:
|
|
11293
|
-
color:
|
|
11294
|
-
class: We(["model text-none text-body-1",
|
|
11295
|
-
onClick: (
|
|
11292
|
+
variant: z.disabled ? "outlined" : "flat",
|
|
11293
|
+
color: z.disabled ? "" : "primary",
|
|
11294
|
+
class: We(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
|
|
11295
|
+
onClick: (L) => r.handleForecastToggle(z)
|
|
11296
11296
|
}, {
|
|
11297
11297
|
default: u(() => [
|
|
11298
|
-
N(h(
|
|
11298
|
+
N(h(z.model), 1)
|
|
11299
11299
|
]),
|
|
11300
11300
|
_: 2
|
|
11301
11301
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11357,14 +11357,14 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11357
11357
|
_: 1
|
|
11358
11358
|
}),
|
|
11359
11359
|
l("div", _c, [
|
|
11360
|
-
|
|
11360
|
+
He(d(f, {
|
|
11361
11361
|
width: "400",
|
|
11362
11362
|
elevation: "16"
|
|
11363
11363
|
}, {
|
|
11364
11364
|
default: u(() => [
|
|
11365
11365
|
d(n, null, {
|
|
11366
11366
|
default: u(() => [
|
|
11367
|
-
|
|
11367
|
+
He(l("div", kc, e[7] || (e[7] = [
|
|
11368
11368
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11369
11369
|
l("div", { class: "icon td" }),
|
|
11370
11370
|
l("div", { class: "label" }, "TD")
|
|
@@ -11390,9 +11390,9 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11390
11390
|
l("div", { class: "label" }, "Super TY")
|
|
11391
11391
|
], -1)
|
|
11392
11392
|
]), 512), [
|
|
11393
|
-
[
|
|
11393
|
+
[Ue, a.showLegend]
|
|
11394
11394
|
]),
|
|
11395
|
-
|
|
11395
|
+
He(l("div", zc, e[8] || (e[8] = [
|
|
11396
11396
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11397
11397
|
l("div", { class: "icon history" }),
|
|
11398
11398
|
l("div", { class: "label" }, "History")
|
|
@@ -11410,7 +11410,7 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11410
11410
|
l("div", { class: "label" }, "50kts Radii")
|
|
11411
11411
|
], -1)
|
|
11412
11412
|
]), 512), [
|
|
11413
|
-
[
|
|
11413
|
+
[Ue, a.showLegend]
|
|
11414
11414
|
])
|
|
11415
11415
|
]),
|
|
11416
11416
|
_: 1
|
|
@@ -11418,11 +11418,11 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11418
11418
|
]),
|
|
11419
11419
|
_: 1
|
|
11420
11420
|
}, 512), [
|
|
11421
|
-
[
|
|
11421
|
+
[Ue, a.showLegend]
|
|
11422
11422
|
])
|
|
11423
11423
|
])
|
|
11424
11424
|
], 512), [
|
|
11425
|
-
[
|
|
11425
|
+
[Ue, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
|
|
11426
11426
|
])
|
|
11427
11427
|
]);
|
|
11428
11428
|
}
|
|
@@ -11471,7 +11471,7 @@ const Pc = {
|
|
|
11471
11471
|
},
|
|
11472
11472
|
computed: {
|
|
11473
11473
|
currentYear() {
|
|
11474
|
-
return
|
|
11474
|
+
return A(this.currentTimestamp).format("YYYY");
|
|
11475
11475
|
},
|
|
11476
11476
|
hourOptions() {
|
|
11477
11477
|
const t = [];
|
|
@@ -11480,11 +11480,11 @@ const Pc = {
|
|
|
11480
11480
|
return t.filter((e, o) => (o - this.timeZone) % this.intervalHour === 0);
|
|
11481
11481
|
},
|
|
11482
11482
|
timeZoneNames() {
|
|
11483
|
-
return
|
|
11483
|
+
return A.tz.names();
|
|
11484
11484
|
},
|
|
11485
11485
|
timeZoneName() {
|
|
11486
11486
|
var t;
|
|
11487
|
-
return (t = this.timeZoneNames.filter((e) =>
|
|
11487
|
+
return (t = this.timeZoneNames.filter((e) => A.tz(A(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
|
|
11488
11488
|
},
|
|
11489
11489
|
utcTimeZoneName() {
|
|
11490
11490
|
return "Africa/Abidjan";
|
|
@@ -11506,7 +11506,7 @@ const Pc = {
|
|
|
11506
11506
|
},
|
|
11507
11507
|
currentTimestamp: {
|
|
11508
11508
|
handler() {
|
|
11509
|
-
this.currentDateTimeZ =
|
|
11509
|
+
this.currentDateTimeZ = A(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${A.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
11510
11510
|
},
|
|
11511
11511
|
immediate: !0
|
|
11512
11512
|
},
|
|
@@ -11518,7 +11518,7 @@ const Pc = {
|
|
|
11518
11518
|
},
|
|
11519
11519
|
mounted() {
|
|
11520
11520
|
this.handleReset(), this.timer = setInterval(() => {
|
|
11521
|
-
this.currentRealTime = `${
|
|
11521
|
+
this.currentRealTime = `${A.tz(A().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
11522
11522
|
}, 100);
|
|
11523
11523
|
},
|
|
11524
11524
|
unmounted() {
|
|
@@ -11530,41 +11530,41 @@ const Pc = {
|
|
|
11530
11530
|
},
|
|
11531
11531
|
handleResetDateTime(t) {
|
|
11532
11532
|
var a;
|
|
11533
|
-
const e =
|
|
11534
|
-
this.currentTimestamp = ((a =
|
|
11535
|
-
const i =
|
|
11536
|
-
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${
|
|
11533
|
+
const e = A(t).utc().date(), o = Math.ceil(A(t).utc().hour() / 3) * 3;
|
|
11534
|
+
this.currentTimestamp = ((a = A(t)) == null ? void 0 : a.utc().set({ date: e, hour: o, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
|
|
11535
|
+
const i = A.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
11536
|
+
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${A.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${A.tz(A().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
11537
11537
|
},
|
|
11538
11538
|
handleResetDateRange() {
|
|
11539
11539
|
var a, r, s;
|
|
11540
11540
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
11541
11541
|
return;
|
|
11542
|
-
const t =
|
|
11542
|
+
const t = A().utc().date(), e = Math.ceil(A().utc().hour() / 3) * 3, o = ((a = A()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = A.tz(o, this.timeZoneName).clone();
|
|
11543
11543
|
this.dateRange = [
|
|
11544
11544
|
i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"),
|
|
11545
11545
|
i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD")
|
|
11546
11546
|
], this.timestampRange = [
|
|
11547
|
-
((r =
|
|
11548
|
-
((s =
|
|
11547
|
+
((r = A()) == null ? void 0 : r.utc().set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3,
|
|
11548
|
+
((s = A()) == null ? void 0 : s.utc().set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3
|
|
11549
11549
|
], this.$emit("timestampRange", this.timestampRange);
|
|
11550
11550
|
},
|
|
11551
11551
|
handleOpenDatePicker() {
|
|
11552
11552
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
11553
11553
|
},
|
|
11554
11554
|
handleUpdateMonth(t) {
|
|
11555
|
-
const e = t ||
|
|
11555
|
+
const e = t || A.tz(this.currentTimestamp, this.timeZoneName).clone().month(), o = this.locale === "en" ? A.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : A.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
|
|
11556
11556
|
this.$nextTick(() => {
|
|
11557
11557
|
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
11558
11558
|
i.innerText = o;
|
|
11559
11559
|
});
|
|
11560
11560
|
},
|
|
11561
11561
|
handleConfirmDate() {
|
|
11562
|
-
const t =
|
|
11562
|
+
const t = A(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, o = `${t} ${e}`, i = A.tz(o, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
|
|
11563
11563
|
this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
|
|
11564
11564
|
},
|
|
11565
11565
|
handleCancelDate() {
|
|
11566
11566
|
this.showDatePicker = !1;
|
|
11567
|
-
const t =
|
|
11567
|
+
const t = A.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
11568
11568
|
this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
|
|
11569
11569
|
}
|
|
11570
11570
|
}
|
|
@@ -11579,7 +11579,7 @@ const Pc = {
|
|
|
11579
11579
|
style: { height: "56px" }
|
|
11580
11580
|
};
|
|
11581
11581
|
function Mc(t, e, o, i, a, r) {
|
|
11582
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), P = x("VCardActions"),
|
|
11582
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), P = x("VCardActions"), k = x("VCard");
|
|
11583
11583
|
return y(), S("div", Cc, [
|
|
11584
11584
|
d(s, {
|
|
11585
11585
|
text: "",
|
|
@@ -11592,7 +11592,7 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11592
11592
|
]),
|
|
11593
11593
|
_: 1
|
|
11594
11594
|
}, 8, ["onClick"]),
|
|
11595
|
-
a.showDatePicker ? (y(), D(
|
|
11595
|
+
a.showDatePicker ? (y(), D(k, {
|
|
11596
11596
|
key: 0,
|
|
11597
11597
|
class: "card-box d-flex flex-column"
|
|
11598
11598
|
}, {
|
|
@@ -11602,7 +11602,7 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11602
11602
|
l("div", Tc, [
|
|
11603
11603
|
d(c, {
|
|
11604
11604
|
modelValue: a.currentDate,
|
|
11605
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11605
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.currentDate = v),
|
|
11606
11606
|
min: a.dateRange[0],
|
|
11607
11607
|
max: a.dateRange[1],
|
|
11608
11608
|
"mode-icon": () => r.currentYear,
|
|
@@ -11622,11 +11622,11 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11622
11622
|
l("div", Ic, h(a.currentTime), 1),
|
|
11623
11623
|
d(f, { class: "pa-0 flex-1-1-0" }, {
|
|
11624
11624
|
default: u(() => [
|
|
11625
|
-
(y(!0), S(be, null, we(r.hourOptions, (
|
|
11625
|
+
(y(!0), S(be, null, we(r.hourOptions, (v, b) => (y(), D(p, {
|
|
11626
11626
|
key: b,
|
|
11627
|
-
value:
|
|
11627
|
+
value: v,
|
|
11628
11628
|
color: "primary",
|
|
11629
|
-
active: a.currentTime ===
|
|
11629
|
+
active: a.currentTime === v,
|
|
11630
11630
|
rounded: "",
|
|
11631
11631
|
height: "26",
|
|
11632
11632
|
"min-height": "26"
|
|
@@ -11634,10 +11634,10 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11634
11634
|
default: u(() => [
|
|
11635
11635
|
d(g, {
|
|
11636
11636
|
class: "text-body-2 text-center",
|
|
11637
|
-
onClick: (
|
|
11637
|
+
onClick: (M) => a.currentTime = v
|
|
11638
11638
|
}, {
|
|
11639
11639
|
default: u(() => [
|
|
11640
|
-
N(h(
|
|
11640
|
+
N(h(v), 1)
|
|
11641
11641
|
]),
|
|
11642
11642
|
_: 2
|
|
11643
11643
|
}, 1032, ["onClick"])
|
|
@@ -11776,7 +11776,6 @@ const Ac = {
|
|
|
11776
11776
|
(t) => t === void 0 || t === null && t === "" || parseInt(t) >= 0 && parseInt(t) <= 59 || "0 ~ 59"
|
|
11777
11777
|
]
|
|
11778
11778
|
},
|
|
11779
|
-
point: {},
|
|
11780
11779
|
meteoData: void 0,
|
|
11781
11780
|
currentHourData: {},
|
|
11782
11781
|
positionOffset: void 0,
|
|
@@ -11787,30 +11786,30 @@ const Ac = {
|
|
|
11787
11786
|
},
|
|
11788
11787
|
computed: {
|
|
11789
11788
|
timeZoneNames() {
|
|
11790
|
-
return
|
|
11789
|
+
return A.tz.names();
|
|
11791
11790
|
},
|
|
11792
11791
|
timeZoneName() {
|
|
11793
11792
|
var t;
|
|
11794
|
-
return (t = this.timeZoneNames.filter((e) =>
|
|
11793
|
+
return (t = this.timeZoneNames.filter((e) => A.tz(A(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
|
|
11795
11794
|
},
|
|
11796
11795
|
computedTzTime() {
|
|
11797
|
-
return (t) =>
|
|
11796
|
+
return (t) => A.tz(A(t), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
|
|
11798
11797
|
},
|
|
11799
11798
|
computedLocalTime() {
|
|
11800
11799
|
return (t) => {
|
|
11801
11800
|
var i, a;
|
|
11802
|
-
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, o = (a = this.timeZoneNames.filter((r) =>
|
|
11803
|
-
return t ?
|
|
11801
|
+
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, o = (a = this.timeZoneNames.filter((r) => A.tz(A(), r).utcOffset() === e * 60)) == null ? void 0 : a[0];
|
|
11802
|
+
return t ? A.tz(A(t), o).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
|
|
11804
11803
|
};
|
|
11805
11804
|
},
|
|
11806
11805
|
computeLat() {
|
|
11807
11806
|
return function(t, e = 4) {
|
|
11808
|
-
return G.lat2pretty(t, e).pretty;
|
|
11807
|
+
return isNaN(t) ? "-" : G.lat2pretty(t, e).pretty;
|
|
11809
11808
|
};
|
|
11810
11809
|
},
|
|
11811
11810
|
computeLng() {
|
|
11812
11811
|
return function(t, e = 4) {
|
|
11813
|
-
return G.lng2pretty(t, e).pretty;
|
|
11812
|
+
return isNaN(t) ? "-" : G.lng2pretty(t, e).pretty;
|
|
11814
11813
|
};
|
|
11815
11814
|
},
|
|
11816
11815
|
roundPrecision() {
|
|
@@ -11831,13 +11830,13 @@ const Ac = {
|
|
|
11831
11830
|
},
|
|
11832
11831
|
toggle: {
|
|
11833
11832
|
handler() {
|
|
11834
|
-
this.showForm =
|
|
11833
|
+
this.toggle ? this.showForm = !0 : (this.handleCloseForm(), this.handleCloseMeteo()), this.map && this.handleBind();
|
|
11835
11834
|
},
|
|
11836
11835
|
immediate: !0
|
|
11837
11836
|
},
|
|
11838
11837
|
map: {
|
|
11839
11838
|
handler() {
|
|
11840
|
-
this.map && this.toggle && this.handleBind();
|
|
11839
|
+
this.toggle = !1, this.map && this.toggle && this.handleBind();
|
|
11841
11840
|
}
|
|
11842
11841
|
},
|
|
11843
11842
|
showForm: {
|
|
@@ -11864,8 +11863,6 @@ const Ac = {
|
|
|
11864
11863
|
}
|
|
11865
11864
|
}
|
|
11866
11865
|
},
|
|
11867
|
-
mounted() {
|
|
11868
|
-
},
|
|
11869
11866
|
methods: {
|
|
11870
11867
|
handleMenuToggle() {
|
|
11871
11868
|
this.isLogin ? this.toggle = !this.toggle : this.$emit("login");
|
|
@@ -11875,12 +11872,9 @@ const Ac = {
|
|
|
11875
11872
|
this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
|
|
11876
11873
|
var o;
|
|
11877
11874
|
if (e != null && e.valid) {
|
|
11878
|
-
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1)
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
};
|
|
11882
|
-
const i = M();
|
|
11883
|
-
((o = M(this.realTime)) == null ? void 0 : o.diff(i, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
|
|
11875
|
+
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1);
|
|
11876
|
+
const i = A();
|
|
11877
|
+
((o = A(this.realTime)) == null ? void 0 : o.diff(i, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
|
|
11884
11878
|
}
|
|
11885
11879
|
});
|
|
11886
11880
|
},
|
|
@@ -11900,15 +11894,15 @@ const Ac = {
|
|
|
11900
11894
|
};
|
|
11901
11895
|
},
|
|
11902
11896
|
handleCloseForm() {
|
|
11903
|
-
this.showForm = !1, this.cancelForm(),
|
|
11897
|
+
this.showForm = !1, this.cancelForm(), this.toggle = !1;
|
|
11904
11898
|
},
|
|
11905
11899
|
async fetchMeteoData(t) {
|
|
11906
11900
|
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11907
|
-
const { weatherModels: e, marineModels: o } =
|
|
11901
|
+
const { weatherModels: e, marineModels: o } = ao.autoPickMeteoModel(t.forecastModel);
|
|
11908
11902
|
let i = {
|
|
11909
11903
|
lat: t.lat,
|
|
11910
11904
|
lng: t.lng,
|
|
11911
|
-
datetime:
|
|
11905
|
+
datetime: A(t.dateTime).utc().format(),
|
|
11912
11906
|
forecastDays: t.day ?? 7,
|
|
11913
11907
|
weatherModels: e,
|
|
11914
11908
|
marineModels: o
|
|
@@ -11917,14 +11911,14 @@ const Ac = {
|
|
|
11917
11911
|
Authorization: this.token || this.defaultMeteoToken
|
|
11918
11912
|
}
|
|
11919
11913
|
});
|
|
11920
|
-
(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.loading = !1;
|
|
11914
|
+
(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;
|
|
11921
11915
|
},
|
|
11922
11916
|
async fetchHistoryData(t) {
|
|
11923
11917
|
this.loading = !0, this.showMeteo = !0, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11924
|
-
const { weatherModels: e, marineModels: o } =
|
|
11918
|
+
const { weatherModels: e, marineModels: o } = ao.autoPickMeteoModel(t.forecastModel), i = {
|
|
11925
11919
|
lat: t.lat,
|
|
11926
11920
|
lng: t.lng,
|
|
11927
|
-
datetime:
|
|
11921
|
+
datetime: A(t.dateTime).utc().format(),
|
|
11928
11922
|
forecastDays: 3,
|
|
11929
11923
|
pastDays: 1,
|
|
11930
11924
|
weatherModels: e,
|
|
@@ -11934,13 +11928,13 @@ const Ac = {
|
|
|
11934
11928
|
Authorization: this.token || this.defaultMeteoToken
|
|
11935
11929
|
}
|
|
11936
11930
|
});
|
|
11937
|
-
(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.loading = !1;
|
|
11931
|
+
(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;
|
|
11938
11932
|
},
|
|
11939
11933
|
initTableData(t) {
|
|
11940
|
-
var o, i, a, r, s, c, n, g, p, f, w, P,
|
|
11934
|
+
var o, i, a, r, s, c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
|
|
11941
11935
|
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;
|
|
11942
|
-
const e = ((s =
|
|
11943
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((
|
|
11936
|
+
const e = ((s = ao.pickHourly(t, A(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11937
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.kts, 1) ?? "-", this.currentHourData.windDir = ((b = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : b.direction) ?? "-", this.currentHourData.windLevel = this.roundPrecision((I = (M = e == null ? void 0 : e.weather) == null ? void 0 : M.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11944
11938
|
},
|
|
11945
11939
|
handleBind() {
|
|
11946
11940
|
var t, e;
|
|
@@ -11957,41 +11951,50 @@ const Ac = {
|
|
|
11957
11951
|
},
|
|
11958
11952
|
handleGetPosition(t) {
|
|
11959
11953
|
var e;
|
|
11960
|
-
this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number(G.lat2pretty(t.lat).degree), this.form.latMinute = Number(G.lat2pretty(t.lat).minute), this.form.latDirection = G.lat2pretty(t.lat).direction, this.form.lngDegree = Number(G.lng2pretty(t.lng).degree), this.form.lngMinute = Number(G.lng2pretty(t.lng).minute), this.form.lngDirection = G.lng2pretty(t.lng).direction
|
|
11961
|
-
lat: t.lat,
|
|
11962
|
-
lng: t.lng
|
|
11963
|
-
};
|
|
11954
|
+
this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number(G.lat2pretty(t.lat).degree), this.form.latMinute = Number(G.lat2pretty(t.lat).minute), this.form.latDirection = G.lat2pretty(t.lat).direction, this.form.lngDegree = Number(G.lng2pretty(t.lng).degree), this.form.lngMinute = Number(G.lng2pretty(t.lng).minute), this.form.lngDirection = G.lng2pretty(t.lng).direction;
|
|
11964
11955
|
},
|
|
11965
11956
|
handleDrawInfoMarker(t) {
|
|
11966
11957
|
t && (this.map.flyTo({
|
|
11967
11958
|
center: t,
|
|
11968
11959
|
duration: 300
|
|
11969
11960
|
}), this.$nextTick(() => {
|
|
11970
|
-
var
|
|
11971
|
-
(
|
|
11972
|
-
const e = (
|
|
11973
|
-
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (
|
|
11974
|
-
const o = (
|
|
11961
|
+
var c, n, g, p, f, w, P, k;
|
|
11962
|
+
(c = this.positionMarker) == null || c.remove();
|
|
11963
|
+
const e = (n = document.getElementById("idm-position-icon")) == null ? void 0 : n.cloneNode(!0);
|
|
11964
|
+
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (g = this.meteoInfoMarker) == null || g.remove();
|
|
11965
|
+
const o = (p = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : p.cloneNode(!0), i = (f = o == null ? void 0 : o.children[1]) == null ? void 0 : f.children[1], a = (w = o == null ? void 0 : o.children[5]) == null ? void 0 : w.children[0], r = (P = o == null ? void 0 : o.children[5]) == null ? void 0 : P.children[0], s = (k = o == null ? void 0 : o.children[5]) == null ? void 0 : k.children[1];
|
|
11975
11966
|
i && (i.onclick = () => {
|
|
11976
11967
|
this.handleCloseMeteo();
|
|
11968
|
+
}), a && !this.followList.some((v) => {
|
|
11969
|
+
var b, M;
|
|
11970
|
+
return ((b = v == null ? void 0 : v.coordinate) == null ? void 0 : b.lng) === this.form.lng && ((M = v == null ? void 0 : v.coordinate) == null ? void 0 : M.lat) === this.form.lat;
|
|
11971
|
+
}) && (a.onclick = () => {
|
|
11972
|
+
this.handleFollow();
|
|
11973
|
+
}), r && this.followList.some((v) => {
|
|
11974
|
+
var b, M;
|
|
11975
|
+
return ((b = v == null ? void 0 : v.coordinate) == null ? void 0 : b.lng) === this.form.lng && ((M = v == null ? void 0 : v.coordinate) == null ? void 0 : M.lat) === this.form.lat;
|
|
11976
|
+
}) && (r.onclick = () => {
|
|
11977
|
+
this.handleCancelFollow();
|
|
11978
|
+
}), s && (s.onclick = () => {
|
|
11979
|
+
this.handleMeteoMore();
|
|
11977
11980
|
}), this.meteoInfoMarker = new ve.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11978
11981
|
}));
|
|
11979
11982
|
},
|
|
11980
11983
|
handleMeteoMore() {
|
|
11981
|
-
this.
|
|
11984
|
+
this.form.forecastModel = this.forecastModel, this.$emit("meteoMore", this.form);
|
|
11982
11985
|
},
|
|
11983
11986
|
handleCloseMeteo() {
|
|
11984
11987
|
var t, e;
|
|
11985
11988
|
this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
|
|
11986
11989
|
},
|
|
11987
11990
|
handleFollow() {
|
|
11988
|
-
this.$emit("follow", this.
|
|
11991
|
+
this.$emit("follow", this.form);
|
|
11989
11992
|
},
|
|
11990
11993
|
handleCancelFollow() {
|
|
11991
11994
|
var e;
|
|
11992
11995
|
const t = (e = this.followList.find((o) => {
|
|
11993
11996
|
var i, a;
|
|
11994
|
-
return ((i = o.coordinate) == null ? void 0 : i.lng) === this.
|
|
11997
|
+
return ((i = o.coordinate) == null ? void 0 : i.lng) === this.form.lng && ((a = o.coordinate) == null ? void 0 : a.lat) === this.form.lat;
|
|
11995
11998
|
})) == null ? void 0 : e.id;
|
|
11996
11999
|
this.$emit("cancelFollow", t);
|
|
11997
12000
|
}
|
|
@@ -12014,7 +12017,7 @@ const Ac = {
|
|
|
12014
12017
|
"aria-hidden": "true"
|
|
12015
12018
|
}, Qc = ["xlink:href"];
|
|
12016
12019
|
function Jc(t, e, o, i, a, r) {
|
|
12017
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"),
|
|
12020
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"), k = x("VBtnToggle"), v = x("VCardActions"), b = x("VForm"), M = x("VCardText"), I = x("VCard"), C = x("VIcon");
|
|
12018
12021
|
return y(), S("div", Dc, [
|
|
12019
12022
|
l("div", {
|
|
12020
12023
|
class: "menu-bar-box transition pa-1",
|
|
@@ -12024,8 +12027,8 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12024
12027
|
text: t.$t("spot.spotsMeteo"),
|
|
12025
12028
|
location: "left"
|
|
12026
12029
|
}, {
|
|
12027
|
-
activator: u(({ props:
|
|
12028
|
-
d(s, B(
|
|
12030
|
+
activator: u(({ props: _ }) => [
|
|
12031
|
+
d(s, B(_, {
|
|
12029
12032
|
"min-width": "32",
|
|
12030
12033
|
width: "32",
|
|
12031
12034
|
height: "32",
|
|
@@ -12070,13 +12073,13 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12070
12073
|
_: 1
|
|
12071
12074
|
}),
|
|
12072
12075
|
d(g),
|
|
12073
|
-
d(
|
|
12076
|
+
d(M, { class: "text-body-1 py-1" }, {
|
|
12074
12077
|
default: u(() => [
|
|
12075
12078
|
d(b, {
|
|
12076
12079
|
ref: "spotForm",
|
|
12077
12080
|
autocomplete: "off",
|
|
12078
12081
|
class: "form-box",
|
|
12079
|
-
onSubmit:
|
|
12082
|
+
onSubmit: qe(r.submitForm, ["prevent"])
|
|
12080
12083
|
}, {
|
|
12081
12084
|
default: u(() => [
|
|
12082
12085
|
l("div", Bc, [
|
|
@@ -12096,7 +12099,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12096
12099
|
default: u(() => [
|
|
12097
12100
|
d(p, {
|
|
12098
12101
|
modelValue: a.form.lngDegree,
|
|
12099
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
12102
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
12100
12103
|
rules: a.formRules.lngDegree,
|
|
12101
12104
|
density: "compact",
|
|
12102
12105
|
variant: "outlined",
|
|
@@ -12115,7 +12118,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12115
12118
|
default: u(() => [
|
|
12116
12119
|
d(p, {
|
|
12117
12120
|
modelValue: a.form.lngMinute,
|
|
12118
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12121
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
12119
12122
|
rules: a.formRules.lngMinute,
|
|
12120
12123
|
label: "",
|
|
12121
12124
|
density: "compact",
|
|
@@ -12141,7 +12144,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12141
12144
|
height: "32",
|
|
12142
12145
|
class: "",
|
|
12143
12146
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12144
|
-
onClick: e[2] || (e[2] = (
|
|
12147
|
+
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
12145
12148
|
}, {
|
|
12146
12149
|
default: u(() => [
|
|
12147
12150
|
N(h(a.form.lngDirection), 1)
|
|
@@ -12171,7 +12174,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12171
12174
|
default: u(() => [
|
|
12172
12175
|
d(p, {
|
|
12173
12176
|
modelValue: a.form.latDegree,
|
|
12174
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
12177
|
+
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
12175
12178
|
rules: a.formRules.latDegree,
|
|
12176
12179
|
label: "",
|
|
12177
12180
|
density: "compact",
|
|
@@ -12193,7 +12196,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12193
12196
|
default: u(() => [
|
|
12194
12197
|
d(p, {
|
|
12195
12198
|
modelValue: a.form.latMinute,
|
|
12196
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
12199
|
+
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
12197
12200
|
rules: a.formRules.latMinute,
|
|
12198
12201
|
label: "",
|
|
12199
12202
|
density: "compact",
|
|
@@ -12219,7 +12222,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12219
12222
|
height: "32",
|
|
12220
12223
|
class: "text-body-1",
|
|
12221
12224
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12222
|
-
onClick: e[5] || (e[5] = (
|
|
12225
|
+
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
12223
12226
|
}, {
|
|
12224
12227
|
default: u(() => [
|
|
12225
12228
|
N(h(a.form.latDirection), 1)
|
|
@@ -12251,7 +12254,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12251
12254
|
"date-time": a.form.dateTime,
|
|
12252
12255
|
"time-zone": o.timeZone
|
|
12253
12256
|
}, t.$attrs, {
|
|
12254
|
-
onDateTime: e[6] || (e[6] = (
|
|
12257
|
+
onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
|
|
12255
12258
|
}), null, 16, ["date-time", "time-zone"])
|
|
12256
12259
|
]),
|
|
12257
12260
|
_: 1
|
|
@@ -12274,9 +12277,9 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12274
12277
|
class: "pa-0"
|
|
12275
12278
|
}, {
|
|
12276
12279
|
default: u(() => [
|
|
12277
|
-
d(
|
|
12280
|
+
d(k, {
|
|
12278
12281
|
modelValue: a.form.forecastModel,
|
|
12279
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
12282
|
+
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
12280
12283
|
class: "w-100",
|
|
12281
12284
|
rounded: "",
|
|
12282
12285
|
height: "30",
|
|
@@ -12322,7 +12325,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12322
12325
|
_: 1
|
|
12323
12326
|
}),
|
|
12324
12327
|
d(g),
|
|
12325
|
-
d(
|
|
12328
|
+
d(v, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12326
12329
|
default: u(() => [
|
|
12327
12330
|
d(s, {
|
|
12328
12331
|
size: "small",
|
|
@@ -12361,7 +12364,8 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12361
12364
|
]),
|
|
12362
12365
|
_: 1
|
|
12363
12366
|
}, 8, ["style"])) : O("", !0),
|
|
12364
|
-
|
|
12367
|
+
a.showMeteo ? (y(), D(I, {
|
|
12368
|
+
key: 1,
|
|
12365
12369
|
id: "idm-gl4-spot-meteo",
|
|
12366
12370
|
class: "spot-meteo",
|
|
12367
12371
|
style: { width: "490px", "z-index": "9" }
|
|
@@ -12369,18 +12373,18 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12369
12373
|
default: u(() => [
|
|
12370
12374
|
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12371
12375
|
default: u(() => {
|
|
12372
|
-
var
|
|
12376
|
+
var _, z, T, L;
|
|
12373
12377
|
return [
|
|
12374
12378
|
l("div", Yc, [
|
|
12375
12379
|
e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
12376
|
-
l("div", Kc, h(r.computeLat(((
|
|
12380
|
+
l("div", Kc, h(r.computeLat(((_ = a.form) == null ? void 0 : _.lat) || ((z = a.currentHourData) == null ? void 0 : z.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((L = a.currentHourData) == null ? void 0 : L.lng))), 1)
|
|
12377
12381
|
]),
|
|
12378
12382
|
d(s, {
|
|
12379
12383
|
class: "mr-n2",
|
|
12380
12384
|
density: "comfortable",
|
|
12381
12385
|
icon: "",
|
|
12382
12386
|
variant: "plain",
|
|
12383
|
-
onClick:
|
|
12387
|
+
onClick: qe(r.handleCloseMeteo, ["stop"])
|
|
12384
12388
|
}, {
|
|
12385
12389
|
default: u(() => e[17] || (e[17] = [
|
|
12386
12390
|
l("i", {
|
|
@@ -12396,7 +12400,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12396
12400
|
_: 1
|
|
12397
12401
|
}),
|
|
12398
12402
|
d(g),
|
|
12399
|
-
d(
|
|
12403
|
+
d(M, { class: "text-body-1 ml-n8" }, {
|
|
12400
12404
|
default: u(() => [
|
|
12401
12405
|
d(w, null, {
|
|
12402
12406
|
default: u(() => [
|
|
@@ -12414,9 +12418,9 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12414
12418
|
class: "pa-2 px-0"
|
|
12415
12419
|
}, {
|
|
12416
12420
|
default: u(() => {
|
|
12417
|
-
var
|
|
12421
|
+
var _;
|
|
12418
12422
|
return [
|
|
12419
|
-
N(h(r.computedTzTime((
|
|
12423
|
+
N(h(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
12420
12424
|
];
|
|
12421
12425
|
}),
|
|
12422
12426
|
_: 1
|
|
@@ -12441,9 +12445,9 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12441
12445
|
class: "pa-2 px-0"
|
|
12442
12446
|
}, {
|
|
12443
12447
|
default: u(() => {
|
|
12444
|
-
var
|
|
12448
|
+
var _;
|
|
12445
12449
|
return [
|
|
12446
|
-
N(h(r.computedLocalTime((
|
|
12450
|
+
N(h(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
12447
12451
|
];
|
|
12448
12452
|
}),
|
|
12449
12453
|
_: 1
|
|
@@ -12467,7 +12471,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12467
12471
|
class: "pa-2 px-0 text-left"
|
|
12468
12472
|
}, {
|
|
12469
12473
|
default: u(() => [
|
|
12470
|
-
N(h(a.currentHourData.windDir) + " / " + h(a.currentHourData.windSpeed) + "kts / BF" + h(a.currentHourData.windLevel), 1)
|
|
12474
|
+
N(h(a.currentHourData.windDir ?? "-") + " / " + h(a.currentHourData.windSpeed ?? "-") + "kts / BF" + h(a.currentHourData.windLevel ?? "-"), 1)
|
|
12471
12475
|
]),
|
|
12472
12476
|
_: 1
|
|
12473
12477
|
}),
|
|
@@ -12485,7 +12489,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12485
12489
|
class: "pa-2 px-0 text-left"
|
|
12486
12490
|
}, {
|
|
12487
12491
|
default: u(() => [
|
|
12488
|
-
N(h(a.currentHourData.sigwaveDir) + " / " + h(a.currentHourData.sigwaveHeight) + "m / " + h(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
12492
|
+
N(h(a.currentHourData.sigwaveDir ?? "-") + " / " + h(a.currentHourData.sigwaveHeight ?? "-") + "m / " + h(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
|
|
12489
12493
|
]),
|
|
12490
12494
|
_: 1
|
|
12491
12495
|
})
|
|
@@ -12508,7 +12512,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12508
12512
|
class: "pa-2 px-0 text-left"
|
|
12509
12513
|
}, {
|
|
12510
12514
|
default: u(() => [
|
|
12511
|
-
N(h(a.currentHourData.windwaveDir) + " / " + h(a.currentHourData.windwaveHeight) + "m / " + h(a.currentHourData.windwavePeriod) + "s", 1)
|
|
12515
|
+
N(h(a.currentHourData.windwaveDir ?? "-") + " / " + h(a.currentHourData.windwaveHeight ?? "-") + "m / " + h(a.currentHourData.windwavePeriod ?? "-") + "s", 1)
|
|
12512
12516
|
]),
|
|
12513
12517
|
_: 1
|
|
12514
12518
|
}),
|
|
@@ -12526,7 +12530,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12526
12530
|
class: "pa-2 px-0 text-left"
|
|
12527
12531
|
}, {
|
|
12528
12532
|
default: u(() => [
|
|
12529
|
-
N(h(a.currentHourData.swellDir) + " / " + h(a.currentHourData.swellHeight) + "m / " + h(a.currentHourData.swellPeriod) + "s", 1)
|
|
12533
|
+
N(h(a.currentHourData.swellDir ?? "-") + " / " + h(a.currentHourData.swellHeight ?? "-") + "m / " + h(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
12530
12534
|
]),
|
|
12531
12535
|
_: 1
|
|
12532
12536
|
})
|
|
@@ -12549,7 +12553,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12549
12553
|
class: "pa-2 px-0 text-left"
|
|
12550
12554
|
}, {
|
|
12551
12555
|
default: u(() => [
|
|
12552
|
-
N(h(a.currentHourData.currentDir) + " / " + h(a.currentHourData.currentSpeed) + "kts", 1)
|
|
12556
|
+
N(h(a.currentHourData.currentDir ?? "-") + " / " + h(a.currentHourData.currentSpeed ?? "-") + "kts", 1)
|
|
12553
12557
|
]),
|
|
12554
12558
|
_: 1
|
|
12555
12559
|
}),
|
|
@@ -12567,7 +12571,7 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12567
12571
|
class: "pa-2 px-0 text-left"
|
|
12568
12572
|
}, {
|
|
12569
12573
|
default: u(() => [
|
|
12570
|
-
N(h(a.currentHourData.visibility) + " nm", 1)
|
|
12574
|
+
N(h(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
12571
12575
|
]),
|
|
12572
12576
|
_: 1
|
|
12573
12577
|
})
|
|
@@ -12578,19 +12582,20 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12578
12582
|
_: 1
|
|
12579
12583
|
}),
|
|
12580
12584
|
d(g),
|
|
12581
|
-
d(
|
|
12585
|
+
d(v, { class: "d-flex justify-space-between align-center" }, {
|
|
12582
12586
|
default: u(() => [
|
|
12583
|
-
o.followList.some((
|
|
12584
|
-
var
|
|
12585
|
-
return ((
|
|
12587
|
+
o.followList.some((_) => {
|
|
12588
|
+
var z, T;
|
|
12589
|
+
return ((z = _ == null ? void 0 : _.coordinate) == null ? void 0 : z.lng) === a.form.lng && ((T = _ == null ? void 0 : _.coordinate) == null ? void 0 : T.lat) === a.form.lat;
|
|
12586
12590
|
}) ? (y(), D(s, {
|
|
12587
12591
|
key: 0,
|
|
12588
12592
|
class: "text-none text-body-1",
|
|
12593
|
+
id: "idm-gl4-spot-meteo-follow",
|
|
12589
12594
|
variant: "text",
|
|
12590
12595
|
density: "compact",
|
|
12591
12596
|
height: "32",
|
|
12592
12597
|
"prepend-icon": "mdi-star",
|
|
12593
|
-
onClick: r.handleCancelFollow
|
|
12598
|
+
onClick: qe(r.handleCancelFollow, ["stop"])
|
|
12594
12599
|
}, {
|
|
12595
12600
|
prepend: u(() => [
|
|
12596
12601
|
d(C, { color: "warning" })
|
|
@@ -12601,12 +12606,13 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12601
12606
|
_: 1
|
|
12602
12607
|
}, 8, ["onClick"])) : (y(), D(s, {
|
|
12603
12608
|
key: 1,
|
|
12609
|
+
id: "idm-gl4-spot-meteo-unfollow",
|
|
12604
12610
|
class: "text-none text-body-1",
|
|
12605
12611
|
variant: "text",
|
|
12606
12612
|
density: "compact",
|
|
12607
12613
|
height: "32",
|
|
12608
12614
|
"prepend-icon": "mdi-star-outline",
|
|
12609
|
-
onClick: r.handleFollow
|
|
12615
|
+
onClick: qe(r.handleFollow, ["stop"])
|
|
12610
12616
|
}, {
|
|
12611
12617
|
default: u(() => [
|
|
12612
12618
|
N(h(t.$t("actions.follow")), 1)
|
|
@@ -12614,34 +12620,32 @@ function Jc(t, e, o, i, a, r) {
|
|
|
12614
12620
|
_: 1
|
|
12615
12621
|
}, 8, ["onClick"])),
|
|
12616
12622
|
d(s, {
|
|
12623
|
+
height: "32",
|
|
12617
12624
|
variant: "text",
|
|
12618
12625
|
density: "compact",
|
|
12619
12626
|
"append-icon": "mdi-chevron-right",
|
|
12620
12627
|
class: "text-none text-body-1",
|
|
12621
|
-
onClick: r.handleMeteoMore
|
|
12628
|
+
onClick: qe(r.handleMeteoMore, ["stop"])
|
|
12622
12629
|
}, {
|
|
12623
|
-
default: u(() =>
|
|
12624
|
-
N("
|
|
12625
|
-
])
|
|
12626
|
-
_: 1
|
|
12627
|
-
__: [19]
|
|
12630
|
+
default: u(() => [
|
|
12631
|
+
N(h(t.$t("spot.forecast")), 1)
|
|
12632
|
+
]),
|
|
12633
|
+
_: 1
|
|
12628
12634
|
}, 8, ["onClick"])
|
|
12629
12635
|
]),
|
|
12630
12636
|
_: 1
|
|
12631
12637
|
})
|
|
12632
12638
|
]),
|
|
12633
12639
|
_: 1
|
|
12634
|
-
},
|
|
12635
|
-
|
|
12636
|
-
]),
|
|
12637
|
-
Ne(l("div", Xc, [
|
|
12640
|
+
})) : O("", !0),
|
|
12641
|
+
He(l("div", Xc, [
|
|
12638
12642
|
(y(), S("svg", $c, [
|
|
12639
12643
|
l("use", {
|
|
12640
12644
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
12641
12645
|
}, null, 8, Qc)
|
|
12642
12646
|
]))
|
|
12643
12647
|
], 512), [
|
|
12644
|
-
[
|
|
12648
|
+
[Ue, a.showMeteo]
|
|
12645
12649
|
])
|
|
12646
12650
|
]);
|
|
12647
12651
|
}
|
|
@@ -12741,22 +12745,22 @@ const tm = {
|
|
|
12741
12745
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12742
12746
|
const w = this.geojson.filter((b) => b.id === e.split("-")[0])[0];
|
|
12743
12747
|
this.pointMarkers[w.id].filter((b) => {
|
|
12744
|
-
var
|
|
12745
|
-
return ((
|
|
12748
|
+
var M;
|
|
12749
|
+
return ((M = b._element) == null ? void 0 : M.id) === e;
|
|
12746
12750
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12747
|
-
let
|
|
12748
|
-
w.features.forEach((b,
|
|
12751
|
+
let k;
|
|
12752
|
+
w.features.forEach((b, M) => {
|
|
12749
12753
|
if (b.geometry.type === "Point" && b.properties.id === e.split("-")[1]) {
|
|
12750
|
-
|
|
12754
|
+
k = M;
|
|
12751
12755
|
return;
|
|
12752
12756
|
}
|
|
12753
12757
|
});
|
|
12754
|
-
const
|
|
12758
|
+
const v = w.features.filter((b) => b.geometry.type === "Point");
|
|
12755
12759
|
this.handleTmpPointUpdate(
|
|
12756
12760
|
w,
|
|
12757
|
-
|
|
12758
|
-
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties:
|
|
12759
|
-
|
|
12761
|
+
v[k - 1],
|
|
12762
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: v[k].properties },
|
|
12763
|
+
k === v.length - 1 ? void 0 : v[k + 1]
|
|
12760
12764
|
);
|
|
12761
12765
|
}
|
|
12762
12766
|
},
|
|
@@ -12764,13 +12768,13 @@ const tm = {
|
|
|
12764
12768
|
var o, i, a, r, s, c, n, g, p, f;
|
|
12765
12769
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12766
12770
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12767
|
-
const w = this.geojson.filter((
|
|
12768
|
-
this.pointMarkers[w.id].filter((
|
|
12771
|
+
const w = this.geojson.filter((v) => v.id === e.split("-")[0])[0];
|
|
12772
|
+
this.pointMarkers[w.id].filter((v) => {
|
|
12769
12773
|
var b;
|
|
12770
|
-
return ((b =
|
|
12774
|
+
return ((b = v._element) == null ? void 0 : b.id) === e;
|
|
12771
12775
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12772
|
-
const
|
|
12773
|
-
|
|
12776
|
+
const k = w.features.filter((v) => v.geometry.type === "Point" && v.properties.id === e.split("-")[1])[0];
|
|
12777
|
+
k.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((v) => v.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12774
12778
|
}
|
|
12775
12779
|
},
|
|
12776
12780
|
handleContextmenu(t) {
|
|
@@ -12818,14 +12822,14 @@ const tm = {
|
|
|
12818
12822
|
let o = 0;
|
|
12819
12823
|
const i = [];
|
|
12820
12824
|
for (let a = 1; a < e.length; a++) {
|
|
12821
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p =
|
|
12825
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
|
|
12822
12826
|
o = G.roundPrecision(o + p, 4);
|
|
12823
12827
|
let w;
|
|
12824
|
-
c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(
|
|
12825
|
-
const P = H.lineString(w.map((
|
|
12828
|
+
c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
|
|
12829
|
+
const P = H.lineString(w.map((v) => [v.lng, v.lat]));
|
|
12826
12830
|
P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
|
|
12827
|
-
const
|
|
12828
|
-
|
|
12831
|
+
const k = e[a];
|
|
12832
|
+
k.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), k.properties.sumLabel = k.properties.totalDist + " nm";
|
|
12829
12833
|
}
|
|
12830
12834
|
e.push(...i), t.total = o;
|
|
12831
12835
|
}
|
|
@@ -12836,17 +12840,17 @@ const tm = {
|
|
|
12836
12840
|
let r, s;
|
|
12837
12841
|
if (e) {
|
|
12838
12842
|
const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
|
|
12839
|
-
r =
|
|
12843
|
+
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12840
12844
|
let f;
|
|
12841
|
-
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(
|
|
12845
|
+
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12842
12846
|
const w = H.lineString(f.map((P) => [P.lng, P.lat]));
|
|
12843
12847
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12844
12848
|
}
|
|
12845
12849
|
if (i) {
|
|
12846
12850
|
const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12847
|
-
r =
|
|
12851
|
+
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12848
12852
|
let f;
|
|
12849
|
-
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(
|
|
12853
|
+
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12850
12854
|
const w = H.lineString(f.map((P) => [P.lng, P.lat]));
|
|
12851
12855
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12852
12856
|
}
|
|
@@ -12989,11 +12993,11 @@ const tm = {
|
|
|
12989
12993
|
}
|
|
12990
12994
|
},
|
|
12991
12995
|
handleClear(t, e = !0) {
|
|
12992
|
-
var s, c, n, g, p, f, w, P,
|
|
12996
|
+
var s, c, n, g, p, f, w, P, k, v;
|
|
12993
12997
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12994
12998
|
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((b) => {
|
|
12995
12999
|
b == null || b.remove();
|
|
12996
|
-
}), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((
|
|
13000
|
+
}), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((k = this.map) != null && k.getSource(o)) && this.map.removeSource(o), e && ((v = this.map) != null && v.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12997
13001
|
}
|
|
12998
13002
|
}
|
|
12999
13003
|
}, om = { class: "idm-gl4-measure" };
|
|
@@ -13066,7 +13070,7 @@ const rm = {
|
|
|
13066
13070
|
//hour
|
|
13067
13071
|
intervalOptions: [3, 6, 12, 24],
|
|
13068
13072
|
showTimezone: !1,
|
|
13069
|
-
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) :
|
|
13073
|
+
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : A().utcOffset() / 60,
|
|
13070
13074
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
13071
13075
|
source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4")
|
|
13072
13076
|
};
|
|
@@ -13098,7 +13102,7 @@ const rm = {
|
|
|
13098
13102
|
},
|
|
13099
13103
|
currentTimestamp: {
|
|
13100
13104
|
handler() {
|
|
13101
|
-
this.currentDateTimeZ =
|
|
13105
|
+
this.currentDateTimeZ = A(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${A.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
13102
13106
|
},
|
|
13103
13107
|
immediate: !0
|
|
13104
13108
|
},
|
|
@@ -13166,9 +13170,9 @@ function gm(t, e, o, i, a, r) {
|
|
|
13166
13170
|
"day-about": a.dayAbout,
|
|
13167
13171
|
"interval-hour": a.intervalHour
|
|
13168
13172
|
}, t.$attrs, {
|
|
13169
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13170
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13171
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
13173
|
+
onCurrentTimestamp: e[0] || (e[0] = (k) => a.currentTimestamp = k),
|
|
13174
|
+
onCurrentRealTime: e[1] || (e[1] = (k) => a.currentRealTime = k),
|
|
13175
|
+
onTimestampRange: e[2] || (e[2] = (k) => a.timestampRange = k)
|
|
13172
13176
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13173
13177
|
d(f, {
|
|
13174
13178
|
text: "",
|
|
@@ -13182,13 +13186,13 @@ function gm(t, e, o, i, a, r) {
|
|
|
13182
13186
|
default: u(() => [
|
|
13183
13187
|
d(g, { class: "pa-1" }, {
|
|
13184
13188
|
default: u(() => [
|
|
13185
|
-
(y(!0), S(be, null, we(a.intervalOptions, (
|
|
13186
|
-
key:
|
|
13187
|
-
value:
|
|
13188
|
-
variant: a.intervalHour ===
|
|
13189
|
+
(y(!0), S(be, null, we(a.intervalOptions, (k, v) => (y(), D(n, {
|
|
13190
|
+
key: v,
|
|
13191
|
+
value: k,
|
|
13192
|
+
variant: a.intervalHour === k ? "tonal" : "text",
|
|
13189
13193
|
color: "primary",
|
|
13190
13194
|
rounded: "",
|
|
13191
|
-
active: a.intervalHour ===
|
|
13195
|
+
active: a.intervalHour === k,
|
|
13192
13196
|
height: "30",
|
|
13193
13197
|
"min-height": "30",
|
|
13194
13198
|
"min-width": "30",
|
|
@@ -13196,10 +13200,10 @@ function gm(t, e, o, i, a, r) {
|
|
|
13196
13200
|
}, {
|
|
13197
13201
|
default: u(() => [
|
|
13198
13202
|
d(c, {
|
|
13199
|
-
onClick: (b) => a.intervalHour =
|
|
13203
|
+
onClick: (b) => a.intervalHour = k
|
|
13200
13204
|
}, {
|
|
13201
13205
|
default: u(() => [
|
|
13202
|
-
N(h(
|
|
13206
|
+
N(h(k) + "h", 1)
|
|
13203
13207
|
]),
|
|
13204
13208
|
_: 2
|
|
13205
13209
|
}, 1032, ["onClick"])
|
|
@@ -13299,17 +13303,17 @@ function gm(t, e, o, i, a, r) {
|
|
|
13299
13303
|
text: t.$t("weather.windBarbs"),
|
|
13300
13304
|
location: "top"
|
|
13301
13305
|
}, {
|
|
13302
|
-
activator: u(({ props:
|
|
13303
|
-
var
|
|
13306
|
+
activator: u(({ props: k }) => {
|
|
13307
|
+
var v, b;
|
|
13304
13308
|
return [
|
|
13305
|
-
d(f, B(
|
|
13309
|
+
d(f, B(k, {
|
|
13306
13310
|
class: "pa-1 d-flex",
|
|
13307
|
-
color: (
|
|
13311
|
+
color: (v = o.weatherCheckList) != null && v.includes("wind") ? "primary" : "",
|
|
13308
13312
|
variant: (b = o.weatherCheckList) != null && b.includes("wind") ? "elevated" : "text",
|
|
13309
13313
|
height: "24",
|
|
13310
13314
|
width: "24",
|
|
13311
13315
|
"min-width": "24",
|
|
13312
|
-
onClick: e[3] || (e[3] = (
|
|
13316
|
+
onClick: e[3] || (e[3] = (M) => r.handleClickFastWeather("wind"))
|
|
13313
13317
|
}), {
|
|
13314
13318
|
default: u(() => e[14] || (e[14] = [
|
|
13315
13319
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -13325,20 +13329,20 @@ function gm(t, e, o, i, a, r) {
|
|
|
13325
13329
|
text: t.$t("weather.sigWaveHeight"),
|
|
13326
13330
|
location: "top"
|
|
13327
13331
|
}, {
|
|
13328
|
-
activator: u(({ props:
|
|
13329
|
-
var
|
|
13332
|
+
activator: u(({ props: k }) => {
|
|
13333
|
+
var v, b;
|
|
13330
13334
|
return [
|
|
13331
|
-
d(f, B(
|
|
13335
|
+
d(f, B(k, {
|
|
13332
13336
|
class: "pa-1 d-flex",
|
|
13333
|
-
color: (
|
|
13337
|
+
color: (v = o.weatherCheckList) != null && v.includes("sig-wave-height") ? "primary" : "",
|
|
13334
13338
|
variant: (b = o.weatherCheckList) != null && b.includes("sig-wave-height") ? "elevated" : "text",
|
|
13335
13339
|
height: "24",
|
|
13336
13340
|
width: "24",
|
|
13337
13341
|
"min-width": "24",
|
|
13338
|
-
onClick: e[4] || (e[4] = (
|
|
13342
|
+
onClick: e[4] || (e[4] = (M) => r.handleClickFastWeather("sig-wave-height"))
|
|
13339
13343
|
}), {
|
|
13340
13344
|
default: u(() => [
|
|
13341
|
-
l("i", B(
|
|
13345
|
+
l("i", B(k, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13342
13346
|
]),
|
|
13343
13347
|
_: 2
|
|
13344
13348
|
}, 1040, ["color", "variant"])
|
|
@@ -13350,20 +13354,20 @@ function gm(t, e, o, i, a, r) {
|
|
|
13350
13354
|
text: t.$t("weather.currentDirection"),
|
|
13351
13355
|
location: "top"
|
|
13352
13356
|
}, {
|
|
13353
|
-
activator: u(({ props:
|
|
13354
|
-
var
|
|
13357
|
+
activator: u(({ props: k }) => {
|
|
13358
|
+
var v, b;
|
|
13355
13359
|
return [
|
|
13356
|
-
d(f, B(
|
|
13360
|
+
d(f, B(k, {
|
|
13357
13361
|
class: "pa-1 d-flex",
|
|
13358
|
-
color: (
|
|
13362
|
+
color: (v = o.weatherCheckList) != null && v.includes("current-direction") ? "primary" : "",
|
|
13359
13363
|
variant: (b = o.weatherCheckList) != null && b.includes("current-direction") ? "elevated" : "text",
|
|
13360
13364
|
height: "24",
|
|
13361
13365
|
width: "24",
|
|
13362
13366
|
"min-width": "24",
|
|
13363
|
-
onClick: e[5] || (e[5] = (
|
|
13367
|
+
onClick: e[5] || (e[5] = (M) => r.handleClickFastWeather("current-direction"))
|
|
13364
13368
|
}), {
|
|
13365
13369
|
default: u(() => [
|
|
13366
|
-
l("i", B(
|
|
13370
|
+
l("i", B(k, { class: "iconfont icon-Current" }), null, 16)
|
|
13367
13371
|
]),
|
|
13368
13372
|
_: 2
|
|
13369
13373
|
}, 1040, ["color", "variant"])
|
|
@@ -13375,8 +13379,8 @@ function gm(t, e, o, i, a, r) {
|
|
|
13375
13379
|
text: t.$t("weather.weatherLayers"),
|
|
13376
13380
|
location: "top"
|
|
13377
13381
|
}, {
|
|
13378
|
-
activator: u(({ props:
|
|
13379
|
-
d(f, B(
|
|
13382
|
+
activator: u(({ props: k }) => [
|
|
13383
|
+
d(f, B(k, {
|
|
13380
13384
|
class: "pa-1 d-flex",
|
|
13381
13385
|
variant: "text",
|
|
13382
13386
|
height: "24",
|
|
@@ -13385,7 +13389,7 @@ function gm(t, e, o, i, a, r) {
|
|
|
13385
13389
|
onClick: r.handleClickFastMore
|
|
13386
13390
|
}), {
|
|
13387
13391
|
default: u(() => [
|
|
13388
|
-
l("i", B(
|
|
13392
|
+
l("i", B(k, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13389
13393
|
]),
|
|
13390
13394
|
_: 2
|
|
13391
13395
|
}, 1040, ["onClick"])
|
|
@@ -13404,7 +13408,7 @@ function gm(t, e, o, i, a, r) {
|
|
|
13404
13408
|
height: "30",
|
|
13405
13409
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13406
13410
|
color: a.source === "GFS" ? "primary" : "",
|
|
13407
|
-
onClick: e[6] || (e[6] = (
|
|
13411
|
+
onClick: e[6] || (e[6] = (k) => a.source = "GFS")
|
|
13408
13412
|
}, {
|
|
13409
13413
|
default: u(() => e[15] || (e[15] = [
|
|
13410
13414
|
N("NOAA", -1)
|
|
@@ -13417,7 +13421,7 @@ function gm(t, e, o, i, a, r) {
|
|
|
13417
13421
|
height: "30",
|
|
13418
13422
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13419
13423
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
13420
|
-
onClick: e[7] || (e[7] = (
|
|
13424
|
+
onClick: e[7] || (e[7] = (k) => a.source = "ECMWF")
|
|
13421
13425
|
}, {
|
|
13422
13426
|
default: u(() => e[16] || (e[16] = [
|
|
13423
13427
|
N("ECMWF", -1)
|
|
@@ -13432,11 +13436,11 @@ function gm(t, e, o, i, a, r) {
|
|
|
13432
13436
|
style: ie({ right: a.right + "px" })
|
|
13433
13437
|
}, [
|
|
13434
13438
|
a.showTimezone ? (y(), S("div", dm, [
|
|
13435
|
-
(y(!0), S(be, null, we(a.offsets, (
|
|
13436
|
-
key:
|
|
13439
|
+
(y(!0), S(be, null, we(a.offsets, (k) => (y(), S("div", {
|
|
13440
|
+
key: k,
|
|
13437
13441
|
class: "item rounded text-body-2 hover-active",
|
|
13438
|
-
onClick: (
|
|
13439
|
-
}, h(
|
|
13442
|
+
onClick: (v) => a.timeZone = k
|
|
13443
|
+
}, h(k < 0 ? k : "+" + k), 9, hm))), 128))
|
|
13440
13444
|
])) : O("", !0),
|
|
13441
13445
|
l("div", pm, [
|
|
13442
13446
|
d(f, {
|
|
@@ -13445,7 +13449,7 @@ function gm(t, e, o, i, a, r) {
|
|
|
13445
13449
|
height: "28",
|
|
13446
13450
|
class: "pa-1 text-body-1",
|
|
13447
13451
|
color: "primary",
|
|
13448
|
-
onClick: e[8] || (e[8] = (
|
|
13452
|
+
onClick: e[8] || (e[8] = (k) => a.showTimezone = !a.showTimezone)
|
|
13449
13453
|
}, {
|
|
13450
13454
|
default: u(() => [
|
|
13451
13455
|
N(" UTC " + h(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -13596,7 +13600,7 @@ class vm {
|
|
|
13596
13600
|
me(this, "hi");
|
|
13597
13601
|
me(this, "td");
|
|
13598
13602
|
me(this, "windy");
|
|
13599
|
-
var o, i, a, r, s, c, n, g, p, f, w, P,
|
|
13603
|
+
var o, i, a, r, s, c, n, g, p, f, w, P, k, v, b, M, I, C, _, z, T, L, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
|
|
13600
13604
|
this.i4 = {
|
|
13601
13605
|
source: {
|
|
13602
13606
|
type: "raster",
|
|
@@ -13753,7 +13757,7 @@ class vm {
|
|
|
13753
13757
|
type: "vector"
|
|
13754
13758
|
}
|
|
13755
13759
|
},
|
|
13756
|
-
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/
|
|
13760
|
+
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bh2zye99da20r0eylk9p33gbn",
|
|
13757
13761
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
13758
13762
|
projection: {
|
|
13759
13763
|
name: "equirectangular"
|
|
@@ -15297,7 +15301,7 @@ class vm {
|
|
|
15297
15301
|
type: "vector"
|
|
15298
15302
|
}
|
|
15299
15303
|
},
|
|
15300
|
-
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/
|
|
15304
|
+
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/3w0qcixxrxxonxutm2qkollqi",
|
|
15301
15305
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
15302
15306
|
projection: {
|
|
15303
15307
|
name: "equirectangular"
|
|
@@ -20577,7 +20581,7 @@ class vm {
|
|
|
20577
20581
|
type: "vector"
|
|
20578
20582
|
}
|
|
20579
20583
|
},
|
|
20580
|
-
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/
|
|
20584
|
+
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/4brh50212qdflq3f6dwu3yjln",
|
|
20581
20585
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
20582
20586
|
projection: {
|
|
20583
20587
|
name: "equirectangular"
|
|
@@ -31856,7 +31860,7 @@ class vm {
|
|
|
31856
31860
|
i4: this.i4.source
|
|
31857
31861
|
// "hi": this.hi.source
|
|
31858
31862
|
},
|
|
31859
|
-
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/
|
|
31863
|
+
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/8ej8fh7bqw5mhdjot66571v26",
|
|
31860
31864
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
31861
31865
|
projection: {
|
|
31862
31866
|
name: "equirectangular"
|
|
@@ -32194,11 +32198,11 @@ class vm {
|
|
|
32194
32198
|
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
|
|
32195
32199
|
(f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
|
|
32196
32200
|
(P = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : P.find((m) => m.id === "loadlines-fill"),
|
|
32197
|
-
(
|
|
32198
|
-
(
|
|
32201
|
+
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((m) => m.id === "empty-layer-0"),
|
|
32202
|
+
(M = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : M.find((m) => m.id === "empty-layer-1"),
|
|
32199
32203
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((m) => m.id === "country-boundaries"),
|
|
32200
|
-
(
|
|
32201
|
-
(
|
|
32204
|
+
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
|
|
32205
|
+
(L = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : L.find((m) => m.id === "water-outline2"),
|
|
32202
32206
|
(V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
|
|
32203
32207
|
(X = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
|
|
32204
32208
|
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
|
|
@@ -32244,43 +32248,43 @@ class vm {
|
|
|
32244
32248
|
(q = (E = this.originStyle) == null ? void 0 : E.dark.layers) == null ? void 0 : q.find((m) => m.id === "water"),
|
|
32245
32249
|
(Ve = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ve.find((m) => m.id === "ice-area-fill"),
|
|
32246
32250
|
(Te = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Te.find((m) => m.id === "ice-area-line"),
|
|
32247
|
-
(
|
|
32248
|
-
(
|
|
32249
|
-
(
|
|
32250
|
-
(
|
|
32251
|
-
(
|
|
32252
|
-
(
|
|
32253
|
-
(
|
|
32254
|
-
(
|
|
32255
|
-
(
|
|
32256
|
-
(
|
|
32257
|
-
(
|
|
32258
|
-
(
|
|
32259
|
-
(
|
|
32260
|
-
(
|
|
32261
|
-
(
|
|
32262
|
-
(
|
|
32263
|
-
(
|
|
32264
|
-
(
|
|
32265
|
-
(
|
|
32266
|
-
(
|
|
32267
|
-
(
|
|
32268
|
-
(
|
|
32269
|
-
(
|
|
32251
|
+
(Ke = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : Ke.find((m) => m.id === "loadlines-label"),
|
|
32252
|
+
($e = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : $e.find((m) => m.id === "loadlines-fill"),
|
|
32253
|
+
(Je = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : Je.find((m) => m.id === "empty-layer-0"),
|
|
32254
|
+
(tt = (et = this.originStyle) == null ? void 0 : et.dark.layers) == null ? void 0 : tt.find((m) => m.id === "empty-layer-1"),
|
|
32255
|
+
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((m) => m.id === "country-boundaries"),
|
|
32256
|
+
(rt = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : rt.find((m) => m.id === "water-outline"),
|
|
32257
|
+
(st = (lt = this.originStyle) == null ? void 0 : lt.dark.layers) == null ? void 0 : st.find((m) => m.id === "empty-layer-2"),
|
|
32258
|
+
(ct = (nt = this.originStyle) == null ? void 0 : nt.dark.layers) == null ? void 0 : ct.find((m) => m.id === "water-line-label"),
|
|
32259
|
+
(dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((m) => m.id === "water-point-label"),
|
|
32260
|
+
(pt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : pt.find((m) => m.id === "world-12nm-v4-20231025"),
|
|
32261
|
+
(gt = (ut = this.originStyle) == null ? void 0 : ut.dark.layers) == null ? void 0 : gt.find((m) => m.id === "ne-10m-outline"),
|
|
32262
|
+
(yt = (ft = this.originStyle) == null ? void 0 : ft.dark.layers) == null ? void 0 : yt.find((m) => m.id === "ne-10m-label"),
|
|
32263
|
+
(wt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : wt.find((m) => m.id === "china-route-line"),
|
|
32264
|
+
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((m) => m.id === "china-route-fill"),
|
|
32265
|
+
(kt = (_t = this.originStyle) == null ? void 0 : _t.dark.layers) == null ? void 0 : kt.find((m) => m.id === "china-route-label"),
|
|
32266
|
+
(Lt = (zt = this.originStyle) == null ? void 0 : zt.dark.layers) == null ? void 0 : Lt.find((m) => m.id === "admin-0-boundary-bg"),
|
|
32267
|
+
(Ct = (Pt = this.originStyle) == null ? void 0 : Pt.dark.layers) == null ? void 0 : Ct.find((m) => m.id === "admin-0-boundary"),
|
|
32268
|
+
(St = (Tt = this.originStyle) == null ? void 0 : Tt.dark.layers) == null ? void 0 : St.find((m) => m.id === "admin-0-boundary-disputed"),
|
|
32269
|
+
(Mt = (It = this.originStyle) == null ? void 0 : It.dark.layers) == null ? void 0 : Mt.find((m) => m.id === "country-label"),
|
|
32270
|
+
(Dt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : Dt.find((m) => m.id === "continent-label"),
|
|
32271
|
+
(Ot = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : Ot.find((m) => m.id === "tide-stations"),
|
|
32272
|
+
(Et = (Bt = this.originStyle) == null ? void 0 : Bt.dark.layers) == null ? void 0 : Et.find((m) => m.id === "empty-layer-3"),
|
|
32273
|
+
(Nt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Nt.find((m) => m.id === "empty-layer-4")
|
|
32270
32274
|
]
|
|
32271
32275
|
},
|
|
32272
32276
|
satellite: {
|
|
32273
32277
|
version: 8,
|
|
32274
32278
|
name: "Satellite Streets",
|
|
32275
|
-
metadata: (
|
|
32279
|
+
metadata: (Ft = this.originStyle) == null ? void 0 : Ft.satellite.metadata,
|
|
32276
32280
|
center: [55.13, 25.12],
|
|
32277
32281
|
zoom: 12,
|
|
32278
|
-
fog: (
|
|
32279
|
-
imports: (
|
|
32280
|
-
sources: (
|
|
32281
|
-
sprite: (
|
|
32282
|
-
glyphs: (
|
|
32283
|
-
projection: (
|
|
32282
|
+
fog: (Ht = this.originStyle) == null ? void 0 : Ht.satellite.fog,
|
|
32283
|
+
imports: (Ut = this.originStyle) == null ? void 0 : Ut.satellite.imports,
|
|
32284
|
+
sources: (Wt = this.originStyle) == null ? void 0 : Wt.satellite.sources,
|
|
32285
|
+
sprite: (Gt = this.originStyle) == null ? void 0 : Gt.satellite.sprite,
|
|
32286
|
+
glyphs: (Vt = this.originStyle) == null ? void 0 : Vt.satellite.glyphs,
|
|
32287
|
+
projection: (Zt = this.originStyle) == null ? void 0 : Zt.satellite.projection,
|
|
32284
32288
|
created: "2025-07-25T03:53:24.667Z",
|
|
32285
32289
|
modified: "2025-07-28T06:47:35.471Z",
|
|
32286
32290
|
id: "cmdiadnej03n101r485bs2m6a",
|
|
@@ -32289,10 +32293,10 @@ class vm {
|
|
|
32289
32293
|
protected: !1,
|
|
32290
32294
|
draft: !1,
|
|
32291
32295
|
layers: [
|
|
32292
|
-
(
|
|
32293
|
-
(
|
|
32294
|
-
(
|
|
32295
|
-
(co = (
|
|
32296
|
+
(Yt = (qt = this.originStyle) == null ? void 0 : qt.satellite.layers) == null ? void 0 : Yt.find((m) => m.id === "background"),
|
|
32297
|
+
(Xt = (Kt = this.originStyle) == null ? void 0 : Kt.satellite.layers) == null ? void 0 : Xt.find((m) => m.id === "satellite"),
|
|
32298
|
+
(Jt = (Qt = this.originStyle) == null ? void 0 : Qt.satellite.layers) == null ? void 0 : Jt.find((m) => m.id === "loadlines-label"),
|
|
32299
|
+
(co = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : co.find((m) => m.id === "loadlines-fill"),
|
|
32296
32300
|
(ho = (mo = this.originStyle) == null ? void 0 : mo.satellite.layers) == null ? void 0 : ho.find((m) => m.id === "empty-layer-0"),
|
|
32297
32301
|
(uo = (po = this.originStyle) == null ? void 0 : po.satellite.layers) == null ? void 0 : uo.find((m) => m.id === "empty-layer-1"),
|
|
32298
32302
|
(fo = (go = this.originStyle) == null ? void 0 : go.satellite.layers) == null ? void 0 : fo.find((m) => m.id === "country-boundaries"),
|
|
@@ -32530,6 +32534,6 @@ export {
|
|
|
32530
32534
|
lo as PortDetail,
|
|
32531
32535
|
Ka as TropicalGL,
|
|
32532
32536
|
so as Viewport,
|
|
32533
|
-
|
|
32537
|
+
Ne as WebGL,
|
|
32534
32538
|
he as WebGLSchema
|
|
32535
32539
|
};
|