@idmwx/idmui-gl4 1.8.4 → 1.8.6
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 +811 -808
- package/dist/index.umd.cjs +16 -16
- package/dist/mapbox/src/components/weather/index.vue.d.ts +10 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var $a = Object.defineProperty;
|
|
2
2
|
var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var he = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as Le } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as u, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ye, toDisplayString as m, createTextVNode as J, Fragment as be, renderList as we, withDirectives as Ve, vShow as Ze, mergeProps as B, normalizeStyle as ae } from "vue";
|
|
7
7
|
import xe from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as We } from "@idm-plugin/geo";
|
|
@@ -385,8 +385,8 @@ const mi = {
|
|
|
385
385
|
return ((c = l.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
|
|
386
386
|
})[0];
|
|
387
387
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
|
|
388
|
-
var n,
|
|
389
|
-
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (
|
|
388
|
+
var n, g;
|
|
389
|
+
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = l == null ? void 0 : l.children[1]) == null ? void 0 : g.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
392
|
}), this.marker = new xe.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
@@ -496,11 +496,11 @@ function hi(t, e, o, i, a, r) {
|
|
|
496
496
|
id: "idm-gl4-zone-info"
|
|
497
497
|
}, {
|
|
498
498
|
default: f(() => [
|
|
499
|
-
|
|
499
|
+
u(c, null, {
|
|
500
500
|
default: f(() => {
|
|
501
|
-
var
|
|
501
|
+
var g;
|
|
502
502
|
return [
|
|
503
|
-
|
|
503
|
+
u(l, {
|
|
504
504
|
icon: "",
|
|
505
505
|
density: "compact",
|
|
506
506
|
variant: "plain",
|
|
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
515
515
|
}, 8, ["onClick"]),
|
|
516
516
|
s("div", {
|
|
517
517
|
class: "rich-context",
|
|
518
|
-
innerHTML: (
|
|
518
|
+
innerHTML: (g = a.form) == null ? void 0 : g.name
|
|
519
519
|
}, null, 8, di)
|
|
520
520
|
];
|
|
521
521
|
}),
|
|
@@ -1490,10 +1490,10 @@ const ui = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1493
|
-
var c, n,
|
|
1493
|
+
var c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const l = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((
|
|
1496
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((p = l == null ? void 0 : l.weather) == null ? void 0 : p.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((k = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ce = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.direction, r.windwavePeriod = this.computeRoundPrecision((me = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : me.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ie = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.height, 1) ?? "-", r.swellDir = (de = (pe = l == null ? void 0 : l.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.direction, r.swellPeriod = this.computeRoundPrecision((F = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((se = l == null ? void 0 : l.current) == null ? void 0 : se.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Pe = l == null ? void 0 : l.current) == null ? void 0 : Pe.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 = (Ce = l == null ? void 0 : l.weather) == null ? void 0 : Ce.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;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1678,24 +1678,24 @@ const ui = {
|
|
|
1678
1678
|
width: "120"
|
|
1679
1679
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1680
1680
|
function yr(t, e, o, i, a, r) {
|
|
1681
|
-
const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"),
|
|
1681
|
+
const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
|
|
1682
1682
|
return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1683
1683
|
default: f(() => {
|
|
1684
|
-
var w,
|
|
1684
|
+
var w, L;
|
|
1685
1685
|
return [
|
|
1686
|
-
|
|
1686
|
+
u(c, { class: "w-100" }, {
|
|
1687
1687
|
default: f(() => {
|
|
1688
|
-
var
|
|
1688
|
+
var p, z, T, O, I;
|
|
1689
1689
|
return [
|
|
1690
1690
|
s("div", gi, [
|
|
1691
1691
|
s("div", fi, [
|
|
1692
1692
|
s("div", {
|
|
1693
|
-
class: Ye(["fi mr-2 rounded elevation-4", `fi-${(
|
|
1693
|
+
class: Ye(["fi mr-2 rounded elevation-4", `fi-${(p = o.port) != null && p.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
1696
|
s("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
|
|
1697
1697
|
]),
|
|
1698
|
-
|
|
1698
|
+
u(l, {
|
|
1699
1699
|
icon: "",
|
|
1700
1700
|
density: "compact",
|
|
1701
1701
|
variant: "plain",
|
|
@@ -1720,11 +1720,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1720
1720
|
}),
|
|
1721
1721
|
_: 1
|
|
1722
1722
|
}),
|
|
1723
|
-
|
|
1723
|
+
u(n, { class: "w-100" }),
|
|
1724
1724
|
s("div", bi, [
|
|
1725
|
-
o.followList.some((
|
|
1726
|
-
var
|
|
1727
|
-
return ((
|
|
1725
|
+
o.followList.some((p) => {
|
|
1726
|
+
var z;
|
|
1727
|
+
return ((z = p.port) == null ? void 0 : z.id) === o.portId;
|
|
1728
1728
|
}) ? (y(), R(l, {
|
|
1729
1729
|
key: 0,
|
|
1730
1730
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
@@ -1735,10 +1735,10 @@ function yr(t, e, o, i, a, r) {
|
|
|
1735
1735
|
onClick: r.handleCancelFollow
|
|
1736
1736
|
}, {
|
|
1737
1737
|
prepend: f(() => [
|
|
1738
|
-
|
|
1738
|
+
u(g, { color: "warning" })
|
|
1739
1739
|
]),
|
|
1740
1740
|
default: f(() => [
|
|
1741
|
-
|
|
1741
|
+
J(" " + m(t.$t("actions.unfollow")), 1)
|
|
1742
1742
|
]),
|
|
1743
1743
|
_: 1
|
|
1744
1744
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -1751,11 +1751,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1751
1751
|
onClick: r.handleFollow
|
|
1752
1752
|
}, {
|
|
1753
1753
|
default: f(() => [
|
|
1754
|
-
|
|
1754
|
+
J(m(t.$t("actions.follow")), 1)
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 1
|
|
1757
1757
|
}, 8, ["onClick"])),
|
|
1758
|
-
|
|
1758
|
+
u(l, {
|
|
1759
1759
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1760
1760
|
variant: "tonal",
|
|
1761
1761
|
density: "compact",
|
|
@@ -1763,7 +1763,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1763
1763
|
onClick: r.handleMeteoMore
|
|
1764
1764
|
}, {
|
|
1765
1765
|
default: f(() => [
|
|
1766
|
-
|
|
1766
|
+
J(m(t.$t("actions.7dayForcast")), 1)
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 1
|
|
1769
1769
|
}, 8, ["onClick"])
|
|
@@ -1784,7 +1784,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1784
1784
|
s("div", Li, [
|
|
1785
1785
|
s("div", Pi, [
|
|
1786
1786
|
s("div", Ci, m(t.$t("port.region")), 1),
|
|
1787
|
-
s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((
|
|
1787
|
+
s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
|
|
1788
1788
|
]),
|
|
1789
1789
|
s("div", Si, [
|
|
1790
1790
|
s("div", Mi, m(t.$t("port.position")), 1),
|
|
@@ -1809,9 +1809,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1809
1809
|
e[5] || (e[5] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1810
1810
|
]),
|
|
1811
1811
|
s("div", Fi, [
|
|
1812
|
-
|
|
1812
|
+
u(h, {
|
|
1813
1813
|
modelValue: a.currentIndex,
|
|
1814
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1814
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => a.currentIndex = p),
|
|
1815
1815
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1816
1816
|
density: "compact",
|
|
1817
1817
|
group: "",
|
|
@@ -1820,15 +1820,15 @@ function yr(t, e, o, i, a, r) {
|
|
|
1820
1820
|
rounded: "1"
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: f(() => [
|
|
1823
|
-
(y(!0), M(be, null, we(r.dateList, (
|
|
1823
|
+
(y(!0), M(be, null, we(r.dateList, (p) => (y(), R(l, {
|
|
1824
1824
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1825
1825
|
density: "compact",
|
|
1826
1826
|
color: "primary",
|
|
1827
1827
|
height: "26",
|
|
1828
|
-
value:
|
|
1828
|
+
value: p.index
|
|
1829
1829
|
}, {
|
|
1830
1830
|
default: f(() => [
|
|
1831
|
-
|
|
1831
|
+
J(m(p.label), 1)
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 2
|
|
1834
1834
|
}, 1032, ["value"]))), 256))
|
|
@@ -1837,40 +1837,40 @@ function yr(t, e, o, i, a, r) {
|
|
|
1837
1837
|
}, 8, ["modelValue"]),
|
|
1838
1838
|
s("table", Hi, [
|
|
1839
1839
|
s("tbody", null, [
|
|
1840
|
-
(y(!0), M(be, null, we(a.tableData, (
|
|
1841
|
-
key:
|
|
1840
|
+
(y(!0), M(be, null, we(a.tableData, (p) => (y(), M("tr", {
|
|
1841
|
+
key: p.id
|
|
1842
1842
|
}, [
|
|
1843
1843
|
s("th", Gi, [
|
|
1844
|
-
|
|
1845
|
-
|
|
1844
|
+
J(m(t.$t(`${p.key}`)) + " ", 1),
|
|
1845
|
+
p.unit ? (y(), M("span", Ui, " ( " + m(p.unit) + " )", 1)) : D("", !0)
|
|
1846
1846
|
]),
|
|
1847
1847
|
s("td", Wi, [
|
|
1848
|
-
|
|
1848
|
+
p.img ? (y(), M("img", {
|
|
1849
1849
|
key: 0,
|
|
1850
|
-
src:
|
|
1850
|
+
src: p == null ? void 0 : p.value0,
|
|
1851
1851
|
style: { height: "30px" }
|
|
1852
|
-
}, null, 8, Vi)) : (y(), M("span", Zi, m((
|
|
1852
|
+
}, null, 8, Vi)) : (y(), M("span", Zi, m((p == null ? void 0 : p.value0) ?? "-"), 1))
|
|
1853
1853
|
]),
|
|
1854
1854
|
s("td", Yi, [
|
|
1855
|
-
|
|
1855
|
+
p.img ? (y(), M("img", {
|
|
1856
1856
|
key: 0,
|
|
1857
|
-
src:
|
|
1857
|
+
src: p == null ? void 0 : p.value1,
|
|
1858
1858
|
style: { height: "30px" }
|
|
1859
|
-
}, null, 8, qi)) : (y(), M("span", Xi, m((
|
|
1859
|
+
}, null, 8, qi)) : (y(), M("span", Xi, m((p == null ? void 0 : p.value1) ?? "-"), 1))
|
|
1860
1860
|
]),
|
|
1861
1861
|
s("td", $i, [
|
|
1862
|
-
|
|
1862
|
+
p.img ? (y(), M("img", {
|
|
1863
1863
|
key: 0,
|
|
1864
|
-
src:
|
|
1864
|
+
src: p == null ? void 0 : p.value2,
|
|
1865
1865
|
style: { height: "30px" }
|
|
1866
|
-
}, null, 8, Ki)) : (y(), M("span", Ji, m((
|
|
1866
|
+
}, null, 8, Ki)) : (y(), M("span", Ji, m((p == null ? void 0 : p.value2) ?? "-"), 1))
|
|
1867
1867
|
]),
|
|
1868
1868
|
s("td", Qi, [
|
|
1869
|
-
|
|
1869
|
+
p.img ? (y(), M("img", {
|
|
1870
1870
|
key: 0,
|
|
1871
|
-
src:
|
|
1871
|
+
src: p == null ? void 0 : p.value3,
|
|
1872
1872
|
style: { height: "30px" }
|
|
1873
|
-
}, null, 8, er)) : (y(), M("span", tr, m((
|
|
1873
|
+
}, null, 8, er)) : (y(), M("span", tr, m((p == null ? void 0 : p.value3) ?? "-"), 1))
|
|
1874
1874
|
])
|
|
1875
1875
|
]))), 128))
|
|
1876
1876
|
])
|
|
@@ -1894,7 +1894,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1894
1894
|
density: "compact",
|
|
1895
1895
|
variant: "plain",
|
|
1896
1896
|
size: "small",
|
|
1897
|
-
onClick: e[1] || (e[1] = (
|
|
1897
|
+
onClick: e[1] || (e[1] = (p) => a.showTideDetail = !1)
|
|
1898
1898
|
})) : (y(), R(l, {
|
|
1899
1899
|
key: 1,
|
|
1900
1900
|
icon: "mdi-eye-outline",
|
|
@@ -1914,12 +1914,12 @@ function yr(t, e, o, i, a, r) {
|
|
|
1914
1914
|
s("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1915
1915
|
s("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
|
|
1916
1916
|
]),
|
|
1917
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1917
|
+
(y(!0), M(be, null, we(a.tideTableData, (p, z) => {
|
|
1918
1918
|
var T;
|
|
1919
|
-
return y(), M("tr", { key:
|
|
1920
|
-
s("td", ur, m(t.$t(`tide.${(T =
|
|
1921
|
-
s("td", gr, m(r.computeLocalTime(
|
|
1922
|
-
s("td", fr, m((
|
|
1919
|
+
return y(), M("tr", { key: z }, [
|
|
1920
|
+
s("td", ur, m(t.$t(`tide.${(T = p == null ? void 0 : p.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
1921
|
+
s("td", gr, m(r.computeLocalTime(p == null ? void 0 : p.date, o.port, "MM-DD HH:mm")), 1),
|
|
1922
|
+
s("td", fr, m((p == null ? void 0 : p.height) ?? "-") + " m", 1)
|
|
1923
1923
|
]);
|
|
1924
1924
|
}), 128))
|
|
1925
1925
|
])
|
|
@@ -2043,12 +2043,12 @@ const br = {
|
|
|
2043
2043
|
function _r(t, e, o, i, a, r) {
|
|
2044
2044
|
const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
|
|
2045
2045
|
return y(), M("div", null, [
|
|
2046
|
-
Ve(
|
|
2046
|
+
Ve(u(c, {
|
|
2047
2047
|
id: "idmPortInfo",
|
|
2048
2048
|
ref: "idmPortInfo"
|
|
2049
2049
|
}, {
|
|
2050
2050
|
default: f(() => [
|
|
2051
|
-
|
|
2051
|
+
u(l, { class: "text-body-1 pr-8" }, {
|
|
2052
2052
|
default: f(() => [
|
|
2053
2053
|
s("div", wr, [
|
|
2054
2054
|
s("div", null, m(t.$t("port.port")), 1),
|
|
@@ -2074,7 +2074,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2074
2074
|
port: a.port,
|
|
2075
2075
|
forecastModel: o.forecastModel,
|
|
2076
2076
|
onClose: r.handleCloseDetail,
|
|
2077
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
2077
|
+
onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2078
2078
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
|
|
2079
2079
|
]);
|
|
2080
2080
|
}
|
|
@@ -2976,20 +2976,20 @@ const qr = {
|
|
|
2976
2976
|
width: "120"
|
|
2977
2977
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
|
|
2978
2978
|
function Ts(t, e, o, i, a, r) {
|
|
2979
|
-
const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"),
|
|
2979
|
+
const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), h = x("v-card");
|
|
2980
2980
|
return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2981
2981
|
default: f(() => {
|
|
2982
2982
|
var b, w;
|
|
2983
2983
|
return [
|
|
2984
|
-
|
|
2984
|
+
u(c, { class: "w-100" }, {
|
|
2985
2985
|
default: f(() => {
|
|
2986
|
-
var
|
|
2986
|
+
var L;
|
|
2987
2987
|
return [
|
|
2988
2988
|
s("div", Xr, [
|
|
2989
2989
|
s("div", $r, [
|
|
2990
|
-
s("div", null, m((
|
|
2990
|
+
s("div", null, m((L = o.station) == null ? void 0 : L.name), 1)
|
|
2991
2991
|
]),
|
|
2992
|
-
|
|
2992
|
+
u(l, {
|
|
2993
2993
|
icon: "",
|
|
2994
2994
|
density: "compact",
|
|
2995
2995
|
variant: "plain",
|
|
@@ -3010,7 +3010,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3010
3010
|
}),
|
|
3011
3011
|
_: 1
|
|
3012
3012
|
}),
|
|
3013
|
-
|
|
3013
|
+
u(n, { class: "w-100" }),
|
|
3014
3014
|
s("div", Jr, [
|
|
3015
3015
|
s("div", Qr, [
|
|
3016
3016
|
s("div", es, [
|
|
@@ -3052,9 +3052,9 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3052
3052
|
e[3] || (e[3] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
3053
3053
|
]),
|
|
3054
3054
|
s("div", ws, [
|
|
3055
|
-
|
|
3055
|
+
u(g, {
|
|
3056
3056
|
modelValue: a.currentIndex,
|
|
3057
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3057
|
+
"onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
|
|
3058
3058
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3059
3059
|
density: "compact",
|
|
3060
3060
|
group: "",
|
|
@@ -3063,15 +3063,15 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3063
3063
|
rounded: "1"
|
|
3064
3064
|
}, {
|
|
3065
3065
|
default: f(() => [
|
|
3066
|
-
(y(!0), M(be, null, we(r.dateList, (
|
|
3066
|
+
(y(!0), M(be, null, we(r.dateList, (L) => (y(), R(l, {
|
|
3067
3067
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3068
3068
|
density: "compact",
|
|
3069
3069
|
color: "primary",
|
|
3070
3070
|
height: "26",
|
|
3071
|
-
value:
|
|
3071
|
+
value: L.index
|
|
3072
3072
|
}, {
|
|
3073
3073
|
default: f(() => [
|
|
3074
|
-
|
|
3074
|
+
J(m(L.label), 1)
|
|
3075
3075
|
]),
|
|
3076
3076
|
_: 2
|
|
3077
3077
|
}, 1032, ["value"]))), 256))
|
|
@@ -3086,12 +3086,12 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3086
3086
|
s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3087
3087
|
s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3088
3088
|
]),
|
|
3089
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
3090
|
-
var
|
|
3091
|
-
return y(), M("tr", { key:
|
|
3092
|
-
s("td", Ls, m(t.$t(`tide.${(
|
|
3093
|
-
s("td", Ps, m(r.computeLocalTime(
|
|
3094
|
-
s("td", Cs, m((
|
|
3089
|
+
(y(!0), M(be, null, we(a.tideTableData, (L, p) => {
|
|
3090
|
+
var z;
|
|
3091
|
+
return y(), M("tr", { key: p }, [
|
|
3092
|
+
s("td", Ls, m(t.$t(`tide.${(z = L == null ? void 0 : L.type) == null ? void 0 : z.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3093
|
+
s("td", Ps, m(r.computeLocalTime(L == null ? void 0 : L.date, o.station, "MM-DD HH:mm")), 1),
|
|
3094
|
+
s("td", Cs, m((L == null ? void 0 : L.height) ?? "-") + " m", 1)
|
|
3095
3095
|
]);
|
|
3096
3096
|
}), 128))
|
|
3097
3097
|
])
|
|
@@ -3184,16 +3184,16 @@ const Ms = {
|
|
|
3184
3184
|
function Os(t, e, o, i, a, r) {
|
|
3185
3185
|
const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3186
3186
|
return y(), M("div", null, [
|
|
3187
|
-
Ve(
|
|
3187
|
+
Ve(u(c, { id: "idmTidalInfo" }, {
|
|
3188
3188
|
default: f(() => [
|
|
3189
|
-
|
|
3189
|
+
u(l, { class: "pr-8 text-body-1" }, {
|
|
3190
3190
|
default: f(() => {
|
|
3191
|
-
var
|
|
3191
|
+
var g, h;
|
|
3192
3192
|
return [
|
|
3193
3193
|
s("div", Is, [
|
|
3194
3194
|
s("div", Ds, m(t.$t("tide.tideStation")), 1),
|
|
3195
3195
|
s("div", As, [
|
|
3196
|
-
s("label", Rs, m((
|
|
3196
|
+
s("label", Rs, m((g = a.hoverStation) == null ? void 0 : g.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
|
|
3197
3197
|
])
|
|
3198
3198
|
])
|
|
3199
3199
|
];
|
|
@@ -4346,12 +4346,12 @@ const Gs = {
|
|
|
4346
4346
|
function Zs(t, e, o, i, a, r) {
|
|
4347
4347
|
const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4348
4348
|
return y(), M("div", null, [
|
|
4349
|
-
Ve(
|
|
4349
|
+
Ve(u(c, {
|
|
4350
4350
|
id: "idmFollowPortInfo",
|
|
4351
4351
|
ref: "idmFollowPortInfo"
|
|
4352
4352
|
}, {
|
|
4353
4353
|
default: f(() => [
|
|
4354
|
-
|
|
4354
|
+
u(l, { class: "text-body-1 pr-8" }, {
|
|
4355
4355
|
default: f(() => [
|
|
4356
4356
|
s("div", Us, [
|
|
4357
4357
|
s("div", null, m(t.$t("port.port")), 1),
|
|
@@ -4378,7 +4378,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
4378
4378
|
forecastModel: o.forecastModel,
|
|
4379
4379
|
followList: o.followList,
|
|
4380
4380
|
onClose: r.handleCloseDetail,
|
|
4381
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
4381
|
+
onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4382
4382
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
|
|
4383
4383
|
]);
|
|
4384
4384
|
}
|
|
@@ -4486,18 +4486,18 @@ const qs = {
|
|
|
4486
4486
|
this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
|
|
4487
4487
|
},
|
|
4488
4488
|
handleClick(t) {
|
|
4489
|
-
var o, i, a, r, l, c, n,
|
|
4489
|
+
var o, i, a, r, l, c, n, g, h;
|
|
4490
4490
|
const e = t.features[0];
|
|
4491
4491
|
if (e.properties) {
|
|
4492
4492
|
const b = e.properties;
|
|
4493
4493
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
4494
|
-
const w = S(),
|
|
4494
|
+
const w = S(), L = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), p = {
|
|
4495
4495
|
lat: b.lat,
|
|
4496
4496
|
lng: b.lng,
|
|
4497
4497
|
datetime: this.realTime,
|
|
4498
4498
|
forecastModel: this.forecastModel
|
|
4499
4499
|
};
|
|
4500
|
-
|
|
4500
|
+
L >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(p) : (h = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || h.fetchHistoryData(p);
|
|
4501
4501
|
}
|
|
4502
4502
|
},
|
|
4503
4503
|
handleHover(t) {
|
|
@@ -4526,7 +4526,7 @@ function Js(t, e, o, i, a, r) {
|
|
|
4526
4526
|
ref: "idmFollowPositionInfo"
|
|
4527
4527
|
}, {
|
|
4528
4528
|
default: f(() => [
|
|
4529
|
-
|
|
4529
|
+
u(l, { class: "text-body-1 pr-8" }, {
|
|
4530
4530
|
default: f(() => [
|
|
4531
4531
|
s("div", Xs, [
|
|
4532
4532
|
e[0] || (e[0] = s("div", null, "Location", -1)),
|
|
@@ -4717,9 +4717,9 @@ const el = {
|
|
|
4717
4717
|
})
|
|
4718
4718
|
);
|
|
4719
4719
|
(await Promise.all(l)).map((n) => {
|
|
4720
|
-
var b, w,
|
|
4721
|
-
const
|
|
4722
|
-
this.otherLayers[h] =
|
|
4720
|
+
var b, w, L;
|
|
4721
|
+
const g = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (L = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : L.key;
|
|
4722
|
+
this.otherLayers[h] = g;
|
|
4723
4723
|
});
|
|
4724
4724
|
}
|
|
4725
4725
|
}
|
|
@@ -4756,19 +4756,19 @@ const el = {
|
|
|
4756
4756
|
class: "border rounded-sm"
|
|
4757
4757
|
}, dl = { class: "text-body-2 text-center pt-1" };
|
|
4758
4758
|
function hl(t, e, o, i, a, r) {
|
|
4759
|
-
var $,
|
|
4760
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
4759
|
+
var $, ce, le, me, K, ie, pe, de, ue;
|
|
4760
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), p = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), k = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), _ = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), Z = x("IdmIceAreas"), ee = x("IdmFollowPort"), Q = x("IdmFollowPosition");
|
|
4761
4761
|
return y(), M("div", tl, [
|
|
4762
4762
|
s("div", {
|
|
4763
4763
|
class: "menu-bar-box transition px-1 rounded",
|
|
4764
4764
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4765
4765
|
}, [
|
|
4766
|
-
|
|
4766
|
+
u(c, {
|
|
4767
4767
|
text: t.$t("layer.mapLayers"),
|
|
4768
4768
|
location: "left"
|
|
4769
4769
|
}, {
|
|
4770
4770
|
activator: f(({ props: F }) => [
|
|
4771
|
-
|
|
4771
|
+
u(l, B(F, {
|
|
4772
4772
|
"min-width": "32",
|
|
4773
4773
|
width: "32",
|
|
4774
4774
|
height: "32",
|
|
@@ -4791,7 +4791,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4791
4791
|
}, [
|
|
4792
4792
|
s("div", ol, [
|
|
4793
4793
|
s("div", al, m(t.$t("layer.layers")), 1),
|
|
4794
|
-
|
|
4794
|
+
u(l, {
|
|
4795
4795
|
icon: "",
|
|
4796
4796
|
density: "compact",
|
|
4797
4797
|
variant: "plain",
|
|
@@ -4806,32 +4806,32 @@ function hl(t, e, o, i, a, r) {
|
|
|
4806
4806
|
}, 8, ["onClick"])
|
|
4807
4807
|
]),
|
|
4808
4808
|
s("div", il, [
|
|
4809
|
-
|
|
4809
|
+
u(w, {
|
|
4810
4810
|
class: "block-bg mx-auto mb-3",
|
|
4811
4811
|
elevation: "0"
|
|
4812
4812
|
}, {
|
|
4813
4813
|
default: f(() => [
|
|
4814
|
-
|
|
4814
|
+
u(g, { class: "border-b-thin" }, {
|
|
4815
4815
|
default: f(() => [
|
|
4816
|
-
|
|
4816
|
+
u(n, {
|
|
4817
4817
|
class: "text-subtitle-1 font-weight-medium",
|
|
4818
4818
|
style: { "font-size": "16px !important" }
|
|
4819
4819
|
}, {
|
|
4820
4820
|
default: f(() => [
|
|
4821
|
-
|
|
4821
|
+
J(m(t.$t("layer.mapFeathers")), 1)
|
|
4822
4822
|
]),
|
|
4823
4823
|
_: 1
|
|
4824
4824
|
})
|
|
4825
4825
|
]),
|
|
4826
4826
|
_: 1
|
|
4827
4827
|
}),
|
|
4828
|
-
|
|
4828
|
+
u(b, { class: "pb-2" }, {
|
|
4829
4829
|
default: f(() => [
|
|
4830
4830
|
s("div", rl, [
|
|
4831
4831
|
(y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
|
|
4832
4832
|
key: F.value,
|
|
4833
4833
|
class: "mb-2 feather-item",
|
|
4834
|
-
onClick: (
|
|
4834
|
+
onClick: (se) => r.handleToggleMapFeather(F)
|
|
4835
4835
|
}, [
|
|
4836
4836
|
s("div", {
|
|
4837
4837
|
class: Ye([a.mapFeather === F.value ? "active" : "", "img-box"])
|
|
@@ -4844,7 +4844,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4844
4844
|
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
|
|
4845
4845
|
key: F.key,
|
|
4846
4846
|
modelValue: a.checkList,
|
|
4847
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
4847
|
+
"onUpdate:modelValue": e[0] || (e[0] = (se) => a.checkList = se),
|
|
4848
4848
|
value: F.key,
|
|
4849
4849
|
label: t.$t(`layer.${F.locale}`),
|
|
4850
4850
|
color: "primary",
|
|
@@ -4859,31 +4859,31 @@ function hl(t, e, o, i, a, r) {
|
|
|
4859
4859
|
]),
|
|
4860
4860
|
_: 1
|
|
4861
4861
|
}),
|
|
4862
|
-
|
|
4862
|
+
u(w, {
|
|
4863
4863
|
class: "block-bg mx-auto mb-3",
|
|
4864
4864
|
elevation: "0"
|
|
4865
4865
|
}, {
|
|
4866
4866
|
default: f(() => [
|
|
4867
|
-
|
|
4867
|
+
u(g, { class: "border-b-thin" }, {
|
|
4868
4868
|
default: f(() => [
|
|
4869
|
-
|
|
4869
|
+
u(n, {
|
|
4870
4870
|
class: "text-subtitle-1 font-weight-medium",
|
|
4871
4871
|
style: { "font-size": "16px !important" }
|
|
4872
4872
|
}, {
|
|
4873
4873
|
default: f(() => [
|
|
4874
|
-
|
|
4874
|
+
J(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4875
4875
|
]),
|
|
4876
4876
|
_: 1
|
|
4877
4877
|
})
|
|
4878
4878
|
]),
|
|
4879
4879
|
_: 1
|
|
4880
4880
|
}),
|
|
4881
|
-
|
|
4881
|
+
u(b, { class: "py-2" }, {
|
|
4882
4882
|
default: f(() => [
|
|
4883
4883
|
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
|
|
4884
4884
|
key: F.key,
|
|
4885
4885
|
modelValue: a.checkList,
|
|
4886
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
4886
|
+
"onUpdate:modelValue": e[1] || (e[1] = (se) => a.checkList = se),
|
|
4887
4887
|
value: F.key,
|
|
4888
4888
|
label: t.$t(`layer.${F.locale}`),
|
|
4889
4889
|
color: "primary",
|
|
@@ -4898,31 +4898,31 @@ function hl(t, e, o, i, a, r) {
|
|
|
4898
4898
|
]),
|
|
4899
4899
|
_: 1
|
|
4900
4900
|
}),
|
|
4901
|
-
|
|
4901
|
+
u(w, {
|
|
4902
4902
|
class: "block-bg mx-auto mb-3",
|
|
4903
4903
|
elevation: "0"
|
|
4904
4904
|
}, {
|
|
4905
4905
|
default: f(() => [
|
|
4906
|
-
|
|
4906
|
+
u(g, { class: "border-b-thin" }, {
|
|
4907
4907
|
default: f(() => [
|
|
4908
|
-
|
|
4908
|
+
u(n, {
|
|
4909
4909
|
class: "text-subtitle-1 font-weight-medium",
|
|
4910
4910
|
style: { "font-size": "16px !important" }
|
|
4911
4911
|
}, {
|
|
4912
4912
|
default: f(() => [
|
|
4913
|
-
|
|
4913
|
+
J(m(t.$t("layer.otherLayers")), 1)
|
|
4914
4914
|
]),
|
|
4915
4915
|
_: 1
|
|
4916
4916
|
})
|
|
4917
4917
|
]),
|
|
4918
4918
|
_: 1
|
|
4919
4919
|
}),
|
|
4920
|
-
|
|
4920
|
+
u(b, { class: "py-2" }, {
|
|
4921
4921
|
default: f(() => [
|
|
4922
4922
|
(y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
|
|
4923
4923
|
key: F.key,
|
|
4924
4924
|
modelValue: a.checkList,
|
|
4925
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
4925
|
+
"onUpdate:modelValue": e[2] || (e[2] = (se) => a.checkList = se),
|
|
4926
4926
|
value: F.key,
|
|
4927
4927
|
label: t.$t(`layer.${F.locale}`),
|
|
4928
4928
|
color: "primary",
|
|
@@ -4937,28 +4937,28 @@ function hl(t, e, o, i, a, r) {
|
|
|
4937
4937
|
]),
|
|
4938
4938
|
_: 1
|
|
4939
4939
|
}),
|
|
4940
|
-
|
|
4940
|
+
u(w, {
|
|
4941
4941
|
class: "block-bg mx-auto mb-3",
|
|
4942
4942
|
elevation: "0"
|
|
4943
4943
|
}, {
|
|
4944
4944
|
default: f(() => [
|
|
4945
|
-
|
|
4945
|
+
u(g, { class: "border-b-thin" }, {
|
|
4946
4946
|
default: f(() => [
|
|
4947
|
-
|
|
4947
|
+
u(n, {
|
|
4948
4948
|
class: "text-subtitle-1 font-weight-medium",
|
|
4949
4949
|
style: { "font-size": "16px !important" }
|
|
4950
4950
|
}, {
|
|
4951
4951
|
default: f(() => [
|
|
4952
|
-
|
|
4952
|
+
J(m(t.$t("layer.myFollows")), 1)
|
|
4953
4953
|
]),
|
|
4954
4954
|
_: 1
|
|
4955
4955
|
})
|
|
4956
4956
|
]),
|
|
4957
4957
|
_: 1
|
|
4958
4958
|
}),
|
|
4959
|
-
|
|
4959
|
+
u(b, { class: "py-2" }, {
|
|
4960
4960
|
default: f(() => [
|
|
4961
|
-
|
|
4961
|
+
u(h, {
|
|
4962
4962
|
modelValue: a.checkList,
|
|
4963
4963
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
|
|
4964
4964
|
value: "follow-ports",
|
|
@@ -4969,7 +4969,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4969
4969
|
class: "flex-1-0-100 text-body-2",
|
|
4970
4970
|
"hide-details": ""
|
|
4971
4971
|
}, null, 8, ["modelValue", "label"]),
|
|
4972
|
-
|
|
4972
|
+
u(h, {
|
|
4973
4973
|
modelValue: a.checkList,
|
|
4974
4974
|
"onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
|
|
4975
4975
|
value: "follow-positions",
|
|
@@ -4988,28 +4988,28 @@ function hl(t, e, o, i, a, r) {
|
|
|
4988
4988
|
})
|
|
4989
4989
|
])
|
|
4990
4990
|
], 6),
|
|
4991
|
-
o.map ? (y(), R(
|
|
4991
|
+
o.map ? (y(), R(L, B({
|
|
4992
4992
|
key: 0,
|
|
4993
4993
|
map: o.map,
|
|
4994
4994
|
"menu-toggle": o.menuToggle,
|
|
4995
4995
|
show: a.checkList.includes("graticule")
|
|
4996
4996
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
|
|
4997
|
-
o.map ? (y(), R(
|
|
4997
|
+
o.map ? (y(), R(p, B({
|
|
4998
4998
|
key: 1,
|
|
4999
4999
|
map: o.map,
|
|
5000
5000
|
area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
|
|
5001
5001
|
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
|
|
5002
|
-
o.map ? (y(), R(
|
|
5002
|
+
o.map ? (y(), R(z, B({
|
|
5003
5003
|
key: 2,
|
|
5004
5004
|
map: o.map,
|
|
5005
|
-
zone: (
|
|
5005
|
+
zone: (ce = a.otherLayers) == null ? void 0 : ce["time-zones"],
|
|
5006
5006
|
realTime: o.realTime
|
|
5007
5007
|
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : D("", !0),
|
|
5008
5008
|
o.map ? (y(), R(T, B({
|
|
5009
5009
|
key: 3,
|
|
5010
5010
|
ref: "idmPorts",
|
|
5011
5011
|
map: o.map,
|
|
5012
|
-
ports: (
|
|
5012
|
+
ports: (le = a.otherLayers) == null ? void 0 : le.ports,
|
|
5013
5013
|
gateway: o.gateway,
|
|
5014
5014
|
token: o.token,
|
|
5015
5015
|
"forecast-model": o.forecastModel,
|
|
@@ -5018,7 +5018,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5018
5018
|
o.map ? (y(), R(O, B({
|
|
5019
5019
|
key: 4,
|
|
5020
5020
|
map: o.map,
|
|
5021
|
-
zone: (
|
|
5021
|
+
zone: (me = a.otherLayers) == null ? void 0 : me["alert-zones"]
|
|
5022
5022
|
}, t.$attrs, {
|
|
5023
5023
|
"before-layer": "empty-layer-3",
|
|
5024
5024
|
theme: o.theme
|
|
@@ -5036,27 +5036,27 @@ function hl(t, e, o, i, a, r) {
|
|
|
5036
5036
|
forecastModel: o.forecastModel,
|
|
5037
5037
|
"before-layer": "empty-layer-3"
|
|
5038
5038
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5039
|
-
o.map ? (y(), R(
|
|
5039
|
+
o.map ? (y(), R(P, B({
|
|
5040
5040
|
key: 6,
|
|
5041
5041
|
map: o.map,
|
|
5042
|
-
zone: (
|
|
5042
|
+
zone: (K = a.otherLayers) == null ? void 0 : K["eca-zones"]
|
|
5043
5043
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5044
|
-
o.map ? (y(), R(
|
|
5044
|
+
o.map ? (y(), R(k, B({
|
|
5045
5045
|
key: 7,
|
|
5046
5046
|
map: o.map,
|
|
5047
|
-
zone: (
|
|
5047
|
+
zone: (ie = a.otherLayers) == null ? void 0 : ie["war-zones"]
|
|
5048
5048
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5049
5049
|
o.map ? (y(), R(v, B({
|
|
5050
5050
|
key: 8,
|
|
5051
5051
|
map: o.map,
|
|
5052
|
-
area: (
|
|
5052
|
+
area: (pe = a.otherLayers) == null ? void 0 : pe["gmdss-areas"]
|
|
5053
5053
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5054
5054
|
o.map ? (y(), R(C, B({
|
|
5055
5055
|
key: 9,
|
|
5056
5056
|
map: o.map,
|
|
5057
5057
|
show: a.checkList.includes("load-lines")
|
|
5058
5058
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5059
|
-
o.map ? (y(), R(
|
|
5059
|
+
o.map ? (y(), R(_, B({
|
|
5060
5060
|
key: 10,
|
|
5061
5061
|
map: o.map,
|
|
5062
5062
|
token: o.token,
|
|
@@ -5065,14 +5065,14 @@ function hl(t, e, o, i, a, r) {
|
|
|
5065
5065
|
o.map ? (y(), R(A, B({
|
|
5066
5066
|
key: 11,
|
|
5067
5067
|
map: o.map,
|
|
5068
|
-
area: (
|
|
5068
|
+
area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
|
|
5069
5069
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5070
5070
|
o.map ? (y(), R(N, B({
|
|
5071
5071
|
key: 12,
|
|
5072
5072
|
map: o.map,
|
|
5073
|
-
area: (
|
|
5073
|
+
area: (ue = a.otherLayers) == null ? void 0 : ue["special-area"]
|
|
5074
5074
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5075
|
-
o.map ? (y(), R(
|
|
5075
|
+
o.map ? (y(), R(V, B({
|
|
5076
5076
|
key: 13,
|
|
5077
5077
|
map: o.map,
|
|
5078
5078
|
token: o.token,
|
|
@@ -5084,7 +5084,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5084
5084
|
token: o.token,
|
|
5085
5085
|
show: a.checkList.includes("chinaRoute")
|
|
5086
5086
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5087
|
-
o.map ? (y(), R(
|
|
5087
|
+
o.map ? (y(), R(Z, B({
|
|
5088
5088
|
key: 15,
|
|
5089
5089
|
map: o.map,
|
|
5090
5090
|
show: a.checkList.includes("ice-areas")
|
|
@@ -5099,7 +5099,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5099
5099
|
"forecast-model": o.forecastModel,
|
|
5100
5100
|
realTime: o.realTime
|
|
5101
5101
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5102
|
-
o.map ? (y(), R(
|
|
5102
|
+
o.map ? (y(), R(Q, B({
|
|
5103
5103
|
key: 17,
|
|
5104
5104
|
ref: "idmFollowPosition",
|
|
5105
5105
|
map: o.map,
|
|
@@ -5112,15 +5112,15 @@ function hl(t, e, o, i, a, r) {
|
|
|
5112
5112
|
const pl = /* @__PURE__ */ q(el, [["render", hl]]);
|
|
5113
5113
|
class Do {
|
|
5114
5114
|
constructor(e) {
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5115
|
+
he(this, "map");
|
|
5116
|
+
he(this, "mercator");
|
|
5117
|
+
he(this, "rampColorLayer");
|
|
5118
|
+
he(this, "rampColorSource");
|
|
5119
|
+
he(this, "particleLayer");
|
|
5120
|
+
he(this, "particleSource");
|
|
5121
|
+
he(this, "rampColorCanvas");
|
|
5122
|
+
he(this, "particleCanvas");
|
|
5123
|
+
he(this, "ratio");
|
|
5124
5124
|
this.map = e, this.mercator = new Qa(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
5125
5125
|
}
|
|
5126
5126
|
/**
|
|
@@ -5156,12 +5156,12 @@ class Do {
|
|
|
5156
5156
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5157
5157
|
*/
|
|
5158
5158
|
getBoundPixel() {
|
|
5159
|
-
var
|
|
5160
|
-
const e = (
|
|
5159
|
+
var p, z;
|
|
5160
|
+
const e = (p = this.map) == null ? void 0 : p.getBounds();
|
|
5161
5161
|
if (!e)
|
|
5162
5162
|
return [];
|
|
5163
|
-
const o = ((
|
|
5164
|
-
return [b, w,
|
|
5163
|
+
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, h] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
|
|
5164
|
+
return [b, w, g + L, h];
|
|
5165
5165
|
}
|
|
5166
5166
|
/**
|
|
5167
5167
|
* [视窗边界像素宽度]
|
|
@@ -5266,13 +5266,13 @@ class Ne {
|
|
|
5266
5266
|
if (a) {
|
|
5267
5267
|
const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
5268
5268
|
for (let n = 0; n < l; n++) {
|
|
5269
|
-
const
|
|
5270
|
-
r[
|
|
5269
|
+
const g = e.getActiveAttrib(a, n);
|
|
5270
|
+
r[g.name] = e.getAttribLocation(a, g.name);
|
|
5271
5271
|
}
|
|
5272
5272
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
5273
5273
|
for (let n = 0; n < c; n++) {
|
|
5274
|
-
const
|
|
5275
|
-
r[
|
|
5274
|
+
const g = e.getActiveUniform(a, n);
|
|
5275
|
+
r[g.name] = e.getUniformLocation(a, g.name);
|
|
5276
5276
|
}
|
|
5277
5277
|
return r;
|
|
5278
5278
|
}
|
|
@@ -5287,8 +5287,8 @@ class Ne {
|
|
|
5287
5287
|
const c = l.getContext("2d");
|
|
5288
5288
|
if (c && e) {
|
|
5289
5289
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
5290
|
-
return o.forEach(([
|
|
5291
|
-
n.addColorStop(
|
|
5290
|
+
return o.forEach(([g, h]) => {
|
|
5291
|
+
n.addColorStop(g, h);
|
|
5292
5292
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
5293
5293
|
canvas: l,
|
|
5294
5294
|
texture: this.createTexture(
|
|
@@ -5310,8 +5310,8 @@ class Ne {
|
|
|
5310
5310
|
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
5311
5311
|
for (let h = 0; h < a; h++)
|
|
5312
5312
|
n[h] = h;
|
|
5313
|
-
const
|
|
5314
|
-
return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer:
|
|
5313
|
+
const g = this.createDataBuffer(e, "array", n);
|
|
5314
|
+
return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: g };
|
|
5315
5315
|
}
|
|
5316
5316
|
bind(e, o, i) {
|
|
5317
5317
|
const a = this.createProgram(e, o, i);
|
|
@@ -5326,13 +5326,13 @@ class Ne {
|
|
|
5326
5326
|
return {};
|
|
5327
5327
|
}
|
|
5328
5328
|
bindParticle(e, o, i, a, r, l) {
|
|
5329
|
-
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r),
|
|
5330
|
-
return { particle: c, screen: n, update:
|
|
5329
|
+
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, l), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
|
|
5330
|
+
return { particle: c, screen: n, update: g, quadBuffer: h, frameBuffer: b };
|
|
5331
5331
|
}
|
|
5332
5332
|
draw(e, o, i, a, r, l, c) {
|
|
5333
|
-
var n,
|
|
5333
|
+
var n, g;
|
|
5334
5334
|
if (o && i) {
|
|
5335
|
-
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (
|
|
5335
|
+
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
5336
5336
|
try {
|
|
5337
5337
|
o.useProgram(i);
|
|
5338
5338
|
const h = {
|
|
@@ -5344,9 +5344,9 @@ class Ne {
|
|
|
5344
5344
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
5345
5345
|
};
|
|
5346
5346
|
h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
5347
|
-
const b = e.getBoundPixel(), w = e.map.getZoom() + 1,
|
|
5348
|
-
for (const
|
|
5349
|
-
const
|
|
5347
|
+
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(b, w);
|
|
5348
|
+
for (const p of L) {
|
|
5349
|
+
const z = (p[0] - b[0]) * e.ratio, T = (p[1] - b[3]) * e.ratio, O = p[2] * e.ratio, [I, P, k, v] = [z, O + z, T, O + T], C = new Float32Array([I, k, P, k, I, v, I, v, P, k, P, v]);
|
|
5350
5350
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5351
5351
|
}
|
|
5352
5352
|
} catch (h) {
|
|
@@ -5395,10 +5395,10 @@ class Ne {
|
|
|
5395
5395
|
});
|
|
5396
5396
|
}
|
|
5397
5397
|
}
|
|
5398
|
-
class
|
|
5398
|
+
class ne {
|
|
5399
5399
|
}
|
|
5400
5400
|
// 顶点渲染
|
|
5401
|
-
|
|
5401
|
+
he(ne, "vertexSchema", `
|
|
5402
5402
|
//canvas 坐标系上的坐标 (x, y)
|
|
5403
5403
|
attribute vec2 a_position; //像素坐标
|
|
5404
5404
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -5413,7 +5413,7 @@ de(le, "vertexSchema", `
|
|
|
5413
5413
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
5414
5414
|
v_texCoord = a_texCoord;
|
|
5415
5415
|
}`), // 类如风、流等u v双变量片元渲染
|
|
5416
|
-
|
|
5416
|
+
he(ne, "uvFragmentSchema", `
|
|
5417
5417
|
precision mediump float;
|
|
5418
5418
|
uniform sampler2D u_image;
|
|
5419
5419
|
uniform vec2 u_range_u_v;
|
|
@@ -5433,7 +5433,7 @@ de(le, "uvFragmentSchema", `
|
|
|
5433
5433
|
|
|
5434
5434
|
gl_FragColor = color;
|
|
5435
5435
|
}`), // 类如浪、气压等单变量片元渲染
|
|
5436
|
-
|
|
5436
|
+
he(ne, "fragmentSchema", `
|
|
5437
5437
|
precision mediump float;
|
|
5438
5438
|
uniform sampler2D u_image; // 灰度
|
|
5439
5439
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -5446,7 +5446,7 @@ de(le, "fragmentSchema", `
|
|
|
5446
5446
|
}`);
|
|
5447
5447
|
class ze {
|
|
5448
5448
|
}
|
|
5449
|
-
|
|
5449
|
+
he(ze, "vertexSchema", `
|
|
5450
5450
|
precision mediump float;
|
|
5451
5451
|
|
|
5452
5452
|
attribute float a_index; // 索引
|
|
@@ -5470,7 +5470,7 @@ de(ze, "vertexSchema", `
|
|
|
5470
5470
|
gl_PointSize = 1.0;
|
|
5471
5471
|
// gl_PointSize = u_point;
|
|
5472
5472
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
5473
|
-
}`),
|
|
5473
|
+
}`), he(ze, "fragmentSchema", `
|
|
5474
5474
|
precision mediump float;
|
|
5475
5475
|
|
|
5476
5476
|
uniform sampler2D u_factor;
|
|
@@ -5492,7 +5492,7 @@ de(ze, "vertexSchema", `
|
|
|
5492
5492
|
|
|
5493
5493
|
float f = 1.0 - uv.b;
|
|
5494
5494
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
5495
|
-
}`),
|
|
5495
|
+
}`), he(ze, "quadVertSchema", `
|
|
5496
5496
|
precision mediump float;
|
|
5497
5497
|
|
|
5498
5498
|
attribute vec2 a_pos;
|
|
@@ -5502,7 +5502,7 @@ de(ze, "vertexSchema", `
|
|
|
5502
5502
|
void main() {
|
|
5503
5503
|
v_tex_pos = a_pos;
|
|
5504
5504
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
5505
|
-
}`),
|
|
5505
|
+
}`), he(ze, "screenFragmentSchema", `
|
|
5506
5506
|
precision mediump float;
|
|
5507
5507
|
|
|
5508
5508
|
uniform sampler2D u_screen;
|
|
@@ -5514,7 +5514,7 @@ de(ze, "vertexSchema", `
|
|
|
5514
5514
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
5515
5515
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
5516
5516
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
5517
|
-
}`),
|
|
5517
|
+
}`), he(ze, "updateFragmentSchema", `
|
|
5518
5518
|
precision mediump float;
|
|
5519
5519
|
|
|
5520
5520
|
uniform sampler2D u_particles;
|
|
@@ -5694,17 +5694,17 @@ const ul = {
|
|
|
5694
5694
|
else {
|
|
5695
5695
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
5696
5696
|
for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
|
|
5697
|
-
const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0,
|
|
5698
|
-
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[
|
|
5699
|
-
this.map.hasImage(
|
|
5697
|
+
const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0, g = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
|
|
5698
|
+
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[g]), h.onload = () => {
|
|
5699
|
+
this.map.hasImage(g + "-icon") || this.map.addImage(g + "-icon", h), this.map.addLayer(
|
|
5700
5700
|
{
|
|
5701
|
-
id:
|
|
5701
|
+
id: g,
|
|
5702
5702
|
type: "symbol",
|
|
5703
5703
|
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
5704
5704
|
source: this.source,
|
|
5705
5705
|
layout: {
|
|
5706
5706
|
"symbol-placement": "point",
|
|
5707
|
-
"icon-image":
|
|
5707
|
+
"icon-image": g + "-icon",
|
|
5708
5708
|
// mapbox sprite
|
|
5709
5709
|
"icon-size": 0.5,
|
|
5710
5710
|
"icon-offset": [0, -20],
|
|
@@ -5862,7 +5862,7 @@ const bl = {
|
|
|
5862
5862
|
[1, "rgb(91, 136, 161)"]
|
|
5863
5863
|
];
|
|
5864
5864
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5865
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5865
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
5866
5866
|
this.program = e, this.aPositionBuffer = o;
|
|
5867
5867
|
}
|
|
5868
5868
|
this.handleParticleSetup();
|
|
@@ -6044,11 +6044,11 @@ const vl = /* @__PURE__ */ q(bl, [["render", xl]]), _l = {
|
|
|
6044
6044
|
);
|
|
6045
6045
|
const l = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
|
|
6046
6046
|
l.src = "data:image/svg+xml;base64," + window.btoa(c);
|
|
6047
|
-
const n = new Image(48, 48),
|
|
6047
|
+
const n = new Image(48, 48), g = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6048
6048
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6049
6049
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6050
6050
|
</svg>`;
|
|
6051
|
-
n.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6051
|
+
n.src = "data:image/svg+xml;base64," + window.btoa(g);
|
|
6052
6052
|
const h = [n];
|
|
6053
6053
|
let b = 0;
|
|
6054
6054
|
h.forEach((w) => {
|
|
@@ -6195,7 +6195,7 @@ const Ll = {
|
|
|
6195
6195
|
[1, "rgb(195,194,194)"]
|
|
6196
6196
|
];
|
|
6197
6197
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6198
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6198
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
6199
6199
|
this.program = e, this.aPositionBuffer = o;
|
|
6200
6200
|
}
|
|
6201
6201
|
this.handleParticleSetup();
|
|
@@ -6367,7 +6367,7 @@ const Sl = {
|
|
|
6367
6367
|
//13
|
|
6368
6368
|
];
|
|
6369
6369
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6370
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6370
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6371
6371
|
this.program = e, this.aPositionBuffer = o;
|
|
6372
6372
|
}
|
|
6373
6373
|
},
|
|
@@ -6639,7 +6639,7 @@ const Bl = {
|
|
|
6639
6639
|
//13
|
|
6640
6640
|
];
|
|
6641
6641
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6642
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6642
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6643
6643
|
this.program = e, this.aPositionBuffer = o;
|
|
6644
6644
|
}
|
|
6645
6645
|
},
|
|
@@ -6827,12 +6827,12 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6827
6827
|
class: "menu-bar-box pa-1 rounded",
|
|
6828
6828
|
style: ae({ right: a.right + "px" })
|
|
6829
6829
|
}, [
|
|
6830
|
-
|
|
6830
|
+
u(c, {
|
|
6831
6831
|
text: "Map Layers",
|
|
6832
6832
|
location: "left"
|
|
6833
6833
|
}, {
|
|
6834
|
-
activator: f(({ props:
|
|
6835
|
-
|
|
6834
|
+
activator: f(({ props: g }) => [
|
|
6835
|
+
u(l, B(g, {
|
|
6836
6836
|
"min-width": "32",
|
|
6837
6837
|
width: "32",
|
|
6838
6838
|
height: "32",
|
|
@@ -6938,7 +6938,7 @@ const Wl = {
|
|
|
6938
6938
|
// 100%
|
|
6939
6939
|
];
|
|
6940
6940
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6941
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6941
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6942
6942
|
this.program = e, this.aPositionBuffer = o;
|
|
6943
6943
|
}
|
|
6944
6944
|
},
|
|
@@ -7051,7 +7051,7 @@ const ql = {
|
|
|
7051
7051
|
// 100%
|
|
7052
7052
|
];
|
|
7053
7053
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7054
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7054
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7055
7055
|
this.program = e, this.aPositionBuffer = o;
|
|
7056
7056
|
}
|
|
7057
7057
|
},
|
|
@@ -7165,7 +7165,7 @@ const Jl = {
|
|
|
7165
7165
|
// 4m
|
|
7166
7166
|
];
|
|
7167
7167
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7168
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7168
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7169
7169
|
this.program = e, this.aPositionBuffer = o;
|
|
7170
7170
|
}
|
|
7171
7171
|
},
|
|
@@ -7281,7 +7281,7 @@ const on = {
|
|
|
7281
7281
|
[1, "rgba(197,5,58,0.8)"]
|
|
7282
7282
|
];
|
|
7283
7283
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7284
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7284
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7285
7285
|
this.program = e, this.aPositionBuffer = o;
|
|
7286
7286
|
}
|
|
7287
7287
|
},
|
|
@@ -7388,7 +7388,7 @@ const ln = {
|
|
|
7388
7388
|
[1, "rgba(144,144,144,0)"]
|
|
7389
7389
|
];
|
|
7390
7390
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7391
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7391
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7392
7392
|
this.program = e, this.aPositionBuffer = o;
|
|
7393
7393
|
}
|
|
7394
7394
|
},
|
|
@@ -7496,7 +7496,7 @@ const dn = {
|
|
|
7496
7496
|
//
|
|
7497
7497
|
];
|
|
7498
7498
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7499
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7499
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7500
7500
|
this.program = e, this.aPositionBuffer = o;
|
|
7501
7501
|
}
|
|
7502
7502
|
},
|
|
@@ -7615,7 +7615,7 @@ const gn = {
|
|
|
7615
7615
|
[1, "rgb(138, 43, 10)"]
|
|
7616
7616
|
];
|
|
7617
7617
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7618
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7618
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7619
7619
|
this.program = e, this.aPositionBuffer = o;
|
|
7620
7620
|
}
|
|
7621
7621
|
},
|
|
@@ -7688,9 +7688,6 @@ const wn = {
|
|
|
7688
7688
|
type: Array,
|
|
7689
7689
|
default: []
|
|
7690
7690
|
},
|
|
7691
|
-
token: {
|
|
7692
|
-
type: String
|
|
7693
|
-
},
|
|
7694
7691
|
defaultMeteoToken: {
|
|
7695
7692
|
type: String
|
|
7696
7693
|
},
|
|
@@ -7914,11 +7911,11 @@ const wn = {
|
|
|
7914
7911
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7915
7912
|
},
|
|
7916
7913
|
async fetchWeatherLayers(t = {}) {
|
|
7917
|
-
var a, r, l, c, n,
|
|
7914
|
+
var a, r, l, c, n, g, h, b, w;
|
|
7918
7915
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7919
7916
|
let o = 0, i = 0;
|
|
7920
7917
|
if (this.map) {
|
|
7921
|
-
const
|
|
7918
|
+
const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, p = (r = this.map) == null ? void 0 : r.getBounds(), z = `${p._sw.lng},${p._sw.lat},${p._ne.lng},${p._ne.lat}`;
|
|
7922
7919
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
7923
7920
|
const T = To.WEATHER_LAYERS.find((O) => {
|
|
7924
7921
|
var I;
|
|
@@ -7930,7 +7927,7 @@ const wn = {
|
|
|
7930
7927
|
let T = this.weatherWeight;
|
|
7931
7928
|
if (T > 0) {
|
|
7932
7929
|
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
7933
|
-
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${
|
|
7930
|
+
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${L}&bbox=${z}&t=${this.realTime}`,
|
|
7934
7931
|
{
|
|
7935
7932
|
headers: {
|
|
7936
7933
|
Authorization: this.defaultMeteoToken
|
|
@@ -7938,46 +7935,46 @@ const wn = {
|
|
|
7938
7935
|
}
|
|
7939
7936
|
);
|
|
7940
7937
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
7941
|
-
const
|
|
7942
|
-
for (const C in
|
|
7943
|
-
|
|
7944
|
-
Se.get(
|
|
7938
|
+
const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
|
|
7939
|
+
for (const C in P)
|
|
7940
|
+
k.push(
|
|
7941
|
+
Se.get(P[C], {
|
|
7945
7942
|
headers: {
|
|
7946
7943
|
Authorization: this.defaultMeteoToken,
|
|
7947
7944
|
key: C
|
|
7948
7945
|
},
|
|
7949
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7950
|
-
}).catch((
|
|
7951
|
-
console.log(`[${C}] fetch layer error: ${
|
|
7946
|
+
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
7947
|
+
}).catch((_) => {
|
|
7948
|
+
console.log(`[${C}] fetch layer error: ${_}`);
|
|
7952
7949
|
})
|
|
7953
7950
|
);
|
|
7954
|
-
const v = await Promise.all(
|
|
7951
|
+
const v = await Promise.all(k);
|
|
7955
7952
|
this.weatherLayers = {}, v.map((C) => {
|
|
7956
|
-
var N,
|
|
7957
|
-
const
|
|
7958
|
-
let A = (Y = (
|
|
7959
|
-
A &&
|
|
7960
|
-
raw:
|
|
7961
|
-
type: ((
|
|
7953
|
+
var N, V, Y, Z;
|
|
7954
|
+
const _ = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
|
|
7955
|
+
let A = (Y = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : Y.key;
|
|
7956
|
+
A && _ && (this.weatherLayers[A] = {
|
|
7957
|
+
raw: _,
|
|
7958
|
+
type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
7962
7959
|
etime: I.data.etime
|
|
7963
7960
|
});
|
|
7964
7961
|
});
|
|
7965
7962
|
}
|
|
7966
7963
|
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"]) {
|
|
7967
|
-
const
|
|
7964
|
+
const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
7968
7965
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7969
7966
|
type: "json",
|
|
7970
|
-
direction:
|
|
7971
|
-
height: { raw:
|
|
7967
|
+
direction: P,
|
|
7968
|
+
height: { raw: k },
|
|
7972
7969
|
etime: I.data.etime
|
|
7973
7970
|
};
|
|
7974
7971
|
}
|
|
7975
7972
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7976
|
-
const
|
|
7973
|
+
const P = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
7977
7974
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7978
7975
|
type: "json",
|
|
7979
|
-
direction:
|
|
7980
|
-
speed: { raw:
|
|
7976
|
+
direction: P,
|
|
7977
|
+
speed: { raw: k },
|
|
7981
7978
|
etime: I.data.etime
|
|
7982
7979
|
};
|
|
7983
7980
|
}
|
|
@@ -8000,7 +7997,7 @@ const wn = {
|
|
|
8000
7997
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8001
7998
|
},
|
|
8002
7999
|
handleRampColorInitial() {
|
|
8003
|
-
var t, e, o, i, a, r, l, c, n,
|
|
8000
|
+
var t, e, o, i, a, r, l, c, n, g, h, b;
|
|
8004
8001
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8005
8002
|
type: "canvas",
|
|
8006
8003
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -8021,7 +8018,7 @@ const wn = {
|
|
|
8021
8018
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
8022
8019
|
animate: !0,
|
|
8023
8020
|
coordinates: this.viewport.getBoundLngLat()
|
|
8024
|
-
}), this.viewport.map.getLayer((
|
|
8021
|
+
}), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
|
|
8025
8022
|
{
|
|
8026
8023
|
type: "raster",
|
|
8027
8024
|
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
@@ -8034,180 +8031,180 @@ const wn = {
|
|
|
8034
8031
|
);
|
|
8035
8032
|
},
|
|
8036
8033
|
handleDrawWeather4Json() {
|
|
8037
|
-
var r, l, c, n,
|
|
8034
|
+
var r, l, c, n, g, h, b;
|
|
8038
8035
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8039
8036
|
let e = 0, o = 0;
|
|
8040
8037
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8041
8038
|
if (i && a) {
|
|
8042
|
-
const w = X.convertToStdLng(i._sw.lng),
|
|
8039
|
+
const w = X.convertToStdLng(i._sw.lng), L = X.convertToStdLng(i._ne.lng), p = Math.floor(i._sw.lat), z = Math.ceil(i._ne.lat);
|
|
8043
8040
|
for (const T in this.weatherLayers) {
|
|
8044
8041
|
let O = !1;
|
|
8045
8042
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8046
8043
|
let I = [];
|
|
8047
8044
|
if (T === "swell") {
|
|
8048
8045
|
O = !0;
|
|
8049
|
-
const
|
|
8050
|
-
for (const v in
|
|
8051
|
-
if (v >
|
|
8052
|
-
const C =
|
|
8053
|
-
w >
|
|
8054
|
-
var N,
|
|
8046
|
+
const P = ((c = this.weatherLayers[T]) == null ? void 0 : c.direction) || {};
|
|
8047
|
+
for (const v in P)
|
|
8048
|
+
if (v > p && v < z && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8049
|
+
const C = P[v].lng;
|
|
8050
|
+
w > L ? C.forEach((_, A) => {
|
|
8051
|
+
var N, V, Y, Z, ee, Q;
|
|
8055
8052
|
if (a < 2) {
|
|
8056
|
-
if ((
|
|
8057
|
-
const $ = H.point([
|
|
8058
|
-
val: ((N =
|
|
8059
|
-
spd: (Y =
|
|
8053
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8054
|
+
const $ = H.point([_, v], {
|
|
8055
|
+
val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
|
|
8056
|
+
spd: (Y = P[v].spd) == null ? void 0 : Y[A]
|
|
8060
8057
|
});
|
|
8061
8058
|
I.push($);
|
|
8062
8059
|
}
|
|
8063
|
-
} else if ((
|
|
8064
|
-
const $ = H.point([
|
|
8065
|
-
val: ((
|
|
8066
|
-
spd: (
|
|
8060
|
+
} else if ((_ >= w && _ <= 180 || _ >= -180 && _ <= L) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8061
|
+
const $ = H.point([_, v], {
|
|
8062
|
+
val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
|
|
8063
|
+
spd: (Q = P[v].spd) == null ? void 0 : Q[A]
|
|
8067
8064
|
});
|
|
8068
8065
|
I.push($);
|
|
8069
8066
|
}
|
|
8070
|
-
}) : C.forEach((
|
|
8071
|
-
var N,
|
|
8067
|
+
}) : C.forEach((_, A) => {
|
|
8068
|
+
var N, V, Y, Z, ee, Q;
|
|
8072
8069
|
if (w < 2) {
|
|
8073
|
-
if ((
|
|
8074
|
-
const $ = H.point([
|
|
8075
|
-
val: ((N =
|
|
8076
|
-
spd: (Y =
|
|
8070
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8071
|
+
const $ = H.point([_, v], {
|
|
8072
|
+
val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
|
|
8073
|
+
spd: (Y = P[v].spd) == null ? void 0 : Y[A]
|
|
8077
8074
|
});
|
|
8078
8075
|
I.push($);
|
|
8079
8076
|
}
|
|
8080
|
-
} else if (
|
|
8081
|
-
const $ = H.point([
|
|
8082
|
-
val: ((
|
|
8083
|
-
spd: (
|
|
8077
|
+
} else if (_ >= w && _ <= L && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8078
|
+
const $ = H.point([_, v], {
|
|
8079
|
+
val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
|
|
8080
|
+
spd: (Q = P[v].spd) == null ? void 0 : Q[A]
|
|
8084
8081
|
});
|
|
8085
8082
|
I.push($);
|
|
8086
8083
|
}
|
|
8087
8084
|
});
|
|
8088
8085
|
}
|
|
8089
8086
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
8090
|
-
const
|
|
8091
|
-
if (
|
|
8092
|
-
if (!
|
|
8087
|
+
const k = this.weatherLayers[T].height;
|
|
8088
|
+
if (k) {
|
|
8089
|
+
if (!k.data) {
|
|
8093
8090
|
const v = [];
|
|
8094
|
-
for (const C in (n =
|
|
8095
|
-
const
|
|
8096
|
-
for (const A of
|
|
8091
|
+
for (const C in (n = k.raw) == null ? void 0 : n.LineString) {
|
|
8092
|
+
const _ = k.raw.LineString[C];
|
|
8093
|
+
for (const A of _)
|
|
8097
8094
|
v.push(
|
|
8098
8095
|
H.lineString(A, {
|
|
8099
8096
|
val: Number(C)
|
|
8100
8097
|
})
|
|
8101
8098
|
);
|
|
8102
|
-
|
|
8099
|
+
k.data = H.featureCollection(v);
|
|
8103
8100
|
}
|
|
8104
8101
|
}
|
|
8105
|
-
if (
|
|
8106
|
-
const v = this.handleBboxClip(
|
|
8102
|
+
if (k.data) {
|
|
8103
|
+
const v = this.handleBboxClip(k.data, i);
|
|
8107
8104
|
I = I.concat(v);
|
|
8108
8105
|
}
|
|
8109
8106
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8110
8107
|
}
|
|
8111
8108
|
} else if (T === "current") {
|
|
8112
8109
|
O = !0;
|
|
8113
|
-
const
|
|
8114
|
-
for (const v in
|
|
8115
|
-
if (v >
|
|
8116
|
-
const C =
|
|
8117
|
-
w >
|
|
8118
|
-
var N,
|
|
8110
|
+
const P = ((g = this.weatherLayers[T]) == null ? void 0 : g.direction) || {};
|
|
8111
|
+
for (const v in P)
|
|
8112
|
+
if (v > p && v < z && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8113
|
+
const C = P[v].lng;
|
|
8114
|
+
w > L ? C.forEach((_, A) => {
|
|
8115
|
+
var N, V, Y, Z, ee, Q;
|
|
8119
8116
|
if (a < 2) {
|
|
8120
|
-
if ((
|
|
8121
|
-
const $ = H.point([
|
|
8122
|
-
val: ((N =
|
|
8123
|
-
spd: (Y =
|
|
8117
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8118
|
+
const $ = H.point([_, v], {
|
|
8119
|
+
val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
|
|
8120
|
+
spd: (Y = P[v].spd) == null ? void 0 : Y[A]
|
|
8124
8121
|
});
|
|
8125
8122
|
I.push($);
|
|
8126
8123
|
}
|
|
8127
|
-
} else if ((
|
|
8128
|
-
const $ = H.point([
|
|
8129
|
-
val: ((
|
|
8130
|
-
spd: (
|
|
8124
|
+
} else if ((_ >= w && _ <= 180 || _ >= -180 && _ <= L) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8125
|
+
const $ = H.point([_, v], {
|
|
8126
|
+
val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
|
|
8127
|
+
spd: (Q = P[v].spd) == null ? void 0 : Q[A]
|
|
8131
8128
|
});
|
|
8132
8129
|
I.push($);
|
|
8133
8130
|
}
|
|
8134
|
-
}) : C.forEach((
|
|
8135
|
-
var N,
|
|
8131
|
+
}) : C.forEach((_, A) => {
|
|
8132
|
+
var N, V, Y, Z, ee, Q;
|
|
8136
8133
|
if (w < 2) {
|
|
8137
|
-
if ((
|
|
8138
|
-
const $ = H.point([
|
|
8139
|
-
val: ((N =
|
|
8140
|
-
spd: (Y =
|
|
8134
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
8135
|
+
const $ = H.point([_, v], {
|
|
8136
|
+
val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
|
|
8137
|
+
spd: (Y = P[v].spd) == null ? void 0 : Y[A]
|
|
8141
8138
|
});
|
|
8142
8139
|
I.push($);
|
|
8143
8140
|
}
|
|
8144
|
-
} else if (
|
|
8145
|
-
const $ = H.point([
|
|
8146
|
-
val: ((
|
|
8147
|
-
spd: (
|
|
8141
|
+
} else if (_ >= w && _ <= L && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8142
|
+
const $ = H.point([_, v], {
|
|
8143
|
+
val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
|
|
8144
|
+
spd: (Q = P[v].spd) == null ? void 0 : Q[A]
|
|
8148
8145
|
});
|
|
8149
8146
|
I.push($);
|
|
8150
8147
|
}
|
|
8151
8148
|
});
|
|
8152
8149
|
}
|
|
8153
8150
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
8154
|
-
const
|
|
8155
|
-
if (
|
|
8156
|
-
if (!
|
|
8151
|
+
const k = this.weatherLayers[T].speed;
|
|
8152
|
+
if (k) {
|
|
8153
|
+
if (!k.data) {
|
|
8157
8154
|
const C = [];
|
|
8158
|
-
for (const
|
|
8159
|
-
const A =
|
|
8155
|
+
for (const _ in (h = k.raw) == null ? void 0 : h.Polygon) {
|
|
8156
|
+
const A = k.raw.Polygon[_];
|
|
8160
8157
|
for (const N of A)
|
|
8161
8158
|
C.push(
|
|
8162
8159
|
H.polygon(N, {
|
|
8163
|
-
val: Number(
|
|
8160
|
+
val: Number(_)
|
|
8164
8161
|
})
|
|
8165
8162
|
);
|
|
8166
8163
|
}
|
|
8167
|
-
|
|
8164
|
+
k.data = H.featureCollection(C);
|
|
8168
8165
|
}
|
|
8169
|
-
const v = a < this.zoom ?
|
|
8166
|
+
const v = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
|
|
8170
8167
|
I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8171
8168
|
}
|
|
8172
8169
|
} else if (T === "wind") {
|
|
8173
8170
|
O = !0;
|
|
8174
|
-
const
|
|
8175
|
-
for (const
|
|
8176
|
-
if (
|
|
8177
|
-
const v =
|
|
8178
|
-
w >
|
|
8179
|
-
var A, N,
|
|
8171
|
+
const P = this.weatherLayers.wind.raw;
|
|
8172
|
+
for (const k in P)
|
|
8173
|
+
if (k > p && k < z && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8174
|
+
const v = P[k].lng;
|
|
8175
|
+
w > L ? v.forEach((C, _) => {
|
|
8176
|
+
var A, N, V, Y;
|
|
8180
8177
|
if (a < 2) {
|
|
8181
8178
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8182
|
-
const
|
|
8183
|
-
dir: ((A =
|
|
8184
|
-
spd:
|
|
8179
|
+
const Z = H.point([C, k], {
|
|
8180
|
+
dir: ((A = P[k].val) == null ? void 0 : A[_]) || ((N = P[k].dir) == null ? void 0 : N[_]),
|
|
8181
|
+
spd: P[k].spd[_]
|
|
8185
8182
|
});
|
|
8186
|
-
I.push(
|
|
8183
|
+
I.push(Z);
|
|
8187
8184
|
}
|
|
8188
|
-
} else if ((C >= w && C <= 180 || C >= -180 && C <=
|
|
8189
|
-
const
|
|
8190
|
-
dir: ((
|
|
8191
|
-
spd:
|
|
8185
|
+
} else if ((C >= w && C <= 180 || C >= -180 && C <= L) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8186
|
+
const Z = H.point([C, k], {
|
|
8187
|
+
dir: ((V = P[k].val) == null ? void 0 : V[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
|
|
8188
|
+
spd: P[k].spd[_]
|
|
8192
8189
|
});
|
|
8193
|
-
I.push(
|
|
8190
|
+
I.push(Z);
|
|
8194
8191
|
}
|
|
8195
|
-
}) : v.forEach((C,
|
|
8196
|
-
var A, N,
|
|
8192
|
+
}) : v.forEach((C, _) => {
|
|
8193
|
+
var A, N, V, Y;
|
|
8197
8194
|
if (a < 2) {
|
|
8198
8195
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8199
|
-
const
|
|
8200
|
-
dir: ((A =
|
|
8201
|
-
spd:
|
|
8196
|
+
const Z = H.point([C, k], {
|
|
8197
|
+
dir: ((A = P[k].val) == null ? void 0 : A[_]) || ((N = P[k].dir) == null ? void 0 : N[_]),
|
|
8198
|
+
spd: P[k].spd[_]
|
|
8202
8199
|
});
|
|
8203
|
-
I.push(
|
|
8200
|
+
I.push(Z);
|
|
8204
8201
|
}
|
|
8205
|
-
} else if (C >= w && C <=
|
|
8206
|
-
const
|
|
8207
|
-
dir: ((
|
|
8208
|
-
spd:
|
|
8202
|
+
} else if (C >= w && C <= L && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8203
|
+
const Z = H.point([C, k], {
|
|
8204
|
+
dir: ((V = P[k].val) == null ? void 0 : V[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
|
|
8205
|
+
spd: P[k].spd[_]
|
|
8209
8206
|
});
|
|
8210
|
-
I.push(
|
|
8207
|
+
I.push(Z);
|
|
8211
8208
|
}
|
|
8212
8209
|
});
|
|
8213
8210
|
}
|
|
@@ -8217,37 +8214,37 @@ const wn = {
|
|
|
8217
8214
|
I = this.weatherLayers[T].data;
|
|
8218
8215
|
else {
|
|
8219
8216
|
O = !0;
|
|
8220
|
-
const
|
|
8221
|
-
if (
|
|
8222
|
-
const
|
|
8223
|
-
for (const v in
|
|
8224
|
-
const C =
|
|
8225
|
-
for (const
|
|
8226
|
-
|
|
8227
|
-
H.polygon(
|
|
8217
|
+
const P = this.weatherLayers[T].raw;
|
|
8218
|
+
if (P) {
|
|
8219
|
+
const k = [];
|
|
8220
|
+
for (const v in P.Polygon) {
|
|
8221
|
+
const C = P.Polygon[v];
|
|
8222
|
+
for (const _ of C)
|
|
8223
|
+
k.push(
|
|
8224
|
+
H.polygon(_, {
|
|
8228
8225
|
val: Number(v)
|
|
8229
8226
|
})
|
|
8230
8227
|
);
|
|
8231
8228
|
}
|
|
8232
|
-
for (const v in
|
|
8233
|
-
const C =
|
|
8234
|
-
for (const
|
|
8235
|
-
|
|
8236
|
-
H.multiPolygon(
|
|
8229
|
+
for (const v in P.MultiPolygon) {
|
|
8230
|
+
const C = P.MultiPolygon[v];
|
|
8231
|
+
for (const _ of C)
|
|
8232
|
+
k.push(
|
|
8233
|
+
H.multiPolygon(_, {
|
|
8237
8234
|
val: Number(v)
|
|
8238
8235
|
})
|
|
8239
8236
|
);
|
|
8240
8237
|
}
|
|
8241
|
-
for (const v in
|
|
8242
|
-
const C =
|
|
8243
|
-
for (let
|
|
8244
|
-
|
|
8245
|
-
H.point([C.lng[
|
|
8246
|
-
val: Number(C.val[
|
|
8238
|
+
for (const v in P.Point) {
|
|
8239
|
+
const C = P.Point[v];
|
|
8240
|
+
for (let _ = 0; _ < ((b = C.lng) == null ? void 0 : b.length); _++)
|
|
8241
|
+
k.push(
|
|
8242
|
+
H.point([C.lng[_], v], {
|
|
8243
|
+
val: Number(C.val[_])
|
|
8247
8244
|
})
|
|
8248
8245
|
);
|
|
8249
8246
|
}
|
|
8250
|
-
I = I.concat(
|
|
8247
|
+
I = I.concat(k);
|
|
8251
8248
|
}
|
|
8252
8249
|
}
|
|
8253
8250
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -8256,28 +8253,28 @@ const wn = {
|
|
|
8256
8253
|
I = this.weatherLayers[T].data;
|
|
8257
8254
|
else {
|
|
8258
8255
|
O = !0;
|
|
8259
|
-
const
|
|
8260
|
-
if (
|
|
8261
|
-
const
|
|
8262
|
-
for (const v in
|
|
8263
|
-
const C =
|
|
8264
|
-
for (const
|
|
8265
|
-
|
|
8266
|
-
H.lineString(
|
|
8256
|
+
const P = this.weatherLayers[T].raw;
|
|
8257
|
+
if (P) {
|
|
8258
|
+
const k = [];
|
|
8259
|
+
for (const v in P.LineString) {
|
|
8260
|
+
const C = P.LineString[v];
|
|
8261
|
+
for (const _ of C)
|
|
8262
|
+
k.push(
|
|
8263
|
+
H.lineString(_, {
|
|
8267
8264
|
val: Number(v)
|
|
8268
8265
|
})
|
|
8269
8266
|
);
|
|
8270
8267
|
}
|
|
8271
|
-
for (const v in
|
|
8272
|
-
|
|
8273
|
-
C = X.convertToStdLng(C),
|
|
8268
|
+
for (const v in P.Point)
|
|
8269
|
+
P.Point[v].lng.forEach((C, _) => {
|
|
8270
|
+
C = X.convertToStdLng(C), k.push(
|
|
8274
8271
|
H.point([C, v], {
|
|
8275
|
-
val:
|
|
8276
|
-
type:
|
|
8272
|
+
val: P.Point[v].val[_],
|
|
8273
|
+
type: P.Point[v].type[_]
|
|
8277
8274
|
})
|
|
8278
8275
|
);
|
|
8279
8276
|
});
|
|
8280
|
-
I = I.concat(
|
|
8277
|
+
I = I.concat(k);
|
|
8281
8278
|
}
|
|
8282
8279
|
}
|
|
8283
8280
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
@@ -8325,19 +8322,19 @@ const wn = {
|
|
|
8325
8322
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8326
8323
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, 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" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { 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" };
|
|
8327
8324
|
function ic(t, e, o, i, a, r) {
|
|
8328
|
-
var
|
|
8329
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"),
|
|
8325
|
+
var me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke;
|
|
8326
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), L = x("VSwitch"), p = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), k = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), _ = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Y = x("IdmIceEdge"), Z = x("IdmIceCover"), ee = x("IdmIceThickness"), Q = x("IdmPrecip3h"), $ = x("IdmVisibility"), ce = x("IdmWaterTemp"), le = x("IdmTemp");
|
|
8330
8327
|
return y(), M("div", xn, [
|
|
8331
8328
|
s("div", {
|
|
8332
8329
|
class: "menu-bar-box transition pa-1",
|
|
8333
8330
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
8334
8331
|
}, [
|
|
8335
|
-
|
|
8332
|
+
u(c, {
|
|
8336
8333
|
text: t.$t("weather.weatherLayers"),
|
|
8337
8334
|
location: "left"
|
|
8338
8335
|
}, {
|
|
8339
8336
|
activator: f(({ props: G }) => [
|
|
8340
|
-
|
|
8337
|
+
u(l, B(G, {
|
|
8341
8338
|
"min-width": "32",
|
|
8342
8339
|
width: "32",
|
|
8343
8340
|
height: "32",
|
|
@@ -8359,12 +8356,12 @@ function ic(t, e, o, i, a, r) {
|
|
|
8359
8356
|
class: "menu-bar-box pa-1 rounded",
|
|
8360
8357
|
style: ae({ right: a.right + "px" })
|
|
8361
8358
|
}, [
|
|
8362
|
-
|
|
8359
|
+
u(c, {
|
|
8363
8360
|
text: "Legend",
|
|
8364
8361
|
location: "left"
|
|
8365
8362
|
}, {
|
|
8366
8363
|
activator: f(({ props: G }) => [
|
|
8367
|
-
|
|
8364
|
+
u(l, B(G, {
|
|
8368
8365
|
"min-width": "32",
|
|
8369
8366
|
width: "32",
|
|
8370
8367
|
height: "32",
|
|
@@ -8389,10 +8386,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
8389
8386
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
8390
8387
|
}, {
|
|
8391
8388
|
default: f(() => [
|
|
8392
|
-
|
|
8389
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8393
8390
|
default: f(() => [
|
|
8394
8391
|
e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
8395
|
-
|
|
8392
|
+
u(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
8396
8393
|
default: f(() => [
|
|
8397
8394
|
(y(!0), M(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
|
|
8398
8395
|
key: G,
|
|
@@ -8417,11 +8414,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
8417
8414
|
_: 1,
|
|
8418
8415
|
__: [10]
|
|
8419
8416
|
}),
|
|
8420
|
-
|
|
8421
|
-
|
|
8417
|
+
u(b, { vertical: "" }),
|
|
8418
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8422
8419
|
default: f(() => [
|
|
8423
8420
|
e[11] || (e[11] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
8424
|
-
|
|
8421
|
+
u(g, {
|
|
8425
8422
|
class: "ma-0 ml-1",
|
|
8426
8423
|
style: { width: "100px" }
|
|
8427
8424
|
}, {
|
|
@@ -8449,11 +8446,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
8449
8446
|
_: 1,
|
|
8450
8447
|
__: [11]
|
|
8451
8448
|
}),
|
|
8452
|
-
|
|
8453
|
-
|
|
8449
|
+
u(b, { vertical: "" }),
|
|
8450
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
8454
8451
|
default: f(() => [
|
|
8455
8452
|
e[12] || (e[12] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
8456
|
-
|
|
8453
|
+
u(g, {
|
|
8457
8454
|
class: "ma-0 ml-n5",
|
|
8458
8455
|
style: { width: "110px" }
|
|
8459
8456
|
}, {
|
|
@@ -8494,7 +8491,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8494
8491
|
s("div", Mn, [
|
|
8495
8492
|
s("div", In, [
|
|
8496
8493
|
s("div", Dn, m(t.$t("weather.weather")), 1),
|
|
8497
|
-
|
|
8494
|
+
u(L, {
|
|
8498
8495
|
modelValue: a.autoActive,
|
|
8499
8496
|
"onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
|
|
8500
8497
|
class: "small-switch",
|
|
@@ -8504,7 +8501,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8504
8501
|
"hide-details": ""
|
|
8505
8502
|
}, null, 8, ["modelValue"])
|
|
8506
8503
|
]),
|
|
8507
|
-
|
|
8504
|
+
u(l, {
|
|
8508
8505
|
icon: "",
|
|
8509
8506
|
density: "compact",
|
|
8510
8507
|
variant: "plain",
|
|
@@ -8521,26 +8518,26 @@ function ic(t, e, o, i, a, r) {
|
|
|
8521
8518
|
s("div", {
|
|
8522
8519
|
class: Ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
8523
8520
|
}, [
|
|
8524
|
-
|
|
8521
|
+
u(w, {
|
|
8525
8522
|
class: "block-bg mx-auto mb-3",
|
|
8526
8523
|
elevation: "0"
|
|
8527
8524
|
}, {
|
|
8528
8525
|
default: f(() => [
|
|
8529
|
-
|
|
8526
|
+
u(z, { class: "border-b-thin" }, {
|
|
8530
8527
|
default: f(() => [
|
|
8531
|
-
p
|
|
8528
|
+
u(p, {
|
|
8532
8529
|
class: "text-subtitle-1 font-weight-medium",
|
|
8533
8530
|
style: { "font-size": "16px !important" }
|
|
8534
8531
|
}, {
|
|
8535
8532
|
default: f(() => [
|
|
8536
|
-
|
|
8533
|
+
J(m(t.$t("weather.overlays")), 1)
|
|
8537
8534
|
]),
|
|
8538
8535
|
_: 1
|
|
8539
8536
|
})
|
|
8540
8537
|
]),
|
|
8541
8538
|
_: 1
|
|
8542
8539
|
}),
|
|
8543
|
-
|
|
8540
|
+
u(h, { class: "py-2" }, {
|
|
8544
8541
|
default: f(() => [
|
|
8545
8542
|
(y(!0), M(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
|
|
8546
8543
|
key: G.key,
|
|
@@ -8561,31 +8558,31 @@ function ic(t, e, o, i, a, r) {
|
|
|
8561
8558
|
]),
|
|
8562
8559
|
_: 1
|
|
8563
8560
|
}),
|
|
8564
|
-
|
|
8561
|
+
u(w, {
|
|
8565
8562
|
class: "block-bg mx-auto mb-3",
|
|
8566
8563
|
elevation: "0"
|
|
8567
8564
|
}, {
|
|
8568
8565
|
default: f(() => [
|
|
8569
|
-
|
|
8566
|
+
u(z, { class: "border-b-thin" }, {
|
|
8570
8567
|
default: f(() => [
|
|
8571
|
-
p
|
|
8568
|
+
u(p, {
|
|
8572
8569
|
class: "text-subtitle-1 font-weight-medium",
|
|
8573
8570
|
style: { "font-size": "16px !important" }
|
|
8574
8571
|
}, {
|
|
8575
8572
|
default: f(() => [
|
|
8576
|
-
|
|
8573
|
+
J(m(t.$t("weather.renders")), 1)
|
|
8577
8574
|
]),
|
|
8578
8575
|
_: 1
|
|
8579
8576
|
})
|
|
8580
8577
|
]),
|
|
8581
8578
|
_: 1
|
|
8582
8579
|
}),
|
|
8583
|
-
|
|
8580
|
+
u(h, { class: "py-2" }, {
|
|
8584
8581
|
default: f(() => [
|
|
8585
8582
|
(y(!0), M(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), M(be, {
|
|
8586
8583
|
key: G.key
|
|
8587
8584
|
}, [
|
|
8588
|
-
|
|
8585
|
+
u(O, {
|
|
8589
8586
|
modelValue: a.renderKey,
|
|
8590
8587
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
8591
8588
|
label: t.$t(`weather.${G.locale}`),
|
|
@@ -8600,7 +8597,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8600
8597
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
8601
8598
|
a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), M("div", An, [
|
|
8602
8599
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8603
|
-
|
|
8600
|
+
u(L, {
|
|
8604
8601
|
modelValue: a.showWindParticle,
|
|
8605
8602
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
8606
8603
|
label: "",
|
|
@@ -8615,7 +8612,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8615
8612
|
])) : D("", !0),
|
|
8616
8613
|
a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), M("div", Rn, [
|
|
8617
8614
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8618
|
-
|
|
8615
|
+
u(L, {
|
|
8619
8616
|
modelValue: a.showCurrentParticle,
|
|
8620
8617
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
8621
8618
|
label: "",
|
|
@@ -8640,7 +8637,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8640
8637
|
disabled: !a.autoActive
|
|
8641
8638
|
}, {
|
|
8642
8639
|
default: f(() => [
|
|
8643
|
-
|
|
8640
|
+
u(l, {
|
|
8644
8641
|
density: "compact",
|
|
8645
8642
|
height: "30",
|
|
8646
8643
|
value: "sig-wave",
|
|
@@ -8650,11 +8647,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
8650
8647
|
disabled: !a.autoActive
|
|
8651
8648
|
}, {
|
|
8652
8649
|
default: f(() => [
|
|
8653
|
-
|
|
8650
|
+
J(m(t.$t("weather.significant")), 1)
|
|
8654
8651
|
]),
|
|
8655
8652
|
_: 1
|
|
8656
8653
|
}, 8, ["color", "disabled"]),
|
|
8657
|
-
|
|
8654
|
+
u(l, {
|
|
8658
8655
|
density: "compact",
|
|
8659
8656
|
height: "30",
|
|
8660
8657
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -8664,7 +8661,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8664
8661
|
value: "swell"
|
|
8665
8662
|
}, {
|
|
8666
8663
|
default: f(() => [
|
|
8667
|
-
|
|
8664
|
+
J(m(t.$t("weather.swell")), 1)
|
|
8668
8665
|
]),
|
|
8669
8666
|
_: 1
|
|
8670
8667
|
}, 8, ["color", "disabled"])
|
|
@@ -8683,7 +8680,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8683
8680
|
disabled: !a.autoActive
|
|
8684
8681
|
}, {
|
|
8685
8682
|
default: f(() => [
|
|
8686
|
-
|
|
8683
|
+
u(l, {
|
|
8687
8684
|
density: "compact",
|
|
8688
8685
|
height: "30",
|
|
8689
8686
|
value: "ice-cover",
|
|
@@ -8693,11 +8690,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
8693
8690
|
disabled: !a.autoActive
|
|
8694
8691
|
}, {
|
|
8695
8692
|
default: f(() => [
|
|
8696
|
-
|
|
8693
|
+
J(m(t.$t("weather.coverage")), 1)
|
|
8697
8694
|
]),
|
|
8698
8695
|
_: 1
|
|
8699
8696
|
}, 8, ["color", "disabled"]),
|
|
8700
|
-
|
|
8697
|
+
u(l, {
|
|
8701
8698
|
density: "compact",
|
|
8702
8699
|
height: "30",
|
|
8703
8700
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -8707,7 +8704,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8707
8704
|
value: "ice-thickness"
|
|
8708
8705
|
}, {
|
|
8709
8706
|
default: f(() => [
|
|
8710
|
-
|
|
8707
|
+
J(m(t.$t("weather.thickness")), 1)
|
|
8711
8708
|
]),
|
|
8712
8709
|
_: 1
|
|
8713
8710
|
}, 8, ["color", "disabled"])
|
|
@@ -8721,31 +8718,31 @@ function ic(t, e, o, i, a, r) {
|
|
|
8721
8718
|
]),
|
|
8722
8719
|
_: 1
|
|
8723
8720
|
}),
|
|
8724
|
-
|
|
8721
|
+
u(w, {
|
|
8725
8722
|
class: "block-bg mx-auto mb-3",
|
|
8726
8723
|
elevation: "0"
|
|
8727
8724
|
}, {
|
|
8728
8725
|
default: f(() => [
|
|
8729
|
-
|
|
8726
|
+
u(z, { class: "border-b-thin" }, {
|
|
8730
8727
|
default: f(() => [
|
|
8731
|
-
p
|
|
8728
|
+
u(p, {
|
|
8732
8729
|
class: "text-subtitle-1 font-weight-medium",
|
|
8733
8730
|
style: { "font-size": "16px !important" }
|
|
8734
8731
|
}, {
|
|
8735
8732
|
default: f(() => [
|
|
8736
|
-
|
|
8733
|
+
J(m(t.$t("weather.forecastModel")), 1)
|
|
8737
8734
|
]),
|
|
8738
8735
|
_: 1
|
|
8739
8736
|
})
|
|
8740
8737
|
]),
|
|
8741
8738
|
_: 1
|
|
8742
8739
|
}),
|
|
8743
|
-
|
|
8740
|
+
u(h, { class: "" }, {
|
|
8744
8741
|
default: f(() => {
|
|
8745
|
-
var G, te, Fe, Me,
|
|
8742
|
+
var G, te, Fe, Me, ge, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, 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;
|
|
8746
8743
|
return [
|
|
8747
8744
|
s("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
8748
|
-
s("div", Bn, m((Fe = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Te = (
|
|
8745
|
+
s("div", Bn, m((Fe = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Te = (ge = (Me = a.models) == null ? void 0 : Me.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Te.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
8749
8746
|
s("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8750
8747
|
s("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ge = (He = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ge.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
8751
8748
|
s("div", Nn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Be = (Ie = (ye = a.models) == null ? void 0 : ye.weather) == null ? void 0 : Ie.NOAA) == null ? void 0 : Be.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
@@ -8753,7 +8750,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8753
8750
|
s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8754
8751
|
s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
8755
8752
|
s("div", Un, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
8756
|
-
|
|
8753
|
+
u(b),
|
|
8757
8754
|
s("div", Wn, m(t.$t("weather.wave")), 1),
|
|
8758
8755
|
s("div", Vn, m((dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.source) + " " + m((gt = (ut = (pt = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
|
|
8759
8756
|
s("div", Zn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -8763,7 +8760,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8763
8760
|
s("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8764
8761
|
s("div", Kn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Wt = a.models) == null ? void 0 : Wt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
|
|
8765
8762
|
s("div", Jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
|
|
8766
|
-
|
|
8763
|
+
u(b),
|
|
8767
8764
|
s("div", Qn, m(t.$t("weather.currents")), 1),
|
|
8768
8765
|
s("div", ec, m((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + m((no = (lo = (so = (ro = a.models) == null ? void 0 : ro.marine) == null ? void 0 : so.current) == null ? void 0 : lo.ECMWF) == null ? void 0 : no.spatialResolution) + m(t.$t("units.km")) + " " + m((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + m(t.$t("units.days")), 1),
|
|
8769
8766
|
s("div", tc, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -8778,20 +8775,20 @@ function ic(t, e, o, i, a, r) {
|
|
|
8778
8775
|
})
|
|
8779
8776
|
], 2)
|
|
8780
8777
|
], 6),
|
|
8781
|
-
o.map ? (y(), R(
|
|
8778
|
+
o.map ? (y(), R(P, B({
|
|
8782
8779
|
key: 1,
|
|
8783
8780
|
ref: "windBarb",
|
|
8784
8781
|
map: o.map,
|
|
8785
8782
|
"map-feather": o.mapFeather,
|
|
8786
8783
|
"before-layer": "empty-layer-3",
|
|
8787
|
-
wind: (
|
|
8784
|
+
wind: (me = a.weatherLayers) == null ? void 0 : me.wind,
|
|
8788
8785
|
"menu-toggle": o.menuToggle
|
|
8789
8786
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
8790
|
-
o.map ? (y(), R(
|
|
8787
|
+
o.map ? (y(), R(k, B({
|
|
8791
8788
|
key: 2,
|
|
8792
8789
|
map: o.map,
|
|
8793
8790
|
"before-layer": "empty-layer-2",
|
|
8794
|
-
"sig-wave-height": (
|
|
8791
|
+
"sig-wave-height": (K = a.weatherLayers) == null ? void 0 : K["sig-wave-height"],
|
|
8795
8792
|
"menu-toggle": o.menuToggle,
|
|
8796
8793
|
"active-weather-layers": a.activeWeatherLayers
|
|
8797
8794
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
@@ -8800,27 +8797,27 @@ function ic(t, e, o, i, a, r) {
|
|
|
8800
8797
|
map: o.map,
|
|
8801
8798
|
"map-feather": o.mapFeather,
|
|
8802
8799
|
"before-layer": "empty-layer-2",
|
|
8803
|
-
current: (
|
|
8800
|
+
current: (ie = a.weatherLayers) == null ? void 0 : ie.current,
|
|
8804
8801
|
"menu-toggle": o.menuToggle
|
|
8805
8802
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
8806
8803
|
o.map ? (y(), R(C, B({
|
|
8807
8804
|
key: 4,
|
|
8808
8805
|
map: o.map,
|
|
8809
8806
|
"before-layer": "empty-layer-2",
|
|
8810
|
-
prmsl: (
|
|
8807
|
+
prmsl: (pe = a.weatherLayers) == null ? void 0 : pe.prmsl,
|
|
8811
8808
|
"menu-toggle": o.menuToggle,
|
|
8812
8809
|
"active-weather-layers": a.activeWeatherLayers
|
|
8813
8810
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
8814
|
-
o.map ? (y(), R(
|
|
8811
|
+
o.map ? (y(), R(_, B({
|
|
8815
8812
|
key: 5,
|
|
8816
8813
|
viewport: a.viewport,
|
|
8817
|
-
factor: (
|
|
8814
|
+
factor: (de = a.weatherLayers) == null ? void 0 : de["wind-particle"],
|
|
8818
8815
|
"menu-toggle": o.menuToggle
|
|
8819
8816
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8820
8817
|
o.map ? (y(), R(A, B({
|
|
8821
8818
|
key: 6,
|
|
8822
8819
|
viewport: a.viewport,
|
|
8823
|
-
factor: (
|
|
8820
|
+
factor: (ue = a.weatherLayers) == null ? void 0 : ue["current-particle"],
|
|
8824
8821
|
"menu-toggle": o.menuToggle
|
|
8825
8822
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8826
8823
|
o.map ? (y(), R(N, B({
|
|
@@ -8829,11 +8826,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
8829
8826
|
factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
|
|
8830
8827
|
"menu-toggle": o.menuToggle
|
|
8831
8828
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8832
|
-
o.map ? (y(), R(
|
|
8829
|
+
o.map ? (y(), R(V, B({
|
|
8833
8830
|
key: 8,
|
|
8834
8831
|
map: o.map,
|
|
8835
8832
|
viewport: a.viewport,
|
|
8836
|
-
factor: (
|
|
8833
|
+
factor: (se = a.weatherLayers) == null ? void 0 : se.swell,
|
|
8837
8834
|
"menu-toggle": o.menuToggle,
|
|
8838
8835
|
"active-weather-layers": a.activeWeatherLayers
|
|
8839
8836
|
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
@@ -8843,7 +8840,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8843
8840
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
|
|
8844
8841
|
"menu-toggle": o.menuToggle
|
|
8845
8842
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8846
|
-
o.map ? (y(), R(
|
|
8843
|
+
o.map ? (y(), R(Z, B({
|
|
8847
8844
|
key: 10,
|
|
8848
8845
|
viewport: a.viewport,
|
|
8849
8846
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-cover"],
|
|
@@ -8855,7 +8852,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8855
8852
|
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce["ice-thickness"],
|
|
8856
8853
|
"menu-toggle": o.menuToggle
|
|
8857
8854
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8858
|
-
o.map ? (y(), R(
|
|
8855
|
+
o.map ? (y(), R(Q, B({
|
|
8859
8856
|
key: 12,
|
|
8860
8857
|
viewport: a.viewport,
|
|
8861
8858
|
factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
|
|
@@ -8867,13 +8864,13 @@ function ic(t, e, o, i, a, r) {
|
|
|
8867
8864
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
8868
8865
|
"menu-toggle": o.menuToggle
|
|
8869
8866
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8870
|
-
o.map ? (y(), R(
|
|
8867
|
+
o.map ? (y(), R(ce, B({
|
|
8871
8868
|
key: 14,
|
|
8872
8869
|
viewport: a.viewport,
|
|
8873
8870
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
8874
8871
|
"menu-toggle": o.menuToggle
|
|
8875
8872
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8876
|
-
o.map ? (y(), R(
|
|
8873
|
+
o.map ? (y(), R(le, B({
|
|
8877
8874
|
key: 15,
|
|
8878
8875
|
viewport: a.viewport,
|
|
8879
8876
|
factor: (ke = a.weatherLayers) == null ? void 0 : ke.temp,
|
|
@@ -9199,19 +9196,19 @@ class Ya {
|
|
|
9199
9196
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
9200
9197
|
for (const c of a) {
|
|
9201
9198
|
let n = Lo.find((h) => {
|
|
9202
|
-
var b, w,
|
|
9203
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9204
|
-
}),
|
|
9205
|
-
var b, w,
|
|
9206
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9199
|
+
var b, w, L;
|
|
9200
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
|
|
9201
|
+
}), g = Po.find((h) => {
|
|
9202
|
+
var b, w, L;
|
|
9203
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
|
|
9207
9204
|
});
|
|
9208
9205
|
n = n || Lo.find((h) => {
|
|
9209
9206
|
var b, w;
|
|
9210
|
-
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w =
|
|
9211
|
-
}),
|
|
9207
|
+
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
|
|
9208
|
+
}), g = g || Po.find((h) => {
|
|
9212
9209
|
var b, w;
|
|
9213
9210
|
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9214
|
-
}), n = n || Lo[0],
|
|
9211
|
+
}), n = n || Lo[0], g = g || Po[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = g.models) != null && i.includes(c) ? c : g.model);
|
|
9215
9212
|
}
|
|
9216
9213
|
return {
|
|
9217
9214
|
weatherModels: r.join(","),
|
|
@@ -9228,8 +9225,8 @@ class Ya {
|
|
|
9228
9225
|
}), a;
|
|
9229
9226
|
}
|
|
9230
9227
|
static pickHourly(e, o) {
|
|
9231
|
-
var i, a, r, l, c, n,
|
|
9232
|
-
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), He = re.clone().add((h = (
|
|
9228
|
+
var i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te;
|
|
9229
|
+
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), He = re.clone().add((h = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : h.at(-1), "h"), Ge = [];
|
|
9233
9230
|
if (U.isBetween(Oe, He, "millisecond", "[]")) {
|
|
9234
9231
|
const E = U.utc().diff(Oe, "h", !1);
|
|
9235
9232
|
let ye, Ie;
|
|
@@ -9242,30 +9239,30 @@ class Ya {
|
|
|
9242
9239
|
for (let _e = E - (E - 1) % 6; _e <= E; _e++)
|
|
9243
9240
|
Ee += (w = W == null ? void 0 : W.precipitation) == null ? void 0 : w.at(_e);
|
|
9244
9241
|
for (let _e = E - (E - 1) % 12; _e <= E; _e++)
|
|
9245
|
-
j += (
|
|
9242
|
+
j += (L = W == null ? void 0 : W.precipitation) == null ? void 0 : L.at(_e);
|
|
9246
9243
|
ye = {
|
|
9247
|
-
temp: (
|
|
9248
|
-
apparentTemp: (
|
|
9244
|
+
temp: (p = W == null ? void 0 : W.temperature_2m) == null ? void 0 : p.at(E),
|
|
9245
|
+
apparentTemp: (z = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : z.at(E),
|
|
9249
9246
|
rh: (T = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : T.at(E),
|
|
9250
9247
|
dp: (O = W == null ? void 0 : W.dew_point_2m) == null ? void 0 : O.at(E),
|
|
9251
9248
|
precip: {
|
|
9252
9249
|
probability: (I = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : I.at(E),
|
|
9253
|
-
sum: (
|
|
9254
|
-
sum1Hours: (
|
|
9250
|
+
sum: (P = W == null ? void 0 : W.precipitation) == null ? void 0 : P.at(E),
|
|
9251
|
+
sum1Hours: (k = W == null ? void 0 : W.precipitation) == null ? void 0 : k.at(E),
|
|
9255
9252
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9256
9253
|
sum6Hours: Math.round(Ee * 100) / 100,
|
|
9257
9254
|
sum12Hours: Math.round(j * 100) / 100
|
|
9258
9255
|
},
|
|
9259
9256
|
pmsl: (v = W == null ? void 0 : W.pressure_msl) == null ? void 0 : v.at(E),
|
|
9260
9257
|
psurf: (C = W == null ? void 0 : W.surface_pressure) == null ? void 0 : C.at(E),
|
|
9261
|
-
code: (
|
|
9258
|
+
code: (_ = W == null ? void 0 : W.weather_code) == null ? void 0 : _.at(E),
|
|
9262
9259
|
visibility: this.m2nm((A = W == null ? void 0 : W.visibility) == null ? void 0 : A.at(E)),
|
|
9263
9260
|
wind: {
|
|
9264
9261
|
speed: (N = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : N.at(E),
|
|
9265
|
-
kts: (
|
|
9262
|
+
kts: (V = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : V.at(E),
|
|
9266
9263
|
degree: (Y = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Y.at(E),
|
|
9267
|
-
bearing: ((
|
|
9268
|
-
gusts: (
|
|
9264
|
+
bearing: ((Z = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((ee = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : ee.at(E)) + 180) % 360 : null,
|
|
9265
|
+
gusts: (Q = W == null ? void 0 : W.wind_gusts_10m) == null ? void 0 : Q.at(E)
|
|
9269
9266
|
},
|
|
9270
9267
|
isDay: ($ = W == null ? void 0 : W.is_day) == null ? void 0 : $.at(E)
|
|
9271
9268
|
};
|
|
@@ -9284,16 +9281,16 @@ class Ya {
|
|
|
9284
9281
|
Ie = {
|
|
9285
9282
|
wave: {
|
|
9286
9283
|
sig: {
|
|
9287
|
-
height: (
|
|
9288
|
-
degree: (
|
|
9289
|
-
bearing: ((
|
|
9290
|
-
period: (
|
|
9284
|
+
height: (ce = j == null ? void 0 : j.wave_height) == null ? void 0 : ce.at(E),
|
|
9285
|
+
degree: (le = j == null ? void 0 : j.wave_direction) == null ? void 0 : le.at(E),
|
|
9286
|
+
bearing: ((me = j == null ? void 0 : j.wave_direction) == null ? void 0 : me.at(E)) !== null ? (((K = j == null ? void 0 : j.wave_direction) == null ? void 0 : K.at(E)) + 180) % 360 : null,
|
|
9287
|
+
period: (ie = j == null ? void 0 : j.wave_period) == null ? void 0 : ie.at(E)
|
|
9291
9288
|
},
|
|
9292
9289
|
swell: {
|
|
9293
|
-
height: (
|
|
9294
|
-
degree: (
|
|
9295
|
-
bearing: ((
|
|
9296
|
-
period: (
|
|
9290
|
+
height: (pe = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : pe.at(E),
|
|
9291
|
+
degree: (de = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : de.at(E),
|
|
9292
|
+
bearing: ((ue = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : ue.at(E)) !== null ? (((F = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : F.at(E)) + 180) % 360 : null,
|
|
9293
|
+
period: (se = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : se.at(E),
|
|
9297
9294
|
peakPeriod: (ve = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : ve.at(E)
|
|
9298
9295
|
},
|
|
9299
9296
|
wd: {
|
|
@@ -9310,7 +9307,7 @@ class Ya {
|
|
|
9310
9307
|
degree: (Fe = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Fe.at(E),
|
|
9311
9308
|
bearing: ((Me = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Me.at(E)) ?? null
|
|
9312
9309
|
},
|
|
9313
|
-
sst: (
|
|
9310
|
+
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
9314
9311
|
height: (Te = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Te.at(E)
|
|
9315
9312
|
}, Ie.wave = this.parseWave(Ie.wave, ye == null ? void 0 : ye.wind), Ie.current.direction = this.degree2Direction(Ie.current.degree), Object.assign(Ge[Be], Ie), Be++;
|
|
9316
9313
|
}
|
|
@@ -9319,7 +9316,7 @@ class Ya {
|
|
|
9319
9316
|
return Ge;
|
|
9320
9317
|
}
|
|
9321
9318
|
static toLegacy(e) {
|
|
9322
|
-
var o, i, a, r, l, c, n,
|
|
9319
|
+
var o, i, a, r, l, c, n, g, h, b;
|
|
9323
9320
|
return {
|
|
9324
9321
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
9325
9322
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -9329,7 +9326,7 @@ class Ya {
|
|
|
9329
9326
|
kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
|
|
9330
9327
|
},
|
|
9331
9328
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
9332
|
-
code: (
|
|
9329
|
+
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
9333
9330
|
name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
|
|
9334
9331
|
url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
|
|
9335
9332
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -9341,51 +9338,51 @@ class Ya {
|
|
|
9341
9338
|
};
|
|
9342
9339
|
}
|
|
9343
9340
|
static pickDaily(e, o) {
|
|
9344
|
-
var i, a, r, l, c, n,
|
|
9341
|
+
var i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae;
|
|
9345
9342
|
const Re = typeof o == "string" ? S(o) : o, ke = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = ke == null ? void 0 : ke[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (l = ke == null ? void 0 : ke[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9346
9343
|
if (Re.isBetween(te, Fe, "millisecond", "[]")) {
|
|
9347
|
-
let
|
|
9344
|
+
let ge, Te;
|
|
9348
9345
|
const U = Re.diff(te, "d", !1);
|
|
9349
9346
|
if (ke)
|
|
9350
9347
|
for (const fe of ke) {
|
|
9351
9348
|
const oe = fe.daily;
|
|
9352
|
-
|
|
9353
|
-
code: (
|
|
9349
|
+
ge = {
|
|
9350
|
+
code: (g = oe.weather_code) == null ? void 0 : g.at(U),
|
|
9354
9351
|
temp: {
|
|
9355
9352
|
max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(U),
|
|
9356
9353
|
min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(U),
|
|
9357
9354
|
mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(U)
|
|
9358
9355
|
},
|
|
9359
9356
|
apparentTemp: {
|
|
9360
|
-
max: (
|
|
9361
|
-
min: (
|
|
9357
|
+
max: (L = oe.apparent_temperature_max) == null ? void 0 : L.at(U),
|
|
9358
|
+
min: (p = oe.apparent_temperature_min) == null ? void 0 : p.at(U)
|
|
9362
9359
|
},
|
|
9363
9360
|
precip: {
|
|
9364
|
-
sum: (
|
|
9361
|
+
sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(U),
|
|
9365
9362
|
rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(U),
|
|
9366
9363
|
snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(U),
|
|
9367
9364
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
|
|
9368
|
-
hours: (
|
|
9369
|
-
probability: (
|
|
9365
|
+
hours: (P = oe.precipitation_hours) == null ? void 0 : P.at(U),
|
|
9366
|
+
probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(U)
|
|
9370
9367
|
},
|
|
9371
9368
|
rh: {
|
|
9372
9369
|
max: (v = oe.relative_humidity_2m_max) == null ? void 0 : v.at(U),
|
|
9373
9370
|
min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(U),
|
|
9374
|
-
mean: (
|
|
9371
|
+
mean: (_ = oe.relative_humidity_2m_mean) == null ? void 0 : _.at(U)
|
|
9375
9372
|
},
|
|
9376
9373
|
wind: {
|
|
9377
9374
|
speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(U),
|
|
9378
9375
|
kts: (N = oe.wind_speed_10m_max) == null ? void 0 : N.at(U),
|
|
9379
|
-
degree: (
|
|
9376
|
+
degree: (V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U),
|
|
9380
9377
|
gusts: (Y = oe.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
|
|
9381
|
-
bearing: ((
|
|
9378
|
+
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((ee = oe.wind_direction_10m_dominant) == null ? void 0 : ee.at(U)) + 180) % 360 : null
|
|
9382
9379
|
}
|
|
9383
9380
|
};
|
|
9384
|
-
const { name: re, url: Oe, bg: He } = this.parseWeatherCode(
|
|
9385
|
-
|
|
9381
|
+
const { name: re, url: Oe, bg: He } = this.parseWeatherCode(ge.code, !0);
|
|
9382
|
+
ge.name = re, ge.url = Oe, ge.bg = He, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Me.push({
|
|
9386
9383
|
utc: te.add(U, "d").utc().format(),
|
|
9387
9384
|
model: fe.model,
|
|
9388
|
-
weather: { ...
|
|
9385
|
+
weather: { ...ge }
|
|
9389
9386
|
});
|
|
9390
9387
|
}
|
|
9391
9388
|
if (G) {
|
|
@@ -9395,28 +9392,28 @@ class Ya {
|
|
|
9395
9392
|
Te = {
|
|
9396
9393
|
wave: {
|
|
9397
9394
|
sig: {
|
|
9398
|
-
height: (
|
|
9395
|
+
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(U),
|
|
9399
9396
|
degree: ($ = re.wave_direction_dominant) == null ? void 0 : $.at(U),
|
|
9400
|
-
period: (
|
|
9401
|
-
bearing: ((
|
|
9397
|
+
period: (ce = re.wave_period_max) == null ? void 0 : ce.at(U),
|
|
9398
|
+
bearing: ((le = re.wave_direction_dominant) == null ? void 0 : le.at(U)) !== null ? (((me = re.wave_direction_dominant) == null ? void 0 : me.at(U)) + 180) % 360 : null
|
|
9402
9399
|
},
|
|
9403
9400
|
swell: {
|
|
9404
|
-
height: (
|
|
9405
|
-
degree: (
|
|
9406
|
-
period: (
|
|
9407
|
-
peakPeriod: (
|
|
9401
|
+
height: (K = re.swell_wave_height_max) == null ? void 0 : K.at(U),
|
|
9402
|
+
degree: (ie = re.swell_wave_direction_dominant) == null ? void 0 : ie.at(U),
|
|
9403
|
+
period: (pe = re.swell_wave_period_max) == null ? void 0 : pe.at(U),
|
|
9404
|
+
peakPeriod: (de = re.swell_wave_peak_period_max) == null ? void 0 : de.at(U),
|
|
9408
9405
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
9409
|
-
bearing: ((
|
|
9406
|
+
bearing: ((ue = re.swell_wave_direction_dominant) == null ? void 0 : ue.at(U)) !== null ? ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(U)) % 360 : null
|
|
9410
9407
|
},
|
|
9411
9408
|
wd: {
|
|
9412
|
-
height: (
|
|
9409
|
+
height: (se = re.wind_wave_height_max) == null ? void 0 : se.at(U),
|
|
9413
9410
|
degree: (ve = re.wind_wave_direction_dominant) == null ? void 0 : ve.at(U),
|
|
9414
9411
|
period: (Pe = re.wind_wave_period_max) == null ? void 0 : Pe.at(U),
|
|
9415
9412
|
peakPeriod: (Ce = re.wind_wave_peak_period_max) == null ? void 0 : Ce.at(U),
|
|
9416
9413
|
bearing: ((De = re.wind_wave_direction_dominant) == null ? void 0 : De.at(U)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(U)) + 180) % 360 : null
|
|
9417
9414
|
}
|
|
9418
9415
|
}
|
|
9419
|
-
}, Te.wave = this.parseWave(Te.wave,
|
|
9416
|
+
}, Te.wave = this.parseWave(Te.wave, ge == null ? void 0 : ge.wind), Object.assign(Me[fe], Te), fe++;
|
|
9420
9417
|
}
|
|
9421
9418
|
}
|
|
9422
9419
|
}
|
|
@@ -9868,7 +9865,7 @@ const sc = {
|
|
|
9868
9865
|
type: String
|
|
9869
9866
|
}
|
|
9870
9867
|
},
|
|
9871
|
-
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
9868
|
+
emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
|
|
9872
9869
|
setup() {
|
|
9873
9870
|
return { Theme: Le() };
|
|
9874
9871
|
},
|
|
@@ -10016,21 +10013,21 @@ const sc = {
|
|
|
10016
10013
|
if (i > 0) {
|
|
10017
10014
|
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Se.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
10018
10015
|
headers: {
|
|
10019
|
-
Authorization: this.
|
|
10016
|
+
Authorization: this.defaultMeteoToken
|
|
10020
10017
|
}
|
|
10021
10018
|
});
|
|
10022
10019
|
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
10023
|
-
const
|
|
10024
|
-
await Se.get(
|
|
10020
|
+
const g = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
|
|
10021
|
+
await Se.get(g.tropicals, {
|
|
10025
10022
|
headers: {
|
|
10026
|
-
Authorization: this.
|
|
10023
|
+
Authorization: this.defaultMeteoToken,
|
|
10027
10024
|
key: "tropicals"
|
|
10028
10025
|
},
|
|
10029
|
-
responseType: /\.(jpg|png)$/.test(
|
|
10026
|
+
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
10030
10027
|
}).then((h) => {
|
|
10031
|
-
var
|
|
10032
|
-
const b = Za.convert2Geojson(((
|
|
10033
|
-
((
|
|
10028
|
+
var L, p, z;
|
|
10029
|
+
const b = Za.convert2Geojson(((L = h == null ? void 0 : h.data) == null ? void 0 : L.data) || (h == null ? void 0 : h.data));
|
|
10030
|
+
((z = (p = h == null ? void 0 : h.config) == null ? void 0 : p.headers) == null ? void 0 : z.key) && b && (this.tropicals = {
|
|
10034
10031
|
data: b,
|
|
10035
10032
|
active: !0,
|
|
10036
10033
|
cached: !0,
|
|
@@ -10048,7 +10045,7 @@ const sc = {
|
|
|
10048
10045
|
handleRefresh() {
|
|
10049
10046
|
var e, o;
|
|
10050
10047
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10051
|
-
var a, r, l, c, n,
|
|
10048
|
+
var a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k;
|
|
10052
10049
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10053
10050
|
let v = "";
|
|
10054
10051
|
switch (!0) {
|
|
@@ -10058,16 +10055,16 @@ const sc = {
|
|
|
10058
10055
|
case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((n = i.properties) == null ? void 0 : n.kts) < 47):
|
|
10059
10056
|
v = "TS";
|
|
10060
10057
|
break;
|
|
10061
|
-
case (((
|
|
10058
|
+
case (((g = i.properties.wind) == null ? void 0 : g.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
|
|
10062
10059
|
v = "STS";
|
|
10063
10060
|
break;
|
|
10064
10061
|
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
|
|
10065
10062
|
v = "TY";
|
|
10066
10063
|
break;
|
|
10067
|
-
case (((
|
|
10064
|
+
case (((L = i.properties.wind) == null ? void 0 : L.kts) < 94 || ((p = i.properties) == null ? void 0 : p.kts) < 94):
|
|
10068
10065
|
v = "STY";
|
|
10069
10066
|
break;
|
|
10070
|
-
case (((
|
|
10067
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
10071
10068
|
v = "Super TY";
|
|
10072
10069
|
break;
|
|
10073
10070
|
default:
|
|
@@ -10076,15 +10073,15 @@ const sc = {
|
|
|
10076
10073
|
}
|
|
10077
10074
|
i.properties.level = v;
|
|
10078
10075
|
}
|
|
10079
|
-
((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (
|
|
10076
|
+
((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (P = S(i.properties.date)) == null ? void 0 : P.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`), i.properties.nameCn = i.properties.nameCn || i.properties.name || "-");
|
|
10080
10077
|
}), this.handleInit();
|
|
10081
10078
|
},
|
|
10082
10079
|
handleInit() {
|
|
10083
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10084
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (
|
|
10080
|
+
var t, e, o, i, a, r, l, c, n, g, h, b;
|
|
10081
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
|
|
10085
10082
|
},
|
|
10086
10083
|
handleRender() {
|
|
10087
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10084
|
+
var t, e, o, i, a, r, l, c, n, g;
|
|
10088
10085
|
if (this.tropicals && this.map) {
|
|
10089
10086
|
const h = (/* @__PURE__ */ new Date()).valueOf();
|
|
10090
10087
|
let b = 0, w = 0;
|
|
@@ -10187,7 +10184,7 @@ const sc = {
|
|
|
10187
10184
|
}
|
|
10188
10185
|
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
|
|
10189
10186
|
type: "geojson",
|
|
10190
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
10187
|
+
data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
|
|
10191
10188
|
// cluster: true,
|
|
10192
10189
|
// clusterRadius: 10, // 聚合半径
|
|
10193
10190
|
}), this.map.addLayer({
|
|
@@ -10302,8 +10299,8 @@ const sc = {
|
|
|
10302
10299
|
"text-halo-width": 1
|
|
10303
10300
|
}
|
|
10304
10301
|
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
|
|
10305
|
-
const
|
|
10306
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
10302
|
+
const L = Za.interpolate(this.tropicals, 1);
|
|
10303
|
+
this.interpolateData = JSON.parse(JSON.stringify(L)), this.handleDateChange();
|
|
10307
10304
|
}
|
|
10308
10305
|
},
|
|
10309
10306
|
handleClear() {
|
|
@@ -10311,14 +10308,14 @@ const sc = {
|
|
|
10311
10308
|
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();
|
|
10312
10309
|
},
|
|
10313
10310
|
handleDateChange() {
|
|
10314
|
-
var t, e, o, i, a, r, l, c, n,
|
|
10315
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
10316
|
-
const
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
10311
|
+
var t, e, o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee;
|
|
10312
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10313
|
+
const Q = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((K) => K.properties.date === (Q == null ? void 0 : Q.format()) && !K.properties.disabled), ce = this.handleComputePolygons($), le = H.featureCollection([...$]);
|
|
10314
|
+
ce.forEach((K) => {
|
|
10315
|
+
le.features.push(K);
|
|
10316
|
+
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(le) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
10320
10317
|
type: "geojson",
|
|
10321
|
-
data:
|
|
10318
|
+
data: le
|
|
10322
10319
|
}), (r = this.map) == null || r.addLayer({
|
|
10323
10320
|
id: this.interpolateLineLayer,
|
|
10324
10321
|
type: "line",
|
|
@@ -10330,11 +10327,16 @@ const sc = {
|
|
|
10330
10327
|
"line-width": 1
|
|
10331
10328
|
}
|
|
10332
10329
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10333
|
-
|
|
10334
|
-
|
|
10330
|
+
const me = [];
|
|
10331
|
+
for (const K of $)
|
|
10332
|
+
if (!K.properties.disabled) {
|
|
10333
|
+
me.some((F) => {
|
|
10334
|
+
var se;
|
|
10335
|
+
return F.properties.name === ((se = K.properties) == null ? void 0 : se.name);
|
|
10336
|
+
}) || me.push(K);
|
|
10335
10337
|
let ie = "#f44336";
|
|
10336
|
-
((c = (l =
|
|
10337
|
-
const
|
|
10338
|
+
((c = (l = K.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((b = (h = K.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((L = (w = K.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? ie = "#f2f202" : ((z = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = K.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ie = "#ff9100" : ((P = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((v = (k = K.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 79 ? ie = "#f44336" : ((_ = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((N = (A = K.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ie = "#f903d0" : ((Y = (V = K.properties) == null ? void 0 : V.wind) == null ? void 0 : Y.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
10339
|
+
const pe = `<svg t="1719918955501"
|
|
10338
10340
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10339
10341
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
10340
10342
|
<path
|
|
@@ -10348,36 +10350,37 @@ const sc = {
|
|
|
10348
10350
|
<path
|
|
10349
10351
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
10350
10352
|
fill="#ffffff" p-id="18386"></path>
|
|
10351
|
-
</svg>`,
|
|
10352
|
-
|
|
10353
|
-
const
|
|
10354
|
-
this.interpolateMarkers.push(
|
|
10353
|
+
</svg>`, de = document.createElement("div");
|
|
10354
|
+
de.className = "idm-tropical-gl4-hourly-marker", de.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${pe}</div>`;
|
|
10355
|
+
const ue = new xe.Marker(de).setLngLat(K.geometry.coordinates).addTo(this.map);
|
|
10356
|
+
this.interpolateMarkers.push(ue);
|
|
10355
10357
|
}
|
|
10358
|
+
this.$emit("tropicalCenterPoints", me);
|
|
10356
10359
|
} else
|
|
10357
|
-
(
|
|
10360
|
+
(Z = this.map) != null && Z.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
|
|
10358
10361
|
},
|
|
10359
10362
|
handleClick(t) {
|
|
10360
|
-
var a, r, l, c, n,
|
|
10363
|
+
var a, r, l, c, n, g, h, b, w, L;
|
|
10361
10364
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
10362
|
-
(
|
|
10363
|
-
var
|
|
10364
|
-
return
|
|
10365
|
+
(p) => {
|
|
10366
|
+
var z;
|
|
10367
|
+
return p.geometry.type === "LineString" && p.properties.type === "forecast" && p.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
|
|
10365
10368
|
}
|
|
10366
10369
|
), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
10367
|
-
(
|
|
10368
|
-
var
|
|
10369
|
-
return
|
|
10370
|
+
(p) => {
|
|
10371
|
+
var z;
|
|
10372
|
+
return p.geometry.type === "LineString" && p.properties.type === "history" && p.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
|
|
10370
10373
|
}
|
|
10371
10374
|
);
|
|
10372
10375
|
this.activeTropicals = {
|
|
10373
|
-
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
10374
|
-
nameCn: (
|
|
10375
|
-
forecasts: o.map((
|
|
10376
|
-
history: (
|
|
10377
|
-
showCircle: (
|
|
10376
|
+
name: ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.name) || "-",
|
|
10377
|
+
nameCn: ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.nameCn) || ((h = e == null ? void 0 : e.properties) == null ? void 0 : h.name) || "-",
|
|
10378
|
+
forecasts: o.map((p) => p.properties),
|
|
10379
|
+
history: (b = i[0]) == null ? void 0 : b.properties,
|
|
10380
|
+
showCircle: (L = (w = o[0]) == null ? void 0 : w.properties) == null ? void 0 : L.showCircle
|
|
10378
10381
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
10379
|
-
const
|
|
10380
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(
|
|
10382
|
+
const p = document.getElementById("idm-tropical-gl4-info");
|
|
10383
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(p).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
10381
10384
|
});
|
|
10382
10385
|
},
|
|
10383
10386
|
handleCloseInfoMarker() {
|
|
@@ -10390,10 +10393,10 @@ const sc = {
|
|
|
10390
10393
|
var i, a, r, l, c, n;
|
|
10391
10394
|
t.disabled = !t.disabled;
|
|
10392
10395
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
10393
|
-
o.forEach((
|
|
10394
|
-
|
|
10395
|
-
}), this.interpolateData.forEach((
|
|
10396
|
-
|
|
10396
|
+
o.forEach((g) => {
|
|
10397
|
+
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
10398
|
+
}), this.interpolateData.forEach((g) => {
|
|
10399
|
+
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
10397
10400
|
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(H.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(o)), this.handleDateChange();
|
|
10398
10401
|
},
|
|
10399
10402
|
handleStrikeProbability(t) {
|
|
@@ -10470,14 +10473,14 @@ const sc = {
|
|
|
10470
10473
|
)[0];
|
|
10471
10474
|
this.hoverPoint = o == null ? void 0 : o.properties;
|
|
10472
10475
|
const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
10473
|
-
(
|
|
10476
|
+
(g) => {
|
|
10474
10477
|
var h;
|
|
10475
|
-
return
|
|
10478
|
+
return g.geometry.type === "LineString" && g.properties.type === "forecast" && g.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
|
|
10476
10479
|
}
|
|
10477
10480
|
);
|
|
10478
10481
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
10479
|
-
const
|
|
10480
|
-
this.hoverMarker = new xe.Marker(
|
|
10482
|
+
const g = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
10483
|
+
this.hoverMarker = new xe.Marker(g).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
10481
10484
|
}));
|
|
10482
10485
|
},
|
|
10483
10486
|
handleLeave() {
|
|
@@ -10524,18 +10527,18 @@ const sc = {
|
|
|
10524
10527
|
class: "d-flex justify-start align-center"
|
|
10525
10528
|
}, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
10526
10529
|
function tm(t, e, o, i, a, r) {
|
|
10527
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"),
|
|
10530
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), L = x("v-divider");
|
|
10528
10531
|
return y(), M("div", lc, [
|
|
10529
10532
|
s("div", {
|
|
10530
10533
|
class: "menu-bar-box transition pa-1",
|
|
10531
10534
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
10532
10535
|
}, [
|
|
10533
|
-
|
|
10536
|
+
u(c, {
|
|
10534
10537
|
text: t.$t("tropical.tropicals"),
|
|
10535
10538
|
location: "left"
|
|
10536
10539
|
}, {
|
|
10537
|
-
activator: f(({ props:
|
|
10538
|
-
|
|
10540
|
+
activator: f(({ props: p }) => [
|
|
10541
|
+
u(l, B(p, {
|
|
10539
10542
|
"min-width": "32",
|
|
10540
10543
|
width: "32",
|
|
10541
10544
|
height: "32",
|
|
@@ -10553,21 +10556,21 @@ function tm(t, e, o, i, a, r) {
|
|
|
10553
10556
|
}, 8, ["text"])
|
|
10554
10557
|
], 4),
|
|
10555
10558
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), M("div", nc, [
|
|
10556
|
-
|
|
10559
|
+
u(b, {
|
|
10557
10560
|
"min-width": "400",
|
|
10558
10561
|
elevation: "16",
|
|
10559
10562
|
"max-width": "500"
|
|
10560
10563
|
}, {
|
|
10561
10564
|
default: f(() => [
|
|
10562
|
-
|
|
10565
|
+
u(n, null, {
|
|
10563
10566
|
default: f(() => {
|
|
10564
|
-
var
|
|
10567
|
+
var p, z, T, O, I, P, k, v, C, _, A, N;
|
|
10565
10568
|
return [
|
|
10566
10569
|
s("div", cc, [
|
|
10567
|
-
s("span", mc, m(o.locale === "en" ? (
|
|
10568
|
-
(
|
|
10570
|
+
s("span", mc, m(o.locale === "en" ? (p = a.activeTropicals) == null ? void 0 : p.name : ((z = a.activeTropicals) == null ? void 0 : z.nameCn) || ((T = a.activeTropicals) == null ? void 0 : T.name) || "-"), 1),
|
|
10571
|
+
(I = (O = a.activeTropicals) == null ? void 0 : O.history) != null && I.level ? (y(), M("span", dc, ", " + m((k = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : k.level), 1)) : D("", !0)
|
|
10569
10572
|
]),
|
|
10570
|
-
|
|
10573
|
+
u(l, {
|
|
10571
10574
|
icon: "",
|
|
10572
10575
|
density: "compact",
|
|
10573
10576
|
variant: "plain",
|
|
@@ -10582,32 +10585,32 @@ function tm(t, e, o, i, a, r) {
|
|
|
10582
10585
|
}, 8, ["onClick"]),
|
|
10583
10586
|
s("div", hc, [
|
|
10584
10587
|
s("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
10585
|
-
s("span", null, m(r.computeTime(((
|
|
10588
|
+
s("span", null, m(r.computeTime(((C = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : C.updated) || ((N = (A = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : A.filter((V) => !V.disabled)[0]) == null ? void 0 : N.date), o.timeZone)), 1)
|
|
10586
10589
|
])
|
|
10587
10590
|
];
|
|
10588
10591
|
}),
|
|
10589
10592
|
_: 1
|
|
10590
10593
|
}),
|
|
10591
|
-
|
|
10592
|
-
|
|
10594
|
+
u(g),
|
|
10595
|
+
u(n, { class: "text-body-1" }, {
|
|
10593
10596
|
default: f(() => {
|
|
10594
|
-
var
|
|
10597
|
+
var p, z, T, O, I, P, k, v, C;
|
|
10595
10598
|
return [
|
|
10596
10599
|
s("div", uc, [
|
|
10597
10600
|
s("div", gc, [
|
|
10598
10601
|
s("label", fc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
10599
|
-
s("span", null, m(((
|
|
10602
|
+
s("span", null, m(((z = (p = a.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
10600
10603
|
s("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
|
|
10601
10604
|
]),
|
|
10602
10605
|
s("div", yc, [
|
|
10603
10606
|
s("label", bc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10604
|
-
s("span", null, m(((
|
|
10607
|
+
s("span", null, m(((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.pressure) || "-") + " hPa", 1)
|
|
10605
10608
|
])
|
|
10606
10609
|
]),
|
|
10607
10610
|
s("div", wc, [
|
|
10608
10611
|
s("div", xc, [
|
|
10609
10612
|
s("label", vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10610
|
-
s("span", null, m(((
|
|
10613
|
+
s("span", null, m(((k = r.computeMovement(a.activeTropicals)) == null ? void 0 : k.kts) || "-") + " kts", 1)
|
|
10611
10614
|
]),
|
|
10612
10615
|
s("div", _c, [
|
|
10613
10616
|
s("label", kc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
@@ -10617,17 +10620,17 @@ function tm(t, e, o, i, a, r) {
|
|
|
10617
10620
|
s("div", zc, [
|
|
10618
10621
|
s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
10619
10622
|
s("div", Pc, [
|
|
10620
|
-
(y(!0), M(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (
|
|
10623
|
+
(y(!0), M(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, A) => (y(), R(l, {
|
|
10621
10624
|
key: A,
|
|
10622
10625
|
density: "compact",
|
|
10623
|
-
variant:
|
|
10624
|
-
color:
|
|
10626
|
+
variant: _.disabled ? "text" : "flat",
|
|
10627
|
+
color: _.disabled ? "" : "primary",
|
|
10625
10628
|
"min-width": 30,
|
|
10626
|
-
class: Ye(["model text-none text-body-1 px-1",
|
|
10627
|
-
onClick: je((N) => r.handleForecastToggle(
|
|
10629
|
+
class: Ye(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10630
|
+
onClick: je((N) => r.handleForecastToggle(_), ["stop"])
|
|
10628
10631
|
}, {
|
|
10629
10632
|
default: f(() => [
|
|
10630
|
-
|
|
10633
|
+
J(m(_.model), 1)
|
|
10631
10634
|
]),
|
|
10632
10635
|
_: 2
|
|
10633
10636
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10637,22 +10640,22 @@ function tm(t, e, o, i, a, r) {
|
|
|
10637
10640
|
}),
|
|
10638
10641
|
_: 1
|
|
10639
10642
|
}),
|
|
10640
|
-
|
|
10641
|
-
|
|
10643
|
+
u(g),
|
|
10644
|
+
u(h, { class: "d-flex justify-space-between" }, {
|
|
10642
10645
|
default: f(() => [
|
|
10643
|
-
|
|
10646
|
+
u(l, {
|
|
10644
10647
|
density: "compact",
|
|
10645
10648
|
"prepend-icon": "",
|
|
10646
10649
|
variant: "text",
|
|
10647
10650
|
color: a.showLegend ? "primary" : "",
|
|
10648
10651
|
class: "text-none text-body-1",
|
|
10649
|
-
onClick: e[0] || (e[0] = je((
|
|
10652
|
+
onClick: e[0] || (e[0] = je((p) => a.showLegend = !a.showLegend, ["stop"]))
|
|
10650
10653
|
}, {
|
|
10651
10654
|
prepend: f(() => e[5] || (e[5] = [
|
|
10652
10655
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10653
10656
|
])),
|
|
10654
10657
|
default: f(() => [
|
|
10655
|
-
|
|
10658
|
+
J(" " + m(t.$t("weather.legend")), 1)
|
|
10656
10659
|
]),
|
|
10657
10660
|
_: 1
|
|
10658
10661
|
}, 8, ["color"]),
|
|
@@ -10662,22 +10665,22 @@ function tm(t, e, o, i, a, r) {
|
|
|
10662
10665
|
variant: "text",
|
|
10663
10666
|
density: "compact",
|
|
10664
10667
|
class: "text-none text-body-1",
|
|
10665
|
-
onClick: e[1] || (e[1] = je((
|
|
10668
|
+
onClick: e[1] || (e[1] = je((p) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10666
10669
|
}, {
|
|
10667
10670
|
default: f(() => [
|
|
10668
|
-
|
|
10671
|
+
J(m(t.$t("actions.notify")), 1)
|
|
10669
10672
|
]),
|
|
10670
10673
|
_: 1
|
|
10671
10674
|
})) : D("", !0),
|
|
10672
|
-
|
|
10675
|
+
u(l, {
|
|
10673
10676
|
variant: "text",
|
|
10674
10677
|
density: "compact",
|
|
10675
10678
|
"append-icon": "mdi-chevron-right",
|
|
10676
10679
|
class: "text-none text-body-1",
|
|
10677
|
-
onClick: e[2] || (e[2] = je((
|
|
10680
|
+
onClick: e[2] || (e[2] = je((p) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10678
10681
|
}, {
|
|
10679
10682
|
default: f(() => [
|
|
10680
|
-
|
|
10683
|
+
J(m(t.$t("actions.viewReport")), 1)
|
|
10681
10684
|
]),
|
|
10682
10685
|
_: 1
|
|
10683
10686
|
})
|
|
@@ -10689,9 +10692,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
10689
10692
|
_: 1
|
|
10690
10693
|
}),
|
|
10691
10694
|
s("div", Tc, [
|
|
10692
|
-
Ve(
|
|
10695
|
+
Ve(u(b, { elevation: "16" }, {
|
|
10693
10696
|
default: f(() => [
|
|
10694
|
-
|
|
10697
|
+
u(n, null, {
|
|
10695
10698
|
default: f(() => [
|
|
10696
10699
|
Ve(s("div", Sc, e[6] || (e[6] = [
|
|
10697
10700
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
@@ -10751,33 +10754,33 @@ function tm(t, e, o, i, a, r) {
|
|
|
10751
10754
|
])
|
|
10752
10755
|
])
|
|
10753
10756
|
])) : D("", !0),
|
|
10754
|
-
Ve(
|
|
10757
|
+
Ve(u(b, {
|
|
10755
10758
|
id: "tropicalHoverMarkerInfo",
|
|
10756
10759
|
elevation: "16",
|
|
10757
10760
|
"max-width": "280"
|
|
10758
10761
|
}, {
|
|
10759
10762
|
default: f(() => [
|
|
10760
|
-
|
|
10763
|
+
u(w, null, {
|
|
10761
10764
|
default: f(() => {
|
|
10762
|
-
var
|
|
10765
|
+
var p, z, T, O;
|
|
10763
10766
|
return [
|
|
10764
10767
|
s("div", Ic, [
|
|
10765
|
-
s("span", Dc, m(o.locale === "en" ? (
|
|
10766
|
-
s("span", Ac, "[ " + m((
|
|
10768
|
+
s("span", Dc, m(o.locale === "en" ? (p = a.hoverPoint) == null ? void 0 : p.name : ((z = a.hoverPoint) == null ? void 0 : z.nameCn) || ((T = a.hoverPoint) == null ? void 0 : T.name)), 1),
|
|
10769
|
+
s("span", Ac, "[ " + m((O = a.hoverPoint) == null ? void 0 : O.level) + " ]", 1)
|
|
10767
10770
|
])
|
|
10768
10771
|
];
|
|
10769
10772
|
}),
|
|
10770
10773
|
_: 1
|
|
10771
10774
|
}),
|
|
10772
|
-
|
|
10773
|
-
|
|
10775
|
+
u(L),
|
|
10776
|
+
u(n, { class: "text-body-1" }, {
|
|
10774
10777
|
default: f(() => {
|
|
10775
|
-
var
|
|
10778
|
+
var p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le;
|
|
10776
10779
|
return [
|
|
10777
10780
|
s("div", Rc, [
|
|
10778
|
-
((
|
|
10781
|
+
((p = a.hoverPoint) == null ? void 0 : p.type) === "forecast" ? (y(), M("div", Oc, [
|
|
10779
10782
|
s("label", Bc, m(t.$t("tropical.updated")) + " : ", 1),
|
|
10780
|
-
s("span", null, m(r.computeTzTime((
|
|
10783
|
+
s("span", null, m(r.computeTzTime((z = a.hoverPoint) == null ? void 0 : z.update, o.timeZone)), 1)
|
|
10781
10784
|
])) : D("", !0),
|
|
10782
10785
|
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Ec, [
|
|
10783
10786
|
s("label", jc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
@@ -10785,31 +10788,31 @@ function tm(t, e, o, i, a, r) {
|
|
|
10785
10788
|
])) : D("", !0),
|
|
10786
10789
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", Nc, [
|
|
10787
10790
|
s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10788
|
-
s("span", null, m(r.computeTzTime((
|
|
10791
|
+
s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.date, o.timeZone)), 1)
|
|
10789
10792
|
])) : D("", !0),
|
|
10790
|
-
((
|
|
10793
|
+
((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), M("div", Hc, [
|
|
10791
10794
|
s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
|
|
10792
10795
|
s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
|
|
10793
10796
|
])) : D("", !0),
|
|
10794
10797
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), M("div", Uc, [
|
|
10795
10798
|
s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10796
|
-
s("span", null, m(((A = JSON.parse((
|
|
10799
|
+
s("span", null, m(((A = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
|
|
10797
10800
|
])) : D("", !0),
|
|
10798
10801
|
((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), M("div", Vc, [
|
|
10799
10802
|
s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10800
|
-
s("span", null, m(((
|
|
10803
|
+
s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
10801
10804
|
])) : D("", !0),
|
|
10802
10805
|
s("div", Yc, [
|
|
10803
10806
|
s("label", qc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10804
10807
|
s("span", null, m(((Y = a.hoverPoint) == null ? void 0 : Y.pressure) ?? "-") + " hPa", 1)
|
|
10805
10808
|
]),
|
|
10806
|
-
((
|
|
10809
|
+
((Z = a.hoverPoint) == null ? void 0 : Z.type) === "history" ? (y(), M("div", Xc, [
|
|
10807
10810
|
s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10808
|
-
s("span", null, m(((
|
|
10811
|
+
s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
10809
10812
|
])) : D("", !0),
|
|
10810
10813
|
(($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), M("div", Kc, [
|
|
10811
10814
|
s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10812
|
-
s("span", null, m(((
|
|
10815
|
+
s("span", null, m(((le = JSON.parse((ce = a.hoverPoint) == null ? void 0 : ce.movement)) == null ? void 0 : le.deg) ?? "-") + " °", 1)
|
|
10813
10816
|
])) : D("", !0),
|
|
10814
10817
|
s("div", Qc, [
|
|
10815
10818
|
s("label", em, m(t.$t("tropical.position")) + " : ", 1),
|
|
@@ -11018,9 +11021,9 @@ const om = {
|
|
|
11018
11021
|
style: { height: "56px" }
|
|
11019
11022
|
};
|
|
11020
11023
|
function lm(t, e, o, i, a, r) {
|
|
11021
|
-
const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"),
|
|
11024
|
+
const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), L = x("VCardActions"), p = x("VCard");
|
|
11022
11025
|
return y(), M("div", am, [
|
|
11023
|
-
|
|
11026
|
+
u(l, {
|
|
11024
11027
|
text: "",
|
|
11025
11028
|
height: o.height,
|
|
11026
11029
|
width: o.width,
|
|
@@ -11028,22 +11031,22 @@ function lm(t, e, o, i, a, r) {
|
|
|
11028
11031
|
onClick: r.handleOpenDatePicker
|
|
11029
11032
|
}, {
|
|
11030
11033
|
default: f(() => [
|
|
11031
|
-
|
|
11034
|
+
J(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
11032
11035
|
]),
|
|
11033
11036
|
_: 1
|
|
11034
11037
|
}, 8, ["height", "width", "onClick"]),
|
|
11035
|
-
a.showDatePicker ? (y(), R(
|
|
11038
|
+
a.showDatePicker ? (y(), R(p, {
|
|
11036
11039
|
key: 0,
|
|
11037
11040
|
class: "card-box d-flex flex-column border",
|
|
11038
11041
|
style: ae(r.getStyle)
|
|
11039
11042
|
}, {
|
|
11040
11043
|
default: f(() => [
|
|
11041
|
-
|
|
11044
|
+
u(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
11042
11045
|
default: f(() => [
|
|
11043
11046
|
s("div", im, [
|
|
11044
|
-
|
|
11047
|
+
u(c, {
|
|
11045
11048
|
modelValue: a.currentDate,
|
|
11046
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11049
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
|
|
11047
11050
|
min: a.minDate,
|
|
11048
11051
|
max: a.maxDate,
|
|
11049
11052
|
"mode-icon": () => r.currentYear,
|
|
@@ -11055,30 +11058,30 @@ function lm(t, e, o, i, a, r) {
|
|
|
11055
11058
|
"onUpdate:month": r.handleUpdateMonth
|
|
11056
11059
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
11057
11060
|
]),
|
|
11058
|
-
|
|
11061
|
+
u(n, {
|
|
11059
11062
|
class: "h-100",
|
|
11060
11063
|
vertical: ""
|
|
11061
11064
|
}),
|
|
11062
11065
|
s("div", rm, [
|
|
11063
11066
|
s("div", sm, m(a.currentTime), 1),
|
|
11064
|
-
|
|
11067
|
+
u(b, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
11065
11068
|
default: f(() => [
|
|
11066
|
-
(y(!0), M(be, null, we(r.hourOptions, (
|
|
11069
|
+
(y(!0), M(be, null, we(r.hourOptions, (z, T) => (y(), R(h, {
|
|
11067
11070
|
key: T,
|
|
11068
|
-
value:
|
|
11071
|
+
value: z,
|
|
11069
11072
|
color: "primary",
|
|
11070
|
-
active: a.currentTime ===
|
|
11073
|
+
active: a.currentTime === z,
|
|
11071
11074
|
rounded: "",
|
|
11072
11075
|
height: "26",
|
|
11073
11076
|
"min-height": "26"
|
|
11074
11077
|
}, {
|
|
11075
11078
|
default: f(() => [
|
|
11076
|
-
|
|
11079
|
+
u(g, {
|
|
11077
11080
|
class: "text-body-2 font-weight-600 text-center",
|
|
11078
|
-
onClick: (O) => a.currentTime =
|
|
11081
|
+
onClick: (O) => a.currentTime = z
|
|
11079
11082
|
}, {
|
|
11080
11083
|
default: f(() => [
|
|
11081
|
-
|
|
11084
|
+
J(m(z), 1)
|
|
11082
11085
|
]),
|
|
11083
11086
|
_: 2
|
|
11084
11087
|
}, 1032, ["onClick"])
|
|
@@ -11092,25 +11095,25 @@ function lm(t, e, o, i, a, r) {
|
|
|
11092
11095
|
]),
|
|
11093
11096
|
_: 1
|
|
11094
11097
|
}),
|
|
11095
|
-
|
|
11096
|
-
|
|
11098
|
+
u(n),
|
|
11099
|
+
u(L, {
|
|
11097
11100
|
class: "justify-end pa-0 pr-4",
|
|
11098
11101
|
style: { height: "50px" }
|
|
11099
11102
|
}, {
|
|
11100
11103
|
default: f(() => [
|
|
11101
|
-
|
|
11104
|
+
u(l, {
|
|
11102
11105
|
size: "small",
|
|
11103
11106
|
variant: "tonal",
|
|
11104
11107
|
class: "text-none text-body-2",
|
|
11105
11108
|
onClick: r.handleCancelDate
|
|
11106
11109
|
}, {
|
|
11107
11110
|
default: f(() => e[1] || (e[1] = [
|
|
11108
|
-
|
|
11111
|
+
J("Cancel", -1)
|
|
11109
11112
|
])),
|
|
11110
11113
|
_: 1,
|
|
11111
11114
|
__: [1]
|
|
11112
11115
|
}, 8, ["onClick"]),
|
|
11113
|
-
|
|
11116
|
+
u(l, {
|
|
11114
11117
|
size: "small",
|
|
11115
11118
|
variant: "flat",
|
|
11116
11119
|
color: "primary",
|
|
@@ -11118,7 +11121,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11118
11121
|
onClick: r.handleConfirmDate
|
|
11119
11122
|
}, {
|
|
11120
11123
|
default: f(() => e[2] || (e[2] = [
|
|
11121
|
-
|
|
11124
|
+
J("Confirm", -1)
|
|
11122
11125
|
])),
|
|
11123
11126
|
_: 1,
|
|
11124
11127
|
__: [2]
|
|
@@ -11374,10 +11377,10 @@ const nm = {
|
|
|
11374
11377
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11375
11378
|
},
|
|
11376
11379
|
initTableData(t) {
|
|
11377
|
-
var o, i, a, r, l, c, n,
|
|
11380
|
+
var o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve;
|
|
11378
11381
|
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;
|
|
11379
11382
|
const e = ((l = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11380
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((
|
|
11383
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.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((p = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : p.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ce = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((me = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : me.height, 1) ?? "-", this.currentHourData.swellDir = (ie = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((de = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ue = e == null ? void 0 : e.current) == null ? void 0 : ue.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((se = e == null ? void 0 : e.current) == null ? void 0 : se.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
11381
11384
|
},
|
|
11382
11385
|
handleBind() {
|
|
11383
11386
|
var t, e;
|
|
@@ -11486,18 +11489,18 @@ const nm = {
|
|
|
11486
11489
|
"aria-hidden": "true"
|
|
11487
11490
|
}, qm = ["xlink:href"];
|
|
11488
11491
|
function Xm(t, e, o, i, a, r) {
|
|
11489
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
11492
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), p = x("VBtnToggle"), z = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), P = x("VIcon");
|
|
11490
11493
|
return y(), M("div", cm, [
|
|
11491
11494
|
s("div", {
|
|
11492
11495
|
class: "menu-bar-box transition pa-1",
|
|
11493
11496
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
11494
11497
|
}, [
|
|
11495
|
-
|
|
11498
|
+
u(c, {
|
|
11496
11499
|
text: t.$t("spot.spotsMeteo"),
|
|
11497
11500
|
location: "left"
|
|
11498
11501
|
}, {
|
|
11499
|
-
activator: f(({ props:
|
|
11500
|
-
|
|
11502
|
+
activator: f(({ props: k }) => [
|
|
11503
|
+
u(l, B(k, {
|
|
11501
11504
|
"min-width": "32",
|
|
11502
11505
|
width: "32",
|
|
11503
11506
|
height: "32",
|
|
@@ -11520,12 +11523,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11520
11523
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
11521
11524
|
}, {
|
|
11522
11525
|
default: f(() => [
|
|
11523
|
-
|
|
11526
|
+
u(n, { class: "d-flex justify-space-between align-center" }, {
|
|
11524
11527
|
default: f(() => [
|
|
11525
11528
|
s("div", mm, [
|
|
11526
11529
|
s("div", dm, m(t.$t("spot.spotWeather")), 1)
|
|
11527
11530
|
]),
|
|
11528
|
-
|
|
11531
|
+
u(l, {
|
|
11529
11532
|
icon: "",
|
|
11530
11533
|
density: "compact",
|
|
11531
11534
|
variant: "plain",
|
|
@@ -11541,15 +11544,15 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11541
11544
|
]),
|
|
11542
11545
|
_: 1
|
|
11543
11546
|
}),
|
|
11544
|
-
|
|
11545
|
-
|
|
11547
|
+
u(g),
|
|
11548
|
+
u(O, {
|
|
11546
11549
|
ref: "spotForm",
|
|
11547
11550
|
autocomplete: "off",
|
|
11548
11551
|
class: "form-box",
|
|
11549
11552
|
onSubmit: je(r.submitForm, ["prevent"])
|
|
11550
11553
|
}, {
|
|
11551
11554
|
default: f(() => [
|
|
11552
|
-
|
|
11555
|
+
u(z, { class: "text-body-1 py-1" }, {
|
|
11553
11556
|
default: f(() => [
|
|
11554
11557
|
s("div", hm, [
|
|
11555
11558
|
(y(), M("svg", pm, [
|
|
@@ -11559,16 +11562,16 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11559
11562
|
])),
|
|
11560
11563
|
s("div", null, m(t.$t("spot.lng")), 1)
|
|
11561
11564
|
]),
|
|
11562
|
-
|
|
11565
|
+
u(w, { class: "ma-0" }, {
|
|
11563
11566
|
default: f(() => [
|
|
11564
|
-
|
|
11567
|
+
u(b, {
|
|
11565
11568
|
cols: "4",
|
|
11566
11569
|
class: "pa-0 d-flex"
|
|
11567
11570
|
}, {
|
|
11568
11571
|
default: f(() => [
|
|
11569
|
-
|
|
11572
|
+
u(h, {
|
|
11570
11573
|
modelValue: a.form.lngDegree,
|
|
11571
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11574
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
11572
11575
|
rules: a.formRules.lngDegree,
|
|
11573
11576
|
density: "compact",
|
|
11574
11577
|
variant: "outlined",
|
|
@@ -11581,14 +11584,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11581
11584
|
_: 1,
|
|
11582
11585
|
__: [10]
|
|
11583
11586
|
}),
|
|
11584
|
-
|
|
11587
|
+
u(b, {
|
|
11585
11588
|
cols: "6",
|
|
11586
11589
|
class: "pa-0 d-flex"
|
|
11587
11590
|
}, {
|
|
11588
11591
|
default: f(() => [
|
|
11589
|
-
|
|
11592
|
+
u(h, {
|
|
11590
11593
|
modelValue: a.form.lngMinute,
|
|
11591
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
11594
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
11592
11595
|
rules: a.formRules.lngMinute,
|
|
11593
11596
|
label: "",
|
|
11594
11597
|
density: "compact",
|
|
@@ -11602,12 +11605,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11602
11605
|
_: 1,
|
|
11603
11606
|
__: [11]
|
|
11604
11607
|
}),
|
|
11605
|
-
|
|
11608
|
+
u(b, {
|
|
11606
11609
|
cols: "2",
|
|
11607
11610
|
class: "pa-0"
|
|
11608
11611
|
}, {
|
|
11609
11612
|
default: f(() => [
|
|
11610
|
-
|
|
11613
|
+
u(l, {
|
|
11611
11614
|
variant: "outlined",
|
|
11612
11615
|
density: "compact",
|
|
11613
11616
|
width: "32",
|
|
@@ -11615,10 +11618,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11615
11618
|
height: "32",
|
|
11616
11619
|
class: "text-body-1 btn-bg-1",
|
|
11617
11620
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11618
|
-
onClick: e[2] || (e[2] = (
|
|
11621
|
+
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11619
11622
|
}, {
|
|
11620
11623
|
default: f(() => [
|
|
11621
|
-
|
|
11624
|
+
J(m(a.form.lngDirection), 1)
|
|
11622
11625
|
]),
|
|
11623
11626
|
_: 1
|
|
11624
11627
|
})
|
|
@@ -11636,16 +11639,16 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11636
11639
|
])),
|
|
11637
11640
|
s("div", null, m(t.$t("spot.lat")), 1)
|
|
11638
11641
|
]),
|
|
11639
|
-
|
|
11642
|
+
u(w, { class: "ma-0" }, {
|
|
11640
11643
|
default: f(() => [
|
|
11641
|
-
|
|
11644
|
+
u(b, {
|
|
11642
11645
|
cols: "4",
|
|
11643
11646
|
class: "pa-0 d-flex"
|
|
11644
11647
|
}, {
|
|
11645
11648
|
default: f(() => [
|
|
11646
|
-
|
|
11649
|
+
u(h, {
|
|
11647
11650
|
modelValue: a.form.latDegree,
|
|
11648
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
11651
|
+
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
11649
11652
|
rules: a.formRules.latDegree,
|
|
11650
11653
|
label: "",
|
|
11651
11654
|
density: "compact",
|
|
@@ -11661,14 +11664,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11661
11664
|
_: 1,
|
|
11662
11665
|
__: [12]
|
|
11663
11666
|
}),
|
|
11664
|
-
|
|
11667
|
+
u(b, {
|
|
11665
11668
|
cols: "6",
|
|
11666
11669
|
class: "pa-0 d-flex"
|
|
11667
11670
|
}, {
|
|
11668
11671
|
default: f(() => [
|
|
11669
|
-
|
|
11672
|
+
u(h, {
|
|
11670
11673
|
modelValue: a.form.latMinute,
|
|
11671
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
11674
|
+
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
11672
11675
|
rules: a.formRules.latMinute,
|
|
11673
11676
|
label: "",
|
|
11674
11677
|
density: "compact",
|
|
@@ -11682,12 +11685,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11682
11685
|
_: 1,
|
|
11683
11686
|
__: [13]
|
|
11684
11687
|
}),
|
|
11685
|
-
|
|
11688
|
+
u(b, {
|
|
11686
11689
|
cols: "2",
|
|
11687
11690
|
class: "pa-0"
|
|
11688
11691
|
}, {
|
|
11689
11692
|
default: f(() => [
|
|
11690
|
-
|
|
11693
|
+
u(l, {
|
|
11691
11694
|
variant: "outlined",
|
|
11692
11695
|
density: "compact",
|
|
11693
11696
|
width: "32",
|
|
@@ -11695,10 +11698,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11695
11698
|
height: "32",
|
|
11696
11699
|
class: "text-body-1 btn-bg-1",
|
|
11697
11700
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11698
|
-
onClick: e[5] || (e[5] = (
|
|
11701
|
+
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11699
11702
|
}, {
|
|
11700
11703
|
default: f(() => [
|
|
11701
|
-
|
|
11704
|
+
J(m(a.form.latDirection), 1)
|
|
11702
11705
|
]),
|
|
11703
11706
|
_: 1
|
|
11704
11707
|
})
|
|
@@ -11716,18 +11719,18 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11716
11719
|
])),
|
|
11717
11720
|
s("div", null, m(t.$t("spot.dateTime")), 1)
|
|
11718
11721
|
]),
|
|
11719
|
-
|
|
11722
|
+
u(w, { class: "ma-0 mb-4" }, {
|
|
11720
11723
|
default: f(() => [
|
|
11721
|
-
|
|
11724
|
+
u(b, {
|
|
11722
11725
|
cols: "12",
|
|
11723
11726
|
class: "pa-0"
|
|
11724
11727
|
}, {
|
|
11725
11728
|
default: f(() => [
|
|
11726
|
-
|
|
11729
|
+
u(L, B({
|
|
11727
11730
|
"date-time": a.form.dateTime,
|
|
11728
11731
|
"time-zone": o.timeZone
|
|
11729
11732
|
}, t.$attrs, {
|
|
11730
|
-
onDateTime: e[6] || (e[6] = (
|
|
11733
|
+
onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
|
|
11731
11734
|
}), null, 16, ["date-time", "time-zone"])
|
|
11732
11735
|
]),
|
|
11733
11736
|
_: 1
|
|
@@ -11743,16 +11746,16 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11743
11746
|
])),
|
|
11744
11747
|
s("div", null, m(t.$t("weather.forecastModel")), 1)
|
|
11745
11748
|
]),
|
|
11746
|
-
|
|
11749
|
+
u(w, { class: "ma-0 mb-2" }, {
|
|
11747
11750
|
default: f(() => [
|
|
11748
|
-
|
|
11751
|
+
u(b, {
|
|
11749
11752
|
cols: "12",
|
|
11750
11753
|
class: "pa-0"
|
|
11751
11754
|
}, {
|
|
11752
11755
|
default: f(() => [
|
|
11753
|
-
p
|
|
11756
|
+
u(p, {
|
|
11754
11757
|
modelValue: a.form.forecastModel,
|
|
11755
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
11758
|
+
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
11756
11759
|
class: "w-100",
|
|
11757
11760
|
rounded: "",
|
|
11758
11761
|
height: "30",
|
|
@@ -11760,7 +11763,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11760
11763
|
group: ""
|
|
11761
11764
|
}, {
|
|
11762
11765
|
default: f(() => [
|
|
11763
|
-
|
|
11766
|
+
u(l, {
|
|
11764
11767
|
density: "compact",
|
|
11765
11768
|
height: "30",
|
|
11766
11769
|
value: "GFS",
|
|
@@ -11769,12 +11772,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11769
11772
|
"base-color": ""
|
|
11770
11773
|
}, {
|
|
11771
11774
|
default: f(() => e[14] || (e[14] = [
|
|
11772
|
-
|
|
11775
|
+
J("NOAA", -1)
|
|
11773
11776
|
])),
|
|
11774
11777
|
_: 1,
|
|
11775
11778
|
__: [14]
|
|
11776
11779
|
}, 8, ["class", "color"]),
|
|
11777
|
-
|
|
11780
|
+
u(l, {
|
|
11778
11781
|
density: "compact",
|
|
11779
11782
|
height: "30",
|
|
11780
11783
|
class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -11783,7 +11786,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11783
11786
|
value: "ECMWF"
|
|
11784
11787
|
}, {
|
|
11785
11788
|
default: f(() => e[15] || (e[15] = [
|
|
11786
|
-
|
|
11789
|
+
J("ECMWF", -1)
|
|
11787
11790
|
])),
|
|
11788
11791
|
_: 1,
|
|
11789
11792
|
__: [15]
|
|
@@ -11800,21 +11803,21 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11800
11803
|
]),
|
|
11801
11804
|
_: 1
|
|
11802
11805
|
}),
|
|
11803
|
-
|
|
11804
|
-
|
|
11806
|
+
u(g),
|
|
11807
|
+
u(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
11805
11808
|
default: f(() => [
|
|
11806
|
-
|
|
11809
|
+
u(l, {
|
|
11807
11810
|
size: "small",
|
|
11808
11811
|
variant: "outlined",
|
|
11809
11812
|
class: "text-none text-body-1 btn-border-1 btn-bg-1",
|
|
11810
11813
|
onClick: r.cancelForm
|
|
11811
11814
|
}, {
|
|
11812
11815
|
default: f(() => [
|
|
11813
|
-
|
|
11816
|
+
J(m(t.$t("actions.clear")), 1)
|
|
11814
11817
|
]),
|
|
11815
11818
|
_: 1
|
|
11816
11819
|
}, 8, ["onClick"]),
|
|
11817
|
-
|
|
11820
|
+
u(l, {
|
|
11818
11821
|
ref: "submitSpot",
|
|
11819
11822
|
loading: a.loading,
|
|
11820
11823
|
size: "small",
|
|
@@ -11824,7 +11827,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11824
11827
|
class: "text-none text-body-1"
|
|
11825
11828
|
}, {
|
|
11826
11829
|
default: f(() => [
|
|
11827
|
-
|
|
11830
|
+
J(m(t.$t("actions.confirm")), 1)
|
|
11828
11831
|
]),
|
|
11829
11832
|
_: 1
|
|
11830
11833
|
}, 8, ["loading"])
|
|
@@ -11844,13 +11847,13 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11844
11847
|
style: { width: "490px", "z-index": "9" }
|
|
11845
11848
|
}, {
|
|
11846
11849
|
default: f(() => [
|
|
11847
|
-
|
|
11850
|
+
u(n, { class: "d-flex justify-space-between align-center" }, {
|
|
11848
11851
|
default: f(() => [
|
|
11849
11852
|
s("div", zm, [
|
|
11850
11853
|
e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
11851
11854
|
s("div", Lm, m(r.computePosition(a.form || a.currentHourData)), 1)
|
|
11852
11855
|
]),
|
|
11853
|
-
|
|
11856
|
+
u(l, {
|
|
11854
11857
|
class: "mr-n2",
|
|
11855
11858
|
density: "comfortable",
|
|
11856
11859
|
icon: "",
|
|
@@ -11869,14 +11872,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11869
11872
|
]),
|
|
11870
11873
|
_: 1
|
|
11871
11874
|
}),
|
|
11872
|
-
|
|
11873
|
-
|
|
11875
|
+
u(g),
|
|
11876
|
+
u(z, { class: "text-body-1 px-0 py-1" }, {
|
|
11874
11877
|
default: f(() => {
|
|
11875
|
-
var
|
|
11878
|
+
var k, v;
|
|
11876
11879
|
return [
|
|
11877
11880
|
s("div", Pm, [
|
|
11878
11881
|
s("div", Cm, m(t.$t("time.time")), 1),
|
|
11879
|
-
s("div", Tm, m(r.computedTzTime((
|
|
11882
|
+
s("div", Tm, m(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11880
11883
|
]),
|
|
11881
11884
|
s("div", Sm, [
|
|
11882
11885
|
e[18] || (e[18] = s("div", {
|
|
@@ -11907,12 +11910,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11907
11910
|
}),
|
|
11908
11911
|
_: 1
|
|
11909
11912
|
}),
|
|
11910
|
-
|
|
11911
|
-
|
|
11913
|
+
u(g),
|
|
11914
|
+
u(T, { class: "d-flex justify-space-between align-center" }, {
|
|
11912
11915
|
default: f(() => [
|
|
11913
|
-
o.followList.some((
|
|
11916
|
+
o.followList.some((k) => {
|
|
11914
11917
|
var v, C;
|
|
11915
|
-
return ((v =
|
|
11918
|
+
return ((v = k == null ? void 0 : k.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = k == null ? void 0 : k.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
11916
11919
|
}) ? (y(), R(l, {
|
|
11917
11920
|
key: 0,
|
|
11918
11921
|
class: "text-none text-body-1",
|
|
@@ -11924,13 +11927,13 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11924
11927
|
onClick: je(r.handleCancelFollow, ["stop"])
|
|
11925
11928
|
}, {
|
|
11926
11929
|
prepend: f(() => [
|
|
11927
|
-
|
|
11930
|
+
u(P, {
|
|
11928
11931
|
color: "warning",
|
|
11929
11932
|
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
11930
11933
|
})
|
|
11931
11934
|
]),
|
|
11932
11935
|
default: f(() => [
|
|
11933
|
-
|
|
11936
|
+
J(" " + m(t.$t("actions.unfollow")), 1)
|
|
11934
11937
|
]),
|
|
11935
11938
|
_: 1
|
|
11936
11939
|
}, 8, ["onClick"])) : (y(), R(l, {
|
|
@@ -11944,14 +11947,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11944
11947
|
onClick: je(r.handleFollow, ["stop"])
|
|
11945
11948
|
}, {
|
|
11946
11949
|
prepend: f(() => [
|
|
11947
|
-
|
|
11950
|
+
u(P, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
11948
11951
|
]),
|
|
11949
11952
|
default: f(() => [
|
|
11950
|
-
|
|
11953
|
+
J(m(t.$t("actions.follow")) + " ", 1)
|
|
11951
11954
|
]),
|
|
11952
11955
|
_: 1
|
|
11953
11956
|
}, 8, ["onClick"])),
|
|
11954
|
-
|
|
11957
|
+
u(l, {
|
|
11955
11958
|
height: "32",
|
|
11956
11959
|
variant: "text",
|
|
11957
11960
|
density: "compact",
|
|
@@ -11960,7 +11963,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11960
11963
|
onClick: je(r.handleMeteoMore, ["stop"])
|
|
11961
11964
|
}, {
|
|
11962
11965
|
default: f(() => [
|
|
11963
|
-
|
|
11966
|
+
J(m(t.$t("spot.forecast")), 1)
|
|
11964
11967
|
]),
|
|
11965
11968
|
_: 1
|
|
11966
11969
|
}, 8, ["onClick"])
|
|
@@ -12072,7 +12075,7 @@ const Km = {
|
|
|
12072
12075
|
}
|
|
12073
12076
|
},
|
|
12074
12077
|
handleDrag(t) {
|
|
12075
|
-
var o, i, a, r, l, c, n,
|
|
12078
|
+
var o, i, a, r, l, c, n, g, h, b;
|
|
12076
12079
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12077
12080
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12078
12081
|
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
@@ -12080,33 +12083,33 @@ const Km = {
|
|
|
12080
12083
|
var O;
|
|
12081
12084
|
return ((O = T._element) == null ? void 0 : O.id) === e;
|
|
12082
12085
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
12083
|
-
let
|
|
12086
|
+
let p;
|
|
12084
12087
|
w.features.forEach((T, O) => {
|
|
12085
12088
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
12086
|
-
|
|
12089
|
+
p = O;
|
|
12087
12090
|
return;
|
|
12088
12091
|
}
|
|
12089
12092
|
});
|
|
12090
|
-
const
|
|
12093
|
+
const z = w.features.filter((T) => T.geometry.type === "Point");
|
|
12091
12094
|
this.handleTmpPointUpdate(
|
|
12092
12095
|
w,
|
|
12093
|
-
|
|
12094
|
-
{ lng: (
|
|
12095
|
-
|
|
12096
|
+
z[p - 1],
|
|
12097
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: z[p].properties },
|
|
12098
|
+
p === z.length - 1 ? void 0 : z[p + 1]
|
|
12096
12099
|
);
|
|
12097
12100
|
}
|
|
12098
12101
|
},
|
|
12099
12102
|
handleDragEnd(t) {
|
|
12100
|
-
var o, i, a, r, l, c, n,
|
|
12103
|
+
var o, i, a, r, l, c, n, g, h, b;
|
|
12101
12104
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12102
12105
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12103
|
-
const w = this.geojson.filter((
|
|
12104
|
-
this.pointMarkers[w.id].filter((
|
|
12106
|
+
const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
|
|
12107
|
+
this.pointMarkers[w.id].filter((z) => {
|
|
12105
12108
|
var T;
|
|
12106
|
-
return ((T =
|
|
12109
|
+
return ((T = z._element) == null ? void 0 : T.id) === e;
|
|
12107
12110
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
12108
|
-
const
|
|
12109
|
-
|
|
12111
|
+
const p = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
|
|
12112
|
+
p.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12110
12113
|
}
|
|
12111
12114
|
},
|
|
12112
12115
|
handleContextmenu(t) {
|
|
@@ -12115,9 +12118,9 @@ const Km = {
|
|
|
12115
12118
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
12116
12119
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12117
12120
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12118
|
-
if (c.length > 2 && c.filter((
|
|
12119
|
-
const
|
|
12120
|
-
|
|
12121
|
+
if (c.length > 2 && c.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12122
|
+
const g = document.createElement("div");
|
|
12123
|
+
g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12121
12124
|
}
|
|
12122
12125
|
}
|
|
12123
12126
|
},
|
|
@@ -12126,15 +12129,15 @@ const Km = {
|
|
|
12126
12129
|
(o = this.contextmenu) == null || o.remove();
|
|
12127
12130
|
const e = t.originalEvent.target.className;
|
|
12128
12131
|
if (e === "marker-close") {
|
|
12129
|
-
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
12130
|
-
|
|
12132
|
+
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((h) => h.id === n)[0];
|
|
12133
|
+
g && this.handleClear(g, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
|
|
12131
12134
|
} else if (e === "del-point") {
|
|
12132
|
-
const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
12133
|
-
|
|
12135
|
+
const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), g = this.geojson.filter((h) => h.id === n[0])[0];
|
|
12136
|
+
g.features = g.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(g);
|
|
12134
12137
|
} else if (e !== "marker-label" && this.toggle) {
|
|
12135
12138
|
let n = this.geojson.at(-1);
|
|
12136
12139
|
n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
|
|
12137
|
-
const
|
|
12140
|
+
const g = H.feature(
|
|
12138
12141
|
{
|
|
12139
12142
|
type: "Point",
|
|
12140
12143
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -12145,7 +12148,7 @@ const Km = {
|
|
|
12145
12148
|
sumLabel: "Start"
|
|
12146
12149
|
}
|
|
12147
12150
|
);
|
|
12148
|
-
n.features.push(
|
|
12151
|
+
n.features.push(g), this.handlePointUpdate(n);
|
|
12149
12152
|
}
|
|
12150
12153
|
},
|
|
12151
12154
|
handlePointUpdate(t) {
|
|
@@ -12154,14 +12157,14 @@ const Km = {
|
|
|
12154
12157
|
let o = 0;
|
|
12155
12158
|
const i = [];
|
|
12156
12159
|
for (let a = 1; a < e.length; a++) {
|
|
12157
|
-
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
12160
|
+
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = We.calculateDistance(n, g, c.mode === "RL", 4), b = We.calculateBearing(n, g, c.mode === "RL", 2);
|
|
12158
12161
|
o = X.roundPrecision(o + h, 4);
|
|
12159
12162
|
let w;
|
|
12160
|
-
c.mode === "RL" ? w = X.convertToMonotonicLng([n,
|
|
12161
|
-
const
|
|
12162
|
-
|
|
12163
|
-
const
|
|
12164
|
-
|
|
12163
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, g, 200));
|
|
12164
|
+
const L = H.lineString(w.map((z) => [z.lng, z.lat]));
|
|
12165
|
+
L.properties.dist = h, L.properties.bearing = b, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
|
|
12166
|
+
const p = e[a];
|
|
12167
|
+
p.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), p.properties.sumLabel = p.properties.totalDist + " nm";
|
|
12165
12168
|
}
|
|
12166
12169
|
e.push(...i), t.total = o;
|
|
12167
12170
|
}
|
|
@@ -12171,19 +12174,19 @@ const Km = {
|
|
|
12171
12174
|
const a = H.featureCollection([]);
|
|
12172
12175
|
let r, l;
|
|
12173
12176
|
if (e) {
|
|
12174
|
-
const n = e.properties,
|
|
12175
|
-
r = We.calculateDistance(
|
|
12177
|
+
const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
12178
|
+
r = We.calculateDistance(g, h, n.mode === "RL", 4), l = We.calculateBearing(g, h, n.mode === "RL", 2);
|
|
12176
12179
|
let b;
|
|
12177
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([
|
|
12178
|
-
const w = H.lineString(b.map((
|
|
12180
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([g, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(g, h, 200));
|
|
12181
|
+
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12179
12182
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12180
12183
|
}
|
|
12181
12184
|
if (i) {
|
|
12182
|
-
const n = o.properties,
|
|
12183
|
-
r = We.calculateDistance(
|
|
12185
|
+
const n = o.properties, g = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12186
|
+
r = We.calculateDistance(g, h, n.mode === "RL", 4), l = We.calculateBearing(g, h, n.mode === "RL", 2);
|
|
12184
12187
|
let b;
|
|
12185
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([
|
|
12186
|
-
const w = H.lineString(b.map((
|
|
12188
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([g, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(g, h, 200));
|
|
12189
|
+
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12187
12190
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12188
12191
|
}
|
|
12189
12192
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -12315,21 +12318,21 @@ const Km = {
|
|
|
12315
12318
|
for (const c of l) {
|
|
12316
12319
|
const n = document.createElement("div");
|
|
12317
12320
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
12318
|
-
const
|
|
12319
|
-
|
|
12321
|
+
const g = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12322
|
+
g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
|
|
12320
12323
|
}
|
|
12321
12324
|
if (t.closed) {
|
|
12322
|
-
const c = l.at(-1),
|
|
12323
|
-
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
12325
|
+
const c = l.at(-1), g = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
12326
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12324
12327
|
}
|
|
12325
12328
|
}
|
|
12326
12329
|
},
|
|
12327
12330
|
handleClear(t, e = !0) {
|
|
12328
|
-
var l, c, n,
|
|
12331
|
+
var l, c, n, g, h, b, w, L, p, z;
|
|
12329
12332
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12330
|
-
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (
|
|
12333
|
+
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
12331
12334
|
T == null || T.remove();
|
|
12332
|
-
}), this.pointMarkers[t.id] = [], (
|
|
12335
|
+
}), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((p = this.map) != null && p.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12333
12336
|
}
|
|
12334
12337
|
}
|
|
12335
12338
|
}, Jm = { class: "idm-gl4-measure" };
|
|
@@ -12340,12 +12343,12 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12340
12343
|
class: "menu-bar-box transition pa-1",
|
|
12341
12344
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
12342
12345
|
}, [
|
|
12343
|
-
|
|
12346
|
+
u(c, {
|
|
12344
12347
|
text: t.$t("measure.measure"),
|
|
12345
12348
|
location: "left"
|
|
12346
12349
|
}, {
|
|
12347
12350
|
activator: f(({ props: n }) => [
|
|
12348
|
-
|
|
12351
|
+
u(l, B(n, {
|
|
12349
12352
|
"min-width": "32",
|
|
12350
12353
|
width: "32",
|
|
12351
12354
|
height: "32",
|
|
@@ -12495,55 +12498,55 @@ const td = {
|
|
|
12495
12498
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
12496
12499
|
}, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
|
|
12497
12500
|
function dd(t, e, o, i, a, r) {
|
|
12498
|
-
const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"),
|
|
12501
|
+
const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), L = x("VTooltip");
|
|
12499
12502
|
return y(), M("div", od, [
|
|
12500
12503
|
s("div", {
|
|
12501
12504
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
12502
12505
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12503
12506
|
}, [
|
|
12504
12507
|
s("div", ad, [
|
|
12505
|
-
|
|
12508
|
+
u(l, B({
|
|
12506
12509
|
ref: "dateTimePicker",
|
|
12507
12510
|
"date-time": a.currentDateTimeZ,
|
|
12508
12511
|
"time-zone": a.timeZone,
|
|
12509
12512
|
"day-about": a.dayAbout,
|
|
12510
12513
|
"interval-hour": a.intervalHour
|
|
12511
12514
|
}, t.$attrs, {
|
|
12512
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
12513
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
12514
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
12515
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
12515
|
+
onCurrentTimestamp: e[0] || (e[0] = (p) => a.currentTimestamp = p),
|
|
12516
|
+
onCurrentRealTime: e[1] || (e[1] = (p) => a.currentRealTime = p),
|
|
12517
|
+
onMinTimestamp: e[2] || (e[2] = (p) => a.minTimestamp = p),
|
|
12518
|
+
onMaxTimestamp: e[3] || (e[3] = (p) => a.maxTimestamp = p)
|
|
12516
12519
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
12517
|
-
|
|
12520
|
+
u(b, {
|
|
12518
12521
|
text: "",
|
|
12519
12522
|
height: "30",
|
|
12520
12523
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
12521
12524
|
"min-width": "30"
|
|
12522
12525
|
}, {
|
|
12523
12526
|
default: f(() => [
|
|
12524
|
-
|
|
12525
|
-
|
|
12527
|
+
J(m(a.intervalHour) + " h ", 1),
|
|
12528
|
+
u(h, { activator: "parent" }, {
|
|
12526
12529
|
default: f(() => [
|
|
12527
|
-
|
|
12530
|
+
u(g, { class: "pa-1" }, {
|
|
12528
12531
|
default: f(() => [
|
|
12529
|
-
(y(!0), M(be, null, we(a.intervalOptions, (
|
|
12530
|
-
key:
|
|
12531
|
-
value:
|
|
12532
|
-
variant: a.intervalHour ===
|
|
12532
|
+
(y(!0), M(be, null, we(a.intervalOptions, (p, z) => (y(), R(n, {
|
|
12533
|
+
key: z,
|
|
12534
|
+
value: p,
|
|
12535
|
+
variant: a.intervalHour === p ? "tonal" : "text",
|
|
12533
12536
|
color: "primary",
|
|
12534
12537
|
rounded: "",
|
|
12535
|
-
active: a.intervalHour ===
|
|
12538
|
+
active: a.intervalHour === p,
|
|
12536
12539
|
height: "30",
|
|
12537
12540
|
"min-height": "30",
|
|
12538
12541
|
"min-width": "30",
|
|
12539
12542
|
class: "pa-0 text-center text-body-1"
|
|
12540
12543
|
}, {
|
|
12541
12544
|
default: f(() => [
|
|
12542
|
-
|
|
12543
|
-
onClick: (T) => a.intervalHour =
|
|
12545
|
+
u(c, {
|
|
12546
|
+
onClick: (T) => a.intervalHour = p
|
|
12544
12547
|
}, {
|
|
12545
12548
|
default: f(() => [
|
|
12546
|
-
|
|
12549
|
+
J(m(p) + "h", 1)
|
|
12547
12550
|
]),
|
|
12548
12551
|
_: 2
|
|
12549
12552
|
}, 1032, ["onClick"])
|
|
@@ -12560,13 +12563,13 @@ function dd(t, e, o, i, a, r) {
|
|
|
12560
12563
|
_: 1
|
|
12561
12564
|
})
|
|
12562
12565
|
]),
|
|
12563
|
-
|
|
12566
|
+
u(w, {
|
|
12564
12567
|
vertical: "",
|
|
12565
12568
|
class: "mx-2 my-3",
|
|
12566
12569
|
style: { height: "16px" }
|
|
12567
12570
|
}),
|
|
12568
12571
|
s("div", id, [
|
|
12569
|
-
|
|
12572
|
+
u(b, {
|
|
12570
12573
|
icon: "",
|
|
12571
12574
|
size: "small",
|
|
12572
12575
|
density: "comfortable",
|
|
@@ -12579,7 +12582,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12579
12582
|
_: 1,
|
|
12580
12583
|
__: [10]
|
|
12581
12584
|
}, 8, ["onClick"]),
|
|
12582
|
-
|
|
12585
|
+
u(b, {
|
|
12583
12586
|
icon: "",
|
|
12584
12587
|
size: "small",
|
|
12585
12588
|
density: "comfortable",
|
|
@@ -12619,7 +12622,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12619
12622
|
_: 1,
|
|
12620
12623
|
__: [13]
|
|
12621
12624
|
}, 8, ["onClick"])),
|
|
12622
|
-
|
|
12625
|
+
u(b, {
|
|
12623
12626
|
icon: "",
|
|
12624
12627
|
size: "small",
|
|
12625
12628
|
density: "comfortable",
|
|
@@ -12633,22 +12636,22 @@ function dd(t, e, o, i, a, r) {
|
|
|
12633
12636
|
__: [14]
|
|
12634
12637
|
}, 8, ["onClick"])
|
|
12635
12638
|
]),
|
|
12636
|
-
|
|
12639
|
+
u(w, {
|
|
12637
12640
|
vertical: "",
|
|
12638
12641
|
class: "mx-2 my-3",
|
|
12639
12642
|
style: { height: "16px" }
|
|
12640
12643
|
}),
|
|
12641
12644
|
s("div", rd, [
|
|
12642
|
-
|
|
12645
|
+
u(L, {
|
|
12643
12646
|
text: t.$t("weather.windBarbs"),
|
|
12644
12647
|
location: "top"
|
|
12645
12648
|
}, {
|
|
12646
|
-
activator: f(({ props:
|
|
12647
|
-
var
|
|
12649
|
+
activator: f(({ props: p }) => {
|
|
12650
|
+
var z, T;
|
|
12648
12651
|
return [
|
|
12649
|
-
|
|
12652
|
+
u(b, B(p, {
|
|
12650
12653
|
class: "pa-1 d-flex",
|
|
12651
|
-
color: (
|
|
12654
|
+
color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
|
|
12652
12655
|
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
12653
12656
|
height: "24",
|
|
12654
12657
|
width: "24",
|
|
@@ -12665,16 +12668,16 @@ function dd(t, e, o, i, a, r) {
|
|
|
12665
12668
|
}),
|
|
12666
12669
|
_: 1
|
|
12667
12670
|
}, 8, ["text"]),
|
|
12668
|
-
|
|
12671
|
+
u(L, {
|
|
12669
12672
|
text: t.$t("weather.sigWaveHeight"),
|
|
12670
12673
|
location: "top"
|
|
12671
12674
|
}, {
|
|
12672
|
-
activator: f(({ props:
|
|
12673
|
-
var
|
|
12675
|
+
activator: f(({ props: p }) => {
|
|
12676
|
+
var z, T;
|
|
12674
12677
|
return [
|
|
12675
|
-
|
|
12678
|
+
u(b, B(p, {
|
|
12676
12679
|
class: "pa-1 d-flex",
|
|
12677
|
-
color: (
|
|
12680
|
+
color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
|
|
12678
12681
|
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
12679
12682
|
height: "24",
|
|
12680
12683
|
width: "24",
|
|
@@ -12682,7 +12685,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12682
12685
|
onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("sig-wave-height"))
|
|
12683
12686
|
}), {
|
|
12684
12687
|
default: f(() => [
|
|
12685
|
-
s("i", B(
|
|
12688
|
+
s("i", B(p, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
12686
12689
|
]),
|
|
12687
12690
|
_: 2
|
|
12688
12691
|
}, 1040, ["color", "variant"])
|
|
@@ -12690,16 +12693,16 @@ function dd(t, e, o, i, a, r) {
|
|
|
12690
12693
|
}),
|
|
12691
12694
|
_: 1
|
|
12692
12695
|
}, 8, ["text"]),
|
|
12693
|
-
|
|
12696
|
+
u(L, {
|
|
12694
12697
|
text: t.$t("weather.currentDirection"),
|
|
12695
12698
|
location: "top"
|
|
12696
12699
|
}, {
|
|
12697
|
-
activator: f(({ props:
|
|
12698
|
-
var
|
|
12700
|
+
activator: f(({ props: p }) => {
|
|
12701
|
+
var z, T;
|
|
12699
12702
|
return [
|
|
12700
|
-
|
|
12703
|
+
u(b, B(p, {
|
|
12701
12704
|
class: "pa-1 d-flex",
|
|
12702
|
-
color: (
|
|
12705
|
+
color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
|
|
12703
12706
|
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
12704
12707
|
height: "24",
|
|
12705
12708
|
width: "24",
|
|
@@ -12707,7 +12710,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12707
12710
|
onClick: e[6] || (e[6] = (O) => r.handleClickFastWeather("current-direction"))
|
|
12708
12711
|
}), {
|
|
12709
12712
|
default: f(() => [
|
|
12710
|
-
s("i", B(
|
|
12713
|
+
s("i", B(p, { class: "iconfont icon-Current" }), null, 16)
|
|
12711
12714
|
]),
|
|
12712
12715
|
_: 2
|
|
12713
12716
|
}, 1040, ["color", "variant"])
|
|
@@ -12715,12 +12718,12 @@ function dd(t, e, o, i, a, r) {
|
|
|
12715
12718
|
}),
|
|
12716
12719
|
_: 1
|
|
12717
12720
|
}, 8, ["text"]),
|
|
12718
|
-
|
|
12721
|
+
u(L, {
|
|
12719
12722
|
text: t.$t("weather.weatherLayers"),
|
|
12720
12723
|
location: "top"
|
|
12721
12724
|
}, {
|
|
12722
|
-
activator: f(({ props:
|
|
12723
|
-
|
|
12725
|
+
activator: f(({ props: p }) => [
|
|
12726
|
+
u(b, B(p, {
|
|
12724
12727
|
class: "pa-1 d-flex",
|
|
12725
12728
|
variant: "text",
|
|
12726
12729
|
height: "24",
|
|
@@ -12729,7 +12732,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12729
12732
|
onClick: r.handleClickFastMore
|
|
12730
12733
|
}), {
|
|
12731
12734
|
default: f(() => [
|
|
12732
|
-
s("i", B(
|
|
12735
|
+
s("i", B(p, { class: "iconfont icon-dots-align" }), null, 16)
|
|
12733
12736
|
]),
|
|
12734
12737
|
_: 2
|
|
12735
12738
|
}, 1040, ["onClick"])
|
|
@@ -12737,34 +12740,34 @@ function dd(t, e, o, i, a, r) {
|
|
|
12737
12740
|
_: 1
|
|
12738
12741
|
}, 8, ["text"])
|
|
12739
12742
|
]),
|
|
12740
|
-
|
|
12743
|
+
u(w, {
|
|
12741
12744
|
vertical: "",
|
|
12742
12745
|
class: "mx-2 mr-3 my-3",
|
|
12743
12746
|
style: { height: "16px" }
|
|
12744
12747
|
}),
|
|
12745
12748
|
s("div", sd, [
|
|
12746
|
-
|
|
12749
|
+
u(b, {
|
|
12747
12750
|
text: "",
|
|
12748
12751
|
height: "30",
|
|
12749
12752
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
12750
12753
|
color: a.source === "GFS" ? "primary" : "",
|
|
12751
|
-
onClick: e[7] || (e[7] = (
|
|
12754
|
+
onClick: e[7] || (e[7] = (p) => a.source = "GFS")
|
|
12752
12755
|
}, {
|
|
12753
12756
|
default: f(() => e[16] || (e[16] = [
|
|
12754
|
-
|
|
12757
|
+
J("NOAA", -1)
|
|
12755
12758
|
])),
|
|
12756
12759
|
_: 1,
|
|
12757
12760
|
__: [16]
|
|
12758
12761
|
}, 8, ["color"]),
|
|
12759
|
-
|
|
12762
|
+
u(b, {
|
|
12760
12763
|
text: "",
|
|
12761
12764
|
height: "30",
|
|
12762
12765
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
12763
12766
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
12764
|
-
onClick: e[8] || (e[8] = (
|
|
12767
|
+
onClick: e[8] || (e[8] = (p) => a.source = "ECMWF")
|
|
12765
12768
|
}, {
|
|
12766
12769
|
default: f(() => e[17] || (e[17] = [
|
|
12767
|
-
|
|
12770
|
+
J("ECMWF", -1)
|
|
12768
12771
|
])),
|
|
12769
12772
|
_: 1,
|
|
12770
12773
|
__: [17]
|
|
@@ -12776,23 +12779,23 @@ function dd(t, e, o, i, a, r) {
|
|
|
12776
12779
|
style: ae({ right: a.right + "px" })
|
|
12777
12780
|
}, [
|
|
12778
12781
|
a.showTimezone ? (y(), M("div", ld, [
|
|
12779
|
-
(y(!0), M(be, null, we(a.offsets, (
|
|
12780
|
-
key:
|
|
12782
|
+
(y(!0), M(be, null, we(a.offsets, (p) => (y(), M("div", {
|
|
12783
|
+
key: p,
|
|
12781
12784
|
class: "item rounded text-body-2 hover-active",
|
|
12782
|
-
onClick: (
|
|
12783
|
-
}, m(
|
|
12785
|
+
onClick: (z) => a.timeZone = p
|
|
12786
|
+
}, m(p < 0 ? p : "+" + p), 9, nd))), 128))
|
|
12784
12787
|
])) : D("", !0),
|
|
12785
12788
|
s("div", cd, [
|
|
12786
|
-
|
|
12789
|
+
u(b, {
|
|
12787
12790
|
text: "",
|
|
12788
12791
|
variant: "flat",
|
|
12789
12792
|
height: "28",
|
|
12790
12793
|
class: "pa-1 text-body-1",
|
|
12791
12794
|
color: "primary",
|
|
12792
|
-
onClick: e[9] || (e[9] = (
|
|
12795
|
+
onClick: e[9] || (e[9] = (p) => a.showTimezone = !a.showTimezone)
|
|
12793
12796
|
}, {
|
|
12794
12797
|
default: f(() => [
|
|
12795
|
-
|
|
12798
|
+
J(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12796
12799
|
]),
|
|
12797
12800
|
_: 1
|
|
12798
12801
|
}),
|
|
@@ -12865,9 +12868,9 @@ const hd = /* @__PURE__ */ q(td, [["render", dd]]), pd = {
|
|
|
12865
12868
|
class: "map-gl4-home"
|
|
12866
12869
|
};
|
|
12867
12870
|
function gd(t, e, o, i, a, r) {
|
|
12868
|
-
const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"),
|
|
12871
|
+
const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
|
|
12869
12872
|
return y(), M("div", ud, [
|
|
12870
|
-
|
|
12873
|
+
u(l, B({
|
|
12871
12874
|
ref: "idmOtherLayers",
|
|
12872
12875
|
token: o.token,
|
|
12873
12876
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12882,7 +12885,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
12882
12885
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12883
12886
|
})
|
|
12884
12887
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12885
|
-
|
|
12888
|
+
u(c, B({
|
|
12886
12889
|
ref: "idmWeatherLayers",
|
|
12887
12890
|
map: o.map,
|
|
12888
12891
|
"before-layer": "empty-layer-2",
|
|
@@ -12900,7 +12903,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
12900
12903
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12901
12904
|
})
|
|
12902
12905
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12903
|
-
|
|
12906
|
+
u(n, B({
|
|
12904
12907
|
map: o.map,
|
|
12905
12908
|
token: o.token,
|
|
12906
12909
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12911,11 +12914,11 @@ function gd(t, e, o, i, a, r) {
|
|
|
12911
12914
|
"forecast-model": o.forecastModel,
|
|
12912
12915
|
"map-feather": o.mapFeather
|
|
12913
12916
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12914
|
-
|
|
12917
|
+
u(g, B({
|
|
12915
12918
|
map: o.map,
|
|
12916
12919
|
"map-feather": o.mapFeather
|
|
12917
12920
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12918
|
-
|
|
12921
|
+
u(h, B({
|
|
12919
12922
|
ref: "idmSpot",
|
|
12920
12923
|
map: o.map,
|
|
12921
12924
|
token: o.token,
|
|
@@ -12924,7 +12927,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
12924
12927
|
"forecast-model": o.forecastModel,
|
|
12925
12928
|
"map-feather": o.mapFeather
|
|
12926
12929
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
12927
|
-
|
|
12930
|
+
u(b, B({
|
|
12928
12931
|
ref: "idmBottomBar",
|
|
12929
12932
|
"forecast-model": o.forecastModel,
|
|
12930
12933
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12935,13 +12938,13 @@ function gd(t, e, o, i, a, r) {
|
|
|
12935
12938
|
const fd = /* @__PURE__ */ q(pd, [["render", gd]]);
|
|
12936
12939
|
class yd {
|
|
12937
12940
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
var o, i, a, r, l, c, n,
|
|
12941
|
+
he(this, "originStyle");
|
|
12942
|
+
he(this, "mapboxStyle");
|
|
12943
|
+
he(this, "i4");
|
|
12944
|
+
he(this, "hi");
|
|
12945
|
+
he(this, "td");
|
|
12946
|
+
he(this, "windy");
|
|
12947
|
+
var o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, 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, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa, Va;
|
|
12945
12948
|
this.i4 = {
|
|
12946
12949
|
source: {
|
|
12947
12950
|
type: "raster",
|
|
@@ -31585,29 +31588,29 @@ class yd {
|
|
|
31585
31588
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
|
|
31586
31589
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
|
|
31587
31590
|
(c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
|
|
31588
|
-
(
|
|
31591
|
+
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((d) => d.id === "ice-area-line"),
|
|
31589
31592
|
(b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
|
|
31590
|
-
(
|
|
31591
|
-
(
|
|
31593
|
+
(L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((d) => d.id === "loadlines-fill"),
|
|
31594
|
+
(z = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
|
|
31592
31595
|
(O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
|
|
31593
|
-
(
|
|
31594
|
-
(v = (
|
|
31595
|
-
(
|
|
31596
|
+
(P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
|
|
31597
|
+
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
|
|
31598
|
+
(_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((d) => d.id === "water-outline2"),
|
|
31596
31599
|
(N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
|
|
31597
|
-
(Y = (
|
|
31598
|
-
(ee = (
|
|
31599
|
-
($ = (
|
|
31600
|
-
(
|
|
31601
|
-
(
|
|
31602
|
-
(
|
|
31603
|
-
(
|
|
31604
|
-
(
|
|
31600
|
+
(Y = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Y.find((d) => d.id === "water-line-label"),
|
|
31601
|
+
(ee = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31602
|
+
($ = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31603
|
+
(le = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : le.find((d) => d.id === "ne-10m-outline"),
|
|
31604
|
+
(K = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : K.find((d) => d.id === "ne-10m-label"),
|
|
31605
|
+
(pe = (ie = this.originStyle) == null ? void 0 : ie.light.layers) == null ? void 0 : pe.find((d) => d.id === "china-route-line"),
|
|
31606
|
+
(ue = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ue.find((d) => d.id === "china-route-fill"),
|
|
31607
|
+
(se = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : se.find((d) => d.id === "china-route-label"),
|
|
31605
31608
|
(Pe = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Pe.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31606
31609
|
(De = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31607
31610
|
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31608
31611
|
(G = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : G.find((d) => d.id === "country-label"),
|
|
31609
31612
|
(Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((d) => d.id === "continent-label"),
|
|
31610
|
-
(
|
|
31613
|
+
(ge = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : ge.find((d) => d.id === "tide-stations"),
|
|
31611
31614
|
(U = (Te = this.originStyle) == null ? void 0 : Te.light.layers) == null ? void 0 : U.find((d) => d.id === "empty-layer-3"),
|
|
31612
31615
|
(oe = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : oe.find((d) => d.id === "empty-layer-4")
|
|
31613
31616
|
]
|
|
@@ -31910,7 +31913,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
31910
31913
|
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31911
31914
|
}, [
|
|
31912
31915
|
s("div", xd, [
|
|
31913
|
-
|
|
31916
|
+
u(l, {
|
|
31914
31917
|
"min-width": "32",
|
|
31915
31918
|
width: "32",
|
|
31916
31919
|
height: "32",
|
|
@@ -31924,7 +31927,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
31924
31927
|
__: [0]
|
|
31925
31928
|
}, 8, ["onClick"]),
|
|
31926
31929
|
s("div", vd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
31927
|
-
|
|
31930
|
+
u(l, {
|
|
31928
31931
|
"min-width": "32",
|
|
31929
31932
|
width: "32",
|
|
31930
31933
|
height: "32",
|
|
@@ -32135,9 +32138,9 @@ const Ld = {
|
|
|
32135
32138
|
ref: "idmGl4DatePicker"
|
|
32136
32139
|
}, Cd = { class: "pa-0" };
|
|
32137
32140
|
function Td(t, e, o, i, a, r) {
|
|
32138
|
-
const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"),
|
|
32141
|
+
const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), g = x("VDivider"), h = x("VCardActions"), b = x("VCard");
|
|
32139
32142
|
return y(), M("div", Pd, [
|
|
32140
|
-
|
|
32143
|
+
u(l, {
|
|
32141
32144
|
text: "",
|
|
32142
32145
|
height: o.height,
|
|
32143
32146
|
width: o.width,
|
|
@@ -32145,7 +32148,7 @@ function Td(t, e, o, i, a, r) {
|
|
|
32145
32148
|
onClick: r.handleOpenDatePicker
|
|
32146
32149
|
}, {
|
|
32147
32150
|
default: f(() => [
|
|
32148
|
-
|
|
32151
|
+
J(m(a.dateRangeStr), 1)
|
|
32149
32152
|
]),
|
|
32150
32153
|
_: 1
|
|
32151
32154
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -32155,10 +32158,10 @@ function Td(t, e, o, i, a, r) {
|
|
|
32155
32158
|
style: ae(r.getStyle)
|
|
32156
32159
|
}, {
|
|
32157
32160
|
default: f(() => [
|
|
32158
|
-
|
|
32161
|
+
u(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
32159
32162
|
default: f(() => [
|
|
32160
32163
|
s("div", Cd, [
|
|
32161
|
-
|
|
32164
|
+
u(c, {
|
|
32162
32165
|
modelValue: a.dateRange,
|
|
32163
32166
|
"onUpdate:modelValue": e[0] || (e[0] = (w) => a.dateRange = w),
|
|
32164
32167
|
min: a.minDate,
|
|
@@ -32176,25 +32179,25 @@ function Td(t, e, o, i, a, r) {
|
|
|
32176
32179
|
]),
|
|
32177
32180
|
_: 1
|
|
32178
32181
|
}),
|
|
32179
|
-
|
|
32180
|
-
|
|
32182
|
+
u(g),
|
|
32183
|
+
u(h, {
|
|
32181
32184
|
class: "justify-end pa-0 pr-4",
|
|
32182
32185
|
style: { height: "50px" }
|
|
32183
32186
|
}, {
|
|
32184
32187
|
default: f(() => [
|
|
32185
|
-
|
|
32188
|
+
u(l, {
|
|
32186
32189
|
size: "small",
|
|
32187
32190
|
variant: "tonal",
|
|
32188
32191
|
class: "text-none text-body-2",
|
|
32189
32192
|
onClick: r.handleCancelDate
|
|
32190
32193
|
}, {
|
|
32191
32194
|
default: f(() => e[1] || (e[1] = [
|
|
32192
|
-
|
|
32195
|
+
J("Cancel", -1)
|
|
32193
32196
|
])),
|
|
32194
32197
|
_: 1,
|
|
32195
32198
|
__: [1]
|
|
32196
32199
|
}, 8, ["onClick"]),
|
|
32197
|
-
|
|
32200
|
+
u(l, {
|
|
32198
32201
|
size: "small",
|
|
32199
32202
|
variant: "flat",
|
|
32200
32203
|
color: "primary",
|
|
@@ -32202,7 +32205,7 @@ function Td(t, e, o, i, a, r) {
|
|
|
32202
32205
|
onClick: r.handleConfirmDate
|
|
32203
32206
|
}, {
|
|
32204
32207
|
default: f(() => e[2] || (e[2] = [
|
|
32205
|
-
|
|
32208
|
+
J("Confirm", -1)
|
|
32206
32209
|
])),
|
|
32207
32210
|
_: 1,
|
|
32208
32211
|
__: [2]
|
|
@@ -32232,5 +32235,5 @@ export {
|
|
|
32232
32235
|
Xa as TropicalGL,
|
|
32233
32236
|
Do as Viewport,
|
|
32234
32237
|
Ne as WebGL,
|
|
32235
|
-
|
|
32238
|
+
ne as WebGLSchema
|
|
32236
32239
|
};
|