@idmwx/idmui-gl4 0.8.2 → 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 +331 -350
- package/dist/index.umd.cjs +4 -4
- 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";
|
|
@@ -488,30 +488,26 @@ function Za(t, e, o, i, a, r) {
|
|
|
488
488
|
class: "scroll",
|
|
489
489
|
id: "idm-gl4-zone-info"
|
|
490
490
|
}, {
|
|
491
|
-
default:
|
|
491
|
+
default: u(() => [
|
|
492
492
|
m(n, null, {
|
|
493
|
-
default:
|
|
494
|
-
var
|
|
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"), n = w("v-card-text"), c = w("v-divider"),
|
|
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:
|
|
634
|
+
default: u(() => [
|
|
639
635
|
m(n, { class: "pr-8" }, {
|
|
640
|
-
default:
|
|
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]
|
|
@@ -677,15 +669,15 @@ function ti(t, e, o, i, a, r) {
|
|
|
677
669
|
}),
|
|
678
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: {
|
|
@@ -1435,21 +1427,17 @@ const Ci = {
|
|
|
1435
1427
|
function Ri(t, e, o, i, a, r) {
|
|
1436
1428
|
const s = w("VBtn"), n = w("v-card-text"), c = w("v-card");
|
|
1437
1429
|
return He((b(), j(c, { id: "tidal-station-info" }, {
|
|
1438
|
-
default:
|
|
1430
|
+
default: u(() => [
|
|
1439
1431
|
m(n, { class: "pr-8" }, {
|
|
1440
|
-
default:
|
|
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: {
|
|
@@ -1877,9 +1865,9 @@ const Fi = {
|
|
|
1877
1865
|
}
|
|
1878
1866
|
});
|
|
1879
1867
|
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
1880
|
-
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data,
|
|
1868
|
+
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, g = [];
|
|
1881
1869
|
for (const d in c)
|
|
1882
|
-
|
|
1870
|
+
g.push(
|
|
1883
1871
|
Be.get(c[d], {
|
|
1884
1872
|
headers: {
|
|
1885
1873
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1887,7 +1875,7 @@ const Fi = {
|
|
|
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;
|
|
@@ -1900,9 +1888,9 @@ const Fi = {
|
|
|
1900
1888
|
}
|
|
1901
1889
|
});
|
|
1902
1890
|
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
1903
|
-
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data,
|
|
1891
|
+
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, g = [];
|
|
1904
1892
|
for (const d in c)
|
|
1905
|
-
|
|
1893
|
+
g.push(
|
|
1906
1894
|
Be.get(c[d], {
|
|
1907
1895
|
headers: {
|
|
1908
1896
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1910,7 +1898,7 @@ const Fi = {
|
|
|
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,7 +1931,7 @@ 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"), n = w("VTooltip"), c = w("VCardTitle"),
|
|
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",
|
|
@@ -1953,7 +1941,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
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:
|
|
1986
|
+
default: u(() => [
|
|
1987
|
+
m(g, { class: "border-b-thin" }, {
|
|
1988
|
+
default: u(() => [
|
|
2005
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:
|
|
2039
|
+
default: u(() => [
|
|
2040
|
+
m(g, { class: "border-b-thin" }, {
|
|
2041
|
+
default: u(() => [
|
|
2058
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:
|
|
2078
|
+
default: u(() => [
|
|
2079
|
+
m(g, { class: "border-b-thin" }, {
|
|
2080
|
+
default: u(() => [
|
|
2097
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:
|
|
2117
|
+
default: u(() => [
|
|
2118
|
+
m(g, { class: "border-b-thin" }, {
|
|
2119
|
+
default: u(() => [
|
|
2136
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]), [n, c] = this.convertNLng(a[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
|
* [视窗边界像素宽度]
|
|
@@ -2424,13 +2408,13 @@ class Ne {
|
|
|
2424
2408
|
if (a) {
|
|
2425
2409
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
2426
2410
|
for (let c = 0; c < s; c++) {
|
|
2427
|
-
const
|
|
2428
|
-
r[
|
|
2411
|
+
const g = e.getActiveAttrib(a, c);
|
|
2412
|
+
r[g.name] = e.getAttribLocation(a, g.name);
|
|
2429
2413
|
}
|
|
2430
2414
|
const n = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
2431
2415
|
for (let c = 0; c < n; c++) {
|
|
2432
|
-
const
|
|
2433
|
-
r[
|
|
2416
|
+
const g = e.getActiveUniform(a, c);
|
|
2417
|
+
r[g.name] = e.getUniformLocation(a, g.name);
|
|
2434
2418
|
}
|
|
2435
2419
|
return r;
|
|
2436
2420
|
}
|
|
@@ -2445,8 +2429,8 @@ class Ne {
|
|
|
2445
2429
|
const n = s.getContext("2d");
|
|
2446
2430
|
if (n && e) {
|
|
2447
2431
|
const c = n == null ? void 0 : n.createLinearGradient(0, 0, 256, 0);
|
|
2448
|
-
return o.forEach(([
|
|
2449
|
-
c.addColorStop(
|
|
2432
|
+
return o.forEach(([g, p]) => {
|
|
2433
|
+
c.addColorStop(g, p);
|
|
2450
2434
|
}), n.fillStyle = c, n.fillRect(0, 0, 256, 1), {
|
|
2451
2435
|
canvas: s,
|
|
2452
2436
|
texture: this.createTexture(
|
|
@@ -2468,8 +2452,8 @@ class Ne {
|
|
|
2468
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
2454
|
c[p] = p;
|
|
2471
|
-
const
|
|
2472
|
-
return { resolution: i, total: a, texture0: s, texture1: n, indexBuffer:
|
|
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);
|
|
@@ -2484,13 +2468,13 @@ class Ne {
|
|
|
2484
2468
|
return {};
|
|
2485
2469
|
}
|
|
2486
2470
|
bindParticle(e, o, i, a, r, s) {
|
|
2487
|
-
const n = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r),
|
|
2488
|
-
return { particle: n, screen: c, update:
|
|
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
2474
|
draw(e, o, i, a, r, s, n) {
|
|
2491
|
-
var c,
|
|
2475
|
+
var c, g;
|
|
2492
2476
|
if (o && i) {
|
|
2493
|
-
e.resize(), o == null || o.viewport(0, 0, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.width, (
|
|
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 = {
|
|
@@ -2855,7 +2839,7 @@ const er = {
|
|
|
2855
2839
|
else {
|
|
2856
2840
|
this.map.addSource(this.source, { type: "geojson", data: n });
|
|
2857
2841
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
2858
|
-
const
|
|
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
|
],
|
|
@@ -3218,16 +3202,16 @@ const sr = /* @__PURE__ */ Z(ir, [["render", lr]]), nr = {
|
|
|
3218
3202
|
const s = new Image(48, 48);
|
|
3219
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)));
|
|
3220
3204
|
s.src = c;
|
|
3221
|
-
const
|
|
3205
|
+
const g = new Image(48, 48);
|
|
3222
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>`, c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n))),
|
|
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",
|
|
@@ -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",
|
|
@@ -4050,8 +4035,8 @@ function Cr(t, e, o, i, a, r) {
|
|
|
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,
|
|
@@ -5149,7 +5134,7 @@ const al = {
|
|
|
5149
5134
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
5150
5135
|
},
|
|
5151
5136
|
async fetchWeatherLayers(t = {}) {
|
|
5152
|
-
var a, r, s, n, c,
|
|
5137
|
+
var a, r, s, n, c, g, p, d, f;
|
|
5153
5138
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
5154
5139
|
let o = 0, i = 0;
|
|
5155
5140
|
if (this.map) {
|
|
@@ -5199,7 +5184,7 @@ const al = {
|
|
|
5199
5184
|
});
|
|
5200
5185
|
}
|
|
5201
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"]) {
|
|
5202
|
-
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;
|
|
5203
5188
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5204
5189
|
type: "json",
|
|
5205
5190
|
direction: L,
|
|
@@ -5239,7 +5224,7 @@ const al = {
|
|
|
5239
5224
|
}, 500);
|
|
5240
5225
|
},
|
|
5241
5226
|
handleRampColorInitial() {
|
|
5242
|
-
var t, e, o, i, a, r, s, n, c,
|
|
5227
|
+
var t, e, o, i, a, r, s, n, c, g, p, d;
|
|
5243
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, {
|
|
5244
5229
|
type: "canvas",
|
|
5245
5230
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -5260,7 +5245,7 @@ const al = {
|
|
|
5260
5245
|
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
5261
5246
|
animate: !0,
|
|
5262
5247
|
coordinates: this.viewport.getBoundLngLat()
|
|
5263
|
-
}), this.viewport.map.getLayer((
|
|
5248
|
+
}), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
|
|
5264
5249
|
{
|
|
5265
5250
|
type: "raster",
|
|
5266
5251
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
@@ -5273,10 +5258,10 @@ const al = {
|
|
|
5273
5258
|
);
|
|
5274
5259
|
},
|
|
5275
5260
|
handleDrawWeather4Json() {
|
|
5276
|
-
var
|
|
5261
|
+
var g, p, d, f, z, x, S;
|
|
5277
5262
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
5278
5263
|
let e = 0, o = 0;
|
|
5279
|
-
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);
|
|
5280
5265
|
for (const C in this.weatherLayers) {
|
|
5281
5266
|
let N = !1;
|
|
5282
5267
|
if (this.weatherLayers[C].active && this.weatherLayers[C].type === "json") {
|
|
@@ -5562,7 +5547,7 @@ const al = {
|
|
|
5562
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" };
|
|
5563
5548
|
function El(t, e, o, i, a, r) {
|
|
5564
5549
|
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
|
|
5565
|
-
const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"),
|
|
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");
|
|
5566
5551
|
return b(), T("div", il, [
|
|
5567
5552
|
l("div", {
|
|
5568
5553
|
class: "menu-bar-box transition pa-1",
|
|
@@ -5572,7 +5557,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5572
5557
|
text: t.$t("weather.weatherLayers"),
|
|
5573
5558
|
location: "left"
|
|
5574
5559
|
}, {
|
|
5575
|
-
activator:
|
|
5560
|
+
activator: u(({ props: H }) => [
|
|
5576
5561
|
m(s, B(H, {
|
|
5577
5562
|
"min-width": "32",
|
|
5578
5563
|
width: "32",
|
|
@@ -5580,7 +5565,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5580
5565
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
5581
5566
|
onClick: r.handleMenuToggle
|
|
5582
5567
|
}), {
|
|
5583
|
-
default:
|
|
5568
|
+
default: u(() => e[7] || (e[7] = [
|
|
5584
5569
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
5585
5570
|
])),
|
|
5586
5571
|
_: 2,
|
|
@@ -5599,7 +5584,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5599
5584
|
text: "Legend",
|
|
5600
5585
|
location: "left"
|
|
5601
5586
|
}, {
|
|
5602
|
-
activator:
|
|
5587
|
+
activator: u(({ props: H }) => [
|
|
5603
5588
|
m(s, B(H, {
|
|
5604
5589
|
"min-width": "32",
|
|
5605
5590
|
width: "32",
|
|
@@ -5607,7 +5592,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5607
5592
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
5608
5593
|
onClick: e[0] || (e[0] = (te) => a.legendToggle = !a.legendToggle)
|
|
5609
5594
|
}), {
|
|
5610
|
-
default:
|
|
5595
|
+
default: u(() => e[8] || (e[8] = [
|
|
5611
5596
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
5612
5597
|
])),
|
|
5613
5598
|
_: 2,
|
|
@@ -5624,18 +5609,18 @@ function El(t, e, o, i, a, r) {
|
|
|
5624
5609
|
class: "card-info d-flex justify-center align-start",
|
|
5625
5610
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5626
5611
|
}, {
|
|
5627
|
-
default:
|
|
5612
|
+
default: u(() => [
|
|
5628
5613
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5629
|
-
default:
|
|
5614
|
+
default: u(() => [
|
|
5630
5615
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5631
|
-
m(
|
|
5632
|
-
default:
|
|
5616
|
+
m(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5617
|
+
default: u(() => [
|
|
5633
5618
|
(b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(c, {
|
|
5634
5619
|
key: H,
|
|
5635
5620
|
cols: "6",
|
|
5636
5621
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5637
5622
|
}, {
|
|
5638
|
-
default:
|
|
5623
|
+
default: u(() => [
|
|
5639
5624
|
l("div", ll, [
|
|
5640
5625
|
l("i", {
|
|
5641
5626
|
class: Ge(["iconfont", r.barbsIconName[te]]),
|
|
@@ -5655,19 +5640,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5655
5640
|
}),
|
|
5656
5641
|
m(d, { vertical: "" }),
|
|
5657
5642
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5658
|
-
default:
|
|
5643
|
+
default: u(() => [
|
|
5659
5644
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
5660
|
-
m(
|
|
5645
|
+
m(g, {
|
|
5661
5646
|
class: "ma-0 ml-1",
|
|
5662
5647
|
style: { width: "100px" }
|
|
5663
5648
|
}, {
|
|
5664
|
-
default:
|
|
5649
|
+
default: u(() => [
|
|
5665
5650
|
(b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(c, {
|
|
5666
5651
|
key: te,
|
|
5667
5652
|
cols: "12",
|
|
5668
5653
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5669
5654
|
}, {
|
|
5670
|
-
default:
|
|
5655
|
+
default: u(() => [
|
|
5671
5656
|
l("div", nl, [
|
|
5672
5657
|
te === 0 ? (b(), T("div", cl)) : (b(), T("div", {
|
|
5673
5658
|
key: 1,
|
|
@@ -5687,19 +5672,19 @@ function El(t, e, o, i, a, r) {
|
|
|
5687
5672
|
}),
|
|
5688
5673
|
m(d, { vertical: "" }),
|
|
5689
5674
|
m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5690
|
-
default:
|
|
5675
|
+
default: u(() => [
|
|
5691
5676
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
5692
|
-
m(
|
|
5677
|
+
m(g, {
|
|
5693
5678
|
class: "ma-0 ml-n5",
|
|
5694
5679
|
style: { width: "110px" }
|
|
5695
5680
|
}, {
|
|
5696
|
-
default:
|
|
5681
|
+
default: u(() => [
|
|
5697
5682
|
(b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(c, {
|
|
5698
5683
|
key: te,
|
|
5699
5684
|
cols: "12",
|
|
5700
5685
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
5701
5686
|
}, {
|
|
5702
|
-
default:
|
|
5687
|
+
default: u(() => [
|
|
5703
5688
|
l("div", hl, [
|
|
5704
5689
|
l("div", dl, [
|
|
5705
5690
|
l("i", {
|
|
@@ -5741,16 +5726,12 @@ function El(t, e, o, i, a, r) {
|
|
|
5741
5726
|
]),
|
|
5742
5727
|
m(s, {
|
|
5743
5728
|
icon: "",
|
|
5744
|
-
density: "
|
|
5745
|
-
variant: "plain",
|
|
5729
|
+
density: "compact",
|
|
5746
5730
|
class: "mr-n2",
|
|
5747
5731
|
onClick: r.handleMenuToggle
|
|
5748
5732
|
}, {
|
|
5749
|
-
default:
|
|
5750
|
-
l("i", {
|
|
5751
|
-
class: "iconfont icon-close",
|
|
5752
|
-
style: { "font-size": "20px" }
|
|
5753
|
-
}, null, -1)
|
|
5733
|
+
default: u(() => e[12] || (e[12] = [
|
|
5734
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
5754
5735
|
])),
|
|
5755
5736
|
_: 1,
|
|
5756
5737
|
__: [12]
|
|
@@ -5763,14 +5744,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5763
5744
|
class: "menu-card mx-auto mb-3",
|
|
5764
5745
|
elevation: "0"
|
|
5765
5746
|
}, {
|
|
5766
|
-
default:
|
|
5747
|
+
default: u(() => [
|
|
5767
5748
|
m(S, { class: "border-b-thin" }, {
|
|
5768
|
-
default:
|
|
5749
|
+
default: u(() => [
|
|
5769
5750
|
m(x, {
|
|
5770
5751
|
class: "text-subtitle-1 font-weight-medium",
|
|
5771
5752
|
style: { "font-size": "16px !important" }
|
|
5772
5753
|
}, {
|
|
5773
|
-
default:
|
|
5754
|
+
default: u(() => [
|
|
5774
5755
|
G(y(t.$t("weather.overlays")), 1)
|
|
5775
5756
|
]),
|
|
5776
5757
|
_: 1
|
|
@@ -5779,7 +5760,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5779
5760
|
_: 1
|
|
5780
5761
|
}),
|
|
5781
5762
|
m(p, { class: "py-2" }, {
|
|
5782
|
-
default:
|
|
5763
|
+
default: u(() => [
|
|
5783
5764
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (b(), j(C, {
|
|
5784
5765
|
key: H.key,
|
|
5785
5766
|
modelValue: a.checkList,
|
|
@@ -5803,14 +5784,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5803
5784
|
class: "menu-card mx-auto mb-3",
|
|
5804
5785
|
elevation: "0"
|
|
5805
5786
|
}, {
|
|
5806
|
-
default:
|
|
5787
|
+
default: u(() => [
|
|
5807
5788
|
m(S, { class: "border-b-thin" }, {
|
|
5808
|
-
default:
|
|
5789
|
+
default: u(() => [
|
|
5809
5790
|
m(x, {
|
|
5810
5791
|
class: "text-subtitle-1 font-weight-medium",
|
|
5811
5792
|
style: { "font-size": "16px !important" }
|
|
5812
5793
|
}, {
|
|
5813
|
-
default:
|
|
5794
|
+
default: u(() => [
|
|
5814
5795
|
G(y(t.$t("weather.renders")), 1)
|
|
5815
5796
|
]),
|
|
5816
5797
|
_: 1
|
|
@@ -5819,7 +5800,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5819
5800
|
_: 1
|
|
5820
5801
|
}),
|
|
5821
5802
|
m(p, { class: "py-2" }, {
|
|
5822
|
-
default:
|
|
5803
|
+
default: u(() => [
|
|
5823
5804
|
(b(!0), T(ke, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), T(ke, {
|
|
5824
5805
|
key: H.key
|
|
5825
5806
|
}, [
|
|
@@ -5875,7 +5856,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5875
5856
|
group: "",
|
|
5876
5857
|
disabled: !a.autoActive
|
|
5877
5858
|
}, {
|
|
5878
|
-
default:
|
|
5859
|
+
default: u(() => [
|
|
5879
5860
|
m(s, {
|
|
5880
5861
|
density: "compact",
|
|
5881
5862
|
height: "30",
|
|
@@ -5885,7 +5866,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5885
5866
|
"base-color": "grey-lighten-1",
|
|
5886
5867
|
disabled: !a.autoActive
|
|
5887
5868
|
}, {
|
|
5888
|
-
default:
|
|
5869
|
+
default: u(() => [
|
|
5889
5870
|
G(y(t.$t("weather.coverage")), 1)
|
|
5890
5871
|
]),
|
|
5891
5872
|
_: 1
|
|
@@ -5899,7 +5880,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5899
5880
|
disabled: !a.autoActive,
|
|
5900
5881
|
value: "ice-thickness"
|
|
5901
5882
|
}, {
|
|
5902
|
-
default:
|
|
5883
|
+
default: u(() => [
|
|
5903
5884
|
G(y(t.$t("weather.thickness")), 1)
|
|
5904
5885
|
]),
|
|
5905
5886
|
_: 1
|
|
@@ -5918,14 +5899,14 @@ function El(t, e, o, i, a, r) {
|
|
|
5918
5899
|
class: "menu-card mx-auto mb-3",
|
|
5919
5900
|
elevation: "0"
|
|
5920
5901
|
}, {
|
|
5921
|
-
default:
|
|
5902
|
+
default: u(() => [
|
|
5922
5903
|
m(S, { class: "border-b-thin" }, {
|
|
5923
|
-
default:
|
|
5904
|
+
default: u(() => [
|
|
5924
5905
|
m(x, {
|
|
5925
5906
|
class: "text-subtitle-1 font-weight-medium",
|
|
5926
5907
|
style: { "font-size": "16px !important" }
|
|
5927
5908
|
}, {
|
|
5928
|
-
default:
|
|
5909
|
+
default: u(() => [
|
|
5929
5910
|
G(y(t.$t("weather.forecastModel")), 1)
|
|
5930
5911
|
]),
|
|
5931
5912
|
_: 1
|
|
@@ -5934,7 +5915,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5934
5915
|
_: 1
|
|
5935
5916
|
}),
|
|
5936
5917
|
m(p, { class: "" }, {
|
|
5937
|
-
default:
|
|
5918
|
+
default: u(() => {
|
|
5938
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;
|
|
5939
5920
|
return [
|
|
5940
5921
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
@@ -6388,17 +6369,17 @@ class Ca {
|
|
|
6388
6369
|
let c = eo.find((p) => {
|
|
6389
6370
|
var d, f, z;
|
|
6390
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;
|
|
6391
|
-
}),
|
|
6372
|
+
}), g = to.find((p) => {
|
|
6392
6373
|
var d, f, z;
|
|
6393
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;
|
|
6394
6375
|
});
|
|
6395
6376
|
c = c || eo.find((p) => {
|
|
6396
6377
|
var d, f;
|
|
6397
|
-
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f =
|
|
6398
|
-
}),
|
|
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) => {
|
|
6399
6380
|
var d, f;
|
|
6400
6381
|
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = c == null ? void 0 : c.alias) == null ? void 0 : f.toLowerCase());
|
|
6401
|
-
}), c = c || eo[0],
|
|
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);
|
|
6402
6383
|
}
|
|
6403
6384
|
return {
|
|
6404
6385
|
weatherModels: r.join(","),
|
|
@@ -6415,8 +6396,8 @@ class Ca {
|
|
|
6415
6396
|
}), a;
|
|
6416
6397
|
}
|
|
6417
6398
|
static pickHourly(e, o) {
|
|
6418
|
-
var i, a, r, s, n, c,
|
|
6419
|
-
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((n = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : n.at(0), "h"), re = _e.clone().add((p = (
|
|
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 = [];
|
|
6420
6401
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6421
6402
|
const R = he.utc().diff(J, "h", !1);
|
|
6422
6403
|
let fe, Ce;
|
|
@@ -6502,7 +6483,7 @@ class Ca {
|
|
|
6502
6483
|
return Re;
|
|
6503
6484
|
}
|
|
6504
6485
|
static toLegacy(e) {
|
|
6505
|
-
var o, i, a, r, s, n, c,
|
|
6486
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
6506
6487
|
return {
|
|
6507
6488
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
6508
6489
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -6512,7 +6493,7 @@ class Ca {
|
|
|
6512
6493
|
kts: (n = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : n.gusts
|
|
6513
6494
|
},
|
|
6514
6495
|
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
6515
|
-
code: (
|
|
6496
|
+
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
6516
6497
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
6517
6498
|
url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
|
|
6518
6499
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -6524,7 +6505,7 @@ class Ca {
|
|
|
6524
6505
|
};
|
|
6525
6506
|
}
|
|
6526
6507
|
static pickDaily(e, o) {
|
|
6527
|
-
var i, a, r, s, n, c,
|
|
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;
|
|
6528
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 = [];
|
|
6529
6510
|
if (Ae.isBetween(te, je, "millisecond", "[]")) {
|
|
6530
6511
|
let he, ge;
|
|
@@ -6533,7 +6514,7 @@ class Ca {
|
|
|
6533
6514
|
for (const _e of ye) {
|
|
6534
6515
|
const J = _e.daily;
|
|
6535
6516
|
he = {
|
|
6536
|
-
code: (
|
|
6517
|
+
code: (g = J.weather_code) == null ? void 0 : g.at(W),
|
|
6537
6518
|
temp: {
|
|
6538
6519
|
max: (p = J.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
6539
6520
|
min: (d = J.temperature_2m_min) == null ? void 0 : d.at(W),
|
|
@@ -7156,13 +7137,13 @@ const Nl = {
|
|
|
7156
7137
|
}
|
|
7157
7138
|
});
|
|
7158
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) {
|
|
7159
|
-
const
|
|
7160
|
-
await Be.get(
|
|
7140
|
+
const g = (s = c == null ? void 0 : c.data) == null ? void 0 : s.data;
|
|
7141
|
+
await Be.get(g.tropicals, {
|
|
7161
7142
|
headers: {
|
|
7162
7143
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7163
7144
|
key: "tropicals"
|
|
7164
7145
|
},
|
|
7165
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7146
|
+
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
7166
7147
|
}).then((p) => {
|
|
7167
7148
|
var z, x, S;
|
|
7168
7149
|
const d = Pa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
|
|
@@ -7189,7 +7170,7 @@ const Nl = {
|
|
|
7189
7170
|
}), this.handleInit();
|
|
7190
7171
|
},
|
|
7191
7172
|
handleInit() {
|
|
7192
|
-
var t, e, o, i, a, r, s, n, c,
|
|
7173
|
+
var t, e, o, i, a, r, s, n, c, g;
|
|
7193
7174
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
7194
7175
|
"click",
|
|
7195
7176
|
[
|
|
@@ -7203,10 +7184,10 @@ const Nl = {
|
|
|
7203
7184
|
this.historyPointLabelLayer
|
|
7204
7185
|
],
|
|
7205
7186
|
this.handleClick
|
|
7206
|
-
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (
|
|
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);
|
|
7207
7188
|
},
|
|
7208
7189
|
handleRender() {
|
|
7209
|
-
var t, e, o, i, a, r, s, n, c,
|
|
7190
|
+
var t, e, o, i, a, r, s, n, c, g;
|
|
7210
7191
|
if (!this.map)
|
|
7211
7192
|
setTimeout(() => {
|
|
7212
7193
|
this.handleRender();
|
|
@@ -7314,7 +7295,7 @@ const Nl = {
|
|
|
7314
7295
|
}
|
|
7315
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, {
|
|
7316
7297
|
type: "geojson",
|
|
7317
|
-
data: (c = this.tropicals) != null && c.active ? (
|
|
7298
|
+
data: (c = this.tropicals) != null && c.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
|
|
7318
7299
|
// cluster: true,
|
|
7319
7300
|
// clusterRadius: 10, // 聚合半径
|
|
7320
7301
|
}), this.map.addLayer({
|
|
@@ -7453,7 +7434,7 @@ const Nl = {
|
|
|
7453
7434
|
), this.showTropicalsInfo = !1;
|
|
7454
7435
|
},
|
|
7455
7436
|
handleDateChange() {
|
|
7456
|
-
var t, e, o, i, a, r, s, n, c,
|
|
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;
|
|
7457
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) {
|
|
7458
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]);
|
|
7459
7440
|
pe.forEach((K) => {
|
|
@@ -7475,7 +7456,7 @@ const Nl = {
|
|
|
7475
7456
|
for (const K of de)
|
|
7476
7457
|
if (!K.properties.disabled) {
|
|
7477
7458
|
let ie = "#f44336";
|
|
7478
|
-
((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((
|
|
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";
|
|
7479
7460
|
const ue = `<svg t="1719918955501"
|
|
7480
7461
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7481
7462
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7499,7 +7480,7 @@ const Nl = {
|
|
|
7499
7480
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
7500
7481
|
},
|
|
7501
7482
|
handleClick(t) {
|
|
7502
|
-
var r, s, n, c,
|
|
7483
|
+
var r, s, n, c, g, p, d, f;
|
|
7503
7484
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7504
7485
|
(z) => {
|
|
7505
7486
|
var x;
|
|
@@ -7512,7 +7493,7 @@ const Nl = {
|
|
|
7512
7493
|
}
|
|
7513
7494
|
);
|
|
7514
7495
|
this.activeTropicals = {
|
|
7515
|
-
name: (
|
|
7496
|
+
name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
|
|
7516
7497
|
forecasts: o.map((z) => z.properties),
|
|
7517
7498
|
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
7518
7499
|
showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
@@ -7524,10 +7505,10 @@ const Nl = {
|
|
|
7524
7505
|
var i, a, r, s, n, c;
|
|
7525
7506
|
t.disabled = !t.disabled;
|
|
7526
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;
|
|
7527
|
-
o.forEach((
|
|
7528
|
-
|
|
7529
|
-
}), this.interpolateData.forEach((
|
|
7530
|
-
|
|
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);
|
|
7531
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();
|
|
7532
7513
|
},
|
|
7533
7514
|
handleStrikeProbability(t) {
|
|
@@ -7617,7 +7598,7 @@ const Nl = {
|
|
|
7617
7598
|
style: { height: "80px" }
|
|
7618
7599
|
}, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
7619
7600
|
function is(t, e, o, i, a, r) {
|
|
7620
|
-
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardText"),
|
|
7601
|
+
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardText"), g = w("VDivider"), p = w("VCardActions"), d = w("VCard");
|
|
7621
7602
|
return b(), T("div", Fl, [
|
|
7622
7603
|
l("div", {
|
|
7623
7604
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7627,7 +7608,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7627
7608
|
text: t.$t("tropical.tropicals"),
|
|
7628
7609
|
location: "left"
|
|
7629
7610
|
}, {
|
|
7630
|
-
activator:
|
|
7611
|
+
activator: u(({ props: f }) => [
|
|
7631
7612
|
m(s, B(f, {
|
|
7632
7613
|
"min-width": "32",
|
|
7633
7614
|
width: "32",
|
|
@@ -7635,7 +7616,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7635
7616
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7636
7617
|
onClick: r.handleMenuToggle
|
|
7637
7618
|
}), {
|
|
7638
|
-
default:
|
|
7619
|
+
default: u(() => e[4] || (e[4] = [
|
|
7639
7620
|
l("i", { class: "iconfont icon-a-Tropicalcyclone text-h4" }, null, -1)
|
|
7640
7621
|
])),
|
|
7641
7622
|
_: 2,
|
|
@@ -7650,9 +7631,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7650
7631
|
width: "400",
|
|
7651
7632
|
elevation: "16"
|
|
7652
7633
|
}, {
|
|
7653
|
-
default:
|
|
7634
|
+
default: u(() => [
|
|
7654
7635
|
m(c, null, {
|
|
7655
|
-
default:
|
|
7636
|
+
default: u(() => {
|
|
7656
7637
|
var f, z, x, S, C, N, M, L, v, _;
|
|
7657
7638
|
return [
|
|
7658
7639
|
l("div", Wl, [
|
|
@@ -7660,49 +7641,53 @@ function is(t, e, o, i, a, r) {
|
|
|
7660
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)
|
|
7661
7642
|
]),
|
|
7662
7643
|
m(s, {
|
|
7663
|
-
icon: "
|
|
7664
|
-
size: "small",
|
|
7644
|
+
icon: "",
|
|
7665
7645
|
density: "compact",
|
|
7666
|
-
variant: "text",
|
|
7667
7646
|
class: "close",
|
|
7668
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]
|
|
7669
7654
|
}),
|
|
7670
7655
|
l("div", Vl, [
|
|
7671
|
-
e[
|
|
7656
|
+
e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
7672
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)
|
|
7673
7658
|
])
|
|
7674
7659
|
];
|
|
7675
7660
|
}),
|
|
7676
7661
|
_: 1
|
|
7677
7662
|
}),
|
|
7678
|
-
m(
|
|
7663
|
+
m(g),
|
|
7679
7664
|
m(c, { class: "text-body-1" }, {
|
|
7680
|
-
default:
|
|
7665
|
+
default: u(() => {
|
|
7681
7666
|
var f, z, x, S, C, N, M, L, v;
|
|
7682
7667
|
return [
|
|
7683
7668
|
l("div", Yl, [
|
|
7684
7669
|
l("div", Zl, [
|
|
7685
|
-
e[
|
|
7670
|
+
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
7686
7671
|
l("span", null, y(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
7687
7672
|
l("span", null, ", BF " + y(r.computeBF(((S = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : S.kts) || "-")), 1)
|
|
7688
7673
|
]),
|
|
7689
7674
|
l("div", Xl, [
|
|
7690
|
-
e[
|
|
7675
|
+
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
7691
7676
|
l("span", null, y(((N = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : N.pressure) || "-") + " hPa", 1)
|
|
7692
7677
|
])
|
|
7693
7678
|
]),
|
|
7694
7679
|
l("div", ql, [
|
|
7695
7680
|
l("div", Kl, [
|
|
7696
|
-
e[
|
|
7681
|
+
e[9] || (e[9] = l("label", { class: "opacity-70 pr-1" }, "Move Speed : ", -1)),
|
|
7697
7682
|
l("span", null, y(((M = r.computeMovement(a.activeTropicals)) == null ? void 0 : M.kts) || "-") + " kts", 1)
|
|
7698
7683
|
]),
|
|
7699
7684
|
l("div", Ql, [
|
|
7700
|
-
e[
|
|
7685
|
+
e[10] || (e[10] = l("label", { class: "opacity-70 pr-1" }, "Move Dir : ", -1)),
|
|
7701
7686
|
l("span", null, y(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
7702
7687
|
])
|
|
7703
7688
|
]),
|
|
7704
7689
|
l("div", Jl, [
|
|
7705
|
-
e[
|
|
7690
|
+
e[11] || (e[11] = l("label", {
|
|
7706
7691
|
class: "opacity-70 pr-1",
|
|
7707
7692
|
style: { width: "max-content" }
|
|
7708
7693
|
}, "Forecast Models : ", -1)),
|
|
@@ -7715,7 +7700,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7715
7700
|
class: Ge(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
|
|
7716
7701
|
onClick: (k) => r.handleForecastToggle(_)
|
|
7717
7702
|
}, {
|
|
7718
|
-
default:
|
|
7703
|
+
default: u(() => [
|
|
7719
7704
|
G(y(_.model), 1)
|
|
7720
7705
|
]),
|
|
7721
7706
|
_: 2
|
|
@@ -7726,9 +7711,9 @@ function is(t, e, o, i, a, r) {
|
|
|
7726
7711
|
}),
|
|
7727
7712
|
_: 1
|
|
7728
7713
|
}),
|
|
7729
|
-
m(
|
|
7714
|
+
m(g),
|
|
7730
7715
|
m(p, { class: "d-flex justify-space-between" }, {
|
|
7731
|
-
default:
|
|
7716
|
+
default: u(() => [
|
|
7732
7717
|
m(s, {
|
|
7733
7718
|
density: "compact",
|
|
7734
7719
|
"prepend-icon": "",
|
|
@@ -7737,14 +7722,14 @@ function is(t, e, o, i, a, r) {
|
|
|
7737
7722
|
class: "text-none text-body-1",
|
|
7738
7723
|
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
7739
7724
|
}, {
|
|
7740
|
-
prepend:
|
|
7725
|
+
prepend: u(() => e[12] || (e[12] = [
|
|
7741
7726
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7742
7727
|
])),
|
|
7743
|
-
default:
|
|
7744
|
-
e[
|
|
7728
|
+
default: u(() => [
|
|
7729
|
+
e[13] || (e[13] = G(" Legend ", -1))
|
|
7745
7730
|
]),
|
|
7746
7731
|
_: 1,
|
|
7747
|
-
__: [
|
|
7732
|
+
__: [13]
|
|
7748
7733
|
}, 8, ["color"]),
|
|
7749
7734
|
l("div", es, [
|
|
7750
7735
|
o.permission & a.helper.LEVEL.Supper ? (b(), j(s, {
|
|
@@ -7754,11 +7739,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7754
7739
|
class: "text-none text-body-1",
|
|
7755
7740
|
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
7756
7741
|
}, {
|
|
7757
|
-
default:
|
|
7742
|
+
default: u(() => e[14] || (e[14] = [
|
|
7758
7743
|
G("Notify", -1)
|
|
7759
7744
|
])),
|
|
7760
7745
|
_: 1,
|
|
7761
|
-
__: [
|
|
7746
|
+
__: [14]
|
|
7762
7747
|
})) : O("", !0),
|
|
7763
7748
|
m(s, {
|
|
7764
7749
|
variant: "text",
|
|
@@ -7767,11 +7752,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7767
7752
|
class: "text-none text-body-1",
|
|
7768
7753
|
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
7769
7754
|
}, {
|
|
7770
|
-
default:
|
|
7755
|
+
default: u(() => e[15] || (e[15] = [
|
|
7771
7756
|
G("View Report", -1)
|
|
7772
7757
|
])),
|
|
7773
7758
|
_: 1,
|
|
7774
|
-
__: [
|
|
7759
|
+
__: [15]
|
|
7775
7760
|
})
|
|
7776
7761
|
])
|
|
7777
7762
|
]),
|
|
@@ -7785,10 +7770,10 @@ function is(t, e, o, i, a, r) {
|
|
|
7785
7770
|
width: "400",
|
|
7786
7771
|
elevation: "16"
|
|
7787
7772
|
}, {
|
|
7788
|
-
default:
|
|
7773
|
+
default: u(() => [
|
|
7789
7774
|
m(c, null, {
|
|
7790
|
-
default:
|
|
7791
|
-
He(l("div", os, e[
|
|
7775
|
+
default: u(() => [
|
|
7776
|
+
He(l("div", os, e[16] || (e[16] = [
|
|
7792
7777
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7793
7778
|
l("div", { class: "icon td" }),
|
|
7794
7779
|
l("div", { class: "label" }, "TD")
|
|
@@ -7816,7 +7801,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7816
7801
|
]), 512), [
|
|
7817
7802
|
[We, a.showLegend]
|
|
7818
7803
|
]),
|
|
7819
|
-
He(l("div", as, e[
|
|
7804
|
+
He(l("div", as, e[17] || (e[17] = [
|
|
7820
7805
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7821
7806
|
l("div", { class: "icon history" }),
|
|
7822
7807
|
l("div", { class: "label" }, "History")
|
|
@@ -8011,7 +7996,7 @@ const rs = {
|
|
|
8011
7996
|
style: { height: "56px" }
|
|
8012
7997
|
};
|
|
8013
7998
|
function ms(t, e, o, i, a, r) {
|
|
8014
|
-
const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"),
|
|
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");
|
|
8015
8000
|
return b(), T("div", ls, [
|
|
8016
8001
|
m(s, {
|
|
8017
8002
|
text: "",
|
|
@@ -8019,7 +8004,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8019
8004
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
8020
8005
|
onClick: r.handleOpenDatePicker
|
|
8021
8006
|
}, {
|
|
8022
|
-
default:
|
|
8007
|
+
default: u(() => [
|
|
8023
8008
|
G(y(a.currentDateTime) + " | UTC " + y(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
8024
8009
|
]),
|
|
8025
8010
|
_: 1
|
|
@@ -8028,9 +8013,9 @@ function ms(t, e, o, i, a, r) {
|
|
|
8028
8013
|
key: 0,
|
|
8029
8014
|
class: "card-box d-flex flex-column"
|
|
8030
8015
|
}, {
|
|
8031
|
-
default:
|
|
8016
|
+
default: u(() => [
|
|
8032
8017
|
m(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
8033
|
-
default:
|
|
8018
|
+
default: u(() => [
|
|
8034
8019
|
l("div", ss, [
|
|
8035
8020
|
m(n, {
|
|
8036
8021
|
modelValue: a.currentDate,
|
|
@@ -8053,7 +8038,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8053
8038
|
l("div", ns, [
|
|
8054
8039
|
l("div", cs, y(a.currentTime), 1),
|
|
8055
8040
|
m(d, { class: "pa-0 flex-1-1-0" }, {
|
|
8056
|
-
default:
|
|
8041
|
+
default: u(() => [
|
|
8057
8042
|
(b(!0), T(ke, null, Le(r.hourOptions, (S, C) => (b(), j(p, {
|
|
8058
8043
|
key: C,
|
|
8059
8044
|
value: S,
|
|
@@ -8063,12 +8048,12 @@ function ms(t, e, o, i, a, r) {
|
|
|
8063
8048
|
height: "26",
|
|
8064
8049
|
"min-height": "26"
|
|
8065
8050
|
}, {
|
|
8066
|
-
default:
|
|
8067
|
-
m(
|
|
8051
|
+
default: u(() => [
|
|
8052
|
+
m(g, {
|
|
8068
8053
|
class: "text-body-2 text-center",
|
|
8069
8054
|
onClick: (N) => a.currentTime = S
|
|
8070
8055
|
}, {
|
|
8071
|
-
default:
|
|
8056
|
+
default: u(() => [
|
|
8072
8057
|
G(y(S), 1)
|
|
8073
8058
|
]),
|
|
8074
8059
|
_: 2
|
|
@@ -8088,14 +8073,14 @@ function ms(t, e, o, i, a, r) {
|
|
|
8088
8073
|
class: "justify-end pa-0 pr-4",
|
|
8089
8074
|
style: { height: "50px" }
|
|
8090
8075
|
}, {
|
|
8091
|
-
default:
|
|
8076
|
+
default: u(() => [
|
|
8092
8077
|
m(s, {
|
|
8093
8078
|
size: "small",
|
|
8094
8079
|
variant: "tonal",
|
|
8095
8080
|
class: "text-none",
|
|
8096
8081
|
onClick: r.handleCancelDate
|
|
8097
8082
|
}, {
|
|
8098
|
-
default:
|
|
8083
|
+
default: u(() => e[1] || (e[1] = [
|
|
8099
8084
|
G("Cancel", -1)
|
|
8100
8085
|
])),
|
|
8101
8086
|
_: 1,
|
|
@@ -8108,7 +8093,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8108
8093
|
class: "text-none",
|
|
8109
8094
|
onClick: r.handleConfirmDate
|
|
8110
8095
|
}, {
|
|
8111
|
-
default:
|
|
8096
|
+
default: u(() => e[2] || (e[2] = [
|
|
8112
8097
|
G("Confirm", -1)
|
|
8113
8098
|
])),
|
|
8114
8099
|
_: 1,
|
|
@@ -8307,9 +8292,9 @@ const hs = {
|
|
|
8307
8292
|
}
|
|
8308
8293
|
});
|
|
8309
8294
|
},
|
|
8310
|
-
|
|
8311
|
-
var t
|
|
8312
|
-
|
|
8295
|
+
cancelForm() {
|
|
8296
|
+
var t;
|
|
8297
|
+
(t = this.$refs.spotForm) == null || t.reset(), this.form = {
|
|
8313
8298
|
lng: void 0,
|
|
8314
8299
|
lngDegree: void 0,
|
|
8315
8300
|
lngMinute: void 0,
|
|
@@ -8320,7 +8305,11 @@ const hs = {
|
|
|
8320
8305
|
latDirection: "N",
|
|
8321
8306
|
dateTime: void 0,
|
|
8322
8307
|
forecastModel: this.forecastModel
|
|
8323
|
-
}
|
|
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;
|
|
8324
8313
|
},
|
|
8325
8314
|
async fetchMeteoData(t) {
|
|
8326
8315
|
this.loading = !0, this.meteoData = [];
|
|
@@ -8357,10 +8346,10 @@ const hs = {
|
|
|
8357
8346
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
8358
8347
|
},
|
|
8359
8348
|
initTableData(t) {
|
|
8360
|
-
var o, i, a, r, s, n, c,
|
|
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;
|
|
8361
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;
|
|
8362
8351
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
8363
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((
|
|
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;
|
|
8364
8353
|
},
|
|
8365
8354
|
handleBind() {
|
|
8366
8355
|
var t, e;
|
|
@@ -8409,8 +8398,8 @@ const hs = {
|
|
|
8409
8398
|
this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
|
|
8410
8399
|
},
|
|
8411
8400
|
handleCloseMeteo() {
|
|
8412
|
-
var t;
|
|
8413
|
-
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);
|
|
8414
8403
|
},
|
|
8415
8404
|
handleFollow() {
|
|
8416
8405
|
this.$emit("follow", "point", this.point);
|
|
@@ -8430,7 +8419,7 @@ const hs = {
|
|
|
8430
8419
|
"aria-hidden": "true"
|
|
8431
8420
|
}, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
|
|
8432
8421
|
function Cs(t, e, o, i, a, r) {
|
|
8433
|
-
const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"),
|
|
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");
|
|
8434
8423
|
return b(), T("div", ds, [
|
|
8435
8424
|
l("div", {
|
|
8436
8425
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8440,7 +8429,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8440
8429
|
text: t.$t("spot.spotsMeteo"),
|
|
8441
8430
|
location: "left"
|
|
8442
8431
|
}, {
|
|
8443
|
-
activator:
|
|
8432
|
+
activator: u(({ props: v }) => [
|
|
8444
8433
|
m(s, B(v, {
|
|
8445
8434
|
"min-width": "32",
|
|
8446
8435
|
width: "32",
|
|
@@ -8448,7 +8437,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8448
8437
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
8449
8438
|
onClick: r.handleMenuToggle
|
|
8450
8439
|
}), {
|
|
8451
|
-
default:
|
|
8440
|
+
default: u(() => e[8] || (e[8] = [
|
|
8452
8441
|
l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
8453
8442
|
])),
|
|
8454
8443
|
_: 2,
|
|
@@ -8463,24 +8452,20 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8463
8452
|
class: "spot-form-card",
|
|
8464
8453
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8465
8454
|
}, {
|
|
8466
|
-
default:
|
|
8455
|
+
default: u(() => [
|
|
8467
8456
|
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8468
|
-
default:
|
|
8457
|
+
default: u(() => [
|
|
8469
8458
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
8470
8459
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
8471
8460
|
], -1)),
|
|
8472
8461
|
m(s, {
|
|
8473
8462
|
icon: "",
|
|
8474
|
-
density: "
|
|
8475
|
-
variant: "plain",
|
|
8463
|
+
density: "compact",
|
|
8476
8464
|
class: "mr-n2",
|
|
8477
8465
|
onClick: r.handleCloseForm
|
|
8478
8466
|
}, {
|
|
8479
|
-
default:
|
|
8480
|
-
l("i", {
|
|
8481
|
-
class: "iconfont icon-close",
|
|
8482
|
-
style: { "font-size": "20px" }
|
|
8483
|
-
}, null, -1)
|
|
8467
|
+
default: u(() => e[9] || (e[9] = [
|
|
8468
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
8484
8469
|
])),
|
|
8485
8470
|
_: 1,
|
|
8486
8471
|
__: [9]
|
|
@@ -8489,16 +8474,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8489
8474
|
_: 1,
|
|
8490
8475
|
__: [10]
|
|
8491
8476
|
}),
|
|
8492
|
-
m(
|
|
8477
|
+
m(g),
|
|
8493
8478
|
m(N, { class: "text-body-1 py-1" }, {
|
|
8494
|
-
default:
|
|
8479
|
+
default: u(() => [
|
|
8495
8480
|
m(C, {
|
|
8496
8481
|
ref: "spotForm",
|
|
8497
8482
|
autocomplete: "off",
|
|
8498
8483
|
class: "form-box",
|
|
8499
8484
|
onSubmit: Aa(r.submitForm, ["prevent"])
|
|
8500
8485
|
}, {
|
|
8501
|
-
default:
|
|
8486
|
+
default: u(() => [
|
|
8502
8487
|
l("div", ps, [
|
|
8503
8488
|
(b(), T("svg", us, [
|
|
8504
8489
|
l("use", {
|
|
@@ -8508,12 +8493,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8508
8493
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8509
8494
|
]),
|
|
8510
8495
|
m(f, { class: "ma-0" }, {
|
|
8511
|
-
default:
|
|
8496
|
+
default: u(() => [
|
|
8512
8497
|
m(d, {
|
|
8513
8498
|
cols: "4",
|
|
8514
8499
|
class: "pa-0 d-flex"
|
|
8515
8500
|
}, {
|
|
8516
|
-
default:
|
|
8501
|
+
default: u(() => [
|
|
8517
8502
|
m(p, {
|
|
8518
8503
|
modelValue: a.form.lngDegree,
|
|
8519
8504
|
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
|
|
@@ -8532,7 +8517,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8532
8517
|
cols: "6",
|
|
8533
8518
|
class: "pa-0 d-flex"
|
|
8534
8519
|
}, {
|
|
8535
|
-
default:
|
|
8520
|
+
default: u(() => [
|
|
8536
8521
|
m(p, {
|
|
8537
8522
|
modelValue: a.form.lngMinute,
|
|
8538
8523
|
"onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
|
|
@@ -8552,7 +8537,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8552
8537
|
cols: "2",
|
|
8553
8538
|
class: "pa-0"
|
|
8554
8539
|
}, {
|
|
8555
|
-
default:
|
|
8540
|
+
default: u(() => [
|
|
8556
8541
|
m(s, {
|
|
8557
8542
|
variant: "outlined",
|
|
8558
8543
|
density: "compact",
|
|
@@ -8563,7 +8548,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8563
8548
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8564
8549
|
onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8565
8550
|
}, {
|
|
8566
|
-
default:
|
|
8551
|
+
default: u(() => [
|
|
8567
8552
|
G(y(a.form.lngDirection), 1)
|
|
8568
8553
|
]),
|
|
8569
8554
|
_: 1
|
|
@@ -8583,12 +8568,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8583
8568
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8584
8569
|
]),
|
|
8585
8570
|
m(f, { class: "ma-0" }, {
|
|
8586
|
-
default:
|
|
8571
|
+
default: u(() => [
|
|
8587
8572
|
m(d, {
|
|
8588
8573
|
cols: "4",
|
|
8589
8574
|
class: "pa-0 d-flex"
|
|
8590
8575
|
}, {
|
|
8591
|
-
default:
|
|
8576
|
+
default: u(() => [
|
|
8592
8577
|
m(p, {
|
|
8593
8578
|
modelValue: a.form.latDegree,
|
|
8594
8579
|
"onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
|
|
@@ -8610,7 +8595,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8610
8595
|
cols: "6",
|
|
8611
8596
|
class: "pa-0 d-flex"
|
|
8612
8597
|
}, {
|
|
8613
|
-
default:
|
|
8598
|
+
default: u(() => [
|
|
8614
8599
|
m(p, {
|
|
8615
8600
|
modelValue: a.form.latMinute,
|
|
8616
8601
|
"onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
|
|
@@ -8630,7 +8615,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8630
8615
|
cols: "2",
|
|
8631
8616
|
class: "pa-0"
|
|
8632
8617
|
}, {
|
|
8633
|
-
default:
|
|
8618
|
+
default: u(() => [
|
|
8634
8619
|
m(s, {
|
|
8635
8620
|
variant: "outlined",
|
|
8636
8621
|
density: "compact",
|
|
@@ -8641,7 +8626,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8641
8626
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8642
8627
|
onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8643
8628
|
}, {
|
|
8644
|
-
default:
|
|
8629
|
+
default: u(() => [
|
|
8645
8630
|
G(y(a.form.latDirection), 1)
|
|
8646
8631
|
]),
|
|
8647
8632
|
_: 1
|
|
@@ -8655,18 +8640,18 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8655
8640
|
l("div", ws, [
|
|
8656
8641
|
(b(), T("svg", xs, [
|
|
8657
8642
|
l("use", {
|
|
8658
|
-
"xlink:href": `#icon-
|
|
8643
|
+
"xlink:href": `#icon-date-time-${o.theme}`
|
|
8659
8644
|
}, null, 8, vs)
|
|
8660
8645
|
])),
|
|
8661
8646
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8662
8647
|
]),
|
|
8663
8648
|
m(f, { class: "ma-0 mb-4" }, {
|
|
8664
|
-
default:
|
|
8649
|
+
default: u(() => [
|
|
8665
8650
|
m(d, {
|
|
8666
8651
|
cols: "12",
|
|
8667
8652
|
class: "pa-0"
|
|
8668
8653
|
}, {
|
|
8669
|
-
default:
|
|
8654
|
+
default: u(() => [
|
|
8670
8655
|
m(z, B({
|
|
8671
8656
|
"date-time": a.form.dateTime,
|
|
8672
8657
|
"time-zone": o.timeZone
|
|
@@ -8682,18 +8667,18 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8682
8667
|
l("div", _s, [
|
|
8683
8668
|
(b(), T("svg", ks, [
|
|
8684
8669
|
l("use", {
|
|
8685
|
-
"xlink:href": `#icon-
|
|
8670
|
+
"xlink:href": `#icon-forecast-model-${o.theme}`
|
|
8686
8671
|
}, null, 8, zs)
|
|
8687
8672
|
])),
|
|
8688
8673
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8689
8674
|
]),
|
|
8690
8675
|
m(f, { class: "ma-0 mb-2" }, {
|
|
8691
|
-
default:
|
|
8676
|
+
default: u(() => [
|
|
8692
8677
|
m(d, {
|
|
8693
8678
|
cols: "12",
|
|
8694
8679
|
class: "pa-0"
|
|
8695
8680
|
}, {
|
|
8696
|
-
default:
|
|
8681
|
+
default: u(() => [
|
|
8697
8682
|
m(x, {
|
|
8698
8683
|
modelValue: a.form.forecastModel,
|
|
8699
8684
|
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
@@ -8703,7 +8688,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8703
8688
|
density: "compact",
|
|
8704
8689
|
group: ""
|
|
8705
8690
|
}, {
|
|
8706
|
-
default:
|
|
8691
|
+
default: u(() => [
|
|
8707
8692
|
m(s, {
|
|
8708
8693
|
density: "compact",
|
|
8709
8694
|
height: "30",
|
|
@@ -8712,7 +8697,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8712
8697
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
8713
8698
|
"base-color": ""
|
|
8714
8699
|
}, {
|
|
8715
|
-
default:
|
|
8700
|
+
default: u(() => e[19] || (e[19] = [
|
|
8716
8701
|
G("NOAA", -1)
|
|
8717
8702
|
])),
|
|
8718
8703
|
_: 1,
|
|
@@ -8726,7 +8711,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8726
8711
|
"base-color": "",
|
|
8727
8712
|
value: "ECMWF"
|
|
8728
8713
|
}, {
|
|
8729
|
-
default:
|
|
8714
|
+
default: u(() => e[20] || (e[20] = [
|
|
8730
8715
|
G("ECMWF", -1)
|
|
8731
8716
|
])),
|
|
8732
8717
|
_: 1,
|
|
@@ -8741,16 +8726,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8741
8726
|
]),
|
|
8742
8727
|
_: 1
|
|
8743
8728
|
}),
|
|
8744
|
-
m(
|
|
8729
|
+
m(g),
|
|
8745
8730
|
m(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8746
|
-
default:
|
|
8731
|
+
default: u(() => [
|
|
8747
8732
|
m(s, {
|
|
8748
8733
|
size: "small",
|
|
8749
8734
|
variant: "outlined",
|
|
8750
8735
|
class: "text-none text-body-1",
|
|
8751
|
-
onClick: r.
|
|
8736
|
+
onClick: r.cancelForm
|
|
8752
8737
|
}, {
|
|
8753
|
-
default:
|
|
8738
|
+
default: u(() => e[21] || (e[21] = [
|
|
8754
8739
|
G("Clear", -1)
|
|
8755
8740
|
])),
|
|
8756
8741
|
_: 1,
|
|
@@ -8764,7 +8749,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8764
8749
|
type: "submit",
|
|
8765
8750
|
class: "text-none text-body-1"
|
|
8766
8751
|
}, {
|
|
8767
|
-
default:
|
|
8752
|
+
default: u(() => e[22] || (e[22] = [
|
|
8768
8753
|
G("Confirm", -1)
|
|
8769
8754
|
])),
|
|
8770
8755
|
_: 1,
|
|
@@ -8787,9 +8772,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8787
8772
|
class: "spot-meteo",
|
|
8788
8773
|
style: { width: "490px", "z-index": "9" }
|
|
8789
8774
|
}, {
|
|
8790
|
-
default:
|
|
8775
|
+
default: u(() => [
|
|
8791
8776
|
m(c, { class: "d-flex justify-space-between align-center" }, {
|
|
8792
|
-
default:
|
|
8777
|
+
default: u(() => {
|
|
8793
8778
|
var v, _;
|
|
8794
8779
|
return [
|
|
8795
8780
|
l("div", Ls, [
|
|
@@ -8798,16 +8783,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8798
8783
|
]),
|
|
8799
8784
|
m(s, {
|
|
8800
8785
|
icon: "",
|
|
8801
|
-
density: "
|
|
8802
|
-
variant: "plain",
|
|
8786
|
+
density: "compact",
|
|
8803
8787
|
class: "mr-n2",
|
|
8804
8788
|
onClick: r.handleCloseMeteo
|
|
8805
8789
|
}, {
|
|
8806
|
-
default:
|
|
8807
|
-
l("i", {
|
|
8808
|
-
class: "iconfont icon-close",
|
|
8809
|
-
style: { "font-size": "20px" }
|
|
8810
|
-
}, null, -1)
|
|
8790
|
+
default: u(() => e[24] || (e[24] = [
|
|
8791
|
+
l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
|
|
8811
8792
|
])),
|
|
8812
8793
|
_: 1,
|
|
8813
8794
|
__: [24]
|
|
@@ -8816,16 +8797,16 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8816
8797
|
}),
|
|
8817
8798
|
_: 1
|
|
8818
8799
|
}),
|
|
8819
|
-
m(
|
|
8800
|
+
m(g),
|
|
8820
8801
|
m(N, { class: "text-body-1 ml-n8" }, {
|
|
8821
|
-
default:
|
|
8802
|
+
default: u(() => [
|
|
8822
8803
|
m(f, null, {
|
|
8823
|
-
default:
|
|
8804
|
+
default: u(() => [
|
|
8824
8805
|
m(d, {
|
|
8825
8806
|
cols: "3",
|
|
8826
8807
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8827
8808
|
}, {
|
|
8828
|
-
default:
|
|
8809
|
+
default: u(() => e[25] || (e[25] = [
|
|
8829
8810
|
G("Time", -1)
|
|
8830
8811
|
])),
|
|
8831
8812
|
_: 1,
|
|
@@ -8835,7 +8816,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8835
8816
|
cols: "9",
|
|
8836
8817
|
class: "pa-2 px-0"
|
|
8837
8818
|
}, {
|
|
8838
|
-
default:
|
|
8819
|
+
default: u(() => {
|
|
8839
8820
|
var v;
|
|
8840
8821
|
return [
|
|
8841
8822
|
G(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8847,12 +8828,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8847
8828
|
_: 1
|
|
8848
8829
|
}),
|
|
8849
8830
|
m(f, null, {
|
|
8850
|
-
default:
|
|
8831
|
+
default: u(() => [
|
|
8851
8832
|
m(d, {
|
|
8852
8833
|
cols: "3",
|
|
8853
8834
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8854
8835
|
}, {
|
|
8855
|
-
default:
|
|
8836
|
+
default: u(() => e[26] || (e[26] = [
|
|
8856
8837
|
G("LT", -1)
|
|
8857
8838
|
])),
|
|
8858
8839
|
_: 1,
|
|
@@ -8862,7 +8843,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8862
8843
|
cols: "9",
|
|
8863
8844
|
class: "pa-2 px-0"
|
|
8864
8845
|
}, {
|
|
8865
|
-
default:
|
|
8846
|
+
default: u(() => {
|
|
8866
8847
|
var v;
|
|
8867
8848
|
return [
|
|
8868
8849
|
G(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
@@ -8874,12 +8855,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8874
8855
|
_: 1
|
|
8875
8856
|
}),
|
|
8876
8857
|
m(f, null, {
|
|
8877
|
-
default:
|
|
8858
|
+
default: u(() => [
|
|
8878
8859
|
m(d, {
|
|
8879
8860
|
cols: "3",
|
|
8880
8861
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8881
8862
|
}, {
|
|
8882
|
-
default:
|
|
8863
|
+
default: u(() => e[27] || (e[27] = [
|
|
8883
8864
|
G("Wind", -1)
|
|
8884
8865
|
])),
|
|
8885
8866
|
_: 1,
|
|
@@ -8889,7 +8870,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8889
8870
|
cols: "4",
|
|
8890
8871
|
class: "pa-2 px-0 text-left"
|
|
8891
8872
|
}, {
|
|
8892
|
-
default:
|
|
8873
|
+
default: u(() => [
|
|
8893
8874
|
G(y(a.currentHourData.windDir) + " / " + y(a.currentHourData.windSpeed) + "kts / BF" + y(a.currentHourData.windLevel), 1)
|
|
8894
8875
|
]),
|
|
8895
8876
|
_: 1
|
|
@@ -8898,7 +8879,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8898
8879
|
cols: "2",
|
|
8899
8880
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8900
8881
|
}, {
|
|
8901
|
-
default:
|
|
8882
|
+
default: u(() => e[28] || (e[28] = [
|
|
8902
8883
|
G("Sig Wave", -1)
|
|
8903
8884
|
])),
|
|
8904
8885
|
_: 1,
|
|
@@ -8908,7 +8889,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8908
8889
|
cols: "3",
|
|
8909
8890
|
class: "pa-2 px-0 text-left"
|
|
8910
8891
|
}, {
|
|
8911
|
-
default:
|
|
8892
|
+
default: u(() => [
|
|
8912
8893
|
G(y(a.currentHourData.sigwaveDir) + " / " + y(a.currentHourData.sigwaveHeight) + "m / " + y(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8913
8894
|
]),
|
|
8914
8895
|
_: 1
|
|
@@ -8917,12 +8898,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8917
8898
|
_: 1
|
|
8918
8899
|
}),
|
|
8919
8900
|
m(f, null, {
|
|
8920
|
-
default:
|
|
8901
|
+
default: u(() => [
|
|
8921
8902
|
m(d, {
|
|
8922
8903
|
cols: "3",
|
|
8923
8904
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8924
8905
|
}, {
|
|
8925
|
-
default:
|
|
8906
|
+
default: u(() => e[29] || (e[29] = [
|
|
8926
8907
|
G("Wind Wave", -1)
|
|
8927
8908
|
])),
|
|
8928
8909
|
_: 1,
|
|
@@ -8932,7 +8913,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8932
8913
|
cols: "4",
|
|
8933
8914
|
class: "pa-2 px-0 text-left"
|
|
8934
8915
|
}, {
|
|
8935
|
-
default:
|
|
8916
|
+
default: u(() => [
|
|
8936
8917
|
G(y(a.currentHourData.windwaveDir) + " / " + y(a.currentHourData.windwaveHeight) + "m / " + y(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8937
8918
|
]),
|
|
8938
8919
|
_: 1
|
|
@@ -8941,7 +8922,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8941
8922
|
cols: "2",
|
|
8942
8923
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8943
8924
|
}, {
|
|
8944
|
-
default:
|
|
8925
|
+
default: u(() => e[30] || (e[30] = [
|
|
8945
8926
|
G("Swell", -1)
|
|
8946
8927
|
])),
|
|
8947
8928
|
_: 1,
|
|
@@ -8951,7 +8932,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8951
8932
|
cols: "3",
|
|
8952
8933
|
class: "pa-2 px-0 text-left"
|
|
8953
8934
|
}, {
|
|
8954
|
-
default:
|
|
8935
|
+
default: u(() => [
|
|
8955
8936
|
G(y(a.currentHourData.swellDir) + " / " + y(a.currentHourData.swellHeight) + "m / " + y(a.currentHourData.swellPeriod) + "s", 1)
|
|
8956
8937
|
]),
|
|
8957
8938
|
_: 1
|
|
@@ -8960,12 +8941,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8960
8941
|
_: 1
|
|
8961
8942
|
}),
|
|
8962
8943
|
m(f, null, {
|
|
8963
|
-
default:
|
|
8944
|
+
default: u(() => [
|
|
8964
8945
|
m(d, {
|
|
8965
8946
|
cols: "3",
|
|
8966
8947
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8967
8948
|
}, {
|
|
8968
|
-
default:
|
|
8949
|
+
default: u(() => e[31] || (e[31] = [
|
|
8969
8950
|
G("Current", -1)
|
|
8970
8951
|
])),
|
|
8971
8952
|
_: 1,
|
|
@@ -8975,7 +8956,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8975
8956
|
cols: "4",
|
|
8976
8957
|
class: "pa-2 px-0 text-left"
|
|
8977
8958
|
}, {
|
|
8978
|
-
default:
|
|
8959
|
+
default: u(() => [
|
|
8979
8960
|
G(y(a.currentHourData.currentDir) + " / " + y(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8980
8961
|
]),
|
|
8981
8962
|
_: 1
|
|
@@ -8984,7 +8965,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8984
8965
|
cols: "2",
|
|
8985
8966
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8986
8967
|
}, {
|
|
8987
|
-
default:
|
|
8968
|
+
default: u(() => e[32] || (e[32] = [
|
|
8988
8969
|
G("Visibility", -1)
|
|
8989
8970
|
])),
|
|
8990
8971
|
_: 1,
|
|
@@ -8994,7 +8975,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8994
8975
|
cols: "3",
|
|
8995
8976
|
class: "pa-2 px-0 text-left"
|
|
8996
8977
|
}, {
|
|
8997
|
-
default:
|
|
8978
|
+
default: u(() => [
|
|
8998
8979
|
G(y(a.currentHourData.visibility) + " nm", 1)
|
|
8999
8980
|
]),
|
|
9000
8981
|
_: 1
|
|
@@ -9005,9 +8986,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9005
8986
|
]),
|
|
9006
8987
|
_: 1
|
|
9007
8988
|
}),
|
|
9008
|
-
m(
|
|
8989
|
+
m(g),
|
|
9009
8990
|
m(S, { class: "d-flex justify-space-between align-center" }, {
|
|
9010
|
-
default:
|
|
8991
|
+
default: u(() => [
|
|
9011
8992
|
m(s, {
|
|
9012
8993
|
vvariant: "text",
|
|
9013
8994
|
density: "compact",
|
|
@@ -9015,10 +8996,10 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9015
8996
|
class: "text-none text-body-1",
|
|
9016
8997
|
onClick: r.handleFollow
|
|
9017
8998
|
}, {
|
|
9018
|
-
prepend:
|
|
8999
|
+
prepend: u(() => [
|
|
9019
9000
|
m(L, { color: "warning" })
|
|
9020
9001
|
]),
|
|
9021
|
-
default:
|
|
9002
|
+
default: u(() => [
|
|
9022
9003
|
e[33] || (e[33] = G(" Follow", -1))
|
|
9023
9004
|
]),
|
|
9024
9005
|
_: 1,
|
|
@@ -9031,7 +9012,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
9031
9012
|
class: "text-none text-body-1",
|
|
9032
9013
|
onClick: r.handleMeteoMore
|
|
9033
9014
|
}, {
|
|
9034
|
-
default:
|
|
9015
|
+
default: u(() => e[34] || (e[34] = [
|
|
9035
9016
|
G("Forecast", -1)
|
|
9036
9017
|
])),
|
|
9037
9018
|
_: 1,
|
|
@@ -9138,7 +9119,7 @@ const Ms = {
|
|
|
9138
9119
|
}
|
|
9139
9120
|
},
|
|
9140
9121
|
handleDrag(t) {
|
|
9141
|
-
var o, i, a, r, s, n, c,
|
|
9122
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
9142
9123
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9143
9124
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9144
9125
|
const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
@@ -9157,13 +9138,13 @@ const Ms = {
|
|
|
9157
9138
|
this.handleTmpPointUpdate(
|
|
9158
9139
|
f,
|
|
9159
9140
|
S[x - 1],
|
|
9160
|
-
{ 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 },
|
|
9161
9142
|
x === S.length - 1 ? void 0 : S[x + 1]
|
|
9162
9143
|
);
|
|
9163
9144
|
}
|
|
9164
9145
|
},
|
|
9165
9146
|
handleDragEnd(t) {
|
|
9166
|
-
var o, i, a, r, s, n, c,
|
|
9147
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
9167
9148
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
9168
9149
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9169
9150
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
@@ -9172,7 +9153,7 @@ const Ms = {
|
|
|
9172
9153
|
return ((C = S._element) == null ? void 0 : C.id) === e;
|
|
9173
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]);
|
|
9174
9155
|
const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
9175
|
-
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);
|
|
9176
9157
|
}
|
|
9177
9158
|
},
|
|
9178
9159
|
handleContextmenu(t) {
|
|
@@ -9181,9 +9162,9 @@ const Ms = {
|
|
|
9181
9162
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
9182
9163
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
9183
9164
|
const n = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
9184
|
-
if (n.length > 2 && n.filter((
|
|
9185
|
-
const
|
|
9186
|
-
|
|
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);
|
|
9187
9168
|
}
|
|
9188
9169
|
}
|
|
9189
9170
|
},
|
|
@@ -9192,15 +9173,15 @@ const Ms = {
|
|
|
9192
9173
|
(o = this.contextmenu) == null || o.remove();
|
|
9193
9174
|
const e = t.originalEvent.target.className;
|
|
9194
9175
|
if (e === "marker-close") {
|
|
9195
|
-
const c = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
9196
|
-
|
|
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();
|
|
9197
9178
|
} else if (e === "del-point") {
|
|
9198
|
-
const c = (n = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : n.split("-"),
|
|
9199
|
-
|
|
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);
|
|
9200
9181
|
} else if (e !== "marker-label" && this.toggle) {
|
|
9201
9182
|
let c = this.geojson.at(-1);
|
|
9202
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");
|
|
9203
|
-
const
|
|
9184
|
+
const g = E.feature(
|
|
9204
9185
|
{
|
|
9205
9186
|
type: "Point",
|
|
9206
9187
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -9211,7 +9192,7 @@ const Ms = {
|
|
|
9211
9192
|
sumLabel: "Start"
|
|
9212
9193
|
}
|
|
9213
9194
|
);
|
|
9214
|
-
c.features.push(
|
|
9195
|
+
c.features.push(g), this.handlePointUpdate(c);
|
|
9215
9196
|
}
|
|
9216
9197
|
},
|
|
9217
9198
|
handlePointUpdate(t) {
|
|
@@ -9220,10 +9201,10 @@ const Ms = {
|
|
|
9220
9201
|
let o = 0;
|
|
9221
9202
|
const i = [];
|
|
9222
9203
|
for (let a = 1; a < e.length; a++) {
|
|
9223
|
-
const r = e[a - 1], s = e[a], n = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
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);
|
|
9224
9205
|
o = oe.roundPrecision(o + p, 4);
|
|
9225
9206
|
let f;
|
|
9226
|
-
n.mode === "RL" ? f = oe.convertToMonotonicLng([c,
|
|
9207
|
+
n.mode === "RL" ? f = oe.convertToMonotonicLng([c, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(c, g, 200));
|
|
9227
9208
|
const z = E.lineString(f.map((S) => [S.lng, S.lat]));
|
|
9228
9209
|
z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
9229
9210
|
const x = e[a];
|
|
@@ -9237,18 +9218,18 @@ const Ms = {
|
|
|
9237
9218
|
const a = E.featureCollection([]);
|
|
9238
9219
|
let r, s;
|
|
9239
9220
|
if (e) {
|
|
9240
|
-
const c = e.properties,
|
|
9241
|
-
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);
|
|
9242
9223
|
let d;
|
|
9243
|
-
c.mode === "RL" ? d = oe.convertToMonotonicLng([
|
|
9224
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9244
9225
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9245
9226
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9246
9227
|
}
|
|
9247
9228
|
if (i) {
|
|
9248
|
-
const c = o.properties,
|
|
9249
|
-
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);
|
|
9250
9231
|
let d;
|
|
9251
|
-
c.mode === "RL" ? d = oe.convertToMonotonicLng([
|
|
9232
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9252
9233
|
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9253
9234
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9254
9235
|
}
|
|
@@ -9381,19 +9362,19 @@ const Ms = {
|
|
|
9381
9362
|
for (const n of s) {
|
|
9382
9363
|
const c = document.createElement("div");
|
|
9383
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>';
|
|
9384
|
-
const
|
|
9385
|
-
|
|
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];
|
|
9386
9367
|
}
|
|
9387
9368
|
if (t.closed) {
|
|
9388
|
-
const n = s.at(-1),
|
|
9389
|
-
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);
|
|
9390
9371
|
}
|
|
9391
9372
|
}
|
|
9392
9373
|
},
|
|
9393
9374
|
handleClear(t, e = !0) {
|
|
9394
|
-
var s, n, c,
|
|
9375
|
+
var s, n, c, g, p, d, f, z, x, S;
|
|
9395
9376
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
9396
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (
|
|
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) => {
|
|
9397
9378
|
C == null || C.remove();
|
|
9398
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);
|
|
9399
9380
|
}
|
|
@@ -9410,7 +9391,7 @@ function Is(t, e, o, i, a, r) {
|
|
|
9410
9391
|
text: t.$t("measure.measure"),
|
|
9411
9392
|
location: "left"
|
|
9412
9393
|
}, {
|
|
9413
|
-
activator:
|
|
9394
|
+
activator: u(({ props: c }) => [
|
|
9414
9395
|
m(s, B(c, {
|
|
9415
9396
|
"min-width": "32",
|
|
9416
9397
|
width: "32",
|
|
@@ -9418,7 +9399,7 @@ function Is(t, e, o, i, a, r) {
|
|
|
9418
9399
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9419
9400
|
onClick: r.handleMenuToggle
|
|
9420
9401
|
}), {
|
|
9421
|
-
default:
|
|
9402
|
+
default: u(() => e[0] || (e[0] = [
|
|
9422
9403
|
l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
9423
9404
|
])),
|
|
9424
9405
|
_: 2,
|
|
@@ -9553,7 +9534,7 @@ const Rs = {
|
|
|
9553
9534
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9554
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" };
|
|
9555
9536
|
function Gs(t, e, o, i, a, r) {
|
|
9556
|
-
const s = w("DateTimePicker"), n = w("VListItemTitle"), c = w("VListItem"),
|
|
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");
|
|
9557
9538
|
return b(), T("div", Ds, [
|
|
9558
9539
|
Object.values(a.show).includes(!0) ? (b(), T("div", {
|
|
9559
9540
|
key: 0,
|
|
@@ -9577,12 +9558,12 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9577
9558
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
9578
9559
|
"min-width": "30"
|
|
9579
9560
|
}, {
|
|
9580
|
-
default:
|
|
9561
|
+
default: u(() => [
|
|
9581
9562
|
G(y(a.intervalHour) + " h ", 1),
|
|
9582
9563
|
m(p, { activator: "parent" }, {
|
|
9583
|
-
default:
|
|
9584
|
-
m(
|
|
9585
|
-
default:
|
|
9564
|
+
default: u(() => [
|
|
9565
|
+
m(g, { class: "pa-1" }, {
|
|
9566
|
+
default: u(() => [
|
|
9586
9567
|
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(c, {
|
|
9587
9568
|
key: S,
|
|
9588
9569
|
value: x,
|
|
@@ -9595,11 +9576,11 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9595
9576
|
"min-width": "30",
|
|
9596
9577
|
class: "pa-0 text-center text-body-1"
|
|
9597
9578
|
}, {
|
|
9598
|
-
default:
|
|
9579
|
+
default: u(() => [
|
|
9599
9580
|
m(n, {
|
|
9600
9581
|
onClick: (C) => a.intervalHour = x
|
|
9601
9582
|
}, {
|
|
9602
|
-
default:
|
|
9583
|
+
default: u(() => [
|
|
9603
9584
|
G(y(x) + "h", 1)
|
|
9604
9585
|
]),
|
|
9605
9586
|
_: 2
|
|
@@ -9630,7 +9611,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9630
9611
|
variant: "text",
|
|
9631
9612
|
onClick: r.handleReset
|
|
9632
9613
|
}, {
|
|
9633
|
-
default:
|
|
9614
|
+
default: u(() => e[9] || (e[9] = [
|
|
9634
9615
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9635
9616
|
])),
|
|
9636
9617
|
_: 1,
|
|
@@ -9643,7 +9624,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9643
9624
|
variant: "text",
|
|
9644
9625
|
onClick: r.handleBackward
|
|
9645
9626
|
}, {
|
|
9646
|
-
default:
|
|
9627
|
+
default: u(() => e[10] || (e[10] = [
|
|
9647
9628
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9648
9629
|
])),
|
|
9649
9630
|
_: 1,
|
|
@@ -9657,7 +9638,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9657
9638
|
variant: "text",
|
|
9658
9639
|
onClick: r.handlePlay
|
|
9659
9640
|
}, {
|
|
9660
|
-
default:
|
|
9641
|
+
default: u(() => e[11] || (e[11] = [
|
|
9661
9642
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9662
9643
|
])),
|
|
9663
9644
|
_: 1,
|
|
@@ -9670,7 +9651,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9670
9651
|
variant: "text",
|
|
9671
9652
|
onClick: r.handlePause
|
|
9672
9653
|
}, {
|
|
9673
|
-
default:
|
|
9654
|
+
default: u(() => e[12] || (e[12] = [
|
|
9674
9655
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9675
9656
|
])),
|
|
9676
9657
|
_: 1,
|
|
@@ -9683,7 +9664,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9683
9664
|
variant: "text",
|
|
9684
9665
|
onClick: r.handleForward
|
|
9685
9666
|
}, {
|
|
9686
|
-
default:
|
|
9667
|
+
default: u(() => e[13] || (e[13] = [
|
|
9687
9668
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9688
9669
|
])),
|
|
9689
9670
|
_: 1,
|
|
@@ -9700,7 +9681,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9700
9681
|
text: t.$t("weather.windBarbs"),
|
|
9701
9682
|
location: "top"
|
|
9702
9683
|
}, {
|
|
9703
|
-
activator:
|
|
9684
|
+
activator: u(({ props: x }) => {
|
|
9704
9685
|
var S, C;
|
|
9705
9686
|
return [
|
|
9706
9687
|
m(d, B(x, {
|
|
@@ -9712,7 +9693,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9712
9693
|
"min-width": "24",
|
|
9713
9694
|
onClick: e[3] || (e[3] = (N) => r.handleClickFastWeather("wind"))
|
|
9714
9695
|
}), {
|
|
9715
|
-
default:
|
|
9696
|
+
default: u(() => e[14] || (e[14] = [
|
|
9716
9697
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
9717
9698
|
])),
|
|
9718
9699
|
_: 2,
|
|
@@ -9726,7 +9707,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9726
9707
|
text: t.$t("weather.sigWaveHeight"),
|
|
9727
9708
|
location: "top"
|
|
9728
9709
|
}, {
|
|
9729
|
-
activator:
|
|
9710
|
+
activator: u(({ props: x }) => {
|
|
9730
9711
|
var S, C;
|
|
9731
9712
|
return [
|
|
9732
9713
|
m(d, B(x, {
|
|
@@ -9738,7 +9719,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9738
9719
|
"min-width": "24",
|
|
9739
9720
|
onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
|
|
9740
9721
|
}), {
|
|
9741
|
-
default:
|
|
9722
|
+
default: u(() => [
|
|
9742
9723
|
l("i", B(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9743
9724
|
]),
|
|
9744
9725
|
_: 2
|
|
@@ -9751,7 +9732,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9751
9732
|
text: t.$t("weather.currentDirection"),
|
|
9752
9733
|
location: "top"
|
|
9753
9734
|
}, {
|
|
9754
|
-
activator:
|
|
9735
|
+
activator: u(({ props: x }) => {
|
|
9755
9736
|
var S, C;
|
|
9756
9737
|
return [
|
|
9757
9738
|
m(d, B(x, {
|
|
@@ -9763,7 +9744,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9763
9744
|
"min-width": "24",
|
|
9764
9745
|
onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
|
|
9765
9746
|
}), {
|
|
9766
|
-
default:
|
|
9747
|
+
default: u(() => [
|
|
9767
9748
|
l("i", B(x, { class: "iconfont icon-Current" }), null, 16)
|
|
9768
9749
|
]),
|
|
9769
9750
|
_: 2
|
|
@@ -9776,7 +9757,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9776
9757
|
text: t.$t("weather.weatherLayers"),
|
|
9777
9758
|
location: "top"
|
|
9778
9759
|
}, {
|
|
9779
|
-
activator:
|
|
9760
|
+
activator: u(({ props: x }) => [
|
|
9780
9761
|
m(d, B(x, {
|
|
9781
9762
|
class: "pa-1 d-flex",
|
|
9782
9763
|
variant: "text",
|
|
@@ -9785,7 +9766,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9785
9766
|
"min-width": "24",
|
|
9786
9767
|
onClick: r.handleClickFastMore
|
|
9787
9768
|
}), {
|
|
9788
|
-
default:
|
|
9769
|
+
default: u(() => [
|
|
9789
9770
|
l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9790
9771
|
]),
|
|
9791
9772
|
_: 2
|
|
@@ -9807,7 +9788,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9807
9788
|
color: a.source === "GFS" ? "primary" : "",
|
|
9808
9789
|
onClick: e[6] || (e[6] = (x) => a.source = "GFS")
|
|
9809
9790
|
}, {
|
|
9810
|
-
default:
|
|
9791
|
+
default: u(() => e[15] || (e[15] = [
|
|
9811
9792
|
G("NOAA", -1)
|
|
9812
9793
|
])),
|
|
9813
9794
|
_: 1,
|
|
@@ -9820,7 +9801,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9820
9801
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9821
9802
|
onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
|
|
9822
9803
|
}, {
|
|
9823
|
-
default:
|
|
9804
|
+
default: u(() => e[16] || (e[16] = [
|
|
9824
9805
|
G("ECMWF", -1)
|
|
9825
9806
|
])),
|
|
9826
9807
|
_: 1,
|
|
@@ -9848,7 +9829,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9848
9829
|
color: "primary",
|
|
9849
9830
|
onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
|
|
9850
9831
|
}, {
|
|
9851
|
-
default:
|
|
9832
|
+
default: u(() => [
|
|
9852
9833
|
G(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9853
9834
|
]),
|
|
9854
9835
|
_: 1
|
|
@@ -9924,7 +9905,7 @@ const Us = /* @__PURE__ */ Z(Rs, [["render", Gs]]), Vs = {
|
|
|
9924
9905
|
class: "map-gl4-home"
|
|
9925
9906
|
};
|
|
9926
9907
|
function Zs(t, e, o, i, a, r) {
|
|
9927
|
-
const s = w("IdmOtherLayer"), n = w("IdmWeatherLayer"), c = w("IdmTropicals"),
|
|
9908
|
+
const s = w("IdmOtherLayer"), n = w("IdmWeatherLayer"), c = w("IdmTropicals"), g = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
|
|
9928
9909
|
return b(), T("div", Ys, [
|
|
9929
9910
|
m(s, B({
|
|
9930
9911
|
ref: "idmOtherLayers",
|
|
@@ -9973,7 +9954,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
9973
9954
|
"forecast-model": o.forecastModel,
|
|
9974
9955
|
"map-feather": o.mapFeather
|
|
9975
9956
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
9976
|
-
m(
|
|
9957
|
+
m(g, B({
|
|
9977
9958
|
map: o.map,
|
|
9978
9959
|
"map-feather": o.mapFeather
|
|
9979
9960
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
@@ -10005,7 +9986,7 @@ class qs {
|
|
|
10005
9986
|
se(this, "hi");
|
|
10006
9987
|
se(this, "td");
|
|
10007
9988
|
se(this, "windy");
|
|
10008
|
-
var o, i, a, r, s, n, c,
|
|
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;
|
|
10009
9990
|
this.i4 = {
|
|
10010
9991
|
source: {
|
|
10011
9992
|
type: "raster",
|
|
@@ -28280,7 +28261,7 @@ class qs {
|
|
|
28280
28261
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
|
|
28281
28262
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
|
|
28282
28263
|
(n = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : n.find((h) => h.id === "ice-area-fill"),
|
|
28283
|
-
(
|
|
28264
|
+
(g = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : g.find((h) => h.id === "ice-area-line"),
|
|
28284
28265
|
(d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((h) => h.id === "empty-layer-0"),
|
|
28285
28266
|
(z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-1"),
|
|
28286
28267
|
(S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
|
|
@@ -28554,7 +28535,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28554
28535
|
class: "pa-0 elevation-0",
|
|
28555
28536
|
onClick: r.handleZoomIn
|
|
28556
28537
|
}, {
|
|
28557
|
-
default:
|
|
28538
|
+
default: u(() => e[0] || (e[0] = [
|
|
28558
28539
|
l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
28559
28540
|
])),
|
|
28560
28541
|
_: 1,
|
|
@@ -28568,7 +28549,7 @@ function en(t, e, o, i, a, r) {
|
|
|
28568
28549
|
class: "elevation-0 pa-0",
|
|
28569
28550
|
onClick: r.handleZoomOut
|
|
28570
28551
|
}, {
|
|
28571
|
-
default:
|
|
28552
|
+
default: u(() => e[1] || (e[1] = [
|
|
28572
28553
|
l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
28573
28554
|
])),
|
|
28574
28555
|
_: 1,
|