@idmwx/idmui-gl4 0.8.1 → 0.8.3
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 +481 -498
- package/dist/index.umd.cjs +6 -6
- package/dist/mapbox/src/components/spot/index.vue.d.ts +1 -0
- package/dist/style.css +1 -1
- 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 u, 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,35 +483,31 @@ 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: u(() => [
|
|
492
|
+
m(n, null, {
|
|
493
|
+
default: u(() => {
|
|
494
|
+
var g;
|
|
495
495
|
return [
|
|
496
496
|
m(s, {
|
|
497
497
|
icon: "",
|
|
498
|
-
density: "
|
|
499
|
-
|
|
500
|
-
class: "mr-n2 close",
|
|
498
|
+
density: "compact",
|
|
499
|
+
class: "close",
|
|
501
500
|
onClick: e[0] || (e[0] = (p) => a.showZone = !1)
|
|
502
501
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
l("i", {
|
|
505
|
-
class: "iconfont icon-close",
|
|
506
|
-
style: { "font-size": "16px" }
|
|
507
|
-
}, null, -1)
|
|
502
|
+
default: u(() => e[1] || (e[1] = [
|
|
503
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
508
504
|
])),
|
|
509
505
|
_: 1,
|
|
510
506
|
__: [1]
|
|
511
507
|
}),
|
|
512
508
|
l("div", {
|
|
513
509
|
class: "rich-context",
|
|
514
|
-
innerHTML: (
|
|
510
|
+
innerHTML: (g = a.form) == null ? void 0 : g.name
|
|
515
511
|
}, null, 8, Ya)
|
|
516
512
|
];
|
|
517
513
|
}),
|
|
@@ -630,26 +626,22 @@ const qa = {
|
|
|
630
626
|
}
|
|
631
627
|
}, 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
628
|
function ti(t, e, o, i, a, r) {
|
|
633
|
-
const s = w("VBtn"),
|
|
629
|
+
const s = w("VBtn"), n = w("v-card-text"), c = w("v-divider"), g = w("v-btn"), p = w("v-card-actions"), d = w("v-card");
|
|
634
630
|
return He((b(), j(d, {
|
|
635
631
|
id: "port-info",
|
|
636
632
|
ref: "idmPortInfo"
|
|
637
633
|
}, {
|
|
638
|
-
default:
|
|
639
|
-
m(
|
|
640
|
-
default:
|
|
634
|
+
default: u(() => [
|
|
635
|
+
m(n, { class: "pr-8" }, {
|
|
636
|
+
default: u(() => [
|
|
641
637
|
m(s, {
|
|
642
638
|
icon: "",
|
|
643
639
|
density: "compact",
|
|
644
|
-
variant: "plain",
|
|
645
640
|
class: "mr-n2 close",
|
|
646
641
|
onClick: e[0] || (e[0] = (f) => a.showInfo = !1)
|
|
647
642
|
}, {
|
|
648
|
-
default:
|
|
649
|
-
l("i", {
|
|
650
|
-
class: "iconfont icon-close",
|
|
651
|
-
style: { "font-size": "16px" }
|
|
652
|
-
}, null, -1)
|
|
643
|
+
default: u(() => e[2] || (e[2] = [
|
|
644
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
653
645
|
])),
|
|
654
646
|
_: 1,
|
|
655
647
|
__: [2]
|
|
@@ -675,17 +667,17 @@ function ti(t, e, o, i, a, r) {
|
|
|
675
667
|
]),
|
|
676
668
|
_: 1
|
|
677
669
|
}),
|
|
678
|
-
m(
|
|
670
|
+
m(c),
|
|
679
671
|
m(p, { class: "d-flex justify-end align-center" }, {
|
|
680
|
-
default:
|
|
681
|
-
m(
|
|
672
|
+
default: u(() => [
|
|
673
|
+
m(g, {
|
|
682
674
|
variant: "text",
|
|
683
675
|
density: "compact",
|
|
684
676
|
"append-icon": "mdi-chevron-right",
|
|
685
677
|
class: "meteo-forecast flex-end text-none",
|
|
686
678
|
onClick: e[1] || (e[1] = (f) => r.handleClickMeteo(a.form))
|
|
687
679
|
}, {
|
|
688
|
-
default:
|
|
680
|
+
default: u(() => e[7] || (e[7] = [
|
|
689
681
|
G(" Meteo Forecast ", -1)
|
|
690
682
|
])),
|
|
691
683
|
_: 1,
|
|
@@ -700,7 +692,7 @@ function ti(t, e, o, i, a, r) {
|
|
|
700
692
|
[We, a.showInfo]
|
|
701
693
|
]);
|
|
702
694
|
}
|
|
703
|
-
const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-
|
|
695
|
+
const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a856b640"]]), ai = {
|
|
704
696
|
name: "IdmLoadLine",
|
|
705
697
|
props: {
|
|
706
698
|
map: {
|
|
@@ -1433,23 +1425,19 @@ const Ci = {
|
|
|
1433
1425
|
}
|
|
1434
1426
|
}, 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
1427
|
function Ri(t, e, o, i, a, r) {
|
|
1436
|
-
const s = w("VBtn"),
|
|
1437
|
-
return He((b(), j(
|
|
1438
|
-
default:
|
|
1439
|
-
m(
|
|
1440
|
-
default:
|
|
1428
|
+
const s = w("VBtn"), n = w("v-card-text"), c = w("v-card");
|
|
1429
|
+
return He((b(), j(c, { id: "tidal-station-info" }, {
|
|
1430
|
+
default: u(() => [
|
|
1431
|
+
m(n, { class: "pr-8" }, {
|
|
1432
|
+
default: u(() => [
|
|
1441
1433
|
m(s, {
|
|
1442
1434
|
icon: "",
|
|
1443
1435
|
density: "compact",
|
|
1444
|
-
variant: "plain",
|
|
1445
1436
|
class: "mr-n2 close",
|
|
1446
|
-
onClick: e[0] || (e[0] = (
|
|
1437
|
+
onClick: e[0] || (e[0] = (g) => a.showInfo = !1)
|
|
1447
1438
|
}, {
|
|
1448
|
-
default:
|
|
1449
|
-
l("i", {
|
|
1450
|
-
class: "iconfont icon-close",
|
|
1451
|
-
style: { "font-size": "16px" }
|
|
1452
|
-
}, null, -1)
|
|
1439
|
+
default: u(() => e[1] || (e[1] = [
|
|
1440
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
1453
1441
|
])),
|
|
1454
1442
|
_: 1,
|
|
1455
1443
|
__: [1]
|
|
@@ -1481,7 +1469,7 @@ function Ri(t, e, o, i, a, r) {
|
|
|
1481
1469
|
[We, a.showInfo]
|
|
1482
1470
|
]);
|
|
1483
1471
|
}
|
|
1484
|
-
const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-
|
|
1472
|
+
const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-ca81f9bd"]]), Oi = {
|
|
1485
1473
|
name: "IdmIceAreas",
|
|
1486
1474
|
props: {
|
|
1487
1475
|
map: {
|
|
@@ -1693,14 +1681,14 @@ const ji = {
|
|
|
1693
1681
|
}
|
|
1694
1682
|
};
|
|
1695
1683
|
function Ni(t, e, o, i, a, r) {
|
|
1696
|
-
var s,
|
|
1684
|
+
var s, n, c;
|
|
1697
1685
|
return b(), T("div", {
|
|
1698
1686
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1699
1687
|
style: ae({ right: a.right + "px" })
|
|
1700
1688
|
}, [
|
|
1701
1689
|
l("div", null, y((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1702
|
-
l("div", null, y((
|
|
1703
|
-
l("div", null, y((
|
|
1690
|
+
l("div", null, y((n = a.lngLat) == null ? void 0 : n.lng), 1),
|
|
1691
|
+
l("div", null, y((c = a.lngLat) == null ? void 0 : c.str), 1)
|
|
1704
1692
|
], 4);
|
|
1705
1693
|
}
|
|
1706
1694
|
const Sa = /* @__PURE__ */ Z(ji, [["render", Ni]]);
|
|
@@ -1871,46 +1859,46 @@ const Fi = {
|
|
|
1871
1859
|
let e = this.layerWeight;
|
|
1872
1860
|
if (e) {
|
|
1873
1861
|
if (t.all) {
|
|
1874
|
-
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
1862
|
+
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
1863
|
headers: {
|
|
1876
1864
|
Authorization: this.token || this.defaultMeteoToken
|
|
1877
1865
|
}
|
|
1878
1866
|
});
|
|
1879
|
-
if (((o =
|
|
1880
|
-
const
|
|
1881
|
-
for (const d in
|
|
1882
|
-
|
|
1883
|
-
Be.get(
|
|
1867
|
+
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
1868
|
+
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, g = [];
|
|
1869
|
+
for (const d in c)
|
|
1870
|
+
g.push(
|
|
1871
|
+
Be.get(c[d], {
|
|
1884
1872
|
headers: {
|
|
1885
1873
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1886
1874
|
key: d
|
|
1887
1875
|
}
|
|
1888
1876
|
})
|
|
1889
1877
|
);
|
|
1890
|
-
(await Promise.all(
|
|
1878
|
+
(await Promise.all(g)).map((d) => {
|
|
1891
1879
|
var x, S, C;
|
|
1892
1880
|
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
1881
|
this.otherLayers[z] = f;
|
|
1894
1882
|
});
|
|
1895
1883
|
}
|
|
1896
1884
|
} else if (t.dayNight && e & 1024) {
|
|
1897
|
-
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
1885
|
+
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
1886
|
headers: {
|
|
1899
1887
|
Authorization: this.token || this.defaultMeteoToken
|
|
1900
1888
|
}
|
|
1901
1889
|
});
|
|
1902
|
-
if (((a =
|
|
1903
|
-
const
|
|
1904
|
-
for (const d in
|
|
1905
|
-
|
|
1906
|
-
Be.get(
|
|
1890
|
+
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
1891
|
+
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, g = [];
|
|
1892
|
+
for (const d in c)
|
|
1893
|
+
g.push(
|
|
1894
|
+
Be.get(c[d], {
|
|
1907
1895
|
headers: {
|
|
1908
1896
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1909
1897
|
key: d
|
|
1910
1898
|
}
|
|
1911
1899
|
})
|
|
1912
1900
|
);
|
|
1913
|
-
(await Promise.all(
|
|
1901
|
+
(await Promise.all(g)).map((d) => {
|
|
1914
1902
|
var x, S, C;
|
|
1915
1903
|
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
1904
|
this.otherLayers[z] = f;
|
|
@@ -1943,17 +1931,17 @@ const Fi = {
|
|
|
1943
1931
|
}, Qi = { class: "text-body-2 text-center pt-1" };
|
|
1944
1932
|
function Ji(t, e, o, i, a, r) {
|
|
1945
1933
|
var $, ee, Q, le, de, pe, me, K, ie, ue;
|
|
1946
|
-
const s = w("VBtn"),
|
|
1934
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = 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
1935
|
return b(), T("div", Hi, [
|
|
1948
1936
|
l("div", {
|
|
1949
1937
|
class: "menu-bar-box transition px-1 rounded",
|
|
1950
1938
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
1951
1939
|
}, [
|
|
1952
|
-
m(
|
|
1940
|
+
m(n, {
|
|
1953
1941
|
text: t.$t("layer.mapLayers"),
|
|
1954
1942
|
location: "left"
|
|
1955
1943
|
}, {
|
|
1956
|
-
activator:
|
|
1944
|
+
activator: u(({ props: F }) => [
|
|
1957
1945
|
m(s, B(F, {
|
|
1958
1946
|
"min-width": "32",
|
|
1959
1947
|
width: "32",
|
|
@@ -1961,7 +1949,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1961
1949
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
1962
1950
|
onClick: r.handleMenuToggle
|
|
1963
1951
|
}), {
|
|
1964
|
-
default:
|
|
1952
|
+
default: u(() => e[5] || (e[5] = [
|
|
1965
1953
|
l("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
|
|
1966
1954
|
])),
|
|
1967
1955
|
_: 2,
|
|
@@ -1979,16 +1967,12 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1979
1967
|
l("div", Gi, y(t.$t("layer.layers")), 1),
|
|
1980
1968
|
m(s, {
|
|
1981
1969
|
icon: "",
|
|
1982
|
-
density: "
|
|
1983
|
-
variant: "plain",
|
|
1970
|
+
density: "compact",
|
|
1984
1971
|
class: "mr-n2",
|
|
1985
1972
|
onClick: r.handleMenuToggle
|
|
1986
1973
|
}, {
|
|
1987
|
-
default:
|
|
1988
|
-
l("i", {
|
|
1989
|
-
class: "iconfont icon-close",
|
|
1990
|
-
style: { "font-size": "20px" }
|
|
1991
|
-
}, null, -1)
|
|
1974
|
+
default: u(() => e[6] || (e[6] = [
|
|
1975
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
1992
1976
|
])),
|
|
1993
1977
|
_: 1,
|
|
1994
1978
|
__: [6]
|
|
@@ -1999,14 +1983,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
1999
1983
|
class: "menu-card mx-auto mb-3",
|
|
2000
1984
|
elevation: "0"
|
|
2001
1985
|
}, {
|
|
2002
|
-
default:
|
|
2003
|
-
m(
|
|
2004
|
-
default:
|
|
2005
|
-
m(
|
|
1986
|
+
default: u(() => [
|
|
1987
|
+
m(g, { class: "border-b-thin" }, {
|
|
1988
|
+
default: u(() => [
|
|
1989
|
+
m(c, {
|
|
2006
1990
|
class: "text-subtitle-1 font-weight-medium",
|
|
2007
1991
|
style: { "font-size": "16px !important" }
|
|
2008
1992
|
}, {
|
|
2009
|
-
default:
|
|
1993
|
+
default: u(() => [
|
|
2010
1994
|
G(y(t.$t("layer.mapFeathers")), 1)
|
|
2011
1995
|
]),
|
|
2012
1996
|
_: 1
|
|
@@ -2015,7 +1999,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2015
1999
|
_: 1
|
|
2016
2000
|
}),
|
|
2017
2001
|
m(d, { class: "pb-2" }, {
|
|
2018
|
-
default:
|
|
2002
|
+
default: u(() => [
|
|
2019
2003
|
l("div", Vi, [
|
|
2020
2004
|
(b(!0), T(ke, null, Le(a.mapFeathers, (F) => (b(), T("div", {
|
|
2021
2005
|
key: F.value,
|
|
@@ -2052,14 +2036,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2052
2036
|
class: "menu-card mx-auto mb-3",
|
|
2053
2037
|
elevation: "0"
|
|
2054
2038
|
}, {
|
|
2055
|
-
default:
|
|
2056
|
-
m(
|
|
2057
|
-
default:
|
|
2058
|
-
m(
|
|
2039
|
+
default: u(() => [
|
|
2040
|
+
m(g, { class: "border-b-thin" }, {
|
|
2041
|
+
default: u(() => [
|
|
2042
|
+
m(c, {
|
|
2059
2043
|
class: "text-subtitle-1 font-weight-medium",
|
|
2060
2044
|
style: { "font-size": "16px !important" }
|
|
2061
2045
|
}, {
|
|
2062
|
-
default:
|
|
2046
|
+
default: u(() => [
|
|
2063
2047
|
G(y(t.$t("layer.pointsOfInteresting")), 1)
|
|
2064
2048
|
]),
|
|
2065
2049
|
_: 1
|
|
@@ -2068,7 +2052,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2068
2052
|
_: 1
|
|
2069
2053
|
}),
|
|
2070
2054
|
m(d, { class: "py-2" }, {
|
|
2071
|
-
default:
|
|
2055
|
+
default: u(() => [
|
|
2072
2056
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2073
2057
|
key: F.key,
|
|
2074
2058
|
modelValue: a.checkList,
|
|
@@ -2091,14 +2075,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2091
2075
|
class: "menu-card mx-auto mb-3",
|
|
2092
2076
|
elevation: "0"
|
|
2093
2077
|
}, {
|
|
2094
|
-
default:
|
|
2095
|
-
m(
|
|
2096
|
-
default:
|
|
2097
|
-
m(
|
|
2078
|
+
default: u(() => [
|
|
2079
|
+
m(g, { class: "border-b-thin" }, {
|
|
2080
|
+
default: u(() => [
|
|
2081
|
+
m(c, {
|
|
2098
2082
|
class: "text-subtitle-1 font-weight-medium",
|
|
2099
2083
|
style: { "font-size": "16px !important" }
|
|
2100
2084
|
}, {
|
|
2101
|
-
default:
|
|
2085
|
+
default: u(() => [
|
|
2102
2086
|
G(y(t.$t("layer.otherLayers")), 1)
|
|
2103
2087
|
]),
|
|
2104
2088
|
_: 1
|
|
@@ -2107,7 +2091,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2107
2091
|
_: 1
|
|
2108
2092
|
}),
|
|
2109
2093
|
m(d, { class: "py-2" }, {
|
|
2110
|
-
default:
|
|
2094
|
+
default: u(() => [
|
|
2111
2095
|
(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
2096
|
key: F.key,
|
|
2113
2097
|
modelValue: a.checkList,
|
|
@@ -2130,14 +2114,14 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2130
2114
|
class: "menu-card mx-auto mb-3",
|
|
2131
2115
|
elevation: "0"
|
|
2132
2116
|
}, {
|
|
2133
|
-
default:
|
|
2134
|
-
m(
|
|
2135
|
-
default:
|
|
2136
|
-
m(
|
|
2117
|
+
default: u(() => [
|
|
2118
|
+
m(g, { class: "border-b-thin" }, {
|
|
2119
|
+
default: u(() => [
|
|
2120
|
+
m(c, {
|
|
2137
2121
|
class: "text-subtitle-1 font-weight-medium",
|
|
2138
2122
|
style: { "font-size": "16px !important" }
|
|
2139
2123
|
}, {
|
|
2140
|
-
default:
|
|
2124
|
+
default: u(() => [
|
|
2141
2125
|
G(y(t.$t("layer.myFollows")), 1)
|
|
2142
2126
|
]),
|
|
2143
2127
|
_: 1
|
|
@@ -2146,7 +2130,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2146
2130
|
_: 1
|
|
2147
2131
|
}),
|
|
2148
2132
|
m(d, { class: "py-2" }, {
|
|
2149
|
-
default:
|
|
2133
|
+
default: u(() => [
|
|
2150
2134
|
m(p, {
|
|
2151
2135
|
modelValue: a.followList,
|
|
2152
2136
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.followList = F),
|
|
@@ -2318,8 +2302,8 @@ class io {
|
|
|
2318
2302
|
const e = (x = this.map) == null ? void 0 : x.getBounds();
|
|
2319
2303
|
if (!e)
|
|
2320
2304
|
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,
|
|
2305
|
+
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]), [g, 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));
|
|
2306
|
+
return [d, f, g + z, p];
|
|
2323
2307
|
}
|
|
2324
2308
|
/**
|
|
2325
2309
|
* [视窗边界像素宽度]
|
|
@@ -2334,11 +2318,11 @@ class io {
|
|
|
2334
2318
|
* @param zoom
|
|
2335
2319
|
*/
|
|
2336
2320
|
getWorldCopy(e, o) {
|
|
2337
|
-
const i = 2 ** o, [a, r, s,
|
|
2338
|
-
for (let p =
|
|
2321
|
+
const i = 2 ** o, [a, r, s, n] = e.map((p) => ~~(p / (i * 256))), c = [];
|
|
2322
|
+
for (let p = n; p <= r; p++)
|
|
2339
2323
|
for (let d = a; d <= s; d++)
|
|
2340
|
-
|
|
2341
|
-
return
|
|
2324
|
+
c.push([d, p]);
|
|
2325
|
+
return c.map((p) => {
|
|
2342
2326
|
const d = 2 ** o * 256;
|
|
2343
2327
|
return [p[0] * d, p[1] * d, d];
|
|
2344
2328
|
});
|
|
@@ -2383,9 +2367,9 @@ class Ne {
|
|
|
2383
2367
|
* @param width??
|
|
2384
2368
|
* @param height??
|
|
2385
2369
|
*/
|
|
2386
|
-
createTexture(e, o, i, a, r, s,
|
|
2387
|
-
const
|
|
2388
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
2370
|
+
createTexture(e, o, i, a, r, s, n) {
|
|
2371
|
+
const c = e.createTexture();
|
|
2372
|
+
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
2373
|
}
|
|
2390
2374
|
/**
|
|
2391
2375
|
* 创建数据资源
|
|
@@ -2423,14 +2407,14 @@ class Ne {
|
|
|
2423
2407
|
const a = this.createProgram(e, o, i);
|
|
2424
2408
|
if (a) {
|
|
2425
2409
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
2426
|
-
for (let
|
|
2427
|
-
const
|
|
2428
|
-
r[
|
|
2410
|
+
for (let c = 0; c < s; c++) {
|
|
2411
|
+
const g = e.getActiveAttrib(a, c);
|
|
2412
|
+
r[g.name] = e.getAttribLocation(a, g.name);
|
|
2429
2413
|
}
|
|
2430
|
-
const
|
|
2431
|
-
for (let
|
|
2432
|
-
const
|
|
2433
|
-
r[
|
|
2414
|
+
const n = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
2415
|
+
for (let c = 0; c < n; c++) {
|
|
2416
|
+
const g = e.getActiveUniform(a, c);
|
|
2417
|
+
r[g.name] = e.getUniformLocation(a, g.name);
|
|
2434
2418
|
}
|
|
2435
2419
|
return r;
|
|
2436
2420
|
}
|
|
@@ -2442,19 +2426,19 @@ class Ne {
|
|
|
2442
2426
|
setup(e, o, i = !1, a, r) {
|
|
2443
2427
|
const s = document.createElement("canvas");
|
|
2444
2428
|
s.width = 256, s.height = 1;
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2447
|
-
const
|
|
2448
|
-
return o.forEach(([
|
|
2449
|
-
|
|
2450
|
-
}),
|
|
2429
|
+
const n = s.getContext("2d");
|
|
2430
|
+
if (n && e) {
|
|
2431
|
+
const c = n == null ? void 0 : n.createLinearGradient(0, 0, 256, 0);
|
|
2432
|
+
return o.forEach(([g, p]) => {
|
|
2433
|
+
c.addColorStop(g, p);
|
|
2434
|
+
}), n.fillStyle = c, n.fillRect(0, 0, 256, 1), {
|
|
2451
2435
|
canvas: s,
|
|
2452
2436
|
texture: this.createTexture(
|
|
2453
2437
|
e,
|
|
2454
2438
|
e.LINEAR,
|
|
2455
2439
|
e.LINEAR,
|
|
2456
2440
|
e.CLAMP_TO_EDGE,
|
|
2457
|
-
i ? new Uint8Array(
|
|
2441
|
+
i ? new Uint8Array(n.getImageData(0, 0, 256, 1).data) : s,
|
|
2458
2442
|
a,
|
|
2459
2443
|
r
|
|
2460
2444
|
)
|
|
@@ -2465,32 +2449,32 @@ class Ne {
|
|
|
2465
2449
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
2466
2450
|
for (let p = 0; p < r.length; p++)
|
|
2467
2451
|
r[p] = Math.floor(Math.random() * 256);
|
|
2468
|
-
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
2452
|
+
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
2453
|
for (let p = 0; p < a; p++)
|
|
2470
|
-
|
|
2471
|
-
const
|
|
2472
|
-
return { resolution: i, total: a, texture0: s, texture1:
|
|
2454
|
+
c[p] = p;
|
|
2455
|
+
const g = this.createDataBuffer(e, "array", c);
|
|
2456
|
+
return { resolution: i, total: a, texture0: s, texture1: n, indexBuffer: g };
|
|
2473
2457
|
}
|
|
2474
2458
|
bind(e, o, i) {
|
|
2475
2459
|
const a = this.createProgram(e, o, i);
|
|
2476
2460
|
if (a) {
|
|
2477
2461
|
const r = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(a, "a_position");
|
|
2478
2462
|
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(
|
|
2463
|
+
const n = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
2464
|
+
this.createDataBuffer(e, "array", n);
|
|
2465
|
+
const c = e.getAttribLocation(a, "a_texCoord");
|
|
2466
|
+
return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
|
|
2483
2467
|
}
|
|
2484
2468
|
return {};
|
|
2485
2469
|
}
|
|
2486
2470
|
bindParticle(e, o, i, a, r, s) {
|
|
2487
|
-
const
|
|
2488
|
-
return { particle:
|
|
2471
|
+
const n = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), g = 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();
|
|
2472
|
+
return { particle: n, screen: c, update: g, quadBuffer: p, frameBuffer: d };
|
|
2489
2473
|
}
|
|
2490
|
-
draw(e, o, i, a, r, s,
|
|
2491
|
-
var
|
|
2474
|
+
draw(e, o, i, a, r, s, n) {
|
|
2475
|
+
var c, g;
|
|
2492
2476
|
if (o && i) {
|
|
2493
|
-
e.resize(), o == null || o.viewport(0, 0, (
|
|
2477
|
+
e.resize(), o == null || o.viewport(0, 0, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
2494
2478
|
try {
|
|
2495
2479
|
o.useProgram(i);
|
|
2496
2480
|
const p = {
|
|
@@ -2501,7 +2485,7 @@ class Ne {
|
|
|
2501
2485
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
2502
2486
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
2503
2487
|
};
|
|
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),
|
|
2488
|
+
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
2489
|
const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
|
|
2506
2490
|
for (const x of z) {
|
|
2507
2491
|
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 +2497,8 @@ class Ne {
|
|
|
2513
2497
|
}
|
|
2514
2498
|
}
|
|
2515
2499
|
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, (
|
|
2500
|
+
var s, n;
|
|
2501
|
+
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
2502
|
}
|
|
2519
2503
|
renderScreen(e, o, i, a) {
|
|
2520
2504
|
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 +2516,11 @@ class Ne {
|
|
|
2532
2516
|
}
|
|
2533
2517
|
}
|
|
2534
2518
|
updateParticles(e, o, i, a) {
|
|
2535
|
-
var s,
|
|
2519
|
+
var s, n;
|
|
2536
2520
|
if (o) {
|
|
2537
2521
|
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,
|
|
2522
|
+
const c = e.getBoundRange();
|
|
2523
|
+
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
2524
|
}
|
|
2541
2525
|
const r = i.texture0;
|
|
2542
2526
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -2849,13 +2833,13 @@ const er = {
|
|
|
2849
2833
|
}, 500);
|
|
2850
2834
|
else if (this.wind) {
|
|
2851
2835
|
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(
|
|
2836
|
+
let r = 0, s = 0, n = this.empty;
|
|
2837
|
+
if ((t = this.wind) != null && t.active && (n = (e = this.wind) == null ? void 0 : e.data), (o = this.map) != null && o.getSource(this.source))
|
|
2838
|
+
(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
2839
|
else {
|
|
2856
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
2857
|
-
for (let
|
|
2858
|
-
const
|
|
2840
|
+
this.map.addSource(this.source, { type: "geojson", data: n });
|
|
2841
|
+
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
2842
|
+
const g = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = g < 10 ? `00${g}kts` : g < 100 ? `0${g}kts` : `${g}kts`, f = new Image(48, 48), z = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
|
|
2859
2843
|
f.src = z, f.onload = () => {
|
|
2860
2844
|
this.map.hasImage(d + "-icon") || this.map.addImage(d + "-icon", f), this.map.addLayer(
|
|
2861
2845
|
{
|
|
@@ -2864,7 +2848,7 @@ const er = {
|
|
|
2864
2848
|
filter: [
|
|
2865
2849
|
"all",
|
|
2866
2850
|
// @ts-ignore
|
|
2867
|
-
[">=", "spd",
|
|
2851
|
+
[">=", "spd", g],
|
|
2868
2852
|
// @ts-ignore
|
|
2869
2853
|
["<", "spd", p]
|
|
2870
2854
|
],
|
|
@@ -3216,18 +3200,18 @@ const sr = /* @__PURE__ */ Z(ir, [["render", lr]]), nr = {
|
|
|
3216
3200
|
this.beforeLayer
|
|
3217
3201
|
);
|
|
3218
3202
|
const s = new Image(48, 48);
|
|
3219
|
-
let
|
|
3220
|
-
s.src =
|
|
3221
|
-
const
|
|
3222
|
-
|
|
3203
|
+
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)));
|
|
3204
|
+
s.src = c;
|
|
3205
|
+
const g = new Image(48, 48);
|
|
3206
|
+
n = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3223
3207
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3224
3208
|
<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 = [
|
|
3209
|
+
</svg>`, c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n))), g.src = c;
|
|
3210
|
+
const p = [g];
|
|
3227
3211
|
let d = 0;
|
|
3228
3212
|
p.forEach((f) => {
|
|
3229
3213
|
f.onload = () => {
|
|
3230
|
-
d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon",
|
|
3214
|
+
d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", g), d === 1 && this.map.addLayer(
|
|
3231
3215
|
{
|
|
3232
3216
|
id: this.directionLayer,
|
|
3233
3217
|
type: "symbol",
|
|
@@ -3836,8 +3820,8 @@ const vr = /* @__PURE__ */ Z(wr, [["render", xr]]), _r = {
|
|
|
3836
3820
|
}
|
|
3837
3821
|
}, this.beforeLayer);
|
|
3838
3822
|
const s = new Image(72, 72);
|
|
3839
|
-
let
|
|
3840
|
-
s.src =
|
|
3823
|
+
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)));
|
|
3824
|
+
s.src = c, s.onload = () => {
|
|
3841
3825
|
this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
|
|
3842
3826
|
{
|
|
3843
3827
|
id: this.directionLayer,
|
|
@@ -3982,6 +3966,7 @@ const zr = /* @__PURE__ */ Z(_r, [["render", kr]]), Lr = {
|
|
|
3982
3966
|
filter: ["==", "$type", "Point"],
|
|
3983
3967
|
layout: {
|
|
3984
3968
|
"symbol-placement": "point",
|
|
3969
|
+
"text-allow-overlap": !0,
|
|
3985
3970
|
"text-field": ["format", ["get", "type"], { "font-scale": 1.03 }, `
|
|
3986
3971
|
`, ["get", "val"], { "font-scale": 1 }],
|
|
3987
3972
|
"text-rotation-alignment": "map",
|
|
@@ -4039,19 +4024,19 @@ const zr = /* @__PURE__ */ Z(_r, [["render", kr]]), Lr = {
|
|
|
4039
4024
|
class: "legend-tip-btn-gl4"
|
|
4040
4025
|
};
|
|
4041
4026
|
function Cr(t, e, o, i, a, r) {
|
|
4042
|
-
var
|
|
4043
|
-
const s = w("VBtn"),
|
|
4044
|
-
return (
|
|
4027
|
+
var c;
|
|
4028
|
+
const s = w("VBtn"), n = w("VTooltip");
|
|
4029
|
+
return (c = o.prmsl) != null && c.active ? (b(), T("div", Pr, [
|
|
4045
4030
|
l("div", {
|
|
4046
4031
|
class: "menu-bar-box pa-1 rounded",
|
|
4047
4032
|
style: ae({ right: a.right + "px" })
|
|
4048
4033
|
}, [
|
|
4049
|
-
m(
|
|
4034
|
+
m(n, {
|
|
4050
4035
|
text: "Map Layers",
|
|
4051
4036
|
location: "left"
|
|
4052
4037
|
}, {
|
|
4053
|
-
activator:
|
|
4054
|
-
m(s, B(
|
|
4038
|
+
activator: u(({ props: g }) => [
|
|
4039
|
+
m(s, B(g, {
|
|
4055
4040
|
"min-width": "32",
|
|
4056
4041
|
width: "32",
|
|
4057
4042
|
height: "32",
|
|
@@ -4059,7 +4044,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
4059
4044
|
color: a.toggle ? "primary" : "",
|
|
4060
4045
|
onClick: r.handleMenuToggle
|
|
4061
4046
|
}), {
|
|
4062
|
-
default:
|
|
4047
|
+
default: u(() => e[0] || (e[0] = [
|
|
4063
4048
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
4064
4049
|
])),
|
|
4065
4050
|
_: 2,
|
|
@@ -5074,12 +5059,14 @@ const al = {
|
|
|
5074
5059
|
},
|
|
5075
5060
|
checkList: {
|
|
5076
5061
|
handler(t, e) {
|
|
5077
|
-
|
|
5062
|
+
var o, i, a, r, s, n;
|
|
5063
|
+
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
5064
|
}
|
|
5079
5065
|
},
|
|
5080
5066
|
autoActive: {
|
|
5081
5067
|
handler(t) {
|
|
5082
|
-
|
|
5068
|
+
var e, o, i, a, r, s;
|
|
5069
|
+
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
5070
|
}
|
|
5084
5071
|
},
|
|
5085
5072
|
iceToggleValue: {
|
|
@@ -5147,7 +5134,7 @@ const al = {
|
|
|
5147
5134
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
5148
5135
|
},
|
|
5149
5136
|
async fetchWeatherLayers(t = {}) {
|
|
5150
|
-
var a, r, s,
|
|
5137
|
+
var a, r, s, n, c, g, p, d, f;
|
|
5151
5138
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
5152
5139
|
let o = 0, i = 0;
|
|
5153
5140
|
if (this.map) {
|
|
@@ -5170,8 +5157,8 @@ const al = {
|
|
|
5170
5157
|
}
|
|
5171
5158
|
}
|
|
5172
5159
|
);
|
|
5173
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
5174
|
-
const L = (
|
|
5160
|
+
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) {
|
|
5161
|
+
const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, v = [];
|
|
5175
5162
|
for (const P in L)
|
|
5176
5163
|
v.push(
|
|
5177
5164
|
Be.get(L[P], {
|
|
@@ -5197,7 +5184,7 @@ const al = {
|
|
|
5197
5184
|
});
|
|
5198
5185
|
}
|
|
5199
5186
|
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 = (
|
|
5187
|
+
const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
5201
5188
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5202
5189
|
type: "json",
|
|
5203
5190
|
direction: L,
|
|
@@ -5237,7 +5224,7 @@ const al = {
|
|
|
5237
5224
|
}, 500);
|
|
5238
5225
|
},
|
|
5239
5226
|
handleRampColorInitial() {
|
|
5240
|
-
var t, e, o, i, a, r, s,
|
|
5227
|
+
var t, e, o, i, a, r, s, n, c, g, p, d;
|
|
5241
5228
|
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
5229
|
type: "canvas",
|
|
5243
5230
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -5253,12 +5240,12 @@ const al = {
|
|
|
5253
5240
|
}
|
|
5254
5241
|
},
|
|
5255
5242
|
this.beforeLayer
|
|
5256
|
-
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((
|
|
5243
|
+
), 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
5244
|
type: "canvas",
|
|
5258
|
-
canvas: (
|
|
5245
|
+
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
5259
5246
|
animate: !0,
|
|
5260
5247
|
coordinates: this.viewport.getBoundLngLat()
|
|
5261
|
-
}), this.viewport.map.getLayer((
|
|
5248
|
+
}), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
|
|
5262
5249
|
{
|
|
5263
5250
|
type: "raster",
|
|
5264
5251
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
@@ -5271,10 +5258,10 @@ const al = {
|
|
|
5271
5258
|
);
|
|
5272
5259
|
},
|
|
5273
5260
|
handleDrawWeather4Json() {
|
|
5274
|
-
var
|
|
5261
|
+
var g, p, d, f, z, x, S;
|
|
5275
5262
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
5276
5263
|
let e = 0, o = 0;
|
|
5277
|
-
const i = (
|
|
5264
|
+
const i = (g = this.map) == null ? void 0 : g.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
5265
|
for (const C in this.weatherLayers) {
|
|
5279
5266
|
let N = !1;
|
|
5280
5267
|
if (this.weatherLayers[C].active && this.weatherLayers[C].type === "json") {
|
|
@@ -5283,7 +5270,7 @@ const al = {
|
|
|
5283
5270
|
N = !0;
|
|
5284
5271
|
const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
|
|
5285
5272
|
for (const _ in L)
|
|
5286
|
-
if (_ >
|
|
5273
|
+
if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5287
5274
|
const P = L[_].lng;
|
|
5288
5275
|
r > s ? P.forEach((k, I) => {
|
|
5289
5276
|
var V, X, q, Y, $, ee;
|
|
@@ -5347,7 +5334,7 @@ const al = {
|
|
|
5347
5334
|
N = !0;
|
|
5348
5335
|
const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
|
|
5349
5336
|
for (const _ in L)
|
|
5350
|
-
if (_ >
|
|
5337
|
+
if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5351
5338
|
const P = L[_].lng;
|
|
5352
5339
|
r > s ? P.forEach((k, I) => {
|
|
5353
5340
|
var V, X, q, Y, $, ee;
|
|
@@ -5408,7 +5395,7 @@ const al = {
|
|
|
5408
5395
|
N = !0;
|
|
5409
5396
|
const L = this.weatherLayers.wind.raw;
|
|
5410
5397
|
for (const v in L)
|
|
5411
|
-
if (v >
|
|
5398
|
+
if (v > n && v < c && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5412
5399
|
const _ = L[v].lng;
|
|
5413
5400
|
r > s ? _.forEach((P, k) => {
|
|
5414
5401
|
var I, V, X, q;
|
|
@@ -5531,11 +5518,11 @@ const al = {
|
|
|
5531
5518
|
return t.features.forEach((r) => {
|
|
5532
5519
|
if (r.geometry.type !== "Point")
|
|
5533
5520
|
if (i > a) {
|
|
5534
|
-
let s = [i, e._sw.lat, 180, e._ne.lat],
|
|
5535
|
-
|
|
5521
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], n = E.bboxClip(r, s);
|
|
5522
|
+
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
5523
|
} else {
|
|
5537
|
-
const s = [i, e._sw.lat, a, e._ne.lat],
|
|
5538
|
-
|
|
5524
|
+
const s = [i, e._sw.lat, a, e._ne.lat], n = E.bboxClip(r, s);
|
|
5525
|
+
n.geometry.coordinates.length && o.push(n);
|
|
5539
5526
|
}
|
|
5540
5527
|
else
|
|
5541
5528
|
o.push(r);
|
|
@@ -5560,17 +5547,17 @@ const al = {
|
|
|
5560
5547
|
}, 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
5548
|
function El(t, e, o, i, a, r) {
|
|
5562
5549
|
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
|
|
5563
|
-
const s = w("VBtn"),
|
|
5550
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), g = 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
5551
|
return b(), T("div", il, [
|
|
5565
5552
|
l("div", {
|
|
5566
5553
|
class: "menu-bar-box transition pa-1",
|
|
5567
5554
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
5568
5555
|
}, [
|
|
5569
|
-
m(
|
|
5556
|
+
m(n, {
|
|
5570
5557
|
text: t.$t("weather.weatherLayers"),
|
|
5571
5558
|
location: "left"
|
|
5572
5559
|
}, {
|
|
5573
|
-
activator:
|
|
5560
|
+
activator: u(({ props: H }) => [
|
|
5574
5561
|
m(s, B(H, {
|
|
5575
5562
|
"min-width": "32",
|
|
5576
5563
|
width: "32",
|
|
@@ -5578,7 +5565,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5578
5565
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
5579
5566
|
onClick: r.handleMenuToggle
|
|
5580
5567
|
}), {
|
|
5581
|
-
default:
|
|
5568
|
+
default: u(() => e[7] || (e[7] = [
|
|
5582
5569
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
5583
5570
|
])),
|
|
5584
5571
|
_: 2,
|
|
@@ -5593,11 +5580,11 @@ function El(t, e, o, i, a, r) {
|
|
|
5593
5580
|
class: "menu-bar-box pa-1 rounded",
|
|
5594
5581
|
style: ae({ right: a.right + "px" })
|
|
5595
5582
|
}, [
|
|
5596
|
-
m(
|
|
5583
|
+
m(n, {
|
|
5597
5584
|
text: "Legend",
|
|
5598
5585
|
location: "left"
|
|
5599
5586
|
}, {
|
|
5600
|
-
activator:
|
|
5587
|
+
activator: u(({ props: H }) => [
|
|
5601
5588
|
m(s, B(H, {
|
|
5602
5589
|
"min-width": "32",
|
|
5603
5590
|
width: "32",
|
|
@@ -5605,7 +5592,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5605
5592
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
5606
5593
|
onClick: e[0] || (e[0] = (te) => a.legendToggle = !a.legendToggle)
|
|
5607
5594
|
}), {
|
|
5608
|
-
default:
|
|
5595
|
+
default: u(() => e[8] || (e[8] = [
|
|
5609
5596
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
5610
5597
|
])),
|
|
5611
5598
|
_: 2,
|
|
@@ -5622,18 +5609,18 @@ function El(t, e, o, i, a, r) {
|
|
|
5622
5609
|
class: "card-info d-flex justify-center align-start",
|
|
5623
5610
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5624
5611
|
}, {
|
|
5625
|
-
default:
|
|
5612
|
+
default: u(() => [
|
|
5626
5613
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5627
|
-
default:
|
|
5614
|
+
default: u(() => [
|
|
5628
5615
|
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(
|
|
5616
|
+
m(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5617
|
+
default: u(() => [
|
|
5618
|
+
(b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(c, {
|
|
5632
5619
|
key: H,
|
|
5633
5620
|
cols: "6",
|
|
5634
5621
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5635
5622
|
}, {
|
|
5636
|
-
default:
|
|
5623
|
+
default: u(() => [
|
|
5637
5624
|
l("div", ll, [
|
|
5638
5625
|
l("i", {
|
|
5639
5626
|
class: Ge(["iconfont", r.barbsIconName[te]]),
|
|
@@ -5653,19 +5640,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5653
5640
|
}),
|
|
5654
5641
|
m(d, { vertical: "" }),
|
|
5655
5642
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5656
|
-
default:
|
|
5643
|
+
default: u(() => [
|
|
5657
5644
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
5658
|
-
m(
|
|
5645
|
+
m(g, {
|
|
5659
5646
|
class: "ma-0 ml-1",
|
|
5660
5647
|
style: { width: "100px" }
|
|
5661
5648
|
}, {
|
|
5662
|
-
default:
|
|
5663
|
-
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(
|
|
5649
|
+
default: u(() => [
|
|
5650
|
+
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(c, {
|
|
5664
5651
|
key: te,
|
|
5665
5652
|
cols: "12",
|
|
5666
5653
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5667
5654
|
}, {
|
|
5668
|
-
default:
|
|
5655
|
+
default: u(() => [
|
|
5669
5656
|
l("div", nl, [
|
|
5670
5657
|
te === 0 ? (b(), T("div", cl)) : (b(), T("div", {
|
|
5671
5658
|
key: 1,
|
|
@@ -5685,19 +5672,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5685
5672
|
}),
|
|
5686
5673
|
m(d, { vertical: "" }),
|
|
5687
5674
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5688
|
-
default:
|
|
5675
|
+
default: u(() => [
|
|
5689
5676
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
5690
|
-
m(
|
|
5677
|
+
m(g, {
|
|
5691
5678
|
class: "ma-0 ml-n5",
|
|
5692
5679
|
style: { width: "110px" }
|
|
5693
5680
|
}, {
|
|
5694
|
-
default:
|
|
5695
|
-
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(
|
|
5681
|
+
default: u(() => [
|
|
5682
|
+
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(c, {
|
|
5696
5683
|
key: te,
|
|
5697
5684
|
cols: "12",
|
|
5698
5685
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
5699
5686
|
}, {
|
|
5700
|
-
default:
|
|
5687
|
+
default: u(() => [
|
|
5701
5688
|
l("div", hl, [
|
|
5702
5689
|
l("div", dl, [
|
|
5703
5690
|
l("i", {
|
|
@@ -5739,16 +5726,12 @@ function El(t, e, o, i, a, r) {
|
|
|
5739
5726
|
]),
|
|
5740
5727
|
m(s, {
|
|
5741
5728
|
icon: "",
|
|
5742
|
-
density: "
|
|
5743
|
-
variant: "plain",
|
|
5729
|
+
density: "compact",
|
|
5744
5730
|
class: "mr-n2",
|
|
5745
5731
|
onClick: r.handleMenuToggle
|
|
5746
5732
|
}, {
|
|
5747
|
-
default:
|
|
5748
|
-
l("i", {
|
|
5749
|
-
class: "iconfont icon-close",
|
|
5750
|
-
style: { "font-size": "20px" }
|
|
5751
|
-
}, null, -1)
|
|
5733
|
+
default: u(() => e[12] || (e[12] = [
|
|
5734
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
5752
5735
|
])),
|
|
5753
5736
|
_: 1,
|
|
5754
5737
|
__: [12]
|
|
@@ -5761,14 +5744,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5761
5744
|
class: "menu-card mx-auto mb-3",
|
|
5762
5745
|
elevation: "0"
|
|
5763
5746
|
}, {
|
|
5764
|
-
default:
|
|
5747
|
+
default: u(() => [
|
|
5765
5748
|
m(S, { class: "border-b-thin" }, {
|
|
5766
|
-
default:
|
|
5749
|
+
default: u(() => [
|
|
5767
5750
|
m(x, {
|
|
5768
5751
|
class: "text-subtitle-1 font-weight-medium",
|
|
5769
5752
|
style: { "font-size": "16px !important" }
|
|
5770
5753
|
}, {
|
|
5771
|
-
default:
|
|
5754
|
+
default: u(() => [
|
|
5772
5755
|
G(y(t.$t("weather.overlays")), 1)
|
|
5773
5756
|
]),
|
|
5774
5757
|
_: 1
|
|
@@ -5777,7 +5760,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5777
5760
|
_: 1
|
|
5778
5761
|
}),
|
|
5779
5762
|
m(p, { class: "py-2" }, {
|
|
5780
|
-
default:
|
|
5763
|
+
default: u(() => [
|
|
5781
5764
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (b(), j(C, {
|
|
5782
5765
|
key: H.key,
|
|
5783
5766
|
modelValue: a.checkList,
|
|
@@ -5801,14 +5784,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5801
5784
|
class: "menu-card mx-auto mb-3",
|
|
5802
5785
|
elevation: "0"
|
|
5803
5786
|
}, {
|
|
5804
|
-
default:
|
|
5787
|
+
default: u(() => [
|
|
5805
5788
|
m(S, { class: "border-b-thin" }, {
|
|
5806
|
-
default:
|
|
5789
|
+
default: u(() => [
|
|
5807
5790
|
m(x, {
|
|
5808
5791
|
class: "text-subtitle-1 font-weight-medium",
|
|
5809
5792
|
style: { "font-size": "16px !important" }
|
|
5810
5793
|
}, {
|
|
5811
|
-
default:
|
|
5794
|
+
default: u(() => [
|
|
5812
5795
|
G(y(t.$t("weather.renders")), 1)
|
|
5813
5796
|
]),
|
|
5814
5797
|
_: 1
|
|
@@ -5817,7 +5800,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5817
5800
|
_: 1
|
|
5818
5801
|
}),
|
|
5819
5802
|
m(p, { class: "py-2" }, {
|
|
5820
|
-
default:
|
|
5803
|
+
default: u(() => [
|
|
5821
5804
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), T(ke, {
|
|
5822
5805
|
key: H.key
|
|
5823
5806
|
}, [
|
|
@@ -5873,7 +5856,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5873
5856
|
group: "",
|
|
5874
5857
|
disabled: !a.autoActive
|
|
5875
5858
|
}, {
|
|
5876
|
-
default:
|
|
5859
|
+
default: u(() => [
|
|
5877
5860
|
m(s, {
|
|
5878
5861
|
density: "compact",
|
|
5879
5862
|
height: "30",
|
|
@@ -5883,7 +5866,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5883
5866
|
"base-color": "grey-lighten-1",
|
|
5884
5867
|
disabled: !a.autoActive
|
|
5885
5868
|
}, {
|
|
5886
|
-
default:
|
|
5869
|
+
default: u(() => [
|
|
5887
5870
|
G(y(t.$t("weather.coverage")), 1)
|
|
5888
5871
|
]),
|
|
5889
5872
|
_: 1
|
|
@@ -5897,7 +5880,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5897
5880
|
disabled: !a.autoActive,
|
|
5898
5881
|
value: "ice-thickness"
|
|
5899
5882
|
}, {
|
|
5900
|
-
default:
|
|
5883
|
+
default: u(() => [
|
|
5901
5884
|
G(y(t.$t("weather.thickness")), 1)
|
|
5902
5885
|
]),
|
|
5903
5886
|
_: 1
|
|
@@ -5916,14 +5899,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5916
5899
|
class: "menu-card mx-auto mb-3",
|
|
5917
5900
|
elevation: "0"
|
|
5918
5901
|
}, {
|
|
5919
|
-
default:
|
|
5902
|
+
default: u(() => [
|
|
5920
5903
|
m(S, { class: "border-b-thin" }, {
|
|
5921
|
-
default:
|
|
5904
|
+
default: u(() => [
|
|
5922
5905
|
m(x, {
|
|
5923
5906
|
class: "text-subtitle-1 font-weight-medium",
|
|
5924
5907
|
style: { "font-size": "16px !important" }
|
|
5925
5908
|
}, {
|
|
5926
|
-
default:
|
|
5909
|
+
default: u(() => [
|
|
5927
5910
|
G(y(t.$t("weather.forecastModel")), 1)
|
|
5928
5911
|
]),
|
|
5929
5912
|
_: 1
|
|
@@ -5932,7 +5915,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5932
5915
|
_: 1
|
|
5933
5916
|
}),
|
|
5934
5917
|
m(p, { class: "" }, {
|
|
5935
|
-
default:
|
|
5918
|
+
default: u(() => {
|
|
5936
5919
|
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
5920
|
return [
|
|
5938
5921
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
@@ -6382,21 +6365,21 @@ class Ca {
|
|
|
6382
6365
|
var o, i;
|
|
6383
6366
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
6384
6367
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6385
|
-
for (const
|
|
6386
|
-
let
|
|
6368
|
+
for (const n of a) {
|
|
6369
|
+
let c = eo.find((p) => {
|
|
6387
6370
|
var d, f, z;
|
|
6388
|
-
return ((d = p.models) == null ? void 0 : d.includes(
|
|
6389
|
-
}),
|
|
6371
|
+
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;
|
|
6372
|
+
}), g = to.find((p) => {
|
|
6390
6373
|
var d, f, z;
|
|
6391
|
-
return ((d = p.models) == null ? void 0 : d.includes(
|
|
6374
|
+
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
6375
|
});
|
|
6393
|
-
|
|
6376
|
+
c = c || eo.find((p) => {
|
|
6394
6377
|
var d, f;
|
|
6395
|
-
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f =
|
|
6396
|
-
}),
|
|
6378
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = g == null ? void 0 : g.alias) == null ? void 0 : f.toLowerCase());
|
|
6379
|
+
}), g = g || to.find((p) => {
|
|
6397
6380
|
var d, f;
|
|
6398
|
-
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f =
|
|
6399
|
-
}),
|
|
6381
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = c == null ? void 0 : c.alias) == null ? void 0 : f.toLowerCase());
|
|
6382
|
+
}), c = c || eo[0], g = g || to[0], r.push((o = c.models) != null && o.includes(n) ? n : c.model), s.push((i = g.models) != null && i.includes(n) ? n : g.model);
|
|
6400
6383
|
}
|
|
6401
6384
|
return {
|
|
6402
6385
|
weatherModels: r.join(","),
|
|
@@ -6413,8 +6396,8 @@ class Ca {
|
|
|
6413
6396
|
}), a;
|
|
6414
6397
|
}
|
|
6415
6398
|
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((
|
|
6399
|
+
var i, a, r, s, n, c, g, 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;
|
|
6400
|
+
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 = (g = (c = ge == null ? void 0 : ge[0]) == null ? void 0 : c.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Re = [];
|
|
6418
6401
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6419
6402
|
const R = he.utc().diff(J, "h", !1);
|
|
6420
6403
|
let fe, Ce;
|
|
@@ -6500,17 +6483,17 @@ class Ca {
|
|
|
6500
6483
|
return Re;
|
|
6501
6484
|
}
|
|
6502
6485
|
static toLegacy(e) {
|
|
6503
|
-
var o, i, a, r, s,
|
|
6486
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
6504
6487
|
return {
|
|
6505
6488
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
6506
6489
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
6507
6490
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
6508
6491
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
6509
6492
|
gusts: {
|
|
6510
|
-
kts: (
|
|
6493
|
+
kts: (n = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : n.gusts
|
|
6511
6494
|
},
|
|
6512
|
-
precip: (
|
|
6513
|
-
code: (
|
|
6495
|
+
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
6496
|
+
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
6514
6497
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
6515
6498
|
url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
|
|
6516
6499
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -6522,8 +6505,8 @@ class Ca {
|
|
|
6522
6505
|
};
|
|
6523
6506
|
}
|
|
6524
6507
|
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((
|
|
6508
|
+
var i, a, r, s, n, c, g, 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;
|
|
6509
|
+
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
6510
|
if (Ae.isBetween(te, je, "millisecond", "[]")) {
|
|
6528
6511
|
let he, ge;
|
|
6529
6512
|
const W = Ae.diff(te, "d", !1);
|
|
@@ -6531,7 +6514,7 @@ class Ca {
|
|
|
6531
6514
|
for (const _e of ye) {
|
|
6532
6515
|
const J = _e.daily;
|
|
6533
6516
|
he = {
|
|
6534
|
-
code: (
|
|
6517
|
+
code: (g = J.weather_code) == null ? void 0 : g.at(W),
|
|
6535
6518
|
temp: {
|
|
6536
6519
|
max: (p = J.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
6537
6520
|
min: (d = J.temperature_2m_min) == null ? void 0 : d.at(W),
|
|
@@ -7146,21 +7129,21 @@ const Nl = {
|
|
|
7146
7129
|
async fetchTropicals() {
|
|
7147
7130
|
var a, r, s;
|
|
7148
7131
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7149
|
-
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((
|
|
7132
|
+
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((n) => n.key === "tropicals")) == null ? void 0 : a.weight;
|
|
7150
7133
|
if (i > 0) {
|
|
7151
|
-
const
|
|
7134
|
+
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}`, {
|
|
7152
7135
|
headers: {
|
|
7153
7136
|
Authorization: this.token || this.defaultMeteoToken
|
|
7154
7137
|
}
|
|
7155
7138
|
});
|
|
7156
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
7157
|
-
const
|
|
7158
|
-
await Be.get(
|
|
7139
|
+
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) {
|
|
7140
|
+
const g = (s = c == null ? void 0 : c.data) == null ? void 0 : s.data;
|
|
7141
|
+
await Be.get(g.tropicals, {
|
|
7159
7142
|
headers: {
|
|
7160
7143
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7161
7144
|
key: "tropicals"
|
|
7162
7145
|
},
|
|
7163
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7146
|
+
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
7164
7147
|
}).then((p) => {
|
|
7165
7148
|
var z, x, S;
|
|
7166
7149
|
const d = Pa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
|
|
@@ -7169,7 +7152,7 @@ const Nl = {
|
|
|
7169
7152
|
active: !0,
|
|
7170
7153
|
cached: !0,
|
|
7171
7154
|
type: "json",
|
|
7172
|
-
etime:
|
|
7155
|
+
etime: c.data.etime,
|
|
7173
7156
|
version: Math.random() + 1
|
|
7174
7157
|
}, this.handleInit());
|
|
7175
7158
|
}).catch((p) => {
|
|
@@ -7182,12 +7165,12 @@ const Nl = {
|
|
|
7182
7165
|
handleRefresh() {
|
|
7183
7166
|
var e, o;
|
|
7184
7167
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
7185
|
-
var a, r, s,
|
|
7186
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (
|
|
7168
|
+
var a, r, s, n;
|
|
7169
|
+
((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})]`));
|
|
7187
7170
|
}), this.handleInit();
|
|
7188
7171
|
},
|
|
7189
7172
|
handleInit() {
|
|
7190
|
-
var t, e, o, i, a, r, s,
|
|
7173
|
+
var t, e, o, i, a, r, s, n, c, g;
|
|
7191
7174
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
7192
7175
|
"click",
|
|
7193
7176
|
[
|
|
@@ -7201,10 +7184,10 @@ const Nl = {
|
|
|
7201
7184
|
this.historyPointLabelLayer
|
|
7202
7185
|
],
|
|
7203
7186
|
this.handleClick
|
|
7204
|
-
)), ((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) : (
|
|
7187
|
+
)), ((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) : (g = (c = (n = this.$parent) == null ? void 0 : n.$refs) == null ? void 0 : c.idmBottomBar) == null || g.handleToggle("tropical", !1);
|
|
7205
7188
|
},
|
|
7206
7189
|
handleRender() {
|
|
7207
|
-
var t, e, o, i, a, r, s,
|
|
7190
|
+
var t, e, o, i, a, r, s, n, c, g;
|
|
7208
7191
|
if (!this.map)
|
|
7209
7192
|
setTimeout(() => {
|
|
7210
7193
|
this.handleRender();
|
|
@@ -7310,9 +7293,9 @@ const Nl = {
|
|
|
7310
7293
|
],
|
|
7311
7294
|
"text-halo-width": 4
|
|
7312
7295
|
}
|
|
7313
|
-
}), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((
|
|
7296
|
+
}), 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, {
|
|
7314
7297
|
type: "geojson",
|
|
7315
|
-
data: (
|
|
7298
|
+
data: (c = this.tropicals) != null && c.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
|
|
7316
7299
|
// cluster: true,
|
|
7317
7300
|
// clusterRadius: 10, // 聚合半径
|
|
7318
7301
|
}), this.map.addLayer({
|
|
@@ -7451,7 +7434,7 @@ const Nl = {
|
|
|
7451
7434
|
), this.showTropicalsInfo = !1;
|
|
7452
7435
|
},
|
|
7453
7436
|
handleDateChange() {
|
|
7454
|
-
var t, e, o, i, a, r, s,
|
|
7437
|
+
var t, e, o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q;
|
|
7455
7438
|
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) {
|
|
7456
7439
|
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]);
|
|
7457
7440
|
pe.forEach((K) => {
|
|
@@ -7473,7 +7456,7 @@ const Nl = {
|
|
|
7473
7456
|
for (const K of de)
|
|
7474
7457
|
if (!K.properties.disabled) {
|
|
7475
7458
|
let ie = "#f44336";
|
|
7476
|
-
((
|
|
7459
|
+
((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = K.properties) == null ? void 0 : c.wind) != null && g.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";
|
|
7477
7460
|
const ue = `<svg t="1719918955501"
|
|
7478
7461
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7479
7462
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7497,20 +7480,20 @@ const Nl = {
|
|
|
7497
7480
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
7498
7481
|
},
|
|
7499
7482
|
handleClick(t) {
|
|
7500
|
-
var r, s,
|
|
7483
|
+
var r, s, n, c, g, p, d, f;
|
|
7501
7484
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7502
7485
|
(z) => {
|
|
7503
7486
|
var x;
|
|
7504
7487
|
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7505
7488
|
}
|
|
7506
|
-
), i = (
|
|
7489
|
+
), i = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
|
|
7507
7490
|
(z) => {
|
|
7508
7491
|
var x;
|
|
7509
7492
|
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7510
7493
|
}
|
|
7511
7494
|
);
|
|
7512
7495
|
this.activeTropicals = {
|
|
7513
|
-
name: (
|
|
7496
|
+
name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
|
|
7514
7497
|
forecasts: o.map((z) => z.properties),
|
|
7515
7498
|
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
7516
7499
|
showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
@@ -7519,14 +7502,14 @@ const Nl = {
|
|
|
7519
7502
|
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);
|
|
7520
7503
|
},
|
|
7521
7504
|
handleForecastToggle(t) {
|
|
7522
|
-
var i, a, r, s,
|
|
7505
|
+
var i, a, r, s, n, c;
|
|
7523
7506
|
t.disabled = !t.disabled;
|
|
7524
7507
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
7525
|
-
o.forEach((
|
|
7526
|
-
|
|
7527
|
-
}), this.interpolateData.forEach((
|
|
7528
|
-
|
|
7529
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(E.featureCollection(o)), (
|
|
7508
|
+
o.forEach((g) => {
|
|
7509
|
+
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
7510
|
+
}), this.interpolateData.forEach((g) => {
|
|
7511
|
+
g.properties.category === e && (g.properties.disabled = t.disabled);
|
|
7512
|
+
}), (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();
|
|
7530
7513
|
},
|
|
7531
7514
|
handleStrikeProbability(t) {
|
|
7532
7515
|
this.$emit("tropicalProbability", t);
|
|
@@ -7570,8 +7553,8 @@ const Nl = {
|
|
|
7570
7553
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
7571
7554
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
7572
7555
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
7573
|
-
},
|
|
7574
|
-
e.push(
|
|
7556
|
+
}, n = this.handleComputeArc(o.geometry.coordinates, s, { ...o.properties, level: 10 });
|
|
7557
|
+
e.push(n);
|
|
7575
7558
|
}
|
|
7576
7559
|
return e;
|
|
7577
7560
|
},
|
|
@@ -7579,23 +7562,23 @@ const Nl = {
|
|
|
7579
7562
|
var r;
|
|
7580
7563
|
const i = [];
|
|
7581
7564
|
for (const s in e) {
|
|
7582
|
-
const
|
|
7583
|
-
let
|
|
7565
|
+
const n = e[s] ?? 0;
|
|
7566
|
+
let c;
|
|
7584
7567
|
switch (s) {
|
|
7585
7568
|
case "ne":
|
|
7586
|
-
|
|
7569
|
+
c = E.lineArc(t, n, 0, 90, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7587
7570
|
break;
|
|
7588
7571
|
case "se":
|
|
7589
|
-
|
|
7572
|
+
c = E.lineArc(t, n, 90, 180, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7590
7573
|
break;
|
|
7591
7574
|
case "sw":
|
|
7592
|
-
|
|
7575
|
+
c = E.lineArc(t, n, 180, 270, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7593
7576
|
break;
|
|
7594
7577
|
case "nw":
|
|
7595
|
-
|
|
7578
|
+
c = E.lineArc(t, n, 270, 360, { steps: n > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7596
7579
|
break;
|
|
7597
7580
|
}
|
|
7598
|
-
i.push(...(r =
|
|
7581
|
+
i.push(...(r = c == null ? void 0 : c.geometry) == null ? void 0 : r.coordinates);
|
|
7599
7582
|
}
|
|
7600
7583
|
const a = E.lineString(i);
|
|
7601
7584
|
return E.lineToPolygon(a, { properties: o });
|
|
@@ -7615,17 +7598,17 @@ const Nl = {
|
|
|
7615
7598
|
style: { height: "80px" }
|
|
7616
7599
|
}, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
7617
7600
|
function is(t, e, o, i, a, r) {
|
|
7618
|
-
const s = w("VBtn"),
|
|
7601
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardText"), g = w("VDivider"), p = w("VCardActions"), d = w("VCard");
|
|
7619
7602
|
return b(), T("div", Fl, [
|
|
7620
7603
|
l("div", {
|
|
7621
7604
|
class: "menu-bar-box transition pa-1",
|
|
7622
7605
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
7623
7606
|
}, [
|
|
7624
|
-
m(
|
|
7607
|
+
m(n, {
|
|
7625
7608
|
text: t.$t("tropical.tropicals"),
|
|
7626
7609
|
location: "left"
|
|
7627
7610
|
}, {
|
|
7628
|
-
activator:
|
|
7611
|
+
activator: u(({ props: f }) => [
|
|
7629
7612
|
m(s, B(f, {
|
|
7630
7613
|
"min-width": "32",
|
|
7631
7614
|
width: "32",
|
|
@@ -7633,7 +7616,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7633
7616
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7634
7617
|
onClick: r.handleMenuToggle
|
|
7635
7618
|
}), {
|
|
7636
|
-
default:
|
|
7619
|
+
default: u(() => e[4] || (e[4] = [
|
|
7637
7620
|
l("i", { class: "iconfont icon-a-Tropicalcyclone text-h4" }, null, -1)
|
|
7638
7621
|
])),
|
|
7639
7622
|
_: 2,
|
|
@@ -7648,9 +7631,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7648
7631
|
width: "400",
|
|
7649
7632
|
elevation: "16"
|
|
7650
7633
|
}, {
|
|
7651
|
-
default:
|
|
7652
|
-
m(
|
|
7653
|
-
default:
|
|
7634
|
+
default: u(() => [
|
|
7635
|
+
m(c, null, {
|
|
7636
|
+
default: u(() => {
|
|
7654
7637
|
var f, z, x, S, C, N, M, L, v, _;
|
|
7655
7638
|
return [
|
|
7656
7639
|
l("div", Wl, [
|
|
@@ -7658,49 +7641,53 @@ function is(t, e, o, i, a, r) {
|
|
|
7658
7641
|
(x = (z = a.activeTropicals) == null ? void 0 : z.history) != null && x.level ? (b(), T("span", Ul, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : O("", !0)
|
|
7659
7642
|
]),
|
|
7660
7643
|
m(s, {
|
|
7661
|
-
icon: "
|
|
7662
|
-
size: "small",
|
|
7644
|
+
icon: "",
|
|
7663
7645
|
density: "compact",
|
|
7664
|
-
variant: "text",
|
|
7665
7646
|
class: "close",
|
|
7666
7647
|
onClick: e[0] || (e[0] = (P) => a.showTropicalsInfo = !1)
|
|
7648
|
+
}, {
|
|
7649
|
+
default: u(() => e[5] || (e[5] = [
|
|
7650
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
7651
|
+
])),
|
|
7652
|
+
_: 1,
|
|
7653
|
+
__: [5]
|
|
7667
7654
|
}),
|
|
7668
7655
|
l("div", Vl, [
|
|
7669
|
-
e[
|
|
7656
|
+
e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
7670
7657
|
l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((_ = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : _.date))), 1)
|
|
7671
7658
|
])
|
|
7672
7659
|
];
|
|
7673
7660
|
}),
|
|
7674
7661
|
_: 1
|
|
7675
7662
|
}),
|
|
7676
|
-
m(
|
|
7677
|
-
m(
|
|
7678
|
-
default:
|
|
7663
|
+
m(g),
|
|
7664
|
+
m(c, { class: "text-body-1" }, {
|
|
7665
|
+
default: u(() => {
|
|
7679
7666
|
var f, z, x, S, C, N, M, L, v;
|
|
7680
7667
|
return [
|
|
7681
7668
|
l("div", Yl, [
|
|
7682
7669
|
l("div", Zl, [
|
|
7683
|
-
e[
|
|
7670
|
+
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
7684
7671
|
l("span", null, y(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
7685
7672
|
l("span", null, ", BF " + y(r.computeBF(((S = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : S.kts) || "-")), 1)
|
|
7686
7673
|
]),
|
|
7687
7674
|
l("div", Xl, [
|
|
7688
|
-
e[
|
|
7675
|
+
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
7689
7676
|
l("span", null, y(((N = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : N.pressure) || "-") + " hPa", 1)
|
|
7690
7677
|
])
|
|
7691
7678
|
]),
|
|
7692
7679
|
l("div", ql, [
|
|
7693
7680
|
l("div", Kl, [
|
|
7694
|
-
e[
|
|
7681
|
+
e[9] || (e[9] = l("label", { class: "opacity-70 pr-1" }, "Move Speed : ", -1)),
|
|
7695
7682
|
l("span", null, y(((M = r.computeMovement(a.activeTropicals)) == null ? void 0 : M.kts) || "-") + " kts", 1)
|
|
7696
7683
|
]),
|
|
7697
7684
|
l("div", Ql, [
|
|
7698
|
-
e[
|
|
7685
|
+
e[10] || (e[10] = l("label", { class: "opacity-70 pr-1" }, "Move Dir : ", -1)),
|
|
7699
7686
|
l("span", null, y(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
7700
7687
|
])
|
|
7701
7688
|
]),
|
|
7702
7689
|
l("div", Jl, [
|
|
7703
|
-
e[
|
|
7690
|
+
e[11] || (e[11] = l("label", {
|
|
7704
7691
|
class: "opacity-70 pr-1",
|
|
7705
7692
|
style: { width: "max-content" }
|
|
7706
7693
|
}, "Forecast Models : ", -1)),
|
|
@@ -7713,7 +7700,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7713
7700
|
class: Ge(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
|
|
7714
7701
|
onClick: (k) => r.handleForecastToggle(_)
|
|
7715
7702
|
}, {
|
|
7716
|
-
default:
|
|
7703
|
+
default: u(() => [
|
|
7717
7704
|
G(y(_.model), 1)
|
|
7718
7705
|
]),
|
|
7719
7706
|
_: 2
|
|
@@ -7724,9 +7711,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7724
7711
|
}),
|
|
7725
7712
|
_: 1
|
|
7726
7713
|
}),
|
|
7727
|
-
m(
|
|
7714
|
+
m(g),
|
|
7728
7715
|
m(p, { class: "d-flex justify-space-between" }, {
|
|
7729
|
-
default:
|
|
7716
|
+
default: u(() => [
|
|
7730
7717
|
m(s, {
|
|
7731
7718
|
density: "compact",
|
|
7732
7719
|
"prepend-icon": "",
|
|
@@ -7735,14 +7722,14 @@ function is(t, e, o, i, a, r) {
|
|
|
7735
7722
|
class: "text-none text-body-1",
|
|
7736
7723
|
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
7737
7724
|
}, {
|
|
7738
|
-
prepend:
|
|
7725
|
+
prepend: u(() => e[12] || (e[12] = [
|
|
7739
7726
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7740
7727
|
])),
|
|
7741
|
-
default:
|
|
7742
|
-
e[
|
|
7728
|
+
default: u(() => [
|
|
7729
|
+
e[13] || (e[13] = G(" Legend ", -1))
|
|
7743
7730
|
]),
|
|
7744
7731
|
_: 1,
|
|
7745
|
-
__: [
|
|
7732
|
+
__: [13]
|
|
7746
7733
|
}, 8, ["color"]),
|
|
7747
7734
|
l("div", es, [
|
|
7748
7735
|
o.permission & a.helper.LEVEL.Supper ? (b(), j(s, {
|
|
@@ -7752,11 +7739,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7752
7739
|
class: "text-none text-body-1",
|
|
7753
7740
|
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
7754
7741
|
}, {
|
|
7755
|
-
default:
|
|
7742
|
+
default: u(() => e[14] || (e[14] = [
|
|
7756
7743
|
G("Notify", -1)
|
|
7757
7744
|
])),
|
|
7758
7745
|
_: 1,
|
|
7759
|
-
__: [
|
|
7746
|
+
__: [14]
|
|
7760
7747
|
})) : O("", !0),
|
|
7761
7748
|
m(s, {
|
|
7762
7749
|
variant: "text",
|
|
@@ -7765,11 +7752,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7765
7752
|
class: "text-none text-body-1",
|
|
7766
7753
|
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
7767
7754
|
}, {
|
|
7768
|
-
default:
|
|
7755
|
+
default: u(() => e[15] || (e[15] = [
|
|
7769
7756
|
G("View Report", -1)
|
|
7770
7757
|
])),
|
|
7771
7758
|
_: 1,
|
|
7772
|
-
__: [
|
|
7759
|
+
__: [15]
|
|
7773
7760
|
})
|
|
7774
7761
|
])
|
|
7775
7762
|
]),
|
|
@@ -7783,10 +7770,10 @@ function is(t, e, o, i, a, r) {
|
|
|
7783
7770
|
width: "400",
|
|
7784
7771
|
elevation: "16"
|
|
7785
7772
|
}, {
|
|
7786
|
-
default:
|
|
7787
|
-
m(
|
|
7788
|
-
default:
|
|
7789
|
-
He(l("div", os, e[
|
|
7773
|
+
default: u(() => [
|
|
7774
|
+
m(c, null, {
|
|
7775
|
+
default: u(() => [
|
|
7776
|
+
He(l("div", os, e[16] || (e[16] = [
|
|
7790
7777
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7791
7778
|
l("div", { class: "icon td" }),
|
|
7792
7779
|
l("div", { class: "label" }, "TD")
|
|
@@ -7814,7 +7801,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7814
7801
|
]), 512), [
|
|
7815
7802
|
[We, a.showLegend]
|
|
7816
7803
|
]),
|
|
7817
|
-
He(l("div", as, e[
|
|
7804
|
+
He(l("div", as, e[17] || (e[17] = [
|
|
7818
7805
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7819
7806
|
l("div", { class: "icon history" }),
|
|
7820
7807
|
l("div", { class: "label" }, "History")
|
|
@@ -8009,7 +7996,7 @@ const rs = {
|
|
|
8009
7996
|
style: { height: "56px" }
|
|
8010
7997
|
};
|
|
8011
7998
|
function ms(t, e, o, i, a, r) {
|
|
8012
|
-
const s = w("VBtn"),
|
|
7999
|
+
const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
|
|
8013
8000
|
return b(), T("div", ls, [
|
|
8014
8001
|
m(s, {
|
|
8015
8002
|
text: "",
|
|
@@ -8017,7 +8004,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8017
8004
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
8018
8005
|
onClick: r.handleOpenDatePicker
|
|
8019
8006
|
}, {
|
|
8020
|
-
default:
|
|
8007
|
+
default: u(() => [
|
|
8021
8008
|
G(y(a.currentDateTime) + " | UTC " + y(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
8022
8009
|
]),
|
|
8023
8010
|
_: 1
|
|
@@ -8026,11 +8013,11 @@ function ms(t, e, o, i, a, r) {
|
|
|
8026
8013
|
key: 0,
|
|
8027
8014
|
class: "card-box d-flex flex-column"
|
|
8028
8015
|
}, {
|
|
8029
|
-
default:
|
|
8016
|
+
default: u(() => [
|
|
8030
8017
|
m(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
8031
|
-
default:
|
|
8018
|
+
default: u(() => [
|
|
8032
8019
|
l("div", ss, [
|
|
8033
|
-
m(
|
|
8020
|
+
m(n, {
|
|
8034
8021
|
modelValue: a.currentDate,
|
|
8035
8022
|
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
|
|
8036
8023
|
min: a.dateRange[0],
|
|
@@ -8044,14 +8031,14 @@ function ms(t, e, o, i, a, r) {
|
|
|
8044
8031
|
"onUpdate:month": r.handleUpdateMonth
|
|
8045
8032
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
8046
8033
|
]),
|
|
8047
|
-
m(
|
|
8034
|
+
m(c, {
|
|
8048
8035
|
class: "h-100",
|
|
8049
8036
|
vertical: ""
|
|
8050
8037
|
}),
|
|
8051
8038
|
l("div", ns, [
|
|
8052
8039
|
l("div", cs, y(a.currentTime), 1),
|
|
8053
8040
|
m(d, { class: "pa-0 flex-1-1-0" }, {
|
|
8054
|
-
default:
|
|
8041
|
+
default: u(() => [
|
|
8055
8042
|
(b(!0), T(ke, null, Le(r.hourOptions, (S, C) => (b(), j(p, {
|
|
8056
8043
|
key: C,
|
|
8057
8044
|
value: S,
|
|
@@ -8061,12 +8048,12 @@ function ms(t, e, o, i, a, r) {
|
|
|
8061
8048
|
height: "26",
|
|
8062
8049
|
"min-height": "26"
|
|
8063
8050
|
}, {
|
|
8064
|
-
default:
|
|
8065
|
-
m(
|
|
8051
|
+
default: u(() => [
|
|
8052
|
+
m(g, {
|
|
8066
8053
|
class: "text-body-2 text-center",
|
|
8067
8054
|
onClick: (N) => a.currentTime = S
|
|
8068
8055
|
}, {
|
|
8069
|
-
default:
|
|
8056
|
+
default: u(() => [
|
|
8070
8057
|
G(y(S), 1)
|
|
8071
8058
|
]),
|
|
8072
8059
|
_: 2
|
|
@@ -8081,19 +8068,19 @@ function ms(t, e, o, i, a, r) {
|
|
|
8081
8068
|
]),
|
|
8082
8069
|
_: 1
|
|
8083
8070
|
}),
|
|
8084
|
-
m(
|
|
8071
|
+
m(c),
|
|
8085
8072
|
m(z, {
|
|
8086
8073
|
class: "justify-end pa-0 pr-4",
|
|
8087
8074
|
style: { height: "50px" }
|
|
8088
8075
|
}, {
|
|
8089
|
-
default:
|
|
8076
|
+
default: u(() => [
|
|
8090
8077
|
m(s, {
|
|
8091
8078
|
size: "small",
|
|
8092
8079
|
variant: "tonal",
|
|
8093
8080
|
class: "text-none",
|
|
8094
8081
|
onClick: r.handleCancelDate
|
|
8095
8082
|
}, {
|
|
8096
|
-
default:
|
|
8083
|
+
default: u(() => e[1] || (e[1] = [
|
|
8097
8084
|
G("Cancel", -1)
|
|
8098
8085
|
])),
|
|
8099
8086
|
_: 1,
|
|
@@ -8106,7 +8093,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8106
8093
|
class: "text-none",
|
|
8107
8094
|
onClick: r.handleConfirmDate
|
|
8108
8095
|
}, {
|
|
8109
|
-
default:
|
|
8096
|
+
default: u(() => e[2] || (e[2] = [
|
|
8110
8097
|
G("Confirm", -1)
|
|
8111
8098
|
])),
|
|
8112
8099
|
_: 1,
|
|
@@ -8305,9 +8292,9 @@ const hs = {
|
|
|
8305
8292
|
}
|
|
8306
8293
|
});
|
|
8307
8294
|
},
|
|
8308
|
-
|
|
8309
|
-
var t
|
|
8310
|
-
|
|
8295
|
+
cancelForm() {
|
|
8296
|
+
var t;
|
|
8297
|
+
(t = this.$refs.spotForm) == null || t.reset(), this.form = {
|
|
8311
8298
|
lng: void 0,
|
|
8312
8299
|
lngDegree: void 0,
|
|
8313
8300
|
lngMinute: void 0,
|
|
@@ -8318,7 +8305,11 @@ const hs = {
|
|
|
8318
8305
|
latDirection: "N",
|
|
8319
8306
|
dateTime: void 0,
|
|
8320
8307
|
forecastModel: this.forecastModel
|
|
8321
|
-
}
|
|
8308
|
+
};
|
|
8309
|
+
},
|
|
8310
|
+
handleCloseForm() {
|
|
8311
|
+
var t;
|
|
8312
|
+
this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1), (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0;
|
|
8322
8313
|
},
|
|
8323
8314
|
async fetchMeteoData(t) {
|
|
8324
8315
|
this.loading = !0, this.meteoData = [];
|
|
@@ -8355,10 +8346,10 @@ const hs = {
|
|
|
8355
8346
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
8356
8347
|
},
|
|
8357
8348
|
initTableData(t) {
|
|
8358
|
-
var o, i, a, r, s,
|
|
8349
|
+
var o, i, a, r, s, n, c, g, 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;
|
|
8359
8350
|
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;
|
|
8360
8351
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
8361
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((
|
|
8352
|
+
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((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.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;
|
|
8362
8353
|
},
|
|
8363
8354
|
handleBind() {
|
|
8364
8355
|
var t, e;
|
|
@@ -8407,8 +8398,8 @@ const hs = {
|
|
|
8407
8398
|
this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
|
|
8408
8399
|
},
|
|
8409
8400
|
handleCloseMeteo() {
|
|
8410
|
-
var t;
|
|
8411
|
-
this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
|
|
8401
|
+
var t, e;
|
|
8402
|
+
this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
|
|
8412
8403
|
},
|
|
8413
8404
|
handleFollow() {
|
|
8414
8405
|
this.$emit("follow", "point", this.point);
|
|
@@ -8428,17 +8419,17 @@ const hs = {
|
|
|
8428
8419
|
"aria-hidden": "true"
|
|
8429
8420
|
}, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
|
|
8430
8421
|
function Cs(t, e, o, i, a, r) {
|
|
8431
|
-
const s = w("VBtn"),
|
|
8422
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = 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");
|
|
8432
8423
|
return b(), T("div", ds, [
|
|
8433
8424
|
l("div", {
|
|
8434
8425
|
class: "menu-bar-box transition pa-1",
|
|
8435
8426
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
8436
8427
|
}, [
|
|
8437
|
-
m(
|
|
8428
|
+
m(n, {
|
|
8438
8429
|
text: t.$t("spot.spotsMeteo"),
|
|
8439
8430
|
location: "left"
|
|
8440
8431
|
}, {
|
|
8441
|
-
activator:
|
|
8432
|
+
activator: u(({ props: v }) => [
|
|
8442
8433
|
m(s, B(v, {
|
|
8443
8434
|
"min-width": "32",
|
|
8444
8435
|
width: "32",
|
|
@@ -8446,7 +8437,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8446
8437
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
8447
8438
|
onClick: r.handleMenuToggle
|
|
8448
8439
|
}), {
|
|
8449
|
-
default:
|
|
8440
|
+
default: u(() => e[8] || (e[8] = [
|
|
8450
8441
|
l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
8451
8442
|
])),
|
|
8452
8443
|
_: 2,
|
|
@@ -8461,24 +8452,20 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8461
8452
|
class: "spot-form-card",
|
|
8462
8453
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8463
8454
|
}, {
|
|
8464
|
-
default:
|
|
8465
|
-
m(
|
|
8466
|
-
default:
|
|
8455
|
+
default: u(() => [
|
|
8456
|
+
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8457
|
+
default: u(() => [
|
|
8467
8458
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
8468
8459
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
8469
8460
|
], -1)),
|
|
8470
8461
|
m(s, {
|
|
8471
8462
|
icon: "",
|
|
8472
|
-
density: "
|
|
8473
|
-
variant: "plain",
|
|
8463
|
+
density: "compact",
|
|
8474
8464
|
class: "mr-n2",
|
|
8475
8465
|
onClick: r.handleCloseForm
|
|
8476
8466
|
}, {
|
|
8477
|
-
default:
|
|
8478
|
-
l("i", {
|
|
8479
|
-
class: "iconfont icon-close",
|
|
8480
|
-
style: { "font-size": "20px" }
|
|
8481
|
-
}, null, -1)
|
|
8467
|
+
default: u(() => e[9] || (e[9] = [
|
|
8468
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
8482
8469
|
])),
|
|
8483
8470
|
_: 1,
|
|
8484
8471
|
__: [9]
|
|
@@ -8487,16 +8474,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8487
8474
|
_: 1,
|
|
8488
8475
|
__: [10]
|
|
8489
8476
|
}),
|
|
8490
|
-
m(
|
|
8477
|
+
m(g),
|
|
8491
8478
|
m(N, { class: "text-body-1 py-1" }, {
|
|
8492
|
-
default:
|
|
8479
|
+
default: u(() => [
|
|
8493
8480
|
m(C, {
|
|
8494
8481
|
ref: "spotForm",
|
|
8495
8482
|
autocomplete: "off",
|
|
8496
8483
|
class: "form-box",
|
|
8497
8484
|
onSubmit: Aa(r.submitForm, ["prevent"])
|
|
8498
8485
|
}, {
|
|
8499
|
-
default:
|
|
8486
|
+
default: u(() => [
|
|
8500
8487
|
l("div", ps, [
|
|
8501
8488
|
(b(), T("svg", us, [
|
|
8502
8489
|
l("use", {
|
|
@@ -8506,12 +8493,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8506
8493
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8507
8494
|
]),
|
|
8508
8495
|
m(f, { class: "ma-0" }, {
|
|
8509
|
-
default:
|
|
8496
|
+
default: u(() => [
|
|
8510
8497
|
m(d, {
|
|
8511
8498
|
cols: "4",
|
|
8512
8499
|
class: "pa-0 d-flex"
|
|
8513
8500
|
}, {
|
|
8514
|
-
default:
|
|
8501
|
+
default: u(() => [
|
|
8515
8502
|
m(p, {
|
|
8516
8503
|
modelValue: a.form.lngDegree,
|
|
8517
8504
|
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
|
|
@@ -8530,7 +8517,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8530
8517
|
cols: "6",
|
|
8531
8518
|
class: "pa-0 d-flex"
|
|
8532
8519
|
}, {
|
|
8533
|
-
default:
|
|
8520
|
+
default: u(() => [
|
|
8534
8521
|
m(p, {
|
|
8535
8522
|
modelValue: a.form.lngMinute,
|
|
8536
8523
|
"onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
|
|
@@ -8550,7 +8537,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8550
8537
|
cols: "2",
|
|
8551
8538
|
class: "pa-0"
|
|
8552
8539
|
}, {
|
|
8553
|
-
default:
|
|
8540
|
+
default: u(() => [
|
|
8554
8541
|
m(s, {
|
|
8555
8542
|
variant: "outlined",
|
|
8556
8543
|
density: "compact",
|
|
@@ -8561,7 +8548,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8561
8548
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8562
8549
|
onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8563
8550
|
}, {
|
|
8564
|
-
default:
|
|
8551
|
+
default: u(() => [
|
|
8565
8552
|
G(y(a.form.lngDirection), 1)
|
|
8566
8553
|
]),
|
|
8567
8554
|
_: 1
|
|
@@ -8581,12 +8568,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8581
8568
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8582
8569
|
]),
|
|
8583
8570
|
m(f, { class: "ma-0" }, {
|
|
8584
|
-
default:
|
|
8571
|
+
default: u(() => [
|
|
8585
8572
|
m(d, {
|
|
8586
8573
|
cols: "4",
|
|
8587
8574
|
class: "pa-0 d-flex"
|
|
8588
8575
|
}, {
|
|
8589
|
-
default:
|
|
8576
|
+
default: u(() => [
|
|
8590
8577
|
m(p, {
|
|
8591
8578
|
modelValue: a.form.latDegree,
|
|
8592
8579
|
"onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
|
|
@@ -8608,7 +8595,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8608
8595
|
cols: "6",
|
|
8609
8596
|
class: "pa-0 d-flex"
|
|
8610
8597
|
}, {
|
|
8611
|
-
default:
|
|
8598
|
+
default: u(() => [
|
|
8612
8599
|
m(p, {
|
|
8613
8600
|
modelValue: a.form.latMinute,
|
|
8614
8601
|
"onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
|
|
@@ -8628,7 +8615,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8628
8615
|
cols: "2",
|
|
8629
8616
|
class: "pa-0"
|
|
8630
8617
|
}, {
|
|
8631
|
-
default:
|
|
8618
|
+
default: u(() => [
|
|
8632
8619
|
m(s, {
|
|
8633
8620
|
variant: "outlined",
|
|
8634
8621
|
density: "compact",
|
|
@@ -8639,7 +8626,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8639
8626
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8640
8627
|
onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8641
8628
|
}, {
|
|
8642
|
-
default:
|
|
8629
|
+
default: u(() => [
|
|
8643
8630
|
G(y(a.form.latDirection), 1)
|
|
8644
8631
|
]),
|
|
8645
8632
|
_: 1
|
|
@@ -8653,18 +8640,18 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8653
8640
|
l("div", ws, [
|
|
8654
8641
|
(b(), T("svg", xs, [
|
|
8655
8642
|
l("use", {
|
|
8656
|
-
"xlink:href": `#icon-
|
|
8643
|
+
"xlink:href": `#icon-date-time-${o.theme}`
|
|
8657
8644
|
}, null, 8, vs)
|
|
8658
8645
|
])),
|
|
8659
8646
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8660
8647
|
]),
|
|
8661
8648
|
m(f, { class: "ma-0 mb-4" }, {
|
|
8662
|
-
default:
|
|
8649
|
+
default: u(() => [
|
|
8663
8650
|
m(d, {
|
|
8664
8651
|
cols: "12",
|
|
8665
8652
|
class: "pa-0"
|
|
8666
8653
|
}, {
|
|
8667
|
-
default:
|
|
8654
|
+
default: u(() => [
|
|
8668
8655
|
m(z, B({
|
|
8669
8656
|
"date-time": a.form.dateTime,
|
|
8670
8657
|
"time-zone": o.timeZone
|
|
@@ -8680,18 +8667,18 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8680
8667
|
l("div", _s, [
|
|
8681
8668
|
(b(), T("svg", ks, [
|
|
8682
8669
|
l("use", {
|
|
8683
|
-
"xlink:href": `#icon-
|
|
8670
|
+
"xlink:href": `#icon-forecast-model-${o.theme}`
|
|
8684
8671
|
}, null, 8, zs)
|
|
8685
8672
|
])),
|
|
8686
8673
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8687
8674
|
]),
|
|
8688
8675
|
m(f, { class: "ma-0 mb-2" }, {
|
|
8689
|
-
default:
|
|
8676
|
+
default: u(() => [
|
|
8690
8677
|
m(d, {
|
|
8691
8678
|
cols: "12",
|
|
8692
8679
|
class: "pa-0"
|
|
8693
8680
|
}, {
|
|
8694
|
-
default:
|
|
8681
|
+
default: u(() => [
|
|
8695
8682
|
m(x, {
|
|
8696
8683
|
modelValue: a.form.forecastModel,
|
|
8697
8684
|
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
@@ -8701,7 +8688,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8701
8688
|
density: "compact",
|
|
8702
8689
|
group: ""
|
|
8703
8690
|
}, {
|
|
8704
|
-
default:
|
|
8691
|
+
default: u(() => [
|
|
8705
8692
|
m(s, {
|
|
8706
8693
|
density: "compact",
|
|
8707
8694
|
height: "30",
|
|
@@ -8710,7 +8697,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8710
8697
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
8711
8698
|
"base-color": ""
|
|
8712
8699
|
}, {
|
|
8713
|
-
default:
|
|
8700
|
+
default: u(() => e[19] || (e[19] = [
|
|
8714
8701
|
G("NOAA", -1)
|
|
8715
8702
|
])),
|
|
8716
8703
|
_: 1,
|
|
@@ -8724,7 +8711,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8724
8711
|
"base-color": "",
|
|
8725
8712
|
value: "ECMWF"
|
|
8726
8713
|
}, {
|
|
8727
|
-
default:
|
|
8714
|
+
default: u(() => e[20] || (e[20] = [
|
|
8728
8715
|
G("ECMWF", -1)
|
|
8729
8716
|
])),
|
|
8730
8717
|
_: 1,
|
|
@@ -8739,16 +8726,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8739
8726
|
]),
|
|
8740
8727
|
_: 1
|
|
8741
8728
|
}),
|
|
8742
|
-
m(
|
|
8729
|
+
m(g),
|
|
8743
8730
|
m(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8744
|
-
default:
|
|
8731
|
+
default: u(() => [
|
|
8745
8732
|
m(s, {
|
|
8746
8733
|
size: "small",
|
|
8747
8734
|
variant: "outlined",
|
|
8748
8735
|
class: "text-none text-body-1",
|
|
8749
|
-
onClick: r.
|
|
8736
|
+
onClick: r.cancelForm
|
|
8750
8737
|
}, {
|
|
8751
|
-
default:
|
|
8738
|
+
default: u(() => e[21] || (e[21] = [
|
|
8752
8739
|
G("Clear", -1)
|
|
8753
8740
|
])),
|
|
8754
8741
|
_: 1,
|
|
@@ -8762,7 +8749,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8762
8749
|
type: "submit",
|
|
8763
8750
|
class: "text-none text-body-1"
|
|
8764
8751
|
}, {
|
|
8765
|
-
default:
|
|
8752
|
+
default: u(() => e[22] || (e[22] = [
|
|
8766
8753
|
G("Confirm", -1)
|
|
8767
8754
|
])),
|
|
8768
8755
|
_: 1,
|
|
@@ -8785,9 +8772,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8785
8772
|
class: "spot-meteo",
|
|
8786
8773
|
style: { width: "490px", "z-index": "9" }
|
|
8787
8774
|
}, {
|
|
8788
|
-
default:
|
|
8789
|
-
m(
|
|
8790
|
-
default:
|
|
8775
|
+
default: u(() => [
|
|
8776
|
+
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8777
|
+
default: u(() => {
|
|
8791
8778
|
var v, _;
|
|
8792
8779
|
return [
|
|
8793
8780
|
l("div", Ls, [
|
|
@@ -8796,16 +8783,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8796
8783
|
]),
|
|
8797
8784
|
m(s, {
|
|
8798
8785
|
icon: "",
|
|
8799
|
-
density: "
|
|
8800
|
-
variant: "plain",
|
|
8786
|
+
density: "compact",
|
|
8801
8787
|
class: "mr-n2",
|
|
8802
8788
|
onClick: r.handleCloseMeteo
|
|
8803
8789
|
}, {
|
|
8804
|
-
default:
|
|
8805
|
-
l("i", {
|
|
8806
|
-
class: "iconfont icon-close",
|
|
8807
|
-
style: { "font-size": "20px" }
|
|
8808
|
-
}, null, -1)
|
|
8790
|
+
default: u(() => e[24] || (e[24] = [
|
|
8791
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
8809
8792
|
])),
|
|
8810
8793
|
_: 1,
|
|
8811
8794
|
__: [24]
|
|
@@ -8814,16 +8797,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8814
8797
|
}),
|
|
8815
8798
|
_: 1
|
|
8816
8799
|
}),
|
|
8817
|
-
m(
|
|
8800
|
+
m(g),
|
|
8818
8801
|
m(N, { class: "text-body-1 ml-n8" }, {
|
|
8819
|
-
default:
|
|
8802
|
+
default: u(() => [
|
|
8820
8803
|
m(f, null, {
|
|
8821
|
-
default:
|
|
8804
|
+
default: u(() => [
|
|
8822
8805
|
m(d, {
|
|
8823
8806
|
cols: "3",
|
|
8824
8807
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8825
8808
|
}, {
|
|
8826
|
-
default:
|
|
8809
|
+
default: u(() => e[25] || (e[25] = [
|
|
8827
8810
|
G("Time", -1)
|
|
8828
8811
|
])),
|
|
8829
8812
|
_: 1,
|
|
@@ -8833,7 +8816,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8833
8816
|
cols: "9",
|
|
8834
8817
|
class: "pa-2 px-0"
|
|
8835
8818
|
}, {
|
|
8836
|
-
default:
|
|
8819
|
+
default: u(() => {
|
|
8837
8820
|
var v;
|
|
8838
8821
|
return [
|
|
8839
8822
|
G(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8845,12 +8828,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8845
8828
|
_: 1
|
|
8846
8829
|
}),
|
|
8847
8830
|
m(f, null, {
|
|
8848
|
-
default:
|
|
8831
|
+
default: u(() => [
|
|
8849
8832
|
m(d, {
|
|
8850
8833
|
cols: "3",
|
|
8851
8834
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8852
8835
|
}, {
|
|
8853
|
-
default:
|
|
8836
|
+
default: u(() => e[26] || (e[26] = [
|
|
8854
8837
|
G("LT", -1)
|
|
8855
8838
|
])),
|
|
8856
8839
|
_: 1,
|
|
@@ -8860,7 +8843,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8860
8843
|
cols: "9",
|
|
8861
8844
|
class: "pa-2 px-0"
|
|
8862
8845
|
}, {
|
|
8863
|
-
default:
|
|
8846
|
+
default: u(() => {
|
|
8864
8847
|
var v;
|
|
8865
8848
|
return [
|
|
8866
8849
|
G(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8872,12 +8855,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8872
8855
|
_: 1
|
|
8873
8856
|
}),
|
|
8874
8857
|
m(f, null, {
|
|
8875
|
-
default:
|
|
8858
|
+
default: u(() => [
|
|
8876
8859
|
m(d, {
|
|
8877
8860
|
cols: "3",
|
|
8878
8861
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8879
8862
|
}, {
|
|
8880
|
-
default:
|
|
8863
|
+
default: u(() => e[27] || (e[27] = [
|
|
8881
8864
|
G("Wind", -1)
|
|
8882
8865
|
])),
|
|
8883
8866
|
_: 1,
|
|
@@ -8887,7 +8870,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8887
8870
|
cols: "4",
|
|
8888
8871
|
class: "pa-2 px-0 text-left"
|
|
8889
8872
|
}, {
|
|
8890
|
-
default:
|
|
8873
|
+
default: u(() => [
|
|
8891
8874
|
G(y(a.currentHourData.windDir) + " / " + y(a.currentHourData.windSpeed) + "kts / BF" + y(a.currentHourData.windLevel), 1)
|
|
8892
8875
|
]),
|
|
8893
8876
|
_: 1
|
|
@@ -8896,7 +8879,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8896
8879
|
cols: "2",
|
|
8897
8880
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8898
8881
|
}, {
|
|
8899
|
-
default:
|
|
8882
|
+
default: u(() => e[28] || (e[28] = [
|
|
8900
8883
|
G("Sig Wave", -1)
|
|
8901
8884
|
])),
|
|
8902
8885
|
_: 1,
|
|
@@ -8906,7 +8889,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8906
8889
|
cols: "3",
|
|
8907
8890
|
class: "pa-2 px-0 text-left"
|
|
8908
8891
|
}, {
|
|
8909
|
-
default:
|
|
8892
|
+
default: u(() => [
|
|
8910
8893
|
G(y(a.currentHourData.sigwaveDir) + " / " + y(a.currentHourData.sigwaveHeight) + "m / " + y(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8911
8894
|
]),
|
|
8912
8895
|
_: 1
|
|
@@ -8915,12 +8898,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8915
8898
|
_: 1
|
|
8916
8899
|
}),
|
|
8917
8900
|
m(f, null, {
|
|
8918
|
-
default:
|
|
8901
|
+
default: u(() => [
|
|
8919
8902
|
m(d, {
|
|
8920
8903
|
cols: "3",
|
|
8921
8904
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8922
8905
|
}, {
|
|
8923
|
-
default:
|
|
8906
|
+
default: u(() => e[29] || (e[29] = [
|
|
8924
8907
|
G("Wind Wave", -1)
|
|
8925
8908
|
])),
|
|
8926
8909
|
_: 1,
|
|
@@ -8930,7 +8913,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8930
8913
|
cols: "4",
|
|
8931
8914
|
class: "pa-2 px-0 text-left"
|
|
8932
8915
|
}, {
|
|
8933
|
-
default:
|
|
8916
|
+
default: u(() => [
|
|
8934
8917
|
G(y(a.currentHourData.windwaveDir) + " / " + y(a.currentHourData.windwaveHeight) + "m / " + y(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8935
8918
|
]),
|
|
8936
8919
|
_: 1
|
|
@@ -8939,7 +8922,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8939
8922
|
cols: "2",
|
|
8940
8923
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8941
8924
|
}, {
|
|
8942
|
-
default:
|
|
8925
|
+
default: u(() => e[30] || (e[30] = [
|
|
8943
8926
|
G("Swell", -1)
|
|
8944
8927
|
])),
|
|
8945
8928
|
_: 1,
|
|
@@ -8949,7 +8932,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8949
8932
|
cols: "3",
|
|
8950
8933
|
class: "pa-2 px-0 text-left"
|
|
8951
8934
|
}, {
|
|
8952
|
-
default:
|
|
8935
|
+
default: u(() => [
|
|
8953
8936
|
G(y(a.currentHourData.swellDir) + " / " + y(a.currentHourData.swellHeight) + "m / " + y(a.currentHourData.swellPeriod) + "s", 1)
|
|
8954
8937
|
]),
|
|
8955
8938
|
_: 1
|
|
@@ -8958,12 +8941,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8958
8941
|
_: 1
|
|
8959
8942
|
}),
|
|
8960
8943
|
m(f, null, {
|
|
8961
|
-
default:
|
|
8944
|
+
default: u(() => [
|
|
8962
8945
|
m(d, {
|
|
8963
8946
|
cols: "3",
|
|
8964
8947
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8965
8948
|
}, {
|
|
8966
|
-
default:
|
|
8949
|
+
default: u(() => e[31] || (e[31] = [
|
|
8967
8950
|
G("Current", -1)
|
|
8968
8951
|
])),
|
|
8969
8952
|
_: 1,
|
|
@@ -8973,7 +8956,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8973
8956
|
cols: "4",
|
|
8974
8957
|
class: "pa-2 px-0 text-left"
|
|
8975
8958
|
}, {
|
|
8976
|
-
default:
|
|
8959
|
+
default: u(() => [
|
|
8977
8960
|
G(y(a.currentHourData.currentDir) + " / " + y(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8978
8961
|
]),
|
|
8979
8962
|
_: 1
|
|
@@ -8982,7 +8965,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8982
8965
|
cols: "2",
|
|
8983
8966
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8984
8967
|
}, {
|
|
8985
|
-
default:
|
|
8968
|
+
default: u(() => e[32] || (e[32] = [
|
|
8986
8969
|
G("Visibility", -1)
|
|
8987
8970
|
])),
|
|
8988
8971
|
_: 1,
|
|
@@ -8992,7 +8975,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8992
8975
|
cols: "3",
|
|
8993
8976
|
class: "pa-2 px-0 text-left"
|
|
8994
8977
|
}, {
|
|
8995
|
-
default:
|
|
8978
|
+
default: u(() => [
|
|
8996
8979
|
G(y(a.currentHourData.visibility) + " nm", 1)
|
|
8997
8980
|
]),
|
|
8998
8981
|
_: 1
|
|
@@ -9003,9 +8986,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9003
8986
|
]),
|
|
9004
8987
|
_: 1
|
|
9005
8988
|
}),
|
|
9006
|
-
m(
|
|
8989
|
+
m(g),
|
|
9007
8990
|
m(S, { class: "d-flex justify-space-between align-center" }, {
|
|
9008
|
-
default:
|
|
8991
|
+
default: u(() => [
|
|
9009
8992
|
m(s, {
|
|
9010
8993
|
vvariant: "text",
|
|
9011
8994
|
density: "compact",
|
|
@@ -9013,10 +8996,10 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9013
8996
|
class: "text-none text-body-1",
|
|
9014
8997
|
onClick: r.handleFollow
|
|
9015
8998
|
}, {
|
|
9016
|
-
prepend:
|
|
8999
|
+
prepend: u(() => [
|
|
9017
9000
|
m(L, { color: "warning" })
|
|
9018
9001
|
]),
|
|
9019
|
-
default:
|
|
9002
|
+
default: u(() => [
|
|
9020
9003
|
e[33] || (e[33] = G(" Follow", -1))
|
|
9021
9004
|
]),
|
|
9022
9005
|
_: 1,
|
|
@@ -9029,7 +9012,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9029
9012
|
class: "text-none text-body-1",
|
|
9030
9013
|
onClick: r.handleMeteoMore
|
|
9031
9014
|
}, {
|
|
9032
|
-
default:
|
|
9015
|
+
default: u(() => e[34] || (e[34] = [
|
|
9033
9016
|
G("Forecast", -1)
|
|
9034
9017
|
])),
|
|
9035
9018
|
_: 1,
|
|
@@ -9136,14 +9119,14 @@ const Ms = {
|
|
|
9136
9119
|
}
|
|
9137
9120
|
},
|
|
9138
9121
|
handleDrag(t) {
|
|
9139
|
-
var o, i, a, r, s,
|
|
9122
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
9140
9123
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9141
9124
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9142
9125
|
const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
9143
9126
|
this.pointMarkers[f.id].filter((C) => {
|
|
9144
9127
|
var N;
|
|
9145
9128
|
return ((N = C._element) == null ? void 0 : N.id) === e;
|
|
9146
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
9129
|
+
})[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]);
|
|
9147
9130
|
let x;
|
|
9148
9131
|
f.features.forEach((C, N) => {
|
|
9149
9132
|
if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
|
|
@@ -9155,22 +9138,22 @@ const Ms = {
|
|
|
9155
9138
|
this.handleTmpPointUpdate(
|
|
9156
9139
|
f,
|
|
9157
9140
|
S[x - 1],
|
|
9158
|
-
{ lng: (
|
|
9141
|
+
{ lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
|
|
9159
9142
|
x === S.length - 1 ? void 0 : S[x + 1]
|
|
9160
9143
|
);
|
|
9161
9144
|
}
|
|
9162
9145
|
},
|
|
9163
9146
|
handleDragEnd(t) {
|
|
9164
|
-
var o, i, a, r, s,
|
|
9147
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
9165
9148
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9166
9149
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9167
9150
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
9168
9151
|
this.pointMarkers[f.id].filter((S) => {
|
|
9169
9152
|
var C;
|
|
9170
9153
|
return ((C = S._element) == null ? void 0 : C.id) === e;
|
|
9171
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
9154
|
+
})[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]);
|
|
9172
9155
|
const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
9173
|
-
x.geometry.coordinates = [(
|
|
9156
|
+
x.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.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);
|
|
9174
9157
|
}
|
|
9175
9158
|
},
|
|
9176
9159
|
handleContextmenu(t) {
|
|
@@ -9178,27 +9161,27 @@ const Ms = {
|
|
|
9178
9161
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
9179
9162
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
9180
9163
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9181
|
-
const
|
|
9182
|
-
if (
|
|
9183
|
-
const
|
|
9184
|
-
|
|
9164
|
+
const n = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
9165
|
+
if (n.length > 2 && n.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
9166
|
+
const g = document.createElement("div");
|
|
9167
|
+
g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new we.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
9185
9168
|
}
|
|
9186
9169
|
}
|
|
9187
9170
|
},
|
|
9188
9171
|
handleClick(t) {
|
|
9189
|
-
var o, i, a, r, s,
|
|
9172
|
+
var o, i, a, r, s, n;
|
|
9190
9173
|
(o = this.contextmenu) == null || o.remove();
|
|
9191
9174
|
const e = t.originalEvent.target.className;
|
|
9192
9175
|
if (e === "marker-close") {
|
|
9193
|
-
const
|
|
9194
|
-
|
|
9176
|
+
const c = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((p) => p.id === c)[0];
|
|
9177
|
+
g && this.handleClear(g, !0), this.geojson = this.geojson.filter((p) => p.id !== c), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
|
|
9195
9178
|
} else if (e === "del-point") {
|
|
9196
|
-
const
|
|
9197
|
-
|
|
9179
|
+
const c = (n = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : n.split("-"), g = this.geojson.filter((p) => p.id === c[0])[0];
|
|
9180
|
+
g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== c[1]), this.handlePointUpdate(g);
|
|
9198
9181
|
} else if (e !== "marker-label" && this.toggle) {
|
|
9199
|
-
let
|
|
9200
|
-
|
|
9201
|
-
const
|
|
9182
|
+
let c = this.geojson.at(-1);
|
|
9183
|
+
c || (c = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((p) => p.geometry.type === "Point");
|
|
9184
|
+
const g = E.feature(
|
|
9202
9185
|
{
|
|
9203
9186
|
type: "Point",
|
|
9204
9187
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -9209,7 +9192,7 @@ const Ms = {
|
|
|
9209
9192
|
sumLabel: "Start"
|
|
9210
9193
|
}
|
|
9211
9194
|
);
|
|
9212
|
-
|
|
9195
|
+
c.features.push(g), this.handlePointUpdate(c);
|
|
9213
9196
|
}
|
|
9214
9197
|
},
|
|
9215
9198
|
handlePointUpdate(t) {
|
|
@@ -9218,14 +9201,14 @@ const Ms = {
|
|
|
9218
9201
|
let o = 0;
|
|
9219
9202
|
const i = [];
|
|
9220
9203
|
for (let a = 1; a < e.length; a++) {
|
|
9221
|
-
const r = e[a - 1], s = e[a],
|
|
9204
|
+
const r = e[a - 1], s = e[a], n = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(c, g, n.mode === "RL", 4), d = Fe.calculateBearing(c, g, n.mode === "RL", 2);
|
|
9222
9205
|
o = oe.roundPrecision(o + p, 4);
|
|
9223
9206
|
let f;
|
|
9224
|
-
|
|
9207
|
+
n.mode === "RL" ? f = oe.convertToMonotonicLng([c, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(c, g, 200));
|
|
9225
9208
|
const z = E.lineString(f.map((S) => [S.lng, S.lat]));
|
|
9226
9209
|
z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
9227
9210
|
const x = e[a];
|
|
9228
|
-
x.properties.totalDist = oe.roundPrecision((
|
|
9211
|
+
x.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), x.properties.sumLabel = x.properties.totalDist + " nm";
|
|
9229
9212
|
}
|
|
9230
9213
|
e.push(...i), t.total = o;
|
|
9231
9214
|
}
|
|
@@ -9235,18 +9218,18 @@ const Ms = {
|
|
|
9235
9218
|
const a = E.featureCollection([]);
|
|
9236
9219
|
let r, s;
|
|
9237
9220
|
if (e) {
|
|
9238
|
-
const
|
|
9239
|
-
r = Fe.calculateDistance(
|
|
9221
|
+
const c = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
|
|
9222
|
+
r = Fe.calculateDistance(g, p, c.mode === "RL", 4), s = Fe.calculateBearing(g, p, c.mode === "RL", 2);
|
|
9240
9223
|
let d;
|
|
9241
|
-
|
|
9224
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9242
9225
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9243
9226
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9244
9227
|
}
|
|
9245
9228
|
if (i) {
|
|
9246
|
-
const
|
|
9247
|
-
r = Fe.calculateDistance(
|
|
9229
|
+
const c = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
9230
|
+
r = Fe.calculateDistance(g, p, c.mode === "RL", 4), s = Fe.calculateBearing(g, p, c.mode === "RL", 2);
|
|
9248
9231
|
let d;
|
|
9249
|
-
|
|
9232
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9250
9233
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9251
9234
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9252
9235
|
}
|
|
@@ -9288,22 +9271,22 @@ const Ms = {
|
|
|
9288
9271
|
// 'text-halo-blur': 0,
|
|
9289
9272
|
}
|
|
9290
9273
|
});
|
|
9291
|
-
let
|
|
9274
|
+
let n;
|
|
9292
9275
|
if (i)
|
|
9293
|
-
|
|
9276
|
+
n = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
9294
9277
|
else {
|
|
9295
|
-
const
|
|
9296
|
-
|
|
9278
|
+
const c = oe.roundPrecision((t.total ?? 0) + r, 1);
|
|
9279
|
+
n = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${c}</b>nm, ${this.$t(
|
|
9297
9280
|
"measure.bearing"
|
|
9298
9281
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
9299
9282
|
"measure.switchTips"
|
|
9300
9283
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
9301
9284
|
}
|
|
9302
9285
|
if (this.tipMarker)
|
|
9303
|
-
this.tipMarker._element.innerHTML =
|
|
9286
|
+
this.tipMarker._element.innerHTML = n, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
9304
9287
|
else {
|
|
9305
|
-
const
|
|
9306
|
-
|
|
9288
|
+
const c = document.createElement("div");
|
|
9289
|
+
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);
|
|
9307
9290
|
}
|
|
9308
9291
|
},
|
|
9309
9292
|
handleMove(t) {
|
|
@@ -9375,48 +9358,48 @@ const Ms = {
|
|
|
9375
9358
|
// 'text-halo-blur': 0,
|
|
9376
9359
|
}
|
|
9377
9360
|
});
|
|
9378
|
-
const s = t.features.filter((
|
|
9379
|
-
for (const
|
|
9380
|
-
const
|
|
9381
|
-
|
|
9382
|
-
const
|
|
9383
|
-
|
|
9361
|
+
const s = t.features.filter((n) => n.geometry.type === "Point");
|
|
9362
|
+
for (const n of s) {
|
|
9363
|
+
const c = document.createElement("div");
|
|
9364
|
+
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>';
|
|
9365
|
+
const g = new we.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
9366
|
+
g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
|
|
9384
9367
|
}
|
|
9385
9368
|
if (t.closed) {
|
|
9386
|
-
const
|
|
9387
|
-
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
9369
|
+
const n = s.at(-1), g = t.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
9370
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new we.Marker(p).setOffset([0, -30]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
9388
9371
|
}
|
|
9389
9372
|
}
|
|
9390
9373
|
},
|
|
9391
9374
|
handleClear(t, e = !0) {
|
|
9392
|
-
var s,
|
|
9375
|
+
var s, n, c, g, p, d, f, z, x, S;
|
|
9393
9376
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
9394
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (
|
|
9377
|
+
(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), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
|
|
9395
9378
|
C == null || C.remove();
|
|
9396
9379
|
}), 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);
|
|
9397
9380
|
}
|
|
9398
9381
|
}
|
|
9399
9382
|
}, Ts = { class: "idm-gl4-measure" };
|
|
9400
9383
|
function Is(t, e, o, i, a, r) {
|
|
9401
|
-
const s = w("VBtn"),
|
|
9384
|
+
const s = w("VBtn"), n = w("VTooltip");
|
|
9402
9385
|
return b(), T("div", Ts, [
|
|
9403
9386
|
l("div", {
|
|
9404
9387
|
class: "menu-bar-box transition pa-1",
|
|
9405
9388
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
9406
9389
|
}, [
|
|
9407
|
-
m(
|
|
9390
|
+
m(n, {
|
|
9408
9391
|
text: t.$t("measure.measure"),
|
|
9409
9392
|
location: "left"
|
|
9410
9393
|
}, {
|
|
9411
|
-
activator:
|
|
9412
|
-
m(s, B(
|
|
9394
|
+
activator: u(({ props: c }) => [
|
|
9395
|
+
m(s, B(c, {
|
|
9413
9396
|
"min-width": "32",
|
|
9414
9397
|
width: "32",
|
|
9415
9398
|
height: "32",
|
|
9416
9399
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9417
9400
|
onClick: r.handleMenuToggle
|
|
9418
9401
|
}), {
|
|
9419
|
-
default:
|
|
9402
|
+
default: u(() => e[0] || (e[0] = [
|
|
9420
9403
|
l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
9421
9404
|
])),
|
|
9422
9405
|
_: 2,
|
|
@@ -9551,7 +9534,7 @@ const Rs = {
|
|
|
9551
9534
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9552
9535
|
}, Fs = ["onClick"], Hs = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ws = { class: "text-body-1" };
|
|
9553
9536
|
function Gs(t, e, o, i, a, r) {
|
|
9554
|
-
const s = w("DateTimePicker"),
|
|
9537
|
+
const s = w("DateTimePicker"), n = w("VListItemTitle"), c = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
|
|
9555
9538
|
return b(), T("div", Ds, [
|
|
9556
9539
|
Object.values(a.show).includes(!0) ? (b(), T("div", {
|
|
9557
9540
|
key: 0,
|
|
@@ -9575,13 +9558,13 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9575
9558
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
9576
9559
|
"min-width": "30"
|
|
9577
9560
|
}, {
|
|
9578
|
-
default:
|
|
9561
|
+
default: u(() => [
|
|
9579
9562
|
G(y(a.intervalHour) + " h ", 1),
|
|
9580
9563
|
m(p, { activator: "parent" }, {
|
|
9581
|
-
default:
|
|
9582
|
-
m(
|
|
9583
|
-
default:
|
|
9584
|
-
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(
|
|
9564
|
+
default: u(() => [
|
|
9565
|
+
m(g, { class: "pa-1" }, {
|
|
9566
|
+
default: u(() => [
|
|
9567
|
+
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(c, {
|
|
9585
9568
|
key: S,
|
|
9586
9569
|
value: x,
|
|
9587
9570
|
variant: a.intervalHour === x ? "tonal" : "text",
|
|
@@ -9593,11 +9576,11 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9593
9576
|
"min-width": "30",
|
|
9594
9577
|
class: "pa-0 text-center text-body-1"
|
|
9595
9578
|
}, {
|
|
9596
|
-
default:
|
|
9597
|
-
m(
|
|
9579
|
+
default: u(() => [
|
|
9580
|
+
m(n, {
|
|
9598
9581
|
onClick: (C) => a.intervalHour = x
|
|
9599
9582
|
}, {
|
|
9600
|
-
default:
|
|
9583
|
+
default: u(() => [
|
|
9601
9584
|
G(y(x) + "h", 1)
|
|
9602
9585
|
]),
|
|
9603
9586
|
_: 2
|
|
@@ -9628,7 +9611,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9628
9611
|
variant: "text",
|
|
9629
9612
|
onClick: r.handleReset
|
|
9630
9613
|
}, {
|
|
9631
|
-
default:
|
|
9614
|
+
default: u(() => e[9] || (e[9] = [
|
|
9632
9615
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9633
9616
|
])),
|
|
9634
9617
|
_: 1,
|
|
@@ -9641,7 +9624,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9641
9624
|
variant: "text",
|
|
9642
9625
|
onClick: r.handleBackward
|
|
9643
9626
|
}, {
|
|
9644
|
-
default:
|
|
9627
|
+
default: u(() => e[10] || (e[10] = [
|
|
9645
9628
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9646
9629
|
])),
|
|
9647
9630
|
_: 1,
|
|
@@ -9655,7 +9638,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9655
9638
|
variant: "text",
|
|
9656
9639
|
onClick: r.handlePlay
|
|
9657
9640
|
}, {
|
|
9658
|
-
default:
|
|
9641
|
+
default: u(() => e[11] || (e[11] = [
|
|
9659
9642
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9660
9643
|
])),
|
|
9661
9644
|
_: 1,
|
|
@@ -9668,7 +9651,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9668
9651
|
variant: "text",
|
|
9669
9652
|
onClick: r.handlePause
|
|
9670
9653
|
}, {
|
|
9671
|
-
default:
|
|
9654
|
+
default: u(() => e[12] || (e[12] = [
|
|
9672
9655
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9673
9656
|
])),
|
|
9674
9657
|
_: 1,
|
|
@@ -9681,7 +9664,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9681
9664
|
variant: "text",
|
|
9682
9665
|
onClick: r.handleForward
|
|
9683
9666
|
}, {
|
|
9684
|
-
default:
|
|
9667
|
+
default: u(() => e[13] || (e[13] = [
|
|
9685
9668
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9686
9669
|
])),
|
|
9687
9670
|
_: 1,
|
|
@@ -9698,7 +9681,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9698
9681
|
text: t.$t("weather.windBarbs"),
|
|
9699
9682
|
location: "top"
|
|
9700
9683
|
}, {
|
|
9701
|
-
activator:
|
|
9684
|
+
activator: u(({ props: x }) => {
|
|
9702
9685
|
var S, C;
|
|
9703
9686
|
return [
|
|
9704
9687
|
m(d, B(x, {
|
|
@@ -9710,7 +9693,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9710
9693
|
"min-width": "24",
|
|
9711
9694
|
onClick: e[3] || (e[3] = (N) => r.handleClickFastWeather("wind"))
|
|
9712
9695
|
}), {
|
|
9713
|
-
default:
|
|
9696
|
+
default: u(() => e[14] || (e[14] = [
|
|
9714
9697
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
9715
9698
|
])),
|
|
9716
9699
|
_: 2,
|
|
@@ -9724,7 +9707,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9724
9707
|
text: t.$t("weather.sigWaveHeight"),
|
|
9725
9708
|
location: "top"
|
|
9726
9709
|
}, {
|
|
9727
|
-
activator:
|
|
9710
|
+
activator: u(({ props: x }) => {
|
|
9728
9711
|
var S, C;
|
|
9729
9712
|
return [
|
|
9730
9713
|
m(d, B(x, {
|
|
@@ -9736,7 +9719,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9736
9719
|
"min-width": "24",
|
|
9737
9720
|
onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
|
|
9738
9721
|
}), {
|
|
9739
|
-
default:
|
|
9722
|
+
default: u(() => [
|
|
9740
9723
|
l("i", B(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9741
9724
|
]),
|
|
9742
9725
|
_: 2
|
|
@@ -9749,7 +9732,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9749
9732
|
text: t.$t("weather.currentDirection"),
|
|
9750
9733
|
location: "top"
|
|
9751
9734
|
}, {
|
|
9752
|
-
activator:
|
|
9735
|
+
activator: u(({ props: x }) => {
|
|
9753
9736
|
var S, C;
|
|
9754
9737
|
return [
|
|
9755
9738
|
m(d, B(x, {
|
|
@@ -9761,7 +9744,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9761
9744
|
"min-width": "24",
|
|
9762
9745
|
onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
|
|
9763
9746
|
}), {
|
|
9764
|
-
default:
|
|
9747
|
+
default: u(() => [
|
|
9765
9748
|
l("i", B(x, { class: "iconfont icon-Current" }), null, 16)
|
|
9766
9749
|
]),
|
|
9767
9750
|
_: 2
|
|
@@ -9774,7 +9757,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9774
9757
|
text: t.$t("weather.weatherLayers"),
|
|
9775
9758
|
location: "top"
|
|
9776
9759
|
}, {
|
|
9777
|
-
activator:
|
|
9760
|
+
activator: u(({ props: x }) => [
|
|
9778
9761
|
m(d, B(x, {
|
|
9779
9762
|
class: "pa-1 d-flex",
|
|
9780
9763
|
variant: "text",
|
|
@@ -9783,7 +9766,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9783
9766
|
"min-width": "24",
|
|
9784
9767
|
onClick: r.handleClickFastMore
|
|
9785
9768
|
}), {
|
|
9786
|
-
default:
|
|
9769
|
+
default: u(() => [
|
|
9787
9770
|
l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9788
9771
|
]),
|
|
9789
9772
|
_: 2
|
|
@@ -9805,7 +9788,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9805
9788
|
color: a.source === "GFS" ? "primary" : "",
|
|
9806
9789
|
onClick: e[6] || (e[6] = (x) => a.source = "GFS")
|
|
9807
9790
|
}, {
|
|
9808
|
-
default:
|
|
9791
|
+
default: u(() => e[15] || (e[15] = [
|
|
9809
9792
|
G("NOAA", -1)
|
|
9810
9793
|
])),
|
|
9811
9794
|
_: 1,
|
|
@@ -9818,7 +9801,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9818
9801
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9819
9802
|
onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
|
|
9820
9803
|
}, {
|
|
9821
|
-
default:
|
|
9804
|
+
default: u(() => e[16] || (e[16] = [
|
|
9822
9805
|
G("ECMWF", -1)
|
|
9823
9806
|
])),
|
|
9824
9807
|
_: 1,
|
|
@@ -9846,7 +9829,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9846
9829
|
color: "primary",
|
|
9847
9830
|
onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
|
|
9848
9831
|
}, {
|
|
9849
|
-
default:
|
|
9832
|
+
default: u(() => [
|
|
9850
9833
|
G(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9851
9834
|
]),
|
|
9852
9835
|
_: 1
|
|
@@ -9922,7 +9905,7 @@ const Us = /* @__PURE__ */ Z(Rs, [["render", Gs]]), Vs = {
|
|
|
9922
9905
|
class: "map-gl4-home"
|
|
9923
9906
|
};
|
|
9924
9907
|
function Zs(t, e, o, i, a, r) {
|
|
9925
|
-
const s = w("IdmOtherLayer"),
|
|
9908
|
+
const s = w("IdmOtherLayer"), n = w("IdmWeatherLayer"), c = w("IdmTropicals"), g = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
|
|
9926
9909
|
return b(), T("div", Ys, [
|
|
9927
9910
|
m(s, B({
|
|
9928
9911
|
ref: "idmOtherLayers",
|
|
@@ -9940,7 +9923,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9940
9923
|
a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
9941
9924
|
})
|
|
9942
9925
|
}), null, 16, ["token", "default-meteo-token", "map", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9943
|
-
m(
|
|
9926
|
+
m(n, B({
|
|
9944
9927
|
ref: "idmWeatherLayers",
|
|
9945
9928
|
map: o.map,
|
|
9946
9929
|
"before-layer": "empty-layer-2",
|
|
@@ -9959,7 +9942,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9959
9942
|
a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
9960
9943
|
})
|
|
9961
9944
|
}), null, 16, ["map", "real-time", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9962
|
-
m(
|
|
9945
|
+
m(c, B({
|
|
9963
9946
|
map: o.map,
|
|
9964
9947
|
token: o.token,
|
|
9965
9948
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -9971,7 +9954,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9971
9954
|
"forecast-model": o.forecastModel,
|
|
9972
9955
|
"map-feather": o.mapFeather
|
|
9973
9956
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9974
|
-
m(
|
|
9957
|
+
m(g, B({
|
|
9975
9958
|
map: o.map,
|
|
9976
9959
|
"map-feather": o.mapFeather
|
|
9977
9960
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
@@ -10003,7 +9986,7 @@ class qs {
|
|
|
10003
9986
|
se(this, "hi");
|
|
10004
9987
|
se(this, "td");
|
|
10005
9988
|
se(this, "windy");
|
|
10006
|
-
var o, i, a, r, s,
|
|
9989
|
+
var o, i, a, r, s, n, c, g, 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;
|
|
10007
9990
|
this.i4 = {
|
|
10008
9991
|
source: {
|
|
10009
9992
|
type: "raster",
|
|
@@ -28277,8 +28260,8 @@ class qs {
|
|
|
28277
28260
|
layers: [
|
|
28278
28261
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
|
|
28279
28262
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
|
|
28280
|
-
(
|
|
28281
|
-
(
|
|
28263
|
+
(n = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : n.find((h) => h.id === "ice-area-fill"),
|
|
28264
|
+
(g = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : g.find((h) => h.id === "ice-area-line"),
|
|
28282
28265
|
(d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((h) => h.id === "empty-layer-0"),
|
|
28283
28266
|
(z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-1"),
|
|
28284
28267
|
(S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
|
|
@@ -28552,7 +28535,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28552
28535
|
class: "pa-0 elevation-0",
|
|
28553
28536
|
onClick: r.handleZoomIn
|
|
28554
28537
|
}, {
|
|
28555
|
-
default:
|
|
28538
|
+
default: u(() => e[0] || (e[0] = [
|
|
28556
28539
|
l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
28557
28540
|
])),
|
|
28558
28541
|
_: 1,
|
|
@@ -28566,7 +28549,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28566
28549
|
class: "elevation-0 pa-0",
|
|
28567
28550
|
onClick: r.handleZoomOut
|
|
28568
28551
|
}, {
|
|
28569
|
-
default:
|
|
28552
|
+
default: u(() => e[1] || (e[1] = [
|
|
28570
28553
|
l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
28571
28554
|
])),
|
|
28572
28555
|
_: 1,
|