@idmwx/idmui-gl4 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Eo = Object.defineProperty;
|
|
2
2
|
var jo = (o, e, t) => e in o ? Eo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var re = (o, e, t) => (jo(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import Be from "axios";
|
|
5
|
-
import { openBlock as y, createElementBlock as
|
|
6
|
-
import
|
|
7
|
-
import { LngLatHelper as
|
|
5
|
+
import { openBlock as y, createElementBlock as T, withDirectives as Jt, createElementVNode as l, vShow as eo, toDisplayString as x, normalizeStyle as oe, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as Ne, createTextVNode as Z, Fragment as ve, renderList as ze, createBlock as U, createCommentVNode as N, withModifiers as Fo } from "vue";
|
|
6
|
+
import _e from "mapbox-gl";
|
|
7
|
+
import { LngLatHelper as ie, TropicalHelper as Ao, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
8
8
|
import * as F from "@turf/turf";
|
|
9
|
-
import { LayerHelper as
|
|
10
|
-
import
|
|
9
|
+
import { LayerHelper as Qt, CompanyHelper as No } from "@idm-plugin/tag-nop";
|
|
10
|
+
import O from "moment";
|
|
11
11
|
import Ho from "@mapbox/sphericalmercator";
|
|
12
12
|
import { LayerHelper as Wo } from "@idm-plugin/tag";
|
|
13
|
-
import { Meteo2Assist as
|
|
13
|
+
import { Meteo2Assist as to } from "@idm-plugin/meteo";
|
|
14
14
|
import { useTheme as Go } from "vuetify";
|
|
15
|
-
const
|
|
15
|
+
const q = (o, e) => {
|
|
16
16
|
const t = o.__vccOpts || o;
|
|
17
17
|
for (const [i, a] of e)
|
|
18
18
|
t[i] = a;
|
|
@@ -109,9 +109,9 @@ const X = (o, e) => {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
function Vo(o, e, t, i, a, r) {
|
|
112
|
-
return y(),
|
|
112
|
+
return y(), T("div");
|
|
113
113
|
}
|
|
114
|
-
const Yo = /* @__PURE__ */
|
|
114
|
+
const Yo = /* @__PURE__ */ q(Uo, [["render", Vo]]), Zo = {
|
|
115
115
|
name: "IdmGmdssArea",
|
|
116
116
|
props: {
|
|
117
117
|
map: {
|
|
@@ -233,9 +233,9 @@ const Yo = /* @__PURE__ */ X(Uo, [["render", Vo]]), Zo = {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
function Xo(o, e, t, i, a, r) {
|
|
236
|
-
return y(),
|
|
236
|
+
return y(), T("div");
|
|
237
237
|
}
|
|
238
|
-
const qo = /* @__PURE__ */
|
|
238
|
+
const qo = /* @__PURE__ */ q(Zo, [["render", Xo]]), Ko = {
|
|
239
239
|
name: "IdmEcaZone",
|
|
240
240
|
props: {
|
|
241
241
|
map: {
|
|
@@ -328,9 +328,9 @@ const qo = /* @__PURE__ */ X(Zo, [["render", Xo]]), Ko = {
|
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
function Qo(o, e, t, i, a, r) {
|
|
331
|
-
return y(),
|
|
331
|
+
return y(), T("div");
|
|
332
332
|
}
|
|
333
|
-
const Jo = /* @__PURE__ */
|
|
333
|
+
const Jo = /* @__PURE__ */ q(Ko, [["render", Qo]]);
|
|
334
334
|
const $o = {
|
|
335
335
|
name: "IdmAlertZone",
|
|
336
336
|
props: {
|
|
@@ -375,7 +375,7 @@ const $o = {
|
|
|
375
375
|
if (t) {
|
|
376
376
|
this.showZone = !0, this.form = { ...t.properties };
|
|
377
377
|
const a = document.getElementById("idm-gl4-zone-info");
|
|
378
|
-
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new
|
|
378
|
+
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
379
379
|
}
|
|
380
380
|
},
|
|
381
381
|
handleRender() {
|
|
@@ -465,7 +465,7 @@ const $o = {
|
|
|
465
465
|
}, ea = { id: "idm-gl4-zone-info" }, ta = ["innerHTML"];
|
|
466
466
|
function oa(o, e, t, i, a, r) {
|
|
467
467
|
var s;
|
|
468
|
-
return
|
|
468
|
+
return Jt((y(), T("div", ea, [
|
|
469
469
|
l("div", {
|
|
470
470
|
class: "iconfont close",
|
|
471
471
|
onClick: e[0] || (e[0] = (c) => a.showZone = !1)
|
|
@@ -475,10 +475,10 @@ function oa(o, e, t, i, a, r) {
|
|
|
475
475
|
innerHTML: (s = a.form) == null ? void 0 : s.name
|
|
476
476
|
}, null, 8, ta)
|
|
477
477
|
], 512)), [
|
|
478
|
-
[
|
|
478
|
+
[eo, a.showZone]
|
|
479
479
|
]);
|
|
480
480
|
}
|
|
481
|
-
const aa = /* @__PURE__ */
|
|
481
|
+
const aa = /* @__PURE__ */ q($o, [["render", oa]]);
|
|
482
482
|
const ia = {
|
|
483
483
|
name: "IdmPort",
|
|
484
484
|
props: {
|
|
@@ -508,12 +508,12 @@ const ia = {
|
|
|
508
508
|
computed: {
|
|
509
509
|
computeLat() {
|
|
510
510
|
return function(o) {
|
|
511
|
-
return
|
|
511
|
+
return ie.lat2pretty(o, 4).pretty;
|
|
512
512
|
};
|
|
513
513
|
},
|
|
514
514
|
computeLng() {
|
|
515
515
|
return function(o) {
|
|
516
|
-
return
|
|
516
|
+
return ie.lng2pretty(o, 4).pretty;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
},
|
|
@@ -536,7 +536,7 @@ const ia = {
|
|
|
536
536
|
if (t) {
|
|
537
537
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
538
538
|
const a = document.getElementById("port-info");
|
|
539
|
-
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new
|
|
539
|
+
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
540
540
|
}
|
|
541
541
|
},
|
|
542
542
|
handleRender() {
|
|
@@ -583,7 +583,7 @@ const ia = {
|
|
|
583
583
|
style: { "align-items": "flex-start" }
|
|
584
584
|
}, ha = { class: "meteo-forecast flex-end" };
|
|
585
585
|
function da(o, e, t, i, a, r) {
|
|
586
|
-
return
|
|
586
|
+
return Jt((y(), T("div", ra, [
|
|
587
587
|
l("div", {
|
|
588
588
|
class: "close iconfont",
|
|
589
589
|
onClick: e[0] || (e[0] = (s) => a.showPort = !1)
|
|
@@ -612,10 +612,10 @@ function da(o, e, t, i, a, r) {
|
|
|
612
612
|
])
|
|
613
613
|
])
|
|
614
614
|
], 512)), [
|
|
615
|
-
[
|
|
615
|
+
[eo, a.showPort]
|
|
616
616
|
]);
|
|
617
617
|
}
|
|
618
|
-
const pa = /* @__PURE__ */
|
|
618
|
+
const pa = /* @__PURE__ */ q(ia, [["render", da], ["__scopeId", "data-v-474e9036"]]), ua = {
|
|
619
619
|
name: "IdmLoadLine",
|
|
620
620
|
props: {
|
|
621
621
|
map: {
|
|
@@ -687,9 +687,9 @@ const pa = /* @__PURE__ */ X(ia, [["render", da], ["__scopeId", "data-v-474e9036
|
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
689
|
function ga(o, e, t, i, a, r) {
|
|
690
|
-
return y(),
|
|
690
|
+
return y(), T("div");
|
|
691
691
|
}
|
|
692
|
-
const fa = /* @__PURE__ */
|
|
692
|
+
const fa = /* @__PURE__ */ q(ua, [["render", ga]]), ba = {
|
|
693
693
|
name: "IdmTimezone",
|
|
694
694
|
props: {
|
|
695
695
|
map: {
|
|
@@ -856,9 +856,9 @@ const fa = /* @__PURE__ */ X(ua, [["render", ga]]), ba = {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
function ya(o, e, t, i, a, r) {
|
|
859
|
-
return y(),
|
|
859
|
+
return y(), T("div");
|
|
860
860
|
}
|
|
861
|
-
const wa = /* @__PURE__ */
|
|
861
|
+
const wa = /* @__PURE__ */ q(ba, [["render", ya]]), xa = {
|
|
862
862
|
name: "IdmVoluntaryReportingArea",
|
|
863
863
|
props: {
|
|
864
864
|
map: {
|
|
@@ -948,9 +948,9 @@ const wa = /* @__PURE__ */ X(ba, [["render", ya]]), xa = {
|
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
function va(o, e, t, i, a, r) {
|
|
951
|
-
return y(),
|
|
951
|
+
return y(), T("div");
|
|
952
952
|
}
|
|
953
|
-
const _a = /* @__PURE__ */
|
|
953
|
+
const _a = /* @__PURE__ */ q(xa, [["render", va]]), ka = {
|
|
954
954
|
name: "IdmSpecialArea",
|
|
955
955
|
props: {
|
|
956
956
|
map: {
|
|
@@ -981,7 +981,7 @@ const _a = /* @__PURE__ */ X(xa, [["render", va]]), ka = {
|
|
|
981
981
|
methods: {
|
|
982
982
|
handleRender() {
|
|
983
983
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((o) => {
|
|
984
|
-
o.geometry.type === "Polygon" && o.geometry.coordinates.forEach((e) =>
|
|
984
|
+
o.geometry.type === "Polygon" && o.geometry.coordinates.forEach((e) => ie.convertToMonotonicLng2(e));
|
|
985
985
|
}), this.map.addSource(this.source, {
|
|
986
986
|
type: "geojson",
|
|
987
987
|
data: this.area
|
|
@@ -1042,9 +1042,9 @@ const _a = /* @__PURE__ */ X(xa, [["render", va]]), ka = {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
1044
|
function za(o, e, t, i, a, r) {
|
|
1045
|
-
return y(),
|
|
1045
|
+
return y(), T("div");
|
|
1046
1046
|
}
|
|
1047
|
-
const La = /* @__PURE__ */
|
|
1047
|
+
const La = /* @__PURE__ */ q(ka, [["render", za]]), Pa = {
|
|
1048
1048
|
name: "IdmTerminator",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
map: {
|
|
@@ -1104,9 +1104,9 @@ const La = /* @__PURE__ */ X(ka, [["render", za]]), Pa = {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
};
|
|
1106
1106
|
function Ca(o, e, t, i, a, r) {
|
|
1107
|
-
return y(),
|
|
1107
|
+
return y(), T("div");
|
|
1108
1108
|
}
|
|
1109
|
-
const Sa = /* @__PURE__ */
|
|
1109
|
+
const Sa = /* @__PURE__ */ q(Pa, [["render", Ca]]), Ma = {
|
|
1110
1110
|
name: "IdmWorld12nm",
|
|
1111
1111
|
props: {
|
|
1112
1112
|
map: {
|
|
@@ -1165,7 +1165,7 @@ const Sa = /* @__PURE__ */ X(Pa, [["render", Ca]]), Ma = {
|
|
|
1165
1165
|
function Ta(o, e, t, i, a, r) {
|
|
1166
1166
|
return null;
|
|
1167
1167
|
}
|
|
1168
|
-
const Ra = /* @__PURE__ */
|
|
1168
|
+
const Ra = /* @__PURE__ */ q(Ma, [["render", Ta]]);
|
|
1169
1169
|
const Ia = {
|
|
1170
1170
|
name: "IdmWorldMarine",
|
|
1171
1171
|
props: {
|
|
@@ -1206,7 +1206,7 @@ const Ia = {
|
|
|
1206
1206
|
function Aa(o, e, t, i, a, r) {
|
|
1207
1207
|
return null;
|
|
1208
1208
|
}
|
|
1209
|
-
const Da = /* @__PURE__ */
|
|
1209
|
+
const Da = /* @__PURE__ */ q(Ia, [["render", Aa]]), Oa = {
|
|
1210
1210
|
name: "IdmChinaRoute",
|
|
1211
1211
|
props: {
|
|
1212
1212
|
map: {
|
|
@@ -1247,7 +1247,7 @@ const Da = /* @__PURE__ */ X(Ia, [["render", Aa]]), Oa = {
|
|
|
1247
1247
|
function Ba(o, e, t, i, a, r) {
|
|
1248
1248
|
return null;
|
|
1249
1249
|
}
|
|
1250
|
-
const Ea = /* @__PURE__ */
|
|
1250
|
+
const Ea = /* @__PURE__ */ q(Oa, [["render", Ba]]);
|
|
1251
1251
|
const ja = {
|
|
1252
1252
|
name: "IdmLatLng",
|
|
1253
1253
|
props: {
|
|
@@ -1309,7 +1309,7 @@ const ja = {
|
|
|
1309
1309
|
this.show ? ((o = this.map) == null || o.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
1310
1310
|
},
|
|
1311
1311
|
handleMouseMove(o) {
|
|
1312
|
-
const e = o.lngLat, t =
|
|
1312
|
+
const e = o.lngLat, t = ie.lng2pretty(e.lng, 2), i = ie.lat2pretty(e.lat, 2), a = `[${e.lng.toFixed(4)}, ${e.lat.toFixed(4)}]`;
|
|
1313
1313
|
this.lngLat = { lng: t, lat: i, str: a };
|
|
1314
1314
|
},
|
|
1315
1315
|
handleComputeLatLngs() {
|
|
@@ -1415,16 +1415,16 @@ const ja = {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
function Fa(o, e, t, i, a, r) {
|
|
1417
1417
|
var s, c, n, p, d;
|
|
1418
|
-
return y(),
|
|
1418
|
+
return y(), T("div", {
|
|
1419
1419
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1420
|
-
style:
|
|
1420
|
+
style: oe({ right: a.right + "px" })
|
|
1421
1421
|
}, [
|
|
1422
1422
|
l("div", null, x((c = (s = a.lngLat) == null ? void 0 : s.lat) == null ? void 0 : c.pretty), 1),
|
|
1423
1423
|
l("div", null, x((p = (n = a.lngLat) == null ? void 0 : n.lng) == null ? void 0 : p.pretty), 1),
|
|
1424
1424
|
l("div", null, x((d = a.lngLat) == null ? void 0 : d.str), 1)
|
|
1425
1425
|
], 4);
|
|
1426
1426
|
}
|
|
1427
|
-
const Oo = /* @__PURE__ */
|
|
1427
|
+
const Oo = /* @__PURE__ */ q(ja, [["render", Fa]]);
|
|
1428
1428
|
const Na = {
|
|
1429
1429
|
name: "IdmOtherLayerr",
|
|
1430
1430
|
components: {
|
|
@@ -1488,7 +1488,7 @@ const Na = {
|
|
|
1488
1488
|
right: 10,
|
|
1489
1489
|
toggle: !1,
|
|
1490
1490
|
mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
|
|
1491
|
-
tagLayers: [...
|
|
1491
|
+
tagLayers: [...Qt.OTHER_LAYERS.filter((o) => o.enabled)],
|
|
1492
1492
|
layerWeight: 0,
|
|
1493
1493
|
otherLayers: {},
|
|
1494
1494
|
activeOtherLayers: [],
|
|
@@ -1586,19 +1586,19 @@ const Na = {
|
|
|
1586
1586
|
});
|
|
1587
1587
|
if (((t = c == null ? void 0 : c.data) == null ? void 0 : t.code) === 0) {
|
|
1588
1588
|
const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data, p = [];
|
|
1589
|
-
for (const
|
|
1589
|
+
for (const m in n)
|
|
1590
1590
|
p.push(
|
|
1591
|
-
Be.get(n[
|
|
1591
|
+
Be.get(n[m], {
|
|
1592
1592
|
headers: {
|
|
1593
1593
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1594
|
-
key:
|
|
1594
|
+
key: m
|
|
1595
1595
|
}
|
|
1596
1596
|
})
|
|
1597
1597
|
);
|
|
1598
|
-
(await Promise.all(p)).map((
|
|
1598
|
+
(await Promise.all(p)).map((m) => {
|
|
1599
1599
|
var b, S, C;
|
|
1600
|
-
const f = ((b =
|
|
1601
|
-
this.otherLayers[
|
|
1600
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), _ = (C = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1601
|
+
this.otherLayers[_] = f;
|
|
1602
1602
|
});
|
|
1603
1603
|
}
|
|
1604
1604
|
} else if (o.dayNight && e & 1024) {
|
|
@@ -1609,19 +1609,19 @@ const Na = {
|
|
|
1609
1609
|
});
|
|
1610
1610
|
if (((a = c == null ? void 0 : c.data) == null ? void 0 : a.code) === 0) {
|
|
1611
1611
|
const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data, p = [];
|
|
1612
|
-
for (const
|
|
1612
|
+
for (const m in n)
|
|
1613
1613
|
p.push(
|
|
1614
|
-
Be.get(n[
|
|
1614
|
+
Be.get(n[m], {
|
|
1615
1615
|
headers: {
|
|
1616
1616
|
Authorization: this.token || this.defaultMeteoToken,
|
|
1617
|
-
key:
|
|
1617
|
+
key: m
|
|
1618
1618
|
}
|
|
1619
1619
|
})
|
|
1620
1620
|
);
|
|
1621
|
-
(await Promise.all(p)).map((
|
|
1621
|
+
(await Promise.all(p)).map((m) => {
|
|
1622
1622
|
var b, S, C;
|
|
1623
|
-
const f = ((b =
|
|
1624
|
-
this.otherLayers[
|
|
1623
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), _ = (C = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
|
|
1624
|
+
this.otherLayers[_] = f;
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
@@ -1652,24 +1652,23 @@ const Na = {
|
|
|
1652
1652
|
class: "border rounded-sm"
|
|
1653
1653
|
}, Qa = { class: "text-body-2 text-center pt-1" }, Ja = { class: "layers-body" }, $a = { class: "layers-body" }, ei = { class: "layers-body" }, ti = { class: "layers-body" };
|
|
1654
1654
|
function oi(o, e, t, i, a, r) {
|
|
1655
|
-
var
|
|
1656
|
-
const s =
|
|
1657
|
-
return y(),
|
|
1655
|
+
var V, Y, $, ee, Q, ne, ce, de, me, K;
|
|
1656
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardItem"), d = k("VCheckbox"), m = k("VCardText"), f = k("VCard"), _ = k("IdmWorld12nm"), b = k("IdmWorldMarine"), S = k("IdmChinaRoute"), C = k("IdmWarZone"), B = k("IdmGmdssArea"), M = k("IdmEcaZone"), L = k("IdmAlertZone"), v = k("IdmPort"), z = k("IdmLoadLine"), P = k("IdmTimezone"), w = k("IdmVRA"), R = k("IdmSpecialArea"), W = k("IdmTerminator"), X = k("IdmLatLng");
|
|
1657
|
+
return y(), T("div", Ha, [
|
|
1658
1658
|
l("div", {
|
|
1659
1659
|
class: "menu-bar-box transition px-1 rounded",
|
|
1660
|
-
style:
|
|
1660
|
+
style: oe({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
1661
1661
|
}, [
|
|
1662
|
-
|
|
1662
|
+
h(c, {
|
|
1663
1663
|
text: o.$t("layer.mapLayers"),
|
|
1664
1664
|
location: "left"
|
|
1665
1665
|
}, {
|
|
1666
|
-
activator: g(({ props:
|
|
1667
|
-
|
|
1666
|
+
activator: g(({ props: I }) => [
|
|
1667
|
+
h(s, E(I, {
|
|
1668
1668
|
"min-width": "32",
|
|
1669
1669
|
width: "32",
|
|
1670
1670
|
height: "32",
|
|
1671
|
-
class: "text-none pa-0",
|
|
1672
|
-
color: a.toggle ? "primary" : "",
|
|
1671
|
+
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
1673
1672
|
onClick: r.handleMenuToggle
|
|
1674
1673
|
}), {
|
|
1675
1674
|
default: g(() => e[5] || (e[5] = [
|
|
@@ -1677,18 +1676,18 @@ function oi(o, e, t, i, a, r) {
|
|
|
1677
1676
|
])),
|
|
1678
1677
|
_: 2,
|
|
1679
1678
|
__: [5]
|
|
1680
|
-
}, 1040, ["
|
|
1679
|
+
}, 1040, ["class", "onClick"])
|
|
1681
1680
|
]),
|
|
1682
1681
|
_: 1
|
|
1683
1682
|
}, 8, ["text"])
|
|
1684
1683
|
], 4),
|
|
1685
1684
|
l("div", {
|
|
1686
1685
|
class: Ne(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
1687
|
-
style:
|
|
1686
|
+
style: oe({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
1688
1687
|
}, [
|
|
1689
1688
|
l("div", Wa, [
|
|
1690
1689
|
l("div", Ga, x(o.$t("layer.layers")), 1),
|
|
1691
|
-
|
|
1690
|
+
h(s, {
|
|
1692
1691
|
icon: "",
|
|
1693
1692
|
density: "comfortable",
|
|
1694
1693
|
variant: "plain",
|
|
@@ -1706,48 +1705,48 @@ function oi(o, e, t, i, a, r) {
|
|
|
1706
1705
|
}, 8, ["onClick"])
|
|
1707
1706
|
]),
|
|
1708
1707
|
l("div", Ua, [
|
|
1709
|
-
|
|
1708
|
+
h(f, {
|
|
1710
1709
|
class: "menu-card mx-auto mb-3",
|
|
1711
1710
|
elevation: "0"
|
|
1712
1711
|
}, {
|
|
1713
1712
|
default: g(() => [
|
|
1714
|
-
|
|
1713
|
+
h(p, { class: "border-b-thin" }, {
|
|
1715
1714
|
default: g(() => [
|
|
1716
|
-
|
|
1715
|
+
h(n, {
|
|
1717
1716
|
class: "text-subtitle-1 font-weight-medium",
|
|
1718
1717
|
style: { "font-size": "16px !important" }
|
|
1719
1718
|
}, {
|
|
1720
1719
|
default: g(() => [
|
|
1721
|
-
|
|
1720
|
+
Z(x(o.$t("layer.mapFeathers")), 1)
|
|
1722
1721
|
]),
|
|
1723
1722
|
_: 1
|
|
1724
1723
|
})
|
|
1725
1724
|
]),
|
|
1726
1725
|
_: 1
|
|
1727
1726
|
}),
|
|
1728
|
-
m
|
|
1727
|
+
h(m, null, {
|
|
1729
1728
|
default: g(() => [
|
|
1730
1729
|
l("div", Va, [
|
|
1731
|
-
(y(!0),
|
|
1732
|
-
key:
|
|
1730
|
+
(y(!0), T(ve, null, ze(a.mapFeathers, (I) => (y(), T("div", {
|
|
1731
|
+
key: I.value,
|
|
1733
1732
|
class: "mb-2 feather-item",
|
|
1734
|
-
onClick: (
|
|
1733
|
+
onClick: (le) => r.handleToggleMapFeather(I)
|
|
1735
1734
|
}, [
|
|
1736
1735
|
l("div", {
|
|
1737
|
-
class: Ne([a.mapFeather ===
|
|
1736
|
+
class: Ne([a.mapFeather === I.value ? "active" : "", "img-box"])
|
|
1738
1737
|
}, [
|
|
1739
|
-
|
|
1738
|
+
I.value === "dark" ? (y(), T("img", Za)) : I.value === "nautical" ? (y(), T("img", Xa)) : I.value === "satellite" ? (y(), T("img", qa)) : (y(), T("img", Ka))
|
|
1740
1739
|
], 2),
|
|
1741
|
-
l("div", Qa, x(o.$t(`layer.${
|
|
1740
|
+
l("div", Qa, x(o.$t(`layer.${I.locale}`)), 1)
|
|
1742
1741
|
], 8, Ya))), 128))
|
|
1743
1742
|
]),
|
|
1744
1743
|
l("div", Ja, [
|
|
1745
|
-
(y(!0),
|
|
1746
|
-
key:
|
|
1744
|
+
(y(!0), T(ve, null, ze(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (y(), U(d, {
|
|
1745
|
+
key: I.key,
|
|
1747
1746
|
modelValue: a.checkList,
|
|
1748
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1749
|
-
value:
|
|
1750
|
-
label: o.$t(`layer.${
|
|
1747
|
+
"onUpdate:modelValue": e[0] || (e[0] = (le) => a.checkList = le),
|
|
1748
|
+
value: I.key,
|
|
1749
|
+
label: o.$t(`layer.${I.locale}`),
|
|
1751
1750
|
color: "primary",
|
|
1752
1751
|
density: "compact",
|
|
1753
1752
|
style: { height: "36px" },
|
|
@@ -1761,34 +1760,34 @@ function oi(o, e, t, i, a, r) {
|
|
|
1761
1760
|
]),
|
|
1762
1761
|
_: 1
|
|
1763
1762
|
}),
|
|
1764
|
-
|
|
1763
|
+
h(f, {
|
|
1765
1764
|
class: "menu-card mx-auto mb-3",
|
|
1766
1765
|
elevation: "0"
|
|
1767
1766
|
}, {
|
|
1768
1767
|
default: g(() => [
|
|
1769
|
-
|
|
1768
|
+
h(p, { class: "border-b-thin" }, {
|
|
1770
1769
|
default: g(() => [
|
|
1771
|
-
|
|
1770
|
+
h(n, {
|
|
1772
1771
|
class: "text-subtitle-1 font-weight-medium",
|
|
1773
1772
|
style: { "font-size": "16px !important" }
|
|
1774
1773
|
}, {
|
|
1775
1774
|
default: g(() => [
|
|
1776
|
-
|
|
1775
|
+
Z(x(o.$t("layer.pointsOfInteresting")), 1)
|
|
1777
1776
|
]),
|
|
1778
1777
|
_: 1
|
|
1779
1778
|
})
|
|
1780
1779
|
]),
|
|
1781
1780
|
_: 1
|
|
1782
1781
|
}),
|
|
1783
|
-
m
|
|
1782
|
+
h(m, null, {
|
|
1784
1783
|
default: g(() => [
|
|
1785
1784
|
l("div", $a, [
|
|
1786
|
-
(y(!0),
|
|
1787
|
-
key:
|
|
1785
|
+
(y(!0), T(ve, null, ze(a.tagLayers.filter((I) => ["ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
|
|
1786
|
+
key: I.key,
|
|
1788
1787
|
modelValue: a.checkList,
|
|
1789
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1790
|
-
value:
|
|
1791
|
-
label: o.$t(`layer.${
|
|
1788
|
+
"onUpdate:modelValue": e[1] || (e[1] = (le) => a.checkList = le),
|
|
1789
|
+
value: I.key,
|
|
1790
|
+
label: o.$t(`layer.${I.locale}`),
|
|
1792
1791
|
color: "primary",
|
|
1793
1792
|
density: "compact",
|
|
1794
1793
|
style: { height: "36px" },
|
|
@@ -1802,34 +1801,34 @@ function oi(o, e, t, i, a, r) {
|
|
|
1802
1801
|
]),
|
|
1803
1802
|
_: 1
|
|
1804
1803
|
}),
|
|
1805
|
-
|
|
1804
|
+
h(f, {
|
|
1806
1805
|
class: "menu-card mx-auto mb-3",
|
|
1807
1806
|
elevation: "0"
|
|
1808
1807
|
}, {
|
|
1809
1808
|
default: g(() => [
|
|
1810
|
-
|
|
1809
|
+
h(p, { class: "border-b-thin" }, {
|
|
1811
1810
|
default: g(() => [
|
|
1812
|
-
|
|
1811
|
+
h(n, {
|
|
1813
1812
|
class: "text-subtitle-1 font-weight-medium",
|
|
1814
1813
|
style: { "font-size": "16px !important" }
|
|
1815
1814
|
}, {
|
|
1816
1815
|
default: g(() => [
|
|
1817
|
-
|
|
1816
|
+
Z(x(o.$t("layer.otherLayers")), 1)
|
|
1818
1817
|
]),
|
|
1819
1818
|
_: 1
|
|
1820
1819
|
})
|
|
1821
1820
|
]),
|
|
1822
1821
|
_: 1
|
|
1823
1822
|
}),
|
|
1824
|
-
m
|
|
1823
|
+
h(m, null, {
|
|
1825
1824
|
default: g(() => [
|
|
1826
1825
|
l("div", ei, [
|
|
1827
|
-
(y(!0),
|
|
1828
|
-
key:
|
|
1826
|
+
(y(!0), T(ve, null, ze(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
|
|
1827
|
+
key: I.key,
|
|
1829
1828
|
modelValue: a.checkList,
|
|
1830
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
1831
|
-
value:
|
|
1832
|
-
label: o.$t(`layer.${
|
|
1829
|
+
"onUpdate:modelValue": e[2] || (e[2] = (le) => a.checkList = le),
|
|
1830
|
+
value: I.key,
|
|
1831
|
+
label: o.$t(`layer.${I.locale}`),
|
|
1833
1832
|
color: "primary",
|
|
1834
1833
|
density: "compact",
|
|
1835
1834
|
style: { height: "36px" },
|
|
@@ -1843,31 +1842,31 @@ function oi(o, e, t, i, a, r) {
|
|
|
1843
1842
|
]),
|
|
1844
1843
|
_: 1
|
|
1845
1844
|
}),
|
|
1846
|
-
|
|
1845
|
+
h(f, {
|
|
1847
1846
|
class: "menu-card mx-auto mb-3",
|
|
1848
1847
|
elevation: "0"
|
|
1849
1848
|
}, {
|
|
1850
1849
|
default: g(() => [
|
|
1851
|
-
|
|
1850
|
+
h(p, { class: "border-b-thin" }, {
|
|
1852
1851
|
default: g(() => [
|
|
1853
|
-
|
|
1852
|
+
h(n, {
|
|
1854
1853
|
class: "text-subtitle-1 font-weight-medium",
|
|
1855
1854
|
style: { "font-size": "16px !important" }
|
|
1856
1855
|
}, {
|
|
1857
1856
|
default: g(() => [
|
|
1858
|
-
|
|
1857
|
+
Z(x(o.$t("layer.myFollows")), 1)
|
|
1859
1858
|
]),
|
|
1860
1859
|
_: 1
|
|
1861
1860
|
})
|
|
1862
1861
|
]),
|
|
1863
1862
|
_: 1
|
|
1864
1863
|
}),
|
|
1865
|
-
m
|
|
1864
|
+
h(m, null, {
|
|
1866
1865
|
default: g(() => [
|
|
1867
1866
|
l("div", ti, [
|
|
1868
|
-
|
|
1867
|
+
h(d, {
|
|
1869
1868
|
modelValue: a.followList,
|
|
1870
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
1869
|
+
"onUpdate:modelValue": e[3] || (e[3] = (I) => a.followList = I),
|
|
1871
1870
|
value: "ports",
|
|
1872
1871
|
label: o.$t("layer.ports"),
|
|
1873
1872
|
color: "primary",
|
|
@@ -1876,9 +1875,9 @@ function oi(o, e, t, i, a, r) {
|
|
|
1876
1875
|
class: "flex-1-0-100 text-body-2",
|
|
1877
1876
|
"hide-details": ""
|
|
1878
1877
|
}, null, 8, ["modelValue", "label"]),
|
|
1879
|
-
|
|
1878
|
+
h(d, {
|
|
1880
1879
|
modelValue: a.followList,
|
|
1881
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
1880
|
+
"onUpdate:modelValue": e[4] || (e[4] = (I) => a.followList = I),
|
|
1882
1881
|
value: "locations",
|
|
1883
1882
|
label: o.$t("layer.locations"),
|
|
1884
1883
|
color: "primary",
|
|
@@ -1896,77 +1895,77 @@ function oi(o, e, t, i, a, r) {
|
|
|
1896
1895
|
})
|
|
1897
1896
|
])
|
|
1898
1897
|
], 6),
|
|
1899
|
-
t.map ? (y(),
|
|
1898
|
+
t.map ? (y(), U(_, E({
|
|
1900
1899
|
key: 0,
|
|
1901
1900
|
map: t.map,
|
|
1902
1901
|
token: t.token,
|
|
1903
1902
|
show: a.checkList.includes("world12nm")
|
|
1904
1903
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
1905
|
-
t.map ? (y(),
|
|
1904
|
+
t.map ? (y(), U(b, E({
|
|
1906
1905
|
key: 1,
|
|
1907
1906
|
map: t.map,
|
|
1908
1907
|
token: t.token,
|
|
1909
1908
|
show: a.checkList.includes("worldMarine")
|
|
1910
1909
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
1911
|
-
t.map ? (y(),
|
|
1910
|
+
t.map ? (y(), U(S, E({
|
|
1912
1911
|
key: 2,
|
|
1913
1912
|
map: t.map,
|
|
1914
1913
|
token: t.token,
|
|
1915
1914
|
show: a.checkList.includes("chinaRoute")
|
|
1916
1915
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
1917
|
-
t.map ? (y(),
|
|
1916
|
+
t.map ? (y(), U(C, E({
|
|
1918
1917
|
key: 3,
|
|
1919
1918
|
map: t.map,
|
|
1920
|
-
zone: (
|
|
1919
|
+
zone: (V = a.otherLayers) == null ? void 0 : V["war-zones"]
|
|
1921
1920
|
}, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
1922
|
-
t.map ? (y(),
|
|
1921
|
+
t.map ? (y(), U(B, E({
|
|
1923
1922
|
key: 4,
|
|
1924
1923
|
map: t.map,
|
|
1925
|
-
area: (
|
|
1924
|
+
area: (Y = a.otherLayers) == null ? void 0 : Y["gmdss-areas"]
|
|
1926
1925
|
}, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
1927
|
-
t.map ? (y(),
|
|
1926
|
+
t.map ? (y(), U(M, E({
|
|
1928
1927
|
key: 5,
|
|
1929
1928
|
map: t.map,
|
|
1930
1929
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1931
1930
|
}, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
1932
|
-
t.map ? (y(),
|
|
1931
|
+
t.map ? (y(), U(L, E({
|
|
1933
1932
|
key: 6,
|
|
1934
1933
|
map: t.map,
|
|
1935
1934
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
|
|
1936
1935
|
"before-layer": "empty-layer-3"
|
|
1937
1936
|
}, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
1938
|
-
t.map ? (y(),
|
|
1937
|
+
t.map ? (y(), U(v, E({
|
|
1939
1938
|
key: 7,
|
|
1940
1939
|
map: t.map,
|
|
1941
|
-
port: (
|
|
1940
|
+
port: (Q = a.otherLayers) == null ? void 0 : Q.ports,
|
|
1942
1941
|
"forecast-model": t.forecastModel
|
|
1943
1942
|
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : N("", !0),
|
|
1944
|
-
t.map ? (y(),
|
|
1943
|
+
t.map ? (y(), U(z, E({
|
|
1945
1944
|
key: 8,
|
|
1946
1945
|
map: t.map,
|
|
1947
|
-
line: (
|
|
1946
|
+
line: (ne = a.otherLayers) == null ? void 0 : ne["load-lines"]
|
|
1948
1947
|
}, o.$attrs), null, 16, ["map", "line"])) : N("", !0),
|
|
1949
|
-
t.map ? (y(),
|
|
1948
|
+
t.map ? (y(), U(P, E({
|
|
1950
1949
|
key: 9,
|
|
1951
1950
|
map: t.map,
|
|
1952
1951
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["time-zones"]
|
|
1953
1952
|
}, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
1954
|
-
t.map ? (y(),
|
|
1953
|
+
t.map ? (y(), U(w, E({
|
|
1955
1954
|
key: 10,
|
|
1956
1955
|
map: t.map,
|
|
1957
|
-
area: (
|
|
1956
|
+
area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
|
|
1958
1957
|
}, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
1959
|
-
t.map ? (y(),
|
|
1958
|
+
t.map ? (y(), U(R, E({
|
|
1960
1959
|
key: 11,
|
|
1961
1960
|
map: t.map,
|
|
1962
1961
|
area: (me = a.otherLayers) == null ? void 0 : me["special-area"]
|
|
1963
1962
|
}, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
1964
|
-
t.map ? (y(),
|
|
1963
|
+
t.map ? (y(), U(W, E({
|
|
1965
1964
|
key: 12,
|
|
1966
1965
|
map: t.map,
|
|
1967
|
-
area: (
|
|
1966
|
+
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
1968
1967
|
}, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
1969
|
-
t.map ? (y(),
|
|
1968
|
+
t.map ? (y(), U(X, E({
|
|
1970
1969
|
key: 13,
|
|
1971
1970
|
map: t.map,
|
|
1972
1971
|
"menu-toggle": t.menuToggle,
|
|
@@ -1974,18 +1973,18 @@ function oi(o, e, t, i, a, r) {
|
|
|
1974
1973
|
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : N("", !0)
|
|
1975
1974
|
]);
|
|
1976
1975
|
}
|
|
1977
|
-
const ai = /* @__PURE__ */
|
|
1978
|
-
class
|
|
1976
|
+
const ai = /* @__PURE__ */ q(Na, [["render", oi]]);
|
|
1977
|
+
class oo {
|
|
1979
1978
|
constructor(e) {
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1979
|
+
re(this, "map");
|
|
1980
|
+
re(this, "mercator");
|
|
1981
|
+
re(this, "rampColorLayer");
|
|
1982
|
+
re(this, "rampColorSource");
|
|
1983
|
+
re(this, "particleLayer");
|
|
1984
|
+
re(this, "particleSource");
|
|
1985
|
+
re(this, "rampColorCanvas");
|
|
1986
|
+
re(this, "particleCanvas");
|
|
1987
|
+
re(this, "ratio");
|
|
1989
1988
|
this.map = e, this.mercator = new Ho(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
1990
1989
|
}
|
|
1991
1990
|
/**
|
|
@@ -2025,8 +2024,8 @@ class co {
|
|
|
2025
2024
|
const e = (b = this.map) == null ? void 0 : b.getBounds();
|
|
2026
2025
|
if (!e)
|
|
2027
2026
|
return [];
|
|
2028
|
-
const t = ((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]), [p, d] = this.mercator.px([r, i[1]], t), [
|
|
2029
|
-
return [
|
|
2027
|
+
const t = ((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]), [p, d] = this.mercator.px([r, i[1]], t), [m, f] = this.mercator.px([c, a[1]], t), _ = Math.round(this.mercator.size * Math.pow(2, t) * (s + n));
|
|
2028
|
+
return [m, f, p + _, d];
|
|
2030
2029
|
}
|
|
2031
2030
|
/**
|
|
2032
2031
|
* [视窗边界像素宽度]
|
|
@@ -2043,11 +2042,11 @@ class co {
|
|
|
2043
2042
|
getWorldCopy(e, t) {
|
|
2044
2043
|
const i = 2 ** t, [a, r, s, c] = e.map((d) => ~~(d / (i * 256))), n = [];
|
|
2045
2044
|
for (let d = c; d <= r; d++)
|
|
2046
|
-
for (let
|
|
2047
|
-
n.push([
|
|
2045
|
+
for (let m = a; m <= s; m++)
|
|
2046
|
+
n.push([m, d]);
|
|
2048
2047
|
return n.map((d) => {
|
|
2049
|
-
const
|
|
2050
|
-
return [d[0] *
|
|
2048
|
+
const m = 2 ** t * 256;
|
|
2049
|
+
return [d[0] * m, d[1] * m, m];
|
|
2051
2050
|
});
|
|
2052
2051
|
}
|
|
2053
2052
|
resize() {
|
|
@@ -2191,8 +2190,8 @@ class je {
|
|
|
2191
2190
|
return {};
|
|
2192
2191
|
}
|
|
2193
2192
|
bindParticle(e, t, i, a, r, s) {
|
|
2194
|
-
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r), p = this.createProgramWrapper(e, a, s), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])),
|
|
2195
|
-
return { particle: c, screen: n, update: p, quadBuffer: d, frameBuffer:
|
|
2193
|
+
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r), p = this.createProgramWrapper(e, a, s), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), m = e.createFramebuffer();
|
|
2194
|
+
return { particle: c, screen: n, update: p, quadBuffer: d, frameBuffer: m };
|
|
2196
2195
|
}
|
|
2197
2196
|
draw(e, t, i, a, r, s, c) {
|
|
2198
2197
|
var n, p;
|
|
@@ -2209,9 +2208,9 @@ class je {
|
|
|
2209
2208
|
sRange: t.getUniformLocation(i, "u_range_s")
|
|
2210
2209
|
};
|
|
2211
2210
|
d.resolution && t.uniform2f(d.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), d.image && t.uniform1i(d.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, r), d.color && t.uniform1i(d.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (d.uvRange && t.uniform2f(d.uvRange, c.uvRange[0], c.uvRange[1]), d.sRange && t.uniform2f(d.sRange, c.sRange[0], c.sRange[1])), d.scale && t.uniform1f(d.scale, (c == null ? void 0 : c.scale) || 1);
|
|
2212
|
-
const
|
|
2213
|
-
for (const b of
|
|
2214
|
-
const S = (b[0] -
|
|
2211
|
+
const m = e.getBoundPixel(), f = e.map.getZoom() + 1, _ = e.getWorldCopy(m, f);
|
|
2212
|
+
for (const b of _) {
|
|
2213
|
+
const S = (b[0] - m[0]) * e.ratio, C = (b[1] - m[3]) * e.ratio, B = b[2] * e.ratio, [M, L, v, z] = [S, B + S, C, B + C], P = new Float32Array([M, v, L, v, M, z, M, z, L, v, L, z]);
|
|
2215
2214
|
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, P, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
2216
2215
|
}
|
|
2217
2216
|
} catch (d) {
|
|
@@ -2260,10 +2259,10 @@ class je {
|
|
|
2260
2259
|
});
|
|
2261
2260
|
}
|
|
2262
2261
|
}
|
|
2263
|
-
class
|
|
2262
|
+
class se {
|
|
2264
2263
|
}
|
|
2265
2264
|
// 顶点渲染
|
|
2266
|
-
|
|
2265
|
+
re(se, "vertexSchema", `
|
|
2267
2266
|
//canvas 坐标系上的坐标 (x, y)
|
|
2268
2267
|
attribute vec2 a_position; //像素坐标
|
|
2269
2268
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -2278,7 +2277,7 @@ ie(re, "vertexSchema", `
|
|
|
2278
2277
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
2279
2278
|
v_texCoord = a_texCoord;
|
|
2280
2279
|
}`), // 类如风、流等u v双变量片元渲染
|
|
2281
|
-
|
|
2280
|
+
re(se, "uvFragmentSchema", `
|
|
2282
2281
|
precision mediump float;
|
|
2283
2282
|
uniform sampler2D u_image;
|
|
2284
2283
|
uniform vec2 u_range_u_v;
|
|
@@ -2298,7 +2297,7 @@ ie(re, "uvFragmentSchema", `
|
|
|
2298
2297
|
|
|
2299
2298
|
gl_FragColor = color;
|
|
2300
2299
|
}`), // 类如浪、气压等单变量片元渲染
|
|
2301
|
-
|
|
2300
|
+
re(se, "fragmentSchema", `
|
|
2302
2301
|
precision mediump float;
|
|
2303
2302
|
uniform sampler2D u_image; // 灰度
|
|
2304
2303
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -2311,7 +2310,7 @@ ie(re, "fragmentSchema", `
|
|
|
2311
2310
|
}`);
|
|
2312
2311
|
class be {
|
|
2313
2312
|
}
|
|
2314
|
-
|
|
2313
|
+
re(be, "vertexSchema", `
|
|
2315
2314
|
precision mediump float;
|
|
2316
2315
|
|
|
2317
2316
|
attribute float a_index; // 索引
|
|
@@ -2335,7 +2334,7 @@ ie(be, "vertexSchema", `
|
|
|
2335
2334
|
gl_PointSize = 1.0;
|
|
2336
2335
|
// gl_PointSize = u_point;
|
|
2337
2336
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
2338
|
-
}`),
|
|
2337
|
+
}`), re(be, "fragmentSchema", `
|
|
2339
2338
|
precision mediump float;
|
|
2340
2339
|
|
|
2341
2340
|
uniform sampler2D u_factor;
|
|
@@ -2357,7 +2356,7 @@ ie(be, "vertexSchema", `
|
|
|
2357
2356
|
|
|
2358
2357
|
float f = 1.0 - uv.b;
|
|
2359
2358
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
2360
|
-
}`),
|
|
2359
|
+
}`), re(be, "quadVertSchema", `
|
|
2361
2360
|
precision mediump float;
|
|
2362
2361
|
|
|
2363
2362
|
attribute vec2 a_pos;
|
|
@@ -2367,7 +2366,7 @@ ie(be, "vertexSchema", `
|
|
|
2367
2366
|
void main() {
|
|
2368
2367
|
v_tex_pos = a_pos;
|
|
2369
2368
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
2370
|
-
}`),
|
|
2369
|
+
}`), re(be, "screenFragmentSchema", `
|
|
2371
2370
|
precision mediump float;
|
|
2372
2371
|
|
|
2373
2372
|
uniform sampler2D u_screen;
|
|
@@ -2379,7 +2378,7 @@ ie(be, "vertexSchema", `
|
|
|
2379
2378
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
2380
2379
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
2381
2380
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
2382
|
-
}`),
|
|
2381
|
+
}`), re(be, "updateFragmentSchema", `
|
|
2383
2382
|
precision mediump float;
|
|
2384
2383
|
|
|
2385
2384
|
uniform sampler2D u_particles;
|
|
@@ -2537,10 +2536,10 @@ const ii = {
|
|
|
2537
2536
|
else {
|
|
2538
2537
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
2539
2538
|
for (let n = 0; n < (this.barbs ?? []).length - 1; n++) {
|
|
2540
|
-
const p = (this.barbs ?? [])[n] || 0, d = (this.barbs ?? [])[n + 1] || 0,
|
|
2539
|
+
const p = (this.barbs ?? [])[n] || 0, d = (this.barbs ?? [])[n + 1] || 0, m = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
|
|
2541
2540
|
this.map.addLayer(
|
|
2542
2541
|
{
|
|
2543
|
-
id:
|
|
2542
|
+
id: m,
|
|
2544
2543
|
type: "symbol",
|
|
2545
2544
|
filter: [
|
|
2546
2545
|
"all",
|
|
@@ -2552,7 +2551,7 @@ const ii = {
|
|
|
2552
2551
|
source: this.source,
|
|
2553
2552
|
layout: {
|
|
2554
2553
|
"symbol-placement": "point",
|
|
2555
|
-
"icon-image":
|
|
2554
|
+
"icon-image": m,
|
|
2556
2555
|
// mapbox sprite
|
|
2557
2556
|
"icon-size": 0.14,
|
|
2558
2557
|
"icon-offset": [0, -20],
|
|
@@ -2601,7 +2600,7 @@ const ii = {
|
|
|
2601
2600
|
function ri(o, e, t, i, a, r) {
|
|
2602
2601
|
return null;
|
|
2603
2602
|
}
|
|
2604
|
-
const li = /* @__PURE__ */
|
|
2603
|
+
const li = /* @__PURE__ */ q(ii, [["render", ri]]);
|
|
2605
2604
|
const si = {
|
|
2606
2605
|
name: "IdmWindParticle",
|
|
2607
2606
|
props: {
|
|
@@ -2609,7 +2608,7 @@ const si = {
|
|
|
2609
2608
|
type: Object
|
|
2610
2609
|
},
|
|
2611
2610
|
viewport: {
|
|
2612
|
-
type:
|
|
2611
|
+
type: oo
|
|
2613
2612
|
},
|
|
2614
2613
|
menuToggle: {
|
|
2615
2614
|
type: Object
|
|
@@ -2712,7 +2711,7 @@ const si = {
|
|
|
2712
2711
|
[1, "rgb(91, 136, 161)"]
|
|
2713
2712
|
];
|
|
2714
2713
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
2715
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
2714
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
|
|
2716
2715
|
this.program = e, this.aPositionBuffer = t;
|
|
2717
2716
|
}
|
|
2718
2717
|
this.handleParticleSetup();
|
|
@@ -2771,10 +2770,10 @@ const si = {
|
|
|
2771
2770
|
}, ni = { key: 0 };
|
|
2772
2771
|
function ci(o, e, t, i, a, r) {
|
|
2773
2772
|
var s;
|
|
2774
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
2773
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", ni, [
|
|
2775
2774
|
l("div", {
|
|
2776
2775
|
class: "legend-bars-gl4 wind",
|
|
2777
|
-
style:
|
|
2776
|
+
style: oe({ right: a.right + "px" })
|
|
2778
2777
|
}, e[0] || (e[0] = [
|
|
2779
2778
|
l("span", null, "kts", -1),
|
|
2780
2779
|
l("span", null, "0", -1),
|
|
@@ -2787,7 +2786,7 @@ function ci(o, e, t, i, a, r) {
|
|
|
2787
2786
|
]), 4)
|
|
2788
2787
|
])) : N("", !0);
|
|
2789
2788
|
}
|
|
2790
|
-
const mi = /* @__PURE__ */
|
|
2789
|
+
const mi = /* @__PURE__ */ q(si, [["render", ci]]), hi = {
|
|
2791
2790
|
name: "IdmCurrent",
|
|
2792
2791
|
props: {
|
|
2793
2792
|
map: {
|
|
@@ -2901,10 +2900,10 @@ const mi = /* @__PURE__ */ X(si, [["render", ci]]), hi = {
|
|
|
2901
2900
|
const p = new Image(48, 48);
|
|
2902
2901
|
c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#f44336"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), p.src = n;
|
|
2903
2902
|
const d = [s, p];
|
|
2904
|
-
let
|
|
2903
|
+
let m = 0;
|
|
2905
2904
|
d.forEach((f) => {
|
|
2906
2905
|
f.onload = () => {
|
|
2907
|
-
|
|
2906
|
+
m++, this.map.hasImage("currentDirIconWhite") || this.map.addImage("currentDirIconWhite", s), this.map.hasImage("currentDirIconRed") || this.map.addImage("currentDirIconRed", p), m === 2 && this.map.addLayer(
|
|
2908
2907
|
{
|
|
2909
2908
|
id: this.directionLayer,
|
|
2910
2909
|
type: "symbol",
|
|
@@ -2956,7 +2955,7 @@ const mi = /* @__PURE__ */ X(si, [["render", ci]]), hi = {
|
|
|
2956
2955
|
function di(o, e, t, i, a, r) {
|
|
2957
2956
|
return null;
|
|
2958
2957
|
}
|
|
2959
|
-
const pi = /* @__PURE__ */
|
|
2958
|
+
const pi = /* @__PURE__ */ q(hi, [["render", di]]);
|
|
2960
2959
|
const ui = {
|
|
2961
2960
|
name: "IdmCurrentParticle",
|
|
2962
2961
|
props: {
|
|
@@ -2964,7 +2963,7 @@ const ui = {
|
|
|
2964
2963
|
type: Object
|
|
2965
2964
|
},
|
|
2966
2965
|
viewport: {
|
|
2967
|
-
type:
|
|
2966
|
+
type: oo
|
|
2968
2967
|
},
|
|
2969
2968
|
menuToggle: {
|
|
2970
2969
|
type: Object
|
|
@@ -3059,7 +3058,7 @@ const ui = {
|
|
|
3059
3058
|
[1, "rgb(195,194,194)"]
|
|
3060
3059
|
];
|
|
3061
3060
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
3062
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3061
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
|
|
3063
3062
|
this.program = e, this.aPositionBuffer = t;
|
|
3064
3063
|
}
|
|
3065
3064
|
this.handleParticleSetup();
|
|
@@ -3123,10 +3122,10 @@ const ui = {
|
|
|
3123
3122
|
}, gi = { key: 0 };
|
|
3124
3123
|
function fi(o, e, t, i, a, r) {
|
|
3125
3124
|
var s;
|
|
3126
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
3125
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", gi, [
|
|
3127
3126
|
l("div", {
|
|
3128
3127
|
class: "legend-bars-gl4 current",
|
|
3129
|
-
style:
|
|
3128
|
+
style: oe({ right: a.right + "px" })
|
|
3130
3129
|
}, e[0] || (e[0] = [
|
|
3131
3130
|
l("span", null, "kts", -1),
|
|
3132
3131
|
l("span", null, "0", -1),
|
|
@@ -3138,7 +3137,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
3138
3137
|
]), 4)
|
|
3139
3138
|
])) : N("", !0);
|
|
3140
3139
|
}
|
|
3141
|
-
const bi = /* @__PURE__ */
|
|
3140
|
+
const bi = /* @__PURE__ */ q(ui, [["render", fi]]);
|
|
3142
3141
|
const yi = {
|
|
3143
3142
|
name: "IdmTemp",
|
|
3144
3143
|
props: {
|
|
@@ -3235,7 +3234,7 @@ const yi = {
|
|
|
3235
3234
|
//13
|
|
3236
3235
|
];
|
|
3237
3236
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
3238
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3237
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
3239
3238
|
this.program = e, this.aPositionBuffer = t;
|
|
3240
3239
|
}
|
|
3241
3240
|
},
|
|
@@ -3251,10 +3250,10 @@ const yi = {
|
|
|
3251
3250
|
}, wi = { key: 0 };
|
|
3252
3251
|
function xi(o, e, t, i, a, r) {
|
|
3253
3252
|
var s;
|
|
3254
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
3253
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", wi, [
|
|
3255
3254
|
l("div", {
|
|
3256
3255
|
class: "legend-bars-gl4 sig-wave",
|
|
3257
|
-
style:
|
|
3256
|
+
style: oe({ right: a.right + "px" })
|
|
3258
3257
|
}, e[0] || (e[0] = [
|
|
3259
3258
|
l("span", null, "m", -1),
|
|
3260
3259
|
l("span", null, "0.5", -1),
|
|
@@ -3266,7 +3265,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
3266
3265
|
]), 4)
|
|
3267
3266
|
])) : N("", !0);
|
|
3268
3267
|
}
|
|
3269
|
-
const vi = /* @__PURE__ */
|
|
3268
|
+
const vi = /* @__PURE__ */ q(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2"]]), _i = {
|
|
3270
3269
|
name: "IdmSigWave",
|
|
3271
3270
|
props: {
|
|
3272
3271
|
map: {
|
|
@@ -3397,7 +3396,7 @@ const vi = /* @__PURE__ */ X(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2
|
|
|
3397
3396
|
function ki(o, e, t, i, a, r) {
|
|
3398
3397
|
return null;
|
|
3399
3398
|
}
|
|
3400
|
-
const zi = /* @__PURE__ */
|
|
3399
|
+
const zi = /* @__PURE__ */ q(_i, [["render", ki]]), Li = {
|
|
3401
3400
|
name: "IdmSwell",
|
|
3402
3401
|
props: {
|
|
3403
3402
|
map: {
|
|
@@ -3549,9 +3548,9 @@ const zi = /* @__PURE__ */ X(_i, [["render", ki]]), Li = {
|
|
|
3549
3548
|
}
|
|
3550
3549
|
};
|
|
3551
3550
|
function Pi(o, e, t, i, a, r) {
|
|
3552
|
-
return y(),
|
|
3551
|
+
return y(), T("div");
|
|
3553
3552
|
}
|
|
3554
|
-
const Ci = /* @__PURE__ */
|
|
3553
|
+
const Ci = /* @__PURE__ */ q(Li, [["render", Pi]]), Si = {
|
|
3555
3554
|
name: "IdmPrmsl",
|
|
3556
3555
|
props: {
|
|
3557
3556
|
map: {
|
|
@@ -3683,18 +3682,18 @@ const Ci = /* @__PURE__ */ X(Li, [["render", Pi]]), Si = {
|
|
|
3683
3682
|
};
|
|
3684
3683
|
function Ti(o, e, t, i, a, r) {
|
|
3685
3684
|
var n;
|
|
3686
|
-
const s =
|
|
3687
|
-
return (n = t.prmsl) != null && n.active ? (y(),
|
|
3685
|
+
const s = k("VBtn"), c = k("VTooltip");
|
|
3686
|
+
return (n = t.prmsl) != null && n.active ? (y(), T("div", Mi, [
|
|
3688
3687
|
l("div", {
|
|
3689
3688
|
class: "menu-bar-box pa-1 rounded",
|
|
3690
|
-
style:
|
|
3689
|
+
style: oe({ right: a.right + "px" })
|
|
3691
3690
|
}, [
|
|
3692
|
-
|
|
3691
|
+
h(c, {
|
|
3693
3692
|
text: "Map Layers",
|
|
3694
3693
|
location: "left"
|
|
3695
3694
|
}, {
|
|
3696
3695
|
activator: g(({ props: p }) => [
|
|
3697
|
-
|
|
3696
|
+
h(s, E(p, {
|
|
3698
3697
|
"min-width": "32",
|
|
3699
3698
|
width: "32",
|
|
3700
3699
|
height: "32",
|
|
@@ -3714,7 +3713,7 @@ function Ti(o, e, t, i, a, r) {
|
|
|
3714
3713
|
], 4)
|
|
3715
3714
|
])) : N("", !0);
|
|
3716
3715
|
}
|
|
3717
|
-
const Ri = /* @__PURE__ */
|
|
3716
|
+
const Ri = /* @__PURE__ */ q(Si, [["render", Ti]]);
|
|
3718
3717
|
const Ii = {
|
|
3719
3718
|
name: "IdmIceEdge",
|
|
3720
3719
|
props: {
|
|
@@ -3803,7 +3802,7 @@ const Ii = {
|
|
|
3803
3802
|
// 100%
|
|
3804
3803
|
];
|
|
3805
3804
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
3806
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3805
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
3807
3806
|
this.program = e, this.aPositionBuffer = t;
|
|
3808
3807
|
}
|
|
3809
3808
|
},
|
|
@@ -3819,10 +3818,10 @@ const Ii = {
|
|
|
3819
3818
|
}, Ai = { key: 0 };
|
|
3820
3819
|
function Di(o, e, t, i, a, r) {
|
|
3821
3820
|
var s;
|
|
3822
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
3821
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Ai, [
|
|
3823
3822
|
l("div", {
|
|
3824
3823
|
class: "legend-bars-gl4 ice-edge",
|
|
3825
|
-
style:
|
|
3824
|
+
style: oe({ right: a.right + "px" })
|
|
3826
3825
|
}, e[0] || (e[0] = [
|
|
3827
3826
|
l("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
3828
3827
|
l("span", null, null, -1),
|
|
@@ -3839,7 +3838,7 @@ function Di(o, e, t, i, a, r) {
|
|
|
3839
3838
|
]), 4)
|
|
3840
3839
|
])) : N("", !0);
|
|
3841
3840
|
}
|
|
3842
|
-
const Oi = /* @__PURE__ */
|
|
3841
|
+
const Oi = /* @__PURE__ */ q(Ii, [["render", Di]]);
|
|
3843
3842
|
const Bi = {
|
|
3844
3843
|
name: "IdmCover",
|
|
3845
3844
|
props: {
|
|
@@ -3919,7 +3918,7 @@ const Bi = {
|
|
|
3919
3918
|
// 100%
|
|
3920
3919
|
];
|
|
3921
3920
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
3922
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3921
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
3923
3922
|
this.program = e, this.aPositionBuffer = t;
|
|
3924
3923
|
}
|
|
3925
3924
|
},
|
|
@@ -3935,10 +3934,10 @@ const Bi = {
|
|
|
3935
3934
|
}, Ei = { key: 0 };
|
|
3936
3935
|
function ji(o, e, t, i, a, r) {
|
|
3937
3936
|
var s;
|
|
3938
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
3937
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Ei, [
|
|
3939
3938
|
l("div", {
|
|
3940
3939
|
class: "legend-bars-gl4 ice-cover",
|
|
3941
|
-
style:
|
|
3940
|
+
style: oe({ right: a.right + "px" })
|
|
3942
3941
|
}, e[0] || (e[0] = [
|
|
3943
3942
|
l("span", null, "%", -1),
|
|
3944
3943
|
l("span", null, "20", -1),
|
|
@@ -3949,7 +3948,7 @@ function ji(o, e, t, i, a, r) {
|
|
|
3949
3948
|
]), 4)
|
|
3950
3949
|
])) : N("", !0);
|
|
3951
3950
|
}
|
|
3952
|
-
const Fi = /* @__PURE__ */
|
|
3951
|
+
const Fi = /* @__PURE__ */ q(Bi, [["render", ji], ["__scopeId", "data-v-9696d73b"]]);
|
|
3953
3952
|
const Ni = {
|
|
3954
3953
|
name: "IdmThickness",
|
|
3955
3954
|
props: {
|
|
@@ -4037,7 +4036,7 @@ const Ni = {
|
|
|
4037
4036
|
// 4m
|
|
4038
4037
|
];
|
|
4039
4038
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
4040
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4039
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
4041
4040
|
this.program = e, this.aPositionBuffer = t;
|
|
4042
4041
|
}
|
|
4043
4042
|
},
|
|
@@ -4053,10 +4052,10 @@ const Ni = {
|
|
|
4053
4052
|
}, Hi = { key: 0 };
|
|
4054
4053
|
function Wi(o, e, t, i, a, r) {
|
|
4055
4054
|
var s;
|
|
4056
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
4055
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Hi, [
|
|
4057
4056
|
l("div", {
|
|
4058
4057
|
class: "legend-bars-gl4 ice-thickness",
|
|
4059
|
-
style:
|
|
4058
|
+
style: oe({ right: a.right + "px" })
|
|
4060
4059
|
}, e[0] || (e[0] = [
|
|
4061
4060
|
l("span", null, "m", -1),
|
|
4062
4061
|
l("span", null, "0", -1),
|
|
@@ -4068,7 +4067,7 @@ function Wi(o, e, t, i, a, r) {
|
|
|
4068
4067
|
]), 4)
|
|
4069
4068
|
])) : N("", !0);
|
|
4070
4069
|
}
|
|
4071
|
-
const Gi = /* @__PURE__ */
|
|
4070
|
+
const Gi = /* @__PURE__ */ q(Ni, [["render", Wi]]);
|
|
4072
4071
|
const Ui = {
|
|
4073
4072
|
name: "IdmPrecip3h",
|
|
4074
4073
|
props: {
|
|
@@ -4157,7 +4156,7 @@ const Ui = {
|
|
|
4157
4156
|
[1, "rgba(197,5,58,0.8)"]
|
|
4158
4157
|
];
|
|
4159
4158
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
4160
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4159
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
4161
4160
|
this.program = e, this.aPositionBuffer = t;
|
|
4162
4161
|
}
|
|
4163
4162
|
},
|
|
@@ -4173,10 +4172,10 @@ const Ui = {
|
|
|
4173
4172
|
}, Vi = { key: 0 };
|
|
4174
4173
|
function Yi(o, e, t, i, a, r) {
|
|
4175
4174
|
var s;
|
|
4176
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
4175
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Vi, [
|
|
4177
4176
|
l("div", {
|
|
4178
4177
|
class: "legend-bars-gl4 precip3h",
|
|
4179
|
-
style:
|
|
4178
|
+
style: oe({ right: a.right + "px" })
|
|
4180
4179
|
}, e[0] || (e[0] = [
|
|
4181
4180
|
l("span", null, "mm", -1),
|
|
4182
4181
|
l("span", null, "1.5", -1),
|
|
@@ -4189,7 +4188,7 @@ function Yi(o, e, t, i, a, r) {
|
|
|
4189
4188
|
]), 4)
|
|
4190
4189
|
])) : N("", !0);
|
|
4191
4190
|
}
|
|
4192
|
-
const Zi = /* @__PURE__ */
|
|
4191
|
+
const Zi = /* @__PURE__ */ q(Ui, [["render", Yi]]);
|
|
4193
4192
|
const Xi = {
|
|
4194
4193
|
name: "IdmVisibility",
|
|
4195
4194
|
props: {
|
|
@@ -4268,7 +4267,7 @@ const Xi = {
|
|
|
4268
4267
|
[1, "rgba(144,144,144,0)"]
|
|
4269
4268
|
];
|
|
4270
4269
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
4271
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4270
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
4272
4271
|
this.program = e, this.aPositionBuffer = t;
|
|
4273
4272
|
}
|
|
4274
4273
|
},
|
|
@@ -4284,10 +4283,10 @@ const Xi = {
|
|
|
4284
4283
|
}, qi = { key: 0 };
|
|
4285
4284
|
function Ki(o, e, t, i, a, r) {
|
|
4286
4285
|
var s;
|
|
4287
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
4286
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", qi, [
|
|
4288
4287
|
l("div", {
|
|
4289
4288
|
class: "legend-bars-gl4 visibility",
|
|
4290
|
-
style:
|
|
4289
|
+
style: oe({ right: a.right + "px" })
|
|
4291
4290
|
}, e[0] || (e[0] = [
|
|
4292
4291
|
l("span", null, "nm", -1),
|
|
4293
4292
|
l("span", null, "0", -1),
|
|
@@ -4298,7 +4297,7 @@ function Ki(o, e, t, i, a, r) {
|
|
|
4298
4297
|
]), 4)
|
|
4299
4298
|
])) : N("", !0);
|
|
4300
4299
|
}
|
|
4301
|
-
const Qi = /* @__PURE__ */
|
|
4300
|
+
const Qi = /* @__PURE__ */ q(Xi, [["render", Ki]]);
|
|
4302
4301
|
const Ji = {
|
|
4303
4302
|
name: "IdmWaterTemp",
|
|
4304
4303
|
props: {
|
|
@@ -4380,7 +4379,7 @@ const Ji = {
|
|
|
4380
4379
|
//
|
|
4381
4380
|
];
|
|
4382
4381
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
4383
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4382
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
4384
4383
|
this.program = e, this.aPositionBuffer = t;
|
|
4385
4384
|
}
|
|
4386
4385
|
},
|
|
@@ -4396,10 +4395,10 @@ const Ji = {
|
|
|
4396
4395
|
}, $i = { key: 0 };
|
|
4397
4396
|
function er(o, e, t, i, a, r) {
|
|
4398
4397
|
var s;
|
|
4399
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
4398
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", $i, [
|
|
4400
4399
|
l("div", {
|
|
4401
4400
|
class: "legend-bars-gl4 water-temp",
|
|
4402
|
-
style:
|
|
4401
|
+
style: oe({ right: a.right + "px" })
|
|
4403
4402
|
}, e[0] || (e[0] = [
|
|
4404
4403
|
l("span", null, "°C", -1),
|
|
4405
4404
|
l("span", null, "0", -1),
|
|
@@ -4410,7 +4409,7 @@ function er(o, e, t, i, a, r) {
|
|
|
4410
4409
|
]), 4)
|
|
4411
4410
|
])) : N("", !0);
|
|
4412
4411
|
}
|
|
4413
|
-
const tr = /* @__PURE__ */
|
|
4412
|
+
const tr = /* @__PURE__ */ q(Ji, [["render", er]]);
|
|
4414
4413
|
const or = {
|
|
4415
4414
|
name: "IdmTemp",
|
|
4416
4415
|
props: {
|
|
@@ -4503,7 +4502,7 @@ const or = {
|
|
|
4503
4502
|
[1, "rgb(138, 43, 10)"]
|
|
4504
4503
|
];
|
|
4505
4504
|
this.rampColor = this.webgl.setup(this.context, o);
|
|
4506
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4505
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
|
|
4507
4506
|
this.program = e, this.aPositionBuffer = t;
|
|
4508
4507
|
}
|
|
4509
4508
|
},
|
|
@@ -4519,10 +4518,10 @@ const or = {
|
|
|
4519
4518
|
}, ar = { key: 0 };
|
|
4520
4519
|
function ir(o, e, t, i, a, r) {
|
|
4521
4520
|
var s;
|
|
4522
|
-
return (s = t.factor) != null && s.active ? (y(),
|
|
4521
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", ar, [
|
|
4523
4522
|
l("div", {
|
|
4524
4523
|
class: "legend-bars-gl4 temp",
|
|
4525
|
-
style:
|
|
4524
|
+
style: oe({ right: a.right + "px" })
|
|
4526
4525
|
}, e[0] || (e[0] = [
|
|
4527
4526
|
l("span", null, "°C", -1),
|
|
4528
4527
|
l("span", null, "-20", -1),
|
|
@@ -4535,7 +4534,7 @@ function ir(o, e, t, i, a, r) {
|
|
|
4535
4534
|
]), 4)
|
|
4536
4535
|
])) : N("", !0);
|
|
4537
4536
|
}
|
|
4538
|
-
const rr = /* @__PURE__ */
|
|
4537
|
+
const rr = /* @__PURE__ */ q(or, [["render", ir]]);
|
|
4539
4538
|
const lr = {
|
|
4540
4539
|
name: "IdmGlLayer",
|
|
4541
4540
|
components: {
|
|
@@ -4607,8 +4606,8 @@ const lr = {
|
|
|
4607
4606
|
right: 10,
|
|
4608
4607
|
toggle: !1,
|
|
4609
4608
|
autoActive: !0,
|
|
4610
|
-
allLayers: [...
|
|
4611
|
-
tagLayers: [...
|
|
4609
|
+
allLayers: [...Qt.WEATHER_LAYERS],
|
|
4610
|
+
tagLayers: [...Qt.WEATHER_LAYERS.filter((o) => !o.hide)],
|
|
4612
4611
|
checkList: [],
|
|
4613
4612
|
iceToggleValue: void 0,
|
|
4614
4613
|
weatherLayers: {},
|
|
@@ -4626,7 +4625,7 @@ const lr = {
|
|
|
4626
4625
|
particleFactor: void 0,
|
|
4627
4626
|
showWindParticle: !0,
|
|
4628
4627
|
showCurrentParticle: !0,
|
|
4629
|
-
|
|
4628
|
+
legendToggle: !1,
|
|
4630
4629
|
legend: {
|
|
4631
4630
|
barbs: [2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 0],
|
|
4632
4631
|
current: [
|
|
@@ -4661,7 +4660,7 @@ const lr = {
|
|
|
4661
4660
|
return function(o) {
|
|
4662
4661
|
var e;
|
|
4663
4662
|
if (o) {
|
|
4664
|
-
const t =
|
|
4663
|
+
const t = O(o);
|
|
4665
4664
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
4666
4665
|
}
|
|
4667
4666
|
return "-";
|
|
@@ -4702,13 +4701,13 @@ const lr = {
|
|
|
4702
4701
|
},
|
|
4703
4702
|
map: {
|
|
4704
4703
|
handler() {
|
|
4705
|
-
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new
|
|
4704
|
+
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new oo(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange());
|
|
4706
4705
|
},
|
|
4707
4706
|
immediate: !0
|
|
4708
4707
|
},
|
|
4709
4708
|
realTime: {
|
|
4710
4709
|
handler(o, e) {
|
|
4711
|
-
o && e &&
|
|
4710
|
+
o && e && O(o).utc().format("yyyy-MM-DD HH") !== O(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
4712
4711
|
this.fetchWeatherLayers();
|
|
4713
4712
|
});
|
|
4714
4713
|
},
|
|
@@ -4788,31 +4787,31 @@ const lr = {
|
|
|
4788
4787
|
(o == null ? void 0 : o.data.code) === 0 && (this.models = o == null ? void 0 : o.data.data);
|
|
4789
4788
|
},
|
|
4790
4789
|
async fetchWeatherLayers(o = {}) {
|
|
4791
|
-
var a, r, s, c, n, p, d,
|
|
4790
|
+
var a, r, s, c, n, p, d, m, f;
|
|
4792
4791
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4793
4792
|
let t = 0, i = 0;
|
|
4794
4793
|
if (this.map) {
|
|
4795
|
-
const
|
|
4794
|
+
const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, b = (r = this.map) == null ? void 0 : r.getBounds(), S = `${b._sw.lng},${b._sw.lat},${b._ne.lng},${b._ne.lat}`;
|
|
4796
4795
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
4797
|
-
const C =
|
|
4798
|
-
var
|
|
4799
|
-
return ((
|
|
4796
|
+
const C = Qt.WEATHER_LAYERS.find((B) => {
|
|
4797
|
+
var M;
|
|
4798
|
+
return ((M = B.peer) == null ? void 0 : M.weight) === this.particleFactor.weight;
|
|
4800
4799
|
});
|
|
4801
4800
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & C.weight ? this.weatherWeight : this.weatherWeight + C.weight : this.weatherWeight = this.weatherWeight & C.weight ? this.weatherWeight - C.weight : this.weatherWeight;
|
|
4802
4801
|
}
|
|
4803
4802
|
if (this.weatherWeight > 0) {
|
|
4804
4803
|
let C = this.weatherWeight;
|
|
4805
4804
|
if (C > 0) {
|
|
4806
|
-
const
|
|
4807
|
-
`${
|
|
4805
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], M = await Be.get(
|
|
4806
|
+
`${B}/api/arc/weather/layers2/links?l=${C}&v=${this.forecastModel}&z=${_}&bbox=${S}&t=${this.realTime}`,
|
|
4808
4807
|
{
|
|
4809
4808
|
headers: {
|
|
4810
4809
|
Authorization: this.token || this.defaultMeteoToken
|
|
4811
4810
|
}
|
|
4812
4811
|
}
|
|
4813
4812
|
);
|
|
4814
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c =
|
|
4815
|
-
const L = (n =
|
|
4813
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c = M == null ? void 0 : M.data) == null ? void 0 : c.code) === 0) {
|
|
4814
|
+
const L = (n = M == null ? void 0 : M.data) == null ? void 0 : n.data, v = [];
|
|
4816
4815
|
for (const P in L)
|
|
4817
4816
|
v.push(
|
|
4818
4817
|
Be.get(L[P], {
|
|
@@ -4827,13 +4826,13 @@ const lr = {
|
|
|
4827
4826
|
);
|
|
4828
4827
|
const z = await Promise.all(v);
|
|
4829
4828
|
this.weatherLayers = {}, z.map((P) => {
|
|
4830
|
-
var
|
|
4831
|
-
const w = ((
|
|
4832
|
-
let
|
|
4833
|
-
|
|
4829
|
+
var W, X, V, Y;
|
|
4830
|
+
const w = ((W = P == null ? void 0 : P.data) == null ? void 0 : W.data) || (P == null ? void 0 : P.data);
|
|
4831
|
+
let R = (V = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
|
|
4832
|
+
R && w && (this.weatherLayers[R] = {
|
|
4834
4833
|
raw: w,
|
|
4835
|
-
type: ((
|
|
4836
|
-
etime:
|
|
4834
|
+
type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
4835
|
+
etime: M.data.etime
|
|
4837
4836
|
});
|
|
4838
4837
|
});
|
|
4839
4838
|
}
|
|
@@ -4843,16 +4842,16 @@ const lr = {
|
|
|
4843
4842
|
type: "json",
|
|
4844
4843
|
direction: L,
|
|
4845
4844
|
height: { raw: v },
|
|
4846
|
-
etime:
|
|
4845
|
+
etime: M.data.etime
|
|
4847
4846
|
};
|
|
4848
4847
|
}
|
|
4849
4848
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
4850
|
-
const L = (
|
|
4849
|
+
const L = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, v = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
4851
4850
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
4852
4851
|
type: "json",
|
|
4853
4852
|
direction: L,
|
|
4854
4853
|
speed: { raw: v },
|
|
4855
|
-
etime:
|
|
4854
|
+
etime: M.data.etime
|
|
4856
4855
|
};
|
|
4857
4856
|
}
|
|
4858
4857
|
}
|
|
@@ -4880,7 +4879,7 @@ const lr = {
|
|
|
4880
4879
|
}, 500);
|
|
4881
4880
|
},
|
|
4882
4881
|
handleRampColorInitial() {
|
|
4883
|
-
var o, e, t, i, a, r, s, c, n, p, d,
|
|
4882
|
+
var o, e, t, i, a, r, s, c, n, p, d, m;
|
|
4884
4883
|
this.viewport.map.getSource((o = this.viewport) == null ? void 0 : o.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
4885
4884
|
type: "canvas",
|
|
4886
4885
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -4905,7 +4904,7 @@ const lr = {
|
|
|
4905
4904
|
{
|
|
4906
4905
|
type: "raster",
|
|
4907
4906
|
id: (d = this.viewport) == null ? void 0 : d.particleLayer,
|
|
4908
|
-
source: (
|
|
4907
|
+
source: (m = this.viewport) == null ? void 0 : m.particleSource,
|
|
4909
4908
|
layout: {
|
|
4910
4909
|
visibility: "none"
|
|
4911
4910
|
}
|
|
@@ -4914,53 +4913,53 @@ const lr = {
|
|
|
4914
4913
|
);
|
|
4915
4914
|
},
|
|
4916
4915
|
handleDrawWeather4Json() {
|
|
4917
|
-
var p, d,
|
|
4916
|
+
var p, d, m, f, _, b, S;
|
|
4918
4917
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
4919
4918
|
let e = 0, t = 0;
|
|
4920
|
-
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r =
|
|
4919
|
+
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r = ie.convertToStdLng(i._sw.lng), s = ie.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
4921
4920
|
for (const C in this.weatherLayers) {
|
|
4922
|
-
let
|
|
4921
|
+
let B = !1;
|
|
4923
4922
|
if (this.weatherLayers[C].active && this.weatherLayers[C].type === "json") {
|
|
4924
|
-
let
|
|
4923
|
+
let M = [];
|
|
4925
4924
|
if (C === "swell") {
|
|
4926
|
-
|
|
4927
|
-
const L = ((
|
|
4925
|
+
B = !0;
|
|
4926
|
+
const L = ((m = this.weatherLayers[C]) == null ? void 0 : m.direction) || {};
|
|
4928
4927
|
for (const z in L)
|
|
4929
4928
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4930
4929
|
const P = L[z].lng;
|
|
4931
|
-
r > s ? P.forEach((w,
|
|
4932
|
-
var
|
|
4930
|
+
r > s ? P.forEach((w, R) => {
|
|
4931
|
+
var W, X, V, Y, $, ee;
|
|
4933
4932
|
if (a < 2) {
|
|
4934
4933
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
4935
|
-
const
|
|
4936
|
-
val: ((
|
|
4937
|
-
spd: (
|
|
4934
|
+
const Q = F.point([w, z], {
|
|
4935
|
+
val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
|
|
4936
|
+
spd: (V = L[z].spd) == null ? void 0 : V[R]
|
|
4938
4937
|
});
|
|
4939
|
-
|
|
4938
|
+
M.push(Q);
|
|
4940
4939
|
}
|
|
4941
4940
|
} else if ((w >= r && w <= 180 || w >= -180 && w <= s) && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4942
|
-
const
|
|
4943
|
-
val: ((
|
|
4944
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
4941
|
+
const Q = F.point([w, z], {
|
|
4942
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
|
|
4943
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[R]
|
|
4945
4944
|
});
|
|
4946
|
-
|
|
4945
|
+
M.push(Q);
|
|
4947
4946
|
}
|
|
4948
|
-
}) : P.forEach((w,
|
|
4949
|
-
var
|
|
4947
|
+
}) : P.forEach((w, R) => {
|
|
4948
|
+
var W, X, V, Y, $, ee;
|
|
4950
4949
|
if (r < 2) {
|
|
4951
4950
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
4952
|
-
const
|
|
4953
|
-
val: ((
|
|
4954
|
-
spd: (
|
|
4951
|
+
const Q = F.point([w, z], {
|
|
4952
|
+
val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
|
|
4953
|
+
spd: (V = L[z].spd) == null ? void 0 : V[R]
|
|
4955
4954
|
});
|
|
4956
|
-
|
|
4955
|
+
M.push(Q);
|
|
4957
4956
|
}
|
|
4958
4957
|
} else if (w >= r && w <= s && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4959
|
-
const
|
|
4960
|
-
val: ((
|
|
4961
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
4958
|
+
const Q = F.point([w, z], {
|
|
4959
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
|
|
4960
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[R]
|
|
4962
4961
|
});
|
|
4963
|
-
|
|
4962
|
+
M.push(Q);
|
|
4964
4963
|
}
|
|
4965
4964
|
});
|
|
4966
4965
|
}
|
|
@@ -4971,9 +4970,9 @@ const lr = {
|
|
|
4971
4970
|
const z = [];
|
|
4972
4971
|
for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
|
|
4973
4972
|
const w = v.raw.LineString[P];
|
|
4974
|
-
for (const
|
|
4973
|
+
for (const R of w)
|
|
4975
4974
|
z.push(
|
|
4976
|
-
F.lineString(
|
|
4975
|
+
F.lineString(R, {
|
|
4977
4976
|
val: Number(P)
|
|
4978
4977
|
})
|
|
4979
4978
|
);
|
|
@@ -4982,49 +4981,49 @@ const lr = {
|
|
|
4982
4981
|
}
|
|
4983
4982
|
if (v.data) {
|
|
4984
4983
|
const z = this.handleBboxClip(v.data, i);
|
|
4985
|
-
|
|
4984
|
+
M = M.concat(z);
|
|
4986
4985
|
}
|
|
4987
4986
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
4988
4987
|
}
|
|
4989
4988
|
} else if (C === "current") {
|
|
4990
|
-
|
|
4991
|
-
const L = ((
|
|
4989
|
+
B = !0;
|
|
4990
|
+
const L = ((_ = this.weatherLayers[C]) == null ? void 0 : _.direction) || {};
|
|
4992
4991
|
for (const z in L)
|
|
4993
4992
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4994
4993
|
const P = L[z].lng;
|
|
4995
|
-
r > s ? P.forEach((w,
|
|
4996
|
-
var
|
|
4994
|
+
r > s ? P.forEach((w, R) => {
|
|
4995
|
+
var W, X, V, Y, $, ee;
|
|
4997
4996
|
if (a < 2) {
|
|
4998
4997
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
4999
|
-
const
|
|
5000
|
-
val: ((
|
|
5001
|
-
spd: (
|
|
4998
|
+
const Q = F.point([w, z], {
|
|
4999
|
+
val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
|
|
5000
|
+
spd: (V = L[z].spd) == null ? void 0 : V[R]
|
|
5002
5001
|
});
|
|
5003
|
-
|
|
5002
|
+
M.push(Q);
|
|
5004
5003
|
}
|
|
5005
5004
|
} else if ((w >= r && w <= 180 || w >= -180 && w <= s) && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5006
|
-
const
|
|
5007
|
-
val: ((
|
|
5008
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5005
|
+
const Q = F.point([w, z], {
|
|
5006
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
|
|
5007
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[R]
|
|
5009
5008
|
});
|
|
5010
|
-
|
|
5009
|
+
M.push(Q);
|
|
5011
5010
|
}
|
|
5012
|
-
}) : P.forEach((w,
|
|
5013
|
-
var
|
|
5011
|
+
}) : P.forEach((w, R) => {
|
|
5012
|
+
var W, X, V, Y, $, ee;
|
|
5014
5013
|
if (r < 2) {
|
|
5015
5014
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
5016
|
-
const
|
|
5017
|
-
val: ((
|
|
5018
|
-
spd: (
|
|
5015
|
+
const Q = F.point([w, z], {
|
|
5016
|
+
val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
|
|
5017
|
+
spd: (V = L[z].spd) == null ? void 0 : V[R]
|
|
5019
5018
|
});
|
|
5020
|
-
|
|
5019
|
+
M.push(Q);
|
|
5021
5020
|
}
|
|
5022
5021
|
} else if (w >= r && w <= s && (!(a <= this.zoom) || w % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5023
|
-
const
|
|
5024
|
-
val: ((
|
|
5025
|
-
spd: (ee = L[z].spd) == null ? void 0 : ee[
|
|
5022
|
+
const Q = F.point([w, z], {
|
|
5023
|
+
val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
|
|
5024
|
+
spd: (ee = L[z].spd) == null ? void 0 : ee[R]
|
|
5026
5025
|
});
|
|
5027
|
-
|
|
5026
|
+
M.push(Q);
|
|
5028
5027
|
}
|
|
5029
5028
|
});
|
|
5030
5029
|
}
|
|
@@ -5034,10 +5033,10 @@ const lr = {
|
|
|
5034
5033
|
if (!v.data) {
|
|
5035
5034
|
const P = [];
|
|
5036
5035
|
for (const w in (b = v.raw) == null ? void 0 : b.Polygon) {
|
|
5037
|
-
const
|
|
5038
|
-
for (const
|
|
5036
|
+
const R = v.raw.Polygon[w];
|
|
5037
|
+
for (const W of R)
|
|
5039
5038
|
P.push(
|
|
5040
|
-
F.polygon(
|
|
5039
|
+
F.polygon(W, {
|
|
5041
5040
|
val: Number(w)
|
|
5042
5041
|
})
|
|
5043
5042
|
);
|
|
@@ -5045,56 +5044,56 @@ const lr = {
|
|
|
5045
5044
|
v.data = F.featureCollection(P);
|
|
5046
5045
|
}
|
|
5047
5046
|
const z = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
|
|
5048
|
-
|
|
5047
|
+
M = M.concat(z), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
5049
5048
|
}
|
|
5050
5049
|
} else if (C === "wind") {
|
|
5051
|
-
|
|
5050
|
+
B = !0;
|
|
5052
5051
|
const L = this.weatherLayers.wind.raw;
|
|
5053
5052
|
for (const v in L)
|
|
5054
5053
|
if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5055
5054
|
const z = L[v].lng;
|
|
5056
5055
|
r > s ? z.forEach((P, w) => {
|
|
5057
|
-
var
|
|
5056
|
+
var R, W, X, V;
|
|
5058
5057
|
if (a < 2) {
|
|
5059
5058
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5060
|
-
const
|
|
5061
|
-
dir: ((
|
|
5059
|
+
const Y = F.point([P, v], {
|
|
5060
|
+
dir: ((R = L[v].val) == null ? void 0 : R[w]) || ((W = L[v].dir) == null ? void 0 : W[w]),
|
|
5062
5061
|
spd: L[v].spd[w]
|
|
5063
5062
|
});
|
|
5064
|
-
|
|
5063
|
+
M.push(Y);
|
|
5065
5064
|
}
|
|
5066
5065
|
} else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5067
|
-
const
|
|
5068
|
-
dir: ((
|
|
5066
|
+
const Y = F.point([P, v], {
|
|
5067
|
+
dir: ((X = L[v].val) == null ? void 0 : X[w]) || ((V = L[v].dir) == null ? void 0 : V[w]),
|
|
5069
5068
|
spd: L[v].spd[w]
|
|
5070
5069
|
});
|
|
5071
|
-
|
|
5070
|
+
M.push(Y);
|
|
5072
5071
|
}
|
|
5073
5072
|
}) : z.forEach((P, w) => {
|
|
5074
|
-
var
|
|
5073
|
+
var R, W, X, V;
|
|
5075
5074
|
if (a < 2) {
|
|
5076
5075
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
5077
|
-
const
|
|
5078
|
-
dir: ((
|
|
5076
|
+
const Y = F.point([P, v], {
|
|
5077
|
+
dir: ((R = L[v].val) == null ? void 0 : R[w]) || ((W = L[v].dir) == null ? void 0 : W[w]),
|
|
5079
5078
|
spd: L[v].spd[w]
|
|
5080
5079
|
});
|
|
5081
|
-
|
|
5080
|
+
M.push(Y);
|
|
5082
5081
|
}
|
|
5083
5082
|
} else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5084
|
-
const
|
|
5085
|
-
dir: ((
|
|
5083
|
+
const Y = F.point([P, v], {
|
|
5084
|
+
dir: ((X = L[v].val) == null ? void 0 : X[w]) || ((V = L[v].dir) == null ? void 0 : V[w]),
|
|
5086
5085
|
spd: L[v].spd[w]
|
|
5087
5086
|
});
|
|
5088
|
-
|
|
5087
|
+
M.push(Y);
|
|
5089
5088
|
}
|
|
5090
5089
|
});
|
|
5091
5090
|
}
|
|
5092
5091
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
5093
5092
|
} else if (C === "sig-wave-height") {
|
|
5094
5093
|
if (this.weatherLayers[C].data)
|
|
5095
|
-
|
|
5094
|
+
M = this.weatherLayers[C].data;
|
|
5096
5095
|
else {
|
|
5097
|
-
|
|
5096
|
+
B = !0;
|
|
5098
5097
|
const L = this.weatherLayers[C].raw;
|
|
5099
5098
|
if (L) {
|
|
5100
5099
|
const v = [];
|
|
@@ -5116,15 +5115,15 @@ const lr = {
|
|
|
5116
5115
|
})
|
|
5117
5116
|
);
|
|
5118
5117
|
}
|
|
5119
|
-
|
|
5118
|
+
M = M.concat(v);
|
|
5120
5119
|
}
|
|
5121
5120
|
}
|
|
5122
5121
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("sig-wave-height elapsed: ", t, ", total: ", e += t);
|
|
5123
5122
|
} else if (C === "prmsl") {
|
|
5124
5123
|
if (this.weatherLayers[C].data)
|
|
5125
|
-
|
|
5124
|
+
M = this.weatherLayers[C].data;
|
|
5126
5125
|
else {
|
|
5127
|
-
|
|
5126
|
+
B = !0;
|
|
5128
5127
|
const L = this.weatherLayers[C].raw;
|
|
5129
5128
|
if (L) {
|
|
5130
5129
|
const v = [];
|
|
@@ -5139,19 +5138,19 @@ const lr = {
|
|
|
5139
5138
|
}
|
|
5140
5139
|
for (const z in L.Point)
|
|
5141
5140
|
L.Point[z].lng.forEach((P, w) => {
|
|
5142
|
-
P =
|
|
5141
|
+
P = ie.convertToStdLng(P), v.push(
|
|
5143
5142
|
F.point([P, z], {
|
|
5144
5143
|
val: L.Point[z].val[w],
|
|
5145
5144
|
type: L.Point[z].type[w]
|
|
5146
5145
|
})
|
|
5147
5146
|
);
|
|
5148
5147
|
});
|
|
5149
|
-
|
|
5148
|
+
M = M.concat(v);
|
|
5150
5149
|
}
|
|
5151
5150
|
}
|
|
5152
5151
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
5153
5152
|
}
|
|
5154
|
-
|
|
5153
|
+
M.length && (this.weatherLayers[C].data = F.featureCollection(M)), B && (this.weatherLayers[C].version = Math.random() + 1);
|
|
5155
5154
|
}
|
|
5156
5155
|
}
|
|
5157
5156
|
},
|
|
@@ -5161,7 +5160,7 @@ const lr = {
|
|
|
5161
5160
|
this.handleDrawWeather4Json();
|
|
5162
5161
|
},
|
|
5163
5162
|
handleBboxClip(o, e) {
|
|
5164
|
-
const t = [], i =
|
|
5163
|
+
const t = [], i = ie.convertToStdLng(e._sw.lng), a = ie.convertToStdLng(e._ne.lng);
|
|
5165
5164
|
return o.features.forEach((r) => {
|
|
5166
5165
|
if (r.geometry.type !== "Point")
|
|
5167
5166
|
if (i > a) {
|
|
@@ -5193,24 +5192,23 @@ const lr = {
|
|
|
5193
5192
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5194
5193
|
}, zr = { class: "text-body-1 py-2" }, Lr = { class: "text-body-1 font-weight-medium" }, Pr = { class: "text-body-2 opacity-70" }, Cr = { class: "text-body-2 opacity-70 mb-3" }, Sr = { class: "text-body-1 font-weight-medium" }, Mr = { class: "text-body-2 opacity-70" }, Tr = { class: "text-body-2 opacity-70 mb-3" }, Rr = { class: "text-body-1 py-2" }, Ir = { class: "text-body-1 font-weight-medium" }, Ar = { class: "text-body-2 opacity-70" }, Dr = { class: "text-body-2 opacity-70 mb-3" }, Or = { class: "text-body-1 font-weight-medium" }, Br = { class: "text-body-2 opacity-70" }, Er = { class: "text-body-2 opacity-70 mb-3" }, jr = { class: "text-body-1 py-2" }, Fr = { class: "text-body-1 font-weight-medium" }, Nr = { class: "text-body-2 opacity-70" }, Hr = { class: "text-body-2 opacity-70 mb-3" };
|
|
5195
5194
|
function Wr(o, e, t, i, a, r) {
|
|
5196
|
-
var
|
|
5197
|
-
const s =
|
|
5198
|
-
return y(),
|
|
5195
|
+
var ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie;
|
|
5196
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"), _ = k("VSwitch"), b = k("VCardTitle"), S = k("VCardItem"), C = k("VCheckbox"), B = k("VBtnToggle"), M = k("IdmWindBarb"), L = k("IdmSigWaveHeight"), v = k("IdmCurrentDirection"), z = k("IdmPrmsl"), P = k("IdmWindParticle"), w = k("IdmCurrentParticle"), R = k("IdmWave"), W = k("IdmSwell"), X = k("IdmIceEdge"), V = k("IdmIceCover"), Y = k("IdmIceThickness"), $ = k("IdmPrecip3h"), ee = k("IdmVisibility"), Q = k("IdmWaterTemp"), ne = k("IdmTemp");
|
|
5197
|
+
return y(), T("div", sr, [
|
|
5199
5198
|
l("div", {
|
|
5200
5199
|
class: "menu-bar-box transition pa-1",
|
|
5201
|
-
style:
|
|
5200
|
+
style: oe({ top: t.top + 94 + "px", right: a.right + "px" })
|
|
5202
5201
|
}, [
|
|
5203
|
-
|
|
5202
|
+
h(c, {
|
|
5204
5203
|
text: o.$t("weather.weatherLayers"),
|
|
5205
5204
|
location: "left"
|
|
5206
5205
|
}, {
|
|
5207
|
-
activator: g(({ props:
|
|
5208
|
-
|
|
5206
|
+
activator: g(({ props: j }) => [
|
|
5207
|
+
h(s, E(j, {
|
|
5209
5208
|
"min-width": "32",
|
|
5210
5209
|
width: "32",
|
|
5211
5210
|
height: "32",
|
|
5212
|
-
class: "text-none pa-0",
|
|
5213
|
-
color: a.toggle ? "primary" : "",
|
|
5211
|
+
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
5214
5212
|
onClick: r.handleMenuToggle
|
|
5215
5213
|
}), {
|
|
5216
5214
|
default: g(() => e[7] || (e[7] = [
|
|
@@ -5218,64 +5216,63 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5218
5216
|
])),
|
|
5219
5217
|
_: 2,
|
|
5220
5218
|
__: [7]
|
|
5221
|
-
}, 1040, ["
|
|
5219
|
+
}, 1040, ["class", "onClick"])
|
|
5222
5220
|
]),
|
|
5223
5221
|
_: 1
|
|
5224
5222
|
}, 8, ["text"])
|
|
5225
5223
|
], 4),
|
|
5226
|
-
r.showTipMenu ? (y(),
|
|
5224
|
+
r.showTipMenu ? (y(), T("div", nr, [
|
|
5227
5225
|
l("div", {
|
|
5228
5226
|
class: "menu-bar-box pa-1 rounded",
|
|
5229
|
-
style:
|
|
5227
|
+
style: oe({ right: a.right + "px" })
|
|
5230
5228
|
}, [
|
|
5231
|
-
|
|
5229
|
+
h(c, {
|
|
5232
5230
|
text: "Legend",
|
|
5233
5231
|
location: "left"
|
|
5234
5232
|
}, {
|
|
5235
|
-
activator: g(({ props:
|
|
5236
|
-
|
|
5233
|
+
activator: g(({ props: j }) => [
|
|
5234
|
+
h(s, E(j, {
|
|
5237
5235
|
"min-width": "32",
|
|
5238
5236
|
width: "32",
|
|
5239
5237
|
height: "32",
|
|
5240
|
-
class: "text-none pa-0",
|
|
5241
|
-
|
|
5242
|
-
onClick: e[0] || (e[0] = (J) => a.tipToggle = !a.tipToggle)
|
|
5238
|
+
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
5239
|
+
onClick: e[0] || (e[0] = (te) => a.legendToggle = !a.legendToggle)
|
|
5243
5240
|
}), {
|
|
5244
5241
|
default: g(() => e[8] || (e[8] = [
|
|
5245
5242
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
5246
5243
|
])),
|
|
5247
5244
|
_: 2,
|
|
5248
5245
|
__: [8]
|
|
5249
|
-
}, 1040, ["
|
|
5246
|
+
}, 1040, ["class"])
|
|
5250
5247
|
]),
|
|
5251
5248
|
_: 1
|
|
5252
5249
|
})
|
|
5253
5250
|
], 4),
|
|
5254
|
-
a.
|
|
5251
|
+
a.legendToggle ? (y(), U(f, {
|
|
5255
5252
|
key: 0,
|
|
5256
5253
|
width: "435",
|
|
5257
5254
|
elevation: "16",
|
|
5258
5255
|
class: "card-info d-flex justify-center align-start",
|
|
5259
|
-
style:
|
|
5256
|
+
style: oe({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5260
5257
|
}, {
|
|
5261
5258
|
default: g(() => [
|
|
5262
|
-
|
|
5259
|
+
h(d, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5263
5260
|
default: g(() => [
|
|
5264
5261
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5265
|
-
|
|
5262
|
+
h(p, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5266
5263
|
default: g(() => [
|
|
5267
|
-
(y(!0),
|
|
5264
|
+
(y(!0), T(ve, null, ze(a.legend.barbs, (j, te) => (y(), U(n, {
|
|
5265
|
+
key: j,
|
|
5268
5266
|
cols: "6",
|
|
5269
|
-
key: M,
|
|
5270
5267
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5271
5268
|
}, {
|
|
5272
5269
|
default: g(() => [
|
|
5273
5270
|
l("div", cr, [
|
|
5274
5271
|
l("i", {
|
|
5275
|
-
class: Ne(["iconfont", r.barbsIconName[
|
|
5276
|
-
style:
|
|
5272
|
+
class: Ne(["iconfont", r.barbsIconName[te]]),
|
|
5273
|
+
style: oe({ color: t.theme === "dark" ? "#fff" : "#000" })
|
|
5277
5274
|
}, null, 6),
|
|
5278
|
-
l("span", mr, x(Number(
|
|
5275
|
+
l("span", mr, x(Number(j) < 10 ? `00${j}kts` : Number(j) < 100 ? `0${j}kts` : `${j}kts`), 1)
|
|
5279
5276
|
])
|
|
5280
5277
|
]),
|
|
5281
5278
|
_: 2
|
|
@@ -5287,27 +5284,27 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5287
5284
|
_: 1,
|
|
5288
5285
|
__: [9]
|
|
5289
5286
|
}),
|
|
5290
|
-
m
|
|
5291
|
-
|
|
5287
|
+
h(m, { vertical: "" }),
|
|
5288
|
+
h(d, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5292
5289
|
default: g(() => [
|
|
5293
5290
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
5294
|
-
|
|
5291
|
+
h(p, {
|
|
5295
5292
|
class: "ma-0 ml-1",
|
|
5296
5293
|
style: { width: "100px" }
|
|
5297
5294
|
}, {
|
|
5298
5295
|
default: g(() => [
|
|
5299
|
-
(y(!0),
|
|
5300
|
-
key:
|
|
5296
|
+
(y(!0), T(ve, null, ze(a.legend.sigWaveHeight, (j, te) => (y(), U(n, {
|
|
5297
|
+
key: te,
|
|
5301
5298
|
cols: "12",
|
|
5302
5299
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5303
5300
|
}, {
|
|
5304
5301
|
default: g(() => [
|
|
5305
5302
|
l("div", hr, [
|
|
5306
|
-
|
|
5303
|
+
te === 0 ? (y(), T("div", dr)) : (y(), T("div", {
|
|
5307
5304
|
key: 1,
|
|
5308
|
-
style:
|
|
5305
|
+
style: oe({ width: "24px", height: "12px", background: j.color })
|
|
5309
5306
|
}, null, 4)),
|
|
5310
|
-
l("div", pr, x(
|
|
5307
|
+
l("div", pr, x(j.label), 1)
|
|
5311
5308
|
])
|
|
5312
5309
|
]),
|
|
5313
5310
|
_: 2
|
|
@@ -5319,18 +5316,18 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5319
5316
|
_: 1,
|
|
5320
5317
|
__: [10]
|
|
5321
5318
|
}),
|
|
5322
|
-
m
|
|
5323
|
-
|
|
5319
|
+
h(m, { vertical: "" }),
|
|
5320
|
+
h(d, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5324
5321
|
default: g(() => [
|
|
5325
5322
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
5326
|
-
|
|
5323
|
+
h(p, {
|
|
5327
5324
|
class: "ma-0 ml-n5",
|
|
5328
5325
|
style: { width: "110px" }
|
|
5329
5326
|
}, {
|
|
5330
5327
|
default: g(() => [
|
|
5331
|
-
(y(!0),
|
|
5328
|
+
(y(!0), T(ve, null, ze(a.legend.current, (j, te) => (y(), U(n, {
|
|
5329
|
+
key: te,
|
|
5332
5330
|
cols: "12",
|
|
5333
|
-
key: J,
|
|
5334
5331
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
5335
5332
|
}, {
|
|
5336
5333
|
default: g(() => [
|
|
@@ -5338,10 +5335,10 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5338
5335
|
l("div", gr, [
|
|
5339
5336
|
l("i", {
|
|
5340
5337
|
class: "iconfont icon-direction-arrow opacity-80",
|
|
5341
|
-
style:
|
|
5338
|
+
style: oe({ fontSize: 48 * j.size + "px" })
|
|
5342
5339
|
}, null, 4)
|
|
5343
5340
|
]),
|
|
5344
|
-
l("div", fr, x(
|
|
5341
|
+
l("div", fr, x(j.label), 1)
|
|
5345
5342
|
])
|
|
5346
5343
|
]),
|
|
5347
5344
|
_: 2
|
|
@@ -5359,21 +5356,21 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5359
5356
|
])) : N("", !0),
|
|
5360
5357
|
l("div", {
|
|
5361
5358
|
class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
5362
|
-
style:
|
|
5359
|
+
style: oe({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
5363
5360
|
}, [
|
|
5364
5361
|
l("div", br, [
|
|
5365
5362
|
l("div", yr, [
|
|
5366
5363
|
l("div", wr, x(o.$t("weather.weather")), 1),
|
|
5367
|
-
|
|
5364
|
+
h(_, {
|
|
5368
5365
|
modelValue: a.autoActive,
|
|
5369
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
5366
|
+
"onUpdate:modelValue": e[1] || (e[1] = (j) => a.autoActive = j),
|
|
5370
5367
|
class: "small-switch",
|
|
5371
5368
|
color: "primary",
|
|
5372
5369
|
inset: "",
|
|
5373
5370
|
"hide-details": ""
|
|
5374
5371
|
}, null, 8, ["modelValue"])
|
|
5375
5372
|
]),
|
|
5376
|
-
|
|
5373
|
+
h(s, {
|
|
5377
5374
|
icon: "",
|
|
5378
5375
|
density: "comfortable",
|
|
5379
5376
|
variant: "plain",
|
|
@@ -5393,34 +5390,34 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5393
5390
|
l("div", {
|
|
5394
5391
|
class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
5395
5392
|
}, [
|
|
5396
|
-
|
|
5393
|
+
h(f, {
|
|
5397
5394
|
class: "menu-card mx-auto mb-3",
|
|
5398
5395
|
elevation: "0"
|
|
5399
5396
|
}, {
|
|
5400
5397
|
default: g(() => [
|
|
5401
|
-
|
|
5398
|
+
h(S, { class: "border-b-thin" }, {
|
|
5402
5399
|
default: g(() => [
|
|
5403
|
-
|
|
5400
|
+
h(b, {
|
|
5404
5401
|
class: "text-subtitle-1 font-weight-medium",
|
|
5405
5402
|
style: { "font-size": "16px !important" }
|
|
5406
5403
|
}, {
|
|
5407
5404
|
default: g(() => [
|
|
5408
|
-
|
|
5405
|
+
Z(x(o.$t("weather.overlays")), 1)
|
|
5409
5406
|
]),
|
|
5410
5407
|
_: 1
|
|
5411
5408
|
})
|
|
5412
5409
|
]),
|
|
5413
5410
|
_: 1
|
|
5414
5411
|
}),
|
|
5415
|
-
|
|
5412
|
+
h(d, null, {
|
|
5416
5413
|
default: g(() => [
|
|
5417
5414
|
l("div", xr, [
|
|
5418
|
-
(y(!0),
|
|
5419
|
-
key:
|
|
5415
|
+
(y(!0), T(ve, null, ze(a.tagLayers.filter((j) => j.overlays), (j) => (y(), U(C, {
|
|
5416
|
+
key: j.key,
|
|
5420
5417
|
modelValue: a.checkList,
|
|
5421
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
5422
|
-
value:
|
|
5423
|
-
label: o.$t(`weather.${
|
|
5418
|
+
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
5419
|
+
value: j.key,
|
|
5420
|
+
label: o.$t(`weather.${j.locale}`),
|
|
5424
5421
|
disabled: !a.autoActive,
|
|
5425
5422
|
color: "primary",
|
|
5426
5423
|
density: "compact",
|
|
@@ -5435,36 +5432,36 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5435
5432
|
]),
|
|
5436
5433
|
_: 1
|
|
5437
5434
|
}),
|
|
5438
|
-
|
|
5435
|
+
h(f, {
|
|
5439
5436
|
class: "menu-card mx-auto mb-3",
|
|
5440
5437
|
elevation: "0"
|
|
5441
5438
|
}, {
|
|
5442
5439
|
default: g(() => [
|
|
5443
|
-
|
|
5440
|
+
h(S, { class: "border-b-thin" }, {
|
|
5444
5441
|
default: g(() => [
|
|
5445
|
-
|
|
5442
|
+
h(b, {
|
|
5446
5443
|
class: "text-subtitle-1 font-weight-medium",
|
|
5447
5444
|
style: { "font-size": "16px !important" }
|
|
5448
5445
|
}, {
|
|
5449
5446
|
default: g(() => [
|
|
5450
|
-
|
|
5447
|
+
Z(x(o.$t("weather.renders")), 1)
|
|
5451
5448
|
]),
|
|
5452
5449
|
_: 1
|
|
5453
5450
|
})
|
|
5454
5451
|
]),
|
|
5455
5452
|
_: 1
|
|
5456
5453
|
}),
|
|
5457
|
-
|
|
5454
|
+
h(d, null, {
|
|
5458
5455
|
default: g(() => [
|
|
5459
5456
|
l("div", vr, [
|
|
5460
|
-
(y(!0),
|
|
5461
|
-
key:
|
|
5457
|
+
(y(!0), T(ve, null, ze(a.tagLayers.filter((j) => !j.overlays && j.key !== "ice-thickness"), (j) => (y(), T(ve, {
|
|
5458
|
+
key: j.key
|
|
5462
5459
|
}, [
|
|
5463
|
-
|
|
5460
|
+
h(C, {
|
|
5464
5461
|
modelValue: a.checkList,
|
|
5465
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
5466
|
-
value:
|
|
5467
|
-
label: o.$t(`weather.${
|
|
5462
|
+
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.checkList = te),
|
|
5463
|
+
value: j.key,
|
|
5464
|
+
label: o.$t(`weather.${j.locale}`),
|
|
5468
5465
|
disabled: !a.autoActive,
|
|
5469
5466
|
color: "primary",
|
|
5470
5467
|
density: "compact",
|
|
@@ -5472,11 +5469,11 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5472
5469
|
class: "flex-1-0-100 text-body-2",
|
|
5473
5470
|
"hide-details": ""
|
|
5474
5471
|
}, null, 8, ["modelValue", "value", "label", "disabled"]),
|
|
5475
|
-
a.checkList.includes("wind-particle") &&
|
|
5472
|
+
a.checkList.includes("wind-particle") && j.key === "wind-particle" ? (y(), T("div", _r, [
|
|
5476
5473
|
e[13] || (e[13] = l("span", null, "Particle", -1)),
|
|
5477
|
-
|
|
5474
|
+
h(_, {
|
|
5478
5475
|
modelValue: a.showWindParticle,
|
|
5479
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
5476
|
+
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
5480
5477
|
label: "",
|
|
5481
5478
|
class: "small-switch",
|
|
5482
5479
|
color: "primary",
|
|
@@ -5485,11 +5482,11 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5485
5482
|
"hide-details": ""
|
|
5486
5483
|
}, null, 8, ["modelValue"])
|
|
5487
5484
|
])) : N("", !0),
|
|
5488
|
-
a.checkList.includes("current-particle") &&
|
|
5485
|
+
a.checkList.includes("current-particle") && j.key === "current-particle" ? (y(), T("div", kr, [
|
|
5489
5486
|
e[14] || (e[14] = l("span", null, "Particle", -1)),
|
|
5490
|
-
|
|
5487
|
+
h(_, {
|
|
5491
5488
|
modelValue: a.showCurrentParticle,
|
|
5492
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
5489
|
+
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
5493
5490
|
label: "",
|
|
5494
5491
|
class: "small-switch",
|
|
5495
5492
|
color: "primary",
|
|
@@ -5498,10 +5495,10 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5498
5495
|
"hide-details": ""
|
|
5499
5496
|
}, null, 8, ["modelValue"])
|
|
5500
5497
|
])) : N("", !0),
|
|
5501
|
-
a.checkList.includes("ice-forecast") &&
|
|
5498
|
+
a.checkList.includes("ice-forecast") && j.key === "ice-forecast" ? (y(), U(B, {
|
|
5502
5499
|
key: 2,
|
|
5503
5500
|
modelValue: a.iceToggleValue,
|
|
5504
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
5501
|
+
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.iceToggleValue = te),
|
|
5505
5502
|
class: "ml-7",
|
|
5506
5503
|
rounded: "0",
|
|
5507
5504
|
height: "30",
|
|
@@ -5510,7 +5507,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5510
5507
|
disabled: !a.autoActive
|
|
5511
5508
|
}, {
|
|
5512
5509
|
default: g(() => [
|
|
5513
|
-
|
|
5510
|
+
h(s, {
|
|
5514
5511
|
density: "compact",
|
|
5515
5512
|
height: "30",
|
|
5516
5513
|
value: "ice-cover",
|
|
@@ -5520,11 +5517,11 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5520
5517
|
disabled: !a.autoActive
|
|
5521
5518
|
}, {
|
|
5522
5519
|
default: g(() => [
|
|
5523
|
-
|
|
5520
|
+
Z(x(o.$t("weather.coverage")), 1)
|
|
5524
5521
|
]),
|
|
5525
5522
|
_: 1
|
|
5526
5523
|
}, 8, ["color", "disabled"]),
|
|
5527
|
-
|
|
5524
|
+
h(s, {
|
|
5528
5525
|
density: "compact",
|
|
5529
5526
|
height: "30",
|
|
5530
5527
|
class: "text-none px-2",
|
|
@@ -5534,7 +5531,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5534
5531
|
value: "ice-thickness"
|
|
5535
5532
|
}, {
|
|
5536
5533
|
default: g(() => [
|
|
5537
|
-
|
|
5534
|
+
Z(x(o.$t("weather.thickness")), 1)
|
|
5538
5535
|
]),
|
|
5539
5536
|
_: 1
|
|
5540
5537
|
}, 8, ["color", "disabled"])
|
|
@@ -5549,49 +5546,49 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5549
5546
|
]),
|
|
5550
5547
|
_: 1
|
|
5551
5548
|
}),
|
|
5552
|
-
|
|
5549
|
+
h(f, {
|
|
5553
5550
|
class: "menu-card mx-auto mb-3",
|
|
5554
5551
|
elevation: "0"
|
|
5555
5552
|
}, {
|
|
5556
5553
|
default: g(() => [
|
|
5557
|
-
|
|
5554
|
+
h(S, { class: "border-b-thin" }, {
|
|
5558
5555
|
default: g(() => [
|
|
5559
|
-
|
|
5556
|
+
h(b, {
|
|
5560
5557
|
class: "text-subtitle-1 font-weight-medium",
|
|
5561
5558
|
style: { "font-size": "16px !important" }
|
|
5562
5559
|
}, {
|
|
5563
5560
|
default: g(() => [
|
|
5564
|
-
|
|
5561
|
+
Z(x(o.$t("weather.forecastModel")), 1)
|
|
5565
5562
|
]),
|
|
5566
5563
|
_: 1
|
|
5567
5564
|
})
|
|
5568
5565
|
]),
|
|
5569
5566
|
_: 1
|
|
5570
5567
|
}),
|
|
5571
|
-
|
|
5568
|
+
h(d, { class: "" }, {
|
|
5572
5569
|
default: g(() => {
|
|
5573
|
-
var
|
|
5570
|
+
var j, te, Le, Ee, Pe, he, pe, H, xe, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ke, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt;
|
|
5574
5571
|
return [
|
|
5575
5572
|
l("div", zr, x(o.$t("weather.atmospheric")), 1),
|
|
5576
|
-
l("div", Lr, x((
|
|
5577
|
-
l("div", Pr, x(o.$t("weather.source")) + ": NOAA
|
|
5578
|
-
l("div", Cr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((
|
|
5579
|
-
l("div", Sr, x((
|
|
5580
|
-
l("div", Mr, x(o.$t("weather.source")) + ": ECMWF
|
|
5581
|
-
l("div", Tr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((
|
|
5582
|
-
m
|
|
5573
|
+
l("div", Lr, x((Le = (te = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Le.source) + " " + x((he = (Pe = (Ee = a.models) == null ? void 0 : Ee.weather) == null ? void 0 : Pe.NOAA) == null ? void 0 : he.spatialResolution) + x(o.$t("units.km")) + " " + x((J = (xe = (H = (pe = a.models) == null ? void 0 : pe.weather) == null ? void 0 : H.NOAA) == null ? void 0 : xe.meta) == null ? void 0 : J.days) + x(o.$t("units.days")), 1),
|
|
5574
|
+
l("div", Pr, x(o.$t("weather.source")) + ": NOAA", 1),
|
|
5575
|
+
l("div", Cr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((ue = (D = (Ae = (ae = a.models) == null ? void 0 : ae.weather) == null ? void 0 : Ae.NOAA) == null ? void 0 : D.meta) == null ? void 0 : ue.initialisationTime)), 1),
|
|
5576
|
+
l("div", Sr, x((Oe = (De = (Ce = a.models) == null ? void 0 : Ce.weather) == null ? void 0 : De.ECMWF) == null ? void 0 : Oe.source) + " " + x((He = (G = (A = a.models) == null ? void 0 : A.weather) == null ? void 0 : G.ECMWF) == null ? void 0 : He.spatialResolution) + x(o.$t("units.km")) + " " + x((Ue = (ke = (Ge = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : ke.meta) == null ? void 0 : Ue.days) + x(o.$t("units.days")), 1),
|
|
5577
|
+
l("div", Mr, x(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5578
|
+
l("div", Tr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Xe = (Ze = (Ye = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ye.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.initialisationTime)), 1),
|
|
5579
|
+
h(m),
|
|
5583
5580
|
l("div", Rr, x(o.$t("weather.wave")), 1),
|
|
5584
|
-
l("div", Ir, x((
|
|
5585
|
-
l("div", Ar, x(o.$t("weather.source")) + ": NOAA
|
|
5586
|
-
l("div", Dr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((
|
|
5587
|
-
l("div", Or, x((
|
|
5588
|
-
l("div", Br, x(o.$t("weather.source")) + ": ECMWF
|
|
5589
|
-
l("div", Er, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((
|
|
5590
|
-
m
|
|
5581
|
+
l("div", Ir, x((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.marine) == null ? void 0 : Ke.wave) == null ? void 0 : Qe.NOAA) == null ? void 0 : Je.source) + " " + x((ot = (tt = (et = ($e = a.models) == null ? void 0 : $e.marine) == null ? void 0 : et.wave) == null ? void 0 : tt.NOAA) == null ? void 0 : ot.spatialResolution) + x(o.$t("units.km")) + " " + x((st = (lt = (rt = (it = (at = a.models) == null ? void 0 : at.marine) == null ? void 0 : it.wave) == null ? void 0 : rt.NOAA) == null ? void 0 : lt.meta) == null ? void 0 : st.days) + x(o.$t("units.days")), 1),
|
|
5582
|
+
l("div", Ar, x(o.$t("weather.source")) + ": NOAA", 1),
|
|
5583
|
+
l("div", Dr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((dt = (ht = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : ht.meta) == null ? void 0 : dt.initialisationTime)), 1),
|
|
5584
|
+
l("div", Or, x((ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.ECMWF) == null ? void 0 : ft.source) + " " + x((xt = (wt = (yt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : yt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.spatialResolution) + x(o.$t("units.km")) + " " + x((Lt = (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.meta) == null ? void 0 : Lt.days) + x(o.$t("units.days")), 1),
|
|
5585
|
+
l("div", Br, x(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5586
|
+
l("div", Er, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Tt = (Mt = (St = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : St.ECMWF) == null ? void 0 : Mt.meta) == null ? void 0 : Tt.initialisationTime)), 1),
|
|
5587
|
+
h(m),
|
|
5591
5588
|
l("div", jr, x(o.$t("weather.currents")), 1),
|
|
5592
|
-
l("div", Fr, x((
|
|
5593
|
-
l("div", Nr, x(o.$t("weather.source")) + ": ECMWF
|
|
5594
|
-
l("div", Hr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((
|
|
5589
|
+
l("div", Fr, x((Dt = (At = (It = (Rt = a.models) == null ? void 0 : Rt.marine) == null ? void 0 : It.current) == null ? void 0 : At.ECMWF) == null ? void 0 : Dt.source) + " " + x((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.spatialResolution) + x(o.$t("units.km")) + " " + x((Gt = (Wt = (Ht = (Nt = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Nt.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.meta) == null ? void 0 : Gt.days) + x(o.$t("units.days")), 1),
|
|
5590
|
+
l("div", Nr, x(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5591
|
+
l("div", Hr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Xt = (Zt = (Yt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.current) == null ? void 0 : Yt.ECMWF) == null ? void 0 : Zt.meta) == null ? void 0 : Xt.initialisationTime)), 1)
|
|
5595
5592
|
];
|
|
5596
5593
|
}),
|
|
5597
5594
|
_: 1
|
|
@@ -5601,109 +5598,109 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5601
5598
|
})
|
|
5602
5599
|
], 2)
|
|
5603
5600
|
], 6),
|
|
5604
|
-
t.map ? (y(),
|
|
5601
|
+
t.map ? (y(), U(M, E({
|
|
5605
5602
|
key: 1,
|
|
5606
5603
|
ref: "windBarb",
|
|
5607
5604
|
map: t.map,
|
|
5608
5605
|
"map-feather": t.mapFeather,
|
|
5609
5606
|
"before-layer": "empty-layer-2",
|
|
5610
|
-
wind: (
|
|
5607
|
+
wind: (ce = a.weatherLayers) == null ? void 0 : ce.wind,
|
|
5611
5608
|
"menu-toggle": t.menuToggle
|
|
5612
5609
|
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : N("", !0),
|
|
5613
|
-
t.map ? (y(),
|
|
5610
|
+
t.map ? (y(), U(L, E({
|
|
5614
5611
|
key: 2,
|
|
5615
5612
|
map: t.map,
|
|
5616
5613
|
"before-layer": "empty-layer-2",
|
|
5617
|
-
"sig-wave-height": (
|
|
5614
|
+
"sig-wave-height": (de = a.weatherLayers) == null ? void 0 : de["sig-wave-height"],
|
|
5618
5615
|
"menu-toggle": t.menuToggle,
|
|
5619
5616
|
"active-weather-layers": a.activeWeatherLayers
|
|
5620
5617
|
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : N("", !0),
|
|
5621
|
-
t.map ? (y(),
|
|
5618
|
+
t.map ? (y(), U(v, E({
|
|
5622
5619
|
key: 3,
|
|
5623
5620
|
map: t.map,
|
|
5624
5621
|
"map-feather": t.mapFeather,
|
|
5625
5622
|
"before-layer": "empty-layer-2",
|
|
5626
|
-
current: (
|
|
5623
|
+
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
5627
5624
|
"menu-toggle": t.menuToggle
|
|
5628
5625
|
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : N("", !0),
|
|
5629
|
-
t.map ? (y(),
|
|
5626
|
+
t.map ? (y(), U(z, E({
|
|
5630
5627
|
key: 4,
|
|
5631
5628
|
map: t.map,
|
|
5632
5629
|
"before-layer": "empty-layer-2",
|
|
5633
|
-
prmsl: (
|
|
5630
|
+
prmsl: (K = a.weatherLayers) == null ? void 0 : K.prmsl,
|
|
5634
5631
|
"menu-toggle": t.menuToggle,
|
|
5635
5632
|
"active-weather-layers": a.activeWeatherLayers
|
|
5636
5633
|
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : N("", !0),
|
|
5637
|
-
t.map ? (y(),
|
|
5634
|
+
t.map ? (y(), U(P, E({
|
|
5638
5635
|
key: 5,
|
|
5639
5636
|
viewport: a.viewport,
|
|
5640
|
-
factor: (
|
|
5637
|
+
factor: (I = a.weatherLayers) == null ? void 0 : I["wind-particle"],
|
|
5641
5638
|
"menu-toggle": t.menuToggle
|
|
5642
5639
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5643
|
-
t.map ? (y(),
|
|
5640
|
+
t.map ? (y(), U(w, E({
|
|
5644
5641
|
key: 6,
|
|
5645
5642
|
viewport: a.viewport,
|
|
5646
|
-
factor: (
|
|
5643
|
+
factor: (le = a.weatherLayers) == null ? void 0 : le["current-particle"],
|
|
5647
5644
|
"menu-toggle": t.menuToggle
|
|
5648
5645
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5649
|
-
t.map ? (y(),
|
|
5646
|
+
t.map ? (y(), U(R, E({
|
|
5650
5647
|
key: 7,
|
|
5651
5648
|
viewport: a.viewport,
|
|
5652
|
-
factor: (
|
|
5649
|
+
factor: (ge = a.weatherLayers) == null ? void 0 : ge["sig-wave"],
|
|
5653
5650
|
"menu-toggle": t.menuToggle
|
|
5654
5651
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5655
|
-
t.map ? (y(),
|
|
5652
|
+
t.map ? (y(), U(W, E({
|
|
5656
5653
|
key: 8,
|
|
5657
5654
|
map: t.map,
|
|
5658
|
-
swell: (
|
|
5655
|
+
swell: (fe = a.weatherLayers) == null ? void 0 : fe.swell,
|
|
5659
5656
|
"menu-toggle": t.menuToggle,
|
|
5660
5657
|
"active-weather-layers": a.activeWeatherLayers
|
|
5661
5658
|
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : N("", !0),
|
|
5662
|
-
t.map ? (y(),
|
|
5659
|
+
t.map ? (y(), U(X, E({
|
|
5663
5660
|
key: 9,
|
|
5664
5661
|
viewport: a.viewport,
|
|
5665
|
-
factor: (
|
|
5662
|
+
factor: (ye = a.weatherLayers) == null ? void 0 : ye["ice-edge"],
|
|
5666
5663
|
"menu-toggle": t.menuToggle
|
|
5667
5664
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5668
|
-
t.map ? (y(),
|
|
5665
|
+
t.map ? (y(), U(V, E({
|
|
5669
5666
|
key: 10,
|
|
5670
5667
|
viewport: a.viewport,
|
|
5671
|
-
factor: (
|
|
5668
|
+
factor: (we = a.weatherLayers) == null ? void 0 : we["ice-cover"],
|
|
5672
5669
|
"menu-toggle": t.menuToggle
|
|
5673
5670
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5674
|
-
t.map ? (y(),
|
|
5671
|
+
t.map ? (y(), U(Y, E({
|
|
5675
5672
|
key: 11,
|
|
5676
5673
|
viewport: a.viewport,
|
|
5677
|
-
factor: (
|
|
5674
|
+
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-thickness"],
|
|
5678
5675
|
"menu-toggle": t.menuToggle
|
|
5679
5676
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5680
|
-
t.map ? (y(),
|
|
5677
|
+
t.map ? (y(), U($, E({
|
|
5681
5678
|
key: 12,
|
|
5682
5679
|
viewport: a.viewport,
|
|
5683
|
-
factor: (
|
|
5680
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me.precip3h,
|
|
5684
5681
|
"menu-toggle": t.menuToggle
|
|
5685
5682
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5686
|
-
t.map ? (y(),
|
|
5683
|
+
t.map ? (y(), U(ee, E({
|
|
5687
5684
|
key: 13,
|
|
5688
5685
|
viewport: a.viewport,
|
|
5689
|
-
factor: (
|
|
5686
|
+
factor: (Te = a.weatherLayers) == null ? void 0 : Te.visibility,
|
|
5690
5687
|
"menu-toggle": t.menuToggle
|
|
5691
5688
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5692
|
-
t.map ? (y(),
|
|
5689
|
+
t.map ? (y(), U(Q, E({
|
|
5693
5690
|
key: 14,
|
|
5694
5691
|
viewport: a.viewport,
|
|
5695
|
-
factor: (
|
|
5692
|
+
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
5696
5693
|
"menu-toggle": t.menuToggle
|
|
5697
5694
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
|
|
5698
|
-
t.map ? (y(),
|
|
5695
|
+
t.map ? (y(), U(ne, E({
|
|
5699
5696
|
key: 15,
|
|
5700
5697
|
viewport: a.viewport,
|
|
5701
|
-
factor: (
|
|
5698
|
+
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.temp,
|
|
5702
5699
|
"menu-toggle": t.menuToggle
|
|
5703
5700
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0)
|
|
5704
5701
|
]);
|
|
5705
5702
|
}
|
|
5706
|
-
const Gr = /* @__PURE__ */
|
|
5703
|
+
const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
|
|
5707
5704
|
{
|
|
5708
5705
|
rank: 0,
|
|
5709
5706
|
name: "Best Match",
|
|
@@ -5862,7 +5859,7 @@ const Gr = /* @__PURE__ */ X(lr, [["render", Wr]]), ao = [
|
|
|
5862
5859
|
categories: "bom_access_global",
|
|
5863
5860
|
variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
|
|
5864
5861
|
}
|
|
5865
|
-
],
|
|
5862
|
+
], Kt = [
|
|
5866
5863
|
{
|
|
5867
5864
|
rank: 0,
|
|
5868
5865
|
name: "Best Match",
|
|
@@ -5983,10 +5980,10 @@ const Gr = /* @__PURE__ */ X(lr, [["render", Wr]]), ao = [
|
|
|
5983
5980
|
];
|
|
5984
5981
|
class Do {
|
|
5985
5982
|
static standardWeatherModels() {
|
|
5986
|
-
return
|
|
5983
|
+
return qt.filter((e) => !e.disabled && e.alias);
|
|
5987
5984
|
}
|
|
5988
5985
|
static standardMarineModels() {
|
|
5989
|
-
return
|
|
5986
|
+
return Kt.filter((e) => !e.disabled && e.alias);
|
|
5990
5987
|
}
|
|
5991
5988
|
/**
|
|
5992
5989
|
* 可视化图层模式
|
|
@@ -6020,20 +6017,20 @@ class Do {
|
|
|
6020
6017
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
6021
6018
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6022
6019
|
for (const c of a) {
|
|
6023
|
-
let n =
|
|
6024
|
-
var
|
|
6025
|
-
return ((
|
|
6026
|
-
}), p =
|
|
6027
|
-
var
|
|
6028
|
-
return ((
|
|
6020
|
+
let n = qt.find((d) => {
|
|
6021
|
+
var m, f, _;
|
|
6022
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === c;
|
|
6023
|
+
}), p = Kt.find((d) => {
|
|
6024
|
+
var m, f, _;
|
|
6025
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === c;
|
|
6029
6026
|
});
|
|
6030
|
-
n = n ||
|
|
6031
|
-
var
|
|
6032
|
-
return ((
|
|
6033
|
-
}), p = p ||
|
|
6034
|
-
var
|
|
6035
|
-
return ((
|
|
6036
|
-
}), n = n ||
|
|
6027
|
+
n = n || qt.find((d) => {
|
|
6028
|
+
var m, f;
|
|
6029
|
+
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = p == null ? void 0 : p.alias) == null ? void 0 : f.toLowerCase());
|
|
6030
|
+
}), p = p || Kt.find((d) => {
|
|
6031
|
+
var m, f;
|
|
6032
|
+
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
|
|
6033
|
+
}), n = n || qt[0], p = p || Kt[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
|
|
6037
6034
|
}
|
|
6038
6035
|
return {
|
|
6039
6036
|
weatherModels: r.join(","),
|
|
@@ -6042,7 +6039,7 @@ class Do {
|
|
|
6042
6039
|
}
|
|
6043
6040
|
static autoPickSubCategories(e) {
|
|
6044
6041
|
e = e.toUpperCase();
|
|
6045
|
-
const t =
|
|
6042
|
+
const t = qt.filter((r) => r.alias === e), i = Kt.filter((r) => r.alias === e), a = [];
|
|
6046
6043
|
return t.forEach((r) => {
|
|
6047
6044
|
r.categories && a.push(...r.categories.split(","));
|
|
6048
6045
|
}), i.forEach((r) => {
|
|
@@ -6050,94 +6047,94 @@ class Do {
|
|
|
6050
6047
|
}), a;
|
|
6051
6048
|
}
|
|
6052
6049
|
static pickHourly(e, t) {
|
|
6053
|
-
var i, a, r, s, c, n, p, d,
|
|
6054
|
-
const
|
|
6055
|
-
if (
|
|
6056
|
-
const
|
|
6057
|
-
let
|
|
6058
|
-
if (
|
|
6050
|
+
var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie, j, te, Le, Ee, Pe;
|
|
6051
|
+
const he = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, xe = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = xe.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ae = xe.clone().add((d = (p = (n = pe == null ? void 0 : pe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ae = [];
|
|
6052
|
+
if (he.isBetween(J, ae, "millisecond", "[]")) {
|
|
6053
|
+
const D = he.utc().diff(J, "h", !1);
|
|
6054
|
+
let ue, Ce;
|
|
6055
|
+
if (pe) {
|
|
6059
6056
|
let De = 0, Oe = 0;
|
|
6060
|
-
for (const A of
|
|
6061
|
-
const
|
|
6062
|
-
for (let
|
|
6063
|
-
De += (
|
|
6064
|
-
for (let
|
|
6065
|
-
Oe += (f =
|
|
6066
|
-
|
|
6067
|
-
temp: (
|
|
6068
|
-
apparentTemp: (b =
|
|
6069
|
-
rh: (S =
|
|
6070
|
-
dp: (C =
|
|
6057
|
+
for (const A of pe) {
|
|
6058
|
+
const G = A == null ? void 0 : A.hourly;
|
|
6059
|
+
for (let ke = D - (D - 1) % 3; ke <= D; ke++)
|
|
6060
|
+
De += (m = G == null ? void 0 : G.precipitation) == null ? void 0 : m.at(ke);
|
|
6061
|
+
for (let ke = D - (D - 1) % 6; ke <= D; ke++)
|
|
6062
|
+
Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(ke);
|
|
6063
|
+
ue = {
|
|
6064
|
+
temp: (_ = G == null ? void 0 : G.temperature_2m) == null ? void 0 : _.at(D),
|
|
6065
|
+
apparentTemp: (b = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : b.at(D),
|
|
6066
|
+
rh: (S = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : S.at(D),
|
|
6067
|
+
dp: (C = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : C.at(D),
|
|
6071
6068
|
precip: {
|
|
6072
|
-
probability: (
|
|
6073
|
-
sum: (
|
|
6069
|
+
probability: (B = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : B.at(D),
|
|
6070
|
+
sum: (M = G == null ? void 0 : G.precipitation) == null ? void 0 : M.at(D),
|
|
6074
6071
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6075
6072
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6076
6073
|
},
|
|
6077
|
-
pmsl: (L =
|
|
6078
|
-
psurf: (v =
|
|
6079
|
-
code: (z =
|
|
6080
|
-
visibility: this.m2nm((P =
|
|
6074
|
+
pmsl: (L = G == null ? void 0 : G.pressure_msl) == null ? void 0 : L.at(D),
|
|
6075
|
+
psurf: (v = G == null ? void 0 : G.surface_pressure) == null ? void 0 : v.at(D),
|
|
6076
|
+
code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(D),
|
|
6077
|
+
visibility: this.m2nm((P = G == null ? void 0 : G.visibility) == null ? void 0 : P.at(D)),
|
|
6081
6078
|
wind: {
|
|
6082
|
-
speed: (w =
|
|
6083
|
-
kts: (
|
|
6084
|
-
degree: (
|
|
6085
|
-
bearing: ((
|
|
6086
|
-
gusts: (
|
|
6079
|
+
speed: (w = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : w.at(D),
|
|
6080
|
+
kts: (R = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : R.at(D),
|
|
6081
|
+
degree: (W = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : W.at(D),
|
|
6082
|
+
bearing: ((X = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : X.at(D)) !== null ? (((V = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : V.at(D)) + 180) % 360 : null,
|
|
6083
|
+
gusts: (Y = G == null ? void 0 : G.wind_gusts_10m) == null ? void 0 : Y.at(D)
|
|
6087
6084
|
},
|
|
6088
|
-
isDay: ($ =
|
|
6085
|
+
isDay: ($ = G == null ? void 0 : G.is_day) == null ? void 0 : $.at(D)
|
|
6089
6086
|
};
|
|
6090
|
-
const { name: He, url: We, bg: Ge } = this.parseWeatherCode(
|
|
6091
|
-
|
|
6092
|
-
utc:
|
|
6087
|
+
const { name: He, url: We, bg: Ge } = this.parseWeatherCode(ue.code, ue.isDay);
|
|
6088
|
+
ue.name = He, ue.url = We, ue.bg = Ge, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Ae.push({
|
|
6089
|
+
utc: J.add(D, "h").format(),
|
|
6093
6090
|
model: A.model,
|
|
6094
|
-
weather: { ...
|
|
6091
|
+
weather: { ...ue }
|
|
6095
6092
|
});
|
|
6096
6093
|
}
|
|
6097
6094
|
}
|
|
6098
|
-
if (
|
|
6095
|
+
if (H) {
|
|
6099
6096
|
let De = 0;
|
|
6100
|
-
for (const Oe of
|
|
6097
|
+
for (const Oe of H) {
|
|
6101
6098
|
const A = Oe == null ? void 0 : Oe.hourly;
|
|
6102
|
-
|
|
6099
|
+
Ce = {
|
|
6103
6100
|
wave: {
|
|
6104
6101
|
sig: {
|
|
6105
|
-
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(
|
|
6106
|
-
degree: (
|
|
6107
|
-
bearing: ((
|
|
6108
|
-
period: (
|
|
6102
|
+
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(D),
|
|
6103
|
+
degree: (Q = A == null ? void 0 : A.wave_direction) == null ? void 0 : Q.at(D),
|
|
6104
|
+
bearing: ((ne = A == null ? void 0 : A.wave_direction) == null ? void 0 : ne.at(D)) !== null ? (((ce = A == null ? void 0 : A.wave_direction) == null ? void 0 : ce.at(D)) + 180) % 360 : null,
|
|
6105
|
+
period: (de = A == null ? void 0 : A.wave_period) == null ? void 0 : de.at(D)
|
|
6109
6106
|
},
|
|
6110
6107
|
swell: {
|
|
6111
|
-
height: (me = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : me.at(
|
|
6112
|
-
degree: (
|
|
6113
|
-
bearing: ((
|
|
6114
|
-
period: (
|
|
6115
|
-
peakPeriod: (
|
|
6108
|
+
height: (me = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : me.at(D),
|
|
6109
|
+
degree: (K = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : K.at(D),
|
|
6110
|
+
bearing: ((I = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : I.at(D)) !== null ? (((le = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : le.at(D)) + 180) % 360 : null,
|
|
6111
|
+
period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(D),
|
|
6112
|
+
peakPeriod: (fe = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : fe.at(D)
|
|
6116
6113
|
},
|
|
6117
6114
|
wd: {
|
|
6118
|
-
height: (ye = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : ye.at(
|
|
6119
|
-
degree: (we = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : we.at(
|
|
6120
|
-
bearing: ((
|
|
6121
|
-
period: (
|
|
6122
|
-
peakPeriod: (
|
|
6115
|
+
height: (ye = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : ye.at(D),
|
|
6116
|
+
degree: (we = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : we.at(D),
|
|
6117
|
+
bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(D)) !== null ? (((Me = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Me.at(D)) + 180) % 360 : null,
|
|
6118
|
+
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(D),
|
|
6119
|
+
peakPeriod: (Re = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : Re.at(D)
|
|
6123
6120
|
}
|
|
6124
6121
|
},
|
|
6125
6122
|
current: {
|
|
6126
|
-
speed: (
|
|
6127
|
-
kts: (
|
|
6128
|
-
degree: (
|
|
6129
|
-
bearing: ((
|
|
6123
|
+
speed: (Ie = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : Ie.at(D),
|
|
6124
|
+
kts: (j = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : j.at(D),
|
|
6125
|
+
degree: (te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(D),
|
|
6126
|
+
bearing: ((Le = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : Le.at(D)) ?? null
|
|
6130
6127
|
},
|
|
6131
|
-
sst: (Ee = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ee.at(
|
|
6132
|
-
height: (
|
|
6133
|
-
},
|
|
6128
|
+
sst: (Ee = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ee.at(D),
|
|
6129
|
+
height: (Pe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : Pe.at(D)
|
|
6130
|
+
}, Ce.wave = this.parseWave(Ce.wave, ue == null ? void 0 : ue.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(Ae[De], Ce), De++;
|
|
6134
6131
|
}
|
|
6135
6132
|
}
|
|
6136
6133
|
}
|
|
6137
6134
|
return Ae;
|
|
6138
6135
|
}
|
|
6139
6136
|
static toLegacy(e) {
|
|
6140
|
-
var t, i, a, r, s, c, n, p, d,
|
|
6137
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
6141
6138
|
return {
|
|
6142
6139
|
wind: (t = e == null ? void 0 : e.weather) == null ? void 0 : t.wind,
|
|
6143
6140
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -6149,7 +6146,7 @@ class Do {
|
|
|
6149
6146
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
6150
6147
|
code: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.code,
|
|
6151
6148
|
name: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.name,
|
|
6152
|
-
url: (
|
|
6149
|
+
url: (m = e == null ? void 0 : e.weather) == null ? void 0 : m.url,
|
|
6153
6150
|
wave: e == null ? void 0 : e.wave,
|
|
6154
6151
|
current: e == null ? void 0 : e.current,
|
|
6155
6152
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -6159,86 +6156,86 @@ class Do {
|
|
|
6159
6156
|
};
|
|
6160
6157
|
}
|
|
6161
6158
|
static pickDaily(e, t) {
|
|
6162
|
-
var i, a, r, s, c, n, p, d,
|
|
6163
|
-
const
|
|
6164
|
-
if (
|
|
6165
|
-
let
|
|
6166
|
-
const
|
|
6167
|
-
if (
|
|
6168
|
-
for (const
|
|
6169
|
-
const
|
|
6170
|
-
|
|
6171
|
-
code: (p =
|
|
6159
|
+
var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re;
|
|
6160
|
+
const Ie = typeof t == "string" ? O(t) : t, j = e == null ? void 0 : e.weather, te = e == null ? void 0 : e.marine, Le = O((r = (a = (i = j == null ? void 0 : j[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ee = O((n = (c = (s = j == null ? void 0 : j[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6161
|
+
if (Ie.isBetween(Le, Ee, "millisecond", "[]")) {
|
|
6162
|
+
let he, pe;
|
|
6163
|
+
const H = Ie.diff(Le, "d", !1);
|
|
6164
|
+
if (j)
|
|
6165
|
+
for (const xe of j) {
|
|
6166
|
+
const J = xe.daily;
|
|
6167
|
+
he = {
|
|
6168
|
+
code: (p = J.weather_code) == null ? void 0 : p.at(H),
|
|
6172
6169
|
temp: {
|
|
6173
|
-
max: (d =
|
|
6174
|
-
min: (
|
|
6175
|
-
mean: (f =
|
|
6170
|
+
max: (d = J.temperature_2m_max) == null ? void 0 : d.at(H),
|
|
6171
|
+
min: (m = J.temperature_2m_min) == null ? void 0 : m.at(H),
|
|
6172
|
+
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(H)
|
|
6176
6173
|
},
|
|
6177
6174
|
apparentTemp: {
|
|
6178
|
-
max: (
|
|
6179
|
-
min: (b =
|
|
6175
|
+
max: (_ = J.apparent_temperature_max) == null ? void 0 : _.at(H),
|
|
6176
|
+
min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(H)
|
|
6180
6177
|
},
|
|
6181
6178
|
precip: {
|
|
6182
|
-
sum: (S =
|
|
6183
|
-
rainSum: (C =
|
|
6184
|
-
snowfallSum: (
|
|
6185
|
-
showersSum: (
|
|
6186
|
-
hours: (L =
|
|
6187
|
-
probability: (v =
|
|
6179
|
+
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(H),
|
|
6180
|
+
rainSum: (C = J.rain_sum) == null ? void 0 : C.at(H),
|
|
6181
|
+
snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(H),
|
|
6182
|
+
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(H),
|
|
6183
|
+
hours: (L = J.precipitation_hours) == null ? void 0 : L.at(H),
|
|
6184
|
+
probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(H)
|
|
6188
6185
|
},
|
|
6189
6186
|
rh: {
|
|
6190
|
-
max: (z =
|
|
6191
|
-
min: (P =
|
|
6192
|
-
mean: (w =
|
|
6187
|
+
max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(H),
|
|
6188
|
+
min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(H),
|
|
6189
|
+
mean: (w = J.relative_humidity_2m_mean) == null ? void 0 : w.at(H)
|
|
6193
6190
|
},
|
|
6194
6191
|
wind: {
|
|
6195
|
-
speed: (
|
|
6196
|
-
kts: (
|
|
6197
|
-
degree: (
|
|
6198
|
-
gusts: (
|
|
6199
|
-
bearing: ((
|
|
6192
|
+
speed: (R = J.wind_speed_10m_max) == null ? void 0 : R.at(H),
|
|
6193
|
+
kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(H),
|
|
6194
|
+
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(H),
|
|
6195
|
+
gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(H),
|
|
6196
|
+
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(H)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(H)) + 180) % 360 : null
|
|
6200
6197
|
}
|
|
6201
6198
|
};
|
|
6202
|
-
const { name:
|
|
6203
|
-
|
|
6204
|
-
utc:
|
|
6205
|
-
model:
|
|
6206
|
-
weather: { ...
|
|
6199
|
+
const { name: ae, url: Ae, bg: D } = this.parseWeatherCode(he.code, !0);
|
|
6200
|
+
he.name = ae, he.url = Ae, he.bg = D, he.wind.scale = this.beaufort(this.kts2ms(he.wind.kts)), he.wind.direction = this.degree2Direction(he.wind.degree), Pe.push({
|
|
6201
|
+
utc: Le.add(H, "d").utc().format(),
|
|
6202
|
+
model: xe.model,
|
|
6203
|
+
weather: { ...he }
|
|
6207
6204
|
});
|
|
6208
6205
|
}
|
|
6209
|
-
if (
|
|
6210
|
-
let
|
|
6211
|
-
for (const
|
|
6212
|
-
const
|
|
6213
|
-
|
|
6206
|
+
if (te) {
|
|
6207
|
+
let xe = 0;
|
|
6208
|
+
for (const J of te) {
|
|
6209
|
+
const ae = J.daily;
|
|
6210
|
+
pe = {
|
|
6214
6211
|
wave: {
|
|
6215
6212
|
sig: {
|
|
6216
|
-
height: (ee =
|
|
6217
|
-
degree: (
|
|
6218
|
-
period: (
|
|
6219
|
-
bearing: ((ce =
|
|
6213
|
+
height: (ee = ae.wave_height_max) == null ? void 0 : ee.at(H),
|
|
6214
|
+
degree: (Q = ae.wave_direction_dominant) == null ? void 0 : Q.at(H),
|
|
6215
|
+
period: (ne = ae.wave_period_max) == null ? void 0 : ne.at(H),
|
|
6216
|
+
bearing: ((ce = ae.wave_direction_dominant) == null ? void 0 : ce.at(H)) !== null ? (((de = ae.wave_direction_dominant) == null ? void 0 : de.at(H)) + 180) % 360 : null
|
|
6220
6217
|
},
|
|
6221
6218
|
swell: {
|
|
6222
|
-
height: (me =
|
|
6223
|
-
degree: (
|
|
6224
|
-
period: (
|
|
6225
|
-
peakPeriod: (
|
|
6219
|
+
height: (me = ae.swell_wave_height_max) == null ? void 0 : me.at(H),
|
|
6220
|
+
degree: (K = ae.swell_wave_direction_dominant) == null ? void 0 : K.at(H),
|
|
6221
|
+
period: (I = ae.swell_wave_period_max) == null ? void 0 : I.at(H),
|
|
6222
|
+
peakPeriod: (le = ae.swell_wave_peak_period_max) == null ? void 0 : le.at(H),
|
|
6226
6223
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
6227
|
-
bearing: ((
|
|
6224
|
+
bearing: ((ge = ae.swell_wave_direction_dominant) == null ? void 0 : ge.at(H)) !== null ? ((fe = ae.swell_wave_direction_dominant) == null ? void 0 : fe.at(H)) % 360 : null
|
|
6228
6225
|
},
|
|
6229
6226
|
wd: {
|
|
6230
|
-
height: (ye =
|
|
6231
|
-
degree: (we =
|
|
6232
|
-
period: (
|
|
6233
|
-
peakPeriod: (
|
|
6234
|
-
bearing: ((
|
|
6227
|
+
height: (ye = ae.wind_wave_height_max) == null ? void 0 : ye.at(H),
|
|
6228
|
+
degree: (we = ae.wind_wave_direction_dominant) == null ? void 0 : we.at(H),
|
|
6229
|
+
period: (Se = ae.wind_wave_period_max) == null ? void 0 : Se.at(H),
|
|
6230
|
+
peakPeriod: (Me = ae.wind_wave_peak_period_max) == null ? void 0 : Me.at(H),
|
|
6231
|
+
bearing: ((Te = ae.wind_wave_direction_dominant) == null ? void 0 : Te.at(H)) !== null ? (((Re = ae.wind_wave_direction_dominant) == null ? void 0 : Re.at(H)) + 180) % 360 : null
|
|
6235
6232
|
}
|
|
6236
6233
|
}
|
|
6237
|
-
},
|
|
6234
|
+
}, pe.wave = this.parseWave(pe.wave, he == null ? void 0 : he.wind), Object.assign(Pe[xe], pe), xe++;
|
|
6238
6235
|
}
|
|
6239
6236
|
}
|
|
6240
6237
|
}
|
|
6241
|
-
return
|
|
6238
|
+
return Pe;
|
|
6242
6239
|
}
|
|
6243
6240
|
static parseWave(e, t) {
|
|
6244
6241
|
if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
|
|
@@ -6713,7 +6710,7 @@ const Ur = {
|
|
|
6713
6710
|
computeTime() {
|
|
6714
6711
|
return function(o) {
|
|
6715
6712
|
if (o) {
|
|
6716
|
-
const e =
|
|
6713
|
+
const e = O(o).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
6717
6714
|
return `${e == null ? void 0 : e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
6718
6715
|
}
|
|
6719
6716
|
return "-";
|
|
@@ -6776,7 +6773,7 @@ const Ur = {
|
|
|
6776
6773
|
async fetchTropicals() {
|
|
6777
6774
|
var a, r, s;
|
|
6778
6775
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
6779
|
-
let e = 0, t = 0, i = (a =
|
|
6776
|
+
let e = 0, t = 0, i = (a = Qt.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
6780
6777
|
if (i > 0) {
|
|
6781
6778
|
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Be.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
6782
6779
|
headers: {
|
|
@@ -6792,10 +6789,10 @@ const Ur = {
|
|
|
6792
6789
|
},
|
|
6793
6790
|
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
6794
6791
|
}).then((d) => {
|
|
6795
|
-
var
|
|
6796
|
-
const
|
|
6797
|
-
((S = (b = d == null ? void 0 : d.config) == null ? void 0 : b.headers) == null ? void 0 : S.key) &&
|
|
6798
|
-
data:
|
|
6792
|
+
var _, b, S;
|
|
6793
|
+
const m = Ao.convert2Geojson(((_ = d == null ? void 0 : d.data) == null ? void 0 : _.data) || (d == null ? void 0 : d.data));
|
|
6794
|
+
((S = (b = d == null ? void 0 : d.config) == null ? void 0 : b.headers) == null ? void 0 : S.key) && m && (this.tropicals = {
|
|
6795
|
+
data: m,
|
|
6799
6796
|
active: !0,
|
|
6800
6797
|
cached: !0,
|
|
6801
6798
|
type: "json",
|
|
@@ -6813,7 +6810,7 @@ const Ur = {
|
|
|
6813
6810
|
var e, t;
|
|
6814
6811
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((i) => {
|
|
6815
6812
|
var a, r;
|
|
6816
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format =
|
|
6813
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = O(i.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
6817
6814
|
}), this.handleInit();
|
|
6818
6815
|
},
|
|
6819
6816
|
handleInit() {
|
|
@@ -6841,9 +6838,9 @@ const Ur = {
|
|
|
6841
6838
|
}, 500);
|
|
6842
6839
|
else {
|
|
6843
6840
|
if (this.tropicals) {
|
|
6844
|
-
const
|
|
6845
|
-
let f = 0,
|
|
6846
|
-
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
6841
|
+
const m = (/* @__PURE__ */ new Date()).valueOf();
|
|
6842
|
+
let f = 0, _ = 0;
|
|
6843
|
+
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropicals] update elapsed: ", _, ", total: ", f += _)) : (this.map.addSource(this.source, {
|
|
6847
6844
|
type: "geojson",
|
|
6848
6845
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
6849
6846
|
}), this.map.addLayer({
|
|
@@ -6940,7 +6937,7 @@ const Ur = {
|
|
|
6940
6937
|
],
|
|
6941
6938
|
"text-halo-width": 4
|
|
6942
6939
|
}
|
|
6943
|
-
}),
|
|
6940
|
+
}), _ = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", _, ", total: ", f += _)), (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), _ = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] update elapsed: ", _, ", total: ", f += _)) : (this.map.addSource(this.clusterSource, {
|
|
6944
6941
|
type: "geojson",
|
|
6945
6942
|
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
6946
6943
|
// cluster: true,
|
|
@@ -7057,7 +7054,7 @@ const Ur = {
|
|
|
7057
7054
|
"text-halo-color": "#0033ff",
|
|
7058
7055
|
"text-halo-width": 4
|
|
7059
7056
|
}
|
|
7060
|
-
}),
|
|
7057
|
+
}), _ = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", _, ", total: ", f += _));
|
|
7061
7058
|
}
|
|
7062
7059
|
this.handleDrawCircle();
|
|
7063
7060
|
const d = Ao.interpolate(this.tropicals, 1);
|
|
@@ -7082,11 +7079,11 @@ const Ur = {
|
|
|
7082
7079
|
), this.showTropicalsInfo = !1, (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
|
|
7083
7080
|
},
|
|
7084
7081
|
handleDateChange() {
|
|
7085
|
-
var o, e, t, i, a, r, s, c, n, p, d,
|
|
7086
|
-
if ((o = this.interpolateMarkers) == null || o.forEach((
|
|
7087
|
-
const
|
|
7088
|
-
|
|
7089
|
-
me.features.push(
|
|
7082
|
+
var o, e, t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q;
|
|
7083
|
+
if ((o = this.interpolateMarkers) == null || o.forEach((ne) => ne == null ? void 0 : ne.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7084
|
+
const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(ce), me = F.featureCollection([...ce]);
|
|
7085
|
+
de.forEach((K) => {
|
|
7086
|
+
me.features.push(K);
|
|
7090
7087
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
7091
7088
|
type: "geojson",
|
|
7092
7089
|
data: me
|
|
@@ -7101,17 +7098,17 @@ const Ur = {
|
|
|
7101
7098
|
"line-width": 1
|
|
7102
7099
|
}
|
|
7103
7100
|
})), this.interpolateMarkers = [];
|
|
7104
|
-
for (const
|
|
7105
|
-
if (!
|
|
7106
|
-
let
|
|
7107
|
-
((c = (s =
|
|
7108
|
-
const
|
|
7101
|
+
for (const K of ce)
|
|
7102
|
+
if (!K.properties.disabled) {
|
|
7103
|
+
let I = "#f44336";
|
|
7104
|
+
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = K.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = K.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((_ = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : _.kts) < 47 ? I = "#f2f202" : ((S = (b = K.properties) == null ? void 0 : b.wind) == null ? void 0 : S.kts) >= 47 && ((B = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : B.kts) < 63 ? I = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((z = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : z.kts) < 79 ? I = "#f44336" : ((w = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : w.kts) >= 79 && ((W = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : W.kts) < 94 ? I = "#f903d0" : ((V = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : V.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
|
|
7105
|
+
const le = `<svg t="1719918955501"
|
|
7109
7106
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7110
7107
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
7111
7108
|
<path
|
|
7112
7109
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
7113
|
-
fill="${
|
|
7114
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
7110
|
+
fill="${I}" p-id="18383"></path>
|
|
7111
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${I}"
|
|
7115
7112
|
p-id="18384"></path>
|
|
7116
7113
|
<path
|
|
7117
7114
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -7119,35 +7116,35 @@ const Ur = {
|
|
|
7119
7116
|
<path
|
|
7120
7117
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
7121
7118
|
fill="#ffffff" p-id="18386"></path>
|
|
7122
|
-
</svg>`,
|
|
7123
|
-
|
|
7124
|
-
const
|
|
7125
|
-
this.interpolateMarkers.push(
|
|
7119
|
+
</svg>`, ge = document.createElement("div");
|
|
7120
|
+
ge.className = "idm-tropical-gl4-hourly-marker", ge.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${le}</div>`;
|
|
7121
|
+
const fe = new _e.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
|
|
7122
|
+
this.interpolateMarkers.push(fe), ($ = (Y = this.map) == null ? void 0 : Y.getSource(this.circleSource)) == null || $.setData(this.circleSourceData);
|
|
7126
7123
|
}
|
|
7127
7124
|
} else
|
|
7128
|
-
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((
|
|
7125
|
+
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
7129
7126
|
},
|
|
7130
7127
|
handleClick(o) {
|
|
7131
|
-
var r, s, c, n, p, d,
|
|
7128
|
+
var r, s, c, n, p, d, m, f;
|
|
7132
7129
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7133
|
-
(
|
|
7130
|
+
(_) => {
|
|
7134
7131
|
var b;
|
|
7135
|
-
return
|
|
7132
|
+
return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
7136
7133
|
}
|
|
7137
7134
|
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
7138
|
-
(
|
|
7135
|
+
(_) => {
|
|
7139
7136
|
var b;
|
|
7140
|
-
return
|
|
7137
|
+
return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
7141
7138
|
}
|
|
7142
7139
|
);
|
|
7143
7140
|
this.activeTropicals = {
|
|
7144
7141
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
7145
|
-
forecasts: t.map((
|
|
7142
|
+
forecasts: t.map((_) => _.properties),
|
|
7146
7143
|
history: (d = i[0]) == null ? void 0 : d.properties,
|
|
7147
|
-
showCircle: (f = (
|
|
7144
|
+
showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
|
|
7148
7145
|
}, this.showTropicalsInfo = !0;
|
|
7149
7146
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
7150
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
7147
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
7151
7148
|
},
|
|
7152
7149
|
handleForecastToggle(o) {
|
|
7153
7150
|
var i, a, r, s, c, n;
|
|
@@ -7234,23 +7231,22 @@ const Ur = {
|
|
|
7234
7231
|
}
|
|
7235
7232
|
}, Vr = { class: "idm-tropical-gl4" }, Yr = { key: 0 }, Zr = { class: "text-body-2 opacity-50" }, Xr = { class: "pa-1 d-flex justify-space-between align-center" }, qr = { class: "col col-left justify-start" }, Kr = { class: "col col-right justify-start" }, Qr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Jr = { class: "d-flex justify-space-between align-center col-left justify-start" }, $r = { class: "d-flex justify-space-between align-center col-right" }, el = { class: "pa-1 d-flex justify-space-between align-center" }, tl = { class: "d-flex justify-space-between align-center flex-1-1-100" }, ol = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, al = ["onClick"];
|
|
7236
7233
|
function il(o, e, t, i, a, r) {
|
|
7237
|
-
const s =
|
|
7238
|
-
return y(),
|
|
7234
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardSubtitle"), d = k("VCardItem"), m = k("VCardText"), f = k("VCard");
|
|
7235
|
+
return y(), T("div", Vr, [
|
|
7239
7236
|
l("div", {
|
|
7240
7237
|
class: "menu-bar-box transition pa-1",
|
|
7241
|
-
style:
|
|
7238
|
+
style: oe({ top: t.top + 134 + "px", right: a.right + "px" })
|
|
7242
7239
|
}, [
|
|
7243
|
-
|
|
7240
|
+
h(c, {
|
|
7244
7241
|
text: o.$t("tropical.tropicals"),
|
|
7245
7242
|
location: "left"
|
|
7246
7243
|
}, {
|
|
7247
|
-
activator: g(({ props:
|
|
7248
|
-
|
|
7244
|
+
activator: g(({ props: _ }) => [
|
|
7245
|
+
h(s, E(_, {
|
|
7249
7246
|
"min-width": "32",
|
|
7250
7247
|
width: "32",
|
|
7251
7248
|
height: "32",
|
|
7252
|
-
class: "text-none pa-0",
|
|
7253
|
-
color: a.toggle ? "primary" : "",
|
|
7249
|
+
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7254
7250
|
onClick: r.handleMenuToggle
|
|
7255
7251
|
}), {
|
|
7256
7252
|
default: g(() => e[1] || (e[1] = [
|
|
@@ -7258,47 +7254,47 @@ function il(o, e, t, i, a, r) {
|
|
|
7258
7254
|
])),
|
|
7259
7255
|
_: 2,
|
|
7260
7256
|
__: [1]
|
|
7261
|
-
}, 1040, ["
|
|
7257
|
+
}, 1040, ["class", "onClick"])
|
|
7262
7258
|
]),
|
|
7263
7259
|
_: 1
|
|
7264
7260
|
}, 8, ["text"])
|
|
7265
7261
|
], 4),
|
|
7266
|
-
|
|
7262
|
+
Jt(h(f, {
|
|
7267
7263
|
id: "idm-tropical-gl4-info",
|
|
7268
7264
|
class: "idm-tropical-gl4-info my-4",
|
|
7269
7265
|
width: "400",
|
|
7270
7266
|
elevation: "16"
|
|
7271
7267
|
}, {
|
|
7272
7268
|
default: g(() => [
|
|
7273
|
-
|
|
7269
|
+
h(d, { class: "border-b-thin" }, {
|
|
7274
7270
|
default: g(() => [
|
|
7275
|
-
|
|
7271
|
+
h(n, {
|
|
7276
7272
|
class: "text-subtitle-1 d-flex justify-space-between",
|
|
7277
7273
|
style: { "font-size": "16px !important" }
|
|
7278
7274
|
}, {
|
|
7279
7275
|
default: g(() => {
|
|
7280
|
-
var
|
|
7276
|
+
var _, b, S, C, B;
|
|
7281
7277
|
return [
|
|
7282
7278
|
l("div", null, [
|
|
7283
|
-
(b = (
|
|
7284
|
-
|
|
7279
|
+
(b = (_ = a.activeTropicals) == null ? void 0 : _.history) != null && b.level ? (y(), T("span", Yr, x((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level) + " , ", 1)) : N("", !0),
|
|
7280
|
+
Z(x((B = a.activeTropicals) == null ? void 0 : B.name), 1)
|
|
7285
7281
|
]),
|
|
7286
|
-
|
|
7282
|
+
h(s, {
|
|
7287
7283
|
icon: "$close",
|
|
7288
7284
|
size: "small",
|
|
7289
7285
|
density: "comfortable",
|
|
7290
7286
|
variant: "plain",
|
|
7291
|
-
onClick: e[0] || (e[0] = (
|
|
7287
|
+
onClick: e[0] || (e[0] = (M) => a.showTropicalsInfo = !1)
|
|
7292
7288
|
})
|
|
7293
7289
|
];
|
|
7294
7290
|
}),
|
|
7295
7291
|
_: 1
|
|
7296
7292
|
}),
|
|
7297
|
-
|
|
7293
|
+
h(p, null, {
|
|
7298
7294
|
default: g(() => {
|
|
7299
|
-
var
|
|
7295
|
+
var _, b, S, C, B;
|
|
7300
7296
|
return [
|
|
7301
|
-
l("span", Zr, " Last update: " + x(r.computeTime(((b = (
|
|
7297
|
+
l("span", Zr, " Last update: " + x(r.computeTime(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.updated) || ((B = (C = (S = a.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : C.filter((M) => !M.disabled)[0]) == null ? void 0 : B.date))), 1)
|
|
7302
7298
|
];
|
|
7303
7299
|
}),
|
|
7304
7300
|
_: 1
|
|
@@ -7306,19 +7302,19 @@ function il(o, e, t, i, a, r) {
|
|
|
7306
7302
|
]),
|
|
7307
7303
|
_: 1
|
|
7308
7304
|
}),
|
|
7309
|
-
m
|
|
7305
|
+
h(m, { class: "main-box" }, {
|
|
7310
7306
|
default: g(() => {
|
|
7311
|
-
var
|
|
7307
|
+
var _, b, S, C, B, M, L, v, z;
|
|
7312
7308
|
return [
|
|
7313
7309
|
l("div", Xr, [
|
|
7314
7310
|
l("div", qr, [
|
|
7315
7311
|
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
7316
|
-
l("span", null, x(((b = (
|
|
7312
|
+
l("span", null, x(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.kts) || "-") + " [kts]", 1),
|
|
7317
7313
|
l("span", null, ", BF " + x(r.computeBF(((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.kts) || 0)), 1)
|
|
7318
7314
|
]),
|
|
7319
7315
|
l("div", Kr, [
|
|
7320
7316
|
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
7321
|
-
l("span", null, x(((
|
|
7317
|
+
l("span", null, x(((M = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : M.pressure) || "-") + " [hPa]", 1)
|
|
7322
7318
|
])
|
|
7323
7319
|
]),
|
|
7324
7320
|
l("div", Qr, [
|
|
@@ -7335,16 +7331,16 @@ function il(o, e, t, i, a, r) {
|
|
|
7335
7331
|
l("div", tl, [
|
|
7336
7332
|
e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
7337
7333
|
l("div", ol, [
|
|
7338
|
-
(y(!0),
|
|
7339
|
-
var
|
|
7340
|
-
return y(),
|
|
7334
|
+
(y(!0), T(ve, null, ze((z = a.activeTropicals) == null ? void 0 : z.forecasts, (P, w) => {
|
|
7335
|
+
var R, W, X, V;
|
|
7336
|
+
return y(), T("div", {
|
|
7341
7337
|
key: w,
|
|
7342
7338
|
class: Ne([
|
|
7343
7339
|
"model",
|
|
7344
7340
|
P.disabled ? "" : "active",
|
|
7345
|
-
w > 0 && w < ((
|
|
7341
|
+
w > 0 && w < ((W = (R = a.activeTropicals) == null ? void 0 : R.forecasts) == null ? void 0 : W.length) - 1 && ((V = (X = a.activeTropicals) == null ? void 0 : X.forecasts) == null ? void 0 : V.length) > 2 ? "center-child" : ""
|
|
7346
7342
|
]),
|
|
7347
|
-
onClick: (
|
|
7343
|
+
onClick: (Y) => r.handleForecastToggle(P)
|
|
7348
7344
|
}, [
|
|
7349
7345
|
l("span", {
|
|
7350
7346
|
class: Ne(P.model)
|
|
@@ -7402,11 +7398,11 @@ function il(o, e, t, i, a, r) {
|
|
|
7402
7398
|
]),
|
|
7403
7399
|
_: 1
|
|
7404
7400
|
}, 512), [
|
|
7405
|
-
[
|
|
7401
|
+
[eo, a.showTropicalsInfo && !o.$attrs.hideTropicalsLegend]
|
|
7406
7402
|
])
|
|
7407
7403
|
]);
|
|
7408
7404
|
}
|
|
7409
|
-
const Bo = /* @__PURE__ */
|
|
7405
|
+
const Bo = /* @__PURE__ */ q(Ur, [["render", il]]);
|
|
7410
7406
|
const rl = {
|
|
7411
7407
|
name: "DateTimePicker",
|
|
7412
7408
|
props: {
|
|
@@ -7451,7 +7447,7 @@ const rl = {
|
|
|
7451
7447
|
},
|
|
7452
7448
|
computed: {
|
|
7453
7449
|
currentYear() {
|
|
7454
|
-
return
|
|
7450
|
+
return O(this.currentTimestamp).format("YYYY");
|
|
7455
7451
|
},
|
|
7456
7452
|
hourOptions() {
|
|
7457
7453
|
const o = [];
|
|
@@ -7460,11 +7456,11 @@ const rl = {
|
|
|
7460
7456
|
return o.filter((e, t) => (t - this.timeZone) % this.intervalHour === 0);
|
|
7461
7457
|
},
|
|
7462
7458
|
timeZoneNames() {
|
|
7463
|
-
return
|
|
7459
|
+
return O.tz.names();
|
|
7464
7460
|
},
|
|
7465
7461
|
timeZoneName() {
|
|
7466
7462
|
var o;
|
|
7467
|
-
return (o = this.timeZoneNames.filter((e) =>
|
|
7463
|
+
return (o = this.timeZoneNames.filter((e) => O.tz(O(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : o[0];
|
|
7468
7464
|
},
|
|
7469
7465
|
utcTimeZoneName() {
|
|
7470
7466
|
return "Africa/Abidjan";
|
|
@@ -7494,7 +7490,7 @@ const rl = {
|
|
|
7494
7490
|
},
|
|
7495
7491
|
currentTimestamp: {
|
|
7496
7492
|
handler() {
|
|
7497
|
-
this.currentDateTimeZ =
|
|
7493
|
+
this.currentDateTimeZ = O(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
7498
7494
|
},
|
|
7499
7495
|
immediate: !0
|
|
7500
7496
|
},
|
|
@@ -7506,7 +7502,7 @@ const rl = {
|
|
|
7506
7502
|
},
|
|
7507
7503
|
mounted() {
|
|
7508
7504
|
this.handleReset(), this.timer = setInterval(() => {
|
|
7509
|
-
this.currentRealTime = `${
|
|
7505
|
+
this.currentRealTime = `${O.tz(O().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
7510
7506
|
}, 100);
|
|
7511
7507
|
},
|
|
7512
7508
|
unmounted() {
|
|
@@ -7518,41 +7514,41 @@ const rl = {
|
|
|
7518
7514
|
},
|
|
7519
7515
|
handleResetDateTime(o) {
|
|
7520
7516
|
var a;
|
|
7521
|
-
const e =
|
|
7522
|
-
this.currentTimestamp = ((a =
|
|
7523
|
-
const i =
|
|
7524
|
-
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${
|
|
7517
|
+
const e = O(o).utc().date(), t = Math.ceil(O(o).utc().hour() / 3) * 3;
|
|
7518
|
+
this.currentTimestamp = ((a = O(o)) == null ? void 0 : a.utc().set({ date: e, hour: t, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
|
|
7519
|
+
const i = O.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
7520
|
+
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${O.tz(O().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
7525
7521
|
},
|
|
7526
7522
|
handleResetDateRange() {
|
|
7527
7523
|
var a, r, s;
|
|
7528
7524
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
7529
7525
|
return;
|
|
7530
|
-
const o =
|
|
7526
|
+
const o = O().utc().date(), e = Math.ceil(O().utc().hour() / 3) * 3, t = ((a = O()) == null ? void 0 : a.utc().set({ date: o, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = O.tz(t, this.timeZoneName).clone();
|
|
7531
7527
|
this.dateRange = [
|
|
7532
7528
|
i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"),
|
|
7533
7529
|
i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD")
|
|
7534
7530
|
], this.timestampRange = [
|
|
7535
|
-
((r =
|
|
7536
|
-
((s =
|
|
7531
|
+
((r = O()) == null ? void 0 : r.utc().set({ date: o + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3,
|
|
7532
|
+
((s = O()) == null ? void 0 : s.utc().set({ date: o + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3
|
|
7537
7533
|
], this.$emit("timestampRange", this.timestampRange);
|
|
7538
7534
|
},
|
|
7539
7535
|
handleOpenDatePicker() {
|
|
7540
7536
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
7541
7537
|
},
|
|
7542
7538
|
handleUpdateMonth(o) {
|
|
7543
|
-
const e = o ||
|
|
7539
|
+
const e = o || O.tz(this.currentTimestamp, this.timeZoneName).clone().month(), t = this.locale === "en" ? O.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : O.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
|
|
7544
7540
|
this.$nextTick(() => {
|
|
7545
7541
|
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
7546
7542
|
i.innerText = t;
|
|
7547
7543
|
});
|
|
7548
7544
|
},
|
|
7549
7545
|
handleConfirmDate() {
|
|
7550
|
-
const o =
|
|
7546
|
+
const o = O(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, t = `${o} ${e}`, i = O.tz(t, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
|
|
7551
7547
|
this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
|
|
7552
7548
|
},
|
|
7553
7549
|
handleCancelDate() {
|
|
7554
7550
|
this.showDatePicker = !1;
|
|
7555
|
-
const o =
|
|
7551
|
+
const o = O.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
7556
7552
|
this.currentDate = o.clone().format("YYYY-MM-DD"), this.currentTime = o.clone().format("HH:00");
|
|
7557
7553
|
}
|
|
7558
7554
|
}
|
|
@@ -7567,28 +7563,28 @@ const rl = {
|
|
|
7567
7563
|
style: { height: "56px" }
|
|
7568
7564
|
};
|
|
7569
7565
|
function ml(o, e, t, i, a, r) {
|
|
7570
|
-
const s =
|
|
7571
|
-
return y(),
|
|
7572
|
-
|
|
7566
|
+
const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"), p = k("VListItemTitle"), d = k("VListItem"), m = k("VList"), f = k("VCardText"), _ = k("VCardActions"), b = k("VCard");
|
|
7567
|
+
return y(), T("div", ll, [
|
|
7568
|
+
h(s, {
|
|
7573
7569
|
text: "",
|
|
7574
7570
|
height: "30",
|
|
7575
|
-
class: "elevation-0 text-body-1 px-2
|
|
7571
|
+
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
7576
7572
|
onClick: r.handleOpenDatePicker
|
|
7577
7573
|
}, {
|
|
7578
7574
|
default: g(() => [
|
|
7579
|
-
|
|
7575
|
+
Z(x(a.currentDateTime) + " | UTC " + x(t.timeZone < 0 ? t.timeZone : "+" + t.timeZone), 1)
|
|
7580
7576
|
]),
|
|
7581
7577
|
_: 1
|
|
7582
7578
|
}, 8, ["onClick"]),
|
|
7583
|
-
a.showDatePicker ? (y(),
|
|
7579
|
+
a.showDatePicker ? (y(), U(b, {
|
|
7584
7580
|
key: 0,
|
|
7585
7581
|
class: "card-box d-flex flex-column"
|
|
7586
7582
|
}, {
|
|
7587
7583
|
default: g(() => [
|
|
7588
|
-
|
|
7584
|
+
h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
7589
7585
|
default: g(() => [
|
|
7590
7586
|
l("div", sl, [
|
|
7591
|
-
|
|
7587
|
+
h(c, {
|
|
7592
7588
|
modelValue: a.currentDate,
|
|
7593
7589
|
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
|
|
7594
7590
|
min: a.dateRange[0],
|
|
@@ -7602,15 +7598,15 @@ function ml(o, e, t, i, a, r) {
|
|
|
7602
7598
|
"onUpdate:month": r.handleUpdateMonth
|
|
7603
7599
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
7604
7600
|
]),
|
|
7605
|
-
|
|
7601
|
+
h(n, {
|
|
7606
7602
|
class: "h-100",
|
|
7607
7603
|
vertical: ""
|
|
7608
7604
|
}),
|
|
7609
7605
|
l("div", nl, [
|
|
7610
7606
|
l("div", cl, x(a.currentTime), 1),
|
|
7611
|
-
m
|
|
7607
|
+
h(m, { class: "pa-0 flex-1-1-0" }, {
|
|
7612
7608
|
default: g(() => [
|
|
7613
|
-
(y(!0),
|
|
7609
|
+
(y(!0), T(ve, null, ze(r.hourOptions, (S, C) => (y(), U(d, {
|
|
7614
7610
|
key: C,
|
|
7615
7611
|
value: S,
|
|
7616
7612
|
color: "primary",
|
|
@@ -7620,12 +7616,12 @@ function ml(o, e, t, i, a, r) {
|
|
|
7620
7616
|
"min-height": "26"
|
|
7621
7617
|
}, {
|
|
7622
7618
|
default: g(() => [
|
|
7623
|
-
|
|
7619
|
+
h(p, {
|
|
7624
7620
|
class: "text-body-2 text-center",
|
|
7625
|
-
onClick: (
|
|
7621
|
+
onClick: (B) => a.currentTime = S
|
|
7626
7622
|
}, {
|
|
7627
7623
|
default: g(() => [
|
|
7628
|
-
|
|
7624
|
+
Z(x(S), 1)
|
|
7629
7625
|
]),
|
|
7630
7626
|
_: 2
|
|
7631
7627
|
}, 1032, ["onClick"])
|
|
@@ -7639,25 +7635,25 @@ function ml(o, e, t, i, a, r) {
|
|
|
7639
7635
|
]),
|
|
7640
7636
|
_: 1
|
|
7641
7637
|
}),
|
|
7642
|
-
|
|
7643
|
-
|
|
7638
|
+
h(n),
|
|
7639
|
+
h(_, {
|
|
7644
7640
|
class: "justify-end pa-0 pr-4",
|
|
7645
7641
|
style: { height: "50px" }
|
|
7646
7642
|
}, {
|
|
7647
7643
|
default: g(() => [
|
|
7648
|
-
|
|
7644
|
+
h(s, {
|
|
7649
7645
|
size: "small",
|
|
7650
7646
|
variant: "tonal",
|
|
7651
7647
|
class: "text-none",
|
|
7652
7648
|
onClick: r.handleCancelDate
|
|
7653
7649
|
}, {
|
|
7654
7650
|
default: g(() => e[1] || (e[1] = [
|
|
7655
|
-
|
|
7651
|
+
Z("Cancel", -1)
|
|
7656
7652
|
])),
|
|
7657
7653
|
_: 1,
|
|
7658
7654
|
__: [1]
|
|
7659
7655
|
}, 8, ["onClick"]),
|
|
7660
|
-
|
|
7656
|
+
h(s, {
|
|
7661
7657
|
size: "small",
|
|
7662
7658
|
variant: "tonal",
|
|
7663
7659
|
color: "primary",
|
|
@@ -7665,7 +7661,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7665
7661
|
onClick: r.handleConfirmDate
|
|
7666
7662
|
}, {
|
|
7667
7663
|
default: g(() => e[2] || (e[2] = [
|
|
7668
|
-
|
|
7664
|
+
Z("Confirm", -1)
|
|
7669
7665
|
])),
|
|
7670
7666
|
_: 1,
|
|
7671
7667
|
__: [2]
|
|
@@ -7678,11 +7674,11 @@ function ml(o, e, t, i, a, r) {
|
|
|
7678
7674
|
})) : N("", !0)
|
|
7679
7675
|
]);
|
|
7680
7676
|
}
|
|
7681
|
-
const
|
|
7677
|
+
const ao = /* @__PURE__ */ q(rl, [["render", ml]]);
|
|
7682
7678
|
const hl = {
|
|
7683
7679
|
name: "IdmPoint",
|
|
7684
7680
|
components: {
|
|
7685
|
-
DateTimePicker:
|
|
7681
|
+
DateTimePicker: ao
|
|
7686
7682
|
},
|
|
7687
7683
|
props: {
|
|
7688
7684
|
isLogin: {
|
|
@@ -7772,35 +7768,35 @@ const hl = {
|
|
|
7772
7768
|
},
|
|
7773
7769
|
computed: {
|
|
7774
7770
|
timeZoneNames() {
|
|
7775
|
-
return
|
|
7771
|
+
return O.tz.names();
|
|
7776
7772
|
},
|
|
7777
7773
|
timeZoneName() {
|
|
7778
7774
|
var o;
|
|
7779
|
-
return (o = this.timeZoneNames.filter((e) =>
|
|
7775
|
+
return (o = this.timeZoneNames.filter((e) => O.tz(O(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : o[0];
|
|
7780
7776
|
},
|
|
7781
7777
|
computedTzTime() {
|
|
7782
|
-
return (o) =>
|
|
7778
|
+
return (o) => O.tz(O(o), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
|
|
7783
7779
|
},
|
|
7784
7780
|
computedLocalTime() {
|
|
7785
7781
|
return (o) => {
|
|
7786
7782
|
var i, a;
|
|
7787
|
-
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, t = (a = this.timeZoneNames.filter((r) =>
|
|
7788
|
-
return o ?
|
|
7783
|
+
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, t = (a = this.timeZoneNames.filter((r) => O.tz(O(), r).utcOffset() === e * 60)) == null ? void 0 : a[0];
|
|
7784
|
+
return o ? O.tz(O(o), t).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
|
|
7789
7785
|
};
|
|
7790
7786
|
},
|
|
7791
7787
|
computeLat() {
|
|
7792
7788
|
return function(o, e = 4) {
|
|
7793
|
-
return
|
|
7789
|
+
return ie.lat2pretty(o, e).pretty;
|
|
7794
7790
|
};
|
|
7795
7791
|
},
|
|
7796
7792
|
computeLng() {
|
|
7797
7793
|
return function(o, e = 4) {
|
|
7798
|
-
return
|
|
7794
|
+
return ie.lng2pretty(o, e).pretty;
|
|
7799
7795
|
};
|
|
7800
7796
|
},
|
|
7801
7797
|
roundPrecision() {
|
|
7802
7798
|
return function(o, e = 4) {
|
|
7803
|
-
return isNaN(o) ? "-" :
|
|
7799
|
+
return isNaN(o) ? "-" : ie.roundPrecision(o, e);
|
|
7804
7800
|
};
|
|
7805
7801
|
}
|
|
7806
7802
|
},
|
|
@@ -7858,8 +7854,8 @@ const hl = {
|
|
|
7858
7854
|
lat: this.form.lat,
|
|
7859
7855
|
lng: this.form.lng
|
|
7860
7856
|
};
|
|
7861
|
-
const t =
|
|
7862
|
-
((e =
|
|
7857
|
+
const t = O();
|
|
7858
|
+
((e = O(this.realTime)) == null ? void 0 : e.diff(t, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form), this.initTableData(this.meteoData), this.showMeteo = !0, this.handleRender();
|
|
7863
7859
|
}
|
|
7864
7860
|
});
|
|
7865
7861
|
},
|
|
@@ -7880,11 +7876,11 @@ const hl = {
|
|
|
7880
7876
|
},
|
|
7881
7877
|
async fetchMeteoData(o) {
|
|
7882
7878
|
this.loading = !0, this.meteoData = [];
|
|
7883
|
-
const { weatherModels: e, marineModels: t } =
|
|
7879
|
+
const { weatherModels: e, marineModels: t } = to.autoPickMeteoModel(o.forecastModel);
|
|
7884
7880
|
let i = {
|
|
7885
7881
|
lat: o.lat,
|
|
7886
7882
|
lng: o.lng,
|
|
7887
|
-
datetime:
|
|
7883
|
+
datetime: O(o.dateTime).utc().format(),
|
|
7888
7884
|
forecastDays: o.day ?? 7,
|
|
7889
7885
|
weatherModels: e,
|
|
7890
7886
|
marineModels: t
|
|
@@ -7897,10 +7893,10 @@ const hl = {
|
|
|
7897
7893
|
},
|
|
7898
7894
|
async fetchHistoryData(o) {
|
|
7899
7895
|
this.loading = !0, this.meteoData = [];
|
|
7900
|
-
const { weatherModels: e, marineModels: t } =
|
|
7896
|
+
const { weatherModels: e, marineModels: t } = to.autoPickMeteoModel(o.forecastModel), i = {
|
|
7901
7897
|
lat: o.lat,
|
|
7902
7898
|
lng: o.lng,
|
|
7903
|
-
datetime:
|
|
7899
|
+
datetime: O(o.dateTime).utc().format(),
|
|
7904
7900
|
forecastDays: 3,
|
|
7905
7901
|
pastDays: 1,
|
|
7906
7902
|
weatherModels: e,
|
|
@@ -7913,10 +7909,10 @@ const hl = {
|
|
|
7913
7909
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7914
7910
|
},
|
|
7915
7911
|
initTableData(o) {
|
|
7916
|
-
var t, i, a, r, s, c, n, p, d,
|
|
7912
|
+
var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we;
|
|
7917
7913
|
this.currentHourData = {}, this.positionGmt = (i = (t = o == null ? void 0 : o.weather) == null ? void 0 : t[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = o == null ? void 0 : o.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
7918
|
-
const e = ((s =
|
|
7919
|
-
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((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((
|
|
7914
|
+
const e = ((s = to.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
7915
|
+
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((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.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((b = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : b.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 = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.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 = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (w = e == null ? void 0 : e.wave) == null ? void 0 : w.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (W = e == null ? void 0 : e.wave) == null ? void 0 : W.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.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((ne = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((de = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : de.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((le = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((ye = e == null ? void 0 : e.current) == null ? void 0 : ye.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 = (we = e == null ? void 0 : e.weather) == null ? void 0 : we.url;
|
|
7920
7916
|
},
|
|
7921
7917
|
handleBind() {
|
|
7922
7918
|
var o, e;
|
|
@@ -7926,14 +7922,14 @@ const hl = {
|
|
|
7926
7922
|
var t;
|
|
7927
7923
|
if (o.originalEvent.stopPropagation(), o.originalEvent.target.className === "mapboxgl-canvas") {
|
|
7928
7924
|
const i = o.lngLat;
|
|
7929
|
-
if (this.form.latDegree = Number(
|
|
7925
|
+
if (this.form.latDegree = Number(ie.lat2pretty(i.lat).degree), this.form.latMinute = Number(ie.lat2pretty(i.lat).minute), this.form.latDirection = ie.lat2pretty(i.lat).direction, this.form.lngDegree = Number(ie.lng2pretty(i.lng).degree), this.form.lngMinute = Number(ie.lng2pretty(i.lng).minute), this.form.lngDirection = ie.lng2pretty(i.lng).direction, this.point = {
|
|
7930
7926
|
lat: i.lat,
|
|
7931
7927
|
lng: i.lng
|
|
7932
7928
|
}, this.positionMarker)
|
|
7933
7929
|
(t = this.positionMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
|
|
7934
7930
|
else {
|
|
7935
7931
|
const a = document.createElement("div");
|
|
7936
|
-
a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new
|
|
7932
|
+
a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new _e.Marker(a).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
|
|
7937
7933
|
}
|
|
7938
7934
|
} else
|
|
7939
7935
|
return !1;
|
|
@@ -7950,13 +7946,13 @@ const hl = {
|
|
|
7950
7946
|
(e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]);
|
|
7951
7947
|
else {
|
|
7952
7948
|
const i = document.createElement("div");
|
|
7953
|
-
i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new
|
|
7949
|
+
i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new _e.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
|
|
7954
7950
|
}
|
|
7955
7951
|
if (this.meteoInfoMarker)
|
|
7956
7952
|
(t = this.meteoInfoMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
|
|
7957
7953
|
else {
|
|
7958
7954
|
const i = document.getElementById("idm-gl4-spot-meteo");
|
|
7959
|
-
this.meteoInfoMarker = new
|
|
7955
|
+
this.meteoInfoMarker = new _e.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -200]).addTo(this.map);
|
|
7960
7956
|
}
|
|
7961
7957
|
}
|
|
7962
7958
|
});
|
|
@@ -7986,23 +7982,22 @@ const hl = {
|
|
|
7986
7982
|
"aria-hidden": "true"
|
|
7987
7983
|
}, zl = ["xlink:href"], Ll = { class: "d-flex justify-start align-center" }, Pl = { class: "mx-2" };
|
|
7988
7984
|
function Cl(o, e, t, i, a, r) {
|
|
7989
|
-
const s =
|
|
7990
|
-
return y(),
|
|
7985
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VDivider"), d = k("VTextField"), m = k("VCol"), f = k("VRow"), _ = k("DateTimePicker"), b = k("VBtnToggle"), S = k("VCardActions"), C = k("VForm"), B = k("VCardText"), M = k("VCard"), L = k("VIcon");
|
|
7986
|
+
return y(), T("div", dl, [
|
|
7991
7987
|
l("div", {
|
|
7992
7988
|
class: "menu-bar-box transition pa-1",
|
|
7993
|
-
style:
|
|
7989
|
+
style: oe({ top: t.top + 174 + "px", right: a.right + "px" })
|
|
7994
7990
|
}, [
|
|
7995
|
-
|
|
7991
|
+
h(c, {
|
|
7996
7992
|
text: o.$t("spot.spotsMeteo"),
|
|
7997
7993
|
location: "left"
|
|
7998
7994
|
}, {
|
|
7999
7995
|
activator: g(({ props: v }) => [
|
|
8000
|
-
|
|
7996
|
+
h(s, E(v, {
|
|
8001
7997
|
"min-width": "32",
|
|
8002
7998
|
width: "32",
|
|
8003
7999
|
height: "32",
|
|
8004
|
-
class: "text-none pa-0",
|
|
8005
|
-
color: a.toggle ? "primary" : "",
|
|
8000
|
+
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
8006
8001
|
onClick: r.handleMenuToggle
|
|
8007
8002
|
}), {
|
|
8008
8003
|
default: g(() => e[8] || (e[8] = [
|
|
@@ -8010,23 +8005,23 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8010
8005
|
])),
|
|
8011
8006
|
_: 2,
|
|
8012
8007
|
__: [8]
|
|
8013
|
-
}, 1040, ["
|
|
8008
|
+
}, 1040, ["class", "onClick"])
|
|
8014
8009
|
]),
|
|
8015
8010
|
_: 1
|
|
8016
8011
|
}, 8, ["text"])
|
|
8017
8012
|
], 4),
|
|
8018
|
-
a.showForm ? (y(),
|
|
8013
|
+
a.showForm ? (y(), U(M, {
|
|
8019
8014
|
key: 0,
|
|
8020
8015
|
class: "spot-form-card",
|
|
8021
|
-
style:
|
|
8016
|
+
style: oe({ top: t.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8022
8017
|
}, {
|
|
8023
8018
|
default: g(() => [
|
|
8024
|
-
|
|
8019
|
+
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8025
8020
|
default: g(() => [
|
|
8026
8021
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
8027
8022
|
l("div", { class: "mx-2" }, "Spot Weather")
|
|
8028
8023
|
], -1)),
|
|
8029
|
-
|
|
8024
|
+
h(s, {
|
|
8030
8025
|
icon: "",
|
|
8031
8026
|
density: "comfortable",
|
|
8032
8027
|
variant: "plain",
|
|
@@ -8046,10 +8041,10 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8046
8041
|
_: 1,
|
|
8047
8042
|
__: [10]
|
|
8048
8043
|
}),
|
|
8049
|
-
|
|
8050
|
-
|
|
8044
|
+
h(p),
|
|
8045
|
+
h(B, { class: "text-body-1 py-1" }, {
|
|
8051
8046
|
default: g(() => [
|
|
8052
|
-
|
|
8047
|
+
h(C, {
|
|
8053
8048
|
ref: "spotForm",
|
|
8054
8049
|
autocomplete: "off",
|
|
8055
8050
|
class: "form-box",
|
|
@@ -8057,21 +8052,21 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8057
8052
|
}, {
|
|
8058
8053
|
default: g(() => [
|
|
8059
8054
|
l("div", pl, [
|
|
8060
|
-
(y(),
|
|
8055
|
+
(y(), T("svg", ul, [
|
|
8061
8056
|
l("use", {
|
|
8062
8057
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8063
8058
|
}, null, 8, gl)
|
|
8064
8059
|
])),
|
|
8065
8060
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8066
8061
|
]),
|
|
8067
|
-
|
|
8062
|
+
h(f, { class: "ma-0" }, {
|
|
8068
8063
|
default: g(() => [
|
|
8069
|
-
m
|
|
8064
|
+
h(m, {
|
|
8070
8065
|
cols: "4",
|
|
8071
8066
|
class: "pa-0 d-flex"
|
|
8072
8067
|
}, {
|
|
8073
8068
|
default: g(() => [
|
|
8074
|
-
|
|
8069
|
+
h(d, {
|
|
8075
8070
|
modelValue: a.form.lngDegree,
|
|
8076
8071
|
"onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
|
|
8077
8072
|
rules: a.formRules.lngDegree,
|
|
@@ -8085,12 +8080,12 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8085
8080
|
_: 1,
|
|
8086
8081
|
__: [12]
|
|
8087
8082
|
}),
|
|
8088
|
-
m
|
|
8083
|
+
h(m, {
|
|
8089
8084
|
cols: "6",
|
|
8090
8085
|
class: "pa-0 d-flex"
|
|
8091
8086
|
}, {
|
|
8092
8087
|
default: g(() => [
|
|
8093
|
-
|
|
8088
|
+
h(d, {
|
|
8094
8089
|
modelValue: a.form.lngMinute,
|
|
8095
8090
|
"onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
|
|
8096
8091
|
rules: a.formRules.lngMinute,
|
|
@@ -8105,12 +8100,12 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8105
8100
|
_: 1,
|
|
8106
8101
|
__: [13]
|
|
8107
8102
|
}),
|
|
8108
|
-
m
|
|
8103
|
+
h(m, {
|
|
8109
8104
|
cols: "2",
|
|
8110
8105
|
class: "pa-0"
|
|
8111
8106
|
}, {
|
|
8112
8107
|
default: g(() => [
|
|
8113
|
-
|
|
8108
|
+
h(s, {
|
|
8114
8109
|
variant: "outlined",
|
|
8115
8110
|
density: "compact",
|
|
8116
8111
|
width: "32",
|
|
@@ -8121,7 +8116,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8121
8116
|
onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8122
8117
|
}, {
|
|
8123
8118
|
default: g(() => [
|
|
8124
|
-
|
|
8119
|
+
Z(x(a.form.lngDirection), 1)
|
|
8125
8120
|
]),
|
|
8126
8121
|
_: 1
|
|
8127
8122
|
})
|
|
@@ -8132,21 +8127,21 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8132
8127
|
_: 1
|
|
8133
8128
|
}),
|
|
8134
8129
|
l("div", fl, [
|
|
8135
|
-
(y(),
|
|
8130
|
+
(y(), T("svg", bl, [
|
|
8136
8131
|
l("use", {
|
|
8137
8132
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8138
8133
|
}, null, 8, yl)
|
|
8139
8134
|
])),
|
|
8140
8135
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8141
8136
|
]),
|
|
8142
|
-
|
|
8137
|
+
h(f, { class: "ma-0" }, {
|
|
8143
8138
|
default: g(() => [
|
|
8144
|
-
m
|
|
8139
|
+
h(m, {
|
|
8145
8140
|
cols: "4",
|
|
8146
8141
|
class: "pa-0 d-flex"
|
|
8147
8142
|
}, {
|
|
8148
8143
|
default: g(() => [
|
|
8149
|
-
|
|
8144
|
+
h(d, {
|
|
8150
8145
|
modelValue: a.form.latDegree,
|
|
8151
8146
|
"onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
|
|
8152
8147
|
rules: a.formRules.latDegree,
|
|
@@ -8163,12 +8158,12 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8163
8158
|
_: 1,
|
|
8164
8159
|
__: [15]
|
|
8165
8160
|
}),
|
|
8166
|
-
m
|
|
8161
|
+
h(m, {
|
|
8167
8162
|
cols: "6",
|
|
8168
8163
|
class: "pa-0 d-flex"
|
|
8169
8164
|
}, {
|
|
8170
8165
|
default: g(() => [
|
|
8171
|
-
|
|
8166
|
+
h(d, {
|
|
8172
8167
|
modelValue: a.form.latMinute,
|
|
8173
8168
|
"onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
|
|
8174
8169
|
rules: a.formRules.latMinute,
|
|
@@ -8183,12 +8178,12 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8183
8178
|
_: 1,
|
|
8184
8179
|
__: [16]
|
|
8185
8180
|
}),
|
|
8186
|
-
m
|
|
8181
|
+
h(m, {
|
|
8187
8182
|
cols: "2",
|
|
8188
8183
|
class: "pa-0"
|
|
8189
8184
|
}, {
|
|
8190
8185
|
default: g(() => [
|
|
8191
|
-
|
|
8186
|
+
h(s, {
|
|
8192
8187
|
variant: "outlined",
|
|
8193
8188
|
density: "compact",
|
|
8194
8189
|
width: "32",
|
|
@@ -8199,7 +8194,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8199
8194
|
onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8200
8195
|
}, {
|
|
8201
8196
|
default: g(() => [
|
|
8202
|
-
|
|
8197
|
+
Z(x(a.form.latDirection), 1)
|
|
8203
8198
|
]),
|
|
8204
8199
|
_: 1
|
|
8205
8200
|
})
|
|
@@ -8210,21 +8205,21 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8210
8205
|
_: 1
|
|
8211
8206
|
}),
|
|
8212
8207
|
l("div", wl, [
|
|
8213
|
-
(y(),
|
|
8208
|
+
(y(), T("svg", xl, [
|
|
8214
8209
|
l("use", {
|
|
8215
8210
|
"xlink:href": `#icon-a-DateTime-${t.theme}`
|
|
8216
8211
|
}, null, 8, vl)
|
|
8217
8212
|
])),
|
|
8218
8213
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8219
8214
|
]),
|
|
8220
|
-
|
|
8215
|
+
h(f, { class: "ma-0 mb-4" }, {
|
|
8221
8216
|
default: g(() => [
|
|
8222
|
-
m
|
|
8217
|
+
h(m, {
|
|
8223
8218
|
cols: "12",
|
|
8224
8219
|
class: "pa-0"
|
|
8225
8220
|
}, {
|
|
8226
8221
|
default: g(() => [
|
|
8227
|
-
|
|
8222
|
+
h(_, E({
|
|
8228
8223
|
"date-time": a.form.dateTime,
|
|
8229
8224
|
"time-zone": t.timeZone
|
|
8230
8225
|
}, o.$attrs, {
|
|
@@ -8237,21 +8232,21 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8237
8232
|
_: 1
|
|
8238
8233
|
}),
|
|
8239
8234
|
l("div", _l, [
|
|
8240
|
-
(y(),
|
|
8235
|
+
(y(), T("svg", kl, [
|
|
8241
8236
|
l("use", {
|
|
8242
8237
|
"xlink:href": `#icon-a-ForecastModel-${t.theme}`
|
|
8243
8238
|
}, null, 8, zl)
|
|
8244
8239
|
])),
|
|
8245
8240
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8246
8241
|
]),
|
|
8247
|
-
|
|
8242
|
+
h(f, { class: "ma-0 mb-2" }, {
|
|
8248
8243
|
default: g(() => [
|
|
8249
|
-
m
|
|
8244
|
+
h(m, {
|
|
8250
8245
|
cols: "12",
|
|
8251
8246
|
class: "pa-0"
|
|
8252
8247
|
}, {
|
|
8253
8248
|
default: g(() => [
|
|
8254
|
-
|
|
8249
|
+
h(b, {
|
|
8255
8250
|
modelValue: a.form.forecastModel,
|
|
8256
8251
|
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
8257
8252
|
class: "w-100",
|
|
@@ -8261,30 +8256,30 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8261
8256
|
group: ""
|
|
8262
8257
|
}, {
|
|
8263
8258
|
default: g(() => [
|
|
8264
|
-
|
|
8259
|
+
h(s, {
|
|
8265
8260
|
density: "compact",
|
|
8266
8261
|
height: "30",
|
|
8267
8262
|
value: "GFS",
|
|
8268
|
-
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "
|
|
8263
|
+
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1"]),
|
|
8269
8264
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
8270
8265
|
"base-color": ""
|
|
8271
8266
|
}, {
|
|
8272
8267
|
default: g(() => e[19] || (e[19] = [
|
|
8273
|
-
|
|
8268
|
+
Z("NOAA", -1)
|
|
8274
8269
|
])),
|
|
8275
8270
|
_: 1,
|
|
8276
8271
|
__: [19]
|
|
8277
8272
|
}, 8, ["class", "color"]),
|
|
8278
|
-
|
|
8273
|
+
h(s, {
|
|
8279
8274
|
density: "compact",
|
|
8280
8275
|
height: "30",
|
|
8281
|
-
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "
|
|
8276
|
+
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1"]),
|
|
8282
8277
|
color: a.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
8283
8278
|
"base-color": "",
|
|
8284
8279
|
value: "ECMWF"
|
|
8285
8280
|
}, {
|
|
8286
8281
|
default: g(() => e[20] || (e[20] = [
|
|
8287
|
-
|
|
8282
|
+
Z("ECMWF", -1)
|
|
8288
8283
|
])),
|
|
8289
8284
|
_: 1,
|
|
8290
8285
|
__: [20]
|
|
@@ -8298,22 +8293,22 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8298
8293
|
]),
|
|
8299
8294
|
_: 1
|
|
8300
8295
|
}),
|
|
8301
|
-
|
|
8302
|
-
|
|
8296
|
+
h(p),
|
|
8297
|
+
h(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8303
8298
|
default: g(() => [
|
|
8304
|
-
|
|
8299
|
+
h(s, {
|
|
8305
8300
|
size: "small",
|
|
8306
8301
|
variant: "outlined",
|
|
8307
8302
|
class: "text-none text-body-1",
|
|
8308
8303
|
onClick: r.handleCloseForm
|
|
8309
8304
|
}, {
|
|
8310
8305
|
default: g(() => e[21] || (e[21] = [
|
|
8311
|
-
|
|
8306
|
+
Z("Clear", -1)
|
|
8312
8307
|
])),
|
|
8313
8308
|
_: 1,
|
|
8314
8309
|
__: [21]
|
|
8315
8310
|
}, 8, ["onClick"]),
|
|
8316
|
-
|
|
8311
|
+
h(s, {
|
|
8317
8312
|
loading: a.loading,
|
|
8318
8313
|
size: "small",
|
|
8319
8314
|
variant: "outlined",
|
|
@@ -8322,7 +8317,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8322
8317
|
class: "text-none text-body-1"
|
|
8323
8318
|
}, {
|
|
8324
8319
|
default: g(() => e[22] || (e[22] = [
|
|
8325
|
-
|
|
8320
|
+
Z("Confirm", -1)
|
|
8326
8321
|
])),
|
|
8327
8322
|
_: 1,
|
|
8328
8323
|
__: [22]
|
|
@@ -8339,13 +8334,13 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8339
8334
|
]),
|
|
8340
8335
|
_: 1
|
|
8341
8336
|
}, 8, ["style"])) : N("", !0),
|
|
8342
|
-
|
|
8337
|
+
Jt(h(M, {
|
|
8343
8338
|
id: "idm-gl4-spot-meteo",
|
|
8344
8339
|
class: "spot-meteo",
|
|
8345
8340
|
style: { width: "490px", "z-index": "9" }
|
|
8346
8341
|
}, {
|
|
8347
8342
|
default: g(() => [
|
|
8348
|
-
|
|
8343
|
+
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8349
8344
|
default: g(() => {
|
|
8350
8345
|
var v, z;
|
|
8351
8346
|
return [
|
|
@@ -8353,7 +8348,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8353
8348
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8354
8349
|
l("div", Pl, x(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + x(r.computeLng((z = a.currentHourData) == null ? void 0 : z.lng)), 1)
|
|
8355
8350
|
]),
|
|
8356
|
-
|
|
8351
|
+
h(s, {
|
|
8357
8352
|
icon: "",
|
|
8358
8353
|
density: "comfortable",
|
|
8359
8354
|
variant: "plain",
|
|
@@ -8373,29 +8368,29 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8373
8368
|
}),
|
|
8374
8369
|
_: 1
|
|
8375
8370
|
}),
|
|
8376
|
-
|
|
8377
|
-
|
|
8371
|
+
h(p),
|
|
8372
|
+
h(B, { class: "text-body-1 ml-n8" }, {
|
|
8378
8373
|
default: g(() => [
|
|
8379
|
-
|
|
8374
|
+
h(f, null, {
|
|
8380
8375
|
default: g(() => [
|
|
8381
|
-
m
|
|
8376
|
+
h(m, {
|
|
8382
8377
|
cols: "3",
|
|
8383
8378
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8384
8379
|
}, {
|
|
8385
8380
|
default: g(() => e[25] || (e[25] = [
|
|
8386
|
-
|
|
8381
|
+
Z("Time", -1)
|
|
8387
8382
|
])),
|
|
8388
8383
|
_: 1,
|
|
8389
8384
|
__: [25]
|
|
8390
8385
|
}),
|
|
8391
|
-
m
|
|
8386
|
+
h(m, {
|
|
8392
8387
|
cols: "9",
|
|
8393
8388
|
class: "pa-2 px-0"
|
|
8394
8389
|
}, {
|
|
8395
8390
|
default: g(() => {
|
|
8396
8391
|
var v;
|
|
8397
8392
|
return [
|
|
8398
|
-
|
|
8393
|
+
Z(x(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
8399
8394
|
];
|
|
8400
8395
|
}),
|
|
8401
8396
|
_: 1
|
|
@@ -8403,26 +8398,26 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8403
8398
|
]),
|
|
8404
8399
|
_: 1
|
|
8405
8400
|
}),
|
|
8406
|
-
|
|
8401
|
+
h(f, null, {
|
|
8407
8402
|
default: g(() => [
|
|
8408
|
-
m
|
|
8403
|
+
h(m, {
|
|
8409
8404
|
cols: "3",
|
|
8410
8405
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8411
8406
|
}, {
|
|
8412
8407
|
default: g(() => e[26] || (e[26] = [
|
|
8413
|
-
|
|
8408
|
+
Z("LT", -1)
|
|
8414
8409
|
])),
|
|
8415
8410
|
_: 1,
|
|
8416
8411
|
__: [26]
|
|
8417
8412
|
}),
|
|
8418
|
-
m
|
|
8413
|
+
h(m, {
|
|
8419
8414
|
cols: "9",
|
|
8420
8415
|
class: "pa-2 px-0"
|
|
8421
8416
|
}, {
|
|
8422
8417
|
default: g(() => {
|
|
8423
8418
|
var v;
|
|
8424
8419
|
return [
|
|
8425
|
-
|
|
8420
|
+
Z(x(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
|
|
8426
8421
|
];
|
|
8427
8422
|
}),
|
|
8428
8423
|
_: 1
|
|
@@ -8430,129 +8425,129 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8430
8425
|
]),
|
|
8431
8426
|
_: 1
|
|
8432
8427
|
}),
|
|
8433
|
-
|
|
8428
|
+
h(f, null, {
|
|
8434
8429
|
default: g(() => [
|
|
8435
|
-
m
|
|
8430
|
+
h(m, {
|
|
8436
8431
|
cols: "3",
|
|
8437
8432
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8438
8433
|
}, {
|
|
8439
8434
|
default: g(() => e[27] || (e[27] = [
|
|
8440
|
-
|
|
8435
|
+
Z("Wind", -1)
|
|
8441
8436
|
])),
|
|
8442
8437
|
_: 1,
|
|
8443
8438
|
__: [27]
|
|
8444
8439
|
}),
|
|
8445
|
-
m
|
|
8440
|
+
h(m, {
|
|
8446
8441
|
cols: "4",
|
|
8447
8442
|
class: "pa-2 px-0 text-left"
|
|
8448
8443
|
}, {
|
|
8449
8444
|
default: g(() => [
|
|
8450
|
-
|
|
8445
|
+
Z(x(a.currentHourData.windDir) + " / " + x(a.currentHourData.windSpeed) + "kts / BF" + x(a.currentHourData.windLevel), 1)
|
|
8451
8446
|
]),
|
|
8452
8447
|
_: 1
|
|
8453
8448
|
}),
|
|
8454
|
-
m
|
|
8449
|
+
h(m, {
|
|
8455
8450
|
cols: "2",
|
|
8456
8451
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8457
8452
|
}, {
|
|
8458
8453
|
default: g(() => e[28] || (e[28] = [
|
|
8459
|
-
|
|
8454
|
+
Z("Sig Wave", -1)
|
|
8460
8455
|
])),
|
|
8461
8456
|
_: 1,
|
|
8462
8457
|
__: [28]
|
|
8463
8458
|
}),
|
|
8464
|
-
m
|
|
8459
|
+
h(m, {
|
|
8465
8460
|
cols: "3",
|
|
8466
8461
|
class: "pa-2 px-0 text-left"
|
|
8467
8462
|
}, {
|
|
8468
8463
|
default: g(() => [
|
|
8469
|
-
|
|
8464
|
+
Z(x(a.currentHourData.sigwaveDir) + " / " + x(a.currentHourData.sigwaveHeight) + "m / " + x(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8470
8465
|
]),
|
|
8471
8466
|
_: 1
|
|
8472
8467
|
})
|
|
8473
8468
|
]),
|
|
8474
8469
|
_: 1
|
|
8475
8470
|
}),
|
|
8476
|
-
|
|
8471
|
+
h(f, null, {
|
|
8477
8472
|
default: g(() => [
|
|
8478
|
-
m
|
|
8473
|
+
h(m, {
|
|
8479
8474
|
cols: "3",
|
|
8480
8475
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8481
8476
|
}, {
|
|
8482
8477
|
default: g(() => e[29] || (e[29] = [
|
|
8483
|
-
|
|
8478
|
+
Z("Wind Wave", -1)
|
|
8484
8479
|
])),
|
|
8485
8480
|
_: 1,
|
|
8486
8481
|
__: [29]
|
|
8487
8482
|
}),
|
|
8488
|
-
m
|
|
8483
|
+
h(m, {
|
|
8489
8484
|
cols: "4",
|
|
8490
8485
|
class: "pa-2 px-0 text-left"
|
|
8491
8486
|
}, {
|
|
8492
8487
|
default: g(() => [
|
|
8493
|
-
|
|
8488
|
+
Z(x(a.currentHourData.windwaveDir) + " / " + x(a.currentHourData.windwaveHeight) + "m / " + x(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8494
8489
|
]),
|
|
8495
8490
|
_: 1
|
|
8496
8491
|
}),
|
|
8497
|
-
m
|
|
8492
|
+
h(m, {
|
|
8498
8493
|
cols: "2",
|
|
8499
8494
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8500
8495
|
}, {
|
|
8501
8496
|
default: g(() => e[30] || (e[30] = [
|
|
8502
|
-
|
|
8497
|
+
Z("Swell", -1)
|
|
8503
8498
|
])),
|
|
8504
8499
|
_: 1,
|
|
8505
8500
|
__: [30]
|
|
8506
8501
|
}),
|
|
8507
|
-
m
|
|
8502
|
+
h(m, {
|
|
8508
8503
|
cols: "3",
|
|
8509
8504
|
class: "pa-2 px-0 text-left"
|
|
8510
8505
|
}, {
|
|
8511
8506
|
default: g(() => [
|
|
8512
|
-
|
|
8507
|
+
Z(x(a.currentHourData.swellDir) + " / " + x(a.currentHourData.swellHeight) + "m / " + x(a.currentHourData.swellPeriod) + "s", 1)
|
|
8513
8508
|
]),
|
|
8514
8509
|
_: 1
|
|
8515
8510
|
})
|
|
8516
8511
|
]),
|
|
8517
8512
|
_: 1
|
|
8518
8513
|
}),
|
|
8519
|
-
|
|
8514
|
+
h(f, null, {
|
|
8520
8515
|
default: g(() => [
|
|
8521
|
-
m
|
|
8516
|
+
h(m, {
|
|
8522
8517
|
cols: "3",
|
|
8523
8518
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
8524
8519
|
}, {
|
|
8525
8520
|
default: g(() => e[31] || (e[31] = [
|
|
8526
|
-
|
|
8521
|
+
Z("Current", -1)
|
|
8527
8522
|
])),
|
|
8528
8523
|
_: 1,
|
|
8529
8524
|
__: [31]
|
|
8530
8525
|
}),
|
|
8531
|
-
m
|
|
8526
|
+
h(m, {
|
|
8532
8527
|
cols: "4",
|
|
8533
8528
|
class: "pa-2 px-0 text-left"
|
|
8534
8529
|
}, {
|
|
8535
8530
|
default: g(() => [
|
|
8536
|
-
|
|
8531
|
+
Z(x(a.currentHourData.currentDir) + " / " + x(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8537
8532
|
]),
|
|
8538
8533
|
_: 1
|
|
8539
8534
|
}),
|
|
8540
|
-
m
|
|
8535
|
+
h(m, {
|
|
8541
8536
|
cols: "2",
|
|
8542
8537
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
8543
8538
|
}, {
|
|
8544
8539
|
default: g(() => e[32] || (e[32] = [
|
|
8545
|
-
|
|
8540
|
+
Z("Visibility", -1)
|
|
8546
8541
|
])),
|
|
8547
8542
|
_: 1,
|
|
8548
8543
|
__: [32]
|
|
8549
8544
|
}),
|
|
8550
|
-
m
|
|
8545
|
+
h(m, {
|
|
8551
8546
|
cols: "3",
|
|
8552
8547
|
class: "pa-2 px-0 text-left"
|
|
8553
8548
|
}, {
|
|
8554
8549
|
default: g(() => [
|
|
8555
|
-
|
|
8550
|
+
Z(x(a.currentHourData.visibility) + " nm", 1)
|
|
8556
8551
|
]),
|
|
8557
8552
|
_: 1
|
|
8558
8553
|
})
|
|
@@ -8562,32 +8557,32 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8562
8557
|
]),
|
|
8563
8558
|
_: 1
|
|
8564
8559
|
}),
|
|
8565
|
-
|
|
8566
|
-
|
|
8560
|
+
h(p),
|
|
8561
|
+
h(S, { class: "d-flex justify-space-between align-center" }, {
|
|
8567
8562
|
default: g(() => [
|
|
8568
|
-
|
|
8563
|
+
h(s, {
|
|
8569
8564
|
variant: "text",
|
|
8570
8565
|
"prepend-icon": "mdi-star",
|
|
8571
8566
|
class: "text-none text-body-1",
|
|
8572
8567
|
onClick: r.handleFollow
|
|
8573
8568
|
}, {
|
|
8574
8569
|
prepend: g(() => [
|
|
8575
|
-
|
|
8570
|
+
h(L, { color: "warning" })
|
|
8576
8571
|
]),
|
|
8577
8572
|
default: g(() => [
|
|
8578
|
-
e[33] || (e[33] =
|
|
8573
|
+
e[33] || (e[33] = Z(" Follow", -1))
|
|
8579
8574
|
]),
|
|
8580
8575
|
_: 1,
|
|
8581
8576
|
__: [33]
|
|
8582
8577
|
}, 8, ["onClick"]),
|
|
8583
|
-
|
|
8578
|
+
h(s, {
|
|
8584
8579
|
variant: "text",
|
|
8585
8580
|
"append-icon": "mdi-chevron-right",
|
|
8586
8581
|
class: "text-none text-body-1",
|
|
8587
8582
|
onClick: r.handleMeteoMore
|
|
8588
8583
|
}, {
|
|
8589
8584
|
default: g(() => e[34] || (e[34] = [
|
|
8590
|
-
|
|
8585
|
+
Z("Forecast", -1)
|
|
8591
8586
|
])),
|
|
8592
8587
|
_: 1,
|
|
8593
8588
|
__: [34]
|
|
@@ -8598,11 +8593,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8598
8593
|
]),
|
|
8599
8594
|
_: 1
|
|
8600
8595
|
}, 512), [
|
|
8601
|
-
[
|
|
8596
|
+
[eo, a.showMeteo]
|
|
8602
8597
|
])
|
|
8603
8598
|
]);
|
|
8604
8599
|
}
|
|
8605
|
-
const Sl = /* @__PURE__ */
|
|
8600
|
+
const Sl = /* @__PURE__ */ q(hl, [["render", Cl]]);
|
|
8606
8601
|
const Ml = {
|
|
8607
8602
|
name: "IdmMeasure",
|
|
8608
8603
|
props: {
|
|
@@ -8691,18 +8686,18 @@ const Ml = {
|
|
|
8691
8686
|
}
|
|
8692
8687
|
},
|
|
8693
8688
|
handleDrag(o) {
|
|
8694
|
-
var t, i, a, r, s, c, n, p, d,
|
|
8689
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
8695
8690
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8696
8691
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8697
8692
|
const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
|
|
8698
8693
|
this.pointMarkers[f.id].filter((C) => {
|
|
8699
|
-
var
|
|
8700
|
-
return ((
|
|
8694
|
+
var B;
|
|
8695
|
+
return ((B = C._element) == null ? void 0 : B.id) === e;
|
|
8701
8696
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8702
8697
|
let b;
|
|
8703
|
-
f.features.forEach((C,
|
|
8698
|
+
f.features.forEach((C, B) => {
|
|
8704
8699
|
if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
|
|
8705
|
-
b =
|
|
8700
|
+
b = B;
|
|
8706
8701
|
return;
|
|
8707
8702
|
}
|
|
8708
8703
|
});
|
|
@@ -8710,13 +8705,13 @@ const Ml = {
|
|
|
8710
8705
|
this.handleTmpPointUpdate(
|
|
8711
8706
|
f,
|
|
8712
8707
|
S[b - 1],
|
|
8713
|
-
{ lng: (p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (
|
|
8708
|
+
{ lng: (p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat, properties: S[b].properties },
|
|
8714
8709
|
b === S.length - 1 ? void 0 : S[b + 1]
|
|
8715
8710
|
);
|
|
8716
8711
|
}
|
|
8717
8712
|
},
|
|
8718
8713
|
handleDragEnd(o) {
|
|
8719
|
-
var t, i, a, r, s, c, n, p, d,
|
|
8714
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
8720
8715
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8721
8716
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8722
8717
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
@@ -8725,7 +8720,7 @@ const Ml = {
|
|
|
8725
8720
|
return ((C = S._element) == null ? void 0 : C.id) === e;
|
|
8726
8721
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8727
8722
|
const b = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
8728
|
-
b.geometry.coordinates = [(p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (
|
|
8723
|
+
b.geometry.coordinates = [(p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
8729
8724
|
}
|
|
8730
8725
|
},
|
|
8731
8726
|
handleContextmenu(o) {
|
|
@@ -8736,7 +8731,7 @@ const Ml = {
|
|
|
8736
8731
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
8737
8732
|
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
8738
8733
|
const p = document.createElement("div");
|
|
8739
|
-
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new
|
|
8734
|
+
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new _e.Marker(p).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
|
|
8740
8735
|
}
|
|
8741
8736
|
}
|
|
8742
8737
|
},
|
|
@@ -8772,12 +8767,12 @@ const Ml = {
|
|
|
8772
8767
|
let t = 0;
|
|
8773
8768
|
const i = [];
|
|
8774
8769
|
for (let a = 1; a < e.length; a++) {
|
|
8775
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = Fe.calculateDistance(n, p, c.mode === "RL", 4),
|
|
8776
|
-
t =
|
|
8770
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = Fe.calculateDistance(n, p, c.mode === "RL", 4), m = Fe.calculateBearing(n, p, c.mode === "RL", 2);
|
|
8771
|
+
t = ie.roundPrecision(t + d, 2);
|
|
8777
8772
|
let f;
|
|
8778
|
-
c.mode === "RL" ? f =
|
|
8779
|
-
const
|
|
8780
|
-
|
|
8773
|
+
c.mode === "RL" ? f = ie.convertToMonotonicLng([n, p]) : f = ie.convertToMonotonicLng(Fe.interpolateCoordinates(n, p, 200));
|
|
8774
|
+
const _ = F.lineString(f.map((b) => [b.lng, b.lat]));
|
|
8775
|
+
_.properties.dist = d, _.properties.bearing = m, _.properties.total = t, i.push(_);
|
|
8781
8776
|
}
|
|
8782
8777
|
e.push(...i), o.total = t;
|
|
8783
8778
|
}
|
|
@@ -8789,17 +8784,17 @@ const Ml = {
|
|
|
8789
8784
|
if (e) {
|
|
8790
8785
|
const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
8791
8786
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8792
|
-
let
|
|
8793
|
-
n.mode === "RL" ?
|
|
8794
|
-
const f = F.lineString(
|
|
8787
|
+
let m;
|
|
8788
|
+
n.mode === "RL" ? m = ie.convertToMonotonicLng([p, d]) : m = ie.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
|
|
8789
|
+
const f = F.lineString(m.map((_) => [_.lng, _.lat]));
|
|
8795
8790
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8796
8791
|
}
|
|
8797
8792
|
if (i) {
|
|
8798
8793
|
const n = t.properties, p = t, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8799
8794
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8800
|
-
let
|
|
8801
|
-
n.mode === "RL" ?
|
|
8802
|
-
const f = F.lineString(
|
|
8795
|
+
let m;
|
|
8796
|
+
n.mode === "RL" ? m = ie.convertToMonotonicLng([p, d]) : m = ie.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
|
|
8797
|
+
const f = F.lineString(m.map((_) => [_.lng, _.lat]));
|
|
8803
8798
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8804
8799
|
}
|
|
8805
8800
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -8843,7 +8838,7 @@ const Ml = {
|
|
|
8843
8838
|
if (i)
|
|
8844
8839
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
8845
8840
|
else {
|
|
8846
|
-
const n =
|
|
8841
|
+
const n = ie.roundPrecision((o.total ?? 0) + r, 1);
|
|
8847
8842
|
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>${this.$t("units.nm")}, ${this.$t(
|
|
8848
8843
|
"measure.bearing"
|
|
8849
8844
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
@@ -8854,7 +8849,7 @@ const Ml = {
|
|
|
8854
8849
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8855
8850
|
else {
|
|
8856
8851
|
const n = document.createElement("div");
|
|
8857
|
-
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new
|
|
8852
|
+
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new _e.Marker(n).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
8858
8853
|
}
|
|
8859
8854
|
},
|
|
8860
8855
|
handleMove(o) {
|
|
@@ -8912,42 +8907,41 @@ const Ml = {
|
|
|
8912
8907
|
for (const s of r) {
|
|
8913
8908
|
const c = document.createElement("div");
|
|
8914
8909
|
c.id = `${o.id}-${s.properties.id}`, c.className = `${o.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, c.innerHTML = '<div class="marker-circle"></div>';
|
|
8915
|
-
const n = new
|
|
8910
|
+
const n = new _e.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
8916
8911
|
n.on("drag", this.handleDrag), n.on("dragend", this.handleDragEnd), this.pointMarkers[o.id] ? this.pointMarkers[o.id].push(n) : this.pointMarkers[o.id] = [n];
|
|
8917
8912
|
}
|
|
8918
8913
|
if (o.closed) {
|
|
8919
8914
|
const s = r.at(-1), n = o.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
8920
|
-
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${this.$t("measure.total")}: ${n.properties.total}${this.$t("units.nm")}</div>`, this.closeMarkers[o.id] = new
|
|
8915
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${this.$t("measure.total")}: ${n.properties.total}${this.$t("units.nm")}</div>`, this.closeMarkers[o.id] = new _e.Marker(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
8921
8916
|
}
|
|
8922
8917
|
}
|
|
8923
8918
|
},
|
|
8924
8919
|
handleClear(o, e = !0) {
|
|
8925
|
-
var r, s, c, n, p, d,
|
|
8920
|
+
var r, s, c, n, p, d, m, f, _;
|
|
8926
8921
|
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8927
8922
|
(r = this.map) != null && r.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (n = this.map) != null && n.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[o.id]) == null || p.remove(), this.closeMarkers[o.id] = void 0, (d = this.pointMarkers[o.id]) == null || d.forEach((b) => {
|
|
8928
8923
|
b == null || b.remove();
|
|
8929
|
-
}), this.pointMarkers[o.id] = [], (
|
|
8924
|
+
}), this.pointMarkers[o.id] = [], (m = this.tipMarker) == null || m.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((_ = this.map) != null && _.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8930
8925
|
}
|
|
8931
8926
|
}
|
|
8932
8927
|
}, Tl = { class: "idm-gl4-measure" };
|
|
8933
8928
|
function Rl(o, e, t, i, a, r) {
|
|
8934
|
-
const s =
|
|
8935
|
-
return y(),
|
|
8929
|
+
const s = k("VBtn"), c = k("VTooltip");
|
|
8930
|
+
return y(), T("div", Tl, [
|
|
8936
8931
|
l("div", {
|
|
8937
8932
|
class: "menu-bar-box transition pa-1",
|
|
8938
|
-
style:
|
|
8933
|
+
style: oe({ top: t.top + 214 + "px", right: a.right + "px" })
|
|
8939
8934
|
}, [
|
|
8940
|
-
|
|
8935
|
+
h(c, {
|
|
8941
8936
|
text: o.$t("measure.measure"),
|
|
8942
8937
|
location: "left"
|
|
8943
8938
|
}, {
|
|
8944
8939
|
activator: g(({ props: n }) => [
|
|
8945
|
-
|
|
8940
|
+
h(s, E(n, {
|
|
8946
8941
|
"min-width": "32",
|
|
8947
8942
|
width: "32",
|
|
8948
8943
|
height: "32",
|
|
8949
|
-
class: "text-none pa-0",
|
|
8950
|
-
color: a.toggle ? "primary" : "",
|
|
8944
|
+
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
8951
8945
|
onClick: r.handleMenuToggle
|
|
8952
8946
|
}), {
|
|
8953
8947
|
default: g(() => e[0] || (e[0] = [
|
|
@@ -8955,17 +8949,17 @@ function Rl(o, e, t, i, a, r) {
|
|
|
8955
8949
|
])),
|
|
8956
8950
|
_: 2,
|
|
8957
8951
|
__: [0]
|
|
8958
|
-
}, 1040, ["
|
|
8952
|
+
}, 1040, ["class", "onClick"])
|
|
8959
8953
|
]),
|
|
8960
8954
|
_: 1
|
|
8961
8955
|
}, 8, ["text"])
|
|
8962
8956
|
], 4)
|
|
8963
8957
|
]);
|
|
8964
8958
|
}
|
|
8965
|
-
const Il = /* @__PURE__ */
|
|
8959
|
+
const Il = /* @__PURE__ */ q(Ml, [["render", Rl]]);
|
|
8966
8960
|
const Al = {
|
|
8967
8961
|
name: "IdmBottomBar",
|
|
8968
|
-
components: { DateTimePicker:
|
|
8962
|
+
components: { DateTimePicker: ao },
|
|
8969
8963
|
props: {
|
|
8970
8964
|
menuToggle: {
|
|
8971
8965
|
type: Object,
|
|
@@ -8996,9 +8990,9 @@ const Al = {
|
|
|
8996
8990
|
//hour
|
|
8997
8991
|
intervalOptions: [3, 6, 12, 24],
|
|
8998
8992
|
showTimezone: !1,
|
|
8999
|
-
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) :
|
|
8993
|
+
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : O().utcOffset() / 60,
|
|
9000
8994
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
9001
|
-
source: localStorage.getItem("forecastModelCacheGL4")
|
|
8995
|
+
source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4")
|
|
9002
8996
|
};
|
|
9003
8997
|
},
|
|
9004
8998
|
watch: {
|
|
@@ -9013,7 +9007,7 @@ const Al = {
|
|
|
9013
9007
|
},
|
|
9014
9008
|
source: {
|
|
9015
9009
|
handler(o, e) {
|
|
9016
|
-
o !== e && (this.$emit("forecastModel", o), localStorage.setItem("forecastModelCacheGL4", o));
|
|
9010
|
+
o && o !== e && (this.$emit("forecastModel", o), localStorage.setItem("forecastModelCacheGL4", o));
|
|
9017
9011
|
},
|
|
9018
9012
|
immediate: !0
|
|
9019
9013
|
},
|
|
@@ -9028,7 +9022,7 @@ const Al = {
|
|
|
9028
9022
|
},
|
|
9029
9023
|
currentTimestamp: {
|
|
9030
9024
|
handler() {
|
|
9031
|
-
this.currentDateTimeZ =
|
|
9025
|
+
this.currentDateTimeZ = O(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${O.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
9032
9026
|
},
|
|
9033
9027
|
immediate: !0
|
|
9034
9028
|
},
|
|
@@ -9079,39 +9073,39 @@ const Al = {
|
|
|
9079
9073
|
}, Dl = { class: "idm-bottom-bar-gl4" }, Ol = { class: "date-box d-flex ga-2 mr-2" }, Bl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, El = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, jl = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Fl = {
|
|
9080
9074
|
key: 0,
|
|
9081
9075
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9082
|
-
}, Nl = ["onClick"], Hl = { class: "btn-box d-flex justify-
|
|
9076
|
+
}, Nl = ["onClick"], Hl = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Wl = { class: "text-body-2" };
|
|
9083
9077
|
function Gl(o, e, t, i, a, r) {
|
|
9084
|
-
const s =
|
|
9085
|
-
return y(),
|
|
9086
|
-
a.show ? (y(),
|
|
9078
|
+
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), p = k("VList"), d = k("VMenu"), m = k("VBtn"), f = k("VDivider"), _ = k("VTooltip");
|
|
9079
|
+
return y(), T("div", Dl, [
|
|
9080
|
+
a.show ? (y(), T("div", {
|
|
9087
9081
|
key: 0,
|
|
9088
9082
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9089
|
-
style:
|
|
9083
|
+
style: oe({ right: a.right + 146 + "px" })
|
|
9090
9084
|
}, [
|
|
9091
9085
|
l("div", Ol, [
|
|
9092
|
-
|
|
9086
|
+
h(s, E({
|
|
9093
9087
|
"date-time": a.currentDateTimeZ,
|
|
9094
9088
|
"time-zone": a.timeZone,
|
|
9095
9089
|
"day-about": a.dayAbout,
|
|
9096
|
-
|
|
9090
|
+
"interval-hour": a.intervalHour
|
|
9097
9091
|
}, o.$attrs, {
|
|
9098
9092
|
onCurrentTimestamp: e[0] || (e[0] = (b) => a.currentTimestamp = b),
|
|
9099
9093
|
onCurrentRealTime: e[1] || (e[1] = (b) => a.currentRealTime = b),
|
|
9100
9094
|
onTimestampRange: e[2] || (e[2] = (b) => a.timestampRange = b)
|
|
9101
|
-
}), null, 16, ["date-time", "time-zone", "day-about", "
|
|
9102
|
-
m
|
|
9095
|
+
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
9096
|
+
h(m, {
|
|
9103
9097
|
text: "",
|
|
9104
9098
|
height: "30",
|
|
9105
|
-
class: "text-none elevation-0
|
|
9099
|
+
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
9106
9100
|
"min-width": "30"
|
|
9107
9101
|
}, {
|
|
9108
9102
|
default: g(() => [
|
|
9109
|
-
|
|
9110
|
-
|
|
9103
|
+
Z(x(a.intervalHour) + " h ", 1),
|
|
9104
|
+
h(d, { activator: "parent" }, {
|
|
9111
9105
|
default: g(() => [
|
|
9112
|
-
|
|
9106
|
+
h(p, { class: "pa-1" }, {
|
|
9113
9107
|
default: g(() => [
|
|
9114
|
-
(y(!0),
|
|
9108
|
+
(y(!0), T(ve, null, ze(a.intervalOptions, (b, S) => (y(), U(n, {
|
|
9115
9109
|
key: S,
|
|
9116
9110
|
value: b,
|
|
9117
9111
|
variant: a.intervalHour === b ? "tonal" : "text",
|
|
@@ -9124,11 +9118,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9124
9118
|
class: "pa-0 text-center text-body-1"
|
|
9125
9119
|
}, {
|
|
9126
9120
|
default: g(() => [
|
|
9127
|
-
|
|
9121
|
+
h(c, {
|
|
9128
9122
|
onClick: (C) => a.intervalHour = b
|
|
9129
9123
|
}, {
|
|
9130
9124
|
default: g(() => [
|
|
9131
|
-
|
|
9125
|
+
Z(x(b) + "h", 1)
|
|
9132
9126
|
]),
|
|
9133
9127
|
_: 2
|
|
9134
9128
|
}, 1032, ["onClick"])
|
|
@@ -9145,13 +9139,13 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9145
9139
|
_: 1
|
|
9146
9140
|
})
|
|
9147
9141
|
]),
|
|
9148
|
-
|
|
9142
|
+
h(f, {
|
|
9149
9143
|
vertical: "",
|
|
9150
9144
|
class: "mx-2 my-3",
|
|
9151
9145
|
style: { height: "16px" }
|
|
9152
9146
|
}),
|
|
9153
9147
|
l("div", Bl, [
|
|
9154
|
-
m
|
|
9148
|
+
h(m, {
|
|
9155
9149
|
icon: "",
|
|
9156
9150
|
size: "small",
|
|
9157
9151
|
density: "comfortable",
|
|
@@ -9164,7 +9158,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9164
9158
|
_: 1,
|
|
9165
9159
|
__: [10]
|
|
9166
9160
|
}, 8, ["onClick"]),
|
|
9167
|
-
m
|
|
9161
|
+
h(m, {
|
|
9168
9162
|
icon: "",
|
|
9169
9163
|
size: "small",
|
|
9170
9164
|
density: "comfortable",
|
|
@@ -9177,7 +9171,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9177
9171
|
_: 1,
|
|
9178
9172
|
__: [11]
|
|
9179
9173
|
}, 8, ["onClick"]),
|
|
9180
|
-
a.paused ? (y(),
|
|
9174
|
+
a.paused ? (y(), U(m, {
|
|
9181
9175
|
key: 0,
|
|
9182
9176
|
icon: "",
|
|
9183
9177
|
size: "small",
|
|
@@ -9190,7 +9184,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9190
9184
|
])),
|
|
9191
9185
|
_: 1,
|
|
9192
9186
|
__: [12]
|
|
9193
|
-
}, 8, ["onClick"])) : (y(),
|
|
9187
|
+
}, 8, ["onClick"])) : (y(), U(m, {
|
|
9194
9188
|
key: 1,
|
|
9195
9189
|
icon: "",
|
|
9196
9190
|
size: "small",
|
|
@@ -9204,7 +9198,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9204
9198
|
_: 1,
|
|
9205
9199
|
__: [13]
|
|
9206
9200
|
}, 8, ["onClick"])),
|
|
9207
|
-
m
|
|
9201
|
+
h(m, {
|
|
9208
9202
|
icon: "",
|
|
9209
9203
|
size: "small",
|
|
9210
9204
|
density: "comfortable",
|
|
@@ -9218,27 +9212,27 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9218
9212
|
__: [14]
|
|
9219
9213
|
}, 8, ["onClick"])
|
|
9220
9214
|
]),
|
|
9221
|
-
|
|
9215
|
+
h(f, {
|
|
9222
9216
|
vertical: "",
|
|
9223
9217
|
class: "mx-2 my-3",
|
|
9224
9218
|
style: { height: "16px" }
|
|
9225
9219
|
}),
|
|
9226
9220
|
l("div", El, [
|
|
9227
|
-
|
|
9221
|
+
h(_, {
|
|
9228
9222
|
text: o.$t("weather.windBarbs"),
|
|
9229
9223
|
location: "top"
|
|
9230
9224
|
}, {
|
|
9231
9225
|
activator: g(({ props: b }) => {
|
|
9232
9226
|
var S, C;
|
|
9233
9227
|
return [
|
|
9234
|
-
m
|
|
9228
|
+
h(m, E(b, {
|
|
9235
9229
|
class: "pa-1 d-flex",
|
|
9236
9230
|
color: (S = t.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
|
|
9237
9231
|
variant: (C = t.weatherCheckList) != null && C.includes("wind") ? "elevated" : "text",
|
|
9238
9232
|
height: "24",
|
|
9239
9233
|
width: "24",
|
|
9240
9234
|
"min-width": "24",
|
|
9241
|
-
onClick: e[3] || (e[3] = (
|
|
9235
|
+
onClick: e[3] || (e[3] = (B) => r.handleClickFastWeather("wind"))
|
|
9242
9236
|
}), {
|
|
9243
9237
|
default: g(() => e[15] || (e[15] = [
|
|
9244
9238
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -9250,24 +9244,24 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9250
9244
|
}),
|
|
9251
9245
|
_: 1
|
|
9252
9246
|
}, 8, ["text"]),
|
|
9253
|
-
|
|
9247
|
+
h(_, {
|
|
9254
9248
|
text: o.$t("weather.sigWaveHeight"),
|
|
9255
9249
|
location: "top"
|
|
9256
9250
|
}, {
|
|
9257
9251
|
activator: g(({ props: b }) => {
|
|
9258
9252
|
var S, C;
|
|
9259
9253
|
return [
|
|
9260
|
-
m
|
|
9254
|
+
h(m, E(b, {
|
|
9261
9255
|
class: "pa-1 d-flex",
|
|
9262
9256
|
color: (S = t.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
|
|
9263
9257
|
variant: (C = t.weatherCheckList) != null && C.includes("sig-wave-height") ? "elevated" : "text",
|
|
9264
9258
|
height: "24",
|
|
9265
9259
|
width: "24",
|
|
9266
9260
|
"min-width": "24",
|
|
9267
|
-
onClick: e[4] || (e[4] = (
|
|
9261
|
+
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
9268
9262
|
}), {
|
|
9269
9263
|
default: g(() => [
|
|
9270
|
-
l("i",
|
|
9264
|
+
l("i", E(b, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9271
9265
|
]),
|
|
9272
9266
|
_: 2
|
|
9273
9267
|
}, 1040, ["color", "variant"])
|
|
@@ -9275,24 +9269,24 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9275
9269
|
}),
|
|
9276
9270
|
_: 1
|
|
9277
9271
|
}, 8, ["text"]),
|
|
9278
|
-
|
|
9272
|
+
h(_, {
|
|
9279
9273
|
text: o.$t("weather.currentDirection"),
|
|
9280
9274
|
location: "top"
|
|
9281
9275
|
}, {
|
|
9282
9276
|
activator: g(({ props: b }) => {
|
|
9283
9277
|
var S, C;
|
|
9284
9278
|
return [
|
|
9285
|
-
m
|
|
9279
|
+
h(m, E(b, {
|
|
9286
9280
|
class: "pa-1 d-flex",
|
|
9287
9281
|
color: (S = t.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
|
|
9288
9282
|
variant: (C = t.weatherCheckList) != null && C.includes("current-direction") ? "elevated" : "text",
|
|
9289
9283
|
height: "24",
|
|
9290
9284
|
width: "24",
|
|
9291
9285
|
"min-width": "24",
|
|
9292
|
-
onClick: e[5] || (e[5] = (
|
|
9286
|
+
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
|
|
9293
9287
|
}), {
|
|
9294
9288
|
default: g(() => [
|
|
9295
|
-
l("i",
|
|
9289
|
+
l("i", E(b, { class: "iconfont icon-Current" }), null, 16)
|
|
9296
9290
|
]),
|
|
9297
9291
|
_: 2
|
|
9298
9292
|
}, 1040, ["color", "variant"])
|
|
@@ -9300,12 +9294,12 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9300
9294
|
}),
|
|
9301
9295
|
_: 1
|
|
9302
9296
|
}, 8, ["text"]),
|
|
9303
|
-
|
|
9297
|
+
h(_, {
|
|
9304
9298
|
text: o.$t("weather.weatherLayers"),
|
|
9305
9299
|
location: "top"
|
|
9306
9300
|
}, {
|
|
9307
9301
|
activator: g(({ props: b }) => [
|
|
9308
|
-
m
|
|
9302
|
+
h(m, E(b, {
|
|
9309
9303
|
class: "pa-1 d-flex",
|
|
9310
9304
|
variant: "text",
|
|
9311
9305
|
height: "24",
|
|
@@ -9314,7 +9308,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9314
9308
|
onClick: r.handleClickFastMore
|
|
9315
9309
|
}), {
|
|
9316
9310
|
default: g(() => [
|
|
9317
|
-
l("i",
|
|
9311
|
+
l("i", E(b, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9318
9312
|
]),
|
|
9319
9313
|
_: 2
|
|
9320
9314
|
}, 1040, ["onClick"])
|
|
@@ -9322,39 +9316,39 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9322
9316
|
_: 1
|
|
9323
9317
|
}, 8, ["text"])
|
|
9324
9318
|
]),
|
|
9325
|
-
|
|
9319
|
+
h(f, {
|
|
9326
9320
|
vertical: "",
|
|
9327
9321
|
class: "mx-2 mr-3 my-3",
|
|
9328
9322
|
style: { height: "16px" }
|
|
9329
9323
|
}),
|
|
9330
9324
|
l("div", jl, [
|
|
9331
|
-
m
|
|
9325
|
+
h(m, {
|
|
9332
9326
|
text: "",
|
|
9333
9327
|
height: "30",
|
|
9334
|
-
class: "px-2 elevation-0 text-body-1",
|
|
9328
|
+
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
9335
9329
|
color: a.source === "GFS" ? "primary" : "",
|
|
9336
9330
|
onClick: e[6] || (e[6] = (b) => a.source = "GFS")
|
|
9337
9331
|
}, {
|
|
9338
9332
|
default: g(() => e[16] || (e[16] = [
|
|
9339
|
-
|
|
9333
|
+
Z("NOAA", -1)
|
|
9340
9334
|
])),
|
|
9341
9335
|
_: 1,
|
|
9342
9336
|
__: [16]
|
|
9343
9337
|
}, 8, ["color"]),
|
|
9344
|
-
m
|
|
9338
|
+
h(m, {
|
|
9345
9339
|
text: "",
|
|
9346
9340
|
height: "30",
|
|
9347
|
-
class: "px-2 elevation-0 text-body-1",
|
|
9341
|
+
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
9348
9342
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9349
9343
|
onClick: e[7] || (e[7] = (b) => a.source = "ECMWF")
|
|
9350
9344
|
}, {
|
|
9351
9345
|
default: g(() => e[17] || (e[17] = [
|
|
9352
|
-
|
|
9346
|
+
Z("ECMWF", -1)
|
|
9353
9347
|
])),
|
|
9354
9348
|
_: 1,
|
|
9355
9349
|
__: [17]
|
|
9356
9350
|
}, 8, ["color"]),
|
|
9357
|
-
m
|
|
9351
|
+
h(m, {
|
|
9358
9352
|
icon: "",
|
|
9359
9353
|
size: "x-small",
|
|
9360
9354
|
density: "comfortable",
|
|
@@ -9374,26 +9368,26 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9374
9368
|
], 4)) : N("", !0),
|
|
9375
9369
|
l("div", {
|
|
9376
9370
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9377
|
-
style:
|
|
9371
|
+
style: oe({ right: a.right + "px" })
|
|
9378
9372
|
}, [
|
|
9379
|
-
a.showTimezone ? (y(),
|
|
9380
|
-
(y(!0),
|
|
9373
|
+
a.showTimezone ? (y(), T("div", Fl, [
|
|
9374
|
+
(y(!0), T(ve, null, ze(a.offsets, (b) => (y(), T("div", {
|
|
9381
9375
|
key: b,
|
|
9382
9376
|
class: "item rounded text-body-2",
|
|
9383
9377
|
onClick: (S) => a.timeZone = b
|
|
9384
9378
|
}, x(b < 0 ? b : "+" + b), 9, Nl))), 128))
|
|
9385
9379
|
])) : N("", !0),
|
|
9386
9380
|
l("div", Hl, [
|
|
9387
|
-
m
|
|
9381
|
+
h(m, {
|
|
9388
9382
|
text: "",
|
|
9389
|
-
|
|
9383
|
+
variant: "flat",
|
|
9390
9384
|
height: "24",
|
|
9391
9385
|
class: "pa-1",
|
|
9392
9386
|
color: "primary",
|
|
9393
9387
|
onClick: e[9] || (e[9] = (b) => a.showTimezone = !a.showTimezone)
|
|
9394
9388
|
}, {
|
|
9395
9389
|
default: g(() => [
|
|
9396
|
-
|
|
9390
|
+
Z(" UTC " + x(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9397
9391
|
]),
|
|
9398
9392
|
_: 1
|
|
9399
9393
|
}),
|
|
@@ -9402,7 +9396,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9402
9396
|
], 4)
|
|
9403
9397
|
]);
|
|
9404
9398
|
}
|
|
9405
|
-
const Ul = /* @__PURE__ */
|
|
9399
|
+
const Ul = /* @__PURE__ */ q(Al, [["render", Gl]]), Vl = {
|
|
9406
9400
|
name: "IdmGL4",
|
|
9407
9401
|
components: {
|
|
9408
9402
|
IdmOtherLayer: ai,
|
|
@@ -9447,9 +9441,9 @@ const Ul = /* @__PURE__ */ X(Al, [["render", Gl]]), Vl = {
|
|
|
9447
9441
|
class: "map-gl4-home"
|
|
9448
9442
|
};
|
|
9449
9443
|
function Zl(o, e, t, i, a, r) {
|
|
9450
|
-
const s =
|
|
9451
|
-
return y(),
|
|
9452
|
-
|
|
9444
|
+
const s = k("IdmOtherLayer"), c = k("IdmWeatherLayer"), n = k("IdmTropicals"), p = k("IdmMeasure"), d = k("IdmSpot"), m = k("IdmBottomBar");
|
|
9445
|
+
return y(), T("div", Yl, [
|
|
9446
|
+
h(s, E({
|
|
9453
9447
|
ref: "idmOtherLayers",
|
|
9454
9448
|
token: t.token,
|
|
9455
9449
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9460,7 +9454,7 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9460
9454
|
assistGateway: a.assistGateway,
|
|
9461
9455
|
forecastModel: t.forecastModel
|
|
9462
9456
|
}, o.$attrs), null, 16, ["token", "defaultMeteoToken", "map", "realTime", "gateway", "assistGateway", "forecastModel"]),
|
|
9463
|
-
|
|
9457
|
+
h(c, E({
|
|
9464
9458
|
ref: "idmWeatherLayers",
|
|
9465
9459
|
map: t.map,
|
|
9466
9460
|
"before-layer": "empty-layer-2",
|
|
@@ -9472,7 +9466,7 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9472
9466
|
"forecast-model": t.forecastModel,
|
|
9473
9467
|
onWeatherCheckList: e[0] || (e[0] = (f) => a.weatherCheckList = f)
|
|
9474
9468
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "defaultMeteoToken", "gateway", "assistGateway", "forecast-model"]),
|
|
9475
|
-
|
|
9469
|
+
h(n, E({
|
|
9476
9470
|
map: t.map,
|
|
9477
9471
|
token: t.token,
|
|
9478
9472
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9483,8 +9477,8 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9483
9477
|
assistGateway: a.assistGateway,
|
|
9484
9478
|
"forecast-model": t.forecastModel
|
|
9485
9479
|
}, o.$attrs), null, 16, ["map", "token", "defaultMeteoToken", "tropicals", "realTime", "gateway", "assistGateway", "forecast-model"]),
|
|
9486
|
-
|
|
9487
|
-
|
|
9480
|
+
h(p, E({ map: t.map }, o.$attrs), null, 16, ["map"]),
|
|
9481
|
+
h(d, E({
|
|
9488
9482
|
ref: "idmSpot",
|
|
9489
9483
|
map: t.map,
|
|
9490
9484
|
realTime: a.realTime,
|
|
@@ -9492,7 +9486,7 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9492
9486
|
gateway: a.gateway,
|
|
9493
9487
|
"forecast-model": t.forecastModel
|
|
9494
9488
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "gateway", "forecast-model"]),
|
|
9495
|
-
m
|
|
9489
|
+
h(m, E({
|
|
9496
9490
|
ref: "idmBottomBar",
|
|
9497
9491
|
"forecast-model": t.forecastModel,
|
|
9498
9492
|
weatherCheckList: a.weatherCheckList,
|
|
@@ -9500,16 +9494,16 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9500
9494
|
}, o.$attrs), null, 16, ["forecast-model", "weatherCheckList"])
|
|
9501
9495
|
], 512);
|
|
9502
9496
|
}
|
|
9503
|
-
const Xl = /* @__PURE__ */
|
|
9497
|
+
const Xl = /* @__PURE__ */ q(Vl, [["render", Zl]]);
|
|
9504
9498
|
class ql {
|
|
9505
9499
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
var t, i, a, r, s, c, n, p, d,
|
|
9500
|
+
re(this, "originStyle");
|
|
9501
|
+
re(this, "mapboxStyle");
|
|
9502
|
+
re(this, "i4");
|
|
9503
|
+
re(this, "hi");
|
|
9504
|
+
re(this, "td");
|
|
9505
|
+
re(this, "windy");
|
|
9506
|
+
var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie, j, te, Le, Ee, Pe, he, pe, H, xe, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ke, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io;
|
|
9513
9507
|
this.i4 = {
|
|
9514
9508
|
source: {
|
|
9515
9509
|
type: "raster",
|
|
@@ -71390,24 +71384,24 @@ class ql {
|
|
|
71390
71384
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((u) => u.id === "water"),
|
|
71391
71385
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((u) => u.id === "empty-layer-1"),
|
|
71392
71386
|
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((u) => u.id === "country-boundaries"),
|
|
71393
|
-
(
|
|
71394
|
-
(
|
|
71387
|
+
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((u) => u.id === "water-outline"),
|
|
71388
|
+
(_ = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : _.find((u) => u.id === "water-outline2"),
|
|
71395
71389
|
(S = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : S.find((u) => u.id === "empty-layer-2"),
|
|
71396
|
-
(
|
|
71397
|
-
(L = (
|
|
71390
|
+
(B = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : B.find((u) => u.id === "empty-layer-3"),
|
|
71391
|
+
(L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((u) => u.id === "empty-layer-4"),
|
|
71398
71392
|
(z = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : z.find((u) => u.id === "water-line-label"),
|
|
71399
71393
|
(w = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : w.find((u) => u.id === "water-point-label"),
|
|
71400
|
-
(
|
|
71401
|
-
(
|
|
71402
|
-
($ = (
|
|
71403
|
-
(
|
|
71404
|
-
(ce = (
|
|
71405
|
-
(me = (
|
|
71406
|
-
(
|
|
71407
|
-
(
|
|
71408
|
-
(ye = (
|
|
71409
|
-
(
|
|
71410
|
-
(
|
|
71394
|
+
(W = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : W.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71395
|
+
(V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((u) => u.id === "ne-10m-outline"),
|
|
71396
|
+
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
|
|
71397
|
+
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((u) => u.id === "china-route-line"),
|
|
71398
|
+
(ce = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : ce.find((u) => u.id === "china-route-fill"),
|
|
71399
|
+
(me = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : me.find((u) => u.id === "china-route-label"),
|
|
71400
|
+
(I = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : I.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71401
|
+
(ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((u) => u.id === "admin-0-boundary"),
|
|
71402
|
+
(ye = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ye.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71403
|
+
(Se = (we = this.originStyle) == null ? void 0 : we.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
|
|
71404
|
+
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((u) => u.id === "continent-label")
|
|
71411
71405
|
// this.originStyle?.light.layers?.find((l: { id: string }) => l.id === 'state-label'),
|
|
71412
71406
|
]
|
|
71413
71407
|
},
|
|
@@ -71538,19 +71532,19 @@ class ql {
|
|
|
71538
71532
|
protected: !1,
|
|
71539
71533
|
draft: !1,
|
|
71540
71534
|
layers: [
|
|
71541
|
-
(
|
|
71542
|
-
(
|
|
71543
|
-
(Ee = (
|
|
71544
|
-
(
|
|
71545
|
-
(
|
|
71546
|
-
(
|
|
71547
|
-
(Ae = (
|
|
71548
|
-
(
|
|
71549
|
-
(De = (
|
|
71535
|
+
(Ie = (Re = this.originStyle) == null ? void 0 : Re.dark.layers) == null ? void 0 : Ie.find((u) => u.id === "land"),
|
|
71536
|
+
(te = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : te.find((u) => u.id === "water"),
|
|
71537
|
+
(Ee = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-1"),
|
|
71538
|
+
(he = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : he.find((u) => u.id === "country-boundaries"),
|
|
71539
|
+
(H = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : H.find((u) => u.id === "water-outline"),
|
|
71540
|
+
(J = (xe = this.originStyle) == null ? void 0 : xe.dark.layers) == null ? void 0 : J.find((u) => u.id === "empty-layer-2"),
|
|
71541
|
+
(Ae = (ae = this.originStyle) == null ? void 0 : ae.dark.layers) == null ? void 0 : Ae.find((u) => u.id === "empty-layer-3"),
|
|
71542
|
+
(ue = (D = this.originStyle) == null ? void 0 : D.dark.layers) == null ? void 0 : ue.find((u) => u.id === "empty-layer-4"),
|
|
71543
|
+
(De = (Ce = this.originStyle) == null ? void 0 : Ce.dark.layers) == null ? void 0 : De.find((u) => u.id === "water-line-label"),
|
|
71550
71544
|
(A = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : A.find((u) => u.id === "water-point-label"),
|
|
71551
|
-
(He = (
|
|
71545
|
+
(He = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : He.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71552
71546
|
(Ge = (We = this.originStyle) == null ? void 0 : We.dark.layers) == null ? void 0 : Ge.find((u) => u.id === "ne-10m-outline"),
|
|
71553
|
-
(Ue = (
|
|
71547
|
+
(Ue = (ke = this.originStyle) == null ? void 0 : ke.dark.layers) == null ? void 0 : Ue.find((u) => u.id === "ne-10m-label"),
|
|
71554
71548
|
(Ye = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : Ye.find((u) => u.id === "china-route-line"),
|
|
71555
71549
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((u) => u.id === "china-route-fill"),
|
|
71556
71550
|
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((u) => u.id === "china-route-label"),
|
|
@@ -71741,10 +71735,10 @@ class ql {
|
|
|
71741
71735
|
(Ut = (Gt = this.originStyle) == null ? void 0 : Gt.nautical.layers) == null ? void 0 : Ut.find((u) => u.id === "empty-layer-1"),
|
|
71742
71736
|
(Yt = (Vt = this.originStyle) == null ? void 0 : Vt.nautical.layers) == null ? void 0 : Yt.find((u) => u.id === "country-boundaries"),
|
|
71743
71737
|
(Xt = (Zt = this.originStyle) == null ? void 0 : Zt.nautical.layers) == null ? void 0 : Xt.find((u) => u.id === "water-outline"),
|
|
71744
|
-
(
|
|
71745
|
-
(
|
|
71746
|
-
(
|
|
71747
|
-
(ho = (
|
|
71738
|
+
(ro = (io = this.originStyle) == null ? void 0 : io.nautical.layers) == null ? void 0 : ro.find((u) => u.id === "empty-layer-2"),
|
|
71739
|
+
(so = (lo = this.originStyle) == null ? void 0 : lo.nautical.layers) == null ? void 0 : so.find((u) => u.id === "empty-layer-3"),
|
|
71740
|
+
(co = (no = this.originStyle) == null ? void 0 : no.nautical.layers) == null ? void 0 : co.find((u) => u.id === "empty-layer-4"),
|
|
71741
|
+
(ho = (mo = this.originStyle) == null ? void 0 : mo.nautical.layers) == null ? void 0 : ho.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71748
71742
|
(uo = (po = this.originStyle) == null ? void 0 : po.nautical.layers) == null ? void 0 : uo.find((u) => u.id === "ne-10m-outline"),
|
|
71749
71743
|
(fo = (go = this.originStyle) == null ? void 0 : go.nautical.layers) == null ? void 0 : fo.find((u) => u.id === "ne-10m-label"),
|
|
71750
71744
|
(yo = (bo = this.originStyle) == null ? void 0 : bo.nautical.layers) == null ? void 0 : yo.find((u) => u.id === "china-route-line"),
|
|
@@ -71823,8 +71817,8 @@ const Kl = {
|
|
|
71823
71817
|
methods: {
|
|
71824
71818
|
async initOnlineMap() {
|
|
71825
71819
|
var e;
|
|
71826
|
-
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new ql(this.token),
|
|
71827
|
-
const o = new
|
|
71820
|
+
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new ql(this.token), _e.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
71821
|
+
const o = new _e.Map({
|
|
71828
71822
|
container: "map",
|
|
71829
71823
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
71830
71824
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -71850,7 +71844,7 @@ const Kl = {
|
|
|
71850
71844
|
},
|
|
71851
71845
|
addScaleControl() {
|
|
71852
71846
|
var e;
|
|
71853
|
-
this.map.addControl(new
|
|
71847
|
+
this.map.addControl(new _e.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
71854
71848
|
const o = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
71855
71849
|
o && (o.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
71856
71850
|
},
|
|
@@ -71865,15 +71859,15 @@ const Kl = {
|
|
|
71865
71859
|
}
|
|
71866
71860
|
}, Ql = { class: "mapbox-initial-gl4" }, Jl = { class: "v-btn--variant-elevated rounded" }, $l = { class: "zoom" };
|
|
71867
71861
|
function es(o, e, t, i, a, r) {
|
|
71868
|
-
const s =
|
|
71869
|
-
return y(),
|
|
71862
|
+
const s = k("VBtn");
|
|
71863
|
+
return y(), T("div", Ql, [
|
|
71870
71864
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
71871
71865
|
l("div", {
|
|
71872
71866
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
71873
|
-
style:
|
|
71867
|
+
style: oe({ top: t.top + 268 + "px", right: a.right + "px" })
|
|
71874
71868
|
}, [
|
|
71875
71869
|
l("div", Jl, [
|
|
71876
|
-
|
|
71870
|
+
h(s, {
|
|
71877
71871
|
"min-width": "32",
|
|
71878
71872
|
width: "32",
|
|
71879
71873
|
height: "32",
|
|
@@ -71887,7 +71881,7 @@ function es(o, e, t, i, a, r) {
|
|
|
71887
71881
|
__: [0]
|
|
71888
71882
|
}, 8, ["onClick"]),
|
|
71889
71883
|
l("div", $l, x(a.zoom), 1),
|
|
71890
|
-
|
|
71884
|
+
h(s, {
|
|
71891
71885
|
"min-width": "32",
|
|
71892
71886
|
width: "32",
|
|
71893
71887
|
height: "32",
|
|
@@ -71904,20 +71898,20 @@ function es(o, e, t, i, a, r) {
|
|
|
71904
71898
|
], 4)
|
|
71905
71899
|
]);
|
|
71906
71900
|
}
|
|
71907
|
-
const ts = /* @__PURE__ */
|
|
71901
|
+
const ts = /* @__PURE__ */ q(Kl, [["render", es]]), ps = {
|
|
71908
71902
|
install(o) {
|
|
71909
|
-
o.component("MapInitial", ts), o.component("MapboxGL", Xl), o.component("TropicalGL", Bo), o.component("LatLngGL", Oo), o.component("DateTimePicker",
|
|
71903
|
+
o.component("MapInitial", ts), o.component("MapboxGL", Xl), o.component("TropicalGL", Bo), o.component("LatLngGL", Oo), o.component("DateTimePicker", ao);
|
|
71910
71904
|
}
|
|
71911
71905
|
};
|
|
71912
71906
|
export {
|
|
71913
|
-
|
|
71907
|
+
ao as DateTimePicker,
|
|
71914
71908
|
Oo as LatLngGL,
|
|
71915
71909
|
ts as MapInitial,
|
|
71916
71910
|
Xl as MapboxGL,
|
|
71917
71911
|
ps as MapboxGLPlugin,
|
|
71918
71912
|
be as ParticleSchema,
|
|
71919
71913
|
Bo as TropicalGL,
|
|
71920
|
-
|
|
71914
|
+
oo as Viewport,
|
|
71921
71915
|
je as WebGL,
|
|
71922
|
-
|
|
71916
|
+
se as WebGLSchema
|
|
71923
71917
|
};
|