@idmwx/idmui-gl4 1.9.6 → 1.9.7
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 +244 -225
- package/dist/index.umd.cjs +9 -9
- package/dist/mapbox/src/components/map/index.vue.d.ts +26 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Ja = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var he = (t, e, o) => (Ja(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import De from "axios";
|
|
5
5
|
import { useTheme as Se } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as S, resolveComponent as v, createBlock as O, withCtx as f, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as R, normalizeClass as Ye, toDisplayString as m, createTextVNode as $, Fragment as we, renderList as _e, withDirectives as Ve, vShow as Ze, mergeProps as
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as v, createBlock as O, withCtx as f, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as R, normalizeClass as Ye, toDisplayString as m, createTextVNode as $, Fragment as we, renderList as _e, withDirectives as Ve, vShow as Ze, mergeProps as N, normalizeStyle as oe } from "vue";
|
|
7
7
|
import ke from "mapbox-gl";
|
|
8
8
|
import T from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
@@ -1490,10 +1490,10 @@ const gi = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1493
|
-
var c, n, u, h, b, w, z, g, k, P,
|
|
1493
|
+
var c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const s = ((c = Co.pickHourly(t, T(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = s == null ? void 0 : s.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = s == null ? void 0 : s.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (
|
|
1496
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = s == null ? void 0 : s.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = s == null ? void 0 : s.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((M = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : M.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((L = (x = s == null ? void 0 : s.weather) == null ? void 0 : x.wind) == null ? void 0 : L.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (_ = s == null ? void 0 : s.wave) == null ? void 0 : _.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (V = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = s == null ? void 0 : s.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (le = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = s == null ? void 0 : s.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = s == null ? void 0 : s.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((A = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ee = s == null ? void 0 : s.current) == null ? void 0 : ee.speed, 1) ?? "-", r.currentDir = (ye = s == null ? void 0 : s.current) == null ? void 0 : ye.direction, r.currentSpeed = this.computeRoundPrecision((xe = s == null ? void 0 : s.current) == null ? void 0 : xe.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Le = s == null ? void 0 : s.weather) == null ? void 0 : Le.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1640,7 +1640,7 @@ const gi = {
|
|
|
1640
1640
|
}, vi = { class: "summary-box" }, _i = { class: "d-flex justify-space-between align-center py-2" }, ki = { class: "d-flex justify-center align-center text-h6 ga-2" }, zi = {
|
|
1641
1641
|
class: "multi-color-icon",
|
|
1642
1642
|
"aria-hidden": "true"
|
|
1643
|
-
}, Li = ["xlink:href"], Pi = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Ci = { class: "w-100 d-flex justify-start align-center" }, Ti = { class: "w-30 text-label font-weight-400" }, Si = { class: "flex-1-1-0" }, Mi = { class: "w-100 d-flex justify-start align-center" }, Ii = { class: "w-30 text-label font-weight-400" }, Di = { class: "flex-1-1-0" }, Ai = { class: "w-100 d-flex justify-start align-center" }, Ri = { class: "w-30 text-label font-weight-400" }, Oi = { class: "flex-1-1-0" },
|
|
1643
|
+
}, Li = ["xlink:href"], Pi = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Ci = { class: "w-100 d-flex justify-start align-center" }, Ti = { class: "w-30 text-label font-weight-400" }, Si = { class: "flex-1-1-0" }, Mi = { class: "w-100 d-flex justify-start align-center" }, Ii = { class: "w-30 text-label font-weight-400" }, Di = { class: "flex-1-1-0" }, Ai = { class: "w-100 d-flex justify-start align-center" }, Ri = { class: "w-30 text-label font-weight-400" }, Oi = { class: "flex-1-1-0" }, Bi = { class: "table-box w-100 mt-2" }, Ni = { class: "w-100 d-flex justify-space-between align-center py-2" }, Ei = { class: "d-flex justify-center align-center text-h6 ga-2" }, ji = {
|
|
1644
1644
|
class: "multi-color-icon",
|
|
1645
1645
|
"aria-hidden": "true"
|
|
1646
1646
|
}, Fi = ["xlink:href"], Hi = { class: "w-100 gray-bg-2 rounded pa-4" }, Ui = {
|
|
@@ -1685,7 +1685,7 @@ function br(t, e, o, i, a, r) {
|
|
|
1685
1685
|
return [
|
|
1686
1686
|
p(c, { class: "w-100" }, {
|
|
1687
1687
|
default: f(() => {
|
|
1688
|
-
var g, k, P,
|
|
1688
|
+
var g, k, P, B, I;
|
|
1689
1689
|
return [
|
|
1690
1690
|
l("div", fi, [
|
|
1691
1691
|
l("div", yi, [
|
|
@@ -1693,7 +1693,7 @@ function br(t, e, o, i, a, r) {
|
|
|
1693
1693
|
class: Ye(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (P = (k = o.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : P.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
|
-
l("div", null, m((
|
|
1696
|
+
l("div", null, m((B = o.port) == null ? void 0 : B.name), 1)
|
|
1697
1697
|
]),
|
|
1698
1698
|
p(s, {
|
|
1699
1699
|
icon: "",
|
|
@@ -1796,8 +1796,8 @@ function br(t, e, o, i, a, r) {
|
|
|
1796
1796
|
])
|
|
1797
1797
|
])
|
|
1798
1798
|
]),
|
|
1799
|
-
l("div",
|
|
1800
|
-
l("div",
|
|
1799
|
+
l("div", Bi, [
|
|
1800
|
+
l("div", Ni, [
|
|
1801
1801
|
l("div", Ei, [
|
|
1802
1802
|
(y(), S("svg", ji, [
|
|
1803
1803
|
l("use", {
|
|
@@ -2068,7 +2068,7 @@ function kr(t, e, o, i, a, r) {
|
|
|
2068
2068
|
}, 512), [
|
|
2069
2069
|
[Ze, a.showInfo]
|
|
2070
2070
|
]),
|
|
2071
|
-
a.showDetail ? (y(), O(n,
|
|
2071
|
+
a.showDetail ? (y(), O(n, N({
|
|
2072
2072
|
key: 0,
|
|
2073
2073
|
portId: a.portId,
|
|
2074
2074
|
port: a.port,
|
|
@@ -2517,7 +2517,7 @@ const Ar = /* @__PURE__ */ q(Ir, [["render", Dr]]), Rr = {
|
|
|
2517
2517
|
function Or(t, e, o, i, a, r) {
|
|
2518
2518
|
return y(), S("div");
|
|
2519
2519
|
}
|
|
2520
|
-
const
|
|
2520
|
+
const Br = /* @__PURE__ */ q(Rr, [["render", Or]]), Nr = {
|
|
2521
2521
|
name: "IdmTerminator",
|
|
2522
2522
|
props: {
|
|
2523
2523
|
map: {
|
|
@@ -2571,7 +2571,7 @@ const Nr = /* @__PURE__ */ q(Rr, [["render", Or]]), Br = {
|
|
|
2571
2571
|
function Er(t, e, o, i, a, r) {
|
|
2572
2572
|
return y(), S("div");
|
|
2573
2573
|
}
|
|
2574
|
-
const jr = /* @__PURE__ */ q(
|
|
2574
|
+
const jr = /* @__PURE__ */ q(Nr, [["render", Er]]), Fr = {
|
|
2575
2575
|
name: "IdmWorld12nm",
|
|
2576
2576
|
props: {
|
|
2577
2577
|
map: {
|
|
@@ -3181,7 +3181,7 @@ const Il = {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
3183
|
}, Dl = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Al = { class: "d-flex justify-start align-center" }, Rl = { class: "d-flex justify-start align-center" }, Ol = { class: "text-label" };
|
|
3184
|
-
function
|
|
3184
|
+
function Bl(t, e, o, i, a, r) {
|
|
3185
3185
|
const s = v("v-card-text"), c = v("v-card"), n = v("TideDetail");
|
|
3186
3186
|
return y(), S("div", null, [
|
|
3187
3187
|
Ve(p(c, { id: "idmTidalInfo" }, {
|
|
@@ -3205,14 +3205,14 @@ function Nl(t, e, o, i, a, r) {
|
|
|
3205
3205
|
}, 512), [
|
|
3206
3206
|
[Ze, a.showInfo]
|
|
3207
3207
|
]),
|
|
3208
|
-
a.showDetail ? (y(), O(n,
|
|
3208
|
+
a.showDetail ? (y(), O(n, N({
|
|
3209
3209
|
key: 0,
|
|
3210
3210
|
station: a.station,
|
|
3211
3211
|
onClose: r.handleCloseDetail
|
|
3212
3212
|
}, t.$attrs), null, 16, ["station", "onClose"])) : R("", !0)
|
|
3213
3213
|
]);
|
|
3214
3214
|
}
|
|
3215
|
-
const
|
|
3215
|
+
const Nl = /* @__PURE__ */ q(Il, [["render", Bl], ["__scopeId", "data-v-4611be64"]]), El = {
|
|
3216
3216
|
name: "IdmIceAreas",
|
|
3217
3217
|
props: {
|
|
3218
3218
|
map: {
|
|
@@ -3425,7 +3425,7 @@ function Ul(t, e, o, i, a, r) {
|
|
|
3425
3425
|
var s, c, n;
|
|
3426
3426
|
return y(), S("div", {
|
|
3427
3427
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3428
|
-
style:
|
|
3428
|
+
style: oe({ right: a.right + "px" })
|
|
3429
3429
|
}, [
|
|
3430
3430
|
l("div", null, m((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
3431
3431
|
l("div", null, m((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
@@ -4371,7 +4371,7 @@ function Yl(t, e, o, i, a, r) {
|
|
|
4371
4371
|
}, 512), [
|
|
4372
4372
|
[Ze, a.showInfo]
|
|
4373
4373
|
]),
|
|
4374
|
-
a.showDetail ? (y(), O(n,
|
|
4374
|
+
a.showDetail ? (y(), O(n, N({
|
|
4375
4375
|
key: 0,
|
|
4376
4376
|
portId: a.portId,
|
|
4377
4377
|
port: a.port,
|
|
@@ -5338,12 +5338,12 @@ const ts = {
|
|
|
5338
5338
|
IdmLoadLine: Cr,
|
|
5339
5339
|
IdmTimezone: Mr,
|
|
5340
5340
|
IdmVRA: Ar,
|
|
5341
|
-
IdmSpecialArea:
|
|
5341
|
+
IdmSpecialArea: Br,
|
|
5342
5342
|
IdmTerminator: jr,
|
|
5343
5343
|
IdmWorld12nm: Ur,
|
|
5344
5344
|
IdmWorldMarine: Vr,
|
|
5345
5345
|
IdmChinaRoute: qr,
|
|
5346
|
-
IdmTideStations:
|
|
5346
|
+
IdmTideStations: Nl,
|
|
5347
5347
|
IdmIceAreas: Fl,
|
|
5348
5348
|
IdmLatLng: qa,
|
|
5349
5349
|
IdmFollowPort: ql,
|
|
@@ -5545,18 +5545,18 @@ const ts = {
|
|
|
5545
5545
|
}, hs = { class: "text-body-2 text-center pt-1" };
|
|
5546
5546
|
function ps(t, e, o, i, a, r) {
|
|
5547
5547
|
var K, le, se, pe, ie, ce, ue, me, de;
|
|
5548
|
-
const s = v("VBtn"), c = v("VTooltip"), n = v("VCardTitle"), u = v("VCardItem"), h = v("VCheckbox"), b = v("VCardText"), w = v("VCard"), z = v("IdmLatLng"), g = v("IdmTerminator"), k = v("IdmTimezone"), P = v("IdmPort"),
|
|
5548
|
+
const s = v("VBtn"), c = v("VTooltip"), n = v("VCardTitle"), u = v("VCardItem"), h = v("VCheckbox"), b = v("VCardText"), w = v("VCard"), z = v("IdmLatLng"), g = v("IdmTerminator"), k = v("IdmTimezone"), P = v("IdmPort"), B = v("IdmAlertZone"), I = v("IdmTideStations"), C = v("IdmEcaZone"), M = v("IdmWarZone"), x = v("IdmGmdssArea"), L = v("IdmLoadLine"), _ = v("IdmWorldMarine"), D = v("IdmVRA"), F = v("IdmSpecialArea"), V = v("IdmWorld12nm"), Y = v("IdmChinaRoute"), Z = v("IdmIceAreas"), J = v("IdmFollowPort"), Q = v("IdmFollowPosition");
|
|
5549
5549
|
return y(), S("div", os, [
|
|
5550
5550
|
l("div", {
|
|
5551
5551
|
class: "menu-bar-box transition px-1 rounded",
|
|
5552
|
-
style:
|
|
5552
|
+
style: oe({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
|
|
5553
5553
|
}, [
|
|
5554
5554
|
p(c, {
|
|
5555
5555
|
text: t.$t("layer.mapLayers"),
|
|
5556
5556
|
location: "left"
|
|
5557
5557
|
}, {
|
|
5558
5558
|
activator: f(({ props: A }) => [
|
|
5559
|
-
p(s,
|
|
5559
|
+
p(s, N(A, {
|
|
5560
5560
|
"min-width": "32",
|
|
5561
5561
|
width: "32",
|
|
5562
5562
|
height: "32",
|
|
@@ -5575,7 +5575,7 @@ function ps(t, e, o, i, a, r) {
|
|
|
5575
5575
|
], 4),
|
|
5576
5576
|
l("div", {
|
|
5577
5577
|
class: Ye(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
5578
|
-
style:
|
|
5578
|
+
style: oe({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
5579
5579
|
}, [
|
|
5580
5580
|
l("div", as, [
|
|
5581
5581
|
l("div", is, m(t.$t("layer.layers")), 1),
|
|
@@ -5776,24 +5776,24 @@ function ps(t, e, o, i, a, r) {
|
|
|
5776
5776
|
})
|
|
5777
5777
|
])
|
|
5778
5778
|
], 6),
|
|
5779
|
-
o.map ? (y(), O(z,
|
|
5779
|
+
o.map ? (y(), O(z, N({
|
|
5780
5780
|
key: 0,
|
|
5781
5781
|
map: o.map,
|
|
5782
5782
|
"menu-toggle": o.menuToggle,
|
|
5783
5783
|
show: a.checkList.includes("graticule")
|
|
5784
5784
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : R("", !0),
|
|
5785
|
-
o.map ? (y(), O(g,
|
|
5785
|
+
o.map ? (y(), O(g, N({
|
|
5786
5786
|
key: 1,
|
|
5787
5787
|
map: o.map,
|
|
5788
5788
|
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
5789
5789
|
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5790
|
-
o.map ? (y(), O(k,
|
|
5790
|
+
o.map ? (y(), O(k, N({
|
|
5791
5791
|
key: 2,
|
|
5792
5792
|
map: o.map,
|
|
5793
5793
|
zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"],
|
|
5794
5794
|
realTime: o.realTime
|
|
5795
5795
|
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
|
|
5796
|
-
o.map ? (y(), O(P,
|
|
5796
|
+
o.map ? (y(), O(P, N({
|
|
5797
5797
|
key: 3,
|
|
5798
5798
|
ref: "idmPorts",
|
|
5799
5799
|
map: o.map,
|
|
@@ -5803,7 +5803,7 @@ function ps(t, e, o, i, a, r) {
|
|
|
5803
5803
|
"forecast-model": o.forecastModel,
|
|
5804
5804
|
realTime: o.realTime
|
|
5805
5805
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5806
|
-
o.map ? (y(), O(
|
|
5806
|
+
o.map ? (y(), O(B, N({
|
|
5807
5807
|
key: 4,
|
|
5808
5808
|
map: o.map,
|
|
5809
5809
|
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
@@ -5811,7 +5811,7 @@ function ps(t, e, o, i, a, r) {
|
|
|
5811
5811
|
"before-layer": "empty-layer-3",
|
|
5812
5812
|
theme: o.theme
|
|
5813
5813
|
}), null, 16, ["map", "zone", "theme"])) : R("", !0),
|
|
5814
|
-
o.map ? (y(), O(I,
|
|
5814
|
+
o.map ? (y(), O(I, N({
|
|
5815
5815
|
key: 5,
|
|
5816
5816
|
ref: "idmIideStation",
|
|
5817
5817
|
map: o.map,
|
|
@@ -5824,60 +5824,60 @@ function ps(t, e, o, i, a, r) {
|
|
|
5824
5824
|
forecastModel: o.forecastModel,
|
|
5825
5825
|
"before-layer": "empty-layer-3"
|
|
5826
5826
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
|
|
5827
|
-
o.map ? (y(), O(C,
|
|
5827
|
+
o.map ? (y(), O(C, N({
|
|
5828
5828
|
key: 6,
|
|
5829
5829
|
map: o.map,
|
|
5830
5830
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5831
5831
|
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5832
|
-
o.map ? (y(), O(M,
|
|
5832
|
+
o.map ? (y(), O(M, N({
|
|
5833
5833
|
key: 7,
|
|
5834
5834
|
map: o.map,
|
|
5835
5835
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5836
5836
|
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5837
|
-
o.map ? (y(), O(x,
|
|
5837
|
+
o.map ? (y(), O(x, N({
|
|
5838
5838
|
key: 8,
|
|
5839
5839
|
map: o.map,
|
|
5840
5840
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5841
5841
|
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5842
|
-
o.map ? (y(), O(L,
|
|
5842
|
+
o.map ? (y(), O(L, N({
|
|
5843
5843
|
key: 9,
|
|
5844
5844
|
map: o.map,
|
|
5845
5845
|
show: a.checkList.includes("load-lines")
|
|
5846
5846
|
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5847
|
-
o.map ? (y(), O(_,
|
|
5847
|
+
o.map ? (y(), O(_, N({
|
|
5848
5848
|
key: 10,
|
|
5849
5849
|
map: o.map,
|
|
5850
5850
|
token: o.token,
|
|
5851
5851
|
show: a.checkList.includes("worldMarine")
|
|
5852
5852
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5853
|
-
o.map ? (y(), O(D,
|
|
5853
|
+
o.map ? (y(), O(D, N({
|
|
5854
5854
|
key: 11,
|
|
5855
5855
|
map: o.map,
|
|
5856
5856
|
area: (me = a.otherLayers) == null ? void 0 : me["voluntary-reporting-area"]
|
|
5857
5857
|
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5858
|
-
o.map ? (y(), O(F,
|
|
5858
|
+
o.map ? (y(), O(F, N({
|
|
5859
5859
|
key: 12,
|
|
5860
5860
|
map: o.map,
|
|
5861
5861
|
area: (de = a.otherLayers) == null ? void 0 : de["special-area"]
|
|
5862
5862
|
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5863
|
-
o.map ? (y(), O(V,
|
|
5863
|
+
o.map ? (y(), O(V, N({
|
|
5864
5864
|
key: 13,
|
|
5865
5865
|
map: o.map,
|
|
5866
5866
|
token: o.token,
|
|
5867
5867
|
show: a.checkList.includes("world12nm")
|
|
5868
5868
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5869
|
-
o.map ? (y(), O(Y,
|
|
5869
|
+
o.map ? (y(), O(Y, N({
|
|
5870
5870
|
key: 14,
|
|
5871
5871
|
map: o.map,
|
|
5872
5872
|
token: o.token,
|
|
5873
5873
|
show: a.checkList.includes("chinaRoute")
|
|
5874
5874
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5875
|
-
o.map ? (y(), O(Z,
|
|
5875
|
+
o.map ? (y(), O(Z, N({
|
|
5876
5876
|
key: 15,
|
|
5877
5877
|
map: o.map,
|
|
5878
5878
|
show: a.checkList.includes("ice-areas")
|
|
5879
5879
|
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5880
|
-
o.map ? (y(), O(J,
|
|
5880
|
+
o.map ? (y(), O(J, N({
|
|
5881
5881
|
key: 16,
|
|
5882
5882
|
ref: "idmFollowPort",
|
|
5883
5883
|
map: o.map,
|
|
@@ -5887,7 +5887,7 @@ function ps(t, e, o, i, a, r) {
|
|
|
5887
5887
|
"forecast-model": o.forecastModel,
|
|
5888
5888
|
realTime: o.realTime
|
|
5889
5889
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5890
|
-
o.map ? (y(), O(Q,
|
|
5890
|
+
o.map ? (y(), O(Q, N({
|
|
5891
5891
|
key: 17,
|
|
5892
5892
|
ref: "idmFollowPosition",
|
|
5893
5893
|
map: o.map,
|
|
@@ -6134,7 +6134,7 @@ class je {
|
|
|
6134
6134
|
h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6135
6135
|
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, z = e.getWorldCopy(b, w);
|
|
6136
6136
|
for (const g of z) {
|
|
6137
|
-
const k = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio,
|
|
6137
|
+
const k = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio, B = g[2] * e.ratio, [I, C, M, x] = [k, B + k, P, B + P], L = new Float32Array([I, M, C, M, I, x, I, x, C, M, C, x]);
|
|
6138
6138
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, L, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6139
6139
|
}
|
|
6140
6140
|
} catch (h) {
|
|
@@ -6712,7 +6712,7 @@ function vs(t, e, o, i, a, r) {
|
|
|
6712
6712
|
return (s = o.factor) != null && s.active ? (y(), S("div", xs, [
|
|
6713
6713
|
l("div", {
|
|
6714
6714
|
class: "legend-bars-gl4 wind",
|
|
6715
|
-
style:
|
|
6715
|
+
style: oe({ right: a.right + "px" })
|
|
6716
6716
|
}, e[0] || (e[0] = [
|
|
6717
6717
|
l("span", null, "kts", -1),
|
|
6718
6718
|
l("span", null, "0", -1),
|
|
@@ -7050,7 +7050,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
7050
7050
|
return (s = o.factor) != null && s.active ? (y(), S("div", Cs, [
|
|
7051
7051
|
l("div", {
|
|
7052
7052
|
class: "legend-bars-gl4 current",
|
|
7053
|
-
style:
|
|
7053
|
+
style: oe({ right: a.right + "px" })
|
|
7054
7054
|
}, e[0] || (e[0] = [
|
|
7055
7055
|
l("span", null, "kts", -1),
|
|
7056
7056
|
l("span", null, "0", -1),
|
|
@@ -7174,7 +7174,7 @@ function Ds(t, e, o, i, a, r) {
|
|
|
7174
7174
|
return (s = o.factor) != null && s.active ? (y(), S("div", Is, [
|
|
7175
7175
|
l("div", {
|
|
7176
7176
|
class: "legend-bars-gl4 sig-wave",
|
|
7177
|
-
style:
|
|
7177
|
+
style: oe({ right: a.right + "px" })
|
|
7178
7178
|
}, e[0] || (e[0] = [
|
|
7179
7179
|
l("span", null, "m", -1),
|
|
7180
7180
|
l("span", null, "0.5", -1),
|
|
@@ -7334,8 +7334,8 @@ const As = /* @__PURE__ */ q(Ms, [["render", Ds], ["__scopeId", "data-v-fa73c319
|
|
|
7334
7334
|
function Os(t, e, o, i, a, r) {
|
|
7335
7335
|
return null;
|
|
7336
7336
|
}
|
|
7337
|
-
const
|
|
7338
|
-
const
|
|
7337
|
+
const Bs = /* @__PURE__ */ q(Rs, [["render", Os]]);
|
|
7338
|
+
const Ns = {
|
|
7339
7339
|
name: "IdmSwell",
|
|
7340
7340
|
props: {
|
|
7341
7341
|
factor: {
|
|
@@ -7446,7 +7446,7 @@ function js(t, e, o, i, a, r) {
|
|
|
7446
7446
|
return (s = o.factor) != null && s.active ? (y(), S("div", Es, [
|
|
7447
7447
|
l("div", {
|
|
7448
7448
|
class: "legend-bars-gl4 swell",
|
|
7449
|
-
style:
|
|
7449
|
+
style: oe({ right: a.right + "px" })
|
|
7450
7450
|
}, e[0] || (e[0] = [
|
|
7451
7451
|
l("span", null, "m", -1),
|
|
7452
7452
|
l("span", null, "0.5", -1),
|
|
@@ -7458,7 +7458,7 @@ function js(t, e, o, i, a, r) {
|
|
|
7458
7458
|
]), 4)
|
|
7459
7459
|
])) : R("", !0);
|
|
7460
7460
|
}
|
|
7461
|
-
const Fs = /* @__PURE__ */ q(
|
|
7461
|
+
const Fs = /* @__PURE__ */ q(Ns, [["render", js], ["__scopeId", "data-v-d47b8b5c"]]), Hs = {
|
|
7462
7462
|
name: "IdmPrmsl",
|
|
7463
7463
|
props: {
|
|
7464
7464
|
map: {
|
|
@@ -7613,14 +7613,14 @@ function Ws(t, e, o, i, a, r) {
|
|
|
7613
7613
|
return (n = o.prmsl) != null && n.active ? (y(), S("div", Us, [
|
|
7614
7614
|
l("div", {
|
|
7615
7615
|
class: "menu-bar-box pa-1 rounded",
|
|
7616
|
-
style:
|
|
7616
|
+
style: oe({ right: a.right + "px" })
|
|
7617
7617
|
}, [
|
|
7618
7618
|
p(c, {
|
|
7619
7619
|
text: "Map Layers",
|
|
7620
7620
|
location: "left"
|
|
7621
7621
|
}, {
|
|
7622
7622
|
activator: f(({ props: u }) => [
|
|
7623
|
-
p(s,
|
|
7623
|
+
p(s, N(u, {
|
|
7624
7624
|
"min-width": "32",
|
|
7625
7625
|
width: "32",
|
|
7626
7626
|
height: "32",
|
|
@@ -7745,7 +7745,7 @@ function Ys(t, e, o, i, a, r) {
|
|
|
7745
7745
|
return (s = o.factor) != null && s.active ? (y(), S("div", Zs, [
|
|
7746
7746
|
l("div", {
|
|
7747
7747
|
class: "legend-bars-gl4 ice-edge",
|
|
7748
|
-
style:
|
|
7748
|
+
style: oe({ right: a.right + "px" })
|
|
7749
7749
|
}, e[0] || (e[0] = [
|
|
7750
7750
|
l("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
7751
7751
|
l("span", null, null, -1),
|
|
@@ -7858,7 +7858,7 @@ function $s(t, e, o, i, a, r) {
|
|
|
7858
7858
|
return (s = o.factor) != null && s.active ? (y(), S("div", Ks, [
|
|
7859
7859
|
l("div", {
|
|
7860
7860
|
class: "legend-bars-gl4 ice-cover",
|
|
7861
|
-
style:
|
|
7861
|
+
style: oe({ right: a.right + "px" })
|
|
7862
7862
|
}, e[0] || (e[0] = [
|
|
7863
7863
|
l("span", null, "%", -1),
|
|
7864
7864
|
l("span", null, "20", -1),
|
|
@@ -7972,7 +7972,7 @@ function tn(t, e, o, i, a, r) {
|
|
|
7972
7972
|
return (s = o.factor) != null && s.active ? (y(), S("div", en, [
|
|
7973
7973
|
l("div", {
|
|
7974
7974
|
class: "legend-bars-gl4 ice-thickness",
|
|
7975
|
-
style:
|
|
7975
|
+
style: oe({ right: a.right + "px" })
|
|
7976
7976
|
}, e[0] || (e[0] = [
|
|
7977
7977
|
l("span", null, "m", -1),
|
|
7978
7978
|
l("span", null, "0", -1),
|
|
@@ -8088,7 +8088,7 @@ function ln(t, e, o, i, a, r) {
|
|
|
8088
8088
|
return (s = o.factor) != null && s.active ? (y(), S("div", rn, [
|
|
8089
8089
|
l("div", {
|
|
8090
8090
|
class: "legend-bars-gl4 precip3h",
|
|
8091
|
-
style:
|
|
8091
|
+
style: oe({ right: a.right + "px" })
|
|
8092
8092
|
}, e[0] || (e[0] = [
|
|
8093
8093
|
l("span", null, "mm", -1),
|
|
8094
8094
|
l("span", null, "1.5", -1),
|
|
@@ -8195,7 +8195,7 @@ function mn(t, e, o, i, a, r) {
|
|
|
8195
8195
|
return (s = o.factor) != null && s.active ? (y(), S("div", cn, [
|
|
8196
8196
|
l("div", {
|
|
8197
8197
|
class: "legend-bars-gl4 visibility",
|
|
8198
|
-
style:
|
|
8198
|
+
style: oe({ right: a.right + "px" })
|
|
8199
8199
|
}, e[0] || (e[0] = [
|
|
8200
8200
|
l("span", null, "nm", -1),
|
|
8201
8201
|
l("span", null, "0", -1),
|
|
@@ -8303,7 +8303,7 @@ function un(t, e, o, i, a, r) {
|
|
|
8303
8303
|
return (s = o.factor) != null && s.active ? (y(), S("div", pn, [
|
|
8304
8304
|
l("div", {
|
|
8305
8305
|
class: "legend-bars-gl4 water-temp",
|
|
8306
|
-
style:
|
|
8306
|
+
style: oe({ right: a.right + "px" })
|
|
8307
8307
|
}, e[0] || (e[0] = [
|
|
8308
8308
|
l("span", null, "°C", -1),
|
|
8309
8309
|
l("span", null, "0", -1),
|
|
@@ -8422,7 +8422,7 @@ function bn(t, e, o, i, a, r) {
|
|
|
8422
8422
|
return (s = o.factor) != null && s.active ? (y(), S("div", yn, [
|
|
8423
8423
|
l("div", {
|
|
8424
8424
|
class: "legend-bars-gl4 temp",
|
|
8425
|
-
style:
|
|
8425
|
+
style: oe({ right: a.right + "px" })
|
|
8426
8426
|
}, e[0] || (e[0] = [
|
|
8427
8427
|
l("span", null, "°C", -1),
|
|
8428
8428
|
l("span", null, "-20", -1),
|
|
@@ -8444,7 +8444,7 @@ const xn = {
|
|
|
8444
8444
|
IdmCurrentDirection: Ls,
|
|
8445
8445
|
IdmCurrentParticle: Ss,
|
|
8446
8446
|
IdmWave: As,
|
|
8447
|
-
IdmSigWaveHeight:
|
|
8447
|
+
IdmSigWaveHeight: Bs,
|
|
8448
8448
|
IdmSwell: Fs,
|
|
8449
8449
|
IdmPrmsl: Gs,
|
|
8450
8450
|
IdmIceEdge: qs,
|
|
@@ -8709,17 +8709,17 @@ const xn = {
|
|
|
8709
8709
|
if (this.map) {
|
|
8710
8710
|
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), k = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
8711
8711
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8712
|
-
const P = To.WEATHER_LAYERS.find((
|
|
8712
|
+
const P = To.WEATHER_LAYERS.find((B) => {
|
|
8713
8713
|
var I;
|
|
8714
|
-
return ((I =
|
|
8714
|
+
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8715
8715
|
});
|
|
8716
8716
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight : this.weatherWeight + P.weight : this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight - P.weight : this.weatherWeight;
|
|
8717
8717
|
}
|
|
8718
8718
|
if (this.weatherWeight > 0) {
|
|
8719
8719
|
let P = this.weatherWeight;
|
|
8720
8720
|
if (P > 0) {
|
|
8721
|
-
const
|
|
8722
|
-
`${
|
|
8721
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await De.get(
|
|
8722
|
+
`${B}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${z}&bbox=${k}&t=${this.realTime}`,
|
|
8723
8723
|
{
|
|
8724
8724
|
headers: {
|
|
8725
8725
|
Authorization: this.defaultMeteoToken
|
|
@@ -8830,11 +8830,11 @@ const xn = {
|
|
|
8830
8830
|
if (i && a) {
|
|
8831
8831
|
const w = X.convertToStdLng(i._sw.lng), z = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), k = Math.ceil(i._ne.lat);
|
|
8832
8832
|
for (const P in this.weatherLayers) {
|
|
8833
|
-
let
|
|
8833
|
+
let B = !1;
|
|
8834
8834
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
8835
8835
|
let I = [];
|
|
8836
8836
|
if (P === "swell") {
|
|
8837
|
-
|
|
8837
|
+
B = !0;
|
|
8838
8838
|
const C = ((c = this.weatherLayers[P]) == null ? void 0 : c.direction) || {};
|
|
8839
8839
|
for (const x in C)
|
|
8840
8840
|
if (x > g && x < k && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
@@ -8898,7 +8898,7 @@ const xn = {
|
|
|
8898
8898
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8899
8899
|
}
|
|
8900
8900
|
} else if (P === "current") {
|
|
8901
|
-
|
|
8901
|
+
B = !0;
|
|
8902
8902
|
const C = ((u = this.weatherLayers[P]) == null ? void 0 : u.direction) || {};
|
|
8903
8903
|
for (const x in C)
|
|
8904
8904
|
if (x > g && x < k && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
@@ -8959,7 +8959,7 @@ const xn = {
|
|
|
8959
8959
|
I = I.concat(x), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8960
8960
|
}
|
|
8961
8961
|
} else if (P === "wind") {
|
|
8962
|
-
|
|
8962
|
+
B = !0;
|
|
8963
8963
|
const C = this.weatherLayers.wind.raw;
|
|
8964
8964
|
for (const M in C)
|
|
8965
8965
|
if (M > g && M < k && (!(a <= this.zoom) || M % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
@@ -9005,7 +9005,7 @@ const xn = {
|
|
|
9005
9005
|
if (this.weatherLayers[P].data)
|
|
9006
9006
|
I = this.weatherLayers[P].data;
|
|
9007
9007
|
else {
|
|
9008
|
-
|
|
9008
|
+
B = !0;
|
|
9009
9009
|
const C = this.weatherLayers[P].raw;
|
|
9010
9010
|
if (C) {
|
|
9011
9011
|
const M = [];
|
|
@@ -9044,7 +9044,7 @@ const xn = {
|
|
|
9044
9044
|
if (this.weatherLayers[P].data)
|
|
9045
9045
|
I = this.weatherLayers[P].data;
|
|
9046
9046
|
else {
|
|
9047
|
-
|
|
9047
|
+
B = !0;
|
|
9048
9048
|
const C = this.weatherLayers[P].raw;
|
|
9049
9049
|
if (C) {
|
|
9050
9050
|
const M = [];
|
|
@@ -9071,7 +9071,7 @@ const xn = {
|
|
|
9071
9071
|
}
|
|
9072
9072
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9073
9073
|
}
|
|
9074
|
-
I.length && (this.weatherLayers[P].data = H.featureCollection(I)),
|
|
9074
|
+
I.length && (this.weatherLayers[P].data = H.featureCollection(I)), B && (this.weatherLayers[P].version = Math.random() + 1);
|
|
9075
9075
|
}
|
|
9076
9076
|
}
|
|
9077
9077
|
}
|
|
@@ -9112,21 +9112,21 @@ const xn = {
|
|
|
9112
9112
|
}, On = {
|
|
9113
9113
|
key: 1,
|
|
9114
9114
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9115
|
-
},
|
|
9115
|
+
}, Bn = { class: "text-body-1 py-2" }, Nn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 py-2" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, ec = { class: "text-body-1 py-2" }, tc = { class: "text-body-1 font-weight-medium" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label" }, ic = { class: "text-body-2 text-label mb-3" };
|
|
9116
9116
|
function rc(t, e, o, i, a, r) {
|
|
9117
9117
|
var pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce;
|
|
9118
|
-
const s = v("VBtn"), c = v("VTooltip"), n = v("VCol"), u = v("VRow"), h = v("VCardText"), b = v("VDivider"), w = v("VCard"), z = v("VSwitch"), g = v("VCardTitle"), k = v("VCardItem"), P = v("VCheckbox"),
|
|
9118
|
+
const s = v("VBtn"), c = v("VTooltip"), n = v("VCol"), u = v("VRow"), h = v("VCardText"), b = v("VDivider"), w = v("VCard"), z = v("VSwitch"), g = v("VCardTitle"), k = v("VCardItem"), P = v("VCheckbox"), B = v("VRadio"), I = v("VBtnToggle"), C = v("IdmWindBarb"), M = v("IdmSigWaveHeight"), x = v("IdmCurrentDirection"), L = v("IdmPrmsl"), _ = v("IdmWindParticle"), D = v("IdmCurrentParticle"), F = v("IdmWave"), V = v("IdmSwell"), Y = v("IdmIceEdge"), Z = v("IdmIceCover"), J = v("IdmIceThickness"), Q = v("IdmPrecip3h"), K = v("IdmVisibility"), le = v("IdmWaterTemp"), se = v("IdmTemp");
|
|
9119
9119
|
return y(), S("div", vn, [
|
|
9120
9120
|
l("div", {
|
|
9121
9121
|
class: "menu-bar-box transition pa-1",
|
|
9122
|
-
style:
|
|
9122
|
+
style: oe({ top: o.top + o.paddingTop + 46 + "px", right: a.right + "px" })
|
|
9123
9123
|
}, [
|
|
9124
9124
|
p(c, {
|
|
9125
9125
|
text: t.$t("weather.weatherLayers"),
|
|
9126
9126
|
location: "left"
|
|
9127
9127
|
}, {
|
|
9128
9128
|
activator: f(({ props: U }) => [
|
|
9129
|
-
p(s,
|
|
9129
|
+
p(s, N(U, {
|
|
9130
9130
|
"min-width": "32",
|
|
9131
9131
|
width: "32",
|
|
9132
9132
|
height: "32",
|
|
@@ -9146,14 +9146,14 @@ function rc(t, e, o, i, a, r) {
|
|
|
9146
9146
|
r.showTipMenu ? (y(), S("div", _n, [
|
|
9147
9147
|
l("div", {
|
|
9148
9148
|
class: "menu-bar-box pa-1 rounded",
|
|
9149
|
-
style:
|
|
9149
|
+
style: oe({ right: a.right + "px" })
|
|
9150
9150
|
}, [
|
|
9151
9151
|
p(c, {
|
|
9152
9152
|
text: "Legend",
|
|
9153
9153
|
location: "left"
|
|
9154
9154
|
}, {
|
|
9155
9155
|
activator: f(({ props: U }) => [
|
|
9156
|
-
p(s,
|
|
9156
|
+
p(s, N(U, {
|
|
9157
9157
|
"min-width": "32",
|
|
9158
9158
|
width: "32",
|
|
9159
9159
|
height: "32",
|
|
@@ -9175,7 +9175,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9175
9175
|
width: "435",
|
|
9176
9176
|
elevation: "16",
|
|
9177
9177
|
class: "card-info d-flex justify-center align-start",
|
|
9178
|
-
style:
|
|
9178
|
+
style: oe({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
9179
9179
|
}, {
|
|
9180
9180
|
default: f(() => [
|
|
9181
9181
|
p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
@@ -9192,7 +9192,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9192
9192
|
l("div", kn, [
|
|
9193
9193
|
l("i", {
|
|
9194
9194
|
class: Ye(["iconfont", r.barbsIconName[te]]),
|
|
9195
|
-
style:
|
|
9195
|
+
style: oe({ color: o.theme === "dark" ? "#fff" : "#000" })
|
|
9196
9196
|
}, null, 6),
|
|
9197
9197
|
l("span", zn, m(Number(U) < 10 ? `00${U}kts` : Number(U) < 100 ? `0${U}kts` : `${U}kts`), 1)
|
|
9198
9198
|
])
|
|
@@ -9224,7 +9224,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9224
9224
|
l("div", Ln, [
|
|
9225
9225
|
te === 0 ? (y(), S("div", Pn)) : (y(), S("div", {
|
|
9226
9226
|
key: 1,
|
|
9227
|
-
style:
|
|
9227
|
+
style: oe({ width: "24px", height: "12px", background: U.color })
|
|
9228
9228
|
}, null, 4)),
|
|
9229
9229
|
l("div", Cn, m(U.label), 1)
|
|
9230
9230
|
])
|
|
@@ -9257,7 +9257,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9257
9257
|
l("div", Sn, [
|
|
9258
9258
|
l("i", {
|
|
9259
9259
|
class: "iconfont icon-a-direction-arrow opacity-80",
|
|
9260
|
-
style:
|
|
9260
|
+
style: oe({ fontSize: 40 * U.size + "px" })
|
|
9261
9261
|
}, null, 4)
|
|
9262
9262
|
]),
|
|
9263
9263
|
l("div", Mn, m(U.label), 1)
|
|
@@ -9278,7 +9278,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9278
9278
|
])) : R("", !0),
|
|
9279
9279
|
l("div", {
|
|
9280
9280
|
class: Ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
9281
|
-
style:
|
|
9281
|
+
style: oe({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
9282
9282
|
}, [
|
|
9283
9283
|
l("div", In, [
|
|
9284
9284
|
l("div", Dn, [
|
|
@@ -9374,7 +9374,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9374
9374
|
(y(!0), S(we, null, _e(a.tagLayers.filter((U) => !U.overlays), (U) => (y(), S(we, {
|
|
9375
9375
|
key: U.key
|
|
9376
9376
|
}, [
|
|
9377
|
-
p(
|
|
9377
|
+
p(B, {
|
|
9378
9378
|
modelValue: a.renderKey,
|
|
9379
9379
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
9380
9380
|
label: t.$t(`weather.${U.locale}`),
|
|
@@ -9531,13 +9531,13 @@ function rc(t, e, o, i, a, r) {
|
|
|
9531
9531
|
}),
|
|
9532
9532
|
p(h, { class: "" }, {
|
|
9533
9533
|
default: f(() => {
|
|
9534
|
-
var U, te, Fe, Ae, ge, Ie, W, fe,
|
|
9534
|
+
var U, te, Fe, Ae, ge, Ie, W, fe, ae, re, Be, He, Ue, E, be, Re, Ne, Ee, j, We, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9535
9535
|
return [
|
|
9536
|
-
l("div",
|
|
9537
|
-
l("div",
|
|
9536
|
+
l("div", Bn, m(t.$t("weather.atmospheric")), 1),
|
|
9537
|
+
l("div", Nn, m((Fe = (te = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Ie = (ge = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Ie.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (ae = (fe = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
9538
9538
|
l("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9539
|
-
l("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ue = (He = (
|
|
9540
|
-
l("div", Fn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (
|
|
9539
|
+
l("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ue = (He = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ue.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9540
|
+
l("div", Fn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Ne = (Re = (be = a.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Ne.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
9541
9541
|
l("div", Hn, m((G = (We = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : We.ECMWF) == null ? void 0 : G.source) + " " + m((Ke = (Xe = (qe = a.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 = a.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),
|
|
9542
9542
|
l("div", Un, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9543
9543
|
l("div", Wn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
@@ -9548,7 +9548,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9548
9548
|
l("div", Yn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9549
9549
|
l("div", qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Lt = (zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : zt.meta) == null ? void 0 : Lt.availabilityTime)), 1),
|
|
9550
9550
|
l("div", Xn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : St.meta) == null ? void 0 : Mt.initialisationTime)), 1),
|
|
9551
|
-
l("div", Kn, m((Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.source) + " " + m((Et = (
|
|
9551
|
+
l("div", Kn, m((Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.source) + " " + m((Et = (Nt = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Nt.ECMWF) == null ? void 0 : Et.spatialResolution) + m(t.$t("units.km")) + " " + m((Wt = (Ut = (Ht = (Ft = (jt = a.models) == null ? void 0 : jt.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Ut.meta) == null ? void 0 : Wt.days) + m(t.$t("units.days")), 1),
|
|
9552
9552
|
l("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9553
9553
|
l("div", Jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Gt = a.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
|
|
9554
9554
|
l("div", Qn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
|
|
@@ -9567,7 +9567,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9567
9567
|
})
|
|
9568
9568
|
], 2)
|
|
9569
9569
|
], 6),
|
|
9570
|
-
o.map ? (y(), O(C,
|
|
9570
|
+
o.map ? (y(), O(C, N({
|
|
9571
9571
|
key: 1,
|
|
9572
9572
|
ref: "windBarb",
|
|
9573
9573
|
map: o.map,
|
|
@@ -9576,7 +9576,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9576
9576
|
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
9577
9577
|
"menu-toggle": o.menuToggle
|
|
9578
9578
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
|
|
9579
|
-
o.map ? (y(), O(M,
|
|
9579
|
+
o.map ? (y(), O(M, N({
|
|
9580
9580
|
key: 2,
|
|
9581
9581
|
map: o.map,
|
|
9582
9582
|
"before-layer": "empty-layer-2",
|
|
@@ -9584,7 +9584,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9584
9584
|
"menu-toggle": o.menuToggle,
|
|
9585
9585
|
"active-weather-layers": a.activeWeatherLayers
|
|
9586
9586
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
9587
|
-
o.map ? (y(), O(x,
|
|
9587
|
+
o.map ? (y(), O(x, N({
|
|
9588
9588
|
key: 3,
|
|
9589
9589
|
map: o.map,
|
|
9590
9590
|
"map-feather": o.mapFeather,
|
|
@@ -9592,7 +9592,7 @@ function rc(t, e, o, i, a, r) {
|
|
|
9592
9592
|
current: (ce = a.weatherLayers) == null ? void 0 : ce.current,
|
|
9593
9593
|
"menu-toggle": o.menuToggle
|
|
9594
9594
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
|
|
9595
|
-
o.map ? (y(), O(L,
|
|
9595
|
+
o.map ? (y(), O(L, N({
|
|
9596
9596
|
key: 4,
|
|
9597
9597
|
map: o.map,
|
|
9598
9598
|
"before-layer": "empty-layer-2",
|
|
@@ -9600,25 +9600,25 @@ function rc(t, e, o, i, a, r) {
|
|
|
9600
9600
|
"menu-toggle": o.menuToggle,
|
|
9601
9601
|
"active-weather-layers": a.activeWeatherLayers
|
|
9602
9602
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
|
|
9603
|
-
o.map ? (y(), O(_,
|
|
9603
|
+
o.map ? (y(), O(_, N({
|
|
9604
9604
|
key: 5,
|
|
9605
9605
|
viewport: a.viewport,
|
|
9606
9606
|
factor: (me = a.weatherLayers) == null ? void 0 : me["wind-particle"],
|
|
9607
9607
|
"menu-toggle": o.menuToggle
|
|
9608
9608
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9609
|
-
o.map ? (y(), O(D,
|
|
9609
|
+
o.map ? (y(), O(D, N({
|
|
9610
9610
|
key: 6,
|
|
9611
9611
|
viewport: a.viewport,
|
|
9612
9612
|
factor: (de = a.weatherLayers) == null ? void 0 : de["current-particle"],
|
|
9613
9613
|
"menu-toggle": o.menuToggle
|
|
9614
9614
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9615
|
-
o.map ? (y(), O(F,
|
|
9615
|
+
o.map ? (y(), O(F, N({
|
|
9616
9616
|
key: 7,
|
|
9617
9617
|
viewport: a.viewport,
|
|
9618
9618
|
factor: (A = a.weatherLayers) == null ? void 0 : A["sig-wave"],
|
|
9619
9619
|
"menu-toggle": o.menuToggle
|
|
9620
9620
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9621
|
-
o.map ? (y(), O(V,
|
|
9621
|
+
o.map ? (y(), O(V, N({
|
|
9622
9622
|
key: 8,
|
|
9623
9623
|
map: o.map,
|
|
9624
9624
|
viewport: a.viewport,
|
|
@@ -9626,43 +9626,43 @@ function rc(t, e, o, i, a, r) {
|
|
|
9626
9626
|
"menu-toggle": o.menuToggle,
|
|
9627
9627
|
"active-weather-layers": a.activeWeatherLayers
|
|
9628
9628
|
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
9629
|
-
o.map ? (y(), O(Y,
|
|
9629
|
+
o.map ? (y(), O(Y, N({
|
|
9630
9630
|
key: 9,
|
|
9631
9631
|
viewport: a.viewport,
|
|
9632
9632
|
factor: (ye = a.weatherLayers) == null ? void 0 : ye["ice-edge"],
|
|
9633
9633
|
"menu-toggle": o.menuToggle
|
|
9634
9634
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9635
|
-
o.map ? (y(), O(Z,
|
|
9635
|
+
o.map ? (y(), O(Z, N({
|
|
9636
9636
|
key: 10,
|
|
9637
9637
|
viewport: a.viewport,
|
|
9638
9638
|
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-cover"],
|
|
9639
9639
|
"menu-toggle": o.menuToggle
|
|
9640
9640
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9641
|
-
o.map ? (y(), O(J,
|
|
9641
|
+
o.map ? (y(), O(J, N({
|
|
9642
9642
|
key: 11,
|
|
9643
9643
|
viewport: a.viewport,
|
|
9644
9644
|
factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
9645
9645
|
"menu-toggle": o.menuToggle
|
|
9646
9646
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9647
|
-
o.map ? (y(), O(Q,
|
|
9647
|
+
o.map ? (y(), O(Q, N({
|
|
9648
9648
|
key: 12,
|
|
9649
9649
|
viewport: a.viewport,
|
|
9650
9650
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
9651
9651
|
"menu-toggle": o.menuToggle
|
|
9652
9652
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9653
|
-
o.map ? (y(), O(K,
|
|
9653
|
+
o.map ? (y(), O(K, N({
|
|
9654
9654
|
key: 13,
|
|
9655
9655
|
viewport: a.viewport,
|
|
9656
9656
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve.visibility,
|
|
9657
9657
|
"menu-toggle": o.menuToggle
|
|
9658
9658
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9659
|
-
o.map ? (y(), O(le,
|
|
9659
|
+
o.map ? (y(), O(le, N({
|
|
9660
9660
|
key: 14,
|
|
9661
9661
|
viewport: a.viewport,
|
|
9662
9662
|
factor: (Me = a.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
9663
9663
|
"menu-toggle": o.menuToggle
|
|
9664
9664
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
9665
|
-
o.map ? (y(), O(se,
|
|
9665
|
+
o.map ? (y(), O(se, N({
|
|
9666
9666
|
key: 15,
|
|
9667
9667
|
viewport: a.viewport,
|
|
9668
9668
|
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
@@ -10017,17 +10017,17 @@ class Ya {
|
|
|
10017
10017
|
}), a;
|
|
10018
10018
|
}
|
|
10019
10019
|
static pickHourly(e, o) {
|
|
10020
|
-
var i, a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
10021
|
-
const W = typeof o == "string" ? T(o) : o, fe = e == null ? void 0 : e.weather,
|
|
10022
|
-
if (W.isBetween(
|
|
10023
|
-
const E = W.utc().diff(
|
|
10020
|
+
var i, a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce, U, te, Fe, Ae, ge, Ie;
|
|
10021
|
+
const W = typeof o == "string" ? T(o) : o, fe = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = T((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.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"), He = 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"), Ue = [];
|
|
10022
|
+
if (W.isBetween(Be, He, "millisecond", "[]")) {
|
|
10023
|
+
const E = W.utc().diff(Be, "h", !1);
|
|
10024
10024
|
let be, Re;
|
|
10025
10025
|
if (fe) {
|
|
10026
|
-
let
|
|
10026
|
+
let Ne = 0, Ee = 0, j = 0;
|
|
10027
10027
|
for (const We of fe) {
|
|
10028
10028
|
const G = We == null ? void 0 : We.hourly;
|
|
10029
10029
|
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
10030
|
-
|
|
10030
|
+
Ne += (b = G == null ? void 0 : G.precipitation) == null ? void 0 : b.at(ze);
|
|
10031
10031
|
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
10032
10032
|
Ee += (w = G == null ? void 0 : G.precipitation) == null ? void 0 : w.at(ze);
|
|
10033
10033
|
for (let ze = E - (E - 1) % 12; ze <= E; ze++)
|
|
@@ -10036,12 +10036,12 @@ class Ya {
|
|
|
10036
10036
|
temp: (g = G == null ? void 0 : G.temperature_2m) == null ? void 0 : g.at(E),
|
|
10037
10037
|
apparentTemp: (k = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : k.at(E),
|
|
10038
10038
|
rh: (P = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : P.at(E),
|
|
10039
|
-
dp: (
|
|
10039
|
+
dp: (B = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10040
10040
|
precip: {
|
|
10041
10041
|
probability: (I = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10042
10042
|
sum: (C = G == null ? void 0 : G.precipitation) == null ? void 0 : C.at(E),
|
|
10043
10043
|
sum1Hours: (M = G == null ? void 0 : G.precipitation) == null ? void 0 : M.at(E),
|
|
10044
|
-
sum3Hours: Math.round(
|
|
10044
|
+
sum3Hours: Math.round(Ne * 100) / 100,
|
|
10045
10045
|
sum6Hours: Math.round(Ee * 100) / 100,
|
|
10046
10046
|
sum12Hours: Math.round(j * 100) / 100
|
|
10047
10047
|
},
|
|
@@ -10060,15 +10060,15 @@ class Ya {
|
|
|
10060
10060
|
};
|
|
10061
10061
|
const { name: qe, url: Xe, bg: Ke } = this.parseWeatherCode(be.code, be.isDay);
|
|
10062
10062
|
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), Ue.push({
|
|
10063
|
-
utc:
|
|
10063
|
+
utc: Be.add(E, "h").format(),
|
|
10064
10064
|
model: We.model,
|
|
10065
10065
|
weather: { ...be }
|
|
10066
10066
|
});
|
|
10067
10067
|
}
|
|
10068
10068
|
}
|
|
10069
|
-
if (
|
|
10070
|
-
let
|
|
10071
|
-
for (const Ee of
|
|
10069
|
+
if (ae) {
|
|
10070
|
+
let Ne = 0;
|
|
10071
|
+
for (const Ee of ae) {
|
|
10072
10072
|
const j = Ee == null ? void 0 : Ee.hourly;
|
|
10073
10073
|
Re = {
|
|
10074
10074
|
wave: {
|
|
@@ -10101,7 +10101,7 @@ class Ya {
|
|
|
10101
10101
|
},
|
|
10102
10102
|
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
10103
10103
|
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
10104
|
-
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(Ue[
|
|
10104
|
+
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(Ue[Ne], Re), Ne++;
|
|
10105
10105
|
}
|
|
10106
10106
|
}
|
|
10107
10107
|
}
|
|
@@ -10130,48 +10130,48 @@ class Ya {
|
|
|
10130
10130
|
};
|
|
10131
10131
|
}
|
|
10132
10132
|
static pickDaily(e, o) {
|
|
10133
|
-
var i, a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
10133
|
+
var i, a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve;
|
|
10134
10134
|
const Me = typeof o == "string" ? T(o) : o, Ce = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, te = T((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = T((n = (c = (s = Ce == null ? void 0 : Ce[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ae = [];
|
|
10135
10135
|
if (Me.isBetween(te, Fe, "millisecond", "[]")) {
|
|
10136
10136
|
let ge, Ie;
|
|
10137
10137
|
const W = Me.diff(te, "d", !1);
|
|
10138
10138
|
if (Ce)
|
|
10139
10139
|
for (const fe of Ce) {
|
|
10140
|
-
const
|
|
10140
|
+
const ae = fe.daily;
|
|
10141
10141
|
ge = {
|
|
10142
|
-
code: (u =
|
|
10142
|
+
code: (u = ae.weather_code) == null ? void 0 : u.at(W),
|
|
10143
10143
|
temp: {
|
|
10144
|
-
max: (h =
|
|
10145
|
-
min: (b =
|
|
10146
|
-
mean: (w =
|
|
10144
|
+
max: (h = ae.temperature_2m_max) == null ? void 0 : h.at(W),
|
|
10145
|
+
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
10146
|
+
mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10147
10147
|
},
|
|
10148
10148
|
apparentTemp: {
|
|
10149
|
-
max: (z =
|
|
10150
|
-
min: (g =
|
|
10149
|
+
max: (z = ae.apparent_temperature_max) == null ? void 0 : z.at(W),
|
|
10150
|
+
min: (g = ae.apparent_temperature_min) == null ? void 0 : g.at(W)
|
|
10151
10151
|
},
|
|
10152
10152
|
precip: {
|
|
10153
|
-
sum: (k =
|
|
10154
|
-
rainSum: (P =
|
|
10155
|
-
snowfallSum: (
|
|
10156
|
-
showersSum: (I =
|
|
10157
|
-
hours: (C =
|
|
10158
|
-
probability: (M =
|
|
10153
|
+
sum: (k = ae.precipitation_sum) == null ? void 0 : k.at(W),
|
|
10154
|
+
rainSum: (P = ae.rain_sum) == null ? void 0 : P.at(W),
|
|
10155
|
+
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10156
|
+
showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
|
|
10157
|
+
hours: (C = ae.precipitation_hours) == null ? void 0 : C.at(W),
|
|
10158
|
+
probability: (M = ae.precipitation_probability_max) == null ? void 0 : M.at(W)
|
|
10159
10159
|
},
|
|
10160
10160
|
rh: {
|
|
10161
|
-
max: (x =
|
|
10162
|
-
min: (L =
|
|
10163
|
-
mean: (_ =
|
|
10161
|
+
max: (x = ae.relative_humidity_2m_max) == null ? void 0 : x.at(W),
|
|
10162
|
+
min: (L = ae.relative_humidity_2m_min) == null ? void 0 : L.at(W),
|
|
10163
|
+
mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
|
|
10164
10164
|
},
|
|
10165
10165
|
wind: {
|
|
10166
|
-
speed: (D =
|
|
10167
|
-
kts: (F =
|
|
10168
|
-
degree: (V =
|
|
10169
|
-
gusts: (Y =
|
|
10170
|
-
bearing: ((Z =
|
|
10166
|
+
speed: (D = ae.wind_speed_10m_max) == null ? void 0 : D.at(W),
|
|
10167
|
+
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(W),
|
|
10168
|
+
degree: (V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(W),
|
|
10169
|
+
gusts: (Y = ae.wind_gusts_10m_max) == null ? void 0 : Y.at(W),
|
|
10170
|
+
bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((J = ae.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10171
10171
|
}
|
|
10172
10172
|
};
|
|
10173
|
-
const { name: re, url:
|
|
10174
|
-
ge.name = re, ge.url =
|
|
10173
|
+
const { name: re, url: Be, bg: He } = this.parseWeatherCode(ge.code, !0);
|
|
10174
|
+
ge.name = re, ge.url = Be, ge.bg = He, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ae.push({
|
|
10175
10175
|
utc: te.add(W, "d").utc().format(),
|
|
10176
10176
|
model: fe.model,
|
|
10177
10177
|
weather: { ...ge }
|
|
@@ -10179,8 +10179,8 @@ class Ya {
|
|
|
10179
10179
|
}
|
|
10180
10180
|
if (U) {
|
|
10181
10181
|
let fe = 0;
|
|
10182
|
-
for (const
|
|
10183
|
-
const re =
|
|
10182
|
+
for (const ae of U) {
|
|
10183
|
+
const re = ae.daily;
|
|
10184
10184
|
Ie = {
|
|
10185
10185
|
wave: {
|
|
10186
10186
|
sig: {
|
|
@@ -10841,7 +10841,7 @@ const sc = {
|
|
|
10841
10841
|
handleRefresh() {
|
|
10842
10842
|
var e, o;
|
|
10843
10843
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10844
|
-
var a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
10844
|
+
var a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _;
|
|
10845
10845
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10846
10846
|
let D = "";
|
|
10847
10847
|
switch (!0) {
|
|
@@ -10869,7 +10869,7 @@ const sc = {
|
|
|
10869
10869
|
}
|
|
10870
10870
|
i.properties.level = D;
|
|
10871
10871
|
}
|
|
10872
|
-
((
|
|
10872
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (M = (C = T(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : M.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((x = i.geometry) == null ? void 0 : x.type) === "Point" && (i.properties.Name = ((_ = (L = i.properties.name) == null ? void 0 : L.trim()) == null ? void 0 : _.replace(/^./, (D) => D.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
10873
10873
|
}), this.handleInit();
|
|
10874
10874
|
},
|
|
10875
10875
|
handleInit() {
|
|
@@ -11088,7 +11088,7 @@ const sc = {
|
|
|
11088
11088
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.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)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11089
11089
|
},
|
|
11090
11090
|
handleDateChange() {
|
|
11091
|
-
var t, e, o, i, a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
11091
|
+
var t, e, o, i, a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe;
|
|
11092
11092
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11093
11093
|
const ie = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((A) => A.properties.date === (ie == null ? void 0 : ie.format()) && !A.properties.disabled), ue = this.handleComputePolygons(ce), me = H.featureCollection([...ce]);
|
|
11094
11094
|
ue.forEach((A) => {
|
|
@@ -11129,7 +11129,7 @@ const sc = {
|
|
|
11129
11129
|
A.properties.nameCn = Pe, A.properties.Name = ((h = (u = A.properties.name) == null ? void 0 : u.trim()) == null ? void 0 : h.replace(/^./, (ve) => ve.toUpperCase())) || A.properties.nameCn, de.push(A);
|
|
11130
11130
|
}
|
|
11131
11131
|
let ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
11132
|
-
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((g = (z = A.properties) == null ? void 0 : z.wind) != null && g.kts) ? ee = this.Theme.current.value.colors["tropicals-td"] : ((P = (k = A.properties) == null ? void 0 : k.wind) == null ? void 0 : P.kts) >= 32 && ((I = (
|
|
11132
|
+
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((g = (z = A.properties) == null ? void 0 : z.wind) != null && g.kts) ? ee = this.Theme.current.value.colors["tropicals-td"] : ((P = (k = A.properties) == null ? void 0 : k.wind) == null ? void 0 : P.kts) >= 32 && ((I = (B = A.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? ee = this.Theme.current.value.colors["tropicals-ts"] : ((M = (C = A.properties) == null ? void 0 : C.wind) == null ? void 0 : M.kts) >= 47 && ((L = (x = A.properties) == null ? void 0 : x.wind) == null ? void 0 : L.kts) < 63 ? ee = this.Theme.current.value.colors["tropicals-sts"] : ((D = (_ = A.properties) == null ? void 0 : _.wind) == null ? void 0 : D.kts) >= 63 && ((V = (F = A.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? ee = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = A.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = A.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? ee = this.Theme.current.value.colors["tropicals-sty"] : ((le = (K = A.properties) == null ? void 0 : K.wind) == null ? void 0 : le.kts) >= 94 ? ee = this.Theme.current.value.colors["tropicals-super-ty"] : ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
11133
11133
|
const ye = `<svg t="1719918955501"
|
|
11134
11134
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11135
11135
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11296,10 +11296,10 @@ const sc = {
|
|
|
11296
11296
|
}, Cc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Tc = { class: "more" }, Sc = {
|
|
11297
11297
|
class: "my-3",
|
|
11298
11298
|
style: { height: "80px", width: "100%" }
|
|
11299
|
-
}, Mc = { class: "pa-1 d-flex justify-space-between align-center" }, Ic = { class: "pa-1 d-flex justify-space-between align-center" }, Dc = { class: "d-flex justify-star align-center" }, Ac = { class: "font-weight-600 mr-1" }, Rc = { class: "" }, Oc = { class: "port-box d-flex flex-column justify-center align-start ga-2" },
|
|
11299
|
+
}, Mc = { class: "pa-1 d-flex justify-space-between align-center" }, Ic = { class: "pa-1 d-flex justify-space-between align-center" }, Dc = { class: "d-flex justify-star align-center" }, Ac = { class: "font-weight-600 mr-1" }, Rc = { class: "" }, Oc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Bc = {
|
|
11300
11300
|
key: 0,
|
|
11301
11301
|
class: "d-flex justify-start align-center"
|
|
11302
|
-
},
|
|
11302
|
+
}, Nc = { class: "text-label pr-1" }, Ec = {
|
|
11303
11303
|
key: 1,
|
|
11304
11304
|
class: "d-flex justify-start align-center"
|
|
11305
11305
|
}, jc = { class: "text-label pr-1" }, Fc = {
|
|
@@ -11326,14 +11326,14 @@ function om(t, e, o, i, a, r) {
|
|
|
11326
11326
|
return y(), S("div", nc, [
|
|
11327
11327
|
l("div", {
|
|
11328
11328
|
class: "menu-bar-box transition pa-1",
|
|
11329
|
-
style:
|
|
11329
|
+
style: oe({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
|
|
11330
11330
|
}, [
|
|
11331
11331
|
p(c, {
|
|
11332
11332
|
text: t.$t("tropical.tropicals"),
|
|
11333
11333
|
location: "left"
|
|
11334
11334
|
}, {
|
|
11335
11335
|
activator: f(({ props: g }) => [
|
|
11336
|
-
p(s,
|
|
11336
|
+
p(s, N(g, {
|
|
11337
11337
|
"min-width": "32",
|
|
11338
11338
|
width: "32",
|
|
11339
11339
|
height: "32",
|
|
@@ -11359,11 +11359,11 @@ function om(t, e, o, i, a, r) {
|
|
|
11359
11359
|
default: f(() => [
|
|
11360
11360
|
p(n, null, {
|
|
11361
11361
|
default: f(() => {
|
|
11362
|
-
var g, k, P,
|
|
11362
|
+
var g, k, P, B, I, C, M, x, L, _, D, F;
|
|
11363
11363
|
return [
|
|
11364
11364
|
l("div", mc, [
|
|
11365
11365
|
l("span", dc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.Name : ((k = a.activeTropicals) == null ? void 0 : k.nameCn) || ((P = a.activeTropicals) == null ? void 0 : P.Name) || "-"), 1),
|
|
11366
|
-
(I = (
|
|
11366
|
+
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.level ? (y(), S("span", hc, ", " + m((M = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : M.level), 1)) : R("", !0)
|
|
11367
11367
|
]),
|
|
11368
11368
|
p(s, {
|
|
11369
11369
|
icon: "",
|
|
@@ -11389,13 +11389,13 @@ function om(t, e, o, i, a, r) {
|
|
|
11389
11389
|
p(u),
|
|
11390
11390
|
p(n, { class: "text-body-1" }, {
|
|
11391
11391
|
default: f(() => {
|
|
11392
|
-
var g, k, P,
|
|
11392
|
+
var g, k, P, B, I, C, M, x, L;
|
|
11393
11393
|
return [
|
|
11394
11394
|
l("div", gc, [
|
|
11395
11395
|
l("div", fc, [
|
|
11396
11396
|
l("label", yc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11397
11397
|
l("span", null, m(((k = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : k.kts) || "-") + " kts", 1),
|
|
11398
|
-
l("span", null, ", BF " + m(r.computeBF(((
|
|
11398
|
+
l("span", null, ", BF " + m(r.computeBF(((B = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
11399
11399
|
]),
|
|
11400
11400
|
l("div", bc, [
|
|
11401
11401
|
l("label", wc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
@@ -11557,11 +11557,11 @@ function om(t, e, o, i, a, r) {
|
|
|
11557
11557
|
default: f(() => [
|
|
11558
11558
|
p(w, null, {
|
|
11559
11559
|
default: f(() => {
|
|
11560
|
-
var g, k, P,
|
|
11560
|
+
var g, k, P, B;
|
|
11561
11561
|
return [
|
|
11562
11562
|
l("div", Dc, [
|
|
11563
11563
|
l("span", Ac, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.Name : ((k = a.hoverPoint) == null ? void 0 : k.nameCn) || ((P = a.hoverPoint) == null ? void 0 : P.Name)), 1),
|
|
11564
|
-
l("span", Rc, "[ " + m((
|
|
11564
|
+
l("span", Rc, "[ " + m((B = a.hoverPoint) == null ? void 0 : B.level) + " ]", 1)
|
|
11565
11565
|
])
|
|
11566
11566
|
];
|
|
11567
11567
|
}),
|
|
@@ -11570,16 +11570,16 @@ function om(t, e, o, i, a, r) {
|
|
|
11570
11570
|
p(z),
|
|
11571
11571
|
p(n, { class: "text-body-1" }, {
|
|
11572
11572
|
default: f(() => {
|
|
11573
|
-
var g, k, P,
|
|
11573
|
+
var g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se;
|
|
11574
11574
|
return [
|
|
11575
11575
|
l("div", Oc, [
|
|
11576
|
-
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div",
|
|
11577
|
-
l("label",
|
|
11576
|
+
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Bc, [
|
|
11577
|
+
l("label", Nc, m(t.$t("tropical.updated")) + " : ", 1),
|
|
11578
11578
|
l("span", null, m(r.computeTzTime((k = a.hoverPoint) == null ? void 0 : k.update, o.timeZone)), 1)
|
|
11579
11579
|
])) : R("", !0),
|
|
11580
11580
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (y(), S("div", Ec, [
|
|
11581
11581
|
l("label", jc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
11582
|
-
l("span", null, m(r.computeTzTime((
|
|
11582
|
+
l("span", null, m(r.computeTzTime((B = a.hoverPoint) == null ? void 0 : B.date, o.timeZone)), 1)
|
|
11583
11583
|
])) : R("", !0),
|
|
11584
11584
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), S("div", Fc, [
|
|
11585
11585
|
l("label", Hc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
@@ -11833,7 +11833,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
11833
11833
|
a.showDatePicker ? (y(), O(g, {
|
|
11834
11834
|
key: 0,
|
|
11835
11835
|
class: "card-box d-flex flex-column border",
|
|
11836
|
-
style:
|
|
11836
|
+
style: oe(r.getStyle)
|
|
11837
11837
|
}, {
|
|
11838
11838
|
default: f(() => [
|
|
11839
11839
|
p(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
@@ -11873,7 +11873,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
11873
11873
|
default: f(() => [
|
|
11874
11874
|
p(u, {
|
|
11875
11875
|
class: "text-body-2 font-weight-600 text-center",
|
|
11876
|
-
onClick: (
|
|
11876
|
+
onClick: (B) => a.currentTime = k
|
|
11877
11877
|
}, {
|
|
11878
11878
|
default: f(() => [
|
|
11879
11879
|
$(m(k), 1)
|
|
@@ -12120,7 +12120,7 @@ function pm(t, e, o, i, a, r) {
|
|
|
12120
12120
|
const s = v("VIcon"), c = v("VDatePicker"), n = v("VCardText"), u = v("VDivider"), h = v("VBtn"), b = v("VCardActions"), w = v("VCard");
|
|
12121
12121
|
return y(), S("div", mm, [
|
|
12122
12122
|
l("div", {
|
|
12123
|
-
style:
|
|
12123
|
+
style: oe({ height: o.height + "px", width: o.width + "px" }),
|
|
12124
12124
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12125
12125
|
onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
|
|
12126
12126
|
}, [
|
|
@@ -12135,7 +12135,7 @@ function pm(t, e, o, i, a, r) {
|
|
|
12135
12135
|
a.showDatePicker ? (y(), O(w, {
|
|
12136
12136
|
key: 0,
|
|
12137
12137
|
class: "card-box d-flex flex-column border",
|
|
12138
|
-
style:
|
|
12138
|
+
style: oe(r.getStyle)
|
|
12139
12139
|
}, {
|
|
12140
12140
|
default: f(() => [
|
|
12141
12141
|
p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
@@ -12443,10 +12443,10 @@ const um = {
|
|
|
12443
12443
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
12444
12444
|
},
|
|
12445
12445
|
initTableData(t) {
|
|
12446
|
-
var o, i, a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
12446
|
+
var o, i, a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye;
|
|
12447
12447
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
12448
12448
|
const e = ((s = Co.pickHourly(t, T(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
12449
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (
|
|
12449
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((M = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : M.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((L = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : L.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (ce = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((me = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ye = e == null ? void 0 : e.weather) == null ? void 0 : ye.url;
|
|
12450
12450
|
},
|
|
12451
12451
|
handleBind() {
|
|
12452
12452
|
var t, e;
|
|
@@ -12513,10 +12513,10 @@ const um = {
|
|
|
12513
12513
|
}, Sm = ["xlink:href"], Mm = { class: "d-flex justify-start align-center" }, Im = { class: "mx-2" }, Dm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Am = {
|
|
12514
12514
|
style: { width: "100px" },
|
|
12515
12515
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12516
|
-
}, Rm = { class: "pa-0 px-0" }, Om = { class: "mx-0 py-2 d-flex align-center justify-start" },
|
|
12516
|
+
}, Rm = { class: "pa-0 px-0" }, Om = { class: "mx-0 py-2 d-flex align-center justify-start" }, Bm = {
|
|
12517
12517
|
cols: "9",
|
|
12518
12518
|
class: "pa-0 px-0"
|
|
12519
|
-
},
|
|
12519
|
+
}, Nm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Em = {
|
|
12520
12520
|
style: { width: "100px" },
|
|
12521
12521
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12522
12522
|
}, jm = {
|
|
@@ -12555,18 +12555,18 @@ const um = {
|
|
|
12555
12555
|
"aria-hidden": "true"
|
|
12556
12556
|
}, ed = ["xlink:href"];
|
|
12557
12557
|
function td(t, e, o, i, a, r) {
|
|
12558
|
-
const s = v("VBtn"), c = v("VTooltip"), n = v("VCardTitle"), u = v("VDivider"), h = v("VTextField"), b = v("VCol"), w = v("VRow"), z = v("DateTimePicker"), g = v("DateRangePicker"), k = v("VBtnToggle"), P = v("VCardText"),
|
|
12558
|
+
const s = v("VBtn"), c = v("VTooltip"), n = v("VCardTitle"), u = v("VDivider"), h = v("VTextField"), b = v("VCol"), w = v("VRow"), z = v("DateTimePicker"), g = v("DateRangePicker"), k = v("VBtnToggle"), P = v("VCardText"), B = v("VCardActions"), I = v("VForm"), C = v("VCard"), M = v("VIcon");
|
|
12559
12559
|
return y(), S("div", gm, [
|
|
12560
12560
|
l("div", {
|
|
12561
12561
|
class: "menu-bar-box transition pa-1",
|
|
12562
|
-
style:
|
|
12562
|
+
style: oe({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
12563
12563
|
}, [
|
|
12564
12564
|
p(c, {
|
|
12565
12565
|
text: t.$t("spot.spotsMeteo"),
|
|
12566
12566
|
location: "left"
|
|
12567
12567
|
}, {
|
|
12568
12568
|
activator: f(({ props: x }) => [
|
|
12569
|
-
p(s,
|
|
12569
|
+
p(s, N(x, {
|
|
12570
12570
|
"min-width": "32",
|
|
12571
12571
|
width: "32",
|
|
12572
12572
|
height: "32",
|
|
@@ -12586,7 +12586,7 @@ function td(t, e, o, i, a, r) {
|
|
|
12586
12586
|
a.showForm ? (y(), O(C, {
|
|
12587
12587
|
key: 0,
|
|
12588
12588
|
class: "spot-form-card",
|
|
12589
|
-
style:
|
|
12589
|
+
style: oe({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
12590
12590
|
}, {
|
|
12591
12591
|
default: f(() => [
|
|
12592
12592
|
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
@@ -12792,13 +12792,13 @@ function td(t, e, o, i, a, r) {
|
|
|
12792
12792
|
class: "pa-0"
|
|
12793
12793
|
}, {
|
|
12794
12794
|
default: f(() => [
|
|
12795
|
-
p(z,
|
|
12795
|
+
p(z, N({
|
|
12796
12796
|
"date-time": a.form.dateTime,
|
|
12797
12797
|
"time-zone": o.timeZone
|
|
12798
12798
|
}, t.$attrs, {
|
|
12799
12799
|
onDateTime: e[6] || (e[6] = (x) => a.form.dateTime = x)
|
|
12800
12800
|
}), null, 16, ["date-time", "time-zone"]),
|
|
12801
|
-
p(g,
|
|
12801
|
+
p(g, N({
|
|
12802
12802
|
"default-range": ["2025-10-16T19:00:00Z", "2025-11-24T01:29:37Z"],
|
|
12803
12803
|
"default-days": 7,
|
|
12804
12804
|
dayAbout: { h: -90, f: 30 },
|
|
@@ -12879,7 +12879,7 @@ function td(t, e, o, i, a, r) {
|
|
|
12879
12879
|
_: 1
|
|
12880
12880
|
}),
|
|
12881
12881
|
p(u),
|
|
12882
|
-
p(
|
|
12882
|
+
p(B, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12883
12883
|
default: f(() => [
|
|
12884
12884
|
p(s, {
|
|
12885
12885
|
size: "small",
|
|
@@ -12961,9 +12961,9 @@ function td(t, e, o, i, a, r) {
|
|
|
12961
12961
|
style: { width: "100px" },
|
|
12962
12962
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12963
12963
|
}, "LT", -1)),
|
|
12964
|
-
l("div",
|
|
12964
|
+
l("div", Bm, m(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
12965
12965
|
]),
|
|
12966
|
-
l("div",
|
|
12966
|
+
l("div", Nm, [
|
|
12967
12967
|
l("div", Em, m(t.$t("weather.wind")), 1),
|
|
12968
12968
|
l("div", jm, m(a.currentHourData.windDir ?? "-") + "/" + m(a.currentHourData.windSpeed ?? "-") + "kts/BF" + m(a.currentHourData.windLevel ?? "-"), 1),
|
|
12969
12969
|
l("div", Fm, m(t.$t("weather.sigWave")), 1),
|
|
@@ -12986,7 +12986,7 @@ function td(t, e, o, i, a, r) {
|
|
|
12986
12986
|
_: 1
|
|
12987
12987
|
}),
|
|
12988
12988
|
p(u),
|
|
12989
|
-
p(
|
|
12989
|
+
p(B, { class: "d-flex justify-space-between align-center" }, {
|
|
12990
12990
|
default: f(() => [
|
|
12991
12991
|
o.followList.some((x) => {
|
|
12992
12992
|
var L, _;
|
|
@@ -13159,13 +13159,13 @@ const ad = {
|
|
|
13159
13159
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
13160
13160
|
const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
13161
13161
|
this.pointMarkers[w.id].filter((P) => {
|
|
13162
|
-
var
|
|
13163
|
-
return ((
|
|
13162
|
+
var B;
|
|
13163
|
+
return ((B = P._element) == null ? void 0 : B.id) === e;
|
|
13164
13164
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
13165
13165
|
let g;
|
|
13166
|
-
w.features.forEach((P,
|
|
13166
|
+
w.features.forEach((P, B) => {
|
|
13167
13167
|
if (P.geometry.type === "Point" && P.properties.id === e.split("-")[1]) {
|
|
13168
|
-
g =
|
|
13168
|
+
g = B;
|
|
13169
13169
|
return;
|
|
13170
13170
|
}
|
|
13171
13171
|
});
|
|
@@ -13420,14 +13420,14 @@ function rd(t, e, o, i, a, r) {
|
|
|
13420
13420
|
return y(), S("div", id, [
|
|
13421
13421
|
l("div", {
|
|
13422
13422
|
class: "menu-bar-box transition pa-1",
|
|
13423
|
-
style:
|
|
13423
|
+
style: oe({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
13424
13424
|
}, [
|
|
13425
13425
|
p(c, {
|
|
13426
13426
|
text: t.$t("measure.measure"),
|
|
13427
13427
|
location: "left"
|
|
13428
13428
|
}, {
|
|
13429
13429
|
activator: f(({ props: n }) => [
|
|
13430
|
-
p(s,
|
|
13430
|
+
p(s, N(n, {
|
|
13431
13431
|
"min-width": "32",
|
|
13432
13432
|
width: "32",
|
|
13433
13433
|
height: "32",
|
|
@@ -13581,10 +13581,10 @@ function yd(t, e, o, i, a, r) {
|
|
|
13581
13581
|
return y(), S("div", nd, [
|
|
13582
13582
|
l("div", {
|
|
13583
13583
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13584
|
-
style:
|
|
13584
|
+
style: oe({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
13585
13585
|
}, [
|
|
13586
13586
|
l("div", cd, [
|
|
13587
|
-
p(s,
|
|
13587
|
+
p(s, N({
|
|
13588
13588
|
ref: "dateTimePicker",
|
|
13589
13589
|
"date-time": a.currentDateTimeZ,
|
|
13590
13590
|
"time-zone": a.timeZone,
|
|
@@ -13728,14 +13728,14 @@ function yd(t, e, o, i, a, r) {
|
|
|
13728
13728
|
activator: f(({ props: g }) => {
|
|
13729
13729
|
var k, P;
|
|
13730
13730
|
return [
|
|
13731
|
-
p(b,
|
|
13731
|
+
p(b, N(g, {
|
|
13732
13732
|
class: "pa-1 d-flex",
|
|
13733
13733
|
color: (k = o.weatherCheckList) != null && k.includes("wind") ? "primary" : "",
|
|
13734
13734
|
variant: (P = o.weatherCheckList) != null && P.includes("wind") ? "elevated" : "text",
|
|
13735
13735
|
height: "24",
|
|
13736
13736
|
width: "24",
|
|
13737
13737
|
"min-width": "24",
|
|
13738
|
-
onClick: e[4] || (e[4] = (
|
|
13738
|
+
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("wind"))
|
|
13739
13739
|
}), {
|
|
13740
13740
|
default: f(() => e[15] || (e[15] = [
|
|
13741
13741
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -13754,17 +13754,17 @@ function yd(t, e, o, i, a, r) {
|
|
|
13754
13754
|
activator: f(({ props: g }) => {
|
|
13755
13755
|
var k, P;
|
|
13756
13756
|
return [
|
|
13757
|
-
p(b,
|
|
13757
|
+
p(b, N(g, {
|
|
13758
13758
|
class: "pa-1 d-flex",
|
|
13759
13759
|
color: (k = o.weatherCheckList) != null && k.includes("sig-wave-height") ? "primary" : "",
|
|
13760
13760
|
variant: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "elevated" : "text",
|
|
13761
13761
|
height: "24",
|
|
13762
13762
|
width: "24",
|
|
13763
13763
|
"min-width": "24",
|
|
13764
|
-
onClick: e[5] || (e[5] = (
|
|
13764
|
+
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
13765
13765
|
}), {
|
|
13766
13766
|
default: f(() => [
|
|
13767
|
-
l("i",
|
|
13767
|
+
l("i", N(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13768
13768
|
]),
|
|
13769
13769
|
_: 2
|
|
13770
13770
|
}, 1040, ["color", "variant"])
|
|
@@ -13779,17 +13779,17 @@ function yd(t, e, o, i, a, r) {
|
|
|
13779
13779
|
activator: f(({ props: g }) => {
|
|
13780
13780
|
var k, P;
|
|
13781
13781
|
return [
|
|
13782
|
-
p(b,
|
|
13782
|
+
p(b, N(g, {
|
|
13783
13783
|
class: "pa-1 d-flex",
|
|
13784
13784
|
color: (k = o.weatherCheckList) != null && k.includes("current-direction") ? "primary" : "",
|
|
13785
13785
|
variant: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "elevated" : "text",
|
|
13786
13786
|
height: "24",
|
|
13787
13787
|
width: "24",
|
|
13788
13788
|
"min-width": "24",
|
|
13789
|
-
onClick: e[6] || (e[6] = (
|
|
13789
|
+
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
13790
13790
|
}), {
|
|
13791
13791
|
default: f(() => [
|
|
13792
|
-
l("i",
|
|
13792
|
+
l("i", N(g, { class: "iconfont icon-Current" }), null, 16)
|
|
13793
13793
|
]),
|
|
13794
13794
|
_: 2
|
|
13795
13795
|
}, 1040, ["color", "variant"])
|
|
@@ -13802,7 +13802,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
13802
13802
|
location: "top"
|
|
13803
13803
|
}, {
|
|
13804
13804
|
activator: f(({ props: g }) => [
|
|
13805
|
-
p(b,
|
|
13805
|
+
p(b, N(g, {
|
|
13806
13806
|
class: "pa-1 d-flex",
|
|
13807
13807
|
variant: "text",
|
|
13808
13808
|
height: "24",
|
|
@@ -13811,7 +13811,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
13811
13811
|
onClick: r.handleClickFastMore
|
|
13812
13812
|
}), {
|
|
13813
13813
|
default: f(() => [
|
|
13814
|
-
l("i",
|
|
13814
|
+
l("i", N(g, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13815
13815
|
]),
|
|
13816
13816
|
_: 2
|
|
13817
13817
|
}, 1040, ["onClick"])
|
|
@@ -13855,7 +13855,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
13855
13855
|
], 4),
|
|
13856
13856
|
l("div", {
|
|
13857
13857
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
13858
|
-
style:
|
|
13858
|
+
style: oe({ right: a.right + "px" })
|
|
13859
13859
|
}, [
|
|
13860
13860
|
a.showTimezone ? (y(), S("div", pd, [
|
|
13861
13861
|
(y(!0), S(we, null, _e(a.offsets, (g) => (y(), S("div", {
|
|
@@ -13949,7 +13949,7 @@ const bd = /* @__PURE__ */ q(sd, [["render", yd]]), wd = {
|
|
|
13949
13949
|
function vd(t, e, o, i, a, r) {
|
|
13950
13950
|
const s = v("IdmOtherLayer"), c = v("IdmWeatherLayer"), n = v("IdmTropicals"), u = v("IdmMeasure"), h = v("IdmSpot"), b = v("IdmBottomBar");
|
|
13951
13951
|
return y(), S("div", xd, [
|
|
13952
|
-
p(s,
|
|
13952
|
+
p(s, N({
|
|
13953
13953
|
ref: "idmOtherLayers",
|
|
13954
13954
|
token: o.token,
|
|
13955
13955
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -13964,7 +13964,7 @@ function vd(t, e, o, i, a, r) {
|
|
|
13964
13964
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
13965
13965
|
})
|
|
13966
13966
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13967
|
-
p(c,
|
|
13967
|
+
p(c, N({
|
|
13968
13968
|
ref: "idmWeatherLayers",
|
|
13969
13969
|
map: o.map,
|
|
13970
13970
|
"before-layer": "empty-layer-2",
|
|
@@ -13982,7 +13982,7 @@ function vd(t, e, o, i, a, r) {
|
|
|
13982
13982
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
13983
13983
|
})
|
|
13984
13984
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13985
|
-
p(n,
|
|
13985
|
+
p(n, N({
|
|
13986
13986
|
map: o.map,
|
|
13987
13987
|
token: o.token,
|
|
13988
13988
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -13993,11 +13993,11 @@ function vd(t, e, o, i, a, r) {
|
|
|
13993
13993
|
"forecast-model": o.forecastModel,
|
|
13994
13994
|
"map-feather": o.mapFeather
|
|
13995
13995
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
13996
|
-
p(u,
|
|
13996
|
+
p(u, N({
|
|
13997
13997
|
map: o.map,
|
|
13998
13998
|
"map-feather": o.mapFeather
|
|
13999
13999
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
14000
|
-
p(h,
|
|
14000
|
+
p(h, N({
|
|
14001
14001
|
ref: "idmSpot",
|
|
14002
14002
|
map: o.map,
|
|
14003
14003
|
token: o.token,
|
|
@@ -14006,7 +14006,7 @@ function vd(t, e, o, i, a, r) {
|
|
|
14006
14006
|
"forecast-model": o.forecastModel,
|
|
14007
14007
|
"map-feather": o.mapFeather
|
|
14008
14008
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
14009
|
-
p(b,
|
|
14009
|
+
p(b, N({
|
|
14010
14010
|
ref: "idmBottomBar",
|
|
14011
14011
|
"forecast-model": o.forecastModel,
|
|
14012
14012
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -14023,7 +14023,7 @@ class kd {
|
|
|
14023
14023
|
he(this, "hi");
|
|
14024
14024
|
he(this, "td");
|
|
14025
14025
|
he(this, "windy");
|
|
14026
|
-
var o, i, a, r, s, c, n, u, h, b, w, z, g, k, P,
|
|
14026
|
+
var o, i, a, r, s, c, n, u, h, b, w, z, g, k, P, B, I, C, M, x, L, _, D, F, V, Y, Z, J, Q, K, le, se, pe, ie, ce, ue, me, de, A, ee, ye, xe, Le, Pe, ve, Me, Ce, U, te, Fe, Ae, ge, Ie, W, fe, ae, re, Be, He, Ue, E, be, Re, Ne, Ee, j, We, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo, Zo, Yo, qo, Xo, Ko, $o, Jo, Qo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va;
|
|
14027
14027
|
this.i4 = {
|
|
14028
14028
|
source: {
|
|
14029
14029
|
type: "raster",
|
|
@@ -32671,7 +32671,7 @@ class kd {
|
|
|
32671
32671
|
(b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
|
|
32672
32672
|
(z = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : z.find((d) => d.id === "loadlines-fill"),
|
|
32673
32673
|
(k = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : k.find((d) => d.id === "empty-layer-0"),
|
|
32674
|
-
(
|
|
32674
|
+
(B = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : B.find((d) => d.id === "empty-layer-1"),
|
|
32675
32675
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((d) => d.id === "country-boundaries"),
|
|
32676
32676
|
(x = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : x.find((d) => d.id === "water-outline"),
|
|
32677
32677
|
(_ = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : _.find((d) => d.id === "water-outline2"),
|
|
@@ -32691,7 +32691,7 @@ class kd {
|
|
|
32691
32691
|
(Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((d) => d.id === "continent-label"),
|
|
32692
32692
|
(ge = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ge.find((d) => d.id === "tide-stations"),
|
|
32693
32693
|
(W = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : W.find((d) => d.id === "empty-layer-3"),
|
|
32694
|
-
(
|
|
32694
|
+
(ae = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ae.find((d) => d.id === "empty-layer-4")
|
|
32695
32695
|
]
|
|
32696
32696
|
},
|
|
32697
32697
|
dark: {
|
|
@@ -32706,7 +32706,7 @@ class kd {
|
|
|
32706
32706
|
fog: {
|
|
32707
32707
|
range: [0.5, 10]
|
|
32708
32708
|
},
|
|
32709
|
-
sources: (
|
|
32709
|
+
sources: (Be = this.originStyle) == null ? void 0 : Be.dark.sources,
|
|
32710
32710
|
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
32711
32711
|
glyphs: (Ue = this.originStyle) == null ? void 0 : Ue.dark.glyphs,
|
|
32712
32712
|
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
@@ -32717,7 +32717,7 @@ class kd {
|
|
|
32717
32717
|
draft: !1,
|
|
32718
32718
|
layers: [
|
|
32719
32719
|
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((d) => d.id === "land"),
|
|
32720
|
-
(Ee = (
|
|
32720
|
+
(Ee = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "water"),
|
|
32721
32721
|
(We = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : We.find((d) => d.id === "ice-area-fill"),
|
|
32722
32722
|
(qe = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : qe.find((d) => d.id === "ice-area-line"),
|
|
32723
32723
|
(Ke = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-label"),
|
|
@@ -32741,7 +32741,7 @@ class kd {
|
|
|
32741
32741
|
(It = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : It.find((d) => d.id === "country-label"),
|
|
32742
32742
|
(At = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : At.find((d) => d.id === "continent-label"),
|
|
32743
32743
|
(Ot = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : Ot.find((d) => d.id === "tide-stations"),
|
|
32744
|
-
(
|
|
32744
|
+
(Nt = (Bt = this.originStyle) == null ? void 0 : Bt.dark.layers) == null ? void 0 : Nt.find((d) => d.id === "empty-layer-3"),
|
|
32745
32745
|
(jt = (Et = this.originStyle) == null ? void 0 : Et.dark.layers) == null ? void 0 : jt.find((d) => d.id === "empty-layer-4")
|
|
32746
32746
|
]
|
|
32747
32747
|
},
|
|
@@ -32781,7 +32781,7 @@ class kd {
|
|
|
32781
32781
|
(_o = (vo = this.originStyle) == null ? void 0 : vo.satellite.layers) == null ? void 0 : _o.find((d) => d.id === "china-route-fill"),
|
|
32782
32782
|
(zo = (ko = this.originStyle) == null ? void 0 : ko.satellite.layers) == null ? void 0 : zo.find((d) => d.id === "china-route-label"),
|
|
32783
32783
|
(Oo = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Oo.find((d) => d.id === "country-label"),
|
|
32784
|
-
(
|
|
32784
|
+
(No = (Bo = this.originStyle) == null ? void 0 : Bo.satellite.layers) == null ? void 0 : No.find((d) => d.id === "continent-label"),
|
|
32785
32785
|
(jo = (Eo = this.originStyle) == null ? void 0 : Eo.satellite.layers) == null ? void 0 : jo.find((d) => d.id === "tide-stations"),
|
|
32786
32786
|
(Ho = (Fo = this.originStyle) == null ? void 0 : Fo.satellite.layers) == null ? void 0 : Ho.find((d) => d.id === "ice-area-fill"),
|
|
32787
32787
|
(Wo = (Uo = this.originStyle) == null ? void 0 : Uo.satellite.layers) == null ? void 0 : Wo.find((d) => d.id === "ice-area-line"),
|
|
@@ -32870,7 +32870,7 @@ class kd {
|
|
|
32870
32870
|
(Ia = (Ma = this.originStyle) == null ? void 0 : Ma.light.layers) == null ? void 0 : Ia.find((d) => d.id === "admin-0-boundary-bg"),
|
|
32871
32871
|
(Aa = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Aa.find((d) => d.id === "admin-0-boundary"),
|
|
32872
32872
|
(Oa = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Oa.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
32873
|
-
(
|
|
32873
|
+
(Na = (Ba = this.originStyle) == null ? void 0 : Ba.light.layers) == null ? void 0 : Na.find((d) => d.id === "country-label"),
|
|
32874
32874
|
(ja = (Ea = this.originStyle) == null ? void 0 : Ea.light.layers) == null ? void 0 : ja.find((d) => d.id === "continent-label"),
|
|
32875
32875
|
(Ha = (Fa = this.originStyle) == null ? void 0 : Fa.light.layers) == null ? void 0 : Ha.find((d) => d.id === "tide-stations"),
|
|
32876
32876
|
(Wa = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Wa.find((d) => d.id === "empty-layer-3"),
|
|
@@ -32887,10 +32887,22 @@ const zd = {
|
|
|
32887
32887
|
type: String,
|
|
32888
32888
|
default: ""
|
|
32889
32889
|
},
|
|
32890
|
+
height: {
|
|
32891
|
+
type: String,
|
|
32892
|
+
default: "100vh"
|
|
32893
|
+
},
|
|
32894
|
+
width: {
|
|
32895
|
+
type: String,
|
|
32896
|
+
default: "100vw"
|
|
32897
|
+
},
|
|
32890
32898
|
top: {
|
|
32891
32899
|
type: Number,
|
|
32892
32900
|
default: 60
|
|
32893
32901
|
},
|
|
32902
|
+
simplify: {
|
|
32903
|
+
type: Boolean,
|
|
32904
|
+
default: !1
|
|
32905
|
+
},
|
|
32894
32906
|
mapFeather: {
|
|
32895
32907
|
type: String
|
|
32896
32908
|
},
|
|
@@ -32982,16 +32994,23 @@ const zd = {
|
|
|
32982
32994
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
32983
32995
|
}
|
|
32984
32996
|
}
|
|
32985
|
-
}, Ld = { class: "
|
|
32986
|
-
|
|
32997
|
+
}, Ld = { class: "v-btn--variant-elevated rounded" }, Pd = { class: "zoom" }, Cd = {
|
|
32998
|
+
key: 1,
|
|
32999
|
+
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
33000
|
+
};
|
|
33001
|
+
function Td(t, e, o, i, a, r) {
|
|
32987
33002
|
const s = v("VBtn");
|
|
32988
|
-
return y(), S("div",
|
|
33003
|
+
return y(), S("div", {
|
|
33004
|
+
class: "mapbox-initial-gl4",
|
|
33005
|
+
style: oe({ height: o.height, width: o.width })
|
|
33006
|
+
}, [
|
|
32989
33007
|
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
32990
|
-
|
|
33008
|
+
o.simplify ? R("", !0) : (y(), S("div", {
|
|
33009
|
+
key: 0,
|
|
32991
33010
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
32992
|
-
style:
|
|
33011
|
+
style: oe({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
32993
33012
|
}, [
|
|
32994
|
-
l("div",
|
|
33013
|
+
l("div", Ld, [
|
|
32995
33014
|
p(s, {
|
|
32996
33015
|
"min-width": "32",
|
|
32997
33016
|
width: "32",
|
|
@@ -33005,7 +33024,7 @@ function Sd(t, e, o, i, a, r) {
|
|
|
33005
33024
|
_: 1,
|
|
33006
33025
|
__: [0]
|
|
33007
33026
|
}, 8, ["onClick"]),
|
|
33008
|
-
l("div",
|
|
33027
|
+
l("div", Pd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
33009
33028
|
p(s, {
|
|
33010
33029
|
"min-width": "32",
|
|
33011
33030
|
width: "32",
|
|
@@ -33020,8 +33039,8 @@ function Sd(t, e, o, i, a, r) {
|
|
|
33020
33039
|
__: [1]
|
|
33021
33040
|
}, 8, ["onClick"])
|
|
33022
33041
|
])
|
|
33023
|
-
], 4),
|
|
33024
|
-
|
|
33042
|
+
], 4)),
|
|
33043
|
+
o.simplify ? R("", !0) : (y(), S("div", Cd, [
|
|
33025
33044
|
e[2] || (e[2] = l("span", null, "© 2023", -1)),
|
|
33026
33045
|
l("span", null, "-" + m(r.computeYear), 1),
|
|
33027
33046
|
e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -33030,21 +33049,21 @@ function Sd(t, e, o, i, a, r) {
|
|
|
33030
33049
|
href: "https://beian.miit.gov.cn/",
|
|
33031
33050
|
target: "_blank"
|
|
33032
33051
|
}, "沪ICP备18039043号-6", -1))
|
|
33033
|
-
])
|
|
33034
|
-
]);
|
|
33052
|
+
]))
|
|
33053
|
+
], 4);
|
|
33035
33054
|
}
|
|
33036
|
-
const
|
|
33055
|
+
const Sd = /* @__PURE__ */ q(zd, [["render", Td]]), Hd = {
|
|
33037
33056
|
install(t) {
|
|
33038
|
-
t.component("MapInitial",
|
|
33057
|
+
t.component("MapInitial", Sd), t.component("MapboxGL", _d), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", Ao), t.component("DateRangePicker", Ka), t.component("PortDetail", Io);
|
|
33039
33058
|
}
|
|
33040
33059
|
};
|
|
33041
33060
|
export {
|
|
33042
33061
|
Ka as DateRangePicker,
|
|
33043
33062
|
Ao as DateTimePicker,
|
|
33044
33063
|
qa as LatLngGL,
|
|
33045
|
-
|
|
33064
|
+
Sd as MapInitial,
|
|
33046
33065
|
_d as MapboxGL,
|
|
33047
|
-
|
|
33066
|
+
Hd as MapboxGLPlugin,
|
|
33048
33067
|
Te as ParticleSchema,
|
|
33049
33068
|
Io as PortDetail,
|
|
33050
33069
|
Xa as TropicalGL,
|