@idmwx/idmui-gl4 2.0.9 → 2.1.0
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 +295 -300
- package/dist/index.umd.cjs +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1511,10 +1511,10 @@ const yi = {
|
|
|
1511
1511
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1512
1512
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1513
1513
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1514
|
-
var m, c, f, d, b, x,
|
|
1514
|
+
var m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe;
|
|
1515
1515
|
let r = {};
|
|
1516
1516
|
const l = ((m = To.pickHourly(t, M(i))) == null ? void 0 : m[0]) || {};
|
|
1517
|
-
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((
|
|
1517
|
+
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((z = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((v = l == null ? void 0 : l.weather) == null ? void 0 : v.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((y = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : y.kts, 1) ?? "-", r.windDir = (D = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : D.direction, r.windLevel = this.computeRoundPrecision((_ = (T = l == null ? void 0 : l.weather) == null ? void 0 : T.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : R.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((Y = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (se = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : se.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((O = (he = l == null ? void 0 : l.wave) == null ? void 0 : he.swell) == null ? void 0 : O.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;
|
|
1518
1518
|
});
|
|
1519
1519
|
},
|
|
1520
1520
|
handleTide() {
|
|
@@ -1724,11 +1724,11 @@ function wr(t, e, o, i, a, r) {
|
|
|
1724
1724
|
class: ye(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1725
1725
|
}, {
|
|
1726
1726
|
default: u(() => {
|
|
1727
|
-
var
|
|
1727
|
+
var z, v, P;
|
|
1728
1728
|
return [
|
|
1729
1729
|
p(f, { class: "w-100" }, {
|
|
1730
1730
|
default: u(() => {
|
|
1731
|
-
var y, B, D, T,
|
|
1731
|
+
var y, B, D, T, _, L;
|
|
1732
1732
|
return [
|
|
1733
1733
|
s("div", bi, [
|
|
1734
1734
|
s("div", wi, [
|
|
@@ -1739,7 +1739,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1739
1739
|
s("div", null, n((T = o.port) == null ? void 0 : T.name), 1)
|
|
1740
1740
|
]),
|
|
1741
1741
|
o.simple ? (g(), S("div", xi, [
|
|
1742
|
-
(
|
|
1742
|
+
(_ = o.followList) != null && _.some((C) => {
|
|
1743
1743
|
var k;
|
|
1744
1744
|
return ((k = C.port) == null ? void 0 : k.id) === o.portId;
|
|
1745
1745
|
}) ? (g(), A(m, {
|
|
@@ -1811,7 +1811,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1811
1811
|
s("div", null, n(t.$t("port.port")), 1),
|
|
1812
1812
|
s("div", null, [
|
|
1813
1813
|
e[4] || (e[4] = s("label", null, "UN/LOCODE: ", -1)),
|
|
1814
|
-
s("span", null, n((
|
|
1814
|
+
s("span", null, n((L = o.port) == null ? void 0 : L.cntLoCode), 1)
|
|
1815
1815
|
])
|
|
1816
1816
|
])
|
|
1817
1817
|
];
|
|
@@ -1820,7 +1820,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1820
1820
|
}),
|
|
1821
1821
|
p(d, { class: "w-100" }),
|
|
1822
1822
|
o.simple ? I("", !0) : (g(), S("div", ki, [
|
|
1823
|
-
(
|
|
1823
|
+
(z = o.followList) != null && z.some((y) => {
|
|
1824
1824
|
var B;
|
|
1825
1825
|
return ((B = y.port) == null ? void 0 : B.id) === o.portId;
|
|
1826
1826
|
}) ? (g(), A(m, {
|
|
@@ -1885,7 +1885,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1885
1885
|
s("div", Si, [
|
|
1886
1886
|
s("div", Mi, [
|
|
1887
1887
|
s("div", Di, n(t.$t("port.region")), 1),
|
|
1888
|
-
s("div", Ii, n(((
|
|
1888
|
+
s("div", Ii, n(((v = o.port) == null ? void 0 : v.region) ?? ((P = o.port) == null ? void 0 : P.city) ?? "-"), 1)
|
|
1889
1889
|
]),
|
|
1890
1890
|
s("div", Ri, [
|
|
1891
1891
|
s("div", Ai, n(t.$t("port.position")), 1),
|
|
@@ -3111,11 +3111,11 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3111
3111
|
return [
|
|
3112
3112
|
p(m, { class: "w-100" }, {
|
|
3113
3113
|
default: u(() => {
|
|
3114
|
-
var
|
|
3114
|
+
var z;
|
|
3115
3115
|
return [
|
|
3116
3116
|
s("div", Jr, [
|
|
3117
3117
|
s("div", Qr, [
|
|
3118
|
-
s("div", null, n((
|
|
3118
|
+
s("div", null, n((z = o.station) == null ? void 0 : z.name), 1)
|
|
3119
3119
|
]),
|
|
3120
3120
|
p(l, {
|
|
3121
3121
|
icon: "",
|
|
@@ -3185,7 +3185,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3185
3185
|
}, [
|
|
3186
3186
|
p(f, {
|
|
3187
3187
|
modelValue: a.currentIndex,
|
|
3188
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3188
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
|
|
3189
3189
|
class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3190
3190
|
density: "compact",
|
|
3191
3191
|
group: "",
|
|
@@ -3194,15 +3194,15 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3194
3194
|
rounded: "1"
|
|
3195
3195
|
}, {
|
|
3196
3196
|
default: u(() => [
|
|
3197
|
-
(g(!0), S(xe, null, ke(r.dateList, (
|
|
3197
|
+
(g(!0), S(xe, null, ke(r.dateList, (z) => (g(), A(l, {
|
|
3198
3198
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3199
3199
|
density: "compact",
|
|
3200
3200
|
color: "primary",
|
|
3201
3201
|
height: "26",
|
|
3202
|
-
value:
|
|
3202
|
+
value: z.index
|
|
3203
3203
|
}, {
|
|
3204
3204
|
default: u(() => [
|
|
3205
|
-
K(n(
|
|
3205
|
+
K(n(z.label), 1)
|
|
3206
3206
|
]),
|
|
3207
3207
|
_: 2
|
|
3208
3208
|
}, 1032, ["value"]))), 256))
|
|
@@ -3217,12 +3217,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3217
3217
|
s("th", ks, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
3218
3218
|
s("th", zs, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3219
3219
|
]),
|
|
3220
|
-
(g(!0), S(xe, null, ke(a.tideTableData, (
|
|
3220
|
+
(g(!0), S(xe, null, ke(a.tideTableData, (z, v) => {
|
|
3221
3221
|
var P;
|
|
3222
|
-
return g(), S("tr", { key:
|
|
3223
|
-
s("td", Ls, n(t.$t(`tide.${(P =
|
|
3224
|
-
s("td", Ps, n(r.computeLocalTime(
|
|
3225
|
-
s("td", Ts, n((
|
|
3222
|
+
return g(), S("tr", { key: v }, [
|
|
3223
|
+
s("td", Ls, n(t.$t(`tide.${(P = z == null ? void 0 : z.type) == null ? void 0 : P.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3224
|
+
s("td", Ps, n(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
|
|
3225
|
+
s("td", Ts, n((z == null ? void 0 : z.height) ?? "-") + " m", 1)
|
|
3226
3226
|
]);
|
|
3227
3227
|
}), 128))
|
|
3228
3228
|
])
|
|
@@ -5409,13 +5409,14 @@ const Xs = {
|
|
|
5409
5409
|
if (e.properties) {
|
|
5410
5410
|
const b = e.properties;
|
|
5411
5411
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5412
|
-
const x = M(),
|
|
5412
|
+
const x = M(), z = (o = M(this.realTime)) == null ? void 0 : o.diff(x, "d", !0), v = {
|
|
5413
|
+
followId: b.id,
|
|
5413
5414
|
lat: b.lat,
|
|
5414
5415
|
lng: b.lng,
|
|
5415
5416
|
datetime: this.realTime,
|
|
5416
5417
|
forecastModel: this.forecastModel
|
|
5417
5418
|
};
|
|
5418
|
-
|
|
5419
|
+
z >= 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(v) : (d = (f = (c = (m = this.$parent) == null ? void 0 : m.$parent) == null ? void 0 : c.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(v);
|
|
5419
5420
|
}
|
|
5420
5421
|
},
|
|
5421
5422
|
handleHover(t) {
|
|
@@ -5464,7 +5465,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
5464
5465
|
[Ze, a.showInfo]
|
|
5465
5466
|
]);
|
|
5466
5467
|
}
|
|
5467
|
-
const $s = /* @__PURE__ */ Z(Xs, [["render", Qs], ["__scopeId", "data-v-
|
|
5468
|
+
const $s = /* @__PURE__ */ Z(Xs, [["render", Qs], ["__scopeId", "data-v-82405c68"]]);
|
|
5468
5469
|
const el = {
|
|
5469
5470
|
name: "IdmOtherLayerr",
|
|
5470
5471
|
components: {
|
|
@@ -5652,8 +5653,8 @@ const el = {
|
|
|
5652
5653
|
})
|
|
5653
5654
|
);
|
|
5654
5655
|
(await Promise.all(l)).map((c) => {
|
|
5655
|
-
var b, x,
|
|
5656
|
-
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (
|
|
5656
|
+
var b, x, z;
|
|
5657
|
+
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (z = (x = c == null ? void 0 : c.config) == null ? void 0 : x.headers) == null ? void 0 : z.key;
|
|
5657
5658
|
this.otherLayers[d] = f;
|
|
5658
5659
|
});
|
|
5659
5660
|
}
|
|
@@ -5692,7 +5693,7 @@ const el = {
|
|
|
5692
5693
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
5693
5694
|
function dl(t, e, o, i, a, r) {
|
|
5694
5695
|
var J, se, le, pe, ie, ce, ue, me, he;
|
|
5695
|
-
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardTitle"), f = w("VCardItem"), d = w("VCheckbox"), b = w("VCardText"), x = w("VCard"),
|
|
5696
|
+
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardTitle"), f = w("VCardItem"), d = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), z = w("IdmLatLng"), v = w("IdmTerminator"), P = w("IdmTimezone"), y = w("IdmPort"), B = w("IdmAlertZone"), D = w("IdmTideStations"), T = w("IdmEcaZone"), _ = w("IdmWarZone"), L = w("IdmGmdssArea"), C = w("IdmLoadLine"), k = w("IdmWorldMarine"), R = w("IdmVRA"), F = w("IdmSpecialArea"), V = w("IdmWorld12nm"), X = w("IdmChinaRoute"), Y = w("IdmIceAreas"), Q = w("IdmFollowPort"), $ = w("IdmFollowPosition");
|
|
5696
5697
|
return g(), S("div", tl, [
|
|
5697
5698
|
s("div", {
|
|
5698
5699
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5923,14 +5924,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5923
5924
|
})
|
|
5924
5925
|
])
|
|
5925
5926
|
], 6),
|
|
5926
|
-
o.map ? (g(), A(
|
|
5927
|
+
o.map ? (g(), A(z, j({
|
|
5927
5928
|
key: 0,
|
|
5928
5929
|
simple: o.simple,
|
|
5929
5930
|
map: o.map,
|
|
5930
5931
|
"menu-toggle": o.menuToggle,
|
|
5931
5932
|
show: a.checkList.includes("graticule")
|
|
5932
5933
|
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) : I("", !0),
|
|
5933
|
-
o.map ? (g(), A(
|
|
5934
|
+
o.map ? (g(), A(v, j({
|
|
5934
5935
|
key: 1,
|
|
5935
5936
|
map: o.map,
|
|
5936
5937
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
@@ -5981,12 +5982,12 @@ function dl(t, e, o, i, a, r) {
|
|
|
5981
5982
|
map: o.map,
|
|
5982
5983
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5983
5984
|
}, t.$attrs), null, 16, ["map", "zone"])) : I("", !0),
|
|
5984
|
-
o.map ? (g(), A(
|
|
5985
|
+
o.map ? (g(), A(_, j({
|
|
5985
5986
|
key: 7,
|
|
5986
5987
|
map: o.map,
|
|
5987
5988
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5988
5989
|
}, t.$attrs), null, 16, ["map", "zone"])) : I("", !0),
|
|
5989
|
-
o.map ? (g(), A(
|
|
5990
|
+
o.map ? (g(), A(L, j({
|
|
5990
5991
|
key: 8,
|
|
5991
5992
|
map: o.map,
|
|
5992
5993
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
@@ -6096,12 +6097,12 @@ class Io {
|
|
|
6096
6097
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
6097
6098
|
*/
|
|
6098
6099
|
getBoundPixel() {
|
|
6099
|
-
var
|
|
6100
|
-
const e = (
|
|
6100
|
+
var v, P;
|
|
6101
|
+
const e = (v = this.map) == null ? void 0 : v.getBounds();
|
|
6101
6102
|
if (!e)
|
|
6102
6103
|
return [];
|
|
6103
|
-
const o = ((P = this.map) == null ? void 0 : P.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),
|
|
6104
|
-
return [b, x, f +
|
|
6104
|
+
const o = ((P = this.map) == null ? void 0 : P.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), z = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
|
|
6105
|
+
return [b, x, f + z, d];
|
|
6105
6106
|
}
|
|
6106
6107
|
/**
|
|
6107
6108
|
* [视窗边界像素宽度]
|
|
@@ -6284,9 +6285,9 @@ class Fe {
|
|
|
6284
6285
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6285
6286
|
};
|
|
6286
6287
|
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);
|
|
6287
|
-
const b = e.getBoundPixel(), x = e.map.getZoom() + 1,
|
|
6288
|
-
for (const
|
|
6289
|
-
const P = (
|
|
6288
|
+
const b = e.getBoundPixel(), x = e.map.getZoom() + 1, z = e.getWorldCopy(b, x);
|
|
6289
|
+
for (const v of z) {
|
|
6290
|
+
const P = (v[0] - b[0]) * e.ratio, y = (v[1] - b[3]) * e.ratio, B = v[2] * e.ratio, [D, T, _, L] = [P, B + P, y, B + y], C = new Float32Array([D, _, T, _, D, L, D, L, T, _, T, L]);
|
|
6290
6291
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6291
6292
|
}
|
|
6292
6293
|
} catch (d) {
|
|
@@ -8881,7 +8882,7 @@ const bn = {
|
|
|
8881
8882
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8882
8883
|
let o = 0, i = 0;
|
|
8883
8884
|
if (this.map) {
|
|
8884
|
-
const
|
|
8885
|
+
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, v = (r = this.map) == null ? void 0 : r.getBounds(), P = `${v._sw.lng},${v._sw.lat},${v._ne.lng},${v._ne.lat}`;
|
|
8885
8886
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8886
8887
|
const y = Co.WEATHER_LAYERS.find((B) => {
|
|
8887
8888
|
var D;
|
|
@@ -8893,7 +8894,7 @@ const bn = {
|
|
|
8893
8894
|
let y = this.weatherWeight;
|
|
8894
8895
|
if (y > 0) {
|
|
8895
8896
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], D = await Ae.get(
|
|
8896
|
-
`${B}/api/arc/weather/layers2/links?l=${y}&v=${this.forecastModel}&z=${
|
|
8897
|
+
`${B}/api/arc/weather/layers2/links?l=${y}&v=${this.forecastModel}&z=${z}&bbox=${P}&t=${this.realTime}`,
|
|
8897
8898
|
{
|
|
8898
8899
|
headers: {
|
|
8899
8900
|
Authorization: this.defaultMeteoToken
|
|
@@ -8901,9 +8902,9 @@ const bn = {
|
|
|
8901
8902
|
}
|
|
8902
8903
|
);
|
|
8903
8904
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m = D == null ? void 0 : D.data) == null ? void 0 : m.code) === 0) {
|
|
8904
|
-
const T = (c = D == null ? void 0 : D.data) == null ? void 0 : c.data,
|
|
8905
|
+
const T = (c = D == null ? void 0 : D.data) == null ? void 0 : c.data, _ = [];
|
|
8905
8906
|
for (const C in T)
|
|
8906
|
-
|
|
8907
|
+
_.push(
|
|
8907
8908
|
Ae.get(T[C], {
|
|
8908
8909
|
headers: {
|
|
8909
8910
|
Authorization: this.defaultMeteoToken,
|
|
@@ -8914,8 +8915,8 @@ const bn = {
|
|
|
8914
8915
|
console.log(`[${C}] fetch layer error: ${k}`);
|
|
8915
8916
|
})
|
|
8916
8917
|
);
|
|
8917
|
-
const
|
|
8918
|
-
this.weatherLayers = {},
|
|
8918
|
+
const L = await Promise.all(_);
|
|
8919
|
+
this.weatherLayers = {}, L.map((C) => {
|
|
8919
8920
|
var F, V, X, Y;
|
|
8920
8921
|
const k = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8921
8922
|
let R = (X = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : X.key;
|
|
@@ -8927,20 +8928,20 @@ const bn = {
|
|
|
8927
8928
|
});
|
|
8928
8929
|
}
|
|
8929
8930
|
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"]) {
|
|
8930
|
-
const T = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw,
|
|
8931
|
+
const T = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8931
8932
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8932
8933
|
type: "json",
|
|
8933
8934
|
direction: T,
|
|
8934
|
-
height: { raw:
|
|
8935
|
+
height: { raw: _ },
|
|
8935
8936
|
etime: D.data.etime
|
|
8936
8937
|
};
|
|
8937
8938
|
}
|
|
8938
8939
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8939
|
-
const T = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw,
|
|
8940
|
+
const T = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, _ = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
|
|
8940
8941
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8941
8942
|
type: "json",
|
|
8942
8943
|
direction: T,
|
|
8943
|
-
speed: { raw:
|
|
8944
|
+
speed: { raw: _ },
|
|
8944
8945
|
etime: D.data.etime
|
|
8945
8946
|
};
|
|
8946
8947
|
}
|
|
@@ -9002,7 +9003,7 @@ const bn = {
|
|
|
9002
9003
|
let e = 0, o = 0;
|
|
9003
9004
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
9004
9005
|
if (i && a) {
|
|
9005
|
-
const x = q.convertToStdLng(i._sw.lng),
|
|
9006
|
+
const x = q.convertToStdLng(i._sw.lng), z = q.convertToStdLng(i._ne.lng), v = Math.floor(i._sw.lat), P = Math.ceil(i._ne.lat);
|
|
9006
9007
|
for (const y in this.weatherLayers) {
|
|
9007
9008
|
let B = !1;
|
|
9008
9009
|
if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
|
|
@@ -9010,23 +9011,23 @@ const bn = {
|
|
|
9010
9011
|
if (y === "swell") {
|
|
9011
9012
|
B = !0;
|
|
9012
9013
|
const T = ((m = this.weatherLayers[y]) == null ? void 0 : m.direction) || {};
|
|
9013
|
-
for (const
|
|
9014
|
-
if (
|
|
9015
|
-
const C = T[
|
|
9016
|
-
x >
|
|
9014
|
+
for (const L in T)
|
|
9015
|
+
if (L > v && L < P && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9016
|
+
const C = T[L].lng;
|
|
9017
|
+
x > z ? C.forEach((k, R) => {
|
|
9017
9018
|
var F, V, X, Y, Q, $;
|
|
9018
9019
|
if (a < 2) {
|
|
9019
9020
|
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9020
|
-
const J = G.point([k,
|
|
9021
|
-
val: ((F = T[
|
|
9022
|
-
spd: (X = T[
|
|
9021
|
+
const J = G.point([k, L], {
|
|
9022
|
+
val: ((F = T[L].val) == null ? void 0 : F[R]) || ((V = T[L].dir) == null ? void 0 : V[R]),
|
|
9023
|
+
spd: (X = T[L].spd) == null ? void 0 : X[R]
|
|
9023
9024
|
});
|
|
9024
9025
|
D.push(J);
|
|
9025
9026
|
}
|
|
9026
|
-
} else if ((k >= x && k <= 180 || k >= -180 && k <=
|
|
9027
|
-
const J = G.point([k,
|
|
9028
|
-
val: ((Y = T[
|
|
9029
|
-
spd: ($ = T[
|
|
9027
|
+
} else if ((k >= x && k <= 180 || k >= -180 && k <= z) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9028
|
+
const J = G.point([k, L], {
|
|
9029
|
+
val: ((Y = T[L].val) == null ? void 0 : Y[R]) || ((Q = T[L].dir) == null ? void 0 : Q[R]),
|
|
9030
|
+
spd: ($ = T[L].spd) == null ? void 0 : $[R]
|
|
9030
9031
|
});
|
|
9031
9032
|
D.push(J);
|
|
9032
9033
|
}
|
|
@@ -9034,63 +9035,63 @@ const bn = {
|
|
|
9034
9035
|
var F, V, X, Y, Q, $;
|
|
9035
9036
|
if (x < 2) {
|
|
9036
9037
|
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9037
|
-
const J = G.point([k,
|
|
9038
|
-
val: ((F = T[
|
|
9039
|
-
spd: (X = T[
|
|
9038
|
+
const J = G.point([k, L], {
|
|
9039
|
+
val: ((F = T[L].val) == null ? void 0 : F[R]) || ((V = T[L].dir) == null ? void 0 : V[R]),
|
|
9040
|
+
spd: (X = T[L].spd) == null ? void 0 : X[R]
|
|
9040
9041
|
});
|
|
9041
9042
|
D.push(J);
|
|
9042
9043
|
}
|
|
9043
|
-
} else if (k >= x && k <=
|
|
9044
|
-
const J = G.point([k,
|
|
9045
|
-
val: ((Y = T[
|
|
9046
|
-
spd: ($ = T[
|
|
9044
|
+
} else if (k >= x && k <= z && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9045
|
+
const J = G.point([k, L], {
|
|
9046
|
+
val: ((Y = T[L].val) == null ? void 0 : Y[R]) || ((Q = T[L].dir) == null ? void 0 : Q[R]),
|
|
9047
|
+
spd: ($ = T[L].spd) == null ? void 0 : $[R]
|
|
9047
9048
|
});
|
|
9048
9049
|
D.push(J);
|
|
9049
9050
|
}
|
|
9050
9051
|
});
|
|
9051
9052
|
}
|
|
9052
9053
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
9053
|
-
const
|
|
9054
|
-
if (
|
|
9055
|
-
if (!
|
|
9056
|
-
const
|
|
9057
|
-
for (const C in (c =
|
|
9058
|
-
const k =
|
|
9054
|
+
const _ = this.weatherLayers[y].height;
|
|
9055
|
+
if (_) {
|
|
9056
|
+
if (!_.data) {
|
|
9057
|
+
const L = [];
|
|
9058
|
+
for (const C in (c = _.raw) == null ? void 0 : c.LineString) {
|
|
9059
|
+
const k = _.raw.LineString[C];
|
|
9059
9060
|
for (const R of k)
|
|
9060
|
-
|
|
9061
|
+
L.push(
|
|
9061
9062
|
G.lineString(R, {
|
|
9062
9063
|
val: Number(C)
|
|
9063
9064
|
})
|
|
9064
9065
|
);
|
|
9065
|
-
|
|
9066
|
+
_.data = G.featureCollection(L);
|
|
9066
9067
|
}
|
|
9067
9068
|
}
|
|
9068
|
-
if (
|
|
9069
|
-
const
|
|
9070
|
-
D = D.concat(
|
|
9069
|
+
if (_.data) {
|
|
9070
|
+
const L = this.handleBboxClip(_.data, i);
|
|
9071
|
+
D = D.concat(L);
|
|
9071
9072
|
}
|
|
9072
9073
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
9073
9074
|
}
|
|
9074
9075
|
} else if (y === "current") {
|
|
9075
9076
|
B = !0;
|
|
9076
9077
|
const T = ((f = this.weatherLayers[y]) == null ? void 0 : f.direction) || {};
|
|
9077
|
-
for (const
|
|
9078
|
-
if (
|
|
9079
|
-
const C = T[
|
|
9080
|
-
x >
|
|
9078
|
+
for (const L in T)
|
|
9079
|
+
if (L > v && L < P && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9080
|
+
const C = T[L].lng;
|
|
9081
|
+
x > z ? C.forEach((k, R) => {
|
|
9081
9082
|
var F, V, X, Y, Q, $;
|
|
9082
9083
|
if (a < 2) {
|
|
9083
9084
|
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9084
|
-
const J = G.point([k,
|
|
9085
|
-
val: ((F = T[
|
|
9086
|
-
spd: (X = T[
|
|
9085
|
+
const J = G.point([k, L], {
|
|
9086
|
+
val: ((F = T[L].val) == null ? void 0 : F[R]) || ((V = T[L].dir) == null ? void 0 : V[R]),
|
|
9087
|
+
spd: (X = T[L].spd) == null ? void 0 : X[R]
|
|
9087
9088
|
});
|
|
9088
9089
|
D.push(J);
|
|
9089
9090
|
}
|
|
9090
|
-
} else if ((k >= x && k <= 180 || k >= -180 && k <=
|
|
9091
|
-
const J = G.point([k,
|
|
9092
|
-
val: ((Y = T[
|
|
9093
|
-
spd: ($ = T[
|
|
9091
|
+
} else if ((k >= x && k <= 180 || k >= -180 && k <= z) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9092
|
+
const J = G.point([k, L], {
|
|
9093
|
+
val: ((Y = T[L].val) == null ? void 0 : Y[R]) || ((Q = T[L].dir) == null ? void 0 : Q[R]),
|
|
9094
|
+
spd: ($ = T[L].spd) == null ? void 0 : $[R]
|
|
9094
9095
|
});
|
|
9095
9096
|
D.push(J);
|
|
9096
9097
|
}
|
|
@@ -9098,28 +9099,28 @@ const bn = {
|
|
|
9098
9099
|
var F, V, X, Y, Q, $;
|
|
9099
9100
|
if (x < 2) {
|
|
9100
9101
|
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9101
|
-
const J = G.point([k,
|
|
9102
|
-
val: ((F = T[
|
|
9103
|
-
spd: (X = T[
|
|
9102
|
+
const J = G.point([k, L], {
|
|
9103
|
+
val: ((F = T[L].val) == null ? void 0 : F[R]) || ((V = T[L].dir) == null ? void 0 : V[R]),
|
|
9104
|
+
spd: (X = T[L].spd) == null ? void 0 : X[R]
|
|
9104
9105
|
});
|
|
9105
9106
|
D.push(J);
|
|
9106
9107
|
}
|
|
9107
|
-
} else if (k >= x && k <=
|
|
9108
|
-
const J = G.point([k,
|
|
9109
|
-
val: ((Y = T[
|
|
9110
|
-
spd: ($ = T[
|
|
9108
|
+
} else if (k >= x && k <= z && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9109
|
+
const J = G.point([k, L], {
|
|
9110
|
+
val: ((Y = T[L].val) == null ? void 0 : Y[R]) || ((Q = T[L].dir) == null ? void 0 : Q[R]),
|
|
9111
|
+
spd: ($ = T[L].spd) == null ? void 0 : $[R]
|
|
9111
9112
|
});
|
|
9112
9113
|
D.push(J);
|
|
9113
9114
|
}
|
|
9114
9115
|
});
|
|
9115
9116
|
}
|
|
9116
9117
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
9117
|
-
const
|
|
9118
|
-
if (
|
|
9119
|
-
if (!
|
|
9118
|
+
const _ = this.weatherLayers[y].speed;
|
|
9119
|
+
if (_) {
|
|
9120
|
+
if (!_.data) {
|
|
9120
9121
|
const C = [];
|
|
9121
|
-
for (const k in (d =
|
|
9122
|
-
const R =
|
|
9122
|
+
for (const k in (d = _.raw) == null ? void 0 : d.Polygon) {
|
|
9123
|
+
const R = _.raw.Polygon[k];
|
|
9123
9124
|
for (const F of R)
|
|
9124
9125
|
C.push(
|
|
9125
9126
|
G.polygon(F, {
|
|
@@ -9127,48 +9128,48 @@ const bn = {
|
|
|
9127
9128
|
})
|
|
9128
9129
|
);
|
|
9129
9130
|
}
|
|
9130
|
-
|
|
9131
|
+
_.data = G.featureCollection(C);
|
|
9131
9132
|
}
|
|
9132
|
-
const
|
|
9133
|
-
D = D.concat(
|
|
9133
|
+
const L = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
9134
|
+
D = D.concat(L), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
9134
9135
|
}
|
|
9135
9136
|
} else if (y === "wind") {
|
|
9136
9137
|
B = !0;
|
|
9137
9138
|
const T = this.weatherLayers.wind.raw;
|
|
9138
|
-
for (const
|
|
9139
|
-
if (
|
|
9140
|
-
const
|
|
9141
|
-
x >
|
|
9139
|
+
for (const _ in T)
|
|
9140
|
+
if (_ > v && _ < P && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9141
|
+
const L = T[_].lng;
|
|
9142
|
+
x > z ? L.forEach((C, k) => {
|
|
9142
9143
|
var R, F, V, X;
|
|
9143
9144
|
if (a < 2) {
|
|
9144
9145
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9145
|
-
const Y = G.point([C,
|
|
9146
|
-
dir: ((R = T[
|
|
9147
|
-
spd: T[
|
|
9146
|
+
const Y = G.point([C, _], {
|
|
9147
|
+
dir: ((R = T[_].val) == null ? void 0 : R[k]) || ((F = T[_].dir) == null ? void 0 : F[k]),
|
|
9148
|
+
spd: T[_].spd[k]
|
|
9148
9149
|
});
|
|
9149
9150
|
D.push(Y);
|
|
9150
9151
|
}
|
|
9151
|
-
} else if ((C >= x && C <= 180 || C >= -180 && C <=
|
|
9152
|
-
const Y = G.point([C,
|
|
9153
|
-
dir: ((V = T[
|
|
9154
|
-
spd: T[
|
|
9152
|
+
} else if ((C >= x && C <= 180 || C >= -180 && C <= z) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9153
|
+
const Y = G.point([C, _], {
|
|
9154
|
+
dir: ((V = T[_].val) == null ? void 0 : V[k]) || ((X = T[_].dir) == null ? void 0 : X[k]),
|
|
9155
|
+
spd: T[_].spd[k]
|
|
9155
9156
|
});
|
|
9156
9157
|
D.push(Y);
|
|
9157
9158
|
}
|
|
9158
|
-
}) :
|
|
9159
|
+
}) : L.forEach((C, k) => {
|
|
9159
9160
|
var R, F, V, X;
|
|
9160
9161
|
if (a < 2) {
|
|
9161
9162
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9162
|
-
const Y = G.point([C,
|
|
9163
|
-
dir: ((R = T[
|
|
9164
|
-
spd: T[
|
|
9163
|
+
const Y = G.point([C, _], {
|
|
9164
|
+
dir: ((R = T[_].val) == null ? void 0 : R[k]) || ((F = T[_].dir) == null ? void 0 : F[k]),
|
|
9165
|
+
spd: T[_].spd[k]
|
|
9165
9166
|
});
|
|
9166
9167
|
D.push(Y);
|
|
9167
9168
|
}
|
|
9168
|
-
} else if (C >= x && C <=
|
|
9169
|
-
const Y = G.point([C,
|
|
9170
|
-
dir: ((V = T[
|
|
9171
|
-
spd: T[
|
|
9169
|
+
} else if (C >= x && C <= z && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9170
|
+
const Y = G.point([C, _], {
|
|
9171
|
+
dir: ((V = T[_].val) == null ? void 0 : V[k]) || ((X = T[_].dir) == null ? void 0 : X[k]),
|
|
9172
|
+
spd: T[_].spd[k]
|
|
9172
9173
|
});
|
|
9173
9174
|
D.push(Y);
|
|
9174
9175
|
}
|
|
@@ -9182,35 +9183,35 @@ const bn = {
|
|
|
9182
9183
|
B = !0;
|
|
9183
9184
|
const T = this.weatherLayers[y].raw;
|
|
9184
9185
|
if (T) {
|
|
9185
|
-
const
|
|
9186
|
-
for (const
|
|
9187
|
-
const C = T.Polygon[
|
|
9186
|
+
const _ = [];
|
|
9187
|
+
for (const L in T.Polygon) {
|
|
9188
|
+
const C = T.Polygon[L];
|
|
9188
9189
|
for (const k of C)
|
|
9189
|
-
|
|
9190
|
+
_.push(
|
|
9190
9191
|
G.polygon(k, {
|
|
9191
|
-
val: Number(
|
|
9192
|
+
val: Number(L)
|
|
9192
9193
|
})
|
|
9193
9194
|
);
|
|
9194
9195
|
}
|
|
9195
|
-
for (const
|
|
9196
|
-
const C = T.MultiPolygon[
|
|
9196
|
+
for (const L in T.MultiPolygon) {
|
|
9197
|
+
const C = T.MultiPolygon[L];
|
|
9197
9198
|
for (const k of C)
|
|
9198
|
-
|
|
9199
|
+
_.push(
|
|
9199
9200
|
G.multiPolygon(k, {
|
|
9200
|
-
val: Number(
|
|
9201
|
+
val: Number(L)
|
|
9201
9202
|
})
|
|
9202
9203
|
);
|
|
9203
9204
|
}
|
|
9204
|
-
for (const
|
|
9205
|
-
const C = T.Point[
|
|
9205
|
+
for (const L in T.Point) {
|
|
9206
|
+
const C = T.Point[L];
|
|
9206
9207
|
for (let k = 0; k < ((b = C.lng) == null ? void 0 : b.length); k++)
|
|
9207
|
-
|
|
9208
|
-
G.point([C.lng[k],
|
|
9208
|
+
_.push(
|
|
9209
|
+
G.point([C.lng[k], L], {
|
|
9209
9210
|
val: Number(C.val[k])
|
|
9210
9211
|
})
|
|
9211
9212
|
);
|
|
9212
9213
|
}
|
|
9213
|
-
D = D.concat(
|
|
9214
|
+
D = D.concat(_);
|
|
9214
9215
|
}
|
|
9215
9216
|
}
|
|
9216
9217
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -9221,26 +9222,26 @@ const bn = {
|
|
|
9221
9222
|
B = !0;
|
|
9222
9223
|
const T = this.weatherLayers[y].raw;
|
|
9223
9224
|
if (T) {
|
|
9224
|
-
const
|
|
9225
|
-
for (const
|
|
9226
|
-
const C = T.LineString[
|
|
9225
|
+
const _ = [];
|
|
9226
|
+
for (const L in T.LineString) {
|
|
9227
|
+
const C = T.LineString[L];
|
|
9227
9228
|
for (const k of C)
|
|
9228
|
-
|
|
9229
|
+
_.push(
|
|
9229
9230
|
G.lineString(k, {
|
|
9230
|
-
val: Number(
|
|
9231
|
+
val: Number(L)
|
|
9231
9232
|
})
|
|
9232
9233
|
);
|
|
9233
9234
|
}
|
|
9234
|
-
for (const
|
|
9235
|
-
T.Point[
|
|
9236
|
-
C = q.convertToStdLng(C),
|
|
9237
|
-
G.point([C,
|
|
9238
|
-
val: T.Point[
|
|
9239
|
-
type: T.Point[
|
|
9235
|
+
for (const L in T.Point)
|
|
9236
|
+
T.Point[L].lng.forEach((C, k) => {
|
|
9237
|
+
C = q.convertToStdLng(C), _.push(
|
|
9238
|
+
G.point([C, L], {
|
|
9239
|
+
val: T.Point[L].val[k],
|
|
9240
|
+
type: T.Point[L].type[k]
|
|
9240
9241
|
})
|
|
9241
9242
|
);
|
|
9242
9243
|
});
|
|
9243
|
-
D = D.concat(
|
|
9244
|
+
D = D.concat(_);
|
|
9244
9245
|
}
|
|
9245
9246
|
}
|
|
9246
9247
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
@@ -9292,7 +9293,7 @@ const bn = {
|
|
|
9292
9293
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Zn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, qn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
9293
9294
|
function ic(t, e, o, i, a, r) {
|
|
9294
9295
|
var pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9295
|
-
const l = w("VBtn"), m = w("VTooltip"), c = w("VCol"), f = w("VRow"), d = w("VCardText"), b = w("VDivider"), x = w("VCard"),
|
|
9296
|
+
const l = w("VBtn"), m = w("VTooltip"), c = w("VCol"), f = w("VRow"), d = w("VCardText"), b = w("VDivider"), x = w("VCard"), z = w("VSwitch"), v = w("VBtnToggle"), P = w("VCardTitle"), y = w("VCardItem"), B = w("VCheckbox"), D = w("VRadio"), T = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), L = w("IdmCurrentDirection"), C = w("IdmPrmsl"), k = w("IdmWindParticle"), R = w("IdmCurrentParticle"), F = w("IdmWave"), V = w("IdmSwell"), X = w("IdmIceEdge"), Y = w("IdmIceCover"), Q = w("IdmIceThickness"), $ = w("IdmPrecip3h"), J = w("IdmVisibility"), se = w("IdmWaterTemp"), le = w("IdmTemp");
|
|
9296
9297
|
return g(), S("div", wn, [
|
|
9297
9298
|
s("div", {
|
|
9298
9299
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9462,7 +9463,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9462
9463
|
s("div", Sn, [
|
|
9463
9464
|
s("div", Mn, [
|
|
9464
9465
|
s("div", Dn, n(t.$t("weather.weather")), 1),
|
|
9465
|
-
p(
|
|
9466
|
+
p(z, {
|
|
9466
9467
|
modelValue: a.autoActive,
|
|
9467
9468
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
9468
9469
|
class: "small-switch",
|
|
@@ -9488,7 +9489,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9488
9489
|
]),
|
|
9489
9490
|
o.simple ? (g(), S("div", In, [
|
|
9490
9491
|
s("div", null, n(t.$t("weather.forecastModel")), 1),
|
|
9491
|
-
p(
|
|
9492
|
+
p(v, {
|
|
9492
9493
|
modelValue: a.currentModel,
|
|
9493
9494
|
"onUpdate:modelValue": e[2] || (e[2] = (H) => a.currentModel = H),
|
|
9494
9495
|
rounded: "",
|
|
@@ -9611,7 +9612,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9611
9612
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9612
9613
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), S("div", Rn, [
|
|
9613
9614
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9614
|
-
p(
|
|
9615
|
+
p(z, {
|
|
9615
9616
|
modelValue: a.showWindParticle,
|
|
9616
9617
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
|
|
9617
9618
|
label: "",
|
|
@@ -9626,7 +9627,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9626
9627
|
])) : I("", !0),
|
|
9627
9628
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), S("div", An, [
|
|
9628
9629
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9629
|
-
p(
|
|
9630
|
+
p(z, {
|
|
9630
9631
|
modelValue: a.showCurrentParticle,
|
|
9631
9632
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
|
|
9632
9633
|
label: "",
|
|
@@ -9639,7 +9640,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9639
9640
|
"hide-details": ""
|
|
9640
9641
|
}, null, 8, ["modelValue"])
|
|
9641
9642
|
])) : I("", !0),
|
|
9642
|
-
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(
|
|
9643
|
+
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(v, {
|
|
9643
9644
|
key: 2,
|
|
9644
9645
|
modelValue: a.waveToggleValue,
|
|
9645
9646
|
"onUpdate:modelValue": e[7] || (e[7] = (oe) => a.waveToggleValue = oe),
|
|
@@ -9682,7 +9683,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9682
9683
|
]),
|
|
9683
9684
|
_: 1
|
|
9684
9685
|
}, 8, ["modelValue", "disabled"])) : I("", !0),
|
|
9685
|
-
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(
|
|
9686
|
+
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(v, {
|
|
9686
9687
|
key: 3,
|
|
9687
9688
|
modelValue: a.iceToggleValue,
|
|
9688
9689
|
"onUpdate:modelValue": e[8] || (e[8] = (oe) => a.iceToggleValue = oe),
|
|
@@ -9798,7 +9799,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9798
9799
|
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
9799
9800
|
"menu-toggle": o.menuToggle
|
|
9800
9801
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : I("", !0),
|
|
9801
|
-
o.map ? (g(), A(
|
|
9802
|
+
o.map ? (g(), A(_, j({
|
|
9802
9803
|
key: 2,
|
|
9803
9804
|
map: o.map,
|
|
9804
9805
|
"before-layer": "empty-layer-2",
|
|
@@ -9806,7 +9807,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9806
9807
|
"menu-toggle": o.menuToggle,
|
|
9807
9808
|
"active-weather-layers": a.activeWeatherLayers
|
|
9808
9809
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : I("", !0),
|
|
9809
|
-
o.map ? (g(), A(
|
|
9810
|
+
o.map ? (g(), A(L, j({
|
|
9810
9811
|
key: 3,
|
|
9811
9812
|
map: o.map,
|
|
9812
9813
|
"map-feather": o.mapFeather,
|
|
@@ -10221,11 +10222,11 @@ class Ya {
|
|
|
10221
10222
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10222
10223
|
for (const m of a) {
|
|
10223
10224
|
let c = Lo.find((d) => {
|
|
10224
|
-
var b, x,
|
|
10225
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((
|
|
10225
|
+
var b, x, z;
|
|
10226
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((z = d.name) == null ? void 0 : z.toLowerCase()) === m;
|
|
10226
10227
|
}), f = Po.find((d) => {
|
|
10227
|
-
var b, x,
|
|
10228
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((
|
|
10228
|
+
var b, x, z;
|
|
10229
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((z = d.name) == null ? void 0 : z.toLowerCase()) === m;
|
|
10229
10230
|
});
|
|
10230
10231
|
c = c || Lo.find((d) => {
|
|
10231
10232
|
var b, x;
|
|
@@ -10250,7 +10251,7 @@ class Ya {
|
|
|
10250
10251
|
}), a;
|
|
10251
10252
|
}
|
|
10252
10253
|
static pickHourly(e, o) {
|
|
10253
|
-
var i, a, r, l, m, c, f, d, b, x,
|
|
10254
|
+
var i, a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re;
|
|
10254
10255
|
const W = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.clone().add((m = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : m.at(0), "h"), Ge = re.clone().add((d = (f = (c = fe == null ? void 0 : fe[0]) == null ? void 0 : c.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
|
|
10255
10256
|
if (W.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10256
10257
|
const E = W.utc().diff(je, "h", !1);
|
|
@@ -10264,21 +10265,21 @@ class Ya {
|
|
|
10264
10265
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10265
10266
|
Ne += (x = U == null ? void 0 : U.precipitation) == null ? void 0 : x.at(Le);
|
|
10266
10267
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10267
|
-
N += (
|
|
10268
|
+
N += (z = U == null ? void 0 : U.precipitation) == null ? void 0 : z.at(Le);
|
|
10268
10269
|
we = {
|
|
10269
|
-
temp: (
|
|
10270
|
+
temp: (v = U == null ? void 0 : U.temperature_2m) == null ? void 0 : v.at(E),
|
|
10270
10271
|
apparentTemp: (P = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : P.at(E),
|
|
10271
10272
|
rh: (y = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : y.at(E),
|
|
10272
10273
|
dp: (B = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10273
10274
|
precip: {
|
|
10274
10275
|
probability: (D = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : D.at(E),
|
|
10275
10276
|
sum: (T = U == null ? void 0 : U.precipitation) == null ? void 0 : T.at(E),
|
|
10276
|
-
sum1Hours: (
|
|
10277
|
+
sum1Hours: (_ = U == null ? void 0 : U.precipitation) == null ? void 0 : _.at(E),
|
|
10277
10278
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10278
10279
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
10279
10280
|
sum12Hours: Math.round(N * 100) / 100
|
|
10280
10281
|
},
|
|
10281
|
-
pmsl: (
|
|
10282
|
+
pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(E),
|
|
10282
10283
|
psurf: (C = U == null ? void 0 : U.surface_pressure) == null ? void 0 : C.at(E),
|
|
10283
10284
|
code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(E),
|
|
10284
10285
|
visibility: this.m2nm((R = U == null ? void 0 : U.visibility) == null ? void 0 : R.at(E)),
|
|
@@ -10363,7 +10364,7 @@ class Ya {
|
|
|
10363
10364
|
};
|
|
10364
10365
|
}
|
|
10365
10366
|
static pickDaily(e, o) {
|
|
10366
|
-
var i, a, r, l, m, c, f, d, b, x,
|
|
10367
|
+
var i, a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e;
|
|
10367
10368
|
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((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 = M((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 = [];
|
|
10368
10369
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10369
10370
|
let ge, Re;
|
|
@@ -10379,8 +10380,8 @@ class Ya {
|
|
|
10379
10380
|
mean: (x = ae.temperature_2m_mean) == null ? void 0 : x.at(W)
|
|
10380
10381
|
},
|
|
10381
10382
|
apparentTemp: {
|
|
10382
|
-
max: (
|
|
10383
|
-
min: (
|
|
10383
|
+
max: (z = ae.apparent_temperature_max) == null ? void 0 : z.at(W),
|
|
10384
|
+
min: (v = ae.apparent_temperature_min) == null ? void 0 : v.at(W)
|
|
10384
10385
|
},
|
|
10385
10386
|
precip: {
|
|
10386
10387
|
sum: (P = ae.precipitation_sum) == null ? void 0 : P.at(W),
|
|
@@ -10388,10 +10389,10 @@ class Ya {
|
|
|
10388
10389
|
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10389
10390
|
showersSum: (D = ae.showers_sum) == null ? void 0 : D.at(W),
|
|
10390
10391
|
hours: (T = ae.precipitation_hours) == null ? void 0 : T.at(W),
|
|
10391
|
-
probability: (
|
|
10392
|
+
probability: (_ = ae.precipitation_probability_max) == null ? void 0 : _.at(W)
|
|
10392
10393
|
},
|
|
10393
10394
|
rh: {
|
|
10394
|
-
max: (
|
|
10395
|
+
max: (L = ae.relative_humidity_2m_max) == null ? void 0 : L.at(W),
|
|
10395
10396
|
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10396
10397
|
mean: (k = ae.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
|
|
10397
10398
|
},
|
|
@@ -11058,9 +11059,9 @@ const sc = {
|
|
|
11058
11059
|
},
|
|
11059
11060
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11060
11061
|
}).then((d) => {
|
|
11061
|
-
var
|
|
11062
|
-
const b = Va.convert2Geojson(((
|
|
11063
|
-
((P = (
|
|
11062
|
+
var z, v, P;
|
|
11063
|
+
const b = Va.convert2Geojson(((z = d == null ? void 0 : d.data) == null ? void 0 : z.data) || (d == null ? void 0 : d.data));
|
|
11064
|
+
((P = (v = d == null ? void 0 : d.config) == null ? void 0 : v.headers) == null ? void 0 : P.key) && b && (this.tropicals = {
|
|
11064
11065
|
data: b,
|
|
11065
11066
|
active: !0,
|
|
11066
11067
|
cached: !0,
|
|
@@ -11078,7 +11079,7 @@ const sc = {
|
|
|
11078
11079
|
handleRefresh() {
|
|
11079
11080
|
var e, o;
|
|
11080
11081
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11081
|
-
var a, r, l, m, c, f, d, b, x,
|
|
11082
|
+
var a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k;
|
|
11082
11083
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
11083
11084
|
let R = "";
|
|
11084
11085
|
switch (!0) {
|
|
@@ -11094,7 +11095,7 @@ const sc = {
|
|
|
11094
11095
|
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((x = i.properties) == null ? void 0 : x.kts) < 79):
|
|
11095
11096
|
R = "TY";
|
|
11096
11097
|
break;
|
|
11097
|
-
case (((
|
|
11098
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((v = i.properties) == null ? void 0 : v.kts) < 94):
|
|
11098
11099
|
R = "STY";
|
|
11099
11100
|
break;
|
|
11100
11101
|
case (((P = i.properties.wind) == null ? void 0 : P.kts) >= 94 || ((y = i.properties) == null ? void 0 : y.kts) >= 94):
|
|
@@ -11106,7 +11107,7 @@ const sc = {
|
|
|
11106
11107
|
}
|
|
11107
11108
|
i.properties.level = R;
|
|
11108
11109
|
}
|
|
11109
|
-
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (
|
|
11110
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (_ = (T = M(i.properties.date)) == null ? void 0 : T.utcOffset(this.timeZone)) == null ? void 0 : _.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((L = i.geometry) == null ? void 0 : L.type) === "Point" && (i.properties.Name = ((k = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : k.replace(/^./, (R) => R.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11110
11111
|
}), this.handleInit();
|
|
11111
11112
|
},
|
|
11112
11113
|
handleInit() {
|
|
@@ -11316,8 +11317,8 @@ const sc = {
|
|
|
11316
11317
|
"text-halo-width": 2
|
|
11317
11318
|
}
|
|
11318
11319
|
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x));
|
|
11319
|
-
const
|
|
11320
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11320
|
+
const z = Va.interpolate(this.tropicals, 1);
|
|
11321
|
+
this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
|
|
11321
11322
|
}
|
|
11322
11323
|
},
|
|
11323
11324
|
handleClear() {
|
|
@@ -11325,7 +11326,7 @@ const sc = {
|
|
|
11325
11326
|
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();
|
|
11326
11327
|
},
|
|
11327
11328
|
handleDateChange() {
|
|
11328
|
-
var t, e, o, i, a, r, l, m, c, f, d, b, x,
|
|
11329
|
+
var t, e, o, i, a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe;
|
|
11329
11330
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11330
11331
|
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((O) => O.properties.date === (ie == null ? void 0 : ie.format()) && !O.properties.disabled), ue = this.handleComputePolygons(ce), me = G.featureCollection([...ce]);
|
|
11331
11332
|
ue.forEach((O) => {
|
|
@@ -11366,7 +11367,7 @@ const sc = {
|
|
|
11366
11367
|
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn, he.push(O);
|
|
11367
11368
|
}
|
|
11368
11369
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11369
|
-
((x = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((
|
|
11370
|
+
((x = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((v = (z = O.properties) == null ? void 0 : z.wind) != null && v.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((y = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : y.kts) >= 32 && ((D = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : D.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((_ = (T = O.properties) == null ? void 0 : T.wind) == null ? void 0 : _.kts) >= 47 && ((C = (L = O.properties) == null ? void 0 : L.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((R = (k = O.properties) == null ? void 0 : k.wind) == null ? void 0 : R.kts) >= 63 && ((V = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Y = (X = O.properties) == null ? void 0 : X.wind) == null ? void 0 : Y.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((se = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : se.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11370
11371
|
const be = `<svg t="1719918955501"
|
|
11371
11372
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11372
11373
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11391,7 +11392,7 @@ const sc = {
|
|
|
11391
11392
|
(le = this.map) != null && le.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
|
|
11392
11393
|
},
|
|
11393
11394
|
handleClick(t) {
|
|
11394
|
-
var a, r, l, m, c, f, d, b, x,
|
|
11395
|
+
var a, r, l, m, c, f, d, b, x, z, v;
|
|
11395
11396
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11396
11397
|
(P) => {
|
|
11397
11398
|
var y;
|
|
@@ -11409,7 +11410,7 @@ const sc = {
|
|
|
11409
11410
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11410
11411
|
forecasts: o.map((P) => P.properties),
|
|
11411
11412
|
history: (x = i[0]) == null ? void 0 : x.properties,
|
|
11412
|
-
showCircle: (
|
|
11413
|
+
showCircle: (v = (z = o[0]) == null ? void 0 : z.properties) == null ? void 0 : v.showCircle
|
|
11413
11414
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11414
11415
|
},
|
|
11415
11416
|
drawTropicalsInfoMaker(t) {
|
|
@@ -11562,7 +11563,7 @@ const sc = {
|
|
|
11562
11563
|
class: "d-flex justify-start align-center"
|
|
11563
11564
|
}, Qc = { class: "text-label pr-1" }, $c = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
11564
11565
|
function tm(t, e, o, i, a, r) {
|
|
11565
|
-
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardText"), f = w("VDivider"), d = w("VCardActions"), b = w("VCard"), x = w("v-card-title"),
|
|
11566
|
+
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardText"), f = w("VDivider"), d = w("VCardActions"), b = w("VCard"), x = w("v-card-title"), z = w("v-divider");
|
|
11566
11567
|
return g(), S("div", lc, [
|
|
11567
11568
|
s("div", {
|
|
11568
11569
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11572,8 +11573,8 @@ function tm(t, e, o, i, a, r) {
|
|
|
11572
11573
|
text: t.$t("tropical.tropicals"),
|
|
11573
11574
|
location: "left"
|
|
11574
11575
|
}, {
|
|
11575
|
-
activator: u(({ props:
|
|
11576
|
-
p(l, j(
|
|
11576
|
+
activator: u(({ props: v }) => [
|
|
11577
|
+
p(l, j(v, {
|
|
11577
11578
|
"min-width": "32",
|
|
11578
11579
|
width: "32",
|
|
11579
11580
|
height: "32",
|
|
@@ -11602,11 +11603,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
11602
11603
|
default: u(() => [
|
|
11603
11604
|
p(c, null, {
|
|
11604
11605
|
default: u(() => {
|
|
11605
|
-
var
|
|
11606
|
+
var v, P, y, B, D, T, _, L, C, k, R, F;
|
|
11606
11607
|
return [
|
|
11607
11608
|
s("div", nc, [
|
|
11608
|
-
s("span", cc, n(o.locale === "en" ? (
|
|
11609
|
-
(D = (B = a.activeTropicals) == null ? void 0 : B.history) != null && D.level ? (g(), S("span", mc, ", " + n((
|
|
11609
|
+
s("span", cc, n(o.locale === "en" ? (v = a.activeTropicals) == null ? void 0 : v.Name : ((P = a.activeTropicals) == null ? void 0 : P.nameCn) || ((y = a.activeTropicals) == null ? void 0 : y.Name) || "-"), 1),
|
|
11610
|
+
(D = (B = a.activeTropicals) == null ? void 0 : B.history) != null && D.level ? (g(), S("span", mc, ", " + n((_ = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : _.level), 1)) : I("", !0)
|
|
11610
11611
|
]),
|
|
11611
11612
|
p(l, {
|
|
11612
11613
|
icon: "",
|
|
@@ -11623,7 +11624,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11623
11624
|
}, 8, ["onClick"]),
|
|
11624
11625
|
s("div", hc, [
|
|
11625
11626
|
s("span", dc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11626
|
-
s("span", null, n(r.computeTime(((C = (
|
|
11627
|
+
s("span", null, n(r.computeTime(((C = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : C.updated) || ((F = (R = (k = a.activeTropicals) == null ? void 0 : k.forecasts) == null ? void 0 : R.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
11627
11628
|
])
|
|
11628
11629
|
];
|
|
11629
11630
|
}),
|
|
@@ -11632,12 +11633,12 @@ function tm(t, e, o, i, a, r) {
|
|
|
11632
11633
|
p(f),
|
|
11633
11634
|
p(c, { class: "text-body-1 py-3" }, {
|
|
11634
11635
|
default: u(() => {
|
|
11635
|
-
var
|
|
11636
|
+
var v, P, y, B, D, T, _, L, C;
|
|
11636
11637
|
return [
|
|
11637
11638
|
s("div", pc, [
|
|
11638
11639
|
s("div", uc, [
|
|
11639
11640
|
s("label", gc, n(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11640
|
-
s("span", null, n(((P = (
|
|
11641
|
+
s("span", null, n(((P = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
|
|
11641
11642
|
s("span", null, ", BF " + n(r.computeBF(((B = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
11642
11643
|
]),
|
|
11643
11644
|
s("div", fc, [
|
|
@@ -11648,11 +11649,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
11648
11649
|
s("div", bc, [
|
|
11649
11650
|
s("div", wc, [
|
|
11650
11651
|
s("label", xc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11651
|
-
s("span", null, n(((
|
|
11652
|
+
s("span", null, n(((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.kts) || "-") + " kts", 1)
|
|
11652
11653
|
]),
|
|
11653
11654
|
s("div", vc, [
|
|
11654
11655
|
s("label", _c, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11655
|
-
s("span", null, n(((
|
|
11656
|
+
s("span", null, n(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
11656
11657
|
])
|
|
11657
11658
|
]),
|
|
11658
11659
|
s("div", kc, [
|
|
@@ -11690,7 +11691,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11690
11691
|
variant: "text",
|
|
11691
11692
|
color: a.showLegend ? "primary" : "",
|
|
11692
11693
|
class: "text-none text-body-1",
|
|
11693
|
-
onClick: e[0] || (e[0] = Se((
|
|
11694
|
+
onClick: e[0] || (e[0] = Se((v) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11694
11695
|
}, {
|
|
11695
11696
|
prepend: u(() => e[5] || (e[5] = [
|
|
11696
11697
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
@@ -11706,7 +11707,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11706
11707
|
variant: "text",
|
|
11707
11708
|
density: "compact",
|
|
11708
11709
|
class: "text-none text-body-1",
|
|
11709
|
-
onClick: e[1] || (e[1] = Se((
|
|
11710
|
+
onClick: e[1] || (e[1] = Se((v) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11710
11711
|
}, {
|
|
11711
11712
|
default: u(() => [
|
|
11712
11713
|
K(n(t.$t("actions.notify")), 1)
|
|
@@ -11718,7 +11719,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11718
11719
|
density: "compact",
|
|
11719
11720
|
"append-icon": "mdi-chevron-right",
|
|
11720
11721
|
class: "text-none text-body-1",
|
|
11721
|
-
onClick: e[2] || (e[2] = Se((
|
|
11722
|
+
onClick: e[2] || (e[2] = Se((v) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11722
11723
|
}, {
|
|
11723
11724
|
default: u(() => [
|
|
11724
11725
|
K(n(t.$t("actions.viewReport")), 1)
|
|
@@ -11805,23 +11806,23 @@ function tm(t, e, o, i, a, r) {
|
|
|
11805
11806
|
default: u(() => [
|
|
11806
11807
|
p(x, null, {
|
|
11807
11808
|
default: u(() => {
|
|
11808
|
-
var
|
|
11809
|
+
var v, P, y, B;
|
|
11809
11810
|
return [
|
|
11810
11811
|
s("div", Dc, [
|
|
11811
|
-
s("span", Ic, n(o.locale === "en" ? (
|
|
11812
|
+
s("span", Ic, n(o.locale === "en" ? (v = a.hoverPoint) == null ? void 0 : v.Name : ((P = a.hoverPoint) == null ? void 0 : P.nameCn) || ((y = a.hoverPoint) == null ? void 0 : y.Name)), 1),
|
|
11812
11813
|
s("span", Rc, "[ " + n((B = a.hoverPoint) == null ? void 0 : B.level) + " ]", 1)
|
|
11813
11814
|
])
|
|
11814
11815
|
];
|
|
11815
11816
|
}),
|
|
11816
11817
|
_: 1
|
|
11817
11818
|
}),
|
|
11818
|
-
p(
|
|
11819
|
+
p(z),
|
|
11819
11820
|
p(c, { class: "text-body-1" }, {
|
|
11820
11821
|
default: u(() => {
|
|
11821
|
-
var
|
|
11822
|
+
var v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le;
|
|
11822
11823
|
return [
|
|
11823
11824
|
s("div", Ac, [
|
|
11824
|
-
((
|
|
11825
|
+
((v = a.hoverPoint) == null ? void 0 : v.type) === "forecast" ? (g(), S("div", Oc, [
|
|
11825
11826
|
s("label", Bc, n(t.$t("tropical.updated")) + " : ", 1),
|
|
11826
11827
|
s("span", null, n(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.update, o.timeZone)), 1)
|
|
11827
11828
|
])) : I("", !0),
|
|
@@ -11833,9 +11834,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
11833
11834
|
s("label", Fc, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11834
11835
|
s("span", null, n(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.date, o.timeZone)), 1)
|
|
11835
11836
|
])) : I("", !0),
|
|
11836
|
-
((
|
|
11837
|
+
((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (g(), S("div", Hc, [
|
|
11837
11838
|
s("label", Gc, n(t.$t("tropical.model")) + " : ", 1),
|
|
11838
|
-
s("span", null, n(((
|
|
11839
|
+
s("span", null, n(((L = a.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
|
|
11839
11840
|
])) : I("", !0),
|
|
11840
11841
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (g(), S("div", Wc, [
|
|
11841
11842
|
s("label", Uc, n(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -12068,7 +12069,7 @@ const om = {
|
|
|
12068
12069
|
style: { height: "56px" }
|
|
12069
12070
|
};
|
|
12070
12071
|
function nm(t, e, o, i, a, r) {
|
|
12071
|
-
const l = w("VDatePicker"), m = w("VDivider"), c = w("VListItemTitle"), f = w("VListItem"), d = w("VList"), b = w("VCardText"), x = w("VBtn"),
|
|
12072
|
+
const l = w("VDatePicker"), m = w("VDivider"), c = w("VListItemTitle"), f = w("VListItem"), d = w("VList"), b = w("VCardText"), x = w("VBtn"), z = w("VCardActions"), v = w("VCard");
|
|
12072
12073
|
return g(), S("div", am, [
|
|
12073
12074
|
s("div", {
|
|
12074
12075
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
@@ -12077,7 +12078,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12077
12078
|
}, [
|
|
12078
12079
|
s("span", im, n(a.currentDateTime) + " | UTC " + n(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
12079
12080
|
], 6),
|
|
12080
|
-
a.showDatePicker ? (g(), A(
|
|
12081
|
+
a.showDatePicker ? (g(), A(v, {
|
|
12081
12082
|
key: 0,
|
|
12082
12083
|
class: "card-box d-flex flex-column border",
|
|
12083
12084
|
style: ee(r.getStyle)
|
|
@@ -12138,7 +12139,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12138
12139
|
_: 1
|
|
12139
12140
|
}),
|
|
12140
12141
|
p(m),
|
|
12141
|
-
p(
|
|
12142
|
+
p(z, {
|
|
12142
12143
|
class: "justify-end pa-0 pr-4",
|
|
12143
12144
|
style: { height: "50px" }
|
|
12144
12145
|
}, {
|
|
@@ -12369,7 +12370,7 @@ function pm(t, e, o, i, a, r) {
|
|
|
12369
12370
|
s("div", {
|
|
12370
12371
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12371
12372
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12372
|
-
onClick: e[0] || (e[0] = (...
|
|
12373
|
+
onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
|
|
12373
12374
|
}, [
|
|
12374
12375
|
s("span", hm, n(a.dateRangeStr), 1),
|
|
12375
12376
|
a.dateRangeStr ? (g(), A(l, {
|
|
@@ -12390,7 +12391,7 @@ function pm(t, e, o, i, a, r) {
|
|
|
12390
12391
|
s("div", dm, [
|
|
12391
12392
|
p(m, {
|
|
12392
12393
|
modelValue: a.dateRange,
|
|
12393
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12394
|
+
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.dateRange = z),
|
|
12394
12395
|
min: a.minDate,
|
|
12395
12396
|
max: a.maxDate,
|
|
12396
12397
|
"mode-icon": () => r.currentYear,
|
|
@@ -12658,7 +12659,7 @@ const um = {
|
|
|
12658
12659
|
((o = M(this.realTime)) == null ? void 0 : o.diff(t, "d", !0)) >= 0 ? await this.fetchForecastData(this.form) : await this.fetchHistoryData(this.form);
|
|
12659
12660
|
},
|
|
12660
12661
|
async fetchForecastData(t) {
|
|
12661
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
12662
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
12662
12663
|
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel);
|
|
12663
12664
|
let i = {
|
|
12664
12665
|
lat: t.lat,
|
|
@@ -12679,7 +12680,7 @@ const um = {
|
|
|
12679
12680
|
});
|
|
12680
12681
|
},
|
|
12681
12682
|
async fetchHistoryData(t) {
|
|
12682
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
12683
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
12683
12684
|
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel), i = {
|
|
12684
12685
|
lat: t.lat,
|
|
12685
12686
|
lng: t.lng,
|
|
@@ -12696,10 +12697,10 @@ const um = {
|
|
|
12696
12697
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
|
|
12697
12698
|
},
|
|
12698
12699
|
initTableData(t) {
|
|
12699
|
-
var o, i, a, r, l, m, c, f, d, b, x,
|
|
12700
|
+
var o, i, a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be;
|
|
12700
12701
|
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;
|
|
12701
12702
|
const e = ((l = To.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
12702
|
-
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((
|
|
12703
|
+
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((v = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = ((y = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : y.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((D = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : D.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.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((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((se = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (ce = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((me = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((he = e == null ? void 0 : e.current) == null ? void 0 : he.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.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;
|
|
12703
12704
|
},
|
|
12704
12705
|
handleBind() {
|
|
12705
12706
|
var t, e;
|
|
@@ -12751,10 +12752,7 @@ const um = {
|
|
|
12751
12752
|
},
|
|
12752
12753
|
handleCancelFollow() {
|
|
12753
12754
|
var e;
|
|
12754
|
-
const t = (e = this.
|
|
12755
|
-
var i, a;
|
|
12756
|
-
return ((i = o.coordinate) == null ? void 0 : i.lng) === this.form.lng && ((a = o.coordinate) == null ? void 0 : a.lat) === this.form.lat;
|
|
12757
|
-
})) == null ? void 0 : e.id;
|
|
12755
|
+
const t = (e = this.form) == null ? void 0 : e.followId;
|
|
12758
12756
|
this.$emit("cancelFollow", t);
|
|
12759
12757
|
}
|
|
12760
12758
|
}
|
|
@@ -12818,7 +12816,7 @@ const um = {
|
|
|
12818
12816
|
"aria-hidden": "true"
|
|
12819
12817
|
}, bh = ["xlink:href"];
|
|
12820
12818
|
function wh(t, e, o, i, a, r) {
|
|
12821
|
-
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardTitle"), f = w("VDivider"), d = w("VTextField"), b = w("VCol"), x = w("VRow"),
|
|
12819
|
+
const l = w("VBtn"), m = w("VTooltip"), c = w("VCardTitle"), f = w("VDivider"), d = w("VTextField"), b = w("VCol"), x = w("VRow"), z = w("DateTimePicker"), v = w("VBtnToggle"), P = w("VCardText"), y = w("VCardActions"), B = w("VForm"), D = w("VCard"), T = w("VIcon");
|
|
12822
12820
|
return g(), S("div", gm, [
|
|
12823
12821
|
s("div", {
|
|
12824
12822
|
class: "menu-bar-box transition pa-1",
|
|
@@ -12828,8 +12826,8 @@ function wh(t, e, o, i, a, r) {
|
|
|
12828
12826
|
text: t.$t("spot.spotsMeteo"),
|
|
12829
12827
|
location: "left"
|
|
12830
12828
|
}, {
|
|
12831
|
-
activator: u(({ props:
|
|
12832
|
-
p(l, j(
|
|
12829
|
+
activator: u(({ props: _ }) => [
|
|
12830
|
+
p(l, j(_, {
|
|
12833
12831
|
"min-width": "32",
|
|
12834
12832
|
width: "32",
|
|
12835
12833
|
height: "32",
|
|
@@ -12900,7 +12898,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
12900
12898
|
default: u(() => [
|
|
12901
12899
|
p(d, {
|
|
12902
12900
|
modelValue: a.form.lngDegree,
|
|
12903
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
12901
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
12904
12902
|
rules: a.formRules.lngDegree,
|
|
12905
12903
|
density: "compact",
|
|
12906
12904
|
variant: "outlined",
|
|
@@ -12920,7 +12918,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
12920
12918
|
default: u(() => [
|
|
12921
12919
|
p(d, {
|
|
12922
12920
|
modelValue: a.form.lngMinute,
|
|
12923
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12921
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
12924
12922
|
rules: a.formRules.lngMinute,
|
|
12925
12923
|
label: "",
|
|
12926
12924
|
density: "compact",
|
|
@@ -12947,7 +12945,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
12947
12945
|
height: "32",
|
|
12948
12946
|
class: "text-body-1 btn-bg-1",
|
|
12949
12947
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12950
|
-
onClick: e[2] || (e[2] = (
|
|
12948
|
+
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
12951
12949
|
}, {
|
|
12952
12950
|
default: u(() => [
|
|
12953
12951
|
K(n(a.form.lngDirection), 1)
|
|
@@ -12977,7 +12975,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
12977
12975
|
default: u(() => [
|
|
12978
12976
|
p(d, {
|
|
12979
12977
|
modelValue: a.form.latDegree,
|
|
12980
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
12978
|
+
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
12981
12979
|
rules: a.formRules.latDegree,
|
|
12982
12980
|
label: "",
|
|
12983
12981
|
density: "compact",
|
|
@@ -13000,7 +12998,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13000
12998
|
default: u(() => [
|
|
13001
12999
|
p(d, {
|
|
13002
13000
|
modelValue: a.form.latMinute,
|
|
13003
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13001
|
+
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
13004
13002
|
rules: a.formRules.latMinute,
|
|
13005
13003
|
label: "",
|
|
13006
13004
|
density: "compact",
|
|
@@ -13027,7 +13025,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13027
13025
|
height: "32",
|
|
13028
13026
|
class: "text-body-1 btn-bg-1",
|
|
13029
13027
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13030
|
-
onClick: e[5] || (e[5] = (
|
|
13028
|
+
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13031
13029
|
}, {
|
|
13032
13030
|
default: u(() => [
|
|
13033
13031
|
K(n(a.form.latDirection), 1)
|
|
@@ -13055,11 +13053,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
13055
13053
|
class: "pa-0"
|
|
13056
13054
|
}, {
|
|
13057
13055
|
default: u(() => [
|
|
13058
|
-
p(
|
|
13056
|
+
p(z, j({
|
|
13059
13057
|
"date-time": a.form.dateTime,
|
|
13060
13058
|
"time-zone": o.timeZone
|
|
13061
13059
|
}, t.$attrs, {
|
|
13062
|
-
onDateTime: e[6] || (e[6] = (
|
|
13060
|
+
onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
|
|
13063
13061
|
}), null, 16, ["date-time", "time-zone"])
|
|
13064
13062
|
]),
|
|
13065
13063
|
_: 1
|
|
@@ -13082,9 +13080,9 @@ function wh(t, e, o, i, a, r) {
|
|
|
13082
13080
|
class: "pa-0"
|
|
13083
13081
|
}, {
|
|
13084
13082
|
default: u(() => [
|
|
13085
|
-
p(
|
|
13083
|
+
p(v, {
|
|
13086
13084
|
modelValue: a.form.forecastModel,
|
|
13087
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13085
|
+
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
13088
13086
|
class: "w-100",
|
|
13089
13087
|
rounded: "",
|
|
13090
13088
|
height: "30",
|
|
@@ -13201,18 +13199,18 @@ function wh(t, e, o, i, a, r) {
|
|
|
13201
13199
|
p(f),
|
|
13202
13200
|
p(P, { class: "text-body-1 px-0 py-1" }, {
|
|
13203
13201
|
default: u(() => {
|
|
13204
|
-
var
|
|
13202
|
+
var _, L;
|
|
13205
13203
|
return [
|
|
13206
13204
|
s("div", Im, [
|
|
13207
13205
|
s("div", Rm, n(t.$t("time.time")), 1),
|
|
13208
|
-
s("div", Am, n(r.computedTzTime((
|
|
13206
|
+
s("div", Am, n(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
13209
13207
|
]),
|
|
13210
13208
|
s("div", Om, [
|
|
13211
13209
|
e[18] || (e[18] = s("div", {
|
|
13212
13210
|
style: { width: "100px" },
|
|
13213
13211
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13214
13212
|
}, "LT", -1)),
|
|
13215
|
-
s("div", Bm, n(r.computedLocalTime((
|
|
13213
|
+
s("div", Bm, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
13216
13214
|
]),
|
|
13217
13215
|
s("div", jm, [
|
|
13218
13216
|
s("div", Em, n(t.$t("weather.wind")), 1),
|
|
@@ -13239,9 +13237,9 @@ function wh(t, e, o, i, a, r) {
|
|
|
13239
13237
|
p(f),
|
|
13240
13238
|
p(y, { class: "d-flex justify-space-between align-center" }, {
|
|
13241
13239
|
default: u(() => [
|
|
13242
|
-
o.followList.some((
|
|
13243
|
-
var
|
|
13244
|
-
return ((
|
|
13240
|
+
o.followList.some((_) => {
|
|
13241
|
+
var L, C;
|
|
13242
|
+
return ((L = _ == null ? void 0 : _.coordinate) == null ? void 0 : L.lng) === a.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
13245
13243
|
}) ? (g(), A(l, {
|
|
13246
13244
|
key: 0,
|
|
13247
13245
|
class: "text-none text-body-1",
|
|
@@ -13313,10 +13311,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13313
13311
|
s("div", eh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
13314
13312
|
]),
|
|
13315
13313
|
s("div", th, [
|
|
13316
|
-
o.followList.some((
|
|
13317
|
-
var z, C;
|
|
13318
|
-
return ((z = v == null ? void 0 : v.coordinate) == null ? void 0 : z.lng) === a.form.lng && ((C = v == null ? void 0 : v.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
13319
|
-
}) ? (g(), A(l, {
|
|
13314
|
+
o.followList.some((_) => (_ == null ? void 0 : _.id) === a.form.followId) ? (g(), A(l, {
|
|
13320
13315
|
key: 0,
|
|
13321
13316
|
class: "text-none text-body-1 rounded-circle",
|
|
13322
13317
|
variant: "text",
|
|
@@ -13375,18 +13370,18 @@ function wh(t, e, o, i, a, r) {
|
|
|
13375
13370
|
p(f),
|
|
13376
13371
|
p(P, { class: "text-body-1 px-0 py-2" }, {
|
|
13377
13372
|
default: u(() => {
|
|
13378
|
-
var
|
|
13373
|
+
var _, L;
|
|
13379
13374
|
return [
|
|
13380
13375
|
s("div", oh, [
|
|
13381
13376
|
s("div", ah, n(t.$t("time.time")), 1),
|
|
13382
|
-
s("div", ih, n(r.computedTzTime((
|
|
13377
|
+
s("div", ih, n(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
13383
13378
|
]),
|
|
13384
13379
|
s("div", rh, [
|
|
13385
13380
|
e[22] || (e[22] = s("div", {
|
|
13386
13381
|
style: { width: "60px" },
|
|
13387
13382
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13388
13383
|
}, "LT", -1)),
|
|
13389
|
-
s("div", sh, n(r.computedLocalTime((
|
|
13384
|
+
s("div", sh, n(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
13390
13385
|
]),
|
|
13391
13386
|
s("div", lh, [
|
|
13392
13387
|
s("div", nh, [
|
|
@@ -13543,19 +13538,19 @@ const vh = {
|
|
|
13543
13538
|
var B;
|
|
13544
13539
|
return ((B = y._element) == null ? void 0 : B.id) === e;
|
|
13545
13540
|
})[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]);
|
|
13546
|
-
let
|
|
13541
|
+
let v;
|
|
13547
13542
|
x.features.forEach((y, B) => {
|
|
13548
13543
|
if (y.geometry.type === "Point" && y.properties.id === e.split("-")[1]) {
|
|
13549
|
-
|
|
13544
|
+
v = B;
|
|
13550
13545
|
return;
|
|
13551
13546
|
}
|
|
13552
13547
|
});
|
|
13553
13548
|
const P = x.features.filter((y) => y.geometry.type === "Point");
|
|
13554
13549
|
this.handleTmpPointUpdate(
|
|
13555
13550
|
x,
|
|
13556
|
-
P[
|
|
13557
|
-
{ 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: P[
|
|
13558
|
-
|
|
13551
|
+
P[v - 1],
|
|
13552
|
+
{ 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: P[v].properties },
|
|
13553
|
+
v === P.length - 1 ? void 0 : P[v + 1]
|
|
13559
13554
|
);
|
|
13560
13555
|
}
|
|
13561
13556
|
},
|
|
@@ -13568,8 +13563,8 @@ const vh = {
|
|
|
13568
13563
|
var y;
|
|
13569
13564
|
return ((y = P._element) == null ? void 0 : y.id) === e;
|
|
13570
13565
|
})[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]);
|
|
13571
|
-
const
|
|
13572
|
-
|
|
13566
|
+
const v = x.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
|
|
13567
|
+
v.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((P) => P.geometry.type === "Point"), this.handlePointUpdate(x);
|
|
13573
13568
|
}
|
|
13574
13569
|
},
|
|
13575
13570
|
handleContextmenu(t) {
|
|
@@ -13621,10 +13616,10 @@ const vh = {
|
|
|
13621
13616
|
o = q.roundPrecision(o + d, 4);
|
|
13622
13617
|
let x;
|
|
13623
13618
|
m.mode === "RL" ? x = q.convertToMonotonicLng([c, f]) : x = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
|
|
13624
|
-
const
|
|
13625
|
-
|
|
13626
|
-
const
|
|
13627
|
-
|
|
13619
|
+
const z = G.lineString(x.map((P) => [P.lng, P.lat]));
|
|
13620
|
+
z.properties.dist = d, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
13621
|
+
const v = e[a];
|
|
13622
|
+
v.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), v.properties.sumLabel = v.properties.totalDist + " nm";
|
|
13628
13623
|
}
|
|
13629
13624
|
e.push(...i), t.total = o;
|
|
13630
13625
|
}
|
|
@@ -13638,7 +13633,7 @@ const vh = {
|
|
|
13638
13633
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
13639
13634
|
let b;
|
|
13640
13635
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
13641
|
-
const x = G.lineString(b.map((
|
|
13636
|
+
const x = G.lineString(b.map((z) => [z.lng, z.lat]));
|
|
13642
13637
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
13643
13638
|
}
|
|
13644
13639
|
if (i) {
|
|
@@ -13646,7 +13641,7 @@ const vh = {
|
|
|
13646
13641
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
13647
13642
|
let b;
|
|
13648
13643
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
13649
|
-
const x = G.lineString(b.map((
|
|
13644
|
+
const x = G.lineString(b.map((z) => [z.lng, z.lat]));
|
|
13650
13645
|
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
13651
13646
|
}
|
|
13652
13647
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -13788,11 +13783,11 @@ const vh = {
|
|
|
13788
13783
|
}
|
|
13789
13784
|
},
|
|
13790
13785
|
handleClear(t, e = !0) {
|
|
13791
|
-
var l, m, c, f, d, b, x,
|
|
13786
|
+
var l, m, c, f, d, b, x, z, v, P;
|
|
13792
13787
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
13793
13788
|
(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((y) => {
|
|
13794
13789
|
y == null || y.remove();
|
|
13795
|
-
}), this.pointMarkers[t.id] = [], (
|
|
13790
|
+
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
13796
13791
|
}
|
|
13797
13792
|
}
|
|
13798
13793
|
}, _h = { class: "idm-gl4-measure" };
|
|
@@ -13958,7 +13953,7 @@ const Lh = {
|
|
|
13958
13953
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13959
13954
|
}, Ih = ["onClick"], Rh = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ah = { class: "text-body-1" };
|
|
13960
13955
|
function Oh(t, e, o, i, a, r) {
|
|
13961
|
-
const l = w("DateTimePicker"), m = w("VListItemTitle"), c = w("VListItem"), f = w("VList"), d = w("VMenu"), b = w("VBtn"), x = w("VDivider"),
|
|
13956
|
+
const l = w("DateTimePicker"), m = w("VListItemTitle"), c = w("VListItem"), f = w("VList"), d = w("VMenu"), b = w("VBtn"), x = w("VDivider"), z = w("VTooltip");
|
|
13962
13957
|
return g(), S("div", Ph, [
|
|
13963
13958
|
s("div", {
|
|
13964
13959
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -13972,10 +13967,10 @@ function Oh(t, e, o, i, a, r) {
|
|
|
13972
13967
|
"day-about": a.dayAbout,
|
|
13973
13968
|
"interval-hour": a.intervalHour
|
|
13974
13969
|
}, t.$attrs, {
|
|
13975
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13976
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13977
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
13978
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
13970
|
+
onCurrentTimestamp: e[0] || (e[0] = (v) => a.currentTimestamp = v),
|
|
13971
|
+
onCurrentRealTime: e[1] || (e[1] = (v) => a.currentRealTime = v),
|
|
13972
|
+
onMinTimestamp: e[2] || (e[2] = (v) => a.minTimestamp = v),
|
|
13973
|
+
onMaxTimestamp: e[3] || (e[3] = (v) => a.maxTimestamp = v)
|
|
13979
13974
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13980
13975
|
p(b, {
|
|
13981
13976
|
text: "",
|
|
@@ -13989,13 +13984,13 @@ function Oh(t, e, o, i, a, r) {
|
|
|
13989
13984
|
default: u(() => [
|
|
13990
13985
|
p(f, { class: "pa-1" }, {
|
|
13991
13986
|
default: u(() => [
|
|
13992
|
-
(g(!0), S(xe, null, ke(a.intervalOptions, (
|
|
13987
|
+
(g(!0), S(xe, null, ke(a.intervalOptions, (v, P) => (g(), A(c, {
|
|
13993
13988
|
key: P,
|
|
13994
|
-
value:
|
|
13995
|
-
variant: a.intervalHour ===
|
|
13989
|
+
value: v,
|
|
13990
|
+
variant: a.intervalHour === v ? "tonal" : "text",
|
|
13996
13991
|
color: "primary",
|
|
13997
13992
|
rounded: "",
|
|
13998
|
-
active: a.intervalHour ===
|
|
13993
|
+
active: a.intervalHour === v,
|
|
13999
13994
|
height: "30",
|
|
14000
13995
|
"min-height": "30",
|
|
14001
13996
|
"min-width": "30",
|
|
@@ -14003,10 +13998,10 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14003
13998
|
}, {
|
|
14004
13999
|
default: u(() => [
|
|
14005
14000
|
p(m, {
|
|
14006
|
-
onClick: (y) => a.intervalHour =
|
|
14001
|
+
onClick: (y) => a.intervalHour = v
|
|
14007
14002
|
}, {
|
|
14008
14003
|
default: u(() => [
|
|
14009
|
-
K(n(
|
|
14004
|
+
K(n(v) + "h", 1)
|
|
14010
14005
|
]),
|
|
14011
14006
|
_: 2
|
|
14012
14007
|
}, 1032, ["onClick"])
|
|
@@ -14102,14 +14097,14 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14102
14097
|
style: { height: "16px" }
|
|
14103
14098
|
}),
|
|
14104
14099
|
s("div", Sh, [
|
|
14105
|
-
p(
|
|
14100
|
+
p(z, {
|
|
14106
14101
|
text: t.$t("weather.windBarbs"),
|
|
14107
14102
|
location: "top"
|
|
14108
14103
|
}, {
|
|
14109
|
-
activator: u(({ props:
|
|
14104
|
+
activator: u(({ props: v }) => {
|
|
14110
14105
|
var P, y;
|
|
14111
14106
|
return [
|
|
14112
|
-
p(b, j(
|
|
14107
|
+
p(b, j(v, {
|
|
14113
14108
|
class: "pa-1 d-flex",
|
|
14114
14109
|
color: (P = o.weatherCheckList) != null && P.includes("wind") ? "primary" : "",
|
|
14115
14110
|
variant: (y = o.weatherCheckList) != null && y.includes("wind") ? "elevated" : "text",
|
|
@@ -14128,14 +14123,14 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14128
14123
|
}),
|
|
14129
14124
|
_: 1
|
|
14130
14125
|
}, 8, ["text"]),
|
|
14131
|
-
p(
|
|
14126
|
+
p(z, {
|
|
14132
14127
|
text: t.$t("weather.sigWaveHeight"),
|
|
14133
14128
|
location: "top"
|
|
14134
14129
|
}, {
|
|
14135
|
-
activator: u(({ props:
|
|
14130
|
+
activator: u(({ props: v }) => {
|
|
14136
14131
|
var P, y;
|
|
14137
14132
|
return [
|
|
14138
|
-
p(b, j(
|
|
14133
|
+
p(b, j(v, {
|
|
14139
14134
|
class: "pa-1 d-flex",
|
|
14140
14135
|
color: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "primary" : "",
|
|
14141
14136
|
variant: (y = o.weatherCheckList) != null && y.includes("sig-wave-height") ? "elevated" : "text",
|
|
@@ -14145,7 +14140,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14145
14140
|
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
14146
14141
|
}), {
|
|
14147
14142
|
default: u(() => [
|
|
14148
|
-
s("i", j(
|
|
14143
|
+
s("i", j(v, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
14149
14144
|
]),
|
|
14150
14145
|
_: 2
|
|
14151
14146
|
}, 1040, ["color", "variant"])
|
|
@@ -14153,14 +14148,14 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14153
14148
|
}),
|
|
14154
14149
|
_: 1
|
|
14155
14150
|
}, 8, ["text"]),
|
|
14156
|
-
p(
|
|
14151
|
+
p(z, {
|
|
14157
14152
|
text: t.$t("weather.currentDirection"),
|
|
14158
14153
|
location: "top"
|
|
14159
14154
|
}, {
|
|
14160
|
-
activator: u(({ props:
|
|
14155
|
+
activator: u(({ props: v }) => {
|
|
14161
14156
|
var P, y;
|
|
14162
14157
|
return [
|
|
14163
|
-
p(b, j(
|
|
14158
|
+
p(b, j(v, {
|
|
14164
14159
|
class: "pa-1 d-flex",
|
|
14165
14160
|
color: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "primary" : "",
|
|
14166
14161
|
variant: (y = o.weatherCheckList) != null && y.includes("current-direction") ? "elevated" : "text",
|
|
@@ -14170,7 +14165,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14170
14165
|
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
14171
14166
|
}), {
|
|
14172
14167
|
default: u(() => [
|
|
14173
|
-
s("i", j(
|
|
14168
|
+
s("i", j(v, { class: "iconfont icon-Current" }), null, 16)
|
|
14174
14169
|
]),
|
|
14175
14170
|
_: 2
|
|
14176
14171
|
}, 1040, ["color", "variant"])
|
|
@@ -14178,12 +14173,12 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14178
14173
|
}),
|
|
14179
14174
|
_: 1
|
|
14180
14175
|
}, 8, ["text"]),
|
|
14181
|
-
p(
|
|
14176
|
+
p(z, {
|
|
14182
14177
|
text: t.$t("weather.weatherLayers"),
|
|
14183
14178
|
location: "top"
|
|
14184
14179
|
}, {
|
|
14185
|
-
activator: u(({ props:
|
|
14186
|
-
p(b, j(
|
|
14180
|
+
activator: u(({ props: v }) => [
|
|
14181
|
+
p(b, j(v, {
|
|
14187
14182
|
class: "pa-1 d-flex",
|
|
14188
14183
|
variant: "text",
|
|
14189
14184
|
height: "24",
|
|
@@ -14192,7 +14187,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14192
14187
|
onClick: r.handleClickFastMore
|
|
14193
14188
|
}), {
|
|
14194
14189
|
default: u(() => [
|
|
14195
|
-
s("i", j(
|
|
14190
|
+
s("i", j(v, { class: "iconfont icon-dots-align" }), null, 16)
|
|
14196
14191
|
]),
|
|
14197
14192
|
_: 2
|
|
14198
14193
|
}, 1040, ["onClick"])
|
|
@@ -14211,7 +14206,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14211
14206
|
height: "30",
|
|
14212
14207
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
14213
14208
|
color: a.source === "GFS" ? "primary" : "",
|
|
14214
|
-
onClick: e[7] || (e[7] = (
|
|
14209
|
+
onClick: e[7] || (e[7] = (v) => a.source = "GFS")
|
|
14215
14210
|
}, {
|
|
14216
14211
|
default: u(() => e[16] || (e[16] = [
|
|
14217
14212
|
K("NOAA", -1)
|
|
@@ -14224,7 +14219,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14224
14219
|
height: "30",
|
|
14225
14220
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
14226
14221
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
14227
|
-
onClick: e[8] || (e[8] = (
|
|
14222
|
+
onClick: e[8] || (e[8] = (v) => a.source = "ECMWF")
|
|
14228
14223
|
}, {
|
|
14229
14224
|
default: u(() => e[17] || (e[17] = [
|
|
14230
14225
|
K("ECMWF", -1)
|
|
@@ -14239,11 +14234,11 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14239
14234
|
style: ee({ right: a.right + "px" })
|
|
14240
14235
|
}, [
|
|
14241
14236
|
a.showTimezone ? (g(), S("div", Dh, [
|
|
14242
|
-
(g(!0), S(xe, null, ke(a.offsets, (
|
|
14243
|
-
key:
|
|
14237
|
+
(g(!0), S(xe, null, ke(a.offsets, (v) => (g(), S("div", {
|
|
14238
|
+
key: v,
|
|
14244
14239
|
class: "item rounded text-body-2 hover-active",
|
|
14245
|
-
onClick: (P) => a.timeZone =
|
|
14246
|
-
}, n(
|
|
14240
|
+
onClick: (P) => a.timeZone = v
|
|
14241
|
+
}, n(v < 0 ? v : "+" + v), 9, Ih))), 128))
|
|
14247
14242
|
])) : I("", !0),
|
|
14248
14243
|
s("div", Rh, [
|
|
14249
14244
|
p(b, {
|
|
@@ -14252,7 +14247,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14252
14247
|
height: "28",
|
|
14253
14248
|
class: "pa-1 text-body-1",
|
|
14254
14249
|
color: "primary",
|
|
14255
|
-
onClick: e[9] || (e[9] = (
|
|
14250
|
+
onClick: e[9] || (e[9] = (v) => a.showTimezone = !a.showTimezone)
|
|
14256
14251
|
}, {
|
|
14257
14252
|
default: u(() => [
|
|
14258
14253
|
K(" UTC " + n(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -14551,8 +14546,8 @@ function Gh(t, e, o, i, a, r) {
|
|
|
14551
14546
|
"forecast-model": o.forecastModel,
|
|
14552
14547
|
"map-feather": o.mapFeather
|
|
14553
14548
|
}, t.$attrs, {
|
|
14554
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
14555
|
-
a.otherCheckList =
|
|
14549
|
+
onOtherCheckList: e[0] || (e[0] = (z) => {
|
|
14550
|
+
a.otherCheckList = z, a.layerVersion = a.layerVersion + 1;
|
|
14556
14551
|
})
|
|
14557
14552
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
14558
14553
|
p(m, j({
|
|
@@ -14567,11 +14562,11 @@ function Gh(t, e, o, i, a, r) {
|
|
|
14567
14562
|
"forecast-model": o.forecastModel,
|
|
14568
14563
|
"map-feather": o.mapFeather
|
|
14569
14564
|
}, t.$attrs, {
|
|
14570
|
-
onAutoActive: e[1] || (e[1] = (
|
|
14571
|
-
a.autoActive =
|
|
14565
|
+
onAutoActive: e[1] || (e[1] = (z) => {
|
|
14566
|
+
a.autoActive = z, a.layerVersion = a.layerVersion + 1;
|
|
14572
14567
|
}),
|
|
14573
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
14574
|
-
a.weatherCheckList =
|
|
14568
|
+
onWeatherCheckList: e[2] || (e[2] = (z) => {
|
|
14569
|
+
a.weatherCheckList = z, a.layerVersion = a.layerVersion + 1;
|
|
14575
14570
|
})
|
|
14576
14571
|
}), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
14577
14572
|
p(c, j({
|
|
@@ -14625,7 +14620,7 @@ class Uh {
|
|
|
14625
14620
|
de(this, "hi");
|
|
14626
14621
|
de(this, "td");
|
|
14627
14622
|
de(this, "windy");
|
|
14628
|
-
var o, i, a, r, l, m, c, f, d, b, x,
|
|
14623
|
+
var o, i, a, r, l, m, c, f, d, b, x, z, v, P, y, B, D, T, _, L, C, k, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re, W, fe, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, 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, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
14629
14624
|
this.i4 = {
|
|
14630
14625
|
source: {
|
|
14631
14626
|
type: "raster",
|
|
@@ -33271,11 +33266,11 @@ class Uh {
|
|
|
33271
33266
|
(m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
|
|
33272
33267
|
(f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
33273
33268
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
33274
|
-
(
|
|
33275
|
-
(P = (
|
|
33269
|
+
(z = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : z.find((h) => h.id === "loadlines-fill"),
|
|
33270
|
+
(P = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : P.find((h) => h.id === "empty-layer-0"),
|
|
33276
33271
|
(B = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
33277
33272
|
(T = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : T.find((h) => h.id === "country-boundaries"),
|
|
33278
|
-
(
|
|
33273
|
+
(L = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : L.find((h) => h.id === "water-outline"),
|
|
33279
33274
|
(k = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : k.find((h) => h.id === "water-outline2"),
|
|
33280
33275
|
(F = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
33281
33276
|
(X = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : X.find((h) => h.id === "water-line-label"),
|