@idmwx/idmui-gl4 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var Qo = (t, e, a) => e in t ? Jo(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var he = (t, e, a) => (Qo(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import De from "axios";
|
|
5
5
|
import { useTheme as Se } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as w, createBlock as O, withCtx as g, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as A, normalizeClass as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as w, createBlock as O, withCtx as g, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as A, normalizeClass as He, toDisplayString as m, createTextVNode as K, Fragment as we, renderList as _e, withDirectives as Ze, vShow as Ye, mergeProps as N, normalizeStyle as ee } from "vue";
|
|
7
7
|
import ke from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
|
-
import { LngLatHelper as X, TropicalHelper as Zo, LaneHelper as
|
|
9
|
+
import { LngLatHelper as X, TropicalHelper as Zo, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Pa, TidesAssist as Ca } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Sa from "echarts";
|
|
12
12
|
import * as U from "@turf/turf";
|
|
@@ -1690,7 +1690,7 @@ function wr(t, e, a, i, o, r) {
|
|
|
1690
1690
|
l("div", yi, [
|
|
1691
1691
|
l("div", bi, [
|
|
1692
1692
|
l("div", {
|
|
1693
|
-
class:
|
|
1693
|
+
class: He(["fi mr-2 rounded elevation-4", `fi-${(f = a.port) != null && f.cntLoCode ? (P = (k = a.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : P.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
1696
|
l("div", null, m((B = a.port) == null ? void 0 : B.name), 1)
|
|
@@ -2043,7 +2043,7 @@ const xr = {
|
|
|
2043
2043
|
function zr(t, e, a, i, o, r) {
|
|
2044
2044
|
const s = w("VCardText"), c = w("VCard"), n = w("PortDetail");
|
|
2045
2045
|
return y(), M("div", null, [
|
|
2046
|
-
|
|
2046
|
+
Ze(p(c, {
|
|
2047
2047
|
id: "idmPortInfo",
|
|
2048
2048
|
ref: "idmPortInfo"
|
|
2049
2049
|
}, {
|
|
@@ -2066,7 +2066,7 @@ function zr(t, e, a, i, o, r) {
|
|
|
2066
2066
|
]),
|
|
2067
2067
|
_: 1
|
|
2068
2068
|
}, 512), [
|
|
2069
|
-
[
|
|
2069
|
+
[Ye, o.showInfo]
|
|
2070
2070
|
]),
|
|
2071
2071
|
o.showDetail ? (y(), O(n, N({
|
|
2072
2072
|
key: 0,
|
|
@@ -3184,7 +3184,7 @@ const Dl = {
|
|
|
3184
3184
|
function Nl(t, e, a, i, o, r) {
|
|
3185
3185
|
const s = w("v-card-text"), c = w("v-card"), n = w("TideDetail");
|
|
3186
3186
|
return y(), M("div", null, [
|
|
3187
|
-
|
|
3187
|
+
Ze(p(c, { id: "idmTidalInfo" }, {
|
|
3188
3188
|
default: g(() => [
|
|
3189
3189
|
p(s, { class: "pr-8 text-body-1" }, {
|
|
3190
3190
|
default: g(() => {
|
|
@@ -3203,7 +3203,7 @@ function Nl(t, e, a, i, o, r) {
|
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 1
|
|
3205
3205
|
}, 512), [
|
|
3206
|
-
[
|
|
3206
|
+
[Ye, o.showInfo]
|
|
3207
3207
|
]),
|
|
3208
3208
|
o.showDetail ? (y(), O(n, N({
|
|
3209
3209
|
key: 0,
|
|
@@ -4351,7 +4351,7 @@ const Gl = {
|
|
|
4351
4351
|
function ql(t, e, a, i, o, r) {
|
|
4352
4352
|
const s = w("v-card-text"), c = w("v-card"), n = w("PortDetail");
|
|
4353
4353
|
return y(), M("div", null, [
|
|
4354
|
-
|
|
4354
|
+
Ze(p(c, {
|
|
4355
4355
|
id: "idmFollowPortInfo",
|
|
4356
4356
|
ref: "idmFollowPortInfo"
|
|
4357
4357
|
}, {
|
|
@@ -4374,7 +4374,7 @@ function ql(t, e, a, i, o, r) {
|
|
|
4374
4374
|
]),
|
|
4375
4375
|
_: 1
|
|
4376
4376
|
}, 512), [
|
|
4377
|
-
[
|
|
4377
|
+
[Ye, o.showInfo]
|
|
4378
4378
|
]),
|
|
4379
4379
|
o.showDetail ? (y(), O(n, N({
|
|
4380
4380
|
key: 0,
|
|
@@ -5306,7 +5306,7 @@ const Kl = {
|
|
|
5306
5306
|
};
|
|
5307
5307
|
function es(t, e, a, i, o, r) {
|
|
5308
5308
|
const s = w("v-card-text"), c = w("v-card");
|
|
5309
|
-
return
|
|
5309
|
+
return Ze((y(), O(c, {
|
|
5310
5310
|
id: "idmFollowPositionInfo",
|
|
5311
5311
|
ref: "idmFollowPositionInfo"
|
|
5312
5312
|
}, {
|
|
@@ -5328,7 +5328,7 @@ function es(t, e, a, i, o, r) {
|
|
|
5328
5328
|
]),
|
|
5329
5329
|
_: 1
|
|
5330
5330
|
}, 512)), [
|
|
5331
|
-
[
|
|
5331
|
+
[Ye, o.showInfo]
|
|
5332
5332
|
]);
|
|
5333
5333
|
}
|
|
5334
5334
|
const ts = /* @__PURE__ */ Y(Kl, [["render", es], ["__scopeId", "data-v-1def8c73"]]);
|
|
@@ -5588,7 +5588,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5588
5588
|
}, 8, ["text"])
|
|
5589
5589
|
], 4),
|
|
5590
5590
|
l("div", {
|
|
5591
|
-
class:
|
|
5591
|
+
class: He(["available-layers transition", o.toggle ? "right-bar" : ""]),
|
|
5592
5592
|
style: ee(r.listStyle)
|
|
5593
5593
|
}, [
|
|
5594
5594
|
l("div", is, [
|
|
@@ -5636,7 +5636,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5636
5636
|
onClick: (te) => r.handleToggleMapFeather(R)
|
|
5637
5637
|
}, [
|
|
5638
5638
|
l("div", {
|
|
5639
|
-
class:
|
|
5639
|
+
class: He([o.mapFeather === R.value ? "active" : "", "img-box"])
|
|
5640
5640
|
}, [
|
|
5641
5641
|
R.value === "dark" ? (y(), M("img", cs)) : R.value === "nautical" ? (y(), M("img", ms)) : R.value === "satellite" ? (y(), M("img", ds)) : (y(), M("img", hs))
|
|
5642
5642
|
], 2),
|
|
@@ -9233,7 +9233,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9233
9233
|
default: g(() => [
|
|
9234
9234
|
l("div", kn, [
|
|
9235
9235
|
l("i", {
|
|
9236
|
-
class:
|
|
9236
|
+
class: He(["iconfont", r.barbsIconName[ae]]),
|
|
9237
9237
|
style: ee({ color: a.theme === "dark" ? "#fff" : "#000" })
|
|
9238
9238
|
}, null, 6),
|
|
9239
9239
|
l("span", zn, m(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
@@ -9319,7 +9319,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9319
9319
|
}, 8, ["style"])) : A("", !0)
|
|
9320
9320
|
])) : A("", !0),
|
|
9321
9321
|
l("div", {
|
|
9322
|
-
class:
|
|
9322
|
+
class: He(["available-layers transition flex-center", o.toggle ? "right-bar" : ""]),
|
|
9323
9323
|
style: ee(r.listStyle)
|
|
9324
9324
|
}, [
|
|
9325
9325
|
l("div", In, [
|
|
@@ -9393,7 +9393,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9393
9393
|
}, 8, ["modelValue"])
|
|
9394
9394
|
])) : A("", !0),
|
|
9395
9395
|
l("div", {
|
|
9396
|
-
class:
|
|
9396
|
+
class: He(["list-box scroll pl-4 pr-2 overflow-y-auto", o.autoActive ? "" : "cursor-not-allowed"])
|
|
9397
9397
|
}, [
|
|
9398
9398
|
p(x, {
|
|
9399
9399
|
class: "block-bg mx-auto mb-3",
|
|
@@ -9616,14 +9616,14 @@ function lc(t, e, a, i, o, r) {
|
|
|
9616
9616
|
}),
|
|
9617
9617
|
p(h, { class: "" }, {
|
|
9618
9618
|
default: g(() => {
|
|
9619
|
-
var H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be,
|
|
9619
|
+
var H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be, Ue, We, E, be, Re, Ne, Ee, j, Ge, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, ea, ta, aa, oa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka;
|
|
9620
9620
|
return [
|
|
9621
9621
|
l("div", Nn, m(t.$t("weather.atmospheric")), 1),
|
|
9622
9622
|
l("div", En, m((Fe = (ae = (H = o.models) == null ? void 0 : H.weather) == null ? void 0 : ae.NOAA) == null ? void 0 : Fe.source) + " " + m((Ie = (ge = (Ae = o.models) == null ? void 0 : Ae.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Ie.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
9623
9623
|
l("div", jn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9624
|
-
l("div", Fn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (
|
|
9624
|
+
l("div", Fn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (We = (Ue = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9625
9625
|
l("div", Hn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Ne = (Re = (be = o.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Ne.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
9626
|
-
l("div", Un, m((G = (
|
|
9626
|
+
l("div", Un, m((G = (Ge = (j = o.models) == null ? void 0 : j.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : G.source) + " " + m((Ke = (Xe = (qe = o.models) == null ? void 0 : qe.weather) == null ? void 0 : Xe.ECMWF) == null ? void 0 : Ke.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = ($e = (ze = o.models) == null ? void 0 : ze.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
9627
9627
|
l("div", Wn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9628
9628
|
l("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((ot = (at = (tt = (et = o.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : at.meta) == null ? void 0 : ot.availabilityTime)), 1),
|
|
9629
9629
|
l("div", Vn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((st = (lt = (rt = (it = o.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : lt.meta) == null ? void 0 : st.initialisationTime)), 1),
|
|
@@ -10114,14 +10114,14 @@ class Yo {
|
|
|
10114
10114
|
}
|
|
10115
10115
|
static pickHourly(e, a) {
|
|
10116
10116
|
var i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te, H, ae, Fe, Ae, ge, Ie;
|
|
10117
|
-
const W = typeof a == "string" ? S(a) : a, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = re.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"),
|
|
10118
|
-
if (W.isBetween(Be,
|
|
10117
|
+
const W = typeof a == "string" ? S(a) : a, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = re.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), Ue = re.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), We = [];
|
|
10118
|
+
if (W.isBetween(Be, Ue, "millisecond", "[]")) {
|
|
10119
10119
|
const E = W.utc().diff(Be, "h", !1);
|
|
10120
10120
|
let be, Re;
|
|
10121
10121
|
if (fe) {
|
|
10122
10122
|
let Ne = 0, Ee = 0, j = 0;
|
|
10123
|
-
for (const
|
|
10124
|
-
const G =
|
|
10123
|
+
for (const Ge of fe) {
|
|
10124
|
+
const G = Ge == null ? void 0 : Ge.hourly;
|
|
10125
10125
|
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
10126
10126
|
Ne += (b = G == null ? void 0 : G.precipitation) == null ? void 0 : b.at(ze);
|
|
10127
10127
|
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
@@ -10155,9 +10155,9 @@ class Yo {
|
|
|
10155
10155
|
isDay: ($ = G == null ? void 0 : G.is_day) == null ? void 0 : $.at(E)
|
|
10156
10156
|
};
|
|
10157
10157
|
const { name: qe, url: Xe, bg: Ke } = this.parseWeatherCode(be.code, be.isDay);
|
|
10158
|
-
be.name = qe, be.url = Xe, be.bg = Ke, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree),
|
|
10158
|
+
be.name = qe, be.url = Xe, be.bg = Ke, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), We.push({
|
|
10159
10159
|
utc: Be.add(E, "h").format(),
|
|
10160
|
-
model:
|
|
10160
|
+
model: Ge.model,
|
|
10161
10161
|
weather: { ...be }
|
|
10162
10162
|
});
|
|
10163
10163
|
}
|
|
@@ -10197,11 +10197,11 @@ class Yo {
|
|
|
10197
10197
|
},
|
|
10198
10198
|
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
10199
10199
|
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
10200
|
-
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(
|
|
10200
|
+
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(We[Ne], Re), Ne++;
|
|
10201
10201
|
}
|
|
10202
10202
|
}
|
|
10203
10203
|
}
|
|
10204
|
-
return
|
|
10204
|
+
return We;
|
|
10205
10205
|
}
|
|
10206
10206
|
static toLegacy(e) {
|
|
10207
10207
|
var a, i, o, r, s, c, n, u, h, b;
|
|
@@ -10266,8 +10266,8 @@ class Yo {
|
|
|
10266
10266
|
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((J = oe.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10267
10267
|
}
|
|
10268
10268
|
};
|
|
10269
|
-
const { name: re, url: Be, bg:
|
|
10270
|
-
ge.name = re, ge.url = Be, ge.bg =
|
|
10269
|
+
const { name: re, url: Be, bg: Ue } = this.parseWeatherCode(ge.code, !0);
|
|
10270
|
+
ge.name = re, ge.url = Be, ge.bg = Ue, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ae.push({
|
|
10271
10271
|
utc: ae.add(W, "d").utc().format(),
|
|
10272
10272
|
model: fe.model,
|
|
10273
10273
|
weather: { ...ge }
|
|
@@ -11521,7 +11521,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11521
11521
|
variant: v.disabled ? "text" : "flat",
|
|
11522
11522
|
color: v.disabled ? "" : "primary",
|
|
11523
11523
|
"min-width": 30,
|
|
11524
|
-
class:
|
|
11524
|
+
class: He(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11525
11525
|
onClick: Oe((F) => r.handleForecastToggle(v), ["stop"])
|
|
11526
11526
|
}, {
|
|
11527
11527
|
default: g(() => [
|
|
@@ -11587,11 +11587,11 @@ function om(t, e, a, i, o, r) {
|
|
|
11587
11587
|
_: 1
|
|
11588
11588
|
}),
|
|
11589
11589
|
l("div", Mc, [
|
|
11590
|
-
|
|
11590
|
+
Ze(p(b, { elevation: "16" }, {
|
|
11591
11591
|
default: g(() => [
|
|
11592
11592
|
p(n, null, {
|
|
11593
11593
|
default: g(() => [
|
|
11594
|
-
|
|
11594
|
+
Ze(l("div", Ic, e[6] || (e[6] = [
|
|
11595
11595
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11596
11596
|
l("div", { class: "icon td" }),
|
|
11597
11597
|
l("div", { class: "label" }, "TD")
|
|
@@ -11617,9 +11617,9 @@ function om(t, e, a, i, o, r) {
|
|
|
11617
11617
|
l("div", { class: "label" }, "Super TY")
|
|
11618
11618
|
], -1)
|
|
11619
11619
|
]), 512), [
|
|
11620
|
-
[
|
|
11620
|
+
[Ye, o.showLegend]
|
|
11621
11621
|
]),
|
|
11622
|
-
|
|
11622
|
+
Ze(l("div", Dc, e[7] || (e[7] = [
|
|
11623
11623
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11624
11624
|
l("div", { class: "icon history" }),
|
|
11625
11625
|
l("div", { class: "label" }, "History")
|
|
@@ -11637,7 +11637,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11637
11637
|
l("div", { class: "label" }, "50kts Radii")
|
|
11638
11638
|
], -1)
|
|
11639
11639
|
]), 512), [
|
|
11640
|
-
[
|
|
11640
|
+
[Ye, o.showLegend]
|
|
11641
11641
|
])
|
|
11642
11642
|
]),
|
|
11643
11643
|
_: 1
|
|
@@ -11645,11 +11645,11 @@ function om(t, e, a, i, o, r) {
|
|
|
11645
11645
|
]),
|
|
11646
11646
|
_: 1
|
|
11647
11647
|
}, 512), [
|
|
11648
|
-
[
|
|
11648
|
+
[Ye, o.showLegend]
|
|
11649
11649
|
])
|
|
11650
11650
|
])
|
|
11651
11651
|
])) : A("", !0),
|
|
11652
|
-
|
|
11652
|
+
Ze(p(b, {
|
|
11653
11653
|
id: "tropicalHoverMarkerInfo",
|
|
11654
11654
|
elevation: "16",
|
|
11655
11655
|
"max-width": "280"
|
|
@@ -11721,7 +11721,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11721
11721
|
]),
|
|
11722
11722
|
_: 1
|
|
11723
11723
|
}, 512), [
|
|
11724
|
-
[
|
|
11724
|
+
[Ye, o.showHoverPoint]
|
|
11725
11725
|
])
|
|
11726
11726
|
]);
|
|
11727
11727
|
}
|
|
@@ -11741,6 +11741,10 @@ const im = {
|
|
|
11741
11741
|
type: String,
|
|
11742
11742
|
default: "top"
|
|
11743
11743
|
},
|
|
11744
|
+
bgClass: {
|
|
11745
|
+
type: String,
|
|
11746
|
+
default: ""
|
|
11747
|
+
},
|
|
11744
11748
|
locale: {
|
|
11745
11749
|
type: String,
|
|
11746
11750
|
default: "en"
|
|
@@ -11920,11 +11924,11 @@ function mm(t, e, a, i, o, r) {
|
|
|
11920
11924
|
return y(), M("div", rm, [
|
|
11921
11925
|
l("div", {
|
|
11922
11926
|
style: ee({ height: a.height + "px", width: a.width + "px" }),
|
|
11923
|
-
class: "rounded text-body-1 btn-border-1 bg-
|
|
11927
|
+
class: He([a.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
|
|
11924
11928
|
onClick: e[0] || (e[0] = (...k) => r.handleOpenDatePicker && r.handleOpenDatePicker(...k))
|
|
11925
11929
|
}, [
|
|
11926
11930
|
l("span", lm, m(o.currentDateTime) + " | UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
11927
|
-
],
|
|
11931
|
+
], 6),
|
|
11928
11932
|
o.showDatePicker ? (y(), O(f, {
|
|
11929
11933
|
key: 0,
|
|
11930
11934
|
class: "card-box d-flex flex-column border",
|
|
@@ -12933,7 +12937,7 @@ function od(t, e, a, i, o, r) {
|
|
|
12933
12937
|
density: "compact",
|
|
12934
12938
|
height: "30",
|
|
12935
12939
|
value: "GFS",
|
|
12936
|
-
class:
|
|
12940
|
+
class: He(["text-none flex-1-1-0", o.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
|
|
12937
12941
|
color: o.form.forecastModel === "GFS" ? "primary" : "",
|
|
12938
12942
|
"base-color": ""
|
|
12939
12943
|
}, {
|
|
@@ -12946,7 +12950,7 @@ function od(t, e, a, i, o, r) {
|
|
|
12946
12950
|
p(s, {
|
|
12947
12951
|
density: "compact",
|
|
12948
12952
|
height: "30",
|
|
12949
|
-
class:
|
|
12953
|
+
class: He(["text-none flex-1-1-0", o.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
12950
12954
|
color: o.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
12951
12955
|
"base-color": "",
|
|
12952
12956
|
value: "ECMWF"
|
|
@@ -13139,14 +13143,14 @@ function od(t, e, a, i, o, r) {
|
|
|
13139
13143
|
]),
|
|
13140
13144
|
_: 1
|
|
13141
13145
|
})) : A("", !0),
|
|
13142
|
-
|
|
13146
|
+
Ze(l("div", ed, [
|
|
13143
13147
|
(y(), M("svg", td, [
|
|
13144
13148
|
l("use", {
|
|
13145
13149
|
"xlink:href": `#icon-spot-${a.theme}`
|
|
13146
13150
|
}, null, 8, ad)
|
|
13147
13151
|
]))
|
|
13148
13152
|
], 512), [
|
|
13149
|
-
[
|
|
13153
|
+
[Ye, o.showMeteo]
|
|
13150
13154
|
])
|
|
13151
13155
|
]);
|
|
13152
13156
|
}
|
|
@@ -13331,10 +13335,10 @@ const rd = {
|
|
|
13331
13335
|
let a = 0;
|
|
13332
13336
|
const i = [];
|
|
13333
13337
|
for (let o = 1; o < e.length; o++) {
|
|
13334
|
-
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h =
|
|
13338
|
+
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h = Ve.calculateDistance(n, u, c.mode === "RL", 4), b = Ve.calculateBearing(n, u, c.mode === "RL", 2);
|
|
13335
13339
|
a = X.roundPrecision(a + h, 4);
|
|
13336
13340
|
let x;
|
|
13337
|
-
c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(
|
|
13341
|
+
c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(Ve.interpolateCoordinates(n, u, 200));
|
|
13338
13342
|
const _ = U.lineString(x.map((k) => [k.lng, k.lat]));
|
|
13339
13343
|
_.properties.dist = h, _.properties.bearing = b, _.properties.total = a, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
|
|
13340
13344
|
const f = e[o];
|
|
@@ -13349,17 +13353,17 @@ const rd = {
|
|
|
13349
13353
|
let r, s;
|
|
13350
13354
|
if (e) {
|
|
13351
13355
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: a.lng, lat: a.lat };
|
|
13352
|
-
r =
|
|
13356
|
+
r = Ve.calculateDistance(u, h, n.mode === "RL", 4), s = Ve.calculateBearing(u, h, n.mode === "RL", 2);
|
|
13353
13357
|
let b;
|
|
13354
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
13358
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ve.interpolateCoordinates(u, h, 200));
|
|
13355
13359
|
const x = U.lineString(b.map((_) => [_.lng, _.lat]));
|
|
13356
13360
|
x.properties.dist = r, x.properties.bearing = s, o.features.push(x);
|
|
13357
13361
|
}
|
|
13358
13362
|
if (i) {
|
|
13359
13363
|
const n = a.properties, u = a, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
13360
|
-
r =
|
|
13364
|
+
r = Ve.calculateDistance(u, h, n.mode === "RL", 4), s = Ve.calculateBearing(u, h, n.mode === "RL", 2);
|
|
13361
13365
|
let b;
|
|
13362
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
13366
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ve.interpolateCoordinates(u, h, 200));
|
|
13363
13367
|
const x = U.lineString(b.map((_) => [_.lng, _.lat]));
|
|
13364
13368
|
x.properties.dist = r, x.properties.bearing = s, o.features.push(x);
|
|
13365
13369
|
}
|
|
@@ -14340,7 +14344,7 @@ class Cd {
|
|
|
14340
14344
|
he(this, "hi");
|
|
14341
14345
|
he(this, "td");
|
|
14342
14346
|
he(this, "windy");
|
|
14343
|
-
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te, H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be,
|
|
14347
|
+
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te, H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be, Ue, We, E, be, Re, Ne, Ee, j, Ge, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, ea, ta, aa, oa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, Aa, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, Ya, qa, Xa, Ka, $a, Ja, Qa, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, To, Co, So, Mo, Io, Do, Ao, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo;
|
|
14344
14348
|
this.i4 = {
|
|
14345
14349
|
source: {
|
|
14346
14350
|
type: "raster",
|
|
@@ -33024,8 +33028,8 @@ class Cd {
|
|
|
33024
33028
|
range: [0.5, 10]
|
|
33025
33029
|
},
|
|
33026
33030
|
sources: (Be = this.originStyle) == null ? void 0 : Be.dark.sources,
|
|
33027
|
-
sprite: (
|
|
33028
|
-
glyphs: (
|
|
33031
|
+
sprite: (Ue = this.originStyle) == null ? void 0 : Ue.dark.sprite,
|
|
33032
|
+
glyphs: (We = this.originStyle) == null ? void 0 : We.dark.glyphs,
|
|
33029
33033
|
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
33030
33034
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
33031
33035
|
owner: "neatchenheng",
|
|
@@ -33035,7 +33039,7 @@ class Cd {
|
|
|
33035
33039
|
layers: [
|
|
33036
33040
|
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((d) => d.id === "land"),
|
|
33037
33041
|
(Ee = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "water"),
|
|
33038
|
-
(
|
|
33042
|
+
(Ge = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : Ge.find((d) => d.id === "ice-area-fill"),
|
|
33039
33043
|
(qe = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : qe.find((d) => d.id === "ice-area-line"),
|
|
33040
33044
|
(Ke = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-label"),
|
|
33041
33045
|
($e = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : $e.find((d) => d.id === "loadlines-fill"),
|