@idmwx/idmui-gl4 2.1.7 → 2.1.8
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 +976 -975
- package/dist/index.umd.cjs +16 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Qa = Object.defineProperty;
|
|
2
2
|
var $a = (t, e, o) => e in t ? Qa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var pe = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ae from "axios";
|
|
5
5
|
import { useTheme as De } from "vuetify";
|
|
6
|
-
import { openBlock as g, createElementBlock as S, resolveComponent as
|
|
6
|
+
import { openBlock as g, createElementBlock as S, resolveComponent as w, createBlock as A, normalizeClass as ye, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as R, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ye, vShow as Ze, mergeProps as j, normalizeStyle as ee, createStaticVNode as ei } from "vue";
|
|
7
7
|
import ze from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
9
|
import { LngLatHelper as q, TropicalHelper as Va, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as To, TidesAssist as Za } from "@idm-plugin/meteo";
|
|
11
11
|
import * as So from "echarts";
|
|
12
|
-
import * as
|
|
12
|
+
import * as W from "@turf/turf";
|
|
13
13
|
import { LayerHelper as Co, CompanyHelper as ti } from "@idm-plugin/tag2";
|
|
14
14
|
import oi from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ai } from "@idm-plugin/tag";
|
|
16
|
-
const
|
|
16
|
+
const X = (t, e) => {
|
|
17
17
|
const o = t.__vccOpts || t;
|
|
18
18
|
for (const [i, a] of e)
|
|
19
19
|
o[i] = a;
|
|
@@ -115,7 +115,7 @@ const Z = (t, e) => {
|
|
|
115
115
|
function ri(t, e, o, i, a, r) {
|
|
116
116
|
return g(), S("div");
|
|
117
117
|
}
|
|
118
|
-
const si = /* @__PURE__ */
|
|
118
|
+
const si = /* @__PURE__ */ X(ii, [["render", ri]]), li = {
|
|
119
119
|
name: "IdmGmdssArea",
|
|
120
120
|
props: {
|
|
121
121
|
map: {
|
|
@@ -242,7 +242,7 @@ const si = /* @__PURE__ */ Z(ii, [["render", ri]]), li = {
|
|
|
242
242
|
function ni(t, e, o, i, a, r) {
|
|
243
243
|
return g(), S("div");
|
|
244
244
|
}
|
|
245
|
-
const ci = /* @__PURE__ */
|
|
245
|
+
const ci = /* @__PURE__ */ X(li, [["render", ni]]), mi = {
|
|
246
246
|
name: "IdmEcaZone",
|
|
247
247
|
props: {
|
|
248
248
|
map: {
|
|
@@ -338,7 +338,7 @@ const ci = /* @__PURE__ */ Z(li, [["render", ni]]), mi = {
|
|
|
338
338
|
function hi(t, e, o, i, a, r) {
|
|
339
339
|
return g(), S("div");
|
|
340
340
|
}
|
|
341
|
-
const di = /* @__PURE__ */
|
|
341
|
+
const di = /* @__PURE__ */ X(mi, [["render", hi]]);
|
|
342
342
|
const pi = {
|
|
343
343
|
name: "IdmAlertZone",
|
|
344
344
|
props: {
|
|
@@ -475,8 +475,8 @@ const pi = {
|
|
|
475
475
|
handleClick(t) {
|
|
476
476
|
var i, a;
|
|
477
477
|
const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((r) => {
|
|
478
|
-
var l,
|
|
479
|
-
return ((l = r.properties) == null ? void 0 : l.id) === ((
|
|
478
|
+
var l, c;
|
|
479
|
+
return ((l = r.properties) == null ? void 0 : l.id) === ((c = e == null ? void 0 : e.properties) == null ? void 0 : c.id);
|
|
480
480
|
})[0];
|
|
481
481
|
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, this.simple || this.drawMarker([t.lngLat.lng, t.lngLat.lat]));
|
|
482
482
|
},
|
|
@@ -497,14 +497,14 @@ const pi = {
|
|
|
497
497
|
}
|
|
498
498
|
}, ui = ["innerHTML"];
|
|
499
499
|
function gi(t, e, o, i, a, r) {
|
|
500
|
-
const l =
|
|
501
|
-
return a.showMakerInfo ? (g(), A(
|
|
500
|
+
const l = w("VBtn"), c = w("v-card-text"), m = w("v-card");
|
|
501
|
+
return a.showMakerInfo ? (g(), A(m, {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: ye(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"]),
|
|
504
504
|
id: "idm-gl4-zone-info"
|
|
505
505
|
}, {
|
|
506
506
|
default: u(() => [
|
|
507
|
-
p(
|
|
507
|
+
p(c, null, {
|
|
508
508
|
default: u(() => {
|
|
509
509
|
var f;
|
|
510
510
|
return [
|
|
@@ -531,9 +531,9 @@ function gi(t, e, o, i, a, r) {
|
|
|
531
531
|
})
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
|
-
}, 8, ["class"])) :
|
|
534
|
+
}, 8, ["class"])) : R("", !0);
|
|
535
535
|
}
|
|
536
|
-
const fi = /* @__PURE__ */
|
|
536
|
+
const fi = /* @__PURE__ */ X(pi, [["render", gi]]);
|
|
537
537
|
const yi = {
|
|
538
538
|
name: "PortDetail",
|
|
539
539
|
props: {
|
|
@@ -1385,18 +1385,18 @@ const yi = {
|
|
|
1385
1385
|
var o, i, a, r;
|
|
1386
1386
|
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? q.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
|
|
1387
1387
|
for (let l = 0; l < 4; l++) {
|
|
1388
|
-
let
|
|
1388
|
+
let c = {
|
|
1389
1389
|
index: l,
|
|
1390
1390
|
dateTimeList: [],
|
|
1391
1391
|
label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
|
|
1392
1392
|
startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1393
1393
|
dateTime: M().utcOffset(e).add(l, "days").format()
|
|
1394
1394
|
};
|
|
1395
|
-
for (let
|
|
1396
|
-
|
|
1397
|
-
M(
|
|
1395
|
+
for (let m = 0; m < 4; m++)
|
|
1396
|
+
c.dateTimeList.push(
|
|
1397
|
+
M(c.startTime).utcOffset(e).add(m * this.interval, "hours").utc().format()
|
|
1398
1398
|
);
|
|
1399
|
-
t.push(
|
|
1399
|
+
t.push(c);
|
|
1400
1400
|
}
|
|
1401
1401
|
return t;
|
|
1402
1402
|
},
|
|
@@ -1512,17 +1512,16 @@ const yi = {
|
|
|
1512
1512
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1513
1513
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1514
1514
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1515
|
-
var
|
|
1515
|
+
var c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe;
|
|
1516
1516
|
let r = {};
|
|
1517
|
-
const l = ((
|
|
1518
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (
|
|
1517
|
+
const l = ((c = To.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1518
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (m = l.weather) == null ? void 0 : m.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((z = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.precip) == null ? void 0 : z.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((C = l == null ? void 0 : l.weather) == null ? void 0 : C.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((y = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1) ?? "-", r.windDir = (D = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : D.direction, r.windLevel = this.computeRoundPrecision((k = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((I = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : I.height, 1) ?? "-", r.sigwaveDir = (G = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : G.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (le = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((se = (ne = l == null ? void 0 : l.wave) == null ? void 0 : ne.wd) == null ? void 0 : se.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((O = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : O.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1519
1519
|
});
|
|
1520
1520
|
},
|
|
1521
1521
|
handleTide() {
|
|
1522
|
-
this.showTideDetail = !0, this.showPortDetail = !1, this.$nextTick(() => {
|
|
1523
|
-
Object.keys(this.tideData).length === 0 && this.fetchTidesData();
|
|
1522
|
+
this.showTideDetail = !0, this.showPortDetail = !1, Object.keys(this.tideData).length === 0 && this.fetchTidesData(), this.$nextTick(() => {
|
|
1524
1523
|
const t = this.$refs.scrollDom;
|
|
1525
|
-
t && t.scrollTo({
|
|
1524
|
+
console.log(t), t && t.scrollTo({
|
|
1526
1525
|
top: t.scrollHeight - t.clientHeight
|
|
1527
1526
|
// behavior: 'smooth'
|
|
1528
1527
|
});
|
|
@@ -1605,13 +1604,13 @@ const yi = {
|
|
|
1605
1604
|
axisTick: {
|
|
1606
1605
|
alignWithLabel: !0,
|
|
1607
1606
|
lineStyle: {
|
|
1608
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1607
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1609
1608
|
}
|
|
1610
1609
|
},
|
|
1611
1610
|
axisLine: {
|
|
1612
1611
|
show: !0,
|
|
1613
1612
|
lineStyle: {
|
|
1614
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1613
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1615
1614
|
}
|
|
1616
1615
|
},
|
|
1617
1616
|
axisLabel: {
|
|
@@ -1619,7 +1618,7 @@ const yi = {
|
|
|
1619
1618
|
margin: 15,
|
|
1620
1619
|
textStyle: {
|
|
1621
1620
|
fontSize: 12,
|
|
1622
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1621
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1623
1622
|
}
|
|
1624
1623
|
}
|
|
1625
1624
|
}
|
|
@@ -1635,20 +1634,20 @@ const yi = {
|
|
|
1635
1634
|
splitLine: {
|
|
1636
1635
|
show: !0,
|
|
1637
1636
|
lineStyle: {
|
|
1638
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1637
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1639
1638
|
}
|
|
1640
1639
|
},
|
|
1641
1640
|
alignTicks: !0,
|
|
1642
1641
|
axisLine: {
|
|
1643
1642
|
show: !0,
|
|
1644
1643
|
lineStyle: {
|
|
1645
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1644
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1646
1645
|
}
|
|
1647
1646
|
},
|
|
1648
1647
|
axisLabel: {
|
|
1649
1648
|
textStyle: {
|
|
1650
1649
|
fontSize: 12,
|
|
1651
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
1650
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
1652
1651
|
}
|
|
1653
1652
|
}
|
|
1654
1653
|
}
|
|
@@ -1720,16 +1719,16 @@ const yi = {
|
|
|
1720
1719
|
width: "120"
|
|
1721
1720
|
}, fr = { class: "px-1 text-center" }, yr = { class: "px-1 text-center" }, br = { class: "px-1 text-center" };
|
|
1722
1721
|
function wr(t, e, o, i, a, r) {
|
|
1723
|
-
const l =
|
|
1722
|
+
const l = w("VIcon"), c = w("VBtn"), m = w("v-icon"), f = w("VCardTitle"), d = w("VDivider"), b = w("VBtnToggle"), v = w("VCard");
|
|
1724
1723
|
return g(), A(v, {
|
|
1725
1724
|
class: ye(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1726
1725
|
}, {
|
|
1727
1726
|
default: u(() => {
|
|
1728
|
-
var
|
|
1727
|
+
var z, C, L;
|
|
1729
1728
|
return [
|
|
1730
1729
|
p(f, { class: "w-100" }, {
|
|
1731
1730
|
default: u(() => {
|
|
1732
|
-
var y, B, D,
|
|
1731
|
+
var y, B, D, P, k, x;
|
|
1733
1732
|
return [
|
|
1734
1733
|
s("div", bi, [
|
|
1735
1734
|
s("div", wi, [
|
|
@@ -1737,13 +1736,13 @@ function wr(t, e, o, i, a, r) {
|
|
|
1737
1736
|
class: ye(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (D = (B = o.port) == null ? void 0 : B.cntLoCode) == null ? void 0 : D.toLowerCase() : "xx"}`]),
|
|
1738
1737
|
style: { width: "36px", height: "24px" }
|
|
1739
1738
|
}, null, 2),
|
|
1740
|
-
s("div", null, n((
|
|
1739
|
+
s("div", null, n((P = o.port) == null ? void 0 : P.name), 1)
|
|
1741
1740
|
]),
|
|
1742
1741
|
o.simple ? (g(), S("div", xi, [
|
|
1743
|
-
(
|
|
1742
|
+
(k = o.followList) != null && k.some((T) => {
|
|
1744
1743
|
var _;
|
|
1745
|
-
return ((_ =
|
|
1746
|
-
}) ? (g(), A(
|
|
1744
|
+
return ((_ = T.port) == null ? void 0 : _.id) === o.portId;
|
|
1745
|
+
}) ? (g(), A(c, {
|
|
1747
1746
|
key: 0,
|
|
1748
1747
|
class: "text-none rounded-circle",
|
|
1749
1748
|
variant: "text",
|
|
@@ -1761,7 +1760,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1761
1760
|
})
|
|
1762
1761
|
]),
|
|
1763
1762
|
_: 1
|
|
1764
|
-
}, 8, ["onClick"])) : (g(), A(
|
|
1763
|
+
}, 8, ["onClick"])) : (g(), A(c, {
|
|
1765
1764
|
key: 1,
|
|
1766
1765
|
class: "text-none rounded-circle",
|
|
1767
1766
|
variant: "text",
|
|
@@ -1772,14 +1771,14 @@ function wr(t, e, o, i, a, r) {
|
|
|
1772
1771
|
onClick: r.handleFollow
|
|
1773
1772
|
}, {
|
|
1774
1773
|
default: u(() => [
|
|
1775
|
-
p(
|
|
1774
|
+
p(m, {
|
|
1776
1775
|
icon: "mdi-star-outline",
|
|
1777
1776
|
size: "20"
|
|
1778
1777
|
})
|
|
1779
1778
|
]),
|
|
1780
1779
|
_: 1
|
|
1781
1780
|
}, 8, ["onClick"])),
|
|
1782
|
-
p(
|
|
1781
|
+
p(c, {
|
|
1783
1782
|
icon: "",
|
|
1784
1783
|
density: "compact",
|
|
1785
1784
|
variant: "plain",
|
|
@@ -1793,7 +1792,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1793
1792
|
__: [2]
|
|
1794
1793
|
}, 8, ["onClick"])
|
|
1795
1794
|
])) : (g(), S("div", vi, [
|
|
1796
|
-
p(
|
|
1795
|
+
p(c, {
|
|
1797
1796
|
icon: "",
|
|
1798
1797
|
density: "compact",
|
|
1799
1798
|
variant: "plain",
|
|
@@ -1812,7 +1811,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1812
1811
|
s("div", null, n(t.$t("port.port")), 1),
|
|
1813
1812
|
s("div", null, [
|
|
1814
1813
|
e[4] || (e[4] = s("label", null, "UN/LOCODE: ", -1)),
|
|
1815
|
-
s("span", null, n((
|
|
1814
|
+
s("span", null, n((x = o.port) == null ? void 0 : x.cntLoCode), 1)
|
|
1816
1815
|
])
|
|
1817
1816
|
])
|
|
1818
1817
|
];
|
|
@@ -1820,11 +1819,11 @@ function wr(t, e, o, i, a, r) {
|
|
|
1820
1819
|
_: 1
|
|
1821
1820
|
}),
|
|
1822
1821
|
p(d, { class: "w-100" }),
|
|
1823
|
-
o.simple ?
|
|
1824
|
-
(
|
|
1822
|
+
o.simple ? R("", !0) : (g(), S("div", ki, [
|
|
1823
|
+
(z = o.followList) != null && z.some((y) => {
|
|
1825
1824
|
var B;
|
|
1826
1825
|
return ((B = y.port) == null ? void 0 : B.id) === o.portId;
|
|
1827
|
-
}) ? (g(), A(
|
|
1826
|
+
}) ? (g(), A(c, {
|
|
1828
1827
|
key: 0,
|
|
1829
1828
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1830
1829
|
variant: "tonal",
|
|
@@ -1840,7 +1839,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1840
1839
|
K(" " + n(t.$t("actions.unfollow")), 1)
|
|
1841
1840
|
]),
|
|
1842
1841
|
_: 1
|
|
1843
|
-
}, 8, ["onClick"])) : (g(), A(
|
|
1842
|
+
}, 8, ["onClick"])) : (g(), A(c, {
|
|
1844
1843
|
key: 1,
|
|
1845
1844
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1846
1845
|
variant: "tonal",
|
|
@@ -1854,7 +1853,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1854
1853
|
]),
|
|
1855
1854
|
_: 1
|
|
1856
1855
|
}, 8, ["onClick"])),
|
|
1857
|
-
p(
|
|
1856
|
+
p(c, {
|
|
1858
1857
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1859
1858
|
variant: "tonal",
|
|
1860
1859
|
density: "compact",
|
|
@@ -1886,7 +1885,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1886
1885
|
s("div", Si, [
|
|
1887
1886
|
s("div", Mi, [
|
|
1888
1887
|
s("div", Di, n(t.$t("port.region")), 1),
|
|
1889
|
-
s("div", Ii, n(((
|
|
1888
|
+
s("div", Ii, n(((C = o.port) == null ? void 0 : C.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
|
|
1890
1889
|
]),
|
|
1891
1890
|
s("div", Ri, [
|
|
1892
1891
|
s("div", Ai, n(t.$t("port.position")), 1),
|
|
@@ -1924,7 +1923,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1924
1923
|
rounded: "1"
|
|
1925
1924
|
}, {
|
|
1926
1925
|
default: u(() => [
|
|
1927
|
-
(g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(
|
|
1926
|
+
(g(!0), S(xe, null, ke(r.dateList, (y) => (g(), A(c, {
|
|
1928
1927
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1929
1928
|
density: "compact",
|
|
1930
1929
|
color: "primary",
|
|
@@ -1946,7 +1945,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1946
1945
|
}, [
|
|
1947
1946
|
s("th", Vi, [
|
|
1948
1947
|
K(n(t.$t(`${y.key}`)) + " ", 1),
|
|
1949
|
-
y.unit ? (g(), S("span", Yi, " ( " + n(y.unit) + " )", 1)) :
|
|
1948
|
+
y.unit ? (g(), S("span", Yi, " ( " + n(y.unit) + " )", 1)) : R("", !0)
|
|
1950
1949
|
]),
|
|
1951
1950
|
s("td", Zi, [
|
|
1952
1951
|
y.img ? (g(), S("img", {
|
|
@@ -1992,14 +1991,14 @@ function wr(t, e, o, i, a, r) {
|
|
|
1992
1991
|
s("div", null, n(t.$t("tide.tideTimes")), 1)
|
|
1993
1992
|
]),
|
|
1994
1993
|
s("div", mr, [
|
|
1995
|
-
a.showTideDetail ? (g(), A(
|
|
1994
|
+
a.showTideDetail ? (g(), A(c, {
|
|
1996
1995
|
key: 0,
|
|
1997
1996
|
icon: "mdi-eye-off-outline",
|
|
1998
1997
|
density: "compact",
|
|
1999
1998
|
variant: "plain",
|
|
2000
1999
|
size: "small",
|
|
2001
2000
|
onClick: e[1] || (e[1] = (y) => a.showTideDetail = !1)
|
|
2002
|
-
})) : (g(), A(
|
|
2001
|
+
})) : (g(), A(c, {
|
|
2003
2002
|
key: 1,
|
|
2004
2003
|
icon: "mdi-eye-outline",
|
|
2005
2004
|
density: "compact",
|
|
@@ -2031,7 +2030,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2031
2030
|
}), 128))
|
|
2032
2031
|
])
|
|
2033
2032
|
])
|
|
2034
|
-
], 2)) :
|
|
2033
|
+
], 2)) : R("", !0)
|
|
2035
2034
|
])
|
|
2036
2035
|
], 2)
|
|
2037
2036
|
];
|
|
@@ -2039,7 +2038,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2039
2038
|
_: 1
|
|
2040
2039
|
}, 8, ["class"]);
|
|
2041
2040
|
}
|
|
2042
|
-
const Do = /* @__PURE__ */
|
|
2041
|
+
const Do = /* @__PURE__ */ X(yi, [["render", wr], ["__scopeId", "data-v-b9dbfa4f"]]);
|
|
2043
2042
|
const xr = {
|
|
2044
2043
|
name: "IdmPort",
|
|
2045
2044
|
components: {
|
|
@@ -2148,9 +2147,9 @@ const xr = {
|
|
|
2148
2147
|
}
|
|
2149
2148
|
}, vr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, _r = { class: "d-flex justify-start align-center text-label" }, kr = { class: "d-flex justify-start align-center text-label" };
|
|
2150
2149
|
function zr(t, e, o, i, a, r) {
|
|
2151
|
-
const l =
|
|
2150
|
+
const l = w("VCardText"), c = w("VCard"), m = w("PortDetail");
|
|
2152
2151
|
return g(), S("div", null, [
|
|
2153
|
-
Ye(p(
|
|
2152
|
+
Ye(p(c, {
|
|
2154
2153
|
id: "idmPortInfo",
|
|
2155
2154
|
ref: "idmPortInfo"
|
|
2156
2155
|
}, {
|
|
@@ -2175,17 +2174,17 @@ function zr(t, e, o, i, a, r) {
|
|
|
2175
2174
|
}, 512), [
|
|
2176
2175
|
[Ze, a.showInfo]
|
|
2177
2176
|
]),
|
|
2178
|
-
a.showDetail ? (g(), A(
|
|
2177
|
+
a.showDetail ? (g(), A(m, j({
|
|
2179
2178
|
key: 0,
|
|
2180
2179
|
portId: a.portId,
|
|
2181
2180
|
port: a.port,
|
|
2182
2181
|
forecastModel: o.forecastModel,
|
|
2183
2182
|
onClose: r.handleCloseDetail,
|
|
2184
2183
|
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2185
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) :
|
|
2184
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : R("", !0)
|
|
2186
2185
|
]);
|
|
2187
2186
|
}
|
|
2188
|
-
const Lr = /* @__PURE__ */
|
|
2187
|
+
const Lr = /* @__PURE__ */ X(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3"]]), Pr = {
|
|
2189
2188
|
name: "IdmLoadLine",
|
|
2190
2189
|
props: {
|
|
2191
2190
|
map: {
|
|
@@ -2229,7 +2228,7 @@ const Lr = /* @__PURE__ */ Z(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3
|
|
|
2229
2228
|
function Tr(t, e, o, i, a, r) {
|
|
2230
2229
|
return g(), S("div");
|
|
2231
2230
|
}
|
|
2232
|
-
const Cr = /* @__PURE__ */
|
|
2231
|
+
const Cr = /* @__PURE__ */ X(Pr, [["render", Tr]]), Sr = {
|
|
2233
2232
|
name: "IdmTimezone",
|
|
2234
2233
|
props: {
|
|
2235
2234
|
map: {
|
|
@@ -2420,8 +2419,8 @@ const Cr = /* @__PURE__ */ Z(Pr, [["render", Tr]]), Sr = {
|
|
|
2420
2419
|
type: "FeatureCollection"
|
|
2421
2420
|
};
|
|
2422
2421
|
a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
|
|
2423
|
-
const
|
|
2424
|
-
return
|
|
2422
|
+
const c = JSON.parse(JSON.stringify(l));
|
|
2423
|
+
return c.properties.offSet === t.features[0].properties.offSet ? (c.properties.opacity = 0.25, c.properties.lineOpacity = 0.7, c.properties.width = 2) : (c.properties.opacity = 0, c.properties.lineOpacity = 0.2, c.properties.width = 1), c;
|
|
2425
2424
|
}), (i = this.map.getSource(this.source)) == null || i.setData(a);
|
|
2426
2425
|
const r = document.createElement("div");
|
|
2427
2426
|
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
|
|
@@ -2435,7 +2434,7 @@ const Cr = /* @__PURE__ */ Z(Pr, [["render", Tr]]), Sr = {
|
|
|
2435
2434
|
function Mr(t, e, o, i, a, r) {
|
|
2436
2435
|
return g(), S("div");
|
|
2437
2436
|
}
|
|
2438
|
-
const Dr = /* @__PURE__ */
|
|
2437
|
+
const Dr = /* @__PURE__ */ X(Sr, [["render", Mr]]), Ir = {
|
|
2439
2438
|
name: "IdmVoluntaryReportingArea",
|
|
2440
2439
|
props: {
|
|
2441
2440
|
map: {
|
|
@@ -2530,7 +2529,7 @@ const Dr = /* @__PURE__ */ Z(Sr, [["render", Mr]]), Ir = {
|
|
|
2530
2529
|
function Rr(t, e, o, i, a, r) {
|
|
2531
2530
|
return g(), S("div");
|
|
2532
2531
|
}
|
|
2533
|
-
const Ar = /* @__PURE__ */
|
|
2532
|
+
const Ar = /* @__PURE__ */ X(Ir, [["render", Rr]]), Or = {
|
|
2534
2533
|
name: "IdmSpecialArea",
|
|
2535
2534
|
props: {
|
|
2536
2535
|
map: {
|
|
@@ -2625,7 +2624,7 @@ const Ar = /* @__PURE__ */ Z(Ir, [["render", Rr]]), Or = {
|
|
|
2625
2624
|
function Br(t, e, o, i, a, r) {
|
|
2626
2625
|
return g(), S("div");
|
|
2627
2626
|
}
|
|
2628
|
-
const jr = /* @__PURE__ */
|
|
2627
|
+
const jr = /* @__PURE__ */ X(Or, [["render", Br]]), Er = {
|
|
2629
2628
|
name: "IdmTerminator",
|
|
2630
2629
|
props: {
|
|
2631
2630
|
map: {
|
|
@@ -2679,7 +2678,7 @@ const jr = /* @__PURE__ */ Z(Or, [["render", Br]]), Er = {
|
|
|
2679
2678
|
function Nr(t, e, o, i, a, r) {
|
|
2680
2679
|
return g(), S("div");
|
|
2681
2680
|
}
|
|
2682
|
-
const Fr = /* @__PURE__ */
|
|
2681
|
+
const Fr = /* @__PURE__ */ X(Er, [["render", Nr]]), Hr = {
|
|
2683
2682
|
name: "IdmWorld12nm",
|
|
2684
2683
|
props: {
|
|
2685
2684
|
map: {
|
|
@@ -2736,7 +2735,7 @@ const Fr = /* @__PURE__ */ Z(Er, [["render", Nr]]), Hr = {
|
|
|
2736
2735
|
function Gr(t, e, o, i, a, r) {
|
|
2737
2736
|
return null;
|
|
2738
2737
|
}
|
|
2739
|
-
const Wr = /* @__PURE__ */
|
|
2738
|
+
const Wr = /* @__PURE__ */ X(Hr, [["render", Gr]]);
|
|
2740
2739
|
const Ur = {
|
|
2741
2740
|
name: "IdmWorldMarine",
|
|
2742
2741
|
props: {
|
|
@@ -2775,7 +2774,7 @@ const Ur = {
|
|
|
2775
2774
|
function Vr(t, e, o, i, a, r) {
|
|
2776
2775
|
return null;
|
|
2777
2776
|
}
|
|
2778
|
-
const Yr = /* @__PURE__ */
|
|
2777
|
+
const Yr = /* @__PURE__ */ X(Ur, [["render", Vr]]), Zr = {
|
|
2779
2778
|
name: "IdmChinaRoute",
|
|
2780
2779
|
props: {
|
|
2781
2780
|
map: {
|
|
@@ -2814,7 +2813,7 @@ const Yr = /* @__PURE__ */ Z(Ur, [["render", Vr]]), Zr = {
|
|
|
2814
2813
|
function Xr(t, e, o, i, a, r) {
|
|
2815
2814
|
return null;
|
|
2816
2815
|
}
|
|
2817
|
-
const qr = /* @__PURE__ */
|
|
2816
|
+
const qr = /* @__PURE__ */ X(Zr, [["render", Xr]]);
|
|
2818
2817
|
const Kr = {
|
|
2819
2818
|
name: "IdmTideStations",
|
|
2820
2819
|
props: {
|
|
@@ -2874,16 +2873,16 @@ const Kr = {
|
|
|
2874
2873
|
var o, i, a, r;
|
|
2875
2874
|
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? q.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
2876
2875
|
for (let l = 0; l < 4; l++) {
|
|
2877
|
-
let
|
|
2876
|
+
let c = {
|
|
2878
2877
|
index: l,
|
|
2879
2878
|
dateTimeList: [],
|
|
2880
2879
|
label: M().utcOffset(e).add(l, "days").format("MM-DD ddd"),
|
|
2881
2880
|
startTime: M().utcOffset(e).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
2882
2881
|
dateTime: M().utcOffset(e).add(l, "days").format()
|
|
2883
2882
|
};
|
|
2884
|
-
for (let
|
|
2885
|
-
|
|
2886
|
-
t.push(
|
|
2883
|
+
for (let m = 0; m < 4; m++)
|
|
2884
|
+
c.dateTimeList.push(M(c.startTime).utcOffset(e).add(m * 3, "hours").utc().format());
|
|
2885
|
+
t.push(c);
|
|
2887
2886
|
}
|
|
2888
2887
|
return t;
|
|
2889
2888
|
},
|
|
@@ -3009,13 +3008,13 @@ const Kr = {
|
|
|
3009
3008
|
axisTick: {
|
|
3010
3009
|
alignWithLabel: !0,
|
|
3011
3010
|
lineStyle: {
|
|
3012
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3011
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3013
3012
|
}
|
|
3014
3013
|
},
|
|
3015
3014
|
axisLine: {
|
|
3016
3015
|
show: !0,
|
|
3017
3016
|
lineStyle: {
|
|
3018
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3017
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3019
3018
|
}
|
|
3020
3019
|
},
|
|
3021
3020
|
axisLabel: {
|
|
@@ -3023,7 +3022,7 @@ const Kr = {
|
|
|
3023
3022
|
margin: 15,
|
|
3024
3023
|
textStyle: {
|
|
3025
3024
|
fontSize: 12,
|
|
3026
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3025
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3027
3026
|
}
|
|
3028
3027
|
}
|
|
3029
3028
|
}
|
|
@@ -3039,20 +3038,20 @@ const Kr = {
|
|
|
3039
3038
|
splitLine: {
|
|
3040
3039
|
show: !0,
|
|
3041
3040
|
lineStyle: {
|
|
3042
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3041
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3043
3042
|
}
|
|
3044
3043
|
},
|
|
3045
3044
|
alignTicks: !0,
|
|
3046
3045
|
axisLine: {
|
|
3047
3046
|
show: !0,
|
|
3048
3047
|
lineStyle: {
|
|
3049
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3048
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3050
3049
|
}
|
|
3051
3050
|
},
|
|
3052
3051
|
axisLabel: {
|
|
3053
3052
|
textStyle: {
|
|
3054
3053
|
fontSize: 12,
|
|
3055
|
-
color: this.Theme.current.value.colors["surface-bright"]
|
|
3054
|
+
color: this.Theme.current.value.colors["on-surface-bright"]
|
|
3056
3055
|
}
|
|
3057
3056
|
}
|
|
3058
3057
|
}
|
|
@@ -3104,20 +3103,20 @@ const Kr = {
|
|
|
3104
3103
|
width: "120"
|
|
3105
3104
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Ts = { class: "px-1 text-center" };
|
|
3106
3105
|
function Cs(t, e, o, i, a, r) {
|
|
3107
|
-
const l =
|
|
3106
|
+
const l = w("VBtn"), c = w("v-card-title"), m = w("v-divider"), f = w("VBtnToggle"), d = w("v-card");
|
|
3108
3107
|
return g(), A(d, {
|
|
3109
3108
|
class: ye(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
3110
3109
|
}, {
|
|
3111
3110
|
default: u(() => {
|
|
3112
3111
|
var b, v;
|
|
3113
3112
|
return [
|
|
3114
|
-
p(
|
|
3113
|
+
p(c, { class: "w-100" }, {
|
|
3115
3114
|
default: u(() => {
|
|
3116
|
-
var
|
|
3115
|
+
var z;
|
|
3117
3116
|
return [
|
|
3118
3117
|
s("div", Jr, [
|
|
3119
3118
|
s("div", Qr, [
|
|
3120
|
-
s("div", null, n((
|
|
3119
|
+
s("div", null, n((z = o.station) == null ? void 0 : z.name), 1)
|
|
3121
3120
|
]),
|
|
3122
3121
|
p(l, {
|
|
3123
3122
|
icon: "",
|
|
@@ -3140,7 +3139,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3140
3139
|
}),
|
|
3141
3140
|
_: 1
|
|
3142
3141
|
}),
|
|
3143
|
-
p(
|
|
3142
|
+
p(m, { class: "w-100" }),
|
|
3144
3143
|
s("div", {
|
|
3145
3144
|
class: ye(["w-100 pt-0 pb-0 overflow-y-auto scroll", o.simple ? "px-3" : "px-5"])
|
|
3146
3145
|
}, [
|
|
@@ -3187,7 +3186,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3187
3186
|
}, [
|
|
3188
3187
|
p(f, {
|
|
3189
3188
|
modelValue: a.currentIndex,
|
|
3190
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3189
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentIndex = z),
|
|
3191
3190
|
class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3192
3191
|
density: "compact",
|
|
3193
3192
|
group: "",
|
|
@@ -3196,15 +3195,15 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3196
3195
|
rounded: "1"
|
|
3197
3196
|
}, {
|
|
3198
3197
|
default: u(() => [
|
|
3199
|
-
(g(!0), S(xe, null, ke(r.dateList, (
|
|
3198
|
+
(g(!0), S(xe, null, ke(r.dateList, (z) => (g(), A(l, {
|
|
3200
3199
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3201
3200
|
density: "compact",
|
|
3202
3201
|
color: "primary",
|
|
3203
3202
|
height: "26",
|
|
3204
|
-
value:
|
|
3203
|
+
value: z.index
|
|
3205
3204
|
}, {
|
|
3206
3205
|
default: u(() => [
|
|
3207
|
-
K(n(
|
|
3206
|
+
K(n(z.label), 1)
|
|
3208
3207
|
]),
|
|
3209
3208
|
_: 2
|
|
3210
3209
|
}, 1032, ["value"]))), 256))
|
|
@@ -3219,12 +3218,12 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3219
3218
|
s("th", ks, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
3220
3219
|
s("th", zs, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3221
3220
|
]),
|
|
3222
|
-
(g(!0), S(xe, null, ke(a.tideTableData, (
|
|
3223
|
-
var
|
|
3224
|
-
return g(), S("tr", { key:
|
|
3225
|
-
s("td", Ls, n(t.$t(`tide.${(
|
|
3226
|
-
s("td", Ps, n(r.computeLocalTime(
|
|
3227
|
-
s("td", Ts, n((
|
|
3221
|
+
(g(!0), S(xe, null, ke(a.tideTableData, (z, C) => {
|
|
3222
|
+
var L;
|
|
3223
|
+
return g(), S("tr", { key: C }, [
|
|
3224
|
+
s("td", Ls, n(t.$t(`tide.${(L = z == null ? void 0 : z.type) == null ? void 0 : L.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3225
|
+
s("td", Ps, n(r.computeLocalTime(z == null ? void 0 : z.date, o.station, "MM-DD HH:mm")), 1),
|
|
3226
|
+
s("td", Ts, n((z == null ? void 0 : z.height) ?? "-") + " m", 1)
|
|
3228
3227
|
]);
|
|
3229
3228
|
}), 128))
|
|
3230
3229
|
])
|
|
@@ -3237,7 +3236,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3237
3236
|
_: 1
|
|
3238
3237
|
}, 8, ["class"]);
|
|
3239
3238
|
}
|
|
3240
|
-
const Ss = /* @__PURE__ */
|
|
3239
|
+
const Ss = /* @__PURE__ */ X(Kr, [["render", Cs], ["__scopeId", "data-v-957c64c7"]]);
|
|
3241
3240
|
const Ms = {
|
|
3242
3241
|
name: "IdmTideStations",
|
|
3243
3242
|
components: {
|
|
@@ -3315,9 +3314,9 @@ const Ms = {
|
|
|
3315
3314
|
}
|
|
3316
3315
|
}, Ds = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Is = { class: "d-flex justify-start align-center" }, Rs = { class: "d-flex justify-start align-center" }, As = { class: "text-label" };
|
|
3317
3316
|
function Os(t, e, o, i, a, r) {
|
|
3318
|
-
const l =
|
|
3317
|
+
const l = w("v-card-text"), c = w("v-card"), m = w("TideDetail");
|
|
3319
3318
|
return g(), S("div", null, [
|
|
3320
|
-
Ye(p(
|
|
3319
|
+
Ye(p(c, { id: "idmTidalInfo" }, {
|
|
3321
3320
|
default: u(() => [
|
|
3322
3321
|
p(l, { class: "pr-8 text-body-1" }, {
|
|
3323
3322
|
default: u(() => {
|
|
@@ -3338,14 +3337,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
3338
3337
|
}, 512), [
|
|
3339
3338
|
[Ze, a.showInfo]
|
|
3340
3339
|
]),
|
|
3341
|
-
a.showDetail ? (g(), A(
|
|
3340
|
+
a.showDetail ? (g(), A(m, j({
|
|
3342
3341
|
key: 0,
|
|
3343
3342
|
station: a.station,
|
|
3344
3343
|
onClose: r.handleCloseDetail
|
|
3345
|
-
}, t.$attrs), null, 16, ["station", "onClose"])) :
|
|
3344
|
+
}, t.$attrs), null, 16, ["station", "onClose"])) : R("", !0)
|
|
3346
3345
|
]);
|
|
3347
3346
|
}
|
|
3348
|
-
const Bs = /* @__PURE__ */
|
|
3347
|
+
const Bs = /* @__PURE__ */ X(Ms, [["render", Os], ["__scopeId", "data-v-7f9e02c0"]]), js = {
|
|
3349
3348
|
name: "IdmIceAreas",
|
|
3350
3349
|
props: {
|
|
3351
3350
|
map: {
|
|
@@ -3383,7 +3382,7 @@ const Bs = /* @__PURE__ */ Z(Ms, [["render", Os], ["__scopeId", "data-v-7f9e02c0
|
|
|
3383
3382
|
function Es(t, e, o, i, a, r) {
|
|
3384
3383
|
return null;
|
|
3385
3384
|
}
|
|
3386
|
-
const Ns = /* @__PURE__ */
|
|
3385
|
+
const Ns = /* @__PURE__ */ X(js, [["render", Es]]);
|
|
3387
3386
|
const Fs = {
|
|
3388
3387
|
name: "IdmLatLng",
|
|
3389
3388
|
props: {
|
|
@@ -3502,7 +3501,7 @@ const Fs = {
|
|
|
3502
3501
|
handleZoomEnd() {
|
|
3503
3502
|
var e;
|
|
3504
3503
|
const t = this.handleComputeLatLngs();
|
|
3505
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
3504
|
+
(e = this.map) == null || e.getSource(this.source).setData(W.featureCollection(t));
|
|
3506
3505
|
},
|
|
3507
3506
|
handleRender() {
|
|
3508
3507
|
if (this.handleClear(), this.map) {
|
|
@@ -3559,18 +3558,18 @@ const Fs = {
|
|
|
3559
3558
|
}
|
|
3560
3559
|
};
|
|
3561
3560
|
function Hs(t, e, o, i, a, r) {
|
|
3562
|
-
var l,
|
|
3563
|
-
return o.simple ?
|
|
3561
|
+
var l, c, m;
|
|
3562
|
+
return o.simple ? R("", !0) : (g(), S("div", {
|
|
3564
3563
|
key: 0,
|
|
3565
3564
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3566
3565
|
style: ee({ right: a.right + "px" })
|
|
3567
3566
|
}, [
|
|
3568
3567
|
s("div", null, n((l = a.lngLat) == null ? void 0 : l.lat), 1),
|
|
3569
|
-
s("div", null, n((
|
|
3570
|
-
s("div", null, n((
|
|
3568
|
+
s("div", null, n((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
3569
|
+
s("div", null, n((m = a.lngLat) == null ? void 0 : m.str), 1)
|
|
3571
3570
|
], 4));
|
|
3572
3571
|
}
|
|
3573
|
-
const Xa = /* @__PURE__ */
|
|
3572
|
+
const Xa = /* @__PURE__ */ X(Fs, [["render", Hs]]);
|
|
3574
3573
|
const Gs = {
|
|
3575
3574
|
name: "IdmFollowPort",
|
|
3576
3575
|
components: {
|
|
@@ -4482,9 +4481,9 @@ const Gs = {
|
|
|
4482
4481
|
}
|
|
4483
4482
|
}, Ws = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Us = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
|
|
4484
4483
|
function Ys(t, e, o, i, a, r) {
|
|
4485
|
-
const l =
|
|
4484
|
+
const l = w("v-card-text"), c = w("v-card"), m = w("PortDetail");
|
|
4486
4485
|
return g(), S("div", null, [
|
|
4487
|
-
Ye(p(
|
|
4486
|
+
Ye(p(c, {
|
|
4488
4487
|
id: "idmFollowPortInfo",
|
|
4489
4488
|
ref: "idmFollowPortInfo"
|
|
4490
4489
|
}, {
|
|
@@ -4509,7 +4508,7 @@ function Ys(t, e, o, i, a, r) {
|
|
|
4509
4508
|
}, 512), [
|
|
4510
4509
|
[Ze, a.showInfo]
|
|
4511
4510
|
]),
|
|
4512
|
-
a.showDetail ? (g(), A(
|
|
4511
|
+
a.showDetail ? (g(), A(m, j({
|
|
4513
4512
|
key: 0,
|
|
4514
4513
|
portId: a.portId,
|
|
4515
4514
|
port: a.port,
|
|
@@ -4517,10 +4516,10 @@ function Ys(t, e, o, i, a, r) {
|
|
|
4517
4516
|
followList: o.followList,
|
|
4518
4517
|
onClose: r.handleCloseDetail,
|
|
4519
4518
|
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4520
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) :
|
|
4519
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : R("", !0)
|
|
4521
4520
|
]);
|
|
4522
4521
|
}
|
|
4523
|
-
const Zs = /* @__PURE__ */
|
|
4522
|
+
const Zs = /* @__PURE__ */ X(Gs, [["render", Ys], ["__scopeId", "data-v-95e70a1f"]]);
|
|
4524
4523
|
const Xs = {
|
|
4525
4524
|
name: "IdmFollowPosition",
|
|
4526
4525
|
props: {
|
|
@@ -5406,19 +5405,19 @@ const Xs = {
|
|
|
5406
5405
|
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.off("click", [this.layer], this.handleClick), (e = this.map) == null || e.off("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.off("mouseleave", [this.layer], this.handleLeave);
|
|
5407
5406
|
},
|
|
5408
5407
|
handleClick(t) {
|
|
5409
|
-
var o, i, a, r, l,
|
|
5408
|
+
var o, i, a, r, l, c, m, f, d;
|
|
5410
5409
|
const e = t.features[0];
|
|
5411
5410
|
if (e.properties) {
|
|
5412
5411
|
const b = e.properties;
|
|
5413
5412
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5414
|
-
const v = M(),
|
|
5413
|
+
const v = M(), z = (o = M(this.realTime)) == null ? void 0 : o.diff(v, "d", !0), C = {
|
|
5415
5414
|
followId: b.id,
|
|
5416
5415
|
lat: b.lat,
|
|
5417
5416
|
lng: b.lng,
|
|
5418
5417
|
datetime: this.realTime,
|
|
5419
5418
|
forecastModel: this.forecastModel
|
|
5420
5419
|
};
|
|
5421
|
-
|
|
5420
|
+
z >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(C) : (d = (f = (m = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : m.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(C);
|
|
5422
5421
|
}
|
|
5423
5422
|
},
|
|
5424
5423
|
handleHover(t) {
|
|
@@ -5441,8 +5440,8 @@ const Xs = {
|
|
|
5441
5440
|
class: "d-flex justify-start align-center text-label"
|
|
5442
5441
|
};
|
|
5443
5442
|
function Qs(t, e, o, i, a, r) {
|
|
5444
|
-
const l =
|
|
5445
|
-
return Ye((g(), A(
|
|
5443
|
+
const l = w("v-card-text"), c = w("v-card");
|
|
5444
|
+
return Ye((g(), A(c, {
|
|
5446
5445
|
id: "idmFollowPositionInfo",
|
|
5447
5446
|
ref: "idmFollowPositionInfo"
|
|
5448
5447
|
}, {
|
|
@@ -5456,7 +5455,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
5456
5455
|
]),
|
|
5457
5456
|
a.position.remark ? (g(), S("div", Js, [
|
|
5458
5457
|
s("span", null, n(a.position.remark ?? "-"), 1)
|
|
5459
|
-
])) :
|
|
5458
|
+
])) : R("", !0)
|
|
5460
5459
|
])
|
|
5461
5460
|
]),
|
|
5462
5461
|
_: 1
|
|
@@ -5467,7 +5466,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
5467
5466
|
[Ze, a.showInfo]
|
|
5468
5467
|
]);
|
|
5469
5468
|
}
|
|
5470
|
-
const $s = /* @__PURE__ */
|
|
5469
|
+
const $s = /* @__PURE__ */ X(Xs, [["render", Qs], ["__scopeId", "data-v-82405c68"]]);
|
|
5471
5470
|
const el = {
|
|
5472
5471
|
name: "IdmOtherLayerr",
|
|
5473
5472
|
components: {
|
|
@@ -5645,18 +5644,18 @@ const el = {
|
|
|
5645
5644
|
});
|
|
5646
5645
|
if (((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 0) {
|
|
5647
5646
|
const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, l = [];
|
|
5648
|
-
for (const
|
|
5647
|
+
for (const m in r)
|
|
5649
5648
|
l.push(
|
|
5650
|
-
Ae.get(r[
|
|
5649
|
+
Ae.get(r[m], {
|
|
5651
5650
|
headers: {
|
|
5652
5651
|
Authorization: this.defaultMeteoToken,
|
|
5653
|
-
key:
|
|
5652
|
+
key: m
|
|
5654
5653
|
}
|
|
5655
5654
|
})
|
|
5656
5655
|
);
|
|
5657
|
-
(await Promise.all(l)).map((
|
|
5658
|
-
var b, v,
|
|
5659
|
-
const f = ((b =
|
|
5656
|
+
(await Promise.all(l)).map((m) => {
|
|
5657
|
+
var b, v, z;
|
|
5658
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), d = (z = (v = m == null ? void 0 : m.config) == null ? void 0 : v.headers) == null ? void 0 : z.key;
|
|
5660
5659
|
this.otherLayers[d] = f;
|
|
5661
5660
|
});
|
|
5662
5661
|
}
|
|
@@ -5694,14 +5693,14 @@ const el = {
|
|
|
5694
5693
|
class: "border rounded-sm"
|
|
5695
5694
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
5696
5695
|
function dl(t, e, o, i, a, r) {
|
|
5697
|
-
var J,
|
|
5698
|
-
const l =
|
|
5696
|
+
var J, le, ne, se, ie, me, ue, he, de;
|
|
5697
|
+
const l = w("VBtn"), c = w("VTooltip"), m = w("VCardTitle"), f = w("VCardItem"), d = w("VCheckbox"), b = w("VCardText"), v = w("VCard"), z = w("IdmLatLng"), C = w("IdmTerminator"), L = w("IdmTimezone"), y = w("IdmPort"), B = w("IdmAlertZone"), D = w("IdmTideStations"), P = w("IdmEcaZone"), k = w("IdmWarZone"), x = w("IdmGmdssArea"), T = w("IdmLoadLine"), _ = w("IdmWorldMarine"), I = w("IdmVRA"), F = w("IdmSpecialArea"), G = w("IdmWorld12nm"), Y = w("IdmChinaRoute"), Z = w("IdmIceAreas"), Q = w("IdmFollowPort"), $ = w("IdmFollowPosition");
|
|
5699
5698
|
return g(), S("div", tl, [
|
|
5700
5699
|
s("div", {
|
|
5701
5700
|
class: "menu-bar-box transition px-1 rounded",
|
|
5702
5701
|
style: ee({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
|
|
5703
5702
|
}, [
|
|
5704
|
-
p(
|
|
5703
|
+
p(c, {
|
|
5705
5704
|
text: t.$t("layer.mapLayers"),
|
|
5706
5705
|
location: "left"
|
|
5707
5706
|
}, {
|
|
@@ -5751,7 +5750,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5751
5750
|
default: u(() => [
|
|
5752
5751
|
p(f, { class: "border-b-thin" }, {
|
|
5753
5752
|
default: u(() => [
|
|
5754
|
-
p(
|
|
5753
|
+
p(m, {
|
|
5755
5754
|
class: "text-subtitle-1 font-weight-medium",
|
|
5756
5755
|
style: { "font-size": "16px !important" }
|
|
5757
5756
|
}, {
|
|
@@ -5804,7 +5803,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5804
5803
|
default: u(() => [
|
|
5805
5804
|
p(f, { class: "border-b-thin" }, {
|
|
5806
5805
|
default: u(() => [
|
|
5807
|
-
p(
|
|
5806
|
+
p(m, {
|
|
5808
5807
|
class: "text-subtitle-1 font-weight-medium",
|
|
5809
5808
|
style: { "font-size": "16px !important" }
|
|
5810
5809
|
}, {
|
|
@@ -5843,7 +5842,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5843
5842
|
default: u(() => [
|
|
5844
5843
|
p(f, { class: "border-b-thin" }, {
|
|
5845
5844
|
default: u(() => [
|
|
5846
|
-
p(
|
|
5845
|
+
p(m, {
|
|
5847
5846
|
class: "text-subtitle-1 font-weight-medium",
|
|
5848
5847
|
style: { "font-size": "16px !important" }
|
|
5849
5848
|
}, {
|
|
@@ -5882,7 +5881,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5882
5881
|
default: u(() => [
|
|
5883
5882
|
p(f, { class: "border-b-thin" }, {
|
|
5884
5883
|
default: u(() => [
|
|
5885
|
-
p(
|
|
5884
|
+
p(m, {
|
|
5886
5885
|
class: "text-subtitle-1 font-weight-medium",
|
|
5887
5886
|
style: { "font-size": "16px !important" }
|
|
5888
5887
|
}, {
|
|
@@ -5926,45 +5925,45 @@ function dl(t, e, o, i, a, r) {
|
|
|
5926
5925
|
})
|
|
5927
5926
|
])
|
|
5928
5927
|
], 6),
|
|
5929
|
-
o.map ? (g(), A(
|
|
5928
|
+
o.map ? (g(), A(z, j({
|
|
5930
5929
|
key: 0,
|
|
5931
5930
|
simple: o.simple,
|
|
5932
5931
|
map: o.map,
|
|
5933
5932
|
"menu-toggle": o.menuToggle,
|
|
5934
5933
|
show: a.checkList.includes("graticule")
|
|
5935
|
-
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) :
|
|
5936
|
-
o.map ? (g(), A(
|
|
5934
|
+
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) : R("", !0),
|
|
5935
|
+
o.map ? (g(), A(C, j({
|
|
5937
5936
|
key: 1,
|
|
5938
5937
|
map: o.map,
|
|
5939
5938
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
5940
|
-
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) :
|
|
5941
|
-
o.map ? (g(), A(
|
|
5939
|
+
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5940
|
+
o.map ? (g(), A(L, j({
|
|
5942
5941
|
key: 2,
|
|
5943
5942
|
map: o.map,
|
|
5944
|
-
zone: (
|
|
5943
|
+
zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"],
|
|
5945
5944
|
realTime: o.realTime
|
|
5946
|
-
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) :
|
|
5945
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
|
|
5947
5946
|
o.map ? (g(), A(y, j({
|
|
5948
5947
|
key: 3,
|
|
5949
5948
|
ref: "idmPorts",
|
|
5950
5949
|
simple: o.simple,
|
|
5951
5950
|
map: o.map,
|
|
5952
|
-
ports: (
|
|
5951
|
+
ports: (ne = a.otherLayers) == null ? void 0 : ne.ports,
|
|
5953
5952
|
gateway: o.gateway,
|
|
5954
5953
|
token: o.token,
|
|
5955
5954
|
"forecast-model": o.forecastModel,
|
|
5956
5955
|
realTime: o.realTime,
|
|
5957
5956
|
theme: o.theme
|
|
5958
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) :
|
|
5957
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) : R("", !0),
|
|
5959
5958
|
o.map ? (g(), A(B, j({
|
|
5960
5959
|
key: 4,
|
|
5961
5960
|
map: o.map,
|
|
5962
5961
|
simple: o.simple,
|
|
5963
|
-
zone: (
|
|
5962
|
+
zone: (se = a.otherLayers) == null ? void 0 : se["alert-zones"]
|
|
5964
5963
|
}, t.$attrs, {
|
|
5965
5964
|
"before-layer": "empty-layer-3",
|
|
5966
5965
|
theme: o.theme
|
|
5967
|
-
}), null, 16, ["map", "simple", "zone", "theme"])) :
|
|
5966
|
+
}), null, 16, ["map", "simple", "zone", "theme"])) : R("", !0),
|
|
5968
5967
|
o.map ? (g(), A(D, j({
|
|
5969
5968
|
key: 5,
|
|
5970
5969
|
ref: "idmIideStation",
|
|
@@ -5978,60 +5977,60 @@ function dl(t, e, o, i, a, r) {
|
|
|
5978
5977
|
realTime: o.realTime,
|
|
5979
5978
|
forecastModel: o.forecastModel,
|
|
5980
5979
|
"before-layer": "empty-layer-3"
|
|
5981
|
-
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) :
|
|
5982
|
-
o.map ? (g(), A(
|
|
5980
|
+
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
|
|
5981
|
+
o.map ? (g(), A(P, j({
|
|
5983
5982
|
key: 6,
|
|
5984
5983
|
map: o.map,
|
|
5985
5984
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5986
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5987
|
-
o.map ? (g(), A(
|
|
5985
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5986
|
+
o.map ? (g(), A(k, j({
|
|
5988
5987
|
key: 7,
|
|
5989
5988
|
map: o.map,
|
|
5990
|
-
zone: (
|
|
5991
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5992
|
-
o.map ? (g(), A(
|
|
5989
|
+
zone: (me = a.otherLayers) == null ? void 0 : me["war-zones"]
|
|
5990
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5991
|
+
o.map ? (g(), A(x, j({
|
|
5993
5992
|
key: 8,
|
|
5994
5993
|
map: o.map,
|
|
5995
5994
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5996
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5997
|
-
o.map ? (g(), A(
|
|
5995
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5996
|
+
o.map ? (g(), A(T, j({
|
|
5998
5997
|
key: 9,
|
|
5999
5998
|
map: o.map,
|
|
6000
5999
|
show: a.checkList.includes("load-lines")
|
|
6001
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
6000
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
6002
6001
|
o.map ? (g(), A(_, j({
|
|
6003
6002
|
key: 10,
|
|
6004
6003
|
map: o.map,
|
|
6005
6004
|
token: o.token,
|
|
6006
6005
|
show: a.checkList.includes("worldMarine")
|
|
6007
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6008
|
-
o.map ? (g(), A(
|
|
6006
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
6007
|
+
o.map ? (g(), A(I, j({
|
|
6009
6008
|
key: 11,
|
|
6010
6009
|
map: o.map,
|
|
6011
|
-
area: (
|
|
6012
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
6010
|
+
area: (he = a.otherLayers) == null ? void 0 : he["voluntary-reporting-area"]
|
|
6011
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
6013
6012
|
o.map ? (g(), A(F, j({
|
|
6014
6013
|
key: 12,
|
|
6015
6014
|
map: o.map,
|
|
6016
|
-
area: (
|
|
6017
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
6018
|
-
o.map ? (g(), A(
|
|
6015
|
+
area: (de = a.otherLayers) == null ? void 0 : de["special-area"]
|
|
6016
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
6017
|
+
o.map ? (g(), A(G, j({
|
|
6019
6018
|
key: 13,
|
|
6020
6019
|
map: o.map,
|
|
6021
6020
|
token: o.token,
|
|
6022
6021
|
show: a.checkList.includes("world12nm")
|
|
6023
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6024
|
-
o.map ? (g(), A(
|
|
6022
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
6023
|
+
o.map ? (g(), A(Y, j({
|
|
6025
6024
|
key: 14,
|
|
6026
6025
|
map: o.map,
|
|
6027
6026
|
token: o.token,
|
|
6028
6027
|
show: a.checkList.includes("chinaRoute")
|
|
6029
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6030
|
-
o.map ? (g(), A(
|
|
6028
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
6029
|
+
o.map ? (g(), A(Z, j({
|
|
6031
6030
|
key: 15,
|
|
6032
6031
|
map: o.map,
|
|
6033
6032
|
show: a.checkList.includes("ice-areas")
|
|
6034
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
6033
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
6035
6034
|
o.map ? (g(), A(Q, j({
|
|
6036
6035
|
key: 16,
|
|
6037
6036
|
ref: "idmFollowPort",
|
|
@@ -6042,7 +6041,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
6042
6041
|
token: o.token,
|
|
6043
6042
|
"forecast-model": o.forecastModel,
|
|
6044
6043
|
realTime: o.realTime
|
|
6045
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) :
|
|
6044
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
6046
6045
|
o.map ? (g(), A($, j({
|
|
6047
6046
|
key: 17,
|
|
6048
6047
|
ref: "idmFollowPosition",
|
|
@@ -6051,21 +6050,21 @@ function dl(t, e, o, i, a, r) {
|
|
|
6051
6050
|
show: a.checkList.includes("follow-positions"),
|
|
6052
6051
|
"forecast-model": o.forecastModel,
|
|
6053
6052
|
realTime: o.realTime
|
|
6054
|
-
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) :
|
|
6053
|
+
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) : R("", !0)
|
|
6055
6054
|
]);
|
|
6056
6055
|
}
|
|
6057
|
-
const pl = /* @__PURE__ */
|
|
6056
|
+
const pl = /* @__PURE__ */ X(el, [["render", dl]]);
|
|
6058
6057
|
class Io {
|
|
6059
6058
|
constructor(e) {
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6059
|
+
pe(this, "map");
|
|
6060
|
+
pe(this, "mercator");
|
|
6061
|
+
pe(this, "rampColorLayer");
|
|
6062
|
+
pe(this, "rampColorSource");
|
|
6063
|
+
pe(this, "particleLayer");
|
|
6064
|
+
pe(this, "particleSource");
|
|
6065
|
+
pe(this, "rampColorCanvas");
|
|
6066
|
+
pe(this, "particleCanvas");
|
|
6067
|
+
pe(this, "ratio");
|
|
6069
6068
|
this.map = e, this.mercator = new oi(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
6070
6069
|
}
|
|
6071
6070
|
/**
|
|
@@ -6101,12 +6100,12 @@ class Io {
|
|
|
6101
6100
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
6102
6101
|
*/
|
|
6103
6102
|
getBoundPixel() {
|
|
6104
|
-
var
|
|
6105
|
-
const e = (
|
|
6103
|
+
var C, L;
|
|
6104
|
+
const e = (C = this.map) == null ? void 0 : C.getBounds();
|
|
6106
6105
|
if (!e)
|
|
6107
6106
|
return [];
|
|
6108
|
-
const o = ((
|
|
6109
|
-
return [b, v, f +
|
|
6107
|
+
const o = ((L = this.map) == null ? void 0 : L.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, m] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, v] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (l + m));
|
|
6108
|
+
return [b, v, f + z, d];
|
|
6110
6109
|
}
|
|
6111
6110
|
/**
|
|
6112
6111
|
* [视窗边界像素宽度]
|
|
@@ -6121,11 +6120,11 @@ class Io {
|
|
|
6121
6120
|
* @param zoom
|
|
6122
6121
|
*/
|
|
6123
6122
|
getWorldCopy(e, o) {
|
|
6124
|
-
const i = 2 ** o, [a, r, l,
|
|
6125
|
-
for (let d =
|
|
6123
|
+
const i = 2 ** o, [a, r, l, c] = e.map((d) => ~~(d / (i * 256))), m = [];
|
|
6124
|
+
for (let d = c; d <= r; d++)
|
|
6126
6125
|
for (let b = a; b <= l; b++)
|
|
6127
|
-
|
|
6128
|
-
return
|
|
6126
|
+
m.push([b, d]);
|
|
6127
|
+
return m.map((d) => {
|
|
6129
6128
|
const b = 2 ** o * 256;
|
|
6130
6129
|
return [d[0] * b, d[1] * b, b];
|
|
6131
6130
|
});
|
|
@@ -6170,9 +6169,9 @@ class Fe {
|
|
|
6170
6169
|
* @param width??
|
|
6171
6170
|
* @param height??
|
|
6172
6171
|
*/
|
|
6173
|
-
createTexture(e, o, i, a, r, l,
|
|
6174
|
-
const
|
|
6175
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
6172
|
+
createTexture(e, o, i, a, r, l, c) {
|
|
6173
|
+
const m = e.createTexture();
|
|
6174
|
+
return e.bindTexture(e.TEXTURE_2D, m), 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, l, 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), m;
|
|
6176
6175
|
}
|
|
6177
6176
|
/**
|
|
6178
6177
|
* 创建数据资源
|
|
@@ -6210,13 +6209,13 @@ class Fe {
|
|
|
6210
6209
|
const a = this.createProgram(e, o, i);
|
|
6211
6210
|
if (a) {
|
|
6212
6211
|
const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
6213
|
-
for (let
|
|
6214
|
-
const f = e.getActiveAttrib(a,
|
|
6212
|
+
for (let m = 0; m < l; m++) {
|
|
6213
|
+
const f = e.getActiveAttrib(a, m);
|
|
6215
6214
|
r[f.name] = e.getAttribLocation(a, f.name);
|
|
6216
6215
|
}
|
|
6217
|
-
const
|
|
6218
|
-
for (let
|
|
6219
|
-
const f = e.getActiveUniform(a,
|
|
6216
|
+
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
6217
|
+
for (let m = 0; m < c; m++) {
|
|
6218
|
+
const f = e.getActiveUniform(a, m);
|
|
6220
6219
|
r[f.name] = e.getUniformLocation(a, f.name);
|
|
6221
6220
|
}
|
|
6222
6221
|
return r;
|
|
@@ -6229,19 +6228,19 @@ class Fe {
|
|
|
6229
6228
|
setup(e, o, i = !1, a, r) {
|
|
6230
6229
|
const l = document.createElement("canvas");
|
|
6231
6230
|
l.width = 256, l.height = 1;
|
|
6232
|
-
const
|
|
6233
|
-
if (
|
|
6234
|
-
const
|
|
6231
|
+
const c = l.getContext("2d");
|
|
6232
|
+
if (c && e) {
|
|
6233
|
+
const m = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
6235
6234
|
return o.forEach(([f, d]) => {
|
|
6236
|
-
|
|
6237
|
-
}),
|
|
6235
|
+
m.addColorStop(f, d);
|
|
6236
|
+
}), c.fillStyle = m, c.fillRect(0, 0, 256, 1), {
|
|
6238
6237
|
canvas: l,
|
|
6239
6238
|
texture: this.createTexture(
|
|
6240
6239
|
e,
|
|
6241
6240
|
e.LINEAR,
|
|
6242
6241
|
e.LINEAR,
|
|
6243
6242
|
e.CLAMP_TO_EDGE,
|
|
6244
|
-
i ? new Uint8Array(
|
|
6243
|
+
i ? new Uint8Array(c.getImageData(0, 0, 256, 1).data) : l,
|
|
6245
6244
|
a,
|
|
6246
6245
|
r
|
|
6247
6246
|
)
|
|
@@ -6252,32 +6251,32 @@ class Fe {
|
|
|
6252
6251
|
const i = Math.ceil(Math.sqrt(o)), a = i * i, r = new Uint8Array(a * 4);
|
|
6253
6252
|
for (let d = 0; d < r.length; d++)
|
|
6254
6253
|
r[d] = Math.floor(Math.random() * 256);
|
|
6255
|
-
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i),
|
|
6254
|
+
const l = 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), m = new Float32Array(a);
|
|
6256
6255
|
for (let d = 0; d < a; d++)
|
|
6257
|
-
|
|
6258
|
-
const f = this.createDataBuffer(e, "array",
|
|
6259
|
-
return { resolution: i, total: a, texture0: l, texture1:
|
|
6256
|
+
m[d] = d;
|
|
6257
|
+
const f = this.createDataBuffer(e, "array", m);
|
|
6258
|
+
return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: f };
|
|
6260
6259
|
}
|
|
6261
6260
|
bind(e, o, i) {
|
|
6262
6261
|
const a = this.createProgram(e, o, i);
|
|
6263
6262
|
if (a) {
|
|
6264
6263
|
const r = this.createDataBuffer(e, "array", void 0), l = e.getAttribLocation(a, "a_position");
|
|
6265
6264
|
e.enableVertexAttribArray(l), e.vertexAttribPointer(l, 2, e.FLOAT, !1, 0, 0);
|
|
6266
|
-
const
|
|
6267
|
-
this.createDataBuffer(e, "array",
|
|
6268
|
-
const
|
|
6269
|
-
return e.enableVertexAttribArray(
|
|
6265
|
+
const c = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
6266
|
+
this.createDataBuffer(e, "array", c);
|
|
6267
|
+
const m = e.getAttribLocation(a, "a_texCoord");
|
|
6268
|
+
return e.enableVertexAttribArray(m), e.vertexAttribPointer(m, 2, e.FLOAT, !1, 0, 0), { program: a, aPositionBuffer: r };
|
|
6270
6269
|
}
|
|
6271
6270
|
return {};
|
|
6272
6271
|
}
|
|
6273
6272
|
bindParticle(e, o, i, a, r, l) {
|
|
6274
|
-
const
|
|
6275
|
-
return { particle:
|
|
6273
|
+
const c = this.createProgramWrapper(e, o, i), m = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, l), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
|
|
6274
|
+
return { particle: c, screen: m, update: f, quadBuffer: d, frameBuffer: b };
|
|
6276
6275
|
}
|
|
6277
|
-
draw(e, o, i, a, r, l,
|
|
6278
|
-
var
|
|
6276
|
+
draw(e, o, i, a, r, l, c) {
|
|
6277
|
+
var m, f;
|
|
6279
6278
|
if (o && i) {
|
|
6280
|
-
e.resize(), o == null || o.viewport(0, 0, (
|
|
6279
|
+
e.resize(), o == null || o.viewport(0, 0, (m = o == null ? void 0 : o.canvas) == null ? void 0 : m.width, (f = o == null ? void 0 : o.canvas) == null ? void 0 : f.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
|
|
6281
6280
|
try {
|
|
6282
6281
|
o.useProgram(i);
|
|
6283
6282
|
const d = {
|
|
@@ -6288,11 +6287,11 @@ class Fe {
|
|
|
6288
6287
|
uvRange: o.getUniformLocation(i, "u_range_u_v"),
|
|
6289
6288
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6290
6289
|
};
|
|
6291
|
-
d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1),
|
|
6292
|
-
const b = e.getBoundPixel(), v = e.map.getZoom() + 1,
|
|
6293
|
-
for (const
|
|
6294
|
-
const
|
|
6295
|
-
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER,
|
|
6290
|
+
d.resolution && o.uniform2f(d.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), d.image && o.uniform1i(d.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), d.color && o.uniform1i(d.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (d.uvRange && o.uniform2f(d.uvRange, c.uvRange[0], c.uvRange[1]), d.sRange && o.uniform2f(d.sRange, c.sRange[0], c.sRange[1])), d.scale && o.uniform1f(d.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6291
|
+
const b = e.getBoundPixel(), v = e.map.getZoom() + 1, z = e.getWorldCopy(b, v);
|
|
6292
|
+
for (const C of z) {
|
|
6293
|
+
const L = (C[0] - b[0]) * e.ratio, y = (C[1] - b[3]) * e.ratio, B = C[2] * e.ratio, [D, P, k, x] = [L, B + L, y, B + y], T = new Float32Array([D, k, P, k, D, x, D, x, P, k, P, x]);
|
|
6294
|
+
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6296
6295
|
}
|
|
6297
6296
|
} catch (d) {
|
|
6298
6297
|
console.log(`render failed...${d}`);
|
|
@@ -6300,8 +6299,8 @@ class Fe {
|
|
|
6300
6299
|
}
|
|
6301
6300
|
}
|
|
6302
6301
|
drawParticle(e, o, i, a, r) {
|
|
6303
|
-
var l,
|
|
6304
|
-
o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.width, (
|
|
6302
|
+
var l, c;
|
|
6303
|
+
o && (o == null || o.viewport(0, 0, (l = o == null ? void 0 : o.canvas) == null ? void 0 : l.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));
|
|
6305
6304
|
}
|
|
6306
6305
|
renderScreen(e, o, i, a) {
|
|
6307
6306
|
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);
|
|
@@ -6319,11 +6318,11 @@ class Fe {
|
|
|
6319
6318
|
}
|
|
6320
6319
|
}
|
|
6321
6320
|
updateParticles(e, o, i, a) {
|
|
6322
|
-
var l,
|
|
6321
|
+
var l, c;
|
|
6323
6322
|
if (o) {
|
|
6324
6323
|
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);
|
|
6325
|
-
const
|
|
6326
|
-
o.uniform4f(i.update.u_viewport,
|
|
6324
|
+
const m = e.getBoundRange();
|
|
6325
|
+
o.uniform4f(i.update.u_viewport, m[0], m[1], m[2], m[3]), o.uniform1f(i.update.u_rand_seed, Math.random()), o.uniform2f(i.update.u_factor_res, (l = i == null ? void 0 : i.image) == null ? void 0 : l.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);
|
|
6327
6326
|
}
|
|
6328
6327
|
const r = i.texture0;
|
|
6329
6328
|
i.texture0 = i.texture1, i.texture1 = r;
|
|
@@ -6340,10 +6339,10 @@ class Fe {
|
|
|
6340
6339
|
});
|
|
6341
6340
|
}
|
|
6342
6341
|
}
|
|
6343
|
-
class
|
|
6342
|
+
class ce {
|
|
6344
6343
|
}
|
|
6345
6344
|
// 顶点渲染
|
|
6346
|
-
|
|
6345
|
+
pe(ce, "vertexSchema", `
|
|
6347
6346
|
//canvas 坐标系上的坐标 (x, y)
|
|
6348
6347
|
attribute vec2 a_position; //像素坐标
|
|
6349
6348
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -6358,7 +6357,7 @@ de(ne, "vertexSchema", `
|
|
|
6358
6357
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
6359
6358
|
v_texCoord = a_texCoord;
|
|
6360
6359
|
}`), // 类如风、流等u v双变量片元渲染
|
|
6361
|
-
|
|
6360
|
+
pe(ce, "uvFragmentSchema", `
|
|
6362
6361
|
precision mediump float;
|
|
6363
6362
|
uniform sampler2D u_image;
|
|
6364
6363
|
uniform vec2 u_range_u_v;
|
|
@@ -6378,7 +6377,7 @@ de(ne, "uvFragmentSchema", `
|
|
|
6378
6377
|
|
|
6379
6378
|
gl_FragColor = color;
|
|
6380
6379
|
}`), // 类如浪、气压等单变量片元渲染
|
|
6381
|
-
|
|
6380
|
+
pe(ce, "fragmentSchema", `
|
|
6382
6381
|
precision mediump float;
|
|
6383
6382
|
uniform sampler2D u_image; // 灰度
|
|
6384
6383
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -6391,7 +6390,7 @@ de(ne, "fragmentSchema", `
|
|
|
6391
6390
|
}`);
|
|
6392
6391
|
class Me {
|
|
6393
6392
|
}
|
|
6394
|
-
|
|
6393
|
+
pe(Me, "vertexSchema", `
|
|
6395
6394
|
precision mediump float;
|
|
6396
6395
|
|
|
6397
6396
|
attribute float a_index; // 索引
|
|
@@ -6415,7 +6414,7 @@ de(Me, "vertexSchema", `
|
|
|
6415
6414
|
gl_PointSize = 1.0;
|
|
6416
6415
|
// gl_PointSize = u_point;
|
|
6417
6416
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
6418
|
-
}`),
|
|
6417
|
+
}`), pe(Me, "fragmentSchema", `
|
|
6419
6418
|
precision mediump float;
|
|
6420
6419
|
|
|
6421
6420
|
uniform sampler2D u_factor;
|
|
@@ -6437,7 +6436,7 @@ de(Me, "vertexSchema", `
|
|
|
6437
6436
|
|
|
6438
6437
|
float f = 1.0 - uv.b;
|
|
6439
6438
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
6440
|
-
}`),
|
|
6439
|
+
}`), pe(Me, "quadVertSchema", `
|
|
6441
6440
|
precision mediump float;
|
|
6442
6441
|
|
|
6443
6442
|
attribute vec2 a_pos;
|
|
@@ -6447,7 +6446,7 @@ de(Me, "vertexSchema", `
|
|
|
6447
6446
|
void main() {
|
|
6448
6447
|
v_tex_pos = a_pos;
|
|
6449
6448
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
6450
|
-
}`),
|
|
6449
|
+
}`), pe(Me, "screenFragmentSchema", `
|
|
6451
6450
|
precision mediump float;
|
|
6452
6451
|
|
|
6453
6452
|
uniform sampler2D u_screen;
|
|
@@ -6459,7 +6458,7 @@ de(Me, "vertexSchema", `
|
|
|
6459
6458
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
6460
6459
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
6461
6460
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
6462
|
-
}`),
|
|
6461
|
+
}`), pe(Me, "updateFragmentSchema", `
|
|
6463
6462
|
precision mediump float;
|
|
6464
6463
|
|
|
6465
6464
|
uniform sampler2D u_particles;
|
|
@@ -6594,7 +6593,7 @@ const ul = {
|
|
|
6594
6593
|
showCaption: !1,
|
|
6595
6594
|
source: "wind-barb-source",
|
|
6596
6595
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
6597
|
-
empty:
|
|
6596
|
+
empty: W.featureCollection([]),
|
|
6598
6597
|
right: 10,
|
|
6599
6598
|
bottom: 125,
|
|
6600
6599
|
windBarbLoaded: !1,
|
|
@@ -6639,13 +6638,13 @@ const ul = {
|
|
|
6639
6638
|
else {
|
|
6640
6639
|
this.map.addSource(this.source, { type: "geojson", data: r });
|
|
6641
6640
|
for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
|
|
6642
|
-
const
|
|
6641
|
+
const c = (this.barbs ?? [])[l] || 0, m = (this.barbs ?? [])[l + 1] || 0, f = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, d = new Image(48, 48);
|
|
6643
6642
|
d.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), d.onload = () => {
|
|
6644
6643
|
this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", d), this.map.addLayer(
|
|
6645
6644
|
{
|
|
6646
6645
|
id: f,
|
|
6647
6646
|
type: "symbol",
|
|
6648
|
-
filter: ["all", [">=", "spd",
|
|
6647
|
+
filter: ["all", [">=", "spd", c], ["<", "spd", m]],
|
|
6649
6648
|
source: this.source,
|
|
6650
6649
|
layout: {
|
|
6651
6650
|
"symbol-placement": "point",
|
|
@@ -6699,7 +6698,7 @@ const ul = {
|
|
|
6699
6698
|
function fl(t, e, o, i, a, r) {
|
|
6700
6699
|
return null;
|
|
6701
6700
|
}
|
|
6702
|
-
const yl = /* @__PURE__ */
|
|
6701
|
+
const yl = /* @__PURE__ */ X(gl, [["render", fl]]);
|
|
6703
6702
|
const bl = {
|
|
6704
6703
|
name: "IdmWindParticle",
|
|
6705
6704
|
props: {
|
|
@@ -6811,7 +6810,7 @@ const bl = {
|
|
|
6811
6810
|
[1, "rgb(91, 136, 161)"]
|
|
6812
6811
|
];
|
|
6813
6812
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6814
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6813
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
6815
6814
|
this.program = e, this.aPositionBuffer = o;
|
|
6816
6815
|
}
|
|
6817
6816
|
this.handleParticleSetup();
|
|
@@ -6884,9 +6883,9 @@ function xl(t, e, o, i, a, r) {
|
|
|
6884
6883
|
s("span", null, "40", -1),
|
|
6885
6884
|
s("span", null, "60", -1)
|
|
6886
6885
|
]), 4)
|
|
6887
|
-
])) :
|
|
6886
|
+
])) : R("", !0);
|
|
6888
6887
|
}
|
|
6889
|
-
const vl = /* @__PURE__ */
|
|
6888
|
+
const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
6890
6889
|
name: "IdmCurrent",
|
|
6891
6890
|
props: {
|
|
6892
6891
|
map: {
|
|
@@ -6918,7 +6917,7 @@ const vl = /* @__PURE__ */ Z(bl, [["render", xl]]), _l = {
|
|
|
6918
6917
|
directionLayer: "current-direction-layer",
|
|
6919
6918
|
speedLayer: "current-speed-layer",
|
|
6920
6919
|
speedLabelLayer: "current-speed-label-layer",
|
|
6921
|
-
empty:
|
|
6920
|
+
empty: W.featureCollection([])
|
|
6922
6921
|
};
|
|
6923
6922
|
},
|
|
6924
6923
|
computed: {
|
|
@@ -6991,18 +6990,18 @@ const vl = /* @__PURE__ */ Z(bl, [["render", xl]]), _l = {
|
|
|
6991
6990
|
},
|
|
6992
6991
|
this.beforeLayer
|
|
6993
6992
|
);
|
|
6994
|
-
const l = new Image(48, 48),
|
|
6995
|
-
l.src = "data:image/svg+xml;base64," + window.btoa(
|
|
6996
|
-
const
|
|
6993
|
+
const l = new Image(48, 48), 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>';
|
|
6994
|
+
l.src = "data:image/svg+xml;base64," + window.btoa(c);
|
|
6995
|
+
const m = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6997
6996
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6998
6997
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6999
6998
|
</svg>`;
|
|
7000
|
-
|
|
7001
|
-
const d = [
|
|
6999
|
+
m.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
7000
|
+
const d = [m];
|
|
7002
7001
|
let b = 0;
|
|
7003
7002
|
d.forEach((v) => {
|
|
7004
7003
|
v.onload = () => {
|
|
7005
|
-
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon",
|
|
7004
|
+
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", m), b === 1 && this.map.addLayer(
|
|
7006
7005
|
{
|
|
7007
7006
|
id: this.directionLayer,
|
|
7008
7007
|
type: "symbol",
|
|
@@ -7044,7 +7043,7 @@ const vl = /* @__PURE__ */ Z(bl, [["render", xl]]), _l = {
|
|
|
7044
7043
|
function kl(t, e, o, i, a, r) {
|
|
7045
7044
|
return null;
|
|
7046
7045
|
}
|
|
7047
|
-
const zl = /* @__PURE__ */
|
|
7046
|
+
const zl = /* @__PURE__ */ X(_l, [["render", kl]]);
|
|
7048
7047
|
const Ll = {
|
|
7049
7048
|
name: "IdmCurrentParticle",
|
|
7050
7049
|
props: {
|
|
@@ -7148,7 +7147,7 @@ const Ll = {
|
|
|
7148
7147
|
[1, "rgb(195,194,194)"]
|
|
7149
7148
|
];
|
|
7150
7149
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7151
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7150
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
7152
7151
|
this.program = e, this.aPositionBuffer = o;
|
|
7153
7152
|
}
|
|
7154
7153
|
this.handleParticleSetup();
|
|
@@ -7225,9 +7224,9 @@ function Tl(t, e, o, i, a, r) {
|
|
|
7225
7224
|
s("span", null, "2", -1),
|
|
7226
7225
|
s("span", null, "3.2", -1)
|
|
7227
7226
|
]), 4)
|
|
7228
|
-
])) :
|
|
7227
|
+
])) : R("", !0);
|
|
7229
7228
|
}
|
|
7230
|
-
const Cl = /* @__PURE__ */
|
|
7229
|
+
const Cl = /* @__PURE__ */ X(Ll, [["render", Tl]]);
|
|
7231
7230
|
const Sl = {
|
|
7232
7231
|
name: "IdmSigWave",
|
|
7233
7232
|
props: {
|
|
@@ -7324,7 +7323,7 @@ const Sl = {
|
|
|
7324
7323
|
//13
|
|
7325
7324
|
];
|
|
7326
7325
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7327
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7326
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
7328
7327
|
this.program = e, this.aPositionBuffer = o;
|
|
7329
7328
|
}
|
|
7330
7329
|
},
|
|
@@ -7353,9 +7352,9 @@ function Dl(t, e, o, i, a, r) {
|
|
|
7353
7352
|
s("span", null, "6", -1),
|
|
7354
7353
|
s("span", null, "9", -1)
|
|
7355
7354
|
]), 4)
|
|
7356
|
-
])) :
|
|
7355
|
+
])) : R("", !0);
|
|
7357
7356
|
}
|
|
7358
|
-
const Il = /* @__PURE__ */
|
|
7357
|
+
const Il = /* @__PURE__ */ X(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292"]]), Rl = {
|
|
7359
7358
|
name: "IdmSigWaveHeight",
|
|
7360
7359
|
props: {
|
|
7361
7360
|
map: {
|
|
@@ -7379,7 +7378,7 @@ const Il = /* @__PURE__ */ Z(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292
|
|
|
7379
7378
|
source: "sig-wave-height-source",
|
|
7380
7379
|
heightLayer: "sig-wave-height-layer",
|
|
7381
7380
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
7382
|
-
empty:
|
|
7381
|
+
empty: W.featureCollection([])
|
|
7383
7382
|
};
|
|
7384
7383
|
},
|
|
7385
7384
|
watch: {
|
|
@@ -7494,7 +7493,7 @@ const Il = /* @__PURE__ */ Z(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292
|
|
|
7494
7493
|
function Al(t, e, o, i, a, r) {
|
|
7495
7494
|
return null;
|
|
7496
7495
|
}
|
|
7497
|
-
const Ol = /* @__PURE__ */
|
|
7496
|
+
const Ol = /* @__PURE__ */ X(Rl, [["render", Al]]);
|
|
7498
7497
|
const Bl = {
|
|
7499
7498
|
name: "IdmSwell",
|
|
7500
7499
|
props: {
|
|
@@ -7591,7 +7590,7 @@ const Bl = {
|
|
|
7591
7590
|
//13
|
|
7592
7591
|
];
|
|
7593
7592
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7594
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7593
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
7595
7594
|
this.program = e, this.aPositionBuffer = o;
|
|
7596
7595
|
}
|
|
7597
7596
|
},
|
|
@@ -7620,9 +7619,9 @@ function El(t, e, o, i, a, r) {
|
|
|
7620
7619
|
s("span", null, "6", -1),
|
|
7621
7620
|
s("span", null, "9", -1)
|
|
7622
7621
|
]), 4)
|
|
7623
|
-
])) :
|
|
7622
|
+
])) : R("", !0);
|
|
7624
7623
|
}
|
|
7625
|
-
const Nl = /* @__PURE__ */
|
|
7624
|
+
const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068"]]), Fl = {
|
|
7626
7625
|
name: "IdmPrmsl",
|
|
7627
7626
|
props: {
|
|
7628
7627
|
map: {
|
|
@@ -7652,7 +7651,7 @@ const Nl = /* @__PURE__ */ Z(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7652
7651
|
layer: "prmsl-layer",
|
|
7653
7652
|
labelLayer: "prmsl-label-layer",
|
|
7654
7653
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
7655
|
-
empty:
|
|
7654
|
+
empty: W.featureCollection([])
|
|
7656
7655
|
};
|
|
7657
7656
|
},
|
|
7658
7657
|
watch: {
|
|
@@ -7771,7 +7770,7 @@ const Nl = /* @__PURE__ */ Z(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7771
7770
|
function Hl(t, e, o, i, a, r) {
|
|
7772
7771
|
return null;
|
|
7773
7772
|
}
|
|
7774
|
-
const Gl = /* @__PURE__ */
|
|
7773
|
+
const Gl = /* @__PURE__ */ X(Fl, [["render", Hl]]);
|
|
7775
7774
|
const Wl = {
|
|
7776
7775
|
name: "IdmIceEdge",
|
|
7777
7776
|
props: {
|
|
@@ -7861,7 +7860,7 @@ const Wl = {
|
|
|
7861
7860
|
// 100%
|
|
7862
7861
|
];
|
|
7863
7862
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7864
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7863
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
7865
7864
|
this.program = e, this.aPositionBuffer = o;
|
|
7866
7865
|
}
|
|
7867
7866
|
},
|
|
@@ -7895,9 +7894,9 @@ function Vl(t, e, o, i, a, r) {
|
|
|
7895
7894
|
s("span", null, "90", -1),
|
|
7896
7895
|
s("span", null, null, -1)
|
|
7897
7896
|
]), 4)
|
|
7898
|
-
])) :
|
|
7897
|
+
])) : R("", !0);
|
|
7899
7898
|
}
|
|
7900
|
-
const Yl = /* @__PURE__ */
|
|
7899
|
+
const Yl = /* @__PURE__ */ X(Wl, [["render", Vl]]);
|
|
7901
7900
|
const Zl = {
|
|
7902
7901
|
name: "IdmCover",
|
|
7903
7902
|
props: {
|
|
@@ -7978,7 +7977,7 @@ const Zl = {
|
|
|
7978
7977
|
// 100%
|
|
7979
7978
|
];
|
|
7980
7979
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7981
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7980
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
7982
7981
|
this.program = e, this.aPositionBuffer = o;
|
|
7983
7982
|
}
|
|
7984
7983
|
},
|
|
@@ -8006,9 +8005,9 @@ function ql(t, e, o, i, a, r) {
|
|
|
8006
8005
|
s("span", null, "80", -1),
|
|
8007
8006
|
s("span", null, "100", -1)
|
|
8008
8007
|
]), 4)
|
|
8009
|
-
])) :
|
|
8008
|
+
])) : R("", !0);
|
|
8010
8009
|
}
|
|
8011
|
-
const Kl = /* @__PURE__ */
|
|
8010
|
+
const Kl = /* @__PURE__ */ X(Zl, [["render", ql], ["__scopeId", "data-v-916b01eb"]]);
|
|
8012
8011
|
const Jl = {
|
|
8013
8012
|
name: "IdmThickness",
|
|
8014
8013
|
props: {
|
|
@@ -8096,7 +8095,7 @@ const Jl = {
|
|
|
8096
8095
|
// 4m
|
|
8097
8096
|
];
|
|
8098
8097
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8099
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8098
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
8100
8099
|
this.program = e, this.aPositionBuffer = o;
|
|
8101
8100
|
}
|
|
8102
8101
|
},
|
|
@@ -8125,9 +8124,9 @@ function $l(t, e, o, i, a, r) {
|
|
|
8125
8124
|
s("span", null, "2", -1),
|
|
8126
8125
|
s("span", null, "3", -1)
|
|
8127
8126
|
]), 4)
|
|
8128
|
-
])) :
|
|
8127
|
+
])) : R("", !0);
|
|
8129
8128
|
}
|
|
8130
|
-
const en = /* @__PURE__ */
|
|
8129
|
+
const en = /* @__PURE__ */ X(Jl, [["render", $l]]);
|
|
8131
8130
|
const tn = {
|
|
8132
8131
|
name: "IdmPrecip3h",
|
|
8133
8132
|
props: {
|
|
@@ -8216,7 +8215,7 @@ const tn = {
|
|
|
8216
8215
|
[1, "rgba(197,5,58,0.8)"]
|
|
8217
8216
|
];
|
|
8218
8217
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8219
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8218
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
8220
8219
|
this.program = e, this.aPositionBuffer = o;
|
|
8221
8220
|
}
|
|
8222
8221
|
},
|
|
@@ -8246,9 +8245,9 @@ function an(t, e, o, i, a, r) {
|
|
|
8246
8245
|
s("span", null, "20", -1),
|
|
8247
8246
|
s("span", null, "30", -1)
|
|
8248
8247
|
]), 4)
|
|
8249
|
-
])) :
|
|
8248
|
+
])) : R("", !0);
|
|
8250
8249
|
}
|
|
8251
|
-
const rn = /* @__PURE__ */
|
|
8250
|
+
const rn = /* @__PURE__ */ X(tn, [["render", an]]);
|
|
8252
8251
|
const sn = {
|
|
8253
8252
|
name: "IdmVisibility",
|
|
8254
8253
|
props: {
|
|
@@ -8327,7 +8326,7 @@ const sn = {
|
|
|
8327
8326
|
[1, "rgba(144,144,144,0)"]
|
|
8328
8327
|
];
|
|
8329
8328
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8330
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8329
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
8331
8330
|
this.program = e, this.aPositionBuffer = o;
|
|
8332
8331
|
}
|
|
8333
8332
|
},
|
|
@@ -8355,9 +8354,9 @@ function nn(t, e, o, i, a, r) {
|
|
|
8355
8354
|
s("span", null, "3", -1),
|
|
8356
8355
|
s("span", null, "9", -1)
|
|
8357
8356
|
]), 4)
|
|
8358
|
-
])) :
|
|
8357
|
+
])) : R("", !0);
|
|
8359
8358
|
}
|
|
8360
|
-
const cn = /* @__PURE__ */
|
|
8359
|
+
const cn = /* @__PURE__ */ X(sn, [["render", nn]]);
|
|
8361
8360
|
const mn = {
|
|
8362
8361
|
name: "IdmWaterTemp",
|
|
8363
8362
|
props: {
|
|
@@ -8439,7 +8438,7 @@ const mn = {
|
|
|
8439
8438
|
//
|
|
8440
8439
|
];
|
|
8441
8440
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8442
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8441
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
8443
8442
|
this.program = e, this.aPositionBuffer = o;
|
|
8444
8443
|
}
|
|
8445
8444
|
},
|
|
@@ -8467,9 +8466,9 @@ function dn(t, e, o, i, a, r) {
|
|
|
8467
8466
|
s("span", null, "30", -1),
|
|
8468
8467
|
s("span", null, "40", -1)
|
|
8469
8468
|
]), 4)
|
|
8470
|
-
])) :
|
|
8469
|
+
])) : R("", !0);
|
|
8471
8470
|
}
|
|
8472
|
-
const pn = /* @__PURE__ */
|
|
8471
|
+
const pn = /* @__PURE__ */ X(mn, [["render", dn]]);
|
|
8473
8472
|
const un = {
|
|
8474
8473
|
name: "IdmTemp",
|
|
8475
8474
|
props: {
|
|
@@ -8562,7 +8561,7 @@ const un = {
|
|
|
8562
8561
|
[1, "rgb(138, 43, 10)"]
|
|
8563
8562
|
];
|
|
8564
8563
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8565
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8564
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
8566
8565
|
this.program = e, this.aPositionBuffer = o;
|
|
8567
8566
|
}
|
|
8568
8567
|
},
|
|
@@ -8592,9 +8591,9 @@ function fn(t, e, o, i, a, r) {
|
|
|
8592
8591
|
s("span", null, "30", -1),
|
|
8593
8592
|
s("span", null, "40", -1)
|
|
8594
8593
|
]), 4)
|
|
8595
|
-
])) :
|
|
8594
|
+
])) : R("", !0);
|
|
8596
8595
|
}
|
|
8597
|
-
const yn = /* @__PURE__ */
|
|
8596
|
+
const yn = /* @__PURE__ */ X(un, [["render", fn]]);
|
|
8598
8597
|
const bn = {
|
|
8599
8598
|
name: "IdmGlLayer",
|
|
8600
8599
|
components: {
|
|
@@ -8804,14 +8803,14 @@ const bn = {
|
|
|
8804
8803
|
},
|
|
8805
8804
|
checkList: {
|
|
8806
8805
|
handler(t, e) {
|
|
8807
|
-
var o, i, a, r, l,
|
|
8808
|
-
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) : (
|
|
8806
|
+
var o, i, a, r, l, c;
|
|
8807
|
+
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 = (l = (r = this.$parent) == null ? void 0 : r.$refs) == null ? void 0 : l.idmBottomBar) == null || c.handleToggle("weather", !1);
|
|
8809
8808
|
}
|
|
8810
8809
|
},
|
|
8811
8810
|
autoActive: {
|
|
8812
8811
|
handler(t) {
|
|
8813
8812
|
var e, o, i, a, r, l;
|
|
8814
|
-
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((
|
|
8813
|
+
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) : (l = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || l.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
|
|
8815
8814
|
}
|
|
8816
8815
|
},
|
|
8817
8816
|
iceToggleValue: {
|
|
@@ -8885,11 +8884,11 @@ const bn = {
|
|
|
8885
8884
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8886
8885
|
},
|
|
8887
8886
|
async fetchWeatherLayers(t = {}) {
|
|
8888
|
-
var a, r, l,
|
|
8887
|
+
var a, r, l, c, m, f, d, b, v;
|
|
8889
8888
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8890
8889
|
let o = 0, i = 0;
|
|
8891
8890
|
if (this.map) {
|
|
8892
|
-
const
|
|
8891
|
+
const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, C = (r = this.map) == null ? void 0 : r.getBounds(), L = `${C._sw.lng},${C._sw.lat},${C._ne.lng},${C._ne.lat}`;
|
|
8893
8892
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8894
8893
|
const y = Co.WEATHER_LAYERS.find((B) => {
|
|
8895
8894
|
var D;
|
|
@@ -8901,54 +8900,54 @@ const bn = {
|
|
|
8901
8900
|
let y = this.weatherWeight;
|
|
8902
8901
|
if (y > 0) {
|
|
8903
8902
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], D = await Ae.get(
|
|
8904
|
-
`${B}/api/arc/weather/layers2/links?l=${y}&v=${this.forecastModel}&z=${
|
|
8903
|
+
`${B}/api/arc/weather/layers2/links?l=${y}&v=${this.forecastModel}&z=${z}&bbox=${L}&t=${this.realTime}`,
|
|
8905
8904
|
{
|
|
8906
8905
|
headers: {
|
|
8907
8906
|
Authorization: this.defaultMeteoToken
|
|
8908
8907
|
}
|
|
8909
8908
|
}
|
|
8910
8909
|
);
|
|
8911
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((
|
|
8912
|
-
const
|
|
8913
|
-
for (const
|
|
8914
|
-
|
|
8915
|
-
Ae.get(T
|
|
8910
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = D == null ? void 0 : D.data) == null ? void 0 : c.code) === 0) {
|
|
8911
|
+
const P = (m = D == null ? void 0 : D.data) == null ? void 0 : m.data, k = [];
|
|
8912
|
+
for (const T in P)
|
|
8913
|
+
k.push(
|
|
8914
|
+
Ae.get(P[T], {
|
|
8916
8915
|
headers: {
|
|
8917
8916
|
Authorization: this.defaultMeteoToken,
|
|
8918
|
-
key:
|
|
8917
|
+
key: T
|
|
8919
8918
|
},
|
|
8920
|
-
responseType: /\.(jpg|png)$/.test(T
|
|
8919
|
+
responseType: /\.(jpg|png)$/.test(P[T]) ? "blob" : "json"
|
|
8921
8920
|
}).catch((_) => {
|
|
8922
|
-
console.log(`[${
|
|
8921
|
+
console.log(`[${T}] fetch layer error: ${_}`);
|
|
8923
8922
|
})
|
|
8924
8923
|
);
|
|
8925
|
-
const
|
|
8926
|
-
this.weatherLayers = {},
|
|
8927
|
-
var F,
|
|
8928
|
-
const _ = ((F =
|
|
8929
|
-
let
|
|
8930
|
-
|
|
8924
|
+
const x = await Promise.all(k);
|
|
8925
|
+
this.weatherLayers = {}, x.map((T) => {
|
|
8926
|
+
var F, G, Y, Z;
|
|
8927
|
+
const _ = ((F = T == null ? void 0 : T.data) == null ? void 0 : F.data) || (T == null ? void 0 : T.data);
|
|
8928
|
+
let I = (Y = (G = T == null ? void 0 : T.config) == null ? void 0 : G.headers) == null ? void 0 : Y.key;
|
|
8929
|
+
I && _ && (this.weatherLayers[I] = {
|
|
8931
8930
|
raw: _,
|
|
8932
|
-
type: ((
|
|
8931
|
+
type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8933
8932
|
etime: D.data.etime
|
|
8934
8933
|
});
|
|
8935
8934
|
});
|
|
8936
8935
|
}
|
|
8937
8936
|
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"]) {
|
|
8938
|
-
const
|
|
8937
|
+
const P = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, k = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8939
8938
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8940
8939
|
type: "json",
|
|
8941
|
-
direction:
|
|
8942
|
-
height: { raw:
|
|
8940
|
+
direction: P,
|
|
8941
|
+
height: { raw: k },
|
|
8943
8942
|
etime: D.data.etime
|
|
8944
8943
|
};
|
|
8945
8944
|
}
|
|
8946
8945
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8947
|
-
const
|
|
8946
|
+
const P = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
|
|
8948
8947
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8949
8948
|
type: "json",
|
|
8950
|
-
direction:
|
|
8951
|
-
speed: { raw:
|
|
8949
|
+
direction: P,
|
|
8950
|
+
speed: { raw: k },
|
|
8952
8951
|
etime: D.data.etime
|
|
8953
8952
|
};
|
|
8954
8953
|
}
|
|
@@ -8971,7 +8970,7 @@ const bn = {
|
|
|
8971
8970
|
t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
|
|
8972
8971
|
},
|
|
8973
8972
|
handleRampColorInitial() {
|
|
8974
|
-
var t, e, o, i, a, r, l,
|
|
8973
|
+
var t, e, o, i, a, r, l, c, m, f, d, b;
|
|
8975
8974
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8976
8975
|
type: "canvas",
|
|
8977
8976
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -8987,9 +8986,9 @@ const bn = {
|
|
|
8987
8986
|
}
|
|
8988
8987
|
},
|
|
8989
8988
|
this.beforeLayer
|
|
8990
|
-
), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((
|
|
8989
|
+
), this.viewport.map.getSource((l = this.viewport) == null ? void 0 : l.particleSource) || this.viewport.map.addSource((c = this.viewport) == null ? void 0 : c.particleSource, {
|
|
8991
8990
|
type: "canvas",
|
|
8992
|
-
canvas: (
|
|
8991
|
+
canvas: (m = this.viewport) == null ? void 0 : m.particleCanvas,
|
|
8993
8992
|
animate: !0,
|
|
8994
8993
|
coordinates: this.viewport.getBoundLngLat()
|
|
8995
8994
|
}), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
|
|
@@ -9005,180 +9004,180 @@ const bn = {
|
|
|
9005
9004
|
);
|
|
9006
9005
|
},
|
|
9007
9006
|
handleDrawWeather4Json() {
|
|
9008
|
-
var r, l,
|
|
9007
|
+
var r, l, c, m, f, d, b;
|
|
9009
9008
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
9010
9009
|
let e = 0, o = 0;
|
|
9011
9010
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
9012
9011
|
if (i && a) {
|
|
9013
|
-
const v = q.convertToStdLng(i._sw.lng),
|
|
9012
|
+
const v = q.convertToStdLng(i._sw.lng), z = q.convertToStdLng(i._ne.lng), C = Math.floor(i._sw.lat), L = Math.ceil(i._ne.lat);
|
|
9014
9013
|
for (const y in this.weatherLayers) {
|
|
9015
9014
|
let B = !1;
|
|
9016
9015
|
if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
|
|
9017
9016
|
let D = [];
|
|
9018
9017
|
if (y === "swell") {
|
|
9019
9018
|
B = !0;
|
|
9020
|
-
const
|
|
9021
|
-
for (const
|
|
9022
|
-
if (
|
|
9023
|
-
const
|
|
9024
|
-
v >
|
|
9025
|
-
var F,
|
|
9019
|
+
const P = ((c = this.weatherLayers[y]) == null ? void 0 : c.direction) || {};
|
|
9020
|
+
for (const x in P)
|
|
9021
|
+
if (x > C && x < L && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9022
|
+
const T = P[x].lng;
|
|
9023
|
+
v > z ? T.forEach((_, I) => {
|
|
9024
|
+
var F, G, Y, Z, Q, $;
|
|
9026
9025
|
if (a < 2) {
|
|
9027
9026
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9028
|
-
const J =
|
|
9029
|
-
val: ((F =
|
|
9030
|
-
spd: (
|
|
9027
|
+
const J = W.point([_, x], {
|
|
9028
|
+
val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
|
|
9029
|
+
spd: (Y = P[x].spd) == null ? void 0 : Y[I]
|
|
9031
9030
|
});
|
|
9032
9031
|
D.push(J);
|
|
9033
9032
|
}
|
|
9034
|
-
} else if ((_ >= v && _ <= 180 || _ >= -180 && _ <=
|
|
9035
|
-
const J =
|
|
9036
|
-
val: ((
|
|
9037
|
-
spd: ($ =
|
|
9033
|
+
} else if ((_ >= v && _ <= 180 || _ >= -180 && _ <= z) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9034
|
+
const J = W.point([_, x], {
|
|
9035
|
+
val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
|
|
9036
|
+
spd: ($ = P[x].spd) == null ? void 0 : $[I]
|
|
9038
9037
|
});
|
|
9039
9038
|
D.push(J);
|
|
9040
9039
|
}
|
|
9041
|
-
}) :
|
|
9042
|
-
var F,
|
|
9040
|
+
}) : T.forEach((_, I) => {
|
|
9041
|
+
var F, G, Y, Z, Q, $;
|
|
9043
9042
|
if (v < 2) {
|
|
9044
9043
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9045
|
-
const J =
|
|
9046
|
-
val: ((F =
|
|
9047
|
-
spd: (
|
|
9044
|
+
const J = W.point([_, x], {
|
|
9045
|
+
val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
|
|
9046
|
+
spd: (Y = P[x].spd) == null ? void 0 : Y[I]
|
|
9048
9047
|
});
|
|
9049
9048
|
D.push(J);
|
|
9050
9049
|
}
|
|
9051
|
-
} else if (_ >= v && _ <=
|
|
9052
|
-
const J =
|
|
9053
|
-
val: ((
|
|
9054
|
-
spd: ($ =
|
|
9050
|
+
} else if (_ >= v && _ <= z && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9051
|
+
const J = W.point([_, x], {
|
|
9052
|
+
val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
|
|
9053
|
+
spd: ($ = P[x].spd) == null ? void 0 : $[I]
|
|
9055
9054
|
});
|
|
9056
9055
|
D.push(J);
|
|
9057
9056
|
}
|
|
9058
9057
|
});
|
|
9059
9058
|
}
|
|
9060
9059
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
9061
|
-
const
|
|
9062
|
-
if (
|
|
9063
|
-
if (!
|
|
9064
|
-
const
|
|
9065
|
-
for (const
|
|
9066
|
-
const _ =
|
|
9067
|
-
for (const
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
val: Number(
|
|
9060
|
+
const k = this.weatherLayers[y].height;
|
|
9061
|
+
if (k) {
|
|
9062
|
+
if (!k.data) {
|
|
9063
|
+
const x = [];
|
|
9064
|
+
for (const T in (m = k.raw) == null ? void 0 : m.LineString) {
|
|
9065
|
+
const _ = k.raw.LineString[T];
|
|
9066
|
+
for (const I of _)
|
|
9067
|
+
x.push(
|
|
9068
|
+
W.lineString(I, {
|
|
9069
|
+
val: Number(T)
|
|
9071
9070
|
})
|
|
9072
9071
|
);
|
|
9073
|
-
|
|
9072
|
+
k.data = W.featureCollection(x);
|
|
9074
9073
|
}
|
|
9075
9074
|
}
|
|
9076
|
-
if (
|
|
9077
|
-
const
|
|
9078
|
-
D = D.concat(
|
|
9075
|
+
if (k.data) {
|
|
9076
|
+
const x = this.handleBboxClip(k.data, i);
|
|
9077
|
+
D = D.concat(x);
|
|
9079
9078
|
}
|
|
9080
9079
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
9081
9080
|
}
|
|
9082
9081
|
} else if (y === "current") {
|
|
9083
9082
|
B = !0;
|
|
9084
|
-
const
|
|
9085
|
-
for (const
|
|
9086
|
-
if (
|
|
9087
|
-
const
|
|
9088
|
-
v >
|
|
9089
|
-
var F,
|
|
9083
|
+
const P = ((f = this.weatherLayers[y]) == null ? void 0 : f.direction) || {};
|
|
9084
|
+
for (const x in P)
|
|
9085
|
+
if (x > C && x < L && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9086
|
+
const T = P[x].lng;
|
|
9087
|
+
v > z ? T.forEach((_, I) => {
|
|
9088
|
+
var F, G, Y, Z, Q, $;
|
|
9090
9089
|
if (a < 2) {
|
|
9091
9090
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9092
|
-
const J =
|
|
9093
|
-
val: ((F =
|
|
9094
|
-
spd: (
|
|
9091
|
+
const J = W.point([_, x], {
|
|
9092
|
+
val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
|
|
9093
|
+
spd: (Y = P[x].spd) == null ? void 0 : Y[I]
|
|
9095
9094
|
});
|
|
9096
9095
|
D.push(J);
|
|
9097
9096
|
}
|
|
9098
|
-
} else if ((_ >= v && _ <= 180 || _ >= -180 && _ <=
|
|
9099
|
-
const J =
|
|
9100
|
-
val: ((
|
|
9101
|
-
spd: ($ =
|
|
9097
|
+
} else if ((_ >= v && _ <= 180 || _ >= -180 && _ <= z) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9098
|
+
const J = W.point([_, x], {
|
|
9099
|
+
val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
|
|
9100
|
+
spd: ($ = P[x].spd) == null ? void 0 : $[I]
|
|
9102
9101
|
});
|
|
9103
9102
|
D.push(J);
|
|
9104
9103
|
}
|
|
9105
|
-
}) :
|
|
9106
|
-
var F,
|
|
9104
|
+
}) : T.forEach((_, I) => {
|
|
9105
|
+
var F, G, Y, Z, Q, $;
|
|
9107
9106
|
if (v < 2) {
|
|
9108
9107
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9109
|
-
const J =
|
|
9110
|
-
val: ((F =
|
|
9111
|
-
spd: (
|
|
9108
|
+
const J = W.point([_, x], {
|
|
9109
|
+
val: ((F = P[x].val) == null ? void 0 : F[I]) || ((G = P[x].dir) == null ? void 0 : G[I]),
|
|
9110
|
+
spd: (Y = P[x].spd) == null ? void 0 : Y[I]
|
|
9112
9111
|
});
|
|
9113
9112
|
D.push(J);
|
|
9114
9113
|
}
|
|
9115
|
-
} else if (_ >= v && _ <=
|
|
9116
|
-
const J =
|
|
9117
|
-
val: ((
|
|
9118
|
-
spd: ($ =
|
|
9114
|
+
} else if (_ >= v && _ <= z && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9115
|
+
const J = W.point([_, x], {
|
|
9116
|
+
val: ((Z = P[x].val) == null ? void 0 : Z[I]) || ((Q = P[x].dir) == null ? void 0 : Q[I]),
|
|
9117
|
+
spd: ($ = P[x].spd) == null ? void 0 : $[I]
|
|
9119
9118
|
});
|
|
9120
9119
|
D.push(J);
|
|
9121
9120
|
}
|
|
9122
9121
|
});
|
|
9123
9122
|
}
|
|
9124
9123
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
9125
|
-
const
|
|
9126
|
-
if (
|
|
9127
|
-
if (!
|
|
9128
|
-
const
|
|
9129
|
-
for (const _ in (d =
|
|
9130
|
-
const
|
|
9131
|
-
for (const F of
|
|
9132
|
-
|
|
9133
|
-
|
|
9124
|
+
const k = this.weatherLayers[y].speed;
|
|
9125
|
+
if (k) {
|
|
9126
|
+
if (!k.data) {
|
|
9127
|
+
const T = [];
|
|
9128
|
+
for (const _ in (d = k.raw) == null ? void 0 : d.Polygon) {
|
|
9129
|
+
const I = k.raw.Polygon[_];
|
|
9130
|
+
for (const F of I)
|
|
9131
|
+
T.push(
|
|
9132
|
+
W.polygon(F, {
|
|
9134
9133
|
val: Number(_)
|
|
9135
9134
|
})
|
|
9136
9135
|
);
|
|
9137
9136
|
}
|
|
9138
|
-
|
|
9137
|
+
k.data = W.featureCollection(T);
|
|
9139
9138
|
}
|
|
9140
|
-
const
|
|
9141
|
-
D = D.concat(
|
|
9139
|
+
const x = a < this.zoom ? k.data.features.filter((T) => T.properties.val > 0.5) : k.data.features;
|
|
9140
|
+
D = D.concat(x), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
9142
9141
|
}
|
|
9143
9142
|
} else if (y === "wind") {
|
|
9144
9143
|
B = !0;
|
|
9145
|
-
const
|
|
9146
|
-
for (const
|
|
9147
|
-
if (
|
|
9148
|
-
const
|
|
9149
|
-
v >
|
|
9150
|
-
var
|
|
9144
|
+
const P = this.weatherLayers.wind.raw;
|
|
9145
|
+
for (const k in P)
|
|
9146
|
+
if (k > C && k < L && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9147
|
+
const x = P[k].lng;
|
|
9148
|
+
v > z ? x.forEach((T, _) => {
|
|
9149
|
+
var I, F, G, Y;
|
|
9151
9150
|
if (a < 2) {
|
|
9152
|
-
if ((
|
|
9153
|
-
const
|
|
9154
|
-
dir: ((
|
|
9155
|
-
spd:
|
|
9151
|
+
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
9152
|
+
const Z = W.point([T, k], {
|
|
9153
|
+
dir: ((I = P[k].val) == null ? void 0 : I[_]) || ((F = P[k].dir) == null ? void 0 : F[_]),
|
|
9154
|
+
spd: P[k].spd[_]
|
|
9156
9155
|
});
|
|
9157
|
-
D.push(
|
|
9156
|
+
D.push(Z);
|
|
9158
9157
|
}
|
|
9159
|
-
} else if ((
|
|
9160
|
-
const
|
|
9161
|
-
dir: ((
|
|
9162
|
-
spd:
|
|
9158
|
+
} else if ((T >= v && T <= 180 || T >= -180 && T <= z) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9159
|
+
const Z = W.point([T, k], {
|
|
9160
|
+
dir: ((G = P[k].val) == null ? void 0 : G[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
|
|
9161
|
+
spd: P[k].spd[_]
|
|
9163
9162
|
});
|
|
9164
|
-
D.push(
|
|
9163
|
+
D.push(Z);
|
|
9165
9164
|
}
|
|
9166
|
-
}) :
|
|
9167
|
-
var
|
|
9165
|
+
}) : x.forEach((T, _) => {
|
|
9166
|
+
var I, F, G, Y;
|
|
9168
9167
|
if (a < 2) {
|
|
9169
|
-
if ((
|
|
9170
|
-
const
|
|
9171
|
-
dir: ((
|
|
9172
|
-
spd:
|
|
9168
|
+
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
9169
|
+
const Z = W.point([T, k], {
|
|
9170
|
+
dir: ((I = P[k].val) == null ? void 0 : I[_]) || ((F = P[k].dir) == null ? void 0 : F[_]),
|
|
9171
|
+
spd: P[k].spd[_]
|
|
9173
9172
|
});
|
|
9174
|
-
D.push(
|
|
9173
|
+
D.push(Z);
|
|
9175
9174
|
}
|
|
9176
|
-
} else if (
|
|
9177
|
-
const
|
|
9178
|
-
dir: ((
|
|
9179
|
-
spd:
|
|
9175
|
+
} else if (T >= v && T <= z && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9176
|
+
const Z = W.point([T, k], {
|
|
9177
|
+
dir: ((G = P[k].val) == null ? void 0 : G[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
|
|
9178
|
+
spd: P[k].spd[_]
|
|
9180
9179
|
});
|
|
9181
|
-
D.push(
|
|
9180
|
+
D.push(Z);
|
|
9182
9181
|
}
|
|
9183
9182
|
});
|
|
9184
9183
|
}
|
|
@@ -9188,37 +9187,37 @@ const bn = {
|
|
|
9188
9187
|
D = this.weatherLayers[y].data;
|
|
9189
9188
|
else {
|
|
9190
9189
|
B = !0;
|
|
9191
|
-
const
|
|
9192
|
-
if (
|
|
9193
|
-
const
|
|
9194
|
-
for (const
|
|
9195
|
-
const
|
|
9196
|
-
for (const _ of
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
val: Number(
|
|
9190
|
+
const P = this.weatherLayers[y].raw;
|
|
9191
|
+
if (P) {
|
|
9192
|
+
const k = [];
|
|
9193
|
+
for (const x in P.Polygon) {
|
|
9194
|
+
const T = P.Polygon[x];
|
|
9195
|
+
for (const _ of T)
|
|
9196
|
+
k.push(
|
|
9197
|
+
W.polygon(_, {
|
|
9198
|
+
val: Number(x)
|
|
9200
9199
|
})
|
|
9201
9200
|
);
|
|
9202
9201
|
}
|
|
9203
|
-
for (const
|
|
9204
|
-
const
|
|
9205
|
-
for (const _ of
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
val: Number(
|
|
9202
|
+
for (const x in P.MultiPolygon) {
|
|
9203
|
+
const T = P.MultiPolygon[x];
|
|
9204
|
+
for (const _ of T)
|
|
9205
|
+
k.push(
|
|
9206
|
+
W.multiPolygon(_, {
|
|
9207
|
+
val: Number(x)
|
|
9209
9208
|
})
|
|
9210
9209
|
);
|
|
9211
9210
|
}
|
|
9212
|
-
for (const
|
|
9213
|
-
const
|
|
9214
|
-
for (let _ = 0; _ < ((b =
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
val: Number(
|
|
9211
|
+
for (const x in P.Point) {
|
|
9212
|
+
const T = P.Point[x];
|
|
9213
|
+
for (let _ = 0; _ < ((b = T.lng) == null ? void 0 : b.length); _++)
|
|
9214
|
+
k.push(
|
|
9215
|
+
W.point([T.lng[_], x], {
|
|
9216
|
+
val: Number(T.val[_])
|
|
9218
9217
|
})
|
|
9219
9218
|
);
|
|
9220
9219
|
}
|
|
9221
|
-
D = D.concat(
|
|
9220
|
+
D = D.concat(k);
|
|
9222
9221
|
}
|
|
9223
9222
|
}
|
|
9224
9223
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
@@ -9227,33 +9226,33 @@ const bn = {
|
|
|
9227
9226
|
D = this.weatherLayers[y].data;
|
|
9228
9227
|
else {
|
|
9229
9228
|
B = !0;
|
|
9230
|
-
const
|
|
9231
|
-
if (
|
|
9232
|
-
const
|
|
9233
|
-
for (const
|
|
9234
|
-
const
|
|
9235
|
-
for (const _ of
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
val: Number(
|
|
9229
|
+
const P = this.weatherLayers[y].raw;
|
|
9230
|
+
if (P) {
|
|
9231
|
+
const k = [];
|
|
9232
|
+
for (const x in P.LineString) {
|
|
9233
|
+
const T = P.LineString[x];
|
|
9234
|
+
for (const _ of T)
|
|
9235
|
+
k.push(
|
|
9236
|
+
W.lineString(_, {
|
|
9237
|
+
val: Number(x)
|
|
9239
9238
|
})
|
|
9240
9239
|
);
|
|
9241
9240
|
}
|
|
9242
|
-
for (const
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
val:
|
|
9247
|
-
type:
|
|
9241
|
+
for (const x in P.Point)
|
|
9242
|
+
P.Point[x].lng.forEach((T, _) => {
|
|
9243
|
+
T = q.convertToStdLng(T), k.push(
|
|
9244
|
+
W.point([T, x], {
|
|
9245
|
+
val: P.Point[x].val[_],
|
|
9246
|
+
type: P.Point[x].type[_]
|
|
9248
9247
|
})
|
|
9249
9248
|
);
|
|
9250
9249
|
});
|
|
9251
|
-
D = D.concat(
|
|
9250
|
+
D = D.concat(k);
|
|
9252
9251
|
}
|
|
9253
9252
|
}
|
|
9254
9253
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9255
9254
|
}
|
|
9256
|
-
D.length && (this.weatherLayers[y].data =
|
|
9255
|
+
D.length && (this.weatherLayers[y].data = W.featureCollection(D)), B && (this.weatherLayers[y].version = Math.random() + 1);
|
|
9257
9256
|
}
|
|
9258
9257
|
}
|
|
9259
9258
|
}
|
|
@@ -9268,11 +9267,11 @@ const bn = {
|
|
|
9268
9267
|
return t.features.forEach((r) => {
|
|
9269
9268
|
if (r.geometry.type !== "Point")
|
|
9270
9269
|
if (i > a) {
|
|
9271
|
-
let l = [i, e._sw.lat, 180, e._ne.lat],
|
|
9272
|
-
|
|
9270
|
+
let l = [i, e._sw.lat, 180, e._ne.lat], c = W.bboxClip(r, l);
|
|
9271
|
+
c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l), c.geometry.coordinates.length && o.push(c);
|
|
9273
9272
|
} else {
|
|
9274
|
-
const l = [i, e._sw.lat, a, e._ne.lat],
|
|
9275
|
-
|
|
9273
|
+
const l = [i, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l);
|
|
9274
|
+
c.geometry.coordinates.length && o.push(c);
|
|
9276
9275
|
}
|
|
9277
9276
|
else
|
|
9278
9277
|
o.push(r);
|
|
@@ -9299,14 +9298,14 @@ const bn = {
|
|
|
9299
9298
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9300
9299
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Zn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, qn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
9301
9300
|
function ic(t, e, o, i, a, r) {
|
|
9302
|
-
var
|
|
9303
|
-
const l =
|
|
9301
|
+
var se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9302
|
+
const l = w("VBtn"), c = w("VTooltip"), m = w("VCol"), f = w("VRow"), d = w("VCardText"), b = w("VDivider"), v = w("VCard"), z = w("VSwitch"), C = w("VBtnToggle"), L = w("VCardTitle"), y = w("VCardItem"), B = w("VCheckbox"), D = w("VRadio"), P = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), x = w("IdmCurrentDirection"), T = w("IdmPrmsl"), _ = w("IdmWindParticle"), I = w("IdmCurrentParticle"), F = w("IdmWave"), G = w("IdmSwell"), Y = w("IdmIceEdge"), Z = w("IdmIceCover"), Q = w("IdmIceThickness"), $ = w("IdmPrecip3h"), J = w("IdmVisibility"), le = w("IdmWaterTemp"), ne = w("IdmTemp");
|
|
9304
9303
|
return g(), S("div", wn, [
|
|
9305
9304
|
s("div", {
|
|
9306
9305
|
class: "menu-bar-box transition pa-1",
|
|
9307
9306
|
style: ee({ top: this.top + this.paddingTop + 46 + "px", right: this.right + "px" })
|
|
9308
9307
|
}, [
|
|
9309
|
-
p(
|
|
9308
|
+
p(c, {
|
|
9310
9309
|
text: t.$t("weather.weatherLayers"),
|
|
9311
9310
|
location: "left"
|
|
9312
9311
|
}, {
|
|
@@ -9333,7 +9332,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9333
9332
|
class: "menu-bar-box pa-1 rounded",
|
|
9334
9333
|
style: ee({ right: a.right + "px" })
|
|
9335
9334
|
}, [
|
|
9336
|
-
p(
|
|
9335
|
+
p(c, {
|
|
9337
9336
|
text: "Legend",
|
|
9338
9337
|
location: "left"
|
|
9339
9338
|
}, {
|
|
@@ -9370,7 +9369,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9370
9369
|
e[11] || (e[11] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9371
9370
|
p(f, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9372
9371
|
default: u(() => [
|
|
9373
|
-
(g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(
|
|
9372
|
+
(g(!0), S(xe, null, ke(a.legend.barbs, (H, oe) => (g(), A(m, {
|
|
9374
9373
|
key: H,
|
|
9375
9374
|
cols: "6",
|
|
9376
9375
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9402,7 +9401,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9402
9401
|
e[12] || (e[12] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9403
9402
|
p(f, { class: "ma-0" }, {
|
|
9404
9403
|
default: u(() => [
|
|
9405
|
-
(g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(
|
|
9404
|
+
(g(!0), S(xe, null, ke(a.legend.sigWaveHeight, (H, oe) => (g(), A(m, {
|
|
9406
9405
|
key: oe,
|
|
9407
9406
|
cols: "12",
|
|
9408
9407
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9434,7 +9433,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9434
9433
|
e[13] || (e[13] = s("div", { class: "text-body-2 font-weight-600 mb-2" }, "Current", -1)),
|
|
9435
9434
|
p(f, { class: "ma-0 ml-n4" }, {
|
|
9436
9435
|
default: u(() => [
|
|
9437
|
-
(g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(
|
|
9436
|
+
(g(!0), S(xe, null, ke(a.legend.current, (H, oe) => (g(), A(m, {
|
|
9438
9437
|
key: oe,
|
|
9439
9438
|
cols: "12",
|
|
9440
9439
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -9461,8 +9460,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
9461
9460
|
})
|
|
9462
9461
|
]),
|
|
9463
9462
|
_: 1
|
|
9464
|
-
}, 8, ["style"])) :
|
|
9465
|
-
])) :
|
|
9463
|
+
}, 8, ["style"])) : R("", !0)
|
|
9464
|
+
])) : R("", !0),
|
|
9466
9465
|
s("div", {
|
|
9467
9466
|
class: ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
9468
9467
|
style: ee(r.listStyle)
|
|
@@ -9470,7 +9469,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9470
9469
|
s("div", Sn, [
|
|
9471
9470
|
s("div", Mn, [
|
|
9472
9471
|
s("div", Dn, n(t.$t("weather.weather")), 1),
|
|
9473
|
-
p(
|
|
9472
|
+
p(z, {
|
|
9474
9473
|
modelValue: a.autoActive,
|
|
9475
9474
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
9476
9475
|
class: "small-switch",
|
|
@@ -9496,7 +9495,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9496
9495
|
]),
|
|
9497
9496
|
o.simple ? (g(), S("div", In, [
|
|
9498
9497
|
s("div", null, n(t.$t("weather.forecastModel")), 1),
|
|
9499
|
-
p(
|
|
9498
|
+
p(C, {
|
|
9500
9499
|
modelValue: a.currentModel,
|
|
9501
9500
|
"onUpdate:modelValue": e[2] || (e[2] = (H) => a.currentModel = H),
|
|
9502
9501
|
rounded: "",
|
|
@@ -9536,7 +9535,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9536
9535
|
]),
|
|
9537
9536
|
_: 1
|
|
9538
9537
|
}, 8, ["modelValue"])
|
|
9539
|
-
])) :
|
|
9538
|
+
])) : R("", !0),
|
|
9540
9539
|
s("div", {
|
|
9541
9540
|
class: ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
9542
9541
|
}, [
|
|
@@ -9547,7 +9546,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9547
9546
|
default: u(() => [
|
|
9548
9547
|
p(y, { class: "border-b-thin" }, {
|
|
9549
9548
|
default: u(() => [
|
|
9550
|
-
p(
|
|
9549
|
+
p(L, {
|
|
9551
9550
|
class: "text-subtitle-1 font-weight-medium",
|
|
9552
9551
|
style: { "font-size": "16px !important" }
|
|
9553
9552
|
}, {
|
|
@@ -9587,7 +9586,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9587
9586
|
default: u(() => [
|
|
9588
9587
|
p(y, { class: "border-b-thin" }, {
|
|
9589
9588
|
default: u(() => [
|
|
9590
|
-
p(
|
|
9589
|
+
p(L, {
|
|
9591
9590
|
class: "text-subtitle-1 font-weight-medium",
|
|
9592
9591
|
style: { "font-size": "16px !important" }
|
|
9593
9592
|
}, {
|
|
@@ -9619,7 +9618,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9619
9618
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9620
9619
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), S("div", Rn, [
|
|
9621
9620
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9622
|
-
p(
|
|
9621
|
+
p(z, {
|
|
9623
9622
|
modelValue: a.showWindParticle,
|
|
9624
9623
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
|
|
9625
9624
|
label: "",
|
|
@@ -9631,10 +9630,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
9631
9630
|
style: { "font-size": "14px" },
|
|
9632
9631
|
"hide-details": ""
|
|
9633
9632
|
}, null, 8, ["modelValue"])
|
|
9634
|
-
])) :
|
|
9633
|
+
])) : R("", !0),
|
|
9635
9634
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), S("div", An, [
|
|
9636
9635
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9637
|
-
p(
|
|
9636
|
+
p(z, {
|
|
9638
9637
|
modelValue: a.showCurrentParticle,
|
|
9639
9638
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
|
|
9640
9639
|
label: "",
|
|
@@ -9646,8 +9645,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
9646
9645
|
height: "20",
|
|
9647
9646
|
"hide-details": ""
|
|
9648
9647
|
}, null, 8, ["modelValue"])
|
|
9649
|
-
])) :
|
|
9650
|
-
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(
|
|
9648
|
+
])) : R("", !0),
|
|
9649
|
+
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(C, {
|
|
9651
9650
|
key: 2,
|
|
9652
9651
|
modelValue: a.waveToggleValue,
|
|
9653
9652
|
"onUpdate:modelValue": e[7] || (e[7] = (oe) => a.waveToggleValue = oe),
|
|
@@ -9689,8 +9688,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
9689
9688
|
}, 8, ["color", "disabled"])
|
|
9690
9689
|
]),
|
|
9691
9690
|
_: 1
|
|
9692
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
9693
|
-
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(
|
|
9691
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0),
|
|
9692
|
+
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(C, {
|
|
9694
9693
|
key: 3,
|
|
9695
9694
|
modelValue: a.iceToggleValue,
|
|
9696
9695
|
"onUpdate:modelValue": e[8] || (e[8] = (oe) => a.iceToggleValue = oe),
|
|
@@ -9732,7 +9731,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9732
9731
|
}, 8, ["color", "disabled"])
|
|
9733
9732
|
]),
|
|
9734
9733
|
_: 1
|
|
9735
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
9734
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0)
|
|
9736
9735
|
], 64))), 128))
|
|
9737
9736
|
]),
|
|
9738
9737
|
_: 1
|
|
@@ -9747,7 +9746,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9747
9746
|
default: u(() => [
|
|
9748
9747
|
p(y, { class: "border-b-thin" }, {
|
|
9749
9748
|
default: u(() => [
|
|
9750
|
-
p(
|
|
9749
|
+
p(L, {
|
|
9751
9750
|
class: "text-subtitle-1 font-weight-medium",
|
|
9752
9751
|
style: { "font-size": "16px !important" }
|
|
9753
9752
|
}, {
|
|
@@ -9761,14 +9760,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9761
9760
|
}),
|
|
9762
9761
|
p(d, { class: "" }, {
|
|
9763
9762
|
default: u(() => {
|
|
9764
|
-
var H, oe, He, Oe, ge, Re,
|
|
9763
|
+
var H, oe, He, Oe, ge, Re, U, fe, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9765
9764
|
return [
|
|
9766
9765
|
s("div", On, n(t.$t("weather.atmospheric")), 1),
|
|
9767
|
-
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (ge = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((re = (ae = (fe = (
|
|
9766
|
+
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (ge = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((re = (ae = (fe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + n(t.$t("units.days")), 1),
|
|
9768
9767
|
s("div", jn, n(t.$t("weather.source")) + ": NOAA", 1),
|
|
9769
9768
|
s("div", En, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((E = (We = (Ge = (je = a.models) == null ? void 0 : je.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9770
9769
|
s("div", Nn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((Ne = (Ee = (Be = (we = a.models) == null ? void 0 : we.weather) == null ? void 0 : Be.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
9771
|
-
s("div", Fn, n((
|
|
9770
|
+
s("div", Fn, n((V = (Ue = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : V.source) + " " + n((Ke = (qe = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Ke.spatialResolution) + n(t.$t("units.km")) + " " + n(($e = (Qe = (Je = (Le = a.models) == null ? void 0 : Le.weather) == null ? void 0 : Je.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : $e.days) + n(t.$t("units.days")), 1),
|
|
9772
9771
|
s("div", Hn, n(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9773
9772
|
s("div", Gn, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
9774
9773
|
s("div", Wn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
@@ -9797,61 +9796,61 @@ function ic(t, e, o, i, a, r) {
|
|
|
9797
9796
|
})
|
|
9798
9797
|
], 2)
|
|
9799
9798
|
], 6),
|
|
9800
|
-
o.map ? (g(), A(
|
|
9799
|
+
o.map ? (g(), A(P, j({
|
|
9801
9800
|
key: 1,
|
|
9802
9801
|
ref: "windBarb",
|
|
9803
9802
|
map: o.map,
|
|
9804
9803
|
"map-feather": o.mapFeather,
|
|
9805
9804
|
"before-layer": "empty-layer-3",
|
|
9806
|
-
wind: (
|
|
9805
|
+
wind: (se = a.weatherLayers) == null ? void 0 : se.wind,
|
|
9807
9806
|
"menu-toggle": o.menuToggle
|
|
9808
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
9809
|
-
o.map ? (g(), A(
|
|
9807
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
|
|
9808
|
+
o.map ? (g(), A(k, j({
|
|
9810
9809
|
key: 2,
|
|
9811
9810
|
map: o.map,
|
|
9812
9811
|
"before-layer": "empty-layer-2",
|
|
9813
9812
|
"sig-wave-height": (ie = a.weatherLayers) == null ? void 0 : ie["sig-wave-height"],
|
|
9814
9813
|
"menu-toggle": o.menuToggle,
|
|
9815
9814
|
"active-weather-layers": a.activeWeatherLayers
|
|
9816
|
-
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
9817
|
-
o.map ? (g(), A(
|
|
9815
|
+
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
9816
|
+
o.map ? (g(), A(x, j({
|
|
9818
9817
|
key: 3,
|
|
9819
9818
|
map: o.map,
|
|
9820
9819
|
"map-feather": o.mapFeather,
|
|
9821
9820
|
"before-layer": "empty-layer-2",
|
|
9822
|
-
current: (
|
|
9821
|
+
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
9823
9822
|
"menu-toggle": o.menuToggle
|
|
9824
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
9825
|
-
o.map ? (g(), A(
|
|
9823
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
|
|
9824
|
+
o.map ? (g(), A(T, j({
|
|
9826
9825
|
key: 4,
|
|
9827
9826
|
map: o.map,
|
|
9828
9827
|
"before-layer": "empty-layer-2",
|
|
9829
9828
|
prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
|
|
9830
9829
|
"menu-toggle": o.menuToggle,
|
|
9831
9830
|
"active-weather-layers": a.activeWeatherLayers
|
|
9832
|
-
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) :
|
|
9831
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
|
|
9833
9832
|
o.map ? (g(), A(_, j({
|
|
9834
9833
|
key: 5,
|
|
9835
9834
|
viewport: a.viewport,
|
|
9836
|
-
factor: (
|
|
9835
|
+
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
9837
9836
|
"menu-toggle": o.menuToggle,
|
|
9838
9837
|
simple: o.simple
|
|
9839
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9840
|
-
o.map ? (g(), A(
|
|
9838
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9839
|
+
o.map ? (g(), A(I, j({
|
|
9841
9840
|
key: 6,
|
|
9842
9841
|
viewport: a.viewport,
|
|
9843
|
-
factor: (
|
|
9842
|
+
factor: (de = a.weatherLayers) == null ? void 0 : de["current-particle"],
|
|
9844
9843
|
"menu-toggle": o.menuToggle,
|
|
9845
9844
|
simple: o.simple
|
|
9846
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9845
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9847
9846
|
o.map ? (g(), A(F, j({
|
|
9848
9847
|
key: 7,
|
|
9849
9848
|
viewport: a.viewport,
|
|
9850
9849
|
factor: (O = a.weatherLayers) == null ? void 0 : O["sig-wave"],
|
|
9851
9850
|
"menu-toggle": o.menuToggle,
|
|
9852
9851
|
simple: o.simple
|
|
9853
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9854
|
-
o.map ? (g(), A(
|
|
9852
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9853
|
+
o.map ? (g(), A(G, j({
|
|
9855
9854
|
key: 8,
|
|
9856
9855
|
map: o.map,
|
|
9857
9856
|
viewport: a.viewport,
|
|
@@ -9859,59 +9858,59 @@ function ic(t, e, o, i, a, r) {
|
|
|
9859
9858
|
"menu-toggle": o.menuToggle,
|
|
9860
9859
|
"active-weather-layers": a.activeWeatherLayers,
|
|
9861
9860
|
simple: o.simple
|
|
9862
|
-
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) :
|
|
9863
|
-
o.map ? (g(), A(
|
|
9861
|
+
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) : R("", !0),
|
|
9862
|
+
o.map ? (g(), A(Y, j({
|
|
9864
9863
|
key: 9,
|
|
9865
9864
|
viewport: a.viewport,
|
|
9866
9865
|
factor: (be = a.weatherLayers) == null ? void 0 : be["ice-edge"],
|
|
9867
9866
|
"menu-toggle": o.menuToggle,
|
|
9868
9867
|
simple: o.simple
|
|
9869
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9870
|
-
o.map ? (g(), A(
|
|
9868
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9869
|
+
o.map ? (g(), A(Z, j({
|
|
9871
9870
|
key: 10,
|
|
9872
9871
|
viewport: a.viewport,
|
|
9873
9872
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-cover"],
|
|
9874
9873
|
"menu-toggle": o.menuToggle,
|
|
9875
9874
|
simple: o.simple
|
|
9876
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9875
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9877
9876
|
o.map ? (g(), A(Q, j({
|
|
9878
9877
|
key: 11,
|
|
9879
9878
|
viewport: a.viewport,
|
|
9880
9879
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
9881
9880
|
"menu-toggle": o.menuToggle,
|
|
9882
9881
|
simple: o.simple
|
|
9883
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9882
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9884
9883
|
o.map ? (g(), A($, j({
|
|
9885
9884
|
key: 12,
|
|
9886
9885
|
viewport: a.viewport,
|
|
9887
9886
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
|
|
9888
9887
|
"menu-toggle": o.menuToggle,
|
|
9889
9888
|
simple: o.simple
|
|
9890
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9889
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9891
9890
|
o.map ? (g(), A(J, j({
|
|
9892
9891
|
key: 13,
|
|
9893
9892
|
viewport: a.viewport,
|
|
9894
9893
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.visibility,
|
|
9895
9894
|
"menu-toggle": o.menuToggle,
|
|
9896
9895
|
simple: o.simple
|
|
9897
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9898
|
-
o.map ? (g(), A(
|
|
9896
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9897
|
+
o.map ? (g(), A(le, j({
|
|
9899
9898
|
key: 14,
|
|
9900
9899
|
viewport: a.viewport,
|
|
9901
9900
|
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie["water-temp"],
|
|
9902
9901
|
"menu-toggle": o.menuToggle,
|
|
9903
9902
|
simple: o.simple
|
|
9904
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9905
|
-
o.map ? (g(), A(
|
|
9903
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0),
|
|
9904
|
+
o.map ? (g(), A(ne, j({
|
|
9906
9905
|
key: 15,
|
|
9907
9906
|
viewport: a.viewport,
|
|
9908
9907
|
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
9909
9908
|
"menu-toggle": o.menuToggle,
|
|
9910
9909
|
simple: o.simple
|
|
9911
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9910
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : R("", !0)
|
|
9912
9911
|
]);
|
|
9913
9912
|
}
|
|
9914
|
-
const rc = /* @__PURE__ */
|
|
9913
|
+
const rc = /* @__PURE__ */ X(bn, [["render", ic]]), Lo = [
|
|
9915
9914
|
{
|
|
9916
9915
|
rank: 0,
|
|
9917
9916
|
name: "Best Match",
|
|
@@ -10227,21 +10226,21 @@ class Ya {
|
|
|
10227
10226
|
var o, i;
|
|
10228
10227
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
10229
10228
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10230
|
-
for (const
|
|
10231
|
-
let
|
|
10232
|
-
var b, v,
|
|
10233
|
-
return ((b = d.models) == null ? void 0 : b.includes(
|
|
10229
|
+
for (const c of a) {
|
|
10230
|
+
let m = Lo.find((d) => {
|
|
10231
|
+
var b, v, z;
|
|
10232
|
+
return ((b = d.models) == null ? void 0 : b.includes(c)) || ((v = d.alias) == null ? void 0 : v.toLowerCase()) === c || ((z = d.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
10234
10233
|
}), f = Po.find((d) => {
|
|
10235
|
-
var b, v,
|
|
10236
|
-
return ((b = d.models) == null ? void 0 : b.includes(
|
|
10234
|
+
var b, v, z;
|
|
10235
|
+
return ((b = d.models) == null ? void 0 : b.includes(c)) || ((v = d.alias) == null ? void 0 : v.toLowerCase()) === c || ((z = d.name) == null ? void 0 : z.toLowerCase()) === c;
|
|
10237
10236
|
});
|
|
10238
|
-
|
|
10237
|
+
m = m || Lo.find((d) => {
|
|
10239
10238
|
var b, v;
|
|
10240
10239
|
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((v = f == null ? void 0 : f.alias) == null ? void 0 : v.toLowerCase());
|
|
10241
10240
|
}), f = f || Po.find((d) => {
|
|
10242
10241
|
var b, v;
|
|
10243
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((v =
|
|
10244
|
-
}),
|
|
10242
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((v = m == null ? void 0 : m.alias) == null ? void 0 : v.toLowerCase());
|
|
10243
|
+
}), m = m || Lo[0], f = f || Po[0], r.push((o = m.models) != null && o.includes(c) ? c : m.model), l.push((i = f.models) != null && i.includes(c) ? c : f.model);
|
|
10245
10244
|
}
|
|
10246
10245
|
return {
|
|
10247
10246
|
weatherModels: r.join(","),
|
|
@@ -10258,46 +10257,46 @@ class Ya {
|
|
|
10258
10257
|
}), a;
|
|
10259
10258
|
}
|
|
10260
10259
|
static pickHourly(e, o) {
|
|
10261
|
-
var i, a, r, l,
|
|
10262
|
-
const
|
|
10263
|
-
if (
|
|
10264
|
-
const E =
|
|
10260
|
+
var i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re;
|
|
10261
|
+
const U = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ge = re.clone().add((d = (f = (m = fe == null ? void 0 : fe[0]) == null ? void 0 : m.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
|
|
10262
|
+
if (U.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10263
|
+
const E = U.utc().diff(je, "h", !1);
|
|
10265
10264
|
let we, Be;
|
|
10266
10265
|
if (fe) {
|
|
10267
10266
|
let Ee = 0, Ne = 0, N = 0;
|
|
10268
10267
|
for (const Ue of fe) {
|
|
10269
|
-
const
|
|
10268
|
+
const V = Ue == null ? void 0 : Ue.hourly;
|
|
10270
10269
|
for (let Le = E - (E - 1) % 3; Le <= E; Le++)
|
|
10271
|
-
Ee += (b =
|
|
10270
|
+
Ee += (b = V == null ? void 0 : V.precipitation) == null ? void 0 : b.at(Le);
|
|
10272
10271
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10273
|
-
Ne += (v =
|
|
10272
|
+
Ne += (v = V == null ? void 0 : V.precipitation) == null ? void 0 : v.at(Le);
|
|
10274
10273
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10275
|
-
N += (
|
|
10274
|
+
N += (z = V == null ? void 0 : V.precipitation) == null ? void 0 : z.at(Le);
|
|
10276
10275
|
we = {
|
|
10277
|
-
temp: (
|
|
10278
|
-
apparentTemp: (
|
|
10279
|
-
rh: (y =
|
|
10280
|
-
dp: (B =
|
|
10276
|
+
temp: (C = V == null ? void 0 : V.temperature_2m) == null ? void 0 : C.at(E),
|
|
10277
|
+
apparentTemp: (L = V == null ? void 0 : V.apparent_temperature) == null ? void 0 : L.at(E),
|
|
10278
|
+
rh: (y = V == null ? void 0 : V.relative_humidity_2m) == null ? void 0 : y.at(E),
|
|
10279
|
+
dp: (B = V == null ? void 0 : V.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10281
10280
|
precip: {
|
|
10282
|
-
probability: (D =
|
|
10283
|
-
sum: (
|
|
10284
|
-
sum1Hours: (
|
|
10281
|
+
probability: (D = V == null ? void 0 : V.precipitation_probability) == null ? void 0 : D.at(E),
|
|
10282
|
+
sum: (P = V == null ? void 0 : V.precipitation) == null ? void 0 : P.at(E),
|
|
10283
|
+
sum1Hours: (k = V == null ? void 0 : V.precipitation) == null ? void 0 : k.at(E),
|
|
10285
10284
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10286
10285
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
10287
10286
|
sum12Hours: Math.round(N * 100) / 100
|
|
10288
10287
|
},
|
|
10289
|
-
pmsl: (
|
|
10290
|
-
psurf: (
|
|
10291
|
-
code: (_ =
|
|
10292
|
-
visibility: this.m2nm((
|
|
10288
|
+
pmsl: (x = V == null ? void 0 : V.pressure_msl) == null ? void 0 : x.at(E),
|
|
10289
|
+
psurf: (T = V == null ? void 0 : V.surface_pressure) == null ? void 0 : T.at(E),
|
|
10290
|
+
code: (_ = V == null ? void 0 : V.weather_code) == null ? void 0 : _.at(E),
|
|
10291
|
+
visibility: this.m2nm((I = V == null ? void 0 : V.visibility) == null ? void 0 : I.at(E)),
|
|
10293
10292
|
wind: {
|
|
10294
|
-
speed: (F =
|
|
10295
|
-
kts: (
|
|
10296
|
-
degree: (
|
|
10297
|
-
bearing: ((
|
|
10298
|
-
gusts: ($ =
|
|
10293
|
+
speed: (F = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
10294
|
+
kts: (G = V == null ? void 0 : V.wind_speed_10m) == null ? void 0 : G.at(E),
|
|
10295
|
+
degree: (Y = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : Y.at(E),
|
|
10296
|
+
bearing: ((Z = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((Q = V == null ? void 0 : V.wind_direction_10m) == null ? void 0 : Q.at(E)) + 180) % 360 : null,
|
|
10297
|
+
gusts: ($ = V == null ? void 0 : V.wind_gusts_10m) == null ? void 0 : $.at(E)
|
|
10299
10298
|
},
|
|
10300
|
-
isDay: (J =
|
|
10299
|
+
isDay: (J = V == null ? void 0 : V.is_day) == null ? void 0 : J.at(E)
|
|
10301
10300
|
};
|
|
10302
10301
|
const { name: Xe, url: qe, bg: Ke } = this.parseWeatherCode(we.code, we.isDay);
|
|
10303
10302
|
we.name = Xe, we.url = qe, we.bg = Ke, we.wind.scale = this.beaufort(this.kts2ms(we.wind.kts)), we.wind.direction = this.degree2Direction(we.wind.degree), We.push({
|
|
@@ -10314,15 +10313,15 @@ class Ya {
|
|
|
10314
10313
|
Be = {
|
|
10315
10314
|
wave: {
|
|
10316
10315
|
sig: {
|
|
10317
|
-
height: (
|
|
10318
|
-
degree: (
|
|
10319
|
-
bearing: ((
|
|
10320
|
-
period: (
|
|
10316
|
+
height: (le = N == null ? void 0 : N.wave_height) == null ? void 0 : le.at(E),
|
|
10317
|
+
degree: (ne = N == null ? void 0 : N.wave_direction) == null ? void 0 : ne.at(E),
|
|
10318
|
+
bearing: ((se = N == null ? void 0 : N.wave_direction) == null ? void 0 : se.at(E)) !== null ? (((ie = N == null ? void 0 : N.wave_direction) == null ? void 0 : ie.at(E)) + 180) % 360 : null,
|
|
10319
|
+
period: (me = N == null ? void 0 : N.wave_period) == null ? void 0 : me.at(E)
|
|
10321
10320
|
},
|
|
10322
10321
|
swell: {
|
|
10323
10322
|
height: (ue = N == null ? void 0 : N.swell_wave_height) == null ? void 0 : ue.at(E),
|
|
10324
|
-
degree: (
|
|
10325
|
-
bearing: ((
|
|
10323
|
+
degree: (he = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : he.at(E),
|
|
10324
|
+
bearing: ((de = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : de.at(E)) !== null ? (((O = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : O.at(E)) + 180) % 360 : null,
|
|
10326
10325
|
period: (te = N == null ? void 0 : N.swell_wave_period) == null ? void 0 : te.at(E),
|
|
10327
10326
|
peakPeriod: (be = N == null ? void 0 : N.swell_wave_peak_period) == null ? void 0 : be.at(E)
|
|
10328
10327
|
},
|
|
@@ -10349,16 +10348,16 @@ class Ya {
|
|
|
10349
10348
|
return We;
|
|
10350
10349
|
}
|
|
10351
10350
|
static toLegacy(e) {
|
|
10352
|
-
var o, i, a, r, l,
|
|
10351
|
+
var o, i, a, r, l, c, m, f, d, b;
|
|
10353
10352
|
return {
|
|
10354
10353
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
10355
10354
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
10356
10355
|
temp: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.temp,
|
|
10357
10356
|
prmsl: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.pmsl,
|
|
10358
10357
|
gusts: {
|
|
10359
|
-
kts: (
|
|
10358
|
+
kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
|
|
10360
10359
|
},
|
|
10361
|
-
precip: (
|
|
10360
|
+
precip: (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip,
|
|
10362
10361
|
code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
|
|
10363
10362
|
name: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.name,
|
|
10364
10363
|
url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
|
|
@@ -10371,49 +10370,49 @@ class Ya {
|
|
|
10371
10370
|
};
|
|
10372
10371
|
}
|
|
10373
10372
|
static pickDaily(e, o) {
|
|
10374
|
-
var i, a, r, l,
|
|
10375
|
-
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((
|
|
10373
|
+
var i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e;
|
|
10374
|
+
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((m = (c = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : m.at(-1)), Oe = [];
|
|
10376
10375
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10377
10376
|
let ge, Re;
|
|
10378
|
-
const
|
|
10377
|
+
const U = Ie.diff(oe, "d", !1);
|
|
10379
10378
|
if (Ce)
|
|
10380
10379
|
for (const fe of Ce) {
|
|
10381
10380
|
const ae = fe.daily;
|
|
10382
10381
|
ge = {
|
|
10383
|
-
code: (f = ae.weather_code) == null ? void 0 : f.at(
|
|
10382
|
+
code: (f = ae.weather_code) == null ? void 0 : f.at(U),
|
|
10384
10383
|
temp: {
|
|
10385
|
-
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(
|
|
10386
|
-
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(
|
|
10387
|
-
mean: (v = ae.temperature_2m_mean) == null ? void 0 : v.at(
|
|
10384
|
+
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(U),
|
|
10385
|
+
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(U),
|
|
10386
|
+
mean: (v = ae.temperature_2m_mean) == null ? void 0 : v.at(U)
|
|
10388
10387
|
},
|
|
10389
10388
|
apparentTemp: {
|
|
10390
|
-
max: (
|
|
10391
|
-
min: (
|
|
10389
|
+
max: (z = ae.apparent_temperature_max) == null ? void 0 : z.at(U),
|
|
10390
|
+
min: (C = ae.apparent_temperature_min) == null ? void 0 : C.at(U)
|
|
10392
10391
|
},
|
|
10393
10392
|
precip: {
|
|
10394
|
-
sum: (
|
|
10395
|
-
rainSum: (y = ae.rain_sum) == null ? void 0 : y.at(
|
|
10396
|
-
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(
|
|
10397
|
-
showersSum: (D = ae.showers_sum) == null ? void 0 : D.at(
|
|
10398
|
-
hours: (
|
|
10399
|
-
probability: (
|
|
10393
|
+
sum: (L = ae.precipitation_sum) == null ? void 0 : L.at(U),
|
|
10394
|
+
rainSum: (y = ae.rain_sum) == null ? void 0 : y.at(U),
|
|
10395
|
+
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(U),
|
|
10396
|
+
showersSum: (D = ae.showers_sum) == null ? void 0 : D.at(U),
|
|
10397
|
+
hours: (P = ae.precipitation_hours) == null ? void 0 : P.at(U),
|
|
10398
|
+
probability: (k = ae.precipitation_probability_max) == null ? void 0 : k.at(U)
|
|
10400
10399
|
},
|
|
10401
10400
|
rh: {
|
|
10402
|
-
max: (
|
|
10403
|
-
min: (
|
|
10404
|
-
mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(
|
|
10401
|
+
max: (x = ae.relative_humidity_2m_max) == null ? void 0 : x.at(U),
|
|
10402
|
+
min: (T = ae.relative_humidity_2m_min) == null ? void 0 : T.at(U),
|
|
10403
|
+
mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(U)
|
|
10405
10404
|
},
|
|
10406
10405
|
wind: {
|
|
10407
|
-
speed: (
|
|
10408
|
-
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(
|
|
10409
|
-
degree: (
|
|
10410
|
-
gusts: (
|
|
10411
|
-
bearing: ((
|
|
10406
|
+
speed: (I = ae.wind_speed_10m_max) == null ? void 0 : I.at(U),
|
|
10407
|
+
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(U),
|
|
10408
|
+
degree: (G = ae.wind_direction_10m_dominant) == null ? void 0 : G.at(U),
|
|
10409
|
+
gusts: (Y = ae.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
|
|
10410
|
+
bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((Q = ae.wind_direction_10m_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
|
|
10412
10411
|
}
|
|
10413
10412
|
};
|
|
10414
10413
|
const { name: re, url: je, bg: Ge } = this.parseWeatherCode(ge.code, !0);
|
|
10415
10414
|
ge.name = re, ge.url = je, ge.bg = Ge, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Oe.push({
|
|
10416
|
-
utc: oe.add(
|
|
10415
|
+
utc: oe.add(U, "d").utc().format(),
|
|
10417
10416
|
model: fe.model,
|
|
10418
10417
|
weather: { ...ge }
|
|
10419
10418
|
});
|
|
@@ -10425,25 +10424,25 @@ class Ya {
|
|
|
10425
10424
|
Re = {
|
|
10426
10425
|
wave: {
|
|
10427
10426
|
sig: {
|
|
10428
|
-
height: ($ = re.wave_height_max) == null ? void 0 : $.at(
|
|
10429
|
-
degree: (J = re.wave_direction_dominant) == null ? void 0 : J.at(
|
|
10430
|
-
period: (
|
|
10431
|
-
bearing: ((
|
|
10427
|
+
height: ($ = re.wave_height_max) == null ? void 0 : $.at(U),
|
|
10428
|
+
degree: (J = re.wave_direction_dominant) == null ? void 0 : J.at(U),
|
|
10429
|
+
period: (le = re.wave_period_max) == null ? void 0 : le.at(U),
|
|
10430
|
+
bearing: ((ne = re.wave_direction_dominant) == null ? void 0 : ne.at(U)) !== null ? (((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) + 180) % 360 : null
|
|
10432
10431
|
},
|
|
10433
10432
|
swell: {
|
|
10434
|
-
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(
|
|
10435
|
-
degree: (
|
|
10436
|
-
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(
|
|
10437
|
-
peakPeriod: (
|
|
10433
|
+
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(U),
|
|
10434
|
+
degree: (me = re.swell_wave_direction_dominant) == null ? void 0 : me.at(U),
|
|
10435
|
+
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(U),
|
|
10436
|
+
peakPeriod: (he = re.swell_wave_peak_period_max) == null ? void 0 : he.at(U),
|
|
10438
10437
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
10439
|
-
bearing: ((
|
|
10438
|
+
bearing: ((de = re.swell_wave_direction_dominant) == null ? void 0 : de.at(U)) !== null ? ((O = re.swell_wave_direction_dominant) == null ? void 0 : O.at(U)) % 360 : null
|
|
10440
10439
|
},
|
|
10441
10440
|
wd: {
|
|
10442
|
-
height: (te = re.wind_wave_height_max) == null ? void 0 : te.at(
|
|
10443
|
-
degree: (be = re.wind_wave_direction_dominant) == null ? void 0 : be.at(
|
|
10444
|
-
period: (ve = re.wind_wave_period_max) == null ? void 0 : ve.at(
|
|
10445
|
-
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(
|
|
10446
|
-
bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(
|
|
10441
|
+
height: (te = re.wind_wave_height_max) == null ? void 0 : te.at(U),
|
|
10442
|
+
degree: (be = re.wind_wave_direction_dominant) == null ? void 0 : be.at(U),
|
|
10443
|
+
period: (ve = re.wind_wave_period_max) == null ? void 0 : ve.at(U),
|
|
10444
|
+
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(U),
|
|
10445
|
+
bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(U)) !== null ? (((_e = re.wind_wave_direction_dominant) == null ? void 0 : _e.at(U)) + 180) % 360 : null
|
|
10447
10446
|
}
|
|
10448
10447
|
}
|
|
10449
10448
|
}, Re.wave = this.parseWave(Re.wave, ge == null ? void 0 : ge.wind), Object.assign(Oe[fe], Re), fe++;
|
|
@@ -10934,7 +10933,7 @@ const sc = {
|
|
|
10934
10933
|
showTropicalsInfo: !1,
|
|
10935
10934
|
activeTropicals: void 0,
|
|
10936
10935
|
activeTropicalsMarker: void 0,
|
|
10937
|
-
empty:
|
|
10936
|
+
empty: W.featureCollection([]),
|
|
10938
10937
|
showLegend: !1,
|
|
10939
10938
|
showHoverPoint: !1,
|
|
10940
10939
|
hoverPoint: void 0,
|
|
@@ -10973,8 +10972,8 @@ const sc = {
|
|
|
10973
10972
|
return (t, e, o = "MM-DD HH:mm") => {
|
|
10974
10973
|
var i, a;
|
|
10975
10974
|
if (t) {
|
|
10976
|
-
const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o),
|
|
10977
|
-
return l + " " +
|
|
10975
|
+
const r = e || 0, l = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
|
|
10976
|
+
return l + " " + c;
|
|
10978
10977
|
}
|
|
10979
10978
|
return "-";
|
|
10980
10979
|
};
|
|
@@ -11050,15 +11049,15 @@ const sc = {
|
|
|
11050
11049
|
async fetchTropicals() {
|
|
11051
11050
|
var a, r, l;
|
|
11052
11051
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
11053
|
-
let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((
|
|
11052
|
+
let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
11054
11053
|
if (i > 0) {
|
|
11055
|
-
const
|
|
11054
|
+
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], m = await Ae.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
11056
11055
|
headers: {
|
|
11057
11056
|
Authorization: this.defaultMeteoToken
|
|
11058
11057
|
}
|
|
11059
11058
|
});
|
|
11060
|
-
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r =
|
|
11061
|
-
const f = (l =
|
|
11059
|
+
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = m == null ? void 0 : m.data) == null ? void 0 : r.code) === 0) {
|
|
11060
|
+
const f = (l = m == null ? void 0 : m.data) == null ? void 0 : l.data;
|
|
11062
11061
|
await Ae.get(f.tropicals, {
|
|
11063
11062
|
headers: {
|
|
11064
11063
|
Authorization: this.defaultMeteoToken,
|
|
@@ -11066,14 +11065,14 @@ const sc = {
|
|
|
11066
11065
|
},
|
|
11067
11066
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11068
11067
|
}).then((d) => {
|
|
11069
|
-
var
|
|
11070
|
-
const b = Va.convert2Geojson(((
|
|
11071
|
-
((
|
|
11068
|
+
var z, C, L;
|
|
11069
|
+
const b = Va.convert2Geojson(((z = d == null ? void 0 : d.data) == null ? void 0 : z.data) || (d == null ? void 0 : d.data));
|
|
11070
|
+
((L = (C = d == null ? void 0 : d.config) == null ? void 0 : C.headers) == null ? void 0 : L.key) && b && (this.tropicals = {
|
|
11072
11071
|
data: b,
|
|
11073
11072
|
active: !0,
|
|
11074
11073
|
cached: !0,
|
|
11075
11074
|
type: "json",
|
|
11076
|
-
etime:
|
|
11075
|
+
etime: m.data.etime,
|
|
11077
11076
|
version: Math.random() + 1
|
|
11078
11077
|
});
|
|
11079
11078
|
}).catch((d) => {
|
|
@@ -11086,43 +11085,43 @@ const sc = {
|
|
|
11086
11085
|
handleRefresh() {
|
|
11087
11086
|
var e, o;
|
|
11088
11087
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11089
|
-
var a, r, l,
|
|
11088
|
+
var a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _;
|
|
11090
11089
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
11091
|
-
let
|
|
11090
|
+
let I = "";
|
|
11092
11091
|
switch (!0) {
|
|
11093
11092
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
11094
|
-
|
|
11093
|
+
I = "TD";
|
|
11095
11094
|
break;
|
|
11096
|
-
case (((
|
|
11097
|
-
|
|
11095
|
+
case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((m = i.properties) == null ? void 0 : m.kts) < 47):
|
|
11096
|
+
I = "TS";
|
|
11098
11097
|
break;
|
|
11099
11098
|
case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
|
|
11100
|
-
|
|
11099
|
+
I = "STS";
|
|
11101
11100
|
break;
|
|
11102
11101
|
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((v = i.properties) == null ? void 0 : v.kts) < 79):
|
|
11103
|
-
|
|
11102
|
+
I = "TY";
|
|
11104
11103
|
break;
|
|
11105
|
-
case (((
|
|
11106
|
-
|
|
11104
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) < 94 || ((C = i.properties) == null ? void 0 : C.kts) < 94):
|
|
11105
|
+
I = "STY";
|
|
11107
11106
|
break;
|
|
11108
|
-
case (((
|
|
11109
|
-
|
|
11107
|
+
case (((L = i.properties.wind) == null ? void 0 : L.kts) >= 94 || ((y = i.properties) == null ? void 0 : y.kts) >= 94):
|
|
11108
|
+
I = "Super TY";
|
|
11110
11109
|
break;
|
|
11111
11110
|
default:
|
|
11112
|
-
|
|
11111
|
+
I = "Super TY";
|
|
11113
11112
|
break;
|
|
11114
11113
|
}
|
|
11115
|
-
i.properties.level =
|
|
11114
|
+
i.properties.level = I;
|
|
11116
11115
|
}
|
|
11117
|
-
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (
|
|
11116
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((D = i.properties) != null && D.important) && (i.properties.format = (k = (P = M(i.properties.date)) == null ? void 0 : P.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((x = i.geometry) == null ? void 0 : x.type) === "Point" && (i.properties.Name = ((_ = (T = i.properties.name) == null ? void 0 : T.trim()) == null ? void 0 : _.replace(/^./, (I) => I.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11118
11117
|
}), this.handleInit();
|
|
11119
11118
|
},
|
|
11120
11119
|
handleInit() {
|
|
11121
|
-
var t, e, o, i, a, r, l,
|
|
11122
|
-
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (
|
|
11120
|
+
var t, e, o, i, a, r, l, c, m, f, d, b;
|
|
11121
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (m = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || m.handleToggle("tropical", !0) : (b = (d = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : d.idmBottomBar) == null || b.handleToggle("tropical", !1);
|
|
11123
11122
|
},
|
|
11124
11123
|
handleRender() {
|
|
11125
|
-
var t, e, o, i, a, r, l,
|
|
11124
|
+
var t, e, o, i, a, r, l, c, m, f;
|
|
11126
11125
|
if (this.tropicals && this.map) {
|
|
11127
11126
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
11128
11127
|
let b = 0, v = 0;
|
|
@@ -11207,9 +11206,9 @@ const sc = {
|
|
|
11207
11206
|
],
|
|
11208
11207
|
"text-halo-width": 4
|
|
11209
11208
|
}
|
|
11210
|
-
}, this.beforeLayer), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((
|
|
11209
|
+
}, this.beforeLayer), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.clusterSource, {
|
|
11211
11210
|
type: "geojson",
|
|
11212
|
-
data: (
|
|
11211
|
+
data: (m = this.tropicals) != null && m.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
11213
11212
|
// cluster: true,
|
|
11214
11213
|
// clusterRadius: 10, // 聚合半径
|
|
11215
11214
|
}), this.map.addLayer({
|
|
@@ -11324,8 +11323,8 @@ const sc = {
|
|
|
11324
11323
|
"text-halo-width": 2
|
|
11325
11324
|
}
|
|
11326
11325
|
}, this.beforeLayer), v = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v));
|
|
11327
|
-
const
|
|
11328
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11326
|
+
const z = Va.interpolate(this.tropicals, 1);
|
|
11327
|
+
this.interpolateData = JSON.parse(JSON.stringify(z)), this.handleDateChange();
|
|
11329
11328
|
}
|
|
11330
11329
|
},
|
|
11331
11330
|
handleClear() {
|
|
@@ -11333,14 +11332,14 @@ const sc = {
|
|
|
11333
11332
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11334
11333
|
},
|
|
11335
11334
|
handleDateChange() {
|
|
11336
|
-
var t, e, o, i, a, r, l,
|
|
11335
|
+
var t, e, o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se;
|
|
11337
11336
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11338
|
-
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
11337
|
+
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((O) => O.properties.date === (ie == null ? void 0 : ie.format()) && !O.properties.disabled), ue = this.handleComputePolygons(me), he = W.featureCollection([...me]);
|
|
11339
11338
|
ue.forEach((O) => {
|
|
11340
|
-
|
|
11341
|
-
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
11339
|
+
he.features.push(O);
|
|
11340
|
+
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(he) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
11342
11341
|
type: "geojson",
|
|
11343
|
-
data:
|
|
11342
|
+
data: he
|
|
11344
11343
|
}), (r = this.map) == null || r.addLayer({
|
|
11345
11344
|
id: this.interpolateLineLayer,
|
|
11346
11345
|
type: "line",
|
|
@@ -11360,21 +11359,21 @@ const sc = {
|
|
|
11360
11359
|
"line-width": 1
|
|
11361
11360
|
}
|
|
11362
11361
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
11363
|
-
const
|
|
11364
|
-
for (const O of
|
|
11362
|
+
const de = [];
|
|
11363
|
+
for (const O of me)
|
|
11365
11364
|
if (!O.properties.disabled) {
|
|
11366
|
-
if (!
|
|
11365
|
+
if (!de.some((Te) => {
|
|
11367
11366
|
var _e;
|
|
11368
11367
|
return Te.properties.name === ((_e = O.properties) == null ? void 0 : _e.name);
|
|
11369
11368
|
})) {
|
|
11370
|
-
const Te = ((
|
|
11369
|
+
const Te = ((c = (l = this.tropicals.data.features.find((_e) => {
|
|
11371
11370
|
var Ie;
|
|
11372
11371
|
return _e.properties.name === ((Ie = O.properties) == null ? void 0 : Ie.name);
|
|
11373
|
-
})) == null ? void 0 : l.properties) == null ? void 0 :
|
|
11374
|
-
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn,
|
|
11372
|
+
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((m = O.properties) == null ? void 0 : m.Name) || "-";
|
|
11373
|
+
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn, de.push(O);
|
|
11375
11374
|
}
|
|
11376
11375
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11377
|
-
((v = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 32 || !((
|
|
11376
|
+
((v = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 32 || !((C = (z = O.properties) == null ? void 0 : z.wind) != null && C.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((y = (L = O.properties) == null ? void 0 : L.wind) == null ? void 0 : y.kts) >= 32 && ((D = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : D.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((k = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 47 && ((T = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : T.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((I = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : I.kts) >= 63 && ((G = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : G.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = O.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((le = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : le.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11378
11377
|
const be = `<svg t="1719918955501"
|
|
11379
11378
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11380
11379
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11394,30 +11393,30 @@ const sc = {
|
|
|
11394
11393
|
const Pe = new ze.Marker(ve).setLngLat(O.geometry.coordinates).addTo(this.map);
|
|
11395
11394
|
this.interpolateMarkers.push(Pe);
|
|
11396
11395
|
}
|
|
11397
|
-
this.$emit("tropicalCenterPoints",
|
|
11396
|
+
this.$emit("tropicalCenterPoints", de);
|
|
11398
11397
|
} else
|
|
11399
|
-
(
|
|
11398
|
+
(ne = this.map) != null && ne.getSource(this.interpolateSource) && ((se = this.map) == null || se.getSource(this.interpolateSource).setData(this.empty));
|
|
11400
11399
|
},
|
|
11401
11400
|
handleClick(t) {
|
|
11402
|
-
var a, r, l,
|
|
11401
|
+
var a, r, l, c, m, f, d, b, v, z, C;
|
|
11403
11402
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11404
|
-
(
|
|
11403
|
+
(L) => {
|
|
11405
11404
|
var y;
|
|
11406
|
-
return
|
|
11405
|
+
return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
11407
11406
|
}
|
|
11408
|
-
), i = (
|
|
11409
|
-
(
|
|
11407
|
+
), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
11408
|
+
(L) => {
|
|
11410
11409
|
var y;
|
|
11411
|
-
return
|
|
11410
|
+
return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
11412
11411
|
}
|
|
11413
11412
|
);
|
|
11414
11413
|
this.activeTropicals = {
|
|
11415
|
-
name: ((
|
|
11414
|
+
name: ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.name) || "-",
|
|
11416
11415
|
nameCn: ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn) || ((d = e == null ? void 0 : e.properties) == null ? void 0 : d.name) || "-",
|
|
11417
11416
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11418
|
-
forecasts: o.map((
|
|
11417
|
+
forecasts: o.map((L) => L.properties),
|
|
11419
11418
|
history: (v = i[0]) == null ? void 0 : v.properties,
|
|
11420
|
-
showCircle: (
|
|
11419
|
+
showCircle: (C = (z = o[0]) == null ? void 0 : z.properties) == null ? void 0 : C.showCircle
|
|
11421
11420
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11422
11421
|
},
|
|
11423
11422
|
drawTropicalsInfoMaker(t) {
|
|
@@ -11433,14 +11432,14 @@ const sc = {
|
|
|
11433
11432
|
});
|
|
11434
11433
|
},
|
|
11435
11434
|
handleForecastToggle(t) {
|
|
11436
|
-
var i, a, r, l,
|
|
11435
|
+
var i, a, r, l, c, m;
|
|
11437
11436
|
t.disabled = !t.disabled;
|
|
11438
11437
|
const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
11439
11438
|
o.forEach((f) => {
|
|
11440
11439
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11441
11440
|
}), this.interpolateData.forEach((f) => {
|
|
11442
11441
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11443
|
-
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(
|
|
11442
|
+
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (m = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || m.setData(W.featureCollection(o)), this.handleDateChange();
|
|
11444
11443
|
},
|
|
11445
11444
|
handleStrikeProbability(t) {
|
|
11446
11445
|
this.$emit("tropicalProbability", t);
|
|
@@ -11466,8 +11465,8 @@ const sc = {
|
|
|
11466
11465
|
se: i.r10se >= 0 ? i.r10se : void 0,
|
|
11467
11466
|
sw: i.r10sw >= 0 ? i.r10sw : void 0,
|
|
11468
11467
|
nw: i.r10nw >= 0 ? i.r10nw : void 0
|
|
11469
|
-
},
|
|
11470
|
-
e.push(
|
|
11468
|
+
}, c = this.handleComputeArc(o.geometry.coordinates, l, { ...o.properties, level: 10 });
|
|
11469
|
+
e.push(c);
|
|
11471
11470
|
}
|
|
11472
11471
|
return e;
|
|
11473
11472
|
},
|
|
@@ -11475,32 +11474,32 @@ const sc = {
|
|
|
11475
11474
|
var r;
|
|
11476
11475
|
const i = [];
|
|
11477
11476
|
for (const l in e) {
|
|
11478
|
-
const
|
|
11479
|
-
let
|
|
11477
|
+
const c = e[l] ?? 0;
|
|
11478
|
+
let m;
|
|
11480
11479
|
switch (l) {
|
|
11481
11480
|
case "ne":
|
|
11482
|
-
|
|
11481
|
+
m = W.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11483
11482
|
break;
|
|
11484
11483
|
case "se":
|
|
11485
|
-
|
|
11484
|
+
m = W.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11486
11485
|
break;
|
|
11487
11486
|
case "sw":
|
|
11488
|
-
|
|
11487
|
+
m = W.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11489
11488
|
break;
|
|
11490
11489
|
case "nw":
|
|
11491
|
-
|
|
11490
|
+
m = W.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11492
11491
|
break;
|
|
11493
11492
|
}
|
|
11494
|
-
i.push(...(r =
|
|
11493
|
+
i.push(...(r = m == null ? void 0 : m.geometry) == null ? void 0 : r.coordinates);
|
|
11495
11494
|
}
|
|
11496
|
-
const a =
|
|
11497
|
-
return
|
|
11495
|
+
const a = W.lineString(i);
|
|
11496
|
+
return W.lineToPolygon(a, { properties: o });
|
|
11498
11497
|
},
|
|
11499
11498
|
handleNotification(t) {
|
|
11500
11499
|
this.$emit("tropicalNotification", t);
|
|
11501
11500
|
},
|
|
11502
11501
|
handleHover(t) {
|
|
11503
|
-
var a, r, l,
|
|
11502
|
+
var a, r, l, c, m;
|
|
11504
11503
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11505
11504
|
const o = this.map.queryRenderedFeatures(
|
|
11506
11505
|
t.point,
|
|
@@ -11521,7 +11520,7 @@ const sc = {
|
|
|
11521
11520
|
return f.geometry.type === "LineString" && f.properties.type === "forecast" && f.properties.name === ((d = o == null ? void 0 : o.properties) == null ? void 0 : d.name);
|
|
11522
11521
|
}
|
|
11523
11522
|
);
|
|
11524
|
-
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (
|
|
11523
|
+
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (m = this.hoverMarker) == null || m.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
11525
11524
|
const f = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
11526
11525
|
this.hoverMarker = new ze.Marker(f).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
11527
11526
|
}));
|
|
@@ -11539,7 +11538,7 @@ const sc = {
|
|
|
11539
11538
|
style: { width: "130px" }
|
|
11540
11539
|
}, Lc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Pc = { class: "more" }, Tc = {
|
|
11541
11540
|
key: 0,
|
|
11542
|
-
class: "w-100 d-flex justify-space-between align-center px-2
|
|
11541
|
+
class: "w-100 d-flex justify-space-between align-center px-2"
|
|
11543
11542
|
}, Cc = {
|
|
11544
11543
|
key: 1,
|
|
11545
11544
|
class: "my-3 w-100",
|
|
@@ -11570,18 +11569,18 @@ const sc = {
|
|
|
11570
11569
|
class: "d-flex justify-start align-center"
|
|
11571
11570
|
}, Qc = { class: "text-label pr-1" }, $c = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
11572
11571
|
function tm(t, e, o, i, a, r) {
|
|
11573
|
-
const l =
|
|
11572
|
+
const l = w("VBtn"), c = w("VTooltip"), m = w("v-icon"), f = w("VCardText"), d = w("VDivider"), b = w("VCardActions"), v = w("VCard"), z = w("v-card-title"), C = w("v-divider");
|
|
11574
11573
|
return g(), S("div", lc, [
|
|
11575
11574
|
s("div", {
|
|
11576
11575
|
class: "menu-bar-box transition pa-1",
|
|
11577
11576
|
style: ee({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
|
|
11578
11577
|
}, [
|
|
11579
|
-
p(
|
|
11578
|
+
p(c, {
|
|
11580
11579
|
text: t.$t("tropical.tropicals"),
|
|
11581
11580
|
location: "left"
|
|
11582
11581
|
}, {
|
|
11583
|
-
activator: u(({ props:
|
|
11584
|
-
p(l, j(
|
|
11582
|
+
activator: u(({ props: L }) => [
|
|
11583
|
+
p(l, j(L, {
|
|
11585
11584
|
"min-width": "32",
|
|
11586
11585
|
width: "32",
|
|
11587
11586
|
height: "32",
|
|
@@ -11603,18 +11602,18 @@ function tm(t, e, o, i, a, r) {
|
|
|
11603
11602
|
id: "idm-tropical-gl4-info",
|
|
11604
11603
|
class: ye(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
|
|
11605
11604
|
}, [
|
|
11606
|
-
p(
|
|
11605
|
+
p(v, {
|
|
11607
11606
|
class: ye(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
|
|
11608
11607
|
elevation: o.simple ? 0 : 16
|
|
11609
11608
|
}, {
|
|
11610
11609
|
default: u(() => [
|
|
11611
|
-
p(
|
|
11610
|
+
p(f, null, {
|
|
11612
11611
|
default: u(() => {
|
|
11613
|
-
var
|
|
11612
|
+
var L, y, B, D, P, k, x, T, _, I, F, G;
|
|
11614
11613
|
return [
|
|
11615
11614
|
s("div", nc, [
|
|
11616
|
-
s("span", cc, n(o.locale === "en" ? (
|
|
11617
|
-
(
|
|
11615
|
+
s("span", cc, n(o.locale === "en" ? (L = a.activeTropicals) == null ? void 0 : L.Name : ((y = a.activeTropicals) == null ? void 0 : y.nameCn) || ((B = a.activeTropicals) == null ? void 0 : B.Name) || "-"), 1),
|
|
11616
|
+
(P = (D = a.activeTropicals) == null ? void 0 : D.history) != null && P.level ? (g(), S("span", mc, ", " + n((x = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : x.level), 1)) : R("", !0)
|
|
11618
11617
|
]),
|
|
11619
11618
|
p(l, {
|
|
11620
11619
|
icon: "",
|
|
@@ -11623,60 +11622,62 @@ function tm(t, e, o, i, a, r) {
|
|
|
11623
11622
|
class: "close",
|
|
11624
11623
|
onClick: Se(r.handleCloseInfoMarker, ["stop"])
|
|
11625
11624
|
}, {
|
|
11626
|
-
default: u(() =>
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11625
|
+
default: u(() => [
|
|
11626
|
+
p(m, {
|
|
11627
|
+
icon: "mdi-close",
|
|
11628
|
+
class: "text-label text-h4"
|
|
11629
|
+
})
|
|
11630
|
+
]),
|
|
11631
|
+
_: 1
|
|
11631
11632
|
}, 8, ["onClick"]),
|
|
11632
11633
|
s("div", hc, [
|
|
11633
11634
|
s("span", dc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11634
|
-
s("span", null, n(r.computeTime(((
|
|
11635
|
+
s("span", null, n(r.computeTime(((_ = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : _.updated) || ((G = (F = (I = a.activeTropicals) == null ? void 0 : I.forecasts) == null ? void 0 : F.filter((Y) => !Y.disabled)[0]) == null ? void 0 : G.date), o.timeZone)), 1)
|
|
11635
11636
|
])
|
|
11636
11637
|
];
|
|
11637
11638
|
}),
|
|
11638
11639
|
_: 1
|
|
11639
11640
|
}),
|
|
11640
|
-
p(
|
|
11641
|
-
p(
|
|
11641
|
+
p(d),
|
|
11642
|
+
p(f, { class: "text-body-1 py-3" }, {
|
|
11642
11643
|
default: u(() => {
|
|
11643
|
-
var
|
|
11644
|
+
var L, y, B, D, P, k, x, T, _;
|
|
11644
11645
|
return [
|
|
11645
11646
|
s("div", pc, [
|
|
11646
11647
|
s("div", uc, [
|
|
11647
11648
|
s("label", gc, n(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11648
|
-
s("span", null, n(((
|
|
11649
|
-
s("span", null, ", BF " + n(r.computeBF(((
|
|
11649
|
+
s("span", null, n(((y = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : y.kts) || "-") + " kts", 1),
|
|
11650
|
+
s("span", null, ", BF " + n(r.computeBF(((D = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : D.kts) || "-")), 1)
|
|
11650
11651
|
]),
|
|
11651
11652
|
s("div", fc, [
|
|
11652
11653
|
s("label", yc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11653
|
-
s("span", null, n(((
|
|
11654
|
+
s("span", null, n(((k = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : k.pressure) || "-") + " hPa", 1)
|
|
11654
11655
|
])
|
|
11655
11656
|
]),
|
|
11656
11657
|
s("div", bc, [
|
|
11657
11658
|
s("div", wc, [
|
|
11658
11659
|
s("label", xc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11659
|
-
s("span", null, n(((
|
|
11660
|
+
s("span", null, n(((x = r.computeMovement(a.activeTropicals)) == null ? void 0 : x.kts) || "-") + " kts", 1)
|
|
11660
11661
|
]),
|
|
11661
11662
|
s("div", vc, [
|
|
11662
11663
|
s("label", _c, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11663
|
-
s("span", null, n(((
|
|
11664
|
+
s("span", null, n(((T = r.computeMovement(a.activeTropicals)) == null ? void 0 : T.deg) || "-") + "°", 1)
|
|
11664
11665
|
])
|
|
11665
11666
|
]),
|
|
11666
11667
|
s("div", kc, [
|
|
11667
11668
|
s("label", zc, n(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11668
11669
|
s("div", Lc, [
|
|
11669
|
-
(g(!0), S(xe, null, ke((
|
|
11670
|
-
key:
|
|
11670
|
+
(g(!0), S(xe, null, ke((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (I, F) => (g(), A(l, {
|
|
11671
|
+
key: F,
|
|
11671
11672
|
density: "compact",
|
|
11672
|
-
variant:
|
|
11673
|
-
color:
|
|
11673
|
+
variant: I.disabled ? "text" : "flat",
|
|
11674
|
+
color: I.disabled ? "" : "primary",
|
|
11674
11675
|
"min-width": 30,
|
|
11675
|
-
class: ye(["model text-none text-body-1 px-1",
|
|
11676
|
-
onClick: Se((
|
|
11676
|
+
class: ye(["model text-none text-body-1 px-1", I.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11677
|
+
onClick: Se((G) => r.handleForecastToggle(I), ["stop"])
|
|
11677
11678
|
}, {
|
|
11678
11679
|
default: u(() => [
|
|
11679
|
-
K(n(
|
|
11680
|
+
K(n(I.model), 1)
|
|
11680
11681
|
]),
|
|
11681
11682
|
_: 2
|
|
11682
11683
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11686,8 +11687,8 @@ function tm(t, e, o, i, a, r) {
|
|
|
11686
11687
|
}),
|
|
11687
11688
|
_: 1
|
|
11688
11689
|
}),
|
|
11689
|
-
p(
|
|
11690
|
-
o.simple ?
|
|
11690
|
+
p(d),
|
|
11691
|
+
o.simple ? R("", !0) : (g(), A(b, {
|
|
11691
11692
|
key: 0,
|
|
11692
11693
|
class: "d-flex justify-space-between"
|
|
11693
11694
|
}, {
|
|
@@ -11698,9 +11699,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
11698
11699
|
variant: "text",
|
|
11699
11700
|
color: a.showLegend ? "primary" : "",
|
|
11700
11701
|
class: "text-none text-body-1",
|
|
11701
|
-
onClick: e[0] || (e[0] = Se((
|
|
11702
|
+
onClick: e[0] || (e[0] = Se((L) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11702
11703
|
}, {
|
|
11703
|
-
prepend: u(() => e[
|
|
11704
|
+
prepend: u(() => e[4] || (e[4] = [
|
|
11704
11705
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
11705
11706
|
])),
|
|
11706
11707
|
default: u(() => [
|
|
@@ -11714,19 +11715,19 @@ function tm(t, e, o, i, a, r) {
|
|
|
11714
11715
|
variant: "text",
|
|
11715
11716
|
density: "compact",
|
|
11716
11717
|
class: "text-none text-body-1",
|
|
11717
|
-
onClick: e[1] || (e[1] = Se((
|
|
11718
|
+
onClick: e[1] || (e[1] = Se((L) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11718
11719
|
}, {
|
|
11719
11720
|
default: u(() => [
|
|
11720
11721
|
K(n(t.$t("actions.notify")), 1)
|
|
11721
11722
|
]),
|
|
11722
11723
|
_: 1
|
|
11723
|
-
})) :
|
|
11724
|
+
})) : R("", !0),
|
|
11724
11725
|
p(l, {
|
|
11725
11726
|
variant: "text",
|
|
11726
11727
|
density: "compact",
|
|
11727
11728
|
"append-icon": "mdi-chevron-right",
|
|
11728
11729
|
class: "text-none text-body-1",
|
|
11729
|
-
onClick: e[2] || (e[2] = Se((
|
|
11730
|
+
onClick: e[2] || (e[2] = Se((L) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11730
11731
|
}, {
|
|
11731
11732
|
default: u(() => [
|
|
11732
11733
|
K(n(t.$t("actions.viewReport")), 1)
|
|
@@ -11740,14 +11741,14 @@ function tm(t, e, o, i, a, r) {
|
|
|
11740
11741
|
]),
|
|
11741
11742
|
_: 1
|
|
11742
11743
|
}, 8, ["class", "elevation"]),
|
|
11743
|
-
o.simple ? (g(), S("div", Tc, e[
|
|
11744
|
-
ei('<div class="
|
|
11744
|
+
o.simple ? (g(), S("div", Tc, e[5] || (e[5] = [
|
|
11745
|
+
ei('<div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon td"></div><div class="label">TD</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sty"></div><div class="label">STY</div></div></div><div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="pa-1"><div class="w-100 legend d-flex justify-start align-center py-2 ga-2"><div class="icon history"></div><div class="label">History</div><div class="icon forecast"></div><div class="label">Forecast</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3)
|
|
11745
11746
|
]))) : (g(), S("div", Cc, [
|
|
11746
|
-
Ye(p(
|
|
11747
|
+
Ye(p(v, { elevation: "16" }, {
|
|
11747
11748
|
default: u(() => [
|
|
11748
|
-
p(
|
|
11749
|
+
p(f, null, {
|
|
11749
11750
|
default: u(() => [
|
|
11750
|
-
Ye(s("div", Sc, e[
|
|
11751
|
+
Ye(s("div", Sc, e[6] || (e[6] = [
|
|
11751
11752
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11752
11753
|
s("div", { class: "icon td" }),
|
|
11753
11754
|
s("div", { class: "label" }, "TD")
|
|
@@ -11775,7 +11776,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11775
11776
|
]), 512), [
|
|
11776
11777
|
[Ze, a.showLegend]
|
|
11777
11778
|
]),
|
|
11778
|
-
Ye(s("div", Mc, e[
|
|
11779
|
+
Ye(s("div", Mc, e[7] || (e[7] = [
|
|
11779
11780
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11780
11781
|
s("div", { class: "icon history" }),
|
|
11781
11782
|
s("div", { class: "label" }, "History")
|
|
@@ -11804,67 +11805,67 @@ function tm(t, e, o, i, a, r) {
|
|
|
11804
11805
|
[Ze, a.showLegend]
|
|
11805
11806
|
])
|
|
11806
11807
|
]))
|
|
11807
|
-
], 2)) :
|
|
11808
|
-
Ye(p(
|
|
11808
|
+
], 2)) : R("", !0),
|
|
11809
|
+
Ye(p(v, {
|
|
11809
11810
|
id: "tropicalHoverMarkerInfo",
|
|
11810
11811
|
elevation: "16",
|
|
11811
11812
|
"max-width": "280"
|
|
11812
11813
|
}, {
|
|
11813
11814
|
default: u(() => [
|
|
11814
|
-
p(
|
|
11815
|
+
p(z, null, {
|
|
11815
11816
|
default: u(() => {
|
|
11816
|
-
var
|
|
11817
|
+
var L, y, B, D;
|
|
11817
11818
|
return [
|
|
11818
11819
|
s("div", Dc, [
|
|
11819
|
-
s("span", Ic, n(o.locale === "en" ? (
|
|
11820
|
-
s("span", Rc, "[ " + n((
|
|
11820
|
+
s("span", Ic, n(o.locale === "en" ? (L = a.hoverPoint) == null ? void 0 : L.Name : ((y = a.hoverPoint) == null ? void 0 : y.nameCn) || ((B = a.hoverPoint) == null ? void 0 : B.Name)), 1),
|
|
11821
|
+
s("span", Rc, "[ " + n((D = a.hoverPoint) == null ? void 0 : D.level) + " ]", 1)
|
|
11821
11822
|
])
|
|
11822
11823
|
];
|
|
11823
11824
|
}),
|
|
11824
11825
|
_: 1
|
|
11825
11826
|
}),
|
|
11826
|
-
p(
|
|
11827
|
-
p(
|
|
11827
|
+
p(C),
|
|
11828
|
+
p(f, { class: "text-body-1" }, {
|
|
11828
11829
|
default: u(() => {
|
|
11829
|
-
var
|
|
11830
|
+
var L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se;
|
|
11830
11831
|
return [
|
|
11831
11832
|
s("div", Ac, [
|
|
11832
|
-
((
|
|
11833
|
+
((L = a.hoverPoint) == null ? void 0 : L.type) === "forecast" ? (g(), S("div", Oc, [
|
|
11833
11834
|
s("label", Bc, n(t.$t("tropical.updated")) + " : ", 1),
|
|
11834
|
-
s("span", null, n(r.computeTzTime((
|
|
11835
|
-
])) :
|
|
11836
|
-
((
|
|
11835
|
+
s("span", null, n(r.computeTzTime((y = a.hoverPoint) == null ? void 0 : y.update, o.timeZone)), 1)
|
|
11836
|
+
])) : R("", !0),
|
|
11837
|
+
((B = a.hoverPoint) == null ? void 0 : B.type) === "forecast" ? (g(), S("div", jc, [
|
|
11837
11838
|
s("label", Ec, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11838
|
-
s("span", null, n(r.computeTzTime((
|
|
11839
|
-
])) :
|
|
11840
|
-
((
|
|
11839
|
+
s("span", null, n(r.computeTzTime((D = a.hoverPoint) == null ? void 0 : D.date, o.timeZone)), 1)
|
|
11840
|
+
])) : R("", !0),
|
|
11841
|
+
((P = a.hoverPoint) == null ? void 0 : P.type) === "history" ? (g(), S("div", Nc, [
|
|
11841
11842
|
s("label", Fc, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11842
|
-
s("span", null, n(r.computeTzTime((
|
|
11843
|
-
])) :
|
|
11844
|
-
((
|
|
11843
|
+
s("span", null, n(r.computeTzTime((k = a.hoverPoint) == null ? void 0 : k.date, o.timeZone)), 1)
|
|
11844
|
+
])) : R("", !0),
|
|
11845
|
+
((x = a.hoverPoint) == null ? void 0 : x.type) === "forecast" ? (g(), S("div", Hc, [
|
|
11845
11846
|
s("label", Gc, n(t.$t("tropical.model")) + " : ", 1),
|
|
11846
|
-
s("span", null, n(((
|
|
11847
|
-
])) :
|
|
11848
|
-
((
|
|
11847
|
+
s("span", null, n(((T = a.hoverPoint) == null ? void 0 : T.model) ?? "-"), 1)
|
|
11848
|
+
])) : R("", !0),
|
|
11849
|
+
((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (g(), S("div", Wc, [
|
|
11849
11850
|
s("label", Uc, n(t.$t("weather.wind")) + " : ", 1),
|
|
11850
|
-
s("span", null, n(((
|
|
11851
|
-
])) :
|
|
11852
|
-
((
|
|
11851
|
+
s("span", null, n(((F = JSON.parse((I = a.hoverPoint) == null ? void 0 : I.wind)) == null ? void 0 : F.kts) ?? "-") + " kts", 1)
|
|
11852
|
+
])) : R("", !0),
|
|
11853
|
+
((G = a.hoverPoint) == null ? void 0 : G.type) === "history" ? (g(), S("div", Vc, [
|
|
11853
11854
|
s("label", Yc, n(t.$t("weather.wind")) + " : ", 1),
|
|
11854
|
-
s("span", null, n(((
|
|
11855
|
-
])) :
|
|
11855
|
+
s("span", null, n(((Y = a.hoverPoint) == null ? void 0 : Y.kts) ?? "-") + " kts", 1)
|
|
11856
|
+
])) : R("", !0),
|
|
11856
11857
|
s("div", Zc, [
|
|
11857
11858
|
s("label", Xc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11858
|
-
s("span", null, n(((
|
|
11859
|
+
s("span", null, n(((Z = a.hoverPoint) == null ? void 0 : Z.pressure) ?? "-") + " hPa", 1)
|
|
11859
11860
|
]),
|
|
11860
|
-
((
|
|
11861
|
+
((Q = a.hoverPoint) == null ? void 0 : Q.type) === "history" ? (g(), S("div", qc, [
|
|
11861
11862
|
s("label", Kc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11862
|
-
s("span", null, n(((
|
|
11863
|
-
])) :
|
|
11864
|
-
((
|
|
11863
|
+
s("span", null, n(((J = JSON.parse(($ = a.hoverPoint) == null ? void 0 : $.movement)) == null ? void 0 : J.kts) ?? "-") + " kts", 1)
|
|
11864
|
+
])) : R("", !0),
|
|
11865
|
+
((le = a.hoverPoint) == null ? void 0 : le.type) === "history" ? (g(), S("div", Jc, [
|
|
11865
11866
|
s("label", Qc, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11866
|
-
s("span", null, n(((
|
|
11867
|
-
])) :
|
|
11867
|
+
s("span", null, n(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
|
|
11868
|
+
])) : R("", !0),
|
|
11868
11869
|
s("div", $c, [
|
|
11869
11870
|
s("label", em, n(t.$t("tropical.position")) + " : ", 1),
|
|
11870
11871
|
s("span", null, n(r.computePosition(a.hoverPoint)), 1)
|
|
@@ -11881,7 +11882,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11881
11882
|
])
|
|
11882
11883
|
]);
|
|
11883
11884
|
}
|
|
11884
|
-
const qa = /* @__PURE__ */
|
|
11885
|
+
const qa = /* @__PURE__ */ X(sc, [["render", tm]]);
|
|
11885
11886
|
const om = {
|
|
11886
11887
|
name: "DateTimePicker",
|
|
11887
11888
|
props: {
|
|
@@ -12032,11 +12033,11 @@ const om = {
|
|
|
12032
12033
|
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
12033
12034
|
},
|
|
12034
12035
|
handleResetMinMax() {
|
|
12035
|
-
var a, r, l,
|
|
12036
|
+
var a, r, l, c, m;
|
|
12036
12037
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
12037
12038
|
return;
|
|
12038
12039
|
const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
|
|
12039
|
-
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((
|
|
12040
|
+
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((m = (c = M()) == null ? void 0 : c.utc()) == null ? void 0 : m.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
|
|
12040
12041
|
},
|
|
12041
12042
|
handleOpenDatePicker() {
|
|
12042
12043
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
@@ -12076,16 +12077,16 @@ const om = {
|
|
|
12076
12077
|
style: { height: "56px" }
|
|
12077
12078
|
};
|
|
12078
12079
|
function nm(t, e, o, i, a, r) {
|
|
12079
|
-
const l =
|
|
12080
|
+
const l = w("VDatePicker"), c = w("VDivider"), m = w("VListItemTitle"), f = w("VListItem"), d = w("VList"), b = w("VCardText"), v = w("VBtn"), z = w("VCardActions"), C = w("VCard");
|
|
12080
12081
|
return g(), S("div", am, [
|
|
12081
12082
|
s("div", {
|
|
12082
12083
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12083
12084
|
class: ye([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
|
|
12084
|
-
onClick: e[0] || (e[0] = (...
|
|
12085
|
+
onClick: e[0] || (e[0] = (...L) => r.handleOpenDatePicker && r.handleOpenDatePicker(...L))
|
|
12085
12086
|
}, [
|
|
12086
12087
|
s("span", im, n(a.currentDateTime) + " | UTC " + n(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
12087
12088
|
], 6),
|
|
12088
|
-
a.showDatePicker ? (g(), A(
|
|
12089
|
+
a.showDatePicker ? (g(), A(C, {
|
|
12089
12090
|
key: 0,
|
|
12090
12091
|
class: "card-box d-flex flex-column border",
|
|
12091
12092
|
style: ee(r.getStyle)
|
|
@@ -12096,7 +12097,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12096
12097
|
s("div", rm, [
|
|
12097
12098
|
p(l, {
|
|
12098
12099
|
modelValue: a.currentDate,
|
|
12099
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12100
|
+
"onUpdate:modelValue": e[1] || (e[1] = (L) => a.currentDate = L),
|
|
12100
12101
|
min: a.minDate,
|
|
12101
12102
|
max: a.maxDate,
|
|
12102
12103
|
"mode-icon": () => r.currentYear,
|
|
@@ -12108,7 +12109,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12108
12109
|
"onUpdate:month": r.handleUpdateMonth
|
|
12109
12110
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
12110
12111
|
]),
|
|
12111
|
-
p(
|
|
12112
|
+
p(c, {
|
|
12112
12113
|
class: "h-100",
|
|
12113
12114
|
vertical: ""
|
|
12114
12115
|
}),
|
|
@@ -12116,22 +12117,22 @@ function nm(t, e, o, i, a, r) {
|
|
|
12116
12117
|
s("div", lm, n(a.currentTime), 1),
|
|
12117
12118
|
p(d, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
12118
12119
|
default: u(() => [
|
|
12119
|
-
(g(!0), S(xe, null, ke(r.hourOptions, (
|
|
12120
|
+
(g(!0), S(xe, null, ke(r.hourOptions, (L, y) => (g(), A(f, {
|
|
12120
12121
|
key: y,
|
|
12121
|
-
value:
|
|
12122
|
+
value: L,
|
|
12122
12123
|
color: "primary",
|
|
12123
|
-
active: a.currentTime ===
|
|
12124
|
+
active: a.currentTime === L,
|
|
12124
12125
|
rounded: "",
|
|
12125
12126
|
height: "26",
|
|
12126
12127
|
"min-height": "26"
|
|
12127
12128
|
}, {
|
|
12128
12129
|
default: u(() => [
|
|
12129
|
-
p(
|
|
12130
|
+
p(m, {
|
|
12130
12131
|
class: "text-body-2 font-weight-600 text-center",
|
|
12131
|
-
onClick: (B) => a.currentTime =
|
|
12132
|
+
onClick: (B) => a.currentTime = L
|
|
12132
12133
|
}, {
|
|
12133
12134
|
default: u(() => [
|
|
12134
|
-
K(n(
|
|
12135
|
+
K(n(L), 1)
|
|
12135
12136
|
]),
|
|
12136
12137
|
_: 2
|
|
12137
12138
|
}, 1032, ["onClick"])
|
|
@@ -12145,8 +12146,8 @@ function nm(t, e, o, i, a, r) {
|
|
|
12145
12146
|
]),
|
|
12146
12147
|
_: 1
|
|
12147
12148
|
}),
|
|
12148
|
-
p(
|
|
12149
|
-
p(
|
|
12149
|
+
p(c),
|
|
12150
|
+
p(z, {
|
|
12150
12151
|
class: "justify-end pa-0 pr-4",
|
|
12151
12152
|
style: { height: "50px" }
|
|
12152
12153
|
}, {
|
|
@@ -12179,10 +12180,10 @@ function nm(t, e, o, i, a, r) {
|
|
|
12179
12180
|
})
|
|
12180
12181
|
]),
|
|
12181
12182
|
_: 1
|
|
12182
|
-
}, 8, ["style"])) :
|
|
12183
|
+
}, 8, ["style"])) : R("", !0)
|
|
12183
12184
|
], 512);
|
|
12184
12185
|
}
|
|
12185
|
-
const Mo = /* @__PURE__ */
|
|
12186
|
+
const Mo = /* @__PURE__ */ X(om, [["render", nm]]);
|
|
12186
12187
|
const cm = {
|
|
12187
12188
|
name: "DateRangePicker",
|
|
12188
12189
|
props: {
|
|
@@ -12311,7 +12312,7 @@ const cm = {
|
|
|
12311
12312
|
this.handleResetDateRange(), this.handleResetMinMax();
|
|
12312
12313
|
},
|
|
12313
12314
|
handleResetDateRange() {
|
|
12314
|
-
var r, l,
|
|
12315
|
+
var r, l, c;
|
|
12315
12316
|
let t, e;
|
|
12316
12317
|
if ((r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays, !e) {
|
|
12317
12318
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
@@ -12319,13 +12320,13 @@ const cm = {
|
|
|
12319
12320
|
}
|
|
12320
12321
|
const o = M.tz(t, this.timeZoneName).clone(), i = [];
|
|
12321
12322
|
if (e < 0)
|
|
12322
|
-
for (let
|
|
12323
|
-
i.push(o.clone().add(
|
|
12323
|
+
for (let m = e + 1; m <= 0; m++)
|
|
12324
|
+
i.push(o.clone().add(m, "days").format());
|
|
12324
12325
|
else
|
|
12325
|
-
for (let
|
|
12326
|
-
i.push(o.clone().add(
|
|
12326
|
+
for (let m = 0; m < e; m++)
|
|
12327
|
+
i.push(o.clone().add(m, "days").format());
|
|
12327
12328
|
this.dateRange = i;
|
|
12328
|
-
const a = [this.dateRange[0], this.dateRange[((
|
|
12329
|
+
const a = [this.dateRange[0], this.dateRange[((c = this.dateRange) == null ? void 0 : c.length) - 1]];
|
|
12329
12330
|
this.dateRangeStr = `${M.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${M.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
|
|
12330
12331
|
"dateRange",
|
|
12331
12332
|
[
|
|
@@ -12372,12 +12373,12 @@ const cm = {
|
|
|
12372
12373
|
ref: "idmGl4DatePicker"
|
|
12373
12374
|
}, hm = { class: "flex-1-1-0" }, dm = { class: "pa-0" };
|
|
12374
12375
|
function pm(t, e, o, i, a, r) {
|
|
12375
|
-
const l =
|
|
12376
|
+
const l = w("VIcon"), c = w("VDatePicker"), m = w("VCardText"), f = w("VDivider"), d = w("VBtn"), b = w("VCardActions"), v = w("VCard");
|
|
12376
12377
|
return g(), S("div", mm, [
|
|
12377
12378
|
s("div", {
|
|
12378
12379
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12379
12380
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12380
|
-
onClick: e[0] || (e[0] = (...
|
|
12381
|
+
onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
|
|
12381
12382
|
}, [
|
|
12382
12383
|
s("span", hm, n(a.dateRangeStr), 1),
|
|
12383
12384
|
a.dateRangeStr ? (g(), A(l, {
|
|
@@ -12385,7 +12386,7 @@ function pm(t, e, o, i, a, r) {
|
|
|
12385
12386
|
class: "text-h5",
|
|
12386
12387
|
icon: "mdi-close-circle text-label",
|
|
12387
12388
|
onClick: Se(r.handleClearDate, ["stop"])
|
|
12388
|
-
}, null, 8, ["onClick"])) :
|
|
12389
|
+
}, null, 8, ["onClick"])) : R("", !0)
|
|
12389
12390
|
], 4),
|
|
12390
12391
|
a.showDatePicker ? (g(), A(v, {
|
|
12391
12392
|
key: 0,
|
|
@@ -12393,12 +12394,12 @@ function pm(t, e, o, i, a, r) {
|
|
|
12393
12394
|
style: ee(r.getStyle)
|
|
12394
12395
|
}, {
|
|
12395
12396
|
default: u(() => [
|
|
12396
|
-
p(
|
|
12397
|
+
p(m, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
12397
12398
|
default: u(() => [
|
|
12398
12399
|
s("div", dm, [
|
|
12399
|
-
p(
|
|
12400
|
+
p(c, {
|
|
12400
12401
|
modelValue: a.dateRange,
|
|
12401
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12402
|
+
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.dateRange = z),
|
|
12402
12403
|
min: a.minDate,
|
|
12403
12404
|
max: a.maxDate,
|
|
12404
12405
|
"mode-icon": () => r.currentYear,
|
|
@@ -12448,10 +12449,10 @@ function pm(t, e, o, i, a, r) {
|
|
|
12448
12449
|
})
|
|
12449
12450
|
]),
|
|
12450
12451
|
_: 1
|
|
12451
|
-
}, 8, ["style"])) :
|
|
12452
|
+
}, 8, ["style"])) : R("", !0)
|
|
12452
12453
|
], 512);
|
|
12453
12454
|
}
|
|
12454
|
-
const Ka = /* @__PURE__ */
|
|
12455
|
+
const Ka = /* @__PURE__ */ X(cm, [["render", pm]]);
|
|
12455
12456
|
const um = {
|
|
12456
12457
|
name: "IdmPoint",
|
|
12457
12458
|
components: {
|
|
@@ -13489,10 +13490,10 @@ const um = {
|
|
|
13489
13490
|
}), this.loading = !1;
|
|
13490
13491
|
},
|
|
13491
13492
|
initTableData(t) {
|
|
13492
|
-
var o, i, a, r, l,
|
|
13493
|
+
var o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be;
|
|
13493
13494
|
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;
|
|
13494
13495
|
const e = ((l = To.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13495
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((
|
|
13496
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((v = e == null ? void 0 : e.weather) == null ? void 0 : v.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : C.kts, 1) ?? "-", this.currentHourData.windDir = ((y = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : y.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((D = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : D.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((T = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((G = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : G.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((se = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : se.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
|
|
13496
13497
|
},
|
|
13497
13498
|
handleBind() {
|
|
13498
13499
|
var t, e;
|
|
@@ -13602,27 +13603,27 @@ const um = {
|
|
|
13602
13603
|
}, Km = {
|
|
13603
13604
|
style: { width: "80px" },
|
|
13604
13605
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13605
|
-
}, Jm = { class: "pa-0 text-left" }, Qm = { class: "d-flex justify-space-between align-center" }, $m = { class: "d-flex justify-start align-center" }, eh = { class: "mx-1" }, th = { class: "d-flex justify-end align-center" }, oh = { class: "mx-0 py-
|
|
13606
|
+
}, Jm = { class: "pa-0 text-left" }, Qm = { class: "d-flex justify-space-between align-center" }, $m = { class: "d-flex justify-start align-center" }, eh = { class: "mx-1" }, th = { class: "d-flex justify-end align-center" }, oh = { class: "mx-0 py-1 d-flex align-center justify-start" }, ah = {
|
|
13606
13607
|
style: { width: "60px" },
|
|
13607
13608
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13608
|
-
}, ih = { class: "pa-0 px-0" }, rh = { class: "mx-0 py-
|
|
13609
|
+
}, ih = { class: "pa-0 px-0" }, rh = { class: "mx-0 py-1 d-flex align-center justify-start" }, sh = { class: "pa-0 px-0" }, lh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, nh = { class: "d-flex flex-column align-start justify-center ga-3" }, ch = { class: "text-label pr-2" }, mh = { class: "text-label pr-2" }, hh = { class: "text-label pr-2" }, dh = { class: "d-flex flex-column align-start justify-center ga-3" }, ph = { class: "text-label pr-2" }, uh = { class: "text-label pr-2" }, gh = { class: "text-label pr-2" }, fh = { id: "idm-position-icon" }, yh = {
|
|
13609
13610
|
class: "multi-color-icon",
|
|
13610
13611
|
style: { height: "30px", width: "30px" },
|
|
13611
13612
|
"aria-hidden": "true"
|
|
13612
13613
|
}, bh = ["xlink:href"];
|
|
13613
13614
|
function wh(t, e, o, i, a, r) {
|
|
13614
|
-
const l =
|
|
13615
|
+
const l = w("VBtn"), c = w("VTooltip"), m = w("VCardTitle"), f = w("VDivider"), d = w("VTextField"), b = w("VCol"), v = w("VRow"), z = w("DateTimePicker"), C = w("VBtnToggle"), L = w("VCardText"), y = w("VCardActions"), B = w("VForm"), D = w("VCard"), P = w("VIcon");
|
|
13615
13616
|
return g(), S("div", gm, [
|
|
13616
13617
|
s("div", {
|
|
13617
13618
|
class: "menu-bar-box transition pa-1",
|
|
13618
13619
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
13619
13620
|
}, [
|
|
13620
|
-
p(
|
|
13621
|
+
p(c, {
|
|
13621
13622
|
text: t.$t("spot.spotsMeteo"),
|
|
13622
13623
|
location: "left"
|
|
13623
13624
|
}, {
|
|
13624
|
-
activator: u(({ props:
|
|
13625
|
-
p(l, j(
|
|
13625
|
+
activator: u(({ props: k }) => [
|
|
13626
|
+
p(l, j(k, {
|
|
13626
13627
|
"min-width": "32",
|
|
13627
13628
|
width: "32",
|
|
13628
13629
|
height: "32",
|
|
@@ -13645,7 +13646,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13645
13646
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
13646
13647
|
}, {
|
|
13647
13648
|
default: u(() => [
|
|
13648
|
-
p(
|
|
13649
|
+
p(m, { class: "d-flex justify-space-between align-center" }, {
|
|
13649
13650
|
default: u(() => [
|
|
13650
13651
|
s("div", fm, [
|
|
13651
13652
|
s("div", ym, n(t.$t("spot.spotWeather")), 1)
|
|
@@ -13674,7 +13675,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13674
13675
|
onSubmit: Se(r.submitForm, ["prevent"])
|
|
13675
13676
|
}, {
|
|
13676
13677
|
default: u(() => [
|
|
13677
|
-
p(
|
|
13678
|
+
p(L, { class: "text-body-1 py-1" }, {
|
|
13678
13679
|
default: u(() => [
|
|
13679
13680
|
s("div", bm, [
|
|
13680
13681
|
(g(), S("svg", wm, [
|
|
@@ -13693,7 +13694,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13693
13694
|
default: u(() => [
|
|
13694
13695
|
p(d, {
|
|
13695
13696
|
modelValue: a.form.lngDegree,
|
|
13696
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
13697
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
|
|
13697
13698
|
rules: a.formRules.lngDegree,
|
|
13698
13699
|
density: "compact",
|
|
13699
13700
|
variant: "outlined",
|
|
@@ -13713,7 +13714,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13713
13714
|
default: u(() => [
|
|
13714
13715
|
p(d, {
|
|
13715
13716
|
modelValue: a.form.lngMinute,
|
|
13716
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
13717
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
|
|
13717
13718
|
rules: a.formRules.lngMinute,
|
|
13718
13719
|
label: "",
|
|
13719
13720
|
density: "compact",
|
|
@@ -13740,7 +13741,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13740
13741
|
height: "32",
|
|
13741
13742
|
class: "text-body-1 btn-bg-1",
|
|
13742
13743
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13743
|
-
onClick: e[2] || (e[2] = (
|
|
13744
|
+
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
13744
13745
|
}, {
|
|
13745
13746
|
default: u(() => [
|
|
13746
13747
|
K(n(a.form.lngDirection), 1)
|
|
@@ -13770,7 +13771,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13770
13771
|
default: u(() => [
|
|
13771
13772
|
p(d, {
|
|
13772
13773
|
modelValue: a.form.latDegree,
|
|
13773
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
13774
|
+
"onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
|
|
13774
13775
|
rules: a.formRules.latDegree,
|
|
13775
13776
|
label: "",
|
|
13776
13777
|
density: "compact",
|
|
@@ -13793,7 +13794,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13793
13794
|
default: u(() => [
|
|
13794
13795
|
p(d, {
|
|
13795
13796
|
modelValue: a.form.latMinute,
|
|
13796
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13797
|
+
"onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
|
|
13797
13798
|
rules: a.formRules.latMinute,
|
|
13798
13799
|
label: "",
|
|
13799
13800
|
density: "compact",
|
|
@@ -13820,7 +13821,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13820
13821
|
height: "32",
|
|
13821
13822
|
class: "text-body-1 btn-bg-1",
|
|
13822
13823
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13823
|
-
onClick: e[5] || (e[5] = (
|
|
13824
|
+
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13824
13825
|
}, {
|
|
13825
13826
|
default: u(() => [
|
|
13826
13827
|
K(n(a.form.latDirection), 1)
|
|
@@ -13848,11 +13849,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
13848
13849
|
class: "pa-0"
|
|
13849
13850
|
}, {
|
|
13850
13851
|
default: u(() => [
|
|
13851
|
-
p(
|
|
13852
|
+
p(z, j({
|
|
13852
13853
|
"date-time": a.form.dateTime,
|
|
13853
13854
|
"time-zone": o.timeZone
|
|
13854
13855
|
}, t.$attrs, {
|
|
13855
|
-
onDateTime: e[6] || (e[6] = (
|
|
13856
|
+
onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
|
|
13856
13857
|
}), null, 16, ["date-time", "time-zone"])
|
|
13857
13858
|
]),
|
|
13858
13859
|
_: 1
|
|
@@ -13875,9 +13876,9 @@ function wh(t, e, o, i, a, r) {
|
|
|
13875
13876
|
class: "pa-0"
|
|
13876
13877
|
}, {
|
|
13877
13878
|
default: u(() => [
|
|
13878
|
-
p(
|
|
13879
|
+
p(C, {
|
|
13879
13880
|
modelValue: a.form.forecastModel,
|
|
13880
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13881
|
+
"onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
|
|
13881
13882
|
class: "w-100",
|
|
13882
13883
|
rounded: "",
|
|
13883
13884
|
height: "30",
|
|
@@ -13961,7 +13962,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13961
13962
|
}, 8, ["onSubmit"])
|
|
13962
13963
|
]),
|
|
13963
13964
|
_: 1
|
|
13964
|
-
}, 8, ["style"])) :
|
|
13965
|
+
}, 8, ["style"])) : R("", !0),
|
|
13965
13966
|
a.showMeteo ? (g(), A(D, {
|
|
13966
13967
|
key: 1,
|
|
13967
13968
|
id: "idm-gl4-spot-meteo",
|
|
@@ -13969,7 +13970,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13969
13970
|
style: { width: "490px", "z-index": "9" }
|
|
13970
13971
|
}, {
|
|
13971
13972
|
default: u(() => [
|
|
13972
|
-
p(
|
|
13973
|
+
p(m, { class: "d-flex justify-space-between align-center" }, {
|
|
13973
13974
|
default: u(() => [
|
|
13974
13975
|
s("div", Mm, [
|
|
13975
13976
|
e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
@@ -13992,20 +13993,20 @@ function wh(t, e, o, i, a, r) {
|
|
|
13992
13993
|
_: 1
|
|
13993
13994
|
}),
|
|
13994
13995
|
p(f),
|
|
13995
|
-
p(
|
|
13996
|
+
p(L, { class: "text-body-1 px-0 py-1" }, {
|
|
13996
13997
|
default: u(() => {
|
|
13997
|
-
var
|
|
13998
|
+
var k, x;
|
|
13998
13999
|
return [
|
|
13999
14000
|
s("div", Im, [
|
|
14000
14001
|
s("div", Rm, n(t.$t("time.time")), 1),
|
|
14001
|
-
s("div", Am, n(r.computedTzTime((
|
|
14002
|
+
s("div", Am, n(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
14002
14003
|
]),
|
|
14003
14004
|
s("div", Om, [
|
|
14004
14005
|
e[18] || (e[18] = s("div", {
|
|
14005
14006
|
style: { width: "100px" },
|
|
14006
14007
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
14007
14008
|
}, "LT", -1)),
|
|
14008
|
-
s("div", Bm, n(r.computedLocalTime((
|
|
14009
|
+
s("div", Bm, n(r.computedLocalTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14009
14010
|
]),
|
|
14010
14011
|
s("div", jm, [
|
|
14011
14012
|
s("div", Em, n(t.$t("weather.wind")), 1),
|
|
@@ -14032,11 +14033,11 @@ function wh(t, e, o, i, a, r) {
|
|
|
14032
14033
|
p(f),
|
|
14033
14034
|
p(y, { class: "d-flex justify-space-between align-center" }, {
|
|
14034
14035
|
default: u(() => {
|
|
14035
|
-
var
|
|
14036
|
+
var k;
|
|
14036
14037
|
return [
|
|
14037
|
-
(
|
|
14038
|
-
var
|
|
14039
|
-
return (
|
|
14038
|
+
(k = o.followList) != null && k.some((x) => {
|
|
14039
|
+
var T, _;
|
|
14040
|
+
return (x == null ? void 0 : x.id) === a.form.followId || ((T = x == null ? void 0 : x.coordinate) == null ? void 0 : T.lng) === a.form.lng && ((_ = x == null ? void 0 : x.coordinate) == null ? void 0 : _.lat) === a.form.lat;
|
|
14040
14041
|
}) ? (g(), A(l, {
|
|
14041
14042
|
key: 0,
|
|
14042
14043
|
class: "text-none text-body-1",
|
|
@@ -14048,7 +14049,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14048
14049
|
onClick: Se(r.handleCancelFollow, ["stop"])
|
|
14049
14050
|
}, {
|
|
14050
14051
|
prepend: u(() => [
|
|
14051
|
-
p(
|
|
14052
|
+
p(P, {
|
|
14052
14053
|
color: "warning",
|
|
14053
14054
|
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
14054
14055
|
})
|
|
@@ -14068,7 +14069,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14068
14069
|
onClick: Se(r.handleFollow, ["stop"])
|
|
14069
14070
|
}, {
|
|
14070
14071
|
prepend: u(() => [
|
|
14071
|
-
p(
|
|
14072
|
+
p(P, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
14072
14073
|
]),
|
|
14073
14074
|
default: u(() => [
|
|
14074
14075
|
K(n(t.$t("actions.follow")) + " ", 1)
|
|
@@ -14094,16 +14095,16 @@ function wh(t, e, o, i, a, r) {
|
|
|
14094
14095
|
})
|
|
14095
14096
|
]),
|
|
14096
14097
|
_: 1
|
|
14097
|
-
})) :
|
|
14098
|
+
})) : R("", !0),
|
|
14098
14099
|
a.showMeteo && o.simple ? (g(), A(D, {
|
|
14099
14100
|
key: 2,
|
|
14100
14101
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
14101
14102
|
style: { width: "100vw", "z-index": "1001" }
|
|
14102
14103
|
}, {
|
|
14103
14104
|
default: u(() => [
|
|
14104
|
-
p(
|
|
14105
|
+
p(m, null, {
|
|
14105
14106
|
default: u(() => {
|
|
14106
|
-
var
|
|
14107
|
+
var k;
|
|
14107
14108
|
return [
|
|
14108
14109
|
s("div", Qm, [
|
|
14109
14110
|
s("div", $m, [
|
|
@@ -14111,9 +14112,9 @@ function wh(t, e, o, i, a, r) {
|
|
|
14111
14112
|
s("div", eh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14112
14113
|
]),
|
|
14113
14114
|
s("div", th, [
|
|
14114
|
-
(
|
|
14115
|
-
var
|
|
14116
|
-
return (
|
|
14115
|
+
(k = o.followList) != null && k.some((x) => {
|
|
14116
|
+
var T, _;
|
|
14117
|
+
return (x == null ? void 0 : x.id) === a.form.followId || ((T = x == null ? void 0 : x.coordinate) == null ? void 0 : T.lng) === a.form.lng && ((_ = x == null ? void 0 : x.coordinate) == null ? void 0 : _.lat) === a.form.lat;
|
|
14117
14118
|
}) ? (g(), A(l, {
|
|
14118
14119
|
key: 0,
|
|
14119
14120
|
class: "text-none text-body-1 rounded-circle",
|
|
@@ -14125,7 +14126,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14125
14126
|
onClick: Se(r.handleCancelFollow, ["stop"])
|
|
14126
14127
|
}, {
|
|
14127
14128
|
default: u(() => [
|
|
14128
|
-
p(
|
|
14129
|
+
p(P, {
|
|
14129
14130
|
icon: "mdi-star",
|
|
14130
14131
|
color: "warning",
|
|
14131
14132
|
size: "20"
|
|
@@ -14143,7 +14144,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14143
14144
|
onClick: Se(r.handleFollow, ["stop"])
|
|
14144
14145
|
}, {
|
|
14145
14146
|
default: u(() => [
|
|
14146
|
-
p(
|
|
14147
|
+
p(P, {
|
|
14147
14148
|
icon: "mdi-star-outline",
|
|
14148
14149
|
size: "20"
|
|
14149
14150
|
})
|
|
@@ -14165,27 +14166,27 @@ function wh(t, e, o, i, a, r) {
|
|
|
14165
14166
|
}, 8, ["onClick"])
|
|
14166
14167
|
])
|
|
14167
14168
|
]),
|
|
14168
|
-
e[21] || (e[21] = s("div", { class: "px-5 py-
|
|
14169
|
+
e[21] || (e[21] = s("div", { class: "px-5 py-0 text-label text-body-1" }, "Spot Weather", -1))
|
|
14169
14170
|
];
|
|
14170
14171
|
}),
|
|
14171
14172
|
_: 1,
|
|
14172
14173
|
__: [21]
|
|
14173
14174
|
}),
|
|
14174
14175
|
p(f),
|
|
14175
|
-
p(
|
|
14176
|
+
p(L, { class: "text-body-1 px-0 py-2" }, {
|
|
14176
14177
|
default: u(() => {
|
|
14177
|
-
var
|
|
14178
|
+
var k, x;
|
|
14178
14179
|
return [
|
|
14179
14180
|
s("div", oh, [
|
|
14180
14181
|
s("div", ah, n(t.$t("time.time")), 1),
|
|
14181
|
-
s("div", ih, n(r.computedTzTime((
|
|
14182
|
+
s("div", ih, n(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
|
|
14182
14183
|
]),
|
|
14183
14184
|
s("div", rh, [
|
|
14184
14185
|
e[22] || (e[22] = s("div", {
|
|
14185
14186
|
style: { width: "60px" },
|
|
14186
14187
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
14187
14188
|
}, "LT", -1)),
|
|
14188
|
-
s("div", sh, n(r.computedLocalTime((
|
|
14189
|
+
s("div", sh, n(r.computedLocalTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14189
14190
|
]),
|
|
14190
14191
|
s("div", lh, [
|
|
14191
14192
|
s("div", nh, [
|
|
@@ -14223,7 +14224,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14223
14224
|
})
|
|
14224
14225
|
]),
|
|
14225
14226
|
_: 1
|
|
14226
|
-
})) :
|
|
14227
|
+
})) : R("", !0),
|
|
14227
14228
|
Ye(s("div", fh, [
|
|
14228
14229
|
(g(), S("svg", yh, [
|
|
14229
14230
|
s("use", {
|
|
@@ -14235,7 +14236,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14235
14236
|
])
|
|
14236
14237
|
]);
|
|
14237
14238
|
}
|
|
14238
|
-
const xh = /* @__PURE__ */
|
|
14239
|
+
const xh = /* @__PURE__ */ X(um, [["render", wh]]);
|
|
14239
14240
|
const vh = {
|
|
14240
14241
|
name: "IdmMeasure",
|
|
14241
14242
|
props: {
|
|
@@ -14300,7 +14301,7 @@ const vh = {
|
|
|
14300
14301
|
else {
|
|
14301
14302
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
|
|
14302
14303
|
let i = this.geojson.find((a) => !a.closed);
|
|
14303
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
14304
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
14304
14305
|
}
|
|
14305
14306
|
},
|
|
14306
14307
|
immediate: !0
|
|
@@ -14334,41 +14335,41 @@ const vh = {
|
|
|
14334
14335
|
}
|
|
14335
14336
|
},
|
|
14336
14337
|
handleDrag(t) {
|
|
14337
|
-
var o, i, a, r, l,
|
|
14338
|
+
var o, i, a, r, l, c, m, f, d, b;
|
|
14338
14339
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14339
14340
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14340
14341
|
const v = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
14341
14342
|
this.pointMarkers[v.id].filter((y) => {
|
|
14342
14343
|
var B;
|
|
14343
14344
|
return ((B = y._element) == null ? void 0 : B.id) === e;
|
|
14344
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
14345
|
-
let
|
|
14345
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
14346
|
+
let C;
|
|
14346
14347
|
v.features.forEach((y, B) => {
|
|
14347
14348
|
if (y.geometry.type === "Point" && y.properties.id === e.split("-")[1]) {
|
|
14348
|
-
|
|
14349
|
+
C = B;
|
|
14349
14350
|
return;
|
|
14350
14351
|
}
|
|
14351
14352
|
});
|
|
14352
|
-
const
|
|
14353
|
+
const L = v.features.filter((y) => y.geometry.type === "Point");
|
|
14353
14354
|
this.handleTmpPointUpdate(
|
|
14354
14355
|
v,
|
|
14355
|
-
|
|
14356
|
-
{ lng: (f = (
|
|
14357
|
-
|
|
14356
|
+
L[C - 1],
|
|
14357
|
+
{ lng: (f = (m = t.target) == null ? void 0 : m._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: L[C].properties },
|
|
14358
|
+
C === L.length - 1 ? void 0 : L[C + 1]
|
|
14358
14359
|
);
|
|
14359
14360
|
}
|
|
14360
14361
|
},
|
|
14361
14362
|
handleDragEnd(t) {
|
|
14362
|
-
var o, i, a, r, l,
|
|
14363
|
+
var o, i, a, r, l, c, m, f, d, b;
|
|
14363
14364
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14364
14365
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14365
|
-
const v = this.geojson.filter((
|
|
14366
|
-
this.pointMarkers[v.id].filter((
|
|
14366
|
+
const v = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
|
|
14367
|
+
this.pointMarkers[v.id].filter((L) => {
|
|
14367
14368
|
var y;
|
|
14368
|
-
return ((y =
|
|
14369
|
-
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (
|
|
14370
|
-
const
|
|
14371
|
-
|
|
14369
|
+
return ((y = L._element) == null ? void 0 : y.id) === e;
|
|
14370
|
+
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
14371
|
+
const C = v.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
|
|
14372
|
+
C.geometry.coordinates = [(f = (m = t.target) == null ? void 0 : m._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], v.features = v.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(v);
|
|
14372
14373
|
}
|
|
14373
14374
|
},
|
|
14374
14375
|
handleContextmenu(t) {
|
|
@@ -14376,27 +14377,27 @@ const vh = {
|
|
|
14376
14377
|
t.preventDefault(), (o = this.contextmenu) == null || o.remove();
|
|
14377
14378
|
const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
14378
14379
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14379
|
-
const
|
|
14380
|
-
if (
|
|
14380
|
+
const c = this.geojson.filter((m) => m.id === e.split("-")[0])[0].features.filter((m) => m.geometry.type === "Point");
|
|
14381
|
+
if (c.length > 2 && c.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
14381
14382
|
const f = document.createElement("div");
|
|
14382
14383
|
f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ze.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
14383
14384
|
}
|
|
14384
14385
|
}
|
|
14385
14386
|
},
|
|
14386
14387
|
handleClick(t) {
|
|
14387
|
-
var o, i, a, r, l,
|
|
14388
|
+
var o, i, a, r, l, c;
|
|
14388
14389
|
(o = this.contextmenu) == null || o.remove();
|
|
14389
14390
|
const e = t.originalEvent.target.className;
|
|
14390
14391
|
if (e === "marker-close") {
|
|
14391
|
-
const
|
|
14392
|
-
f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !==
|
|
14392
|
+
const m = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((d) => d.id === m)[0];
|
|
14393
|
+
f && this.handleClear(f, !0), this.geojson = this.geojson.filter((d) => d.id !== m), !this.toggle && !((r = this.geojson) != null && r.some((d) => d.closed)) && this.handleUnbind();
|
|
14393
14394
|
} else if (e === "del-point") {
|
|
14394
|
-
const
|
|
14395
|
-
f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !==
|
|
14395
|
+
const m = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), f = this.geojson.filter((d) => d.id === m[0])[0];
|
|
14396
|
+
f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== m[1]), this.handlePointUpdate(f);
|
|
14396
14397
|
} else if (e !== "marker-label" && this.toggle) {
|
|
14397
|
-
let
|
|
14398
|
-
|
|
14399
|
-
const f =
|
|
14398
|
+
let m = this.geojson.at(-1);
|
|
14399
|
+
m || (m = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(m)), m.features = m.features.filter((d) => d.geometry.type === "Point");
|
|
14400
|
+
const f = W.feature(
|
|
14400
14401
|
{
|
|
14401
14402
|
type: "Point",
|
|
14402
14403
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -14407,7 +14408,7 @@ const vh = {
|
|
|
14407
14408
|
sumLabel: "Start"
|
|
14408
14409
|
}
|
|
14409
14410
|
);
|
|
14410
|
-
|
|
14411
|
+
m.features.push(f), this.handlePointUpdate(m);
|
|
14411
14412
|
}
|
|
14412
14413
|
},
|
|
14413
14414
|
handlePointUpdate(t) {
|
|
@@ -14416,36 +14417,36 @@ const vh = {
|
|
|
14416
14417
|
let o = 0;
|
|
14417
14418
|
const i = [];
|
|
14418
14419
|
for (let a = 1; a < e.length; a++) {
|
|
14419
|
-
const r = e[a - 1], l = e[a],
|
|
14420
|
+
const r = e[a - 1], l = e[a], c = r.properties, m = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(m, f, c.mode === "RL", 4), b = Ve.calculateBearing(m, f, c.mode === "RL", 2);
|
|
14420
14421
|
o = q.roundPrecision(o + d, 4);
|
|
14421
14422
|
let v;
|
|
14422
|
-
|
|
14423
|
-
const
|
|
14424
|
-
|
|
14425
|
-
const
|
|
14426
|
-
|
|
14423
|
+
c.mode === "RL" ? v = q.convertToMonotonicLng([m, f]) : v = q.convertToMonotonicLng(Ve.interpolateCoordinates(m, f, 200));
|
|
14424
|
+
const z = W.lineString(v.map((L) => [L.lng, L.lat]));
|
|
14425
|
+
z.properties.dist = d, z.properties.bearing = b, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
|
|
14426
|
+
const C = e[a];
|
|
14427
|
+
C.properties.totalDist = q.roundPrecision((c.totalDist ? c.totalDist : 0) + d, 4), C.properties.sumLabel = C.properties.totalDist + " nm";
|
|
14427
14428
|
}
|
|
14428
14429
|
e.push(...i), t.total = o;
|
|
14429
14430
|
}
|
|
14430
14431
|
return this.handleRender(t), t;
|
|
14431
14432
|
},
|
|
14432
14433
|
handleTmpPointUpdate(t, e, o, i) {
|
|
14433
|
-
const a =
|
|
14434
|
+
const a = W.featureCollection([]);
|
|
14434
14435
|
let r, l;
|
|
14435
14436
|
if (e) {
|
|
14436
|
-
const
|
|
14437
|
-
r = Ve.calculateDistance(f, d,
|
|
14437
|
+
const m = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
|
|
14438
|
+
r = Ve.calculateDistance(f, d, m.mode === "RL", 4), l = Ve.calculateBearing(f, d, m.mode === "RL", 2);
|
|
14438
14439
|
let b;
|
|
14439
|
-
|
|
14440
|
-
const v =
|
|
14440
|
+
m.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14441
|
+
const v = W.lineString(b.map((z) => [z.lng, z.lat]));
|
|
14441
14442
|
v.properties.dist = r, v.properties.bearing = l, a.features.push(v);
|
|
14442
14443
|
}
|
|
14443
14444
|
if (i) {
|
|
14444
|
-
const
|
|
14445
|
-
r = Ve.calculateDistance(f, d,
|
|
14445
|
+
const m = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
14446
|
+
r = Ve.calculateDistance(f, d, m.mode === "RL", 4), l = Ve.calculateBearing(f, d, m.mode === "RL", 2);
|
|
14446
14447
|
let b;
|
|
14447
|
-
|
|
14448
|
-
const v =
|
|
14448
|
+
m.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14449
|
+
const v = W.lineString(b.map((z) => [z.lng, z.lat]));
|
|
14449
14450
|
v.properties.dist = r, v.properties.bearing = l, a.features.push(v);
|
|
14450
14451
|
}
|
|
14451
14452
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -14486,35 +14487,35 @@ const vh = {
|
|
|
14486
14487
|
// 'text-halo-blur': 0,
|
|
14487
14488
|
}
|
|
14488
14489
|
});
|
|
14489
|
-
let
|
|
14490
|
+
let c;
|
|
14490
14491
|
if (i)
|
|
14491
|
-
|
|
14492
|
+
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
14492
14493
|
else {
|
|
14493
|
-
const
|
|
14494
|
-
|
|
14494
|
+
const m = q.roundPrecision((t.total ?? 0) + r, 1);
|
|
14495
|
+
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${m}</b>nm, ${this.$t(
|
|
14495
14496
|
"measure.bearing"
|
|
14496
14497
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
14497
14498
|
"measure.switchTips"
|
|
14498
14499
|
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
14499
14500
|
}
|
|
14500
14501
|
if (this.tipMarker)
|
|
14501
|
-
this.tipMarker._element.innerHTML =
|
|
14502
|
+
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
14502
14503
|
else {
|
|
14503
|
-
const
|
|
14504
|
-
|
|
14504
|
+
const m = document.createElement("div");
|
|
14505
|
+
m.className = "idm-gl4-measure-tip-marker", m.innerHTML = c, this.tipMarker = new ze.Marker(m).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
14505
14506
|
}
|
|
14506
14507
|
},
|
|
14507
14508
|
handleMove(t) {
|
|
14508
14509
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
14509
14510
|
let e = this.geojson.at(-1);
|
|
14510
|
-
e || (e =
|
|
14511
|
+
e || (e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
14511
14512
|
const o = e.features.filter((i) => i.geometry.type === "Point");
|
|
14512
14513
|
o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
14513
14514
|
},
|
|
14514
14515
|
handleDblClick(t) {
|
|
14515
14516
|
t.preventDefault();
|
|
14516
14517
|
let e = this.geojson.at(-1);
|
|
14517
|
-
e.closed = !0, this.handleRender(e), e =
|
|
14518
|
+
e.closed = !0, this.handleRender(e), e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
14518
14519
|
},
|
|
14519
14520
|
handleRender(t) {
|
|
14520
14521
|
var e;
|
|
@@ -14573,41 +14574,41 @@ const vh = {
|
|
|
14573
14574
|
// 'text-halo-blur': 0,
|
|
14574
14575
|
}
|
|
14575
14576
|
});
|
|
14576
|
-
const l = t.features.filter((
|
|
14577
|
-
for (const
|
|
14578
|
-
const
|
|
14579
|
-
|
|
14580
|
-
const f = new ze.Marker({ element:
|
|
14577
|
+
const l = t.features.filter((c) => c.geometry.type === "Point");
|
|
14578
|
+
for (const c of l) {
|
|
14579
|
+
const m = document.createElement("div");
|
|
14580
|
+
m.id = `${t.id}-${c.properties.id}`, m.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, m.innerHTML = '<div class="marker-circle"></div>';
|
|
14581
|
+
const f = new ze.Marker({ element: m, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
14581
14582
|
f.on("drag", this.handleDrag), f.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(f) : this.pointMarkers[t.id] = [f];
|
|
14582
14583
|
}
|
|
14583
14584
|
if (t.closed) {
|
|
14584
|
-
const
|
|
14585
|
-
d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(
|
|
14585
|
+
const c = l.at(-1), f = t.features.filter((b) => b.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
14586
|
+
d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ze.Marker(d).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
14586
14587
|
}
|
|
14587
14588
|
}
|
|
14588
14589
|
},
|
|
14589
14590
|
handleClear(t, e = !0) {
|
|
14590
|
-
var l,
|
|
14591
|
+
var l, c, m, f, d, b, v, z, C, L;
|
|
14591
14592
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
14592
|
-
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (
|
|
14593
|
+
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (m = this.map) != null && m.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (v = this.pointMarkers[t.id]) == null || v.forEach((y) => {
|
|
14593
14594
|
y == null || y.remove();
|
|
14594
|
-
}), this.pointMarkers[t.id] = [], (
|
|
14595
|
+
}), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((C = this.map) != null && C.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
14595
14596
|
}
|
|
14596
14597
|
}
|
|
14597
14598
|
}, _h = { class: "idm-gl4-measure" };
|
|
14598
14599
|
function kh(t, e, o, i, a, r) {
|
|
14599
|
-
const l =
|
|
14600
|
+
const l = w("VBtn"), c = w("VTooltip");
|
|
14600
14601
|
return g(), S("div", _h, [
|
|
14601
14602
|
s("div", {
|
|
14602
14603
|
class: "menu-bar-box transition pa-1",
|
|
14603
14604
|
style: ee({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
14604
14605
|
}, [
|
|
14605
|
-
p(
|
|
14606
|
+
p(c, {
|
|
14606
14607
|
text: t.$t("measure.measure"),
|
|
14607
14608
|
location: "left"
|
|
14608
14609
|
}, {
|
|
14609
|
-
activator: u(({ props:
|
|
14610
|
-
p(l, j(
|
|
14610
|
+
activator: u(({ props: m }) => [
|
|
14611
|
+
p(l, j(m, {
|
|
14611
14612
|
"min-width": "32",
|
|
14612
14613
|
width: "32",
|
|
14613
14614
|
height: "32",
|
|
@@ -14626,7 +14627,7 @@ function kh(t, e, o, i, a, r) {
|
|
|
14626
14627
|
], 4)
|
|
14627
14628
|
]);
|
|
14628
14629
|
}
|
|
14629
|
-
const zh = /* @__PURE__ */
|
|
14630
|
+
const zh = /* @__PURE__ */ X(vh, [["render", kh]]);
|
|
14630
14631
|
const Lh = {
|
|
14631
14632
|
name: "IdmBottomBar",
|
|
14632
14633
|
components: { DateTimePicker: Mo },
|
|
@@ -14757,7 +14758,7 @@ const Lh = {
|
|
|
14757
14758
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
14758
14759
|
}, Ih = ["onClick"], Rh = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ah = { class: "text-body-1" };
|
|
14759
14760
|
function Oh(t, e, o, i, a, r) {
|
|
14760
|
-
const l =
|
|
14761
|
+
const l = w("DateTimePicker"), c = w("VListItemTitle"), m = w("VListItem"), f = w("VList"), d = w("VMenu"), b = w("VBtn"), v = w("VDivider"), z = w("VTooltip");
|
|
14761
14762
|
return g(), S("div", Ph, [
|
|
14762
14763
|
s("div", {
|
|
14763
14764
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -14771,10 +14772,10 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14771
14772
|
"day-about": a.dayAbout,
|
|
14772
14773
|
"interval-hour": a.intervalHour
|
|
14773
14774
|
}, t.$attrs, {
|
|
14774
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
14775
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
14776
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
14777
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
14775
|
+
onCurrentTimestamp: e[0] || (e[0] = (C) => a.currentTimestamp = C),
|
|
14776
|
+
onCurrentRealTime: e[1] || (e[1] = (C) => a.currentRealTime = C),
|
|
14777
|
+
onMinTimestamp: e[2] || (e[2] = (C) => a.minTimestamp = C),
|
|
14778
|
+
onMaxTimestamp: e[3] || (e[3] = (C) => a.maxTimestamp = C)
|
|
14778
14779
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
14779
14780
|
p(b, {
|
|
14780
14781
|
text: "",
|
|
@@ -14788,24 +14789,24 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14788
14789
|
default: u(() => [
|
|
14789
14790
|
p(f, { class: "pa-1" }, {
|
|
14790
14791
|
default: u(() => [
|
|
14791
|
-
(g(!0), S(xe, null, ke(a.intervalOptions, (
|
|
14792
|
-
key:
|
|
14793
|
-
value:
|
|
14794
|
-
variant: a.intervalHour ===
|
|
14792
|
+
(g(!0), S(xe, null, ke(a.intervalOptions, (C, L) => (g(), A(m, {
|
|
14793
|
+
key: L,
|
|
14794
|
+
value: C,
|
|
14795
|
+
variant: a.intervalHour === C ? "tonal" : "text",
|
|
14795
14796
|
color: "primary",
|
|
14796
14797
|
rounded: "",
|
|
14797
|
-
active: a.intervalHour ===
|
|
14798
|
+
active: a.intervalHour === C,
|
|
14798
14799
|
height: "30",
|
|
14799
14800
|
"min-height": "30",
|
|
14800
14801
|
"min-width": "30",
|
|
14801
14802
|
class: "pa-0 text-center text-body-1"
|
|
14802
14803
|
}, {
|
|
14803
14804
|
default: u(() => [
|
|
14804
|
-
p(
|
|
14805
|
-
onClick: (y) => a.intervalHour =
|
|
14805
|
+
p(c, {
|
|
14806
|
+
onClick: (y) => a.intervalHour = C
|
|
14806
14807
|
}, {
|
|
14807
14808
|
default: u(() => [
|
|
14808
|
-
K(n(
|
|
14809
|
+
K(n(C) + "h", 1)
|
|
14809
14810
|
]),
|
|
14810
14811
|
_: 2
|
|
14811
14812
|
}, 1032, ["onClick"])
|
|
@@ -14901,16 +14902,16 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14901
14902
|
style: { height: "16px" }
|
|
14902
14903
|
}),
|
|
14903
14904
|
s("div", Sh, [
|
|
14904
|
-
p(
|
|
14905
|
+
p(z, {
|
|
14905
14906
|
text: t.$t("weather.windBarbs"),
|
|
14906
14907
|
location: "top"
|
|
14907
14908
|
}, {
|
|
14908
|
-
activator: u(({ props:
|
|
14909
|
-
var
|
|
14909
|
+
activator: u(({ props: C }) => {
|
|
14910
|
+
var L, y;
|
|
14910
14911
|
return [
|
|
14911
|
-
p(b, j(
|
|
14912
|
+
p(b, j(C, {
|
|
14912
14913
|
class: "pa-1 d-flex",
|
|
14913
|
-
color: (
|
|
14914
|
+
color: (L = o.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
|
|
14914
14915
|
variant: (y = o.weatherCheckList) != null && y.includes("wind") ? "elevated" : "text",
|
|
14915
14916
|
height: "24",
|
|
14916
14917
|
width: "24",
|
|
@@ -14927,16 +14928,16 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14927
14928
|
}),
|
|
14928
14929
|
_: 1
|
|
14929
14930
|
}, 8, ["text"]),
|
|
14930
|
-
p(
|
|
14931
|
+
p(z, {
|
|
14931
14932
|
text: t.$t("weather.sigWaveHeight"),
|
|
14932
14933
|
location: "top"
|
|
14933
14934
|
}, {
|
|
14934
|
-
activator: u(({ props:
|
|
14935
|
-
var
|
|
14935
|
+
activator: u(({ props: C }) => {
|
|
14936
|
+
var L, y;
|
|
14936
14937
|
return [
|
|
14937
|
-
p(b, j(
|
|
14938
|
+
p(b, j(C, {
|
|
14938
14939
|
class: "pa-1 d-flex",
|
|
14939
|
-
color: (
|
|
14940
|
+
color: (L = o.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
|
|
14940
14941
|
variant: (y = o.weatherCheckList) != null && y.includes("sig-wave-height") ? "elevated" : "text",
|
|
14941
14942
|
height: "24",
|
|
14942
14943
|
width: "24",
|
|
@@ -14944,7 +14945,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14944
14945
|
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
14945
14946
|
}), {
|
|
14946
14947
|
default: u(() => [
|
|
14947
|
-
s("i", j(
|
|
14948
|
+
s("i", j(C, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
14948
14949
|
]),
|
|
14949
14950
|
_: 2
|
|
14950
14951
|
}, 1040, ["color", "variant"])
|
|
@@ -14952,16 +14953,16 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14952
14953
|
}),
|
|
14953
14954
|
_: 1
|
|
14954
14955
|
}, 8, ["text"]),
|
|
14955
|
-
p(
|
|
14956
|
+
p(z, {
|
|
14956
14957
|
text: t.$t("weather.currentDirection"),
|
|
14957
14958
|
location: "top"
|
|
14958
14959
|
}, {
|
|
14959
|
-
activator: u(({ props:
|
|
14960
|
-
var
|
|
14960
|
+
activator: u(({ props: C }) => {
|
|
14961
|
+
var L, y;
|
|
14961
14962
|
return [
|
|
14962
|
-
p(b, j(
|
|
14963
|
+
p(b, j(C, {
|
|
14963
14964
|
class: "pa-1 d-flex",
|
|
14964
|
-
color: (
|
|
14965
|
+
color: (L = o.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
|
|
14965
14966
|
variant: (y = o.weatherCheckList) != null && y.includes("current-direction") ? "elevated" : "text",
|
|
14966
14967
|
height: "24",
|
|
14967
14968
|
width: "24",
|
|
@@ -14969,7 +14970,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14969
14970
|
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
14970
14971
|
}), {
|
|
14971
14972
|
default: u(() => [
|
|
14972
|
-
s("i", j(
|
|
14973
|
+
s("i", j(C, { class: "iconfont icon-Current" }), null, 16)
|
|
14973
14974
|
]),
|
|
14974
14975
|
_: 2
|
|
14975
14976
|
}, 1040, ["color", "variant"])
|
|
@@ -14977,12 +14978,12 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14977
14978
|
}),
|
|
14978
14979
|
_: 1
|
|
14979
14980
|
}, 8, ["text"]),
|
|
14980
|
-
p(
|
|
14981
|
+
p(z, {
|
|
14981
14982
|
text: t.$t("weather.weatherLayers"),
|
|
14982
14983
|
location: "top"
|
|
14983
14984
|
}, {
|
|
14984
|
-
activator: u(({ props:
|
|
14985
|
-
p(b, j(
|
|
14985
|
+
activator: u(({ props: C }) => [
|
|
14986
|
+
p(b, j(C, {
|
|
14986
14987
|
class: "pa-1 d-flex",
|
|
14987
14988
|
variant: "text",
|
|
14988
14989
|
height: "24",
|
|
@@ -14991,7 +14992,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14991
14992
|
onClick: r.handleClickFastMore
|
|
14992
14993
|
}), {
|
|
14993
14994
|
default: u(() => [
|
|
14994
|
-
s("i", j(
|
|
14995
|
+
s("i", j(C, { class: "iconfont icon-dots-align" }), null, 16)
|
|
14995
14996
|
]),
|
|
14996
14997
|
_: 2
|
|
14997
14998
|
}, 1040, ["onClick"])
|
|
@@ -15010,7 +15011,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15010
15011
|
height: "30",
|
|
15011
15012
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
15012
15013
|
color: a.source === "GFS" ? "primary" : "",
|
|
15013
|
-
onClick: e[7] || (e[7] = (
|
|
15014
|
+
onClick: e[7] || (e[7] = (C) => a.source = "GFS")
|
|
15014
15015
|
}, {
|
|
15015
15016
|
default: u(() => e[16] || (e[16] = [
|
|
15016
15017
|
K("NOAA", -1)
|
|
@@ -15023,7 +15024,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15023
15024
|
height: "30",
|
|
15024
15025
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
15025
15026
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
15026
|
-
onClick: e[8] || (e[8] = (
|
|
15027
|
+
onClick: e[8] || (e[8] = (C) => a.source = "ECMWF")
|
|
15027
15028
|
}, {
|
|
15028
15029
|
default: u(() => e[17] || (e[17] = [
|
|
15029
15030
|
K("ECMWF", -1)
|
|
@@ -15038,12 +15039,12 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15038
15039
|
style: ee({ right: a.right + "px" })
|
|
15039
15040
|
}, [
|
|
15040
15041
|
a.showTimezone ? (g(), S("div", Dh, [
|
|
15041
|
-
(g(!0), S(xe, null, ke(a.offsets, (
|
|
15042
|
-
key:
|
|
15042
|
+
(g(!0), S(xe, null, ke(a.offsets, (C) => (g(), S("div", {
|
|
15043
|
+
key: C,
|
|
15043
15044
|
class: "item rounded text-body-2 hover-active",
|
|
15044
|
-
onClick: (
|
|
15045
|
-
}, n(
|
|
15046
|
-
])) :
|
|
15045
|
+
onClick: (L) => a.timeZone = C
|
|
15046
|
+
}, n(C < 0 ? C : "+" + C), 9, Ih))), 128))
|
|
15047
|
+
])) : R("", !0),
|
|
15047
15048
|
s("div", Rh, [
|
|
15048
15049
|
p(b, {
|
|
15049
15050
|
text: "",
|
|
@@ -15051,7 +15052,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15051
15052
|
height: "28",
|
|
15052
15053
|
class: "pa-1 text-body-1",
|
|
15053
15054
|
color: "primary",
|
|
15054
|
-
onClick: e[9] || (e[9] = (
|
|
15055
|
+
onClick: e[9] || (e[9] = (C) => a.showTimezone = !a.showTimezone)
|
|
15055
15056
|
}, {
|
|
15056
15057
|
default: u(() => [
|
|
15057
15058
|
K(" UTC " + n(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
@@ -15063,7 +15064,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15063
15064
|
], 4)
|
|
15064
15065
|
]);
|
|
15065
15066
|
}
|
|
15066
|
-
const Bh = /* @__PURE__ */
|
|
15067
|
+
const Bh = /* @__PURE__ */ X(Lh, [["render", Oh]]);
|
|
15067
15068
|
const jh = {
|
|
15068
15069
|
name: "IdmBottomBar",
|
|
15069
15070
|
components: { DateTimePicker: Mo },
|
|
@@ -15169,7 +15170,7 @@ const jh = {
|
|
|
15169
15170
|
}
|
|
15170
15171
|
}, Eh = { class: "timeline-box px-2 d-flex justify-center align-center rounded ga-1" };
|
|
15171
15172
|
function Nh(t, e, o, i, a, r) {
|
|
15172
|
-
const l =
|
|
15173
|
+
const l = w("VBtn"), c = w("DateTimePicker");
|
|
15173
15174
|
return g(), S("div", {
|
|
15174
15175
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
15175
15176
|
style: ee({ bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
@@ -15205,7 +15206,7 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15205
15206
|
_: 1,
|
|
15206
15207
|
__: [5]
|
|
15207
15208
|
}, 8, ["onClick"]),
|
|
15208
|
-
p(
|
|
15209
|
+
p(c, j({
|
|
15209
15210
|
ref: "dateTimePicker",
|
|
15210
15211
|
"date-time": a.currentDateTimeZ,
|
|
15211
15212
|
"time-zone": a.timeZone,
|
|
@@ -15213,10 +15214,10 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15213
15214
|
"interval-hour": a.intervalHour,
|
|
15214
15215
|
height: 32
|
|
15215
15216
|
}, t.$attrs, {
|
|
15216
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
15217
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
15218
|
-
onMinTimestamp: e[2] || (e[2] = (
|
|
15219
|
-
onMaxTimestamp: e[3] || (e[3] = (
|
|
15217
|
+
onCurrentTimestamp: e[0] || (e[0] = (m) => a.currentTimestamp = m),
|
|
15218
|
+
onCurrentRealTime: e[1] || (e[1] = (m) => a.currentRealTime = m),
|
|
15219
|
+
onMinTimestamp: e[2] || (e[2] = (m) => a.minTimestamp = m),
|
|
15220
|
+
onMaxTimestamp: e[3] || (e[3] = (m) => a.maxTimestamp = m)
|
|
15220
15221
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
15221
15222
|
p(l, {
|
|
15222
15223
|
size: "small",
|
|
@@ -15267,7 +15268,7 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15267
15268
|
])
|
|
15268
15269
|
], 4);
|
|
15269
15270
|
}
|
|
15270
|
-
const Ja = /* @__PURE__ */
|
|
15271
|
+
const Ja = /* @__PURE__ */ X(jh, [["render", Nh]]), Fh = {
|
|
15271
15272
|
name: "IdmGL4",
|
|
15272
15273
|
components: {
|
|
15273
15274
|
IdmOtherLayer: pl,
|
|
@@ -15336,7 +15337,7 @@ const Ja = /* @__PURE__ */ Z(jh, [["render", Nh]]), Fh = {
|
|
|
15336
15337
|
class: "map-gl4-home"
|
|
15337
15338
|
};
|
|
15338
15339
|
function Gh(t, e, o, i, a, r) {
|
|
15339
|
-
const l =
|
|
15340
|
+
const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), m = w("IdmTropicals"), f = w("IdmMeasure"), d = w("IdmSpot"), b = w("IdmBottomBar"), v = w("IdmTimePlayer");
|
|
15340
15341
|
return g(), S("div", Hh, [
|
|
15341
15342
|
p(l, j({
|
|
15342
15343
|
ref: "idmOtherLayers",
|
|
@@ -15350,11 +15351,11 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15350
15351
|
"forecast-model": o.forecastModel,
|
|
15351
15352
|
"map-feather": o.mapFeather
|
|
15352
15353
|
}, t.$attrs, {
|
|
15353
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
15354
|
-
a.otherCheckList =
|
|
15354
|
+
onOtherCheckList: e[0] || (e[0] = (z) => {
|
|
15355
|
+
a.otherCheckList = z, a.layerVersion = a.layerVersion + 1;
|
|
15355
15356
|
})
|
|
15356
15357
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15357
|
-
p(
|
|
15358
|
+
p(c, j({
|
|
15358
15359
|
ref: "idmWeatherLayers",
|
|
15359
15360
|
simple: o.simple,
|
|
15360
15361
|
map: o.map,
|
|
@@ -15366,14 +15367,14 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15366
15367
|
"forecast-model": o.forecastModel,
|
|
15367
15368
|
"map-feather": o.mapFeather
|
|
15368
15369
|
}, t.$attrs, {
|
|
15369
|
-
onAutoActive: e[1] || (e[1] = (
|
|
15370
|
-
a.autoActive =
|
|
15370
|
+
onAutoActive: e[1] || (e[1] = (z) => {
|
|
15371
|
+
a.autoActive = z, a.layerVersion = a.layerVersion + 1;
|
|
15371
15372
|
}),
|
|
15372
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
15373
|
-
a.weatherCheckList =
|
|
15373
|
+
onWeatherCheckList: e[2] || (e[2] = (z) => {
|
|
15374
|
+
a.weatherCheckList = z, a.layerVersion = a.layerVersion + 1;
|
|
15374
15375
|
})
|
|
15375
15376
|
}), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15376
|
-
p(
|
|
15377
|
+
p(m, j({
|
|
15377
15378
|
simple: o.simple,
|
|
15378
15379
|
map: o.map,
|
|
15379
15380
|
token: o.token,
|
|
@@ -15400,7 +15401,7 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15400
15401
|
"forecast-model": o.forecastModel,
|
|
15401
15402
|
"map-feather": o.mapFeather
|
|
15402
15403
|
}, t.$attrs), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
15403
|
-
o.simple ?
|
|
15404
|
+
o.simple ? R("", !0) : (g(), A(b, j({
|
|
15404
15405
|
key: 0,
|
|
15405
15406
|
ref: "idmBottomBar",
|
|
15406
15407
|
"forecast-model": o.forecastModel,
|
|
@@ -15412,19 +15413,19 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15412
15413
|
ref: "idmBottomBar",
|
|
15413
15414
|
"weather-check-list": a.weatherCheckList,
|
|
15414
15415
|
"map-feather": o.mapFeather
|
|
15415
|
-
}, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) :
|
|
15416
|
+
}, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) : R("", !0)
|
|
15416
15417
|
], 512);
|
|
15417
15418
|
}
|
|
15418
|
-
const Wh = /* @__PURE__ */
|
|
15419
|
+
const Wh = /* @__PURE__ */ X(Fh, [["render", Gh]]);
|
|
15419
15420
|
class Uh {
|
|
15420
15421
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
var o, i, a, r, l,
|
|
15422
|
+
pe(this, "originStyle");
|
|
15423
|
+
pe(this, "mapboxStyle");
|
|
15424
|
+
pe(this, "i4");
|
|
15425
|
+
pe(this, "hi");
|
|
15426
|
+
pe(this, "td");
|
|
15427
|
+
pe(this, "windy");
|
|
15428
|
+
var o, i, a, r, l, c, m, f, d, b, v, z, C, L, y, B, D, P, k, x, T, _, I, F, G, Y, Z, Q, $, J, le, ne, se, ie, me, ue, he, de, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, ge, Re, U, fe, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, V, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
15428
15429
|
this.i4 = {
|
|
15429
15430
|
source: {
|
|
15430
15431
|
type: "raster",
|
|
@@ -34067,23 +34068,23 @@ class Uh {
|
|
|
34067
34068
|
layers: [
|
|
34068
34069
|
(i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
|
|
34069
34070
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
|
|
34070
|
-
(
|
|
34071
|
-
(f = (
|
|
34071
|
+
(c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((h) => h.id === "ice-area-fill"),
|
|
34072
|
+
(f = (m = this.originStyle) == null ? void 0 : m.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
34072
34073
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
34073
|
-
(
|
|
34074
|
-
(
|
|
34074
|
+
(z = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : z.find((h) => h.id === "loadlines-fill"),
|
|
34075
|
+
(L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((h) => h.id === "empty-layer-0"),
|
|
34075
34076
|
(B = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
34076
|
-
(
|
|
34077
|
-
(
|
|
34078
|
-
(_ = (
|
|
34079
|
-
(F = (
|
|
34080
|
-
(
|
|
34081
|
-
(Q = (
|
|
34077
|
+
(P = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : P.find((h) => h.id === "country-boundaries"),
|
|
34078
|
+
(x = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : x.find((h) => h.id === "water-outline"),
|
|
34079
|
+
(_ = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : _.find((h) => h.id === "water-outline2"),
|
|
34080
|
+
(F = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
34081
|
+
(Y = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : Y.find((h) => h.id === "water-line-label"),
|
|
34082
|
+
(Q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : Q.find((h) => h.id === "water-point-label"),
|
|
34082
34083
|
(J = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : J.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
34083
|
-
(
|
|
34084
|
-
(ie = (
|
|
34085
|
-
(ue = (
|
|
34086
|
-
(
|
|
34084
|
+
(ne = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ne.find((h) => h.id === "ne-10m-outline"),
|
|
34085
|
+
(ie = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : ie.find((h) => h.id === "ne-10m-label"),
|
|
34086
|
+
(ue = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : ue.find((h) => h.id === "china-route-line"),
|
|
34087
|
+
(de = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : de.find((h) => h.id === "china-route-fill"),
|
|
34087
34088
|
(te = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : te.find((h) => h.id === "china-route-label"),
|
|
34088
34089
|
(ve = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : ve.find((h) => h.id === "admin-0-boundary-bg"),
|
|
34089
34090
|
(Te = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Te.find((h) => h.id === "admin-0-boundary"),
|
|
@@ -34091,7 +34092,7 @@ class Uh {
|
|
|
34091
34092
|
(H = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : H.find((h) => h.id === "country-label"),
|
|
34092
34093
|
(He = (oe = this.originStyle) == null ? void 0 : oe.light.layers) == null ? void 0 : He.find((h) => h.id === "continent-label"),
|
|
34093
34094
|
(ge = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : ge.find((h) => h.id === "tide-stations"),
|
|
34094
|
-
(
|
|
34095
|
+
(U = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : U.find((h) => h.id === "empty-layer-3"),
|
|
34095
34096
|
(ae = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ae.find((h) => h.id === "empty-layer-4")
|
|
34096
34097
|
]
|
|
34097
34098
|
},
|
|
@@ -34120,7 +34121,7 @@ class Uh {
|
|
|
34120
34121
|
(Be = (we = this.originStyle) == null ? void 0 : we.dark.layers) == null ? void 0 : Be.find((h) => h.id === "land"),
|
|
34121
34122
|
(Ne = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ne.find((h) => h.id === "water"),
|
|
34122
34123
|
(Ue = (N = this.originStyle) == null ? void 0 : N.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "ice-area-fill"),
|
|
34123
|
-
(Xe = (
|
|
34124
|
+
(Xe = (V = this.originStyle) == null ? void 0 : V.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "ice-area-line"),
|
|
34124
34125
|
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "loadlines-label"),
|
|
34125
34126
|
(Je = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : Je.find((h) => h.id === "loadlines-fill"),
|
|
34126
34127
|
($e = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : $e.find((h) => h.id === "empty-layer-0"),
|
|
@@ -34400,7 +34401,7 @@ const Vh = {
|
|
|
34400
34401
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
34401
34402
|
};
|
|
34402
34403
|
function Kh(t, e, o, i, a, r) {
|
|
34403
|
-
const l =
|
|
34404
|
+
const l = w("VBtn");
|
|
34404
34405
|
return g(), S("div", {
|
|
34405
34406
|
class: "mapbox-initial-gl4",
|
|
34406
34407
|
style: ee({ height: o.height, width: o.width })
|
|
@@ -34426,8 +34427,8 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34426
34427
|
__: [0]
|
|
34427
34428
|
}, 8, ["onClick"])
|
|
34428
34429
|
])
|
|
34429
|
-
], 4)) :
|
|
34430
|
-
o.simple ?
|
|
34430
|
+
], 4)) : R("", !0),
|
|
34431
|
+
o.simple ? R("", !0) : (g(), S("div", {
|
|
34431
34432
|
key: 1,
|
|
34432
34433
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
34433
34434
|
style: ee({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
@@ -34462,7 +34463,7 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34462
34463
|
}, 8, ["onClick"])
|
|
34463
34464
|
])
|
|
34464
34465
|
], 4)),
|
|
34465
|
-
o.simple ?
|
|
34466
|
+
o.simple ? R("", !0) : (g(), S("div", qh, [
|
|
34466
34467
|
e[3] || (e[3] = s("span", null, "© 2023", -1)),
|
|
34467
34468
|
s("span", null, "-" + n(r.computeYear), 1),
|
|
34468
34469
|
e[4] || (e[4] = s("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -34474,7 +34475,7 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34474
34475
|
]))
|
|
34475
34476
|
], 4);
|
|
34476
34477
|
}
|
|
34477
|
-
const Jh = /* @__PURE__ */
|
|
34478
|
+
const Jh = /* @__PURE__ */ X(Vh, [["render", Kh]]), cd = {
|
|
34478
34479
|
install(t) {
|
|
34479
34480
|
t.component("MapInitial", Jh), t.component("MapboxGL", Wh), t.component("TropicalGL", qa), t.component("LatLngGL", Xa), t.component("DateTimePicker", Mo), t.component("DateRangePicker", Ka), t.component("PortDetail", Do), t.component("TimePlayer", Ja);
|
|
34480
34481
|
}
|
|
@@ -34493,5 +34494,5 @@ export {
|
|
|
34493
34494
|
qa as TropicalGL,
|
|
34494
34495
|
Io as Viewport,
|
|
34495
34496
|
Fe as WebGL,
|
|
34496
|
-
|
|
34497
|
+
ce as WebGLSchema
|
|
34497
34498
|
};
|