@idmwx/idmui-gl4 1.2.6 → 1.2.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 +446 -446
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var $o = (t, e, a) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var me = (t, e, a) => ($o(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as
|
|
6
|
+
import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as A, withCtx as u, createVNode as d, withModifiers as qe, createElementVNode as l, createCommentVNode as D, normalizeClass as He, toDisplayString as h, createTextVNode as j, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as $, TropicalHelper as Vo, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import M from "moment";
|
|
@@ -1485,10 +1485,10 @@ const ui = {
|
|
|
1485
1485
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1486
1486
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1487
1487
|
], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
|
|
1488
|
-
var c, n, g, p,
|
|
1488
|
+
var c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
|
|
1489
1489
|
let r = {};
|
|
1490
1490
|
const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1491
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((
|
|
1491
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (R = s == null ? void 0 : s.weather) == null ? void 0 : R.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((O = (L = s == null ? void 0 : s.wave) == null ? void 0 : L.sig) == null ? void 0 : O.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
|
|
1492
1492
|
});
|
|
1493
1493
|
},
|
|
1494
1494
|
handleTide() {
|
|
@@ -1673,22 +1673,22 @@ const ui = {
|
|
|
1673
1673
|
width: "120"
|
|
1674
1674
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1675
1675
|
function yr(t, e, a, i, o, r) {
|
|
1676
|
-
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"),
|
|
1677
|
-
return b(), A(
|
|
1676
|
+
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
|
|
1677
|
+
return b(), A(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1678
1678
|
default: u(() => {
|
|
1679
1679
|
var w, v;
|
|
1680
1680
|
return [
|
|
1681
1681
|
d(c, { class: "w-100" }, {
|
|
1682
1682
|
default: u(() => {
|
|
1683
|
-
var
|
|
1683
|
+
var y, k, T, R, I;
|
|
1684
1684
|
return [
|
|
1685
1685
|
l("div", gi, [
|
|
1686
1686
|
l("div", fi, [
|
|
1687
1687
|
l("div", {
|
|
1688
|
-
class: He(["fi mr-2 rounded elevation-4", `fi-${(
|
|
1688
|
+
class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (k = a.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1689
1689
|
style: { width: "36px", height: "24px" }
|
|
1690
1690
|
}, null, 2),
|
|
1691
|
-
l("div", null, h((
|
|
1691
|
+
l("div", null, h((R = a.port) == null ? void 0 : R.name), 1)
|
|
1692
1692
|
]),
|
|
1693
1693
|
d(s, {
|
|
1694
1694
|
icon: "",
|
|
@@ -1717,9 +1717,9 @@ function yr(t, e, a, i, o, r) {
|
|
|
1717
1717
|
}),
|
|
1718
1718
|
d(n, { class: "w-100" }),
|
|
1719
1719
|
l("div", bi, [
|
|
1720
|
-
a.followList.some((
|
|
1721
|
-
var
|
|
1722
|
-
return ((
|
|
1720
|
+
a.followList.some((y) => {
|
|
1721
|
+
var k;
|
|
1722
|
+
return ((k = y.port) == null ? void 0 : k.id) === a.portId;
|
|
1723
1723
|
}) ? (b(), A(s, {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
@@ -1806,7 +1806,7 @@ function yr(t, e, a, i, o, r) {
|
|
|
1806
1806
|
l("div", Fi, [
|
|
1807
1807
|
d(p, {
|
|
1808
1808
|
modelValue: o.currentIndex,
|
|
1809
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1809
|
+
"onUpdate:modelValue": e[0] || (e[0] = (y) => o.currentIndex = y),
|
|
1810
1810
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1811
1811
|
density: "compact",
|
|
1812
1812
|
group: "",
|
|
@@ -1815,15 +1815,15 @@ function yr(t, e, a, i, o, r) {
|
|
|
1815
1815
|
rounded: "1"
|
|
1816
1816
|
}, {
|
|
1817
1817
|
default: u(() => [
|
|
1818
|
-
(b(!0), S(be, null, we(r.dateList, (
|
|
1818
|
+
(b(!0), S(be, null, we(r.dateList, (y) => (b(), A(s, {
|
|
1819
1819
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1820
1820
|
density: "compact",
|
|
1821
1821
|
color: "primary",
|
|
1822
1822
|
height: "26",
|
|
1823
|
-
value:
|
|
1823
|
+
value: y.index
|
|
1824
1824
|
}, {
|
|
1825
1825
|
default: u(() => [
|
|
1826
|
-
j(h(
|
|
1826
|
+
j(h(y.label), 1)
|
|
1827
1827
|
]),
|
|
1828
1828
|
_: 2
|
|
1829
1829
|
}, 1032, ["value"]))), 256))
|
|
@@ -1832,40 +1832,40 @@ function yr(t, e, a, i, o, r) {
|
|
|
1832
1832
|
}, 8, ["modelValue"]),
|
|
1833
1833
|
l("table", Hi, [
|
|
1834
1834
|
l("tbody", null, [
|
|
1835
|
-
(b(!0), S(be, null, we(o.tableData, (
|
|
1836
|
-
key:
|
|
1835
|
+
(b(!0), S(be, null, we(o.tableData, (y) => (b(), S("tr", {
|
|
1836
|
+
key: y.id
|
|
1837
1837
|
}, [
|
|
1838
1838
|
l("th", Ui, [
|
|
1839
|
-
j(h(t.$t(`${
|
|
1840
|
-
|
|
1839
|
+
j(h(t.$t(`${y.key}`)) + " ", 1),
|
|
1840
|
+
y.unit ? (b(), S("span", Wi, " ( " + h(y.unit) + " )", 1)) : D("", !0)
|
|
1841
1841
|
]),
|
|
1842
1842
|
l("td", Gi, [
|
|
1843
|
-
|
|
1843
|
+
y.img ? (b(), S("img", {
|
|
1844
1844
|
key: 0,
|
|
1845
|
-
src:
|
|
1845
|
+
src: y == null ? void 0 : y.value0,
|
|
1846
1846
|
style: { height: "30px" }
|
|
1847
|
-
}, null, 8, Vi)) : (b(), S("span", Zi, h((
|
|
1847
|
+
}, null, 8, Vi)) : (b(), S("span", Zi, h((y == null ? void 0 : y.value0) ?? "-"), 1))
|
|
1848
1848
|
]),
|
|
1849
1849
|
l("td", qi, [
|
|
1850
|
-
|
|
1850
|
+
y.img ? (b(), S("img", {
|
|
1851
1851
|
key: 0,
|
|
1852
|
-
src:
|
|
1852
|
+
src: y == null ? void 0 : y.value1,
|
|
1853
1853
|
style: { height: "30px" }
|
|
1854
|
-
}, null, 8, Yi)) : (b(), S("span", Ki, h((
|
|
1854
|
+
}, null, 8, Yi)) : (b(), S("span", Ki, h((y == null ? void 0 : y.value1) ?? "-"), 1))
|
|
1855
1855
|
]),
|
|
1856
1856
|
l("td", Xi, [
|
|
1857
|
-
|
|
1857
|
+
y.img ? (b(), S("img", {
|
|
1858
1858
|
key: 0,
|
|
1859
|
-
src:
|
|
1859
|
+
src: y == null ? void 0 : y.value2,
|
|
1860
1860
|
style: { height: "30px" }
|
|
1861
|
-
}, null, 8, $i)) : (b(), S("span", Qi, h((
|
|
1861
|
+
}, null, 8, $i)) : (b(), S("span", Qi, h((y == null ? void 0 : y.value2) ?? "-"), 1))
|
|
1862
1862
|
]),
|
|
1863
1863
|
l("td", Ji, [
|
|
1864
|
-
|
|
1864
|
+
y.img ? (b(), S("img", {
|
|
1865
1865
|
key: 0,
|
|
1866
|
-
src:
|
|
1866
|
+
src: y == null ? void 0 : y.value3,
|
|
1867
1867
|
style: { height: "30px" }
|
|
1868
|
-
}, null, 8, er)) : (b(), S("span", tr, h((
|
|
1868
|
+
}, null, 8, er)) : (b(), S("span", tr, h((y == null ? void 0 : y.value3) ?? "-"), 1))
|
|
1869
1869
|
])
|
|
1870
1870
|
]))), 128))
|
|
1871
1871
|
])
|
|
@@ -1889,7 +1889,7 @@ function yr(t, e, a, i, o, r) {
|
|
|
1889
1889
|
density: "compact",
|
|
1890
1890
|
variant: "plain",
|
|
1891
1891
|
size: "small",
|
|
1892
|
-
onClick: e[1] || (e[1] = (
|
|
1892
|
+
onClick: e[1] || (e[1] = (y) => o.showTideDetail = !1)
|
|
1893
1893
|
})) : (b(), A(s, {
|
|
1894
1894
|
key: 1,
|
|
1895
1895
|
icon: "mdi-eye-outline",
|
|
@@ -1909,12 +1909,12 @@ function yr(t, e, a, i, o, r) {
|
|
|
1909
1909
|
l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1910
1910
|
l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
|
|
1911
1911
|
]),
|
|
1912
|
-
(b(!0), S(be, null, we(o.tideTableData, (
|
|
1912
|
+
(b(!0), S(be, null, we(o.tideTableData, (y, k) => {
|
|
1913
1913
|
var T;
|
|
1914
|
-
return b(), S("tr", { key:
|
|
1915
|
-
l("td", ur, h(t.$t(`tide.${(T =
|
|
1916
|
-
l("td", gr, h(r.computeLocalTime(
|
|
1917
|
-
l("td", fr, h((
|
|
1914
|
+
return b(), S("tr", { key: k }, [
|
|
1915
|
+
l("td", ur, h(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
1916
|
+
l("td", gr, h(r.computeLocalTime(y == null ? void 0 : y.date, a.port, "MM-DD HH:mm")), 1),
|
|
1917
|
+
l("td", fr, h((y == null ? void 0 : y.height) ?? "-") + " m", 1)
|
|
1918
1918
|
]);
|
|
1919
1919
|
}), 128))
|
|
1920
1920
|
])
|
|
@@ -2063,7 +2063,7 @@ function _r(t, e, a, i, o, r) {
|
|
|
2063
2063
|
}, 512), [
|
|
2064
2064
|
[We, o.showInfo]
|
|
2065
2065
|
]),
|
|
2066
|
-
o.showDetail ? (b(), A(n,
|
|
2066
|
+
o.showDetail ? (b(), A(n, B({
|
|
2067
2067
|
key: 0,
|
|
2068
2068
|
portId: o.portId,
|
|
2069
2069
|
port: o.port,
|
|
@@ -2941,7 +2941,7 @@ function Tl(t, e, a, i, o, r) {
|
|
|
2941
2941
|
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
|
|
2942
2942
|
return b(), A(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2943
2943
|
default: u(() => {
|
|
2944
|
-
var
|
|
2944
|
+
var f, w;
|
|
2945
2945
|
return [
|
|
2946
2946
|
d(c, { class: "w-100" }, {
|
|
2947
2947
|
default: u(() => {
|
|
@@ -2989,7 +2989,7 @@ function Tl(t, e, a, i, o, r) {
|
|
|
2989
2989
|
l("div", il, [
|
|
2990
2990
|
l("div", rl, [
|
|
2991
2991
|
l("div", ll, h(t.$t("tide.region")), 1),
|
|
2992
|
-
l("div", sl, h(((
|
|
2992
|
+
l("div", sl, h(((f = a.station) == null ? void 0 : f.Country) ?? ((w = a.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
2993
2993
|
]),
|
|
2994
2994
|
l("div", nl, [
|
|
2995
2995
|
l("div", cl, h(t.$t("tide.position")), 1),
|
|
@@ -3048,10 +3048,10 @@ function Tl(t, e, a, i, o, r) {
|
|
|
3048
3048
|
l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
|
|
3049
3049
|
l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
|
|
3050
3050
|
]),
|
|
3051
|
-
(b(!0), S(be, null, we(o.tideTableData, (v,
|
|
3052
|
-
var
|
|
3053
|
-
return b(), S("tr", { key:
|
|
3054
|
-
l("td", Ll, h(t.$t(`tide.${(
|
|
3051
|
+
(b(!0), S(be, null, we(o.tideTableData, (v, y) => {
|
|
3052
|
+
var k;
|
|
3053
|
+
return b(), S("tr", { key: y }, [
|
|
3054
|
+
l("td", Ll, h(t.$t(`tide.${(k = v == null ? void 0 : v.type) == null ? void 0 : k.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
3055
3055
|
l("td", Pl, h(r.computeLocalTime(v == null ? void 0 : v.date, a.station, "MM-DD HH:mm")), 1),
|
|
3056
3056
|
l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
|
|
3057
3057
|
]);
|
|
@@ -3167,7 +3167,7 @@ function Ol(t, e, a, i, o, r) {
|
|
|
3167
3167
|
}, 512), [
|
|
3168
3168
|
[We, o.showInfo]
|
|
3169
3169
|
]),
|
|
3170
|
-
o.showDetail ? (b(), A(n,
|
|
3170
|
+
o.showDetail ? (b(), A(n, B({
|
|
3171
3171
|
key: 0,
|
|
3172
3172
|
station: o.station,
|
|
3173
3173
|
onClose: r.handleCloseDetail
|
|
@@ -4331,7 +4331,7 @@ function Zl(t, e, a, i, o, r) {
|
|
|
4331
4331
|
}, 512), [
|
|
4332
4332
|
[We, o.showInfo]
|
|
4333
4333
|
]),
|
|
4334
|
-
o.showDetail ? (b(), A(n,
|
|
4334
|
+
o.showDetail ? (b(), A(n, B({
|
|
4335
4335
|
key: 0,
|
|
4336
4336
|
portId: o.portId,
|
|
4337
4337
|
port: o.port,
|
|
@@ -5229,15 +5229,15 @@ const Yl = {
|
|
|
5229
5229
|
var a, i, o, r, s, c, n, g, p;
|
|
5230
5230
|
const e = t.features[0];
|
|
5231
5231
|
if (e.properties) {
|
|
5232
|
-
const
|
|
5233
|
-
|
|
5234
|
-
const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0),
|
|
5235
|
-
lat:
|
|
5236
|
-
lng:
|
|
5232
|
+
const f = e.properties;
|
|
5233
|
+
f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
|
|
5234
|
+
const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0), y = {
|
|
5235
|
+
lat: f.lat,
|
|
5236
|
+
lng: f.lng,
|
|
5237
5237
|
datetime: this.realTime,
|
|
5238
5238
|
forecastModel: this.forecastModel
|
|
5239
5239
|
};
|
|
5240
|
-
v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(
|
|
5240
|
+
v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(y) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(y);
|
|
5241
5241
|
}
|
|
5242
5242
|
},
|
|
5243
5243
|
handleHover(t) {
|
|
@@ -5457,8 +5457,8 @@ const es = {
|
|
|
5457
5457
|
})
|
|
5458
5458
|
);
|
|
5459
5459
|
(await Promise.all(s)).map((n) => {
|
|
5460
|
-
var
|
|
5461
|
-
const g = ((
|
|
5460
|
+
var f, w, v;
|
|
5461
|
+
const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (v = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : v.key;
|
|
5462
5462
|
this.otherLayers[p] = g;
|
|
5463
5463
|
});
|
|
5464
5464
|
}
|
|
@@ -5497,7 +5497,7 @@ const es = {
|
|
|
5497
5497
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5498
5498
|
function hs(t, e, a, i, o, r) {
|
|
5499
5499
|
var Q, re, de, pe, se, X, oe, ue, ne;
|
|
5500
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"),
|
|
5500
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), R = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), L = x("IdmWorldMarine"), O = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5501
5501
|
return b(), S("div", ts, [
|
|
5502
5502
|
l("div", {
|
|
5503
5503
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5508,7 +5508,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5508
5508
|
location: "left"
|
|
5509
5509
|
}, {
|
|
5510
5510
|
activator: u(({ props: F }) => [
|
|
5511
|
-
d(s,
|
|
5511
|
+
d(s, B(F, {
|
|
5512
5512
|
"min-width": "32",
|
|
5513
5513
|
width: "32",
|
|
5514
5514
|
height: "32",
|
|
@@ -5565,7 +5565,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5565
5565
|
]),
|
|
5566
5566
|
_: 1
|
|
5567
5567
|
}),
|
|
5568
|
-
d(
|
|
5568
|
+
d(f, { class: "pb-2" }, {
|
|
5569
5569
|
default: u(() => [
|
|
5570
5570
|
l("div", rs, [
|
|
5571
5571
|
(b(!0), S(be, null, we(o.mapFeathers, (F) => (b(), S("div", {
|
|
@@ -5618,7 +5618,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5618
5618
|
]),
|
|
5619
5619
|
_: 1
|
|
5620
5620
|
}),
|
|
5621
|
-
d(
|
|
5621
|
+
d(f, { class: "py-2" }, {
|
|
5622
5622
|
default: u(() => [
|
|
5623
5623
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5624
5624
|
key: F.key,
|
|
@@ -5657,7 +5657,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5657
5657
|
]),
|
|
5658
5658
|
_: 1
|
|
5659
5659
|
}),
|
|
5660
|
-
d(
|
|
5660
|
+
d(f, { class: "py-2" }, {
|
|
5661
5661
|
default: u(() => [
|
|
5662
5662
|
(b(!0), S(be, null, we(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
|
|
5663
5663
|
key: F.key,
|
|
@@ -5696,7 +5696,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5696
5696
|
]),
|
|
5697
5697
|
_: 1
|
|
5698
5698
|
}),
|
|
5699
|
-
d(
|
|
5699
|
+
d(f, { class: "py-2" }, {
|
|
5700
5700
|
default: u(() => [
|
|
5701
5701
|
d(p, {
|
|
5702
5702
|
modelValue: o.checkList,
|
|
@@ -5728,23 +5728,23 @@ function hs(t, e, a, i, o, r) {
|
|
|
5728
5728
|
})
|
|
5729
5729
|
])
|
|
5730
5730
|
], 6),
|
|
5731
|
-
a.map ? (b(), A(v,
|
|
5731
|
+
a.map ? (b(), A(v, B({
|
|
5732
5732
|
key: 0,
|
|
5733
5733
|
map: a.map,
|
|
5734
5734
|
"menu-toggle": a.menuToggle,
|
|
5735
5735
|
show: o.checkList.includes("graticule")
|
|
5736
5736
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
|
|
5737
|
-
a.map ? (b(), A(
|
|
5737
|
+
a.map ? (b(), A(y, B({
|
|
5738
5738
|
key: 1,
|
|
5739
5739
|
map: a.map,
|
|
5740
5740
|
area: (Q = o.otherLayers) == null ? void 0 : Q["day-night"]
|
|
5741
5741
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5742
|
-
a.map ? (b(), A(
|
|
5742
|
+
a.map ? (b(), A(k, B({
|
|
5743
5743
|
key: 2,
|
|
5744
5744
|
map: a.map,
|
|
5745
5745
|
zone: (re = o.otherLayers) == null ? void 0 : re["time-zones"]
|
|
5746
5746
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5747
|
-
a.map ? (b(), A(T,
|
|
5747
|
+
a.map ? (b(), A(T, B({
|
|
5748
5748
|
key: 3,
|
|
5749
5749
|
ref: "idmPorts",
|
|
5750
5750
|
map: a.map,
|
|
@@ -5754,7 +5754,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5754
5754
|
"forecast-model": a.forecastModel,
|
|
5755
5755
|
realTime: a.realTime
|
|
5756
5756
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5757
|
-
a.map ? (b(), A(
|
|
5757
|
+
a.map ? (b(), A(R, B({
|
|
5758
5758
|
key: 4,
|
|
5759
5759
|
map: a.map,
|
|
5760
5760
|
zone: (pe = o.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
@@ -5762,7 +5762,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5762
5762
|
"before-layer": "empty-layer-3",
|
|
5763
5763
|
theme: a.theme
|
|
5764
5764
|
}), null, 16, ["map", "zone", "theme"])) : D("", !0),
|
|
5765
|
-
a.map ? (b(), A(I,
|
|
5765
|
+
a.map ? (b(), A(I, B({
|
|
5766
5766
|
key: 5,
|
|
5767
5767
|
ref: "idmIideStation",
|
|
5768
5768
|
map: a.map,
|
|
@@ -5774,60 +5774,60 @@ function hs(t, e, a, i, o, r) {
|
|
|
5774
5774
|
forecastModel: a.forecastModel,
|
|
5775
5775
|
"before-layer": "empty-layer-3"
|
|
5776
5776
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5777
|
-
a.map ? (b(), A(P,
|
|
5777
|
+
a.map ? (b(), A(P, B({
|
|
5778
5778
|
key: 6,
|
|
5779
5779
|
map: a.map,
|
|
5780
5780
|
zone: (se = o.otherLayers) == null ? void 0 : se["eca-zones"]
|
|
5781
5781
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5782
|
-
a.map ? (b(), A(_,
|
|
5782
|
+
a.map ? (b(), A(_, B({
|
|
5783
5783
|
key: 7,
|
|
5784
5784
|
map: a.map,
|
|
5785
5785
|
zone: (X = o.otherLayers) == null ? void 0 : X["war-zones"]
|
|
5786
5786
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5787
|
-
a.map ? (b(), A(
|
|
5787
|
+
a.map ? (b(), A(z, B({
|
|
5788
5788
|
key: 8,
|
|
5789
5789
|
map: a.map,
|
|
5790
5790
|
area: (oe = o.otherLayers) == null ? void 0 : oe["gmdss-areas"]
|
|
5791
5791
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5792
|
-
a.map ? (b(), A(C,
|
|
5792
|
+
a.map ? (b(), A(C, B({
|
|
5793
5793
|
key: 9,
|
|
5794
5794
|
map: a.map,
|
|
5795
5795
|
show: o.checkList.includes("load-lines")
|
|
5796
5796
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5797
|
-
a.map ? (b(), A(
|
|
5797
|
+
a.map ? (b(), A(L, B({
|
|
5798
5798
|
key: 10,
|
|
5799
5799
|
map: a.map,
|
|
5800
5800
|
token: a.token,
|
|
5801
5801
|
show: o.checkList.includes("worldMarine")
|
|
5802
5802
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5803
|
-
a.map ? (b(), A(
|
|
5803
|
+
a.map ? (b(), A(O, B({
|
|
5804
5804
|
key: 11,
|
|
5805
5805
|
map: a.map,
|
|
5806
5806
|
area: (ue = o.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
|
|
5807
5807
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5808
|
-
a.map ? (b(), A(G,
|
|
5808
|
+
a.map ? (b(), A(G, B({
|
|
5809
5809
|
key: 12,
|
|
5810
5810
|
map: a.map,
|
|
5811
5811
|
area: (ne = o.otherLayers) == null ? void 0 : ne["special-area"]
|
|
5812
5812
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5813
|
-
a.map ? (b(), A(Y,
|
|
5813
|
+
a.map ? (b(), A(Y, B({
|
|
5814
5814
|
key: 13,
|
|
5815
5815
|
map: a.map,
|
|
5816
5816
|
token: a.token,
|
|
5817
5817
|
show: o.checkList.includes("world12nm")
|
|
5818
5818
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5819
|
-
a.map ? (b(), A(K,
|
|
5819
|
+
a.map ? (b(), A(K, B({
|
|
5820
5820
|
key: 14,
|
|
5821
5821
|
map: a.map,
|
|
5822
5822
|
token: a.token,
|
|
5823
5823
|
show: o.checkList.includes("chinaRoute")
|
|
5824
5824
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5825
|
-
a.map ? (b(), A(V,
|
|
5825
|
+
a.map ? (b(), A(V, B({
|
|
5826
5826
|
key: 15,
|
|
5827
5827
|
map: a.map,
|
|
5828
5828
|
show: o.checkList.includes("ice-areas")
|
|
5829
5829
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5830
|
-
a.map ? (b(), A(J,
|
|
5830
|
+
a.map ? (b(), A(J, B({
|
|
5831
5831
|
key: 16,
|
|
5832
5832
|
ref: "idmFollowPort",
|
|
5833
5833
|
map: a.map,
|
|
@@ -5837,7 +5837,7 @@ function hs(t, e, a, i, o, r) {
|
|
|
5837
5837
|
"forecast-model": a.forecastModel,
|
|
5838
5838
|
realTime: a.realTime
|
|
5839
5839
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5840
|
-
a.map ? (b(), A(ee,
|
|
5840
|
+
a.map ? (b(), A(ee, B({
|
|
5841
5841
|
key: 17,
|
|
5842
5842
|
ref: "idmFollowPosition",
|
|
5843
5843
|
map: a.map,
|
|
@@ -5894,12 +5894,12 @@ class sa {
|
|
|
5894
5894
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5895
5895
|
*/
|
|
5896
5896
|
getBoundPixel() {
|
|
5897
|
-
var
|
|
5898
|
-
const e = (
|
|
5897
|
+
var y, k;
|
|
5898
|
+
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
5899
5899
|
if (!e)
|
|
5900
5900
|
return [];
|
|
5901
|
-
const a = ((
|
|
5902
|
-
return [
|
|
5901
|
+
const a = ((k = this.map) == null ? void 0 : k.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
|
|
5902
|
+
return [f, w, g + v, p];
|
|
5903
5903
|
}
|
|
5904
5904
|
/**
|
|
5905
5905
|
* [视窗边界像素宽度]
|
|
@@ -5916,11 +5916,11 @@ class sa {
|
|
|
5916
5916
|
getWorldCopy(e, a) {
|
|
5917
5917
|
const i = 2 ** a, [o, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
|
|
5918
5918
|
for (let p = c; p <= r; p++)
|
|
5919
|
-
for (let
|
|
5920
|
-
n.push([
|
|
5919
|
+
for (let f = o; f <= s; f++)
|
|
5920
|
+
n.push([f, p]);
|
|
5921
5921
|
return n.map((p) => {
|
|
5922
|
-
const
|
|
5923
|
-
return [p[0] *
|
|
5922
|
+
const f = 2 ** a * 256;
|
|
5923
|
+
return [p[0] * f, p[1] * f, f];
|
|
5924
5924
|
});
|
|
5925
5925
|
}
|
|
5926
5926
|
resize() {
|
|
@@ -6064,8 +6064,8 @@ class je {
|
|
|
6064
6064
|
return {};
|
|
6065
6065
|
}
|
|
6066
6066
|
bindParticle(e, a, i, o, r, s) {
|
|
6067
|
-
const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])),
|
|
6068
|
-
return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer:
|
|
6067
|
+
const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), f = e.createFramebuffer();
|
|
6068
|
+
return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: f };
|
|
6069
6069
|
}
|
|
6070
6070
|
draw(e, a, i, o, r, s, c) {
|
|
6071
6071
|
var n, g;
|
|
@@ -6082,9 +6082,9 @@ class je {
|
|
|
6082
6082
|
sRange: a.getUniformLocation(i, "u_range_s")
|
|
6083
6083
|
};
|
|
6084
6084
|
p.resolution && a.uniform2f(p.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), p.image && a.uniform1i(p.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), p.color && a.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && a.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && a.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && a.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6085
|
-
const
|
|
6086
|
-
for (const
|
|
6087
|
-
const
|
|
6085
|
+
const f = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(f, w);
|
|
6086
|
+
for (const y of v) {
|
|
6087
|
+
const k = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, R = y[2] * e.ratio, [I, P, _, z] = [k, R + k, T, R + T], C = new Float32Array([I, _, P, _, I, z, I, z, P, _, P, z]);
|
|
6088
6088
|
a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, C, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
6089
6089
|
}
|
|
6090
6090
|
} catch (p) {
|
|
@@ -6787,10 +6787,10 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
|
|
|
6787
6787
|
</svg>`;
|
|
6788
6788
|
n.src = "data:image/svg+xml;base64," + window.btoa(g);
|
|
6789
6789
|
const p = [n];
|
|
6790
|
-
let
|
|
6790
|
+
let f = 0;
|
|
6791
6791
|
p.forEach((w) => {
|
|
6792
6792
|
w.onload = () => {
|
|
6793
|
-
|
|
6793
|
+
f++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), f === 1 && this.map.addLayer(
|
|
6794
6794
|
{
|
|
6795
6795
|
id: this.directionLayer,
|
|
6796
6796
|
type: "symbol",
|
|
@@ -7594,7 +7594,7 @@ function Hs(t, e, a, i, o, r) {
|
|
|
7594
7594
|
location: "left"
|
|
7595
7595
|
}, {
|
|
7596
7596
|
activator: u(({ props: g }) => [
|
|
7597
|
-
d(s,
|
|
7597
|
+
d(s, B(g, {
|
|
7598
7598
|
"min-width": "32",
|
|
7599
7599
|
width: "32",
|
|
7600
7600
|
height: "32",
|
|
@@ -8664,23 +8664,23 @@ const bn = {
|
|
|
8664
8664
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8665
8665
|
},
|
|
8666
8666
|
async fetchWeatherLayers(t = {}) {
|
|
8667
|
-
var o, r, s, c, n, g, p,
|
|
8667
|
+
var o, r, s, c, n, g, p, f, w;
|
|
8668
8668
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8669
8669
|
let a = 0, i = 0;
|
|
8670
8670
|
if (this.map) {
|
|
8671
|
-
const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1,
|
|
8671
|
+
const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), k = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8672
8672
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8673
|
-
const T = ia.WEATHER_LAYERS.find((
|
|
8673
|
+
const T = ia.WEATHER_LAYERS.find((R) => {
|
|
8674
8674
|
var I;
|
|
8675
|
-
return ((I =
|
|
8675
|
+
return ((I = R.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8676
8676
|
});
|
|
8677
8677
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
|
|
8678
8678
|
}
|
|
8679
8679
|
if (this.weatherWeight > 0) {
|
|
8680
8680
|
let T = this.weatherWeight;
|
|
8681
8681
|
if (T > 0) {
|
|
8682
|
-
const
|
|
8683
|
-
`${
|
|
8682
|
+
const R = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
8683
|
+
`${R}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${k}&t=${this.realTime}`,
|
|
8684
8684
|
{
|
|
8685
8685
|
headers: {
|
|
8686
8686
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -8697,17 +8697,17 @@ const bn = {
|
|
|
8697
8697
|
key: C
|
|
8698
8698
|
},
|
|
8699
8699
|
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
8700
|
-
}).catch((
|
|
8701
|
-
console.log(`[${C}] fetch layer error: ${
|
|
8700
|
+
}).catch((L) => {
|
|
8701
|
+
console.log(`[${C}] fetch layer error: ${L}`);
|
|
8702
8702
|
})
|
|
8703
8703
|
);
|
|
8704
|
-
const
|
|
8705
|
-
this.weatherLayers = {},
|
|
8704
|
+
const z = await Promise.all(_);
|
|
8705
|
+
this.weatherLayers = {}, z.map((C) => {
|
|
8706
8706
|
var G, Y, K, V;
|
|
8707
|
-
const
|
|
8708
|
-
let
|
|
8709
|
-
|
|
8710
|
-
raw:
|
|
8707
|
+
const L = ((G = C == null ? void 0 : C.data) == null ? void 0 : G.data) || (C == null ? void 0 : C.data);
|
|
8708
|
+
let O = (K = (Y = C == null ? void 0 : C.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
|
|
8709
|
+
O && L && (this.weatherLayers[O] = {
|
|
8710
|
+
raw: L,
|
|
8711
8711
|
type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
|
|
8712
8712
|
etime: I.data.etime
|
|
8713
8713
|
});
|
|
@@ -8723,7 +8723,7 @@ const bn = {
|
|
|
8723
8723
|
};
|
|
8724
8724
|
}
|
|
8725
8725
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8726
|
-
const P = (
|
|
8726
|
+
const P = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8727
8727
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8728
8728
|
type: "json",
|
|
8729
8729
|
direction: P,
|
|
@@ -8750,7 +8750,7 @@ const bn = {
|
|
|
8750
8750
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8751
8751
|
},
|
|
8752
8752
|
handleRampColorInitial() {
|
|
8753
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
8753
|
+
var t, e, a, i, o, r, s, c, n, g, p, f;
|
|
8754
8754
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8755
8755
|
type: "canvas",
|
|
8756
8756
|
canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
|
|
@@ -8775,7 +8775,7 @@ const bn = {
|
|
|
8775
8775
|
{
|
|
8776
8776
|
type: "raster",
|
|
8777
8777
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
8778
|
-
source: (
|
|
8778
|
+
source: (f = this.viewport) == null ? void 0 : f.particleSource,
|
|
8779
8779
|
layout: {
|
|
8780
8780
|
visibility: "none"
|
|
8781
8781
|
}
|
|
@@ -8784,51 +8784,51 @@ const bn = {
|
|
|
8784
8784
|
);
|
|
8785
8785
|
},
|
|
8786
8786
|
handleDrawWeather4Json() {
|
|
8787
|
-
var g, p,
|
|
8787
|
+
var g, p, f, w, v, y, k;
|
|
8788
8788
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8789
8789
|
let e = 0, a = 0;
|
|
8790
8790
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), o = (p = this.map) == null ? void 0 : p.getZoom(), r = $.convertToStdLng(i._sw.lng), s = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8791
8791
|
for (const T in this.weatherLayers) {
|
|
8792
|
-
let
|
|
8792
|
+
let R = !1;
|
|
8793
8793
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8794
8794
|
let I = [];
|
|
8795
8795
|
if (T === "swell") {
|
|
8796
|
-
|
|
8797
|
-
const P = ((
|
|
8798
|
-
for (const
|
|
8799
|
-
if (
|
|
8800
|
-
const C = P[
|
|
8801
|
-
r > s ? C.forEach((
|
|
8796
|
+
R = !0;
|
|
8797
|
+
const P = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
8798
|
+
for (const z in P)
|
|
8799
|
+
if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8800
|
+
const C = P[z].lng;
|
|
8801
|
+
r > s ? C.forEach((L, O) => {
|
|
8802
8802
|
var G, Y, K, V, J, ee;
|
|
8803
8803
|
if (o < 2) {
|
|
8804
|
-
if ((
|
|
8805
|
-
const Q = H.point([
|
|
8806
|
-
val: ((G = P[
|
|
8807
|
-
spd: (K = P[
|
|
8804
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8805
|
+
const Q = H.point([L, z], {
|
|
8806
|
+
val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
|
|
8807
|
+
spd: (K = P[z].spd) == null ? void 0 : K[O]
|
|
8808
8808
|
});
|
|
8809
8809
|
I.push(Q);
|
|
8810
8810
|
}
|
|
8811
|
-
} else if ((
|
|
8812
|
-
const Q = H.point([
|
|
8813
|
-
val: ((V = P[
|
|
8814
|
-
spd: (ee = P[
|
|
8811
|
+
} else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8812
|
+
const Q = H.point([L, z], {
|
|
8813
|
+
val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
|
|
8814
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[O]
|
|
8815
8815
|
});
|
|
8816
8816
|
I.push(Q);
|
|
8817
8817
|
}
|
|
8818
|
-
}) : C.forEach((
|
|
8818
|
+
}) : C.forEach((L, O) => {
|
|
8819
8819
|
var G, Y, K, V, J, ee;
|
|
8820
8820
|
if (r < 2) {
|
|
8821
|
-
if ((
|
|
8822
|
-
const Q = H.point([
|
|
8823
|
-
val: ((G = P[
|
|
8824
|
-
spd: (K = P[
|
|
8821
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8822
|
+
const Q = H.point([L, z], {
|
|
8823
|
+
val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
|
|
8824
|
+
spd: (K = P[z].spd) == null ? void 0 : K[O]
|
|
8825
8825
|
});
|
|
8826
8826
|
I.push(Q);
|
|
8827
8827
|
}
|
|
8828
|
-
} else if (
|
|
8829
|
-
const Q = H.point([
|
|
8830
|
-
val: ((V = P[
|
|
8831
|
-
spd: (ee = P[
|
|
8828
|
+
} else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8829
|
+
const Q = H.point([L, z], {
|
|
8830
|
+
val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
|
|
8831
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[O]
|
|
8832
8832
|
});
|
|
8833
8833
|
I.push(Q);
|
|
8834
8834
|
}
|
|
@@ -8838,61 +8838,61 @@ const bn = {
|
|
|
8838
8838
|
const _ = this.weatherLayers[T].height;
|
|
8839
8839
|
if (_) {
|
|
8840
8840
|
if (!_.data) {
|
|
8841
|
-
const
|
|
8841
|
+
const z = [];
|
|
8842
8842
|
for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
|
|
8843
|
-
const
|
|
8844
|
-
for (const
|
|
8845
|
-
|
|
8846
|
-
H.lineString(
|
|
8843
|
+
const L = _.raw.LineString[C];
|
|
8844
|
+
for (const O of L)
|
|
8845
|
+
z.push(
|
|
8846
|
+
H.lineString(O, {
|
|
8847
8847
|
val: Number(C)
|
|
8848
8848
|
})
|
|
8849
8849
|
);
|
|
8850
|
-
_.data = H.featureCollection(
|
|
8850
|
+
_.data = H.featureCollection(z);
|
|
8851
8851
|
}
|
|
8852
8852
|
}
|
|
8853
8853
|
if (_.data) {
|
|
8854
|
-
const
|
|
8855
|
-
I = I.concat(
|
|
8854
|
+
const z = this.handleBboxClip(_.data, i);
|
|
8855
|
+
I = I.concat(z);
|
|
8856
8856
|
}
|
|
8857
8857
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
|
|
8858
8858
|
}
|
|
8859
8859
|
} else if (T === "current") {
|
|
8860
|
-
|
|
8860
|
+
R = !0;
|
|
8861
8861
|
const P = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
|
|
8862
|
-
for (const
|
|
8863
|
-
if (
|
|
8864
|
-
const C = P[
|
|
8865
|
-
r > s ? C.forEach((
|
|
8862
|
+
for (const z in P)
|
|
8863
|
+
if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8864
|
+
const C = P[z].lng;
|
|
8865
|
+
r > s ? C.forEach((L, O) => {
|
|
8866
8866
|
var G, Y, K, V, J, ee;
|
|
8867
8867
|
if (o < 2) {
|
|
8868
|
-
if ((
|
|
8869
|
-
const Q = H.point([
|
|
8870
|
-
val: ((G = P[
|
|
8871
|
-
spd: (K = P[
|
|
8868
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8869
|
+
const Q = H.point([L, z], {
|
|
8870
|
+
val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
|
|
8871
|
+
spd: (K = P[z].spd) == null ? void 0 : K[O]
|
|
8872
8872
|
});
|
|
8873
8873
|
I.push(Q);
|
|
8874
8874
|
}
|
|
8875
|
-
} else if ((
|
|
8876
|
-
const Q = H.point([
|
|
8877
|
-
val: ((V = P[
|
|
8878
|
-
spd: (ee = P[
|
|
8875
|
+
} else if ((L >= r && L <= 180 || L >= -180 && L <= s) && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8876
|
+
const Q = H.point([L, z], {
|
|
8877
|
+
val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
|
|
8878
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[O]
|
|
8879
8879
|
});
|
|
8880
8880
|
I.push(Q);
|
|
8881
8881
|
}
|
|
8882
|
-
}) : C.forEach((
|
|
8882
|
+
}) : C.forEach((L, O) => {
|
|
8883
8883
|
var G, Y, K, V, J, ee;
|
|
8884
8884
|
if (r < 2) {
|
|
8885
|
-
if ((
|
|
8886
|
-
const Q = H.point([
|
|
8887
|
-
val: ((G = P[
|
|
8888
|
-
spd: (K = P[
|
|
8885
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
8886
|
+
const Q = H.point([L, z], {
|
|
8887
|
+
val: ((G = P[z].val) == null ? void 0 : G[O]) || ((Y = P[z].dir) == null ? void 0 : Y[O]),
|
|
8888
|
+
spd: (K = P[z].spd) == null ? void 0 : K[O]
|
|
8889
8889
|
});
|
|
8890
8890
|
I.push(Q);
|
|
8891
8891
|
}
|
|
8892
|
-
} else if (
|
|
8893
|
-
const Q = H.point([
|
|
8894
|
-
val: ((V = P[
|
|
8895
|
-
spd: (ee = P[
|
|
8892
|
+
} else if (L >= r && L <= s && (!(o <= this.zoom) || L % (o < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8893
|
+
const Q = H.point([L, z], {
|
|
8894
|
+
val: ((V = P[z].val) == null ? void 0 : V[O]) || ((J = P[z].dir) == null ? void 0 : J[O]),
|
|
8895
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[O]
|
|
8896
8896
|
});
|
|
8897
8897
|
I.push(Q);
|
|
8898
8898
|
}
|
|
@@ -8903,57 +8903,57 @@ const bn = {
|
|
|
8903
8903
|
if (_) {
|
|
8904
8904
|
if (!_.data) {
|
|
8905
8905
|
const C = [];
|
|
8906
|
-
for (const
|
|
8907
|
-
const
|
|
8908
|
-
for (const G of
|
|
8906
|
+
for (const L in (y = _.raw) == null ? void 0 : y.Polygon) {
|
|
8907
|
+
const O = _.raw.Polygon[L];
|
|
8908
|
+
for (const G of O)
|
|
8909
8909
|
C.push(
|
|
8910
8910
|
H.polygon(G, {
|
|
8911
|
-
val: Number(
|
|
8911
|
+
val: Number(L)
|
|
8912
8912
|
})
|
|
8913
8913
|
);
|
|
8914
8914
|
}
|
|
8915
8915
|
_.data = H.featureCollection(C);
|
|
8916
8916
|
}
|
|
8917
|
-
const
|
|
8918
|
-
I = I.concat(
|
|
8917
|
+
const z = o < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
8918
|
+
I = I.concat(z), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
8919
8919
|
}
|
|
8920
8920
|
} else if (T === "wind") {
|
|
8921
|
-
|
|
8921
|
+
R = !0;
|
|
8922
8922
|
const P = this.weatherLayers.wind.raw;
|
|
8923
8923
|
for (const _ in P)
|
|
8924
8924
|
if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8925
|
-
const
|
|
8926
|
-
r > s ?
|
|
8927
|
-
var
|
|
8925
|
+
const z = P[_].lng;
|
|
8926
|
+
r > s ? z.forEach((C, L) => {
|
|
8927
|
+
var O, G, Y, K;
|
|
8928
8928
|
if (o < 2) {
|
|
8929
8929
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8930
8930
|
const V = H.point([C, _], {
|
|
8931
|
-
dir: ((
|
|
8932
|
-
spd: P[_].spd[
|
|
8931
|
+
dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
|
|
8932
|
+
spd: P[_].spd[L]
|
|
8933
8933
|
});
|
|
8934
8934
|
I.push(V);
|
|
8935
8935
|
}
|
|
8936
8936
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8937
8937
|
const V = H.point([C, _], {
|
|
8938
|
-
dir: ((Y = P[_].val) == null ? void 0 : Y[
|
|
8939
|
-
spd: P[_].spd[
|
|
8938
|
+
dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
|
|
8939
|
+
spd: P[_].spd[L]
|
|
8940
8940
|
});
|
|
8941
8941
|
I.push(V);
|
|
8942
8942
|
}
|
|
8943
|
-
}) :
|
|
8944
|
-
var
|
|
8943
|
+
}) : z.forEach((C, L) => {
|
|
8944
|
+
var O, G, Y, K;
|
|
8945
8945
|
if (o < 2) {
|
|
8946
8946
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8947
8947
|
const V = H.point([C, _], {
|
|
8948
|
-
dir: ((
|
|
8949
|
-
spd: P[_].spd[
|
|
8948
|
+
dir: ((O = P[_].val) == null ? void 0 : O[L]) || ((G = P[_].dir) == null ? void 0 : G[L]),
|
|
8949
|
+
spd: P[_].spd[L]
|
|
8950
8950
|
});
|
|
8951
8951
|
I.push(V);
|
|
8952
8952
|
}
|
|
8953
8953
|
} else if (C >= r && C <= s && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8954
8954
|
const V = H.point([C, _], {
|
|
8955
|
-
dir: ((Y = P[_].val) == null ? void 0 : Y[
|
|
8956
|
-
spd: P[_].spd[
|
|
8955
|
+
dir: ((Y = P[_].val) == null ? void 0 : Y[L]) || ((K = P[_].dir) == null ? void 0 : K[L]),
|
|
8956
|
+
spd: P[_].spd[L]
|
|
8957
8957
|
});
|
|
8958
8958
|
I.push(V);
|
|
8959
8959
|
}
|
|
@@ -8964,34 +8964,34 @@ const bn = {
|
|
|
8964
8964
|
if (this.weatherLayers[T].data)
|
|
8965
8965
|
I = this.weatherLayers[T].data;
|
|
8966
8966
|
else {
|
|
8967
|
-
|
|
8967
|
+
R = !0;
|
|
8968
8968
|
const P = this.weatherLayers[T].raw;
|
|
8969
8969
|
if (P) {
|
|
8970
8970
|
const _ = [];
|
|
8971
|
-
for (const
|
|
8972
|
-
const C = P.Polygon[
|
|
8973
|
-
for (const
|
|
8971
|
+
for (const z in P.Polygon) {
|
|
8972
|
+
const C = P.Polygon[z];
|
|
8973
|
+
for (const L of C)
|
|
8974
8974
|
_.push(
|
|
8975
|
-
H.polygon(
|
|
8976
|
-
val: Number(
|
|
8975
|
+
H.polygon(L, {
|
|
8976
|
+
val: Number(z)
|
|
8977
8977
|
})
|
|
8978
8978
|
);
|
|
8979
8979
|
}
|
|
8980
|
-
for (const
|
|
8981
|
-
const C = P.MultiPolygon[
|
|
8982
|
-
for (const
|
|
8980
|
+
for (const z in P.MultiPolygon) {
|
|
8981
|
+
const C = P.MultiPolygon[z];
|
|
8982
|
+
for (const L of C)
|
|
8983
8983
|
_.push(
|
|
8984
|
-
H.multiPolygon(
|
|
8985
|
-
val: Number(
|
|
8984
|
+
H.multiPolygon(L, {
|
|
8985
|
+
val: Number(z)
|
|
8986
8986
|
})
|
|
8987
8987
|
);
|
|
8988
8988
|
}
|
|
8989
|
-
for (const
|
|
8990
|
-
const C = P.Point[
|
|
8991
|
-
for (let
|
|
8989
|
+
for (const z in P.Point) {
|
|
8990
|
+
const C = P.Point[z];
|
|
8991
|
+
for (let L = 0; L < ((k = C.lng) == null ? void 0 : k.length); L++)
|
|
8992
8992
|
_.push(
|
|
8993
|
-
H.point([C.lng[
|
|
8994
|
-
val: Number(C.val[
|
|
8993
|
+
H.point([C.lng[L], z], {
|
|
8994
|
+
val: Number(C.val[L])
|
|
8995
8995
|
})
|
|
8996
8996
|
);
|
|
8997
8997
|
}
|
|
@@ -9003,25 +9003,25 @@ const bn = {
|
|
|
9003
9003
|
if (this.weatherLayers[T].data)
|
|
9004
9004
|
I = this.weatherLayers[T].data;
|
|
9005
9005
|
else {
|
|
9006
|
-
|
|
9006
|
+
R = !0;
|
|
9007
9007
|
const P = this.weatherLayers[T].raw;
|
|
9008
9008
|
if (P) {
|
|
9009
9009
|
const _ = [];
|
|
9010
|
-
for (const
|
|
9011
|
-
const C = P.LineString[
|
|
9012
|
-
for (const
|
|
9010
|
+
for (const z in P.LineString) {
|
|
9011
|
+
const C = P.LineString[z];
|
|
9012
|
+
for (const L of C)
|
|
9013
9013
|
_.push(
|
|
9014
|
-
H.lineString(
|
|
9015
|
-
val: Number(
|
|
9014
|
+
H.lineString(L, {
|
|
9015
|
+
val: Number(z)
|
|
9016
9016
|
})
|
|
9017
9017
|
);
|
|
9018
9018
|
}
|
|
9019
|
-
for (const
|
|
9020
|
-
P.Point[
|
|
9019
|
+
for (const z in P.Point)
|
|
9020
|
+
P.Point[z].lng.forEach((C, L) => {
|
|
9021
9021
|
C = $.convertToStdLng(C), _.push(
|
|
9022
|
-
H.point([C,
|
|
9023
|
-
val: P.Point[
|
|
9024
|
-
type: P.Point[
|
|
9022
|
+
H.point([C, z], {
|
|
9023
|
+
val: P.Point[z].val[L],
|
|
9024
|
+
type: P.Point[z].type[L]
|
|
9025
9025
|
})
|
|
9026
9026
|
);
|
|
9027
9027
|
});
|
|
@@ -9030,7 +9030,7 @@ const bn = {
|
|
|
9030
9030
|
}
|
|
9031
9031
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
9032
9032
|
}
|
|
9033
|
-
I.length && (this.weatherLayers[T].data = H.featureCollection(I)),
|
|
9033
|
+
I.length && (this.weatherLayers[T].data = H.featureCollection(I)), R && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9034
9034
|
}
|
|
9035
9035
|
}
|
|
9036
9036
|
},
|
|
@@ -9073,7 +9073,7 @@ const bn = {
|
|
|
9073
9073
|
}, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
|
|
9074
9074
|
function Qn(t, e, a, i, o, r) {
|
|
9075
9075
|
var pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
|
|
9076
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"),
|
|
9076
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), R = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), L = x("IdmWindParticle"), O = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
|
|
9077
9077
|
return b(), S("div", wn, [
|
|
9078
9078
|
l("div", {
|
|
9079
9079
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9084,7 +9084,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9084
9084
|
location: "left"
|
|
9085
9085
|
}, {
|
|
9086
9086
|
activator: u(({ props: U }) => [
|
|
9087
|
-
d(s,
|
|
9087
|
+
d(s, B(U, {
|
|
9088
9088
|
"min-width": "32",
|
|
9089
9089
|
width: "32",
|
|
9090
9090
|
height: "32",
|
|
@@ -9111,7 +9111,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9111
9111
|
location: "left"
|
|
9112
9112
|
}, {
|
|
9113
9113
|
activator: u(({ props: U }) => [
|
|
9114
|
-
d(s,
|
|
9114
|
+
d(s, B(U, {
|
|
9115
9115
|
"min-width": "32",
|
|
9116
9116
|
width: "32",
|
|
9117
9117
|
height: "32",
|
|
@@ -9164,7 +9164,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9164
9164
|
_: 1,
|
|
9165
9165
|
__: [9]
|
|
9166
9166
|
}),
|
|
9167
|
-
d(
|
|
9167
|
+
d(f, { vertical: "" }),
|
|
9168
9168
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9169
9169
|
default: u(() => [
|
|
9170
9170
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
@@ -9196,7 +9196,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9196
9196
|
_: 1,
|
|
9197
9197
|
__: [10]
|
|
9198
9198
|
}),
|
|
9199
|
-
d(
|
|
9199
|
+
d(f, { vertical: "" }),
|
|
9200
9200
|
d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9201
9201
|
default: u(() => [
|
|
9202
9202
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
@@ -9272,9 +9272,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9272
9272
|
elevation: "0"
|
|
9273
9273
|
}, {
|
|
9274
9274
|
default: u(() => [
|
|
9275
|
-
d(
|
|
9275
|
+
d(k, { class: "border-b-thin" }, {
|
|
9276
9276
|
default: u(() => [
|
|
9277
|
-
d(
|
|
9277
|
+
d(y, {
|
|
9278
9278
|
class: "text-subtitle-1 font-weight-medium",
|
|
9279
9279
|
style: { "font-size": "16px !important" }
|
|
9280
9280
|
}, {
|
|
@@ -9312,9 +9312,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9312
9312
|
elevation: "0"
|
|
9313
9313
|
}, {
|
|
9314
9314
|
default: u(() => [
|
|
9315
|
-
d(
|
|
9315
|
+
d(k, { class: "border-b-thin" }, {
|
|
9316
9316
|
default: u(() => [
|
|
9317
|
-
d(
|
|
9317
|
+
d(y, {
|
|
9318
9318
|
class: "text-subtitle-1 font-weight-medium",
|
|
9319
9319
|
style: { "font-size": "16px !important" }
|
|
9320
9320
|
}, {
|
|
@@ -9331,7 +9331,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9331
9331
|
(b(!0), S(be, null, we(o.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (b(), S(be, {
|
|
9332
9332
|
key: U.key
|
|
9333
9333
|
}, [
|
|
9334
|
-
d(
|
|
9334
|
+
d(R, {
|
|
9335
9335
|
modelValue: o.renderKey,
|
|
9336
9336
|
"onUpdate:modelValue": e[3] || (e[3] = (ae) => o.renderKey = ae),
|
|
9337
9337
|
label: t.$t(`weather.${U.locale}`),
|
|
@@ -9427,9 +9427,9 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9427
9427
|
elevation: "0"
|
|
9428
9428
|
}, {
|
|
9429
9429
|
default: u(() => [
|
|
9430
|
-
d(
|
|
9430
|
+
d(k, { class: "border-b-thin" }, {
|
|
9431
9431
|
default: u(() => [
|
|
9432
|
-
d(
|
|
9432
|
+
d(y, {
|
|
9433
9433
|
class: "text-subtitle-1 font-weight-medium",
|
|
9434
9434
|
style: { "font-size": "16px !important" }
|
|
9435
9435
|
}, {
|
|
@@ -9452,7 +9452,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9452
9452
|
l("div", Nn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
|
|
9453
9453
|
l("div", jn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9454
9454
|
l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
9455
|
-
d(
|
|
9455
|
+
d(f),
|
|
9456
9456
|
l("div", Hn, h(t.$t("weather.wave")), 1),
|
|
9457
9457
|
l("div", Un, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
|
|
9458
9458
|
l("div", Wn, h(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -9460,7 +9460,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9460
9460
|
l("div", Vn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
|
|
9461
9461
|
l("div", Zn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9462
9462
|
l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9463
|
-
d(
|
|
9463
|
+
d(f),
|
|
9464
9464
|
l("div", Yn, h(t.$t("weather.currents")), 1),
|
|
9465
9465
|
l("div", Kn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
|
|
9466
9466
|
l("div", Xn, h(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -9474,7 +9474,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9474
9474
|
})
|
|
9475
9475
|
], 2)
|
|
9476
9476
|
], 6),
|
|
9477
|
-
a.map ? (b(), A(P,
|
|
9477
|
+
a.map ? (b(), A(P, B({
|
|
9478
9478
|
key: 1,
|
|
9479
9479
|
ref: "windBarb",
|
|
9480
9480
|
map: a.map,
|
|
@@ -9483,7 +9483,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9483
9483
|
wind: (pe = o.weatherLayers) == null ? void 0 : pe.wind,
|
|
9484
9484
|
"menu-toggle": a.menuToggle
|
|
9485
9485
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
9486
|
-
a.map ? (b(), A(_,
|
|
9486
|
+
a.map ? (b(), A(_, B({
|
|
9487
9487
|
key: 2,
|
|
9488
9488
|
map: a.map,
|
|
9489
9489
|
"before-layer": "empty-layer-2",
|
|
@@ -9491,7 +9491,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9491
9491
|
"menu-toggle": a.menuToggle,
|
|
9492
9492
|
"active-weather-layers": o.activeWeatherLayers
|
|
9493
9493
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
9494
|
-
a.map ? (b(), A(
|
|
9494
|
+
a.map ? (b(), A(z, B({
|
|
9495
9495
|
key: 3,
|
|
9496
9496
|
map: a.map,
|
|
9497
9497
|
"map-feather": a.mapFeather,
|
|
@@ -9499,7 +9499,7 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9499
9499
|
current: (X = o.weatherLayers) == null ? void 0 : X.current,
|
|
9500
9500
|
"menu-toggle": a.menuToggle
|
|
9501
9501
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
9502
|
-
a.map ? (b(), A(C,
|
|
9502
|
+
a.map ? (b(), A(C, B({
|
|
9503
9503
|
key: 4,
|
|
9504
9504
|
map: a.map,
|
|
9505
9505
|
"before-layer": "empty-layer-2",
|
|
@@ -9507,68 +9507,68 @@ function Qn(t, e, a, i, o, r) {
|
|
|
9507
9507
|
"menu-toggle": a.menuToggle,
|
|
9508
9508
|
"active-weather-layers": o.activeWeatherLayers
|
|
9509
9509
|
}, t.$attrs, { theme: a.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
9510
|
-
a.map ? (b(), A(
|
|
9510
|
+
a.map ? (b(), A(L, B({
|
|
9511
9511
|
key: 5,
|
|
9512
9512
|
viewport: o.viewport,
|
|
9513
9513
|
factor: (ue = o.weatherLayers) == null ? void 0 : ue["wind-particle"],
|
|
9514
9514
|
"menu-toggle": a.menuToggle
|
|
9515
9515
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9516
|
-
a.map ? (b(), A(
|
|
9516
|
+
a.map ? (b(), A(O, B({
|
|
9517
9517
|
key: 6,
|
|
9518
9518
|
viewport: o.viewport,
|
|
9519
9519
|
factor: (ne = o.weatherLayers) == null ? void 0 : ne["current-particle"],
|
|
9520
9520
|
"menu-toggle": a.menuToggle
|
|
9521
9521
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9522
|
-
a.map ? (b(), A(G,
|
|
9522
|
+
a.map ? (b(), A(G, B({
|
|
9523
9523
|
key: 7,
|
|
9524
9524
|
viewport: o.viewport,
|
|
9525
9525
|
factor: (F = o.weatherLayers) == null ? void 0 : F["sig-wave"],
|
|
9526
9526
|
"menu-toggle": a.menuToggle
|
|
9527
9527
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9528
|
-
a.map ? (b(), A(Y,
|
|
9528
|
+
a.map ? (b(), A(Y, B({
|
|
9529
9529
|
key: 8,
|
|
9530
9530
|
map: a.map,
|
|
9531
9531
|
swell: (ce = o.weatherLayers) == null ? void 0 : ce.swell,
|
|
9532
9532
|
"menu-toggle": a.menuToggle,
|
|
9533
9533
|
"active-weather-layers": o.activeWeatherLayers
|
|
9534
9534
|
}, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
9535
|
-
a.map ? (b(), A(K,
|
|
9535
|
+
a.map ? (b(), A(K, B({
|
|
9536
9536
|
key: 9,
|
|
9537
9537
|
viewport: o.viewport,
|
|
9538
9538
|
factor: (xe = o.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
9539
9539
|
"menu-toggle": a.menuToggle
|
|
9540
9540
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9541
|
-
a.map ? (b(), A(V,
|
|
9541
|
+
a.map ? (b(), A(V, B({
|
|
9542
9542
|
key: 10,
|
|
9543
9543
|
viewport: o.viewport,
|
|
9544
9544
|
factor: (Le = o.weatherLayers) == null ? void 0 : Le["ice-cover"],
|
|
9545
9545
|
"menu-toggle": a.menuToggle
|
|
9546
9546
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9547
|
-
a.map ? (b(), A(J,
|
|
9547
|
+
a.map ? (b(), A(J, B({
|
|
9548
9548
|
key: 11,
|
|
9549
9549
|
viewport: o.viewport,
|
|
9550
9550
|
factor: (Pe = o.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
9551
9551
|
"menu-toggle": a.menuToggle
|
|
9552
9552
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9553
|
-
a.map ? (b(), A(ee,
|
|
9553
|
+
a.map ? (b(), A(ee, B({
|
|
9554
9554
|
key: 12,
|
|
9555
9555
|
viewport: o.viewport,
|
|
9556
9556
|
factor: (Ae = o.weatherLayers) == null ? void 0 : Ae.precip3h,
|
|
9557
9557
|
"menu-toggle": a.menuToggle
|
|
9558
9558
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9559
|
-
a.map ? (b(), A(Q,
|
|
9559
|
+
a.map ? (b(), A(Q, B({
|
|
9560
9560
|
key: 13,
|
|
9561
9561
|
viewport: o.viewport,
|
|
9562
9562
|
factor: (De = o.weatherLayers) == null ? void 0 : De.visibility,
|
|
9563
9563
|
"menu-toggle": a.menuToggle
|
|
9564
9564
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9565
|
-
a.map ? (b(), A(re,
|
|
9565
|
+
a.map ? (b(), A(re, B({
|
|
9566
9566
|
key: 14,
|
|
9567
9567
|
viewport: o.viewport,
|
|
9568
9568
|
factor: (Re = o.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
9569
9569
|
"menu-toggle": a.menuToggle
|
|
9570
9570
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
9571
|
-
a.map ? (b(), A(de,
|
|
9571
|
+
a.map ? (b(), A(de, B({
|
|
9572
9572
|
key: 15,
|
|
9573
9573
|
viewport: o.viewport,
|
|
9574
9574
|
factor: (_e = o.weatherLayers) == null ? void 0 : _e.temp,
|
|
@@ -9894,18 +9894,18 @@ class Zo {
|
|
|
9894
9894
|
const o = e.toLowerCase().split(","), r = [], s = [];
|
|
9895
9895
|
for (const c of o) {
|
|
9896
9896
|
let n = ta.find((p) => {
|
|
9897
|
-
var
|
|
9898
|
-
return ((
|
|
9897
|
+
var f, w, v;
|
|
9898
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
9899
9899
|
}), g = aa.find((p) => {
|
|
9900
|
-
var
|
|
9901
|
-
return ((
|
|
9900
|
+
var f, w, v;
|
|
9901
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
9902
9902
|
});
|
|
9903
9903
|
n = n || ta.find((p) => {
|
|
9904
|
-
var
|
|
9905
|
-
return ((
|
|
9904
|
+
var f, w;
|
|
9905
|
+
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
|
|
9906
9906
|
}), g = g || aa.find((p) => {
|
|
9907
|
-
var
|
|
9908
|
-
return ((
|
|
9907
|
+
var f, w;
|
|
9908
|
+
return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9909
9909
|
}), n = n || ta[0], g = g || aa[0], r.push((a = n.models) != null && a.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
|
|
9910
9910
|
}
|
|
9911
9911
|
return {
|
|
@@ -9923,7 +9923,7 @@ class Zo {
|
|
|
9923
9923
|
}), o;
|
|
9924
9924
|
}
|
|
9925
9925
|
static pickHourly(e, a) {
|
|
9926
|
-
var i, o, r, s, c, n, g, p,
|
|
9926
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
|
|
9927
9927
|
const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9928
9928
|
if (ge.isBetween(te, le, "millisecond", "[]")) {
|
|
9929
9929
|
const N = ge.utc().diff(te, "h", !1);
|
|
@@ -9933,27 +9933,27 @@ class Zo {
|
|
|
9933
9933
|
for (const E of fe) {
|
|
9934
9934
|
const Z = E == null ? void 0 : E.hourly;
|
|
9935
9935
|
for (let Te = N - (N - 1) % 3; Te <= N; Te++)
|
|
9936
|
-
Be += (
|
|
9936
|
+
Be += (f = Z == null ? void 0 : Z.precipitation) == null ? void 0 : f.at(Te);
|
|
9937
9937
|
for (let Te = N - (N - 1) % 6; Te <= N; Te++)
|
|
9938
9938
|
Ee += (w = Z == null ? void 0 : Z.precipitation) == null ? void 0 : w.at(Te);
|
|
9939
9939
|
ye = {
|
|
9940
9940
|
temp: (v = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : v.at(N),
|
|
9941
|
-
apparentTemp: (
|
|
9942
|
-
rh: (
|
|
9941
|
+
apparentTemp: (y = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : y.at(N),
|
|
9942
|
+
rh: (k = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : k.at(N),
|
|
9943
9943
|
dp: (T = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : T.at(N),
|
|
9944
9944
|
precip: {
|
|
9945
|
-
probability: (
|
|
9945
|
+
probability: (R = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : R.at(N),
|
|
9946
9946
|
sum: (I = Z == null ? void 0 : Z.precipitation) == null ? void 0 : I.at(N),
|
|
9947
9947
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9948
9948
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
9949
9949
|
},
|
|
9950
9950
|
pmsl: (P = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : P.at(N),
|
|
9951
9951
|
psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(N),
|
|
9952
|
-
code: (
|
|
9952
|
+
code: (z = Z == null ? void 0 : Z.weather_code) == null ? void 0 : z.at(N),
|
|
9953
9953
|
visibility: this.m2nm((C = Z == null ? void 0 : Z.visibility) == null ? void 0 : C.at(N)),
|
|
9954
9954
|
wind: {
|
|
9955
|
-
speed: (
|
|
9956
|
-
kts: (
|
|
9955
|
+
speed: (L = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : L.at(N),
|
|
9956
|
+
kts: (O = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : O.at(N),
|
|
9957
9957
|
degree: (G = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : G.at(N),
|
|
9958
9958
|
bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(N)) !== null ? (((K = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : K.at(N)) + 180) % 360 : null,
|
|
9959
9959
|
gusts: (V = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : V.at(N)
|
|
@@ -10010,7 +10010,7 @@ class Zo {
|
|
|
10010
10010
|
return Oe;
|
|
10011
10011
|
}
|
|
10012
10012
|
static toLegacy(e) {
|
|
10013
|
-
var a, i, o, r, s, c, n, g, p,
|
|
10013
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
10014
10014
|
return {
|
|
10015
10015
|
wind: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.wind,
|
|
10016
10016
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -10022,7 +10022,7 @@ class Zo {
|
|
|
10022
10022
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
10023
10023
|
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
10024
10024
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
10025
|
-
url: (
|
|
10025
|
+
url: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.url,
|
|
10026
10026
|
wave: e == null ? void 0 : e.wave,
|
|
10027
10027
|
current: e == null ? void 0 : e.current,
|
|
10028
10028
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -10032,7 +10032,7 @@ class Zo {
|
|
|
10032
10032
|
};
|
|
10033
10033
|
}
|
|
10034
10034
|
static pickDaily(e, a) {
|
|
10035
|
-
var i, o, r, s, c, n, g, p,
|
|
10035
|
+
var i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
|
|
10036
10036
|
const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, ae = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Ne = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
|
|
10037
10037
|
if (Re.isBetween(ae, Ne, "millisecond", "[]")) {
|
|
10038
10038
|
let ge, fe;
|
|
@@ -10044,28 +10044,28 @@ class Zo {
|
|
|
10044
10044
|
code: (g = te.weather_code) == null ? void 0 : g.at(W),
|
|
10045
10045
|
temp: {
|
|
10046
10046
|
max: (p = te.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
10047
|
-
min: (
|
|
10047
|
+
min: (f = te.temperature_2m_min) == null ? void 0 : f.at(W),
|
|
10048
10048
|
mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10049
10049
|
},
|
|
10050
10050
|
apparentTemp: {
|
|
10051
10051
|
max: (v = te.apparent_temperature_max) == null ? void 0 : v.at(W),
|
|
10052
|
-
min: (
|
|
10052
|
+
min: (y = te.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10053
10053
|
},
|
|
10054
10054
|
precip: {
|
|
10055
|
-
sum: (
|
|
10055
|
+
sum: (k = te.precipitation_sum) == null ? void 0 : k.at(W),
|
|
10056
10056
|
rainSum: (T = te.rain_sum) == null ? void 0 : T.at(W),
|
|
10057
|
-
snowfallSum: (
|
|
10057
|
+
snowfallSum: (R = te.snowfall_sum) == null ? void 0 : R.at(W),
|
|
10058
10058
|
showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
|
|
10059
10059
|
hours: (P = te.precipitation_hours) == null ? void 0 : P.at(W),
|
|
10060
10060
|
probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
|
|
10061
10061
|
},
|
|
10062
10062
|
rh: {
|
|
10063
|
-
max: (
|
|
10063
|
+
max: (z = te.relative_humidity_2m_max) == null ? void 0 : z.at(W),
|
|
10064
10064
|
min: (C = te.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10065
|
-
mean: (
|
|
10065
|
+
mean: (L = te.relative_humidity_2m_mean) == null ? void 0 : L.at(W)
|
|
10066
10066
|
},
|
|
10067
10067
|
wind: {
|
|
10068
|
-
speed: (
|
|
10068
|
+
speed: (O = te.wind_speed_10m_max) == null ? void 0 : O.at(W),
|
|
10069
10069
|
kts: (G = te.wind_speed_10m_max) == null ? void 0 : G.at(W),
|
|
10070
10070
|
degree: (Y = te.wind_direction_10m_dominant) == null ? void 0 : Y.at(W),
|
|
10071
10071
|
gusts: (K = te.wind_gusts_10m_max) == null ? void 0 : K.at(W),
|
|
@@ -10684,10 +10684,10 @@ const ec = {
|
|
|
10684
10684
|
},
|
|
10685
10685
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
10686
10686
|
}).then((p) => {
|
|
10687
|
-
var v,
|
|
10688
|
-
const
|
|
10689
|
-
((
|
|
10690
|
-
data:
|
|
10687
|
+
var v, y, k;
|
|
10688
|
+
const f = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
|
|
10689
|
+
((k = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : k.key) && f && (this.tropicals = {
|
|
10690
|
+
data: f,
|
|
10691
10691
|
active: !0,
|
|
10692
10692
|
cached: !0,
|
|
10693
10693
|
type: "json",
|
|
@@ -10709,15 +10709,15 @@ const ec = {
|
|
|
10709
10709
|
}), this.handleInit();
|
|
10710
10710
|
},
|
|
10711
10711
|
handleInit() {
|
|
10712
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
10713
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (
|
|
10712
|
+
var t, e, a, i, o, r, s, c, n, g, p, f;
|
|
10713
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
|
|
10714
10714
|
},
|
|
10715
10715
|
handleRender() {
|
|
10716
10716
|
var e, a, i, o, r, s, c, n, g, p;
|
|
10717
10717
|
if (this.tropicals && this.map) {
|
|
10718
|
-
const
|
|
10718
|
+
const f = (/* @__PURE__ */ new Date()).valueOf();
|
|
10719
10719
|
let w = 0, v = 0;
|
|
10720
|
-
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10720
|
+
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.source, {
|
|
10721
10721
|
type: "geojson",
|
|
10722
10722
|
data: (o = this.tropicals) != null && o.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
|
|
10723
10723
|
}), this.map.addLayer({
|
|
@@ -10814,7 +10814,7 @@ const ec = {
|
|
|
10814
10814
|
],
|
|
10815
10815
|
"text-halo-width": 4
|
|
10816
10816
|
}
|
|
10817
|
-
}), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10817
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.clusterSource, {
|
|
10818
10818
|
type: "geojson",
|
|
10819
10819
|
data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
10820
10820
|
// cluster: true,
|
|
@@ -10930,7 +10930,7 @@ const ec = {
|
|
|
10930
10930
|
"text-halo-color": "#ffffff",
|
|
10931
10931
|
"text-halo-width": 1
|
|
10932
10932
|
}
|
|
10933
|
-
}), v = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
10933
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v));
|
|
10934
10934
|
}
|
|
10935
10935
|
this.handleDrawCircle();
|
|
10936
10936
|
const t = Vo.interpolate(this.tropicals, 1);
|
|
@@ -10941,7 +10941,7 @@ const ec = {
|
|
|
10941
10941
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (o = this.activeTropicalsMarker) == null || o.remove(), this.activeTropicalsMarker = void 0;
|
|
10942
10942
|
},
|
|
10943
10943
|
handleDateChange() {
|
|
10944
|
-
var t, e, a, i, o, r, s, c, n, g, p,
|
|
10944
|
+
var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q;
|
|
10945
10945
|
if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10946
10946
|
const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
|
|
10947
10947
|
pe.forEach((X) => {
|
|
@@ -10963,7 +10963,7 @@ const ec = {
|
|
|
10963
10963
|
for (const X of de)
|
|
10964
10964
|
if (!X.properties.disabled) {
|
|
10965
10965
|
let oe = "#f44336";
|
|
10966
|
-
((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((
|
|
10966
|
+
((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((k = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((R = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : R.kts) < 63 ? oe = "#ff9100" : ((P = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? oe = "#f44336" : ((L = (C = X.properties) == null ? void 0 : C.wind) == null ? void 0 : L.kts) >= 79 && ((G = (O = X.properties) == null ? void 0 : O.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
|
|
10967
10967
|
const ue = `<svg t="1719918955501"
|
|
10968
10968
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10969
10969
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -10987,7 +10987,7 @@ const ec = {
|
|
|
10987
10987
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
10988
10988
|
},
|
|
10989
10989
|
handleClick(t) {
|
|
10990
|
-
var o, r, s, c, n, g, p,
|
|
10990
|
+
var o, r, s, c, n, g, p, f;
|
|
10991
10991
|
const e = t.features[0], a = (r = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : r.features.filter(
|
|
10992
10992
|
(w) => {
|
|
10993
10993
|
var v;
|
|
@@ -11003,7 +11003,7 @@ const ec = {
|
|
|
11003
11003
|
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
11004
11004
|
forecasts: a.map((w) => w.properties),
|
|
11005
11005
|
history: (g = i[0]) == null ? void 0 : g.properties,
|
|
11006
|
-
showCircle: (
|
|
11006
|
+
showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
11007
11007
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11008
11008
|
const w = document.getElementById("idm-tropical-gl4-info");
|
|
11009
11009
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -11116,7 +11116,7 @@ const ec = {
|
|
|
11116
11116
|
style: { height: "80px" }
|
|
11117
11117
|
}, kc = { class: "pa-1 d-flex justify-space-between align-center" }, zc = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
11118
11118
|
function Lc(t, e, a, i, o, r) {
|
|
11119
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"),
|
|
11119
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard");
|
|
11120
11120
|
return b(), S("div", tc, [
|
|
11121
11121
|
l("div", {
|
|
11122
11122
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11127,7 +11127,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11127
11127
|
location: "left"
|
|
11128
11128
|
}, {
|
|
11129
11129
|
activator: u(({ props: w }) => [
|
|
11130
|
-
d(s,
|
|
11130
|
+
d(s, B(w, {
|
|
11131
11131
|
"min-width": "32",
|
|
11132
11132
|
width: "32",
|
|
11133
11133
|
height: "32",
|
|
@@ -11145,18 +11145,18 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11145
11145
|
}, 8, ["text"])
|
|
11146
11146
|
], 4),
|
|
11147
11147
|
o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
|
|
11148
|
-
d(
|
|
11148
|
+
d(f, {
|
|
11149
11149
|
width: "400",
|
|
11150
11150
|
elevation: "16"
|
|
11151
11151
|
}, {
|
|
11152
11152
|
default: u(() => [
|
|
11153
11153
|
d(n, null, {
|
|
11154
11154
|
default: u(() => {
|
|
11155
|
-
var w, v,
|
|
11155
|
+
var w, v, y, k, T, R, I, P, _, z;
|
|
11156
11156
|
return [
|
|
11157
11157
|
l("div", oc, [
|
|
11158
11158
|
l("span", ic, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
|
|
11159
|
-
(
|
|
11159
|
+
(y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (k = o.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : T.level), 1)) : D("", !0)
|
|
11160
11160
|
]),
|
|
11161
11161
|
d(s, {
|
|
11162
11162
|
icon: "",
|
|
@@ -11173,7 +11173,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11173
11173
|
}),
|
|
11174
11174
|
l("div", lc, [
|
|
11175
11175
|
l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11176
|
-
l("span", null, h(r.computeTime(((I = (
|
|
11176
|
+
l("span", null, h(r.computeTime(((I = (R = o.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : I.updated) || ((z = (_ = (P = o.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : _.filter((C) => !C.disabled)[0]) == null ? void 0 : z.date))), 1)
|
|
11177
11177
|
])
|
|
11178
11178
|
];
|
|
11179
11179
|
}),
|
|
@@ -11182,17 +11182,17 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11182
11182
|
d(g),
|
|
11183
11183
|
d(n, { class: "text-body-1" }, {
|
|
11184
11184
|
default: u(() => {
|
|
11185
|
-
var w, v,
|
|
11185
|
+
var w, v, y, k, T, R, I, P, _;
|
|
11186
11186
|
return [
|
|
11187
11187
|
l("div", nc, [
|
|
11188
11188
|
l("div", cc, [
|
|
11189
11189
|
l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11190
11190
|
l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
|
|
11191
|
-
l("span", null, ", BF " + h(r.computeBF(((
|
|
11191
|
+
l("span", null, ", BF " + h(r.computeBF(((k = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : k.kts) || "-")), 1)
|
|
11192
11192
|
]),
|
|
11193
11193
|
l("div", dc, [
|
|
11194
11194
|
l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
|
|
11195
|
-
l("span", null, h(((
|
|
11195
|
+
l("span", null, h(((R = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : R.pressure) || "-") + " hPa", 1)
|
|
11196
11196
|
])
|
|
11197
11197
|
]),
|
|
11198
11198
|
l("div", pc, [
|
|
@@ -11208,16 +11208,16 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11208
11208
|
l("div", bc, [
|
|
11209
11209
|
l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11210
11210
|
l("div", xc, [
|
|
11211
|
-
(b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (
|
|
11211
|
+
(b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (z, C) => (b(), A(s, {
|
|
11212
11212
|
key: C,
|
|
11213
11213
|
density: "compact",
|
|
11214
|
-
variant:
|
|
11215
|
-
color:
|
|
11216
|
-
class: He(["model text-none text-body-1",
|
|
11217
|
-
onClick: (
|
|
11214
|
+
variant: z.disabled ? "outlined" : "flat",
|
|
11215
|
+
color: z.disabled ? "" : "primary",
|
|
11216
|
+
class: He(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
|
|
11217
|
+
onClick: (L) => r.handleForecastToggle(z)
|
|
11218
11218
|
}, {
|
|
11219
11219
|
default: u(() => [
|
|
11220
|
-
j(h(
|
|
11220
|
+
j(h(z.model), 1)
|
|
11221
11221
|
]),
|
|
11222
11222
|
_: 2
|
|
11223
11223
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11279,7 +11279,7 @@ function Lc(t, e, a, i, o, r) {
|
|
|
11279
11279
|
_: 1
|
|
11280
11280
|
}),
|
|
11281
11281
|
l("div", _c, [
|
|
11282
|
-
Ue(d(
|
|
11282
|
+
Ue(d(f, {
|
|
11283
11283
|
width: "400",
|
|
11284
11284
|
elevation: "16"
|
|
11285
11285
|
}, {
|
|
@@ -11499,7 +11499,7 @@ const Pc = {
|
|
|
11499
11499
|
style: { height: "56px" }
|
|
11500
11500
|
};
|
|
11501
11501
|
function Mc(t, e, a, i, o, r) {
|
|
11502
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"),
|
|
11502
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), v = x("VCardActions"), y = x("VCard");
|
|
11503
11503
|
return b(), S("div", Cc, [
|
|
11504
11504
|
d(s, {
|
|
11505
11505
|
text: "",
|
|
@@ -11512,7 +11512,7 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11512
11512
|
]),
|
|
11513
11513
|
_: 1
|
|
11514
11514
|
}, 8, ["onClick"]),
|
|
11515
|
-
o.showDatePicker ? (b(), A(
|
|
11515
|
+
o.showDatePicker ? (b(), A(y, {
|
|
11516
11516
|
key: 0,
|
|
11517
11517
|
class: "card-box d-flex flex-column"
|
|
11518
11518
|
}, {
|
|
@@ -11522,7 +11522,7 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11522
11522
|
l("div", Tc, [
|
|
11523
11523
|
d(c, {
|
|
11524
11524
|
modelValue: o.currentDate,
|
|
11525
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11525
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => o.currentDate = k),
|
|
11526
11526
|
min: o.dateRange[0],
|
|
11527
11527
|
max: o.dateRange[1],
|
|
11528
11528
|
"mode-icon": () => r.currentYear,
|
|
@@ -11540,13 +11540,13 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11540
11540
|
}),
|
|
11541
11541
|
l("div", Sc, [
|
|
11542
11542
|
l("div", Ic, h(o.currentTime), 1),
|
|
11543
|
-
d(
|
|
11543
|
+
d(f, { class: "pa-0 flex-1-1-0" }, {
|
|
11544
11544
|
default: u(() => [
|
|
11545
|
-
(b(!0), S(be, null, we(r.hourOptions, (
|
|
11545
|
+
(b(!0), S(be, null, we(r.hourOptions, (k, T) => (b(), A(p, {
|
|
11546
11546
|
key: T,
|
|
11547
|
-
value:
|
|
11547
|
+
value: k,
|
|
11548
11548
|
color: "primary",
|
|
11549
|
-
active: o.currentTime ===
|
|
11549
|
+
active: o.currentTime === k,
|
|
11550
11550
|
rounded: "",
|
|
11551
11551
|
height: "26",
|
|
11552
11552
|
"min-height": "26"
|
|
@@ -11554,10 +11554,10 @@ function Mc(t, e, a, i, o, r) {
|
|
|
11554
11554
|
default: u(() => [
|
|
11555
11555
|
d(g, {
|
|
11556
11556
|
class: "text-body-2 text-center",
|
|
11557
|
-
onClick: (
|
|
11557
|
+
onClick: (R) => o.currentTime = k
|
|
11558
11558
|
}, {
|
|
11559
11559
|
default: u(() => [
|
|
11560
|
-
j(h(
|
|
11560
|
+
j(h(k), 1)
|
|
11561
11561
|
]),
|
|
11562
11562
|
_: 2
|
|
11563
11563
|
}, 1032, ["onClick"])
|
|
@@ -11848,10 +11848,10 @@ const Ac = {
|
|
|
11848
11848
|
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11849
11849
|
},
|
|
11850
11850
|
initTableData(t) {
|
|
11851
|
-
var a, i, o, r, s, c, n, g, p,
|
|
11851
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
|
|
11852
11852
|
this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
|
|
11853
11853
|
const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11854
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((
|
|
11854
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (R = e == null ? void 0 : e.weather) == null ? void 0 : R.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (O = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : O.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11855
11855
|
},
|
|
11856
11856
|
handleBind() {
|
|
11857
11857
|
var t, e;
|
|
@@ -11875,21 +11875,21 @@ const Ac = {
|
|
|
11875
11875
|
center: t,
|
|
11876
11876
|
duration: 300
|
|
11877
11877
|
}), this.$nextTick(() => {
|
|
11878
|
-
var c, n, g, p,
|
|
11878
|
+
var c, n, g, p, f, w, v, y;
|
|
11879
11879
|
(c = this.positionMarker) == null || c.remove();
|
|
11880
11880
|
const e = (n = document.getElementById("idm-position-icon")) == null ? void 0 : n.cloneNode(!0);
|
|
11881
11881
|
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (g = this.meteoInfoMarker) == null || g.remove();
|
|
11882
|
-
const a = document.getElementById("idm-gl4-spot-meteo"), i = (
|
|
11882
|
+
const a = (p = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : p.cloneNode(!0), i = (f = a == null ? void 0 : a.children[1]) == null ? void 0 : f.children[1], o = (w = a == null ? void 0 : a.children[5]) == null ? void 0 : w.children[0], r = (v = a == null ? void 0 : a.children[5]) == null ? void 0 : v.children[0], s = (y = a == null ? void 0 : a.children[5]) == null ? void 0 : y.children[1];
|
|
11883
11883
|
i && (i.onclick = () => {
|
|
11884
11884
|
this.handleCloseMeteo();
|
|
11885
|
-
}), o && !this.followList.some((
|
|
11886
|
-
var
|
|
11887
|
-
return ((
|
|
11885
|
+
}), o && !this.followList.some((k) => {
|
|
11886
|
+
var T, R;
|
|
11887
|
+
return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
|
|
11888
11888
|
}) && (o.onclick = () => {
|
|
11889
11889
|
this.handleFollow();
|
|
11890
|
-
}), r && this.followList.some((
|
|
11891
|
-
var
|
|
11892
|
-
return ((
|
|
11890
|
+
}), r && this.followList.some((k) => {
|
|
11891
|
+
var T, R;
|
|
11892
|
+
return ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lng) === this.form.lng && ((R = k == null ? void 0 : k.coordinate) == null ? void 0 : R.lat) === this.form.lat;
|
|
11893
11893
|
}) && (r.onclick = () => {
|
|
11894
11894
|
this.handleCancelFollow();
|
|
11895
11895
|
}), s && (s.onclick = () => {
|
|
@@ -11934,7 +11934,7 @@ const Ac = {
|
|
|
11934
11934
|
"aria-hidden": "true"
|
|
11935
11935
|
}, Qc = ["xlink:href"];
|
|
11936
11936
|
function Jc(t, e, a, i, o, r) {
|
|
11937
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"),
|
|
11937
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), k = x("VCardActions"), T = x("VForm"), R = x("VCardText"), I = x("VCard"), P = x("VIcon");
|
|
11938
11938
|
return b(), S("div", Dc, [
|
|
11939
11939
|
l("div", {
|
|
11940
11940
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11945,7 +11945,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
11945
11945
|
location: "left"
|
|
11946
11946
|
}, {
|
|
11947
11947
|
activator: u(({ props: _ }) => [
|
|
11948
|
-
d(s,
|
|
11948
|
+
d(s, B(_, {
|
|
11949
11949
|
"min-width": "32",
|
|
11950
11950
|
width: "32",
|
|
11951
11951
|
height: "32",
|
|
@@ -11990,7 +11990,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
11990
11990
|
_: 1
|
|
11991
11991
|
}),
|
|
11992
11992
|
d(g),
|
|
11993
|
-
d(
|
|
11993
|
+
d(R, { class: "text-body-1 py-1" }, {
|
|
11994
11994
|
default: u(() => [
|
|
11995
11995
|
d(T, {
|
|
11996
11996
|
ref: "spotForm",
|
|
@@ -12009,7 +12009,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12009
12009
|
]),
|
|
12010
12010
|
d(w, { class: "ma-0" }, {
|
|
12011
12011
|
default: u(() => [
|
|
12012
|
-
d(
|
|
12012
|
+
d(f, {
|
|
12013
12013
|
cols: "4",
|
|
12014
12014
|
class: "pa-0 d-flex"
|
|
12015
12015
|
}, {
|
|
@@ -12028,7 +12028,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12028
12028
|
_: 1,
|
|
12029
12029
|
__: [10]
|
|
12030
12030
|
}),
|
|
12031
|
-
d(
|
|
12031
|
+
d(f, {
|
|
12032
12032
|
cols: "6",
|
|
12033
12033
|
class: "pa-0 d-flex"
|
|
12034
12034
|
}, {
|
|
@@ -12048,7 +12048,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12048
12048
|
_: 1,
|
|
12049
12049
|
__: [11]
|
|
12050
12050
|
}),
|
|
12051
|
-
d(
|
|
12051
|
+
d(f, {
|
|
12052
12052
|
cols: "2",
|
|
12053
12053
|
class: "pa-0"
|
|
12054
12054
|
}, {
|
|
@@ -12084,7 +12084,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12084
12084
|
]),
|
|
12085
12085
|
d(w, { class: "ma-0" }, {
|
|
12086
12086
|
default: u(() => [
|
|
12087
|
-
d(
|
|
12087
|
+
d(f, {
|
|
12088
12088
|
cols: "4",
|
|
12089
12089
|
class: "pa-0 d-flex"
|
|
12090
12090
|
}, {
|
|
@@ -12106,7 +12106,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12106
12106
|
_: 1,
|
|
12107
12107
|
__: [12]
|
|
12108
12108
|
}),
|
|
12109
|
-
d(
|
|
12109
|
+
d(f, {
|
|
12110
12110
|
cols: "6",
|
|
12111
12111
|
class: "pa-0 d-flex"
|
|
12112
12112
|
}, {
|
|
@@ -12126,7 +12126,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12126
12126
|
_: 1,
|
|
12127
12127
|
__: [13]
|
|
12128
12128
|
}),
|
|
12129
|
-
d(
|
|
12129
|
+
d(f, {
|
|
12130
12130
|
cols: "2",
|
|
12131
12131
|
class: "pa-0"
|
|
12132
12132
|
}, {
|
|
@@ -12162,12 +12162,12 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12162
12162
|
]),
|
|
12163
12163
|
d(w, { class: "ma-0 mb-4" }, {
|
|
12164
12164
|
default: u(() => [
|
|
12165
|
-
d(
|
|
12165
|
+
d(f, {
|
|
12166
12166
|
cols: "12",
|
|
12167
12167
|
class: "pa-0"
|
|
12168
12168
|
}, {
|
|
12169
12169
|
default: u(() => [
|
|
12170
|
-
d(v,
|
|
12170
|
+
d(v, B({
|
|
12171
12171
|
"date-time": o.form.dateTime,
|
|
12172
12172
|
"time-zone": a.timeZone
|
|
12173
12173
|
}, t.$attrs, {
|
|
@@ -12189,12 +12189,12 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12189
12189
|
]),
|
|
12190
12190
|
d(w, { class: "ma-0 mb-2" }, {
|
|
12191
12191
|
default: u(() => [
|
|
12192
|
-
d(
|
|
12192
|
+
d(f, {
|
|
12193
12193
|
cols: "12",
|
|
12194
12194
|
class: "pa-0"
|
|
12195
12195
|
}, {
|
|
12196
12196
|
default: u(() => [
|
|
12197
|
-
d(
|
|
12197
|
+
d(y, {
|
|
12198
12198
|
modelValue: o.form.forecastModel,
|
|
12199
12199
|
"onUpdate:modelValue": e[7] || (e[7] = (_) => o.form.forecastModel = _),
|
|
12200
12200
|
class: "w-100",
|
|
@@ -12242,7 +12242,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12242
12242
|
_: 1
|
|
12243
12243
|
}),
|
|
12244
12244
|
d(g),
|
|
12245
|
-
d(
|
|
12245
|
+
d(k, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12246
12246
|
default: u(() => [
|
|
12247
12247
|
d(s, {
|
|
12248
12248
|
size: "small",
|
|
@@ -12314,11 +12314,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12314
12314
|
_: 1
|
|
12315
12315
|
}),
|
|
12316
12316
|
d(g),
|
|
12317
|
-
d(
|
|
12317
|
+
d(R, { class: "text-body-1 ml-n8" }, {
|
|
12318
12318
|
default: u(() => [
|
|
12319
12319
|
d(w, null, {
|
|
12320
12320
|
default: u(() => [
|
|
12321
|
-
d(
|
|
12321
|
+
d(f, {
|
|
12322
12322
|
cols: "3",
|
|
12323
12323
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12324
12324
|
}, {
|
|
@@ -12327,7 +12327,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12327
12327
|
]),
|
|
12328
12328
|
_: 1
|
|
12329
12329
|
}),
|
|
12330
|
-
d(
|
|
12330
|
+
d(f, {
|
|
12331
12331
|
cols: "9",
|
|
12332
12332
|
class: "pa-2 px-0"
|
|
12333
12333
|
}, {
|
|
@@ -12344,7 +12344,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12344
12344
|
}),
|
|
12345
12345
|
d(w, null, {
|
|
12346
12346
|
default: u(() => [
|
|
12347
|
-
d(
|
|
12347
|
+
d(f, {
|
|
12348
12348
|
cols: "3",
|
|
12349
12349
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12350
12350
|
}, {
|
|
@@ -12354,7 +12354,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12354
12354
|
_: 1,
|
|
12355
12355
|
__: [18]
|
|
12356
12356
|
}),
|
|
12357
|
-
d(
|
|
12357
|
+
d(f, {
|
|
12358
12358
|
cols: "9",
|
|
12359
12359
|
class: "pa-2 px-0"
|
|
12360
12360
|
}, {
|
|
@@ -12371,7 +12371,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12371
12371
|
}),
|
|
12372
12372
|
d(w, null, {
|
|
12373
12373
|
default: u(() => [
|
|
12374
|
-
d(
|
|
12374
|
+
d(f, {
|
|
12375
12375
|
cols: "3",
|
|
12376
12376
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12377
12377
|
}, {
|
|
@@ -12380,7 +12380,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12380
12380
|
]),
|
|
12381
12381
|
_: 1
|
|
12382
12382
|
}),
|
|
12383
|
-
d(
|
|
12383
|
+
d(f, {
|
|
12384
12384
|
cols: "4",
|
|
12385
12385
|
class: "pa-2 px-0 text-left"
|
|
12386
12386
|
}, {
|
|
@@ -12389,7 +12389,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12389
12389
|
]),
|
|
12390
12390
|
_: 1
|
|
12391
12391
|
}),
|
|
12392
|
-
d(
|
|
12392
|
+
d(f, {
|
|
12393
12393
|
cols: "2",
|
|
12394
12394
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12395
12395
|
}, {
|
|
@@ -12398,7 +12398,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12398
12398
|
]),
|
|
12399
12399
|
_: 1
|
|
12400
12400
|
}),
|
|
12401
|
-
d(
|
|
12401
|
+
d(f, {
|
|
12402
12402
|
cols: "3",
|
|
12403
12403
|
class: "pa-2 px-0 text-left"
|
|
12404
12404
|
}, {
|
|
@@ -12412,7 +12412,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12412
12412
|
}),
|
|
12413
12413
|
d(w, null, {
|
|
12414
12414
|
default: u(() => [
|
|
12415
|
-
d(
|
|
12415
|
+
d(f, {
|
|
12416
12416
|
cols: "3",
|
|
12417
12417
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12418
12418
|
}, {
|
|
@@ -12421,7 +12421,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12421
12421
|
]),
|
|
12422
12422
|
_: 1
|
|
12423
12423
|
}),
|
|
12424
|
-
d(
|
|
12424
|
+
d(f, {
|
|
12425
12425
|
cols: "4",
|
|
12426
12426
|
class: "pa-2 px-0 text-left"
|
|
12427
12427
|
}, {
|
|
@@ -12430,7 +12430,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12430
12430
|
]),
|
|
12431
12431
|
_: 1
|
|
12432
12432
|
}),
|
|
12433
|
-
d(
|
|
12433
|
+
d(f, {
|
|
12434
12434
|
cols: "2",
|
|
12435
12435
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12436
12436
|
}, {
|
|
@@ -12439,7 +12439,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12439
12439
|
]),
|
|
12440
12440
|
_: 1
|
|
12441
12441
|
}),
|
|
12442
|
-
d(
|
|
12442
|
+
d(f, {
|
|
12443
12443
|
cols: "3",
|
|
12444
12444
|
class: "pa-2 px-0 text-left"
|
|
12445
12445
|
}, {
|
|
@@ -12453,7 +12453,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12453
12453
|
}),
|
|
12454
12454
|
d(w, null, {
|
|
12455
12455
|
default: u(() => [
|
|
12456
|
-
d(
|
|
12456
|
+
d(f, {
|
|
12457
12457
|
cols: "3",
|
|
12458
12458
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
12459
12459
|
}, {
|
|
@@ -12462,7 +12462,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12462
12462
|
]),
|
|
12463
12463
|
_: 1
|
|
12464
12464
|
}),
|
|
12465
|
-
d(
|
|
12465
|
+
d(f, {
|
|
12466
12466
|
cols: "4",
|
|
12467
12467
|
class: "pa-2 px-0 text-left"
|
|
12468
12468
|
}, {
|
|
@@ -12471,7 +12471,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12471
12471
|
]),
|
|
12472
12472
|
_: 1
|
|
12473
12473
|
}),
|
|
12474
|
-
d(
|
|
12474
|
+
d(f, {
|
|
12475
12475
|
cols: "2",
|
|
12476
12476
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
12477
12477
|
}, {
|
|
@@ -12480,7 +12480,7 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12480
12480
|
]),
|
|
12481
12481
|
_: 1
|
|
12482
12482
|
}),
|
|
12483
|
-
d(
|
|
12483
|
+
d(f, {
|
|
12484
12484
|
cols: "3",
|
|
12485
12485
|
class: "pa-2 px-0 text-left"
|
|
12486
12486
|
}, {
|
|
@@ -12496,11 +12496,11 @@ function Jc(t, e, a, i, o, r) {
|
|
|
12496
12496
|
_: 1
|
|
12497
12497
|
}),
|
|
12498
12498
|
d(g),
|
|
12499
|
-
d(
|
|
12499
|
+
d(k, { class: "d-flex justify-space-between align-center" }, {
|
|
12500
12500
|
default: u(() => [
|
|
12501
12501
|
a.followList.some((_) => {
|
|
12502
|
-
var
|
|
12503
|
-
return ((
|
|
12502
|
+
var z, C;
|
|
12503
|
+
return ((z = _ == null ? void 0 : _.coordinate) == null ? void 0 : z.lng) === o.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === o.form.lat;
|
|
12504
12504
|
}) ? (b(), A(s, {
|
|
12505
12505
|
key: 0,
|
|
12506
12506
|
class: "text-none text-body-1",
|
|
@@ -12654,41 +12654,41 @@ const tm = {
|
|
|
12654
12654
|
}
|
|
12655
12655
|
},
|
|
12656
12656
|
handleDrag(t) {
|
|
12657
|
-
var a, i, o, r, s, c, n, g, p,
|
|
12657
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
12658
12658
|
const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
|
|
12659
12659
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12660
12660
|
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
12661
12661
|
this.pointMarkers[w.id].filter((T) => {
|
|
12662
|
-
var
|
|
12663
|
-
return ((
|
|
12662
|
+
var R;
|
|
12663
|
+
return ((R = T._element) == null ? void 0 : R.id) === e;
|
|
12664
12664
|
})[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12665
|
-
let
|
|
12666
|
-
w.features.forEach((T,
|
|
12665
|
+
let y;
|
|
12666
|
+
w.features.forEach((T, R) => {
|
|
12667
12667
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
12668
|
-
|
|
12668
|
+
y = R;
|
|
12669
12669
|
return;
|
|
12670
12670
|
}
|
|
12671
12671
|
});
|
|
12672
|
-
const
|
|
12672
|
+
const k = w.features.filter((T) => T.geometry.type === "Point");
|
|
12673
12673
|
this.handleTmpPointUpdate(
|
|
12674
12674
|
w,
|
|
12675
|
-
|
|
12676
|
-
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (
|
|
12677
|
-
|
|
12675
|
+
k[y - 1],
|
|
12676
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: k[y].properties },
|
|
12677
|
+
y === k.length - 1 ? void 0 : k[y + 1]
|
|
12678
12678
|
);
|
|
12679
12679
|
}
|
|
12680
12680
|
},
|
|
12681
12681
|
handleDragEnd(t) {
|
|
12682
|
-
var a, i, o, r, s, c, n, g, p,
|
|
12682
|
+
var a, i, o, r, s, c, n, g, p, f;
|
|
12683
12683
|
const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
|
|
12684
12684
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12685
|
-
const w = this.geojson.filter((
|
|
12686
|
-
this.pointMarkers[w.id].filter((
|
|
12685
|
+
const w = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
|
|
12686
|
+
this.pointMarkers[w.id].filter((k) => {
|
|
12687
12687
|
var T;
|
|
12688
|
-
return ((T =
|
|
12688
|
+
return ((T = k._element) == null ? void 0 : T.id) === e;
|
|
12689
12689
|
})[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12690
|
-
const
|
|
12691
|
-
|
|
12690
|
+
const y = w.features.filter((k) => k.geometry.type === "Point" && k.properties.id === e.split("-")[1])[0];
|
|
12691
|
+
y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((k) => k.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12692
12692
|
}
|
|
12693
12693
|
},
|
|
12694
12694
|
handleContextmenu(t) {
|
|
@@ -12736,14 +12736,14 @@ const tm = {
|
|
|
12736
12736
|
let a = 0;
|
|
12737
12737
|
const i = [];
|
|
12738
12738
|
for (let o = 1; o < e.length; o++) {
|
|
12739
|
-
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4),
|
|
12739
|
+
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
|
|
12740
12740
|
a = $.roundPrecision(a + p, 4);
|
|
12741
12741
|
let w;
|
|
12742
12742
|
c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
|
|
12743
|
-
const v = H.lineString(w.map((
|
|
12744
|
-
v.properties.dist = p, v.properties.bearing =
|
|
12745
|
-
const
|
|
12746
|
-
|
|
12743
|
+
const v = H.lineString(w.map((k) => [k.lng, k.lat]));
|
|
12744
|
+
v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
|
|
12745
|
+
const y = e[o];
|
|
12746
|
+
y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
12747
12747
|
}
|
|
12748
12748
|
e.push(...i), t.total = a;
|
|
12749
12749
|
}
|
|
@@ -12755,17 +12755,17 @@ const tm = {
|
|
|
12755
12755
|
if (e) {
|
|
12756
12756
|
const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
|
|
12757
12757
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12758
|
-
let
|
|
12759
|
-
n.mode === "RL" ?
|
|
12760
|
-
const w = H.lineString(
|
|
12758
|
+
let f;
|
|
12759
|
+
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12760
|
+
const w = H.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12761
12761
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12762
12762
|
}
|
|
12763
12763
|
if (i) {
|
|
12764
12764
|
const n = a.properties, g = a, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12765
12765
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12766
|
-
let
|
|
12767
|
-
n.mode === "RL" ?
|
|
12768
|
-
const w = H.lineString(
|
|
12766
|
+
let f;
|
|
12767
|
+
n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
12768
|
+
const w = H.lineString(f.map((v) => [v.lng, v.lat]));
|
|
12769
12769
|
w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
|
|
12770
12770
|
}
|
|
12771
12771
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
|
|
@@ -12901,17 +12901,17 @@ const tm = {
|
|
|
12901
12901
|
g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
|
|
12902
12902
|
}
|
|
12903
12903
|
if (t.closed) {
|
|
12904
|
-
const c = s.at(-1), g = t.features.filter((
|
|
12904
|
+
const c = s.at(-1), g = t.features.filter((f) => f.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
12905
12905
|
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12906
12906
|
}
|
|
12907
12907
|
}
|
|
12908
12908
|
},
|
|
12909
12909
|
handleClear(t, e = !0) {
|
|
12910
|
-
var s, c, n, g, p,
|
|
12910
|
+
var s, c, n, g, p, f, w, v, y, k;
|
|
12911
12911
|
const a = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, o = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12912
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (
|
|
12912
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
12913
12913
|
T == null || T.remove();
|
|
12914
|
-
}), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((
|
|
12914
|
+
}), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((k = this.map) != null && k.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12915
12915
|
}
|
|
12916
12916
|
}
|
|
12917
12917
|
}, am = { class: "idm-gl4-measure" };
|
|
@@ -12927,7 +12927,7 @@ function om(t, e, a, i, o, r) {
|
|
|
12927
12927
|
location: "left"
|
|
12928
12928
|
}, {
|
|
12929
12929
|
activator: u(({ props: n }) => [
|
|
12930
|
-
d(s,
|
|
12930
|
+
d(s, B(n, {
|
|
12931
12931
|
"min-width": "32",
|
|
12932
12932
|
width: "32",
|
|
12933
12933
|
height: "32",
|
|
@@ -13070,25 +13070,25 @@ const rm = {
|
|
|
13070
13070
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13071
13071
|
}, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
|
|
13072
13072
|
function gm(t, e, a, i, o, r) {
|
|
13073
|
-
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"),
|
|
13073
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
|
|
13074
13074
|
return b(), S("div", lm, [
|
|
13075
13075
|
l("div", {
|
|
13076
13076
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13077
13077
|
style: ie({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
|
|
13078
13078
|
}, [
|
|
13079
13079
|
l("div", sm, [
|
|
13080
|
-
d(s,
|
|
13080
|
+
d(s, B({
|
|
13081
13081
|
ref: "dateTimePicker",
|
|
13082
13082
|
"date-time": o.currentDateTimeZ,
|
|
13083
13083
|
"time-zone": o.timeZone,
|
|
13084
13084
|
"day-about": o.dayAbout,
|
|
13085
13085
|
"interval-hour": o.intervalHour
|
|
13086
13086
|
}, t.$attrs, {
|
|
13087
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13088
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13089
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
13087
|
+
onCurrentTimestamp: e[0] || (e[0] = (y) => o.currentTimestamp = y),
|
|
13088
|
+
onCurrentRealTime: e[1] || (e[1] = (y) => o.currentRealTime = y),
|
|
13089
|
+
onTimestampRange: e[2] || (e[2] = (y) => o.timestampRange = y)
|
|
13090
13090
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13091
|
-
d(
|
|
13091
|
+
d(f, {
|
|
13092
13092
|
text: "",
|
|
13093
13093
|
height: "30",
|
|
13094
13094
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
@@ -13100,13 +13100,13 @@ function gm(t, e, a, i, o, r) {
|
|
|
13100
13100
|
default: u(() => [
|
|
13101
13101
|
d(g, { class: "pa-1" }, {
|
|
13102
13102
|
default: u(() => [
|
|
13103
|
-
(b(!0), S(be, null, we(o.intervalOptions, (
|
|
13104
|
-
key:
|
|
13105
|
-
value:
|
|
13106
|
-
variant: o.intervalHour ===
|
|
13103
|
+
(b(!0), S(be, null, we(o.intervalOptions, (y, k) => (b(), A(n, {
|
|
13104
|
+
key: k,
|
|
13105
|
+
value: y,
|
|
13106
|
+
variant: o.intervalHour === y ? "tonal" : "text",
|
|
13107
13107
|
color: "primary",
|
|
13108
13108
|
rounded: "",
|
|
13109
|
-
active: o.intervalHour ===
|
|
13109
|
+
active: o.intervalHour === y,
|
|
13110
13110
|
height: "30",
|
|
13111
13111
|
"min-height": "30",
|
|
13112
13112
|
"min-width": "30",
|
|
@@ -13114,10 +13114,10 @@ function gm(t, e, a, i, o, r) {
|
|
|
13114
13114
|
}, {
|
|
13115
13115
|
default: u(() => [
|
|
13116
13116
|
d(c, {
|
|
13117
|
-
onClick: (T) => o.intervalHour =
|
|
13117
|
+
onClick: (T) => o.intervalHour = y
|
|
13118
13118
|
}, {
|
|
13119
13119
|
default: u(() => [
|
|
13120
|
-
j(h(
|
|
13120
|
+
j(h(y) + "h", 1)
|
|
13121
13121
|
]),
|
|
13122
13122
|
_: 2
|
|
13123
13123
|
}, 1032, ["onClick"])
|
|
@@ -13140,7 +13140,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13140
13140
|
style: { height: "16px" }
|
|
13141
13141
|
}),
|
|
13142
13142
|
l("div", nm, [
|
|
13143
|
-
d(
|
|
13143
|
+
d(f, {
|
|
13144
13144
|
icon: "",
|
|
13145
13145
|
size: "small",
|
|
13146
13146
|
density: "comfortable",
|
|
@@ -13153,7 +13153,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13153
13153
|
_: 1,
|
|
13154
13154
|
__: [9]
|
|
13155
13155
|
}, 8, ["onClick"]),
|
|
13156
|
-
d(
|
|
13156
|
+
d(f, {
|
|
13157
13157
|
icon: "",
|
|
13158
13158
|
size: "small",
|
|
13159
13159
|
density: "comfortable",
|
|
@@ -13166,7 +13166,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13166
13166
|
_: 1,
|
|
13167
13167
|
__: [10]
|
|
13168
13168
|
}, 8, ["onClick"]),
|
|
13169
|
-
o.paused ? (b(), A(
|
|
13169
|
+
o.paused ? (b(), A(f, {
|
|
13170
13170
|
key: 0,
|
|
13171
13171
|
icon: "",
|
|
13172
13172
|
size: "small",
|
|
@@ -13179,7 +13179,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13179
13179
|
])),
|
|
13180
13180
|
_: 1,
|
|
13181
13181
|
__: [11]
|
|
13182
|
-
}, 8, ["onClick"])) : (b(), A(
|
|
13182
|
+
}, 8, ["onClick"])) : (b(), A(f, {
|
|
13183
13183
|
key: 1,
|
|
13184
13184
|
icon: "",
|
|
13185
13185
|
size: "small",
|
|
@@ -13193,7 +13193,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13193
13193
|
_: 1,
|
|
13194
13194
|
__: [12]
|
|
13195
13195
|
}, 8, ["onClick"])),
|
|
13196
|
-
d(
|
|
13196
|
+
d(f, {
|
|
13197
13197
|
icon: "",
|
|
13198
13198
|
size: "small",
|
|
13199
13199
|
density: "comfortable",
|
|
@@ -13217,17 +13217,17 @@ function gm(t, e, a, i, o, r) {
|
|
|
13217
13217
|
text: t.$t("weather.windBarbs"),
|
|
13218
13218
|
location: "top"
|
|
13219
13219
|
}, {
|
|
13220
|
-
activator: u(({ props:
|
|
13221
|
-
var
|
|
13220
|
+
activator: u(({ props: y }) => {
|
|
13221
|
+
var k, T;
|
|
13222
13222
|
return [
|
|
13223
|
-
d(
|
|
13223
|
+
d(f, B(y, {
|
|
13224
13224
|
class: "pa-1 d-flex",
|
|
13225
|
-
color: (
|
|
13225
|
+
color: (k = a.weatherCheckList) != null && k.includes("wind") ? "primary" : "",
|
|
13226
13226
|
variant: (T = a.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
13227
13227
|
height: "24",
|
|
13228
13228
|
width: "24",
|
|
13229
13229
|
"min-width": "24",
|
|
13230
|
-
onClick: e[3] || (e[3] = (
|
|
13230
|
+
onClick: e[3] || (e[3] = (R) => r.handleClickFastWeather("wind"))
|
|
13231
13231
|
}), {
|
|
13232
13232
|
default: u(() => e[14] || (e[14] = [
|
|
13233
13233
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -13243,20 +13243,20 @@ function gm(t, e, a, i, o, r) {
|
|
|
13243
13243
|
text: t.$t("weather.sigWaveHeight"),
|
|
13244
13244
|
location: "top"
|
|
13245
13245
|
}, {
|
|
13246
|
-
activator: u(({ props:
|
|
13247
|
-
var
|
|
13246
|
+
activator: u(({ props: y }) => {
|
|
13247
|
+
var k, T;
|
|
13248
13248
|
return [
|
|
13249
|
-
d(
|
|
13249
|
+
d(f, B(y, {
|
|
13250
13250
|
class: "pa-1 d-flex",
|
|
13251
|
-
color: (
|
|
13251
|
+
color: (k = a.weatherCheckList) != null && k.includes("sig-wave-height") ? "primary" : "",
|
|
13252
13252
|
variant: (T = a.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
13253
13253
|
height: "24",
|
|
13254
13254
|
width: "24",
|
|
13255
13255
|
"min-width": "24",
|
|
13256
|
-
onClick: e[4] || (e[4] = (
|
|
13256
|
+
onClick: e[4] || (e[4] = (R) => r.handleClickFastWeather("sig-wave-height"))
|
|
13257
13257
|
}), {
|
|
13258
13258
|
default: u(() => [
|
|
13259
|
-
l("i",
|
|
13259
|
+
l("i", B(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13260
13260
|
]),
|
|
13261
13261
|
_: 2
|
|
13262
13262
|
}, 1040, ["color", "variant"])
|
|
@@ -13268,20 +13268,20 @@ function gm(t, e, a, i, o, r) {
|
|
|
13268
13268
|
text: t.$t("weather.currentDirection"),
|
|
13269
13269
|
location: "top"
|
|
13270
13270
|
}, {
|
|
13271
|
-
activator: u(({ props:
|
|
13272
|
-
var
|
|
13271
|
+
activator: u(({ props: y }) => {
|
|
13272
|
+
var k, T;
|
|
13273
13273
|
return [
|
|
13274
|
-
d(
|
|
13274
|
+
d(f, B(y, {
|
|
13275
13275
|
class: "pa-1 d-flex",
|
|
13276
|
-
color: (
|
|
13276
|
+
color: (k = a.weatherCheckList) != null && k.includes("current-direction") ? "primary" : "",
|
|
13277
13277
|
variant: (T = a.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
13278
13278
|
height: "24",
|
|
13279
13279
|
width: "24",
|
|
13280
13280
|
"min-width": "24",
|
|
13281
|
-
onClick: e[5] || (e[5] = (
|
|
13281
|
+
onClick: e[5] || (e[5] = (R) => r.handleClickFastWeather("current-direction"))
|
|
13282
13282
|
}), {
|
|
13283
13283
|
default: u(() => [
|
|
13284
|
-
l("i",
|
|
13284
|
+
l("i", B(y, { class: "iconfont icon-Current" }), null, 16)
|
|
13285
13285
|
]),
|
|
13286
13286
|
_: 2
|
|
13287
13287
|
}, 1040, ["color", "variant"])
|
|
@@ -13293,8 +13293,8 @@ function gm(t, e, a, i, o, r) {
|
|
|
13293
13293
|
text: t.$t("weather.weatherLayers"),
|
|
13294
13294
|
location: "top"
|
|
13295
13295
|
}, {
|
|
13296
|
-
activator: u(({ props:
|
|
13297
|
-
d(
|
|
13296
|
+
activator: u(({ props: y }) => [
|
|
13297
|
+
d(f, B(y, {
|
|
13298
13298
|
class: "pa-1 d-flex",
|
|
13299
13299
|
variant: "text",
|
|
13300
13300
|
height: "24",
|
|
@@ -13303,7 +13303,7 @@ function gm(t, e, a, i, o, r) {
|
|
|
13303
13303
|
onClick: r.handleClickFastMore
|
|
13304
13304
|
}), {
|
|
13305
13305
|
default: u(() => [
|
|
13306
|
-
l("i",
|
|
13306
|
+
l("i", B(y, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13307
13307
|
]),
|
|
13308
13308
|
_: 2
|
|
13309
13309
|
}, 1040, ["onClick"])
|
|
@@ -13317,12 +13317,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13317
13317
|
style: { height: "16px" }
|
|
13318
13318
|
}),
|
|
13319
13319
|
l("div", mm, [
|
|
13320
|
-
d(
|
|
13320
|
+
d(f, {
|
|
13321
13321
|
text: "",
|
|
13322
13322
|
height: "30",
|
|
13323
13323
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13324
13324
|
color: o.source === "GFS" ? "primary" : "",
|
|
13325
|
-
onClick: e[6] || (e[6] = (
|
|
13325
|
+
onClick: e[6] || (e[6] = (y) => o.source = "GFS")
|
|
13326
13326
|
}, {
|
|
13327
13327
|
default: u(() => e[15] || (e[15] = [
|
|
13328
13328
|
j("NOAA", -1)
|
|
@@ -13330,12 +13330,12 @@ function gm(t, e, a, i, o, r) {
|
|
|
13330
13330
|
_: 1,
|
|
13331
13331
|
__: [15]
|
|
13332
13332
|
}, 8, ["color"]),
|
|
13333
|
-
d(
|
|
13333
|
+
d(f, {
|
|
13334
13334
|
text: "",
|
|
13335
13335
|
height: "30",
|
|
13336
13336
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13337
13337
|
color: o.source === "ECMWF" ? "primary" : "",
|
|
13338
|
-
onClick: e[7] || (e[7] = (
|
|
13338
|
+
onClick: e[7] || (e[7] = (y) => o.source = "ECMWF")
|
|
13339
13339
|
}, {
|
|
13340
13340
|
default: u(() => e[16] || (e[16] = [
|
|
13341
13341
|
j("ECMWF", -1)
|
|
@@ -13350,20 +13350,20 @@ function gm(t, e, a, i, o, r) {
|
|
|
13350
13350
|
style: ie({ right: o.right + "px" })
|
|
13351
13351
|
}, [
|
|
13352
13352
|
o.showTimezone ? (b(), S("div", dm, [
|
|
13353
|
-
(b(!0), S(be, null, we(o.offsets, (
|
|
13354
|
-
key:
|
|
13353
|
+
(b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
|
|
13354
|
+
key: y,
|
|
13355
13355
|
class: "item rounded text-body-2 hover-active",
|
|
13356
|
-
onClick: (
|
|
13357
|
-
}, h(
|
|
13356
|
+
onClick: (k) => o.timeZone = y
|
|
13357
|
+
}, h(y < 0 ? y : "+" + y), 9, hm))), 128))
|
|
13358
13358
|
])) : D("", !0),
|
|
13359
13359
|
l("div", pm, [
|
|
13360
|
-
d(
|
|
13360
|
+
d(f, {
|
|
13361
13361
|
text: "",
|
|
13362
13362
|
variant: "flat",
|
|
13363
13363
|
height: "28",
|
|
13364
13364
|
class: "pa-1 text-body-1",
|
|
13365
13365
|
color: "primary",
|
|
13366
|
-
onClick: e[8] || (e[8] = (
|
|
13366
|
+
onClick: e[8] || (e[8] = (y) => o.showTimezone = !o.showTimezone)
|
|
13367
13367
|
}, {
|
|
13368
13368
|
default: u(() => [
|
|
13369
13369
|
j(" UTC " + h(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
@@ -13439,9 +13439,9 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
|
|
|
13439
13439
|
class: "map-gl4-home"
|
|
13440
13440
|
};
|
|
13441
13441
|
function wm(t, e, a, i, o, r) {
|
|
13442
|
-
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"),
|
|
13442
|
+
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
|
|
13443
13443
|
return b(), S("div", bm, [
|
|
13444
|
-
d(s,
|
|
13444
|
+
d(s, B({
|
|
13445
13445
|
ref: "idmOtherLayers",
|
|
13446
13446
|
token: a.token,
|
|
13447
13447
|
"default-meteo-token": o.defaultMeteoToken,
|
|
@@ -13456,7 +13456,7 @@ function wm(t, e, a, i, o, r) {
|
|
|
13456
13456
|
o.otherCheckList = w, o.layerVersion = o.layerVersion + 1;
|
|
13457
13457
|
})
|
|
13458
13458
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13459
|
-
d(c,
|
|
13459
|
+
d(c, B({
|
|
13460
13460
|
ref: "idmWeatherLayers",
|
|
13461
13461
|
map: a.map,
|
|
13462
13462
|
"before-layer": "empty-layer-2",
|
|
@@ -13474,7 +13474,7 @@ function wm(t, e, a, i, o, r) {
|
|
|
13474
13474
|
o.weatherCheckList = w, o.layerVersion = o.layerVersion + 1;
|
|
13475
13475
|
})
|
|
13476
13476
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13477
|
-
d(n,
|
|
13477
|
+
d(n, B({
|
|
13478
13478
|
map: a.map,
|
|
13479
13479
|
token: a.token,
|
|
13480
13480
|
"default-meteo-token": o.defaultMeteoToken,
|
|
@@ -13485,11 +13485,11 @@ function wm(t, e, a, i, o, r) {
|
|
|
13485
13485
|
"forecast-model": a.forecastModel,
|
|
13486
13486
|
"map-feather": a.mapFeather
|
|
13487
13487
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13488
|
-
d(g,
|
|
13488
|
+
d(g, B({
|
|
13489
13489
|
map: a.map,
|
|
13490
13490
|
"map-feather": a.mapFeather
|
|
13491
13491
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
13492
|
-
d(p,
|
|
13492
|
+
d(p, B({
|
|
13493
13493
|
ref: "idmSpot",
|
|
13494
13494
|
map: a.map,
|
|
13495
13495
|
token: a.token,
|
|
@@ -13497,7 +13497,7 @@ function wm(t, e, a, i, o, r) {
|
|
|
13497
13497
|
"forecast-model": a.forecastModel,
|
|
13498
13498
|
"map-feather": a.mapFeather
|
|
13499
13499
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
13500
|
-
d(
|
|
13500
|
+
d(f, B({
|
|
13501
13501
|
ref: "idmBottomBar",
|
|
13502
13502
|
"forecast-model": a.forecastModel,
|
|
13503
13503
|
"weather-check-list": o.weatherCheckList,
|
|
@@ -13514,7 +13514,7 @@ class vm {
|
|
|
13514
13514
|
me(this, "hi");
|
|
13515
13515
|
me(this, "td");
|
|
13516
13516
|
me(this, "windy");
|
|
13517
|
-
var a, i, o, r, s, c, n, g, p,
|
|
13517
|
+
var a, i, o, r, s, c, n, g, p, f, w, v, y, k, T, R, I, P, _, z, C, L, O, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
|
|
13518
13518
|
this.i4 = {
|
|
13519
13519
|
source: {
|
|
13520
13520
|
type: "raster",
|
|
@@ -32110,14 +32110,14 @@ class vm {
|
|
|
32110
32110
|
(r = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
|
|
32111
32111
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
|
|
32112
32112
|
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
|
|
32113
|
-
(
|
|
32113
|
+
(f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
|
|
32114
32114
|
(v = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : v.find((m) => m.id === "loadlines-fill"),
|
|
32115
|
-
(
|
|
32116
|
-
(
|
|
32115
|
+
(k = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : k.find((m) => m.id === "empty-layer-0"),
|
|
32116
|
+
(R = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : R.find((m) => m.id === "empty-layer-1"),
|
|
32117
32117
|
(P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
|
|
32118
|
-
(
|
|
32119
|
-
(
|
|
32120
|
-
(G = (
|
|
32118
|
+
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
|
|
32119
|
+
(L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((m) => m.id === "water-outline2"),
|
|
32120
|
+
(G = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
|
|
32121
32121
|
(K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
|
|
32122
32122
|
(J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
|
|
32123
32123
|
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((m) => m.id === "world-12nm-v4-20231025"),
|