@idmwx/idmui-gl4 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var se = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Be from "axios";
|
|
5
5
|
import { useTheme as Ee } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as
|
|
6
|
+
import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
|
|
7
7
|
import we from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import * as E from "@turf/turf";
|
|
10
|
-
import { LayerHelper as oo, CompanyHelper as
|
|
10
|
+
import { LayerHelper as oo, CompanyHelper as Ra } from "@idm-plugin/tag-nop";
|
|
11
11
|
import D from "moment";
|
|
12
12
|
import Da from "@mapbox/sphericalmercator";
|
|
13
13
|
import { LayerHelper as Oa } from "@idm-plugin/tag";
|
|
@@ -1431,8 +1431,8 @@ const Ci = {
|
|
|
1431
1431
|
this.showInfo = !1, (t = this.map) != null && t.getLayer(this.layer) && this.map.setLayoutProperty(this.layer, "visibility", "none");
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
}, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" },
|
|
1435
|
-
function
|
|
1434
|
+
}, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ai = { class: "d-flex justify-start align-center" };
|
|
1435
|
+
function Ri(t, e, o, i, a, r) {
|
|
1436
1436
|
const s = w("VBtn"), c = w("v-card-text"), n = w("v-card");
|
|
1437
1437
|
return He((b(), j(n, { id: "tidal-station-info" }, {
|
|
1438
1438
|
default: u(() => [
|
|
@@ -1467,7 +1467,7 @@ function Ai(t, e, o, i, a, r) {
|
|
|
1467
1467
|
e[4] || (e[4] = l("label", { class: "opacity-70 pr-1" }, "LoCode : ", -1)),
|
|
1468
1468
|
l("span", null, y(a.form.Code || "-"), 1)
|
|
1469
1469
|
]),
|
|
1470
|
-
l("div",
|
|
1470
|
+
l("div", Ai, [
|
|
1471
1471
|
e[5] || (e[5] = l("label", { class: "opacity-70 pr-1" }, "Country : ", -1)),
|
|
1472
1472
|
l("span", null, y(a.form.Country || "-"), 1)
|
|
1473
1473
|
])
|
|
@@ -1481,7 +1481,7 @@ function Ai(t, e, o, i, a, r) {
|
|
|
1481
1481
|
[We, a.showInfo]
|
|
1482
1482
|
]);
|
|
1483
1483
|
}
|
|
1484
|
-
const Di = /* @__PURE__ */ Z(Ci, [["render",
|
|
1484
|
+
const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-fb4aeed3"]]), Oi = {
|
|
1485
1485
|
name: "IdmIceAreas",
|
|
1486
1486
|
props: {
|
|
1487
1487
|
map: {
|
|
@@ -1888,9 +1888,9 @@ const Fi = {
|
|
|
1888
1888
|
})
|
|
1889
1889
|
);
|
|
1890
1890
|
(await Promise.all(g)).map((d) => {
|
|
1891
|
-
var
|
|
1892
|
-
const f = ((
|
|
1893
|
-
this.otherLayers[
|
|
1891
|
+
var x, S, C;
|
|
1892
|
+
const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1893
|
+
this.otherLayers[z] = f;
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
} else if (t.dayNight && e & 1024) {
|
|
@@ -1911,9 +1911,9 @@ const Fi = {
|
|
|
1911
1911
|
})
|
|
1912
1912
|
);
|
|
1913
1913
|
(await Promise.all(g)).map((d) => {
|
|
1914
|
-
var
|
|
1915
|
-
const f = ((
|
|
1916
|
-
this.otherLayers[
|
|
1914
|
+
var x, S, C;
|
|
1915
|
+
const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1916
|
+
this.otherLayers[z] = f;
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
@@ -1943,7 +1943,7 @@ const Fi = {
|
|
|
1943
1943
|
}, Qi = { class: "text-body-2 text-center pt-1" };
|
|
1944
1944
|
function Ji(t, e, o, i, a, r) {
|
|
1945
1945
|
var $, ee, Q, le, de, pe, me, K, ie, ue;
|
|
1946
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"),
|
|
1946
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), k = w("IdmAlertZone"), P = w("IdmPort"), _ = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
|
|
1947
1947
|
return b(), T("div", Hi, [
|
|
1948
1948
|
l("div", {
|
|
1949
1949
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -2177,12 +2177,12 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2177
2177
|
})
|
|
2178
2178
|
])
|
|
2179
2179
|
], 6),
|
|
2180
|
-
o.map ? (b(), j(
|
|
2180
|
+
o.map ? (b(), j(z, B({
|
|
2181
2181
|
key: 0,
|
|
2182
2182
|
map: o.map,
|
|
2183
2183
|
show: a.checkList.includes("tidal-stations")
|
|
2184
2184
|
}, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
|
|
2185
|
-
o.map ? (b(), j(
|
|
2185
|
+
o.map ? (b(), j(x, B({
|
|
2186
2186
|
key: 1,
|
|
2187
2187
|
map: o.map,
|
|
2188
2188
|
show: a.checkList.includes("ice-areas")
|
|
@@ -2215,12 +2215,12 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2215
2215
|
map: o.map,
|
|
2216
2216
|
area: (ee = a.otherLayers) == null ? void 0 : ee["gmdss-areas"]
|
|
2217
2217
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
2218
|
-
o.map ? (b(), j(
|
|
2218
|
+
o.map ? (b(), j(v, B({
|
|
2219
2219
|
key: 7,
|
|
2220
2220
|
map: o.map,
|
|
2221
2221
|
zone: (Q = a.otherLayers) == null ? void 0 : Q["eca-zones"]
|
|
2222
2222
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
2223
|
-
o.map ? (b(), j(
|
|
2223
|
+
o.map ? (b(), j(k, B({
|
|
2224
2224
|
key: 8,
|
|
2225
2225
|
map: o.map,
|
|
2226
2226
|
zone: (le = a.otherLayers) == null ? void 0 : le["alert-zones"]
|
|
@@ -2234,7 +2234,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2234
2234
|
port: (de = a.otherLayers) == null ? void 0 : de.ports,
|
|
2235
2235
|
"forecast-model": o.forecastModel
|
|
2236
2236
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : O("", !0),
|
|
2237
|
-
o.map ? (b(), j(
|
|
2237
|
+
o.map ? (b(), j(_, B({
|
|
2238
2238
|
key: 10,
|
|
2239
2239
|
map: o.map,
|
|
2240
2240
|
line: (pe = a.otherLayers) == null ? void 0 : pe["load-lines"]
|
|
@@ -2314,12 +2314,12 @@ class io {
|
|
|
2314
2314
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
2315
2315
|
*/
|
|
2316
2316
|
getBoundPixel() {
|
|
2317
|
-
var
|
|
2318
|
-
const e = (
|
|
2317
|
+
var x, S;
|
|
2318
|
+
const e = (x = this.map) == null ? void 0 : x.getBounds();
|
|
2319
2319
|
if (!e)
|
|
2320
2320
|
return [];
|
|
2321
|
-
const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([c, a[1]], o),
|
|
2322
|
-
return [d, f, g +
|
|
2321
|
+
const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
2322
|
+
return [d, f, g + z, p];
|
|
2323
2323
|
}
|
|
2324
2324
|
/**
|
|
2325
2325
|
* [视窗边界像素宽度]
|
|
@@ -2502,9 +2502,9 @@ class Ne {
|
|
|
2502
2502
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
2503
2503
|
};
|
|
2504
2504
|
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
2505
|
-
const d = e.getBoundPixel(), f = e.map.getZoom() + 1,
|
|
2506
|
-
for (const
|
|
2507
|
-
const S = (
|
|
2505
|
+
const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
|
|
2506
|
+
for (const x of z) {
|
|
2507
|
+
const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, k] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, k, M, k, L, v, L, k]);
|
|
2508
2508
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, P, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
2509
2509
|
}
|
|
2510
2510
|
} catch (p) {
|
|
@@ -2855,8 +2855,8 @@ const er = {
|
|
|
2855
2855
|
else {
|
|
2856
2856
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
2857
2857
|
for (let n = 0; n < (this.barbs ?? []).length - 1; n++) {
|
|
2858
|
-
const g = (this.barbs ?? [])[n] || 0, p = (this.barbs ?? [])[n + 1] || 0, d = g < 10 ? `00${g}kts` : g < 100 ? `0${g}kts` : `${g}kts`, f = new Image(48, 48),
|
|
2859
|
-
f.src =
|
|
2858
|
+
const g = (this.barbs ?? [])[n] || 0, p = (this.barbs ?? [])[n + 1] || 0, d = g < 10 ? `00${g}kts` : g < 100 ? `0${g}kts` : `${g}kts`, f = new Image(48, 48), z = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
|
|
2859
|
+
f.src = z, f.onload = () => {
|
|
2860
2860
|
this.map.hasImage(d + "-icon") || this.map.addImage(d + "-icon", f), this.map.addLayer(
|
|
2861
2861
|
{
|
|
2862
2862
|
id: d,
|
|
@@ -4196,8 +4196,8 @@ function Ir(t, e, o, i, a, r) {
|
|
|
4196
4196
|
]), 4)
|
|
4197
4197
|
])) : O("", !0);
|
|
4198
4198
|
}
|
|
4199
|
-
const
|
|
4200
|
-
const
|
|
4199
|
+
const Ar = /* @__PURE__ */ Z(Mr, [["render", Ir]]);
|
|
4200
|
+
const Rr = {
|
|
4201
4201
|
name: "IdmCover",
|
|
4202
4202
|
props: {
|
|
4203
4203
|
factor: {
|
|
@@ -4306,7 +4306,7 @@ function Or(t, e, o, i, a, r) {
|
|
|
4306
4306
|
]), 4)
|
|
4307
4307
|
])) : O("", !0);
|
|
4308
4308
|
}
|
|
4309
|
-
const Br = /* @__PURE__ */ Z(
|
|
4309
|
+
const Br = /* @__PURE__ */ Z(Rr, [["render", Or], ["__scopeId", "data-v-9696d73b"]]);
|
|
4310
4310
|
const Er = {
|
|
4311
4311
|
name: "IdmThickness",
|
|
4312
4312
|
props: {
|
|
@@ -4904,7 +4904,7 @@ const al = {
|
|
|
4904
4904
|
IdmSigWaveHeight: vr,
|
|
4905
4905
|
IdmSwell: zr,
|
|
4906
4906
|
IdmPrmsl: Sr,
|
|
4907
|
-
IdmIceEdge:
|
|
4907
|
+
IdmIceEdge: Ar,
|
|
4908
4908
|
IdmIceCover: Br,
|
|
4909
4909
|
IdmIceThickness: Fr,
|
|
4910
4910
|
IdmPrecip3h: Ur,
|
|
@@ -5151,7 +5151,7 @@ const al = {
|
|
|
5151
5151
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
5152
5152
|
let o = 0, i = 0;
|
|
5153
5153
|
if (this.map) {
|
|
5154
|
-
const
|
|
5154
|
+
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, x = (r = this.map) == null ? void 0 : r.getBounds(), S = `${x._sw.lng},${x._sw.lat},${x._ne.lng},${x._ne.lat}`;
|
|
5155
5155
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
5156
5156
|
const C = oo.WEATHER_LAYERS.find((N) => {
|
|
5157
5157
|
var M;
|
|
@@ -5163,7 +5163,7 @@ const al = {
|
|
|
5163
5163
|
let C = this.weatherWeight;
|
|
5164
5164
|
if (C > 0) {
|
|
5165
5165
|
const N = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], M = await Be.get(
|
|
5166
|
-
`${N}/api/arc/weather/layers2/links?l=${C}&v=${this.forecastModel}&z=${
|
|
5166
|
+
`${N}/api/arc/weather/layers2/links?l=${C}&v=${this.forecastModel}&z=${z}&bbox=${S}&t=${this.realTime}`,
|
|
5167
5167
|
{
|
|
5168
5168
|
headers: {
|
|
5169
5169
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -5171,46 +5171,46 @@ const al = {
|
|
|
5171
5171
|
}
|
|
5172
5172
|
);
|
|
5173
5173
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = M == null ? void 0 : M.data) == null ? void 0 : c.code) === 0) {
|
|
5174
|
-
const L = (n = M == null ? void 0 : M.data) == null ? void 0 : n.data,
|
|
5174
|
+
const L = (n = M == null ? void 0 : M.data) == null ? void 0 : n.data, v = [];
|
|
5175
5175
|
for (const P in L)
|
|
5176
|
-
|
|
5176
|
+
v.push(
|
|
5177
5177
|
Be.get(L[P], {
|
|
5178
5178
|
headers: {
|
|
5179
5179
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5180
5180
|
key: P
|
|
5181
5181
|
},
|
|
5182
5182
|
responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
|
|
5183
|
-
}).catch((
|
|
5184
|
-
console.log(`[${P}] fetch layer error: ${
|
|
5183
|
+
}).catch((_) => {
|
|
5184
|
+
console.log(`[${P}] fetch layer error: ${_}`);
|
|
5185
5185
|
})
|
|
5186
5186
|
);
|
|
5187
|
-
const
|
|
5188
|
-
this.weatherLayers = {},
|
|
5187
|
+
const k = await Promise.all(v);
|
|
5188
|
+
this.weatherLayers = {}, k.map((P) => {
|
|
5189
5189
|
var V, X, q, Y;
|
|
5190
|
-
const
|
|
5190
|
+
const _ = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
|
|
5191
5191
|
let I = (q = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : q.key;
|
|
5192
|
-
I &&
|
|
5193
|
-
raw:
|
|
5192
|
+
I && _ && (this.weatherLayers[I] = {
|
|
5193
|
+
raw: _,
|
|
5194
5194
|
type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
5195
5195
|
etime: M.data.etime
|
|
5196
5196
|
});
|
|
5197
5197
|
});
|
|
5198
5198
|
}
|
|
5199
5199
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
5200
|
-
const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw,
|
|
5200
|
+
const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
5201
5201
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5202
5202
|
type: "json",
|
|
5203
5203
|
direction: L,
|
|
5204
|
-
height: { raw:
|
|
5204
|
+
height: { raw: v },
|
|
5205
5205
|
etime: M.data.etime
|
|
5206
5206
|
};
|
|
5207
5207
|
}
|
|
5208
5208
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
5209
|
-
const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw,
|
|
5209
|
+
const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, v = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
5210
5210
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
5211
5211
|
type: "json",
|
|
5212
5212
|
direction: L,
|
|
5213
|
-
speed: { raw:
|
|
5213
|
+
speed: { raw: v },
|
|
5214
5214
|
etime: M.data.etime
|
|
5215
5215
|
};
|
|
5216
5216
|
}
|
|
@@ -5271,7 +5271,7 @@ const al = {
|
|
|
5271
5271
|
);
|
|
5272
5272
|
},
|
|
5273
5273
|
handleDrawWeather4Json() {
|
|
5274
|
-
var g, p, d, f,
|
|
5274
|
+
var g, p, d, f, z, x, S;
|
|
5275
5275
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
5276
5276
|
let e = 0, o = 0;
|
|
5277
5277
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
@@ -5282,165 +5282,165 @@ const al = {
|
|
|
5282
5282
|
if (C === "swell") {
|
|
5283
5283
|
N = !0;
|
|
5284
5284
|
const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
|
|
5285
|
-
for (const
|
|
5286
|
-
if (
|
|
5287
|
-
const P = L[
|
|
5288
|
-
r > s ? P.forEach((
|
|
5285
|
+
for (const k in L)
|
|
5286
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5287
|
+
const P = L[k].lng;
|
|
5288
|
+
r > s ? P.forEach((_, I) => {
|
|
5289
5289
|
var V, X, q, Y, $, ee;
|
|
5290
5290
|
if (a < 2) {
|
|
5291
|
-
if ((
|
|
5292
|
-
const Q = E.point([
|
|
5293
|
-
val: ((V = L[
|
|
5294
|
-
spd: (q = L[
|
|
5291
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
5292
|
+
const Q = E.point([_, k], {
|
|
5293
|
+
val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
|
|
5294
|
+
spd: (q = L[k].spd) == null ? void 0 : q[I]
|
|
5295
5295
|
});
|
|
5296
5296
|
M.push(Q);
|
|
5297
5297
|
}
|
|
5298
|
-
} else if ((
|
|
5299
|
-
const Q = E.point([
|
|
5300
|
-
val: ((Y = L[
|
|
5301
|
-
spd: (ee = L[
|
|
5298
|
+
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= s) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5299
|
+
const Q = E.point([_, k], {
|
|
5300
|
+
val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
|
|
5301
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[I]
|
|
5302
5302
|
});
|
|
5303
5303
|
M.push(Q);
|
|
5304
5304
|
}
|
|
5305
|
-
}) : P.forEach((
|
|
5305
|
+
}) : P.forEach((_, I) => {
|
|
5306
5306
|
var V, X, q, Y, $, ee;
|
|
5307
5307
|
if (r < 2) {
|
|
5308
|
-
if ((
|
|
5309
|
-
const Q = E.point([
|
|
5310
|
-
val: ((V = L[
|
|
5311
|
-
spd: (q = L[
|
|
5308
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
5309
|
+
const Q = E.point([_, k], {
|
|
5310
|
+
val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
|
|
5311
|
+
spd: (q = L[k].spd) == null ? void 0 : q[I]
|
|
5312
5312
|
});
|
|
5313
5313
|
M.push(Q);
|
|
5314
5314
|
}
|
|
5315
|
-
} else if (
|
|
5316
|
-
const Q = E.point([
|
|
5317
|
-
val: ((Y = L[
|
|
5318
|
-
spd: (ee = L[
|
|
5315
|
+
} else if (_ >= r && _ <= s && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5316
|
+
const Q = E.point([_, k], {
|
|
5317
|
+
val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
|
|
5318
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[I]
|
|
5319
5319
|
});
|
|
5320
5320
|
M.push(Q);
|
|
5321
5321
|
}
|
|
5322
5322
|
});
|
|
5323
5323
|
}
|
|
5324
5324
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
5325
|
-
const
|
|
5326
|
-
if (
|
|
5327
|
-
if (!
|
|
5328
|
-
const
|
|
5329
|
-
for (const P in (f =
|
|
5330
|
-
const
|
|
5331
|
-
for (const I of
|
|
5332
|
-
|
|
5325
|
+
const v = this.weatherLayers[C].height;
|
|
5326
|
+
if (v) {
|
|
5327
|
+
if (!v.data) {
|
|
5328
|
+
const k = [];
|
|
5329
|
+
for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
|
|
5330
|
+
const _ = v.raw.LineString[P];
|
|
5331
|
+
for (const I of _)
|
|
5332
|
+
k.push(
|
|
5333
5333
|
E.lineString(I, {
|
|
5334
5334
|
val: Number(P)
|
|
5335
5335
|
})
|
|
5336
5336
|
);
|
|
5337
|
-
|
|
5337
|
+
v.data = E.featureCollection(k);
|
|
5338
5338
|
}
|
|
5339
5339
|
}
|
|
5340
|
-
if (
|
|
5341
|
-
const
|
|
5342
|
-
M = M.concat(
|
|
5340
|
+
if (v.data) {
|
|
5341
|
+
const k = this.handleBboxClip(v.data, i);
|
|
5342
|
+
M = M.concat(k);
|
|
5343
5343
|
}
|
|
5344
5344
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
5345
5345
|
}
|
|
5346
5346
|
} else if (C === "current") {
|
|
5347
5347
|
N = !0;
|
|
5348
|
-
const L = ((
|
|
5349
|
-
for (const
|
|
5350
|
-
if (
|
|
5351
|
-
const P = L[
|
|
5352
|
-
r > s ? P.forEach((
|
|
5348
|
+
const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
|
|
5349
|
+
for (const k in L)
|
|
5350
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5351
|
+
const P = L[k].lng;
|
|
5352
|
+
r > s ? P.forEach((_, I) => {
|
|
5353
5353
|
var V, X, q, Y, $, ee;
|
|
5354
5354
|
if (a < 2) {
|
|
5355
|
-
if ((
|
|
5356
|
-
const Q = E.point([
|
|
5357
|
-
val: ((V = L[
|
|
5358
|
-
spd: (q = L[
|
|
5355
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
5356
|
+
const Q = E.point([_, k], {
|
|
5357
|
+
val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
|
|
5358
|
+
spd: (q = L[k].spd) == null ? void 0 : q[I]
|
|
5359
5359
|
});
|
|
5360
5360
|
M.push(Q);
|
|
5361
5361
|
}
|
|
5362
|
-
} else if ((
|
|
5363
|
-
const Q = E.point([
|
|
5364
|
-
val: ((Y = L[
|
|
5365
|
-
spd: (ee = L[
|
|
5362
|
+
} else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= s) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5363
|
+
const Q = E.point([_, k], {
|
|
5364
|
+
val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
|
|
5365
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[I]
|
|
5366
5366
|
});
|
|
5367
5367
|
M.push(Q);
|
|
5368
5368
|
}
|
|
5369
|
-
}) : P.forEach((
|
|
5369
|
+
}) : P.forEach((_, I) => {
|
|
5370
5370
|
var V, X, q, Y, $, ee;
|
|
5371
5371
|
if (r < 2) {
|
|
5372
|
-
if ((
|
|
5373
|
-
const Q = E.point([
|
|
5374
|
-
val: ((V = L[
|
|
5375
|
-
spd: (q = L[
|
|
5372
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
5373
|
+
const Q = E.point([_, k], {
|
|
5374
|
+
val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
|
|
5375
|
+
spd: (q = L[k].spd) == null ? void 0 : q[I]
|
|
5376
5376
|
});
|
|
5377
5377
|
M.push(Q);
|
|
5378
5378
|
}
|
|
5379
|
-
} else if (
|
|
5380
|
-
const Q = E.point([
|
|
5381
|
-
val: ((Y = L[
|
|
5382
|
-
spd: (ee = L[
|
|
5379
|
+
} else if (_ >= r && _ <= s && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5380
|
+
const Q = E.point([_, k], {
|
|
5381
|
+
val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
|
|
5382
|
+
spd: (ee = L[k].spd) == null ? void 0 : ee[I]
|
|
5383
5383
|
});
|
|
5384
5384
|
M.push(Q);
|
|
5385
5385
|
}
|
|
5386
5386
|
});
|
|
5387
5387
|
}
|
|
5388
5388
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
5389
|
-
const
|
|
5390
|
-
if (
|
|
5391
|
-
if (!
|
|
5389
|
+
const v = this.weatherLayers[C].speed;
|
|
5390
|
+
if (v) {
|
|
5391
|
+
if (!v.data) {
|
|
5392
5392
|
const P = [];
|
|
5393
|
-
for (const
|
|
5394
|
-
const I =
|
|
5393
|
+
for (const _ in (x = v.raw) == null ? void 0 : x.Polygon) {
|
|
5394
|
+
const I = v.raw.Polygon[_];
|
|
5395
5395
|
for (const V of I)
|
|
5396
5396
|
P.push(
|
|
5397
5397
|
E.polygon(V, {
|
|
5398
|
-
val: Number(
|
|
5398
|
+
val: Number(_)
|
|
5399
5399
|
})
|
|
5400
5400
|
);
|
|
5401
5401
|
}
|
|
5402
|
-
|
|
5402
|
+
v.data = E.featureCollection(P);
|
|
5403
5403
|
}
|
|
5404
|
-
const
|
|
5405
|
-
M = M.concat(
|
|
5404
|
+
const k = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
|
|
5405
|
+
M = M.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
5406
5406
|
}
|
|
5407
5407
|
} else if (C === "wind") {
|
|
5408
5408
|
N = !0;
|
|
5409
5409
|
const L = this.weatherLayers.wind.raw;
|
|
5410
|
-
for (const
|
|
5411
|
-
if (
|
|
5412
|
-
const
|
|
5413
|
-
r > s ?
|
|
5410
|
+
for (const v in L)
|
|
5411
|
+
if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5412
|
+
const k = L[v].lng;
|
|
5413
|
+
r > s ? k.forEach((P, _) => {
|
|
5414
5414
|
var I, V, X, q;
|
|
5415
5415
|
if (a < 2) {
|
|
5416
5416
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5417
|
-
const Y = E.point([P,
|
|
5418
|
-
dir: ((I = L[
|
|
5419
|
-
spd: L[
|
|
5417
|
+
const Y = E.point([P, v], {
|
|
5418
|
+
dir: ((I = L[v].val) == null ? void 0 : I[_]) || ((V = L[v].dir) == null ? void 0 : V[_]),
|
|
5419
|
+
spd: L[v].spd[_]
|
|
5420
5420
|
});
|
|
5421
5421
|
M.push(Y);
|
|
5422
5422
|
}
|
|
5423
5423
|
} else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5424
|
-
const Y = E.point([P,
|
|
5425
|
-
dir: ((X = L[
|
|
5426
|
-
spd: L[
|
|
5424
|
+
const Y = E.point([P, v], {
|
|
5425
|
+
dir: ((X = L[v].val) == null ? void 0 : X[_]) || ((q = L[v].dir) == null ? void 0 : q[_]),
|
|
5426
|
+
spd: L[v].spd[_]
|
|
5427
5427
|
});
|
|
5428
5428
|
M.push(Y);
|
|
5429
5429
|
}
|
|
5430
|
-
}) :
|
|
5430
|
+
}) : k.forEach((P, _) => {
|
|
5431
5431
|
var I, V, X, q;
|
|
5432
5432
|
if (a < 2) {
|
|
5433
5433
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5434
|
-
const Y = E.point([P,
|
|
5435
|
-
dir: ((I = L[
|
|
5436
|
-
spd: L[
|
|
5434
|
+
const Y = E.point([P, v], {
|
|
5435
|
+
dir: ((I = L[v].val) == null ? void 0 : I[_]) || ((V = L[v].dir) == null ? void 0 : V[_]),
|
|
5436
|
+
spd: L[v].spd[_]
|
|
5437
5437
|
});
|
|
5438
5438
|
M.push(Y);
|
|
5439
5439
|
}
|
|
5440
5440
|
} else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5441
|
-
const Y = E.point([P,
|
|
5442
|
-
dir: ((X = L[
|
|
5443
|
-
spd: L[
|
|
5441
|
+
const Y = E.point([P, v], {
|
|
5442
|
+
dir: ((X = L[v].val) == null ? void 0 : X[_]) || ((q = L[v].dir) == null ? void 0 : q[_]),
|
|
5443
|
+
spd: L[v].spd[_]
|
|
5444
5444
|
});
|
|
5445
5445
|
M.push(Y);
|
|
5446
5446
|
}
|
|
@@ -5454,35 +5454,35 @@ const al = {
|
|
|
5454
5454
|
N = !0;
|
|
5455
5455
|
const L = this.weatherLayers[C].raw;
|
|
5456
5456
|
if (L) {
|
|
5457
|
-
const
|
|
5458
|
-
for (const
|
|
5459
|
-
const P = L.Polygon[
|
|
5460
|
-
for (const
|
|
5461
|
-
|
|
5462
|
-
E.polygon(
|
|
5463
|
-
val: Number(
|
|
5457
|
+
const v = [];
|
|
5458
|
+
for (const k in L.Polygon) {
|
|
5459
|
+
const P = L.Polygon[k];
|
|
5460
|
+
for (const _ of P)
|
|
5461
|
+
v.push(
|
|
5462
|
+
E.polygon(_, {
|
|
5463
|
+
val: Number(k)
|
|
5464
5464
|
})
|
|
5465
5465
|
);
|
|
5466
5466
|
}
|
|
5467
|
-
for (const
|
|
5468
|
-
const P = L.MultiPolygon[
|
|
5469
|
-
for (const
|
|
5470
|
-
|
|
5471
|
-
E.multiPolygon(
|
|
5472
|
-
val: Number(
|
|
5467
|
+
for (const k in L.MultiPolygon) {
|
|
5468
|
+
const P = L.MultiPolygon[k];
|
|
5469
|
+
for (const _ of P)
|
|
5470
|
+
v.push(
|
|
5471
|
+
E.multiPolygon(_, {
|
|
5472
|
+
val: Number(k)
|
|
5473
5473
|
})
|
|
5474
5474
|
);
|
|
5475
5475
|
}
|
|
5476
|
-
for (const
|
|
5477
|
-
const P = L.Point[
|
|
5478
|
-
for (let
|
|
5479
|
-
|
|
5480
|
-
E.point([P.lng[
|
|
5481
|
-
val: Number(P.val[
|
|
5476
|
+
for (const k in L.Point) {
|
|
5477
|
+
const P = L.Point[k];
|
|
5478
|
+
for (let _ = 0; _ < ((S = P.lng) == null ? void 0 : S.length); _++)
|
|
5479
|
+
v.push(
|
|
5480
|
+
E.point([P.lng[_], k], {
|
|
5481
|
+
val: Number(P.val[_])
|
|
5482
5482
|
})
|
|
5483
5483
|
);
|
|
5484
5484
|
}
|
|
5485
|
-
M = M.concat(
|
|
5485
|
+
M = M.concat(v);
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
5488
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -5493,26 +5493,26 @@ const al = {
|
|
|
5493
5493
|
N = !0;
|
|
5494
5494
|
const L = this.weatherLayers[C].raw;
|
|
5495
5495
|
if (L) {
|
|
5496
|
-
const
|
|
5497
|
-
for (const
|
|
5498
|
-
const P = L.LineString[
|
|
5499
|
-
for (const
|
|
5500
|
-
|
|
5501
|
-
E.lineString(
|
|
5502
|
-
val: Number(
|
|
5496
|
+
const v = [];
|
|
5497
|
+
for (const k in L.LineString) {
|
|
5498
|
+
const P = L.LineString[k];
|
|
5499
|
+
for (const _ of P)
|
|
5500
|
+
v.push(
|
|
5501
|
+
E.lineString(_, {
|
|
5502
|
+
val: Number(k)
|
|
5503
5503
|
})
|
|
5504
5504
|
);
|
|
5505
5505
|
}
|
|
5506
|
-
for (const
|
|
5507
|
-
L.Point[
|
|
5508
|
-
P = oe.convertToStdLng(P),
|
|
5509
|
-
E.point([P,
|
|
5510
|
-
val: L.Point[
|
|
5511
|
-
type: L.Point[
|
|
5506
|
+
for (const k in L.Point)
|
|
5507
|
+
L.Point[k].lng.forEach((P, _) => {
|
|
5508
|
+
P = oe.convertToStdLng(P), v.push(
|
|
5509
|
+
E.point([P, k], {
|
|
5510
|
+
val: L.Point[k].val[_],
|
|
5511
|
+
type: L.Point[k].type[_]
|
|
5512
5512
|
})
|
|
5513
5513
|
);
|
|
5514
5514
|
});
|
|
5515
|
-
M = M.concat(
|
|
5515
|
+
M = M.concat(v);
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
5518
5518
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
@@ -5557,10 +5557,10 @@ const al = {
|
|
|
5557
5557
|
}, bl = {
|
|
5558
5558
|
key: 1,
|
|
5559
5559
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5560
|
-
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" },
|
|
5560
|
+
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Al = { class: "text-body-2 opacity-70 mb-3" }, Rl = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
|
|
5561
5561
|
function El(t, e, o, i, a, r) {
|
|
5562
|
-
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie,
|
|
5563
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"),
|
|
5562
|
+
var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
|
|
5563
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), k = w("IdmCurrentDirection"), P = w("IdmPrmsl"), _ = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
|
|
5564
5564
|
return b(), T("div", il, [
|
|
5565
5565
|
l("div", {
|
|
5566
5566
|
class: "menu-bar-box transition pa-1",
|
|
@@ -5728,7 +5728,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5728
5728
|
l("div", ul, [
|
|
5729
5729
|
l("div", gl, [
|
|
5730
5730
|
l("div", fl, y(t.$t("weather.weather")), 1),
|
|
5731
|
-
m(
|
|
5731
|
+
m(z, {
|
|
5732
5732
|
modelValue: a.autoActive,
|
|
5733
5733
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
5734
5734
|
class: "small-switch",
|
|
@@ -5764,7 +5764,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5764
5764
|
default: u(() => [
|
|
5765
5765
|
m(S, { class: "border-b-thin" }, {
|
|
5766
5766
|
default: u(() => [
|
|
5767
|
-
m(
|
|
5767
|
+
m(x, {
|
|
5768
5768
|
class: "text-subtitle-1 font-weight-medium",
|
|
5769
5769
|
style: { "font-size": "16px !important" }
|
|
5770
5770
|
}, {
|
|
@@ -5804,7 +5804,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5804
5804
|
default: u(() => [
|
|
5805
5805
|
m(S, { class: "border-b-thin" }, {
|
|
5806
5806
|
default: u(() => [
|
|
5807
|
-
m(
|
|
5807
|
+
m(x, {
|
|
5808
5808
|
class: "text-subtitle-1 font-weight-medium",
|
|
5809
5809
|
style: { "font-size": "16px !important" }
|
|
5810
5810
|
}, {
|
|
@@ -5836,7 +5836,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5836
5836
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
5837
5837
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(), T("div", yl, [
|
|
5838
5838
|
l("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
5839
|
-
m(
|
|
5839
|
+
m(z, {
|
|
5840
5840
|
modelValue: a.showWindParticle,
|
|
5841
5841
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
5842
5842
|
label: "",
|
|
@@ -5850,7 +5850,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5850
5850
|
])) : O("", !0),
|
|
5851
5851
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (b(), T("div", bl, [
|
|
5852
5852
|
l("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
5853
|
-
m(
|
|
5853
|
+
m(z, {
|
|
5854
5854
|
modelValue: a.showCurrentParticle,
|
|
5855
5855
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
5856
5856
|
label: "",
|
|
@@ -5919,7 +5919,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5919
5919
|
default: u(() => [
|
|
5920
5920
|
m(S, { class: "border-b-thin" }, {
|
|
5921
5921
|
default: u(() => [
|
|
5922
|
-
m(
|
|
5922
|
+
m(x, {
|
|
5923
5923
|
class: "text-subtitle-1 font-weight-medium",
|
|
5924
5924
|
style: { "font-size": "16px !important" }
|
|
5925
5925
|
}, {
|
|
@@ -5933,13 +5933,13 @@ function El(t, e, o, i, a, r) {
|
|
|
5933
5933
|
}),
|
|
5934
5934
|
m(p, { class: "" }, {
|
|
5935
5935
|
default: u(() => {
|
|
5936
|
-
var H, te, je, Pe, he, ge, W, _e, J, re,
|
|
5936
|
+
var H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
|
|
5937
5937
|
return [
|
|
5938
5938
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
5939
5939
|
l("div", xl, y((je = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + y((ge = (he = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : he.NOAA) == null ? void 0 : ge.spatialResolution) + y(t.$t("units.km")) + " " + y((re = (J = (_e = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : J.meta) == null ? void 0 : re.days) + y(t.$t("units.days")), 1),
|
|
5940
5940
|
l("div", vl, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
5941
|
-
l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (
|
|
5942
|
-
l("div", kl, y((
|
|
5941
|
+
l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (R = (Re = a.models) == null ? void 0 : Re.weather) == null ? void 0 : R.NOAA) == null ? void 0 : fe.meta) == null ? void 0 : Ce.initialisationTime)), 1),
|
|
5942
|
+
l("div", kl, y((A = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : A.source) + " " + y((Ue = (Ge = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ue.spatialResolution) + y(t.$t("units.km")) + " " + y((Xe = (Ze = (ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.days) + y(t.$t("units.days")), 1),
|
|
5943
5943
|
l("div", zl, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5944
5944
|
l("div", Ll, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
5945
5945
|
m(d),
|
|
@@ -5949,9 +5949,9 @@ function El(t, e, o, i, a, r) {
|
|
|
5949
5949
|
l("div", Ml, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((ft = (gt = (ut = (pt = (dt = a.models) == null ? void 0 : dt.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.meta) == null ? void 0 : ft.initialisationTime)), 1),
|
|
5950
5950
|
l("div", Tl, y((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : bt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.source) + " " + y((zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.ECMWF) == null ? void 0 : zt.spatialResolution) + y(t.$t("units.km")) + " " + y((Mt = (St = (Ct = (Pt = (Lt = a.models) == null ? void 0 : Lt.marine) == null ? void 0 : Pt.wave) == null ? void 0 : Ct.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : Mt.days) + y(t.$t("units.days")), 1),
|
|
5951
5951
|
l("div", Il, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5952
|
-
l("div",
|
|
5952
|
+
l("div", Al, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Dt = (Rt = (At = (It = (Tt = a.models) == null ? void 0 : Tt.marine) == null ? void 0 : It.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Dt.initialisationTime)), 1),
|
|
5953
5953
|
m(d),
|
|
5954
|
-
l("div",
|
|
5954
|
+
l("div", Rl, y(t.$t("weather.currents")), 1),
|
|
5955
5955
|
l("div", Dl, y((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + y((Wt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.spatialResolution) + y(t.$t("units.km")) + " " + y((Zt = (Yt = (Vt = (Ut = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Ut.current) == null ? void 0 : Vt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : Zt.days) + y(t.$t("units.days")), 1),
|
|
5956
5956
|
l("div", Ol, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5957
5957
|
l("div", Bl, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Jt = (Qt = (Kt = (qt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : qt.current) == null ? void 0 : Kt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : Jt.initialisationTime)), 1)
|
|
@@ -5973,7 +5973,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5973
5973
|
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
5974
5974
|
"menu-toggle": o.menuToggle
|
|
5975
5975
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : O("", !0),
|
|
5976
|
-
o.map ? (b(), j(
|
|
5976
|
+
o.map ? (b(), j(v, B({
|
|
5977
5977
|
key: 2,
|
|
5978
5978
|
map: o.map,
|
|
5979
5979
|
"before-layer": "empty-layer-2",
|
|
@@ -5981,7 +5981,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5981
5981
|
"menu-toggle": o.menuToggle,
|
|
5982
5982
|
"active-weather-layers": a.activeWeatherLayers
|
|
5983
5983
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
|
|
5984
|
-
o.map ? (b(), j(
|
|
5984
|
+
o.map ? (b(), j(k, B({
|
|
5985
5985
|
key: 3,
|
|
5986
5986
|
map: o.map,
|
|
5987
5987
|
"map-feather": o.mapFeather,
|
|
@@ -5997,7 +5997,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5997
5997
|
"menu-toggle": o.menuToggle,
|
|
5998
5998
|
"active-weather-layers": a.activeWeatherLayers
|
|
5999
5999
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
|
|
6000
|
-
o.map ? (b(), j(
|
|
6000
|
+
o.map ? (b(), j(_, B({
|
|
6001
6001
|
key: 5,
|
|
6002
6002
|
viewport: a.viewport,
|
|
6003
6003
|
factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
|
|
@@ -6055,7 +6055,7 @@ function El(t, e, o, i, a, r) {
|
|
|
6055
6055
|
o.map ? (b(), j(le, B({
|
|
6056
6056
|
key: 14,
|
|
6057
6057
|
viewport: a.viewport,
|
|
6058
|
-
factor: (
|
|
6058
|
+
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae["water-temp"],
|
|
6059
6059
|
"menu-toggle": o.menuToggle
|
|
6060
6060
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6061
6061
|
o.map ? (b(), j(de, B({
|
|
@@ -6384,11 +6384,11 @@ class Ca {
|
|
|
6384
6384
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6385
6385
|
for (const c of a) {
|
|
6386
6386
|
let n = eo.find((p) => {
|
|
6387
|
-
var d, f,
|
|
6388
|
-
return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
6387
|
+
var d, f, z;
|
|
6388
|
+
return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((z = p.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
6389
6389
|
}), g = to.find((p) => {
|
|
6390
|
-
var d, f,
|
|
6391
|
-
return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
6390
|
+
var d, f, z;
|
|
6391
|
+
return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((z = p.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
6392
6392
|
});
|
|
6393
6393
|
n = n || eo.find((p) => {
|
|
6394
6394
|
var d, f;
|
|
@@ -6413,47 +6413,47 @@ class Ca {
|
|
|
6413
6413
|
}), a;
|
|
6414
6414
|
}
|
|
6415
6415
|
static pickHourly(e, o) {
|
|
6416
|
-
var i, a, r, s, c, n, g, p, d, f,
|
|
6417
|
-
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"),
|
|
6416
|
+
var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
|
|
6417
|
+
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Re = [];
|
|
6418
6418
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6419
|
-
const
|
|
6419
|
+
const R = he.utc().diff(J, "h", !1);
|
|
6420
6420
|
let fe, Ce;
|
|
6421
6421
|
if (ge) {
|
|
6422
6422
|
let De = 0, Oe = 0;
|
|
6423
|
-
for (const
|
|
6424
|
-
const U =
|
|
6425
|
-
for (let ze =
|
|
6423
|
+
for (const A of ge) {
|
|
6424
|
+
const U = A == null ? void 0 : A.hourly;
|
|
6425
|
+
for (let ze = R - (R - 1) % 3; ze <= R; ze++)
|
|
6426
6426
|
De += (d = U == null ? void 0 : U.precipitation) == null ? void 0 : d.at(ze);
|
|
6427
|
-
for (let ze =
|
|
6427
|
+
for (let ze = R - (R - 1) % 6; ze <= R; ze++)
|
|
6428
6428
|
Oe += (f = U == null ? void 0 : U.precipitation) == null ? void 0 : f.at(ze);
|
|
6429
6429
|
fe = {
|
|
6430
|
-
temp: (
|
|
6431
|
-
apparentTemp: (
|
|
6432
|
-
rh: (S = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : S.at(
|
|
6433
|
-
dp: (C = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : C.at(
|
|
6430
|
+
temp: (z = U == null ? void 0 : U.temperature_2m) == null ? void 0 : z.at(R),
|
|
6431
|
+
apparentTemp: (x = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : x.at(R),
|
|
6432
|
+
rh: (S = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : S.at(R),
|
|
6433
|
+
dp: (C = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : C.at(R),
|
|
6434
6434
|
precip: {
|
|
6435
|
-
probability: (N = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : N.at(
|
|
6436
|
-
sum: (M = U == null ? void 0 : U.precipitation) == null ? void 0 : M.at(
|
|
6435
|
+
probability: (N = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : N.at(R),
|
|
6436
|
+
sum: (M = U == null ? void 0 : U.precipitation) == null ? void 0 : M.at(R),
|
|
6437
6437
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6438
6438
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6439
6439
|
},
|
|
6440
|
-
pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(
|
|
6441
|
-
psurf: (
|
|
6442
|
-
code: (
|
|
6443
|
-
visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(
|
|
6440
|
+
pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(R),
|
|
6441
|
+
psurf: (v = U == null ? void 0 : U.surface_pressure) == null ? void 0 : v.at(R),
|
|
6442
|
+
code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(R),
|
|
6443
|
+
visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(R)),
|
|
6444
6444
|
wind: {
|
|
6445
|
-
speed: (
|
|
6446
|
-
kts: (I = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : I.at(
|
|
6447
|
-
degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(
|
|
6448
|
-
bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(
|
|
6449
|
-
gusts: (Y = U == null ? void 0 : U.wind_gusts_10m) == null ? void 0 : Y.at(
|
|
6445
|
+
speed: (_ = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : _.at(R),
|
|
6446
|
+
kts: (I = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : I.at(R),
|
|
6447
|
+
degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(R),
|
|
6448
|
+
bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(R)) !== null ? (((q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : q.at(R)) + 180) % 360 : null,
|
|
6449
|
+
gusts: (Y = U == null ? void 0 : U.wind_gusts_10m) == null ? void 0 : Y.at(R)
|
|
6450
6450
|
},
|
|
6451
|
-
isDay: ($ = U == null ? void 0 : U.is_day) == null ? void 0 : $.at(
|
|
6451
|
+
isDay: ($ = U == null ? void 0 : U.is_day) == null ? void 0 : $.at(R)
|
|
6452
6452
|
};
|
|
6453
6453
|
const { name: Ge, url: Ue, bg: Ve } = this.parseWeatherCode(fe.code, fe.isDay);
|
|
6454
|
-
fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree),
|
|
6455
|
-
utc: J.add(
|
|
6456
|
-
model:
|
|
6454
|
+
fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Re.push({
|
|
6455
|
+
utc: J.add(R, "h").format(),
|
|
6456
|
+
model: A.model,
|
|
6457
6457
|
weather: { ...fe }
|
|
6458
6458
|
});
|
|
6459
6459
|
}
|
|
@@ -6461,43 +6461,43 @@ class Ca {
|
|
|
6461
6461
|
if (W) {
|
|
6462
6462
|
let De = 0;
|
|
6463
6463
|
for (const Oe of W) {
|
|
6464
|
-
const
|
|
6464
|
+
const A = Oe == null ? void 0 : Oe.hourly;
|
|
6465
6465
|
Ce = {
|
|
6466
6466
|
wave: {
|
|
6467
6467
|
sig: {
|
|
6468
|
-
height: (ee =
|
|
6469
|
-
degree: (Q =
|
|
6470
|
-
bearing: ((le =
|
|
6471
|
-
period: (pe =
|
|
6468
|
+
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(R),
|
|
6469
|
+
degree: (Q = A == null ? void 0 : A.wave_direction) == null ? void 0 : Q.at(R),
|
|
6470
|
+
bearing: ((le = A == null ? void 0 : A.wave_direction) == null ? void 0 : le.at(R)) !== null ? (((de = A == null ? void 0 : A.wave_direction) == null ? void 0 : de.at(R)) + 180) % 360 : null,
|
|
6471
|
+
period: (pe = A == null ? void 0 : A.wave_period) == null ? void 0 : pe.at(R)
|
|
6472
6472
|
},
|
|
6473
6473
|
swell: {
|
|
6474
|
-
height: (me =
|
|
6475
|
-
degree: (K =
|
|
6476
|
-
bearing: ((ie =
|
|
6477
|
-
period: (F =
|
|
6478
|
-
peakPeriod: (ne =
|
|
6474
|
+
height: (me = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : me.at(R),
|
|
6475
|
+
degree: (K = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : K.at(R),
|
|
6476
|
+
bearing: ((ie = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : ie.at(R)) !== null ? (((ue = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : ue.at(R)) + 180) % 360 : null,
|
|
6477
|
+
period: (F = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : F.at(R),
|
|
6478
|
+
peakPeriod: (ne = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : ne.at(R)
|
|
6479
6479
|
},
|
|
6480
6480
|
wd: {
|
|
6481
|
-
height: (xe =
|
|
6482
|
-
degree: (ve =
|
|
6483
|
-
bearing: ((Se =
|
|
6484
|
-
period: (Te =
|
|
6485
|
-
peakPeriod: (Ie =
|
|
6481
|
+
height: (xe = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : xe.at(R),
|
|
6482
|
+
degree: (ve = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : ve.at(R),
|
|
6483
|
+
bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(R)) !== null ? (((Me = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Me.at(R)) + 180) % 360 : null,
|
|
6484
|
+
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(R),
|
|
6485
|
+
peakPeriod: (Ie = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : Ie.at(R)
|
|
6486
6486
|
}
|
|
6487
6487
|
},
|
|
6488
6488
|
current: {
|
|
6489
|
-
speed: (
|
|
6490
|
-
kts: (ye =
|
|
6491
|
-
degree: (H =
|
|
6492
|
-
bearing: ((te =
|
|
6493
|
-
},
|
|
6494
|
-
sst: (je =
|
|
6495
|
-
height: (Pe =
|
|
6496
|
-
}, Ce.wave = this.parseWave(Ce.wave, fe == null ? void 0 : fe.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(
|
|
6489
|
+
speed: (Ae = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : Ae.at(R),
|
|
6490
|
+
kts: (ye = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : ye.at(R),
|
|
6491
|
+
degree: (H = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : H.at(R),
|
|
6492
|
+
bearing: ((te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(R)) ?? null
|
|
6493
|
+
},
|
|
6494
|
+
sst: (je = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : je.at(R),
|
|
6495
|
+
height: (Pe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : Pe.at(R)
|
|
6496
|
+
}, Ce.wave = this.parseWave(Ce.wave, fe == null ? void 0 : fe.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(Re[De], Ce), De++;
|
|
6497
6497
|
}
|
|
6498
6498
|
}
|
|
6499
6499
|
}
|
|
6500
|
-
return
|
|
6500
|
+
return Re;
|
|
6501
6501
|
}
|
|
6502
6502
|
static toLegacy(e) {
|
|
6503
6503
|
var o, i, a, r, s, c, n, g, p, d;
|
|
@@ -6522,11 +6522,11 @@ class Ca {
|
|
|
6522
6522
|
};
|
|
6523
6523
|
}
|
|
6524
6524
|
static pickDaily(e, o) {
|
|
6525
|
-
var i, a, r, s, c, n, g, p, d, f,
|
|
6526
|
-
const
|
|
6527
|
-
if (
|
|
6525
|
+
var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
|
|
6526
|
+
const Ae = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((n = (c = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6527
|
+
if (Ae.isBetween(te, je, "millisecond", "[]")) {
|
|
6528
6528
|
let he, ge;
|
|
6529
|
-
const W =
|
|
6529
|
+
const W = Ae.diff(te, "d", !1);
|
|
6530
6530
|
if (ye)
|
|
6531
6531
|
for (const _e of ye) {
|
|
6532
6532
|
const J = _e.daily;
|
|
@@ -6538,8 +6538,8 @@ class Ca {
|
|
|
6538
6538
|
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(W)
|
|
6539
6539
|
},
|
|
6540
6540
|
apparentTemp: {
|
|
6541
|
-
max: (
|
|
6542
|
-
min: (
|
|
6541
|
+
max: (z = J.apparent_temperature_max) == null ? void 0 : z.at(W),
|
|
6542
|
+
min: (x = J.apparent_temperature_min) == null ? void 0 : x.at(W)
|
|
6543
6543
|
},
|
|
6544
6544
|
precip: {
|
|
6545
6545
|
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(W),
|
|
@@ -6547,12 +6547,12 @@ class Ca {
|
|
|
6547
6547
|
snowfallSum: (N = J.snowfall_sum) == null ? void 0 : N.at(W),
|
|
6548
6548
|
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(W),
|
|
6549
6549
|
hours: (L = J.precipitation_hours) == null ? void 0 : L.at(W),
|
|
6550
|
-
probability: (
|
|
6550
|
+
probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(W)
|
|
6551
6551
|
},
|
|
6552
6552
|
rh: {
|
|
6553
|
-
max: (
|
|
6553
|
+
max: (k = J.relative_humidity_2m_max) == null ? void 0 : k.at(W),
|
|
6554
6554
|
min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(W),
|
|
6555
|
-
mean: (
|
|
6555
|
+
mean: (_ = J.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
|
|
6556
6556
|
},
|
|
6557
6557
|
wind: {
|
|
6558
6558
|
speed: (I = J.wind_speed_10m_max) == null ? void 0 : I.at(W),
|
|
@@ -6562,8 +6562,8 @@ class Ca {
|
|
|
6562
6562
|
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(W)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(W)) + 180) % 360 : null
|
|
6563
6563
|
}
|
|
6564
6564
|
};
|
|
6565
|
-
const { name: re, url:
|
|
6566
|
-
he.name = re, he.url =
|
|
6565
|
+
const { name: re, url: Re, bg: R } = this.parseWeatherCode(he.code, !0);
|
|
6566
|
+
he.name = re, he.url = Re, he.bg = R, he.wind.scale = this.beaufort(this.kts2ms(he.wind.kts)), he.wind.direction = this.degree2Direction(he.wind.degree), Pe.push({
|
|
6567
6567
|
utc: te.add(W, "d").utc().format(),
|
|
6568
6568
|
model: _e.model,
|
|
6569
6569
|
weather: { ...he }
|
|
@@ -7043,15 +7043,15 @@ const Nl = {
|
|
|
7043
7043
|
type: String
|
|
7044
7044
|
}
|
|
7045
7045
|
},
|
|
7046
|
+
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
7046
7047
|
setup() {
|
|
7047
7048
|
return { Theme: Ee() };
|
|
7048
7049
|
},
|
|
7049
|
-
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
7050
7050
|
data() {
|
|
7051
7051
|
return {
|
|
7052
7052
|
right: 10,
|
|
7053
7053
|
toggle: !1,
|
|
7054
|
-
helper:
|
|
7054
|
+
helper: Ra,
|
|
7055
7055
|
tropicals: void 0,
|
|
7056
7056
|
tropicalCacheKey: "tropicalCacheGL4",
|
|
7057
7057
|
source: "tropicals-source",
|
|
@@ -7080,7 +7080,7 @@ const Nl = {
|
|
|
7080
7080
|
},
|
|
7081
7081
|
computed: {
|
|
7082
7082
|
computeTime() {
|
|
7083
|
-
return
|
|
7083
|
+
return (t) => {
|
|
7084
7084
|
if (t) {
|
|
7085
7085
|
const e = D(t).utcOffset(this.timeZone), o = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
7086
7086
|
return console.log("timeZone changed 111", this.timeZone), `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
|
|
@@ -7161,9 +7161,9 @@ const Nl = {
|
|
|
7161
7161
|
},
|
|
7162
7162
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
7163
7163
|
}).then((p) => {
|
|
7164
|
-
var
|
|
7165
|
-
const d = Pa.convert2Geojson(((
|
|
7166
|
-
((S = (
|
|
7164
|
+
var z, x, S;
|
|
7165
|
+
const d = Pa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
|
|
7166
|
+
((S = (x = p == null ? void 0 : p.config) == null ? void 0 : x.headers) == null ? void 0 : S.key) && d && (this.tropicals = {
|
|
7167
7167
|
data: d,
|
|
7168
7168
|
active: !0,
|
|
7169
7169
|
cached: !0,
|
|
@@ -7211,8 +7211,8 @@ const Nl = {
|
|
|
7211
7211
|
else {
|
|
7212
7212
|
if (this.tropicals) {
|
|
7213
7213
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
7214
|
-
let f = 0,
|
|
7215
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
7214
|
+
let f = 0, z = 0;
|
|
7215
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropicals] update elapsed: ", z, ", total: ", f += z)) : (this.map.addSource(this.source, {
|
|
7216
7216
|
type: "geojson",
|
|
7217
7217
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
7218
7218
|
}), this.map.addLayer({
|
|
@@ -7309,7 +7309,7 @@ const Nl = {
|
|
|
7309
7309
|
],
|
|
7310
7310
|
"text-halo-width": 4
|
|
7311
7311
|
}
|
|
7312
|
-
}),
|
|
7312
|
+
}), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] update elapsed: ", z, ", total: ", f += z)) : (this.map.addSource(this.clusterSource, {
|
|
7313
7313
|
type: "geojson",
|
|
7314
7314
|
data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
|
|
7315
7315
|
// cluster: true,
|
|
@@ -7425,7 +7425,7 @@ const Nl = {
|
|
|
7425
7425
|
"text-halo-color": "#ffffff",
|
|
7426
7426
|
"text-halo-width": 1
|
|
7427
7427
|
}
|
|
7428
|
-
}),
|
|
7428
|
+
}), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z));
|
|
7429
7429
|
}
|
|
7430
7430
|
this.handleDrawCircle();
|
|
7431
7431
|
const p = Pa.interpolate(this.tropicals, 1);
|
|
@@ -7450,7 +7450,7 @@ const Nl = {
|
|
|
7450
7450
|
), this.showTropicalsInfo = !1;
|
|
7451
7451
|
},
|
|
7452
7452
|
handleDateChange() {
|
|
7453
|
-
var t, e, o, i, a, r, s, c, n, g, p, d, f,
|
|
7453
|
+
var t, e, o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q;
|
|
7454
7454
|
if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7455
7455
|
const le = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (le == null ? void 0 : le.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
|
|
7456
7456
|
pe.forEach((K) => {
|
|
@@ -7472,7 +7472,7 @@ const Nl = {
|
|
|
7472
7472
|
for (const K of de)
|
|
7473
7473
|
if (!K.properties.disabled) {
|
|
7474
7474
|
let ie = "#f44336";
|
|
7475
|
-
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((
|
|
7475
|
+
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((k = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : k.kts) < 79 ? ie = "#f44336" : ((_ = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : _.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
7476
7476
|
const ue = `<svg t="1719918955501"
|
|
7477
7477
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7478
7478
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7498,19 +7498,19 @@ const Nl = {
|
|
|
7498
7498
|
handleClick(t) {
|
|
7499
7499
|
var r, s, c, n, g, p, d, f;
|
|
7500
7500
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7501
|
-
(
|
|
7502
|
-
var
|
|
7503
|
-
return
|
|
7501
|
+
(z) => {
|
|
7502
|
+
var x;
|
|
7503
|
+
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7504
7504
|
}
|
|
7505
7505
|
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
7506
|
-
(
|
|
7507
|
-
var
|
|
7508
|
-
return
|
|
7506
|
+
(z) => {
|
|
7507
|
+
var x;
|
|
7508
|
+
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
|
|
7509
7509
|
}
|
|
7510
7510
|
);
|
|
7511
7511
|
this.activeTropicals = {
|
|
7512
7512
|
name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
|
|
7513
|
-
forecasts: o.map((
|
|
7513
|
+
forecasts: o.map((z) => z.properties),
|
|
7514
7514
|
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
7515
7515
|
showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
7516
7516
|
}, this.showTropicalsInfo = !0;
|
|
@@ -7614,7 +7614,7 @@ const Nl = {
|
|
|
7614
7614
|
style: { height: "80px" }
|
|
7615
7615
|
}, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
7616
7616
|
function is(t, e, o, i, a, r) {
|
|
7617
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), g = w("
|
|
7617
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), g = w("VDivider"), p = w("VCardActions"), d = w("VCard");
|
|
7618
7618
|
return b(), T("div", Fl, [
|
|
7619
7619
|
l("div", {
|
|
7620
7620
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7624,8 +7624,8 @@ function is(t, e, o, i, a, r) {
|
|
|
7624
7624
|
text: t.$t("tropical.tropicals"),
|
|
7625
7625
|
location: "left"
|
|
7626
7626
|
}, {
|
|
7627
|
-
activator: u(({ props:
|
|
7628
|
-
m(s, B(
|
|
7627
|
+
activator: u(({ props: f }) => [
|
|
7628
|
+
m(s, B(f, {
|
|
7629
7629
|
"min-width": "32",
|
|
7630
7630
|
width: "32",
|
|
7631
7631
|
height: "32",
|
|
@@ -7643,18 +7643,18 @@ function is(t, e, o, i, a, r) {
|
|
|
7643
7643
|
}, 8, ["text"])
|
|
7644
7644
|
], 4),
|
|
7645
7645
|
He(l("div", Hl, [
|
|
7646
|
-
m(
|
|
7646
|
+
m(d, {
|
|
7647
7647
|
width: "400",
|
|
7648
7648
|
elevation: "16"
|
|
7649
7649
|
}, {
|
|
7650
7650
|
default: u(() => [
|
|
7651
7651
|
m(n, null, {
|
|
7652
7652
|
default: u(() => {
|
|
7653
|
-
var
|
|
7653
|
+
var f, z, x, S, C, N, M, L, v, k;
|
|
7654
7654
|
return [
|
|
7655
7655
|
l("div", Wl, [
|
|
7656
|
-
l("span", Gl, y((
|
|
7657
|
-
(
|
|
7656
|
+
l("span", Gl, y((f = a.activeTropicals) == null ? void 0 : f.name), 1),
|
|
7657
|
+
(x = (z = a.activeTropicals) == null ? void 0 : z.history) != null && x.level ? (b(), T("span", Ul, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : O("", !0)
|
|
7658
7658
|
]),
|
|
7659
7659
|
m(s, {
|
|
7660
7660
|
icon: "$close",
|
|
@@ -7662,11 +7662,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7662
7662
|
density: "compact",
|
|
7663
7663
|
variant: "text",
|
|
7664
7664
|
class: "close",
|
|
7665
|
-
onClick: e[0] || (e[0] = (
|
|
7665
|
+
onClick: e[0] || (e[0] = (P) => a.showTropicalsInfo = !1)
|
|
7666
7666
|
}),
|
|
7667
7667
|
l("div", Vl, [
|
|
7668
7668
|
e[5] || (e[5] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
7669
|
-
l("span", null, y(r.computeTime(((
|
|
7669
|
+
l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((k = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
|
|
7670
7670
|
])
|
|
7671
7671
|
];
|
|
7672
7672
|
}),
|
|
@@ -7675,27 +7675,27 @@ function is(t, e, o, i, a, r) {
|
|
|
7675
7675
|
m(g),
|
|
7676
7676
|
m(n, { class: "text-body-1" }, {
|
|
7677
7677
|
default: u(() => {
|
|
7678
|
-
var
|
|
7678
|
+
var f, z, x, S, C, N, M, L, v;
|
|
7679
7679
|
return [
|
|
7680
7680
|
l("div", Yl, [
|
|
7681
7681
|
l("div", Zl, [
|
|
7682
7682
|
e[6] || (e[6] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
7683
|
-
l("span", null, y(((
|
|
7684
|
-
l("span", null, ", BF " + y(r.computeBF(((
|
|
7683
|
+
l("span", null, y(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
7684
|
+
l("span", null, ", BF " + y(r.computeBF(((S = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : S.kts) || "-")), 1)
|
|
7685
7685
|
]),
|
|
7686
7686
|
l("div", Xl, [
|
|
7687
7687
|
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
7688
|
-
l("span", null, y(((
|
|
7688
|
+
l("span", null, y(((N = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : N.pressure) || "-") + " hPa", 1)
|
|
7689
7689
|
])
|
|
7690
7690
|
]),
|
|
7691
7691
|
l("div", ql, [
|
|
7692
7692
|
l("div", Kl, [
|
|
7693
7693
|
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Move Speed : ", -1)),
|
|
7694
|
-
l("span", null, y(((
|
|
7694
|
+
l("span", null, y(((M = r.computeMovement(a.activeTropicals)) == null ? void 0 : M.kts) || "-") + " kts", 1)
|
|
7695
7695
|
]),
|
|
7696
7696
|
l("div", Ql, [
|
|
7697
7697
|
e[9] || (e[9] = l("label", { class: "opacity-70 pr-1" }, "Move Dir : ", -1)),
|
|
7698
|
-
l("span", null, y(((
|
|
7698
|
+
l("span", null, y(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
|
|
7699
7699
|
])
|
|
7700
7700
|
]),
|
|
7701
7701
|
l("div", Jl, [
|
|
@@ -7704,16 +7704,16 @@ function is(t, e, o, i, a, r) {
|
|
|
7704
7704
|
style: { width: "max-content" }
|
|
7705
7705
|
}, "Forecast Models : ", -1)),
|
|
7706
7706
|
l("div", $l, [
|
|
7707
|
-
(b(!0), T(ke, null, Le((
|
|
7708
|
-
key:
|
|
7707
|
+
(b(!0), T(ke, null, Le((v = a.activeTropicals) == null ? void 0 : v.forecasts, (k, P) => (b(), j(s, {
|
|
7708
|
+
key: P,
|
|
7709
7709
|
density: "compact",
|
|
7710
|
-
variant:
|
|
7711
|
-
color:
|
|
7710
|
+
variant: k.disabled ? "outlined btn-border-2" : "flat",
|
|
7711
|
+
color: k.disabled ? "" : "primary",
|
|
7712
7712
|
class: "model text-none text-body-1",
|
|
7713
|
-
onClick: (
|
|
7713
|
+
onClick: (_) => r.handleForecastToggle(k)
|
|
7714
7714
|
}, {
|
|
7715
7715
|
default: u(() => [
|
|
7716
|
-
G(y(
|
|
7716
|
+
G(y(k.model), 1)
|
|
7717
7717
|
]),
|
|
7718
7718
|
_: 2
|
|
7719
7719
|
}, 1032, ["variant", "color", "onClick"]))), 128))
|
|
@@ -7724,15 +7724,15 @@ function is(t, e, o, i, a, r) {
|
|
|
7724
7724
|
_: 1
|
|
7725
7725
|
}),
|
|
7726
7726
|
m(g),
|
|
7727
|
-
m(
|
|
7727
|
+
m(p, { class: "d-flex justify-space-between" }, {
|
|
7728
7728
|
default: u(() => [
|
|
7729
|
-
m(
|
|
7729
|
+
m(s, {
|
|
7730
7730
|
density: "compact",
|
|
7731
7731
|
"prepend-icon": "",
|
|
7732
7732
|
variant: "text",
|
|
7733
7733
|
color: a.showLegend ? "primary" : "",
|
|
7734
7734
|
class: "text-none text-body-1",
|
|
7735
|
-
onClick: e[1] || (e[1] = (
|
|
7735
|
+
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
7736
7736
|
}, {
|
|
7737
7737
|
prepend: u(() => e[11] || (e[11] = [
|
|
7738
7738
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
@@ -7744,12 +7744,12 @@ function is(t, e, o, i, a, r) {
|
|
|
7744
7744
|
__: [12]
|
|
7745
7745
|
}, 8, ["color"]),
|
|
7746
7746
|
l("div", es, [
|
|
7747
|
-
o.permission & a.helper.LEVEL.Supper ? (b(), j(
|
|
7747
|
+
o.permission & a.helper.LEVEL.Supper ? (b(), j(s, {
|
|
7748
7748
|
key: 0,
|
|
7749
7749
|
variant: "text",
|
|
7750
7750
|
density: "compact",
|
|
7751
7751
|
class: "text-none text-body-1",
|
|
7752
|
-
onClick: e[2] || (e[2] = (
|
|
7752
|
+
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
7753
7753
|
}, {
|
|
7754
7754
|
default: u(() => e[13] || (e[13] = [
|
|
7755
7755
|
G("Notify", -1)
|
|
@@ -7757,12 +7757,12 @@ function is(t, e, o, i, a, r) {
|
|
|
7757
7757
|
_: 1,
|
|
7758
7758
|
__: [13]
|
|
7759
7759
|
})) : O("", !0),
|
|
7760
|
-
m(
|
|
7760
|
+
m(s, {
|
|
7761
7761
|
variant: "text",
|
|
7762
7762
|
density: "compact",
|
|
7763
7763
|
"append-icon": "mdi-chevron-right",
|
|
7764
7764
|
class: "text-none text-body-1",
|
|
7765
|
-
onClick: e[3] || (e[3] = (
|
|
7765
|
+
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
7766
7766
|
}, {
|
|
7767
7767
|
default: u(() => e[14] || (e[14] = [
|
|
7768
7768
|
G("View Report", -1)
|
|
@@ -7778,7 +7778,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7778
7778
|
_: 1
|
|
7779
7779
|
}),
|
|
7780
7780
|
l("div", ts, [
|
|
7781
|
-
He(m(
|
|
7781
|
+
He(m(d, {
|
|
7782
7782
|
width: "400",
|
|
7783
7783
|
elevation: "16"
|
|
7784
7784
|
}, {
|
|
@@ -8008,7 +8008,7 @@ const rs = {
|
|
|
8008
8008
|
style: { height: "56px" }
|
|
8009
8009
|
};
|
|
8010
8010
|
function ms(t, e, o, i, a, r) {
|
|
8011
|
-
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"),
|
|
8011
|
+
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
|
|
8012
8012
|
return b(), T("div", ls, [
|
|
8013
8013
|
m(s, {
|
|
8014
8014
|
text: "",
|
|
@@ -8021,7 +8021,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8021
8021
|
]),
|
|
8022
8022
|
_: 1
|
|
8023
8023
|
}, 8, ["onClick"]),
|
|
8024
|
-
a.showDatePicker ? (b(), j(
|
|
8024
|
+
a.showDatePicker ? (b(), j(x, {
|
|
8025
8025
|
key: 0,
|
|
8026
8026
|
class: "card-box d-flex flex-column"
|
|
8027
8027
|
}, {
|
|
@@ -8081,7 +8081,7 @@ function ms(t, e, o, i, a, r) {
|
|
|
8081
8081
|
_: 1
|
|
8082
8082
|
}),
|
|
8083
8083
|
m(n),
|
|
8084
|
-
m(
|
|
8084
|
+
m(z, {
|
|
8085
8085
|
class: "justify-end pa-0 pr-4",
|
|
8086
8086
|
style: { height: "50px" }
|
|
8087
8087
|
}, {
|
|
@@ -8354,10 +8354,10 @@ const hs = {
|
|
|
8354
8354
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
8355
8355
|
},
|
|
8356
8356
|
initTableData(t) {
|
|
8357
|
-
var o, i, a, r, s, c, n, g, p, d, f,
|
|
8357
|
+
var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
|
|
8358
8358
|
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;
|
|
8359
8359
|
const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
8360
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((
|
|
8360
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
8361
8361
|
},
|
|
8362
8362
|
handleBind() {
|
|
8363
8363
|
var t, e;
|
|
@@ -8427,7 +8427,7 @@ const hs = {
|
|
|
8427
8427
|
"aria-hidden": "true"
|
|
8428
8428
|
}, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
|
|
8429
8429
|
function Cs(t, e, o, i, a, r) {
|
|
8430
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"),
|
|
8430
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
|
|
8431
8431
|
return b(), T("div", ds, [
|
|
8432
8432
|
l("div", {
|
|
8433
8433
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8437,8 +8437,8 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8437
8437
|
text: t.$t("spot.spotsMeteo"),
|
|
8438
8438
|
location: "left"
|
|
8439
8439
|
}, {
|
|
8440
|
-
activator: u(({ props:
|
|
8441
|
-
m(s, B(
|
|
8440
|
+
activator: u(({ props: v }) => [
|
|
8441
|
+
m(s, B(v, {
|
|
8442
8442
|
"min-width": "32",
|
|
8443
8443
|
width: "32",
|
|
8444
8444
|
height: "32",
|
|
@@ -8493,7 +8493,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8493
8493
|
ref: "spotForm",
|
|
8494
8494
|
autocomplete: "off",
|
|
8495
8495
|
class: "form-box",
|
|
8496
|
-
onSubmit:
|
|
8496
|
+
onSubmit: Aa(r.submitForm, ["prevent"])
|
|
8497
8497
|
}, {
|
|
8498
8498
|
default: u(() => [
|
|
8499
8499
|
l("div", ps, [
|
|
@@ -8513,7 +8513,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8513
8513
|
default: u(() => [
|
|
8514
8514
|
m(p, {
|
|
8515
8515
|
modelValue: a.form.lngDegree,
|
|
8516
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
8516
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
|
|
8517
8517
|
rules: a.formRules.lngDegree,
|
|
8518
8518
|
density: "compact",
|
|
8519
8519
|
variant: "outlined",
|
|
@@ -8532,7 +8532,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8532
8532
|
default: u(() => [
|
|
8533
8533
|
m(p, {
|
|
8534
8534
|
modelValue: a.form.lngMinute,
|
|
8535
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
8535
|
+
"onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
|
|
8536
8536
|
rules: a.formRules.lngMinute,
|
|
8537
8537
|
label: "",
|
|
8538
8538
|
density: "compact",
|
|
@@ -8558,7 +8558,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8558
8558
|
height: "32",
|
|
8559
8559
|
class: "",
|
|
8560
8560
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8561
|
-
onClick: e[2] || (e[2] = (
|
|
8561
|
+
onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8562
8562
|
}, {
|
|
8563
8563
|
default: u(() => [
|
|
8564
8564
|
G(y(a.form.lngDirection), 1)
|
|
@@ -8588,7 +8588,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8588
8588
|
default: u(() => [
|
|
8589
8589
|
m(p, {
|
|
8590
8590
|
modelValue: a.form.latDegree,
|
|
8591
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
8591
|
+
"onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
|
|
8592
8592
|
rules: a.formRules.latDegree,
|
|
8593
8593
|
label: "",
|
|
8594
8594
|
density: "compact",
|
|
@@ -8610,7 +8610,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8610
8610
|
default: u(() => [
|
|
8611
8611
|
m(p, {
|
|
8612
8612
|
modelValue: a.form.latMinute,
|
|
8613
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
8613
|
+
"onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
|
|
8614
8614
|
rules: a.formRules.latMinute,
|
|
8615
8615
|
label: "",
|
|
8616
8616
|
density: "compact",
|
|
@@ -8636,7 +8636,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8636
8636
|
height: "32",
|
|
8637
8637
|
class: "text-body-1",
|
|
8638
8638
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8639
|
-
onClick: e[5] || (e[5] = (
|
|
8639
|
+
onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8640
8640
|
}, {
|
|
8641
8641
|
default: u(() => [
|
|
8642
8642
|
G(y(a.form.latDirection), 1)
|
|
@@ -8664,11 +8664,11 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8664
8664
|
class: "pa-0"
|
|
8665
8665
|
}, {
|
|
8666
8666
|
default: u(() => [
|
|
8667
|
-
m(
|
|
8667
|
+
m(z, B({
|
|
8668
8668
|
"date-time": a.form.dateTime,
|
|
8669
8669
|
"time-zone": o.timeZone
|
|
8670
8670
|
}, t.$attrs, {
|
|
8671
|
-
onDateTime: e[6] || (e[6] = (
|
|
8671
|
+
onDateTime: e[6] || (e[6] = (v) => a.form.dateTime = v)
|
|
8672
8672
|
}), null, 16, ["date-time", "time-zone"])
|
|
8673
8673
|
]),
|
|
8674
8674
|
_: 1
|
|
@@ -8691,9 +8691,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8691
8691
|
class: "pa-0"
|
|
8692
8692
|
}, {
|
|
8693
8693
|
default: u(() => [
|
|
8694
|
-
m(
|
|
8694
|
+
m(x, {
|
|
8695
8695
|
modelValue: a.form.forecastModel,
|
|
8696
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
8696
|
+
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
8697
8697
|
class: "w-100",
|
|
8698
8698
|
rounded: "",
|
|
8699
8699
|
height: "30",
|
|
@@ -8787,11 +8787,11 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8787
8787
|
default: u(() => [
|
|
8788
8788
|
m(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8789
8789
|
default: u(() => {
|
|
8790
|
-
var
|
|
8790
|
+
var v, k;
|
|
8791
8791
|
return [
|
|
8792
8792
|
l("div", Ls, [
|
|
8793
8793
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8794
|
-
l("div", Ps, y(r.computeLat((
|
|
8794
|
+
l("div", Ps, y(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + y(r.computeLng((k = a.currentHourData) == null ? void 0 : k.lng)), 1)
|
|
8795
8795
|
]),
|
|
8796
8796
|
m(s, {
|
|
8797
8797
|
icon: "",
|
|
@@ -8833,9 +8833,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8833
8833
|
class: "pa-2 px-0"
|
|
8834
8834
|
}, {
|
|
8835
8835
|
default: u(() => {
|
|
8836
|
-
var
|
|
8836
|
+
var v;
|
|
8837
8837
|
return [
|
|
8838
|
-
G(y(r.computedTzTime((
|
|
8838
|
+
G(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
8839
8839
|
];
|
|
8840
8840
|
}),
|
|
8841
8841
|
_: 1
|
|
@@ -8860,9 +8860,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8860
8860
|
class: "pa-2 px-0"
|
|
8861
8861
|
}, {
|
|
8862
8862
|
default: u(() => {
|
|
8863
|
-
var
|
|
8863
|
+
var v;
|
|
8864
8864
|
return [
|
|
8865
|
-
G(y(r.computedLocalTime((
|
|
8865
|
+
G(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
8866
8866
|
];
|
|
8867
8867
|
}),
|
|
8868
8868
|
_: 1
|
|
@@ -9143,19 +9143,19 @@ const Ms = {
|
|
|
9143
9143
|
var N;
|
|
9144
9144
|
return ((N = C._element) == null ? void 0 : N.id) === e;
|
|
9145
9145
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
9146
|
-
let
|
|
9146
|
+
let x;
|
|
9147
9147
|
f.features.forEach((C, N) => {
|
|
9148
9148
|
if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
|
|
9149
|
-
|
|
9149
|
+
x = N;
|
|
9150
9150
|
return;
|
|
9151
9151
|
}
|
|
9152
9152
|
});
|
|
9153
9153
|
const S = f.features.filter((C) => C.geometry.type === "Point");
|
|
9154
9154
|
this.handleTmpPointUpdate(
|
|
9155
9155
|
f,
|
|
9156
|
-
S[
|
|
9157
|
-
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[
|
|
9158
|
-
|
|
9156
|
+
S[x - 1],
|
|
9157
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
|
|
9158
|
+
x === S.length - 1 ? void 0 : S[x + 1]
|
|
9159
9159
|
);
|
|
9160
9160
|
}
|
|
9161
9161
|
},
|
|
@@ -9168,8 +9168,8 @@ const Ms = {
|
|
|
9168
9168
|
var C;
|
|
9169
9169
|
return ((C = S._element) == null ? void 0 : C.id) === e;
|
|
9170
9170
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
9171
|
-
const
|
|
9172
|
-
|
|
9171
|
+
const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
9172
|
+
x.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
9173
9173
|
}
|
|
9174
9174
|
},
|
|
9175
9175
|
handleContextmenu(t) {
|
|
@@ -9221,10 +9221,10 @@ const Ms = {
|
|
|
9221
9221
|
o = oe.roundPrecision(o + p, 4);
|
|
9222
9222
|
let f;
|
|
9223
9223
|
c.mode === "RL" ? f = oe.convertToMonotonicLng([n, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
|
|
9224
|
-
const
|
|
9225
|
-
|
|
9226
|
-
const
|
|
9227
|
-
|
|
9224
|
+
const z = E.lineString(f.map((S) => [S.lng, S.lat]));
|
|
9225
|
+
z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
9226
|
+
const x = e[a];
|
|
9227
|
+
x.properties.totalDist = oe.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), x.properties.sumLabel = x.properties.totalDist + " nm";
|
|
9228
9228
|
}
|
|
9229
9229
|
e.push(...i), t.total = o;
|
|
9230
9230
|
}
|
|
@@ -9238,7 +9238,7 @@ const Ms = {
|
|
|
9238
9238
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
9239
9239
|
let d;
|
|
9240
9240
|
n.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9241
|
-
const f = E.lineString(d.map((
|
|
9241
|
+
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9242
9242
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9243
9243
|
}
|
|
9244
9244
|
if (i) {
|
|
@@ -9246,7 +9246,7 @@ const Ms = {
|
|
|
9246
9246
|
r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
|
|
9247
9247
|
let d;
|
|
9248
9248
|
n.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
9249
|
-
const f = E.lineString(d.map((
|
|
9249
|
+
const f = E.lineString(d.map((z) => [z.lng, z.lat]));
|
|
9250
9250
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
9251
9251
|
}
|
|
9252
9252
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -9388,11 +9388,11 @@ const Ms = {
|
|
|
9388
9388
|
}
|
|
9389
9389
|
},
|
|
9390
9390
|
handleClear(t, e = !0) {
|
|
9391
|
-
var s, c, n, g, p, d, f,
|
|
9391
|
+
var s, c, n, g, p, d, f, z, x, S;
|
|
9392
9392
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
9393
9393
|
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
|
|
9394
9394
|
C == null || C.remove();
|
|
9395
|
-
}), this.pointMarkers[t.id] = [], (
|
|
9395
|
+
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((x = this.map) != null && x.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
9396
9396
|
}
|
|
9397
9397
|
}
|
|
9398
9398
|
}, Ts = { class: "idm-gl4-measure" };
|
|
@@ -9427,8 +9427,8 @@ function Is(t, e, o, i, a, r) {
|
|
|
9427
9427
|
], 4)
|
|
9428
9428
|
]);
|
|
9429
9429
|
}
|
|
9430
|
-
const
|
|
9431
|
-
const
|
|
9430
|
+
const As = /* @__PURE__ */ Z(Ms, [["render", Is]]);
|
|
9431
|
+
const Rs = {
|
|
9432
9432
|
name: "IdmBottomBar",
|
|
9433
9433
|
components: { DateTimePicker: ro },
|
|
9434
9434
|
props: {
|
|
@@ -9546,7 +9546,7 @@ const As = {
|
|
|
9546
9546
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9547
9547
|
}, Fs = ["onClick"], Hs = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ws = { class: "text-body-1" };
|
|
9548
9548
|
function Gs(t, e, o, i, a, r) {
|
|
9549
|
-
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"),
|
|
9549
|
+
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
|
|
9550
9550
|
return b(), T("div", Ds, [
|
|
9551
9551
|
a.show ? (b(), T("div", {
|
|
9552
9552
|
key: 0,
|
|
@@ -9560,9 +9560,9 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9560
9560
|
"day-about": a.dayAbout,
|
|
9561
9561
|
"interval-hour": a.intervalHour
|
|
9562
9562
|
}, t.$attrs, {
|
|
9563
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
9564
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
9565
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
9563
|
+
onCurrentTimestamp: e[0] || (e[0] = (x) => a.currentTimestamp = x),
|
|
9564
|
+
onCurrentRealTime: e[1] || (e[1] = (x) => a.currentRealTime = x),
|
|
9565
|
+
onTimestampRange: e[2] || (e[2] = (x) => a.timestampRange = x)
|
|
9566
9566
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
9567
9567
|
m(d, {
|
|
9568
9568
|
text: "",
|
|
@@ -9576,13 +9576,13 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9576
9576
|
default: u(() => [
|
|
9577
9577
|
m(g, { class: "pa-1" }, {
|
|
9578
9578
|
default: u(() => [
|
|
9579
|
-
(b(!0), T(ke, null, Le(a.intervalOptions, (
|
|
9579
|
+
(b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(n, {
|
|
9580
9580
|
key: S,
|
|
9581
|
-
value:
|
|
9582
|
-
variant: a.intervalHour ===
|
|
9581
|
+
value: x,
|
|
9582
|
+
variant: a.intervalHour === x ? "tonal" : "text",
|
|
9583
9583
|
color: "primary",
|
|
9584
9584
|
rounded: "",
|
|
9585
|
-
active: a.intervalHour ===
|
|
9585
|
+
active: a.intervalHour === x,
|
|
9586
9586
|
height: "30",
|
|
9587
9587
|
"min-height": "30",
|
|
9588
9588
|
"min-width": "30",
|
|
@@ -9590,10 +9590,10 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9590
9590
|
}, {
|
|
9591
9591
|
default: u(() => [
|
|
9592
9592
|
m(c, {
|
|
9593
|
-
onClick: (C) => a.intervalHour =
|
|
9593
|
+
onClick: (C) => a.intervalHour = x
|
|
9594
9594
|
}, {
|
|
9595
9595
|
default: u(() => [
|
|
9596
|
-
G(y(
|
|
9596
|
+
G(y(x) + "h", 1)
|
|
9597
9597
|
]),
|
|
9598
9598
|
_: 2
|
|
9599
9599
|
}, 1032, ["onClick"])
|
|
@@ -9689,14 +9689,14 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9689
9689
|
style: { height: "16px" }
|
|
9690
9690
|
}),
|
|
9691
9691
|
l("div", Es, [
|
|
9692
|
-
m(
|
|
9692
|
+
m(z, {
|
|
9693
9693
|
text: t.$t("weather.windBarbs"),
|
|
9694
9694
|
location: "top"
|
|
9695
9695
|
}, {
|
|
9696
|
-
activator: u(({ props:
|
|
9696
|
+
activator: u(({ props: x }) => {
|
|
9697
9697
|
var S, C;
|
|
9698
9698
|
return [
|
|
9699
|
-
m(d, B(
|
|
9699
|
+
m(d, B(x, {
|
|
9700
9700
|
class: "pa-1 d-flex",
|
|
9701
9701
|
color: (S = o.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
|
|
9702
9702
|
variant: (C = o.weatherCheckList) != null && C.includes("wind") ? "elevated" : "text",
|
|
@@ -9715,14 +9715,14 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9715
9715
|
}),
|
|
9716
9716
|
_: 1
|
|
9717
9717
|
}, 8, ["text"]),
|
|
9718
|
-
m(
|
|
9718
|
+
m(z, {
|
|
9719
9719
|
text: t.$t("weather.sigWaveHeight"),
|
|
9720
9720
|
location: "top"
|
|
9721
9721
|
}, {
|
|
9722
|
-
activator: u(({ props:
|
|
9722
|
+
activator: u(({ props: x }) => {
|
|
9723
9723
|
var S, C;
|
|
9724
9724
|
return [
|
|
9725
|
-
m(d, B(
|
|
9725
|
+
m(d, B(x, {
|
|
9726
9726
|
class: "pa-1 d-flex",
|
|
9727
9727
|
color: (S = o.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
|
|
9728
9728
|
variant: (C = o.weatherCheckList) != null && C.includes("sig-wave-height") ? "elevated" : "text",
|
|
@@ -9732,7 +9732,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9732
9732
|
onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
|
|
9733
9733
|
}), {
|
|
9734
9734
|
default: u(() => [
|
|
9735
|
-
l("i", B(
|
|
9735
|
+
l("i", B(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9736
9736
|
]),
|
|
9737
9737
|
_: 2
|
|
9738
9738
|
}, 1040, ["color", "variant"])
|
|
@@ -9740,14 +9740,14 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9740
9740
|
}),
|
|
9741
9741
|
_: 1
|
|
9742
9742
|
}, 8, ["text"]),
|
|
9743
|
-
m(
|
|
9743
|
+
m(z, {
|
|
9744
9744
|
text: t.$t("weather.currentDirection"),
|
|
9745
9745
|
location: "top"
|
|
9746
9746
|
}, {
|
|
9747
|
-
activator: u(({ props:
|
|
9747
|
+
activator: u(({ props: x }) => {
|
|
9748
9748
|
var S, C;
|
|
9749
9749
|
return [
|
|
9750
|
-
m(d, B(
|
|
9750
|
+
m(d, B(x, {
|
|
9751
9751
|
class: "pa-1 d-flex",
|
|
9752
9752
|
color: (S = o.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
|
|
9753
9753
|
variant: (C = o.weatherCheckList) != null && C.includes("current-direction") ? "elevated" : "text",
|
|
@@ -9757,7 +9757,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9757
9757
|
onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
|
|
9758
9758
|
}), {
|
|
9759
9759
|
default: u(() => [
|
|
9760
|
-
l("i", B(
|
|
9760
|
+
l("i", B(x, { class: "iconfont icon-Current" }), null, 16)
|
|
9761
9761
|
]),
|
|
9762
9762
|
_: 2
|
|
9763
9763
|
}, 1040, ["color", "variant"])
|
|
@@ -9765,12 +9765,12 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9765
9765
|
}),
|
|
9766
9766
|
_: 1
|
|
9767
9767
|
}, 8, ["text"]),
|
|
9768
|
-
m(
|
|
9768
|
+
m(z, {
|
|
9769
9769
|
text: t.$t("weather.weatherLayers"),
|
|
9770
9770
|
location: "top"
|
|
9771
9771
|
}, {
|
|
9772
|
-
activator: u(({ props:
|
|
9773
|
-
m(d, B(
|
|
9772
|
+
activator: u(({ props: x }) => [
|
|
9773
|
+
m(d, B(x, {
|
|
9774
9774
|
class: "pa-1 d-flex",
|
|
9775
9775
|
variant: "text",
|
|
9776
9776
|
height: "24",
|
|
@@ -9779,7 +9779,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9779
9779
|
onClick: r.handleClickFastMore
|
|
9780
9780
|
}), {
|
|
9781
9781
|
default: u(() => [
|
|
9782
|
-
l("i", B(
|
|
9782
|
+
l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9783
9783
|
]),
|
|
9784
9784
|
_: 2
|
|
9785
9785
|
}, 1040, ["onClick"])
|
|
@@ -9798,7 +9798,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9798
9798
|
height: "30",
|
|
9799
9799
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
9800
9800
|
color: a.source === "GFS" ? "primary" : "",
|
|
9801
|
-
onClick: e[6] || (e[6] = (
|
|
9801
|
+
onClick: e[6] || (e[6] = (x) => a.source = "GFS")
|
|
9802
9802
|
}, {
|
|
9803
9803
|
default: u(() => e[15] || (e[15] = [
|
|
9804
9804
|
G("NOAA", -1)
|
|
@@ -9811,7 +9811,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9811
9811
|
height: "30",
|
|
9812
9812
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
9813
9813
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9814
|
-
onClick: e[7] || (e[7] = (
|
|
9814
|
+
onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
|
|
9815
9815
|
}, {
|
|
9816
9816
|
default: u(() => e[16] || (e[16] = [
|
|
9817
9817
|
G("ECMWF", -1)
|
|
@@ -9826,11 +9826,11 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9826
9826
|
style: ae({ right: a.right + "px" })
|
|
9827
9827
|
}, [
|
|
9828
9828
|
a.showTimezone ? (b(), T("div", Ns, [
|
|
9829
|
-
(b(!0), T(ke, null, Le(a.offsets, (
|
|
9830
|
-
key:
|
|
9829
|
+
(b(!0), T(ke, null, Le(a.offsets, (x) => (b(), T("div", {
|
|
9830
|
+
key: x,
|
|
9831
9831
|
class: "item rounded text-body-2 hover-active",
|
|
9832
|
-
onClick: (S) => a.timeZone =
|
|
9833
|
-
}, y(
|
|
9832
|
+
onClick: (S) => a.timeZone = x
|
|
9833
|
+
}, y(x < 0 ? x : "+" + x), 9, Fs))), 128))
|
|
9834
9834
|
])) : O("", !0),
|
|
9835
9835
|
l("div", Hs, [
|
|
9836
9836
|
m(d, {
|
|
@@ -9839,7 +9839,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9839
9839
|
height: "28",
|
|
9840
9840
|
class: "pa-1 text-body-1",
|
|
9841
9841
|
color: "primary",
|
|
9842
|
-
onClick: e[8] || (e[8] = (
|
|
9842
|
+
onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
|
|
9843
9843
|
}, {
|
|
9844
9844
|
default: u(() => [
|
|
9845
9845
|
G(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -9851,13 +9851,13 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9851
9851
|
], 4)
|
|
9852
9852
|
]);
|
|
9853
9853
|
}
|
|
9854
|
-
const Us = /* @__PURE__ */ Z(
|
|
9854
|
+
const Us = /* @__PURE__ */ Z(Rs, [["render", Gs]]), Vs = {
|
|
9855
9855
|
name: "IdmGL4",
|
|
9856
9856
|
components: {
|
|
9857
9857
|
IdmOtherLayer: $i,
|
|
9858
9858
|
IdmWeatherLayer: jl,
|
|
9859
9859
|
IdmTropicals: Ma,
|
|
9860
|
-
IdmMeasure:
|
|
9860
|
+
IdmMeasure: As,
|
|
9861
9861
|
IdmSpot: Ss,
|
|
9862
9862
|
IdmBottomBar: Us
|
|
9863
9863
|
},
|
|
@@ -9998,7 +9998,7 @@ class qs {
|
|
|
9998
9998
|
se(this, "hi");
|
|
9999
9999
|
se(this, "td");
|
|
10000
10000
|
se(this, "windy");
|
|
10001
|
-
var o, i, a, r, s, c, n, g, p, d, f,
|
|
10001
|
+
var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
|
|
10002
10002
|
this.i4 = {
|
|
10003
10003
|
source: {
|
|
10004
10004
|
type: "raster",
|
|
@@ -28275,12 +28275,12 @@ class qs {
|
|
|
28275
28275
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((h) => h.id === "ice-area-fill"),
|
|
28276
28276
|
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((h) => h.id === "ice-area-line"),
|
|
28277
28277
|
(d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((h) => h.id === "empty-layer-0"),
|
|
28278
|
-
(
|
|
28279
|
-
(S = (
|
|
28278
|
+
(z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-1"),
|
|
28279
|
+
(S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
|
|
28280
28280
|
(N = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : N.find((h) => h.id === "water-outline"),
|
|
28281
28281
|
(L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((h) => h.id === "water-outline2"),
|
|
28282
|
-
(
|
|
28283
|
-
(
|
|
28282
|
+
(k = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : k.find((h) => h.id === "empty-layer-2"),
|
|
28283
|
+
(_ = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : _.find((h) => h.id === "water-line-label"),
|
|
28284
28284
|
(V = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : V.find((h) => h.id === "water-point-label"),
|
|
28285
28285
|
(q = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : q.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
28286
28286
|
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((h) => h.id === "ne-10m-outline"),
|
|
@@ -28292,7 +28292,7 @@ class qs {
|
|
|
28292
28292
|
(xe = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : xe.find((h) => h.id === "admin-0-boundary"),
|
|
28293
28293
|
(Se = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Se.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
28294
28294
|
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((h) => h.id === "country-label"),
|
|
28295
|
-
(
|
|
28295
|
+
(Ae = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : Ae.find((h) => h.id === "continent-label"),
|
|
28296
28296
|
(H = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : H.find((h) => h.id === "tide-stations"),
|
|
28297
28297
|
(je = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : je.find((h) => h.id === "empty-layer-3"),
|
|
28298
28298
|
(he = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : he.find((h) => h.id === "empty-layer-4")
|
|
@@ -28320,10 +28320,10 @@ class qs {
|
|
|
28320
28320
|
protected: !1,
|
|
28321
28321
|
draft: !1,
|
|
28322
28322
|
layers: [
|
|
28323
|
-
(
|
|
28323
|
+
(R = (Re = this.originStyle) == null ? void 0 : Re.dark.layers) == null ? void 0 : R.find((h) => h.id === "land"),
|
|
28324
28324
|
(Ce = (fe = this.originStyle) == null ? void 0 : fe.dark.layers) == null ? void 0 : Ce.find((h) => h.id === "water"),
|
|
28325
28325
|
(Oe = (De = this.originStyle) == null ? void 0 : De.dark.layers) == null ? void 0 : Oe.find((h) => h.id === "ice-area-fill"),
|
|
28326
|
-
(U = (
|
|
28326
|
+
(U = (A = this.originStyle) == null ? void 0 : A.dark.layers) == null ? void 0 : U.find((h) => h.id === "ice-area-line"),
|
|
28327
28327
|
(Ue = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "empty-layer-0"),
|
|
28328
28328
|
(ze = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : ze.find((h) => h.id === "empty-layer-1"),
|
|
28329
28329
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "country-boundaries"),
|
|
@@ -28353,8 +28353,8 @@ class qs {
|
|
|
28353
28353
|
metadata: (It = this.originStyle) == null ? void 0 : It.satellite.metadata,
|
|
28354
28354
|
center: [55.13, 25.12],
|
|
28355
28355
|
zoom: 12,
|
|
28356
|
-
fog: (
|
|
28357
|
-
imports: (
|
|
28356
|
+
fog: (At = this.originStyle) == null ? void 0 : At.satellite.fog,
|
|
28357
|
+
imports: (Rt = this.originStyle) == null ? void 0 : Rt.satellite.imports,
|
|
28358
28358
|
sources: (Dt = this.originStyle) == null ? void 0 : Dt.satellite.sources,
|
|
28359
28359
|
sprite: (Ot = this.originStyle) == null ? void 0 : Ot.satellite.sprite,
|
|
28360
28360
|
glyphs: (Bt = this.originStyle) == null ? void 0 : Bt.satellite.glyphs,
|
|
@@ -28392,11 +28392,11 @@ class qs {
|
|
|
28392
28392
|
nautical: {
|
|
28393
28393
|
version: 8,
|
|
28394
28394
|
name: "nautical",
|
|
28395
|
-
metadata: (
|
|
28395
|
+
metadata: (Ao = this.originStyle) == null ? void 0 : Ao.nautical.metadata,
|
|
28396
28396
|
center: [-34, 38],
|
|
28397
28397
|
zoom: 2,
|
|
28398
28398
|
terrain: null,
|
|
28399
|
-
imports: (
|
|
28399
|
+
imports: (Ro = this.originStyle) == null ? void 0 : Ro.nautical.imports,
|
|
28400
28400
|
sources: (Do = this.originStyle) == null ? void 0 : Do.nautical.sources,
|
|
28401
28401
|
sprite: (Oo = this.originStyle) == null ? void 0 : Oo.nautical.sprite,
|
|
28402
28402
|
glyphs: (Bo = this.originStyle) == null ? void 0 : Bo.nautical.glyphs,
|