@idmwx/idmui-gl3 4.9.2 → 4.9.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 +65 -71
- package/dist/index.umd.cjs +7 -7
- package/dist/mapbox/src/components/other/point.vue.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var K0 = Object.defineProperty;
|
|
|
2
2
|
var J0 = (z, M, b) => M in z ? K0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
|
|
3
3
|
var K = (z, M, b) => (J0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
4
|
import { LayerHelper as I0, CompanyHelper as D0 } from "@idm-plugin/tag";
|
|
5
|
-
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as w, withCtx as e0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as T, createCommentVNode as _, createTextVNode as $, withDirectives as X0, createStaticVNode as Y0, vShow as w0, defineComponent as V0, withModifiers as
|
|
5
|
+
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as w, withCtx as e0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as T, createCommentVNode as _, createTextVNode as $, withDirectives as X0, createStaticVNode as Y0, vShow as w0, defineComponent as V0, withModifiers as E0, mergeProps as Q } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import Z0 from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
8
|
+
import M0 from "moment";
|
|
9
9
|
import y0 from "mapbox-gl";
|
|
10
10
|
import { TropicalHelper as _0, LngLatHelper as Z, LaneHelper as g0 } from "@idm-plugin/geo";
|
|
11
|
-
import { Meteo2Assist as
|
|
11
|
+
import { Meteo2Assist as x0 } from "@idm-plugin/meteo";
|
|
12
12
|
import N0 from "axios";
|
|
13
13
|
const k = (z, M) => {
|
|
14
14
|
const b = z.__vccOpts || z;
|
|
@@ -3881,7 +3881,7 @@ const a2 = {
|
|
|
3881
3881
|
computeTime() {
|
|
3882
3882
|
return function(z) {
|
|
3883
3883
|
if (z) {
|
|
3884
|
-
const M =
|
|
3884
|
+
const M = M0(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
3885
3885
|
return `${M.format("MMM-DD,HHmm")}[ UTC ${b} ] ( ${M == null ? void 0 : M.fromNow()} )`;
|
|
3886
3886
|
}
|
|
3887
3887
|
return "-";
|
|
@@ -3918,7 +3918,7 @@ const a2 = {
|
|
|
3918
3918
|
methods: {
|
|
3919
3919
|
handleRefresh() {
|
|
3920
3920
|
var O, p;
|
|
3921
|
-
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M =
|
|
3921
|
+
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = M0().utc().hour(), b = [];
|
|
3922
3922
|
z.forEach((o) => {
|
|
3923
3923
|
var A, t, q;
|
|
3924
3924
|
(A = o.properties) != null && A.name && !b.includes((t = o.properties) == null ? void 0 : t.name) && b.push((q = o.properties) == null ? void 0 : q.name);
|
|
@@ -3937,9 +3937,9 @@ const a2 = {
|
|
|
3937
3937
|
((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && t === void 0 && (t = n), ((W = a.geometry) == null ? void 0 : W.type) === "LineString" && ((h = a.properties) == null || h.type);
|
|
3938
3938
|
}), q.map((a, n) => {
|
|
3939
3939
|
var s, d, m, L, W, h, R;
|
|
3940
|
-
if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && (a.properties.name = o, a.properties.format =
|
|
3941
|
-
a.properties.format =
|
|
3942
|
-
const y =
|
|
3940
|
+
if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((m = a.geometry) == null ? void 0 : m.type) === "Point" && ((L = a.properties) == null ? void 0 : L.type) === "forecast" && (a.properties.name = o, a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((W = a.geometry) == null ? void 0 : W.type) === "Point" && ((h = a.properties) == null ? void 0 : h.type) === "history") {
|
|
3941
|
+
a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3942
|
+
const y = M0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === M0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3943
3943
|
a.properties.showHistoryLabel = y || n === A, a.properties.showNameLabel = n === A, a.properties.name = o;
|
|
3944
3944
|
}
|
|
3945
3945
|
return a;
|
|
@@ -4212,9 +4212,9 @@ const a2 = {
|
|
|
4212
4212
|
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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
|
|
4213
4213
|
},
|
|
4214
4214
|
handleDateChange() {
|
|
4215
|
-
var z, M, b, O, p, o, A, t, q, r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0,
|
|
4215
|
+
var z, M, b, O, p, o, A, t, q, r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0, p0, h0, m0, u0;
|
|
4216
4216
|
if ((z = this.interpolateMarkers) == null || z.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
4217
|
-
const r0 =
|
|
4217
|
+
const r0 = M0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), B0 = this.handleComputePolygons(d0), s0 = C.featureCollection([...d0]);
|
|
4218
4218
|
B0.forEach((P) => {
|
|
4219
4219
|
s0.features.push(P);
|
|
4220
4220
|
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
@@ -4233,15 +4233,15 @@ const a2 = {
|
|
|
4233
4233
|
})), this.interpolateMarkers = [];
|
|
4234
4234
|
for (const P of d0)
|
|
4235
4235
|
if (!P.properties.disabled) {
|
|
4236
|
-
let
|
|
4237
|
-
((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ?
|
|
4236
|
+
let b0 = "#f44336";
|
|
4237
|
+
((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = P.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((L = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : L.spd) >= 24.5 && ((h = (W = P.properties) == null ? void 0 : W.wind) == null ? void 0 : h.spd) < 32.7 ? b0 = "#ff9100" : ((y = (R = P.properties) == null ? void 0 : R.wind) == null ? void 0 : y.spd) >= 32.7 && ((N = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : N.spd) < 41.5 ? b0 = "#f44336" : ((U = (H = P.properties) == null ? void 0 : H.wind) == null ? void 0 : U.spd) >= 41.5 && ((g = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : g.spd) < 51 ? b0 = "#f903d0" : ((A0 = (v = P.properties) == null ? void 0 : v.wind) == null ? void 0 : A0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
|
|
4238
4238
|
const t0 = `<svg t="1719918955501"
|
|
4239
4239
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4240
4240
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4241
4241
|
<path
|
|
4242
4242
|
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"
|
|
4243
|
-
fill="${
|
|
4244
|
-
<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="${
|
|
4243
|
+
fill="${b0}" p-id="18383"></path>
|
|
4244
|
+
<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="${b0}"
|
|
4245
4245
|
p-id="18384"></path>
|
|
4246
4246
|
<path
|
|
4247
4247
|
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"
|
|
@@ -4251,8 +4251,8 @@ const a2 = {
|
|
|
4251
4251
|
fill="#ffffff" p-id="18386"></path>
|
|
4252
4252
|
</svg>`, I = document.createElement("div");
|
|
4253
4253
|
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${t0}</div>`;
|
|
4254
|
-
const
|
|
4255
|
-
if (this.interpolateMarkers.push(
|
|
4254
|
+
const z0 = new y0.Marker(I).setLngLat(P.geometry.coordinates).addTo(this.map);
|
|
4255
|
+
if (this.interpolateMarkers.push(z0), (n0 = P.properties) != null && n0.showCircle) {
|
|
4256
4256
|
const W0 = { radius: 100, coordinates: P.geometry.coordinates }, l0 = { radius: 200, coordinates: P.geometry.coordinates }, L0 = { radius: 500, coordinates: P.geometry.coordinates };
|
|
4257
4257
|
(R0 = this.circleSourceData) == null || R0.features.push(
|
|
4258
4258
|
C.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
@@ -4262,7 +4262,7 @@ const a2 = {
|
|
|
4262
4262
|
C.circle(L0.coordinates, L0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4263
4263
|
);
|
|
4264
4264
|
}
|
|
4265
|
-
(h0 = (
|
|
4265
|
+
(h0 = (p0 = this.map) == null ? void 0 : p0.getSource(this.circleSource)) == null || h0.setData(this.circleSourceData);
|
|
4266
4266
|
}
|
|
4267
4267
|
} else
|
|
4268
4268
|
(m0 = this.map) != null && m0.getSource(this.interpolateSource) && ((u0 = this.map) == null || u0.getSource(this.interpolateSource).setData(this.empty));
|
|
@@ -5075,7 +5075,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5075
5075
|
//! license : MIT
|
|
5076
5076
|
//! github.com/moment/moment-timezone
|
|
5077
5077
|
(function(M, b) {
|
|
5078
|
-
z.exports ? z.exports = b(
|
|
5078
|
+
z.exports ? z.exports = b(M0) : b(M.moment);
|
|
5079
5079
|
})(J2, function(M) {
|
|
5080
5080
|
M.version === void 0 && M.default && (M = M.default);
|
|
5081
5081
|
var b = "0.5.47", O = {}, p = {}, o = {}, A = {}, t = {}, q;
|
|
@@ -5225,7 +5225,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5225
5225
|
}
|
|
5226
5226
|
var u = Y(), B = u.length, X = A0(u), D = [], V, S, F;
|
|
5227
5227
|
for (S = 0; S < X.length; S++) {
|
|
5228
|
-
for (V = new H(
|
|
5228
|
+
for (V = new H(p0(X[S])), F = 0; F < B; F++)
|
|
5229
5229
|
V.scoreOffsetAt(u[F]);
|
|
5230
5230
|
D.push(V);
|
|
5231
5231
|
}
|
|
@@ -5242,10 +5242,10 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5242
5242
|
for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
|
|
5243
5243
|
B = e[i].split("|"), u = B[0], X = i0(u), O[X] = e[i], A[X] = u, v(X, B[2].split(" "));
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function p0(e, i) {
|
|
5246
5246
|
e = i0(e);
|
|
5247
5247
|
var u = O[e], B;
|
|
5248
|
-
return u instanceof R ? u : typeof u == "string" ? (u = new R(u), O[e] = u, u) : p[e] && i !==
|
|
5248
|
+
return u instanceof R ? u : typeof u == "string" ? (u = new R(u), O[e] = u, u) : p[e] && i !== p0 && (B = p0(p[e], p0)) ? (u = O[e] = new R(), u._set(B), u.name = A[e], u) : null;
|
|
5249
5249
|
}
|
|
5250
5250
|
function h0() {
|
|
5251
5251
|
var e, i = [];
|
|
@@ -5278,7 +5278,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5278
5278
|
return null;
|
|
5279
5279
|
var u = e.zones.sort();
|
|
5280
5280
|
return i ? u.map(function(B) {
|
|
5281
|
-
var X =
|
|
5281
|
+
var X = p0(B);
|
|
5282
5282
|
return {
|
|
5283
5283
|
name: B,
|
|
5284
5284
|
offset: X.utcOffset(/* @__PURE__ */ new Date())
|
|
@@ -5289,9 +5289,9 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5289
5289
|
f0(e.zones), u0(e.links), r0(e.countries), I.dataVersion = e.version;
|
|
5290
5290
|
}
|
|
5291
5291
|
function P(e) {
|
|
5292
|
-
return P.didShowError || (P.didShowError = !0, t0("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!
|
|
5292
|
+
return P.didShowError || (P.didShowError = !0, t0("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!p0(e);
|
|
5293
5293
|
}
|
|
5294
|
-
function
|
|
5294
|
+
function b0(e) {
|
|
5295
5295
|
var i = e._f === "X" || e._f === "x";
|
|
5296
5296
|
return !!(e._a && e._tzm === void 0 && !i);
|
|
5297
5297
|
}
|
|
@@ -5300,23 +5300,23 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5300
5300
|
}
|
|
5301
5301
|
function I(e) {
|
|
5302
5302
|
var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], B = M.utc.apply(null, i), X;
|
|
5303
|
-
return !M.isMoment(e) &&
|
|
5303
|
+
return !M.isMoment(e) && b0(B) && (X = p0(u)) && B.add(X.parse(B), "minutes"), B.tz(u), B;
|
|
5304
5304
|
}
|
|
5305
|
-
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone =
|
|
5306
|
-
var
|
|
5305
|
+
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = R0, I.names = h0, I.Zone = R, I.unpack = h, I.unpackBase60 = d, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = m0, I.zonesForCountry = B0;
|
|
5306
|
+
var z0 = M.fn;
|
|
5307
5307
|
M.tz = I, M.defaultZone = null, M.updateOffset = function(e, i) {
|
|
5308
5308
|
var u = M.defaultZone, B;
|
|
5309
|
-
if (e._z === void 0 && (u &&
|
|
5309
|
+
if (e._z === void 0 && (u && b0(e) && !e._isUTC && e.isValid() && (e._d = M.utc(e._a)._d, e.utc().add(u.parse(e), "minutes")), e._z = u), e._z)
|
|
5310
5310
|
if (B = e._z.utcOffset(e), Math.abs(B) < 16 && (B = B / 60), e.utcOffset !== void 0) {
|
|
5311
5311
|
var X = e._z;
|
|
5312
5312
|
e.utcOffset(-B, i), e._z = X;
|
|
5313
5313
|
} else
|
|
5314
5314
|
e.zone(B, i);
|
|
5315
|
-
},
|
|
5315
|
+
}, z0.tz = function(e, i) {
|
|
5316
5316
|
if (e) {
|
|
5317
5317
|
if (typeof e != "string")
|
|
5318
5318
|
throw new Error("Time zone name must be a string, got " + e + " [" + typeof e + "]");
|
|
5319
|
-
return this._z =
|
|
5319
|
+
return this._z = p0(e), this._z ? M.updateOffset(this, i) : t0("Moment Timezone has no data for " + e + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
|
|
5320
5320
|
}
|
|
5321
5321
|
if (this._z)
|
|
5322
5322
|
return this._z.name;
|
|
@@ -5336,8 +5336,8 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5336
5336
|
return arguments.length > 0 && (this._z = null), e.apply(this, arguments);
|
|
5337
5337
|
};
|
|
5338
5338
|
}
|
|
5339
|
-
|
|
5340
|
-
return (a < 2 || a === 2 && n < 9) && t0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = e ?
|
|
5339
|
+
z0.zoneName = W0(z0.zoneName), z0.zoneAbbr = W0(z0.zoneAbbr), z0.utc = l0(z0.utc), z0.local = l0(z0.local), z0.utcOffset = L0(z0.utcOffset), M.tz.setDefault = function(e) {
|
|
5340
|
+
return (a < 2 || a === 2 && n < 9) && t0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = e ? p0(e) : null, M;
|
|
5341
5341
|
};
|
|
5342
5342
|
var o0 = M.momentProperties;
|
|
5343
5343
|
return Object.prototype.toString.call(o0) === "[object Array]" ? (o0.push("_z"), o0.push("_a")) : o0 && (o0._z = null), M;
|
|
@@ -6230,7 +6230,6 @@ const cM = {
|
|
|
6230
6230
|
loading: !1,
|
|
6231
6231
|
point: {},
|
|
6232
6232
|
meteoData: void 0,
|
|
6233
|
-
historyMeteoData: void 0,
|
|
6234
6233
|
tableData: {
|
|
6235
6234
|
hours: [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0],
|
|
6236
6235
|
weatherUrls: [],
|
|
@@ -6278,29 +6277,24 @@ const cM = {
|
|
|
6278
6277
|
},
|
|
6279
6278
|
point: {
|
|
6280
6279
|
async handler() {
|
|
6281
|
-
|
|
6280
|
+
var z;
|
|
6281
|
+
if (this.showMeteo = !0, this.showMeteo && this.ts) {
|
|
6282
|
+
this.handleRender();
|
|
6283
|
+
const M = M0();
|
|
6284
|
+
((z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 15) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6285
|
+
}
|
|
6282
6286
|
}
|
|
6283
6287
|
},
|
|
6284
6288
|
ts: {
|
|
6285
6289
|
async handler() {
|
|
6286
6290
|
var z;
|
|
6287
6291
|
if (this.showMeteo && this.ts) {
|
|
6288
|
-
const M =
|
|
6289
|
-
|
|
6290
|
-
const
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
});
|
|
6295
|
-
this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || await this.fetchMeteoData(this.point, this.ts, 15), this.initTableData(this.meteoData));
|
|
6296
|
-
} else if (b < 0) {
|
|
6297
|
-
const p = [0, 1, 2, 3, 4, 5, 6, 7].every((o) => {
|
|
6298
|
-
var t;
|
|
6299
|
-
const A = v0(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
|
|
6300
|
-
return (t = T0.pickHourly(this.historyMeteoData, A)) == null ? void 0 : t[0];
|
|
6301
|
-
});
|
|
6302
|
-
this.historyMeteoData && p ? this.initTableData(this.historyMeteoData) : (this.loading || await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.historyMeteoData));
|
|
6303
|
-
}
|
|
6292
|
+
const M = M0(), b = (z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0), p = [0, 1, 2, 3, 4, 5, 6, 7].every((o) => {
|
|
6293
|
+
var t;
|
|
6294
|
+
const A = v0(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
|
|
6295
|
+
return (t = x0.pickHourly(this.meteoData, A)) == null ? void 0 : t[0];
|
|
6296
|
+
});
|
|
6297
|
+
this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || (b >= 0 ? await this.fetchMeteoData(this.point, this.ts, 15) : await this.fetchHistoryData(this.point, this.ts)), this.initTableData(this.meteoData));
|
|
6304
6298
|
}
|
|
6305
6299
|
}
|
|
6306
6300
|
}
|
|
@@ -6313,7 +6307,7 @@ const cM = {
|
|
|
6313
6307
|
},
|
|
6314
6308
|
computeHourZ() {
|
|
6315
6309
|
return function(z) {
|
|
6316
|
-
return z ? `${
|
|
6310
|
+
return z ? `${M0(z).utc().format("HH")}Z` : "-";
|
|
6317
6311
|
};
|
|
6318
6312
|
},
|
|
6319
6313
|
computeLat() {
|
|
@@ -6336,8 +6330,8 @@ const cM = {
|
|
|
6336
6330
|
},
|
|
6337
6331
|
methods: {
|
|
6338
6332
|
async fetchMeteoData(z, M, b) {
|
|
6339
|
-
this.point = z, this.loading = !0;
|
|
6340
|
-
let O = M ?
|
|
6333
|
+
this.point = z, this.loading = !0, this.meteoData = [];
|
|
6334
|
+
let O = M ? M0(M).utc().format() : M0().utc().format(), p = {
|
|
6341
6335
|
lat: z.lat,
|
|
6342
6336
|
lng: z.lng,
|
|
6343
6337
|
datetime: O,
|
|
@@ -6350,8 +6344,8 @@ const cM = {
|
|
|
6350
6344
|
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.loading = !1);
|
|
6351
6345
|
},
|
|
6352
6346
|
async fetchHistoryData(z, M) {
|
|
6353
|
-
this.point = z, this.loading = !0;
|
|
6354
|
-
const b = M ?
|
|
6347
|
+
this.point = z, this.loading = !0, this.meteoData = [];
|
|
6348
|
+
const b = M ? M0(M).utc().format() : M0().utc().format(), O = {
|
|
6355
6349
|
lat: z.lat,
|
|
6356
6350
|
lng: z.lng,
|
|
6357
6351
|
datetime: b,
|
|
@@ -6362,12 +6356,12 @@ const cM = {
|
|
|
6362
6356
|
Authorization: this.token || this.defaultMeteoToken
|
|
6363
6357
|
}
|
|
6364
6358
|
});
|
|
6365
|
-
(p == null ? void 0 : p.data.code) === 0 && (this.
|
|
6359
|
+
(p == null ? void 0 : p.data.code) === 0 && (this.meteoData = p == null ? void 0 : p.data.data, this.loading = !1);
|
|
6366
6360
|
},
|
|
6367
6361
|
initTableData(z) {
|
|
6368
6362
|
var M, b, O, p, o, A, t;
|
|
6369
|
-
this.clearTable(), this.positionGmt = (b = (M = z == null ? void 0 : z.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.positionOffset = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = v0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (t =
|
|
6370
|
-
var r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0,
|
|
6363
|
+
this.clearTable(), this.positionGmt = (b = (M = z == null ? void 0 : z.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.positionOffset = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = v0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (t = x0.pickHourly(z, M0(this.ts))) == null ? void 0 : t[0], this.$nextTick(() => {
|
|
6364
|
+
var r, a, n, s, d, m, L, W, h, R, y, E, N, H, U, Y, g, v, A0, n0, R0, i0, f0, p0, h0, m0, u0, r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0;
|
|
6371
6365
|
const q = document.getElementById("meteoMainBox");
|
|
6372
6366
|
if (!q)
|
|
6373
6367
|
return !1;
|
|
@@ -6382,8 +6376,8 @@ const cM = {
|
|
|
6382
6376
|
for (let o0 = 0; o0 < 8; o0++) {
|
|
6383
6377
|
const e = v0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
|
|
6384
6378
|
this.tableData.hours.push(e);
|
|
6385
|
-
const i = ((L =
|
|
6386
|
-
this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((R = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : R.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (y = i == null ? void 0 : i.weather) == null ? void 0 : y.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((N = i == null ? void 0 : i.weather) == null ? void 0 : N.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((g = (Y = i == null ? void 0 : i.weather) == null ? void 0 : Y.wind) == null ? void 0 : g.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (v = i == null ? void 0 : i.weather) == null ? void 0 : v.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (
|
|
6379
|
+
const i = ((L = x0.pickHourly(z, e)) == null ? void 0 : L[0]) || {};
|
|
6380
|
+
this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((R = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : R.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (y = i == null ? void 0 : i.weather) == null ? void 0 : y.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((N = i == null ? void 0 : i.weather) == null ? void 0 : N.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((g = (Y = i == null ? void 0 : i.weather) == null ? void 0 : Y.wind) == null ? void 0 : g.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (v = i == null ? void 0 : i.weather) == null ? void 0 : v.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((u0 = (m0 = i == null ? void 0 : i.wave) == null ? void 0 : m0.wd) == null ? void 0 : u0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((b0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : b0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (t0 = i == null ? void 0 : i.wave) == null ? void 0 : t0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((z0 = i == null ? void 0 : i.current) == null ? void 0 : z0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((L0 = i == null ? void 0 : i.weather) == null ? void 0 : L0.name) ?? "-");
|
|
6387
6381
|
}
|
|
6388
6382
|
});
|
|
6389
6383
|
},
|
|
@@ -6531,15 +6525,15 @@ function bb(z, M, b, O, p, o) {
|
|
|
6531
6525
|
c("div", gM, [
|
|
6532
6526
|
c("div", {
|
|
6533
6527
|
class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6534
|
-
onClick: M[1] || (M[1] =
|
|
6528
|
+
onClick: M[1] || (M[1] = E0((g) => o.handleSelectTab(1), ["prevent"]))
|
|
6535
6529
|
}, "Basis", 2),
|
|
6536
6530
|
c("div", {
|
|
6537
6531
|
class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6538
|
-
onClick: M[2] || (M[2] =
|
|
6532
|
+
onClick: M[2] || (M[2] = E0((g) => o.handleSelectTab(2), ["prevent"]))
|
|
6539
6533
|
}, "Wave & Current", 2),
|
|
6540
6534
|
c("div", {
|
|
6541
6535
|
class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6542
|
-
onClick: M[3] || (M[3] =
|
|
6536
|
+
onClick: M[3] || (M[3] = E0((g) => o.handleSelectTab(3), ["prevent"]))
|
|
6543
6537
|
}, "Sea Surface", 2)
|
|
6544
6538
|
]),
|
|
6545
6539
|
X0(c("table", NM, [
|
|
@@ -6952,7 +6946,7 @@ function bb(z, M, b, O, p, o) {
|
|
|
6952
6946
|
])
|
|
6953
6947
|
]);
|
|
6954
6948
|
}
|
|
6955
|
-
const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-
|
|
6949
|
+
const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-150fee0f"]]), pb = {
|
|
6956
6950
|
name: "IdmWarZone",
|
|
6957
6951
|
props: {
|
|
6958
6952
|
map: {
|
|
@@ -8715,7 +8709,7 @@ const Mz = {
|
|
|
8715
8709
|
watch: {
|
|
8716
8710
|
ts: {
|
|
8717
8711
|
handler(z, M) {
|
|
8718
|
-
z && M &&
|
|
8712
|
+
z && M && M0(z).utc().format("yyyy-MM-DD HH") !== M0(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8719
8713
|
this.handleDateChange({ tropicals: !1 });
|
|
8720
8714
|
});
|
|
8721
8715
|
},
|
|
@@ -9253,8 +9247,8 @@ const Mz = {
|
|
|
9253
9247
|
className: "map-gl-home"
|
|
9254
9248
|
};
|
|
9255
9249
|
function zz(z, M, b, O, p, o) {
|
|
9256
|
-
var r0, d0, B0, s0, P,
|
|
9257
|
-
const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"), m = x("IdmCurrents"), L = x("IdmCurrentParticle"), W = x("IdmWindBarb"), h = x("IdmWindParticle"), R = x("IdmPrecip3h"), y = x("IdmVisibility"), E = x("IdmWaterTemp"), N = x("IdmTemp"), H = x("IdmArctic"), U = x("IdmWarZone"), Y = x("IdmGmdssArea"), g = x("IdmEcaZone"), v = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), R0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"),
|
|
9250
|
+
var r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0, o0, e, i, u, B, X, D, V, S, F, T0, S0, k0, Q0, H0;
|
|
9251
|
+
const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"), m = x("IdmCurrents"), L = x("IdmCurrentParticle"), W = x("IdmWindBarb"), h = x("IdmWindParticle"), R = x("IdmPrecip3h"), y = x("IdmVisibility"), E = x("IdmWaterTemp"), N = x("IdmTemp"), H = x("IdmArctic"), U = x("IdmWarZone"), Y = x("IdmGmdssArea"), g = x("IdmEcaZone"), v = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), R0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), h0 = x("IdmLatLng"), m0 = x("IdmMeasure"), u0 = x("IdmPoint");
|
|
9258
9252
|
return b.map ? (l(), f("div", bz, [
|
|
9259
9253
|
w(A, Q({
|
|
9260
9254
|
ref: "layer",
|
|
@@ -9312,7 +9306,7 @@ function zz(z, M, b, O, p, o) {
|
|
|
9312
9306
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9313
9307
|
w(s, Q({
|
|
9314
9308
|
map: b.map,
|
|
9315
|
-
iceberg: (
|
|
9309
|
+
iceberg: (b0 = p.weatherLayers) == null ? void 0 : b0.iceberg,
|
|
9316
9310
|
"before-layer": b.beforeLayer
|
|
9317
9311
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
9318
9312
|
w(d, Q({
|
|
@@ -9337,7 +9331,7 @@ function zz(z, M, b, O, p, o) {
|
|
|
9337
9331
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
9338
9332
|
w(L, Q({
|
|
9339
9333
|
viewport: p.viewport,
|
|
9340
|
-
factor: (
|
|
9334
|
+
factor: (z0 = p.weatherLayers) == null ? void 0 : z0["current-particle"],
|
|
9341
9335
|
"before-layer": b.beforeLayer,
|
|
9342
9336
|
"toggle-version": b.toggleVersion
|
|
9343
9337
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -9419,7 +9413,7 @@ function zz(z, M, b, O, p, o) {
|
|
|
9419
9413
|
}, z.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
9420
9414
|
w(n0, Q({
|
|
9421
9415
|
map: b.map,
|
|
9422
|
-
line: (
|
|
9416
|
+
line: (T0 = p.otherLayers) == null ? void 0 : T0["load-lines"],
|
|
9423
9417
|
"before-layer": b.beforeLayer
|
|
9424
9418
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
9425
9419
|
w(R0, Q({
|
|
@@ -9437,7 +9431,7 @@ function zz(z, M, b, O, p, o) {
|
|
|
9437
9431
|
area: (Q0 = p.otherLayers) == null ? void 0 : Q0["special-area"],
|
|
9438
9432
|
"before-layer": b.beforeLayer
|
|
9439
9433
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9440
|
-
w(
|
|
9434
|
+
w(p0, Q({
|
|
9441
9435
|
map: b.map,
|
|
9442
9436
|
area: (H0 = p.otherLayers) == null ? void 0 : H0["day-night"]
|
|
9443
9437
|
}, z.$attrs), null, 16, ["map", "area"]),
|