@idmwx/idmui-gl4 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var le = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Be from "axios";
|
|
5
5
|
import { useTheme as Ee } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as I, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as
|
|
6
|
+
import { openBlock as b, createElementBlock as I, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Ra } from "vue";
|
|
7
7
|
import we from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import * as E from "@turf/turf";
|
|
10
|
-
import { LayerHelper as oo, CompanyHelper as
|
|
10
|
+
import { LayerHelper as oo, CompanyHelper as Aa } from "@idm-plugin/tag-nop";
|
|
11
11
|
import D from "moment";
|
|
12
12
|
import Da from "@mapbox/sphericalmercator";
|
|
13
13
|
import { LayerHelper as Oa } from "@idm-plugin/tag";
|
|
@@ -657,7 +657,7 @@ function ti(t, e, o, i, a, r) {
|
|
|
657
657
|
l("div", Ka, [
|
|
658
658
|
l("div", Qa, [
|
|
659
659
|
e[3] || (e[3] = l("label", { class: "opacity-70 pr-1" }, "Name : ", -1)),
|
|
660
|
-
l("span", null, y(a.form.name), 1)
|
|
660
|
+
l("span", null, y(a.form.name || "-"), 1)
|
|
661
661
|
]),
|
|
662
662
|
l("div", Ja, [
|
|
663
663
|
e[4] || (e[4] = l("label", { class: "opacity-70 pr-1" }, "Position : ", -1)),
|
|
@@ -700,7 +700,7 @@ function ti(t, e, o, i, a, r) {
|
|
|
700
700
|
[We, a.showInfo]
|
|
701
701
|
]);
|
|
702
702
|
}
|
|
703
|
-
const oi = /* @__PURE__ */ X(qa, [["render", ti], ["__scopeId", "data-v-
|
|
703
|
+
const oi = /* @__PURE__ */ X(qa, [["render", ti], ["__scopeId", "data-v-0cf4535a"]]), ai = {
|
|
704
704
|
name: "IdmLoadLine",
|
|
705
705
|
props: {
|
|
706
706
|
map: {
|
|
@@ -1414,7 +1414,7 @@ const Ci = {
|
|
|
1414
1414
|
handleClick(t) {
|
|
1415
1415
|
const e = t.features[0];
|
|
1416
1416
|
if (e) {
|
|
1417
|
-
this.showInfo = !0, this.form = { ...e.properties }, this.form.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.form.lng = t.lngLat.lng, this.form.lat = t.lngLat.lat
|
|
1417
|
+
this.showInfo = !0, this.form = { ...e.properties }, this.form.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.form.lng = t.lngLat.lng, this.form.lat = t.lngLat.lat;
|
|
1418
1418
|
const o = document.getElementById("tidal-station-info");
|
|
1419
1419
|
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new we.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
1420
1420
|
} else
|
|
@@ -1431,8 +1431,8 @@ const Ci = {
|
|
|
1431
1431
|
this.showInfo = !1, (t = this.map) != null && t.getLayer(this.layer) && this.map.setLayoutProperty(this.layer, "visibility", "none");
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
}, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" },
|
|
1435
|
-
function
|
|
1434
|
+
}, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ri = { class: "d-flex justify-start align-center" };
|
|
1435
|
+
function Ai(t, e, o, i, a, r) {
|
|
1436
1436
|
const s = w("VBtn"), c = w("v-card-text"), n = w("v-card");
|
|
1437
1437
|
return He((b(), j(n, { id: "tidal-station-info" }, {
|
|
1438
1438
|
default: u(() => [
|
|
@@ -1467,7 +1467,7 @@ function Ri(t, e, o, i, a, r) {
|
|
|
1467
1467
|
e[4] || (e[4] = l("label", { class: "opacity-70 pr-1" }, "LoCode : ", -1)),
|
|
1468
1468
|
l("span", null, y(a.form.Code || "-"), 1)
|
|
1469
1469
|
]),
|
|
1470
|
-
l("div",
|
|
1470
|
+
l("div", Ri, [
|
|
1471
1471
|
e[5] || (e[5] = l("label", { class: "opacity-70 pr-1" }, "Country : ", -1)),
|
|
1472
1472
|
l("span", null, y(a.form.Country || "-"), 1)
|
|
1473
1473
|
])
|
|
@@ -1481,7 +1481,7 @@ function Ri(t, e, o, i, a, r) {
|
|
|
1481
1481
|
[We, a.showInfo]
|
|
1482
1482
|
]);
|
|
1483
1483
|
}
|
|
1484
|
-
const Di = /* @__PURE__ */ X(Ci, [["render",
|
|
1484
|
+
const Di = /* @__PURE__ */ X(Ci, [["render", Ai], ["__scopeId", "data-v-fb4aeed3"]]), Oi = {
|
|
1485
1485
|
name: "IdmIceAreas",
|
|
1486
1486
|
props: {
|
|
1487
1487
|
map: {
|
|
@@ -1761,6 +1761,9 @@ const Fi = {
|
|
|
1761
1761
|
},
|
|
1762
1762
|
forecastModel: {
|
|
1763
1763
|
type: String
|
|
1764
|
+
},
|
|
1765
|
+
realTime: {
|
|
1766
|
+
type: String
|
|
1764
1767
|
}
|
|
1765
1768
|
},
|
|
1766
1769
|
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList"],
|
|
@@ -1774,7 +1777,7 @@ const Fi = {
|
|
|
1774
1777
|
otherLayers: {},
|
|
1775
1778
|
activeOtherLayers: [],
|
|
1776
1779
|
cache: {
|
|
1777
|
-
v: "0.0.
|
|
1780
|
+
v: "0.0.2",
|
|
1778
1781
|
versionKey: "otherLayerCacheVersionGL4",
|
|
1779
1782
|
checkListKey: "otherChecklistCacheGL4",
|
|
1780
1783
|
followListKey: "otherFollowListCacheGL4",
|
|
@@ -1827,8 +1830,16 @@ const Fi = {
|
|
|
1827
1830
|
immediate: !0
|
|
1828
1831
|
},
|
|
1829
1832
|
checkList: {
|
|
1830
|
-
handler() {
|
|
1831
|
-
localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), this.activeOtherLayers = this.tagLayers.filter((
|
|
1833
|
+
handler(t, e) {
|
|
1834
|
+
localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), this.activeOtherLayers = this.tagLayers.filter((r) => this.checkList.includes(r.key)) || [];
|
|
1835
|
+
const o = t == null ? void 0 : t.filter((r) => !(e != null && e.includes(r))), i = e == null ? void 0 : e.filter((r) => !(t != null && t.includes(r))), a = t == null ? void 0 : t.filter((r) => e == null ? void 0 : e.includes(r));
|
|
1836
|
+
if ((i == null ? void 0 : i.length) > 0 && i.forEach((r) => {
|
|
1837
|
+
this.otherLayers[r] = void 0, delete this.otherLayers[r];
|
|
1838
|
+
}), (o == null ? void 0 : o.length) > 0) {
|
|
1839
|
+
const r = this.tagLayers.filter((s) => this.checkList.includes(s.key) && !a.includes(s.key)) || [];
|
|
1840
|
+
this.handleLayersChange(r);
|
|
1841
|
+
}
|
|
1842
|
+
this.$emit("otherCheckList", this.checkList);
|
|
1832
1843
|
}
|
|
1833
1844
|
},
|
|
1834
1845
|
followList: {
|
|
@@ -1858,7 +1869,7 @@ const Fi = {
|
|
|
1858
1869
|
async fetchOtherLayers(t = { all: !1, dayNight: !1 }) {
|
|
1859
1870
|
var o, i, a, r;
|
|
1860
1871
|
let e = this.layerWeight;
|
|
1861
|
-
if (
|
|
1872
|
+
if (e) {
|
|
1862
1873
|
if (t.all) {
|
|
1863
1874
|
const s = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Be.get(`${s}/api/arc/other/layers/links?l=${e}&t=${this.realTime}`, {
|
|
1864
1875
|
headers: {
|
|
@@ -1906,13 +1917,11 @@ const Fi = {
|
|
|
1906
1917
|
});
|
|
1907
1918
|
}
|
|
1908
1919
|
}
|
|
1909
|
-
}
|
|
1910
|
-
this.otherLayers = {};
|
|
1920
|
+
}
|
|
1911
1921
|
},
|
|
1912
|
-
handleLayersChange() {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
this.layerWeight !== t && (this.layerWeight = t, this.fetchOtherLayers({ all: !0 }));
|
|
1922
|
+
handleLayersChange(t) {
|
|
1923
|
+
const e = t == null ? void 0 : t.reduce((o, i) => o + (i == null ? void 0 : i.weight), 0);
|
|
1924
|
+
this.layerWeight = e, this.fetchOtherLayers({ all: !0 });
|
|
1916
1925
|
}
|
|
1917
1926
|
}
|
|
1918
1927
|
}, Hi = { class: "idm-gl4-other-layer" }, Wi = { class: "header-box d-flex justify-space-between align-center px-4" }, Gi = { class: "text-h5 font-weight-medium" }, Ui = { class: "list-box scroll pl-4 pr-2 overflow-y-auto" }, Vi = { class: "layers-body mt-4 d-flex justify-start align-center flex-wrap" }, Yi = ["onClick"], Zi = {
|
|
@@ -2060,7 +2069,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2060
2069
|
}),
|
|
2061
2070
|
m(d, { class: "py-2" }, {
|
|
2062
2071
|
default: u(() => [
|
|
2063
|
-
(b(!0), I(ke, null, Le(a.tagLayers.filter((F) => ["ports", "
|
|
2072
|
+
(b(!0), I(ke, null, Le(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2064
2073
|
key: F.key,
|
|
2065
2074
|
modelValue: a.checkList,
|
|
2066
2075
|
"onUpdate:modelValue": e[1] || (e[1] = (se) => a.checkList = se),
|
|
@@ -2099,7 +2108,7 @@ function Ji(t, e, o, i, a, r) {
|
|
|
2099
2108
|
}),
|
|
2100
2109
|
m(d, { class: "py-2" }, {
|
|
2101
2110
|
default: u(() => [
|
|
2102
|
-
(b(!0), I(ke, null, Le(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "
|
|
2111
|
+
(b(!0), I(ke, null, Le(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
|
|
2103
2112
|
key: F.key,
|
|
2104
2113
|
modelValue: a.checkList,
|
|
2105
2114
|
"onUpdate:modelValue": e[2] || (e[2] = (se) => a.checkList = se),
|
|
@@ -3892,6 +3901,9 @@ const zr = /* @__PURE__ */ X(_r, [["render", kr]]), Lr = {
|
|
|
3892
3901
|
},
|
|
3893
3902
|
activeWeatherLayers: {
|
|
3894
3903
|
type: Array
|
|
3904
|
+
},
|
|
3905
|
+
theme: {
|
|
3906
|
+
type: String
|
|
3895
3907
|
}
|
|
3896
3908
|
},
|
|
3897
3909
|
data() {
|
|
@@ -3934,9 +3946,9 @@ const zr = /* @__PURE__ */ X(_r, [["render", kr]]), Lr = {
|
|
|
3934
3946
|
source: this.source,
|
|
3935
3947
|
filter: ["==", "$type", "LineString"],
|
|
3936
3948
|
paint: {
|
|
3937
|
-
"line-color": ["step", ["get", "val"], "rgba(162,13,2,1)", 920, "rgba(
|
|
3949
|
+
"line-color": ["step", ["get", "val"], "rgba(162,13,2,1)", 920, "rgba(255, 96, 98, 1)", 980, "rgba(255, 246, 184, 1)", 1100, "rgba(199,171,250,1)"],
|
|
3938
3950
|
"line-width": 1,
|
|
3939
|
-
"line-opacity": 0.
|
|
3951
|
+
"line-opacity": this.theme === "light" ? 1 : 0.3
|
|
3940
3952
|
}
|
|
3941
3953
|
},
|
|
3942
3954
|
this.beforeLayer
|
|
@@ -3974,25 +3986,46 @@ const zr = /* @__PURE__ */ X(_r, [["render", kr]]), Lr = {
|
|
|
3974
3986
|
`, ["get", "val"], { "font-scale": 1 }],
|
|
3975
3987
|
"text-rotation-alignment": "map",
|
|
3976
3988
|
"text-line-height": 1.3,
|
|
3977
|
-
"text-size": 12
|
|
3989
|
+
"text-size": 12,
|
|
3990
|
+
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
3978
3991
|
},
|
|
3979
3992
|
paint: {
|
|
3980
|
-
"text-color":
|
|
3993
|
+
"text-color": this.theme === "light" ? [
|
|
3994
|
+
"step",
|
|
3995
|
+
["get", "val"],
|
|
3996
|
+
"rgba(0, 0, 0, 0.5)",
|
|
3997
|
+
920,
|
|
3998
|
+
"rgba(0, 0, 0, 0.5)",
|
|
3999
|
+
980,
|
|
4000
|
+
"rgba(0, 0, 0, 0.7)",
|
|
4001
|
+
1100,
|
|
4002
|
+
"rgba(0, 0, 0, 0.7)"
|
|
4003
|
+
] : [
|
|
4004
|
+
"step",
|
|
4005
|
+
["get", "val"],
|
|
4006
|
+
"rgba(162,13,2,1)",
|
|
4007
|
+
920,
|
|
4008
|
+
"rgba(255, 96, 98, 1)",
|
|
4009
|
+
980,
|
|
4010
|
+
"rgba(255, 246, 184, 1)",
|
|
4011
|
+
1100,
|
|
4012
|
+
"rgba(199,171,250,1)"
|
|
4013
|
+
],
|
|
3981
4014
|
"text-halo-color": [
|
|
3982
4015
|
"step",
|
|
3983
4016
|
["get", "val"],
|
|
3984
|
-
"rgba(162,13,2,
|
|
4017
|
+
"rgba(162,13,2,1)",
|
|
3985
4018
|
920,
|
|
3986
|
-
"rgba(
|
|
4019
|
+
"rgba(255, 96, 98, 1)",
|
|
3987
4020
|
980,
|
|
3988
|
-
"rgba(255,
|
|
4021
|
+
"rgba(255, 246, 184, 1)",
|
|
3989
4022
|
1100,
|
|
3990
|
-
"rgba(199,171,250,
|
|
4023
|
+
"rgba(199,171,250,1)"
|
|
3991
4024
|
],
|
|
3992
|
-
"text-halo-width":
|
|
4025
|
+
"text-halo-width": this.theme === "light" ? 1 : 0
|
|
3993
4026
|
}
|
|
3994
|
-
}
|
|
3995
|
-
|
|
4027
|
+
},
|
|
4028
|
+
this.beforeLayer
|
|
3996
4029
|
);
|
|
3997
4030
|
}, 0), r = (/* @__PURE__ */ new Date()).valueOf() - (i + a), console.log("[prmsl] add elapsed: ", r, ", total: ", a += r));
|
|
3998
4031
|
}
|
|
@@ -4163,8 +4196,8 @@ function Ir(t, e, o, i, a, r) {
|
|
|
4163
4196
|
]), 4)
|
|
4164
4197
|
])) : O("", !0);
|
|
4165
4198
|
}
|
|
4166
|
-
const
|
|
4167
|
-
const
|
|
4199
|
+
const Rr = /* @__PURE__ */ X(Mr, [["render", Ir]]);
|
|
4200
|
+
const Ar = {
|
|
4168
4201
|
name: "IdmCover",
|
|
4169
4202
|
props: {
|
|
4170
4203
|
factor: {
|
|
@@ -4273,7 +4306,7 @@ function Or(t, e, o, i, a, r) {
|
|
|
4273
4306
|
]), 4)
|
|
4274
4307
|
])) : O("", !0);
|
|
4275
4308
|
}
|
|
4276
|
-
const Br = /* @__PURE__ */ X(
|
|
4309
|
+
const Br = /* @__PURE__ */ X(Ar, [["render", Or], ["__scopeId", "data-v-9696d73b"]]);
|
|
4277
4310
|
const Er = {
|
|
4278
4311
|
name: "IdmThickness",
|
|
4279
4312
|
props: {
|
|
@@ -4871,7 +4904,7 @@ const al = {
|
|
|
4871
4904
|
IdmSigWaveHeight: vr,
|
|
4872
4905
|
IdmSwell: zr,
|
|
4873
4906
|
IdmPrmsl: Sr,
|
|
4874
|
-
IdmIceEdge:
|
|
4907
|
+
IdmIceEdge: Rr,
|
|
4875
4908
|
IdmIceCover: Br,
|
|
4876
4909
|
IdmIceThickness: Fr,
|
|
4877
4910
|
IdmPrecip3h: Ur,
|
|
@@ -5524,9 +5557,9 @@ const al = {
|
|
|
5524
5557
|
}, bl = {
|
|
5525
5558
|
key: 1,
|
|
5526
5559
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5527
|
-
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" },
|
|
5560
|
+
}, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Rl = { class: "text-body-2 opacity-70 mb-3" }, Al = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
|
|
5528
5561
|
function El(t, e, o, i, a, r) {
|
|
5529
|
-
var pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie,
|
|
5562
|
+
var pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie, Re, ye;
|
|
5530
5563
|
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), k = w("VSwitch"), v = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), z = w("IdmCurrentDirection"), P = w("IdmPrmsl"), x = w("IdmWindParticle"), T = w("IdmCurrentParticle"), U = w("IdmWave"), Y = w("IdmSwell"), q = w("IdmIceEdge"), Z = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), ce = w("IdmWaterTemp"), de = w("IdmTemp");
|
|
5531
5564
|
return b(), I("div", il, [
|
|
5532
5565
|
l("div", {
|
|
@@ -5900,13 +5933,13 @@ function El(t, e, o, i, a, r) {
|
|
|
5900
5933
|
}),
|
|
5901
5934
|
m(p, { class: "" }, {
|
|
5902
5935
|
default: u(() => {
|
|
5903
|
-
var H, te, je, Pe, he, ge, W, _e, J, re,
|
|
5936
|
+
var H, te, je, Pe, he, ge, W, _e, J, re, Ae, A, fe, Ce, De, Oe, R, V, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
|
|
5904
5937
|
return [
|
|
5905
5938
|
l("div", wl, y(t.$t("weather.atmospheric")), 1),
|
|
5906
5939
|
l("div", xl, y((je = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + y((ge = (he = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : he.NOAA) == null ? void 0 : ge.spatialResolution) + y(t.$t("units.km")) + " " + y((re = (J = (_e = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : J.meta) == null ? void 0 : re.days) + y(t.$t("units.days")), 1),
|
|
5907
5940
|
l("div", vl, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
5908
|
-
l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (
|
|
5909
|
-
l("div", kl, y((
|
|
5941
|
+
l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (A = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : A.NOAA) == null ? void 0 : fe.meta) == null ? void 0 : Ce.initialisationTime)), 1),
|
|
5942
|
+
l("div", kl, y((R = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : R.source) + " " + y((Ue = (Ge = (V = a.models) == null ? void 0 : V.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ue.spatialResolution) + y(t.$t("units.km")) + " " + y((Xe = (Ze = (ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.days) + y(t.$t("units.days")), 1),
|
|
5910
5943
|
l("div", zl, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5911
5944
|
l("div", Ll, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
5912
5945
|
m(d),
|
|
@@ -5916,9 +5949,9 @@ function El(t, e, o, i, a, r) {
|
|
|
5916
5949
|
l("div", Ml, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((ft = (gt = (ut = (pt = (dt = a.models) == null ? void 0 : dt.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.meta) == null ? void 0 : ft.initialisationTime)), 1),
|
|
5917
5950
|
l("div", Tl, y((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : bt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.source) + " " + y((zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.ECMWF) == null ? void 0 : zt.spatialResolution) + y(t.$t("units.km")) + " " + y((Mt = (St = (Ct = (Pt = (Lt = a.models) == null ? void 0 : Lt.marine) == null ? void 0 : Pt.wave) == null ? void 0 : Ct.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : Mt.days) + y(t.$t("units.days")), 1),
|
|
5918
5951
|
l("div", Il, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5919
|
-
l("div",
|
|
5952
|
+
l("div", Rl, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Dt = (At = (Rt = (It = (Tt = a.models) == null ? void 0 : Tt.marine) == null ? void 0 : It.wave) == null ? void 0 : Rt.ECMWF) == null ? void 0 : At.meta) == null ? void 0 : Dt.initialisationTime)), 1),
|
|
5920
5953
|
m(d),
|
|
5921
|
-
l("div",
|
|
5954
|
+
l("div", Al, y(t.$t("weather.currents")), 1),
|
|
5922
5955
|
l("div", Dl, y((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + y((Wt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.spatialResolution) + y(t.$t("units.km")) + " " + y((Zt = (Yt = (Vt = (Ut = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Ut.current) == null ? void 0 : Vt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : Zt.days) + y(t.$t("units.days")), 1),
|
|
5923
5956
|
l("div", Ol, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
5924
5957
|
l("div", Bl, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Jt = (Qt = (Kt = (qt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : qt.current) == null ? void 0 : Kt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : Jt.initialisationTime)), 1)
|
|
@@ -5963,7 +5996,7 @@ function El(t, e, o, i, a, r) {
|
|
|
5963
5996
|
prmsl: (ie = a.weatherLayers) == null ? void 0 : ie.prmsl,
|
|
5964
5997
|
"menu-toggle": o.menuToggle,
|
|
5965
5998
|
"active-weather-layers": a.activeWeatherLayers
|
|
5966
|
-
}, t.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : O("", !0),
|
|
5999
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
|
|
5967
6000
|
o.map ? (b(), j(x, B({
|
|
5968
6001
|
key: 5,
|
|
5969
6002
|
viewport: a.viewport,
|
|
@@ -6022,7 +6055,7 @@ function El(t, e, o, i, a, r) {
|
|
|
6022
6055
|
o.map ? (b(), j(ce, B({
|
|
6023
6056
|
key: 14,
|
|
6024
6057
|
viewport: a.viewport,
|
|
6025
|
-
factor: (
|
|
6058
|
+
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
6026
6059
|
"menu-toggle": o.menuToggle
|
|
6027
6060
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
6028
6061
|
o.map ? (b(), j(de, B({
|
|
@@ -6380,47 +6413,47 @@ class Ca {
|
|
|
6380
6413
|
}), a;
|
|
6381
6414
|
}
|
|
6382
6415
|
static pickHourly(e, o) {
|
|
6383
|
-
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, T, U, Y, q, Z, $, ee, Q, ce, de, pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie,
|
|
6384
|
-
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"),
|
|
6416
|
+
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, T, U, Y, q, Z, $, ee, Q, ce, de, pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie, Re, ye, H, te, je, Pe;
|
|
6417
|
+
const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Ae = [];
|
|
6385
6418
|
if (he.isBetween(J, re, "millisecond", "[]")) {
|
|
6386
|
-
const
|
|
6419
|
+
const A = he.utc().diff(J, "h", !1);
|
|
6387
6420
|
let fe, Ce;
|
|
6388
6421
|
if (ge) {
|
|
6389
6422
|
let De = 0, Oe = 0;
|
|
6390
|
-
for (const
|
|
6391
|
-
const V =
|
|
6392
|
-
for (let ze =
|
|
6423
|
+
for (const R of ge) {
|
|
6424
|
+
const V = R == null ? void 0 : R.hourly;
|
|
6425
|
+
for (let ze = A - (A - 1) % 3; ze <= A; ze++)
|
|
6393
6426
|
De += (d = V == null ? void 0 : V.precipitation) == null ? void 0 : d.at(ze);
|
|
6394
|
-
for (let ze =
|
|
6427
|
+
for (let ze = A - (A - 1) % 6; ze <= A; ze++)
|
|
6395
6428
|
Oe += (f = V == null ? void 0 : V.precipitation) == null ? void 0 : f.at(ze);
|
|
6396
6429
|
fe = {
|
|
6397
|
-
temp: (k = V == null ? void 0 : V.temperature_2m) == null ? void 0 : k.at(
|
|
6398
|
-
apparentTemp: (v = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : v.at(
|
|
6399
|
-
rh: (S = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : S.at(
|
|
6400
|
-
dp: (C = V == null ? void 0 : V.dew_point_2m) == null ? void 0 : C.at(
|
|
6430
|
+
temp: (k = V == null ? void 0 : V.temperature_2m) == null ? void 0 : k.at(A),
|
|
6431
|
+
apparentTemp: (v = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : v.at(A),
|
|
6432
|
+
rh: (S = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : S.at(A),
|
|
6433
|
+
dp: (C = V == null ? void 0 : V.dew_point_2m) == null ? void 0 : C.at(A),
|
|
6401
6434
|
precip: {
|
|
6402
|
-
probability: (N = V == null ? void 0 : V.precipitation_probability) == null ? void 0 : N.at(
|
|
6403
|
-
sum: (M = V == null ? void 0 : V.precipitation) == null ? void 0 : M.at(
|
|
6435
|
+
probability: (N = V == null ? void 0 : V.precipitation_probability) == null ? void 0 : N.at(A),
|
|
6436
|
+
sum: (M = V == null ? void 0 : V.precipitation) == null ? void 0 : M.at(A),
|
|
6404
6437
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6405
6438
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6406
6439
|
},
|
|
6407
|
-
pmsl: (L = V == null ? void 0 : V.pressure_msl) == null ? void 0 : L.at(
|
|
6408
|
-
psurf: (_ = V == null ? void 0 : V.surface_pressure) == null ? void 0 : _.at(
|
|
6409
|
-
code: (z = V == null ? void 0 : V.weather_code) == null ? void 0 : z.at(
|
|
6410
|
-
visibility: this.m2nm((P = V == null ? void 0 : V.visibility) == null ? void 0 : P.at(
|
|
6440
|
+
pmsl: (L = V == null ? void 0 : V.pressure_msl) == null ? void 0 : L.at(A),
|
|
6441
|
+
psurf: (_ = V == null ? void 0 : V.surface_pressure) == null ? void 0 : _.at(A),
|
|
6442
|
+
code: (z = V == null ? void 0 : V.weather_code) == null ? void 0 : z.at(A),
|
|
6443
|
+
visibility: this.m2nm((P = V == null ? void 0 : V.visibility) == null ? void 0 : P.at(A)),
|
|
6411
6444
|
wind: {
|
|
6412
|
-
speed: (x = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : x.at(
|
|
6413
|
-
kts: (T = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : T.at(
|
|
6414
|
-
degree: (U = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : U.at(
|
|
6415
|
-
bearing: ((Y = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : Y.at(
|
|
6416
|
-
gusts: (Z = V == null ? void 0 : V.wind_gusts_10m) == null ? void 0 : Z.at(
|
|
6445
|
+
speed: (x = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : x.at(A),
|
|
6446
|
+
kts: (T = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : T.at(A),
|
|
6447
|
+
degree: (U = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : U.at(A),
|
|
6448
|
+
bearing: ((Y = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : Y.at(A)) !== null ? (((q = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : q.at(A)) + 180) % 360 : null,
|
|
6449
|
+
gusts: (Z = V == null ? void 0 : V.wind_gusts_10m) == null ? void 0 : Z.at(A)
|
|
6417
6450
|
},
|
|
6418
|
-
isDay: ($ = V == null ? void 0 : V.is_day) == null ? void 0 : $.at(
|
|
6451
|
+
isDay: ($ = V == null ? void 0 : V.is_day) == null ? void 0 : $.at(A)
|
|
6419
6452
|
};
|
|
6420
6453
|
const { name: Ge, url: Ue, bg: Ve } = this.parseWeatherCode(fe.code, fe.isDay);
|
|
6421
|
-
fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree),
|
|
6422
|
-
utc: J.add(
|
|
6423
|
-
model:
|
|
6454
|
+
fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Ae.push({
|
|
6455
|
+
utc: J.add(A, "h").format(),
|
|
6456
|
+
model: R.model,
|
|
6424
6457
|
weather: { ...fe }
|
|
6425
6458
|
});
|
|
6426
6459
|
}
|
|
@@ -6428,43 +6461,43 @@ class Ca {
|
|
|
6428
6461
|
if (W) {
|
|
6429
6462
|
let De = 0;
|
|
6430
6463
|
for (const Oe of W) {
|
|
6431
|
-
const
|
|
6464
|
+
const R = Oe == null ? void 0 : Oe.hourly;
|
|
6432
6465
|
Ce = {
|
|
6433
6466
|
wave: {
|
|
6434
6467
|
sig: {
|
|
6435
|
-
height: (ee =
|
|
6436
|
-
degree: (Q =
|
|
6437
|
-
bearing: ((ce =
|
|
6438
|
-
period: (pe =
|
|
6468
|
+
height: (ee = R == null ? void 0 : R.wave_height) == null ? void 0 : ee.at(A),
|
|
6469
|
+
degree: (Q = R == null ? void 0 : R.wave_direction) == null ? void 0 : Q.at(A),
|
|
6470
|
+
bearing: ((ce = R == null ? void 0 : R.wave_direction) == null ? void 0 : ce.at(A)) !== null ? (((de = R == null ? void 0 : R.wave_direction) == null ? void 0 : de.at(A)) + 180) % 360 : null,
|
|
6471
|
+
period: (pe = R == null ? void 0 : R.wave_period) == null ? void 0 : pe.at(A)
|
|
6439
6472
|
},
|
|
6440
6473
|
swell: {
|
|
6441
|
-
height: (me =
|
|
6442
|
-
degree: (K =
|
|
6443
|
-
bearing: ((ie =
|
|
6444
|
-
period: (F =
|
|
6445
|
-
peakPeriod: (se =
|
|
6474
|
+
height: (me = R == null ? void 0 : R.swell_wave_height) == null ? void 0 : me.at(A),
|
|
6475
|
+
degree: (K = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : K.at(A),
|
|
6476
|
+
bearing: ((ie = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ie.at(A)) !== null ? (((ue = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ue.at(A)) + 180) % 360 : null,
|
|
6477
|
+
period: (F = R == null ? void 0 : R.swell_wave_period) == null ? void 0 : F.at(A),
|
|
6478
|
+
peakPeriod: (se = R == null ? void 0 : R.swell_wave_peak_period) == null ? void 0 : se.at(A)
|
|
6446
6479
|
},
|
|
6447
6480
|
wd: {
|
|
6448
|
-
height: (xe =
|
|
6449
|
-
degree: (ve =
|
|
6450
|
-
bearing: ((Se =
|
|
6451
|
-
period: (Te =
|
|
6452
|
-
peakPeriod: (Ie =
|
|
6481
|
+
height: (xe = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : xe.at(A),
|
|
6482
|
+
degree: (ve = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : ve.at(A),
|
|
6483
|
+
bearing: ((Se = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Se.at(A)) !== null ? (((Me = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Me.at(A)) + 180) % 360 : null,
|
|
6484
|
+
period: (Te = R == null ? void 0 : R.wind_wave_period) == null ? void 0 : Te.at(A),
|
|
6485
|
+
peakPeriod: (Ie = R == null ? void 0 : R.wind_wave_peak_period) == null ? void 0 : Ie.at(A)
|
|
6453
6486
|
}
|
|
6454
6487
|
},
|
|
6455
6488
|
current: {
|
|
6456
|
-
speed: (
|
|
6457
|
-
kts: (ye =
|
|
6458
|
-
degree: (H =
|
|
6459
|
-
bearing: ((te =
|
|
6460
|
-
},
|
|
6461
|
-
sst: (je =
|
|
6462
|
-
height: (Pe =
|
|
6463
|
-
}, Ce.wave = this.parseWave(Ce.wave, fe == null ? void 0 : fe.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(
|
|
6489
|
+
speed: (Re = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : Re.at(A),
|
|
6490
|
+
kts: (ye = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : ye.at(A),
|
|
6491
|
+
degree: (H = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : H.at(A),
|
|
6492
|
+
bearing: ((te = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : te.at(A)) ?? null
|
|
6493
|
+
},
|
|
6494
|
+
sst: (je = R == null ? void 0 : R.sea_surface_temperature) == null ? void 0 : je.at(A),
|
|
6495
|
+
height: (Pe = R == null ? void 0 : R.sea_level_height_msl) == null ? void 0 : Pe.at(A)
|
|
6496
|
+
}, Ce.wave = this.parseWave(Ce.wave, fe == null ? void 0 : fe.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(Ae[De], Ce), De++;
|
|
6464
6497
|
}
|
|
6465
6498
|
}
|
|
6466
6499
|
}
|
|
6467
|
-
return
|
|
6500
|
+
return Ae;
|
|
6468
6501
|
}
|
|
6469
6502
|
static toLegacy(e) {
|
|
6470
6503
|
var o, i, a, r, s, c, n, g, p, d;
|
|
@@ -6490,10 +6523,10 @@ class Ca {
|
|
|
6490
6523
|
}
|
|
6491
6524
|
static pickDaily(e, o) {
|
|
6492
6525
|
var i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, T, U, Y, q, Z, $, ee, Q, ce, de, pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie;
|
|
6493
|
-
const
|
|
6494
|
-
if (
|
|
6526
|
+
const Re = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((n = (c = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6527
|
+
if (Re.isBetween(te, je, "millisecond", "[]")) {
|
|
6495
6528
|
let he, ge;
|
|
6496
|
-
const W =
|
|
6529
|
+
const W = Re.diff(te, "d", !1);
|
|
6497
6530
|
if (ye)
|
|
6498
6531
|
for (const _e of ye) {
|
|
6499
6532
|
const J = _e.daily;
|
|
@@ -6529,8 +6562,8 @@ class Ca {
|
|
|
6529
6562
|
bearing: ((Z = J.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(W)) + 180) % 360 : null
|
|
6530
6563
|
}
|
|
6531
6564
|
};
|
|
6532
|
-
const { name: re, url:
|
|
6533
|
-
he.name = re, he.url =
|
|
6565
|
+
const { name: re, url: Ae, bg: A } = this.parseWeatherCode(he.code, !0);
|
|
6566
|
+
he.name = re, he.url = Ae, he.bg = A, he.wind.scale = this.beaufort(this.kts2ms(he.wind.kts)), he.wind.direction = this.degree2Direction(he.wind.degree), Pe.push({
|
|
6534
6567
|
utc: te.add(W, "d").utc().format(),
|
|
6535
6568
|
model: _e.model,
|
|
6536
6569
|
weather: { ...he }
|
|
@@ -7019,7 +7052,7 @@ const Nl = {
|
|
|
7019
7052
|
return {
|
|
7020
7053
|
right: 10,
|
|
7021
7054
|
toggle: !1,
|
|
7022
|
-
helper:
|
|
7055
|
+
helper: Aa,
|
|
7023
7056
|
tropicals: void 0,
|
|
7024
7057
|
tropicalCacheKey: "tropicalCacheGL4",
|
|
7025
7058
|
source: "tropicals-source",
|
|
@@ -7193,9 +7226,9 @@ const Nl = {
|
|
|
7193
7226
|
"line-join": "round"
|
|
7194
7227
|
},
|
|
7195
7228
|
paint: {
|
|
7196
|
-
"line-color": "
|
|
7229
|
+
"line-color": this.Theme.current.value.colors["on-surface"],
|
|
7197
7230
|
"line-width": 3,
|
|
7198
|
-
"line-opacity": 0.
|
|
7231
|
+
"line-opacity": 0.7
|
|
7199
7232
|
}
|
|
7200
7233
|
}), this.map.addLayer({
|
|
7201
7234
|
id: this.forecastLayer,
|
|
@@ -7574,7 +7607,7 @@ const Nl = {
|
|
|
7574
7607
|
}, Fl = { class: "idm-tropical-gl4" }, Hl = {
|
|
7575
7608
|
id: "idm-tropical-gl4-info",
|
|
7576
7609
|
class: "idm-tropical-gl4-info"
|
|
7577
|
-
}, Wl = { class: "pb-1" }, Gl = { class: "text-h6" }, Ul = {
|
|
7610
|
+
}, Wl = { class: "pb-1" }, Gl = { class: "text-h6 font-weight-600" }, Ul = {
|
|
7578
7611
|
key: 0,
|
|
7579
7612
|
class: "text-body-1 opacity-70"
|
|
7580
7613
|
}, Vl = { class: "text-body-2" }, Yl = { class: "d-flex justify-space-between align-center" }, Zl = { class: "flex-1-1-0" }, Xl = { class: "flex-1-1-0" }, ql = { class: "py-2 d-flex justify-space-between align-center" }, Kl = { class: "flex-1-1-0" }, Ql = { class: "flex-1-1-0" }, Jl = { class: "d-flex align-center flex-1-1-100 justify-space-between" }, $l = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, es = { class: "more" }, ts = {
|
|
@@ -7649,7 +7682,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7649
7682
|
l("div", Zl, [
|
|
7650
7683
|
e[6] || (e[6] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
7651
7684
|
l("span", null, y(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
|
|
7652
|
-
l("span", null, ", BF " + y(r.computeBF(((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.kts) ||
|
|
7685
|
+
l("span", null, ", BF " + y(r.computeBF(((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.kts) || "-")), 1)
|
|
7653
7686
|
]),
|
|
7654
7687
|
l("div", Xl, [
|
|
7655
7688
|
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
@@ -7659,11 +7692,11 @@ function is(t, e, o, i, a, r) {
|
|
|
7659
7692
|
l("div", ql, [
|
|
7660
7693
|
l("div", Kl, [
|
|
7661
7694
|
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Move Speed : ", -1)),
|
|
7662
|
-
l("span", null, y((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.kts) + " kts", 1)
|
|
7695
|
+
l("span", null, y(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.kts) || "-") + " kts", 1)
|
|
7663
7696
|
]),
|
|
7664
7697
|
l("div", Ql, [
|
|
7665
7698
|
e[9] || (e[9] = l("label", { class: "opacity-70 pr-1" }, "Move Dir : ", -1)),
|
|
7666
|
-
l("span", null, y((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) + "°", 1)
|
|
7699
|
+
l("span", null, y(((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) || "-") + "°", 1)
|
|
7667
7700
|
])
|
|
7668
7701
|
]),
|
|
7669
7702
|
l("div", Jl, [
|
|
@@ -7733,7 +7766,7 @@ function is(t, e, o, i, a, r) {
|
|
|
7733
7766
|
onClick: e[3] || (e[3] = (k) => r.handleStrikeProbability(a.activeTropicals))
|
|
7734
7767
|
}, {
|
|
7735
7768
|
default: u(() => e[14] || (e[14] = [
|
|
7736
|
-
G("
|
|
7769
|
+
G("View Report", -1)
|
|
7737
7770
|
])),
|
|
7738
7771
|
_: 1,
|
|
7739
7772
|
__: [14]
|
|
@@ -7786,6 +7819,10 @@ function is(t, e, o, i, a, r) {
|
|
|
7786
7819
|
l("div", { class: "icon history" }),
|
|
7787
7820
|
l("div", { class: "label" }, "History")
|
|
7788
7821
|
], -1),
|
|
7822
|
+
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7823
|
+
l("div", { class: "icon forecast" }),
|
|
7824
|
+
l("div", { class: "label" }, "Forecast")
|
|
7825
|
+
], -1),
|
|
7789
7826
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
7790
7827
|
l("div", { class: "icon r7" }),
|
|
7791
7828
|
l("div", { class: "label" }, "35kts Radii")
|
|
@@ -8428,7 +8465,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8428
8465
|
m(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8429
8466
|
default: u(() => [
|
|
8430
8467
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
8431
|
-
l("div", { class: "mx-2" }, "Spot Weather")
|
|
8468
|
+
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
8432
8469
|
], -1)),
|
|
8433
8470
|
m(s, {
|
|
8434
8471
|
icon: "",
|
|
@@ -8457,7 +8494,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8457
8494
|
ref: "spotForm",
|
|
8458
8495
|
autocomplete: "off",
|
|
8459
8496
|
class: "form-box",
|
|
8460
|
-
onSubmit:
|
|
8497
|
+
onSubmit: Ra(r.submitForm, ["prevent"])
|
|
8461
8498
|
}, {
|
|
8462
8499
|
default: u(() => [
|
|
8463
8500
|
l("div", ps, [
|
|
@@ -8970,7 +9007,8 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8970
9007
|
m(S, { class: "d-flex justify-space-between align-center" }, {
|
|
8971
9008
|
default: u(() => [
|
|
8972
9009
|
m(s, {
|
|
8973
|
-
|
|
9010
|
+
vvariant: "text",
|
|
9011
|
+
density: "compact",
|
|
8974
9012
|
"prepend-icon": "mdi-star",
|
|
8975
9013
|
class: "text-none text-body-1",
|
|
8976
9014
|
onClick: r.handleFollow
|
|
@@ -8986,6 +9024,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
8986
9024
|
}, 8, ["onClick"]),
|
|
8987
9025
|
m(s, {
|
|
8988
9026
|
variant: "text",
|
|
9027
|
+
density: "compact",
|
|
8989
9028
|
"append-icon": "mdi-chevron-right",
|
|
8990
9029
|
class: "text-none text-body-1",
|
|
8991
9030
|
onClick: r.handleMeteoMore
|
|
@@ -9389,8 +9428,8 @@ function Is(t, e, o, i, a, r) {
|
|
|
9389
9428
|
], 4)
|
|
9390
9429
|
]);
|
|
9391
9430
|
}
|
|
9392
|
-
const
|
|
9393
|
-
const
|
|
9431
|
+
const Rs = /* @__PURE__ */ X(Ms, [["render", Is]]);
|
|
9432
|
+
const As = {
|
|
9394
9433
|
name: "IdmBottomBar",
|
|
9395
9434
|
components: { DateTimePicker: ro },
|
|
9396
9435
|
props: {
|
|
@@ -9813,13 +9852,13 @@ function Gs(t, e, o, i, a, r) {
|
|
|
9813
9852
|
], 4)
|
|
9814
9853
|
]);
|
|
9815
9854
|
}
|
|
9816
|
-
const Us = /* @__PURE__ */ X(
|
|
9855
|
+
const Us = /* @__PURE__ */ X(As, [["render", Gs]]), Vs = {
|
|
9817
9856
|
name: "IdmGL4",
|
|
9818
9857
|
components: {
|
|
9819
9858
|
IdmOtherLayer: $i,
|
|
9820
9859
|
IdmWeatherLayer: jl,
|
|
9821
9860
|
IdmTropicals: Ma,
|
|
9822
|
-
IdmMeasure:
|
|
9861
|
+
IdmMeasure: Rs,
|
|
9823
9862
|
IdmSpot: Ss,
|
|
9824
9863
|
IdmBottomBar: Us
|
|
9825
9864
|
},
|
|
@@ -9960,7 +9999,7 @@ class qs {
|
|
|
9960
9999
|
le(this, "hi");
|
|
9961
10000
|
le(this, "td");
|
|
9962
10001
|
le(this, "windy");
|
|
9963
|
-
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, T, U, Y, q, Z, $, ee, Q, ce, de, pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie,
|
|
10002
|
+
var o, i, a, r, s, c, n, g, p, d, f, k, v, S, C, N, M, L, _, z, P, x, T, U, Y, q, Z, $, ee, Q, ce, de, pe, me, K, ie, ue, F, se, xe, ve, Se, Me, Te, Ie, Re, ye, H, te, je, Pe, he, ge, W, _e, J, re, Ae, A, fe, Ce, De, Oe, R, V, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ro, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
|
|
9964
10003
|
this.i4 = {
|
|
9965
10004
|
source: {
|
|
9966
10005
|
type: "raster",
|
|
@@ -28254,7 +28293,7 @@ class qs {
|
|
|
28254
28293
|
(xe = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : xe.find((h) => h.id === "admin-0-boundary"),
|
|
28255
28294
|
(Se = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Se.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
28256
28295
|
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((h) => h.id === "country-label"),
|
|
28257
|
-
(
|
|
28296
|
+
(Re = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : Re.find((h) => h.id === "continent-label"),
|
|
28258
28297
|
(H = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : H.find((h) => h.id === "tide-stations"),
|
|
28259
28298
|
(je = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : je.find((h) => h.id === "empty-layer-3"),
|
|
28260
28299
|
(he = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : he.find((h) => h.id === "empty-layer-4")
|
|
@@ -28282,10 +28321,10 @@ class qs {
|
|
|
28282
28321
|
protected: !1,
|
|
28283
28322
|
draft: !1,
|
|
28284
28323
|
layers: [
|
|
28285
|
-
(
|
|
28324
|
+
(A = (Ae = this.originStyle) == null ? void 0 : Ae.dark.layers) == null ? void 0 : A.find((h) => h.id === "land"),
|
|
28286
28325
|
(Ce = (fe = this.originStyle) == null ? void 0 : fe.dark.layers) == null ? void 0 : Ce.find((h) => h.id === "water"),
|
|
28287
28326
|
(Oe = (De = this.originStyle) == null ? void 0 : De.dark.layers) == null ? void 0 : Oe.find((h) => h.id === "ice-area-fill"),
|
|
28288
|
-
(V = (
|
|
28327
|
+
(V = (R = this.originStyle) == null ? void 0 : R.dark.layers) == null ? void 0 : V.find((h) => h.id === "ice-area-line"),
|
|
28289
28328
|
(Ue = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "empty-layer-0"),
|
|
28290
28329
|
(ze = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : ze.find((h) => h.id === "empty-layer-1"),
|
|
28291
28330
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "country-boundaries"),
|
|
@@ -28315,8 +28354,8 @@ class qs {
|
|
|
28315
28354
|
metadata: (It = this.originStyle) == null ? void 0 : It.satellite.metadata,
|
|
28316
28355
|
center: [55.13, 25.12],
|
|
28317
28356
|
zoom: 12,
|
|
28318
|
-
fog: (
|
|
28319
|
-
imports: (
|
|
28357
|
+
fog: (Rt = this.originStyle) == null ? void 0 : Rt.satellite.fog,
|
|
28358
|
+
imports: (At = this.originStyle) == null ? void 0 : At.satellite.imports,
|
|
28320
28359
|
sources: (Dt = this.originStyle) == null ? void 0 : Dt.satellite.sources,
|
|
28321
28360
|
sprite: (Ot = this.originStyle) == null ? void 0 : Ot.satellite.sprite,
|
|
28322
28361
|
glyphs: (Bt = this.originStyle) == null ? void 0 : Bt.satellite.glyphs,
|
|
@@ -28354,11 +28393,11 @@ class qs {
|
|
|
28354
28393
|
nautical: {
|
|
28355
28394
|
version: 8,
|
|
28356
28395
|
name: "nautical",
|
|
28357
|
-
metadata: (
|
|
28396
|
+
metadata: (Ro = this.originStyle) == null ? void 0 : Ro.nautical.metadata,
|
|
28358
28397
|
center: [-34, 38],
|
|
28359
28398
|
zoom: 2,
|
|
28360
28399
|
terrain: null,
|
|
28361
|
-
imports: (
|
|
28400
|
+
imports: (Ao = this.originStyle) == null ? void 0 : Ao.nautical.imports,
|
|
28362
28401
|
sources: (Do = this.originStyle) == null ? void 0 : Do.nautical.sources,
|
|
28363
28402
|
sprite: (Oo = this.originStyle) == null ? void 0 : Oo.nautical.sprite,
|
|
28364
28403
|
glyphs: (Bo = this.originStyle) == null ? void 0 : Bo.nautical.glyphs,
|