@idmwx/idmui-gl4 1.2.6 → 1.2.8
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 +370 -385
- package/dist/index.umd.cjs +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1485,10 +1485,10 @@ const ui = {
|
|
|
1485
1485
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1486
1486
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1487
1487
|
], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
|
|
1488
|
-
var c, n, g, p,
|
|
1488
|
+
var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
|
|
1489
1489
|
let r = {};
|
|
1490
1490
|
const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1491
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((
|
|
1491
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
|
|
1492
1492
|
});
|
|
1493
1493
|
},
|
|
1494
1494
|
handleTide() {
|
|
@@ -1673,19 +1673,19 @@ const ui = {
|
|
|
1673
1673
|
width: "120"
|
|
1674
1674
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1675
1675
|
function yr(t, e, a, i, o, r) {
|
|
1676
|
-
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"),
|
|
1677
|
-
return b(), A(
|
|
1676
|
+
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
|
|
1677
|
+
return b(), A(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1678
1678
|
default: u(() => {
|
|
1679
1679
|
var w, v;
|
|
1680
1680
|
return [
|
|
1681
1681
|
d(c, { class: "w-100" }, {
|
|
1682
1682
|
default: u(() => {
|
|
1683
|
-
var
|
|
1683
|
+
var y, C, T, B, I;
|
|
1684
1684
|
return [
|
|
1685
1685
|
l("div", gi, [
|
|
1686
1686
|
l("div", fi, [
|
|
1687
1687
|
l("div", {
|
|
1688
|
-
class: He(["fi mr-2 rounded elevation-4", `fi-${(
|
|
1688
|
+
class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (C = a.port) == null ? void 0 : C.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1689
1689
|
style: { width: "36px", height: "24px" }
|
|
1690
1690
|
}, null, 2),
|
|
1691
1691
|
l("div", null, h((B = a.port) == null ? void 0 : B.name), 1)
|
|
@@ -1717,9 +1717,9 @@ function yr(t, e, a, i, o, r) {
|
|
|
1717
1717
|
}),
|
|
1718
1718
|
d(n, { class: "w-100" }),
|
|
1719
1719
|
l("div", bi, [
|
|
1720
|
-
a.followList.some((
|
|
1721
|
-
var
|
|
1722
|
-
return ((
|
|
1720
|
+
a.followList.some((y) => {
|
|
1721
|
+
var C;
|
|
1722
|
+
return ((C = y.port) == null ? void 0 : C.id) === a.portId;
|
|
1723
1723
|
}) ? (b(), A(s, {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
@@ -1806,7 +1806,7 @@ function yr(t, e, a, i, o, r) {
|
|
|
1806
1806
|
l("div", Fi, [
|
|
1807
1807
|
d(p, {
|
|
1808
1808
|
modelValue: o.currentIndex,
|
|
1809
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1809
|
+
"onUpdate:modelValue": e[0] || (e[0] = (y) => o.currentIndex = y),
|
|
1810
1810
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1811
1811
|
density: "compact",
|
|
1812
1812
|
group: "",
|
|
@@ -1815,15 +1815,15 @@ function yr(t, e, a, i, o, r) {
|
|
|
1815
1815
|
rounded: "1"
|
|
1816
1816
|
}, {
|
|
1817
1817
|
default: u(() => [
|
|
1818
|
-
(b(!0), S(be, null, we(r.dateList, (
|
|
1818
|
+
(b(!0), S(be, null, we(r.dateList, (y) => (b(), A(s, {
|
|
1819
1819
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1820
1820
|
density: "compact",
|
|
1821
1821
|
color: "primary",
|
|
1822
1822
|
height: "26",
|
|
1823
|
-
value:
|
|
1823
|
+
value: y.index
|
|
1824
1824
|
}, {
|
|
1825
1825
|
default: u(() => [
|
|
1826
|
-
j(h(
|
|
1826
|
+
j(h(y.label), 1)
|
|
1827
1827
|
]),
|
|
1828
1828
|
_: 2
|
|
1829
1829
|
}, 1032, ["value"]))), 256))
|
|
@@ -1832,40 +1832,40 @@ function yr(t, e, a, i, o, r) {
|
|
|
1832
1832
|
}, 8, ["modelValue"]),
|
|
1833
1833
|
l("table", Hi, [
|
|
1834
1834
|
l("tbody", null, [
|
|
1835
|
-
(b(!0), S(be, null, we(o.tableData, (
|
|
1836
|
-
key:
|
|
1835
|
+
(b(!0), S(be, null, we(o.tableData, (y) => (b(), S("tr", {
|
|
1836
|
+
key: y.id
|
|
1837
1837
|
}, [
|
|
1838
1838
|
l("th", Ui, [
|
|
1839
|
-
j(h(t.$t(`${
|
|
1840
|
-
|
|
1839
|
+
j(h(t.$t(`${y.key}`)) + " ", 1),
|
|
1840
|
+
y.unit ? (b(), S("span", Wi, " ( " + h(y.unit) + " )", 1)) : D("", !0)
|
|
1841
1841
|
]),
|
|
1842
1842
|
l("td", Gi, [
|
|
1843
|
-
|
|
1843
|
+
y.img ? (b(), S("img", {
|
|
1844
1844
|
key: 0,
|
|
1845
|
-
src:
|
|
1845
|
+
src: y == null ? void 0 : y.value0,
|
|
1846
1846
|
style: { height: "30px" }
|
|
1847
|
-
}, null, 8, Vi)) : (b(), S("span", Zi, h((
|
|
1847
|
+
}, null, 8, Vi)) : (b(), S("span", Zi, h((y == null ? void 0 : y.value0) ?? "-"), 1))
|
|
1848
1848
|
]),
|
|
1849
1849
|
l("td", qi, [
|
|
1850
|
-
|
|
1850
|
+
y.img ? (b(), S("img", {
|
|
1851
1851
|
key: 0,
|
|
1852
|
-
src:
|
|
1852
|
+
src: y == null ? void 0 : y.value1,
|
|
1853
1853
|
style: { height: "30px" }
|
|
1854
|
-
}, null, 8, Yi)) : (b(), S("span", Ki, h((
|
|
1854
|
+
}, null, 8, Yi)) : (b(), S("span", Ki, h((y == null ? void 0 : y.value1) ?? "-"), 1))
|
|
1855
1855
|
]),
|
|
1856
1856
|
l("td", Xi, [
|
|
1857
|
-
|
|
1857
|
+
y.img ? (b(), S("img", {
|
|
1858
1858
|
key: 0,
|
|
1859
|
-
src:
|
|
1859
|
+
src: y == null ? void 0 : y.value2,
|
|
1860
1860
|
style: { height: "30px" }
|
|
1861
|
-
}, null, 8, $i)) : (b(), S("span", Qi, h((
|
|
1861
|
+
}, null, 8, $i)) : (b(), S("span", Qi, h((y == null ? void 0 : y.value2) ?? "-"), 1))
|
|
1862
1862
|
]),
|
|
1863
1863
|
l("td", Ji, [
|
|
1864
|
-
|
|
1864
|
+
y.img ? (b(), S("img", {
|
|
1865
1865
|
key: 0,
|
|
1866
|
-
src:
|
|
1866
|
+
src: y == null ? void 0 : y.value3,
|
|
1867
1867
|
style: { height: "30px" }
|
|
1868
|
-
}, null, 8, er)) : (b(), S("span", tr, h((
|
|
1868
|
+
}, null, 8, er)) : (b(), S("span", tr, h((y == null ? void 0 : y.value3) ?? "-"), 1))
|
|
1869
1869
|
])
|
|
1870
1870
|
]))), 128))
|
|
1871
1871
|
])
|
|
@@ -1889,7 +1889,7 @@ function yr(t, e, a, i, o, r) {
|
|
|
1889
1889
|
density: "compact",
|
|
1890
1890
|
variant: "plain",
|
|
1891
1891
|
size: "small",
|
|
1892
|
-
onClick: e[1] || (e[1] = (
|
|
1892
|
+
onClick: e[1] || (e[1] = (y) => o.showTideDetail = !1)
|
|
1893
1893
|
})) : (b(), A(s, {
|
|
1894
1894
|
key: 1,
|
|
1895
1895
|
icon: "mdi-eye-outline",
|
|
@@ -1909,12 +1909,12 @@ function yr(t, e, a, i, o, r) {
|
|
|
1909
1909
|
l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1910
1910
|
l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
|
|
1911
1911
|
]),
|
|
1912
|
-
(b(!0), S(be, null, we(o.tideTableData, (
|
|
1912
|
+
(b(!0), S(be, null, we(o.tideTableData, (y, C) => {
|
|
1913
1913
|
var T;
|
|
1914
|
-
return b(), S("tr", { key:
|
|
1915
|
-
l("td", ur, h(t.$t(`tide.${(T =
|
|
1916
|
-
l("td", gr, h(r.computeLocalTime(
|
|
1917
|
-
l("td", fr, h((
|
|
1914
|
+
return b(), S("tr", { key: C }, [
|
|
1915
|
+
l("td", ur, h(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
1916
|
+
l("td", gr, h(r.computeLocalTime(y == null ? void 0 : y.date, a.port, "MM-DD HH:mm")), 1),
|
|
1917
|
+
l("td", fr, h((y == null ? void 0 : y.height) ?? "-") + " m", 1)
|
|
1918
1918
|
]);
|
|
1919
1919
|
}), 128))
|
|
1920
1920
|
])
|
|
@@ -2941,7 +2941,7 @@ function Tl(t, e, a, i, o, r) {
|
|
|
2941
2941
|
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
|
|
2942
2942
|
return b(), A(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2943
2943
|
default: u(() => {
|
|
2944
|
-
var
|
|
2944
|
+
var f, w;
|
|
2945
2945
|
return [
|
|
2946
2946
|
d(c, { class: "w-100" }, {
|
|
2947
2947
|
default: u(() => {
|
|
@@ -2989,7 +2989,7 @@ function Tl(t, e, a, i, o, r) {
|
|
|
2989
2989
|
l("div", il, [
|
|
2990
2990
|
l("div", rl, [
|
|
2991
2991
|
l("div", ll, h(t.$t("tide.region")), 1),
|
|
2992
|
-
l("div", sl, h(((
|
|
2992
|
+
l("div", sl, h(((f = a.station) == null ? void 0 : f.Country) ?? ((w = a.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
2993
2993
|
]),
|
|
2994
2994
|
l("div", nl, [
|
|
2995
2995
|
l("div", cl, h(t.$t("tide.position")), 1),
|
|
@@ -3048,10 +3048,10 @@ function Tl(t, e, a, i, o, r) {
|
|
|
3048
3048
|
l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
|
|
3049
3049
|
l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
|
|
3050
3050
|
]),
|
|
3051
|
-
(b(!0), S(be, null, we(o.tideTableData, (v,
|
|
3052
|
-
var
|
|
3053
|
-
return b(), S("tr", { key:
|
|
3054
|
-
l("td", Ll, h(t.$t(`tide.${(
|
|
3051
|
+
(b(!0), S(be, null, we(o.tideTableData, (v, y) => {
|
|
3052
|
+
var C;
|
|
3053
|
+
return b(), S("tr", { key: y }, [
|
|
3054
|
+
l("td", Ll, h(t.$t(`tide.${(C = v == null ? void 0 : v.type) == null ? void 0 : C.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
3055
3055
|
l("td", Pl, h(r.computeLocalTime(v == null ? void 0 : v.date, a.station, "MM-DD HH:mm")), 1),
|
|
3056
3056
|
l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
|
|
3057
3057
|
]);
|
|
@@ -5229,15 +5229,15 @@ const Yl = {
|
|
|
5229
5229
|
var a, i, o, r, s, c, n, g, p;
|
|
5230
5230
|
const e = t.features[0];
|
|
5231
5231
|
if (e.properties) {
|
|
5232
|
-
const
|
|
5233
|
-
|
|
5234
|
-
const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0),
|
|
5235
|
-
lat:
|
|
5236
|
-
lng:
|
|
5232
|
+
const f = e.properties;
|
|
5233
|
+
f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
|
|
5234
|
+
const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0), y = {
|
|
5235
|
+
lat: f.lat,
|
|
5236
|
+
lng: f.lng,
|
|
5237
5237
|
datetime: this.realTime,
|
|
5238
5238
|
forecastModel: this.forecastModel
|
|
5239
5239
|
};
|
|
5240
|
-
v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(
|
|
5240
|
+
v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(y) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(y);
|
|
5241
5241
|
}
|
|
5242
5242
|
},
|
|
5243
5243
|
handleHover(t) {
|
|
@@ -5457,8 +5457,8 @@ const es = {
|
|
|
5457
5457
|
})
|
|
5458
5458
|
);
|
|
5459
5459
|
(await Promise.all(s)).map((n) => {
|
|
5460
|
-
var
|
|
5461
|
-
const g = ((
|
|
5460
|
+
var f, w, v;
|
|
5461
|
+
const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (v = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : v.key;
|
|
5462
5462
|
this.otherLayers[p] = g;
|
|
5463
5463
|
});
|
|
5464
5464
|
}
|
|
@@ -5497,7 +5497,7 @@ const es = {
|
|
|
5497
5497
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5498
5498
|
function hs(t, e, a, i, o, r) {
|
|
5499
5499
|
var Q, re, de, pe, se, X, oe, ue, ne;
|
|
5500
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"),
|
|
5500
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), C = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), P = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5501
5501
|
return b(), S("div", ts, [
|
|
5502
5502
|
l("div", {
|
|
5503
5503
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5565,7 +5565,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5565
5565
|
]),
|
|
5566
5566
|
_: 1
|
|
5567
5567
|
}),
|
|
5568
|
-
d(
|
|
5568
|
+
d(f, { class: "pb-2" }, {
|
|
5569
5569
|
default: u(() => [
|
|
5570
5570
|
l("div", rs, [
|
|
5571
5571
|
(b(!0), S(be, null, we(o.mapFeathers, (F) => (b(), S("div", {
|
|
@@ -5618,7 +5618,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5618
5618
|
]),
|
|
5619
5619
|
_: 1
|
|
5620
5620
|
}),
|
|
5621
|
-
d(
|
|
5621
|
+
d(f, { class: "py-2" }, {
|
|
5622
5622
|
default: u(() => [
|
|
5623
5623
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5624
5624
|
key: F.key,
|
|
@@ -5657,7 +5657,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5657
5657
|
]),
|
|
5658
5658
|
_: 1
|
|
5659
5659
|
}),
|
|
5660
|
-
d(
|
|
5660
|
+
d(f, { class: "py-2" }, {
|
|
5661
5661
|
default: u(() => [
|
|
5662
5662
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5663
5663
|
key: F.key,
|
|
@@ -5696,7 +5696,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5696
5696
|
]),
|
|
5697
5697
|
_: 1
|
|
5698
5698
|
}),
|
|
5699
|
-
d(
|
|
5699
|
+
d(f, { class: "py-2" }, {
|
|
5700
5700
|
default: u(() => [
|
|
5701
5701
|
d(p, {
|
|
5702
5702
|
modelValue: o.checkList,
|
|
@@ -5734,12 +5734,12 @@ function hs(t, e, a, i, o, r) {
|
|
|
5734
5734
|
"menu-toggle": a.menuToggle,
|
|
5735
5735
|
show: o.checkList.includes("graticule")
|
|
5736
5736
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
|
|
5737
|
-
a.map ? (b(), A(
|
|
5737
|
+
a.map ? (b(), A(y, O({
|
|
5738
5738
|
key: 1,
|
|
5739
5739
|
map: a.map,
|
|
5740
5740
|
area: (Q = o.otherLayers) == null ? void 0 : Q["day-night"]
|
|
5741
5741
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5742
|
-
a.map ? (b(), A(
|
|
5742
|
+
a.map ? (b(), A(C, O({
|
|
5743
5743
|
key: 2,
|
|
5744
5744
|
map: a.map,
|
|
5745
5745
|
zone: (re = o.otherLayers) == null ? void 0 : re["time-zones"]
|
|
@@ -5774,7 +5774,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5774
5774
|
forecastModel: a.forecastModel,
|
|
5775
5775
|
"before-layer": "empty-layer-3"
|
|
5776
5776
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5777
|
-
a.map ? (b(), A(
|
|
5777
|
+
a.map ? (b(), A(L, O({
|
|
5778
5778
|
key: 6,
|
|
5779
5779
|
map: a.map,
|
|
5780
5780
|
zone: (se = o.otherLayers) == null ? void 0 : se["eca-zones"]
|
|
@@ -5789,7 +5789,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5789
5789
|
map: a.map,
|
|
5790
5790
|
area: (oe = o.otherLayers) == null ? void 0 : oe["gmdss-areas"]
|
|
5791
5791
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5792
|
-
a.map ? (b(), A(
|
|
5792
|
+
a.map ? (b(), A(P, O({
|
|
5793
5793
|
key: 9,
|
|
5794
5794
|
map: a.map,
|
|
5795
5795
|
show: o.checkList.includes("load-lines")
|
|
@@ -5894,12 +5894,12 @@ class sa {
|
|
|
5894
5894
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5895
5895
|
*/
|
|
5896
5896
|
getBoundPixel() {
|
|
5897
|
-
var
|
|
5898
|
-
const e = (
|
|
5897
|
+
var y, C;
|
|
5898
|
+
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
5899
5899
|
if (!e)
|
|
5900
5900
|
return [];
|
|
5901
|
-
const a = ((
|
|
5902
|
-
return [
|
|
5901
|
+
const a = ((C = this.map) == null ? void 0 : C.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
|
|
5902
|
+
return [f, w, g + v, p];
|
|
5903
5903
|
}
|
|
5904
5904
|
/**
|
|
5905
5905
|
* [视窗边界像素宽度]
|
|
@@ -5916,11 +5916,11 @@ class sa {
|
|
|
5916
5916
|
getWorldCopy(e, a) {
|
|
5917
5917
|
const i = 2 ** a, [o, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
|
|
5918
5918
|
for (let p = c; p <= r; p++)
|
|
5919
|
-
for (let
|
|
5920
|
-
n.push([
|
|
5919
|
+
for (let f = o; f <= s; f++)
|
|
5920
|
+
n.push([f, p]);
|
|
5921
5921
|
return n.map((p) => {
|
|
5922
|
-
const
|
|
5923
|
-
return [p[0] *
|
|
5922
|
+
const f = 2 ** a * 256;
|
|
5923
|
+
return [p[0] * f, p[1] * f, f];
|
|
5924
5924
|
});
|
|
5925
5925
|
}
|
|
5926
5926
|
resize() {
|
|
@@ -6064,8 +6064,8 @@ class je {
|
|
|
6064
6064
|
return {};
|
|
6065
6065
|
}
|
|
6066
6066
|
bindParticle(e, a, i, o, r, s) {
|
|
6067
|
-
const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])),
|
|
6068
|
-
return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer:
|
|
6067
|
+
const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), f = e.createFramebuffer();
|
|
6068
|
+
return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: f };
|
|
6069
6069
|
}
|
|
6070
6070
|
draw(e, a, i, o, r, s, c) {
|
|
6071
6071
|
var n, g;
|
|
@@ -6082,10 +6082,10 @@ class je {
|
|
|
6082
6082
|
sRange: a.getUniformLocation(i, "u_range_s")
|
|
6083
6083
|
};
|
|
6084
6084
|
p.resolution && a.uniform2f(p.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), p.image && a.uniform1i(p.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), p.color && a.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && a.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && a.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && a.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6085
|
-
const
|
|
6086
|
-
for (const
|
|
6087
|
-
const
|
|
6088
|
-
a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER,
|
|
6085
|
+
const f = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(f, w);
|
|
6086
|
+
for (const y of v) {
|
|
6087
|
+
const C = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, B = y[2] * e.ratio, [I, L, _, k] = [C, B + C, T, B + T], P = new Float32Array([I, _, L, _, I, k, I, k, L, _, L, k]);
|
|
6088
|
+
a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, P, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
6089
6089
|
}
|
|
6090
6090
|
} catch (p) {
|
|
6091
6091
|
console.log(`render failed...${p}`);
|
|
@@ -6787,10 +6787,10 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
|
|
|
6787
6787
|
</svg>`;
|
|
6788
6788
|
n.src = "data:image/svg+xml;base64," + window.btoa(g);
|
|
6789
6789
|
const p = [n];
|
|
6790
|
-
let
|
|
6790
|
+
let f = 0;
|
|
6791
6791
|
p.forEach((w) => {
|
|
6792
6792
|
w.onload = () => {
|
|
6793
|
-
|
|
6793
|
+
f++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), f === 1 && this.map.addLayer(
|
|
6794
6794
|
{
|
|
6795
6795
|
id: this.directionLayer,
|
|
6796
6796
|
type: "symbol",
|
|
@@ -8664,11 +8664,11 @@ const bn = {
|
|
|
8664
8664
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8665
8665
|
},
|
|
8666
8666
|
async fetchWeatherLayers(t = {}) {
|
|
8667
|
-
var o, r, s, c, n, g, p,
|
|
8667
|
+
var o, r, s, c, n, g, p, f, w;
|
|
8668
8668
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8669
8669
|
let a = 0, i = 0;
|
|
8670
8670
|
if (this.map) {
|
|
8671
|
-
const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1,
|
|
8671
|
+
const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), C = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8672
8672
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8673
8673
|
const T = ia.WEATHER_LAYERS.find((B) => {
|
|
8674
8674
|
var I;
|
|
@@ -8680,7 +8680,7 @@ const bn = {
|
|
|
8680
8680
|
let T = this.weatherWeight;
|
|
8681
8681
|
if (T > 0) {
|
|
8682
8682
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
8683
|
-
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${
|
|
8683
|
+
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${C}&t=${this.realTime}`,
|
|
8684
8684
|
{
|
|
8685
8685
|
headers: {
|
|
8686
8686
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -8688,45 +8688,45 @@ const bn = {
|
|
|
8688
8688
|
}
|
|
8689
8689
|
);
|
|
8690
8690
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", i, ", total: ", a += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
8691
|
-
const
|
|
8692
|
-
for (const
|
|
8691
|
+
const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
|
|
8692
|
+
for (const P in L)
|
|
8693
8693
|
_.push(
|
|
8694
|
-
Se.get(P
|
|
8694
|
+
Se.get(L[P], {
|
|
8695
8695
|
headers: {
|
|
8696
8696
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8697
|
-
key:
|
|
8697
|
+
key: P
|
|
8698
8698
|
},
|
|
8699
|
-
responseType: /\.(jpg|png)$/.test(P
|
|
8699
|
+
responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
|
|
8700
8700
|
}).catch((z) => {
|
|
8701
|
-
console.log(`[${
|
|
8701
|
+
console.log(`[${P}] fetch layer error: ${z}`);
|
|
8702
8702
|
})
|
|
8703
8703
|
);
|
|
8704
8704
|
const k = await Promise.all(_);
|
|
8705
|
-
this.weatherLayers = {}, k.map((
|
|
8705
|
+
this.weatherLayers = {}, k.map((P) => {
|
|
8706
8706
|
var G, Y, K, V;
|
|
8707
|
-
const z = ((G =
|
|
8708
|
-
let R = (K = (Y =
|
|
8707
|
+
const z = ((G = P == null ? void 0 : P.data) == null ? void 0 : G.data) || (P == null ? void 0 : P.data);
|
|
8708
|
+
let R = (K = (Y = P == null ? void 0 : P.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
|
|
8709
8709
|
R && z && (this.weatherLayers[R] = {
|
|
8710
8710
|
raw: z,
|
|
8711
|
-
type: ((V =
|
|
8711
|
+
type: ((V = P == null ? void 0 : P.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
|
|
8712
8712
|
etime: I.data.etime
|
|
8713
8713
|
});
|
|
8714
8714
|
});
|
|
8715
8715
|
}
|
|
8716
8716
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", i, ", total: ", a += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8717
|
-
const
|
|
8717
|
+
const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
8718
8718
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8719
8719
|
type: "json",
|
|
8720
|
-
direction:
|
|
8720
|
+
direction: L,
|
|
8721
8721
|
height: { raw: _ },
|
|
8722
8722
|
etime: I.data.etime
|
|
8723
8723
|
};
|
|
8724
8724
|
}
|
|
8725
8725
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8726
|
-
const
|
|
8726
|
+
const L = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8727
8727
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8728
8728
|
type: "json",
|
|
8729
|
-
direction:
|
|
8729
|
+
direction: L,
|
|
8730
8730
|
speed: { raw: _ },
|
|
8731
8731
|
etime: I.data.etime
|
|
8732
8732
|
};
|
|
@@ -8750,7 +8750,7 @@ const bn = {
|
|
|
8750
8750
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8751
8751
|
},
|
|
8752
8752
|
handleRampColorInitial() {
|
|
8753
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
8753
|
+
var t, e, a, i, o, r, s, c, n, g, p, f;
|
|
8754
8754
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8755
8755
|
type: "canvas",
|
|
8756
8756
|
canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
|
|
@@ -8775,7 +8775,7 @@ const bn = {
|
|
|
8775
8775
|
{
|
|
8776
8776
|
type: "raster",
|
|
8777
8777
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
8778
|
-
source: (
|
|
8778
|
+
source: (f = this.viewport) == null ? void 0 : f.particleSource,
|
|
8779
8779
|
layout: {
|
|
8780
8780
|
visibility: "none"
|
|
8781
8781
|
}
|
|
@@ -8784,7 +8784,7 @@ const bn = {
|
|
|
8784
8784
|
);
|
|
8785
8785
|
},
|
|
8786
8786
|
handleDrawWeather4Json() {
|
|
8787
|
-
var g, p,
|
|
8787
|
+
var g, p, f, w, v, y, C;
|
|
8788
8788
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8789
8789
|
let e = 0, a = 0;
|
|
8790
8790
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), o = (p = this.map) == null ? void 0 : p.getZoom(), r = $.convertToStdLng(i._sw.lng), s = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
@@ -8794,41 +8794,41 @@ const bn = {
|
|
|
8794
8794
|
let I = [];
|
|
8795
8795
|
if (T === "swell") {
|
|
8796
8796
|
B = !0;
|
|
8797
|
-
const
|
|
8798
|
-
for (const k in
|
|
8797
|
+
const L = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
8798
|
+
for (const k in L)
|
|
8799
8799
|
if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8800
|
-
const
|
|
8801
|
-
r > s ?
|
|
8800
|
+
const P = L[k].lng;
|
|
8801
|
+
r > s ? P.forEach((z, R) => {
|
|
8802
8802
|
var G, Y, K, V, J, ee;
|
|
8803
8803
|
if (o < 2) {
|
|
8804
8804
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8805
8805
|
const Q = H.point([z, k], {
|
|
8806
|
-
val: ((G =
|
|
8807
|
-
spd: (K =
|
|
8806
|
+
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8807
|
+
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8808
8808
|
});
|
|
8809
8809
|
I.push(Q);
|
|
8810
8810
|
}
|
|
8811
8811
|
} else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8812
8812
|
const Q = H.point([z, k], {
|
|
8813
|
-
val: ((V =
|
|
8814
|
-
spd: (ee =
|
|
8813
|
+
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8814
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8815
8815
|
});
|
|
8816
8816
|
I.push(Q);
|
|
8817
8817
|
}
|
|
8818
|
-
}) :
|
|
8818
|
+
}) : P.forEach((z, R) => {
|
|
8819
8819
|
var G, Y, K, V, J, ee;
|
|
8820
8820
|
if (r < 2) {
|
|
8821
8821
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8822
8822
|
const Q = H.point([z, k], {
|
|
8823
|
-
val: ((G =
|
|
8824
|
-
spd: (K =
|
|
8823
|
+
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8824
|
+
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8825
8825
|
});
|
|
8826
8826
|
I.push(Q);
|
|
8827
8827
|
}
|
|
8828
8828
|
} else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8829
8829
|
const Q = H.point([z, k], {
|
|
8830
|
-
val: ((V =
|
|
8831
|
-
spd: (ee =
|
|
8830
|
+
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8831
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8832
8832
|
});
|
|
8833
8833
|
I.push(Q);
|
|
8834
8834
|
}
|
|
@@ -8839,12 +8839,12 @@ const bn = {
|
|
|
8839
8839
|
if (_) {
|
|
8840
8840
|
if (!_.data) {
|
|
8841
8841
|
const k = [];
|
|
8842
|
-
for (const
|
|
8843
|
-
const z = _.raw.LineString[
|
|
8842
|
+
for (const P in (w = _.raw) == null ? void 0 : w.LineString) {
|
|
8843
|
+
const z = _.raw.LineString[P];
|
|
8844
8844
|
for (const R of z)
|
|
8845
8845
|
k.push(
|
|
8846
8846
|
H.lineString(R, {
|
|
8847
|
-
val: Number(
|
|
8847
|
+
val: Number(P)
|
|
8848
8848
|
})
|
|
8849
8849
|
);
|
|
8850
8850
|
_.data = H.featureCollection(k);
|
|
@@ -8858,41 +8858,41 @@ const bn = {
|
|
|
8858
8858
|
}
|
|
8859
8859
|
} else if (T === "current") {
|
|
8860
8860
|
B = !0;
|
|
8861
|
-
const
|
|
8862
|
-
for (const k in
|
|
8861
|
+
const L = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
|
|
8862
|
+
for (const k in L)
|
|
8863
8863
|
if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8864
|
-
const
|
|
8865
|
-
r > s ?
|
|
8864
|
+
const P = L[k].lng;
|
|
8865
|
+
r > s ? P.forEach((z, R) => {
|
|
8866
8866
|
var G, Y, K, V, J, ee;
|
|
8867
8867
|
if (o < 2) {
|
|
8868
8868
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8869
8869
|
const Q = H.point([z, k], {
|
|
8870
|
-
val: ((G =
|
|
8871
|
-
spd: (K =
|
|
8870
|
+
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8871
|
+
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8872
8872
|
});
|
|
8873
8873
|
I.push(Q);
|
|
8874
8874
|
}
|
|
8875
8875
|
} else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8876
8876
|
const Q = H.point([z, k], {
|
|
8877
|
-
val: ((V =
|
|
8878
|
-
spd: (ee =
|
|
8877
|
+
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8878
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8879
8879
|
});
|
|
8880
8880
|
I.push(Q);
|
|
8881
8881
|
}
|
|
8882
|
-
}) :
|
|
8882
|
+
}) : P.forEach((z, R) => {
|
|
8883
8883
|
var G, Y, K, V, J, ee;
|
|
8884
8884
|
if (r < 2) {
|
|
8885
8885
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
8886
8886
|
const Q = H.point([z, k], {
|
|
8887
|
-
val: ((G =
|
|
8888
|
-
spd: (K =
|
|
8887
|
+
val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
|
|
8888
|
+
spd: (K = L[k].spd) == null ? void 0 : K[R]
|
|
8889
8889
|
});
|
|
8890
8890
|
I.push(Q);
|
|
8891
8891
|
}
|
|
8892
8892
|
} else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8893
8893
|
const Q = H.point([z, k], {
|
|
8894
|
-
val: ((V =
|
|
8895
|
-
spd: (ee =
|
|
8894
|
+
val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
|
|
8895
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[R]
|
|
8896
8896
|
});
|
|
8897
8897
|
I.push(Q);
|
|
8898
8898
|
}
|
|
@@ -8902,58 +8902,58 @@ const bn = {
|
|
|
8902
8902
|
const _ = this.weatherLayers[T].speed;
|
|
8903
8903
|
if (_) {
|
|
8904
8904
|
if (!_.data) {
|
|
8905
|
-
const
|
|
8906
|
-
for (const z in (
|
|
8905
|
+
const P = [];
|
|
8906
|
+
for (const z in (y = _.raw) == null ? void 0 : y.Polygon) {
|
|
8907
8907
|
const R = _.raw.Polygon[z];
|
|
8908
8908
|
for (const G of R)
|
|
8909
|
-
|
|
8909
|
+
P.push(
|
|
8910
8910
|
H.polygon(G, {
|
|
8911
8911
|
val: Number(z)
|
|
8912
8912
|
})
|
|
8913
8913
|
);
|
|
8914
8914
|
}
|
|
8915
|
-
_.data = H.featureCollection(
|
|
8915
|
+
_.data = H.featureCollection(P);
|
|
8916
8916
|
}
|
|
8917
|
-
const k = o < this.zoom ? _.data.features.filter((
|
|
8917
|
+
const k = o < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
|
|
8918
8918
|
I = I.concat(k), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
8919
8919
|
}
|
|
8920
8920
|
} else if (T === "wind") {
|
|
8921
8921
|
B = !0;
|
|
8922
|
-
const
|
|
8923
|
-
for (const _ in
|
|
8922
|
+
const L = this.weatherLayers.wind.raw;
|
|
8923
|
+
for (const _ in L)
|
|
8924
8924
|
if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8925
|
-
const k =
|
|
8926
|
-
r > s ? k.forEach((
|
|
8925
|
+
const k = L[_].lng;
|
|
8926
|
+
r > s ? k.forEach((P, z) => {
|
|
8927
8927
|
var R, G, Y, K;
|
|
8928
8928
|
if (o < 2) {
|
|
8929
|
-
if ((
|
|
8930
|
-
const V = H.point([
|
|
8931
|
-
dir: ((R =
|
|
8932
|
-
spd:
|
|
8929
|
+
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
8930
|
+
const V = H.point([P, _], {
|
|
8931
|
+
dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
|
|
8932
|
+
spd: L[_].spd[z]
|
|
8933
8933
|
});
|
|
8934
8934
|
I.push(V);
|
|
8935
8935
|
}
|
|
8936
|
-
} else if ((
|
|
8937
|
-
const V = H.point([
|
|
8938
|
-
dir: ((Y =
|
|
8939
|
-
spd:
|
|
8936
|
+
} else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8937
|
+
const V = H.point([P, _], {
|
|
8938
|
+
dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
|
|
8939
|
+
spd: L[_].spd[z]
|
|
8940
8940
|
});
|
|
8941
8941
|
I.push(V);
|
|
8942
8942
|
}
|
|
8943
|
-
}) : k.forEach((
|
|
8943
|
+
}) : k.forEach((P, z) => {
|
|
8944
8944
|
var R, G, Y, K;
|
|
8945
8945
|
if (o < 2) {
|
|
8946
|
-
if ((
|
|
8947
|
-
const V = H.point([
|
|
8948
|
-
dir: ((R =
|
|
8949
|
-
spd:
|
|
8946
|
+
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
8947
|
+
const V = H.point([P, _], {
|
|
8948
|
+
dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
|
|
8949
|
+
spd: L[_].spd[z]
|
|
8950
8950
|
});
|
|
8951
8951
|
I.push(V);
|
|
8952
8952
|
}
|
|
8953
|
-
} else if (
|
|
8954
|
-
const V = H.point([
|
|
8955
|
-
dir: ((Y =
|
|
8956
|
-
spd:
|
|
8953
|
+
} else if (P >= r && P <= s && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8954
|
+
const V = H.point([P, _], {
|
|
8955
|
+
dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
|
|
8956
|
+
spd: L[_].spd[z]
|
|
8957
8957
|
});
|
|
8958
8958
|
I.push(V);
|
|
8959
8959
|
}
|
|
@@ -8965,33 +8965,33 @@ const bn = {
|
|
|
8965
8965
|
I = this.weatherLayers[T].data;
|
|
8966
8966
|
else {
|
|
8967
8967
|
B = !0;
|
|
8968
|
-
const
|
|
8969
|
-
if (
|
|
8968
|
+
const L = this.weatherLayers[T].raw;
|
|
8969
|
+
if (L) {
|
|
8970
8970
|
const _ = [];
|
|
8971
|
-
for (const k in
|
|
8972
|
-
const
|
|
8973
|
-
for (const z of
|
|
8971
|
+
for (const k in L.Polygon) {
|
|
8972
|
+
const P = L.Polygon[k];
|
|
8973
|
+
for (const z of P)
|
|
8974
8974
|
_.push(
|
|
8975
8975
|
H.polygon(z, {
|
|
8976
8976
|
val: Number(k)
|
|
8977
8977
|
})
|
|
8978
8978
|
);
|
|
8979
8979
|
}
|
|
8980
|
-
for (const k in
|
|
8981
|
-
const
|
|
8982
|
-
for (const z of
|
|
8980
|
+
for (const k in L.MultiPolygon) {
|
|
8981
|
+
const P = L.MultiPolygon[k];
|
|
8982
|
+
for (const z of P)
|
|
8983
8983
|
_.push(
|
|
8984
8984
|
H.multiPolygon(z, {
|
|
8985
8985
|
val: Number(k)
|
|
8986
8986
|
})
|
|
8987
8987
|
);
|
|
8988
8988
|
}
|
|
8989
|
-
for (const k in
|
|
8990
|
-
const
|
|
8991
|
-
for (let z = 0; z < ((
|
|
8989
|
+
for (const k in L.Point) {
|
|
8990
|
+
const P = L.Point[k];
|
|
8991
|
+
for (let z = 0; z < ((C = P.lng) == null ? void 0 : C.length); z++)
|
|
8992
8992
|
_.push(
|
|
8993
|
-
H.point([
|
|
8994
|
-
val: Number(
|
|
8993
|
+
H.point([P.lng[z], k], {
|
|
8994
|
+
val: Number(P.val[z])
|
|
8995
8995
|
})
|
|
8996
8996
|
);
|
|
8997
8997
|
}
|
|
@@ -9004,24 +9004,24 @@ const bn = {
|
|
|
9004
9004
|
I = this.weatherLayers[T].data;
|
|
9005
9005
|
else {
|
|
9006
9006
|
B = !0;
|
|
9007
|
-
const
|
|
9008
|
-
if (
|
|
9007
|
+
const L = this.weatherLayers[T].raw;
|
|
9008
|
+
if (L) {
|
|
9009
9009
|
const _ = [];
|
|
9010
|
-
for (const k in
|
|
9011
|
-
const
|
|
9012
|
-
for (const z of
|
|
9010
|
+
for (const k in L.LineString) {
|
|
9011
|
+
const P = L.LineString[k];
|
|
9012
|
+
for (const z of P)
|
|
9013
9013
|
_.push(
|
|
9014
9014
|
H.lineString(z, {
|
|
9015
9015
|
val: Number(k)
|
|
9016
9016
|
})
|
|
9017
9017
|
);
|
|
9018
9018
|
}
|
|
9019
|
-
for (const k in
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
H.point([
|
|
9023
|
-
val:
|
|
9024
|
-
type:
|
|
9019
|
+
for (const k in L.Point)
|
|
9020
|
+
L.Point[k].lng.forEach((P, z) => {
|
|
9021
|
+
P = $.convertToStdLng(P), _.push(
|
|
9022
|
+
H.point([P, k], {
|
|
9023
|
+
val: L.Point[k].val[z],
|
|
9024
|
+
type: L.Point[k].type[z]
|
|
9025
9025
|
})
|
|
9026
9026
|
);
|
|
9027
9027
|
});
|
|
@@ -9073,7 +9073,7 @@ const bn = {
|
|
|
9073
9073
|
}, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
|
|
9074
9074
|
function Qn(t, e, a, i, o, r) {
|
|
9075
9075
|
var pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
|
|
9076
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"),
|
|
9076
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
|
|
9077
9077
|
return b(), S("div", wn, [
|
|
9078
9078
|
l("div", {
|
|
9079
9079
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9164,7 +9164,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9164
9164
|
_: 1,
|
|
9165
9165
|
__: [9]
|
|
9166
9166
|
}),
|
|
9167
|
-
d(
|
|
9167
|
+
d(f, { vertical: "" }),
|
|
9168
9168
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9169
9169
|
default: u(() => [
|
|
9170
9170
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
@@ -9196,7 +9196,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9196
9196
|
_: 1,
|
|
9197
9197
|
__: [10]
|
|
9198
9198
|
}),
|
|
9199
|
-
d(
|
|
9199
|
+
d(f, { vertical: "" }),
|
|
9200
9200
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9201
9201
|
default: u(() => [
|
|
9202
9202
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
@@ -9272,9 +9272,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9272
9272
|
elevation: "0"
|
|
9273
9273
|
}, {
|
|
9274
9274
|
default: u(() => [
|
|
9275
|
-
d(
|
|
9275
|
+
d(C, { class: "border-b-thin" }, {
|
|
9276
9276
|
default: u(() => [
|
|
9277
|
-
d(
|
|
9277
|
+
d(y, {
|
|
9278
9278
|
class: "text-subtitle-1 font-weight-medium",
|
|
9279
9279
|
style: { "font-size": "16px !important" }
|
|
9280
9280
|
}, {
|
|
@@ -9312,9 +9312,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9312
9312
|
elevation: "0"
|
|
9313
9313
|
}, {
|
|
9314
9314
|
default: u(() => [
|
|
9315
|
-
d(
|
|
9315
|
+
d(C, { class: "border-b-thin" }, {
|
|
9316
9316
|
default: u(() => [
|
|
9317
|
-
d(
|
|
9317
|
+
d(y, {
|
|
9318
9318
|
class: "text-subtitle-1 font-weight-medium",
|
|
9319
9319
|
style: { "font-size": "16px !important" }
|
|
9320
9320
|
}, {
|
|
@@ -9427,9 +9427,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9427
9427
|
elevation: "0"
|
|
9428
9428
|
}, {
|
|
9429
9429
|
default: u(() => [
|
|
9430
|
-
d(
|
|
9430
|
+
d(C, { class: "border-b-thin" }, {
|
|
9431
9431
|
default: u(() => [
|
|
9432
|
-
d(
|
|
9432
|
+
d(y, {
|
|
9433
9433
|
class: "text-subtitle-1 font-weight-medium",
|
|
9434
9434
|
style: { "font-size": "16px !important" }
|
|
9435
9435
|
}, {
|
|
@@ -9452,7 +9452,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9452
9452
|
l("div", Nn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
|
|
9453
9453
|
l("div", jn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9454
9454
|
l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
9455
|
-
d(
|
|
9455
|
+
d(f),
|
|
9456
9456
|
l("div", Hn, h(t.$t("weather.wave")), 1),
|
|
9457
9457
|
l("div", Un, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
|
|
9458
9458
|
l("div", Wn, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -9460,7 +9460,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9460
9460
|
l("div", Vn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
|
|
9461
9461
|
l("div", Zn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9462
9462
|
l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9463
|
-
d(
|
|
9463
|
+
d(f),
|
|
9464
9464
|
l("div", Yn, h(t.$t("weather.currents")), 1),
|
|
9465
9465
|
l("div", Kn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
|
|
9466
9466
|
l("div", Xn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -9474,7 +9474,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9474
9474
|
})
|
|
9475
9475
|
], 2)
|
|
9476
9476
|
], 6),
|
|
9477
|
-
a.map ? (b(), A(
|
|
9477
|
+
a.map ? (b(), A(L, O({
|
|
9478
9478
|
key: 1,
|
|
9479
9479
|
ref: "windBarb",
|
|
9480
9480
|
map: a.map,
|
|
@@ -9499,7 +9499,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9499
9499
|
current: (X = o.weatherLayers) == null ? void 0 : X.current,
|
|
9500
9500
|
"menu-toggle": a.menuToggle
|
|
9501
9501
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
9502
|
-
a.map ? (b(), A(
|
|
9502
|
+
a.map ? (b(), A(P, O({
|
|
9503
9503
|
key: 4,
|
|
9504
9504
|
map: a.map,
|
|
9505
9505
|
"before-layer": "empty-layer-2",
|
|
@@ -9894,18 +9894,18 @@ class Zo {
|
|
|
9894
9894
|
const o = e.toLowerCase().split(","), r = [], s = [];
|
|
9895
9895
|
for (const c of o) {
|
|
9896
9896
|
let n = ta.find((p) => {
|
|
9897
|
-
var
|
|
9898
|
-
return ((
|
|
9897
|
+
var f, w, v;
|
|
9898
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
9899
9899
|
}), g = aa.find((p) => {
|
|
9900
|
-
var
|
|
9901
|
-
return ((
|
|
9900
|
+
var f, w, v;
|
|
9901
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
9902
9902
|
});
|
|
9903
9903
|
n = n || ta.find((p) => {
|
|
9904
|
-
var
|
|
9905
|
-
return ((
|
|
9904
|
+
var f, w;
|
|
9905
|
+
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
|
|
9906
9906
|
}), g = g || aa.find((p) => {
|
|
9907
|
-
var
|
|
9908
|
-
return ((
|
|
9907
|
+
var f, w;
|
|
9908
|
+
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9909
9909
|
}), n = n || ta[0], g = g || aa[0], r.push((a = n.models) != null && a.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
|
|
9910
9910
|
}
|
|
9911
9911
|
return {
|
|
@@ -9923,7 +9923,7 @@ class Zo {
|
|
|
9923
9923
|
}), o;
|
|
9924
9924
|
}
|
|
9925
9925
|
static pickHourly(e, a) {
|
|
9926
|
-
var i, o, r, s, c, n, g, p,
|
|
9926
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
|
|
9927
9927
|
const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9928
9928
|
if (ge.isBetween(te, le, "millisecond", "[]")) {
|
|
9929
9929
|
const N = ge.utc().diff(te, "h", !1);
|
|
@@ -9933,13 +9933,13 @@ class Zo {
|
|
|
9933
9933
|
for (const E of fe) {
|
|
9934
9934
|
const Z = E == null ? void 0 : E.hourly;
|
|
9935
9935
|
for (let Te = N - (N - 1) % 3; Te <= N; Te++)
|
|
9936
|
-
Be += (
|
|
9936
|
+
Be += (f = Z == null ? void 0 : Z.precipitation) == null ? void 0 : f.at(Te);
|
|
9937
9937
|
for (let Te = N - (N - 1) % 6; Te <= N; Te++)
|
|
9938
9938
|
Ee += (w = Z == null ? void 0 : Z.precipitation) == null ? void 0 : w.at(Te);
|
|
9939
9939
|
ye = {
|
|
9940
9940
|
temp: (v = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : v.at(N),
|
|
9941
|
-
apparentTemp: (
|
|
9942
|
-
rh: (
|
|
9941
|
+
apparentTemp: (y = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : y.at(N),
|
|
9942
|
+
rh: (C = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : C.at(N),
|
|
9943
9943
|
dp: (T = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : T.at(N),
|
|
9944
9944
|
precip: {
|
|
9945
9945
|
probability: (B = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : B.at(N),
|
|
@@ -9947,10 +9947,10 @@ class Zo {
|
|
|
9947
9947
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9948
9948
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
9949
9949
|
},
|
|
9950
|
-
pmsl: (
|
|
9950
|
+
pmsl: (L = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : L.at(N),
|
|
9951
9951
|
psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(N),
|
|
9952
9952
|
code: (k = Z == null ? void 0 : Z.weather_code) == null ? void 0 : k.at(N),
|
|
9953
|
-
visibility: this.m2nm((
|
|
9953
|
+
visibility: this.m2nm((P = Z == null ? void 0 : Z.visibility) == null ? void 0 : P.at(N)),
|
|
9954
9954
|
wind: {
|
|
9955
9955
|
speed: (z = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : z.at(N),
|
|
9956
9956
|
kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(N),
|
|
@@ -10010,7 +10010,7 @@ class Zo {
|
|
|
10010
10010
|
return Oe;
|
|
10011
10011
|
}
|
|
10012
10012
|
static toLegacy(e) {
|
|
10013
|
-
var a, i, o, r, s, c, n, g, p,
|
|
10013
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
10014
10014
|
return {
|
|
10015
10015
|
wind: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.wind,
|
|
10016
10016
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -10022,7 +10022,7 @@ class Zo {
|
|
|
10022
10022
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
10023
10023
|
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
10024
10024
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
10025
|
-
url: (
|
|
10025
|
+
url: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.url,
|
|
10026
10026
|
wave: e == null ? void 0 : e.wave,
|
|
10027
10027
|
current: e == null ? void 0 : e.current,
|
|
10028
10028
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -10032,7 +10032,7 @@ class Zo {
|
|
|
10032
10032
|
};
|
|
10033
10033
|
}
|
|
10034
10034
|
static pickDaily(e, a) {
|
|
10035
|
-
var i, o, r, s, c, n, g, p,
|
|
10035
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
|
|
10036
10036
|
const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, ae = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Ne = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
|
|
10037
10037
|
if (Re.isBetween(ae, Ne, "millisecond", "[]")) {
|
|
10038
10038
|
let ge, fe;
|
|
@@ -10044,24 +10044,24 @@ class Zo {
|
|
|
10044
10044
|
code: (g = te.weather_code) == null ? void 0 : g.at(W),
|
|
10045
10045
|
temp: {
|
|
10046
10046
|
max: (p = te.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
10047
|
-
min: (
|
|
10047
|
+
min: (f = te.temperature_2m_min) == null ? void 0 : f.at(W),
|
|
10048
10048
|
mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10049
10049
|
},
|
|
10050
10050
|
apparentTemp: {
|
|
10051
10051
|
max: (v = te.apparent_temperature_max) == null ? void 0 : v.at(W),
|
|
10052
|
-
min: (
|
|
10052
|
+
min: (y = te.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10053
10053
|
},
|
|
10054
10054
|
precip: {
|
|
10055
|
-
sum: (
|
|
10055
|
+
sum: (C = te.precipitation_sum) == null ? void 0 : C.at(W),
|
|
10056
10056
|
rainSum: (T = te.rain_sum) == null ? void 0 : T.at(W),
|
|
10057
10057
|
snowfallSum: (B = te.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10058
10058
|
showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
|
|
10059
|
-
hours: (
|
|
10059
|
+
hours: (L = te.precipitation_hours) == null ? void 0 : L.at(W),
|
|
10060
10060
|
probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
|
|
10061
10061
|
},
|
|
10062
10062
|
rh: {
|
|
10063
10063
|
max: (k = te.relative_humidity_2m_max) == null ? void 0 : k.at(W),
|
|
10064
|
-
min: (
|
|
10064
|
+
min: (P = te.relative_humidity_2m_min) == null ? void 0 : P.at(W),
|
|
10065
10065
|
mean: (z = te.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
|
|
10066
10066
|
},
|
|
10067
10067
|
wind: {
|
|
@@ -10663,7 +10663,7 @@ const ec = {
|
|
|
10663
10663
|
methods: {
|
|
10664
10664
|
handleMenuToggle() {
|
|
10665
10665
|
var t, e, a;
|
|
10666
|
-
this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1);
|
|
10666
|
+
this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1));
|
|
10667
10667
|
},
|
|
10668
10668
|
async fetchTropicals() {
|
|
10669
10669
|
var o, r, s;
|
|
@@ -10684,10 +10684,10 @@ const ec = {
|
|
|
10684
10684
|
},
|
|
10685
10685
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
10686
10686
|
}).then((p) => {
|
|
10687
|
-
var v,
|
|
10688
|
-
const
|
|
10689
|
-
((
|
|
10690
|
-
data:
|
|
10687
|
+
var v, y, C;
|
|
10688
|
+
const f = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
|
|
10689
|
+
((C = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : C.key) && f && (this.tropicals = {
|
|
10690
|
+
data: f,
|
|
10691
10691
|
active: !0,
|
|
10692
10692
|
cached: !0,
|
|
10693
10693
|
type: "json",
|
|
@@ -10709,15 +10709,15 @@ const ec = {
|
|
|
10709
10709
|
}), this.handleInit();
|
|
10710
10710
|
},
|
|
10711
10711
|
handleInit() {
|
|
10712
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
10713
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (
|
|
10712
|
+
var t, e, a, i, o, r, s, c, n, g, p, f;
|
|
10713
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
|
|
10714
10714
|
},
|
|
10715
10715
|
handleRender() {
|
|
10716
10716
|
var e, a, i, o, r, s, c, n, g, p;
|
|
10717
10717
|
if (this.tropicals && this.map) {
|
|
10718
|
-
const
|
|
10718
|
+
const f = (/* @__PURE__ */ new Date()).valueOf();
|
|
10719
10719
|
let w = 0, v = 0;
|
|
10720
|
-
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10720
|
+
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.source, {
|
|
10721
10721
|
type: "geojson",
|
|
10722
10722
|
data: (o = this.tropicals) != null && o.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
|
|
10723
10723
|
}), this.map.addLayer({
|
|
@@ -10814,7 +10814,7 @@ const ec = {
|
|
|
10814
10814
|
],
|
|
10815
10815
|
"text-halo-width": 4
|
|
10816
10816
|
}
|
|
10817
|
-
}), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10817
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.clusterSource, {
|
|
10818
10818
|
type: "geojson",
|
|
10819
10819
|
data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
10820
10820
|
// cluster: true,
|
|
@@ -10930,7 +10930,7 @@ const ec = {
|
|
|
10930
10930
|
"text-halo-color": "#ffffff",
|
|
10931
10931
|
"text-halo-width": 1
|
|
10932
10932
|
}
|
|
10933
|
-
}), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10933
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v));
|
|
10934
10934
|
}
|
|
10935
10935
|
this.handleDrawCircle();
|
|
10936
10936
|
const t = Vo.interpolate(this.tropicals, 1);
|
|
@@ -10941,7 +10941,7 @@ const ec = {
|
|
|
10941
10941
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (o = this.activeTropicalsMarker) == null || o.remove(), this.activeTropicalsMarker = void 0;
|
|
10942
10942
|
},
|
|
10943
10943
|
handleDateChange() {
|
|
10944
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
10944
|
+
var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q;
|
|
10945
10945
|
if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10946
10946
|
const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
|
|
10947
10947
|
pe.forEach((X) => {
|
|
@@ -10963,7 +10963,7 @@ const ec = {
|
|
|
10963
10963
|
for (const X of de)
|
|
10964
10964
|
if (!X.properties.disabled) {
|
|
10965
10965
|
let oe = "#f44336";
|
|
10966
|
-
((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((
|
|
10966
|
+
((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((C = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : C.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((L = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (P = X.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
|
|
10967
10967
|
const ue = `<svg t="1719918955501"
|
|
10968
10968
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10969
10969
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -10987,7 +10987,7 @@ const ec = {
|
|
|
10987
10987
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
10988
10988
|
},
|
|
10989
10989
|
handleClick(t) {
|
|
10990
|
-
var o, r, s, c, n, g, p,
|
|
10990
|
+
var o, r, s, c, n, g, p, f;
|
|
10991
10991
|
const e = t.features[0], a = (r = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : r.features.filter(
|
|
10992
10992
|
(w) => {
|
|
10993
10993
|
var v;
|
|
@@ -11003,7 +11003,7 @@ const ec = {
|
|
|
11003
11003
|
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
11004
11004
|
forecasts: a.map((w) => w.properties),
|
|
11005
11005
|
history: (g = i[0]) == null ? void 0 : g.properties,
|
|
11006
|
-
showCircle: (
|
|
11006
|
+
showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
11007
11007
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11008
11008
|
const w = document.getElementById("idm-tropical-gl4-info");
|
|
11009
11009
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -11116,7 +11116,7 @@ const ec = {
|
|
|
11116
11116
|
style: { height: "80px" }
|
|
11117
11117
|
}, kc = { class: "pa-1 d-flex justify-space-between align-center" }, zc = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
11118
11118
|
function Lc(t, e, a, i, o, r) {
|
|
11119
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"),
|
|
11119
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard");
|
|
11120
11120
|
return b(), S("div", tc, [
|
|
11121
11121
|
l("div", {
|
|
11122
11122
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11145,25 +11145,25 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11145
11145
|
}, 8, ["text"])
|
|
11146
11146
|
], 4),
|
|
11147
11147
|
o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
|
|
11148
|
-
d(
|
|
11148
|
+
d(f, {
|
|
11149
11149
|
width: "400",
|
|
11150
11150
|
elevation: "16"
|
|
11151
11151
|
}, {
|
|
11152
11152
|
default: u(() => [
|
|
11153
11153
|
d(n, null, {
|
|
11154
11154
|
default: u(() => {
|
|
11155
|
-
var w, v,
|
|
11155
|
+
var w, v, y, C, T, B, I, L, _, k;
|
|
11156
11156
|
return [
|
|
11157
11157
|
l("div", oc, [
|
|
11158
11158
|
l("span", ic, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
|
|
11159
|
-
(
|
|
11159
|
+
(y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (C = o.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : T.level), 1)) : D("", !0)
|
|
11160
11160
|
]),
|
|
11161
11161
|
d(s, {
|
|
11162
11162
|
icon: "",
|
|
11163
11163
|
density: "compact",
|
|
11164
11164
|
variant: "plain",
|
|
11165
11165
|
class: "close",
|
|
11166
|
-
onClick: e[0] || (e[0] = (
|
|
11166
|
+
onClick: e[0] || (e[0] = (P) => o.showTropicalsInfo = !1)
|
|
11167
11167
|
}, {
|
|
11168
11168
|
default: u(() => e[5] || (e[5] = [
|
|
11169
11169
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
@@ -11173,7 +11173,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11173
11173
|
}),
|
|
11174
11174
|
l("div", lc, [
|
|
11175
11175
|
l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11176
|
-
l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (
|
|
11176
|
+
l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (L = o.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
|
|
11177
11177
|
])
|
|
11178
11178
|
];
|
|
11179
11179
|
}),
|
|
@@ -11182,13 +11182,13 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11182
11182
|
d(g),
|
|
11183
11183
|
d(n, { class: "text-body-1" }, {
|
|
11184
11184
|
default: u(() => {
|
|
11185
|
-
var w, v,
|
|
11185
|
+
var w, v, y, C, T, B, I, L, _;
|
|
11186
11186
|
return [
|
|
11187
11187
|
l("div", nc, [
|
|
11188
11188
|
l("div", cc, [
|
|
11189
11189
|
l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11190
11190
|
l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
|
|
11191
|
-
l("span", null, ", BF " + h(r.computeBF(((
|
|
11191
|
+
l("span", null, ", BF " + h(r.computeBF(((C = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : C.kts) || "-")), 1)
|
|
11192
11192
|
]),
|
|
11193
11193
|
l("div", dc, [
|
|
11194
11194
|
l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
|
|
@@ -11202,14 +11202,14 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11202
11202
|
]),
|
|
11203
11203
|
l("div", fc, [
|
|
11204
11204
|
l("label", yc, h(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11205
|
-
l("span", null, h(((
|
|
11205
|
+
l("span", null, h(((L = r.computeMovement(o.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
11206
11206
|
])
|
|
11207
11207
|
]),
|
|
11208
11208
|
l("div", bc, [
|
|
11209
11209
|
l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11210
11210
|
l("div", xc, [
|
|
11211
|
-
(b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k,
|
|
11212
|
-
key:
|
|
11211
|
+
(b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), A(s, {
|
|
11212
|
+
key: P,
|
|
11213
11213
|
density: "compact",
|
|
11214
11214
|
variant: k.disabled ? "outlined" : "flat",
|
|
11215
11215
|
color: k.disabled ? "" : "primary",
|
|
@@ -11279,7 +11279,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11279
11279
|
_: 1
|
|
11280
11280
|
}),
|
|
11281
11281
|
l("div", _c, [
|
|
11282
|
-
Ue(d(
|
|
11282
|
+
Ue(d(f, {
|
|
11283
11283
|
width: "400",
|
|
11284
11284
|
elevation: "16"
|
|
11285
11285
|
}, {
|
|
@@ -11499,7 +11499,7 @@ const Pc = {
|
|
|
11499
11499
|
style: { height: "56px" }
|
|
11500
11500
|
};
|
|
11501
11501
|
function Mc(t, e, a, i, o, r) {
|
|
11502
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"),
|
|
11502
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), v = x("VCardActions"), y = x("VCard");
|
|
11503
11503
|
return b(), S("div", Cc, [
|
|
11504
11504
|
d(s, {
|
|
11505
11505
|
text: "",
|
|
@@ -11512,7 +11512,7 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11512
11512
|
]),
|
|
11513
11513
|
_: 1
|
|
11514
11514
|
}, 8, ["onClick"]),
|
|
11515
|
-
o.showDatePicker ? (b(), A(
|
|
11515
|
+
o.showDatePicker ? (b(), A(y, {
|
|
11516
11516
|
key: 0,
|
|
11517
11517
|
class: "card-box d-flex flex-column"
|
|
11518
11518
|
}, {
|
|
@@ -11522,7 +11522,7 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11522
11522
|
l("div", Tc, [
|
|
11523
11523
|
d(c, {
|
|
11524
11524
|
modelValue: o.currentDate,
|
|
11525
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11525
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => o.currentDate = C),
|
|
11526
11526
|
min: o.dateRange[0],
|
|
11527
11527
|
max: o.dateRange[1],
|
|
11528
11528
|
"mode-icon": () => r.currentYear,
|
|
@@ -11540,13 +11540,13 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11540
11540
|
}),
|
|
11541
11541
|
l("div", Sc, [
|
|
11542
11542
|
l("div", Ic, h(o.currentTime), 1),
|
|
11543
|
-
d(
|
|
11543
|
+
d(f, { class: "pa-0 flex-1-1-0" }, {
|
|
11544
11544
|
default: u(() => [
|
|
11545
|
-
(b(!0), S(be, null, we(r.hourOptions, (
|
|
11545
|
+
(b(!0), S(be, null, we(r.hourOptions, (C, T) => (b(), A(p, {
|
|
11546
11546
|
key: T,
|
|
11547
|
-
value:
|
|
11547
|
+
value: C,
|
|
11548
11548
|
color: "primary",
|
|
11549
|
-
active: o.currentTime ===
|
|
11549
|
+
active: o.currentTime === C,
|
|
11550
11550
|
rounded: "",
|
|
11551
11551
|
height: "26",
|
|
11552
11552
|
"min-height": "26"
|
|
@@ -11554,10 +11554,10 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11554
11554
|
default: u(() => [
|
|
11555
11555
|
d(g, {
|
|
11556
11556
|
class: "text-body-2 text-center",
|
|
11557
|
-
onClick: (B) => o.currentTime =
|
|
11557
|
+
onClick: (B) => o.currentTime = C
|
|
11558
11558
|
}, {
|
|
11559
11559
|
default: u(() => [
|
|
11560
|
-
j(h(
|
|
11560
|
+
j(h(C), 1)
|
|
11561
11561
|
]),
|
|
11562
11562
|
_: 2
|
|
11563
11563
|
}, 1032, ["onClick"])
|
|
@@ -11745,7 +11745,7 @@ const Ac = {
|
|
|
11745
11745
|
},
|
|
11746
11746
|
toggle: {
|
|
11747
11747
|
handler() {
|
|
11748
|
-
this.toggle ? this.showForm = !0 : (this.
|
|
11748
|
+
this.toggle ? this.showForm = !0 : (this.showForm = !1, this.showMeteo = !1), this.map && this.handleBind();
|
|
11749
11749
|
},
|
|
11750
11750
|
immediate: !0
|
|
11751
11751
|
},
|
|
@@ -11812,9 +11812,7 @@ const Ac = {
|
|
|
11812
11812
|
this.showForm = !1, this.cancelForm(), this.toggle = !1;
|
|
11813
11813
|
},
|
|
11814
11814
|
async fetchMeteoData(t) {
|
|
11815
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat;
|
|
11816
|
-
debugger;
|
|
11817
|
-
this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11815
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11818
11816
|
const { weatherModels: e, marineModels: a } = oa.autoPickMeteoModel(t.forecastModel);
|
|
11819
11817
|
let i = {
|
|
11820
11818
|
lat: t.lat,
|
|
@@ -11828,7 +11826,7 @@ const Ac = {
|
|
|
11828
11826
|
Authorization: this.token || this.defaultMeteoToken
|
|
11829
11827
|
}
|
|
11830
11828
|
});
|
|
11831
|
-
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)
|
|
11829
|
+
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
|
|
11832
11830
|
},
|
|
11833
11831
|
async fetchHistoryData(t) {
|
|
11834
11832
|
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
@@ -11848,10 +11846,10 @@ const Ac = {
|
|
|
11848
11846
|
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.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;
|
|
11849
11847
|
},
|
|
11850
11848
|
initTableData(t) {
|
|
11851
|
-
var a, i, o, r, s, c, n, g, p,
|
|
11849
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
|
|
11852
11850
|
this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
|
|
11853
11851
|
const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11854
|
-
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((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((
|
|
11852
|
+
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((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.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;
|
|
11855
11853
|
},
|
|
11856
11854
|
handleBind() {
|
|
11857
11855
|
var t, e;
|
|
@@ -11867,42 +11865,29 @@ const Ac = {
|
|
|
11867
11865
|
return !1;
|
|
11868
11866
|
},
|
|
11869
11867
|
handleGetPosition(t) {
|
|
11870
|
-
|
|
11871
|
-
this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
|
|
11868
|
+
this.handleCloseMeteo(), this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
|
|
11872
11869
|
},
|
|
11873
11870
|
handleDrawInfoMarker(t) {
|
|
11874
11871
|
t && (this.map.flyTo({
|
|
11875
11872
|
center: t,
|
|
11876
11873
|
duration: 300
|
|
11877
11874
|
}), this.$nextTick(() => {
|
|
11878
|
-
var
|
|
11879
|
-
(
|
|
11880
|
-
const e = (
|
|
11881
|
-
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map)
|
|
11882
|
-
const a = document.getElementById("idm-gl4-spot-meteo")
|
|
11883
|
-
|
|
11884
|
-
this.handleCloseMeteo();
|
|
11885
|
-
}), o && !this.followList.some((f) => {
|
|
11886
|
-
var L, T;
|
|
11887
|
-
return ((L = f == null ? void 0 : f.coordinate) == null ? void 0 : L.lng) === this.form.lng && ((T = f == null ? void 0 : f.coordinate) == null ? void 0 : T.lat) === this.form.lat;
|
|
11888
|
-
}) && (o.onclick = () => {
|
|
11889
|
-
this.handleFollow();
|
|
11890
|
-
}), r && this.followList.some((f) => {
|
|
11891
|
-
var L, T;
|
|
11892
|
-
return ((L = f == null ? void 0 : f.coordinate) == null ? void 0 : L.lng) === this.form.lng && ((T = f == null ? void 0 : f.coordinate) == null ? void 0 : T.lat) === this.form.lat;
|
|
11893
|
-
}) && (r.onclick = () => {
|
|
11894
|
-
this.handleCancelFollow();
|
|
11895
|
-
}), s && (s.onclick = () => {
|
|
11896
|
-
this.handleMeteoMore();
|
|
11897
|
-
}), this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11875
|
+
var i, o, r;
|
|
11876
|
+
(i = this.positionMarker) == null || i.remove();
|
|
11877
|
+
const e = (o = document.getElementById("idm-position-icon")) == null ? void 0 : o.cloneNode(!0);
|
|
11878
|
+
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map);
|
|
11879
|
+
const a = document.getElementById("idm-gl4-spot-meteo");
|
|
11880
|
+
this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11898
11881
|
}));
|
|
11899
11882
|
},
|
|
11900
11883
|
handleMeteoMore() {
|
|
11901
11884
|
this.form.forecastModel = this.forecastModel, this.$emit("meteoMore", this.form);
|
|
11902
11885
|
},
|
|
11903
11886
|
handleCloseMeteo() {
|
|
11904
|
-
|
|
11905
|
-
|
|
11887
|
+
this.showMeteo = !1, this.$nextTick(() => {
|
|
11888
|
+
var t, e;
|
|
11889
|
+
(t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0;
|
|
11890
|
+
});
|
|
11906
11891
|
},
|
|
11907
11892
|
handleFollow() {
|
|
11908
11893
|
this.$emit("follow", this.form);
|
|
@@ -11934,7 +11919,7 @@ const Ac = {
|
|
|
11934
11919
|
"aria-hidden": "true"
|
|
11935
11920
|
}, Qc = ["xlink:href"];
|
|
11936
11921
|
function Jc(t, e, a, i, o, r) {
|
|
11937
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"),
|
|
11922
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), C = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), L = x("VIcon");
|
|
11938
11923
|
return b(), S("div", Dc, [
|
|
11939
11924
|
l("div", {
|
|
11940
11925
|
class: "menu-bar-box transition pa-1",
|
|
@@ -12009,7 +11994,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12009
11994
|
]),
|
|
12010
11995
|
d(w, { class: "ma-0" }, {
|
|
12011
11996
|
default: u(() => [
|
|
12012
|
-
d(
|
|
11997
|
+
d(f, {
|
|
12013
11998
|
cols: "4",
|
|
12014
11999
|
class: "pa-0 d-flex"
|
|
12015
12000
|
}, {
|
|
@@ -12028,7 +12013,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12028
12013
|
_: 1,
|
|
12029
12014
|
__: [10]
|
|
12030
12015
|
}),
|
|
12031
|
-
d(
|
|
12016
|
+
d(f, {
|
|
12032
12017
|
cols: "6",
|
|
12033
12018
|
class: "pa-0 d-flex"
|
|
12034
12019
|
}, {
|
|
@@ -12048,7 +12033,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12048
12033
|
_: 1,
|
|
12049
12034
|
__: [11]
|
|
12050
12035
|
}),
|
|
12051
|
-
d(
|
|
12036
|
+
d(f, {
|
|
12052
12037
|
cols: "2",
|
|
12053
12038
|
class: "pa-0"
|
|
12054
12039
|
}, {
|
|
@@ -12084,7 +12069,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12084
12069
|
]),
|
|
12085
12070
|
d(w, { class: "ma-0" }, {
|
|
12086
12071
|
default: u(() => [
|
|
12087
|
-
d(
|
|
12072
|
+
d(f, {
|
|
12088
12073
|
cols: "4",
|
|
12089
12074
|
class: "pa-0 d-flex"
|
|
12090
12075
|
}, {
|
|
@@ -12106,7 +12091,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12106
12091
|
_: 1,
|
|
12107
12092
|
__: [12]
|
|
12108
12093
|
}),
|
|
12109
|
-
d(
|
|
12094
|
+
d(f, {
|
|
12110
12095
|
cols: "6",
|
|
12111
12096
|
class: "pa-0 d-flex"
|
|
12112
12097
|
}, {
|
|
@@ -12126,7 +12111,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12126
12111
|
_: 1,
|
|
12127
12112
|
__: [13]
|
|
12128
12113
|
}),
|
|
12129
|
-
d(
|
|
12114
|
+
d(f, {
|
|
12130
12115
|
cols: "2",
|
|
12131
12116
|
class: "pa-0"
|
|
12132
12117
|
}, {
|
|
@@ -12162,7 +12147,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12162
12147
|
]),
|
|
12163
12148
|
d(w, { class: "ma-0 mb-4" }, {
|
|
12164
12149
|
default: u(() => [
|
|
12165
|
-
d(
|
|
12150
|
+
d(f, {
|
|
12166
12151
|
cols: "12",
|
|
12167
12152
|
class: "pa-0"
|
|
12168
12153
|
}, {
|
|
@@ -12189,12 +12174,12 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12189
12174
|
]),
|
|
12190
12175
|
d(w, { class: "ma-0 mb-2" }, {
|
|
12191
12176
|
default: u(() => [
|
|
12192
|
-
d(
|
|
12177
|
+
d(f, {
|
|
12193
12178
|
cols: "12",
|
|
12194
12179
|
class: "pa-0"
|
|
12195
12180
|
}, {
|
|
12196
12181
|
default: u(() => [
|
|
12197
|
-
d(
|
|
12182
|
+
d(y, {
|
|
12198
12183
|
modelValue: o.form.forecastModel,
|
|
12199
12184
|
"onUpdate:modelValue": e[7] || (e[7] = (_) => o.form.forecastModel = _),
|
|
12200
12185
|
class: "w-100",
|
|
@@ -12242,7 +12227,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12242
12227
|
_: 1
|
|
12243
12228
|
}),
|
|
12244
12229
|
d(g),
|
|
12245
|
-
d(
|
|
12230
|
+
d(C, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12246
12231
|
default: u(() => [
|
|
12247
12232
|
d(s, {
|
|
12248
12233
|
size: "small",
|
|
@@ -12318,7 +12303,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12318
12303
|
default: u(() => [
|
|
12319
12304
|
d(w, null, {
|
|
12320
12305
|
default: u(() => [
|
|
12321
|
-
d(
|
|
12306
|
+
d(f, {
|
|
12322
12307
|
cols: "3",
|
|
12323
12308
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12324
12309
|
}, {
|
|
@@ -12327,7 +12312,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12327
12312
|
]),
|
|
12328
12313
|
_: 1
|
|
12329
12314
|
}),
|
|
12330
|
-
d(
|
|
12315
|
+
d(f, {
|
|
12331
12316
|
cols: "9",
|
|
12332
12317
|
class: "pa-2 px-0"
|
|
12333
12318
|
}, {
|
|
@@ -12344,7 +12329,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12344
12329
|
}),
|
|
12345
12330
|
d(w, null, {
|
|
12346
12331
|
default: u(() => [
|
|
12347
|
-
d(
|
|
12332
|
+
d(f, {
|
|
12348
12333
|
cols: "3",
|
|
12349
12334
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12350
12335
|
}, {
|
|
@@ -12354,7 +12339,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12354
12339
|
_: 1,
|
|
12355
12340
|
__: [18]
|
|
12356
12341
|
}),
|
|
12357
|
-
d(
|
|
12342
|
+
d(f, {
|
|
12358
12343
|
cols: "9",
|
|
12359
12344
|
class: "pa-2 px-0"
|
|
12360
12345
|
}, {
|
|
@@ -12371,7 +12356,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12371
12356
|
}),
|
|
12372
12357
|
d(w, null, {
|
|
12373
12358
|
default: u(() => [
|
|
12374
|
-
d(
|
|
12359
|
+
d(f, {
|
|
12375
12360
|
cols: "3",
|
|
12376
12361
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12377
12362
|
}, {
|
|
@@ -12380,7 +12365,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12380
12365
|
]),
|
|
12381
12366
|
_: 1
|
|
12382
12367
|
}),
|
|
12383
|
-
d(
|
|
12368
|
+
d(f, {
|
|
12384
12369
|
cols: "4",
|
|
12385
12370
|
class: "pa-2 px-0 text-left"
|
|
12386
12371
|
}, {
|
|
@@ -12389,7 +12374,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12389
12374
|
]),
|
|
12390
12375
|
_: 1
|
|
12391
12376
|
}),
|
|
12392
|
-
d(
|
|
12377
|
+
d(f, {
|
|
12393
12378
|
cols: "2",
|
|
12394
12379
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12395
12380
|
}, {
|
|
@@ -12398,7 +12383,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12398
12383
|
]),
|
|
12399
12384
|
_: 1
|
|
12400
12385
|
}),
|
|
12401
|
-
d(
|
|
12386
|
+
d(f, {
|
|
12402
12387
|
cols: "3",
|
|
12403
12388
|
class: "pa-2 px-0 text-left"
|
|
12404
12389
|
}, {
|
|
@@ -12412,7 +12397,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12412
12397
|
}),
|
|
12413
12398
|
d(w, null, {
|
|
12414
12399
|
default: u(() => [
|
|
12415
|
-
d(
|
|
12400
|
+
d(f, {
|
|
12416
12401
|
cols: "3",
|
|
12417
12402
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12418
12403
|
}, {
|
|
@@ -12421,7 +12406,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12421
12406
|
]),
|
|
12422
12407
|
_: 1
|
|
12423
12408
|
}),
|
|
12424
|
-
d(
|
|
12409
|
+
d(f, {
|
|
12425
12410
|
cols: "4",
|
|
12426
12411
|
class: "pa-2 px-0 text-left"
|
|
12427
12412
|
}, {
|
|
@@ -12430,7 +12415,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12430
12415
|
]),
|
|
12431
12416
|
_: 1
|
|
12432
12417
|
}),
|
|
12433
|
-
d(
|
|
12418
|
+
d(f, {
|
|
12434
12419
|
cols: "2",
|
|
12435
12420
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12436
12421
|
}, {
|
|
@@ -12439,7 +12424,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12439
12424
|
]),
|
|
12440
12425
|
_: 1
|
|
12441
12426
|
}),
|
|
12442
|
-
d(
|
|
12427
|
+
d(f, {
|
|
12443
12428
|
cols: "3",
|
|
12444
12429
|
class: "pa-2 px-0 text-left"
|
|
12445
12430
|
}, {
|
|
@@ -12453,7 +12438,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12453
12438
|
}),
|
|
12454
12439
|
d(w, null, {
|
|
12455
12440
|
default: u(() => [
|
|
12456
|
-
d(
|
|
12441
|
+
d(f, {
|
|
12457
12442
|
cols: "3",
|
|
12458
12443
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12459
12444
|
}, {
|
|
@@ -12462,7 +12447,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12462
12447
|
]),
|
|
12463
12448
|
_: 1
|
|
12464
12449
|
}),
|
|
12465
|
-
d(
|
|
12450
|
+
d(f, {
|
|
12466
12451
|
cols: "4",
|
|
12467
12452
|
class: "pa-2 px-0 text-left"
|
|
12468
12453
|
}, {
|
|
@@ -12471,7 +12456,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12471
12456
|
]),
|
|
12472
12457
|
_: 1
|
|
12473
12458
|
}),
|
|
12474
|
-
d(
|
|
12459
|
+
d(f, {
|
|
12475
12460
|
cols: "2",
|
|
12476
12461
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12477
12462
|
}, {
|
|
@@ -12480,7 +12465,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12480
12465
|
]),
|
|
12481
12466
|
_: 1
|
|
12482
12467
|
}),
|
|
12483
|
-
d(
|
|
12468
|
+
d(f, {
|
|
12484
12469
|
cols: "3",
|
|
12485
12470
|
class: "pa-2 px-0 text-left"
|
|
12486
12471
|
}, {
|
|
@@ -12496,11 +12481,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12496
12481
|
_: 1
|
|
12497
12482
|
}),
|
|
12498
12483
|
d(g),
|
|
12499
|
-
d(
|
|
12484
|
+
d(C, { class: "d-flex justify-space-between align-center" }, {
|
|
12500
12485
|
default: u(() => [
|
|
12501
12486
|
a.followList.some((_) => {
|
|
12502
|
-
var k,
|
|
12503
|
-
return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((
|
|
12487
|
+
var k, P;
|
|
12488
|
+
return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((P = _ == null ? void 0 : _.coordinate) == null ? void 0 : P.lat) === o.form.lat;
|
|
12504
12489
|
}) ? (b(), A(s, {
|
|
12505
12490
|
key: 0,
|
|
12506
12491
|
class: "text-none text-body-1",
|
|
@@ -12512,7 +12497,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12512
12497
|
onClick: qe(r.handleCancelFollow, ["stop"])
|
|
12513
12498
|
}, {
|
|
12514
12499
|
prepend: u(() => [
|
|
12515
|
-
d(
|
|
12500
|
+
d(L, { color: "warning" })
|
|
12516
12501
|
]),
|
|
12517
12502
|
default: u(() => [
|
|
12518
12503
|
j(" " + h(t.$t("actions.unfollow")), 1)
|
|
@@ -12654,7 +12639,7 @@ const tm = {
|
|
|
12654
12639
|
}
|
|
12655
12640
|
},
|
|
12656
12641
|
handleDrag(t) {
|
|
12657
|
-
var a, i, o, r, s, c, n, g, p,
|
|
12642
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
12658
12643
|
const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
|
|
12659
12644
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12660
12645
|
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
@@ -12662,33 +12647,33 @@ const tm = {
|
|
|
12662
12647
|
var B;
|
|
12663
12648
|
return ((B = T._element) == null ? void 0 : B.id) === e;
|
|
12664
12649
|
})[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12665
|
-
let
|
|
12650
|
+
let y;
|
|
12666
12651
|
w.features.forEach((T, B) => {
|
|
12667
12652
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
12668
|
-
|
|
12653
|
+
y = B;
|
|
12669
12654
|
return;
|
|
12670
12655
|
}
|
|
12671
12656
|
});
|
|
12672
|
-
const
|
|
12657
|
+
const C = w.features.filter((T) => T.geometry.type === "Point");
|
|
12673
12658
|
this.handleTmpPointUpdate(
|
|
12674
12659
|
w,
|
|
12675
|
-
|
|
12676
|
-
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (
|
|
12677
|
-
|
|
12660
|
+
C[y - 1],
|
|
12661
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: C[y].properties },
|
|
12662
|
+
y === C.length - 1 ? void 0 : C[y + 1]
|
|
12678
12663
|
);
|
|
12679
12664
|
}
|
|
12680
12665
|
},
|
|
12681
12666
|
handleDragEnd(t) {
|
|
12682
|
-
var a, i, o, r, s, c, n, g, p,
|
|
12667
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
12683
12668
|
const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
|
|
12684
12669
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12685
|
-
const w = this.geojson.filter((
|
|
12686
|
-
this.pointMarkers[w.id].filter((
|
|
12670
|
+
const w = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
12671
|
+
this.pointMarkers[w.id].filter((C) => {
|
|
12687
12672
|
var T;
|
|
12688
|
-
return ((T =
|
|
12673
|
+
return ((T = C._element) == null ? void 0 : T.id) === e;
|
|
12689
12674
|
})[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12690
|
-
const
|
|
12691
|
-
|
|
12675
|
+
const y = w.features.filter((C) => C.geometry.type === "Point" && C.properties.id === e.split("-")[1])[0];
|
|
12676
|
+
y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((C) => C.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12692
12677
|
}
|
|
12693
12678
|
},
|
|
12694
12679
|
handleContextmenu(t) {
|
|
@@ -12736,14 +12721,14 @@ const tm = {
|
|
|
12736
12721
|
let a = 0;
|
|
12737
12722
|
const i = [];
|
|
12738
12723
|
for (let o = 1; o < e.length; o++) {
|
|
12739
|
-
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4),
|
|
12724
|
+
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
|
|
12740
12725
|
a = $.roundPrecision(a + p, 4);
|
|
12741
12726
|
let w;
|
|
12742
12727
|
c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
|
|
12743
|
-
const v = H.lineString(w.map((
|
|
12744
|
-
v.properties.dist = p, v.properties.bearing =
|
|
12745
|
-
const
|
|
12746
|
-
|
|
12728
|
+
const v = H.lineString(w.map((C) => [C.lng, C.lat]));
|
|
12729
|
+
v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
|
|
12730
|
+
const y = e[o];
|
|
12731
|
+
y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
12747
12732
|
}
|
|
12748
12733
|
e.push(...i), t.total = a;
|
|
12749
12734
|
}
|
|
@@ -12755,17 +12740,17 @@ const tm = {
|
|
|
12755
12740
|
if (e) {
|
|
12756
12741
|
const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
|
|
12757
12742
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12758
|
-
let
|
|
12759
|
-
n.mode === "RL" ?
|
|
12760
|
-
const w = H.lineString(
|
|
12743
|
+
let f;
|
|
12744
|
+
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12745
|
+
const w = H.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12761
12746
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12762
12747
|
}
|
|
12763
12748
|
if (i) {
|
|
12764
12749
|
const n = a.properties, g = a, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12765
12750
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12766
|
-
let
|
|
12767
|
-
n.mode === "RL" ?
|
|
12768
|
-
const w = H.lineString(
|
|
12751
|
+
let f;
|
|
12752
|
+
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12753
|
+
const w = H.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12769
12754
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12770
12755
|
}
|
|
12771
12756
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
|
|
@@ -12901,17 +12886,17 @@ const tm = {
|
|
|
12901
12886
|
g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
|
|
12902
12887
|
}
|
|
12903
12888
|
if (t.closed) {
|
|
12904
|
-
const c = s.at(-1), g = t.features.filter((
|
|
12889
|
+
const c = s.at(-1), g = t.features.filter((f) => f.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
12905
12890
|
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12906
12891
|
}
|
|
12907
12892
|
}
|
|
12908
12893
|
},
|
|
12909
12894
|
handleClear(t, e = !0) {
|
|
12910
|
-
var s, c, n, g, p,
|
|
12895
|
+
var s, c, n, g, p, f, w, v, y, C;
|
|
12911
12896
|
const a = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, o = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12912
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (
|
|
12897
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
12913
12898
|
T == null || T.remove();
|
|
12914
|
-
}), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((
|
|
12899
|
+
}), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12915
12900
|
}
|
|
12916
12901
|
}
|
|
12917
12902
|
}, am = { class: "idm-gl4-measure" };
|
|
@@ -13070,7 +13055,7 @@ const rm = {
|
|
|
13070
13055
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13071
13056
|
}, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
|
|
13072
13057
|
function gm(t, e, a, i, o, r) {
|
|
13073
|
-
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"),
|
|
13058
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
|
|
13074
13059
|
return b(), S("div", lm, [
|
|
13075
13060
|
l("div", {
|
|
13076
13061
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -13084,11 +13069,11 @@ function gm(t, e, a, i, o, r) {
|
|
|
13084
13069
|
"day-about": o.dayAbout,
|
|
13085
13070
|
"interval-hour": o.intervalHour
|
|
13086
13071
|
}, t.$attrs, {
|
|
13087
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13088
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13089
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
13072
|
+
onCurrentTimestamp: e[0] || (e[0] = (y) => o.currentTimestamp = y),
|
|
13073
|
+
onCurrentRealTime: e[1] || (e[1] = (y) => o.currentRealTime = y),
|
|
13074
|
+
onTimestampRange: e[2] || (e[2] = (y) => o.timestampRange = y)
|
|
13090
13075
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13091
|
-
d(
|
|
13076
|
+
d(f, {
|
|
13092
13077
|
text: "",
|
|
13093
13078
|
height: "30",
|
|
13094
13079
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
@@ -13100,13 +13085,13 @@ function gm(t, e, a, i, o, r) {
|
|
|
13100
13085
|
default: u(() => [
|
|
13101
13086
|
d(g, { class: "pa-1" }, {
|
|
13102
13087
|
default: u(() => [
|
|
13103
|
-
(b(!0), S(be, null, we(o.intervalOptions, (
|
|
13104
|
-
key:
|
|
13105
|
-
value:
|
|
13106
|
-
variant: o.intervalHour ===
|
|
13088
|
+
(b(!0), S(be, null, we(o.intervalOptions, (y, C) => (b(), A(n, {
|
|
13089
|
+
key: C,
|
|
13090
|
+
value: y,
|
|
13091
|
+
variant: o.intervalHour === y ? "tonal" : "text",
|
|
13107
13092
|
color: "primary",
|
|
13108
13093
|
rounded: "",
|
|
13109
|
-
active: o.intervalHour ===
|
|
13094
|
+
active: o.intervalHour === y,
|
|
13110
13095
|
height: "30",
|
|
13111
13096
|
"min-height": "30",
|
|
13112
13097
|
"min-width": "30",
|
|
@@ -13114,10 +13099,10 @@ function gm(t, e, a, i, o, r) {
|
|
|
13114
13099
|
}, {
|
|
13115
13100
|
default: u(() => [
|
|
13116
13101
|
d(c, {
|
|
13117
|
-
onClick: (T) => o.intervalHour =
|
|
13102
|
+
onClick: (T) => o.intervalHour = y
|
|
13118
13103
|
}, {
|
|
13119
13104
|
default: u(() => [
|
|
13120
|
-
j(h(
|
|
13105
|
+
j(h(y) + "h", 1)
|
|
13121
13106
|
]),
|
|
13122
13107
|
_: 2
|
|
13123
13108
|
}, 1032, ["onClick"])
|
|
@@ -13140,7 +13125,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13140
13125
|
style: { height: "16px" }
|
|
13141
13126
|
}),
|
|
13142
13127
|
l("div", nm, [
|
|
13143
|
-
d(
|
|
13128
|
+
d(f, {
|
|
13144
13129
|
icon: "",
|
|
13145
13130
|
size: "small",
|
|
13146
13131
|
density: "comfortable",
|
|
@@ -13153,7 +13138,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13153
13138
|
_: 1,
|
|
13154
13139
|
__: [9]
|
|
13155
13140
|
}, 8, ["onClick"]),
|
|
13156
|
-
d(
|
|
13141
|
+
d(f, {
|
|
13157
13142
|
icon: "",
|
|
13158
13143
|
size: "small",
|
|
13159
13144
|
density: "comfortable",
|
|
@@ -13166,7 +13151,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13166
13151
|
_: 1,
|
|
13167
13152
|
__: [10]
|
|
13168
13153
|
}, 8, ["onClick"]),
|
|
13169
|
-
o.paused ? (b(), A(
|
|
13154
|
+
o.paused ? (b(), A(f, {
|
|
13170
13155
|
key: 0,
|
|
13171
13156
|
icon: "",
|
|
13172
13157
|
size: "small",
|
|
@@ -13179,7 +13164,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13179
13164
|
])),
|
|
13180
13165
|
_: 1,
|
|
13181
13166
|
__: [11]
|
|
13182
|
-
}, 8, ["onClick"])) : (b(), A(
|
|
13167
|
+
}, 8, ["onClick"])) : (b(), A(f, {
|
|
13183
13168
|
key: 1,
|
|
13184
13169
|
icon: "",
|
|
13185
13170
|
size: "small",
|
|
@@ -13193,7 +13178,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13193
13178
|
_: 1,
|
|
13194
13179
|
__: [12]
|
|
13195
13180
|
}, 8, ["onClick"])),
|
|
13196
|
-
d(
|
|
13181
|
+
d(f, {
|
|
13197
13182
|
icon: "",
|
|
13198
13183
|
size: "small",
|
|
13199
13184
|
density: "comfortable",
|
|
@@ -13217,12 +13202,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13217
13202
|
text: t.$t("weather.windBarbs"),
|
|
13218
13203
|
location: "top"
|
|
13219
13204
|
}, {
|
|
13220
|
-
activator: u(({ props:
|
|
13221
|
-
var
|
|
13205
|
+
activator: u(({ props: y }) => {
|
|
13206
|
+
var C, T;
|
|
13222
13207
|
return [
|
|
13223
|
-
d(
|
|
13208
|
+
d(f, O(y, {
|
|
13224
13209
|
class: "pa-1 d-flex",
|
|
13225
|
-
color: (
|
|
13210
|
+
color: (C = a.weatherCheckList) != null && C.includes("wind") ? "primary" : "",
|
|
13226
13211
|
variant: (T = a.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
13227
13212
|
height: "24",
|
|
13228
13213
|
width: "24",
|
|
@@ -13243,12 +13228,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13243
13228
|
text: t.$t("weather.sigWaveHeight"),
|
|
13244
13229
|
location: "top"
|
|
13245
13230
|
}, {
|
|
13246
|
-
activator: u(({ props:
|
|
13247
|
-
var
|
|
13231
|
+
activator: u(({ props: y }) => {
|
|
13232
|
+
var C, T;
|
|
13248
13233
|
return [
|
|
13249
|
-
d(
|
|
13234
|
+
d(f, O(y, {
|
|
13250
13235
|
class: "pa-1 d-flex",
|
|
13251
|
-
color: (
|
|
13236
|
+
color: (C = a.weatherCheckList) != null && C.includes("sig-wave-height") ? "primary" : "",
|
|
13252
13237
|
variant: (T = a.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
13253
13238
|
height: "24",
|
|
13254
13239
|
width: "24",
|
|
@@ -13256,7 +13241,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13256
13241
|
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
13257
13242
|
}), {
|
|
13258
13243
|
default: u(() => [
|
|
13259
|
-
l("i", O(
|
|
13244
|
+
l("i", O(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13260
13245
|
]),
|
|
13261
13246
|
_: 2
|
|
13262
13247
|
}, 1040, ["color", "variant"])
|
|
@@ -13268,12 +13253,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13268
13253
|
text: t.$t("weather.currentDirection"),
|
|
13269
13254
|
location: "top"
|
|
13270
13255
|
}, {
|
|
13271
|
-
activator: u(({ props:
|
|
13272
|
-
var
|
|
13256
|
+
activator: u(({ props: y }) => {
|
|
13257
|
+
var C, T;
|
|
13273
13258
|
return [
|
|
13274
|
-
d(
|
|
13259
|
+
d(f, O(y, {
|
|
13275
13260
|
class: "pa-1 d-flex",
|
|
13276
|
-
color: (
|
|
13261
|
+
color: (C = a.weatherCheckList) != null && C.includes("current-direction") ? "primary" : "",
|
|
13277
13262
|
variant: (T = a.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
13278
13263
|
height: "24",
|
|
13279
13264
|
width: "24",
|
|
@@ -13281,7 +13266,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13281
13266
|
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
|
|
13282
13267
|
}), {
|
|
13283
13268
|
default: u(() => [
|
|
13284
|
-
l("i", O(
|
|
13269
|
+
l("i", O(y, { class: "iconfont icon-Current" }), null, 16)
|
|
13285
13270
|
]),
|
|
13286
13271
|
_: 2
|
|
13287
13272
|
}, 1040, ["color", "variant"])
|
|
@@ -13293,8 +13278,8 @@ function gm(t, e, a, i, o, r) {
|
|
|
13293
13278
|
text: t.$t("weather.weatherLayers"),
|
|
13294
13279
|
location: "top"
|
|
13295
13280
|
}, {
|
|
13296
|
-
activator: u(({ props:
|
|
13297
|
-
d(
|
|
13281
|
+
activator: u(({ props: y }) => [
|
|
13282
|
+
d(f, O(y, {
|
|
13298
13283
|
class: "pa-1 d-flex",
|
|
13299
13284
|
variant: "text",
|
|
13300
13285
|
height: "24",
|
|
@@ -13303,7 +13288,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13303
13288
|
onClick: r.handleClickFastMore
|
|
13304
13289
|
}), {
|
|
13305
13290
|
default: u(() => [
|
|
13306
|
-
l("i", O(
|
|
13291
|
+
l("i", O(y, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13307
13292
|
]),
|
|
13308
13293
|
_: 2
|
|
13309
13294
|
}, 1040, ["onClick"])
|
|
@@ -13317,12 +13302,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13317
13302
|
style: { height: "16px" }
|
|
13318
13303
|
}),
|
|
13319
13304
|
l("div", mm, [
|
|
13320
|
-
d(
|
|
13305
|
+
d(f, {
|
|
13321
13306
|
text: "",
|
|
13322
13307
|
height: "30",
|
|
13323
13308
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13324
13309
|
color: o.source === "GFS" ? "primary" : "",
|
|
13325
|
-
onClick: e[6] || (e[6] = (
|
|
13310
|
+
onClick: e[6] || (e[6] = (y) => o.source = "GFS")
|
|
13326
13311
|
}, {
|
|
13327
13312
|
default: u(() => e[15] || (e[15] = [
|
|
13328
13313
|
j("NOAA", -1)
|
|
@@ -13330,12 +13315,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13330
13315
|
_: 1,
|
|
13331
13316
|
__: [15]
|
|
13332
13317
|
}, 8, ["color"]),
|
|
13333
|
-
d(
|
|
13318
|
+
d(f, {
|
|
13334
13319
|
text: "",
|
|
13335
13320
|
height: "30",
|
|
13336
13321
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13337
13322
|
color: o.source === "ECMWF" ? "primary" : "",
|
|
13338
|
-
onClick: e[7] || (e[7] = (
|
|
13323
|
+
onClick: e[7] || (e[7] = (y) => o.source = "ECMWF")
|
|
13339
13324
|
}, {
|
|
13340
13325
|
default: u(() => e[16] || (e[16] = [
|
|
13341
13326
|
j("ECMWF", -1)
|
|
@@ -13350,20 +13335,20 @@ function gm(t, e, a, i, o, r) {
|
|
|
13350
13335
|
style: ie({ right: o.right + "px" })
|
|
13351
13336
|
}, [
|
|
13352
13337
|
o.showTimezone ? (b(), S("div", dm, [
|
|
13353
|
-
(b(!0), S(be, null, we(o.offsets, (
|
|
13354
|
-
key:
|
|
13338
|
+
(b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
|
|
13339
|
+
key: y,
|
|
13355
13340
|
class: "item rounded text-body-2 hover-active",
|
|
13356
|
-
onClick: (
|
|
13357
|
-
}, h(
|
|
13341
|
+
onClick: (C) => o.timeZone = y
|
|
13342
|
+
}, h(y < 0 ? y : "+" + y), 9, hm))), 128))
|
|
13358
13343
|
])) : D("", !0),
|
|
13359
13344
|
l("div", pm, [
|
|
13360
|
-
d(
|
|
13345
|
+
d(f, {
|
|
13361
13346
|
text: "",
|
|
13362
13347
|
variant: "flat",
|
|
13363
13348
|
height: "28",
|
|
13364
13349
|
class: "pa-1 text-body-1",
|
|
13365
13350
|
color: "primary",
|
|
13366
|
-
onClick: e[8] || (e[8] = (
|
|
13351
|
+
onClick: e[8] || (e[8] = (y) => o.showTimezone = !o.showTimezone)
|
|
13367
13352
|
}, {
|
|
13368
13353
|
default: u(() => [
|
|
13369
13354
|
j(" UTC " + h(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
@@ -13439,7 +13424,7 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
|
|
|
13439
13424
|
class: "map-gl4-home"
|
|
13440
13425
|
};
|
|
13441
13426
|
function wm(t, e, a, i, o, r) {
|
|
13442
|
-
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"),
|
|
13427
|
+
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
|
|
13443
13428
|
return b(), S("div", bm, [
|
|
13444
13429
|
d(s, O({
|
|
13445
13430
|
ref: "idmOtherLayers",
|
|
@@ -13497,7 +13482,7 @@ function wm(t, e, a, i, o, r) {
|
|
|
13497
13482
|
"forecast-model": a.forecastModel,
|
|
13498
13483
|
"map-feather": a.mapFeather
|
|
13499
13484
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
13500
|
-
d(
|
|
13485
|
+
d(f, O({
|
|
13501
13486
|
ref: "idmBottomBar",
|
|
13502
13487
|
"forecast-model": a.forecastModel,
|
|
13503
13488
|
"weather-check-list": o.weatherCheckList,
|
|
@@ -13514,7 +13499,7 @@ class vm {
|
|
|
13514
13499
|
me(this, "hi");
|
|
13515
13500
|
me(this, "td");
|
|
13516
13501
|
me(this, "windy");
|
|
13517
|
-
var a, i, o, r, s, c, n, g, p,
|
|
13502
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
|
|
13518
13503
|
this.i4 = {
|
|
13519
13504
|
source: {
|
|
13520
13505
|
type: "raster",
|
|
@@ -32110,13 +32095,13 @@ class vm {
|
|
|
32110
32095
|
(r = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
|
|
32111
32096
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
|
|
32112
32097
|
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
|
|
32113
|
-
(
|
|
32098
|
+
(f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
|
|
32114
32099
|
(v = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : v.find((m) => m.id === "loadlines-fill"),
|
|
32115
|
-
(
|
|
32100
|
+
(C = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : C.find((m) => m.id === "empty-layer-0"),
|
|
32116
32101
|
(B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((m) => m.id === "empty-layer-1"),
|
|
32117
|
-
(
|
|
32102
|
+
(L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
|
|
32118
32103
|
(k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
|
|
32119
|
-
(z = (
|
|
32104
|
+
(z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
|
|
32120
32105
|
(G = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
|
|
32121
32106
|
(K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
|
|
32122
32107
|
(J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
|