@idmwx/idmui-gl4 0.5.5 → 0.5.7
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 +773 -762
- package/dist/index.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,12 +2,12 @@ var Vo = Object.defineProperty;
|
|
|
2
2
|
var Yo = (o, e, t) => e in o ? Vo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var le = (o, e, t) => (Yo(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import Ie from "axios";
|
|
5
|
-
import { openBlock as
|
|
5
|
+
import { openBlock as b, createElementBlock as M, withDirectives as He, createElementVNode as l, vShow as Ge, toDisplayString as S, normalizeStyle as Q, resolveComponent as x, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as je, createTextVNode as U, Fragment as fe, renderList as _e, createBlock as V, createCommentVNode as j, withModifiers as Zo } from "vue";
|
|
6
6
|
import Pe from "mapbox-gl";
|
|
7
7
|
import { LngLatHelper as ae, TropicalHelper as Ho, LaneHelper as Be } from "@idm-plugin/geo";
|
|
8
8
|
import * as F from "@turf/turf";
|
|
9
9
|
import { LayerHelper as Ve, CompanyHelper as Xo } from "@idm-plugin/tag-nop";
|
|
10
|
-
import
|
|
10
|
+
import O from "moment";
|
|
11
11
|
import qo from "@mapbox/sphericalmercator";
|
|
12
12
|
import { LayerHelper as Ko } from "@idm-plugin/tag";
|
|
13
13
|
import { Meteo2Assist as qe } from "@idm-plugin/meteo";
|
|
@@ -109,7 +109,7 @@ const X = (o, e) => {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
function $o(o, e, t, i, a, r) {
|
|
112
|
-
return
|
|
112
|
+
return b(), M("div");
|
|
113
113
|
}
|
|
114
114
|
const ea = /* @__PURE__ */ X(Qo, [["render", $o]]), ta = {
|
|
115
115
|
name: "IdmGmdssArea",
|
|
@@ -233,7 +233,7 @@ const ea = /* @__PURE__ */ X(Qo, [["render", $o]]), ta = {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
function oa(o, e, t, i, a, r) {
|
|
236
|
-
return
|
|
236
|
+
return b(), M("div");
|
|
237
237
|
}
|
|
238
238
|
const aa = /* @__PURE__ */ X(ta, [["render", oa]]), ia = {
|
|
239
239
|
name: "IdmEcaZone",
|
|
@@ -328,7 +328,7 @@ const aa = /* @__PURE__ */ X(ta, [["render", oa]]), ia = {
|
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
function ra(o, e, t, i, a, r) {
|
|
331
|
-
return
|
|
331
|
+
return b(), M("div");
|
|
332
332
|
}
|
|
333
333
|
const la = /* @__PURE__ */ X(ia, [["render", ra]]);
|
|
334
334
|
const sa = {
|
|
@@ -465,7 +465,7 @@ const sa = {
|
|
|
465
465
|
}, na = { id: "idm-gl4-zone-info" }, ca = ["innerHTML"];
|
|
466
466
|
function ma(o, e, t, i, a, r) {
|
|
467
467
|
var s;
|
|
468
|
-
return He((
|
|
468
|
+
return He((b(), M("div", na, [
|
|
469
469
|
l("div", {
|
|
470
470
|
class: "iconfont close",
|
|
471
471
|
onClick: e[0] || (e[0] = (c) => a.showZone = !1)
|
|
@@ -583,7 +583,7 @@ const da = {
|
|
|
583
583
|
style: { "align-items": "flex-start" }
|
|
584
584
|
}, wa = { class: "meteo-forecast flex-end" };
|
|
585
585
|
function xa(o, e, t, i, a, r) {
|
|
586
|
-
return He((
|
|
586
|
+
return He((b(), M("div", pa, [
|
|
587
587
|
l("div", {
|
|
588
588
|
class: "close iconfont",
|
|
589
589
|
onClick: e[0] || (e[0] = (s) => a.showPort = !1)
|
|
@@ -591,19 +591,19 @@ function xa(o, e, t, i, a, r) {
|
|
|
591
591
|
l("div", ua, [
|
|
592
592
|
l("div", ga, [
|
|
593
593
|
e[2] || (e[2] = l("label", null, "Name : ", -1)),
|
|
594
|
-
l("span", null,
|
|
594
|
+
l("span", null, S(a.form.name), 1)
|
|
595
595
|
]),
|
|
596
596
|
l("div", fa, [
|
|
597
597
|
e[3] || (e[3] = l("label", null, "Position : ", -1)),
|
|
598
|
-
l("span", null,
|
|
598
|
+
l("span", null, S(r.computeLat(a.form.lat)) + ", " + S(r.computeLng(a.form.lng)), 1)
|
|
599
599
|
]),
|
|
600
600
|
l("div", ba, [
|
|
601
601
|
e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
|
|
602
|
-
l("span", null,
|
|
602
|
+
l("span", null, S(a.form.loCode || "-"), 1)
|
|
603
603
|
]),
|
|
604
604
|
l("div", ya, [
|
|
605
605
|
e[5] || (e[5] = l("label", null, "Region : ", -1)),
|
|
606
|
-
l("span", null,
|
|
606
|
+
l("span", null, S(a.form.zoneName || "-"), 1)
|
|
607
607
|
]),
|
|
608
608
|
l("div", wa, [
|
|
609
609
|
l("span", {
|
|
@@ -687,7 +687,7 @@ const va = /* @__PURE__ */ X(da, [["render", xa], ["__scopeId", "data-v-62f79fef
|
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
689
|
function ka(o, e, t, i, a, r) {
|
|
690
|
-
return
|
|
690
|
+
return b(), M("div");
|
|
691
691
|
}
|
|
692
692
|
const za = /* @__PURE__ */ X(_a, [["render", ka]]), La = {
|
|
693
693
|
name: "IdmTimezone",
|
|
@@ -856,7 +856,7 @@ const za = /* @__PURE__ */ X(_a, [["render", ka]]), La = {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
function Pa(o, e, t, i, a, r) {
|
|
859
|
-
return
|
|
859
|
+
return b(), M("div");
|
|
860
860
|
}
|
|
861
861
|
const Ca = /* @__PURE__ */ X(La, [["render", Pa]]), Sa = {
|
|
862
862
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -948,7 +948,7 @@ const Ca = /* @__PURE__ */ X(La, [["render", Pa]]), Sa = {
|
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
function Ma(o, e, t, i, a, r) {
|
|
951
|
-
return
|
|
951
|
+
return b(), M("div");
|
|
952
952
|
}
|
|
953
953
|
const Ta = /* @__PURE__ */ X(Sa, [["render", Ma]]), Ra = {
|
|
954
954
|
name: "IdmSpecialArea",
|
|
@@ -1042,7 +1042,7 @@ const Ta = /* @__PURE__ */ X(Sa, [["render", Ma]]), Ra = {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
1044
|
function Ia(o, e, t, i, a, r) {
|
|
1045
|
-
return
|
|
1045
|
+
return b(), M("div");
|
|
1046
1046
|
}
|
|
1047
1047
|
const Aa = /* @__PURE__ */ X(Ra, [["render", Ia]]), Da = {
|
|
1048
1048
|
name: "IdmTerminator",
|
|
@@ -1104,7 +1104,7 @@ const Aa = /* @__PURE__ */ X(Ra, [["render", Ia]]), Da = {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
};
|
|
1106
1106
|
function Oa(o, e, t, i, a, r) {
|
|
1107
|
-
return
|
|
1107
|
+
return b(), M("div");
|
|
1108
1108
|
}
|
|
1109
1109
|
const Ba = /* @__PURE__ */ X(Da, [["render", Oa]]), ja = {
|
|
1110
1110
|
name: "IdmWorld12nm",
|
|
@@ -1415,13 +1415,13 @@ const Ya = {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
function Za(o, e, t, i, a, r) {
|
|
1417
1417
|
var s, c, n, p, d;
|
|
1418
|
-
return
|
|
1418
|
+
return b(), M("div", {
|
|
1419
1419
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1420
1420
|
style: Q({ right: a.right + "px" })
|
|
1421
1421
|
}, [
|
|
1422
|
-
l("div", null,
|
|
1423
|
-
l("div", null,
|
|
1424
|
-
l("div", null,
|
|
1422
|
+
l("div", null, S((c = (s = a.lngLat) == null ? void 0 : s.lat) == null ? void 0 : c.pretty), 1),
|
|
1423
|
+
l("div", null, S((p = (n = a.lngLat) == null ? void 0 : n.lng) == null ? void 0 : p.pretty), 1),
|
|
1424
|
+
l("div", null, S((d = a.lngLat) == null ? void 0 : d.str), 1)
|
|
1425
1425
|
], 4);
|
|
1426
1426
|
}
|
|
1427
1427
|
const Wo = /* @__PURE__ */ X(Ya, [["render", Za]]);
|
|
@@ -1596,9 +1596,9 @@ const Xa = {
|
|
|
1596
1596
|
})
|
|
1597
1597
|
);
|
|
1598
1598
|
(await Promise.all(p)).map((m) => {
|
|
1599
|
-
var
|
|
1600
|
-
const
|
|
1601
|
-
this.otherLayers[
|
|
1599
|
+
var w, C, P;
|
|
1600
|
+
const f = ((w = m == null ? void 0 : m.data) == null ? void 0 : w.data) || (m == null ? void 0 : m.data), y = (P = (C = m == null ? void 0 : m.config) == null ? void 0 : C.headers) == null ? void 0 : P.key;
|
|
1601
|
+
this.otherLayers[y] = f;
|
|
1602
1602
|
});
|
|
1603
1603
|
}
|
|
1604
1604
|
} else if (o.dayNight && e & 1024) {
|
|
@@ -1619,9 +1619,9 @@ const Xa = {
|
|
|
1619
1619
|
})
|
|
1620
1620
|
);
|
|
1621
1621
|
(await Promise.all(p)).map((m) => {
|
|
1622
|
-
var
|
|
1623
|
-
const
|
|
1624
|
-
this.otherLayers[
|
|
1622
|
+
var w, C, P;
|
|
1623
|
+
const f = ((w = m == null ? void 0 : m.data) == null ? void 0 : w.data) || (m == null ? void 0 : m.data), y = (P = (C = m == null ? void 0 : m.config) == null ? void 0 : C.headers) == null ? void 0 : P.key;
|
|
1624
|
+
this.otherLayers[y] = f;
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
@@ -1653,8 +1653,8 @@ const Xa = {
|
|
|
1653
1653
|
}, ri = { class: "text-body-2 text-center pt-1" }, li = { class: "layers-body" }, si = { class: "layers-body" }, ni = { class: "layers-body" }, ci = { class: "layers-body" };
|
|
1654
1654
|
function mi(o, e, t, i, a, r) {
|
|
1655
1655
|
var G, W, $, ee, K, se, me, pe, he, q;
|
|
1656
|
-
const s =
|
|
1657
|
-
return
|
|
1656
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), p = x("VCardItem"), d = x("VCheckbox"), m = x("VCardText"), f = x("VCard"), y = x("IdmWorld12nm"), w = x("IdmWorldMarine"), C = x("IdmChinaRoute"), P = x("IdmWarZone"), A = x("IdmGmdssArea"), T = x("IdmEcaZone"), z = x("IdmAlertZone"), _ = x("IdmPort"), k = x("IdmLoadLine"), L = x("IdmTimezone"), v = x("IdmVRA"), R = x("IdmSpecialArea"), H = x("IdmTerminator"), Y = x("IdmLatLng");
|
|
1657
|
+
return b(), M("div", qa, [
|
|
1658
1658
|
l("div", {
|
|
1659
1659
|
class: "menu-bar-box transition px-1 rounded",
|
|
1660
1660
|
style: Q({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
@@ -1664,7 +1664,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1664
1664
|
location: "left"
|
|
1665
1665
|
}, {
|
|
1666
1666
|
activator: g(({ props: I }) => [
|
|
1667
|
-
h(s,
|
|
1667
|
+
h(s, E(I, {
|
|
1668
1668
|
"min-width": "32",
|
|
1669
1669
|
width: "32",
|
|
1670
1670
|
height: "32",
|
|
@@ -1687,7 +1687,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1687
1687
|
style: Q({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
1688
1688
|
}, [
|
|
1689
1689
|
l("div", Ka, [
|
|
1690
|
-
l("div", Ja,
|
|
1690
|
+
l("div", Ja, S(o.$t("layer.layers")), 1),
|
|
1691
1691
|
h(s, {
|
|
1692
1692
|
icon: "",
|
|
1693
1693
|
density: "comfortable",
|
|
@@ -1706,7 +1706,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1706
1706
|
}, 8, ["onClick"])
|
|
1707
1707
|
]),
|
|
1708
1708
|
l("div", Qa, [
|
|
1709
|
-
h(
|
|
1709
|
+
h(f, {
|
|
1710
1710
|
class: "menu-card mx-auto my-3",
|
|
1711
1711
|
elevation: "8"
|
|
1712
1712
|
}, {
|
|
@@ -1718,7 +1718,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1718
1718
|
style: { "font-size": "16px !important" }
|
|
1719
1719
|
}, {
|
|
1720
1720
|
default: g(() => [
|
|
1721
|
-
U(
|
|
1721
|
+
U(S(o.$t("layer.mapFeathers")), 1)
|
|
1722
1722
|
]),
|
|
1723
1723
|
_: 1
|
|
1724
1724
|
})
|
|
@@ -1728,7 +1728,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1728
1728
|
h(m, null, {
|
|
1729
1729
|
default: g(() => [
|
|
1730
1730
|
l("div", $a, [
|
|
1731
|
-
(
|
|
1731
|
+
(b(!0), M(fe, null, _e(a.mapFeathers, (I) => (b(), M("div", {
|
|
1732
1732
|
key: I.value,
|
|
1733
1733
|
class: "mb-2 feather-item",
|
|
1734
1734
|
onClick: (ne) => r.handleToggleMapFeather(I)
|
|
@@ -1736,13 +1736,13 @@ function mi(o, e, t, i, a, r) {
|
|
|
1736
1736
|
l("div", {
|
|
1737
1737
|
class: je([a.mapFeather === I.value ? "active" : "", "img-box"])
|
|
1738
1738
|
}, [
|
|
1739
|
-
I.value === "dark" ? (
|
|
1739
|
+
I.value === "dark" ? (b(), M("img", ti)) : I.value === "nautical" ? (b(), M("img", oi)) : I.value === "satellite" ? (b(), M("img", ai)) : (b(), M("img", ii))
|
|
1740
1740
|
], 2),
|
|
1741
|
-
l("div", ri,
|
|
1741
|
+
l("div", ri, S(o.$t(`layer.${I.locale}`)), 1)
|
|
1742
1742
|
], 8, ei))), 128))
|
|
1743
1743
|
]),
|
|
1744
1744
|
l("div", li, [
|
|
1745
|
-
(
|
|
1745
|
+
(b(!0), M(fe, null, _e(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (b(), V(d, {
|
|
1746
1746
|
key: I.key,
|
|
1747
1747
|
modelValue: a.checkList,
|
|
1748
1748
|
"onUpdate:modelValue": e[0] || (e[0] = (ne) => a.checkList = ne),
|
|
@@ -1761,7 +1761,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1761
1761
|
]),
|
|
1762
1762
|
_: 1
|
|
1763
1763
|
}),
|
|
1764
|
-
h(
|
|
1764
|
+
h(f, {
|
|
1765
1765
|
class: "menu-card mx-auto mb-3",
|
|
1766
1766
|
elevation: "8"
|
|
1767
1767
|
}, {
|
|
@@ -1773,7 +1773,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1773
1773
|
style: { "font-size": "16px !important" }
|
|
1774
1774
|
}, {
|
|
1775
1775
|
default: g(() => [
|
|
1776
|
-
U(
|
|
1776
|
+
U(S(o.$t("layer.pointsOfInteresting")), 1)
|
|
1777
1777
|
]),
|
|
1778
1778
|
_: 1
|
|
1779
1779
|
})
|
|
@@ -1783,7 +1783,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1783
1783
|
h(m, null, {
|
|
1784
1784
|
default: g(() => [
|
|
1785
1785
|
l("div", si, [
|
|
1786
|
-
(
|
|
1786
|
+
(b(!0), M(fe, null, _e(a.tagLayers.filter((I) => ["ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (b(), V(d, {
|
|
1787
1787
|
key: I.key,
|
|
1788
1788
|
modelValue: a.checkList,
|
|
1789
1789
|
"onUpdate:modelValue": e[1] || (e[1] = (ne) => a.checkList = ne),
|
|
@@ -1802,7 +1802,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1802
1802
|
]),
|
|
1803
1803
|
_: 1
|
|
1804
1804
|
}),
|
|
1805
|
-
h(
|
|
1805
|
+
h(f, {
|
|
1806
1806
|
class: "menu-card mx-auto mb-3",
|
|
1807
1807
|
elevation: "8"
|
|
1808
1808
|
}, {
|
|
@@ -1814,7 +1814,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1814
1814
|
style: { "font-size": "16px !important" }
|
|
1815
1815
|
}, {
|
|
1816
1816
|
default: g(() => [
|
|
1817
|
-
U(
|
|
1817
|
+
U(S(o.$t("layer.otherLayers")), 1)
|
|
1818
1818
|
]),
|
|
1819
1819
|
_: 1
|
|
1820
1820
|
})
|
|
@@ -1824,7 +1824,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1824
1824
|
h(m, null, {
|
|
1825
1825
|
default: g(() => [
|
|
1826
1826
|
l("div", ni, [
|
|
1827
|
-
(
|
|
1827
|
+
(b(!0), M(fe, null, _e(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (b(), V(d, {
|
|
1828
1828
|
key: I.key,
|
|
1829
1829
|
modelValue: a.checkList,
|
|
1830
1830
|
"onUpdate:modelValue": e[2] || (e[2] = (ne) => a.checkList = ne),
|
|
@@ -1843,7 +1843,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1843
1843
|
]),
|
|
1844
1844
|
_: 1
|
|
1845
1845
|
}),
|
|
1846
|
-
h(
|
|
1846
|
+
h(f, {
|
|
1847
1847
|
class: "menu-card mx-auto mb-3",
|
|
1848
1848
|
elevation: "8"
|
|
1849
1849
|
}, {
|
|
@@ -1855,7 +1855,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1855
1855
|
style: { "font-size": "16px !important" }
|
|
1856
1856
|
}, {
|
|
1857
1857
|
default: g(() => [
|
|
1858
|
-
U(
|
|
1858
|
+
U(S(o.$t("layer.myFollows")), 1)
|
|
1859
1859
|
]),
|
|
1860
1860
|
_: 1
|
|
1861
1861
|
})
|
|
@@ -1896,82 +1896,82 @@ function mi(o, e, t, i, a, r) {
|
|
|
1896
1896
|
})
|
|
1897
1897
|
])
|
|
1898
1898
|
], 6),
|
|
1899
|
-
t.map ? (
|
|
1899
|
+
t.map ? (b(), V(y, E({
|
|
1900
1900
|
key: 0,
|
|
1901
1901
|
map: t.map,
|
|
1902
1902
|
token: t.token,
|
|
1903
1903
|
show: a.checkList.includes("world12nm")
|
|
1904
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1905
|
-
t.map ? (
|
|
1904
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : j("", !0),
|
|
1905
|
+
t.map ? (b(), V(w, E({
|
|
1906
1906
|
key: 1,
|
|
1907
1907
|
map: t.map,
|
|
1908
1908
|
token: t.token,
|
|
1909
1909
|
show: a.checkList.includes("worldMarine")
|
|
1910
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1911
|
-
t.map ? (
|
|
1910
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : j("", !0),
|
|
1911
|
+
t.map ? (b(), V(C, E({
|
|
1912
1912
|
key: 2,
|
|
1913
1913
|
map: t.map,
|
|
1914
1914
|
token: t.token,
|
|
1915
1915
|
show: a.checkList.includes("chinaRoute")
|
|
1916
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1917
|
-
t.map ? (
|
|
1916
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : j("", !0),
|
|
1917
|
+
t.map ? (b(), V(P, E({
|
|
1918
1918
|
key: 3,
|
|
1919
1919
|
map: t.map,
|
|
1920
1920
|
zone: (G = a.otherLayers) == null ? void 0 : G["war-zones"]
|
|
1921
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1922
|
-
t.map ? (
|
|
1921
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : j("", !0),
|
|
1922
|
+
t.map ? (b(), V(A, E({
|
|
1923
1923
|
key: 4,
|
|
1924
1924
|
map: t.map,
|
|
1925
1925
|
area: (W = a.otherLayers) == null ? void 0 : W["gmdss-areas"]
|
|
1926
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1927
|
-
t.map ? (
|
|
1926
|
+
}, o.$attrs), null, 16, ["map", "area"])) : j("", !0),
|
|
1927
|
+
t.map ? (b(), V(T, E({
|
|
1928
1928
|
key: 5,
|
|
1929
1929
|
map: t.map,
|
|
1930
1930
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1931
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1932
|
-
t.map ? (
|
|
1931
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : j("", !0),
|
|
1932
|
+
t.map ? (b(), V(z, E({
|
|
1933
1933
|
key: 6,
|
|
1934
1934
|
map: t.map,
|
|
1935
1935
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
|
|
1936
1936
|
"before-layer": "empty-layer-3"
|
|
1937
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1938
|
-
t.map ? (
|
|
1937
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : j("", !0),
|
|
1938
|
+
t.map ? (b(), V(_, E({
|
|
1939
1939
|
key: 7,
|
|
1940
1940
|
map: t.map,
|
|
1941
1941
|
port: (K = a.otherLayers) == null ? void 0 : K.ports,
|
|
1942
1942
|
"forecast-model": t.forecastModel
|
|
1943
|
-
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) :
|
|
1944
|
-
t.map ? (
|
|
1943
|
+
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : j("", !0),
|
|
1944
|
+
t.map ? (b(), V(k, E({
|
|
1945
1945
|
key: 8,
|
|
1946
1946
|
map: t.map,
|
|
1947
1947
|
line: (se = a.otherLayers) == null ? void 0 : se["load-lines"]
|
|
1948
|
-
}, o.$attrs), null, 16, ["map", "line"])) :
|
|
1949
|
-
t.map ? (
|
|
1948
|
+
}, o.$attrs), null, 16, ["map", "line"])) : j("", !0),
|
|
1949
|
+
t.map ? (b(), V(L, E({
|
|
1950
1950
|
key: 9,
|
|
1951
1951
|
map: t.map,
|
|
1952
1952
|
zone: (me = a.otherLayers) == null ? void 0 : me["time-zones"]
|
|
1953
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1954
|
-
t.map ? (
|
|
1953
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : j("", !0),
|
|
1954
|
+
t.map ? (b(), V(v, E({
|
|
1955
1955
|
key: 10,
|
|
1956
1956
|
map: t.map,
|
|
1957
1957
|
area: (pe = a.otherLayers) == null ? void 0 : pe["voluntary-reporting-area"]
|
|
1958
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1959
|
-
t.map ? (
|
|
1958
|
+
}, o.$attrs), null, 16, ["map", "area"])) : j("", !0),
|
|
1959
|
+
t.map ? (b(), V(R, E({
|
|
1960
1960
|
key: 11,
|
|
1961
1961
|
map: t.map,
|
|
1962
1962
|
area: (he = a.otherLayers) == null ? void 0 : he["special-area"]
|
|
1963
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1964
|
-
t.map ? (
|
|
1963
|
+
}, o.$attrs), null, 16, ["map", "area"])) : j("", !0),
|
|
1964
|
+
t.map ? (b(), V(H, E({
|
|
1965
1965
|
key: 12,
|
|
1966
1966
|
map: t.map,
|
|
1967
1967
|
area: (q = a.otherLayers) == null ? void 0 : q["day-night"]
|
|
1968
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1969
|
-
t.map ? (
|
|
1968
|
+
}, o.$attrs), null, 16, ["map", "area"])) : j("", !0),
|
|
1969
|
+
t.map ? (b(), V(Y, E({
|
|
1970
1970
|
key: 13,
|
|
1971
1971
|
map: t.map,
|
|
1972
1972
|
"menu-toggle": t.menuToggle,
|
|
1973
1973
|
show: a.checkList.includes("graticule")
|
|
1974
|
-
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
1974
|
+
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : j("", !0)
|
|
1975
1975
|
]);
|
|
1976
1976
|
}
|
|
1977
1977
|
const hi = /* @__PURE__ */ X(Xa, [["render", mi]]);
|
|
@@ -2021,12 +2021,12 @@ class Ke {
|
|
|
2021
2021
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
2022
2022
|
*/
|
|
2023
2023
|
getBoundPixel() {
|
|
2024
|
-
var
|
|
2025
|
-
const e = (
|
|
2024
|
+
var w, C;
|
|
2025
|
+
const e = (w = this.map) == null ? void 0 : w.getBounds();
|
|
2026
2026
|
if (!e)
|
|
2027
2027
|
return [];
|
|
2028
|
-
const t = ((
|
|
2029
|
-
return [m,
|
|
2028
|
+
const t = ((C = this.map) == null ? void 0 : C.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [p, d] = this.mercator.px([r, i[1]], t), [m, f] = this.mercator.px([c, a[1]], t), y = Math.round(this.mercator.size * Math.pow(2, t) * (s + n));
|
|
2029
|
+
return [m, f, p + y, d];
|
|
2030
2030
|
}
|
|
2031
2031
|
/**
|
|
2032
2032
|
* [视窗边界像素宽度]
|
|
@@ -2209,10 +2209,10 @@ class De {
|
|
|
2209
2209
|
sRange: t.getUniformLocation(i, "u_range_s")
|
|
2210
2210
|
};
|
|
2211
2211
|
d.resolution && t.uniform2f(d.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), d.image && t.uniform1i(d.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, r), d.color && t.uniform1i(d.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (d.uvRange && t.uniform2f(d.uvRange, c.uvRange[0], c.uvRange[1]), d.sRange && t.uniform2f(d.sRange, c.sRange[0], c.sRange[1])), d.scale && t.uniform1f(d.scale, (c == null ? void 0 : c.scale) || 1);
|
|
2212
|
-
const m = e.getBoundPixel(),
|
|
2213
|
-
for (const
|
|
2214
|
-
const
|
|
2215
|
-
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER,
|
|
2212
|
+
const m = e.getBoundPixel(), f = e.map.getZoom() + 1, y = e.getWorldCopy(m, f);
|
|
2213
|
+
for (const w of y) {
|
|
2214
|
+
const C = (w[0] - m[0]) * e.ratio, P = (w[1] - m[3]) * e.ratio, A = w[2] * e.ratio, [T, z, _, k] = [C, A + C, P, A + P], L = new Float32Array([T, _, z, _, T, k, T, k, z, _, z, k]);
|
|
2215
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, L, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
2216
2216
|
}
|
|
2217
2217
|
} catch (d) {
|
|
2218
2218
|
console.log(`render failed...${d}`);
|
|
@@ -2612,8 +2612,8 @@ const di = {
|
|
|
2612
2612
|
}, ui = { class: "d-flex flex-row justify-center align-center" }, gi = { class: "text-caption" };
|
|
2613
2613
|
function fi(o, e, t, i, a, r) {
|
|
2614
2614
|
var m;
|
|
2615
|
-
const s =
|
|
2616
|
-
return (m = t.wind) != null && m.active ? (
|
|
2615
|
+
const s = x("v-btn"), c = x("v-col"), n = x("v-row"), p = x("v-card-text"), d = x("v-card");
|
|
2616
|
+
return (m = t.wind) != null && m.active ? (b(), M("div", pi, [
|
|
2617
2617
|
l("div", {
|
|
2618
2618
|
class: "menu-bar-box pa-1 rounded",
|
|
2619
2619
|
style: Q({ right: a.right + "px" })
|
|
@@ -2645,18 +2645,18 @@ function fi(o, e, t, i, a, r) {
|
|
|
2645
2645
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Wind Level", -1)),
|
|
2646
2646
|
h(n, { class: "ma-0" }, {
|
|
2647
2647
|
default: g(() => [
|
|
2648
|
-
(
|
|
2648
|
+
(b(!0), M(fe, null, _e(a.barbs, (f, y) => (b(), V(c, {
|
|
2649
2649
|
cols: "6",
|
|
2650
|
-
key:
|
|
2650
|
+
key: f,
|
|
2651
2651
|
class: "d-flex flex-row justify-center align-center pa-1"
|
|
2652
2652
|
}, {
|
|
2653
2653
|
default: g(() => [
|
|
2654
2654
|
l("div", ui, [
|
|
2655
2655
|
l("i", {
|
|
2656
|
-
class: je(["iconfont", r.barbsIconName[
|
|
2656
|
+
class: je(["iconfont", r.barbsIconName[y]]),
|
|
2657
2657
|
style: Q({ color: t.theme === "dark" ? "#fff" : "#000" })
|
|
2658
2658
|
}, null, 6),
|
|
2659
|
-
l("span", gi,
|
|
2659
|
+
l("span", gi, S(Number(f) < 10 ? `00${f}kts` : Number(f) < 100 ? `0${f}kts` : `${f}kts`), 1)
|
|
2660
2660
|
])
|
|
2661
2661
|
]),
|
|
2662
2662
|
_: 2
|
|
@@ -2673,7 +2673,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
2673
2673
|
}, 8, ["style"]), [
|
|
2674
2674
|
[Ge, a.showCaption]
|
|
2675
2675
|
])
|
|
2676
|
-
])) :
|
|
2676
|
+
])) : j("", !0);
|
|
2677
2677
|
}
|
|
2678
2678
|
const bi = /* @__PURE__ */ X(di, [["render", fi]]);
|
|
2679
2679
|
const yi = {
|
|
@@ -2845,7 +2845,7 @@ const yi = {
|
|
|
2845
2845
|
}, wi = { key: 0 };
|
|
2846
2846
|
function xi(o, e, t, i, a, r) {
|
|
2847
2847
|
var s;
|
|
2848
|
-
return (s = t.factor) != null && s.active ? (
|
|
2848
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", wi, [
|
|
2849
2849
|
l("div", {
|
|
2850
2850
|
class: "legend-bars-gl4 wind",
|
|
2851
2851
|
style: Q({ right: a.right + "px" })
|
|
@@ -2859,7 +2859,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
2859
2859
|
l("span", null, "40", -1),
|
|
2860
2860
|
l("span", null, "60", -1)
|
|
2861
2861
|
]), 4)
|
|
2862
|
-
])) :
|
|
2862
|
+
])) : j("", !0);
|
|
2863
2863
|
}
|
|
2864
2864
|
const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
2865
2865
|
name: "IdmCurrent",
|
|
@@ -2986,8 +2986,8 @@ const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
|
2986
2986
|
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="#f44336"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), p.src = n;
|
|
2987
2987
|
const d = [s, p];
|
|
2988
2988
|
let m = 0;
|
|
2989
|
-
d.forEach((
|
|
2990
|
-
|
|
2989
|
+
d.forEach((f) => {
|
|
2990
|
+
f.onload = () => {
|
|
2991
2991
|
m++, this.map.hasImage("currentDirIconWhite") || this.map.addImage("currentDirIconWhite", s), this.map.hasImage("currentDirIconRed") || this.map.addImage("currentDirIconRed", p), m === 2 && this.map.addLayer(
|
|
2992
2992
|
{
|
|
2993
2993
|
id: this.directionLayer,
|
|
@@ -3044,20 +3044,19 @@ const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
|
3044
3044
|
style: { width: "48px" }
|
|
3045
3045
|
}, Pi = { class: "text-caption px-2" };
|
|
3046
3046
|
function Ci(o, e, t, i, a, r) {
|
|
3047
|
-
var
|
|
3048
|
-
const s =
|
|
3049
|
-
return (
|
|
3047
|
+
var f;
|
|
3048
|
+
const s = x("v-btn"), c = x("v-tooltip"), n = x("v-col"), p = x("v-row"), d = x("v-card-text"), m = x("v-card");
|
|
3049
|
+
return (f = t.current) != null && f.active ? (b(), M("div", ki, [
|
|
3050
3050
|
l("div", {
|
|
3051
3051
|
class: "menu-bar-box pa-1 rounded",
|
|
3052
3052
|
style: Q({ right: a.right + "px" })
|
|
3053
3053
|
}, [
|
|
3054
3054
|
h(c, {
|
|
3055
3055
|
text: "Map Layers",
|
|
3056
|
-
location: "left"
|
|
3057
|
-
"open-delay": 1e3
|
|
3056
|
+
location: "left"
|
|
3058
3057
|
}, {
|
|
3059
|
-
activator: g(({ props:
|
|
3060
|
-
h(s,
|
|
3058
|
+
activator: g(({ props: y }) => [
|
|
3059
|
+
h(s, E(y, {
|
|
3061
3060
|
"min-width": "32",
|
|
3062
3061
|
width: "32",
|
|
3063
3062
|
height: "32",
|
|
@@ -3087,9 +3086,9 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3087
3086
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Current", -1)),
|
|
3088
3087
|
h(p, { class: "ma-0" }, {
|
|
3089
3088
|
default: g(() => [
|
|
3090
|
-
(
|
|
3089
|
+
(b(!0), M(fe, null, _e(a.list, (y, w) => (b(), V(n, {
|
|
3091
3090
|
cols: "12",
|
|
3092
|
-
key:
|
|
3091
|
+
key: w,
|
|
3093
3092
|
class: "d-flex flex-row justify-start align-center pa-0"
|
|
3094
3093
|
}, {
|
|
3095
3094
|
default: g(() => [
|
|
@@ -3097,10 +3096,10 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3097
3096
|
l("div", Li, [
|
|
3098
3097
|
l("i", {
|
|
3099
3098
|
class: "iconfont icon-direction-arrow opacity-80",
|
|
3100
|
-
style: Q({ fontSize: 48 *
|
|
3099
|
+
style: Q({ fontSize: 48 * y.size + "px" })
|
|
3101
3100
|
}, null, 4)
|
|
3102
3101
|
]),
|
|
3103
|
-
l("div", Pi,
|
|
3102
|
+
l("div", Pi, S(y.label), 1)
|
|
3104
3103
|
])
|
|
3105
3104
|
]),
|
|
3106
3105
|
_: 2
|
|
@@ -3117,7 +3116,7 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3117
3116
|
}, 8, ["style"]), [
|
|
3118
3117
|
[Ge, a.showCaption]
|
|
3119
3118
|
])
|
|
3120
|
-
])) :
|
|
3119
|
+
])) : j("", !0);
|
|
3121
3120
|
}
|
|
3122
3121
|
const Si = /* @__PURE__ */ X(_i, [["render", Ci]]);
|
|
3123
3122
|
const Mi = {
|
|
@@ -3286,7 +3285,7 @@ const Mi = {
|
|
|
3286
3285
|
}, Ti = { key: 0 };
|
|
3287
3286
|
function Ri(o, e, t, i, a, r) {
|
|
3288
3287
|
var s;
|
|
3289
|
-
return (s = t.factor) != null && s.active ? (
|
|
3288
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", Ti, [
|
|
3290
3289
|
l("div", {
|
|
3291
3290
|
class: "legend-bars-gl4 current",
|
|
3292
3291
|
style: Q({ right: a.right + "px" })
|
|
@@ -3299,7 +3298,7 @@ function Ri(o, e, t, i, a, r) {
|
|
|
3299
3298
|
l("span", null, "2", -1),
|
|
3300
3299
|
l("span", null, "3.2", -1)
|
|
3301
3300
|
]), 4)
|
|
3302
|
-
])) :
|
|
3301
|
+
])) : j("", !0);
|
|
3303
3302
|
}
|
|
3304
3303
|
const Ii = /* @__PURE__ */ X(Mi, [["render", Ri]]);
|
|
3305
3304
|
const Ai = {
|
|
@@ -3414,7 +3413,7 @@ const Ai = {
|
|
|
3414
3413
|
}, Di = { key: 0 };
|
|
3415
3414
|
function Oi(o, e, t, i, a, r) {
|
|
3416
3415
|
var s;
|
|
3417
|
-
return (s = t.factor) != null && s.active ? (
|
|
3416
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", Di, [
|
|
3418
3417
|
l("div", {
|
|
3419
3418
|
class: "legend-bars-gl4 sig-wave",
|
|
3420
3419
|
style: Q({ right: a.right + "px" })
|
|
@@ -3427,7 +3426,7 @@ function Oi(o, e, t, i, a, r) {
|
|
|
3427
3426
|
l("span", null, "6", -1),
|
|
3428
3427
|
l("span", null, "9", -1)
|
|
3429
3428
|
]), 4)
|
|
3430
|
-
])) :
|
|
3429
|
+
])) : j("", !0);
|
|
3431
3430
|
}
|
|
3432
3431
|
const Bi = /* @__PURE__ */ X(Ai, [["render", Oi], ["__scopeId", "data-v-79ce70e2"]]), ji = {
|
|
3433
3432
|
name: "IdmSigWave",
|
|
@@ -3582,8 +3581,8 @@ const Bi = /* @__PURE__ */ X(Ai, [["render", Oi], ["__scopeId", "data-v-79ce70e2
|
|
|
3582
3581
|
}, Hi = { class: "text-caption px-2" };
|
|
3583
3582
|
function Gi(o, e, t, i, a, r) {
|
|
3584
3583
|
var m;
|
|
3585
|
-
const s =
|
|
3586
|
-
return (m = t.sigWaveHeight) != null && m.active ? (
|
|
3584
|
+
const s = x("VBtn"), c = x("VCol"), n = x("VRow"), p = x("VCardText"), d = x("VCard");
|
|
3585
|
+
return (m = t.sigWaveHeight) != null && m.active ? (b(), M("div", Ei, [
|
|
3587
3586
|
l("div", {
|
|
3588
3587
|
class: "menu-bar-box pa-1 rounded",
|
|
3589
3588
|
style: Q({ right: a.right + "px" })
|
|
@@ -3615,18 +3614,18 @@ function Gi(o, e, t, i, a, r) {
|
|
|
3615
3614
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Wave Height", -1)),
|
|
3616
3615
|
h(n, { class: "ma-0" }, {
|
|
3617
3616
|
default: g(() => [
|
|
3618
|
-
(
|
|
3619
|
-
key:
|
|
3617
|
+
(b(!0), M(fe, null, _e(a.list, (f, y) => (b(), V(c, {
|
|
3618
|
+
key: y,
|
|
3620
3619
|
cols: "12",
|
|
3621
3620
|
class: "d-flex flex-row justify-start align-center pa-1"
|
|
3622
3621
|
}, {
|
|
3623
3622
|
default: g(() => [
|
|
3624
3623
|
l("div", Fi, [
|
|
3625
|
-
|
|
3624
|
+
y === 0 ? (b(), M("div", Ni)) : (b(), M("div", {
|
|
3626
3625
|
key: 1,
|
|
3627
|
-
style: Q({ width: "24px", height: "12px", background:
|
|
3626
|
+
style: Q({ width: "24px", height: "12px", background: f.color })
|
|
3628
3627
|
}, null, 4)),
|
|
3629
|
-
l("div", Hi,
|
|
3628
|
+
l("div", Hi, S(f.label), 1)
|
|
3630
3629
|
])
|
|
3631
3630
|
]),
|
|
3632
3631
|
_: 2
|
|
@@ -3643,7 +3642,7 @@ function Gi(o, e, t, i, a, r) {
|
|
|
3643
3642
|
}, 8, ["style"]), [
|
|
3644
3643
|
[Ge, a.showCaption]
|
|
3645
3644
|
])
|
|
3646
|
-
])) :
|
|
3645
|
+
])) : j("", !0);
|
|
3647
3646
|
}
|
|
3648
3647
|
const Wi = /* @__PURE__ */ X(ji, [["render", Gi]]), Ui = {
|
|
3649
3648
|
name: "IdmSwell",
|
|
@@ -3797,7 +3796,7 @@ const Wi = /* @__PURE__ */ X(ji, [["render", Gi]]), Ui = {
|
|
|
3797
3796
|
}
|
|
3798
3797
|
};
|
|
3799
3798
|
function Vi(o, e, t, i, a, r) {
|
|
3800
|
-
return
|
|
3799
|
+
return b(), M("div");
|
|
3801
3800
|
}
|
|
3802
3801
|
const Yi = /* @__PURE__ */ X(Ui, [["render", Vi]]), Zi = {
|
|
3803
3802
|
name: "IdmPrmsl",
|
|
@@ -3931,8 +3930,8 @@ const Yi = /* @__PURE__ */ X(Ui, [["render", Vi]]), Zi = {
|
|
|
3931
3930
|
};
|
|
3932
3931
|
function qi(o, e, t, i, a, r) {
|
|
3933
3932
|
var n;
|
|
3934
|
-
const s =
|
|
3935
|
-
return (n = t.prmsl) != null && n.active ? (
|
|
3933
|
+
const s = x("VBtn"), c = x("VTooltip");
|
|
3934
|
+
return (n = t.prmsl) != null && n.active ? (b(), M("div", Xi, [
|
|
3936
3935
|
l("div", {
|
|
3937
3936
|
class: "menu-bar-box pa-1 rounded",
|
|
3938
3937
|
style: Q({ right: a.right + "px" })
|
|
@@ -3942,7 +3941,7 @@ function qi(o, e, t, i, a, r) {
|
|
|
3942
3941
|
location: "left"
|
|
3943
3942
|
}, {
|
|
3944
3943
|
activator: g(({ props: p }) => [
|
|
3945
|
-
h(s,
|
|
3944
|
+
h(s, E(p, {
|
|
3946
3945
|
"min-width": "32",
|
|
3947
3946
|
width: "32",
|
|
3948
3947
|
height: "32",
|
|
@@ -3960,7 +3959,7 @@ function qi(o, e, t, i, a, r) {
|
|
|
3960
3959
|
_: 1
|
|
3961
3960
|
})
|
|
3962
3961
|
], 4)
|
|
3963
|
-
])) :
|
|
3962
|
+
])) : j("", !0);
|
|
3964
3963
|
}
|
|
3965
3964
|
const Ki = /* @__PURE__ */ X(Zi, [["render", qi]]);
|
|
3966
3965
|
const Ji = {
|
|
@@ -4067,7 +4066,7 @@ const Ji = {
|
|
|
4067
4066
|
}, Qi = { key: 0 };
|
|
4068
4067
|
function $i(o, e, t, i, a, r) {
|
|
4069
4068
|
var s;
|
|
4070
|
-
return (s = t.factor) != null && s.active ? (
|
|
4069
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", Qi, [
|
|
4071
4070
|
l("div", {
|
|
4072
4071
|
class: "legend-bars-gl4 ice-edge",
|
|
4073
4072
|
style: Q({ right: a.right + "px" })
|
|
@@ -4085,7 +4084,7 @@ function $i(o, e, t, i, a, r) {
|
|
|
4085
4084
|
l("span", null, "90", -1),
|
|
4086
4085
|
l("span", null, null, -1)
|
|
4087
4086
|
]), 4)
|
|
4088
|
-
])) :
|
|
4087
|
+
])) : j("", !0);
|
|
4089
4088
|
}
|
|
4090
4089
|
const er = /* @__PURE__ */ X(Ji, [["render", $i]]);
|
|
4091
4090
|
const tr = {
|
|
@@ -4183,7 +4182,7 @@ const tr = {
|
|
|
4183
4182
|
}, or = { key: 0 };
|
|
4184
4183
|
function ar(o, e, t, i, a, r) {
|
|
4185
4184
|
var s;
|
|
4186
|
-
return (s = t.factor) != null && s.active ? (
|
|
4185
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", or, [
|
|
4187
4186
|
l("div", {
|
|
4188
4187
|
class: "legend-bars-gl4 ice-cover",
|
|
4189
4188
|
style: Q({ right: a.right + "px" })
|
|
@@ -4195,7 +4194,7 @@ function ar(o, e, t, i, a, r) {
|
|
|
4195
4194
|
l("span", null, "80", -1),
|
|
4196
4195
|
l("span", null, "100", -1)
|
|
4197
4196
|
]), 4)
|
|
4198
|
-
])) :
|
|
4197
|
+
])) : j("", !0);
|
|
4199
4198
|
}
|
|
4200
4199
|
const ir = /* @__PURE__ */ X(tr, [["render", ar], ["__scopeId", "data-v-9696d73b"]]);
|
|
4201
4200
|
const rr = {
|
|
@@ -4301,7 +4300,7 @@ const rr = {
|
|
|
4301
4300
|
}, lr = { key: 0 };
|
|
4302
4301
|
function sr(o, e, t, i, a, r) {
|
|
4303
4302
|
var s;
|
|
4304
|
-
return (s = t.factor) != null && s.active ? (
|
|
4303
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", lr, [
|
|
4305
4304
|
l("div", {
|
|
4306
4305
|
class: "legend-bars-gl4 ice-thickness",
|
|
4307
4306
|
style: Q({ right: a.right + "px" })
|
|
@@ -4314,7 +4313,7 @@ function sr(o, e, t, i, a, r) {
|
|
|
4314
4313
|
l("span", null, "2", -1),
|
|
4315
4314
|
l("span", null, "3", -1)
|
|
4316
4315
|
]), 4)
|
|
4317
|
-
])) :
|
|
4316
|
+
])) : j("", !0);
|
|
4318
4317
|
}
|
|
4319
4318
|
const nr = /* @__PURE__ */ X(rr, [["render", sr]]);
|
|
4320
4319
|
const cr = {
|
|
@@ -4421,7 +4420,7 @@ const cr = {
|
|
|
4421
4420
|
}, mr = { key: 0 };
|
|
4422
4421
|
function hr(o, e, t, i, a, r) {
|
|
4423
4422
|
var s;
|
|
4424
|
-
return (s = t.factor) != null && s.active ? (
|
|
4423
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", mr, [
|
|
4425
4424
|
l("div", {
|
|
4426
4425
|
class: "legend-bars-gl4 precip3h",
|
|
4427
4426
|
style: Q({ right: a.right + "px" })
|
|
@@ -4435,7 +4434,7 @@ function hr(o, e, t, i, a, r) {
|
|
|
4435
4434
|
l("span", null, "20", -1),
|
|
4436
4435
|
l("span", null, "30", -1)
|
|
4437
4436
|
]), 4)
|
|
4438
|
-
])) :
|
|
4437
|
+
])) : j("", !0);
|
|
4439
4438
|
}
|
|
4440
4439
|
const dr = /* @__PURE__ */ X(cr, [["render", hr]]);
|
|
4441
4440
|
const pr = {
|
|
@@ -4532,7 +4531,7 @@ const pr = {
|
|
|
4532
4531
|
}, ur = { key: 0 };
|
|
4533
4532
|
function gr(o, e, t, i, a, r) {
|
|
4534
4533
|
var s;
|
|
4535
|
-
return (s = t.factor) != null && s.active ? (
|
|
4534
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", ur, [
|
|
4536
4535
|
l("div", {
|
|
4537
4536
|
class: "legend-bars-gl4 visibility",
|
|
4538
4537
|
style: Q({ right: a.right + "px" })
|
|
@@ -4544,7 +4543,7 @@ function gr(o, e, t, i, a, r) {
|
|
|
4544
4543
|
l("span", null, "3", -1),
|
|
4545
4544
|
l("span", null, "9", -1)
|
|
4546
4545
|
]), 4)
|
|
4547
|
-
])) :
|
|
4546
|
+
])) : j("", !0);
|
|
4548
4547
|
}
|
|
4549
4548
|
const fr = /* @__PURE__ */ X(pr, [["render", gr]]);
|
|
4550
4549
|
const br = {
|
|
@@ -4644,7 +4643,7 @@ const br = {
|
|
|
4644
4643
|
}, yr = { key: 0 };
|
|
4645
4644
|
function wr(o, e, t, i, a, r) {
|
|
4646
4645
|
var s;
|
|
4647
|
-
return (s = t.factor) != null && s.active ? (
|
|
4646
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", yr, [
|
|
4648
4647
|
l("div", {
|
|
4649
4648
|
class: "legend-bars-gl4 water-temp",
|
|
4650
4649
|
style: Q({ right: a.right + "px" })
|
|
@@ -4656,7 +4655,7 @@ function wr(o, e, t, i, a, r) {
|
|
|
4656
4655
|
l("span", null, "30", -1),
|
|
4657
4656
|
l("span", null, "40", -1)
|
|
4658
4657
|
]), 4)
|
|
4659
|
-
])) :
|
|
4658
|
+
])) : j("", !0);
|
|
4660
4659
|
}
|
|
4661
4660
|
const xr = /* @__PURE__ */ X(br, [["render", wr]]);
|
|
4662
4661
|
const vr = {
|
|
@@ -4767,7 +4766,7 @@ const vr = {
|
|
|
4767
4766
|
}, _r = { key: 0 };
|
|
4768
4767
|
function kr(o, e, t, i, a, r) {
|
|
4769
4768
|
var s;
|
|
4770
|
-
return (s = t.factor) != null && s.active ? (
|
|
4769
|
+
return (s = t.factor) != null && s.active ? (b(), M("div", _r, [
|
|
4771
4770
|
l("div", {
|
|
4772
4771
|
class: "legend-bars-gl4 temp",
|
|
4773
4772
|
style: Q({ right: a.right + "px" })
|
|
@@ -4781,7 +4780,7 @@ function kr(o, e, t, i, a, r) {
|
|
|
4781
4780
|
l("span", null, "30", -1),
|
|
4782
4781
|
l("span", null, "40", -1)
|
|
4783
4782
|
]), 4)
|
|
4784
|
-
])) :
|
|
4783
|
+
])) : j("", !0);
|
|
4785
4784
|
}
|
|
4786
4785
|
const zr = /* @__PURE__ */ X(vr, [["render", kr]]);
|
|
4787
4786
|
const Lr = {
|
|
@@ -4878,7 +4877,7 @@ const Lr = {
|
|
|
4878
4877
|
return function(o) {
|
|
4879
4878
|
var e;
|
|
4880
4879
|
if (o) {
|
|
4881
|
-
const t =
|
|
4880
|
+
const t = O(o);
|
|
4882
4881
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
4883
4882
|
}
|
|
4884
4883
|
return "-";
|
|
@@ -4913,7 +4912,7 @@ const Lr = {
|
|
|
4913
4912
|
},
|
|
4914
4913
|
realTime: {
|
|
4915
4914
|
handler(o, e) {
|
|
4916
|
-
o && e &&
|
|
4915
|
+
o && e && O(o).utc().format("yyyy-MM-DD HH") !== O(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
4917
4916
|
this.fetchWeatherLayers();
|
|
4918
4917
|
});
|
|
4919
4918
|
},
|
|
@@ -4994,67 +4993,70 @@ const Lr = {
|
|
|
4994
4993
|
(o == null ? void 0 : o.data.code) === 0 && (this.sourceList = o == null ? void 0 : o.data.data);
|
|
4995
4994
|
},
|
|
4996
4995
|
async fetchWeatherLayers(o = {}) {
|
|
4997
|
-
var a, r, s, c, n, p, d, m,
|
|
4996
|
+
var a, r, s, c, n, p, d, m, f;
|
|
4998
4997
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4999
4998
|
let t = 0, i = 0;
|
|
5000
4999
|
if (this.map) {
|
|
5001
|
-
const
|
|
5000
|
+
const y = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, w = (r = this.map) == null ? void 0 : r.getBounds(), C = `${w._sw.lng},${w._sw.lat},${w._ne.lng},${w._ne.lat}`;
|
|
5002
5001
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
5003
|
-
const P = Ve.WEATHER_LAYERS.find((
|
|
5002
|
+
const P = Ve.WEATHER_LAYERS.find((A) => {
|
|
5004
5003
|
var T;
|
|
5005
|
-
return ((T =
|
|
5004
|
+
return ((T = A.peer) == null ? void 0 : T.weight) === this.particleFactor.weight;
|
|
5006
5005
|
});
|
|
5007
5006
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight : this.weatherWeight + P.weight : this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight - P.weight : this.weatherWeight;
|
|
5008
5007
|
}
|
|
5009
5008
|
if (this.weatherWeight > 0) {
|
|
5010
5009
|
let P = this.weatherWeight;
|
|
5011
5010
|
if (P > 0) {
|
|
5012
|
-
const
|
|
5013
|
-
|
|
5014
|
-
|
|
5011
|
+
const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], T = await Ie.get(
|
|
5012
|
+
`${A}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${y}&bbox=${C}&t=${this.realTime}`,
|
|
5013
|
+
{
|
|
5014
|
+
headers: {
|
|
5015
|
+
Authorization: this.token || this.defaultMeteoToken
|
|
5016
|
+
}
|
|
5015
5017
|
}
|
|
5016
|
-
|
|
5018
|
+
);
|
|
5017
5019
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c = T == null ? void 0 : T.data) == null ? void 0 : c.code) === 0) {
|
|
5018
|
-
const
|
|
5019
|
-
for (const
|
|
5020
|
-
|
|
5021
|
-
Ie.get(
|
|
5020
|
+
const z = (n = T == null ? void 0 : T.data) == null ? void 0 : n.data, _ = [];
|
|
5021
|
+
for (const L in z)
|
|
5022
|
+
_.push(
|
|
5023
|
+
Ie.get(z[L], {
|
|
5022
5024
|
headers: {
|
|
5023
5025
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5024
|
-
key:
|
|
5026
|
+
key: L
|
|
5025
5027
|
},
|
|
5026
|
-
responseType: /\.(jpg|png)$/.test(
|
|
5027
|
-
}).catch((
|
|
5028
|
-
console.log(`[${
|
|
5028
|
+
responseType: /\.(jpg|png)$/.test(z[L]) ? "blob" : "json"
|
|
5029
|
+
}).catch((v) => {
|
|
5030
|
+
console.log(`[${L}] fetch layer error: ${v}`);
|
|
5029
5031
|
})
|
|
5030
5032
|
);
|
|
5031
|
-
const
|
|
5032
|
-
this.weatherLayers = {},
|
|
5033
|
+
const k = await Promise.all(_);
|
|
5034
|
+
this.weatherLayers = {}, k.map((L) => {
|
|
5033
5035
|
var H, Y, G, W;
|
|
5034
|
-
const
|
|
5035
|
-
let R = (G = (Y =
|
|
5036
|
-
R &&
|
|
5037
|
-
raw:
|
|
5038
|
-
type: ((W =
|
|
5036
|
+
const v = ((H = L == null ? void 0 : L.data) == null ? void 0 : H.data) || (L == null ? void 0 : L.data);
|
|
5037
|
+
let R = (G = (Y = L == null ? void 0 : L.config) == null ? void 0 : Y.headers) == null ? void 0 : G.key;
|
|
5038
|
+
R && v && (this.weatherLayers[R] = {
|
|
5039
|
+
raw: v,
|
|
5040
|
+
type: ((W = L == null ? void 0 : L.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
|
|
5039
5041
|
etime: T.data.etime
|
|
5040
5042
|
});
|
|
5041
5043
|
});
|
|
5042
5044
|
}
|
|
5043
5045
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", i, ", total: ", t += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
5044
|
-
const
|
|
5046
|
+
const z = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
5045
5047
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5046
5048
|
type: "json",
|
|
5047
|
-
direction:
|
|
5048
|
-
height: { raw:
|
|
5049
|
+
direction: z,
|
|
5050
|
+
height: { raw: _ },
|
|
5049
5051
|
etime: T.data.etime
|
|
5050
5052
|
};
|
|
5051
5053
|
}
|
|
5052
5054
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
5053
|
-
const
|
|
5055
|
+
const z = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, _ = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
5054
5056
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
5055
5057
|
type: "json",
|
|
5056
|
-
direction:
|
|
5057
|
-
speed: { raw:
|
|
5058
|
+
direction: z,
|
|
5059
|
+
speed: { raw: _ },
|
|
5058
5060
|
etime: T.data.etime
|
|
5059
5061
|
};
|
|
5060
5062
|
}
|
|
@@ -5117,176 +5119,176 @@ const Lr = {
|
|
|
5117
5119
|
);
|
|
5118
5120
|
},
|
|
5119
5121
|
handleDrawWeather4Json() {
|
|
5120
|
-
var p, d, m,
|
|
5122
|
+
var p, d, m, f, y, w, C;
|
|
5121
5123
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
5122
5124
|
let e = 0, t = 0;
|
|
5123
5125
|
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r = ae.convertToStdLng(i._sw.lng), s = ae.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
5124
5126
|
for (const P in this.weatherLayers) {
|
|
5125
|
-
let
|
|
5127
|
+
let A = !1;
|
|
5126
5128
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
5127
5129
|
let T = [];
|
|
5128
5130
|
if (P === "swell") {
|
|
5129
|
-
|
|
5130
|
-
const
|
|
5131
|
-
for (const
|
|
5132
|
-
if (
|
|
5133
|
-
const
|
|
5134
|
-
r > s ?
|
|
5131
|
+
A = !0;
|
|
5132
|
+
const z = ((m = this.weatherLayers[P]) == null ? void 0 : m.direction) || {};
|
|
5133
|
+
for (const k in z)
|
|
5134
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5135
|
+
const L = z[k].lng;
|
|
5136
|
+
r > s ? L.forEach((v, R) => {
|
|
5135
5137
|
var H, Y, G, W, $, ee;
|
|
5136
5138
|
if (a < 2) {
|
|
5137
|
-
if ((
|
|
5138
|
-
const K = F.point([
|
|
5139
|
-
val: ((H = k
|
|
5140
|
-
spd: (G = k
|
|
5139
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
5140
|
+
const K = F.point([v, k], {
|
|
5141
|
+
val: ((H = z[k].val) == null ? void 0 : H[R]) || ((Y = z[k].dir) == null ? void 0 : Y[R]),
|
|
5142
|
+
spd: (G = z[k].spd) == null ? void 0 : G[R]
|
|
5141
5143
|
});
|
|
5142
5144
|
T.push(K);
|
|
5143
5145
|
}
|
|
5144
|
-
} else if ((
|
|
5145
|
-
const K = F.point([
|
|
5146
|
-
val: ((W = k
|
|
5147
|
-
spd: (ee = k
|
|
5146
|
+
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5147
|
+
const K = F.point([v, k], {
|
|
5148
|
+
val: ((W = z[k].val) == null ? void 0 : W[R]) || (($ = z[k].dir) == null ? void 0 : $[R]),
|
|
5149
|
+
spd: (ee = z[k].spd) == null ? void 0 : ee[R]
|
|
5148
5150
|
});
|
|
5149
5151
|
T.push(K);
|
|
5150
5152
|
}
|
|
5151
|
-
}) :
|
|
5153
|
+
}) : L.forEach((v, R) => {
|
|
5152
5154
|
var H, Y, G, W, $, ee;
|
|
5153
5155
|
if (r < 2) {
|
|
5154
|
-
if ((
|
|
5155
|
-
const K = F.point([
|
|
5156
|
-
val: ((H = k
|
|
5157
|
-
spd: (G = k
|
|
5156
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
5157
|
+
const K = F.point([v, k], {
|
|
5158
|
+
val: ((H = z[k].val) == null ? void 0 : H[R]) || ((Y = z[k].dir) == null ? void 0 : Y[R]),
|
|
5159
|
+
spd: (G = z[k].spd) == null ? void 0 : G[R]
|
|
5158
5160
|
});
|
|
5159
5161
|
T.push(K);
|
|
5160
5162
|
}
|
|
5161
|
-
} else if (
|
|
5162
|
-
const K = F.point([
|
|
5163
|
-
val: ((W = k
|
|
5164
|
-
spd: (ee = k
|
|
5163
|
+
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5164
|
+
const K = F.point([v, k], {
|
|
5165
|
+
val: ((W = z[k].val) == null ? void 0 : W[R]) || (($ = z[k].dir) == null ? void 0 : $[R]),
|
|
5166
|
+
spd: (ee = z[k].spd) == null ? void 0 : ee[R]
|
|
5165
5167
|
});
|
|
5166
5168
|
T.push(K);
|
|
5167
5169
|
}
|
|
5168
5170
|
});
|
|
5169
5171
|
}
|
|
5170
5172
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
5171
|
-
const
|
|
5172
|
-
if (
|
|
5173
|
-
if (!
|
|
5174
|
-
const
|
|
5175
|
-
for (const
|
|
5176
|
-
const
|
|
5177
|
-
for (const R of
|
|
5178
|
-
|
|
5173
|
+
const _ = this.weatherLayers[P].height;
|
|
5174
|
+
if (_) {
|
|
5175
|
+
if (!_.data) {
|
|
5176
|
+
const k = [];
|
|
5177
|
+
for (const L in (f = _.raw) == null ? void 0 : f.LineString) {
|
|
5178
|
+
const v = _.raw.LineString[L];
|
|
5179
|
+
for (const R of v)
|
|
5180
|
+
k.push(
|
|
5179
5181
|
F.lineString(R, {
|
|
5180
|
-
val: Number(
|
|
5182
|
+
val: Number(L)
|
|
5181
5183
|
})
|
|
5182
5184
|
);
|
|
5183
|
-
|
|
5185
|
+
_.data = F.featureCollection(k);
|
|
5184
5186
|
}
|
|
5185
5187
|
}
|
|
5186
|
-
if (
|
|
5187
|
-
const
|
|
5188
|
-
T = T.concat(
|
|
5188
|
+
if (_.data) {
|
|
5189
|
+
const k = this.handleBboxClip(_.data, i);
|
|
5190
|
+
T = T.concat(k);
|
|
5189
5191
|
}
|
|
5190
5192
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
5191
5193
|
}
|
|
5192
5194
|
} else if (P === "current") {
|
|
5193
|
-
|
|
5194
|
-
const
|
|
5195
|
-
for (const
|
|
5196
|
-
if (
|
|
5197
|
-
const
|
|
5198
|
-
r > s ?
|
|
5195
|
+
A = !0;
|
|
5196
|
+
const z = ((y = this.weatherLayers[P]) == null ? void 0 : y.direction) || {};
|
|
5197
|
+
for (const k in z)
|
|
5198
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5199
|
+
const L = z[k].lng;
|
|
5200
|
+
r > s ? L.forEach((v, R) => {
|
|
5199
5201
|
var H, Y, G, W, $, ee;
|
|
5200
5202
|
if (a < 2) {
|
|
5201
|
-
if ((
|
|
5202
|
-
const K = F.point([
|
|
5203
|
-
val: ((H = k
|
|
5204
|
-
spd: (G = k
|
|
5203
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
5204
|
+
const K = F.point([v, k], {
|
|
5205
|
+
val: ((H = z[k].val) == null ? void 0 : H[R]) || ((Y = z[k].dir) == null ? void 0 : Y[R]),
|
|
5206
|
+
spd: (G = z[k].spd) == null ? void 0 : G[R]
|
|
5205
5207
|
});
|
|
5206
5208
|
T.push(K);
|
|
5207
5209
|
}
|
|
5208
|
-
} else if ((
|
|
5209
|
-
const K = F.point([
|
|
5210
|
-
val: ((W = k
|
|
5211
|
-
spd: (ee = k
|
|
5210
|
+
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5211
|
+
const K = F.point([v, k], {
|
|
5212
|
+
val: ((W = z[k].val) == null ? void 0 : W[R]) || (($ = z[k].dir) == null ? void 0 : $[R]),
|
|
5213
|
+
spd: (ee = z[k].spd) == null ? void 0 : ee[R]
|
|
5212
5214
|
});
|
|
5213
5215
|
T.push(K);
|
|
5214
5216
|
}
|
|
5215
|
-
}) :
|
|
5217
|
+
}) : L.forEach((v, R) => {
|
|
5216
5218
|
var H, Y, G, W, $, ee;
|
|
5217
5219
|
if (r < 2) {
|
|
5218
|
-
if ((
|
|
5219
|
-
const K = F.point([
|
|
5220
|
-
val: ((H = k
|
|
5221
|
-
spd: (G = k
|
|
5220
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
5221
|
+
const K = F.point([v, k], {
|
|
5222
|
+
val: ((H = z[k].val) == null ? void 0 : H[R]) || ((Y = z[k].dir) == null ? void 0 : Y[R]),
|
|
5223
|
+
spd: (G = z[k].spd) == null ? void 0 : G[R]
|
|
5222
5224
|
});
|
|
5223
5225
|
T.push(K);
|
|
5224
5226
|
}
|
|
5225
|
-
} else if (
|
|
5226
|
-
const K = F.point([
|
|
5227
|
-
val: ((W = k
|
|
5228
|
-
spd: (ee = k
|
|
5227
|
+
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5228
|
+
const K = F.point([v, k], {
|
|
5229
|
+
val: ((W = z[k].val) == null ? void 0 : W[R]) || (($ = z[k].dir) == null ? void 0 : $[R]),
|
|
5230
|
+
spd: (ee = z[k].spd) == null ? void 0 : ee[R]
|
|
5229
5231
|
});
|
|
5230
5232
|
T.push(K);
|
|
5231
5233
|
}
|
|
5232
5234
|
});
|
|
5233
5235
|
}
|
|
5234
5236
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
5235
|
-
const
|
|
5236
|
-
if (
|
|
5237
|
-
if (!
|
|
5238
|
-
const
|
|
5239
|
-
for (const
|
|
5240
|
-
const R =
|
|
5237
|
+
const _ = this.weatherLayers[P].speed;
|
|
5238
|
+
if (_) {
|
|
5239
|
+
if (!_.data) {
|
|
5240
|
+
const L = [];
|
|
5241
|
+
for (const v in (w = _.raw) == null ? void 0 : w.Polygon) {
|
|
5242
|
+
const R = _.raw.Polygon[v];
|
|
5241
5243
|
for (const H of R)
|
|
5242
|
-
|
|
5244
|
+
L.push(
|
|
5243
5245
|
F.polygon(H, {
|
|
5244
|
-
val: Number(
|
|
5246
|
+
val: Number(v)
|
|
5245
5247
|
})
|
|
5246
5248
|
);
|
|
5247
5249
|
}
|
|
5248
|
-
|
|
5250
|
+
_.data = F.featureCollection(L);
|
|
5249
5251
|
}
|
|
5250
|
-
const
|
|
5251
|
-
T = T.concat(
|
|
5252
|
+
const k = a < this.zoom ? _.data.features.filter((L) => L.properties.val > 0.5) : _.data.features;
|
|
5253
|
+
T = T.concat(k), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
5252
5254
|
}
|
|
5253
5255
|
} else if (P === "wind") {
|
|
5254
|
-
|
|
5255
|
-
const
|
|
5256
|
-
for (const
|
|
5257
|
-
if (
|
|
5258
|
-
const
|
|
5259
|
-
r > s ?
|
|
5256
|
+
A = !0;
|
|
5257
|
+
const z = this.weatherLayers.wind.raw;
|
|
5258
|
+
for (const _ in z)
|
|
5259
|
+
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5260
|
+
const k = z[_].lng;
|
|
5261
|
+
r > s ? k.forEach((L, v) => {
|
|
5260
5262
|
var R, H, Y, G;
|
|
5261
5263
|
if (a < 2) {
|
|
5262
|
-
if ((
|
|
5263
|
-
const W = F.point([
|
|
5264
|
-
dir: ((R =
|
|
5265
|
-
spd:
|
|
5264
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
5265
|
+
const W = F.point([L, _], {
|
|
5266
|
+
dir: ((R = z[_].val) == null ? void 0 : R[v]) || ((H = z[_].dir) == null ? void 0 : H[v]),
|
|
5267
|
+
spd: z[_].spd[v]
|
|
5266
5268
|
});
|
|
5267
5269
|
T.push(W);
|
|
5268
5270
|
}
|
|
5269
|
-
} else if ((
|
|
5270
|
-
const W = F.point([
|
|
5271
|
-
dir: ((Y =
|
|
5272
|
-
spd:
|
|
5271
|
+
} else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5272
|
+
const W = F.point([L, _], {
|
|
5273
|
+
dir: ((Y = z[_].val) == null ? void 0 : Y[v]) || ((G = z[_].dir) == null ? void 0 : G[v]),
|
|
5274
|
+
spd: z[_].spd[v]
|
|
5273
5275
|
});
|
|
5274
5276
|
T.push(W);
|
|
5275
5277
|
}
|
|
5276
|
-
}) :
|
|
5278
|
+
}) : k.forEach((L, v) => {
|
|
5277
5279
|
var R, H, Y, G;
|
|
5278
5280
|
if (a < 2) {
|
|
5279
|
-
if ((
|
|
5280
|
-
const W = F.point([
|
|
5281
|
-
dir: ((R =
|
|
5282
|
-
spd:
|
|
5281
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
5282
|
+
const W = F.point([L, _], {
|
|
5283
|
+
dir: ((R = z[_].val) == null ? void 0 : R[v]) || ((H = z[_].dir) == null ? void 0 : H[v]),
|
|
5284
|
+
spd: z[_].spd[v]
|
|
5283
5285
|
});
|
|
5284
5286
|
T.push(W);
|
|
5285
5287
|
}
|
|
5286
|
-
} else if (
|
|
5287
|
-
const W = F.point([
|
|
5288
|
-
dir: ((Y =
|
|
5289
|
-
spd:
|
|
5288
|
+
} else if (L >= r && L <= s && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5289
|
+
const W = F.point([L, _], {
|
|
5290
|
+
dir: ((Y = z[_].val) == null ? void 0 : Y[v]) || ((G = z[_].dir) == null ? void 0 : G[v]),
|
|
5291
|
+
spd: z[_].spd[v]
|
|
5290
5292
|
});
|
|
5291
5293
|
T.push(W);
|
|
5292
5294
|
}
|
|
@@ -5297,29 +5299,29 @@ const Lr = {
|
|
|
5297
5299
|
if (this.weatherLayers[P].data)
|
|
5298
5300
|
T = this.weatherLayers[P].data;
|
|
5299
5301
|
else {
|
|
5300
|
-
|
|
5301
|
-
const
|
|
5302
|
-
if (
|
|
5303
|
-
const
|
|
5304
|
-
for (const
|
|
5305
|
-
const
|
|
5306
|
-
for (const
|
|
5307
|
-
|
|
5308
|
-
F.polygon(
|
|
5309
|
-
val: Number(
|
|
5302
|
+
A = !0;
|
|
5303
|
+
const z = this.weatherLayers[P].raw;
|
|
5304
|
+
if (z) {
|
|
5305
|
+
const _ = [];
|
|
5306
|
+
for (const k in z.Polygon) {
|
|
5307
|
+
const L = z.Polygon[k];
|
|
5308
|
+
for (const v of L)
|
|
5309
|
+
_.push(
|
|
5310
|
+
F.polygon(v, {
|
|
5311
|
+
val: Number(k)
|
|
5310
5312
|
})
|
|
5311
5313
|
);
|
|
5312
5314
|
}
|
|
5313
|
-
for (const
|
|
5314
|
-
const
|
|
5315
|
-
for (let
|
|
5316
|
-
|
|
5317
|
-
F.point([
|
|
5318
|
-
val: Number(
|
|
5315
|
+
for (const k in z.Point) {
|
|
5316
|
+
const L = z.Point[k];
|
|
5317
|
+
for (let v = 0; v < ((C = L.lng) == null ? void 0 : C.length); v++)
|
|
5318
|
+
_.push(
|
|
5319
|
+
F.point([L.lng[v], k], {
|
|
5320
|
+
val: Number(L.val[v])
|
|
5319
5321
|
})
|
|
5320
5322
|
);
|
|
5321
5323
|
}
|
|
5322
|
-
T = T.concat(
|
|
5324
|
+
T = T.concat(_);
|
|
5323
5325
|
}
|
|
5324
5326
|
}
|
|
5325
5327
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("sig-wave-height elapsed: ", t, ", total: ", e += t);
|
|
@@ -5327,34 +5329,34 @@ const Lr = {
|
|
|
5327
5329
|
if (this.weatherLayers[P].data)
|
|
5328
5330
|
T = this.weatherLayers[P].data;
|
|
5329
5331
|
else {
|
|
5330
|
-
|
|
5331
|
-
const
|
|
5332
|
-
if (
|
|
5333
|
-
const
|
|
5334
|
-
for (const
|
|
5335
|
-
const
|
|
5336
|
-
for (const
|
|
5337
|
-
|
|
5338
|
-
F.lineString(
|
|
5339
|
-
val: Number(
|
|
5332
|
+
A = !0;
|
|
5333
|
+
const z = this.weatherLayers[P].raw;
|
|
5334
|
+
if (z) {
|
|
5335
|
+
const _ = [];
|
|
5336
|
+
for (const k in z.LineString) {
|
|
5337
|
+
const L = z.LineString[k];
|
|
5338
|
+
for (const v of L)
|
|
5339
|
+
_.push(
|
|
5340
|
+
F.lineString(v, {
|
|
5341
|
+
val: Number(k)
|
|
5340
5342
|
})
|
|
5341
5343
|
);
|
|
5342
5344
|
}
|
|
5343
|
-
for (const
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
F.point([
|
|
5347
|
-
val:
|
|
5348
|
-
type:
|
|
5345
|
+
for (const k in z.Point)
|
|
5346
|
+
z.Point[k].lng.forEach((L, v) => {
|
|
5347
|
+
L = ae.convertToStdLng(L), _.push(
|
|
5348
|
+
F.point([L, k], {
|
|
5349
|
+
val: z.Point[k].val[v],
|
|
5350
|
+
type: z.Point[k].type[v]
|
|
5349
5351
|
})
|
|
5350
5352
|
);
|
|
5351
5353
|
});
|
|
5352
|
-
T = T.concat(
|
|
5354
|
+
T = T.concat(_);
|
|
5353
5355
|
}
|
|
5354
5356
|
}
|
|
5355
5357
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
5356
5358
|
}
|
|
5357
|
-
T.length && (this.weatherLayers[P].data = F.featureCollection(T)),
|
|
5359
|
+
T.length && (this.weatherLayers[P].data = F.featureCollection(T)), A && (this.weatherLayers[P].version = Math.random() + 1);
|
|
5358
5360
|
}
|
|
5359
5361
|
}
|
|
5360
5362
|
},
|
|
@@ -5391,19 +5393,18 @@ const Lr = {
|
|
|
5391
5393
|
}, Er = { class: "text-body-1 py-2" }, Fr = { class: "text-body-1 font-weight-medium" }, Nr = { class: "text-body-2 opacity-70" }, Hr = { class: "text-body-2 opacity-70 pb-1" };
|
|
5392
5394
|
function Gr(o, e, t, i, a, r) {
|
|
5393
5395
|
var K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te;
|
|
5394
|
-
const s =
|
|
5395
|
-
return
|
|
5396
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VSwitch"), p = x("VCardTitle"), d = x("VCardItem"), m = x("VCheckbox"), f = x("VCardText"), y = x("VCard"), w = x("VBtnToggle"), C = x("VDivider"), P = x("IdmWindBarb"), A = x("IdmSigWaveHeight"), T = x("IdmCurrentDirection"), z = x("IdmPrmsl"), _ = x("IdmWindParticle"), k = x("IdmCurrentParticle"), L = x("IdmWave"), v = x("IdmSwell"), R = x("IdmIceEdge"), H = x("IdmIceCover"), Y = x("IdmIceThickness"), G = x("IdmPrecip3h"), W = x("IdmVisibility"), $ = x("IdmWaterTemp"), ee = x("IdmTemp");
|
|
5397
|
+
return b(), M("div", Pr, [
|
|
5396
5398
|
l("div", {
|
|
5397
5399
|
class: "menu-bar-box transition pa-1",
|
|
5398
5400
|
style: Q({ top: t.top + 94 + "px", right: a.right + "px" })
|
|
5399
5401
|
}, [
|
|
5400
5402
|
h(c, {
|
|
5401
5403
|
text: o.$t("weather.weatherLayers"),
|
|
5402
|
-
location: "left"
|
|
5403
|
-
"open-delay": 1e3
|
|
5404
|
+
location: "left"
|
|
5404
5405
|
}, {
|
|
5405
5406
|
activator: g(({ props: te }) => [
|
|
5406
|
-
h(s,
|
|
5407
|
+
h(s, E(te, {
|
|
5407
5408
|
"min-width": "32",
|
|
5408
5409
|
width: "32",
|
|
5409
5410
|
height: "32",
|
|
@@ -5427,7 +5428,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5427
5428
|
}, [
|
|
5428
5429
|
l("div", Cr, [
|
|
5429
5430
|
l("div", Sr, [
|
|
5430
|
-
l("div", Mr,
|
|
5431
|
+
l("div", Mr, S(o.$t("weather.weather")), 1),
|
|
5431
5432
|
h(n, {
|
|
5432
5433
|
modelValue: a.autoActive,
|
|
5433
5434
|
"onUpdate:modelValue": e[0] || (e[0] = (te) => a.autoActive = te),
|
|
@@ -5456,7 +5457,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5456
5457
|
l("div", {
|
|
5457
5458
|
class: je(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
5458
5459
|
}, [
|
|
5459
|
-
h(
|
|
5460
|
+
h(y, {
|
|
5460
5461
|
class: "menu-card mx-auto my-3",
|
|
5461
5462
|
elevation: "8"
|
|
5462
5463
|
}, {
|
|
@@ -5468,17 +5469,17 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5468
5469
|
style: { "font-size": "16px !important" }
|
|
5469
5470
|
}, {
|
|
5470
5471
|
default: g(() => [
|
|
5471
|
-
U(
|
|
5472
|
+
U(S(o.$t("weather.overlays")), 1)
|
|
5472
5473
|
]),
|
|
5473
5474
|
_: 1
|
|
5474
5475
|
})
|
|
5475
5476
|
]),
|
|
5476
5477
|
_: 1
|
|
5477
5478
|
}),
|
|
5478
|
-
h(
|
|
5479
|
+
h(f, null, {
|
|
5479
5480
|
default: g(() => [
|
|
5480
5481
|
l("div", Tr, [
|
|
5481
|
-
(
|
|
5482
|
+
(b(!0), M(fe, null, _e(a.tagLayers.filter((te) => te.overlays), (te) => (b(), V(m, {
|
|
5482
5483
|
key: te.key,
|
|
5483
5484
|
modelValue: a.checkList,
|
|
5484
5485
|
"onUpdate:modelValue": e[1] || (e[1] = (de) => a.checkList = de),
|
|
@@ -5498,7 +5499,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5498
5499
|
]),
|
|
5499
5500
|
_: 1
|
|
5500
5501
|
}),
|
|
5501
|
-
h(
|
|
5502
|
+
h(y, {
|
|
5502
5503
|
class: "menu-card mx-auto mb-3",
|
|
5503
5504
|
elevation: "8"
|
|
5504
5505
|
}, {
|
|
@@ -5510,17 +5511,17 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5510
5511
|
style: { "font-size": "16px !important" }
|
|
5511
5512
|
}, {
|
|
5512
5513
|
default: g(() => [
|
|
5513
|
-
U(
|
|
5514
|
+
U(S(o.$t("weather.renders")), 1)
|
|
5514
5515
|
]),
|
|
5515
5516
|
_: 1
|
|
5516
5517
|
})
|
|
5517
5518
|
]),
|
|
5518
5519
|
_: 1
|
|
5519
5520
|
}),
|
|
5520
|
-
h(
|
|
5521
|
+
h(f, null, {
|
|
5521
5522
|
default: g(() => [
|
|
5522
5523
|
l("div", Rr, [
|
|
5523
|
-
(
|
|
5524
|
+
(b(!0), M(fe, null, _e(a.tagLayers.filter((te) => !te.overlays && te.key !== "ice-thickness"), (te) => (b(), M(fe, {
|
|
5524
5525
|
key: te.key
|
|
5525
5526
|
}, [
|
|
5526
5527
|
h(m, {
|
|
@@ -5535,7 +5536,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5535
5536
|
class: "flex-1-0-100 text-body-2",
|
|
5536
5537
|
"hide-details": ""
|
|
5537
5538
|
}, null, 8, ["modelValue", "value", "label", "disabled"]),
|
|
5538
|
-
a.checkList.includes("wind-particle") && te.key === "wind-particle" ? (
|
|
5539
|
+
a.checkList.includes("wind-particle") && te.key === "wind-particle" ? (b(), M("div", Ir, [
|
|
5539
5540
|
e[8] || (e[8] = l("span", null, "Particle", -1)),
|
|
5540
5541
|
h(n, {
|
|
5541
5542
|
modelValue: a.showWindParticle,
|
|
@@ -5547,8 +5548,8 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5547
5548
|
style: { "font-size": "14px" },
|
|
5548
5549
|
"hide-details": ""
|
|
5549
5550
|
}, null, 8, ["modelValue"])
|
|
5550
|
-
])) :
|
|
5551
|
-
a.checkList.includes("current-particle") && te.key === "current-particle" ? (
|
|
5551
|
+
])) : j("", !0),
|
|
5552
|
+
a.checkList.includes("current-particle") && te.key === "current-particle" ? (b(), M("div", Ar, [
|
|
5552
5553
|
e[9] || (e[9] = l("span", null, "Particle", -1)),
|
|
5553
5554
|
h(n, {
|
|
5554
5555
|
modelValue: a.showCurrentParticle,
|
|
@@ -5560,8 +5561,8 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5560
5561
|
height: "20",
|
|
5561
5562
|
"hide-details": ""
|
|
5562
5563
|
}, null, 8, ["modelValue"])
|
|
5563
|
-
])) :
|
|
5564
|
-
a.checkList.includes("ice-forecast") && te.key === "ice-forecast" ? (
|
|
5564
|
+
])) : j("", !0),
|
|
5565
|
+
a.checkList.includes("ice-forecast") && te.key === "ice-forecast" ? (b(), V(w, {
|
|
5565
5566
|
key: 2,
|
|
5566
5567
|
modelValue: a.iceToggleValue,
|
|
5567
5568
|
"onUpdate:modelValue": e[5] || (e[5] = (de) => a.iceToggleValue = de),
|
|
@@ -5583,7 +5584,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5583
5584
|
disabled: !a.autoActive
|
|
5584
5585
|
}, {
|
|
5585
5586
|
default: g(() => [
|
|
5586
|
-
U(
|
|
5587
|
+
U(S(o.$t("weather.coverage")), 1)
|
|
5587
5588
|
]),
|
|
5588
5589
|
_: 1
|
|
5589
5590
|
}, 8, ["color", "disabled"]),
|
|
@@ -5597,13 +5598,13 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5597
5598
|
value: "ice-thickness"
|
|
5598
5599
|
}, {
|
|
5599
5600
|
default: g(() => [
|
|
5600
|
-
U(
|
|
5601
|
+
U(S(o.$t("weather.thickness")), 1)
|
|
5601
5602
|
]),
|
|
5602
5603
|
_: 1
|
|
5603
5604
|
}, 8, ["color", "disabled"])
|
|
5604
5605
|
]),
|
|
5605
5606
|
_: 1
|
|
5606
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
5607
|
+
}, 8, ["modelValue", "disabled"])) : j("", !0)
|
|
5607
5608
|
], 64))), 128))
|
|
5608
5609
|
])
|
|
5609
5610
|
]),
|
|
@@ -5612,7 +5613,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5612
5613
|
]),
|
|
5613
5614
|
_: 1
|
|
5614
5615
|
}),
|
|
5615
|
-
h(
|
|
5616
|
+
h(y, {
|
|
5616
5617
|
class: "menu-card mx-auto mb-3",
|
|
5617
5618
|
elevation: "8"
|
|
5618
5619
|
}, {
|
|
@@ -5624,38 +5625,38 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5624
5625
|
style: { "font-size": "16px !important" }
|
|
5625
5626
|
}, {
|
|
5626
5627
|
default: g(() => [
|
|
5627
|
-
U(
|
|
5628
|
+
U(S(o.$t("weather.forecastModel")), 1)
|
|
5628
5629
|
]),
|
|
5629
5630
|
_: 1
|
|
5630
5631
|
})
|
|
5631
5632
|
]),
|
|
5632
5633
|
_: 1
|
|
5633
5634
|
}),
|
|
5634
|
-
h(
|
|
5635
|
+
h(f, { class: "" }, {
|
|
5635
5636
|
default: g(() => {
|
|
5636
5637
|
var te, de, we, Re;
|
|
5637
5638
|
return [
|
|
5638
|
-
l("div", Dr,
|
|
5639
|
-
(
|
|
5639
|
+
l("div", Dr, S(o.$t("weather.atmospheric")), 1),
|
|
5640
|
+
(b(!0), M(fe, null, _e((de = (te = a.sourceList) == null ? void 0 : te.weather) == null ? void 0 : de.filter((J) => J.model !== "best_match"), (J) => {
|
|
5640
5641
|
var Ce, xe, ie, ue, N, Le;
|
|
5641
|
-
return
|
|
5642
|
+
return b(), M(fe, {
|
|
5642
5643
|
key: `source${J.name}`
|
|
5643
5644
|
}, [
|
|
5644
|
-
l("div", Or,
|
|
5645
|
-
l("div", Br,
|
|
5646
|
-
(ie = (xe = (Ce = J == null ? void 0 : J.update) == null ? void 0 : Ce.default) == null ? void 0 : xe.meta) != null && ie.initialisationTime ? (
|
|
5645
|
+
l("div", Or, S(J.name) + " " + S(J.resolution) + S(o.$t("units.km")) + " " + S(J.length) + S(o.$t("units.days")), 1),
|
|
5646
|
+
l("div", Br, S(o.$t("weather.source")) + ": " + S(J.provider), 1),
|
|
5647
|
+
(ie = (xe = (Ce = J == null ? void 0 : J.update) == null ? void 0 : Ce.default) == null ? void 0 : xe.meta) != null && ie.initialisationTime ? (b(), M("div", jr, S(o.$t("weather.lastUpdate")) + ": " + S(r.computeDateZ((Le = (N = (ue = J == null ? void 0 : J.update) == null ? void 0 : ue.default) == null ? void 0 : N.meta) == null ? void 0 : Le.initialisationTime)), 1)) : j("", !0)
|
|
5647
5648
|
], 64);
|
|
5648
5649
|
}), 128)),
|
|
5649
|
-
h(
|
|
5650
|
-
l("div", Er,
|
|
5651
|
-
(
|
|
5650
|
+
h(C),
|
|
5651
|
+
l("div", Er, S(o.$t("weather.marine")), 1),
|
|
5652
|
+
(b(!0), M(fe, null, _e((Re = (we = a.sourceList) == null ? void 0 : we.marine) == null ? void 0 : Re.filter((J) => J.model !== "best_match"), (J) => {
|
|
5652
5653
|
var Ce, xe, ie;
|
|
5653
|
-
return
|
|
5654
|
+
return b(), M(fe, {
|
|
5654
5655
|
key: `source${J.name}`
|
|
5655
5656
|
}, [
|
|
5656
|
-
l("div", Fr,
|
|
5657
|
-
l("div", Nr,
|
|
5658
|
-
l("div", Hr,
|
|
5657
|
+
l("div", Fr, S(J.name) + " " + S(J.resolution) + S(o.$t("units.km")) + " " + S(J.length) + S(o.$t("units.days")), 1),
|
|
5658
|
+
l("div", Nr, S(o.$t("weather.source")) + ": " + S(J.provider), 1),
|
|
5659
|
+
l("div", Hr, S(o.$t("weather.lastUpdate")) + ": " + S(r.computeDateZ((ie = (xe = (Ce = J == null ? void 0 : J.update) == null ? void 0 : Ce.default) == null ? void 0 : xe.meta) == null ? void 0 : ie.initialisationTime)), 1)
|
|
5659
5660
|
], 64);
|
|
5660
5661
|
}), 128))
|
|
5661
5662
|
];
|
|
@@ -5667,7 +5668,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5667
5668
|
})
|
|
5668
5669
|
], 2)
|
|
5669
5670
|
], 6),
|
|
5670
|
-
t.map ? (
|
|
5671
|
+
t.map ? (b(), V(P, E({
|
|
5671
5672
|
key: 0,
|
|
5672
5673
|
ref: "windBarb",
|
|
5673
5674
|
map: t.map,
|
|
@@ -5675,98 +5676,98 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5675
5676
|
"before-layer": "empty-layer-2",
|
|
5676
5677
|
wind: (K = a.weatherLayers) == null ? void 0 : K.wind,
|
|
5677
5678
|
"menu-toggle": t.menuToggle
|
|
5678
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
5679
|
-
t.map ? (
|
|
5679
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : j("", !0),
|
|
5680
|
+
t.map ? (b(), V(A, E({
|
|
5680
5681
|
key: 1,
|
|
5681
5682
|
map: t.map,
|
|
5682
5683
|
"before-layer": "empty-layer-2",
|
|
5683
5684
|
"sig-wave-height": (se = a.weatherLayers) == null ? void 0 : se["sig-wave-height"],
|
|
5684
5685
|
"menu-toggle": t.menuToggle,
|
|
5685
5686
|
"active-weather-layers": a.activeWeatherLayers
|
|
5686
|
-
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
5687
|
-
t.map ? (
|
|
5687
|
+
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : j("", !0),
|
|
5688
|
+
t.map ? (b(), V(T, E({
|
|
5688
5689
|
key: 2,
|
|
5689
5690
|
map: t.map,
|
|
5690
5691
|
"map-feather": t.mapFeather,
|
|
5691
5692
|
"before-layer": "empty-layer-2",
|
|
5692
5693
|
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
5693
5694
|
"menu-toggle": t.menuToggle
|
|
5694
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
5695
|
-
t.map ? (
|
|
5695
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : j("", !0),
|
|
5696
|
+
t.map ? (b(), V(z, E({
|
|
5696
5697
|
key: 3,
|
|
5697
5698
|
map: t.map,
|
|
5698
5699
|
"before-layer": "empty-layer-2",
|
|
5699
5700
|
prmsl: (pe = a.weatherLayers) == null ? void 0 : pe.prmsl,
|
|
5700
5701
|
"menu-toggle": t.menuToggle,
|
|
5701
5702
|
"active-weather-layers": a.activeWeatherLayers
|
|
5702
|
-
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) :
|
|
5703
|
-
t.map ? (
|
|
5703
|
+
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : j("", !0),
|
|
5704
|
+
t.map ? (b(), V(_, E({
|
|
5704
5705
|
key: 4,
|
|
5705
5706
|
viewport: a.viewport,
|
|
5706
5707
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
5707
5708
|
"menu-toggle": t.menuToggle
|
|
5708
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5709
|
-
t.map ? (
|
|
5709
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5710
|
+
t.map ? (b(), V(k, E({
|
|
5710
5711
|
key: 5,
|
|
5711
5712
|
viewport: a.viewport,
|
|
5712
5713
|
factor: (q = a.weatherLayers) == null ? void 0 : q["current-particle"],
|
|
5713
5714
|
"menu-toggle": t.menuToggle
|
|
5714
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5715
|
-
t.map ? (
|
|
5715
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5716
|
+
t.map ? (b(), V(L, E({
|
|
5716
5717
|
key: 6,
|
|
5717
5718
|
viewport: a.viewport,
|
|
5718
5719
|
factor: (I = a.weatherLayers) == null ? void 0 : I["sig-wave"],
|
|
5719
5720
|
"menu-toggle": t.menuToggle
|
|
5720
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5721
|
-
t.map ? (
|
|
5721
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5722
|
+
t.map ? (b(), V(v, E({
|
|
5722
5723
|
key: 7,
|
|
5723
5724
|
map: t.map,
|
|
5724
5725
|
swell: (ne = a.weatherLayers) == null ? void 0 : ne.swell,
|
|
5725
5726
|
"menu-toggle": t.menuToggle,
|
|
5726
5727
|
"active-weather-layers": a.activeWeatherLayers
|
|
5727
|
-
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) :
|
|
5728
|
-
t.map ? (
|
|
5728
|
+
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : j("", !0),
|
|
5729
|
+
t.map ? (b(), V(R, E({
|
|
5729
5730
|
key: 8,
|
|
5730
5731
|
viewport: a.viewport,
|
|
5731
5732
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["ice-edge"],
|
|
5732
5733
|
"menu-toggle": t.menuToggle
|
|
5733
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5734
|
-
t.map ? (
|
|
5734
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5735
|
+
t.map ? (b(), V(H, E({
|
|
5735
5736
|
key: 9,
|
|
5736
5737
|
viewport: a.viewport,
|
|
5737
5738
|
factor: (be = a.weatherLayers) == null ? void 0 : be["ice-cover"],
|
|
5738
5739
|
"menu-toggle": t.menuToggle
|
|
5739
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5740
|
-
t.map ? (
|
|
5740
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5741
|
+
t.map ? (b(), V(Y, E({
|
|
5741
5742
|
key: 10,
|
|
5742
5743
|
viewport: a.viewport,
|
|
5743
5744
|
factor: (ke = a.weatherLayers) == null ? void 0 : ke["ice-thickness"],
|
|
5744
5745
|
"menu-toggle": t.menuToggle
|
|
5745
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5746
|
-
t.map ? (
|
|
5746
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5747
|
+
t.map ? (b(), V(G, E({
|
|
5747
5748
|
key: 11,
|
|
5748
5749
|
viewport: a.viewport,
|
|
5749
5750
|
factor: (ze = a.weatherLayers) == null ? void 0 : ze.precip3h,
|
|
5750
5751
|
"menu-toggle": t.menuToggle
|
|
5751
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5752
|
-
t.map ? (
|
|
5752
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5753
|
+
t.map ? (b(), V(W, E({
|
|
5753
5754
|
key: 12,
|
|
5754
5755
|
viewport: a.viewport,
|
|
5755
5756
|
factor: (Se = a.weatherLayers) == null ? void 0 : Se.visibility,
|
|
5756
5757
|
"menu-toggle": t.menuToggle
|
|
5757
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5758
|
-
t.map ? (
|
|
5758
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5759
|
+
t.map ? (b(), V($, E({
|
|
5759
5760
|
key: 13,
|
|
5760
5761
|
viewport: a.viewport,
|
|
5761
5762
|
factor: (Me = a.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
5762
5763
|
"menu-toggle": t.menuToggle
|
|
5763
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5764
|
-
t.map ? (
|
|
5764
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0),
|
|
5765
|
+
t.map ? (b(), V(ee, E({
|
|
5765
5766
|
key: 14,
|
|
5766
5767
|
viewport: a.viewport,
|
|
5767
5768
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te.temp,
|
|
5768
5769
|
"menu-toggle": t.menuToggle
|
|
5769
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5770
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : j("", !0)
|
|
5770
5771
|
]);
|
|
5771
5772
|
}
|
|
5772
5773
|
const Wr = /* @__PURE__ */ X(Lr, [["render", Gr]]), We = [
|
|
@@ -6087,18 +6088,18 @@ class Go {
|
|
|
6087
6088
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6088
6089
|
for (const c of a) {
|
|
6089
6090
|
let n = We.find((d) => {
|
|
6090
|
-
var m,
|
|
6091
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((
|
|
6091
|
+
var m, f, y;
|
|
6092
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((y = d.name) == null ? void 0 : y.toLowerCase()) === c;
|
|
6092
6093
|
}), p = Ue.find((d) => {
|
|
6093
|
-
var m,
|
|
6094
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((
|
|
6094
|
+
var m, f, y;
|
|
6095
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((y = d.name) == null ? void 0 : y.toLowerCase()) === c;
|
|
6095
6096
|
});
|
|
6096
6097
|
n = n || We.find((d) => {
|
|
6097
|
-
var m,
|
|
6098
|
-
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((
|
|
6098
|
+
var m, f;
|
|
6099
|
+
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = p == null ? void 0 : p.alias) == null ? void 0 : f.toLowerCase());
|
|
6099
6100
|
}), p = p || Ue.find((d) => {
|
|
6100
|
-
var m,
|
|
6101
|
-
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((
|
|
6101
|
+
var m, f;
|
|
6102
|
+
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
|
|
6102
6103
|
}), n = n || We[0], p = p || Ue[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
|
|
6103
6104
|
}
|
|
6104
6105
|
return {
|
|
@@ -6116,47 +6117,47 @@ class Go {
|
|
|
6116
6117
|
}), a;
|
|
6117
6118
|
}
|
|
6118
6119
|
static pickHourly(e, t) {
|
|
6119
|
-
var i, a, r, s, c, n, p, d, m,
|
|
6120
|
-
const ie = typeof t == "string" ?
|
|
6120
|
+
var i, a, r, s, c, n, p, d, m, f, y, w, C, P, A, T, z, _, k, L, v, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te, de, we, Re, J, Ce, xe;
|
|
6121
|
+
const ie = typeof t == "string" ? O(t) : t, ue = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, Le = O((a = (i = ue == null ? void 0 : ue[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Le.clone().add((c = (s = (r = ue == null ? void 0 : ue[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = Le.clone().add((d = (p = (n = ue == null ? void 0 : ue[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ee = [];
|
|
6121
6122
|
if (ie.isBetween(oe, re, "millisecond", "[]")) {
|
|
6122
|
-
const
|
|
6123
|
+
const B = ie.utc().diff(oe, "h", !1);
|
|
6123
6124
|
let ye, Oe;
|
|
6124
6125
|
if (ue) {
|
|
6125
6126
|
let Fe = 0, Ne = 0;
|
|
6126
|
-
for (const
|
|
6127
|
-
const Z =
|
|
6128
|
-
for (let Ae =
|
|
6127
|
+
for (const D of ue) {
|
|
6128
|
+
const Z = D == null ? void 0 : D.hourly;
|
|
6129
|
+
for (let Ae = B - (B - 1) % 3; Ae <= B; Ae++)
|
|
6129
6130
|
Fe += (m = Z == null ? void 0 : Z.precipitation) == null ? void 0 : m.at(Ae);
|
|
6130
|
-
for (let Ae =
|
|
6131
|
-
Ne += (
|
|
6131
|
+
for (let Ae = B - (B - 1) % 6; Ae <= B; Ae++)
|
|
6132
|
+
Ne += (f = Z == null ? void 0 : Z.precipitation) == null ? void 0 : f.at(Ae);
|
|
6132
6133
|
ye = {
|
|
6133
|
-
temp: (
|
|
6134
|
-
apparentTemp: (
|
|
6135
|
-
rh: (
|
|
6136
|
-
dp: (P = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : P.at(
|
|
6134
|
+
temp: (y = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : y.at(B),
|
|
6135
|
+
apparentTemp: (w = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : w.at(B),
|
|
6136
|
+
rh: (C = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : C.at(B),
|
|
6137
|
+
dp: (P = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : P.at(B),
|
|
6137
6138
|
precip: {
|
|
6138
|
-
probability: (
|
|
6139
|
-
sum: (T = Z == null ? void 0 : Z.precipitation) == null ? void 0 : T.at(
|
|
6139
|
+
probability: (A = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : A.at(B),
|
|
6140
|
+
sum: (T = Z == null ? void 0 : Z.precipitation) == null ? void 0 : T.at(B),
|
|
6140
6141
|
sum3Hours: Math.round(Fe * 100) / 100,
|
|
6141
6142
|
sum6Hours: Math.round(Ne * 100) / 100
|
|
6142
6143
|
},
|
|
6143
|
-
pmsl: (
|
|
6144
|
-
psurf: (
|
|
6145
|
-
code: (
|
|
6146
|
-
visibility: this.m2nm((
|
|
6144
|
+
pmsl: (z = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : z.at(B),
|
|
6145
|
+
psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(B),
|
|
6146
|
+
code: (k = Z == null ? void 0 : Z.weather_code) == null ? void 0 : k.at(B),
|
|
6147
|
+
visibility: this.m2nm((L = Z == null ? void 0 : Z.visibility) == null ? void 0 : L.at(B)),
|
|
6147
6148
|
wind: {
|
|
6148
|
-
speed: (
|
|
6149
|
-
kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(
|
|
6150
|
-
degree: (H = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : H.at(
|
|
6151
|
-
bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(
|
|
6152
|
-
gusts: (W = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : W.at(
|
|
6149
|
+
speed: (v = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : v.at(B),
|
|
6150
|
+
kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(B),
|
|
6151
|
+
degree: (H = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : H.at(B),
|
|
6152
|
+
bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(B)) !== null ? (((G = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : G.at(B)) + 180) % 360 : null,
|
|
6153
|
+
gusts: (W = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : W.at(B)
|
|
6153
6154
|
},
|
|
6154
|
-
isDay: ($ = Z == null ? void 0 : Z.is_day) == null ? void 0 : $.at(
|
|
6155
|
+
isDay: ($ = Z == null ? void 0 : Z.is_day) == null ? void 0 : $.at(B)
|
|
6155
6156
|
};
|
|
6156
6157
|
const { name: Ye, url: Ze, bg: Xe } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
6157
6158
|
ye.name = Ye, ye.url = Ze, ye.bg = Xe, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Ee.push({
|
|
6158
|
-
utc: oe.add(
|
|
6159
|
-
model:
|
|
6159
|
+
utc: oe.add(B, "h").format(),
|
|
6160
|
+
model: D.model,
|
|
6160
6161
|
weather: { ...ye }
|
|
6161
6162
|
});
|
|
6162
6163
|
}
|
|
@@ -6164,38 +6165,38 @@ class Go {
|
|
|
6164
6165
|
if (N) {
|
|
6165
6166
|
let Fe = 0;
|
|
6166
6167
|
for (const Ne of N) {
|
|
6167
|
-
const
|
|
6168
|
+
const D = Ne == null ? void 0 : Ne.hourly;
|
|
6168
6169
|
Oe = {
|
|
6169
6170
|
wave: {
|
|
6170
6171
|
sig: {
|
|
6171
|
-
height: (ee =
|
|
6172
|
-
degree: (K =
|
|
6173
|
-
bearing: ((se =
|
|
6174
|
-
period: (pe =
|
|
6172
|
+
height: (ee = D == null ? void 0 : D.wave_height) == null ? void 0 : ee.at(B),
|
|
6173
|
+
degree: (K = D == null ? void 0 : D.wave_direction) == null ? void 0 : K.at(B),
|
|
6174
|
+
bearing: ((se = D == null ? void 0 : D.wave_direction) == null ? void 0 : se.at(B)) !== null ? (((me = D == null ? void 0 : D.wave_direction) == null ? void 0 : me.at(B)) + 180) % 360 : null,
|
|
6175
|
+
period: (pe = D == null ? void 0 : D.wave_period) == null ? void 0 : pe.at(B)
|
|
6175
6176
|
},
|
|
6176
6177
|
swell: {
|
|
6177
|
-
height: (he =
|
|
6178
|
-
degree: (q =
|
|
6179
|
-
bearing: ((I =
|
|
6180
|
-
period: (ge =
|
|
6181
|
-
peakPeriod: (be =
|
|
6178
|
+
height: (he = D == null ? void 0 : D.swell_wave_height) == null ? void 0 : he.at(B),
|
|
6179
|
+
degree: (q = D == null ? void 0 : D.swell_wave_direction) == null ? void 0 : q.at(B),
|
|
6180
|
+
bearing: ((I = D == null ? void 0 : D.swell_wave_direction) == null ? void 0 : I.at(B)) !== null ? (((ne = D == null ? void 0 : D.swell_wave_direction) == null ? void 0 : ne.at(B)) + 180) % 360 : null,
|
|
6181
|
+
period: (ge = D == null ? void 0 : D.swell_wave_period) == null ? void 0 : ge.at(B),
|
|
6182
|
+
peakPeriod: (be = D == null ? void 0 : D.swell_wave_peak_period) == null ? void 0 : be.at(B)
|
|
6182
6183
|
},
|
|
6183
6184
|
wd: {
|
|
6184
|
-
height: (ke =
|
|
6185
|
-
degree: (ze =
|
|
6186
|
-
bearing: ((Se =
|
|
6187
|
-
period: (Te =
|
|
6188
|
-
peakPeriod: (te =
|
|
6185
|
+
height: (ke = D == null ? void 0 : D.wind_wave_height) == null ? void 0 : ke.at(B),
|
|
6186
|
+
degree: (ze = D == null ? void 0 : D.wind_wave_direction) == null ? void 0 : ze.at(B),
|
|
6187
|
+
bearing: ((Se = D == null ? void 0 : D.wind_wave_direction) == null ? void 0 : Se.at(B)) !== null ? (((Me = D == null ? void 0 : D.wind_wave_direction) == null ? void 0 : Me.at(B)) + 180) % 360 : null,
|
|
6188
|
+
period: (Te = D == null ? void 0 : D.wind_wave_period) == null ? void 0 : Te.at(B),
|
|
6189
|
+
peakPeriod: (te = D == null ? void 0 : D.wind_wave_peak_period) == null ? void 0 : te.at(B)
|
|
6189
6190
|
}
|
|
6190
6191
|
},
|
|
6191
6192
|
current: {
|
|
6192
|
-
speed: (de =
|
|
6193
|
-
kts: (we =
|
|
6194
|
-
degree: (Re =
|
|
6195
|
-
bearing: ((J =
|
|
6193
|
+
speed: (de = D == null ? void 0 : D.ocean_current_velocity) == null ? void 0 : de.at(B),
|
|
6194
|
+
kts: (we = D == null ? void 0 : D.ocean_current_velocity) == null ? void 0 : we.at(B),
|
|
6195
|
+
degree: (Re = D == null ? void 0 : D.ocean_current_direction) == null ? void 0 : Re.at(B),
|
|
6196
|
+
bearing: ((J = D == null ? void 0 : D.ocean_current_direction) == null ? void 0 : J.at(B)) ?? null
|
|
6196
6197
|
},
|
|
6197
|
-
sst: (Ce =
|
|
6198
|
-
height: (xe =
|
|
6198
|
+
sst: (Ce = D == null ? void 0 : D.sea_surface_temperature) == null ? void 0 : Ce.at(B),
|
|
6199
|
+
height: (xe = D == null ? void 0 : D.sea_level_height_msl) == null ? void 0 : xe.at(B)
|
|
6199
6200
|
}, Oe.wave = this.parseWave(Oe.wave, ye == null ? void 0 : ye.wind), Oe.current.direction = this.degree2Direction(Oe.current.degree), Object.assign(Ee[Fe], Oe), Fe++;
|
|
6200
6201
|
}
|
|
6201
6202
|
}
|
|
@@ -6225,8 +6226,8 @@ class Go {
|
|
|
6225
6226
|
};
|
|
6226
6227
|
}
|
|
6227
6228
|
static pickDaily(e, t) {
|
|
6228
|
-
var i, a, r, s, c, n, p, d, m,
|
|
6229
|
-
const de = typeof t == "string" ?
|
|
6229
|
+
var i, a, r, s, c, n, p, d, m, f, y, w, C, P, A, T, z, _, k, L, v, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te;
|
|
6230
|
+
const de = typeof t == "string" ? O(t) : t, we = e == null ? void 0 : e.weather, Re = e == null ? void 0 : e.marine, J = O((r = (a = (i = we == null ? void 0 : we[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ce = O((n = (c = (s = we == null ? void 0 : we[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), xe = [];
|
|
6230
6231
|
if (de.isBetween(J, Ce, "millisecond", "[]")) {
|
|
6231
6232
|
let ie, ue;
|
|
6232
6233
|
const N = de.diff(J, "d", !1);
|
|
@@ -6238,24 +6239,24 @@ class Go {
|
|
|
6238
6239
|
temp: {
|
|
6239
6240
|
max: (d = oe.temperature_2m_max) == null ? void 0 : d.at(N),
|
|
6240
6241
|
min: (m = oe.temperature_2m_min) == null ? void 0 : m.at(N),
|
|
6241
|
-
mean: (
|
|
6242
|
+
mean: (f = oe.temperature_2m_mean) == null ? void 0 : f.at(N)
|
|
6242
6243
|
},
|
|
6243
6244
|
apparentTemp: {
|
|
6244
|
-
max: (
|
|
6245
|
-
min: (
|
|
6245
|
+
max: (y = oe.apparent_temperature_max) == null ? void 0 : y.at(N),
|
|
6246
|
+
min: (w = oe.apparent_temperature_min) == null ? void 0 : w.at(N)
|
|
6246
6247
|
},
|
|
6247
6248
|
precip: {
|
|
6248
|
-
sum: (
|
|
6249
|
+
sum: (C = oe.precipitation_sum) == null ? void 0 : C.at(N),
|
|
6249
6250
|
rainSum: (P = oe.rain_sum) == null ? void 0 : P.at(N),
|
|
6250
|
-
snowfallSum: (
|
|
6251
|
+
snowfallSum: (A = oe.snowfall_sum) == null ? void 0 : A.at(N),
|
|
6251
6252
|
showersSum: (T = oe.showers_sum) == null ? void 0 : T.at(N),
|
|
6252
|
-
hours: (
|
|
6253
|
-
probability: (
|
|
6253
|
+
hours: (z = oe.precipitation_hours) == null ? void 0 : z.at(N),
|
|
6254
|
+
probability: (_ = oe.precipitation_probability_max) == null ? void 0 : _.at(N)
|
|
6254
6255
|
},
|
|
6255
6256
|
rh: {
|
|
6256
|
-
max: (
|
|
6257
|
-
min: (
|
|
6258
|
-
mean: (
|
|
6257
|
+
max: (k = oe.relative_humidity_2m_max) == null ? void 0 : k.at(N),
|
|
6258
|
+
min: (L = oe.relative_humidity_2m_min) == null ? void 0 : L.at(N),
|
|
6259
|
+
mean: (v = oe.relative_humidity_2m_mean) == null ? void 0 : v.at(N)
|
|
6259
6260
|
},
|
|
6260
6261
|
wind: {
|
|
6261
6262
|
speed: (R = oe.wind_speed_10m_max) == null ? void 0 : R.at(N),
|
|
@@ -6265,8 +6266,8 @@ class Go {
|
|
|
6265
6266
|
bearing: ((W = oe.wind_direction_10m_dominant) == null ? void 0 : W.at(N)) !== null ? ((($ = oe.wind_direction_10m_dominant) == null ? void 0 : $.at(N)) + 180) % 360 : null
|
|
6266
6267
|
}
|
|
6267
6268
|
};
|
|
6268
|
-
const { name: re, url: Ee, bg:
|
|
6269
|
-
ie.name = re, ie.url = Ee, ie.bg =
|
|
6269
|
+
const { name: re, url: Ee, bg: B } = this.parseWeatherCode(ie.code, !0);
|
|
6270
|
+
ie.name = re, ie.url = Ee, ie.bg = B, ie.wind.scale = this.beaufort(this.kts2ms(ie.wind.kts)), ie.wind.direction = this.degree2Direction(ie.wind.degree), xe.push({
|
|
6270
6271
|
utc: J.add(N, "d").utc().format(),
|
|
6271
6272
|
model: Le.model,
|
|
6272
6273
|
weather: { ...ie }
|
|
@@ -6779,7 +6780,7 @@ const Ur = {
|
|
|
6779
6780
|
computeTime() {
|
|
6780
6781
|
return function(o) {
|
|
6781
6782
|
if (o) {
|
|
6782
|
-
const e =
|
|
6783
|
+
const e = O(o).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
6783
6784
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
6784
6785
|
}
|
|
6785
6786
|
return "-";
|
|
@@ -6858,9 +6859,9 @@ const Ur = {
|
|
|
6858
6859
|
},
|
|
6859
6860
|
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
6860
6861
|
}).then((d) => {
|
|
6861
|
-
var
|
|
6862
|
-
const m = Ho.convert2Geojson(((
|
|
6863
|
-
((
|
|
6862
|
+
var y, w, C;
|
|
6863
|
+
const m = Ho.convert2Geojson(((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data));
|
|
6864
|
+
((C = (w = d == null ? void 0 : d.config) == null ? void 0 : w.headers) == null ? void 0 : C.key) && m && (this.tropicals = {
|
|
6864
6865
|
data: m,
|
|
6865
6866
|
active: !0,
|
|
6866
6867
|
cached: !0,
|
|
@@ -6879,7 +6880,7 @@ const Ur = {
|
|
|
6879
6880
|
var e, t;
|
|
6880
6881
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((i) => {
|
|
6881
6882
|
var a, r;
|
|
6882
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format =
|
|
6883
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = O(i.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
6883
6884
|
}), this.handleInit();
|
|
6884
6885
|
},
|
|
6885
6886
|
handleInit() {
|
|
@@ -6908,8 +6909,8 @@ const Ur = {
|
|
|
6908
6909
|
else {
|
|
6909
6910
|
if (this.tropicals) {
|
|
6910
6911
|
const m = (/* @__PURE__ */ new Date()).valueOf();
|
|
6911
|
-
let
|
|
6912
|
-
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
6912
|
+
let f = 0, y = 0;
|
|
6913
|
+
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), y = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropicals] update elapsed: ", y, ", total: ", f += y)) : (this.map.addSource(this.source, {
|
|
6913
6914
|
type: "geojson",
|
|
6914
6915
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
6915
6916
|
}), this.map.addLayer({
|
|
@@ -7006,7 +7007,7 @@ const Ur = {
|
|
|
7006
7007
|
],
|
|
7007
7008
|
"text-halo-width": 4
|
|
7008
7009
|
}
|
|
7009
|
-
}),
|
|
7010
|
+
}), y = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", y, ", total: ", f += y)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), y = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] update elapsed: ", y, ", total: ", f += y)) : (this.map.addSource(this.clusterSource, {
|
|
7010
7011
|
type: "geojson",
|
|
7011
7012
|
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
7012
7013
|
// cluster: true,
|
|
@@ -7123,7 +7124,7 @@ const Ur = {
|
|
|
7123
7124
|
"text-halo-color": "#0033ff",
|
|
7124
7125
|
"text-halo-width": 4
|
|
7125
7126
|
}
|
|
7126
|
-
}),
|
|
7127
|
+
}), y = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", y, ", total: ", f += y));
|
|
7127
7128
|
}
|
|
7128
7129
|
this.handleDrawCircle();
|
|
7129
7130
|
const d = Ho.interpolate(this.tropicals, 1);
|
|
@@ -7148,9 +7149,9 @@ const Ur = {
|
|
|
7148
7149
|
);
|
|
7149
7150
|
},
|
|
7150
7151
|
handleDateChange() {
|
|
7151
|
-
var o, e, t, i, a, r, s, c, n, p, d, m,
|
|
7152
|
+
var o, e, t, i, a, r, s, c, n, p, d, m, f, y, w, C, P, A, T, z, _, k, L, v, R, H, Y, G, W, $, ee, K;
|
|
7152
7153
|
if ((o = this.interpolateMarkers) == null || o.forEach((se) => se == null ? void 0 : se.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7153
|
-
const se =
|
|
7154
|
+
const se = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((q) => q.properties.date === se.format() && !q.properties.disabled), pe = this.handleComputePolygons(me), he = F.featureCollection([...me]);
|
|
7154
7155
|
pe.forEach((q) => {
|
|
7155
7156
|
he.features.push(q);
|
|
7156
7157
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(he) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -7170,7 +7171,7 @@ const Ur = {
|
|
|
7170
7171
|
for (const q of me)
|
|
7171
7172
|
if (!q.properties.disabled) {
|
|
7172
7173
|
let I = "#f44336";
|
|
7173
|
-
((c = (s = q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = q.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = q.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((
|
|
7174
|
+
((c = (s = q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = q.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = q.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((y = (f = q.properties) == null ? void 0 : f.wind) == null ? void 0 : y.kts) < 47 ? I = "#f2f202" : ((C = (w = q.properties) == null ? void 0 : w.wind) == null ? void 0 : C.kts) >= 47 && ((A = (P = q.properties) == null ? void 0 : P.wind) == null ? void 0 : A.kts) < 63 ? I = "#ff9100" : ((z = (T = q.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) >= 63 && ((k = (_ = q.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? I = "#f44336" : ((v = (L = q.properties) == null ? void 0 : L.wind) == null ? void 0 : v.kts) >= 79 && ((H = (R = q.properties) == null ? void 0 : R.wind) == null ? void 0 : H.kts) < 94 ? I = "#f903d0" : ((G = (Y = q.properties) == null ? void 0 : Y.wind) == null ? void 0 : G.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
|
|
7174
7175
|
const ne = `<svg t="1719918955501"
|
|
7175
7176
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7176
7177
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7194,23 +7195,23 @@ const Ur = {
|
|
|
7194
7195
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
|
|
7195
7196
|
},
|
|
7196
7197
|
handleClick(o) {
|
|
7197
|
-
var r, s, c, n, p, d, m,
|
|
7198
|
+
var r, s, c, n, p, d, m, f;
|
|
7198
7199
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7199
|
-
(
|
|
7200
|
-
var
|
|
7201
|
-
return
|
|
7200
|
+
(y) => {
|
|
7201
|
+
var w;
|
|
7202
|
+
return y.geometry.type === "LineString" && y.properties.type === "forecast" && y.properties.name === ((w = e == null ? void 0 : e.properties) == null ? void 0 : w.name);
|
|
7202
7203
|
}
|
|
7203
7204
|
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
7204
|
-
(
|
|
7205
|
-
var
|
|
7206
|
-
return
|
|
7205
|
+
(y) => {
|
|
7206
|
+
var w;
|
|
7207
|
+
return y.geometry.type === "LineString" && y.properties.type === "history" && y.properties.name === ((w = e == null ? void 0 : e.properties) == null ? void 0 : w.name);
|
|
7207
7208
|
}
|
|
7208
7209
|
);
|
|
7209
7210
|
this.activeTropicals = {
|
|
7210
7211
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
7211
|
-
forecasts: t.map((
|
|
7212
|
+
forecasts: t.map((y) => y.properties),
|
|
7212
7213
|
history: (d = i[0]) == null ? void 0 : d.properties,
|
|
7213
|
-
showCircle: (
|
|
7214
|
+
showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
|
|
7214
7215
|
}, this.showTropicalsInfo = !0;
|
|
7215
7216
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
7216
7217
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new Pe.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -7300,8 +7301,8 @@ const Ur = {
|
|
|
7300
7301
|
}
|
|
7301
7302
|
}, Vr = { class: "idm-tropical-gl4" }, Yr = { key: 0 }, Zr = { class: "text-body-2 opacity-50" }, Xr = { class: "pa-1 d-flex justify-space-between align-center" }, qr = { class: "col col-left justify-start" }, Kr = { class: "col col-right justify-start" }, Jr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Qr = { class: "d-flex justify-space-between align-center col-left justify-start" }, $r = { class: "d-flex justify-space-between align-center col-right" }, el = { class: "pa-1 d-flex justify-space-between align-center" }, tl = { class: "d-flex justify-space-between align-center flex-1-1-100" }, ol = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, al = ["onClick"];
|
|
7302
7303
|
function il(o, e, t, i, a, r) {
|
|
7303
|
-
const s =
|
|
7304
|
-
return
|
|
7304
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), p = x("VCardSubtitle"), d = x("VCardItem"), m = x("VCardText"), f = x("VCard");
|
|
7305
|
+
return b(), M("div", Vr, [
|
|
7305
7306
|
l("div", {
|
|
7306
7307
|
class: "menu-bar-box transition pa-1",
|
|
7307
7308
|
style: Q({ top: t.top + 134 + "px", right: a.right + "px" })
|
|
@@ -7310,8 +7311,8 @@ function il(o, e, t, i, a, r) {
|
|
|
7310
7311
|
text: o.$t("tropical.tropicals"),
|
|
7311
7312
|
location: "left"
|
|
7312
7313
|
}, {
|
|
7313
|
-
activator: g(({ props:
|
|
7314
|
-
h(s,
|
|
7314
|
+
activator: g(({ props: y }) => [
|
|
7315
|
+
h(s, E(y, {
|
|
7315
7316
|
"min-width": "32",
|
|
7316
7317
|
width: "32",
|
|
7317
7318
|
height: "32",
|
|
@@ -7329,7 +7330,7 @@ function il(o, e, t, i, a, r) {
|
|
|
7329
7330
|
_: 1
|
|
7330
7331
|
}, 8, ["text"])
|
|
7331
7332
|
], 4),
|
|
7332
|
-
He(h(
|
|
7333
|
+
He(h(f, {
|
|
7333
7334
|
id: "idm-tropical-gl4-info",
|
|
7334
7335
|
class: "idm-tropical-gl4-info my-4",
|
|
7335
7336
|
width: "400",
|
|
@@ -7343,11 +7344,11 @@ function il(o, e, t, i, a, r) {
|
|
|
7343
7344
|
style: { "font-size": "16px !important" }
|
|
7344
7345
|
}, {
|
|
7345
7346
|
default: g(() => {
|
|
7346
|
-
var
|
|
7347
|
+
var y, w, C, P, A;
|
|
7347
7348
|
return [
|
|
7348
7349
|
l("div", null, [
|
|
7349
|
-
(
|
|
7350
|
-
U(
|
|
7350
|
+
(w = (y = a.activeTropicals) == null ? void 0 : y.history) != null && w.level ? (b(), M("span", Yr, S((P = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : P.level) + " , ", 1)) : j("", !0),
|
|
7351
|
+
U(S((A = a.activeTropicals) == null ? void 0 : A.name), 1)
|
|
7351
7352
|
]),
|
|
7352
7353
|
h(s, {
|
|
7353
7354
|
icon: "$close",
|
|
@@ -7362,9 +7363,9 @@ function il(o, e, t, i, a, r) {
|
|
|
7362
7363
|
}),
|
|
7363
7364
|
h(p, null, {
|
|
7364
7365
|
default: g(() => {
|
|
7365
|
-
var
|
|
7366
|
+
var y, w, C, P, A;
|
|
7366
7367
|
return [
|
|
7367
|
-
l("span", Zr, " Last update: " +
|
|
7368
|
+
l("span", Zr, " Last update: " + S(r.computeTime(((w = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : w.updated) || ((A = (P = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : P.filter((T) => !T.disabled)[0]) == null ? void 0 : A.date))), 1)
|
|
7368
7369
|
];
|
|
7369
7370
|
}),
|
|
7370
7371
|
_: 1
|
|
@@ -7374,47 +7375,47 @@ function il(o, e, t, i, a, r) {
|
|
|
7374
7375
|
}),
|
|
7375
7376
|
h(m, { class: "main-box" }, {
|
|
7376
7377
|
default: g(() => {
|
|
7377
|
-
var
|
|
7378
|
+
var y, w, C, P, A, T, z, _, k;
|
|
7378
7379
|
return [
|
|
7379
7380
|
l("div", Xr, [
|
|
7380
7381
|
l("div", qr, [
|
|
7381
7382
|
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
7382
|
-
l("span", null,
|
|
7383
|
-
l("span", null, ", BF " +
|
|
7383
|
+
l("span", null, S(((w = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : w.kts) || "-") + " [kts]", 1),
|
|
7384
|
+
l("span", null, ", BF " + S(r.computeBF(((P = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : P.kts) || 0)), 1)
|
|
7384
7385
|
]),
|
|
7385
7386
|
l("div", Kr, [
|
|
7386
7387
|
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
7387
|
-
l("span", null,
|
|
7388
|
+
l("span", null, S(((T = (A = a.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : T.pressure) || "-") + " [hPa]", 1)
|
|
7388
7389
|
])
|
|
7389
7390
|
]),
|
|
7390
7391
|
l("div", Jr, [
|
|
7391
7392
|
l("div", Qr, [
|
|
7392
7393
|
e[4] || (e[4] = l("label", null, "Move Speed: ", -1)),
|
|
7393
|
-
l("span", null,
|
|
7394
|
+
l("span", null, S((z = r.computeMovement(a.activeTropicals)) == null ? void 0 : z.kts) + " [kts]", 1)
|
|
7394
7395
|
]),
|
|
7395
7396
|
l("div", $r, [
|
|
7396
7397
|
e[5] || (e[5] = l("label", null, "Move Dir: ", -1)),
|
|
7397
|
-
l("span", null,
|
|
7398
|
+
l("span", null, S((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) + " [°]", 1)
|
|
7398
7399
|
])
|
|
7399
7400
|
]),
|
|
7400
7401
|
l("div", el, [
|
|
7401
7402
|
l("div", tl, [
|
|
7402
7403
|
e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
7403
7404
|
l("div", ol, [
|
|
7404
|
-
(
|
|
7405
|
+
(b(!0), M(fe, null, _e((k = a.activeTropicals) == null ? void 0 : k.forecasts, (L, v) => {
|
|
7405
7406
|
var R, H, Y, G;
|
|
7406
|
-
return
|
|
7407
|
-
key:
|
|
7407
|
+
return b(), M("div", {
|
|
7408
|
+
key: v,
|
|
7408
7409
|
class: je([
|
|
7409
7410
|
"model",
|
|
7410
|
-
|
|
7411
|
-
|
|
7411
|
+
L.disabled ? "" : "active",
|
|
7412
|
+
v > 0 && v < ((H = (R = a.activeTropicals) == null ? void 0 : R.forecasts) == null ? void 0 : H.length) - 1 && ((G = (Y = a.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : G.length) > 2 ? "center-child" : ""
|
|
7412
7413
|
]),
|
|
7413
|
-
onClick: (W) => r.handleForecastToggle(
|
|
7414
|
+
onClick: (W) => r.handleForecastToggle(L)
|
|
7414
7415
|
}, [
|
|
7415
7416
|
l("span", {
|
|
7416
|
-
class: je(
|
|
7417
|
-
},
|
|
7417
|
+
class: je(L.model)
|
|
7418
|
+
}, S(L.model), 3)
|
|
7418
7419
|
], 10, al);
|
|
7419
7420
|
}), 128))
|
|
7420
7421
|
])
|
|
@@ -7516,7 +7517,7 @@ const rl = {
|
|
|
7516
7517
|
},
|
|
7517
7518
|
computed: {
|
|
7518
7519
|
currentYear() {
|
|
7519
|
-
return
|
|
7520
|
+
return O(this.currentTimestamp).format("YYYY");
|
|
7520
7521
|
},
|
|
7521
7522
|
hourOptions() {
|
|
7522
7523
|
const o = [];
|
|
@@ -7525,11 +7526,11 @@ const rl = {
|
|
|
7525
7526
|
return o.filter((e, t) => (t - this.timeZone) % this.intervalHour === 0);
|
|
7526
7527
|
},
|
|
7527
7528
|
timeZoneNames() {
|
|
7528
|
-
return
|
|
7529
|
+
return O.tz.names();
|
|
7529
7530
|
},
|
|
7530
7531
|
timeZoneName() {
|
|
7531
7532
|
var o;
|
|
7532
|
-
return (o = this.timeZoneNames.filter((e) =>
|
|
7533
|
+
return (o = this.timeZoneNames.filter((e) => O.tz(O(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : o[0];
|
|
7533
7534
|
},
|
|
7534
7535
|
utcTimeZoneName() {
|
|
7535
7536
|
return "Africa/Abidjan";
|
|
@@ -7559,7 +7560,7 @@ const rl = {
|
|
|
7559
7560
|
},
|
|
7560
7561
|
currentTimestamp: {
|
|
7561
7562
|
handler() {
|
|
7562
|
-
this.currentDateTimeZ =
|
|
7563
|
+
this.currentDateTimeZ = O(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
7563
7564
|
},
|
|
7564
7565
|
immediate: !0
|
|
7565
7566
|
}
|
|
@@ -7573,41 +7574,41 @@ const rl = {
|
|
|
7573
7574
|
},
|
|
7574
7575
|
handleResetDateTime(o) {
|
|
7575
7576
|
var a;
|
|
7576
|
-
const e =
|
|
7577
|
-
this.currentTimestamp = ((a =
|
|
7578
|
-
const i =
|
|
7579
|
-
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${
|
|
7577
|
+
const e = O(o).utc().date(), t = Math.ceil(O(o).utc().hour() / 3) * 3;
|
|
7578
|
+
this.currentTimestamp = ((a = O(o)) == null ? void 0 : a.utc().set({ date: e, hour: t, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
|
|
7579
|
+
const i = O.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
7580
|
+
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${O.tz(O().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`, this.$emit("currentRealTime", this.currentRealTime);
|
|
7580
7581
|
},
|
|
7581
7582
|
handleResetDateRange() {
|
|
7582
7583
|
var a, r, s;
|
|
7583
7584
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
7584
7585
|
return;
|
|
7585
|
-
const o =
|
|
7586
|
+
const o = O().utc().date(), e = Math.ceil(O().utc().hour() / 3) * 3, t = ((a = O()) == null ? void 0 : a.utc().set({ date: o, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = O.tz(t, this.timeZoneName).clone();
|
|
7586
7587
|
this.dateRange = [
|
|
7587
7588
|
i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"),
|
|
7588
7589
|
i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD")
|
|
7589
7590
|
], this.timestampRange = [
|
|
7590
|
-
((r =
|
|
7591
|
-
((s =
|
|
7591
|
+
((r = O()) == null ? void 0 : r.utc().set({ date: o + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3,
|
|
7592
|
+
((s = O()) == null ? void 0 : s.utc().set({ date: o + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3
|
|
7592
7593
|
], this.$emit("timestampRange", this.timestampRange);
|
|
7593
7594
|
},
|
|
7594
7595
|
handleOpenDatePicker() {
|
|
7595
7596
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
7596
7597
|
},
|
|
7597
7598
|
handleUpdateMonth(o) {
|
|
7598
|
-
const e = o ||
|
|
7599
|
+
const e = o || O.tz(this.currentTimestamp, this.timeZoneName).clone().month(), t = this.locale === "en" ? O.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : O.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
|
|
7599
7600
|
this.$nextTick(() => {
|
|
7600
7601
|
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
7601
7602
|
i.innerText = t;
|
|
7602
7603
|
});
|
|
7603
7604
|
},
|
|
7604
7605
|
handleConfirmDate() {
|
|
7605
|
-
const o =
|
|
7606
|
+
const o = O(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, t = `${o} ${e}`, i = O.tz(t, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
|
|
7606
7607
|
this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
|
|
7607
7608
|
},
|
|
7608
7609
|
handleCancelDate() {
|
|
7609
7610
|
this.showDatePicker = !1;
|
|
7610
|
-
const o =
|
|
7611
|
+
const o = O.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
7611
7612
|
this.currentDate = o.clone().format("YYYY-MM-DD"), this.currentTime = o.clone().format("HH:00");
|
|
7612
7613
|
}
|
|
7613
7614
|
}
|
|
@@ -7622,30 +7623,30 @@ const rl = {
|
|
|
7622
7623
|
style: { height: "56px" }
|
|
7623
7624
|
};
|
|
7624
7625
|
function ml(o, e, t, i, a, r) {
|
|
7625
|
-
const s =
|
|
7626
|
-
return
|
|
7626
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), p = x("VListItemTitle"), d = x("VListItem"), m = x("VList"), f = x("VCardText"), y = x("VCardActions"), w = x("VCard");
|
|
7627
|
+
return b(), M("div", ll, [
|
|
7627
7628
|
h(s, {
|
|
7628
7629
|
text: "",
|
|
7629
7630
|
height: "30",
|
|
7630
|
-
class: "elevation-0 nop-btn-border",
|
|
7631
|
+
class: "elevation-0 text-body-1 px-2 nop-btn-border",
|
|
7631
7632
|
onClick: r.handleOpenDatePicker
|
|
7632
7633
|
}, {
|
|
7633
7634
|
default: g(() => [
|
|
7634
|
-
U(
|
|
7635
|
+
U(S(a.currentDateTime) + " | UTC " + S(t.timeZone < 0 ? t.timeZone : "+" + t.timeZone), 1)
|
|
7635
7636
|
]),
|
|
7636
7637
|
_: 1
|
|
7637
7638
|
}, 8, ["onClick"]),
|
|
7638
|
-
a.showDatePicker ? (
|
|
7639
|
+
a.showDatePicker ? (b(), V(w, {
|
|
7639
7640
|
key: 0,
|
|
7640
7641
|
class: "card-box d-flex flex-column"
|
|
7641
7642
|
}, {
|
|
7642
7643
|
default: g(() => [
|
|
7643
|
-
h(
|
|
7644
|
+
h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
7644
7645
|
default: g(() => [
|
|
7645
7646
|
l("div", sl, [
|
|
7646
7647
|
h(c, {
|
|
7647
7648
|
modelValue: a.currentDate,
|
|
7648
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
7649
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.currentDate = C),
|
|
7649
7650
|
min: a.dateRange[0],
|
|
7650
7651
|
max: a.dateRange[1],
|
|
7651
7652
|
"mode-icon": () => r.currentYear,
|
|
@@ -7662,15 +7663,15 @@ function ml(o, e, t, i, a, r) {
|
|
|
7662
7663
|
vertical: ""
|
|
7663
7664
|
}),
|
|
7664
7665
|
l("div", nl, [
|
|
7665
|
-
l("div", cl,
|
|
7666
|
+
l("div", cl, S(a.currentTime), 1),
|
|
7666
7667
|
h(m, { class: "pa-0 flex-1-1-0" }, {
|
|
7667
7668
|
default: g(() => [
|
|
7668
|
-
(
|
|
7669
|
+
(b(!0), M(fe, null, _e(r.hourOptions, (C, P) => (b(), V(d, {
|
|
7669
7670
|
key: P,
|
|
7670
|
-
value:
|
|
7671
|
+
value: C,
|
|
7671
7672
|
variant: "flat",
|
|
7672
7673
|
color: "primary",
|
|
7673
|
-
active: a.currentTime ===
|
|
7674
|
+
active: a.currentTime === C,
|
|
7674
7675
|
rounded: "",
|
|
7675
7676
|
height: "26",
|
|
7676
7677
|
"min-height": "26"
|
|
@@ -7678,10 +7679,10 @@ function ml(o, e, t, i, a, r) {
|
|
|
7678
7679
|
default: g(() => [
|
|
7679
7680
|
h(p, {
|
|
7680
7681
|
class: "text-body-2 text-center",
|
|
7681
|
-
onClick: (
|
|
7682
|
+
onClick: (A) => a.currentTime = C
|
|
7682
7683
|
}, {
|
|
7683
7684
|
default: g(() => [
|
|
7684
|
-
U(C
|
|
7685
|
+
U(S(C), 1)
|
|
7685
7686
|
]),
|
|
7686
7687
|
_: 2
|
|
7687
7688
|
}, 1032, ["onClick"])
|
|
@@ -7696,7 +7697,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7696
7697
|
_: 1
|
|
7697
7698
|
}),
|
|
7698
7699
|
h(n),
|
|
7699
|
-
h(
|
|
7700
|
+
h(y, {
|
|
7700
7701
|
class: "justify-end pa-0 pr-4",
|
|
7701
7702
|
style: { height: "50px" }
|
|
7702
7703
|
}, {
|
|
@@ -7731,7 +7732,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7731
7732
|
})
|
|
7732
7733
|
]),
|
|
7733
7734
|
_: 1
|
|
7734
|
-
})) :
|
|
7735
|
+
})) : j("", !0)
|
|
7735
7736
|
]);
|
|
7736
7737
|
}
|
|
7737
7738
|
const Je = /* @__PURE__ */ X(rl, [["render", ml]]);
|
|
@@ -7828,20 +7829,20 @@ const hl = {
|
|
|
7828
7829
|
},
|
|
7829
7830
|
computed: {
|
|
7830
7831
|
timeZoneNames() {
|
|
7831
|
-
return
|
|
7832
|
+
return O.tz.names();
|
|
7832
7833
|
},
|
|
7833
7834
|
timeZoneName() {
|
|
7834
7835
|
var o;
|
|
7835
|
-
return (o = this.timeZoneNames.filter((e) =>
|
|
7836
|
+
return (o = this.timeZoneNames.filter((e) => O.tz(O(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : o[0];
|
|
7836
7837
|
},
|
|
7837
7838
|
computedTzTime() {
|
|
7838
|
-
return (o) =>
|
|
7839
|
+
return (o) => O.tz(O(o), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
|
|
7839
7840
|
},
|
|
7840
7841
|
computedLocalTime() {
|
|
7841
7842
|
return (o) => {
|
|
7842
7843
|
var i, a;
|
|
7843
|
-
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, t = (a = this.timeZoneNames.filter((r) =>
|
|
7844
|
-
return o ?
|
|
7844
|
+
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, t = (a = this.timeZoneNames.filter((r) => O.tz(O(), r).utcOffset() === e * 60)) == null ? void 0 : a[0];
|
|
7845
|
+
return o ? O.tz(O(o), t).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
|
|
7845
7846
|
};
|
|
7846
7847
|
},
|
|
7847
7848
|
computeLat() {
|
|
@@ -7914,8 +7915,8 @@ const hl = {
|
|
|
7914
7915
|
lat: this.form.lat,
|
|
7915
7916
|
lng: this.form.lng
|
|
7916
7917
|
};
|
|
7917
|
-
const t =
|
|
7918
|
-
((e =
|
|
7918
|
+
const t = O();
|
|
7919
|
+
((e = O(this.realTime)) == null ? void 0 : e.diff(t, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form), this.initTableData(this.meteoData), this.showMeteo = !0, this.handleRender();
|
|
7919
7920
|
}
|
|
7920
7921
|
});
|
|
7921
7922
|
},
|
|
@@ -7940,7 +7941,7 @@ const hl = {
|
|
|
7940
7941
|
let i = {
|
|
7941
7942
|
lat: o.lat,
|
|
7942
7943
|
lng: o.lng,
|
|
7943
|
-
datetime:
|
|
7944
|
+
datetime: O(o.dateTime).utc().format(),
|
|
7944
7945
|
forecastDays: o.day ?? 7,
|
|
7945
7946
|
weatherModels: e,
|
|
7946
7947
|
marineModels: t
|
|
@@ -7956,7 +7957,7 @@ const hl = {
|
|
|
7956
7957
|
const { weatherModels: e, marineModels: t } = qe.autoPickMeteoModel(o.forecastModel), i = {
|
|
7957
7958
|
lat: o.lat,
|
|
7958
7959
|
lng: o.lng,
|
|
7959
|
-
datetime:
|
|
7960
|
+
datetime: O(o.dateTime).utc().format(),
|
|
7960
7961
|
forecastDays: 3,
|
|
7961
7962
|
pastDays: 1,
|
|
7962
7963
|
weatherModels: e,
|
|
@@ -7969,10 +7970,10 @@ const hl = {
|
|
|
7969
7970
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7970
7971
|
},
|
|
7971
7972
|
initTableData(o) {
|
|
7972
|
-
var t, i, a, r, s, c, n, p, d, m,
|
|
7973
|
+
var t, i, a, r, s, c, n, p, d, m, f, y, w, C, P, A, T, z, _, k, L, v, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze;
|
|
7973
7974
|
this.currentHourData = {}, this.positionGmt = (i = (t = o == null ? void 0 : o.weather) == null ? void 0 : t[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = o == null ? void 0 : o.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
7974
|
-
const e = ((s = qe.pickHourly(o,
|
|
7975
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((
|
|
7975
|
+
const e = ((s = qe.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
7976
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((w = (y = e == null ? void 0 : e.weather) == null ? void 0 : y.wind) == null ? void 0 : w.kts, 1) ?? "-", this.currentHourData.windDir = (P = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : P.direction, this.currentHourData.windLevel = this.roundPrecision((T = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : T.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((L = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : L.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((Y = (H = e == null ? void 0 : e.wave) == null ? void 0 : H.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((W = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((se = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (q = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ne = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (be = e == null ? void 0 : e.current) == null ? void 0 : be.direction, this.currentHourData.currentSpeed = this.roundPrecision((ke = e == null ? void 0 : e.current) == null ? void 0 : ke.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ze = e == null ? void 0 : e.weather) == null ? void 0 : ze.url;
|
|
7976
7977
|
},
|
|
7977
7978
|
handleBind() {
|
|
7978
7979
|
var o, e;
|
|
@@ -8043,8 +8044,8 @@ const hl = {
|
|
|
8043
8044
|
"aria-hidden": "true"
|
|
8044
8045
|
}, zl = ["xlink:href"], Ll = { class: "d-flex justify-start align-center" }, Pl = { class: "mx-2" };
|
|
8045
8046
|
function Cl(o, e, t, i, a, r) {
|
|
8046
|
-
const s =
|
|
8047
|
-
return
|
|
8047
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), p = x("VDivider"), d = x("VTextField"), m = x("VCol"), f = x("VRow"), y = x("DateTimePicker"), w = x("VBtnToggle"), C = x("VCardActions"), P = x("VForm"), A = x("VCardText"), T = x("VCard"), z = x("VIcon");
|
|
8048
|
+
return b(), M("div", dl, [
|
|
8048
8049
|
l("div", {
|
|
8049
8050
|
class: "menu-bar-box transition pa-1",
|
|
8050
8051
|
style: Q({ top: t.top + 174 + "px", right: a.right + "px" })
|
|
@@ -8053,8 +8054,8 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8053
8054
|
text: o.$t("spot.spotsMeteo"),
|
|
8054
8055
|
location: "left"
|
|
8055
8056
|
}, {
|
|
8056
|
-
activator: g(({ props:
|
|
8057
|
-
h(s,
|
|
8057
|
+
activator: g(({ props: _ }) => [
|
|
8058
|
+
h(s, E(_, {
|
|
8058
8059
|
"min-width": "32",
|
|
8059
8060
|
width: "32",
|
|
8060
8061
|
height: "32",
|
|
@@ -8072,7 +8073,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8072
8073
|
_: 1
|
|
8073
8074
|
}, 8, ["text"])
|
|
8074
8075
|
], 4),
|
|
8075
|
-
a.showForm ? (
|
|
8076
|
+
a.showForm ? (b(), V(T, {
|
|
8076
8077
|
key: 0,
|
|
8077
8078
|
class: "spot-form-card",
|
|
8078
8079
|
style: Q({ top: t.top + 174 + "px", right: a.right + 50 + "px" })
|
|
@@ -8104,7 +8105,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8104
8105
|
__: [10]
|
|
8105
8106
|
}),
|
|
8106
8107
|
h(p),
|
|
8107
|
-
h(
|
|
8108
|
+
h(A, { class: "text-body-1 py-1" }, {
|
|
8108
8109
|
default: g(() => [
|
|
8109
8110
|
h(P, {
|
|
8110
8111
|
ref: "spotForm",
|
|
@@ -8114,14 +8115,14 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8114
8115
|
}, {
|
|
8115
8116
|
default: g(() => [
|
|
8116
8117
|
l("div", pl, [
|
|
8117
|
-
(
|
|
8118
|
+
(b(), M("svg", ul, [
|
|
8118
8119
|
l("use", {
|
|
8119
8120
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8120
8121
|
}, null, 8, gl)
|
|
8121
8122
|
])),
|
|
8122
8123
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8123
8124
|
]),
|
|
8124
|
-
h(
|
|
8125
|
+
h(f, { class: "ma-0" }, {
|
|
8125
8126
|
default: g(() => [
|
|
8126
8127
|
h(m, {
|
|
8127
8128
|
cols: "4",
|
|
@@ -8130,7 +8131,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8130
8131
|
default: g(() => [
|
|
8131
8132
|
h(d, {
|
|
8132
8133
|
modelValue: a.form.lngDegree,
|
|
8133
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
8134
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
8134
8135
|
rules: a.formRules.lngDegree,
|
|
8135
8136
|
density: "compact",
|
|
8136
8137
|
variant: "outlined",
|
|
@@ -8149,7 +8150,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8149
8150
|
default: g(() => [
|
|
8150
8151
|
h(d, {
|
|
8151
8152
|
modelValue: a.form.lngMinute,
|
|
8152
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
8153
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
8153
8154
|
rules: a.formRules.lngMinute,
|
|
8154
8155
|
label: "",
|
|
8155
8156
|
density: "compact",
|
|
@@ -8175,10 +8176,10 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8175
8176
|
height: "32",
|
|
8176
8177
|
class: "",
|
|
8177
8178
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8178
|
-
onClick: e[2] || (e[2] = (
|
|
8179
|
+
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8179
8180
|
}, {
|
|
8180
8181
|
default: g(() => [
|
|
8181
|
-
U(
|
|
8182
|
+
U(S(a.form.lngDirection), 1)
|
|
8182
8183
|
]),
|
|
8183
8184
|
_: 1
|
|
8184
8185
|
})
|
|
@@ -8189,14 +8190,14 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8189
8190
|
_: 1
|
|
8190
8191
|
}),
|
|
8191
8192
|
l("div", fl, [
|
|
8192
|
-
(
|
|
8193
|
+
(b(), M("svg", bl, [
|
|
8193
8194
|
l("use", {
|
|
8194
8195
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8195
8196
|
}, null, 8, yl)
|
|
8196
8197
|
])),
|
|
8197
8198
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8198
8199
|
]),
|
|
8199
|
-
h(
|
|
8200
|
+
h(f, { class: "ma-0" }, {
|
|
8200
8201
|
default: g(() => [
|
|
8201
8202
|
h(m, {
|
|
8202
8203
|
cols: "4",
|
|
@@ -8205,7 +8206,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8205
8206
|
default: g(() => [
|
|
8206
8207
|
h(d, {
|
|
8207
8208
|
modelValue: a.form.latDegree,
|
|
8208
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
8209
|
+
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
8209
8210
|
rules: a.formRules.latDegree,
|
|
8210
8211
|
label: "",
|
|
8211
8212
|
density: "compact",
|
|
@@ -8227,7 +8228,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8227
8228
|
default: g(() => [
|
|
8228
8229
|
h(d, {
|
|
8229
8230
|
modelValue: a.form.latMinute,
|
|
8230
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
8231
|
+
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
8231
8232
|
rules: a.formRules.latMinute,
|
|
8232
8233
|
label: "",
|
|
8233
8234
|
density: "compact",
|
|
@@ -8253,10 +8254,10 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8253
8254
|
height: "32",
|
|
8254
8255
|
class: "text-body-1",
|
|
8255
8256
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8256
|
-
onClick: e[5] || (e[5] = (
|
|
8257
|
+
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8257
8258
|
}, {
|
|
8258
8259
|
default: g(() => [
|
|
8259
|
-
U(
|
|
8260
|
+
U(S(a.form.latDirection), 1)
|
|
8260
8261
|
]),
|
|
8261
8262
|
_: 1
|
|
8262
8263
|
})
|
|
@@ -8267,25 +8268,25 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8267
8268
|
_: 1
|
|
8268
8269
|
}),
|
|
8269
8270
|
l("div", wl, [
|
|
8270
|
-
(
|
|
8271
|
+
(b(), M("svg", xl, [
|
|
8271
8272
|
l("use", {
|
|
8272
8273
|
"xlink:href": `#icon-a-DateTime-${t.theme}`
|
|
8273
8274
|
}, null, 8, vl)
|
|
8274
8275
|
])),
|
|
8275
8276
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8276
8277
|
]),
|
|
8277
|
-
h(
|
|
8278
|
+
h(f, { class: "ma-0 mb-4" }, {
|
|
8278
8279
|
default: g(() => [
|
|
8279
8280
|
h(m, {
|
|
8280
8281
|
cols: "12",
|
|
8281
8282
|
class: "pa-0"
|
|
8282
8283
|
}, {
|
|
8283
8284
|
default: g(() => [
|
|
8284
|
-
h(
|
|
8285
|
+
h(y, E({
|
|
8285
8286
|
"date-time": a.form.dateTime,
|
|
8286
8287
|
"time-zone": t.timeZone
|
|
8287
8288
|
}, o.$attrs, {
|
|
8288
|
-
onDateTime: e[6] || (e[6] = (
|
|
8289
|
+
onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
|
|
8289
8290
|
}), null, 16, ["date-time", "time-zone"])
|
|
8290
8291
|
]),
|
|
8291
8292
|
_: 1
|
|
@@ -8294,23 +8295,23 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8294
8295
|
_: 1
|
|
8295
8296
|
}),
|
|
8296
8297
|
l("div", _l, [
|
|
8297
|
-
(
|
|
8298
|
+
(b(), M("svg", kl, [
|
|
8298
8299
|
l("use", {
|
|
8299
8300
|
"xlink:href": `#icon-a-ForecastModel-${t.theme}`
|
|
8300
8301
|
}, null, 8, zl)
|
|
8301
8302
|
])),
|
|
8302
8303
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8303
8304
|
]),
|
|
8304
|
-
h(
|
|
8305
|
+
h(f, { class: "ma-0 mb-2" }, {
|
|
8305
8306
|
default: g(() => [
|
|
8306
8307
|
h(m, {
|
|
8307
8308
|
cols: "12",
|
|
8308
8309
|
class: "pa-0"
|
|
8309
8310
|
}, {
|
|
8310
8311
|
default: g(() => [
|
|
8311
|
-
h(
|
|
8312
|
+
h(w, {
|
|
8312
8313
|
modelValue: a.form.forecastModel,
|
|
8313
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
8314
|
+
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
8314
8315
|
class: "w-100",
|
|
8315
8316
|
rounded: "",
|
|
8316
8317
|
height: "30",
|
|
@@ -8356,7 +8357,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8356
8357
|
_: 1
|
|
8357
8358
|
}),
|
|
8358
8359
|
h(p),
|
|
8359
|
-
h(
|
|
8360
|
+
h(C, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8360
8361
|
default: g(() => [
|
|
8361
8362
|
h(s, {
|
|
8362
8363
|
size: "small",
|
|
@@ -8395,7 +8396,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8395
8396
|
})
|
|
8396
8397
|
]),
|
|
8397
8398
|
_: 1
|
|
8398
|
-
}, 8, ["style"])) :
|
|
8399
|
+
}, 8, ["style"])) : j("", !0),
|
|
8399
8400
|
He(h(T, {
|
|
8400
8401
|
id: "idm-gl4-spot-meteo",
|
|
8401
8402
|
class: "spot-meteo",
|
|
@@ -8404,11 +8405,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8404
8405
|
default: g(() => [
|
|
8405
8406
|
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8406
8407
|
default: g(() => {
|
|
8407
|
-
var
|
|
8408
|
+
var _, k;
|
|
8408
8409
|
return [
|
|
8409
8410
|
l("div", Ll, [
|
|
8410
8411
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8411
|
-
l("div", Pl,
|
|
8412
|
+
l("div", Pl, S(r.computeLat((_ = a.currentHourData) == null ? void 0 : _.lat)) + "," + S(r.computeLng((k = a.currentHourData) == null ? void 0 : k.lng)), 1)
|
|
8412
8413
|
]),
|
|
8413
8414
|
h(s, {
|
|
8414
8415
|
icon: "",
|
|
@@ -8431,9 +8432,9 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8431
8432
|
_: 1
|
|
8432
8433
|
}),
|
|
8433
8434
|
h(p),
|
|
8434
|
-
h(
|
|
8435
|
+
h(A, { class: "text-body-1 ml-n8" }, {
|
|
8435
8436
|
default: g(() => [
|
|
8436
|
-
h(
|
|
8437
|
+
h(f, null, {
|
|
8437
8438
|
default: g(() => [
|
|
8438
8439
|
h(m, {
|
|
8439
8440
|
cols: "3",
|
|
@@ -8450,9 +8451,9 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8450
8451
|
class: "pa-2 px-0"
|
|
8451
8452
|
}, {
|
|
8452
8453
|
default: g(() => {
|
|
8453
|
-
var
|
|
8454
|
+
var _;
|
|
8454
8455
|
return [
|
|
8455
|
-
U(
|
|
8456
|
+
U(S(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8456
8457
|
];
|
|
8457
8458
|
}),
|
|
8458
8459
|
_: 1
|
|
@@ -8460,7 +8461,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8460
8461
|
]),
|
|
8461
8462
|
_: 1
|
|
8462
8463
|
}),
|
|
8463
|
-
h(
|
|
8464
|
+
h(f, null, {
|
|
8464
8465
|
default: g(() => [
|
|
8465
8466
|
h(m, {
|
|
8466
8467
|
cols: "3",
|
|
@@ -8477,9 +8478,9 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8477
8478
|
class: "pa-2 px-0"
|
|
8478
8479
|
}, {
|
|
8479
8480
|
default: g(() => {
|
|
8480
|
-
var
|
|
8481
|
+
var _;
|
|
8481
8482
|
return [
|
|
8482
|
-
U(
|
|
8483
|
+
U(S(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8483
8484
|
];
|
|
8484
8485
|
}),
|
|
8485
8486
|
_: 1
|
|
@@ -8487,7 +8488,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8487
8488
|
]),
|
|
8488
8489
|
_: 1
|
|
8489
8490
|
}),
|
|
8490
|
-
h(
|
|
8491
|
+
h(f, null, {
|
|
8491
8492
|
default: g(() => [
|
|
8492
8493
|
h(m, {
|
|
8493
8494
|
cols: "3",
|
|
@@ -8504,7 +8505,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8504
8505
|
class: "pa-2 px-0 text-left"
|
|
8505
8506
|
}, {
|
|
8506
8507
|
default: g(() => [
|
|
8507
|
-
U(
|
|
8508
|
+
U(S(a.currentHourData.windDir) + " / " + S(a.currentHourData.windSpeed) + "kts / BF" + S(a.currentHourData.windLevel), 1)
|
|
8508
8509
|
]),
|
|
8509
8510
|
_: 1
|
|
8510
8511
|
}),
|
|
@@ -8523,14 +8524,14 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8523
8524
|
class: "pa-2 px-0 text-left"
|
|
8524
8525
|
}, {
|
|
8525
8526
|
default: g(() => [
|
|
8526
|
-
U(
|
|
8527
|
+
U(S(a.currentHourData.sigwaveDir) + " / " + S(a.currentHourData.sigwaveHeight) + "m / " + S(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8527
8528
|
]),
|
|
8528
8529
|
_: 1
|
|
8529
8530
|
})
|
|
8530
8531
|
]),
|
|
8531
8532
|
_: 1
|
|
8532
8533
|
}),
|
|
8533
|
-
h(
|
|
8534
|
+
h(f, null, {
|
|
8534
8535
|
default: g(() => [
|
|
8535
8536
|
h(m, {
|
|
8536
8537
|
cols: "3",
|
|
@@ -8547,7 +8548,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8547
8548
|
class: "pa-2 px-0 text-left"
|
|
8548
8549
|
}, {
|
|
8549
8550
|
default: g(() => [
|
|
8550
|
-
U(
|
|
8551
|
+
U(S(a.currentHourData.windwaveDir) + " / " + S(a.currentHourData.windwaveHeight) + "m / " + S(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8551
8552
|
]),
|
|
8552
8553
|
_: 1
|
|
8553
8554
|
}),
|
|
@@ -8566,14 +8567,14 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8566
8567
|
class: "pa-2 px-0 text-left"
|
|
8567
8568
|
}, {
|
|
8568
8569
|
default: g(() => [
|
|
8569
|
-
U(
|
|
8570
|
+
U(S(a.currentHourData.swellDir) + " / " + S(a.currentHourData.swellHeight) + "m / " + S(a.currentHourData.swellPeriod) + "s", 1)
|
|
8570
8571
|
]),
|
|
8571
8572
|
_: 1
|
|
8572
8573
|
})
|
|
8573
8574
|
]),
|
|
8574
8575
|
_: 1
|
|
8575
8576
|
}),
|
|
8576
|
-
h(
|
|
8577
|
+
h(f, null, {
|
|
8577
8578
|
default: g(() => [
|
|
8578
8579
|
h(m, {
|
|
8579
8580
|
cols: "3",
|
|
@@ -8590,7 +8591,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8590
8591
|
class: "pa-2 px-0 text-left"
|
|
8591
8592
|
}, {
|
|
8592
8593
|
default: g(() => [
|
|
8593
|
-
U(
|
|
8594
|
+
U(S(a.currentHourData.currentDir) + " / " + S(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8594
8595
|
]),
|
|
8595
8596
|
_: 1
|
|
8596
8597
|
}),
|
|
@@ -8609,7 +8610,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8609
8610
|
class: "pa-2 px-0 text-left"
|
|
8610
8611
|
}, {
|
|
8611
8612
|
default: g(() => [
|
|
8612
|
-
U(
|
|
8613
|
+
U(S(a.currentHourData.visibility) + " nm", 1)
|
|
8613
8614
|
]),
|
|
8614
8615
|
_: 1
|
|
8615
8616
|
})
|
|
@@ -8620,7 +8621,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8620
8621
|
_: 1
|
|
8621
8622
|
}),
|
|
8622
8623
|
h(p),
|
|
8623
|
-
h(
|
|
8624
|
+
h(C, { class: "d-flex justify-space-between align-center" }, {
|
|
8624
8625
|
default: g(() => [
|
|
8625
8626
|
h(s, {
|
|
8626
8627
|
variant: "text",
|
|
@@ -8629,7 +8630,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8629
8630
|
onClick: r.handleFollow
|
|
8630
8631
|
}, {
|
|
8631
8632
|
prepend: g(() => [
|
|
8632
|
-
h(
|
|
8633
|
+
h(z, { color: "warning" })
|
|
8633
8634
|
]),
|
|
8634
8635
|
default: g(() => [
|
|
8635
8636
|
e[33] || (e[33] = U(" Follow", -1))
|
|
@@ -8751,24 +8752,24 @@ const Ml = {
|
|
|
8751
8752
|
var t, i, a, r, s, c, n, p, d, m;
|
|
8752
8753
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8753
8754
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8754
|
-
const
|
|
8755
|
-
this.pointMarkers[
|
|
8756
|
-
var
|
|
8757
|
-
return ((
|
|
8755
|
+
const f = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
8756
|
+
this.pointMarkers[f.id].filter((P) => {
|
|
8757
|
+
var A;
|
|
8758
|
+
return ((A = P._element) == null ? void 0 : A.id) === e;
|
|
8758
8759
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8759
|
-
let
|
|
8760
|
-
|
|
8760
|
+
let w;
|
|
8761
|
+
f.features.forEach((P, A) => {
|
|
8761
8762
|
if (P.geometry.type === "Point" && P.properties.id === e.split("-")[1]) {
|
|
8762
|
-
|
|
8763
|
+
w = A;
|
|
8763
8764
|
return;
|
|
8764
8765
|
}
|
|
8765
8766
|
});
|
|
8766
|
-
const
|
|
8767
|
+
const C = f.features.filter((P) => P.geometry.type === "Point");
|
|
8767
8768
|
this.handleTmpPointUpdate(
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
{ lng: (p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat, properties:
|
|
8771
|
-
|
|
8769
|
+
f,
|
|
8770
|
+
C[w - 1],
|
|
8771
|
+
{ lng: (p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat, properties: C[w].properties },
|
|
8772
|
+
w === C.length - 1 ? void 0 : C[w + 1]
|
|
8772
8773
|
);
|
|
8773
8774
|
}
|
|
8774
8775
|
},
|
|
@@ -8776,13 +8777,13 @@ const Ml = {
|
|
|
8776
8777
|
var t, i, a, r, s, c, n, p, d, m;
|
|
8777
8778
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8778
8779
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8779
|
-
const
|
|
8780
|
-
this.pointMarkers[
|
|
8780
|
+
const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
8781
|
+
this.pointMarkers[f.id].filter((C) => {
|
|
8781
8782
|
var P;
|
|
8782
|
-
return ((P =
|
|
8783
|
+
return ((P = C._element) == null ? void 0 : P.id) === e;
|
|
8783
8784
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8784
|
-
const
|
|
8785
|
-
|
|
8785
|
+
const w = f.features.filter((C) => C.geometry.type === "Point" && C.properties.id === e.split("-")[1])[0];
|
|
8786
|
+
w.geometry.coordinates = [(p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat], f.features = f.features.filter((C) => C.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
8786
8787
|
}
|
|
8787
8788
|
},
|
|
8788
8789
|
handleContextmenu(o) {
|
|
@@ -8831,10 +8832,10 @@ const Ml = {
|
|
|
8831
8832
|
for (let a = 1; a < e.length; a++) {
|
|
8832
8833
|
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = Be.calculateDistance(n, p, c.mode === "RL", 4), m = Be.calculateBearing(n, p, c.mode === "RL", 2);
|
|
8833
8834
|
t = ae.roundPrecision(t + d, 2);
|
|
8834
|
-
let
|
|
8835
|
-
c.mode === "RL" ?
|
|
8836
|
-
const
|
|
8837
|
-
|
|
8835
|
+
let f;
|
|
8836
|
+
c.mode === "RL" ? f = ae.convertToMonotonicLng([n, p]) : f = ae.convertToMonotonicLng(Be.interpolateCoordinates(n, p, 200));
|
|
8837
|
+
const y = F.lineString(f.map((w) => [w.lng, w.lat]));
|
|
8838
|
+
y.properties.dist = d, y.properties.bearing = m, y.properties.total = t, i.push(y);
|
|
8838
8839
|
}
|
|
8839
8840
|
e.push(...i), o.total = t;
|
|
8840
8841
|
}
|
|
@@ -8848,16 +8849,16 @@ const Ml = {
|
|
|
8848
8849
|
r = Be.calculateDistance(p, d, n.mode === "RL", 4), s = Be.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8849
8850
|
let m;
|
|
8850
8851
|
n.mode === "RL" ? m = ae.convertToMonotonicLng([p, d]) : m = ae.convertToMonotonicLng(Be.interpolateCoordinates(p, d, 200));
|
|
8851
|
-
const
|
|
8852
|
-
|
|
8852
|
+
const f = F.lineString(m.map((y) => [y.lng, y.lat]));
|
|
8853
|
+
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8853
8854
|
}
|
|
8854
8855
|
if (i) {
|
|
8855
8856
|
const n = t.properties, p = t, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8856
8857
|
r = Be.calculateDistance(p, d, n.mode === "RL", 4), s = Be.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8857
8858
|
let m;
|
|
8858
8859
|
n.mode === "RL" ? m = ae.convertToMonotonicLng([p, d]) : m = ae.convertToMonotonicLng(Be.interpolateCoordinates(p, d, 200));
|
|
8859
|
-
const
|
|
8860
|
-
|
|
8860
|
+
const f = F.lineString(m.map((y) => [y.lng, y.lat]));
|
|
8861
|
+
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8861
8862
|
}
|
|
8862
8863
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
8863
8864
|
type: "geojson",
|
|
@@ -8979,17 +8980,17 @@ const Ml = {
|
|
|
8979
8980
|
}
|
|
8980
8981
|
},
|
|
8981
8982
|
handleClear(o, e = !0) {
|
|
8982
|
-
var r, s, c, n, p, d, m,
|
|
8983
|
+
var r, s, c, n, p, d, m, f, y;
|
|
8983
8984
|
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8984
|
-
(r = this.map) != null && r.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (n = this.map) != null && n.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[o.id]) == null || p.remove(), this.closeMarkers[o.id] = void 0, (d = this.pointMarkers[o.id]) == null || d.forEach((
|
|
8985
|
-
|
|
8986
|
-
}), this.pointMarkers[o.id] = [], (m = this.tipMarker) == null || m.remove(), this.tipMarker = void 0, e && ((
|
|
8985
|
+
(r = this.map) != null && r.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (n = this.map) != null && n.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[o.id]) == null || p.remove(), this.closeMarkers[o.id] = void 0, (d = this.pointMarkers[o.id]) == null || d.forEach((w) => {
|
|
8986
|
+
w == null || w.remove();
|
|
8987
|
+
}), this.pointMarkers[o.id] = [], (m = this.tipMarker) == null || m.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((y = this.map) != null && y.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8987
8988
|
}
|
|
8988
8989
|
}
|
|
8989
8990
|
}, Tl = { class: "idm-gl4-measure" };
|
|
8990
8991
|
function Rl(o, e, t, i, a, r) {
|
|
8991
|
-
const s =
|
|
8992
|
-
return
|
|
8992
|
+
const s = x("VBtn"), c = x("VTooltip");
|
|
8993
|
+
return b(), M("div", Tl, [
|
|
8993
8994
|
l("div", {
|
|
8994
8995
|
class: "menu-bar-box transition pa-1",
|
|
8995
8996
|
style: Q({ top: t.top + 214 + "px", right: a.right + "px" })
|
|
@@ -8999,7 +9000,7 @@ function Rl(o, e, t, i, a, r) {
|
|
|
8999
9000
|
location: "left"
|
|
9000
9001
|
}, {
|
|
9001
9002
|
activator: g(({ props: n }) => [
|
|
9002
|
-
h(s,
|
|
9003
|
+
h(s, E(n, {
|
|
9003
9004
|
"min-width": "32",
|
|
9004
9005
|
width: "32",
|
|
9005
9006
|
height: "32",
|
|
@@ -9053,7 +9054,7 @@ const Al = {
|
|
|
9053
9054
|
//hour
|
|
9054
9055
|
intervalOptions: [3, 6, 12, 24],
|
|
9055
9056
|
showTimezone: !1,
|
|
9056
|
-
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) :
|
|
9057
|
+
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : O().utcOffset() / 60,
|
|
9057
9058
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
9058
9059
|
source: localStorage.getItem("forecastModelCacheGL4") ?? "ECMWF"
|
|
9059
9060
|
};
|
|
@@ -9085,7 +9086,7 @@ const Al = {
|
|
|
9085
9086
|
},
|
|
9086
9087
|
currentTimestamp: {
|
|
9087
9088
|
handler() {
|
|
9088
|
-
this.currentDateTimeZ =
|
|
9089
|
+
this.currentDateTimeZ = O(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
9089
9090
|
},
|
|
9090
9091
|
immediate: !0
|
|
9091
9092
|
},
|
|
@@ -9133,58 +9134,58 @@ const Al = {
|
|
|
9133
9134
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
9134
9135
|
}
|
|
9135
9136
|
}
|
|
9136
|
-
}, Dl = { class: "idm-bottom-bar-gl4" }, Ol = { class: "date-box d-flex ga-2 mr-2" }, Bl = { class: "d-flex justify-center align-center cursor-pointer" }, jl = { class: "fast-weathers-box d-flex justify-center align-center ga-2
|
|
9137
|
+
}, Dl = { class: "idm-bottom-bar-gl4" }, Ol = { class: "date-box d-flex ga-2 mr-2" }, Bl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, jl = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, El = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Fl = {
|
|
9137
9138
|
key: 0,
|
|
9138
9139
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9139
9140
|
}, Nl = ["onClick"], Hl = { class: "btn-box d-flex justify-center align-center rounded ga-2 py-1 px-2" }, Gl = { class: "text-body-2" };
|
|
9140
9141
|
function Wl(o, e, t, i, a, r) {
|
|
9141
|
-
const s =
|
|
9142
|
-
return
|
|
9143
|
-
a.show ? (
|
|
9142
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), p = x("VList"), d = x("VMenu"), m = x("VBtn"), f = x("VDivider"), y = x("VTooltip");
|
|
9143
|
+
return b(), M("div", Dl, [
|
|
9144
|
+
a.show ? (b(), M("div", {
|
|
9144
9145
|
key: 0,
|
|
9145
|
-
class: "timeline-box px-2
|
|
9146
|
+
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9146
9147
|
style: Q({ right: a.right + 140 + "px" })
|
|
9147
9148
|
}, [
|
|
9148
9149
|
l("div", Ol, [
|
|
9149
|
-
h(s,
|
|
9150
|
+
h(s, E({
|
|
9150
9151
|
"date-time": a.currentDateTimeZ,
|
|
9151
9152
|
"time-zone": a.timeZone,
|
|
9152
9153
|
"day-about": a.dayAbout
|
|
9153
9154
|
}, o.$attrs, {
|
|
9154
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
9155
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
9156
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
9155
|
+
onCurrentTimestamp: e[0] || (e[0] = (w) => a.currentTimestamp = w),
|
|
9156
|
+
onCurrentRealTime: e[1] || (e[1] = (w) => a.currentRealTime = w),
|
|
9157
|
+
onTimestampRange: e[2] || (e[2] = (w) => a.timestampRange = w)
|
|
9157
9158
|
}), null, 16, ["date-time", "time-zone", "day-about"]),
|
|
9158
9159
|
h(m, {
|
|
9159
9160
|
text: "",
|
|
9160
9161
|
height: "30",
|
|
9161
|
-
class: "text-none elevation-0 nop-btn-border",
|
|
9162
|
+
class: "text-none elevation-0 nop-btn-border text-body-1",
|
|
9162
9163
|
"min-width": "30"
|
|
9163
9164
|
}, {
|
|
9164
9165
|
default: g(() => [
|
|
9165
|
-
U(
|
|
9166
|
+
U(S(a.intervalHour) + " h ", 1),
|
|
9166
9167
|
h(d, { activator: "parent" }, {
|
|
9167
9168
|
default: g(() => [
|
|
9168
9169
|
h(p, { class: "pa-1" }, {
|
|
9169
9170
|
default: g(() => [
|
|
9170
|
-
(
|
|
9171
|
-
key:
|
|
9172
|
-
value:
|
|
9173
|
-
variant: a.intervalHour ===
|
|
9171
|
+
(b(!0), M(fe, null, _e(a.intervalOptions, (w, C) => (b(), V(n, {
|
|
9172
|
+
key: C,
|
|
9173
|
+
value: w,
|
|
9174
|
+
variant: a.intervalHour === w ? "tonal" : "text",
|
|
9174
9175
|
color: "primary",
|
|
9175
9176
|
rounded: "",
|
|
9176
|
-
active: a.intervalHour ===
|
|
9177
|
+
active: a.intervalHour === w,
|
|
9177
9178
|
height: "30",
|
|
9178
9179
|
"min-height": "30",
|
|
9179
9180
|
"min-width": "30",
|
|
9180
|
-
class: "pa-0 text-center"
|
|
9181
|
+
class: "pa-0 text-center text-body-1"
|
|
9181
9182
|
}, {
|
|
9182
9183
|
default: g(() => [
|
|
9183
9184
|
h(c, {
|
|
9184
|
-
onClick: (
|
|
9185
|
+
onClick: (P) => a.intervalHour = w
|
|
9185
9186
|
}, {
|
|
9186
9187
|
default: g(() => [
|
|
9187
|
-
U(
|
|
9188
|
+
U(S(w) + "h", 1)
|
|
9188
9189
|
]),
|
|
9189
9190
|
_: 2
|
|
9190
9191
|
}, 1032, ["onClick"])
|
|
@@ -9199,93 +9200,102 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9199
9200
|
})
|
|
9200
9201
|
]),
|
|
9201
9202
|
_: 1
|
|
9202
|
-
})
|
|
9203
|
-
l("div", Bl, [
|
|
9204
|
-
h(m, {
|
|
9205
|
-
icon: "",
|
|
9206
|
-
size: "small",
|
|
9207
|
-
density: "comfortable",
|
|
9208
|
-
variant: "text",
|
|
9209
|
-
onClick: r.handleReset
|
|
9210
|
-
}, {
|
|
9211
|
-
default: g(() => e[10] || (e[10] = [
|
|
9212
|
-
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9213
|
-
])),
|
|
9214
|
-
_: 1,
|
|
9215
|
-
__: [10]
|
|
9216
|
-
}, 8, ["onClick"]),
|
|
9217
|
-
h(m, {
|
|
9218
|
-
icon: "",
|
|
9219
|
-
size: "small",
|
|
9220
|
-
density: "comfortable",
|
|
9221
|
-
variant: "text",
|
|
9222
|
-
onClick: r.handleBackward
|
|
9223
|
-
}, {
|
|
9224
|
-
default: g(() => e[11] || (e[11] = [
|
|
9225
|
-
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9226
|
-
])),
|
|
9227
|
-
_: 1,
|
|
9228
|
-
__: [11]
|
|
9229
|
-
}, 8, ["onClick"]),
|
|
9230
|
-
a.paused ? (y(), V(m, {
|
|
9231
|
-
key: 0,
|
|
9232
|
-
icon: "",
|
|
9233
|
-
size: "small",
|
|
9234
|
-
density: "comfortable",
|
|
9235
|
-
variant: "text",
|
|
9236
|
-
onClick: r.handlePlay
|
|
9237
|
-
}, {
|
|
9238
|
-
default: g(() => e[12] || (e[12] = [
|
|
9239
|
-
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9240
|
-
])),
|
|
9241
|
-
_: 1,
|
|
9242
|
-
__: [12]
|
|
9243
|
-
}, 8, ["onClick"])) : (y(), V(m, {
|
|
9244
|
-
key: 1,
|
|
9245
|
-
icon: "",
|
|
9246
|
-
size: "small",
|
|
9247
|
-
density: "comfortable",
|
|
9248
|
-
variant: "text",
|
|
9249
|
-
onClick: r.handlePause
|
|
9250
|
-
}, {
|
|
9251
|
-
default: g(() => e[13] || (e[13] = [
|
|
9252
|
-
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9253
|
-
])),
|
|
9254
|
-
_: 1,
|
|
9255
|
-
__: [13]
|
|
9256
|
-
}, 8, ["onClick"])),
|
|
9257
|
-
h(m, {
|
|
9258
|
-
icon: "",
|
|
9259
|
-
size: "small",
|
|
9260
|
-
density: "comfortable",
|
|
9261
|
-
variant: "text",
|
|
9262
|
-
onClick: r.handleForward
|
|
9263
|
-
}, {
|
|
9264
|
-
default: g(() => e[14] || (e[14] = [
|
|
9265
|
-
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9266
|
-
])),
|
|
9267
|
-
_: 1,
|
|
9268
|
-
__: [14]
|
|
9269
|
-
}, 8, ["onClick"])
|
|
9270
|
-
])
|
|
9203
|
+
})
|
|
9271
9204
|
]),
|
|
9205
|
+
h(f, {
|
|
9206
|
+
vertical: "",
|
|
9207
|
+
class: "mx-2 my-3",
|
|
9208
|
+
style: { height: "16px" }
|
|
9209
|
+
}),
|
|
9210
|
+
l("div", Bl, [
|
|
9211
|
+
h(m, {
|
|
9212
|
+
icon: "",
|
|
9213
|
+
size: "small",
|
|
9214
|
+
density: "comfortable",
|
|
9215
|
+
variant: "text",
|
|
9216
|
+
onClick: r.handleReset
|
|
9217
|
+
}, {
|
|
9218
|
+
default: g(() => e[10] || (e[10] = [
|
|
9219
|
+
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9220
|
+
])),
|
|
9221
|
+
_: 1,
|
|
9222
|
+
__: [10]
|
|
9223
|
+
}, 8, ["onClick"]),
|
|
9224
|
+
h(m, {
|
|
9225
|
+
icon: "",
|
|
9226
|
+
size: "small",
|
|
9227
|
+
density: "comfortable",
|
|
9228
|
+
variant: "text",
|
|
9229
|
+
onClick: r.handleBackward
|
|
9230
|
+
}, {
|
|
9231
|
+
default: g(() => e[11] || (e[11] = [
|
|
9232
|
+
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9233
|
+
])),
|
|
9234
|
+
_: 1,
|
|
9235
|
+
__: [11]
|
|
9236
|
+
}, 8, ["onClick"]),
|
|
9237
|
+
a.paused ? (b(), V(m, {
|
|
9238
|
+
key: 0,
|
|
9239
|
+
icon: "",
|
|
9240
|
+
size: "small",
|
|
9241
|
+
density: "comfortable",
|
|
9242
|
+
variant: "text",
|
|
9243
|
+
onClick: r.handlePlay
|
|
9244
|
+
}, {
|
|
9245
|
+
default: g(() => e[12] || (e[12] = [
|
|
9246
|
+
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9247
|
+
])),
|
|
9248
|
+
_: 1,
|
|
9249
|
+
__: [12]
|
|
9250
|
+
}, 8, ["onClick"])) : (b(), V(m, {
|
|
9251
|
+
key: 1,
|
|
9252
|
+
icon: "",
|
|
9253
|
+
size: "small",
|
|
9254
|
+
density: "comfortable",
|
|
9255
|
+
variant: "text",
|
|
9256
|
+
onClick: r.handlePause
|
|
9257
|
+
}, {
|
|
9258
|
+
default: g(() => e[13] || (e[13] = [
|
|
9259
|
+
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9260
|
+
])),
|
|
9261
|
+
_: 1,
|
|
9262
|
+
__: [13]
|
|
9263
|
+
}, 8, ["onClick"])),
|
|
9264
|
+
h(m, {
|
|
9265
|
+
icon: "",
|
|
9266
|
+
size: "small",
|
|
9267
|
+
density: "comfortable",
|
|
9268
|
+
variant: "text",
|
|
9269
|
+
onClick: r.handleForward
|
|
9270
|
+
}, {
|
|
9271
|
+
default: g(() => e[14] || (e[14] = [
|
|
9272
|
+
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9273
|
+
])),
|
|
9274
|
+
_: 1,
|
|
9275
|
+
__: [14]
|
|
9276
|
+
}, 8, ["onClick"])
|
|
9277
|
+
]),
|
|
9278
|
+
h(f, {
|
|
9279
|
+
vertical: "",
|
|
9280
|
+
class: "mx-2 my-3",
|
|
9281
|
+
style: { height: "16px" }
|
|
9282
|
+
}),
|
|
9272
9283
|
l("div", jl, [
|
|
9273
|
-
h(
|
|
9284
|
+
h(y, {
|
|
9274
9285
|
text: o.$t("weather.windBarbs"),
|
|
9275
|
-
location: "top"
|
|
9276
|
-
"open-delay": 1e3
|
|
9286
|
+
location: "top"
|
|
9277
9287
|
}, {
|
|
9278
|
-
activator: g(({ props:
|
|
9279
|
-
var
|
|
9288
|
+
activator: g(({ props: w }) => {
|
|
9289
|
+
var C, P;
|
|
9280
9290
|
return [
|
|
9281
|
-
h(m,
|
|
9291
|
+
h(m, E(w, {
|
|
9282
9292
|
class: "pa-1 d-flex",
|
|
9283
|
-
color: (
|
|
9284
|
-
variant: (
|
|
9293
|
+
color: (C = t.weatherCheckList) != null && C.includes("wind") ? "primary" : "",
|
|
9294
|
+
variant: (P = t.weatherCheckList) != null && P.includes("wind") ? "elevated" : "text",
|
|
9285
9295
|
height: "24",
|
|
9286
9296
|
width: "24",
|
|
9287
9297
|
"min-width": "24",
|
|
9288
|
-
onClick: e[3] || (e[3] = (
|
|
9298
|
+
onClick: e[3] || (e[3] = (A) => r.handleClickFastWeather("wind"))
|
|
9289
9299
|
}), {
|
|
9290
9300
|
default: g(() => e[15] || (e[15] = [
|
|
9291
9301
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -9297,25 +9307,24 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9297
9307
|
}),
|
|
9298
9308
|
_: 1
|
|
9299
9309
|
}, 8, ["text"]),
|
|
9300
|
-
h(
|
|
9310
|
+
h(y, {
|
|
9301
9311
|
text: o.$t("weather.sigWaveHeight"),
|
|
9302
|
-
location: "top"
|
|
9303
|
-
"open-delay": 1e3
|
|
9312
|
+
location: "top"
|
|
9304
9313
|
}, {
|
|
9305
|
-
activator: g(({ props:
|
|
9306
|
-
var
|
|
9314
|
+
activator: g(({ props: w }) => {
|
|
9315
|
+
var C, P;
|
|
9307
9316
|
return [
|
|
9308
|
-
h(m,
|
|
9317
|
+
h(m, E(w, {
|
|
9309
9318
|
class: "pa-1 d-flex",
|
|
9310
|
-
color: (
|
|
9311
|
-
variant: (
|
|
9319
|
+
color: (C = t.weatherCheckList) != null && C.includes("sig-wave-height") ? "primary" : "",
|
|
9320
|
+
variant: (P = t.weatherCheckList) != null && P.includes("sig-wave-height") ? "elevated" : "text",
|
|
9312
9321
|
height: "24",
|
|
9313
9322
|
width: "24",
|
|
9314
9323
|
"min-width": "24",
|
|
9315
|
-
onClick: e[4] || (e[4] = (
|
|
9324
|
+
onClick: e[4] || (e[4] = (A) => r.handleClickFastWeather("sig-wave-height"))
|
|
9316
9325
|
}), {
|
|
9317
9326
|
default: g(() => [
|
|
9318
|
-
l("i",
|
|
9327
|
+
l("i", E(w, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9319
9328
|
]),
|
|
9320
9329
|
_: 2
|
|
9321
9330
|
}, 1040, ["color", "variant"])
|
|
@@ -9323,25 +9332,24 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9323
9332
|
}),
|
|
9324
9333
|
_: 1
|
|
9325
9334
|
}, 8, ["text"]),
|
|
9326
|
-
h(
|
|
9335
|
+
h(y, {
|
|
9327
9336
|
text: o.$t("weather.currentDirection"),
|
|
9328
|
-
location: "top"
|
|
9329
|
-
"open-delay": 1e3
|
|
9337
|
+
location: "top"
|
|
9330
9338
|
}, {
|
|
9331
|
-
activator: g(({ props:
|
|
9332
|
-
var
|
|
9339
|
+
activator: g(({ props: w }) => {
|
|
9340
|
+
var C, P;
|
|
9333
9341
|
return [
|
|
9334
|
-
h(m,
|
|
9342
|
+
h(m, E(w, {
|
|
9335
9343
|
class: "pa-1 d-flex",
|
|
9336
|
-
color: (
|
|
9337
|
-
variant: (
|
|
9344
|
+
color: (C = t.weatherCheckList) != null && C.includes("current") ? "primary" : "",
|
|
9345
|
+
variant: (P = t.weatherCheckList) != null && P.includes("current") ? "elevated" : "text",
|
|
9338
9346
|
height: "24",
|
|
9339
9347
|
width: "24",
|
|
9340
9348
|
"min-width": "24",
|
|
9341
|
-
onClick: e[5] || (e[5] = (
|
|
9349
|
+
onClick: e[5] || (e[5] = (A) => r.handleClickFastWeather("current"))
|
|
9342
9350
|
}), {
|
|
9343
9351
|
default: g(() => [
|
|
9344
|
-
l("i",
|
|
9352
|
+
l("i", E(w, { class: "iconfont icon-Current" }), null, 16)
|
|
9345
9353
|
]),
|
|
9346
9354
|
_: 2
|
|
9347
9355
|
}, 1040, ["color", "variant"])
|
|
@@ -9349,13 +9357,12 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9349
9357
|
}),
|
|
9350
9358
|
_: 1
|
|
9351
9359
|
}, 8, ["text"]),
|
|
9352
|
-
h(
|
|
9360
|
+
h(y, {
|
|
9353
9361
|
text: o.$t("weather.weatherLayers"),
|
|
9354
|
-
location: "top"
|
|
9355
|
-
"open-delay": 1e3
|
|
9362
|
+
location: "top"
|
|
9356
9363
|
}, {
|
|
9357
|
-
activator: g(({ props:
|
|
9358
|
-
h(m,
|
|
9364
|
+
activator: g(({ props: w }) => [
|
|
9365
|
+
h(m, E(w, {
|
|
9359
9366
|
class: "pa-1 d-flex",
|
|
9360
9367
|
variant: "text",
|
|
9361
9368
|
height: "24",
|
|
@@ -9364,7 +9371,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9364
9371
|
onClick: r.handleClickFastMore
|
|
9365
9372
|
}), {
|
|
9366
9373
|
default: g(() => [
|
|
9367
|
-
l("i",
|
|
9374
|
+
l("i", E(w, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9368
9375
|
]),
|
|
9369
9376
|
_: 2
|
|
9370
9377
|
}, 1040, ["onClick"])
|
|
@@ -9372,13 +9379,18 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9372
9379
|
_: 1
|
|
9373
9380
|
}, 8, ["text"])
|
|
9374
9381
|
]),
|
|
9382
|
+
h(f, {
|
|
9383
|
+
vertical: "",
|
|
9384
|
+
class: "mx-2 mr-3 my-3",
|
|
9385
|
+
style: { height: "16px" }
|
|
9386
|
+
}),
|
|
9375
9387
|
l("div", El, [
|
|
9376
9388
|
h(m, {
|
|
9377
9389
|
text: "",
|
|
9378
9390
|
height: "30",
|
|
9379
|
-
class: "px-
|
|
9391
|
+
class: "px-2 elevation-0 text-body-1 nop-btn-border",
|
|
9380
9392
|
color: a.source === "GFS" ? "primary" : "",
|
|
9381
|
-
onClick: e[6] || (e[6] = (
|
|
9393
|
+
onClick: e[6] || (e[6] = (w) => a.source = "GFS")
|
|
9382
9394
|
}, {
|
|
9383
9395
|
default: g(() => e[16] || (e[16] = [
|
|
9384
9396
|
U("NOAA", -1)
|
|
@@ -9389,9 +9401,9 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9389
9401
|
h(m, {
|
|
9390
9402
|
text: "",
|
|
9391
9403
|
height: "30",
|
|
9392
|
-
class: "px-
|
|
9404
|
+
class: "px-2 elevation-0 text-body-1 nop-btn-border",
|
|
9393
9405
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9394
|
-
onClick: e[7] || (e[7] = (
|
|
9406
|
+
onClick: e[7] || (e[7] = (w) => a.source = "ECMWF")
|
|
9395
9407
|
}, {
|
|
9396
9408
|
default: g(() => e[17] || (e[17] = [
|
|
9397
9409
|
U("ECMWF", -1)
|
|
@@ -9404,7 +9416,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9404
9416
|
size: "x-small",
|
|
9405
9417
|
density: "comfortable",
|
|
9406
9418
|
variant: "plain",
|
|
9407
|
-
onClick: e[8] || (e[8] = (
|
|
9419
|
+
onClick: e[8] || (e[8] = (w) => r.handleToggle(!1))
|
|
9408
9420
|
}, {
|
|
9409
9421
|
default: g(() => e[18] || (e[18] = [
|
|
9410
9422
|
l("i", {
|
|
@@ -9416,18 +9428,18 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9416
9428
|
__: [18]
|
|
9417
9429
|
})
|
|
9418
9430
|
])
|
|
9419
|
-
], 4)) :
|
|
9431
|
+
], 4)) : j("", !0),
|
|
9420
9432
|
l("div", {
|
|
9421
9433
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9422
9434
|
style: Q({ right: a.right + "px" })
|
|
9423
9435
|
}, [
|
|
9424
|
-
a.showTimezone ? (
|
|
9425
|
-
(
|
|
9426
|
-
key:
|
|
9436
|
+
a.showTimezone ? (b(), M("div", Fl, [
|
|
9437
|
+
(b(!0), M(fe, null, _e(a.offsets, (w) => (b(), M("div", {
|
|
9438
|
+
key: w,
|
|
9427
9439
|
class: "item rounded text-body-2",
|
|
9428
|
-
onClick: (
|
|
9429
|
-
},
|
|
9430
|
-
])) :
|
|
9440
|
+
onClick: (C) => a.timeZone = w
|
|
9441
|
+
}, S(w < 0 ? w : "+" + w), 9, Nl))), 128))
|
|
9442
|
+
])) : j("", !0),
|
|
9431
9443
|
l("div", Hl, [
|
|
9432
9444
|
h(m, {
|
|
9433
9445
|
text: "",
|
|
@@ -9435,14 +9447,14 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9435
9447
|
height: "24",
|
|
9436
9448
|
class: "pa-1",
|
|
9437
9449
|
color: "primary",
|
|
9438
|
-
onClick: e[9] || (e[9] = (
|
|
9450
|
+
onClick: e[9] || (e[9] = (w) => a.showTimezone = !a.showTimezone)
|
|
9439
9451
|
}, {
|
|
9440
9452
|
default: g(() => [
|
|
9441
|
-
U(" UTC " +
|
|
9453
|
+
U(" UTC " + S(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9442
9454
|
]),
|
|
9443
9455
|
_: 1
|
|
9444
9456
|
}),
|
|
9445
|
-
l("span", Gl,
|
|
9457
|
+
l("span", Gl, S(a.currentRealTime), 1)
|
|
9446
9458
|
])
|
|
9447
9459
|
], 4)
|
|
9448
9460
|
]);
|
|
@@ -9492,9 +9504,9 @@ const Ul = /* @__PURE__ */ X(Al, [["render", Wl]]), Vl = {
|
|
|
9492
9504
|
class: "map-gl4-home"
|
|
9493
9505
|
};
|
|
9494
9506
|
function Zl(o, e, t, i, a, r) {
|
|
9495
|
-
const s =
|
|
9496
|
-
return
|
|
9497
|
-
h(s,
|
|
9507
|
+
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), p = x("IdmMeasure"), d = x("IdmSpot"), m = x("IdmBottomBar");
|
|
9508
|
+
return b(), M("div", Yl, [
|
|
9509
|
+
h(s, E({
|
|
9498
9510
|
ref: "idmOtherLayers",
|
|
9499
9511
|
token: t.token,
|
|
9500
9512
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9505,7 +9517,7 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9505
9517
|
assistGateway: a.assistGateway,
|
|
9506
9518
|
forecastModel: t.forecastModel
|
|
9507
9519
|
}, o.$attrs), null, 16, ["token", "defaultMeteoToken", "map", "realTime", "gateway", "assistGateway", "forecastModel"]),
|
|
9508
|
-
h(c,
|
|
9520
|
+
h(c, E({
|
|
9509
9521
|
ref: "idmWeatherLayers",
|
|
9510
9522
|
map: t.map,
|
|
9511
9523
|
"before-layer": "empty-layer-2",
|
|
@@ -9515,9 +9527,9 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9515
9527
|
gateway: a.gateway,
|
|
9516
9528
|
assistGateway: a.assistGateway,
|
|
9517
9529
|
"forecast-model": t.forecastModel,
|
|
9518
|
-
onWeatherCheckList: e[0] || (e[0] = (
|
|
9530
|
+
onWeatherCheckList: e[0] || (e[0] = (f) => a.weatherCheckList = f)
|
|
9519
9531
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "defaultMeteoToken", "gateway", "assistGateway", "forecast-model"]),
|
|
9520
|
-
h(n,
|
|
9532
|
+
h(n, E({
|
|
9521
9533
|
map: t.map,
|
|
9522
9534
|
token: t.token,
|
|
9523
9535
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9528,8 +9540,8 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9528
9540
|
assistGateway: a.assistGateway,
|
|
9529
9541
|
"forecast-model": t.forecastModel
|
|
9530
9542
|
}, o.$attrs), null, 16, ["map", "token", "defaultMeteoToken", "tropicals", "realTime", "gateway", "assistGateway", "forecast-model"]),
|
|
9531
|
-
h(p,
|
|
9532
|
-
h(d,
|
|
9543
|
+
h(p, E({ map: t.map }, o.$attrs), null, 16, ["map"]),
|
|
9544
|
+
h(d, E({
|
|
9533
9545
|
ref: "idmSpot",
|
|
9534
9546
|
map: t.map,
|
|
9535
9547
|
realTime: a.realTime,
|
|
@@ -9537,11 +9549,11 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9537
9549
|
gateway: a.gateway,
|
|
9538
9550
|
"forecast-model": t.forecastModel
|
|
9539
9551
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "gateway", "forecast-model"]),
|
|
9540
|
-
h(m,
|
|
9552
|
+
h(m, E({
|
|
9541
9553
|
ref: "idmBottomBar",
|
|
9542
9554
|
"forecast-model": t.forecastModel,
|
|
9543
9555
|
weatherCheckList: a.weatherCheckList,
|
|
9544
|
-
onRealTime: e[1] || (e[1] = (
|
|
9556
|
+
onRealTime: e[1] || (e[1] = (f) => a.realTime = f)
|
|
9545
9557
|
}, o.$attrs), null, 16, ["forecast-model", "weatherCheckList"])
|
|
9546
9558
|
], 512);
|
|
9547
9559
|
}
|
|
@@ -9554,7 +9566,7 @@ class ql {
|
|
|
9554
9566
|
le(this, "hi");
|
|
9555
9567
|
le(this, "td");
|
|
9556
9568
|
le(this, "windy");
|
|
9557
|
-
var t, i, a, r, s, c, n, p, d, m,
|
|
9569
|
+
var t, i, a, r, s, c, n, p, d, m, f, y, w, C, P, A, T, z, _, k, L, v, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te, de, we, Re, J, Ce, xe, ie, ue, N, Le, oe, re, Ee, B, ye, Oe, Fe, Ne, D, Z, Ye, Ze, Xe, Ae, Qe, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, jt, Et, Ft, Nt, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io, Ao, Do, Oo, Bo, jo, Eo, Fo, No;
|
|
9558
9570
|
this.i4 = {
|
|
9559
9571
|
source: {
|
|
9560
9572
|
type: "raster",
|
|
@@ -71436,12 +71448,12 @@ class ql {
|
|
|
71436
71448
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((u) => u.id === "empty-layer-1"),
|
|
71437
71449
|
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((u) => u.id === "country-boundaries"),
|
|
71438
71450
|
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((u) => u.id === "water-outline"),
|
|
71439
|
-
(
|
|
71440
|
-
(
|
|
71441
|
-
(
|
|
71442
|
-
(
|
|
71443
|
-
(
|
|
71444
|
-
(
|
|
71451
|
+
(y = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : y.find((u) => u.id === "water-outline2"),
|
|
71452
|
+
(C = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : C.find((u) => u.id === "empty-layer-2"),
|
|
71453
|
+
(A = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : A.find((u) => u.id === "empty-layer-3"),
|
|
71454
|
+
(z = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : z.find((u) => u.id === "empty-layer-4"),
|
|
71455
|
+
(k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((u) => u.id === "water-line-label"),
|
|
71456
|
+
(v = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : v.find((u) => u.id === "water-point-label"),
|
|
71445
71457
|
(H = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : H.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71446
71458
|
(G = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : G.find((u) => u.id === "ne-10m-outline"),
|
|
71447
71459
|
($ = (W = this.originStyle) == null ? void 0 : W.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
|
|
@@ -71589,9 +71601,9 @@ class ql {
|
|
|
71589
71601
|
(N = (ue = this.originStyle) == null ? void 0 : ue.dark.layers) == null ? void 0 : N.find((u) => u.id === "country-boundaries"),
|
|
71590
71602
|
(oe = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : oe.find((u) => u.id === "water-outline"),
|
|
71591
71603
|
(Ee = (re = this.originStyle) == null ? void 0 : re.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-2"),
|
|
71592
|
-
(ye = (
|
|
71604
|
+
(ye = (B = this.originStyle) == null ? void 0 : B.dark.layers) == null ? void 0 : ye.find((u) => u.id === "empty-layer-3"),
|
|
71593
71605
|
(Fe = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Fe.find((u) => u.id === "empty-layer-4"),
|
|
71594
|
-
(
|
|
71606
|
+
(D = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : D.find((u) => u.id === "water-line-label"),
|
|
71595
71607
|
(Ye = (Z = this.originStyle) == null ? void 0 : Z.dark.layers) == null ? void 0 : Ye.find((u) => u.id === "water-point-label"),
|
|
71596
71608
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71597
71609
|
(Qe = (Ae = this.originStyle) == null ? void 0 : Ae.dark.layers) == null ? void 0 : Qe.find((u) => u.id === "ne-10m-outline"),
|
|
@@ -71857,8 +71869,7 @@ const Kl = {
|
|
|
71857
71869
|
mapFeather: {
|
|
71858
71870
|
handler() {
|
|
71859
71871
|
this.mapFeather && this.$nextTick(() => {
|
|
71860
|
-
|
|
71861
|
-
this.map ? (o = this.map) == null || o.setStyle(this.helper.mapboxStyle[this.mapFeather]) : this.initOnlineMap();
|
|
71872
|
+
this.initOnlineMap();
|
|
71862
71873
|
});
|
|
71863
71874
|
},
|
|
71864
71875
|
immediate: !0
|
|
@@ -71911,8 +71922,8 @@ const Kl = {
|
|
|
71911
71922
|
}
|
|
71912
71923
|
}, Jl = { class: "mapbox-initial-gl4" }, Ql = { class: "v-btn--variant-elevated rounded" }, $l = { class: "zoom" };
|
|
71913
71924
|
function es(o, e, t, i, a, r) {
|
|
71914
|
-
const s =
|
|
71915
|
-
return
|
|
71925
|
+
const s = x("VBtn");
|
|
71926
|
+
return b(), M("div", Jl, [
|
|
71916
71927
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
71917
71928
|
l("div", {
|
|
71918
71929
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
@@ -71932,7 +71943,7 @@ function es(o, e, t, i, a, r) {
|
|
|
71932
71943
|
_: 1,
|
|
71933
71944
|
__: [0]
|
|
71934
71945
|
}, 8, ["onClick"]),
|
|
71935
|
-
l("div", $l,
|
|
71946
|
+
l("div", $l, S(a.zoom), 1),
|
|
71936
71947
|
h(s, {
|
|
71937
71948
|
"min-width": "32",
|
|
71938
71949
|
width: "32",
|