@idmwx/idmui-gl4 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +810 -834
- package/dist/index.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var $a = (t, e, o) => e in t ? Qa(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var pe = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ae from "axios";
|
|
5
5
|
import { useTheme as De } from "vuetify";
|
|
6
|
-
import { openBlock as g, createElementBlock as S, resolveComponent as
|
|
6
|
+
import { openBlock as g, createElementBlock as S, resolveComponent as v, createBlock as A, normalizeClass as ge, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as R, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ye, vShow as Ze, mergeProps as j, normalizeStyle as ee, createStaticVNode as ei } from "vue";
|
|
7
7
|
import ze from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
9
|
import { LngLatHelper as q, TropicalHelper as Va, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
@@ -475,8 +475,8 @@ const pi = {
|
|
|
475
475
|
handleClick(t) {
|
|
476
476
|
var i, a;
|
|
477
477
|
const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((r) => {
|
|
478
|
-
var l,
|
|
479
|
-
return ((l = r.properties) == null ? void 0 : l.id) === ((
|
|
478
|
+
var l, m;
|
|
479
|
+
return ((l = r.properties) == null ? void 0 : l.id) === ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.id);
|
|
480
480
|
})[0];
|
|
481
481
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, this.simple || this.drawMarker([t.lngLat.lng, t.lngLat.lat]));
|
|
482
482
|
},
|
|
@@ -497,14 +497,14 @@ const pi = {
|
|
|
497
497
|
}
|
|
498
498
|
}, ui = ["innerHTML"];
|
|
499
499
|
function gi(t, e, o, i, a, r) {
|
|
500
|
-
const l =
|
|
501
|
-
return a.showMakerInfo ? (g(), A(
|
|
500
|
+
const l = v("VBtn"), m = v("v-card-text"), c = v("v-card");
|
|
501
|
+
return a.showMakerInfo ? (g(), A(c, {
|
|
502
502
|
key: 0,
|
|
503
|
-
class:
|
|
503
|
+
class: ge(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"]),
|
|
504
504
|
id: "idm-gl4-zone-info"
|
|
505
505
|
}, {
|
|
506
506
|
default: u(() => [
|
|
507
|
-
p(
|
|
507
|
+
p(m, null, {
|
|
508
508
|
default: u(() => {
|
|
509
509
|
var f;
|
|
510
510
|
return [
|
|
@@ -1385,18 +1385,18 @@ const yi = {
|
|
|
1385
1385
|
var o, i, a, r;
|
|
1386
1386
|
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? q.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
|
|
1387
1387
|
for (let l = 0; l < 4; l++) {
|
|
1388
|
-
let
|
|
1388
|
+
let m = {
|
|
1389
1389
|
index: l,
|
|
1390
1390
|
dateTimeList: [],
|
|
1391
1391
|
label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
|
|
1392
1392
|
startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1393
1393
|
dateTime: M().utcOffset(e).add(l, "days").format()
|
|
1394
1394
|
};
|
|
1395
|
-
for (let
|
|
1396
|
-
|
|
1397
|
-
M(
|
|
1395
|
+
for (let c = 0; c < 4; c++)
|
|
1396
|
+
m.dateTimeList.push(
|
|
1397
|
+
M(m.startTime).utcOffset(e).add(c * this.interval, "hours").utc().format()
|
|
1398
1398
|
);
|
|
1399
|
-
t.push(
|
|
1399
|
+
t.push(m);
|
|
1400
1400
|
}
|
|
1401
1401
|
return t;
|
|
1402
1402
|
},
|
|
@@ -1512,10 +1512,10 @@ const yi = {
|
|
|
1512
1512
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1513
1513
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1514
1514
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1515
|
-
var
|
|
1515
|
+
var m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe;
|
|
1516
1516
|
let r = {};
|
|
1517
|
-
const l = ((
|
|
1518
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (
|
|
1517
|
+
const l = ((m = To.pickHourly(t, M(i))) == null ? void 0 : m[0]) || {};
|
|
1518
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = l == null ? void 0 : l.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (D = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : D.direction, r.windLevel = this.computeRoundPrecision((L = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((I = (z = l == null ? void 0 : l.wave) == null ? void 0 : z.sig) == null ? void 0 : I.height, 1) ?? "-", r.sigwaveDir = (G = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : G.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (le = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((se = (ne = l == null ? void 0 : l.wave) == null ? void 0 : ne.wd) == null ? void 0 : se.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((O = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : O.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1519
1519
|
});
|
|
1520
1520
|
},
|
|
1521
1521
|
handleTide() {
|
|
@@ -1719,30 +1719,30 @@ const yi = {
|
|
|
1719
1719
|
width: "120"
|
|
1720
1720
|
}, fr = { class: "px-1 text-center" }, yr = { class: "px-1 text-center" }, br = { class: "px-1 text-center" };
|
|
1721
1721
|
function wr(t, e, o, i, a, r) {
|
|
1722
|
-
const l =
|
|
1723
|
-
return g(), A(
|
|
1724
|
-
class:
|
|
1722
|
+
const l = v("VBtn"), m = v("VCardTitle"), c = v("VDivider"), f = v("VBtnToggle"), d = v("VCard");
|
|
1723
|
+
return g(), A(d, {
|
|
1724
|
+
class: ge(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1725
1725
|
}, {
|
|
1726
1726
|
default: u(() => {
|
|
1727
|
-
var
|
|
1727
|
+
var b, w, k;
|
|
1728
1728
|
return [
|
|
1729
|
-
p(
|
|
1729
|
+
p(m, { class: "w-100" }, {
|
|
1730
1730
|
default: u(() => {
|
|
1731
|
-
var y,
|
|
1731
|
+
var y, _, T, B, D, x;
|
|
1732
1732
|
return [
|
|
1733
1733
|
s("div", bi, [
|
|
1734
1734
|
s("div", wi, [
|
|
1735
1735
|
s("div", {
|
|
1736
|
-
class:
|
|
1736
|
+
class: ge(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (_ = o.port) == null ? void 0 : _.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1737
1737
|
style: { width: "36px", height: "24px" }
|
|
1738
1738
|
}, null, 2),
|
|
1739
|
-
s("div", null, n((
|
|
1739
|
+
s("div", null, n((B = o.port) == null ? void 0 : B.name), 1)
|
|
1740
1740
|
]),
|
|
1741
1741
|
o.simple ? (g(), S("div", xi, [
|
|
1742
|
-
(
|
|
1743
|
-
var
|
|
1744
|
-
return ((
|
|
1745
|
-
}) ? (g(), A(
|
|
1742
|
+
(D = o.followList) != null && D.some((L) => {
|
|
1743
|
+
var P;
|
|
1744
|
+
return ((P = L.port) == null ? void 0 : P.id) === o.portId;
|
|
1745
|
+
}) ? (g(), A(l, {
|
|
1746
1746
|
key: 0,
|
|
1747
1747
|
class: "text-none rounded-circle",
|
|
1748
1748
|
variant: "text",
|
|
@@ -1752,15 +1752,12 @@ function wr(t, e, o, i, a, r) {
|
|
|
1752
1752
|
"min-width": "28",
|
|
1753
1753
|
onClick: r.handleCancelFollow
|
|
1754
1754
|
}, {
|
|
1755
|
-
default: u(() => [
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
]),
|
|
1762
|
-
_: 1
|
|
1763
|
-
}, 8, ["onClick"])) : (g(), A(c, {
|
|
1755
|
+
default: u(() => e[2] || (e[2] = [
|
|
1756
|
+
s("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
|
|
1757
|
+
])),
|
|
1758
|
+
_: 1,
|
|
1759
|
+
__: [2]
|
|
1760
|
+
}, 8, ["onClick"])) : (g(), A(l, {
|
|
1764
1761
|
key: 1,
|
|
1765
1762
|
class: "text-none rounded-circle",
|
|
1766
1763
|
variant: "text",
|
|
@@ -1770,47 +1767,45 @@ function wr(t, e, o, i, a, r) {
|
|
|
1770
1767
|
"min-width": "28",
|
|
1771
1768
|
onClick: r.handleFollow
|
|
1772
1769
|
}, {
|
|
1773
|
-
default: u(() => [
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
]),
|
|
1779
|
-
_: 1
|
|
1770
|
+
default: u(() => e[3] || (e[3] = [
|
|
1771
|
+
s("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
|
|
1772
|
+
])),
|
|
1773
|
+
_: 1,
|
|
1774
|
+
__: [3]
|
|
1780
1775
|
}, 8, ["onClick"])),
|
|
1781
|
-
p(
|
|
1776
|
+
p(l, {
|
|
1782
1777
|
icon: "",
|
|
1783
1778
|
density: "compact",
|
|
1784
1779
|
variant: "plain",
|
|
1785
1780
|
class: "mr-n2",
|
|
1786
1781
|
onClick: r.handleClose
|
|
1787
1782
|
}, {
|
|
1788
|
-
default: u(() => e[
|
|
1783
|
+
default: u(() => e[4] || (e[4] = [
|
|
1789
1784
|
s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
1790
1785
|
])),
|
|
1791
1786
|
_: 1,
|
|
1792
|
-
__: [
|
|
1787
|
+
__: [4]
|
|
1793
1788
|
}, 8, ["onClick"])
|
|
1794
1789
|
])) : (g(), S("div", vi, [
|
|
1795
|
-
p(
|
|
1790
|
+
p(l, {
|
|
1796
1791
|
icon: "",
|
|
1797
1792
|
density: "compact",
|
|
1798
1793
|
variant: "plain",
|
|
1799
1794
|
class: "mr-n2",
|
|
1800
1795
|
onClick: r.handleClose
|
|
1801
1796
|
}, {
|
|
1802
|
-
default: u(() => e[
|
|
1797
|
+
default: u(() => e[5] || (e[5] = [
|
|
1803
1798
|
s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
1804
1799
|
])),
|
|
1805
1800
|
_: 1,
|
|
1806
|
-
__: [
|
|
1801
|
+
__: [5]
|
|
1807
1802
|
}, 8, ["onClick"])
|
|
1808
1803
|
]))
|
|
1809
1804
|
]),
|
|
1810
1805
|
s("div", _i, [
|
|
1811
1806
|
s("div", null, n(t.$t("port.port")), 1),
|
|
1812
1807
|
s("div", null, [
|
|
1813
|
-
e[
|
|
1808
|
+
e[6] || (e[6] = s("label", null, "UN/LOCODE: ", -1)),
|
|
1814
1809
|
s("span", null, n((x = o.port) == null ? void 0 : x.cntLoCode), 1)
|
|
1815
1810
|
])
|
|
1816
1811
|
])
|
|
@@ -1818,42 +1813,43 @@ function wr(t, e, o, i, a, r) {
|
|
|
1818
1813
|
}),
|
|
1819
1814
|
_: 1
|
|
1820
1815
|
}),
|
|
1821
|
-
p(
|
|
1816
|
+
p(c, { class: "w-100" }),
|
|
1822
1817
|
o.simple ? R("", !0) : (g(), S("div", ki, [
|
|
1823
|
-
(
|
|
1824
|
-
var
|
|
1825
|
-
return ((
|
|
1826
|
-
}) ? (g(), A(
|
|
1818
|
+
(b = o.followList) != null && b.some((y) => {
|
|
1819
|
+
var _;
|
|
1820
|
+
return ((_ = y.port) == null ? void 0 : _.id) === o.portId;
|
|
1821
|
+
}) ? (g(), A(l, {
|
|
1827
1822
|
key: 0,
|
|
1828
1823
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1829
1824
|
variant: "tonal",
|
|
1830
1825
|
density: "compact",
|
|
1831
1826
|
height: "32",
|
|
1832
|
-
"prepend-icon": "mdi-star",
|
|
1833
1827
|
onClick: r.handleCancelFollow
|
|
1834
1828
|
}, {
|
|
1835
|
-
prepend: u(() => [
|
|
1836
|
-
|
|
1837
|
-
]),
|
|
1829
|
+
prepend: u(() => e[7] || (e[7] = [
|
|
1830
|
+
s("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
1831
|
+
])),
|
|
1838
1832
|
default: u(() => [
|
|
1839
1833
|
K(" " + n(t.$t("actions.unfollow")), 1)
|
|
1840
1834
|
]),
|
|
1841
1835
|
_: 1
|
|
1842
|
-
}, 8, ["onClick"])) : (g(), A(
|
|
1836
|
+
}, 8, ["onClick"])) : (g(), A(l, {
|
|
1843
1837
|
key: 1,
|
|
1844
1838
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1845
1839
|
variant: "tonal",
|
|
1846
1840
|
density: "compact",
|
|
1847
1841
|
height: "32",
|
|
1848
|
-
"prepend-icon": "mdi-star-outline",
|
|
1849
1842
|
onClick: r.handleFollow
|
|
1850
1843
|
}, {
|
|
1844
|
+
prepend: u(() => e[8] || (e[8] = [
|
|
1845
|
+
s("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
1846
|
+
])),
|
|
1851
1847
|
default: u(() => [
|
|
1852
|
-
K(n(t.$t("actions.follow")), 1)
|
|
1848
|
+
K(n(t.$t("actions.follow")) + " ", 1)
|
|
1853
1849
|
]),
|
|
1854
1850
|
_: 1
|
|
1855
1851
|
}, 8, ["onClick"])),
|
|
1856
|
-
p(
|
|
1852
|
+
p(l, {
|
|
1857
1853
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1858
1854
|
variant: "tonal",
|
|
1859
1855
|
density: "compact",
|
|
@@ -1868,7 +1864,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1868
1864
|
])),
|
|
1869
1865
|
s("div", {
|
|
1870
1866
|
ref: "scrollDom",
|
|
1871
|
-
class:
|
|
1867
|
+
class: ge(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4", o.simple ? "px-3" : "px-5"])
|
|
1872
1868
|
}, [
|
|
1873
1869
|
s("div", zi, [
|
|
1874
1870
|
s("div", Li, [
|
|
@@ -1880,12 +1876,12 @@ function wr(t, e, o, i, a, r) {
|
|
|
1880
1876
|
])),
|
|
1881
1877
|
s("div", null, n(t.$t("detail.summary")), 1)
|
|
1882
1878
|
]),
|
|
1883
|
-
e[
|
|
1879
|
+
e[9] || (e[9] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1884
1880
|
]),
|
|
1885
1881
|
s("div", Si, [
|
|
1886
1882
|
s("div", Mi, [
|
|
1887
1883
|
s("div", Di, n(t.$t("port.region")), 1),
|
|
1888
|
-
s("div", Ii, n(((
|
|
1884
|
+
s("div", Ii, n(((w = o.port) == null ? void 0 : w.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
|
|
1889
1885
|
]),
|
|
1890
1886
|
s("div", Ri, [
|
|
1891
1887
|
s("div", Ai, n(t.$t("port.position")), 1),
|
|
@@ -1907,12 +1903,12 @@ function wr(t, e, o, i, a, r) {
|
|
|
1907
1903
|
])),
|
|
1908
1904
|
s("div", null, n(t.$t("weather.weather")), 1)
|
|
1909
1905
|
]),
|
|
1910
|
-
e[
|
|
1906
|
+
e[10] || (e[10] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1911
1907
|
]),
|
|
1912
1908
|
s("div", {
|
|
1913
|
-
class:
|
|
1909
|
+
class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
|
|
1914
1910
|
}, [
|
|
1915
|
-
p(
|
|
1911
|
+
p(f, {
|
|
1916
1912
|
modelValue: a.currentIndex,
|
|
1917
1913
|
"onUpdate:modelValue": e[0] || (e[0] = (y) => a.currentIndex = y),
|
|
1918
1914
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-2",
|
|
@@ -1923,7 +1919,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1923
1919
|
rounded: "1"
|
|
1924
1920
|
}, {
|
|
1925
1921
|
default: u(() => [
|
|
1926
|
-
(g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(
|
|
1922
|
+
(g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(l, {
|
|
1927
1923
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1928
1924
|
density: "compact",
|
|
1929
1925
|
color: "primary",
|
|
@@ -1991,14 +1987,14 @@ function wr(t, e, o, i, a, r) {
|
|
|
1991
1987
|
s("div", null, n(t.$t("tide.tideTimes")), 1)
|
|
1992
1988
|
]),
|
|
1993
1989
|
s("div", mr, [
|
|
1994
|
-
a.showTideDetail ? (g(), A(
|
|
1990
|
+
a.showTideDetail ? (g(), A(l, {
|
|
1995
1991
|
key: 0,
|
|
1996
1992
|
icon: "mdi-eye-off-outline",
|
|
1997
1993
|
density: "compact",
|
|
1998
1994
|
variant: "plain",
|
|
1999
1995
|
size: "small",
|
|
2000
1996
|
onClick: e[1] || (e[1] = (y) => a.showTideDetail = !1)
|
|
2001
|
-
})) : (g(), A(
|
|
1997
|
+
})) : (g(), A(l, {
|
|
2002
1998
|
key: 1,
|
|
2003
1999
|
icon: "mdi-eye-outline",
|
|
2004
2000
|
density: "compact",
|
|
@@ -2010,7 +2006,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2010
2006
|
]),
|
|
2011
2007
|
a.showTideDetail ? (g(), S("div", {
|
|
2012
2008
|
key: 0,
|
|
2013
|
-
class:
|
|
2009
|
+
class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
|
|
2014
2010
|
}, [
|
|
2015
2011
|
s("div", hr, null, 512),
|
|
2016
2012
|
s("table", dr, [
|
|
@@ -2020,10 +2016,10 @@ function wr(t, e, o, i, a, r) {
|
|
|
2020
2016
|
s("th", ur, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
2021
2017
|
s("th", gr, n(t.$t("tide.height")) + " ( m )", 1)
|
|
2022
2018
|
]),
|
|
2023
|
-
(g(!0), S(xe, null, ke(a.tideTableData, (y,
|
|
2024
|
-
var
|
|
2025
|
-
return g(), S("tr", { key:
|
|
2026
|
-
s("td", fr, n(t.$t(`tide.${(
|
|
2019
|
+
(g(!0), S(xe, null, ke(a.tideTableData, (y, _) => {
|
|
2020
|
+
var T;
|
|
2021
|
+
return g(), S("tr", { key: _ }, [
|
|
2022
|
+
s("td", fr, n(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
2027
2023
|
s("td", yr, n(r.computeLocalTime(y == null ? void 0 : y.date, o.port, "MM-DD HH:mm")), 1),
|
|
2028
2024
|
s("td", br, n((y == null ? void 0 : y.height) ?? "-") + " m", 1)
|
|
2029
2025
|
]);
|
|
@@ -2038,7 +2034,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2038
2034
|
_: 1
|
|
2039
2035
|
}, 8, ["class"]);
|
|
2040
2036
|
}
|
|
2041
|
-
const Do = /* @__PURE__ */ X(yi, [["render", wr], ["__scopeId", "data-v-
|
|
2037
|
+
const Do = /* @__PURE__ */ X(yi, [["render", wr], ["__scopeId", "data-v-1a7eeef1"]]);
|
|
2042
2038
|
const xr = {
|
|
2043
2039
|
name: "IdmPort",
|
|
2044
2040
|
components: {
|
|
@@ -2147,9 +2143,9 @@ const xr = {
|
|
|
2147
2143
|
}
|
|
2148
2144
|
}, vr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, _r = { class: "d-flex justify-start align-center text-label" }, kr = { class: "d-flex justify-start align-center text-label" };
|
|
2149
2145
|
function zr(t, e, o, i, a, r) {
|
|
2150
|
-
const l =
|
|
2146
|
+
const l = v("VCardText"), m = v("VCard"), c = v("PortDetail");
|
|
2151
2147
|
return g(), S("div", null, [
|
|
2152
|
-
Ye(p(
|
|
2148
|
+
Ye(p(m, {
|
|
2153
2149
|
id: "idmPortInfo",
|
|
2154
2150
|
ref: "idmPortInfo"
|
|
2155
2151
|
}, {
|
|
@@ -2174,7 +2170,7 @@ function zr(t, e, o, i, a, r) {
|
|
|
2174
2170
|
}, 512), [
|
|
2175
2171
|
[Ze, a.showInfo]
|
|
2176
2172
|
]),
|
|
2177
|
-
a.showDetail ? (g(), A(
|
|
2173
|
+
a.showDetail ? (g(), A(c, j({
|
|
2178
2174
|
key: 0,
|
|
2179
2175
|
portId: a.portId,
|
|
2180
2176
|
port: a.port,
|
|
@@ -2419,8 +2415,8 @@ const Cr = /* @__PURE__ */ X(Pr, [["render", Tr]]), Sr = {
|
|
|
2419
2415
|
type: "FeatureCollection"
|
|
2420
2416
|
};
|
|
2421
2417
|
a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
|
|
2422
|
-
const
|
|
2423
|
-
return
|
|
2418
|
+
const m = JSON.parse(JSON.stringify(l));
|
|
2419
|
+
return m.properties.offSet === t.features[0].properties.offSet ? (m.properties.opacity = 0.25, m.properties.lineOpacity = 0.7, m.properties.width = 2) : (m.properties.opacity = 0, m.properties.lineOpacity = 0.2, m.properties.width = 1), m;
|
|
2424
2420
|
}), (i = this.map.getSource(this.source)) == null || i.setData(a);
|
|
2425
2421
|
const r = document.createElement("div");
|
|
2426
2422
|
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
|
|
@@ -2873,16 +2869,16 @@ const Kr = {
|
|
|
2873
2869
|
var o, i, a, r;
|
|
2874
2870
|
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? q.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
2875
2871
|
for (let l = 0; l < 4; l++) {
|
|
2876
|
-
let
|
|
2872
|
+
let m = {
|
|
2877
2873
|
index: l,
|
|
2878
2874
|
dateTimeList: [],
|
|
2879
2875
|
label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
|
|
2880
2876
|
startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
2881
2877
|
dateTime: M().utcOffset(e).add(l, "days").format()
|
|
2882
2878
|
};
|
|
2883
|
-
for (let
|
|
2884
|
-
|
|
2885
|
-
t.push(
|
|
2879
|
+
for (let c = 0; c < 4; c++)
|
|
2880
|
+
m.dateTimeList.push(M(m.startTime).utcOffset(e).add(c * 3, "hours").utc().format());
|
|
2881
|
+
t.push(m);
|
|
2886
2882
|
}
|
|
2887
2883
|
return t;
|
|
2888
2884
|
},
|
|
@@ -3103,20 +3099,20 @@ const Kr = {
|
|
|
3103
3099
|
width: "120"
|
|
3104
3100
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Ts = { class: "px-1 text-center" };
|
|
3105
3101
|
function Cs(t, e, o, i, a, r) {
|
|
3106
|
-
const l =
|
|
3102
|
+
const l = v("VBtn"), m = v("v-card-title"), c = v("v-divider"), f = v("VBtnToggle"), d = v("v-card");
|
|
3107
3103
|
return g(), A(d, {
|
|
3108
|
-
class:
|
|
3104
|
+
class: ge(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
3109
3105
|
}, {
|
|
3110
3106
|
default: u(() => {
|
|
3111
|
-
var b,
|
|
3107
|
+
var b, w;
|
|
3112
3108
|
return [
|
|
3113
|
-
p(
|
|
3109
|
+
p(m, { class: "w-100" }, {
|
|
3114
3110
|
default: u(() => {
|
|
3115
|
-
var
|
|
3111
|
+
var k;
|
|
3116
3112
|
return [
|
|
3117
3113
|
s("div", Jr, [
|
|
3118
3114
|
s("div", Qr, [
|
|
3119
|
-
s("div", null, n((
|
|
3115
|
+
s("div", null, n((k = o.station) == null ? void 0 : k.name), 1)
|
|
3120
3116
|
]),
|
|
3121
3117
|
p(l, {
|
|
3122
3118
|
icon: "",
|
|
@@ -3139,9 +3135,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3139
3135
|
}),
|
|
3140
3136
|
_: 1
|
|
3141
3137
|
}),
|
|
3142
|
-
p(
|
|
3138
|
+
p(c, { class: "w-100" }),
|
|
3143
3139
|
s("div", {
|
|
3144
|
-
class:
|
|
3140
|
+
class: ge(["w-100 pt-0 pb-0 overflow-y-auto scroll", o.simple ? "px-3" : "px-5"])
|
|
3145
3141
|
}, [
|
|
3146
3142
|
s("div", es, [
|
|
3147
3143
|
s("div", ts, [
|
|
@@ -3157,7 +3153,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3157
3153
|
s("div", rs, [
|
|
3158
3154
|
s("div", ss, [
|
|
3159
3155
|
s("div", ls, n(t.$t("tide.region")), 1),
|
|
3160
|
-
s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((
|
|
3156
|
+
s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
3161
3157
|
]),
|
|
3162
3158
|
s("div", cs, [
|
|
3163
3159
|
s("div", ms, n(t.$t("tide.position")), 1),
|
|
@@ -3182,11 +3178,11 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3182
3178
|
e[2] || (e[2] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
3183
3179
|
]),
|
|
3184
3180
|
s("div", {
|
|
3185
|
-
class:
|
|
3181
|
+
class: ge(["w-100 gray-bg-2 rounded", o.simple ? "pa-2" : "pa-4"])
|
|
3186
3182
|
}, [
|
|
3187
3183
|
p(f, {
|
|
3188
3184
|
modelValue: a.currentIndex,
|
|
3189
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3185
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
|
|
3190
3186
|
class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3191
3187
|
density: "compact",
|
|
3192
3188
|
group: "",
|
|
@@ -3195,15 +3191,15 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3195
3191
|
rounded: "1"
|
|
3196
3192
|
}, {
|
|
3197
3193
|
default: u(() => [
|
|
3198
|
-
(g(!0), S(xe, null, ke(r.dateList, (
|
|
3194
|
+
(g(!0), S(xe, null, ke(r.dateList, (k) => (g(), A(l, {
|
|
3199
3195
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3200
3196
|
density: "compact",
|
|
3201
3197
|
color: "primary",
|
|
3202
3198
|
height: "26",
|
|
3203
|
-
value:
|
|
3199
|
+
value: k.index
|
|
3204
3200
|
}, {
|
|
3205
3201
|
default: u(() => [
|
|
3206
|
-
K(n(
|
|
3202
|
+
K(n(k.label), 1)
|
|
3207
3203
|
]),
|
|
3208
3204
|
_: 2
|
|
3209
3205
|
}, 1032, ["value"]))), 256))
|
|
@@ -3218,12 +3214,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3218
3214
|
s("th", ks, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
3219
3215
|
s("th", zs, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3220
3216
|
]),
|
|
3221
|
-
(g(!0), S(xe, null, ke(a.tideTableData, (
|
|
3222
|
-
var
|
|
3223
|
-
return g(), S("tr", { key:
|
|
3224
|
-
s("td", Ls, n(t.$t(`tide.${(
|
|
3225
|
-
s("td", Ps, n(r.computeLocalTime(
|
|
3226
|
-
s("td", Ts, n((
|
|
3217
|
+
(g(!0), S(xe, null, ke(a.tideTableData, (k, y) => {
|
|
3218
|
+
var _;
|
|
3219
|
+
return g(), S("tr", { key: y }, [
|
|
3220
|
+
s("td", Ls, n(t.$t(`tide.${(_ = k == null ? void 0 : k.type) == null ? void 0 : _.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3221
|
+
s("td", Ps, n(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
|
|
3222
|
+
s("td", Ts, n((k == null ? void 0 : k.height) ?? "-") + " m", 1)
|
|
3227
3223
|
]);
|
|
3228
3224
|
}), 128))
|
|
3229
3225
|
])
|
|
@@ -3314,9 +3310,9 @@ const Ms = {
|
|
|
3314
3310
|
}
|
|
3315
3311
|
}, Ds = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Is = { class: "d-flex justify-start align-center" }, Rs = { class: "d-flex justify-start align-center" }, As = { class: "text-label" };
|
|
3316
3312
|
function Os(t, e, o, i, a, r) {
|
|
3317
|
-
const l =
|
|
3313
|
+
const l = v("v-card-text"), m = v("v-card"), c = v("TideDetail");
|
|
3318
3314
|
return g(), S("div", null, [
|
|
3319
|
-
Ye(p(
|
|
3315
|
+
Ye(p(m, { id: "idmTidalInfo" }, {
|
|
3320
3316
|
default: u(() => [
|
|
3321
3317
|
p(l, { class: "pr-8 text-body-1" }, {
|
|
3322
3318
|
default: u(() => {
|
|
@@ -3337,7 +3333,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
3337
3333
|
}, 512), [
|
|
3338
3334
|
[Ze, a.showInfo]
|
|
3339
3335
|
]),
|
|
3340
|
-
a.showDetail ? (g(), A(
|
|
3336
|
+
a.showDetail ? (g(), A(c, j({
|
|
3341
3337
|
key: 0,
|
|
3342
3338
|
station: a.station,
|
|
3343
3339
|
onClose: r.handleCloseDetail
|
|
@@ -3558,15 +3554,15 @@ const Fs = {
|
|
|
3558
3554
|
}
|
|
3559
3555
|
};
|
|
3560
3556
|
function Hs(t, e, o, i, a, r) {
|
|
3561
|
-
var l,
|
|
3557
|
+
var l, m, c;
|
|
3562
3558
|
return o.simple ? R("", !0) : (g(), S("div", {
|
|
3563
3559
|
key: 0,
|
|
3564
3560
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3565
3561
|
style: ee({ right: a.right + "px" })
|
|
3566
3562
|
}, [
|
|
3567
3563
|
s("div", null, n((l = a.lngLat) == null ? void 0 : l.lat), 1),
|
|
3568
|
-
s("div", null, n((
|
|
3569
|
-
s("div", null, n((
|
|
3564
|
+
s("div", null, n((m = a.lngLat) == null ? void 0 : m.lng), 1),
|
|
3565
|
+
s("div", null, n((c = a.lngLat) == null ? void 0 : c.str), 1)
|
|
3570
3566
|
], 4));
|
|
3571
3567
|
}
|
|
3572
3568
|
const Xa = /* @__PURE__ */ X(Fs, [["render", Hs]]);
|
|
@@ -4481,9 +4477,9 @@ const Gs = {
|
|
|
4481
4477
|
}
|
|
4482
4478
|
}, Ws = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Us = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
|
|
4483
4479
|
function Ys(t, e, o, i, a, r) {
|
|
4484
|
-
const l =
|
|
4480
|
+
const l = v("v-card-text"), m = v("v-card"), c = v("PortDetail");
|
|
4485
4481
|
return g(), S("div", null, [
|
|
4486
|
-
Ye(p(
|
|
4482
|
+
Ye(p(m, {
|
|
4487
4483
|
id: "idmFollowPortInfo",
|
|
4488
4484
|
ref: "idmFollowPortInfo"
|
|
4489
4485
|
}, {
|
|
@@ -4508,7 +4504,7 @@ function Ys(t, e, o, i, a, r) {
|
|
|
4508
4504
|
}, 512), [
|
|
4509
4505
|
[Ze, a.showInfo]
|
|
4510
4506
|
]),
|
|
4511
|
-
a.showDetail ? (g(), A(
|
|
4507
|
+
a.showDetail ? (g(), A(c, j({
|
|
4512
4508
|
key: 0,
|
|
4513
4509
|
portId: a.portId,
|
|
4514
4510
|
port: a.port,
|
|
@@ -5405,19 +5401,19 @@ const Xs = {
|
|
|
5405
5401
|
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.off("click", [this.layer], this.handleClick), (e = this.map) == null || e.off("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.off("mouseleave", [this.layer], this.handleLeave);
|
|
5406
5402
|
},
|
|
5407
5403
|
handleClick(t) {
|
|
5408
|
-
var o, i, a, r, l,
|
|
5404
|
+
var o, i, a, r, l, m, c, f, d;
|
|
5409
5405
|
const e = t.features[0];
|
|
5410
5406
|
if (e.properties) {
|
|
5411
5407
|
const b = e.properties;
|
|
5412
5408
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5413
|
-
const
|
|
5409
|
+
const w = M(), k = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), y = {
|
|
5414
5410
|
followId: b.id,
|
|
5415
5411
|
lat: b.lat,
|
|
5416
5412
|
lng: b.lng,
|
|
5417
5413
|
datetime: this.realTime,
|
|
5418
5414
|
forecastModel: this.forecastModel
|
|
5419
5415
|
};
|
|
5420
|
-
|
|
5416
|
+
k >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(y) : (d = (f = (c = (m = this.$parent) == null ? void 0 : m.$parent) == null ? void 0 : c.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(y);
|
|
5421
5417
|
}
|
|
5422
5418
|
},
|
|
5423
5419
|
handleHover(t) {
|
|
@@ -5440,8 +5436,8 @@ const Xs = {
|
|
|
5440
5436
|
class: "d-flex justify-start align-center text-label"
|
|
5441
5437
|
};
|
|
5442
5438
|
function Qs(t, e, o, i, a, r) {
|
|
5443
|
-
const l =
|
|
5444
|
-
return Ye((g(), A(
|
|
5439
|
+
const l = v("v-card-text"), m = v("v-card");
|
|
5440
|
+
return Ye((g(), A(m, {
|
|
5445
5441
|
id: "idmFollowPositionInfo",
|
|
5446
5442
|
ref: "idmFollowPositionInfo"
|
|
5447
5443
|
}, {
|
|
@@ -5644,18 +5640,18 @@ const el = {
|
|
|
5644
5640
|
});
|
|
5645
5641
|
if (((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 0) {
|
|
5646
5642
|
const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, l = [];
|
|
5647
|
-
for (const
|
|
5643
|
+
for (const c in r)
|
|
5648
5644
|
l.push(
|
|
5649
|
-
Ae.get(r[
|
|
5645
|
+
Ae.get(r[c], {
|
|
5650
5646
|
headers: {
|
|
5651
5647
|
Authorization: this.defaultMeteoToken,
|
|
5652
|
-
key:
|
|
5648
|
+
key: c
|
|
5653
5649
|
}
|
|
5654
5650
|
})
|
|
5655
5651
|
);
|
|
5656
|
-
(await Promise.all(l)).map((
|
|
5657
|
-
var b,
|
|
5658
|
-
const f = ((b =
|
|
5652
|
+
(await Promise.all(l)).map((c) => {
|
|
5653
|
+
var b, w, k;
|
|
5654
|
+
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (k = (w = c == null ? void 0 : c.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
|
|
5659
5655
|
this.otherLayers[d] = f;
|
|
5660
5656
|
});
|
|
5661
5657
|
}
|
|
@@ -5694,13 +5690,13 @@ const el = {
|
|
|
5694
5690
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
5695
5691
|
function dl(t, e, o, i, a, r) {
|
|
5696
5692
|
var J, le, ne, se, ie, me, ue, he, de;
|
|
5697
|
-
const l =
|
|
5693
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"), w = v("VCard"), k = v("IdmLatLng"), y = v("IdmTerminator"), _ = v("IdmTimezone"), T = v("IdmPort"), B = v("IdmAlertZone"), D = v("IdmTideStations"), x = v("IdmEcaZone"), L = v("IdmWarZone"), P = v("IdmGmdssArea"), C = v("IdmLoadLine"), z = v("IdmWorldMarine"), I = v("IdmVRA"), F = v("IdmSpecialArea"), G = v("IdmWorld12nm"), Y = v("IdmChinaRoute"), Z = v("IdmIceAreas"), Q = v("IdmFollowPort"), $ = v("IdmFollowPosition");
|
|
5698
5694
|
return g(), S("div", tl, [
|
|
5699
5695
|
s("div", {
|
|
5700
|
-
class: "menu-bar-box transition px-1 rounded",
|
|
5696
|
+
class: ge(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
5701
5697
|
style: ee({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
|
|
5702
5698
|
}, [
|
|
5703
|
-
p(
|
|
5699
|
+
p(m, {
|
|
5704
5700
|
text: t.$t("layer.mapLayers"),
|
|
5705
5701
|
location: "left"
|
|
5706
5702
|
}, {
|
|
@@ -5721,9 +5717,9 @@ function dl(t, e, o, i, a, r) {
|
|
|
5721
5717
|
]),
|
|
5722
5718
|
_: 1
|
|
5723
5719
|
}, 8, ["text"])
|
|
5724
|
-
],
|
|
5720
|
+
], 6),
|
|
5725
5721
|
s("div", {
|
|
5726
|
-
class:
|
|
5722
|
+
class: ge(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
5727
5723
|
style: ee(r.listStyle)
|
|
5728
5724
|
}, [
|
|
5729
5725
|
s("div", ol, [
|
|
@@ -5743,14 +5739,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5743
5739
|
}, 8, ["onClick"])
|
|
5744
5740
|
]),
|
|
5745
5741
|
s("div", il, [
|
|
5746
|
-
p(
|
|
5742
|
+
p(w, {
|
|
5747
5743
|
class: "block-bg mx-auto mb-3",
|
|
5748
5744
|
elevation: "0"
|
|
5749
5745
|
}, {
|
|
5750
5746
|
default: u(() => [
|
|
5751
5747
|
p(f, { class: "border-b-thin" }, {
|
|
5752
5748
|
default: u(() => [
|
|
5753
|
-
p(
|
|
5749
|
+
p(c, {
|
|
5754
5750
|
class: "text-subtitle-1 font-weight-medium",
|
|
5755
5751
|
style: { "font-size": "16px !important" }
|
|
5756
5752
|
}, {
|
|
@@ -5771,7 +5767,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5771
5767
|
onClick: (te) => r.handleToggleMapFeather(O)
|
|
5772
5768
|
}, [
|
|
5773
5769
|
s("div", {
|
|
5774
|
-
class:
|
|
5770
|
+
class: ge([a.mapFeather === O.value ? "active" : "", "img-box"])
|
|
5775
5771
|
}, [
|
|
5776
5772
|
O.value === "dark" ? (g(), S("img", ll)) : O.value === "nautical" ? (g(), S("img", nl)) : O.value === "satellite" ? (g(), S("img", cl)) : (g(), S("img", ml))
|
|
5777
5773
|
], 2),
|
|
@@ -5796,14 +5792,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5796
5792
|
]),
|
|
5797
5793
|
_: 1
|
|
5798
5794
|
}),
|
|
5799
|
-
p(
|
|
5795
|
+
p(w, {
|
|
5800
5796
|
class: "block-bg mx-auto mb-3",
|
|
5801
5797
|
elevation: "0"
|
|
5802
5798
|
}, {
|
|
5803
5799
|
default: u(() => [
|
|
5804
5800
|
p(f, { class: "border-b-thin" }, {
|
|
5805
5801
|
default: u(() => [
|
|
5806
|
-
p(
|
|
5802
|
+
p(c, {
|
|
5807
5803
|
class: "text-subtitle-1 font-weight-medium",
|
|
5808
5804
|
style: { "font-size": "16px !important" }
|
|
5809
5805
|
}, {
|
|
@@ -5835,14 +5831,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5835
5831
|
]),
|
|
5836
5832
|
_: 1
|
|
5837
5833
|
}),
|
|
5838
|
-
p(
|
|
5834
|
+
p(w, {
|
|
5839
5835
|
class: "block-bg mx-auto mb-3",
|
|
5840
5836
|
elevation: "0"
|
|
5841
5837
|
}, {
|
|
5842
5838
|
default: u(() => [
|
|
5843
5839
|
p(f, { class: "border-b-thin" }, {
|
|
5844
5840
|
default: u(() => [
|
|
5845
|
-
p(
|
|
5841
|
+
p(c, {
|
|
5846
5842
|
class: "text-subtitle-1 font-weight-medium",
|
|
5847
5843
|
style: { "font-size": "16px !important" }
|
|
5848
5844
|
}, {
|
|
@@ -5874,14 +5870,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5874
5870
|
]),
|
|
5875
5871
|
_: 1
|
|
5876
5872
|
}),
|
|
5877
|
-
p(
|
|
5873
|
+
p(w, {
|
|
5878
5874
|
class: "block-bg mx-auto mb-3",
|
|
5879
5875
|
elevation: "0"
|
|
5880
5876
|
}, {
|
|
5881
5877
|
default: u(() => [
|
|
5882
5878
|
p(f, { class: "border-b-thin" }, {
|
|
5883
5879
|
default: u(() => [
|
|
5884
|
-
p(
|
|
5880
|
+
p(c, {
|
|
5885
5881
|
class: "text-subtitle-1 font-weight-medium",
|
|
5886
5882
|
style: { "font-size": "16px !important" }
|
|
5887
5883
|
}, {
|
|
@@ -5925,25 +5921,25 @@ function dl(t, e, o, i, a, r) {
|
|
|
5925
5921
|
})
|
|
5926
5922
|
])
|
|
5927
5923
|
], 6),
|
|
5928
|
-
o.map ? (g(), A(
|
|
5924
|
+
o.map ? (g(), A(k, j({
|
|
5929
5925
|
key: 0,
|
|
5930
5926
|
simple: o.simple,
|
|
5931
5927
|
map: o.map,
|
|
5932
5928
|
"menu-toggle": o.menuToggle,
|
|
5933
5929
|
show: a.checkList.includes("graticule")
|
|
5934
5930
|
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) : R("", !0),
|
|
5935
|
-
o.map ? (g(), A(
|
|
5931
|
+
o.map ? (g(), A(y, j({
|
|
5936
5932
|
key: 1,
|
|
5937
5933
|
map: o.map,
|
|
5938
5934
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
5939
5935
|
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5940
|
-
o.map ? (g(), A(
|
|
5936
|
+
o.map ? (g(), A(_, j({
|
|
5941
5937
|
key: 2,
|
|
5942
5938
|
map: o.map,
|
|
5943
5939
|
zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"],
|
|
5944
5940
|
realTime: o.realTime
|
|
5945
5941
|
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
|
|
5946
|
-
o.map ? (g(), A(
|
|
5942
|
+
o.map ? (g(), A(T, j({
|
|
5947
5943
|
key: 3,
|
|
5948
5944
|
ref: "idmPorts",
|
|
5949
5945
|
simple: o.simple,
|
|
@@ -5978,27 +5974,27 @@ function dl(t, e, o, i, a, r) {
|
|
|
5978
5974
|
forecastModel: o.forecastModel,
|
|
5979
5975
|
"before-layer": "empty-layer-3"
|
|
5980
5976
|
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
|
|
5981
|
-
o.map ? (g(), A(
|
|
5977
|
+
o.map ? (g(), A(x, j({
|
|
5982
5978
|
key: 6,
|
|
5983
5979
|
map: o.map,
|
|
5984
5980
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5985
5981
|
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5986
|
-
o.map ? (g(), A(
|
|
5982
|
+
o.map ? (g(), A(L, j({
|
|
5987
5983
|
key: 7,
|
|
5988
5984
|
map: o.map,
|
|
5989
5985
|
zone: (me = a.otherLayers) == null ? void 0 : me["war-zones"]
|
|
5990
5986
|
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5991
|
-
o.map ? (g(), A(
|
|
5987
|
+
o.map ? (g(), A(P, j({
|
|
5992
5988
|
key: 8,
|
|
5993
5989
|
map: o.map,
|
|
5994
5990
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5995
5991
|
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5996
|
-
o.map ? (g(), A(
|
|
5992
|
+
o.map ? (g(), A(C, j({
|
|
5997
5993
|
key: 9,
|
|
5998
5994
|
map: o.map,
|
|
5999
5995
|
show: a.checkList.includes("load-lines")
|
|
6000
5996
|
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
6001
|
-
o.map ? (g(), A(
|
|
5997
|
+
o.map ? (g(), A(z, j({
|
|
6002
5998
|
key: 10,
|
|
6003
5999
|
map: o.map,
|
|
6004
6000
|
token: o.token,
|
|
@@ -6100,12 +6096,12 @@ class Io {
|
|
|
6100
6096
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
6101
6097
|
*/
|
|
6102
6098
|
getBoundPixel() {
|
|
6103
|
-
var
|
|
6104
|
-
const e = (
|
|
6099
|
+
var y, _;
|
|
6100
|
+
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
6105
6101
|
if (!e)
|
|
6106
6102
|
return [];
|
|
6107
|
-
const o = ((
|
|
6108
|
-
return [b,
|
|
6103
|
+
const o = ((_ = this.map) == null ? void 0 : _.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([m, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
|
|
6104
|
+
return [b, w, f + k, d];
|
|
6109
6105
|
}
|
|
6110
6106
|
/**
|
|
6111
6107
|
* [视窗边界像素宽度]
|
|
@@ -6120,11 +6116,11 @@ class Io {
|
|
|
6120
6116
|
* @param zoom
|
|
6121
6117
|
*/
|
|
6122
6118
|
getWorldCopy(e, o) {
|
|
6123
|
-
const i = 2 ** o, [a, r, l,
|
|
6124
|
-
for (let d =
|
|
6119
|
+
const i = 2 ** o, [a, r, l, m] = e.map((d) => ~~(d / (i * 256))), c = [];
|
|
6120
|
+
for (let d = m; d <= r; d++)
|
|
6125
6121
|
for (let b = a; b <= l; b++)
|
|
6126
|
-
|
|
6127
|
-
return
|
|
6122
|
+
c.push([b, d]);
|
|
6123
|
+
return c.map((d) => {
|
|
6128
6124
|
const b = 2 ** o * 256;
|
|
6129
6125
|
return [d[0] * b, d[1] * b, b];
|
|
6130
6126
|
});
|
|
@@ -6169,9 +6165,9 @@ class Fe {
|
|
|
6169
6165
|
* @param width??
|
|
6170
6166
|
* @param height??
|
|
6171
6167
|
*/
|
|
6172
|
-
createTexture(e, o, i, a, r, l,
|
|
6173
|
-
const
|
|
6174
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
6168
|
+
createTexture(e, o, i, a, r, l, m) {
|
|
6169
|
+
const c = e.createTexture();
|
|
6170
|
+
return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, o), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, a), r instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, l, m, 0, e.RGBA, e.UNSIGNED_BYTE, r) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, r), e.bindTexture(e.TEXTURE_2D, null), c;
|
|
6175
6171
|
}
|
|
6176
6172
|
/**
|
|
6177
6173
|
* 创建数据资源
|
|
@@ -6209,13 +6205,13 @@ class Fe {
|
|
|
6209
6205
|
const a = this.createProgram(e, o, i);
|
|
6210
6206
|
if (a) {
|
|
6211
6207
|
const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
6212
|
-
for (let
|
|
6213
|
-
const f = e.getActiveAttrib(a,
|
|
6208
|
+
for (let c = 0; c < l; c++) {
|
|
6209
|
+
const f = e.getActiveAttrib(a, c);
|
|
6214
6210
|
r[f.name] = e.getAttribLocation(a, f.name);
|
|
6215
6211
|
}
|
|
6216
|
-
const
|
|
6217
|
-
for (let
|
|
6218
|
-
const f = e.getActiveUniform(a,
|
|
6212
|
+
const m = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
6213
|
+
for (let c = 0; c < m; c++) {
|
|
6214
|
+
const f = e.getActiveUniform(a, c);
|
|
6219
6215
|
r[f.name] = e.getUniformLocation(a, f.name);
|
|
6220
6216
|
}
|
|
6221
6217
|
return r;
|
|
@@ -6228,19 +6224,19 @@ class Fe {
|
|
|
6228
6224
|
setup(e, o, i = !1, a, r) {
|
|
6229
6225
|
const l = document.createElement("canvas");
|
|
6230
6226
|
l.width = 256, l.height = 1;
|
|
6231
|
-
const
|
|
6232
|
-
if (
|
|
6233
|
-
const
|
|
6227
|
+
const m = l.getContext("2d");
|
|
6228
|
+
if (m && e) {
|
|
6229
|
+
const c = m == null ? void 0 : m.createLinearGradient(0, 0, 256, 0);
|
|
6234
6230
|
return o.forEach(([f, d]) => {
|
|
6235
|
-
|
|
6236
|
-
}),
|
|
6231
|
+
c.addColorStop(f, d);
|
|
6232
|
+
}), m.fillStyle = c, m.fillRect(0, 0, 256, 1), {
|
|
6237
6233
|
canvas: l,
|
|
6238
6234
|
texture: this.createTexture(
|
|
6239
6235
|
e,
|
|
6240
6236
|
e.LINEAR,
|
|
6241
6237
|
e.LINEAR,
|
|
6242
6238
|
e.CLAMP_TO_EDGE,
|
|
6243
|
-
i ? new Uint8Array(
|
|
6239
|
+
i ? new Uint8Array(m.getImageData(0, 0, 256, 1).data) : l,
|
|
6244
6240
|
a,
|
|
6245
6241
|
r
|
|
6246
6242
|
)
|
|
@@ -6251,32 +6247,32 @@ class Fe {
|
|
|
6251
6247
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
6252
6248
|
for (let d = 0; d < r.length; d++)
|
|
6253
6249
|
r[d] = Math.floor(Math.random() * 256);
|
|
6254
|
-
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
6250
|
+
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), m = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = new Float32Array(a);
|
|
6255
6251
|
for (let d = 0; d < a; d++)
|
|
6256
|
-
|
|
6257
|
-
const f = this.createDataBuffer(e, "array",
|
|
6258
|
-
return { resolution: i, total: a, texture0: l, texture1:
|
|
6252
|
+
c[d] = d;
|
|
6253
|
+
const f = this.createDataBuffer(e, "array", c);
|
|
6254
|
+
return { resolution: i, total: a, texture0: l, texture1: m, indexBuffer: f };
|
|
6259
6255
|
}
|
|
6260
6256
|
bind(e, o, i) {
|
|
6261
6257
|
const a = this.createProgram(e, o, i);
|
|
6262
6258
|
if (a) {
|
|
6263
6259
|
const r = this.createDataBuffer(e, "array", void 0), l = e.getAttribLocation(a, "a_position");
|
|
6264
6260
|
e.enableVertexAttribArray(l), e.vertexAttribPointer(l, 2, e.FLOAT, !1, 0, 0);
|
|
6265
|
-
const
|
|
6266
|
-
this.createDataBuffer(e, "array",
|
|
6267
|
-
const
|
|
6268
|
-
return e.enableVertexAttribArray(
|
|
6261
|
+
const m = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
6262
|
+
this.createDataBuffer(e, "array", m);
|
|
6263
|
+
const c = e.getAttribLocation(a, "a_texCoord");
|
|
6264
|
+
return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
|
|
6269
6265
|
}
|
|
6270
6266
|
return {};
|
|
6271
6267
|
}
|
|
6272
6268
|
bindParticle(e, o, i, a, r, l) {
|
|
6273
|
-
const
|
|
6274
|
-
return { particle:
|
|
6269
|
+
const m = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, l), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
|
|
6270
|
+
return { particle: m, screen: c, update: f, quadBuffer: d, frameBuffer: b };
|
|
6275
6271
|
}
|
|
6276
|
-
draw(e, o, i, a, r, l,
|
|
6277
|
-
var
|
|
6272
|
+
draw(e, o, i, a, r, l, m) {
|
|
6273
|
+
var c, f;
|
|
6278
6274
|
if (o && i) {
|
|
6279
|
-
e.resize(), o == null || o.viewport(0, 0, (
|
|
6275
|
+
e.resize(), o == null || o.viewport(0, 0, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.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);
|
|
6280
6276
|
try {
|
|
6281
6277
|
o.useProgram(i);
|
|
6282
6278
|
const d = {
|
|
@@ -6287,11 +6283,11 @@ class Fe {
|
|
|
6287
6283
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
6288
6284
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6289
6285
|
};
|
|
6290
|
-
d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1),
|
|
6291
|
-
const b = e.getBoundPixel(),
|
|
6292
|
-
for (const
|
|
6293
|
-
const
|
|
6294
|
-
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER,
|
|
6286
|
+
d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1), m != null && m.uvRange && (m != null && m.sRange) && (d.uvRange && o.uniform2f(d.uvRange, m.uvRange[0], m.uvRange[1]), d.sRange && o.uniform2f(d.sRange, m.sRange[0], m.sRange[1])), d.scale && o.uniform1f(d.scale, (m == null ? void 0 : m.scale) || 1);
|
|
6287
|
+
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(b, w);
|
|
6288
|
+
for (const y of k) {
|
|
6289
|
+
const _ = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [D, x, L, P] = [_, B + _, T, B + T], C = new Float32Array([D, L, x, L, D, P, D, P, x, L, x, P]);
|
|
6290
|
+
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6295
6291
|
}
|
|
6296
6292
|
} catch (d) {
|
|
6297
6293
|
console.log(`render failed...${d}`);
|
|
@@ -6299,8 +6295,8 @@ class Fe {
|
|
|
6299
6295
|
}
|
|
6300
6296
|
}
|
|
6301
6297
|
drawParticle(e, o, i, a, r) {
|
|
6302
|
-
var l,
|
|
6303
|
-
o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.width, (
|
|
6298
|
+
var l, m;
|
|
6299
|
+
o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.width, (m = o == null ? void 0 : o.canvas) == null ? void 0 : m.height), o.disable(o.DEPTH_TEST), o.disable(o.STENCIL_TEST), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, i), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, a.texture0), this.renderScreen(e, o, a, r), this.updateParticles(e, o, a, r));
|
|
6304
6300
|
}
|
|
6305
6301
|
renderScreen(e, o, i, a) {
|
|
6306
6302
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.screenTexture, 0), o.viewport(0, 0, o.canvas.width, o.canvas.height), this.renderScreenTexture(o, i.backgroundTexture, i.screen, i.quadBuffer, 0.95), this.renderParticles(e, o, i, a), o.bindFramebuffer(o.FRAMEBUFFER, null), this.renderScreenTexture(o, i.screenTexture, i.screen, i.quadBuffer, 1);
|
|
@@ -6318,11 +6314,11 @@ class Fe {
|
|
|
6318
6314
|
}
|
|
6319
6315
|
}
|
|
6320
6316
|
updateParticles(e, o, i, a) {
|
|
6321
|
-
var l,
|
|
6317
|
+
var l, m;
|
|
6322
6318
|
if (o) {
|
|
6323
6319
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.texture1, 0), o.viewport(0, 0, i.resolution, i.resolution), o.useProgram(i.update.program), o.bindBuffer(o.ARRAY_BUFFER, i.quadBuffer), o.enableVertexAttribArray(i.update.a_pos), o.vertexAttribPointer(i.update.a_pos, 2, o.FLOAT, !1, 0, 0), o.uniform1i(i.update.u_factor, 0), o.uniform1i(i.update.u_particles, 1);
|
|
6324
|
-
const
|
|
6325
|
-
o.uniform4f(i.update.u_viewport,
|
|
6320
|
+
const c = e.getBoundRange();
|
|
6321
|
+
o.uniform4f(i.update.u_viewport, c[0], c[1], c[2], c[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (l = i == null ? void 0 : i.image) == null ? void 0 : l.width, (m = i == null ? void 0 : i.image) == null ? void 0 : m.height), o.uniform2f(i.update.u_factor_min, a.uvRange[0], a.uvRange[0]), o.uniform2f(i.update.u_factor_max, a.uvRange[1], a.uvRange[1]), o.uniform1f(i.update.u_speed_factor, a.speedFactor * e.ratio), o.uniform1f(i.update.u_drop_rate, a.dropRate), o.uniform1f(i.update.u_drop_rate_bump, a.dropRateBump), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6326
6322
|
}
|
|
6327
6323
|
const r = i.texture0;
|
|
6328
6324
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -6638,13 +6634,13 @@ const ul = {
|
|
|
6638
6634
|
else {
|
|
6639
6635
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
6640
6636
|
for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
|
|
6641
|
-
const
|
|
6637
|
+
const m = (this.barbs ?? [])[l] || 0, c = (this.barbs ?? [])[l + 1] || 0, f = m < 10 ? `00${m}kts` : m < 100 ? `0${m}kts` : `${m}kts`, d = new Image(48, 48);
|
|
6642
6638
|
d.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), d.onload = () => {
|
|
6643
6639
|
this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", d), this.map.addLayer(
|
|
6644
6640
|
{
|
|
6645
6641
|
id: f,
|
|
6646
6642
|
type: "symbol",
|
|
6647
|
-
filter: ["all", [">=", "spd",
|
|
6643
|
+
filter: ["all", [">=", "spd", m], ["<", "spd", c]],
|
|
6648
6644
|
source: this.source,
|
|
6649
6645
|
layout: {
|
|
6650
6646
|
"symbol-placement": "point",
|
|
@@ -6990,18 +6986,18 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
6990
6986
|
},
|
|
6991
6987
|
this.beforeLayer
|
|
6992
6988
|
);
|
|
6993
|
-
const l = new Image(48, 48),
|
|
6994
|
-
l.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6995
|
-
const
|
|
6989
|
+
const l = new Image(48, 48), m = '<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>';
|
|
6990
|
+
l.src = "data:image/svg+xml;base64," + window.btoa(m);
|
|
6991
|
+
const c = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6996
6992
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6997
6993
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6998
6994
|
</svg>`;
|
|
6999
|
-
|
|
7000
|
-
const d = [
|
|
6995
|
+
c.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
6996
|
+
const d = [c];
|
|
7001
6997
|
let b = 0;
|
|
7002
|
-
d.forEach((
|
|
7003
|
-
|
|
7004
|
-
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon",
|
|
6998
|
+
d.forEach((w) => {
|
|
6999
|
+
w.onload = () => {
|
|
7000
|
+
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", c), b === 1 && this.map.addLayer(
|
|
7005
7001
|
{
|
|
7006
7002
|
id: this.directionLayer,
|
|
7007
7003
|
type: "symbol",
|
|
@@ -7733,17 +7729,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7733
7729
|
"rgba(0, 0, 0, 0.7)",
|
|
7734
7730
|
1100,
|
|
7735
7731
|
"rgba(0, 0, 0, 0.7)"
|
|
7736
|
-
] :
|
|
7737
|
-
"step",
|
|
7738
|
-
["get", "val"],
|
|
7739
|
-
"rgba(162,13,2,1)",
|
|
7740
|
-
920,
|
|
7741
|
-
"rgba(255, 96, 98, 1)",
|
|
7742
|
-
980,
|
|
7743
|
-
"rgba(255, 246, 184, 1)",
|
|
7744
|
-
1100,
|
|
7745
|
-
"rgba(199,171,250,1)"
|
|
7746
|
-
],
|
|
7732
|
+
] : "rgba(0,0,0,1)",
|
|
7747
7733
|
"text-halo-color": [
|
|
7748
7734
|
"step",
|
|
7749
7735
|
["get", "val"],
|
|
@@ -7755,7 +7741,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7755
7741
|
1100,
|
|
7756
7742
|
"rgba(199,171,250,1)"
|
|
7757
7743
|
],
|
|
7758
|
-
"text-halo-width":
|
|
7744
|
+
"text-halo-width": 1
|
|
7759
7745
|
}
|
|
7760
7746
|
},
|
|
7761
7747
|
this.beforeLayer
|
|
@@ -8803,14 +8789,14 @@ const bn = {
|
|
|
8803
8789
|
},
|
|
8804
8790
|
checkList: {
|
|
8805
8791
|
handler(t, e) {
|
|
8806
|
-
var o, i, a, r, l,
|
|
8807
|
-
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (
|
|
8792
|
+
var o, i, a, r, l, m;
|
|
8793
|
+
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (m = (l = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : l.idmBottomBar) == null || m.handleToggle("weather", !1);
|
|
8808
8794
|
}
|
|
8809
8795
|
},
|
|
8810
8796
|
autoActive: {
|
|
8811
8797
|
handler(t) {
|
|
8812
8798
|
var e, o, i, a, r, l;
|
|
8813
|
-
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((
|
|
8799
|
+
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((m) => this.checkList.includes(m.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? (i = (o = (e = this.$parent) == null ? void 0 : e.$refs) == null ? void 0 : o.idmBottomBar) == null || i.handleToggle("weather", !0) : (l = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || l.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
|
|
8814
8800
|
}
|
|
8815
8801
|
},
|
|
8816
8802
|
iceToggleValue: {
|
|
@@ -8884,70 +8870,70 @@ const bn = {
|
|
|
8884
8870
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8885
8871
|
},
|
|
8886
8872
|
async fetchWeatherLayers(t = {}) {
|
|
8887
|
-
var a, r, l,
|
|
8873
|
+
var a, r, l, m, c, f, d, b, w;
|
|
8888
8874
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8889
8875
|
let o = 0, i = 0;
|
|
8890
8876
|
if (this.map) {
|
|
8891
|
-
const
|
|
8877
|
+
const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), _ = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8892
8878
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8893
|
-
const
|
|
8879
|
+
const T = Co.WEATHER_LAYERS.find((B) => {
|
|
8894
8880
|
var D;
|
|
8895
8881
|
return ((D = B.peer) == null ? void 0 : D.weight) === this.particleFactor.weight;
|
|
8896
8882
|
});
|
|
8897
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
8883
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
|
|
8898
8884
|
}
|
|
8899
8885
|
if (this.weatherWeight > 0) {
|
|
8900
|
-
let
|
|
8901
|
-
if (
|
|
8886
|
+
let T = this.weatherWeight;
|
|
8887
|
+
if (T > 0) {
|
|
8902
8888
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], D = await Ae.get(
|
|
8903
|
-
`${B}/api/arc/weather/layers2/links?l=${
|
|
8889
|
+
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${_}&t=${this.realTime}`,
|
|
8904
8890
|
{
|
|
8905
8891
|
headers: {
|
|
8906
8892
|
Authorization: this.defaultMeteoToken
|
|
8907
8893
|
}
|
|
8908
8894
|
}
|
|
8909
8895
|
);
|
|
8910
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
8911
|
-
const
|
|
8912
|
-
for (const
|
|
8913
|
-
|
|
8914
|
-
Ae.get(
|
|
8896
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m = D == null ? void 0 : D.data) == null ? void 0 : m.code) === 0) {
|
|
8897
|
+
const x = (c = D == null ? void 0 : D.data) == null ? void 0 : c.data, L = [];
|
|
8898
|
+
for (const C in x)
|
|
8899
|
+
L.push(
|
|
8900
|
+
Ae.get(x[C], {
|
|
8915
8901
|
headers: {
|
|
8916
8902
|
Authorization: this.defaultMeteoToken,
|
|
8917
|
-
key:
|
|
8903
|
+
key: C
|
|
8918
8904
|
},
|
|
8919
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8920
|
-
}).catch((
|
|
8921
|
-
console.log(`[${
|
|
8905
|
+
responseType: /\.(jpg|png)$/.test(x[C]) ? "blob" : "json"
|
|
8906
|
+
}).catch((z) => {
|
|
8907
|
+
console.log(`[${C}] fetch layer error: ${z}`);
|
|
8922
8908
|
})
|
|
8923
8909
|
);
|
|
8924
|
-
const
|
|
8925
|
-
this.weatherLayers = {},
|
|
8910
|
+
const P = await Promise.all(L);
|
|
8911
|
+
this.weatherLayers = {}, P.map((C) => {
|
|
8926
8912
|
var F, G, Y, Z;
|
|
8927
|
-
const
|
|
8928
|
-
let I = (Y = (G =
|
|
8929
|
-
I &&
|
|
8930
|
-
raw:
|
|
8931
|
-
type: ((Z =
|
|
8913
|
+
const z = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8914
|
+
let I = (Y = (G = C == null ? void 0 : C.config) == null ? void 0 : G.headers) == null ? void 0 : Y.key;
|
|
8915
|
+
I && z && (this.weatherLayers[I] = {
|
|
8916
|
+
raw: z,
|
|
8917
|
+
type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8932
8918
|
etime: D.data.etime
|
|
8933
8919
|
});
|
|
8934
8920
|
});
|
|
8935
8921
|
}
|
|
8936
8922
|
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"]) {
|
|
8937
|
-
const
|
|
8923
|
+
const x = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8938
8924
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8939
8925
|
type: "json",
|
|
8940
|
-
direction:
|
|
8941
|
-
height: { raw:
|
|
8926
|
+
direction: x,
|
|
8927
|
+
height: { raw: L },
|
|
8942
8928
|
etime: D.data.etime
|
|
8943
8929
|
};
|
|
8944
8930
|
}
|
|
8945
8931
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8946
|
-
const
|
|
8932
|
+
const x = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, L = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8947
8933
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8948
8934
|
type: "json",
|
|
8949
|
-
direction:
|
|
8950
|
-
speed: { raw:
|
|
8935
|
+
direction: x,
|
|
8936
|
+
speed: { raw: L },
|
|
8951
8937
|
etime: D.data.etime
|
|
8952
8938
|
};
|
|
8953
8939
|
}
|
|
@@ -8970,7 +8956,7 @@ const bn = {
|
|
|
8970
8956
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8971
8957
|
},
|
|
8972
8958
|
handleRampColorInitial() {
|
|
8973
|
-
var t, e, o, i, a, r, l,
|
|
8959
|
+
var t, e, o, i, a, r, l, m, c, f, d, b;
|
|
8974
8960
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8975
8961
|
type: "canvas",
|
|
8976
8962
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -8986,9 +8972,9 @@ const bn = {
|
|
|
8986
8972
|
}
|
|
8987
8973
|
},
|
|
8988
8974
|
this.beforeLayer
|
|
8989
|
-
), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((
|
|
8975
|
+
), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((m = this.viewport) == null ? void 0 : m.particleSource, {
|
|
8990
8976
|
type: "canvas",
|
|
8991
|
-
canvas: (
|
|
8977
|
+
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
8992
8978
|
animate: !0,
|
|
8993
8979
|
coordinates: this.viewport.getBoundLngLat()
|
|
8994
8980
|
}), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
|
|
@@ -9004,255 +8990,255 @@ const bn = {
|
|
|
9004
8990
|
);
|
|
9005
8991
|
},
|
|
9006
8992
|
handleDrawWeather4Json() {
|
|
9007
|
-
var r, l,
|
|
8993
|
+
var r, l, m, c, f, d, b;
|
|
9008
8994
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
9009
8995
|
let e = 0, o = 0;
|
|
9010
8996
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
9011
8997
|
if (i && a) {
|
|
9012
|
-
const
|
|
9013
|
-
for (const
|
|
8998
|
+
const w = q.convertToStdLng(i._sw.lng), k = q.convertToStdLng(i._ne.lng), y = Math.floor(i._sw.lat), _ = Math.ceil(i._ne.lat);
|
|
8999
|
+
for (const T in this.weatherLayers) {
|
|
9014
9000
|
let B = !1;
|
|
9015
|
-
if (this.weatherLayers[
|
|
9001
|
+
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
9016
9002
|
let D = [];
|
|
9017
|
-
if (
|
|
9003
|
+
if (T === "swell") {
|
|
9018
9004
|
B = !0;
|
|
9019
|
-
const
|
|
9020
|
-
for (const
|
|
9021
|
-
if (
|
|
9022
|
-
const
|
|
9023
|
-
|
|
9005
|
+
const x = ((m = this.weatherLayers[T]) == null ? void 0 : m.direction) || {};
|
|
9006
|
+
for (const P in x)
|
|
9007
|
+
if (P > y && P < _ && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9008
|
+
const C = x[P].lng;
|
|
9009
|
+
w > k ? C.forEach((z, I) => {
|
|
9024
9010
|
var F, G, Y, Z, Q, $;
|
|
9025
9011
|
if (a < 2) {
|
|
9026
|
-
if ((
|
|
9027
|
-
const J = W.point([
|
|
9028
|
-
val: ((F = P
|
|
9029
|
-
spd: (Y = P
|
|
9012
|
+
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9013
|
+
const J = W.point([z, P], {
|
|
9014
|
+
val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
|
|
9015
|
+
spd: (Y = x[P].spd) == null ? void 0 : Y[I]
|
|
9030
9016
|
});
|
|
9031
9017
|
D.push(J);
|
|
9032
9018
|
}
|
|
9033
|
-
} else if ((
|
|
9034
|
-
const J = W.point([
|
|
9035
|
-
val: ((Z = P
|
|
9036
|
-
spd: ($ = P
|
|
9019
|
+
} else if ((z >= w && z <= 180 || z >= -180 && z <= k) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9020
|
+
const J = W.point([z, P], {
|
|
9021
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
|
|
9022
|
+
spd: ($ = x[P].spd) == null ? void 0 : $[I]
|
|
9037
9023
|
});
|
|
9038
9024
|
D.push(J);
|
|
9039
9025
|
}
|
|
9040
|
-
}) :
|
|
9026
|
+
}) : C.forEach((z, I) => {
|
|
9041
9027
|
var F, G, Y, Z, Q, $;
|
|
9042
|
-
if (
|
|
9043
|
-
if ((
|
|
9044
|
-
const J = W.point([
|
|
9045
|
-
val: ((F = P
|
|
9046
|
-
spd: (Y = P
|
|
9028
|
+
if (w < 2) {
|
|
9029
|
+
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9030
|
+
const J = W.point([z, P], {
|
|
9031
|
+
val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
|
|
9032
|
+
spd: (Y = x[P].spd) == null ? void 0 : Y[I]
|
|
9047
9033
|
});
|
|
9048
9034
|
D.push(J);
|
|
9049
9035
|
}
|
|
9050
|
-
} else if (
|
|
9051
|
-
const J = W.point([
|
|
9052
|
-
val: ((Z = P
|
|
9053
|
-
spd: ($ = P
|
|
9036
|
+
} else if (z >= w && z <= k && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9037
|
+
const J = W.point([z, P], {
|
|
9038
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
|
|
9039
|
+
spd: ($ = x[P].spd) == null ? void 0 : $[I]
|
|
9054
9040
|
});
|
|
9055
9041
|
D.push(J);
|
|
9056
9042
|
}
|
|
9057
9043
|
});
|
|
9058
9044
|
}
|
|
9059
9045
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
9060
|
-
const
|
|
9061
|
-
if (
|
|
9062
|
-
if (!
|
|
9063
|
-
const
|
|
9064
|
-
for (const
|
|
9065
|
-
const
|
|
9066
|
-
for (const I of
|
|
9067
|
-
|
|
9046
|
+
const L = this.weatherLayers[T].height;
|
|
9047
|
+
if (L) {
|
|
9048
|
+
if (!L.data) {
|
|
9049
|
+
const P = [];
|
|
9050
|
+
for (const C in (c = L.raw) == null ? void 0 : c.LineString) {
|
|
9051
|
+
const z = L.raw.LineString[C];
|
|
9052
|
+
for (const I of z)
|
|
9053
|
+
P.push(
|
|
9068
9054
|
W.lineString(I, {
|
|
9069
|
-
val: Number(
|
|
9055
|
+
val: Number(C)
|
|
9070
9056
|
})
|
|
9071
9057
|
);
|
|
9072
|
-
|
|
9058
|
+
L.data = W.featureCollection(P);
|
|
9073
9059
|
}
|
|
9074
9060
|
}
|
|
9075
|
-
if (
|
|
9076
|
-
const
|
|
9077
|
-
D = D.concat(
|
|
9061
|
+
if (L.data) {
|
|
9062
|
+
const P = this.handleBboxClip(L.data, i);
|
|
9063
|
+
D = D.concat(P);
|
|
9078
9064
|
}
|
|
9079
9065
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
9080
9066
|
}
|
|
9081
|
-
} else if (
|
|
9067
|
+
} else if (T === "current") {
|
|
9082
9068
|
B = !0;
|
|
9083
|
-
const
|
|
9084
|
-
for (const
|
|
9085
|
-
if (
|
|
9086
|
-
const
|
|
9087
|
-
|
|
9069
|
+
const x = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
9070
|
+
for (const P in x)
|
|
9071
|
+
if (P > y && P < _ && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9072
|
+
const C = x[P].lng;
|
|
9073
|
+
w > k ? C.forEach((z, I) => {
|
|
9088
9074
|
var F, G, Y, Z, Q, $;
|
|
9089
9075
|
if (a < 2) {
|
|
9090
|
-
if ((
|
|
9091
|
-
const J = W.point([
|
|
9092
|
-
val: ((F = P
|
|
9093
|
-
spd: (Y = P
|
|
9076
|
+
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9077
|
+
const J = W.point([z, P], {
|
|
9078
|
+
val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
|
|
9079
|
+
spd: (Y = x[P].spd) == null ? void 0 : Y[I]
|
|
9094
9080
|
});
|
|
9095
9081
|
D.push(J);
|
|
9096
9082
|
}
|
|
9097
|
-
} else if ((
|
|
9098
|
-
const J = W.point([
|
|
9099
|
-
val: ((Z = P
|
|
9100
|
-
spd: ($ = P
|
|
9083
|
+
} else if ((z >= w && z <= 180 || z >= -180 && z <= k) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9084
|
+
const J = W.point([z, P], {
|
|
9085
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
|
|
9086
|
+
spd: ($ = x[P].spd) == null ? void 0 : $[I]
|
|
9101
9087
|
});
|
|
9102
9088
|
D.push(J);
|
|
9103
9089
|
}
|
|
9104
|
-
}) :
|
|
9090
|
+
}) : C.forEach((z, I) => {
|
|
9105
9091
|
var F, G, Y, Z, Q, $;
|
|
9106
|
-
if (
|
|
9107
|
-
if ((
|
|
9108
|
-
const J = W.point([
|
|
9109
|
-
val: ((F = P
|
|
9110
|
-
spd: (Y = P
|
|
9092
|
+
if (w < 2) {
|
|
9093
|
+
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9094
|
+
const J = W.point([z, P], {
|
|
9095
|
+
val: ((F = x[P].val) == null ? void 0 : F[I]) || ((G = x[P].dir) == null ? void 0 : G[I]),
|
|
9096
|
+
spd: (Y = x[P].spd) == null ? void 0 : Y[I]
|
|
9111
9097
|
});
|
|
9112
9098
|
D.push(J);
|
|
9113
9099
|
}
|
|
9114
|
-
} else if (
|
|
9115
|
-
const J = W.point([
|
|
9116
|
-
val: ((Z = P
|
|
9117
|
-
spd: ($ = P
|
|
9100
|
+
} else if (z >= w && z <= k && (!(a <= this.zoom) || z % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9101
|
+
const J = W.point([z, P], {
|
|
9102
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[I]) || ((Q = x[P].dir) == null ? void 0 : Q[I]),
|
|
9103
|
+
spd: ($ = x[P].spd) == null ? void 0 : $[I]
|
|
9118
9104
|
});
|
|
9119
9105
|
D.push(J);
|
|
9120
9106
|
}
|
|
9121
9107
|
});
|
|
9122
9108
|
}
|
|
9123
9109
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
9124
|
-
const
|
|
9125
|
-
if (
|
|
9126
|
-
if (!
|
|
9127
|
-
const
|
|
9128
|
-
for (const
|
|
9129
|
-
const I =
|
|
9110
|
+
const L = this.weatherLayers[T].speed;
|
|
9111
|
+
if (L) {
|
|
9112
|
+
if (!L.data) {
|
|
9113
|
+
const C = [];
|
|
9114
|
+
for (const z in (d = L.raw) == null ? void 0 : d.Polygon) {
|
|
9115
|
+
const I = L.raw.Polygon[z];
|
|
9130
9116
|
for (const F of I)
|
|
9131
|
-
|
|
9117
|
+
C.push(
|
|
9132
9118
|
W.polygon(F, {
|
|
9133
|
-
val: Number(
|
|
9119
|
+
val: Number(z)
|
|
9134
9120
|
})
|
|
9135
9121
|
);
|
|
9136
9122
|
}
|
|
9137
|
-
|
|
9123
|
+
L.data = W.featureCollection(C);
|
|
9138
9124
|
}
|
|
9139
|
-
const
|
|
9140
|
-
D = D.concat(
|
|
9125
|
+
const P = a < this.zoom ? L.data.features.filter((C) => C.properties.val > 0.5) : L.data.features;
|
|
9126
|
+
D = D.concat(P), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
9141
9127
|
}
|
|
9142
|
-
} else if (
|
|
9128
|
+
} else if (T === "wind") {
|
|
9143
9129
|
B = !0;
|
|
9144
|
-
const
|
|
9145
|
-
for (const
|
|
9146
|
-
if (
|
|
9147
|
-
const
|
|
9148
|
-
|
|
9130
|
+
const x = this.weatherLayers.wind.raw;
|
|
9131
|
+
for (const L in x)
|
|
9132
|
+
if (L > y && L < _ && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9133
|
+
const P = x[L].lng;
|
|
9134
|
+
w > k ? P.forEach((C, z) => {
|
|
9149
9135
|
var I, F, G, Y;
|
|
9150
9136
|
if (a < 2) {
|
|
9151
|
-
if ((
|
|
9152
|
-
const Z = W.point([
|
|
9153
|
-
dir: ((I =
|
|
9154
|
-
spd:
|
|
9137
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9138
|
+
const Z = W.point([C, L], {
|
|
9139
|
+
dir: ((I = x[L].val) == null ? void 0 : I[z]) || ((F = x[L].dir) == null ? void 0 : F[z]),
|
|
9140
|
+
spd: x[L].spd[z]
|
|
9155
9141
|
});
|
|
9156
9142
|
D.push(Z);
|
|
9157
9143
|
}
|
|
9158
|
-
} else if ((
|
|
9159
|
-
const Z = W.point([
|
|
9160
|
-
dir: ((G =
|
|
9161
|
-
spd:
|
|
9144
|
+
} else if ((C >= w && C <= 180 || C >= -180 && C <= k) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9145
|
+
const Z = W.point([C, L], {
|
|
9146
|
+
dir: ((G = x[L].val) == null ? void 0 : G[z]) || ((Y = x[L].dir) == null ? void 0 : Y[z]),
|
|
9147
|
+
spd: x[L].spd[z]
|
|
9162
9148
|
});
|
|
9163
9149
|
D.push(Z);
|
|
9164
9150
|
}
|
|
9165
|
-
}) :
|
|
9151
|
+
}) : P.forEach((C, z) => {
|
|
9166
9152
|
var I, F, G, Y;
|
|
9167
9153
|
if (a < 2) {
|
|
9168
|
-
if ((
|
|
9169
|
-
const Z = W.point([
|
|
9170
|
-
dir: ((I =
|
|
9171
|
-
spd:
|
|
9154
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9155
|
+
const Z = W.point([C, L], {
|
|
9156
|
+
dir: ((I = x[L].val) == null ? void 0 : I[z]) || ((F = x[L].dir) == null ? void 0 : F[z]),
|
|
9157
|
+
spd: x[L].spd[z]
|
|
9172
9158
|
});
|
|
9173
9159
|
D.push(Z);
|
|
9174
9160
|
}
|
|
9175
|
-
} else if (
|
|
9176
|
-
const Z = W.point([
|
|
9177
|
-
dir: ((G =
|
|
9178
|
-
spd:
|
|
9161
|
+
} else if (C >= w && C <= k && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9162
|
+
const Z = W.point([C, L], {
|
|
9163
|
+
dir: ((G = x[L].val) == null ? void 0 : G[z]) || ((Y = x[L].dir) == null ? void 0 : Y[z]),
|
|
9164
|
+
spd: x[L].spd[z]
|
|
9179
9165
|
});
|
|
9180
9166
|
D.push(Z);
|
|
9181
9167
|
}
|
|
9182
9168
|
});
|
|
9183
9169
|
}
|
|
9184
9170
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
9185
|
-
} else if (
|
|
9186
|
-
if (this.weatherLayers[
|
|
9187
|
-
D = this.weatherLayers[
|
|
9171
|
+
} else if (T === "sig-wave-height") {
|
|
9172
|
+
if (this.weatherLayers[T].data)
|
|
9173
|
+
D = this.weatherLayers[T].data;
|
|
9188
9174
|
else {
|
|
9189
9175
|
B = !0;
|
|
9190
|
-
const
|
|
9191
|
-
if (
|
|
9192
|
-
const
|
|
9193
|
-
for (const
|
|
9194
|
-
const
|
|
9195
|
-
for (const
|
|
9196
|
-
|
|
9197
|
-
W.polygon(
|
|
9198
|
-
val: Number(
|
|
9176
|
+
const x = this.weatherLayers[T].raw;
|
|
9177
|
+
if (x) {
|
|
9178
|
+
const L = [];
|
|
9179
|
+
for (const P in x.Polygon) {
|
|
9180
|
+
const C = x.Polygon[P];
|
|
9181
|
+
for (const z of C)
|
|
9182
|
+
L.push(
|
|
9183
|
+
W.polygon(z, {
|
|
9184
|
+
val: Number(P)
|
|
9199
9185
|
})
|
|
9200
9186
|
);
|
|
9201
9187
|
}
|
|
9202
|
-
for (const
|
|
9203
|
-
const
|
|
9204
|
-
for (const
|
|
9205
|
-
|
|
9206
|
-
W.multiPolygon(
|
|
9207
|
-
val: Number(
|
|
9188
|
+
for (const P in x.MultiPolygon) {
|
|
9189
|
+
const C = x.MultiPolygon[P];
|
|
9190
|
+
for (const z of C)
|
|
9191
|
+
L.push(
|
|
9192
|
+
W.multiPolygon(z, {
|
|
9193
|
+
val: Number(P)
|
|
9208
9194
|
})
|
|
9209
9195
|
);
|
|
9210
9196
|
}
|
|
9211
|
-
for (const
|
|
9212
|
-
const
|
|
9213
|
-
for (let
|
|
9214
|
-
|
|
9215
|
-
W.point([
|
|
9216
|
-
val: Number(
|
|
9197
|
+
for (const P in x.Point) {
|
|
9198
|
+
const C = x.Point[P];
|
|
9199
|
+
for (let z = 0; z < ((b = C.lng) == null ? void 0 : b.length); z++)
|
|
9200
|
+
L.push(
|
|
9201
|
+
W.point([C.lng[z], P], {
|
|
9202
|
+
val: Number(C.val[z])
|
|
9217
9203
|
})
|
|
9218
9204
|
);
|
|
9219
9205
|
}
|
|
9220
|
-
D = D.concat(
|
|
9206
|
+
D = D.concat(L);
|
|
9221
9207
|
}
|
|
9222
9208
|
}
|
|
9223
9209
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
9224
|
-
} else if (
|
|
9225
|
-
if (this.weatherLayers[
|
|
9226
|
-
D = this.weatherLayers[
|
|
9210
|
+
} else if (T === "prmsl") {
|
|
9211
|
+
if (this.weatherLayers[T].data)
|
|
9212
|
+
D = this.weatherLayers[T].data;
|
|
9227
9213
|
else {
|
|
9228
9214
|
B = !0;
|
|
9229
|
-
const
|
|
9230
|
-
if (
|
|
9231
|
-
const
|
|
9232
|
-
for (const
|
|
9233
|
-
const
|
|
9234
|
-
for (const
|
|
9235
|
-
|
|
9236
|
-
W.lineString(
|
|
9237
|
-
val: Number(
|
|
9215
|
+
const x = this.weatherLayers[T].raw;
|
|
9216
|
+
if (x) {
|
|
9217
|
+
const L = [];
|
|
9218
|
+
for (const P in x.LineString) {
|
|
9219
|
+
const C = x.LineString[P];
|
|
9220
|
+
for (const z of C)
|
|
9221
|
+
L.push(
|
|
9222
|
+
W.lineString(z, {
|
|
9223
|
+
val: Number(P)
|
|
9238
9224
|
})
|
|
9239
9225
|
);
|
|
9240
9226
|
}
|
|
9241
|
-
for (const
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
W.point([
|
|
9245
|
-
val:
|
|
9246
|
-
type:
|
|
9227
|
+
for (const P in x.Point)
|
|
9228
|
+
x.Point[P].lng.forEach((C, z) => {
|
|
9229
|
+
C = q.convertToStdLng(C), L.push(
|
|
9230
|
+
W.point([C, P], {
|
|
9231
|
+
val: x.Point[P].val[z],
|
|
9232
|
+
type: x.Point[P].type[z]
|
|
9247
9233
|
})
|
|
9248
9234
|
);
|
|
9249
9235
|
});
|
|
9250
|
-
D = D.concat(
|
|
9236
|
+
D = D.concat(L);
|
|
9251
9237
|
}
|
|
9252
9238
|
}
|
|
9253
9239
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9254
9240
|
}
|
|
9255
|
-
D.length && (this.weatherLayers[
|
|
9241
|
+
D.length && (this.weatherLayers[T].data = W.featureCollection(D)), B && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9256
9242
|
}
|
|
9257
9243
|
}
|
|
9258
9244
|
}
|
|
@@ -9267,11 +9253,11 @@ const bn = {
|
|
|
9267
9253
|
return t.features.forEach((r) => {
|
|
9268
9254
|
if (r.geometry.type !== "Point")
|
|
9269
9255
|
if (i > a) {
|
|
9270
|
-
let l = [i, e._sw.lat, 180, e._ne.lat],
|
|
9271
|
-
|
|
9256
|
+
let l = [i, e._sw.lat, 180, e._ne.lat], m = W.bboxClip(r, l);
|
|
9257
|
+
m.geometry.coordinates.length && o.push(m), l = [-180, e._sw.lat, a, e._ne.lat], m = W.bboxClip(r, l), m.geometry.coordinates.length && o.push(m);
|
|
9272
9258
|
} else {
|
|
9273
|
-
const l = [i, e._sw.lat, a, e._ne.lat],
|
|
9274
|
-
|
|
9259
|
+
const l = [i, e._sw.lat, a, e._ne.lat], m = W.bboxClip(r, l);
|
|
9260
|
+
m.geometry.coordinates.length && o.push(m);
|
|
9275
9261
|
}
|
|
9276
9262
|
else
|
|
9277
9263
|
o.push(r);
|
|
@@ -9299,13 +9285,13 @@ const bn = {
|
|
|
9299
9285
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Zn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, qn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
9300
9286
|
function ic(t, e, o, i, a, r) {
|
|
9301
9287
|
var se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9302
|
-
const l =
|
|
9288
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"), w = v("VCard"), k = v("VSwitch"), y = v("VBtnToggle"), _ = v("VCardTitle"), T = v("VCardItem"), B = v("VCheckbox"), D = v("VRadio"), x = v("IdmWindBarb"), L = v("IdmSigWaveHeight"), P = v("IdmCurrentDirection"), C = v("IdmPrmsl"), z = v("IdmWindParticle"), I = v("IdmCurrentParticle"), F = v("IdmWave"), G = v("IdmSwell"), Y = v("IdmIceEdge"), Z = v("IdmIceCover"), Q = v("IdmIceThickness"), $ = v("IdmPrecip3h"), J = v("IdmVisibility"), le = v("IdmWaterTemp"), ne = v("IdmTemp");
|
|
9303
9289
|
return g(), S("div", wn, [
|
|
9304
9290
|
s("div", {
|
|
9305
9291
|
class: "menu-bar-box transition pa-1",
|
|
9306
9292
|
style: ee({ top: this.top + this.paddingTop + 46 + "px", right: this.right + "px" })
|
|
9307
9293
|
}, [
|
|
9308
|
-
p(
|
|
9294
|
+
p(m, {
|
|
9309
9295
|
text: t.$t("weather.weatherLayers"),
|
|
9310
9296
|
location: "left",
|
|
9311
9297
|
touch: "hover",
|
|
@@ -9331,10 +9317,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
9331
9317
|
], 4),
|
|
9332
9318
|
r.showTipMenu ? (g(), S("div", xn, [
|
|
9333
9319
|
s("div", {
|
|
9334
|
-
class: "menu-bar-box pa-1 rounded",
|
|
9320
|
+
class: ge(["menu-bar-box pa-1 rounded", o.simple ? "simple" : ""]),
|
|
9335
9321
|
style: ee({ right: a.right + "px" })
|
|
9336
9322
|
}, [
|
|
9337
|
-
p(
|
|
9323
|
+
p(m, {
|
|
9338
9324
|
text: "Legend",
|
|
9339
9325
|
location: "left"
|
|
9340
9326
|
}, {
|
|
@@ -9355,8 +9341,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
9355
9341
|
]),
|
|
9356
9342
|
_: 1
|
|
9357
9343
|
})
|
|
9358
|
-
],
|
|
9359
|
-
a.legendToggle ? (g(), A(
|
|
9344
|
+
], 6),
|
|
9345
|
+
a.legendToggle ? (g(), A(w, {
|
|
9360
9346
|
key: 0,
|
|
9361
9347
|
elevation: "16",
|
|
9362
9348
|
class: "card-info d-flex justify-center align-start",
|
|
@@ -9371,7 +9357,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9371
9357
|
e[11] || (e[11] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9372
9358
|
p(f, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9373
9359
|
default: u(() => [
|
|
9374
|
-
(g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(
|
|
9360
|
+
(g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(c, {
|
|
9375
9361
|
key: H,
|
|
9376
9362
|
cols: "6",
|
|
9377
9363
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9379,7 +9365,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9379
9365
|
default: u(() => [
|
|
9380
9366
|
s("div", vn, [
|
|
9381
9367
|
s("i", {
|
|
9382
|
-
class:
|
|
9368
|
+
class: ge(["iconfont", r.barbsIconName[oe]]),
|
|
9383
9369
|
style: ee({ color: o.theme === "dark" ? "#fff" : "#000" })
|
|
9384
9370
|
}, null, 6),
|
|
9385
9371
|
s("span", _n, n(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
@@ -9403,7 +9389,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9403
9389
|
e[12] || (e[12] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9404
9390
|
p(f, { class: "ma-0" }, {
|
|
9405
9391
|
default: u(() => [
|
|
9406
|
-
(g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(
|
|
9392
|
+
(g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(c, {
|
|
9407
9393
|
key: oe,
|
|
9408
9394
|
cols: "12",
|
|
9409
9395
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9435,7 +9421,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9435
9421
|
e[13] || (e[13] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Current", -1)),
|
|
9436
9422
|
p(f, { class: "ma-0 ml-n4" }, {
|
|
9437
9423
|
default: u(() => [
|
|
9438
|
-
(g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(
|
|
9424
|
+
(g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(c, {
|
|
9439
9425
|
key: oe,
|
|
9440
9426
|
cols: "12",
|
|
9441
9427
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -9465,13 +9451,13 @@ function ic(t, e, o, i, a, r) {
|
|
|
9465
9451
|
}, 8, ["style"])) : R("", !0)
|
|
9466
9452
|
])) : R("", !0),
|
|
9467
9453
|
s("div", {
|
|
9468
|
-
class:
|
|
9454
|
+
class: ge(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
9469
9455
|
style: ee(r.listStyle)
|
|
9470
9456
|
}, [
|
|
9471
9457
|
s("div", Sn, [
|
|
9472
9458
|
s("div", Mn, [
|
|
9473
9459
|
s("div", Dn, n(t.$t("weather.weather")), 1),
|
|
9474
|
-
p(
|
|
9460
|
+
p(k, {
|
|
9475
9461
|
modelValue: a.autoActive,
|
|
9476
9462
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
9477
9463
|
class: "small-switch",
|
|
@@ -9497,7 +9483,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9497
9483
|
]),
|
|
9498
9484
|
o.simple ? (g(), S("div", In, [
|
|
9499
9485
|
s("div", null, n(t.$t("weather.forecastModel")), 1),
|
|
9500
|
-
p(
|
|
9486
|
+
p(y, {
|
|
9501
9487
|
modelValue: a.currentModel,
|
|
9502
9488
|
"onUpdate:modelValue": e[2] || (e[2] = (H) => a.currentModel = H),
|
|
9503
9489
|
rounded: "",
|
|
@@ -9539,16 +9525,16 @@ function ic(t, e, o, i, a, r) {
|
|
|
9539
9525
|
}, 8, ["modelValue"])
|
|
9540
9526
|
])) : R("", !0),
|
|
9541
9527
|
s("div", {
|
|
9542
|
-
class:
|
|
9528
|
+
class: ge(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
9543
9529
|
}, [
|
|
9544
|
-
p(
|
|
9530
|
+
p(w, {
|
|
9545
9531
|
class: "block-bg mx-auto mb-3",
|
|
9546
9532
|
elevation: "0"
|
|
9547
9533
|
}, {
|
|
9548
9534
|
default: u(() => [
|
|
9549
|
-
p(
|
|
9535
|
+
p(T, { class: "border-b-thin" }, {
|
|
9550
9536
|
default: u(() => [
|
|
9551
|
-
p(
|
|
9537
|
+
p(_, {
|
|
9552
9538
|
class: "text-subtitle-1 font-weight-medium",
|
|
9553
9539
|
style: { "font-size": "16px !important" }
|
|
9554
9540
|
}, {
|
|
@@ -9581,14 +9567,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9581
9567
|
]),
|
|
9582
9568
|
_: 1
|
|
9583
9569
|
}),
|
|
9584
|
-
p(
|
|
9570
|
+
p(w, {
|
|
9585
9571
|
class: "block-bg mx-auto mb-3",
|
|
9586
9572
|
elevation: "0"
|
|
9587
9573
|
}, {
|
|
9588
9574
|
default: u(() => [
|
|
9589
|
-
p(
|
|
9575
|
+
p(T, { class: "border-b-thin" }, {
|
|
9590
9576
|
default: u(() => [
|
|
9591
|
-
p(
|
|
9577
|
+
p(_, {
|
|
9592
9578
|
class: "text-subtitle-1 font-weight-medium",
|
|
9593
9579
|
style: { "font-size": "16px !important" }
|
|
9594
9580
|
}, {
|
|
@@ -9620,7 +9606,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9620
9606
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9621
9607
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), S("div", Rn, [
|
|
9622
9608
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9623
|
-
p(
|
|
9609
|
+
p(k, {
|
|
9624
9610
|
modelValue: a.showWindParticle,
|
|
9625
9611
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
|
|
9626
9612
|
label: "",
|
|
@@ -9635,7 +9621,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9635
9621
|
])) : R("", !0),
|
|
9636
9622
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), S("div", An, [
|
|
9637
9623
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9638
|
-
p(
|
|
9624
|
+
p(k, {
|
|
9639
9625
|
modelValue: a.showCurrentParticle,
|
|
9640
9626
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
|
|
9641
9627
|
label: "",
|
|
@@ -9648,7 +9634,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9648
9634
|
"hide-details": ""
|
|
9649
9635
|
}, null, 8, ["modelValue"])
|
|
9650
9636
|
])) : R("", !0),
|
|
9651
|
-
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(
|
|
9637
|
+
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(y, {
|
|
9652
9638
|
key: 2,
|
|
9653
9639
|
modelValue: a.waveToggleValue,
|
|
9654
9640
|
"onUpdate:modelValue": e[7] || (e[7] = (oe) => a.waveToggleValue = oe),
|
|
@@ -9691,7 +9677,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9691
9677
|
]),
|
|
9692
9678
|
_: 1
|
|
9693
9679
|
}, 8, ["modelValue", "disabled"])) : R("", !0),
|
|
9694
|
-
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(
|
|
9680
|
+
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(y, {
|
|
9695
9681
|
key: 3,
|
|
9696
9682
|
modelValue: a.iceToggleValue,
|
|
9697
9683
|
"onUpdate:modelValue": e[8] || (e[8] = (oe) => a.iceToggleValue = oe),
|
|
@@ -9741,14 +9727,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9741
9727
|
]),
|
|
9742
9728
|
_: 1
|
|
9743
9729
|
}),
|
|
9744
|
-
p(
|
|
9730
|
+
p(w, {
|
|
9745
9731
|
class: "block-bg mx-auto mb-3",
|
|
9746
9732
|
elevation: "0"
|
|
9747
9733
|
}, {
|
|
9748
9734
|
default: u(() => [
|
|
9749
|
-
p(
|
|
9735
|
+
p(T, { class: "border-b-thin" }, {
|
|
9750
9736
|
default: u(() => [
|
|
9751
|
-
p(
|
|
9737
|
+
p(_, {
|
|
9752
9738
|
class: "text-subtitle-1 font-weight-medium",
|
|
9753
9739
|
style: { "font-size": "16px !important" }
|
|
9754
9740
|
}, {
|
|
@@ -9762,10 +9748,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
9762
9748
|
}),
|
|
9763
9749
|
p(d, { class: "" }, {
|
|
9764
9750
|
default: u(() => {
|
|
9765
|
-
var H, oe, He, Oe,
|
|
9751
|
+
var H, oe, He, Oe, fe, Re, U, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9766
9752
|
return [
|
|
9767
9753
|
s("div", On, n(t.$t("weather.atmospheric")), 1),
|
|
9768
|
-
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (
|
|
9754
|
+
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (fe = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((re = (ae = (ye = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : ye.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + n(t.$t("units.days")), 1),
|
|
9769
9755
|
s("div", jn, n(t.$t("weather.source")) + ": NOAA", 1),
|
|
9770
9756
|
s("div", En, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((E = (We = (Ge = (je = a.models) == null ? void 0 : je.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9771
9757
|
s("div", Nn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((Ne = (Ee = (Be = (we = a.models) == null ? void 0 : we.weather) == null ? void 0 : Be.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
@@ -9798,7 +9784,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9798
9784
|
})
|
|
9799
9785
|
], 2)
|
|
9800
9786
|
], 6),
|
|
9801
|
-
o.map ? (g(), A(
|
|
9787
|
+
o.map ? (g(), A(x, j({
|
|
9802
9788
|
key: 1,
|
|
9803
9789
|
ref: "windBarb",
|
|
9804
9790
|
map: o.map,
|
|
@@ -9807,7 +9793,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9807
9793
|
wind: (se = a.weatherLayers) == null ? void 0 : se.wind,
|
|
9808
9794
|
"menu-toggle": o.menuToggle
|
|
9809
9795
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
|
|
9810
|
-
o.map ? (g(), A(
|
|
9796
|
+
o.map ? (g(), A(L, j({
|
|
9811
9797
|
key: 2,
|
|
9812
9798
|
map: o.map,
|
|
9813
9799
|
"before-layer": "empty-layer-2",
|
|
@@ -9815,7 +9801,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9815
9801
|
"menu-toggle": o.menuToggle,
|
|
9816
9802
|
"active-weather-layers": a.activeWeatherLayers
|
|
9817
9803
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
9818
|
-
o.map ? (g(), A(
|
|
9804
|
+
o.map ? (g(), A(P, j({
|
|
9819
9805
|
key: 3,
|
|
9820
9806
|
map: o.map,
|
|
9821
9807
|
"map-feather": o.mapFeather,
|
|
@@ -9823,15 +9809,15 @@ function ic(t, e, o, i, a, r) {
|
|
|
9823
9809
|
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
9824
9810
|
"menu-toggle": o.menuToggle
|
|
9825
9811
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
|
|
9826
|
-
o.map ? (g(), A(
|
|
9812
|
+
o.map ? (g(), A(C, j({
|
|
9827
9813
|
key: 4,
|
|
9828
9814
|
map: o.map,
|
|
9829
|
-
"before-layer": "empty-layer-
|
|
9815
|
+
"before-layer": "empty-layer-3",
|
|
9830
9816
|
prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
|
|
9831
9817
|
"menu-toggle": o.menuToggle,
|
|
9832
9818
|
"active-weather-layers": a.activeWeatherLayers
|
|
9833
9819
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
|
|
9834
|
-
o.map ? (g(), A(
|
|
9820
|
+
o.map ? (g(), A(z, j({
|
|
9835
9821
|
key: 5,
|
|
9836
9822
|
viewport: a.viewport,
|
|
9837
9823
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
@@ -10228,21 +10214,21 @@ class Ya {
|
|
|
10228
10214
|
var o, i;
|
|
10229
10215
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
10230
10216
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10231
|
-
for (const
|
|
10232
|
-
let
|
|
10233
|
-
var b,
|
|
10234
|
-
return ((b = d.models) == null ? void 0 : b.includes(
|
|
10217
|
+
for (const m of a) {
|
|
10218
|
+
let c = Lo.find((d) => {
|
|
10219
|
+
var b, w, k;
|
|
10220
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10235
10221
|
}), f = Po.find((d) => {
|
|
10236
|
-
var b,
|
|
10237
|
-
return ((b = d.models) == null ? void 0 : b.includes(
|
|
10222
|
+
var b, w, k;
|
|
10223
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10238
10224
|
});
|
|
10239
|
-
|
|
10240
|
-
var b,
|
|
10241
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10225
|
+
c = c || Lo.find((d) => {
|
|
10226
|
+
var b, w;
|
|
10227
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
|
|
10242
10228
|
}), f = f || Po.find((d) => {
|
|
10243
|
-
var b,
|
|
10244
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10245
|
-
}),
|
|
10229
|
+
var b, w;
|
|
10230
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = c == null ? void 0 : c.alias) == null ? void 0 : w.toLowerCase());
|
|
10231
|
+
}), c = c || Lo[0], f = f || Po[0], r.push((o = c.models) != null && o.includes(m) ? m : c.model), l.push((i = f.models) != null && i.includes(m) ? m : f.model);
|
|
10246
10232
|
}
|
|
10247
10233
|
return {
|
|
10248
10234
|
weatherModels: r.join(","),
|
|
@@ -10259,37 +10245,37 @@ class Ya {
|
|
|
10259
10245
|
}), a;
|
|
10260
10246
|
}
|
|
10261
10247
|
static pickHourly(e, o) {
|
|
10262
|
-
var i, a, r, l,
|
|
10263
|
-
const U = typeof o == "string" ? M(o) : o,
|
|
10248
|
+
var i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re;
|
|
10249
|
+
const U = typeof o == "string" ? M(o) : o, ye = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.clone().add((m = (l = (r = ye == null ? void 0 : ye[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : m.at(0), "h"), Ge = re.clone().add((d = (f = (c = ye == null ? void 0 : ye[0]) == null ? void 0 : c.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
|
|
10264
10250
|
if (U.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10265
10251
|
const E = U.utc().diff(je, "h", !1);
|
|
10266
10252
|
let we, Be;
|
|
10267
|
-
if (
|
|
10253
|
+
if (ye) {
|
|
10268
10254
|
let Ee = 0, Ne = 0, N = 0;
|
|
10269
|
-
for (const Ue of
|
|
10255
|
+
for (const Ue of ye) {
|
|
10270
10256
|
const V = Ue == null ? void 0 : Ue.hourly;
|
|
10271
10257
|
for (let Le = E - (E - 1) % 3; Le <= E; Le++)
|
|
10272
10258
|
Ee += (b = V == null ? void 0 : V.precipitation) == null ? void 0 : b.at(Le);
|
|
10273
10259
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10274
|
-
Ne += (
|
|
10260
|
+
Ne += (w = V == null ? void 0 : V.precipitation) == null ? void 0 : w.at(Le);
|
|
10275
10261
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10276
|
-
N += (
|
|
10262
|
+
N += (k = V == null ? void 0 : V.precipitation) == null ? void 0 : k.at(Le);
|
|
10277
10263
|
we = {
|
|
10278
|
-
temp: (
|
|
10279
|
-
apparentTemp: (
|
|
10280
|
-
rh: (
|
|
10264
|
+
temp: (y = V == null ? void 0 : V.temperature_2m) == null ? void 0 : y.at(E),
|
|
10265
|
+
apparentTemp: (_ = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : _.at(E),
|
|
10266
|
+
rh: (T = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : T.at(E),
|
|
10281
10267
|
dp: (B = V == null ? void 0 : V.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10282
10268
|
precip: {
|
|
10283
10269
|
probability: (D = V == null ? void 0 : V.precipitation_probability) == null ? void 0 : D.at(E),
|
|
10284
|
-
sum: (
|
|
10285
|
-
sum1Hours: (
|
|
10270
|
+
sum: (x = V == null ? void 0 : V.precipitation) == null ? void 0 : x.at(E),
|
|
10271
|
+
sum1Hours: (L = V == null ? void 0 : V.precipitation) == null ? void 0 : L.at(E),
|
|
10286
10272
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10287
10273
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
10288
10274
|
sum12Hours: Math.round(N * 100) / 100
|
|
10289
10275
|
},
|
|
10290
|
-
pmsl: (
|
|
10291
|
-
psurf: (
|
|
10292
|
-
code: (
|
|
10276
|
+
pmsl: (P = V == null ? void 0 : V.pressure_msl) == null ? void 0 : P.at(E),
|
|
10277
|
+
psurf: (C = V == null ? void 0 : V.surface_pressure) == null ? void 0 : C.at(E),
|
|
10278
|
+
code: (z = V == null ? void 0 : V.weather_code) == null ? void 0 : z.at(E),
|
|
10293
10279
|
visibility: this.m2nm((I = V == null ? void 0 : V.visibility) == null ? void 0 : I.at(E)),
|
|
10294
10280
|
wind: {
|
|
10295
10281
|
speed: (F = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
@@ -10341,7 +10327,7 @@ class Ya {
|
|
|
10341
10327
|
degree: (He = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : He.at(E),
|
|
10342
10328
|
bearing: ((Oe = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : Oe.at(E)) ?? null
|
|
10343
10329
|
},
|
|
10344
|
-
sst: (
|
|
10330
|
+
sst: (fe = N == null ? void 0 : N.sea_surface_temperature) == null ? void 0 : fe.at(E),
|
|
10345
10331
|
height: (Re = N == null ? void 0 : N.sea_level_height_msl) == null ? void 0 : Re.at(E)
|
|
10346
10332
|
}, Be.wave = this.parseWave(Be.wave, we == null ? void 0 : we.wind), Be.current.direction = this.degree2Direction(Be.current.degree), Object.assign(We[Ee], Be), Ee++;
|
|
10347
10333
|
}
|
|
@@ -10350,16 +10336,16 @@ class Ya {
|
|
|
10350
10336
|
return We;
|
|
10351
10337
|
}
|
|
10352
10338
|
static toLegacy(e) {
|
|
10353
|
-
var o, i, a, r, l,
|
|
10339
|
+
var o, i, a, r, l, m, c, f, d, b;
|
|
10354
10340
|
return {
|
|
10355
10341
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
10356
10342
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
10357
10343
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
10358
10344
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
10359
10345
|
gusts: {
|
|
10360
|
-
kts: (
|
|
10346
|
+
kts: (m = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : m.gusts
|
|
10361
10347
|
},
|
|
10362
|
-
precip: (
|
|
10348
|
+
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
10363
10349
|
code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
|
|
10364
10350
|
name: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.name,
|
|
10365
10351
|
url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
|
|
@@ -10372,37 +10358,37 @@ class Ya {
|
|
|
10372
10358
|
};
|
|
10373
10359
|
}
|
|
10374
10360
|
static pickDaily(e, o) {
|
|
10375
|
-
var i, a, r, l,
|
|
10376
|
-
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((
|
|
10361
|
+
var i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e;
|
|
10362
|
+
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((c = (m = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : m.time) == null ? void 0 : c.at(-1)), Oe = [];
|
|
10377
10363
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10378
|
-
let
|
|
10364
|
+
let fe, Re;
|
|
10379
10365
|
const U = Ie.diff(oe, "d", !1);
|
|
10380
10366
|
if (Ce)
|
|
10381
|
-
for (const
|
|
10382
|
-
const ae =
|
|
10383
|
-
|
|
10367
|
+
for (const ye of Ce) {
|
|
10368
|
+
const ae = ye.daily;
|
|
10369
|
+
fe = {
|
|
10384
10370
|
code: (f = ae.weather_code) == null ? void 0 : f.at(U),
|
|
10385
10371
|
temp: {
|
|
10386
10372
|
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(U),
|
|
10387
10373
|
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(U),
|
|
10388
|
-
mean: (
|
|
10374
|
+
mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(U)
|
|
10389
10375
|
},
|
|
10390
10376
|
apparentTemp: {
|
|
10391
|
-
max: (
|
|
10392
|
-
min: (
|
|
10377
|
+
max: (k = ae.apparent_temperature_max) == null ? void 0 : k.at(U),
|
|
10378
|
+
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(U)
|
|
10393
10379
|
},
|
|
10394
10380
|
precip: {
|
|
10395
|
-
sum: (
|
|
10396
|
-
rainSum: (
|
|
10381
|
+
sum: (_ = ae.precipitation_sum) == null ? void 0 : _.at(U),
|
|
10382
|
+
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(U),
|
|
10397
10383
|
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(U),
|
|
10398
10384
|
showersSum: (D = ae.showers_sum) == null ? void 0 : D.at(U),
|
|
10399
|
-
hours: (
|
|
10400
|
-
probability: (
|
|
10385
|
+
hours: (x = ae.precipitation_hours) == null ? void 0 : x.at(U),
|
|
10386
|
+
probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(U)
|
|
10401
10387
|
},
|
|
10402
10388
|
rh: {
|
|
10403
|
-
max: (
|
|
10404
|
-
min: (
|
|
10405
|
-
mean: (
|
|
10389
|
+
max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(U),
|
|
10390
|
+
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(U),
|
|
10391
|
+
mean: (z = ae.relative_humidity_2m_mean) == null ? void 0 : z.at(U)
|
|
10406
10392
|
},
|
|
10407
10393
|
wind: {
|
|
10408
10394
|
speed: (I = ae.wind_speed_10m_max) == null ? void 0 : I.at(U),
|
|
@@ -10412,15 +10398,15 @@ class Ya {
|
|
|
10412
10398
|
bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((Q = ae.wind_direction_10m_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
|
|
10413
10399
|
}
|
|
10414
10400
|
};
|
|
10415
|
-
const { name: re, url: je, bg: Ge } = this.parseWeatherCode(
|
|
10416
|
-
|
|
10401
|
+
const { name: re, url: je, bg: Ge } = this.parseWeatherCode(fe.code, !0);
|
|
10402
|
+
fe.name = re, fe.url = je, fe.bg = Ge, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Oe.push({
|
|
10417
10403
|
utc: oe.add(U, "d").utc().format(),
|
|
10418
|
-
model:
|
|
10419
|
-
weather: { ...
|
|
10404
|
+
model: ye.model,
|
|
10405
|
+
weather: { ...fe }
|
|
10420
10406
|
});
|
|
10421
10407
|
}
|
|
10422
10408
|
if (H) {
|
|
10423
|
-
let
|
|
10409
|
+
let ye = 0;
|
|
10424
10410
|
for (const ae of H) {
|
|
10425
10411
|
const re = ae.daily;
|
|
10426
10412
|
Re = {
|
|
@@ -10447,7 +10433,7 @@ class Ya {
|
|
|
10447
10433
|
bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(U)) !== null ? (((_e = re.wind_wave_direction_dominant) == null ? void 0 : _e.at(U)) + 180) % 360 : null
|
|
10448
10434
|
}
|
|
10449
10435
|
}
|
|
10450
|
-
}, Re.wave = this.parseWave(Re.wave,
|
|
10436
|
+
}, Re.wave = this.parseWave(Re.wave, fe == null ? void 0 : fe.wind), Object.assign(Oe[ye], Re), ye++;
|
|
10451
10437
|
}
|
|
10452
10438
|
}
|
|
10453
10439
|
}
|
|
@@ -10974,8 +10960,8 @@ const sc = {
|
|
|
10974
10960
|
return (t, e, o = "MM-DD HH:mm") => {
|
|
10975
10961
|
var i, a;
|
|
10976
10962
|
if (t) {
|
|
10977
|
-
const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o),
|
|
10978
|
-
return l + " " +
|
|
10963
|
+
const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), m = `(UTC ${r >= 0 ? "+" : ""}${r})`;
|
|
10964
|
+
return l + " " + m;
|
|
10979
10965
|
}
|
|
10980
10966
|
return "-";
|
|
10981
10967
|
};
|
|
@@ -11051,15 +11037,15 @@ const sc = {
|
|
|
11051
11037
|
async fetchTropicals() {
|
|
11052
11038
|
var a, r, l;
|
|
11053
11039
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
11054
|
-
let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((
|
|
11040
|
+
let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((m) => m.key === "tropicals")) == null ? void 0 : a.weight;
|
|
11055
11041
|
if (i > 0) {
|
|
11056
|
-
const
|
|
11042
|
+
const m = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Ae.get(`${m}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
11057
11043
|
headers: {
|
|
11058
11044
|
Authorization: this.defaultMeteoToken
|
|
11059
11045
|
}
|
|
11060
11046
|
});
|
|
11061
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
11062
|
-
const f = (l =
|
|
11047
|
+
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = c == null ? void 0 : c.data) == null ? void 0 : r.code) === 0) {
|
|
11048
|
+
const f = (l = c == null ? void 0 : c.data) == null ? void 0 : l.data;
|
|
11063
11049
|
await Ae.get(f.tropicals, {
|
|
11064
11050
|
headers: {
|
|
11065
11051
|
Authorization: this.defaultMeteoToken,
|
|
@@ -11067,14 +11053,14 @@ const sc = {
|
|
|
11067
11053
|
},
|
|
11068
11054
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11069
11055
|
}).then((d) => {
|
|
11070
|
-
var
|
|
11071
|
-
const b = Va.convert2Geojson(((
|
|
11072
|
-
((
|
|
11056
|
+
var k, y, _;
|
|
11057
|
+
const b = Va.convert2Geojson(((k = d == null ? void 0 : d.data) == null ? void 0 : k.data) || (d == null ? void 0 : d.data));
|
|
11058
|
+
((_ = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : _.key) && b && (this.tropicals = {
|
|
11073
11059
|
data: b,
|
|
11074
11060
|
active: !0,
|
|
11075
11061
|
cached: !0,
|
|
11076
11062
|
type: "json",
|
|
11077
|
-
etime:
|
|
11063
|
+
etime: c.data.etime,
|
|
11078
11064
|
version: Math.random() + 1
|
|
11079
11065
|
});
|
|
11080
11066
|
}).catch((d) => {
|
|
@@ -11087,26 +11073,26 @@ const sc = {
|
|
|
11087
11073
|
handleRefresh() {
|
|
11088
11074
|
var e, o;
|
|
11089
11075
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11090
|
-
var a, r, l,
|
|
11076
|
+
var a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z;
|
|
11091
11077
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
11092
11078
|
let I = "";
|
|
11093
11079
|
switch (!0) {
|
|
11094
11080
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
11095
11081
|
I = "TD";
|
|
11096
11082
|
break;
|
|
11097
|
-
case (((
|
|
11083
|
+
case (((m = i.properties.wind) == null ? void 0 : m.kts) < 47 || ((c = i.properties) == null ? void 0 : c.kts) < 47):
|
|
11098
11084
|
I = "TS";
|
|
11099
11085
|
break;
|
|
11100
11086
|
case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
|
|
11101
11087
|
I = "STS";
|
|
11102
11088
|
break;
|
|
11103
|
-
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((
|
|
11089
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
|
|
11104
11090
|
I = "TY";
|
|
11105
11091
|
break;
|
|
11106
|
-
case (((
|
|
11092
|
+
case (((k = i.properties.wind) == null ? void 0 : k.kts) < 94 || ((y = i.properties) == null ? void 0 : y.kts) < 94):
|
|
11107
11093
|
I = "STY";
|
|
11108
11094
|
break;
|
|
11109
|
-
case (((
|
|
11095
|
+
case (((_ = i.properties.wind) == null ? void 0 : _.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
11110
11096
|
I = "Super TY";
|
|
11111
11097
|
break;
|
|
11112
11098
|
default:
|
|
@@ -11115,19 +11101,19 @@ const sc = {
|
|
|
11115
11101
|
}
|
|
11116
11102
|
i.properties.level = I;
|
|
11117
11103
|
}
|
|
11118
|
-
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (
|
|
11104
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (L = (x = M(i.properties.date)) == null ? void 0 : x.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((z = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : z.replace(/^./, (I) => I.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11119
11105
|
}), this.handleInit();
|
|
11120
11106
|
},
|
|
11121
11107
|
handleInit() {
|
|
11122
|
-
var t, e, o, i, a, r, l,
|
|
11123
|
-
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 ? (
|
|
11108
|
+
var t, e, o, i, a, r, l, m, c, f, d, b;
|
|
11109
|
+
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 ? (c = (m = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : m.idmBottomBar) == null || c.handleToggle("tropical", !0) : (b = (d = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : d.idmBottomBar) == null || b.handleToggle("tropical", !1);
|
|
11124
11110
|
},
|
|
11125
11111
|
handleRender() {
|
|
11126
|
-
var t, e, o, i, a, r, l,
|
|
11112
|
+
var t, e, o, i, a, r, l, m, c, f;
|
|
11127
11113
|
if (this.tropicals && this.map) {
|
|
11128
11114
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
11129
|
-
let b = 0,
|
|
11130
|
-
(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),
|
|
11115
|
+
let b = 0, w = 0;
|
|
11116
|
+
(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() - (d + b), console.log("[tropicals] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.source, {
|
|
11131
11117
|
type: "geojson",
|
|
11132
11118
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
11133
11119
|
}), this.map.addLayer({
|
|
@@ -11208,9 +11194,9 @@ const sc = {
|
|
|
11208
11194
|
],
|
|
11209
11195
|
"text-halo-width": 4
|
|
11210
11196
|
}
|
|
11211
|
-
}, this.beforeLayer),
|
|
11197
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((m = this.map) == null || m.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
|
|
11212
11198
|
type: "geojson",
|
|
11213
|
-
data: (
|
|
11199
|
+
data: (c = this.tropicals) != null && c.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
11214
11200
|
// cluster: true,
|
|
11215
11201
|
// clusterRadius: 10, // 聚合半径
|
|
11216
11202
|
}), this.map.addLayer({
|
|
@@ -11324,9 +11310,9 @@ const sc = {
|
|
|
11324
11310
|
"text-halo-color": "#ffffff",
|
|
11325
11311
|
"text-halo-width": 2
|
|
11326
11312
|
}
|
|
11327
|
-
}, this.beforeLayer),
|
|
11328
|
-
const
|
|
11329
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11313
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
|
|
11314
|
+
const k = Va.interpolate(this.tropicals, 1);
|
|
11315
|
+
this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
|
|
11330
11316
|
}
|
|
11331
11317
|
},
|
|
11332
11318
|
handleClear() {
|
|
@@ -11334,7 +11320,7 @@ const sc = {
|
|
|
11334
11320
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11335
11321
|
},
|
|
11336
11322
|
handleDateChange() {
|
|
11337
|
-
var t, e, o, i, a, r, l,
|
|
11323
|
+
var t, e, o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se;
|
|
11338
11324
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11339
11325
|
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((O) => O.properties.date === (ie == null ? void 0 : ie.format()) && !O.properties.disabled), ue = this.handleComputePolygons(me), he = W.featureCollection([...me]);
|
|
11340
11326
|
ue.forEach((O) => {
|
|
@@ -11368,14 +11354,14 @@ const sc = {
|
|
|
11368
11354
|
var _e;
|
|
11369
11355
|
return Te.properties.name === ((_e = O.properties) == null ? void 0 : _e.name);
|
|
11370
11356
|
})) {
|
|
11371
|
-
const Te = ((
|
|
11357
|
+
const Te = ((m = (l = this.tropicals.data.features.find((_e) => {
|
|
11372
11358
|
var Ie;
|
|
11373
11359
|
return _e.properties.name === ((Ie = O.properties) == null ? void 0 : Ie.name);
|
|
11374
|
-
})) == null ? void 0 : l.properties) == null ? void 0 :
|
|
11360
|
+
})) == null ? void 0 : l.properties) == null ? void 0 : m.nameCn) || ((c = O.properties) == null ? void 0 : c.Name) || "-";
|
|
11375
11361
|
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn, de.push(O);
|
|
11376
11362
|
}
|
|
11377
11363
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11378
|
-
((
|
|
11364
|
+
((w = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((y = (k = O.properties) == null ? void 0 : k.wind) != null && y.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((T = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) >= 32 && ((D = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : D.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((L = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : L.kts) >= 47 && ((C = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((I = (z = O.properties) == null ? void 0 : z.wind) == null ? void 0 : I.kts) >= 63 && ((G = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : G.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = O.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((le = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : le.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11379
11365
|
const be = `<svg t="1719918955501"
|
|
11380
11366
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11381
11367
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11400,25 +11386,25 @@ const sc = {
|
|
|
11400
11386
|
(ne = this.map) != null && ne.getSource(this.interpolateSource) && ((se = this.map) == null || se.getSource(this.interpolateSource).setData(this.empty));
|
|
11401
11387
|
},
|
|
11402
11388
|
handleClick(t) {
|
|
11403
|
-
var a, r, l,
|
|
11389
|
+
var a, r, l, m, c, f, d, b, w, k, y;
|
|
11404
11390
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11405
|
-
(
|
|
11406
|
-
var
|
|
11407
|
-
return
|
|
11391
|
+
(_) => {
|
|
11392
|
+
var T;
|
|
11393
|
+
return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11408
11394
|
}
|
|
11409
|
-
), i = (
|
|
11410
|
-
(
|
|
11411
|
-
var
|
|
11412
|
-
return
|
|
11395
|
+
), i = (m = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : m.features.filter(
|
|
11396
|
+
(_) => {
|
|
11397
|
+
var T;
|
|
11398
|
+
return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11413
11399
|
}
|
|
11414
11400
|
);
|
|
11415
11401
|
this.activeTropicals = {
|
|
11416
|
-
name: ((
|
|
11402
|
+
name: ((c = e == null ? void 0 : e.properties) == null ? void 0 : c.name) || "-",
|
|
11417
11403
|
nameCn: ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn) || ((d = e == null ? void 0 : e.properties) == null ? void 0 : d.name) || "-",
|
|
11418
11404
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11419
|
-
forecasts: o.map((
|
|
11420
|
-
history: (
|
|
11421
|
-
showCircle: (
|
|
11405
|
+
forecasts: o.map((_) => _.properties),
|
|
11406
|
+
history: (w = i[0]) == null ? void 0 : w.properties,
|
|
11407
|
+
showCircle: (y = (k = o[0]) == null ? void 0 : k.properties) == null ? void 0 : y.showCircle
|
|
11422
11408
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11423
11409
|
},
|
|
11424
11410
|
drawTropicalsInfoMaker(t) {
|
|
@@ -11434,14 +11420,14 @@ const sc = {
|
|
|
11434
11420
|
});
|
|
11435
11421
|
},
|
|
11436
11422
|
handleForecastToggle(t) {
|
|
11437
|
-
var i, a, r, l,
|
|
11423
|
+
var i, a, r, l, m, c;
|
|
11438
11424
|
t.disabled = !t.disabled;
|
|
11439
11425
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
11440
11426
|
o.forEach((f) => {
|
|
11441
11427
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11442
11428
|
}), this.interpolateData.forEach((f) => {
|
|
11443
11429
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11444
|
-
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (
|
|
11430
|
+
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (c = (m = this.map) == null ? void 0 : m.getSource(this.clusterSource)) == null || c.setData(W.featureCollection(o)), this.handleDateChange();
|
|
11445
11431
|
},
|
|
11446
11432
|
handleStrikeProbability(t) {
|
|
11447
11433
|
this.$emit("tropicalProbability", t);
|
|
@@ -11467,8 +11453,8 @@ const sc = {
|
|
|
11467
11453
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
11468
11454
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
11469
11455
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
11470
|
-
},
|
|
11471
|
-
e.push(
|
|
11456
|
+
}, m = this.handleComputeArc(o.geometry.coordinates, l, { ...o.properties, level: 10 });
|
|
11457
|
+
e.push(m);
|
|
11472
11458
|
}
|
|
11473
11459
|
return e;
|
|
11474
11460
|
},
|
|
@@ -11476,23 +11462,23 @@ const sc = {
|
|
|
11476
11462
|
var r;
|
|
11477
11463
|
const i = [];
|
|
11478
11464
|
for (const l in e) {
|
|
11479
|
-
const
|
|
11480
|
-
let
|
|
11465
|
+
const m = e[l] ?? 0;
|
|
11466
|
+
let c;
|
|
11481
11467
|
switch (l) {
|
|
11482
11468
|
case "ne":
|
|
11483
|
-
|
|
11469
|
+
c = W.lineArc(t, m, 0, 90, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11484
11470
|
break;
|
|
11485
11471
|
case "se":
|
|
11486
|
-
|
|
11472
|
+
c = W.lineArc(t, m, 90, 180, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11487
11473
|
break;
|
|
11488
11474
|
case "sw":
|
|
11489
|
-
|
|
11475
|
+
c = W.lineArc(t, m, 180, 270, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11490
11476
|
break;
|
|
11491
11477
|
case "nw":
|
|
11492
|
-
|
|
11478
|
+
c = W.lineArc(t, m, 270, 360, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11493
11479
|
break;
|
|
11494
11480
|
}
|
|
11495
|
-
i.push(...(r =
|
|
11481
|
+
i.push(...(r = c == null ? void 0 : c.geometry) == null ? void 0 : r.coordinates);
|
|
11496
11482
|
}
|
|
11497
11483
|
const a = W.lineString(i);
|
|
11498
11484
|
return W.lineToPolygon(a, { properties: o });
|
|
@@ -11501,7 +11487,7 @@ const sc = {
|
|
|
11501
11487
|
this.$emit("tropicalNotification", t);
|
|
11502
11488
|
},
|
|
11503
11489
|
handleHover(t) {
|
|
11504
|
-
var a, r, l,
|
|
11490
|
+
var a, r, l, m, c;
|
|
11505
11491
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11506
11492
|
const o = this.map.queryRenderedFeatures(
|
|
11507
11493
|
t.point,
|
|
@@ -11522,7 +11508,7 @@ const sc = {
|
|
|
11522
11508
|
return f.geometry.type === "LineString" && f.properties.type === "forecast" && f.properties.name === ((d = o == null ? void 0 : o.properties) == null ? void 0 : d.name);
|
|
11523
11509
|
}
|
|
11524
11510
|
);
|
|
11525
|
-
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (
|
|
11511
|
+
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (m = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : m.date, (c = this.hoverMarker) == null || c.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
11526
11512
|
const f = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
11527
11513
|
this.hoverMarker = new ze.Marker(f).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
11528
11514
|
}));
|
|
@@ -11571,18 +11557,18 @@ const sc = {
|
|
|
11571
11557
|
class: "d-flex justify-start align-center"
|
|
11572
11558
|
}, Qc = { class: "text-label pr-1" }, $c = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
11573
11559
|
function tm(t, e, o, i, a, r) {
|
|
11574
|
-
const l =
|
|
11560
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("v-icon"), f = v("VCardText"), d = v("VDivider"), b = v("VCardActions"), w = v("VCard"), k = v("v-card-title"), y = v("v-divider");
|
|
11575
11561
|
return g(), S("div", lc, [
|
|
11576
11562
|
s("div", {
|
|
11577
11563
|
class: "menu-bar-box transition pa-1",
|
|
11578
11564
|
style: ee({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
|
|
11579
11565
|
}, [
|
|
11580
|
-
p(
|
|
11566
|
+
p(m, {
|
|
11581
11567
|
text: t.$t("tropical.tropicals"),
|
|
11582
11568
|
location: "left"
|
|
11583
11569
|
}, {
|
|
11584
|
-
activator: u(({ props:
|
|
11585
|
-
p(l, j(
|
|
11570
|
+
activator: u(({ props: _ }) => [
|
|
11571
|
+
p(l, j(_, {
|
|
11586
11572
|
"min-width": "32",
|
|
11587
11573
|
width: "32",
|
|
11588
11574
|
height: "32",
|
|
@@ -11602,20 +11588,20 @@ function tm(t, e, o, i, a, r) {
|
|
|
11602
11588
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (g(), S("div", {
|
|
11603
11589
|
key: 0,
|
|
11604
11590
|
id: "idm-tropical-gl4-info",
|
|
11605
|
-
class:
|
|
11591
|
+
class: ge(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
|
|
11606
11592
|
}, [
|
|
11607
|
-
p(
|
|
11608
|
-
class:
|
|
11593
|
+
p(w, {
|
|
11594
|
+
class: ge(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
|
|
11609
11595
|
elevation: o.simple ? 0 : 16
|
|
11610
11596
|
}, {
|
|
11611
11597
|
default: u(() => [
|
|
11612
11598
|
p(f, null, {
|
|
11613
11599
|
default: u(() => {
|
|
11614
|
-
var
|
|
11600
|
+
var _, T, B, D, x, L, P, C, z, I, F, G;
|
|
11615
11601
|
return [
|
|
11616
11602
|
s("div", nc, [
|
|
11617
|
-
s("span", cc, n(o.locale === "en" ? (
|
|
11618
|
-
(
|
|
11603
|
+
s("span", cc, n(o.locale === "en" ? (_ = a.activeTropicals) == null ? void 0 : _.Name : ((T = a.activeTropicals) == null ? void 0 : T.nameCn) || ((B = a.activeTropicals) == null ? void 0 : B.Name) || "-"), 1),
|
|
11604
|
+
(x = (D = a.activeTropicals) == null ? void 0 : D.history) != null && x.level ? (g(), S("span", mc, ", " + n((P = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : P.level), 1)) : R("", !0)
|
|
11619
11605
|
]),
|
|
11620
11606
|
p(l, {
|
|
11621
11607
|
icon: "",
|
|
@@ -11625,7 +11611,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11625
11611
|
onClick: Se(r.handleCloseInfoMarker, ["stop"])
|
|
11626
11612
|
}, {
|
|
11627
11613
|
default: u(() => [
|
|
11628
|
-
p(
|
|
11614
|
+
p(c, {
|
|
11629
11615
|
icon: "mdi-close",
|
|
11630
11616
|
class: "text-label text-h4"
|
|
11631
11617
|
})
|
|
@@ -11634,7 +11620,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11634
11620
|
}, 8, ["onClick"]),
|
|
11635
11621
|
s("div", hc, [
|
|
11636
11622
|
s("span", dc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11637
|
-
s("span", null, n(r.computeTime(((
|
|
11623
|
+
s("span", null, n(r.computeTime(((z = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : z.updated) || ((G = (F = (I = a.activeTropicals) == null ? void 0 : I.forecasts) == null ? void 0 : F.filter((Y) => !Y.disabled)[0]) == null ? void 0 : G.date), o.timeZone)), 1)
|
|
11638
11624
|
])
|
|
11639
11625
|
];
|
|
11640
11626
|
}),
|
|
@@ -11643,39 +11629,39 @@ function tm(t, e, o, i, a, r) {
|
|
|
11643
11629
|
p(d),
|
|
11644
11630
|
p(f, { class: "text-body-1 py-3" }, {
|
|
11645
11631
|
default: u(() => {
|
|
11646
|
-
var
|
|
11632
|
+
var _, T, B, D, x, L, P, C, z;
|
|
11647
11633
|
return [
|
|
11648
11634
|
s("div", pc, [
|
|
11649
11635
|
s("div", uc, [
|
|
11650
11636
|
s("label", gc, n(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11651
|
-
s("span", null, n(((
|
|
11637
|
+
s("span", null, n(((T = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : T.kts) || "-") + " kts", 1),
|
|
11652
11638
|
s("span", null, ", BF " + n(r.computeBF(((D = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : D.kts) || "-")), 1)
|
|
11653
11639
|
]),
|
|
11654
11640
|
s("div", fc, [
|
|
11655
11641
|
s("label", yc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11656
|
-
s("span", null, n(((
|
|
11642
|
+
s("span", null, n(((L = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : L.pressure) || "-") + " hPa", 1)
|
|
11657
11643
|
])
|
|
11658
11644
|
]),
|
|
11659
11645
|
s("div", bc, [
|
|
11660
11646
|
s("div", wc, [
|
|
11661
11647
|
s("label", xc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11662
|
-
s("span", null, n(((
|
|
11648
|
+
s("span", null, n(((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.kts) || "-") + " kts", 1)
|
|
11663
11649
|
]),
|
|
11664
11650
|
s("div", vc, [
|
|
11665
11651
|
s("label", _c, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11666
|
-
s("span", null, n(((
|
|
11652
|
+
s("span", null, n(((C = r.computeMovement(a.activeTropicals)) == null ? void 0 : C.deg) || "-") + "°", 1)
|
|
11667
11653
|
])
|
|
11668
11654
|
]),
|
|
11669
11655
|
s("div", kc, [
|
|
11670
11656
|
s("label", zc, n(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11671
11657
|
s("div", Lc, [
|
|
11672
|
-
(g(!0), S(xe, null, ke((
|
|
11658
|
+
(g(!0), S(xe, null, ke((z = a.activeTropicals) == null ? void 0 : z.forecasts, (I, F) => (g(), A(l, {
|
|
11673
11659
|
key: F,
|
|
11674
11660
|
density: "compact",
|
|
11675
11661
|
variant: I.disabled ? "text" : "flat",
|
|
11676
11662
|
color: I.disabled ? "" : "primary",
|
|
11677
11663
|
"min-width": 30,
|
|
11678
|
-
class:
|
|
11664
|
+
class: ge(["model text-none text-body-1 px-1", I.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11679
11665
|
onClick: Se((G) => r.handleForecastToggle(I), ["stop"])
|
|
11680
11666
|
}, {
|
|
11681
11667
|
default: u(() => [
|
|
@@ -11701,7 +11687,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11701
11687
|
variant: "text",
|
|
11702
11688
|
color: a.showLegend ? "primary" : "",
|
|
11703
11689
|
class: "text-none text-body-1",
|
|
11704
|
-
onClick: e[0] || (e[0] = Se((
|
|
11690
|
+
onClick: e[0] || (e[0] = Se((_) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11705
11691
|
}, {
|
|
11706
11692
|
prepend: u(() => e[4] || (e[4] = [
|
|
11707
11693
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
@@ -11717,7 +11703,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11717
11703
|
variant: "text",
|
|
11718
11704
|
density: "compact",
|
|
11719
11705
|
class: "text-none text-body-1",
|
|
11720
|
-
onClick: e[1] || (e[1] = Se((
|
|
11706
|
+
onClick: e[1] || (e[1] = Se((_) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11721
11707
|
}, {
|
|
11722
11708
|
default: u(() => [
|
|
11723
11709
|
K(n(t.$t("actions.notify")), 1)
|
|
@@ -11729,7 +11715,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11729
11715
|
density: "compact",
|
|
11730
11716
|
"append-icon": "mdi-chevron-right",
|
|
11731
11717
|
class: "text-none text-body-1",
|
|
11732
|
-
onClick: e[2] || (e[2] = Se((
|
|
11718
|
+
onClick: e[2] || (e[2] = Se((_) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11733
11719
|
}, {
|
|
11734
11720
|
default: u(() => [
|
|
11735
11721
|
K(n(t.$t("actions.viewReport")), 1)
|
|
@@ -11746,7 +11732,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11746
11732
|
o.simple ? (g(), S("div", Tc, e[5] || (e[5] = [
|
|
11747
11733
|
ei('<div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon td"></div><div class="label">TD</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sty"></div><div class="label">STY</div></div></div><div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="pa-1"><div class="w-100 legend d-flex justify-start align-center py-2 ga-2"><div class="icon history"></div><div class="label">History</div><div class="icon forecast"></div><div class="label">Forecast</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3)
|
|
11748
11734
|
]))) : (g(), S("div", Cc, [
|
|
11749
|
-
Ye(p(
|
|
11735
|
+
Ye(p(w, { elevation: "16" }, {
|
|
11750
11736
|
default: u(() => [
|
|
11751
11737
|
p(f, null, {
|
|
11752
11738
|
default: u(() => [
|
|
@@ -11808,47 +11794,47 @@ function tm(t, e, o, i, a, r) {
|
|
|
11808
11794
|
])
|
|
11809
11795
|
]))
|
|
11810
11796
|
], 2)) : R("", !0),
|
|
11811
|
-
Ye(p(
|
|
11797
|
+
Ye(p(w, {
|
|
11812
11798
|
id: "tropicalHoverMarkerInfo",
|
|
11813
11799
|
elevation: "16",
|
|
11814
11800
|
"max-width": "280"
|
|
11815
11801
|
}, {
|
|
11816
11802
|
default: u(() => [
|
|
11817
|
-
p(
|
|
11803
|
+
p(k, null, {
|
|
11818
11804
|
default: u(() => {
|
|
11819
|
-
var
|
|
11805
|
+
var _, T, B, D;
|
|
11820
11806
|
return [
|
|
11821
11807
|
s("div", Dc, [
|
|
11822
|
-
s("span", Ic, n(o.locale === "en" ? (
|
|
11808
|
+
s("span", Ic, n(o.locale === "en" ? (_ = a.hoverPoint) == null ? void 0 : _.Name : ((T = a.hoverPoint) == null ? void 0 : T.nameCn) || ((B = a.hoverPoint) == null ? void 0 : B.Name)), 1),
|
|
11823
11809
|
s("span", Rc, "[ " + n((D = a.hoverPoint) == null ? void 0 : D.level) + " ]", 1)
|
|
11824
11810
|
])
|
|
11825
11811
|
];
|
|
11826
11812
|
}),
|
|
11827
11813
|
_: 1
|
|
11828
11814
|
}),
|
|
11829
|
-
p(
|
|
11815
|
+
p(y),
|
|
11830
11816
|
p(f, { class: "text-body-1" }, {
|
|
11831
11817
|
default: u(() => {
|
|
11832
|
-
var
|
|
11818
|
+
var _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se;
|
|
11833
11819
|
return [
|
|
11834
11820
|
s("div", Ac, [
|
|
11835
|
-
((
|
|
11821
|
+
((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (g(), S("div", Oc, [
|
|
11836
11822
|
s("label", Bc, n(t.$t("tropical.updated")) + " : ", 1),
|
|
11837
|
-
s("span", null, n(r.computeTzTime((
|
|
11823
|
+
s("span", null, n(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.update, o.timeZone)), 1)
|
|
11838
11824
|
])) : R("", !0),
|
|
11839
11825
|
((B = a.hoverPoint) == null ? void 0 : B.type) === "forecast" ? (g(), S("div", jc, [
|
|
11840
11826
|
s("label", Ec, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11841
11827
|
s("span", null, n(r.computeTzTime((D = a.hoverPoint) == null ? void 0 : D.date, o.timeZone)), 1)
|
|
11842
11828
|
])) : R("", !0),
|
|
11843
|
-
((
|
|
11829
|
+
((x = a.hoverPoint) == null ? void 0 : x.type) === "history" ? (g(), S("div", Nc, [
|
|
11844
11830
|
s("label", Fc, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11845
|
-
s("span", null, n(r.computeTzTime((
|
|
11831
|
+
s("span", null, n(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
|
|
11846
11832
|
])) : R("", !0),
|
|
11847
|
-
((
|
|
11833
|
+
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (g(), S("div", Hc, [
|
|
11848
11834
|
s("label", Gc, n(t.$t("tropical.model")) + " : ", 1),
|
|
11849
|
-
s("span", null, n(((
|
|
11835
|
+
s("span", null, n(((C = a.hoverPoint) == null ? void 0 : C.model) ?? "-"), 1)
|
|
11850
11836
|
])) : R("", !0),
|
|
11851
|
-
((
|
|
11837
|
+
((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (g(), S("div", Wc, [
|
|
11852
11838
|
s("label", Uc, n(t.$t("weather.wind")) + " : ", 1),
|
|
11853
11839
|
s("span", null, n(((F = JSON.parse((I = a.hoverPoint) == null ? void 0 : I.wind)) == null ? void 0 : F.kts) ?? "-") + " kts", 1)
|
|
11854
11840
|
])) : R("", !0),
|
|
@@ -12039,11 +12025,11 @@ const om = {
|
|
|
12039
12025
|
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
12040
12026
|
},
|
|
12041
12027
|
handleResetMinMax() {
|
|
12042
|
-
var a, r, l,
|
|
12028
|
+
var a, r, l, m, c;
|
|
12043
12029
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
12044
12030
|
return;
|
|
12045
12031
|
const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
|
|
12046
|
-
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((
|
|
12032
|
+
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((c = (m = M()) == null ? void 0 : m.utc()) == null ? void 0 : c.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
|
|
12047
12033
|
},
|
|
12048
12034
|
handleOpenDatePicker() {
|
|
12049
12035
|
this.disabled || (this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth());
|
|
@@ -12083,16 +12069,16 @@ const om = {
|
|
|
12083
12069
|
style: { height: "56px" }
|
|
12084
12070
|
};
|
|
12085
12071
|
function nm(t, e, o, i, a, r) {
|
|
12086
|
-
const l =
|
|
12072
|
+
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"), w = v("VBtn"), k = v("VCardActions"), y = v("VCard");
|
|
12087
12073
|
return g(), S("div", am, [
|
|
12088
12074
|
s("div", {
|
|
12089
12075
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12090
|
-
class:
|
|
12091
|
-
onClick: e[0] || (e[0] = (...
|
|
12076
|
+
class: ge([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
|
|
12077
|
+
onClick: e[0] || (e[0] = (..._) => r.handleOpenDatePicker && r.handleOpenDatePicker(..._))
|
|
12092
12078
|
}, [
|
|
12093
12079
|
s("span", im, n(a.currentDateTime) + " | UTC " + n(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
12094
12080
|
], 6),
|
|
12095
|
-
a.showDatePicker ? (g(), A(
|
|
12081
|
+
a.showDatePicker ? (g(), A(y, {
|
|
12096
12082
|
key: 0,
|
|
12097
12083
|
class: "card-box d-flex flex-column border",
|
|
12098
12084
|
style: ee(r.getStyle)
|
|
@@ -12103,7 +12089,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12103
12089
|
s("div", rm, [
|
|
12104
12090
|
p(l, {
|
|
12105
12091
|
modelValue: a.currentDate,
|
|
12106
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12092
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.currentDate = _),
|
|
12107
12093
|
min: a.minDate,
|
|
12108
12094
|
max: a.maxDate,
|
|
12109
12095
|
"mode-icon": () => r.currentYear,
|
|
@@ -12115,7 +12101,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12115
12101
|
"onUpdate:month": r.handleUpdateMonth
|
|
12116
12102
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
12117
12103
|
]),
|
|
12118
|
-
p(
|
|
12104
|
+
p(m, {
|
|
12119
12105
|
class: "h-100",
|
|
12120
12106
|
vertical: ""
|
|
12121
12107
|
}),
|
|
@@ -12123,22 +12109,22 @@ function nm(t, e, o, i, a, r) {
|
|
|
12123
12109
|
s("div", lm, n(a.currentTime), 1),
|
|
12124
12110
|
p(d, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
12125
12111
|
default: u(() => [
|
|
12126
|
-
(g(!0), S(xe, null, ke(r.hourOptions, (
|
|
12127
|
-
key:
|
|
12128
|
-
value:
|
|
12112
|
+
(g(!0), S(xe, null, ke(r.hourOptions, (_, T) => (g(), A(f, {
|
|
12113
|
+
key: T,
|
|
12114
|
+
value: _,
|
|
12129
12115
|
color: "primary",
|
|
12130
|
-
active: a.currentTime ===
|
|
12116
|
+
active: a.currentTime === _,
|
|
12131
12117
|
rounded: "",
|
|
12132
12118
|
height: "26",
|
|
12133
12119
|
"min-height": "26"
|
|
12134
12120
|
}, {
|
|
12135
12121
|
default: u(() => [
|
|
12136
|
-
p(
|
|
12122
|
+
p(c, {
|
|
12137
12123
|
class: "text-body-2 font-weight-600 text-center",
|
|
12138
|
-
onClick: (B) => a.currentTime =
|
|
12124
|
+
onClick: (B) => a.currentTime = _
|
|
12139
12125
|
}, {
|
|
12140
12126
|
default: u(() => [
|
|
12141
|
-
K(n(
|
|
12127
|
+
K(n(_), 1)
|
|
12142
12128
|
]),
|
|
12143
12129
|
_: 2
|
|
12144
12130
|
}, 1032, ["onClick"])
|
|
@@ -12152,13 +12138,13 @@ function nm(t, e, o, i, a, r) {
|
|
|
12152
12138
|
]),
|
|
12153
12139
|
_: 1
|
|
12154
12140
|
}),
|
|
12155
|
-
p(
|
|
12156
|
-
p(
|
|
12141
|
+
p(m),
|
|
12142
|
+
p(k, {
|
|
12157
12143
|
class: "justify-end pa-0 pr-4",
|
|
12158
12144
|
style: { height: "50px" }
|
|
12159
12145
|
}, {
|
|
12160
12146
|
default: u(() => [
|
|
12161
|
-
p(
|
|
12147
|
+
p(w, {
|
|
12162
12148
|
size: "small",
|
|
12163
12149
|
variant: "tonal",
|
|
12164
12150
|
class: "text-none text-body-2",
|
|
@@ -12169,7 +12155,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12169
12155
|
]),
|
|
12170
12156
|
_: 1
|
|
12171
12157
|
}, 8, ["onClick"]),
|
|
12172
|
-
p(
|
|
12158
|
+
p(w, {
|
|
12173
12159
|
size: "small",
|
|
12174
12160
|
variant: "flat",
|
|
12175
12161
|
color: "primary",
|
|
@@ -12318,7 +12304,7 @@ const cm = {
|
|
|
12318
12304
|
this.handleResetDateRange(), this.handleResetMinMax();
|
|
12319
12305
|
},
|
|
12320
12306
|
handleResetDateRange() {
|
|
12321
|
-
var r, l,
|
|
12307
|
+
var r, l, m;
|
|
12322
12308
|
let t, e;
|
|
12323
12309
|
if ((r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays, !e) {
|
|
12324
12310
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
@@ -12326,13 +12312,13 @@ const cm = {
|
|
|
12326
12312
|
}
|
|
12327
12313
|
const o = M.tz(t, this.timeZoneName).clone(), i = [];
|
|
12328
12314
|
if (e < 0)
|
|
12329
|
-
for (let
|
|
12330
|
-
i.push(o.clone().add(
|
|
12315
|
+
for (let c = e + 1; c <= 0; c++)
|
|
12316
|
+
i.push(o.clone().add(c, "days").format());
|
|
12331
12317
|
else
|
|
12332
|
-
for (let
|
|
12333
|
-
i.push(o.clone().add(
|
|
12318
|
+
for (let c = 0; c < e; c++)
|
|
12319
|
+
i.push(o.clone().add(c, "days").format());
|
|
12334
12320
|
this.dateRange = i;
|
|
12335
|
-
const a = [this.dateRange[0], this.dateRange[((
|
|
12321
|
+
const a = [this.dateRange[0], this.dateRange[((m = this.dateRange) == null ? void 0 : m.length) - 1]];
|
|
12336
12322
|
this.dateRangeStr = `${M.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${M.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
|
|
12337
12323
|
"dateRange",
|
|
12338
12324
|
[
|
|
@@ -12379,12 +12365,12 @@ const cm = {
|
|
|
12379
12365
|
ref: "idmGl4DatePicker"
|
|
12380
12366
|
}, hm = { class: "flex-1-1-0" }, dm = { class: "pa-0" };
|
|
12381
12367
|
function pm(t, e, o, i, a, r) {
|
|
12382
|
-
const l =
|
|
12368
|
+
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"), w = v("VCard");
|
|
12383
12369
|
return g(), S("div", mm, [
|
|
12384
12370
|
s("div", {
|
|
12385
12371
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12386
12372
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12387
|
-
onClick: e[0] || (e[0] = (...
|
|
12373
|
+
onClick: e[0] || (e[0] = (...k) => r.handleOpenDatePicker && r.handleOpenDatePicker(...k))
|
|
12388
12374
|
}, [
|
|
12389
12375
|
s("span", hm, n(a.dateRangeStr), 1),
|
|
12390
12376
|
a.dateRangeStr ? (g(), A(l, {
|
|
@@ -12394,18 +12380,18 @@ function pm(t, e, o, i, a, r) {
|
|
|
12394
12380
|
onClick: Se(r.handleClearDate, ["stop"])
|
|
12395
12381
|
}, null, 8, ["onClick"])) : R("", !0)
|
|
12396
12382
|
], 4),
|
|
12397
|
-
a.showDatePicker ? (g(), A(
|
|
12383
|
+
a.showDatePicker ? (g(), A(w, {
|
|
12398
12384
|
key: 0,
|
|
12399
12385
|
class: "card-box d-flex flex-column border",
|
|
12400
12386
|
style: ee(r.getStyle)
|
|
12401
12387
|
}, {
|
|
12402
12388
|
default: u(() => [
|
|
12403
|
-
p(
|
|
12389
|
+
p(c, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
12404
12390
|
default: u(() => [
|
|
12405
12391
|
s("div", dm, [
|
|
12406
|
-
p(
|
|
12392
|
+
p(m, {
|
|
12407
12393
|
modelValue: a.dateRange,
|
|
12408
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12394
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.dateRange = k),
|
|
12409
12395
|
min: a.minDate,
|
|
12410
12396
|
max: a.maxDate,
|
|
12411
12397
|
"mode-icon": () => r.currentYear,
|
|
@@ -13496,10 +13482,10 @@ const um = {
|
|
|
13496
13482
|
}), this.loading = !1;
|
|
13497
13483
|
},
|
|
13498
13484
|
initTableData(t) {
|
|
13499
|
-
var o, i, a, r, l,
|
|
13485
|
+
var o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be;
|
|
13500
13486
|
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;
|
|
13501
13487
|
const e = ((l = To.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13502
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((
|
|
13488
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((D = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : D.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (x = e == null ? void 0 : e.weather) == null ? void 0 : x.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((G = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : G.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((se = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : se.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.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 = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
|
|
13503
13489
|
},
|
|
13504
13490
|
handleBind() {
|
|
13505
13491
|
var t, e;
|
|
@@ -13618,18 +13604,18 @@ const um = {
|
|
|
13618
13604
|
"aria-hidden": "true"
|
|
13619
13605
|
}, bh = ["xlink:href"];
|
|
13620
13606
|
function wh(t, e, o, i, a, r) {
|
|
13621
|
-
const l =
|
|
13607
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"), w = v("VRow"), k = v("DateTimePicker"), y = v("VBtnToggle"), _ = v("VCardText"), T = v("VCardActions"), B = v("VForm"), D = v("VCard");
|
|
13622
13608
|
return g(), S("div", gm, [
|
|
13623
13609
|
s("div", {
|
|
13624
13610
|
class: "menu-bar-box transition pa-1",
|
|
13625
13611
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
13626
13612
|
}, [
|
|
13627
|
-
p(
|
|
13613
|
+
p(m, {
|
|
13628
13614
|
text: t.$t("spot.spotsMeteo"),
|
|
13629
13615
|
location: "left"
|
|
13630
13616
|
}, {
|
|
13631
|
-
activator: u(({ props:
|
|
13632
|
-
p(l, j(
|
|
13617
|
+
activator: u(({ props: x }) => [
|
|
13618
|
+
p(l, j(x, {
|
|
13633
13619
|
"min-width": "32",
|
|
13634
13620
|
width: "32",
|
|
13635
13621
|
height: "32",
|
|
@@ -13652,7 +13638,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13652
13638
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
13653
13639
|
}, {
|
|
13654
13640
|
default: u(() => [
|
|
13655
|
-
p(
|
|
13641
|
+
p(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13656
13642
|
default: u(() => [
|
|
13657
13643
|
s("div", fm, [
|
|
13658
13644
|
s("div", ym, n(t.$t("spot.spotWeather")), 1)
|
|
@@ -13681,7 +13667,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13681
13667
|
onSubmit: Se(r.submitForm, ["prevent"])
|
|
13682
13668
|
}, {
|
|
13683
13669
|
default: u(() => [
|
|
13684
|
-
p(
|
|
13670
|
+
p(_, { class: "text-body-1 py-1" }, {
|
|
13685
13671
|
default: u(() => [
|
|
13686
13672
|
s("div", bm, [
|
|
13687
13673
|
(g(), S("svg", wm, [
|
|
@@ -13691,7 +13677,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13691
13677
|
])),
|
|
13692
13678
|
s("div", null, n(t.$t("spot.lng")), 1)
|
|
13693
13679
|
]),
|
|
13694
|
-
p(
|
|
13680
|
+
p(w, { class: "ma-0" }, {
|
|
13695
13681
|
default: u(() => [
|
|
13696
13682
|
p(b, {
|
|
13697
13683
|
cols: "4",
|
|
@@ -13700,7 +13686,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13700
13686
|
default: u(() => [
|
|
13701
13687
|
p(d, {
|
|
13702
13688
|
modelValue: a.form.lngDegree,
|
|
13703
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
13689
|
+
"onUpdate:modelValue": e[0] || (e[0] = (x) => a.form.lngDegree = x),
|
|
13704
13690
|
rules: a.formRules.lngDegree,
|
|
13705
13691
|
density: "compact",
|
|
13706
13692
|
variant: "outlined",
|
|
@@ -13720,7 +13706,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13720
13706
|
default: u(() => [
|
|
13721
13707
|
p(d, {
|
|
13722
13708
|
modelValue: a.form.lngMinute,
|
|
13723
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
13709
|
+
"onUpdate:modelValue": e[1] || (e[1] = (x) => a.form.lngMinute = x),
|
|
13724
13710
|
rules: a.formRules.lngMinute,
|
|
13725
13711
|
label: "",
|
|
13726
13712
|
density: "compact",
|
|
@@ -13747,7 +13733,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13747
13733
|
height: "32",
|
|
13748
13734
|
class: "text-body-1 btn-bg-1",
|
|
13749
13735
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13750
|
-
onClick: e[2] || (e[2] = (
|
|
13736
|
+
onClick: e[2] || (e[2] = (x) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
13751
13737
|
}, {
|
|
13752
13738
|
default: u(() => [
|
|
13753
13739
|
K(n(a.form.lngDirection), 1)
|
|
@@ -13768,7 +13754,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13768
13754
|
])),
|
|
13769
13755
|
s("div", null, n(t.$t("spot.lat")), 1)
|
|
13770
13756
|
]),
|
|
13771
|
-
p(
|
|
13757
|
+
p(w, { class: "ma-0" }, {
|
|
13772
13758
|
default: u(() => [
|
|
13773
13759
|
p(b, {
|
|
13774
13760
|
cols: "4",
|
|
@@ -13777,7 +13763,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13777
13763
|
default: u(() => [
|
|
13778
13764
|
p(d, {
|
|
13779
13765
|
modelValue: a.form.latDegree,
|
|
13780
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
13766
|
+
"onUpdate:modelValue": e[3] || (e[3] = (x) => a.form.latDegree = x),
|
|
13781
13767
|
rules: a.formRules.latDegree,
|
|
13782
13768
|
label: "",
|
|
13783
13769
|
density: "compact",
|
|
@@ -13800,7 +13786,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13800
13786
|
default: u(() => [
|
|
13801
13787
|
p(d, {
|
|
13802
13788
|
modelValue: a.form.latMinute,
|
|
13803
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13789
|
+
"onUpdate:modelValue": e[4] || (e[4] = (x) => a.form.latMinute = x),
|
|
13804
13790
|
rules: a.formRules.latMinute,
|
|
13805
13791
|
label: "",
|
|
13806
13792
|
density: "compact",
|
|
@@ -13827,7 +13813,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13827
13813
|
height: "32",
|
|
13828
13814
|
class: "text-body-1 btn-bg-1",
|
|
13829
13815
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13830
|
-
onClick: e[5] || (e[5] = (
|
|
13816
|
+
onClick: e[5] || (e[5] = (x) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13831
13817
|
}, {
|
|
13832
13818
|
default: u(() => [
|
|
13833
13819
|
K(n(a.form.latDirection), 1)
|
|
@@ -13848,18 +13834,18 @@ function wh(t, e, o, i, a, r) {
|
|
|
13848
13834
|
])),
|
|
13849
13835
|
s("div", null, n(t.$t("spot.dateTime")), 1)
|
|
13850
13836
|
]),
|
|
13851
|
-
p(
|
|
13837
|
+
p(w, { class: "ma-0 mb-4" }, {
|
|
13852
13838
|
default: u(() => [
|
|
13853
13839
|
p(b, {
|
|
13854
13840
|
cols: "12",
|
|
13855
13841
|
class: "pa-0"
|
|
13856
13842
|
}, {
|
|
13857
13843
|
default: u(() => [
|
|
13858
|
-
p(
|
|
13844
|
+
p(k, j({
|
|
13859
13845
|
"date-time": a.form.dateTime,
|
|
13860
13846
|
"time-zone": o.timeZone
|
|
13861
13847
|
}, t.$attrs, {
|
|
13862
|
-
onDateTime: e[6] || (e[6] = (
|
|
13848
|
+
onDateTime: e[6] || (e[6] = (x) => a.form.dateTime = x)
|
|
13863
13849
|
}), null, 16, ["date-time", "time-zone"])
|
|
13864
13850
|
]),
|
|
13865
13851
|
_: 1
|
|
@@ -13875,16 +13861,16 @@ function wh(t, e, o, i, a, r) {
|
|
|
13875
13861
|
])),
|
|
13876
13862
|
s("div", null, n(t.$t("weather.forecastModel")), 1)
|
|
13877
13863
|
]),
|
|
13878
|
-
p(
|
|
13864
|
+
p(w, { class: "ma-0 mb-2" }, {
|
|
13879
13865
|
default: u(() => [
|
|
13880
13866
|
p(b, {
|
|
13881
13867
|
cols: "12",
|
|
13882
13868
|
class: "pa-0"
|
|
13883
13869
|
}, {
|
|
13884
13870
|
default: u(() => [
|
|
13885
|
-
p(
|
|
13871
|
+
p(y, {
|
|
13886
13872
|
modelValue: a.form.forecastModel,
|
|
13887
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13873
|
+
"onUpdate:modelValue": e[7] || (e[7] = (x) => a.form.forecastModel = x),
|
|
13888
13874
|
class: "w-100",
|
|
13889
13875
|
rounded: "",
|
|
13890
13876
|
height: "30",
|
|
@@ -13896,7 +13882,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13896
13882
|
density: "compact",
|
|
13897
13883
|
height: "30",
|
|
13898
13884
|
value: "GFS",
|
|
13899
|
-
class:
|
|
13885
|
+
class: ge(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
|
|
13900
13886
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
13901
13887
|
"base-color": ""
|
|
13902
13888
|
}, {
|
|
@@ -13909,7 +13895,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13909
13895
|
p(l, {
|
|
13910
13896
|
density: "compact",
|
|
13911
13897
|
height: "30",
|
|
13912
|
-
class:
|
|
13898
|
+
class: ge(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
13913
13899
|
color: a.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
13914
13900
|
"base-color": "",
|
|
13915
13901
|
value: "ECMWF"
|
|
@@ -13933,7 +13919,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13933
13919
|
_: 1
|
|
13934
13920
|
}),
|
|
13935
13921
|
p(f),
|
|
13936
|
-
p(
|
|
13922
|
+
p(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
13937
13923
|
default: u(() => [
|
|
13938
13924
|
p(l, {
|
|
13939
13925
|
size: "small",
|
|
@@ -13976,7 +13962,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13976
13962
|
style: { width: "490px", "z-index": "9" }
|
|
13977
13963
|
}, {
|
|
13978
13964
|
default: u(() => [
|
|
13979
|
-
p(
|
|
13965
|
+
p(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13980
13966
|
default: u(() => [
|
|
13981
13967
|
s("div", Mm, [
|
|
13982
13968
|
e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
@@ -13999,20 +13985,20 @@ function wh(t, e, o, i, a, r) {
|
|
|
13999
13985
|
_: 1
|
|
14000
13986
|
}),
|
|
14001
13987
|
p(f),
|
|
14002
|
-
p(
|
|
13988
|
+
p(_, { class: "text-body-1 px-0 py-1" }, {
|
|
14003
13989
|
default: u(() => {
|
|
14004
|
-
var
|
|
13990
|
+
var x, L;
|
|
14005
13991
|
return [
|
|
14006
13992
|
s("div", Im, [
|
|
14007
13993
|
s("div", Rm, n(t.$t("time.time")), 1),
|
|
14008
|
-
s("div", Am, n(r.computedTzTime((
|
|
13994
|
+
s("div", Am, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14009
13995
|
]),
|
|
14010
13996
|
s("div", Om, [
|
|
14011
13997
|
e[18] || (e[18] = s("div", {
|
|
14012
13998
|
style: { width: "100px" },
|
|
14013
13999
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
14014
14000
|
}, "LT", -1)),
|
|
14015
|
-
s("div", Bm, n(r.computedLocalTime((
|
|
14001
|
+
s("div", Bm, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
14016
14002
|
]),
|
|
14017
14003
|
s("div", jm, [
|
|
14018
14004
|
s("div", Em, n(t.$t("weather.wind")), 1),
|
|
@@ -14037,13 +14023,13 @@ function wh(t, e, o, i, a, r) {
|
|
|
14037
14023
|
_: 1
|
|
14038
14024
|
}),
|
|
14039
14025
|
p(f),
|
|
14040
|
-
p(
|
|
14026
|
+
p(T, { class: "d-flex justify-space-between align-center" }, {
|
|
14041
14027
|
default: u(() => {
|
|
14042
|
-
var
|
|
14028
|
+
var x;
|
|
14043
14029
|
return [
|
|
14044
|
-
(
|
|
14045
|
-
var
|
|
14046
|
-
return (
|
|
14030
|
+
(x = o.followList) != null && x.some((L) => {
|
|
14031
|
+
var P, C;
|
|
14032
|
+
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14047
14033
|
}) ? (g(), A(l, {
|
|
14048
14034
|
key: 0,
|
|
14049
14035
|
class: "text-none text-body-1",
|
|
@@ -14051,15 +14037,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
14051
14037
|
variant: "text",
|
|
14052
14038
|
density: "compact",
|
|
14053
14039
|
height: "32",
|
|
14054
|
-
"prepend-icon": "mdi-star",
|
|
14055
14040
|
onClick: Se(r.handleCancelFollow, ["stop"])
|
|
14056
14041
|
}, {
|
|
14057
|
-
prepend: u(() => [
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
14061
|
-
})
|
|
14062
|
-
]),
|
|
14042
|
+
prepend: u(() => e[19] || (e[19] = [
|
|
14043
|
+
s("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
14044
|
+
])),
|
|
14063
14045
|
default: u(() => [
|
|
14064
14046
|
K(" " + n(t.$t("actions.unfollow")), 1)
|
|
14065
14047
|
]),
|
|
@@ -14071,12 +14053,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
14071
14053
|
variant: "text",
|
|
14072
14054
|
density: "compact",
|
|
14073
14055
|
height: "32",
|
|
14074
|
-
"prepend-icon": "mdi-star-outline",
|
|
14075
14056
|
onClick: Se(r.handleFollow, ["stop"])
|
|
14076
14057
|
}, {
|
|
14077
|
-
prepend: u(() => [
|
|
14078
|
-
|
|
14079
|
-
]),
|
|
14058
|
+
prepend: u(() => e[20] || (e[20] = [
|
|
14059
|
+
s("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
14060
|
+
])),
|
|
14080
14061
|
default: u(() => [
|
|
14081
14062
|
K(n(t.$t("actions.follow")) + " ", 1)
|
|
14082
14063
|
]),
|
|
@@ -14108,19 +14089,19 @@ function wh(t, e, o, i, a, r) {
|
|
|
14108
14089
|
style: { width: "100vw", "z-index": "1001" }
|
|
14109
14090
|
}, {
|
|
14110
14091
|
default: u(() => [
|
|
14111
|
-
p(
|
|
14092
|
+
p(c, null, {
|
|
14112
14093
|
default: u(() => {
|
|
14113
|
-
var
|
|
14094
|
+
var x;
|
|
14114
14095
|
return [
|
|
14115
14096
|
s("div", Qm, [
|
|
14116
14097
|
s("div", $m, [
|
|
14117
|
-
e[
|
|
14098
|
+
e[21] || (e[21] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
14118
14099
|
s("div", eh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14119
14100
|
]),
|
|
14120
14101
|
s("div", th, [
|
|
14121
|
-
(
|
|
14122
|
-
var
|
|
14123
|
-
return (
|
|
14102
|
+
(x = o.followList) != null && x.some((L) => {
|
|
14103
|
+
var P, C;
|
|
14104
|
+
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14124
14105
|
}) ? (g(), A(l, {
|
|
14125
14106
|
key: 0,
|
|
14126
14107
|
class: "text-none text-body-1 rounded-circle",
|
|
@@ -14131,14 +14112,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
14131
14112
|
"min-width": "28",
|
|
14132
14113
|
onClick: Se(r.handleCancelFollow, ["stop"])
|
|
14133
14114
|
}, {
|
|
14134
|
-
default: u(() => [
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
})
|
|
14140
|
-
]),
|
|
14141
|
-
_: 1
|
|
14115
|
+
default: u(() => e[22] || (e[22] = [
|
|
14116
|
+
s("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
|
|
14117
|
+
])),
|
|
14118
|
+
_: 1,
|
|
14119
|
+
__: [22]
|
|
14142
14120
|
}, 8, ["onClick"])) : (g(), A(l, {
|
|
14143
14121
|
key: 1,
|
|
14144
14122
|
class: "text-none text-body-1 rounded-circle",
|
|
@@ -14149,13 +14127,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
14149
14127
|
"min-width": "28",
|
|
14150
14128
|
onClick: Se(r.handleFollow, ["stop"])
|
|
14151
14129
|
}, {
|
|
14152
|
-
default: u(() => [
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
]),
|
|
14158
|
-
_: 1
|
|
14130
|
+
default: u(() => e[23] || (e[23] = [
|
|
14131
|
+
s("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
|
|
14132
|
+
])),
|
|
14133
|
+
_: 1,
|
|
14134
|
+
__: [23]
|
|
14159
14135
|
}, 8, ["onClick"])),
|
|
14160
14136
|
p(l, {
|
|
14161
14137
|
class: "mr-n2",
|
|
@@ -14164,35 +14140,35 @@ function wh(t, e, o, i, a, r) {
|
|
|
14164
14140
|
variant: "plain",
|
|
14165
14141
|
onClick: Se(r.handleCloseMeteo, ["stop"])
|
|
14166
14142
|
}, {
|
|
14167
|
-
default: u(() => e[
|
|
14143
|
+
default: u(() => e[24] || (e[24] = [
|
|
14168
14144
|
s("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
14169
14145
|
])),
|
|
14170
14146
|
_: 1,
|
|
14171
|
-
__: [
|
|
14147
|
+
__: [24]
|
|
14172
14148
|
}, 8, ["onClick"])
|
|
14173
14149
|
])
|
|
14174
14150
|
]),
|
|
14175
|
-
e[
|
|
14151
|
+
e[25] || (e[25] = s("div", { class: "px-5 py-0 text-label text-body-1" }, "Spot Weather", -1))
|
|
14176
14152
|
];
|
|
14177
14153
|
}),
|
|
14178
14154
|
_: 1,
|
|
14179
|
-
__: [
|
|
14155
|
+
__: [25]
|
|
14180
14156
|
}),
|
|
14181
14157
|
p(f),
|
|
14182
|
-
p(
|
|
14158
|
+
p(_, { class: "text-body-1 px-0 py-2" }, {
|
|
14183
14159
|
default: u(() => {
|
|
14184
|
-
var
|
|
14160
|
+
var x, L;
|
|
14185
14161
|
return [
|
|
14186
14162
|
s("div", oh, [
|
|
14187
14163
|
s("div", ah, n(t.$t("time.time")), 1),
|
|
14188
|
-
s("div", ih, n(r.computedTzTime((
|
|
14164
|
+
s("div", ih, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14189
14165
|
]),
|
|
14190
14166
|
s("div", rh, [
|
|
14191
|
-
e[
|
|
14167
|
+
e[26] || (e[26] = s("div", {
|
|
14192
14168
|
style: { width: "60px" },
|
|
14193
14169
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
14194
14170
|
}, "LT", -1)),
|
|
14195
|
-
s("div", sh, n(r.computedLocalTime((
|
|
14171
|
+
s("div", sh, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
14196
14172
|
]),
|
|
14197
14173
|
s("div", lh, [
|
|
14198
14174
|
s("div", nh, [
|
|
@@ -14341,41 +14317,41 @@ const vh = {
|
|
|
14341
14317
|
}
|
|
14342
14318
|
},
|
|
14343
14319
|
handleDrag(t) {
|
|
14344
|
-
var o, i, a, r, l,
|
|
14320
|
+
var o, i, a, r, l, m, c, f, d, b;
|
|
14345
14321
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14346
14322
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14347
|
-
const
|
|
14348
|
-
this.pointMarkers[
|
|
14323
|
+
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
14324
|
+
this.pointMarkers[w.id].filter((T) => {
|
|
14349
14325
|
var B;
|
|
14350
|
-
return ((B =
|
|
14351
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
14352
|
-
let
|
|
14353
|
-
|
|
14354
|
-
if (
|
|
14355
|
-
|
|
14326
|
+
return ((B = T._element) == null ? void 0 : B.id) === e;
|
|
14327
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14328
|
+
let y;
|
|
14329
|
+
w.features.forEach((T, B) => {
|
|
14330
|
+
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
14331
|
+
y = B;
|
|
14356
14332
|
return;
|
|
14357
14333
|
}
|
|
14358
14334
|
});
|
|
14359
|
-
const
|
|
14335
|
+
const _ = w.features.filter((T) => T.geometry.type === "Point");
|
|
14360
14336
|
this.handleTmpPointUpdate(
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
{ lng: (f = (
|
|
14364
|
-
|
|
14337
|
+
w,
|
|
14338
|
+
_[y - 1],
|
|
14339
|
+
{ lng: (f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: _[y].properties },
|
|
14340
|
+
y === _.length - 1 ? void 0 : _[y + 1]
|
|
14365
14341
|
);
|
|
14366
14342
|
}
|
|
14367
14343
|
},
|
|
14368
14344
|
handleDragEnd(t) {
|
|
14369
|
-
var o, i, a, r, l,
|
|
14345
|
+
var o, i, a, r, l, m, c, f, d, b;
|
|
14370
14346
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14371
14347
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14372
|
-
const
|
|
14373
|
-
this.pointMarkers[
|
|
14374
|
-
var
|
|
14375
|
-
return ((
|
|
14376
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
14377
|
-
const
|
|
14378
|
-
|
|
14348
|
+
const w = this.geojson.filter((_) => _.id === e.split("-")[0])[0];
|
|
14349
|
+
this.pointMarkers[w.id].filter((_) => {
|
|
14350
|
+
var T;
|
|
14351
|
+
return ((T = _._element) == null ? void 0 : T.id) === e;
|
|
14352
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14353
|
+
const y = w.features.filter((_) => _.geometry.type === "Point" && _.properties.id === e.split("-")[1])[0];
|
|
14354
|
+
y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((_) => _.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
14379
14355
|
}
|
|
14380
14356
|
},
|
|
14381
14357
|
handleContextmenu(t) {
|
|
@@ -14383,26 +14359,26 @@ const vh = {
|
|
|
14383
14359
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
14384
14360
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
14385
14361
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14386
|
-
const
|
|
14387
|
-
if (
|
|
14362
|
+
const m = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
14363
|
+
if (m.length > 2 && m.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
14388
14364
|
const f = document.createElement("div");
|
|
14389
14365
|
f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ze.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
14390
14366
|
}
|
|
14391
14367
|
}
|
|
14392
14368
|
},
|
|
14393
14369
|
handleClick(t) {
|
|
14394
|
-
var o, i, a, r, l,
|
|
14370
|
+
var o, i, a, r, l, m;
|
|
14395
14371
|
(o = this.contextmenu) == null || o.remove();
|
|
14396
14372
|
const e = t.originalEvent.target.className;
|
|
14397
14373
|
if (e === "marker-close") {
|
|
14398
|
-
const
|
|
14399
|
-
f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !==
|
|
14374
|
+
const c = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((d) => d.id === c)[0];
|
|
14375
|
+
f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !== c), !this.toggle && !((r = this.geojson) != null && r.some((d) => d.closed)) && this.handleUnbind();
|
|
14400
14376
|
} else if (e === "del-point") {
|
|
14401
|
-
const
|
|
14402
|
-
f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !==
|
|
14377
|
+
const c = (m = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : m.split("-"), f = this.geojson.filter((d) => d.id === c[0])[0];
|
|
14378
|
+
f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== c[1]), this.handlePointUpdate(f);
|
|
14403
14379
|
} else if (e !== "marker-label" && this.toggle) {
|
|
14404
|
-
let
|
|
14405
|
-
|
|
14380
|
+
let c = this.geojson.at(-1);
|
|
14381
|
+
c || (c = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((d) => d.geometry.type === "Point");
|
|
14406
14382
|
const f = W.feature(
|
|
14407
14383
|
{
|
|
14408
14384
|
type: "Point",
|
|
@@ -14414,7 +14390,7 @@ const vh = {
|
|
|
14414
14390
|
sumLabel: "Start"
|
|
14415
14391
|
}
|
|
14416
14392
|
);
|
|
14417
|
-
|
|
14393
|
+
c.features.push(f), this.handlePointUpdate(c);
|
|
14418
14394
|
}
|
|
14419
14395
|
},
|
|
14420
14396
|
handlePointUpdate(t) {
|
|
@@ -14423,14 +14399,14 @@ const vh = {
|
|
|
14423
14399
|
let o = 0;
|
|
14424
14400
|
const i = [];
|
|
14425
14401
|
for (let a = 1; a < e.length; a++) {
|
|
14426
|
-
const r = e[a - 1], l = e[a],
|
|
14402
|
+
const r = e[a - 1], l = e[a], m = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(c, f, m.mode === "RL", 4), b = Ve.calculateBearing(c, f, m.mode === "RL", 2);
|
|
14427
14403
|
o = q.roundPrecision(o + d, 4);
|
|
14428
|
-
let
|
|
14429
|
-
|
|
14430
|
-
const
|
|
14431
|
-
|
|
14432
|
-
const
|
|
14433
|
-
|
|
14404
|
+
let w;
|
|
14405
|
+
m.mode === "RL" ? w = q.convertToMonotonicLng([c, f]) : w = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
|
|
14406
|
+
const k = W.lineString(w.map((_) => [_.lng, _.lat]));
|
|
14407
|
+
k.properties.dist = d, k.properties.bearing = b, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
|
|
14408
|
+
const y = e[a];
|
|
14409
|
+
y.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
14434
14410
|
}
|
|
14435
14411
|
e.push(...i), t.total = o;
|
|
14436
14412
|
}
|
|
@@ -14440,20 +14416,20 @@ const vh = {
|
|
|
14440
14416
|
const a = W.featureCollection([]);
|
|
14441
14417
|
let r, l;
|
|
14442
14418
|
if (e) {
|
|
14443
|
-
const
|
|
14444
|
-
r = Ve.calculateDistance(f, d,
|
|
14419
|
+
const c = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
|
|
14420
|
+
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14445
14421
|
let b;
|
|
14446
|
-
|
|
14447
|
-
const
|
|
14448
|
-
|
|
14422
|
+
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14423
|
+
const w = W.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14424
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
14449
14425
|
}
|
|
14450
14426
|
if (i) {
|
|
14451
|
-
const
|
|
14452
|
-
r = Ve.calculateDistance(f, d,
|
|
14427
|
+
const c = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
14428
|
+
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14453
14429
|
let b;
|
|
14454
|
-
|
|
14455
|
-
const
|
|
14456
|
-
|
|
14430
|
+
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14431
|
+
const w = W.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14432
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
14457
14433
|
}
|
|
14458
14434
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
14459
14435
|
type: "geojson",
|
|
@@ -14493,22 +14469,22 @@ const vh = {
|
|
|
14493
14469
|
// 'text-halo-blur': 0,
|
|
14494
14470
|
}
|
|
14495
14471
|
});
|
|
14496
|
-
let
|
|
14472
|
+
let m;
|
|
14497
14473
|
if (i)
|
|
14498
|
-
|
|
14474
|
+
m = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
14499
14475
|
else {
|
|
14500
|
-
const
|
|
14501
|
-
|
|
14476
|
+
const c = q.roundPrecision((t.total ?? 0) + r, 1);
|
|
14477
|
+
m = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${c}</b>nm, ${this.$t(
|
|
14502
14478
|
"measure.bearing"
|
|
14503
14479
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
14504
14480
|
"measure.switchTips"
|
|
14505
14481
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
14506
14482
|
}
|
|
14507
14483
|
if (this.tipMarker)
|
|
14508
|
-
this.tipMarker._element.innerHTML =
|
|
14484
|
+
this.tipMarker._element.innerHTML = m, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
14509
14485
|
else {
|
|
14510
|
-
const
|
|
14511
|
-
|
|
14486
|
+
const c = document.createElement("div");
|
|
14487
|
+
c.className = "idm-gl4-measure-tip-marker", c.innerHTML = m, this.tipMarker = new ze.Marker(c).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
14512
14488
|
}
|
|
14513
14489
|
},
|
|
14514
14490
|
handleMove(t) {
|
|
@@ -14580,41 +14556,41 @@ const vh = {
|
|
|
14580
14556
|
// 'text-halo-blur': 0,
|
|
14581
14557
|
}
|
|
14582
14558
|
});
|
|
14583
|
-
const l = t.features.filter((
|
|
14584
|
-
for (const
|
|
14585
|
-
const
|
|
14586
|
-
|
|
14587
|
-
const f = new ze.Marker({ element:
|
|
14559
|
+
const l = t.features.filter((m) => m.geometry.type === "Point");
|
|
14560
|
+
for (const m of l) {
|
|
14561
|
+
const c = document.createElement("div");
|
|
14562
|
+
c.id = `${t.id}-${m.properties.id}`, c.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, c.innerHTML = '<div class="marker-circle"></div>';
|
|
14563
|
+
const f = new ze.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(m.geometry.coordinates).addTo(this.map);
|
|
14588
14564
|
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];
|
|
14589
14565
|
}
|
|
14590
14566
|
if (t.closed) {
|
|
14591
|
-
const
|
|
14592
|
-
d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(
|
|
14567
|
+
const m = l.at(-1), f = t.features.filter((b) => b.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
14568
|
+
d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(m.geometry.coordinates).addTo(this.map);
|
|
14593
14569
|
}
|
|
14594
14570
|
}
|
|
14595
14571
|
},
|
|
14596
14572
|
handleClear(t, e = !0) {
|
|
14597
|
-
var l,
|
|
14573
|
+
var l, m, c, f, d, b, w, k, y, _;
|
|
14598
14574
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
14599
|
-
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (
|
|
14600
|
-
|
|
14601
|
-
}), this.pointMarkers[t.id] = [], (
|
|
14575
|
+
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
14576
|
+
T == null || T.remove();
|
|
14577
|
+
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((_ = this.map) != null && _.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
14602
14578
|
}
|
|
14603
14579
|
}
|
|
14604
14580
|
}, _h = { class: "idm-gl4-measure" };
|
|
14605
14581
|
function kh(t, e, o, i, a, r) {
|
|
14606
|
-
const l =
|
|
14582
|
+
const l = v("VBtn"), m = v("VTooltip");
|
|
14607
14583
|
return g(), S("div", _h, [
|
|
14608
14584
|
s("div", {
|
|
14609
14585
|
class: "menu-bar-box transition pa-1",
|
|
14610
14586
|
style: ee({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
14611
14587
|
}, [
|
|
14612
|
-
p(
|
|
14588
|
+
p(m, {
|
|
14613
14589
|
text: t.$t("measure.measure"),
|
|
14614
14590
|
location: "left"
|
|
14615
14591
|
}, {
|
|
14616
|
-
activator: u(({ props:
|
|
14617
|
-
p(l, j(
|
|
14592
|
+
activator: u(({ props: c }) => [
|
|
14593
|
+
p(l, j(c, {
|
|
14618
14594
|
"min-width": "32",
|
|
14619
14595
|
width: "32",
|
|
14620
14596
|
height: "32",
|
|
@@ -14764,7 +14740,7 @@ const Lh = {
|
|
|
14764
14740
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
14765
14741
|
}, Ih = ["onClick"], Rh = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ah = { class: "text-body-1" };
|
|
14766
14742
|
function Oh(t, e, o, i, a, r) {
|
|
14767
|
-
const l =
|
|
14743
|
+
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"), w = v("VDivider"), k = v("VTooltip");
|
|
14768
14744
|
return g(), S("div", Ph, [
|
|
14769
14745
|
s("div", {
|
|
14770
14746
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -14778,10 +14754,10 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14778
14754
|
"day-about": a.dayAbout,
|
|
14779
14755
|
"interval-hour": a.intervalHour
|
|
14780
14756
|
}, t.$attrs, {
|
|
14781
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
14782
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
14783
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
14784
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
14757
|
+
onCurrentTimestamp: e[0] || (e[0] = (y) => a.currentTimestamp = y),
|
|
14758
|
+
onCurrentRealTime: e[1] || (e[1] = (y) => a.currentRealTime = y),
|
|
14759
|
+
onMinTimestamp: e[2] || (e[2] = (y) => a.minTimestamp = y),
|
|
14760
|
+
onMaxTimestamp: e[3] || (e[3] = (y) => a.maxTimestamp = y)
|
|
14785
14761
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
14786
14762
|
p(b, {
|
|
14787
14763
|
text: "",
|
|
@@ -14795,24 +14771,24 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14795
14771
|
default: u(() => [
|
|
14796
14772
|
p(f, { class: "pa-1" }, {
|
|
14797
14773
|
default: u(() => [
|
|
14798
|
-
(g(!0), S(xe, null, ke(a.intervalOptions, (
|
|
14799
|
-
key:
|
|
14800
|
-
value:
|
|
14801
|
-
variant: a.intervalHour ===
|
|
14774
|
+
(g(!0), S(xe, null, ke(a.intervalOptions, (y, _) => (g(), A(c, {
|
|
14775
|
+
key: _,
|
|
14776
|
+
value: y,
|
|
14777
|
+
variant: a.intervalHour === y ? "tonal" : "text",
|
|
14802
14778
|
color: "primary",
|
|
14803
14779
|
rounded: "",
|
|
14804
|
-
active: a.intervalHour ===
|
|
14780
|
+
active: a.intervalHour === y,
|
|
14805
14781
|
height: "30",
|
|
14806
14782
|
"min-height": "30",
|
|
14807
14783
|
"min-width": "30",
|
|
14808
14784
|
class: "pa-0 text-center text-body-1"
|
|
14809
14785
|
}, {
|
|
14810
14786
|
default: u(() => [
|
|
14811
|
-
p(
|
|
14812
|
-
onClick: (
|
|
14787
|
+
p(m, {
|
|
14788
|
+
onClick: (T) => a.intervalHour = y
|
|
14813
14789
|
}, {
|
|
14814
14790
|
default: u(() => [
|
|
14815
|
-
K(n(
|
|
14791
|
+
K(n(y) + "h", 1)
|
|
14816
14792
|
]),
|
|
14817
14793
|
_: 2
|
|
14818
14794
|
}, 1032, ["onClick"])
|
|
@@ -14829,7 +14805,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14829
14805
|
_: 1
|
|
14830
14806
|
})
|
|
14831
14807
|
]),
|
|
14832
|
-
p(
|
|
14808
|
+
p(w, {
|
|
14833
14809
|
vertical: "",
|
|
14834
14810
|
class: "mx-2 my-3",
|
|
14835
14811
|
style: { height: "16px" }
|
|
@@ -14902,23 +14878,23 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14902
14878
|
__: [14]
|
|
14903
14879
|
}, 8, ["onClick"])
|
|
14904
14880
|
]),
|
|
14905
|
-
p(
|
|
14881
|
+
p(w, {
|
|
14906
14882
|
vertical: "",
|
|
14907
14883
|
class: "mx-2 my-3",
|
|
14908
14884
|
style: { height: "16px" }
|
|
14909
14885
|
}),
|
|
14910
14886
|
s("div", Sh, [
|
|
14911
|
-
p(
|
|
14887
|
+
p(k, {
|
|
14912
14888
|
text: t.$t("weather.windBarbs"),
|
|
14913
14889
|
location: "top"
|
|
14914
14890
|
}, {
|
|
14915
|
-
activator: u(({ props:
|
|
14916
|
-
var
|
|
14891
|
+
activator: u(({ props: y }) => {
|
|
14892
|
+
var _, T;
|
|
14917
14893
|
return [
|
|
14918
|
-
p(b, j(
|
|
14894
|
+
p(b, j(y, {
|
|
14919
14895
|
class: "pa-1 d-flex",
|
|
14920
|
-
color: (
|
|
14921
|
-
variant: (
|
|
14896
|
+
color: (_ = o.weatherCheckList) != null && _.includes("wind") ? "primary" : "",
|
|
14897
|
+
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
14922
14898
|
height: "24",
|
|
14923
14899
|
width: "24",
|
|
14924
14900
|
"min-width": "24",
|
|
@@ -14934,24 +14910,24 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14934
14910
|
}),
|
|
14935
14911
|
_: 1
|
|
14936
14912
|
}, 8, ["text"]),
|
|
14937
|
-
p(
|
|
14913
|
+
p(k, {
|
|
14938
14914
|
text: t.$t("weather.sigWaveHeight"),
|
|
14939
14915
|
location: "top"
|
|
14940
14916
|
}, {
|
|
14941
|
-
activator: u(({ props:
|
|
14942
|
-
var
|
|
14917
|
+
activator: u(({ props: y }) => {
|
|
14918
|
+
var _, T;
|
|
14943
14919
|
return [
|
|
14944
|
-
p(b, j(
|
|
14920
|
+
p(b, j(y, {
|
|
14945
14921
|
class: "pa-1 d-flex",
|
|
14946
|
-
color: (
|
|
14947
|
-
variant: (
|
|
14922
|
+
color: (_ = o.weatherCheckList) != null && _.includes("sig-wave-height") ? "primary" : "",
|
|
14923
|
+
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
14948
14924
|
height: "24",
|
|
14949
14925
|
width: "24",
|
|
14950
14926
|
"min-width": "24",
|
|
14951
14927
|
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
14952
14928
|
}), {
|
|
14953
14929
|
default: u(() => [
|
|
14954
|
-
s("i", j(
|
|
14930
|
+
s("i", j(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
14955
14931
|
]),
|
|
14956
14932
|
_: 2
|
|
14957
14933
|
}, 1040, ["color", "variant"])
|
|
@@ -14959,24 +14935,24 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14959
14935
|
}),
|
|
14960
14936
|
_: 1
|
|
14961
14937
|
}, 8, ["text"]),
|
|
14962
|
-
p(
|
|
14938
|
+
p(k, {
|
|
14963
14939
|
text: t.$t("weather.currentDirection"),
|
|
14964
14940
|
location: "top"
|
|
14965
14941
|
}, {
|
|
14966
|
-
activator: u(({ props:
|
|
14967
|
-
var
|
|
14942
|
+
activator: u(({ props: y }) => {
|
|
14943
|
+
var _, T;
|
|
14968
14944
|
return [
|
|
14969
|
-
p(b, j(
|
|
14945
|
+
p(b, j(y, {
|
|
14970
14946
|
class: "pa-1 d-flex",
|
|
14971
|
-
color: (
|
|
14972
|
-
variant: (
|
|
14947
|
+
color: (_ = o.weatherCheckList) != null && _.includes("current-direction") ? "primary" : "",
|
|
14948
|
+
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
14973
14949
|
height: "24",
|
|
14974
14950
|
width: "24",
|
|
14975
14951
|
"min-width": "24",
|
|
14976
14952
|
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
14977
14953
|
}), {
|
|
14978
14954
|
default: u(() => [
|
|
14979
|
-
s("i", j(
|
|
14955
|
+
s("i", j(y, { class: "iconfont icon-Current" }), null, 16)
|
|
14980
14956
|
]),
|
|
14981
14957
|
_: 2
|
|
14982
14958
|
}, 1040, ["color", "variant"])
|
|
@@ -14984,12 +14960,12 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14984
14960
|
}),
|
|
14985
14961
|
_: 1
|
|
14986
14962
|
}, 8, ["text"]),
|
|
14987
|
-
p(
|
|
14963
|
+
p(k, {
|
|
14988
14964
|
text: t.$t("weather.weatherLayers"),
|
|
14989
14965
|
location: "top"
|
|
14990
14966
|
}, {
|
|
14991
|
-
activator: u(({ props:
|
|
14992
|
-
p(b, j(
|
|
14967
|
+
activator: u(({ props: y }) => [
|
|
14968
|
+
p(b, j(y, {
|
|
14993
14969
|
class: "pa-1 d-flex",
|
|
14994
14970
|
variant: "text",
|
|
14995
14971
|
height: "24",
|
|
@@ -14998,7 +14974,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14998
14974
|
onClick: r.handleClickFastMore
|
|
14999
14975
|
}), {
|
|
15000
14976
|
default: u(() => [
|
|
15001
|
-
s("i", j(
|
|
14977
|
+
s("i", j(y, { class: "iconfont icon-dots-align" }), null, 16)
|
|
15002
14978
|
]),
|
|
15003
14979
|
_: 2
|
|
15004
14980
|
}, 1040, ["onClick"])
|
|
@@ -15006,7 +14982,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15006
14982
|
_: 1
|
|
15007
14983
|
}, 8, ["text"])
|
|
15008
14984
|
]),
|
|
15009
|
-
p(
|
|
14985
|
+
p(w, {
|
|
15010
14986
|
vertical: "",
|
|
15011
14987
|
class: "mx-2 mr-3 my-3",
|
|
15012
14988
|
style: { height: "16px" }
|
|
@@ -15017,7 +14993,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15017
14993
|
height: "30",
|
|
15018
14994
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
15019
14995
|
color: a.source === "GFS" ? "primary" : "",
|
|
15020
|
-
onClick: e[7] || (e[7] = (
|
|
14996
|
+
onClick: e[7] || (e[7] = (y) => a.source = "GFS")
|
|
15021
14997
|
}, {
|
|
15022
14998
|
default: u(() => e[16] || (e[16] = [
|
|
15023
14999
|
K("NOAA", -1)
|
|
@@ -15030,7 +15006,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15030
15006
|
height: "30",
|
|
15031
15007
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
15032
15008
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
15033
|
-
onClick: e[8] || (e[8] = (
|
|
15009
|
+
onClick: e[8] || (e[8] = (y) => a.source = "ECMWF")
|
|
15034
15010
|
}, {
|
|
15035
15011
|
default: u(() => e[17] || (e[17] = [
|
|
15036
15012
|
K("ECMWF", -1)
|
|
@@ -15045,11 +15021,11 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15045
15021
|
style: ee({ right: a.right + "px" })
|
|
15046
15022
|
}, [
|
|
15047
15023
|
a.showTimezone ? (g(), S("div", Dh, [
|
|
15048
|
-
(g(!0), S(xe, null, ke(a.offsets, (
|
|
15049
|
-
key:
|
|
15024
|
+
(g(!0), S(xe, null, ke(a.offsets, (y) => (g(), S("div", {
|
|
15025
|
+
key: y,
|
|
15050
15026
|
class: "item rounded text-body-2 hover-active",
|
|
15051
|
-
onClick: (
|
|
15052
|
-
}, n(
|
|
15027
|
+
onClick: (_) => a.timeZone = y
|
|
15028
|
+
}, n(y < 0 ? y : "+" + y), 9, Ih))), 128))
|
|
15053
15029
|
])) : R("", !0),
|
|
15054
15030
|
s("div", Rh, [
|
|
15055
15031
|
p(b, {
|
|
@@ -15058,7 +15034,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15058
15034
|
height: "28",
|
|
15059
15035
|
class: "pa-1 text-body-1",
|
|
15060
15036
|
color: "primary",
|
|
15061
|
-
onClick: e[9] || (e[9] = (
|
|
15037
|
+
onClick: e[9] || (e[9] = (y) => a.showTimezone = !a.showTimezone)
|
|
15062
15038
|
}, {
|
|
15063
15039
|
default: u(() => [
|
|
15064
15040
|
K(" UTC " + n(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -15180,7 +15156,7 @@ const jh = {
|
|
|
15180
15156
|
}
|
|
15181
15157
|
}, Eh = { class: "timeline-box px-2 d-flex justify-center align-center rounded ga-1" };
|
|
15182
15158
|
function Nh(t, e, o, i, a, r) {
|
|
15183
|
-
const l =
|
|
15159
|
+
const l = v("VBtn"), m = v("DateTimePicker");
|
|
15184
15160
|
return g(), S("div", {
|
|
15185
15161
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
15186
15162
|
style: ee({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
|
|
@@ -15216,7 +15192,7 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15216
15192
|
_: 1,
|
|
15217
15193
|
__: [5]
|
|
15218
15194
|
}, 8, ["onClick"]),
|
|
15219
|
-
p(
|
|
15195
|
+
p(m, j({
|
|
15220
15196
|
ref: "dateTimePicker",
|
|
15221
15197
|
"date-time": a.currentDateTimeZ,
|
|
15222
15198
|
"time-zone": a.timeZone,
|
|
@@ -15224,10 +15200,10 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15224
15200
|
"interval-hour": a.intervalHour,
|
|
15225
15201
|
height: 32
|
|
15226
15202
|
}, t.$attrs, {
|
|
15227
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
15228
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
15229
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
15230
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
15203
|
+
onCurrentTimestamp: e[0] || (e[0] = (c) => a.currentTimestamp = c),
|
|
15204
|
+
onCurrentRealTime: e[1] || (e[1] = (c) => a.currentRealTime = c),
|
|
15205
|
+
onMinTimestamp: e[2] || (e[2] = (c) => a.minTimestamp = c),
|
|
15206
|
+
onMaxTimestamp: e[3] || (e[3] = (c) => a.maxTimestamp = c)
|
|
15231
15207
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
15232
15208
|
p(l, {
|
|
15233
15209
|
size: "small",
|
|
@@ -15347,7 +15323,7 @@ const Ja = /* @__PURE__ */ X(jh, [["render", Nh]]), Fh = {
|
|
|
15347
15323
|
class: "map-gl4-home"
|
|
15348
15324
|
};
|
|
15349
15325
|
function Gh(t, e, o, i, a, r) {
|
|
15350
|
-
const l =
|
|
15326
|
+
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"), w = v("IdmTimePlayer");
|
|
15351
15327
|
return g(), S("div", Hh, [
|
|
15352
15328
|
p(l, j({
|
|
15353
15329
|
ref: "idmOtherLayers",
|
|
@@ -15361,11 +15337,11 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15361
15337
|
"forecast-model": o.forecastModel,
|
|
15362
15338
|
"map-feather": o.mapFeather
|
|
15363
15339
|
}, t.$attrs, {
|
|
15364
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
15365
|
-
a.otherCheckList =
|
|
15340
|
+
onOtherCheckList: e[0] || (e[0] = (k) => {
|
|
15341
|
+
a.otherCheckList = k, a.layerVersion = a.layerVersion + 1;
|
|
15366
15342
|
})
|
|
15367
15343
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15368
|
-
p(
|
|
15344
|
+
p(m, j({
|
|
15369
15345
|
ref: "idmWeatherLayers",
|
|
15370
15346
|
simple: o.simple,
|
|
15371
15347
|
map: o.map,
|
|
@@ -15377,14 +15353,14 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15377
15353
|
"forecast-model": o.forecastModel,
|
|
15378
15354
|
"map-feather": o.mapFeather
|
|
15379
15355
|
}, t.$attrs, {
|
|
15380
|
-
onAutoActive: e[1] || (e[1] = (
|
|
15381
|
-
a.autoActive =
|
|
15356
|
+
onAutoActive: e[1] || (e[1] = (k) => {
|
|
15357
|
+
a.autoActive = k, a.layerVersion = a.layerVersion + 1;
|
|
15382
15358
|
}),
|
|
15383
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
15384
|
-
a.weatherCheckList =
|
|
15359
|
+
onWeatherCheckList: e[2] || (e[2] = (k) => {
|
|
15360
|
+
a.weatherCheckList = k, a.layerVersion = a.layerVersion + 1;
|
|
15385
15361
|
})
|
|
15386
15362
|
}), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15387
|
-
p(
|
|
15363
|
+
p(c, j({
|
|
15388
15364
|
simple: o.simple,
|
|
15389
15365
|
map: o.map,
|
|
15390
15366
|
token: o.token,
|
|
@@ -15418,7 +15394,7 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15418
15394
|
"weather-check-list": a.weatherCheckList,
|
|
15419
15395
|
"map-feather": o.mapFeather
|
|
15420
15396
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])),
|
|
15421
|
-
o.simple ? (g(), A(
|
|
15397
|
+
o.simple ? (g(), A(w, j({
|
|
15422
15398
|
key: 1,
|
|
15423
15399
|
ref: "idmBottomBar",
|
|
15424
15400
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -15436,7 +15412,7 @@ class Uh {
|
|
|
15436
15412
|
pe(this, "hi");
|
|
15437
15413
|
pe(this, "td");
|
|
15438
15414
|
pe(this, "windy");
|
|
15439
|
-
var o, i, a, r, l,
|
|
15415
|
+
var o, i, a, r, l, m, c, f, d, b, w, k, y, _, T, B, D, x, L, P, C, z, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re, U, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
15440
15416
|
this.i4 = {
|
|
15441
15417
|
source: {
|
|
15442
15418
|
type: "raster",
|
|
@@ -34079,15 +34055,15 @@ class Uh {
|
|
|
34079
34055
|
layers: [
|
|
34080
34056
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
|
|
34081
34057
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
|
|
34082
|
-
(
|
|
34083
|
-
(f = (
|
|
34058
|
+
(m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
|
|
34059
|
+
(f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
34084
34060
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
34085
|
-
(
|
|
34086
|
-
(
|
|
34087
|
-
(B = (
|
|
34088
|
-
(
|
|
34089
|
-
(
|
|
34090
|
-
(
|
|
34061
|
+
(k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((h) => h.id === "loadlines-fill"),
|
|
34062
|
+
(_ = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : _.find((h) => h.id === "empty-layer-0"),
|
|
34063
|
+
(B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
34064
|
+
(x = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : x.find((h) => h.id === "country-boundaries"),
|
|
34065
|
+
(P = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : P.find((h) => h.id === "water-outline"),
|
|
34066
|
+
(z = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : z.find((h) => h.id === "water-outline2"),
|
|
34091
34067
|
(F = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
34092
34068
|
(Y = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : Y.find((h) => h.id === "water-line-label"),
|
|
34093
34069
|
(Q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : Q.find((h) => h.id === "water-point-label"),
|
|
@@ -34102,9 +34078,9 @@ class Uh {
|
|
|
34102
34078
|
(Ie = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : Ie.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
34103
34079
|
(H = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : H.find((h) => h.id === "country-label"),
|
|
34104
34080
|
(He = (oe = this.originStyle) == null ? void 0 : oe.light.layers) == null ? void 0 : He.find((h) => h.id === "continent-label"),
|
|
34105
|
-
(
|
|
34081
|
+
(fe = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : fe.find((h) => h.id === "tide-stations"),
|
|
34106
34082
|
(U = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : U.find((h) => h.id === "empty-layer-3"),
|
|
34107
|
-
(ae = (
|
|
34083
|
+
(ae = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : ae.find((h) => h.id === "empty-layer-4")
|
|
34108
34084
|
]
|
|
34109
34085
|
},
|
|
34110
34086
|
dark: {
|
|
@@ -34414,7 +34390,7 @@ const Vh = {
|
|
|
34414
34390
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
34415
34391
|
};
|
|
34416
34392
|
function Kh(t, e, o, i, a, r) {
|
|
34417
|
-
const l =
|
|
34393
|
+
const l = v("VBtn");
|
|
34418
34394
|
return g(), S("div", {
|
|
34419
34395
|
class: "mapbox-initial-gl4",
|
|
34420
34396
|
style: ee({ height: o.height, width: o.width })
|
|
@@ -34422,8 +34398,8 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34422
34398
|
e[6] || (e[6] = s("div", { id: "map" }, null, -1)),
|
|
34423
34399
|
o.simple ? (g(), S("div", {
|
|
34424
34400
|
key: 0,
|
|
34425
|
-
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1",
|
|
34426
|
-
style: ee({ top: o.top +
|
|
34401
|
+
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
34402
|
+
style: ee({ top: o.top + 254 + "px", right: a.right + "px", height: "40px" })
|
|
34427
34403
|
}, [
|
|
34428
34404
|
s("div", Yh, [
|
|
34429
34405
|
p(l, {
|
|
@@ -34444,7 +34420,7 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34444
34420
|
o.simple ? R("", !0) : (g(), S("div", {
|
|
34445
34421
|
key: 1,
|
|
34446
34422
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
34447
|
-
style: ee({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
34423
|
+
style: ee({ top: o.top + 268 + "px", right: a.right + "px", height: "112px" })
|
|
34448
34424
|
}, [
|
|
34449
34425
|
s("div", Zh, [
|
|
34450
34426
|
p(l, {
|