@idmwx/idmui-gl4 2.3.7 → 2.3.8
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 +287 -287
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1512,10 +1512,10 @@ const fi = {
|
|
|
1512
1512
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1513
1513
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1514
1514
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1515
|
-
var m, c, f, d, b,
|
|
1515
|
+
var m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe;
|
|
1516
1516
|
let r = {};
|
|
1517
1517
|
const l = ((m = To.pickHourly(t, S(i))) == null ? void 0 : m[0]) || {};
|
|
1518
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((
|
|
1518
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = l == null ? void 0 : l.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((L = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((O = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : O.height, 1) ?? "-", r.sigwaveDir = (V = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (re = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((ue = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : ue.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((A = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.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;
|
|
1519
1519
|
});
|
|
1520
1520
|
},
|
|
1521
1521
|
handleTide() {
|
|
@@ -1724,11 +1724,11 @@ function bs(t, e, o, i, a, r) {
|
|
|
1724
1724
|
class: ne(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1725
1725
|
}, {
|
|
1726
1726
|
default: u(() => {
|
|
1727
|
-
var b,
|
|
1727
|
+
var b, x, k;
|
|
1728
1728
|
return [
|
|
1729
1729
|
p(m, { class: "w-100" }, {
|
|
1730
1730
|
default: u(() => {
|
|
1731
|
-
var y, z, T, B, I,
|
|
1731
|
+
var y, z, T, B, I, w;
|
|
1732
1732
|
return [
|
|
1733
1733
|
s("div", yi, [
|
|
1734
1734
|
s("div", bi, [
|
|
@@ -1806,7 +1806,7 @@ function bs(t, e, o, i, a, r) {
|
|
|
1806
1806
|
s("div", null, n(t.$t("port.port")), 1),
|
|
1807
1807
|
s("div", null, [
|
|
1808
1808
|
e[6] || (e[6] = s("label", null, "UN/LOCODE: ", -1)),
|
|
1809
|
-
s("span", null, n((
|
|
1809
|
+
s("span", null, n((w = o.port) == null ? void 0 : w.cntLoCode), 1)
|
|
1810
1810
|
])
|
|
1811
1811
|
])
|
|
1812
1812
|
];
|
|
@@ -1881,7 +1881,7 @@ function bs(t, e, o, i, a, r) {
|
|
|
1881
1881
|
s("div", Ci, [
|
|
1882
1882
|
s("div", Mi, [
|
|
1883
1883
|
s("div", Si, n(t.$t("port.region")), 1),
|
|
1884
|
-
s("div", Di, n(((
|
|
1884
|
+
s("div", Di, n(((x = o.port) == null ? void 0 : x.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
|
|
1885
1885
|
]),
|
|
1886
1886
|
s("div", Ii, [
|
|
1887
1887
|
s("div", Ri, n(t.$t("port.position")), 1),
|
|
@@ -3104,15 +3104,15 @@ function Tr(t, e, o, i, a, r) {
|
|
|
3104
3104
|
class: ne(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
3105
3105
|
}, {
|
|
3106
3106
|
default: u(() => {
|
|
3107
|
-
var b,
|
|
3107
|
+
var b, x;
|
|
3108
3108
|
return [
|
|
3109
3109
|
p(m, { class: "w-100" }, {
|
|
3110
3110
|
default: u(() => {
|
|
3111
|
-
var
|
|
3111
|
+
var k;
|
|
3112
3112
|
return [
|
|
3113
3113
|
s("div", Ks, [
|
|
3114
3114
|
s("div", $s, [
|
|
3115
|
-
s("div", null, n((
|
|
3115
|
+
s("div", null, n((k = o.station) == null ? void 0 : k.name), 1)
|
|
3116
3116
|
]),
|
|
3117
3117
|
p(l, {
|
|
3118
3118
|
icon: "",
|
|
@@ -3153,7 +3153,7 @@ function Tr(t, e, o, i, a, r) {
|
|
|
3153
3153
|
s("div", ir, [
|
|
3154
3154
|
s("div", sr, [
|
|
3155
3155
|
s("div", rr, n(t.$t("tide.region")), 1),
|
|
3156
|
-
s("div", lr, n(((b = o.station) == null ? void 0 : b.Country) ?? ((
|
|
3156
|
+
s("div", lr, n(((b = o.station) == null ? void 0 : b.Country) ?? ((x = o.station) == null ? void 0 : x.city) ?? "-"), 1)
|
|
3157
3157
|
]),
|
|
3158
3158
|
s("div", nr, [
|
|
3159
3159
|
s("div", cr, n(t.$t("tide.position")), 1),
|
|
@@ -3182,7 +3182,7 @@ function Tr(t, e, o, i, a, r) {
|
|
|
3182
3182
|
}, [
|
|
3183
3183
|
p(f, {
|
|
3184
3184
|
modelValue: a.currentIndex,
|
|
3185
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3185
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
|
|
3186
3186
|
class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3187
3187
|
density: "compact",
|
|
3188
3188
|
group: "",
|
|
@@ -3191,15 +3191,15 @@ function Tr(t, e, o, i, a, r) {
|
|
|
3191
3191
|
rounded: "1"
|
|
3192
3192
|
}, {
|
|
3193
3193
|
default: u(() => [
|
|
3194
|
-
(g(!0), M(xe, null, ke(r.dateList, (
|
|
3194
|
+
(g(!0), M(xe, null, ke(r.dateList, (k) => (g(), R(l, {
|
|
3195
3195
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3196
3196
|
density: "compact",
|
|
3197
3197
|
color: "primary",
|
|
3198
3198
|
height: "26",
|
|
3199
|
-
value:
|
|
3199
|
+
value: k.index
|
|
3200
3200
|
}, {
|
|
3201
3201
|
default: u(() => [
|
|
3202
|
-
K(n(
|
|
3202
|
+
K(n(k.label), 1)
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 2
|
|
3205
3205
|
}, 1032, ["value"]))), 256))
|
|
@@ -3214,12 +3214,12 @@ function Tr(t, e, o, i, a, r) {
|
|
|
3214
3214
|
s("th", _r, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
3215
3215
|
s("th", kr, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3216
3216
|
]),
|
|
3217
|
-
(g(!0), M(xe, null, ke(a.tideTableData, (
|
|
3217
|
+
(g(!0), M(xe, null, ke(a.tideTableData, (k, y) => {
|
|
3218
3218
|
var z;
|
|
3219
3219
|
return g(), M("tr", { key: y }, [
|
|
3220
|
-
s("td", zr, n(t.$t(`tide.${(z =
|
|
3221
|
-
s("td", Lr, n(r.computeLocalTime(
|
|
3222
|
-
s("td", Pr, n((
|
|
3220
|
+
s("td", zr, n(t.$t(`tide.${(z = k == null ? void 0 : k.type) == null ? void 0 : z.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3221
|
+
s("td", Lr, n(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
|
|
3222
|
+
s("td", Pr, n((k == null ? void 0 : k.height) ?? "-") + " m", 1)
|
|
3223
3223
|
]);
|
|
3224
3224
|
}), 128))
|
|
3225
3225
|
])
|
|
@@ -5406,14 +5406,14 @@ const Yr = {
|
|
|
5406
5406
|
if (e.properties) {
|
|
5407
5407
|
const b = e.properties;
|
|
5408
5408
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5409
|
-
const
|
|
5409
|
+
const x = S(), k = (o = S(this.realTime)) == null ? void 0 : o.diff(x, "d", !0), y = {
|
|
5410
5410
|
followId: b.id,
|
|
5411
5411
|
lat: b.lat,
|
|
5412
5412
|
lng: b.lng,
|
|
5413
5413
|
datetime: this.realTime,
|
|
5414
5414
|
forecastModel: this.forecastModel
|
|
5415
5415
|
};
|
|
5416
|
-
|
|
5416
|
+
k >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(y) : (d = (f = (c = (m = this.$parent) == null ? void 0 : m.$parent) == null ? void 0 : c.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(y);
|
|
5417
5417
|
}
|
|
5418
5418
|
},
|
|
5419
5419
|
handleHover(t) {
|
|
@@ -5650,8 +5650,8 @@ const Qr = {
|
|
|
5650
5650
|
})
|
|
5651
5651
|
);
|
|
5652
5652
|
(await Promise.all(l)).map((c) => {
|
|
5653
|
-
var b,
|
|
5654
|
-
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (
|
|
5653
|
+
var b, x, k;
|
|
5654
|
+
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (k = (x = c == null ? void 0 : c.config) == null ? void 0 : x.headers) == null ? void 0 : k.key;
|
|
5655
5655
|
this.otherLayers[d] = f;
|
|
5656
5656
|
});
|
|
5657
5657
|
}
|
|
@@ -5690,7 +5690,7 @@ const Qr = {
|
|
|
5690
5690
|
}, cl = { class: "text-body-2 text-center pt-2" };
|
|
5691
5691
|
function ml(t, e, o, i, a, r) {
|
|
5692
5692
|
var $, re, le, ue, ie, me, ge, he, de;
|
|
5693
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"),
|
|
5693
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"), x = v("VCard"), k = v("IdmLatLng"), y = v("IdmTerminator"), z = v("IdmTimezone"), T = v("IdmPort"), B = v("IdmAlertZone"), I = v("IdmTideStations"), w = v("IdmEcaZone"), L = v("IdmWarZone"), P = v("IdmGmdssArea"), C = v("IdmLoadLine"), _ = v("IdmWorldMarine"), O = v("IdmVRA"), F = v("IdmSpecialArea"), V = v("IdmWorld12nm"), X = v("IdmChinaRoute"), Z = v("IdmIceAreas"), J = v("IdmFollowPort"), Q = v("IdmFollowPosition");
|
|
5694
5694
|
return g(), M("div", el, [
|
|
5695
5695
|
s("div", {
|
|
5696
5696
|
class: ne(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -5745,7 +5745,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5745
5745
|
s("div", {
|
|
5746
5746
|
class: ne(["list-box w-100 flex-1-1-0 scroll overflow-y-auto", o.simple ? "pl-3 pr-1" : "pl-4 pr-2"])
|
|
5747
5747
|
}, [
|
|
5748
|
-
p(
|
|
5748
|
+
p(x, {
|
|
5749
5749
|
class: "block-bg mx-auto mb-2",
|
|
5750
5750
|
elevation: "0"
|
|
5751
5751
|
}, {
|
|
@@ -5795,7 +5795,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5795
5795
|
]),
|
|
5796
5796
|
_: 1
|
|
5797
5797
|
}),
|
|
5798
|
-
p(
|
|
5798
|
+
p(x, {
|
|
5799
5799
|
class: "block-bg mx-auto mb-2",
|
|
5800
5800
|
elevation: "0"
|
|
5801
5801
|
}, {
|
|
@@ -5831,7 +5831,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5831
5831
|
]),
|
|
5832
5832
|
_: 1
|
|
5833
5833
|
}),
|
|
5834
|
-
p(
|
|
5834
|
+
p(x, {
|
|
5835
5835
|
class: "block-bg mx-auto mb-2",
|
|
5836
5836
|
elevation: "0"
|
|
5837
5837
|
}, {
|
|
@@ -5867,7 +5867,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5867
5867
|
]),
|
|
5868
5868
|
_: 1
|
|
5869
5869
|
}),
|
|
5870
|
-
p(
|
|
5870
|
+
p(x, {
|
|
5871
5871
|
class: "block-bg mx-auto mb-3",
|
|
5872
5872
|
elevation: "0"
|
|
5873
5873
|
}, {
|
|
@@ -5915,7 +5915,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5915
5915
|
})
|
|
5916
5916
|
], 2)
|
|
5917
5917
|
], 6),
|
|
5918
|
-
o.map ? (g(), R(
|
|
5918
|
+
o.map ? (g(), R(k, j({
|
|
5919
5919
|
key: 0,
|
|
5920
5920
|
simple: o.simple,
|
|
5921
5921
|
map: o.map,
|
|
@@ -5968,7 +5968,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5968
5968
|
forecastModel: o.forecastModel,
|
|
5969
5969
|
"before-layer": "empty-layer-3"
|
|
5970
5970
|
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5971
|
-
o.map ? (g(), R(
|
|
5971
|
+
o.map ? (g(), R(w, j({
|
|
5972
5972
|
key: 6,
|
|
5973
5973
|
map: o.map,
|
|
5974
5974
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
@@ -5988,7 +5988,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5988
5988
|
map: o.map,
|
|
5989
5989
|
show: a.checkList.includes("load-lines")
|
|
5990
5990
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5991
|
-
o.map ? (g(), R(
|
|
5991
|
+
o.map ? (g(), R(_, j({
|
|
5992
5992
|
key: 10,
|
|
5993
5993
|
map: o.map,
|
|
5994
5994
|
token: o.token,
|
|
@@ -6094,8 +6094,8 @@ class Io {
|
|
|
6094
6094
|
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
6095
6095
|
if (!e)
|
|
6096
6096
|
return [];
|
|
6097
|
-
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b,
|
|
6098
|
-
return [b,
|
|
6097
|
+
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, x] = this.mercator.px([m, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
|
|
6098
|
+
return [b, x, f + k, d];
|
|
6099
6099
|
}
|
|
6100
6100
|
/**
|
|
6101
6101
|
* [视窗边界像素宽度]
|
|
@@ -6278,9 +6278,9 @@ class Fe {
|
|
|
6278
6278
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6279
6279
|
};
|
|
6280
6280
|
d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1), m != null && m.uvRange && (m != null && m.sRange) && (d.uvRange && o.uniform2f(d.uvRange, m.uvRange[0], m.uvRange[1]), d.sRange && o.uniform2f(d.sRange, m.sRange[0], m.sRange[1])), d.scale && o.uniform1f(d.scale, (m == null ? void 0 : m.scale) || 1);
|
|
6281
|
-
const b = e.getBoundPixel(),
|
|
6282
|
-
for (const y of
|
|
6283
|
-
const z = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [I,
|
|
6281
|
+
const b = e.getBoundPixel(), x = e.map.getZoom() + 1, k = e.getWorldCopy(b, x);
|
|
6282
|
+
for (const y of k) {
|
|
6283
|
+
const z = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [I, w, L, P] = [z, B + z, T, B + T], C = new Float32Array([I, L, w, L, I, P, I, P, w, L, w, P]);
|
|
6284
6284
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6285
6285
|
}
|
|
6286
6286
|
} catch (d) {
|
|
@@ -6989,8 +6989,8 @@ const wl = /* @__PURE__ */ Y(fl, [["render", bl]]), xl = {
|
|
|
6989
6989
|
c.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
6990
6990
|
const d = [c];
|
|
6991
6991
|
let b = 0;
|
|
6992
|
-
d.forEach((
|
|
6993
|
-
|
|
6992
|
+
d.forEach((x) => {
|
|
6993
|
+
x.onload = () => {
|
|
6994
6994
|
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", c), b === 1 && this.map.addLayer(
|
|
6995
6995
|
{
|
|
6996
6996
|
id: this.directionLayer,
|
|
@@ -8864,11 +8864,11 @@ const fn = {
|
|
|
8864
8864
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8865
8865
|
},
|
|
8866
8866
|
async fetchWeatherLayers(t = {}) {
|
|
8867
|
-
var a, r, l, m, c, f, d, b,
|
|
8867
|
+
var a, r, l, m, c, f, d, b, x;
|
|
8868
8868
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8869
8869
|
let o = 0, i = 0;
|
|
8870
8870
|
if (this.map) {
|
|
8871
|
-
const
|
|
8871
|
+
const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), z = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8872
8872
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8873
8873
|
const T = Co.WEATHER_LAYERS.find((B) => {
|
|
8874
8874
|
var I;
|
|
@@ -8880,7 +8880,7 @@ const fn = {
|
|
|
8880
8880
|
let T = this.weatherWeight;
|
|
8881
8881
|
if (T > 0) {
|
|
8882
8882
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Ae.get(
|
|
8883
|
-
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${
|
|
8883
|
+
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${z}&t=${this.realTime}`,
|
|
8884
8884
|
{
|
|
8885
8885
|
headers: {
|
|
8886
8886
|
Authorization: this.defaultMeteoToken
|
|
@@ -8888,45 +8888,45 @@ const fn = {
|
|
|
8888
8888
|
}
|
|
8889
8889
|
);
|
|
8890
8890
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m = I == null ? void 0 : I.data) == null ? void 0 : m.code) === 0) {
|
|
8891
|
-
const
|
|
8892
|
-
for (const C in
|
|
8891
|
+
const w = (c = I == null ? void 0 : I.data) == null ? void 0 : c.data, L = [];
|
|
8892
|
+
for (const C in w)
|
|
8893
8893
|
L.push(
|
|
8894
|
-
Ae.get(
|
|
8894
|
+
Ae.get(w[C], {
|
|
8895
8895
|
headers: {
|
|
8896
8896
|
Authorization: this.defaultMeteoToken,
|
|
8897
8897
|
key: C
|
|
8898
8898
|
},
|
|
8899
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8900
|
-
}).catch((
|
|
8901
|
-
console.log(`[${C}] fetch layer error: ${
|
|
8899
|
+
responseType: /\.(jpg|png)$/.test(w[C]) ? "blob" : "json"
|
|
8900
|
+
}).catch((_) => {
|
|
8901
|
+
console.log(`[${C}] fetch layer error: ${_}`);
|
|
8902
8902
|
})
|
|
8903
8903
|
);
|
|
8904
8904
|
const P = await Promise.all(L);
|
|
8905
8905
|
this.weatherLayers = {}, P.map((C) => {
|
|
8906
8906
|
var F, V, X, Z;
|
|
8907
|
-
const
|
|
8907
|
+
const _ = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8908
8908
|
let O = (X = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : X.key;
|
|
8909
|
-
O &&
|
|
8910
|
-
raw:
|
|
8909
|
+
O && _ && (this.weatherLayers[O] = {
|
|
8910
|
+
raw: _,
|
|
8911
8911
|
type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8912
8912
|
etime: I.data.etime
|
|
8913
8913
|
});
|
|
8914
8914
|
});
|
|
8915
8915
|
}
|
|
8916
8916
|
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"]) {
|
|
8917
|
-
const
|
|
8917
|
+
const w = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8918
8918
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8919
8919
|
type: "json",
|
|
8920
|
-
direction:
|
|
8920
|
+
direction: w,
|
|
8921
8921
|
height: { raw: L },
|
|
8922
8922
|
etime: I.data.etime
|
|
8923
8923
|
};
|
|
8924
8924
|
}
|
|
8925
8925
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8926
|
-
const
|
|
8926
|
+
const w = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, L = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
|
|
8927
8927
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8928
8928
|
type: "json",
|
|
8929
|
-
direction:
|
|
8929
|
+
direction: w,
|
|
8930
8930
|
speed: { raw: L },
|
|
8931
8931
|
etime: I.data.etime
|
|
8932
8932
|
};
|
|
@@ -8989,48 +8989,48 @@ const fn = {
|
|
|
8989
8989
|
let e = 0, o = 0;
|
|
8990
8990
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8991
8991
|
if (i && a) {
|
|
8992
|
-
const
|
|
8992
|
+
const x = q.convertToStdLng(i._sw.lng), k = q.convertToStdLng(i._ne.lng), y = Math.floor(i._sw.lat), z = Math.ceil(i._ne.lat);
|
|
8993
8993
|
for (const T in this.weatherLayers) {
|
|
8994
8994
|
let B = !1;
|
|
8995
8995
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8996
8996
|
let I = [];
|
|
8997
8997
|
if (T === "swell") {
|
|
8998
8998
|
B = !0;
|
|
8999
|
-
const
|
|
9000
|
-
for (const P in
|
|
8999
|
+
const w = ((m = this.weatherLayers[T]) == null ? void 0 : m.direction) || {};
|
|
9000
|
+
for (const P in w)
|
|
9001
9001
|
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9002
|
-
const C =
|
|
9003
|
-
|
|
9002
|
+
const C = w[P].lng;
|
|
9003
|
+
x > k ? C.forEach((_, O) => {
|
|
9004
9004
|
var F, V, X, Z, J, Q;
|
|
9005
9005
|
if (a < 2) {
|
|
9006
|
-
if ((
|
|
9007
|
-
const $ = G.point([
|
|
9008
|
-
val: ((F =
|
|
9009
|
-
spd: (X =
|
|
9006
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9007
|
+
const $ = G.point([_, P], {
|
|
9008
|
+
val: ((F = w[P].val) == null ? void 0 : F[O]) || ((V = w[P].dir) == null ? void 0 : V[O]),
|
|
9009
|
+
spd: (X = w[P].spd) == null ? void 0 : X[O]
|
|
9010
9010
|
});
|
|
9011
9011
|
I.push($);
|
|
9012
9012
|
}
|
|
9013
|
-
} else if ((
|
|
9014
|
-
const $ = G.point([
|
|
9015
|
-
val: ((Z =
|
|
9016
|
-
spd: (Q =
|
|
9013
|
+
} else if ((_ >= x && _ <= 180 || _ >= -180 && _ <= k) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9014
|
+
const $ = G.point([_, P], {
|
|
9015
|
+
val: ((Z = w[P].val) == null ? void 0 : Z[O]) || ((J = w[P].dir) == null ? void 0 : J[O]),
|
|
9016
|
+
spd: (Q = w[P].spd) == null ? void 0 : Q[O]
|
|
9017
9017
|
});
|
|
9018
9018
|
I.push($);
|
|
9019
9019
|
}
|
|
9020
|
-
}) : C.forEach((
|
|
9020
|
+
}) : C.forEach((_, O) => {
|
|
9021
9021
|
var F, V, X, Z, J, Q;
|
|
9022
|
-
if (
|
|
9023
|
-
if ((
|
|
9024
|
-
const $ = G.point([
|
|
9025
|
-
val: ((F =
|
|
9026
|
-
spd: (X =
|
|
9022
|
+
if (x < 2) {
|
|
9023
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9024
|
+
const $ = G.point([_, P], {
|
|
9025
|
+
val: ((F = w[P].val) == null ? void 0 : F[O]) || ((V = w[P].dir) == null ? void 0 : V[O]),
|
|
9026
|
+
spd: (X = w[P].spd) == null ? void 0 : X[O]
|
|
9027
9027
|
});
|
|
9028
9028
|
I.push($);
|
|
9029
9029
|
}
|
|
9030
|
-
} else if (
|
|
9031
|
-
const $ = G.point([
|
|
9032
|
-
val: ((Z =
|
|
9033
|
-
spd: (Q =
|
|
9030
|
+
} else if (_ >= x && _ <= k && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9031
|
+
const $ = G.point([_, P], {
|
|
9032
|
+
val: ((Z = w[P].val) == null ? void 0 : Z[O]) || ((J = w[P].dir) == null ? void 0 : J[O]),
|
|
9033
|
+
spd: (Q = w[P].spd) == null ? void 0 : Q[O]
|
|
9034
9034
|
});
|
|
9035
9035
|
I.push($);
|
|
9036
9036
|
}
|
|
@@ -9042,8 +9042,8 @@ const fn = {
|
|
|
9042
9042
|
if (!L.data) {
|
|
9043
9043
|
const P = [];
|
|
9044
9044
|
for (const C in (c = L.raw) == null ? void 0 : c.LineString) {
|
|
9045
|
-
const
|
|
9046
|
-
for (const O of
|
|
9045
|
+
const _ = L.raw.LineString[C];
|
|
9046
|
+
for (const O of _)
|
|
9047
9047
|
P.push(
|
|
9048
9048
|
G.lineString(O, {
|
|
9049
9049
|
val: Number(C)
|
|
@@ -9060,41 +9060,41 @@ const fn = {
|
|
|
9060
9060
|
}
|
|
9061
9061
|
} else if (T === "current") {
|
|
9062
9062
|
B = !0;
|
|
9063
|
-
const
|
|
9064
|
-
for (const P in
|
|
9063
|
+
const w = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
9064
|
+
for (const P in w)
|
|
9065
9065
|
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9066
|
-
const C =
|
|
9067
|
-
|
|
9066
|
+
const C = w[P].lng;
|
|
9067
|
+
x > k ? C.forEach((_, O) => {
|
|
9068
9068
|
var F, V, X, Z, J, Q;
|
|
9069
9069
|
if (a < 2) {
|
|
9070
|
-
if ((
|
|
9071
|
-
const $ = G.point([
|
|
9072
|
-
val: ((F =
|
|
9073
|
-
spd: (X =
|
|
9070
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9071
|
+
const $ = G.point([_, P], {
|
|
9072
|
+
val: ((F = w[P].val) == null ? void 0 : F[O]) || ((V = w[P].dir) == null ? void 0 : V[O]),
|
|
9073
|
+
spd: (X = w[P].spd) == null ? void 0 : X[O]
|
|
9074
9074
|
});
|
|
9075
9075
|
I.push($);
|
|
9076
9076
|
}
|
|
9077
|
-
} else if ((
|
|
9078
|
-
const $ = G.point([
|
|
9079
|
-
val: ((Z =
|
|
9080
|
-
spd: (Q =
|
|
9077
|
+
} else if ((_ >= x && _ <= 180 || _ >= -180 && _ <= k) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9078
|
+
const $ = G.point([_, P], {
|
|
9079
|
+
val: ((Z = w[P].val) == null ? void 0 : Z[O]) || ((J = w[P].dir) == null ? void 0 : J[O]),
|
|
9080
|
+
spd: (Q = w[P].spd) == null ? void 0 : Q[O]
|
|
9081
9081
|
});
|
|
9082
9082
|
I.push($);
|
|
9083
9083
|
}
|
|
9084
|
-
}) : C.forEach((
|
|
9084
|
+
}) : C.forEach((_, O) => {
|
|
9085
9085
|
var F, V, X, Z, J, Q;
|
|
9086
|
-
if (
|
|
9087
|
-
if ((
|
|
9088
|
-
const $ = G.point([
|
|
9089
|
-
val: ((F =
|
|
9090
|
-
spd: (X =
|
|
9086
|
+
if (x < 2) {
|
|
9087
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9088
|
+
const $ = G.point([_, P], {
|
|
9089
|
+
val: ((F = w[P].val) == null ? void 0 : F[O]) || ((V = w[P].dir) == null ? void 0 : V[O]),
|
|
9090
|
+
spd: (X = w[P].spd) == null ? void 0 : X[O]
|
|
9091
9091
|
});
|
|
9092
9092
|
I.push($);
|
|
9093
9093
|
}
|
|
9094
|
-
} else if (
|
|
9095
|
-
const $ = G.point([
|
|
9096
|
-
val: ((Z =
|
|
9097
|
-
spd: (Q =
|
|
9094
|
+
} else if (_ >= x && _ <= k && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9095
|
+
const $ = G.point([_, P], {
|
|
9096
|
+
val: ((Z = w[P].val) == null ? void 0 : Z[O]) || ((J = w[P].dir) == null ? void 0 : J[O]),
|
|
9097
|
+
spd: (Q = w[P].spd) == null ? void 0 : Q[O]
|
|
9098
9098
|
});
|
|
9099
9099
|
I.push($);
|
|
9100
9100
|
}
|
|
@@ -9105,12 +9105,12 @@ const fn = {
|
|
|
9105
9105
|
if (L) {
|
|
9106
9106
|
if (!L.data) {
|
|
9107
9107
|
const C = [];
|
|
9108
|
-
for (const
|
|
9109
|
-
const O = L.raw.Polygon[
|
|
9108
|
+
for (const _ in (d = L.raw) == null ? void 0 : d.Polygon) {
|
|
9109
|
+
const O = L.raw.Polygon[_];
|
|
9110
9110
|
for (const F of O)
|
|
9111
9111
|
C.push(
|
|
9112
9112
|
G.polygon(F, {
|
|
9113
|
-
val: Number(
|
|
9113
|
+
val: Number(_)
|
|
9114
9114
|
})
|
|
9115
9115
|
);
|
|
9116
9116
|
}
|
|
@@ -9121,41 +9121,41 @@ const fn = {
|
|
|
9121
9121
|
}
|
|
9122
9122
|
} else if (T === "wind") {
|
|
9123
9123
|
B = !0;
|
|
9124
|
-
const
|
|
9125
|
-
for (const L in
|
|
9124
|
+
const w = this.weatherLayers.wind.raw;
|
|
9125
|
+
for (const L in w)
|
|
9126
9126
|
if (L > y && L < z && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9127
|
-
const P =
|
|
9128
|
-
|
|
9127
|
+
const P = w[L].lng;
|
|
9128
|
+
x > k ? P.forEach((C, _) => {
|
|
9129
9129
|
var O, F, V, X;
|
|
9130
9130
|
if (a < 2) {
|
|
9131
9131
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9132
9132
|
const Z = G.point([C, L], {
|
|
9133
|
-
dir: ((O =
|
|
9134
|
-
spd:
|
|
9133
|
+
dir: ((O = w[L].val) == null ? void 0 : O[_]) || ((F = w[L].dir) == null ? void 0 : F[_]),
|
|
9134
|
+
spd: w[L].spd[_]
|
|
9135
9135
|
});
|
|
9136
9136
|
I.push(Z);
|
|
9137
9137
|
}
|
|
9138
|
-
} else if ((C >=
|
|
9138
|
+
} else if ((C >= x && C <= 180 || C >= -180 && C <= k) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9139
9139
|
const Z = G.point([C, L], {
|
|
9140
|
-
dir: ((V =
|
|
9141
|
-
spd:
|
|
9140
|
+
dir: ((V = w[L].val) == null ? void 0 : V[_]) || ((X = w[L].dir) == null ? void 0 : X[_]),
|
|
9141
|
+
spd: w[L].spd[_]
|
|
9142
9142
|
});
|
|
9143
9143
|
I.push(Z);
|
|
9144
9144
|
}
|
|
9145
|
-
}) : P.forEach((C,
|
|
9145
|
+
}) : P.forEach((C, _) => {
|
|
9146
9146
|
var O, F, V, X;
|
|
9147
9147
|
if (a < 2) {
|
|
9148
9148
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9149
9149
|
const Z = G.point([C, L], {
|
|
9150
|
-
dir: ((O =
|
|
9151
|
-
spd:
|
|
9150
|
+
dir: ((O = w[L].val) == null ? void 0 : O[_]) || ((F = w[L].dir) == null ? void 0 : F[_]),
|
|
9151
|
+
spd: w[L].spd[_]
|
|
9152
9152
|
});
|
|
9153
9153
|
I.push(Z);
|
|
9154
9154
|
}
|
|
9155
|
-
} else if (C >=
|
|
9155
|
+
} else if (C >= x && C <= k && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9156
9156
|
const Z = G.point([C, L], {
|
|
9157
|
-
dir: ((V =
|
|
9158
|
-
spd:
|
|
9157
|
+
dir: ((V = w[L].val) == null ? void 0 : V[_]) || ((X = w[L].dir) == null ? void 0 : X[_]),
|
|
9158
|
+
spd: w[L].spd[_]
|
|
9159
9159
|
});
|
|
9160
9160
|
I.push(Z);
|
|
9161
9161
|
}
|
|
@@ -9167,33 +9167,33 @@ const fn = {
|
|
|
9167
9167
|
I = this.weatherLayers[T].data;
|
|
9168
9168
|
else {
|
|
9169
9169
|
B = !0;
|
|
9170
|
-
const
|
|
9171
|
-
if (
|
|
9170
|
+
const w = this.weatherLayers[T].raw;
|
|
9171
|
+
if (w) {
|
|
9172
9172
|
const L = [];
|
|
9173
|
-
for (const P in
|
|
9174
|
-
const C =
|
|
9175
|
-
for (const
|
|
9173
|
+
for (const P in w.Polygon) {
|
|
9174
|
+
const C = w.Polygon[P];
|
|
9175
|
+
for (const _ of C)
|
|
9176
9176
|
L.push(
|
|
9177
|
-
G.polygon(
|
|
9177
|
+
G.polygon(_, {
|
|
9178
9178
|
val: Number(P)
|
|
9179
9179
|
})
|
|
9180
9180
|
);
|
|
9181
9181
|
}
|
|
9182
|
-
for (const P in
|
|
9183
|
-
const C =
|
|
9184
|
-
for (const
|
|
9182
|
+
for (const P in w.MultiPolygon) {
|
|
9183
|
+
const C = w.MultiPolygon[P];
|
|
9184
|
+
for (const _ of C)
|
|
9185
9185
|
L.push(
|
|
9186
|
-
G.multiPolygon(
|
|
9186
|
+
G.multiPolygon(_, {
|
|
9187
9187
|
val: Number(P)
|
|
9188
9188
|
})
|
|
9189
9189
|
);
|
|
9190
9190
|
}
|
|
9191
|
-
for (const P in
|
|
9192
|
-
const C =
|
|
9193
|
-
for (let
|
|
9191
|
+
for (const P in w.Point) {
|
|
9192
|
+
const C = w.Point[P];
|
|
9193
|
+
for (let _ = 0; _ < ((b = C.lng) == null ? void 0 : b.length); _++)
|
|
9194
9194
|
L.push(
|
|
9195
|
-
G.point([C.lng[
|
|
9196
|
-
val: Number(C.val[
|
|
9195
|
+
G.point([C.lng[_], P], {
|
|
9196
|
+
val: Number(C.val[_])
|
|
9197
9197
|
})
|
|
9198
9198
|
);
|
|
9199
9199
|
}
|
|
@@ -9206,24 +9206,24 @@ const fn = {
|
|
|
9206
9206
|
I = this.weatherLayers[T].data;
|
|
9207
9207
|
else {
|
|
9208
9208
|
B = !0;
|
|
9209
|
-
const
|
|
9210
|
-
if (
|
|
9209
|
+
const w = this.weatherLayers[T].raw;
|
|
9210
|
+
if (w) {
|
|
9211
9211
|
const L = [];
|
|
9212
|
-
for (const P in
|
|
9213
|
-
const C =
|
|
9214
|
-
for (const
|
|
9212
|
+
for (const P in w.LineString) {
|
|
9213
|
+
const C = w.LineString[P];
|
|
9214
|
+
for (const _ of C)
|
|
9215
9215
|
L.push(
|
|
9216
|
-
G.lineString(
|
|
9216
|
+
G.lineString(_, {
|
|
9217
9217
|
val: Number(P)
|
|
9218
9218
|
})
|
|
9219
9219
|
);
|
|
9220
9220
|
}
|
|
9221
|
-
for (const P in
|
|
9222
|
-
|
|
9221
|
+
for (const P in w.Point)
|
|
9222
|
+
w.Point[P].lng.forEach((C, _) => {
|
|
9223
9223
|
C = q.convertToStdLng(C), L.push(
|
|
9224
9224
|
G.point([C, P], {
|
|
9225
|
-
val:
|
|
9226
|
-
type:
|
|
9225
|
+
val: w.Point[P].val[_],
|
|
9226
|
+
type: w.Point[P].type[_]
|
|
9227
9227
|
})
|
|
9228
9228
|
);
|
|
9229
9229
|
});
|
|
@@ -9279,7 +9279,7 @@ const fn = {
|
|
|
9279
9279
|
}, In = { class: "text-body-1 py-2" }, Rn = { class: "text-body-1 font-weight-medium" }, An = { class: "text-body-2 text-label" }, On = { class: "text-body-2 text-label" }, Bn = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Gn = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, $n = { class: "text-body-1 font-weight-medium" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label" }, ec = { class: "text-body-2 text-label mb-3" };
|
|
9280
9280
|
function tc(t, e, o, i, a, r) {
|
|
9281
9281
|
var ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9282
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"),
|
|
9282
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"), x = v("VCard"), k = v("VSwitch"), y = v("VBtnToggle"), z = v("VCardTitle"), T = v("VCardItem"), B = v("VCheckbox"), I = v("VRadio"), w = v("IdmWindBarb"), L = v("IdmSigWaveHeight"), P = v("IdmCurrentDirection"), C = v("IdmPrmsl"), _ = v("IdmWindParticle"), O = v("IdmCurrentParticle"), F = v("IdmWave"), V = v("IdmSwell"), X = v("IdmIceEdge"), Z = v("IdmIceCover"), J = v("IdmIceThickness"), Q = v("IdmPrecip3h"), $ = v("IdmVisibility"), re = v("IdmWaterTemp"), le = v("IdmTemp");
|
|
9283
9283
|
return g(), M("div", yn, [
|
|
9284
9284
|
s("div", {
|
|
9285
9285
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9342,7 +9342,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9342
9342
|
_: 1
|
|
9343
9343
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
9344
9344
|
], 6),
|
|
9345
|
-
a.legendToggle ? (g(), R(
|
|
9345
|
+
a.legendToggle ? (g(), R(x, {
|
|
9346
9346
|
key: 0,
|
|
9347
9347
|
elevation: "16",
|
|
9348
9348
|
class: "card-info d-flex justify-center align-start",
|
|
@@ -9459,7 +9459,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9459
9459
|
}, [
|
|
9460
9460
|
s("div", Tn, [
|
|
9461
9461
|
s("div", Cn, n(t.$t("weather.weather")), 1),
|
|
9462
|
-
p(
|
|
9462
|
+
p(k, {
|
|
9463
9463
|
modelValue: a.autoActive,
|
|
9464
9464
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
9465
9465
|
class: "small-switch",
|
|
@@ -9529,7 +9529,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9529
9529
|
s("div", {
|
|
9530
9530
|
class: ne(["list-box w-100 scroll overflow-y-auto", [a.autoActive ? "" : "cursor-not-allowed", o.simple ? "pl-3 pr-1" : "pl-4 pr-2"]])
|
|
9531
9531
|
}, [
|
|
9532
|
-
p(
|
|
9532
|
+
p(x, {
|
|
9533
9533
|
class: "block-bg mx-auto mb-2",
|
|
9534
9534
|
elevation: "0"
|
|
9535
9535
|
}, {
|
|
@@ -9566,7 +9566,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9566
9566
|
]),
|
|
9567
9567
|
_: 1
|
|
9568
9568
|
}),
|
|
9569
|
-
p(
|
|
9569
|
+
p(x, {
|
|
9570
9570
|
class: "block-bg mx-auto mb-2",
|
|
9571
9571
|
elevation: "0"
|
|
9572
9572
|
}, {
|
|
@@ -9602,7 +9602,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9602
9602
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9603
9603
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), M("div", Sn, [
|
|
9604
9604
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9605
|
-
p(
|
|
9605
|
+
p(k, {
|
|
9606
9606
|
modelValue: a.showWindParticle,
|
|
9607
9607
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
|
|
9608
9608
|
label: "",
|
|
@@ -9617,7 +9617,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9617
9617
|
])) : D("", !0),
|
|
9618
9618
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), M("div", Dn, [
|
|
9619
9619
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9620
|
-
p(
|
|
9620
|
+
p(k, {
|
|
9621
9621
|
modelValue: a.showCurrentParticle,
|
|
9622
9622
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
|
|
9623
9623
|
label: "",
|
|
@@ -9723,7 +9723,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9723
9723
|
]),
|
|
9724
9724
|
_: 1
|
|
9725
9725
|
}),
|
|
9726
|
-
p(
|
|
9726
|
+
p(x, {
|
|
9727
9727
|
class: "block-bg mx-auto mb-2",
|
|
9728
9728
|
elevation: "0"
|
|
9729
9729
|
}, {
|
|
@@ -9777,7 +9777,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9777
9777
|
})
|
|
9778
9778
|
], 2)
|
|
9779
9779
|
], 6),
|
|
9780
|
-
o.map ? (g(), R(
|
|
9780
|
+
o.map ? (g(), R(w, j({
|
|
9781
9781
|
key: 1,
|
|
9782
9782
|
ref: "windBarb",
|
|
9783
9783
|
map: o.map,
|
|
@@ -9810,7 +9810,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9810
9810
|
"menu-toggle": o.menuToggle,
|
|
9811
9811
|
"active-weather-layers": a.activeWeatherLayers
|
|
9812
9812
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
9813
|
-
o.map ? (g(), R(
|
|
9813
|
+
o.map ? (g(), R(_, j({
|
|
9814
9814
|
key: 5,
|
|
9815
9815
|
viewport: a.viewport,
|
|
9816
9816
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
@@ -10209,18 +10209,18 @@ class Za {
|
|
|
10209
10209
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10210
10210
|
for (const m of a) {
|
|
10211
10211
|
let c = Lo.find((d) => {
|
|
10212
|
-
var b,
|
|
10213
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10212
|
+
var b, x, k;
|
|
10213
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10214
10214
|
}), f = Po.find((d) => {
|
|
10215
|
-
var b,
|
|
10216
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10215
|
+
var b, x, k;
|
|
10216
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10217
10217
|
});
|
|
10218
10218
|
c = c || Lo.find((d) => {
|
|
10219
|
-
var b,
|
|
10220
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10219
|
+
var b, x;
|
|
10220
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((x = f == null ? void 0 : f.alias) == null ? void 0 : x.toLowerCase());
|
|
10221
10221
|
}), f = f || Po.find((d) => {
|
|
10222
|
-
var b,
|
|
10223
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10222
|
+
var b, x;
|
|
10223
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((x = c == null ? void 0 : c.alias) == null ? void 0 : x.toLowerCase());
|
|
10224
10224
|
}), c = c || Lo[0], f = f || Po[0], r.push((o = c.models) != null && o.includes(m) ? m : c.model), l.push((i = f.models) != null && i.includes(m) ? m : f.model);
|
|
10225
10225
|
}
|
|
10226
10226
|
return {
|
|
@@ -10238,7 +10238,7 @@ class Za {
|
|
|
10238
10238
|
}), a;
|
|
10239
10239
|
}
|
|
10240
10240
|
static pickHourly(e, o) {
|
|
10241
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10241
|
+
var i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re;
|
|
10242
10242
|
const W = typeof o == "string" ? S(o) : o, ye = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, se = S((a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = se.clone().add((m = (l = (r = ye == null ? void 0 : ye[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : m.at(0), "h"), Ge = se.clone().add((d = (f = (c = ye == null ? void 0 : ye[0]) == null ? void 0 : c.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
|
|
10243
10243
|
if (W.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10244
10244
|
const E = W.utc().diff(je, "h", !1);
|
|
@@ -10250,9 +10250,9 @@ class Za {
|
|
|
10250
10250
|
for (let Le = E - (E - 1) % 3; Le <= E; Le++)
|
|
10251
10251
|
Ee += (b = U == null ? void 0 : U.precipitation) == null ? void 0 : b.at(Le);
|
|
10252
10252
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10253
|
-
Ne += (
|
|
10253
|
+
Ne += (x = U == null ? void 0 : U.precipitation) == null ? void 0 : x.at(Le);
|
|
10254
10254
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10255
|
-
N += (
|
|
10255
|
+
N += (k = U == null ? void 0 : U.precipitation) == null ? void 0 : k.at(Le);
|
|
10256
10256
|
we = {
|
|
10257
10257
|
temp: (y = U == null ? void 0 : U.temperature_2m) == null ? void 0 : y.at(E),
|
|
10258
10258
|
apparentTemp: (z = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : z.at(E),
|
|
@@ -10260,7 +10260,7 @@ class Za {
|
|
|
10260
10260
|
dp: (B = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10261
10261
|
precip: {
|
|
10262
10262
|
probability: (I = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10263
|
-
sum: (
|
|
10263
|
+
sum: (w = U == null ? void 0 : U.precipitation) == null ? void 0 : w.at(E),
|
|
10264
10264
|
sum1Hours: (L = U == null ? void 0 : U.precipitation) == null ? void 0 : L.at(E),
|
|
10265
10265
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10266
10266
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
@@ -10268,7 +10268,7 @@ class Za {
|
|
|
10268
10268
|
},
|
|
10269
10269
|
pmsl: (P = U == null ? void 0 : U.pressure_msl) == null ? void 0 : P.at(E),
|
|
10270
10270
|
psurf: (C = U == null ? void 0 : U.surface_pressure) == null ? void 0 : C.at(E),
|
|
10271
|
-
code: (
|
|
10271
|
+
code: (_ = U == null ? void 0 : U.weather_code) == null ? void 0 : _.at(E),
|
|
10272
10272
|
visibility: this.m2nm((O = U == null ? void 0 : U.visibility) == null ? void 0 : O.at(E)),
|
|
10273
10273
|
wind: {
|
|
10274
10274
|
speed: (F = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
@@ -10351,7 +10351,7 @@ class Za {
|
|
|
10351
10351
|
};
|
|
10352
10352
|
}
|
|
10353
10353
|
static pickDaily(e, o) {
|
|
10354
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10354
|
+
var i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e;
|
|
10355
10355
|
const Ie = typeof o == "string" ? S(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = 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)), He = S((c = (m = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : m.time) == null ? void 0 : c.at(-1)), Oe = [];
|
|
10356
10356
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10357
10357
|
let fe, Re;
|
|
@@ -10364,10 +10364,10 @@ class Za {
|
|
|
10364
10364
|
temp: {
|
|
10365
10365
|
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(W),
|
|
10366
10366
|
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
10367
|
-
mean: (
|
|
10367
|
+
mean: (x = ae.temperature_2m_mean) == null ? void 0 : x.at(W)
|
|
10368
10368
|
},
|
|
10369
10369
|
apparentTemp: {
|
|
10370
|
-
max: (
|
|
10370
|
+
max: (k = ae.apparent_temperature_max) == null ? void 0 : k.at(W),
|
|
10371
10371
|
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10372
10372
|
},
|
|
10373
10373
|
precip: {
|
|
@@ -10375,13 +10375,13 @@ class Za {
|
|
|
10375
10375
|
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(W),
|
|
10376
10376
|
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10377
10377
|
showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
|
|
10378
|
-
hours: (
|
|
10378
|
+
hours: (w = ae.precipitation_hours) == null ? void 0 : w.at(W),
|
|
10379
10379
|
probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(W)
|
|
10380
10380
|
},
|
|
10381
10381
|
rh: {
|
|
10382
10382
|
max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(W),
|
|
10383
10383
|
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10384
|
-
mean: (
|
|
10384
|
+
mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
|
|
10385
10385
|
},
|
|
10386
10386
|
wind: {
|
|
10387
10387
|
speed: (O = ae.wind_speed_10m_max) == null ? void 0 : O.at(W),
|
|
@@ -10995,10 +10995,10 @@ const ac = {
|
|
|
10995
10995
|
},
|
|
10996
10996
|
showTropicalsInfo: {
|
|
10997
10997
|
handler() {
|
|
10998
|
-
this.$emit("tropical", this.showTropicalsInfo), this.simple && this.$nextTick(() => {
|
|
10998
|
+
this.$emit("tropical", this.showTropicalsInfo), this.simple && this.showTropicalsInfo ? this.$nextTick(() => {
|
|
10999
10999
|
var t, e;
|
|
11000
11000
|
this.$parent.playerBottom = ((e = (t = this.$refs.tropicalsInfo) == null ? void 0 : t.$el) == null ? void 0 : e.clientHeight) + 10;
|
|
11001
|
-
});
|
|
11001
|
+
}) : this.simple && (this.$parent.playerBottom = 30);
|
|
11002
11002
|
},
|
|
11003
11003
|
immediate: !0
|
|
11004
11004
|
},
|
|
@@ -11049,8 +11049,8 @@ const ac = {
|
|
|
11049
11049
|
},
|
|
11050
11050
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11051
11051
|
}).then((d) => {
|
|
11052
|
-
var
|
|
11053
|
-
const b = Va.convert2Geojson(((
|
|
11052
|
+
var k, y, z;
|
|
11053
|
+
const b = Va.convert2Geojson(((k = d == null ? void 0 : d.data) == null ? void 0 : k.data) || (d == null ? void 0 : d.data));
|
|
11054
11054
|
((z = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : z.key) && b && (this.tropicals = {
|
|
11055
11055
|
data: b,
|
|
11056
11056
|
active: !0,
|
|
@@ -11069,7 +11069,7 @@ const ac = {
|
|
|
11069
11069
|
handleRefresh() {
|
|
11070
11070
|
var e, o;
|
|
11071
11071
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11072
|
-
var r, l, m, c, f, d, b,
|
|
11072
|
+
var r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _;
|
|
11073
11073
|
let a = "";
|
|
11074
11074
|
switch (!0) {
|
|
11075
11075
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
@@ -11081,10 +11081,10 @@ const ac = {
|
|
|
11081
11081
|
case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
|
|
11082
11082
|
a = "sts";
|
|
11083
11083
|
break;
|
|
11084
|
-
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((
|
|
11084
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((x = i.properties) == null ? void 0 : x.kts) < 79):
|
|
11085
11085
|
a = "ty";
|
|
11086
11086
|
break;
|
|
11087
|
-
case (((
|
|
11087
|
+
case (((k = i.properties.wind) == null ? void 0 : k.kts) < 94 || ((y = i.properties) == null ? void 0 : y.kts) < 94):
|
|
11088
11088
|
a = "sty";
|
|
11089
11089
|
break;
|
|
11090
11090
|
case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
@@ -11094,7 +11094,7 @@ const ac = {
|
|
|
11094
11094
|
a = "superTy";
|
|
11095
11095
|
break;
|
|
11096
11096
|
}
|
|
11097
|
-
i.properties.levelI18n = a, ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (L = (
|
|
11097
|
+
i.properties.levelI18n = a, ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (L = (w = S(i.properties.date)) == null ? void 0 : w.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((_ = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : _.replace(/^./, (O) => O.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11098
11098
|
}), this.handleInit();
|
|
11099
11099
|
},
|
|
11100
11100
|
handleInit() {
|
|
@@ -11105,8 +11105,8 @@ const ac = {
|
|
|
11105
11105
|
var t, e, o, i, a, r, l, m, c, f;
|
|
11106
11106
|
if (this.tropicals && this.map) {
|
|
11107
11107
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
11108
|
-
let b = 0,
|
|
11109
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
11108
|
+
let b = 0, x = 0;
|
|
11109
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropicals] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.source, {
|
|
11110
11110
|
type: "geojson",
|
|
11111
11111
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
11112
11112
|
}), this.map.addLayer({
|
|
@@ -11187,7 +11187,7 @@ const ac = {
|
|
|
11187
11187
|
],
|
|
11188
11188
|
"text-halo-width": 4
|
|
11189
11189
|
}
|
|
11190
|
-
}, this.beforeLayer),
|
|
11190
|
+
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((m = this.map) == null || m.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.clusterSource, {
|
|
11191
11191
|
type: "geojson",
|
|
11192
11192
|
data: (c = this.tropicals) != null && c.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
11193
11193
|
// cluster: true,
|
|
@@ -11303,9 +11303,9 @@ const ac = {
|
|
|
11303
11303
|
"text-halo-color": "#ffffff",
|
|
11304
11304
|
"text-halo-width": 2
|
|
11305
11305
|
}
|
|
11306
|
-
}, this.beforeLayer),
|
|
11307
|
-
const
|
|
11308
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11306
|
+
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x));
|
|
11307
|
+
const k = Va.interpolate(this.tropicals, 1);
|
|
11308
|
+
this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
|
|
11309
11309
|
}
|
|
11310
11310
|
},
|
|
11311
11311
|
handleClear() {
|
|
@@ -11313,7 +11313,7 @@ const ac = {
|
|
|
11313
11313
|
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();
|
|
11314
11314
|
},
|
|
11315
11315
|
handleDateChange() {
|
|
11316
|
-
var t, e, o, i, a, r, l, m, c, f, d, b,
|
|
11316
|
+
var t, e, o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue;
|
|
11317
11317
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11318
11318
|
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((A) => A.properties.date === (ie == null ? void 0 : ie.format()) && !A.properties.disabled), ge = this.handleComputePolygons(me), he = G.featureCollection([...me]);
|
|
11319
11319
|
ge.forEach((A) => {
|
|
@@ -11354,7 +11354,7 @@ const ac = {
|
|
|
11354
11354
|
A.properties.nameCn = Te, A.properties.Name = ((d = (f = A.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || A.properties.nameCn, de.push(A);
|
|
11355
11355
|
}
|
|
11356
11356
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11357
|
-
((
|
|
11357
|
+
((x = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((y = (k = A.properties) == null ? void 0 : k.wind) != null && y.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((T = (z = A.properties) == null ? void 0 : z.wind) == null ? void 0 : T.kts) >= 32 && ((I = (B = A.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((L = (w = A.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) >= 47 && ((C = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((O = (_ = A.properties) == null ? void 0 : _.wind) == null ? void 0 : O.kts) >= 63 && ((V = (F = A.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (X = A.properties) == null ? void 0 : X.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = A.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((re = ($ = A.properties) == null ? void 0 : $.wind) == null ? void 0 : re.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11358
11358
|
const be = `<svg t="1719918955501"
|
|
11359
11359
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11360
11360
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11379,7 +11379,7 @@ const ac = {
|
|
|
11379
11379
|
(le = this.map) != null && le.getSource(this.interpolateSource) && ((ue = this.map) == null || ue.getSource(this.interpolateSource).setData(this.empty));
|
|
11380
11380
|
},
|
|
11381
11381
|
handleClick(t) {
|
|
11382
|
-
var a, r, l, m, c, f, d, b,
|
|
11382
|
+
var a, r, l, m, c, f, d, b, x, k, y;
|
|
11383
11383
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11384
11384
|
(z) => {
|
|
11385
11385
|
var T;
|
|
@@ -11396,8 +11396,8 @@ const ac = {
|
|
|
11396
11396
|
nameCn: ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn) || ((d = e == null ? void 0 : e.properties) == null ? void 0 : d.name) || "-",
|
|
11397
11397
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11398
11398
|
forecasts: o.map((z) => z.properties),
|
|
11399
|
-
history: (
|
|
11400
|
-
showCircle: (y = (
|
|
11399
|
+
history: (x = i[0]) == null ? void 0 : x.properties,
|
|
11400
|
+
showCircle: (y = (k = o[0]) == null ? void 0 : k.properties) == null ? void 0 : y.showCircle
|
|
11401
11401
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11402
11402
|
},
|
|
11403
11403
|
drawTropicalsInfoMaker(t) {
|
|
@@ -11550,7 +11550,7 @@ const ac = {
|
|
|
11550
11550
|
class: "d-flex justify-start align-center"
|
|
11551
11551
|
}, Om = { class: "text-label pr-1" }, Bm = { class: "d-flex justify-start align-center" }, jm = { class: "text-label pr-1" };
|
|
11552
11552
|
function Em(t, e, o, i, a, r) {
|
|
11553
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardText"), f = v("VDivider"), d = v("VCardActions"), b = v("VCard"),
|
|
11553
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardText"), f = v("VDivider"), d = v("VCardActions"), b = v("VCard"), x = v("v-card-title"), k = v("v-divider");
|
|
11554
11554
|
return g(), M("div", ic, [
|
|
11555
11555
|
s("div", {
|
|
11556
11556
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11595,11 +11595,11 @@ function Em(t, e, o, i, a, r) {
|
|
|
11595
11595
|
default: u(() => [
|
|
11596
11596
|
p(c, null, {
|
|
11597
11597
|
default: u(() => {
|
|
11598
|
-
var y, z, T, B, I,
|
|
11598
|
+
var y, z, T, B, I, w, L, P, C, _, O, F;
|
|
11599
11599
|
return [
|
|
11600
11600
|
s("div", sc, [
|
|
11601
11601
|
s("span", rc, n(o.locale === "en" ? (y = a.activeTropicals) == null ? void 0 : y.Name : ((z = a.activeTropicals) == null ? void 0 : z.nameCn) || ((T = a.activeTropicals) == null ? void 0 : T.Name) || "-"), 1),
|
|
11602
|
-
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.levelI18n ? (g(), M("span", lc, " , " + n(t.$t("tropical." + ((L = (
|
|
11602
|
+
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.levelI18n ? (g(), M("span", lc, " , " + n(t.$t("tropical." + ((L = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : L.levelI18n))), 1)) : D("", !0)
|
|
11603
11603
|
]),
|
|
11604
11604
|
p(l, {
|
|
11605
11605
|
icon: "",
|
|
@@ -11616,7 +11616,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11616
11616
|
}, 8, ["onClick"]),
|
|
11617
11617
|
s("div", nc, [
|
|
11618
11618
|
s("span", cc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11619
|
-
s("span", null, n(r.computeTime(((C = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : C.updated) || ((F = (O = (
|
|
11619
|
+
s("span", null, n(r.computeTime(((C = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : C.updated) || ((F = (O = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : O.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
11620
11620
|
])
|
|
11621
11621
|
];
|
|
11622
11622
|
}),
|
|
@@ -11625,7 +11625,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11625
11625
|
p(f),
|
|
11626
11626
|
p(c, { class: "text-body-1 py-3" }, {
|
|
11627
11627
|
default: u(() => {
|
|
11628
|
-
var y, z, T, B, I,
|
|
11628
|
+
var y, z, T, B, I, w, L, P, C;
|
|
11629
11629
|
return [
|
|
11630
11630
|
s("div", mc, [
|
|
11631
11631
|
s("div", hc, [
|
|
@@ -11635,7 +11635,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11635
11635
|
]),
|
|
11636
11636
|
s("div", pc, [
|
|
11637
11637
|
s("label", uc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11638
|
-
s("span", null, n(((
|
|
11638
|
+
s("span", null, n(((w = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : w.pressure) || "-") + " hPa", 1)
|
|
11639
11639
|
])
|
|
11640
11640
|
]),
|
|
11641
11641
|
s("div", gc, [
|
|
@@ -11651,17 +11651,17 @@ function Em(t, e, o, i, a, r) {
|
|
|
11651
11651
|
s("div", xc, [
|
|
11652
11652
|
s("label", vc, n(t.$t("tropical.models")) + " : ", 1),
|
|
11653
11653
|
s("div", _c, [
|
|
11654
|
-
(g(!0), M(xe, null, ke((C = a.activeTropicals) == null ? void 0 : C.forecasts, (
|
|
11654
|
+
(g(!0), M(xe, null, ke((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, O) => (g(), R(l, {
|
|
11655
11655
|
key: O,
|
|
11656
11656
|
density: "compact",
|
|
11657
|
-
variant:
|
|
11658
|
-
color:
|
|
11657
|
+
variant: _.disabled ? "text" : "flat",
|
|
11658
|
+
color: _.disabled ? "" : "primary",
|
|
11659
11659
|
"min-width": 30,
|
|
11660
|
-
class: ne(["model text-none text-body-1 px-1",
|
|
11661
|
-
onClick: Me((F) => r.handleForecastToggle(
|
|
11660
|
+
class: ne(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11661
|
+
onClick: Me((F) => r.handleForecastToggle(_), ["stop"])
|
|
11662
11662
|
}, {
|
|
11663
11663
|
default: u(() => [
|
|
11664
|
-
K(n(
|
|
11664
|
+
K(n(_.model), 1)
|
|
11665
11665
|
]),
|
|
11666
11666
|
_: 2
|
|
11667
11667
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11837,7 +11837,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11837
11837
|
"max-width": "280"
|
|
11838
11838
|
}, {
|
|
11839
11839
|
default: u(() => [
|
|
11840
|
-
p(
|
|
11840
|
+
p(x, null, {
|
|
11841
11841
|
default: u(() => {
|
|
11842
11842
|
var y, z, T, B;
|
|
11843
11843
|
return [
|
|
@@ -11849,10 +11849,10 @@ function Em(t, e, o, i, a, r) {
|
|
|
11849
11849
|
}),
|
|
11850
11850
|
_: 1
|
|
11851
11851
|
}),
|
|
11852
|
-
p(
|
|
11852
|
+
p(k),
|
|
11853
11853
|
p(c, { class: "text-body-1" }, {
|
|
11854
11854
|
default: u(() => {
|
|
11855
|
-
var y, z, T, B, I,
|
|
11855
|
+
var y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le;
|
|
11856
11856
|
return [
|
|
11857
11857
|
s("div", ym, [
|
|
11858
11858
|
((y = a.hoverPoint) == null ? void 0 : y.type) === "forecast" ? (g(), M("div", bm, [
|
|
@@ -11865,7 +11865,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11865
11865
|
])) : D("", !0),
|
|
11866
11866
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (g(), M("div", _m, [
|
|
11867
11867
|
s("label", km, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11868
|
-
s("span", null, n(r.computeTzTime((
|
|
11868
|
+
s("span", null, n(r.computeTzTime((w = a.hoverPoint) == null ? void 0 : w.date, o.timeZone)), 1)
|
|
11869
11869
|
])) : D("", !0),
|
|
11870
11870
|
((L = a.hoverPoint) == null ? void 0 : L.type) === "forecast" ? (g(), M("div", zm, [
|
|
11871
11871
|
s("label", Lm, n(t.$t("tropical.model")) + " : ", 1),
|
|
@@ -11873,7 +11873,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11873
11873
|
])) : D("", !0),
|
|
11874
11874
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (g(), M("div", Pm, [
|
|
11875
11875
|
s("label", Tm, n(t.$t("weather.wind")) + " : ", 1),
|
|
11876
|
-
s("span", null, n(((O = JSON.parse((
|
|
11876
|
+
s("span", null, n(((O = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : O.kts) ?? "-") + " kts", 1)
|
|
11877
11877
|
])) : D("", !0),
|
|
11878
11878
|
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (g(), M("div", Cm, [
|
|
11879
11879
|
s("label", Mm, n(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -12107,7 +12107,7 @@ const Nm = {
|
|
|
12107
12107
|
style: { height: "56px" }
|
|
12108
12108
|
};
|
|
12109
12109
|
function Um(t, e, o, i, a, r) {
|
|
12110
|
-
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"),
|
|
12110
|
+
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"), x = v("VBtn"), k = v("VCardActions"), y = v("VCard");
|
|
12111
12111
|
return g(), M("div", Fm, [
|
|
12112
12112
|
s("div", {
|
|
12113
12113
|
style: ee({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
@@ -12175,12 +12175,12 @@ function Um(t, e, o, i, a, r) {
|
|
|
12175
12175
|
_: 1
|
|
12176
12176
|
}),
|
|
12177
12177
|
p(m),
|
|
12178
|
-
p(
|
|
12178
|
+
p(k, {
|
|
12179
12179
|
class: "justify-end pa-0 pr-4",
|
|
12180
12180
|
style: { height: "50px" }
|
|
12181
12181
|
}, {
|
|
12182
12182
|
default: u(() => [
|
|
12183
|
-
p(
|
|
12183
|
+
p(x, {
|
|
12184
12184
|
size: "small",
|
|
12185
12185
|
variant: "tonal",
|
|
12186
12186
|
class: "text-none text-body-2",
|
|
@@ -12191,7 +12191,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
12191
12191
|
]),
|
|
12192
12192
|
_: 1
|
|
12193
12193
|
}, 8, ["onClick"]),
|
|
12194
|
-
p(
|
|
12194
|
+
p(x, {
|
|
12195
12195
|
size: "small",
|
|
12196
12196
|
variant: "flat",
|
|
12197
12197
|
color: "primary",
|
|
@@ -12402,12 +12402,12 @@ const Vm = {
|
|
|
12402
12402
|
ref: "idmGl4DatePicker"
|
|
12403
12403
|
}, Ym = { class: "flex-1-1-0" }, Xm = { class: "pa-0" };
|
|
12404
12404
|
function qm(t, e, o, i, a, r) {
|
|
12405
|
-
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"),
|
|
12405
|
+
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"), x = v("VCard");
|
|
12406
12406
|
return g(), M("div", Zm, [
|
|
12407
12407
|
s("div", {
|
|
12408
12408
|
style: ee({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
12409
12409
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12410
|
-
onClick: e[0] || (e[0] = (...
|
|
12410
|
+
onClick: e[0] || (e[0] = (...k) => r.handleOpenDatePicker && r.handleOpenDatePicker(...k))
|
|
12411
12411
|
}, [
|
|
12412
12412
|
s("span", Ym, n(a.dateRangeStr), 1),
|
|
12413
12413
|
a.dateRangeStr ? (g(), R(l, {
|
|
@@ -12417,7 +12417,7 @@ function qm(t, e, o, i, a, r) {
|
|
|
12417
12417
|
onClick: Me(r.handleClearDate, ["stop"])
|
|
12418
12418
|
}, null, 8, ["onClick"])) : D("", !0)
|
|
12419
12419
|
], 4),
|
|
12420
|
-
a.showDatePicker ? (g(), R(
|
|
12420
|
+
a.showDatePicker ? (g(), R(x, {
|
|
12421
12421
|
key: 0,
|
|
12422
12422
|
class: "card-box d-flex flex-column border",
|
|
12423
12423
|
style: ee(r.getStyle)
|
|
@@ -12428,7 +12428,7 @@ function qm(t, e, o, i, a, r) {
|
|
|
12428
12428
|
s("div", Xm, [
|
|
12429
12429
|
p(m, {
|
|
12430
12430
|
modelValue: a.dateRange,
|
|
12431
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12431
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.dateRange = k),
|
|
12432
12432
|
min: a.minDate,
|
|
12433
12433
|
max: a.maxDate,
|
|
12434
12434
|
"mode-icon": () => r.currentYear,
|
|
@@ -13428,11 +13428,11 @@ const Km = {
|
|
|
13428
13428
|
},
|
|
13429
13429
|
showMeteo: {
|
|
13430
13430
|
handler() {
|
|
13431
|
-
var t, e, o, i, a, r
|
|
13432
|
-
this.showMeteo ? ((o = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || o.handleToggle("spot", !0),
|
|
13433
|
-
var
|
|
13434
|
-
this.$parent.playerBottom = ((
|
|
13435
|
-
})) : ((
|
|
13431
|
+
var t, e, o, i, a, r;
|
|
13432
|
+
this.showMeteo ? ((o = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || o.handleToggle("spot", !0), this.simple && this.$nextTick(() => {
|
|
13433
|
+
var l, m;
|
|
13434
|
+
this.$parent.playerBottom = ((m = (l = this.$refs.spotMeteo) == null ? void 0 : l.$el) == null ? void 0 : m.clientHeight) + 10;
|
|
13435
|
+
})) : ((r = (a = (i = this.$parent) == null ? void 0 : i.$refs) == null ? void 0 : a.idmBottomBar) == null || r.handleToggle("spot", !1), this.simple && (this.$parent.playerBottom = 30));
|
|
13436
13436
|
}
|
|
13437
13437
|
},
|
|
13438
13438
|
realTime: {
|
|
@@ -13528,10 +13528,10 @@ const Km = {
|
|
|
13528
13528
|
}), this.loading = !1;
|
|
13529
13529
|
},
|
|
13530
13530
|
initTableData(t) {
|
|
13531
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
13531
|
+
var o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be;
|
|
13532
13532
|
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;
|
|
13533
13533
|
const e = ((l = To.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13534
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((
|
|
13534
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (w = e == null ? void 0 : e.weather) == null ? void 0 : w.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (O = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : O.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 = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.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((re = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((ue = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ge = e == null ? void 0 : e.wave) == null ? void 0 : ge.swell) == null ? void 0 : he.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((te = e == null ? void 0 : e.current) == null ? void 0 : te.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 = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
|
|
13535
13535
|
},
|
|
13536
13536
|
handleBind() {
|
|
13537
13537
|
var t, e;
|
|
@@ -13650,7 +13650,7 @@ const Km = {
|
|
|
13650
13650
|
"aria-hidden": "true"
|
|
13651
13651
|
}, ed = ["xlink:href"];
|
|
13652
13652
|
function td(t, e, o, i, a, r) {
|
|
13653
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"),
|
|
13653
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"), x = v("VRow"), k = v("DateTimePicker"), y = v("VBtnToggle"), z = v("VCardText"), T = v("VCardActions"), B = v("VForm"), I = v("VCard");
|
|
13654
13654
|
return g(), M("div", $m, [
|
|
13655
13655
|
s("div", {
|
|
13656
13656
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13664,8 +13664,8 @@ function td(t, e, o, i, a, r) {
|
|
|
13664
13664
|
"open-on-focus": !o.simple,
|
|
13665
13665
|
"open-on-hover": !o.simple
|
|
13666
13666
|
}, {
|
|
13667
|
-
activator: u(({ props:
|
|
13668
|
-
p(l, j(
|
|
13667
|
+
activator: u(({ props: w }) => [
|
|
13668
|
+
p(l, j(w, {
|
|
13669
13669
|
"min-width": "32",
|
|
13670
13670
|
width: "32",
|
|
13671
13671
|
height: "32",
|
|
@@ -13727,7 +13727,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13727
13727
|
])),
|
|
13728
13728
|
s("div", null, n(t.$t("spot.lng")), 1)
|
|
13729
13729
|
]),
|
|
13730
|
-
p(
|
|
13730
|
+
p(x, { class: "ma-0" }, {
|
|
13731
13731
|
default: u(() => [
|
|
13732
13732
|
p(b, {
|
|
13733
13733
|
cols: "4",
|
|
@@ -13736,7 +13736,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13736
13736
|
default: u(() => [
|
|
13737
13737
|
p(d, {
|
|
13738
13738
|
modelValue: a.form.lngDegree,
|
|
13739
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
13739
|
+
"onUpdate:modelValue": e[0] || (e[0] = (w) => a.form.lngDegree = w),
|
|
13740
13740
|
rules: a.formRules.lngDegree,
|
|
13741
13741
|
density: "compact",
|
|
13742
13742
|
variant: "outlined",
|
|
@@ -13756,7 +13756,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13756
13756
|
default: u(() => [
|
|
13757
13757
|
p(d, {
|
|
13758
13758
|
modelValue: a.form.lngMinute,
|
|
13759
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
13759
|
+
"onUpdate:modelValue": e[1] || (e[1] = (w) => a.form.lngMinute = w),
|
|
13760
13760
|
rules: a.formRules.lngMinute,
|
|
13761
13761
|
label: "",
|
|
13762
13762
|
density: "compact",
|
|
@@ -13783,7 +13783,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13783
13783
|
height: "32",
|
|
13784
13784
|
class: "text-body-1 btn-bg-1",
|
|
13785
13785
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13786
|
-
onClick: e[2] || (e[2] = (
|
|
13786
|
+
onClick: e[2] || (e[2] = (w) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
13787
13787
|
}, {
|
|
13788
13788
|
default: u(() => [
|
|
13789
13789
|
K(n(a.form.lngDirection), 1)
|
|
@@ -13804,7 +13804,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13804
13804
|
])),
|
|
13805
13805
|
s("div", null, n(t.$t("spot.lat")), 1)
|
|
13806
13806
|
]),
|
|
13807
|
-
p(
|
|
13807
|
+
p(x, { class: "ma-0" }, {
|
|
13808
13808
|
default: u(() => [
|
|
13809
13809
|
p(b, {
|
|
13810
13810
|
cols: "4",
|
|
@@ -13813,7 +13813,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13813
13813
|
default: u(() => [
|
|
13814
13814
|
p(d, {
|
|
13815
13815
|
modelValue: a.form.latDegree,
|
|
13816
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
13816
|
+
"onUpdate:modelValue": e[3] || (e[3] = (w) => a.form.latDegree = w),
|
|
13817
13817
|
rules: a.formRules.latDegree,
|
|
13818
13818
|
label: "",
|
|
13819
13819
|
density: "compact",
|
|
@@ -13836,7 +13836,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13836
13836
|
default: u(() => [
|
|
13837
13837
|
p(d, {
|
|
13838
13838
|
modelValue: a.form.latMinute,
|
|
13839
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13839
|
+
"onUpdate:modelValue": e[4] || (e[4] = (w) => a.form.latMinute = w),
|
|
13840
13840
|
rules: a.formRules.latMinute,
|
|
13841
13841
|
label: "",
|
|
13842
13842
|
density: "compact",
|
|
@@ -13863,7 +13863,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13863
13863
|
height: "32",
|
|
13864
13864
|
class: "text-body-1 btn-bg-1",
|
|
13865
13865
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13866
|
-
onClick: e[5] || (e[5] = (
|
|
13866
|
+
onClick: e[5] || (e[5] = (w) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13867
13867
|
}, {
|
|
13868
13868
|
default: u(() => [
|
|
13869
13869
|
K(n(a.form.latDirection), 1)
|
|
@@ -13884,18 +13884,18 @@ function td(t, e, o, i, a, r) {
|
|
|
13884
13884
|
])),
|
|
13885
13885
|
s("div", null, n(t.$t("spot.dateTime")), 1)
|
|
13886
13886
|
]),
|
|
13887
|
-
p(
|
|
13887
|
+
p(x, { class: "ma-0 mb-4" }, {
|
|
13888
13888
|
default: u(() => [
|
|
13889
13889
|
p(b, {
|
|
13890
13890
|
cols: "12",
|
|
13891
13891
|
class: "pa-0"
|
|
13892
13892
|
}, {
|
|
13893
13893
|
default: u(() => [
|
|
13894
|
-
p(
|
|
13894
|
+
p(k, j({
|
|
13895
13895
|
"date-time": a.form.dateTime,
|
|
13896
13896
|
"time-zone": o.timeZone
|
|
13897
13897
|
}, t.$attrs, {
|
|
13898
|
-
onDateTime: e[6] || (e[6] = (
|
|
13898
|
+
onDateTime: e[6] || (e[6] = (w) => a.form.dateTime = w)
|
|
13899
13899
|
}), null, 16, ["date-time", "time-zone"])
|
|
13900
13900
|
]),
|
|
13901
13901
|
_: 1
|
|
@@ -13911,7 +13911,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13911
13911
|
])),
|
|
13912
13912
|
s("div", null, n(t.$t("weather.forecastModel")), 1)
|
|
13913
13913
|
]),
|
|
13914
|
-
p(
|
|
13914
|
+
p(x, { class: "ma-0 mb-2" }, {
|
|
13915
13915
|
default: u(() => [
|
|
13916
13916
|
p(b, {
|
|
13917
13917
|
cols: "12",
|
|
@@ -13920,7 +13920,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13920
13920
|
default: u(() => [
|
|
13921
13921
|
p(y, {
|
|
13922
13922
|
modelValue: a.form.forecastModel,
|
|
13923
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13923
|
+
"onUpdate:modelValue": e[7] || (e[7] = (w) => a.form.forecastModel = w),
|
|
13924
13924
|
class: "w-100",
|
|
13925
13925
|
rounded: "",
|
|
13926
13926
|
height: "30",
|
|
@@ -14037,11 +14037,11 @@ function td(t, e, o, i, a, r) {
|
|
|
14037
14037
|
p(f),
|
|
14038
14038
|
p(z, { class: "text-body-1 px-0 py-1" }, {
|
|
14039
14039
|
default: u(() => {
|
|
14040
|
-
var
|
|
14040
|
+
var w, L;
|
|
14041
14041
|
return [
|
|
14042
14042
|
s("div", uh, [
|
|
14043
14043
|
s("div", gh, n(t.$t("time.time")), 1),
|
|
14044
|
-
s("div", fh, n(r.computedTzTime((
|
|
14044
|
+
s("div", fh, n(r.computedTzTime((w = a.currentHourData) == null ? void 0 : w.utc)), 1)
|
|
14045
14045
|
]),
|
|
14046
14046
|
s("div", yh, [
|
|
14047
14047
|
e[18] || (e[18] = s("div", {
|
|
@@ -14075,9 +14075,9 @@ function td(t, e, o, i, a, r) {
|
|
|
14075
14075
|
p(f),
|
|
14076
14076
|
p(T, { class: "d-flex justify-space-between align-center" }, {
|
|
14077
14077
|
default: u(() => {
|
|
14078
|
-
var
|
|
14078
|
+
var w;
|
|
14079
14079
|
return [
|
|
14080
|
-
(
|
|
14080
|
+
(w = o.followList) != null && w.some((L) => {
|
|
14081
14081
|
var P, C;
|
|
14082
14082
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14083
14083
|
}) ? (g(), R(l, {
|
|
@@ -14142,7 +14142,7 @@ function td(t, e, o, i, a, r) {
|
|
|
14142
14142
|
default: u(() => [
|
|
14143
14143
|
p(c, null, {
|
|
14144
14144
|
default: u(() => {
|
|
14145
|
-
var
|
|
14145
|
+
var w;
|
|
14146
14146
|
return [
|
|
14147
14147
|
s("div", Ah, [
|
|
14148
14148
|
s("div", Oh, [
|
|
@@ -14150,7 +14150,7 @@ function td(t, e, o, i, a, r) {
|
|
|
14150
14150
|
s("div", Bh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14151
14151
|
]),
|
|
14152
14152
|
s("div", jh, [
|
|
14153
|
-
(
|
|
14153
|
+
(w = o.followList) != null && w.some((L) => {
|
|
14154
14154
|
var P, C;
|
|
14155
14155
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14156
14156
|
}) ? (g(), R(l, {
|
|
@@ -14208,11 +14208,11 @@ function td(t, e, o, i, a, r) {
|
|
|
14208
14208
|
p(f),
|
|
14209
14209
|
p(z, { class: "text-body-1 px-0 py-2" }, {
|
|
14210
14210
|
default: u(() => {
|
|
14211
|
-
var
|
|
14211
|
+
var w, L;
|
|
14212
14212
|
return [
|
|
14213
14213
|
s("div", Eh, [
|
|
14214
14214
|
s("div", Nh, n(t.$t("time.time")), 1),
|
|
14215
|
-
s("div", Fh, n(r.computedTzTime((
|
|
14215
|
+
s("div", Fh, n(r.computedTzTime((w = a.currentHourData) == null ? void 0 : w.utc)), 1)
|
|
14216
14216
|
]),
|
|
14217
14217
|
s("div", Hh, [
|
|
14218
14218
|
e[26] || (e[26] = s("div", {
|
|
@@ -14371,21 +14371,21 @@ const ad = {
|
|
|
14371
14371
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14372
14372
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14373
14373
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14374
|
-
const
|
|
14375
|
-
this.pointMarkers[
|
|
14374
|
+
const x = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
14375
|
+
this.pointMarkers[x.id].filter((T) => {
|
|
14376
14376
|
var B;
|
|
14377
14377
|
return ((B = T._element) == null ? void 0 : B.id) === e;
|
|
14378
14378
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14379
14379
|
let y;
|
|
14380
|
-
|
|
14380
|
+
x.features.forEach((T, B) => {
|
|
14381
14381
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
14382
14382
|
y = B;
|
|
14383
14383
|
return;
|
|
14384
14384
|
}
|
|
14385
14385
|
});
|
|
14386
|
-
const z =
|
|
14386
|
+
const z = x.features.filter((T) => T.geometry.type === "Point");
|
|
14387
14387
|
this.handleTmpPointUpdate(
|
|
14388
|
-
|
|
14388
|
+
x,
|
|
14389
14389
|
z[y - 1],
|
|
14390
14390
|
{ lng: (f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: z[y].properties },
|
|
14391
14391
|
y === z.length - 1 ? void 0 : z[y + 1]
|
|
@@ -14396,13 +14396,13 @@ const ad = {
|
|
|
14396
14396
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14397
14397
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14398
14398
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14399
|
-
const
|
|
14400
|
-
this.pointMarkers[
|
|
14399
|
+
const x = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
|
|
14400
|
+
this.pointMarkers[x.id].filter((z) => {
|
|
14401
14401
|
var T;
|
|
14402
14402
|
return ((T = z._element) == null ? void 0 : T.id) === e;
|
|
14403
14403
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14404
|
-
const y =
|
|
14405
|
-
y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat],
|
|
14404
|
+
const y = x.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
|
|
14405
|
+
y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], x.features = x.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(x);
|
|
14406
14406
|
}
|
|
14407
14407
|
},
|
|
14408
14408
|
handleContextmenu(t) {
|
|
@@ -14452,10 +14452,10 @@ const ad = {
|
|
|
14452
14452
|
for (let a = 1; a < e.length; a++) {
|
|
14453
14453
|
const r = e[a - 1], l = e[a], m = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(c, f, m.mode === "RL", 4), b = Ve.calculateBearing(c, f, m.mode === "RL", 2);
|
|
14454
14454
|
o = q.roundPrecision(o + d, 4);
|
|
14455
|
-
let
|
|
14456
|
-
m.mode === "RL" ?
|
|
14457
|
-
const
|
|
14458
|
-
|
|
14455
|
+
let x;
|
|
14456
|
+
m.mode === "RL" ? x = q.convertToMonotonicLng([c, f]) : x = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
|
|
14457
|
+
const k = G.lineString(x.map((z) => [z.lng, z.lat]));
|
|
14458
|
+
k.properties.dist = d, k.properties.bearing = b, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
|
|
14459
14459
|
const y = e[a];
|
|
14460
14460
|
y.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
14461
14461
|
}
|
|
@@ -14471,16 +14471,16 @@ const ad = {
|
|
|
14471
14471
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14472
14472
|
let b;
|
|
14473
14473
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14474
|
-
const
|
|
14475
|
-
|
|
14474
|
+
const x = G.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14475
|
+
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
14476
14476
|
}
|
|
14477
14477
|
if (i) {
|
|
14478
14478
|
const c = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
14479
14479
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14480
14480
|
let b;
|
|
14481
14481
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14482
|
-
const
|
|
14483
|
-
|
|
14482
|
+
const x = G.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14483
|
+
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
14484
14484
|
}
|
|
14485
14485
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
14486
14486
|
type: "geojson",
|
|
@@ -14621,11 +14621,11 @@ const ad = {
|
|
|
14621
14621
|
}
|
|
14622
14622
|
},
|
|
14623
14623
|
handleClear(t, e = !0) {
|
|
14624
|
-
var l, m, c, f, d, b,
|
|
14624
|
+
var l, m, c, f, d, b, x, k, y, z;
|
|
14625
14625
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
14626
|
-
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (
|
|
14626
|
+
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
|
|
14627
14627
|
T == null || T.remove();
|
|
14628
|
-
}), this.pointMarkers[t.id] = [], (
|
|
14628
|
+
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
14629
14629
|
}
|
|
14630
14630
|
}
|
|
14631
14631
|
}, id = { class: "idm-gl4-measure" };
|
|
@@ -14796,7 +14796,7 @@ const ld = {
|
|
|
14796
14796
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
14797
14797
|
}, ud = ["onClick"], gd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, fd = { class: "text-body-1" };
|
|
14798
14798
|
function yd(t, e, o, i, a, r) {
|
|
14799
|
-
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"),
|
|
14799
|
+
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"), x = v("VDivider"), k = v("VTooltip");
|
|
14800
14800
|
return g(), M("div", nd, [
|
|
14801
14801
|
s("div", {
|
|
14802
14802
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -14862,7 +14862,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
14862
14862
|
_: 1
|
|
14863
14863
|
})
|
|
14864
14864
|
]),
|
|
14865
|
-
p(
|
|
14865
|
+
p(x, {
|
|
14866
14866
|
vertical: "",
|
|
14867
14867
|
class: "mx-2 my-3",
|
|
14868
14868
|
style: { height: "16px" }
|
|
@@ -14935,13 +14935,13 @@ function yd(t, e, o, i, a, r) {
|
|
|
14935
14935
|
__: [14]
|
|
14936
14936
|
}, 8, ["onClick"])
|
|
14937
14937
|
]),
|
|
14938
|
-
p(
|
|
14938
|
+
p(x, {
|
|
14939
14939
|
vertical: "",
|
|
14940
14940
|
class: "mx-2 my-3",
|
|
14941
14941
|
style: { height: "16px" }
|
|
14942
14942
|
}),
|
|
14943
14943
|
s("div", hd, [
|
|
14944
|
-
p(
|
|
14944
|
+
p(k, {
|
|
14945
14945
|
text: t.$t("weather.windBarbs"),
|
|
14946
14946
|
location: "top"
|
|
14947
14947
|
}, {
|
|
@@ -14967,7 +14967,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
14967
14967
|
}),
|
|
14968
14968
|
_: 1
|
|
14969
14969
|
}, 8, ["text"]),
|
|
14970
|
-
p(
|
|
14970
|
+
p(k, {
|
|
14971
14971
|
text: t.$t("weather.sigWaveHeight"),
|
|
14972
14972
|
location: "top"
|
|
14973
14973
|
}, {
|
|
@@ -14992,7 +14992,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
14992
14992
|
}),
|
|
14993
14993
|
_: 1
|
|
14994
14994
|
}, 8, ["text"]),
|
|
14995
|
-
p(
|
|
14995
|
+
p(k, {
|
|
14996
14996
|
text: t.$t("weather.currentDirection"),
|
|
14997
14997
|
location: "top"
|
|
14998
14998
|
}, {
|
|
@@ -15017,7 +15017,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
15017
15017
|
}),
|
|
15018
15018
|
_: 1
|
|
15019
15019
|
}, 8, ["text"]),
|
|
15020
|
-
p(
|
|
15020
|
+
p(k, {
|
|
15021
15021
|
text: t.$t("weather.weatherLayers"),
|
|
15022
15022
|
location: "top"
|
|
15023
15023
|
}, {
|
|
@@ -15039,7 +15039,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
15039
15039
|
_: 1
|
|
15040
15040
|
}, 8, ["text"])
|
|
15041
15041
|
]),
|
|
15042
|
-
p(
|
|
15042
|
+
p(x, {
|
|
15043
15043
|
vertical: "",
|
|
15044
15044
|
class: "mx-2 mr-3 my-3",
|
|
15045
15045
|
style: { height: "16px" }
|
|
@@ -15382,7 +15382,7 @@ const $a = /* @__PURE__ */ Y(wd, [["render", vd]]), _d = {
|
|
|
15382
15382
|
class: "map-gl4-home"
|
|
15383
15383
|
};
|
|
15384
15384
|
function zd(t, e, o, i, a, r) {
|
|
15385
|
-
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"),
|
|
15385
|
+
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"), x = v("IdmTimePlayer");
|
|
15386
15386
|
return g(), M("div", kd, [
|
|
15387
15387
|
p(l, j({
|
|
15388
15388
|
ref: "idmOtherLayers",
|
|
@@ -15396,8 +15396,8 @@ function zd(t, e, o, i, a, r) {
|
|
|
15396
15396
|
"forecast-model": o.forecastModel,
|
|
15397
15397
|
"map-feather": o.mapFeather
|
|
15398
15398
|
}, t.$attrs, {
|
|
15399
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
15400
|
-
a.otherCheckList =
|
|
15399
|
+
onOtherCheckList: e[0] || (e[0] = (k) => {
|
|
15400
|
+
a.otherCheckList = k, a.layerVersion = a.layerVersion + 1;
|
|
15401
15401
|
})
|
|
15402
15402
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15403
15403
|
p(m, j({
|
|
@@ -15412,11 +15412,11 @@ function zd(t, e, o, i, a, r) {
|
|
|
15412
15412
|
"forecast-model": o.forecastModel,
|
|
15413
15413
|
"map-feather": o.mapFeather
|
|
15414
15414
|
}, t.$attrs, {
|
|
15415
|
-
onAutoActive: e[1] || (e[1] = (
|
|
15416
|
-
a.autoActive =
|
|
15415
|
+
onAutoActive: e[1] || (e[1] = (k) => {
|
|
15416
|
+
a.autoActive = k, a.layerVersion = a.layerVersion + 1;
|
|
15417
15417
|
}),
|
|
15418
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
15419
|
-
a.weatherCheckList =
|
|
15418
|
+
onWeatherCheckList: e[2] || (e[2] = (k) => {
|
|
15419
|
+
a.weatherCheckList = k, a.layerVersion = a.layerVersion + 1;
|
|
15420
15420
|
})
|
|
15421
15421
|
}), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15422
15422
|
p(c, j({
|
|
@@ -15453,9 +15453,9 @@ function zd(t, e, o, i, a, r) {
|
|
|
15453
15453
|
"weather-check-list": a.weatherCheckList,
|
|
15454
15454
|
"map-feather": o.mapFeather
|
|
15455
15455
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])),
|
|
15456
|
-
o.simple ? (g(), R(
|
|
15456
|
+
o.simple ? (g(), R(x, j({
|
|
15457
15457
|
key: 1,
|
|
15458
|
-
ref: "
|
|
15458
|
+
ref: "idmBottomBar",
|
|
15459
15459
|
playerBottom: a.playerBottom,
|
|
15460
15460
|
bgClass: o.simple ? "bg-background" : "",
|
|
15461
15461
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -15472,7 +15472,7 @@ class Pd {
|
|
|
15472
15472
|
pe(this, "hi");
|
|
15473
15473
|
pe(this, "td");
|
|
15474
15474
|
pe(this, "windy");
|
|
15475
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
15475
|
+
var o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re, W, ye, ae, se, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, $e, Je, Qe, et, tt, ot, at, it, st, rt, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, Mt, St, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, so, ro, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, Xo, qo, Ko, $o, Jo, Qo, ea, ta, oa, aa, ia, sa, ra, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Ma, Sa, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
15476
15476
|
this.i4 = {
|
|
15477
15477
|
source: {
|
|
15478
15478
|
type: "raster",
|
|
@@ -34118,12 +34118,12 @@ class Pd {
|
|
|
34118
34118
|
(m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
|
|
34119
34119
|
(f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
34120
34120
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
34121
|
-
(
|
|
34121
|
+
(k = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : k.find((h) => h.id === "loadlines-fill"),
|
|
34122
34122
|
(z = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-0"),
|
|
34123
34123
|
(B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
34124
|
-
(
|
|
34124
|
+
(w = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : w.find((h) => h.id === "country-boundaries"),
|
|
34125
34125
|
(P = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : P.find((h) => h.id === "water-outline"),
|
|
34126
|
-
(
|
|
34126
|
+
(_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((h) => h.id === "water-outline2"),
|
|
34127
34127
|
(F = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
34128
34128
|
(X = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : X.find((h) => h.id === "water-line-label"),
|
|
34129
34129
|
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((h) => h.id === "water-point-label"),
|