@idmwx/idmui-gl4 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ue } from "@idm-
|
|
|
9
9
|
import D from "moment";
|
|
10
10
|
import { Meteo2Assist as ao, TidesAssist as qa } from "@idm-plugin/meteo";
|
|
11
11
|
import * as ro from "echarts";
|
|
12
|
-
import * as
|
|
12
|
+
import * as U from "@turf/turf";
|
|
13
13
|
import { LayerHelper as io, CompanyHelper as Ja } from "@idm-plugin/tag2";
|
|
14
14
|
import Qa from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
@@ -385,8 +385,8 @@ const mi = {
|
|
|
385
385
|
return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
|
|
386
386
|
})[0];
|
|
387
387
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
|
|
388
|
-
var n,
|
|
389
|
-
const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (
|
|
388
|
+
var n, f;
|
|
389
|
+
const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (f = s == null ? void 0 : s.children[1]) == null ? void 0 : f.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
392
|
}), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
@@ -498,7 +498,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
498
498
|
default: u(() => [
|
|
499
499
|
h(c, null, {
|
|
500
500
|
default: u(() => {
|
|
501
|
-
var
|
|
501
|
+
var f;
|
|
502
502
|
return [
|
|
503
503
|
h(s, {
|
|
504
504
|
icon: "",
|
|
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
515
515
|
}, 8, ["onClick"]),
|
|
516
516
|
l("div", {
|
|
517
517
|
class: "rich-context",
|
|
518
|
-
innerHTML: (
|
|
518
|
+
innerHTML: (f = a.form) == null ? void 0 : f.name
|
|
519
519
|
}, null, 8, di)
|
|
520
520
|
];
|
|
521
521
|
}),
|
|
@@ -1482,10 +1482,10 @@ const ui = {
|
|
|
1482
1482
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1483
1483
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1484
1484
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1485
|
-
var c, n,
|
|
1485
|
+
var c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe;
|
|
1486
1486
|
let r = {};
|
|
1487
1487
|
const s = ((c = ao.pickHourly(t, D(i))) == null ? void 0 : c[0]) || {};
|
|
1488
|
-
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((
|
|
1488
|
+
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((f = s == null ? void 0 : s.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (H = s == null ? void 0 : s.wave) == null ? void 0 : H.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1489
1489
|
});
|
|
1490
1490
|
},
|
|
1491
1491
|
handleTide() {
|
|
@@ -1670,19 +1670,19 @@ const ui = {
|
|
|
1670
1670
|
width: "120"
|
|
1671
1671
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1672
1672
|
function yr(t, e, o, i, a, r) {
|
|
1673
|
-
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"),
|
|
1674
|
-
return b(), R(
|
|
1673
|
+
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), f = x("VIcon"), p = x("VBtnToggle"), y = x("VCard");
|
|
1674
|
+
return b(), R(y, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1675
1675
|
default: u(() => {
|
|
1676
|
-
var w,
|
|
1676
|
+
var w, k;
|
|
1677
1677
|
return [
|
|
1678
1678
|
h(c, { class: "w-100" }, {
|
|
1679
1679
|
default: u(() => {
|
|
1680
|
-
var
|
|
1680
|
+
var g, z, T, O, I;
|
|
1681
1681
|
return [
|
|
1682
1682
|
l("div", gi, [
|
|
1683
1683
|
l("div", fi, [
|
|
1684
1684
|
l("div", {
|
|
1685
|
-
class: He(["fi mr-2 rounded elevation-4", `fi-${(
|
|
1685
|
+
class: He(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1686
1686
|
style: { width: "36px", height: "24px" }
|
|
1687
1687
|
}, null, 2),
|
|
1688
1688
|
l("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
|
|
@@ -1714,9 +1714,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1714
1714
|
}),
|
|
1715
1715
|
h(n, { class: "w-100" }),
|
|
1716
1716
|
l("div", bi, [
|
|
1717
|
-
o.followList.some((
|
|
1718
|
-
var
|
|
1719
|
-
return ((
|
|
1717
|
+
o.followList.some((g) => {
|
|
1718
|
+
var z;
|
|
1719
|
+
return ((z = g.port) == null ? void 0 : z.id) === o.portId;
|
|
1720
1720
|
}) ? (b(), R(s, {
|
|
1721
1721
|
key: 0,
|
|
1722
1722
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
@@ -1727,7 +1727,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1727
1727
|
onClick: r.handleCancelFollow
|
|
1728
1728
|
}, {
|
|
1729
1729
|
prepend: u(() => [
|
|
1730
|
-
h(
|
|
1730
|
+
h(f, { color: "warning" })
|
|
1731
1731
|
]),
|
|
1732
1732
|
default: u(() => [
|
|
1733
1733
|
j(" " + m(t.$t("actions.unfollow")), 1)
|
|
@@ -1776,7 +1776,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1776
1776
|
l("div", Li, [
|
|
1777
1777
|
l("div", Pi, [
|
|
1778
1778
|
l("div", Ci, m(t.$t("port.region")), 1),
|
|
1779
|
-
l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((
|
|
1779
|
+
l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
|
|
1780
1780
|
]),
|
|
1781
1781
|
l("div", Si, [
|
|
1782
1782
|
l("div", Ii, m(t.$t("port.position")), 1),
|
|
@@ -1803,7 +1803,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1803
1803
|
l("div", Fi, [
|
|
1804
1804
|
h(p, {
|
|
1805
1805
|
modelValue: a.currentIndex,
|
|
1806
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1806
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
|
|
1807
1807
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1808
1808
|
density: "compact",
|
|
1809
1809
|
group: "",
|
|
@@ -1812,15 +1812,15 @@ function yr(t, e, o, i, a, r) {
|
|
|
1812
1812
|
rounded: "1"
|
|
1813
1813
|
}, {
|
|
1814
1814
|
default: u(() => [
|
|
1815
|
-
(b(!0), S(be, null, we(r.dateList, (
|
|
1815
|
+
(b(!0), S(be, null, we(r.dateList, (g) => (b(), R(s, {
|
|
1816
1816
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1817
1817
|
density: "compact",
|
|
1818
1818
|
color: "primary",
|
|
1819
1819
|
height: "26",
|
|
1820
|
-
value:
|
|
1820
|
+
value: g.index
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: u(() => [
|
|
1823
|
-
j(m(
|
|
1823
|
+
j(m(g.label), 1)
|
|
1824
1824
|
]),
|
|
1825
1825
|
_: 2
|
|
1826
1826
|
}, 1032, ["value"]))), 256))
|
|
@@ -1829,40 +1829,40 @@ function yr(t, e, o, i, a, r) {
|
|
|
1829
1829
|
}, 8, ["modelValue"]),
|
|
1830
1830
|
l("table", Hi, [
|
|
1831
1831
|
l("tbody", null, [
|
|
1832
|
-
(b(!0), S(be, null, we(a.tableData, (
|
|
1833
|
-
key:
|
|
1832
|
+
(b(!0), S(be, null, we(a.tableData, (g) => (b(), S("tr", {
|
|
1833
|
+
key: g.id
|
|
1834
1834
|
}, [
|
|
1835
1835
|
l("th", Ui, [
|
|
1836
|
-
j(m(t.$t(`${
|
|
1837
|
-
|
|
1836
|
+
j(m(t.$t(`${g.key}`)) + " ", 1),
|
|
1837
|
+
g.unit ? (b(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : M("", !0)
|
|
1838
1838
|
]),
|
|
1839
1839
|
l("td", Gi, [
|
|
1840
|
-
|
|
1840
|
+
g.img ? (b(), S("img", {
|
|
1841
1841
|
key: 0,
|
|
1842
|
-
src:
|
|
1842
|
+
src: g == null ? void 0 : g.value0,
|
|
1843
1843
|
style: { height: "30px" }
|
|
1844
|
-
}, null, 8, Vi)) : (b(), S("span", Zi, m((
|
|
1844
|
+
}, null, 8, Vi)) : (b(), S("span", Zi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
|
|
1845
1845
|
]),
|
|
1846
1846
|
l("td", qi, [
|
|
1847
|
-
|
|
1847
|
+
g.img ? (b(), S("img", {
|
|
1848
1848
|
key: 0,
|
|
1849
|
-
src:
|
|
1849
|
+
src: g == null ? void 0 : g.value1,
|
|
1850
1850
|
style: { height: "30px" }
|
|
1851
|
-
}, null, 8, Yi)) : (b(), S("span", Ki, m((
|
|
1851
|
+
}, null, 8, Yi)) : (b(), S("span", Ki, m((g == null ? void 0 : g.value1) ?? "-"), 1))
|
|
1852
1852
|
]),
|
|
1853
1853
|
l("td", Xi, [
|
|
1854
|
-
|
|
1854
|
+
g.img ? (b(), S("img", {
|
|
1855
1855
|
key: 0,
|
|
1856
|
-
src:
|
|
1856
|
+
src: g == null ? void 0 : g.value2,
|
|
1857
1857
|
style: { height: "30px" }
|
|
1858
|
-
}, null, 8, $i)) : (b(), S("span", Ji, m((
|
|
1858
|
+
}, null, 8, $i)) : (b(), S("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
|
|
1859
1859
|
]),
|
|
1860
1860
|
l("td", Qi, [
|
|
1861
|
-
|
|
1861
|
+
g.img ? (b(), S("img", {
|
|
1862
1862
|
key: 0,
|
|
1863
|
-
src:
|
|
1863
|
+
src: g == null ? void 0 : g.value3,
|
|
1864
1864
|
style: { height: "30px" }
|
|
1865
|
-
}, null, 8, er)) : (b(), S("span", tr, m((
|
|
1865
|
+
}, null, 8, er)) : (b(), S("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
|
|
1866
1866
|
])
|
|
1867
1867
|
]))), 128))
|
|
1868
1868
|
])
|
|
@@ -1886,7 +1886,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1886
1886
|
density: "compact",
|
|
1887
1887
|
variant: "plain",
|
|
1888
1888
|
size: "small",
|
|
1889
|
-
onClick: e[1] || (e[1] = (
|
|
1889
|
+
onClick: e[1] || (e[1] = (g) => a.showTideDetail = !1)
|
|
1890
1890
|
})) : (b(), R(s, {
|
|
1891
1891
|
key: 1,
|
|
1892
1892
|
icon: "mdi-eye-outline",
|
|
@@ -1906,12 +1906,12 @@ function yr(t, e, o, i, a, r) {
|
|
|
1906
1906
|
l("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1907
1907
|
l("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
|
|
1908
1908
|
]),
|
|
1909
|
-
(b(!0), S(be, null, we(a.tideTableData, (
|
|
1909
|
+
(b(!0), S(be, null, we(a.tideTableData, (g, z) => {
|
|
1910
1910
|
var T;
|
|
1911
|
-
return b(), S("tr", { key:
|
|
1912
|
-
l("td", ur, m(t.$t(`tide.${(T =
|
|
1913
|
-
l("td", gr, m(r.computeLocalTime(
|
|
1914
|
-
l("td", fr, m((
|
|
1911
|
+
return b(), S("tr", { key: z }, [
|
|
1912
|
+
l("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
1913
|
+
l("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
|
|
1914
|
+
l("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
|
|
1915
1915
|
]);
|
|
1916
1916
|
}), 128))
|
|
1917
1917
|
])
|
|
@@ -2066,7 +2066,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2066
2066
|
port: a.port,
|
|
2067
2067
|
forecastModel: o.forecastModel,
|
|
2068
2068
|
onClose: r.handleCloseDetail,
|
|
2069
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
2069
|
+
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2070
2070
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : M("", !0)
|
|
2071
2071
|
]);
|
|
2072
2072
|
}
|
|
@@ -2935,18 +2935,18 @@ const Yr = {
|
|
|
2935
2935
|
width: "120"
|
|
2936
2936
|
}, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
|
|
2937
2937
|
function Tl(t, e, o, i, a, r) {
|
|
2938
|
-
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"),
|
|
2938
|
+
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), f = x("VBtnToggle"), p = x("v-card");
|
|
2939
2939
|
return b(), R(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2940
2940
|
default: u(() => {
|
|
2941
|
-
var
|
|
2941
|
+
var y, w;
|
|
2942
2942
|
return [
|
|
2943
2943
|
h(c, { class: "w-100" }, {
|
|
2944
2944
|
default: u(() => {
|
|
2945
|
-
var
|
|
2945
|
+
var k;
|
|
2946
2946
|
return [
|
|
2947
2947
|
l("div", Kr, [
|
|
2948
2948
|
l("div", Xr, [
|
|
2949
|
-
l("div", null, m((
|
|
2949
|
+
l("div", null, m((k = o.station) == null ? void 0 : k.name), 1)
|
|
2950
2950
|
]),
|
|
2951
2951
|
h(s, {
|
|
2952
2952
|
icon: "",
|
|
@@ -2986,7 +2986,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
2986
2986
|
l("div", il, [
|
|
2987
2987
|
l("div", rl, [
|
|
2988
2988
|
l("div", ll, m(t.$t("tide.region")), 1),
|
|
2989
|
-
l("div", sl, m(((
|
|
2989
|
+
l("div", sl, m(((y = o.station) == null ? void 0 : y.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
2990
2990
|
]),
|
|
2991
2991
|
l("div", nl, [
|
|
2992
2992
|
l("div", cl, m(t.$t("tide.position")), 1),
|
|
@@ -3011,9 +3011,9 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3011
3011
|
e[3] || (e[3] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
3012
3012
|
]),
|
|
3013
3013
|
l("div", wl, [
|
|
3014
|
-
h(
|
|
3014
|
+
h(f, {
|
|
3015
3015
|
modelValue: a.currentIndex,
|
|
3016
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3016
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
|
|
3017
3017
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3018
3018
|
density: "compact",
|
|
3019
3019
|
group: "",
|
|
@@ -3022,15 +3022,15 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3022
3022
|
rounded: "1"
|
|
3023
3023
|
}, {
|
|
3024
3024
|
default: u(() => [
|
|
3025
|
-
(b(!0), S(be, null, we(r.dateList, (
|
|
3025
|
+
(b(!0), S(be, null, we(r.dateList, (k) => (b(), R(s, {
|
|
3026
3026
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3027
3027
|
density: "compact",
|
|
3028
3028
|
color: "primary",
|
|
3029
3029
|
height: "26",
|
|
3030
|
-
value:
|
|
3030
|
+
value: k.index
|
|
3031
3031
|
}, {
|
|
3032
3032
|
default: u(() => [
|
|
3033
|
-
j(m(
|
|
3033
|
+
j(m(k.label), 1)
|
|
3034
3034
|
]),
|
|
3035
3035
|
_: 2
|
|
3036
3036
|
}, 1032, ["value"]))), 256))
|
|
@@ -3045,12 +3045,12 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3045
3045
|
l("th", kl, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3046
3046
|
l("th", zl, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3047
3047
|
]),
|
|
3048
|
-
(b(!0), S(be, null, we(a.tideTableData, (
|
|
3049
|
-
var
|
|
3050
|
-
return b(), S("tr", { key:
|
|
3051
|
-
l("td", Ll, m(t.$t(`tide.${(
|
|
3052
|
-
l("td", Pl, m(r.computeLocalTime(
|
|
3053
|
-
l("td", Cl, m((
|
|
3048
|
+
(b(!0), S(be, null, we(a.tideTableData, (k, g) => {
|
|
3049
|
+
var z;
|
|
3050
|
+
return b(), S("tr", { key: g }, [
|
|
3051
|
+
l("td", Ll, m(t.$t(`tide.${(z = k == null ? void 0 : k.type) == null ? void 0 : z.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3052
|
+
l("td", Pl, m(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
|
|
3053
|
+
l("td", Cl, m((k == null ? void 0 : k.height) ?? "-") + " m", 1)
|
|
3054
3054
|
]);
|
|
3055
3055
|
}), 128))
|
|
3056
3056
|
])
|
|
@@ -3147,12 +3147,12 @@ function Ol(t, e, o, i, a, r) {
|
|
|
3147
3147
|
default: u(() => [
|
|
3148
3148
|
h(s, { class: "pr-8 text-body-1" }, {
|
|
3149
3149
|
default: u(() => {
|
|
3150
|
-
var
|
|
3150
|
+
var f, p;
|
|
3151
3151
|
return [
|
|
3152
3152
|
l("div", Ml, [
|
|
3153
3153
|
l("div", Al, m(t.$t("tide.tideStation")), 1),
|
|
3154
3154
|
l("div", Dl, [
|
|
3155
|
-
l("label", Rl, m((
|
|
3155
|
+
l("label", Rl, m((f = a.hoverStation) == null ? void 0 : f.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
|
|
3156
3156
|
])
|
|
3157
3157
|
])
|
|
3158
3158
|
];
|
|
@@ -3324,7 +3324,7 @@ const Fl = {
|
|
|
3324
3324
|
handleZoomEnd() {
|
|
3325
3325
|
var e;
|
|
3326
3326
|
const t = this.handleComputeLatLngs();
|
|
3327
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
3327
|
+
(e = this.map) == null || e.getSource(this.source).setData(U.featureCollection(t));
|
|
3328
3328
|
},
|
|
3329
3329
|
handleRender() {
|
|
3330
3330
|
if (this.handleClear(), this.map) {
|
|
@@ -4335,7 +4335,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
4335
4335
|
forecastModel: o.forecastModel,
|
|
4336
4336
|
followList: o.followList,
|
|
4337
4337
|
onClose: r.handleCloseDetail,
|
|
4338
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
4338
|
+
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4339
4339
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : M("", !0)
|
|
4340
4340
|
]);
|
|
4341
4341
|
}
|
|
@@ -5223,18 +5223,18 @@ const Yl = {
|
|
|
5223
5223
|
this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
|
|
5224
5224
|
},
|
|
5225
5225
|
handleClick(t) {
|
|
5226
|
-
var o, i, a, r, s, c, n,
|
|
5226
|
+
var o, i, a, r, s, c, n, f, p;
|
|
5227
5227
|
const e = t.features[0];
|
|
5228
5228
|
if (e.properties) {
|
|
5229
|
-
const
|
|
5230
|
-
|
|
5231
|
-
const w = D(),
|
|
5232
|
-
lat:
|
|
5233
|
-
lng:
|
|
5229
|
+
const y = e.properties;
|
|
5230
|
+
y.lng = e.geometry.coordinates[0], y.lat = e.geometry.coordinates[1];
|
|
5231
|
+
const w = D(), k = (o = D(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
|
|
5232
|
+
lat: y.lat,
|
|
5233
|
+
lng: y.lng,
|
|
5234
5234
|
datetime: this.realTime,
|
|
5235
5235
|
forecastModel: this.forecastModel
|
|
5236
5236
|
};
|
|
5237
|
-
|
|
5237
|
+
k >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(g) : (p = (f = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : f.idmSpot) == null || p.fetchHistoryData(g);
|
|
5238
5238
|
}
|
|
5239
5239
|
},
|
|
5240
5240
|
handleHover(t) {
|
|
@@ -5454,9 +5454,9 @@ const es = {
|
|
|
5454
5454
|
})
|
|
5455
5455
|
);
|
|
5456
5456
|
(await Promise.all(s)).map((n) => {
|
|
5457
|
-
var
|
|
5458
|
-
const
|
|
5459
|
-
this.otherLayers[p] =
|
|
5457
|
+
var y, w, k;
|
|
5458
|
+
const f = ((y = n == null ? void 0 : n.data) == null ? void 0 : y.data) || (n == null ? void 0 : n.data), p = (k = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
|
|
5459
|
+
this.otherLayers[p] = f;
|
|
5460
5460
|
});
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5494,7 +5494,7 @@ const es = {
|
|
|
5494
5494
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5495
5495
|
function hs(t, e, o, i, a, r) {
|
|
5496
5496
|
var J, re, he, pe, ne, $, ae, ue, ce;
|
|
5497
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
5497
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), g = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), H = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), q = x("IdmChinaRoute"), V = x("IdmIceAreas"), Q = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5498
5498
|
return b(), S("div", ts, [
|
|
5499
5499
|
l("div", {
|
|
5500
5500
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5548,7 +5548,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5548
5548
|
elevation: "0"
|
|
5549
5549
|
}, {
|
|
5550
5550
|
default: u(() => [
|
|
5551
|
-
h(
|
|
5551
|
+
h(f, { class: "border-b-thin" }, {
|
|
5552
5552
|
default: u(() => [
|
|
5553
5553
|
h(n, {
|
|
5554
5554
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5562,7 +5562,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5562
5562
|
]),
|
|
5563
5563
|
_: 1
|
|
5564
5564
|
}),
|
|
5565
|
-
h(
|
|
5565
|
+
h(y, { class: "pb-2" }, {
|
|
5566
5566
|
default: u(() => [
|
|
5567
5567
|
l("div", rs, [
|
|
5568
5568
|
(b(!0), S(be, null, we(a.mapFeathers, (F) => (b(), S("div", {
|
|
@@ -5601,7 +5601,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5601
5601
|
elevation: "0"
|
|
5602
5602
|
}, {
|
|
5603
5603
|
default: u(() => [
|
|
5604
|
-
h(
|
|
5604
|
+
h(f, { class: "border-b-thin" }, {
|
|
5605
5605
|
default: u(() => [
|
|
5606
5606
|
h(n, {
|
|
5607
5607
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5615,7 +5615,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5615
5615
|
]),
|
|
5616
5616
|
_: 1
|
|
5617
5617
|
}),
|
|
5618
|
-
h(
|
|
5618
|
+
h(y, { class: "py-2" }, {
|
|
5619
5619
|
default: u(() => [
|
|
5620
5620
|
(b(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), R(p, {
|
|
5621
5621
|
key: F.key,
|
|
@@ -5640,7 +5640,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5640
5640
|
elevation: "0"
|
|
5641
5641
|
}, {
|
|
5642
5642
|
default: u(() => [
|
|
5643
|
-
h(
|
|
5643
|
+
h(f, { class: "border-b-thin" }, {
|
|
5644
5644
|
default: u(() => [
|
|
5645
5645
|
h(n, {
|
|
5646
5646
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5654,7 +5654,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5654
5654
|
]),
|
|
5655
5655
|
_: 1
|
|
5656
5656
|
}),
|
|
5657
|
-
h(
|
|
5657
|
+
h(y, { class: "py-2" }, {
|
|
5658
5658
|
default: u(() => [
|
|
5659
5659
|
(b(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), R(p, {
|
|
5660
5660
|
key: F.key,
|
|
@@ -5679,7 +5679,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5679
5679
|
elevation: "0"
|
|
5680
5680
|
}, {
|
|
5681
5681
|
default: u(() => [
|
|
5682
|
-
h(
|
|
5682
|
+
h(f, { class: "border-b-thin" }, {
|
|
5683
5683
|
default: u(() => [
|
|
5684
5684
|
h(n, {
|
|
5685
5685
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5693,7 +5693,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5693
5693
|
]),
|
|
5694
5694
|
_: 1
|
|
5695
5695
|
}),
|
|
5696
|
-
h(
|
|
5696
|
+
h(y, { class: "py-2" }, {
|
|
5697
5697
|
default: u(() => [
|
|
5698
5698
|
h(p, {
|
|
5699
5699
|
modelValue: a.checkList,
|
|
@@ -5725,18 +5725,18 @@ function hs(t, e, o, i, a, r) {
|
|
|
5725
5725
|
})
|
|
5726
5726
|
])
|
|
5727
5727
|
], 6),
|
|
5728
|
-
o.map ? (b(), R(
|
|
5728
|
+
o.map ? (b(), R(k, B({
|
|
5729
5729
|
key: 0,
|
|
5730
5730
|
map: o.map,
|
|
5731
5731
|
"menu-toggle": o.menuToggle,
|
|
5732
5732
|
show: a.checkList.includes("graticule")
|
|
5733
5733
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : M("", !0),
|
|
5734
|
-
o.map ? (b(), R(
|
|
5734
|
+
o.map ? (b(), R(g, B({
|
|
5735
5735
|
key: 1,
|
|
5736
5736
|
map: o.map,
|
|
5737
5737
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
5738
5738
|
}, t.$attrs), null, 16, ["map", "area"])) : M("", !0),
|
|
5739
|
-
o.map ? (b(), R(
|
|
5739
|
+
o.map ? (b(), R(z, B({
|
|
5740
5740
|
key: 2,
|
|
5741
5741
|
map: o.map,
|
|
5742
5742
|
zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
|
|
@@ -5781,7 +5781,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5781
5781
|
map: o.map,
|
|
5782
5782
|
zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
|
|
5783
5783
|
}, t.$attrs), null, 16, ["map", "zone"])) : M("", !0),
|
|
5784
|
-
o.map ? (b(), R(
|
|
5784
|
+
o.map ? (b(), R(L, B({
|
|
5785
5785
|
key: 8,
|
|
5786
5786
|
map: o.map,
|
|
5787
5787
|
area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
|
|
@@ -5802,7 +5802,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5802
5802
|
map: o.map,
|
|
5803
5803
|
area: (ue = a.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
|
|
5804
5804
|
}, t.$attrs), null, 16, ["map", "area"])) : M("", !0),
|
|
5805
|
-
o.map ? (b(), R(
|
|
5805
|
+
o.map ? (b(), R(H, B({
|
|
5806
5806
|
key: 12,
|
|
5807
5807
|
map: o.map,
|
|
5808
5808
|
area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
|
|
@@ -5891,12 +5891,12 @@ class so {
|
|
|
5891
5891
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5892
5892
|
*/
|
|
5893
5893
|
getBoundPixel() {
|
|
5894
|
-
var
|
|
5895
|
-
const e = (
|
|
5894
|
+
var g, z;
|
|
5895
|
+
const e = (g = this.map) == null ? void 0 : g.getBounds();
|
|
5896
5896
|
if (!e)
|
|
5897
5897
|
return [];
|
|
5898
|
-
const o = ((
|
|
5899
|
-
return [
|
|
5898
|
+
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [f, p] = this.mercator.px([r, i[1]], o), [y, w] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
5899
|
+
return [y, w, f + k, p];
|
|
5900
5900
|
}
|
|
5901
5901
|
/**
|
|
5902
5902
|
* [视窗边界像素宽度]
|
|
@@ -5913,11 +5913,11 @@ class so {
|
|
|
5913
5913
|
getWorldCopy(e, o) {
|
|
5914
5914
|
const i = 2 ** o, [a, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
|
|
5915
5915
|
for (let p = c; p <= r; p++)
|
|
5916
|
-
for (let
|
|
5917
|
-
n.push([
|
|
5916
|
+
for (let y = a; y <= s; y++)
|
|
5917
|
+
n.push([y, p]);
|
|
5918
5918
|
return n.map((p) => {
|
|
5919
|
-
const
|
|
5920
|
-
return [p[0] *
|
|
5919
|
+
const y = 2 ** o * 256;
|
|
5920
|
+
return [p[0] * y, p[1] * y, y];
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
5923
|
resize() {
|
|
@@ -6001,13 +6001,13 @@ class je {
|
|
|
6001
6001
|
if (a) {
|
|
6002
6002
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
6003
6003
|
for (let n = 0; n < s; n++) {
|
|
6004
|
-
const
|
|
6005
|
-
r[
|
|
6004
|
+
const f = e.getActiveAttrib(a, n);
|
|
6005
|
+
r[f.name] = e.getAttribLocation(a, f.name);
|
|
6006
6006
|
}
|
|
6007
6007
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
6008
6008
|
for (let n = 0; n < c; n++) {
|
|
6009
|
-
const
|
|
6010
|
-
r[
|
|
6009
|
+
const f = e.getActiveUniform(a, n);
|
|
6010
|
+
r[f.name] = e.getUniformLocation(a, f.name);
|
|
6011
6011
|
}
|
|
6012
6012
|
return r;
|
|
6013
6013
|
}
|
|
@@ -6022,8 +6022,8 @@ class je {
|
|
|
6022
6022
|
const c = s.getContext("2d");
|
|
6023
6023
|
if (c && e) {
|
|
6024
6024
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
6025
|
-
return o.forEach(([
|
|
6026
|
-
n.addColorStop(
|
|
6025
|
+
return o.forEach(([f, p]) => {
|
|
6026
|
+
n.addColorStop(f, p);
|
|
6027
6027
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
6028
6028
|
canvas: s,
|
|
6029
6029
|
texture: this.createTexture(
|
|
@@ -6045,8 +6045,8 @@ class je {
|
|
|
6045
6045
|
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
6046
6046
|
for (let p = 0; p < a; p++)
|
|
6047
6047
|
n[p] = p;
|
|
6048
|
-
const
|
|
6049
|
-
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer:
|
|
6048
|
+
const f = this.createDataBuffer(e, "array", n);
|
|
6049
|
+
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: f };
|
|
6050
6050
|
}
|
|
6051
6051
|
bind(e, o, i) {
|
|
6052
6052
|
const a = this.createProgram(e, o, i);
|
|
@@ -6061,13 +6061,13 @@ class je {
|
|
|
6061
6061
|
return {};
|
|
6062
6062
|
}
|
|
6063
6063
|
bindParticle(e, o, i, a, r, s) {
|
|
6064
|
-
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r),
|
|
6065
|
-
return { particle: c, screen: n, update:
|
|
6064
|
+
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), y = e.createFramebuffer();
|
|
6065
|
+
return { particle: c, screen: n, update: f, quadBuffer: p, frameBuffer: y };
|
|
6066
6066
|
}
|
|
6067
6067
|
draw(e, o, i, a, r, s, c) {
|
|
6068
|
-
var n,
|
|
6068
|
+
var n, f;
|
|
6069
6069
|
if (o && i) {
|
|
6070
|
-
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (
|
|
6070
|
+
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (f = o == null ? void 0 : o.canvas) == null ? void 0 : f.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
6071
6071
|
try {
|
|
6072
6072
|
o.useProgram(i);
|
|
6073
6073
|
const p = {
|
|
@@ -6079,9 +6079,9 @@ class je {
|
|
|
6079
6079
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6080
6080
|
};
|
|
6081
6081
|
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6082
|
-
const
|
|
6083
|
-
for (const
|
|
6084
|
-
const
|
|
6082
|
+
const y = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(y, w);
|
|
6083
|
+
for (const g of k) {
|
|
6084
|
+
const z = (g[0] - y[0]) * e.ratio, T = (g[1] - y[3]) * e.ratio, O = g[2] * e.ratio, [I, P, _, L] = [z, O + z, T, O + T], C = new Float32Array([I, _, P, _, I, L, I, L, P, _, P, L]);
|
|
6085
6085
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6086
6086
|
}
|
|
6087
6087
|
} catch (p) {
|
|
@@ -6384,7 +6384,7 @@ const us = {
|
|
|
6384
6384
|
showCaption: !1,
|
|
6385
6385
|
source: "wind-barb-source",
|
|
6386
6386
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
6387
|
-
empty:
|
|
6387
|
+
empty: U.featureCollection([]),
|
|
6388
6388
|
right: 10,
|
|
6389
6389
|
bottom: 125,
|
|
6390
6390
|
windBarbLoaded: !1,
|
|
@@ -6429,17 +6429,17 @@ const us = {
|
|
|
6429
6429
|
else {
|
|
6430
6430
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
6431
6431
|
for (let s = 0; s < (this.barbs ?? []).length - 1; s++) {
|
|
6432
|
-
const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0,
|
|
6433
|
-
p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[
|
|
6434
|
-
this.map.hasImage(
|
|
6432
|
+
const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, f = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, p = new Image(48, 48);
|
|
6433
|
+
p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), p.onload = () => {
|
|
6434
|
+
this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", p), this.map.addLayer(
|
|
6435
6435
|
{
|
|
6436
|
-
id:
|
|
6436
|
+
id: f,
|
|
6437
6437
|
type: "symbol",
|
|
6438
6438
|
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
6439
6439
|
source: this.source,
|
|
6440
6440
|
layout: {
|
|
6441
6441
|
"symbol-placement": "point",
|
|
6442
|
-
"icon-image":
|
|
6442
|
+
"icon-image": f + "-icon",
|
|
6443
6443
|
// mapbox sprite
|
|
6444
6444
|
"icon-size": 0.5,
|
|
6445
6445
|
"icon-offset": [0, -20],
|
|
@@ -6703,7 +6703,7 @@ const vs = /* @__PURE__ */ K(bs, [["render", xs]]), _s = {
|
|
|
6703
6703
|
directionLayer: "current-direction-layer",
|
|
6704
6704
|
speedLayer: "current-speed-layer",
|
|
6705
6705
|
speedLabelLayer: "current-speed-label-layer",
|
|
6706
|
-
empty:
|
|
6706
|
+
empty: U.featureCollection([])
|
|
6707
6707
|
};
|
|
6708
6708
|
},
|
|
6709
6709
|
computed: {
|
|
@@ -6778,16 +6778,16 @@ const vs = /* @__PURE__ */ K(bs, [["render", xs]]), _s = {
|
|
|
6778
6778
|
);
|
|
6779
6779
|
const s = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
|
|
6780
6780
|
s.src = "data:image/svg+xml;base64," + window.btoa(c);
|
|
6781
|
-
const n = new Image(48, 48),
|
|
6781
|
+
const n = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6782
6782
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6783
6783
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6784
6784
|
</svg>`;
|
|
6785
|
-
n.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6785
|
+
n.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
6786
6786
|
const p = [n];
|
|
6787
|
-
let
|
|
6787
|
+
let y = 0;
|
|
6788
6788
|
p.forEach((w) => {
|
|
6789
6789
|
w.onload = () => {
|
|
6790
|
-
|
|
6790
|
+
y++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), y === 1 && this.map.addLayer(
|
|
6791
6791
|
{
|
|
6792
6792
|
id: this.directionLayer,
|
|
6793
6793
|
type: "symbol",
|
|
@@ -7155,7 +7155,7 @@ const As = /* @__PURE__ */ K(Ss, [["render", Ms], ["__scopeId", "data-v-7fffb2fc
|
|
|
7155
7155
|
source: "sig-wave-height-source",
|
|
7156
7156
|
heightLayer: "sig-wave-height-layer",
|
|
7157
7157
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
7158
|
-
empty:
|
|
7158
|
+
empty: U.featureCollection([])
|
|
7159
7159
|
};
|
|
7160
7160
|
},
|
|
7161
7161
|
watch: {
|
|
@@ -7433,7 +7433,7 @@ const js = /* @__PURE__ */ K(Bs, [["render", Es], ["__scopeId", "data-v-f2713d27
|
|
|
7433
7433
|
layer: "prmsl-layer",
|
|
7434
7434
|
labelLayer: "prmsl-label-layer",
|
|
7435
7435
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
7436
|
-
empty:
|
|
7436
|
+
empty: U.featureCollection([])
|
|
7437
7437
|
};
|
|
7438
7438
|
},
|
|
7439
7439
|
watch: {
|
|
@@ -7564,8 +7564,8 @@ function Us(t, e, o, i, a, r) {
|
|
|
7564
7564
|
text: "Map Layers",
|
|
7565
7565
|
location: "left"
|
|
7566
7566
|
}, {
|
|
7567
|
-
activator: u(({ props:
|
|
7568
|
-
h(s, B(
|
|
7567
|
+
activator: u(({ props: f }) => [
|
|
7568
|
+
h(s, B(f, {
|
|
7569
7569
|
"min-width": "32",
|
|
7570
7570
|
width: "32",
|
|
7571
7571
|
height: "32",
|
|
@@ -8642,11 +8642,11 @@ const wn = {
|
|
|
8642
8642
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8643
8643
|
},
|
|
8644
8644
|
async fetchWeatherLayers(t = {}) {
|
|
8645
|
-
var a, r, s, c, n,
|
|
8645
|
+
var a, r, s, c, n, f, p, y, w;
|
|
8646
8646
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8647
8647
|
let o = 0, i = 0;
|
|
8648
8648
|
if (this.map) {
|
|
8649
|
-
const
|
|
8649
|
+
const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), z = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
8650
8650
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8651
8651
|
const T = io.WEATHER_LAYERS.find((O) => {
|
|
8652
8652
|
var I;
|
|
@@ -8658,7 +8658,7 @@ const wn = {
|
|
|
8658
8658
|
let T = this.weatherWeight;
|
|
8659
8659
|
if (T > 0) {
|
|
8660
8660
|
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
8661
|
-
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${
|
|
8661
|
+
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${z}&t=${this.realTime}`,
|
|
8662
8662
|
{
|
|
8663
8663
|
headers: {
|
|
8664
8664
|
Authorization: this.defaultMeteoToken
|
|
@@ -8679,10 +8679,10 @@ const wn = {
|
|
|
8679
8679
|
console.log(`[${C}] fetch layer error: ${v}`);
|
|
8680
8680
|
})
|
|
8681
8681
|
);
|
|
8682
|
-
const
|
|
8683
|
-
this.weatherLayers = {},
|
|
8684
|
-
var
|
|
8685
|
-
const v = ((
|
|
8682
|
+
const L = await Promise.all(_);
|
|
8683
|
+
this.weatherLayers = {}, L.map((C) => {
|
|
8684
|
+
var H, Z, q, V;
|
|
8685
|
+
const v = ((H = C == null ? void 0 : C.data) == null ? void 0 : H.data) || (C == null ? void 0 : C.data);
|
|
8686
8686
|
let A = (q = (Z = C == null ? void 0 : C.config) == null ? void 0 : Z.headers) == null ? void 0 : q.key;
|
|
8687
8687
|
A && v && (this.weatherLayers[A] = {
|
|
8688
8688
|
raw: v,
|
|
@@ -8692,7 +8692,7 @@ const wn = {
|
|
|
8692
8692
|
});
|
|
8693
8693
|
}
|
|
8694
8694
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8695
|
-
const P = (
|
|
8695
|
+
const P = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
8696
8696
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8697
8697
|
type: "json",
|
|
8698
8698
|
direction: P,
|
|
@@ -8701,7 +8701,7 @@ const wn = {
|
|
|
8701
8701
|
};
|
|
8702
8702
|
}
|
|
8703
8703
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8704
|
-
const P = (
|
|
8704
|
+
const P = (y = this.weatherLayers["current-direction"]) == null ? void 0 : y.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8705
8705
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8706
8706
|
type: "json",
|
|
8707
8707
|
direction: P,
|
|
@@ -8728,7 +8728,7 @@ const wn = {
|
|
|
8728
8728
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8729
8729
|
},
|
|
8730
8730
|
handleRampColorInitial() {
|
|
8731
|
-
var t, e, o, i, a, r, s, c, n,
|
|
8731
|
+
var t, e, o, i, a, r, s, c, n, f, p, y;
|
|
8732
8732
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8733
8733
|
type: "canvas",
|
|
8734
8734
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -8749,11 +8749,11 @@ const wn = {
|
|
|
8749
8749
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
8750
8750
|
animate: !0,
|
|
8751
8751
|
coordinates: this.viewport.getBoundLngLat()
|
|
8752
|
-
}), this.viewport.map.getLayer((
|
|
8752
|
+
}), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
|
|
8753
8753
|
{
|
|
8754
8754
|
type: "raster",
|
|
8755
8755
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
8756
|
-
source: (
|
|
8756
|
+
source: (y = this.viewport) == null ? void 0 : y.particleSource,
|
|
8757
8757
|
layout: {
|
|
8758
8758
|
visibility: "none"
|
|
8759
8759
|
}
|
|
@@ -8762,51 +8762,51 @@ const wn = {
|
|
|
8762
8762
|
);
|
|
8763
8763
|
},
|
|
8764
8764
|
handleDrawWeather4Json() {
|
|
8765
|
-
var
|
|
8765
|
+
var f, p, y, w, k, g, z;
|
|
8766
8766
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8767
8767
|
let e = 0, o = 0;
|
|
8768
|
-
const i = (
|
|
8768
|
+
const i = (f = this.map) == null ? void 0 : f.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = X.convertToStdLng(i._sw.lng), s = X.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8769
8769
|
for (const T in this.weatherLayers) {
|
|
8770
8770
|
let O = !1;
|
|
8771
8771
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8772
8772
|
let I = [];
|
|
8773
8773
|
if (T === "swell") {
|
|
8774
8774
|
O = !0;
|
|
8775
|
-
const P = ((
|
|
8776
|
-
for (const
|
|
8777
|
-
if (
|
|
8778
|
-
const C = P[
|
|
8775
|
+
const P = ((y = this.weatherLayers[T]) == null ? void 0 : y.direction) || {};
|
|
8776
|
+
for (const L in P)
|
|
8777
|
+
if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8778
|
+
const C = P[L].lng;
|
|
8779
8779
|
r > s ? C.forEach((v, A) => {
|
|
8780
|
-
var
|
|
8780
|
+
var H, Z, q, V, Q, ee;
|
|
8781
8781
|
if (a < 2) {
|
|
8782
8782
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8783
|
-
const J =
|
|
8784
|
-
val: ((
|
|
8785
|
-
spd: (q = P[
|
|
8783
|
+
const J = U.point([v, L], {
|
|
8784
|
+
val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8785
|
+
spd: (q = P[L].spd) == null ? void 0 : q[A]
|
|
8786
8786
|
});
|
|
8787
8787
|
I.push(J);
|
|
8788
8788
|
}
|
|
8789
8789
|
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8790
|
-
const J =
|
|
8791
|
-
val: ((V = P[
|
|
8792
|
-
spd: (ee = P[
|
|
8790
|
+
const J = U.point([v, L], {
|
|
8791
|
+
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
|
|
8792
|
+
spd: (ee = P[L].spd) == null ? void 0 : ee[A]
|
|
8793
8793
|
});
|
|
8794
8794
|
I.push(J);
|
|
8795
8795
|
}
|
|
8796
8796
|
}) : C.forEach((v, A) => {
|
|
8797
|
-
var
|
|
8797
|
+
var H, Z, q, V, Q, ee;
|
|
8798
8798
|
if (r < 2) {
|
|
8799
8799
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8800
|
-
const J =
|
|
8801
|
-
val: ((
|
|
8802
|
-
spd: (q = P[
|
|
8800
|
+
const J = U.point([v, L], {
|
|
8801
|
+
val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8802
|
+
spd: (q = P[L].spd) == null ? void 0 : q[A]
|
|
8803
8803
|
});
|
|
8804
8804
|
I.push(J);
|
|
8805
8805
|
}
|
|
8806
8806
|
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8807
|
-
const J =
|
|
8808
|
-
val: ((V = P[
|
|
8809
|
-
spd: (ee = P[
|
|
8807
|
+
const J = U.point([v, L], {
|
|
8808
|
+
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
|
|
8809
|
+
spd: (ee = P[L].spd) == null ? void 0 : ee[A]
|
|
8810
8810
|
});
|
|
8811
8811
|
I.push(J);
|
|
8812
8812
|
}
|
|
@@ -8816,61 +8816,61 @@ const wn = {
|
|
|
8816
8816
|
const _ = this.weatherLayers[T].height;
|
|
8817
8817
|
if (_) {
|
|
8818
8818
|
if (!_.data) {
|
|
8819
|
-
const
|
|
8819
|
+
const L = [];
|
|
8820
8820
|
for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
|
|
8821
8821
|
const v = _.raw.LineString[C];
|
|
8822
8822
|
for (const A of v)
|
|
8823
|
-
|
|
8824
|
-
|
|
8823
|
+
L.push(
|
|
8824
|
+
U.lineString(A, {
|
|
8825
8825
|
val: Number(C)
|
|
8826
8826
|
})
|
|
8827
8827
|
);
|
|
8828
|
-
_.data =
|
|
8828
|
+
_.data = U.featureCollection(L);
|
|
8829
8829
|
}
|
|
8830
8830
|
}
|
|
8831
8831
|
if (_.data) {
|
|
8832
|
-
const
|
|
8833
|
-
I = I.concat(
|
|
8832
|
+
const L = this.handleBboxClip(_.data, i);
|
|
8833
|
+
I = I.concat(L);
|
|
8834
8834
|
}
|
|
8835
8835
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8836
8836
|
}
|
|
8837
8837
|
} else if (T === "current") {
|
|
8838
8838
|
O = !0;
|
|
8839
|
-
const P = ((
|
|
8840
|
-
for (const
|
|
8841
|
-
if (
|
|
8842
|
-
const C = P[
|
|
8839
|
+
const P = ((k = this.weatherLayers[T]) == null ? void 0 : k.direction) || {};
|
|
8840
|
+
for (const L in P)
|
|
8841
|
+
if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8842
|
+
const C = P[L].lng;
|
|
8843
8843
|
r > s ? C.forEach((v, A) => {
|
|
8844
|
-
var
|
|
8844
|
+
var H, Z, q, V, Q, ee;
|
|
8845
8845
|
if (a < 2) {
|
|
8846
8846
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8847
|
-
const J =
|
|
8848
|
-
val: ((
|
|
8849
|
-
spd: (q = P[
|
|
8847
|
+
const J = U.point([v, L], {
|
|
8848
|
+
val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8849
|
+
spd: (q = P[L].spd) == null ? void 0 : q[A]
|
|
8850
8850
|
});
|
|
8851
8851
|
I.push(J);
|
|
8852
8852
|
}
|
|
8853
8853
|
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8854
|
-
const J =
|
|
8855
|
-
val: ((V = P[
|
|
8856
|
-
spd: (ee = P[
|
|
8854
|
+
const J = U.point([v, L], {
|
|
8855
|
+
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
|
|
8856
|
+
spd: (ee = P[L].spd) == null ? void 0 : ee[A]
|
|
8857
8857
|
});
|
|
8858
8858
|
I.push(J);
|
|
8859
8859
|
}
|
|
8860
8860
|
}) : C.forEach((v, A) => {
|
|
8861
|
-
var
|
|
8861
|
+
var H, Z, q, V, Q, ee;
|
|
8862
8862
|
if (r < 2) {
|
|
8863
8863
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8864
|
-
const J =
|
|
8865
|
-
val: ((
|
|
8866
|
-
spd: (q = P[
|
|
8864
|
+
const J = U.point([v, L], {
|
|
8865
|
+
val: ((H = P[L].val) == null ? void 0 : H[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8866
|
+
spd: (q = P[L].spd) == null ? void 0 : q[A]
|
|
8867
8867
|
});
|
|
8868
8868
|
I.push(J);
|
|
8869
8869
|
}
|
|
8870
8870
|
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8871
|
-
const J =
|
|
8872
|
-
val: ((V = P[
|
|
8873
|
-
spd: (ee = P[
|
|
8871
|
+
const J = U.point([v, L], {
|
|
8872
|
+
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((Q = P[L].dir) == null ? void 0 : Q[A]),
|
|
8873
|
+
spd: (ee = P[L].spd) == null ? void 0 : ee[A]
|
|
8874
8874
|
});
|
|
8875
8875
|
I.push(J);
|
|
8876
8876
|
}
|
|
@@ -8881,55 +8881,55 @@ const wn = {
|
|
|
8881
8881
|
if (_) {
|
|
8882
8882
|
if (!_.data) {
|
|
8883
8883
|
const C = [];
|
|
8884
|
-
for (const v in (
|
|
8884
|
+
for (const v in (g = _.raw) == null ? void 0 : g.Polygon) {
|
|
8885
8885
|
const A = _.raw.Polygon[v];
|
|
8886
|
-
for (const
|
|
8886
|
+
for (const H of A)
|
|
8887
8887
|
C.push(
|
|
8888
|
-
|
|
8888
|
+
U.polygon(H, {
|
|
8889
8889
|
val: Number(v)
|
|
8890
8890
|
})
|
|
8891
8891
|
);
|
|
8892
8892
|
}
|
|
8893
|
-
_.data =
|
|
8893
|
+
_.data = U.featureCollection(C);
|
|
8894
8894
|
}
|
|
8895
|
-
const
|
|
8896
|
-
I = I.concat(
|
|
8895
|
+
const L = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
8896
|
+
I = I.concat(L), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8897
8897
|
}
|
|
8898
8898
|
} else if (T === "wind") {
|
|
8899
8899
|
O = !0;
|
|
8900
8900
|
const P = this.weatherLayers.wind.raw;
|
|
8901
8901
|
for (const _ in P)
|
|
8902
8902
|
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8903
|
-
const
|
|
8904
|
-
r > s ?
|
|
8905
|
-
var A,
|
|
8903
|
+
const L = P[_].lng;
|
|
8904
|
+
r > s ? L.forEach((C, v) => {
|
|
8905
|
+
var A, H, Z, q;
|
|
8906
8906
|
if (a < 2) {
|
|
8907
8907
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8908
|
-
const V =
|
|
8909
|
-
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((
|
|
8908
|
+
const V = U.point([C, _], {
|
|
8909
|
+
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((H = P[_].dir) == null ? void 0 : H[v]),
|
|
8910
8910
|
spd: P[_].spd[v]
|
|
8911
8911
|
});
|
|
8912
8912
|
I.push(V);
|
|
8913
8913
|
}
|
|
8914
8914
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8915
|
-
const V =
|
|
8915
|
+
const V = U.point([C, _], {
|
|
8916
8916
|
dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
|
|
8917
8917
|
spd: P[_].spd[v]
|
|
8918
8918
|
});
|
|
8919
8919
|
I.push(V);
|
|
8920
8920
|
}
|
|
8921
|
-
}) :
|
|
8922
|
-
var A,
|
|
8921
|
+
}) : L.forEach((C, v) => {
|
|
8922
|
+
var A, H, Z, q;
|
|
8923
8923
|
if (a < 2) {
|
|
8924
8924
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8925
|
-
const V =
|
|
8926
|
-
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((
|
|
8925
|
+
const V = U.point([C, _], {
|
|
8926
|
+
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((H = P[_].dir) == null ? void 0 : H[v]),
|
|
8927
8927
|
spd: P[_].spd[v]
|
|
8928
8928
|
});
|
|
8929
8929
|
I.push(V);
|
|
8930
8930
|
}
|
|
8931
8931
|
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8932
|
-
const V =
|
|
8932
|
+
const V = U.point([C, _], {
|
|
8933
8933
|
dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
|
|
8934
8934
|
spd: P[_].spd[v]
|
|
8935
8935
|
});
|
|
@@ -8946,29 +8946,29 @@ const wn = {
|
|
|
8946
8946
|
const P = this.weatherLayers[T].raw;
|
|
8947
8947
|
if (P) {
|
|
8948
8948
|
const _ = [];
|
|
8949
|
-
for (const
|
|
8950
|
-
const C = P.Polygon[
|
|
8949
|
+
for (const L in P.Polygon) {
|
|
8950
|
+
const C = P.Polygon[L];
|
|
8951
8951
|
for (const v of C)
|
|
8952
8952
|
_.push(
|
|
8953
|
-
|
|
8954
|
-
val: Number(
|
|
8953
|
+
U.polygon(v, {
|
|
8954
|
+
val: Number(L)
|
|
8955
8955
|
})
|
|
8956
8956
|
);
|
|
8957
8957
|
}
|
|
8958
|
-
for (const
|
|
8959
|
-
const C = P.MultiPolygon[
|
|
8958
|
+
for (const L in P.MultiPolygon) {
|
|
8959
|
+
const C = P.MultiPolygon[L];
|
|
8960
8960
|
for (const v of C)
|
|
8961
8961
|
_.push(
|
|
8962
|
-
|
|
8963
|
-
val: Number(
|
|
8962
|
+
U.multiPolygon(v, {
|
|
8963
|
+
val: Number(L)
|
|
8964
8964
|
})
|
|
8965
8965
|
);
|
|
8966
8966
|
}
|
|
8967
|
-
for (const
|
|
8968
|
-
const C = P.Point[
|
|
8969
|
-
for (let v = 0; v < ((
|
|
8967
|
+
for (const L in P.Point) {
|
|
8968
|
+
const C = P.Point[L];
|
|
8969
|
+
for (let v = 0; v < ((z = C.lng) == null ? void 0 : z.length); v++)
|
|
8970
8970
|
_.push(
|
|
8971
|
-
|
|
8971
|
+
U.point([C.lng[v], L], {
|
|
8972
8972
|
val: Number(C.val[v])
|
|
8973
8973
|
})
|
|
8974
8974
|
);
|
|
@@ -8985,21 +8985,21 @@ const wn = {
|
|
|
8985
8985
|
const P = this.weatherLayers[T].raw;
|
|
8986
8986
|
if (P) {
|
|
8987
8987
|
const _ = [];
|
|
8988
|
-
for (const
|
|
8989
|
-
const C = P.LineString[
|
|
8988
|
+
for (const L in P.LineString) {
|
|
8989
|
+
const C = P.LineString[L];
|
|
8990
8990
|
for (const v of C)
|
|
8991
8991
|
_.push(
|
|
8992
|
-
|
|
8993
|
-
val: Number(
|
|
8992
|
+
U.lineString(v, {
|
|
8993
|
+
val: Number(L)
|
|
8994
8994
|
})
|
|
8995
8995
|
);
|
|
8996
8996
|
}
|
|
8997
|
-
for (const
|
|
8998
|
-
P.Point[
|
|
8997
|
+
for (const L in P.Point)
|
|
8998
|
+
P.Point[L].lng.forEach((C, v) => {
|
|
8999
8999
|
C = X.convertToStdLng(C), _.push(
|
|
9000
|
-
|
|
9001
|
-
val: P.Point[
|
|
9002
|
-
type: P.Point[
|
|
9000
|
+
U.point([C, L], {
|
|
9001
|
+
val: P.Point[L].val[v],
|
|
9002
|
+
type: P.Point[L].type[v]
|
|
9003
9003
|
})
|
|
9004
9004
|
);
|
|
9005
9005
|
});
|
|
@@ -9008,7 +9008,7 @@ const wn = {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9010
9010
|
}
|
|
9011
|
-
I.length && (this.weatherLayers[T].data =
|
|
9011
|
+
I.length && (this.weatherLayers[T].data = U.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9012
9012
|
}
|
|
9013
9013
|
}
|
|
9014
9014
|
},
|
|
@@ -9022,10 +9022,10 @@ const wn = {
|
|
|
9022
9022
|
return t.features.forEach((r) => {
|
|
9023
9023
|
if (r.geometry.type !== "Point")
|
|
9024
9024
|
if (i > a) {
|
|
9025
|
-
let s = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
9026
|
-
c.geometry.coordinates.length && o.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c =
|
|
9025
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], c = U.bboxClip(r, s);
|
|
9026
|
+
c.geometry.coordinates.length && o.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = U.bboxClip(r, s), c.geometry.coordinates.length && o.push(c);
|
|
9027
9027
|
} else {
|
|
9028
|
-
const s = [i, e._sw.lat, a, e._ne.lat], c =
|
|
9028
|
+
const s = [i, e._sw.lat, a, e._ne.lat], c = U.bboxClip(r, s);
|
|
9029
9029
|
c.geometry.coordinates.length && o.push(c);
|
|
9030
9030
|
}
|
|
9031
9031
|
else
|
|
@@ -9051,7 +9051,7 @@ const wn = {
|
|
|
9051
9051
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" };
|
|
9052
9052
|
function Qn(t, e, o, i, a, r) {
|
|
9053
9053
|
var pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e;
|
|
9054
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"),
|
|
9054
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), f = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), g = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), H = x("IdmWave"), Z = x("IdmSwell"), q = x("IdmIceEdge"), V = x("IdmIceCover"), Q = x("IdmIceThickness"), ee = x("IdmPrecip3h"), J = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
|
|
9055
9055
|
return b(), S("div", xn, [
|
|
9056
9056
|
l("div", {
|
|
9057
9057
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9117,7 +9117,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9117
9117
|
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9118
9118
|
default: u(() => [
|
|
9119
9119
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9120
|
-
h(
|
|
9120
|
+
h(f, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9121
9121
|
default: u(() => [
|
|
9122
9122
|
(b(!0), S(be, null, we(a.legend.barbs, (W, te) => (b(), R(n, {
|
|
9123
9123
|
key: W,
|
|
@@ -9142,11 +9142,11 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9142
9142
|
_: 1,
|
|
9143
9143
|
__: [10]
|
|
9144
9144
|
}),
|
|
9145
|
-
h(
|
|
9145
|
+
h(y, { vertical: "" }),
|
|
9146
9146
|
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9147
9147
|
default: u(() => [
|
|
9148
9148
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9149
|
-
h(
|
|
9149
|
+
h(f, {
|
|
9150
9150
|
class: "ma-0 ml-1",
|
|
9151
9151
|
style: { width: "100px" }
|
|
9152
9152
|
}, {
|
|
@@ -9174,11 +9174,11 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9174
9174
|
_: 1,
|
|
9175
9175
|
__: [11]
|
|
9176
9176
|
}),
|
|
9177
|
-
h(
|
|
9177
|
+
h(y, { vertical: "" }),
|
|
9178
9178
|
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9179
9179
|
default: u(() => [
|
|
9180
9180
|
e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
9181
|
-
h(
|
|
9181
|
+
h(f, {
|
|
9182
9182
|
class: "ma-0 ml-n5",
|
|
9183
9183
|
style: { width: "110px" }
|
|
9184
9184
|
}, {
|
|
@@ -9219,7 +9219,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9219
9219
|
l("div", In, [
|
|
9220
9220
|
l("div", Mn, [
|
|
9221
9221
|
l("div", An, m(t.$t("weather.weather")), 1),
|
|
9222
|
-
h(
|
|
9222
|
+
h(k, {
|
|
9223
9223
|
modelValue: a.autoActive,
|
|
9224
9224
|
"onUpdate:modelValue": e[1] || (e[1] = (W) => a.autoActive = W),
|
|
9225
9225
|
class: "small-switch",
|
|
@@ -9250,9 +9250,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9250
9250
|
elevation: "0"
|
|
9251
9251
|
}, {
|
|
9252
9252
|
default: u(() => [
|
|
9253
|
-
h(
|
|
9253
|
+
h(z, { class: "border-b-thin" }, {
|
|
9254
9254
|
default: u(() => [
|
|
9255
|
-
h(
|
|
9255
|
+
h(g, {
|
|
9256
9256
|
class: "text-subtitle-1 font-weight-medium",
|
|
9257
9257
|
style: { "font-size": "16px !important" }
|
|
9258
9258
|
}, {
|
|
@@ -9290,9 +9290,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9290
9290
|
elevation: "0"
|
|
9291
9291
|
}, {
|
|
9292
9292
|
default: u(() => [
|
|
9293
|
-
h(
|
|
9293
|
+
h(z, { class: "border-b-thin" }, {
|
|
9294
9294
|
default: u(() => [
|
|
9295
|
-
h(
|
|
9295
|
+
h(g, {
|
|
9296
9296
|
class: "text-subtitle-1 font-weight-medium",
|
|
9297
9297
|
style: { "font-size": "16px !important" }
|
|
9298
9298
|
}, {
|
|
@@ -9324,7 +9324,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9324
9324
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9325
9325
|
a.renderKey === "wind-particle" && W.key === "wind-particle" ? (b(), S("div", Dn, [
|
|
9326
9326
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
9327
|
-
h(
|
|
9327
|
+
h(k, {
|
|
9328
9328
|
modelValue: a.showWindParticle,
|
|
9329
9329
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
9330
9330
|
label: "",
|
|
@@ -9338,7 +9338,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9338
9338
|
])) : M("", !0),
|
|
9339
9339
|
a.renderKey === "current-particle" && W.key === "current-particle" ? (b(), S("div", Rn, [
|
|
9340
9340
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
9341
|
-
h(
|
|
9341
|
+
h(k, {
|
|
9342
9342
|
modelValue: a.showCurrentParticle,
|
|
9343
9343
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
9344
9344
|
label: "",
|
|
@@ -9448,9 +9448,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9448
9448
|
elevation: "0"
|
|
9449
9449
|
}, {
|
|
9450
9450
|
default: u(() => [
|
|
9451
|
-
h(
|
|
9451
|
+
h(z, { class: "border-b-thin" }, {
|
|
9452
9452
|
default: u(() => [
|
|
9453
|
-
h(
|
|
9453
|
+
h(g, {
|
|
9454
9454
|
class: "text-subtitle-1 font-weight-medium",
|
|
9455
9455
|
style: { "font-size": "16px !important" }
|
|
9456
9456
|
}, {
|
|
@@ -9473,7 +9473,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9473
9473
|
l("div", jn, m((N = (Ne = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ne.ECMWF) == null ? void 0 : N.source) + " " + m((Ze = (Ve = (Y = a.models) == null ? void 0 : Y.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Ke = (Ye = (Te = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + m(t.$t("units.days")), 1),
|
|
9474
9474
|
l("div", Fn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9475
9475
|
l("div", Hn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Qe = (Je = ($e = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.initialisationTime)), 1),
|
|
9476
|
-
h(
|
|
9476
|
+
h(y),
|
|
9477
9477
|
l("div", Un, m(t.$t("weather.wave")), 1),
|
|
9478
9478
|
l("div", Wn, m((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.source) + " " + m((st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + m(t.$t("units.km")) + " " + m((ht = (dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + m(t.$t("units.days")), 1),
|
|
9479
9479
|
l("div", Gn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -9481,7 +9481,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9481
9481
|
l("div", Zn, m((vt = (xt = (wt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + m((Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + m(t.$t("units.km")) + " " + m((It = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + m(t.$t("units.days")), 1),
|
|
9482
9482
|
l("div", qn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9483
9483
|
l("div", Yn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9484
|
-
h(
|
|
9484
|
+
h(y),
|
|
9485
9485
|
l("div", Kn, m(t.$t("weather.currents")), 1),
|
|
9486
9486
|
l("div", Xn, m((jt = (Et = (Nt = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Nt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + m((Wt = (Ut = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((Yt = (qt = (Zt = (Vt = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + m(t.$t("units.days")), 1),
|
|
9487
9487
|
l("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -9512,7 +9512,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9512
9512
|
"menu-toggle": o.menuToggle,
|
|
9513
9513
|
"active-weather-layers": a.activeWeatherLayers
|
|
9514
9514
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : M("", !0),
|
|
9515
|
-
o.map ? (b(), R(
|
|
9515
|
+
o.map ? (b(), R(L, B({
|
|
9516
9516
|
key: 3,
|
|
9517
9517
|
map: o.map,
|
|
9518
9518
|
"map-feather": o.mapFeather,
|
|
@@ -9540,7 +9540,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9540
9540
|
factor: (ce = a.weatherLayers) == null ? void 0 : ce["current-particle"],
|
|
9541
9541
|
"menu-toggle": o.menuToggle
|
|
9542
9542
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : M("", !0),
|
|
9543
|
-
o.map ? (b(), R(
|
|
9543
|
+
o.map ? (b(), R(H, B({
|
|
9544
9544
|
key: 7,
|
|
9545
9545
|
viewport: a.viewport,
|
|
9546
9546
|
factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
|
|
@@ -9916,19 +9916,19 @@ class Za {
|
|
|
9916
9916
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
9917
9917
|
for (const c of a) {
|
|
9918
9918
|
let n = to.find((p) => {
|
|
9919
|
-
var
|
|
9920
|
-
return ((
|
|
9921
|
-
}),
|
|
9922
|
-
var
|
|
9923
|
-
return ((
|
|
9919
|
+
var y, w, k;
|
|
9920
|
+
return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
|
|
9921
|
+
}), f = oo.find((p) => {
|
|
9922
|
+
var y, w, k;
|
|
9923
|
+
return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
|
|
9924
9924
|
});
|
|
9925
9925
|
n = n || to.find((p) => {
|
|
9926
|
-
var
|
|
9927
|
-
return ((
|
|
9928
|
-
}),
|
|
9929
|
-
var
|
|
9930
|
-
return ((
|
|
9931
|
-
}), n = n || to[0],
|
|
9926
|
+
var y, w;
|
|
9927
|
+
return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
|
|
9928
|
+
}), f = f || oo.find((p) => {
|
|
9929
|
+
var y, w;
|
|
9930
|
+
return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9931
|
+
}), n = n || to[0], f = f || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = f.models) != null && i.includes(c) ? c : f.model);
|
|
9932
9932
|
}
|
|
9933
9933
|
return {
|
|
9934
9934
|
weatherModels: r.join(","),
|
|
@@ -9945,8 +9945,8 @@ class Za {
|
|
|
9945
9945
|
}), a;
|
|
9946
9946
|
}
|
|
9947
9947
|
static pickHourly(e, o) {
|
|
9948
|
-
var i, a, r, s, c, n,
|
|
9949
|
-
const ge = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = 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 = (
|
|
9948
|
+
var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie;
|
|
9949
|
+
const ge = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = 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 = (f = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : f.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9950
9950
|
if (ge.isBetween(oe, le, "millisecond", "[]")) {
|
|
9951
9951
|
const E = ge.utc().diff(oe, "h", !1);
|
|
9952
9952
|
let ye, Me;
|
|
@@ -9955,13 +9955,13 @@ class Za {
|
|
|
9955
9955
|
for (const N of fe) {
|
|
9956
9956
|
const Y = N == null ? void 0 : N.hourly;
|
|
9957
9957
|
for (let Te = E - (E - 1) % 3; Te <= E; Te++)
|
|
9958
|
-
Be += (
|
|
9958
|
+
Be += (y = Y == null ? void 0 : Y.precipitation) == null ? void 0 : y.at(Te);
|
|
9959
9959
|
for (let Te = E - (E - 1) % 6; Te <= E; Te++)
|
|
9960
9960
|
Ne += (w = Y == null ? void 0 : Y.precipitation) == null ? void 0 : w.at(Te);
|
|
9961
9961
|
ye = {
|
|
9962
|
-
temp: (
|
|
9963
|
-
apparentTemp: (
|
|
9964
|
-
rh: (
|
|
9962
|
+
temp: (k = Y == null ? void 0 : Y.temperature_2m) == null ? void 0 : k.at(E),
|
|
9963
|
+
apparentTemp: (g = Y == null ? void 0 : Y.apparent_temperature) == null ? void 0 : g.at(E),
|
|
9964
|
+
rh: (z = Y == null ? void 0 : Y.relative_humidity_2m) == null ? void 0 : z.at(E),
|
|
9965
9965
|
dp: (T = Y == null ? void 0 : Y.dew_point_2m) == null ? void 0 : T.at(E),
|
|
9966
9966
|
precip: {
|
|
9967
9967
|
probability: (O = Y == null ? void 0 : Y.precipitation_probability) == null ? void 0 : O.at(E),
|
|
@@ -9971,12 +9971,12 @@ class Za {
|
|
|
9971
9971
|
},
|
|
9972
9972
|
pmsl: (P = Y == null ? void 0 : Y.pressure_msl) == null ? void 0 : P.at(E),
|
|
9973
9973
|
psurf: (_ = Y == null ? void 0 : Y.surface_pressure) == null ? void 0 : _.at(E),
|
|
9974
|
-
code: (
|
|
9974
|
+
code: (L = Y == null ? void 0 : Y.weather_code) == null ? void 0 : L.at(E),
|
|
9975
9975
|
visibility: this.m2nm((C = Y == null ? void 0 : Y.visibility) == null ? void 0 : C.at(E)),
|
|
9976
9976
|
wind: {
|
|
9977
9977
|
speed: (v = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : v.at(E),
|
|
9978
9978
|
kts: (A = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : A.at(E),
|
|
9979
|
-
degree: (
|
|
9979
|
+
degree: (H = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : H.at(E),
|
|
9980
9980
|
bearing: ((Z = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((q = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : q.at(E)) + 180) % 360 : null,
|
|
9981
9981
|
gusts: (V = Y == null ? void 0 : Y.wind_gusts_10m) == null ? void 0 : V.at(E)
|
|
9982
9982
|
},
|
|
@@ -10032,7 +10032,7 @@ class Za {
|
|
|
10032
10032
|
return Oe;
|
|
10033
10033
|
}
|
|
10034
10034
|
static toLegacy(e) {
|
|
10035
|
-
var o, i, a, r, s, c, n,
|
|
10035
|
+
var o, i, a, r, s, c, n, f, p, y;
|
|
10036
10036
|
return {
|
|
10037
10037
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
10038
10038
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -10042,9 +10042,9 @@ class Za {
|
|
|
10042
10042
|
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
10043
10043
|
},
|
|
10044
10044
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
10045
|
-
code: (
|
|
10045
|
+
code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
|
|
10046
10046
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
10047
|
-
url: (
|
|
10047
|
+
url: (y = e == null ? void 0 : e.weather) == null ? void 0 : y.url,
|
|
10048
10048
|
wave: e == null ? void 0 : e.wave,
|
|
10049
10049
|
current: e == null ? void 0 : e.current,
|
|
10050
10050
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -10054,7 +10054,7 @@ class Za {
|
|
|
10054
10054
|
};
|
|
10055
10055
|
}
|
|
10056
10056
|
static pickDaily(e, o) {
|
|
10057
|
-
var i, a, r, s, c, n,
|
|
10057
|
+
var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De;
|
|
10058
10058
|
const Re = typeof o == "string" ? D(o) : o, _e = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, te = D((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = D((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 = [];
|
|
10059
10059
|
if (Re.isBetween(te, Fe, "millisecond", "[]")) {
|
|
10060
10060
|
let ge, fe;
|
|
@@ -10063,18 +10063,18 @@ class Za {
|
|
|
10063
10063
|
for (const Ce of _e) {
|
|
10064
10064
|
const oe = Ce.daily;
|
|
10065
10065
|
ge = {
|
|
10066
|
-
code: (
|
|
10066
|
+
code: (f = oe.weather_code) == null ? void 0 : f.at(G),
|
|
10067
10067
|
temp: {
|
|
10068
10068
|
max: (p = oe.temperature_2m_max) == null ? void 0 : p.at(G),
|
|
10069
|
-
min: (
|
|
10069
|
+
min: (y = oe.temperature_2m_min) == null ? void 0 : y.at(G),
|
|
10070
10070
|
mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(G)
|
|
10071
10071
|
},
|
|
10072
10072
|
apparentTemp: {
|
|
10073
|
-
max: (
|
|
10074
|
-
min: (
|
|
10073
|
+
max: (k = oe.apparent_temperature_max) == null ? void 0 : k.at(G),
|
|
10074
|
+
min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(G)
|
|
10075
10075
|
},
|
|
10076
10076
|
precip: {
|
|
10077
|
-
sum: (
|
|
10077
|
+
sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(G),
|
|
10078
10078
|
rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(G),
|
|
10079
10079
|
snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(G),
|
|
10080
10080
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(G),
|
|
@@ -10082,13 +10082,13 @@ class Za {
|
|
|
10082
10082
|
probability: (_ = oe.precipitation_probability_max) == null ? void 0 : _.at(G)
|
|
10083
10083
|
},
|
|
10084
10084
|
rh: {
|
|
10085
|
-
max: (
|
|
10085
|
+
max: (L = oe.relative_humidity_2m_max) == null ? void 0 : L.at(G),
|
|
10086
10086
|
min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(G),
|
|
10087
10087
|
mean: (v = oe.relative_humidity_2m_mean) == null ? void 0 : v.at(G)
|
|
10088
10088
|
},
|
|
10089
10089
|
wind: {
|
|
10090
10090
|
speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(G),
|
|
10091
|
-
kts: (
|
|
10091
|
+
kts: (H = oe.wind_speed_10m_max) == null ? void 0 : H.at(G),
|
|
10092
10092
|
degree: (Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(G),
|
|
10093
10093
|
gusts: (q = oe.wind_gusts_10m_max) == null ? void 0 : q.at(G),
|
|
10094
10094
|
bearing: ((V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(G)) !== null ? (((Q = oe.wind_direction_10m_dominant) == null ? void 0 : Q.at(G)) + 180) % 360 : null
|
|
@@ -10540,6 +10540,9 @@ const tc = {
|
|
|
10540
10540
|
permission: {
|
|
10541
10541
|
type: Number
|
|
10542
10542
|
},
|
|
10543
|
+
locale: {
|
|
10544
|
+
type: String
|
|
10545
|
+
},
|
|
10543
10546
|
map: {
|
|
10544
10547
|
type: Object
|
|
10545
10548
|
},
|
|
@@ -10603,9 +10606,9 @@ const tc = {
|
|
|
10603
10606
|
showTropicalsInfo: !1,
|
|
10604
10607
|
activeTropicals: void 0,
|
|
10605
10608
|
activeTropicalsMarker: void 0,
|
|
10606
|
-
empty:
|
|
10609
|
+
empty: U.featureCollection([]),
|
|
10607
10610
|
circleSource: "circle-source",
|
|
10608
|
-
circleSourceData:
|
|
10611
|
+
circleSourceData: U.featureCollection([]),
|
|
10609
10612
|
circleLayer: "tropical-circle-layer",
|
|
10610
10613
|
showLegend: !1,
|
|
10611
10614
|
showHoverPoint: !1,
|
|
@@ -10725,18 +10728,18 @@ const tc = {
|
|
|
10725
10728
|
}
|
|
10726
10729
|
});
|
|
10727
10730
|
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
10728
|
-
const
|
|
10729
|
-
await Se.get(
|
|
10731
|
+
const f = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
|
|
10732
|
+
await Se.get(f.tropicals, {
|
|
10730
10733
|
headers: {
|
|
10731
10734
|
Authorization: this.token || this.defaultMeteoToken,
|
|
10732
10735
|
key: "tropicals"
|
|
10733
10736
|
},
|
|
10734
|
-
responseType: /\.(jpg|png)$/.test(
|
|
10737
|
+
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
10735
10738
|
}).then((p) => {
|
|
10736
|
-
var
|
|
10737
|
-
const
|
|
10738
|
-
((
|
|
10739
|
-
data:
|
|
10739
|
+
var k, g, z;
|
|
10740
|
+
const y = Va.convert2Geojson(((k = p == null ? void 0 : p.data) == null ? void 0 : k.data) || (p == null ? void 0 : p.data));
|
|
10741
|
+
((z = (g = p == null ? void 0 : p.config) == null ? void 0 : g.headers) == null ? void 0 : z.key) && y && (this.tropicals = {
|
|
10742
|
+
data: y,
|
|
10740
10743
|
active: !0,
|
|
10741
10744
|
cached: !0,
|
|
10742
10745
|
type: "json",
|
|
@@ -10753,47 +10756,47 @@ const tc = {
|
|
|
10753
10756
|
handleRefresh() {
|
|
10754
10757
|
var e, o;
|
|
10755
10758
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10756
|
-
var a, r, s, c, n,
|
|
10759
|
+
var a, r, s, c, n, f, p, y, w, k, g;
|
|
10757
10760
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10758
|
-
let
|
|
10761
|
+
let z = "";
|
|
10759
10762
|
switch (!0) {
|
|
10760
10763
|
case ((r = i.properties.wind) == null ? void 0 : r.kts) < 32:
|
|
10761
|
-
|
|
10764
|
+
z = "TD";
|
|
10762
10765
|
break;
|
|
10763
10766
|
case ((s = i.properties.wind) == null ? void 0 : s.kts) < 47:
|
|
10764
|
-
|
|
10767
|
+
z = "TS";
|
|
10765
10768
|
break;
|
|
10766
10769
|
case ((c = i.properties.wind) == null ? void 0 : c.kts) < 63:
|
|
10767
|
-
|
|
10770
|
+
z = "STS";
|
|
10768
10771
|
break;
|
|
10769
10772
|
case ((n = i.properties.wind) == null ? void 0 : n.kts) < 79:
|
|
10770
|
-
|
|
10773
|
+
z = "TY";
|
|
10771
10774
|
break;
|
|
10772
|
-
case ((
|
|
10773
|
-
|
|
10775
|
+
case ((f = i.properties.wind) == null ? void 0 : f.kts) < 94:
|
|
10776
|
+
z = "STY";
|
|
10774
10777
|
break;
|
|
10775
10778
|
case ((p = i.properties.wind) == null ? void 0 : p.kts) >= 94:
|
|
10776
|
-
|
|
10779
|
+
z = "Super TY";
|
|
10777
10780
|
break;
|
|
10778
10781
|
default:
|
|
10779
|
-
|
|
10782
|
+
z = "Super TY";
|
|
10780
10783
|
break;
|
|
10781
10784
|
}
|
|
10782
|
-
i.properties.level =
|
|
10785
|
+
i.properties.level = z;
|
|
10783
10786
|
}
|
|
10784
|
-
((
|
|
10787
|
+
((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (g = (k = D(i.properties.date)) == null ? void 0 : k.utcOffset(this.timeZone)) == null ? void 0 : g.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
10785
10788
|
}), this.handleInit();
|
|
10786
10789
|
},
|
|
10787
10790
|
handleInit() {
|
|
10788
|
-
var t, e, o, i, a, r, s, c, n,
|
|
10789
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (
|
|
10791
|
+
var t, e, o, i, a, r, s, c, n, f, p, y;
|
|
10792
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (y = (p = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : p.idmBottomBar) == null || y.handleToggle("tropical", !1);
|
|
10790
10793
|
},
|
|
10791
10794
|
handleRender() {
|
|
10792
|
-
var t, e, o, i, a, r, s, c, n,
|
|
10795
|
+
var t, e, o, i, a, r, s, c, n, f;
|
|
10793
10796
|
if (this.tropicals && this.map) {
|
|
10794
10797
|
const p = (/* @__PURE__ */ new Date()).valueOf();
|
|
10795
|
-
let
|
|
10796
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
10798
|
+
let y = 0, w = 0;
|
|
10799
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropicals] update elapsed: ", w, ", total: ", y += w)) : (this.map.addSource(this.source, {
|
|
10797
10800
|
type: "geojson",
|
|
10798
10801
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
10799
10802
|
}), this.map.addLayer({
|
|
@@ -10890,9 +10893,9 @@ const tc = {
|
|
|
10890
10893
|
],
|
|
10891
10894
|
"text-halo-width": 4
|
|
10892
10895
|
}
|
|
10893
|
-
}), w = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
10896
|
+
}), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", w, ", total: ", y += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] update elapsed: ", w, ", total: ", y += w)) : (this.map.addSource(this.clusterSource, {
|
|
10894
10897
|
type: "geojson",
|
|
10895
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
10898
|
+
data: (n = this.tropicals) != null && n.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
10896
10899
|
// cluster: true,
|
|
10897
10900
|
// clusterRadius: 10, // 聚合半径
|
|
10898
10901
|
}), this.map.addLayer({
|
|
@@ -10993,7 +10996,7 @@ const tc = {
|
|
|
10993
10996
|
source: this.clusterSource,
|
|
10994
10997
|
filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
|
|
10995
10998
|
layout: {
|
|
10996
|
-
"text-field": ["get", "name"],
|
|
10999
|
+
"text-field": ["get", this.locale === "en" ? "name" : "nameCn"],
|
|
10997
11000
|
"text-anchor": "bottom",
|
|
10998
11001
|
"text-size": 16,
|
|
10999
11002
|
"text-allow-overlap": !0,
|
|
@@ -11006,9 +11009,9 @@ const tc = {
|
|
|
11006
11009
|
"text-halo-color": "#ffffff",
|
|
11007
11010
|
"text-halo-width": 1
|
|
11008
11011
|
}
|
|
11009
|
-
}), w = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
11010
|
-
const
|
|
11011
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11012
|
+
}), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", w, ", total: ", y += w)), this.handleDrawCircle();
|
|
11013
|
+
const k = Va.interpolate(this.tropicals, 1);
|
|
11014
|
+
this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
|
|
11012
11015
|
}
|
|
11013
11016
|
},
|
|
11014
11017
|
handleClear() {
|
|
@@ -11016,9 +11019,9 @@ const tc = {
|
|
|
11016
11019
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), 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.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11017
11020
|
},
|
|
11018
11021
|
handleDateChange() {
|
|
11019
|
-
var t, e, o, i, a, r, s, c, n,
|
|
11022
|
+
var t, e, o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J;
|
|
11020
11023
|
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) {
|
|
11021
|
-
const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne =
|
|
11024
|
+
const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne = U.featureCollection([...he]);
|
|
11022
11025
|
pe.forEach(($) => {
|
|
11023
11026
|
ne.features.push($);
|
|
11024
11027
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ne) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -11038,7 +11041,7 @@ const tc = {
|
|
|
11038
11041
|
for (const $ of he)
|
|
11039
11042
|
if (!$.properties.disabled) {
|
|
11040
11043
|
let ae = "#f44336";
|
|
11041
|
-
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((
|
|
11044
|
+
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((f = (n = $.properties) == null ? void 0 : n.wind) != null && f.kts) ? ae = "#03f869" : ((y = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (g = $.properties) == null ? void 0 : g.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = $.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((H = (A = $.properties) == null ? void 0 : A.wind) == null ? void 0 : H.kts) < 94 ? ae = "#f903d0" : ((q = (Z = $.properties) == null ? void 0 : Z.wind) == null ? void 0 : q.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
11042
11045
|
const ue = `<svg t="1719918955501"
|
|
11043
11046
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11044
11047
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11062,26 +11065,27 @@ const tc = {
|
|
|
11062
11065
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
|
|
11063
11066
|
},
|
|
11064
11067
|
handleClick(t) {
|
|
11065
|
-
var a, r, s, c, n,
|
|
11068
|
+
var a, r, s, c, n, f, p, y, w;
|
|
11066
11069
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11067
|
-
(
|
|
11068
|
-
var
|
|
11069
|
-
return
|
|
11070
|
+
(k) => {
|
|
11071
|
+
var g;
|
|
11072
|
+
return k.geometry.type === "LineString" && k.properties.type === "forecast" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
11070
11073
|
}
|
|
11071
11074
|
), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
11072
|
-
(
|
|
11073
|
-
var
|
|
11074
|
-
return
|
|
11075
|
+
(k) => {
|
|
11076
|
+
var g;
|
|
11077
|
+
return k.geometry.type === "LineString" && k.properties.type === "history" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
11075
11078
|
}
|
|
11076
11079
|
);
|
|
11077
11080
|
this.activeTropicals = {
|
|
11078
11081
|
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
+
nameCn: (f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn,
|
|
11083
|
+
forecasts: o.map((k) => k.properties),
|
|
11084
|
+
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
11085
|
+
showCircle: (w = (y = o[0]) == null ? void 0 : y.properties) == null ? void 0 : w.showCircle
|
|
11082
11086
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11083
|
-
const
|
|
11084
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(
|
|
11087
|
+
const k = document.getElementById("idm-tropical-gl4-info");
|
|
11088
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(k).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
11085
11089
|
});
|
|
11086
11090
|
},
|
|
11087
11091
|
handleCloseInfoMarker() {
|
|
@@ -11094,11 +11098,11 @@ const tc = {
|
|
|
11094
11098
|
var i, a, r, s, c, n;
|
|
11095
11099
|
t.disabled = !t.disabled;
|
|
11096
11100
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
11097
|
-
o.forEach((
|
|
11098
|
-
|
|
11099
|
-
}), this.interpolateData.forEach((
|
|
11100
|
-
|
|
11101
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(
|
|
11101
|
+
o.forEach((f) => {
|
|
11102
|
+
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11103
|
+
}), this.interpolateData.forEach((f) => {
|
|
11104
|
+
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11105
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(U.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(U.featureCollection(o)), this.handleDateChange();
|
|
11102
11106
|
},
|
|
11103
11107
|
handleStrikeProbability(t) {
|
|
11104
11108
|
this.$emit("tropicalProbability", t);
|
|
@@ -11157,22 +11161,22 @@ const tc = {
|
|
|
11157
11161
|
let n;
|
|
11158
11162
|
switch (s) {
|
|
11159
11163
|
case "ne":
|
|
11160
|
-
n =
|
|
11164
|
+
n = U.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11161
11165
|
break;
|
|
11162
11166
|
case "se":
|
|
11163
|
-
n =
|
|
11167
|
+
n = U.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11164
11168
|
break;
|
|
11165
11169
|
case "sw":
|
|
11166
|
-
n =
|
|
11170
|
+
n = U.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11167
11171
|
break;
|
|
11168
11172
|
case "nw":
|
|
11169
|
-
n =
|
|
11173
|
+
n = U.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11170
11174
|
break;
|
|
11171
11175
|
}
|
|
11172
11176
|
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
11173
11177
|
}
|
|
11174
|
-
const a =
|
|
11175
|
-
return
|
|
11178
|
+
const a = U.lineString(i);
|
|
11179
|
+
return U.lineToPolygon(a, { properties: o });
|
|
11176
11180
|
},
|
|
11177
11181
|
handleNotification(t) {
|
|
11178
11182
|
this.$emit("tropicalNotification", t);
|
|
@@ -11235,7 +11239,7 @@ const tc = {
|
|
|
11235
11239
|
class: "d-flex justify-start align-center"
|
|
11236
11240
|
}, Vc = { class: "text-label pr-1" }, Zc = { class: "d-flex justify-start align-center" }, qc = { class: "text-label pr-1" };
|
|
11237
11241
|
function Yc(t, e, o, i, a, r) {
|
|
11238
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"),
|
|
11242
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), f = x("VDivider"), p = x("VCardActions"), y = x("VCard"), w = x("v-card-title"), k = x("v-divider");
|
|
11239
11243
|
return b(), S("div", oc, [
|
|
11240
11244
|
l("div", {
|
|
11241
11245
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11245,8 +11249,8 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11245
11249
|
text: t.$t("tropical.tropicals"),
|
|
11246
11250
|
location: "left"
|
|
11247
11251
|
}, {
|
|
11248
|
-
activator: u(({ props:
|
|
11249
|
-
h(s, B(
|
|
11252
|
+
activator: u(({ props: g }) => [
|
|
11253
|
+
h(s, B(g, {
|
|
11250
11254
|
"min-width": "32",
|
|
11251
11255
|
width: "32",
|
|
11252
11256
|
height: "32",
|
|
@@ -11264,7 +11268,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11264
11268
|
}, 8, ["text"])
|
|
11265
11269
|
], 4),
|
|
11266
11270
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
|
|
11267
|
-
h(
|
|
11271
|
+
h(y, {
|
|
11268
11272
|
"min-width": "400",
|
|
11269
11273
|
elevation: "16",
|
|
11270
11274
|
"max-width": "500"
|
|
@@ -11272,11 +11276,11 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11272
11276
|
default: u(() => [
|
|
11273
11277
|
h(n, null, {
|
|
11274
11278
|
default: u(() => {
|
|
11275
|
-
var
|
|
11279
|
+
var g, z, T, O, I, P, _, L, C, v, A;
|
|
11276
11280
|
return [
|
|
11277
11281
|
l("div", ic, [
|
|
11278
|
-
l("span", rc, m((
|
|
11279
|
-
(
|
|
11282
|
+
l("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
|
|
11283
|
+
(O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (b(), S("span", lc, ", " + m((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.level), 1)) : M("", !0)
|
|
11280
11284
|
]),
|
|
11281
11285
|
h(s, {
|
|
11282
11286
|
icon: "",
|
|
@@ -11293,21 +11297,21 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11293
11297
|
}, 8, ["onClick"]),
|
|
11294
11298
|
l("div", sc, [
|
|
11295
11299
|
l("span", nc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11296
|
-
l("span", null, m(r.computeTime(((
|
|
11300
|
+
l("span", null, m(r.computeTime(((L = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : L.updated) || ((A = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((H) => !H.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
|
|
11297
11301
|
])
|
|
11298
11302
|
];
|
|
11299
11303
|
}),
|
|
11300
11304
|
_: 1
|
|
11301
11305
|
}),
|
|
11302
|
-
h(
|
|
11306
|
+
h(f),
|
|
11303
11307
|
h(n, { class: "text-body-1" }, {
|
|
11304
11308
|
default: u(() => {
|
|
11305
|
-
var
|
|
11309
|
+
var g, z, T, O, I, P, _, L, C;
|
|
11306
11310
|
return [
|
|
11307
11311
|
l("div", cc, [
|
|
11308
11312
|
l("div", mc, [
|
|
11309
11313
|
l("label", dc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11310
|
-
l("span", null, m(((
|
|
11314
|
+
l("span", null, m(((z = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
11311
11315
|
l("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
|
|
11312
11316
|
]),
|
|
11313
11317
|
l("div", hc, [
|
|
@@ -11322,7 +11326,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11322
11326
|
]),
|
|
11323
11327
|
l("div", yc, [
|
|
11324
11328
|
l("label", bc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11325
|
-
l("span", null, m(((
|
|
11329
|
+
l("span", null, m(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
11326
11330
|
])
|
|
11327
11331
|
]),
|
|
11328
11332
|
l("div", wc, [
|
|
@@ -11335,7 +11339,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11335
11339
|
color: v.disabled ? "" : "primary",
|
|
11336
11340
|
"min-width": 30,
|
|
11337
11341
|
class: He(["model text-none text-body-1 px-1", v.disabled ? "" : "btn-border-2"]),
|
|
11338
|
-
onClick: Ee((
|
|
11342
|
+
onClick: Ee((H) => r.handleForecastToggle(v), ["stop"])
|
|
11339
11343
|
}, {
|
|
11340
11344
|
default: u(() => [
|
|
11341
11345
|
j(m(v.model), 1)
|
|
@@ -11348,7 +11352,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11348
11352
|
}),
|
|
11349
11353
|
_: 1
|
|
11350
11354
|
}),
|
|
11351
|
-
h(
|
|
11355
|
+
h(f),
|
|
11352
11356
|
h(p, { class: "d-flex justify-space-between" }, {
|
|
11353
11357
|
default: u(() => [
|
|
11354
11358
|
h(s, {
|
|
@@ -11357,7 +11361,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11357
11361
|
variant: "text",
|
|
11358
11362
|
color: a.showLegend ? "primary" : "",
|
|
11359
11363
|
class: "text-none text-body-1",
|
|
11360
|
-
onClick: e[0] || (e[0] = Ee((
|
|
11364
|
+
onClick: e[0] || (e[0] = Ee((g) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11361
11365
|
}, {
|
|
11362
11366
|
prepend: u(() => e[5] || (e[5] = [
|
|
11363
11367
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
@@ -11373,7 +11377,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11373
11377
|
variant: "text",
|
|
11374
11378
|
density: "compact",
|
|
11375
11379
|
class: "text-none text-body-1",
|
|
11376
|
-
onClick: e[1] || (e[1] = Ee((
|
|
11380
|
+
onClick: e[1] || (e[1] = Ee((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11377
11381
|
}, {
|
|
11378
11382
|
default: u(() => [
|
|
11379
11383
|
j(m(t.$t("actions.notify")), 1)
|
|
@@ -11385,7 +11389,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11385
11389
|
density: "compact",
|
|
11386
11390
|
"append-icon": "mdi-chevron-right",
|
|
11387
11391
|
class: "text-none text-body-1",
|
|
11388
|
-
onClick: e[2] || (e[2] = Ee((
|
|
11392
|
+
onClick: e[2] || (e[2] = Ee((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11389
11393
|
}, {
|
|
11390
11394
|
default: u(() => [
|
|
11391
11395
|
j(m(t.$t("actions.viewReport")), 1)
|
|
@@ -11400,7 +11404,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11400
11404
|
_: 1
|
|
11401
11405
|
}),
|
|
11402
11406
|
l("div", kc, [
|
|
11403
|
-
We(h(
|
|
11407
|
+
We(h(y, { elevation: "16" }, {
|
|
11404
11408
|
default: u(() => [
|
|
11405
11409
|
h(n, null, {
|
|
11406
11410
|
default: u(() => [
|
|
@@ -11462,7 +11466,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11462
11466
|
])
|
|
11463
11467
|
])
|
|
11464
11468
|
])) : M("", !0),
|
|
11465
|
-
We(h(
|
|
11469
|
+
We(h(y, {
|
|
11466
11470
|
id: "tropicalHoverMarkerInfo",
|
|
11467
11471
|
elevation: "16",
|
|
11468
11472
|
"max-width": "280"
|
|
@@ -11470,27 +11474,27 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11470
11474
|
default: u(() => [
|
|
11471
11475
|
h(w, null, {
|
|
11472
11476
|
default: u(() => {
|
|
11473
|
-
var
|
|
11477
|
+
var g, z, T;
|
|
11474
11478
|
return [
|
|
11475
11479
|
l("div", Pc, [
|
|
11476
|
-
l("span", Cc, m((
|
|
11477
|
-
l("span", Tc, "[ " + m((
|
|
11480
|
+
l("span", Cc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (z = a.hoverPoint) == null ? void 0 : z.nameCn), 1),
|
|
11481
|
+
l("span", Tc, "[ " + m((T = a.hoverPoint) == null ? void 0 : T.level) + " ]", 1)
|
|
11478
11482
|
])
|
|
11479
11483
|
];
|
|
11480
11484
|
}),
|
|
11481
11485
|
_: 1
|
|
11482
11486
|
}),
|
|
11483
|
-
h(
|
|
11487
|
+
h(k),
|
|
11484
11488
|
h(n, { class: "text-body-1" }, {
|
|
11485
11489
|
default: u(() => {
|
|
11486
|
-
var
|
|
11490
|
+
var g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee;
|
|
11487
11491
|
return [
|
|
11488
11492
|
l("div", Sc, [
|
|
11489
11493
|
l("div", Ic, [
|
|
11490
11494
|
l("label", Mc, m(t.$t("tropical.updated")) + " : ", 1),
|
|
11491
|
-
l("span", null, m(r.computeTzTime((
|
|
11495
|
+
l("span", null, m(r.computeTzTime((g = a.hoverPoint) == null ? void 0 : g.date, o.timeZone)), 1)
|
|
11492
11496
|
]),
|
|
11493
|
-
((
|
|
11497
|
+
((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (b(), S("div", Ac, [
|
|
11494
11498
|
l("label", Dc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
11495
11499
|
l("span", null, m(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.date, o.timeZone)), 1)
|
|
11496
11500
|
])) : M("", !0),
|
|
@@ -11500,7 +11504,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11500
11504
|
])) : M("", !0),
|
|
11501
11505
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (b(), S("div", Bc, [
|
|
11502
11506
|
l("label", Nc, m(t.$t("weather.wind")) + " : ", 1),
|
|
11503
|
-
l("span", null, m(((
|
|
11507
|
+
l("span", null, m(((L = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : L.kts) ?? "-") + " kts", 1)
|
|
11504
11508
|
])) : M("", !0),
|
|
11505
11509
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "history" ? (b(), S("div", Ec, [
|
|
11506
11510
|
l("label", jc, m(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -11510,7 +11514,7 @@ function Yc(t, e, o, i, a, r) {
|
|
|
11510
11514
|
l("label", Hc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
11511
11515
|
l("span", null, m(((A = a.hoverPoint) == null ? void 0 : A.pressure) ?? "-") + " kPa", 1)
|
|
11512
11516
|
]),
|
|
11513
|
-
((
|
|
11517
|
+
((H = a.hoverPoint) == null ? void 0 : H.type) === "history" ? (b(), S("div", Uc, [
|
|
11514
11518
|
l("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11515
11519
|
l("span", null, m(((q = JSON.parse((Z = a.hoverPoint) == null ? void 0 : Z.movement)) == null ? void 0 : q.kts) ?? "-") + " kts", 1)
|
|
11516
11520
|
])) : M("", !0),
|
|
@@ -11621,8 +11625,9 @@ const Kc = {
|
|
|
11621
11625
|
},
|
|
11622
11626
|
dateTime: {
|
|
11623
11627
|
handler(t, e) {
|
|
11624
|
-
t
|
|
11625
|
-
}
|
|
11628
|
+
t && this.handleResetDateTime(this.dateTime);
|
|
11629
|
+
},
|
|
11630
|
+
immediate: !0
|
|
11626
11631
|
},
|
|
11627
11632
|
currentTimestamp: {
|
|
11628
11633
|
handler() {
|
|
@@ -11637,12 +11642,12 @@ const Kc = {
|
|
|
11637
11642
|
}
|
|
11638
11643
|
},
|
|
11639
11644
|
mounted() {
|
|
11640
|
-
this.
|
|
11645
|
+
this.timer = setInterval(() => {
|
|
11641
11646
|
this.currentRealTime = `${D.tz(D().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
11642
11647
|
}, 100);
|
|
11643
11648
|
},
|
|
11644
11649
|
unmounted() {
|
|
11645
|
-
clearInterval(this.timer);
|
|
11650
|
+
clearInterval(this.timer), this.handleCancelDate();
|
|
11646
11651
|
},
|
|
11647
11652
|
methods: {
|
|
11648
11653
|
handleReset() {
|
|
@@ -11699,7 +11704,7 @@ const Kc = {
|
|
|
11699
11704
|
style: { height: "56px" }
|
|
11700
11705
|
};
|
|
11701
11706
|
function em(t, e, o, i, a, r) {
|
|
11702
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"),
|
|
11707
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), f = x("VListItemTitle"), p = x("VListItem"), y = x("VList"), w = x("VCardText"), k = x("VCardActions"), g = x("VCard");
|
|
11703
11708
|
return b(), S("div", Xc, [
|
|
11704
11709
|
h(s, {
|
|
11705
11710
|
text: "",
|
|
@@ -11713,7 +11718,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11713
11718
|
]),
|
|
11714
11719
|
_: 1
|
|
11715
11720
|
}, 8, ["height", "width", "onClick"]),
|
|
11716
|
-
a.showDatePicker ? (b(), R(
|
|
11721
|
+
a.showDatePicker ? (b(), R(g, {
|
|
11717
11722
|
key: 0,
|
|
11718
11723
|
class: He(["card-box d-flex flex-column", o.position])
|
|
11719
11724
|
}, {
|
|
@@ -11723,7 +11728,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11723
11728
|
l("div", $c, [
|
|
11724
11729
|
h(c, {
|
|
11725
11730
|
modelValue: a.currentDate,
|
|
11726
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11731
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
|
|
11727
11732
|
min: a.dateRange[0],
|
|
11728
11733
|
max: a.dateRange[1],
|
|
11729
11734
|
"mode-icon": () => r.currentYear,
|
|
@@ -11741,24 +11746,24 @@ function em(t, e, o, i, a, r) {
|
|
|
11741
11746
|
}),
|
|
11742
11747
|
l("div", Jc, [
|
|
11743
11748
|
l("div", Qc, m(a.currentTime), 1),
|
|
11744
|
-
h(
|
|
11749
|
+
h(y, { class: "pa-0 flex-1-1-0" }, {
|
|
11745
11750
|
default: u(() => [
|
|
11746
|
-
(b(!0), S(be, null, we(r.hourOptions, (
|
|
11751
|
+
(b(!0), S(be, null, we(r.hourOptions, (z, T) => (b(), R(p, {
|
|
11747
11752
|
key: T,
|
|
11748
|
-
value:
|
|
11753
|
+
value: z,
|
|
11749
11754
|
color: "primary",
|
|
11750
|
-
active: a.currentTime ===
|
|
11755
|
+
active: a.currentTime === z,
|
|
11751
11756
|
rounded: "",
|
|
11752
11757
|
height: "26",
|
|
11753
11758
|
"min-height": "26"
|
|
11754
11759
|
}, {
|
|
11755
11760
|
default: u(() => [
|
|
11756
|
-
h(
|
|
11761
|
+
h(f, {
|
|
11757
11762
|
class: "text-body-2 text-center",
|
|
11758
|
-
onClick: (O) => a.currentTime =
|
|
11763
|
+
onClick: (O) => a.currentTime = z
|
|
11759
11764
|
}, {
|
|
11760
11765
|
default: u(() => [
|
|
11761
|
-
j(m(
|
|
11766
|
+
j(m(z), 1)
|
|
11762
11767
|
]),
|
|
11763
11768
|
_: 2
|
|
11764
11769
|
}, 1032, ["onClick"])
|
|
@@ -11773,7 +11778,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11773
11778
|
_: 1
|
|
11774
11779
|
}),
|
|
11775
11780
|
h(n),
|
|
11776
|
-
h(
|
|
11781
|
+
h(k, {
|
|
11777
11782
|
class: "justify-end pa-0 pr-4",
|
|
11778
11783
|
style: { height: "50px" }
|
|
11779
11784
|
}, {
|
|
@@ -12046,10 +12051,10 @@ const tm = {
|
|
|
12046
12051
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
12047
12052
|
},
|
|
12048
12053
|
initTableData(t) {
|
|
12049
|
-
var o, i, a, r, s, c, n,
|
|
12054
|
+
var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe;
|
|
12050
12055
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
12051
12056
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
12052
|
-
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((
|
|
12057
|
+
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((f = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((y = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : y.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (H = e == null ? void 0 : e.wave) == null ? void 0 : H.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
12053
12058
|
},
|
|
12054
12059
|
handleBind() {
|
|
12055
12060
|
var t, e;
|
|
@@ -12119,7 +12124,7 @@ const tm = {
|
|
|
12119
12124
|
"aria-hidden": "true"
|
|
12120
12125
|
}, vm = ["xlink:href"];
|
|
12121
12126
|
function _m(t, e, o, i, a, r) {
|
|
12122
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
12127
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), g = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"), I = x("VCard"), P = x("VIcon");
|
|
12123
12128
|
return b(), S("div", om, [
|
|
12124
12129
|
l("div", {
|
|
12125
12130
|
class: "menu-bar-box transition pa-1",
|
|
@@ -12174,7 +12179,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12174
12179
|
]),
|
|
12175
12180
|
_: 1
|
|
12176
12181
|
}),
|
|
12177
|
-
h(
|
|
12182
|
+
h(f),
|
|
12178
12183
|
h(O, { class: "text-body-1 py-1" }, {
|
|
12179
12184
|
default: u(() => [
|
|
12180
12185
|
h(T, {
|
|
@@ -12194,7 +12199,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12194
12199
|
]),
|
|
12195
12200
|
h(w, { class: "ma-0" }, {
|
|
12196
12201
|
default: u(() => [
|
|
12197
|
-
h(
|
|
12202
|
+
h(y, {
|
|
12198
12203
|
cols: "4",
|
|
12199
12204
|
class: "pa-0 d-flex"
|
|
12200
12205
|
}, {
|
|
@@ -12213,7 +12218,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12213
12218
|
_: 1,
|
|
12214
12219
|
__: [10]
|
|
12215
12220
|
}),
|
|
12216
|
-
h(
|
|
12221
|
+
h(y, {
|
|
12217
12222
|
cols: "6",
|
|
12218
12223
|
class: "pa-0 d-flex"
|
|
12219
12224
|
}, {
|
|
@@ -12233,7 +12238,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12233
12238
|
_: 1,
|
|
12234
12239
|
__: [11]
|
|
12235
12240
|
}),
|
|
12236
|
-
h(
|
|
12241
|
+
h(y, {
|
|
12237
12242
|
cols: "2",
|
|
12238
12243
|
class: "pa-0"
|
|
12239
12244
|
}, {
|
|
@@ -12269,7 +12274,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12269
12274
|
]),
|
|
12270
12275
|
h(w, { class: "ma-0" }, {
|
|
12271
12276
|
default: u(() => [
|
|
12272
|
-
h(
|
|
12277
|
+
h(y, {
|
|
12273
12278
|
cols: "4",
|
|
12274
12279
|
class: "pa-0 d-flex"
|
|
12275
12280
|
}, {
|
|
@@ -12291,7 +12296,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12291
12296
|
_: 1,
|
|
12292
12297
|
__: [12]
|
|
12293
12298
|
}),
|
|
12294
|
-
h(
|
|
12299
|
+
h(y, {
|
|
12295
12300
|
cols: "6",
|
|
12296
12301
|
class: "pa-0 d-flex"
|
|
12297
12302
|
}, {
|
|
@@ -12311,7 +12316,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12311
12316
|
_: 1,
|
|
12312
12317
|
__: [13]
|
|
12313
12318
|
}),
|
|
12314
|
-
h(
|
|
12319
|
+
h(y, {
|
|
12315
12320
|
cols: "2",
|
|
12316
12321
|
class: "pa-0"
|
|
12317
12322
|
}, {
|
|
@@ -12347,12 +12352,12 @@ function _m(t, e, o, i, a, r) {
|
|
|
12347
12352
|
]),
|
|
12348
12353
|
h(w, { class: "ma-0 mb-4" }, {
|
|
12349
12354
|
default: u(() => [
|
|
12350
|
-
h(
|
|
12355
|
+
h(y, {
|
|
12351
12356
|
cols: "12",
|
|
12352
12357
|
class: "pa-0"
|
|
12353
12358
|
}, {
|
|
12354
12359
|
default: u(() => [
|
|
12355
|
-
h(
|
|
12360
|
+
h(k, B({
|
|
12356
12361
|
"date-time": a.form.dateTime,
|
|
12357
12362
|
"time-zone": o.timeZone
|
|
12358
12363
|
}, t.$attrs, {
|
|
@@ -12374,12 +12379,12 @@ function _m(t, e, o, i, a, r) {
|
|
|
12374
12379
|
]),
|
|
12375
12380
|
h(w, { class: "ma-0 mb-2" }, {
|
|
12376
12381
|
default: u(() => [
|
|
12377
|
-
h(
|
|
12382
|
+
h(y, {
|
|
12378
12383
|
cols: "12",
|
|
12379
12384
|
class: "pa-0"
|
|
12380
12385
|
}, {
|
|
12381
12386
|
default: u(() => [
|
|
12382
|
-
h(
|
|
12387
|
+
h(g, {
|
|
12383
12388
|
modelValue: a.form.forecastModel,
|
|
12384
12389
|
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
12385
12390
|
class: "w-100",
|
|
@@ -12426,8 +12431,8 @@ function _m(t, e, o, i, a, r) {
|
|
|
12426
12431
|
]),
|
|
12427
12432
|
_: 1
|
|
12428
12433
|
}),
|
|
12429
|
-
h(
|
|
12430
|
-
h(
|
|
12434
|
+
h(f),
|
|
12435
|
+
h(z, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12431
12436
|
default: u(() => [
|
|
12432
12437
|
h(s, {
|
|
12433
12438
|
size: "small",
|
|
@@ -12498,12 +12503,12 @@ function _m(t, e, o, i, a, r) {
|
|
|
12498
12503
|
]),
|
|
12499
12504
|
_: 1
|
|
12500
12505
|
}),
|
|
12501
|
-
h(
|
|
12506
|
+
h(f),
|
|
12502
12507
|
h(O, { class: "text-body-1 ml-n8" }, {
|
|
12503
12508
|
default: u(() => [
|
|
12504
12509
|
h(w, null, {
|
|
12505
12510
|
default: u(() => [
|
|
12506
|
-
h(
|
|
12511
|
+
h(y, {
|
|
12507
12512
|
cols: "3",
|
|
12508
12513
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12509
12514
|
}, {
|
|
@@ -12512,7 +12517,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12512
12517
|
]),
|
|
12513
12518
|
_: 1
|
|
12514
12519
|
}),
|
|
12515
|
-
h(
|
|
12520
|
+
h(y, {
|
|
12516
12521
|
cols: "9",
|
|
12517
12522
|
class: "pa-2 px-0"
|
|
12518
12523
|
}, {
|
|
@@ -12529,7 +12534,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12529
12534
|
}),
|
|
12530
12535
|
h(w, null, {
|
|
12531
12536
|
default: u(() => [
|
|
12532
|
-
h(
|
|
12537
|
+
h(y, {
|
|
12533
12538
|
cols: "3",
|
|
12534
12539
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12535
12540
|
}, {
|
|
@@ -12539,7 +12544,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12539
12544
|
_: 1,
|
|
12540
12545
|
__: [18]
|
|
12541
12546
|
}),
|
|
12542
|
-
h(
|
|
12547
|
+
h(y, {
|
|
12543
12548
|
cols: "9",
|
|
12544
12549
|
class: "pa-2 px-0"
|
|
12545
12550
|
}, {
|
|
@@ -12556,7 +12561,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12556
12561
|
}),
|
|
12557
12562
|
h(w, null, {
|
|
12558
12563
|
default: u(() => [
|
|
12559
|
-
h(
|
|
12564
|
+
h(y, {
|
|
12560
12565
|
cols: "3",
|
|
12561
12566
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12562
12567
|
}, {
|
|
@@ -12565,7 +12570,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12565
12570
|
]),
|
|
12566
12571
|
_: 1
|
|
12567
12572
|
}),
|
|
12568
|
-
h(
|
|
12573
|
+
h(y, {
|
|
12569
12574
|
cols: "4",
|
|
12570
12575
|
class: "pa-2 px-0 text-left"
|
|
12571
12576
|
}, {
|
|
@@ -12574,7 +12579,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12574
12579
|
]),
|
|
12575
12580
|
_: 1
|
|
12576
12581
|
}),
|
|
12577
|
-
h(
|
|
12582
|
+
h(y, {
|
|
12578
12583
|
cols: "2",
|
|
12579
12584
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12580
12585
|
}, {
|
|
@@ -12583,7 +12588,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12583
12588
|
]),
|
|
12584
12589
|
_: 1
|
|
12585
12590
|
}),
|
|
12586
|
-
h(
|
|
12591
|
+
h(y, {
|
|
12587
12592
|
cols: "3",
|
|
12588
12593
|
class: "pa-2 px-0 text-left"
|
|
12589
12594
|
}, {
|
|
@@ -12597,7 +12602,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12597
12602
|
}),
|
|
12598
12603
|
h(w, null, {
|
|
12599
12604
|
default: u(() => [
|
|
12600
|
-
h(
|
|
12605
|
+
h(y, {
|
|
12601
12606
|
cols: "3",
|
|
12602
12607
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12603
12608
|
}, {
|
|
@@ -12606,7 +12611,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12606
12611
|
]),
|
|
12607
12612
|
_: 1
|
|
12608
12613
|
}),
|
|
12609
|
-
h(
|
|
12614
|
+
h(y, {
|
|
12610
12615
|
cols: "4",
|
|
12611
12616
|
class: "pa-2 px-0 text-left"
|
|
12612
12617
|
}, {
|
|
@@ -12615,7 +12620,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12615
12620
|
]),
|
|
12616
12621
|
_: 1
|
|
12617
12622
|
}),
|
|
12618
|
-
h(
|
|
12623
|
+
h(y, {
|
|
12619
12624
|
cols: "2",
|
|
12620
12625
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12621
12626
|
}, {
|
|
@@ -12624,7 +12629,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12624
12629
|
]),
|
|
12625
12630
|
_: 1
|
|
12626
12631
|
}),
|
|
12627
|
-
h(
|
|
12632
|
+
h(y, {
|
|
12628
12633
|
cols: "3",
|
|
12629
12634
|
class: "pa-2 px-0 text-left"
|
|
12630
12635
|
}, {
|
|
@@ -12638,7 +12643,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12638
12643
|
}),
|
|
12639
12644
|
h(w, null, {
|
|
12640
12645
|
default: u(() => [
|
|
12641
|
-
h(
|
|
12646
|
+
h(y, {
|
|
12642
12647
|
cols: "3",
|
|
12643
12648
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12644
12649
|
}, {
|
|
@@ -12647,7 +12652,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12647
12652
|
]),
|
|
12648
12653
|
_: 1
|
|
12649
12654
|
}),
|
|
12650
|
-
h(
|
|
12655
|
+
h(y, {
|
|
12651
12656
|
cols: "4",
|
|
12652
12657
|
class: "pa-2 px-0 text-left"
|
|
12653
12658
|
}, {
|
|
@@ -12656,7 +12661,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12656
12661
|
]),
|
|
12657
12662
|
_: 1
|
|
12658
12663
|
}),
|
|
12659
|
-
h(
|
|
12664
|
+
h(y, {
|
|
12660
12665
|
cols: "2",
|
|
12661
12666
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12662
12667
|
}, {
|
|
@@ -12665,7 +12670,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
12665
12670
|
]),
|
|
12666
12671
|
_: 1
|
|
12667
12672
|
}),
|
|
12668
|
-
h(
|
|
12673
|
+
h(y, {
|
|
12669
12674
|
cols: "3",
|
|
12670
12675
|
class: "pa-2 px-0 text-left"
|
|
12671
12676
|
}, {
|
|
@@ -12680,12 +12685,12 @@ function _m(t, e, o, i, a, r) {
|
|
|
12680
12685
|
]),
|
|
12681
12686
|
_: 1
|
|
12682
12687
|
}),
|
|
12683
|
-
h(
|
|
12684
|
-
h(
|
|
12688
|
+
h(f),
|
|
12689
|
+
h(z, { class: "d-flex justify-space-between align-center" }, {
|
|
12685
12690
|
default: u(() => [
|
|
12686
12691
|
o.followList.some((_) => {
|
|
12687
|
-
var
|
|
12688
|
-
return ((
|
|
12692
|
+
var L, C;
|
|
12693
|
+
return ((L = _ == null ? void 0 : _.coordinate) == null ? void 0 : L.lng) === a.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
12689
12694
|
}) ? (b(), R(s, {
|
|
12690
12695
|
key: 0,
|
|
12691
12696
|
class: "text-none text-body-1",
|
|
@@ -12805,7 +12810,7 @@ const zm = {
|
|
|
12805
12810
|
else {
|
|
12806
12811
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
|
|
12807
12812
|
let i = this.geojson.find((a) => !a.closed);
|
|
12808
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
12813
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
12809
12814
|
}
|
|
12810
12815
|
},
|
|
12811
12816
|
immediate: !0
|
|
@@ -12839,7 +12844,7 @@ const zm = {
|
|
|
12839
12844
|
}
|
|
12840
12845
|
},
|
|
12841
12846
|
handleDrag(t) {
|
|
12842
|
-
var o, i, a, r, s, c, n,
|
|
12847
|
+
var o, i, a, r, s, c, n, f, p, y;
|
|
12843
12848
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12844
12849
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12845
12850
|
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
@@ -12847,33 +12852,33 @@ const zm = {
|
|
|
12847
12852
|
var O;
|
|
12848
12853
|
return ((O = T._element) == null ? void 0 : O.id) === e;
|
|
12849
12854
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12850
|
-
let
|
|
12855
|
+
let g;
|
|
12851
12856
|
w.features.forEach((T, O) => {
|
|
12852
12857
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
12853
|
-
|
|
12858
|
+
g = O;
|
|
12854
12859
|
return;
|
|
12855
12860
|
}
|
|
12856
12861
|
});
|
|
12857
|
-
const
|
|
12862
|
+
const z = w.features.filter((T) => T.geometry.type === "Point");
|
|
12858
12863
|
this.handleTmpPointUpdate(
|
|
12859
12864
|
w,
|
|
12860
|
-
|
|
12861
|
-
{ lng: (
|
|
12862
|
-
|
|
12865
|
+
z[g - 1],
|
|
12866
|
+
{ lng: (f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, lat: (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat, properties: z[g].properties },
|
|
12867
|
+
g === z.length - 1 ? void 0 : z[g + 1]
|
|
12863
12868
|
);
|
|
12864
12869
|
}
|
|
12865
12870
|
},
|
|
12866
12871
|
handleDragEnd(t) {
|
|
12867
|
-
var o, i, a, r, s, c, n,
|
|
12872
|
+
var o, i, a, r, s, c, n, f, p, y;
|
|
12868
12873
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12869
12874
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12870
|
-
const w = this.geojson.filter((
|
|
12871
|
-
this.pointMarkers[w.id].filter((
|
|
12875
|
+
const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
|
|
12876
|
+
this.pointMarkers[w.id].filter((z) => {
|
|
12872
12877
|
var T;
|
|
12873
|
-
return ((T =
|
|
12878
|
+
return ((T = z._element) == null ? void 0 : T.id) === e;
|
|
12874
12879
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12875
|
-
const
|
|
12876
|
-
|
|
12880
|
+
const g = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
|
|
12881
|
+
g.geometry.coordinates = [(f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12877
12882
|
}
|
|
12878
12883
|
},
|
|
12879
12884
|
handleContextmenu(t) {
|
|
@@ -12882,9 +12887,9 @@ const zm = {
|
|
|
12882
12887
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
12883
12888
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12884
12889
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12885
|
-
if (c.length > 2 && c.filter((
|
|
12886
|
-
const
|
|
12887
|
-
|
|
12890
|
+
if (c.length > 2 && c.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12891
|
+
const f = document.createElement("div");
|
|
12892
|
+
f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12888
12893
|
}
|
|
12889
12894
|
}
|
|
12890
12895
|
},
|
|
@@ -12893,15 +12898,15 @@ const zm = {
|
|
|
12893
12898
|
(o = this.contextmenu) == null || o.remove();
|
|
12894
12899
|
const e = t.originalEvent.target.className;
|
|
12895
12900
|
if (e === "marker-close") {
|
|
12896
|
-
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
12897
|
-
|
|
12901
|
+
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((p) => p.id === n)[0];
|
|
12902
|
+
f && this.handleClear(f, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
|
|
12898
12903
|
} else if (e === "del-point") {
|
|
12899
|
-
const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
12900
|
-
|
|
12904
|
+
const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), f = this.geojson.filter((p) => p.id === n[0])[0];
|
|
12905
|
+
f.features = f.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(f);
|
|
12901
12906
|
} else if (e !== "marker-label" && this.toggle) {
|
|
12902
12907
|
let n = this.geojson.at(-1);
|
|
12903
|
-
n || (n =
|
|
12904
|
-
const
|
|
12908
|
+
n || (n = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
|
|
12909
|
+
const f = U.feature(
|
|
12905
12910
|
{
|
|
12906
12911
|
type: "Point",
|
|
12907
12912
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -12912,7 +12917,7 @@ const zm = {
|
|
|
12912
12917
|
sumLabel: "Start"
|
|
12913
12918
|
}
|
|
12914
12919
|
);
|
|
12915
|
-
n.features.push(
|
|
12920
|
+
n.features.push(f), this.handlePointUpdate(n);
|
|
12916
12921
|
}
|
|
12917
12922
|
},
|
|
12918
12923
|
handlePointUpdate(t) {
|
|
@@ -12921,36 +12926,36 @@ const zm = {
|
|
|
12921
12926
|
let o = 0;
|
|
12922
12927
|
const i = [];
|
|
12923
12928
|
for (let a = 1; a < e.length; a++) {
|
|
12924
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
12929
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, f, c.mode === "RL", 4), y = Ue.calculateBearing(n, f, c.mode === "RL", 2);
|
|
12925
12930
|
o = X.roundPrecision(o + p, 4);
|
|
12926
12931
|
let w;
|
|
12927
|
-
c.mode === "RL" ? w = X.convertToMonotonicLng([n,
|
|
12928
|
-
const
|
|
12929
|
-
|
|
12930
|
-
const
|
|
12931
|
-
|
|
12932
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, f]) : w = X.convertToMonotonicLng(Ue.interpolateCoordinates(n, f, 200));
|
|
12933
|
+
const k = U.lineString(w.map((z) => [z.lng, z.lat]));
|
|
12934
|
+
k.properties.dist = p, k.properties.bearing = y, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
|
|
12935
|
+
const g = e[a];
|
|
12936
|
+
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12932
12937
|
}
|
|
12933
12938
|
e.push(...i), t.total = o;
|
|
12934
12939
|
}
|
|
12935
12940
|
return this.handleRender(t), t;
|
|
12936
12941
|
},
|
|
12937
12942
|
handleTmpPointUpdate(t, e, o, i) {
|
|
12938
|
-
const a =
|
|
12943
|
+
const a = U.featureCollection([]);
|
|
12939
12944
|
let r, s;
|
|
12940
12945
|
if (e) {
|
|
12941
|
-
const n = e.properties,
|
|
12942
|
-
r = Ue.calculateDistance(
|
|
12943
|
-
let
|
|
12944
|
-
n.mode === "RL" ?
|
|
12945
|
-
const w =
|
|
12946
|
+
const n = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
|
|
12947
|
+
r = Ue.calculateDistance(f, p, n.mode === "RL", 4), s = Ue.calculateBearing(f, p, n.mode === "RL", 2);
|
|
12948
|
+
let y;
|
|
12949
|
+
n.mode === "RL" ? y = X.convertToMonotonicLng([f, p]) : y = X.convertToMonotonicLng(Ue.interpolateCoordinates(f, p, 200));
|
|
12950
|
+
const w = U.lineString(y.map((k) => [k.lng, k.lat]));
|
|
12946
12951
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12947
12952
|
}
|
|
12948
12953
|
if (i) {
|
|
12949
|
-
const n = o.properties,
|
|
12950
|
-
r = Ue.calculateDistance(
|
|
12951
|
-
let
|
|
12952
|
-
n.mode === "RL" ?
|
|
12953
|
-
const w =
|
|
12954
|
+
const n = o.properties, f = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12955
|
+
r = Ue.calculateDistance(f, p, n.mode === "RL", 4), s = Ue.calculateBearing(f, p, n.mode === "RL", 2);
|
|
12956
|
+
let y;
|
|
12957
|
+
n.mode === "RL" ? y = X.convertToMonotonicLng([f, p]) : y = X.convertToMonotonicLng(Ue.interpolateCoordinates(f, p, 200));
|
|
12958
|
+
const w = U.lineString(y.map((k) => [k.lng, k.lat]));
|
|
12954
12959
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12955
12960
|
}
|
|
12956
12961
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -13012,14 +13017,14 @@ const zm = {
|
|
|
13012
13017
|
handleMove(t) {
|
|
13013
13018
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
13014
13019
|
let e = this.geojson.at(-1);
|
|
13015
|
-
e || (e =
|
|
13020
|
+
e || (e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
13016
13021
|
const o = e.features.filter((i) => i.geometry.type === "Point");
|
|
13017
13022
|
o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
13018
13023
|
},
|
|
13019
13024
|
handleDblClick(t) {
|
|
13020
13025
|
t.preventDefault();
|
|
13021
13026
|
let e = this.geojson.at(-1);
|
|
13022
|
-
e.closed = !0, this.handleRender(e), e =
|
|
13027
|
+
e.closed = !0, this.handleRender(e), e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
13023
13028
|
},
|
|
13024
13029
|
handleRender(t) {
|
|
13025
13030
|
var e;
|
|
@@ -13082,21 +13087,21 @@ const zm = {
|
|
|
13082
13087
|
for (const c of s) {
|
|
13083
13088
|
const n = document.createElement("div");
|
|
13084
13089
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
13085
|
-
const
|
|
13086
|
-
|
|
13090
|
+
const f = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
13091
|
+
f.on("drag", this.handleDrag), f.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(f) : this.pointMarkers[t.id] = [f];
|
|
13087
13092
|
}
|
|
13088
13093
|
if (t.closed) {
|
|
13089
|
-
const c = s.at(-1),
|
|
13090
|
-
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
13094
|
+
const c = s.at(-1), f = t.features.filter((y) => y.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
13095
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
13091
13096
|
}
|
|
13092
13097
|
}
|
|
13093
13098
|
},
|
|
13094
13099
|
handleClear(t, e = !0) {
|
|
13095
|
-
var s, c, n,
|
|
13100
|
+
var s, c, n, f, p, y, w, k, g, z;
|
|
13096
13101
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
13097
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (
|
|
13102
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (y = this.closeMarkers[t.id]) == null || y.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
13098
13103
|
T == null || T.remove();
|
|
13099
|
-
}), this.pointMarkers[t.id] = [], (
|
|
13104
|
+
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
13100
13105
|
}
|
|
13101
13106
|
}
|
|
13102
13107
|
}, Lm = { class: "idm-gl4-measure" };
|
|
@@ -13210,6 +13215,13 @@ const Tm = {
|
|
|
13210
13215
|
t !== e && (this.$emit("timeZone", this.timeZone), localStorage.setItem("idm-timeZone-gl4", this.timeZone), this.showTimezone = !1);
|
|
13211
13216
|
},
|
|
13212
13217
|
immediate: !0
|
|
13218
|
+
},
|
|
13219
|
+
show: {
|
|
13220
|
+
handler() {
|
|
13221
|
+
var t;
|
|
13222
|
+
Object.values(this.show).includes(!0) || (t = this.$refs.dateTimePicker) == null || t.handleCancelDate();
|
|
13223
|
+
},
|
|
13224
|
+
deep: !0
|
|
13213
13225
|
}
|
|
13214
13226
|
},
|
|
13215
13227
|
mounted() {
|
|
@@ -13255,7 +13267,7 @@ const Tm = {
|
|
|
13255
13267
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13256
13268
|
}, Om = ["onClick"], Bm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Nm = { class: "text-body-1" };
|
|
13257
13269
|
function Em(t, e, o, i, a, r) {
|
|
13258
|
-
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"),
|
|
13270
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), f = x("VList"), p = x("VMenu"), y = x("VBtn"), w = x("VDivider"), k = x("VTooltip");
|
|
13259
13271
|
return b(), S("div", Sm, [
|
|
13260
13272
|
l("div", {
|
|
13261
13273
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -13269,11 +13281,11 @@ function Em(t, e, o, i, a, r) {
|
|
|
13269
13281
|
"day-about": a.dayAbout,
|
|
13270
13282
|
"interval-hour": a.intervalHour
|
|
13271
13283
|
}, t.$attrs, {
|
|
13272
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13273
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13274
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
13284
|
+
onCurrentTimestamp: e[0] || (e[0] = (g) => a.currentTimestamp = g),
|
|
13285
|
+
onCurrentRealTime: e[1] || (e[1] = (g) => a.currentRealTime = g),
|
|
13286
|
+
onTimestampRange: e[2] || (e[2] = (g) => a.timestampRange = g)
|
|
13275
13287
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13276
|
-
h(
|
|
13288
|
+
h(y, {
|
|
13277
13289
|
text: "",
|
|
13278
13290
|
height: "30",
|
|
13279
13291
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
@@ -13283,15 +13295,15 @@ function Em(t, e, o, i, a, r) {
|
|
|
13283
13295
|
j(m(a.intervalHour) + " h ", 1),
|
|
13284
13296
|
h(p, { activator: "parent" }, {
|
|
13285
13297
|
default: u(() => [
|
|
13286
|
-
h(
|
|
13298
|
+
h(f, { class: "pa-1" }, {
|
|
13287
13299
|
default: u(() => [
|
|
13288
|
-
(b(!0), S(be, null, we(a.intervalOptions, (
|
|
13289
|
-
key:
|
|
13290
|
-
value:
|
|
13291
|
-
variant: a.intervalHour ===
|
|
13300
|
+
(b(!0), S(be, null, we(a.intervalOptions, (g, z) => (b(), R(n, {
|
|
13301
|
+
key: z,
|
|
13302
|
+
value: g,
|
|
13303
|
+
variant: a.intervalHour === g ? "tonal" : "text",
|
|
13292
13304
|
color: "primary",
|
|
13293
13305
|
rounded: "",
|
|
13294
|
-
active: a.intervalHour ===
|
|
13306
|
+
active: a.intervalHour === g,
|
|
13295
13307
|
height: "30",
|
|
13296
13308
|
"min-height": "30",
|
|
13297
13309
|
"min-width": "30",
|
|
@@ -13299,10 +13311,10 @@ function Em(t, e, o, i, a, r) {
|
|
|
13299
13311
|
}, {
|
|
13300
13312
|
default: u(() => [
|
|
13301
13313
|
h(c, {
|
|
13302
|
-
onClick: (T) => a.intervalHour =
|
|
13314
|
+
onClick: (T) => a.intervalHour = g
|
|
13303
13315
|
}, {
|
|
13304
13316
|
default: u(() => [
|
|
13305
|
-
j(m(
|
|
13317
|
+
j(m(g) + "h", 1)
|
|
13306
13318
|
]),
|
|
13307
13319
|
_: 2
|
|
13308
13320
|
}, 1032, ["onClick"])
|
|
@@ -13325,7 +13337,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13325
13337
|
style: { height: "16px" }
|
|
13326
13338
|
}),
|
|
13327
13339
|
l("div", Mm, [
|
|
13328
|
-
h(
|
|
13340
|
+
h(y, {
|
|
13329
13341
|
icon: "",
|
|
13330
13342
|
size: "small",
|
|
13331
13343
|
density: "comfortable",
|
|
@@ -13338,7 +13350,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13338
13350
|
_: 1,
|
|
13339
13351
|
__: [9]
|
|
13340
13352
|
}, 8, ["onClick"]),
|
|
13341
|
-
h(
|
|
13353
|
+
h(y, {
|
|
13342
13354
|
icon: "",
|
|
13343
13355
|
size: "small",
|
|
13344
13356
|
density: "comfortable",
|
|
@@ -13351,7 +13363,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13351
13363
|
_: 1,
|
|
13352
13364
|
__: [10]
|
|
13353
13365
|
}, 8, ["onClick"]),
|
|
13354
|
-
a.paused ? (b(), R(
|
|
13366
|
+
a.paused ? (b(), R(y, {
|
|
13355
13367
|
key: 0,
|
|
13356
13368
|
icon: "",
|
|
13357
13369
|
size: "small",
|
|
@@ -13364,7 +13376,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13364
13376
|
])),
|
|
13365
13377
|
_: 1,
|
|
13366
13378
|
__: [11]
|
|
13367
|
-
}, 8, ["onClick"])) : (b(), R(
|
|
13379
|
+
}, 8, ["onClick"])) : (b(), R(y, {
|
|
13368
13380
|
key: 1,
|
|
13369
13381
|
icon: "",
|
|
13370
13382
|
size: "small",
|
|
@@ -13378,7 +13390,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13378
13390
|
_: 1,
|
|
13379
13391
|
__: [12]
|
|
13380
13392
|
}, 8, ["onClick"])),
|
|
13381
|
-
h(
|
|
13393
|
+
h(y, {
|
|
13382
13394
|
icon: "",
|
|
13383
13395
|
size: "small",
|
|
13384
13396
|
density: "comfortable",
|
|
@@ -13398,16 +13410,16 @@ function Em(t, e, o, i, a, r) {
|
|
|
13398
13410
|
style: { height: "16px" }
|
|
13399
13411
|
}),
|
|
13400
13412
|
l("div", Am, [
|
|
13401
|
-
h(
|
|
13413
|
+
h(k, {
|
|
13402
13414
|
text: t.$t("weather.windBarbs"),
|
|
13403
13415
|
location: "top"
|
|
13404
13416
|
}, {
|
|
13405
|
-
activator: u(({ props:
|
|
13406
|
-
var
|
|
13417
|
+
activator: u(({ props: g }) => {
|
|
13418
|
+
var z, T;
|
|
13407
13419
|
return [
|
|
13408
|
-
h(
|
|
13420
|
+
h(y, B(g, {
|
|
13409
13421
|
class: "pa-1 d-flex",
|
|
13410
|
-
color: (
|
|
13422
|
+
color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
|
|
13411
13423
|
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
13412
13424
|
height: "24",
|
|
13413
13425
|
width: "24",
|
|
@@ -13424,16 +13436,16 @@ function Em(t, e, o, i, a, r) {
|
|
|
13424
13436
|
}),
|
|
13425
13437
|
_: 1
|
|
13426
13438
|
}, 8, ["text"]),
|
|
13427
|
-
h(
|
|
13439
|
+
h(k, {
|
|
13428
13440
|
text: t.$t("weather.sigWaveHeight"),
|
|
13429
13441
|
location: "top"
|
|
13430
13442
|
}, {
|
|
13431
|
-
activator: u(({ props:
|
|
13432
|
-
var
|
|
13443
|
+
activator: u(({ props: g }) => {
|
|
13444
|
+
var z, T;
|
|
13433
13445
|
return [
|
|
13434
|
-
h(
|
|
13446
|
+
h(y, B(g, {
|
|
13435
13447
|
class: "pa-1 d-flex",
|
|
13436
|
-
color: (
|
|
13448
|
+
color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
|
|
13437
13449
|
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
13438
13450
|
height: "24",
|
|
13439
13451
|
width: "24",
|
|
@@ -13441,7 +13453,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13441
13453
|
onClick: e[4] || (e[4] = (O) => r.handleClickFastWeather("sig-wave-height"))
|
|
13442
13454
|
}), {
|
|
13443
13455
|
default: u(() => [
|
|
13444
|
-
l("i", B(
|
|
13456
|
+
l("i", B(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13445
13457
|
]),
|
|
13446
13458
|
_: 2
|
|
13447
13459
|
}, 1040, ["color", "variant"])
|
|
@@ -13449,16 +13461,16 @@ function Em(t, e, o, i, a, r) {
|
|
|
13449
13461
|
}),
|
|
13450
13462
|
_: 1
|
|
13451
13463
|
}, 8, ["text"]),
|
|
13452
|
-
h(
|
|
13464
|
+
h(k, {
|
|
13453
13465
|
text: t.$t("weather.currentDirection"),
|
|
13454
13466
|
location: "top"
|
|
13455
13467
|
}, {
|
|
13456
|
-
activator: u(({ props:
|
|
13457
|
-
var
|
|
13468
|
+
activator: u(({ props: g }) => {
|
|
13469
|
+
var z, T;
|
|
13458
13470
|
return [
|
|
13459
|
-
h(
|
|
13471
|
+
h(y, B(g, {
|
|
13460
13472
|
class: "pa-1 d-flex",
|
|
13461
|
-
color: (
|
|
13473
|
+
color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
|
|
13462
13474
|
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
13463
13475
|
height: "24",
|
|
13464
13476
|
width: "24",
|
|
@@ -13466,7 +13478,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13466
13478
|
onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("current-direction"))
|
|
13467
13479
|
}), {
|
|
13468
13480
|
default: u(() => [
|
|
13469
|
-
l("i", B(
|
|
13481
|
+
l("i", B(g, { class: "iconfont icon-Current" }), null, 16)
|
|
13470
13482
|
]),
|
|
13471
13483
|
_: 2
|
|
13472
13484
|
}, 1040, ["color", "variant"])
|
|
@@ -13474,12 +13486,12 @@ function Em(t, e, o, i, a, r) {
|
|
|
13474
13486
|
}),
|
|
13475
13487
|
_: 1
|
|
13476
13488
|
}, 8, ["text"]),
|
|
13477
|
-
h(
|
|
13489
|
+
h(k, {
|
|
13478
13490
|
text: t.$t("weather.weatherLayers"),
|
|
13479
13491
|
location: "top"
|
|
13480
13492
|
}, {
|
|
13481
|
-
activator: u(({ props:
|
|
13482
|
-
h(
|
|
13493
|
+
activator: u(({ props: g }) => [
|
|
13494
|
+
h(y, B(g, {
|
|
13483
13495
|
class: "pa-1 d-flex",
|
|
13484
13496
|
variant: "text",
|
|
13485
13497
|
height: "24",
|
|
@@ -13488,7 +13500,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
13488
13500
|
onClick: r.handleClickFastMore
|
|
13489
13501
|
}), {
|
|
13490
13502
|
default: u(() => [
|
|
13491
|
-
l("i", B(
|
|
13503
|
+
l("i", B(g, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13492
13504
|
]),
|
|
13493
13505
|
_: 2
|
|
13494
13506
|
}, 1040, ["onClick"])
|
|
@@ -13502,12 +13514,12 @@ function Em(t, e, o, i, a, r) {
|
|
|
13502
13514
|
style: { height: "16px" }
|
|
13503
13515
|
}),
|
|
13504
13516
|
l("div", Dm, [
|
|
13505
|
-
h(
|
|
13517
|
+
h(y, {
|
|
13506
13518
|
text: "",
|
|
13507
13519
|
height: "30",
|
|
13508
13520
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13509
13521
|
color: a.source === "GFS" ? "primary" : "",
|
|
13510
|
-
onClick: e[6] || (e[6] = (
|
|
13522
|
+
onClick: e[6] || (e[6] = (g) => a.source = "GFS")
|
|
13511
13523
|
}, {
|
|
13512
13524
|
default: u(() => e[15] || (e[15] = [
|
|
13513
13525
|
j("NOAA", -1)
|
|
@@ -13515,12 +13527,12 @@ function Em(t, e, o, i, a, r) {
|
|
|
13515
13527
|
_: 1,
|
|
13516
13528
|
__: [15]
|
|
13517
13529
|
}, 8, ["color"]),
|
|
13518
|
-
h(
|
|
13530
|
+
h(y, {
|
|
13519
13531
|
text: "",
|
|
13520
13532
|
height: "30",
|
|
13521
13533
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13522
13534
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
13523
|
-
onClick: e[7] || (e[7] = (
|
|
13535
|
+
onClick: e[7] || (e[7] = (g) => a.source = "ECMWF")
|
|
13524
13536
|
}, {
|
|
13525
13537
|
default: u(() => e[16] || (e[16] = [
|
|
13526
13538
|
j("ECMWF", -1)
|
|
@@ -13535,20 +13547,20 @@ function Em(t, e, o, i, a, r) {
|
|
|
13535
13547
|
style: ie({ right: a.right + "px" })
|
|
13536
13548
|
}, [
|
|
13537
13549
|
a.showTimezone ? (b(), S("div", Rm, [
|
|
13538
|
-
(b(!0), S(be, null, we(a.offsets, (
|
|
13539
|
-
key:
|
|
13550
|
+
(b(!0), S(be, null, we(a.offsets, (g) => (b(), S("div", {
|
|
13551
|
+
key: g,
|
|
13540
13552
|
class: "item rounded text-body-2 hover-active",
|
|
13541
|
-
onClick: (
|
|
13542
|
-
}, m(
|
|
13553
|
+
onClick: (z) => a.timeZone = g
|
|
13554
|
+
}, m(g < 0 ? g : "+" + g), 9, Om))), 128))
|
|
13543
13555
|
])) : M("", !0),
|
|
13544
13556
|
l("div", Bm, [
|
|
13545
|
-
h(
|
|
13557
|
+
h(y, {
|
|
13546
13558
|
text: "",
|
|
13547
13559
|
variant: "flat",
|
|
13548
13560
|
height: "28",
|
|
13549
13561
|
class: "pa-1 text-body-1",
|
|
13550
13562
|
color: "primary",
|
|
13551
|
-
onClick: e[8] || (e[8] = (
|
|
13563
|
+
onClick: e[8] || (e[8] = (g) => a.showTimezone = !a.showTimezone)
|
|
13552
13564
|
}, {
|
|
13553
13565
|
default: u(() => [
|
|
13554
13566
|
j(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -13624,7 +13636,7 @@ const jm = /* @__PURE__ */ K(Tm, [["render", Em]]), Fm = {
|
|
|
13624
13636
|
class: "map-gl4-home"
|
|
13625
13637
|
};
|
|
13626
13638
|
function Um(t, e, o, i, a, r) {
|
|
13627
|
-
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"),
|
|
13639
|
+
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), f = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
|
|
13628
13640
|
return b(), S("div", Hm, [
|
|
13629
13641
|
h(s, B({
|
|
13630
13642
|
ref: "idmOtherLayers",
|
|
@@ -13670,7 +13682,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
13670
13682
|
"forecast-model": o.forecastModel,
|
|
13671
13683
|
"map-feather": o.mapFeather
|
|
13672
13684
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13673
|
-
h(
|
|
13685
|
+
h(f, B({
|
|
13674
13686
|
map: o.map,
|
|
13675
13687
|
"map-feather": o.mapFeather
|
|
13676
13688
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
@@ -13682,7 +13694,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
13682
13694
|
"forecast-model": o.forecastModel,
|
|
13683
13695
|
"map-feather": o.mapFeather
|
|
13684
13696
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
13685
|
-
h(
|
|
13697
|
+
h(y, B({
|
|
13686
13698
|
ref: "idmBottomBar",
|
|
13687
13699
|
"forecast-model": o.forecastModel,
|
|
13688
13700
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -13699,7 +13711,7 @@ class Gm {
|
|
|
13699
13711
|
de(this, "hi");
|
|
13700
13712
|
de(this, "td");
|
|
13701
13713
|
de(this, "windy");
|
|
13702
|
-
var o, i, a, r, s, c, n,
|
|
13714
|
+
var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, I, P, _, L, C, v, A, H, Z, q, V, Q, ee, J, re, he, pe, ne, $, ae, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie, ge, fe, G, Ce, oe, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Jo, Qo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga;
|
|
13703
13715
|
this.i4 = {
|
|
13704
13716
|
source: {
|
|
13705
13717
|
type: "raster",
|
|
@@ -32294,15 +32306,15 @@ class Gm {
|
|
|
32294
32306
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
|
|
32295
32307
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
|
|
32296
32308
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
|
|
32297
|
-
(
|
|
32298
|
-
(
|
|
32299
|
-
(
|
|
32300
|
-
(
|
|
32309
|
+
(f = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : f.find((d) => d.id === "ice-area-line"),
|
|
32310
|
+
(y = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : y.find((d) => d.id === "loadlines-label"),
|
|
32311
|
+
(k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((d) => d.id === "loadlines-fill"),
|
|
32312
|
+
(z = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
|
|
32301
32313
|
(O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
|
|
32302
32314
|
(P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
|
|
32303
|
-
(
|
|
32315
|
+
(L = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),
|
|
32304
32316
|
(v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
|
|
32305
|
-
(
|
|
32317
|
+
(H = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : H.find((d) => d.id === "empty-layer-2"),
|
|
32306
32318
|
(q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : q.find((d) => d.id === "water-line-label"),
|
|
32307
32319
|
(Q = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Q.find((d) => d.id === "water-point-label"),
|
|
32308
32320
|
(J = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : J.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
@@ -32567,7 +32579,7 @@ const Vm = {
|
|
|
32567
32579
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
32568
32580
|
}
|
|
32569
32581
|
}
|
|
32570
|
-
}, Zm = { class: "mapbox-initial-gl4" }, qm = { class: "v-btn--variant-elevated rounded" }, Ym = { class: "zoom" }, Km = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-
|
|
32582
|
+
}, Zm = { class: "mapbox-initial-gl4" }, qm = { class: "v-btn--variant-elevated rounded" }, Ym = { class: "zoom" }, Km = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
|
|
32571
32583
|
function Xm(t, e, o, i, a, r) {
|
|
32572
32584
|
const s = x("VBtn");
|
|
32573
32585
|
return b(), S("div", Zm, [
|