@idmwx/idmui-gl4 1.6.3 → 1.6.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 +923 -907
- package/dist/index.umd.cjs +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var $a = Object.defineProperty;
|
|
2
2
|
var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as $, Fragment as be, renderList as we, withDirectives as We, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
|
-
import { LngLatHelper as
|
|
9
|
+
import { LngLatHelper as K, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as ao, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
11
11
|
import * as ro from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
@@ -385,8 +385,8 @@ const mi = {
|
|
|
385
385
|
return ((c = l.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
|
|
386
386
|
})[0];
|
|
387
387
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
|
|
388
|
-
var n,
|
|
389
|
-
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (
|
|
388
|
+
var n, u;
|
|
389
|
+
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (u = l == null ? void 0 : l.children[1]) == null ? void 0 : u.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
392
|
}), this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
@@ -496,11 +496,11 @@ function hi(t, e, o, i, a, r) {
|
|
|
496
496
|
id: "idm-gl4-zone-info"
|
|
497
497
|
}, {
|
|
498
498
|
default: f(() => [
|
|
499
|
-
|
|
499
|
+
p(c, null, {
|
|
500
500
|
default: f(() => {
|
|
501
|
-
var
|
|
501
|
+
var u;
|
|
502
502
|
return [
|
|
503
|
-
|
|
503
|
+
p(l, {
|
|
504
504
|
icon: "",
|
|
505
505
|
density: "compact",
|
|
506
506
|
variant: "plain",
|
|
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
515
515
|
}, 8, ["onClick"]),
|
|
516
516
|
s("div", {
|
|
517
517
|
class: "rich-context",
|
|
518
|
-
innerHTML: (
|
|
518
|
+
innerHTML: (u = a.form) == null ? void 0 : u.name
|
|
519
519
|
}, null, 8, di)
|
|
520
520
|
];
|
|
521
521
|
}),
|
|
@@ -1365,7 +1365,7 @@ const ui = {
|
|
|
1365
1365
|
computed: {
|
|
1366
1366
|
dateList() {
|
|
1367
1367
|
var o, i, a, r;
|
|
1368
|
-
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ?
|
|
1368
|
+
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? K.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
|
|
1369
1369
|
for (let l = 0; l < 4; l++) {
|
|
1370
1370
|
let c = {
|
|
1371
1371
|
index: l,
|
|
@@ -1386,7 +1386,7 @@ const ui = {
|
|
|
1386
1386
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
1387
1387
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
1388
1388
|
return "-";
|
|
1389
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
1389
|
+
const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1390
1390
|
return M(t).utcOffset(i).format(o);
|
|
1391
1391
|
};
|
|
1392
1392
|
},
|
|
@@ -1394,18 +1394,18 @@ const ui = {
|
|
|
1394
1394
|
return function(t) {
|
|
1395
1395
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
1396
1396
|
return "-";
|
|
1397
|
-
const e =
|
|
1397
|
+
const e = K.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
1398
1398
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
1399
1399
|
};
|
|
1400
1400
|
},
|
|
1401
1401
|
computePosition() {
|
|
1402
1402
|
return function(t) {
|
|
1403
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
1403
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
1404
1404
|
};
|
|
1405
1405
|
},
|
|
1406
1406
|
computeRoundPrecision() {
|
|
1407
1407
|
return function(t, e = 4) {
|
|
1408
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
1408
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
},
|
|
@@ -1487,10 +1487,10 @@ const ui = {
|
|
|
1487
1487
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1488
1488
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1489
1489
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1490
|
-
var c, n,
|
|
1490
|
+
var c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
|
|
1491
1491
|
let r = {};
|
|
1492
1492
|
const l = ((c = ao.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1493
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((
|
|
1493
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((k = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((U = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : U.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ne = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((J = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1494
1494
|
});
|
|
1495
1495
|
},
|
|
1496
1496
|
handleTide() {
|
|
@@ -1675,24 +1675,24 @@ const ui = {
|
|
|
1675
1675
|
width: "120"
|
|
1676
1676
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1677
1677
|
function yr(t, e, o, i, a, r) {
|
|
1678
|
-
const l = w("VBtn"), c = w("VCardTitle"), n = w("VDivider"),
|
|
1678
|
+
const l = w("VBtn"), c = w("VCardTitle"), n = w("VDivider"), u = w("VIcon"), h = w("VBtnToggle"), b = w("VCard");
|
|
1679
1679
|
return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1680
1680
|
default: f(() => {
|
|
1681
|
-
var x,
|
|
1681
|
+
var x, z;
|
|
1682
1682
|
return [
|
|
1683
|
-
|
|
1683
|
+
p(c, { class: "w-100" }, {
|
|
1684
1684
|
default: f(() => {
|
|
1685
|
-
var g,
|
|
1685
|
+
var g, P, T, O, I;
|
|
1686
1686
|
return [
|
|
1687
1687
|
s("div", gi, [
|
|
1688
1688
|
s("div", fi, [
|
|
1689
1689
|
s("div", {
|
|
1690
|
-
class: Ne(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (
|
|
1690
|
+
class: Ne(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (P = o.port) == null ? void 0 : P.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1691
1691
|
style: { width: "36px", height: "24px" }
|
|
1692
1692
|
}, null, 2),
|
|
1693
1693
|
s("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
|
|
1694
1694
|
]),
|
|
1695
|
-
|
|
1695
|
+
p(l, {
|
|
1696
1696
|
icon: "",
|
|
1697
1697
|
density: "compact",
|
|
1698
1698
|
variant: "plain",
|
|
@@ -1717,11 +1717,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1717
1717
|
}),
|
|
1718
1718
|
_: 1
|
|
1719
1719
|
}),
|
|
1720
|
-
|
|
1720
|
+
p(n, { class: "w-100" }),
|
|
1721
1721
|
s("div", bi, [
|
|
1722
1722
|
o.followList.some((g) => {
|
|
1723
|
-
var
|
|
1724
|
-
return ((
|
|
1723
|
+
var P;
|
|
1724
|
+
return ((P = g.port) == null ? void 0 : P.id) === o.portId;
|
|
1725
1725
|
}) ? (y(), R(l, {
|
|
1726
1726
|
key: 0,
|
|
1727
1727
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
@@ -1732,10 +1732,10 @@ function yr(t, e, o, i, a, r) {
|
|
|
1732
1732
|
onClick: r.handleCancelFollow
|
|
1733
1733
|
}, {
|
|
1734
1734
|
prepend: f(() => [
|
|
1735
|
-
u
|
|
1735
|
+
p(u, { color: "warning" })
|
|
1736
1736
|
]),
|
|
1737
1737
|
default: f(() => [
|
|
1738
|
-
|
|
1738
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
1739
1739
|
]),
|
|
1740
1740
|
_: 1
|
|
1741
1741
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -1748,11 +1748,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1748
1748
|
onClick: r.handleFollow
|
|
1749
1749
|
}, {
|
|
1750
1750
|
default: f(() => [
|
|
1751
|
-
|
|
1751
|
+
$(m(t.$t("actions.follow")), 1)
|
|
1752
1752
|
]),
|
|
1753
1753
|
_: 1
|
|
1754
1754
|
}, 8, ["onClick"])),
|
|
1755
|
-
|
|
1755
|
+
p(l, {
|
|
1756
1756
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
1757
1757
|
variant: "tonal",
|
|
1758
1758
|
density: "compact",
|
|
@@ -1760,7 +1760,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1760
1760
|
onClick: r.handleMeteoMore
|
|
1761
1761
|
}, {
|
|
1762
1762
|
default: f(() => [
|
|
1763
|
-
|
|
1763
|
+
$(m(t.$t("actions.7dayForcast")), 1)
|
|
1764
1764
|
]),
|
|
1765
1765
|
_: 1
|
|
1766
1766
|
}, 8, ["onClick"])
|
|
@@ -1781,7 +1781,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1781
1781
|
s("div", Li, [
|
|
1782
1782
|
s("div", Pi, [
|
|
1783
1783
|
s("div", Ci, m(t.$t("port.region")), 1),
|
|
1784
|
-
s("div", Ti, m(((x = o.port) == null ? void 0 : x.region) ?? ((
|
|
1784
|
+
s("div", Ti, m(((x = o.port) == null ? void 0 : x.region) ?? ((z = o.port) == null ? void 0 : z.city) ?? "-"), 1)
|
|
1785
1785
|
]),
|
|
1786
1786
|
s("div", Si, [
|
|
1787
1787
|
s("div", Mi, m(t.$t("port.position")), 1),
|
|
@@ -1806,7 +1806,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1806
1806
|
e[5] || (e[5] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1807
1807
|
]),
|
|
1808
1808
|
s("div", Fi, [
|
|
1809
|
-
|
|
1809
|
+
p(h, {
|
|
1810
1810
|
modelValue: a.currentIndex,
|
|
1811
1811
|
"onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
|
|
1812
1812
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
@@ -1825,7 +1825,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1825
1825
|
value: g.index
|
|
1826
1826
|
}, {
|
|
1827
1827
|
default: f(() => [
|
|
1828
|
-
|
|
1828
|
+
$(m(g.label), 1)
|
|
1829
1829
|
]),
|
|
1830
1830
|
_: 2
|
|
1831
1831
|
}, 1032, ["value"]))), 256))
|
|
@@ -1838,7 +1838,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1838
1838
|
key: g.id
|
|
1839
1839
|
}, [
|
|
1840
1840
|
s("th", Gi, [
|
|
1841
|
-
|
|
1841
|
+
$(m(t.$t(`${g.key}`)) + " ", 1),
|
|
1842
1842
|
g.unit ? (y(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : D("", !0)
|
|
1843
1843
|
]),
|
|
1844
1844
|
s("td", Ui, [
|
|
@@ -1911,9 +1911,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1911
1911
|
s("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1912
1912
|
s("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
|
|
1913
1913
|
]),
|
|
1914
|
-
(y(!0), S(be, null, we(a.tideTableData, (g,
|
|
1914
|
+
(y(!0), S(be, null, we(a.tideTableData, (g, P) => {
|
|
1915
1915
|
var T;
|
|
1916
|
-
return y(), S("tr", { key:
|
|
1916
|
+
return y(), S("tr", { key: P }, [
|
|
1917
1917
|
s("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
1918
1918
|
s("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
|
|
1919
1919
|
s("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
|
|
@@ -2040,12 +2040,12 @@ const br = {
|
|
|
2040
2040
|
function _r(t, e, o, i, a, r) {
|
|
2041
2041
|
const l = w("VCardText"), c = w("VCard"), n = w("PortDetail");
|
|
2042
2042
|
return y(), S("div", null, [
|
|
2043
|
-
We(
|
|
2043
|
+
We(p(c, {
|
|
2044
2044
|
id: "idmPortInfo",
|
|
2045
2045
|
ref: "idmPortInfo"
|
|
2046
2046
|
}, {
|
|
2047
2047
|
default: f(() => [
|
|
2048
|
-
|
|
2048
|
+
p(l, { class: "text-body-1 pr-8" }, {
|
|
2049
2049
|
default: f(() => [
|
|
2050
2050
|
s("div", wr, [
|
|
2051
2051
|
s("div", null, m(t.$t("port.port")), 1),
|
|
@@ -2071,7 +2071,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2071
2071
|
port: a.port,
|
|
2072
2072
|
forecastModel: o.forecastModel,
|
|
2073
2073
|
onClose: r.handleCloseDetail,
|
|
2074
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
2074
|
+
onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2075
2075
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
|
|
2076
2076
|
]);
|
|
2077
2077
|
}
|
|
@@ -2424,7 +2424,7 @@ const Dr = /* @__PURE__ */ Y(Mr, [["render", Ir]]), Ar = {
|
|
|
2424
2424
|
methods: {
|
|
2425
2425
|
handleRender() {
|
|
2426
2426
|
this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
2427
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
2427
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => K.convertToMonotonicLng2(e));
|
|
2428
2428
|
}), this.map.addSource(this.source, {
|
|
2429
2429
|
type: "geojson",
|
|
2430
2430
|
data: this.area
|
|
@@ -2724,7 +2724,7 @@ const qr = {
|
|
|
2724
2724
|
computed: {
|
|
2725
2725
|
dateList() {
|
|
2726
2726
|
var o, i, a, r;
|
|
2727
|
-
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ?
|
|
2727
|
+
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? K.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
2728
2728
|
for (let l = 0; l < 4; l++) {
|
|
2729
2729
|
let c = {
|
|
2730
2730
|
index: l,
|
|
@@ -2743,7 +2743,7 @@ const qr = {
|
|
|
2743
2743
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
2744
2744
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
2745
2745
|
return "-";
|
|
2746
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
2746
|
+
const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2747
2747
|
return M(t).utcOffset(i).format(o);
|
|
2748
2748
|
};
|
|
2749
2749
|
},
|
|
@@ -2751,18 +2751,18 @@ const qr = {
|
|
|
2751
2751
|
return function(t) {
|
|
2752
2752
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
2753
2753
|
return "-";
|
|
2754
|
-
const e =
|
|
2754
|
+
const e = K.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
2755
2755
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
2756
2756
|
};
|
|
2757
2757
|
},
|
|
2758
2758
|
computePosition() {
|
|
2759
2759
|
return function(t) {
|
|
2760
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
2760
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
2761
2761
|
};
|
|
2762
2762
|
},
|
|
2763
2763
|
computeRoundPrecision() {
|
|
2764
2764
|
return function(t, e = 4) {
|
|
2765
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
2765
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
|
|
2766
2766
|
};
|
|
2767
2767
|
}
|
|
2768
2768
|
},
|
|
@@ -2940,20 +2940,20 @@ const qr = {
|
|
|
2940
2940
|
width: "120"
|
|
2941
2941
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
|
|
2942
2942
|
function Ts(t, e, o, i, a, r) {
|
|
2943
|
-
const l = w("VBtn"), c = w("v-card-title"), n = w("v-divider"),
|
|
2943
|
+
const l = w("VBtn"), c = w("v-card-title"), n = w("v-divider"), u = w("VBtnToggle"), h = w("v-card");
|
|
2944
2944
|
return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2945
2945
|
default: f(() => {
|
|
2946
2946
|
var b, x;
|
|
2947
2947
|
return [
|
|
2948
|
-
|
|
2948
|
+
p(c, { class: "w-100" }, {
|
|
2949
2949
|
default: f(() => {
|
|
2950
|
-
var
|
|
2950
|
+
var z;
|
|
2951
2951
|
return [
|
|
2952
2952
|
s("div", Xr, [
|
|
2953
2953
|
s("div", $r, [
|
|
2954
|
-
s("div", null, m((
|
|
2954
|
+
s("div", null, m((z = o.station) == null ? void 0 : z.name), 1)
|
|
2955
2955
|
]),
|
|
2956
|
-
|
|
2956
|
+
p(l, {
|
|
2957
2957
|
icon: "",
|
|
2958
2958
|
density: "compact",
|
|
2959
2959
|
variant: "plain",
|
|
@@ -2974,7 +2974,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
2974
2974
|
}),
|
|
2975
2975
|
_: 1
|
|
2976
2976
|
}),
|
|
2977
|
-
|
|
2977
|
+
p(n, { class: "w-100" }),
|
|
2978
2978
|
s("div", Qr, [
|
|
2979
2979
|
s("div", Jr, [
|
|
2980
2980
|
s("div", es, [
|
|
@@ -3016,9 +3016,9 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3016
3016
|
e[3] || (e[3] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
3017
3017
|
]),
|
|
3018
3018
|
s("div", ws, [
|
|
3019
|
-
u
|
|
3019
|
+
p(u, {
|
|
3020
3020
|
modelValue: a.currentIndex,
|
|
3021
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3021
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
|
|
3022
3022
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3023
3023
|
density: "compact",
|
|
3024
3024
|
group: "",
|
|
@@ -3027,15 +3027,15 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3027
3027
|
rounded: "1"
|
|
3028
3028
|
}, {
|
|
3029
3029
|
default: f(() => [
|
|
3030
|
-
(y(!0), S(be, null, we(r.dateList, (
|
|
3030
|
+
(y(!0), S(be, null, we(r.dateList, (z) => (y(), R(l, {
|
|
3031
3031
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3032
3032
|
density: "compact",
|
|
3033
3033
|
color: "primary",
|
|
3034
3034
|
height: "26",
|
|
3035
|
-
value:
|
|
3035
|
+
value: z.index
|
|
3036
3036
|
}, {
|
|
3037
3037
|
default: f(() => [
|
|
3038
|
-
|
|
3038
|
+
$(m(z.label), 1)
|
|
3039
3039
|
]),
|
|
3040
3040
|
_: 2
|
|
3041
3041
|
}, 1032, ["value"]))), 256))
|
|
@@ -3050,12 +3050,12 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3050
3050
|
s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3051
3051
|
s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3052
3052
|
]),
|
|
3053
|
-
(y(!0), S(be, null, we(a.tideTableData, (
|
|
3054
|
-
var
|
|
3053
|
+
(y(!0), S(be, null, we(a.tideTableData, (z, g) => {
|
|
3054
|
+
var P;
|
|
3055
3055
|
return y(), S("tr", { key: g }, [
|
|
3056
|
-
s("td", Ls, m(t.$t(`tide.${(
|
|
3057
|
-
s("td", Ps, m(r.computeLocalTime(
|
|
3058
|
-
s("td", Cs, m((
|
|
3056
|
+
s("td", Ls, m(t.$t(`tide.${(P = z == null ? void 0 : z.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3057
|
+
s("td", Ps, m(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
|
|
3058
|
+
s("td", Cs, m((z == null ? void 0 : z.height) ?? "-") + " m", 1)
|
|
3059
3059
|
]);
|
|
3060
3060
|
}), 128))
|
|
3061
3061
|
])
|
|
@@ -3148,16 +3148,16 @@ const Ms = {
|
|
|
3148
3148
|
function Os(t, e, o, i, a, r) {
|
|
3149
3149
|
const l = w("v-card-text"), c = w("v-card"), n = w("TideDetail");
|
|
3150
3150
|
return y(), S("div", null, [
|
|
3151
|
-
We(
|
|
3151
|
+
We(p(c, { id: "idmTidalInfo" }, {
|
|
3152
3152
|
default: f(() => [
|
|
3153
|
-
|
|
3153
|
+
p(l, { class: "pr-8 text-body-1" }, {
|
|
3154
3154
|
default: f(() => {
|
|
3155
|
-
var
|
|
3155
|
+
var u, h;
|
|
3156
3156
|
return [
|
|
3157
3157
|
s("div", Is, [
|
|
3158
3158
|
s("div", Ds, m(t.$t("tide.tideStation")), 1),
|
|
3159
3159
|
s("div", As, [
|
|
3160
|
-
s("label", Rs, m((
|
|
3160
|
+
s("label", Rs, m((u = a.hoverStation) == null ? void 0 : u.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
|
|
3161
3161
|
])
|
|
3162
3162
|
])
|
|
3163
3163
|
];
|
|
@@ -3271,7 +3271,7 @@ const Fs = {
|
|
|
3271
3271
|
},
|
|
3272
3272
|
"lngLat.e": {
|
|
3273
3273
|
handler(t) {
|
|
3274
|
-
this.lngLat.lng =
|
|
3274
|
+
this.lngLat.lng = K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty, this.lngLat.lat = K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty, this.lngLat.str = `[${t == null ? void 0 : t.lng.toFixed(4)}, ${t == null ? void 0 : t.lat.toFixed(4)}]`;
|
|
3275
3275
|
},
|
|
3276
3276
|
immediate: !0
|
|
3277
3277
|
}
|
|
@@ -4310,12 +4310,12 @@ const Gs = {
|
|
|
4310
4310
|
function Zs(t, e, o, i, a, r) {
|
|
4311
4311
|
const l = w("v-card-text"), c = w("v-card"), n = w("PortDetail");
|
|
4312
4312
|
return y(), S("div", null, [
|
|
4313
|
-
We(
|
|
4313
|
+
We(p(c, {
|
|
4314
4314
|
id: "idmFollowPortInfo",
|
|
4315
4315
|
ref: "idmFollowPortInfo"
|
|
4316
4316
|
}, {
|
|
4317
4317
|
default: f(() => [
|
|
4318
|
-
|
|
4318
|
+
p(l, { class: "text-body-1 pr-8" }, {
|
|
4319
4319
|
default: f(() => [
|
|
4320
4320
|
s("div", Ws, [
|
|
4321
4321
|
s("div", null, m(t.$t("port.port")), 1),
|
|
@@ -4342,7 +4342,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
4342
4342
|
forecastModel: o.forecastModel,
|
|
4343
4343
|
followList: o.followList,
|
|
4344
4344
|
onClose: r.handleCloseDetail,
|
|
4345
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
4345
|
+
onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4346
4346
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
|
|
4347
4347
|
]);
|
|
4348
4348
|
}
|
|
@@ -4384,7 +4384,7 @@ const qs = {
|
|
|
4384
4384
|
computed: {
|
|
4385
4385
|
computePosition() {
|
|
4386
4386
|
return function(t) {
|
|
4387
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
4387
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
4388
4388
|
};
|
|
4389
4389
|
}
|
|
4390
4390
|
},
|
|
@@ -4450,18 +4450,18 @@ const qs = {
|
|
|
4450
4450
|
this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
|
|
4451
4451
|
},
|
|
4452
4452
|
handleClick(t) {
|
|
4453
|
-
var o, i, a, r, l, c, n,
|
|
4453
|
+
var o, i, a, r, l, c, n, u, h;
|
|
4454
4454
|
const e = t.features[0];
|
|
4455
4455
|
if (e.properties) {
|
|
4456
4456
|
const b = e.properties;
|
|
4457
4457
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
4458
|
-
const x = M(),
|
|
4458
|
+
const x = M(), z = (o = M(this.realTime)) == null ? void 0 : o.diff(x, "d", !0), g = {
|
|
4459
4459
|
lat: b.lat,
|
|
4460
4460
|
lng: b.lng,
|
|
4461
4461
|
datetime: this.realTime,
|
|
4462
4462
|
forecastModel: this.forecastModel
|
|
4463
4463
|
};
|
|
4464
|
-
|
|
4464
|
+
z >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(g);
|
|
4465
4465
|
}
|
|
4466
4466
|
},
|
|
4467
4467
|
handleHover(t) {
|
|
@@ -4490,7 +4490,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
4490
4490
|
ref: "idmFollowPositionInfo"
|
|
4491
4491
|
}, {
|
|
4492
4492
|
default: f(() => [
|
|
4493
|
-
|
|
4493
|
+
p(l, { class: "text-body-1 pr-8" }, {
|
|
4494
4494
|
default: f(() => [
|
|
4495
4495
|
s("div", Xs, [
|
|
4496
4496
|
e[0] || (e[0] = s("div", null, "Location", -1)),
|
|
@@ -4681,9 +4681,9 @@ const el = {
|
|
|
4681
4681
|
})
|
|
4682
4682
|
);
|
|
4683
4683
|
(await Promise.all(l)).map((n) => {
|
|
4684
|
-
var b, x,
|
|
4685
|
-
const
|
|
4686
|
-
this.otherLayers[h] =
|
|
4684
|
+
var b, x, z;
|
|
4685
|
+
const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (z = (x = n == null ? void 0 : n.config) == null ? void 0 : x.headers) == null ? void 0 : z.key;
|
|
4686
|
+
this.otherLayers[h] = u;
|
|
4687
4687
|
});
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
@@ -4720,19 +4720,19 @@ const el = {
|
|
|
4720
4720
|
class: "border rounded-sm"
|
|
4721
4721
|
}, dl = { class: "text-body-2 text-center pt-1" };
|
|
4722
4722
|
function hl(t, e, o, i, a, r) {
|
|
4723
|
-
var
|
|
4724
|
-
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"),
|
|
4723
|
+
var X, ne, se, J, ae, he, ce, pe, ge;
|
|
4724
|
+
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), z = w("IdmLatLng"), g = w("IdmTerminator"), P = w("IdmTimezone"), T = w("IdmPort"), O = w("IdmAlertZone"), I = w("IdmTideStations"), L = w("IdmEcaZone"), k = w("IdmWarZone"), v = w("IdmGmdssArea"), C = w("IdmLoadLine"), _ = w("IdmWorldMarine"), A = w("IdmVRA"), N = w("IdmSpecialArea"), V = w("IdmWorld12nm"), Z = w("IdmChinaRoute"), U = w("IdmIceAreas"), ee = w("IdmFollowPort"), Q = w("IdmFollowPosition");
|
|
4725
4725
|
return y(), S("div", tl, [
|
|
4726
4726
|
s("div", {
|
|
4727
4727
|
class: "menu-bar-box transition px-1 rounded",
|
|
4728
4728
|
style: ie({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4729
4729
|
}, [
|
|
4730
|
-
|
|
4730
|
+
p(c, {
|
|
4731
4731
|
text: t.$t("layer.mapLayers"),
|
|
4732
4732
|
location: "left"
|
|
4733
4733
|
}, {
|
|
4734
4734
|
activator: f(({ props: F }) => [
|
|
4735
|
-
|
|
4735
|
+
p(l, B(F, {
|
|
4736
4736
|
"min-width": "32",
|
|
4737
4737
|
width: "32",
|
|
4738
4738
|
height: "32",
|
|
@@ -4755,7 +4755,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4755
4755
|
}, [
|
|
4756
4756
|
s("div", ol, [
|
|
4757
4757
|
s("div", al, m(t.$t("layer.layers")), 1),
|
|
4758
|
-
|
|
4758
|
+
p(l, {
|
|
4759
4759
|
icon: "",
|
|
4760
4760
|
density: "compact",
|
|
4761
4761
|
variant: "plain",
|
|
@@ -4770,32 +4770,32 @@ function hl(t, e, o, i, a, r) {
|
|
|
4770
4770
|
}, 8, ["onClick"])
|
|
4771
4771
|
]),
|
|
4772
4772
|
s("div", il, [
|
|
4773
|
-
|
|
4773
|
+
p(x, {
|
|
4774
4774
|
class: "block-bg mx-auto mb-3",
|
|
4775
4775
|
elevation: "0"
|
|
4776
4776
|
}, {
|
|
4777
4777
|
default: f(() => [
|
|
4778
|
-
u
|
|
4778
|
+
p(u, { class: "border-b-thin" }, {
|
|
4779
4779
|
default: f(() => [
|
|
4780
|
-
|
|
4780
|
+
p(n, {
|
|
4781
4781
|
class: "text-subtitle-1 font-weight-medium",
|
|
4782
4782
|
style: { "font-size": "16px !important" }
|
|
4783
4783
|
}, {
|
|
4784
4784
|
default: f(() => [
|
|
4785
|
-
|
|
4785
|
+
$(m(t.$t("layer.mapFeathers")), 1)
|
|
4786
4786
|
]),
|
|
4787
4787
|
_: 1
|
|
4788
4788
|
})
|
|
4789
4789
|
]),
|
|
4790
4790
|
_: 1
|
|
4791
4791
|
}),
|
|
4792
|
-
|
|
4792
|
+
p(b, { class: "pb-2" }, {
|
|
4793
4793
|
default: f(() => [
|
|
4794
4794
|
s("div", rl, [
|
|
4795
4795
|
(y(!0), S(be, null, we(a.mapFeathers, (F) => (y(), S("div", {
|
|
4796
4796
|
key: F.value,
|
|
4797
4797
|
class: "mb-2 feather-item",
|
|
4798
|
-
onClick: (
|
|
4798
|
+
onClick: (me) => r.handleToggleMapFeather(F)
|
|
4799
4799
|
}, [
|
|
4800
4800
|
s("div", {
|
|
4801
4801
|
class: Ne([a.mapFeather === F.value ? "active" : "", "img-box"])
|
|
@@ -4808,7 +4808,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4808
4808
|
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
|
|
4809
4809
|
key: F.key,
|
|
4810
4810
|
modelValue: a.checkList,
|
|
4811
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
4811
|
+
"onUpdate:modelValue": e[0] || (e[0] = (me) => a.checkList = me),
|
|
4812
4812
|
value: F.key,
|
|
4813
4813
|
label: t.$t(`layer.${F.locale}`),
|
|
4814
4814
|
color: "primary",
|
|
@@ -4823,31 +4823,31 @@ function hl(t, e, o, i, a, r) {
|
|
|
4823
4823
|
]),
|
|
4824
4824
|
_: 1
|
|
4825
4825
|
}),
|
|
4826
|
-
|
|
4826
|
+
p(x, {
|
|
4827
4827
|
class: "block-bg mx-auto mb-3",
|
|
4828
4828
|
elevation: "0"
|
|
4829
4829
|
}, {
|
|
4830
4830
|
default: f(() => [
|
|
4831
|
-
u
|
|
4831
|
+
p(u, { class: "border-b-thin" }, {
|
|
4832
4832
|
default: f(() => [
|
|
4833
|
-
|
|
4833
|
+
p(n, {
|
|
4834
4834
|
class: "text-subtitle-1 font-weight-medium",
|
|
4835
4835
|
style: { "font-size": "16px !important" }
|
|
4836
4836
|
}, {
|
|
4837
4837
|
default: f(() => [
|
|
4838
|
-
|
|
4838
|
+
$(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4839
4839
|
]),
|
|
4840
4840
|
_: 1
|
|
4841
4841
|
})
|
|
4842
4842
|
]),
|
|
4843
4843
|
_: 1
|
|
4844
4844
|
}),
|
|
4845
|
-
|
|
4845
|
+
p(b, { class: "py-2" }, {
|
|
4846
4846
|
default: f(() => [
|
|
4847
4847
|
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
|
|
4848
4848
|
key: F.key,
|
|
4849
4849
|
modelValue: a.checkList,
|
|
4850
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
4850
|
+
"onUpdate:modelValue": e[1] || (e[1] = (me) => a.checkList = me),
|
|
4851
4851
|
value: F.key,
|
|
4852
4852
|
label: t.$t(`layer.${F.locale}`),
|
|
4853
4853
|
color: "primary",
|
|
@@ -4862,31 +4862,31 @@ function hl(t, e, o, i, a, r) {
|
|
|
4862
4862
|
]),
|
|
4863
4863
|
_: 1
|
|
4864
4864
|
}),
|
|
4865
|
-
|
|
4865
|
+
p(x, {
|
|
4866
4866
|
class: "block-bg mx-auto mb-3",
|
|
4867
4867
|
elevation: "0"
|
|
4868
4868
|
}, {
|
|
4869
4869
|
default: f(() => [
|
|
4870
|
-
u
|
|
4870
|
+
p(u, { class: "border-b-thin" }, {
|
|
4871
4871
|
default: f(() => [
|
|
4872
|
-
|
|
4872
|
+
p(n, {
|
|
4873
4873
|
class: "text-subtitle-1 font-weight-medium",
|
|
4874
4874
|
style: { "font-size": "16px !important" }
|
|
4875
4875
|
}, {
|
|
4876
4876
|
default: f(() => [
|
|
4877
|
-
|
|
4877
|
+
$(m(t.$t("layer.otherLayers")), 1)
|
|
4878
4878
|
]),
|
|
4879
4879
|
_: 1
|
|
4880
4880
|
})
|
|
4881
4881
|
]),
|
|
4882
4882
|
_: 1
|
|
4883
4883
|
}),
|
|
4884
|
-
|
|
4884
|
+
p(b, { class: "py-2" }, {
|
|
4885
4885
|
default: f(() => [
|
|
4886
4886
|
(y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
|
|
4887
4887
|
key: F.key,
|
|
4888
4888
|
modelValue: a.checkList,
|
|
4889
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
4889
|
+
"onUpdate:modelValue": e[2] || (e[2] = (me) => a.checkList = me),
|
|
4890
4890
|
value: F.key,
|
|
4891
4891
|
label: t.$t(`layer.${F.locale}`),
|
|
4892
4892
|
color: "primary",
|
|
@@ -4901,28 +4901,28 @@ function hl(t, e, o, i, a, r) {
|
|
|
4901
4901
|
]),
|
|
4902
4902
|
_: 1
|
|
4903
4903
|
}),
|
|
4904
|
-
|
|
4904
|
+
p(x, {
|
|
4905
4905
|
class: "block-bg mx-auto mb-3",
|
|
4906
4906
|
elevation: "0"
|
|
4907
4907
|
}, {
|
|
4908
4908
|
default: f(() => [
|
|
4909
|
-
u
|
|
4909
|
+
p(u, { class: "border-b-thin" }, {
|
|
4910
4910
|
default: f(() => [
|
|
4911
|
-
|
|
4911
|
+
p(n, {
|
|
4912
4912
|
class: "text-subtitle-1 font-weight-medium",
|
|
4913
4913
|
style: { "font-size": "16px !important" }
|
|
4914
4914
|
}, {
|
|
4915
4915
|
default: f(() => [
|
|
4916
|
-
|
|
4916
|
+
$(m(t.$t("layer.myFollows")), 1)
|
|
4917
4917
|
]),
|
|
4918
4918
|
_: 1
|
|
4919
4919
|
})
|
|
4920
4920
|
]),
|
|
4921
4921
|
_: 1
|
|
4922
4922
|
}),
|
|
4923
|
-
|
|
4923
|
+
p(b, { class: "py-2" }, {
|
|
4924
4924
|
default: f(() => [
|
|
4925
|
-
|
|
4925
|
+
p(h, {
|
|
4926
4926
|
modelValue: a.checkList,
|
|
4927
4927
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
|
|
4928
4928
|
value: "follow-ports",
|
|
@@ -4933,7 +4933,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4933
4933
|
class: "flex-1-0-100 text-body-2",
|
|
4934
4934
|
"hide-details": ""
|
|
4935
4935
|
}, null, 8, ["modelValue", "label"]),
|
|
4936
|
-
|
|
4936
|
+
p(h, {
|
|
4937
4937
|
modelValue: a.checkList,
|
|
4938
4938
|
"onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
|
|
4939
4939
|
value: "follow-positions",
|
|
@@ -4952,7 +4952,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4952
4952
|
})
|
|
4953
4953
|
])
|
|
4954
4954
|
], 6),
|
|
4955
|
-
o.map ? (y(), R(
|
|
4955
|
+
o.map ? (y(), R(z, B({
|
|
4956
4956
|
key: 0,
|
|
4957
4957
|
map: o.map,
|
|
4958
4958
|
"menu-toggle": o.menuToggle,
|
|
@@ -4961,18 +4961,18 @@ function hl(t, e, o, i, a, r) {
|
|
|
4961
4961
|
o.map ? (y(), R(g, B({
|
|
4962
4962
|
key: 1,
|
|
4963
4963
|
map: o.map,
|
|
4964
|
-
area: (
|
|
4964
|
+
area: (X = a.otherLayers) == null ? void 0 : X["day-night"]
|
|
4965
4965
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
4966
|
-
o.map ? (y(), R(
|
|
4966
|
+
o.map ? (y(), R(P, B({
|
|
4967
4967
|
key: 2,
|
|
4968
4968
|
map: o.map,
|
|
4969
|
-
zone: (
|
|
4969
|
+
zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
|
|
4970
4970
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
4971
4971
|
o.map ? (y(), R(T, B({
|
|
4972
4972
|
key: 3,
|
|
4973
4973
|
ref: "idmPorts",
|
|
4974
4974
|
map: o.map,
|
|
4975
|
-
ports: (
|
|
4975
|
+
ports: (se = a.otherLayers) == null ? void 0 : se.ports,
|
|
4976
4976
|
gateway: o.gateway,
|
|
4977
4977
|
token: o.token,
|
|
4978
4978
|
"forecast-model": o.forecastModel,
|
|
@@ -4981,7 +4981,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4981
4981
|
o.map ? (y(), R(O, B({
|
|
4982
4982
|
key: 4,
|
|
4983
4983
|
map: o.map,
|
|
4984
|
-
zone: (
|
|
4984
|
+
zone: (J = a.otherLayers) == null ? void 0 : J["alert-zones"]
|
|
4985
4985
|
}, t.$attrs, {
|
|
4986
4986
|
"before-layer": "empty-layer-3",
|
|
4987
4987
|
theme: o.theme
|
|
@@ -4998,27 +4998,27 @@ function hl(t, e, o, i, a, r) {
|
|
|
4998
4998
|
forecastModel: o.forecastModel,
|
|
4999
4999
|
"before-layer": "empty-layer-3"
|
|
5000
5000
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5001
|
-
o.map ? (y(), R(
|
|
5001
|
+
o.map ? (y(), R(L, B({
|
|
5002
5002
|
key: 6,
|
|
5003
5003
|
map: o.map,
|
|
5004
5004
|
zone: (ae = a.otherLayers) == null ? void 0 : ae["eca-zones"]
|
|
5005
5005
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5006
|
-
o.map ? (y(), R(
|
|
5006
|
+
o.map ? (y(), R(k, B({
|
|
5007
5007
|
key: 7,
|
|
5008
5008
|
map: o.map,
|
|
5009
|
-
zone: (
|
|
5009
|
+
zone: (he = a.otherLayers) == null ? void 0 : he["war-zones"]
|
|
5010
5010
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5011
|
-
o.map ? (y(), R(
|
|
5011
|
+
o.map ? (y(), R(v, B({
|
|
5012
5012
|
key: 8,
|
|
5013
5013
|
map: o.map,
|
|
5014
|
-
area: (
|
|
5014
|
+
area: (ce = a.otherLayers) == null ? void 0 : ce["gmdss-areas"]
|
|
5015
5015
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5016
5016
|
o.map ? (y(), R(C, B({
|
|
5017
5017
|
key: 9,
|
|
5018
5018
|
map: o.map,
|
|
5019
5019
|
show: a.checkList.includes("load-lines")
|
|
5020
5020
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5021
|
-
o.map ? (y(), R(
|
|
5021
|
+
o.map ? (y(), R(_, B({
|
|
5022
5022
|
key: 10,
|
|
5023
5023
|
map: o.map,
|
|
5024
5024
|
token: o.token,
|
|
@@ -5027,7 +5027,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5027
5027
|
o.map ? (y(), R(A, B({
|
|
5028
5028
|
key: 11,
|
|
5029
5029
|
map: o.map,
|
|
5030
|
-
area: (
|
|
5030
|
+
area: (pe = a.otherLayers) == null ? void 0 : pe["voluntary-reporting-area"]
|
|
5031
5031
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5032
5032
|
o.map ? (y(), R(N, B({
|
|
5033
5033
|
key: 12,
|
|
@@ -5061,7 +5061,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5061
5061
|
"forecast-model": o.forecastModel,
|
|
5062
5062
|
realTime: o.realTime
|
|
5063
5063
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5064
|
-
o.map ? (y(), R(
|
|
5064
|
+
o.map ? (y(), R(Q, B({
|
|
5065
5065
|
key: 17,
|
|
5066
5066
|
ref: "idmFollowPosition",
|
|
5067
5067
|
map: o.map,
|
|
@@ -5074,15 +5074,15 @@ function hl(t, e, o, i, a, r) {
|
|
|
5074
5074
|
const pl = /* @__PURE__ */ Y(el, [["render", hl]]);
|
|
5075
5075
|
class lo {
|
|
5076
5076
|
constructor(e) {
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5077
|
+
de(this, "map");
|
|
5078
|
+
de(this, "mercator");
|
|
5079
|
+
de(this, "rampColorLayer");
|
|
5080
|
+
de(this, "rampColorSource");
|
|
5081
|
+
de(this, "particleLayer");
|
|
5082
|
+
de(this, "particleSource");
|
|
5083
|
+
de(this, "rampColorCanvas");
|
|
5084
|
+
de(this, "particleCanvas");
|
|
5085
|
+
de(this, "ratio");
|
|
5086
5086
|
this.map = e, this.mercator = new Ja(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
5087
5087
|
}
|
|
5088
5088
|
/**
|
|
@@ -5118,12 +5118,12 @@ class lo {
|
|
|
5118
5118
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5119
5119
|
*/
|
|
5120
5120
|
getBoundPixel() {
|
|
5121
|
-
var g,
|
|
5121
|
+
var g, P;
|
|
5122
5122
|
const e = (g = this.map) == null ? void 0 : g.getBounds();
|
|
5123
5123
|
if (!e)
|
|
5124
5124
|
return [];
|
|
5125
|
-
const o = ((
|
|
5126
|
-
return [b, x,
|
|
5125
|
+
const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b, x] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
|
|
5126
|
+
return [b, x, u + z, h];
|
|
5127
5127
|
}
|
|
5128
5128
|
/**
|
|
5129
5129
|
* [视窗边界像素宽度]
|
|
@@ -5228,13 +5228,13 @@ class Fe {
|
|
|
5228
5228
|
if (a) {
|
|
5229
5229
|
const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
5230
5230
|
for (let n = 0; n < l; n++) {
|
|
5231
|
-
const
|
|
5232
|
-
r[
|
|
5231
|
+
const u = e.getActiveAttrib(a, n);
|
|
5232
|
+
r[u.name] = e.getAttribLocation(a, u.name);
|
|
5233
5233
|
}
|
|
5234
5234
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
5235
5235
|
for (let n = 0; n < c; n++) {
|
|
5236
|
-
const
|
|
5237
|
-
r[
|
|
5236
|
+
const u = e.getActiveUniform(a, n);
|
|
5237
|
+
r[u.name] = e.getUniformLocation(a, u.name);
|
|
5238
5238
|
}
|
|
5239
5239
|
return r;
|
|
5240
5240
|
}
|
|
@@ -5249,8 +5249,8 @@ class Fe {
|
|
|
5249
5249
|
const c = l.getContext("2d");
|
|
5250
5250
|
if (c && e) {
|
|
5251
5251
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
5252
|
-
return o.forEach(([
|
|
5253
|
-
n.addColorStop(
|
|
5252
|
+
return o.forEach(([u, h]) => {
|
|
5253
|
+
n.addColorStop(u, h);
|
|
5254
5254
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
5255
5255
|
canvas: l,
|
|
5256
5256
|
texture: this.createTexture(
|
|
@@ -5272,8 +5272,8 @@ class Fe {
|
|
|
5272
5272
|
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
5273
5273
|
for (let h = 0; h < a; h++)
|
|
5274
5274
|
n[h] = h;
|
|
5275
|
-
const
|
|
5276
|
-
return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer:
|
|
5275
|
+
const u = this.createDataBuffer(e, "array", n);
|
|
5276
|
+
return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: u };
|
|
5277
5277
|
}
|
|
5278
5278
|
bind(e, o, i) {
|
|
5279
5279
|
const a = this.createProgram(e, o, i);
|
|
@@ -5288,13 +5288,13 @@ class Fe {
|
|
|
5288
5288
|
return {};
|
|
5289
5289
|
}
|
|
5290
5290
|
bindParticle(e, o, i, a, r, l) {
|
|
5291
|
-
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r),
|
|
5292
|
-
return { particle: c, screen: n, update:
|
|
5291
|
+
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, l), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
|
|
5292
|
+
return { particle: c, screen: n, update: u, quadBuffer: h, frameBuffer: b };
|
|
5293
5293
|
}
|
|
5294
5294
|
draw(e, o, i, a, r, l, c) {
|
|
5295
|
-
var n,
|
|
5295
|
+
var n, u;
|
|
5296
5296
|
if (o && i) {
|
|
5297
|
-
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (
|
|
5297
|
+
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (u = o == null ? void 0 : o.canvas) == null ? void 0 : u.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
5298
5298
|
try {
|
|
5299
5299
|
o.useProgram(i);
|
|
5300
5300
|
const h = {
|
|
@@ -5306,9 +5306,9 @@ class Fe {
|
|
|
5306
5306
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
5307
5307
|
};
|
|
5308
5308
|
h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
5309
|
-
const b = e.getBoundPixel(), x = e.map.getZoom() + 1,
|
|
5310
|
-
for (const g of
|
|
5311
|
-
const
|
|
5309
|
+
const b = e.getBoundPixel(), x = e.map.getZoom() + 1, z = e.getWorldCopy(b, x);
|
|
5310
|
+
for (const g of z) {
|
|
5311
|
+
const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L, k, v] = [P, O + P, T, O + T], C = new Float32Array([I, k, L, k, I, v, I, v, L, k, L, v]);
|
|
5312
5312
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5313
5313
|
}
|
|
5314
5314
|
} catch (h) {
|
|
@@ -5357,10 +5357,10 @@ class Fe {
|
|
|
5357
5357
|
});
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
class
|
|
5360
|
+
class le {
|
|
5361
5361
|
}
|
|
5362
5362
|
// 顶点渲染
|
|
5363
|
-
|
|
5363
|
+
de(le, "vertexSchema", `
|
|
5364
5364
|
//canvas 坐标系上的坐标 (x, y)
|
|
5365
5365
|
attribute vec2 a_position; //像素坐标
|
|
5366
5366
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -5375,7 +5375,7 @@ ce(se, "vertexSchema", `
|
|
|
5375
5375
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
5376
5376
|
v_texCoord = a_texCoord;
|
|
5377
5377
|
}`), // 类如风、流等u v双变量片元渲染
|
|
5378
|
-
|
|
5378
|
+
de(le, "uvFragmentSchema", `
|
|
5379
5379
|
precision mediump float;
|
|
5380
5380
|
uniform sampler2D u_image;
|
|
5381
5381
|
uniform vec2 u_range_u_v;
|
|
@@ -5395,7 +5395,7 @@ ce(se, "uvFragmentSchema", `
|
|
|
5395
5395
|
|
|
5396
5396
|
gl_FragColor = color;
|
|
5397
5397
|
}`), // 类如浪、气压等单变量片元渲染
|
|
5398
|
-
|
|
5398
|
+
de(le, "fragmentSchema", `
|
|
5399
5399
|
precision mediump float;
|
|
5400
5400
|
uniform sampler2D u_image; // 灰度
|
|
5401
5401
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -5408,7 +5408,7 @@ ce(se, "fragmentSchema", `
|
|
|
5408
5408
|
}`);
|
|
5409
5409
|
class ke {
|
|
5410
5410
|
}
|
|
5411
|
-
|
|
5411
|
+
de(ke, "vertexSchema", `
|
|
5412
5412
|
precision mediump float;
|
|
5413
5413
|
|
|
5414
5414
|
attribute float a_index; // 索引
|
|
@@ -5432,7 +5432,7 @@ ce(ke, "vertexSchema", `
|
|
|
5432
5432
|
gl_PointSize = 1.0;
|
|
5433
5433
|
// gl_PointSize = u_point;
|
|
5434
5434
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
5435
|
-
}`),
|
|
5435
|
+
}`), de(ke, "fragmentSchema", `
|
|
5436
5436
|
precision mediump float;
|
|
5437
5437
|
|
|
5438
5438
|
uniform sampler2D u_factor;
|
|
@@ -5454,7 +5454,7 @@ ce(ke, "vertexSchema", `
|
|
|
5454
5454
|
|
|
5455
5455
|
float f = 1.0 - uv.b;
|
|
5456
5456
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
5457
|
-
}`),
|
|
5457
|
+
}`), de(ke, "quadVertSchema", `
|
|
5458
5458
|
precision mediump float;
|
|
5459
5459
|
|
|
5460
5460
|
attribute vec2 a_pos;
|
|
@@ -5464,7 +5464,7 @@ ce(ke, "vertexSchema", `
|
|
|
5464
5464
|
void main() {
|
|
5465
5465
|
v_tex_pos = a_pos;
|
|
5466
5466
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
5467
|
-
}`),
|
|
5467
|
+
}`), de(ke, "screenFragmentSchema", `
|
|
5468
5468
|
precision mediump float;
|
|
5469
5469
|
|
|
5470
5470
|
uniform sampler2D u_screen;
|
|
@@ -5476,7 +5476,7 @@ ce(ke, "vertexSchema", `
|
|
|
5476
5476
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
5477
5477
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
5478
5478
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
5479
|
-
}`),
|
|
5479
|
+
}`), de(ke, "updateFragmentSchema", `
|
|
5480
5480
|
precision mediump float;
|
|
5481
5481
|
|
|
5482
5482
|
uniform sampler2D u_particles;
|
|
@@ -5656,17 +5656,17 @@ const ul = {
|
|
|
5656
5656
|
else {
|
|
5657
5657
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
5658
5658
|
for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
|
|
5659
|
-
const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0,
|
|
5660
|
-
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[
|
|
5661
|
-
this.map.hasImage(
|
|
5659
|
+
const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0, u = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
|
|
5660
|
+
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[u]), h.onload = () => {
|
|
5661
|
+
this.map.hasImage(u + "-icon") || this.map.addImage(u + "-icon", h), this.map.addLayer(
|
|
5662
5662
|
{
|
|
5663
|
-
id:
|
|
5663
|
+
id: u,
|
|
5664
5664
|
type: "symbol",
|
|
5665
5665
|
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
5666
5666
|
source: this.source,
|
|
5667
5667
|
layout: {
|
|
5668
5668
|
"symbol-placement": "point",
|
|
5669
|
-
"icon-image":
|
|
5669
|
+
"icon-image": u + "-icon",
|
|
5670
5670
|
// mapbox sprite
|
|
5671
5671
|
"icon-size": 0.5,
|
|
5672
5672
|
"icon-offset": [0, -20],
|
|
@@ -5824,7 +5824,7 @@ const bl = {
|
|
|
5824
5824
|
[1, "rgb(91, 136, 161)"]
|
|
5825
5825
|
];
|
|
5826
5826
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5827
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5827
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
|
|
5828
5828
|
this.program = e, this.aPositionBuffer = o;
|
|
5829
5829
|
}
|
|
5830
5830
|
this.handleParticleSetup();
|
|
@@ -6006,11 +6006,11 @@ const vl = /* @__PURE__ */ Y(bl, [["render", xl]]), _l = {
|
|
|
6006
6006
|
);
|
|
6007
6007
|
const l = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
|
|
6008
6008
|
l.src = "data:image/svg+xml;base64," + window.btoa(c);
|
|
6009
|
-
const n = new Image(48, 48),
|
|
6009
|
+
const n = new Image(48, 48), u = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6010
6010
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6011
6011
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6012
6012
|
</svg>`;
|
|
6013
|
-
n.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6013
|
+
n.src = "data:image/svg+xml;base64," + window.btoa(u);
|
|
6014
6014
|
const h = [n];
|
|
6015
6015
|
let b = 0;
|
|
6016
6016
|
h.forEach((x) => {
|
|
@@ -6157,7 +6157,7 @@ const Ll = {
|
|
|
6157
6157
|
[1, "rgb(195,194,194)"]
|
|
6158
6158
|
];
|
|
6159
6159
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6160
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6160
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
|
|
6161
6161
|
this.program = e, this.aPositionBuffer = o;
|
|
6162
6162
|
}
|
|
6163
6163
|
this.handleParticleSetup();
|
|
@@ -6329,7 +6329,7 @@ const Sl = {
|
|
|
6329
6329
|
//13
|
|
6330
6330
|
];
|
|
6331
6331
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6332
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6332
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
6333
6333
|
this.program = e, this.aPositionBuffer = o;
|
|
6334
6334
|
}
|
|
6335
6335
|
},
|
|
@@ -6601,7 +6601,7 @@ const Bl = {
|
|
|
6601
6601
|
//13
|
|
6602
6602
|
];
|
|
6603
6603
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6604
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6604
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
6605
6605
|
this.program = e, this.aPositionBuffer = o;
|
|
6606
6606
|
}
|
|
6607
6607
|
},
|
|
@@ -6789,12 +6789,12 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6789
6789
|
class: "menu-bar-box pa-1 rounded",
|
|
6790
6790
|
style: ie({ right: a.right + "px" })
|
|
6791
6791
|
}, [
|
|
6792
|
-
|
|
6792
|
+
p(c, {
|
|
6793
6793
|
text: "Map Layers",
|
|
6794
6794
|
location: "left"
|
|
6795
6795
|
}, {
|
|
6796
|
-
activator: f(({ props:
|
|
6797
|
-
|
|
6796
|
+
activator: f(({ props: u }) => [
|
|
6797
|
+
p(l, B(u, {
|
|
6798
6798
|
"min-width": "32",
|
|
6799
6799
|
width: "32",
|
|
6800
6800
|
height: "32",
|
|
@@ -6900,7 +6900,7 @@ const Ul = {
|
|
|
6900
6900
|
// 100%
|
|
6901
6901
|
];
|
|
6902
6902
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6903
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6903
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
6904
6904
|
this.program = e, this.aPositionBuffer = o;
|
|
6905
6905
|
}
|
|
6906
6906
|
},
|
|
@@ -7013,7 +7013,7 @@ const ql = {
|
|
|
7013
7013
|
// 100%
|
|
7014
7014
|
];
|
|
7015
7015
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7016
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7016
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7017
7017
|
this.program = e, this.aPositionBuffer = o;
|
|
7018
7018
|
}
|
|
7019
7019
|
},
|
|
@@ -7127,7 +7127,7 @@ const Ql = {
|
|
|
7127
7127
|
// 4m
|
|
7128
7128
|
];
|
|
7129
7129
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7130
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7130
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7131
7131
|
this.program = e, this.aPositionBuffer = o;
|
|
7132
7132
|
}
|
|
7133
7133
|
},
|
|
@@ -7243,7 +7243,7 @@ const on = {
|
|
|
7243
7243
|
[1, "rgba(197,5,58,0.8)"]
|
|
7244
7244
|
];
|
|
7245
7245
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7246
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7246
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7247
7247
|
this.program = e, this.aPositionBuffer = o;
|
|
7248
7248
|
}
|
|
7249
7249
|
},
|
|
@@ -7350,7 +7350,7 @@ const ln = {
|
|
|
7350
7350
|
[1, "rgba(144,144,144,0)"]
|
|
7351
7351
|
];
|
|
7352
7352
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7353
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7353
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7354
7354
|
this.program = e, this.aPositionBuffer = o;
|
|
7355
7355
|
}
|
|
7356
7356
|
},
|
|
@@ -7458,7 +7458,7 @@ const dn = {
|
|
|
7458
7458
|
//
|
|
7459
7459
|
];
|
|
7460
7460
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7461
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7461
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7462
7462
|
this.program = e, this.aPositionBuffer = o;
|
|
7463
7463
|
}
|
|
7464
7464
|
},
|
|
@@ -7577,7 +7577,7 @@ const gn = {
|
|
|
7577
7577
|
[1, "rgb(138, 43, 10)"]
|
|
7578
7578
|
];
|
|
7579
7579
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7580
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7580
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
|
|
7581
7581
|
this.program = e, this.aPositionBuffer = o;
|
|
7582
7582
|
}
|
|
7583
7583
|
},
|
|
@@ -7873,11 +7873,11 @@ const wn = {
|
|
|
7873
7873
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7874
7874
|
},
|
|
7875
7875
|
async fetchWeatherLayers(t = {}) {
|
|
7876
|
-
var a, r, l, c, n,
|
|
7876
|
+
var a, r, l, c, n, u, h, b, x;
|
|
7877
7877
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7878
7878
|
let o = 0, i = 0;
|
|
7879
7879
|
if (this.map) {
|
|
7880
|
-
const
|
|
7880
|
+
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), P = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
7881
7881
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
7882
7882
|
const T = io.WEATHER_LAYERS.find((O) => {
|
|
7883
7883
|
var I;
|
|
@@ -7889,7 +7889,7 @@ const wn = {
|
|
|
7889
7889
|
let T = this.weatherWeight;
|
|
7890
7890
|
if (T > 0) {
|
|
7891
7891
|
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
7892
|
-
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${
|
|
7892
|
+
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${z}&bbox=${P}&t=${this.realTime}`,
|
|
7893
7893
|
{
|
|
7894
7894
|
headers: {
|
|
7895
7895
|
Authorization: this.defaultMeteoToken
|
|
@@ -7897,46 +7897,46 @@ const wn = {
|
|
|
7897
7897
|
}
|
|
7898
7898
|
);
|
|
7899
7899
|
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) {
|
|
7900
|
-
const
|
|
7901
|
-
for (const C in
|
|
7902
|
-
|
|
7903
|
-
Se.get(
|
|
7900
|
+
const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
|
|
7901
|
+
for (const C in L)
|
|
7902
|
+
k.push(
|
|
7903
|
+
Se.get(L[C], {
|
|
7904
7904
|
headers: {
|
|
7905
7905
|
Authorization: this.defaultMeteoToken,
|
|
7906
7906
|
key: C
|
|
7907
7907
|
},
|
|
7908
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7909
|
-
}).catch((
|
|
7910
|
-
console.log(`[${C}] fetch layer error: ${
|
|
7908
|
+
responseType: /\.(jpg|png)$/.test(L[C]) ? "blob" : "json"
|
|
7909
|
+
}).catch((_) => {
|
|
7910
|
+
console.log(`[${C}] fetch layer error: ${_}`);
|
|
7911
7911
|
})
|
|
7912
7912
|
);
|
|
7913
|
-
const
|
|
7914
|
-
this.weatherLayers = {},
|
|
7913
|
+
const v = await Promise.all(k);
|
|
7914
|
+
this.weatherLayers = {}, v.map((C) => {
|
|
7915
7915
|
var N, V, Z, U;
|
|
7916
|
-
const
|
|
7916
|
+
const _ = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
|
|
7917
7917
|
let A = (Z = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : Z.key;
|
|
7918
|
-
A &&
|
|
7919
|
-
raw:
|
|
7918
|
+
A && _ && (this.weatherLayers[A] = {
|
|
7919
|
+
raw: _,
|
|
7920
7920
|
type: ((U = C == null ? void 0 : C.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
|
|
7921
7921
|
etime: I.data.etime
|
|
7922
7922
|
});
|
|
7923
7923
|
});
|
|
7924
7924
|
}
|
|
7925
7925
|
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"]) {
|
|
7926
|
-
const
|
|
7926
|
+
const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
7927
7927
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7928
7928
|
type: "json",
|
|
7929
|
-
direction:
|
|
7930
|
-
height: { raw:
|
|
7929
|
+
direction: L,
|
|
7930
|
+
height: { raw: k },
|
|
7931
7931
|
etime: I.data.etime
|
|
7932
7932
|
};
|
|
7933
7933
|
}
|
|
7934
7934
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7935
|
-
const
|
|
7935
|
+
const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
|
|
7936
7936
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7937
7937
|
type: "json",
|
|
7938
|
-
direction:
|
|
7939
|
-
speed: { raw:
|
|
7938
|
+
direction: L,
|
|
7939
|
+
speed: { raw: k },
|
|
7940
7940
|
etime: I.data.etime
|
|
7941
7941
|
};
|
|
7942
7942
|
}
|
|
@@ -7959,7 +7959,7 @@ const wn = {
|
|
|
7959
7959
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
7960
7960
|
},
|
|
7961
7961
|
handleRampColorInitial() {
|
|
7962
|
-
var t, e, o, i, a, r, l, c, n,
|
|
7962
|
+
var t, e, o, i, a, r, l, c, n, u, h, b;
|
|
7963
7963
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
7964
7964
|
type: "canvas",
|
|
7965
7965
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -7980,7 +7980,7 @@ const wn = {
|
|
|
7980
7980
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
7981
7981
|
animate: !0,
|
|
7982
7982
|
coordinates: this.viewport.getBoundLngLat()
|
|
7983
|
-
}), this.viewport.map.getLayer((
|
|
7983
|
+
}), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
|
|
7984
7984
|
{
|
|
7985
7985
|
type: "raster",
|
|
7986
7986
|
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
@@ -7993,176 +7993,176 @@ const wn = {
|
|
|
7993
7993
|
);
|
|
7994
7994
|
},
|
|
7995
7995
|
handleDrawWeather4Json() {
|
|
7996
|
-
var
|
|
7996
|
+
var u, h, b, x, z, g, P;
|
|
7997
7997
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7998
7998
|
let e = 0, o = 0;
|
|
7999
|
-
const i = (
|
|
7999
|
+
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = K.convertToStdLng(i._sw.lng), l = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8000
8000
|
for (const T in this.weatherLayers) {
|
|
8001
8001
|
let O = !1;
|
|
8002
8002
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8003
8003
|
let I = [];
|
|
8004
8004
|
if (T === "swell") {
|
|
8005
8005
|
O = !0;
|
|
8006
|
-
const
|
|
8007
|
-
for (const
|
|
8008
|
-
if (
|
|
8009
|
-
const C =
|
|
8010
|
-
r > l ? C.forEach((
|
|
8011
|
-
var N, V, Z, U, ee,
|
|
8006
|
+
const L = ((b = this.weatherLayers[T]) == null ? void 0 : b.direction) || {};
|
|
8007
|
+
for (const v in L)
|
|
8008
|
+
if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8009
|
+
const C = L[v].lng;
|
|
8010
|
+
r > l ? C.forEach((_, A) => {
|
|
8011
|
+
var N, V, Z, U, ee, Q;
|
|
8012
8012
|
if (a < 2) {
|
|
8013
|
-
if ((
|
|
8014
|
-
const
|
|
8015
|
-
val: ((N =
|
|
8016
|
-
spd: (Z =
|
|
8013
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8014
|
+
const X = H.point([_, v], {
|
|
8015
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8016
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8017
8017
|
});
|
|
8018
|
-
I.push(
|
|
8018
|
+
I.push(X);
|
|
8019
8019
|
}
|
|
8020
|
-
} else if ((
|
|
8021
|
-
const
|
|
8022
|
-
val: ((U =
|
|
8023
|
-
spd: (
|
|
8020
|
+
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8021
|
+
const X = H.point([_, v], {
|
|
8022
|
+
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8023
|
+
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8024
8024
|
});
|
|
8025
|
-
I.push(
|
|
8025
|
+
I.push(X);
|
|
8026
8026
|
}
|
|
8027
|
-
}) : C.forEach((
|
|
8028
|
-
var N, V, Z, U, ee,
|
|
8027
|
+
}) : C.forEach((_, A) => {
|
|
8028
|
+
var N, V, Z, U, ee, Q;
|
|
8029
8029
|
if (r < 2) {
|
|
8030
|
-
if ((
|
|
8031
|
-
const
|
|
8032
|
-
val: ((N =
|
|
8033
|
-
spd: (Z =
|
|
8030
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8031
|
+
const X = H.point([_, v], {
|
|
8032
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8033
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8034
8034
|
});
|
|
8035
|
-
I.push(
|
|
8035
|
+
I.push(X);
|
|
8036
8036
|
}
|
|
8037
|
-
} else if (
|
|
8038
|
-
const
|
|
8039
|
-
val: ((U =
|
|
8040
|
-
spd: (
|
|
8037
|
+
} else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8038
|
+
const X = H.point([_, v], {
|
|
8039
|
+
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8040
|
+
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8041
8041
|
});
|
|
8042
|
-
I.push(
|
|
8042
|
+
I.push(X);
|
|
8043
8043
|
}
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
8046
8046
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
8047
|
-
const
|
|
8048
|
-
if (
|
|
8049
|
-
if (!
|
|
8050
|
-
const
|
|
8051
|
-
for (const C in (x =
|
|
8052
|
-
const
|
|
8053
|
-
for (const A of
|
|
8054
|
-
|
|
8047
|
+
const k = this.weatherLayers[T].height;
|
|
8048
|
+
if (k) {
|
|
8049
|
+
if (!k.data) {
|
|
8050
|
+
const v = [];
|
|
8051
|
+
for (const C in (x = k.raw) == null ? void 0 : x.LineString) {
|
|
8052
|
+
const _ = k.raw.LineString[C];
|
|
8053
|
+
for (const A of _)
|
|
8054
|
+
v.push(
|
|
8055
8055
|
H.lineString(A, {
|
|
8056
8056
|
val: Number(C)
|
|
8057
8057
|
})
|
|
8058
8058
|
);
|
|
8059
|
-
|
|
8059
|
+
k.data = H.featureCollection(v);
|
|
8060
8060
|
}
|
|
8061
8061
|
}
|
|
8062
|
-
if (
|
|
8063
|
-
const
|
|
8064
|
-
I = I.concat(
|
|
8062
|
+
if (k.data) {
|
|
8063
|
+
const v = this.handleBboxClip(k.data, i);
|
|
8064
|
+
I = I.concat(v);
|
|
8065
8065
|
}
|
|
8066
8066
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8067
8067
|
}
|
|
8068
8068
|
} else if (T === "current") {
|
|
8069
8069
|
O = !0;
|
|
8070
|
-
const
|
|
8071
|
-
for (const
|
|
8072
|
-
if (
|
|
8073
|
-
const C =
|
|
8074
|
-
r > l ? C.forEach((
|
|
8075
|
-
var N, V, Z, U, ee,
|
|
8070
|
+
const L = ((z = this.weatherLayers[T]) == null ? void 0 : z.direction) || {};
|
|
8071
|
+
for (const v in L)
|
|
8072
|
+
if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8073
|
+
const C = L[v].lng;
|
|
8074
|
+
r > l ? C.forEach((_, A) => {
|
|
8075
|
+
var N, V, Z, U, ee, Q;
|
|
8076
8076
|
if (a < 2) {
|
|
8077
|
-
if ((
|
|
8078
|
-
const
|
|
8079
|
-
val: ((N =
|
|
8080
|
-
spd: (Z =
|
|
8077
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8078
|
+
const X = H.point([_, v], {
|
|
8079
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8080
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8081
8081
|
});
|
|
8082
|
-
I.push(
|
|
8082
|
+
I.push(X);
|
|
8083
8083
|
}
|
|
8084
|
-
} else if ((
|
|
8085
|
-
const
|
|
8086
|
-
val: ((U =
|
|
8087
|
-
spd: (
|
|
8084
|
+
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= l) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8085
|
+
const X = H.point([_, v], {
|
|
8086
|
+
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8087
|
+
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8088
8088
|
});
|
|
8089
|
-
I.push(
|
|
8089
|
+
I.push(X);
|
|
8090
8090
|
}
|
|
8091
|
-
}) : C.forEach((
|
|
8092
|
-
var N, V, Z, U, ee,
|
|
8091
|
+
}) : C.forEach((_, A) => {
|
|
8092
|
+
var N, V, Z, U, ee, Q;
|
|
8093
8093
|
if (r < 2) {
|
|
8094
|
-
if ((
|
|
8095
|
-
const
|
|
8096
|
-
val: ((N =
|
|
8097
|
-
spd: (Z =
|
|
8094
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8095
|
+
const X = H.point([_, v], {
|
|
8096
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8097
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8098
8098
|
});
|
|
8099
|
-
I.push(
|
|
8099
|
+
I.push(X);
|
|
8100
8100
|
}
|
|
8101
|
-
} else if (
|
|
8102
|
-
const
|
|
8103
|
-
val: ((U =
|
|
8104
|
-
spd: (
|
|
8101
|
+
} else if (_ >= r && _ <= l && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8102
|
+
const X = H.point([_, v], {
|
|
8103
|
+
val: ((U = L[v].val) == null ? void 0 : U[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8104
|
+
spd: (Q = L[v].spd) == null ? void 0 : Q[A]
|
|
8105
8105
|
});
|
|
8106
|
-
I.push(
|
|
8106
|
+
I.push(X);
|
|
8107
8107
|
}
|
|
8108
8108
|
});
|
|
8109
8109
|
}
|
|
8110
8110
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
8111
|
-
const
|
|
8112
|
-
if (
|
|
8113
|
-
if (!
|
|
8111
|
+
const k = this.weatherLayers[T].speed;
|
|
8112
|
+
if (k) {
|
|
8113
|
+
if (!k.data) {
|
|
8114
8114
|
const C = [];
|
|
8115
|
-
for (const
|
|
8116
|
-
const A =
|
|
8115
|
+
for (const _ in (g = k.raw) == null ? void 0 : g.Polygon) {
|
|
8116
|
+
const A = k.raw.Polygon[_];
|
|
8117
8117
|
for (const N of A)
|
|
8118
8118
|
C.push(
|
|
8119
8119
|
H.polygon(N, {
|
|
8120
|
-
val: Number(
|
|
8120
|
+
val: Number(_)
|
|
8121
8121
|
})
|
|
8122
8122
|
);
|
|
8123
8123
|
}
|
|
8124
|
-
|
|
8124
|
+
k.data = H.featureCollection(C);
|
|
8125
8125
|
}
|
|
8126
|
-
const
|
|
8127
|
-
I = I.concat(
|
|
8126
|
+
const v = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
|
|
8127
|
+
I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8128
8128
|
}
|
|
8129
8129
|
} else if (T === "wind") {
|
|
8130
8130
|
O = !0;
|
|
8131
|
-
const
|
|
8132
|
-
for (const
|
|
8133
|
-
if (
|
|
8134
|
-
const
|
|
8135
|
-
r > l ?
|
|
8131
|
+
const L = this.weatherLayers.wind.raw;
|
|
8132
|
+
for (const k in L)
|
|
8133
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8134
|
+
const v = L[k].lng;
|
|
8135
|
+
r > l ? v.forEach((C, _) => {
|
|
8136
8136
|
var A, N, V, Z;
|
|
8137
8137
|
if (a < 2) {
|
|
8138
8138
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8139
|
-
const U = H.point([C,
|
|
8140
|
-
dir: ((A =
|
|
8141
|
-
spd:
|
|
8139
|
+
const U = H.point([C, k], {
|
|
8140
|
+
dir: ((A = L[k].val) == null ? void 0 : A[_]) || ((N = L[k].dir) == null ? void 0 : N[_]),
|
|
8141
|
+
spd: L[k].spd[_]
|
|
8142
8142
|
});
|
|
8143
8143
|
I.push(U);
|
|
8144
8144
|
}
|
|
8145
8145
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= l) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8146
|
-
const U = H.point([C,
|
|
8147
|
-
dir: ((V =
|
|
8148
|
-
spd:
|
|
8146
|
+
const U = H.point([C, k], {
|
|
8147
|
+
dir: ((V = L[k].val) == null ? void 0 : V[_]) || ((Z = L[k].dir) == null ? void 0 : Z[_]),
|
|
8148
|
+
spd: L[k].spd[_]
|
|
8149
8149
|
});
|
|
8150
8150
|
I.push(U);
|
|
8151
8151
|
}
|
|
8152
|
-
}) :
|
|
8152
|
+
}) : v.forEach((C, _) => {
|
|
8153
8153
|
var A, N, V, Z;
|
|
8154
8154
|
if (a < 2) {
|
|
8155
8155
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8156
|
-
const U = H.point([C,
|
|
8157
|
-
dir: ((A =
|
|
8158
|
-
spd:
|
|
8156
|
+
const U = H.point([C, k], {
|
|
8157
|
+
dir: ((A = L[k].val) == null ? void 0 : A[_]) || ((N = L[k].dir) == null ? void 0 : N[_]),
|
|
8158
|
+
spd: L[k].spd[_]
|
|
8159
8159
|
});
|
|
8160
8160
|
I.push(U);
|
|
8161
8161
|
}
|
|
8162
8162
|
} else if (C >= r && C <= l && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8163
|
-
const U = H.point([C,
|
|
8164
|
-
dir: ((V =
|
|
8165
|
-
spd:
|
|
8163
|
+
const U = H.point([C, k], {
|
|
8164
|
+
dir: ((V = L[k].val) == null ? void 0 : V[_]) || ((Z = L[k].dir) == null ? void 0 : Z[_]),
|
|
8165
|
+
spd: L[k].spd[_]
|
|
8166
8166
|
});
|
|
8167
8167
|
I.push(U);
|
|
8168
8168
|
}
|
|
@@ -8174,37 +8174,37 @@ const wn = {
|
|
|
8174
8174
|
I = this.weatherLayers[T].data;
|
|
8175
8175
|
else {
|
|
8176
8176
|
O = !0;
|
|
8177
|
-
const
|
|
8178
|
-
if (
|
|
8179
|
-
const
|
|
8180
|
-
for (const
|
|
8181
|
-
const C =
|
|
8182
|
-
for (const
|
|
8183
|
-
|
|
8184
|
-
H.polygon(
|
|
8185
|
-
val: Number(
|
|
8177
|
+
const L = this.weatherLayers[T].raw;
|
|
8178
|
+
if (L) {
|
|
8179
|
+
const k = [];
|
|
8180
|
+
for (const v in L.Polygon) {
|
|
8181
|
+
const C = L.Polygon[v];
|
|
8182
|
+
for (const _ of C)
|
|
8183
|
+
k.push(
|
|
8184
|
+
H.polygon(_, {
|
|
8185
|
+
val: Number(v)
|
|
8186
8186
|
})
|
|
8187
8187
|
);
|
|
8188
8188
|
}
|
|
8189
|
-
for (const
|
|
8190
|
-
const C =
|
|
8191
|
-
for (const
|
|
8192
|
-
|
|
8193
|
-
H.multiPolygon(
|
|
8194
|
-
val: Number(
|
|
8189
|
+
for (const v in L.MultiPolygon) {
|
|
8190
|
+
const C = L.MultiPolygon[v];
|
|
8191
|
+
for (const _ of C)
|
|
8192
|
+
k.push(
|
|
8193
|
+
H.multiPolygon(_, {
|
|
8194
|
+
val: Number(v)
|
|
8195
8195
|
})
|
|
8196
8196
|
);
|
|
8197
8197
|
}
|
|
8198
|
-
for (const
|
|
8199
|
-
const C =
|
|
8200
|
-
for (let
|
|
8201
|
-
|
|
8202
|
-
H.point([C.lng[
|
|
8203
|
-
val: Number(C.val[
|
|
8198
|
+
for (const v in L.Point) {
|
|
8199
|
+
const C = L.Point[v];
|
|
8200
|
+
for (let _ = 0; _ < ((P = C.lng) == null ? void 0 : P.length); _++)
|
|
8201
|
+
k.push(
|
|
8202
|
+
H.point([C.lng[_], v], {
|
|
8203
|
+
val: Number(C.val[_])
|
|
8204
8204
|
})
|
|
8205
8205
|
);
|
|
8206
8206
|
}
|
|
8207
|
-
I = I.concat(
|
|
8207
|
+
I = I.concat(k);
|
|
8208
8208
|
}
|
|
8209
8209
|
}
|
|
8210
8210
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -8213,28 +8213,28 @@ const wn = {
|
|
|
8213
8213
|
I = this.weatherLayers[T].data;
|
|
8214
8214
|
else {
|
|
8215
8215
|
O = !0;
|
|
8216
|
-
const
|
|
8217
|
-
if (
|
|
8218
|
-
const
|
|
8219
|
-
for (const
|
|
8220
|
-
const C =
|
|
8221
|
-
for (const
|
|
8222
|
-
|
|
8223
|
-
H.lineString(
|
|
8224
|
-
val: Number(
|
|
8216
|
+
const L = this.weatherLayers[T].raw;
|
|
8217
|
+
if (L) {
|
|
8218
|
+
const k = [];
|
|
8219
|
+
for (const v in L.LineString) {
|
|
8220
|
+
const C = L.LineString[v];
|
|
8221
|
+
for (const _ of C)
|
|
8222
|
+
k.push(
|
|
8223
|
+
H.lineString(_, {
|
|
8224
|
+
val: Number(v)
|
|
8225
8225
|
})
|
|
8226
8226
|
);
|
|
8227
8227
|
}
|
|
8228
|
-
for (const
|
|
8229
|
-
|
|
8230
|
-
C =
|
|
8231
|
-
H.point([C,
|
|
8232
|
-
val:
|
|
8233
|
-
type:
|
|
8228
|
+
for (const v in L.Point)
|
|
8229
|
+
L.Point[v].lng.forEach((C, _) => {
|
|
8230
|
+
C = K.convertToStdLng(C), k.push(
|
|
8231
|
+
H.point([C, v], {
|
|
8232
|
+
val: L.Point[v].val[_],
|
|
8233
|
+
type: L.Point[v].type[_]
|
|
8234
8234
|
})
|
|
8235
8235
|
);
|
|
8236
8236
|
});
|
|
8237
|
-
I = I.concat(
|
|
8237
|
+
I = I.concat(k);
|
|
8238
8238
|
}
|
|
8239
8239
|
}
|
|
8240
8240
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
@@ -8249,7 +8249,7 @@ const wn = {
|
|
|
8249
8249
|
this.handleDrawWeather4Json();
|
|
8250
8250
|
},
|
|
8251
8251
|
handleBboxClip(t, e) {
|
|
8252
|
-
const o = [], i =
|
|
8252
|
+
const o = [], i = K.convertToStdLng(e._sw.lng), a = K.convertToStdLng(e._ne.lng);
|
|
8253
8253
|
return t.features.forEach((r) => {
|
|
8254
8254
|
if (r.geometry.type !== "Point")
|
|
8255
8255
|
if (i > a) {
|
|
@@ -8281,19 +8281,19 @@ const wn = {
|
|
|
8281
8281
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8282
8282
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 py-2" }, $n = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
|
|
8283
8283
|
function Jn(t, e, o, i, a, r) {
|
|
8284
|
-
var
|
|
8285
|
-
const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"),
|
|
8284
|
+
var J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
|
|
8285
|
+
const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), z = w("VSwitch"), g = w("VCardTitle"), P = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), L = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), v = w("IdmCurrentDirection"), C = w("IdmPrmsl"), _ = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), U = w("IdmIceCover"), ee = w("IdmIceThickness"), Q = w("IdmPrecip3h"), X = w("IdmVisibility"), ne = w("IdmWaterTemp"), se = w("IdmTemp");
|
|
8286
8286
|
return y(), S("div", xn, [
|
|
8287
8287
|
s("div", {
|
|
8288
8288
|
class: "menu-bar-box transition pa-1",
|
|
8289
8289
|
style: ie({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
8290
8290
|
}, [
|
|
8291
|
-
|
|
8291
|
+
p(c, {
|
|
8292
8292
|
text: t.$t("weather.weatherLayers"),
|
|
8293
8293
|
location: "left"
|
|
8294
8294
|
}, {
|
|
8295
8295
|
activator: f(({ props: G }) => [
|
|
8296
|
-
|
|
8296
|
+
p(l, B(G, {
|
|
8297
8297
|
"min-width": "32",
|
|
8298
8298
|
width: "32",
|
|
8299
8299
|
height: "32",
|
|
@@ -8315,12 +8315,12 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8315
8315
|
class: "menu-bar-box pa-1 rounded",
|
|
8316
8316
|
style: ie({ right: a.right + "px" })
|
|
8317
8317
|
}, [
|
|
8318
|
-
|
|
8318
|
+
p(c, {
|
|
8319
8319
|
text: "Legend",
|
|
8320
8320
|
location: "left"
|
|
8321
8321
|
}, {
|
|
8322
8322
|
activator: f(({ props: G }) => [
|
|
8323
|
-
|
|
8323
|
+
p(l, B(G, {
|
|
8324
8324
|
"min-width": "32",
|
|
8325
8325
|
width: "32",
|
|
8326
8326
|
height: "32",
|
|
@@ -8345,10 +8345,10 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8345
8345
|
style: ie({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
8346
8346
|
}, {
|
|
8347
8347
|
default: f(() => [
|
|
8348
|
-
|
|
8348
|
+
p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8349
8349
|
default: f(() => [
|
|
8350
8350
|
e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
8351
|
-
u
|
|
8351
|
+
p(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
8352
8352
|
default: f(() => [
|
|
8353
8353
|
(y(!0), S(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
|
|
8354
8354
|
key: G,
|
|
@@ -8373,11 +8373,11 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8373
8373
|
_: 1,
|
|
8374
8374
|
__: [10]
|
|
8375
8375
|
}),
|
|
8376
|
-
|
|
8377
|
-
|
|
8376
|
+
p(b, { vertical: "" }),
|
|
8377
|
+
p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8378
8378
|
default: f(() => [
|
|
8379
8379
|
e[11] || (e[11] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
8380
|
-
u
|
|
8380
|
+
p(u, {
|
|
8381
8381
|
class: "ma-0 ml-1",
|
|
8382
8382
|
style: { width: "100px" }
|
|
8383
8383
|
}, {
|
|
@@ -8405,11 +8405,11 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8405
8405
|
_: 1,
|
|
8406
8406
|
__: [11]
|
|
8407
8407
|
}),
|
|
8408
|
-
|
|
8409
|
-
|
|
8408
|
+
p(b, { vertical: "" }),
|
|
8409
|
+
p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8410
8410
|
default: f(() => [
|
|
8411
8411
|
e[12] || (e[12] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
8412
|
-
u
|
|
8412
|
+
p(u, {
|
|
8413
8413
|
class: "ma-0 ml-n5",
|
|
8414
8414
|
style: { width: "110px" }
|
|
8415
8415
|
}, {
|
|
@@ -8450,7 +8450,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8450
8450
|
s("div", Mn, [
|
|
8451
8451
|
s("div", In, [
|
|
8452
8452
|
s("div", Dn, m(t.$t("weather.weather")), 1),
|
|
8453
|
-
|
|
8453
|
+
p(z, {
|
|
8454
8454
|
modelValue: a.autoActive,
|
|
8455
8455
|
"onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
|
|
8456
8456
|
class: "small-switch",
|
|
@@ -8460,7 +8460,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8460
8460
|
"hide-details": ""
|
|
8461
8461
|
}, null, 8, ["modelValue"])
|
|
8462
8462
|
]),
|
|
8463
|
-
|
|
8463
|
+
p(l, {
|
|
8464
8464
|
icon: "",
|
|
8465
8465
|
density: "compact",
|
|
8466
8466
|
variant: "plain",
|
|
@@ -8477,26 +8477,26 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8477
8477
|
s("div", {
|
|
8478
8478
|
class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
8479
8479
|
}, [
|
|
8480
|
-
|
|
8480
|
+
p(x, {
|
|
8481
8481
|
class: "block-bg mx-auto mb-3",
|
|
8482
8482
|
elevation: "0"
|
|
8483
8483
|
}, {
|
|
8484
8484
|
default: f(() => [
|
|
8485
|
-
|
|
8485
|
+
p(P, { class: "border-b-thin" }, {
|
|
8486
8486
|
default: f(() => [
|
|
8487
|
-
|
|
8487
|
+
p(g, {
|
|
8488
8488
|
class: "text-subtitle-1 font-weight-medium",
|
|
8489
8489
|
style: { "font-size": "16px !important" }
|
|
8490
8490
|
}, {
|
|
8491
8491
|
default: f(() => [
|
|
8492
|
-
|
|
8492
|
+
$(m(t.$t("weather.overlays")), 1)
|
|
8493
8493
|
]),
|
|
8494
8494
|
_: 1
|
|
8495
8495
|
})
|
|
8496
8496
|
]),
|
|
8497
8497
|
_: 1
|
|
8498
8498
|
}),
|
|
8499
|
-
|
|
8499
|
+
p(h, { class: "py-2" }, {
|
|
8500
8500
|
default: f(() => [
|
|
8501
8501
|
(y(!0), S(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
|
|
8502
8502
|
key: G.key,
|
|
@@ -8517,31 +8517,31 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8517
8517
|
]),
|
|
8518
8518
|
_: 1
|
|
8519
8519
|
}),
|
|
8520
|
-
|
|
8520
|
+
p(x, {
|
|
8521
8521
|
class: "block-bg mx-auto mb-3",
|
|
8522
8522
|
elevation: "0"
|
|
8523
8523
|
}, {
|
|
8524
8524
|
default: f(() => [
|
|
8525
|
-
|
|
8525
|
+
p(P, { class: "border-b-thin" }, {
|
|
8526
8526
|
default: f(() => [
|
|
8527
|
-
|
|
8527
|
+
p(g, {
|
|
8528
8528
|
class: "text-subtitle-1 font-weight-medium",
|
|
8529
8529
|
style: { "font-size": "16px !important" }
|
|
8530
8530
|
}, {
|
|
8531
8531
|
default: f(() => [
|
|
8532
|
-
|
|
8532
|
+
$(m(t.$t("weather.renders")), 1)
|
|
8533
8533
|
]),
|
|
8534
8534
|
_: 1
|
|
8535
8535
|
})
|
|
8536
8536
|
]),
|
|
8537
8537
|
_: 1
|
|
8538
8538
|
}),
|
|
8539
|
-
|
|
8539
|
+
p(h, { class: "py-2" }, {
|
|
8540
8540
|
default: f(() => [
|
|
8541
8541
|
(y(!0), S(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), S(be, {
|
|
8542
8542
|
key: G.key
|
|
8543
8543
|
}, [
|
|
8544
|
-
|
|
8544
|
+
p(O, {
|
|
8545
8545
|
modelValue: a.renderKey,
|
|
8546
8546
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
8547
8547
|
label: t.$t(`weather.${G.locale}`),
|
|
@@ -8556,7 +8556,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8556
8556
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
8557
8557
|
a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), S("div", An, [
|
|
8558
8558
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8559
|
-
|
|
8559
|
+
p(z, {
|
|
8560
8560
|
modelValue: a.showWindParticle,
|
|
8561
8561
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
8562
8562
|
label: "",
|
|
@@ -8571,7 +8571,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8571
8571
|
])) : D("", !0),
|
|
8572
8572
|
a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), S("div", Rn, [
|
|
8573
8573
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8574
|
-
|
|
8574
|
+
p(z, {
|
|
8575
8575
|
modelValue: a.showCurrentParticle,
|
|
8576
8576
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
8577
8577
|
label: "",
|
|
@@ -8596,7 +8596,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8596
8596
|
disabled: !a.autoActive
|
|
8597
8597
|
}, {
|
|
8598
8598
|
default: f(() => [
|
|
8599
|
-
|
|
8599
|
+
p(l, {
|
|
8600
8600
|
density: "compact",
|
|
8601
8601
|
height: "30",
|
|
8602
8602
|
value: "sig-wave",
|
|
@@ -8606,11 +8606,11 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8606
8606
|
disabled: !a.autoActive
|
|
8607
8607
|
}, {
|
|
8608
8608
|
default: f(() => [
|
|
8609
|
-
|
|
8609
|
+
$(m(t.$t("weather.significant")), 1)
|
|
8610
8610
|
]),
|
|
8611
8611
|
_: 1
|
|
8612
8612
|
}, 8, ["color", "disabled"]),
|
|
8613
|
-
|
|
8613
|
+
p(l, {
|
|
8614
8614
|
density: "compact",
|
|
8615
8615
|
height: "30",
|
|
8616
8616
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -8620,7 +8620,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8620
8620
|
value: "swell"
|
|
8621
8621
|
}, {
|
|
8622
8622
|
default: f(() => [
|
|
8623
|
-
|
|
8623
|
+
$(m(t.$t("weather.swell")), 1)
|
|
8624
8624
|
]),
|
|
8625
8625
|
_: 1
|
|
8626
8626
|
}, 8, ["color", "disabled"])
|
|
@@ -8639,7 +8639,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8639
8639
|
disabled: !a.autoActive
|
|
8640
8640
|
}, {
|
|
8641
8641
|
default: f(() => [
|
|
8642
|
-
|
|
8642
|
+
p(l, {
|
|
8643
8643
|
density: "compact",
|
|
8644
8644
|
height: "30",
|
|
8645
8645
|
value: "ice-cover",
|
|
@@ -8649,11 +8649,11 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8649
8649
|
disabled: !a.autoActive
|
|
8650
8650
|
}, {
|
|
8651
8651
|
default: f(() => [
|
|
8652
|
-
|
|
8652
|
+
$(m(t.$t("weather.coverage")), 1)
|
|
8653
8653
|
]),
|
|
8654
8654
|
_: 1
|
|
8655
8655
|
}, 8, ["color", "disabled"]),
|
|
8656
|
-
|
|
8656
|
+
p(l, {
|
|
8657
8657
|
density: "compact",
|
|
8658
8658
|
height: "30",
|
|
8659
8659
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -8663,7 +8663,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8663
8663
|
value: "ice-thickness"
|
|
8664
8664
|
}, {
|
|
8665
8665
|
default: f(() => [
|
|
8666
|
-
|
|
8666
|
+
$(m(t.$t("weather.thickness")), 1)
|
|
8667
8667
|
]),
|
|
8668
8668
|
_: 1
|
|
8669
8669
|
}, 8, ["color", "disabled"])
|
|
@@ -8677,26 +8677,26 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8677
8677
|
]),
|
|
8678
8678
|
_: 1
|
|
8679
8679
|
}),
|
|
8680
|
-
|
|
8680
|
+
p(x, {
|
|
8681
8681
|
class: "block-bg mx-auto mb-3",
|
|
8682
8682
|
elevation: "0"
|
|
8683
8683
|
}, {
|
|
8684
8684
|
default: f(() => [
|
|
8685
|
-
|
|
8685
|
+
p(P, { class: "border-b-thin" }, {
|
|
8686
8686
|
default: f(() => [
|
|
8687
|
-
|
|
8687
|
+
p(g, {
|
|
8688
8688
|
class: "text-subtitle-1 font-weight-medium",
|
|
8689
8689
|
style: { "font-size": "16px !important" }
|
|
8690
8690
|
}, {
|
|
8691
8691
|
default: f(() => [
|
|
8692
|
-
|
|
8692
|
+
$(m(t.$t("weather.forecastModel")), 1)
|
|
8693
8693
|
]),
|
|
8694
8694
|
_: 1
|
|
8695
8695
|
})
|
|
8696
8696
|
]),
|
|
8697
8697
|
_: 1
|
|
8698
8698
|
}),
|
|
8699
|
-
|
|
8699
|
+
p(h, { class: "" }, {
|
|
8700
8700
|
default: f(() => {
|
|
8701
8701
|
var G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo;
|
|
8702
8702
|
return [
|
|
@@ -8707,7 +8707,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8707
8707
|
s("div", Nn, m((E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + m((Ze = (Ve = (q = a.models) == null ? void 0 : q.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Xe = (qe = (Te = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : qe.meta) == null ? void 0 : Xe.days) + m(t.$t("units.days")), 1),
|
|
8708
8708
|
s("div", Fn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8709
8709
|
s("div", Hn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Je = (Qe = (Ke = ($e = a.models) == null ? void 0 : $e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
8710
|
-
|
|
8710
|
+
p(b),
|
|
8711
8711
|
s("div", Gn, m(t.$t("weather.wave")), 1),
|
|
8712
8712
|
s("div", Wn, m((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) + " " + m((lt = (st = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : st.NOAA) == null ? void 0 : lt.spatialResolution) + m(t.$t("units.km")) + " " + m((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) + m(t.$t("units.days")), 1),
|
|
8713
8713
|
s("div", Un, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -8715,7 +8715,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8715
8715
|
s("div", Zn, m((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) + " " + m((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) + m(t.$t("units.km")) + " " + m((Mt = (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 : Mt.days) + m(t.$t("units.days")), 1),
|
|
8716
8716
|
s("div", Yn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8717
8717
|
s("div", qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
8718
|
-
|
|
8718
|
+
p(b),
|
|
8719
8719
|
s("div", Xn, m(t.$t("weather.currents")), 1),
|
|
8720
8720
|
s("div", $n, m((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) + " " + m((Wt = (Gt = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Gt.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((qt = (Yt = (Zt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.days) + m(t.$t("units.days")), 1),
|
|
8721
8721
|
s("div", Kn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -8729,16 +8729,16 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8729
8729
|
})
|
|
8730
8730
|
], 2)
|
|
8731
8731
|
], 6),
|
|
8732
|
-
o.map ? (y(), R(
|
|
8732
|
+
o.map ? (y(), R(L, B({
|
|
8733
8733
|
key: 1,
|
|
8734
8734
|
ref: "windBarb",
|
|
8735
8735
|
map: o.map,
|
|
8736
8736
|
"map-feather": o.mapFeather,
|
|
8737
8737
|
"before-layer": "empty-layer-3",
|
|
8738
|
-
wind: (
|
|
8738
|
+
wind: (J = a.weatherLayers) == null ? void 0 : J.wind,
|
|
8739
8739
|
"menu-toggle": o.menuToggle
|
|
8740
8740
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
8741
|
-
o.map ? (y(), R(
|
|
8741
|
+
o.map ? (y(), R(k, B({
|
|
8742
8742
|
key: 2,
|
|
8743
8743
|
map: o.map,
|
|
8744
8744
|
"before-layer": "empty-layer-2",
|
|
@@ -8746,26 +8746,26 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8746
8746
|
"menu-toggle": o.menuToggle,
|
|
8747
8747
|
"active-weather-layers": a.activeWeatherLayers
|
|
8748
8748
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
8749
|
-
o.map ? (y(), R(
|
|
8749
|
+
o.map ? (y(), R(v, B({
|
|
8750
8750
|
key: 3,
|
|
8751
8751
|
map: o.map,
|
|
8752
8752
|
"map-feather": o.mapFeather,
|
|
8753
8753
|
"before-layer": "empty-layer-2",
|
|
8754
|
-
current: (
|
|
8754
|
+
current: (he = a.weatherLayers) == null ? void 0 : he.current,
|
|
8755
8755
|
"menu-toggle": o.menuToggle
|
|
8756
8756
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
8757
8757
|
o.map ? (y(), R(C, B({
|
|
8758
8758
|
key: 4,
|
|
8759
8759
|
map: o.map,
|
|
8760
8760
|
"before-layer": "empty-layer-2",
|
|
8761
|
-
prmsl: (
|
|
8761
|
+
prmsl: (ce = a.weatherLayers) == null ? void 0 : ce.prmsl,
|
|
8762
8762
|
"menu-toggle": o.menuToggle,
|
|
8763
8763
|
"active-weather-layers": a.activeWeatherLayers
|
|
8764
8764
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
8765
|
-
o.map ? (y(), R(
|
|
8765
|
+
o.map ? (y(), R(_, B({
|
|
8766
8766
|
key: 5,
|
|
8767
8767
|
viewport: a.viewport,
|
|
8768
|
-
factor: (
|
|
8768
|
+
factor: (pe = a.weatherLayers) == null ? void 0 : pe["wind-particle"],
|
|
8769
8769
|
"menu-toggle": o.menuToggle
|
|
8770
8770
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8771
8771
|
o.map ? (y(), R(A, B({
|
|
@@ -8784,7 +8784,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8784
8784
|
key: 8,
|
|
8785
8785
|
map: o.map,
|
|
8786
8786
|
viewport: a.viewport,
|
|
8787
|
-
factor: (
|
|
8787
|
+
factor: (me = a.weatherLayers) == null ? void 0 : me.swell,
|
|
8788
8788
|
"menu-toggle": o.menuToggle,
|
|
8789
8789
|
"active-weather-layers": a.activeWeatherLayers
|
|
8790
8790
|
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
@@ -8806,25 +8806,25 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8806
8806
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
8807
8807
|
"menu-toggle": o.menuToggle
|
|
8808
8808
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8809
|
-
o.map ? (y(), R(
|
|
8809
|
+
o.map ? (y(), R(Q, B({
|
|
8810
8810
|
key: 12,
|
|
8811
8811
|
viewport: a.viewport,
|
|
8812
8812
|
factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
|
|
8813
8813
|
"menu-toggle": o.menuToggle
|
|
8814
8814
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8815
|
-
o.map ? (y(), R(
|
|
8815
|
+
o.map ? (y(), R(X, B({
|
|
8816
8816
|
key: 13,
|
|
8817
8817
|
viewport: a.viewport,
|
|
8818
8818
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
8819
8819
|
"menu-toggle": o.menuToggle
|
|
8820
8820
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8821
|
-
o.map ? (y(), R(
|
|
8821
|
+
o.map ? (y(), R(ne, B({
|
|
8822
8822
|
key: 14,
|
|
8823
8823
|
viewport: a.viewport,
|
|
8824
8824
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
8825
8825
|
"menu-toggle": o.menuToggle
|
|
8826
8826
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8827
|
-
o.map ? (y(), R(
|
|
8827
|
+
o.map ? (y(), R(se, B({
|
|
8828
8828
|
key: 15,
|
|
8829
8829
|
viewport: a.viewport,
|
|
8830
8830
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
|
|
@@ -9150,19 +9150,19 @@ class Za {
|
|
|
9150
9150
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
9151
9151
|
for (const c of a) {
|
|
9152
9152
|
let n = to.find((h) => {
|
|
9153
|
-
var b, x,
|
|
9154
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((
|
|
9155
|
-
}),
|
|
9156
|
-
var b, x,
|
|
9157
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((
|
|
9153
|
+
var b, x, z;
|
|
9154
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
9155
|
+
}), u = oo.find((h) => {
|
|
9156
|
+
var b, x, z;
|
|
9157
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
9158
9158
|
});
|
|
9159
9159
|
n = n || to.find((h) => {
|
|
9160
9160
|
var b, x;
|
|
9161
|
-
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x =
|
|
9162
|
-
}),
|
|
9161
|
+
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = u == null ? void 0 : u.alias) == null ? void 0 : x.toLowerCase());
|
|
9162
|
+
}), u = u || oo.find((h) => {
|
|
9163
9163
|
var b, x;
|
|
9164
9164
|
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = n == null ? void 0 : n.alias) == null ? void 0 : x.toLowerCase());
|
|
9165
|
-
}), n = n || to[0],
|
|
9165
|
+
}), n = n || to[0], u = u || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = u.models) != null && i.includes(c) ? c : u.model);
|
|
9166
9166
|
}
|
|
9167
9167
|
return {
|
|
9168
9168
|
weatherModels: r.join(","),
|
|
@@ -9179,8 +9179,8 @@ class Za {
|
|
|
9179
9179
|
}), a;
|
|
9180
9180
|
}
|
|
9181
9181
|
static pickHourly(e, o) {
|
|
9182
|
-
var i, a, r, l, c, n,
|
|
9183
|
-
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (
|
|
9182
|
+
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
|
|
9183
|
+
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
|
|
9184
9184
|
if (ue.isBetween(oe, re, "millisecond", "[]")) {
|
|
9185
9185
|
const j = ue.utc().diff(oe, "h", !1);
|
|
9186
9186
|
let ye, Ie;
|
|
@@ -9193,9 +9193,9 @@ class Za {
|
|
|
9193
9193
|
for (let Te = j - (j - 1) % 6; Te <= j; Te++)
|
|
9194
9194
|
Ee += (x = q == null ? void 0 : q.precipitation) == null ? void 0 : x.at(Te);
|
|
9195
9195
|
ye = {
|
|
9196
|
-
temp: (
|
|
9196
|
+
temp: (z = q == null ? void 0 : q.temperature_2m) == null ? void 0 : z.at(j),
|
|
9197
9197
|
apparentTemp: (g = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : g.at(j),
|
|
9198
|
-
rh: (
|
|
9198
|
+
rh: (P = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : P.at(j),
|
|
9199
9199
|
dp: (T = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : T.at(j),
|
|
9200
9200
|
precip: {
|
|
9201
9201
|
probability: (O = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : O.at(j),
|
|
@@ -9203,12 +9203,12 @@ class Za {
|
|
|
9203
9203
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9204
9204
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
9205
9205
|
},
|
|
9206
|
-
pmsl: (
|
|
9207
|
-
psurf: (
|
|
9208
|
-
code: (
|
|
9206
|
+
pmsl: (L = q == null ? void 0 : q.pressure_msl) == null ? void 0 : L.at(j),
|
|
9207
|
+
psurf: (k = q == null ? void 0 : q.surface_pressure) == null ? void 0 : k.at(j),
|
|
9208
|
+
code: (v = q == null ? void 0 : q.weather_code) == null ? void 0 : v.at(j),
|
|
9209
9209
|
visibility: this.m2nm((C = q == null ? void 0 : q.visibility) == null ? void 0 : C.at(j)),
|
|
9210
9210
|
wind: {
|
|
9211
|
-
speed: (
|
|
9211
|
+
speed: (_ = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : _.at(j),
|
|
9212
9212
|
kts: (A = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : A.at(j),
|
|
9213
9213
|
degree: (N = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : N.at(j),
|
|
9214
9214
|
bearing: ((V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j)) !== null ? (((Z = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : Z.at(j)) + 180) % 360 : null,
|
|
@@ -9231,20 +9231,20 @@ class Za {
|
|
|
9231
9231
|
Ie = {
|
|
9232
9232
|
wave: {
|
|
9233
9233
|
sig: {
|
|
9234
|
-
height: (
|
|
9235
|
-
degree: (
|
|
9236
|
-
bearing: ((
|
|
9237
|
-
period: (
|
|
9234
|
+
height: (Q = E == null ? void 0 : E.wave_height) == null ? void 0 : Q.at(j),
|
|
9235
|
+
degree: (X = E == null ? void 0 : E.wave_direction) == null ? void 0 : X.at(j),
|
|
9236
|
+
bearing: ((ne = E == null ? void 0 : E.wave_direction) == null ? void 0 : ne.at(j)) !== null ? (((se = E == null ? void 0 : E.wave_direction) == null ? void 0 : se.at(j)) + 180) % 360 : null,
|
|
9237
|
+
period: (J = E == null ? void 0 : E.wave_period) == null ? void 0 : J.at(j)
|
|
9238
9238
|
},
|
|
9239
9239
|
swell: {
|
|
9240
9240
|
height: (ae = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ae.at(j),
|
|
9241
|
-
degree: (
|
|
9242
|
-
bearing: ((
|
|
9241
|
+
degree: (he = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : he.at(j),
|
|
9242
|
+
bearing: ((ce = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : ce.at(j)) !== null ? (((pe = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : pe.at(j)) + 180) % 360 : null,
|
|
9243
9243
|
period: (ge = E == null ? void 0 : E.swell_wave_period) == null ? void 0 : ge.at(j),
|
|
9244
9244
|
peakPeriod: (F = E == null ? void 0 : E.swell_wave_peak_period) == null ? void 0 : F.at(j)
|
|
9245
9245
|
},
|
|
9246
9246
|
wd: {
|
|
9247
|
-
height: (
|
|
9247
|
+
height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(j),
|
|
9248
9248
|
degree: (xe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : xe.at(j),
|
|
9249
9249
|
bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(j)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(j)) + 180) % 360 : null,
|
|
9250
9250
|
period: (De = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : De.at(j),
|
|
@@ -9266,7 +9266,7 @@ class Za {
|
|
|
9266
9266
|
return Oe;
|
|
9267
9267
|
}
|
|
9268
9268
|
static toLegacy(e) {
|
|
9269
|
-
var o, i, a, r, l, c, n,
|
|
9269
|
+
var o, i, a, r, l, c, n, u, h, b;
|
|
9270
9270
|
return {
|
|
9271
9271
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
9272
9272
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -9276,7 +9276,7 @@ class Za {
|
|
|
9276
9276
|
kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
|
|
9277
9277
|
},
|
|
9278
9278
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
9279
|
-
code: (
|
|
9279
|
+
code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
|
|
9280
9280
|
name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
|
|
9281
9281
|
url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
|
|
9282
9282
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -9288,7 +9288,7 @@ class Za {
|
|
|
9288
9288
|
};
|
|
9289
9289
|
}
|
|
9290
9290
|
static pickDaily(e, o) {
|
|
9291
|
-
var i, a, r, l, c, n,
|
|
9291
|
+
var i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
|
|
9292
9292
|
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9293
9293
|
if (Re.isBetween(te, He, "millisecond", "[]")) {
|
|
9294
9294
|
let ue, fe;
|
|
@@ -9297,28 +9297,28 @@ class Za {
|
|
|
9297
9297
|
for (const Ce of _e) {
|
|
9298
9298
|
const oe = Ce.daily;
|
|
9299
9299
|
ue = {
|
|
9300
|
-
code: (
|
|
9300
|
+
code: (u = oe.weather_code) == null ? void 0 : u.at(W),
|
|
9301
9301
|
temp: {
|
|
9302
9302
|
max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(W),
|
|
9303
9303
|
min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
9304
9304
|
mean: (x = oe.temperature_2m_mean) == null ? void 0 : x.at(W)
|
|
9305
9305
|
},
|
|
9306
9306
|
apparentTemp: {
|
|
9307
|
-
max: (
|
|
9307
|
+
max: (z = oe.apparent_temperature_max) == null ? void 0 : z.at(W),
|
|
9308
9308
|
min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(W)
|
|
9309
9309
|
},
|
|
9310
9310
|
precip: {
|
|
9311
|
-
sum: (
|
|
9311
|
+
sum: (P = oe.precipitation_sum) == null ? void 0 : P.at(W),
|
|
9312
9312
|
rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(W),
|
|
9313
9313
|
snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(W),
|
|
9314
9314
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(W),
|
|
9315
|
-
hours: (
|
|
9316
|
-
probability: (
|
|
9315
|
+
hours: (L = oe.precipitation_hours) == null ? void 0 : L.at(W),
|
|
9316
|
+
probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(W)
|
|
9317
9317
|
},
|
|
9318
9318
|
rh: {
|
|
9319
|
-
max: (
|
|
9319
|
+
max: (v = oe.relative_humidity_2m_max) == null ? void 0 : v.at(W),
|
|
9320
9320
|
min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
9321
|
-
mean: (
|
|
9321
|
+
mean: (_ = oe.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
|
|
9322
9322
|
},
|
|
9323
9323
|
wind: {
|
|
9324
9324
|
speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(W),
|
|
@@ -9342,21 +9342,21 @@ class Za {
|
|
|
9342
9342
|
fe = {
|
|
9343
9343
|
wave: {
|
|
9344
9344
|
sig: {
|
|
9345
|
-
height: (
|
|
9346
|
-
degree: (
|
|
9347
|
-
period: (
|
|
9348
|
-
bearing: ((
|
|
9345
|
+
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(W),
|
|
9346
|
+
degree: (X = re.wave_direction_dominant) == null ? void 0 : X.at(W),
|
|
9347
|
+
period: (ne = re.wave_period_max) == null ? void 0 : ne.at(W),
|
|
9348
|
+
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(W)) !== null ? (((J = re.wave_direction_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
9349
9349
|
},
|
|
9350
9350
|
swell: {
|
|
9351
9351
|
height: (ae = re.swell_wave_height_max) == null ? void 0 : ae.at(W),
|
|
9352
|
-
degree: (
|
|
9353
|
-
period: (
|
|
9354
|
-
peakPeriod: (
|
|
9352
|
+
degree: (he = re.swell_wave_direction_dominant) == null ? void 0 : he.at(W),
|
|
9353
|
+
period: (ce = re.swell_wave_period_max) == null ? void 0 : ce.at(W),
|
|
9354
|
+
peakPeriod: (pe = re.swell_wave_peak_period_max) == null ? void 0 : pe.at(W),
|
|
9355
9355
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
9356
9356
|
bearing: ((ge = re.swell_wave_direction_dominant) == null ? void 0 : ge.at(W)) !== null ? ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) % 360 : null
|
|
9357
9357
|
},
|
|
9358
9358
|
wd: {
|
|
9359
|
-
height: (
|
|
9359
|
+
height: (me = re.wind_wave_height_max) == null ? void 0 : me.at(W),
|
|
9360
9360
|
degree: (xe = re.wind_wave_direction_dominant) == null ? void 0 : xe.at(W),
|
|
9361
9361
|
period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(W),
|
|
9362
9362
|
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
|
|
@@ -9904,7 +9904,7 @@ const tc = {
|
|
|
9904
9904
|
};
|
|
9905
9905
|
},
|
|
9906
9906
|
computePosition() {
|
|
9907
|
-
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
9907
|
+
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
9908
9908
|
}
|
|
9909
9909
|
},
|
|
9910
9910
|
watch: {
|
|
@@ -9967,17 +9967,17 @@ const tc = {
|
|
|
9967
9967
|
}
|
|
9968
9968
|
});
|
|
9969
9969
|
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
9970
|
-
const
|
|
9971
|
-
await Se.get(
|
|
9970
|
+
const u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
|
|
9971
|
+
await Se.get(u.tropicals, {
|
|
9972
9972
|
headers: {
|
|
9973
9973
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9974
9974
|
key: "tropicals"
|
|
9975
9975
|
},
|
|
9976
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9976
|
+
responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
|
|
9977
9977
|
}).then((h) => {
|
|
9978
|
-
var
|
|
9979
|
-
const b = Va.convert2Geojson(((
|
|
9980
|
-
((
|
|
9978
|
+
var z, g, P;
|
|
9979
|
+
const b = Va.convert2Geojson(((z = h == null ? void 0 : h.data) == null ? void 0 : z.data) || (h == null ? void 0 : h.data));
|
|
9980
|
+
((P = (g = h == null ? void 0 : h.config) == null ? void 0 : g.headers) == null ? void 0 : P.key) && b && (this.tropicals = {
|
|
9981
9981
|
data: b,
|
|
9982
9982
|
active: !0,
|
|
9983
9983
|
cached: !0,
|
|
@@ -9995,43 +9995,43 @@ const tc = {
|
|
|
9995
9995
|
handleRefresh() {
|
|
9996
9996
|
var e, o;
|
|
9997
9997
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
9998
|
-
var a, r, l, c, n,
|
|
9998
|
+
var a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k;
|
|
9999
9999
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10000
|
-
let
|
|
10000
|
+
let v = "";
|
|
10001
10001
|
switch (!0) {
|
|
10002
|
-
case ((r = i.properties.wind) == null ? void 0 : r.kts) < 32:
|
|
10003
|
-
|
|
10002
|
+
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
10003
|
+
v = "TD";
|
|
10004
10004
|
break;
|
|
10005
|
-
case ((
|
|
10006
|
-
|
|
10005
|
+
case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((n = i.properties) == null ? void 0 : n.kts) < 47):
|
|
10006
|
+
v = "TS";
|
|
10007
10007
|
break;
|
|
10008
|
-
case ((
|
|
10009
|
-
|
|
10008
|
+
case (((u = i.properties.wind) == null ? void 0 : u.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
|
|
10009
|
+
v = "STS";
|
|
10010
10010
|
break;
|
|
10011
|
-
case ((
|
|
10012
|
-
|
|
10011
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((x = i.properties) == null ? void 0 : x.kts) < 79):
|
|
10012
|
+
v = "TY";
|
|
10013
10013
|
break;
|
|
10014
|
-
case ((
|
|
10015
|
-
|
|
10014
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
|
|
10015
|
+
v = "STY";
|
|
10016
10016
|
break;
|
|
10017
|
-
case ((
|
|
10018
|
-
|
|
10017
|
+
case (((P = i.properties.wind) == null ? void 0 : P.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
10018
|
+
v = "Super TY";
|
|
10019
10019
|
break;
|
|
10020
10020
|
default:
|
|
10021
|
-
|
|
10021
|
+
v = "Super TY";
|
|
10022
10022
|
break;
|
|
10023
10023
|
}
|
|
10024
|
-
i.properties.level =
|
|
10024
|
+
i.properties.level = v;
|
|
10025
10025
|
}
|
|
10026
|
-
((
|
|
10026
|
+
((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (L = M(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
10027
10027
|
}), this.handleInit();
|
|
10028
10028
|
},
|
|
10029
10029
|
handleInit() {
|
|
10030
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10031
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (
|
|
10030
|
+
var t, e, o, i, a, r, l, c, n, u, h, b;
|
|
10031
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (u = this.$parent) == null ? void 0 : u.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
|
|
10032
10032
|
},
|
|
10033
10033
|
handleRender() {
|
|
10034
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10034
|
+
var t, e, o, i, a, r, l, c, n, u;
|
|
10035
10035
|
if (this.tropicals && this.map) {
|
|
10036
10036
|
const h = (/* @__PURE__ */ new Date()).valueOf();
|
|
10037
10037
|
let b = 0, x = 0;
|
|
@@ -10134,7 +10134,7 @@ const tc = {
|
|
|
10134
10134
|
}
|
|
10135
10135
|
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.clusterSource, {
|
|
10136
10136
|
type: "geojson",
|
|
10137
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
10137
|
+
data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
10138
10138
|
// cluster: true,
|
|
10139
10139
|
// clusterRadius: 10, // 聚合半径
|
|
10140
10140
|
}), this.map.addLayer({
|
|
@@ -10249,8 +10249,8 @@ const tc = {
|
|
|
10249
10249
|
"text-halo-width": 1
|
|
10250
10250
|
}
|
|
10251
10251
|
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x));
|
|
10252
|
-
const
|
|
10253
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
10252
|
+
const z = Va.interpolate(this.tropicals, 1);
|
|
10253
|
+
this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
|
|
10254
10254
|
}
|
|
10255
10255
|
},
|
|
10256
10256
|
handleClear() {
|
|
@@ -10258,14 +10258,14 @@ const tc = {
|
|
|
10258
10258
|
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((a) => a == null ? void 0 : a.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)), (e = this.map) == null || e.off("click", this.clickLayers, 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.handleCloseInfoMarker();
|
|
10259
10259
|
},
|
|
10260
10260
|
handleDateChange() {
|
|
10261
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10262
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
10263
|
-
const
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
10261
|
+
var t, e, o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee;
|
|
10262
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10263
|
+
const Q = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), X = this.interpolateData.filter((J) => J.properties.date === (Q == null ? void 0 : Q.format()) && !J.properties.disabled), ne = this.handleComputePolygons(X), se = H.featureCollection([...X]);
|
|
10264
|
+
ne.forEach((J) => {
|
|
10265
|
+
se.features.push(J);
|
|
10266
|
+
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
10267
10267
|
type: "geojson",
|
|
10268
|
-
data:
|
|
10268
|
+
data: se
|
|
10269
10269
|
}), (r = this.map) == null || r.addLayer({
|
|
10270
10270
|
id: this.interpolateLineLayer,
|
|
10271
10271
|
type: "line",
|
|
@@ -10277,11 +10277,11 @@ const tc = {
|
|
|
10277
10277
|
"line-width": 1
|
|
10278
10278
|
}
|
|
10279
10279
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10280
|
-
for (const
|
|
10281
|
-
if (!
|
|
10280
|
+
for (const J of X)
|
|
10281
|
+
if (!J.properties.disabled) {
|
|
10282
10282
|
let ae = "#f44336";
|
|
10283
|
-
((c = (l =
|
|
10284
|
-
const
|
|
10283
|
+
((c = (l = J.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = J.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = J.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((z = (x = J.properties) == null ? void 0 : x.wind) == null ? void 0 : z.kts) < 47 ? ae = "#f2f202" : ((P = (g = J.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = J.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((L = (I = J.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (k = J.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 79 ? ae = "#f44336" : ((_ = (C = J.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((N = (A = J.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = J.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
10284
|
+
const he = `<svg t="1719918955501"
|
|
10285
10285
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10286
10286
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
10287
10287
|
<path
|
|
@@ -10295,36 +10295,36 @@ const tc = {
|
|
|
10295
10295
|
<path
|
|
10296
10296
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
10297
10297
|
fill="#ffffff" p-id="18386"></path>
|
|
10298
|
-
</svg>`,
|
|
10299
|
-
|
|
10300
|
-
const
|
|
10301
|
-
this.interpolateMarkers.push(
|
|
10298
|
+
</svg>`, ce = document.createElement("div");
|
|
10299
|
+
ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${J.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
10300
|
+
const pe = new ve.Marker(ce).setLngLat(J.geometry.coordinates).addTo(this.map);
|
|
10301
|
+
this.interpolateMarkers.push(pe);
|
|
10302
10302
|
}
|
|
10303
10303
|
} else
|
|
10304
10304
|
(U = this.map) != null && U.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
|
|
10305
10305
|
},
|
|
10306
10306
|
handleClick(t) {
|
|
10307
|
-
var a, r, l, c, n,
|
|
10307
|
+
var a, r, l, c, n, u, h, b, x;
|
|
10308
10308
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
10309
|
-
(
|
|
10309
|
+
(z) => {
|
|
10310
10310
|
var g;
|
|
10311
|
-
return
|
|
10311
|
+
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
10312
10312
|
}
|
|
10313
10313
|
), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
10314
|
-
(
|
|
10314
|
+
(z) => {
|
|
10315
10315
|
var g;
|
|
10316
|
-
return
|
|
10316
|
+
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
10317
10317
|
}
|
|
10318
10318
|
);
|
|
10319
10319
|
this.activeTropicals = {
|
|
10320
10320
|
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
10321
|
-
nameCn: (
|
|
10322
|
-
forecasts: o.map((
|
|
10321
|
+
nameCn: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.nameCn,
|
|
10322
|
+
forecasts: o.map((z) => z.properties),
|
|
10323
10323
|
history: (h = i[0]) == null ? void 0 : h.properties,
|
|
10324
10324
|
showCircle: (x = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : x.showCircle
|
|
10325
10325
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
10326
|
-
const
|
|
10327
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(
|
|
10326
|
+
const z = document.getElementById("idm-tropical-gl4-info");
|
|
10327
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(z).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
10328
10328
|
});
|
|
10329
10329
|
},
|
|
10330
10330
|
handleCloseInfoMarker() {
|
|
@@ -10337,10 +10337,10 @@ const tc = {
|
|
|
10337
10337
|
var i, a, r, l, c, n;
|
|
10338
10338
|
t.disabled = !t.disabled;
|
|
10339
10339
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
10340
|
-
o.forEach((
|
|
10341
|
-
|
|
10342
|
-
}), this.interpolateData.forEach((
|
|
10343
|
-
|
|
10340
|
+
o.forEach((u) => {
|
|
10341
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
10342
|
+
}), this.interpolateData.forEach((u) => {
|
|
10343
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
10344
10344
|
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(H.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(o)), this.handleDateChange();
|
|
10345
10345
|
},
|
|
10346
10346
|
handleStrikeProbability(t) {
|
|
@@ -10417,14 +10417,14 @@ const tc = {
|
|
|
10417
10417
|
)[0];
|
|
10418
10418
|
this.hoverPoint = o == null ? void 0 : o.properties;
|
|
10419
10419
|
const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
10420
|
-
(
|
|
10420
|
+
(u) => {
|
|
10421
10421
|
var h;
|
|
10422
|
-
return
|
|
10422
|
+
return u.geometry.type === "LineString" && u.properties.type === "forecast" && u.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
|
|
10423
10423
|
}
|
|
10424
10424
|
);
|
|
10425
10425
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
10426
|
-
const
|
|
10427
|
-
this.hoverMarker = new ve.Marker(
|
|
10426
|
+
const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
10427
|
+
this.hoverMarker = new ve.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
10428
10428
|
}));
|
|
10429
10429
|
},
|
|
10430
10430
|
handleLeave() {
|
|
@@ -10445,38 +10445,44 @@ const tc = {
|
|
|
10445
10445
|
}, vc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, _c = { class: "more" }, kc = {
|
|
10446
10446
|
class: "my-3",
|
|
10447
10447
|
style: { height: "80px", width: "100%" }
|
|
10448
|
-
}, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = {
|
|
10448
|
+
}, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = {
|
|
10449
10449
|
key: 0,
|
|
10450
10450
|
class: "d-flex justify-start align-center"
|
|
10451
|
-
},
|
|
10451
|
+
}, Ic = { class: "text-label pr-1" }, Dc = {
|
|
10452
10452
|
key: 1,
|
|
10453
10453
|
class: "d-flex justify-start align-center"
|
|
10454
|
-
},
|
|
10454
|
+
}, Ac = { class: "text-label pr-1" }, Rc = {
|
|
10455
10455
|
key: 2,
|
|
10456
10456
|
class: "d-flex justify-start align-center"
|
|
10457
|
-
},
|
|
10457
|
+
}, Oc = { class: "text-label pr-1" }, Bc = {
|
|
10458
10458
|
key: 3,
|
|
10459
10459
|
class: "d-flex justify-start align-center"
|
|
10460
|
-
},
|
|
10460
|
+
}, Ec = { class: "text-label pr-1" }, jc = {
|
|
10461
10461
|
key: 4,
|
|
10462
10462
|
class: "d-flex justify-start align-center"
|
|
10463
|
-
},
|
|
10463
|
+
}, Nc = { class: "text-label pr-1" }, Fc = {
|
|
10464
10464
|
key: 5,
|
|
10465
10465
|
class: "d-flex justify-start align-center"
|
|
10466
|
-
},
|
|
10467
|
-
|
|
10468
|
-
|
|
10466
|
+
}, Hc = { class: "text-label pr-1" }, Gc = { class: "d-flex justify-start align-center" }, Wc = { class: "text-label pr-1" }, Uc = {
|
|
10467
|
+
key: 6,
|
|
10468
|
+
class: "d-flex justify-start align-center"
|
|
10469
|
+
}, Vc = { class: "text-label pr-1" }, Zc = {
|
|
10470
|
+
key: 7,
|
|
10471
|
+
class: "d-flex justify-start align-center"
|
|
10472
|
+
}, Yc = { class: "text-label pr-1" }, qc = { class: "d-flex justify-start align-center" }, Xc = { class: "text-label pr-1" };
|
|
10473
|
+
function $c(t, e, o, i, a, r) {
|
|
10474
|
+
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard"), x = w("v-card-title"), z = w("v-divider");
|
|
10469
10475
|
return y(), S("div", oc, [
|
|
10470
10476
|
s("div", {
|
|
10471
10477
|
class: "menu-bar-box transition pa-1",
|
|
10472
10478
|
style: ie({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
10473
10479
|
}, [
|
|
10474
|
-
|
|
10480
|
+
p(c, {
|
|
10475
10481
|
text: t.$t("tropical.tropicals"),
|
|
10476
10482
|
location: "left"
|
|
10477
10483
|
}, {
|
|
10478
10484
|
activator: f(({ props: g }) => [
|
|
10479
|
-
|
|
10485
|
+
p(l, B(g, {
|
|
10480
10486
|
"min-width": "32",
|
|
10481
10487
|
width: "32",
|
|
10482
10488
|
height: "32",
|
|
@@ -10494,21 +10500,21 @@ function qc(t, e, o, i, a, r) {
|
|
|
10494
10500
|
}, 8, ["text"])
|
|
10495
10501
|
], 4),
|
|
10496
10502
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), S("div", ac, [
|
|
10497
|
-
|
|
10503
|
+
p(b, {
|
|
10498
10504
|
"min-width": "400",
|
|
10499
10505
|
elevation: "16",
|
|
10500
10506
|
"max-width": "500"
|
|
10501
10507
|
}, {
|
|
10502
10508
|
default: f(() => [
|
|
10503
|
-
|
|
10509
|
+
p(n, null, {
|
|
10504
10510
|
default: f(() => {
|
|
10505
|
-
var g,
|
|
10511
|
+
var g, P, T, O, I, L, k, v, C, _, A;
|
|
10506
10512
|
return [
|
|
10507
10513
|
s("div", ic, [
|
|
10508
|
-
s("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (
|
|
10509
|
-
(O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), S("span", sc, ", " + m((
|
|
10514
|
+
s("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (P = a.activeTropicals) == null ? void 0 : P.nameCn), 1),
|
|
10515
|
+
(O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), S("span", sc, ", " + m((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.level), 1)) : D("", !0)
|
|
10510
10516
|
]),
|
|
10511
|
-
|
|
10517
|
+
p(l, {
|
|
10512
10518
|
icon: "",
|
|
10513
10519
|
density: "compact",
|
|
10514
10520
|
variant: "plain",
|
|
@@ -10523,52 +10529,52 @@ function qc(t, e, o, i, a, r) {
|
|
|
10523
10529
|
}, 8, ["onClick"]),
|
|
10524
10530
|
s("div", lc, [
|
|
10525
10531
|
s("span", nc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
10526
|
-
s("span", null, m(r.computeTime(((
|
|
10532
|
+
s("span", null, m(r.computeTime(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.updated) || ((A = (_ = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((N) => !N.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
|
|
10527
10533
|
])
|
|
10528
10534
|
];
|
|
10529
10535
|
}),
|
|
10530
10536
|
_: 1
|
|
10531
10537
|
}),
|
|
10532
|
-
u
|
|
10533
|
-
|
|
10538
|
+
p(u),
|
|
10539
|
+
p(n, { class: "text-body-1" }, {
|
|
10534
10540
|
default: f(() => {
|
|
10535
|
-
var g,
|
|
10541
|
+
var g, P, T, O, I, L, k, v, C;
|
|
10536
10542
|
return [
|
|
10537
10543
|
s("div", cc, [
|
|
10538
10544
|
s("div", mc, [
|
|
10539
10545
|
s("label", dc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
10540
|
-
s("span", null, m(((
|
|
10546
|
+
s("span", null, m(((P = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
|
|
10541
10547
|
s("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
|
|
10542
10548
|
]),
|
|
10543
10549
|
s("div", hc, [
|
|
10544
10550
|
s("label", pc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10545
|
-
s("span", null, m(((
|
|
10551
|
+
s("span", null, m(((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.pressure) || "-") + " hPa", 1)
|
|
10546
10552
|
])
|
|
10547
10553
|
]),
|
|
10548
10554
|
s("div", uc, [
|
|
10549
10555
|
s("div", gc, [
|
|
10550
10556
|
s("label", fc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10551
|
-
s("span", null, m(((
|
|
10557
|
+
s("span", null, m(((k = r.computeMovement(a.activeTropicals)) == null ? void 0 : k.kts) || "-") + " kts", 1)
|
|
10552
10558
|
]),
|
|
10553
10559
|
s("div", yc, [
|
|
10554
10560
|
s("label", bc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10555
|
-
s("span", null, m(((
|
|
10561
|
+
s("span", null, m(((v = r.computeMovement(a.activeTropicals)) == null ? void 0 : v.deg) || "-") + "°", 1)
|
|
10556
10562
|
])
|
|
10557
10563
|
]),
|
|
10558
10564
|
s("div", wc, [
|
|
10559
10565
|
s("label", xc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
10560
10566
|
s("div", vc, [
|
|
10561
|
-
(y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (
|
|
10567
|
+
(y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, A) => (y(), R(l, {
|
|
10562
10568
|
key: A,
|
|
10563
10569
|
density: "compact",
|
|
10564
|
-
variant:
|
|
10565
|
-
color:
|
|
10570
|
+
variant: _.disabled ? "text" : "flat",
|
|
10571
|
+
color: _.disabled ? "" : "primary",
|
|
10566
10572
|
"min-width": 30,
|
|
10567
|
-
class: Ne(["model text-none text-body-1 px-1",
|
|
10568
|
-
onClick: je((N) => r.handleForecastToggle(
|
|
10573
|
+
class: Ne(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10574
|
+
onClick: je((N) => r.handleForecastToggle(_), ["stop"])
|
|
10569
10575
|
}, {
|
|
10570
10576
|
default: f(() => [
|
|
10571
|
-
|
|
10577
|
+
$(m(_.model), 1)
|
|
10572
10578
|
]),
|
|
10573
10579
|
_: 2
|
|
10574
10580
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10578,10 +10584,10 @@ function qc(t, e, o, i, a, r) {
|
|
|
10578
10584
|
}),
|
|
10579
10585
|
_: 1
|
|
10580
10586
|
}),
|
|
10581
|
-
u
|
|
10582
|
-
|
|
10587
|
+
p(u),
|
|
10588
|
+
p(h, { class: "d-flex justify-space-between" }, {
|
|
10583
10589
|
default: f(() => [
|
|
10584
|
-
|
|
10590
|
+
p(l, {
|
|
10585
10591
|
density: "compact",
|
|
10586
10592
|
"prepend-icon": "",
|
|
10587
10593
|
variant: "text",
|
|
@@ -10593,7 +10599,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10593
10599
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10594
10600
|
])),
|
|
10595
10601
|
default: f(() => [
|
|
10596
|
-
|
|
10602
|
+
$(" " + m(t.$t("weather.legend")), 1)
|
|
10597
10603
|
]),
|
|
10598
10604
|
_: 1
|
|
10599
10605
|
}, 8, ["color"]),
|
|
@@ -10606,11 +10612,11 @@ function qc(t, e, o, i, a, r) {
|
|
|
10606
10612
|
onClick: e[1] || (e[1] = je((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10607
10613
|
}, {
|
|
10608
10614
|
default: f(() => [
|
|
10609
|
-
|
|
10615
|
+
$(m(t.$t("actions.notify")), 1)
|
|
10610
10616
|
]),
|
|
10611
10617
|
_: 1
|
|
10612
10618
|
})) : D("", !0),
|
|
10613
|
-
|
|
10619
|
+
p(l, {
|
|
10614
10620
|
variant: "text",
|
|
10615
10621
|
density: "compact",
|
|
10616
10622
|
"append-icon": "mdi-chevron-right",
|
|
@@ -10618,7 +10624,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10618
10624
|
onClick: e[2] || (e[2] = je((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10619
10625
|
}, {
|
|
10620
10626
|
default: f(() => [
|
|
10621
|
-
|
|
10627
|
+
$(m(t.$t("actions.viewReport")), 1)
|
|
10622
10628
|
]),
|
|
10623
10629
|
_: 1
|
|
10624
10630
|
})
|
|
@@ -10630,9 +10636,9 @@ function qc(t, e, o, i, a, r) {
|
|
|
10630
10636
|
_: 1
|
|
10631
10637
|
}),
|
|
10632
10638
|
s("div", kc, [
|
|
10633
|
-
We(
|
|
10639
|
+
We(p(b, { elevation: "16" }, {
|
|
10634
10640
|
default: f(() => [
|
|
10635
|
-
|
|
10641
|
+
p(n, null, {
|
|
10636
10642
|
default: f(() => [
|
|
10637
10643
|
We(s("div", zc, e[6] || (e[6] = [
|
|
10638
10644
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
@@ -10692,64 +10698,68 @@ function qc(t, e, o, i, a, r) {
|
|
|
10692
10698
|
])
|
|
10693
10699
|
])
|
|
10694
10700
|
])) : D("", !0),
|
|
10695
|
-
We(
|
|
10701
|
+
We(p(b, {
|
|
10696
10702
|
id: "tropicalHoverMarkerInfo",
|
|
10697
10703
|
elevation: "16",
|
|
10698
10704
|
"max-width": "280"
|
|
10699
10705
|
}, {
|
|
10700
10706
|
default: f(() => [
|
|
10701
|
-
|
|
10707
|
+
p(x, null, {
|
|
10702
10708
|
default: f(() => {
|
|
10703
|
-
var g,
|
|
10709
|
+
var g, P, T;
|
|
10704
10710
|
return [
|
|
10705
10711
|
s("div", Pc, [
|
|
10706
|
-
s("span", Cc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (
|
|
10712
|
+
s("span", Cc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (P = a.hoverPoint) == null ? void 0 : P.nameCn), 1),
|
|
10707
10713
|
s("span", Tc, "[ " + m((T = a.hoverPoint) == null ? void 0 : T.level) + " ]", 1)
|
|
10708
10714
|
])
|
|
10709
10715
|
];
|
|
10710
10716
|
}),
|
|
10711
10717
|
_: 1
|
|
10712
10718
|
}),
|
|
10713
|
-
|
|
10714
|
-
|
|
10719
|
+
p(z),
|
|
10720
|
+
p(n, { class: "text-body-1" }, {
|
|
10715
10721
|
default: f(() => {
|
|
10716
|
-
var g,
|
|
10722
|
+
var g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se;
|
|
10717
10723
|
return [
|
|
10718
10724
|
s("div", Sc, [
|
|
10719
|
-
|
|
10725
|
+
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Mc, [
|
|
10720
10726
|
s("label", Ic, m(t.$t("tropical.updated")) + " : ", 1),
|
|
10721
|
-
s("span", null, m(r.computeTzTime((
|
|
10722
|
-
]),
|
|
10723
|
-
((
|
|
10727
|
+
s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.update, o.timeZone)), 1)
|
|
10728
|
+
])) : D("", !0),
|
|
10729
|
+
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), S("div", Dc, [
|
|
10724
10730
|
s("label", Ac, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10725
|
-
s("span", null, m(r.computeTzTime((
|
|
10731
|
+
s("span", null, m(r.computeTzTime((O = a.hoverPoint) == null ? void 0 : O.date, o.timeZone)), 1)
|
|
10726
10732
|
])) : D("", !0),
|
|
10727
|
-
((
|
|
10728
|
-
s("label", Oc, m(t.$t("tropical.
|
|
10729
|
-
s("span", null, m(((
|
|
10733
|
+
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), S("div", Rc, [
|
|
10734
|
+
s("label", Oc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10735
|
+
s("span", null, m(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
|
|
10730
10736
|
])) : D("", !0),
|
|
10731
|
-
((
|
|
10732
|
-
s("label", Ec, m(t.$t("
|
|
10733
|
-
s("span", null, m(((
|
|
10737
|
+
((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), S("div", Bc, [
|
|
10738
|
+
s("label", Ec, m(t.$t("tropical.model")) + " : ", 1),
|
|
10739
|
+
s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
|
|
10734
10740
|
])) : D("", !0),
|
|
10735
|
-
((C = a.hoverPoint) == null ? void 0 : C.type) === "
|
|
10741
|
+
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), S("div", jc, [
|
|
10736
10742
|
s("label", Nc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10737
|
-
s("span", null, m(((
|
|
10743
|
+
s("span", null, m(((A = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
|
|
10738
10744
|
])) : D("", !0),
|
|
10739
|
-
|
|
10740
|
-
s("label", Hc, m(t.$t("weather.
|
|
10741
|
-
s("span", null, m(((
|
|
10742
|
-
]),
|
|
10743
|
-
((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Gc, [
|
|
10744
|
-
s("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10745
|
-
s("span", null, m(((Z = JSON.parse((V = a.hoverPoint) == null ? void 0 : V.movement)) == null ? void 0 : Z.kts) ?? "-") + " kts", 1)
|
|
10745
|
+
((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Fc, [
|
|
10746
|
+
s("label", Hc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10747
|
+
s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
10746
10748
|
])) : D("", !0),
|
|
10749
|
+
s("div", Gc, [
|
|
10750
|
+
s("label", Wc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10751
|
+
s("span", null, m(((Z = a.hoverPoint) == null ? void 0 : Z.pressure) ?? "-") + " kPa", 1)
|
|
10752
|
+
]),
|
|
10747
10753
|
((U = a.hoverPoint) == null ? void 0 : U.type) === "history" ? (y(), S("div", Uc, [
|
|
10748
|
-
s("label", Vc, m(t.$t("tropical.
|
|
10749
|
-
s("span", null, m(((
|
|
10754
|
+
s("label", Vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10755
|
+
s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
10756
|
+
])) : D("", !0),
|
|
10757
|
+
((X = a.hoverPoint) == null ? void 0 : X.type) === "history" ? (y(), S("div", Zc, [
|
|
10758
|
+
s("label", Yc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10759
|
+
s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
|
|
10750
10760
|
])) : D("", !0),
|
|
10751
|
-
s("div",
|
|
10752
|
-
s("label",
|
|
10761
|
+
s("div", qc, [
|
|
10762
|
+
s("label", Xc, m(t.$t("tropical.position")) + " : ", 1),
|
|
10753
10763
|
s("span", null, m(r.computePosition(a.hoverPoint)), 1)
|
|
10754
10764
|
])
|
|
10755
10765
|
])
|
|
@@ -10764,8 +10774,8 @@ function qc(t, e, o, i, a, r) {
|
|
|
10764
10774
|
])
|
|
10765
10775
|
]);
|
|
10766
10776
|
}
|
|
10767
|
-
const Xa = /* @__PURE__ */ Y(tc, [["render",
|
|
10768
|
-
const
|
|
10777
|
+
const Xa = /* @__PURE__ */ Y(tc, [["render", $c]]);
|
|
10778
|
+
const Kc = {
|
|
10769
10779
|
name: "DateTimePicker",
|
|
10770
10780
|
props: {
|
|
10771
10781
|
width: {
|
|
@@ -10919,23 +10929,23 @@ const Xc = {
|
|
|
10919
10929
|
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
10920
10930
|
}
|
|
10921
10931
|
}
|
|
10922
|
-
},
|
|
10932
|
+
}, Qc = {
|
|
10923
10933
|
class: "idm-gl4-time-picker",
|
|
10924
10934
|
ref: "idmGl4Timepicker"
|
|
10925
|
-
},
|
|
10935
|
+
}, Jc = {
|
|
10926
10936
|
class: "pa-0",
|
|
10927
10937
|
style: { width: "250px" }
|
|
10928
|
-
},
|
|
10938
|
+
}, em = {
|
|
10929
10939
|
class: "h-100 pa-0 d-flex flex-column justify-start align-center",
|
|
10930
10940
|
style: { width: "100px" }
|
|
10931
|
-
},
|
|
10941
|
+
}, tm = {
|
|
10932
10942
|
class: "d-flex justify-center align-center text-body-2",
|
|
10933
10943
|
style: { height: "56px" }
|
|
10934
10944
|
};
|
|
10935
|
-
function
|
|
10936
|
-
const l = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"),
|
|
10937
|
-
return y(), S("div",
|
|
10938
|
-
|
|
10945
|
+
function om(t, e, o, i, a, r) {
|
|
10946
|
+
const l = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), b = w("VList"), x = w("VCardText"), z = w("VCardActions"), g = w("VCard");
|
|
10947
|
+
return y(), S("div", Qc, [
|
|
10948
|
+
p(l, {
|
|
10939
10949
|
text: "",
|
|
10940
10950
|
height: o.height,
|
|
10941
10951
|
width: o.width,
|
|
@@ -10943,7 +10953,7 @@ function em(t, e, o, i, a, r) {
|
|
|
10943
10953
|
onClick: r.handleOpenDatePicker
|
|
10944
10954
|
}, {
|
|
10945
10955
|
default: f(() => [
|
|
10946
|
-
|
|
10956
|
+
$(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
10947
10957
|
]),
|
|
10948
10958
|
_: 1
|
|
10949
10959
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -10952,12 +10962,12 @@ function em(t, e, o, i, a, r) {
|
|
|
10952
10962
|
class: Ne(["card-box d-flex flex-column", o.position])
|
|
10953
10963
|
}, {
|
|
10954
10964
|
default: f(() => [
|
|
10955
|
-
|
|
10965
|
+
p(x, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
10956
10966
|
default: f(() => [
|
|
10957
|
-
s("div",
|
|
10958
|
-
|
|
10967
|
+
s("div", Jc, [
|
|
10968
|
+
p(c, {
|
|
10959
10969
|
modelValue: a.currentDate,
|
|
10960
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
10970
|
+
"onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentDate = P),
|
|
10961
10971
|
min: a.minDate,
|
|
10962
10972
|
max: a.maxDate,
|
|
10963
10973
|
"mode-icon": () => r.currentYear,
|
|
@@ -10969,30 +10979,30 @@ function em(t, e, o, i, a, r) {
|
|
|
10969
10979
|
"onUpdate:month": r.handleUpdateMonth
|
|
10970
10980
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
10971
10981
|
]),
|
|
10972
|
-
|
|
10982
|
+
p(n, {
|
|
10973
10983
|
class: "h-100",
|
|
10974
10984
|
vertical: ""
|
|
10975
10985
|
}),
|
|
10976
|
-
s("div",
|
|
10977
|
-
s("div",
|
|
10978
|
-
|
|
10986
|
+
s("div", em, [
|
|
10987
|
+
s("div", tm, m(a.currentTime), 1),
|
|
10988
|
+
p(b, { class: "pa-0 flex-1-1-0" }, {
|
|
10979
10989
|
default: f(() => [
|
|
10980
|
-
(y(!0), S(be, null, we(r.hourOptions, (
|
|
10990
|
+
(y(!0), S(be, null, we(r.hourOptions, (P, T) => (y(), R(h, {
|
|
10981
10991
|
key: T,
|
|
10982
|
-
value:
|
|
10992
|
+
value: P,
|
|
10983
10993
|
color: "primary",
|
|
10984
|
-
active: a.currentTime ===
|
|
10994
|
+
active: a.currentTime === P,
|
|
10985
10995
|
rounded: "",
|
|
10986
10996
|
height: "26",
|
|
10987
10997
|
"min-height": "26"
|
|
10988
10998
|
}, {
|
|
10989
10999
|
default: f(() => [
|
|
10990
|
-
u
|
|
11000
|
+
p(u, {
|
|
10991
11001
|
class: "text-body-2 text-center",
|
|
10992
|
-
onClick: (O) => a.currentTime =
|
|
11002
|
+
onClick: (O) => a.currentTime = P
|
|
10993
11003
|
}, {
|
|
10994
11004
|
default: f(() => [
|
|
10995
|
-
|
|
11005
|
+
$(m(P), 1)
|
|
10996
11006
|
]),
|
|
10997
11007
|
_: 2
|
|
10998
11008
|
}, 1032, ["onClick"])
|
|
@@ -11006,33 +11016,33 @@ function em(t, e, o, i, a, r) {
|
|
|
11006
11016
|
]),
|
|
11007
11017
|
_: 1
|
|
11008
11018
|
}),
|
|
11009
|
-
|
|
11010
|
-
|
|
11019
|
+
p(n),
|
|
11020
|
+
p(z, {
|
|
11011
11021
|
class: "justify-end pa-0 pr-4",
|
|
11012
11022
|
style: { height: "50px" }
|
|
11013
11023
|
}, {
|
|
11014
11024
|
default: f(() => [
|
|
11015
|
-
|
|
11025
|
+
p(l, {
|
|
11016
11026
|
size: "small",
|
|
11017
11027
|
variant: "tonal",
|
|
11018
11028
|
class: "text-none text-body-2",
|
|
11019
11029
|
onClick: r.handleCancelDate
|
|
11020
11030
|
}, {
|
|
11021
11031
|
default: f(() => e[1] || (e[1] = [
|
|
11022
|
-
|
|
11032
|
+
$("Cancel", -1)
|
|
11023
11033
|
])),
|
|
11024
11034
|
_: 1,
|
|
11025
11035
|
__: [1]
|
|
11026
11036
|
}, 8, ["onClick"]),
|
|
11027
|
-
|
|
11037
|
+
p(l, {
|
|
11028
11038
|
size: "small",
|
|
11029
|
-
variant: "
|
|
11039
|
+
variant: "flat",
|
|
11030
11040
|
color: "primary",
|
|
11031
11041
|
class: "text-none text-body-2",
|
|
11032
11042
|
onClick: r.handleConfirmDate
|
|
11033
11043
|
}, {
|
|
11034
11044
|
default: f(() => e[2] || (e[2] = [
|
|
11035
|
-
|
|
11045
|
+
$("Confirm", -1)
|
|
11036
11046
|
])),
|
|
11037
11047
|
_: 1,
|
|
11038
11048
|
__: [2]
|
|
@@ -11045,8 +11055,8 @@ function em(t, e, o, i, a, r) {
|
|
|
11045
11055
|
}, 8, ["class"])) : D("", !0)
|
|
11046
11056
|
], 512);
|
|
11047
11057
|
}
|
|
11048
|
-
const no = /* @__PURE__ */ Y(
|
|
11049
|
-
const
|
|
11058
|
+
const no = /* @__PURE__ */ Y(Kc, [["render", om]]);
|
|
11059
|
+
const am = {
|
|
11050
11060
|
name: "IdmPoint",
|
|
11051
11061
|
components: {
|
|
11052
11062
|
DateTimePicker: no
|
|
@@ -11160,12 +11170,12 @@ const tm = {
|
|
|
11160
11170
|
},
|
|
11161
11171
|
computePosition() {
|
|
11162
11172
|
return function(t) {
|
|
11163
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
11173
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
11164
11174
|
};
|
|
11165
11175
|
},
|
|
11166
11176
|
computeRoundPrecision() {
|
|
11167
11177
|
return function(t, e = 4) {
|
|
11168
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
11178
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
|
|
11169
11179
|
};
|
|
11170
11180
|
}
|
|
11171
11181
|
},
|
|
@@ -11285,10 +11295,10 @@ const tm = {
|
|
|
11285
11295
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11286
11296
|
},
|
|
11287
11297
|
initTableData(t) {
|
|
11288
|
-
var o, i, a, r, l, c, n,
|
|
11298
|
+
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe;
|
|
11289
11299
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11290
11300
|
const e = ((l = ao.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11291
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((
|
|
11301
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((U = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : U.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11292
11302
|
},
|
|
11293
11303
|
handleBind() {
|
|
11294
11304
|
var t, e;
|
|
@@ -11304,7 +11314,7 @@ const tm = {
|
|
|
11304
11314
|
return !1;
|
|
11305
11315
|
},
|
|
11306
11316
|
handleGetPosition(t) {
|
|
11307
|
-
this.form.latDegree = Number(
|
|
11317
|
+
this.form.latDegree = Number(K.lat2pretty(t.lat).degree), this.form.latMinute = Number(K.lat2pretty(t.lat).minute), this.form.latDirection = K.lat2pretty(t.lat).direction, this.form.lngDegree = Number(K.lng2pretty(t.lng).degree), this.form.lngMinute = Number(K.lng2pretty(t.lng).minute), this.form.lngDirection = K.lng2pretty(t.lng).direction;
|
|
11308
11318
|
},
|
|
11309
11319
|
handleDrawInfoMarker(t) {
|
|
11310
11320
|
t && (this.map.flyTo({
|
|
@@ -11340,75 +11350,75 @@ const tm = {
|
|
|
11340
11350
|
this.$emit("cancelFollow", t);
|
|
11341
11351
|
}
|
|
11342
11352
|
}
|
|
11343
|
-
},
|
|
11353
|
+
}, im = { class: "idm-gl4-spot" }, rm = { class: "d-flex justify-start align-center" }, sm = { class: "text-h6 font-weight-600 mx-2" }, lm = { class: "d-flex justify-start align-center ga-1 mb-1" }, nm = {
|
|
11344
11354
|
class: "multi-color-icon",
|
|
11345
11355
|
"aria-hidden": "true"
|
|
11346
|
-
},
|
|
11356
|
+
}, cm = ["xlink:href"], mm = { class: "d-flex justify-start align-center ga-1 mb-1" }, dm = {
|
|
11347
11357
|
class: "multi-color-icon",
|
|
11348
11358
|
"aria-hidden": "true"
|
|
11349
|
-
},
|
|
11359
|
+
}, hm = ["xlink:href"], pm = { class: "d-flex justify-start align-center ga-1 mb-1" }, um = {
|
|
11350
11360
|
class: "multi-color-icon",
|
|
11351
11361
|
"aria-hidden": "true"
|
|
11352
|
-
},
|
|
11362
|
+
}, gm = ["xlink:href"], fm = { class: "d-flex justify-start align-center ga-1 mb-1" }, ym = {
|
|
11353
11363
|
class: "multi-color-icon",
|
|
11354
11364
|
"aria-hidden": "true"
|
|
11355
|
-
},
|
|
11365
|
+
}, bm = ["xlink:href"], wm = { class: "d-flex justify-start align-center" }, xm = { class: "mx-2" }, vm = { class: "mx-0 py-2 d-flex align-center justify-start" }, _m = {
|
|
11356
11366
|
style: { width: "100px" },
|
|
11357
11367
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11358
|
-
},
|
|
11368
|
+
}, km = { class: "pa-0 px-0" }, zm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Lm = {
|
|
11359
11369
|
cols: "9",
|
|
11360
11370
|
class: "pa-0 px-0"
|
|
11361
|
-
},
|
|
11371
|
+
}, Pm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Cm = {
|
|
11362
11372
|
style: { width: "100px" },
|
|
11363
11373
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11364
|
-
},
|
|
11365
|
-
style: { width: "
|
|
11374
|
+
}, Tm = {
|
|
11375
|
+
style: { width: "150px" },
|
|
11366
11376
|
class: "pa-0 text-left"
|
|
11367
|
-
},
|
|
11377
|
+
}, Sm = {
|
|
11368
11378
|
style: { width: "80px" },
|
|
11369
11379
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11370
|
-
},
|
|
11380
|
+
}, Mm = {
|
|
11371
11381
|
cols: "3",
|
|
11372
11382
|
class: "pa-0 px-0 text-left"
|
|
11373
|
-
},
|
|
11383
|
+
}, Im = { class: "mx-0 py-2 d-flex align-center justify-start" }, Dm = {
|
|
11374
11384
|
style: { width: "100px" },
|
|
11375
11385
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11376
|
-
},
|
|
11377
|
-
style: { width: "
|
|
11386
|
+
}, Am = {
|
|
11387
|
+
style: { width: "150px" },
|
|
11378
11388
|
class: "pa-0 text-left"
|
|
11379
|
-
},
|
|
11389
|
+
}, Rm = {
|
|
11380
11390
|
style: { width: "80px" },
|
|
11381
11391
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11382
|
-
},
|
|
11392
|
+
}, Om = {
|
|
11383
11393
|
cols: "3",
|
|
11384
11394
|
class: "pa-0 text-left"
|
|
11385
|
-
},
|
|
11395
|
+
}, Bm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Em = {
|
|
11386
11396
|
style: { width: "100px" },
|
|
11387
11397
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11388
|
-
},
|
|
11389
|
-
style: { width: "
|
|
11398
|
+
}, jm = {
|
|
11399
|
+
style: { width: "150px" },
|
|
11390
11400
|
class: "pa-0 text-left"
|
|
11391
|
-
},
|
|
11401
|
+
}, Nm = {
|
|
11392
11402
|
style: { width: "80px" },
|
|
11393
11403
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11394
|
-
},
|
|
11404
|
+
}, Fm = { class: "pa-0 text-left" }, Hm = { id: "idm-position-icon" }, Gm = {
|
|
11395
11405
|
class: "multi-color-icon",
|
|
11396
11406
|
style: { height: "30px", width: "30px" },
|
|
11397
11407
|
"aria-hidden": "true"
|
|
11398
|
-
},
|
|
11399
|
-
function
|
|
11400
|
-
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"),
|
|
11401
|
-
return y(), S("div",
|
|
11408
|
+
}, Wm = ["xlink:href"];
|
|
11409
|
+
function Um(t, e, o, i, a, r) {
|
|
11410
|
+
const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), z = w("DateTimePicker"), g = w("VBtnToggle"), P = w("VCardActions"), T = w("VForm"), O = w("VCardText"), I = w("VCard"), L = w("VIcon");
|
|
11411
|
+
return y(), S("div", im, [
|
|
11402
11412
|
s("div", {
|
|
11403
11413
|
class: "menu-bar-box transition pa-1",
|
|
11404
11414
|
style: ie({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
11405
11415
|
}, [
|
|
11406
|
-
|
|
11416
|
+
p(c, {
|
|
11407
11417
|
text: t.$t("spot.spotsMeteo"),
|
|
11408
11418
|
location: "left"
|
|
11409
11419
|
}, {
|
|
11410
|
-
activator: f(({ props:
|
|
11411
|
-
|
|
11420
|
+
activator: f(({ props: k }) => [
|
|
11421
|
+
p(l, B(k, {
|
|
11412
11422
|
"min-width": "32",
|
|
11413
11423
|
width: "32",
|
|
11414
11424
|
height: "32",
|
|
@@ -11431,12 +11441,12 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11431
11441
|
style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
11432
11442
|
}, {
|
|
11433
11443
|
default: f(() => [
|
|
11434
|
-
|
|
11444
|
+
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
11435
11445
|
default: f(() => [
|
|
11436
|
-
s("div",
|
|
11437
|
-
s("div",
|
|
11446
|
+
s("div", rm, [
|
|
11447
|
+
s("div", sm, m(t.$t("spot.spotWeather")), 1)
|
|
11438
11448
|
]),
|
|
11439
|
-
|
|
11449
|
+
p(l, {
|
|
11440
11450
|
icon: "",
|
|
11441
11451
|
density: "compact",
|
|
11442
11452
|
variant: "plain",
|
|
@@ -11452,34 +11462,34 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11452
11462
|
]),
|
|
11453
11463
|
_: 1
|
|
11454
11464
|
}),
|
|
11455
|
-
u
|
|
11456
|
-
|
|
11465
|
+
p(u),
|
|
11466
|
+
p(O, { class: "text-body-1 py-1" }, {
|
|
11457
11467
|
default: f(() => [
|
|
11458
|
-
|
|
11468
|
+
p(T, {
|
|
11459
11469
|
ref: "spotForm",
|
|
11460
11470
|
autocomplete: "off",
|
|
11461
11471
|
class: "form-box",
|
|
11462
11472
|
onSubmit: je(r.submitForm, ["prevent"])
|
|
11463
11473
|
}, {
|
|
11464
11474
|
default: f(() => [
|
|
11465
|
-
s("div",
|
|
11466
|
-
(y(), S("svg",
|
|
11475
|
+
s("div", lm, [
|
|
11476
|
+
(y(), S("svg", nm, [
|
|
11467
11477
|
s("use", {
|
|
11468
11478
|
"xlink:href": `#icon-lng-${o.theme}`
|
|
11469
|
-
}, null, 8,
|
|
11479
|
+
}, null, 8, cm)
|
|
11470
11480
|
])),
|
|
11471
11481
|
s("div", null, m(t.$t("spot.lng")), 1)
|
|
11472
11482
|
]),
|
|
11473
|
-
|
|
11483
|
+
p(x, { class: "ma-0" }, {
|
|
11474
11484
|
default: f(() => [
|
|
11475
|
-
|
|
11485
|
+
p(b, {
|
|
11476
11486
|
cols: "4",
|
|
11477
11487
|
class: "pa-0 d-flex"
|
|
11478
11488
|
}, {
|
|
11479
11489
|
default: f(() => [
|
|
11480
|
-
|
|
11490
|
+
p(h, {
|
|
11481
11491
|
modelValue: a.form.lngDegree,
|
|
11482
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11492
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
11483
11493
|
rules: a.formRules.lngDegree,
|
|
11484
11494
|
density: "compact",
|
|
11485
11495
|
variant: "outlined",
|
|
@@ -11492,14 +11502,14 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11492
11502
|
_: 1,
|
|
11493
11503
|
__: [10]
|
|
11494
11504
|
}),
|
|
11495
|
-
|
|
11505
|
+
p(b, {
|
|
11496
11506
|
cols: "6",
|
|
11497
11507
|
class: "pa-0 d-flex"
|
|
11498
11508
|
}, {
|
|
11499
11509
|
default: f(() => [
|
|
11500
|
-
|
|
11510
|
+
p(h, {
|
|
11501
11511
|
modelValue: a.form.lngMinute,
|
|
11502
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
11512
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
11503
11513
|
rules: a.formRules.lngMinute,
|
|
11504
11514
|
label: "",
|
|
11505
11515
|
density: "compact",
|
|
@@ -11513,12 +11523,12 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11513
11523
|
_: 1,
|
|
11514
11524
|
__: [11]
|
|
11515
11525
|
}),
|
|
11516
|
-
|
|
11526
|
+
p(b, {
|
|
11517
11527
|
cols: "2",
|
|
11518
11528
|
class: "pa-0"
|
|
11519
11529
|
}, {
|
|
11520
11530
|
default: f(() => [
|
|
11521
|
-
|
|
11531
|
+
p(l, {
|
|
11522
11532
|
variant: "outlined",
|
|
11523
11533
|
density: "compact",
|
|
11524
11534
|
width: "32",
|
|
@@ -11526,10 +11536,10 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11526
11536
|
height: "32",
|
|
11527
11537
|
class: "text-body-1 btn-bg-1",
|
|
11528
11538
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11529
|
-
onClick: e[2] || (e[2] = (
|
|
11539
|
+
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11530
11540
|
}, {
|
|
11531
11541
|
default: f(() => [
|
|
11532
|
-
|
|
11542
|
+
$(m(a.form.lngDirection), 1)
|
|
11533
11543
|
]),
|
|
11534
11544
|
_: 1
|
|
11535
11545
|
})
|
|
@@ -11539,24 +11549,24 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11539
11549
|
]),
|
|
11540
11550
|
_: 1
|
|
11541
11551
|
}),
|
|
11542
|
-
s("div",
|
|
11543
|
-
(y(), S("svg",
|
|
11552
|
+
s("div", mm, [
|
|
11553
|
+
(y(), S("svg", dm, [
|
|
11544
11554
|
s("use", {
|
|
11545
11555
|
"xlink:href": `#icon-lng-${o.theme}`
|
|
11546
|
-
}, null, 8,
|
|
11556
|
+
}, null, 8, hm)
|
|
11547
11557
|
])),
|
|
11548
11558
|
s("div", null, m(t.$t("spot.lat")), 1)
|
|
11549
11559
|
]),
|
|
11550
|
-
|
|
11560
|
+
p(x, { class: "ma-0" }, {
|
|
11551
11561
|
default: f(() => [
|
|
11552
|
-
|
|
11562
|
+
p(b, {
|
|
11553
11563
|
cols: "4",
|
|
11554
11564
|
class: "pa-0 d-flex"
|
|
11555
11565
|
}, {
|
|
11556
11566
|
default: f(() => [
|
|
11557
|
-
|
|
11567
|
+
p(h, {
|
|
11558
11568
|
modelValue: a.form.latDegree,
|
|
11559
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
11569
|
+
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
11560
11570
|
rules: a.formRules.latDegree,
|
|
11561
11571
|
label: "",
|
|
11562
11572
|
density: "compact",
|
|
@@ -11572,14 +11582,14 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11572
11582
|
_: 1,
|
|
11573
11583
|
__: [12]
|
|
11574
11584
|
}),
|
|
11575
|
-
|
|
11585
|
+
p(b, {
|
|
11576
11586
|
cols: "6",
|
|
11577
11587
|
class: "pa-0 d-flex"
|
|
11578
11588
|
}, {
|
|
11579
11589
|
default: f(() => [
|
|
11580
|
-
|
|
11590
|
+
p(h, {
|
|
11581
11591
|
modelValue: a.form.latMinute,
|
|
11582
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
11592
|
+
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
11583
11593
|
rules: a.formRules.latMinute,
|
|
11584
11594
|
label: "",
|
|
11585
11595
|
density: "compact",
|
|
@@ -11593,12 +11603,12 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11593
11603
|
_: 1,
|
|
11594
11604
|
__: [13]
|
|
11595
11605
|
}),
|
|
11596
|
-
|
|
11606
|
+
p(b, {
|
|
11597
11607
|
cols: "2",
|
|
11598
11608
|
class: "pa-0"
|
|
11599
11609
|
}, {
|
|
11600
11610
|
default: f(() => [
|
|
11601
|
-
|
|
11611
|
+
p(l, {
|
|
11602
11612
|
variant: "outlined",
|
|
11603
11613
|
density: "compact",
|
|
11604
11614
|
width: "32",
|
|
@@ -11606,10 +11616,10 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11606
11616
|
height: "32",
|
|
11607
11617
|
class: "text-body-1 btn-bg-1",
|
|
11608
11618
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11609
|
-
onClick: e[5] || (e[5] = (
|
|
11619
|
+
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11610
11620
|
}, {
|
|
11611
11621
|
default: f(() => [
|
|
11612
|
-
|
|
11622
|
+
$(m(a.form.latDirection), 1)
|
|
11613
11623
|
]),
|
|
11614
11624
|
_: 1
|
|
11615
11625
|
})
|
|
@@ -11619,26 +11629,26 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11619
11629
|
]),
|
|
11620
11630
|
_: 1
|
|
11621
11631
|
}),
|
|
11622
|
-
s("div",
|
|
11623
|
-
(y(), S("svg",
|
|
11632
|
+
s("div", pm, [
|
|
11633
|
+
(y(), S("svg", um, [
|
|
11624
11634
|
s("use", {
|
|
11625
11635
|
"xlink:href": `#icon-date-time-${o.theme}`
|
|
11626
|
-
}, null, 8,
|
|
11636
|
+
}, null, 8, gm)
|
|
11627
11637
|
])),
|
|
11628
11638
|
s("div", null, m(t.$t("spot.dateTime")), 1)
|
|
11629
11639
|
]),
|
|
11630
|
-
|
|
11640
|
+
p(x, { class: "ma-0 mb-4" }, {
|
|
11631
11641
|
default: f(() => [
|
|
11632
|
-
|
|
11642
|
+
p(b, {
|
|
11633
11643
|
cols: "12",
|
|
11634
11644
|
class: "pa-0"
|
|
11635
11645
|
}, {
|
|
11636
11646
|
default: f(() => [
|
|
11637
|
-
|
|
11647
|
+
p(z, B({
|
|
11638
11648
|
"date-time": a.form.dateTime,
|
|
11639
11649
|
"time-zone": o.timeZone
|
|
11640
11650
|
}, t.$attrs, {
|
|
11641
|
-
onDateTime: e[6] || (e[6] = (
|
|
11651
|
+
onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
|
|
11642
11652
|
}), null, 16, ["date-time", "time-zone"])
|
|
11643
11653
|
]),
|
|
11644
11654
|
_: 1
|
|
@@ -11646,24 +11656,24 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11646
11656
|
]),
|
|
11647
11657
|
_: 1
|
|
11648
11658
|
}),
|
|
11649
|
-
s("div",
|
|
11650
|
-
(y(), S("svg",
|
|
11659
|
+
s("div", fm, [
|
|
11660
|
+
(y(), S("svg", ym, [
|
|
11651
11661
|
s("use", {
|
|
11652
11662
|
"xlink:href": `#icon-forecast-model-${o.theme}`
|
|
11653
|
-
}, null, 8,
|
|
11663
|
+
}, null, 8, bm)
|
|
11654
11664
|
])),
|
|
11655
11665
|
s("div", null, m(t.$t("weather.forecastModel")), 1)
|
|
11656
11666
|
]),
|
|
11657
|
-
|
|
11667
|
+
p(x, { class: "ma-0 mb-2" }, {
|
|
11658
11668
|
default: f(() => [
|
|
11659
|
-
|
|
11669
|
+
p(b, {
|
|
11660
11670
|
cols: "12",
|
|
11661
11671
|
class: "pa-0"
|
|
11662
11672
|
}, {
|
|
11663
11673
|
default: f(() => [
|
|
11664
|
-
|
|
11674
|
+
p(g, {
|
|
11665
11675
|
modelValue: a.form.forecastModel,
|
|
11666
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
11676
|
+
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
11667
11677
|
class: "w-100",
|
|
11668
11678
|
rounded: "",
|
|
11669
11679
|
height: "30",
|
|
@@ -11671,7 +11681,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11671
11681
|
group: ""
|
|
11672
11682
|
}, {
|
|
11673
11683
|
default: f(() => [
|
|
11674
|
-
|
|
11684
|
+
p(l, {
|
|
11675
11685
|
density: "compact",
|
|
11676
11686
|
height: "30",
|
|
11677
11687
|
value: "GFS",
|
|
@@ -11680,12 +11690,12 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11680
11690
|
"base-color": ""
|
|
11681
11691
|
}, {
|
|
11682
11692
|
default: f(() => e[14] || (e[14] = [
|
|
11683
|
-
|
|
11693
|
+
$("NOAA", -1)
|
|
11684
11694
|
])),
|
|
11685
11695
|
_: 1,
|
|
11686
11696
|
__: [14]
|
|
11687
11697
|
}, 8, ["class", "color"]),
|
|
11688
|
-
|
|
11698
|
+
p(l, {
|
|
11689
11699
|
density: "compact",
|
|
11690
11700
|
height: "30",
|
|
11691
11701
|
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -11694,7 +11704,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11694
11704
|
value: "ECMWF"
|
|
11695
11705
|
}, {
|
|
11696
11706
|
default: f(() => e[15] || (e[15] = [
|
|
11697
|
-
|
|
11707
|
+
$("ECMWF", -1)
|
|
11698
11708
|
])),
|
|
11699
11709
|
_: 1,
|
|
11700
11710
|
__: [15]
|
|
@@ -11708,21 +11718,21 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11708
11718
|
]),
|
|
11709
11719
|
_: 1
|
|
11710
11720
|
}),
|
|
11711
|
-
u
|
|
11712
|
-
|
|
11721
|
+
p(u),
|
|
11722
|
+
p(P, { class: "d-flex justify-end align-center ga-4" }, {
|
|
11713
11723
|
default: f(() => [
|
|
11714
|
-
|
|
11724
|
+
p(l, {
|
|
11715
11725
|
size: "small",
|
|
11716
11726
|
variant: "outlined",
|
|
11717
|
-
class: "text-none text-body-1",
|
|
11727
|
+
class: "text-none text-body-1 btn-border-1 btn-bg-1",
|
|
11718
11728
|
onClick: r.cancelForm
|
|
11719
11729
|
}, {
|
|
11720
11730
|
default: f(() => [
|
|
11721
|
-
|
|
11731
|
+
$(m(t.$t("actions.clear")), 1)
|
|
11722
11732
|
]),
|
|
11723
11733
|
_: 1
|
|
11724
11734
|
}, 8, ["onClick"]),
|
|
11725
|
-
|
|
11735
|
+
p(l, {
|
|
11726
11736
|
ref: "submitSpot",
|
|
11727
11737
|
loading: a.loading,
|
|
11728
11738
|
size: "small",
|
|
@@ -11732,7 +11742,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11732
11742
|
class: "text-none text-body-1"
|
|
11733
11743
|
}, {
|
|
11734
11744
|
default: f(() => [
|
|
11735
|
-
|
|
11745
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
11736
11746
|
]),
|
|
11737
11747
|
_: 1
|
|
11738
11748
|
}, 8, ["loading"])
|
|
@@ -11755,13 +11765,13 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11755
11765
|
style: { width: "490px", "z-index": "9" }
|
|
11756
11766
|
}, {
|
|
11757
11767
|
default: f(() => [
|
|
11758
|
-
|
|
11768
|
+
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
11759
11769
|
default: f(() => [
|
|
11760
|
-
s("div",
|
|
11770
|
+
s("div", wm, [
|
|
11761
11771
|
e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
11762
|
-
s("div",
|
|
11772
|
+
s("div", xm, m(r.computePosition(a.form || a.currentHourData)), 1)
|
|
11763
11773
|
]),
|
|
11764
|
-
|
|
11774
|
+
p(l, {
|
|
11765
11775
|
class: "mr-n2",
|
|
11766
11776
|
density: "comfortable",
|
|
11767
11777
|
icon: "",
|
|
@@ -11780,50 +11790,50 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11780
11790
|
]),
|
|
11781
11791
|
_: 1
|
|
11782
11792
|
}),
|
|
11783
|
-
u
|
|
11784
|
-
|
|
11793
|
+
p(u),
|
|
11794
|
+
p(O, { class: "text-body-1 px-0 py-1" }, {
|
|
11785
11795
|
default: f(() => {
|
|
11786
|
-
var
|
|
11796
|
+
var k, v;
|
|
11787
11797
|
return [
|
|
11788
|
-
s("div",
|
|
11789
|
-
s("div",
|
|
11790
|
-
s("div",
|
|
11798
|
+
s("div", vm, [
|
|
11799
|
+
s("div", _m, m(t.$t("time.time")), 1),
|
|
11800
|
+
s("div", km, m(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11791
11801
|
]),
|
|
11792
|
-
s("div",
|
|
11802
|
+
s("div", zm, [
|
|
11793
11803
|
e[18] || (e[18] = s("div", {
|
|
11794
11804
|
style: { width: "100px" },
|
|
11795
11805
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
11796
11806
|
}, "LT", -1)),
|
|
11797
|
-
s("div",
|
|
11807
|
+
s("div", Lm, m(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
11798
11808
|
]),
|
|
11799
|
-
s("div",
|
|
11800
|
-
s("div",
|
|
11801
|
-
s("div",
|
|
11802
|
-
s("div",
|
|
11803
|
-
s("div",
|
|
11809
|
+
s("div", Pm, [
|
|
11810
|
+
s("div", Cm, m(t.$t("weather.wind")), 1),
|
|
11811
|
+
s("div", Tm, m(a.currentHourData.windDir ?? "-") + "/" + m(a.currentHourData.windSpeed ?? "-") + "kts/BF" + m(a.currentHourData.windLevel ?? "-"), 1),
|
|
11812
|
+
s("div", Sm, m(t.$t("weather.sigWave")), 1),
|
|
11813
|
+
s("div", Mm, m(a.currentHourData.sigwaveDir ?? "-") + "/" + m(a.currentHourData.sigwaveHeight ?? "-") + "m/" + m(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
|
|
11804
11814
|
]),
|
|
11805
|
-
s("div",
|
|
11806
|
-
s("div",
|
|
11807
|
-
s("div",
|
|
11808
|
-
s("div",
|
|
11809
|
-
s("div",
|
|
11815
|
+
s("div", Im, [
|
|
11816
|
+
s("div", Dm, m(t.$t("weather.windWave")), 1),
|
|
11817
|
+
s("div", Am, m(a.currentHourData.windwaveDir ?? "-") + "/" + m(a.currentHourData.windwaveHeight ?? "-") + "m/" + m(a.currentHourData.windwavePeriod ?? "-") + "s", 1),
|
|
11818
|
+
s("div", Rm, m(t.$t("weather.swell")), 1),
|
|
11819
|
+
s("div", Om, m(a.currentHourData.swellDir ?? "-") + "/" + m(a.currentHourData.swellHeight ?? "-") + "m/" + m(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
11810
11820
|
]),
|
|
11811
|
-
s("div",
|
|
11812
|
-
s("div",
|
|
11813
|
-
s("div",
|
|
11814
|
-
s("div",
|
|
11815
|
-
s("div",
|
|
11821
|
+
s("div", Bm, [
|
|
11822
|
+
s("div", Em, m(t.$t("weather.current")), 1),
|
|
11823
|
+
s("div", jm, m(a.currentHourData.currentDir ?? "-") + "/" + m(a.currentHourData.currentSpeed ?? "-") + "kts", 1),
|
|
11824
|
+
s("div", Nm, m(t.$t("weather.visibility")), 1),
|
|
11825
|
+
s("div", Fm, m(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
11816
11826
|
])
|
|
11817
11827
|
];
|
|
11818
11828
|
}),
|
|
11819
11829
|
_: 1
|
|
11820
11830
|
}),
|
|
11821
|
-
u
|
|
11822
|
-
|
|
11831
|
+
p(u),
|
|
11832
|
+
p(P, { class: "d-flex justify-space-between align-center" }, {
|
|
11823
11833
|
default: f(() => [
|
|
11824
|
-
o.followList.some((
|
|
11825
|
-
var
|
|
11826
|
-
return ((
|
|
11834
|
+
o.followList.some((k) => {
|
|
11835
|
+
var v, C;
|
|
11836
|
+
return ((v = k == null ? void 0 : k.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = k == null ? void 0 : k.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
11827
11837
|
}) ? (y(), R(l, {
|
|
11828
11838
|
key: 0,
|
|
11829
11839
|
class: "text-none text-body-1",
|
|
@@ -11835,10 +11845,13 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11835
11845
|
onClick: je(r.handleCancelFollow, ["stop"])
|
|
11836
11846
|
}, {
|
|
11837
11847
|
prepend: f(() => [
|
|
11838
|
-
|
|
11848
|
+
p(L, {
|
|
11849
|
+
color: "warning",
|
|
11850
|
+
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
11851
|
+
})
|
|
11839
11852
|
]),
|
|
11840
11853
|
default: f(() => [
|
|
11841
|
-
|
|
11854
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
11842
11855
|
]),
|
|
11843
11856
|
_: 1
|
|
11844
11857
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -11851,12 +11864,15 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11851
11864
|
"prepend-icon": "mdi-star-outline",
|
|
11852
11865
|
onClick: je(r.handleFollow, ["stop"])
|
|
11853
11866
|
}, {
|
|
11867
|
+
prepend: f(() => [
|
|
11868
|
+
p(L, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
11869
|
+
]),
|
|
11854
11870
|
default: f(() => [
|
|
11855
|
-
|
|
11871
|
+
$(m(t.$t("actions.follow")) + " ", 1)
|
|
11856
11872
|
]),
|
|
11857
11873
|
_: 1
|
|
11858
11874
|
}, 8, ["onClick"])),
|
|
11859
|
-
|
|
11875
|
+
p(l, {
|
|
11860
11876
|
height: "32",
|
|
11861
11877
|
variant: "text",
|
|
11862
11878
|
density: "compact",
|
|
@@ -11865,7 +11881,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11865
11881
|
onClick: je(r.handleMeteoMore, ["stop"])
|
|
11866
11882
|
}, {
|
|
11867
11883
|
default: f(() => [
|
|
11868
|
-
|
|
11884
|
+
$(m(t.$t("spot.forecast")), 1)
|
|
11869
11885
|
]),
|
|
11870
11886
|
_: 1
|
|
11871
11887
|
}, 8, ["onClick"])
|
|
@@ -11875,19 +11891,19 @@ function Gm(t, e, o, i, a, r) {
|
|
|
11875
11891
|
]),
|
|
11876
11892
|
_: 1
|
|
11877
11893
|
})) : D("", !0),
|
|
11878
|
-
We(s("div",
|
|
11879
|
-
(y(), S("svg",
|
|
11894
|
+
We(s("div", Hm, [
|
|
11895
|
+
(y(), S("svg", Gm, [
|
|
11880
11896
|
s("use", {
|
|
11881
11897
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
11882
|
-
}, null, 8,
|
|
11898
|
+
}, null, 8, Wm)
|
|
11883
11899
|
]))
|
|
11884
11900
|
], 512), [
|
|
11885
11901
|
[Ue, a.showMeteo]
|
|
11886
11902
|
])
|
|
11887
11903
|
]);
|
|
11888
11904
|
}
|
|
11889
|
-
const
|
|
11890
|
-
const
|
|
11905
|
+
const Vm = /* @__PURE__ */ Y(am, [["render", Um]]);
|
|
11906
|
+
const Zm = {
|
|
11891
11907
|
name: "IdmMeasure",
|
|
11892
11908
|
props: {
|
|
11893
11909
|
map: {
|
|
@@ -11977,7 +11993,7 @@ const Um = {
|
|
|
11977
11993
|
}
|
|
11978
11994
|
},
|
|
11979
11995
|
handleDrag(t) {
|
|
11980
|
-
var o, i, a, r, l, c, n,
|
|
11996
|
+
var o, i, a, r, l, c, n, u, h, b;
|
|
11981
11997
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11982
11998
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11983
11999
|
const x = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
@@ -11992,26 +12008,26 @@ const Um = {
|
|
|
11992
12008
|
return;
|
|
11993
12009
|
}
|
|
11994
12010
|
});
|
|
11995
|
-
const
|
|
12011
|
+
const P = x.features.filter((T) => T.geometry.type === "Point");
|
|
11996
12012
|
this.handleTmpPointUpdate(
|
|
11997
12013
|
x,
|
|
11998
|
-
|
|
11999
|
-
{ lng: (
|
|
12000
|
-
g ===
|
|
12014
|
+
P[g - 1],
|
|
12015
|
+
{ lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: P[g].properties },
|
|
12016
|
+
g === P.length - 1 ? void 0 : P[g + 1]
|
|
12001
12017
|
);
|
|
12002
12018
|
}
|
|
12003
12019
|
},
|
|
12004
12020
|
handleDragEnd(t) {
|
|
12005
|
-
var o, i, a, r, l, c, n,
|
|
12021
|
+
var o, i, a, r, l, c, n, u, h, b;
|
|
12006
12022
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12007
12023
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12008
|
-
const x = this.geojson.filter((
|
|
12009
|
-
this.pointMarkers[x.id].filter((
|
|
12024
|
+
const x = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
12025
|
+
this.pointMarkers[x.id].filter((P) => {
|
|
12010
12026
|
var T;
|
|
12011
|
-
return ((T =
|
|
12027
|
+
return ((T = P._element) == null ? void 0 : T.id) === e;
|
|
12012
12028
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
12013
|
-
const g = x.features.filter((
|
|
12014
|
-
g.geometry.coordinates = [(
|
|
12029
|
+
const g = x.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
|
|
12030
|
+
g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], x.features = x.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(x);
|
|
12015
12031
|
}
|
|
12016
12032
|
},
|
|
12017
12033
|
handleContextmenu(t) {
|
|
@@ -12020,9 +12036,9 @@ const Um = {
|
|
|
12020
12036
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
12021
12037
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12022
12038
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12023
|
-
if (c.length > 2 && c.filter((
|
|
12024
|
-
const
|
|
12025
|
-
|
|
12039
|
+
if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12040
|
+
const u = document.createElement("div");
|
|
12041
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12026
12042
|
}
|
|
12027
12043
|
}
|
|
12028
12044
|
},
|
|
@@ -12031,15 +12047,15 @@ const Um = {
|
|
|
12031
12047
|
(o = this.contextmenu) == null || o.remove();
|
|
12032
12048
|
const e = t.originalEvent.target.className;
|
|
12033
12049
|
if (e === "marker-close") {
|
|
12034
|
-
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
12035
|
-
|
|
12050
|
+
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((h) => h.id === n)[0];
|
|
12051
|
+
u && this.handleClear(u, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
|
|
12036
12052
|
} else if (e === "del-point") {
|
|
12037
|
-
const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
12038
|
-
|
|
12053
|
+
const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), u = this.geojson.filter((h) => h.id === n[0])[0];
|
|
12054
|
+
u.features = u.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(u);
|
|
12039
12055
|
} else if (e !== "marker-label" && this.toggle) {
|
|
12040
12056
|
let n = this.geojson.at(-1);
|
|
12041
12057
|
n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
|
|
12042
|
-
const
|
|
12058
|
+
const u = H.feature(
|
|
12043
12059
|
{
|
|
12044
12060
|
type: "Point",
|
|
12045
12061
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -12050,7 +12066,7 @@ const Um = {
|
|
|
12050
12066
|
sumLabel: "Start"
|
|
12051
12067
|
}
|
|
12052
12068
|
);
|
|
12053
|
-
n.features.push(
|
|
12069
|
+
n.features.push(u), this.handlePointUpdate(n);
|
|
12054
12070
|
}
|
|
12055
12071
|
},
|
|
12056
12072
|
handlePointUpdate(t) {
|
|
@@ -12059,14 +12075,14 @@ const Um = {
|
|
|
12059
12075
|
let o = 0;
|
|
12060
12076
|
const i = [];
|
|
12061
12077
|
for (let a = 1; a < e.length; a++) {
|
|
12062
|
-
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
12063
|
-
o =
|
|
12078
|
+
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = Ge.calculateDistance(n, u, c.mode === "RL", 4), b = Ge.calculateBearing(n, u, c.mode === "RL", 2);
|
|
12079
|
+
o = K.roundPrecision(o + h, 4);
|
|
12064
12080
|
let x;
|
|
12065
|
-
c.mode === "RL" ? x =
|
|
12066
|
-
const
|
|
12067
|
-
|
|
12081
|
+
c.mode === "RL" ? x = K.convertToMonotonicLng([n, u]) : x = K.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
|
|
12082
|
+
const z = H.lineString(x.map((P) => [P.lng, P.lat]));
|
|
12083
|
+
z.properties.dist = h, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
12068
12084
|
const g = e[a];
|
|
12069
|
-
g.properties.totalDist =
|
|
12085
|
+
g.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12070
12086
|
}
|
|
12071
12087
|
e.push(...i), t.total = o;
|
|
12072
12088
|
}
|
|
@@ -12076,19 +12092,19 @@ const Um = {
|
|
|
12076
12092
|
const a = H.featureCollection([]);
|
|
12077
12093
|
let r, l;
|
|
12078
12094
|
if (e) {
|
|
12079
|
-
const n = e.properties,
|
|
12080
|
-
r = Ge.calculateDistance(
|
|
12095
|
+
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
12096
|
+
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12081
12097
|
let b;
|
|
12082
|
-
n.mode === "RL" ? b =
|
|
12083
|
-
const x = H.lineString(b.map((
|
|
12098
|
+
n.mode === "RL" ? b = K.convertToMonotonicLng([u, h]) : b = K.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12099
|
+
const x = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12084
12100
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
12085
12101
|
}
|
|
12086
12102
|
if (i) {
|
|
12087
|
-
const n = o.properties,
|
|
12088
|
-
r = Ge.calculateDistance(
|
|
12103
|
+
const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12104
|
+
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12089
12105
|
let b;
|
|
12090
|
-
n.mode === "RL" ? b =
|
|
12091
|
-
const x = H.lineString(b.map((
|
|
12106
|
+
n.mode === "RL" ? b = K.convertToMonotonicLng([u, h]) : b = K.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12107
|
+
const x = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12092
12108
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
12093
12109
|
}
|
|
12094
12110
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -12133,7 +12149,7 @@ const Um = {
|
|
|
12133
12149
|
if (i)
|
|
12134
12150
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
12135
12151
|
else {
|
|
12136
|
-
const n =
|
|
12152
|
+
const n = K.roundPrecision((t.total ?? 0) + r, 1);
|
|
12137
12153
|
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
12138
12154
|
"measure.bearing"
|
|
12139
12155
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
@@ -12220,37 +12236,37 @@ const Um = {
|
|
|
12220
12236
|
for (const c of l) {
|
|
12221
12237
|
const n = document.createElement("div");
|
|
12222
12238
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
12223
|
-
const
|
|
12224
|
-
|
|
12239
|
+
const u = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12240
|
+
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
|
|
12225
12241
|
}
|
|
12226
12242
|
if (t.closed) {
|
|
12227
|
-
const c = l.at(-1),
|
|
12228
|
-
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
12243
|
+
const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
12244
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12229
12245
|
}
|
|
12230
12246
|
}
|
|
12231
12247
|
},
|
|
12232
12248
|
handleClear(t, e = !0) {
|
|
12233
|
-
var l, c, n,
|
|
12249
|
+
var l, c, n, u, h, b, x, z, g, P;
|
|
12234
12250
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12235
|
-
(l = this.map) != null && l.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), (
|
|
12251
|
+
(l = this.map) != null && l.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), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
|
|
12236
12252
|
T == null || T.remove();
|
|
12237
|
-
}), this.pointMarkers[t.id] = [], (
|
|
12253
|
+
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12238
12254
|
}
|
|
12239
12255
|
}
|
|
12240
|
-
},
|
|
12241
|
-
function
|
|
12256
|
+
}, Ym = { class: "idm-gl4-measure" };
|
|
12257
|
+
function qm(t, e, o, i, a, r) {
|
|
12242
12258
|
const l = w("VBtn"), c = w("VTooltip");
|
|
12243
|
-
return y(), S("div",
|
|
12259
|
+
return y(), S("div", Ym, [
|
|
12244
12260
|
s("div", {
|
|
12245
12261
|
class: "menu-bar-box transition pa-1",
|
|
12246
12262
|
style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
12247
12263
|
}, [
|
|
12248
|
-
|
|
12264
|
+
p(c, {
|
|
12249
12265
|
text: t.$t("measure.measure"),
|
|
12250
12266
|
location: "left"
|
|
12251
12267
|
}, {
|
|
12252
12268
|
activator: f(({ props: n }) => [
|
|
12253
|
-
|
|
12269
|
+
p(l, B(n, {
|
|
12254
12270
|
"min-width": "32",
|
|
12255
12271
|
width: "32",
|
|
12256
12272
|
height: "32",
|
|
@@ -12269,8 +12285,8 @@ function Zm(t, e, o, i, a, r) {
|
|
|
12269
12285
|
], 4)
|
|
12270
12286
|
]);
|
|
12271
12287
|
}
|
|
12272
|
-
const
|
|
12273
|
-
const
|
|
12288
|
+
const Xm = /* @__PURE__ */ Y(Zm, [["render", qm]]);
|
|
12289
|
+
const $m = {
|
|
12274
12290
|
name: "IdmBottomBar",
|
|
12275
12291
|
components: { DateTimePicker: no },
|
|
12276
12292
|
props: {
|
|
@@ -12395,19 +12411,19 @@ const qm = {
|
|
|
12395
12411
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
12396
12412
|
}
|
|
12397
12413
|
}
|
|
12398
|
-
},
|
|
12414
|
+
}, Km = { class: "idm-bottom-bar-gl4" }, Qm = { class: "date-box d-flex ga-2 mr-2" }, Jm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, ed = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, td = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, od = {
|
|
12399
12415
|
key: 0,
|
|
12400
12416
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
12401
|
-
},
|
|
12402
|
-
function
|
|
12403
|
-
const l = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"),
|
|
12404
|
-
return y(), S("div",
|
|
12417
|
+
}, ad = ["onClick"], id = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, rd = { class: "text-body-1" };
|
|
12418
|
+
function sd(t, e, o, i, a, r) {
|
|
12419
|
+
const l = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), h = w("VMenu"), b = w("VBtn"), x = w("VDivider"), z = w("VTooltip");
|
|
12420
|
+
return y(), S("div", Km, [
|
|
12405
12421
|
s("div", {
|
|
12406
12422
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
12407
12423
|
style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12408
12424
|
}, [
|
|
12409
|
-
s("div",
|
|
12410
|
-
|
|
12425
|
+
s("div", Qm, [
|
|
12426
|
+
p(l, B({
|
|
12411
12427
|
ref: "dateTimePicker",
|
|
12412
12428
|
"date-time": a.currentDateTimeZ,
|
|
12413
12429
|
"time-zone": a.timeZone,
|
|
@@ -12419,20 +12435,20 @@ function id(t, e, o, i, a, r) {
|
|
|
12419
12435
|
onMinTimestamp: e[2] || (e[2] = (g) => a.minTimestamp = g),
|
|
12420
12436
|
onMaxTimestamp: e[3] || (e[3] = (g) => a.maxTimestamp = g)
|
|
12421
12437
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
12422
|
-
|
|
12438
|
+
p(b, {
|
|
12423
12439
|
text: "",
|
|
12424
12440
|
height: "30",
|
|
12425
12441
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
12426
12442
|
"min-width": "30"
|
|
12427
12443
|
}, {
|
|
12428
12444
|
default: f(() => [
|
|
12429
|
-
|
|
12430
|
-
|
|
12445
|
+
$(m(a.intervalHour) + " h ", 1),
|
|
12446
|
+
p(h, { activator: "parent" }, {
|
|
12431
12447
|
default: f(() => [
|
|
12432
|
-
u
|
|
12448
|
+
p(u, { class: "pa-1" }, {
|
|
12433
12449
|
default: f(() => [
|
|
12434
|
-
(y(!0), S(be, null, we(a.intervalOptions, (g,
|
|
12435
|
-
key:
|
|
12450
|
+
(y(!0), S(be, null, we(a.intervalOptions, (g, P) => (y(), R(n, {
|
|
12451
|
+
key: P,
|
|
12436
12452
|
value: g,
|
|
12437
12453
|
variant: a.intervalHour === g ? "tonal" : "text",
|
|
12438
12454
|
color: "primary",
|
|
@@ -12444,11 +12460,11 @@ function id(t, e, o, i, a, r) {
|
|
|
12444
12460
|
class: "pa-0 text-center text-body-1"
|
|
12445
12461
|
}, {
|
|
12446
12462
|
default: f(() => [
|
|
12447
|
-
|
|
12463
|
+
p(c, {
|
|
12448
12464
|
onClick: (T) => a.intervalHour = g
|
|
12449
12465
|
}, {
|
|
12450
12466
|
default: f(() => [
|
|
12451
|
-
|
|
12467
|
+
$(m(g) + "h", 1)
|
|
12452
12468
|
]),
|
|
12453
12469
|
_: 2
|
|
12454
12470
|
}, 1032, ["onClick"])
|
|
@@ -12465,13 +12481,13 @@ function id(t, e, o, i, a, r) {
|
|
|
12465
12481
|
_: 1
|
|
12466
12482
|
})
|
|
12467
12483
|
]),
|
|
12468
|
-
|
|
12484
|
+
p(x, {
|
|
12469
12485
|
vertical: "",
|
|
12470
12486
|
class: "mx-2 my-3",
|
|
12471
12487
|
style: { height: "16px" }
|
|
12472
12488
|
}),
|
|
12473
|
-
s("div",
|
|
12474
|
-
|
|
12489
|
+
s("div", Jm, [
|
|
12490
|
+
p(b, {
|
|
12475
12491
|
icon: "",
|
|
12476
12492
|
size: "small",
|
|
12477
12493
|
density: "comfortable",
|
|
@@ -12484,7 +12500,7 @@ function id(t, e, o, i, a, r) {
|
|
|
12484
12500
|
_: 1,
|
|
12485
12501
|
__: [10]
|
|
12486
12502
|
}, 8, ["onClick"]),
|
|
12487
|
-
|
|
12503
|
+
p(b, {
|
|
12488
12504
|
icon: "",
|
|
12489
12505
|
size: "small",
|
|
12490
12506
|
density: "comfortable",
|
|
@@ -12524,7 +12540,7 @@ function id(t, e, o, i, a, r) {
|
|
|
12524
12540
|
_: 1,
|
|
12525
12541
|
__: [13]
|
|
12526
12542
|
}, 8, ["onClick"])),
|
|
12527
|
-
|
|
12543
|
+
p(b, {
|
|
12528
12544
|
icon: "",
|
|
12529
12545
|
size: "small",
|
|
12530
12546
|
density: "comfortable",
|
|
@@ -12538,22 +12554,22 @@ function id(t, e, o, i, a, r) {
|
|
|
12538
12554
|
__: [14]
|
|
12539
12555
|
}, 8, ["onClick"])
|
|
12540
12556
|
]),
|
|
12541
|
-
|
|
12557
|
+
p(x, {
|
|
12542
12558
|
vertical: "",
|
|
12543
12559
|
class: "mx-2 my-3",
|
|
12544
12560
|
style: { height: "16px" }
|
|
12545
12561
|
}),
|
|
12546
|
-
s("div",
|
|
12547
|
-
|
|
12562
|
+
s("div", ed, [
|
|
12563
|
+
p(z, {
|
|
12548
12564
|
text: t.$t("weather.windBarbs"),
|
|
12549
12565
|
location: "top"
|
|
12550
12566
|
}, {
|
|
12551
12567
|
activator: f(({ props: g }) => {
|
|
12552
|
-
var
|
|
12568
|
+
var P, T;
|
|
12553
12569
|
return [
|
|
12554
|
-
|
|
12570
|
+
p(b, B(g, {
|
|
12555
12571
|
class: "pa-1 d-flex",
|
|
12556
|
-
color: (
|
|
12572
|
+
color: (P = o.weatherCheckList) != null && P.includes("wind") ? "primary" : "",
|
|
12557
12573
|
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
12558
12574
|
height: "24",
|
|
12559
12575
|
width: "24",
|
|
@@ -12570,16 +12586,16 @@ function id(t, e, o, i, a, r) {
|
|
|
12570
12586
|
}),
|
|
12571
12587
|
_: 1
|
|
12572
12588
|
}, 8, ["text"]),
|
|
12573
|
-
|
|
12589
|
+
p(z, {
|
|
12574
12590
|
text: t.$t("weather.sigWaveHeight"),
|
|
12575
12591
|
location: "top"
|
|
12576
12592
|
}, {
|
|
12577
12593
|
activator: f(({ props: g }) => {
|
|
12578
|
-
var
|
|
12594
|
+
var P, T;
|
|
12579
12595
|
return [
|
|
12580
|
-
|
|
12596
|
+
p(b, B(g, {
|
|
12581
12597
|
class: "pa-1 d-flex",
|
|
12582
|
-
color: (
|
|
12598
|
+
color: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "primary" : "",
|
|
12583
12599
|
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
12584
12600
|
height: "24",
|
|
12585
12601
|
width: "24",
|
|
@@ -12595,16 +12611,16 @@ function id(t, e, o, i, a, r) {
|
|
|
12595
12611
|
}),
|
|
12596
12612
|
_: 1
|
|
12597
12613
|
}, 8, ["text"]),
|
|
12598
|
-
|
|
12614
|
+
p(z, {
|
|
12599
12615
|
text: t.$t("weather.currentDirection"),
|
|
12600
12616
|
location: "top"
|
|
12601
12617
|
}, {
|
|
12602
12618
|
activator: f(({ props: g }) => {
|
|
12603
|
-
var
|
|
12619
|
+
var P, T;
|
|
12604
12620
|
return [
|
|
12605
|
-
|
|
12621
|
+
p(b, B(g, {
|
|
12606
12622
|
class: "pa-1 d-flex",
|
|
12607
|
-
color: (
|
|
12623
|
+
color: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "primary" : "",
|
|
12608
12624
|
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
12609
12625
|
height: "24",
|
|
12610
12626
|
width: "24",
|
|
@@ -12620,12 +12636,12 @@ function id(t, e, o, i, a, r) {
|
|
|
12620
12636
|
}),
|
|
12621
12637
|
_: 1
|
|
12622
12638
|
}, 8, ["text"]),
|
|
12623
|
-
|
|
12639
|
+
p(z, {
|
|
12624
12640
|
text: t.$t("weather.weatherLayers"),
|
|
12625
12641
|
location: "top"
|
|
12626
12642
|
}, {
|
|
12627
12643
|
activator: f(({ props: g }) => [
|
|
12628
|
-
|
|
12644
|
+
p(b, B(g, {
|
|
12629
12645
|
class: "pa-1 d-flex",
|
|
12630
12646
|
variant: "text",
|
|
12631
12647
|
height: "24",
|
|
@@ -12642,13 +12658,13 @@ function id(t, e, o, i, a, r) {
|
|
|
12642
12658
|
_: 1
|
|
12643
12659
|
}, 8, ["text"])
|
|
12644
12660
|
]),
|
|
12645
|
-
|
|
12661
|
+
p(x, {
|
|
12646
12662
|
vertical: "",
|
|
12647
12663
|
class: "mx-2 mr-3 my-3",
|
|
12648
12664
|
style: { height: "16px" }
|
|
12649
12665
|
}),
|
|
12650
|
-
s("div",
|
|
12651
|
-
|
|
12666
|
+
s("div", td, [
|
|
12667
|
+
p(b, {
|
|
12652
12668
|
text: "",
|
|
12653
12669
|
height: "30",
|
|
12654
12670
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
@@ -12656,12 +12672,12 @@ function id(t, e, o, i, a, r) {
|
|
|
12656
12672
|
onClick: e[7] || (e[7] = (g) => a.source = "GFS")
|
|
12657
12673
|
}, {
|
|
12658
12674
|
default: f(() => e[16] || (e[16] = [
|
|
12659
|
-
|
|
12675
|
+
$("NOAA", -1)
|
|
12660
12676
|
])),
|
|
12661
12677
|
_: 1,
|
|
12662
12678
|
__: [16]
|
|
12663
12679
|
}, 8, ["color"]),
|
|
12664
|
-
|
|
12680
|
+
p(b, {
|
|
12665
12681
|
text: "",
|
|
12666
12682
|
height: "30",
|
|
12667
12683
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
@@ -12669,7 +12685,7 @@ function id(t, e, o, i, a, r) {
|
|
|
12669
12685
|
onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
|
|
12670
12686
|
}, {
|
|
12671
12687
|
default: f(() => e[17] || (e[17] = [
|
|
12672
|
-
|
|
12688
|
+
$("ECMWF", -1)
|
|
12673
12689
|
])),
|
|
12674
12690
|
_: 1,
|
|
12675
12691
|
__: [17]
|
|
@@ -12680,15 +12696,15 @@ function id(t, e, o, i, a, r) {
|
|
|
12680
12696
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
12681
12697
|
style: ie({ right: a.right + "px" })
|
|
12682
12698
|
}, [
|
|
12683
|
-
a.showTimezone ? (y(), S("div",
|
|
12699
|
+
a.showTimezone ? (y(), S("div", od, [
|
|
12684
12700
|
(y(!0), S(be, null, we(a.offsets, (g) => (y(), S("div", {
|
|
12685
12701
|
key: g,
|
|
12686
12702
|
class: "item rounded text-body-2 hover-active",
|
|
12687
|
-
onClick: (
|
|
12688
|
-
}, m(g < 0 ? g : "+" + g), 9,
|
|
12703
|
+
onClick: (P) => a.timeZone = g
|
|
12704
|
+
}, m(g < 0 ? g : "+" + g), 9, ad))), 128))
|
|
12689
12705
|
])) : D("", !0),
|
|
12690
|
-
s("div",
|
|
12691
|
-
|
|
12706
|
+
s("div", id, [
|
|
12707
|
+
p(b, {
|
|
12692
12708
|
text: "",
|
|
12693
12709
|
variant: "flat",
|
|
12694
12710
|
height: "28",
|
|
@@ -12697,24 +12713,24 @@ function id(t, e, o, i, a, r) {
|
|
|
12697
12713
|
onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
|
|
12698
12714
|
}, {
|
|
12699
12715
|
default: f(() => [
|
|
12700
|
-
|
|
12716
|
+
$(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12701
12717
|
]),
|
|
12702
12718
|
_: 1
|
|
12703
12719
|
}),
|
|
12704
|
-
s("span",
|
|
12720
|
+
s("span", rd, m(a.currentRealTime), 1)
|
|
12705
12721
|
])
|
|
12706
12722
|
], 4)
|
|
12707
12723
|
]);
|
|
12708
12724
|
}
|
|
12709
|
-
const
|
|
12725
|
+
const ld = /* @__PURE__ */ Y($m, [["render", sd]]), nd = {
|
|
12710
12726
|
name: "IdmGL4",
|
|
12711
12727
|
components: {
|
|
12712
12728
|
IdmOtherLayer: pl,
|
|
12713
12729
|
IdmWeatherLayer: ec,
|
|
12714
12730
|
IdmTropicals: Xa,
|
|
12715
|
-
IdmMeasure:
|
|
12716
|
-
IdmSpot:
|
|
12717
|
-
IdmBottomBar:
|
|
12731
|
+
IdmMeasure: Xm,
|
|
12732
|
+
IdmSpot: Vm,
|
|
12733
|
+
IdmBottomBar: ld
|
|
12718
12734
|
},
|
|
12719
12735
|
props: {
|
|
12720
12736
|
map: {
|
|
@@ -12765,14 +12781,14 @@ const rd = /* @__PURE__ */ Y(qm, [["render", id]]), sd = {
|
|
|
12765
12781
|
}
|
|
12766
12782
|
},
|
|
12767
12783
|
methods: {}
|
|
12768
|
-
},
|
|
12784
|
+
}, cd = {
|
|
12769
12785
|
ref: "mapHomeGl4",
|
|
12770
12786
|
class: "map-gl4-home"
|
|
12771
12787
|
};
|
|
12772
|
-
function
|
|
12773
|
-
const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"),
|
|
12774
|
-
return y(), S("div",
|
|
12775
|
-
|
|
12788
|
+
function md(t, e, o, i, a, r) {
|
|
12789
|
+
const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), b = w("IdmBottomBar");
|
|
12790
|
+
return y(), S("div", cd, [
|
|
12791
|
+
p(l, B({
|
|
12776
12792
|
ref: "idmOtherLayers",
|
|
12777
12793
|
token: o.token,
|
|
12778
12794
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12787,7 +12803,7 @@ function nd(t, e, o, i, a, r) {
|
|
|
12787
12803
|
a.otherCheckList = x, a.layerVersion = a.layerVersion + 1;
|
|
12788
12804
|
})
|
|
12789
12805
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12790
|
-
|
|
12806
|
+
p(c, B({
|
|
12791
12807
|
ref: "idmWeatherLayers",
|
|
12792
12808
|
map: o.map,
|
|
12793
12809
|
"before-layer": "empty-layer-2",
|
|
@@ -12805,7 +12821,7 @@ function nd(t, e, o, i, a, r) {
|
|
|
12805
12821
|
a.weatherCheckList = x, a.layerVersion = a.layerVersion + 1;
|
|
12806
12822
|
})
|
|
12807
12823
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12808
|
-
|
|
12824
|
+
p(n, B({
|
|
12809
12825
|
map: o.map,
|
|
12810
12826
|
token: o.token,
|
|
12811
12827
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12816,11 +12832,11 @@ function nd(t, e, o, i, a, r) {
|
|
|
12816
12832
|
"forecast-model": o.forecastModel,
|
|
12817
12833
|
"map-feather": o.mapFeather
|
|
12818
12834
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12819
|
-
u
|
|
12835
|
+
p(u, B({
|
|
12820
12836
|
map: o.map,
|
|
12821
12837
|
"map-feather": o.mapFeather
|
|
12822
12838
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12823
|
-
|
|
12839
|
+
p(h, B({
|
|
12824
12840
|
ref: "idmSpot",
|
|
12825
12841
|
map: o.map,
|
|
12826
12842
|
token: o.token,
|
|
@@ -12828,7 +12844,7 @@ function nd(t, e, o, i, a, r) {
|
|
|
12828
12844
|
"forecast-model": o.forecastModel,
|
|
12829
12845
|
"map-feather": o.mapFeather
|
|
12830
12846
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
12831
|
-
|
|
12847
|
+
p(b, B({
|
|
12832
12848
|
ref: "idmBottomBar",
|
|
12833
12849
|
"forecast-model": o.forecastModel,
|
|
12834
12850
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12836,16 +12852,16 @@ function nd(t, e, o, i, a, r) {
|
|
|
12836
12852
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
12837
12853
|
], 512);
|
|
12838
12854
|
}
|
|
12839
|
-
const
|
|
12840
|
-
class
|
|
12855
|
+
const dd = /* @__PURE__ */ Y(nd, [["render", md]]);
|
|
12856
|
+
class hd {
|
|
12841
12857
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
var o, i, a, r, l, c, n,
|
|
12858
|
+
de(this, "originStyle");
|
|
12859
|
+
de(this, "mapboxStyle");
|
|
12860
|
+
de(this, "i4");
|
|
12861
|
+
de(this, "hi");
|
|
12862
|
+
de(this, "td");
|
|
12863
|
+
de(this, "windy");
|
|
12864
|
+
var o, i, a, r, l, c, n, u, h, b, x, z, g, P, T, O, I, L, k, v, C, _, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Do, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, qo, Xo, $o, Ko, Qo, Jo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
|
|
12849
12865
|
this.i4 = {
|
|
12850
12866
|
source: {
|
|
12851
12867
|
type: "raster",
|
|
@@ -31489,23 +31505,23 @@ class md {
|
|
|
31489
31505
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
|
|
31490
31506
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
|
|
31491
31507
|
(c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
|
|
31492
|
-
(
|
|
31508
|
+
(u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "ice-area-line"),
|
|
31493
31509
|
(b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
|
|
31494
|
-
(
|
|
31495
|
-
(
|
|
31510
|
+
(z = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : z.find((d) => d.id === "loadlines-fill"),
|
|
31511
|
+
(P = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : P.find((d) => d.id === "empty-layer-0"),
|
|
31496
31512
|
(O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
|
|
31497
|
-
(
|
|
31498
|
-
(
|
|
31499
|
-
(
|
|
31513
|
+
(L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((d) => d.id === "country-boundaries"),
|
|
31514
|
+
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
|
|
31515
|
+
(_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((d) => d.id === "water-outline2"),
|
|
31500
31516
|
(N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
|
|
31501
31517
|
(Z = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Z.find((d) => d.id === "water-line-label"),
|
|
31502
31518
|
(ee = (U = this.originStyle) == null ? void 0 : U.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31503
|
-
(
|
|
31504
|
-
(
|
|
31505
|
-
(ae = (
|
|
31506
|
-
(
|
|
31507
|
-
(ge = (
|
|
31508
|
-
(
|
|
31519
|
+
(X = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : X.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31520
|
+
(se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
|
|
31521
|
+
(ae = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
|
|
31522
|
+
(ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
|
|
31523
|
+
(ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
|
|
31524
|
+
(me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
|
|
31509
31525
|
(Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31510
31526
|
(De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31511
31527
|
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
@@ -31702,7 +31718,7 @@ class md {
|
|
|
31702
31718
|
};
|
|
31703
31719
|
}
|
|
31704
31720
|
}
|
|
31705
|
-
const
|
|
31721
|
+
const pd = {
|
|
31706
31722
|
name: "MapInitial",
|
|
31707
31723
|
props: {
|
|
31708
31724
|
token: {
|
|
@@ -31763,7 +31779,7 @@ const dd = {
|
|
|
31763
31779
|
},
|
|
31764
31780
|
methods: {
|
|
31765
31781
|
async initOnlineMap() {
|
|
31766
|
-
this.helper = new
|
|
31782
|
+
this.helper = new hd(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
31767
31783
|
const t = new ve.Map({
|
|
31768
31784
|
container: "map",
|
|
31769
31785
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -31804,17 +31820,17 @@ const dd = {
|
|
|
31804
31820
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
31805
31821
|
}
|
|
31806
31822
|
}
|
|
31807
|
-
},
|
|
31808
|
-
function
|
|
31823
|
+
}, ud = { class: "mapbox-initial-gl4" }, gd = { class: "v-btn--variant-elevated rounded" }, fd = { class: "zoom" }, yd = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
|
|
31824
|
+
function bd(t, e, o, i, a, r) {
|
|
31809
31825
|
const l = w("VBtn");
|
|
31810
|
-
return y(), S("div",
|
|
31826
|
+
return y(), S("div", ud, [
|
|
31811
31827
|
e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
|
|
31812
31828
|
s("div", {
|
|
31813
31829
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
31814
31830
|
style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31815
31831
|
}, [
|
|
31816
|
-
s("div",
|
|
31817
|
-
|
|
31832
|
+
s("div", gd, [
|
|
31833
|
+
p(l, {
|
|
31818
31834
|
"min-width": "32",
|
|
31819
31835
|
width: "32",
|
|
31820
31836
|
height: "32",
|
|
@@ -31827,8 +31843,8 @@ function fd(t, e, o, i, a, r) {
|
|
|
31827
31843
|
_: 1,
|
|
31828
31844
|
__: [0]
|
|
31829
31845
|
}, 8, ["onClick"]),
|
|
31830
|
-
s("div",
|
|
31831
|
-
|
|
31846
|
+
s("div", fd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
31847
|
+
p(l, {
|
|
31832
31848
|
"min-width": "32",
|
|
31833
31849
|
width: "32",
|
|
31834
31850
|
height: "32",
|
|
@@ -31843,7 +31859,7 @@ function fd(t, e, o, i, a, r) {
|
|
|
31843
31859
|
}, 8, ["onClick"])
|
|
31844
31860
|
])
|
|
31845
31861
|
], 4),
|
|
31846
|
-
s("div",
|
|
31862
|
+
s("div", yd, [
|
|
31847
31863
|
e[2] || (e[2] = s("span", null, "© 2023", -1)),
|
|
31848
31864
|
s("span", null, "-" + m(r.computeYear), 1),
|
|
31849
31865
|
e[3] || (e[3] = s("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -31855,8 +31871,8 @@ function fd(t, e, o, i, a, r) {
|
|
|
31855
31871
|
])
|
|
31856
31872
|
]);
|
|
31857
31873
|
}
|
|
31858
|
-
const
|
|
31859
|
-
const
|
|
31874
|
+
const wd = /* @__PURE__ */ Y(pd, [["render", bd]]);
|
|
31875
|
+
const xd = {
|
|
31860
31876
|
name: "DateRangePicker",
|
|
31861
31877
|
props: {
|
|
31862
31878
|
width: {
|
|
@@ -32005,14 +32021,14 @@ const bd = {
|
|
|
32005
32021
|
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
32006
32022
|
}
|
|
32007
32023
|
}
|
|
32008
|
-
},
|
|
32024
|
+
}, vd = {
|
|
32009
32025
|
class: "idm-gl4-date-picker",
|
|
32010
32026
|
ref: "idmGl4DatePicker"
|
|
32011
|
-
},
|
|
32012
|
-
function
|
|
32013
|
-
const l = w("VBtn"), c = w("VDatePicker"), n = w("VCardText"),
|
|
32014
|
-
return y(), S("div",
|
|
32015
|
-
|
|
32027
|
+
}, _d = { class: "pa-0" };
|
|
32028
|
+
function kd(t, e, o, i, a, r) {
|
|
32029
|
+
const l = w("VBtn"), c = w("VDatePicker"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard");
|
|
32030
|
+
return y(), S("div", vd, [
|
|
32031
|
+
p(l, {
|
|
32016
32032
|
text: "",
|
|
32017
32033
|
height: o.height,
|
|
32018
32034
|
width: o.width,
|
|
@@ -32020,7 +32036,7 @@ function vd(t, e, o, i, a, r) {
|
|
|
32020
32036
|
onClick: r.handleOpenDatePicker
|
|
32021
32037
|
}, {
|
|
32022
32038
|
default: f(() => [
|
|
32023
|
-
|
|
32039
|
+
$(m(a.dateRangeStr), 1)
|
|
32024
32040
|
]),
|
|
32025
32041
|
_: 1
|
|
32026
32042
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -32029,10 +32045,10 @@ function vd(t, e, o, i, a, r) {
|
|
|
32029
32045
|
class: Ne(["card-box d-flex flex-column", o.position])
|
|
32030
32046
|
}, {
|
|
32031
32047
|
default: f(() => [
|
|
32032
|
-
|
|
32048
|
+
p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
32033
32049
|
default: f(() => [
|
|
32034
|
-
s("div",
|
|
32035
|
-
|
|
32050
|
+
s("div", _d, [
|
|
32051
|
+
p(c, {
|
|
32036
32052
|
modelValue: a.dateRange,
|
|
32037
32053
|
"onUpdate:modelValue": e[0] || (e[0] = (x) => a.dateRange = x),
|
|
32038
32054
|
min: a.minDate,
|
|
@@ -32050,33 +32066,33 @@ function vd(t, e, o, i, a, r) {
|
|
|
32050
32066
|
]),
|
|
32051
32067
|
_: 1
|
|
32052
32068
|
}),
|
|
32053
|
-
u
|
|
32054
|
-
|
|
32069
|
+
p(u),
|
|
32070
|
+
p(h, {
|
|
32055
32071
|
class: "justify-end pa-0 pr-4",
|
|
32056
32072
|
style: { height: "50px" }
|
|
32057
32073
|
}, {
|
|
32058
32074
|
default: f(() => [
|
|
32059
|
-
|
|
32075
|
+
p(l, {
|
|
32060
32076
|
size: "small",
|
|
32061
32077
|
variant: "tonal",
|
|
32062
32078
|
class: "text-none text-body-2",
|
|
32063
32079
|
onClick: r.handleCancelDate
|
|
32064
32080
|
}, {
|
|
32065
32081
|
default: f(() => e[1] || (e[1] = [
|
|
32066
|
-
|
|
32082
|
+
$("Cancel", -1)
|
|
32067
32083
|
])),
|
|
32068
32084
|
_: 1,
|
|
32069
32085
|
__: [1]
|
|
32070
32086
|
}, 8, ["onClick"]),
|
|
32071
|
-
|
|
32087
|
+
p(l, {
|
|
32072
32088
|
size: "small",
|
|
32073
|
-
variant: "
|
|
32089
|
+
variant: "flat",
|
|
32074
32090
|
color: "primary",
|
|
32075
32091
|
class: "text-none text-body-2",
|
|
32076
32092
|
onClick: r.handleConfirmDate
|
|
32077
32093
|
}, {
|
|
32078
32094
|
default: f(() => e[2] || (e[2] = [
|
|
32079
|
-
|
|
32095
|
+
$("Confirm", -1)
|
|
32080
32096
|
])),
|
|
32081
32097
|
_: 1,
|
|
32082
32098
|
__: [2]
|
|
@@ -32089,22 +32105,22 @@ function vd(t, e, o, i, a, r) {
|
|
|
32089
32105
|
}, 8, ["class"])) : D("", !0)
|
|
32090
32106
|
], 512);
|
|
32091
32107
|
}
|
|
32092
|
-
const
|
|
32108
|
+
const zd = /* @__PURE__ */ Y(xd, [["render", kd]]), Bd = {
|
|
32093
32109
|
install(t) {
|
|
32094
|
-
t.component("MapInitial",
|
|
32110
|
+
t.component("MapInitial", wd), t.component("MapboxGL", dd), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", no), t.component("DateRangePicker", zd), t.component("PortDetail", so);
|
|
32095
32111
|
}
|
|
32096
32112
|
};
|
|
32097
32113
|
export {
|
|
32098
|
-
|
|
32114
|
+
zd as DateRangePicker,
|
|
32099
32115
|
no as DateTimePicker,
|
|
32100
32116
|
qa as LatLngGL,
|
|
32101
|
-
|
|
32102
|
-
|
|
32103
|
-
|
|
32117
|
+
wd as MapInitial,
|
|
32118
|
+
dd as MapboxGL,
|
|
32119
|
+
Bd as MapboxGLPlugin,
|
|
32104
32120
|
ke as ParticleSchema,
|
|
32105
32121
|
so as PortDetail,
|
|
32106
32122
|
Xa as TropicalGL,
|
|
32107
32123
|
lo as Viewport,
|
|
32108
32124
|
Fe as WebGL,
|
|
32109
|
-
|
|
32125
|
+
le as WebGLSchema
|
|
32110
32126
|
};
|