@idmwx/idmui-gl3 5.1.1 → 5.1.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var J0 = Object.defineProperty;
|
|
2
2
|
var Y0 = (b, M, z) => M in b ? J0(b, M, { enumerable: !0, configurable: !0, writable: !0, value: z }) : b[M] = z;
|
|
3
3
|
var Y = (b, M, z) => (Y0(b, typeof M != "symbol" ? M + "" : M, z), z);
|
|
4
|
-
import { LayerHelper as D0, CompanyHelper as
|
|
4
|
+
import { LayerHelper as D0, CompanyHelper as P0 } from "@idm-plugin/tag";
|
|
5
5
|
import K from "moment";
|
|
6
6
|
import f0 from "axios";
|
|
7
7
|
import { resolveComponent as x, openBlock as s, createElementBlock as W, createElementVNode as c, normalizeStyle as O0, createVNode as T, withCtx as a0, normalizeClass as U, Fragment as H, renderList as _, toDisplayString as C, createCommentVNode as j, createBlock as V0, createTextVNode as z0, withDirectives as y0, createStaticVNode as Z0, vShow as X0, defineComponent as $0, withModifiers as E0, mergeProps as Q } from "vue";
|
|
@@ -33,12 +33,12 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
33
33
|
return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
|
|
34
34
|
}
|
|
35
35
|
function d(e) {
|
|
36
|
-
var i = 0, L = e.split("."), N = L[0], w = L[1] || "", D = 1, Z,
|
|
36
|
+
var i = 0, L = e.split("."), N = L[0], w = L[1] || "", D = 1, Z, S = 0, G = 1;
|
|
37
37
|
for (e.charCodeAt(0) === 45 && (i = 1, G = -1), i; i < N.length; i++)
|
|
38
|
-
Z = l(N.charCodeAt(i)),
|
|
38
|
+
Z = l(N.charCodeAt(i)), S = 60 * S + Z;
|
|
39
39
|
for (i = 0; i < w.length; i++)
|
|
40
|
-
D = D / 60, Z = l(w.charCodeAt(i)),
|
|
41
|
-
return
|
|
40
|
+
D = D / 60, Z = l(w.charCodeAt(i)), S += Z * D;
|
|
41
|
+
return S * G;
|
|
42
42
|
}
|
|
43
43
|
function B(e) {
|
|
44
44
|
for (var i = 0; i < e.length; i++)
|
|
@@ -96,9 +96,9 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
98
|
parse: function(e) {
|
|
99
|
-
var i = +e, L = this.offsets, N = this.untils, w = N.length - 1, D, Z,
|
|
99
|
+
var i = +e, L = this.offsets, N = this.untils, w = N.length - 1, D, Z, S, G;
|
|
100
100
|
for (G = 0; G < w; G++)
|
|
101
|
-
if (D = L[G], Z = L[G + 1],
|
|
101
|
+
if (D = L[G], Z = L[G + 1], S = L[G && G - 1], D < Z && I.moveAmbiguousForward ? D = Z : D > S && I.moveInvalidForward && (D = S), i < N[G] - D * 6e4)
|
|
102
102
|
return L[G];
|
|
103
103
|
return L[w];
|
|
104
104
|
},
|
|
@@ -131,11 +131,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
131
131
|
return e;
|
|
132
132
|
}
|
|
133
133
|
function V() {
|
|
134
|
-
var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), L = i.offset, N = [i], w, D, Z,
|
|
135
|
-
for (
|
|
136
|
-
Z = new Date(e,
|
|
137
|
-
for (
|
|
138
|
-
N.push(new y(new Date(e +
|
|
134
|
+
var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), L = i.offset, N = [i], w, D, Z, S;
|
|
135
|
+
for (S = 1; S < 48; S++)
|
|
136
|
+
Z = new Date(e, S, 1).getTimezoneOffset(), Z !== L && (D = new y(new Date(e, S, 1)), w = J(i, D), N.push(w), N.push(new y(new Date(w.at + 6e4))), i = D, L = Z);
|
|
137
|
+
for (S = 0; S < 4; S++)
|
|
138
|
+
N.push(new y(new Date(e + S, 0, 1))), N.push(new y(new Date(e + S, 6, 1)));
|
|
139
139
|
return N;
|
|
140
140
|
}
|
|
141
141
|
function u(e, i) {
|
|
@@ -147,13 +147,13 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
147
147
|
N = i[L], a[N] = a[N] || {}, a[N][e] = !0;
|
|
148
148
|
}
|
|
149
149
|
function A0(e) {
|
|
150
|
-
var i = e.length, L = {}, N = [], w = {}, D, Z,
|
|
150
|
+
var i = e.length, L = {}, N = [], w = {}, D, Z, S, G;
|
|
151
151
|
for (D = 0; D < i; D++)
|
|
152
|
-
if (
|
|
153
|
-
G = a[
|
|
152
|
+
if (S = e[D].offset, !w.hasOwnProperty(S)) {
|
|
153
|
+
G = a[S] || {};
|
|
154
154
|
for (Z in G)
|
|
155
155
|
G.hasOwnProperty(Z) && (L[Z] = !0);
|
|
156
|
-
w[
|
|
156
|
+
w[S] = !0;
|
|
157
157
|
}
|
|
158
158
|
for (D in L)
|
|
159
159
|
L.hasOwnProperty(D) && N.push(A[D]);
|
|
@@ -170,9 +170,9 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
170
170
|
}
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
|
-
var L = V(), N = L.length, w = A0(L), D = [], Z,
|
|
174
|
-
for (
|
|
175
|
-
for (Z = new F(p0(w[
|
|
173
|
+
var L = V(), N = L.length, w = A0(L), D = [], Z, S, G;
|
|
174
|
+
for (S = 0; S < w.length; S++) {
|
|
175
|
+
for (Z = new F(p0(w[S])), G = 0; G < N; G++)
|
|
176
176
|
Z.scoreOffsetAt(L[G]);
|
|
177
177
|
D.push(Z);
|
|
178
178
|
}
|
|
@@ -235,8 +235,8 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
235
235
|
function s0(e) {
|
|
236
236
|
u0(e.zones), L0(e.links), r0(e.countries), I.dataVersion = e.version;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
238
|
+
function P(e) {
|
|
239
|
+
return P.didShowError || (P.didShowError = !0, e0("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!p0(e);
|
|
240
240
|
}
|
|
241
241
|
function M0(e) {
|
|
242
242
|
var i = e._f === "X" || e._f === "x";
|
|
@@ -249,7 +249,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
249
249
|
var i = Array.prototype.slice.call(arguments, 0, -1), L = arguments[arguments.length - 1], N = M.utc.apply(null, i), w;
|
|
250
250
|
return !M.isMoment(e) && M0(N) && (w = p0(L)) && N.add(w.parse(N), "minutes"), N.tz(L), N;
|
|
251
251
|
}
|
|
252
|
-
I.version = z, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = u0, I.link = L0, I.load = s0, I.zone = p0, I.zoneExists =
|
|
252
|
+
I.version = z, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = u0, I.link = L0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = h0, I.names = m0, I.Zone = m, I.unpack = h, I.unpackBase60 = d, I.needsOffset = M0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = B0, I.zonesForCountry = g0;
|
|
253
253
|
var b0 = M.fn;
|
|
254
254
|
M.tz = I, M.defaultZone = null, M.updateOffset = function(e, i) {
|
|
255
255
|
var L = M.defaultZone, N;
|
|
@@ -1199,7 +1199,7 @@ const k = (b, M) => {
|
|
|
1199
1199
|
default: void 0
|
|
1200
1200
|
}
|
|
1201
1201
|
},
|
|
1202
|
-
emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion", "login"],
|
|
1202
|
+
emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion", "login", "forecastModel"],
|
|
1203
1203
|
data() {
|
|
1204
1204
|
return {
|
|
1205
1205
|
autoActive: !0,
|
|
@@ -1266,7 +1266,7 @@ const k = (b, M) => {
|
|
|
1266
1266
|
},
|
|
1267
1267
|
source: {
|
|
1268
1268
|
handler(b, M) {
|
|
1269
|
-
b && M && b !== M && this.handleConfirm();
|
|
1269
|
+
b && b !== M && this.$emit("forecastModel", this.source), b && M && b !== M && this.handleConfirm();
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
},
|
|
@@ -1391,7 +1391,7 @@ const k = (b, M) => {
|
|
|
1391
1391
|
}, x1 = {
|
|
1392
1392
|
key: 1,
|
|
1393
1393
|
class: "iconfont bookmark-icon inactive"
|
|
1394
|
-
}, I1 = { class: "other-layers card-bg" }, D1 = { class: "layers-body" },
|
|
1394
|
+
}, I1 = { class: "other-layers card-bg" }, D1 = { class: "layers-body" }, P1 = ["onClick"], S1 = { class: "flex-start" }, k1 = { class: "switch flex-center" }, Q1 = {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
class: "iconfont active"
|
|
1397
1397
|
}, H1 = {
|
|
@@ -1641,13 +1641,13 @@ function K1(b, M, z, O, p, o) {
|
|
|
1641
1641
|
class: U(["layer flex-between", o.computeLayerClass(t, p.activeOtherLayers)]),
|
|
1642
1642
|
onClick: (l) => o.handleOtherLayerPick(t)
|
|
1643
1643
|
}, [
|
|
1644
|
-
c("div",
|
|
1644
|
+
c("div", S1, [
|
|
1645
1645
|
c("div", k1, [
|
|
1646
1646
|
(n = o.computeLayerClass(t, p.activeOtherLayers)) != null && n.includes("active") ? (s(), W("i", Q1, "")) : (s(), W("i", H1, ""))
|
|
1647
1647
|
]),
|
|
1648
1648
|
c("span", null, C(t.name), 1)
|
|
1649
1649
|
])
|
|
1650
|
-
], 10,
|
|
1650
|
+
], 10, P1);
|
|
1651
1651
|
}), 128))
|
|
1652
1652
|
])
|
|
1653
1653
|
]),
|
|
@@ -1841,7 +1841,7 @@ function Z1(b, M, z, O, p, o) {
|
|
|
1841
1841
|
return (A = z.wind) != null && A.active ? (s(), W("div", V1)) : j("", !0);
|
|
1842
1842
|
}
|
|
1843
1843
|
const $1 = /* @__PURE__ */ k(Y1, [["render", Z1]]);
|
|
1844
|
-
class
|
|
1844
|
+
class S0 {
|
|
1845
1845
|
constructor(M) {
|
|
1846
1846
|
Y(this, "map");
|
|
1847
1847
|
Y(this, "mercator");
|
|
@@ -4023,7 +4023,7 @@ const b2 = {
|
|
|
4023
4023
|
type: Object
|
|
4024
4024
|
},
|
|
4025
4025
|
viewport: {
|
|
4026
|
-
type:
|
|
4026
|
+
type: S0
|
|
4027
4027
|
},
|
|
4028
4028
|
bottom: {
|
|
4029
4029
|
type: String,
|
|
@@ -4364,7 +4364,7 @@ const t2 = {
|
|
|
4364
4364
|
type: Object
|
|
4365
4365
|
},
|
|
4366
4366
|
viewport: {
|
|
4367
|
-
type:
|
|
4367
|
+
type: S0
|
|
4368
4368
|
},
|
|
4369
4369
|
bottom: {
|
|
4370
4370
|
type: String,
|
|
@@ -5033,7 +5033,7 @@ const B2 = {
|
|
|
5033
5033
|
emits: ["tropical", "tropicalProbability"],
|
|
5034
5034
|
data() {
|
|
5035
5035
|
return {
|
|
5036
|
-
helper:
|
|
5036
|
+
helper: P0,
|
|
5037
5037
|
source: "tropicals-source",
|
|
5038
5038
|
clusterSource: "tropicals-cluster-source",
|
|
5039
5039
|
historyLayer: "tropicals-history-layer",
|
|
@@ -5394,9 +5394,9 @@ const B2 = {
|
|
|
5394
5394
|
handleDateChange() {
|
|
5395
5395
|
var b, M, z, O, p, o, A, a, q, r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g, A0, n0, h0, i0, u0, p0, m0, B0, L0;
|
|
5396
5396
|
if ((b = this.interpolateMarkers) == null || b.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
5397
|
-
const r0 = K(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((
|
|
5398
|
-
g0.forEach((
|
|
5399
|
-
s0.features.push(
|
|
5397
|
+
const r0 = K(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), g0 = this.handleComputePolygons(d0), s0 = v.featureCollection([...d0]);
|
|
5398
|
+
g0.forEach((P) => {
|
|
5399
|
+
s0.features.push(P);
|
|
5400
5400
|
}), (z = this.map) != null && z.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
5401
5401
|
type: "geojson",
|
|
5402
5402
|
data: s0
|
|
@@ -5411,10 +5411,10 @@ const B2 = {
|
|
|
5411
5411
|
"line-width": 1
|
|
5412
5412
|
}
|
|
5413
5413
|
})), this.interpolateMarkers = [];
|
|
5414
|
-
for (const
|
|
5415
|
-
if (!
|
|
5414
|
+
for (const P of d0)
|
|
5415
|
+
if (!P.properties.disabled) {
|
|
5416
5416
|
let M0 = "#f44336";
|
|
5417
|
-
((a = (A =
|
|
5417
|
+
((a = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : a.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? M0 = "#03f869" : ((n = (t = P.properties) == null ? void 0 : t.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (l = P.properties) == null ? void 0 : l.wind) == null ? void 0 : d.spd) < 24.5 ? M0 = "#f2f202" : ((R = (B = P.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((h = (f = P.properties) == null ? void 0 : f.wind) == null ? void 0 : h.spd) < 32.7 ? M0 = "#ff9100" : ((X = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? M0 = "#f44336" : ((J = (F = P.properties) == null ? void 0 : F.wind) == null ? void 0 : J.spd) >= 41.5 && ((u = (V = P.properties) == null ? void 0 : V.wind) == null ? void 0 : u.spd) < 51 ? M0 = "#f903d0" : ((A0 = (g = P.properties) == null ? void 0 : g.wind) == null ? void 0 : A0.spd) >= 51 ? M0 = "#8702f9" : M0 = "#f44336";
|
|
5418
5418
|
const e0 = `<svg t="1719918955501"
|
|
5419
5419
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5420
5420
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5430,10 +5430,10 @@ const B2 = {
|
|
|
5430
5430
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
5431
5431
|
fill="#ffffff" p-id="18386"></path>
|
|
5432
5432
|
</svg>`, I = document.createElement("div");
|
|
5433
|
-
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${
|
|
5434
|
-
const b0 = new w0.Marker(I).setLngLat(
|
|
5435
|
-
if (this.interpolateMarkers.push(b0), (n0 =
|
|
5436
|
-
const W0 = { radius: 100, coordinates:
|
|
5433
|
+
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${e0}</div>`;
|
|
5434
|
+
const b0 = new w0.Marker(I).setLngLat(P.geometry.coordinates).addTo(this.map);
|
|
5435
|
+
if (this.interpolateMarkers.push(b0), (n0 = P.properties) != null && n0.showCircle) {
|
|
5436
|
+
const W0 = { radius: 100, coordinates: P.geometry.coordinates }, l0 = { radius: 200, coordinates: P.geometry.coordinates }, R0 = { radius: 500, coordinates: P.geometry.coordinates };
|
|
5437
5437
|
(h0 = this.circleSourceData) == null || h0.features.push(
|
|
5438
5438
|
v.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
5439
5439
|
), (i0 = this.circleSourceData) == null || i0.features.push(
|
|
@@ -5572,7 +5572,7 @@ const B2 = {
|
|
|
5572
5572
|
}, I2 = { class: "row" }, D2 = {
|
|
5573
5573
|
class: "col col-24",
|
|
5574
5574
|
style: { "justify-content": "flex-start" }
|
|
5575
|
-
},
|
|
5575
|
+
}, P2 = { class: "forecast-models" }, S2 = ["onClick"], k2 = { class: "more" };
|
|
5576
5576
|
function Q2(b, M, z, O, p, o) {
|
|
5577
5577
|
var A, a, q, r, t, n, l, d, B, R, f, h, m, X, E;
|
|
5578
5578
|
return y0((s(), W("div", g2, [
|
|
@@ -5602,7 +5602,7 @@ function Q2(b, M, z, O, p, o) {
|
|
|
5602
5602
|
c("div", I2, [
|
|
5603
5603
|
c("div", D2, [
|
|
5604
5604
|
M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5605
|
-
c("div",
|
|
5605
|
+
c("div", P2, [
|
|
5606
5606
|
(s(!0), W(H, null, _((E = p.activeTropicals) == null ? void 0 : E.forecasts, (y, F) => {
|
|
5607
5607
|
var J, V, u, g;
|
|
5608
5608
|
return s(), W("div", {
|
|
@@ -5617,7 +5617,7 @@ function Q2(b, M, z, O, p, o) {
|
|
|
5617
5617
|
c("span", {
|
|
5618
5618
|
class: U(y.model)
|
|
5619
5619
|
}, C(y.model), 3)
|
|
5620
|
-
], 10,
|
|
5620
|
+
], 10, S2);
|
|
5621
5621
|
}), 128))
|
|
5622
5622
|
])
|
|
5623
5623
|
])
|
|
@@ -6267,7 +6267,7 @@ const qM = {
|
|
|
6267
6267
|
startTs: {
|
|
6268
6268
|
type: String
|
|
6269
6269
|
},
|
|
6270
|
-
|
|
6270
|
+
forecastModel: {
|
|
6271
6271
|
type: String
|
|
6272
6272
|
}
|
|
6273
6273
|
},
|
|
@@ -6326,7 +6326,7 @@ const qM = {
|
|
|
6326
6326
|
this.map && this.show && this.handleBind();
|
|
6327
6327
|
}
|
|
6328
6328
|
},
|
|
6329
|
-
|
|
6329
|
+
forecastModel: {
|
|
6330
6330
|
async handler() {
|
|
6331
6331
|
var b;
|
|
6332
6332
|
if (this.showMeteo && this.ts) {
|
|
@@ -6402,7 +6402,7 @@ const qM = {
|
|
|
6402
6402
|
async fetchMeteoData(b, M, z) {
|
|
6403
6403
|
this.loading = !0, this.meteoData = [];
|
|
6404
6404
|
let O = M ? K(M).utc().format() : K().utc().format();
|
|
6405
|
-
const { weatherModels: p, marineModels: o } = v0.autoPickMeteoModel(this.
|
|
6405
|
+
const { weatherModels: p, marineModels: o } = v0.autoPickMeteoModel(this.forecastModel);
|
|
6406
6406
|
let A = {
|
|
6407
6407
|
lat: b.lat,
|
|
6408
6408
|
lng: b.lng,
|
|
@@ -6419,7 +6419,7 @@ const qM = {
|
|
|
6419
6419
|
},
|
|
6420
6420
|
async fetchHistoryData(b, M) {
|
|
6421
6421
|
this.loading = !0, this.meteoData = [];
|
|
6422
|
-
const z = M ? K(M).utc().format() : K().utc().format(), { weatherModels: O, marineModels: p } = v0.autoPickMeteoModel(this.
|
|
6422
|
+
const z = M ? K(M).utc().format() : K().utc().format(), { weatherModels: O, marineModels: p } = v0.autoPickMeteoModel(this.forecastModel), o = {
|
|
6423
6423
|
lat: b.lat,
|
|
6424
6424
|
lng: b.lng,
|
|
6425
6425
|
datetime: z,
|
|
@@ -6437,7 +6437,7 @@ const qM = {
|
|
|
6437
6437
|
initTableData(b) {
|
|
6438
6438
|
var M, z, O, p, o, A, a;
|
|
6439
6439
|
this.clearTable(), this.positionGmt = (z = (M = b == null ? void 0 : b.weather) == null ? void 0 : M[0]) == null ? void 0 : z.timezone, this.positionOffset = (p = (O = b == null ? void 0 : b.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = T0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (a = v0.pickHourly(b, K(this.ts))) == null ? void 0 : a[0], this.$nextTick(() => {
|
|
6440
|
-
var r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g, A0, n0, h0, i0, u0, p0, m0, B0, L0, r0, d0, g0, s0,
|
|
6440
|
+
var r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g, A0, n0, h0, i0, u0, p0, m0, B0, L0, r0, d0, g0, s0, P, M0, e0, I, b0, W0, l0, R0;
|
|
6441
6441
|
const q = document.getElementById("meteoMainBox");
|
|
6442
6442
|
if (!q)
|
|
6443
6443
|
return !1;
|
|
@@ -6453,7 +6453,7 @@ const qM = {
|
|
|
6453
6453
|
const e = T0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
|
|
6454
6454
|
this.tableData.hours.push(e);
|
|
6455
6455
|
const i = ((R = v0.pickHourly(b, e)) == null ? void 0 : R[0]) || {};
|
|
6456
|
-
this.tableData.temp.push(this.roundPrecision((f = i == null ? void 0 : i.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((J = (F = i == null ? void 0 : i.weather) == null ? void 0 : F.wind) == null ? void 0 : J.kts, 1) ?? "-"), this.tableData.windDir.push((u = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (g = i == null ? void 0 : i.weather) == null ? void 0 : g.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((h0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((u0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : u0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((m0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : m0.height, 1) ?? "-"), this.tableData.windwaveDir.push((L0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.wd) == null ? void 0 : L0.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 = (g0 = i == null ? void 0 : i.wave) == null ? void 0 : g0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((M0 = (
|
|
6456
|
+
this.tableData.temp.push(this.roundPrecision((f = i == null ? void 0 : i.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((J = (F = i == null ? void 0 : i.weather) == null ? void 0 : F.wind) == null ? void 0 : J.kts, 1) ?? "-"), this.tableData.windDir.push((u = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (g = i == null ? void 0 : i.weather) == null ? void 0 : g.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((h0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((u0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : u0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((m0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : m0.height, 1) ?? "-"), this.tableData.windwaveDir.push((L0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.wd) == null ? void 0 : L0.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 = (g0 = i == null ? void 0 : i.wave) == null ? void 0 : g0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((M0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : M0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (e0 = i == null ? void 0 : i.wave) == null ? void 0 : e0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((b0 = i == null ? void 0 : i.current) == null ? void 0 : b0.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(((R0 = i == null ? void 0 : i.weather) == null ? void 0 : R0.name) ?? "-");
|
|
6457
6457
|
}
|
|
6458
6458
|
});
|
|
6459
6459
|
},
|
|
@@ -6518,7 +6518,7 @@ const qM = {
|
|
|
6518
6518
|
return !1;
|
|
6519
6519
|
},
|
|
6520
6520
|
handleMeteoMore() {
|
|
6521
|
-
this.point.forecastModel = this.
|
|
6521
|
+
this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
|
|
6522
6522
|
},
|
|
6523
6523
|
handleCloseMeteo() {
|
|
6524
6524
|
this.showMeteo = !1;
|
|
@@ -6542,7 +6542,7 @@ const qM = {
|
|
|
6542
6542
|
key: 1,
|
|
6543
6543
|
class: "icon flex-center",
|
|
6544
6544
|
style: { "margin-right": "5px" }
|
|
6545
|
-
}, RM = { class: "temp" }, hM = { class: "des info" }, mM = { class: "flex-start" }, BM = { class: "flex-start" }, gM = { class: "flex-start" }, NM = { class: "date flex-col-center-end" }, yM = { class: "" }, XM = { class: "" }, wM = { class: "detail-box" }, CM = { class: "menu-header flex-start" }, vM = { class: "basic-table" }, TM = { class: "hour" }, EM = { class: "hour" }, xM = { class: "icon" }, IM = ["src"], DM = { class: "text" },
|
|
6545
|
+
}, RM = { class: "temp" }, hM = { class: "des info" }, mM = { class: "flex-start" }, BM = { class: "flex-start" }, gM = { class: "flex-start" }, NM = { class: "date flex-col-center-end" }, yM = { class: "" }, XM = { class: "" }, wM = { class: "detail-box" }, CM = { class: "menu-header flex-start" }, vM = { class: "basic-table" }, TM = { class: "hour" }, EM = { class: "hour" }, xM = { class: "icon" }, IM = ["src"], DM = { class: "text" }, PM = { class: "text" }, SM = { class: "text" }, kM = { class: "text" }, QM = { class: "wave-current-table" }, HM = { class: "hour" }, _M = { class: "hour" }, jM = { class: "icon" }, FM = ["src"], GM = { class: "text" }, UM = { class: "text" }, KM = { class: "text" }, JM = { class: "text" }, YM = { class: "sea-table" }, VM = { class: "hour" }, ZM = { class: "hour" }, $M = { class: "icon" }, Mb = ["src"], bb = { class: "text" }, zb = { class: "text" }, pb = { class: "text" }, Ob = { class: "text" }, ob = { class: "tide-table flex-col-start-center" }, cb = { class: "tr-tide flex-space" }, Ab = { class: "tr-tide flex-space" }, eb = { class: "tr-tide flex-space" }, tb = {
|
|
6546
6546
|
key: 1,
|
|
6547
6547
|
class: "main-box flex-center"
|
|
6548
6548
|
};
|
|
@@ -6709,7 +6709,7 @@ function ab(b, M, z, O, p, o) {
|
|
|
6709
6709
|
key: `weatherUrls${g}${u}`
|
|
6710
6710
|
}, C(u), 1))), 128))
|
|
6711
6711
|
]),
|
|
6712
|
-
c("tr",
|
|
6712
|
+
c("tr", PM, [
|
|
6713
6713
|
M[14] || (M[14] = c("td", {
|
|
6714
6714
|
rowspan: "1",
|
|
6715
6715
|
colspan: "1",
|
|
@@ -6724,7 +6724,7 @@ function ab(b, M, z, O, p, o) {
|
|
|
6724
6724
|
key: `precip1h${g}${u}`
|
|
6725
6725
|
}, C(u), 1))), 128))
|
|
6726
6726
|
]),
|
|
6727
|
-
c("tr",
|
|
6727
|
+
c("tr", SM, [
|
|
6728
6728
|
M[15] || (M[15] = c("td", {
|
|
6729
6729
|
rowspan: "1",
|
|
6730
6730
|
colspan: "1",
|
|
@@ -7075,7 +7075,7 @@ function ab(b, M, z, O, p, o) {
|
|
|
7075
7075
|
[X0, p.showMeteo]
|
|
7076
7076
|
]);
|
|
7077
7077
|
}
|
|
7078
|
-
const qb = /* @__PURE__ */ k(qM, [["render", ab], ["__scopeId", "data-v-
|
|
7078
|
+
const qb = /* @__PURE__ */ k(qM, [["render", ab], ["__scopeId", "data-v-51cb6990"]]), ib = {
|
|
7079
7079
|
name: "IdmWarZone",
|
|
7080
7080
|
props: {
|
|
7081
7081
|
map: {
|
|
@@ -7542,7 +7542,7 @@ const gb = {
|
|
|
7542
7542
|
beforeLayer: {
|
|
7543
7543
|
type: String
|
|
7544
7544
|
},
|
|
7545
|
-
|
|
7545
|
+
forecastModel: {
|
|
7546
7546
|
type: String
|
|
7547
7547
|
}
|
|
7548
7548
|
},
|
|
@@ -7622,7 +7622,7 @@ const gb = {
|
|
|
7622
7622
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7623
7623
|
},
|
|
7624
7624
|
handleClickMeteo(b) {
|
|
7625
|
-
b.forecastModel = this.
|
|
7625
|
+
b.forecastModel = this.forecastModel, this.$emit("meteoMore", b);
|
|
7626
7626
|
}
|
|
7627
7627
|
}
|
|
7628
7628
|
}, Nb = {
|
|
@@ -7665,7 +7665,7 @@ function Eb(b, M, z, O, p, o) {
|
|
|
7665
7665
|
[X0, p.showPort]
|
|
7666
7666
|
]);
|
|
7667
7667
|
}
|
|
7668
|
-
const xb = /* @__PURE__ */ k(gb, [["render", Eb], ["__scopeId", "data-v-
|
|
7668
|
+
const xb = /* @__PURE__ */ k(gb, [["render", Eb], ["__scopeId", "data-v-39da1804"]]), Ib = {
|
|
7669
7669
|
name: "IdmLoadLine",
|
|
7670
7670
|
props: {
|
|
7671
7671
|
map: {
|
|
@@ -7738,7 +7738,7 @@ const xb = /* @__PURE__ */ k(gb, [["render", Eb], ["__scopeId", "data-v-78859648
|
|
|
7738
7738
|
function Db(b, M, z, O, p, o) {
|
|
7739
7739
|
return s(), W("div");
|
|
7740
7740
|
}
|
|
7741
|
-
const
|
|
7741
|
+
const Pb = /* @__PURE__ */ k(Ib, [["render", Db]]), Sb = {
|
|
7742
7742
|
name: "IdmTimezone",
|
|
7743
7743
|
props: {
|
|
7744
7744
|
map: {
|
|
@@ -7906,7 +7906,7 @@ const Sb = /* @__PURE__ */ k(Ib, [["render", Db]]), Pb = {
|
|
|
7906
7906
|
function kb(b, M, z, O, p, o) {
|
|
7907
7907
|
return s(), W("div");
|
|
7908
7908
|
}
|
|
7909
|
-
const Qb = /* @__PURE__ */ k(
|
|
7909
|
+
const Qb = /* @__PURE__ */ k(Sb, [["render", kb]]), Hb = {
|
|
7910
7910
|
name: "IdmVoluntaryReportingArea",
|
|
7911
7911
|
props: {
|
|
7912
7912
|
map: {
|
|
@@ -8633,8 +8633,8 @@ const zz = {
|
|
|
8633
8633
|
emits: ["enc"],
|
|
8634
8634
|
data() {
|
|
8635
8635
|
return {
|
|
8636
|
-
helper:
|
|
8637
|
-
vendor: this.$attrs.permission &
|
|
8636
|
+
helper: P0,
|
|
8637
|
+
vendor: this.$attrs.permission & P0.LEVEL.Supper ? "hi" : "i4",
|
|
8638
8638
|
right: 10
|
|
8639
8639
|
};
|
|
8640
8640
|
},
|
|
@@ -8784,7 +8784,7 @@ const az = {
|
|
|
8784
8784
|
IdmEcaZone: ub,
|
|
8785
8785
|
IdmAlertZone: Bb,
|
|
8786
8786
|
IdmPort: xb,
|
|
8787
|
-
IdmLoadLine:
|
|
8787
|
+
IdmLoadLine: Pb,
|
|
8788
8788
|
IdmTimezone: Qb,
|
|
8789
8789
|
IdmVRA: jb,
|
|
8790
8790
|
IdmSpecialArea: Ub,
|
|
@@ -8812,6 +8812,9 @@ const az = {
|
|
|
8812
8812
|
},
|
|
8813
8813
|
toggleVersion: {
|
|
8814
8814
|
type: Number
|
|
8815
|
+
},
|
|
8816
|
+
forecastModel: {
|
|
8817
|
+
type: String
|
|
8815
8818
|
}
|
|
8816
8819
|
},
|
|
8817
8820
|
emits: ["toggleVersion", "activeWeatherLayers", "showMeteoPoint"],
|
|
@@ -8855,7 +8858,7 @@ const az = {
|
|
|
8855
8858
|
},
|
|
8856
8859
|
map: {
|
|
8857
8860
|
handler() {
|
|
8858
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
8861
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new S0(this.map), this.handleRampColorInitial());
|
|
8859
8862
|
},
|
|
8860
8863
|
immediate: !0
|
|
8861
8864
|
},
|
|
@@ -9386,7 +9389,7 @@ const az = {
|
|
|
9386
9389
|
className: "map-gl-home"
|
|
9387
9390
|
};
|
|
9388
9391
|
function iz(b, M, z, O, p, o) {
|
|
9389
|
-
var r0, d0, g0, s0,
|
|
9392
|
+
var r0, d0, g0, s0, P, M0, e0, I, b0, W0, l0, R0, o0, e, i, L, N, w, D, Z, S, G, x0, k0, Q0, H0, _0;
|
|
9390
9393
|
const A = x("IdmGlLayer"), a = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), t = x("IdmSwell"), n = x("IdmPrmsl"), l = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), f = x("IdmWindBarb"), h = x("IdmWindParticle"), m = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), F = x("IdmArctic"), J = x("IdmWarZone"), V = x("IdmGmdssArea"), u = x("IdmEcaZone"), g = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), h0 = x("IdmTimezone"), i0 = x("IdmVRA"), u0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), m0 = x("IdmLatLng"), B0 = x("IdmMeasure"), L0 = x("IdmPoint");
|
|
9391
9394
|
return z.map ? (s(), W("div", qz, [
|
|
9392
9395
|
T(A, Q({
|
|
@@ -9401,6 +9404,7 @@ function iz(b, M, z, O, p, o) {
|
|
|
9401
9404
|
token: z.token,
|
|
9402
9405
|
gateway: p.gateway
|
|
9403
9406
|
}, b.$attrs, {
|
|
9407
|
+
forecastModel: z.forecastModel,
|
|
9404
9408
|
onWeather: o.handleWeatherLayerChange,
|
|
9405
9409
|
onOther: o.handleOtherLayerChange,
|
|
9406
9410
|
onToggleWindParticle: M[0] || (M[0] = (t0) => p.showWindParticle = t0),
|
|
@@ -9412,7 +9416,7 @@ function iz(b, M, z, O, p, o) {
|
|
|
9412
9416
|
onPoint: M[6] || (M[6] = (t0) => p.showPoint = t0),
|
|
9413
9417
|
on3d: o.handle3dToggle,
|
|
9414
9418
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9415
|
-
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "token", "gateway", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9419
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "token", "gateway", "forecastModel", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9416
9420
|
T(a, Q({
|
|
9417
9421
|
map: z.map,
|
|
9418
9422
|
token: z.token,
|
|
@@ -9441,7 +9445,7 @@ function iz(b, M, z, O, p, o) {
|
|
|
9441
9445
|
}, b.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
9442
9446
|
T(n, Q({
|
|
9443
9447
|
map: z.map,
|
|
9444
|
-
prmsl: (
|
|
9448
|
+
prmsl: (P = p.weatherLayers) == null ? void 0 : P.prmsl,
|
|
9445
9449
|
"before-layer": z.beforeLayer,
|
|
9446
9450
|
"active-weather-layers": p.activeWeatherLayers
|
|
9447
9451
|
}, b.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
@@ -9544,15 +9548,15 @@ function iz(b, M, z, O, p, o) {
|
|
|
9544
9548
|
}, b.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9545
9549
|
T(g, Q({
|
|
9546
9550
|
map: z.map,
|
|
9547
|
-
zone: (
|
|
9551
|
+
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
9548
9552
|
"before-layer": z.beforeLayer
|
|
9549
9553
|
}, b.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9550
9554
|
T(A0, Q({
|
|
9551
9555
|
map: z.map,
|
|
9552
9556
|
port: (G = p.otherLayers) == null ? void 0 : G.ports,
|
|
9553
9557
|
"before-layer": z.beforeLayer,
|
|
9554
|
-
|
|
9555
|
-
}, b.$attrs), null, 16, ["map", "port", "before-layer", "
|
|
9558
|
+
forecastModel: z.forecastModel
|
|
9559
|
+
}, b.$attrs), null, 16, ["map", "port", "before-layer", "forecastModel"]),
|
|
9556
9560
|
T(n0, Q({
|
|
9557
9561
|
map: z.map,
|
|
9558
9562
|
line: (x0 = p.otherLayers) == null ? void 0 : x0["load-lines"],
|
|
@@ -9594,8 +9598,8 @@ function iz(b, M, z, O, p, o) {
|
|
|
9594
9598
|
ts: z.ts,
|
|
9595
9599
|
token: z.token,
|
|
9596
9600
|
gateway: p.gateway,
|
|
9597
|
-
|
|
9598
|
-
}, b.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "
|
|
9601
|
+
forecastModel: z.forecastModel
|
|
9602
|
+
}, b.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecastModel"])
|
|
9599
9603
|
], 512)) : j("", !0);
|
|
9600
9604
|
}
|
|
9601
9605
|
const rz = /* @__PURE__ */ k(az, [["render", iz]]), hz = {
|
|
@@ -9610,7 +9614,7 @@ export {
|
|
|
9610
9614
|
M2 as MapboxHelper,
|
|
9611
9615
|
q0 as ParticleSchema,
|
|
9612
9616
|
U0 as TropicalGL,
|
|
9613
|
-
|
|
9617
|
+
S0 as Viewport,
|
|
9614
9618
|
C0 as WebGL,
|
|
9615
9619
|
c0 as WebGLSchema
|
|
9616
9620
|
};
|