@idmwx/idmui-gl3 5.5.4 → 5.5.5
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 +58 -56
- package/dist/index.umd.cjs +3 -3
- package/dist/mapbox/src/index.vue.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { LayerHelper as Ke, CompanyHelper as Xe } from "@idm-plugin/tag";
|
|
|
5
5
|
import F from "moment";
|
|
6
6
|
import le from "axios";
|
|
7
7
|
import Ge from "moment-timezone";
|
|
8
|
-
import { resolveComponent as z, openBlock as g, createElementBlock as f, createElementVNode as s, normalizeStyle as J, createVNode as k, withCtx as ae, normalizeClass as H, Fragment as _, renderList as N, toDisplayString as B, createCommentVNode as O, createBlock as pt, createTextVNode as
|
|
8
|
+
import { resolveComponent as z, openBlock as g, createElementBlock as f, createElementVNode as s, normalizeStyle as J, createVNode as k, withCtx as ae, normalizeClass as H, Fragment as _, renderList as N, toDisplayString as B, createCommentVNode as O, createBlock as pt, createTextVNode as Y, withDirectives as fe, createStaticVNode as mt, vShow as we, defineComponent as ut, withModifiers as Ue, mergeProps as S } from "vue";
|
|
9
9
|
import * as D from "@turf/turf";
|
|
10
10
|
import gt from "@mapbox/sphericalmercator";
|
|
11
11
|
import ve from "mapbox-gl";
|
|
@@ -63,7 +63,7 @@ const T = (t, e) => {
|
|
|
63
63
|
default: void 0
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "
|
|
66
|
+
emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "toggleWindParticeVersion", "toggleCurrentParticeVersion", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion", "login", "forecastModel"],
|
|
67
67
|
data() {
|
|
68
68
|
return {
|
|
69
69
|
autoActive: !0,
|
|
@@ -223,13 +223,13 @@ const T = (t, e) => {
|
|
|
223
223
|
!t.collected && ((e = this.layers.weather.filter((a) => a.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((a) => a.collected)[0].collected = !1), t.collected = !t.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
|
|
224
224
|
},
|
|
225
225
|
handleToggleWindParticle() {
|
|
226
|
-
!this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : (this.showCurrentParticle && (this.$emit("toggleCurrentParticle", !1), this.showCurrentIsoband || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "current"))), this.$emit("toggleWindParticle", !this.showWindParticle), this.$emit("
|
|
226
|
+
!this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : (this.showCurrentParticle && (this.$emit("toggleCurrentParticle", !1), this.showCurrentIsoband || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "current"))), this.$emit("toggleWindParticle", !this.showWindParticle), this.$emit("toggleWindParticeVersion"));
|
|
227
227
|
},
|
|
228
228
|
handleToggleWindFeather() {
|
|
229
229
|
this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }), this.$emit("toggleWindFeather", !this.showWindFeather);
|
|
230
230
|
},
|
|
231
231
|
handleToggleCurrentParticle() {
|
|
232
|
-
!this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current",
|
|
232
|
+
!this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", enabled: !0, type: "json", particle: !0 }) : (this.showWindParticle && (this.$emit("toggleWindParticle", !1), this.showWindFeather || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "wind"))), this.$emit("toggleCurrentParticle", !this.showCurrentParticle), this.$emit("toggleCurrentParticeVersion"));
|
|
233
233
|
},
|
|
234
234
|
handleToggleCurrentIsoband() {
|
|
235
235
|
this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }), this.$emit("toggleCurrentIsoband", !this.showCurrentIsoband);
|
|
@@ -565,7 +565,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
565
565
|
default: ae(() => {
|
|
566
566
|
var b, u, A, w, m, v;
|
|
567
567
|
return [
|
|
568
|
-
|
|
568
|
+
Y(B(n.name) + " ", 1),
|
|
569
569
|
d !== 0 ? (g(), f("span", qt, B(n.resolution) + "km " + B(n.length) + "days", 1)) : O("", !0),
|
|
570
570
|
d === 0 ? (g(), f("div", Vt, "Provides the best forecast")) : (A = (u = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : u.meta) != null && A.initialisationTime ? (g(), f("div", Zt, "Update: " + B(o.computeDateZ((v = (m = (w = n == null ? void 0 : n.update) == null ? void 0 : w.default) == null ? void 0 : m.meta) == null ? void 0 : v.initialisationTime)), 1)) : O("", !0)
|
|
571
571
|
];
|
|
@@ -4523,7 +4523,7 @@ const Da = {
|
|
|
4523
4523
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
4524
4524
|
},
|
|
4525
4525
|
handleDateChange() {
|
|
4526
|
-
var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W,
|
|
4526
|
+
var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge;
|
|
4527
4527
|
if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4528
4528
|
const te = F(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((Q) => Q.properties.date === te.format() && !Q.properties.disabled), Ae = this.handleComputePolygons(oe), ie = D.featureCollection([...oe]);
|
|
4529
4529
|
Ae.forEach((Q) => {
|
|
@@ -4545,7 +4545,7 @@ const Da = {
|
|
|
4545
4545
|
for (const Q of oe)
|
|
4546
4546
|
if (!Q.properties.disabled) {
|
|
4547
4547
|
let q = "#f44336";
|
|
4548
|
-
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (y = Q.properties) == null ? void 0 : y.wind) == null ? void 0 : L.spd) >= 32.7 && ((M = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : M.spd) < 41.5 ? q = "#f44336" : ((j = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : j.spd) >= 41.5 && ((
|
|
4548
|
+
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (y = Q.properties) == null ? void 0 : y.wind) == null ? void 0 : L.spd) >= 32.7 && ((M = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : M.spd) < 41.5 ? q = "#f44336" : ((j = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : j.spd) >= 41.5 && ((K = (W = Q.properties) == null ? void 0 : W.wind) == null ? void 0 : K.spd) < 51 ? q = "#f903d0" : ((V = (X = Q.properties) == null ? void 0 : X.wind) == null ? void 0 : V.spd) >= 51 ? q = "#8702f9" : q = "#f44336";
|
|
4549
4549
|
const ye = `<svg t="1719918955501"
|
|
4550
4550
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4551
4551
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4714,7 +4714,7 @@ function Wa(t, e, a, r, i, o) {
|
|
|
4714
4714
|
}, ""),
|
|
4715
4715
|
s("div", za, [
|
|
4716
4716
|
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (g(), f("span", Ma, B((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : O("", !0),
|
|
4717
|
-
|
|
4717
|
+
Y(B((n = i.activeTropicals) == null ? void 0 : n.name), 1)
|
|
4718
4718
|
]),
|
|
4719
4719
|
s("div", Ta, " Last update: " + B(o.computeTime(((b = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : b.updated) || ((w = (A = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : A.filter((M) => !M.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
4720
4720
|
]),
|
|
@@ -4735,13 +4735,13 @@ function Wa(t, e, a, r, i, o) {
|
|
|
4735
4735
|
e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4736
4736
|
s("div", Ra, [
|
|
4737
4737
|
(g(!0), f(_, null, N((P = i.activeTropicals) == null ? void 0 : P.forecasts, (M, I) => {
|
|
4738
|
-
var j, W,
|
|
4738
|
+
var j, W, K, X;
|
|
4739
4739
|
return g(), f("div", {
|
|
4740
4740
|
key: I,
|
|
4741
4741
|
class: H([
|
|
4742
4742
|
"model",
|
|
4743
4743
|
M.disabled ? "" : "active",
|
|
4744
|
-
I > 0 && I < ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) - 1 && ((
|
|
4744
|
+
I > 0 && I < ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) - 1 && ((X = (K = i.activeTropicals) == null ? void 0 : K.forecasts) == null ? void 0 : X.length) > 2 ? "center-child" : ""
|
|
4745
4745
|
]),
|
|
4746
4746
|
onClick: (V) => o.handleForecastToggle(M)
|
|
4747
4747
|
}, [
|
|
@@ -5570,7 +5570,7 @@ const ui = {
|
|
|
5570
5570
|
initTableData(t) {
|
|
5571
5571
|
var e, a, r, i, o, l, c, h, p;
|
|
5572
5572
|
this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(t, F(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
5573
|
-
var d, b, u, A, w, m, v, y, L, P, M, I, j, W,
|
|
5573
|
+
var d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re;
|
|
5574
5574
|
if (!document.getElementById("meteoMainBox"))
|
|
5575
5575
|
return !1;
|
|
5576
5576
|
if (!this.currentHourData)
|
|
@@ -5579,7 +5579,7 @@ const ui = {
|
|
|
5579
5579
|
const ne = Ge(this.ts).tz(this.positionGmt).add(3 * se, "h").format();
|
|
5580
5580
|
this.tableData.hours.push(ne);
|
|
5581
5581
|
const x = ((d = We.pickHourly(t, ne)) == null ? void 0 : d[0]) || {};
|
|
5582
|
-
this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (y = x == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((M = (P = x == null ? void 0 : x.weather) == null ? void 0 : P.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((j = (I = x == null ? void 0 : x.weather) == null ? void 0 : I.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((
|
|
5582
|
+
this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (y = x == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((M = (P = x == null ? void 0 : x.weather) == null ? void 0 : P.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((j = (I = x == null ? void 0 : x.weather) == null ? void 0 : I.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((K = (W = x == null ? void 0 : x.wave) == null ? void 0 : W.sig) == null ? void 0 : K.height, 1) ?? "-"), this.tableData.sigwaveDir.push((V = (X = x == null ? void 0 : x.wave) == null ? void 0 : X.sig) == null ? void 0 : V.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = x == null ? void 0 : x.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = x == null ? void 0 : x.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (pe = x == null ? void 0 : x.wave) == null ? void 0 : pe.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (ue = x == null ? void 0 : x.wave) == null ? void 0 : ue.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = x == null ? void 0 : x.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (Ae = x == null ? void 0 : x.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Q = x == null ? void 0 : x.current) == null ? void 0 : Q.speed, 1) ?? "-"), this.tableData.currentDir.push((q = x == null ? void 0 : x.current) == null ? void 0 : q.bearing), this.tableData.seaLevel.push(this.roundPrecision(x == null ? void 0 : x.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(x == null ? void 0 : x.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ye = x == null ? void 0 : x.weather) == null ? void 0 : ye.url), this.tableData.weatherNames.push(((re = x == null ? void 0 : x.weather) == null ? void 0 : re.name) ?? "-");
|
|
5583
5583
|
}
|
|
5584
5584
|
});
|
|
5585
5585
|
},
|
|
@@ -5702,7 +5702,7 @@ const ui = {
|
|
|
5702
5702
|
class: "main-box flex-center"
|
|
5703
5703
|
};
|
|
5704
5704
|
function Br(t, e, a, r, i, o) {
|
|
5705
|
-
var p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W,
|
|
5705
|
+
var p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, U, qe, Ve, Ze, $e, et, tt, at, it, rt;
|
|
5706
5706
|
const l = z("LocationFilled"), c = z("ElIcon"), h = z("ElTooltip");
|
|
5707
5707
|
return fe((g(), f("div", gi, [
|
|
5708
5708
|
s("div", Ai, [
|
|
@@ -5762,7 +5762,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5762
5762
|
}, 8, ["content"]),
|
|
5763
5763
|
s("div", Bi, [
|
|
5764
5764
|
s("div", null, [
|
|
5765
|
-
|
|
5765
|
+
Y(B(o.roundPrecision((A = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : A.temp, 0)), 1),
|
|
5766
5766
|
e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5767
5767
|
])
|
|
5768
5768
|
]),
|
|
@@ -5812,7 +5812,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5812
5812
|
colspan: "1",
|
|
5813
5813
|
class: "tr-title"
|
|
5814
5814
|
}, [
|
|
5815
|
-
|
|
5815
|
+
Y("Hours"),
|
|
5816
5816
|
s("span", { class: "unit" }, "(LT)")
|
|
5817
5817
|
], -1)),
|
|
5818
5818
|
(g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
|
|
@@ -5827,7 +5827,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5827
5827
|
colspan: "1",
|
|
5828
5828
|
class: "tr-title"
|
|
5829
5829
|
}, [
|
|
5830
|
-
|
|
5830
|
+
Y("UTC"),
|
|
5831
5831
|
s("span", { class: "unit" })
|
|
5832
5832
|
], -1)),
|
|
5833
5833
|
(g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
|
|
@@ -5870,7 +5870,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5870
5870
|
colspan: "1",
|
|
5871
5871
|
class: "tr-title"
|
|
5872
5872
|
}, [
|
|
5873
|
-
|
|
5873
|
+
Y("Temp"),
|
|
5874
5874
|
s("span", { class: "unit" }, "°C")
|
|
5875
5875
|
], -1)),
|
|
5876
5876
|
(g(!0), f(_, null, N(i.tableData.temp, (C, E) => (g(), f("td", {
|
|
@@ -5885,7 +5885,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5885
5885
|
colspan: "1",
|
|
5886
5886
|
class: "tr-title"
|
|
5887
5887
|
}, [
|
|
5888
|
-
|
|
5888
|
+
Y("Precip"),
|
|
5889
5889
|
s("span", { class: "unit" }, "mm")
|
|
5890
5890
|
], -1)),
|
|
5891
5891
|
(g(!0), f(_, null, N(i.tableData.precip1h, (C, E) => (g(), f("td", {
|
|
@@ -5900,7 +5900,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5900
5900
|
colspan: "1",
|
|
5901
5901
|
class: "tr-title"
|
|
5902
5902
|
}, [
|
|
5903
|
-
|
|
5903
|
+
Y("Visibility"),
|
|
5904
5904
|
s("span", { class: "unit" }, "nm")
|
|
5905
5905
|
], -1)),
|
|
5906
5906
|
(g(!0), f(_, null, N(i.tableData.visibility, (C, E) => (g(), f("td", {
|
|
@@ -5915,7 +5915,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5915
5915
|
colspan: "1",
|
|
5916
5916
|
class: "tr-title"
|
|
5917
5917
|
}, [
|
|
5918
|
-
|
|
5918
|
+
Y("Wind gust"),
|
|
5919
5919
|
s("span", { class: "unit" }, "kts")
|
|
5920
5920
|
], -1)),
|
|
5921
5921
|
(g(!0), f(_, null, N(i.tableData.windGust, (C, E) => (g(), f("td", {
|
|
@@ -5941,7 +5941,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5941
5941
|
colspan: "1",
|
|
5942
5942
|
class: "tr-title"
|
|
5943
5943
|
}, [
|
|
5944
|
-
|
|
5944
|
+
Y("Hours"),
|
|
5945
5945
|
s("span", { class: "unit" }, "(LT)")
|
|
5946
5946
|
], -1)),
|
|
5947
5947
|
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
@@ -5956,7 +5956,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5956
5956
|
colspan: "1",
|
|
5957
5957
|
class: "tr-title"
|
|
5958
5958
|
}, [
|
|
5959
|
-
|
|
5959
|
+
Y("UTC"),
|
|
5960
5960
|
s("span", { class: "unit" })
|
|
5961
5961
|
], -1)),
|
|
5962
5962
|
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
@@ -5971,7 +5971,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5971
5971
|
colspan: "1",
|
|
5972
5972
|
class: "tr-title"
|
|
5973
5973
|
}, [
|
|
5974
|
-
|
|
5974
|
+
Y("Wind"),
|
|
5975
5975
|
s("span", { class: "unit" }, "kts")
|
|
5976
5976
|
], -1)),
|
|
5977
5977
|
(g(!0), f(_, null, N(i.tableData.windSpeed, (C, E) => (g(), f("td", {
|
|
@@ -5993,7 +5993,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5993
5993
|
colspan: "1",
|
|
5994
5994
|
class: "tr-title"
|
|
5995
5995
|
}, [
|
|
5996
|
-
|
|
5996
|
+
Y("Sig Wave"),
|
|
5997
5997
|
s("span", { class: "unit" }, "m")
|
|
5998
5998
|
], -1)),
|
|
5999
5999
|
(g(!0), f(_, null, N(i.tableData.sigwaveHeight, (C, E) => (g(), f("td", {
|
|
@@ -6015,7 +6015,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6015
6015
|
colspan: "1",
|
|
6016
6016
|
class: "tr-title"
|
|
6017
6017
|
}, [
|
|
6018
|
-
|
|
6018
|
+
Y("Wind Wave"),
|
|
6019
6019
|
s("span", { class: "unit" }, "m")
|
|
6020
6020
|
], -1)),
|
|
6021
6021
|
(g(!0), f(_, null, N(i.tableData.windwaveHeight, (C, E) => (g(), f("td", {
|
|
@@ -6037,7 +6037,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6037
6037
|
colspan: "1",
|
|
6038
6038
|
class: "tr-title"
|
|
6039
6039
|
}, [
|
|
6040
|
-
|
|
6040
|
+
Y("Swell"),
|
|
6041
6041
|
s("span", { class: "unit" }, "m")
|
|
6042
6042
|
], -1)),
|
|
6043
6043
|
(g(!0), f(_, null, N(i.tableData.swellHeight, (C, E) => (g(), f("td", {
|
|
@@ -6059,7 +6059,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6059
6059
|
colspan: "1",
|
|
6060
6060
|
class: "tr-title"
|
|
6061
6061
|
}, [
|
|
6062
|
-
|
|
6062
|
+
Y("Current"),
|
|
6063
6063
|
s("span", { class: "unit" }, "kts")
|
|
6064
6064
|
], -1)),
|
|
6065
6065
|
(g(!0), f(_, null, N(i.tableData.currentSpeed, (C, E) => (g(), f("td", {
|
|
@@ -6086,7 +6086,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6086
6086
|
colspan: "1",
|
|
6087
6087
|
class: "tr-title"
|
|
6088
6088
|
}, [
|
|
6089
|
-
|
|
6089
|
+
Y("Hours"),
|
|
6090
6090
|
s("span", { class: "unit" }, "(LT)")
|
|
6091
6091
|
], -1)),
|
|
6092
6092
|
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
@@ -6101,7 +6101,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6101
6101
|
colspan: "1",
|
|
6102
6102
|
class: "tr-title"
|
|
6103
6103
|
}, [
|
|
6104
|
-
|
|
6104
|
+
Y("UTC"),
|
|
6105
6105
|
s("span", { class: "unit" })
|
|
6106
6106
|
], -1)),
|
|
6107
6107
|
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
@@ -6116,7 +6116,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6116
6116
|
colspan: "1",
|
|
6117
6117
|
class: "tr-title"
|
|
6118
6118
|
}, [
|
|
6119
|
-
|
|
6119
|
+
Y("SeaLevel"),
|
|
6120
6120
|
s("span", { class: "unit" }, "m")
|
|
6121
6121
|
], -1)),
|
|
6122
6122
|
(g(!0), f(_, null, N(i.tableData.seaLevel, (C, E) => (g(), f("td", {
|
|
@@ -6131,7 +6131,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6131
6131
|
colspan: "1",
|
|
6132
6132
|
class: "tr-title"
|
|
6133
6133
|
}, [
|
|
6134
|
-
|
|
6134
|
+
Y("SeaTemp"),
|
|
6135
6135
|
s("span", { class: "unit" }, "°C")
|
|
6136
6136
|
], -1)),
|
|
6137
6137
|
(g(!0), f(_, null, N(i.tableData.seaTemp, (C, E) => (g(), f("td", {
|
|
@@ -6181,7 +6181,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6181
6181
|
s("div", cr, [
|
|
6182
6182
|
s("div", hr, [
|
|
6183
6183
|
e[32] || (e[32] = s("div", null, "Wind", -1)),
|
|
6184
|
-
s("div", null, B((V = (
|
|
6184
|
+
s("div", null, B((V = (X = (K = i.currentHourData) == null ? void 0 : K.weather) == null ? void 0 : X.wind) == null ? void 0 : V.direction) + "/" + B(o.roundPrecision((he = (ce = (ee = i.currentHourData) == null ? void 0 : ee.weather) == null ? void 0 : ce.wind) == null ? void 0 : he.kts, 1)) + "kts/BF" + B((me = (pe = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : pe.wind) == null ? void 0 : me.scale) + "/" + B(o.roundPrecision((te = (ge = (ue = i.currentHourData) == null ? void 0 : ue.weather) == null ? void 0 : ge.wind) == null ? void 0 : te.gusts, 1)) + " kts", 1)
|
|
6185
6185
|
]),
|
|
6186
6186
|
s("div", dr, [
|
|
6187
6187
|
e[33] || (e[33] = s("div", null, "Sig wave", -1)),
|
|
@@ -6201,7 +6201,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6201
6201
|
s("div", gr, [
|
|
6202
6202
|
s("div", Ar, [
|
|
6203
6203
|
e[36] || (e[36] = s("div", null, "Current", -1)),
|
|
6204
|
-
s("div", null, B((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + B(o.roundPrecision((
|
|
6204
|
+
s("div", null, B((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + B(o.roundPrecision((U = (Fe = i.currentHourData) == null ? void 0 : Fe.current) == null ? void 0 : U.kts, 2)) + "kts", 1)
|
|
6205
6205
|
]),
|
|
6206
6206
|
s("div", yr, [
|
|
6207
6207
|
e[37] || (e[37] = s("div", null, "Sea level", -1)),
|
|
@@ -8096,7 +8096,8 @@ const Mo = {
|
|
|
8096
8096
|
activeWindLayer: !1,
|
|
8097
8097
|
showWindFeather: !1,
|
|
8098
8098
|
showWindParticle: !1,
|
|
8099
|
-
|
|
8099
|
+
toggleWindParticeVersion: 0,
|
|
8100
|
+
toggleCurrentParticeVersion: 0,
|
|
8100
8101
|
showCurrentIsoband: !1,
|
|
8101
8102
|
showCurrentParticle: !1,
|
|
8102
8103
|
enc: "",
|
|
@@ -8219,8 +8220,8 @@ const Mo = {
|
|
|
8219
8220
|
);
|
|
8220
8221
|
const M = await Promise.all(P);
|
|
8221
8222
|
this.weatherLayers = {}, M.map((I) => {
|
|
8222
|
-
var
|
|
8223
|
-
const j = ((
|
|
8223
|
+
var K, X, V, ee;
|
|
8224
|
+
const j = ((K = I == null ? void 0 : I.data) == null ? void 0 : K.data) || (I == null ? void 0 : I.data), W = (V = (X = I == null ? void 0 : I.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
|
|
8224
8225
|
W && j && (this.weatherLayers[W] = {
|
|
8225
8226
|
raw: j,
|
|
8226
8227
|
type: ((ee = I == null ? void 0 : I.config) == null ? void 0 : ee.responseType) === "blob" ? "image" : "json",
|
|
@@ -8232,8 +8233,8 @@ const Mo = {
|
|
|
8232
8233
|
key: "tropicals"
|
|
8233
8234
|
}
|
|
8234
8235
|
}).then((I) => {
|
|
8235
|
-
var
|
|
8236
|
-
const j = nt.convert2Geojson(((
|
|
8236
|
+
var K, X, V;
|
|
8237
|
+
const j = nt.convert2Geojson(((K = I == null ? void 0 : I.data) == null ? void 0 : K.data) || (I == null ? void 0 : I.data)), W = (V = (X = I == null ? void 0 : I.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
|
|
8237
8238
|
this.weatherLayers[W] = {
|
|
8238
8239
|
data: j,
|
|
8239
8240
|
active: !0,
|
|
@@ -8660,13 +8661,13 @@ const Mo = {
|
|
|
8660
8661
|
handleParticle(t) {
|
|
8661
8662
|
this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
|
|
8662
8663
|
var i;
|
|
8663
|
-
return r.key === t.key ? r.particle = t.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1), r;
|
|
8664
|
+
return r.key === t.key ? r.particle = t.particle : t.particle && ((i = Object.keys(r)) != null && i.some((o) => o === "particle")) && (r.particle = !1), r;
|
|
8664
8665
|
});
|
|
8665
8666
|
let e = localStorage.getItem("activeWeatherLayersCache");
|
|
8666
8667
|
const a = JSON.parse(e) || [];
|
|
8667
8668
|
a == null || a.forEach((r) => {
|
|
8668
8669
|
var i;
|
|
8669
|
-
r.key === t.key ? r.particle = t.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1);
|
|
8670
|
+
r.key === t.key ? r.particle = t.particle : t.particle && ((i = Object.keys(r)) != null && i.some((o) => o === "particle")) && (r.particle = !1);
|
|
8670
8671
|
}), localStorage.setItem("activeWeatherLayersCache", JSON.stringify(a)), this.fetchWeatherLayers({ tropicals: !1 });
|
|
8671
8672
|
},
|
|
8672
8673
|
handleToggleVersion() {
|
|
@@ -8680,7 +8681,7 @@ const Mo = {
|
|
|
8680
8681
|
};
|
|
8681
8682
|
function Qo(t, e, a, r, i, o) {
|
|
8682
8683
|
var Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe;
|
|
8683
|
-
const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"), y = z("IdmWindBarb"), L = z("IdmWindParticle"), P = z("IdmPrecip3h"), M = z("IdmVisibility"), I = z("IdmWaterTemp"), j = z("IdmTemp"), W = z("IdmArctic"),
|
|
8684
|
+
const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"), y = z("IdmWindBarb"), L = z("IdmWindParticle"), P = z("IdmPrecip3h"), M = z("IdmVisibility"), I = z("IdmWaterTemp"), j = z("IdmTemp"), W = z("IdmArctic"), K = z("IdmWarZone"), X = z("IdmGmdssArea"), V = z("IdmEcaZone"), ee = z("IdmAlertZone"), ce = z("IdmPort"), he = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ge = z("IdmLatLng"), te = z("IdmMeasure"), oe = z("IdmPoint");
|
|
8684
8685
|
return a.map ? (g(), f("div", To, [
|
|
8685
8686
|
k(l, S({
|
|
8686
8687
|
ref: "layer",
|
|
@@ -8697,14 +8698,15 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8697
8698
|
"forecast-model": a.forecastModel,
|
|
8698
8699
|
onWeather: o.handleWeatherLayerChange,
|
|
8699
8700
|
onOther: o.handleOtherLayerChange,
|
|
8700
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
8701
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
8702
|
-
onToggleCurrentParticle: e[2] || (e[2] = (
|
|
8703
|
-
onToggleCurrentIsoband: e[3] || (e[3] = (
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8701
|
+
onToggleWindParticle: e[0] || (e[0] = (U) => i.showWindParticle = U),
|
|
8702
|
+
onToggleWindFeather: e[1] || (e[1] = (U) => i.showWindFeather = U),
|
|
8703
|
+
onToggleCurrentParticle: e[2] || (e[2] = (U) => i.showCurrentParticle = U),
|
|
8704
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (U) => i.showCurrentIsoband = U),
|
|
8705
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (U) => i.toggleWindParticeVersion = Math.random()),
|
|
8706
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (U) => i.toggleCurrentParticeVersion = Math.random()),
|
|
8707
|
+
onCoordinate: e[6] || (e[6] = (U) => i.showCoord = U),
|
|
8708
|
+
onMeasure: e[7] || (e[7] = (U) => i.showMeasure = U),
|
|
8709
|
+
onPoint: e[8] || (e[8] = (U) => i.showPoint = U),
|
|
8708
8710
|
on3d: o.handle3dToggle,
|
|
8709
8711
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8710
8712
|
}), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
@@ -8714,7 +8716,7 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8714
8716
|
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.enc,
|
|
8715
8717
|
"toggle-version": a.toggleVersion
|
|
8716
8718
|
}, t.$attrs, {
|
|
8717
|
-
onEnc: e[
|
|
8719
|
+
onEnc: e[9] || (e[9] = (U) => i.enc = U)
|
|
8718
8720
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8719
8721
|
k(h, S({
|
|
8720
8722
|
map: a.map,
|
|
@@ -8770,14 +8772,14 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8770
8772
|
"before-layer": a.beforeLayer,
|
|
8771
8773
|
"show-current-isoband": i.showCurrentIsoband,
|
|
8772
8774
|
"show-current-particle": i.showCurrentParticle,
|
|
8773
|
-
|
|
8775
|
+
toggleParticeVersion: i.toggleCurrentParticeVersion,
|
|
8774
8776
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
8775
8777
|
"toggle-version": a.toggleVersion,
|
|
8776
8778
|
"weather-layers": i.weatherLayers
|
|
8777
8779
|
}, t.$attrs, {
|
|
8778
8780
|
onParticle: o.handleParticle,
|
|
8779
8781
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8780
|
-
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "
|
|
8782
|
+
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggleParticeVersion", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
8781
8783
|
k(v, S({
|
|
8782
8784
|
viewport: i.viewport,
|
|
8783
8785
|
factor: (xe = i.weatherLayers) == null ? void 0 : xe["current-particle"],
|
|
@@ -8794,12 +8796,12 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8794
8796
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
8795
8797
|
"show-wind-feather": i.showWindFeather,
|
|
8796
8798
|
"show-wind-particle": i.showWindParticle,
|
|
8797
|
-
|
|
8799
|
+
toggleParticeVersion: i.toggleWindParticeVersion
|
|
8798
8800
|
}, t.$attrs, {
|
|
8799
8801
|
"toggle-version": a.toggleVersion,
|
|
8800
8802
|
"weather-layers": i.weatherLayers,
|
|
8801
8803
|
onParticle: o.handleParticle
|
|
8802
|
-
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "
|
|
8804
|
+
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggleParticeVersion", "toggle-version", "weather-layers", "onParticle"]),
|
|
8803
8805
|
k(L, S({
|
|
8804
8806
|
viewport: i.viewport,
|
|
8805
8807
|
factor: (Ee = i.weatherLayers) == null ? void 0 : Ee["wind-particle"],
|
|
@@ -8836,12 +8838,12 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8836
8838
|
"before-layer": a.beforeLayer,
|
|
8837
8839
|
"toggle-version": a.toggleVersion
|
|
8838
8840
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8839
|
-
k(
|
|
8841
|
+
k(K, S({
|
|
8840
8842
|
map: a.map,
|
|
8841
8843
|
zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
|
|
8842
8844
|
"before-layer": a.beforeLayer
|
|
8843
8845
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8844
|
-
k(
|
|
8846
|
+
k(X, S({
|
|
8845
8847
|
map: a.map,
|
|
8846
8848
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["gmdss-areas"],
|
|
8847
8849
|
"before-layer": a.beforeLayer
|