@idmwx/idmui-gl4 1.0.9 → 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
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";
|
|
@@ -440,7 +440,7 @@ const ci = {
|
|
|
440
440
|
"symbol-placement": "point",
|
|
441
441
|
"icon-image": "warning",
|
|
442
442
|
"icon-size": 1,
|
|
443
|
-
"icon-offset": [0, -
|
|
443
|
+
"icon-offset": [0, -13],
|
|
444
444
|
"icon-allow-overlap": !0,
|
|
445
445
|
"icon-rotation-alignment": "viewport"
|
|
446
446
|
},
|
|
@@ -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
|
-
d(
|
|
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
|
}),
|
|
@@ -599,7 +599,11 @@ const pi = {
|
|
|
599
599
|
"symbol-placement": "point",
|
|
600
600
|
"icon-size": 1,
|
|
601
601
|
"icon-image": "port",
|
|
602
|
-
"icon-offset": [0, -
|
|
602
|
+
"icon-offset": [0, -13],
|
|
603
|
+
"icon-allow-overlap": !1,
|
|
604
|
+
"icon-ignore-placement": !1,
|
|
605
|
+
"icon-avoid-edges": !1,
|
|
606
|
+
"icon-padding": 4,
|
|
603
607
|
"text-anchor": "bottom",
|
|
604
608
|
"text-field": "{name}",
|
|
605
609
|
"text-rotation-alignment": "viewport",
|
|
@@ -641,14 +645,14 @@ const pi = {
|
|
|
641
645
|
}
|
|
642
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" };
|
|
643
647
|
function yi(t, e, o, i, a, r) {
|
|
644
|
-
const s =
|
|
645
|
-
return He((y(), B(
|
|
648
|
+
const s = w("VCardText"), c = w("VCard");
|
|
649
|
+
return He((y(), B(c, {
|
|
646
650
|
id: "idmPortInfo",
|
|
647
651
|
ref: "idmPortInfo"
|
|
648
652
|
}, {
|
|
649
|
-
default:
|
|
653
|
+
default: p(() => [
|
|
650
654
|
d(s, { class: "text-body-1 pr-8" }, {
|
|
651
|
-
default:
|
|
655
|
+
default: p(() => [
|
|
652
656
|
l("div", ui, [
|
|
653
657
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
654
658
|
l("div", gi, [
|
|
@@ -668,7 +672,7 @@ function yi(t, e, o, i, a, r) {
|
|
|
668
672
|
[We, a.showInfo]
|
|
669
673
|
]);
|
|
670
674
|
}
|
|
671
|
-
const bi = /* @__PURE__ */ V(pi, [["render", yi], ["__scopeId", "data-v-
|
|
675
|
+
const bi = /* @__PURE__ */ V(pi, [["render", yi], ["__scopeId", "data-v-70375c62"]]), wi = {
|
|
672
676
|
name: "IdmLoadLine",
|
|
673
677
|
props: {
|
|
674
678
|
map: {
|
|
@@ -1340,16 +1344,16 @@ const Ui = {
|
|
|
1340
1344
|
var o, i, a, r;
|
|
1341
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;
|
|
1342
1346
|
for (let s = 0; s < 4; s++) {
|
|
1343
|
-
let
|
|
1347
|
+
let c = {
|
|
1344
1348
|
index: s,
|
|
1345
1349
|
dateTimeList: [],
|
|
1346
1350
|
label: I().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
1347
1351
|
startTime: I().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1348
1352
|
dateTime: I().utcOffset(e).add(s, "days").format()
|
|
1349
1353
|
};
|
|
1350
|
-
for (let
|
|
1351
|
-
|
|
1352
|
-
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);
|
|
1353
1357
|
}
|
|
1354
1358
|
return t;
|
|
1355
1359
|
},
|
|
@@ -1463,7 +1467,7 @@ const Ui = {
|
|
|
1463
1467
|
forecastDays: 5,
|
|
1464
1468
|
extremes: !0,
|
|
1465
1469
|
heights: !0
|
|
1466
|
-
}, e = await
|
|
1470
|
+
}, e = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, t, {
|
|
1467
1471
|
headers: {
|
|
1468
1472
|
Authorization: this.token
|
|
1469
1473
|
}
|
|
@@ -1604,18 +1608,18 @@ const Ui = {
|
|
|
1604
1608
|
width: "120"
|
|
1605
1609
|
};
|
|
1606
1610
|
function _r(t, e, o, i, a, r) {
|
|
1607
|
-
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");
|
|
1608
1612
|
return y(), M("div", null, [
|
|
1609
|
-
He(d(
|
|
1610
|
-
default:
|
|
1613
|
+
He(d(c, { id: "idmTidalInfo" }, {
|
|
1614
|
+
default: p(() => [
|
|
1611
1615
|
d(s, { class: "pr-8 text-body-1" }, {
|
|
1612
|
-
default:
|
|
1613
|
-
var f,
|
|
1616
|
+
default: p(() => {
|
|
1617
|
+
var f, L;
|
|
1614
1618
|
return [
|
|
1615
1619
|
l("div", Gi, [
|
|
1616
1620
|
e[2] || (e[2] = l("div", { class: "d-flex justify-start align-center" }, "Tide Station ", -1)),
|
|
1617
1621
|
l("div", Vi, [
|
|
1618
|
-
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)
|
|
1619
1623
|
])
|
|
1620
1624
|
])
|
|
1621
1625
|
];
|
|
@@ -1627,29 +1631,29 @@ function _r(t, e, o, i, a, r) {
|
|
|
1627
1631
|
}, 512), [
|
|
1628
1632
|
[We, a.showInfo]
|
|
1629
1633
|
]),
|
|
1630
|
-
a.showDetail ? (y(), B(
|
|
1634
|
+
a.showDetail ? (y(), B(c, {
|
|
1631
1635
|
key: 0,
|
|
1632
1636
|
class: "tide-detail-container d-flex flex-column justify-start align-center"
|
|
1633
1637
|
}, {
|
|
1634
|
-
default:
|
|
1635
|
-
var f,
|
|
1638
|
+
default: p(() => {
|
|
1639
|
+
var f, L, _, T;
|
|
1636
1640
|
return [
|
|
1637
|
-
d(
|
|
1638
|
-
default:
|
|
1639
|
-
var
|
|
1641
|
+
d(u, { class: "w-100" }, {
|
|
1642
|
+
default: p(() => {
|
|
1643
|
+
var x;
|
|
1640
1644
|
return [
|
|
1641
1645
|
l("div", Yi, [
|
|
1642
1646
|
l("div", qi, [
|
|
1643
|
-
l("div", null, b((
|
|
1647
|
+
l("div", null, b((x = a.station) == null ? void 0 : x.name), 1)
|
|
1644
1648
|
]),
|
|
1645
|
-
d(
|
|
1649
|
+
d(n, {
|
|
1646
1650
|
icon: "",
|
|
1647
1651
|
density: "compact",
|
|
1648
1652
|
variant: "plain",
|
|
1649
1653
|
class: "mr-n2",
|
|
1650
1654
|
onClick: e[0] || (e[0] = (D) => a.showDetail = !1)
|
|
1651
1655
|
}, {
|
|
1652
|
-
default:
|
|
1656
|
+
default: p(() => e[3] || (e[3] = [
|
|
1653
1657
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
1654
1658
|
])),
|
|
1655
1659
|
_: 1,
|
|
@@ -1664,7 +1668,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1664
1668
|
_: 1,
|
|
1665
1669
|
__: [4]
|
|
1666
1670
|
}),
|
|
1667
|
-
d(
|
|
1671
|
+
d(h, { class: "w-100" }),
|
|
1668
1672
|
l("div", Xi, [
|
|
1669
1673
|
l("div", Ki, [
|
|
1670
1674
|
l("div", Qi, [
|
|
@@ -1681,11 +1685,11 @@ function _r(t, e, o, i, a, r) {
|
|
|
1681
1685
|
l("div", tr, [
|
|
1682
1686
|
l("div", or, [
|
|
1683
1687
|
l("div", ar, b(t.$t("tide.region")), 1),
|
|
1684
|
-
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)
|
|
1685
1689
|
]),
|
|
1686
1690
|
l("div", rr, [
|
|
1687
1691
|
l("div", lr, b(t.$t("tide.position")), 1),
|
|
1688
|
-
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)
|
|
1689
1693
|
]),
|
|
1690
1694
|
l("div", nr, [
|
|
1691
1695
|
l("div", cr, b(t.$t("time.localTime")), 1),
|
|
@@ -1706,9 +1710,9 @@ function _r(t, e, o, i, a, r) {
|
|
|
1706
1710
|
e[8] || (e[8] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1707
1711
|
]),
|
|
1708
1712
|
l("div", fr, [
|
|
1709
|
-
d(
|
|
1713
|
+
d(g, {
|
|
1710
1714
|
modelValue: a.currentIndex,
|
|
1711
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1715
|
+
"onUpdate:modelValue": e[1] || (e[1] = (x) => a.currentIndex = x),
|
|
1712
1716
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
1713
1717
|
density: "compact",
|
|
1714
1718
|
group: "",
|
|
@@ -1716,16 +1720,16 @@ function _r(t, e, o, i, a, r) {
|
|
|
1716
1720
|
"min-height": "26",
|
|
1717
1721
|
rounded: "1"
|
|
1718
1722
|
}, {
|
|
1719
|
-
default:
|
|
1720
|
-
(y(!0), M(be, null, we(r.dateList, (
|
|
1723
|
+
default: p(() => [
|
|
1724
|
+
(y(!0), M(be, null, we(r.dateList, (x) => (y(), B(n, {
|
|
1721
1725
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1722
1726
|
density: "compact",
|
|
1723
1727
|
color: "primary",
|
|
1724
1728
|
height: "26",
|
|
1725
|
-
value:
|
|
1729
|
+
value: x.index
|
|
1726
1730
|
}, {
|
|
1727
|
-
default:
|
|
1728
|
-
U(b(
|
|
1731
|
+
default: p(() => [
|
|
1732
|
+
U(b(x.label), 1)
|
|
1729
1733
|
]),
|
|
1730
1734
|
_: 2
|
|
1731
1735
|
}, 1032, ["value"]))), 256))
|
|
@@ -1737,27 +1741,27 @@ function _r(t, e, o, i, a, r) {
|
|
|
1737
1741
|
l("tbody", null, [
|
|
1738
1742
|
l("tr", null, [
|
|
1739
1743
|
l("th", wr, b(t.$t("tide.tide")) + " ( m )", 1),
|
|
1740
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1744
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => {
|
|
1741
1745
|
var S;
|
|
1742
1746
|
return y(), M("td", {
|
|
1743
|
-
key:
|
|
1747
|
+
key: x.type + "-" + D,
|
|
1744
1748
|
class: "px-1 text-center"
|
|
1745
|
-
}, b(t.$t(`tide.${(S =
|
|
1749
|
+
}, b(t.$t(`tide.${(S = x == null ? void 0 : x.type) == null ? void 0 : S.toLowerCase()}`)), 1);
|
|
1746
1750
|
}), 128))
|
|
1747
1751
|
]),
|
|
1748
1752
|
l("tr", null, [
|
|
1749
1753
|
l("th", xr, b(t.$t("tide.datum")), 1),
|
|
1750
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1751
|
-
key:
|
|
1754
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => (y(), M("td", {
|
|
1755
|
+
key: x.date + "-" + D,
|
|
1752
1756
|
class: "px-1 text-center"
|
|
1753
|
-
}, b(r.computeHourLT(
|
|
1757
|
+
}, b(r.computeHourLT(x == null ? void 0 : x.date, a.station)) + " LT", 1))), 128))
|
|
1754
1758
|
]),
|
|
1755
1759
|
l("tr", null, [
|
|
1756
1760
|
l("th", vr, b(t.$t("tide.chartDatum")), 1),
|
|
1757
|
-
(y(!0), M(be, null, we(a.tideTableData, (
|
|
1758
|
-
key:
|
|
1761
|
+
(y(!0), M(be, null, we(a.tideTableData, (x, D) => (y(), M("td", {
|
|
1762
|
+
key: x.height + "-" + D,
|
|
1759
1763
|
class: "px-1 text-center"
|
|
1760
|
-
}, b((
|
|
1764
|
+
}, b((x == null ? void 0 : x.height) ?? "-") + " m", 1))), 128))
|
|
1761
1765
|
])
|
|
1762
1766
|
])
|
|
1763
1767
|
])
|
|
@@ -1982,14 +1986,14 @@ const Cr = {
|
|
|
1982
1986
|
}
|
|
1983
1987
|
};
|
|
1984
1988
|
function Tr(t, e, o, i, a, r) {
|
|
1985
|
-
var s,
|
|
1989
|
+
var s, c, n;
|
|
1986
1990
|
return y(), M("div", {
|
|
1987
1991
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1988
1992
|
style: ae({ right: a.right + "px" })
|
|
1989
1993
|
}, [
|
|
1990
1994
|
l("div", null, b((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1991
|
-
l("div", null, b((
|
|
1992
|
-
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)
|
|
1993
1997
|
], 4);
|
|
1994
1998
|
}
|
|
1995
1999
|
const Za = /* @__PURE__ */ V(Cr, [["render", Tr]]);
|
|
@@ -2867,7 +2871,7 @@ const Sr = {
|
|
|
2867
2871
|
"symbol-placement": "point",
|
|
2868
2872
|
"icon-size": 1,
|
|
2869
2873
|
"icon-image": "port",
|
|
2870
|
-
"icon-offset": [0, -
|
|
2874
|
+
"icon-offset": [0, -13],
|
|
2871
2875
|
"text-anchor": "bottom",
|
|
2872
2876
|
"text-field": "{name}",
|
|
2873
2877
|
"text-rotation-alignment": "viewport",
|
|
@@ -2906,14 +2910,14 @@ const Sr = {
|
|
|
2906
2910
|
}
|
|
2907
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" };
|
|
2908
2912
|
function Dr(t, e, o, i, a, r) {
|
|
2909
|
-
const s =
|
|
2910
|
-
return He((y(), B(
|
|
2913
|
+
const s = w("v-card-text"), c = w("v-card");
|
|
2914
|
+
return He((y(), B(c, {
|
|
2911
2915
|
id: "idmFollowPortInfo",
|
|
2912
2916
|
ref: "idmFollowPortInfo"
|
|
2913
2917
|
}, {
|
|
2914
|
-
default:
|
|
2918
|
+
default: p(() => [
|
|
2915
2919
|
d(s, { class: "text-body-1 pr-8" }, {
|
|
2916
|
-
default:
|
|
2920
|
+
default: p(() => [
|
|
2917
2921
|
l("div", Mr, [
|
|
2918
2922
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
2919
2923
|
l("div", Ir, [
|
|
@@ -2933,7 +2937,7 @@ function Dr(t, e, o, i, a, r) {
|
|
|
2933
2937
|
[We, a.showInfo]
|
|
2934
2938
|
]);
|
|
2935
2939
|
}
|
|
2936
|
-
const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-
|
|
2940
|
+
const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-98bcf2a1"]]), Or = {
|
|
2937
2941
|
name: "IdmFollowPosition",
|
|
2938
2942
|
props: {
|
|
2939
2943
|
map: {
|
|
@@ -3807,7 +3811,7 @@ const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-de5a1fa3
|
|
|
3807
3811
|
"symbol-placement": "point",
|
|
3808
3812
|
"icon-size": 1,
|
|
3809
3813
|
"icon-image": "location",
|
|
3810
|
-
"icon-offset": [0, -
|
|
3814
|
+
"icon-offset": [0, -13]
|
|
3811
3815
|
},
|
|
3812
3816
|
paint: {
|
|
3813
3817
|
"text-color": this.Theme.current.value.colors["on-surface"],
|
|
@@ -3820,16 +3824,18 @@ const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-de5a1fa3
|
|
|
3820
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);
|
|
3821
3825
|
},
|
|
3822
3826
|
handleClick(t) {
|
|
3823
|
-
var o, i, a, r, s,
|
|
3827
|
+
var o, i, a, r, s, c, n, u, h;
|
|
3824
3828
|
const e = t.features[0];
|
|
3825
3829
|
if (e.properties) {
|
|
3826
|
-
const
|
|
3827
|
-
|
|
3828
|
-
|
|
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,
|
|
3829
3835
|
datetime: this.realTime,
|
|
3830
3836
|
forecastModel: this.forecastModel
|
|
3831
3837
|
};
|
|
3832
|
-
|
|
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(_);
|
|
3833
3839
|
}
|
|
3834
3840
|
},
|
|
3835
3841
|
handleHover() {
|
|
@@ -3932,7 +3938,6 @@ const jr = {
|
|
|
3932
3938
|
{ name: "Nautical Map", value: "nautical", locale: "nauticalMap" }
|
|
3933
3939
|
],
|
|
3934
3940
|
checkList: []
|
|
3935
|
-
// followList: [],
|
|
3936
3941
|
};
|
|
3937
3942
|
},
|
|
3938
3943
|
computed: {
|
|
@@ -3944,12 +3949,6 @@ const jr = {
|
|
|
3944
3949
|
}
|
|
3945
3950
|
},
|
|
3946
3951
|
watch: {
|
|
3947
|
-
isLogin: {
|
|
3948
|
-
handler() {
|
|
3949
|
-
this.isLogin && this.fetchOtherLayers();
|
|
3950
|
-
},
|
|
3951
|
-
immediate: !0
|
|
3952
|
-
},
|
|
3953
3952
|
"menuToggle.v": {
|
|
3954
3953
|
handler() {
|
|
3955
3954
|
this.toggle = this.menuToggle.otherLayers, this.$nextTick(() => {
|
|
@@ -3959,6 +3958,11 @@ const jr = {
|
|
|
3959
3958
|
},
|
|
3960
3959
|
immediate: !0
|
|
3961
3960
|
},
|
|
3961
|
+
realTime: {
|
|
3962
|
+
handler(t, e) {
|
|
3963
|
+
t && e && t !== e && this.checkList.includes("day-night") && this.fetchDayNightLayer();
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3962
3966
|
theme: {
|
|
3963
3967
|
handler() {
|
|
3964
3968
|
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
|
|
@@ -3984,12 +3988,6 @@ const jr = {
|
|
|
3984
3988
|
this.$emit("otherCheckList", this.checkList);
|
|
3985
3989
|
}
|
|
3986
3990
|
}
|
|
3987
|
-
// followList: {
|
|
3988
|
-
// handler() {
|
|
3989
|
-
// localStorage.setItem(this.cache.followListKey, JSON.stringify(this.followList))
|
|
3990
|
-
// this.$emit('followLayerList', this.followList)
|
|
3991
|
-
// },
|
|
3992
|
-
// },
|
|
3993
3991
|
},
|
|
3994
3992
|
async mounted() {
|
|
3995
3993
|
this.fetchCache();
|
|
@@ -4009,62 +4007,46 @@ const jr = {
|
|
|
4009
4007
|
handleToggleMapFeather(t) {
|
|
4010
4008
|
this.$emit("map", void 0), this.mapFeather = t.value;
|
|
4011
4009
|
},
|
|
4012
|
-
async fetchOtherLayers(
|
|
4013
|
-
var
|
|
4014
|
-
let
|
|
4015
|
-
if (
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
Authorization: this.token || this.defaultMeteoToken
|
|
4020
|
-
}
|
|
4021
|
-
});
|
|
4022
|
-
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
4023
|
-
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, g = [];
|
|
4024
|
-
for (const h in c)
|
|
4025
|
-
g.push(
|
|
4026
|
-
Se.get(c[h], {
|
|
4027
|
-
headers: {
|
|
4028
|
-
Authorization: this.token || this.defaultMeteoToken,
|
|
4029
|
-
key: h
|
|
4030
|
-
}
|
|
4031
|
-
})
|
|
4032
|
-
);
|
|
4033
|
-
(await Promise.all(g)).map((h) => {
|
|
4034
|
-
var v, T, w;
|
|
4035
|
-
const f = ((v = h == null ? void 0 : h.data) == null ? void 0 : v.data) || (h == null ? void 0 : h.data), k = (w = (T = h == null ? void 0 : h.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4036
|
-
this.otherLayers[k] = f;
|
|
4037
|
-
});
|
|
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
|
|
4038
4017
|
}
|
|
4039
|
-
}
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
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;
|
|
4044
4034
|
});
|
|
4045
|
-
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
4046
|
-
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, g = [];
|
|
4047
|
-
for (const h in c)
|
|
4048
|
-
g.push(
|
|
4049
|
-
Se.get(c[h], {
|
|
4050
|
-
headers: {
|
|
4051
|
-
Authorization: this.token || this.defaultMeteoToken,
|
|
4052
|
-
key: h
|
|
4053
|
-
}
|
|
4054
|
-
})
|
|
4055
|
-
);
|
|
4056
|
-
(await Promise.all(g)).map((h) => {
|
|
4057
|
-
var v, T, w;
|
|
4058
|
-
const f = ((v = h == null ? void 0 : h.data) == null ? void 0 : v.data) || (h == null ? void 0 : h.data), k = (w = (T = h == null ? void 0 : h.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4059
|
-
this.otherLayers[k] = f;
|
|
4060
|
-
});
|
|
4061
|
-
}
|
|
4062
4035
|
}
|
|
4063
4036
|
}
|
|
4064
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
|
+
},
|
|
4065
4047
|
handleLayersChange(t) {
|
|
4066
4048
|
const e = t == null ? void 0 : t.reduce((o, i) => o + (i == null ? void 0 : i.weight), 0);
|
|
4067
|
-
this.layerWeight = e, this.fetchOtherLayers(
|
|
4049
|
+
this.layerWeight = e, this.fetchOtherLayers();
|
|
4068
4050
|
}
|
|
4069
4051
|
}
|
|
4070
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 = {
|
|
@@ -4086,17 +4068,17 @@ const jr = {
|
|
|
4086
4068
|
}, Xr = { class: "text-body-2 text-center pt-1" };
|
|
4087
4069
|
function Kr(t, e, o, i, a, r) {
|
|
4088
4070
|
var J, le, pe, ue, ce, Q, ie, ge, me;
|
|
4089
|
-
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");
|
|
4090
4072
|
return y(), M("div", Nr, [
|
|
4091
4073
|
l("div", {
|
|
4092
4074
|
class: "menu-bar-box transition px-1 rounded",
|
|
4093
4075
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4094
4076
|
}, [
|
|
4095
|
-
d(
|
|
4077
|
+
d(c, {
|
|
4096
4078
|
text: t.$t("layer.mapLayers"),
|
|
4097
4079
|
location: "left"
|
|
4098
4080
|
}, {
|
|
4099
|
-
activator:
|
|
4081
|
+
activator: p(({ props: F }) => [
|
|
4100
4082
|
d(s, j(F, {
|
|
4101
4083
|
"min-width": "32",
|
|
4102
4084
|
width: "32",
|
|
@@ -4104,7 +4086,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4104
4086
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
4105
4087
|
onClick: r.handleMenuToggle
|
|
4106
4088
|
}), {
|
|
4107
|
-
default:
|
|
4089
|
+
default: p(() => e[5] || (e[5] = [
|
|
4108
4090
|
l("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
|
|
4109
4091
|
])),
|
|
4110
4092
|
_: 2,
|
|
@@ -4127,7 +4109,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4127
4109
|
class: "mr-n2",
|
|
4128
4110
|
onClick: r.handleMenuToggle
|
|
4129
4111
|
}, {
|
|
4130
|
-
default:
|
|
4112
|
+
default: p(() => e[6] || (e[6] = [
|
|
4131
4113
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
4132
4114
|
])),
|
|
4133
4115
|
_: 1,
|
|
@@ -4139,14 +4121,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4139
4121
|
class: "menu-card mx-auto mb-3",
|
|
4140
4122
|
elevation: "0"
|
|
4141
4123
|
}, {
|
|
4142
|
-
default:
|
|
4143
|
-
d(
|
|
4144
|
-
default:
|
|
4145
|
-
d(
|
|
4124
|
+
default: p(() => [
|
|
4125
|
+
d(u, { class: "border-b-thin" }, {
|
|
4126
|
+
default: p(() => [
|
|
4127
|
+
d(n, {
|
|
4146
4128
|
class: "text-subtitle-1 font-weight-medium",
|
|
4147
4129
|
style: { "font-size": "16px !important" }
|
|
4148
4130
|
}, {
|
|
4149
|
-
default:
|
|
4131
|
+
default: p(() => [
|
|
4150
4132
|
U(b(t.$t("layer.mapFeathers")), 1)
|
|
4151
4133
|
]),
|
|
4152
4134
|
_: 1
|
|
@@ -4154,8 +4136,8 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4154
4136
|
]),
|
|
4155
4137
|
_: 1
|
|
4156
4138
|
}),
|
|
4157
|
-
d(
|
|
4158
|
-
default:
|
|
4139
|
+
d(g, { class: "pb-2" }, {
|
|
4140
|
+
default: p(() => [
|
|
4159
4141
|
l("div", Ur, [
|
|
4160
4142
|
(y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
|
|
4161
4143
|
key: F.value,
|
|
@@ -4170,7 +4152,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4170
4152
|
l("div", Xr, b(t.$t(`layer.${F.locale}`)), 1)
|
|
4171
4153
|
], 8, Gr))), 128))
|
|
4172
4154
|
]),
|
|
4173
|
-
(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, {
|
|
4174
4156
|
key: F.key,
|
|
4175
4157
|
modelValue: a.checkList,
|
|
4176
4158
|
"onUpdate:modelValue": e[0] || (e[0] = (de) => a.checkList = de),
|
|
@@ -4192,14 +4174,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4192
4174
|
class: "menu-card mx-auto mb-3",
|
|
4193
4175
|
elevation: "0"
|
|
4194
4176
|
}, {
|
|
4195
|
-
default:
|
|
4196
|
-
d(
|
|
4197
|
-
default:
|
|
4198
|
-
d(
|
|
4177
|
+
default: p(() => [
|
|
4178
|
+
d(u, { class: "border-b-thin" }, {
|
|
4179
|
+
default: p(() => [
|
|
4180
|
+
d(n, {
|
|
4199
4181
|
class: "text-subtitle-1 font-weight-medium",
|
|
4200
4182
|
style: { "font-size": "16px !important" }
|
|
4201
4183
|
}, {
|
|
4202
|
-
default:
|
|
4184
|
+
default: p(() => [
|
|
4203
4185
|
U(b(t.$t("layer.pointsOfInteresting")), 1)
|
|
4204
4186
|
]),
|
|
4205
4187
|
_: 1
|
|
@@ -4207,9 +4189,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4207
4189
|
]),
|
|
4208
4190
|
_: 1
|
|
4209
4191
|
}),
|
|
4210
|
-
d(
|
|
4211
|
-
default:
|
|
4212
|
-
(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, {
|
|
4213
4195
|
key: F.key,
|
|
4214
4196
|
modelValue: a.checkList,
|
|
4215
4197
|
"onUpdate:modelValue": e[1] || (e[1] = (de) => a.checkList = de),
|
|
@@ -4231,14 +4213,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4231
4213
|
class: "menu-card mx-auto mb-3",
|
|
4232
4214
|
elevation: "0"
|
|
4233
4215
|
}, {
|
|
4234
|
-
default:
|
|
4235
|
-
d(
|
|
4236
|
-
default:
|
|
4237
|
-
d(
|
|
4216
|
+
default: p(() => [
|
|
4217
|
+
d(u, { class: "border-b-thin" }, {
|
|
4218
|
+
default: p(() => [
|
|
4219
|
+
d(n, {
|
|
4238
4220
|
class: "text-subtitle-1 font-weight-medium",
|
|
4239
4221
|
style: { "font-size": "16px !important" }
|
|
4240
4222
|
}, {
|
|
4241
|
-
default:
|
|
4223
|
+
default: p(() => [
|
|
4242
4224
|
U(b(t.$t("layer.otherLayers")), 1)
|
|
4243
4225
|
]),
|
|
4244
4226
|
_: 1
|
|
@@ -4246,9 +4228,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4246
4228
|
]),
|
|
4247
4229
|
_: 1
|
|
4248
4230
|
}),
|
|
4249
|
-
d(
|
|
4250
|
-
default:
|
|
4251
|
-
(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, {
|
|
4252
4234
|
key: F.key,
|
|
4253
4235
|
modelValue: a.checkList,
|
|
4254
4236
|
"onUpdate:modelValue": e[2] || (e[2] = (de) => a.checkList = de),
|
|
@@ -4270,14 +4252,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4270
4252
|
class: "menu-card mx-auto mb-3",
|
|
4271
4253
|
elevation: "0"
|
|
4272
4254
|
}, {
|
|
4273
|
-
default:
|
|
4274
|
-
d(
|
|
4275
|
-
default:
|
|
4276
|
-
d(
|
|
4255
|
+
default: p(() => [
|
|
4256
|
+
d(u, { class: "border-b-thin" }, {
|
|
4257
|
+
default: p(() => [
|
|
4258
|
+
d(n, {
|
|
4277
4259
|
class: "text-subtitle-1 font-weight-medium",
|
|
4278
4260
|
style: { "font-size": "16px !important" }
|
|
4279
4261
|
}, {
|
|
4280
|
-
default:
|
|
4262
|
+
default: p(() => [
|
|
4281
4263
|
U(b(t.$t("layer.myFollows")), 1)
|
|
4282
4264
|
]),
|
|
4283
4265
|
_: 1
|
|
@@ -4285,9 +4267,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4285
4267
|
]),
|
|
4286
4268
|
_: 1
|
|
4287
4269
|
}),
|
|
4288
|
-
d(
|
|
4289
|
-
default:
|
|
4290
|
-
d(
|
|
4270
|
+
d(g, { class: "py-2" }, {
|
|
4271
|
+
default: p(() => [
|
|
4272
|
+
d(h, {
|
|
4291
4273
|
modelValue: a.checkList,
|
|
4292
4274
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
|
|
4293
4275
|
value: "follow-ports",
|
|
@@ -4298,7 +4280,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4298
4280
|
class: "flex-1-0-100 text-body-2",
|
|
4299
4281
|
"hide-details": ""
|
|
4300
4282
|
}, null, 8, ["modelValue", "label"]),
|
|
4301
|
-
d(
|
|
4283
|
+
d(h, {
|
|
4302
4284
|
modelValue: a.checkList,
|
|
4303
4285
|
"onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
|
|
4304
4286
|
value: "follow-positions",
|
|
@@ -4317,13 +4299,13 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4317
4299
|
})
|
|
4318
4300
|
])
|
|
4319
4301
|
], 6),
|
|
4320
|
-
o.map ? (y(), B(
|
|
4302
|
+
o.map ? (y(), B(L, j({
|
|
4321
4303
|
key: 0,
|
|
4322
4304
|
map: o.map,
|
|
4323
4305
|
"menu-toggle": o.menuToggle,
|
|
4324
4306
|
show: a.checkList.includes("graticule")
|
|
4325
4307
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : E("", !0),
|
|
4326
|
-
o.map ? (y(), B(
|
|
4308
|
+
o.map ? (y(), B(_, j({
|
|
4327
4309
|
key: 1,
|
|
4328
4310
|
map: o.map,
|
|
4329
4311
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
@@ -4333,7 +4315,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4333
4315
|
map: o.map,
|
|
4334
4316
|
zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"]
|
|
4335
4317
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4336
|
-
o.map ? (y(), B(
|
|
4318
|
+
o.map ? (y(), B(x, j({
|
|
4337
4319
|
key: 3,
|
|
4338
4320
|
map: o.map,
|
|
4339
4321
|
ports: (pe = a.otherLayers) == null ? void 0 : pe.ports,
|
|
@@ -4363,12 +4345,12 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4363
4345
|
map: o.map,
|
|
4364
4346
|
zone: (ce = a.otherLayers) == null ? void 0 : ce["eca-zones"]
|
|
4365
4347
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4366
|
-
o.map ? (y(), B(
|
|
4348
|
+
o.map ? (y(), B(k, j({
|
|
4367
4349
|
key: 7,
|
|
4368
4350
|
map: o.map,
|
|
4369
4351
|
zone: (Q = a.otherLayers) == null ? void 0 : Q["war-zones"]
|
|
4370
4352
|
}, t.$attrs), null, 16, ["map", "zone"])) : E("", !0),
|
|
4371
|
-
o.map ? (y(), B(
|
|
4353
|
+
o.map ? (y(), B(z, j({
|
|
4372
4354
|
key: 8,
|
|
4373
4355
|
map: o.map,
|
|
4374
4356
|
area: (ie = a.otherLayers) == null ? void 0 : ie["gmdss-areas"]
|
|
@@ -4378,7 +4360,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4378
4360
|
map: o.map,
|
|
4379
4361
|
show: a.checkList.includes("load-lines")
|
|
4380
4362
|
}, t.$attrs), null, 16, ["map", "show"])) : E("", !0),
|
|
4381
|
-
o.map ? (y(), B(
|
|
4363
|
+
o.map ? (y(), B(v, j({
|
|
4382
4364
|
key: 10,
|
|
4383
4365
|
map: o.map,
|
|
4384
4366
|
token: o.token,
|
|
@@ -4473,12 +4455,12 @@ class ro {
|
|
|
4473
4455
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
4474
4456
|
*/
|
|
4475
4457
|
getBoundPixel() {
|
|
4476
|
-
var
|
|
4477
|
-
const e = (
|
|
4458
|
+
var _, T;
|
|
4459
|
+
const e = (_ = this.map) == null ? void 0 : _.getBounds();
|
|
4478
4460
|
if (!e)
|
|
4479
4461
|
return [];
|
|
4480
|
-
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]), [
|
|
4481
|
-
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];
|
|
4482
4464
|
}
|
|
4483
4465
|
/**
|
|
4484
4466
|
* [视窗边界像素宽度]
|
|
@@ -4493,13 +4475,13 @@ class ro {
|
|
|
4493
4475
|
* @param zoom
|
|
4494
4476
|
*/
|
|
4495
4477
|
getWorldCopy(e, o) {
|
|
4496
|
-
const i = 2 ** o, [a, r, s,
|
|
4497
|
-
for (let
|
|
4498
|
-
for (let
|
|
4499
|
-
|
|
4500
|
-
return
|
|
4501
|
-
const
|
|
4502
|
-
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];
|
|
4503
4485
|
});
|
|
4504
4486
|
}
|
|
4505
4487
|
resize() {
|
|
@@ -4542,9 +4524,9 @@ class Ne {
|
|
|
4542
4524
|
* @param width??
|
|
4543
4525
|
* @param height??
|
|
4544
4526
|
*/
|
|
4545
|
-
createTexture(e, o, i, a, r, s,
|
|
4546
|
-
const
|
|
4547
|
-
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;
|
|
4548
4530
|
}
|
|
4549
4531
|
/**
|
|
4550
4532
|
* 创建数据资源
|
|
@@ -4582,14 +4564,14 @@ class Ne {
|
|
|
4582
4564
|
const a = this.createProgram(e, o, i);
|
|
4583
4565
|
if (a) {
|
|
4584
4566
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
4585
|
-
for (let
|
|
4586
|
-
const
|
|
4587
|
-
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);
|
|
4588
4570
|
}
|
|
4589
|
-
const
|
|
4590
|
-
for (let
|
|
4591
|
-
const
|
|
4592
|
-
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);
|
|
4593
4575
|
}
|
|
4594
4576
|
return r;
|
|
4595
4577
|
}
|
|
@@ -4601,19 +4583,19 @@ class Ne {
|
|
|
4601
4583
|
setup(e, o, i = !1, a, r) {
|
|
4602
4584
|
const s = document.createElement("canvas");
|
|
4603
4585
|
s.width = 256, s.height = 1;
|
|
4604
|
-
const
|
|
4605
|
-
if (
|
|
4606
|
-
const
|
|
4607
|
-
return o.forEach(([
|
|
4608
|
-
|
|
4609
|
-
}),
|
|
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), {
|
|
4610
4592
|
canvas: s,
|
|
4611
4593
|
texture: this.createTexture(
|
|
4612
4594
|
e,
|
|
4613
4595
|
e.LINEAR,
|
|
4614
4596
|
e.LINEAR,
|
|
4615
4597
|
e.CLAMP_TO_EDGE,
|
|
4616
|
-
i ? new Uint8Array(
|
|
4598
|
+
i ? new Uint8Array(c.getImageData(0, 0, 256, 1).data) : s,
|
|
4617
4599
|
a,
|
|
4618
4600
|
r
|
|
4619
4601
|
)
|
|
@@ -4622,37 +4604,37 @@ class Ne {
|
|
|
4622
4604
|
}
|
|
4623
4605
|
setupParticle(e, o = 1e3) {
|
|
4624
4606
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
4625
|
-
for (let
|
|
4626
|
-
r[
|
|
4627
|
-
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
4628
|
-
for (let
|
|
4629
|
-
|
|
4630
|
-
const
|
|
4631
|
-
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 };
|
|
4632
4614
|
}
|
|
4633
4615
|
bind(e, o, i) {
|
|
4634
4616
|
const a = this.createProgram(e, o, i);
|
|
4635
4617
|
if (a) {
|
|
4636
4618
|
const r = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(a, "a_position");
|
|
4637
4619
|
e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
|
|
4638
|
-
const
|
|
4639
|
-
this.createDataBuffer(e, "array",
|
|
4640
|
-
const
|
|
4641
|
-
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 };
|
|
4642
4624
|
}
|
|
4643
4625
|
return {};
|
|
4644
4626
|
}
|
|
4645
4627
|
bindParticle(e, o, i, a, r, s) {
|
|
4646
|
-
const
|
|
4647
|
-
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 };
|
|
4648
4630
|
}
|
|
4649
|
-
draw(e, o, i, a, r, s,
|
|
4650
|
-
var
|
|
4631
|
+
draw(e, o, i, a, r, s, c) {
|
|
4632
|
+
var n, u;
|
|
4651
4633
|
if (o && i) {
|
|
4652
|
-
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);
|
|
4653
4635
|
try {
|
|
4654
4636
|
o.useProgram(i);
|
|
4655
|
-
const
|
|
4637
|
+
const h = {
|
|
4656
4638
|
resolution: o.getUniformLocation(i, "u_resolution"),
|
|
4657
4639
|
image: o.getUniformLocation(i, "u_image"),
|
|
4658
4640
|
color: o.getUniformLocation(i, "u_color"),
|
|
@@ -4660,20 +4642,20 @@ class Ne {
|
|
|
4660
4642
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
4661
4643
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
4662
4644
|
};
|
|
4663
|
-
|
|
4664
|
-
const
|
|
4665
|
-
for (const
|
|
4666
|
-
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]);
|
|
4667
4649
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4668
4650
|
}
|
|
4669
|
-
} catch (
|
|
4670
|
-
console.log(`render failed...${
|
|
4651
|
+
} catch (h) {
|
|
4652
|
+
console.log(`render failed...${h}`);
|
|
4671
4653
|
}
|
|
4672
4654
|
}
|
|
4673
4655
|
}
|
|
4674
4656
|
drawParticle(e, o, i, a, r) {
|
|
4675
|
-
var s,
|
|
4676
|
-
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));
|
|
4677
4659
|
}
|
|
4678
4660
|
renderScreen(e, o, i, a) {
|
|
4679
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);
|
|
@@ -4691,11 +4673,11 @@ class Ne {
|
|
|
4691
4673
|
}
|
|
4692
4674
|
}
|
|
4693
4675
|
updateParticles(e, o, i, a) {
|
|
4694
|
-
var s,
|
|
4676
|
+
var s, c;
|
|
4695
4677
|
if (o) {
|
|
4696
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);
|
|
4697
|
-
const
|
|
4698
|
-
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);
|
|
4699
4681
|
}
|
|
4700
4682
|
const r = i.texture0;
|
|
4701
4683
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -5001,36 +4983,27 @@ const Jr = {
|
|
|
5001
4983
|
this.toggle = !this.toggle, this.showCaption = !this.showCaption;
|
|
5002
4984
|
},
|
|
5003
4985
|
handleRender() {
|
|
5004
|
-
var t, e
|
|
5005
|
-
if (
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
let r = 0, s = 0, n = this.empty;
|
|
5012
|
-
if ((t = this.wind) != null && t.active && (n = (e = this.wind) == null ? void 0 : e.data), (o = this.map) != null && o.getSource(this.source))
|
|
5013
|
-
(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);
|
|
5014
4993
|
else {
|
|
5015
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
5016
|
-
for (let
|
|
5017
|
-
const
|
|
5018
|
-
|
|
5019
|
-
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(
|
|
5020
4999
|
{
|
|
5021
|
-
id:
|
|
5000
|
+
id: u,
|
|
5022
5001
|
type: "symbol",
|
|
5023
|
-
filter: [
|
|
5024
|
-
"all",
|
|
5025
|
-
// @ts-ignore
|
|
5026
|
-
[">=", "spd", g],
|
|
5027
|
-
// @ts-ignore
|
|
5028
|
-
["<", "spd", p]
|
|
5029
|
-
],
|
|
5002
|
+
filter: ["all", [">=", "spd", c], ["<", "spd", n]],
|
|
5030
5003
|
source: this.source,
|
|
5031
5004
|
layout: {
|
|
5032
5005
|
"symbol-placement": "point",
|
|
5033
|
-
"icon-image":
|
|
5006
|
+
"icon-image": u + "-icon",
|
|
5034
5007
|
// mapbox sprite
|
|
5035
5008
|
"icon-size": 0.5,
|
|
5036
5009
|
"icon-offset": [0, -20],
|
|
@@ -5052,7 +5025,7 @@ const Jr = {
|
|
|
5052
5025
|
);
|
|
5053
5026
|
};
|
|
5054
5027
|
}
|
|
5055
|
-
this.windBarbLoaded = !0,
|
|
5028
|
+
this.windBarbLoaded = !0, a = (/* @__PURE__ */ new Date()).valueOf() - (o + i), console.log("[windBarbs] add elapsed: ", a, ", total: ", i += a);
|
|
5056
5029
|
}
|
|
5057
5030
|
}
|
|
5058
5031
|
},
|
|
@@ -5375,18 +5348,18 @@ const rl = /* @__PURE__ */ V(ol, [["render", il]]), ll = {
|
|
|
5375
5348
|
this.beforeLayer
|
|
5376
5349
|
);
|
|
5377
5350
|
const s = new Image(48, 48);
|
|
5378
|
-
let
|
|
5379
|
-
s.src =
|
|
5380
|
-
const
|
|
5381
|
-
|
|
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">
|
|
5382
5355
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5383
5356
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5384
|
-
</svg>`,
|
|
5385
|
-
const
|
|
5386
|
-
let
|
|
5387
|
-
|
|
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) => {
|
|
5388
5361
|
f.onload = () => {
|
|
5389
|
-
|
|
5362
|
+
g++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", u), g === 1 && this.map.addLayer(
|
|
5390
5363
|
{
|
|
5391
5364
|
id: this.directionLayer,
|
|
5392
5365
|
type: "symbol",
|
|
@@ -5995,8 +5968,8 @@ const wl = /* @__PURE__ */ V(yl, [["render", bl]]), xl = {
|
|
|
5995
5968
|
}
|
|
5996
5969
|
}, this.beforeLayer);
|
|
5997
5970
|
const s = new Image(72, 72);
|
|
5998
|
-
let
|
|
5999
|
-
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 = () => {
|
|
6000
5973
|
this.map.hasImage("swellDirIconWhite") || this.map.addImage("swellDirIconWhite", s), this.map.addLayer(
|
|
6001
5974
|
{
|
|
6002
5975
|
id: this.directionLayer,
|
|
@@ -6199,19 +6172,19 @@ const _l = /* @__PURE__ */ V(xl, [["render", vl]]), kl = {
|
|
|
6199
6172
|
class: "legend-tip-btn-gl4"
|
|
6200
6173
|
};
|
|
6201
6174
|
function Ll(t, e, o, i, a, r) {
|
|
6202
|
-
var
|
|
6203
|
-
const s =
|
|
6204
|
-
return (
|
|
6175
|
+
var n;
|
|
6176
|
+
const s = w("VBtn"), c = w("VTooltip");
|
|
6177
|
+
return (n = o.prmsl) != null && n.active ? (y(), M("div", zl, [
|
|
6205
6178
|
l("div", {
|
|
6206
6179
|
class: "menu-bar-box pa-1 rounded",
|
|
6207
6180
|
style: ae({ right: a.right + "px" })
|
|
6208
6181
|
}, [
|
|
6209
|
-
d(
|
|
6182
|
+
d(c, {
|
|
6210
6183
|
text: "Map Layers",
|
|
6211
6184
|
location: "left"
|
|
6212
6185
|
}, {
|
|
6213
|
-
activator:
|
|
6214
|
-
d(s, j(
|
|
6186
|
+
activator: p(({ props: u }) => [
|
|
6187
|
+
d(s, j(u, {
|
|
6215
6188
|
"min-width": "32",
|
|
6216
6189
|
width: "32",
|
|
6217
6190
|
height: "32",
|
|
@@ -6219,7 +6192,7 @@ function Ll(t, e, o, i, a, r) {
|
|
|
6219
6192
|
color: a.toggle ? "primary" : "",
|
|
6220
6193
|
onClick: r.handleMenuToggle
|
|
6221
6194
|
}), {
|
|
6222
|
-
default:
|
|
6195
|
+
default: p(() => e[0] || (e[0] = [
|
|
6223
6196
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
6224
6197
|
])),
|
|
6225
6198
|
_: 2,
|
|
@@ -7234,14 +7207,14 @@ const ts = {
|
|
|
7234
7207
|
},
|
|
7235
7208
|
checkList: {
|
|
7236
7209
|
handler(t, e) {
|
|
7237
|
-
var o, i, a, r, s,
|
|
7238
|
-
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);
|
|
7239
7212
|
}
|
|
7240
7213
|
},
|
|
7241
7214
|
autoActive: {
|
|
7242
7215
|
handler(t) {
|
|
7243
7216
|
var e, o, i, a, r, s;
|
|
7244
|
-
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);
|
|
7245
7218
|
}
|
|
7246
7219
|
},
|
|
7247
7220
|
iceToggleValue: {
|
|
@@ -7301,7 +7274,7 @@ const ts = {
|
|
|
7301
7274
|
},
|
|
7302
7275
|
async fetchModels() {
|
|
7303
7276
|
this.models = {};
|
|
7304
|
-
const t = await
|
|
7277
|
+
const t = await Ee.get(`${this.gateway}/api/arc/meteo2/models2`, {
|
|
7305
7278
|
headers: {
|
|
7306
7279
|
Authorization: this.token || this.defaultMeteoToken
|
|
7307
7280
|
}
|
|
@@ -7309,70 +7282,70 @@ const ts = {
|
|
|
7309
7282
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7310
7283
|
},
|
|
7311
7284
|
async fetchWeatherLayers(t = {}) {
|
|
7312
|
-
var a, r, s,
|
|
7285
|
+
var a, r, s, c, n, u, h, g, f;
|
|
7313
7286
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7314
7287
|
let o = 0, i = 0;
|
|
7315
7288
|
if (this.map) {
|
|
7316
|
-
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}`;
|
|
7317
7290
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
7318
|
-
const
|
|
7291
|
+
const x = oo.WEATHER_LAYERS.find((D) => {
|
|
7319
7292
|
var S;
|
|
7320
7293
|
return ((S = D.peer) == null ? void 0 : S.weight) === this.particleFactor.weight;
|
|
7321
7294
|
});
|
|
7322
|
-
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;
|
|
7323
7296
|
}
|
|
7324
7297
|
if (this.weatherWeight > 0) {
|
|
7325
|
-
let
|
|
7326
|
-
if (
|
|
7327
|
-
const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], S = await
|
|
7328
|
-
`${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}`,
|
|
7329
7302
|
{
|
|
7330
7303
|
headers: {
|
|
7331
7304
|
Authorization: this.token || this.defaultMeteoToken
|
|
7332
7305
|
}
|
|
7333
7306
|
}
|
|
7334
7307
|
);
|
|
7335
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
7336
|
-
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 = [];
|
|
7337
7310
|
for (const C in P)
|
|
7338
|
-
|
|
7339
|
-
|
|
7311
|
+
k.push(
|
|
7312
|
+
Ee.get(P[C], {
|
|
7340
7313
|
headers: {
|
|
7341
7314
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7342
7315
|
key: C
|
|
7343
7316
|
},
|
|
7344
7317
|
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
7345
|
-
}).catch((
|
|
7346
|
-
console.log(`[${C}] fetch layer error: ${
|
|
7318
|
+
}).catch((v) => {
|
|
7319
|
+
console.log(`[${C}] fetch layer error: ${v}`);
|
|
7347
7320
|
})
|
|
7348
7321
|
);
|
|
7349
|
-
const
|
|
7350
|
-
this.weatherLayers = {},
|
|
7322
|
+
const z = await Promise.all(k);
|
|
7323
|
+
this.weatherLayers = {}, z.map((C) => {
|
|
7351
7324
|
var Z, q, X, Y;
|
|
7352
|
-
const
|
|
7325
|
+
const v = ((Z = C == null ? void 0 : C.data) == null ? void 0 : Z.data) || (C == null ? void 0 : C.data);
|
|
7353
7326
|
let A = (X = (q = C == null ? void 0 : C.config) == null ? void 0 : q.headers) == null ? void 0 : X.key;
|
|
7354
|
-
A &&
|
|
7355
|
-
raw:
|
|
7327
|
+
A && v && (this.weatherLayers[A] = {
|
|
7328
|
+
raw: v,
|
|
7356
7329
|
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
7357
7330
|
etime: S.data.etime
|
|
7358
7331
|
});
|
|
7359
7332
|
});
|
|
7360
7333
|
}
|
|
7361
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"]) {
|
|
7362
|
-
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;
|
|
7363
7336
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7364
7337
|
type: "json",
|
|
7365
7338
|
direction: P,
|
|
7366
|
-
height: { raw:
|
|
7339
|
+
height: { raw: k },
|
|
7367
7340
|
etime: S.data.etime
|
|
7368
7341
|
};
|
|
7369
7342
|
}
|
|
7370
7343
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7371
|
-
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;
|
|
7372
7345
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7373
7346
|
type: "json",
|
|
7374
7347
|
direction: P,
|
|
7375
|
-
speed: { raw:
|
|
7348
|
+
speed: { raw: k },
|
|
7376
7349
|
etime: S.data.etime
|
|
7377
7350
|
};
|
|
7378
7351
|
}
|
|
@@ -7399,7 +7372,7 @@ const ts = {
|
|
|
7399
7372
|
}, 500);
|
|
7400
7373
|
},
|
|
7401
7374
|
handleRampColorInitial() {
|
|
7402
|
-
var t, e, o, i, a, r, s,
|
|
7375
|
+
var t, e, o, i, a, r, s, c, n, u, h, g;
|
|
7403
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, {
|
|
7404
7377
|
type: "canvas",
|
|
7405
7378
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -7415,16 +7388,16 @@ const ts = {
|
|
|
7415
7388
|
}
|
|
7416
7389
|
},
|
|
7417
7390
|
this.beforeLayer
|
|
7418
|
-
), 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, {
|
|
7419
7392
|
type: "canvas",
|
|
7420
|
-
canvas: (
|
|
7393
|
+
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
7421
7394
|
animate: !0,
|
|
7422
7395
|
coordinates: this.viewport.getBoundLngLat()
|
|
7423
|
-
}), this.viewport.map.getLayer((
|
|
7396
|
+
}), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
|
|
7424
7397
|
{
|
|
7425
7398
|
type: "raster",
|
|
7426
|
-
id: (
|
|
7427
|
-
source: (
|
|
7399
|
+
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
7400
|
+
source: (g = this.viewport) == null ? void 0 : g.particleSource,
|
|
7428
7401
|
layout: {
|
|
7429
7402
|
visibility: "none"
|
|
7430
7403
|
}
|
|
@@ -7433,253 +7406,253 @@ const ts = {
|
|
|
7433
7406
|
);
|
|
7434
7407
|
},
|
|
7435
7408
|
handleDrawWeather4Json() {
|
|
7436
|
-
var
|
|
7409
|
+
var u, h, g, f, L, _, T;
|
|
7437
7410
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7438
7411
|
let e = 0, o = 0;
|
|
7439
|
-
const i = (
|
|
7440
|
-
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) {
|
|
7441
7414
|
let D = !1;
|
|
7442
|
-
if (this.weatherLayers[
|
|
7415
|
+
if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
|
|
7443
7416
|
let S = [];
|
|
7444
|
-
if (
|
|
7417
|
+
if (x === "swell") {
|
|
7445
7418
|
D = !0;
|
|
7446
|
-
const P = ((
|
|
7447
|
-
for (const
|
|
7448
|
-
if (
|
|
7449
|
-
const C = P[
|
|
7450
|
-
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) => {
|
|
7451
7424
|
var Z, q, X, Y, te, oe;
|
|
7452
7425
|
if (a < 2) {
|
|
7453
|
-
if ((
|
|
7454
|
-
const J = N.point([
|
|
7455
|
-
val: ((Z = P[
|
|
7456
|
-
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]
|
|
7457
7430
|
});
|
|
7458
7431
|
S.push(J);
|
|
7459
7432
|
}
|
|
7460
|
-
} else if ((
|
|
7461
|
-
const J = N.point([
|
|
7462
|
-
val: ((Y = P[
|
|
7463
|
-
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]
|
|
7464
7437
|
});
|
|
7465
7438
|
S.push(J);
|
|
7466
7439
|
}
|
|
7467
|
-
}) : C.forEach((
|
|
7440
|
+
}) : C.forEach((v, A) => {
|
|
7468
7441
|
var Z, q, X, Y, te, oe;
|
|
7469
7442
|
if (r < 2) {
|
|
7470
|
-
if ((
|
|
7471
|
-
const J = N.point([
|
|
7472
|
-
val: ((Z = P[
|
|
7473
|
-
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]
|
|
7474
7447
|
});
|
|
7475
7448
|
S.push(J);
|
|
7476
7449
|
}
|
|
7477
|
-
} else if (
|
|
7478
|
-
const J = N.point([
|
|
7479
|
-
val: ((Y = P[
|
|
7480
|
-
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]
|
|
7481
7454
|
});
|
|
7482
7455
|
S.push(J);
|
|
7483
7456
|
}
|
|
7484
7457
|
});
|
|
7485
7458
|
}
|
|
7486
7459
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
7487
|
-
const
|
|
7488
|
-
if (
|
|
7489
|
-
if (!
|
|
7490
|
-
const
|
|
7491
|
-
for (const C in (f =
|
|
7492
|
-
const
|
|
7493
|
-
for (const A of
|
|
7494
|
-
|
|
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(
|
|
7495
7468
|
N.lineString(A, {
|
|
7496
7469
|
val: Number(C)
|
|
7497
7470
|
})
|
|
7498
7471
|
);
|
|
7499
|
-
|
|
7472
|
+
k.data = N.featureCollection(z);
|
|
7500
7473
|
}
|
|
7501
7474
|
}
|
|
7502
|
-
if (
|
|
7503
|
-
const
|
|
7504
|
-
S = S.concat(
|
|
7475
|
+
if (k.data) {
|
|
7476
|
+
const z = this.handleBboxClip(k.data, i);
|
|
7477
|
+
S = S.concat(z);
|
|
7505
7478
|
}
|
|
7506
7479
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
7507
7480
|
}
|
|
7508
|
-
} else if (
|
|
7481
|
+
} else if (x === "current") {
|
|
7509
7482
|
D = !0;
|
|
7510
|
-
const P = ((
|
|
7511
|
-
for (const
|
|
7512
|
-
if (
|
|
7513
|
-
const C = P[
|
|
7514
|
-
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) => {
|
|
7515
7488
|
var Z, q, X, Y, te, oe;
|
|
7516
7489
|
if (a < 2) {
|
|
7517
|
-
if ((
|
|
7518
|
-
const J = N.point([
|
|
7519
|
-
val: ((Z = P[
|
|
7520
|
-
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]
|
|
7521
7494
|
});
|
|
7522
7495
|
S.push(J);
|
|
7523
7496
|
}
|
|
7524
|
-
} else if ((
|
|
7525
|
-
const J = N.point([
|
|
7526
|
-
val: ((Y = P[
|
|
7527
|
-
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]
|
|
7528
7501
|
});
|
|
7529
7502
|
S.push(J);
|
|
7530
7503
|
}
|
|
7531
|
-
}) : C.forEach((
|
|
7504
|
+
}) : C.forEach((v, A) => {
|
|
7532
7505
|
var Z, q, X, Y, te, oe;
|
|
7533
7506
|
if (r < 2) {
|
|
7534
|
-
if ((
|
|
7535
|
-
const J = N.point([
|
|
7536
|
-
val: ((Z = P[
|
|
7537
|
-
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]
|
|
7538
7511
|
});
|
|
7539
7512
|
S.push(J);
|
|
7540
7513
|
}
|
|
7541
|
-
} else if (
|
|
7542
|
-
const J = N.point([
|
|
7543
|
-
val: ((Y = P[
|
|
7544
|
-
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]
|
|
7545
7518
|
});
|
|
7546
7519
|
S.push(J);
|
|
7547
7520
|
}
|
|
7548
7521
|
});
|
|
7549
7522
|
}
|
|
7550
7523
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
7551
|
-
const
|
|
7552
|
-
if (
|
|
7553
|
-
if (!
|
|
7524
|
+
const k = this.weatherLayers[x].speed;
|
|
7525
|
+
if (k) {
|
|
7526
|
+
if (!k.data) {
|
|
7554
7527
|
const C = [];
|
|
7555
|
-
for (const
|
|
7556
|
-
const A =
|
|
7528
|
+
for (const v in (_ = k.raw) == null ? void 0 : _.Polygon) {
|
|
7529
|
+
const A = k.raw.Polygon[v];
|
|
7557
7530
|
for (const Z of A)
|
|
7558
7531
|
C.push(
|
|
7559
7532
|
N.polygon(Z, {
|
|
7560
|
-
val: Number(
|
|
7533
|
+
val: Number(v)
|
|
7561
7534
|
})
|
|
7562
7535
|
);
|
|
7563
7536
|
}
|
|
7564
|
-
|
|
7537
|
+
k.data = N.featureCollection(C);
|
|
7565
7538
|
}
|
|
7566
|
-
const
|
|
7567
|
-
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);
|
|
7568
7541
|
}
|
|
7569
|
-
} else if (
|
|
7542
|
+
} else if (x === "wind") {
|
|
7570
7543
|
D = !0;
|
|
7571
7544
|
const P = this.weatherLayers.wind.raw;
|
|
7572
|
-
for (const
|
|
7573
|
-
if (
|
|
7574
|
-
const
|
|
7575
|
-
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) => {
|
|
7576
7549
|
var A, Z, q, X;
|
|
7577
7550
|
if (a < 2) {
|
|
7578
7551
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
7579
|
-
const Y = N.point([C,
|
|
7580
|
-
dir: ((A = P[
|
|
7581
|
-
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]
|
|
7582
7555
|
});
|
|
7583
7556
|
S.push(Y);
|
|
7584
7557
|
}
|
|
7585
7558
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7586
|
-
const Y = N.point([C,
|
|
7587
|
-
dir: ((q = P[
|
|
7588
|
-
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]
|
|
7589
7562
|
});
|
|
7590
7563
|
S.push(Y);
|
|
7591
7564
|
}
|
|
7592
|
-
}) :
|
|
7565
|
+
}) : z.forEach((C, v) => {
|
|
7593
7566
|
var A, Z, q, X;
|
|
7594
7567
|
if (a < 2) {
|
|
7595
7568
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
7596
|
-
const Y = N.point([C,
|
|
7597
|
-
dir: ((A = P[
|
|
7598
|
-
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]
|
|
7599
7572
|
});
|
|
7600
7573
|
S.push(Y);
|
|
7601
7574
|
}
|
|
7602
7575
|
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7603
|
-
const Y = N.point([C,
|
|
7604
|
-
dir: ((q = P[
|
|
7605
|
-
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]
|
|
7606
7579
|
});
|
|
7607
7580
|
S.push(Y);
|
|
7608
7581
|
}
|
|
7609
7582
|
});
|
|
7610
7583
|
}
|
|
7611
7584
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
7612
|
-
} else if (
|
|
7613
|
-
if (this.weatherLayers[
|
|
7614
|
-
S = this.weatherLayers[
|
|
7585
|
+
} else if (x === "sig-wave-height") {
|
|
7586
|
+
if (this.weatherLayers[x].data)
|
|
7587
|
+
S = this.weatherLayers[x].data;
|
|
7615
7588
|
else {
|
|
7616
7589
|
D = !0;
|
|
7617
|
-
const P = this.weatherLayers[
|
|
7590
|
+
const P = this.weatherLayers[x].raw;
|
|
7618
7591
|
if (P) {
|
|
7619
|
-
const
|
|
7620
|
-
for (const
|
|
7621
|
-
const C = P.Polygon[
|
|
7622
|
-
for (const
|
|
7623
|
-
|
|
7624
|
-
N.polygon(
|
|
7625
|
-
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)
|
|
7626
7599
|
})
|
|
7627
7600
|
);
|
|
7628
7601
|
}
|
|
7629
|
-
for (const
|
|
7630
|
-
const C = P.MultiPolygon[
|
|
7631
|
-
for (const
|
|
7632
|
-
|
|
7633
|
-
N.multiPolygon(
|
|
7634
|
-
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)
|
|
7635
7608
|
})
|
|
7636
7609
|
);
|
|
7637
7610
|
}
|
|
7638
|
-
for (const
|
|
7639
|
-
const C = P.Point[
|
|
7640
|
-
for (let
|
|
7641
|
-
|
|
7642
|
-
N.point([C.lng[
|
|
7643
|
-
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])
|
|
7644
7617
|
})
|
|
7645
7618
|
);
|
|
7646
7619
|
}
|
|
7647
|
-
S = S.concat(
|
|
7620
|
+
S = S.concat(k);
|
|
7648
7621
|
}
|
|
7649
7622
|
}
|
|
7650
7623
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
7651
|
-
} else if (
|
|
7652
|
-
if (this.weatherLayers[
|
|
7653
|
-
S = this.weatherLayers[
|
|
7624
|
+
} else if (x === "prmsl") {
|
|
7625
|
+
if (this.weatherLayers[x].data)
|
|
7626
|
+
S = this.weatherLayers[x].data;
|
|
7654
7627
|
else {
|
|
7655
7628
|
D = !0;
|
|
7656
|
-
const P = this.weatherLayers[
|
|
7629
|
+
const P = this.weatherLayers[x].raw;
|
|
7657
7630
|
if (P) {
|
|
7658
|
-
const
|
|
7659
|
-
for (const
|
|
7660
|
-
const C = P.LineString[
|
|
7661
|
-
for (const
|
|
7662
|
-
|
|
7663
|
-
N.lineString(
|
|
7664
|
-
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)
|
|
7665
7638
|
})
|
|
7666
7639
|
);
|
|
7667
7640
|
}
|
|
7668
|
-
for (const
|
|
7669
|
-
P.Point[
|
|
7670
|
-
C = K.convertToStdLng(C),
|
|
7671
|
-
N.point([C,
|
|
7672
|
-
val: P.Point[
|
|
7673
|
-
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]
|
|
7674
7647
|
})
|
|
7675
7648
|
);
|
|
7676
7649
|
});
|
|
7677
|
-
S = S.concat(
|
|
7650
|
+
S = S.concat(k);
|
|
7678
7651
|
}
|
|
7679
7652
|
}
|
|
7680
7653
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
7681
7654
|
}
|
|
7682
|
-
S.length && (this.weatherLayers[
|
|
7655
|
+
S.length && (this.weatherLayers[x].data = N.featureCollection(S)), D && (this.weatherLayers[x].version = Math.random() + 1);
|
|
7683
7656
|
}
|
|
7684
7657
|
}
|
|
7685
7658
|
},
|
|
@@ -7693,11 +7666,11 @@ const ts = {
|
|
|
7693
7666
|
return t.features.forEach((r) => {
|
|
7694
7667
|
if (r.geometry.type !== "Point")
|
|
7695
7668
|
if (i > a) {
|
|
7696
|
-
let s = [i, e._sw.lat, 180, e._ne.lat],
|
|
7697
|
-
|
|
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);
|
|
7698
7671
|
} else {
|
|
7699
|
-
const s = [i, e._sw.lat, a, e._ne.lat],
|
|
7700
|
-
|
|
7672
|
+
const s = [i, e._sw.lat, a, e._ne.lat], c = N.bboxClip(r, s);
|
|
7673
|
+
c.geometry.coordinates.length && o.push(c);
|
|
7701
7674
|
}
|
|
7702
7675
|
else
|
|
7703
7676
|
o.push(r);
|
|
@@ -7721,18 +7694,18 @@ const ts = {
|
|
|
7721
7694
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
7722
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" };
|
|
7723
7696
|
function Os(t, e, o, i, a, r) {
|
|
7724
|
-
var ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De,
|
|
7725
|
-
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");
|
|
7726
7699
|
return y(), M("div", os, [
|
|
7727
7700
|
l("div", {
|
|
7728
7701
|
class: "menu-bar-box transition pa-1",
|
|
7729
7702
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
7730
7703
|
}, [
|
|
7731
|
-
d(
|
|
7704
|
+
d(c, {
|
|
7732
7705
|
text: t.$t("weather.weatherLayers"),
|
|
7733
7706
|
location: "left"
|
|
7734
7707
|
}, {
|
|
7735
|
-
activator:
|
|
7708
|
+
activator: p(({ props: H }) => [
|
|
7736
7709
|
d(s, j(H, {
|
|
7737
7710
|
"min-width": "32",
|
|
7738
7711
|
width: "32",
|
|
@@ -7740,7 +7713,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7740
7713
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7741
7714
|
onClick: r.handleMenuToggle
|
|
7742
7715
|
}), {
|
|
7743
|
-
default:
|
|
7716
|
+
default: p(() => e[7] || (e[7] = [
|
|
7744
7717
|
l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
7745
7718
|
])),
|
|
7746
7719
|
_: 2,
|
|
@@ -7755,11 +7728,11 @@ function Os(t, e, o, i, a, r) {
|
|
|
7755
7728
|
class: "menu-bar-box pa-1 rounded",
|
|
7756
7729
|
style: ae({ right: a.right + "px" })
|
|
7757
7730
|
}, [
|
|
7758
|
-
d(
|
|
7731
|
+
d(c, {
|
|
7759
7732
|
text: "Legend",
|
|
7760
7733
|
location: "left"
|
|
7761
7734
|
}, {
|
|
7762
|
-
activator:
|
|
7735
|
+
activator: p(({ props: H }) => [
|
|
7763
7736
|
d(s, j(H, {
|
|
7764
7737
|
"min-width": "32",
|
|
7765
7738
|
width: "32",
|
|
@@ -7767,7 +7740,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7767
7740
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
7768
7741
|
onClick: e[0] || (e[0] = (ee) => a.legendToggle = !a.legendToggle)
|
|
7769
7742
|
}), {
|
|
7770
|
-
default:
|
|
7743
|
+
default: p(() => e[8] || (e[8] = [
|
|
7771
7744
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7772
7745
|
])),
|
|
7773
7746
|
_: 2,
|
|
@@ -7784,18 +7757,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
7784
7757
|
class: "card-info d-flex justify-center align-start",
|
|
7785
7758
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
7786
7759
|
}, {
|
|
7787
|
-
default:
|
|
7788
|
-
d(
|
|
7789
|
-
default:
|
|
7760
|
+
default: p(() => [
|
|
7761
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7762
|
+
default: p(() => [
|
|
7790
7763
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
7791
|
-
d(
|
|
7792
|
-
default:
|
|
7793
|
-
(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, {
|
|
7794
7767
|
key: H,
|
|
7795
7768
|
cols: "6",
|
|
7796
7769
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
7797
7770
|
}, {
|
|
7798
|
-
default:
|
|
7771
|
+
default: p(() => [
|
|
7799
7772
|
l("div", is, [
|
|
7800
7773
|
l("i", {
|
|
7801
7774
|
class: Ue(["iconfont", r.barbsIconName[ee]]),
|
|
@@ -7813,21 +7786,21 @@ function Os(t, e, o, i, a, r) {
|
|
|
7813
7786
|
_: 1,
|
|
7814
7787
|
__: [9]
|
|
7815
7788
|
}),
|
|
7816
|
-
d(
|
|
7817
|
-
d(
|
|
7818
|
-
default:
|
|
7789
|
+
d(g, { vertical: "" }),
|
|
7790
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7791
|
+
default: p(() => [
|
|
7819
7792
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
7820
|
-
d(
|
|
7793
|
+
d(u, {
|
|
7821
7794
|
class: "ma-0 ml-1",
|
|
7822
7795
|
style: { width: "100px" }
|
|
7823
7796
|
}, {
|
|
7824
|
-
default:
|
|
7825
|
-
(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, {
|
|
7826
7799
|
key: ee,
|
|
7827
7800
|
cols: "12",
|
|
7828
7801
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
7829
7802
|
}, {
|
|
7830
|
-
default:
|
|
7803
|
+
default: p(() => [
|
|
7831
7804
|
l("div", ls, [
|
|
7832
7805
|
ee === 0 ? (y(), M("div", ss)) : (y(), M("div", {
|
|
7833
7806
|
key: 1,
|
|
@@ -7845,21 +7818,21 @@ function Os(t, e, o, i, a, r) {
|
|
|
7845
7818
|
_: 1,
|
|
7846
7819
|
__: [10]
|
|
7847
7820
|
}),
|
|
7848
|
-
d(
|
|
7849
|
-
d(
|
|
7850
|
-
default:
|
|
7821
|
+
d(g, { vertical: "" }),
|
|
7822
|
+
d(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7823
|
+
default: p(() => [
|
|
7851
7824
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
7852
|
-
d(
|
|
7825
|
+
d(u, {
|
|
7853
7826
|
class: "ma-0 ml-n5",
|
|
7854
7827
|
style: { width: "110px" }
|
|
7855
7828
|
}, {
|
|
7856
|
-
default:
|
|
7857
|
-
(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, {
|
|
7858
7831
|
key: ee,
|
|
7859
7832
|
cols: "12",
|
|
7860
7833
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
7861
7834
|
}, {
|
|
7862
|
-
default:
|
|
7835
|
+
default: p(() => [
|
|
7863
7836
|
l("div", cs, [
|
|
7864
7837
|
l("div", ms, [
|
|
7865
7838
|
l("i", {
|
|
@@ -7890,7 +7863,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7890
7863
|
l("div", hs, [
|
|
7891
7864
|
l("div", ps, [
|
|
7892
7865
|
l("div", us, b(t.$t("weather.weather")), 1),
|
|
7893
|
-
d(
|
|
7866
|
+
d(L, {
|
|
7894
7867
|
modelValue: a.autoActive,
|
|
7895
7868
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
7896
7869
|
class: "small-switch",
|
|
@@ -7906,7 +7879,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7906
7879
|
class: "mr-n2",
|
|
7907
7880
|
onClick: r.handleMenuToggle
|
|
7908
7881
|
}, {
|
|
7909
|
-
default:
|
|
7882
|
+
default: p(() => e[12] || (e[12] = [
|
|
7910
7883
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
7911
7884
|
])),
|
|
7912
7885
|
_: 1,
|
|
@@ -7920,14 +7893,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
7920
7893
|
class: "menu-card mx-auto mb-3",
|
|
7921
7894
|
elevation: "0"
|
|
7922
7895
|
}, {
|
|
7923
|
-
default:
|
|
7896
|
+
default: p(() => [
|
|
7924
7897
|
d(T, { class: "border-b-thin" }, {
|
|
7925
|
-
default:
|
|
7926
|
-
d(
|
|
7898
|
+
default: p(() => [
|
|
7899
|
+
d(_, {
|
|
7927
7900
|
class: "text-subtitle-1 font-weight-medium",
|
|
7928
7901
|
style: { "font-size": "16px !important" }
|
|
7929
7902
|
}, {
|
|
7930
|
-
default:
|
|
7903
|
+
default: p(() => [
|
|
7931
7904
|
U(b(t.$t("weather.overlays")), 1)
|
|
7932
7905
|
]),
|
|
7933
7906
|
_: 1
|
|
@@ -7935,9 +7908,9 @@ function Os(t, e, o, i, a, r) {
|
|
|
7935
7908
|
]),
|
|
7936
7909
|
_: 1
|
|
7937
7910
|
}),
|
|
7938
|
-
d(
|
|
7939
|
-
default:
|
|
7940
|
-
(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, {
|
|
7941
7914
|
key: H.key,
|
|
7942
7915
|
modelValue: a.checkList,
|
|
7943
7916
|
"onUpdate:modelValue": e[2] || (e[2] = (ee) => a.checkList = ee),
|
|
@@ -7960,14 +7933,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
7960
7933
|
class: "menu-card mx-auto mb-3",
|
|
7961
7934
|
elevation: "0"
|
|
7962
7935
|
}, {
|
|
7963
|
-
default:
|
|
7936
|
+
default: p(() => [
|
|
7964
7937
|
d(T, { class: "border-b-thin" }, {
|
|
7965
|
-
default:
|
|
7966
|
-
d(
|
|
7938
|
+
default: p(() => [
|
|
7939
|
+
d(_, {
|
|
7967
7940
|
class: "text-subtitle-1 font-weight-medium",
|
|
7968
7941
|
style: { "font-size": "16px !important" }
|
|
7969
7942
|
}, {
|
|
7970
|
-
default:
|
|
7943
|
+
default: p(() => [
|
|
7971
7944
|
U(b(t.$t("weather.renders")), 1)
|
|
7972
7945
|
]),
|
|
7973
7946
|
_: 1
|
|
@@ -7975,8 +7948,8 @@ function Os(t, e, o, i, a, r) {
|
|
|
7975
7948
|
]),
|
|
7976
7949
|
_: 1
|
|
7977
7950
|
}),
|
|
7978
|
-
d(
|
|
7979
|
-
default:
|
|
7951
|
+
d(h, { class: "py-2" }, {
|
|
7952
|
+
default: p(() => [
|
|
7980
7953
|
(y(!0), M(be, null, we(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), M(be, {
|
|
7981
7954
|
key: H.key
|
|
7982
7955
|
}, [
|
|
@@ -7995,7 +7968,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7995
7968
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
7996
7969
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), M("div", gs, [
|
|
7997
7970
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
7998
|
-
d(
|
|
7971
|
+
d(L, {
|
|
7999
7972
|
modelValue: a.showWindParticle,
|
|
8000
7973
|
"onUpdate:modelValue": e[4] || (e[4] = (ee) => a.showWindParticle = ee),
|
|
8001
7974
|
label: "",
|
|
@@ -8009,7 +7982,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8009
7982
|
])) : E("", !0),
|
|
8010
7983
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), M("div", fs, [
|
|
8011
7984
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
8012
|
-
d(
|
|
7985
|
+
d(L, {
|
|
8013
7986
|
modelValue: a.showCurrentParticle,
|
|
8014
7987
|
"onUpdate:modelValue": e[5] || (e[5] = (ee) => a.showCurrentParticle = ee),
|
|
8015
7988
|
label: "",
|
|
@@ -8032,7 +8005,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8032
8005
|
group: "",
|
|
8033
8006
|
disabled: !a.autoActive
|
|
8034
8007
|
}, {
|
|
8035
|
-
default:
|
|
8008
|
+
default: p(() => [
|
|
8036
8009
|
d(s, {
|
|
8037
8010
|
density: "compact",
|
|
8038
8011
|
height: "30",
|
|
@@ -8042,7 +8015,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8042
8015
|
"base-color": "grey-lighten-1",
|
|
8043
8016
|
disabled: !a.autoActive
|
|
8044
8017
|
}, {
|
|
8045
|
-
default:
|
|
8018
|
+
default: p(() => [
|
|
8046
8019
|
U(b(t.$t("weather.coverage")), 1)
|
|
8047
8020
|
]),
|
|
8048
8021
|
_: 1
|
|
@@ -8056,7 +8029,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8056
8029
|
disabled: !a.autoActive,
|
|
8057
8030
|
value: "ice-thickness"
|
|
8058
8031
|
}, {
|
|
8059
|
-
default:
|
|
8032
|
+
default: p(() => [
|
|
8060
8033
|
U(b(t.$t("weather.thickness")), 1)
|
|
8061
8034
|
]),
|
|
8062
8035
|
_: 1
|
|
@@ -8075,14 +8048,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
8075
8048
|
class: "menu-card mx-auto mb-3",
|
|
8076
8049
|
elevation: "0"
|
|
8077
8050
|
}, {
|
|
8078
|
-
default:
|
|
8051
|
+
default: p(() => [
|
|
8079
8052
|
d(T, { class: "border-b-thin" }, {
|
|
8080
|
-
default:
|
|
8081
|
-
d(
|
|
8053
|
+
default: p(() => [
|
|
8054
|
+
d(_, {
|
|
8082
8055
|
class: "text-subtitle-1 font-weight-medium",
|
|
8083
8056
|
style: { "font-size": "16px !important" }
|
|
8084
8057
|
}, {
|
|
8085
|
-
default:
|
|
8058
|
+
default: p(() => [
|
|
8086
8059
|
U(b(t.$t("weather.forecastModel")), 1)
|
|
8087
8060
|
]),
|
|
8088
8061
|
_: 1
|
|
@@ -8090,18 +8063,18 @@ function Os(t, e, o, i, a, r) {
|
|
|
8090
8063
|
]),
|
|
8091
8064
|
_: 1
|
|
8092
8065
|
}),
|
|
8093
|
-
d(
|
|
8094
|
-
default:
|
|
8095
|
-
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;
|
|
8096
8069
|
return [
|
|
8097
8070
|
l("div", ys, b(t.$t("weather.atmospheric")), 1),
|
|
8098
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),
|
|
8099
8072
|
l("div", ws, b(t.$t("weather.source")) + ": NOAA", 1),
|
|
8100
|
-
l("div", xs, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Te = (ye = (O = (
|
|
8101
|
-
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),
|
|
8102
8075
|
l("div", _s, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8103
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),
|
|
8104
|
-
d(
|
|
8077
|
+
d(g),
|
|
8105
8078
|
l("div", zs, b(t.$t("weather.wave")), 1),
|
|
8106
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),
|
|
8107
8080
|
l("div", Ps, b(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -8109,7 +8082,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8109
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),
|
|
8110
8083
|
l("div", Ss, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8111
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),
|
|
8112
|
-
d(
|
|
8085
|
+
d(g),
|
|
8113
8086
|
l("div", Is, b(t.$t("weather.currents")), 1),
|
|
8114
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),
|
|
8115
8088
|
l("div", Ds, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -8132,7 +8105,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8132
8105
|
wind: (ue = a.weatherLayers) == null ? void 0 : ue.wind,
|
|
8133
8106
|
"menu-toggle": o.menuToggle
|
|
8134
8107
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : E("", !0),
|
|
8135
|
-
o.map ? (y(), B(
|
|
8108
|
+
o.map ? (y(), B(k, j({
|
|
8136
8109
|
key: 2,
|
|
8137
8110
|
map: o.map,
|
|
8138
8111
|
"before-layer": "empty-layer-2",
|
|
@@ -8140,7 +8113,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8140
8113
|
"menu-toggle": o.menuToggle,
|
|
8141
8114
|
"active-weather-layers": a.activeWeatherLayers
|
|
8142
8115
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : E("", !0),
|
|
8143
|
-
o.map ? (y(), B(
|
|
8116
|
+
o.map ? (y(), B(z, j({
|
|
8144
8117
|
key: 3,
|
|
8145
8118
|
map: o.map,
|
|
8146
8119
|
"map-feather": o.mapFeather,
|
|
@@ -8156,7 +8129,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8156
8129
|
"menu-toggle": o.menuToggle,
|
|
8157
8130
|
"active-weather-layers": a.activeWeatherLayers
|
|
8158
8131
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : E("", !0),
|
|
8159
|
-
o.map ? (y(), B(
|
|
8132
|
+
o.map ? (y(), B(v, j({
|
|
8160
8133
|
key: 5,
|
|
8161
8134
|
viewport: a.viewport,
|
|
8162
8135
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["wind-particle"],
|
|
@@ -8190,31 +8163,31 @@ function Os(t, e, o, i, a, r) {
|
|
|
8190
8163
|
o.map ? (y(), B(Y, j({
|
|
8191
8164
|
key: 10,
|
|
8192
8165
|
viewport: a.viewport,
|
|
8193
|
-
factor: (
|
|
8166
|
+
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
|
|
8194
8167
|
"menu-toggle": o.menuToggle
|
|
8195
8168
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8196
8169
|
o.map ? (y(), B(te, j({
|
|
8197
8170
|
key: 11,
|
|
8198
8171
|
viewport: a.viewport,
|
|
8199
|
-
factor: (
|
|
8172
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
|
|
8200
8173
|
"menu-toggle": o.menuToggle
|
|
8201
8174
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8202
8175
|
o.map ? (y(), B(oe, j({
|
|
8203
8176
|
key: 12,
|
|
8204
8177
|
viewport: a.viewport,
|
|
8205
|
-
factor: (
|
|
8178
|
+
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.precip3h,
|
|
8206
8179
|
"menu-toggle": o.menuToggle
|
|
8207
8180
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8208
8181
|
o.map ? (y(), B(J, j({
|
|
8209
8182
|
key: 13,
|
|
8210
8183
|
viewport: a.viewport,
|
|
8211
|
-
factor: (
|
|
8184
|
+
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
8212
8185
|
"menu-toggle": o.menuToggle
|
|
8213
8186
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8214
8187
|
o.map ? (y(), B(le, j({
|
|
8215
8188
|
key: 14,
|
|
8216
8189
|
viewport: a.viewport,
|
|
8217
|
-
factor: (
|
|
8190
|
+
factor: (De = a.weatherLayers) == null ? void 0 : De["water-temp"],
|
|
8218
8191
|
"menu-toggle": o.menuToggle
|
|
8219
8192
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : E("", !0),
|
|
8220
8193
|
o.map ? (y(), B(pe, j({
|
|
@@ -8541,21 +8514,21 @@ class Va {
|
|
|
8541
8514
|
var o, i;
|
|
8542
8515
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
8543
8516
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
8544
|
-
for (const
|
|
8545
|
-
let
|
|
8546
|
-
var
|
|
8547
|
-
return ((
|
|
8548
|
-
}),
|
|
8549
|
-
var
|
|
8550
|
-
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;
|
|
8551
8524
|
});
|
|
8552
|
-
|
|
8553
|
-
var
|
|
8554
|
-
return ((
|
|
8555
|
-
}),
|
|
8556
|
-
var
|
|
8557
|
-
return ((
|
|
8558
|
-
}),
|
|
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);
|
|
8559
8532
|
}
|
|
8560
8533
|
return {
|
|
8561
8534
|
weatherModels: r.join(","),
|
|
@@ -8572,36 +8545,36 @@ class Va {
|
|
|
8572
8545
|
}), a;
|
|
8573
8546
|
}
|
|
8574
8547
|
static pickHourly(e, o) {
|
|
8575
|
-
var i, a, r, s,
|
|
8576
|
-
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 = [];
|
|
8577
8550
|
if (he.isBetween($, re, "millisecond", "[]")) {
|
|
8578
8551
|
const O = he.utc().diff($, "h", !1);
|
|
8579
8552
|
let ye, Te;
|
|
8580
8553
|
if (fe) {
|
|
8581
|
-
let
|
|
8554
|
+
let Oe = 0, Be = 0;
|
|
8582
8555
|
for (const R of fe) {
|
|
8583
8556
|
const G = R == null ? void 0 : R.hourly;
|
|
8584
8557
|
for (let Pe = O - (O - 1) % 3; Pe <= O; Pe++)
|
|
8585
|
-
|
|
8558
|
+
Oe += (g = G == null ? void 0 : G.precipitation) == null ? void 0 : g.at(Pe);
|
|
8586
8559
|
for (let Pe = O - (O - 1) % 6; Pe <= O; Pe++)
|
|
8587
|
-
|
|
8560
|
+
Be += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(Pe);
|
|
8588
8561
|
ye = {
|
|
8589
|
-
temp: (
|
|
8590
|
-
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),
|
|
8591
8564
|
rh: (T = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : T.at(O),
|
|
8592
|
-
dp: (
|
|
8565
|
+
dp: (x = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : x.at(O),
|
|
8593
8566
|
precip: {
|
|
8594
8567
|
probability: (D = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : D.at(O),
|
|
8595
8568
|
sum: (S = G == null ? void 0 : G.precipitation) == null ? void 0 : S.at(O),
|
|
8596
|
-
sum3Hours: Math.round(
|
|
8597
|
-
sum6Hours: Math.round(
|
|
8569
|
+
sum3Hours: Math.round(Oe * 100) / 100,
|
|
8570
|
+
sum6Hours: Math.round(Be * 100) / 100
|
|
8598
8571
|
},
|
|
8599
8572
|
pmsl: (P = G == null ? void 0 : G.pressure_msl) == null ? void 0 : P.at(O),
|
|
8600
|
-
psurf: (
|
|
8601
|
-
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),
|
|
8602
8575
|
visibility: this.m2nm((C = G == null ? void 0 : G.visibility) == null ? void 0 : C.at(O)),
|
|
8603
8576
|
wind: {
|
|
8604
|
-
speed: (
|
|
8577
|
+
speed: (v = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : v.at(O),
|
|
8605
8578
|
kts: (A = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : A.at(O),
|
|
8606
8579
|
degree: (Z = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : Z.at(O),
|
|
8607
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,
|
|
@@ -8610,7 +8583,7 @@ class Va {
|
|
|
8610
8583
|
isDay: (te = G == null ? void 0 : G.is_day) == null ? void 0 : te.at(O)
|
|
8611
8584
|
};
|
|
8612
8585
|
const { name: Ge, url: Ve, bg: Ze } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
8613
|
-
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({
|
|
8614
8587
|
utc: $.add(O, "h").format(),
|
|
8615
8588
|
model: R.model,
|
|
8616
8589
|
weather: { ...ye }
|
|
@@ -8618,9 +8591,9 @@ class Va {
|
|
|
8618
8591
|
}
|
|
8619
8592
|
}
|
|
8620
8593
|
if (W) {
|
|
8621
|
-
let
|
|
8622
|
-
for (const
|
|
8623
|
-
const R =
|
|
8594
|
+
let Oe = 0;
|
|
8595
|
+
for (const Be of W) {
|
|
8596
|
+
const R = Be == null ? void 0 : Be.hourly;
|
|
8624
8597
|
Te = {
|
|
8625
8598
|
wave: {
|
|
8626
8599
|
sig: {
|
|
@@ -8639,39 +8612,39 @@ class Va {
|
|
|
8639
8612
|
wd: {
|
|
8640
8613
|
height: (de = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : de.at(O),
|
|
8641
8614
|
degree: (ke = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : ke.at(O),
|
|
8642
|
-
bearing: ((
|
|
8643
|
-
period: (
|
|
8644
|
-
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)
|
|
8645
8618
|
}
|
|
8646
8619
|
},
|
|
8647
8620
|
current: {
|
|
8648
|
-
speed: (
|
|
8621
|
+
speed: (De = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : De.at(O),
|
|
8649
8622
|
kts: (ve = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : ve.at(O),
|
|
8650
8623
|
degree: (H = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : H.at(O),
|
|
8651
8624
|
bearing: ((ee = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : ee.at(O)) ?? null
|
|
8652
8625
|
},
|
|
8653
8626
|
sst: (je = R == null ? void 0 : R.sea_surface_temperature) == null ? void 0 : je.at(O),
|
|
8654
8627
|
height: (Ce = R == null ? void 0 : R.sea_level_height_msl) == null ? void 0 : Ce.at(O)
|
|
8655
|
-
}, 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++;
|
|
8656
8629
|
}
|
|
8657
8630
|
}
|
|
8658
8631
|
}
|
|
8659
|
-
return
|
|
8632
|
+
return Re;
|
|
8660
8633
|
}
|
|
8661
8634
|
static toLegacy(e) {
|
|
8662
|
-
var o, i, a, r, s,
|
|
8635
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
8663
8636
|
return {
|
|
8664
8637
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
8665
8638
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
8666
8639
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
8667
8640
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
8668
8641
|
gusts: {
|
|
8669
|
-
kts: (
|
|
8642
|
+
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
8670
8643
|
},
|
|
8671
|
-
precip: (
|
|
8672
|
-
code: (
|
|
8673
|
-
name: (
|
|
8674
|
-
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,
|
|
8675
8648
|
wave: e == null ? void 0 : e.wave,
|
|
8676
8649
|
current: e == null ? void 0 : e.current,
|
|
8677
8650
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -8681,37 +8654,37 @@ class Va {
|
|
|
8681
8654
|
};
|
|
8682
8655
|
}
|
|
8683
8656
|
static pickDaily(e, o) {
|
|
8684
|
-
var i, a, r, s,
|
|
8685
|
-
const
|
|
8686
|
-
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", "[]")) {
|
|
8687
8660
|
let he, fe;
|
|
8688
|
-
const W =
|
|
8661
|
+
const W = De.diff(ee, "d", !1);
|
|
8689
8662
|
if (ve)
|
|
8690
8663
|
for (const ze of ve) {
|
|
8691
8664
|
const $ = ze.daily;
|
|
8692
8665
|
he = {
|
|
8693
|
-
code: (
|
|
8666
|
+
code: (u = $.weather_code) == null ? void 0 : u.at(W),
|
|
8694
8667
|
temp: {
|
|
8695
|
-
max: (
|
|
8696
|
-
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),
|
|
8697
8670
|
mean: (f = $.temperature_2m_mean) == null ? void 0 : f.at(W)
|
|
8698
8671
|
},
|
|
8699
8672
|
apparentTemp: {
|
|
8700
|
-
max: (
|
|
8701
|
-
min: (
|
|
8673
|
+
max: (L = $.apparent_temperature_max) == null ? void 0 : L.at(W),
|
|
8674
|
+
min: (_ = $.apparent_temperature_min) == null ? void 0 : _.at(W)
|
|
8702
8675
|
},
|
|
8703
8676
|
precip: {
|
|
8704
8677
|
sum: (T = $.precipitation_sum) == null ? void 0 : T.at(W),
|
|
8705
|
-
rainSum: (
|
|
8678
|
+
rainSum: (x = $.rain_sum) == null ? void 0 : x.at(W),
|
|
8706
8679
|
snowfallSum: (D = $.snowfall_sum) == null ? void 0 : D.at(W),
|
|
8707
8680
|
showersSum: (S = $.showers_sum) == null ? void 0 : S.at(W),
|
|
8708
8681
|
hours: (P = $.precipitation_hours) == null ? void 0 : P.at(W),
|
|
8709
|
-
probability: (
|
|
8682
|
+
probability: (k = $.precipitation_probability_max) == null ? void 0 : k.at(W)
|
|
8710
8683
|
},
|
|
8711
8684
|
rh: {
|
|
8712
|
-
max: (
|
|
8685
|
+
max: (z = $.relative_humidity_2m_max) == null ? void 0 : z.at(W),
|
|
8713
8686
|
min: (C = $.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
8714
|
-
mean: (
|
|
8687
|
+
mean: (v = $.relative_humidity_2m_mean) == null ? void 0 : v.at(W)
|
|
8715
8688
|
},
|
|
8716
8689
|
wind: {
|
|
8717
8690
|
speed: (A = $.wind_speed_10m_max) == null ? void 0 : A.at(W),
|
|
@@ -8721,8 +8694,8 @@ class Va {
|
|
|
8721
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
|
|
8722
8695
|
}
|
|
8723
8696
|
};
|
|
8724
|
-
const { name: re, url:
|
|
8725
|
-
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({
|
|
8726
8699
|
utc: ee.add(W, "d").utc().format(),
|
|
8727
8700
|
model: ze.model,
|
|
8728
8701
|
weather: { ...he }
|
|
@@ -8751,9 +8724,9 @@ class Va {
|
|
|
8751
8724
|
wd: {
|
|
8752
8725
|
height: (de = re.wind_wave_height_max) == null ? void 0 : de.at(W),
|
|
8753
8726
|
degree: (ke = re.wind_wave_direction_dominant) == null ? void 0 : ke.at(W),
|
|
8754
|
-
period: (
|
|
8755
|
-
peakPeriod: (
|
|
8756
|
-
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
|
|
8757
8730
|
}
|
|
8758
8731
|
}
|
|
8759
8732
|
}, fe.wave = this.parseWave(fe.wave, he == null ? void 0 : he.wind), Object.assign(Ce[ze], fe), ze++;
|
|
@@ -9305,34 +9278,34 @@ const Es = {
|
|
|
9305
9278
|
async fetchTropicals() {
|
|
9306
9279
|
var a, r, s;
|
|
9307
9280
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
9308
|
-
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;
|
|
9309
9282
|
if (i > 0) {
|
|
9310
|
-
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}`, {
|
|
9311
9284
|
headers: {
|
|
9312
9285
|
Authorization: this.token || this.defaultMeteoToken
|
|
9313
9286
|
}
|
|
9314
9287
|
});
|
|
9315
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
9316
|
-
const
|
|
9317
|
-
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, {
|
|
9318
9291
|
headers: {
|
|
9319
9292
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9320
9293
|
key: "tropicals"
|
|
9321
9294
|
},
|
|
9322
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9323
|
-
}).then((
|
|
9324
|
-
var
|
|
9325
|
-
const
|
|
9326
|
-
((T = (
|
|
9327
|
-
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,
|
|
9328
9301
|
active: !0,
|
|
9329
9302
|
cached: !0,
|
|
9330
9303
|
type: "json",
|
|
9331
|
-
etime:
|
|
9304
|
+
etime: n.data.etime,
|
|
9332
9305
|
version: Math.random() + 1
|
|
9333
9306
|
}, this.handleInit());
|
|
9334
|
-
}).catch((
|
|
9335
|
-
console.log(`[${key}] fetch layer error: ${
|
|
9307
|
+
}).catch((h) => {
|
|
9308
|
+
console.log(`[${key}] fetch layer error: ${h}`);
|
|
9336
9309
|
});
|
|
9337
9310
|
}
|
|
9338
9311
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("tropicals elapsed: ", o, ", total: ", e += o);
|
|
@@ -9341,12 +9314,12 @@ const Es = {
|
|
|
9341
9314
|
handleRefresh() {
|
|
9342
9315
|
var e, o;
|
|
9343
9316
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
9344
|
-
var a, r, s,
|
|
9345
|
-
((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})]`));
|
|
9346
9319
|
}), this.handleInit();
|
|
9347
9320
|
},
|
|
9348
9321
|
handleInit() {
|
|
9349
|
-
var t, e, o, i, a, r, s,
|
|
9322
|
+
var t, e, o, i, a, r, s, c, n, u;
|
|
9350
9323
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
9351
9324
|
"click",
|
|
9352
9325
|
[
|
|
@@ -9360,19 +9333,19 @@ const Es = {
|
|
|
9360
9333
|
this.historyPointLabelLayer
|
|
9361
9334
|
],
|
|
9362
9335
|
this.handleClick
|
|
9363
|
-
)), ((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);
|
|
9364
9337
|
},
|
|
9365
9338
|
handleRender() {
|
|
9366
|
-
var t, e, o, i, a, r, s,
|
|
9339
|
+
var t, e, o, i, a, r, s, c, n, u;
|
|
9367
9340
|
if (!this.map)
|
|
9368
9341
|
setTimeout(() => {
|
|
9369
9342
|
this.handleRender();
|
|
9370
9343
|
}, 500);
|
|
9371
9344
|
else {
|
|
9372
9345
|
if (this.tropicals) {
|
|
9373
|
-
const
|
|
9374
|
-
let f = 0,
|
|
9375
|
-
(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, {
|
|
9376
9349
|
type: "geojson",
|
|
9377
9350
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
9378
9351
|
}), this.map.addLayer({
|
|
@@ -9469,9 +9442,9 @@ const Es = {
|
|
|
9469
9442
|
],
|
|
9470
9443
|
"text-halo-width": 4
|
|
9471
9444
|
}
|
|
9472
|
-
}),
|
|
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, {
|
|
9473
9446
|
type: "geojson",
|
|
9474
|
-
data: (
|
|
9447
|
+
data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
9475
9448
|
// cluster: true,
|
|
9476
9449
|
// clusterRadius: 10, // 聚合半径
|
|
9477
9450
|
}), this.map.addLayer({
|
|
@@ -9585,11 +9558,11 @@ const Es = {
|
|
|
9585
9558
|
"text-halo-color": "#ffffff",
|
|
9586
9559
|
"text-halo-width": 1
|
|
9587
9560
|
}
|
|
9588
|
-
}),
|
|
9561
|
+
}), L = (/* @__PURE__ */ new Date()).valueOf() - (g + f), console.log("[tropical] add elapsed: ", L, ", total: ", f += L));
|
|
9589
9562
|
}
|
|
9590
9563
|
this.handleDrawCircle();
|
|
9591
|
-
const
|
|
9592
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
9564
|
+
const h = Ua.interpolate(this.tropicals, 1);
|
|
9565
|
+
this.interpolateData = JSON.parse(JSON.stringify(h)), this.handleDateChange();
|
|
9593
9566
|
}
|
|
9594
9567
|
},
|
|
9595
9568
|
handleClear() {
|
|
@@ -9610,7 +9583,7 @@ const Es = {
|
|
|
9610
9583
|
), this.showTropicalsInfo = !1;
|
|
9611
9584
|
},
|
|
9612
9585
|
handleDateChange() {
|
|
9613
|
-
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;
|
|
9614
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) {
|
|
9615
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]);
|
|
9616
9589
|
ue.forEach((Q) => {
|
|
@@ -9632,7 +9605,7 @@ const Es = {
|
|
|
9632
9605
|
for (const Q of pe)
|
|
9633
9606
|
if (!Q.properties.disabled) {
|
|
9634
9607
|
let ie = "#f44336";
|
|
9635
|
-
((
|
|
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";
|
|
9636
9609
|
const ge = `<svg t="1719918955501"
|
|
9637
9610
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9638
9611
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9656,36 +9629,36 @@ const Es = {
|
|
|
9656
9629
|
(oe = this.map) != null && oe.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
|
|
9657
9630
|
},
|
|
9658
9631
|
handleClick(t) {
|
|
9659
|
-
var r, s,
|
|
9632
|
+
var r, s, c, n, u, h, g, f;
|
|
9660
9633
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
9661
|
-
(
|
|
9662
|
-
var
|
|
9663
|
-
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);
|
|
9664
9637
|
}
|
|
9665
|
-
), i = (
|
|
9666
|
-
(
|
|
9667
|
-
var
|
|
9668
|
-
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);
|
|
9669
9642
|
}
|
|
9670
9643
|
);
|
|
9671
9644
|
this.activeTropicals = {
|
|
9672
|
-
name: (
|
|
9673
|
-
forecasts: o.map((
|
|
9674
|
-
history: (
|
|
9675
|
-
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
|
|
9676
9649
|
}, this.showTropicalsInfo = !0;
|
|
9677
9650
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
9678
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);
|
|
9679
9652
|
},
|
|
9680
9653
|
handleForecastToggle(t) {
|
|
9681
|
-
var i, a, r, s,
|
|
9654
|
+
var i, a, r, s, c, n;
|
|
9682
9655
|
t.disabled = !t.disabled;
|
|
9683
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;
|
|
9684
|
-
o.forEach((
|
|
9685
|
-
|
|
9686
|
-
}), this.interpolateData.forEach((
|
|
9687
|
-
|
|
9688
|
-
}), (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();
|
|
9689
9662
|
},
|
|
9690
9663
|
handleStrikeProbability(t) {
|
|
9691
9664
|
this.$emit("tropicalProbability", t);
|
|
@@ -9729,8 +9702,8 @@ const Es = {
|
|
|
9729
9702
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
9730
9703
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
9731
9704
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
9732
|
-
},
|
|
9733
|
-
e.push(
|
|
9705
|
+
}, c = this.handleComputeArc(o.geometry.coordinates, s, { ...o.properties, level: 10 });
|
|
9706
|
+
e.push(c);
|
|
9734
9707
|
}
|
|
9735
9708
|
return e;
|
|
9736
9709
|
},
|
|
@@ -9738,23 +9711,23 @@ const Es = {
|
|
|
9738
9711
|
var r;
|
|
9739
9712
|
const i = [];
|
|
9740
9713
|
for (const s in e) {
|
|
9741
|
-
const
|
|
9742
|
-
let
|
|
9714
|
+
const c = e[s] ?? 0;
|
|
9715
|
+
let n;
|
|
9743
9716
|
switch (s) {
|
|
9744
9717
|
case "ne":
|
|
9745
|
-
|
|
9718
|
+
n = N.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9746
9719
|
break;
|
|
9747
9720
|
case "se":
|
|
9748
|
-
|
|
9721
|
+
n = N.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9749
9722
|
break;
|
|
9750
9723
|
case "sw":
|
|
9751
|
-
|
|
9724
|
+
n = N.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9752
9725
|
break;
|
|
9753
9726
|
case "nw":
|
|
9754
|
-
|
|
9727
|
+
n = N.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9755
9728
|
break;
|
|
9756
9729
|
}
|
|
9757
|
-
i.push(...(r =
|
|
9730
|
+
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
9758
9731
|
}
|
|
9759
9732
|
const a = N.lineString(i);
|
|
9760
9733
|
return N.lineToPolygon(a, { properties: o });
|
|
@@ -9774,17 +9747,17 @@ const Es = {
|
|
|
9774
9747
|
style: { height: "80px" }
|
|
9775
9748
|
}, en = { class: "pa-1 d-flex justify-space-between align-center" }, tn = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
9776
9749
|
function on(t, e, o, i, a, r) {
|
|
9777
|
-
const s =
|
|
9750
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), g = w("VCard");
|
|
9778
9751
|
return y(), M("div", js, [
|
|
9779
9752
|
l("div", {
|
|
9780
9753
|
class: "menu-bar-box transition pa-1",
|
|
9781
9754
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
9782
9755
|
}, [
|
|
9783
|
-
d(
|
|
9756
|
+
d(c, {
|
|
9784
9757
|
text: t.$t("tropical.tropicals"),
|
|
9785
9758
|
location: "left"
|
|
9786
9759
|
}, {
|
|
9787
|
-
activator:
|
|
9760
|
+
activator: p(({ props: f }) => [
|
|
9788
9761
|
d(s, j(f, {
|
|
9789
9762
|
"min-width": "32",
|
|
9790
9763
|
width: "32",
|
|
@@ -9792,7 +9765,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9792
9765
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9793
9766
|
onClick: r.handleMenuToggle
|
|
9794
9767
|
}), {
|
|
9795
|
-
default:
|
|
9768
|
+
default: p(() => e[4] || (e[4] = [
|
|
9796
9769
|
l("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
|
|
9797
9770
|
])),
|
|
9798
9771
|
_: 2,
|
|
@@ -9803,18 +9776,18 @@ function on(t, e, o, i, a, r) {
|
|
|
9803
9776
|
}, 8, ["text"])
|
|
9804
9777
|
], 4),
|
|
9805
9778
|
He(l("div", Ns, [
|
|
9806
|
-
d(
|
|
9779
|
+
d(g, {
|
|
9807
9780
|
width: "400",
|
|
9808
9781
|
elevation: "16"
|
|
9809
9782
|
}, {
|
|
9810
|
-
default:
|
|
9811
|
-
d(
|
|
9812
|
-
default:
|
|
9813
|
-
var f,
|
|
9783
|
+
default: p(() => [
|
|
9784
|
+
d(n, null, {
|
|
9785
|
+
default: p(() => {
|
|
9786
|
+
var f, L, _, T, x, D, S, P, k, z;
|
|
9814
9787
|
return [
|
|
9815
9788
|
l("div", Fs, [
|
|
9816
9789
|
l("span", Hs, b((f = a.activeTropicals) == null ? void 0 : f.name), 1),
|
|
9817
|
-
(
|
|
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)
|
|
9818
9791
|
]),
|
|
9819
9792
|
d(s, {
|
|
9820
9793
|
icon: "",
|
|
@@ -9823,7 +9796,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9823
9796
|
class: "close",
|
|
9824
9797
|
onClick: e[0] || (e[0] = (C) => a.showTropicalsInfo = !1)
|
|
9825
9798
|
}, {
|
|
9826
|
-
default:
|
|
9799
|
+
default: p(() => e[5] || (e[5] = [
|
|
9827
9800
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
9828
9801
|
])),
|
|
9829
9802
|
_: 1,
|
|
@@ -9831,26 +9804,26 @@ function on(t, e, o, i, a, r) {
|
|
|
9831
9804
|
}),
|
|
9832
9805
|
l("div", Us, [
|
|
9833
9806
|
e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
|
|
9834
|
-
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)
|
|
9835
9808
|
])
|
|
9836
9809
|
];
|
|
9837
9810
|
}),
|
|
9838
9811
|
_: 1
|
|
9839
9812
|
}),
|
|
9840
|
-
d(
|
|
9841
|
-
d(
|
|
9842
|
-
default:
|
|
9843
|
-
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;
|
|
9844
9817
|
return [
|
|
9845
9818
|
l("div", Gs, [
|
|
9846
9819
|
l("div", Vs, [
|
|
9847
9820
|
e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
|
|
9848
|
-
l("span", null, b(((
|
|
9849
|
-
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)
|
|
9850
9823
|
]),
|
|
9851
9824
|
l("div", Zs, [
|
|
9852
9825
|
e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
|
|
9853
|
-
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)
|
|
9854
9827
|
])
|
|
9855
9828
|
]),
|
|
9856
9829
|
l("div", Ys, [
|
|
@@ -9869,16 +9842,16 @@ function on(t, e, o, i, a, r) {
|
|
|
9869
9842
|
style: { width: "max-content" }
|
|
9870
9843
|
}, "Forecast Models : ", -1)),
|
|
9871
9844
|
l("div", Qs, [
|
|
9872
|
-
(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, {
|
|
9873
9846
|
key: C,
|
|
9874
9847
|
density: "compact",
|
|
9875
|
-
variant:
|
|
9876
|
-
color:
|
|
9877
|
-
class: Ue(["model text-none text-body-1",
|
|
9878
|
-
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)
|
|
9879
9852
|
}, {
|
|
9880
|
-
default:
|
|
9881
|
-
U(b(
|
|
9853
|
+
default: p(() => [
|
|
9854
|
+
U(b(z.model), 1)
|
|
9882
9855
|
]),
|
|
9883
9856
|
_: 2
|
|
9884
9857
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -9888,9 +9861,9 @@ function on(t, e, o, i, a, r) {
|
|
|
9888
9861
|
}),
|
|
9889
9862
|
_: 1
|
|
9890
9863
|
}),
|
|
9891
|
-
d(
|
|
9892
|
-
d(
|
|
9893
|
-
default:
|
|
9864
|
+
d(u),
|
|
9865
|
+
d(h, { class: "d-flex justify-space-between" }, {
|
|
9866
|
+
default: p(() => [
|
|
9894
9867
|
d(s, {
|
|
9895
9868
|
density: "compact",
|
|
9896
9869
|
"prepend-icon": "",
|
|
@@ -9899,10 +9872,10 @@ function on(t, e, o, i, a, r) {
|
|
|
9899
9872
|
class: "text-none text-body-1",
|
|
9900
9873
|
onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
|
|
9901
9874
|
}, {
|
|
9902
|
-
prepend:
|
|
9875
|
+
prepend: p(() => e[12] || (e[12] = [
|
|
9903
9876
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9904
9877
|
])),
|
|
9905
|
-
default:
|
|
9878
|
+
default: p(() => [
|
|
9906
9879
|
e[13] || (e[13] = U(" Legend ", -1))
|
|
9907
9880
|
]),
|
|
9908
9881
|
_: 1,
|
|
@@ -9916,7 +9889,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9916
9889
|
class: "text-none text-body-1",
|
|
9917
9890
|
onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
|
|
9918
9891
|
}, {
|
|
9919
|
-
default:
|
|
9892
|
+
default: p(() => e[14] || (e[14] = [
|
|
9920
9893
|
U("Notify", -1)
|
|
9921
9894
|
])),
|
|
9922
9895
|
_: 1,
|
|
@@ -9929,7 +9902,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9929
9902
|
class: "text-none text-body-1",
|
|
9930
9903
|
onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
|
|
9931
9904
|
}, {
|
|
9932
|
-
default:
|
|
9905
|
+
default: p(() => e[15] || (e[15] = [
|
|
9933
9906
|
U("View Report", -1)
|
|
9934
9907
|
])),
|
|
9935
9908
|
_: 1,
|
|
@@ -9943,13 +9916,13 @@ function on(t, e, o, i, a, r) {
|
|
|
9943
9916
|
_: 1
|
|
9944
9917
|
}),
|
|
9945
9918
|
l("div", $s, [
|
|
9946
|
-
He(d(
|
|
9919
|
+
He(d(g, {
|
|
9947
9920
|
width: "400",
|
|
9948
9921
|
elevation: "16"
|
|
9949
9922
|
}, {
|
|
9950
|
-
default:
|
|
9951
|
-
d(
|
|
9952
|
-
default:
|
|
9923
|
+
default: p(() => [
|
|
9924
|
+
d(n, null, {
|
|
9925
|
+
default: p(() => [
|
|
9953
9926
|
He(l("div", en, e[16] || (e[16] = [
|
|
9954
9927
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
9955
9928
|
l("div", { class: "icon td" }),
|
|
@@ -10165,7 +10138,7 @@ const an = {
|
|
|
10165
10138
|
style: { height: "56px" }
|
|
10166
10139
|
};
|
|
10167
10140
|
function cn(t, e, o, i, a, r) {
|
|
10168
|
-
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");
|
|
10169
10142
|
return y(), M("div", rn, [
|
|
10170
10143
|
d(s, {
|
|
10171
10144
|
text: "",
|
|
@@ -10173,20 +10146,20 @@ function cn(t, e, o, i, a, r) {
|
|
|
10173
10146
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
10174
10147
|
onClick: r.handleOpenDatePicker
|
|
10175
10148
|
}, {
|
|
10176
|
-
default:
|
|
10149
|
+
default: p(() => [
|
|
10177
10150
|
U(b(a.currentDateTime) + " | UTC " + b(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
10178
10151
|
]),
|
|
10179
10152
|
_: 1
|
|
10180
10153
|
}, 8, ["onClick"]),
|
|
10181
|
-
a.showDatePicker ? (y(), B(
|
|
10154
|
+
a.showDatePicker ? (y(), B(_, {
|
|
10182
10155
|
key: 0,
|
|
10183
10156
|
class: "card-box d-flex flex-column"
|
|
10184
10157
|
}, {
|
|
10185
|
-
default:
|
|
10158
|
+
default: p(() => [
|
|
10186
10159
|
d(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
10187
|
-
default:
|
|
10160
|
+
default: p(() => [
|
|
10188
10161
|
l("div", ln, [
|
|
10189
|
-
d(
|
|
10162
|
+
d(c, {
|
|
10190
10163
|
modelValue: a.currentDate,
|
|
10191
10164
|
"onUpdate:modelValue": e[0] || (e[0] = (T) => a.currentDate = T),
|
|
10192
10165
|
min: a.dateRange[0],
|
|
@@ -10200,16 +10173,16 @@ function cn(t, e, o, i, a, r) {
|
|
|
10200
10173
|
"onUpdate:month": r.handleUpdateMonth
|
|
10201
10174
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
10202
10175
|
]),
|
|
10203
|
-
d(
|
|
10176
|
+
d(n, {
|
|
10204
10177
|
class: "h-100",
|
|
10205
10178
|
vertical: ""
|
|
10206
10179
|
}),
|
|
10207
10180
|
l("div", sn, [
|
|
10208
10181
|
l("div", nn, b(a.currentTime), 1),
|
|
10209
|
-
d(
|
|
10210
|
-
default:
|
|
10211
|
-
(y(!0), M(be, null, we(r.hourOptions, (T,
|
|
10212
|
-
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,
|
|
10213
10186
|
value: T,
|
|
10214
10187
|
color: "primary",
|
|
10215
10188
|
active: a.currentTime === T,
|
|
@@ -10217,12 +10190,12 @@ function cn(t, e, o, i, a, r) {
|
|
|
10217
10190
|
height: "26",
|
|
10218
10191
|
"min-height": "26"
|
|
10219
10192
|
}, {
|
|
10220
|
-
default:
|
|
10221
|
-
d(
|
|
10193
|
+
default: p(() => [
|
|
10194
|
+
d(u, {
|
|
10222
10195
|
class: "text-body-2 text-center",
|
|
10223
10196
|
onClick: (D) => a.currentTime = T
|
|
10224
10197
|
}, {
|
|
10225
|
-
default:
|
|
10198
|
+
default: p(() => [
|
|
10226
10199
|
U(b(T), 1)
|
|
10227
10200
|
]),
|
|
10228
10201
|
_: 2
|
|
@@ -10237,19 +10210,19 @@ function cn(t, e, o, i, a, r) {
|
|
|
10237
10210
|
]),
|
|
10238
10211
|
_: 1
|
|
10239
10212
|
}),
|
|
10240
|
-
d(
|
|
10241
|
-
d(
|
|
10213
|
+
d(n),
|
|
10214
|
+
d(L, {
|
|
10242
10215
|
class: "justify-end pa-0 pr-4",
|
|
10243
10216
|
style: { height: "50px" }
|
|
10244
10217
|
}, {
|
|
10245
|
-
default:
|
|
10218
|
+
default: p(() => [
|
|
10246
10219
|
d(s, {
|
|
10247
10220
|
size: "small",
|
|
10248
10221
|
variant: "tonal",
|
|
10249
10222
|
class: "text-none",
|
|
10250
10223
|
onClick: r.handleCancelDate
|
|
10251
10224
|
}, {
|
|
10252
|
-
default:
|
|
10225
|
+
default: p(() => e[1] || (e[1] = [
|
|
10253
10226
|
U("Cancel", -1)
|
|
10254
10227
|
])),
|
|
10255
10228
|
_: 1,
|
|
@@ -10262,7 +10235,7 @@ function cn(t, e, o, i, a, r) {
|
|
|
10262
10235
|
class: "text-none",
|
|
10263
10236
|
onClick: r.handleConfirmDate
|
|
10264
10237
|
}, {
|
|
10265
|
-
default:
|
|
10238
|
+
default: p(() => e[2] || (e[2] = [
|
|
10266
10239
|
U("Confirm", -1)
|
|
10267
10240
|
])),
|
|
10268
10241
|
_: 1,
|
|
@@ -10496,7 +10469,7 @@ const mn = {
|
|
|
10496
10469
|
forecastDays: t.day ?? 7,
|
|
10497
10470
|
weatherModels: e,
|
|
10498
10471
|
marineModels: o
|
|
10499
|
-
}, a = await
|
|
10472
|
+
}, a = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
10500
10473
|
headers: {
|
|
10501
10474
|
Authorization: this.token || this.defaultMeteoToken
|
|
10502
10475
|
}
|
|
@@ -10513,7 +10486,7 @@ const mn = {
|
|
|
10513
10486
|
pastDays: 1,
|
|
10514
10487
|
weatherModels: e,
|
|
10515
10488
|
marineModels: o
|
|
10516
|
-
}, a = await
|
|
10489
|
+
}, a = await Ee.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
10517
10490
|
headers: {
|
|
10518
10491
|
Authorization: this.token || this.defaultMeteoToken
|
|
10519
10492
|
}
|
|
@@ -10521,10 +10494,10 @@ const mn = {
|
|
|
10521
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;
|
|
10522
10495
|
},
|
|
10523
10496
|
initTableData(t) {
|
|
10524
|
-
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;
|
|
10525
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;
|
|
10526
10499
|
const e = ((s = ao.pickHourly(t, I(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
10527
|
-
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;
|
|
10528
10501
|
},
|
|
10529
10502
|
handleBind() {
|
|
10530
10503
|
var t, e;
|
|
@@ -10561,7 +10534,10 @@ const mn = {
|
|
|
10561
10534
|
(o = this.meteoMarker) == null || o.setLngLat(t);
|
|
10562
10535
|
else {
|
|
10563
10536
|
const a = document.createElement("div");
|
|
10564
|
-
a.innerHTML =
|
|
10537
|
+
a.innerHTML = `
|
|
10538
|
+
<svg class="multi-color-icon" style="height: 26px;width: 26px;" aria-hidden="true">
|
|
10539
|
+
<use :xlink:href="#icon-spot-${this.theme}"></use>
|
|
10540
|
+
</svg>`, this.meteoMarker = new xe.Marker(a).setLngLat(t).setOffset([0, -13]).addTo(this.map);
|
|
10565
10541
|
}
|
|
10566
10542
|
if (this.meteoInfoMarker)
|
|
10567
10543
|
(i = this.meteoInfoMarker) == null || i.setLngLat(t);
|
|
@@ -10596,25 +10572,25 @@ const mn = {
|
|
|
10596
10572
|
"aria-hidden": "true"
|
|
10597
10573
|
}, kn = ["xlink:href"], zn = { class: "d-flex justify-start align-center" }, Ln = { class: "mx-2" };
|
|
10598
10574
|
function Pn(t, e, o, i, a, r) {
|
|
10599
|
-
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");
|
|
10600
10576
|
return y(), M("div", dn, [
|
|
10601
10577
|
l("div", {
|
|
10602
10578
|
class: "menu-bar-box transition pa-1",
|
|
10603
10579
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
10604
10580
|
}, [
|
|
10605
|
-
d(
|
|
10581
|
+
d(c, {
|
|
10606
10582
|
text: t.$t("spot.spotsMeteo"),
|
|
10607
10583
|
location: "left"
|
|
10608
10584
|
}, {
|
|
10609
|
-
activator:
|
|
10610
|
-
d(s, j(
|
|
10585
|
+
activator: p(({ props: k }) => [
|
|
10586
|
+
d(s, j(k, {
|
|
10611
10587
|
"min-width": "32",
|
|
10612
10588
|
width: "32",
|
|
10613
10589
|
height: "32",
|
|
10614
10590
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
10615
10591
|
onClick: r.handleMenuToggle
|
|
10616
10592
|
}), {
|
|
10617
|
-
default:
|
|
10593
|
+
default: p(() => e[8] || (e[8] = [
|
|
10618
10594
|
l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
10619
10595
|
])),
|
|
10620
10596
|
_: 2,
|
|
@@ -10629,9 +10605,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10629
10605
|
class: "spot-form-card",
|
|
10630
10606
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
10631
10607
|
}, {
|
|
10632
|
-
default:
|
|
10633
|
-
d(
|
|
10634
|
-
default:
|
|
10608
|
+
default: p(() => [
|
|
10609
|
+
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
10610
|
+
default: p(() => [
|
|
10635
10611
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
10636
10612
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
10637
10613
|
], -1)),
|
|
@@ -10642,7 +10618,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10642
10618
|
class: "mr-n2",
|
|
10643
10619
|
onClick: r.handleCloseForm
|
|
10644
10620
|
}, {
|
|
10645
|
-
default:
|
|
10621
|
+
default: p(() => e[9] || (e[9] = [
|
|
10646
10622
|
l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
|
|
10647
10623
|
])),
|
|
10648
10624
|
_: 1,
|
|
@@ -10652,16 +10628,16 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10652
10628
|
_: 1,
|
|
10653
10629
|
__: [10]
|
|
10654
10630
|
}),
|
|
10655
|
-
d(
|
|
10631
|
+
d(u),
|
|
10656
10632
|
d(D, { class: "text-body-1 py-1" }, {
|
|
10657
|
-
default:
|
|
10658
|
-
d(
|
|
10633
|
+
default: p(() => [
|
|
10634
|
+
d(x, {
|
|
10659
10635
|
ref: "spotForm",
|
|
10660
10636
|
autocomplete: "off",
|
|
10661
10637
|
class: "form-box",
|
|
10662
10638
|
onSubmit: io(r.submitForm, ["prevent"])
|
|
10663
10639
|
}, {
|
|
10664
|
-
default:
|
|
10640
|
+
default: p(() => [
|
|
10665
10641
|
l("div", hn, [
|
|
10666
10642
|
(y(), M("svg", pn, [
|
|
10667
10643
|
l("use", {
|
|
@@ -10671,15 +10647,15 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10671
10647
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
10672
10648
|
]),
|
|
10673
10649
|
d(f, { class: "ma-0" }, {
|
|
10674
|
-
default:
|
|
10675
|
-
d(
|
|
10650
|
+
default: p(() => [
|
|
10651
|
+
d(g, {
|
|
10676
10652
|
cols: "4",
|
|
10677
10653
|
class: "pa-0 d-flex"
|
|
10678
10654
|
}, {
|
|
10679
|
-
default:
|
|
10680
|
-
d(
|
|
10655
|
+
default: p(() => [
|
|
10656
|
+
d(h, {
|
|
10681
10657
|
modelValue: a.form.lngDegree,
|
|
10682
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
10658
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
10683
10659
|
rules: a.formRules.lngDegree,
|
|
10684
10660
|
density: "compact",
|
|
10685
10661
|
variant: "outlined",
|
|
@@ -10691,14 +10667,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10691
10667
|
_: 1,
|
|
10692
10668
|
__: [12]
|
|
10693
10669
|
}),
|
|
10694
|
-
d(
|
|
10670
|
+
d(g, {
|
|
10695
10671
|
cols: "6",
|
|
10696
10672
|
class: "pa-0 d-flex"
|
|
10697
10673
|
}, {
|
|
10698
|
-
default:
|
|
10699
|
-
d(
|
|
10674
|
+
default: p(() => [
|
|
10675
|
+
d(h, {
|
|
10700
10676
|
modelValue: a.form.lngMinute,
|
|
10701
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
10677
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
10702
10678
|
rules: a.formRules.lngMinute,
|
|
10703
10679
|
label: "",
|
|
10704
10680
|
density: "compact",
|
|
@@ -10711,11 +10687,11 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10711
10687
|
_: 1,
|
|
10712
10688
|
__: [13]
|
|
10713
10689
|
}),
|
|
10714
|
-
d(
|
|
10690
|
+
d(g, {
|
|
10715
10691
|
cols: "2",
|
|
10716
10692
|
class: "pa-0"
|
|
10717
10693
|
}, {
|
|
10718
|
-
default:
|
|
10694
|
+
default: p(() => [
|
|
10719
10695
|
d(s, {
|
|
10720
10696
|
variant: "outlined",
|
|
10721
10697
|
density: "compact",
|
|
@@ -10724,9 +10700,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10724
10700
|
height: "32",
|
|
10725
10701
|
class: "",
|
|
10726
10702
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10727
|
-
onClick: e[2] || (e[2] = (
|
|
10703
|
+
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10728
10704
|
}, {
|
|
10729
|
-
default:
|
|
10705
|
+
default: p(() => [
|
|
10730
10706
|
U(b(a.form.lngDirection), 1)
|
|
10731
10707
|
]),
|
|
10732
10708
|
_: 1
|
|
@@ -10746,15 +10722,15 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10746
10722
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
10747
10723
|
]),
|
|
10748
10724
|
d(f, { class: "ma-0" }, {
|
|
10749
|
-
default:
|
|
10750
|
-
d(
|
|
10725
|
+
default: p(() => [
|
|
10726
|
+
d(g, {
|
|
10751
10727
|
cols: "4",
|
|
10752
10728
|
class: "pa-0 d-flex"
|
|
10753
10729
|
}, {
|
|
10754
|
-
default:
|
|
10755
|
-
d(
|
|
10730
|
+
default: p(() => [
|
|
10731
|
+
d(h, {
|
|
10756
10732
|
modelValue: a.form.latDegree,
|
|
10757
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
10733
|
+
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
10758
10734
|
rules: a.formRules.latDegree,
|
|
10759
10735
|
label: "",
|
|
10760
10736
|
density: "compact",
|
|
@@ -10769,14 +10745,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10769
10745
|
_: 1,
|
|
10770
10746
|
__: [15]
|
|
10771
10747
|
}),
|
|
10772
|
-
d(
|
|
10748
|
+
d(g, {
|
|
10773
10749
|
cols: "6",
|
|
10774
10750
|
class: "pa-0 d-flex"
|
|
10775
10751
|
}, {
|
|
10776
|
-
default:
|
|
10777
|
-
d(
|
|
10752
|
+
default: p(() => [
|
|
10753
|
+
d(h, {
|
|
10778
10754
|
modelValue: a.form.latMinute,
|
|
10779
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
10755
|
+
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
10780
10756
|
rules: a.formRules.latMinute,
|
|
10781
10757
|
label: "",
|
|
10782
10758
|
density: "compact",
|
|
@@ -10789,11 +10765,11 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10789
10765
|
_: 1,
|
|
10790
10766
|
__: [16]
|
|
10791
10767
|
}),
|
|
10792
|
-
d(
|
|
10768
|
+
d(g, {
|
|
10793
10769
|
cols: "2",
|
|
10794
10770
|
class: "pa-0"
|
|
10795
10771
|
}, {
|
|
10796
|
-
default:
|
|
10772
|
+
default: p(() => [
|
|
10797
10773
|
d(s, {
|
|
10798
10774
|
variant: "outlined",
|
|
10799
10775
|
density: "compact",
|
|
@@ -10802,9 +10778,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10802
10778
|
height: "32",
|
|
10803
10779
|
class: "text-body-1",
|
|
10804
10780
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10805
|
-
onClick: e[5] || (e[5] = (
|
|
10781
|
+
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10806
10782
|
}, {
|
|
10807
|
-
default:
|
|
10783
|
+
default: p(() => [
|
|
10808
10784
|
U(b(a.form.latDirection), 1)
|
|
10809
10785
|
]),
|
|
10810
10786
|
_: 1
|
|
@@ -10824,17 +10800,17 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10824
10800
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
10825
10801
|
]),
|
|
10826
10802
|
d(f, { class: "ma-0 mb-4" }, {
|
|
10827
|
-
default:
|
|
10828
|
-
d(
|
|
10803
|
+
default: p(() => [
|
|
10804
|
+
d(g, {
|
|
10829
10805
|
cols: "12",
|
|
10830
10806
|
class: "pa-0"
|
|
10831
10807
|
}, {
|
|
10832
|
-
default:
|
|
10833
|
-
d(
|
|
10808
|
+
default: p(() => [
|
|
10809
|
+
d(L, j({
|
|
10834
10810
|
"date-time": a.form.dateTime,
|
|
10835
10811
|
"time-zone": o.timeZone
|
|
10836
10812
|
}, t.$attrs, {
|
|
10837
|
-
onDateTime: e[6] || (e[6] = (
|
|
10813
|
+
onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
|
|
10838
10814
|
}), null, 16, ["date-time", "time-zone"])
|
|
10839
10815
|
]),
|
|
10840
10816
|
_: 1
|
|
@@ -10851,22 +10827,22 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10851
10827
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
10852
10828
|
]),
|
|
10853
10829
|
d(f, { class: "ma-0 mb-2" }, {
|
|
10854
|
-
default:
|
|
10855
|
-
d(
|
|
10830
|
+
default: p(() => [
|
|
10831
|
+
d(g, {
|
|
10856
10832
|
cols: "12",
|
|
10857
10833
|
class: "pa-0"
|
|
10858
10834
|
}, {
|
|
10859
|
-
default:
|
|
10860
|
-
d(
|
|
10835
|
+
default: p(() => [
|
|
10836
|
+
d(_, {
|
|
10861
10837
|
modelValue: a.form.forecastModel,
|
|
10862
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
10838
|
+
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
10863
10839
|
class: "w-100",
|
|
10864
10840
|
rounded: "",
|
|
10865
10841
|
height: "30",
|
|
10866
10842
|
density: "compact",
|
|
10867
10843
|
group: ""
|
|
10868
10844
|
}, {
|
|
10869
|
-
default:
|
|
10845
|
+
default: p(() => [
|
|
10870
10846
|
d(s, {
|
|
10871
10847
|
density: "compact",
|
|
10872
10848
|
height: "30",
|
|
@@ -10875,7 +10851,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10875
10851
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
10876
10852
|
"base-color": ""
|
|
10877
10853
|
}, {
|
|
10878
|
-
default:
|
|
10854
|
+
default: p(() => e[19] || (e[19] = [
|
|
10879
10855
|
U("NOAA", -1)
|
|
10880
10856
|
])),
|
|
10881
10857
|
_: 1,
|
|
@@ -10889,7 +10865,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10889
10865
|
"base-color": "",
|
|
10890
10866
|
value: "ECMWF"
|
|
10891
10867
|
}, {
|
|
10892
|
-
default:
|
|
10868
|
+
default: p(() => e[20] || (e[20] = [
|
|
10893
10869
|
U("ECMWF", -1)
|
|
10894
10870
|
])),
|
|
10895
10871
|
_: 1,
|
|
@@ -10904,16 +10880,16 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10904
10880
|
]),
|
|
10905
10881
|
_: 1
|
|
10906
10882
|
}),
|
|
10907
|
-
d(
|
|
10883
|
+
d(u),
|
|
10908
10884
|
d(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
10909
|
-
default:
|
|
10885
|
+
default: p(() => [
|
|
10910
10886
|
d(s, {
|
|
10911
10887
|
size: "small",
|
|
10912
10888
|
variant: "outlined",
|
|
10913
10889
|
class: "text-none text-body-1",
|
|
10914
10890
|
onClick: r.cancelForm
|
|
10915
10891
|
}, {
|
|
10916
|
-
default:
|
|
10892
|
+
default: p(() => e[21] || (e[21] = [
|
|
10917
10893
|
U("Clear", -1)
|
|
10918
10894
|
])),
|
|
10919
10895
|
_: 1,
|
|
@@ -10928,7 +10904,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10928
10904
|
type: "submit",
|
|
10929
10905
|
class: "text-none text-body-1"
|
|
10930
10906
|
}, {
|
|
10931
|
-
default:
|
|
10907
|
+
default: p(() => e[22] || (e[22] = [
|
|
10932
10908
|
U("Confirm", -1)
|
|
10933
10909
|
])),
|
|
10934
10910
|
_: 1,
|
|
@@ -10951,14 +10927,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10951
10927
|
class: "spot-meteo",
|
|
10952
10928
|
style: { width: "490px", "z-index": "9" }
|
|
10953
10929
|
}, {
|
|
10954
|
-
default:
|
|
10955
|
-
d(
|
|
10956
|
-
default:
|
|
10957
|
-
var
|
|
10930
|
+
default: p(() => [
|
|
10931
|
+
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
10932
|
+
default: p(() => {
|
|
10933
|
+
var k, z, C, v;
|
|
10958
10934
|
return [
|
|
10959
10935
|
l("div", zn, [
|
|
10960
10936
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
10961
|
-
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)
|
|
10962
10938
|
]),
|
|
10963
10939
|
d(s, {
|
|
10964
10940
|
class: "mr-n2",
|
|
@@ -10967,7 +10943,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10967
10943
|
variant: "plain",
|
|
10968
10944
|
onClick: io(r.handleCloseMeteo, ["stop"])
|
|
10969
10945
|
}, {
|
|
10970
|
-
default:
|
|
10946
|
+
default: p(() => e[24] || (e[24] = [
|
|
10971
10947
|
l("i", {
|
|
10972
10948
|
class: "iconfont icon-close",
|
|
10973
10949
|
style: { "font-size": "20px" }
|
|
@@ -10980,29 +10956,29 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10980
10956
|
}),
|
|
10981
10957
|
_: 1
|
|
10982
10958
|
}),
|
|
10983
|
-
d(
|
|
10959
|
+
d(u),
|
|
10984
10960
|
d(D, { class: "text-body-1 ml-n8" }, {
|
|
10985
|
-
default:
|
|
10961
|
+
default: p(() => [
|
|
10986
10962
|
d(f, null, {
|
|
10987
|
-
default:
|
|
10988
|
-
d(
|
|
10963
|
+
default: p(() => [
|
|
10964
|
+
d(g, {
|
|
10989
10965
|
cols: "3",
|
|
10990
10966
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
10991
10967
|
}, {
|
|
10992
|
-
default:
|
|
10968
|
+
default: p(() => e[25] || (e[25] = [
|
|
10993
10969
|
U("Time", -1)
|
|
10994
10970
|
])),
|
|
10995
10971
|
_: 1,
|
|
10996
10972
|
__: [25]
|
|
10997
10973
|
}),
|
|
10998
|
-
d(
|
|
10974
|
+
d(g, {
|
|
10999
10975
|
cols: "9",
|
|
11000
10976
|
class: "pa-2 px-0"
|
|
11001
10977
|
}, {
|
|
11002
|
-
default:
|
|
11003
|
-
var
|
|
10978
|
+
default: p(() => {
|
|
10979
|
+
var k;
|
|
11004
10980
|
return [
|
|
11005
|
-
U(b(r.computedTzTime((
|
|
10981
|
+
U(b(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11006
10982
|
];
|
|
11007
10983
|
}),
|
|
11008
10984
|
_: 1
|
|
@@ -11011,25 +10987,25 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11011
10987
|
_: 1
|
|
11012
10988
|
}),
|
|
11013
10989
|
d(f, null, {
|
|
11014
|
-
default:
|
|
11015
|
-
d(
|
|
10990
|
+
default: p(() => [
|
|
10991
|
+
d(g, {
|
|
11016
10992
|
cols: "3",
|
|
11017
10993
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11018
10994
|
}, {
|
|
11019
|
-
default:
|
|
10995
|
+
default: p(() => e[26] || (e[26] = [
|
|
11020
10996
|
U("LT", -1)
|
|
11021
10997
|
])),
|
|
11022
10998
|
_: 1,
|
|
11023
10999
|
__: [26]
|
|
11024
11000
|
}),
|
|
11025
|
-
d(
|
|
11001
|
+
d(g, {
|
|
11026
11002
|
cols: "9",
|
|
11027
11003
|
class: "pa-2 px-0"
|
|
11028
11004
|
}, {
|
|
11029
|
-
default:
|
|
11030
|
-
var
|
|
11005
|
+
default: p(() => {
|
|
11006
|
+
var k;
|
|
11031
11007
|
return [
|
|
11032
|
-
U(b(r.computedLocalTime((
|
|
11008
|
+
U(b(r.computedLocalTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
11033
11009
|
];
|
|
11034
11010
|
}),
|
|
11035
11011
|
_: 1
|
|
@@ -11038,41 +11014,41 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11038
11014
|
_: 1
|
|
11039
11015
|
}),
|
|
11040
11016
|
d(f, null, {
|
|
11041
|
-
default:
|
|
11042
|
-
d(
|
|
11017
|
+
default: p(() => [
|
|
11018
|
+
d(g, {
|
|
11043
11019
|
cols: "3",
|
|
11044
11020
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11045
11021
|
}, {
|
|
11046
|
-
default:
|
|
11022
|
+
default: p(() => e[27] || (e[27] = [
|
|
11047
11023
|
U("Wind", -1)
|
|
11048
11024
|
])),
|
|
11049
11025
|
_: 1,
|
|
11050
11026
|
__: [27]
|
|
11051
11027
|
}),
|
|
11052
|
-
d(
|
|
11028
|
+
d(g, {
|
|
11053
11029
|
cols: "4",
|
|
11054
11030
|
class: "pa-2 px-0 text-left"
|
|
11055
11031
|
}, {
|
|
11056
|
-
default:
|
|
11032
|
+
default: p(() => [
|
|
11057
11033
|
U(b(a.currentHourData.windDir) + " / " + b(a.currentHourData.windSpeed) + "kts / BF" + b(a.currentHourData.windLevel), 1)
|
|
11058
11034
|
]),
|
|
11059
11035
|
_: 1
|
|
11060
11036
|
}),
|
|
11061
|
-
d(
|
|
11037
|
+
d(g, {
|
|
11062
11038
|
cols: "2",
|
|
11063
11039
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11064
11040
|
}, {
|
|
11065
|
-
default:
|
|
11041
|
+
default: p(() => e[28] || (e[28] = [
|
|
11066
11042
|
U("Sig Wave", -1)
|
|
11067
11043
|
])),
|
|
11068
11044
|
_: 1,
|
|
11069
11045
|
__: [28]
|
|
11070
11046
|
}),
|
|
11071
|
-
d(
|
|
11047
|
+
d(g, {
|
|
11072
11048
|
cols: "3",
|
|
11073
11049
|
class: "pa-2 px-0 text-left"
|
|
11074
11050
|
}, {
|
|
11075
|
-
default:
|
|
11051
|
+
default: p(() => [
|
|
11076
11052
|
U(b(a.currentHourData.sigwaveDir) + " / " + b(a.currentHourData.sigwaveHeight) + "m / " + b(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
11077
11053
|
]),
|
|
11078
11054
|
_: 1
|
|
@@ -11081,41 +11057,41 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11081
11057
|
_: 1
|
|
11082
11058
|
}),
|
|
11083
11059
|
d(f, null, {
|
|
11084
|
-
default:
|
|
11085
|
-
d(
|
|
11060
|
+
default: p(() => [
|
|
11061
|
+
d(g, {
|
|
11086
11062
|
cols: "3",
|
|
11087
11063
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11088
11064
|
}, {
|
|
11089
|
-
default:
|
|
11065
|
+
default: p(() => e[29] || (e[29] = [
|
|
11090
11066
|
U("Wind Wave", -1)
|
|
11091
11067
|
])),
|
|
11092
11068
|
_: 1,
|
|
11093
11069
|
__: [29]
|
|
11094
11070
|
}),
|
|
11095
|
-
d(
|
|
11071
|
+
d(g, {
|
|
11096
11072
|
cols: "4",
|
|
11097
11073
|
class: "pa-2 px-0 text-left"
|
|
11098
11074
|
}, {
|
|
11099
|
-
default:
|
|
11075
|
+
default: p(() => [
|
|
11100
11076
|
U(b(a.currentHourData.windwaveDir) + " / " + b(a.currentHourData.windwaveHeight) + "m / " + b(a.currentHourData.windwavePeriod) + "s", 1)
|
|
11101
11077
|
]),
|
|
11102
11078
|
_: 1
|
|
11103
11079
|
}),
|
|
11104
|
-
d(
|
|
11080
|
+
d(g, {
|
|
11105
11081
|
cols: "2",
|
|
11106
11082
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11107
11083
|
}, {
|
|
11108
|
-
default:
|
|
11084
|
+
default: p(() => e[30] || (e[30] = [
|
|
11109
11085
|
U("Swell", -1)
|
|
11110
11086
|
])),
|
|
11111
11087
|
_: 1,
|
|
11112
11088
|
__: [30]
|
|
11113
11089
|
}),
|
|
11114
|
-
d(
|
|
11090
|
+
d(g, {
|
|
11115
11091
|
cols: "3",
|
|
11116
11092
|
class: "pa-2 px-0 text-left"
|
|
11117
11093
|
}, {
|
|
11118
|
-
default:
|
|
11094
|
+
default: p(() => [
|
|
11119
11095
|
U(b(a.currentHourData.swellDir) + " / " + b(a.currentHourData.swellHeight) + "m / " + b(a.currentHourData.swellPeriod) + "s", 1)
|
|
11120
11096
|
]),
|
|
11121
11097
|
_: 1
|
|
@@ -11124,41 +11100,41 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11124
11100
|
_: 1
|
|
11125
11101
|
}),
|
|
11126
11102
|
d(f, null, {
|
|
11127
|
-
default:
|
|
11128
|
-
d(
|
|
11103
|
+
default: p(() => [
|
|
11104
|
+
d(g, {
|
|
11129
11105
|
cols: "3",
|
|
11130
11106
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11131
11107
|
}, {
|
|
11132
|
-
default:
|
|
11108
|
+
default: p(() => e[31] || (e[31] = [
|
|
11133
11109
|
U("Current", -1)
|
|
11134
11110
|
])),
|
|
11135
11111
|
_: 1,
|
|
11136
11112
|
__: [31]
|
|
11137
11113
|
}),
|
|
11138
|
-
d(
|
|
11114
|
+
d(g, {
|
|
11139
11115
|
cols: "4",
|
|
11140
11116
|
class: "pa-2 px-0 text-left"
|
|
11141
11117
|
}, {
|
|
11142
|
-
default:
|
|
11118
|
+
default: p(() => [
|
|
11143
11119
|
U(b(a.currentHourData.currentDir) + " / " + b(a.currentHourData.currentSpeed) + "kts", 1)
|
|
11144
11120
|
]),
|
|
11145
11121
|
_: 1
|
|
11146
11122
|
}),
|
|
11147
|
-
d(
|
|
11123
|
+
d(g, {
|
|
11148
11124
|
cols: "2",
|
|
11149
11125
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11150
11126
|
}, {
|
|
11151
|
-
default:
|
|
11127
|
+
default: p(() => e[32] || (e[32] = [
|
|
11152
11128
|
U("Visibility", -1)
|
|
11153
11129
|
])),
|
|
11154
11130
|
_: 1,
|
|
11155
11131
|
__: [32]
|
|
11156
11132
|
}),
|
|
11157
|
-
d(
|
|
11133
|
+
d(g, {
|
|
11158
11134
|
cols: "3",
|
|
11159
11135
|
class: "pa-2 px-0 text-left"
|
|
11160
11136
|
}, {
|
|
11161
|
-
default:
|
|
11137
|
+
default: p(() => [
|
|
11162
11138
|
U(b(a.currentHourData.visibility) + " nm", 1)
|
|
11163
11139
|
]),
|
|
11164
11140
|
_: 1
|
|
@@ -11169,9 +11145,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11169
11145
|
]),
|
|
11170
11146
|
_: 1
|
|
11171
11147
|
}),
|
|
11172
|
-
d(
|
|
11148
|
+
d(u),
|
|
11173
11149
|
d(T, { class: "d-flex justify-space-between align-center" }, {
|
|
11174
|
-
default:
|
|
11150
|
+
default: p(() => [
|
|
11175
11151
|
d(s, {
|
|
11176
11152
|
vvariant: "text",
|
|
11177
11153
|
density: "compact",
|
|
@@ -11179,10 +11155,10 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11179
11155
|
class: "text-none text-body-1",
|
|
11180
11156
|
onClick: r.handleFollow
|
|
11181
11157
|
}, {
|
|
11182
|
-
prepend:
|
|
11158
|
+
prepend: p(() => [
|
|
11183
11159
|
d(P, { color: "warning" })
|
|
11184
11160
|
]),
|
|
11185
|
-
default:
|
|
11161
|
+
default: p(() => [
|
|
11186
11162
|
e[33] || (e[33] = U(" Follow", -1))
|
|
11187
11163
|
]),
|
|
11188
11164
|
_: 1,
|
|
@@ -11195,7 +11171,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11195
11171
|
class: "text-none text-body-1",
|
|
11196
11172
|
onClick: r.handleMeteoMore
|
|
11197
11173
|
}, {
|
|
11198
|
-
default:
|
|
11174
|
+
default: p(() => e[34] || (e[34] = [
|
|
11199
11175
|
U("Forecast", -1)
|
|
11200
11176
|
])),
|
|
11201
11177
|
_: 1,
|
|
@@ -11302,41 +11278,41 @@ const Tn = {
|
|
|
11302
11278
|
}
|
|
11303
11279
|
},
|
|
11304
11280
|
handleDrag(t) {
|
|
11305
|
-
var o, i, a, r, s,
|
|
11281
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
11306
11282
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11307
11283
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11308
|
-
const f = this.geojson.filter((
|
|
11309
|
-
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) => {
|
|
11310
11286
|
var D;
|
|
11311
|
-
return ((D =
|
|
11312
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
11313
|
-
let
|
|
11314
|
-
f.features.forEach((
|
|
11315
|
-
if (
|
|
11316
|
-
|
|
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;
|
|
11317
11293
|
return;
|
|
11318
11294
|
}
|
|
11319
11295
|
});
|
|
11320
|
-
const T = f.features.filter((
|
|
11296
|
+
const T = f.features.filter((x) => x.geometry.type === "Point");
|
|
11321
11297
|
this.handleTmpPointUpdate(
|
|
11322
11298
|
f,
|
|
11323
|
-
T[
|
|
11324
|
-
{ lng: (
|
|
11325
|
-
|
|
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]
|
|
11326
11302
|
);
|
|
11327
11303
|
}
|
|
11328
11304
|
},
|
|
11329
11305
|
handleDragEnd(t) {
|
|
11330
|
-
var o, i, a, r, s,
|
|
11306
|
+
var o, i, a, r, s, c, n, u, h, g;
|
|
11331
11307
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11332
11308
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11333
11309
|
const f = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
11334
11310
|
this.pointMarkers[f.id].filter((T) => {
|
|
11335
|
-
var
|
|
11336
|
-
return ((
|
|
11337
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
11338
|
-
const
|
|
11339
|
-
|
|
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);
|
|
11340
11316
|
}
|
|
11341
11317
|
},
|
|
11342
11318
|
handleContextmenu(t) {
|
|
@@ -11344,27 +11320,27 @@ const Tn = {
|
|
|
11344
11320
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
11345
11321
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
11346
11322
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11347
|
-
const
|
|
11348
|
-
if (
|
|
11349
|
-
const
|
|
11350
|
-
|
|
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);
|
|
11351
11327
|
}
|
|
11352
11328
|
}
|
|
11353
11329
|
},
|
|
11354
11330
|
handleClick(t) {
|
|
11355
|
-
var o, i, a, r, s,
|
|
11331
|
+
var o, i, a, r, s, c;
|
|
11356
11332
|
(o = this.contextmenu) == null || o.remove();
|
|
11357
11333
|
const e = t.originalEvent.target.className;
|
|
11358
11334
|
if (e === "marker-close") {
|
|
11359
|
-
const
|
|
11360
|
-
|
|
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();
|
|
11361
11337
|
} else if (e === "del-point") {
|
|
11362
|
-
const
|
|
11363
|
-
|
|
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);
|
|
11364
11340
|
} else if (e !== "marker-label" && this.toggle) {
|
|
11365
|
-
let
|
|
11366
|
-
|
|
11367
|
-
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(
|
|
11368
11344
|
{
|
|
11369
11345
|
type: "Point",
|
|
11370
11346
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -11375,7 +11351,7 @@ const Tn = {
|
|
|
11375
11351
|
sumLabel: "Start"
|
|
11376
11352
|
}
|
|
11377
11353
|
);
|
|
11378
|
-
|
|
11354
|
+
n.features.push(u), this.handlePointUpdate(n);
|
|
11379
11355
|
}
|
|
11380
11356
|
},
|
|
11381
11357
|
handlePointUpdate(t) {
|
|
@@ -11384,14 +11360,14 @@ const Tn = {
|
|
|
11384
11360
|
let o = 0;
|
|
11385
11361
|
const i = [];
|
|
11386
11362
|
for (let a = 1; a < e.length; a++) {
|
|
11387
|
-
const r = e[a - 1], s = e[a],
|
|
11388
|
-
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);
|
|
11389
11365
|
let f;
|
|
11390
|
-
|
|
11391
|
-
const
|
|
11392
|
-
|
|
11393
|
-
const
|
|
11394
|
-
|
|
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";
|
|
11395
11371
|
}
|
|
11396
11372
|
e.push(...i), t.total = o;
|
|
11397
11373
|
}
|
|
@@ -11401,19 +11377,19 @@ const Tn = {
|
|
|
11401
11377
|
const a = N.featureCollection([]);
|
|
11402
11378
|
let r, s;
|
|
11403
11379
|
if (e) {
|
|
11404
|
-
const
|
|
11405
|
-
r = Fe.calculateDistance(
|
|
11406
|
-
let
|
|
11407
|
-
|
|
11408
|
-
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]));
|
|
11409
11385
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11410
11386
|
}
|
|
11411
11387
|
if (i) {
|
|
11412
|
-
const
|
|
11413
|
-
r = Fe.calculateDistance(
|
|
11414
|
-
let
|
|
11415
|
-
|
|
11416
|
-
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]));
|
|
11417
11393
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11418
11394
|
}
|
|
11419
11395
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -11454,22 +11430,22 @@ const Tn = {
|
|
|
11454
11430
|
// 'text-halo-blur': 0,
|
|
11455
11431
|
}
|
|
11456
11432
|
});
|
|
11457
|
-
let
|
|
11433
|
+
let c;
|
|
11458
11434
|
if (i)
|
|
11459
|
-
|
|
11435
|
+
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
11460
11436
|
else {
|
|
11461
|
-
const
|
|
11462
|
-
|
|
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(
|
|
11463
11439
|
"measure.bearing"
|
|
11464
11440
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
11465
11441
|
"measure.switchTips"
|
|
11466
11442
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
11467
11443
|
}
|
|
11468
11444
|
if (this.tipMarker)
|
|
11469
|
-
this.tipMarker._element.innerHTML =
|
|
11445
|
+
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
11470
11446
|
else {
|
|
11471
|
-
const
|
|
11472
|
-
|
|
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);
|
|
11473
11449
|
}
|
|
11474
11450
|
},
|
|
11475
11451
|
handleMove(t) {
|
|
@@ -11541,48 +11517,48 @@ const Tn = {
|
|
|
11541
11517
|
// 'text-halo-blur': 0,
|
|
11542
11518
|
}
|
|
11543
11519
|
});
|
|
11544
|
-
const s = t.features.filter((
|
|
11545
|
-
for (const
|
|
11546
|
-
const
|
|
11547
|
-
|
|
11548
|
-
const
|
|
11549
|
-
|
|
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];
|
|
11550
11526
|
}
|
|
11551
11527
|
if (t.closed) {
|
|
11552
|
-
const
|
|
11553
|
-
|
|
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);
|
|
11554
11530
|
}
|
|
11555
11531
|
}
|
|
11556
11532
|
},
|
|
11557
11533
|
handleClear(t, e = !0) {
|
|
11558
|
-
var s,
|
|
11534
|
+
var s, c, n, u, h, g, f, L, _, T;
|
|
11559
11535
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
11560
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (
|
|
11561
|
-
|
|
11562
|
-
}), 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);
|
|
11563
11539
|
}
|
|
11564
11540
|
}
|
|
11565
11541
|
}, Sn = { class: "idm-gl4-measure" };
|
|
11566
11542
|
function Mn(t, e, o, i, a, r) {
|
|
11567
|
-
const s =
|
|
11543
|
+
const s = w("VBtn"), c = w("VTooltip");
|
|
11568
11544
|
return y(), M("div", Sn, [
|
|
11569
11545
|
l("div", {
|
|
11570
11546
|
class: "menu-bar-box transition pa-1",
|
|
11571
11547
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
11572
11548
|
}, [
|
|
11573
|
-
d(
|
|
11549
|
+
d(c, {
|
|
11574
11550
|
text: t.$t("measure.measure"),
|
|
11575
11551
|
location: "left"
|
|
11576
11552
|
}, {
|
|
11577
|
-
activator:
|
|
11578
|
-
d(s, j(
|
|
11553
|
+
activator: p(({ props: n }) => [
|
|
11554
|
+
d(s, j(n, {
|
|
11579
11555
|
"min-width": "32",
|
|
11580
11556
|
width: "32",
|
|
11581
11557
|
height: "32",
|
|
11582
11558
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
11583
11559
|
onClick: r.handleMenuToggle
|
|
11584
11560
|
}), {
|
|
11585
|
-
default:
|
|
11561
|
+
default: p(() => e[0] || (e[0] = [
|
|
11586
11562
|
l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
11587
11563
|
])),
|
|
11588
11564
|
_: 2,
|
|
@@ -11718,7 +11694,7 @@ const An = {
|
|
|
11718
11694
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
11719
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" };
|
|
11720
11696
|
function Wn(t, e, o, i, a, r) {
|
|
11721
|
-
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");
|
|
11722
11698
|
return y(), M("div", Dn, [
|
|
11723
11699
|
l("div", {
|
|
11724
11700
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -11732,40 +11708,40 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11732
11708
|
"day-about": a.dayAbout,
|
|
11733
11709
|
"interval-hour": a.intervalHour
|
|
11734
11710
|
}, t.$attrs, {
|
|
11735
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
11736
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
11737
|
-
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 = _)
|
|
11738
11714
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
11739
|
-
d(
|
|
11715
|
+
d(g, {
|
|
11740
11716
|
text: "",
|
|
11741
11717
|
height: "30",
|
|
11742
11718
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
11743
11719
|
"min-width": "30"
|
|
11744
11720
|
}, {
|
|
11745
|
-
default:
|
|
11721
|
+
default: p(() => [
|
|
11746
11722
|
U(b(a.intervalHour) + " h ", 1),
|
|
11747
|
-
d(
|
|
11748
|
-
default:
|
|
11749
|
-
d(
|
|
11750
|
-
default:
|
|
11751
|
-
(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, {
|
|
11752
11728
|
key: T,
|
|
11753
|
-
value:
|
|
11754
|
-
variant: a.intervalHour ===
|
|
11729
|
+
value: _,
|
|
11730
|
+
variant: a.intervalHour === _ ? "tonal" : "text",
|
|
11755
11731
|
color: "primary",
|
|
11756
11732
|
rounded: "",
|
|
11757
|
-
active: a.intervalHour ===
|
|
11733
|
+
active: a.intervalHour === _,
|
|
11758
11734
|
height: "30",
|
|
11759
11735
|
"min-height": "30",
|
|
11760
11736
|
"min-width": "30",
|
|
11761
11737
|
class: "pa-0 text-center text-body-1"
|
|
11762
11738
|
}, {
|
|
11763
|
-
default:
|
|
11764
|
-
d(
|
|
11765
|
-
onClick: (
|
|
11739
|
+
default: p(() => [
|
|
11740
|
+
d(c, {
|
|
11741
|
+
onClick: (x) => a.intervalHour = _
|
|
11766
11742
|
}, {
|
|
11767
|
-
default:
|
|
11768
|
-
U(b(
|
|
11743
|
+
default: p(() => [
|
|
11744
|
+
U(b(_) + "h", 1)
|
|
11769
11745
|
]),
|
|
11770
11746
|
_: 2
|
|
11771
11747
|
}, 1032, ["onClick"])
|
|
@@ -11788,33 +11764,33 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11788
11764
|
style: { height: "16px" }
|
|
11789
11765
|
}),
|
|
11790
11766
|
l("div", On, [
|
|
11791
|
-
d(
|
|
11767
|
+
d(g, {
|
|
11792
11768
|
icon: "",
|
|
11793
11769
|
size: "small",
|
|
11794
11770
|
density: "comfortable",
|
|
11795
11771
|
variant: "text",
|
|
11796
11772
|
onClick: r.handleReset
|
|
11797
11773
|
}, {
|
|
11798
|
-
default:
|
|
11774
|
+
default: p(() => e[9] || (e[9] = [
|
|
11799
11775
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
11800
11776
|
])),
|
|
11801
11777
|
_: 1,
|
|
11802
11778
|
__: [9]
|
|
11803
11779
|
}, 8, ["onClick"]),
|
|
11804
|
-
d(
|
|
11780
|
+
d(g, {
|
|
11805
11781
|
icon: "",
|
|
11806
11782
|
size: "small",
|
|
11807
11783
|
density: "comfortable",
|
|
11808
11784
|
variant: "text",
|
|
11809
11785
|
onClick: r.handleBackward
|
|
11810
11786
|
}, {
|
|
11811
|
-
default:
|
|
11787
|
+
default: p(() => e[10] || (e[10] = [
|
|
11812
11788
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
11813
11789
|
])),
|
|
11814
11790
|
_: 1,
|
|
11815
11791
|
__: [10]
|
|
11816
11792
|
}, 8, ["onClick"]),
|
|
11817
|
-
a.paused ? (y(), B(
|
|
11793
|
+
a.paused ? (y(), B(g, {
|
|
11818
11794
|
key: 0,
|
|
11819
11795
|
icon: "",
|
|
11820
11796
|
size: "small",
|
|
@@ -11822,12 +11798,12 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11822
11798
|
variant: "text",
|
|
11823
11799
|
onClick: r.handlePlay
|
|
11824
11800
|
}, {
|
|
11825
|
-
default:
|
|
11801
|
+
default: p(() => e[11] || (e[11] = [
|
|
11826
11802
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
11827
11803
|
])),
|
|
11828
11804
|
_: 1,
|
|
11829
11805
|
__: [11]
|
|
11830
|
-
}, 8, ["onClick"])) : (y(), B(
|
|
11806
|
+
}, 8, ["onClick"])) : (y(), B(g, {
|
|
11831
11807
|
key: 1,
|
|
11832
11808
|
icon: "",
|
|
11833
11809
|
size: "small",
|
|
@@ -11835,20 +11811,20 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11835
11811
|
variant: "text",
|
|
11836
11812
|
onClick: r.handlePause
|
|
11837
11813
|
}, {
|
|
11838
|
-
default:
|
|
11814
|
+
default: p(() => e[12] || (e[12] = [
|
|
11839
11815
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
11840
11816
|
])),
|
|
11841
11817
|
_: 1,
|
|
11842
11818
|
__: [12]
|
|
11843
11819
|
}, 8, ["onClick"])),
|
|
11844
|
-
d(
|
|
11820
|
+
d(g, {
|
|
11845
11821
|
icon: "",
|
|
11846
11822
|
size: "small",
|
|
11847
11823
|
density: "comfortable",
|
|
11848
11824
|
variant: "text",
|
|
11849
11825
|
onClick: r.handleForward
|
|
11850
11826
|
}, {
|
|
11851
|
-
default:
|
|
11827
|
+
default: p(() => e[13] || (e[13] = [
|
|
11852
11828
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
11853
11829
|
])),
|
|
11854
11830
|
_: 1,
|
|
@@ -11861,23 +11837,23 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11861
11837
|
style: { height: "16px" }
|
|
11862
11838
|
}),
|
|
11863
11839
|
l("div", Bn, [
|
|
11864
|
-
d(
|
|
11840
|
+
d(L, {
|
|
11865
11841
|
text: t.$t("weather.windBarbs"),
|
|
11866
11842
|
location: "top"
|
|
11867
11843
|
}, {
|
|
11868
|
-
activator:
|
|
11869
|
-
var T,
|
|
11844
|
+
activator: p(({ props: _ }) => {
|
|
11845
|
+
var T, x;
|
|
11870
11846
|
return [
|
|
11871
|
-
d(
|
|
11847
|
+
d(g, j(_, {
|
|
11872
11848
|
class: "pa-1 d-flex",
|
|
11873
11849
|
color: (T = o.weatherCheckList) != null && T.includes("wind") ? "primary" : "",
|
|
11874
|
-
variant: (
|
|
11850
|
+
variant: (x = o.weatherCheckList) != null && x.includes("wind") ? "elevated" : "text",
|
|
11875
11851
|
height: "24",
|
|
11876
11852
|
width: "24",
|
|
11877
11853
|
"min-width": "24",
|
|
11878
11854
|
onClick: e[3] || (e[3] = (D) => r.handleClickFastWeather("wind"))
|
|
11879
11855
|
}), {
|
|
11880
|
-
default:
|
|
11856
|
+
default: p(() => e[14] || (e[14] = [
|
|
11881
11857
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
11882
11858
|
])),
|
|
11883
11859
|
_: 2,
|
|
@@ -11887,24 +11863,24 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11887
11863
|
}),
|
|
11888
11864
|
_: 1
|
|
11889
11865
|
}, 8, ["text"]),
|
|
11890
|
-
d(
|
|
11866
|
+
d(L, {
|
|
11891
11867
|
text: t.$t("weather.sigWaveHeight"),
|
|
11892
11868
|
location: "top"
|
|
11893
11869
|
}, {
|
|
11894
|
-
activator:
|
|
11895
|
-
var T,
|
|
11870
|
+
activator: p(({ props: _ }) => {
|
|
11871
|
+
var T, x;
|
|
11896
11872
|
return [
|
|
11897
|
-
d(
|
|
11873
|
+
d(g, j(_, {
|
|
11898
11874
|
class: "pa-1 d-flex",
|
|
11899
11875
|
color: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "primary" : "",
|
|
11900
|
-
variant: (
|
|
11876
|
+
variant: (x = o.weatherCheckList) != null && x.includes("sig-wave-height") ? "elevated" : "text",
|
|
11901
11877
|
height: "24",
|
|
11902
11878
|
width: "24",
|
|
11903
11879
|
"min-width": "24",
|
|
11904
11880
|
onClick: e[4] || (e[4] = (D) => r.handleClickFastWeather("sig-wave-height"))
|
|
11905
11881
|
}), {
|
|
11906
|
-
default:
|
|
11907
|
-
l("i", j(
|
|
11882
|
+
default: p(() => [
|
|
11883
|
+
l("i", j(_, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
11908
11884
|
]),
|
|
11909
11885
|
_: 2
|
|
11910
11886
|
}, 1040, ["color", "variant"])
|
|
@@ -11912,24 +11888,24 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11912
11888
|
}),
|
|
11913
11889
|
_: 1
|
|
11914
11890
|
}, 8, ["text"]),
|
|
11915
|
-
d(
|
|
11891
|
+
d(L, {
|
|
11916
11892
|
text: t.$t("weather.currentDirection"),
|
|
11917
11893
|
location: "top"
|
|
11918
11894
|
}, {
|
|
11919
|
-
activator:
|
|
11920
|
-
var T,
|
|
11895
|
+
activator: p(({ props: _ }) => {
|
|
11896
|
+
var T, x;
|
|
11921
11897
|
return [
|
|
11922
|
-
d(
|
|
11898
|
+
d(g, j(_, {
|
|
11923
11899
|
class: "pa-1 d-flex",
|
|
11924
11900
|
color: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "primary" : "",
|
|
11925
|
-
variant: (
|
|
11901
|
+
variant: (x = o.weatherCheckList) != null && x.includes("current-direction") ? "elevated" : "text",
|
|
11926
11902
|
height: "24",
|
|
11927
11903
|
width: "24",
|
|
11928
11904
|
"min-width": "24",
|
|
11929
11905
|
onClick: e[5] || (e[5] = (D) => r.handleClickFastWeather("current-direction"))
|
|
11930
11906
|
}), {
|
|
11931
|
-
default:
|
|
11932
|
-
l("i", j(
|
|
11907
|
+
default: p(() => [
|
|
11908
|
+
l("i", j(_, { class: "iconfont icon-Current" }), null, 16)
|
|
11933
11909
|
]),
|
|
11934
11910
|
_: 2
|
|
11935
11911
|
}, 1040, ["color", "variant"])
|
|
@@ -11937,12 +11913,12 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11937
11913
|
}),
|
|
11938
11914
|
_: 1
|
|
11939
11915
|
}, 8, ["text"]),
|
|
11940
|
-
d(
|
|
11916
|
+
d(L, {
|
|
11941
11917
|
text: t.$t("weather.weatherLayers"),
|
|
11942
11918
|
location: "top"
|
|
11943
11919
|
}, {
|
|
11944
|
-
activator:
|
|
11945
|
-
d(
|
|
11920
|
+
activator: p(({ props: _ }) => [
|
|
11921
|
+
d(g, j(_, {
|
|
11946
11922
|
class: "pa-1 d-flex",
|
|
11947
11923
|
variant: "text",
|
|
11948
11924
|
height: "24",
|
|
@@ -11950,8 +11926,8 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11950
11926
|
"min-width": "24",
|
|
11951
11927
|
onClick: r.handleClickFastMore
|
|
11952
11928
|
}), {
|
|
11953
|
-
default:
|
|
11954
|
-
l("i", j(
|
|
11929
|
+
default: p(() => [
|
|
11930
|
+
l("i", j(_, { class: "iconfont icon-dots-align" }), null, 16)
|
|
11955
11931
|
]),
|
|
11956
11932
|
_: 2
|
|
11957
11933
|
}, 1040, ["onClick"])
|
|
@@ -11965,27 +11941,27 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11965
11941
|
style: { height: "16px" }
|
|
11966
11942
|
}),
|
|
11967
11943
|
l("div", En, [
|
|
11968
|
-
d(
|
|
11944
|
+
d(g, {
|
|
11969
11945
|
text: "",
|
|
11970
11946
|
height: "30",
|
|
11971
11947
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
11972
11948
|
color: a.source === "GFS" ? "primary" : "",
|
|
11973
|
-
onClick: e[6] || (e[6] = (
|
|
11949
|
+
onClick: e[6] || (e[6] = (_) => a.source = "GFS")
|
|
11974
11950
|
}, {
|
|
11975
|
-
default:
|
|
11951
|
+
default: p(() => e[15] || (e[15] = [
|
|
11976
11952
|
U("NOAA", -1)
|
|
11977
11953
|
])),
|
|
11978
11954
|
_: 1,
|
|
11979
11955
|
__: [15]
|
|
11980
11956
|
}, 8, ["color"]),
|
|
11981
|
-
d(
|
|
11957
|
+
d(g, {
|
|
11982
11958
|
text: "",
|
|
11983
11959
|
height: "30",
|
|
11984
11960
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
11985
11961
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
11986
|
-
onClick: e[7] || (e[7] = (
|
|
11962
|
+
onClick: e[7] || (e[7] = (_) => a.source = "ECMWF")
|
|
11987
11963
|
}, {
|
|
11988
|
-
default:
|
|
11964
|
+
default: p(() => e[16] || (e[16] = [
|
|
11989
11965
|
U("ECMWF", -1)
|
|
11990
11966
|
])),
|
|
11991
11967
|
_: 1,
|
|
@@ -11998,22 +11974,22 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11998
11974
|
style: ae({ right: a.right + "px" })
|
|
11999
11975
|
}, [
|
|
12000
11976
|
a.showTimezone ? (y(), M("div", jn, [
|
|
12001
|
-
(y(!0), M(be, null, we(a.offsets, (
|
|
12002
|
-
key:
|
|
11977
|
+
(y(!0), M(be, null, we(a.offsets, (_) => (y(), M("div", {
|
|
11978
|
+
key: _,
|
|
12003
11979
|
class: "item rounded text-body-2 hover-active",
|
|
12004
|
-
onClick: (T) => a.timeZone =
|
|
12005
|
-
}, b(
|
|
11980
|
+
onClick: (T) => a.timeZone = _
|
|
11981
|
+
}, b(_ < 0 ? _ : "+" + _), 9, Nn))), 128))
|
|
12006
11982
|
])) : E("", !0),
|
|
12007
11983
|
l("div", Fn, [
|
|
12008
|
-
d(
|
|
11984
|
+
d(g, {
|
|
12009
11985
|
text: "",
|
|
12010
11986
|
variant: "flat",
|
|
12011
11987
|
height: "28",
|
|
12012
11988
|
class: "pa-1 text-body-1",
|
|
12013
11989
|
color: "primary",
|
|
12014
|
-
onClick: e[8] || (e[8] = (
|
|
11990
|
+
onClick: e[8] || (e[8] = (_) => a.showTimezone = !a.showTimezone)
|
|
12015
11991
|
}, {
|
|
12016
|
-
default:
|
|
11992
|
+
default: p(() => [
|
|
12017
11993
|
U(" UTC " + b(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12018
11994
|
]),
|
|
12019
11995
|
_: 1
|
|
@@ -12088,7 +12064,7 @@ const Un = /* @__PURE__ */ V(An, [["render", Wn]]), Gn = {
|
|
|
12088
12064
|
class: "map-gl4-home"
|
|
12089
12065
|
};
|
|
12090
12066
|
function Zn(t, e, o, i, a, r) {
|
|
12091
|
-
const s =
|
|
12067
|
+
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), g = w("IdmBottomBar");
|
|
12092
12068
|
return y(), M("div", Vn, [
|
|
12093
12069
|
d(s, j({
|
|
12094
12070
|
ref: "idmOtherLayers",
|
|
@@ -12105,7 +12081,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12105
12081
|
a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12106
12082
|
})
|
|
12107
12083
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12108
|
-
d(
|
|
12084
|
+
d(c, j({
|
|
12109
12085
|
ref: "idmWeatherLayers",
|
|
12110
12086
|
map: o.map,
|
|
12111
12087
|
"before-layer": "empty-layer-2",
|
|
@@ -12123,7 +12099,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12123
12099
|
a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12124
12100
|
})
|
|
12125
12101
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12126
|
-
d(
|
|
12102
|
+
d(n, j({
|
|
12127
12103
|
map: o.map,
|
|
12128
12104
|
token: o.token,
|
|
12129
12105
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12134,11 +12110,11 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12134
12110
|
"forecast-model": o.forecastModel,
|
|
12135
12111
|
"map-feather": o.mapFeather
|
|
12136
12112
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12137
|
-
d(
|
|
12113
|
+
d(u, j({
|
|
12138
12114
|
map: o.map,
|
|
12139
12115
|
"map-feather": o.mapFeather
|
|
12140
12116
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12141
|
-
d(
|
|
12117
|
+
d(h, j({
|
|
12142
12118
|
ref: "idmSpot",
|
|
12143
12119
|
map: o.map,
|
|
12144
12120
|
token: o.token,
|
|
@@ -12146,7 +12122,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12146
12122
|
"forecast-model": o.forecastModel,
|
|
12147
12123
|
"map-feather": o.mapFeather
|
|
12148
12124
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
12149
|
-
d(
|
|
12125
|
+
d(g, j({
|
|
12150
12126
|
ref: "idmBottomBar",
|
|
12151
12127
|
"forecast-model": o.forecastModel,
|
|
12152
12128
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12163,7 +12139,7 @@ class qn {
|
|
|
12163
12139
|
se(this, "hi");
|
|
12164
12140
|
se(this, "td");
|
|
12165
12141
|
se(this, "windy");
|
|
12166
|
-
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;
|
|
12167
12143
|
this.i4 = {
|
|
12168
12144
|
source: {
|
|
12169
12145
|
type: "raster",
|
|
@@ -13671,7 +13647,7 @@ class qn {
|
|
|
13671
13647
|
"text-size": 10,
|
|
13672
13648
|
"icon-image": "tide",
|
|
13673
13649
|
"icon-size": 1,
|
|
13674
|
-
"icon-offset": [0, -
|
|
13650
|
+
"icon-offset": [0, -13],
|
|
13675
13651
|
"text-offset": [0, 1.6],
|
|
13676
13652
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
13677
13653
|
},
|
|
@@ -15198,7 +15174,7 @@ class qn {
|
|
|
15198
15174
|
"text-size": 10,
|
|
15199
15175
|
"icon-image": "tide",
|
|
15200
15176
|
"icon-size": 1,
|
|
15201
|
-
"icon-offset": [0, -
|
|
15177
|
+
"icon-offset": [0, -13],
|
|
15202
15178
|
"text-offset": [0, 1.6],
|
|
15203
15179
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
15204
15180
|
},
|
|
@@ -19837,7 +19813,7 @@ class qn {
|
|
|
19837
19813
|
"text-size": 10,
|
|
19838
19814
|
"icon-image": "tide",
|
|
19839
19815
|
"icon-size": 1,
|
|
19840
|
-
"icon-offset": [0, -
|
|
19816
|
+
"icon-offset": [0, -13],
|
|
19841
19817
|
"text-offset": [0, 1.6],
|
|
19842
19818
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
19843
19819
|
},
|
|
@@ -30644,7 +30620,7 @@ class qn {
|
|
|
30644
30620
|
"text-size": 10,
|
|
30645
30621
|
"icon-image": "tide",
|
|
30646
30622
|
"icon-size": 1,
|
|
30647
|
-
"icon-offset": [0, -
|
|
30623
|
+
"icon-offset": [0, -13],
|
|
30648
30624
|
"text-offset": [0, 1.6],
|
|
30649
30625
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
30650
30626
|
},
|
|
@@ -30741,15 +30717,15 @@ class qn {
|
|
|
30741
30717
|
layers: [
|
|
30742
30718
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((m) => m.id === "land"),
|
|
30743
30719
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
|
|
30744
|
-
(
|
|
30745
|
-
(
|
|
30746
|
-
(
|
|
30747
|
-
(
|
|
30748
|
-
(T = (
|
|
30749
|
-
(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"),
|
|
30750
30726
|
(P = (S = this.originStyle) == null ? void 0 : S.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
|
|
30751
|
-
(
|
|
30752
|
-
(
|
|
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"),
|
|
30753
30729
|
(Z = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : Z.find((m) => m.id === "empty-layer-2"),
|
|
30754
30730
|
(X = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
|
|
30755
30731
|
(te = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : te.find((m) => m.id === "water-point-label"),
|
|
@@ -30759,9 +30735,9 @@ class qn {
|
|
|
30759
30735
|
(ie = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ie.find((m) => m.id === "china-route-line"),
|
|
30760
30736
|
(me = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : me.find((m) => m.id === "china-route-fill"),
|
|
30761
30737
|
(de = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : de.find((m) => m.id === "china-route-label"),
|
|
30762
|
-
(
|
|
30763
|
-
(
|
|
30764
|
-
(
|
|
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"),
|
|
30765
30741
|
(H = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : H.find((m) => m.id === "country-label"),
|
|
30766
30742
|
(je = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : je.find((m) => m.id === "continent-label"),
|
|
30767
30743
|
(he = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : he.find((m) => m.id === "tide-stations"),
|
|
@@ -30781,7 +30757,7 @@ class qn {
|
|
|
30781
30757
|
fog: {
|
|
30782
30758
|
range: [0.5, 10]
|
|
30783
30759
|
},
|
|
30784
|
-
sources: (
|
|
30760
|
+
sources: (Re = this.originStyle) == null ? void 0 : Re.dark.sources,
|
|
30785
30761
|
sprite: (O = this.originStyle) == null ? void 0 : O.dark.sprite,
|
|
30786
30762
|
glyphs: (ye = this.originStyle) == null ? void 0 : ye.dark.glyphs,
|
|
30787
30763
|
projection: (Te = this.originStyle) == null ? void 0 : Te.dark.projection,
|
|
@@ -30791,7 +30767,7 @@ class qn {
|
|
|
30791
30767
|
protected: !1,
|
|
30792
30768
|
draft: !1,
|
|
30793
30769
|
layers: [
|
|
30794
|
-
(
|
|
30770
|
+
(Be = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Be.find((m) => m.id === "land"),
|
|
30795
30771
|
(G = (R = this.originStyle) == null ? void 0 : R.dark.layers) == null ? void 0 : G.find((m) => m.id === "water"),
|
|
30796
30772
|
(Ve = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ve.find((m) => m.id === "ice-area-fill"),
|
|
30797
30773
|
(Pe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Pe.find((m) => m.id === "ice-area-line"),
|
|
@@ -30943,7 +30919,12 @@ const Xn = {
|
|
|
30943
30919
|
right: 10
|
|
30944
30920
|
};
|
|
30945
30921
|
},
|
|
30946
|
-
computed: {
|
|
30922
|
+
computed: {
|
|
30923
|
+
computeYear() {
|
|
30924
|
+
const t = (/* @__PURE__ */ new Date()).getFullYear();
|
|
30925
|
+
return t > 2023 ? t : 2023;
|
|
30926
|
+
}
|
|
30927
|
+
},
|
|
30947
30928
|
watch: {
|
|
30948
30929
|
"menuToggle.v": {
|
|
30949
30930
|
handler() {
|
|
@@ -30962,8 +30943,6 @@ const Xn = {
|
|
|
30962
30943
|
immediate: !0
|
|
30963
30944
|
}
|
|
30964
30945
|
},
|
|
30965
|
-
mounted() {
|
|
30966
|
-
},
|
|
30967
30946
|
methods: {
|
|
30968
30947
|
async initOnlineMap() {
|
|
30969
30948
|
var e;
|
|
@@ -31007,11 +30986,11 @@ const Xn = {
|
|
|
31007
30986
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
31008
30987
|
}
|
|
31009
30988
|
}
|
|
31010
|
-
}, Kn = { class: "mapbox-initial-gl4" }, Qn = { class: "v-btn--variant-elevated rounded" }, Jn = { class: "zoom" };
|
|
31011
|
-
function
|
|
31012
|
-
const s =
|
|
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" };
|
|
30990
|
+
function ec(t, e, o, i, a, r) {
|
|
30991
|
+
const s = w("VBtn");
|
|
31013
30992
|
return y(), M("div", Kn, [
|
|
31014
|
-
e[
|
|
30993
|
+
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
31015
30994
|
l("div", {
|
|
31016
30995
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
31017
30996
|
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
@@ -31024,7 +31003,7 @@ function $n(t, e, o, i, a, r) {
|
|
|
31024
31003
|
class: "pa-0 elevation-0",
|
|
31025
31004
|
onClick: r.handleZoomIn
|
|
31026
31005
|
}, {
|
|
31027
|
-
default:
|
|
31006
|
+
default: p(() => e[0] || (e[0] = [
|
|
31028
31007
|
l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
31029
31008
|
])),
|
|
31030
31009
|
_: 1,
|
|
@@ -31038,7 +31017,7 @@ function $n(t, e, o, i, a, r) {
|
|
|
31038
31017
|
class: "elevation-0 pa-0",
|
|
31039
31018
|
onClick: r.handleZoomOut
|
|
31040
31019
|
}, {
|
|
31041
|
-
default:
|
|
31020
|
+
default: p(() => e[1] || (e[1] = [
|
|
31042
31021
|
l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
31043
31022
|
])),
|
|
31044
31023
|
_: 1,
|
|
@@ -31046,23 +31025,29 @@ function $n(t, e, o, i, a, r) {
|
|
|
31046
31025
|
}, 8, ["onClick"])
|
|
31047
31026
|
])
|
|
31048
31027
|
], 4),
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
l("span",
|
|
31052
|
-
|
|
31028
|
+
l("div", $n, [
|
|
31029
|
+
e[2] || (e[2] = l("span", null, "© 2023", -1)),
|
|
31030
|
+
l("span", null, "-" + b(r.computeYear), 1),
|
|
31031
|
+
e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
31032
|
+
e[4] || (e[4] = l("a", {
|
|
31033
|
+
class: "text-decoration-underline cursor-pointer text-label",
|
|
31034
|
+
href: "https://beian.miit.gov.cn/",
|
|
31035
|
+
target: "_blank"
|
|
31036
|
+
}, "沪ICP备18039043号-6", -1))
|
|
31037
|
+
])
|
|
31053
31038
|
]);
|
|
31054
31039
|
}
|
|
31055
|
-
const
|
|
31040
|
+
const tc = /* @__PURE__ */ V(Xn, [["render", ec]]), pc = {
|
|
31056
31041
|
install(t) {
|
|
31057
|
-
t.component("MapInitial",
|
|
31042
|
+
t.component("MapInitial", tc), t.component("MapboxGL", Yn), t.component("TropicalGL", Ya), t.component("LatLngGL", Za), t.component("DateTimePicker", lo);
|
|
31058
31043
|
}
|
|
31059
31044
|
};
|
|
31060
31045
|
export {
|
|
31061
31046
|
lo as DateTimePicker,
|
|
31062
31047
|
Za as LatLngGL,
|
|
31063
|
-
|
|
31048
|
+
tc as MapInitial,
|
|
31064
31049
|
Yn as MapboxGL,
|
|
31065
|
-
|
|
31050
|
+
pc as MapboxGLPlugin,
|
|
31066
31051
|
_e as ParticleSchema,
|
|
31067
31052
|
Ya as TropicalGL,
|
|
31068
31053
|
ro as Viewport,
|