@idmwx/idmui-gl4 1.9.3 → 1.9.5
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
CHANGED
|
@@ -3,7 +3,7 @@ var $a = (t, e, o) => e in t ? Ka(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var he = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import De from "axios";
|
|
5
5
|
import { useTheme as Se } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as O, withCtx as f, createVNode as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as O, withCtx as f, createVNode as u, withModifiers as Oe, createElementVNode as l, createCommentVNode as R, normalizeClass as Ye, toDisplayString as m, createTextVNode as $, Fragment as we, renderList as _e, withDirectives as Ve, vShow as Ze, mergeProps as B, normalizeStyle as ae } from "vue";
|
|
7
7
|
import ke from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
@@ -385,8 +385,8 @@ const mi = {
|
|
|
385
385
|
return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
|
|
386
386
|
})[0];
|
|
387
387
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
|
|
388
|
-
var n,
|
|
389
|
-
const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (
|
|
388
|
+
var n, p;
|
|
389
|
+
const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (p = s == null ? void 0 : s.children[1]) == null ? void 0 : p.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
392
|
}), this.marker = new ke.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
@@ -496,16 +496,16 @@ function hi(t, e, o, i, a, r) {
|
|
|
496
496
|
id: "idm-gl4-zone-info"
|
|
497
497
|
}, {
|
|
498
498
|
default: f(() => [
|
|
499
|
-
|
|
499
|
+
u(c, null, {
|
|
500
500
|
default: f(() => {
|
|
501
|
-
var
|
|
501
|
+
var p;
|
|
502
502
|
return [
|
|
503
|
-
|
|
503
|
+
u(s, {
|
|
504
504
|
icon: "",
|
|
505
505
|
density: "compact",
|
|
506
506
|
variant: "plain",
|
|
507
507
|
class: "close",
|
|
508
|
-
onClick:
|
|
508
|
+
onClick: Oe(r.handleRemoveMarker, ["stop"])
|
|
509
509
|
}, {
|
|
510
510
|
default: f(() => e[0] || (e[0] = [
|
|
511
511
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
515
515
|
}, 8, ["onClick"]),
|
|
516
516
|
l("div", {
|
|
517
517
|
class: "rich-context",
|
|
518
|
-
innerHTML: (
|
|
518
|
+
innerHTML: (p = a.form) == null ? void 0 : p.name
|
|
519
519
|
}, null, 8, di)
|
|
520
520
|
];
|
|
521
521
|
}),
|
|
@@ -1490,10 +1490,10 @@ const ui = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1493
|
-
var c, n,
|
|
1493
|
+
var c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const s = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((
|
|
1496
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((p = s == null ? void 0 : s.weather) == null ? void 0 : p.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = s == null ? void 0 : s.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (_ = s == null ? void 0 : s.weather) == null ? void 0 : _.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (N = s == null ? void 0 : s.weather) == null ? void 0 : N.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((k = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (V = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = s == null ? void 0 : s.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (le = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = s == null ? void 0 : s.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = s == null ? void 0 : s.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((A = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ee = s == null ? void 0 : s.current) == null ? void 0 : ee.speed, 1) ?? "-", r.currentDir = (ye = s == null ? void 0 : s.current) == null ? void 0 : ye.direction, r.currentSpeed = this.computeRoundPrecision((xe = s == null ? void 0 : s.current) == null ? void 0 : xe.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Le = s == null ? void 0 : s.weather) == null ? void 0 : Le.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1678,12 +1678,12 @@ const ui = {
|
|
|
1678
1678
|
width: "120"
|
|
1679
1679
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1680
1680
|
function yr(t, e, o, i, a, r) {
|
|
1681
|
-
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"),
|
|
1681
|
+
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), p = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
|
|
1682
1682
|
return y(), O(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1683
1683
|
default: f(() => {
|
|
1684
|
-
var w,
|
|
1684
|
+
var w, z;
|
|
1685
1685
|
return [
|
|
1686
|
-
|
|
1686
|
+
u(c, { class: "w-100" }, {
|
|
1687
1687
|
default: f(() => {
|
|
1688
1688
|
var g, _, P, N, I;
|
|
1689
1689
|
return [
|
|
@@ -1695,7 +1695,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1695
1695
|
}, null, 2),
|
|
1696
1696
|
l("div", null, m((N = o.port) == null ? void 0 : N.name), 1)
|
|
1697
1697
|
]),
|
|
1698
|
-
|
|
1698
|
+
u(s, {
|
|
1699
1699
|
icon: "",
|
|
1700
1700
|
density: "compact",
|
|
1701
1701
|
variant: "plain",
|
|
@@ -1720,7 +1720,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1720
1720
|
}),
|
|
1721
1721
|
_: 1
|
|
1722
1722
|
}),
|
|
1723
|
-
|
|
1723
|
+
u(n, { class: "w-100" }),
|
|
1724
1724
|
l("div", bi, [
|
|
1725
1725
|
o.followList.some((g) => {
|
|
1726
1726
|
var _;
|
|
@@ -1735,10 +1735,10 @@ function yr(t, e, o, i, a, r) {
|
|
|
1735
1735
|
onClick: r.handleCancelFollow
|
|
1736
1736
|
}, {
|
|
1737
1737
|
prepend: f(() => [
|
|
1738
|
-
p
|
|
1738
|
+
u(p, { color: "warning" })
|
|
1739
1739
|
]),
|
|
1740
1740
|
default: f(() => [
|
|
1741
|
-
|
|
1741
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
1742
1742
|
]),
|
|
1743
1743
|
_: 1
|
|
1744
1744
|
}, 8, ["onClick"])) : (y(), O(s, {
|
|
@@ -1751,11 +1751,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1751
1751
|
onClick: r.handleFollow
|
|
1752
1752
|
}, {
|
|
1753
1753
|
default: f(() => [
|
|
1754
|
-
|
|
1754
|
+
$(m(t.$t("actions.follow")), 1)
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 1
|
|
1757
1757
|
}, 8, ["onClick"])),
|
|
1758
|
-
|
|
1758
|
+
u(s, {
|
|
1759
1759
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1760
1760
|
variant: "tonal",
|
|
1761
1761
|
density: "compact",
|
|
@@ -1763,7 +1763,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1763
1763
|
onClick: r.handleMeteoMore
|
|
1764
1764
|
}, {
|
|
1765
1765
|
default: f(() => [
|
|
1766
|
-
|
|
1766
|
+
$(m(t.$t("actions.7dayForcast")), 1)
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 1
|
|
1769
1769
|
}, 8, ["onClick"])
|
|
@@ -1784,7 +1784,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1784
1784
|
l("div", Li, [
|
|
1785
1785
|
l("div", Pi, [
|
|
1786
1786
|
l("div", Ci, m(t.$t("port.region")), 1),
|
|
1787
|
-
l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((
|
|
1787
|
+
l("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((z = o.port) == null ? void 0 : z.city) ?? "-"), 1)
|
|
1788
1788
|
]),
|
|
1789
1789
|
l("div", Si, [
|
|
1790
1790
|
l("div", Mi, m(t.$t("port.position")), 1),
|
|
@@ -1809,7 +1809,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1809
1809
|
e[5] || (e[5] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1810
1810
|
]),
|
|
1811
1811
|
l("div", Fi, [
|
|
1812
|
-
|
|
1812
|
+
u(h, {
|
|
1813
1813
|
modelValue: a.currentIndex,
|
|
1814
1814
|
"onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
|
|
1815
1815
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
@@ -1828,7 +1828,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1828
1828
|
value: g.index
|
|
1829
1829
|
}, {
|
|
1830
1830
|
default: f(() => [
|
|
1831
|
-
|
|
1831
|
+
$(m(g.label), 1)
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 2
|
|
1834
1834
|
}, 1032, ["value"]))), 256))
|
|
@@ -1841,7 +1841,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1841
1841
|
key: g.id
|
|
1842
1842
|
}, [
|
|
1843
1843
|
l("th", Ui, [
|
|
1844
|
-
|
|
1844
|
+
$(m(t.$t(`${g.key}`)) + " ", 1),
|
|
1845
1845
|
g.unit ? (y(), M("span", Wi, " ( " + m(g.unit) + " )", 1)) : R("", !0)
|
|
1846
1846
|
]),
|
|
1847
1847
|
l("td", Gi, [
|
|
@@ -2043,12 +2043,12 @@ const br = {
|
|
|
2043
2043
|
function _r(t, e, o, i, a, r) {
|
|
2044
2044
|
const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
|
|
2045
2045
|
return y(), M("div", null, [
|
|
2046
|
-
Ve(
|
|
2046
|
+
Ve(u(c, {
|
|
2047
2047
|
id: "idmPortInfo",
|
|
2048
2048
|
ref: "idmPortInfo"
|
|
2049
2049
|
}, {
|
|
2050
2050
|
default: f(() => [
|
|
2051
|
-
|
|
2051
|
+
u(s, { class: "text-body-1 pr-8" }, {
|
|
2052
2052
|
default: f(() => [
|
|
2053
2053
|
l("div", wr, [
|
|
2054
2054
|
l("div", null, m(t.$t("port.port")), 1),
|
|
@@ -2074,7 +2074,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2074
2074
|
port: a.port,
|
|
2075
2075
|
forecastModel: o.forecastModel,
|
|
2076
2076
|
onClose: r.handleCloseDetail,
|
|
2077
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
2077
|
+
onCloseAllDetail: e[0] || (e[0] = (p) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2078
2078
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : R("", !0)
|
|
2079
2079
|
]);
|
|
2080
2080
|
}
|
|
@@ -2976,20 +2976,20 @@ const qr = {
|
|
|
2976
2976
|
width: "120"
|
|
2977
2977
|
}, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
|
|
2978
2978
|
function Tl(t, e, o, i, a, r) {
|
|
2979
|
-
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"),
|
|
2979
|
+
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), p = x("VBtnToggle"), h = x("v-card");
|
|
2980
2980
|
return y(), O(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2981
2981
|
default: f(() => {
|
|
2982
2982
|
var b, w;
|
|
2983
2983
|
return [
|
|
2984
|
-
|
|
2984
|
+
u(c, { class: "w-100" }, {
|
|
2985
2985
|
default: f(() => {
|
|
2986
|
-
var
|
|
2986
|
+
var z;
|
|
2987
2987
|
return [
|
|
2988
2988
|
l("div", Xr, [
|
|
2989
2989
|
l("div", Kr, [
|
|
2990
|
-
l("div", null, m((
|
|
2990
|
+
l("div", null, m((z = o.station) == null ? void 0 : z.name), 1)
|
|
2991
2991
|
]),
|
|
2992
|
-
|
|
2992
|
+
u(s, {
|
|
2993
2993
|
icon: "",
|
|
2994
2994
|
density: "compact",
|
|
2995
2995
|
variant: "plain",
|
|
@@ -3010,7 +3010,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3010
3010
|
}),
|
|
3011
3011
|
_: 1
|
|
3012
3012
|
}),
|
|
3013
|
-
|
|
3013
|
+
u(n, { class: "w-100" }),
|
|
3014
3014
|
l("div", Jr, [
|
|
3015
3015
|
l("div", Qr, [
|
|
3016
3016
|
l("div", el, [
|
|
@@ -3052,9 +3052,9 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3052
3052
|
e[3] || (e[3] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
3053
3053
|
]),
|
|
3054
3054
|
l("div", wl, [
|
|
3055
|
-
p
|
|
3055
|
+
u(p, {
|
|
3056
3056
|
modelValue: a.currentIndex,
|
|
3057
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3057
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
|
|
3058
3058
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3059
3059
|
density: "compact",
|
|
3060
3060
|
group: "",
|
|
@@ -3063,15 +3063,15 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3063
3063
|
rounded: "1"
|
|
3064
3064
|
}, {
|
|
3065
3065
|
default: f(() => [
|
|
3066
|
-
(y(!0), M(we, null, _e(r.dateList, (
|
|
3066
|
+
(y(!0), M(we, null, _e(r.dateList, (z) => (y(), O(s, {
|
|
3067
3067
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3068
3068
|
density: "compact",
|
|
3069
3069
|
color: "primary",
|
|
3070
3070
|
height: "26",
|
|
3071
|
-
value:
|
|
3071
|
+
value: z.index
|
|
3072
3072
|
}, {
|
|
3073
3073
|
default: f(() => [
|
|
3074
|
-
|
|
3074
|
+
$(m(z.label), 1)
|
|
3075
3075
|
]),
|
|
3076
3076
|
_: 2
|
|
3077
3077
|
}, 1032, ["value"]))), 256))
|
|
@@ -3086,12 +3086,12 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3086
3086
|
l("th", kl, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3087
3087
|
l("th", zl, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3088
3088
|
]),
|
|
3089
|
-
(y(!0), M(we, null, _e(a.tideTableData, (
|
|
3089
|
+
(y(!0), M(we, null, _e(a.tideTableData, (z, g) => {
|
|
3090
3090
|
var _;
|
|
3091
3091
|
return y(), M("tr", { key: g }, [
|
|
3092
|
-
l("td", Ll, m(t.$t(`tide.${(_ =
|
|
3093
|
-
l("td", Pl, m(r.computeLocalTime(
|
|
3094
|
-
l("td", Cl, m((
|
|
3092
|
+
l("td", Ll, m(t.$t(`tide.${(_ = z == null ? void 0 : z.type) == null ? void 0 : _.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3093
|
+
l("td", Pl, m(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
|
|
3094
|
+
l("td", Cl, m((z == null ? void 0 : z.height) ?? "-") + " m", 1)
|
|
3095
3095
|
]);
|
|
3096
3096
|
}), 128))
|
|
3097
3097
|
])
|
|
@@ -3184,16 +3184,16 @@ const Ml = {
|
|
|
3184
3184
|
function Ol(t, e, o, i, a, r) {
|
|
3185
3185
|
const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3186
3186
|
return y(), M("div", null, [
|
|
3187
|
-
Ve(
|
|
3187
|
+
Ve(u(c, { id: "idmTidalInfo" }, {
|
|
3188
3188
|
default: f(() => [
|
|
3189
|
-
|
|
3189
|
+
u(s, { class: "pr-8 text-body-1" }, {
|
|
3190
3190
|
default: f(() => {
|
|
3191
|
-
var
|
|
3191
|
+
var p, h;
|
|
3192
3192
|
return [
|
|
3193
3193
|
l("div", Il, [
|
|
3194
3194
|
l("div", Dl, m(t.$t("tide.tideStation")), 1),
|
|
3195
3195
|
l("div", Al, [
|
|
3196
|
-
l("label", Rl, m((
|
|
3196
|
+
l("label", Rl, m((p = a.hoverStation) == null ? void 0 : p.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
|
|
3197
3197
|
])
|
|
3198
3198
|
])
|
|
3199
3199
|
];
|
|
@@ -4346,12 +4346,12 @@ const Ul = {
|
|
|
4346
4346
|
function Zl(t, e, o, i, a, r) {
|
|
4347
4347
|
const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4348
4348
|
return y(), M("div", null, [
|
|
4349
|
-
Ve(
|
|
4349
|
+
Ve(u(c, {
|
|
4350
4350
|
id: "idmFollowPortInfo",
|
|
4351
4351
|
ref: "idmFollowPortInfo"
|
|
4352
4352
|
}, {
|
|
4353
4353
|
default: f(() => [
|
|
4354
|
-
|
|
4354
|
+
u(s, { class: "text-body-1 pr-8" }, {
|
|
4355
4355
|
default: f(() => [
|
|
4356
4356
|
l("div", Wl, [
|
|
4357
4357
|
l("div", null, m(t.$t("port.port")), 1),
|
|
@@ -4378,7 +4378,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
4378
4378
|
forecastModel: o.forecastModel,
|
|
4379
4379
|
followList: o.followList,
|
|
4380
4380
|
onClose: r.handleCloseDetail,
|
|
4381
|
-
onCloseAllDetail: e[0] || (e[0] = (
|
|
4381
|
+
onCloseAllDetail: e[0] || (e[0] = (p) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4382
4382
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : R("", !0)
|
|
4383
4383
|
]);
|
|
4384
4384
|
}
|
|
@@ -5266,18 +5266,18 @@ const ql = {
|
|
|
5266
5266
|
this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.off("click", [this.layer], this.handleClick), (e = this.map) == null || e.off("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.off("mouseleave", [this.layer], this.handleLeave);
|
|
5267
5267
|
},
|
|
5268
5268
|
handleClick(t) {
|
|
5269
|
-
var o, i, a, r, s, c, n,
|
|
5269
|
+
var o, i, a, r, s, c, n, p, h;
|
|
5270
5270
|
const e = t.features[0];
|
|
5271
5271
|
if (e.properties) {
|
|
5272
5272
|
const b = e.properties;
|
|
5273
5273
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5274
|
-
const w = S(),
|
|
5274
|
+
const w = S(), z = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
|
|
5275
5275
|
lat: b.lat,
|
|
5276
5276
|
lng: b.lng,
|
|
5277
5277
|
datetime: this.realTime,
|
|
5278
5278
|
forecastModel: this.forecastModel
|
|
5279
5279
|
};
|
|
5280
|
-
|
|
5280
|
+
z >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(g) : (h = (p = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : p.idmSpot) == null || h.fetchHistoryData(g);
|
|
5281
5281
|
}
|
|
5282
5282
|
},
|
|
5283
5283
|
handleHover(t) {
|
|
@@ -5306,7 +5306,7 @@ function Jl(t, e, o, i, a, r) {
|
|
|
5306
5306
|
ref: "idmFollowPositionInfo"
|
|
5307
5307
|
}, {
|
|
5308
5308
|
default: f(() => [
|
|
5309
|
-
|
|
5309
|
+
u(s, { class: "text-body-1 pr-8" }, {
|
|
5310
5310
|
default: f(() => [
|
|
5311
5311
|
l("div", Xl, [
|
|
5312
5312
|
e[0] || (e[0] = l("div", null, "Location", -1)),
|
|
@@ -5505,9 +5505,9 @@ const es = {
|
|
|
5505
5505
|
})
|
|
5506
5506
|
);
|
|
5507
5507
|
(await Promise.all(s)).map((n) => {
|
|
5508
|
-
var b, w,
|
|
5509
|
-
const
|
|
5510
|
-
this.otherLayers[h] =
|
|
5508
|
+
var b, w, z;
|
|
5509
|
+
const p = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (z = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : z.key;
|
|
5510
|
+
this.otherLayers[h] = p;
|
|
5511
5511
|
});
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
@@ -5544,19 +5544,19 @@ const es = {
|
|
|
5544
5544
|
class: "border rounded-sm"
|
|
5545
5545
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5546
5546
|
function hs(t, e, o, i, a, r) {
|
|
5547
|
-
var
|
|
5548
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
5547
|
+
var K, le, se, pe, ie, ce, ue, me, de;
|
|
5548
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), p = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), z = x("IdmLatLng"), g = x("IdmTerminator"), _ = x("IdmTimezone"), P = x("IdmPort"), N = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), k = x("IdmWarZone"), L = x("IdmGmdssArea"), T = x("IdmLoadLine"), v = x("IdmWorldMarine"), D = x("IdmVRA"), F = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), Q = x("IdmFollowPosition");
|
|
5549
5549
|
return y(), M("div", ts, [
|
|
5550
5550
|
l("div", {
|
|
5551
5551
|
class: "menu-bar-box transition px-1 rounded",
|
|
5552
5552
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
|
|
5553
5553
|
}, [
|
|
5554
|
-
|
|
5554
|
+
u(c, {
|
|
5555
5555
|
text: t.$t("layer.mapLayers"),
|
|
5556
5556
|
location: "left"
|
|
5557
5557
|
}, {
|
|
5558
5558
|
activator: f(({ props: A }) => [
|
|
5559
|
-
|
|
5559
|
+
u(s, B(A, {
|
|
5560
5560
|
"min-width": "32",
|
|
5561
5561
|
width: "32",
|
|
5562
5562
|
height: "32",
|
|
@@ -5579,7 +5579,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5579
5579
|
}, [
|
|
5580
5580
|
l("div", os, [
|
|
5581
5581
|
l("div", as, m(t.$t("layer.layers")), 1),
|
|
5582
|
-
|
|
5582
|
+
u(s, {
|
|
5583
5583
|
icon: "",
|
|
5584
5584
|
density: "compact",
|
|
5585
5585
|
variant: "plain",
|
|
@@ -5594,26 +5594,26 @@ function hs(t, e, o, i, a, r) {
|
|
|
5594
5594
|
}, 8, ["onClick"])
|
|
5595
5595
|
]),
|
|
5596
5596
|
l("div", is, [
|
|
5597
|
-
|
|
5597
|
+
u(w, {
|
|
5598
5598
|
class: "block-bg mx-auto mb-3",
|
|
5599
5599
|
elevation: "0"
|
|
5600
5600
|
}, {
|
|
5601
5601
|
default: f(() => [
|
|
5602
|
-
p
|
|
5602
|
+
u(p, { class: "border-b-thin" }, {
|
|
5603
5603
|
default: f(() => [
|
|
5604
|
-
|
|
5604
|
+
u(n, {
|
|
5605
5605
|
class: "text-subtitle-1 font-weight-medium",
|
|
5606
5606
|
style: { "font-size": "16px !important" }
|
|
5607
5607
|
}, {
|
|
5608
5608
|
default: f(() => [
|
|
5609
|
-
|
|
5609
|
+
$(m(t.$t("layer.mapFeathers")), 1)
|
|
5610
5610
|
]),
|
|
5611
5611
|
_: 1
|
|
5612
5612
|
})
|
|
5613
5613
|
]),
|
|
5614
5614
|
_: 1
|
|
5615
5615
|
}),
|
|
5616
|
-
|
|
5616
|
+
u(b, { class: "pb-2" }, {
|
|
5617
5617
|
default: f(() => [
|
|
5618
5618
|
l("div", rs, [
|
|
5619
5619
|
(y(!0), M(we, null, _e(a.mapFeathers, (A) => (y(), M("div", {
|
|
@@ -5647,26 +5647,26 @@ function hs(t, e, o, i, a, r) {
|
|
|
5647
5647
|
]),
|
|
5648
5648
|
_: 1
|
|
5649
5649
|
}),
|
|
5650
|
-
|
|
5650
|
+
u(w, {
|
|
5651
5651
|
class: "block-bg mx-auto mb-3",
|
|
5652
5652
|
elevation: "0"
|
|
5653
5653
|
}, {
|
|
5654
5654
|
default: f(() => [
|
|
5655
|
-
p
|
|
5655
|
+
u(p, { class: "border-b-thin" }, {
|
|
5656
5656
|
default: f(() => [
|
|
5657
|
-
|
|
5657
|
+
u(n, {
|
|
5658
5658
|
class: "text-subtitle-1 font-weight-medium",
|
|
5659
5659
|
style: { "font-size": "16px !important" }
|
|
5660
5660
|
}, {
|
|
5661
5661
|
default: f(() => [
|
|
5662
|
-
|
|
5662
|
+
$(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
5663
5663
|
]),
|
|
5664
5664
|
_: 1
|
|
5665
5665
|
})
|
|
5666
5666
|
]),
|
|
5667
5667
|
_: 1
|
|
5668
5668
|
}),
|
|
5669
|
-
|
|
5669
|
+
u(b, { class: "py-2" }, {
|
|
5670
5670
|
default: f(() => [
|
|
5671
5671
|
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => ["ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (y(), O(h, {
|
|
5672
5672
|
key: A.key,
|
|
@@ -5686,26 +5686,26 @@ function hs(t, e, o, i, a, r) {
|
|
|
5686
5686
|
]),
|
|
5687
5687
|
_: 1
|
|
5688
5688
|
}),
|
|
5689
|
-
|
|
5689
|
+
u(w, {
|
|
5690
5690
|
class: "block-bg mx-auto mb-3",
|
|
5691
5691
|
elevation: "0"
|
|
5692
5692
|
}, {
|
|
5693
5693
|
default: f(() => [
|
|
5694
|
-
p
|
|
5694
|
+
u(p, { class: "border-b-thin" }, {
|
|
5695
5695
|
default: f(() => [
|
|
5696
|
-
|
|
5696
|
+
u(n, {
|
|
5697
5697
|
class: "text-subtitle-1 font-weight-medium",
|
|
5698
5698
|
style: { "font-size": "16px !important" }
|
|
5699
5699
|
}, {
|
|
5700
5700
|
default: f(() => [
|
|
5701
|
-
|
|
5701
|
+
$(m(t.$t("layer.otherLayers")), 1)
|
|
5702
5702
|
]),
|
|
5703
5703
|
_: 1
|
|
5704
5704
|
})
|
|
5705
5705
|
]),
|
|
5706
5706
|
_: 1
|
|
5707
5707
|
}),
|
|
5708
|
-
|
|
5708
|
+
u(b, { class: "py-2" }, {
|
|
5709
5709
|
default: f(() => [
|
|
5710
5710
|
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (y(), O(h, {
|
|
5711
5711
|
key: A.key,
|
|
@@ -5725,28 +5725,28 @@ function hs(t, e, o, i, a, r) {
|
|
|
5725
5725
|
]),
|
|
5726
5726
|
_: 1
|
|
5727
5727
|
}),
|
|
5728
|
-
|
|
5728
|
+
u(w, {
|
|
5729
5729
|
class: "block-bg mx-auto mb-3",
|
|
5730
5730
|
elevation: "0"
|
|
5731
5731
|
}, {
|
|
5732
5732
|
default: f(() => [
|
|
5733
|
-
p
|
|
5733
|
+
u(p, { class: "border-b-thin" }, {
|
|
5734
5734
|
default: f(() => [
|
|
5735
|
-
|
|
5735
|
+
u(n, {
|
|
5736
5736
|
class: "text-subtitle-1 font-weight-medium",
|
|
5737
5737
|
style: { "font-size": "16px !important" }
|
|
5738
5738
|
}, {
|
|
5739
5739
|
default: f(() => [
|
|
5740
|
-
|
|
5740
|
+
$(m(t.$t("layer.myFollows")), 1)
|
|
5741
5741
|
]),
|
|
5742
5742
|
_: 1
|
|
5743
5743
|
})
|
|
5744
5744
|
]),
|
|
5745
5745
|
_: 1
|
|
5746
5746
|
}),
|
|
5747
|
-
|
|
5747
|
+
u(b, { class: "py-2" }, {
|
|
5748
5748
|
default: f(() => [
|
|
5749
|
-
|
|
5749
|
+
u(h, {
|
|
5750
5750
|
modelValue: a.checkList,
|
|
5751
5751
|
"onUpdate:modelValue": e[3] || (e[3] = (A) => a.checkList = A),
|
|
5752
5752
|
value: "follow-ports",
|
|
@@ -5757,7 +5757,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5757
5757
|
class: "flex-1-0-100 text-body-2",
|
|
5758
5758
|
"hide-details": ""
|
|
5759
5759
|
}, null, 8, ["modelValue", "label"]),
|
|
5760
|
-
|
|
5760
|
+
u(h, {
|
|
5761
5761
|
modelValue: a.checkList,
|
|
5762
5762
|
"onUpdate:modelValue": e[4] || (e[4] = (A) => a.checkList = A),
|
|
5763
5763
|
value: "follow-positions",
|
|
@@ -5776,7 +5776,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5776
5776
|
})
|
|
5777
5777
|
])
|
|
5778
5778
|
], 6),
|
|
5779
|
-
o.map ? (y(), O(
|
|
5779
|
+
o.map ? (y(), O(z, B({
|
|
5780
5780
|
key: 0,
|
|
5781
5781
|
map: o.map,
|
|
5782
5782
|
"menu-toggle": o.menuToggle,
|
|
@@ -5785,7 +5785,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5785
5785
|
o.map ? (y(), O(g, B({
|
|
5786
5786
|
key: 1,
|
|
5787
5787
|
map: o.map,
|
|
5788
|
-
area: (
|
|
5788
|
+
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
5789
5789
|
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5790
5790
|
o.map ? (y(), O(_, B({
|
|
5791
5791
|
key: 2,
|
|
@@ -5834,7 +5834,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5834
5834
|
map: o.map,
|
|
5835
5835
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5836
5836
|
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5837
|
-
o.map ? (y(), O(
|
|
5837
|
+
o.map ? (y(), O(L, B({
|
|
5838
5838
|
key: 8,
|
|
5839
5839
|
map: o.map,
|
|
5840
5840
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
@@ -5948,8 +5948,8 @@ class Do {
|
|
|
5948
5948
|
const e = (g = this.map) == null ? void 0 : g.getBounds();
|
|
5949
5949
|
if (!e)
|
|
5950
5950
|
return [];
|
|
5951
|
-
const o = ((_ = this.map) == null ? void 0 : _.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [
|
|
5952
|
-
return [b, w,
|
|
5951
|
+
const o = ((_ = this.map) == null ? void 0 : _.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [p, h] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
5952
|
+
return [b, w, p + z, h];
|
|
5953
5953
|
}
|
|
5954
5954
|
/**
|
|
5955
5955
|
* [视窗边界像素宽度]
|
|
@@ -6054,13 +6054,13 @@ class je {
|
|
|
6054
6054
|
if (a) {
|
|
6055
6055
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
6056
6056
|
for (let n = 0; n < s; n++) {
|
|
6057
|
-
const
|
|
6058
|
-
r[
|
|
6057
|
+
const p = e.getActiveAttrib(a, n);
|
|
6058
|
+
r[p.name] = e.getAttribLocation(a, p.name);
|
|
6059
6059
|
}
|
|
6060
6060
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
6061
6061
|
for (let n = 0; n < c; n++) {
|
|
6062
|
-
const
|
|
6063
|
-
r[
|
|
6062
|
+
const p = e.getActiveUniform(a, n);
|
|
6063
|
+
r[p.name] = e.getUniformLocation(a, p.name);
|
|
6064
6064
|
}
|
|
6065
6065
|
return r;
|
|
6066
6066
|
}
|
|
@@ -6075,8 +6075,8 @@ class je {
|
|
|
6075
6075
|
const c = s.getContext("2d");
|
|
6076
6076
|
if (c && e) {
|
|
6077
6077
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
6078
|
-
return o.forEach(([
|
|
6079
|
-
n.addColorStop(
|
|
6078
|
+
return o.forEach(([p, h]) => {
|
|
6079
|
+
n.addColorStop(p, h);
|
|
6080
6080
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
6081
6081
|
canvas: s,
|
|
6082
6082
|
texture: this.createTexture(
|
|
@@ -6098,8 +6098,8 @@ class je {
|
|
|
6098
6098
|
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
6099
6099
|
for (let h = 0; h < a; h++)
|
|
6100
6100
|
n[h] = h;
|
|
6101
|
-
const
|
|
6102
|
-
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer:
|
|
6101
|
+
const p = this.createDataBuffer(e, "array", n);
|
|
6102
|
+
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: p };
|
|
6103
6103
|
}
|
|
6104
6104
|
bind(e, o, i) {
|
|
6105
6105
|
const a = this.createProgram(e, o, i);
|
|
@@ -6114,13 +6114,13 @@ class je {
|
|
|
6114
6114
|
return {};
|
|
6115
6115
|
}
|
|
6116
6116
|
bindParticle(e, o, i, a, r, s) {
|
|
6117
|
-
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r),
|
|
6118
|
-
return { particle: c, screen: n, update:
|
|
6117
|
+
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), p = this.createProgramWrapper(e, a, s), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
|
|
6118
|
+
return { particle: c, screen: n, update: p, quadBuffer: h, frameBuffer: b };
|
|
6119
6119
|
}
|
|
6120
6120
|
draw(e, o, i, a, r, s, c) {
|
|
6121
|
-
var n,
|
|
6121
|
+
var n, p;
|
|
6122
6122
|
if (o && i) {
|
|
6123
|
-
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (
|
|
6123
|
+
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (p = o == null ? void 0 : o.canvas) == null ? void 0 : p.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
6124
6124
|
try {
|
|
6125
6125
|
o.useProgram(i);
|
|
6126
6126
|
const h = {
|
|
@@ -6132,9 +6132,9 @@ class je {
|
|
|
6132
6132
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6133
6133
|
};
|
|
6134
6134
|
h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6135
|
-
const b = e.getBoundPixel(), w = e.map.getZoom() + 1,
|
|
6136
|
-
for (const g of
|
|
6137
|
-
const _ = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio, N = g[2] * e.ratio, [I, C, k,
|
|
6135
|
+
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, z = e.getWorldCopy(b, w);
|
|
6136
|
+
for (const g of z) {
|
|
6137
|
+
const _ = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio, N = g[2] * e.ratio, [I, C, k, L] = [_, N + _, P, N + P], T = new Float32Array([I, k, C, k, I, L, I, L, C, k, C, L]);
|
|
6138
6138
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6139
6139
|
}
|
|
6140
6140
|
} catch (h) {
|
|
@@ -6482,17 +6482,17 @@ const us = {
|
|
|
6482
6482
|
else {
|
|
6483
6483
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
6484
6484
|
for (let s = 0; s < (this.barbs ?? []).length - 1; s++) {
|
|
6485
|
-
const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0,
|
|
6486
|
-
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[
|
|
6487
|
-
this.map.hasImage(
|
|
6485
|
+
const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, p = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
|
|
6486
|
+
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[p]), h.onload = () => {
|
|
6487
|
+
this.map.hasImage(p + "-icon") || this.map.addImage(p + "-icon", h), this.map.addLayer(
|
|
6488
6488
|
{
|
|
6489
|
-
id:
|
|
6489
|
+
id: p,
|
|
6490
6490
|
type: "symbol",
|
|
6491
6491
|
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
6492
6492
|
source: this.source,
|
|
6493
6493
|
layout: {
|
|
6494
6494
|
"symbol-placement": "point",
|
|
6495
|
-
"icon-image":
|
|
6495
|
+
"icon-image": p + "-icon",
|
|
6496
6496
|
// mapbox sprite
|
|
6497
6497
|
"icon-size": 0.5,
|
|
6498
6498
|
"icon-offset": [0, -20],
|
|
@@ -6832,11 +6832,11 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
|
|
|
6832
6832
|
);
|
|
6833
6833
|
const s = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
|
|
6834
6834
|
s.src = "data:image/svg+xml;base64," + window.btoa(c);
|
|
6835
|
-
const n = new Image(48, 48),
|
|
6835
|
+
const n = new Image(48, 48), p = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6836
6836
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6837
6837
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6838
6838
|
</svg>`;
|
|
6839
|
-
n.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6839
|
+
n.src = "data:image/svg+xml;base64," + window.btoa(p);
|
|
6840
6840
|
const h = [n];
|
|
6841
6841
|
let b = 0;
|
|
6842
6842
|
h.forEach((w) => {
|
|
@@ -7615,12 +7615,12 @@ function Us(t, e, o, i, a, r) {
|
|
|
7615
7615
|
class: "menu-bar-box pa-1 rounded",
|
|
7616
7616
|
style: ae({ right: a.right + "px" })
|
|
7617
7617
|
}, [
|
|
7618
|
-
|
|
7618
|
+
u(c, {
|
|
7619
7619
|
text: "Map Layers",
|
|
7620
7620
|
location: "left"
|
|
7621
7621
|
}, {
|
|
7622
|
-
activator: f(({ props:
|
|
7623
|
-
|
|
7622
|
+
activator: f(({ props: p }) => [
|
|
7623
|
+
u(s, B(p, {
|
|
7624
7624
|
"min-width": "32",
|
|
7625
7625
|
width: "32",
|
|
7626
7626
|
height: "32",
|
|
@@ -8703,11 +8703,11 @@ const wn = {
|
|
|
8703
8703
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8704
8704
|
},
|
|
8705
8705
|
async fetchWeatherLayers(t = {}) {
|
|
8706
|
-
var a, r, s, c, n,
|
|
8706
|
+
var a, r, s, c, n, p, h, b, w;
|
|
8707
8707
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8708
8708
|
let o = 0, i = 0;
|
|
8709
8709
|
if (this.map) {
|
|
8710
|
-
const
|
|
8710
|
+
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), _ = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
8711
8711
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8712
8712
|
const P = To.WEATHER_LAYERS.find((N) => {
|
|
8713
8713
|
var I;
|
|
@@ -8719,7 +8719,7 @@ const wn = {
|
|
|
8719
8719
|
let P = this.weatherWeight;
|
|
8720
8720
|
if (P > 0) {
|
|
8721
8721
|
const N = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await De.get(
|
|
8722
|
-
`${N}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${
|
|
8722
|
+
`${N}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${z}&bbox=${_}&t=${this.realTime}`,
|
|
8723
8723
|
{
|
|
8724
8724
|
headers: {
|
|
8725
8725
|
Authorization: this.defaultMeteoToken
|
|
@@ -8740,8 +8740,8 @@ const wn = {
|
|
|
8740
8740
|
console.log(`[${T}] fetch layer error: ${v}`);
|
|
8741
8741
|
})
|
|
8742
8742
|
);
|
|
8743
|
-
const
|
|
8744
|
-
this.weatherLayers = {},
|
|
8743
|
+
const L = await Promise.all(k);
|
|
8744
|
+
this.weatherLayers = {}, L.map((T) => {
|
|
8745
8745
|
var F, V, Y, Z;
|
|
8746
8746
|
const v = ((F = T == null ? void 0 : T.data) == null ? void 0 : F.data) || (T == null ? void 0 : T.data);
|
|
8747
8747
|
let D = (Y = (V = T == null ? void 0 : T.config) == null ? void 0 : V.headers) == null ? void 0 : Y.key;
|
|
@@ -8753,7 +8753,7 @@ const wn = {
|
|
|
8753
8753
|
});
|
|
8754
8754
|
}
|
|
8755
8755
|
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"]) {
|
|
8756
|
-
const C = (
|
|
8756
|
+
const C = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
8757
8757
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8758
8758
|
type: "json",
|
|
8759
8759
|
direction: C,
|
|
@@ -8789,7 +8789,7 @@ const wn = {
|
|
|
8789
8789
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8790
8790
|
},
|
|
8791
8791
|
handleRampColorInitial() {
|
|
8792
|
-
var t, e, o, i, a, r, s, c, n,
|
|
8792
|
+
var t, e, o, i, a, r, s, c, n, p, h, b;
|
|
8793
8793
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8794
8794
|
type: "canvas",
|
|
8795
8795
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -8810,7 +8810,7 @@ const wn = {
|
|
|
8810
8810
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
8811
8811
|
animate: !0,
|
|
8812
8812
|
coordinates: this.viewport.getBoundLngLat()
|
|
8813
|
-
}), this.viewport.map.getLayer((
|
|
8813
|
+
}), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
|
|
8814
8814
|
{
|
|
8815
8815
|
type: "raster",
|
|
8816
8816
|
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
@@ -8823,12 +8823,12 @@ const wn = {
|
|
|
8823
8823
|
);
|
|
8824
8824
|
},
|
|
8825
8825
|
handleDrawWeather4Json() {
|
|
8826
|
-
var r, s, c, n,
|
|
8826
|
+
var r, s, c, n, p, h, b;
|
|
8827
8827
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8828
8828
|
let e = 0, o = 0;
|
|
8829
8829
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (s = this.map) == null ? void 0 : s.getZoom();
|
|
8830
8830
|
if (i && a) {
|
|
8831
|
-
const w = X.convertToStdLng(i._sw.lng),
|
|
8831
|
+
const w = X.convertToStdLng(i._sw.lng), z = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), _ = Math.ceil(i._ne.lat);
|
|
8832
8832
|
for (const P in this.weatherLayers) {
|
|
8833
8833
|
let N = !1;
|
|
8834
8834
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
@@ -8836,42 +8836,42 @@ const wn = {
|
|
|
8836
8836
|
if (P === "swell") {
|
|
8837
8837
|
N = !0;
|
|
8838
8838
|
const C = ((c = this.weatherLayers[P]) == null ? void 0 : c.direction) || {};
|
|
8839
|
-
for (const
|
|
8840
|
-
if (
|
|
8841
|
-
const T = C[
|
|
8842
|
-
w >
|
|
8839
|
+
for (const L in C)
|
|
8840
|
+
if (L > g && L < _ && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8841
|
+
const T = C[L].lng;
|
|
8842
|
+
w > z ? T.forEach((v, D) => {
|
|
8843
8843
|
var F, V, Y, Z, J, Q;
|
|
8844
8844
|
if (a < 2) {
|
|
8845
8845
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8846
|
-
const
|
|
8847
|
-
val: ((F = C[
|
|
8848
|
-
spd: (Y = C[
|
|
8846
|
+
const K = H.point([v, L], {
|
|
8847
|
+
val: ((F = C[L].val) == null ? void 0 : F[D]) || ((V = C[L].dir) == null ? void 0 : V[D]),
|
|
8848
|
+
spd: (Y = C[L].spd) == null ? void 0 : Y[D]
|
|
8849
8849
|
});
|
|
8850
|
-
I.push(
|
|
8850
|
+
I.push(K);
|
|
8851
8851
|
}
|
|
8852
|
-
} else if ((v >= w && v <= 180 || v >= -180 && v <=
|
|
8853
|
-
const
|
|
8854
|
-
val: ((Z = C[
|
|
8855
|
-
spd: (Q = C[
|
|
8852
|
+
} else if ((v >= w && v <= 180 || v >= -180 && v <= z) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8853
|
+
const K = H.point([v, L], {
|
|
8854
|
+
val: ((Z = C[L].val) == null ? void 0 : Z[D]) || ((J = C[L].dir) == null ? void 0 : J[D]),
|
|
8855
|
+
spd: (Q = C[L].spd) == null ? void 0 : Q[D]
|
|
8856
8856
|
});
|
|
8857
|
-
I.push(
|
|
8857
|
+
I.push(K);
|
|
8858
8858
|
}
|
|
8859
8859
|
}) : T.forEach((v, D) => {
|
|
8860
8860
|
var F, V, Y, Z, J, Q;
|
|
8861
8861
|
if (w < 2) {
|
|
8862
8862
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8863
|
-
const
|
|
8864
|
-
val: ((F = C[
|
|
8865
|
-
spd: (Y = C[
|
|
8863
|
+
const K = H.point([v, L], {
|
|
8864
|
+
val: ((F = C[L].val) == null ? void 0 : F[D]) || ((V = C[L].dir) == null ? void 0 : V[D]),
|
|
8865
|
+
spd: (Y = C[L].spd) == null ? void 0 : Y[D]
|
|
8866
8866
|
});
|
|
8867
|
-
I.push(
|
|
8867
|
+
I.push(K);
|
|
8868
8868
|
}
|
|
8869
|
-
} else if (v >= w && v <=
|
|
8870
|
-
const
|
|
8871
|
-
val: ((Z = C[
|
|
8872
|
-
spd: (Q = C[
|
|
8869
|
+
} else if (v >= w && v <= z && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8870
|
+
const K = H.point([v, L], {
|
|
8871
|
+
val: ((Z = C[L].val) == null ? void 0 : Z[D]) || ((J = C[L].dir) == null ? void 0 : J[D]),
|
|
8872
|
+
spd: (Q = C[L].spd) == null ? void 0 : Q[D]
|
|
8873
8873
|
});
|
|
8874
|
-
I.push(
|
|
8874
|
+
I.push(K);
|
|
8875
8875
|
}
|
|
8876
8876
|
});
|
|
8877
8877
|
}
|
|
@@ -8879,63 +8879,63 @@ const wn = {
|
|
|
8879
8879
|
const k = this.weatherLayers[P].height;
|
|
8880
8880
|
if (k) {
|
|
8881
8881
|
if (!k.data) {
|
|
8882
|
-
const
|
|
8882
|
+
const L = [];
|
|
8883
8883
|
for (const T in (n = k.raw) == null ? void 0 : n.LineString) {
|
|
8884
8884
|
const v = k.raw.LineString[T];
|
|
8885
8885
|
for (const D of v)
|
|
8886
|
-
|
|
8886
|
+
L.push(
|
|
8887
8887
|
H.lineString(D, {
|
|
8888
8888
|
val: Number(T)
|
|
8889
8889
|
})
|
|
8890
8890
|
);
|
|
8891
|
-
k.data = H.featureCollection(
|
|
8891
|
+
k.data = H.featureCollection(L);
|
|
8892
8892
|
}
|
|
8893
8893
|
}
|
|
8894
8894
|
if (k.data) {
|
|
8895
|
-
const
|
|
8896
|
-
I = I.concat(
|
|
8895
|
+
const L = this.handleBboxClip(k.data, i);
|
|
8896
|
+
I = I.concat(L);
|
|
8897
8897
|
}
|
|
8898
8898
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8899
8899
|
}
|
|
8900
8900
|
} else if (P === "current") {
|
|
8901
8901
|
N = !0;
|
|
8902
|
-
const C = ((
|
|
8903
|
-
for (const
|
|
8904
|
-
if (
|
|
8905
|
-
const T = C[
|
|
8906
|
-
w >
|
|
8902
|
+
const C = ((p = this.weatherLayers[P]) == null ? void 0 : p.direction) || {};
|
|
8903
|
+
for (const L in C)
|
|
8904
|
+
if (L > g && L < _ && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8905
|
+
const T = C[L].lng;
|
|
8906
|
+
w > z ? T.forEach((v, D) => {
|
|
8907
8907
|
var F, V, Y, Z, J, Q;
|
|
8908
8908
|
if (a < 2) {
|
|
8909
8909
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8910
|
-
const
|
|
8911
|
-
val: ((F = C[
|
|
8912
|
-
spd: (Y = C[
|
|
8910
|
+
const K = H.point([v, L], {
|
|
8911
|
+
val: ((F = C[L].val) == null ? void 0 : F[D]) || ((V = C[L].dir) == null ? void 0 : V[D]),
|
|
8912
|
+
spd: (Y = C[L].spd) == null ? void 0 : Y[D]
|
|
8913
8913
|
});
|
|
8914
|
-
I.push(
|
|
8914
|
+
I.push(K);
|
|
8915
8915
|
}
|
|
8916
|
-
} else if ((v >= w && v <= 180 || v >= -180 && v <=
|
|
8917
|
-
const
|
|
8918
|
-
val: ((Z = C[
|
|
8919
|
-
spd: (Q = C[
|
|
8916
|
+
} else if ((v >= w && v <= 180 || v >= -180 && v <= z) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8917
|
+
const K = H.point([v, L], {
|
|
8918
|
+
val: ((Z = C[L].val) == null ? void 0 : Z[D]) || ((J = C[L].dir) == null ? void 0 : J[D]),
|
|
8919
|
+
spd: (Q = C[L].spd) == null ? void 0 : Q[D]
|
|
8920
8920
|
});
|
|
8921
|
-
I.push(
|
|
8921
|
+
I.push(K);
|
|
8922
8922
|
}
|
|
8923
8923
|
}) : T.forEach((v, D) => {
|
|
8924
8924
|
var F, V, Y, Z, J, Q;
|
|
8925
8925
|
if (w < 2) {
|
|
8926
8926
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8927
|
-
const
|
|
8928
|
-
val: ((F = C[
|
|
8929
|
-
spd: (Y = C[
|
|
8927
|
+
const K = H.point([v, L], {
|
|
8928
|
+
val: ((F = C[L].val) == null ? void 0 : F[D]) || ((V = C[L].dir) == null ? void 0 : V[D]),
|
|
8929
|
+
spd: (Y = C[L].spd) == null ? void 0 : Y[D]
|
|
8930
8930
|
});
|
|
8931
|
-
I.push(
|
|
8931
|
+
I.push(K);
|
|
8932
8932
|
}
|
|
8933
|
-
} else if (v >= w && v <=
|
|
8934
|
-
const
|
|
8935
|
-
val: ((Z = C[
|
|
8936
|
-
spd: (Q = C[
|
|
8933
|
+
} else if (v >= w && v <= z && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8934
|
+
const K = H.point([v, L], {
|
|
8935
|
+
val: ((Z = C[L].val) == null ? void 0 : Z[D]) || ((J = C[L].dir) == null ? void 0 : J[D]),
|
|
8936
|
+
spd: (Q = C[L].spd) == null ? void 0 : Q[D]
|
|
8937
8937
|
});
|
|
8938
|
-
I.push(
|
|
8938
|
+
I.push(K);
|
|
8939
8939
|
}
|
|
8940
8940
|
});
|
|
8941
8941
|
}
|
|
@@ -8955,16 +8955,16 @@ const wn = {
|
|
|
8955
8955
|
}
|
|
8956
8956
|
k.data = H.featureCollection(T);
|
|
8957
8957
|
}
|
|
8958
|
-
const
|
|
8959
|
-
I = I.concat(
|
|
8958
|
+
const L = a < this.zoom ? k.data.features.filter((T) => T.properties.val > 0.5) : k.data.features;
|
|
8959
|
+
I = I.concat(L), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8960
8960
|
}
|
|
8961
8961
|
} else if (P === "wind") {
|
|
8962
8962
|
N = !0;
|
|
8963
8963
|
const C = this.weatherLayers.wind.raw;
|
|
8964
8964
|
for (const k in C)
|
|
8965
8965
|
if (k > g && k < _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8966
|
-
const
|
|
8967
|
-
w >
|
|
8966
|
+
const L = C[k].lng;
|
|
8967
|
+
w > z ? L.forEach((T, v) => {
|
|
8968
8968
|
var D, F, V, Y;
|
|
8969
8969
|
if (a < 2) {
|
|
8970
8970
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
@@ -8974,14 +8974,14 @@ const wn = {
|
|
|
8974
8974
|
});
|
|
8975
8975
|
I.push(Z);
|
|
8976
8976
|
}
|
|
8977
|
-
} else if ((T >= w && T <= 180 || T >= -180 && T <=
|
|
8977
|
+
} else if ((T >= w && T <= 180 || T >= -180 && T <= z) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8978
8978
|
const Z = H.point([T, k], {
|
|
8979
8979
|
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8980
8980
|
spd: C[k].spd[v]
|
|
8981
8981
|
});
|
|
8982
8982
|
I.push(Z);
|
|
8983
8983
|
}
|
|
8984
|
-
}) :
|
|
8984
|
+
}) : L.forEach((T, v) => {
|
|
8985
8985
|
var D, F, V, Y;
|
|
8986
8986
|
if (a < 2) {
|
|
8987
8987
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
@@ -8991,7 +8991,7 @@ const wn = {
|
|
|
8991
8991
|
});
|
|
8992
8992
|
I.push(Z);
|
|
8993
8993
|
}
|
|
8994
|
-
} else if (T >= w && T <=
|
|
8994
|
+
} else if (T >= w && T <= z && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8995
8995
|
const Z = H.point([T, k], {
|
|
8996
8996
|
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8997
8997
|
spd: C[k].spd[v]
|
|
@@ -9009,29 +9009,29 @@ const wn = {
|
|
|
9009
9009
|
const C = this.weatherLayers[P].raw;
|
|
9010
9010
|
if (C) {
|
|
9011
9011
|
const k = [];
|
|
9012
|
-
for (const
|
|
9013
|
-
const T = C.Polygon[
|
|
9012
|
+
for (const L in C.Polygon) {
|
|
9013
|
+
const T = C.Polygon[L];
|
|
9014
9014
|
for (const v of T)
|
|
9015
9015
|
k.push(
|
|
9016
9016
|
H.polygon(v, {
|
|
9017
|
-
val: Number(
|
|
9017
|
+
val: Number(L)
|
|
9018
9018
|
})
|
|
9019
9019
|
);
|
|
9020
9020
|
}
|
|
9021
|
-
for (const
|
|
9022
|
-
const T = C.MultiPolygon[
|
|
9021
|
+
for (const L in C.MultiPolygon) {
|
|
9022
|
+
const T = C.MultiPolygon[L];
|
|
9023
9023
|
for (const v of T)
|
|
9024
9024
|
k.push(
|
|
9025
9025
|
H.multiPolygon(v, {
|
|
9026
|
-
val: Number(
|
|
9026
|
+
val: Number(L)
|
|
9027
9027
|
})
|
|
9028
9028
|
);
|
|
9029
9029
|
}
|
|
9030
|
-
for (const
|
|
9031
|
-
const T = C.Point[
|
|
9030
|
+
for (const L in C.Point) {
|
|
9031
|
+
const T = C.Point[L];
|
|
9032
9032
|
for (let v = 0; v < ((b = T.lng) == null ? void 0 : b.length); v++)
|
|
9033
9033
|
k.push(
|
|
9034
|
-
H.point([T.lng[v],
|
|
9034
|
+
H.point([T.lng[v], L], {
|
|
9035
9035
|
val: Number(T.val[v])
|
|
9036
9036
|
})
|
|
9037
9037
|
);
|
|
@@ -9048,21 +9048,21 @@ const wn = {
|
|
|
9048
9048
|
const C = this.weatherLayers[P].raw;
|
|
9049
9049
|
if (C) {
|
|
9050
9050
|
const k = [];
|
|
9051
|
-
for (const
|
|
9052
|
-
const T = C.LineString[
|
|
9051
|
+
for (const L in C.LineString) {
|
|
9052
|
+
const T = C.LineString[L];
|
|
9053
9053
|
for (const v of T)
|
|
9054
9054
|
k.push(
|
|
9055
9055
|
H.lineString(v, {
|
|
9056
|
-
val: Number(
|
|
9056
|
+
val: Number(L)
|
|
9057
9057
|
})
|
|
9058
9058
|
);
|
|
9059
9059
|
}
|
|
9060
|
-
for (const
|
|
9061
|
-
C.Point[
|
|
9060
|
+
for (const L in C.Point)
|
|
9061
|
+
C.Point[L].lng.forEach((T, v) => {
|
|
9062
9062
|
T = X.convertToStdLng(T), k.push(
|
|
9063
|
-
H.point([T,
|
|
9064
|
-
val: C.Point[
|
|
9065
|
-
type: C.Point[
|
|
9063
|
+
H.point([T, L], {
|
|
9064
|
+
val: C.Point[L].val[v],
|
|
9065
|
+
type: C.Point[L].type[v]
|
|
9066
9066
|
})
|
|
9067
9067
|
);
|
|
9068
9068
|
});
|
|
@@ -9115,18 +9115,18 @@ const wn = {
|
|
|
9115
9115
|
}, On = { class: "text-body-1 py-2" }, Nn = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
9116
9116
|
function ic(t, e, o, i, a, r) {
|
|
9117
9117
|
var pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce;
|
|
9118
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"),
|
|
9118
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), p = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), z = x("VSwitch"), g = x("VCardTitle"), _ = x("VCardItem"), P = x("VCheckbox"), N = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), k = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), T = x("IdmPrmsl"), v = x("IdmWindParticle"), D = x("IdmCurrentParticle"), F = x("IdmWave"), V = x("IdmSwell"), Y = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), Q = x("IdmPrecip3h"), K = x("IdmVisibility"), le = x("IdmWaterTemp"), se = x("IdmTemp");
|
|
9119
9119
|
return y(), M("div", xn, [
|
|
9120
9120
|
l("div", {
|
|
9121
9121
|
class: "menu-bar-box transition pa-1",
|
|
9122
9122
|
style: ae({ top: o.top + o.paddingTop + 46 + "px", right: a.right + "px" })
|
|
9123
9123
|
}, [
|
|
9124
|
-
|
|
9124
|
+
u(c, {
|
|
9125
9125
|
text: t.$t("weather.weatherLayers"),
|
|
9126
9126
|
location: "left"
|
|
9127
9127
|
}, {
|
|
9128
9128
|
activator: f(({ props: U }) => [
|
|
9129
|
-
|
|
9129
|
+
u(s, B(U, {
|
|
9130
9130
|
"min-width": "32",
|
|
9131
9131
|
width: "32",
|
|
9132
9132
|
height: "32",
|
|
@@ -9148,12 +9148,12 @@ function ic(t, e, o, i, a, r) {
|
|
|
9148
9148
|
class: "menu-bar-box pa-1 rounded",
|
|
9149
9149
|
style: ae({ right: a.right + "px" })
|
|
9150
9150
|
}, [
|
|
9151
|
-
|
|
9151
|
+
u(c, {
|
|
9152
9152
|
text: "Legend",
|
|
9153
9153
|
location: "left"
|
|
9154
9154
|
}, {
|
|
9155
9155
|
activator: f(({ props: U }) => [
|
|
9156
|
-
|
|
9156
|
+
u(s, B(U, {
|
|
9157
9157
|
"min-width": "32",
|
|
9158
9158
|
width: "32",
|
|
9159
9159
|
height: "32",
|
|
@@ -9178,10 +9178,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
9178
9178
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
9179
9179
|
}, {
|
|
9180
9180
|
default: f(() => [
|
|
9181
|
-
|
|
9181
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9182
9182
|
default: f(() => [
|
|
9183
9183
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9184
|
-
p
|
|
9184
|
+
u(p, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9185
9185
|
default: f(() => [
|
|
9186
9186
|
(y(!0), M(we, null, _e(a.legend.barbs, (U, te) => (y(), O(n, {
|
|
9187
9187
|
key: U,
|
|
@@ -9206,11 +9206,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
9206
9206
|
_: 1,
|
|
9207
9207
|
__: [10]
|
|
9208
9208
|
}),
|
|
9209
|
-
|
|
9210
|
-
|
|
9209
|
+
u(b, { vertical: "" }),
|
|
9210
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9211
9211
|
default: f(() => [
|
|
9212
9212
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9213
|
-
p
|
|
9213
|
+
u(p, {
|
|
9214
9214
|
class: "ma-0 ml-1",
|
|
9215
9215
|
style: { width: "100px" }
|
|
9216
9216
|
}, {
|
|
@@ -9238,11 +9238,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
9238
9238
|
_: 1,
|
|
9239
9239
|
__: [11]
|
|
9240
9240
|
}),
|
|
9241
|
-
|
|
9242
|
-
|
|
9241
|
+
u(b, { vertical: "" }),
|
|
9242
|
+
u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
9243
9243
|
default: f(() => [
|
|
9244
9244
|
e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
9245
|
-
p
|
|
9245
|
+
u(p, {
|
|
9246
9246
|
class: "ma-0 ml-n5",
|
|
9247
9247
|
style: { width: "110px" }
|
|
9248
9248
|
}, {
|
|
@@ -9283,7 +9283,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9283
9283
|
l("div", Mn, [
|
|
9284
9284
|
l("div", In, [
|
|
9285
9285
|
l("div", Dn, m(t.$t("weather.weather")), 1),
|
|
9286
|
-
|
|
9286
|
+
u(z, {
|
|
9287
9287
|
modelValue: a.autoActive,
|
|
9288
9288
|
"onUpdate:modelValue": e[1] || (e[1] = (U) => a.autoActive = U),
|
|
9289
9289
|
class: "small-switch",
|
|
@@ -9293,7 +9293,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9293
9293
|
"hide-details": ""
|
|
9294
9294
|
}, null, 8, ["modelValue"])
|
|
9295
9295
|
]),
|
|
9296
|
-
|
|
9296
|
+
u(s, {
|
|
9297
9297
|
icon: "",
|
|
9298
9298
|
density: "compact",
|
|
9299
9299
|
variant: "plain",
|
|
@@ -9310,26 +9310,26 @@ function ic(t, e, o, i, a, r) {
|
|
|
9310
9310
|
l("div", {
|
|
9311
9311
|
class: Ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
9312
9312
|
}, [
|
|
9313
|
-
|
|
9313
|
+
u(w, {
|
|
9314
9314
|
class: "block-bg mx-auto mb-3",
|
|
9315
9315
|
elevation: "0"
|
|
9316
9316
|
}, {
|
|
9317
9317
|
default: f(() => [
|
|
9318
|
-
|
|
9318
|
+
u(_, { class: "border-b-thin" }, {
|
|
9319
9319
|
default: f(() => [
|
|
9320
|
-
|
|
9320
|
+
u(g, {
|
|
9321
9321
|
class: "text-subtitle-1 font-weight-medium",
|
|
9322
9322
|
style: { "font-size": "16px !important" }
|
|
9323
9323
|
}, {
|
|
9324
9324
|
default: f(() => [
|
|
9325
|
-
|
|
9325
|
+
$(m(t.$t("weather.overlays")), 1)
|
|
9326
9326
|
]),
|
|
9327
9327
|
_: 1
|
|
9328
9328
|
})
|
|
9329
9329
|
]),
|
|
9330
9330
|
_: 1
|
|
9331
9331
|
}),
|
|
9332
|
-
|
|
9332
|
+
u(h, { class: "py-2" }, {
|
|
9333
9333
|
default: f(() => [
|
|
9334
9334
|
(y(!0), M(we, null, _e(a.tagLayers.filter((U) => U.overlays), (U) => (y(), O(P, {
|
|
9335
9335
|
key: U.key,
|
|
@@ -9350,31 +9350,31 @@ function ic(t, e, o, i, a, r) {
|
|
|
9350
9350
|
]),
|
|
9351
9351
|
_: 1
|
|
9352
9352
|
}),
|
|
9353
|
-
|
|
9353
|
+
u(w, {
|
|
9354
9354
|
class: "block-bg mx-auto mb-3",
|
|
9355
9355
|
elevation: "0"
|
|
9356
9356
|
}, {
|
|
9357
9357
|
default: f(() => [
|
|
9358
|
-
|
|
9358
|
+
u(_, { class: "border-b-thin" }, {
|
|
9359
9359
|
default: f(() => [
|
|
9360
|
-
|
|
9360
|
+
u(g, {
|
|
9361
9361
|
class: "text-subtitle-1 font-weight-medium",
|
|
9362
9362
|
style: { "font-size": "16px !important" }
|
|
9363
9363
|
}, {
|
|
9364
9364
|
default: f(() => [
|
|
9365
|
-
|
|
9365
|
+
$(m(t.$t("weather.renders")), 1)
|
|
9366
9366
|
]),
|
|
9367
9367
|
_: 1
|
|
9368
9368
|
})
|
|
9369
9369
|
]),
|
|
9370
9370
|
_: 1
|
|
9371
9371
|
}),
|
|
9372
|
-
|
|
9372
|
+
u(h, { class: "py-2" }, {
|
|
9373
9373
|
default: f(() => [
|
|
9374
9374
|
(y(!0), M(we, null, _e(a.tagLayers.filter((U) => !U.overlays), (U) => (y(), M(we, {
|
|
9375
9375
|
key: U.key
|
|
9376
9376
|
}, [
|
|
9377
|
-
|
|
9377
|
+
u(N, {
|
|
9378
9378
|
modelValue: a.renderKey,
|
|
9379
9379
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
9380
9380
|
label: t.$t(`weather.${U.locale}`),
|
|
@@ -9389,7 +9389,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9389
9389
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9390
9390
|
a.renderKey === "wind-particle" && U.key === "wind-particle" ? (y(), M("div", An, [
|
|
9391
9391
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
9392
|
-
|
|
9392
|
+
u(z, {
|
|
9393
9393
|
modelValue: a.showWindParticle,
|
|
9394
9394
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
9395
9395
|
label: "",
|
|
@@ -9404,7 +9404,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9404
9404
|
])) : R("", !0),
|
|
9405
9405
|
a.renderKey === "current-particle" && U.key === "current-particle" ? (y(), M("div", Rn, [
|
|
9406
9406
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
9407
|
-
|
|
9407
|
+
u(z, {
|
|
9408
9408
|
modelValue: a.showCurrentParticle,
|
|
9409
9409
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
9410
9410
|
label: "",
|
|
@@ -9429,7 +9429,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9429
9429
|
disabled: !a.autoActive
|
|
9430
9430
|
}, {
|
|
9431
9431
|
default: f(() => [
|
|
9432
|
-
|
|
9432
|
+
u(s, {
|
|
9433
9433
|
density: "compact",
|
|
9434
9434
|
height: "30",
|
|
9435
9435
|
value: "sig-wave",
|
|
@@ -9439,11 +9439,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
9439
9439
|
disabled: !a.autoActive
|
|
9440
9440
|
}, {
|
|
9441
9441
|
default: f(() => [
|
|
9442
|
-
|
|
9442
|
+
$(m(t.$t("weather.significant")), 1)
|
|
9443
9443
|
]),
|
|
9444
9444
|
_: 1
|
|
9445
9445
|
}, 8, ["color", "disabled"]),
|
|
9446
|
-
|
|
9446
|
+
u(s, {
|
|
9447
9447
|
density: "compact",
|
|
9448
9448
|
height: "30",
|
|
9449
9449
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -9453,7 +9453,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9453
9453
|
value: "swell"
|
|
9454
9454
|
}, {
|
|
9455
9455
|
default: f(() => [
|
|
9456
|
-
|
|
9456
|
+
$(m(t.$t("weather.swell")), 1)
|
|
9457
9457
|
]),
|
|
9458
9458
|
_: 1
|
|
9459
9459
|
}, 8, ["color", "disabled"])
|
|
@@ -9472,7 +9472,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9472
9472
|
disabled: !a.autoActive
|
|
9473
9473
|
}, {
|
|
9474
9474
|
default: f(() => [
|
|
9475
|
-
|
|
9475
|
+
u(s, {
|
|
9476
9476
|
density: "compact",
|
|
9477
9477
|
height: "30",
|
|
9478
9478
|
value: "ice-cover",
|
|
@@ -9482,11 +9482,11 @@ function ic(t, e, o, i, a, r) {
|
|
|
9482
9482
|
disabled: !a.autoActive
|
|
9483
9483
|
}, {
|
|
9484
9484
|
default: f(() => [
|
|
9485
|
-
|
|
9485
|
+
$(m(t.$t("weather.coverage")), 1)
|
|
9486
9486
|
]),
|
|
9487
9487
|
_: 1
|
|
9488
9488
|
}, 8, ["color", "disabled"]),
|
|
9489
|
-
|
|
9489
|
+
u(s, {
|
|
9490
9490
|
density: "compact",
|
|
9491
9491
|
height: "30",
|
|
9492
9492
|
class: "w-50 text-none px-2 text-body-1",
|
|
@@ -9496,7 +9496,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9496
9496
|
value: "ice-thickness"
|
|
9497
9497
|
}, {
|
|
9498
9498
|
default: f(() => [
|
|
9499
|
-
|
|
9499
|
+
$(m(t.$t("weather.thickness")), 1)
|
|
9500
9500
|
]),
|
|
9501
9501
|
_: 1
|
|
9502
9502
|
}, 8, ["color", "disabled"])
|
|
@@ -9510,39 +9510,39 @@ function ic(t, e, o, i, a, r) {
|
|
|
9510
9510
|
]),
|
|
9511
9511
|
_: 1
|
|
9512
9512
|
}),
|
|
9513
|
-
|
|
9513
|
+
u(w, {
|
|
9514
9514
|
class: "block-bg mx-auto mb-3",
|
|
9515
9515
|
elevation: "0"
|
|
9516
9516
|
}, {
|
|
9517
9517
|
default: f(() => [
|
|
9518
|
-
|
|
9518
|
+
u(_, { class: "border-b-thin" }, {
|
|
9519
9519
|
default: f(() => [
|
|
9520
|
-
|
|
9520
|
+
u(g, {
|
|
9521
9521
|
class: "text-subtitle-1 font-weight-medium",
|
|
9522
9522
|
style: { "font-size": "16px !important" }
|
|
9523
9523
|
}, {
|
|
9524
9524
|
default: f(() => [
|
|
9525
|
-
|
|
9525
|
+
$(m(t.$t("weather.forecastModel")), 1)
|
|
9526
9526
|
]),
|
|
9527
9527
|
_: 1
|
|
9528
9528
|
})
|
|
9529
9529
|
]),
|
|
9530
9530
|
_: 1
|
|
9531
9531
|
}),
|
|
9532
|
-
|
|
9532
|
+
u(h, { class: "" }, {
|
|
9533
9533
|
default: f(() => {
|
|
9534
|
-
var U, te, Fe, Ae, ge, Ie, W, fe, oe, re,
|
|
9534
|
+
var U, te, Fe, Ae, ge, Ie, W, fe, oe, re, Ne, He, Ue, E, be, Re, Be, Ee, j, We, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Nt, Bt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9535
9535
|
return [
|
|
9536
9536
|
l("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
9537
9537
|
l("div", Nn, m((Fe = (te = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Ie = (ge = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Ie.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
9538
9538
|
l("div", Bn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9539
|
-
l("div", En, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ue = (He = (
|
|
9540
|
-
l("div", jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((
|
|
9539
|
+
l("div", En, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ue = (He = (Ne = a.models) == null ? void 0 : Ne.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ue.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9540
|
+
l("div", jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Be = (Re = (be = a.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Be.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
9541
9541
|
l("div", Fn, m((G = (We = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : We.ECMWF) == null ? void 0 : G.source) + " " + m((Ke = (Xe = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Xe.ECMWF) == null ? void 0 : Ke.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = ($e = (ze = a.models) == null ? void 0 : ze.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
9542
9542
|
l("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9543
9543
|
l("div", Un, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
9544
9544
|
l("div", Wn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((st = (lt = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : lt.meta) == null ? void 0 : st.initialisationTime)), 1),
|
|
9545
|
-
|
|
9545
|
+
u(b),
|
|
9546
9546
|
l("div", Gn, m(t.$t("weather.wave")), 1),
|
|
9547
9547
|
l("div", Vn, m((dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.source) + " " + m((gt = (ut = (pt = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
|
|
9548
9548
|
l("div", Zn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -9552,7 +9552,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9552
9552
|
l("div", Kn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9553
9553
|
l("div", $n, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
|
|
9554
9554
|
l("div", Jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
|
|
9555
|
-
|
|
9555
|
+
u(b),
|
|
9556
9556
|
l("div", Qn, m(t.$t("weather.currents")), 1),
|
|
9557
9557
|
l("div", ec, m((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + m((no = (so = (lo = (ro = a.models) == null ? void 0 : ro.marine) == null ? void 0 : lo.current) == null ? void 0 : so.ECMWF) == null ? void 0 : no.spatialResolution) + m(t.$t("units.km")) + " " + m((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + m(t.$t("units.days")), 1),
|
|
9558
9558
|
l("div", tc, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -9584,7 +9584,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9584
9584
|
"menu-toggle": o.menuToggle,
|
|
9585
9585
|
"active-weather-layers": a.activeWeatherLayers
|
|
9586
9586
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
9587
|
-
o.map ? (y(), O(
|
|
9587
|
+
o.map ? (y(), O(L, B({
|
|
9588
9588
|
key: 3,
|
|
9589
9589
|
map: o.map,
|
|
9590
9590
|
"map-feather": o.mapFeather,
|
|
@@ -9650,7 +9650,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9650
9650
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
9651
9651
|
"menu-toggle": o.menuToggle
|
|
9652
9652
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9653
|
-
o.map ? (y(), O(
|
|
9653
|
+
o.map ? (y(), O(K, B({
|
|
9654
9654
|
key: 13,
|
|
9655
9655
|
viewport: a.viewport,
|
|
9656
9656
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve.visibility,
|
|
@@ -9988,19 +9988,19 @@ class Ya {
|
|
|
9988
9988
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
9989
9989
|
for (const c of a) {
|
|
9990
9990
|
let n = Lo.find((h) => {
|
|
9991
|
-
var b, w,
|
|
9992
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9993
|
-
}),
|
|
9994
|
-
var b, w,
|
|
9995
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9991
|
+
var b, w, z;
|
|
9992
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
9993
|
+
}), p = Po.find((h) => {
|
|
9994
|
+
var b, w, z;
|
|
9995
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((z = h.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
9996
9996
|
});
|
|
9997
9997
|
n = n || Lo.find((h) => {
|
|
9998
9998
|
var b, w;
|
|
9999
|
-
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w =
|
|
10000
|
-
}),
|
|
9999
|
+
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = p == null ? void 0 : p.alias) == null ? void 0 : w.toLowerCase());
|
|
10000
|
+
}), p = p || Po.find((h) => {
|
|
10001
10001
|
var b, w;
|
|
10002
10002
|
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
10003
|
-
}), n = n || Lo[0],
|
|
10003
|
+
}), n = n || Lo[0], p = p || Po[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
|
|
10004
10004
|
}
|
|
10005
10005
|
return {
|
|
10006
10006
|
weatherModels: r.join(","),
|
|
@@ -10017,21 +10017,21 @@ class Ya {
|
|
|
10017
10017
|
}), a;
|
|
10018
10018
|
}
|
|
10019
10019
|
static pickHourly(e, o) {
|
|
10020
|
-
var i, a, r, s, c, n,
|
|
10021
|
-
const W = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(),
|
|
10022
|
-
if (W.isBetween(
|
|
10023
|
-
const E = W.utc().diff(
|
|
10020
|
+
var i, a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce, U, te, Fe, Ae, ge, Ie;
|
|
10021
|
+
const W = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Ne = re.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), He = re.clone().add((h = (p = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Ue = [];
|
|
10022
|
+
if (W.isBetween(Ne, He, "millisecond", "[]")) {
|
|
10023
|
+
const E = W.utc().diff(Ne, "h", !1);
|
|
10024
10024
|
let be, Re;
|
|
10025
10025
|
if (fe) {
|
|
10026
|
-
let
|
|
10026
|
+
let Be = 0, Ee = 0, j = 0;
|
|
10027
10027
|
for (const We of fe) {
|
|
10028
10028
|
const G = We == null ? void 0 : We.hourly;
|
|
10029
10029
|
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
10030
|
-
|
|
10030
|
+
Be += (b = G == null ? void 0 : G.precipitation) == null ? void 0 : b.at(ze);
|
|
10031
10031
|
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
10032
|
-
|
|
10032
|
+
Ee += (w = G == null ? void 0 : G.precipitation) == null ? void 0 : w.at(ze);
|
|
10033
10033
|
for (let ze = E - (E - 1) % 12; ze <= E; ze++)
|
|
10034
|
-
j += (
|
|
10034
|
+
j += (z = G == null ? void 0 : G.precipitation) == null ? void 0 : z.at(ze);
|
|
10035
10035
|
be = {
|
|
10036
10036
|
temp: (g = G == null ? void 0 : G.temperature_2m) == null ? void 0 : g.at(E),
|
|
10037
10037
|
apparentTemp: (_ = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : _.at(E),
|
|
@@ -10041,11 +10041,11 @@ class Ya {
|
|
|
10041
10041
|
probability: (I = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10042
10042
|
sum: (C = G == null ? void 0 : G.precipitation) == null ? void 0 : C.at(E),
|
|
10043
10043
|
sum1Hours: (k = G == null ? void 0 : G.precipitation) == null ? void 0 : k.at(E),
|
|
10044
|
-
sum3Hours: Math.round(
|
|
10045
|
-
sum6Hours: Math.round(
|
|
10044
|
+
sum3Hours: Math.round(Be * 100) / 100,
|
|
10045
|
+
sum6Hours: Math.round(Ee * 100) / 100,
|
|
10046
10046
|
sum12Hours: Math.round(j * 100) / 100
|
|
10047
10047
|
},
|
|
10048
|
-
pmsl: (
|
|
10048
|
+
pmsl: (L = G == null ? void 0 : G.pressure_msl) == null ? void 0 : L.at(E),
|
|
10049
10049
|
psurf: (T = G == null ? void 0 : G.surface_pressure) == null ? void 0 : T.at(E),
|
|
10050
10050
|
code: (v = G == null ? void 0 : G.weather_code) == null ? void 0 : v.at(E),
|
|
10051
10051
|
visibility: this.m2nm((D = G == null ? void 0 : G.visibility) == null ? void 0 : D.at(E)),
|
|
@@ -10056,20 +10056,20 @@ class Ya {
|
|
|
10056
10056
|
bearing: ((Z = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((J = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : J.at(E)) + 180) % 360 : null,
|
|
10057
10057
|
gusts: (Q = G == null ? void 0 : G.wind_gusts_10m) == null ? void 0 : Q.at(E)
|
|
10058
10058
|
},
|
|
10059
|
-
isDay: (
|
|
10059
|
+
isDay: (K = G == null ? void 0 : G.is_day) == null ? void 0 : K.at(E)
|
|
10060
10060
|
};
|
|
10061
10061
|
const { name: qe, url: Xe, bg: Ke } = this.parseWeatherCode(be.code, be.isDay);
|
|
10062
10062
|
be.name = qe, be.url = Xe, be.bg = Ke, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), Ue.push({
|
|
10063
|
-
utc:
|
|
10063
|
+
utc: Ne.add(E, "h").format(),
|
|
10064
10064
|
model: We.model,
|
|
10065
10065
|
weather: { ...be }
|
|
10066
10066
|
});
|
|
10067
10067
|
}
|
|
10068
10068
|
}
|
|
10069
10069
|
if (oe) {
|
|
10070
|
-
let
|
|
10071
|
-
for (const
|
|
10072
|
-
const j =
|
|
10070
|
+
let Be = 0;
|
|
10071
|
+
for (const Ee of oe) {
|
|
10072
|
+
const j = Ee == null ? void 0 : Ee.hourly;
|
|
10073
10073
|
Re = {
|
|
10074
10074
|
wave: {
|
|
10075
10075
|
sig: {
|
|
@@ -10101,14 +10101,14 @@ class Ya {
|
|
|
10101
10101
|
},
|
|
10102
10102
|
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
10103
10103
|
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
10104
|
-
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(Ue[
|
|
10104
|
+
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(Ue[Be], Re), Be++;
|
|
10105
10105
|
}
|
|
10106
10106
|
}
|
|
10107
10107
|
}
|
|
10108
10108
|
return Ue;
|
|
10109
10109
|
}
|
|
10110
10110
|
static toLegacy(e) {
|
|
10111
|
-
var o, i, a, r, s, c, n,
|
|
10111
|
+
var o, i, a, r, s, c, n, p, h, b;
|
|
10112
10112
|
return {
|
|
10113
10113
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
10114
10114
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -10118,7 +10118,7 @@ class Ya {
|
|
|
10118
10118
|
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
10119
10119
|
},
|
|
10120
10120
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
10121
|
-
code: (
|
|
10121
|
+
code: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.code,
|
|
10122
10122
|
name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
|
|
10123
10123
|
url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
|
|
10124
10124
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -10130,7 +10130,7 @@ class Ya {
|
|
|
10130
10130
|
};
|
|
10131
10131
|
}
|
|
10132
10132
|
static pickDaily(e, o) {
|
|
10133
|
-
var i, a, r, s, c, n,
|
|
10133
|
+
var i, a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve;
|
|
10134
10134
|
const Me = typeof o == "string" ? S(o) : o, Ce = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, te = S((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (s = Ce == null ? void 0 : Ce[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ae = [];
|
|
10135
10135
|
if (Me.isBetween(te, Fe, "millisecond", "[]")) {
|
|
10136
10136
|
let ge, Ie;
|
|
@@ -10139,14 +10139,14 @@ class Ya {
|
|
|
10139
10139
|
for (const fe of Ce) {
|
|
10140
10140
|
const oe = fe.daily;
|
|
10141
10141
|
ge = {
|
|
10142
|
-
code: (
|
|
10142
|
+
code: (p = oe.weather_code) == null ? void 0 : p.at(W),
|
|
10143
10143
|
temp: {
|
|
10144
10144
|
max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(W),
|
|
10145
10145
|
min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
10146
10146
|
mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10147
10147
|
},
|
|
10148
10148
|
apparentTemp: {
|
|
10149
|
-
max: (
|
|
10149
|
+
max: (z = oe.apparent_temperature_max) == null ? void 0 : z.at(W),
|
|
10150
10150
|
min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(W)
|
|
10151
10151
|
},
|
|
10152
10152
|
precip: {
|
|
@@ -10158,7 +10158,7 @@ class Ya {
|
|
|
10158
10158
|
probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(W)
|
|
10159
10159
|
},
|
|
10160
10160
|
rh: {
|
|
10161
|
-
max: (
|
|
10161
|
+
max: (L = oe.relative_humidity_2m_max) == null ? void 0 : L.at(W),
|
|
10162
10162
|
min: (T = oe.relative_humidity_2m_min) == null ? void 0 : T.at(W),
|
|
10163
10163
|
mean: (v = oe.relative_humidity_2m_mean) == null ? void 0 : v.at(W)
|
|
10164
10164
|
},
|
|
@@ -10170,8 +10170,8 @@ class Ya {
|
|
|
10170
10170
|
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((J = oe.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10171
10171
|
}
|
|
10172
10172
|
};
|
|
10173
|
-
const { name: re, url:
|
|
10174
|
-
ge.name = re, ge.url =
|
|
10173
|
+
const { name: re, url: Ne, bg: He } = this.parseWeatherCode(ge.code, !0);
|
|
10174
|
+
ge.name = re, ge.url = Ne, ge.bg = He, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ae.push({
|
|
10175
10175
|
utc: te.add(W, "d").utc().format(),
|
|
10176
10176
|
model: fe.model,
|
|
10177
10177
|
weather: { ...ge }
|
|
@@ -10185,7 +10185,7 @@ class Ya {
|
|
|
10185
10185
|
wave: {
|
|
10186
10186
|
sig: {
|
|
10187
10187
|
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(W),
|
|
10188
|
-
degree: (
|
|
10188
|
+
degree: (K = re.wave_direction_dominant) == null ? void 0 : K.at(W),
|
|
10189
10189
|
period: (le = re.wave_period_max) == null ? void 0 : le.at(W),
|
|
10190
10190
|
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(W)) !== null ? (((pe = re.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
|
|
10191
10191
|
},
|
|
@@ -10813,16 +10813,16 @@ const lc = {
|
|
|
10813
10813
|
}
|
|
10814
10814
|
});
|
|
10815
10815
|
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
10816
|
-
const
|
|
10817
|
-
await De.get(
|
|
10816
|
+
const p = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
|
|
10817
|
+
await De.get(p.tropicals, {
|
|
10818
10818
|
headers: {
|
|
10819
10819
|
Authorization: this.defaultMeteoToken,
|
|
10820
10820
|
key: "tropicals"
|
|
10821
10821
|
},
|
|
10822
|
-
responseType: /\.(jpg|png)$/.test(
|
|
10822
|
+
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
10823
10823
|
}).then((h) => {
|
|
10824
|
-
var
|
|
10825
|
-
const b = Za.convert2Geojson(((
|
|
10824
|
+
var z, g, _;
|
|
10825
|
+
const b = Za.convert2Geojson(((z = h == null ? void 0 : h.data) == null ? void 0 : z.data) || (h == null ? void 0 : h.data));
|
|
10826
10826
|
((_ = (g = h == null ? void 0 : h.config) == null ? void 0 : g.headers) == null ? void 0 : _.key) && b && (this.tropicals = {
|
|
10827
10827
|
data: b,
|
|
10828
10828
|
active: !0,
|
|
@@ -10841,7 +10841,7 @@ const lc = {
|
|
|
10841
10841
|
handleRefresh() {
|
|
10842
10842
|
var e, o;
|
|
10843
10843
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10844
|
-
var a, r, s, c, n,
|
|
10844
|
+
var a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v;
|
|
10845
10845
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10846
10846
|
let D = "";
|
|
10847
10847
|
switch (!0) {
|
|
@@ -10851,13 +10851,13 @@ const lc = {
|
|
|
10851
10851
|
case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((n = i.properties) == null ? void 0 : n.kts) < 47):
|
|
10852
10852
|
D = "TS";
|
|
10853
10853
|
break;
|
|
10854
|
-
case (((
|
|
10854
|
+
case (((p = i.properties.wind) == null ? void 0 : p.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
|
|
10855
10855
|
D = "STS";
|
|
10856
10856
|
break;
|
|
10857
10857
|
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
|
|
10858
10858
|
D = "TY";
|
|
10859
10859
|
break;
|
|
10860
|
-
case (((
|
|
10860
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
|
|
10861
10861
|
D = "STY";
|
|
10862
10862
|
break;
|
|
10863
10863
|
case (((_ = i.properties.wind) == null ? void 0 : _.kts) >= 94 || ((P = i.properties) == null ? void 0 : P.kts) >= 94):
|
|
@@ -10869,15 +10869,15 @@ const lc = {
|
|
|
10869
10869
|
}
|
|
10870
10870
|
i.properties.level = D;
|
|
10871
10871
|
}
|
|
10872
|
-
((N = i.geometry) == null ? void 0 : N.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (C = S(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((
|
|
10872
|
+
((N = i.geometry) == null ? void 0 : N.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (C = S(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((L = i.geometry) == null ? void 0 : L.type) === "Point" && (i.properties.Name = ((v = (T = i.properties.name) == null ? void 0 : T.trim()) == null ? void 0 : v.replace(/^./, (D) => D.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
10873
10873
|
}), this.handleInit();
|
|
10874
10874
|
},
|
|
10875
10875
|
handleInit() {
|
|
10876
|
-
var t, e, o, i, a, r, s, c, n,
|
|
10877
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (
|
|
10876
|
+
var t, e, o, i, a, r, s, c, n, p, h, b;
|
|
10877
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (p = this.$parent) == null ? void 0 : p.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
|
|
10878
10878
|
},
|
|
10879
10879
|
handleRender() {
|
|
10880
|
-
var t, e, o, i, a, r, s, c, n,
|
|
10880
|
+
var t, e, o, i, a, r, s, c, n, p;
|
|
10881
10881
|
if (this.tropicals && this.map) {
|
|
10882
10882
|
const h = (/* @__PURE__ */ new Date()).valueOf();
|
|
10883
10883
|
let b = 0, w = 0;
|
|
@@ -10964,7 +10964,7 @@ const lc = {
|
|
|
10964
10964
|
}
|
|
10965
10965
|
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
|
|
10966
10966
|
type: "geojson",
|
|
10967
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
10967
|
+
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
10968
10968
|
// cluster: true,
|
|
10969
10969
|
// clusterRadius: 10, // 聚合半径
|
|
10970
10970
|
}), this.map.addLayer({
|
|
@@ -11079,8 +11079,8 @@ const lc = {
|
|
|
11079
11079
|
"text-halo-width": 2
|
|
11080
11080
|
}
|
|
11081
11081
|
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
|
|
11082
|
-
const
|
|
11083
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11082
|
+
const z = Za.interpolate(this.tropicals, 1);
|
|
11083
|
+
this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
|
|
11084
11084
|
}
|
|
11085
11085
|
},
|
|
11086
11086
|
handleClear() {
|
|
@@ -11088,7 +11088,7 @@ const lc = {
|
|
|
11088
11088
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11089
11089
|
},
|
|
11090
11090
|
handleDateChange() {
|
|
11091
|
-
var t, e, o, i, a, r, s, c, n,
|
|
11091
|
+
var t, e, o, i, a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe;
|
|
11092
11092
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11093
11093
|
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((A) => A.properties.date === (ie == null ? void 0 : ie.format()) && !A.properties.disabled), ue = this.handleComputePolygons(ce), me = H.featureCollection([...ce]);
|
|
11094
11094
|
ue.forEach((A) => {
|
|
@@ -11126,10 +11126,10 @@ const lc = {
|
|
|
11126
11126
|
var Me;
|
|
11127
11127
|
return ve.properties.name === ((Me = A.properties) == null ? void 0 : Me.name);
|
|
11128
11128
|
})) == null ? void 0 : s.properties) == null ? void 0 : c.nameCn) || ((n = A.properties) == null ? void 0 : n.Name) || "-";
|
|
11129
|
-
A.properties.nameCn = Pe, A.properties.Name = ((h = (
|
|
11129
|
+
A.properties.nameCn = Pe, A.properties.Name = ((h = (p = A.properties.name) == null ? void 0 : p.trim()) == null ? void 0 : h.replace(/^./, (ve) => ve.toUpperCase())) || A.properties.nameCn, de.push(A);
|
|
11130
11130
|
}
|
|
11131
11131
|
let ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
11132
|
-
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((g = (
|
|
11132
|
+
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((g = (z = A.properties) == null ? void 0 : z.wind) != null && g.kts) ? ee = this.Theme.current.value.colors["tropicals-td"] : ((P = (_ = A.properties) == null ? void 0 : _.wind) == null ? void 0 : P.kts) >= 32 && ((I = (N = A.properties) == null ? void 0 : N.wind) == null ? void 0 : I.kts) < 47 ? ee = this.Theme.current.value.colors["tropicals-ts"] : ((k = (C = A.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 47 && ((T = (L = A.properties) == null ? void 0 : L.wind) == null ? void 0 : T.kts) < 63 ? ee = this.Theme.current.value.colors["tropicals-sts"] : ((D = (v = A.properties) == null ? void 0 : v.wind) == null ? void 0 : D.kts) >= 63 && ((V = (F = A.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? ee = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = A.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = A.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? ee = this.Theme.current.value.colors["tropicals-sty"] : ((le = (K = A.properties) == null ? void 0 : K.wind) == null ? void 0 : le.kts) >= 94 ? ee = this.Theme.current.value.colors["tropicals-super-ty"] : ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
11133
11133
|
const ye = `<svg t="1719918955501"
|
|
11134
11134
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11135
11135
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11154,7 +11154,7 @@ const lc = {
|
|
|
11154
11154
|
(se = this.map) != null && se.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
|
|
11155
11155
|
},
|
|
11156
11156
|
handleClick(t) {
|
|
11157
|
-
var a, r, s, c, n,
|
|
11157
|
+
var a, r, s, c, n, p, h, b, w, z, g;
|
|
11158
11158
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11159
11159
|
(_) => {
|
|
11160
11160
|
var P;
|
|
@@ -11168,11 +11168,11 @@ const lc = {
|
|
|
11168
11168
|
);
|
|
11169
11169
|
this.activeTropicals = {
|
|
11170
11170
|
name: ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.name) || "-",
|
|
11171
|
-
nameCn: ((
|
|
11171
|
+
nameCn: ((p = e == null ? void 0 : e.properties) == null ? void 0 : p.nameCn) || ((h = e == null ? void 0 : e.properties) == null ? void 0 : h.name) || "-",
|
|
11172
11172
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11173
11173
|
forecasts: o.map((_) => _.properties),
|
|
11174
11174
|
history: (w = i[0]) == null ? void 0 : w.properties,
|
|
11175
|
-
showCircle: (g = (
|
|
11175
|
+
showCircle: (g = (z = o[0]) == null ? void 0 : z.properties) == null ? void 0 : g.showCircle
|
|
11176
11176
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11177
11177
|
const _ = document.getElementById("idm-tropical-gl4-info");
|
|
11178
11178
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ke.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -11188,10 +11188,10 @@ const lc = {
|
|
|
11188
11188
|
var i, a, r, s, c, n;
|
|
11189
11189
|
t.disabled = !t.disabled;
|
|
11190
11190
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
11191
|
-
o.forEach((
|
|
11192
|
-
|
|
11193
|
-
}), this.interpolateData.forEach((
|
|
11194
|
-
|
|
11191
|
+
o.forEach((p) => {
|
|
11192
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
11193
|
+
}), this.interpolateData.forEach((p) => {
|
|
11194
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
11195
11195
|
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(H.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(o)), this.handleDateChange();
|
|
11196
11196
|
},
|
|
11197
11197
|
handleStrikeProbability(t) {
|
|
@@ -11268,14 +11268,14 @@ const lc = {
|
|
|
11268
11268
|
)[0];
|
|
11269
11269
|
this.hoverPoint = o == null ? void 0 : o.properties;
|
|
11270
11270
|
const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11271
|
-
(
|
|
11271
|
+
(p) => {
|
|
11272
11272
|
var h;
|
|
11273
|
-
return
|
|
11273
|
+
return p.geometry.type === "LineString" && p.properties.type === "forecast" && p.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
|
|
11274
11274
|
}
|
|
11275
11275
|
);
|
|
11276
11276
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (s = i == null ? void 0 : i[0]) == null ? void 0 : s.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
11277
|
-
const
|
|
11278
|
-
this.hoverMarker = new ke.Marker(
|
|
11277
|
+
const p = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
11278
|
+
this.hoverMarker = new ke.Marker(p).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
11279
11279
|
}));
|
|
11280
11280
|
},
|
|
11281
11281
|
handleLeave() {
|
|
@@ -11322,18 +11322,18 @@ const lc = {
|
|
|
11322
11322
|
class: "d-flex justify-start align-center"
|
|
11323
11323
|
}, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
11324
11324
|
function tm(t, e, o, i, a, r) {
|
|
11325
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"),
|
|
11325
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), p = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), z = x("v-divider");
|
|
11326
11326
|
return y(), M("div", sc, [
|
|
11327
11327
|
l("div", {
|
|
11328
11328
|
class: "menu-bar-box transition pa-1",
|
|
11329
11329
|
style: ae({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
|
|
11330
11330
|
}, [
|
|
11331
|
-
|
|
11331
|
+
u(c, {
|
|
11332
11332
|
text: t.$t("tropical.tropicals"),
|
|
11333
11333
|
location: "left"
|
|
11334
11334
|
}, {
|
|
11335
11335
|
activator: f(({ props: g }) => [
|
|
11336
|
-
|
|
11336
|
+
u(s, B(g, {
|
|
11337
11337
|
"min-width": "32",
|
|
11338
11338
|
width: "32",
|
|
11339
11339
|
height: "32",
|
|
@@ -11351,26 +11351,26 @@ function tm(t, e, o, i, a, r) {
|
|
|
11351
11351
|
}, 8, ["text"])
|
|
11352
11352
|
], 4),
|
|
11353
11353
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), M("div", nc, [
|
|
11354
|
-
|
|
11354
|
+
u(b, {
|
|
11355
11355
|
"min-width": "400",
|
|
11356
11356
|
elevation: "16",
|
|
11357
11357
|
"max-width": "500"
|
|
11358
11358
|
}, {
|
|
11359
11359
|
default: f(() => [
|
|
11360
|
-
|
|
11360
|
+
u(n, null, {
|
|
11361
11361
|
default: f(() => {
|
|
11362
|
-
var g, _, P, N, I, C, k,
|
|
11362
|
+
var g, _, P, N, I, C, k, L, T, v, D, F;
|
|
11363
11363
|
return [
|
|
11364
11364
|
l("div", cc, [
|
|
11365
11365
|
l("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.Name : ((_ = a.activeTropicals) == null ? void 0 : _.nameCn) || ((P = a.activeTropicals) == null ? void 0 : P.Name) || "-"), 1),
|
|
11366
11366
|
(I = (N = a.activeTropicals) == null ? void 0 : N.history) != null && I.level ? (y(), M("span", dc, ", " + m((k = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : k.level), 1)) : R("", !0)
|
|
11367
11367
|
]),
|
|
11368
|
-
|
|
11368
|
+
u(s, {
|
|
11369
11369
|
icon: "",
|
|
11370
11370
|
density: "compact",
|
|
11371
11371
|
variant: "plain",
|
|
11372
11372
|
class: "close",
|
|
11373
|
-
onClick:
|
|
11373
|
+
onClick: Oe(r.handleCloseInfoMarker, ["stop"])
|
|
11374
11374
|
}, {
|
|
11375
11375
|
default: f(() => e[4] || (e[4] = [
|
|
11376
11376
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
@@ -11380,16 +11380,16 @@ function tm(t, e, o, i, a, r) {
|
|
|
11380
11380
|
}, 8, ["onClick"]),
|
|
11381
11381
|
l("div", hc, [
|
|
11382
11382
|
l("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11383
|
-
l("span", null, m(r.computeTime(((T = (
|
|
11383
|
+
l("span", null, m(r.computeTime(((T = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : T.updated) || ((F = (D = (v = a.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : D.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
11384
11384
|
])
|
|
11385
11385
|
];
|
|
11386
11386
|
}),
|
|
11387
11387
|
_: 1
|
|
11388
11388
|
}),
|
|
11389
|
-
p
|
|
11390
|
-
|
|
11389
|
+
u(p),
|
|
11390
|
+
u(n, { class: "text-body-1" }, {
|
|
11391
11391
|
default: f(() => {
|
|
11392
|
-
var g, _, P, N, I, C, k,
|
|
11392
|
+
var g, _, P, N, I, C, k, L, T;
|
|
11393
11393
|
return [
|
|
11394
11394
|
l("div", uc, [
|
|
11395
11395
|
l("div", gc, [
|
|
@@ -11409,7 +11409,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11409
11409
|
]),
|
|
11410
11410
|
l("div", _c, [
|
|
11411
11411
|
l("label", kc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11412
|
-
l("span", null, m(((
|
|
11412
|
+
l("span", null, m(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
11413
11413
|
])
|
|
11414
11414
|
]),
|
|
11415
11415
|
l("div", zc, [
|
|
@@ -11422,10 +11422,10 @@ function tm(t, e, o, i, a, r) {
|
|
|
11422
11422
|
color: v.disabled ? "" : "primary",
|
|
11423
11423
|
"min-width": 30,
|
|
11424
11424
|
class: Ye(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11425
|
-
onClick:
|
|
11425
|
+
onClick: Oe((F) => r.handleForecastToggle(v), ["stop"])
|
|
11426
11426
|
}, {
|
|
11427
11427
|
default: f(() => [
|
|
11428
|
-
|
|
11428
|
+
$(m(v.model), 1)
|
|
11429
11429
|
]),
|
|
11430
11430
|
_: 2
|
|
11431
11431
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11435,22 +11435,22 @@ function tm(t, e, o, i, a, r) {
|
|
|
11435
11435
|
}),
|
|
11436
11436
|
_: 1
|
|
11437
11437
|
}),
|
|
11438
|
-
p
|
|
11439
|
-
|
|
11438
|
+
u(p),
|
|
11439
|
+
u(h, { class: "d-flex justify-space-between" }, {
|
|
11440
11440
|
default: f(() => [
|
|
11441
|
-
|
|
11441
|
+
u(s, {
|
|
11442
11442
|
density: "compact",
|
|
11443
11443
|
"prepend-icon": "",
|
|
11444
11444
|
variant: "text",
|
|
11445
11445
|
color: a.showLegend ? "primary" : "",
|
|
11446
11446
|
class: "text-none text-body-1",
|
|
11447
|
-
onClick: e[0] || (e[0] =
|
|
11447
|
+
onClick: e[0] || (e[0] = Oe((g) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11448
11448
|
}, {
|
|
11449
11449
|
prepend: f(() => e[5] || (e[5] = [
|
|
11450
11450
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
11451
11451
|
])),
|
|
11452
11452
|
default: f(() => [
|
|
11453
|
-
|
|
11453
|
+
$(" " + m(t.$t("weather.legend")), 1)
|
|
11454
11454
|
]),
|
|
11455
11455
|
_: 1
|
|
11456
11456
|
}, 8, ["color"]),
|
|
@@ -11460,22 +11460,22 @@ function tm(t, e, o, i, a, r) {
|
|
|
11460
11460
|
variant: "text",
|
|
11461
11461
|
density: "compact",
|
|
11462
11462
|
class: "text-none text-body-1",
|
|
11463
|
-
onClick: e[1] || (e[1] =
|
|
11463
|
+
onClick: e[1] || (e[1] = Oe((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11464
11464
|
}, {
|
|
11465
11465
|
default: f(() => [
|
|
11466
|
-
|
|
11466
|
+
$(m(t.$t("actions.notify")), 1)
|
|
11467
11467
|
]),
|
|
11468
11468
|
_: 1
|
|
11469
11469
|
})) : R("", !0),
|
|
11470
|
-
|
|
11470
|
+
u(s, {
|
|
11471
11471
|
variant: "text",
|
|
11472
11472
|
density: "compact",
|
|
11473
11473
|
"append-icon": "mdi-chevron-right",
|
|
11474
11474
|
class: "text-none text-body-1",
|
|
11475
|
-
onClick: e[2] || (e[2] =
|
|
11475
|
+
onClick: e[2] || (e[2] = Oe((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11476
11476
|
}, {
|
|
11477
11477
|
default: f(() => [
|
|
11478
|
-
|
|
11478
|
+
$(m(t.$t("actions.viewReport")), 1)
|
|
11479
11479
|
]),
|
|
11480
11480
|
_: 1
|
|
11481
11481
|
})
|
|
@@ -11487,9 +11487,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
11487
11487
|
_: 1
|
|
11488
11488
|
}),
|
|
11489
11489
|
l("div", Tc, [
|
|
11490
|
-
Ve(
|
|
11490
|
+
Ve(u(b, { elevation: "16" }, {
|
|
11491
11491
|
default: f(() => [
|
|
11492
|
-
|
|
11492
|
+
u(n, null, {
|
|
11493
11493
|
default: f(() => [
|
|
11494
11494
|
Ve(l("div", Sc, e[6] || (e[6] = [
|
|
11495
11495
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
@@ -11549,13 +11549,13 @@ function tm(t, e, o, i, a, r) {
|
|
|
11549
11549
|
])
|
|
11550
11550
|
])
|
|
11551
11551
|
])) : R("", !0),
|
|
11552
|
-
Ve(
|
|
11552
|
+
Ve(u(b, {
|
|
11553
11553
|
id: "tropicalHoverMarkerInfo",
|
|
11554
11554
|
elevation: "16",
|
|
11555
11555
|
"max-width": "280"
|
|
11556
11556
|
}, {
|
|
11557
11557
|
default: f(() => [
|
|
11558
|
-
|
|
11558
|
+
u(w, null, {
|
|
11559
11559
|
default: f(() => {
|
|
11560
11560
|
var g, _, P, N;
|
|
11561
11561
|
return [
|
|
@@ -11567,10 +11567,10 @@ function tm(t, e, o, i, a, r) {
|
|
|
11567
11567
|
}),
|
|
11568
11568
|
_: 1
|
|
11569
11569
|
}),
|
|
11570
|
-
|
|
11571
|
-
|
|
11570
|
+
u(z),
|
|
11571
|
+
u(n, { class: "text-body-1" }, {
|
|
11572
11572
|
default: f(() => {
|
|
11573
|
-
var g, _, P, N, I, C, k,
|
|
11573
|
+
var g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se;
|
|
11574
11574
|
return [
|
|
11575
11575
|
l("div", Rc, [
|
|
11576
11576
|
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), M("div", Oc, [
|
|
@@ -11587,7 +11587,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11587
11587
|
])) : R("", !0),
|
|
11588
11588
|
((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), M("div", Hc, [
|
|
11589
11589
|
l("label", Uc, m(t.$t("tropical.model")) + " : ", 1),
|
|
11590
|
-
l("span", null, m(((
|
|
11590
|
+
l("span", null, m(((L = a.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
|
|
11591
11591
|
])) : R("", !0),
|
|
11592
11592
|
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Wc, [
|
|
11593
11593
|
l("label", Gc, m(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -11605,7 +11605,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11605
11605
|
l("label", Kc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11606
11606
|
l("span", null, m(((Q = JSON.parse((J = a.hoverPoint) == null ? void 0 : J.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
11607
11607
|
])) : R("", !0),
|
|
11608
|
-
((
|
|
11608
|
+
((K = a.hoverPoint) == null ? void 0 : K.type) === "history" ? (y(), M("div", $c, [
|
|
11609
11609
|
l("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11610
11610
|
l("span", null, m(((se = JSON.parse((le = a.hoverPoint) == null ? void 0 : le.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
|
|
11611
11611
|
])) : R("", !0),
|
|
@@ -11816,9 +11816,9 @@ const om = {
|
|
|
11816
11816
|
style: { height: "56px" }
|
|
11817
11817
|
};
|
|
11818
11818
|
function sm(t, e, o, i, a, r) {
|
|
11819
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"),
|
|
11819
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), p = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), z = x("VCardActions"), g = x("VCard");
|
|
11820
11820
|
return y(), M("div", am, [
|
|
11821
|
-
|
|
11821
|
+
u(s, {
|
|
11822
11822
|
text: "",
|
|
11823
11823
|
height: o.height,
|
|
11824
11824
|
width: o.width,
|
|
@@ -11826,7 +11826,7 @@ function sm(t, e, o, i, a, r) {
|
|
|
11826
11826
|
onClick: r.handleOpenDatePicker
|
|
11827
11827
|
}, {
|
|
11828
11828
|
default: f(() => [
|
|
11829
|
-
|
|
11829
|
+
$(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
11830
11830
|
]),
|
|
11831
11831
|
_: 1
|
|
11832
11832
|
}, 8, ["height", "width", "onClick"]),
|
|
@@ -11836,10 +11836,10 @@ function sm(t, e, o, i, a, r) {
|
|
|
11836
11836
|
style: ae(r.getStyle)
|
|
11837
11837
|
}, {
|
|
11838
11838
|
default: f(() => [
|
|
11839
|
-
|
|
11839
|
+
u(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
11840
11840
|
default: f(() => [
|
|
11841
11841
|
l("div", im, [
|
|
11842
|
-
|
|
11842
|
+
u(c, {
|
|
11843
11843
|
modelValue: a.currentDate,
|
|
11844
11844
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.currentDate = _),
|
|
11845
11845
|
min: a.minDate,
|
|
@@ -11853,13 +11853,13 @@ function sm(t, e, o, i, a, r) {
|
|
|
11853
11853
|
"onUpdate:month": r.handleUpdateMonth
|
|
11854
11854
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
11855
11855
|
]),
|
|
11856
|
-
|
|
11856
|
+
u(n, {
|
|
11857
11857
|
class: "h-100",
|
|
11858
11858
|
vertical: ""
|
|
11859
11859
|
}),
|
|
11860
11860
|
l("div", rm, [
|
|
11861
11861
|
l("div", lm, m(a.currentTime), 1),
|
|
11862
|
-
|
|
11862
|
+
u(b, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
11863
11863
|
default: f(() => [
|
|
11864
11864
|
(y(!0), M(we, null, _e(r.hourOptions, (_, P) => (y(), O(h, {
|
|
11865
11865
|
key: P,
|
|
@@ -11871,12 +11871,12 @@ function sm(t, e, o, i, a, r) {
|
|
|
11871
11871
|
"min-height": "26"
|
|
11872
11872
|
}, {
|
|
11873
11873
|
default: f(() => [
|
|
11874
|
-
p
|
|
11874
|
+
u(p, {
|
|
11875
11875
|
class: "text-body-2 font-weight-600 text-center",
|
|
11876
11876
|
onClick: (N) => a.currentTime = _
|
|
11877
11877
|
}, {
|
|
11878
11878
|
default: f(() => [
|
|
11879
|
-
|
|
11879
|
+
$(m(_), 1)
|
|
11880
11880
|
]),
|
|
11881
11881
|
_: 2
|
|
11882
11882
|
}, 1032, ["onClick"])
|
|
@@ -11890,24 +11890,24 @@ function sm(t, e, o, i, a, r) {
|
|
|
11890
11890
|
]),
|
|
11891
11891
|
_: 1
|
|
11892
11892
|
}),
|
|
11893
|
-
|
|
11894
|
-
|
|
11893
|
+
u(n),
|
|
11894
|
+
u(z, {
|
|
11895
11895
|
class: "justify-end pa-0 pr-4",
|
|
11896
11896
|
style: { height: "50px" }
|
|
11897
11897
|
}, {
|
|
11898
11898
|
default: f(() => [
|
|
11899
|
-
|
|
11899
|
+
u(s, {
|
|
11900
11900
|
size: "small",
|
|
11901
11901
|
variant: "tonal",
|
|
11902
11902
|
class: "text-none text-body-2",
|
|
11903
11903
|
onClick: r.handleCancelDate
|
|
11904
11904
|
}, {
|
|
11905
11905
|
default: f(() => [
|
|
11906
|
-
|
|
11906
|
+
$(m(t.$t("actions.cancel")), 1)
|
|
11907
11907
|
]),
|
|
11908
11908
|
_: 1
|
|
11909
11909
|
}, 8, ["onClick"]),
|
|
11910
|
-
|
|
11910
|
+
u(s, {
|
|
11911
11911
|
size: "small",
|
|
11912
11912
|
variant: "flat",
|
|
11913
11913
|
color: "primary",
|
|
@@ -11915,7 +11915,7 @@ function sm(t, e, o, i, a, r) {
|
|
|
11915
11915
|
onClick: r.handleConfirmDate
|
|
11916
11916
|
}, {
|
|
11917
11917
|
default: f(() => [
|
|
11918
|
-
|
|
11918
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
11919
11919
|
]),
|
|
11920
11920
|
_: 1
|
|
11921
11921
|
}, 8, ["onClick"])
|
|
@@ -12174,10 +12174,10 @@ const nm = {
|
|
|
12174
12174
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
12175
12175
|
},
|
|
12176
12176
|
initTableData(t) {
|
|
12177
|
-
var o, i, a, r, s, c, n,
|
|
12177
|
+
var o, i, a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye;
|
|
12178
12178
|
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;
|
|
12179
12179
|
const e = ((s = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
12180
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((
|
|
12180
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((T = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (ce = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((me = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ye = e == null ? void 0 : e.weather) == null ? void 0 : ye.url;
|
|
12181
12181
|
},
|
|
12182
12182
|
handleBind() {
|
|
12183
12183
|
var t, e;
|
|
@@ -12286,18 +12286,18 @@ const nm = {
|
|
|
12286
12286
|
"aria-hidden": "true"
|
|
12287
12287
|
}, qm = ["xlink:href"];
|
|
12288
12288
|
function Xm(t, e, o, i, a, r) {
|
|
12289
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"),
|
|
12289
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), p = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), z = x("DateTimePicker"), g = x("VBtnToggle"), _ = x("VCardText"), P = x("VCardActions"), N = x("VForm"), I = x("VCard"), C = x("VIcon");
|
|
12290
12290
|
return y(), M("div", cm, [
|
|
12291
12291
|
l("div", {
|
|
12292
12292
|
class: "menu-bar-box transition pa-1",
|
|
12293
12293
|
style: ae({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
12294
12294
|
}, [
|
|
12295
|
-
|
|
12295
|
+
u(c, {
|
|
12296
12296
|
text: t.$t("spot.spotsMeteo"),
|
|
12297
12297
|
location: "left"
|
|
12298
12298
|
}, {
|
|
12299
12299
|
activator: f(({ props: k }) => [
|
|
12300
|
-
|
|
12300
|
+
u(s, B(k, {
|
|
12301
12301
|
"min-width": "32",
|
|
12302
12302
|
width: "32",
|
|
12303
12303
|
height: "32",
|
|
@@ -12320,12 +12320,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12320
12320
|
style: ae({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
12321
12321
|
}, {
|
|
12322
12322
|
default: f(() => [
|
|
12323
|
-
|
|
12323
|
+
u(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12324
12324
|
default: f(() => [
|
|
12325
12325
|
l("div", mm, [
|
|
12326
12326
|
l("div", dm, m(t.$t("spot.spotWeather")), 1)
|
|
12327
12327
|
]),
|
|
12328
|
-
|
|
12328
|
+
u(s, {
|
|
12329
12329
|
icon: "",
|
|
12330
12330
|
density: "compact",
|
|
12331
12331
|
variant: "plain",
|
|
@@ -12341,15 +12341,15 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12341
12341
|
]),
|
|
12342
12342
|
_: 1
|
|
12343
12343
|
}),
|
|
12344
|
-
p
|
|
12345
|
-
|
|
12344
|
+
u(p),
|
|
12345
|
+
u(N, {
|
|
12346
12346
|
ref: "spotForm",
|
|
12347
12347
|
autocomplete: "off",
|
|
12348
12348
|
class: "form-box",
|
|
12349
|
-
onSubmit:
|
|
12349
|
+
onSubmit: Oe(r.submitForm, ["prevent"])
|
|
12350
12350
|
}, {
|
|
12351
12351
|
default: f(() => [
|
|
12352
|
-
|
|
12352
|
+
u(_, { class: "text-body-1 py-1" }, {
|
|
12353
12353
|
default: f(() => [
|
|
12354
12354
|
l("div", hm, [
|
|
12355
12355
|
(y(), M("svg", pm, [
|
|
@@ -12359,14 +12359,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12359
12359
|
])),
|
|
12360
12360
|
l("div", null, m(t.$t("spot.lng")), 1)
|
|
12361
12361
|
]),
|
|
12362
|
-
|
|
12362
|
+
u(w, { class: "ma-0" }, {
|
|
12363
12363
|
default: f(() => [
|
|
12364
|
-
|
|
12364
|
+
u(b, {
|
|
12365
12365
|
cols: "4",
|
|
12366
12366
|
class: "pa-0 d-flex"
|
|
12367
12367
|
}, {
|
|
12368
12368
|
default: f(() => [
|
|
12369
|
-
|
|
12369
|
+
u(h, {
|
|
12370
12370
|
modelValue: a.form.lngDegree,
|
|
12371
12371
|
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
12372
12372
|
rules: a.formRules.lngDegree,
|
|
@@ -12381,12 +12381,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12381
12381
|
_: 1,
|
|
12382
12382
|
__: [10]
|
|
12383
12383
|
}),
|
|
12384
|
-
|
|
12384
|
+
u(b, {
|
|
12385
12385
|
cols: "6",
|
|
12386
12386
|
class: "pa-0 d-flex"
|
|
12387
12387
|
}, {
|
|
12388
12388
|
default: f(() => [
|
|
12389
|
-
|
|
12389
|
+
u(h, {
|
|
12390
12390
|
modelValue: a.form.lngMinute,
|
|
12391
12391
|
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
12392
12392
|
rules: a.formRules.lngMinute,
|
|
@@ -12402,12 +12402,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12402
12402
|
_: 1,
|
|
12403
12403
|
__: [11]
|
|
12404
12404
|
}),
|
|
12405
|
-
|
|
12405
|
+
u(b, {
|
|
12406
12406
|
cols: "2",
|
|
12407
12407
|
class: "pa-0"
|
|
12408
12408
|
}, {
|
|
12409
12409
|
default: f(() => [
|
|
12410
|
-
|
|
12410
|
+
u(s, {
|
|
12411
12411
|
variant: "outlined",
|
|
12412
12412
|
density: "compact",
|
|
12413
12413
|
width: "32",
|
|
@@ -12418,7 +12418,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12418
12418
|
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
12419
12419
|
}, {
|
|
12420
12420
|
default: f(() => [
|
|
12421
|
-
|
|
12421
|
+
$(m(a.form.lngDirection), 1)
|
|
12422
12422
|
]),
|
|
12423
12423
|
_: 1
|
|
12424
12424
|
})
|
|
@@ -12436,14 +12436,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12436
12436
|
])),
|
|
12437
12437
|
l("div", null, m(t.$t("spot.lat")), 1)
|
|
12438
12438
|
]),
|
|
12439
|
-
|
|
12439
|
+
u(w, { class: "ma-0" }, {
|
|
12440
12440
|
default: f(() => [
|
|
12441
|
-
|
|
12441
|
+
u(b, {
|
|
12442
12442
|
cols: "4",
|
|
12443
12443
|
class: "pa-0 d-flex"
|
|
12444
12444
|
}, {
|
|
12445
12445
|
default: f(() => [
|
|
12446
|
-
|
|
12446
|
+
u(h, {
|
|
12447
12447
|
modelValue: a.form.latDegree,
|
|
12448
12448
|
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
12449
12449
|
rules: a.formRules.latDegree,
|
|
@@ -12461,12 +12461,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12461
12461
|
_: 1,
|
|
12462
12462
|
__: [12]
|
|
12463
12463
|
}),
|
|
12464
|
-
|
|
12464
|
+
u(b, {
|
|
12465
12465
|
cols: "6",
|
|
12466
12466
|
class: "pa-0 d-flex"
|
|
12467
12467
|
}, {
|
|
12468
12468
|
default: f(() => [
|
|
12469
|
-
|
|
12469
|
+
u(h, {
|
|
12470
12470
|
modelValue: a.form.latMinute,
|
|
12471
12471
|
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
12472
12472
|
rules: a.formRules.latMinute,
|
|
@@ -12482,12 +12482,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12482
12482
|
_: 1,
|
|
12483
12483
|
__: [13]
|
|
12484
12484
|
}),
|
|
12485
|
-
|
|
12485
|
+
u(b, {
|
|
12486
12486
|
cols: "2",
|
|
12487
12487
|
class: "pa-0"
|
|
12488
12488
|
}, {
|
|
12489
12489
|
default: f(() => [
|
|
12490
|
-
|
|
12490
|
+
u(s, {
|
|
12491
12491
|
variant: "outlined",
|
|
12492
12492
|
density: "compact",
|
|
12493
12493
|
width: "32",
|
|
@@ -12498,7 +12498,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12498
12498
|
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
12499
12499
|
}, {
|
|
12500
12500
|
default: f(() => [
|
|
12501
|
-
|
|
12501
|
+
$(m(a.form.latDirection), 1)
|
|
12502
12502
|
]),
|
|
12503
12503
|
_: 1
|
|
12504
12504
|
})
|
|
@@ -12516,14 +12516,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12516
12516
|
])),
|
|
12517
12517
|
l("div", null, m(t.$t("spot.dateTime")), 1)
|
|
12518
12518
|
]),
|
|
12519
|
-
|
|
12519
|
+
u(w, { class: "ma-0 mb-4" }, {
|
|
12520
12520
|
default: f(() => [
|
|
12521
|
-
|
|
12521
|
+
u(b, {
|
|
12522
12522
|
cols: "12",
|
|
12523
12523
|
class: "pa-0"
|
|
12524
12524
|
}, {
|
|
12525
12525
|
default: f(() => [
|
|
12526
|
-
|
|
12526
|
+
u(z, B({
|
|
12527
12527
|
"date-time": a.form.dateTime,
|
|
12528
12528
|
"time-zone": o.timeZone
|
|
12529
12529
|
}, t.$attrs, {
|
|
@@ -12543,14 +12543,14 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12543
12543
|
])),
|
|
12544
12544
|
l("div", null, m(t.$t("weather.forecastModel")), 1)
|
|
12545
12545
|
]),
|
|
12546
|
-
|
|
12546
|
+
u(w, { class: "ma-0 mb-2" }, {
|
|
12547
12547
|
default: f(() => [
|
|
12548
|
-
|
|
12548
|
+
u(b, {
|
|
12549
12549
|
cols: "12",
|
|
12550
12550
|
class: "pa-0"
|
|
12551
12551
|
}, {
|
|
12552
12552
|
default: f(() => [
|
|
12553
|
-
|
|
12553
|
+
u(g, {
|
|
12554
12554
|
modelValue: a.form.forecastModel,
|
|
12555
12555
|
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
12556
12556
|
class: "w-100",
|
|
@@ -12560,7 +12560,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12560
12560
|
group: ""
|
|
12561
12561
|
}, {
|
|
12562
12562
|
default: f(() => [
|
|
12563
|
-
|
|
12563
|
+
u(s, {
|
|
12564
12564
|
density: "compact",
|
|
12565
12565
|
height: "30",
|
|
12566
12566
|
value: "GFS",
|
|
@@ -12569,12 +12569,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12569
12569
|
"base-color": ""
|
|
12570
12570
|
}, {
|
|
12571
12571
|
default: f(() => e[14] || (e[14] = [
|
|
12572
|
-
|
|
12572
|
+
$("NOAA", -1)
|
|
12573
12573
|
])),
|
|
12574
12574
|
_: 1,
|
|
12575
12575
|
__: [14]
|
|
12576
12576
|
}, 8, ["class", "color"]),
|
|
12577
|
-
|
|
12577
|
+
u(s, {
|
|
12578
12578
|
density: "compact",
|
|
12579
12579
|
height: "30",
|
|
12580
12580
|
class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -12583,7 +12583,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12583
12583
|
value: "ECMWF"
|
|
12584
12584
|
}, {
|
|
12585
12585
|
default: f(() => e[15] || (e[15] = [
|
|
12586
|
-
|
|
12586
|
+
$("ECMWF", -1)
|
|
12587
12587
|
])),
|
|
12588
12588
|
_: 1,
|
|
12589
12589
|
__: [15]
|
|
@@ -12600,21 +12600,21 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12600
12600
|
]),
|
|
12601
12601
|
_: 1
|
|
12602
12602
|
}),
|
|
12603
|
-
p
|
|
12604
|
-
|
|
12603
|
+
u(p),
|
|
12604
|
+
u(P, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12605
12605
|
default: f(() => [
|
|
12606
|
-
|
|
12606
|
+
u(s, {
|
|
12607
12607
|
size: "small",
|
|
12608
12608
|
variant: "outlined",
|
|
12609
12609
|
class: "text-none text-body-1 btn-border-1 btn-bg-1",
|
|
12610
12610
|
onClick: r.cancelForm
|
|
12611
12611
|
}, {
|
|
12612
12612
|
default: f(() => [
|
|
12613
|
-
|
|
12613
|
+
$(m(t.$t("actions.clear")), 1)
|
|
12614
12614
|
]),
|
|
12615
12615
|
_: 1
|
|
12616
12616
|
}, 8, ["onClick"]),
|
|
12617
|
-
|
|
12617
|
+
u(s, {
|
|
12618
12618
|
ref: "submitSpot",
|
|
12619
12619
|
loading: a.loading,
|
|
12620
12620
|
size: "small",
|
|
@@ -12624,7 +12624,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12624
12624
|
class: "text-none text-body-1"
|
|
12625
12625
|
}, {
|
|
12626
12626
|
default: f(() => [
|
|
12627
|
-
|
|
12627
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
12628
12628
|
]),
|
|
12629
12629
|
_: 1
|
|
12630
12630
|
}, 8, ["loading"])
|
|
@@ -12644,18 +12644,18 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12644
12644
|
style: { width: "490px", "z-index": "9" }
|
|
12645
12645
|
}, {
|
|
12646
12646
|
default: f(() => [
|
|
12647
|
-
|
|
12647
|
+
u(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12648
12648
|
default: f(() => [
|
|
12649
12649
|
l("div", zm, [
|
|
12650
12650
|
e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
12651
12651
|
l("div", Lm, m(r.computePosition(a.form || a.currentHourData)), 1)
|
|
12652
12652
|
]),
|
|
12653
|
-
|
|
12653
|
+
u(s, {
|
|
12654
12654
|
class: "mr-n2",
|
|
12655
12655
|
density: "comfortable",
|
|
12656
12656
|
icon: "",
|
|
12657
12657
|
variant: "plain",
|
|
12658
|
-
onClick:
|
|
12658
|
+
onClick: Oe(r.handleCloseMeteo, ["stop"])
|
|
12659
12659
|
}, {
|
|
12660
12660
|
default: f(() => e[17] || (e[17] = [
|
|
12661
12661
|
l("i", {
|
|
@@ -12669,10 +12669,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12669
12669
|
]),
|
|
12670
12670
|
_: 1
|
|
12671
12671
|
}),
|
|
12672
|
-
p
|
|
12673
|
-
|
|
12672
|
+
u(p),
|
|
12673
|
+
u(_, { class: "text-body-1 px-0 py-1" }, {
|
|
12674
12674
|
default: f(() => {
|
|
12675
|
-
var k,
|
|
12675
|
+
var k, L;
|
|
12676
12676
|
return [
|
|
12677
12677
|
l("div", Pm, [
|
|
12678
12678
|
l("div", Cm, m(t.$t("time.time")), 1),
|
|
@@ -12683,7 +12683,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12683
12683
|
style: { width: "100px" },
|
|
12684
12684
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12685
12685
|
}, "LT", -1)),
|
|
12686
|
-
l("div", Mm, m(r.computedLocalTime((
|
|
12686
|
+
l("div", Mm, m(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
12687
12687
|
]),
|
|
12688
12688
|
l("div", Im, [
|
|
12689
12689
|
l("div", Dm, m(t.$t("weather.wind")), 1),
|
|
@@ -12707,12 +12707,12 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12707
12707
|
}),
|
|
12708
12708
|
_: 1
|
|
12709
12709
|
}),
|
|
12710
|
-
p
|
|
12711
|
-
|
|
12710
|
+
u(p),
|
|
12711
|
+
u(P, { class: "d-flex justify-space-between align-center" }, {
|
|
12712
12712
|
default: f(() => [
|
|
12713
12713
|
o.followList.some((k) => {
|
|
12714
|
-
var
|
|
12715
|
-
return ((
|
|
12714
|
+
var L, T;
|
|
12715
|
+
return ((L = k == null ? void 0 : k.coordinate) == null ? void 0 : L.lng) === a.form.lng && ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lat) === a.form.lat;
|
|
12716
12716
|
}) ? (y(), O(s, {
|
|
12717
12717
|
key: 0,
|
|
12718
12718
|
class: "text-none text-body-1",
|
|
@@ -12721,16 +12721,16 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12721
12721
|
density: "compact",
|
|
12722
12722
|
height: "32",
|
|
12723
12723
|
"prepend-icon": "mdi-star",
|
|
12724
|
-
onClick:
|
|
12724
|
+
onClick: Oe(r.handleCancelFollow, ["stop"])
|
|
12725
12725
|
}, {
|
|
12726
12726
|
prepend: f(() => [
|
|
12727
|
-
|
|
12727
|
+
u(C, {
|
|
12728
12728
|
color: "warning",
|
|
12729
12729
|
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
12730
12730
|
})
|
|
12731
12731
|
]),
|
|
12732
12732
|
default: f(() => [
|
|
12733
|
-
|
|
12733
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
12734
12734
|
]),
|
|
12735
12735
|
_: 1
|
|
12736
12736
|
}, 8, ["onClick"])) : (y(), O(s, {
|
|
@@ -12741,26 +12741,26 @@ function Xm(t, e, o, i, a, r) {
|
|
|
12741
12741
|
density: "compact",
|
|
12742
12742
|
height: "32",
|
|
12743
12743
|
"prepend-icon": "mdi-star-outline",
|
|
12744
|
-
onClick:
|
|
12744
|
+
onClick: Oe(r.handleFollow, ["stop"])
|
|
12745
12745
|
}, {
|
|
12746
12746
|
prepend: f(() => [
|
|
12747
|
-
|
|
12747
|
+
u(C, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
12748
12748
|
]),
|
|
12749
12749
|
default: f(() => [
|
|
12750
|
-
|
|
12750
|
+
$(m(t.$t("actions.follow")) + " ", 1)
|
|
12751
12751
|
]),
|
|
12752
12752
|
_: 1
|
|
12753
12753
|
}, 8, ["onClick"])),
|
|
12754
|
-
|
|
12754
|
+
u(s, {
|
|
12755
12755
|
height: "32",
|
|
12756
12756
|
variant: "text",
|
|
12757
12757
|
density: "compact",
|
|
12758
12758
|
"append-icon": "mdi-chevron-right",
|
|
12759
12759
|
class: "text-none text-body-1",
|
|
12760
|
-
onClick:
|
|
12760
|
+
onClick: Oe(r.handleMeteoMore, ["stop"])
|
|
12761
12761
|
}, {
|
|
12762
12762
|
default: f(() => [
|
|
12763
|
-
|
|
12763
|
+
$(m(t.$t("spot.forecast")), 1)
|
|
12764
12764
|
]),
|
|
12765
12765
|
_: 1
|
|
12766
12766
|
}, 8, ["onClick"])
|
|
@@ -12876,7 +12876,7 @@ const $m = {
|
|
|
12876
12876
|
}
|
|
12877
12877
|
},
|
|
12878
12878
|
handleDrag(t) {
|
|
12879
|
-
var o, i, a, r, s, c, n,
|
|
12879
|
+
var o, i, a, r, s, c, n, p, h, b;
|
|
12880
12880
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12881
12881
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12882
12882
|
const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
@@ -12895,13 +12895,13 @@ const $m = {
|
|
|
12895
12895
|
this.handleTmpPointUpdate(
|
|
12896
12896
|
w,
|
|
12897
12897
|
_[g - 1],
|
|
12898
|
-
{ lng: (
|
|
12898
|
+
{ lng: (p = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: _[g].properties },
|
|
12899
12899
|
g === _.length - 1 ? void 0 : _[g + 1]
|
|
12900
12900
|
);
|
|
12901
12901
|
}
|
|
12902
12902
|
},
|
|
12903
12903
|
handleDragEnd(t) {
|
|
12904
|
-
var o, i, a, r, s, c, n,
|
|
12904
|
+
var o, i, a, r, s, c, n, p, h, b;
|
|
12905
12905
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12906
12906
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12907
12907
|
const w = this.geojson.filter((_) => _.id === e.split("-")[0])[0];
|
|
@@ -12910,7 +12910,7 @@ const $m = {
|
|
|
12910
12910
|
return ((P = _._element) == null ? void 0 : P.id) === e;
|
|
12911
12911
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12912
12912
|
const g = w.features.filter((_) => _.geometry.type === "Point" && _.properties.id === e.split("-")[1])[0];
|
|
12913
|
-
g.geometry.coordinates = [(
|
|
12913
|
+
g.geometry.coordinates = [(p = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((_) => _.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12914
12914
|
}
|
|
12915
12915
|
},
|
|
12916
12916
|
handleContextmenu(t) {
|
|
@@ -12919,9 +12919,9 @@ const $m = {
|
|
|
12919
12919
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
12920
12920
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12921
12921
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12922
|
-
if (c.length > 2 && c.filter((
|
|
12923
|
-
const
|
|
12924
|
-
|
|
12922
|
+
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12923
|
+
const p = document.createElement("div");
|
|
12924
|
+
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ke.Marker(p).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12925
12925
|
}
|
|
12926
12926
|
}
|
|
12927
12927
|
},
|
|
@@ -12930,15 +12930,15 @@ const $m = {
|
|
|
12930
12930
|
(o = this.contextmenu) == null || o.remove();
|
|
12931
12931
|
const e = t.originalEvent.target.className;
|
|
12932
12932
|
if (e === "marker-close") {
|
|
12933
|
-
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
12934
|
-
|
|
12933
|
+
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, p = this.geojson.filter((h) => h.id === n)[0];
|
|
12934
|
+
p && this.handleClear(p, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
|
|
12935
12935
|
} else if (e === "del-point") {
|
|
12936
|
-
const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
12937
|
-
|
|
12936
|
+
const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), p = this.geojson.filter((h) => h.id === n[0])[0];
|
|
12937
|
+
p.features = p.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(p);
|
|
12938
12938
|
} else if (e !== "marker-label" && this.toggle) {
|
|
12939
12939
|
let n = this.geojson.at(-1);
|
|
12940
12940
|
n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
|
|
12941
|
-
const
|
|
12941
|
+
const p = H.feature(
|
|
12942
12942
|
{
|
|
12943
12943
|
type: "Point",
|
|
12944
12944
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -12949,7 +12949,7 @@ const $m = {
|
|
|
12949
12949
|
sumLabel: "Start"
|
|
12950
12950
|
}
|
|
12951
12951
|
);
|
|
12952
|
-
n.features.push(
|
|
12952
|
+
n.features.push(p), this.handlePointUpdate(n);
|
|
12953
12953
|
}
|
|
12954
12954
|
},
|
|
12955
12955
|
handlePointUpdate(t) {
|
|
@@ -12958,12 +12958,12 @@ const $m = {
|
|
|
12958
12958
|
let o = 0;
|
|
12959
12959
|
const i = [];
|
|
12960
12960
|
for (let a = 1; a < e.length; a++) {
|
|
12961
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
12961
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h = Ge.calculateDistance(n, p, c.mode === "RL", 4), b = Ge.calculateBearing(n, p, c.mode === "RL", 2);
|
|
12962
12962
|
o = X.roundPrecision(o + h, 4);
|
|
12963
12963
|
let w;
|
|
12964
|
-
c.mode === "RL" ? w = X.convertToMonotonicLng([n,
|
|
12965
|
-
const
|
|
12966
|
-
|
|
12964
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, p]) : w = X.convertToMonotonicLng(Ge.interpolateCoordinates(n, p, 200));
|
|
12965
|
+
const z = H.lineString(w.map((_) => [_.lng, _.lat]));
|
|
12966
|
+
z.properties.dist = h, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
12967
12967
|
const g = e[a];
|
|
12968
12968
|
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12969
12969
|
}
|
|
@@ -12975,19 +12975,19 @@ const $m = {
|
|
|
12975
12975
|
const a = H.featureCollection([]);
|
|
12976
12976
|
let r, s;
|
|
12977
12977
|
if (e) {
|
|
12978
|
-
const n = e.properties,
|
|
12979
|
-
r = Ge.calculateDistance(
|
|
12978
|
+
const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
12979
|
+
r = Ge.calculateDistance(p, h, n.mode === "RL", 4), s = Ge.calculateBearing(p, h, n.mode === "RL", 2);
|
|
12980
12980
|
let b;
|
|
12981
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([
|
|
12982
|
-
const w = H.lineString(b.map((
|
|
12981
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([p, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(p, h, 200));
|
|
12982
|
+
const w = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12983
12983
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12984
12984
|
}
|
|
12985
12985
|
if (i) {
|
|
12986
|
-
const n = o.properties,
|
|
12987
|
-
r = Ge.calculateDistance(
|
|
12986
|
+
const n = o.properties, p = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12987
|
+
r = Ge.calculateDistance(p, h, n.mode === "RL", 4), s = Ge.calculateBearing(p, h, n.mode === "RL", 2);
|
|
12988
12988
|
let b;
|
|
12989
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([
|
|
12990
|
-
const w = H.lineString(b.map((
|
|
12989
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([p, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(p, h, 200));
|
|
12990
|
+
const w = H.lineString(b.map((z) => [z.lng, z.lat]));
|
|
12991
12991
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12992
12992
|
}
|
|
12993
12993
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -13119,21 +13119,21 @@ const $m = {
|
|
|
13119
13119
|
for (const c of s) {
|
|
13120
13120
|
const n = document.createElement("div");
|
|
13121
13121
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
13122
|
-
const
|
|
13123
|
-
|
|
13122
|
+
const p = new ke.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
13123
|
+
p.on("drag", this.handleDrag), p.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(p) : this.pointMarkers[t.id] = [p];
|
|
13124
13124
|
}
|
|
13125
13125
|
if (t.closed) {
|
|
13126
|
-
const c = s.at(-1),
|
|
13127
|
-
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${
|
|
13126
|
+
const c = s.at(-1), p = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
13127
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${p.properties.name}</div>`, this.closeMarkers[t.id] = new ke.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
13128
13128
|
}
|
|
13129
13129
|
}
|
|
13130
13130
|
},
|
|
13131
13131
|
handleClear(t, e = !0) {
|
|
13132
|
-
var s, c, n,
|
|
13132
|
+
var s, c, n, p, h, b, w, z, g, _;
|
|
13133
13133
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
13134
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (
|
|
13134
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (p = this.map) != null && p.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((P) => {
|
|
13135
13135
|
P == null || P.remove();
|
|
13136
|
-
}), this.pointMarkers[t.id] = [], (
|
|
13136
|
+
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((_ = this.map) != null && _.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
13137
13137
|
}
|
|
13138
13138
|
}
|
|
13139
13139
|
}, Jm = { class: "idm-gl4-measure" };
|
|
@@ -13144,12 +13144,12 @@ function Qm(t, e, o, i, a, r) {
|
|
|
13144
13144
|
class: "menu-bar-box transition pa-1",
|
|
13145
13145
|
style: ae({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
13146
13146
|
}, [
|
|
13147
|
-
|
|
13147
|
+
u(c, {
|
|
13148
13148
|
text: t.$t("measure.measure"),
|
|
13149
13149
|
location: "left"
|
|
13150
13150
|
}, {
|
|
13151
13151
|
activator: f(({ props: n }) => [
|
|
13152
|
-
|
|
13152
|
+
u(s, B(n, {
|
|
13153
13153
|
"min-width": "32",
|
|
13154
13154
|
width: "32",
|
|
13155
13155
|
height: "32",
|
|
@@ -13299,14 +13299,14 @@ const td = {
|
|
|
13299
13299
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13300
13300
|
}, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
|
|
13301
13301
|
function dd(t, e, o, i, a, r) {
|
|
13302
|
-
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"),
|
|
13302
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), p = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), z = x("VTooltip");
|
|
13303
13303
|
return y(), M("div", od, [
|
|
13304
13304
|
l("div", {
|
|
13305
13305
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13306
13306
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
13307
13307
|
}, [
|
|
13308
13308
|
l("div", ad, [
|
|
13309
|
-
|
|
13309
|
+
u(s, B({
|
|
13310
13310
|
ref: "dateTimePicker",
|
|
13311
13311
|
"date-time": a.currentDateTimeZ,
|
|
13312
13312
|
"time-zone": a.timeZone,
|
|
@@ -13318,17 +13318,17 @@ function dd(t, e, o, i, a, r) {
|
|
|
13318
13318
|
onMinTimestamp: e[2] || (e[2] = (g) => a.minTimestamp = g),
|
|
13319
13319
|
onMaxTimestamp: e[3] || (e[3] = (g) => a.maxTimestamp = g)
|
|
13320
13320
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13321
|
-
|
|
13321
|
+
u(b, {
|
|
13322
13322
|
text: "",
|
|
13323
13323
|
height: "30",
|
|
13324
13324
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
13325
13325
|
"min-width": "30"
|
|
13326
13326
|
}, {
|
|
13327
13327
|
default: f(() => [
|
|
13328
|
-
|
|
13329
|
-
|
|
13328
|
+
$(m(a.intervalHour) + " h ", 1),
|
|
13329
|
+
u(h, { activator: "parent" }, {
|
|
13330
13330
|
default: f(() => [
|
|
13331
|
-
p
|
|
13331
|
+
u(p, { class: "pa-1" }, {
|
|
13332
13332
|
default: f(() => [
|
|
13333
13333
|
(y(!0), M(we, null, _e(a.intervalOptions, (g, _) => (y(), O(n, {
|
|
13334
13334
|
key: _,
|
|
@@ -13343,11 +13343,11 @@ function dd(t, e, o, i, a, r) {
|
|
|
13343
13343
|
class: "pa-0 text-center text-body-1"
|
|
13344
13344
|
}, {
|
|
13345
13345
|
default: f(() => [
|
|
13346
|
-
|
|
13346
|
+
u(c, {
|
|
13347
13347
|
onClick: (P) => a.intervalHour = g
|
|
13348
13348
|
}, {
|
|
13349
13349
|
default: f(() => [
|
|
13350
|
-
|
|
13350
|
+
$(m(g) + "h", 1)
|
|
13351
13351
|
]),
|
|
13352
13352
|
_: 2
|
|
13353
13353
|
}, 1032, ["onClick"])
|
|
@@ -13364,13 +13364,13 @@ function dd(t, e, o, i, a, r) {
|
|
|
13364
13364
|
_: 1
|
|
13365
13365
|
})
|
|
13366
13366
|
]),
|
|
13367
|
-
|
|
13367
|
+
u(w, {
|
|
13368
13368
|
vertical: "",
|
|
13369
13369
|
class: "mx-2 my-3",
|
|
13370
13370
|
style: { height: "16px" }
|
|
13371
13371
|
}),
|
|
13372
13372
|
l("div", id, [
|
|
13373
|
-
|
|
13373
|
+
u(b, {
|
|
13374
13374
|
icon: "",
|
|
13375
13375
|
size: "small",
|
|
13376
13376
|
density: "comfortable",
|
|
@@ -13383,7 +13383,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
13383
13383
|
_: 1,
|
|
13384
13384
|
__: [10]
|
|
13385
13385
|
}, 8, ["onClick"]),
|
|
13386
|
-
|
|
13386
|
+
u(b, {
|
|
13387
13387
|
icon: "",
|
|
13388
13388
|
size: "small",
|
|
13389
13389
|
density: "comfortable",
|
|
@@ -13423,7 +13423,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
13423
13423
|
_: 1,
|
|
13424
13424
|
__: [13]
|
|
13425
13425
|
}, 8, ["onClick"])),
|
|
13426
|
-
|
|
13426
|
+
u(b, {
|
|
13427
13427
|
icon: "",
|
|
13428
13428
|
size: "small",
|
|
13429
13429
|
density: "comfortable",
|
|
@@ -13437,20 +13437,20 @@ function dd(t, e, o, i, a, r) {
|
|
|
13437
13437
|
__: [14]
|
|
13438
13438
|
}, 8, ["onClick"])
|
|
13439
13439
|
]),
|
|
13440
|
-
|
|
13440
|
+
u(w, {
|
|
13441
13441
|
vertical: "",
|
|
13442
13442
|
class: "mx-2 my-3",
|
|
13443
13443
|
style: { height: "16px" }
|
|
13444
13444
|
}),
|
|
13445
13445
|
l("div", rd, [
|
|
13446
|
-
|
|
13446
|
+
u(z, {
|
|
13447
13447
|
text: t.$t("weather.windBarbs"),
|
|
13448
13448
|
location: "top"
|
|
13449
13449
|
}, {
|
|
13450
13450
|
activator: f(({ props: g }) => {
|
|
13451
13451
|
var _, P;
|
|
13452
13452
|
return [
|
|
13453
|
-
|
|
13453
|
+
u(b, B(g, {
|
|
13454
13454
|
class: "pa-1 d-flex",
|
|
13455
13455
|
color: (_ = o.weatherCheckList) != null && _.includes("wind") ? "primary" : "",
|
|
13456
13456
|
variant: (P = o.weatherCheckList) != null && P.includes("wind") ? "elevated" : "text",
|
|
@@ -13469,14 +13469,14 @@ function dd(t, e, o, i, a, r) {
|
|
|
13469
13469
|
}),
|
|
13470
13470
|
_: 1
|
|
13471
13471
|
}, 8, ["text"]),
|
|
13472
|
-
|
|
13472
|
+
u(z, {
|
|
13473
13473
|
text: t.$t("weather.sigWaveHeight"),
|
|
13474
13474
|
location: "top"
|
|
13475
13475
|
}, {
|
|
13476
13476
|
activator: f(({ props: g }) => {
|
|
13477
13477
|
var _, P;
|
|
13478
13478
|
return [
|
|
13479
|
-
|
|
13479
|
+
u(b, B(g, {
|
|
13480
13480
|
class: "pa-1 d-flex",
|
|
13481
13481
|
color: (_ = o.weatherCheckList) != null && _.includes("sig-wave-height") ? "primary" : "",
|
|
13482
13482
|
variant: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "elevated" : "text",
|
|
@@ -13494,14 +13494,14 @@ function dd(t, e, o, i, a, r) {
|
|
|
13494
13494
|
}),
|
|
13495
13495
|
_: 1
|
|
13496
13496
|
}, 8, ["text"]),
|
|
13497
|
-
|
|
13497
|
+
u(z, {
|
|
13498
13498
|
text: t.$t("weather.currentDirection"),
|
|
13499
13499
|
location: "top"
|
|
13500
13500
|
}, {
|
|
13501
13501
|
activator: f(({ props: g }) => {
|
|
13502
13502
|
var _, P;
|
|
13503
13503
|
return [
|
|
13504
|
-
|
|
13504
|
+
u(b, B(g, {
|
|
13505
13505
|
class: "pa-1 d-flex",
|
|
13506
13506
|
color: (_ = o.weatherCheckList) != null && _.includes("current-direction") ? "primary" : "",
|
|
13507
13507
|
variant: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "elevated" : "text",
|
|
@@ -13519,12 +13519,12 @@ function dd(t, e, o, i, a, r) {
|
|
|
13519
13519
|
}),
|
|
13520
13520
|
_: 1
|
|
13521
13521
|
}, 8, ["text"]),
|
|
13522
|
-
|
|
13522
|
+
u(z, {
|
|
13523
13523
|
text: t.$t("weather.weatherLayers"),
|
|
13524
13524
|
location: "top"
|
|
13525
13525
|
}, {
|
|
13526
13526
|
activator: f(({ props: g }) => [
|
|
13527
|
-
|
|
13527
|
+
u(b, B(g, {
|
|
13528
13528
|
class: "pa-1 d-flex",
|
|
13529
13529
|
variant: "text",
|
|
13530
13530
|
height: "24",
|
|
@@ -13541,13 +13541,13 @@ function dd(t, e, o, i, a, r) {
|
|
|
13541
13541
|
_: 1
|
|
13542
13542
|
}, 8, ["text"])
|
|
13543
13543
|
]),
|
|
13544
|
-
|
|
13544
|
+
u(w, {
|
|
13545
13545
|
vertical: "",
|
|
13546
13546
|
class: "mx-2 mr-3 my-3",
|
|
13547
13547
|
style: { height: "16px" }
|
|
13548
13548
|
}),
|
|
13549
13549
|
l("div", ld, [
|
|
13550
|
-
|
|
13550
|
+
u(b, {
|
|
13551
13551
|
text: "",
|
|
13552
13552
|
height: "30",
|
|
13553
13553
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
@@ -13555,12 +13555,12 @@ function dd(t, e, o, i, a, r) {
|
|
|
13555
13555
|
onClick: e[7] || (e[7] = (g) => a.source = "GFS")
|
|
13556
13556
|
}, {
|
|
13557
13557
|
default: f(() => e[16] || (e[16] = [
|
|
13558
|
-
|
|
13558
|
+
$("NOAA", -1)
|
|
13559
13559
|
])),
|
|
13560
13560
|
_: 1,
|
|
13561
13561
|
__: [16]
|
|
13562
13562
|
}, 8, ["color"]),
|
|
13563
|
-
|
|
13563
|
+
u(b, {
|
|
13564
13564
|
text: "",
|
|
13565
13565
|
height: "30",
|
|
13566
13566
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
@@ -13568,7 +13568,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
13568
13568
|
onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
|
|
13569
13569
|
}, {
|
|
13570
13570
|
default: f(() => e[17] || (e[17] = [
|
|
13571
|
-
|
|
13571
|
+
$("ECMWF", -1)
|
|
13572
13572
|
])),
|
|
13573
13573
|
_: 1,
|
|
13574
13574
|
__: [17]
|
|
@@ -13587,7 +13587,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
13587
13587
|
}, m(g < 0 ? g : "+" + g), 9, nd))), 128))
|
|
13588
13588
|
])) : R("", !0),
|
|
13589
13589
|
l("div", cd, [
|
|
13590
|
-
|
|
13590
|
+
u(b, {
|
|
13591
13591
|
text: "",
|
|
13592
13592
|
variant: "flat",
|
|
13593
13593
|
height: "28",
|
|
@@ -13596,7 +13596,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
13596
13596
|
onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
|
|
13597
13597
|
}, {
|
|
13598
13598
|
default: f(() => [
|
|
13599
|
-
|
|
13599
|
+
$(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
13600
13600
|
]),
|
|
13601
13601
|
_: 1
|
|
13602
13602
|
}),
|
|
@@ -13669,9 +13669,9 @@ const hd = /* @__PURE__ */ q(td, [["render", dd]]), pd = {
|
|
|
13669
13669
|
class: "map-gl4-home"
|
|
13670
13670
|
};
|
|
13671
13671
|
function gd(t, e, o, i, a, r) {
|
|
13672
|
-
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"),
|
|
13672
|
+
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), p = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
|
|
13673
13673
|
return y(), M("div", ud, [
|
|
13674
|
-
|
|
13674
|
+
u(s, B({
|
|
13675
13675
|
ref: "idmOtherLayers",
|
|
13676
13676
|
token: o.token,
|
|
13677
13677
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -13686,7 +13686,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
13686
13686
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
13687
13687
|
})
|
|
13688
13688
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13689
|
-
|
|
13689
|
+
u(c, B({
|
|
13690
13690
|
ref: "idmWeatherLayers",
|
|
13691
13691
|
map: o.map,
|
|
13692
13692
|
"before-layer": "empty-layer-2",
|
|
@@ -13704,7 +13704,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
13704
13704
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
13705
13705
|
})
|
|
13706
13706
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13707
|
-
|
|
13707
|
+
u(n, B({
|
|
13708
13708
|
map: o.map,
|
|
13709
13709
|
token: o.token,
|
|
13710
13710
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -13715,11 +13715,11 @@ function gd(t, e, o, i, a, r) {
|
|
|
13715
13715
|
"forecast-model": o.forecastModel,
|
|
13716
13716
|
"map-feather": o.mapFeather
|
|
13717
13717
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13718
|
-
p
|
|
13718
|
+
u(p, B({
|
|
13719
13719
|
map: o.map,
|
|
13720
13720
|
"map-feather": o.mapFeather
|
|
13721
13721
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
13722
|
-
|
|
13722
|
+
u(h, B({
|
|
13723
13723
|
ref: "idmSpot",
|
|
13724
13724
|
map: o.map,
|
|
13725
13725
|
token: o.token,
|
|
@@ -13728,7 +13728,7 @@ function gd(t, e, o, i, a, r) {
|
|
|
13728
13728
|
"forecast-model": o.forecastModel,
|
|
13729
13729
|
"map-feather": o.mapFeather
|
|
13730
13730
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
13731
|
-
|
|
13731
|
+
u(b, B({
|
|
13732
13732
|
ref: "idmBottomBar",
|
|
13733
13733
|
"forecast-model": o.forecastModel,
|
|
13734
13734
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -13745,7 +13745,7 @@ class yd {
|
|
|
13745
13745
|
he(this, "hi");
|
|
13746
13746
|
he(this, "td");
|
|
13747
13747
|
he(this, "windy");
|
|
13748
|
-
var o, i, a, r, s, c, n,
|
|
13748
|
+
var o, i, a, r, s, c, n, p, h, b, w, z, g, _, P, N, I, C, k, L, T, v, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce, U, te, Fe, Ae, ge, Ie, W, fe, oe, re, Ne, He, Ue, E, be, Re, Be, Ee, j, We, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Nt, Bt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Oo, No, Bo, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo, Zo, Yo, qo, Xo, Ko, $o, Jo, Qo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Na, Ba, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va;
|
|
13749
13749
|
this.i4 = {
|
|
13750
13750
|
source: {
|
|
13751
13751
|
type: "raster",
|
|
@@ -32389,18 +32389,18 @@ class yd {
|
|
|
32389
32389
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
|
|
32390
32390
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
|
|
32391
32391
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
|
|
32392
|
-
(
|
|
32392
|
+
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((d) => d.id === "ice-area-line"),
|
|
32393
32393
|
(b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
|
|
32394
|
-
(
|
|
32394
|
+
(z = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : z.find((d) => d.id === "loadlines-fill"),
|
|
32395
32395
|
(_ = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : _.find((d) => d.id === "empty-layer-0"),
|
|
32396
32396
|
(N = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-1"),
|
|
32397
32397
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((d) => d.id === "country-boundaries"),
|
|
32398
|
-
(
|
|
32398
|
+
(L = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),
|
|
32399
32399
|
(v = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
|
|
32400
32400
|
(F = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : F.find((d) => d.id === "empty-layer-2"),
|
|
32401
32401
|
(Y = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Y.find((d) => d.id === "water-line-label"),
|
|
32402
32402
|
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((d) => d.id === "water-point-label"),
|
|
32403
|
-
(
|
|
32403
|
+
(K = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : K.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
32404
32404
|
(se = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
|
|
32405
32405
|
(ie = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ie.find((d) => d.id === "ne-10m-label"),
|
|
32406
32406
|
(ue = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : ue.find((d) => d.id === "china-route-line"),
|
|
@@ -32428,7 +32428,7 @@ class yd {
|
|
|
32428
32428
|
fog: {
|
|
32429
32429
|
range: [0.5, 10]
|
|
32430
32430
|
},
|
|
32431
|
-
sources: (
|
|
32431
|
+
sources: (Ne = this.originStyle) == null ? void 0 : Ne.dark.sources,
|
|
32432
32432
|
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
32433
32433
|
glyphs: (Ue = this.originStyle) == null ? void 0 : Ue.dark.glyphs,
|
|
32434
32434
|
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
@@ -32439,7 +32439,7 @@ class yd {
|
|
|
32439
32439
|
draft: !1,
|
|
32440
32440
|
layers: [
|
|
32441
32441
|
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((d) => d.id === "land"),
|
|
32442
|
-
(
|
|
32442
|
+
(Ee = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "water"),
|
|
32443
32443
|
(We = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : We.find((d) => d.id === "ice-area-fill"),
|
|
32444
32444
|
(qe = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : qe.find((d) => d.id === "ice-area-line"),
|
|
32445
32445
|
(Ke = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-label"),
|
|
@@ -32714,7 +32714,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
32714
32714
|
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
32715
32715
|
}, [
|
|
32716
32716
|
l("div", xd, [
|
|
32717
|
-
|
|
32717
|
+
u(s, {
|
|
32718
32718
|
"min-width": "32",
|
|
32719
32719
|
width: "32",
|
|
32720
32720
|
height: "32",
|
|
@@ -32728,7 +32728,7 @@ function kd(t, e, o, i, a, r) {
|
|
|
32728
32728
|
__: [0]
|
|
32729
32729
|
}, 8, ["onClick"]),
|
|
32730
32730
|
l("div", vd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
32731
|
-
|
|
32731
|
+
u(s, {
|
|
32732
32732
|
"min-width": "32",
|
|
32733
32733
|
width: "32",
|
|
32734
32734
|
height: "32",
|
|
@@ -32877,6 +32877,9 @@ const Ld = {
|
|
|
32877
32877
|
this.handleCancelDate();
|
|
32878
32878
|
},
|
|
32879
32879
|
methods: {
|
|
32880
|
+
handleClearDate() {
|
|
32881
|
+
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
32882
|
+
},
|
|
32880
32883
|
handleReset() {
|
|
32881
32884
|
this.handleResetDateRange(), this.handleResetMinMax();
|
|
32882
32885
|
},
|
|
@@ -32884,7 +32887,7 @@ const Ld = {
|
|
|
32884
32887
|
var r, s, c;
|
|
32885
32888
|
let t, e;
|
|
32886
32889
|
if ((r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (s = S(S(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : s.diff(S(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays, !e) {
|
|
32887
|
-
this.$emit("dateRange", []);
|
|
32890
|
+
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
32888
32891
|
return;
|
|
32889
32892
|
}
|
|
32890
32893
|
const o = S.tz(t, this.timeZoneName).clone(), i = [];
|
|
@@ -32940,34 +32943,35 @@ const Ld = {
|
|
|
32940
32943
|
}, Pd = {
|
|
32941
32944
|
class: "idm-gl4-date-picker",
|
|
32942
32945
|
ref: "idmGl4DatePicker"
|
|
32943
|
-
}, Cd = { class: "pa-0" };
|
|
32944
|
-
function
|
|
32945
|
-
const s = x("
|
|
32946
|
+
}, Cd = { class: "flex-1-1-0" }, Td = { class: "pa-0" };
|
|
32947
|
+
function Sd(t, e, o, i, a, r) {
|
|
32948
|
+
const s = x("VIcon"), c = x("VDatePicker"), n = x("VCardText"), p = x("VDivider"), h = x("VBtn"), b = x("VCardActions"), w = x("VCard");
|
|
32946
32949
|
return y(), M("div", Pd, [
|
|
32947
|
-
|
|
32948
|
-
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
|
|
32952
|
-
|
|
32953
|
-
|
|
32954
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
|
|
32959
|
-
|
|
32950
|
+
l("div", {
|
|
32951
|
+
style: ae({ height: o.height + "px", width: o.width + "px" }),
|
|
32952
|
+
class: "rounded text-body-1 btn-border-1 input-btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
32953
|
+
onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
|
|
32954
|
+
}, [
|
|
32955
|
+
l("span", Cd, m(a.dateRangeStr), 1),
|
|
32956
|
+
a.dateRangeStr ? (y(), O(s, {
|
|
32957
|
+
key: 0,
|
|
32958
|
+
class: "text-h5",
|
|
32959
|
+
icon: "mdi-close-circle-outline text-label",
|
|
32960
|
+
onClick: Oe(r.handleClearDate, ["stop"])
|
|
32961
|
+
}, null, 8, ["onClick"])) : R("", !0)
|
|
32962
|
+
], 4),
|
|
32963
|
+
a.showDatePicker ? (y(), O(w, {
|
|
32960
32964
|
key: 0,
|
|
32961
32965
|
class: "card-box d-flex flex-column border",
|
|
32962
32966
|
style: ae(r.getStyle)
|
|
32963
32967
|
}, {
|
|
32964
32968
|
default: f(() => [
|
|
32965
|
-
|
|
32969
|
+
u(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
32966
32970
|
default: f(() => [
|
|
32967
|
-
l("div",
|
|
32968
|
-
|
|
32971
|
+
l("div", Td, [
|
|
32972
|
+
u(c, {
|
|
32969
32973
|
modelValue: a.dateRange,
|
|
32970
|
-
"onUpdate:modelValue": e[
|
|
32974
|
+
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.dateRange = z),
|
|
32971
32975
|
min: a.minDate,
|
|
32972
32976
|
max: a.maxDate,
|
|
32973
32977
|
"mode-icon": () => r.currentYear,
|
|
@@ -32983,24 +32987,24 @@ function Td(t, e, o, i, a, r) {
|
|
|
32983
32987
|
]),
|
|
32984
32988
|
_: 1
|
|
32985
32989
|
}),
|
|
32986
|
-
p
|
|
32987
|
-
|
|
32990
|
+
u(p),
|
|
32991
|
+
u(b, {
|
|
32988
32992
|
class: "justify-end pa-0 pr-4",
|
|
32989
32993
|
style: { height: "50px" }
|
|
32990
32994
|
}, {
|
|
32991
32995
|
default: f(() => [
|
|
32992
|
-
|
|
32996
|
+
u(h, {
|
|
32993
32997
|
size: "small",
|
|
32994
32998
|
variant: "tonal",
|
|
32995
32999
|
class: "text-none text-body-2",
|
|
32996
33000
|
onClick: r.handleCancelDate
|
|
32997
33001
|
}, {
|
|
32998
33002
|
default: f(() => [
|
|
32999
|
-
|
|
33003
|
+
$(m(t.$t("actions.cancel")), 1)
|
|
33000
33004
|
]),
|
|
33001
33005
|
_: 1
|
|
33002
33006
|
}, 8, ["onClick"]),
|
|
33003
|
-
|
|
33007
|
+
u(h, {
|
|
33004
33008
|
size: "small",
|
|
33005
33009
|
variant: "flat",
|
|
33006
33010
|
color: "primary",
|
|
@@ -33008,7 +33012,7 @@ function Td(t, e, o, i, a, r) {
|
|
|
33008
33012
|
onClick: r.handleConfirmDate
|
|
33009
33013
|
}, {
|
|
33010
33014
|
default: f(() => [
|
|
33011
|
-
|
|
33015
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
33012
33016
|
]),
|
|
33013
33017
|
_: 1
|
|
33014
33018
|
}, 8, ["onClick"])
|
|
@@ -33020,18 +33024,18 @@ function Td(t, e, o, i, a, r) {
|
|
|
33020
33024
|
}, 8, ["style"])) : R("", !0)
|
|
33021
33025
|
], 512);
|
|
33022
33026
|
}
|
|
33023
|
-
const
|
|
33027
|
+
const Md = /* @__PURE__ */ q(Ld, [["render", Sd]]), Ud = {
|
|
33024
33028
|
install(t) {
|
|
33025
|
-
t.component("MapInitial", zd), t.component("MapboxGL", fd), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", Ao), t.component("DateRangePicker",
|
|
33029
|
+
t.component("MapInitial", zd), t.component("MapboxGL", fd), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", Ao), t.component("DateRangePicker", Md), t.component("PortDetail", Io);
|
|
33026
33030
|
}
|
|
33027
33031
|
};
|
|
33028
33032
|
export {
|
|
33029
|
-
|
|
33033
|
+
Md as DateRangePicker,
|
|
33030
33034
|
Ao as DateTimePicker,
|
|
33031
33035
|
qa as LatLngGL,
|
|
33032
33036
|
zd as MapInitial,
|
|
33033
33037
|
fd as MapboxGL,
|
|
33034
|
-
|
|
33038
|
+
Ud as MapboxGLPlugin,
|
|
33035
33039
|
Te as ParticleSchema,
|
|
33036
33040
|
Io as PortDetail,
|
|
33037
33041
|
Xa as TropicalGL,
|