@idmwx/idmui-gl4 1.1.0 → 1.1.1
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 +989 -1015
- package/dist/index.umd.cjs +15 -15
- package/dist/mapbox/src/components/other/index.vue.d.ts +5 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var qa = Object.defineProperty;
|
|
2
2
|
var Xa = (t, e, o) => e in t ? qa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
3
|
var se = (t, e, o) => (Xa(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
import
|
|
4
|
+
import Ee from "axios";
|
|
5
5
|
import { useTheme as Le } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as w, withDirectives as He, createBlock as B, withCtx as p, createVNode as d, withModifiers as io, createElementVNode as l, vShow as We, toDisplayString as b, Fragment as be, renderList as we, createTextVNode as U, createCommentVNode as E, normalizeStyle as ae, mergeProps as j, normalizeClass as Ue } from "vue";
|
|
7
7
|
import xe from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as K, TropicalHelper as Ua, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import I from "moment";
|
|
@@ -493,24 +493,24 @@ const ci = {
|
|
|
493
493
|
}
|
|
494
494
|
}, mi = ["innerHTML"];
|
|
495
495
|
function di(t, e, o, i, a, r) {
|
|
496
|
-
const s =
|
|
497
|
-
return He((y(), B(
|
|
496
|
+
const s = w("VBtn"), c = w("v-card-text"), n = w("v-card");
|
|
497
|
+
return He((y(), B(n, {
|
|
498
498
|
class: "scroll",
|
|
499
499
|
id: "idm-gl4-zone-info"
|
|
500
500
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
503
|
-
default:
|
|
504
|
-
var
|
|
501
|
+
default: p(() => [
|
|
502
|
+
d(c, null, {
|
|
503
|
+
default: p(() => {
|
|
504
|
+
var u;
|
|
505
505
|
return [
|
|
506
|
-
|
|
506
|
+
d(s, {
|
|
507
507
|
icon: "",
|
|
508
508
|
density: "compact",
|
|
509
509
|
variant: "plain",
|
|
510
510
|
class: "close",
|
|
511
|
-
onClick: e[0] || (e[0] = io((
|
|
511
|
+
onClick: e[0] || (e[0] = io((h) => a.showZone = !1, ["stop"]))
|
|
512
512
|
}, {
|
|
513
|
-
default:
|
|
513
|
+
default: p(() => e[1] || (e[1] = [
|
|
514
514
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
515
515
|
])),
|
|
516
516
|
_: 1,
|
|
@@ -518,7 +518,7 @@ function di(t, e, o, i, a, r) {
|
|
|
518
518
|
}),
|
|
519
519
|
l("div", {
|
|
520
520
|
class: "rich-context",
|
|
521
|
-
innerHTML: (
|
|
521
|
+
innerHTML: (u = a.form) == null ? void 0 : u.name
|
|
522
522
|
}, null, 8, mi)
|
|
523
523
|
];
|
|
524
524
|
}),
|
|
@@ -645,14 +645,14 @@ const pi = {
|
|
|
645
645
|
}
|
|
646
646
|
}, ui = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, gi = { class: "d-flex justify-start align-center text-label" }, fi = { class: "d-flex justify-start align-center text-label" };
|
|
647
647
|
function yi(t, e, o, i, a, r) {
|
|
648
|
-
const s =
|
|
649
|
-
return He((y(), B(
|
|
648
|
+
const s = w("VCardText"), c = w("VCard");
|
|
649
|
+
return He((y(), B(c, {
|
|
650
650
|
id: "idmPortInfo",
|
|
651
651
|
ref: "idmPortInfo"
|
|
652
652
|
}, {
|
|
653
|
-
default:
|
|
654
|
-
|
|
655
|
-
default:
|
|
653
|
+
default: p(() => [
|
|
654
|
+
d(s, { class: "text-body-1 pr-8" }, {
|
|
655
|
+
default: p(() => [
|
|
656
656
|
l("div", ui, [
|
|
657
657
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
658
658
|
l("div", gi, [
|
|
@@ -1344,16 +1344,16 @@ const Ui = {
|
|
|
1344
1344
|
var o, i, a, r;
|
|
1345
1345
|
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? K.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
1346
1346
|
for (let s = 0; s < 4; s++) {
|
|
1347
|
-
let
|
|
1347
|
+
let c = {
|
|
1348
1348
|
index: s,
|
|
1349
1349
|
dateTimeList: [],
|
|
1350
1350
|
label: I().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
1351
1351
|
startTime: I().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1352
1352
|
dateTime: I().utcOffset(e).add(s, "days").format()
|
|
1353
1353
|
};
|
|
1354
|
-
for (let
|
|
1355
|
-
|
|
1356
|
-
t.push(
|
|
1354
|
+
for (let n = 0; n < 4; n++)
|
|
1355
|
+
c.dateTimeList.push(I(c.startTime).utcOffset(e).add(n * 3, "hours").utc().format());
|
|
1356
|
+
t.push(c);
|
|
1357
1357
|
}
|
|
1358
1358
|
return t;
|
|
1359
1359
|
},
|
|
@@ -1467,7 +1467,7 @@ const Ui = {
|
|
|
1467
1467
|
forecastDays: 5,
|
|
1468
1468
|
extremes: !0,
|
|
1469
1469
|
heights: !0
|
|
1470
|
-
}, e = await
|
|
1470
|
+
}, e = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, t, {
|
|
1471
1471
|
headers: {
|
|
1472
1472
|
Authorization: this.token
|
|
1473
1473
|
}
|
|
@@ -1608,18 +1608,18 @@ const Ui = {
|
|
|
1608
1608
|
width: "120"
|
|
1609
1609
|
};
|
|
1610
1610
|
function _r(t, e, o, i, a, r) {
|
|
1611
|
-
const s =
|
|
1611
|
+
const s = w("v-card-text"), c = w("v-card"), n = w("VBtn"), u = w("v-card-title"), h = w("v-divider"), g = w("VBtnToggle");
|
|
1612
1612
|
return y(), M("div", null, [
|
|
1613
|
-
He(
|
|
1614
|
-
default:
|
|
1615
|
-
|
|
1616
|
-
default:
|
|
1617
|
-
var f,
|
|
1613
|
+
He(d(c, { id: "idmTidalInfo" }, {
|
|
1614
|
+
default: p(() => [
|
|
1615
|
+
d(s, { class: "pr-8 text-body-1" }, {
|
|
1616
|
+
default: p(() => {
|
|
1617
|
+
var f, L;
|
|
1618
1618
|
return [
|
|
1619
1619
|
l("div", Gi, [
|
|
1620
1620
|
e[2] || (e[2] = l("div", { class: "d-flex justify-start align-center" }, "Tide Station ", -1)),
|
|
1621
1621
|
l("div", Vi, [
|
|
1622
|
-
l("label", Zi, b((f = a.hoverStation) == null ? void 0 : f.name) + " , " + b(((
|
|
1622
|
+
l("label", Zi, b((f = a.hoverStation) == null ? void 0 : f.name) + " , " + b(((L = a.hoverStation) == null ? void 0 : L.Country) || "-"), 1)
|
|
1623
1623
|
])
|
|
1624
1624
|
])
|
|
1625
1625
|
];
|
|
@@ -1631,29 +1631,29 @@ function _r(t, e, o, i, a, r) {
|
|
|
1631
1631
|
}, 512), [
|
|
1632
1632
|
[We, a.showInfo]
|
|
1633
1633
|
]),
|
|
1634
|
-
a.showDetail ? (y(), B(
|
|
1634
|
+
a.showDetail ? (y(), B(c, {
|
|
1635
1635
|
key: 0,
|
|
1636
1636
|
class: "tide-detail-container d-flex flex-column justify-start align-center"
|
|
1637
1637
|
}, {
|
|
1638
|
-
default:
|
|
1639
|
-
var f,
|
|
1638
|
+
default: p(() => {
|
|
1639
|
+
var f, L, _, T;
|
|
1640
1640
|
return [
|
|
1641
|
-
|
|
1642
|
-
default:
|
|
1643
|
-
var
|
|
1641
|
+
d(u, { class: "w-100" }, {
|
|
1642
|
+
default: p(() => {
|
|
1643
|
+
var x;
|
|
1644
1644
|
return [
|
|
1645
1645
|
l("div", Yi, [
|
|
1646
1646
|
l("div", qi, [
|
|
1647
|
-
l("div", null, b((
|
|
1647
|
+
l("div", null, b((x = a.station) == null ? void 0 : x.name), 1)
|
|
1648
1648
|
]),
|
|
1649
|
-
|
|
1649
|
+
d(n, {
|
|
1650
1650
|
icon: "",
|
|
1651
1651
|
density: "compact",
|
|
1652
1652
|
variant: "plain",
|
|
1653
1653
|
class: "mr-n2",
|
|
1654
1654
|
onClick: e[0] || (e[0] = (D) => a.showDetail = !1)
|
|
1655
1655
|
}, {
|
|
1656
|
-
default:
|
|
1656
|
+
default: p(() => e[3] || (e[3] = [
|
|
1657
1657
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
1658
1658
|
])),
|
|
1659
1659
|
_: 1,
|
|
@@ -1668,7 +1668,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1668
1668
|
_: 1,
|
|
1669
1669
|
__: [4]
|
|
1670
1670
|
}),
|
|
1671
|
-
h
|
|
1671
|
+
d(h, { class: "w-100" }),
|
|
1672
1672
|
l("div", Xi, [
|
|
1673
1673
|
l("div", Ki, [
|
|
1674
1674
|
l("div", Qi, [
|
|
@@ -1685,11 +1685,11 @@ function _r(t, e, o, i, a, r) {
|
|
|
1685
1685
|
l("div", tr, [
|
|
1686
1686
|
l("div", or, [
|
|
1687
1687
|
l("div", ar, b(t.$t("tide.region")), 1),
|
|
1688
|
-
l("div", ir, b(((f = a.station) == null ? void 0 : f.Country) ?? ((
|
|
1688
|
+
l("div", ir, b(((f = a.station) == null ? void 0 : f.Country) ?? ((L = a.station) == null ? void 0 : L.city) ?? "-"), 1)
|
|
1689
1689
|
]),
|
|
1690
1690
|
l("div", rr, [
|
|
1691
1691
|
l("div", lr, b(t.$t("tide.position")), 1),
|
|
1692
|
-
l("div", sr, b(r.computeLng((
|
|
1692
|
+
l("div", sr, b(r.computeLng((_ = a.station) == null ? void 0 : _.lng) ?? "-") + " , " + b(r.computeLat((T = a.station) == null ? void 0 : T.lat) ?? "-"), 1)
|
|
1693
1693
|
]),
|
|
1694
1694
|
l("div", nr, [
|
|
1695
1695
|
l("div", cr, b(t.$t("time.localTime")), 1),
|
|
@@ -1710,9 +1710,9 @@ function _r(t, e, o, i, a, r) {
|
|
|
1710
1710
|
e[8] || (e[8] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1711
1711
|
]),
|
|
1712
1712
|
l("div", fr, [
|
|
1713
|
-
|
|
1713
|
+
d(g, {
|
|
1714
1714
|
modelValue: a.currentIndex,
|
|
1715
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1715
|
+
"onUpdate:modelValue": e[1] || (e[1] = (x) => a.currentIndex = x),
|
|
1716
1716
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1717
1717
|
density: "compact",
|
|
1718
1718
|
group: "",
|
|
@@ -1720,16 +1720,16 @@ function _r(t, e, o, i, a, r) {
|
|
|
1720
1720
|
"min-height": "26",
|
|
1721
1721
|
rounded: "1"
|
|
1722
1722
|
}, {
|
|
1723
|
-
default:
|
|
1724
|
-
(y(!0), M(be, null, we(r.dateList, (
|
|
1723
|
+
default: p(() => [
|
|
1724
|
+
(y(!0), M(be, null, we(r.dateList, (x) => (y(), B(n, {
|
|
1725
1725
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1726
1726
|
density: "compact",
|
|
1727
1727
|
color: "primary",
|
|
1728
1728
|
height: "26",
|
|
1729
|
-
value:
|
|
1729
|
+
value: x.index
|
|
1730
1730
|
}, {
|
|
1731
|
-
default:
|
|
1732
|
-
U(b(
|
|
1731
|
+
default: p(() => [
|
|
1732
|
+
U(b(x.label), 1)
|
|
1733
1733
|
]),
|
|
1734
1734
|
_: 2
|
|
1735
1735
|
}, 1032, ["value"]))), 256))
|
|
@@ -1741,27 +1741,27 @@ function _r(t, e, o, i, a, r) {
|
|
|
1741
1741
|
l("tbody", null, [
|
|
1742
1742
|
l("tr", null, [
|
|
1743
1743
|
l("th", wr, b(t.$t("tide.tide")) + " ( m )", 1),
|
|
1744
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1744
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => {
|
|
1745
1745
|
var S;
|
|
1746
1746
|
return y(), M("td", {
|
|
1747
|
-
key:
|
|
1747
|
+
key: x.type + "-" + D,
|
|
1748
1748
|
class: "px-1 text-center"
|
|
1749
|
-
}, b(t.$t(`tide.${(S =
|
|
1749
|
+
}, b(t.$t(`tide.${(S = x == null ? void 0 : x.type) == null ? void 0 : S.toLowerCase()}`)), 1);
|
|
1750
1750
|
}), 128))
|
|
1751
1751
|
]),
|
|
1752
1752
|
l("tr", null, [
|
|
1753
1753
|
l("th", xr, b(t.$t("tide.datum")), 1),
|
|
1754
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1755
|
-
key:
|
|
1754
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => (y(), M("td", {
|
|
1755
|
+
key: x.date + "-" + D,
|
|
1756
1756
|
class: "px-1 text-center"
|
|
1757
|
-
}, b(r.computeHourLT(
|
|
1757
|
+
}, b(r.computeHourLT(x == null ? void 0 : x.date, a.station)) + " LT", 1))), 128))
|
|
1758
1758
|
]),
|
|
1759
1759
|
l("tr", null, [
|
|
1760
1760
|
l("th", vr, b(t.$t("tide.chartDatum")), 1),
|
|
1761
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1762
|
-
key:
|
|
1761
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => (y(), M("td", {
|
|
1762
|
+
key: x.height + "-" + D,
|
|
1763
1763
|
class: "px-1 text-center"
|
|
1764
|
-
}, b((
|
|
1764
|
+
}, b((x == null ? void 0 : x.height) ?? "-") + " m", 1))), 128))
|
|
1765
1765
|
])
|
|
1766
1766
|
])
|
|
1767
1767
|
])
|
|
@@ -1986,14 +1986,14 @@ const Cr = {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
};
|
|
1988
1988
|
function Tr(t, e, o, i, a, r) {
|
|
1989
|
-
var s,
|
|
1989
|
+
var s, c, n;
|
|
1990
1990
|
return y(), M("div", {
|
|
1991
1991
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1992
1992
|
style: ae({ right: a.right + "px" })
|
|
1993
1993
|
}, [
|
|
1994
1994
|
l("div", null, b((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1995
|
-
l("div", null, b((
|
|
1996
|
-
l("div", null, b((
|
|
1995
|
+
l("div", null, b((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
1996
|
+
l("div", null, b((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
1997
1997
|
], 4);
|
|
1998
1998
|
}
|
|
1999
1999
|
const Za = /* @__PURE__ */ V(Cr, [["render", Tr]]);
|
|
@@ -2910,14 +2910,14 @@ const Sr = {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
}, Mr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ir = { class: "d-flex justify-start align-center text-label" }, Ar = { class: "d-flex justify-start align-center text-label" };
|
|
2912
2912
|
function Dr(t, e, o, i, a, r) {
|
|
2913
|
-
const s =
|
|
2914
|
-
return He((y(), B(
|
|
2913
|
+
const s = w("v-card-text"), c = w("v-card");
|
|
2914
|
+
return He((y(), B(c, {
|
|
2915
2915
|
id: "idmFollowPortInfo",
|
|
2916
2916
|
ref: "idmFollowPortInfo"
|
|
2917
2917
|
}, {
|
|
2918
|
-
default:
|
|
2919
|
-
|
|
2920
|
-
default:
|
|
2918
|
+
default: p(() => [
|
|
2919
|
+
d(s, { class: "text-body-1 pr-8" }, {
|
|
2920
|
+
default: p(() => [
|
|
2921
2921
|
l("div", Mr, [
|
|
2922
2922
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
2923
2923
|
l("div", Ir, [
|
|
@@ -3824,18 +3824,18 @@ const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-98bcf2a1
|
|
|
3824
3824
|
this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
|
|
3825
3825
|
},
|
|
3826
3826
|
handleClick(t) {
|
|
3827
|
-
var o, i, a, r, s,
|
|
3827
|
+
var o, i, a, r, s, c, n, u, h;
|
|
3828
3828
|
const e = t.features[0];
|
|
3829
3829
|
if (e.properties) {
|
|
3830
|
-
const
|
|
3831
|
-
|
|
3832
|
-
const f = I(),
|
|
3833
|
-
lat:
|
|
3834
|
-
lng:
|
|
3830
|
+
const g = e.properties;
|
|
3831
|
+
g.lng = e.geometry.coordinates[0], g.lat = e.geometry.coordinates[1], console.log("point", g);
|
|
3832
|
+
const f = I(), L = (o = I(this.realTime)) == null ? void 0 : o.diff(f, "d", !0), _ = {
|
|
3833
|
+
lat: g.lat,
|
|
3834
|
+
lng: g.lng,
|
|
3835
3835
|
datetime: this.realTime,
|
|
3836
3836
|
forecastModel: this.forecastModel
|
|
3837
3837
|
};
|
|
3838
|
-
|
|
3838
|
+
L >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(_) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(_);
|
|
3839
3839
|
}
|
|
3840
3840
|
},
|
|
3841
3841
|
handleHover() {
|
|
@@ -3949,12 +3949,6 @@ const jr = {
|
|
|
3949
3949
|
}
|
|
3950
3950
|
},
|
|
3951
3951
|
watch: {
|
|
3952
|
-
isLogin: {
|
|
3953
|
-
handler() {
|
|
3954
|
-
this.isLogin && this.fetchOtherLayers();
|
|
3955
|
-
},
|
|
3956
|
-
immediate: !0
|
|
3957
|
-
},
|
|
3958
3952
|
"menuToggle.v": {
|
|
3959
3953
|
handler() {
|
|
3960
3954
|
this.toggle = this.menuToggle.otherLayers, this.$nextTick(() => {
|
|
@@ -3964,6 +3958,11 @@ const jr = {
|
|
|
3964
3958
|
},
|
|
3965
3959
|
immediate: !0
|
|
3966
3960
|
},
|
|
3961
|
+
realTime: {
|
|
3962
|
+
handler(t, e) {
|
|
3963
|
+
t && e && t !== e && this.checkList.includes("day-night") && this.fetchDayNightLayer();
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3967
3966
|
theme: {
|
|
3968
3967
|
handler() {
|
|
3969
3968
|
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
|
|
@@ -4008,62 +4007,46 @@ const jr = {
|
|
|
4008
4007
|
handleToggleMapFeather(t) {
|
|
4009
4008
|
this.$emit("map", void 0), this.mapFeather = t.value;
|
|
4010
4009
|
},
|
|
4011
|
-
async fetchOtherLayers(
|
|
4012
|
-
var
|
|
4013
|
-
let
|
|
4014
|
-
if (
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
Authorization: this.token || this.defaultMeteoToken
|
|
4019
|
-
}
|
|
4020
|
-
});
|
|
4021
|
-
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
4022
|
-
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, g = [];
|
|
4023
|
-
for (const d in c)
|
|
4024
|
-
g.push(
|
|
4025
|
-
Se.get(c[d], {
|
|
4026
|
-
headers: {
|
|
4027
|
-
Authorization: this.token || this.defaultMeteoToken,
|
|
4028
|
-
key: d
|
|
4029
|
-
}
|
|
4030
|
-
})
|
|
4031
|
-
);
|
|
4032
|
-
(await Promise.all(g)).map((d) => {
|
|
4033
|
-
var v, T, w;
|
|
4034
|
-
const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), k = (w = (T = d == null ? void 0 : d.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4035
|
-
this.otherLayers[k] = f;
|
|
4036
|
-
});
|
|
4010
|
+
async fetchOtherLayers() {
|
|
4011
|
+
var e, o;
|
|
4012
|
+
let t = this.layerWeight;
|
|
4013
|
+
if (t) {
|
|
4014
|
+
const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], a = await Ee.get(`${i}/api/arc/other/layers/links?l=${t}&t=${this.realTime}`, {
|
|
4015
|
+
headers: {
|
|
4016
|
+
Authorization: this.token || this.defaultMeteoToken
|
|
4037
4017
|
}
|
|
4038
|
-
}
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4018
|
+
});
|
|
4019
|
+
if (((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 0) {
|
|
4020
|
+
const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, s = [];
|
|
4021
|
+
for (const n in r)
|
|
4022
|
+
s.push(
|
|
4023
|
+
Ee.get(r[n], {
|
|
4024
|
+
headers: {
|
|
4025
|
+
Authorization: this.token || this.defaultMeteoToken,
|
|
4026
|
+
key: n
|
|
4027
|
+
}
|
|
4028
|
+
})
|
|
4029
|
+
);
|
|
4030
|
+
(await Promise.all(s)).map((n) => {
|
|
4031
|
+
var g, f, L;
|
|
4032
|
+
const u = ((g = n == null ? void 0 : n.data) == null ? void 0 : g.data) || (n == null ? void 0 : n.data), h = (L = (f = n == null ? void 0 : n.config) == null ? void 0 : f.headers) == null ? void 0 : L.key;
|
|
4033
|
+
this.otherLayers[h] = u;
|
|
4043
4034
|
});
|
|
4044
|
-
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
4045
|
-
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, g = [];
|
|
4046
|
-
for (const d in c)
|
|
4047
|
-
g.push(
|
|
4048
|
-
Se.get(c[d], {
|
|
4049
|
-
headers: {
|
|
4050
|
-
Authorization: this.token || this.defaultMeteoToken,
|
|
4051
|
-
key: d
|
|
4052
|
-
}
|
|
4053
|
-
})
|
|
4054
|
-
);
|
|
4055
|
-
(await Promise.all(g)).map((d) => {
|
|
4056
|
-
var v, T, w;
|
|
4057
|
-
const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), k = (w = (T = d == null ? void 0 : d.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4058
|
-
this.otherLayers[k] = f;
|
|
4059
|
-
});
|
|
4060
|
-
}
|
|
4061
4035
|
}
|
|
4062
4036
|
}
|
|
4063
4037
|
},
|
|
4038
|
+
async fetchDayNightLayer() {
|
|
4039
|
+
var o, i;
|
|
4040
|
+
const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await Ee.get(`${t}/api/arc/other/layers/links?l=1024&t=${this.realTime}`, {
|
|
4041
|
+
headers: {
|
|
4042
|
+
Authorization: this.token || this.defaultMeteoToken
|
|
4043
|
+
}
|
|
4044
|
+
});
|
|
4045
|
+
((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) === 0 && (this.otherLayers["day-night"] = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || (e == null ? void 0 : e.data));
|
|
4046
|
+
},
|
|
4064
4047
|
handleLayersChange(t) {
|
|
4065
4048
|
const e = t == null ? void 0 : t.reduce((o, i) => o + (i == null ? void 0 : i.weight), 0);
|
|
4066
|
-
this.layerWeight = e, this.fetchOtherLayers(
|
|
4049
|
+
this.layerWeight = e, this.fetchOtherLayers();
|
|
4067
4050
|
}
|
|
4068
4051
|
}
|
|
4069
4052
|
}, Nr = { class: "idm-gl4-other-layer" }, Fr = { class: "header-box d-flex justify-space-between align-center px-4" }, Hr = { class: "text-h5 font-weight-medium" }, Wr = { class: "list-box scroll pl-4 pr-2 overflow-y-auto" }, Ur = { class: "layers-body mt-4 d-flex justify-start align-center flex-wrap" }, Gr = ["onClick"], Vr = {
|
|
@@ -4085,25 +4068,25 @@ const jr = {
|
|
|
4085
4068
|
}, Xr = { class: "text-body-2 text-center pt-1" };
|
|
4086
4069
|
function Kr(t, e, o, i, a, r) {
|
|
4087
4070
|
var J, le, pe, ue, ce, Q, ie, ge, me;
|
|
4088
|
-
const s =
|
|
4071
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), g = w("VCardText"), f = w("VCard"), L = w("IdmLatLng"), _ = w("IdmTerminator"), T = w("IdmTimezone"), x = w("IdmPort"), D = w("IdmAlertZone"), S = w("IdmTideStations"), P = w("IdmEcaZone"), k = w("IdmWarZone"), z = w("IdmGmdssArea"), C = w("IdmLoadLine"), v = w("IdmWorldMarine"), A = w("IdmVRA"), Z = w("IdmSpecialArea"), q = w("IdmWorld12nm"), X = w("IdmChinaRoute"), Y = w("IdmIceAreas"), te = w("IdmFollowPort"), oe = w("IdmFollowPosition");
|
|
4089
4072
|
return y(), M("div", Nr, [
|
|
4090
4073
|
l("div", {
|
|
4091
4074
|
class: "menu-bar-box transition px-1 rounded",
|
|
4092
4075
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4093
4076
|
}, [
|
|
4094
|
-
|
|
4077
|
+
d(c, {
|
|
4095
4078
|
text: t.$t("layer.mapLayers"),
|
|
4096
4079
|
location: "left"
|
|
4097
4080
|
}, {
|
|
4098
|
-
activator:
|
|
4099
|
-
|
|
4081
|
+
activator: p(({ props: F }) => [
|
|
4082
|
+
d(s, j(F, {
|
|
4100
4083
|
"min-width": "32",
|
|
4101
4084
|
width: "32",
|
|
4102
4085
|
height: "32",
|
|
4103
4086
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
4104
4087
|
onClick: r.handleMenuToggle
|
|
4105
4088
|
}), {
|
|
4106
|
-
default:
|
|
4089
|
+
default: p(() => e[5] || (e[5] = [
|
|
4107
4090
|
l("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
|
|
4108
4091
|
])),
|
|
4109
4092
|
_: 2,
|
|
@@ -4119,14 +4102,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4119
4102
|
}, [
|
|
4120
4103
|
l("div", Fr, [
|
|
4121
4104
|
l("div", Hr, b(t.$t("layer.layers")), 1),
|
|
4122
|
-
|
|
4105
|
+
d(s, {
|
|
4123
4106
|
icon: "",
|
|
4124
4107
|
density: "compact",
|
|
4125
4108
|
variant: "plain",
|
|
4126
4109
|
class: "mr-n2",
|
|
4127
4110
|
onClick: r.handleMenuToggle
|
|
4128
4111
|
}, {
|
|
4129
|
-
default:
|
|
4112
|
+
default: p(() => e[6] || (e[6] = [
|
|
4130
4113
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
4131
4114
|
])),
|
|
4132
4115
|
_: 1,
|
|
@@ -4134,18 +4117,18 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4134
4117
|
}, 8, ["onClick"])
|
|
4135
4118
|
]),
|
|
4136
4119
|
l("div", Wr, [
|
|
4137
|
-
|
|
4120
|
+
d(f, {
|
|
4138
4121
|
class: "menu-card mx-auto mb-3",
|
|
4139
4122
|
elevation: "0"
|
|
4140
4123
|
}, {
|
|
4141
|
-
default:
|
|
4142
|
-
|
|
4143
|
-
default:
|
|
4144
|
-
|
|
4124
|
+
default: p(() => [
|
|
4125
|
+
d(u, { class: "border-b-thin" }, {
|
|
4126
|
+
default: p(() => [
|
|
4127
|
+
d(n, {
|
|
4145
4128
|
class: "text-subtitle-1 font-weight-medium",
|
|
4146
4129
|
style: { "font-size": "16px !important" }
|
|
4147
4130
|
}, {
|
|
4148
|
-
default:
|
|
4131
|
+
default: p(() => [
|
|
4149
4132
|
U(b(t.$t("layer.mapFeathers")), 1)
|
|
4150
4133
|
]),
|
|
4151
4134
|
_: 1
|
|
@@ -4153,8 +4136,8 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4153
4136
|
]),
|
|
4154
4137
|
_: 1
|
|
4155
4138
|
}),
|
|
4156
|
-
|
|
4157
|
-
default:
|
|
4139
|
+
d(g, { class: "pb-2" }, {
|
|
4140
|
+
default: p(() => [
|
|
4158
4141
|
l("div", Ur, [
|
|
4159
4142
|
(y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
|
|
4160
4143
|
key: F.value,
|
|
@@ -4169,7 +4152,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4169
4152
|
l("div", Xr, b(t.$t(`layer.${F.locale}`)), 1)
|
|
4170
4153
|
], 8, Gr))), 128))
|
|
4171
4154
|
]),
|
|
4172
|
-
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), B(
|
|
4155
|
+
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), B(h, {
|
|
4173
4156
|
key: F.key,
|
|
4174
4157
|
modelValue: a.checkList,
|
|
4175
4158
|
"onUpdate:modelValue": e[0] || (e[0] = (de) => a.checkList = de),
|
|
@@ -4187,18 +4170,18 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4187
4170
|
]),
|
|
4188
4171
|
_: 1
|
|
4189
4172
|
}),
|
|
4190
|
-
|
|
4173
|
+
d(f, {
|
|
4191
4174
|
class: "menu-card mx-auto mb-3",
|
|
4192
4175
|
elevation: "0"
|
|
4193
4176
|
}, {
|
|
4194
|
-
default:
|
|
4195
|
-
|
|
4196
|
-
default:
|
|
4197
|
-
|
|
4177
|
+
default: p(() => [
|
|
4178
|
+
d(u, { class: "border-b-thin" }, {
|
|
4179
|
+
default: p(() => [
|
|
4180
|
+
d(n, {
|
|
4198
4181
|
class: "text-subtitle-1 font-weight-medium",
|
|
4199
4182
|
style: { "font-size": "16px !important" }
|
|
4200
4183
|
}, {
|
|
4201
|
-
default:
|
|
4184
|
+
default: p(() => [
|
|
4202
4185
|
U(b(t.$t("layer.pointsOfInteresting")), 1)
|
|
4203
4186
|
]),
|
|
4204
4187
|
_: 1
|
|
@@ -4206,9 +4189,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4206
4189
|
]),
|
|
4207
4190
|
_: 1
|
|
4208
4191
|
}),
|
|
4209
|
-
|
|
4210
|
-
default:
|
|
4211
|
-
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(
|
|
4192
|
+
d(g, { class: "py-2" }, {
|
|
4193
|
+
default: p(() => [
|
|
4194
|
+
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(h, {
|
|
4212
4195
|
key: F.key,
|
|
4213
4196
|
modelValue: a.checkList,
|
|
4214
4197
|
"onUpdate:modelValue": e[1] || (e[1] = (de) => a.checkList = de),
|
|
@@ -4226,18 +4209,18 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4226
4209
|
]),
|
|
4227
4210
|
_: 1
|
|
4228
4211
|
}),
|
|
4229
|
-
|
|
4212
|
+
d(f, {
|
|
4230
4213
|
class: "menu-card mx-auto mb-3",
|
|
4231
4214
|
elevation: "0"
|
|
4232
4215
|
}, {
|
|
4233
|
-
default:
|
|
4234
|
-
|
|
4235
|
-
default:
|
|
4236
|
-
|
|
4216
|
+
default: p(() => [
|
|
4217
|
+
d(u, { class: "border-b-thin" }, {
|
|
4218
|
+
default: p(() => [
|
|
4219
|
+
d(n, {
|
|
4237
4220
|
class: "text-subtitle-1 font-weight-medium",
|
|
4238
4221
|
style: { "font-size": "16px !important" }
|
|
4239
4222
|
}, {
|
|
4240
|
-
default:
|
|
4223
|
+
default: p(() => [
|
|
4241
4224
|
U(b(t.$t("layer.otherLayers")), 1)
|
|
4242
4225
|
]),
|
|
4243
4226
|
_: 1
|
|
@@ -4245,9 +4228,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4245
4228
|
]),
|
|
4246
4229
|
_: 1
|
|
4247
4230
|
}),
|
|
4248
|
-
|
|
4249
|
-
default:
|
|
4250
|
-
(y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(
|
|
4231
|
+
d(g, { class: "py-2" }, {
|
|
4232
|
+
default: p(() => [
|
|
4233
|
+
(y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(h, {
|
|
4251
4234
|
key: F.key,
|
|
4252
4235
|
modelValue: a.checkList,
|
|
4253
4236
|
"onUpdate:modelValue": e[2] || (e[2] = (de) => a.checkList = de),
|
|
@@ -4265,18 +4248,18 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4265
4248
|
]),
|
|
4266
4249
|
_: 1
|
|
4267
4250
|
}),
|
|
4268
|
-
|
|
4251
|
+
d(f, {
|
|
4269
4252
|
class: "menu-card mx-auto mb-3",
|
|
4270
4253
|
elevation: "0"
|
|
4271
4254
|
}, {
|
|
4272
|
-
default:
|
|
4273
|
-
|
|
4274
|
-
default:
|
|
4275
|
-
|
|
4255
|
+
default: p(() => [
|
|
4256
|
+
d(u, { class: "border-b-thin" }, {
|
|
4257
|
+
default: p(() => [
|
|
4258
|
+
d(n, {
|
|
4276
4259
|
class: "text-subtitle-1 font-weight-medium",
|
|
4277
4260
|
style: { "font-size": "16px !important" }
|
|
4278
4261
|
}, {
|
|
4279
|
-
default:
|
|
4262
|
+
default: p(() => [
|
|
4280
4263
|
U(b(t.$t("layer.myFollows")), 1)
|
|
4281
4264
|
]),
|
|
4282
4265
|
_: 1
|
|
@@ -4284,9 +4267,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4284
4267
|
]),
|
|
4285
4268
|
_: 1
|
|
4286
4269
|
}),
|
|
4287
|
-
|
|
4288
|
-
default:
|
|
4289
|
-
h
|
|
4270
|
+
d(g, { class: "py-2" }, {
|
|
4271
|
+
default: p(() => [
|
|
4272
|
+
d(h, {
|
|
4290
4273
|
modelValue: a.checkList,
|
|
4291
4274
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
|
|
4292
4275
|
value: "follow-ports",
|
|
@@ -4297,7 +4280,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4297
4280
|
class: "flex-1-0-100 text-body-2",
|
|
4298
4281
|
"hide-details": ""
|
|
4299
4282
|
}, null, 8, ["modelValue", "label"]),
|
|
4300
|
-
h
|
|
4283
|
+
d(h, {
|
|
4301
4284
|
modelValue: a.checkList,
|
|
4302
4285
|
"onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
|
|
4303
4286
|
value: "follow-positions",
|
|
@@ -4316,13 +4299,13 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4316
4299
|
})
|
|
4317
4300
|
])
|
|
4318
4301
|
], 6),
|
|
4319
|
-
o.map ? (y(), B(
|
|
4302
|
+
o.map ? (y(), B(L, j({
|
|
4320
4303
|
key: 0,
|
|
4321
4304
|
map: o.map,
|
|
4322
4305
|
"menu-toggle": o.menuToggle,
|
|
4323
4306
|
show: a.checkList.includes("graticule")
|
|
4324
4307
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : E("", !0),
|
|
4325
|
-
o.map ? (y(), B(
|
|
4308
|
+
o.map ? (y(), B(_, j({
|
|
4326
4309
|
key: 1,
|
|
4327
4310
|
map: o.map,
|
|
4328
4311
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
@@ -4332,7 +4315,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4332
4315
|
map: o.map,
|
|
4333
4316
|
zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"]
|
|
4334
4317
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4335
|
-
o.map ? (y(), B(
|
|
4318
|
+
o.map ? (y(), B(x, j({
|
|
4336
4319
|
key: 3,
|
|
4337
4320
|
map: o.map,
|
|
4338
4321
|
ports: (pe = a.otherLayers) == null ? void 0 : pe.ports,
|
|
@@ -4362,12 +4345,12 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4362
4345
|
map: o.map,
|
|
4363
4346
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["eca-zones"]
|
|
4364
4347
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4365
|
-
o.map ? (y(), B(
|
|
4348
|
+
o.map ? (y(), B(k, j({
|
|
4366
4349
|
key: 7,
|
|
4367
4350
|
map: o.map,
|
|
4368
4351
|
zone: (Q = a.otherLayers) == null ? void 0 : Q["war-zones"]
|
|
4369
4352
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4370
|
-
o.map ? (y(), B(
|
|
4353
|
+
o.map ? (y(), B(z, j({
|
|
4371
4354
|
key: 8,
|
|
4372
4355
|
map: o.map,
|
|
4373
4356
|
area: (ie = a.otherLayers) == null ? void 0 : ie["gmdss-areas"]
|
|
@@ -4377,7 +4360,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4377
4360
|
map: o.map,
|
|
4378
4361
|
show: a.checkList.includes("load-lines")
|
|
4379
4362
|
}, t.$attrs), null, 16, ["map", "show"])) : E("", !0),
|
|
4380
|
-
o.map ? (y(), B(
|
|
4363
|
+
o.map ? (y(), B(v, j({
|
|
4381
4364
|
key: 10,
|
|
4382
4365
|
map: o.map,
|
|
4383
4366
|
token: o.token,
|
|
@@ -4472,12 +4455,12 @@ class ro {
|
|
|
4472
4455
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
4473
4456
|
*/
|
|
4474
4457
|
getBoundPixel() {
|
|
4475
|
-
var
|
|
4476
|
-
const e = (
|
|
4458
|
+
var _, T;
|
|
4459
|
+
const e = (_ = this.map) == null ? void 0 : _.getBounds();
|
|
4477
4460
|
if (!e)
|
|
4478
4461
|
return [];
|
|
4479
|
-
const o = ((T = this.map) == null ? void 0 : T.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [
|
|
4480
|
-
return [
|
|
4462
|
+
const o = ((T = this.map) == null ? void 0 : T.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [g, f] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
4463
|
+
return [g, f, u + L, h];
|
|
4481
4464
|
}
|
|
4482
4465
|
/**
|
|
4483
4466
|
* [视窗边界像素宽度]
|
|
@@ -4492,13 +4475,13 @@ class ro {
|
|
|
4492
4475
|
* @param zoom
|
|
4493
4476
|
*/
|
|
4494
4477
|
getWorldCopy(e, o) {
|
|
4495
|
-
const i = 2 ** o, [a, r, s,
|
|
4496
|
-
for (let
|
|
4497
|
-
for (let
|
|
4498
|
-
|
|
4499
|
-
return
|
|
4500
|
-
const
|
|
4501
|
-
return [
|
|
4478
|
+
const i = 2 ** o, [a, r, s, c] = e.map((h) => ~~(h / (i * 256))), n = [];
|
|
4479
|
+
for (let h = c; h <= r; h++)
|
|
4480
|
+
for (let g = a; g <= s; g++)
|
|
4481
|
+
n.push([g, h]);
|
|
4482
|
+
return n.map((h) => {
|
|
4483
|
+
const g = 2 ** o * 256;
|
|
4484
|
+
return [h[0] * g, h[1] * g, g];
|
|
4502
4485
|
});
|
|
4503
4486
|
}
|
|
4504
4487
|
resize() {
|
|
@@ -4541,9 +4524,9 @@ class Ne {
|
|
|
4541
4524
|
* @param width??
|
|
4542
4525
|
* @param height??
|
|
4543
4526
|
*/
|
|
4544
|
-
createTexture(e, o, i, a, r, s,
|
|
4545
|
-
const
|
|
4546
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
4527
|
+
createTexture(e, o, i, a, r, s, c) {
|
|
4528
|
+
const n = e.createTexture();
|
|
4529
|
+
return e.bindTexture(e.TEXTURE_2D, n), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, o), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, a), r instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, s, c, 0, e.RGBA, e.UNSIGNED_BYTE, r) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, r), e.bindTexture(e.TEXTURE_2D, null), n;
|
|
4547
4530
|
}
|
|
4548
4531
|
/**
|
|
4549
4532
|
* 创建数据资源
|
|
@@ -4581,14 +4564,14 @@ class Ne {
|
|
|
4581
4564
|
const a = this.createProgram(e, o, i);
|
|
4582
4565
|
if (a) {
|
|
4583
4566
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
4584
|
-
for (let
|
|
4585
|
-
const
|
|
4586
|
-
r[
|
|
4567
|
+
for (let n = 0; n < s; n++) {
|
|
4568
|
+
const u = e.getActiveAttrib(a, n);
|
|
4569
|
+
r[u.name] = e.getAttribLocation(a, u.name);
|
|
4587
4570
|
}
|
|
4588
|
-
const
|
|
4589
|
-
for (let
|
|
4590
|
-
const
|
|
4591
|
-
r[
|
|
4571
|
+
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
4572
|
+
for (let n = 0; n < c; n++) {
|
|
4573
|
+
const u = e.getActiveUniform(a, n);
|
|
4574
|
+
r[u.name] = e.getUniformLocation(a, u.name);
|
|
4592
4575
|
}
|
|
4593
4576
|
return r;
|
|
4594
4577
|
}
|
|
@@ -4600,19 +4583,19 @@ class Ne {
|
|
|
4600
4583
|
setup(e, o, i = !1, a, r) {
|
|
4601
4584
|
const s = document.createElement("canvas");
|
|
4602
4585
|
s.width = 256, s.height = 1;
|
|
4603
|
-
const
|
|
4604
|
-
if (
|
|
4605
|
-
const
|
|
4606
|
-
return o.forEach(([
|
|
4607
|
-
|
|
4608
|
-
}),
|
|
4586
|
+
const c = s.getContext("2d");
|
|
4587
|
+
if (c && e) {
|
|
4588
|
+
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
4589
|
+
return o.forEach(([u, h]) => {
|
|
4590
|
+
n.addColorStop(u, h);
|
|
4591
|
+
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
4609
4592
|
canvas: s,
|
|
4610
4593
|
texture: this.createTexture(
|
|
4611
4594
|
e,
|
|
4612
4595
|
e.LINEAR,
|
|
4613
4596
|
e.LINEAR,
|
|
4614
4597
|
e.CLAMP_TO_EDGE,
|
|
4615
|
-
i ? new Uint8Array(
|
|
4598
|
+
i ? new Uint8Array(c.getImageData(0, 0, 256, 1).data) : s,
|
|
4616
4599
|
a,
|
|
4617
4600
|
r
|
|
4618
4601
|
)
|
|
@@ -4621,37 +4604,37 @@ class Ne {
|
|
|
4621
4604
|
}
|
|
4622
4605
|
setupParticle(e, o = 1e3) {
|
|
4623
4606
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
4624
|
-
for (let
|
|
4625
|
-
r[
|
|
4626
|
-
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
4627
|
-
for (let
|
|
4628
|
-
|
|
4629
|
-
const
|
|
4630
|
-
return { resolution: i, total: a, texture0: s, texture1:
|
|
4607
|
+
for (let h = 0; h < r.length; h++)
|
|
4608
|
+
r[h] = Math.floor(Math.random() * 256);
|
|
4609
|
+
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
4610
|
+
for (let h = 0; h < a; h++)
|
|
4611
|
+
n[h] = h;
|
|
4612
|
+
const u = this.createDataBuffer(e, "array", n);
|
|
4613
|
+
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: u };
|
|
4631
4614
|
}
|
|
4632
4615
|
bind(e, o, i) {
|
|
4633
4616
|
const a = this.createProgram(e, o, i);
|
|
4634
4617
|
if (a) {
|
|
4635
4618
|
const r = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(a, "a_position");
|
|
4636
4619
|
e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
|
|
4637
|
-
const
|
|
4638
|
-
this.createDataBuffer(e, "array",
|
|
4639
|
-
const
|
|
4640
|
-
return e.enableVertexAttribArray(
|
|
4620
|
+
const c = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
4621
|
+
this.createDataBuffer(e, "array", c);
|
|
4622
|
+
const n = e.getAttribLocation(a, "a_texCoord");
|
|
4623
|
+
return e.enableVertexAttribArray(n), e.vertexAttribPointer(n, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
|
|
4641
4624
|
}
|
|
4642
4625
|
return {};
|
|
4643
4626
|
}
|
|
4644
4627
|
bindParticle(e, o, i, a, r, s) {
|
|
4645
|
-
const
|
|
4646
|
-
return { particle:
|
|
4628
|
+
const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, s), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), g = e.createFramebuffer();
|
|
4629
|
+
return { particle: c, screen: n, update: u, quadBuffer: h, frameBuffer: g };
|
|
4647
4630
|
}
|
|
4648
|
-
draw(e, o, i, a, r, s,
|
|
4649
|
-
var
|
|
4631
|
+
draw(e, o, i, a, r, s, c) {
|
|
4632
|
+
var n, u;
|
|
4650
4633
|
if (o && i) {
|
|
4651
|
-
e.resize(), o == null || o.viewport(0, 0, (
|
|
4634
|
+
e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (u = o == null ? void 0 : o.canvas) == null ? void 0 : u.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
4652
4635
|
try {
|
|
4653
4636
|
o.useProgram(i);
|
|
4654
|
-
const
|
|
4637
|
+
const h = {
|
|
4655
4638
|
resolution: o.getUniformLocation(i, "u_resolution"),
|
|
4656
4639
|
image: o.getUniformLocation(i, "u_image"),
|
|
4657
4640
|
color: o.getUniformLocation(i, "u_color"),
|
|
@@ -4659,20 +4642,20 @@ class Ne {
|
|
|
4659
4642
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
4660
4643
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
4661
4644
|
};
|
|
4662
|
-
|
|
4663
|
-
const
|
|
4664
|
-
for (const
|
|
4665
|
-
const T = (
|
|
4645
|
+
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);
|
|
4646
|
+
const g = e.getBoundPixel(), f = e.map.getZoom() + 1, L = e.getWorldCopy(g, f);
|
|
4647
|
+
for (const _ of L) {
|
|
4648
|
+
const T = (_[0] - g[0]) * e.ratio, x = (_[1] - g[3]) * e.ratio, D = _[2] * e.ratio, [S, P, k, z] = [T, D + T, x, D + x], C = new Float32Array([S, k, P, k, S, z, S, z, P, k, P, z]);
|
|
4666
4649
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4667
4650
|
}
|
|
4668
|
-
} catch (
|
|
4669
|
-
console.log(`render failed...${
|
|
4651
|
+
} catch (h) {
|
|
4652
|
+
console.log(`render failed...${h}`);
|
|
4670
4653
|
}
|
|
4671
4654
|
}
|
|
4672
4655
|
}
|
|
4673
4656
|
drawParticle(e, o, i, a, r) {
|
|
4674
|
-
var s,
|
|
4675
|
-
o && (o == null || o.viewport(0, 0, (s = o == null ? void 0 : o.canvas) == null ? void 0 : s.width, (
|
|
4657
|
+
var s, c;
|
|
4658
|
+
o && (o == null || o.viewport(0, 0, (s = o == null ? void 0 : o.canvas) == null ? void 0 : s.width, (c = o == null ? void 0 : o.canvas) == null ? void 0 : c.height), o.disable(o.DEPTH_TEST), o.disable(o.STENCIL_TEST), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, i), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, a.texture0), this.renderScreen(e, o, a, r), this.updateParticles(e, o, a, r));
|
|
4676
4659
|
}
|
|
4677
4660
|
renderScreen(e, o, i, a) {
|
|
4678
4661
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.screenTexture, 0), o.viewport(0, 0, o.canvas.width, o.canvas.height), this.renderScreenTexture(o, i.backgroundTexture, i.screen, i.quadBuffer, 0.95), this.renderParticles(e, o, i, a), o.bindFramebuffer(o.FRAMEBUFFER, null), this.renderScreenTexture(o, i.screenTexture, i.screen, i.quadBuffer, 1);
|
|
@@ -4690,11 +4673,11 @@ class Ne {
|
|
|
4690
4673
|
}
|
|
4691
4674
|
}
|
|
4692
4675
|
updateParticles(e, o, i, a) {
|
|
4693
|
-
var s,
|
|
4676
|
+
var s, c;
|
|
4694
4677
|
if (o) {
|
|
4695
4678
|
o.bindFramebuffer(o.FRAMEBUFFER, i.frameBuffer), o.framebufferTexture2D(o.FRAMEBUFFER, o.COLOR_ATTACHMENT0, o.TEXTURE_2D, i.texture1, 0), o.viewport(0, 0, i.resolution, i.resolution), o.useProgram(i.update.program), o.bindBuffer(o.ARRAY_BUFFER, i.quadBuffer), o.enableVertexAttribArray(i.update.a_pos), o.vertexAttribPointer(i.update.a_pos, 2, o.FLOAT, !1, 0, 0), o.uniform1i(i.update.u_factor, 0), o.uniform1i(i.update.u_particles, 1);
|
|
4696
|
-
const
|
|
4697
|
-
o.uniform4f(i.update.u_viewport,
|
|
4679
|
+
const n = e.getBoundRange();
|
|
4680
|
+
o.uniform4f(i.update.u_viewport, n[0], n[1], n[2], n[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (s = i == null ? void 0 : i.image) == null ? void 0 : s.width, (c = i == null ? void 0 : i.image) == null ? void 0 : c.height), o.uniform2f(i.update.u_factor_min, a.uvRange[0], a.uvRange[0]), o.uniform2f(i.update.u_factor_max, a.uvRange[1], a.uvRange[1]), o.uniform1f(i.update.u_speed_factor, a.speedFactor * e.ratio), o.uniform1f(i.update.u_drop_rate, a.dropRate), o.uniform1f(i.update.u_drop_rate_bump, a.dropRateBump), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4698
4681
|
}
|
|
4699
4682
|
const r = i.texture0;
|
|
4700
4683
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -5000,36 +4983,27 @@ const Jr = {
|
|
|
5000
4983
|
this.toggle = !this.toggle, this.showCaption = !this.showCaption;
|
|
5001
4984
|
},
|
|
5002
4985
|
handleRender() {
|
|
5003
|
-
var t, e
|
|
5004
|
-
if (
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
let r = 0, s = 0, n = this.empty;
|
|
5011
|
-
if ((t = this.wind) != null && t.active && (n = (e = this.wind) == null ? void 0 : e.data), (o = this.map) != null && o.getSource(this.source))
|
|
5012
|
-
(i = this.map) == null || i.getSource(this.source).setData(n), s = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[windBarbs] update elapsed: ", s, ", total: ", r += s);
|
|
4986
|
+
var t, e;
|
|
4987
|
+
if (this.map && this.wind) {
|
|
4988
|
+
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
4989
|
+
let i = 0, a = 0;
|
|
4990
|
+
const r = this.wind.active ? this.wind.data : this.empty;
|
|
4991
|
+
if ((t = this.map) != null && t.getSource(this.source))
|
|
4992
|
+
(e = this.map) == null || e.getSource(this.source).setData(r), a = (/* @__PURE__ */ new Date()).valueOf() - (o + i), console.log("[windBarbs] update elapsed: ", a, ", total: ", i += a);
|
|
5013
4993
|
else {
|
|
5014
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
5015
|
-
for (let
|
|
5016
|
-
const
|
|
5017
|
-
|
|
5018
|
-
this.map.hasImage(
|
|
4994
|
+
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
4995
|
+
for (let s = 0; s < (this.barbs ?? []).length - 1; s++) {
|
|
4996
|
+
const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, u = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
|
|
4997
|
+
h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[u]), h.onload = () => {
|
|
4998
|
+
this.map.hasImage(u + "-icon") || this.map.addImage(u + "-icon", h), this.map.addLayer(
|
|
5019
4999
|
{
|
|
5020
|
-
id:
|
|
5000
|
+
id: u,
|
|
5021
5001
|
type: "symbol",
|
|
5022
|
-
filter: [
|
|
5023
|
-
"all",
|
|
5024
|
-
// @ts-ignore
|
|
5025
|
-
[">=", "spd", g],
|
|
5026
|
-
// @ts-ignore
|
|
5027
|
-
["<", "spd", p]
|
|
5028
|
-
],
|
|
5002
|
+
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
5029
5003
|
source: this.source,
|
|
5030
5004
|
layout: {
|
|
5031
5005
|
"symbol-placement": "point",
|
|
5032
|
-
"icon-image":
|
|
5006
|
+
"icon-image": u + "-icon",
|
|
5033
5007
|
// mapbox sprite
|
|
5034
5008
|
"icon-size": 0.5,
|
|
5035
5009
|
"icon-offset": [0, -20],
|
|
@@ -5051,7 +5025,7 @@ const Jr = {
|
|
|
5051
5025
|
);
|
|
5052
5026
|
};
|
|
5053
5027
|
}
|
|
5054
|
-
this.windBarbLoaded = !0,
|
|
5028
|
+
this.windBarbLoaded = !0, a = (/* @__PURE__ */ new Date()).valueOf() - (o + i), console.log("[windBarbs] add elapsed: ", a, ", total: ", i += a);
|
|
5055
5029
|
}
|
|
5056
5030
|
}
|
|
5057
5031
|
},
|
|
@@ -5374,18 +5348,18 @@ const rl = /* @__PURE__ */ V(ol, [["render", il]]), ll = {
|
|
|
5374
5348
|
this.beforeLayer
|
|
5375
5349
|
);
|
|
5376
5350
|
const s = new Image(48, 48);
|
|
5377
|
-
let
|
|
5378
|
-
s.src =
|
|
5379
|
-
const
|
|
5380
|
-
|
|
5351
|
+
let c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
|
|
5352
|
+
s.src = n;
|
|
5353
|
+
const u = new Image(48, 48);
|
|
5354
|
+
c = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5381
5355
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5382
5356
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5383
|
-
</svg>`,
|
|
5384
|
-
const
|
|
5385
|
-
let
|
|
5386
|
-
|
|
5357
|
+
</svg>`, n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), u.src = n;
|
|
5358
|
+
const h = [u];
|
|
5359
|
+
let g = 0;
|
|
5360
|
+
h.forEach((f) => {
|
|
5387
5361
|
f.onload = () => {
|
|
5388
|
-
|
|
5362
|
+
g++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", u), g === 1 && this.map.addLayer(
|
|
5389
5363
|
{
|
|
5390
5364
|
id: this.directionLayer,
|
|
5391
5365
|
type: "symbol",
|
|
@@ -5994,8 +5968,8 @@ const wl = /* @__PURE__ */ V(yl, [["render", bl]]), xl = {
|
|
|
5994
5968
|
}
|
|
5995
5969
|
}, this.beforeLayer);
|
|
5996
5970
|
const s = new Image(72, 72);
|
|
5997
|
-
let
|
|
5998
|
-
s.src =
|
|
5971
|
+
let c = '<svg t="1752721890391" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
|
|
5972
|
+
s.src = n, s.onload = () => {
|
|
5999
5973
|
this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
|
|
6000
5974
|
{
|
|
6001
5975
|
id: this.directionLayer,
|
|
@@ -6198,19 +6172,19 @@ const _l = /* @__PURE__ */ V(xl, [["render", vl]]), kl = {
|
|
|
6198
6172
|
class: "legend-tip-btn-gl4"
|
|
6199
6173
|
};
|
|
6200
6174
|
function Ll(t, e, o, i, a, r) {
|
|
6201
|
-
var
|
|
6202
|
-
const s =
|
|
6203
|
-
return (
|
|
6175
|
+
var n;
|
|
6176
|
+
const s = w("VBtn"), c = w("VTooltip");
|
|
6177
|
+
return (n = o.prmsl) != null && n.active ? (y(), M("div", zl, [
|
|
6204
6178
|
l("div", {
|
|
6205
6179
|
class: "menu-bar-box pa-1 rounded",
|
|
6206
6180
|
style: ae({ right: a.right + "px" })
|
|
6207
6181
|
}, [
|
|
6208
|
-
|
|
6182
|
+
d(c, {
|
|
6209
6183
|
text: "Map Layers",
|
|
6210
6184
|
location: "left"
|
|
6211
6185
|
}, {
|
|
6212
|
-
activator:
|
|
6213
|
-
|
|
6186
|
+
activator: p(({ props: u }) => [
|
|
6187
|
+
d(s, j(u, {
|
|
6214
6188
|
"min-width": "32",
|
|
6215
6189
|
width: "32",
|
|
6216
6190
|
height: "32",
|
|
@@ -6218,7 +6192,7 @@ function Ll(t, e, o, i, a, r) {
|
|
|
6218
6192
|
color: a.toggle ? "primary" : "",
|
|
6219
6193
|
onClick: r.handleMenuToggle
|
|
6220
6194
|
}), {
|
|
6221
|
-
default:
|
|
6195
|
+
default: p(() => e[0] || (e[0] = [
|
|
6222
6196
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
6223
6197
|
])),
|
|
6224
6198
|
_: 2,
|
|
@@ -7233,14 +7207,14 @@ const ts = {
|
|
|
7233
7207
|
},
|
|
7234
7208
|
checkList: {
|
|
7235
7209
|
handler(t, e) {
|
|
7236
|
-
var o, i, a, r, s,
|
|
7237
|
-
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (
|
|
7210
|
+
var o, i, a, r, s, c;
|
|
7211
|
+
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? (a = (i = (o = this.$parent) == null ? void 0 : o.$refs) == null ? void 0 : i.idmBottomBar) == null || a.handleToggle("weather", !0) : (c = (s = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : s.idmBottomBar) == null || c.handleToggle("weather", !1);
|
|
7238
7212
|
}
|
|
7239
7213
|
},
|
|
7240
7214
|
autoActive: {
|
|
7241
7215
|
handler(t) {
|
|
7242
7216
|
var e, o, i, a, r, s;
|
|
7243
|
-
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((
|
|
7217
|
+
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((c) => this.checkList.includes(c.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? (i = (o = (e = this.$parent) == null ? void 0 : e.$refs) == null ? void 0 : o.idmBottomBar) == null || i.handleToggle("weather", !0) : (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
|
|
7244
7218
|
}
|
|
7245
7219
|
},
|
|
7246
7220
|
iceToggleValue: {
|
|
@@ -7300,7 +7274,7 @@ const ts = {
|
|
|
7300
7274
|
},
|
|
7301
7275
|
async fetchModels() {
|
|
7302
7276
|
this.models = {};
|
|
7303
|
-
const t = await
|
|
7277
|
+
const t = await Ee.get(`${this.gateway}/api/arc/meteo2/models2`, {
|
|
7304
7278
|
headers: {
|
|
7305
7279
|
Authorization: this.token || this.defaultMeteoToken
|
|
7306
7280
|
}
|
|
@@ -7308,70 +7282,70 @@ const ts = {
|
|
|
7308
7282
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7309
7283
|
},
|
|
7310
7284
|
async fetchWeatherLayers(t = {}) {
|
|
7311
|
-
var a, r, s,
|
|
7285
|
+
var a, r, s, c, n, u, h, g, f;
|
|
7312
7286
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7313
7287
|
let o = 0, i = 0;
|
|
7314
7288
|
if (this.map) {
|
|
7315
|
-
const
|
|
7289
|
+
const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, _ = (r = this.map) == null ? void 0 : r.getBounds(), T = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
|
|
7316
7290
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
7317
|
-
const
|
|
7291
|
+
const x = oo.WEATHER_LAYERS.find((D) => {
|
|
7318
7292
|
var S;
|
|
7319
7293
|
return ((S = D.peer) == null ? void 0 : S.weight) === this.particleFactor.weight;
|
|
7320
7294
|
});
|
|
7321
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
7295
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & x.weight ? this.weatherWeight : this.weatherWeight + x.weight : this.weatherWeight = this.weatherWeight & x.weight ? this.weatherWeight - x.weight : this.weatherWeight;
|
|
7322
7296
|
}
|
|
7323
7297
|
if (this.weatherWeight > 0) {
|
|
7324
|
-
let
|
|
7325
|
-
if (
|
|
7326
|
-
const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], S = await
|
|
7327
|
-
`${D}/api/arc/weather/layers2/links?l=${
|
|
7298
|
+
let x = this.weatherWeight;
|
|
7299
|
+
if (x > 0) {
|
|
7300
|
+
const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], S = await Ee.get(
|
|
7301
|
+
`${D}/api/arc/weather/layers2/links?l=${x}&v=${this.forecastModel}&z=${L}&bbox=${T}&t=${this.realTime}`,
|
|
7328
7302
|
{
|
|
7329
7303
|
headers: {
|
|
7330
7304
|
Authorization: this.token || this.defaultMeteoToken
|
|
7331
7305
|
}
|
|
7332
7306
|
}
|
|
7333
7307
|
);
|
|
7334
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
7335
|
-
const P = (
|
|
7308
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = S == null ? void 0 : S.data) == null ? void 0 : c.code) === 0) {
|
|
7309
|
+
const P = (n = S == null ? void 0 : S.data) == null ? void 0 : n.data, k = [];
|
|
7336
7310
|
for (const C in P)
|
|
7337
|
-
|
|
7338
|
-
|
|
7311
|
+
k.push(
|
|
7312
|
+
Ee.get(P[C], {
|
|
7339
7313
|
headers: {
|
|
7340
7314
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7341
7315
|
key: C
|
|
7342
7316
|
},
|
|
7343
7317
|
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
7344
|
-
}).catch((
|
|
7345
|
-
console.log(`[${C}] fetch layer error: ${
|
|
7318
|
+
}).catch((v) => {
|
|
7319
|
+
console.log(`[${C}] fetch layer error: ${v}`);
|
|
7346
7320
|
})
|
|
7347
7321
|
);
|
|
7348
|
-
const
|
|
7349
|
-
this.weatherLayers = {},
|
|
7322
|
+
const z = await Promise.all(k);
|
|
7323
|
+
this.weatherLayers = {}, z.map((C) => {
|
|
7350
7324
|
var Z, q, X, Y;
|
|
7351
|
-
const
|
|
7325
|
+
const v = ((Z = C == null ? void 0 : C.data) == null ? void 0 : Z.data) || (C == null ? void 0 : C.data);
|
|
7352
7326
|
let A = (X = (q = C == null ? void 0 : C.config) == null ? void 0 : q.headers) == null ? void 0 : X.key;
|
|
7353
|
-
A &&
|
|
7354
|
-
raw:
|
|
7327
|
+
A && v && (this.weatherLayers[A] = {
|
|
7328
|
+
raw: v,
|
|
7355
7329
|
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
7356
7330
|
etime: S.data.etime
|
|
7357
7331
|
});
|
|
7358
7332
|
});
|
|
7359
7333
|
}
|
|
7360
7334
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
7361
|
-
const P = (
|
|
7335
|
+
const P = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
7362
7336
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7363
7337
|
type: "json",
|
|
7364
7338
|
direction: P,
|
|
7365
|
-
height: { raw:
|
|
7339
|
+
height: { raw: k },
|
|
7366
7340
|
etime: S.data.etime
|
|
7367
7341
|
};
|
|
7368
7342
|
}
|
|
7369
7343
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7370
|
-
const P = (
|
|
7344
|
+
const P = (g = this.weatherLayers["current-direction"]) == null ? void 0 : g.raw, k = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
7371
7345
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7372
7346
|
type: "json",
|
|
7373
7347
|
direction: P,
|
|
7374
|
-
speed: { raw:
|
|
7348
|
+
speed: { raw: k },
|
|
7375
7349
|
etime: S.data.etime
|
|
7376
7350
|
};
|
|
7377
7351
|
}
|
|
@@ -7398,7 +7372,7 @@ const ts = {
|
|
|
7398
7372
|
}, 500);
|
|
7399
7373
|
},
|
|
7400
7374
|
handleRampColorInitial() {
|
|
7401
|
-
var t, e, o, i, a, r, s,
|
|
7375
|
+
var t, e, o, i, a, r, s, c, n, u, h, g;
|
|
7402
7376
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
7403
7377
|
type: "canvas",
|
|
7404
7378
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -7414,16 +7388,16 @@ const ts = {
|
|
|
7414
7388
|
}
|
|
7415
7389
|
},
|
|
7416
7390
|
this.beforeLayer
|
|
7417
|
-
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((
|
|
7391
|
+
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((c = this.viewport) == null ? void 0 : c.particleSource, {
|
|
7418
7392
|
type: "canvas",
|
|
7419
|
-
canvas: (
|
|
7393
|
+
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
7420
7394
|
animate: !0,
|
|
7421
7395
|
coordinates: this.viewport.getBoundLngLat()
|
|
7422
|
-
}), this.viewport.map.getLayer((
|
|
7396
|
+
}), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
|
|
7423
7397
|
{
|
|
7424
7398
|
type: "raster",
|
|
7425
|
-
id: (
|
|
7426
|
-
source: (
|
|
7399
|
+
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
7400
|
+
source: (g = this.viewport) == null ? void 0 : g.particleSource,
|
|
7427
7401
|
layout: {
|
|
7428
7402
|
visibility: "none"
|
|
7429
7403
|
}
|
|
@@ -7432,253 +7406,253 @@ const ts = {
|
|
|
7432
7406
|
);
|
|
7433
7407
|
},
|
|
7434
7408
|
handleDrawWeather4Json() {
|
|
7435
|
-
var
|
|
7409
|
+
var u, h, g, f, L, _, T;
|
|
7436
7410
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7437
7411
|
let e = 0, o = 0;
|
|
7438
|
-
const i = (
|
|
7439
|
-
for (const
|
|
7412
|
+
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = K.convertToStdLng(i._sw.lng), s = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
7413
|
+
for (const x in this.weatherLayers) {
|
|
7440
7414
|
let D = !1;
|
|
7441
|
-
if (this.weatherLayers[
|
|
7415
|
+
if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
|
|
7442
7416
|
let S = [];
|
|
7443
|
-
if (
|
|
7417
|
+
if (x === "swell") {
|
|
7444
7418
|
D = !0;
|
|
7445
|
-
const P = ((
|
|
7446
|
-
for (const
|
|
7447
|
-
if (
|
|
7448
|
-
const C = P[
|
|
7449
|
-
r > s ? C.forEach((
|
|
7419
|
+
const P = ((g = this.weatherLayers[x]) == null ? void 0 : g.direction) || {};
|
|
7420
|
+
for (const z in P)
|
|
7421
|
+
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7422
|
+
const C = P[z].lng;
|
|
7423
|
+
r > s ? C.forEach((v, A) => {
|
|
7450
7424
|
var Z, q, X, Y, te, oe;
|
|
7451
7425
|
if (a < 2) {
|
|
7452
|
-
if ((
|
|
7453
|
-
const J = N.point([
|
|
7454
|
-
val: ((Z = P[
|
|
7455
|
-
spd: (X = P[
|
|
7426
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
7427
|
+
const J = N.point([v, z], {
|
|
7428
|
+
val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
|
|
7429
|
+
spd: (X = P[z].spd) == null ? void 0 : X[A]
|
|
7456
7430
|
});
|
|
7457
7431
|
S.push(J);
|
|
7458
7432
|
}
|
|
7459
|
-
} else if ((
|
|
7460
|
-
const J = N.point([
|
|
7461
|
-
val: ((Y = P[
|
|
7462
|
-
spd: (oe = P[
|
|
7433
|
+
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7434
|
+
const J = N.point([v, z], {
|
|
7435
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
|
|
7436
|
+
spd: (oe = P[z].spd) == null ? void 0 : oe[A]
|
|
7463
7437
|
});
|
|
7464
7438
|
S.push(J);
|
|
7465
7439
|
}
|
|
7466
|
-
}) : C.forEach((
|
|
7440
|
+
}) : C.forEach((v, A) => {
|
|
7467
7441
|
var Z, q, X, Y, te, oe;
|
|
7468
7442
|
if (r < 2) {
|
|
7469
|
-
if ((
|
|
7470
|
-
const J = N.point([
|
|
7471
|
-
val: ((Z = P[
|
|
7472
|
-
spd: (X = P[
|
|
7443
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
7444
|
+
const J = N.point([v, z], {
|
|
7445
|
+
val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
|
|
7446
|
+
spd: (X = P[z].spd) == null ? void 0 : X[A]
|
|
7473
7447
|
});
|
|
7474
7448
|
S.push(J);
|
|
7475
7449
|
}
|
|
7476
|
-
} else if (
|
|
7477
|
-
const J = N.point([
|
|
7478
|
-
val: ((Y = P[
|
|
7479
|
-
spd: (oe = P[
|
|
7450
|
+
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7451
|
+
const J = N.point([v, z], {
|
|
7452
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
|
|
7453
|
+
spd: (oe = P[z].spd) == null ? void 0 : oe[A]
|
|
7480
7454
|
});
|
|
7481
7455
|
S.push(J);
|
|
7482
7456
|
}
|
|
7483
7457
|
});
|
|
7484
7458
|
}
|
|
7485
7459
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
7486
|
-
const
|
|
7487
|
-
if (
|
|
7488
|
-
if (!
|
|
7489
|
-
const
|
|
7490
|
-
for (const C in (f =
|
|
7491
|
-
const
|
|
7492
|
-
for (const A of
|
|
7493
|
-
|
|
7460
|
+
const k = this.weatherLayers[x].height;
|
|
7461
|
+
if (k) {
|
|
7462
|
+
if (!k.data) {
|
|
7463
|
+
const z = [];
|
|
7464
|
+
for (const C in (f = k.raw) == null ? void 0 : f.LineString) {
|
|
7465
|
+
const v = k.raw.LineString[C];
|
|
7466
|
+
for (const A of v)
|
|
7467
|
+
z.push(
|
|
7494
7468
|
N.lineString(A, {
|
|
7495
7469
|
val: Number(C)
|
|
7496
7470
|
})
|
|
7497
7471
|
);
|
|
7498
|
-
|
|
7472
|
+
k.data = N.featureCollection(z);
|
|
7499
7473
|
}
|
|
7500
7474
|
}
|
|
7501
|
-
if (
|
|
7502
|
-
const
|
|
7503
|
-
S = S.concat(
|
|
7475
|
+
if (k.data) {
|
|
7476
|
+
const z = this.handleBboxClip(k.data, i);
|
|
7477
|
+
S = S.concat(z);
|
|
7504
7478
|
}
|
|
7505
7479
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
7506
7480
|
}
|
|
7507
|
-
} else if (
|
|
7481
|
+
} else if (x === "current") {
|
|
7508
7482
|
D = !0;
|
|
7509
|
-
const P = ((
|
|
7510
|
-
for (const
|
|
7511
|
-
if (
|
|
7512
|
-
const C = P[
|
|
7513
|
-
r > s ? C.forEach((
|
|
7483
|
+
const P = ((L = this.weatherLayers[x]) == null ? void 0 : L.direction) || {};
|
|
7484
|
+
for (const z in P)
|
|
7485
|
+
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7486
|
+
const C = P[z].lng;
|
|
7487
|
+
r > s ? C.forEach((v, A) => {
|
|
7514
7488
|
var Z, q, X, Y, te, oe;
|
|
7515
7489
|
if (a < 2) {
|
|
7516
|
-
if ((
|
|
7517
|
-
const J = N.point([
|
|
7518
|
-
val: ((Z = P[
|
|
7519
|
-
spd: (X = P[
|
|
7490
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
7491
|
+
const J = N.point([v, z], {
|
|
7492
|
+
val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
|
|
7493
|
+
spd: (X = P[z].spd) == null ? void 0 : X[A]
|
|
7520
7494
|
});
|
|
7521
7495
|
S.push(J);
|
|
7522
7496
|
}
|
|
7523
|
-
} else if ((
|
|
7524
|
-
const J = N.point([
|
|
7525
|
-
val: ((Y = P[
|
|
7526
|
-
spd: (oe = P[
|
|
7497
|
+
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7498
|
+
const J = N.point([v, z], {
|
|
7499
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
|
|
7500
|
+
spd: (oe = P[z].spd) == null ? void 0 : oe[A]
|
|
7527
7501
|
});
|
|
7528
7502
|
S.push(J);
|
|
7529
7503
|
}
|
|
7530
|
-
}) : C.forEach((
|
|
7504
|
+
}) : C.forEach((v, A) => {
|
|
7531
7505
|
var Z, q, X, Y, te, oe;
|
|
7532
7506
|
if (r < 2) {
|
|
7533
|
-
if ((
|
|
7534
|
-
const J = N.point([
|
|
7535
|
-
val: ((Z = P[
|
|
7536
|
-
spd: (X = P[
|
|
7507
|
+
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
7508
|
+
const J = N.point([v, z], {
|
|
7509
|
+
val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
|
|
7510
|
+
spd: (X = P[z].spd) == null ? void 0 : X[A]
|
|
7537
7511
|
});
|
|
7538
7512
|
S.push(J);
|
|
7539
7513
|
}
|
|
7540
|
-
} else if (
|
|
7541
|
-
const J = N.point([
|
|
7542
|
-
val: ((Y = P[
|
|
7543
|
-
spd: (oe = P[
|
|
7514
|
+
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7515
|
+
const J = N.point([v, z], {
|
|
7516
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
|
|
7517
|
+
spd: (oe = P[z].spd) == null ? void 0 : oe[A]
|
|
7544
7518
|
});
|
|
7545
7519
|
S.push(J);
|
|
7546
7520
|
}
|
|
7547
7521
|
});
|
|
7548
7522
|
}
|
|
7549
7523
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
7550
|
-
const
|
|
7551
|
-
if (
|
|
7552
|
-
if (!
|
|
7524
|
+
const k = this.weatherLayers[x].speed;
|
|
7525
|
+
if (k) {
|
|
7526
|
+
if (!k.data) {
|
|
7553
7527
|
const C = [];
|
|
7554
|
-
for (const
|
|
7555
|
-
const A =
|
|
7528
|
+
for (const v in (_ = k.raw) == null ? void 0 : _.Polygon) {
|
|
7529
|
+
const A = k.raw.Polygon[v];
|
|
7556
7530
|
for (const Z of A)
|
|
7557
7531
|
C.push(
|
|
7558
7532
|
N.polygon(Z, {
|
|
7559
|
-
val: Number(
|
|
7533
|
+
val: Number(v)
|
|
7560
7534
|
})
|
|
7561
7535
|
);
|
|
7562
7536
|
}
|
|
7563
|
-
|
|
7537
|
+
k.data = N.featureCollection(C);
|
|
7564
7538
|
}
|
|
7565
|
-
const
|
|
7566
|
-
S = S.concat(
|
|
7539
|
+
const z = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
|
|
7540
|
+
S = S.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
7567
7541
|
}
|
|
7568
|
-
} else if (
|
|
7542
|
+
} else if (x === "wind") {
|
|
7569
7543
|
D = !0;
|
|
7570
7544
|
const P = this.weatherLayers.wind.raw;
|
|
7571
|
-
for (const
|
|
7572
|
-
if (
|
|
7573
|
-
const
|
|
7574
|
-
r > s ?
|
|
7545
|
+
for (const k in P)
|
|
7546
|
+
if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7547
|
+
const z = P[k].lng;
|
|
7548
|
+
r > s ? z.forEach((C, v) => {
|
|
7575
7549
|
var A, Z, q, X;
|
|
7576
7550
|
if (a < 2) {
|
|
7577
7551
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
7578
|
-
const Y = N.point([C,
|
|
7579
|
-
dir: ((A = P[
|
|
7580
|
-
spd: P[
|
|
7552
|
+
const Y = N.point([C, k], {
|
|
7553
|
+
dir: ((A = P[k].val) == null ? void 0 : A[v]) || ((Z = P[k].dir) == null ? void 0 : Z[v]),
|
|
7554
|
+
spd: P[k].spd[v]
|
|
7581
7555
|
});
|
|
7582
7556
|
S.push(Y);
|
|
7583
7557
|
}
|
|
7584
7558
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7585
|
-
const Y = N.point([C,
|
|
7586
|
-
dir: ((q = P[
|
|
7587
|
-
spd: P[
|
|
7559
|
+
const Y = N.point([C, k], {
|
|
7560
|
+
dir: ((q = P[k].val) == null ? void 0 : q[v]) || ((X = P[k].dir) == null ? void 0 : X[v]),
|
|
7561
|
+
spd: P[k].spd[v]
|
|
7588
7562
|
});
|
|
7589
7563
|
S.push(Y);
|
|
7590
7564
|
}
|
|
7591
|
-
}) :
|
|
7565
|
+
}) : z.forEach((C, v) => {
|
|
7592
7566
|
var A, Z, q, X;
|
|
7593
7567
|
if (a < 2) {
|
|
7594
7568
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
7595
|
-
const Y = N.point([C,
|
|
7596
|
-
dir: ((A = P[
|
|
7597
|
-
spd: P[
|
|
7569
|
+
const Y = N.point([C, k], {
|
|
7570
|
+
dir: ((A = P[k].val) == null ? void 0 : A[v]) || ((Z = P[k].dir) == null ? void 0 : Z[v]),
|
|
7571
|
+
spd: P[k].spd[v]
|
|
7598
7572
|
});
|
|
7599
7573
|
S.push(Y);
|
|
7600
7574
|
}
|
|
7601
7575
|
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7602
|
-
const Y = N.point([C,
|
|
7603
|
-
dir: ((q = P[
|
|
7604
|
-
spd: P[
|
|
7576
|
+
const Y = N.point([C, k], {
|
|
7577
|
+
dir: ((q = P[k].val) == null ? void 0 : q[v]) || ((X = P[k].dir) == null ? void 0 : X[v]),
|
|
7578
|
+
spd: P[k].spd[v]
|
|
7605
7579
|
});
|
|
7606
7580
|
S.push(Y);
|
|
7607
7581
|
}
|
|
7608
7582
|
});
|
|
7609
7583
|
}
|
|
7610
7584
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
7611
|
-
} else if (
|
|
7612
|
-
if (this.weatherLayers[
|
|
7613
|
-
S = this.weatherLayers[
|
|
7585
|
+
} else if (x === "sig-wave-height") {
|
|
7586
|
+
if (this.weatherLayers[x].data)
|
|
7587
|
+
S = this.weatherLayers[x].data;
|
|
7614
7588
|
else {
|
|
7615
7589
|
D = !0;
|
|
7616
|
-
const P = this.weatherLayers[
|
|
7590
|
+
const P = this.weatherLayers[x].raw;
|
|
7617
7591
|
if (P) {
|
|
7618
|
-
const
|
|
7619
|
-
for (const
|
|
7620
|
-
const C = P.Polygon[
|
|
7621
|
-
for (const
|
|
7622
|
-
|
|
7623
|
-
N.polygon(
|
|
7624
|
-
val: Number(
|
|
7592
|
+
const k = [];
|
|
7593
|
+
for (const z in P.Polygon) {
|
|
7594
|
+
const C = P.Polygon[z];
|
|
7595
|
+
for (const v of C)
|
|
7596
|
+
k.push(
|
|
7597
|
+
N.polygon(v, {
|
|
7598
|
+
val: Number(z)
|
|
7625
7599
|
})
|
|
7626
7600
|
);
|
|
7627
7601
|
}
|
|
7628
|
-
for (const
|
|
7629
|
-
const C = P.MultiPolygon[
|
|
7630
|
-
for (const
|
|
7631
|
-
|
|
7632
|
-
N.multiPolygon(
|
|
7633
|
-
val: Number(
|
|
7602
|
+
for (const z in P.MultiPolygon) {
|
|
7603
|
+
const C = P.MultiPolygon[z];
|
|
7604
|
+
for (const v of C)
|
|
7605
|
+
k.push(
|
|
7606
|
+
N.multiPolygon(v, {
|
|
7607
|
+
val: Number(z)
|
|
7634
7608
|
})
|
|
7635
7609
|
);
|
|
7636
7610
|
}
|
|
7637
|
-
for (const
|
|
7638
|
-
const C = P.Point[
|
|
7639
|
-
for (let
|
|
7640
|
-
|
|
7641
|
-
N.point([C.lng[
|
|
7642
|
-
val: Number(C.val[
|
|
7611
|
+
for (const z in P.Point) {
|
|
7612
|
+
const C = P.Point[z];
|
|
7613
|
+
for (let v = 0; v < ((T = C.lng) == null ? void 0 : T.length); v++)
|
|
7614
|
+
k.push(
|
|
7615
|
+
N.point([C.lng[v], z], {
|
|
7616
|
+
val: Number(C.val[v])
|
|
7643
7617
|
})
|
|
7644
7618
|
);
|
|
7645
7619
|
}
|
|
7646
|
-
S = S.concat(
|
|
7620
|
+
S = S.concat(k);
|
|
7647
7621
|
}
|
|
7648
7622
|
}
|
|
7649
7623
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
7650
|
-
} else if (
|
|
7651
|
-
if (this.weatherLayers[
|
|
7652
|
-
S = this.weatherLayers[
|
|
7624
|
+
} else if (x === "prmsl") {
|
|
7625
|
+
if (this.weatherLayers[x].data)
|
|
7626
|
+
S = this.weatherLayers[x].data;
|
|
7653
7627
|
else {
|
|
7654
7628
|
D = !0;
|
|
7655
|
-
const P = this.weatherLayers[
|
|
7629
|
+
const P = this.weatherLayers[x].raw;
|
|
7656
7630
|
if (P) {
|
|
7657
|
-
const
|
|
7658
|
-
for (const
|
|
7659
|
-
const C = P.LineString[
|
|
7660
|
-
for (const
|
|
7661
|
-
|
|
7662
|
-
N.lineString(
|
|
7663
|
-
val: Number(
|
|
7631
|
+
const k = [];
|
|
7632
|
+
for (const z in P.LineString) {
|
|
7633
|
+
const C = P.LineString[z];
|
|
7634
|
+
for (const v of C)
|
|
7635
|
+
k.push(
|
|
7636
|
+
N.lineString(v, {
|
|
7637
|
+
val: Number(z)
|
|
7664
7638
|
})
|
|
7665
7639
|
);
|
|
7666
7640
|
}
|
|
7667
|
-
for (const
|
|
7668
|
-
P.Point[
|
|
7669
|
-
C = K.convertToStdLng(C),
|
|
7670
|
-
N.point([C,
|
|
7671
|
-
val: P.Point[
|
|
7672
|
-
type: P.Point[
|
|
7641
|
+
for (const z in P.Point)
|
|
7642
|
+
P.Point[z].lng.forEach((C, v) => {
|
|
7643
|
+
C = K.convertToStdLng(C), k.push(
|
|
7644
|
+
N.point([C, z], {
|
|
7645
|
+
val: P.Point[z].val[v],
|
|
7646
|
+
type: P.Point[z].type[v]
|
|
7673
7647
|
})
|
|
7674
7648
|
);
|
|
7675
7649
|
});
|
|
7676
|
-
S = S.concat(
|
|
7650
|
+
S = S.concat(k);
|
|
7677
7651
|
}
|
|
7678
7652
|
}
|
|
7679
7653
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
7680
7654
|
}
|
|
7681
|
-
S.length && (this.weatherLayers[
|
|
7655
|
+
S.length && (this.weatherLayers[x].data = N.featureCollection(S)), D && (this.weatherLayers[x].version = Math.random() + 1);
|
|
7682
7656
|
}
|
|
7683
7657
|
}
|
|
7684
7658
|
},
|
|
@@ -7692,11 +7666,11 @@ const ts = {
|
|
|
7692
7666
|
return t.features.forEach((r) => {
|
|
7693
7667
|
if (r.geometry.type !== "Point")
|
|
7694
7668
|
if (i > a) {
|
|
7695
|
-
let s = [i, e._sw.lat, 180, e._ne.lat],
|
|
7696
|
-
|
|
7669
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], c = N.bboxClip(r, s);
|
|
7670
|
+
c.geometry.coordinates.length && o.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = N.bboxClip(r, s), c.geometry.coordinates.length && o.push(c);
|
|
7697
7671
|
} else {
|
|
7698
|
-
const s = [i, e._sw.lat, a, e._ne.lat],
|
|
7699
|
-
|
|
7672
|
+
const s = [i, e._sw.lat, a, e._ne.lat], c = N.bboxClip(r, s);
|
|
7673
|
+
c.geometry.coordinates.length && o.push(c);
|
|
7700
7674
|
}
|
|
7701
7675
|
else
|
|
7702
7676
|
o.push(r);
|
|
@@ -7720,26 +7694,26 @@ const ts = {
|
|
|
7720
7694
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
7721
7695
|
}, ys = { class: "text-body-1 py-2" }, bs = { class: "text-body-1 font-weight-medium" }, ws = { class: "text-body-2 opacity-70" }, xs = { class: "text-body-2 opacity-70 mb-3" }, vs = { class: "text-body-1 font-weight-medium" }, _s = { class: "text-body-2 opacity-70" }, ks = { class: "text-body-2 opacity-70 mb-3" }, zs = { class: "text-body-1 py-2" }, Ls = { class: "text-body-1 font-weight-medium" }, Ps = { class: "text-body-2 opacity-70" }, Cs = { class: "text-body-2 opacity-70 mb-3" }, Ts = { class: "text-body-1 font-weight-medium" }, Ss = { class: "text-body-2 opacity-70" }, Ms = { class: "text-body-2 opacity-70 mb-3" }, Is = { class: "text-body-1 py-2" }, As = { class: "text-body-1 font-weight-medium" }, Ds = { class: "text-body-2 opacity-70" }, Rs = { class: "text-body-2 opacity-70 mb-3" };
|
|
7722
7696
|
function Os(t, e, o, i, a, r) {
|
|
7723
|
-
var ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De,
|
|
7724
|
-
const s =
|
|
7697
|
+
var ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve;
|
|
7698
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), g = w("VDivider"), f = w("VCard"), L = w("VSwitch"), _ = w("VCardTitle"), T = w("VCardItem"), x = w("VCheckbox"), D = w("VRadio"), S = w("VBtnToggle"), P = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), z = w("IdmCurrentDirection"), C = w("IdmPrmsl"), v = w("IdmWindParticle"), A = w("IdmCurrentParticle"), Z = w("IdmWave"), q = w("IdmSwell"), X = w("IdmIceEdge"), Y = w("IdmIceCover"), te = w("IdmIceThickness"), oe = w("IdmPrecip3h"), J = w("IdmVisibility"), le = w("IdmWaterTemp"), pe = w("IdmTemp");
|
|
7725
7699
|
return y(), M("div", os, [
|
|
7726
7700
|
l("div", {
|
|
7727
7701
|
class: "menu-bar-box transition pa-1",
|
|
7728
7702
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
7729
7703
|
}, [
|
|
7730
|
-
|
|
7704
|
+
d(c, {
|
|
7731
7705
|
text: t.$t("weather.weatherLayers"),
|
|
7732
7706
|
location: "left"
|
|
7733
7707
|
}, {
|
|
7734
|
-
activator:
|
|
7735
|
-
|
|
7708
|
+
activator: p(({ props: H }) => [
|
|
7709
|
+
d(s, j(H, {
|
|
7736
7710
|
"min-width": "32",
|
|
7737
7711
|
width: "32",
|
|
7738
7712
|
height: "32",
|
|
7739
7713
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7740
7714
|
onClick: r.handleMenuToggle
|
|
7741
7715
|
}), {
|
|
7742
|
-
default:
|
|
7716
|
+
default: p(() => e[7] || (e[7] = [
|
|
7743
7717
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
7744
7718
|
])),
|
|
7745
7719
|
_: 2,
|
|
@@ -7754,19 +7728,19 @@ function Os(t, e, o, i, a, r) {
|
|
|
7754
7728
|
class: "menu-bar-box pa-1 rounded",
|
|
7755
7729
|
style: ae({ right: a.right + "px" })
|
|
7756
7730
|
}, [
|
|
7757
|
-
|
|
7731
|
+
d(c, {
|
|
7758
7732
|
text: "Legend",
|
|
7759
7733
|
location: "left"
|
|
7760
7734
|
}, {
|
|
7761
|
-
activator:
|
|
7762
|
-
|
|
7735
|
+
activator: p(({ props: H }) => [
|
|
7736
|
+
d(s, j(H, {
|
|
7763
7737
|
"min-width": "32",
|
|
7764
7738
|
width: "32",
|
|
7765
7739
|
height: "32",
|
|
7766
7740
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
7767
7741
|
onClick: e[0] || (e[0] = (ee) => a.legendToggle = !a.legendToggle)
|
|
7768
7742
|
}), {
|
|
7769
|
-
default:
|
|
7743
|
+
default: p(() => e[8] || (e[8] = [
|
|
7770
7744
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7771
7745
|
])),
|
|
7772
7746
|
_: 2,
|
|
@@ -7783,18 +7757,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
7783
7757
|
class: "card-info d-flex justify-center align-start",
|
|
7784
7758
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
7785
7759
|
}, {
|
|
7786
|
-
default:
|
|
7787
|
-
h
|
|
7788
|
-
default:
|
|
7760
|
+
default: p(() => [
|
|
7761
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7762
|
+
default: p(() => [
|
|
7789
7763
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
7790
|
-
|
|
7791
|
-
default:
|
|
7792
|
-
(y(!0), M(be, null, we(a.legend.barbs, (H, ee) => (y(), B(
|
|
7764
|
+
d(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
7765
|
+
default: p(() => [
|
|
7766
|
+
(y(!0), M(be, null, we(a.legend.barbs, (H, ee) => (y(), B(n, {
|
|
7793
7767
|
key: H,
|
|
7794
7768
|
cols: "6",
|
|
7795
7769
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
7796
7770
|
}, {
|
|
7797
|
-
default:
|
|
7771
|
+
default: p(() => [
|
|
7798
7772
|
l("div", is, [
|
|
7799
7773
|
l("i", {
|
|
7800
7774
|
class: Ue(["iconfont", r.barbsIconName[ee]]),
|
|
@@ -7812,21 +7786,21 @@ function Os(t, e, o, i, a, r) {
|
|
|
7812
7786
|
_: 1,
|
|
7813
7787
|
__: [9]
|
|
7814
7788
|
}),
|
|
7815
|
-
|
|
7816
|
-
h
|
|
7817
|
-
default:
|
|
7789
|
+
d(g, { vertical: "" }),
|
|
7790
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7791
|
+
default: p(() => [
|
|
7818
7792
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
7819
|
-
|
|
7793
|
+
d(u, {
|
|
7820
7794
|
class: "ma-0 ml-1",
|
|
7821
7795
|
style: { width: "100px" }
|
|
7822
7796
|
}, {
|
|
7823
|
-
default:
|
|
7824
|
-
(y(!0), M(be, null, we(a.legend.sigWaveHeight, (H, ee) => (y(), B(
|
|
7797
|
+
default: p(() => [
|
|
7798
|
+
(y(!0), M(be, null, we(a.legend.sigWaveHeight, (H, ee) => (y(), B(n, {
|
|
7825
7799
|
key: ee,
|
|
7826
7800
|
cols: "12",
|
|
7827
7801
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
7828
7802
|
}, {
|
|
7829
|
-
default:
|
|
7803
|
+
default: p(() => [
|
|
7830
7804
|
l("div", ls, [
|
|
7831
7805
|
ee === 0 ? (y(), M("div", ss)) : (y(), M("div", {
|
|
7832
7806
|
key: 1,
|
|
@@ -7844,21 +7818,21 @@ function Os(t, e, o, i, a, r) {
|
|
|
7844
7818
|
_: 1,
|
|
7845
7819
|
__: [10]
|
|
7846
7820
|
}),
|
|
7847
|
-
|
|
7848
|
-
h
|
|
7849
|
-
default:
|
|
7821
|
+
d(g, { vertical: "" }),
|
|
7822
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7823
|
+
default: p(() => [
|
|
7850
7824
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
7851
|
-
|
|
7825
|
+
d(u, {
|
|
7852
7826
|
class: "ma-0 ml-n5",
|
|
7853
7827
|
style: { width: "110px" }
|
|
7854
7828
|
}, {
|
|
7855
|
-
default:
|
|
7856
|
-
(y(!0), M(be, null, we(a.legend.current, (H, ee) => (y(), B(
|
|
7829
|
+
default: p(() => [
|
|
7830
|
+
(y(!0), M(be, null, we(a.legend.current, (H, ee) => (y(), B(n, {
|
|
7857
7831
|
key: ee,
|
|
7858
7832
|
cols: "12",
|
|
7859
7833
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
7860
7834
|
}, {
|
|
7861
|
-
default:
|
|
7835
|
+
default: p(() => [
|
|
7862
7836
|
l("div", cs, [
|
|
7863
7837
|
l("div", ms, [
|
|
7864
7838
|
l("i", {
|
|
@@ -7889,7 +7863,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7889
7863
|
l("div", hs, [
|
|
7890
7864
|
l("div", ps, [
|
|
7891
7865
|
l("div", us, b(t.$t("weather.weather")), 1),
|
|
7892
|
-
|
|
7866
|
+
d(L, {
|
|
7893
7867
|
modelValue: a.autoActive,
|
|
7894
7868
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
7895
7869
|
class: "small-switch",
|
|
@@ -7898,14 +7872,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
7898
7872
|
"hide-details": ""
|
|
7899
7873
|
}, null, 8, ["modelValue"])
|
|
7900
7874
|
]),
|
|
7901
|
-
|
|
7875
|
+
d(s, {
|
|
7902
7876
|
icon: "",
|
|
7903
7877
|
density: "compact",
|
|
7904
7878
|
variant: "plain",
|
|
7905
7879
|
class: "mr-n2",
|
|
7906
7880
|
onClick: r.handleMenuToggle
|
|
7907
7881
|
}, {
|
|
7908
|
-
default:
|
|
7882
|
+
default: p(() => e[12] || (e[12] = [
|
|
7909
7883
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
7910
7884
|
])),
|
|
7911
7885
|
_: 1,
|
|
@@ -7915,18 +7889,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
7915
7889
|
l("div", {
|
|
7916
7890
|
class: Ue(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
7917
7891
|
}, [
|
|
7918
|
-
|
|
7892
|
+
d(f, {
|
|
7919
7893
|
class: "menu-card mx-auto mb-3",
|
|
7920
7894
|
elevation: "0"
|
|
7921
7895
|
}, {
|
|
7922
|
-
default:
|
|
7923
|
-
|
|
7924
|
-
default:
|
|
7925
|
-
|
|
7896
|
+
default: p(() => [
|
|
7897
|
+
d(T, { class: "border-b-thin" }, {
|
|
7898
|
+
default: p(() => [
|
|
7899
|
+
d(_, {
|
|
7926
7900
|
class: "text-subtitle-1 font-weight-medium",
|
|
7927
7901
|
style: { "font-size": "16px !important" }
|
|
7928
7902
|
}, {
|
|
7929
|
-
default:
|
|
7903
|
+
default: p(() => [
|
|
7930
7904
|
U(b(t.$t("weather.overlays")), 1)
|
|
7931
7905
|
]),
|
|
7932
7906
|
_: 1
|
|
@@ -7934,9 +7908,9 @@ function Os(t, e, o, i, a, r) {
|
|
|
7934
7908
|
]),
|
|
7935
7909
|
_: 1
|
|
7936
7910
|
}),
|
|
7937
|
-
h
|
|
7938
|
-
default:
|
|
7939
|
-
(y(!0), M(be, null, we(a.tagLayers.filter((H) => H.overlays), (H) => (y(), B(
|
|
7911
|
+
d(h, { class: "py-2" }, {
|
|
7912
|
+
default: p(() => [
|
|
7913
|
+
(y(!0), M(be, null, we(a.tagLayers.filter((H) => H.overlays), (H) => (y(), B(x, {
|
|
7940
7914
|
key: H.key,
|
|
7941
7915
|
modelValue: a.checkList,
|
|
7942
7916
|
"onUpdate:modelValue": e[2] || (e[2] = (ee) => a.checkList = ee),
|
|
@@ -7955,18 +7929,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
7955
7929
|
]),
|
|
7956
7930
|
_: 1
|
|
7957
7931
|
}),
|
|
7958
|
-
|
|
7932
|
+
d(f, {
|
|
7959
7933
|
class: "menu-card mx-auto mb-3",
|
|
7960
7934
|
elevation: "0"
|
|
7961
7935
|
}, {
|
|
7962
|
-
default:
|
|
7963
|
-
|
|
7964
|
-
default:
|
|
7965
|
-
|
|
7936
|
+
default: p(() => [
|
|
7937
|
+
d(T, { class: "border-b-thin" }, {
|
|
7938
|
+
default: p(() => [
|
|
7939
|
+
d(_, {
|
|
7966
7940
|
class: "text-subtitle-1 font-weight-medium",
|
|
7967
7941
|
style: { "font-size": "16px !important" }
|
|
7968
7942
|
}, {
|
|
7969
|
-
default:
|
|
7943
|
+
default: p(() => [
|
|
7970
7944
|
U(b(t.$t("weather.renders")), 1)
|
|
7971
7945
|
]),
|
|
7972
7946
|
_: 1
|
|
@@ -7974,12 +7948,12 @@ function Os(t, e, o, i, a, r) {
|
|
|
7974
7948
|
]),
|
|
7975
7949
|
_: 1
|
|
7976
7950
|
}),
|
|
7977
|
-
h
|
|
7978
|
-
default:
|
|
7951
|
+
d(h, { class: "py-2" }, {
|
|
7952
|
+
default: p(() => [
|
|
7979
7953
|
(y(!0), M(be, null, we(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), M(be, {
|
|
7980
7954
|
key: H.key
|
|
7981
7955
|
}, [
|
|
7982
|
-
|
|
7956
|
+
d(D, {
|
|
7983
7957
|
modelValue: a.renderKey,
|
|
7984
7958
|
"onUpdate:modelValue": e[3] || (e[3] = (ee) => a.renderKey = ee),
|
|
7985
7959
|
label: t.$t(`weather.${H.locale}`),
|
|
@@ -7994,7 +7968,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7994
7968
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
7995
7969
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), M("div", gs, [
|
|
7996
7970
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
7997
|
-
|
|
7971
|
+
d(L, {
|
|
7998
7972
|
modelValue: a.showWindParticle,
|
|
7999
7973
|
"onUpdate:modelValue": e[4] || (e[4] = (ee) => a.showWindParticle = ee),
|
|
8000
7974
|
label: "",
|
|
@@ -8008,7 +7982,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8008
7982
|
])) : E("", !0),
|
|
8009
7983
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), M("div", fs, [
|
|
8010
7984
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
8011
|
-
|
|
7985
|
+
d(L, {
|
|
8012
7986
|
modelValue: a.showCurrentParticle,
|
|
8013
7987
|
"onUpdate:modelValue": e[5] || (e[5] = (ee) => a.showCurrentParticle = ee),
|
|
8014
7988
|
label: "",
|
|
@@ -8031,8 +8005,8 @@ function Os(t, e, o, i, a, r) {
|
|
|
8031
8005
|
group: "",
|
|
8032
8006
|
disabled: !a.autoActive
|
|
8033
8007
|
}, {
|
|
8034
|
-
default:
|
|
8035
|
-
|
|
8008
|
+
default: p(() => [
|
|
8009
|
+
d(s, {
|
|
8036
8010
|
density: "compact",
|
|
8037
8011
|
height: "30",
|
|
8038
8012
|
value: "ice-cover",
|
|
@@ -8041,12 +8015,12 @@ function Os(t, e, o, i, a, r) {
|
|
|
8041
8015
|
"base-color": "grey-lighten-1",
|
|
8042
8016
|
disabled: !a.autoActive
|
|
8043
8017
|
}, {
|
|
8044
|
-
default:
|
|
8018
|
+
default: p(() => [
|
|
8045
8019
|
U(b(t.$t("weather.coverage")), 1)
|
|
8046
8020
|
]),
|
|
8047
8021
|
_: 1
|
|
8048
8022
|
}, 8, ["color", "disabled"]),
|
|
8049
|
-
|
|
8023
|
+
d(s, {
|
|
8050
8024
|
density: "compact",
|
|
8051
8025
|
height: "30",
|
|
8052
8026
|
class: "text-none px-2",
|
|
@@ -8055,7 +8029,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8055
8029
|
disabled: !a.autoActive,
|
|
8056
8030
|
value: "ice-thickness"
|
|
8057
8031
|
}, {
|
|
8058
|
-
default:
|
|
8032
|
+
default: p(() => [
|
|
8059
8033
|
U(b(t.$t("weather.thickness")), 1)
|
|
8060
8034
|
]),
|
|
8061
8035
|
_: 1
|
|
@@ -8070,18 +8044,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
8070
8044
|
]),
|
|
8071
8045
|
_: 1
|
|
8072
8046
|
}),
|
|
8073
|
-
|
|
8047
|
+
d(f, {
|
|
8074
8048
|
class: "menu-card mx-auto mb-3",
|
|
8075
8049
|
elevation: "0"
|
|
8076
8050
|
}, {
|
|
8077
|
-
default:
|
|
8078
|
-
|
|
8079
|
-
default:
|
|
8080
|
-
|
|
8051
|
+
default: p(() => [
|
|
8052
|
+
d(T, { class: "border-b-thin" }, {
|
|
8053
|
+
default: p(() => [
|
|
8054
|
+
d(_, {
|
|
8081
8055
|
class: "text-subtitle-1 font-weight-medium",
|
|
8082
8056
|
style: { "font-size": "16px !important" }
|
|
8083
8057
|
}, {
|
|
8084
|
-
default:
|
|
8058
|
+
default: p(() => [
|
|
8085
8059
|
U(b(t.$t("weather.forecastModel")), 1)
|
|
8086
8060
|
]),
|
|
8087
8061
|
_: 1
|
|
@@ -8089,18 +8063,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
8089
8063
|
]),
|
|
8090
8064
|
_: 1
|
|
8091
8065
|
}),
|
|
8092
|
-
h
|
|
8093
|
-
default:
|
|
8094
|
-
var H, ee, je, Ce, he, fe, W, ze, $, re,
|
|
8066
|
+
d(h, { class: "" }, {
|
|
8067
|
+
default: p(() => {
|
|
8068
|
+
var H, ee, je, Ce, he, fe, W, ze, $, re, Re, O, ye, Te, Oe, Be, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt;
|
|
8095
8069
|
return [
|
|
8096
8070
|
l("div", ys, b(t.$t("weather.atmospheric")), 1),
|
|
8097
8071
|
l("div", bs, b((je = (ee = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : ee.NOAA) == null ? void 0 : je.source) + " " + b((fe = (he = (Ce = a.models) == null ? void 0 : Ce.weather) == null ? void 0 : he.NOAA) == null ? void 0 : fe.spatialResolution) + b(t.$t("units.km")) + " " + b((re = ($ = (ze = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : ze.NOAA) == null ? void 0 : $.meta) == null ? void 0 : re.days) + b(t.$t("units.days")), 1),
|
|
8098
8072
|
l("div", ws, b(t.$t("weather.source")) + ": NOAA", 1),
|
|
8099
|
-
l("div", xs, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Te = (ye = (O = (
|
|
8100
|
-
l("div", vs, b((R = (
|
|
8073
|
+
l("div", xs, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Te = (ye = (O = (Re = a.models) == null ? void 0 : Re.weather) == null ? void 0 : O.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Te.initialisationTime)), 1),
|
|
8074
|
+
l("div", vs, b((R = (Be = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : Be.ECMWF) == null ? void 0 : R.source) + " " + b((Ve = (Ge = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + b(t.$t("units.km")) + " " + b((qe = (Ye = (Pe = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : Pe.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : qe.days) + b(t.$t("units.days")), 1),
|
|
8101
8075
|
l("div", _s, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8102
8076
|
l("div", ks, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Je = (Qe = (Ke = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
8103
|
-
|
|
8077
|
+
d(g),
|
|
8104
8078
|
l("div", zs, b(t.$t("weather.wave")), 1),
|
|
8105
8079
|
l("div", Ls, b((ot = (tt = (et = ($e = a.models) == null ? void 0 : $e.marine) == null ? void 0 : et.wave) == null ? void 0 : tt.NOAA) == null ? void 0 : ot.source) + " " + b((lt = (rt = (it = (at = a.models) == null ? void 0 : at.marine) == null ? void 0 : it.wave) == null ? void 0 : rt.NOAA) == null ? void 0 : lt.spatialResolution) + b(t.$t("units.km")) + " " + b((dt = (mt = (ct = (nt = (st = a.models) == null ? void 0 : st.marine) == null ? void 0 : nt.wave) == null ? void 0 : ct.NOAA) == null ? void 0 : mt.meta) == null ? void 0 : dt.days) + b(t.$t("units.days")), 1),
|
|
8106
8080
|
l("div", Ps, b(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -8108,7 +8082,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8108
8082
|
l("div", Ts, b((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : bt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.source) + " " + b((zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.ECMWF) == null ? void 0 : zt.spatialResolution) + b(t.$t("units.km")) + " " + b((St = (Tt = (Ct = (Pt = (Lt = a.models) == null ? void 0 : Lt.marine) == null ? void 0 : Pt.wave) == null ? void 0 : Ct.ECMWF) == null ? void 0 : Tt.meta) == null ? void 0 : St.days) + b(t.$t("units.days")), 1),
|
|
8109
8083
|
l("div", Ss, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8110
8084
|
l("div", Ms, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Rt = (Dt = (At = (It = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : It.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Dt.meta) == null ? void 0 : Rt.initialisationTime)), 1),
|
|
8111
|
-
|
|
8085
|
+
d(g),
|
|
8112
8086
|
l("div", Is, b(t.$t("weather.currents")), 1),
|
|
8113
8087
|
l("div", As, b((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + b((Wt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.spatialResolution) + b(t.$t("units.km")) + " " + b((Yt = (Zt = (Vt = (Gt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Gt.current) == null ? void 0 : Vt.ECMWF) == null ? void 0 : Zt.meta) == null ? void 0 : Yt.days) + b(t.$t("units.days")), 1),
|
|
8114
8088
|
l("div", Ds, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -8131,7 +8105,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8131
8105
|
wind: (ue = a.weatherLayers) == null ? void 0 : ue.wind,
|
|
8132
8106
|
"menu-toggle": o.menuToggle
|
|
8133
8107
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : E("", !0),
|
|
8134
|
-
o.map ? (y(), B(
|
|
8108
|
+
o.map ? (y(), B(k, j({
|
|
8135
8109
|
key: 2,
|
|
8136
8110
|
map: o.map,
|
|
8137
8111
|
"before-layer": "empty-layer-2",
|
|
@@ -8139,7 +8113,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8139
8113
|
"menu-toggle": o.menuToggle,
|
|
8140
8114
|
"active-weather-layers": a.activeWeatherLayers
|
|
8141
8115
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : E("", !0),
|
|
8142
|
-
o.map ? (y(), B(
|
|
8116
|
+
o.map ? (y(), B(z, j({
|
|
8143
8117
|
key: 3,
|
|
8144
8118
|
map: o.map,
|
|
8145
8119
|
"map-feather": o.mapFeather,
|
|
@@ -8155,7 +8129,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8155
8129
|
"menu-toggle": o.menuToggle,
|
|
8156
8130
|
"active-weather-layers": a.activeWeatherLayers
|
|
8157
8131
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : E("", !0),
|
|
8158
|
-
o.map ? (y(), B(
|
|
8132
|
+
o.map ? (y(), B(v, j({
|
|
8159
8133
|
key: 5,
|
|
8160
8134
|
viewport: a.viewport,
|
|
8161
8135
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["wind-particle"],
|
|
@@ -8189,31 +8163,31 @@ function Os(t, e, o, i, a, r) {
|
|
|
8189
8163
|
o.map ? (y(), B(Y, j({
|
|
8190
8164
|
key: 10,
|
|
8191
8165
|
viewport: a.viewport,
|
|
8192
|
-
factor: (
|
|
8166
|
+
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
|
|
8193
8167
|
"menu-toggle": o.menuToggle
|
|
8194
8168
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8195
8169
|
o.map ? (y(), B(te, j({
|
|
8196
8170
|
key: 11,
|
|
8197
8171
|
viewport: a.viewport,
|
|
8198
|
-
factor: (
|
|
8172
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
|
|
8199
8173
|
"menu-toggle": o.menuToggle
|
|
8200
8174
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8201
8175
|
o.map ? (y(), B(oe, j({
|
|
8202
8176
|
key: 12,
|
|
8203
8177
|
viewport: a.viewport,
|
|
8204
|
-
factor: (
|
|
8178
|
+
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.precip3h,
|
|
8205
8179
|
"menu-toggle": o.menuToggle
|
|
8206
8180
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8207
8181
|
o.map ? (y(), B(J, j({
|
|
8208
8182
|
key: 13,
|
|
8209
8183
|
viewport: a.viewport,
|
|
8210
|
-
factor: (
|
|
8184
|
+
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
8211
8185
|
"menu-toggle": o.menuToggle
|
|
8212
8186
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8213
8187
|
o.map ? (y(), B(le, j({
|
|
8214
8188
|
key: 14,
|
|
8215
8189
|
viewport: a.viewport,
|
|
8216
|
-
factor: (
|
|
8190
|
+
factor: (De = a.weatherLayers) == null ? void 0 : De["water-temp"],
|
|
8217
8191
|
"menu-toggle": o.menuToggle
|
|
8218
8192
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8219
8193
|
o.map ? (y(), B(pe, j({
|
|
@@ -8540,21 +8514,21 @@ class Va {
|
|
|
8540
8514
|
var o, i;
|
|
8541
8515
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
8542
8516
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
8543
|
-
for (const
|
|
8544
|
-
let
|
|
8545
|
-
var
|
|
8546
|
-
return ((
|
|
8547
|
-
}),
|
|
8548
|
-
var
|
|
8549
|
-
return ((
|
|
8517
|
+
for (const c of a) {
|
|
8518
|
+
let n = eo.find((h) => {
|
|
8519
|
+
var g, f, L;
|
|
8520
|
+
return ((g = h.models) == null ? void 0 : g.includes(c)) || ((f = h.alias) == null ? void 0 : f.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
|
|
8521
|
+
}), u = to.find((h) => {
|
|
8522
|
+
var g, f, L;
|
|
8523
|
+
return ((g = h.models) == null ? void 0 : g.includes(c)) || ((f = h.alias) == null ? void 0 : f.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
|
|
8550
8524
|
});
|
|
8551
|
-
|
|
8552
|
-
var
|
|
8553
|
-
return ((
|
|
8554
|
-
}),
|
|
8555
|
-
var
|
|
8556
|
-
return ((
|
|
8557
|
-
}),
|
|
8525
|
+
n = n || eo.find((h) => {
|
|
8526
|
+
var g, f;
|
|
8527
|
+
return ((g = h.alias) == null ? void 0 : g.toLowerCase()) === ((f = u == null ? void 0 : u.alias) == null ? void 0 : f.toLowerCase());
|
|
8528
|
+
}), u = u || to.find((h) => {
|
|
8529
|
+
var g, f;
|
|
8530
|
+
return ((g = h.alias) == null ? void 0 : g.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
|
|
8531
|
+
}), n = n || eo[0], u = u || to[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = u.models) != null && i.includes(c) ? c : u.model);
|
|
8558
8532
|
}
|
|
8559
8533
|
return {
|
|
8560
8534
|
weatherModels: r.join(","),
|
|
@@ -8571,36 +8545,36 @@ class Va {
|
|
|
8571
8545
|
}), a;
|
|
8572
8546
|
}
|
|
8573
8547
|
static pickHourly(e, o) {
|
|
8574
|
-
var i, a, r, s,
|
|
8575
|
-
const he = typeof o == "string" ? I(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, ze = I((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), $ = ze.clone().add((
|
|
8548
|
+
var i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce;
|
|
8549
|
+
const he = typeof o == "string" ? I(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, ze = I((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), $ = ze.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"), re = ze.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"), Re = [];
|
|
8576
8550
|
if (he.isBetween($, re, "millisecond", "[]")) {
|
|
8577
8551
|
const O = he.utc().diff($, "h", !1);
|
|
8578
8552
|
let ye, Te;
|
|
8579
8553
|
if (fe) {
|
|
8580
|
-
let
|
|
8554
|
+
let Oe = 0, Be = 0;
|
|
8581
8555
|
for (const R of fe) {
|
|
8582
8556
|
const G = R == null ? void 0 : R.hourly;
|
|
8583
8557
|
for (let Pe = O - (O - 1) % 3; Pe <= O; Pe++)
|
|
8584
|
-
|
|
8558
|
+
Oe += (g = G == null ? void 0 : G.precipitation) == null ? void 0 : g.at(Pe);
|
|
8585
8559
|
for (let Pe = O - (O - 1) % 6; Pe <= O; Pe++)
|
|
8586
|
-
|
|
8560
|
+
Be += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(Pe);
|
|
8587
8561
|
ye = {
|
|
8588
|
-
temp: (
|
|
8589
|
-
apparentTemp: (
|
|
8562
|
+
temp: (L = G == null ? void 0 : G.temperature_2m) == null ? void 0 : L.at(O),
|
|
8563
|
+
apparentTemp: (_ = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : _.at(O),
|
|
8590
8564
|
rh: (T = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : T.at(O),
|
|
8591
|
-
dp: (
|
|
8565
|
+
dp: (x = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : x.at(O),
|
|
8592
8566
|
precip: {
|
|
8593
8567
|
probability: (D = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : D.at(O),
|
|
8594
8568
|
sum: (S = G == null ? void 0 : G.precipitation) == null ? void 0 : S.at(O),
|
|
8595
|
-
sum3Hours: Math.round(
|
|
8596
|
-
sum6Hours: Math.round(
|
|
8569
|
+
sum3Hours: Math.round(Oe * 100) / 100,
|
|
8570
|
+
sum6Hours: Math.round(Be * 100) / 100
|
|
8597
8571
|
},
|
|
8598
8572
|
pmsl: (P = G == null ? void 0 : G.pressure_msl) == null ? void 0 : P.at(O),
|
|
8599
|
-
psurf: (
|
|
8600
|
-
code: (
|
|
8573
|
+
psurf: (k = G == null ? void 0 : G.surface_pressure) == null ? void 0 : k.at(O),
|
|
8574
|
+
code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(O),
|
|
8601
8575
|
visibility: this.m2nm((C = G == null ? void 0 : G.visibility) == null ? void 0 : C.at(O)),
|
|
8602
8576
|
wind: {
|
|
8603
|
-
speed: (
|
|
8577
|
+
speed: (v = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : v.at(O),
|
|
8604
8578
|
kts: (A = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : A.at(O),
|
|
8605
8579
|
degree: (Z = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : Z.at(O),
|
|
8606
8580
|
bearing: ((q = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : q.at(O)) !== null ? (((X = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : X.at(O)) + 180) % 360 : null,
|
|
@@ -8609,7 +8583,7 @@ class Va {
|
|
|
8609
8583
|
isDay: (te = G == null ? void 0 : G.is_day) == null ? void 0 : te.at(O)
|
|
8610
8584
|
};
|
|
8611
8585
|
const { name: Ge, url: Ve, bg: Ze } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
8612
|
-
ye.name = Ge, ye.url = Ve, ye.bg = Ze, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree),
|
|
8586
|
+
ye.name = Ge, ye.url = Ve, ye.bg = Ze, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Re.push({
|
|
8613
8587
|
utc: $.add(O, "h").format(),
|
|
8614
8588
|
model: R.model,
|
|
8615
8589
|
weather: { ...ye }
|
|
@@ -8617,9 +8591,9 @@ class Va {
|
|
|
8617
8591
|
}
|
|
8618
8592
|
}
|
|
8619
8593
|
if (W) {
|
|
8620
|
-
let
|
|
8621
|
-
for (const
|
|
8622
|
-
const R =
|
|
8594
|
+
let Oe = 0;
|
|
8595
|
+
for (const Be of W) {
|
|
8596
|
+
const R = Be == null ? void 0 : Be.hourly;
|
|
8623
8597
|
Te = {
|
|
8624
8598
|
wave: {
|
|
8625
8599
|
sig: {
|
|
@@ -8638,39 +8612,39 @@ class Va {
|
|
|
8638
8612
|
wd: {
|
|
8639
8613
|
height: (de = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : de.at(O),
|
|
8640
8614
|
degree: (ke = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : ke.at(O),
|
|
8641
|
-
bearing: ((
|
|
8642
|
-
period: (
|
|
8643
|
-
peakPeriod: (
|
|
8615
|
+
bearing: ((Se = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Se.at(O)) !== null ? (((Me = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Me.at(O)) + 180) % 360 : null,
|
|
8616
|
+
period: (Ie = R == null ? void 0 : R.wind_wave_period) == null ? void 0 : Ie.at(O),
|
|
8617
|
+
peakPeriod: (Ae = R == null ? void 0 : R.wind_wave_peak_period) == null ? void 0 : Ae.at(O)
|
|
8644
8618
|
}
|
|
8645
8619
|
},
|
|
8646
8620
|
current: {
|
|
8647
|
-
speed: (
|
|
8621
|
+
speed: (De = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : De.at(O),
|
|
8648
8622
|
kts: (ve = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : ve.at(O),
|
|
8649
8623
|
degree: (H = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : H.at(O),
|
|
8650
8624
|
bearing: ((ee = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : ee.at(O)) ?? null
|
|
8651
8625
|
},
|
|
8652
8626
|
sst: (je = R == null ? void 0 : R.sea_surface_temperature) == null ? void 0 : je.at(O),
|
|
8653
8627
|
height: (Ce = R == null ? void 0 : R.sea_level_height_msl) == null ? void 0 : Ce.at(O)
|
|
8654
|
-
}, Te.wave = this.parseWave(Te.wave, ye == null ? void 0 : ye.wind), Te.current.direction = this.degree2Direction(Te.current.degree), Object.assign(Oe
|
|
8628
|
+
}, Te.wave = this.parseWave(Te.wave, ye == null ? void 0 : ye.wind), Te.current.direction = this.degree2Direction(Te.current.degree), Object.assign(Re[Oe], Te), Oe++;
|
|
8655
8629
|
}
|
|
8656
8630
|
}
|
|
8657
8631
|
}
|
|
8658
|
-
return
|
|
8632
|
+
return Re;
|
|
8659
8633
|
}
|
|
8660
8634
|
static toLegacy(e) {
|
|
8661
|
-
var o, i, a, r, s,
|
|
8635
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
8662
8636
|
return {
|
|
8663
8637
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
8664
8638
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
8665
8639
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
8666
8640
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
8667
8641
|
gusts: {
|
|
8668
|
-
kts: (
|
|
8642
|
+
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
8669
8643
|
},
|
|
8670
|
-
precip: (
|
|
8671
|
-
code: (
|
|
8672
|
-
name: (
|
|
8673
|
-
url: (
|
|
8644
|
+
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
8645
|
+
code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
|
|
8646
|
+
name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
|
|
8647
|
+
url: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.url,
|
|
8674
8648
|
wave: e == null ? void 0 : e.wave,
|
|
8675
8649
|
current: e == null ? void 0 : e.current,
|
|
8676
8650
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -8680,37 +8654,37 @@ class Va {
|
|
|
8680
8654
|
};
|
|
8681
8655
|
}
|
|
8682
8656
|
static pickDaily(e, o) {
|
|
8683
|
-
var i, a, r, s,
|
|
8684
|
-
const
|
|
8685
|
-
if (
|
|
8657
|
+
var i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae;
|
|
8658
|
+
const De = typeof o == "string" ? I(o) : o, ve = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, ee = I((r = (a = (i = ve == null ? void 0 : ve[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = I((n = (c = (s = ve == null ? void 0 : ve[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ce = [];
|
|
8659
|
+
if (De.isBetween(ee, je, "millisecond", "[]")) {
|
|
8686
8660
|
let he, fe;
|
|
8687
|
-
const W =
|
|
8661
|
+
const W = De.diff(ee, "d", !1);
|
|
8688
8662
|
if (ve)
|
|
8689
8663
|
for (const ze of ve) {
|
|
8690
8664
|
const $ = ze.daily;
|
|
8691
8665
|
he = {
|
|
8692
|
-
code: (
|
|
8666
|
+
code: (u = $.weather_code) == null ? void 0 : u.at(W),
|
|
8693
8667
|
temp: {
|
|
8694
|
-
max: (
|
|
8695
|
-
min: (
|
|
8668
|
+
max: (h = $.temperature_2m_max) == null ? void 0 : h.at(W),
|
|
8669
|
+
min: (g = $.temperature_2m_min) == null ? void 0 : g.at(W),
|
|
8696
8670
|
mean: (f = $.temperature_2m_mean) == null ? void 0 : f.at(W)
|
|
8697
8671
|
},
|
|
8698
8672
|
apparentTemp: {
|
|
8699
|
-
max: (
|
|
8700
|
-
min: (
|
|
8673
|
+
max: (L = $.apparent_temperature_max) == null ? void 0 : L.at(W),
|
|
8674
|
+
min: (_ = $.apparent_temperature_min) == null ? void 0 : _.at(W)
|
|
8701
8675
|
},
|
|
8702
8676
|
precip: {
|
|
8703
8677
|
sum: (T = $.precipitation_sum) == null ? void 0 : T.at(W),
|
|
8704
|
-
rainSum: (
|
|
8678
|
+
rainSum: (x = $.rain_sum) == null ? void 0 : x.at(W),
|
|
8705
8679
|
snowfallSum: (D = $.snowfall_sum) == null ? void 0 : D.at(W),
|
|
8706
8680
|
showersSum: (S = $.showers_sum) == null ? void 0 : S.at(W),
|
|
8707
8681
|
hours: (P = $.precipitation_hours) == null ? void 0 : P.at(W),
|
|
8708
|
-
probability: (
|
|
8682
|
+
probability: (k = $.precipitation_probability_max) == null ? void 0 : k.at(W)
|
|
8709
8683
|
},
|
|
8710
8684
|
rh: {
|
|
8711
|
-
max: (
|
|
8685
|
+
max: (z = $.relative_humidity_2m_max) == null ? void 0 : z.at(W),
|
|
8712
8686
|
min: (C = $.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
8713
|
-
mean: (
|
|
8687
|
+
mean: (v = $.relative_humidity_2m_mean) == null ? void 0 : v.at(W)
|
|
8714
8688
|
},
|
|
8715
8689
|
wind: {
|
|
8716
8690
|
speed: (A = $.wind_speed_10m_max) == null ? void 0 : A.at(W),
|
|
@@ -8720,8 +8694,8 @@ class Va {
|
|
|
8720
8694
|
bearing: ((Y = $.wind_direction_10m_dominant) == null ? void 0 : Y.at(W)) !== null ? (((te = $.wind_direction_10m_dominant) == null ? void 0 : te.at(W)) + 180) % 360 : null
|
|
8721
8695
|
}
|
|
8722
8696
|
};
|
|
8723
|
-
const { name: re, url:
|
|
8724
|
-
he.name = re, he.url =
|
|
8697
|
+
const { name: re, url: Re, bg: O } = this.parseWeatherCode(he.code, !0);
|
|
8698
|
+
he.name = re, he.url = Re, he.bg = O, he.wind.scale = this.beaufort(this.kts2ms(he.wind.kts)), he.wind.direction = this.degree2Direction(he.wind.degree), Ce.push({
|
|
8725
8699
|
utc: ee.add(W, "d").utc().format(),
|
|
8726
8700
|
model: ze.model,
|
|
8727
8701
|
weather: { ...he }
|
|
@@ -8750,9 +8724,9 @@ class Va {
|
|
|
8750
8724
|
wd: {
|
|
8751
8725
|
height: (de = re.wind_wave_height_max) == null ? void 0 : de.at(W),
|
|
8752
8726
|
degree: (ke = re.wind_wave_direction_dominant) == null ? void 0 : ke.at(W),
|
|
8753
|
-
period: (
|
|
8754
|
-
peakPeriod: (
|
|
8755
|
-
bearing: ((
|
|
8727
|
+
period: (Se = re.wind_wave_period_max) == null ? void 0 : Se.at(W),
|
|
8728
|
+
peakPeriod: (Me = re.wind_wave_peak_period_max) == null ? void 0 : Me.at(W),
|
|
8729
|
+
bearing: ((Ie = re.wind_wave_direction_dominant) == null ? void 0 : Ie.at(W)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(W)) + 180) % 360 : null
|
|
8756
8730
|
}
|
|
8757
8731
|
}
|
|
8758
8732
|
}, fe.wave = this.parseWave(fe.wave, he == null ? void 0 : he.wind), Object.assign(Ce[ze], fe), ze++;
|
|
@@ -9304,34 +9278,34 @@ const Es = {
|
|
|
9304
9278
|
async fetchTropicals() {
|
|
9305
9279
|
var a, r, s;
|
|
9306
9280
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
9307
|
-
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((
|
|
9281
|
+
let e = 0, o = 0, i = (a = oo.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
9308
9282
|
if (i > 0) {
|
|
9309
|
-
const
|
|
9283
|
+
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Ee.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
9310
9284
|
headers: {
|
|
9311
9285
|
Authorization: this.token || this.defaultMeteoToken
|
|
9312
9286
|
}
|
|
9313
9287
|
});
|
|
9314
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
9315
|
-
const
|
|
9316
|
-
await
|
|
9288
|
+
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
9289
|
+
const u = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
|
|
9290
|
+
await Ee.get(u.tropicals, {
|
|
9317
9291
|
headers: {
|
|
9318
9292
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9319
9293
|
key: "tropicals"
|
|
9320
9294
|
},
|
|
9321
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9322
|
-
}).then((
|
|
9323
|
-
var
|
|
9324
|
-
const
|
|
9325
|
-
((T = (
|
|
9326
|
-
data:
|
|
9295
|
+
responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
|
|
9296
|
+
}).then((h) => {
|
|
9297
|
+
var L, _, T;
|
|
9298
|
+
const g = Ua.convert2Geojson(((L = h == null ? void 0 : h.data) == null ? void 0 : L.data) || (h == null ? void 0 : h.data));
|
|
9299
|
+
((T = (_ = h == null ? void 0 : h.config) == null ? void 0 : _.headers) == null ? void 0 : T.key) && g && (this.tropicals = {
|
|
9300
|
+
data: g,
|
|
9327
9301
|
active: !0,
|
|
9328
9302
|
cached: !0,
|
|
9329
9303
|
type: "json",
|
|
9330
|
-
etime:
|
|
9304
|
+
etime: n.data.etime,
|
|
9331
9305
|
version: Math.random() + 1
|
|
9332
9306
|
}, this.handleInit());
|
|
9333
|
-
}).catch((
|
|
9334
|
-
console.log(`[${key}] fetch layer error: ${
|
|
9307
|
+
}).catch((h) => {
|
|
9308
|
+
console.log(`[${key}] fetch layer error: ${h}`);
|
|
9335
9309
|
});
|
|
9336
9310
|
}
|
|
9337
9311
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("tropicals elapsed: ", o, ", total: ", e += o);
|
|
@@ -9340,12 +9314,12 @@ const Es = {
|
|
|
9340
9314
|
handleRefresh() {
|
|
9341
9315
|
var e, o;
|
|
9342
9316
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
9343
|
-
var a, r, s,
|
|
9344
|
-
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (
|
|
9317
|
+
var a, r, s, c;
|
|
9318
|
+
((a = i.geometry) == null ? void 0 : a.type) === "Point" && ((r = i.properties) != null && r.important) && (i.properties.format = (c = (s = I(i.properties.date)) == null ? void 0 : s.utcOffset(this.timeZone)) == null ? void 0 : c.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
9345
9319
|
}), this.handleInit();
|
|
9346
9320
|
},
|
|
9347
9321
|
handleInit() {
|
|
9348
|
-
var t, e, o, i, a, r, s,
|
|
9322
|
+
var t, e, o, i, a, r, s, c, n, u;
|
|
9349
9323
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
9350
9324
|
"click",
|
|
9351
9325
|
[
|
|
@@ -9359,19 +9333,19 @@ const Es = {
|
|
|
9359
9333
|
this.historyPointLabelLayer
|
|
9360
9334
|
],
|
|
9361
9335
|
this.handleClick
|
|
9362
|
-
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (
|
|
9336
|
+
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (u = (n = (c = this.$parent) == null ? void 0 : c.$refs) == null ? void 0 : n.idmBottomBar) == null || u.handleToggle("tropical", !1);
|
|
9363
9337
|
},
|
|
9364
9338
|
handleRender() {
|
|
9365
|
-
var t, e, o, i, a, r, s,
|
|
9339
|
+
var t, e, o, i, a, r, s, c, n, u;
|
|
9366
9340
|
if (!this.map)
|
|
9367
9341
|
setTimeout(() => {
|
|
9368
9342
|
this.handleRender();
|
|
9369
9343
|
}, 500);
|
|
9370
9344
|
else {
|
|
9371
9345
|
if (this.tropicals) {
|
|
9372
|
-
const
|
|
9373
|
-
let f = 0,
|
|
9374
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
9346
|
+
const g = (/* @__PURE__ */ new Date()).valueOf();
|
|
9347
|
+
let f = 0, L = 0;
|
|
9348
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (g + f), console.log("[tropicals] update elapsed: ", L, ", total: ", f += L)) : (this.map.addSource(this.source, {
|
|
9375
9349
|
type: "geojson",
|
|
9376
9350
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
9377
9351
|
}), this.map.addLayer({
|
|
@@ -9468,9 +9442,9 @@ const Es = {
|
|
|
9468
9442
|
],
|
|
9469
9443
|
"text-halo-width": 4
|
|
9470
9444
|
}
|
|
9471
|
-
}),
|
|
9445
|
+
}), L = (/* @__PURE__ */ new Date()).valueOf() - (g + f), console.log("[tropical] add elapsed: ", L, ", total: ", f += L)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (g + f), console.log("[tropical] update elapsed: ", L, ", total: ", f += L)) : (this.map.addSource(this.clusterSource, {
|
|
9472
9446
|
type: "geojson",
|
|
9473
|
-
data: (
|
|
9447
|
+
data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
9474
9448
|
// cluster: true,
|
|
9475
9449
|
// clusterRadius: 10, // 聚合半径
|
|
9476
9450
|
}), this.map.addLayer({
|
|
@@ -9584,11 +9558,11 @@ const Es = {
|
|
|
9584
9558
|
"text-halo-color": "#ffffff",
|
|
9585
9559
|
"text-halo-width": 1
|
|
9586
9560
|
}
|
|
9587
|
-
}),
|
|
9561
|
+
}), L = (/* @__PURE__ */ new Date()).valueOf() - (g + f), console.log("[tropical] add elapsed: ", L, ", total: ", f += L));
|
|
9588
9562
|
}
|
|
9589
9563
|
this.handleDrawCircle();
|
|
9590
|
-
const
|
|
9591
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
9564
|
+
const h = Ua.interpolate(this.tropicals, 1);
|
|
9565
|
+
this.interpolateData = JSON.parse(JSON.stringify(h)), this.handleDateChange();
|
|
9592
9566
|
}
|
|
9593
9567
|
},
|
|
9594
9568
|
handleClear() {
|
|
@@ -9609,7 +9583,7 @@ const Es = {
|
|
|
9609
9583
|
), this.showTropicalsInfo = !1;
|
|
9610
9584
|
},
|
|
9611
9585
|
handleDateChange() {
|
|
9612
|
-
var t, e, o, i, a, r, s,
|
|
9586
|
+
var t, e, o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J;
|
|
9613
9587
|
if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9614
9588
|
const le = I(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = this.interpolateData.filter((Q) => Q.properties.date === (le == null ? void 0 : le.format()) && !Q.properties.disabled), ue = this.handleComputePolygons(pe), ce = N.featureCollection([...pe]);
|
|
9615
9589
|
ue.forEach((Q) => {
|
|
@@ -9631,7 +9605,7 @@ const Es = {
|
|
|
9631
9605
|
for (const Q of pe)
|
|
9632
9606
|
if (!Q.properties.disabled) {
|
|
9633
9607
|
let ie = "#f44336";
|
|
9634
|
-
((
|
|
9608
|
+
((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((g = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((L = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : L.kts) < 47 ? ie = "#f2f202" : ((T = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) >= 47 && ((D = (x = Q.properties) == null ? void 0 : x.wind) == null ? void 0 : D.kts) < 63 ? ie = "#ff9100" : ((P = (S = Q.properties) == null ? void 0 : S.wind) == null ? void 0 : P.kts) >= 63 && ((z = (k = Q.properties) == null ? void 0 : k.wind) == null ? void 0 : z.kts) < 79 ? ie = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((Z = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : Z.kts) < 94 ? ie = "#f903d0" : ((X = (q = Q.properties) == null ? void 0 : q.wind) == null ? void 0 : X.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
9635
9609
|
const ge = `<svg t="1719918955501"
|
|
9636
9610
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9637
9611
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9655,36 +9629,36 @@ const Es = {
|
|
|
9655
9629
|
(oe = this.map) != null && oe.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
|
|
9656
9630
|
},
|
|
9657
9631
|
handleClick(t) {
|
|
9658
|
-
var r, s,
|
|
9632
|
+
var r, s, c, n, u, h, g, f;
|
|
9659
9633
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
9660
|
-
(
|
|
9661
|
-
var
|
|
9662
|
-
return
|
|
9634
|
+
(L) => {
|
|
9635
|
+
var _;
|
|
9636
|
+
return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
|
|
9663
9637
|
}
|
|
9664
|
-
), i = (
|
|
9665
|
-
(
|
|
9666
|
-
var
|
|
9667
|
-
return
|
|
9638
|
+
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
9639
|
+
(L) => {
|
|
9640
|
+
var _;
|
|
9641
|
+
return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
|
|
9668
9642
|
}
|
|
9669
9643
|
);
|
|
9670
9644
|
this.activeTropicals = {
|
|
9671
|
-
name: (
|
|
9672
|
-
forecasts: o.map((
|
|
9673
|
-
history: (
|
|
9674
|
-
showCircle: (f = (
|
|
9645
|
+
name: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.name,
|
|
9646
|
+
forecasts: o.map((L) => L.properties),
|
|
9647
|
+
history: (h = i[0]) == null ? void 0 : h.properties,
|
|
9648
|
+
showCircle: (f = (g = o[0]) == null ? void 0 : g.properties) == null ? void 0 : f.showCircle
|
|
9675
9649
|
}, this.showTropicalsInfo = !0;
|
|
9676
9650
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
9677
9651
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new xe.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
9678
9652
|
},
|
|
9679
9653
|
handleForecastToggle(t) {
|
|
9680
|
-
var i, a, r, s,
|
|
9654
|
+
var i, a, r, s, c, n;
|
|
9681
9655
|
t.disabled = !t.disabled;
|
|
9682
9656
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
9683
|
-
o.forEach((
|
|
9684
|
-
|
|
9685
|
-
}), this.interpolateData.forEach((
|
|
9686
|
-
|
|
9687
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(N.featureCollection(o)), (
|
|
9657
|
+
o.forEach((u) => {
|
|
9658
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
9659
|
+
}), this.interpolateData.forEach((u) => {
|
|
9660
|
+
u.properties.category === e && (u.properties.disabled = t.disabled);
|
|
9661
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(N.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(N.featureCollection(o)), this.handleDateChange();
|
|
9688
9662
|
},
|
|
9689
9663
|
handleStrikeProbability(t) {
|
|
9690
9664
|
this.$emit("tropicalProbability", t);
|
|
@@ -9728,8 +9702,8 @@ const Es = {
|
|
|
9728
9702
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
9729
9703
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
9730
9704
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
9731
|
-
},
|
|
9732
|
-
e.push(
|
|
9705
|
+
}, c = this.handleComputeArc(o.geometry.coordinates, s, { ...o.properties, level: 10 });
|
|
9706
|
+
e.push(c);
|
|
9733
9707
|
}
|
|
9734
9708
|
return e;
|
|
9735
9709
|
},
|
|
@@ -9737,23 +9711,23 @@ const Es = {
|
|
|
9737
9711
|
var r;
|
|
9738
9712
|
const i = [];
|
|
9739
9713
|
for (const s in e) {
|
|
9740
|
-
const
|
|
9741
|
-
let
|
|
9714
|
+
const c = e[s] ?? 0;
|
|
9715
|
+
let n;
|
|
9742
9716
|
switch (s) {
|
|
9743
9717
|
case "ne":
|
|
9744
|
-
|
|
9718
|
+
n = N.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9745
9719
|
break;
|
|
9746
9720
|
case "se":
|
|
9747
|
-
|
|
9721
|
+
n = N.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9748
9722
|
break;
|
|
9749
9723
|
case "sw":
|
|
9750
|
-
|
|
9724
|
+
n = N.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9751
9725
|
break;
|
|
9752
9726
|
case "nw":
|
|
9753
|
-
|
|
9727
|
+
n = N.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9754
9728
|
break;
|
|
9755
9729
|
}
|
|
9756
|
-
i.push(...(r =
|
|
9730
|
+
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
9757
9731
|
}
|
|
9758
9732
|
const a = N.lineString(i);
|
|
9759
9733
|
return N.lineToPolygon(a, { properties: o });
|
|
@@ -9773,25 +9747,25 @@ const Es = {
|
|
|
9773
9747
|
style: { height: "80px" }
|
|
9774
9748
|
}, en = { class: "pa-1 d-flex justify-space-between align-center" }, tn = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
9775
9749
|
function on(t, e, o, i, a, r) {
|
|
9776
|
-
const s =
|
|
9750
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), g = w("VCard");
|
|
9777
9751
|
return y(), M("div", js, [
|
|
9778
9752
|
l("div", {
|
|
9779
9753
|
class: "menu-bar-box transition pa-1",
|
|
9780
9754
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
9781
9755
|
}, [
|
|
9782
|
-
|
|
9756
|
+
d(c, {
|
|
9783
9757
|
text: t.$t("tropical.tropicals"),
|
|
9784
9758
|
location: "left"
|
|
9785
9759
|
}, {
|
|
9786
|
-
activator:
|
|
9787
|
-
|
|
9760
|
+
activator: p(({ props: f }) => [
|
|
9761
|
+
d(s, j(f, {
|
|
9788
9762
|
"min-width": "32",
|
|
9789
9763
|
width: "32",
|
|
9790
9764
|
height: "32",
|
|
9791
9765
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9792
9766
|
onClick: r.handleMenuToggle
|
|
9793
9767
|
}), {
|
|
9794
|
-
default:
|
|
9768
|
+
default: p(() => e[4] || (e[4] = [
|
|
9795
9769
|
l("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
|
|
9796
9770
|
])),
|
|
9797
9771
|
_: 2,
|
|
@@ -9802,27 +9776,27 @@ function on(t, e, o, i, a, r) {
|
|
|
9802
9776
|
}, 8, ["text"])
|
|
9803
9777
|
], 4),
|
|
9804
9778
|
He(l("div", Ns, [
|
|
9805
|
-
|
|
9779
|
+
d(g, {
|
|
9806
9780
|
width: "400",
|
|
9807
9781
|
elevation: "16"
|
|
9808
9782
|
}, {
|
|
9809
|
-
default:
|
|
9810
|
-
|
|
9811
|
-
default:
|
|
9812
|
-
var f,
|
|
9783
|
+
default: p(() => [
|
|
9784
|
+
d(n, null, {
|
|
9785
|
+
default: p(() => {
|
|
9786
|
+
var f, L, _, T, x, D, S, P, k, z;
|
|
9813
9787
|
return [
|
|
9814
9788
|
l("div", Fs, [
|
|
9815
9789
|
l("span", Hs, b((f = a.activeTropicals) == null ? void 0 : f.name), 1),
|
|
9816
|
-
(
|
|
9790
|
+
(_ = (L = a.activeTropicals) == null ? void 0 : L.history) != null && _.level ? (y(), M("span", Ws, ", " + b((x = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : x.level), 1)) : E("", !0)
|
|
9817
9791
|
]),
|
|
9818
|
-
|
|
9792
|
+
d(s, {
|
|
9819
9793
|
icon: "",
|
|
9820
9794
|
density: "compact",
|
|
9821
9795
|
variant: "plain",
|
|
9822
9796
|
class: "close",
|
|
9823
9797
|
onClick: e[0] || (e[0] = (C) => a.showTropicalsInfo = !1)
|
|
9824
9798
|
}, {
|
|
9825
|
-
default:
|
|
9799
|
+
default: p(() => e[5] || (e[5] = [
|
|
9826
9800
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
9827
9801
|
])),
|
|
9828
9802
|
_: 1,
|
|
@@ -9830,26 +9804,26 @@ function on(t, e, o, i, a, r) {
|
|
|
9830
9804
|
}),
|
|
9831
9805
|
l("div", Us, [
|
|
9832
9806
|
e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
9833
|
-
l("span", null, b(r.computeTime(((S = (D = a.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : S.updated) || ((
|
|
9807
|
+
l("span", null, b(r.computeTime(((S = (D = a.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : S.updated) || ((z = (k = (P = a.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : k.filter((C) => !C.disabled)[0]) == null ? void 0 : z.date))), 1)
|
|
9834
9808
|
])
|
|
9835
9809
|
];
|
|
9836
9810
|
}),
|
|
9837
9811
|
_: 1
|
|
9838
9812
|
}),
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
default:
|
|
9842
|
-
var f,
|
|
9813
|
+
d(u),
|
|
9814
|
+
d(n, { class: "text-body-1" }, {
|
|
9815
|
+
default: p(() => {
|
|
9816
|
+
var f, L, _, T, x, D, S, P, k;
|
|
9843
9817
|
return [
|
|
9844
9818
|
l("div", Gs, [
|
|
9845
9819
|
l("div", Vs, [
|
|
9846
9820
|
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
9847
|
-
l("span", null, b(((
|
|
9848
|
-
l("span", null, ", BF " + b(r.computeBF(((T = (
|
|
9821
|
+
l("span", null, b(((L = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : L.kts) || "-") + " kts", 1),
|
|
9822
|
+
l("span", null, ", BF " + b(r.computeBF(((T = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : T.kts) || "-")), 1)
|
|
9849
9823
|
]),
|
|
9850
9824
|
l("div", Zs, [
|
|
9851
9825
|
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
9852
|
-
l("span", null, b(((D = (
|
|
9826
|
+
l("span", null, b(((D = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : D.pressure) || "-") + " hPa", 1)
|
|
9853
9827
|
])
|
|
9854
9828
|
]),
|
|
9855
9829
|
l("div", Ys, [
|
|
@@ -9868,16 +9842,16 @@ function on(t, e, o, i, a, r) {
|
|
|
9868
9842
|
style: { width: "max-content" }
|
|
9869
9843
|
}, "Forecast Models : ", -1)),
|
|
9870
9844
|
l("div", Qs, [
|
|
9871
|
-
(y(!0), M(be, null, we((
|
|
9845
|
+
(y(!0), M(be, null, we((k = a.activeTropicals) == null ? void 0 : k.forecasts, (z, C) => (y(), B(s, {
|
|
9872
9846
|
key: C,
|
|
9873
9847
|
density: "compact",
|
|
9874
|
-
variant:
|
|
9875
|
-
color:
|
|
9876
|
-
class: Ue(["model text-none text-body-1",
|
|
9877
|
-
onClick: (
|
|
9848
|
+
variant: z.disabled ? "outlined" : "flat",
|
|
9849
|
+
color: z.disabled ? "" : "primary",
|
|
9850
|
+
class: Ue(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
|
|
9851
|
+
onClick: (v) => r.handleForecastToggle(z)
|
|
9878
9852
|
}, {
|
|
9879
|
-
default:
|
|
9880
|
-
U(b(
|
|
9853
|
+
default: p(() => [
|
|
9854
|
+
U(b(z.model), 1)
|
|
9881
9855
|
]),
|
|
9882
9856
|
_: 2
|
|
9883
9857
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -9887,10 +9861,10 @@ function on(t, e, o, i, a, r) {
|
|
|
9887
9861
|
}),
|
|
9888
9862
|
_: 1
|
|
9889
9863
|
}),
|
|
9890
|
-
|
|
9891
|
-
h
|
|
9892
|
-
default:
|
|
9893
|
-
|
|
9864
|
+
d(u),
|
|
9865
|
+
d(h, { class: "d-flex justify-space-between" }, {
|
|
9866
|
+
default: p(() => [
|
|
9867
|
+
d(s, {
|
|
9894
9868
|
density: "compact",
|
|
9895
9869
|
"prepend-icon": "",
|
|
9896
9870
|
variant: "text",
|
|
@@ -9898,10 +9872,10 @@ function on(t, e, o, i, a, r) {
|
|
|
9898
9872
|
class: "text-none text-body-1",
|
|
9899
9873
|
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
9900
9874
|
}, {
|
|
9901
|
-
prepend:
|
|
9875
|
+
prepend: p(() => e[12] || (e[12] = [
|
|
9902
9876
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9903
9877
|
])),
|
|
9904
|
-
default:
|
|
9878
|
+
default: p(() => [
|
|
9905
9879
|
e[13] || (e[13] = U(" Legend ", -1))
|
|
9906
9880
|
]),
|
|
9907
9881
|
_: 1,
|
|
@@ -9915,20 +9889,20 @@ function on(t, e, o, i, a, r) {
|
|
|
9915
9889
|
class: "text-none text-body-1",
|
|
9916
9890
|
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
9917
9891
|
}, {
|
|
9918
|
-
default:
|
|
9892
|
+
default: p(() => e[14] || (e[14] = [
|
|
9919
9893
|
U("Notify", -1)
|
|
9920
9894
|
])),
|
|
9921
9895
|
_: 1,
|
|
9922
9896
|
__: [14]
|
|
9923
9897
|
})) : E("", !0),
|
|
9924
|
-
|
|
9898
|
+
d(s, {
|
|
9925
9899
|
variant: "text",
|
|
9926
9900
|
density: "compact",
|
|
9927
9901
|
"append-icon": "mdi-chevron-right",
|
|
9928
9902
|
class: "text-none text-body-1",
|
|
9929
9903
|
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
9930
9904
|
}, {
|
|
9931
|
-
default:
|
|
9905
|
+
default: p(() => e[15] || (e[15] = [
|
|
9932
9906
|
U("View Report", -1)
|
|
9933
9907
|
])),
|
|
9934
9908
|
_: 1,
|
|
@@ -9942,13 +9916,13 @@ function on(t, e, o, i, a, r) {
|
|
|
9942
9916
|
_: 1
|
|
9943
9917
|
}),
|
|
9944
9918
|
l("div", $s, [
|
|
9945
|
-
He(
|
|
9919
|
+
He(d(g, {
|
|
9946
9920
|
width: "400",
|
|
9947
9921
|
elevation: "16"
|
|
9948
9922
|
}, {
|
|
9949
|
-
default:
|
|
9950
|
-
|
|
9951
|
-
default:
|
|
9923
|
+
default: p(() => [
|
|
9924
|
+
d(n, null, {
|
|
9925
|
+
default: p(() => [
|
|
9952
9926
|
He(l("div", en, e[16] || (e[16] = [
|
|
9953
9927
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
9954
9928
|
l("div", { class: "icon td" }),
|
|
@@ -10164,28 +10138,28 @@ const an = {
|
|
|
10164
10138
|
style: { height: "56px" }
|
|
10165
10139
|
};
|
|
10166
10140
|
function cn(t, e, o, i, a, r) {
|
|
10167
|
-
const s =
|
|
10141
|
+
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), g = w("VList"), f = w("VCardText"), L = w("VCardActions"), _ = w("VCard");
|
|
10168
10142
|
return y(), M("div", rn, [
|
|
10169
|
-
|
|
10143
|
+
d(s, {
|
|
10170
10144
|
text: "",
|
|
10171
10145
|
height: "30",
|
|
10172
10146
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
10173
10147
|
onClick: r.handleOpenDatePicker
|
|
10174
10148
|
}, {
|
|
10175
|
-
default:
|
|
10149
|
+
default: p(() => [
|
|
10176
10150
|
U(b(a.currentDateTime) + " | UTC " + b(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
10177
10151
|
]),
|
|
10178
10152
|
_: 1
|
|
10179
10153
|
}, 8, ["onClick"]),
|
|
10180
|
-
a.showDatePicker ? (y(), B(
|
|
10154
|
+
a.showDatePicker ? (y(), B(_, {
|
|
10181
10155
|
key: 0,
|
|
10182
10156
|
class: "card-box d-flex flex-column"
|
|
10183
10157
|
}, {
|
|
10184
|
-
default:
|
|
10185
|
-
|
|
10186
|
-
default:
|
|
10158
|
+
default: p(() => [
|
|
10159
|
+
d(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
10160
|
+
default: p(() => [
|
|
10187
10161
|
l("div", ln, [
|
|
10188
|
-
|
|
10162
|
+
d(c, {
|
|
10189
10163
|
modelValue: a.currentDate,
|
|
10190
10164
|
"onUpdate:modelValue": e[0] || (e[0] = (T) => a.currentDate = T),
|
|
10191
10165
|
min: a.dateRange[0],
|
|
@@ -10199,16 +10173,16 @@ function cn(t, e, o, i, a, r) {
|
|
|
10199
10173
|
"onUpdate:month": r.handleUpdateMonth
|
|
10200
10174
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
10201
10175
|
]),
|
|
10202
|
-
|
|
10176
|
+
d(n, {
|
|
10203
10177
|
class: "h-100",
|
|
10204
10178
|
vertical: ""
|
|
10205
10179
|
}),
|
|
10206
10180
|
l("div", sn, [
|
|
10207
10181
|
l("div", nn, b(a.currentTime), 1),
|
|
10208
|
-
|
|
10209
|
-
default:
|
|
10210
|
-
(y(!0), M(be, null, we(r.hourOptions, (T,
|
|
10211
|
-
key:
|
|
10182
|
+
d(g, { class: "pa-0 flex-1-1-0" }, {
|
|
10183
|
+
default: p(() => [
|
|
10184
|
+
(y(!0), M(be, null, we(r.hourOptions, (T, x) => (y(), B(h, {
|
|
10185
|
+
key: x,
|
|
10212
10186
|
value: T,
|
|
10213
10187
|
color: "primary",
|
|
10214
10188
|
active: a.currentTime === T,
|
|
@@ -10216,12 +10190,12 @@ function cn(t, e, o, i, a, r) {
|
|
|
10216
10190
|
height: "26",
|
|
10217
10191
|
"min-height": "26"
|
|
10218
10192
|
}, {
|
|
10219
|
-
default:
|
|
10220
|
-
|
|
10193
|
+
default: p(() => [
|
|
10194
|
+
d(u, {
|
|
10221
10195
|
class: "text-body-2 text-center",
|
|
10222
10196
|
onClick: (D) => a.currentTime = T
|
|
10223
10197
|
}, {
|
|
10224
|
-
default:
|
|
10198
|
+
default: p(() => [
|
|
10225
10199
|
U(b(T), 1)
|
|
10226
10200
|
]),
|
|
10227
10201
|
_: 2
|
|
@@ -10236,32 +10210,32 @@ function cn(t, e, o, i, a, r) {
|
|
|
10236
10210
|
]),
|
|
10237
10211
|
_: 1
|
|
10238
10212
|
}),
|
|
10239
|
-
|
|
10240
|
-
|
|
10213
|
+
d(n),
|
|
10214
|
+
d(L, {
|
|
10241
10215
|
class: "justify-end pa-0 pr-4",
|
|
10242
10216
|
style: { height: "50px" }
|
|
10243
10217
|
}, {
|
|
10244
|
-
default:
|
|
10245
|
-
|
|
10218
|
+
default: p(() => [
|
|
10219
|
+
d(s, {
|
|
10246
10220
|
size: "small",
|
|
10247
10221
|
variant: "tonal",
|
|
10248
10222
|
class: "text-none",
|
|
10249
10223
|
onClick: r.handleCancelDate
|
|
10250
10224
|
}, {
|
|
10251
|
-
default:
|
|
10225
|
+
default: p(() => e[1] || (e[1] = [
|
|
10252
10226
|
U("Cancel", -1)
|
|
10253
10227
|
])),
|
|
10254
10228
|
_: 1,
|
|
10255
10229
|
__: [1]
|
|
10256
10230
|
}, 8, ["onClick"]),
|
|
10257
|
-
|
|
10231
|
+
d(s, {
|
|
10258
10232
|
size: "small",
|
|
10259
10233
|
variant: "tonal",
|
|
10260
10234
|
color: "primary",
|
|
10261
10235
|
class: "text-none",
|
|
10262
10236
|
onClick: r.handleConfirmDate
|
|
10263
10237
|
}, {
|
|
10264
|
-
default:
|
|
10238
|
+
default: p(() => e[2] || (e[2] = [
|
|
10265
10239
|
U("Confirm", -1)
|
|
10266
10240
|
])),
|
|
10267
10241
|
_: 1,
|
|
@@ -10495,7 +10469,7 @@ const mn = {
|
|
|
10495
10469
|
forecastDays: t.day ?? 7,
|
|
10496
10470
|
weatherModels: e,
|
|
10497
10471
|
marineModels: o
|
|
10498
|
-
}, a = await
|
|
10472
|
+
}, a = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
10499
10473
|
headers: {
|
|
10500
10474
|
Authorization: this.token || this.defaultMeteoToken
|
|
10501
10475
|
}
|
|
@@ -10512,7 +10486,7 @@ const mn = {
|
|
|
10512
10486
|
pastDays: 1,
|
|
10513
10487
|
weatherModels: e,
|
|
10514
10488
|
marineModels: o
|
|
10515
|
-
}, a = await
|
|
10489
|
+
}, a = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
10516
10490
|
headers: {
|
|
10517
10491
|
Authorization: this.token || this.defaultMeteoToken
|
|
10518
10492
|
}
|
|
@@ -10520,10 +10494,10 @@ const mn = {
|
|
|
10520
10494
|
(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.loading = !1;
|
|
10521
10495
|
},
|
|
10522
10496
|
initTableData(t) {
|
|
10523
|
-
var o, i, a, r, s,
|
|
10497
|
+
var o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke;
|
|
10524
10498
|
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;
|
|
10525
10499
|
const e = ((s = ao.pickHourly(t, I(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
10526
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((
|
|
10500
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((g = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : g.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.kts, 1) ?? "-", this.currentHourData.windDir = (x = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : x.direction, this.currentHourData.windLevel = this.roundPrecision((S = (D = e == null ? void 0 : e.weather) == null ? void 0 : D.wind) == null ? void 0 : S.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((q = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.sig) == null ? void 0 : q.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (te = e == null ? void 0 : e.wave) == null ? void 0 : te.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((ue = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (Q = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : Q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ge = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ge.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ke = e == null ? void 0 : e.weather) == null ? void 0 : ke.url;
|
|
10527
10501
|
},
|
|
10528
10502
|
handleBind() {
|
|
10529
10503
|
var t, e;
|
|
@@ -10598,25 +10572,25 @@ const mn = {
|
|
|
10598
10572
|
"aria-hidden": "true"
|
|
10599
10573
|
}, kn = ["xlink:href"], zn = { class: "d-flex justify-start align-center" }, Ln = { class: "mx-2" };
|
|
10600
10574
|
function Pn(t, e, o, i, a, r) {
|
|
10601
|
-
const s =
|
|
10575
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), g = w("VCol"), f = w("VRow"), L = w("DateTimePicker"), _ = w("VBtnToggle"), T = w("VCardActions"), x = w("VForm"), D = w("VCardText"), S = w("VCard"), P = w("VIcon");
|
|
10602
10576
|
return y(), M("div", dn, [
|
|
10603
10577
|
l("div", {
|
|
10604
10578
|
class: "menu-bar-box transition pa-1",
|
|
10605
10579
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
10606
10580
|
}, [
|
|
10607
|
-
|
|
10581
|
+
d(c, {
|
|
10608
10582
|
text: t.$t("spot.spotsMeteo"),
|
|
10609
10583
|
location: "left"
|
|
10610
10584
|
}, {
|
|
10611
|
-
activator:
|
|
10612
|
-
|
|
10585
|
+
activator: p(({ props: k }) => [
|
|
10586
|
+
d(s, j(k, {
|
|
10613
10587
|
"min-width": "32",
|
|
10614
10588
|
width: "32",
|
|
10615
10589
|
height: "32",
|
|
10616
10590
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
10617
10591
|
onClick: r.handleMenuToggle
|
|
10618
10592
|
}), {
|
|
10619
|
-
default:
|
|
10593
|
+
default: p(() => e[8] || (e[8] = [
|
|
10620
10594
|
l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
10621
10595
|
])),
|
|
10622
10596
|
_: 2,
|
|
@@ -10631,20 +10605,20 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10631
10605
|
class: "spot-form-card",
|
|
10632
10606
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
10633
10607
|
}, {
|
|
10634
|
-
default:
|
|
10635
|
-
|
|
10636
|
-
default:
|
|
10608
|
+
default: p(() => [
|
|
10609
|
+
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
10610
|
+
default: p(() => [
|
|
10637
10611
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
10638
10612
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
10639
10613
|
], -1)),
|
|
10640
|
-
|
|
10614
|
+
d(s, {
|
|
10641
10615
|
icon: "",
|
|
10642
10616
|
density: "compact",
|
|
10643
10617
|
variant: "plain",
|
|
10644
10618
|
class: "mr-n2",
|
|
10645
10619
|
onClick: r.handleCloseForm
|
|
10646
10620
|
}, {
|
|
10647
|
-
default:
|
|
10621
|
+
default: p(() => e[9] || (e[9] = [
|
|
10648
10622
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
10649
10623
|
])),
|
|
10650
10624
|
_: 1,
|
|
@@ -10654,16 +10628,16 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10654
10628
|
_: 1,
|
|
10655
10629
|
__: [10]
|
|
10656
10630
|
}),
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
default:
|
|
10660
|
-
|
|
10631
|
+
d(u),
|
|
10632
|
+
d(D, { class: "text-body-1 py-1" }, {
|
|
10633
|
+
default: p(() => [
|
|
10634
|
+
d(x, {
|
|
10661
10635
|
ref: "spotForm",
|
|
10662
10636
|
autocomplete: "off",
|
|
10663
10637
|
class: "form-box",
|
|
10664
10638
|
onSubmit: io(r.submitForm, ["prevent"])
|
|
10665
10639
|
}, {
|
|
10666
|
-
default:
|
|
10640
|
+
default: p(() => [
|
|
10667
10641
|
l("div", hn, [
|
|
10668
10642
|
(y(), M("svg", pn, [
|
|
10669
10643
|
l("use", {
|
|
@@ -10672,16 +10646,16 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10672
10646
|
])),
|
|
10673
10647
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
10674
10648
|
]),
|
|
10675
|
-
|
|
10676
|
-
default:
|
|
10677
|
-
|
|
10649
|
+
d(f, { class: "ma-0" }, {
|
|
10650
|
+
default: p(() => [
|
|
10651
|
+
d(g, {
|
|
10678
10652
|
cols: "4",
|
|
10679
10653
|
class: "pa-0 d-flex"
|
|
10680
10654
|
}, {
|
|
10681
|
-
default:
|
|
10682
|
-
h
|
|
10655
|
+
default: p(() => [
|
|
10656
|
+
d(h, {
|
|
10683
10657
|
modelValue: a.form.lngDegree,
|
|
10684
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
10658
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
10685
10659
|
rules: a.formRules.lngDegree,
|
|
10686
10660
|
density: "compact",
|
|
10687
10661
|
variant: "outlined",
|
|
@@ -10693,14 +10667,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10693
10667
|
_: 1,
|
|
10694
10668
|
__: [12]
|
|
10695
10669
|
}),
|
|
10696
|
-
|
|
10670
|
+
d(g, {
|
|
10697
10671
|
cols: "6",
|
|
10698
10672
|
class: "pa-0 d-flex"
|
|
10699
10673
|
}, {
|
|
10700
|
-
default:
|
|
10701
|
-
h
|
|
10674
|
+
default: p(() => [
|
|
10675
|
+
d(h, {
|
|
10702
10676
|
modelValue: a.form.lngMinute,
|
|
10703
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
10677
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
10704
10678
|
rules: a.formRules.lngMinute,
|
|
10705
10679
|
label: "",
|
|
10706
10680
|
density: "compact",
|
|
@@ -10713,12 +10687,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10713
10687
|
_: 1,
|
|
10714
10688
|
__: [13]
|
|
10715
10689
|
}),
|
|
10716
|
-
|
|
10690
|
+
d(g, {
|
|
10717
10691
|
cols: "2",
|
|
10718
10692
|
class: "pa-0"
|
|
10719
10693
|
}, {
|
|
10720
|
-
default:
|
|
10721
|
-
|
|
10694
|
+
default: p(() => [
|
|
10695
|
+
d(s, {
|
|
10722
10696
|
variant: "outlined",
|
|
10723
10697
|
density: "compact",
|
|
10724
10698
|
width: "32",
|
|
@@ -10726,9 +10700,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10726
10700
|
height: "32",
|
|
10727
10701
|
class: "",
|
|
10728
10702
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10729
|
-
onClick: e[2] || (e[2] = (
|
|
10703
|
+
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10730
10704
|
}, {
|
|
10731
|
-
default:
|
|
10705
|
+
default: p(() => [
|
|
10732
10706
|
U(b(a.form.lngDirection), 1)
|
|
10733
10707
|
]),
|
|
10734
10708
|
_: 1
|
|
@@ -10747,16 +10721,16 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10747
10721
|
])),
|
|
10748
10722
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
10749
10723
|
]),
|
|
10750
|
-
|
|
10751
|
-
default:
|
|
10752
|
-
|
|
10724
|
+
d(f, { class: "ma-0" }, {
|
|
10725
|
+
default: p(() => [
|
|
10726
|
+
d(g, {
|
|
10753
10727
|
cols: "4",
|
|
10754
10728
|
class: "pa-0 d-flex"
|
|
10755
10729
|
}, {
|
|
10756
|
-
default:
|
|
10757
|
-
h
|
|
10730
|
+
default: p(() => [
|
|
10731
|
+
d(h, {
|
|
10758
10732
|
modelValue: a.form.latDegree,
|
|
10759
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
10733
|
+
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
10760
10734
|
rules: a.formRules.latDegree,
|
|
10761
10735
|
label: "",
|
|
10762
10736
|
density: "compact",
|
|
@@ -10771,14 +10745,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10771
10745
|
_: 1,
|
|
10772
10746
|
__: [15]
|
|
10773
10747
|
}),
|
|
10774
|
-
|
|
10748
|
+
d(g, {
|
|
10775
10749
|
cols: "6",
|
|
10776
10750
|
class: "pa-0 d-flex"
|
|
10777
10751
|
}, {
|
|
10778
|
-
default:
|
|
10779
|
-
h
|
|
10752
|
+
default: p(() => [
|
|
10753
|
+
d(h, {
|
|
10780
10754
|
modelValue: a.form.latMinute,
|
|
10781
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
10755
|
+
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
10782
10756
|
rules: a.formRules.latMinute,
|
|
10783
10757
|
label: "",
|
|
10784
10758
|
density: "compact",
|
|
@@ -10791,12 +10765,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10791
10765
|
_: 1,
|
|
10792
10766
|
__: [16]
|
|
10793
10767
|
}),
|
|
10794
|
-
|
|
10768
|
+
d(g, {
|
|
10795
10769
|
cols: "2",
|
|
10796
10770
|
class: "pa-0"
|
|
10797
10771
|
}, {
|
|
10798
|
-
default:
|
|
10799
|
-
|
|
10772
|
+
default: p(() => [
|
|
10773
|
+
d(s, {
|
|
10800
10774
|
variant: "outlined",
|
|
10801
10775
|
density: "compact",
|
|
10802
10776
|
width: "32",
|
|
@@ -10804,9 +10778,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10804
10778
|
height: "32",
|
|
10805
10779
|
class: "text-body-1",
|
|
10806
10780
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10807
|
-
onClick: e[5] || (e[5] = (
|
|
10781
|
+
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10808
10782
|
}, {
|
|
10809
|
-
default:
|
|
10783
|
+
default: p(() => [
|
|
10810
10784
|
U(b(a.form.latDirection), 1)
|
|
10811
10785
|
]),
|
|
10812
10786
|
_: 1
|
|
@@ -10825,18 +10799,18 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10825
10799
|
])),
|
|
10826
10800
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
10827
10801
|
]),
|
|
10828
|
-
|
|
10829
|
-
default:
|
|
10830
|
-
|
|
10802
|
+
d(f, { class: "ma-0 mb-4" }, {
|
|
10803
|
+
default: p(() => [
|
|
10804
|
+
d(g, {
|
|
10831
10805
|
cols: "12",
|
|
10832
10806
|
class: "pa-0"
|
|
10833
10807
|
}, {
|
|
10834
|
-
default:
|
|
10835
|
-
|
|
10808
|
+
default: p(() => [
|
|
10809
|
+
d(L, j({
|
|
10836
10810
|
"date-time": a.form.dateTime,
|
|
10837
10811
|
"time-zone": o.timeZone
|
|
10838
10812
|
}, t.$attrs, {
|
|
10839
|
-
onDateTime: e[6] || (e[6] = (
|
|
10813
|
+
onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
|
|
10840
10814
|
}), null, 16, ["date-time", "time-zone"])
|
|
10841
10815
|
]),
|
|
10842
10816
|
_: 1
|
|
@@ -10852,24 +10826,24 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10852
10826
|
])),
|
|
10853
10827
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
10854
10828
|
]),
|
|
10855
|
-
|
|
10856
|
-
default:
|
|
10857
|
-
|
|
10829
|
+
d(f, { class: "ma-0 mb-2" }, {
|
|
10830
|
+
default: p(() => [
|
|
10831
|
+
d(g, {
|
|
10858
10832
|
cols: "12",
|
|
10859
10833
|
class: "pa-0"
|
|
10860
10834
|
}, {
|
|
10861
|
-
default:
|
|
10862
|
-
|
|
10835
|
+
default: p(() => [
|
|
10836
|
+
d(_, {
|
|
10863
10837
|
modelValue: a.form.forecastModel,
|
|
10864
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
10838
|
+
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
10865
10839
|
class: "w-100",
|
|
10866
10840
|
rounded: "",
|
|
10867
10841
|
height: "30",
|
|
10868
10842
|
density: "compact",
|
|
10869
10843
|
group: ""
|
|
10870
10844
|
}, {
|
|
10871
|
-
default:
|
|
10872
|
-
|
|
10845
|
+
default: p(() => [
|
|
10846
|
+
d(s, {
|
|
10873
10847
|
density: "compact",
|
|
10874
10848
|
height: "30",
|
|
10875
10849
|
value: "GFS",
|
|
@@ -10877,13 +10851,13 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10877
10851
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
10878
10852
|
"base-color": ""
|
|
10879
10853
|
}, {
|
|
10880
|
-
default:
|
|
10854
|
+
default: p(() => e[19] || (e[19] = [
|
|
10881
10855
|
U("NOAA", -1)
|
|
10882
10856
|
])),
|
|
10883
10857
|
_: 1,
|
|
10884
10858
|
__: [19]
|
|
10885
10859
|
}, 8, ["class", "color"]),
|
|
10886
|
-
|
|
10860
|
+
d(s, {
|
|
10887
10861
|
density: "compact",
|
|
10888
10862
|
height: "30",
|
|
10889
10863
|
class: Ue(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1"]),
|
|
@@ -10891,7 +10865,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10891
10865
|
"base-color": "",
|
|
10892
10866
|
value: "ECMWF"
|
|
10893
10867
|
}, {
|
|
10894
|
-
default:
|
|
10868
|
+
default: p(() => e[20] || (e[20] = [
|
|
10895
10869
|
U("ECMWF", -1)
|
|
10896
10870
|
])),
|
|
10897
10871
|
_: 1,
|
|
@@ -10906,22 +10880,22 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10906
10880
|
]),
|
|
10907
10881
|
_: 1
|
|
10908
10882
|
}),
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
default:
|
|
10912
|
-
|
|
10883
|
+
d(u),
|
|
10884
|
+
d(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
10885
|
+
default: p(() => [
|
|
10886
|
+
d(s, {
|
|
10913
10887
|
size: "small",
|
|
10914
10888
|
variant: "outlined",
|
|
10915
10889
|
class: "text-none text-body-1",
|
|
10916
10890
|
onClick: r.cancelForm
|
|
10917
10891
|
}, {
|
|
10918
|
-
default:
|
|
10892
|
+
default: p(() => e[21] || (e[21] = [
|
|
10919
10893
|
U("Clear", -1)
|
|
10920
10894
|
])),
|
|
10921
10895
|
_: 1,
|
|
10922
10896
|
__: [21]
|
|
10923
10897
|
}, 8, ["onClick"]),
|
|
10924
|
-
|
|
10898
|
+
d(s, {
|
|
10925
10899
|
ref: "submitSpot",
|
|
10926
10900
|
loading: a.loading,
|
|
10927
10901
|
size: "small",
|
|
@@ -10930,7 +10904,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10930
10904
|
type: "submit",
|
|
10931
10905
|
class: "text-none text-body-1"
|
|
10932
10906
|
}, {
|
|
10933
|
-
default:
|
|
10907
|
+
default: p(() => e[22] || (e[22] = [
|
|
10934
10908
|
U("Confirm", -1)
|
|
10935
10909
|
])),
|
|
10936
10910
|
_: 1,
|
|
@@ -10948,28 +10922,28 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10948
10922
|
]),
|
|
10949
10923
|
_: 1
|
|
10950
10924
|
}, 8, ["style"])) : E("", !0),
|
|
10951
|
-
He(
|
|
10925
|
+
He(d(S, {
|
|
10952
10926
|
id: "idm-gl4-spot-meteo",
|
|
10953
10927
|
class: "spot-meteo",
|
|
10954
10928
|
style: { width: "490px", "z-index": "9" }
|
|
10955
10929
|
}, {
|
|
10956
|
-
default:
|
|
10957
|
-
|
|
10958
|
-
default:
|
|
10959
|
-
var
|
|
10930
|
+
default: p(() => [
|
|
10931
|
+
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
10932
|
+
default: p(() => {
|
|
10933
|
+
var k, z, C, v;
|
|
10960
10934
|
return [
|
|
10961
10935
|
l("div", zn, [
|
|
10962
10936
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
10963
|
-
l("div", Ln, b(r.computeLat(((
|
|
10937
|
+
l("div", Ln, b(r.computeLat(((k = a.form) == null ? void 0 : k.lat) || ((z = a.currentHourData) == null ? void 0 : z.lat))) + "," + b(r.computeLng(((C = a.form) == null ? void 0 : C.lng) || ((v = a.currentHourData) == null ? void 0 : v.lng))), 1)
|
|
10964
10938
|
]),
|
|
10965
|
-
|
|
10939
|
+
d(s, {
|
|
10966
10940
|
class: "mr-n2",
|
|
10967
10941
|
density: "comfortable",
|
|
10968
10942
|
icon: "",
|
|
10969
10943
|
variant: "plain",
|
|
10970
10944
|
onClick: io(r.handleCloseMeteo, ["stop"])
|
|
10971
10945
|
}, {
|
|
10972
|
-
default:
|
|
10946
|
+
default: p(() => e[24] || (e[24] = [
|
|
10973
10947
|
l("i", {
|
|
10974
10948
|
class: "iconfont icon-close",
|
|
10975
10949
|
style: { "font-size": "20px" }
|
|
@@ -10982,29 +10956,29 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10982
10956
|
}),
|
|
10983
10957
|
_: 1
|
|
10984
10958
|
}),
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
default:
|
|
10988
|
-
|
|
10989
|
-
default:
|
|
10990
|
-
|
|
10959
|
+
d(u),
|
|
10960
|
+
d(D, { class: "text-body-1 ml-n8" }, {
|
|
10961
|
+
default: p(() => [
|
|
10962
|
+
d(f, null, {
|
|
10963
|
+
default: p(() => [
|
|
10964
|
+
d(g, {
|
|
10991
10965
|
cols: "3",
|
|
10992
10966
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
10993
10967
|
}, {
|
|
10994
|
-
default:
|
|
10968
|
+
default: p(() => e[25] || (e[25] = [
|
|
10995
10969
|
U("Time", -1)
|
|
10996
10970
|
])),
|
|
10997
10971
|
_: 1,
|
|
10998
10972
|
__: [25]
|
|
10999
10973
|
}),
|
|
11000
|
-
|
|
10974
|
+
d(g, {
|
|
11001
10975
|
cols: "9",
|
|
11002
10976
|
class: "pa-2 px-0"
|
|
11003
10977
|
}, {
|
|
11004
|
-
default:
|
|
11005
|
-
var
|
|
10978
|
+
default: p(() => {
|
|
10979
|
+
var k;
|
|
11006
10980
|
return [
|
|
11007
|
-
U(b(r.computedTzTime((
|
|
10981
|
+
U(b(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11008
10982
|
];
|
|
11009
10983
|
}),
|
|
11010
10984
|
_: 1
|
|
@@ -11012,26 +10986,26 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11012
10986
|
]),
|
|
11013
10987
|
_: 1
|
|
11014
10988
|
}),
|
|
11015
|
-
|
|
11016
|
-
default:
|
|
11017
|
-
|
|
10989
|
+
d(f, null, {
|
|
10990
|
+
default: p(() => [
|
|
10991
|
+
d(g, {
|
|
11018
10992
|
cols: "3",
|
|
11019
10993
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11020
10994
|
}, {
|
|
11021
|
-
default:
|
|
10995
|
+
default: p(() => e[26] || (e[26] = [
|
|
11022
10996
|
U("LT", -1)
|
|
11023
10997
|
])),
|
|
11024
10998
|
_: 1,
|
|
11025
10999
|
__: [26]
|
|
11026
11000
|
}),
|
|
11027
|
-
|
|
11001
|
+
d(g, {
|
|
11028
11002
|
cols: "9",
|
|
11029
11003
|
class: "pa-2 px-0"
|
|
11030
11004
|
}, {
|
|
11031
|
-
default:
|
|
11032
|
-
var
|
|
11005
|
+
default: p(() => {
|
|
11006
|
+
var k;
|
|
11033
11007
|
return [
|
|
11034
|
-
U(b(r.computedLocalTime((
|
|
11008
|
+
U(b(r.computedLocalTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11035
11009
|
];
|
|
11036
11010
|
}),
|
|
11037
11011
|
_: 1
|
|
@@ -11039,42 +11013,42 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11039
11013
|
]),
|
|
11040
11014
|
_: 1
|
|
11041
11015
|
}),
|
|
11042
|
-
|
|
11043
|
-
default:
|
|
11044
|
-
|
|
11016
|
+
d(f, null, {
|
|
11017
|
+
default: p(() => [
|
|
11018
|
+
d(g, {
|
|
11045
11019
|
cols: "3",
|
|
11046
11020
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11047
11021
|
}, {
|
|
11048
|
-
default:
|
|
11022
|
+
default: p(() => e[27] || (e[27] = [
|
|
11049
11023
|
U("Wind", -1)
|
|
11050
11024
|
])),
|
|
11051
11025
|
_: 1,
|
|
11052
11026
|
__: [27]
|
|
11053
11027
|
}),
|
|
11054
|
-
|
|
11028
|
+
d(g, {
|
|
11055
11029
|
cols: "4",
|
|
11056
11030
|
class: "pa-2 px-0 text-left"
|
|
11057
11031
|
}, {
|
|
11058
|
-
default:
|
|
11032
|
+
default: p(() => [
|
|
11059
11033
|
U(b(a.currentHourData.windDir) + " / " + b(a.currentHourData.windSpeed) + "kts / BF" + b(a.currentHourData.windLevel), 1)
|
|
11060
11034
|
]),
|
|
11061
11035
|
_: 1
|
|
11062
11036
|
}),
|
|
11063
|
-
|
|
11037
|
+
d(g, {
|
|
11064
11038
|
cols: "2",
|
|
11065
11039
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11066
11040
|
}, {
|
|
11067
|
-
default:
|
|
11041
|
+
default: p(() => e[28] || (e[28] = [
|
|
11068
11042
|
U("Sig Wave", -1)
|
|
11069
11043
|
])),
|
|
11070
11044
|
_: 1,
|
|
11071
11045
|
__: [28]
|
|
11072
11046
|
}),
|
|
11073
|
-
|
|
11047
|
+
d(g, {
|
|
11074
11048
|
cols: "3",
|
|
11075
11049
|
class: "pa-2 px-0 text-left"
|
|
11076
11050
|
}, {
|
|
11077
|
-
default:
|
|
11051
|
+
default: p(() => [
|
|
11078
11052
|
U(b(a.currentHourData.sigwaveDir) + " / " + b(a.currentHourData.sigwaveHeight) + "m / " + b(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
11079
11053
|
]),
|
|
11080
11054
|
_: 1
|
|
@@ -11082,42 +11056,42 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11082
11056
|
]),
|
|
11083
11057
|
_: 1
|
|
11084
11058
|
}),
|
|
11085
|
-
|
|
11086
|
-
default:
|
|
11087
|
-
|
|
11059
|
+
d(f, null, {
|
|
11060
|
+
default: p(() => [
|
|
11061
|
+
d(g, {
|
|
11088
11062
|
cols: "3",
|
|
11089
11063
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11090
11064
|
}, {
|
|
11091
|
-
default:
|
|
11065
|
+
default: p(() => e[29] || (e[29] = [
|
|
11092
11066
|
U("Wind Wave", -1)
|
|
11093
11067
|
])),
|
|
11094
11068
|
_: 1,
|
|
11095
11069
|
__: [29]
|
|
11096
11070
|
}),
|
|
11097
|
-
|
|
11071
|
+
d(g, {
|
|
11098
11072
|
cols: "4",
|
|
11099
11073
|
class: "pa-2 px-0 text-left"
|
|
11100
11074
|
}, {
|
|
11101
|
-
default:
|
|
11075
|
+
default: p(() => [
|
|
11102
11076
|
U(b(a.currentHourData.windwaveDir) + " / " + b(a.currentHourData.windwaveHeight) + "m / " + b(a.currentHourData.windwavePeriod) + "s", 1)
|
|
11103
11077
|
]),
|
|
11104
11078
|
_: 1
|
|
11105
11079
|
}),
|
|
11106
|
-
|
|
11080
|
+
d(g, {
|
|
11107
11081
|
cols: "2",
|
|
11108
11082
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11109
11083
|
}, {
|
|
11110
|
-
default:
|
|
11084
|
+
default: p(() => e[30] || (e[30] = [
|
|
11111
11085
|
U("Swell", -1)
|
|
11112
11086
|
])),
|
|
11113
11087
|
_: 1,
|
|
11114
11088
|
__: [30]
|
|
11115
11089
|
}),
|
|
11116
|
-
|
|
11090
|
+
d(g, {
|
|
11117
11091
|
cols: "3",
|
|
11118
11092
|
class: "pa-2 px-0 text-left"
|
|
11119
11093
|
}, {
|
|
11120
|
-
default:
|
|
11094
|
+
default: p(() => [
|
|
11121
11095
|
U(b(a.currentHourData.swellDir) + " / " + b(a.currentHourData.swellHeight) + "m / " + b(a.currentHourData.swellPeriod) + "s", 1)
|
|
11122
11096
|
]),
|
|
11123
11097
|
_: 1
|
|
@@ -11125,42 +11099,42 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11125
11099
|
]),
|
|
11126
11100
|
_: 1
|
|
11127
11101
|
}),
|
|
11128
|
-
|
|
11129
|
-
default:
|
|
11130
|
-
|
|
11102
|
+
d(f, null, {
|
|
11103
|
+
default: p(() => [
|
|
11104
|
+
d(g, {
|
|
11131
11105
|
cols: "3",
|
|
11132
11106
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11133
11107
|
}, {
|
|
11134
|
-
default:
|
|
11108
|
+
default: p(() => e[31] || (e[31] = [
|
|
11135
11109
|
U("Current", -1)
|
|
11136
11110
|
])),
|
|
11137
11111
|
_: 1,
|
|
11138
11112
|
__: [31]
|
|
11139
11113
|
}),
|
|
11140
|
-
|
|
11114
|
+
d(g, {
|
|
11141
11115
|
cols: "4",
|
|
11142
11116
|
class: "pa-2 px-0 text-left"
|
|
11143
11117
|
}, {
|
|
11144
|
-
default:
|
|
11118
|
+
default: p(() => [
|
|
11145
11119
|
U(b(a.currentHourData.currentDir) + " / " + b(a.currentHourData.currentSpeed) + "kts", 1)
|
|
11146
11120
|
]),
|
|
11147
11121
|
_: 1
|
|
11148
11122
|
}),
|
|
11149
|
-
|
|
11123
|
+
d(g, {
|
|
11150
11124
|
cols: "2",
|
|
11151
11125
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11152
11126
|
}, {
|
|
11153
|
-
default:
|
|
11127
|
+
default: p(() => e[32] || (e[32] = [
|
|
11154
11128
|
U("Visibility", -1)
|
|
11155
11129
|
])),
|
|
11156
11130
|
_: 1,
|
|
11157
11131
|
__: [32]
|
|
11158
11132
|
}),
|
|
11159
|
-
|
|
11133
|
+
d(g, {
|
|
11160
11134
|
cols: "3",
|
|
11161
11135
|
class: "pa-2 px-0 text-left"
|
|
11162
11136
|
}, {
|
|
11163
|
-
default:
|
|
11137
|
+
default: p(() => [
|
|
11164
11138
|
U(b(a.currentHourData.visibility) + " nm", 1)
|
|
11165
11139
|
]),
|
|
11166
11140
|
_: 1
|
|
@@ -11171,33 +11145,33 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11171
11145
|
]),
|
|
11172
11146
|
_: 1
|
|
11173
11147
|
}),
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
default:
|
|
11177
|
-
|
|
11148
|
+
d(u),
|
|
11149
|
+
d(T, { class: "d-flex justify-space-between align-center" }, {
|
|
11150
|
+
default: p(() => [
|
|
11151
|
+
d(s, {
|
|
11178
11152
|
vvariant: "text",
|
|
11179
11153
|
density: "compact",
|
|
11180
11154
|
"prepend-icon": "mdi-star",
|
|
11181
11155
|
class: "text-none text-body-1",
|
|
11182
11156
|
onClick: r.handleFollow
|
|
11183
11157
|
}, {
|
|
11184
|
-
prepend:
|
|
11185
|
-
|
|
11158
|
+
prepend: p(() => [
|
|
11159
|
+
d(P, { color: "warning" })
|
|
11186
11160
|
]),
|
|
11187
|
-
default:
|
|
11161
|
+
default: p(() => [
|
|
11188
11162
|
e[33] || (e[33] = U(" Follow", -1))
|
|
11189
11163
|
]),
|
|
11190
11164
|
_: 1,
|
|
11191
11165
|
__: [33]
|
|
11192
11166
|
}, 8, ["onClick"]),
|
|
11193
|
-
|
|
11167
|
+
d(s, {
|
|
11194
11168
|
variant: "text",
|
|
11195
11169
|
density: "compact",
|
|
11196
11170
|
"append-icon": "mdi-chevron-right",
|
|
11197
11171
|
class: "text-none text-body-1",
|
|
11198
11172
|
onClick: r.handleMeteoMore
|
|
11199
11173
|
}, {
|
|
11200
|
-
default:
|
|
11174
|
+
default: p(() => e[34] || (e[34] = [
|
|
11201
11175
|
U("Forecast", -1)
|
|
11202
11176
|
])),
|
|
11203
11177
|
_: 1,
|
|
@@ -11304,41 +11278,41 @@ const Tn = {
|
|
|
11304
11278
|
}
|
|
11305
11279
|
},
|
|
11306
11280
|
handleDrag(t) {
|
|
11307
|
-
var o, i, a, r, s,
|
|
11281
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
11308
11282
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11309
11283
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11310
|
-
const f = this.geojson.filter((
|
|
11311
|
-
this.pointMarkers[f.id].filter((
|
|
11284
|
+
const f = this.geojson.filter((x) => x.id === e.split("-")[0])[0];
|
|
11285
|
+
this.pointMarkers[f.id].filter((x) => {
|
|
11312
11286
|
var D;
|
|
11313
|
-
return ((D =
|
|
11314
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
11315
|
-
let
|
|
11316
|
-
f.features.forEach((
|
|
11317
|
-
if (
|
|
11318
|
-
|
|
11287
|
+
return ((D = x._element) == null ? void 0 : D.id) === e;
|
|
11288
|
+
})[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]);
|
|
11289
|
+
let _;
|
|
11290
|
+
f.features.forEach((x, D) => {
|
|
11291
|
+
if (x.geometry.type === "Point" && x.properties.id === e.split("-")[1]) {
|
|
11292
|
+
_ = D;
|
|
11319
11293
|
return;
|
|
11320
11294
|
}
|
|
11321
11295
|
});
|
|
11322
|
-
const T = f.features.filter((
|
|
11296
|
+
const T = f.features.filter((x) => x.geometry.type === "Point");
|
|
11323
11297
|
this.handleTmpPointUpdate(
|
|
11324
11298
|
f,
|
|
11325
|
-
T[
|
|
11326
|
-
{ lng: (
|
|
11327
|
-
|
|
11299
|
+
T[_ - 1],
|
|
11300
|
+
{ lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat, properties: T[_].properties },
|
|
11301
|
+
_ === T.length - 1 ? void 0 : T[_ + 1]
|
|
11328
11302
|
);
|
|
11329
11303
|
}
|
|
11330
11304
|
},
|
|
11331
11305
|
handleDragEnd(t) {
|
|
11332
|
-
var o, i, a, r, s,
|
|
11306
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
11333
11307
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11334
11308
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11335
11309
|
const f = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
11336
11310
|
this.pointMarkers[f.id].filter((T) => {
|
|
11337
|
-
var
|
|
11338
|
-
return ((
|
|
11339
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
11340
|
-
const
|
|
11341
|
-
|
|
11311
|
+
var x;
|
|
11312
|
+
return ((x = T._element) == null ? void 0 : x.id) === e;
|
|
11313
|
+
})[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]);
|
|
11314
|
+
const _ = f.features.filter((T) => T.geometry.type === "Point" && T.properties.id === e.split("-")[1])[0];
|
|
11315
|
+
_.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat], f.features = f.features.filter((T) => T.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
11342
11316
|
}
|
|
11343
11317
|
},
|
|
11344
11318
|
handleContextmenu(t) {
|
|
@@ -11346,27 +11320,27 @@ const Tn = {
|
|
|
11346
11320
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
11347
11321
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
11348
11322
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11349
|
-
const
|
|
11350
|
-
if (
|
|
11351
|
-
const
|
|
11352
|
-
|
|
11323
|
+
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
11324
|
+
if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
11325
|
+
const u = document.createElement("div");
|
|
11326
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
11353
11327
|
}
|
|
11354
11328
|
}
|
|
11355
11329
|
},
|
|
11356
11330
|
handleClick(t) {
|
|
11357
|
-
var o, i, a, r, s,
|
|
11331
|
+
var o, i, a, r, s, c;
|
|
11358
11332
|
(o = this.contextmenu) == null || o.remove();
|
|
11359
11333
|
const e = t.originalEvent.target.className;
|
|
11360
11334
|
if (e === "marker-close") {
|
|
11361
|
-
const
|
|
11362
|
-
|
|
11335
|
+
const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((h) => h.id === n)[0];
|
|
11336
|
+
u && this.handleClear(u, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
|
|
11363
11337
|
} else if (e === "del-point") {
|
|
11364
|
-
const
|
|
11365
|
-
|
|
11338
|
+
const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), u = this.geojson.filter((h) => h.id === n[0])[0];
|
|
11339
|
+
u.features = u.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(u);
|
|
11366
11340
|
} else if (e !== "marker-label" && this.toggle) {
|
|
11367
|
-
let
|
|
11368
|
-
|
|
11369
|
-
const
|
|
11341
|
+
let n = this.geojson.at(-1);
|
|
11342
|
+
n || (n = N.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
|
|
11343
|
+
const u = N.feature(
|
|
11370
11344
|
{
|
|
11371
11345
|
type: "Point",
|
|
11372
11346
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -11377,7 +11351,7 @@ const Tn = {
|
|
|
11377
11351
|
sumLabel: "Start"
|
|
11378
11352
|
}
|
|
11379
11353
|
);
|
|
11380
|
-
|
|
11354
|
+
n.features.push(u), this.handlePointUpdate(n);
|
|
11381
11355
|
}
|
|
11382
11356
|
},
|
|
11383
11357
|
handlePointUpdate(t) {
|
|
@@ -11386,14 +11360,14 @@ const Tn = {
|
|
|
11386
11360
|
let o = 0;
|
|
11387
11361
|
const i = [];
|
|
11388
11362
|
for (let a = 1; a < e.length; a++) {
|
|
11389
|
-
const r = e[a - 1], s = e[a],
|
|
11390
|
-
o = K.roundPrecision(o +
|
|
11363
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h = Fe.calculateDistance(n, u, c.mode === "RL", 4), g = Fe.calculateBearing(n, u, c.mode === "RL", 2);
|
|
11364
|
+
o = K.roundPrecision(o + h, 4);
|
|
11391
11365
|
let f;
|
|
11392
|
-
|
|
11393
|
-
const
|
|
11394
|
-
|
|
11395
|
-
const
|
|
11396
|
-
|
|
11366
|
+
c.mode === "RL" ? f = K.convertToMonotonicLng([n, u]) : f = K.convertToMonotonicLng(Fe.interpolateCoordinates(n, u, 200));
|
|
11367
|
+
const L = N.lineString(f.map((T) => [T.lng, T.lat]));
|
|
11368
|
+
L.properties.dist = h, L.properties.bearing = g, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
|
|
11369
|
+
const _ = e[a];
|
|
11370
|
+
_.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), _.properties.sumLabel = _.properties.totalDist + " nm";
|
|
11397
11371
|
}
|
|
11398
11372
|
e.push(...i), t.total = o;
|
|
11399
11373
|
}
|
|
@@ -11403,19 +11377,19 @@ const Tn = {
|
|
|
11403
11377
|
const a = N.featureCollection([]);
|
|
11404
11378
|
let r, s;
|
|
11405
11379
|
if (e) {
|
|
11406
|
-
const
|
|
11407
|
-
r = Fe.calculateDistance(
|
|
11408
|
-
let
|
|
11409
|
-
|
|
11410
|
-
const f = N.lineString(
|
|
11380
|
+
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
|
|
11381
|
+
r = Fe.calculateDistance(u, h, n.mode === "RL", 4), s = Fe.calculateBearing(u, h, n.mode === "RL", 2);
|
|
11382
|
+
let g;
|
|
11383
|
+
n.mode === "RL" ? g = K.convertToMonotonicLng([u, h]) : g = K.convertToMonotonicLng(Fe.interpolateCoordinates(u, h, 200));
|
|
11384
|
+
const f = N.lineString(g.map((L) => [L.lng, L.lat]));
|
|
11411
11385
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11412
11386
|
}
|
|
11413
11387
|
if (i) {
|
|
11414
|
-
const
|
|
11415
|
-
r = Fe.calculateDistance(
|
|
11416
|
-
let
|
|
11417
|
-
|
|
11418
|
-
const f = N.lineString(
|
|
11388
|
+
const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
11389
|
+
r = Fe.calculateDistance(u, h, n.mode === "RL", 4), s = Fe.calculateBearing(u, h, n.mode === "RL", 2);
|
|
11390
|
+
let g;
|
|
11391
|
+
n.mode === "RL" ? g = K.convertToMonotonicLng([u, h]) : g = K.convertToMonotonicLng(Fe.interpolateCoordinates(u, h, 200));
|
|
11392
|
+
const f = N.lineString(g.map((L) => [L.lng, L.lat]));
|
|
11419
11393
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11420
11394
|
}
|
|
11421
11395
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -11456,22 +11430,22 @@ const Tn = {
|
|
|
11456
11430
|
// 'text-halo-blur': 0,
|
|
11457
11431
|
}
|
|
11458
11432
|
});
|
|
11459
|
-
let
|
|
11433
|
+
let c;
|
|
11460
11434
|
if (i)
|
|
11461
|
-
|
|
11435
|
+
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
11462
11436
|
else {
|
|
11463
|
-
const
|
|
11464
|
-
|
|
11437
|
+
const n = K.roundPrecision((t.total ?? 0) + r, 1);
|
|
11438
|
+
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
11465
11439
|
"measure.bearing"
|
|
11466
11440
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
11467
11441
|
"measure.switchTips"
|
|
11468
11442
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
11469
11443
|
}
|
|
11470
11444
|
if (this.tipMarker)
|
|
11471
|
-
this.tipMarker._element.innerHTML =
|
|
11445
|
+
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
11472
11446
|
else {
|
|
11473
|
-
const
|
|
11474
|
-
|
|
11447
|
+
const n = document.createElement("div");
|
|
11448
|
+
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new xe.Marker(n).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
11475
11449
|
}
|
|
11476
11450
|
},
|
|
11477
11451
|
handleMove(t) {
|
|
@@ -11543,48 +11517,48 @@ const Tn = {
|
|
|
11543
11517
|
// 'text-halo-blur': 0,
|
|
11544
11518
|
}
|
|
11545
11519
|
});
|
|
11546
|
-
const s = t.features.filter((
|
|
11547
|
-
for (const
|
|
11548
|
-
const
|
|
11549
|
-
|
|
11550
|
-
const
|
|
11551
|
-
|
|
11520
|
+
const s = t.features.filter((c) => c.geometry.type === "Point");
|
|
11521
|
+
for (const c of s) {
|
|
11522
|
+
const n = document.createElement("div");
|
|
11523
|
+
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
11524
|
+
const u = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11525
|
+
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
|
|
11552
11526
|
}
|
|
11553
11527
|
if (t.closed) {
|
|
11554
|
-
const
|
|
11555
|
-
|
|
11528
|
+
const c = s.at(-1), u = t.features.filter((g) => g.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
11529
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11556
11530
|
}
|
|
11557
11531
|
}
|
|
11558
11532
|
},
|
|
11559
11533
|
handleClear(t, e = !0) {
|
|
11560
|
-
var s,
|
|
11534
|
+
var s, c, n, u, h, g, f, L, _, T;
|
|
11561
11535
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
11562
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (
|
|
11563
|
-
|
|
11564
|
-
}), this.pointMarkers[t.id] = [], (
|
|
11536
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (g = this.closeMarkers[t.id]) == null || g.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((x) => {
|
|
11537
|
+
x == null || x.remove();
|
|
11538
|
+
}), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((_ = this.map) != null && _.getSource(o)) && this.map.removeSource(o), e && ((T = this.map) != null && T.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
11565
11539
|
}
|
|
11566
11540
|
}
|
|
11567
11541
|
}, Sn = { class: "idm-gl4-measure" };
|
|
11568
11542
|
function Mn(t, e, o, i, a, r) {
|
|
11569
|
-
const s =
|
|
11543
|
+
const s = w("VBtn"), c = w("VTooltip");
|
|
11570
11544
|
return y(), M("div", Sn, [
|
|
11571
11545
|
l("div", {
|
|
11572
11546
|
class: "menu-bar-box transition pa-1",
|
|
11573
11547
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
11574
11548
|
}, [
|
|
11575
|
-
|
|
11549
|
+
d(c, {
|
|
11576
11550
|
text: t.$t("measure.measure"),
|
|
11577
11551
|
location: "left"
|
|
11578
11552
|
}, {
|
|
11579
|
-
activator:
|
|
11580
|
-
|
|
11553
|
+
activator: p(({ props: n }) => [
|
|
11554
|
+
d(s, j(n, {
|
|
11581
11555
|
"min-width": "32",
|
|
11582
11556
|
width: "32",
|
|
11583
11557
|
height: "32",
|
|
11584
11558
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
11585
11559
|
onClick: r.handleMenuToggle
|
|
11586
11560
|
}), {
|
|
11587
|
-
default:
|
|
11561
|
+
default: p(() => e[0] || (e[0] = [
|
|
11588
11562
|
l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
11589
11563
|
])),
|
|
11590
11564
|
_: 2,
|
|
@@ -11720,54 +11694,54 @@ const An = {
|
|
|
11720
11694
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
11721
11695
|
}, Nn = ["onClick"], Fn = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Hn = { class: "text-body-1" };
|
|
11722
11696
|
function Wn(t, e, o, i, a, r) {
|
|
11723
|
-
const s =
|
|
11697
|
+
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), h = w("VMenu"), g = w("VBtn"), f = w("VDivider"), L = w("VTooltip");
|
|
11724
11698
|
return y(), M("div", Dn, [
|
|
11725
11699
|
l("div", {
|
|
11726
11700
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
11727
11701
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
11728
11702
|
}, [
|
|
11729
11703
|
l("div", Rn, [
|
|
11730
|
-
|
|
11704
|
+
d(s, j({
|
|
11731
11705
|
ref: "dateTimePicker",
|
|
11732
11706
|
"date-time": a.currentDateTimeZ,
|
|
11733
11707
|
"time-zone": a.timeZone,
|
|
11734
11708
|
"day-about": a.dayAbout,
|
|
11735
11709
|
"interval-hour": a.intervalHour
|
|
11736
11710
|
}, t.$attrs, {
|
|
11737
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
11738
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
11739
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
11711
|
+
onCurrentTimestamp: e[0] || (e[0] = (_) => a.currentTimestamp = _),
|
|
11712
|
+
onCurrentRealTime: e[1] || (e[1] = (_) => a.currentRealTime = _),
|
|
11713
|
+
onTimestampRange: e[2] || (e[2] = (_) => a.timestampRange = _)
|
|
11740
11714
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
11741
|
-
|
|
11715
|
+
d(g, {
|
|
11742
11716
|
text: "",
|
|
11743
11717
|
height: "30",
|
|
11744
11718
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
11745
11719
|
"min-width": "30"
|
|
11746
11720
|
}, {
|
|
11747
|
-
default:
|
|
11721
|
+
default: p(() => [
|
|
11748
11722
|
U(b(a.intervalHour) + " h ", 1),
|
|
11749
|
-
h
|
|
11750
|
-
default:
|
|
11751
|
-
|
|
11752
|
-
default:
|
|
11753
|
-
(y(!0), M(be, null, we(a.intervalOptions, (
|
|
11723
|
+
d(h, { activator: "parent" }, {
|
|
11724
|
+
default: p(() => [
|
|
11725
|
+
d(u, { class: "pa-1" }, {
|
|
11726
|
+
default: p(() => [
|
|
11727
|
+
(y(!0), M(be, null, we(a.intervalOptions, (_, T) => (y(), B(n, {
|
|
11754
11728
|
key: T,
|
|
11755
|
-
value:
|
|
11756
|
-
variant: a.intervalHour ===
|
|
11729
|
+
value: _,
|
|
11730
|
+
variant: a.intervalHour === _ ? "tonal" : "text",
|
|
11757
11731
|
color: "primary",
|
|
11758
11732
|
rounded: "",
|
|
11759
|
-
active: a.intervalHour ===
|
|
11733
|
+
active: a.intervalHour === _,
|
|
11760
11734
|
height: "30",
|
|
11761
11735
|
"min-height": "30",
|
|
11762
11736
|
"min-width": "30",
|
|
11763
11737
|
class: "pa-0 text-center text-body-1"
|
|
11764
11738
|
}, {
|
|
11765
|
-
default:
|
|
11766
|
-
|
|
11767
|
-
onClick: (
|
|
11739
|
+
default: p(() => [
|
|
11740
|
+
d(c, {
|
|
11741
|
+
onClick: (x) => a.intervalHour = _
|
|
11768
11742
|
}, {
|
|
11769
|
-
default:
|
|
11770
|
-
U(b(
|
|
11743
|
+
default: p(() => [
|
|
11744
|
+
U(b(_) + "h", 1)
|
|
11771
11745
|
]),
|
|
11772
11746
|
_: 2
|
|
11773
11747
|
}, 1032, ["onClick"])
|
|
@@ -11784,39 +11758,39 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11784
11758
|
_: 1
|
|
11785
11759
|
})
|
|
11786
11760
|
]),
|
|
11787
|
-
|
|
11761
|
+
d(f, {
|
|
11788
11762
|
vertical: "",
|
|
11789
11763
|
class: "mx-2 my-3",
|
|
11790
11764
|
style: { height: "16px" }
|
|
11791
11765
|
}),
|
|
11792
11766
|
l("div", On, [
|
|
11793
|
-
|
|
11767
|
+
d(g, {
|
|
11794
11768
|
icon: "",
|
|
11795
11769
|
size: "small",
|
|
11796
11770
|
density: "comfortable",
|
|
11797
11771
|
variant: "text",
|
|
11798
11772
|
onClick: r.handleReset
|
|
11799
11773
|
}, {
|
|
11800
|
-
default:
|
|
11774
|
+
default: p(() => e[9] || (e[9] = [
|
|
11801
11775
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
11802
11776
|
])),
|
|
11803
11777
|
_: 1,
|
|
11804
11778
|
__: [9]
|
|
11805
11779
|
}, 8, ["onClick"]),
|
|
11806
|
-
|
|
11780
|
+
d(g, {
|
|
11807
11781
|
icon: "",
|
|
11808
11782
|
size: "small",
|
|
11809
11783
|
density: "comfortable",
|
|
11810
11784
|
variant: "text",
|
|
11811
11785
|
onClick: r.handleBackward
|
|
11812
11786
|
}, {
|
|
11813
|
-
default:
|
|
11787
|
+
default: p(() => e[10] || (e[10] = [
|
|
11814
11788
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
11815
11789
|
])),
|
|
11816
11790
|
_: 1,
|
|
11817
11791
|
__: [10]
|
|
11818
11792
|
}, 8, ["onClick"]),
|
|
11819
|
-
a.paused ? (y(), B(
|
|
11793
|
+
a.paused ? (y(), B(g, {
|
|
11820
11794
|
key: 0,
|
|
11821
11795
|
icon: "",
|
|
11822
11796
|
size: "small",
|
|
@@ -11824,12 +11798,12 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11824
11798
|
variant: "text",
|
|
11825
11799
|
onClick: r.handlePlay
|
|
11826
11800
|
}, {
|
|
11827
|
-
default:
|
|
11801
|
+
default: p(() => e[11] || (e[11] = [
|
|
11828
11802
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
11829
11803
|
])),
|
|
11830
11804
|
_: 1,
|
|
11831
11805
|
__: [11]
|
|
11832
|
-
}, 8, ["onClick"])) : (y(), B(
|
|
11806
|
+
}, 8, ["onClick"])) : (y(), B(g, {
|
|
11833
11807
|
key: 1,
|
|
11834
11808
|
icon: "",
|
|
11835
11809
|
size: "small",
|
|
@@ -11837,49 +11811,49 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11837
11811
|
variant: "text",
|
|
11838
11812
|
onClick: r.handlePause
|
|
11839
11813
|
}, {
|
|
11840
|
-
default:
|
|
11814
|
+
default: p(() => e[12] || (e[12] = [
|
|
11841
11815
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
11842
11816
|
])),
|
|
11843
11817
|
_: 1,
|
|
11844
11818
|
__: [12]
|
|
11845
11819
|
}, 8, ["onClick"])),
|
|
11846
|
-
|
|
11820
|
+
d(g, {
|
|
11847
11821
|
icon: "",
|
|
11848
11822
|
size: "small",
|
|
11849
11823
|
density: "comfortable",
|
|
11850
11824
|
variant: "text",
|
|
11851
11825
|
onClick: r.handleForward
|
|
11852
11826
|
}, {
|
|
11853
|
-
default:
|
|
11827
|
+
default: p(() => e[13] || (e[13] = [
|
|
11854
11828
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
11855
11829
|
])),
|
|
11856
11830
|
_: 1,
|
|
11857
11831
|
__: [13]
|
|
11858
11832
|
}, 8, ["onClick"])
|
|
11859
11833
|
]),
|
|
11860
|
-
|
|
11834
|
+
d(f, {
|
|
11861
11835
|
vertical: "",
|
|
11862
11836
|
class: "mx-2 my-3",
|
|
11863
11837
|
style: { height: "16px" }
|
|
11864
11838
|
}),
|
|
11865
11839
|
l("div", Bn, [
|
|
11866
|
-
|
|
11840
|
+
d(L, {
|
|
11867
11841
|
text: t.$t("weather.windBarbs"),
|
|
11868
11842
|
location: "top"
|
|
11869
11843
|
}, {
|
|
11870
|
-
activator:
|
|
11871
|
-
var T,
|
|
11844
|
+
activator: p(({ props: _ }) => {
|
|
11845
|
+
var T, x;
|
|
11872
11846
|
return [
|
|
11873
|
-
|
|
11847
|
+
d(g, j(_, {
|
|
11874
11848
|
class: "pa-1 d-flex",
|
|
11875
11849
|
color: (T = o.weatherCheckList) != null && T.includes("wind") ? "primary" : "",
|
|
11876
|
-
variant: (
|
|
11850
|
+
variant: (x = o.weatherCheckList) != null && x.includes("wind") ? "elevated" : "text",
|
|
11877
11851
|
height: "24",
|
|
11878
11852
|
width: "24",
|
|
11879
11853
|
"min-width": "24",
|
|
11880
11854
|
onClick: e[3] || (e[3] = (D) => r.handleClickFastWeather("wind"))
|
|
11881
11855
|
}), {
|
|
11882
|
-
default:
|
|
11856
|
+
default: p(() => e[14] || (e[14] = [
|
|
11883
11857
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
11884
11858
|
])),
|
|
11885
11859
|
_: 2,
|
|
@@ -11889,24 +11863,24 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11889
11863
|
}),
|
|
11890
11864
|
_: 1
|
|
11891
11865
|
}, 8, ["text"]),
|
|
11892
|
-
|
|
11866
|
+
d(L, {
|
|
11893
11867
|
text: t.$t("weather.sigWaveHeight"),
|
|
11894
11868
|
location: "top"
|
|
11895
11869
|
}, {
|
|
11896
|
-
activator:
|
|
11897
|
-
var T,
|
|
11870
|
+
activator: p(({ props: _ }) => {
|
|
11871
|
+
var T, x;
|
|
11898
11872
|
return [
|
|
11899
|
-
|
|
11873
|
+
d(g, j(_, {
|
|
11900
11874
|
class: "pa-1 d-flex",
|
|
11901
11875
|
color: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "primary" : "",
|
|
11902
|
-
variant: (
|
|
11876
|
+
variant: (x = o.weatherCheckList) != null && x.includes("sig-wave-height") ? "elevated" : "text",
|
|
11903
11877
|
height: "24",
|
|
11904
11878
|
width: "24",
|
|
11905
11879
|
"min-width": "24",
|
|
11906
11880
|
onClick: e[4] || (e[4] = (D) => r.handleClickFastWeather("sig-wave-height"))
|
|
11907
11881
|
}), {
|
|
11908
|
-
default:
|
|
11909
|
-
l("i", j(
|
|
11882
|
+
default: p(() => [
|
|
11883
|
+
l("i", j(_, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
11910
11884
|
]),
|
|
11911
11885
|
_: 2
|
|
11912
11886
|
}, 1040, ["color", "variant"])
|
|
@@ -11914,24 +11888,24 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11914
11888
|
}),
|
|
11915
11889
|
_: 1
|
|
11916
11890
|
}, 8, ["text"]),
|
|
11917
|
-
|
|
11891
|
+
d(L, {
|
|
11918
11892
|
text: t.$t("weather.currentDirection"),
|
|
11919
11893
|
location: "top"
|
|
11920
11894
|
}, {
|
|
11921
|
-
activator:
|
|
11922
|
-
var T,
|
|
11895
|
+
activator: p(({ props: _ }) => {
|
|
11896
|
+
var T, x;
|
|
11923
11897
|
return [
|
|
11924
|
-
|
|
11898
|
+
d(g, j(_, {
|
|
11925
11899
|
class: "pa-1 d-flex",
|
|
11926
11900
|
color: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "primary" : "",
|
|
11927
|
-
variant: (
|
|
11901
|
+
variant: (x = o.weatherCheckList) != null && x.includes("current-direction") ? "elevated" : "text",
|
|
11928
11902
|
height: "24",
|
|
11929
11903
|
width: "24",
|
|
11930
11904
|
"min-width": "24",
|
|
11931
11905
|
onClick: e[5] || (e[5] = (D) => r.handleClickFastWeather("current-direction"))
|
|
11932
11906
|
}), {
|
|
11933
|
-
default:
|
|
11934
|
-
l("i", j(
|
|
11907
|
+
default: p(() => [
|
|
11908
|
+
l("i", j(_, { class: "iconfont icon-Current" }), null, 16)
|
|
11935
11909
|
]),
|
|
11936
11910
|
_: 2
|
|
11937
11911
|
}, 1040, ["color", "variant"])
|
|
@@ -11939,12 +11913,12 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11939
11913
|
}),
|
|
11940
11914
|
_: 1
|
|
11941
11915
|
}, 8, ["text"]),
|
|
11942
|
-
|
|
11916
|
+
d(L, {
|
|
11943
11917
|
text: t.$t("weather.weatherLayers"),
|
|
11944
11918
|
location: "top"
|
|
11945
11919
|
}, {
|
|
11946
|
-
activator:
|
|
11947
|
-
|
|
11920
|
+
activator: p(({ props: _ }) => [
|
|
11921
|
+
d(g, j(_, {
|
|
11948
11922
|
class: "pa-1 d-flex",
|
|
11949
11923
|
variant: "text",
|
|
11950
11924
|
height: "24",
|
|
@@ -11952,8 +11926,8 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11952
11926
|
"min-width": "24",
|
|
11953
11927
|
onClick: r.handleClickFastMore
|
|
11954
11928
|
}), {
|
|
11955
|
-
default:
|
|
11956
|
-
l("i", j(
|
|
11929
|
+
default: p(() => [
|
|
11930
|
+
l("i", j(_, { class: "iconfont icon-dots-align" }), null, 16)
|
|
11957
11931
|
]),
|
|
11958
11932
|
_: 2
|
|
11959
11933
|
}, 1040, ["onClick"])
|
|
@@ -11961,33 +11935,33 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11961
11935
|
_: 1
|
|
11962
11936
|
}, 8, ["text"])
|
|
11963
11937
|
]),
|
|
11964
|
-
|
|
11938
|
+
d(f, {
|
|
11965
11939
|
vertical: "",
|
|
11966
11940
|
class: "mx-2 mr-3 my-3",
|
|
11967
11941
|
style: { height: "16px" }
|
|
11968
11942
|
}),
|
|
11969
11943
|
l("div", En, [
|
|
11970
|
-
|
|
11944
|
+
d(g, {
|
|
11971
11945
|
text: "",
|
|
11972
11946
|
height: "30",
|
|
11973
11947
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
11974
11948
|
color: a.source === "GFS" ? "primary" : "",
|
|
11975
|
-
onClick: e[6] || (e[6] = (
|
|
11949
|
+
onClick: e[6] || (e[6] = (_) => a.source = "GFS")
|
|
11976
11950
|
}, {
|
|
11977
|
-
default:
|
|
11951
|
+
default: p(() => e[15] || (e[15] = [
|
|
11978
11952
|
U("NOAA", -1)
|
|
11979
11953
|
])),
|
|
11980
11954
|
_: 1,
|
|
11981
11955
|
__: [15]
|
|
11982
11956
|
}, 8, ["color"]),
|
|
11983
|
-
|
|
11957
|
+
d(g, {
|
|
11984
11958
|
text: "",
|
|
11985
11959
|
height: "30",
|
|
11986
11960
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
11987
11961
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
11988
|
-
onClick: e[7] || (e[7] = (
|
|
11962
|
+
onClick: e[7] || (e[7] = (_) => a.source = "ECMWF")
|
|
11989
11963
|
}, {
|
|
11990
|
-
default:
|
|
11964
|
+
default: p(() => e[16] || (e[16] = [
|
|
11991
11965
|
U("ECMWF", -1)
|
|
11992
11966
|
])),
|
|
11993
11967
|
_: 1,
|
|
@@ -12000,22 +11974,22 @@ function Wn(t, e, o, i, a, r) {
|
|
|
12000
11974
|
style: ae({ right: a.right + "px" })
|
|
12001
11975
|
}, [
|
|
12002
11976
|
a.showTimezone ? (y(), M("div", jn, [
|
|
12003
|
-
(y(!0), M(be, null, we(a.offsets, (
|
|
12004
|
-
key:
|
|
11977
|
+
(y(!0), M(be, null, we(a.offsets, (_) => (y(), M("div", {
|
|
11978
|
+
key: _,
|
|
12005
11979
|
class: "item rounded text-body-2 hover-active",
|
|
12006
|
-
onClick: (T) => a.timeZone =
|
|
12007
|
-
}, b(
|
|
11980
|
+
onClick: (T) => a.timeZone = _
|
|
11981
|
+
}, b(_ < 0 ? _ : "+" + _), 9, Nn))), 128))
|
|
12008
11982
|
])) : E("", !0),
|
|
12009
11983
|
l("div", Fn, [
|
|
12010
|
-
|
|
11984
|
+
d(g, {
|
|
12011
11985
|
text: "",
|
|
12012
11986
|
variant: "flat",
|
|
12013
11987
|
height: "28",
|
|
12014
11988
|
class: "pa-1 text-body-1",
|
|
12015
11989
|
color: "primary",
|
|
12016
|
-
onClick: e[8] || (e[8] = (
|
|
11990
|
+
onClick: e[8] || (e[8] = (_) => a.showTimezone = !a.showTimezone)
|
|
12017
11991
|
}, {
|
|
12018
|
-
default:
|
|
11992
|
+
default: p(() => [
|
|
12019
11993
|
U(" UTC " + b(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12020
11994
|
]),
|
|
12021
11995
|
_: 1
|
|
@@ -12090,9 +12064,9 @@ const Un = /* @__PURE__ */ V(An, [["render", Wn]]), Gn = {
|
|
|
12090
12064
|
class: "map-gl4-home"
|
|
12091
12065
|
};
|
|
12092
12066
|
function Zn(t, e, o, i, a, r) {
|
|
12093
|
-
const s =
|
|
12067
|
+
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), g = w("IdmBottomBar");
|
|
12094
12068
|
return y(), M("div", Vn, [
|
|
12095
|
-
|
|
12069
|
+
d(s, j({
|
|
12096
12070
|
ref: "idmOtherLayers",
|
|
12097
12071
|
token: o.token,
|
|
12098
12072
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12107,7 +12081,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12107
12081
|
a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12108
12082
|
})
|
|
12109
12083
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12110
|
-
|
|
12084
|
+
d(c, j({
|
|
12111
12085
|
ref: "idmWeatherLayers",
|
|
12112
12086
|
map: o.map,
|
|
12113
12087
|
"before-layer": "empty-layer-2",
|
|
@@ -12125,7 +12099,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12125
12099
|
a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12126
12100
|
})
|
|
12127
12101
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12128
|
-
|
|
12102
|
+
d(n, j({
|
|
12129
12103
|
map: o.map,
|
|
12130
12104
|
token: o.token,
|
|
12131
12105
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12136,11 +12110,11 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12136
12110
|
"forecast-model": o.forecastModel,
|
|
12137
12111
|
"map-feather": o.mapFeather
|
|
12138
12112
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12139
|
-
|
|
12113
|
+
d(u, j({
|
|
12140
12114
|
map: o.map,
|
|
12141
12115
|
"map-feather": o.mapFeather
|
|
12142
12116
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12143
|
-
h
|
|
12117
|
+
d(h, j({
|
|
12144
12118
|
ref: "idmSpot",
|
|
12145
12119
|
map: o.map,
|
|
12146
12120
|
token: o.token,
|
|
@@ -12148,7 +12122,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12148
12122
|
"forecast-model": o.forecastModel,
|
|
12149
12123
|
"map-feather": o.mapFeather
|
|
12150
12124
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
12151
|
-
|
|
12125
|
+
d(g, j({
|
|
12152
12126
|
ref: "idmBottomBar",
|
|
12153
12127
|
"forecast-model": o.forecastModel,
|
|
12154
12128
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12165,7 +12139,7 @@ class qn {
|
|
|
12165
12139
|
se(this, "hi");
|
|
12166
12140
|
se(this, "td");
|
|
12167
12141
|
se(this, "windy");
|
|
12168
|
-
var o, i, a, r, s,
|
|
12142
|
+
var o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce, he, fe, W, ze, $, re, Re, O, ye, Te, Oe, Be, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Uo, Go, Vo, Zo, Yo, qo, Xo, Ko, Qo, Jo, $o, 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, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Wa;
|
|
12169
12143
|
this.i4 = {
|
|
12170
12144
|
source: {
|
|
12171
12145
|
type: "raster",
|
|
@@ -30743,15 +30717,15 @@ class qn {
|
|
|
30743
30717
|
layers: [
|
|
30744
30718
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((m) => m.id === "land"),
|
|
30745
30719
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
|
|
30746
|
-
(
|
|
30747
|
-
(
|
|
30748
|
-
(
|
|
30749
|
-
(
|
|
30750
|
-
(T = (
|
|
30751
|
-
(D = (
|
|
30720
|
+
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
|
|
30721
|
+
(u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((m) => m.id === "ice-area-line"),
|
|
30722
|
+
(g = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : g.find((m) => m.id === "loadlines-label"),
|
|
30723
|
+
(L = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : L.find((m) => m.id === "loadlines-fill"),
|
|
30724
|
+
(T = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : T.find((m) => m.id === "empty-layer-0"),
|
|
30725
|
+
(D = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : D.find((m) => m.id === "empty-layer-1"),
|
|
30752
30726
|
(P = (S = this.originStyle) == null ? void 0 : S.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
|
|
30753
|
-
(
|
|
30754
|
-
(
|
|
30727
|
+
(z = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
|
|
30728
|
+
(v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((m) => m.id === "water-outline2"),
|
|
30755
30729
|
(Z = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : Z.find((m) => m.id === "empty-layer-2"),
|
|
30756
30730
|
(X = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
|
|
30757
30731
|
(te = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : te.find((m) => m.id === "water-point-label"),
|
|
@@ -30761,9 +30735,9 @@ class qn {
|
|
|
30761
30735
|
(ie = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ie.find((m) => m.id === "china-route-line"),
|
|
30762
30736
|
(me = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : me.find((m) => m.id === "china-route-fill"),
|
|
30763
30737
|
(de = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : de.find((m) => m.id === "china-route-label"),
|
|
30764
|
-
(
|
|
30765
|
-
(
|
|
30766
|
-
(
|
|
30738
|
+
(Se = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : Se.find((m) => m.id === "admin-0-boundary-bg"),
|
|
30739
|
+
(Ie = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Ie.find((m) => m.id === "admin-0-boundary"),
|
|
30740
|
+
(De = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : De.find((m) => m.id === "admin-0-boundary-disputed"),
|
|
30767
30741
|
(H = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : H.find((m) => m.id === "country-label"),
|
|
30768
30742
|
(je = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : je.find((m) => m.id === "continent-label"),
|
|
30769
30743
|
(he = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : he.find((m) => m.id === "tide-stations"),
|
|
@@ -30783,7 +30757,7 @@ class qn {
|
|
|
30783
30757
|
fog: {
|
|
30784
30758
|
range: [0.5, 10]
|
|
30785
30759
|
},
|
|
30786
|
-
sources: (
|
|
30760
|
+
sources: (Re = this.originStyle) == null ? void 0 : Re.dark.sources,
|
|
30787
30761
|
sprite: (O = this.originStyle) == null ? void 0 : O.dark.sprite,
|
|
30788
30762
|
glyphs: (ye = this.originStyle) == null ? void 0 : ye.dark.glyphs,
|
|
30789
30763
|
projection: (Te = this.originStyle) == null ? void 0 : Te.dark.projection,
|
|
@@ -30793,7 +30767,7 @@ class qn {
|
|
|
30793
30767
|
protected: !1,
|
|
30794
30768
|
draft: !1,
|
|
30795
30769
|
layers: [
|
|
30796
|
-
(
|
|
30770
|
+
(Be = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Be.find((m) => m.id === "land"),
|
|
30797
30771
|
(G = (R = this.originStyle) == null ? void 0 : R.dark.layers) == null ? void 0 : G.find((m) => m.id === "water"),
|
|
30798
30772
|
(Ve = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ve.find((m) => m.id === "ice-area-fill"),
|
|
30799
30773
|
(Pe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Pe.find((m) => m.id === "ice-area-line"),
|
|
@@ -31014,7 +30988,7 @@ const Xn = {
|
|
|
31014
30988
|
}
|
|
31015
30989
|
}, Kn = { class: "mapbox-initial-gl4" }, Qn = { class: "v-btn--variant-elevated rounded" }, Jn = { class: "zoom" }, $n = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
|
|
31016
30990
|
function ec(t, e, o, i, a, r) {
|
|
31017
|
-
const s =
|
|
30991
|
+
const s = w("VBtn");
|
|
31018
30992
|
return y(), M("div", Kn, [
|
|
31019
30993
|
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
31020
30994
|
l("div", {
|
|
@@ -31022,28 +30996,28 @@ function ec(t, e, o, i, a, r) {
|
|
|
31022
30996
|
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31023
30997
|
}, [
|
|
31024
30998
|
l("div", Qn, [
|
|
31025
|
-
|
|
30999
|
+
d(s, {
|
|
31026
31000
|
"min-width": "32",
|
|
31027
31001
|
width: "32",
|
|
31028
31002
|
height: "32",
|
|
31029
31003
|
class: "pa-0 elevation-0",
|
|
31030
31004
|
onClick: r.handleZoomIn
|
|
31031
31005
|
}, {
|
|
31032
|
-
default:
|
|
31006
|
+
default: p(() => e[0] || (e[0] = [
|
|
31033
31007
|
l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
31034
31008
|
])),
|
|
31035
31009
|
_: 1,
|
|
31036
31010
|
__: [0]
|
|
31037
31011
|
}, 8, ["onClick"]),
|
|
31038
31012
|
l("div", Jn, b(Math.floor(a.zoom)), 1),
|
|
31039
|
-
|
|
31013
|
+
d(s, {
|
|
31040
31014
|
"min-width": "32",
|
|
31041
31015
|
width: "32",
|
|
31042
31016
|
height: "32",
|
|
31043
31017
|
class: "elevation-0 pa-0",
|
|
31044
31018
|
onClick: r.handleZoomOut
|
|
31045
31019
|
}, {
|
|
31046
|
-
default:
|
|
31020
|
+
default: p(() => e[1] || (e[1] = [
|
|
31047
31021
|
l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
31048
31022
|
])),
|
|
31049
31023
|
_: 1,
|