@idmwx/idmui-gl4 0.8.0 → 0.8.2
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 +435 -432
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var se = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Be from "axios";
|
|
5
5
|
import { useTheme as Ee } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as
|
|
6
|
+
import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as g, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ge, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
|
|
7
7
|
import we from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import * as E from "@turf/turf";
|
|
@@ -483,15 +483,15 @@ const Va = {
|
|
|
483
483
|
}
|
|
484
484
|
}, Ya = ["innerHTML"];
|
|
485
485
|
function Za(t, e, o, i, a, r) {
|
|
486
|
-
const s = w("VBtn"),
|
|
487
|
-
return He((b(), j(
|
|
486
|
+
const s = w("VBtn"), n = w("v-card-text"), c = w("v-card");
|
|
487
|
+
return He((b(), j(c, {
|
|
488
488
|
class: "scroll",
|
|
489
489
|
id: "idm-gl4-zone-info"
|
|
490
490
|
}, {
|
|
491
|
-
default:
|
|
492
|
-
m(
|
|
493
|
-
default:
|
|
494
|
-
var
|
|
491
|
+
default: g(() => [
|
|
492
|
+
m(n, null, {
|
|
493
|
+
default: g(() => {
|
|
494
|
+
var u;
|
|
495
495
|
return [
|
|
496
496
|
m(s, {
|
|
497
497
|
icon: "",
|
|
@@ -500,7 +500,7 @@ function Za(t, e, o, i, a, r) {
|
|
|
500
500
|
class: "mr-n2 close",
|
|
501
501
|
onClick: e[0] || (e[0] = (p) => a.showZone = !1)
|
|
502
502
|
}, {
|
|
503
|
-
default:
|
|
503
|
+
default: g(() => e[1] || (e[1] = [
|
|
504
504
|
l("i", {
|
|
505
505
|
class: "iconfont icon-close",
|
|
506
506
|
style: { "font-size": "16px" }
|
|
@@ -511,7 +511,7 @@ function Za(t, e, o, i, a, r) {
|
|
|
511
511
|
}),
|
|
512
512
|
l("div", {
|
|
513
513
|
class: "rich-context",
|
|
514
|
-
innerHTML: (
|
|
514
|
+
innerHTML: (u = a.form) == null ? void 0 : u.name
|
|
515
515
|
}, null, 8, Ya)
|
|
516
516
|
];
|
|
517
517
|
}),
|
|
@@ -630,14 +630,14 @@ const qa = {
|
|
|
630
630
|
}
|
|
631
631
|
}, Ka = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Qa = { class: "d-flex justify-start align-center" }, Ja = { class: "d-flex justify-start align-center" }, $a = { class: "d-flex justify-start align-center" }, ei = { class: "d-flex justify-start align-center" };
|
|
632
632
|
function ti(t, e, o, i, a, r) {
|
|
633
|
-
const s = w("VBtn"),
|
|
633
|
+
const s = w("VBtn"), n = w("v-card-text"), c = w("v-divider"), u = w("v-btn"), p = w("v-card-actions"), d = w("v-card");
|
|
634
634
|
return He((b(), j(d, {
|
|
635
635
|
id: "port-info",
|
|
636
636
|
ref: "idmPortInfo"
|
|
637
637
|
}, {
|
|
638
|
-
default:
|
|
639
|
-
m(
|
|
640
|
-
default:
|
|
638
|
+
default: g(() => [
|
|
639
|
+
m(n, { class: "pr-8" }, {
|
|
640
|
+
default: g(() => [
|
|
641
641
|
m(s, {
|
|
642
642
|
icon: "",
|
|
643
643
|
density: "compact",
|
|
@@ -645,7 +645,7 @@ function ti(t, e, o, i, a, r) {
|
|
|
645
645
|
class: "mr-n2 close",
|
|
646
646
|
onClick: e[0] || (e[0] = (f) => a.showInfo = !1)
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
648
|
+
default: g(() => e[2] || (e[2] = [
|
|
649
649
|
l("i", {
|
|
650
650
|
class: "iconfont icon-close",
|
|
651
651
|
style: { "font-size": "16px" }
|
|
@@ -675,17 +675,17 @@ function ti(t, e, o, i, a, r) {
|
|
|
675
675
|
]),
|
|
676
676
|
_: 1
|
|
677
677
|
}),
|
|
678
|
-
m(
|
|
678
|
+
m(c),
|
|
679
679
|
m(p, { class: "d-flex justify-end align-center" }, {
|
|
680
|
-
default:
|
|
681
|
-
m(
|
|
680
|
+
default: g(() => [
|
|
681
|
+
m(u, {
|
|
682
682
|
variant: "text",
|
|
683
683
|
density: "compact",
|
|
684
684
|
"append-icon": "mdi-chevron-right",
|
|
685
685
|
class: "meteo-forecast flex-end text-none",
|
|
686
686
|
onClick: e[1] || (e[1] = (f) => r.handleClickMeteo(a.form))
|
|
687
687
|
}, {
|
|
688
|
-
default:
|
|
688
|
+
default: g(() => e[7] || (e[7] = [
|
|
689
689
|
G(" Meteo Forecast ", -1)
|
|
690
690
|
])),
|
|
691
691
|
_: 1,
|
|
@@ -1433,19 +1433,19 @@ const Ci = {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ai = { class: "d-flex justify-start align-center" };
|
|
1435
1435
|
function Ri(t, e, o, i, a, r) {
|
|
1436
|
-
const s = w("VBtn"),
|
|
1437
|
-
return He((b(), j(
|
|
1438
|
-
default:
|
|
1439
|
-
m(
|
|
1440
|
-
default:
|
|
1436
|
+
const s = w("VBtn"), n = w("v-card-text"), c = w("v-card");
|
|
1437
|
+
return He((b(), j(c, { id: "tidal-station-info" }, {
|
|
1438
|
+
default: g(() => [
|
|
1439
|
+
m(n, { class: "pr-8" }, {
|
|
1440
|
+
default: g(() => [
|
|
1441
1441
|
m(s, {
|
|
1442
1442
|
icon: "",
|
|
1443
1443
|
density: "compact",
|
|
1444
1444
|
variant: "plain",
|
|
1445
1445
|
class: "mr-n2 close",
|
|
1446
|
-
onClick: e[0] || (e[0] = (
|
|
1446
|
+
onClick: e[0] || (e[0] = (u) => a.showInfo = !1)
|
|
1447
1447
|
}, {
|
|
1448
|
-
default:
|
|
1448
|
+
default: g(() => e[1] || (e[1] = [
|
|
1449
1449
|
l("i", {
|
|
1450
1450
|
class: "iconfont icon-close",
|
|
1451
1451
|
style: { "font-size": "16px" }
|
|
@@ -1693,14 +1693,14 @@ const ji = {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
};
|
|
1695
1695
|
function Ni(t, e, o, i, a, r) {
|
|
1696
|
-
var s,
|
|
1696
|
+
var s, n, c;
|
|
1697
1697
|
return b(), T("div", {
|
|
1698
1698
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1699
1699
|
style: ae({ right: a.right + "px" })
|
|
1700
1700
|
}, [
|
|
1701
1701
|
l("div", null, y((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1702
|
-
l("div", null, y((
|
|
1703
|
-
l("div", null, y((
|
|
1702
|
+
l("div", null, y((n = a.lngLat) == null ? void 0 : n.lng), 1),
|
|
1703
|
+
l("div", null, y((c = a.lngLat) == null ? void 0 : c.str), 1)
|
|
1704
1704
|
], 4);
|
|
1705
1705
|
}
|
|
1706
1706
|
const Sa = /* @__PURE__ */ Z(ji, [["render", Ni]]);
|
|
@@ -1871,46 +1871,46 @@ const Fi = {
|
|
|
1871
1871
|
let e = this.layerWeight;
|
|
1872
1872
|
if (e) {
|
|
1873
1873
|
if (t.all) {
|
|
1874
|
-
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
1874
|
+
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Be.get(`${s}/api/arc/other/layers/links?l=${e}&t=${this.realTime}`, {
|
|
1875
1875
|
headers: {
|
|
1876
1876
|
Authorization: this.token || this.defaultMeteoToken
|
|
1877
1877
|
}
|
|
1878
1878
|
});
|
|
1879
|
-
if (((o =
|
|
1880
|
-
const
|
|
1881
|
-
for (const d in
|
|
1882
|
-
|
|
1883
|
-
Be.get(
|
|
1879
|
+
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
1880
|
+
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, u = [];
|
|
1881
|
+
for (const d in c)
|
|
1882
|
+
u.push(
|
|
1883
|
+
Be.get(c[d], {
|
|
1884
1884
|
headers: {
|
|
1885
1885
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1886
1886
|
key: d
|
|
1887
1887
|
}
|
|
1888
1888
|
})
|
|
1889
1889
|
);
|
|
1890
|
-
(await Promise.all(
|
|
1890
|
+
(await Promise.all(u)).map((d) => {
|
|
1891
1891
|
var x, S, C;
|
|
1892
1892
|
const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1893
1893
|
this.otherLayers[z] = f;
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
} else if (t.dayNight && e & 1024) {
|
|
1897
|
-
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
1897
|
+
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Be.get(`${s}/api/arc/other/layers/links?l=1024&t=${this.realTime}`, {
|
|
1898
1898
|
headers: {
|
|
1899
1899
|
Authorization: this.token || this.defaultMeteoToken
|
|
1900
1900
|
}
|
|
1901
1901
|
});
|
|
1902
|
-
if (((a =
|
|
1903
|
-
const
|
|
1904
|
-
for (const d in
|
|
1905
|
-
|
|
1906
|
-
Be.get(
|
|
1902
|
+
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
1903
|
+
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, u = [];
|
|
1904
|
+
for (const d in c)
|
|
1905
|
+
u.push(
|
|
1906
|
+
Be.get(c[d], {
|
|
1907
1907
|
headers: {
|
|
1908
1908
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1909
1909
|
key: d
|
|
1910
1910
|
}
|
|
1911
1911
|
})
|
|
1912
1912
|
);
|
|
1913
|
-
(await Promise.all(
|
|
1913
|
+
(await Promise.all(u)).map((d) => {
|
|
1914
1914
|
var x, S, C;
|
|
1915
1915
|
const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1916
1916
|
this.otherLayers[z] = f;
|
|
@@ -1943,17 +1943,17 @@ const Fi = {
|
|
|
1943
1943
|
}, Qi = { class: "text-body-2 text-center pt-1" };
|
|
1944
1944
|
function Ji(t, e, o, i, a, r) {
|
|
1945
1945
|
var $, ee, Q, le, de, pe, me, K, ie, ue;
|
|
1946
|
-
const s = w("VBtn"),
|
|
1946
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), u = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
|
|
1947
1947
|
return b(), T("div", Hi, [
|
|
1948
1948
|
l("div", {
|
|
1949
1949
|
class: "menu-bar-box transition px-1 rounded",
|
|
1950
1950
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
1951
1951
|
}, [
|
|
1952
|
-
m(
|
|
1952
|
+
m(n, {
|
|
1953
1953
|
text: t.$t("layer.mapLayers"),
|
|
1954
1954
|
location: "left"
|
|
1955
1955
|
}, {
|
|
1956
|
-
activator:
|
|
1956
|
+
activator: g(({ props: F }) => [
|
|
1957
1957
|
m(s, B(F, {
|
|
1958
1958
|
"min-width": "32",
|
|
1959
1959
|
width: "32",
|
|
@@ -1961,7 +1961,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1961
1961
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
1962
1962
|
onClick: r.handleMenuToggle
|
|
1963
1963
|
}), {
|
|
1964
|
-
default:
|
|
1964
|
+
default: g(() => e[5] || (e[5] = [
|
|
1965
1965
|
l("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
|
|
1966
1966
|
])),
|
|
1967
1967
|
_: 2,
|
|
@@ -1984,7 +1984,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1984
1984
|
class: "mr-n2",
|
|
1985
1985
|
onClick: r.handleMenuToggle
|
|
1986
1986
|
}, {
|
|
1987
|
-
default:
|
|
1987
|
+
default: g(() => e[6] || (e[6] = [
|
|
1988
1988
|
l("i", {
|
|
1989
1989
|
class: "iconfont icon-close",
|
|
1990
1990
|
style: { "font-size": "20px" }
|
|
@@ -1999,14 +1999,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1999
1999
|
class: "menu-card mx-auto mb-3",
|
|
2000
2000
|
elevation: "0"
|
|
2001
2001
|
}, {
|
|
2002
|
-
default:
|
|
2003
|
-
m(
|
|
2004
|
-
default:
|
|
2005
|
-
m(
|
|
2002
|
+
default: g(() => [
|
|
2003
|
+
m(u, { class: "border-b-thin" }, {
|
|
2004
|
+
default: g(() => [
|
|
2005
|
+
m(c, {
|
|
2006
2006
|
class: "text-subtitle-1 font-weight-medium",
|
|
2007
2007
|
style: { "font-size": "16px !important" }
|
|
2008
2008
|
}, {
|
|
2009
|
-
default:
|
|
2009
|
+
default: g(() => [
|
|
2010
2010
|
G(y(t.$t("layer.mapFeathers")), 1)
|
|
2011
2011
|
]),
|
|
2012
2012
|
_: 1
|
|
@@ -2015,7 +2015,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2015
2015
|
_: 1
|
|
2016
2016
|
}),
|
|
2017
2017
|
m(d, { class: "pb-2" }, {
|
|
2018
|
-
default:
|
|
2018
|
+
default: g(() => [
|
|
2019
2019
|
l("div", Vi, [
|
|
2020
2020
|
(b(!0), T(ke, null, Le(a.mapFeathers, (F) => (b(), T("div", {
|
|
2021
2021
|
key: F.value,
|
|
@@ -2052,14 +2052,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2052
2052
|
class: "menu-card mx-auto mb-3",
|
|
2053
2053
|
elevation: "0"
|
|
2054
2054
|
}, {
|
|
2055
|
-
default:
|
|
2056
|
-
m(
|
|
2057
|
-
default:
|
|
2058
|
-
m(
|
|
2055
|
+
default: g(() => [
|
|
2056
|
+
m(u, { class: "border-b-thin" }, {
|
|
2057
|
+
default: g(() => [
|
|
2058
|
+
m(c, {
|
|
2059
2059
|
class: "text-subtitle-1 font-weight-medium",
|
|
2060
2060
|
style: { "font-size": "16px !important" }
|
|
2061
2061
|
}, {
|
|
2062
|
-
default:
|
|
2062
|
+
default: g(() => [
|
|
2063
2063
|
G(y(t.$t("layer.pointsOfInteresting")), 1)
|
|
2064
2064
|
]),
|
|
2065
2065
|
_: 1
|
|
@@ -2068,7 +2068,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2068
2068
|
_: 1
|
|
2069
2069
|
}),
|
|
2070
2070
|
m(d, { class: "py-2" }, {
|
|
2071
|
-
default:
|
|
2071
|
+
default: g(() => [
|
|
2072
2072
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2073
2073
|
key: F.key,
|
|
2074
2074
|
modelValue: a.checkList,
|
|
@@ -2091,14 +2091,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2091
2091
|
class: "menu-card mx-auto mb-3",
|
|
2092
2092
|
elevation: "0"
|
|
2093
2093
|
}, {
|
|
2094
|
-
default:
|
|
2095
|
-
m(
|
|
2096
|
-
default:
|
|
2097
|
-
m(
|
|
2094
|
+
default: g(() => [
|
|
2095
|
+
m(u, { class: "border-b-thin" }, {
|
|
2096
|
+
default: g(() => [
|
|
2097
|
+
m(c, {
|
|
2098
2098
|
class: "text-subtitle-1 font-weight-medium",
|
|
2099
2099
|
style: { "font-size": "16px !important" }
|
|
2100
2100
|
}, {
|
|
2101
|
-
default:
|
|
2101
|
+
default: g(() => [
|
|
2102
2102
|
G(y(t.$t("layer.otherLayers")), 1)
|
|
2103
2103
|
]),
|
|
2104
2104
|
_: 1
|
|
@@ -2107,7 +2107,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2107
2107
|
_: 1
|
|
2108
2108
|
}),
|
|
2109
2109
|
m(d, { class: "py-2" }, {
|
|
2110
|
-
default:
|
|
2110
|
+
default: g(() => [
|
|
2111
2111
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2112
2112
|
key: F.key,
|
|
2113
2113
|
modelValue: a.checkList,
|
|
@@ -2130,14 +2130,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2130
2130
|
class: "menu-card mx-auto mb-3",
|
|
2131
2131
|
elevation: "0"
|
|
2132
2132
|
}, {
|
|
2133
|
-
default:
|
|
2134
|
-
m(
|
|
2135
|
-
default:
|
|
2136
|
-
m(
|
|
2133
|
+
default: g(() => [
|
|
2134
|
+
m(u, { class: "border-b-thin" }, {
|
|
2135
|
+
default: g(() => [
|
|
2136
|
+
m(c, {
|
|
2137
2137
|
class: "text-subtitle-1 font-weight-medium",
|
|
2138
2138
|
style: { "font-size": "16px !important" }
|
|
2139
2139
|
}, {
|
|
2140
|
-
default:
|
|
2140
|
+
default: g(() => [
|
|
2141
2141
|
G(y(t.$t("layer.myFollows")), 1)
|
|
2142
2142
|
]),
|
|
2143
2143
|
_: 1
|
|
@@ -2146,7 +2146,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2146
2146
|
_: 1
|
|
2147
2147
|
}),
|
|
2148
2148
|
m(d, { class: "py-2" }, {
|
|
2149
|
-
default:
|
|
2149
|
+
default: g(() => [
|
|
2150
2150
|
m(p, {
|
|
2151
2151
|
modelValue: a.followList,
|
|
2152
2152
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.followList = F),
|
|
@@ -2318,8 +2318,8 @@ class io {
|
|
|
2318
2318
|
const e = (x = this.map) == null ? void 0 : x.getBounds();
|
|
2319
2319
|
if (!e)
|
|
2320
2320
|
return [];
|
|
2321
|
-
const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [
|
|
2322
|
-
return [d, f,
|
|
2321
|
+
const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [n, c] = this.convertNLng(a[0]), [u, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([n, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + c));
|
|
2322
|
+
return [d, f, u + z, p];
|
|
2323
2323
|
}
|
|
2324
2324
|
/**
|
|
2325
2325
|
* [视窗边界像素宽度]
|
|
@@ -2334,11 +2334,11 @@ class io {
|
|
|
2334
2334
|
* @param zoom
|
|
2335
2335
|
*/
|
|
2336
2336
|
getWorldCopy(e, o) {
|
|
2337
|
-
const i = 2 ** o, [a, r, s,
|
|
2338
|
-
for (let p =
|
|
2337
|
+
const i = 2 ** o, [a, r, s, n] = e.map((p) => ~~(p / (i * 256))), c = [];
|
|
2338
|
+
for (let p = n; p <= r; p++)
|
|
2339
2339
|
for (let d = a; d <= s; d++)
|
|
2340
|
-
|
|
2341
|
-
return
|
|
2340
|
+
c.push([d, p]);
|
|
2341
|
+
return c.map((p) => {
|
|
2342
2342
|
const d = 2 ** o * 256;
|
|
2343
2343
|
return [p[0] * d, p[1] * d, d];
|
|
2344
2344
|
});
|
|
@@ -2383,9 +2383,9 @@ class Ne {
|
|
|
2383
2383
|
* @param width??
|
|
2384
2384
|
* @param height??
|
|
2385
2385
|
*/
|
|
2386
|
-
createTexture(e, o, i, a, r, s,
|
|
2387
|
-
const
|
|
2388
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
2386
|
+
createTexture(e, o, i, a, r, s, n) {
|
|
2387
|
+
const c = e.createTexture();
|
|
2388
|
+
return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, o), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, a), r instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, s, n, 0, e.RGBA, e.UNSIGNED_BYTE, r) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, r), e.bindTexture(e.TEXTURE_2D, null), c;
|
|
2389
2389
|
}
|
|
2390
2390
|
/**
|
|
2391
2391
|
* 创建数据资源
|
|
@@ -2423,14 +2423,14 @@ class Ne {
|
|
|
2423
2423
|
const a = this.createProgram(e, o, i);
|
|
2424
2424
|
if (a) {
|
|
2425
2425
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
2426
|
-
for (let
|
|
2427
|
-
const
|
|
2428
|
-
r[
|
|
2426
|
+
for (let c = 0; c < s; c++) {
|
|
2427
|
+
const u = e.getActiveAttrib(a, c);
|
|
2428
|
+
r[u.name] = e.getAttribLocation(a, u.name);
|
|
2429
2429
|
}
|
|
2430
|
-
const
|
|
2431
|
-
for (let
|
|
2432
|
-
const
|
|
2433
|
-
r[
|
|
2430
|
+
const n = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
2431
|
+
for (let c = 0; c < n; c++) {
|
|
2432
|
+
const u = e.getActiveUniform(a, c);
|
|
2433
|
+
r[u.name] = e.getUniformLocation(a, u.name);
|
|
2434
2434
|
}
|
|
2435
2435
|
return r;
|
|
2436
2436
|
}
|
|
@@ -2442,19 +2442,19 @@ class Ne {
|
|
|
2442
2442
|
setup(e, o, i = !1, a, r) {
|
|
2443
2443
|
const s = document.createElement("canvas");
|
|
2444
2444
|
s.width = 256, s.height = 1;
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2447
|
-
const
|
|
2448
|
-
return o.forEach(([
|
|
2449
|
-
|
|
2450
|
-
}),
|
|
2445
|
+
const n = s.getContext("2d");
|
|
2446
|
+
if (n && e) {
|
|
2447
|
+
const c = n == null ? void 0 : n.createLinearGradient(0, 0, 256, 0);
|
|
2448
|
+
return o.forEach(([u, p]) => {
|
|
2449
|
+
c.addColorStop(u, p);
|
|
2450
|
+
}), n.fillStyle = c, n.fillRect(0, 0, 256, 1), {
|
|
2451
2451
|
canvas: s,
|
|
2452
2452
|
texture: this.createTexture(
|
|
2453
2453
|
e,
|
|
2454
2454
|
e.LINEAR,
|
|
2455
2455
|
e.LINEAR,
|
|
2456
2456
|
e.CLAMP_TO_EDGE,
|
|
2457
|
-
i ? new Uint8Array(
|
|
2457
|
+
i ? new Uint8Array(n.getImageData(0, 0, 256, 1).data) : s,
|
|
2458
2458
|
a,
|
|
2459
2459
|
r
|
|
2460
2460
|
)
|
|
@@ -2465,32 +2465,32 @@ class Ne {
|
|
|
2465
2465
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
2466
2466
|
for (let p = 0; p < r.length; p++)
|
|
2467
2467
|
r[p] = Math.floor(Math.random() * 256);
|
|
2468
|
-
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
2468
|
+
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = new Float32Array(a);
|
|
2469
2469
|
for (let p = 0; p < a; p++)
|
|
2470
|
-
|
|
2471
|
-
const
|
|
2472
|
-
return { resolution: i, total: a, texture0: s, texture1:
|
|
2470
|
+
c[p] = p;
|
|
2471
|
+
const u = this.createDataBuffer(e, "array", c);
|
|
2472
|
+
return { resolution: i, total: a, texture0: s, texture1: n, indexBuffer: u };
|
|
2473
2473
|
}
|
|
2474
2474
|
bind(e, o, i) {
|
|
2475
2475
|
const a = this.createProgram(e, o, i);
|
|
2476
2476
|
if (a) {
|
|
2477
2477
|
const r = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(a, "a_position");
|
|
2478
2478
|
e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
|
|
2479
|
-
const
|
|
2480
|
-
this.createDataBuffer(e, "array",
|
|
2481
|
-
const
|
|
2482
|
-
return e.enableVertexAttribArray(
|
|
2479
|
+
const n = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
2480
|
+
this.createDataBuffer(e, "array", n);
|
|
2481
|
+
const c = e.getAttribLocation(a, "a_texCoord");
|
|
2482
|
+
return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
|
|
2483
2483
|
}
|
|
2484
2484
|
return {};
|
|
2485
2485
|
}
|
|
2486
2486
|
bindParticle(e, o, i, a, r, s) {
|
|
2487
|
-
const
|
|
2488
|
-
return { particle:
|
|
2487
|
+
const n = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
|
|
2488
|
+
return { particle: n, screen: c, update: u, quadBuffer: p, frameBuffer: d };
|
|
2489
2489
|
}
|
|
2490
|
-
draw(e, o, i, a, r, s,
|
|
2491
|
-
var
|
|
2490
|
+
draw(e, o, i, a, r, s, n) {
|
|
2491
|
+
var c, u;
|
|
2492
2492
|
if (o && i) {
|
|
2493
|
-
e.resize(), o == null || o.viewport(0, 0, (
|
|
2493
|
+
e.resize(), o == null || o.viewport(0, 0, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.width, (u = o == null ? void 0 : o.canvas) == null ? void 0 : u.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
2494
2494
|
try {
|
|
2495
2495
|
o.useProgram(i);
|
|
2496
2496
|
const p = {
|
|
@@ -2501,7 +2501,7 @@ class Ne {
|
|
|
2501
2501
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
2502
2502
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
2503
2503
|
};
|
|
2504
|
-
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1),
|
|
2504
|
+
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), n != null && n.uvRange && (n != null && n.sRange) && (p.uvRange && o.uniform2f(p.uvRange, n.uvRange[0], n.uvRange[1]), p.sRange && o.uniform2f(p.sRange, n.sRange[0], n.sRange[1])), p.scale && o.uniform1f(p.scale, (n == null ? void 0 : n.scale) || 1);
|
|
2505
2505
|
const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
|
|
2506
2506
|
for (const x of z) {
|
|
2507
2507
|
const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, _] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, _, M, _, L, v, L, _]);
|
|
@@ -2513,8 +2513,8 @@ class Ne {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
drawParticle(e, o, i, a, r) {
|
|
2516
|
-
var s,
|
|
2517
|
-
o && (o == null || o.viewport(0, 0, (s = o == null ? void 0 : o.canvas) == null ? void 0 : s.width, (
|
|
2516
|
+
var s, n;
|
|
2517
|
+
o && (o == null || o.viewport(0, 0, (s = o == null ? void 0 : o.canvas) == null ? void 0 : s.width, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.height), o.disable(o.DEPTH_TEST), o.disable(o.STENCIL_TEST), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, i), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, a.texture0), this.renderScreen(e, o, a, r), this.updateParticles(e, o, a, r));
|
|
2518
2518
|
}
|
|
2519
2519
|
renderScreen(e, o, i, a) {
|
|
2520
2520
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.screenTexture, 0), o.viewport(0, 0, o.canvas.width, o.canvas.height), this.renderScreenTexture(o, i.backgroundTexture, i.screen, i.quadBuffer, 0.95), this.renderParticles(e, o, i, a), o.bindFramebuffer(o.FRAMEBUFFER, null), this.renderScreenTexture(o, i.screenTexture, i.screen, i.quadBuffer, 1);
|
|
@@ -2532,11 +2532,11 @@ class Ne {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
2534
|
updateParticles(e, o, i, a) {
|
|
2535
|
-
var s,
|
|
2535
|
+
var s, n;
|
|
2536
2536
|
if (o) {
|
|
2537
2537
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.texture1, 0), o.viewport(0, 0, i.resolution, i.resolution), o.useProgram(i.update.program), o.bindBuffer(o.ARRAY_BUFFER, i.quadBuffer), o.enableVertexAttribArray(i.update.a_pos), o.vertexAttribPointer(i.update.a_pos, 2, o.FLOAT, !1, 0, 0), o.uniform1i(i.update.u_factor, 0), o.uniform1i(i.update.u_particles, 1);
|
|
2538
|
-
const
|
|
2539
|
-
o.uniform4f(i.update.u_viewport,
|
|
2538
|
+
const c = e.getBoundRange();
|
|
2539
|
+
o.uniform4f(i.update.u_viewport, c[0], c[1], c[2], c[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (s = i == null ? void 0 : i.image) == null ? void 0 : s.width, (n = i == null ? void 0 : i.image) == null ? void 0 : n.height), o.uniform2f(i.update.u_factor_min, a.uvRange[0], a.uvRange[0]), o.uniform2f(i.update.u_factor_max, a.uvRange[1], a.uvRange[1]), o.uniform1f(i.update.u_speed_factor, a.speedFactor * e.ratio), o.uniform1f(i.update.u_drop_rate, a.dropRate), o.uniform1f(i.update.u_drop_rate_bump, a.dropRateBump), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
2540
2540
|
}
|
|
2541
2541
|
const r = i.texture0;
|
|
2542
2542
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -2849,13 +2849,13 @@ const er = {
|
|
|
2849
2849
|
}, 500);
|
|
2850
2850
|
else if (this.wind) {
|
|
2851
2851
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
2852
|
-
let r = 0, s = 0,
|
|
2853
|
-
if ((t = this.wind) != null && t.active && (
|
|
2854
|
-
(i = this.map) == null || i.getSource(this.source).setData(
|
|
2852
|
+
let r = 0, s = 0, n = this.empty;
|
|
2853
|
+
if ((t = this.wind) != null && t.active && (n = (e = this.wind) == null ? void 0 : e.data), (o = this.map) != null && o.getSource(this.source))
|
|
2854
|
+
(i = this.map) == null || i.getSource(this.source).setData(n), s = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[windBarbs] update elapsed: ", s, ", total: ", r += s);
|
|
2855
2855
|
else {
|
|
2856
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
2857
|
-
for (let
|
|
2858
|
-
const
|
|
2856
|
+
this.map.addSource(this.source, { type: "geojson", data: n });
|
|
2857
|
+
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
2858
|
+
const u = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = u < 10 ? `00${u}kts` : u < 100 ? `0${u}kts` : `${u}kts`, f = new Image(48, 48), z = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
|
|
2859
2859
|
f.src = z, f.onload = () => {
|
|
2860
2860
|
this.map.hasImage(d + "-icon") || this.map.addImage(d + "-icon", f), this.map.addLayer(
|
|
2861
2861
|
{
|
|
@@ -2864,7 +2864,7 @@ const er = {
|
|
|
2864
2864
|
filter: [
|
|
2865
2865
|
"all",
|
|
2866
2866
|
// @ts-ignore
|
|
2867
|
-
[">=", "spd",
|
|
2867
|
+
[">=", "spd", u],
|
|
2868
2868
|
// @ts-ignore
|
|
2869
2869
|
["<", "spd", p]
|
|
2870
2870
|
],
|
|
@@ -3216,18 +3216,18 @@ const sr = /* @__PURE__ */ Z(ir, [["render", lr]]), nr = {
|
|
|
3216
3216
|
this.beforeLayer
|
|
3217
3217
|
);
|
|
3218
3218
|
const s = new Image(48, 48);
|
|
3219
|
-
let
|
|
3220
|
-
s.src =
|
|
3221
|
-
const
|
|
3222
|
-
|
|
3219
|
+
let n = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n)));
|
|
3220
|
+
s.src = c;
|
|
3221
|
+
const u = new Image(48, 48);
|
|
3222
|
+
n = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3223
3223
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3224
3224
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3225
|
-
</svg>`,
|
|
3226
|
-
const p = [
|
|
3225
|
+
</svg>`, c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n))), u.src = c;
|
|
3226
|
+
const p = [u];
|
|
3227
3227
|
let d = 0;
|
|
3228
3228
|
p.forEach((f) => {
|
|
3229
3229
|
f.onload = () => {
|
|
3230
|
-
d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon",
|
|
3230
|
+
d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", u), d === 1 && this.map.addLayer(
|
|
3231
3231
|
{
|
|
3232
3232
|
id: this.directionLayer,
|
|
3233
3233
|
type: "symbol",
|
|
@@ -3836,8 +3836,8 @@ const vr = /* @__PURE__ */ Z(wr, [["render", xr]]), _r = {
|
|
|
3836
3836
|
}
|
|
3837
3837
|
}, this.beforeLayer);
|
|
3838
3838
|
const s = new Image(72, 72);
|
|
3839
|
-
let
|
|
3840
|
-
s.src =
|
|
3839
|
+
let n = '<svg t="1752721890391" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n)));
|
|
3840
|
+
s.src = c, s.onload = () => {
|
|
3841
3841
|
this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
|
|
3842
3842
|
{
|
|
3843
3843
|
id: this.directionLayer,
|
|
@@ -4039,19 +4039,19 @@ const zr = /* @__PURE__ */ Z(_r, [["render", kr]]), Lr = {
|
|
|
4039
4039
|
class: "legend-tip-btn-gl4"
|
|
4040
4040
|
};
|
|
4041
4041
|
function Cr(t, e, o, i, a, r) {
|
|
4042
|
-
var
|
|
4043
|
-
const s = w("VBtn"),
|
|
4044
|
-
return (
|
|
4042
|
+
var c;
|
|
4043
|
+
const s = w("VBtn"), n = w("VTooltip");
|
|
4044
|
+
return (c = o.prmsl) != null && c.active ? (b(), T("div", Pr, [
|
|
4045
4045
|
l("div", {
|
|
4046
4046
|
class: "menu-bar-box pa-1 rounded",
|
|
4047
4047
|
style: ae({ right: a.right + "px" })
|
|
4048
4048
|
}, [
|
|
4049
|
-
m(
|
|
4049
|
+
m(n, {
|
|
4050
4050
|
text: "Map Layers",
|
|
4051
4051
|
location: "left"
|
|
4052
4052
|
}, {
|
|
4053
|
-
activator:
|
|
4054
|
-
m(s, B(
|
|
4053
|
+
activator: g(({ props: u }) => [
|
|
4054
|
+
m(s, B(u, {
|
|
4055
4055
|
"min-width": "32",
|
|
4056
4056
|
width: "32",
|
|
4057
4057
|
height: "32",
|
|
@@ -4059,7 +4059,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
4059
4059
|
color: a.toggle ? "primary" : "",
|
|
4060
4060
|
onClick: r.handleMenuToggle
|
|
4061
4061
|
}), {
|
|
4062
|
-
default:
|
|
4062
|
+
default: g(() => e[0] || (e[0] = [
|
|
4063
4063
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
4064
4064
|
])),
|
|
4065
4065
|
_: 2,
|
|
@@ -5074,12 +5074,14 @@ const al = {
|
|
|
5074
5074
|
},
|
|
5075
5075
|
checkList: {
|
|
5076
5076
|
handler(t, e) {
|
|
5077
|
-
|
|
5077
|
+
var o, i, a, r, s, n;
|
|
5078
|
+
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (n = (s = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : s.idmBottomBar) == null || n.handleToggle("weather", !1);
|
|
5078
5079
|
}
|
|
5079
5080
|
},
|
|
5080
5081
|
autoActive: {
|
|
5081
5082
|
handler(t) {
|
|
5082
|
-
|
|
5083
|
+
var e, o, i, a, r, s;
|
|
5084
|
+
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((n) => this.checkList.includes(n.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? (i = (o = (e = this.$parent) == null ? void 0 : e.$refs) == null ? void 0 : o.idmBottomBar) == null || i.handleToggle("weather", !0) : (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
|
|
5083
5085
|
}
|
|
5084
5086
|
},
|
|
5085
5087
|
iceToggleValue: {
|
|
@@ -5147,7 +5149,7 @@ const al = {
|
|
|
5147
5149
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
5148
5150
|
},
|
|
5149
5151
|
async fetchWeatherLayers(t = {}) {
|
|
5150
|
-
var a, r, s,
|
|
5152
|
+
var a, r, s, n, c, u, p, d, f;
|
|
5151
5153
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
5152
5154
|
let o = 0, i = 0;
|
|
5153
5155
|
if (this.map) {
|
|
@@ -5170,8 +5172,8 @@ const al = {
|
|
|
5170
5172
|
}
|
|
5171
5173
|
}
|
|
5172
5174
|
);
|
|
5173
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
5174
|
-
const L = (
|
|
5175
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((n = M == null ? void 0 : M.data) == null ? void 0 : n.code) === 0) {
|
|
5176
|
+
const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, v = [];
|
|
5175
5177
|
for (const P in L)
|
|
5176
5178
|
v.push(
|
|
5177
5179
|
Be.get(L[P], {
|
|
@@ -5197,7 +5199,7 @@ const al = {
|
|
|
5197
5199
|
});
|
|
5198
5200
|
}
|
|
5199
5201
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
5200
|
-
const L = (
|
|
5202
|
+
const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
5201
5203
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5202
5204
|
type: "json",
|
|
5203
5205
|
direction: L,
|
|
@@ -5237,7 +5239,7 @@ const al = {
|
|
|
5237
5239
|
}, 500);
|
|
5238
5240
|
},
|
|
5239
5241
|
handleRampColorInitial() {
|
|
5240
|
-
var t, e, o, i, a, r, s,
|
|
5242
|
+
var t, e, o, i, a, r, s, n, c, u, p, d;
|
|
5241
5243
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
5242
5244
|
type: "canvas",
|
|
5243
5245
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -5253,12 +5255,12 @@ const al = {
|
|
|
5253
5255
|
}
|
|
5254
5256
|
},
|
|
5255
5257
|
this.beforeLayer
|
|
5256
|
-
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((
|
|
5258
|
+
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((n = this.viewport) == null ? void 0 : n.particleSource, {
|
|
5257
5259
|
type: "canvas",
|
|
5258
|
-
canvas: (
|
|
5260
|
+
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
5259
5261
|
animate: !0,
|
|
5260
5262
|
coordinates: this.viewport.getBoundLngLat()
|
|
5261
|
-
}), this.viewport.map.getLayer((
|
|
5263
|
+
}), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
|
|
5262
5264
|
{
|
|
5263
5265
|
type: "raster",
|
|
5264
5266
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
@@ -5271,10 +5273,10 @@ const al = {
|
|
|
5271
5273
|
);
|
|
5272
5274
|
},
|
|
5273
5275
|
handleDrawWeather4Json() {
|
|
5274
|
-
var
|
|
5276
|
+
var u, p, d, f, z, x, S;
|
|
5275
5277
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
5276
5278
|
let e = 0, o = 0;
|
|
5277
|
-
const i = (
|
|
5279
|
+
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), n = Math.floor(i._sw.lat), c = Math.ceil(i._ne.lat);
|
|
5278
5280
|
for (const C in this.weatherLayers) {
|
|
5279
5281
|
let N = !1;
|
|
5280
5282
|
if (this.weatherLayers[C].active && this.weatherLayers[C].type === "json") {
|
|
@@ -5283,7 +5285,7 @@ const al = {
|
|
|
5283
5285
|
N = !0;
|
|
5284
5286
|
const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
|
|
5285
5287
|
for (const _ in L)
|
|
5286
|
-
if (_ >
|
|
5288
|
+
if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5287
5289
|
const P = L[_].lng;
|
|
5288
5290
|
r > s ? P.forEach((k, I) => {
|
|
5289
5291
|
var V, X, q, Y, $, ee;
|
|
@@ -5347,7 +5349,7 @@ const al = {
|
|
|
5347
5349
|
N = !0;
|
|
5348
5350
|
const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
|
|
5349
5351
|
for (const _ in L)
|
|
5350
|
-
if (_ >
|
|
5352
|
+
if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5351
5353
|
const P = L[_].lng;
|
|
5352
5354
|
r > s ? P.forEach((k, I) => {
|
|
5353
5355
|
var V, X, q, Y, $, ee;
|
|
@@ -5408,7 +5410,7 @@ const al = {
|
|
|
5408
5410
|
N = !0;
|
|
5409
5411
|
const L = this.weatherLayers.wind.raw;
|
|
5410
5412
|
for (const v in L)
|
|
5411
|
-
if (v >
|
|
5413
|
+
if (v > n && v < c && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5412
5414
|
const _ = L[v].lng;
|
|
5413
5415
|
r > s ? _.forEach((P, k) => {
|
|
5414
5416
|
var I, V, X, q;
|
|
@@ -5531,11 +5533,11 @@ const al = {
|
|
|
5531
5533
|
return t.features.forEach((r) => {
|
|
5532
5534
|
if (r.geometry.type !== "Point")
|
|
5533
5535
|
if (i > a) {
|
|
5534
|
-
let s = [i, e._sw.lat, 180, e._ne.lat],
|
|
5535
|
-
|
|
5536
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], n = E.bboxClip(r, s);
|
|
5537
|
+
n.geometry.coordinates.length && o.push(n), s = [-180, e._sw.lat, a, e._ne.lat], n = E.bboxClip(r, s), n.geometry.coordinates.length && o.push(n);
|
|
5536
5538
|
} else {
|
|
5537
|
-
const s = [i, e._sw.lat, a, e._ne.lat],
|
|
5538
|
-
|
|
5539
|
+
const s = [i, e._sw.lat, a, e._ne.lat], n = E.bboxClip(r, s);
|
|
5540
|
+
n.geometry.coordinates.length && o.push(n);
|
|
5539
5541
|
}
|
|
5540
5542
|
else
|
|
5541
5543
|
o.push(r);
|
|
@@ -5560,17 +5562,17 @@ const al = {
|
|
|
5560
5562
|
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Al = { class: "text-body-2 opacity-70 mb-3" }, Rl = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
|
|
5561
5563
|
function El(t, e, o, i, a, r) {
|
|
5562
5564
|
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
|
|
5563
|
-
const s = w("VBtn"),
|
|
5565
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), u = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
|
|
5564
5566
|
return b(), T("div", il, [
|
|
5565
5567
|
l("div", {
|
|
5566
5568
|
class: "menu-bar-box transition pa-1",
|
|
5567
5569
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
5568
5570
|
}, [
|
|
5569
|
-
m(
|
|
5571
|
+
m(n, {
|
|
5570
5572
|
text: t.$t("weather.weatherLayers"),
|
|
5571
5573
|
location: "left"
|
|
5572
5574
|
}, {
|
|
5573
|
-
activator:
|
|
5575
|
+
activator: g(({ props: H }) => [
|
|
5574
5576
|
m(s, B(H, {
|
|
5575
5577
|
"min-width": "32",
|
|
5576
5578
|
width: "32",
|
|
@@ -5578,7 +5580,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5578
5580
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
5579
5581
|
onClick: r.handleMenuToggle
|
|
5580
5582
|
}), {
|
|
5581
|
-
default:
|
|
5583
|
+
default: g(() => e[7] || (e[7] = [
|
|
5582
5584
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
5583
5585
|
])),
|
|
5584
5586
|
_: 2,
|
|
@@ -5593,11 +5595,11 @@ function El(t, e, o, i, a, r) {
|
|
|
5593
5595
|
class: "menu-bar-box pa-1 rounded",
|
|
5594
5596
|
style: ae({ right: a.right + "px" })
|
|
5595
5597
|
}, [
|
|
5596
|
-
m(
|
|
5598
|
+
m(n, {
|
|
5597
5599
|
text: "Legend",
|
|
5598
5600
|
location: "left"
|
|
5599
5601
|
}, {
|
|
5600
|
-
activator:
|
|
5602
|
+
activator: g(({ props: H }) => [
|
|
5601
5603
|
m(s, B(H, {
|
|
5602
5604
|
"min-width": "32",
|
|
5603
5605
|
width: "32",
|
|
@@ -5605,7 +5607,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5605
5607
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
5606
5608
|
onClick: e[0] || (e[0] = (te) => a.legendToggle = !a.legendToggle)
|
|
5607
5609
|
}), {
|
|
5608
|
-
default:
|
|
5610
|
+
default: g(() => e[8] || (e[8] = [
|
|
5609
5611
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
5610
5612
|
])),
|
|
5611
5613
|
_: 2,
|
|
@@ -5622,18 +5624,18 @@ function El(t, e, o, i, a, r) {
|
|
|
5622
5624
|
class: "card-info d-flex justify-center align-start",
|
|
5623
5625
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5624
5626
|
}, {
|
|
5625
|
-
default:
|
|
5627
|
+
default: g(() => [
|
|
5626
5628
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5627
|
-
default:
|
|
5629
|
+
default: g(() => [
|
|
5628
5630
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5629
|
-
m(
|
|
5630
|
-
default:
|
|
5631
|
-
(b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(
|
|
5631
|
+
m(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5632
|
+
default: g(() => [
|
|
5633
|
+
(b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(c, {
|
|
5632
5634
|
key: H,
|
|
5633
5635
|
cols: "6",
|
|
5634
5636
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5635
5637
|
}, {
|
|
5636
|
-
default:
|
|
5638
|
+
default: g(() => [
|
|
5637
5639
|
l("div", ll, [
|
|
5638
5640
|
l("i", {
|
|
5639
5641
|
class: Ge(["iconfont", r.barbsIconName[te]]),
|
|
@@ -5653,19 +5655,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5653
5655
|
}),
|
|
5654
5656
|
m(d, { vertical: "" }),
|
|
5655
5657
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5656
|
-
default:
|
|
5658
|
+
default: g(() => [
|
|
5657
5659
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
5658
|
-
m(
|
|
5660
|
+
m(u, {
|
|
5659
5661
|
class: "ma-0 ml-1",
|
|
5660
5662
|
style: { width: "100px" }
|
|
5661
5663
|
}, {
|
|
5662
|
-
default:
|
|
5663
|
-
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(
|
|
5664
|
+
default: g(() => [
|
|
5665
|
+
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(c, {
|
|
5664
5666
|
key: te,
|
|
5665
5667
|
cols: "12",
|
|
5666
5668
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5667
5669
|
}, {
|
|
5668
|
-
default:
|
|
5670
|
+
default: g(() => [
|
|
5669
5671
|
l("div", nl, [
|
|
5670
5672
|
te === 0 ? (b(), T("div", cl)) : (b(), T("div", {
|
|
5671
5673
|
key: 1,
|
|
@@ -5685,19 +5687,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5685
5687
|
}),
|
|
5686
5688
|
m(d, { vertical: "" }),
|
|
5687
5689
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5688
|
-
default:
|
|
5690
|
+
default: g(() => [
|
|
5689
5691
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
5690
|
-
m(
|
|
5692
|
+
m(u, {
|
|
5691
5693
|
class: "ma-0 ml-n5",
|
|
5692
5694
|
style: { width: "110px" }
|
|
5693
5695
|
}, {
|
|
5694
|
-
default:
|
|
5695
|
-
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(
|
|
5696
|
+
default: g(() => [
|
|
5697
|
+
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(c, {
|
|
5696
5698
|
key: te,
|
|
5697
5699
|
cols: "12",
|
|
5698
5700
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
5699
5701
|
}, {
|
|
5700
|
-
default:
|
|
5702
|
+
default: g(() => [
|
|
5701
5703
|
l("div", hl, [
|
|
5702
5704
|
l("div", dl, [
|
|
5703
5705
|
l("i", {
|
|
@@ -5744,7 +5746,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5744
5746
|
class: "mr-n2",
|
|
5745
5747
|
onClick: r.handleMenuToggle
|
|
5746
5748
|
}, {
|
|
5747
|
-
default:
|
|
5749
|
+
default: g(() => e[12] || (e[12] = [
|
|
5748
5750
|
l("i", {
|
|
5749
5751
|
class: "iconfont icon-close",
|
|
5750
5752
|
style: { "font-size": "20px" }
|
|
@@ -5761,14 +5763,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5761
5763
|
class: "menu-card mx-auto mb-3",
|
|
5762
5764
|
elevation: "0"
|
|
5763
5765
|
}, {
|
|
5764
|
-
default:
|
|
5766
|
+
default: g(() => [
|
|
5765
5767
|
m(S, { class: "border-b-thin" }, {
|
|
5766
|
-
default:
|
|
5768
|
+
default: g(() => [
|
|
5767
5769
|
m(x, {
|
|
5768
5770
|
class: "text-subtitle-1 font-weight-medium",
|
|
5769
5771
|
style: { "font-size": "16px !important" }
|
|
5770
5772
|
}, {
|
|
5771
|
-
default:
|
|
5773
|
+
default: g(() => [
|
|
5772
5774
|
G(y(t.$t("weather.overlays")), 1)
|
|
5773
5775
|
]),
|
|
5774
5776
|
_: 1
|
|
@@ -5777,7 +5779,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5777
5779
|
_: 1
|
|
5778
5780
|
}),
|
|
5779
5781
|
m(p, { class: "py-2" }, {
|
|
5780
|
-
default:
|
|
5782
|
+
default: g(() => [
|
|
5781
5783
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (b(), j(C, {
|
|
5782
5784
|
key: H.key,
|
|
5783
5785
|
modelValue: a.checkList,
|
|
@@ -5801,14 +5803,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5801
5803
|
class: "menu-card mx-auto mb-3",
|
|
5802
5804
|
elevation: "0"
|
|
5803
5805
|
}, {
|
|
5804
|
-
default:
|
|
5806
|
+
default: g(() => [
|
|
5805
5807
|
m(S, { class: "border-b-thin" }, {
|
|
5806
|
-
default:
|
|
5808
|
+
default: g(() => [
|
|
5807
5809
|
m(x, {
|
|
5808
5810
|
class: "text-subtitle-1 font-weight-medium",
|
|
5809
5811
|
style: { "font-size": "16px !important" }
|
|
5810
5812
|
}, {
|
|
5811
|
-
default:
|
|
5813
|
+
default: g(() => [
|
|
5812
5814
|
G(y(t.$t("weather.renders")), 1)
|
|
5813
5815
|
]),
|
|
5814
5816
|
_: 1
|
|
@@ -5817,7 +5819,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5817
5819
|
_: 1
|
|
5818
5820
|
}),
|
|
5819
5821
|
m(p, { class: "py-2" }, {
|
|
5820
|
-
default:
|
|
5822
|
+
default: g(() => [
|
|
5821
5823
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), T(ke, {
|
|
5822
5824
|
key: H.key
|
|
5823
5825
|
}, [
|
|
@@ -5873,7 +5875,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5873
5875
|
group: "",
|
|
5874
5876
|
disabled: !a.autoActive
|
|
5875
5877
|
}, {
|
|
5876
|
-
default:
|
|
5878
|
+
default: g(() => [
|
|
5877
5879
|
m(s, {
|
|
5878
5880
|
density: "compact",
|
|
5879
5881
|
height: "30",
|
|
@@ -5883,7 +5885,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5883
5885
|
"base-color": "grey-lighten-1",
|
|
5884
5886
|
disabled: !a.autoActive
|
|
5885
5887
|
}, {
|
|
5886
|
-
default:
|
|
5888
|
+
default: g(() => [
|
|
5887
5889
|
G(y(t.$t("weather.coverage")), 1)
|
|
5888
5890
|
]),
|
|
5889
5891
|
_: 1
|
|
@@ -5897,7 +5899,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5897
5899
|
disabled: !a.autoActive,
|
|
5898
5900
|
value: "ice-thickness"
|
|
5899
5901
|
}, {
|
|
5900
|
-
default:
|
|
5902
|
+
default: g(() => [
|
|
5901
5903
|
G(y(t.$t("weather.thickness")), 1)
|
|
5902
5904
|
]),
|
|
5903
5905
|
_: 1
|
|
@@ -5916,14 +5918,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5916
5918
|
class: "menu-card mx-auto mb-3",
|
|
5917
5919
|
elevation: "0"
|
|
5918
5920
|
}, {
|
|
5919
|
-
default:
|
|
5921
|
+
default: g(() => [
|
|
5920
5922
|
m(S, { class: "border-b-thin" }, {
|
|
5921
|
-
default:
|
|
5923
|
+
default: g(() => [
|
|
5922
5924
|
m(x, {
|
|
5923
5925
|
class: "text-subtitle-1 font-weight-medium",
|
|
5924
5926
|
style: { "font-size": "16px !important" }
|
|
5925
5927
|
}, {
|
|
5926
|
-
default:
|
|
5928
|
+
default: g(() => [
|
|
5927
5929
|
G(y(t.$t("weather.forecastModel")), 1)
|
|
5928
5930
|
]),
|
|
5929
5931
|
_: 1
|
|
@@ -5932,7 +5934,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5932
5934
|
_: 1
|
|
5933
5935
|
}),
|
|
5934
5936
|
m(p, { class: "" }, {
|
|
5935
|
-
default:
|
|
5937
|
+
default: g(() => {
|
|
5936
5938
|
var H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
|
|
5937
5939
|
return [
|
|
5938
5940
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
@@ -6382,21 +6384,21 @@ class Ca {
|
|
|
6382
6384
|
var o, i;
|
|
6383
6385
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
6384
6386
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6385
|
-
for (const
|
|
6386
|
-
let
|
|
6387
|
+
for (const n of a) {
|
|
6388
|
+
let c = eo.find((p) => {
|
|
6387
6389
|
var d, f, z;
|
|
6388
|
-
return ((d = p.models) == null ? void 0 : d.includes(
|
|
6389
|
-
}),
|
|
6390
|
+
return ((d = p.models) == null ? void 0 : d.includes(n)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === n || ((z = p.name) == null ? void 0 : z.toLowerCase()) === n;
|
|
6391
|
+
}), u = to.find((p) => {
|
|
6390
6392
|
var d, f, z;
|
|
6391
|
-
return ((d = p.models) == null ? void 0 : d.includes(
|
|
6393
|
+
return ((d = p.models) == null ? void 0 : d.includes(n)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === n || ((z = p.name) == null ? void 0 : z.toLowerCase()) === n;
|
|
6392
6394
|
});
|
|
6393
|
-
|
|
6395
|
+
c = c || eo.find((p) => {
|
|
6394
6396
|
var d, f;
|
|
6395
|
-
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f =
|
|
6396
|
-
}),
|
|
6397
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = u == null ? void 0 : u.alias) == null ? void 0 : f.toLowerCase());
|
|
6398
|
+
}), u = u || to.find((p) => {
|
|
6397
6399
|
var d, f;
|
|
6398
|
-
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f =
|
|
6399
|
-
}),
|
|
6400
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = c == null ? void 0 : c.alias) == null ? void 0 : f.toLowerCase());
|
|
6401
|
+
}), c = c || eo[0], u = u || to[0], r.push((o = c.models) != null && o.includes(n) ? n : c.model), s.push((i = u.models) != null && i.includes(n) ? n : u.model);
|
|
6400
6402
|
}
|
|
6401
6403
|
return {
|
|
6402
6404
|
weatherModels: r.join(","),
|
|
@@ -6413,8 +6415,8 @@ class Ca {
|
|
|
6413
6415
|
}), a;
|
|
6414
6416
|
}
|
|
6415
6417
|
static pickHourly(e, o) {
|
|
6416
|
-
var i, a, r, s,
|
|
6417
|
-
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((
|
|
6418
|
+
var i, a, r, s, n, c, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
|
|
6419
|
+
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((n = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : n.at(0), "h"), re = _e.clone().add((p = (u = (c = ge == null ? void 0 : ge[0]) == null ? void 0 : c.hourly) == null ? void 0 : u.time) == null ? void 0 : p.at(-1), "h"), Re = [];
|
|
6418
6420
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6419
6421
|
const R = he.utc().diff(J, "h", !1);
|
|
6420
6422
|
let fe, Ce;
|
|
@@ -6500,17 +6502,17 @@ class Ca {
|
|
|
6500
6502
|
return Re;
|
|
6501
6503
|
}
|
|
6502
6504
|
static toLegacy(e) {
|
|
6503
|
-
var o, i, a, r, s,
|
|
6505
|
+
var o, i, a, r, s, n, c, u, p, d;
|
|
6504
6506
|
return {
|
|
6505
6507
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
6506
6508
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
6507
6509
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
6508
6510
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
6509
6511
|
gusts: {
|
|
6510
|
-
kts: (
|
|
6512
|
+
kts: (n = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : n.gusts
|
|
6511
6513
|
},
|
|
6512
|
-
precip: (
|
|
6513
|
-
code: (
|
|
6514
|
+
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
6515
|
+
code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
|
|
6514
6516
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
6515
6517
|
url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
|
|
6516
6518
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -6522,8 +6524,8 @@ class Ca {
|
|
|
6522
6524
|
};
|
|
6523
6525
|
}
|
|
6524
6526
|
static pickDaily(e, o) {
|
|
6525
|
-
var i, a, r, s,
|
|
6526
|
-
const Ae = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((
|
|
6527
|
+
var i, a, r, s, n, c, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
|
|
6528
|
+
const Ae = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((c = (n = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : n.time) == null ? void 0 : c.at(-1)), Pe = [];
|
|
6527
6529
|
if (Ae.isBetween(te, je, "millisecond", "[]")) {
|
|
6528
6530
|
let he, ge;
|
|
6529
6531
|
const W = Ae.diff(te, "d", !1);
|
|
@@ -6531,7 +6533,7 @@ class Ca {
|
|
|
6531
6533
|
for (const _e of ye) {
|
|
6532
6534
|
const J = _e.daily;
|
|
6533
6535
|
he = {
|
|
6534
|
-
code: (
|
|
6536
|
+
code: (u = J.weather_code) == null ? void 0 : u.at(W),
|
|
6535
6537
|
temp: {
|
|
6536
6538
|
max: (p = J.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
6537
6539
|
min: (d = J.temperature_2m_min) == null ? void 0 : d.at(W),
|
|
@@ -7140,26 +7142,27 @@ const Nl = {
|
|
|
7140
7142
|
},
|
|
7141
7143
|
methods: {
|
|
7142
7144
|
handleMenuToggle() {
|
|
7143
|
-
|
|
7145
|
+
var t, e, o;
|
|
7146
|
+
this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (o = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || o.handleToggle("tropical", !1));
|
|
7144
7147
|
},
|
|
7145
7148
|
async fetchTropicals() {
|
|
7146
7149
|
var a, r, s;
|
|
7147
7150
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7148
|
-
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((
|
|
7151
|
+
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((n) => n.key === "tropicals")) == null ? void 0 : a.weight;
|
|
7149
7152
|
if (i > 0) {
|
|
7150
|
-
const
|
|
7153
|
+
const n = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Be.get(`${n}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
7151
7154
|
headers: {
|
|
7152
7155
|
Authorization: this.token || this.defaultMeteoToken
|
|
7153
7156
|
}
|
|
7154
7157
|
});
|
|
7155
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
7156
|
-
const
|
|
7157
|
-
await Be.get(
|
|
7158
|
+
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = c == null ? void 0 : c.data) == null ? void 0 : r.code) === 0) {
|
|
7159
|
+
const u = (s = c == null ? void 0 : c.data) == null ? void 0 : s.data;
|
|
7160
|
+
await Be.get(u.tropicals, {
|
|
7158
7161
|
headers: {
|
|
7159
7162
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7160
7163
|
key: "tropicals"
|
|
7161
7164
|
},
|
|
7162
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7165
|
+
responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
|
|
7163
7166
|
}).then((p) => {
|
|
7164
7167
|
var z, x, S;
|
|
7165
7168
|
const d = Pa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
|
|
@@ -7168,7 +7171,7 @@ const Nl = {
|
|
|
7168
7171
|
active: !0,
|
|
7169
7172
|
cached: !0,
|
|
7170
7173
|
type: "json",
|
|
7171
|
-
etime:
|
|
7174
|
+
etime: c.data.etime,
|
|
7172
7175
|
version: Math.random() + 1
|
|
7173
7176
|
}, this.handleInit());
|
|
7174
7177
|
}).catch((p) => {
|
|
@@ -7181,12 +7184,12 @@ const Nl = {
|
|
|
7181
7184
|
handleRefresh() {
|
|
7182
7185
|
var e, o;
|
|
7183
7186
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
7184
|
-
var a, r, s,
|
|
7185
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (
|
|
7187
|
+
var a, r, s, n;
|
|
7188
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (n = (s = D(i.properties.date)) == null ? void 0 : s.utcOffset(this.timeZone)) == null ? void 0 : n.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
7186
7189
|
}), this.handleInit();
|
|
7187
7190
|
},
|
|
7188
7191
|
handleInit() {
|
|
7189
|
-
var t, e, o, i;
|
|
7192
|
+
var t, e, o, i, a, r, s, n, c, u;
|
|
7190
7193
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
7191
7194
|
"click",
|
|
7192
7195
|
[
|
|
@@ -7200,10 +7203,10 @@ const Nl = {
|
|
|
7200
7203
|
this.historyPointLabelLayer
|
|
7201
7204
|
],
|
|
7202
7205
|
this.handleClick
|
|
7203
|
-
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? this.$parent.$refs.idmBottomBar.handleToggle("tropical", !0) : this.$parent.$refs.idmBottomBar.handleToggle("tropical", !1);
|
|
7206
|
+
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (u = (c = (n = this.$parent) == null ? void 0 : n.$refs) == null ? void 0 : c.idmBottomBar) == null || u.handleToggle("tropical", !1);
|
|
7204
7207
|
},
|
|
7205
7208
|
handleRender() {
|
|
7206
|
-
var t, e, o, i, a, r, s,
|
|
7209
|
+
var t, e, o, i, a, r, s, n, c, u;
|
|
7207
7210
|
if (!this.map)
|
|
7208
7211
|
setTimeout(() => {
|
|
7209
7212
|
this.handleRender();
|
|
@@ -7309,9 +7312,9 @@ const Nl = {
|
|
|
7309
7312
|
],
|
|
7310
7313
|
"text-halo-width": 4
|
|
7311
7314
|
}
|
|
7312
|
-
}), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((
|
|
7315
|
+
}), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] update elapsed: ", z, ", total: ", f += z)) : (this.map.addSource(this.clusterSource, {
|
|
7313
7316
|
type: "geojson",
|
|
7314
|
-
data: (
|
|
7317
|
+
data: (c = this.tropicals) != null && c.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
7315
7318
|
// cluster: true,
|
|
7316
7319
|
// clusterRadius: 10, // 聚合半径
|
|
7317
7320
|
}), this.map.addLayer({
|
|
@@ -7450,7 +7453,7 @@ const Nl = {
|
|
|
7450
7453
|
), this.showTropicalsInfo = !1;
|
|
7451
7454
|
},
|
|
7452
7455
|
handleDateChange() {
|
|
7453
|
-
var t, e, o, i, a, r, s,
|
|
7456
|
+
var t, e, o, i, a, r, s, n, c, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q;
|
|
7454
7457
|
if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7455
7458
|
const le = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (le == null ? void 0 : le.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
|
|
7456
7459
|
pe.forEach((K) => {
|
|
@@ -7472,7 +7475,7 @@ const Nl = {
|
|
|
7472
7475
|
for (const K of de)
|
|
7473
7476
|
if (!K.properties.disabled) {
|
|
7474
7477
|
let ie = "#f44336";
|
|
7475
|
-
((
|
|
7478
|
+
((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((u = (c = K.properties) == null ? void 0 : c.wind) != null && u.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
7476
7479
|
const ue = `<svg t="1719918955501"
|
|
7477
7480
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7478
7481
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7496,20 +7499,20 @@ const Nl = {
|
|
|
7496
7499
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
7497
7500
|
},
|
|
7498
7501
|
handleClick(t) {
|
|
7499
|
-
var r, s,
|
|
7502
|
+
var r, s, n, c, u, p, d, f;
|
|
7500
7503
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7501
7504
|
(z) => {
|
|
7502
7505
|
var x;
|
|
7503
7506
|
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7504
7507
|
}
|
|
7505
|
-
), i = (
|
|
7508
|
+
), i = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
|
|
7506
7509
|
(z) => {
|
|
7507
7510
|
var x;
|
|
7508
7511
|
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7509
7512
|
}
|
|
7510
7513
|
);
|
|
7511
7514
|
this.activeTropicals = {
|
|
7512
|
-
name: (
|
|
7515
|
+
name: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.name,
|
|
7513
7516
|
forecasts: o.map((z) => z.properties),
|
|
7514
7517
|
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
7515
7518
|
showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
@@ -7518,14 +7521,14 @@ const Nl = {
|
|
|
7518
7521
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new we.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
7519
7522
|
},
|
|
7520
7523
|
handleForecastToggle(t) {
|
|
7521
|
-
var i, a, r, s,
|
|
7524
|
+
var i, a, r, s, n, c;
|
|
7522
7525
|
t.disabled = !t.disabled;
|
|
7523
7526
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
7524
|
-
o.forEach((
|
|
7525
|
-
|
|
7526
|
-
}), this.interpolateData.forEach((
|
|
7527
|
-
|
|
7528
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(E.featureCollection(o)), (
|
|
7527
|
+
o.forEach((u) => {
|
|
7528
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
7529
|
+
}), this.interpolateData.forEach((u) => {
|
|
7530
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
7531
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(E.featureCollection(o)), (c = (n = this.map) == null ? void 0 : n.getSource(this.clusterSource)) == null || c.setData(E.featureCollection(o)), this.handleDateChange();
|
|
7529
7532
|
},
|
|
7530
7533
|
handleStrikeProbability(t) {
|
|
7531
7534
|
this.$emit("tropicalProbability", t);
|
|
@@ -7569,8 +7572,8 @@ const Nl = {
|
|
|
7569
7572
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
7570
7573
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
7571
7574
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
7572
|
-
},
|
|
7573
|
-
e.push(
|
|
7575
|
+
}, n = this.handleComputeArc(o.geometry.coordinates, s, { ...o.properties, level: 10 });
|
|
7576
|
+
e.push(n);
|
|
7574
7577
|
}
|
|
7575
7578
|
return e;
|
|
7576
7579
|
},
|
|
@@ -7578,23 +7581,23 @@ const Nl = {
|
|
|
7578
7581
|
var r;
|
|
7579
7582
|
const i = [];
|
|
7580
7583
|
for (const s in e) {
|
|
7581
|
-
const
|
|
7582
|
-
let
|
|
7584
|
+
const n = e[s] ?? 0;
|
|
7585
|
+
let c;
|
|
7583
7586
|
switch (s) {
|
|
7584
7587
|
case "ne":
|
|
7585
|
-
|
|
7588
|
+
c = E.lineArc(t, n, 0, 90, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7586
7589
|
break;
|
|
7587
7590
|
case "se":
|
|
7588
|
-
|
|
7591
|
+
c = E.lineArc(t, n, 90, 180, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7589
7592
|
break;
|
|
7590
7593
|
case "sw":
|
|
7591
|
-
|
|
7594
|
+
c = E.lineArc(t, n, 180, 270, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7592
7595
|
break;
|
|
7593
7596
|
case "nw":
|
|
7594
|
-
|
|
7597
|
+
c = E.lineArc(t, n, 270, 360, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7595
7598
|
break;
|
|
7596
7599
|
}
|
|
7597
|
-
i.push(...(r =
|
|
7600
|
+
i.push(...(r = c == null ? void 0 : c.geometry) == null ? void 0 : r.coordinates);
|
|
7598
7601
|
}
|
|
7599
7602
|
const a = E.lineString(i);
|
|
7600
7603
|
return E.lineToPolygon(a, { properties: o });
|
|
@@ -7614,17 +7617,17 @@ const Nl = {
|
|
|
7614
7617
|
style: { height: "80px" }
|
|
7615
7618
|
}, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
7616
7619
|
function is(t, e, o, i, a, r) {
|
|
7617
|
-
const s = w("VBtn"),
|
|
7620
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardText"), u = w("VDivider"), p = w("VCardActions"), d = w("VCard");
|
|
7618
7621
|
return b(), T("div", Fl, [
|
|
7619
7622
|
l("div", {
|
|
7620
7623
|
class: "menu-bar-box transition pa-1",
|
|
7621
7624
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
7622
7625
|
}, [
|
|
7623
|
-
m(
|
|
7626
|
+
m(n, {
|
|
7624
7627
|
text: t.$t("tropical.tropicals"),
|
|
7625
7628
|
location: "left"
|
|
7626
7629
|
}, {
|
|
7627
|
-
activator:
|
|
7630
|
+
activator: g(({ props: f }) => [
|
|
7628
7631
|
m(s, B(f, {
|
|
7629
7632
|
"min-width": "32",
|
|
7630
7633
|
width: "32",
|
|
@@ -7632,7 +7635,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7632
7635
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7633
7636
|
onClick: r.handleMenuToggle
|
|
7634
7637
|
}), {
|
|
7635
|
-
default:
|
|
7638
|
+
default: g(() => e[4] || (e[4] = [
|
|
7636
7639
|
l("i", { class: "iconfont icon-a-Tropicalcyclone text-h4" }, null, -1)
|
|
7637
7640
|
])),
|
|
7638
7641
|
_: 2,
|
|
@@ -7647,9 +7650,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7647
7650
|
width: "400",
|
|
7648
7651
|
elevation: "16"
|
|
7649
7652
|
}, {
|
|
7650
|
-
default:
|
|
7651
|
-
m(
|
|
7652
|
-
default:
|
|
7653
|
+
default: g(() => [
|
|
7654
|
+
m(c, null, {
|
|
7655
|
+
default: g(() => {
|
|
7653
7656
|
var f, z, x, S, C, N, M, L, v, _;
|
|
7654
7657
|
return [
|
|
7655
7658
|
l("div", Wl, [
|
|
@@ -7672,9 +7675,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7672
7675
|
}),
|
|
7673
7676
|
_: 1
|
|
7674
7677
|
}),
|
|
7675
|
-
m(
|
|
7676
|
-
m(
|
|
7677
|
-
default:
|
|
7678
|
+
m(u),
|
|
7679
|
+
m(c, { class: "text-body-1" }, {
|
|
7680
|
+
default: g(() => {
|
|
7678
7681
|
var f, z, x, S, C, N, M, L, v;
|
|
7679
7682
|
return [
|
|
7680
7683
|
l("div", Yl, [
|
|
@@ -7712,7 +7715,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7712
7715
|
class: Ge(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
|
|
7713
7716
|
onClick: (k) => r.handleForecastToggle(_)
|
|
7714
7717
|
}, {
|
|
7715
|
-
default:
|
|
7718
|
+
default: g(() => [
|
|
7716
7719
|
G(y(_.model), 1)
|
|
7717
7720
|
]),
|
|
7718
7721
|
_: 2
|
|
@@ -7723,9 +7726,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7723
7726
|
}),
|
|
7724
7727
|
_: 1
|
|
7725
7728
|
}),
|
|
7726
|
-
m(
|
|
7729
|
+
m(u),
|
|
7727
7730
|
m(p, { class: "d-flex justify-space-between" }, {
|
|
7728
|
-
default:
|
|
7731
|
+
default: g(() => [
|
|
7729
7732
|
m(s, {
|
|
7730
7733
|
density: "compact",
|
|
7731
7734
|
"prepend-icon": "",
|
|
@@ -7734,10 +7737,10 @@ function is(t, e, o, i, a, r) {
|
|
|
7734
7737
|
class: "text-none text-body-1",
|
|
7735
7738
|
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
7736
7739
|
}, {
|
|
7737
|
-
prepend:
|
|
7740
|
+
prepend: g(() => e[11] || (e[11] = [
|
|
7738
7741
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7739
7742
|
])),
|
|
7740
|
-
default:
|
|
7743
|
+
default: g(() => [
|
|
7741
7744
|
e[12] || (e[12] = G(" Legend ", -1))
|
|
7742
7745
|
]),
|
|
7743
7746
|
_: 1,
|
|
@@ -7751,7 +7754,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7751
7754
|
class: "text-none text-body-1",
|
|
7752
7755
|
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
7753
7756
|
}, {
|
|
7754
|
-
default:
|
|
7757
|
+
default: g(() => e[13] || (e[13] = [
|
|
7755
7758
|
G("Notify", -1)
|
|
7756
7759
|
])),
|
|
7757
7760
|
_: 1,
|
|
@@ -7764,7 +7767,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7764
7767
|
class: "text-none text-body-1",
|
|
7765
7768
|
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
7766
7769
|
}, {
|
|
7767
|
-
default:
|
|
7770
|
+
default: g(() => e[14] || (e[14] = [
|
|
7768
7771
|
G("View Report", -1)
|
|
7769
7772
|
])),
|
|
7770
7773
|
_: 1,
|
|
@@ -7782,9 +7785,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7782
7785
|
width: "400",
|
|
7783
7786
|
elevation: "16"
|
|
7784
7787
|
}, {
|
|
7785
|
-
default:
|
|
7786
|
-
m(
|
|
7787
|
-
default:
|
|
7788
|
+
default: g(() => [
|
|
7789
|
+
m(c, null, {
|
|
7790
|
+
default: g(() => [
|
|
7788
7791
|
He(l("div", os, e[15] || (e[15] = [
|
|
7789
7792
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7790
7793
|
l("div", { class: "icon td" }),
|
|
@@ -8008,7 +8011,7 @@ const rs = {
|
|
|
8008
8011
|
style: { height: "56px" }
|
|
8009
8012
|
};
|
|
8010
8013
|
function ms(t, e, o, i, a, r) {
|
|
8011
|
-
const s = w("VBtn"),
|
|
8014
|
+
const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), u = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
|
|
8012
8015
|
return b(), T("div", ls, [
|
|
8013
8016
|
m(s, {
|
|
8014
8017
|
text: "",
|
|
@@ -8016,7 +8019,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8016
8019
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
8017
8020
|
onClick: r.handleOpenDatePicker
|
|
8018
8021
|
}, {
|
|
8019
|
-
default:
|
|
8022
|
+
default: g(() => [
|
|
8020
8023
|
G(y(a.currentDateTime) + " | UTC " + y(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
8021
8024
|
]),
|
|
8022
8025
|
_: 1
|
|
@@ -8025,11 +8028,11 @@ function ms(t, e, o, i, a, r) {
|
|
|
8025
8028
|
key: 0,
|
|
8026
8029
|
class: "card-box d-flex flex-column"
|
|
8027
8030
|
}, {
|
|
8028
|
-
default:
|
|
8031
|
+
default: g(() => [
|
|
8029
8032
|
m(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
8030
|
-
default:
|
|
8033
|
+
default: g(() => [
|
|
8031
8034
|
l("div", ss, [
|
|
8032
|
-
m(
|
|
8035
|
+
m(n, {
|
|
8033
8036
|
modelValue: a.currentDate,
|
|
8034
8037
|
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
|
|
8035
8038
|
min: a.dateRange[0],
|
|
@@ -8043,14 +8046,14 @@ function ms(t, e, o, i, a, r) {
|
|
|
8043
8046
|
"onUpdate:month": r.handleUpdateMonth
|
|
8044
8047
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
8045
8048
|
]),
|
|
8046
|
-
m(
|
|
8049
|
+
m(c, {
|
|
8047
8050
|
class: "h-100",
|
|
8048
8051
|
vertical: ""
|
|
8049
8052
|
}),
|
|
8050
8053
|
l("div", ns, [
|
|
8051
8054
|
l("div", cs, y(a.currentTime), 1),
|
|
8052
8055
|
m(d, { class: "pa-0 flex-1-1-0" }, {
|
|
8053
|
-
default:
|
|
8056
|
+
default: g(() => [
|
|
8054
8057
|
(b(!0), T(ke, null, Le(r.hourOptions, (S, C) => (b(), j(p, {
|
|
8055
8058
|
key: C,
|
|
8056
8059
|
value: S,
|
|
@@ -8060,12 +8063,12 @@ function ms(t, e, o, i, a, r) {
|
|
|
8060
8063
|
height: "26",
|
|
8061
8064
|
"min-height": "26"
|
|
8062
8065
|
}, {
|
|
8063
|
-
default:
|
|
8064
|
-
m(
|
|
8066
|
+
default: g(() => [
|
|
8067
|
+
m(u, {
|
|
8065
8068
|
class: "text-body-2 text-center",
|
|
8066
8069
|
onClick: (N) => a.currentTime = S
|
|
8067
8070
|
}, {
|
|
8068
|
-
default:
|
|
8071
|
+
default: g(() => [
|
|
8069
8072
|
G(y(S), 1)
|
|
8070
8073
|
]),
|
|
8071
8074
|
_: 2
|
|
@@ -8080,19 +8083,19 @@ function ms(t, e, o, i, a, r) {
|
|
|
8080
8083
|
]),
|
|
8081
8084
|
_: 1
|
|
8082
8085
|
}),
|
|
8083
|
-
m(
|
|
8086
|
+
m(c),
|
|
8084
8087
|
m(z, {
|
|
8085
8088
|
class: "justify-end pa-0 pr-4",
|
|
8086
8089
|
style: { height: "50px" }
|
|
8087
8090
|
}, {
|
|
8088
|
-
default:
|
|
8091
|
+
default: g(() => [
|
|
8089
8092
|
m(s, {
|
|
8090
8093
|
size: "small",
|
|
8091
8094
|
variant: "tonal",
|
|
8092
8095
|
class: "text-none",
|
|
8093
8096
|
onClick: r.handleCancelDate
|
|
8094
8097
|
}, {
|
|
8095
|
-
default:
|
|
8098
|
+
default: g(() => e[1] || (e[1] = [
|
|
8096
8099
|
G("Cancel", -1)
|
|
8097
8100
|
])),
|
|
8098
8101
|
_: 1,
|
|
@@ -8105,7 +8108,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8105
8108
|
class: "text-none",
|
|
8106
8109
|
onClick: r.handleConfirmDate
|
|
8107
8110
|
}, {
|
|
8108
|
-
default:
|
|
8111
|
+
default: g(() => e[2] || (e[2] = [
|
|
8109
8112
|
G("Confirm", -1)
|
|
8110
8113
|
])),
|
|
8111
8114
|
_: 1,
|
|
@@ -8354,10 +8357,10 @@ const hs = {
|
|
|
8354
8357
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
8355
8358
|
},
|
|
8356
8359
|
initTableData(t) {
|
|
8357
|
-
var o, i, a, r, s,
|
|
8360
|
+
var o, i, a, r, s, n, c, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
|
|
8358
8361
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
8359
8362
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
8360
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((
|
|
8363
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((u = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
8361
8364
|
},
|
|
8362
8365
|
handleBind() {
|
|
8363
8366
|
var t, e;
|
|
@@ -8427,17 +8430,17 @@ const hs = {
|
|
|
8427
8430
|
"aria-hidden": "true"
|
|
8428
8431
|
}, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
|
|
8429
8432
|
function Cs(t, e, o, i, a, r) {
|
|
8430
|
-
const s = w("VBtn"),
|
|
8433
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), u = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
|
|
8431
8434
|
return b(), T("div", ds, [
|
|
8432
8435
|
l("div", {
|
|
8433
8436
|
class: "menu-bar-box transition pa-1",
|
|
8434
8437
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
8435
8438
|
}, [
|
|
8436
|
-
m(
|
|
8439
|
+
m(n, {
|
|
8437
8440
|
text: t.$t("spot.spotsMeteo"),
|
|
8438
8441
|
location: "left"
|
|
8439
8442
|
}, {
|
|
8440
|
-
activator:
|
|
8443
|
+
activator: g(({ props: v }) => [
|
|
8441
8444
|
m(s, B(v, {
|
|
8442
8445
|
"min-width": "32",
|
|
8443
8446
|
width: "32",
|
|
@@ -8445,7 +8448,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8445
8448
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
8446
8449
|
onClick: r.handleMenuToggle
|
|
8447
8450
|
}), {
|
|
8448
|
-
default:
|
|
8451
|
+
default: g(() => e[8] || (e[8] = [
|
|
8449
8452
|
l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
8450
8453
|
])),
|
|
8451
8454
|
_: 2,
|
|
@@ -8460,9 +8463,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8460
8463
|
class: "spot-form-card",
|
|
8461
8464
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8462
8465
|
}, {
|
|
8463
|
-
default:
|
|
8464
|
-
m(
|
|
8465
|
-
default:
|
|
8466
|
+
default: g(() => [
|
|
8467
|
+
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8468
|
+
default: g(() => [
|
|
8466
8469
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
8467
8470
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
8468
8471
|
], -1)),
|
|
@@ -8473,7 +8476,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8473
8476
|
class: "mr-n2",
|
|
8474
8477
|
onClick: r.handleCloseForm
|
|
8475
8478
|
}, {
|
|
8476
|
-
default:
|
|
8479
|
+
default: g(() => e[9] || (e[9] = [
|
|
8477
8480
|
l("i", {
|
|
8478
8481
|
class: "iconfont icon-close",
|
|
8479
8482
|
style: { "font-size": "20px" }
|
|
@@ -8486,16 +8489,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8486
8489
|
_: 1,
|
|
8487
8490
|
__: [10]
|
|
8488
8491
|
}),
|
|
8489
|
-
m(
|
|
8492
|
+
m(u),
|
|
8490
8493
|
m(N, { class: "text-body-1 py-1" }, {
|
|
8491
|
-
default:
|
|
8494
|
+
default: g(() => [
|
|
8492
8495
|
m(C, {
|
|
8493
8496
|
ref: "spotForm",
|
|
8494
8497
|
autocomplete: "off",
|
|
8495
8498
|
class: "form-box",
|
|
8496
8499
|
onSubmit: Aa(r.submitForm, ["prevent"])
|
|
8497
8500
|
}, {
|
|
8498
|
-
default:
|
|
8501
|
+
default: g(() => [
|
|
8499
8502
|
l("div", ps, [
|
|
8500
8503
|
(b(), T("svg", us, [
|
|
8501
8504
|
l("use", {
|
|
@@ -8505,12 +8508,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8505
8508
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8506
8509
|
]),
|
|
8507
8510
|
m(f, { class: "ma-0" }, {
|
|
8508
|
-
default:
|
|
8511
|
+
default: g(() => [
|
|
8509
8512
|
m(d, {
|
|
8510
8513
|
cols: "4",
|
|
8511
8514
|
class: "pa-0 d-flex"
|
|
8512
8515
|
}, {
|
|
8513
|
-
default:
|
|
8516
|
+
default: g(() => [
|
|
8514
8517
|
m(p, {
|
|
8515
8518
|
modelValue: a.form.lngDegree,
|
|
8516
8519
|
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
|
|
@@ -8529,7 +8532,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8529
8532
|
cols: "6",
|
|
8530
8533
|
class: "pa-0 d-flex"
|
|
8531
8534
|
}, {
|
|
8532
|
-
default:
|
|
8535
|
+
default: g(() => [
|
|
8533
8536
|
m(p, {
|
|
8534
8537
|
modelValue: a.form.lngMinute,
|
|
8535
8538
|
"onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
|
|
@@ -8549,7 +8552,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8549
8552
|
cols: "2",
|
|
8550
8553
|
class: "pa-0"
|
|
8551
8554
|
}, {
|
|
8552
|
-
default:
|
|
8555
|
+
default: g(() => [
|
|
8553
8556
|
m(s, {
|
|
8554
8557
|
variant: "outlined",
|
|
8555
8558
|
density: "compact",
|
|
@@ -8560,7 +8563,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8560
8563
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8561
8564
|
onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8562
8565
|
}, {
|
|
8563
|
-
default:
|
|
8566
|
+
default: g(() => [
|
|
8564
8567
|
G(y(a.form.lngDirection), 1)
|
|
8565
8568
|
]),
|
|
8566
8569
|
_: 1
|
|
@@ -8580,12 +8583,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8580
8583
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8581
8584
|
]),
|
|
8582
8585
|
m(f, { class: "ma-0" }, {
|
|
8583
|
-
default:
|
|
8586
|
+
default: g(() => [
|
|
8584
8587
|
m(d, {
|
|
8585
8588
|
cols: "4",
|
|
8586
8589
|
class: "pa-0 d-flex"
|
|
8587
8590
|
}, {
|
|
8588
|
-
default:
|
|
8591
|
+
default: g(() => [
|
|
8589
8592
|
m(p, {
|
|
8590
8593
|
modelValue: a.form.latDegree,
|
|
8591
8594
|
"onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
|
|
@@ -8607,7 +8610,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8607
8610
|
cols: "6",
|
|
8608
8611
|
class: "pa-0 d-flex"
|
|
8609
8612
|
}, {
|
|
8610
|
-
default:
|
|
8613
|
+
default: g(() => [
|
|
8611
8614
|
m(p, {
|
|
8612
8615
|
modelValue: a.form.latMinute,
|
|
8613
8616
|
"onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
|
|
@@ -8627,7 +8630,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8627
8630
|
cols: "2",
|
|
8628
8631
|
class: "pa-0"
|
|
8629
8632
|
}, {
|
|
8630
|
-
default:
|
|
8633
|
+
default: g(() => [
|
|
8631
8634
|
m(s, {
|
|
8632
8635
|
variant: "outlined",
|
|
8633
8636
|
density: "compact",
|
|
@@ -8638,7 +8641,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8638
8641
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8639
8642
|
onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8640
8643
|
}, {
|
|
8641
|
-
default:
|
|
8644
|
+
default: g(() => [
|
|
8642
8645
|
G(y(a.form.latDirection), 1)
|
|
8643
8646
|
]),
|
|
8644
8647
|
_: 1
|
|
@@ -8658,12 +8661,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8658
8661
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8659
8662
|
]),
|
|
8660
8663
|
m(f, { class: "ma-0 mb-4" }, {
|
|
8661
|
-
default:
|
|
8664
|
+
default: g(() => [
|
|
8662
8665
|
m(d, {
|
|
8663
8666
|
cols: "12",
|
|
8664
8667
|
class: "pa-0"
|
|
8665
8668
|
}, {
|
|
8666
|
-
default:
|
|
8669
|
+
default: g(() => [
|
|
8667
8670
|
m(z, B({
|
|
8668
8671
|
"date-time": a.form.dateTime,
|
|
8669
8672
|
"time-zone": o.timeZone
|
|
@@ -8685,12 +8688,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8685
8688
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8686
8689
|
]),
|
|
8687
8690
|
m(f, { class: "ma-0 mb-2" }, {
|
|
8688
|
-
default:
|
|
8691
|
+
default: g(() => [
|
|
8689
8692
|
m(d, {
|
|
8690
8693
|
cols: "12",
|
|
8691
8694
|
class: "pa-0"
|
|
8692
8695
|
}, {
|
|
8693
|
-
default:
|
|
8696
|
+
default: g(() => [
|
|
8694
8697
|
m(x, {
|
|
8695
8698
|
modelValue: a.form.forecastModel,
|
|
8696
8699
|
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
@@ -8700,7 +8703,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8700
8703
|
density: "compact",
|
|
8701
8704
|
group: ""
|
|
8702
8705
|
}, {
|
|
8703
|
-
default:
|
|
8706
|
+
default: g(() => [
|
|
8704
8707
|
m(s, {
|
|
8705
8708
|
density: "compact",
|
|
8706
8709
|
height: "30",
|
|
@@ -8709,7 +8712,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8709
8712
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
8710
8713
|
"base-color": ""
|
|
8711
8714
|
}, {
|
|
8712
|
-
default:
|
|
8715
|
+
default: g(() => e[19] || (e[19] = [
|
|
8713
8716
|
G("NOAA", -1)
|
|
8714
8717
|
])),
|
|
8715
8718
|
_: 1,
|
|
@@ -8723,7 +8726,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8723
8726
|
"base-color": "",
|
|
8724
8727
|
value: "ECMWF"
|
|
8725
8728
|
}, {
|
|
8726
|
-
default:
|
|
8729
|
+
default: g(() => e[20] || (e[20] = [
|
|
8727
8730
|
G("ECMWF", -1)
|
|
8728
8731
|
])),
|
|
8729
8732
|
_: 1,
|
|
@@ -8738,16 +8741,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8738
8741
|
]),
|
|
8739
8742
|
_: 1
|
|
8740
8743
|
}),
|
|
8741
|
-
m(
|
|
8744
|
+
m(u),
|
|
8742
8745
|
m(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8743
|
-
default:
|
|
8746
|
+
default: g(() => [
|
|
8744
8747
|
m(s, {
|
|
8745
8748
|
size: "small",
|
|
8746
8749
|
variant: "outlined",
|
|
8747
8750
|
class: "text-none text-body-1",
|
|
8748
8751
|
onClick: r.handleCloseForm
|
|
8749
8752
|
}, {
|
|
8750
|
-
default:
|
|
8753
|
+
default: g(() => e[21] || (e[21] = [
|
|
8751
8754
|
G("Clear", -1)
|
|
8752
8755
|
])),
|
|
8753
8756
|
_: 1,
|
|
@@ -8761,7 +8764,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8761
8764
|
type: "submit",
|
|
8762
8765
|
class: "text-none text-body-1"
|
|
8763
8766
|
}, {
|
|
8764
|
-
default:
|
|
8767
|
+
default: g(() => e[22] || (e[22] = [
|
|
8765
8768
|
G("Confirm", -1)
|
|
8766
8769
|
])),
|
|
8767
8770
|
_: 1,
|
|
@@ -8784,9 +8787,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8784
8787
|
class: "spot-meteo",
|
|
8785
8788
|
style: { width: "490px", "z-index": "9" }
|
|
8786
8789
|
}, {
|
|
8787
|
-
default:
|
|
8788
|
-
m(
|
|
8789
|
-
default:
|
|
8790
|
+
default: g(() => [
|
|
8791
|
+
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8792
|
+
default: g(() => {
|
|
8790
8793
|
var v, _;
|
|
8791
8794
|
return [
|
|
8792
8795
|
l("div", Ls, [
|
|
@@ -8800,7 +8803,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8800
8803
|
class: "mr-n2",
|
|
8801
8804
|
onClick: r.handleCloseMeteo
|
|
8802
8805
|
}, {
|
|
8803
|
-
default:
|
|
8806
|
+
default: g(() => e[24] || (e[24] = [
|
|
8804
8807
|
l("i", {
|
|
8805
8808
|
class: "iconfont icon-close",
|
|
8806
8809
|
style: { "font-size": "20px" }
|
|
@@ -8813,16 +8816,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8813
8816
|
}),
|
|
8814
8817
|
_: 1
|
|
8815
8818
|
}),
|
|
8816
|
-
m(
|
|
8819
|
+
m(u),
|
|
8817
8820
|
m(N, { class: "text-body-1 ml-n8" }, {
|
|
8818
|
-
default:
|
|
8821
|
+
default: g(() => [
|
|
8819
8822
|
m(f, null, {
|
|
8820
|
-
default:
|
|
8823
|
+
default: g(() => [
|
|
8821
8824
|
m(d, {
|
|
8822
8825
|
cols: "3",
|
|
8823
8826
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8824
8827
|
}, {
|
|
8825
|
-
default:
|
|
8828
|
+
default: g(() => e[25] || (e[25] = [
|
|
8826
8829
|
G("Time", -1)
|
|
8827
8830
|
])),
|
|
8828
8831
|
_: 1,
|
|
@@ -8832,7 +8835,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8832
8835
|
cols: "9",
|
|
8833
8836
|
class: "pa-2 px-0"
|
|
8834
8837
|
}, {
|
|
8835
|
-
default:
|
|
8838
|
+
default: g(() => {
|
|
8836
8839
|
var v;
|
|
8837
8840
|
return [
|
|
8838
8841
|
G(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8844,12 +8847,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8844
8847
|
_: 1
|
|
8845
8848
|
}),
|
|
8846
8849
|
m(f, null, {
|
|
8847
|
-
default:
|
|
8850
|
+
default: g(() => [
|
|
8848
8851
|
m(d, {
|
|
8849
8852
|
cols: "3",
|
|
8850
8853
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8851
8854
|
}, {
|
|
8852
|
-
default:
|
|
8855
|
+
default: g(() => e[26] || (e[26] = [
|
|
8853
8856
|
G("LT", -1)
|
|
8854
8857
|
])),
|
|
8855
8858
|
_: 1,
|
|
@@ -8859,7 +8862,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8859
8862
|
cols: "9",
|
|
8860
8863
|
class: "pa-2 px-0"
|
|
8861
8864
|
}, {
|
|
8862
|
-
default:
|
|
8865
|
+
default: g(() => {
|
|
8863
8866
|
var v;
|
|
8864
8867
|
return [
|
|
8865
8868
|
G(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8871,12 +8874,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8871
8874
|
_: 1
|
|
8872
8875
|
}),
|
|
8873
8876
|
m(f, null, {
|
|
8874
|
-
default:
|
|
8877
|
+
default: g(() => [
|
|
8875
8878
|
m(d, {
|
|
8876
8879
|
cols: "3",
|
|
8877
8880
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8878
8881
|
}, {
|
|
8879
|
-
default:
|
|
8882
|
+
default: g(() => e[27] || (e[27] = [
|
|
8880
8883
|
G("Wind", -1)
|
|
8881
8884
|
])),
|
|
8882
8885
|
_: 1,
|
|
@@ -8886,7 +8889,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8886
8889
|
cols: "4",
|
|
8887
8890
|
class: "pa-2 px-0 text-left"
|
|
8888
8891
|
}, {
|
|
8889
|
-
default:
|
|
8892
|
+
default: g(() => [
|
|
8890
8893
|
G(y(a.currentHourData.windDir) + " / " + y(a.currentHourData.windSpeed) + "kts / BF" + y(a.currentHourData.windLevel), 1)
|
|
8891
8894
|
]),
|
|
8892
8895
|
_: 1
|
|
@@ -8895,7 +8898,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8895
8898
|
cols: "2",
|
|
8896
8899
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8897
8900
|
}, {
|
|
8898
|
-
default:
|
|
8901
|
+
default: g(() => e[28] || (e[28] = [
|
|
8899
8902
|
G("Sig Wave", -1)
|
|
8900
8903
|
])),
|
|
8901
8904
|
_: 1,
|
|
@@ -8905,7 +8908,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8905
8908
|
cols: "3",
|
|
8906
8909
|
class: "pa-2 px-0 text-left"
|
|
8907
8910
|
}, {
|
|
8908
|
-
default:
|
|
8911
|
+
default: g(() => [
|
|
8909
8912
|
G(y(a.currentHourData.sigwaveDir) + " / " + y(a.currentHourData.sigwaveHeight) + "m / " + y(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8910
8913
|
]),
|
|
8911
8914
|
_: 1
|
|
@@ -8914,12 +8917,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8914
8917
|
_: 1
|
|
8915
8918
|
}),
|
|
8916
8919
|
m(f, null, {
|
|
8917
|
-
default:
|
|
8920
|
+
default: g(() => [
|
|
8918
8921
|
m(d, {
|
|
8919
8922
|
cols: "3",
|
|
8920
8923
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8921
8924
|
}, {
|
|
8922
|
-
default:
|
|
8925
|
+
default: g(() => e[29] || (e[29] = [
|
|
8923
8926
|
G("Wind Wave", -1)
|
|
8924
8927
|
])),
|
|
8925
8928
|
_: 1,
|
|
@@ -8929,7 +8932,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8929
8932
|
cols: "4",
|
|
8930
8933
|
class: "pa-2 px-0 text-left"
|
|
8931
8934
|
}, {
|
|
8932
|
-
default:
|
|
8935
|
+
default: g(() => [
|
|
8933
8936
|
G(y(a.currentHourData.windwaveDir) + " / " + y(a.currentHourData.windwaveHeight) + "m / " + y(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8934
8937
|
]),
|
|
8935
8938
|
_: 1
|
|
@@ -8938,7 +8941,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8938
8941
|
cols: "2",
|
|
8939
8942
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8940
8943
|
}, {
|
|
8941
|
-
default:
|
|
8944
|
+
default: g(() => e[30] || (e[30] = [
|
|
8942
8945
|
G("Swell", -1)
|
|
8943
8946
|
])),
|
|
8944
8947
|
_: 1,
|
|
@@ -8948,7 +8951,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8948
8951
|
cols: "3",
|
|
8949
8952
|
class: "pa-2 px-0 text-left"
|
|
8950
8953
|
}, {
|
|
8951
|
-
default:
|
|
8954
|
+
default: g(() => [
|
|
8952
8955
|
G(y(a.currentHourData.swellDir) + " / " + y(a.currentHourData.swellHeight) + "m / " + y(a.currentHourData.swellPeriod) + "s", 1)
|
|
8953
8956
|
]),
|
|
8954
8957
|
_: 1
|
|
@@ -8957,12 +8960,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8957
8960
|
_: 1
|
|
8958
8961
|
}),
|
|
8959
8962
|
m(f, null, {
|
|
8960
|
-
default:
|
|
8963
|
+
default: g(() => [
|
|
8961
8964
|
m(d, {
|
|
8962
8965
|
cols: "3",
|
|
8963
8966
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8964
8967
|
}, {
|
|
8965
|
-
default:
|
|
8968
|
+
default: g(() => e[31] || (e[31] = [
|
|
8966
8969
|
G("Current", -1)
|
|
8967
8970
|
])),
|
|
8968
8971
|
_: 1,
|
|
@@ -8972,7 +8975,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8972
8975
|
cols: "4",
|
|
8973
8976
|
class: "pa-2 px-0 text-left"
|
|
8974
8977
|
}, {
|
|
8975
|
-
default:
|
|
8978
|
+
default: g(() => [
|
|
8976
8979
|
G(y(a.currentHourData.currentDir) + " / " + y(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8977
8980
|
]),
|
|
8978
8981
|
_: 1
|
|
@@ -8981,7 +8984,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8981
8984
|
cols: "2",
|
|
8982
8985
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8983
8986
|
}, {
|
|
8984
|
-
default:
|
|
8987
|
+
default: g(() => e[32] || (e[32] = [
|
|
8985
8988
|
G("Visibility", -1)
|
|
8986
8989
|
])),
|
|
8987
8990
|
_: 1,
|
|
@@ -8991,7 +8994,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8991
8994
|
cols: "3",
|
|
8992
8995
|
class: "pa-2 px-0 text-left"
|
|
8993
8996
|
}, {
|
|
8994
|
-
default:
|
|
8997
|
+
default: g(() => [
|
|
8995
8998
|
G(y(a.currentHourData.visibility) + " nm", 1)
|
|
8996
8999
|
]),
|
|
8997
9000
|
_: 1
|
|
@@ -9002,9 +9005,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9002
9005
|
]),
|
|
9003
9006
|
_: 1
|
|
9004
9007
|
}),
|
|
9005
|
-
m(
|
|
9008
|
+
m(u),
|
|
9006
9009
|
m(S, { class: "d-flex justify-space-between align-center" }, {
|
|
9007
|
-
default:
|
|
9010
|
+
default: g(() => [
|
|
9008
9011
|
m(s, {
|
|
9009
9012
|
vvariant: "text",
|
|
9010
9013
|
density: "compact",
|
|
@@ -9012,10 +9015,10 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9012
9015
|
class: "text-none text-body-1",
|
|
9013
9016
|
onClick: r.handleFollow
|
|
9014
9017
|
}, {
|
|
9015
|
-
prepend:
|
|
9018
|
+
prepend: g(() => [
|
|
9016
9019
|
m(L, { color: "warning" })
|
|
9017
9020
|
]),
|
|
9018
|
-
default:
|
|
9021
|
+
default: g(() => [
|
|
9019
9022
|
e[33] || (e[33] = G(" Follow", -1))
|
|
9020
9023
|
]),
|
|
9021
9024
|
_: 1,
|
|
@@ -9028,7 +9031,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9028
9031
|
class: "text-none text-body-1",
|
|
9029
9032
|
onClick: r.handleMeteoMore
|
|
9030
9033
|
}, {
|
|
9031
|
-
default:
|
|
9034
|
+
default: g(() => e[34] || (e[34] = [
|
|
9032
9035
|
G("Forecast", -1)
|
|
9033
9036
|
])),
|
|
9034
9037
|
_: 1,
|
|
@@ -9135,14 +9138,14 @@ const Ms = {
|
|
|
9135
9138
|
}
|
|
9136
9139
|
},
|
|
9137
9140
|
handleDrag(t) {
|
|
9138
|
-
var o, i, a, r, s,
|
|
9141
|
+
var o, i, a, r, s, n, c, u, p, d;
|
|
9139
9142
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9140
9143
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9141
9144
|
const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
9142
9145
|
this.pointMarkers[f.id].filter((C) => {
|
|
9143
9146
|
var N;
|
|
9144
9147
|
return ((N = C._element) == null ? void 0 : N.id) === e;
|
|
9145
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
9148
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
|
|
9146
9149
|
let x;
|
|
9147
9150
|
f.features.forEach((C, N) => {
|
|
9148
9151
|
if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
|
|
@@ -9154,22 +9157,22 @@ const Ms = {
|
|
|
9154
9157
|
this.handleTmpPointUpdate(
|
|
9155
9158
|
f,
|
|
9156
9159
|
S[x - 1],
|
|
9157
|
-
{ lng: (
|
|
9160
|
+
{ lng: (u = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : u.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
|
|
9158
9161
|
x === S.length - 1 ? void 0 : S[x + 1]
|
|
9159
9162
|
);
|
|
9160
9163
|
}
|
|
9161
9164
|
},
|
|
9162
9165
|
handleDragEnd(t) {
|
|
9163
|
-
var o, i, a, r, s,
|
|
9166
|
+
var o, i, a, r, s, n, c, u, p, d;
|
|
9164
9167
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9165
9168
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9166
9169
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
9167
9170
|
this.pointMarkers[f.id].filter((S) => {
|
|
9168
9171
|
var C;
|
|
9169
9172
|
return ((C = S._element) == null ? void 0 : C.id) === e;
|
|
9170
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
9173
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
|
|
9171
9174
|
const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
9172
|
-
x.geometry.coordinates = [(
|
|
9175
|
+
x.geometry.coordinates = [(u = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : u.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
9173
9176
|
}
|
|
9174
9177
|
},
|
|
9175
9178
|
handleContextmenu(t) {
|
|
@@ -9177,27 +9180,27 @@ const Ms = {
|
|
|
9177
9180
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
9178
9181
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
9179
9182
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9180
|
-
const
|
|
9181
|
-
if (
|
|
9182
|
-
const
|
|
9183
|
-
|
|
9183
|
+
const n = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
9184
|
+
if (n.length > 2 && n.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
9185
|
+
const u = document.createElement("div");
|
|
9186
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new we.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
9184
9187
|
}
|
|
9185
9188
|
}
|
|
9186
9189
|
},
|
|
9187
9190
|
handleClick(t) {
|
|
9188
|
-
var o, i, a, r, s,
|
|
9191
|
+
var o, i, a, r, s, n;
|
|
9189
9192
|
(o = this.contextmenu) == null || o.remove();
|
|
9190
9193
|
const e = t.originalEvent.target.className;
|
|
9191
9194
|
if (e === "marker-close") {
|
|
9192
|
-
const
|
|
9193
|
-
|
|
9195
|
+
const c = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((p) => p.id === c)[0];
|
|
9196
|
+
u && this.handleClear(u, !0), this.geojson = this.geojson.filter((p) => p.id !== c), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
|
|
9194
9197
|
} else if (e === "del-point") {
|
|
9195
|
-
const
|
|
9196
|
-
|
|
9198
|
+
const c = (n = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : n.split("-"), u = this.geojson.filter((p) => p.id === c[0])[0];
|
|
9199
|
+
u.features = u.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== c[1]), this.handlePointUpdate(u);
|
|
9197
9200
|
} else if (e !== "marker-label" && this.toggle) {
|
|
9198
|
-
let
|
|
9199
|
-
|
|
9200
|
-
const
|
|
9201
|
+
let c = this.geojson.at(-1);
|
|
9202
|
+
c || (c = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((p) => p.geometry.type === "Point");
|
|
9203
|
+
const u = E.feature(
|
|
9201
9204
|
{
|
|
9202
9205
|
type: "Point",
|
|
9203
9206
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -9208,7 +9211,7 @@ const Ms = {
|
|
|
9208
9211
|
sumLabel: "Start"
|
|
9209
9212
|
}
|
|
9210
9213
|
);
|
|
9211
|
-
|
|
9214
|
+
c.features.push(u), this.handlePointUpdate(c);
|
|
9212
9215
|
}
|
|
9213
9216
|
},
|
|
9214
9217
|
handlePointUpdate(t) {
|
|
@@ -9217,14 +9220,14 @@ const Ms = {
|
|
|
9217
9220
|
let o = 0;
|
|
9218
9221
|
const i = [];
|
|
9219
9222
|
for (let a = 1; a < e.length; a++) {
|
|
9220
|
-
const r = e[a - 1], s = e[a],
|
|
9223
|
+
const r = e[a - 1], s = e[a], n = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(c, u, n.mode === "RL", 4), d = Fe.calculateBearing(c, u, n.mode === "RL", 2);
|
|
9221
9224
|
o = oe.roundPrecision(o + p, 4);
|
|
9222
9225
|
let f;
|
|
9223
|
-
|
|
9226
|
+
n.mode === "RL" ? f = oe.convertToMonotonicLng([c, u]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(c, u, 200));
|
|
9224
9227
|
const z = E.lineString(f.map((S) => [S.lng, S.lat]));
|
|
9225
9228
|
z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
9226
9229
|
const x = e[a];
|
|
9227
|
-
x.properties.totalDist = oe.roundPrecision((
|
|
9230
|
+
x.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), x.properties.sumLabel = x.properties.totalDist + " nm";
|
|
9228
9231
|
}
|
|
9229
9232
|
e.push(...i), t.total = o;
|
|
9230
9233
|
}
|
|
@@ -9234,18 +9237,18 @@ const Ms = {
|
|
|
9234
9237
|
const a = E.featureCollection([]);
|
|
9235
9238
|
let r, s;
|
|
9236
9239
|
if (e) {
|
|
9237
|
-
const
|
|
9238
|
-
r = Fe.calculateDistance(
|
|
9240
|
+
const c = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
|
|
9241
|
+
r = Fe.calculateDistance(u, p, c.mode === "RL", 4), s = Fe.calculateBearing(u, p, c.mode === "RL", 2);
|
|
9239
9242
|
let d;
|
|
9240
|
-
|
|
9243
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([u, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
|
|
9241
9244
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9242
9245
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9243
9246
|
}
|
|
9244
9247
|
if (i) {
|
|
9245
|
-
const
|
|
9246
|
-
r = Fe.calculateDistance(
|
|
9248
|
+
const c = o.properties, u = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
9249
|
+
r = Fe.calculateDistance(u, p, c.mode === "RL", 4), s = Fe.calculateBearing(u, p, c.mode === "RL", 2);
|
|
9247
9250
|
let d;
|
|
9248
|
-
|
|
9251
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([u, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
|
|
9249
9252
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9250
9253
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9251
9254
|
}
|
|
@@ -9287,22 +9290,22 @@ const Ms = {
|
|
|
9287
9290
|
// 'text-halo-blur': 0,
|
|
9288
9291
|
}
|
|
9289
9292
|
});
|
|
9290
|
-
let
|
|
9293
|
+
let n;
|
|
9291
9294
|
if (i)
|
|
9292
|
-
|
|
9295
|
+
n = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
9293
9296
|
else {
|
|
9294
|
-
const
|
|
9295
|
-
|
|
9297
|
+
const c = oe.roundPrecision((t.total ?? 0) + r, 1);
|
|
9298
|
+
n = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${c}</b>nm, ${this.$t(
|
|
9296
9299
|
"measure.bearing"
|
|
9297
9300
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
9298
9301
|
"measure.switchTips"
|
|
9299
9302
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
9300
9303
|
}
|
|
9301
9304
|
if (this.tipMarker)
|
|
9302
|
-
this.tipMarker._element.innerHTML =
|
|
9305
|
+
this.tipMarker._element.innerHTML = n, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
9303
9306
|
else {
|
|
9304
|
-
const
|
|
9305
|
-
|
|
9307
|
+
const c = document.createElement("div");
|
|
9308
|
+
c.className = "idm-gl4-measure-tip-marker", c.innerHTML = n, this.tipMarker = new we.Marker(c).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
9306
9309
|
}
|
|
9307
9310
|
},
|
|
9308
9311
|
handleMove(t) {
|
|
@@ -9374,48 +9377,48 @@ const Ms = {
|
|
|
9374
9377
|
// 'text-halo-blur': 0,
|
|
9375
9378
|
}
|
|
9376
9379
|
});
|
|
9377
|
-
const s = t.features.filter((
|
|
9378
|
-
for (const
|
|
9379
|
-
const
|
|
9380
|
-
|
|
9381
|
-
const
|
|
9382
|
-
|
|
9380
|
+
const s = t.features.filter((n) => n.geometry.type === "Point");
|
|
9381
|
+
for (const n of s) {
|
|
9382
|
+
const c = document.createElement("div");
|
|
9383
|
+
c.id = `${t.id}-${n.properties.id}`, c.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, c.innerHTML = '<div class="marker-circle"></div>';
|
|
9384
|
+
const u = new we.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
9385
|
+
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
|
|
9383
9386
|
}
|
|
9384
9387
|
if (t.closed) {
|
|
9385
|
-
const
|
|
9386
|
-
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
9388
|
+
const n = s.at(-1), u = t.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
9389
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new we.Marker(p).setOffset([0, -30]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
9387
9390
|
}
|
|
9388
9391
|
}
|
|
9389
9392
|
},
|
|
9390
9393
|
handleClear(t, e = !0) {
|
|
9391
|
-
var s,
|
|
9394
|
+
var s, n, c, u, p, d, f, z, x, S;
|
|
9392
9395
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
9393
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (
|
|
9396
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
|
|
9394
9397
|
C == null || C.remove();
|
|
9395
9398
|
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((x = this.map) != null && x.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
9396
9399
|
}
|
|
9397
9400
|
}
|
|
9398
9401
|
}, Ts = { class: "idm-gl4-measure" };
|
|
9399
9402
|
function Is(t, e, o, i, a, r) {
|
|
9400
|
-
const s = w("VBtn"),
|
|
9403
|
+
const s = w("VBtn"), n = w("VTooltip");
|
|
9401
9404
|
return b(), T("div", Ts, [
|
|
9402
9405
|
l("div", {
|
|
9403
9406
|
class: "menu-bar-box transition pa-1",
|
|
9404
9407
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
9405
9408
|
}, [
|
|
9406
|
-
m(
|
|
9409
|
+
m(n, {
|
|
9407
9410
|
text: t.$t("measure.measure"),
|
|
9408
9411
|
location: "left"
|
|
9409
9412
|
}, {
|
|
9410
|
-
activator:
|
|
9411
|
-
m(s, B(
|
|
9413
|
+
activator: g(({ props: c }) => [
|
|
9414
|
+
m(s, B(c, {
|
|
9412
9415
|
"min-width": "32",
|
|
9413
9416
|
width: "32",
|
|
9414
9417
|
height: "32",
|
|
9415
9418
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9416
9419
|
onClick: r.handleMenuToggle
|
|
9417
9420
|
}), {
|
|
9418
|
-
default:
|
|
9421
|
+
default: g(() => e[0] || (e[0] = [
|
|
9419
9422
|
l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
9420
9423
|
])),
|
|
9421
9424
|
_: 2,
|
|
@@ -9550,7 +9553,7 @@ const Rs = {
|
|
|
9550
9553
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9551
9554
|
}, Fs = ["onClick"], Hs = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ws = { class: "text-body-1" };
|
|
9552
9555
|
function Gs(t, e, o, i, a, r) {
|
|
9553
|
-
const s = w("DateTimePicker"),
|
|
9556
|
+
const s = w("DateTimePicker"), n = w("VListItemTitle"), c = w("VListItem"), u = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
|
|
9554
9557
|
return b(), T("div", Ds, [
|
|
9555
9558
|
Object.values(a.show).includes(!0) ? (b(), T("div", {
|
|
9556
9559
|
key: 0,
|
|
@@ -9574,13 +9577,13 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9574
9577
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
9575
9578
|
"min-width": "30"
|
|
9576
9579
|
}, {
|
|
9577
|
-
default:
|
|
9580
|
+
default: g(() => [
|
|
9578
9581
|
G(y(a.intervalHour) + " h ", 1),
|
|
9579
9582
|
m(p, { activator: "parent" }, {
|
|
9580
|
-
default:
|
|
9581
|
-
m(
|
|
9582
|
-
default:
|
|
9583
|
-
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(
|
|
9583
|
+
default: g(() => [
|
|
9584
|
+
m(u, { class: "pa-1" }, {
|
|
9585
|
+
default: g(() => [
|
|
9586
|
+
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(c, {
|
|
9584
9587
|
key: S,
|
|
9585
9588
|
value: x,
|
|
9586
9589
|
variant: a.intervalHour === x ? "tonal" : "text",
|
|
@@ -9592,11 +9595,11 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9592
9595
|
"min-width": "30",
|
|
9593
9596
|
class: "pa-0 text-center text-body-1"
|
|
9594
9597
|
}, {
|
|
9595
|
-
default:
|
|
9596
|
-
m(
|
|
9598
|
+
default: g(() => [
|
|
9599
|
+
m(n, {
|
|
9597
9600
|
onClick: (C) => a.intervalHour = x
|
|
9598
9601
|
}, {
|
|
9599
|
-
default:
|
|
9602
|
+
default: g(() => [
|
|
9600
9603
|
G(y(x) + "h", 1)
|
|
9601
9604
|
]),
|
|
9602
9605
|
_: 2
|
|
@@ -9627,7 +9630,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9627
9630
|
variant: "text",
|
|
9628
9631
|
onClick: r.handleReset
|
|
9629
9632
|
}, {
|
|
9630
|
-
default:
|
|
9633
|
+
default: g(() => e[9] || (e[9] = [
|
|
9631
9634
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9632
9635
|
])),
|
|
9633
9636
|
_: 1,
|
|
@@ -9640,7 +9643,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9640
9643
|
variant: "text",
|
|
9641
9644
|
onClick: r.handleBackward
|
|
9642
9645
|
}, {
|
|
9643
|
-
default:
|
|
9646
|
+
default: g(() => e[10] || (e[10] = [
|
|
9644
9647
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9645
9648
|
])),
|
|
9646
9649
|
_: 1,
|
|
@@ -9654,7 +9657,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9654
9657
|
variant: "text",
|
|
9655
9658
|
onClick: r.handlePlay
|
|
9656
9659
|
}, {
|
|
9657
|
-
default:
|
|
9660
|
+
default: g(() => e[11] || (e[11] = [
|
|
9658
9661
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9659
9662
|
])),
|
|
9660
9663
|
_: 1,
|
|
@@ -9667,7 +9670,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9667
9670
|
variant: "text",
|
|
9668
9671
|
onClick: r.handlePause
|
|
9669
9672
|
}, {
|
|
9670
|
-
default:
|
|
9673
|
+
default: g(() => e[12] || (e[12] = [
|
|
9671
9674
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9672
9675
|
])),
|
|
9673
9676
|
_: 1,
|
|
@@ -9680,7 +9683,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9680
9683
|
variant: "text",
|
|
9681
9684
|
onClick: r.handleForward
|
|
9682
9685
|
}, {
|
|
9683
|
-
default:
|
|
9686
|
+
default: g(() => e[13] || (e[13] = [
|
|
9684
9687
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9685
9688
|
])),
|
|
9686
9689
|
_: 1,
|
|
@@ -9697,7 +9700,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9697
9700
|
text: t.$t("weather.windBarbs"),
|
|
9698
9701
|
location: "top"
|
|
9699
9702
|
}, {
|
|
9700
|
-
activator:
|
|
9703
|
+
activator: g(({ props: x }) => {
|
|
9701
9704
|
var S, C;
|
|
9702
9705
|
return [
|
|
9703
9706
|
m(d, B(x, {
|
|
@@ -9709,7 +9712,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9709
9712
|
"min-width": "24",
|
|
9710
9713
|
onClick: e[3] || (e[3] = (N) => r.handleClickFastWeather("wind"))
|
|
9711
9714
|
}), {
|
|
9712
|
-
default:
|
|
9715
|
+
default: g(() => e[14] || (e[14] = [
|
|
9713
9716
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
9714
9717
|
])),
|
|
9715
9718
|
_: 2,
|
|
@@ -9723,7 +9726,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9723
9726
|
text: t.$t("weather.sigWaveHeight"),
|
|
9724
9727
|
location: "top"
|
|
9725
9728
|
}, {
|
|
9726
|
-
activator:
|
|
9729
|
+
activator: g(({ props: x }) => {
|
|
9727
9730
|
var S, C;
|
|
9728
9731
|
return [
|
|
9729
9732
|
m(d, B(x, {
|
|
@@ -9735,7 +9738,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9735
9738
|
"min-width": "24",
|
|
9736
9739
|
onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
|
|
9737
9740
|
}), {
|
|
9738
|
-
default:
|
|
9741
|
+
default: g(() => [
|
|
9739
9742
|
l("i", B(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9740
9743
|
]),
|
|
9741
9744
|
_: 2
|
|
@@ -9748,7 +9751,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9748
9751
|
text: t.$t("weather.currentDirection"),
|
|
9749
9752
|
location: "top"
|
|
9750
9753
|
}, {
|
|
9751
|
-
activator:
|
|
9754
|
+
activator: g(({ props: x }) => {
|
|
9752
9755
|
var S, C;
|
|
9753
9756
|
return [
|
|
9754
9757
|
m(d, B(x, {
|
|
@@ -9760,7 +9763,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9760
9763
|
"min-width": "24",
|
|
9761
9764
|
onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
|
|
9762
9765
|
}), {
|
|
9763
|
-
default:
|
|
9766
|
+
default: g(() => [
|
|
9764
9767
|
l("i", B(x, { class: "iconfont icon-Current" }), null, 16)
|
|
9765
9768
|
]),
|
|
9766
9769
|
_: 2
|
|
@@ -9773,7 +9776,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9773
9776
|
text: t.$t("weather.weatherLayers"),
|
|
9774
9777
|
location: "top"
|
|
9775
9778
|
}, {
|
|
9776
|
-
activator:
|
|
9779
|
+
activator: g(({ props: x }) => [
|
|
9777
9780
|
m(d, B(x, {
|
|
9778
9781
|
class: "pa-1 d-flex",
|
|
9779
9782
|
variant: "text",
|
|
@@ -9782,7 +9785,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9782
9785
|
"min-width": "24",
|
|
9783
9786
|
onClick: r.handleClickFastMore
|
|
9784
9787
|
}), {
|
|
9785
|
-
default:
|
|
9788
|
+
default: g(() => [
|
|
9786
9789
|
l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9787
9790
|
]),
|
|
9788
9791
|
_: 2
|
|
@@ -9804,7 +9807,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9804
9807
|
color: a.source === "GFS" ? "primary" : "",
|
|
9805
9808
|
onClick: e[6] || (e[6] = (x) => a.source = "GFS")
|
|
9806
9809
|
}, {
|
|
9807
|
-
default:
|
|
9810
|
+
default: g(() => e[15] || (e[15] = [
|
|
9808
9811
|
G("NOAA", -1)
|
|
9809
9812
|
])),
|
|
9810
9813
|
_: 1,
|
|
@@ -9817,7 +9820,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9817
9820
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9818
9821
|
onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
|
|
9819
9822
|
}, {
|
|
9820
|
-
default:
|
|
9823
|
+
default: g(() => e[16] || (e[16] = [
|
|
9821
9824
|
G("ECMWF", -1)
|
|
9822
9825
|
])),
|
|
9823
9826
|
_: 1,
|
|
@@ -9845,7 +9848,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9845
9848
|
color: "primary",
|
|
9846
9849
|
onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
|
|
9847
9850
|
}, {
|
|
9848
|
-
default:
|
|
9851
|
+
default: g(() => [
|
|
9849
9852
|
G(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9850
9853
|
]),
|
|
9851
9854
|
_: 1
|
|
@@ -9921,7 +9924,7 @@ const Us = /* @__PURE__ */ Z(Rs, [["render", Gs]]), Vs = {
|
|
|
9921
9924
|
class: "map-gl4-home"
|
|
9922
9925
|
};
|
|
9923
9926
|
function Zs(t, e, o, i, a, r) {
|
|
9924
|
-
const s = w("IdmOtherLayer"),
|
|
9927
|
+
const s = w("IdmOtherLayer"), n = w("IdmWeatherLayer"), c = w("IdmTropicals"), u = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
|
|
9925
9928
|
return b(), T("div", Ys, [
|
|
9926
9929
|
m(s, B({
|
|
9927
9930
|
ref: "idmOtherLayers",
|
|
@@ -9939,7 +9942,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9939
9942
|
a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
9940
9943
|
})
|
|
9941
9944
|
}), null, 16, ["token", "default-meteo-token", "map", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9942
|
-
m(
|
|
9945
|
+
m(n, B({
|
|
9943
9946
|
ref: "idmWeatherLayers",
|
|
9944
9947
|
map: o.map,
|
|
9945
9948
|
"before-layer": "empty-layer-2",
|
|
@@ -9958,7 +9961,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9958
9961
|
a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
9959
9962
|
})
|
|
9960
9963
|
}), null, 16, ["map", "real-time", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9961
|
-
m(
|
|
9964
|
+
m(c, B({
|
|
9962
9965
|
map: o.map,
|
|
9963
9966
|
token: o.token,
|
|
9964
9967
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -9970,7 +9973,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9970
9973
|
"forecast-model": o.forecastModel,
|
|
9971
9974
|
"map-feather": o.mapFeather
|
|
9972
9975
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9973
|
-
m(
|
|
9976
|
+
m(u, B({
|
|
9974
9977
|
map: o.map,
|
|
9975
9978
|
"map-feather": o.mapFeather
|
|
9976
9979
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
@@ -10002,7 +10005,7 @@ class qs {
|
|
|
10002
10005
|
se(this, "hi");
|
|
10003
10006
|
se(this, "td");
|
|
10004
10007
|
se(this, "windy");
|
|
10005
|
-
var o, i, a, r, s,
|
|
10008
|
+
var o, i, a, r, s, n, c, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
|
|
10006
10009
|
this.i4 = {
|
|
10007
10010
|
source: {
|
|
10008
10011
|
type: "raster",
|
|
@@ -28276,8 +28279,8 @@ class qs {
|
|
|
28276
28279
|
layers: [
|
|
28277
28280
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
|
|
28278
28281
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
|
|
28279
|
-
(
|
|
28280
|
-
(
|
|
28282
|
+
(n = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : n.find((h) => h.id === "ice-area-fill"),
|
|
28283
|
+
(u = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : u.find((h) => h.id === "ice-area-line"),
|
|
28281
28284
|
(d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((h) => h.id === "empty-layer-0"),
|
|
28282
28285
|
(z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-1"),
|
|
28283
28286
|
(S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
|
|
@@ -28551,7 +28554,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28551
28554
|
class: "pa-0 elevation-0",
|
|
28552
28555
|
onClick: r.handleZoomIn
|
|
28553
28556
|
}, {
|
|
28554
|
-
default:
|
|
28557
|
+
default: g(() => e[0] || (e[0] = [
|
|
28555
28558
|
l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
28556
28559
|
])),
|
|
28557
28560
|
_: 1,
|
|
@@ -28565,7 +28568,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28565
28568
|
class: "elevation-0 pa-0",
|
|
28566
28569
|
onClick: r.handleZoomOut
|
|
28567
28570
|
}, {
|
|
28568
|
-
default:
|
|
28571
|
+
default: g(() => e[1] || (e[1] = [
|
|
28569
28572
|
l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
28570
28573
|
])),
|
|
28571
28574
|
_: 1,
|