@idmwx/idmui-gl3 6.6.5 → 6.6.6
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 +105 -91
- package/dist/index.umd.cjs +1 -1
- package/dist/packages/mapbox/src/index.vue.d.ts +15 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -275,7 +275,7 @@ const X = (i, e) => {
|
|
|
275
275
|
}, Pi = {
|
|
276
276
|
key: 1,
|
|
277
277
|
class: "iconfont"
|
|
278
|
-
}, Mi = { class: "layers-body" },
|
|
278
|
+
}, Mi = { class: "layers-body" }, Si = { class: "flex-start" }, Ti = ["onClick"], zi = ["onClick"], Qi = {
|
|
279
279
|
key: 0,
|
|
280
280
|
class: "flex-start"
|
|
281
281
|
}, Hi = {
|
|
@@ -481,11 +481,11 @@ function $i(i, e, t, r, a, o) {
|
|
|
481
481
|
key: 0,
|
|
482
482
|
class: ie(o.computeLayerClass(h, a.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
|
-
s("div",
|
|
484
|
+
s("div", Si, [
|
|
485
485
|
s("div", {
|
|
486
486
|
class: "checkbox",
|
|
487
487
|
onClick: (p) => o.handleWeatherLayerPick(h)
|
|
488
|
-
}, null, 8,
|
|
488
|
+
}, null, 8, Ti),
|
|
489
489
|
s("span", {
|
|
490
490
|
class: "name",
|
|
491
491
|
onClick: (p) => o.handleWeatherLayerPick(h)
|
|
@@ -4218,7 +4218,7 @@ function Pa(i, e, t, r, a, o) {
|
|
|
4218
4218
|
])) : Z("", !0);
|
|
4219
4219
|
}
|
|
4220
4220
|
const Ma = /* @__PURE__ */ X(Da, [["render", Pa], ["__scopeId", "data-v-14ae1a6c"]]);
|
|
4221
|
-
const
|
|
4221
|
+
const Sa = {
|
|
4222
4222
|
name: "IdmCover",
|
|
4223
4223
|
props: {
|
|
4224
4224
|
factor: {
|
|
@@ -4310,10 +4310,10 @@ const Ta = {
|
|
|
4310
4310
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
|
-
},
|
|
4313
|
+
}, Ta = { key: 0 };
|
|
4314
4314
|
function za(i, e, t, r, a, o) {
|
|
4315
4315
|
var n;
|
|
4316
|
-
return (n = t.factor) != null && n.active ? (m(), g("div",
|
|
4316
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", Ta, [
|
|
4317
4317
|
s("div", {
|
|
4318
4318
|
class: "legend-bars flex-center",
|
|
4319
4319
|
style: ge([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -4327,7 +4327,7 @@ function za(i, e, t, r, a, o) {
|
|
|
4327
4327
|
])], 4)
|
|
4328
4328
|
])) : Z("", !0);
|
|
4329
4329
|
}
|
|
4330
|
-
const Qa = /* @__PURE__ */ X(
|
|
4330
|
+
const Qa = /* @__PURE__ */ X(Sa, [["render", za], ["__scopeId", "data-v-f21edb81"]]);
|
|
4331
4331
|
const Ha = {
|
|
4332
4332
|
name: "IdmThickness",
|
|
4333
4333
|
props: {
|
|
@@ -4797,49 +4797,49 @@ class oi {
|
|
|
4797
4797
|
}), a;
|
|
4798
4798
|
}
|
|
4799
4799
|
static pickHourly(e, t) {
|
|
4800
|
-
var r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
4800
|
+
var r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O, F, U, Y, he, ee, ne, we, ye, Ce, fe, Ae, K, $, pe, ue, ve, xe, _e, E, De, ke, Pe, Me, Se, Be, ce, de, Ie, Fe, je, We, Ge, Ue, Ye, Ke, Xe, qe, Je, Ve, Ze, $e, et, tt, it, at, rt, ot, ae, mt, _, z, gt, yt, Lt, Ct, xt, _t, Bt, It, Et, Dt, kt, Pt, Mt, St, Tt, zt, Qt, Ht, Nt, Rt, Ot, Ft, jt, Wt, Gt, Ut, Yt, Kt, Xt, nt, pt;
|
|
4801
4801
|
const bt = typeof t == "string" ? oe(t) : t;
|
|
4802
4802
|
let Ne = bt.clone();
|
|
4803
|
-
const Re = e == null ? void 0 : e.weather, ze = e == null ? void 0 : e.marine,
|
|
4803
|
+
const Re = e == null ? void 0 : e.weather, ze = e == null ? void 0 : e.marine, Te = ((a = (r = Re == null ? void 0 : Re[0]) == null ? void 0 : r.hourly) == null ? void 0 : a.date) || ((n = (o = ze == null ? void 0 : ze[0]) == null ? void 0 : o.hourly) == null ? void 0 : n.date), At = oe.utc(Te), G = At.clone().add(((d = (c = (l = Re == null ? void 0 : Re[0]) == null ? void 0 : l.hourly) == null ? void 0 : c.time) == null ? void 0 : d.at(0)) || ((x = (p = (h = ze == null ? void 0 : ze[0]) == null ? void 0 : h.hourly) == null ? void 0 : p.time) == null ? void 0 : x.at(0)), "h"), ft = At.clone().add(((C = (I = (B = Re == null ? void 0 : Re[0]) == null ? void 0 : B.hourly) == null ? void 0 : I.time) == null ? void 0 : C.at(-1)) || ((f = (A = (D = ze == null ? void 0 : ze[0]) == null ? void 0 : D.hourly) == null ? void 0 : A.time) == null ? void 0 : f.at(-1)), "h"), H = [];
|
|
4804
4804
|
Ne = Ne.isBefore(G) ? G.clone() : Ne, Ne = Ne.isAfter(ft) ? ft.clone() : Ne;
|
|
4805
4805
|
const L = Ne.utc().diff(G, "h", !1);
|
|
4806
4806
|
let be, Qe;
|
|
4807
4807
|
if (Re != null && Re.length) {
|
|
4808
4808
|
let Oe = 0, P = 0, M = 0;
|
|
4809
4809
|
for (const wt of Re) {
|
|
4810
|
-
const
|
|
4810
|
+
const S = wt == null ? void 0 : wt.hourly;
|
|
4811
4811
|
for (let J = L - (L - 1) % 3; J <= L; J++)
|
|
4812
|
-
Oe += ((b =
|
|
4812
|
+
Oe += ((b = S == null ? void 0 : S.precipitation) == null ? void 0 : b.at(J)) ?? 0;
|
|
4813
4813
|
for (let J = L - (L - 1) % 6; J <= L; J++)
|
|
4814
|
-
P += ((u =
|
|
4814
|
+
P += ((u = S == null ? void 0 : S.precipitation) == null ? void 0 : u.at(J)) ?? 0;
|
|
4815
4815
|
for (let J = L - (L - 1) % 12; J <= L; J++)
|
|
4816
|
-
M += ((w =
|
|
4817
|
-
const vt = ((y =
|
|
4816
|
+
M += ((w = S == null ? void 0 : S.precipitation) == null ? void 0 : w.at(J)) ?? 0;
|
|
4817
|
+
const vt = ((y = S == null ? void 0 : S.wind_direction_10m) == null ? void 0 : y.at(L)) ?? ((Q = (v = S == null ? void 0 : S.wind_direction_10m) == null ? void 0 : v.filter((J) => J !== null)) == null ? void 0 : Q.at(-1));
|
|
4818
4818
|
be = {
|
|
4819
|
-
temp: ((
|
|
4820
|
-
apparentTemp: ((F =
|
|
4821
|
-
rh: ((he =
|
|
4822
|
-
dp: ((we =
|
|
4819
|
+
temp: ((T = S == null ? void 0 : S.temperature_2m) == null ? void 0 : T.at(L)) ?? ((O = (j = S == null ? void 0 : S.temperature_2m) == null ? void 0 : j.filter((J) => J !== null)) == null ? void 0 : O.at(-1)),
|
|
4820
|
+
apparentTemp: ((F = S == null ? void 0 : S.apparent_temperature) == null ? void 0 : F.at(L)) ?? ((Y = (U = S == null ? void 0 : S.apparent_temperature) == null ? void 0 : U.filter((J) => J !== null)) == null ? void 0 : Y.at(-1)),
|
|
4821
|
+
rh: ((he = S == null ? void 0 : S.relative_humidity_2m) == null ? void 0 : he.at(L)) ?? ((ne = (ee = S == null ? void 0 : S.relative_humidity_2m) == null ? void 0 : ee.filter((J) => J !== null)) == null ? void 0 : ne.at(-1)),
|
|
4822
|
+
dp: ((we = S == null ? void 0 : S.dew_point_2m) == null ? void 0 : we.at(L)) ?? ((Ce = (ye = S == null ? void 0 : S.dew_point_2m) == null ? void 0 : ye.filter((J) => J !== null)) == null ? void 0 : Ce.at(-1)),
|
|
4823
4823
|
precip: {
|
|
4824
|
-
probability: ((fe =
|
|
4825
|
-
sum: ((Ae =
|
|
4826
|
-
sum1Hours: ((K =
|
|
4824
|
+
probability: ((fe = S == null ? void 0 : S.precipitation_probability) == null ? void 0 : fe.at(L)) ?? 0,
|
|
4825
|
+
sum: ((Ae = S == null ? void 0 : S.precipitation) == null ? void 0 : Ae.at(L)) ?? 0,
|
|
4826
|
+
sum1Hours: ((K = S == null ? void 0 : S.precipitation) == null ? void 0 : K.at(L)) ?? 0,
|
|
4827
4827
|
sum3Hours: Math.round(Oe * 100) / 100,
|
|
4828
4828
|
sum6Hours: Math.round(P * 100) / 100,
|
|
4829
4829
|
sum12Hours: Math.round(M * 100) / 100
|
|
4830
4830
|
},
|
|
4831
|
-
pmsl: (($ =
|
|
4832
|
-
psurf: ((ve =
|
|
4833
|
-
code: ((E =
|
|
4834
|
-
visibility: this.m2nm(((Pe =
|
|
4831
|
+
pmsl: (($ = S == null ? void 0 : S.pressure_msl) == null ? void 0 : $.at(L)) ?? ((ue = (pe = S == null ? void 0 : S.pressure_msl) == null ? void 0 : pe.filter((J) => J !== null)) == null ? void 0 : ue.at(-1)),
|
|
4832
|
+
psurf: ((ve = S == null ? void 0 : S.surface_pressure) == null ? void 0 : ve.at(L)) ?? ((_e = (xe = S == null ? void 0 : S.surface_pressure) == null ? void 0 : xe.filter((J) => J !== null)) == null ? void 0 : _e.at(-1)),
|
|
4833
|
+
code: ((E = S == null ? void 0 : S.weather_code) == null ? void 0 : E.at(L)) ?? ((ke = (De = S == null ? void 0 : S.weather_code) == null ? void 0 : De.filter((J) => J !== null)) == null ? void 0 : ke.at(-1)),
|
|
4834
|
+
visibility: this.m2nm(((Pe = S == null ? void 0 : S.visibility) == null ? void 0 : Pe.at(L)) ?? ((Se = (Me = S == null ? void 0 : S.visibility) == null ? void 0 : Me.filter((J) => J !== null)) == null ? void 0 : Se.at(-1))),
|
|
4835
4835
|
wind: {
|
|
4836
|
-
speed: ((Be =
|
|
4837
|
-
kts: ((Ie =
|
|
4836
|
+
speed: ((Be = S == null ? void 0 : S.wind_speed_10m) == null ? void 0 : Be.at(L)) ?? ((de = (ce = S == null ? void 0 : S.wind_speed_10m) == null ? void 0 : ce.filter((J) => J !== null)) == null ? void 0 : de.at(-1)),
|
|
4837
|
+
kts: ((Ie = S == null ? void 0 : S.wind_speed_10m) == null ? void 0 : Ie.at(L)) ?? ((je = (Fe = S == null ? void 0 : S.wind_speed_10m) == null ? void 0 : Fe.filter((J) => J !== null)) == null ? void 0 : je.at(-1)),
|
|
4838
4838
|
degree: vt,
|
|
4839
4839
|
bearing: vt !== null ? Math.round((vt + 180) % 360) : null,
|
|
4840
|
-
gusts: ((We =
|
|
4840
|
+
gusts: ((We = S == null ? void 0 : S.wind_gusts_10m) == null ? void 0 : We.at(L)) ?? ((Ue = (Ge = S == null ? void 0 : S.wind_gusts_10m) == null ? void 0 : Ge.filter((J) => J !== null)) == null ? void 0 : Ue.at(-1))
|
|
4841
4841
|
},
|
|
4842
|
-
isDay: (Ye =
|
|
4842
|
+
isDay: (Ye = S == null ? void 0 : S.is_day) == null ? void 0 : Ye.at(L)
|
|
4843
4843
|
};
|
|
4844
4844
|
const { name: ei, url: V, bg: hi } = this.parseWeatherCode(be.code, be.isDay);
|
|
4845
4845
|
be.name = ei, be.url = V, be.bg = hi, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), H.push({
|
|
@@ -4853,7 +4853,7 @@ class oi {
|
|
|
4853
4853
|
if (ze != null && ze.length) {
|
|
4854
4854
|
let Oe = 0;
|
|
4855
4855
|
for (const P of ze) {
|
|
4856
|
-
const M = P == null ? void 0 : P.hourly, wt = ((Ke = M == null ? void 0 : M.wave_direction) == null ? void 0 : Ke.at(L)) ?? ((qe = (Xe = M == null ? void 0 : M.wave_direction) == null ? void 0 : Xe.filter((V) => V !== null)) == null ? void 0 : qe.at(-1)),
|
|
4856
|
+
const M = P == null ? void 0 : P.hourly, wt = ((Ke = M == null ? void 0 : M.wave_direction) == null ? void 0 : Ke.at(L)) ?? ((qe = (Xe = M == null ? void 0 : M.wave_direction) == null ? void 0 : Xe.filter((V) => V !== null)) == null ? void 0 : qe.at(-1)), S = ((Je = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : Je.at(L)) ?? ((Ze = (Ve = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : Ve.filter((V) => V !== null)) == null ? void 0 : Ze.at(-1)), vt = (($e = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : $e.at(L)) ?? ((tt = (et = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : et.filter((V) => V !== null)) == null ? void 0 : tt.at(-1)), ei = ((it = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : it.at(L)) ?? ((rt = (at = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : at.filter((V) => V !== null)) == null ? void 0 : rt.at(-1));
|
|
4857
4857
|
Qe = {
|
|
4858
4858
|
wave: {
|
|
4859
4859
|
sig: {
|
|
@@ -4864,8 +4864,8 @@ class oi {
|
|
|
4864
4864
|
},
|
|
4865
4865
|
swell: {
|
|
4866
4866
|
height: ((yt = M == null ? void 0 : M.swell_wave_height) == null ? void 0 : yt.at(L)) ?? ((Ct = (Lt = M == null ? void 0 : M.swell_wave_height) == null ? void 0 : Lt.filter((V) => V !== null)) == null ? void 0 : Ct.at(-1)),
|
|
4867
|
-
degree:
|
|
4868
|
-
bearing:
|
|
4867
|
+
degree: S,
|
|
4868
|
+
bearing: S !== null ? Math.round((S + 180) % 360) : null,
|
|
4869
4869
|
period: ((xt = M == null ? void 0 : M.swell_wave_period) == null ? void 0 : xt.at(L)) ?? ((Bt = (_t = M == null ? void 0 : M.swell_wave_period) == null ? void 0 : _t.filter((V) => V !== null)) == null ? void 0 : Bt.at(-1)),
|
|
4870
4870
|
peakPeriod: ((It = M == null ? void 0 : M.swell_wave_peak_period) == null ? void 0 : It.at(L)) ?? ((Dt = (Et = M == null ? void 0 : M.swell_wave_peak_period) == null ? void 0 : Et.filter((V) => V !== null)) == null ? void 0 : Dt.at(-1))
|
|
4871
4871
|
},
|
|
@@ -4873,7 +4873,7 @@ class oi {
|
|
|
4873
4873
|
height: ((kt = M == null ? void 0 : M.wind_wave_height) == null ? void 0 : kt.at(L)) ?? ((Mt = (Pt = M == null ? void 0 : M.wind_wave_height) == null ? void 0 : Pt.filter((V) => V !== null)) == null ? void 0 : Mt.at(-1)),
|
|
4874
4874
|
degree: vt,
|
|
4875
4875
|
bearing: vt !== null ? Math.round((vt + 180) % 360) : null,
|
|
4876
|
-
period: ((
|
|
4876
|
+
period: ((St = M == null ? void 0 : M.wind_wave_period) == null ? void 0 : St.at(L)) ?? ((zt = (Tt = M == null ? void 0 : M.wind_wave_period) == null ? void 0 : Tt.filter((V) => V !== null)) == null ? void 0 : zt.at(-1)),
|
|
4877
4877
|
peakPeriod: ((Qt = M == null ? void 0 : M.wind_wave_peak_period) == null ? void 0 : Qt.at(L)) ?? ((Nt = (Ht = M == null ? void 0 : M.wind_wave_peak_period) == null ? void 0 : Ht.filter((V) => V !== null)) == null ? void 0 : Nt.at(-1))
|
|
4878
4878
|
}
|
|
4879
4879
|
},
|
|
@@ -4918,17 +4918,17 @@ class oi {
|
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
4920
|
static pickDaily(e, t) {
|
|
4921
|
-
var r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
4921
|
+
var r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O, F, U, Y, he, ee, ne, we, ye, Ce, fe, Ae, K, $, pe, ue, ve, xe, _e, E, De, ke, Pe, Me, Se, Be, ce, de, Ie, Fe, je, We, Ge, Ue, Ye, Ke, Xe, qe, Je, Ve, Ze, $e, et, tt, it, at, rt, ot, ae, mt, _, z, gt, yt, Lt, Ct, xt, _t, Bt, It, Et, Dt, kt, Pt, Mt, St, Tt, zt, Qt, Ht, Nt, Rt, Ot, Ft, jt, Wt, Gt, Ut, Yt, Kt;
|
|
4922
4922
|
const Xt = typeof t == "string" ? oe(t) : t;
|
|
4923
4923
|
let nt = Xt.clone();
|
|
4924
4924
|
const pt = e == null ? void 0 : e.weather, bt = e == null ? void 0 : e.marine, Ne = oe((o = (a = (r = pt == null ? void 0 : pt[0]) == null ? void 0 : r.daily) == null ? void 0 : a.time) == null ? void 0 : o.at(0)), Re = oe((c = (l = (n = pt == null ? void 0 : pt[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ze = [];
|
|
4925
4925
|
nt = nt.isBefore(Ne) ? Ne.clone() : nt, nt = nt.isAfter(Re) ? Re.clone() : nt;
|
|
4926
|
-
let
|
|
4926
|
+
let Te, At;
|
|
4927
4927
|
const G = nt.diff(Ne, "d", !1);
|
|
4928
4928
|
if (pt)
|
|
4929
4929
|
for (const ft of pt) {
|
|
4930
4930
|
const H = ft.daily, L = ((d = H.wind_direction_10m_dominant) == null ? void 0 : d.at(G)) ?? ((p = (h = H.wind_direction_10m_dominant) == null ? void 0 : h.filter((P) => P !== null)) == null ? void 0 : p.at(-1));
|
|
4931
|
-
|
|
4931
|
+
Te = {
|
|
4932
4932
|
code: ((x = H.weather_code) == null ? void 0 : x.at(G)) ?? ((I = (B = H.weather_code) == null ? void 0 : B.filter((P) => P !== null)) == null ? void 0 : I.at(-1)),
|
|
4933
4933
|
temp: {
|
|
4934
4934
|
max: ((C = H.temperature_2m_max) == null ? void 0 : C.at(G)) ?? ((A = (D = H.temperature_2m_max) == null ? void 0 : D.filter((P) => P !== null)) == null ? void 0 : A.at(-1)),
|
|
@@ -4936,7 +4936,7 @@ class oi {
|
|
|
4936
4936
|
mean: ((w = H.temperature_2m_mean) == null ? void 0 : w.at(G)) ?? ((v = (y = H.temperature_2m_mean) == null ? void 0 : y.filter((P) => P !== null)) == null ? void 0 : v.at(-1))
|
|
4937
4937
|
},
|
|
4938
4938
|
apparentTemp: {
|
|
4939
|
-
max: ((Q = H.apparent_temperature_max) == null ? void 0 : Q.at(G)) ?? ((j = (
|
|
4939
|
+
max: ((Q = H.apparent_temperature_max) == null ? void 0 : Q.at(G)) ?? ((j = (T = H.apparent_temperature_max) == null ? void 0 : T.filter((P) => P !== null)) == null ? void 0 : j.at(-1)),
|
|
4940
4940
|
min: ((O = H.apparent_temperature_min) == null ? void 0 : O.at(G)) ?? ((U = (F = H.apparent_temperature_min) == null ? void 0 : F.filter((P) => P !== null)) == null ? void 0 : U.at(-1))
|
|
4941
4941
|
},
|
|
4942
4942
|
precip: {
|
|
@@ -4950,7 +4950,7 @@ class oi {
|
|
|
4950
4950
|
rh: {
|
|
4951
4951
|
max: ((xe = H.relative_humidity_2m_max) == null ? void 0 : xe.at(G)) ?? ((E = (_e = H.relative_humidity_2m_max) == null ? void 0 : _e.filter((P) => P !== null)) == null ? void 0 : E.at(-1)),
|
|
4952
4952
|
min: ((De = H.relative_humidity_2m_min) == null ? void 0 : De.at(G)) ?? ((Pe = (ke = H.relative_humidity_2m_min) == null ? void 0 : ke.filter((P) => P !== null)) == null ? void 0 : Pe.at(-1)),
|
|
4953
|
-
mean: ((Me = H.relative_humidity_2m_mean) == null ? void 0 : Me.at(G)) ?? ((Be = (
|
|
4953
|
+
mean: ((Me = H.relative_humidity_2m_mean) == null ? void 0 : Me.at(G)) ?? ((Be = (Se = H.relative_humidity_2m_mean) == null ? void 0 : Se.filter((P) => P !== null)) == null ? void 0 : Be.at(-1))
|
|
4954
4954
|
},
|
|
4955
4955
|
wind: {
|
|
4956
4956
|
speed: ((ce = H.wind_speed_10m_max) == null ? void 0 : ce.at(G)) ?? ((Ie = (de = H.wind_speed_10m_max) == null ? void 0 : de.filter((P) => P !== null)) == null ? void 0 : Ie.at(-1)),
|
|
@@ -4966,12 +4966,12 @@ class oi {
|
|
|
4966
4966
|
mean: this.m2nm(((it = H.visibility_mean) == null ? void 0 : it.at(G)) ?? ((rt = (at = H.visibility_mean) == null ? void 0 : at.filter((P) => P !== null)) == null ? void 0 : rt.at(-1)))
|
|
4967
4967
|
}
|
|
4968
4968
|
};
|
|
4969
|
-
const { name: be, url: Qe, bg: Oe } = this.parseWeatherCode(
|
|
4970
|
-
|
|
4969
|
+
const { name: be, url: Qe, bg: Oe } = this.parseWeatherCode(Te.code, !0);
|
|
4970
|
+
Te.name = be, Te.url = Qe, Te.bg = Oe, Te.wind.scale = this.beaufort(this.kts2ms(Te.wind.kts)), Te.wind.direction = this.degree2Direction(Te.wind.degree), ze.push({
|
|
4971
4971
|
utc: Xt.utc().format(),
|
|
4972
4972
|
realUTC: Ne.add(G, "d").utc().format(),
|
|
4973
4973
|
model: ft.model,
|
|
4974
|
-
weather: { ...
|
|
4974
|
+
weather: { ...Te }
|
|
4975
4975
|
});
|
|
4976
4976
|
}
|
|
4977
4977
|
if (bt) {
|
|
@@ -4989,7 +4989,7 @@ class oi {
|
|
|
4989
4989
|
swell: {
|
|
4990
4990
|
height: ((kt = L == null ? void 0 : L.swell_wave_height_max) == null ? void 0 : kt.at(G)) ?? ((Mt = (Pt = L == null ? void 0 : L.swell_wave_height_max) == null ? void 0 : Pt.filter((P) => P !== null)) == null ? void 0 : Mt.at(-1)),
|
|
4991
4991
|
degree: Qe,
|
|
4992
|
-
period: ((
|
|
4992
|
+
period: ((St = L == null ? void 0 : L.swell_wave_period_max) == null ? void 0 : St.at(G)) ?? ((zt = (Tt = L == null ? void 0 : L.swell_wave_period_max) == null ? void 0 : Tt.filter((P) => P !== null)) == null ? void 0 : zt.at(-1)),
|
|
4993
4993
|
peakPeriod: ((Qt = L == null ? void 0 : L.swell_wave_peak_period_max) == null ? void 0 : Qt.at(G)) ?? ((Nt = (Ht = L == null ? void 0 : L.swell_wave_peak_period_max) == null ? void 0 : Ht.filter((P) => P !== null)) == null ? void 0 : Nt.at(-1)),
|
|
4994
4994
|
bearing: Qe !== null ? Math.round((Qe + 180) % 360) : null
|
|
4995
4995
|
},
|
|
@@ -5001,7 +5001,7 @@ class oi {
|
|
|
5001
5001
|
bearing: Oe !== null ? Math.round((Oe + 180) % 360) : null
|
|
5002
5002
|
}
|
|
5003
5003
|
}
|
|
5004
|
-
}, At.wave = this.parseWave(At.wave,
|
|
5004
|
+
}, At.wave = this.parseWave(At.wave, Te == null ? void 0 : Te.wind), Object.assign(ze[ft] || {}, At), ft++;
|
|
5005
5005
|
}
|
|
5006
5006
|
}
|
|
5007
5007
|
return ze;
|
|
@@ -5699,10 +5699,10 @@ const Fa = {
|
|
|
5699
5699
|
const A = (h = this.tropicals.data.features) == null ? void 0 : h.filter((w) => w.geometry.type === "Point" && w.properties.type === "forecast");
|
|
5700
5700
|
let f = 0, b = 0, u = (x = (p = this.findClosestToNumber(A, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : x.hour;
|
|
5701
5701
|
A.forEach((w, y) => {
|
|
5702
|
-
var
|
|
5702
|
+
var T, j, O, F, U, Y, he, ee, ne, we, ye, Ce, fe, Ae, K, $, pe, ue, ve, xe, _e, E, De, ke, Pe, Me, Se;
|
|
5703
5703
|
let v;
|
|
5704
5704
|
const Q = this.findClosestToNumber(A, "hour", u + f * 24);
|
|
5705
|
-
if (Q && ((
|
|
5705
|
+
if (Q && ((T = Q == null ? void 0 : Q.properties) == null ? void 0 : T.hour) === ((j = w.properties) == null ? void 0 : j.hour) && (v = Q), v) {
|
|
5706
5706
|
let Be = 0, ce = "tropical-marker-box", de = "tropical-marker-line";
|
|
5707
5707
|
ce = ((U = (F = (O = v.properties) == null ? void 0 : O.wind) == null ? void 0 : F.en) == null ? void 0 : U.toUpperCase()) === "SUPER TY" ? ce + " supper" : ce + " normal", de = ((ee = (he = (Y = v.properties) == null ? void 0 : Y.wind) == null ? void 0 : he.en) == null ? void 0 : ee.toUpperCase()) === "SUPER TY" ? de + " supper" : de + " normal", ((we = (ne = v.properties) == null ? void 0 : ne.movement) == null ? void 0 : we.deg) >= 0 && ((Ce = (ye = v.properties) == null ? void 0 : ye.movement) == null ? void 0 : Ce.deg) <= 60 || ((Ae = (fe = v.properties) == null ? void 0 : fe.movement) == null ? void 0 : Ae.deg) >= 120 && (($ = (K = v.properties) == null ? void 0 : K.movement) == null ? void 0 : $.deg) <= 240 || ((ue = (pe = v.properties) == null ? void 0 : pe.movement) == null ? void 0 : ue.deg) >= 300 && ((xe = (ve = v.properties) == null ? void 0 : ve.movement) == null ? void 0 : xe.deg) <= 360 ? (Be = f % 2 === 0 ? [84, 0] : [-84, 0], ce = f % 2 === 0 ? ce + " right" : ce + " left", de = f % 2 === 0 ? de + " vertical right" : de + " vertical left") : (Be = b % 2 === 0 ? [60, -40] : [60, 40], ce = b % 2 === 0 ? ce + " top" : ce + " bottom", de = b % 2 === 0 ? de + " align top" : de + " align bottom", b = b + 1);
|
|
5708
5708
|
const Ie = document.createElement("div");
|
|
@@ -5713,7 +5713,7 @@ const Fa = {
|
|
|
5713
5713
|
</div>
|
|
5714
5714
|
<div>
|
|
5715
5715
|
<span>BF${((Me = (Pe = w.properties) == null ? void 0 : Pe.wind) == null ? void 0 : Me.bf) || "-"}</span> /
|
|
5716
|
-
<span>${((
|
|
5716
|
+
<span>${((Se = w.properties) == null ? void 0 : Se.pressure) || "-"} hPa</span>
|
|
5717
5717
|
</div>
|
|
5718
5718
|
<div class="${de}"></div>
|
|
5719
5719
|
`, this.labelMarkers.push(new ct.Marker(Ie).setLngLat(w.geometry.coordinates).setOffset(Be).addTo(this.map));
|
|
@@ -5823,7 +5823,7 @@ const Fa = {
|
|
|
5823
5823
|
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), (i = this.interpolateMarkers) == null || i.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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5824
5824
|
},
|
|
5825
5825
|
handleDateChange() {
|
|
5826
|
-
var i, e, t, r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
5826
|
+
var i, e, t, r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O, F, U, Y, he;
|
|
5827
5827
|
if ((i = this.interpolateMarkers) == null || i.forEach((ee) => ee == null ? void 0 : ee.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5828
5828
|
const ee = oe(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ne = oe.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = ee.isBefore(ne) && ne.diff(ee, "h") < 2 ? ne.format() : ee.format(), ye = this.interpolateData.filter((K) => K.properties.date === we && !K.properties.disabled), Ce = this.handleComputePolygons(ye), fe = N.featureCollection([...ye]);
|
|
5829
5829
|
Ce.forEach((K) => {
|
|
@@ -5849,7 +5849,7 @@ const Fa = {
|
|
|
5849
5849
|
return $.properties.name === ((pe = K.properties) == null ? void 0 : pe.name);
|
|
5850
5850
|
}) || Ae.push(K), !K.properties.disabled) {
|
|
5851
5851
|
let $ = "#f44336";
|
|
5852
|
-
((l = (n = K.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = K.properties) == null ? void 0 : c.wind) != null && d.kts) ? $ = "#03f869" : ((p = (h = K.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((B = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : B.kts) < 47 ? $ = "#f2f202" : ((C = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 47 && ((A = (D = K.properties) == null ? void 0 : D.wind) == null ? void 0 : A.kts) < 63 ? $ = "#ff9100" : ((b = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : b.kts) >= 63 && ((w = (u = K.properties) == null ? void 0 : u.wind) == null ? void 0 : w.kts) < 79 ? $ = "#f44336" : ((v = (y = K.properties) == null ? void 0 : y.wind) == null ? void 0 : v.kts) >= 79 && ((
|
|
5852
|
+
((l = (n = K.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = K.properties) == null ? void 0 : c.wind) != null && d.kts) ? $ = "#03f869" : ((p = (h = K.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((B = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : B.kts) < 47 ? $ = "#f2f202" : ((C = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 47 && ((A = (D = K.properties) == null ? void 0 : D.wind) == null ? void 0 : A.kts) < 63 ? $ = "#ff9100" : ((b = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : b.kts) >= 63 && ((w = (u = K.properties) == null ? void 0 : u.wind) == null ? void 0 : w.kts) < 79 ? $ = "#f44336" : ((v = (y = K.properties) == null ? void 0 : y.wind) == null ? void 0 : v.kts) >= 79 && ((T = (Q = K.properties) == null ? void 0 : Q.wind) == null ? void 0 : T.kts) < 94 ? $ = "#f903d0" : ((O = (j = K.properties) == null ? void 0 : j.wind) == null ? void 0 : O.kts) >= 94 ? $ = "#8702f9" : $ = "#f44336";
|
|
5853
5853
|
const pe = `<svg t="1719918955501"
|
|
5854
5854
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5855
5855
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -6004,7 +6004,7 @@ const Fa = {
|
|
|
6004
6004
|
style: { "justify-content": "flex-start" }
|
|
6005
6005
|
}, ar = { class: "forecast-models" }, rr = ["onClick"], or = { class: "more" };
|
|
6006
6006
|
function sr(i, e, t, r, a, o) {
|
|
6007
|
-
var n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
6007
|
+
var n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O;
|
|
6008
6008
|
return lt((m(), g("div", ja, [
|
|
6009
6009
|
s("div", Wa, [
|
|
6010
6010
|
s("div", {
|
|
@@ -6033,7 +6033,7 @@ function sr(i, e, t, r, a, o) {
|
|
|
6033
6033
|
s("div", Za, [
|
|
6034
6034
|
s("div", $a, [
|
|
6035
6035
|
e[5] || (e[5] = s("label", null, "Move Speed: ", -1)),
|
|
6036
|
-
s("span", null, k((
|
|
6036
|
+
s("span", null, k((T = o.computeMovement(a.activeTropicals)) == null ? void 0 : T.kts) + " [kts]", 1)
|
|
6037
6037
|
]),
|
|
6038
6038
|
s("div", er, [
|
|
6039
6039
|
e[6] || (e[6] = s("label", null, "Move Dir: ", -1)),
|
|
@@ -6776,7 +6776,7 @@ const Br = {
|
|
|
6776
6776
|
initTableData(i) {
|
|
6777
6777
|
var e, t, r, a, o, n, l, c, d;
|
|
6778
6778
|
this.clearTable(), this.positionGmt = (t = (e = i == null ? void 0 : i.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (a = (r = i == null ? void 0 : i.weather) == null ? void 0 : r[0]) == null ? void 0 : a.offset, this.localDate = (n = (o = Jt(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = qt.pickHourly(i, oe(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6779
|
-
var p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
6779
|
+
var p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O, F, U, Y, he, ee, ne, we, ye, Ce, fe, Ae, K, $, pe, ue, ve;
|
|
6780
6780
|
if (!document.getElementById("meteoMainBox"))
|
|
6781
6781
|
return !1;
|
|
6782
6782
|
if (!this.currentHourData)
|
|
@@ -6785,7 +6785,7 @@ const Br = {
|
|
|
6785
6785
|
const _e = Jt(this.ts).tz(this.positionGmt).add(3 * xe, "h").format();
|
|
6786
6786
|
this.tableData.hours.push(_e);
|
|
6787
6787
|
const E = ((p = qt.pickHourly(i, _e)) == null ? void 0 : p[0]) || {};
|
|
6788
|
-
this.tableData.temp.push(this.roundPrecision((x = E == null ? void 0 : E.weather) == null ? void 0 : x.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((I = (B = E == null ? void 0 : E.weather) == null ? void 0 : B.precip) == null ? void 0 : I.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (C = E == null ? void 0 : E.weather) == null ? void 0 : C.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((A = E == null ? void 0 : E.weather) == null ? void 0 : A.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (f = E == null ? void 0 : E.weather) == null ? void 0 : f.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((w = (u = E == null ? void 0 : E.weather) == null ? void 0 : u.wind) == null ? void 0 : w.bearing), this.tableData.windGust.push(this.roundPrecision((v = (y = E == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : v.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((
|
|
6788
|
+
this.tableData.temp.push(this.roundPrecision((x = E == null ? void 0 : E.weather) == null ? void 0 : x.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((I = (B = E == null ? void 0 : E.weather) == null ? void 0 : B.precip) == null ? void 0 : I.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (C = E == null ? void 0 : E.weather) == null ? void 0 : C.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((A = E == null ? void 0 : E.weather) == null ? void 0 : A.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (f = E == null ? void 0 : E.weather) == null ? void 0 : f.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((w = (u = E == null ? void 0 : E.weather) == null ? void 0 : u.wind) == null ? void 0 : w.bearing), this.tableData.windGust.push(this.roundPrecision((v = (y = E == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : v.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((T = (Q = E == null ? void 0 : E.wave) == null ? void 0 : Q.sig) == null ? void 0 : T.height, 1) ?? "-"), this.tableData.sigwaveDir.push((O = (j = E == null ? void 0 : E.wave) == null ? void 0 : j.sig) == null ? void 0 : O.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (F = E == null ? void 0 : E.wave) == null ? void 0 : F.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((he = (Y = E == null ? void 0 : E.wave) == null ? void 0 : Y.wd) == null ? void 0 : he.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ne = (ee = E == null ? void 0 : E.wave) == null ? void 0 : ee.wd) == null ? void 0 : ne.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ye = (we = E == null ? void 0 : E.wave) == null ? void 0 : we.swell) == null ? void 0 : ye.height, 1) ?? "-"), this.tableData.swellDir.push((fe = (Ce = E == null ? void 0 : E.wave) == null ? void 0 : Ce.swell) == null ? void 0 : fe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((K = (Ae = E == null ? void 0 : E.wave) == null ? void 0 : Ae.swell) == null ? void 0 : K.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision(($ = E == null ? void 0 : E.current) == null ? void 0 : $.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = E == null ? void 0 : E.current) == null ? void 0 : pe.bearing), this.tableData.seaLevel.push(this.roundPrecision(E == null ? void 0 : E.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(E == null ? void 0 : E.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ue = E == null ? void 0 : E.weather) == null ? void 0 : ue.url), this.tableData.weatherNames.push(((ve = E == null ? void 0 : E.weather) == null ? void 0 : ve.name) ?? "-");
|
|
6789
6789
|
}
|
|
6790
6790
|
});
|
|
6791
6791
|
},
|
|
@@ -6869,7 +6869,7 @@ const Br = {
|
|
|
6869
6869
|
}, Ir = {
|
|
6870
6870
|
id: "point-meteo",
|
|
6871
6871
|
class: "point-meteo"
|
|
6872
|
-
}, Er = { class: "meteo-box" }, Dr = { class: "header-box flex-between" }, kr = { class: "flex-center" }, Pr = { class: "lnglat" }, Mr = { class: "flex-center" },
|
|
6872
|
+
}, Er = { class: "meteo-box" }, Dr = { class: "header-box flex-between" }, kr = { class: "flex-center" }, Pr = { class: "lnglat" }, Mr = { class: "flex-center" }, Sr = { class: "summary-row flex-between" }, Tr = { class: "summary flex-center" }, zr = ["src"], Qr = {
|
|
6873
6873
|
key: 1,
|
|
6874
6874
|
class: "icon flex-center",
|
|
6875
6875
|
style: { "margin-right": "5px" }
|
|
@@ -6897,10 +6897,10 @@ const Br = {
|
|
|
6897
6897
|
}, Po = { class: "flex-between" }, Mo = {
|
|
6898
6898
|
class: "flex-space",
|
|
6899
6899
|
style: { flex: "1", "line-height": "30px" }
|
|
6900
|
-
},
|
|
6900
|
+
}, So = {
|
|
6901
6901
|
class: "flex-space",
|
|
6902
6902
|
style: { flex: "1", "padding-left": "30px" }
|
|
6903
|
-
},
|
|
6903
|
+
}, To = { class: "flex-between" }, zo = {
|
|
6904
6904
|
class: "flex-space",
|
|
6905
6905
|
style: { flex: "1", "line-height": "30px" }
|
|
6906
6906
|
}, Qo = {
|
|
@@ -6911,7 +6911,7 @@ const Br = {
|
|
|
6911
6911
|
class: "main-box flex-center"
|
|
6912
6912
|
};
|
|
6913
6913
|
function No(i, e, t, r, a, o) {
|
|
6914
|
-
var d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q,
|
|
6914
|
+
var d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q, T, j, O, F, U, Y, he, ee, ne, we, ye, Ce, fe, Ae, K, $, pe, ue, ve, xe, _e, E, De, ke, Pe, Me, Se, Be, ce, de, Ie, Fe, je, We, Ge, Ue, Ye, Ke, Xe, qe, Je, Ve, Ze, $e, et, tt, it, at, rt, ot, ae, mt;
|
|
6915
6915
|
const n = W("LocationFilled"), l = W("ElIcon"), c = W("ElTooltip");
|
|
6916
6916
|
return lt((m(), g("div", Ir, [
|
|
6917
6917
|
s("div", Er, [
|
|
@@ -6951,8 +6951,8 @@ function No(i, e, t, r, a, o) {
|
|
|
6951
6951
|
class: ie(["main-box", a.isDay ? "day-bg" : "night-bg"]),
|
|
6952
6952
|
id: "meteoMainBox"
|
|
6953
6953
|
}, [
|
|
6954
|
-
s("div",
|
|
6955
|
-
s("div",
|
|
6954
|
+
s("div", Sr, [
|
|
6955
|
+
s("div", Tr, [
|
|
6956
6956
|
R(c, {
|
|
6957
6957
|
placement: "top",
|
|
6958
6958
|
effect: "light",
|
|
@@ -7391,7 +7391,7 @@ function No(i, e, t, r, a, o) {
|
|
|
7391
7391
|
s("div", Lo, [
|
|
7392
7392
|
s("div", Co, [
|
|
7393
7393
|
e[33] || (e[33] = s("div", null, "Wind", -1)),
|
|
7394
|
-
s("div", null, k((O = (j = (
|
|
7394
|
+
s("div", null, k((O = (j = (T = a.currentHourData) == null ? void 0 : T.weather) == null ? void 0 : j.wind) == null ? void 0 : O.direction) + "/" + k(o.roundPrecision((Y = (U = (F = a.currentHourData) == null ? void 0 : F.weather) == null ? void 0 : U.wind) == null ? void 0 : Y.kts, 1)) + "kts/BF" + k((ne = (ee = (he = a.currentHourData) == null ? void 0 : he.weather) == null ? void 0 : ee.wind) == null ? void 0 : ne.scale) + "/" + k(o.roundPrecision((Ce = (ye = (we = a.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ye.wind) == null ? void 0 : Ce.gusts, 1)) + " kts", 1)
|
|
7395
7395
|
]),
|
|
7396
7396
|
s("div", xo, [
|
|
7397
7397
|
e[34] || (e[34] = s("div", null, "Sig wave", -1)),
|
|
@@ -7401,7 +7401,7 @@ function No(i, e, t, r, a, o) {
|
|
|
7401
7401
|
s("div", _o, [
|
|
7402
7402
|
s("div", Bo, [
|
|
7403
7403
|
e[35] || (e[35] = s("div", null, "Wind wave", -1)),
|
|
7404
|
-
s("div", null, k((ke = (De = (E = a.currentHourData) == null ? void 0 : E.wave) == null ? void 0 : De.wd) == null ? void 0 : ke.direction) + "/" + k(o.roundPrecision((
|
|
7404
|
+
s("div", null, k((ke = (De = (E = a.currentHourData) == null ? void 0 : E.wave) == null ? void 0 : De.wd) == null ? void 0 : ke.direction) + "/" + k(o.roundPrecision((Se = (Me = (Pe = a.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Me.wd) == null ? void 0 : Se.height, 1)) + "m/" + k(o.roundPrecision((de = (ce = (Be = a.currentHourData) == null ? void 0 : Be.wave) == null ? void 0 : ce.wd) == null ? void 0 : de.period, 1)) + "s", 1)
|
|
7405
7405
|
]),
|
|
7406
7406
|
s("div", Io, [
|
|
7407
7407
|
e[36] || (e[36] = s("div", null, "Swell", -1)),
|
|
@@ -7423,12 +7423,12 @@ function No(i, e, t, r, a, o) {
|
|
|
7423
7423
|
e[39] || (e[39] = s("div", null, "Sea Temp", -1)),
|
|
7424
7424
|
s("div", null, k(o.roundPrecision((et = a.currentHourData) == null ? void 0 : et.sst, 1)) + "°C", 1)
|
|
7425
7425
|
]),
|
|
7426
|
-
s("div",
|
|
7426
|
+
s("div", So, [
|
|
7427
7427
|
e[40] || (e[40] = s("div", null, "Visibility", -1)),
|
|
7428
7428
|
s("div", null, k(o.roundPrecision((it = (tt = a.currentHourData) == null ? void 0 : tt.weather) == null ? void 0 : it.visibility, 1)) + "nm", 1)
|
|
7429
7429
|
])
|
|
7430
7430
|
]),
|
|
7431
|
-
s("div",
|
|
7431
|
+
s("div", To, [
|
|
7432
7432
|
s("div", zo, [
|
|
7433
7433
|
e[41] || (e[41] = s("div", null, "Temp", -1)),
|
|
7434
7434
|
s("div", null, k(o.roundPrecision((rt = (at = a.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : rt.temp, 1)) + "°C", 1)
|
|
@@ -9079,7 +9079,7 @@ const ks = {
|
|
|
9079
9079
|
},
|
|
9080
9080
|
methods: {}
|
|
9081
9081
|
}, Ps = { key: 0 }, Ms = { class: "bar-item" };
|
|
9082
|
-
function
|
|
9082
|
+
function Ss(i, e, t, r, a, o) {
|
|
9083
9083
|
const n = W("ElTooltip");
|
|
9084
9084
|
return t.enabled && t.permission & a.helper.LEVEL.Supper ? (m(), g("div", Ps, [
|
|
9085
9085
|
s("div", {
|
|
@@ -9123,7 +9123,7 @@ function Ts(i, e, t, r, a, o) {
|
|
|
9123
9123
|
], 4)
|
|
9124
9124
|
])) : Z("", !0);
|
|
9125
9125
|
}
|
|
9126
|
-
const
|
|
9126
|
+
const Ts = /* @__PURE__ */ X(ks, [["render", Ss], ["__scopeId", "data-v-8eecd76d"]]), zs = {
|
|
9127
9127
|
name: "IdmWorld12nm",
|
|
9128
9128
|
props: {
|
|
9129
9129
|
map: {
|
|
@@ -9384,7 +9384,7 @@ const Js = {
|
|
|
9384
9384
|
IdmLatLng: li,
|
|
9385
9385
|
IdmMeasure: Ds,
|
|
9386
9386
|
IdmPoint: Ro,
|
|
9387
|
-
IdmENC:
|
|
9387
|
+
IdmENC: Ts,
|
|
9388
9388
|
IdmWorld12nm: Hs,
|
|
9389
9389
|
IdmWorldMarine: Os,
|
|
9390
9390
|
IdmChinaRoute: Ws,
|
|
@@ -9411,6 +9411,13 @@ const Js = {
|
|
|
9411
9411
|
},
|
|
9412
9412
|
forecastModel: {
|
|
9413
9413
|
type: String
|
|
9414
|
+
},
|
|
9415
|
+
gateway: {
|
|
9416
|
+
type: String
|
|
9417
|
+
},
|
|
9418
|
+
assistGateway: {
|
|
9419
|
+
type: Array,
|
|
9420
|
+
default: () => []
|
|
9414
9421
|
}
|
|
9415
9422
|
},
|
|
9416
9423
|
emits: ["toggleVersion", "activeWeatherLayers", "showMeteoPoint"],
|
|
@@ -9427,8 +9434,6 @@ const Js = {
|
|
|
9427
9434
|
show3d: !1,
|
|
9428
9435
|
meteo: void 0,
|
|
9429
9436
|
source: "",
|
|
9430
|
-
gateway: "https://cbe.ormwx.com",
|
|
9431
|
-
assistGateway: ["https://assist0.ormwx.com", "https://assist1.ormwx.com"],
|
|
9432
9437
|
mapProjection: "mercator",
|
|
9433
9438
|
zoom: 6,
|
|
9434
9439
|
viewport: void 0,
|
|
@@ -9472,7 +9477,7 @@ const Js = {
|
|
|
9472
9477
|
var t, r, a, o, n, l, c, d, h, p, x, B, I, C, D, A, f, b, u, w, y, v, Q;
|
|
9473
9478
|
if (!this.map)
|
|
9474
9479
|
return !1;
|
|
9475
|
-
const i = this.activeWeatherLayers.some((
|
|
9480
|
+
const i = this.activeWeatherLayers.some((T) => T.key === "wind" && T.particle === !0 || T.key === "current" && T.particle === !0 || T.key === "ice-edge" || T.key === "ice-thickness" || T.key === "ice-cover" || T.key === "temp" || T.key === "water-temp"), e = this.activeWeatherLayers.some((T) => T.key === "visibility" || T.key === "precip3h");
|
|
9476
9481
|
this.activeWeatherLayers.length > 0 ? (!i && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((o = (a = this.map) == null ? void 0 : a.getLayer("i4")) == null || o.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((I = this.map) == null || I.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((D = this.map) == null || D.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (C = this.viewport) == null ? void 0 : C.rampColorLayer))) : ((f = (A = this.map) == null ? void 0 : A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (u = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible") : ((y = (w = this.map) == null ? void 0 : w.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (Q = (v = this.map) == null ? void 0 : v.getLayer("hi")) == null || Q.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9477
9482
|
},
|
|
9478
9483
|
immediate: !0
|
|
@@ -9562,8 +9567,8 @@ const Js = {
|
|
|
9562
9567
|
const y = await Promise.all(w);
|
|
9563
9568
|
this.weatherLayers = {}, y.map((v) => {
|
|
9564
9569
|
var j, O, F, U;
|
|
9565
|
-
const Q = ((j = v == null ? void 0 : v.data) == null ? void 0 : j.data) || (v == null ? void 0 : v.data),
|
|
9566
|
-
|
|
9570
|
+
const Q = ((j = v == null ? void 0 : v.data) == null ? void 0 : j.data) || (v == null ? void 0 : v.data), T = (F = (O = v == null ? void 0 : v.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
|
|
9571
|
+
T && Q && (this.weatherLayers[T] = {
|
|
9567
9572
|
raw: Q,
|
|
9568
9573
|
type: ((U = v == null ? void 0 : v.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
|
|
9569
9574
|
etime: b.data.etime
|
|
@@ -9575,8 +9580,8 @@ const Js = {
|
|
|
9575
9580
|
}
|
|
9576
9581
|
}).then((v) => {
|
|
9577
9582
|
var j, O, F;
|
|
9578
|
-
const Q = si.convert2Geojson(((j = v == null ? void 0 : v.data) == null ? void 0 : j.data) || (v == null ? void 0 : v.data)),
|
|
9579
|
-
this.weatherLayers[
|
|
9583
|
+
const Q = si.convert2Geojson(((j = v == null ? void 0 : v.data) == null ? void 0 : j.data) || (v == null ? void 0 : v.data)), T = (F = (O = v == null ? void 0 : v.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
|
|
9584
|
+
this.weatherLayers[T] = {
|
|
9580
9585
|
data: Q,
|
|
9581
9586
|
active: !0,
|
|
9582
9587
|
cached: !1,
|
|
@@ -9611,7 +9616,16 @@ const Js = {
|
|
|
9611
9616
|
}
|
|
9612
9617
|
this.$emit("toggleVersion", Math.random());
|
|
9613
9618
|
},
|
|
9614
|
-
async fetchOtherLayers(i = {
|
|
9619
|
+
async fetchOtherLayers(i = {
|
|
9620
|
+
all: !1,
|
|
9621
|
+
dayNight: !1,
|
|
9622
|
+
enc: !1,
|
|
9623
|
+
world12nm: !1,
|
|
9624
|
+
worldMarine: !1,
|
|
9625
|
+
chinaRoute: !1,
|
|
9626
|
+
liaoningRoute: !1,
|
|
9627
|
+
marpolGarbageArea: !1
|
|
9628
|
+
}) {
|
|
9615
9629
|
var e, t, r, a;
|
|
9616
9630
|
if (this.map) {
|
|
9617
9631
|
let o = this.otherWeight;
|
|
@@ -9732,11 +9746,11 @@ const Js = {
|
|
|
9732
9746
|
if (u > l && u < c && (!(a <= this.zoom) || u % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9733
9747
|
const w = f[u].lng;
|
|
9734
9748
|
o > n ? w.forEach((y, v) => {
|
|
9735
|
-
var Q,
|
|
9749
|
+
var Q, T, j, O, F, U;
|
|
9736
9750
|
if (a < 2) {
|
|
9737
9751
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9738
9752
|
const Y = N.point([y, u], {
|
|
9739
|
-
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((
|
|
9753
|
+
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((T = f[u].dir) == null ? void 0 : T[v]),
|
|
9740
9754
|
spd: (j = f[u].spd) == null ? void 0 : j[v]
|
|
9741
9755
|
});
|
|
9742
9756
|
A.push(Y);
|
|
@@ -9749,11 +9763,11 @@ const Js = {
|
|
|
9749
9763
|
A.push(Y);
|
|
9750
9764
|
}
|
|
9751
9765
|
}) : w.forEach((y, v) => {
|
|
9752
|
-
var Q,
|
|
9766
|
+
var Q, T, j, O, F, U;
|
|
9753
9767
|
if (o < 2) {
|
|
9754
9768
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9755
9769
|
const Y = N.point([y, u], {
|
|
9756
|
-
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((
|
|
9770
|
+
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((T = f[u].dir) == null ? void 0 : T[v]),
|
|
9757
9771
|
spd: (j = f[u].spd) == null ? void 0 : j[v]
|
|
9758
9772
|
});
|
|
9759
9773
|
A.push(Y);
|
|
@@ -9796,11 +9810,11 @@ const Js = {
|
|
|
9796
9810
|
if (u > l && u < c && (!(a <= this.zoom) || u % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9797
9811
|
const w = f[u].lng;
|
|
9798
9812
|
o > n ? w.forEach((y, v) => {
|
|
9799
|
-
var Q,
|
|
9813
|
+
var Q, T, j, O, F, U;
|
|
9800
9814
|
if (a < 2) {
|
|
9801
9815
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9802
9816
|
const Y = N.point([y, u], {
|
|
9803
|
-
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((
|
|
9817
|
+
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((T = f[u].dir) == null ? void 0 : T[v]),
|
|
9804
9818
|
spd: (j = f[u].spd) == null ? void 0 : j[v]
|
|
9805
9819
|
});
|
|
9806
9820
|
A.push(Y);
|
|
@@ -9813,11 +9827,11 @@ const Js = {
|
|
|
9813
9827
|
A.push(Y);
|
|
9814
9828
|
}
|
|
9815
9829
|
}) : w.forEach((y, v) => {
|
|
9816
|
-
var Q,
|
|
9830
|
+
var Q, T, j, O, F, U;
|
|
9817
9831
|
if (o < 2) {
|
|
9818
9832
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9819
9833
|
const Y = N.point([y, u], {
|
|
9820
|
-
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((
|
|
9834
|
+
val: ((Q = f[u].val) == null ? void 0 : Q[v]) || ((T = f[u].dir) == null ? void 0 : T[v]),
|
|
9821
9835
|
spd: (j = f[u].spd) == null ? void 0 : j[v]
|
|
9822
9836
|
});
|
|
9823
9837
|
A.push(Y);
|
|
@@ -9857,7 +9871,7 @@ const Js = {
|
|
|
9857
9871
|
if (b > l && b < c && (!(a <= this.zoom) || b % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9858
9872
|
const u = f[b].lng;
|
|
9859
9873
|
o > n ? u.forEach((w, y) => {
|
|
9860
|
-
var v, Q,
|
|
9874
|
+
var v, Q, T, j;
|
|
9861
9875
|
if (a < 2) {
|
|
9862
9876
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
9863
9877
|
const O = N.point([w, b], {
|
|
@@ -9868,13 +9882,13 @@ const Js = {
|
|
|
9868
9882
|
}
|
|
9869
9883
|
} else if ((w >= o && w <= 180 || w >= -180 && w <= n) && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9870
9884
|
const O = N.point([w, b], {
|
|
9871
|
-
dir: ((
|
|
9885
|
+
dir: ((T = f[b].val) == null ? void 0 : T[y]) || ((j = f[b].dir) == null ? void 0 : j[y]),
|
|
9872
9886
|
spd: f[b].spd[y]
|
|
9873
9887
|
});
|
|
9874
9888
|
A.push(O);
|
|
9875
9889
|
}
|
|
9876
9890
|
}) : u.forEach((w, y) => {
|
|
9877
|
-
var v, Q,
|
|
9891
|
+
var v, Q, T, j;
|
|
9878
9892
|
if (a < 2) {
|
|
9879
9893
|
if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
|
|
9880
9894
|
const O = N.point([w, b], {
|
|
@@ -9885,7 +9899,7 @@ const Js = {
|
|
|
9885
9899
|
}
|
|
9886
9900
|
} else if (w >= o && w <= n && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9887
9901
|
const O = N.point([w, b], {
|
|
9888
|
-
dir: ((
|
|
9902
|
+
dir: ((T = f[b].val) == null ? void 0 : T[y]) || ((j = f[b].dir) == null ? void 0 : j[y]),
|
|
9889
9903
|
spd: f[b].spd[y]
|
|
9890
9904
|
});
|
|
9891
9905
|
A.push(O);
|
|
@@ -10059,8 +10073,8 @@ const Js = {
|
|
|
10059
10073
|
class: "map-gl-home"
|
|
10060
10074
|
};
|
|
10061
10075
|
function Zs(i, e, t, r, a, o) {
|
|
10062
|
-
var ue, ve, xe, _e, E, De, ke, Pe, Me,
|
|
10063
|
-
const n = W("IdmGlLayer"), l = W("IdmENC"), c = W("IdmSigWave"), d = W("IdmSigWaveHeight"), h = W("IdmSwell"), p = W("IdmPrmsl"), x = W("IdmIceEdge"), B = W("IdmIceCover"), I = W("IdmIceThickness"), C = W("IdmTropicals"), D = W("IdmCurrents"), A = W("IdmCurrentParticle"), f = W("IdmWindBarb"), b = W("IdmWindParticle"), u = W("IdmPrecip3h"), w = W("IdmVisibility"), y = W("IdmWaterTemp"), v = W("IdmTemp"), Q = W("IdmWarZone"),
|
|
10076
|
+
var ue, ve, xe, _e, E, De, ke, Pe, Me, Se, Be, ce, de, Ie, Fe, je, We, Ge, Ue, Ye, Ke, Xe, qe, Je, Ve, Ze, $e, et, tt, it, at, rt, ot;
|
|
10077
|
+
const n = W("IdmGlLayer"), l = W("IdmENC"), c = W("IdmSigWave"), d = W("IdmSigWaveHeight"), h = W("IdmSwell"), p = W("IdmPrmsl"), x = W("IdmIceEdge"), B = W("IdmIceCover"), I = W("IdmIceThickness"), C = W("IdmTropicals"), D = W("IdmCurrents"), A = W("IdmCurrentParticle"), f = W("IdmWindBarb"), b = W("IdmWindParticle"), u = W("IdmPrecip3h"), w = W("IdmVisibility"), y = W("IdmWaterTemp"), v = W("IdmTemp"), Q = W("IdmWarZone"), T = W("IdmGmdssArea"), j = W("IdmEcaZone"), O = W("IdmAlertZone"), F = W("IdmPort"), U = W("IdmLoadLine"), Y = W("IdmTimezone"), he = W("IdmVRA"), ee = W("IdmSpecialArea"), ne = W("IdmTerminator"), we = W("IdmLatLng"), ye = W("IdmMeasure"), Ce = W("IdmPoint"), fe = W("IdmWorld12nm"), Ae = W("IdmWorldMarine"), K = W("IdmChinaRoute"), $ = W("IdmMarpolGarbageArea"), pe = W("IdmLiaoningRoute");
|
|
10064
10078
|
return t.map ? (m(), g("div", Vs, [
|
|
10065
10079
|
R(n, q({
|
|
10066
10080
|
ref: "layer",
|
|
@@ -10072,7 +10086,7 @@ function Zs(i, e, t, r, a, o) {
|
|
|
10072
10086
|
"show-current-isoband": a.showCurrentIsoband,
|
|
10073
10087
|
"show-current-particle": a.showCurrentParticle,
|
|
10074
10088
|
token: t.token,
|
|
10075
|
-
gateway:
|
|
10089
|
+
gateway: t.gateway
|
|
10076
10090
|
}, i.$attrs, {
|
|
10077
10091
|
"forecast-model": t.forecastModel,
|
|
10078
10092
|
onWeather: o.handleWeatherLayerChange,
|
|
@@ -10152,7 +10166,7 @@ function Zs(i, e, t, r, a, o) {
|
|
|
10152
10166
|
R(D, q({
|
|
10153
10167
|
map: t.map,
|
|
10154
10168
|
"map-projection": a.mapProjection,
|
|
10155
|
-
current: (
|
|
10169
|
+
current: (Se = a.weatherLayers) == null ? void 0 : Se.current,
|
|
10156
10170
|
"before-layer": t.beforeLayer,
|
|
10157
10171
|
"show-current-isoband": a.showCurrentIsoband,
|
|
10158
10172
|
"show-current-particle": a.showCurrentParticle,
|
|
@@ -10221,7 +10235,7 @@ function Zs(i, e, t, r, a, o) {
|
|
|
10221
10235
|
zone: (Ue = a.otherLayers) == null ? void 0 : Ue["war-zones"],
|
|
10222
10236
|
"before-layer": t.beforeLayer
|
|
10223
10237
|
}, i.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10224
|
-
R(
|
|
10238
|
+
R(T, q({
|
|
10225
10239
|
map: t.map,
|
|
10226
10240
|
area: (Ye = a.otherLayers) == null ? void 0 : Ye["gmdss-areas"],
|
|
10227
10241
|
"before-layer": t.beforeLayer
|
|
@@ -10282,7 +10296,7 @@ function Zs(i, e, t, r, a, o) {
|
|
|
10282
10296
|
meteo: a.meteo,
|
|
10283
10297
|
ts: t.ts,
|
|
10284
10298
|
token: t.token,
|
|
10285
|
-
gateway:
|
|
10299
|
+
gateway: t.gateway,
|
|
10286
10300
|
"forecast-model": t.forecastModel
|
|
10287
10301
|
}, i.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"]),
|
|
10288
10302
|
R(fe, q({
|