@idmwx/idmui-gl4 1.8.8 → 1.8.9
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 +644 -644
- package/dist/index.umd.cjs +18 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var $a = Object.defineProperty;
|
|
2
2
|
var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as
|
|
3
|
+
var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
+
import De from "axios";
|
|
5
|
+
import { useTheme as Se } from "vuetify";
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as O, withCtx as f, createVNode as p, withModifiers as Ee, createElementVNode as s, createCommentVNode as R, normalizeClass as Ye, toDisplayString as m, createTextVNode as $, Fragment as we, renderList as _e, withDirectives as Ve, vShow as Ze, mergeProps as N, normalizeStyle as ae } from "vue";
|
|
7
7
|
import ke from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
|
-
import { LngLatHelper as
|
|
9
|
+
import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as We } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Co, TidesAssist as So } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Mo from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
13
13
|
import { LayerHelper as To, CompanyHelper as Ja } from "@idm-plugin/tag2";
|
|
14
14
|
import Qa from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
16
|
-
const
|
|
16
|
+
const q = (t, e) => {
|
|
17
17
|
const o = t.__vccOpts || t;
|
|
18
18
|
for (const [i, a] of e)
|
|
19
19
|
o[i] = a;
|
|
@@ -32,7 +32,7 @@ const X = (t, e) => {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup() {
|
|
35
|
-
return { Theme:
|
|
35
|
+
return { Theme: Se() };
|
|
36
36
|
},
|
|
37
37
|
data() {
|
|
38
38
|
return {
|
|
@@ -115,7 +115,7 @@ const X = (t, e) => {
|
|
|
115
115
|
function oi(t, e, o, i, a, r) {
|
|
116
116
|
return y(), M("div");
|
|
117
117
|
}
|
|
118
|
-
const ai = /* @__PURE__ */
|
|
118
|
+
const ai = /* @__PURE__ */ q(ti, [["render", oi]]), ii = {
|
|
119
119
|
name: "IdmGmdssArea",
|
|
120
120
|
props: {
|
|
121
121
|
map: {
|
|
@@ -129,7 +129,7 @@ const ai = /* @__PURE__ */ X(ti, [["render", oi]]), ii = {
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
setup() {
|
|
132
|
-
return { Theme:
|
|
132
|
+
return { Theme: Se() };
|
|
133
133
|
},
|
|
134
134
|
data() {
|
|
135
135
|
return {
|
|
@@ -242,7 +242,7 @@ const ai = /* @__PURE__ */ X(ti, [["render", oi]]), ii = {
|
|
|
242
242
|
function ri(t, e, o, i, a, r) {
|
|
243
243
|
return y(), M("div");
|
|
244
244
|
}
|
|
245
|
-
const si = /* @__PURE__ */
|
|
245
|
+
const si = /* @__PURE__ */ q(ii, [["render", ri]]), li = {
|
|
246
246
|
name: "IdmEcaZone",
|
|
247
247
|
props: {
|
|
248
248
|
map: {
|
|
@@ -256,7 +256,7 @@ const si = /* @__PURE__ */ X(ii, [["render", ri]]), li = {
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
setup() {
|
|
259
|
-
return { Theme:
|
|
259
|
+
return { Theme: Se() };
|
|
260
260
|
},
|
|
261
261
|
data() {
|
|
262
262
|
return {
|
|
@@ -338,7 +338,7 @@ const si = /* @__PURE__ */ X(ii, [["render", ri]]), li = {
|
|
|
338
338
|
function ni(t, e, o, i, a, r) {
|
|
339
339
|
return y(), M("div");
|
|
340
340
|
}
|
|
341
|
-
const ci = /* @__PURE__ */
|
|
341
|
+
const ci = /* @__PURE__ */ q(li, [["render", ni]]);
|
|
342
342
|
const mi = {
|
|
343
343
|
name: "IdmAlertZone",
|
|
344
344
|
props: {
|
|
@@ -353,7 +353,7 @@ const mi = {
|
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
setup() {
|
|
356
|
-
return { Theme:
|
|
356
|
+
return { Theme: Se() };
|
|
357
357
|
},
|
|
358
358
|
data() {
|
|
359
359
|
return {
|
|
@@ -490,7 +490,7 @@ const mi = {
|
|
|
490
490
|
}, hi = ["innerHTML"];
|
|
491
491
|
function di(t, e, o, i, a, r) {
|
|
492
492
|
const l = x("VBtn"), c = x("v-card-text"), n = x("v-card");
|
|
493
|
-
return a.showMakerInfo ? (y(),
|
|
493
|
+
return a.showMakerInfo ? (y(), O(n, {
|
|
494
494
|
key: 0,
|
|
495
495
|
class: "scroll",
|
|
496
496
|
id: "idm-gl4-zone-info"
|
|
@@ -523,9 +523,9 @@ function di(t, e, o, i, a, r) {
|
|
|
523
523
|
})
|
|
524
524
|
]),
|
|
525
525
|
_: 1
|
|
526
|
-
})) :
|
|
526
|
+
})) : R("", !0);
|
|
527
527
|
}
|
|
528
|
-
const pi = /* @__PURE__ */
|
|
528
|
+
const pi = /* @__PURE__ */ q(mi, [["render", di]]);
|
|
529
529
|
const ui = {
|
|
530
530
|
name: "PortDetail",
|
|
531
531
|
props: {
|
|
@@ -1338,7 +1338,7 @@ const ui = {
|
|
|
1338
1338
|
emits: ["follow", "cancelFollow", "meteoMore", "close", "closeAllDetail"],
|
|
1339
1339
|
setup() {
|
|
1340
1340
|
return {
|
|
1341
|
-
Theme:
|
|
1341
|
+
Theme: Se()
|
|
1342
1342
|
};
|
|
1343
1343
|
},
|
|
1344
1344
|
data() {
|
|
@@ -1368,7 +1368,7 @@ const ui = {
|
|
|
1368
1368
|
computed: {
|
|
1369
1369
|
dateList() {
|
|
1370
1370
|
var o, i, a, r;
|
|
1371
|
-
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ?
|
|
1371
|
+
const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? X.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
|
|
1372
1372
|
for (let l = 0; l < 4; l++) {
|
|
1373
1373
|
let c = {
|
|
1374
1374
|
index: l,
|
|
@@ -1389,7 +1389,7 @@ const ui = {
|
|
|
1389
1389
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
1390
1390
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
1391
1391
|
return "-";
|
|
1392
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
1392
|
+
const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1393
1393
|
return S(t).utcOffset(i).format(o);
|
|
1394
1394
|
};
|
|
1395
1395
|
},
|
|
@@ -1397,18 +1397,18 @@ const ui = {
|
|
|
1397
1397
|
return function(t) {
|
|
1398
1398
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
1399
1399
|
return "-";
|
|
1400
|
-
const e =
|
|
1400
|
+
const e = X.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
1401
1401
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
1402
1402
|
};
|
|
1403
1403
|
},
|
|
1404
1404
|
computePosition() {
|
|
1405
1405
|
return function(t) {
|
|
1406
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
1406
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
1407
1407
|
};
|
|
1408
1408
|
},
|
|
1409
1409
|
computeRoundPrecision() {
|
|
1410
1410
|
return function(t, e = 4) {
|
|
1411
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
1411
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
1414
|
},
|
|
@@ -1466,7 +1466,7 @@ const ui = {
|
|
|
1466
1466
|
weatherModels: t,
|
|
1467
1467
|
marineModels: e
|
|
1468
1468
|
};
|
|
1469
|
-
await
|
|
1469
|
+
await De.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
|
|
1470
1470
|
headers: {
|
|
1471
1471
|
Authorization: this.token || this.defaultMeteoToken
|
|
1472
1472
|
}
|
|
@@ -1490,10 +1490,10 @@ const ui = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1493
|
-
var c, n, u, d, b, w, L, g, _, P,
|
|
1493
|
+
var c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe, ie, ce, ue, me, he, A, ee, ye, xe, Le;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const l = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.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((L = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (
|
|
1496
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.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((L = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (B = l == null ? void 0 : l.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((k = (C = l == null ? void 0 : l.weather) == null ? void 0 : C.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (v = l == null ? void 0 : l.wave) == null ? void 0 : v.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (V = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : V.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 = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (se = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.wd) == null ? void 0 : se.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((A = (he = l == null ? void 0 : l.wave) == null ? void 0 : he.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ee = l == null ? void 0 : l.current) == null ? void 0 : ee.speed, 1) ?? "-", r.currentDir = (ye = l == null ? void 0 : l.current) == null ? void 0 : ye.direction, r.currentSpeed = this.computeRoundPrecision((xe = l == null ? void 0 : l.current) == null ? void 0 : xe.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 = (Le = l == null ? void 0 : l.weather) == null ? void 0 : Le.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1517,7 +1517,7 @@ const ui = {
|
|
|
1517
1517
|
forecastDays: 5,
|
|
1518
1518
|
extremes: !0,
|
|
1519
1519
|
heights: !0
|
|
1520
|
-
}, e = await
|
|
1520
|
+
}, e = await De.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, t, {
|
|
1521
1521
|
headers: {
|
|
1522
1522
|
Authorization: this.token
|
|
1523
1523
|
}
|
|
@@ -1679,13 +1679,13 @@ const ui = {
|
|
|
1679
1679
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1680
1680
|
function yr(t, e, o, i, a, r) {
|
|
1681
1681
|
const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), u = x("VIcon"), d = x("VBtnToggle"), b = x("VCard");
|
|
1682
|
-
return y(),
|
|
1682
|
+
return y(), O(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1683
1683
|
default: f(() => {
|
|
1684
1684
|
var w, L;
|
|
1685
1685
|
return [
|
|
1686
1686
|
p(c, { class: "w-100" }, {
|
|
1687
1687
|
default: f(() => {
|
|
1688
|
-
var g, _, P,
|
|
1688
|
+
var g, _, P, B, I;
|
|
1689
1689
|
return [
|
|
1690
1690
|
s("div", gi, [
|
|
1691
1691
|
s("div", fi, [
|
|
@@ -1693,7 +1693,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1693
1693
|
class: Ye(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (P = (_ = o.port) == null ? void 0 : _.cntLoCode) == null ? void 0 : P.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
|
-
s("div", null, m((
|
|
1696
|
+
s("div", null, m((B = o.port) == null ? void 0 : B.name), 1)
|
|
1697
1697
|
]),
|
|
1698
1698
|
p(l, {
|
|
1699
1699
|
icon: "",
|
|
@@ -1725,7 +1725,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1725
1725
|
o.followList.some((g) => {
|
|
1726
1726
|
var _;
|
|
1727
1727
|
return ((_ = g.port) == null ? void 0 : _.id) === o.portId;
|
|
1728
|
-
}) ? (y(),
|
|
1728
|
+
}) ? (y(), O(l, {
|
|
1729
1729
|
key: 0,
|
|
1730
1730
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1731
1731
|
variant: "tonal",
|
|
@@ -1738,10 +1738,10 @@ function yr(t, e, o, i, a, r) {
|
|
|
1738
1738
|
p(u, { color: "warning" })
|
|
1739
1739
|
]),
|
|
1740
1740
|
default: f(() => [
|
|
1741
|
-
|
|
1741
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
1742
1742
|
]),
|
|
1743
1743
|
_: 1
|
|
1744
|
-
}, 8, ["onClick"])) : (y(),
|
|
1744
|
+
}, 8, ["onClick"])) : (y(), O(l, {
|
|
1745
1745
|
key: 1,
|
|
1746
1746
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1747
1747
|
variant: "tonal",
|
|
@@ -1751,7 +1751,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1751
1751
|
onClick: r.handleFollow
|
|
1752
1752
|
}, {
|
|
1753
1753
|
default: f(() => [
|
|
1754
|
-
|
|
1754
|
+
$(m(t.$t("actions.follow")), 1)
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 1
|
|
1757
1757
|
}, 8, ["onClick"])),
|
|
@@ -1763,7 +1763,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1763
1763
|
onClick: r.handleMeteoMore
|
|
1764
1764
|
}, {
|
|
1765
1765
|
default: f(() => [
|
|
1766
|
-
|
|
1766
|
+
$(m(t.$t("actions.7dayForcast")), 1)
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 1
|
|
1769
1769
|
}, 8, ["onClick"])
|
|
@@ -1820,7 +1820,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1820
1820
|
rounded: "1"
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: f(() => [
|
|
1823
|
-
(y(!0), M(
|
|
1823
|
+
(y(!0), M(we, null, _e(r.dateList, (g) => (y(), O(l, {
|
|
1824
1824
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1825
1825
|
density: "compact",
|
|
1826
1826
|
color: "primary",
|
|
@@ -1828,7 +1828,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1828
1828
|
value: g.index
|
|
1829
1829
|
}, {
|
|
1830
1830
|
default: f(() => [
|
|
1831
|
-
|
|
1831
|
+
$(m(g.label), 1)
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 2
|
|
1834
1834
|
}, 1032, ["value"]))), 256))
|
|
@@ -1837,12 +1837,12 @@ function yr(t, e, o, i, a, r) {
|
|
|
1837
1837
|
}, 8, ["modelValue"]),
|
|
1838
1838
|
s("table", Hi, [
|
|
1839
1839
|
s("tbody", null, [
|
|
1840
|
-
(y(!0), M(
|
|
1840
|
+
(y(!0), M(we, null, _e(a.tableData, (g) => (y(), M("tr", {
|
|
1841
1841
|
key: g.id
|
|
1842
1842
|
}, [
|
|
1843
1843
|
s("th", Gi, [
|
|
1844
|
-
|
|
1845
|
-
g.unit ? (y(), M("span", Ui, " ( " + m(g.unit) + " )", 1)) :
|
|
1844
|
+
$(m(t.$t(`${g.key}`)) + " ", 1),
|
|
1845
|
+
g.unit ? (y(), M("span", Ui, " ( " + m(g.unit) + " )", 1)) : R("", !0)
|
|
1846
1846
|
]),
|
|
1847
1847
|
s("td", Wi, [
|
|
1848
1848
|
g.img ? (y(), M("img", {
|
|
@@ -1888,14 +1888,14 @@ function yr(t, e, o, i, a, r) {
|
|
|
1888
1888
|
s("div", null, m(t.$t("tide.tideTimes")), 1)
|
|
1889
1889
|
]),
|
|
1890
1890
|
s("div", lr, [
|
|
1891
|
-
a.showTideDetail ? (y(),
|
|
1891
|
+
a.showTideDetail ? (y(), O(l, {
|
|
1892
1892
|
key: 0,
|
|
1893
1893
|
icon: "mdi-eye-off-outline",
|
|
1894
1894
|
density: "compact",
|
|
1895
1895
|
variant: "plain",
|
|
1896
1896
|
size: "small",
|
|
1897
1897
|
onClick: e[1] || (e[1] = (g) => a.showTideDetail = !1)
|
|
1898
|
-
})) : (y(),
|
|
1898
|
+
})) : (y(), O(l, {
|
|
1899
1899
|
key: 1,
|
|
1900
1900
|
icon: "mdi-eye-outline",
|
|
1901
1901
|
density: "compact",
|
|
@@ -1914,7 +1914,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1914
1914
|
s("th", dr, m(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1915
1915
|
s("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
|
|
1916
1916
|
]),
|
|
1917
|
-
(y(!0), M(
|
|
1917
|
+
(y(!0), M(we, null, _e(a.tideTableData, (g, _) => {
|
|
1918
1918
|
var P;
|
|
1919
1919
|
return y(), M("tr", { key: _ }, [
|
|
1920
1920
|
s("td", ur, m(t.$t(`tide.${(P = g == null ? void 0 : g.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
@@ -1924,7 +1924,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1924
1924
|
}), 128))
|
|
1925
1925
|
])
|
|
1926
1926
|
])
|
|
1927
|
-
])) :
|
|
1927
|
+
])) : R("", !0)
|
|
1928
1928
|
])
|
|
1929
1929
|
], 512)
|
|
1930
1930
|
];
|
|
@@ -1932,7 +1932,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1932
1932
|
_: 1
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
|
-
const Io = /* @__PURE__ */
|
|
1935
|
+
const Io = /* @__PURE__ */ q(ui, [["render", yr], ["__scopeId", "data-v-1c0a4e51"]]);
|
|
1936
1936
|
const br = {
|
|
1937
1937
|
name: "IdmPort",
|
|
1938
1938
|
components: {
|
|
@@ -1953,7 +1953,7 @@ const br = {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
},
|
|
1955
1955
|
setup() {
|
|
1956
|
-
return { Theme:
|
|
1956
|
+
return { Theme: Se() };
|
|
1957
1957
|
},
|
|
1958
1958
|
emits: ["closeAllDetail"],
|
|
1959
1959
|
data() {
|
|
@@ -2068,17 +2068,17 @@ function _r(t, e, o, i, a, r) {
|
|
|
2068
2068
|
}, 512), [
|
|
2069
2069
|
[Ze, a.showInfo]
|
|
2070
2070
|
]),
|
|
2071
|
-
a.showDetail ? (y(),
|
|
2071
|
+
a.showDetail ? (y(), O(n, N({
|
|
2072
2072
|
key: 0,
|
|
2073
2073
|
portId: a.portId,
|
|
2074
2074
|
port: a.port,
|
|
2075
2075
|
forecastModel: o.forecastModel,
|
|
2076
2076
|
onClose: r.handleCloseDetail,
|
|
2077
2077
|
onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2078
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) :
|
|
2078
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : R("", !0)
|
|
2079
2079
|
]);
|
|
2080
2080
|
}
|
|
2081
|
-
const kr = /* @__PURE__ */
|
|
2081
|
+
const kr = /* @__PURE__ */ q(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3"]]), zr = {
|
|
2082
2082
|
name: "IdmLoadLine",
|
|
2083
2083
|
props: {
|
|
2084
2084
|
map: {
|
|
@@ -2092,7 +2092,7 @@ const kr = /* @__PURE__ */ X(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3
|
|
|
2092
2092
|
}
|
|
2093
2093
|
},
|
|
2094
2094
|
setup() {
|
|
2095
|
-
return { Theme:
|
|
2095
|
+
return { Theme: Se() };
|
|
2096
2096
|
},
|
|
2097
2097
|
data() {
|
|
2098
2098
|
return {
|
|
@@ -2122,7 +2122,7 @@ const kr = /* @__PURE__ */ X(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3
|
|
|
2122
2122
|
function Lr(t, e, o, i, a, r) {
|
|
2123
2123
|
return y(), M("div");
|
|
2124
2124
|
}
|
|
2125
|
-
const Pr = /* @__PURE__ */
|
|
2125
|
+
const Pr = /* @__PURE__ */ q(zr, [["render", Lr]]), Cr = {
|
|
2126
2126
|
name: "IdmTimezone",
|
|
2127
2127
|
props: {
|
|
2128
2128
|
map: {
|
|
@@ -2136,7 +2136,7 @@ const Pr = /* @__PURE__ */ X(zr, [["render", Lr]]), Cr = {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
},
|
|
2138
2138
|
setup() {
|
|
2139
|
-
return { Theme:
|
|
2139
|
+
return { Theme: Se() };
|
|
2140
2140
|
},
|
|
2141
2141
|
data() {
|
|
2142
2142
|
return {
|
|
@@ -2327,7 +2327,7 @@ const Pr = /* @__PURE__ */ X(zr, [["render", Lr]]), Cr = {
|
|
|
2327
2327
|
function Tr(t, e, o, i, a, r) {
|
|
2328
2328
|
return y(), M("div");
|
|
2329
2329
|
}
|
|
2330
|
-
const Sr = /* @__PURE__ */
|
|
2330
|
+
const Sr = /* @__PURE__ */ q(Cr, [["render", Tr]]), Mr = {
|
|
2331
2331
|
name: "IdmVoluntaryReportingArea",
|
|
2332
2332
|
props: {
|
|
2333
2333
|
map: {
|
|
@@ -2341,7 +2341,7 @@ const Sr = /* @__PURE__ */ X(Cr, [["render", Tr]]), Mr = {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
},
|
|
2343
2343
|
setup() {
|
|
2344
|
-
return { Theme:
|
|
2344
|
+
return { Theme: Se() };
|
|
2345
2345
|
},
|
|
2346
2346
|
data() {
|
|
2347
2347
|
return {
|
|
@@ -2422,7 +2422,7 @@ const Sr = /* @__PURE__ */ X(Cr, [["render", Tr]]), Mr = {
|
|
|
2422
2422
|
function Ir(t, e, o, i, a, r) {
|
|
2423
2423
|
return y(), M("div");
|
|
2424
2424
|
}
|
|
2425
|
-
const Dr = /* @__PURE__ */
|
|
2425
|
+
const Dr = /* @__PURE__ */ q(Mr, [["render", Ir]]), Ar = {
|
|
2426
2426
|
name: "IdmSpecialArea",
|
|
2427
2427
|
props: {
|
|
2428
2428
|
map: {
|
|
@@ -2436,7 +2436,7 @@ const Dr = /* @__PURE__ */ X(Mr, [["render", Ir]]), Ar = {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
},
|
|
2438
2438
|
setup() {
|
|
2439
|
-
return { Theme:
|
|
2439
|
+
return { Theme: Se() };
|
|
2440
2440
|
},
|
|
2441
2441
|
data() {
|
|
2442
2442
|
return {
|
|
@@ -2456,7 +2456,7 @@ const Dr = /* @__PURE__ */ X(Mr, [["render", Ir]]), Ar = {
|
|
|
2456
2456
|
methods: {
|
|
2457
2457
|
handleRender() {
|
|
2458
2458
|
this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
2459
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
2459
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => X.convertToMonotonicLng2(e));
|
|
2460
2460
|
}), this.map.addSource(this.source, {
|
|
2461
2461
|
type: "geojson",
|
|
2462
2462
|
data: this.area
|
|
@@ -2517,7 +2517,7 @@ const Dr = /* @__PURE__ */ X(Mr, [["render", Ir]]), Ar = {
|
|
|
2517
2517
|
function Rr(t, e, o, i, a, r) {
|
|
2518
2518
|
return y(), M("div");
|
|
2519
2519
|
}
|
|
2520
|
-
const Or = /* @__PURE__ */
|
|
2520
|
+
const Or = /* @__PURE__ */ q(Ar, [["render", Rr]]), Br = {
|
|
2521
2521
|
name: "IdmTerminator",
|
|
2522
2522
|
props: {
|
|
2523
2523
|
map: {
|
|
@@ -2571,7 +2571,7 @@ const Or = /* @__PURE__ */ X(Ar, [["render", Rr]]), Br = {
|
|
|
2571
2571
|
function Nr(t, e, o, i, a, r) {
|
|
2572
2572
|
return y(), M("div");
|
|
2573
2573
|
}
|
|
2574
|
-
const Er = /* @__PURE__ */
|
|
2574
|
+
const Er = /* @__PURE__ */ q(Br, [["render", Nr]]), jr = {
|
|
2575
2575
|
name: "IdmWorld12nm",
|
|
2576
2576
|
props: {
|
|
2577
2577
|
map: {
|
|
@@ -2628,7 +2628,7 @@ const Er = /* @__PURE__ */ X(Br, [["render", Nr]]), jr = {
|
|
|
2628
2628
|
function Fr(t, e, o, i, a, r) {
|
|
2629
2629
|
return null;
|
|
2630
2630
|
}
|
|
2631
|
-
const Hr = /* @__PURE__ */
|
|
2631
|
+
const Hr = /* @__PURE__ */ q(jr, [["render", Fr]]);
|
|
2632
2632
|
const Gr = {
|
|
2633
2633
|
name: "IdmWorldMarine",
|
|
2634
2634
|
props: {
|
|
@@ -2667,7 +2667,7 @@ const Gr = {
|
|
|
2667
2667
|
function Ur(t, e, o, i, a, r) {
|
|
2668
2668
|
return null;
|
|
2669
2669
|
}
|
|
2670
|
-
const Wr = /* @__PURE__ */
|
|
2670
|
+
const Wr = /* @__PURE__ */ q(Gr, [["render", Ur]]), Vr = {
|
|
2671
2671
|
name: "IdmChinaRoute",
|
|
2672
2672
|
props: {
|
|
2673
2673
|
map: {
|
|
@@ -2706,7 +2706,7 @@ const Wr = /* @__PURE__ */ X(Gr, [["render", Ur]]), Vr = {
|
|
|
2706
2706
|
function Zr(t, e, o, i, a, r) {
|
|
2707
2707
|
return null;
|
|
2708
2708
|
}
|
|
2709
|
-
const Yr = /* @__PURE__ */
|
|
2709
|
+
const Yr = /* @__PURE__ */ q(Vr, [["render", Zr]]);
|
|
2710
2710
|
const qr = {
|
|
2711
2711
|
name: "IdmTideStations",
|
|
2712
2712
|
props: {
|
|
@@ -2743,7 +2743,7 @@ const qr = {
|
|
|
2743
2743
|
},
|
|
2744
2744
|
setup() {
|
|
2745
2745
|
return {
|
|
2746
|
-
Theme:
|
|
2746
|
+
Theme: Se()
|
|
2747
2747
|
};
|
|
2748
2748
|
},
|
|
2749
2749
|
emits: ["close", "closeAllDetail"],
|
|
@@ -2759,7 +2759,7 @@ const qr = {
|
|
|
2759
2759
|
computed: {
|
|
2760
2760
|
dateList() {
|
|
2761
2761
|
var o, i, a, r;
|
|
2762
|
-
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ?
|
|
2762
|
+
const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? X.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
|
|
2763
2763
|
for (let l = 0; l < 4; l++) {
|
|
2764
2764
|
let c = {
|
|
2765
2765
|
index: l,
|
|
@@ -2778,7 +2778,7 @@ const qr = {
|
|
|
2778
2778
|
return function(t, e, o = "yyyy-MM-DD HH:mm") {
|
|
2779
2779
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
2780
2780
|
return "-";
|
|
2781
|
-
const i = e != null && e.lng && (e != null && e.lat) ?
|
|
2781
|
+
const i = e != null && e.lng && (e != null && e.lat) ? X.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2782
2782
|
return S(t).utcOffset(i).format(o);
|
|
2783
2783
|
};
|
|
2784
2784
|
},
|
|
@@ -2786,18 +2786,18 @@ const qr = {
|
|
|
2786
2786
|
return function(t) {
|
|
2787
2787
|
if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
2788
2788
|
return "-";
|
|
2789
|
-
const e =
|
|
2789
|
+
const e = X.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
|
|
2790
2790
|
return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
|
|
2791
2791
|
};
|
|
2792
2792
|
},
|
|
2793
2793
|
computePosition() {
|
|
2794
2794
|
return function(t) {
|
|
2795
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
2795
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
2796
2796
|
};
|
|
2797
2797
|
},
|
|
2798
2798
|
computeRoundPrecision() {
|
|
2799
2799
|
return function(t, e = 4) {
|
|
2800
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
2800
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
2801
2801
|
};
|
|
2802
2802
|
}
|
|
2803
2803
|
},
|
|
@@ -2834,7 +2834,7 @@ const qr = {
|
|
|
2834
2834
|
forecastDays: 5,
|
|
2835
2835
|
extremes: !0,
|
|
2836
2836
|
heights: !0
|
|
2837
|
-
}, e = await
|
|
2837
|
+
}, e = await De.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, t, {
|
|
2838
2838
|
headers: {
|
|
2839
2839
|
Authorization: this.token || this.defaultMeteoToken
|
|
2840
2840
|
//
|
|
@@ -2977,7 +2977,7 @@ const qr = {
|
|
|
2977
2977
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
|
|
2978
2978
|
function Ts(t, e, o, i, a, r) {
|
|
2979
2979
|
const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), u = x("VBtnToggle"), d = x("v-card");
|
|
2980
|
-
return y(),
|
|
2980
|
+
return y(), O(d, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2981
2981
|
default: f(() => {
|
|
2982
2982
|
var b, w;
|
|
2983
2983
|
return [
|
|
@@ -3063,7 +3063,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3063
3063
|
rounded: "1"
|
|
3064
3064
|
}, {
|
|
3065
3065
|
default: f(() => [
|
|
3066
|
-
(y(!0), M(
|
|
3066
|
+
(y(!0), M(we, null, _e(r.dateList, (L) => (y(), O(l, {
|
|
3067
3067
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3068
3068
|
density: "compact",
|
|
3069
3069
|
color: "primary",
|
|
@@ -3071,7 +3071,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3071
3071
|
value: L.index
|
|
3072
3072
|
}, {
|
|
3073
3073
|
default: f(() => [
|
|
3074
|
-
|
|
3074
|
+
$(m(L.label), 1)
|
|
3075
3075
|
]),
|
|
3076
3076
|
_: 2
|
|
3077
3077
|
}, 1032, ["value"]))), 256))
|
|
@@ -3086,7 +3086,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3086
3086
|
s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3087
3087
|
s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3088
3088
|
]),
|
|
3089
|
-
(y(!0), M(
|
|
3089
|
+
(y(!0), M(we, null, _e(a.tideTableData, (L, g) => {
|
|
3090
3090
|
var _;
|
|
3091
3091
|
return y(), M("tr", { key: g }, [
|
|
3092
3092
|
s("td", Ls, m(t.$t(`tide.${(_ = L == null ? void 0 : L.type) == null ? void 0 : _.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
@@ -3104,7 +3104,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3104
3104
|
_: 1
|
|
3105
3105
|
});
|
|
3106
3106
|
}
|
|
3107
|
-
const Ss = /* @__PURE__ */
|
|
3107
|
+
const Ss = /* @__PURE__ */ q(qr, [["render", Ts], ["__scopeId", "data-v-b79e1aa0"]]);
|
|
3108
3108
|
const Ms = {
|
|
3109
3109
|
name: "IdmTideStations",
|
|
3110
3110
|
components: {
|
|
@@ -3205,14 +3205,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
3205
3205
|
}, 512), [
|
|
3206
3206
|
[Ze, a.showInfo]
|
|
3207
3207
|
]),
|
|
3208
|
-
a.showDetail ? (y(),
|
|
3208
|
+
a.showDetail ? (y(), O(n, N({
|
|
3209
3209
|
key: 0,
|
|
3210
3210
|
station: a.station,
|
|
3211
3211
|
onClose: r.handleCloseDetail
|
|
3212
|
-
}, t.$attrs), null, 16, ["station", "onClose"])) :
|
|
3212
|
+
}, t.$attrs), null, 16, ["station", "onClose"])) : R("", !0)
|
|
3213
3213
|
]);
|
|
3214
3214
|
}
|
|
3215
|
-
const Bs = /* @__PURE__ */
|
|
3215
|
+
const Bs = /* @__PURE__ */ q(Ms, [["render", Os], ["__scopeId", "data-v-4611be64"]]), Ns = {
|
|
3216
3216
|
name: "IdmIceAreas",
|
|
3217
3217
|
props: {
|
|
3218
3218
|
map: {
|
|
@@ -3250,7 +3250,7 @@ const Bs = /* @__PURE__ */ X(Ms, [["render", Os], ["__scopeId", "data-v-4611be64
|
|
|
3250
3250
|
function Es(t, e, o, i, a, r) {
|
|
3251
3251
|
return null;
|
|
3252
3252
|
}
|
|
3253
|
-
const js = /* @__PURE__ */
|
|
3253
|
+
const js = /* @__PURE__ */ q(Ns, [["render", Es]]);
|
|
3254
3254
|
const Fs = {
|
|
3255
3255
|
name: "IdmLatLng",
|
|
3256
3256
|
props: {
|
|
@@ -3307,7 +3307,7 @@ const Fs = {
|
|
|
3307
3307
|
},
|
|
3308
3308
|
"lngLat.e": {
|
|
3309
3309
|
handler(t) {
|
|
3310
|
-
this.lngLat.lng =
|
|
3310
|
+
this.lngLat.lng = X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty, this.lngLat.lat = X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty, this.lngLat.str = `[${X.str2Lng(t == null ? void 0 : t.lng, 4)}, ${X.str2Lat(t == null ? void 0 : t.lat, 4)}]`;
|
|
3311
3311
|
},
|
|
3312
3312
|
immediate: !0
|
|
3313
3313
|
}
|
|
@@ -3432,7 +3432,7 @@ function Hs(t, e, o, i, a, r) {
|
|
|
3432
3432
|
s("div", null, m((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
3433
3433
|
], 4);
|
|
3434
3434
|
}
|
|
3435
|
-
const qa = /* @__PURE__ */
|
|
3435
|
+
const qa = /* @__PURE__ */ q(Fs, [["render", Hs]]);
|
|
3436
3436
|
const Gs = {
|
|
3437
3437
|
name: "IdmFollowPort",
|
|
3438
3438
|
components: {
|
|
@@ -4238,7 +4238,7 @@ const Gs = {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
},
|
|
4240
4240
|
setup() {
|
|
4241
|
-
return { Theme:
|
|
4241
|
+
return { Theme: Se() };
|
|
4242
4242
|
},
|
|
4243
4243
|
emits: ["closeAllDetail"],
|
|
4244
4244
|
data() {
|
|
@@ -4371,7 +4371,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
4371
4371
|
}, 512), [
|
|
4372
4372
|
[Ze, a.showInfo]
|
|
4373
4373
|
]),
|
|
4374
|
-
a.showDetail ? (y(),
|
|
4374
|
+
a.showDetail ? (y(), O(n, N({
|
|
4375
4375
|
key: 0,
|
|
4376
4376
|
portId: a.portId,
|
|
4377
4377
|
port: a.port,
|
|
@@ -4379,10 +4379,10 @@ function Zs(t, e, o, i, a, r) {
|
|
|
4379
4379
|
followList: o.followList,
|
|
4380
4380
|
onClose: r.handleCloseDetail,
|
|
4381
4381
|
onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4382
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) :
|
|
4382
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : R("", !0)
|
|
4383
4383
|
]);
|
|
4384
4384
|
}
|
|
4385
|
-
const Ys = /* @__PURE__ */
|
|
4385
|
+
const Ys = /* @__PURE__ */ q(Gs, [["render", Zs], ["__scopeId", "data-v-95e70a1f"]]);
|
|
4386
4386
|
const qs = {
|
|
4387
4387
|
name: "IdmFollowPosition",
|
|
4388
4388
|
props: {
|
|
@@ -4406,7 +4406,7 @@ const qs = {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
},
|
|
4408
4408
|
setup() {
|
|
4409
|
-
return { Theme:
|
|
4409
|
+
return { Theme: Se() };
|
|
4410
4410
|
},
|
|
4411
4411
|
data() {
|
|
4412
4412
|
return {
|
|
@@ -4420,7 +4420,7 @@ const qs = {
|
|
|
4420
4420
|
computed: {
|
|
4421
4421
|
computePosition() {
|
|
4422
4422
|
return function(t) {
|
|
4423
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
4423
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
4424
4424
|
};
|
|
4425
4425
|
}
|
|
4426
4426
|
},
|
|
@@ -4521,7 +4521,7 @@ const qs = {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
function Js(t, e, o, i, a, r) {
|
|
4523
4523
|
const l = x("v-card-text"), c = x("v-card");
|
|
4524
|
-
return Ve((y(),
|
|
4524
|
+
return Ve((y(), O(c, {
|
|
4525
4525
|
id: "idmFollowPositionInfo",
|
|
4526
4526
|
ref: "idmFollowPositionInfo"
|
|
4527
4527
|
}, {
|
|
@@ -4535,7 +4535,7 @@ function Js(t, e, o, i, a, r) {
|
|
|
4535
4535
|
]),
|
|
4536
4536
|
a.position.remark ? (y(), M("div", Ks, [
|
|
4537
4537
|
s("span", null, m(a.position.remark ?? "-"), 1)
|
|
4538
|
-
])) :
|
|
4538
|
+
])) : R("", !0)
|
|
4539
4539
|
])
|
|
4540
4540
|
]),
|
|
4541
4541
|
_: 1
|
|
@@ -4546,7 +4546,7 @@ function Js(t, e, o, i, a, r) {
|
|
|
4546
4546
|
[Ze, a.showInfo]
|
|
4547
4547
|
]);
|
|
4548
4548
|
}
|
|
4549
|
-
const Qs = /* @__PURE__ */
|
|
4549
|
+
const Qs = /* @__PURE__ */ q(qs, [["render", Js], ["__scopeId", "data-v-cd6c9f7e"]]);
|
|
4550
4550
|
const el = {
|
|
4551
4551
|
name: "IdmOtherLayerr",
|
|
4552
4552
|
components: {
|
|
@@ -4700,7 +4700,7 @@ const el = {
|
|
|
4700
4700
|
var e, o;
|
|
4701
4701
|
let t = this.layerWeight;
|
|
4702
4702
|
if (t) {
|
|
4703
|
-
const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], a = await
|
|
4703
|
+
const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], a = await De.get(`${i}/api/arc/other/layers/links?l=${t}&t=${this.realTime}`, {
|
|
4704
4704
|
headers: {
|
|
4705
4705
|
Authorization: this.defaultMeteoToken
|
|
4706
4706
|
}
|
|
@@ -4709,7 +4709,7 @@ const el = {
|
|
|
4709
4709
|
const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, l = [];
|
|
4710
4710
|
for (const n in r)
|
|
4711
4711
|
l.push(
|
|
4712
|
-
|
|
4712
|
+
De.get(r[n], {
|
|
4713
4713
|
headers: {
|
|
4714
4714
|
Authorization: this.defaultMeteoToken,
|
|
4715
4715
|
key: n
|
|
@@ -4726,7 +4726,7 @@ const el = {
|
|
|
4726
4726
|
},
|
|
4727
4727
|
async fetchDayNightLayer() {
|
|
4728
4728
|
var o, i;
|
|
4729
|
-
const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await
|
|
4729
|
+
const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await De.get(`${t}/api/arc/other/layers/links?l=1024&t=${this.realTime}`, {
|
|
4730
4730
|
headers: {
|
|
4731
4731
|
Authorization: this.defaultMeteoToken
|
|
4732
4732
|
}
|
|
@@ -4756,8 +4756,8 @@ const el = {
|
|
|
4756
4756
|
class: "border rounded-sm"
|
|
4757
4757
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
4758
4758
|
function dl(t, e, o, i, a, r) {
|
|
4759
|
-
var
|
|
4760
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), d = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), g = x("IdmTerminator"), _ = x("IdmTimezone"), P = x("IdmPort"),
|
|
4759
|
+
var K, se, le, pe, ie, ce, ue, me, he;
|
|
4760
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), d = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), g = x("IdmTerminator"), _ = x("IdmTimezone"), P = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), k = x("IdmWarZone"), z = x("IdmGmdssArea"), T = x("IdmLoadLine"), v = x("IdmWorldMarine"), D = x("IdmVRA"), F = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), Q = x("IdmFollowPosition");
|
|
4761
4761
|
return y(), M("div", tl, [
|
|
4762
4762
|
s("div", {
|
|
4763
4763
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -4767,8 +4767,8 @@ function dl(t, e, o, i, a, r) {
|
|
|
4767
4767
|
text: t.$t("layer.mapLayers"),
|
|
4768
4768
|
location: "left"
|
|
4769
4769
|
}, {
|
|
4770
|
-
activator: f(({ props:
|
|
4771
|
-
p(l,
|
|
4770
|
+
activator: f(({ props: A }) => [
|
|
4771
|
+
p(l, N(A, {
|
|
4772
4772
|
"min-width": "32",
|
|
4773
4773
|
width: "32",
|
|
4774
4774
|
height: "32",
|
|
@@ -4818,7 +4818,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4818
4818
|
style: { "font-size": "16px !important" }
|
|
4819
4819
|
}, {
|
|
4820
4820
|
default: f(() => [
|
|
4821
|
-
|
|
4821
|
+
$(m(t.$t("layer.mapFeathers")), 1)
|
|
4822
4822
|
]),
|
|
4823
4823
|
_: 1
|
|
4824
4824
|
})
|
|
@@ -4828,25 +4828,25 @@ function dl(t, e, o, i, a, r) {
|
|
|
4828
4828
|
p(b, { class: "pb-2" }, {
|
|
4829
4829
|
default: f(() => [
|
|
4830
4830
|
s("div", rl, [
|
|
4831
|
-
(y(!0), M(
|
|
4832
|
-
key:
|
|
4831
|
+
(y(!0), M(we, null, _e(a.mapFeathers, (A) => (y(), M("div", {
|
|
4832
|
+
key: A.value,
|
|
4833
4833
|
class: "mb-2 feather-item",
|
|
4834
|
-
onClick: (
|
|
4834
|
+
onClick: (ee) => r.handleToggleMapFeather(A)
|
|
4835
4835
|
}, [
|
|
4836
4836
|
s("div", {
|
|
4837
|
-
class: Ye([a.mapFeather ===
|
|
4837
|
+
class: Ye([a.mapFeather === A.value ? "active" : "", "img-box"])
|
|
4838
4838
|
}, [
|
|
4839
|
-
|
|
4839
|
+
A.value === "dark" ? (y(), M("img", ll)) : A.value === "nautical" ? (y(), M("img", nl)) : A.value === "satellite" ? (y(), M("img", cl)) : (y(), M("img", ml))
|
|
4840
4840
|
], 2),
|
|
4841
|
-
s("div", hl, m(t.$t(`layer.${
|
|
4841
|
+
s("div", hl, m(t.$t(`layer.${A.locale}`)), 1)
|
|
4842
4842
|
], 8, sl))), 128))
|
|
4843
4843
|
]),
|
|
4844
|
-
(y(!0), M(
|
|
4845
|
-
key:
|
|
4844
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => ["graticule", "day-night", "time-zones"].includes(A.key)), (A) => (y(), O(d, {
|
|
4845
|
+
key: A.key,
|
|
4846
4846
|
modelValue: a.checkList,
|
|
4847
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
4848
|
-
value:
|
|
4849
|
-
label: t.$t(`layer.${
|
|
4847
|
+
"onUpdate:modelValue": e[0] || (e[0] = (ee) => a.checkList = ee),
|
|
4848
|
+
value: A.key,
|
|
4849
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4850
4850
|
color: "primary",
|
|
4851
4851
|
density: "compact",
|
|
4852
4852
|
style: { height: "36px" },
|
|
@@ -4871,7 +4871,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4871
4871
|
style: { "font-size": "16px !important" }
|
|
4872
4872
|
}, {
|
|
4873
4873
|
default: f(() => [
|
|
4874
|
-
|
|
4874
|
+
$(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4875
4875
|
]),
|
|
4876
4876
|
_: 1
|
|
4877
4877
|
})
|
|
@@ -4880,12 +4880,12 @@ function dl(t, e, o, i, a, r) {
|
|
|
4880
4880
|
}),
|
|
4881
4881
|
p(b, { class: "py-2" }, {
|
|
4882
4882
|
default: f(() => [
|
|
4883
|
-
(y(!0), M(
|
|
4884
|
-
key:
|
|
4883
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => ["ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (y(), O(d, {
|
|
4884
|
+
key: A.key,
|
|
4885
4885
|
modelValue: a.checkList,
|
|
4886
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
4887
|
-
value:
|
|
4888
|
-
label: t.$t(`layer.${
|
|
4886
|
+
"onUpdate:modelValue": e[1] || (e[1] = (ee) => a.checkList = ee),
|
|
4887
|
+
value: A.key,
|
|
4888
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4889
4889
|
color: "primary",
|
|
4890
4890
|
density: "compact",
|
|
4891
4891
|
style: { height: "36px" },
|
|
@@ -4910,7 +4910,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4910
4910
|
style: { "font-size": "16px !important" }
|
|
4911
4911
|
}, {
|
|
4912
4912
|
default: f(() => [
|
|
4913
|
-
|
|
4913
|
+
$(m(t.$t("layer.otherLayers")), 1)
|
|
4914
4914
|
]),
|
|
4915
4915
|
_: 1
|
|
4916
4916
|
})
|
|
@@ -4919,12 +4919,12 @@ function dl(t, e, o, i, a, r) {
|
|
|
4919
4919
|
}),
|
|
4920
4920
|
p(b, { class: "py-2" }, {
|
|
4921
4921
|
default: f(() => [
|
|
4922
|
-
(y(!0), M(
|
|
4923
|
-
key:
|
|
4922
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (y(), O(d, {
|
|
4923
|
+
key: A.key,
|
|
4924
4924
|
modelValue: a.checkList,
|
|
4925
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
4926
|
-
value:
|
|
4927
|
-
label: t.$t(`layer.${
|
|
4925
|
+
"onUpdate:modelValue": e[2] || (e[2] = (ee) => a.checkList = ee),
|
|
4926
|
+
value: A.key,
|
|
4927
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4928
4928
|
color: "primary",
|
|
4929
4929
|
density: "compact",
|
|
4930
4930
|
style: { height: "36px" },
|
|
@@ -4949,7 +4949,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4949
4949
|
style: { "font-size": "16px !important" }
|
|
4950
4950
|
}, {
|
|
4951
4951
|
default: f(() => [
|
|
4952
|
-
|
|
4952
|
+
$(m(t.$t("layer.myFollows")), 1)
|
|
4953
4953
|
]),
|
|
4954
4954
|
_: 1
|
|
4955
4955
|
})
|
|
@@ -4960,7 +4960,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4960
4960
|
default: f(() => [
|
|
4961
4961
|
p(d, {
|
|
4962
4962
|
modelValue: a.checkList,
|
|
4963
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
4963
|
+
"onUpdate:modelValue": e[3] || (e[3] = (A) => a.checkList = A),
|
|
4964
4964
|
value: "follow-ports",
|
|
4965
4965
|
label: t.$t("layer.ports"),
|
|
4966
4966
|
color: "primary",
|
|
@@ -4971,7 +4971,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4971
4971
|
}, null, 8, ["modelValue", "label"]),
|
|
4972
4972
|
p(d, {
|
|
4973
4973
|
modelValue: a.checkList,
|
|
4974
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
4974
|
+
"onUpdate:modelValue": e[4] || (e[4] = (A) => a.checkList = A),
|
|
4975
4975
|
value: "follow-positions",
|
|
4976
4976
|
label: t.$t("layer.locations"),
|
|
4977
4977
|
color: "primary",
|
|
@@ -4988,42 +4988,42 @@ function dl(t, e, o, i, a, r) {
|
|
|
4988
4988
|
})
|
|
4989
4989
|
])
|
|
4990
4990
|
], 6),
|
|
4991
|
-
o.map ? (y(),
|
|
4991
|
+
o.map ? (y(), O(L, N({
|
|
4992
4992
|
key: 0,
|
|
4993
4993
|
map: o.map,
|
|
4994
4994
|
"menu-toggle": o.menuToggle,
|
|
4995
4995
|
show: a.checkList.includes("graticule")
|
|
4996
|
-
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
4997
|
-
o.map ? (y(),
|
|
4996
|
+
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : R("", !0),
|
|
4997
|
+
o.map ? (y(), O(g, N({
|
|
4998
4998
|
key: 1,
|
|
4999
4999
|
map: o.map,
|
|
5000
|
-
area: (
|
|
5001
|
-
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) :
|
|
5002
|
-
o.map ? (y(),
|
|
5000
|
+
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
5001
|
+
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5002
|
+
o.map ? (y(), O(_, N({
|
|
5003
5003
|
key: 2,
|
|
5004
5004
|
map: o.map,
|
|
5005
|
-
zone: (
|
|
5005
|
+
zone: (se = a.otherLayers) == null ? void 0 : se["time-zones"],
|
|
5006
5006
|
realTime: o.realTime
|
|
5007
|
-
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) :
|
|
5008
|
-
o.map ? (y(),
|
|
5007
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
|
|
5008
|
+
o.map ? (y(), O(P, N({
|
|
5009
5009
|
key: 3,
|
|
5010
5010
|
ref: "idmPorts",
|
|
5011
5011
|
map: o.map,
|
|
5012
|
-
ports: (
|
|
5012
|
+
ports: (le = a.otherLayers) == null ? void 0 : le.ports,
|
|
5013
5013
|
gateway: o.gateway,
|
|
5014
5014
|
token: o.token,
|
|
5015
5015
|
"forecast-model": o.forecastModel,
|
|
5016
5016
|
realTime: o.realTime
|
|
5017
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) :
|
|
5018
|
-
o.map ? (y(),
|
|
5017
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5018
|
+
o.map ? (y(), O(B, N({
|
|
5019
5019
|
key: 4,
|
|
5020
5020
|
map: o.map,
|
|
5021
|
-
zone: (
|
|
5021
|
+
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
5022
5022
|
}, t.$attrs, {
|
|
5023
5023
|
"before-layer": "empty-layer-3",
|
|
5024
5024
|
theme: o.theme
|
|
5025
|
-
}), null, 16, ["map", "zone", "theme"])) :
|
|
5026
|
-
o.map ? (y(),
|
|
5025
|
+
}), null, 16, ["map", "zone", "theme"])) : R("", !0),
|
|
5026
|
+
o.map ? (y(), O(I, N({
|
|
5027
5027
|
key: 5,
|
|
5028
5028
|
ref: "idmIideStation",
|
|
5029
5029
|
map: o.map,
|
|
@@ -5035,61 +5035,61 @@ function dl(t, e, o, i, a, r) {
|
|
|
5035
5035
|
realTime: o.realTime,
|
|
5036
5036
|
forecastModel: o.forecastModel,
|
|
5037
5037
|
"before-layer": "empty-layer-3"
|
|
5038
|
-
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) :
|
|
5039
|
-
o.map ? (y(),
|
|
5038
|
+
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
|
|
5039
|
+
o.map ? (y(), O(C, N({
|
|
5040
5040
|
key: 6,
|
|
5041
5041
|
map: o.map,
|
|
5042
|
-
zone: (
|
|
5043
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5044
|
-
o.map ? (y(),
|
|
5042
|
+
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5043
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5044
|
+
o.map ? (y(), O(k, N({
|
|
5045
5045
|
key: 7,
|
|
5046
5046
|
map: o.map,
|
|
5047
|
-
zone: (
|
|
5048
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5049
|
-
o.map ? (y(),
|
|
5047
|
+
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5048
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5049
|
+
o.map ? (y(), O(z, N({
|
|
5050
5050
|
key: 8,
|
|
5051
5051
|
map: o.map,
|
|
5052
|
-
area: (
|
|
5053
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5054
|
-
o.map ? (y(),
|
|
5052
|
+
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5053
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5054
|
+
o.map ? (y(), O(T, N({
|
|
5055
5055
|
key: 9,
|
|
5056
5056
|
map: o.map,
|
|
5057
5057
|
show: a.checkList.includes("load-lines")
|
|
5058
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5059
|
-
o.map ? (y(),
|
|
5058
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5059
|
+
o.map ? (y(), O(v, N({
|
|
5060
5060
|
key: 10,
|
|
5061
5061
|
map: o.map,
|
|
5062
5062
|
token: o.token,
|
|
5063
5063
|
show: a.checkList.includes("worldMarine")
|
|
5064
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5065
|
-
o.map ? (y(),
|
|
5064
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5065
|
+
o.map ? (y(), O(D, N({
|
|
5066
5066
|
key: 11,
|
|
5067
5067
|
map: o.map,
|
|
5068
|
-
area: (
|
|
5069
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5070
|
-
o.map ? (y(),
|
|
5068
|
+
area: (me = a.otherLayers) == null ? void 0 : me["voluntary-reporting-area"]
|
|
5069
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5070
|
+
o.map ? (y(), O(F, N({
|
|
5071
5071
|
key: 12,
|
|
5072
5072
|
map: o.map,
|
|
5073
|
-
area: (
|
|
5074
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5075
|
-
o.map ? (y(),
|
|
5073
|
+
area: (he = a.otherLayers) == null ? void 0 : he["special-area"]
|
|
5074
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5075
|
+
o.map ? (y(), O(V, N({
|
|
5076
5076
|
key: 13,
|
|
5077
5077
|
map: o.map,
|
|
5078
5078
|
token: o.token,
|
|
5079
5079
|
show: a.checkList.includes("world12nm")
|
|
5080
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5081
|
-
o.map ? (y(),
|
|
5080
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5081
|
+
o.map ? (y(), O(Y, N({
|
|
5082
5082
|
key: 14,
|
|
5083
5083
|
map: o.map,
|
|
5084
5084
|
token: o.token,
|
|
5085
5085
|
show: a.checkList.includes("chinaRoute")
|
|
5086
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5087
|
-
o.map ? (y(),
|
|
5086
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5087
|
+
o.map ? (y(), O(Z, N({
|
|
5088
5088
|
key: 15,
|
|
5089
5089
|
map: o.map,
|
|
5090
5090
|
show: a.checkList.includes("ice-areas")
|
|
5091
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5092
|
-
o.map ? (y(),
|
|
5091
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5092
|
+
o.map ? (y(), O(J, N({
|
|
5093
5093
|
key: 16,
|
|
5094
5094
|
ref: "idmFollowPort",
|
|
5095
5095
|
map: o.map,
|
|
@@ -5098,29 +5098,29 @@ function dl(t, e, o, i, a, r) {
|
|
|
5098
5098
|
token: o.token,
|
|
5099
5099
|
"forecast-model": o.forecastModel,
|
|
5100
5100
|
realTime: o.realTime
|
|
5101
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) :
|
|
5102
|
-
o.map ? (y(),
|
|
5101
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5102
|
+
o.map ? (y(), O(Q, N({
|
|
5103
5103
|
key: 17,
|
|
5104
5104
|
ref: "idmFollowPosition",
|
|
5105
5105
|
map: o.map,
|
|
5106
5106
|
show: a.checkList.includes("follow-positions"),
|
|
5107
5107
|
"forecast-model": o.forecastModel,
|
|
5108
5108
|
realTime: o.realTime
|
|
5109
|
-
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) :
|
|
5109
|
+
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) : R("", !0)
|
|
5110
5110
|
]);
|
|
5111
5111
|
}
|
|
5112
|
-
const pl = /* @__PURE__ */
|
|
5112
|
+
const pl = /* @__PURE__ */ q(el, [["render", dl]]);
|
|
5113
5113
|
class Do {
|
|
5114
5114
|
constructor(e) {
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5115
|
+
de(this, "map");
|
|
5116
|
+
de(this, "mercator");
|
|
5117
|
+
de(this, "rampColorLayer");
|
|
5118
|
+
de(this, "rampColorSource");
|
|
5119
|
+
de(this, "particleLayer");
|
|
5120
|
+
de(this, "particleSource");
|
|
5121
|
+
de(this, "rampColorCanvas");
|
|
5122
|
+
de(this, "particleCanvas");
|
|
5123
|
+
de(this, "ratio");
|
|
5124
5124
|
this.map = e, this.mercator = new Qa(), 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;
|
|
5125
5125
|
}
|
|
5126
5126
|
/**
|
|
@@ -5346,7 +5346,7 @@ class je {
|
|
|
5346
5346
|
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);
|
|
5347
5347
|
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(b, w);
|
|
5348
5348
|
for (const g of L) {
|
|
5349
|
-
const _ = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio,
|
|
5349
|
+
const _ = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio, B = g[2] * e.ratio, [I, C, k, z] = [_, B + _, P, B + P], T = new Float32Array([I, k, C, k, I, z, I, z, C, k, C, z]);
|
|
5350
5350
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5351
5351
|
}
|
|
5352
5352
|
} catch (d) {
|
|
@@ -5395,10 +5395,10 @@ class je {
|
|
|
5395
5395
|
});
|
|
5396
5396
|
}
|
|
5397
5397
|
}
|
|
5398
|
-
class
|
|
5398
|
+
class ne {
|
|
5399
5399
|
}
|
|
5400
5400
|
// 顶点渲染
|
|
5401
|
-
|
|
5401
|
+
de(ne, "vertexSchema", `
|
|
5402
5402
|
//canvas 坐标系上的坐标 (x, y)
|
|
5403
5403
|
attribute vec2 a_position; //像素坐标
|
|
5404
5404
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -5413,7 +5413,7 @@ pe(ce, "vertexSchema", `
|
|
|
5413
5413
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
5414
5414
|
v_texCoord = a_texCoord;
|
|
5415
5415
|
}`), // 类如风、流等u v双变量片元渲染
|
|
5416
|
-
|
|
5416
|
+
de(ne, "uvFragmentSchema", `
|
|
5417
5417
|
precision mediump float;
|
|
5418
5418
|
uniform sampler2D u_image;
|
|
5419
5419
|
uniform vec2 u_range_u_v;
|
|
@@ -5433,7 +5433,7 @@ pe(ce, "uvFragmentSchema", `
|
|
|
5433
5433
|
|
|
5434
5434
|
gl_FragColor = color;
|
|
5435
5435
|
}`), // 类如浪、气压等单变量片元渲染
|
|
5436
|
-
|
|
5436
|
+
de(ne, "fragmentSchema", `
|
|
5437
5437
|
precision mediump float;
|
|
5438
5438
|
uniform sampler2D u_image; // 灰度
|
|
5439
5439
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -5444,9 +5444,9 @@ pe(ce, "fragmentSchema", `
|
|
|
5444
5444
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
5445
5445
|
gl_FragColor = color;
|
|
5446
5446
|
}`);
|
|
5447
|
-
class
|
|
5447
|
+
class Te {
|
|
5448
5448
|
}
|
|
5449
|
-
|
|
5449
|
+
de(Te, "vertexSchema", `
|
|
5450
5450
|
precision mediump float;
|
|
5451
5451
|
|
|
5452
5452
|
attribute float a_index; // 索引
|
|
@@ -5470,7 +5470,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5470
5470
|
gl_PointSize = 1.0;
|
|
5471
5471
|
// gl_PointSize = u_point;
|
|
5472
5472
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
5473
|
-
}`),
|
|
5473
|
+
}`), de(Te, "fragmentSchema", `
|
|
5474
5474
|
precision mediump float;
|
|
5475
5475
|
|
|
5476
5476
|
uniform sampler2D u_factor;
|
|
@@ -5492,7 +5492,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5492
5492
|
|
|
5493
5493
|
float f = 1.0 - uv.b;
|
|
5494
5494
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
5495
|
-
}`),
|
|
5495
|
+
}`), de(Te, "quadVertSchema", `
|
|
5496
5496
|
precision mediump float;
|
|
5497
5497
|
|
|
5498
5498
|
attribute vec2 a_pos;
|
|
@@ -5502,7 +5502,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5502
5502
|
void main() {
|
|
5503
5503
|
v_tex_pos = a_pos;
|
|
5504
5504
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
5505
|
-
}`),
|
|
5505
|
+
}`), de(Te, "screenFragmentSchema", `
|
|
5506
5506
|
precision mediump float;
|
|
5507
5507
|
|
|
5508
5508
|
uniform sampler2D u_screen;
|
|
@@ -5514,7 +5514,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5514
5514
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
5515
5515
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
5516
5516
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
5517
|
-
}`),
|
|
5517
|
+
}`), de(Te, "updateFragmentSchema", `
|
|
5518
5518
|
precision mediump float;
|
|
5519
5519
|
|
|
5520
5520
|
uniform sampler2D u_particles;
|
|
@@ -5754,7 +5754,7 @@ const ul = {
|
|
|
5754
5754
|
function fl(t, e, o, i, a, r) {
|
|
5755
5755
|
return null;
|
|
5756
5756
|
}
|
|
5757
|
-
const yl = /* @__PURE__ */
|
|
5757
|
+
const yl = /* @__PURE__ */ q(gl, [["render", fl]]);
|
|
5758
5758
|
const bl = {
|
|
5759
5759
|
name: "IdmWindParticle",
|
|
5760
5760
|
props: {
|
|
@@ -5862,7 +5862,7 @@ const bl = {
|
|
|
5862
5862
|
[1, "rgb(91, 136, 161)"]
|
|
5863
5863
|
];
|
|
5864
5864
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5865
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5865
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
5866
5866
|
this.program = e, this.aPositionBuffer = o;
|
|
5867
5867
|
}
|
|
5868
5868
|
this.handleParticleSetup();
|
|
@@ -5876,11 +5876,11 @@ const bl = {
|
|
|
5876
5876
|
];
|
|
5877
5877
|
this.wrapper = this.webgl.bindParticle(
|
|
5878
5878
|
this.particleContext,
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5879
|
+
Te.vertexSchema,
|
|
5880
|
+
Te.fragmentSchema,
|
|
5881
|
+
Te.quadVertSchema,
|
|
5882
|
+
Te.screenFragmentSchema,
|
|
5883
|
+
Te.updateFragmentSchema
|
|
5884
5884
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
5885
5885
|
}
|
|
5886
5886
|
},
|
|
@@ -5935,9 +5935,9 @@ function xl(t, e, o, i, a, r) {
|
|
|
5935
5935
|
s("span", null, "40", -1),
|
|
5936
5936
|
s("span", null, "60", -1)
|
|
5937
5937
|
]), 4)
|
|
5938
|
-
])) :
|
|
5938
|
+
])) : R("", !0);
|
|
5939
5939
|
}
|
|
5940
|
-
const vl = /* @__PURE__ */
|
|
5940
|
+
const vl = /* @__PURE__ */ q(bl, [["render", xl]]), _l = {
|
|
5941
5941
|
name: "IdmCurrent",
|
|
5942
5942
|
props: {
|
|
5943
5943
|
map: {
|
|
@@ -6095,7 +6095,7 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
6095
6095
|
function kl(t, e, o, i, a, r) {
|
|
6096
6096
|
return null;
|
|
6097
6097
|
}
|
|
6098
|
-
const zl = /* @__PURE__ */
|
|
6098
|
+
const zl = /* @__PURE__ */ q(_l, [["render", kl]]);
|
|
6099
6099
|
const Ll = {
|
|
6100
6100
|
name: "IdmCurrentParticle",
|
|
6101
6101
|
props: {
|
|
@@ -6195,7 +6195,7 @@ const Ll = {
|
|
|
6195
6195
|
[1, "rgb(195,194,194)"]
|
|
6196
6196
|
];
|
|
6197
6197
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6198
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6198
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
6199
6199
|
this.program = e, this.aPositionBuffer = o;
|
|
6200
6200
|
}
|
|
6201
6201
|
this.handleParticleSetup();
|
|
@@ -6210,11 +6210,11 @@ const Ll = {
|
|
|
6210
6210
|
];
|
|
6211
6211
|
this.wrapper = this.webgl.bindParticle(
|
|
6212
6212
|
this.particleContext,
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6213
|
+
Te.vertexSchema,
|
|
6214
|
+
Te.fragmentSchema,
|
|
6215
|
+
Te.quadVertSchema,
|
|
6216
|
+
Te.screenFragmentSchema,
|
|
6217
|
+
Te.updateFragmentSchema
|
|
6218
6218
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
6219
6219
|
...this.wrapper,
|
|
6220
6220
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -6272,9 +6272,9 @@ function Cl(t, e, o, i, a, r) {
|
|
|
6272
6272
|
s("span", null, "2", -1),
|
|
6273
6273
|
s("span", null, "3.2", -1)
|
|
6274
6274
|
]), 4)
|
|
6275
|
-
])) :
|
|
6275
|
+
])) : R("", !0);
|
|
6276
6276
|
}
|
|
6277
|
-
const Tl = /* @__PURE__ */
|
|
6277
|
+
const Tl = /* @__PURE__ */ q(Ll, [["render", Cl]]);
|
|
6278
6278
|
const Sl = {
|
|
6279
6279
|
name: "IdmSigWave",
|
|
6280
6280
|
props: {
|
|
@@ -6367,7 +6367,7 @@ const Sl = {
|
|
|
6367
6367
|
//13
|
|
6368
6368
|
];
|
|
6369
6369
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6370
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6370
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6371
6371
|
this.program = e, this.aPositionBuffer = o;
|
|
6372
6372
|
}
|
|
6373
6373
|
},
|
|
@@ -6396,9 +6396,9 @@ function Il(t, e, o, i, a, r) {
|
|
|
6396
6396
|
s("span", null, "6", -1),
|
|
6397
6397
|
s("span", null, "9", -1)
|
|
6398
6398
|
]), 4)
|
|
6399
|
-
])) :
|
|
6399
|
+
])) : R("", !0);
|
|
6400
6400
|
}
|
|
6401
|
-
const Dl = /* @__PURE__ */
|
|
6401
|
+
const Dl = /* @__PURE__ */ q(Sl, [["render", Il], ["__scopeId", "data-v-fa73c319"]]), Al = {
|
|
6402
6402
|
name: "IdmSigWaveHeight",
|
|
6403
6403
|
props: {
|
|
6404
6404
|
map: {
|
|
@@ -6546,7 +6546,7 @@ const Dl = /* @__PURE__ */ X(Sl, [["render", Il], ["__scopeId", "data-v-fa73c319
|
|
|
6546
6546
|
function Rl(t, e, o, i, a, r) {
|
|
6547
6547
|
return null;
|
|
6548
6548
|
}
|
|
6549
|
-
const Ol = /* @__PURE__ */
|
|
6549
|
+
const Ol = /* @__PURE__ */ q(Al, [["render", Rl]]);
|
|
6550
6550
|
const Bl = {
|
|
6551
6551
|
name: "IdmSwell",
|
|
6552
6552
|
props: {
|
|
@@ -6639,7 +6639,7 @@ const Bl = {
|
|
|
6639
6639
|
//13
|
|
6640
6640
|
];
|
|
6641
6641
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6642
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6642
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6643
6643
|
this.program = e, this.aPositionBuffer = o;
|
|
6644
6644
|
}
|
|
6645
6645
|
},
|
|
@@ -6668,9 +6668,9 @@ function El(t, e, o, i, a, r) {
|
|
|
6668
6668
|
s("span", null, "6", -1),
|
|
6669
6669
|
s("span", null, "9", -1)
|
|
6670
6670
|
]), 4)
|
|
6671
|
-
])) :
|
|
6671
|
+
])) : R("", !0);
|
|
6672
6672
|
}
|
|
6673
|
-
const jl = /* @__PURE__ */
|
|
6673
|
+
const jl = /* @__PURE__ */ q(Bl, [["render", El], ["__scopeId", "data-v-d47b8b5c"]]), Fl = {
|
|
6674
6674
|
name: "IdmPrmsl",
|
|
6675
6675
|
props: {
|
|
6676
6676
|
map: {
|
|
@@ -6832,7 +6832,7 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6832
6832
|
location: "left"
|
|
6833
6833
|
}, {
|
|
6834
6834
|
activator: f(({ props: u }) => [
|
|
6835
|
-
p(l,
|
|
6835
|
+
p(l, N(u, {
|
|
6836
6836
|
"min-width": "32",
|
|
6837
6837
|
width: "32",
|
|
6838
6838
|
height: "32",
|
|
@@ -6850,9 +6850,9 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6850
6850
|
_: 1
|
|
6851
6851
|
})
|
|
6852
6852
|
], 4)
|
|
6853
|
-
])) :
|
|
6853
|
+
])) : R("", !0);
|
|
6854
6854
|
}
|
|
6855
|
-
const Ul = /* @__PURE__ */
|
|
6855
|
+
const Ul = /* @__PURE__ */ q(Fl, [["render", Gl]]);
|
|
6856
6856
|
const Wl = {
|
|
6857
6857
|
name: "IdmIceEdge",
|
|
6858
6858
|
props: {
|
|
@@ -6938,7 +6938,7 @@ const Wl = {
|
|
|
6938
6938
|
// 100%
|
|
6939
6939
|
];
|
|
6940
6940
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6941
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6941
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6942
6942
|
this.program = e, this.aPositionBuffer = o;
|
|
6943
6943
|
}
|
|
6944
6944
|
},
|
|
@@ -6972,9 +6972,9 @@ function Zl(t, e, o, i, a, r) {
|
|
|
6972
6972
|
s("span", null, "90", -1),
|
|
6973
6973
|
s("span", null, null, -1)
|
|
6974
6974
|
]), 4)
|
|
6975
|
-
])) :
|
|
6975
|
+
])) : R("", !0);
|
|
6976
6976
|
}
|
|
6977
|
-
const Yl = /* @__PURE__ */
|
|
6977
|
+
const Yl = /* @__PURE__ */ q(Wl, [["render", Zl]]);
|
|
6978
6978
|
const ql = {
|
|
6979
6979
|
name: "IdmCover",
|
|
6980
6980
|
props: {
|
|
@@ -7051,7 +7051,7 @@ const ql = {
|
|
|
7051
7051
|
// 100%
|
|
7052
7052
|
];
|
|
7053
7053
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7054
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7054
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7055
7055
|
this.program = e, this.aPositionBuffer = o;
|
|
7056
7056
|
}
|
|
7057
7057
|
},
|
|
@@ -7079,9 +7079,9 @@ function $l(t, e, o, i, a, r) {
|
|
|
7079
7079
|
s("span", null, "80", -1),
|
|
7080
7080
|
s("span", null, "100", -1)
|
|
7081
7081
|
]), 4)
|
|
7082
|
-
])) :
|
|
7082
|
+
])) : R("", !0);
|
|
7083
7083
|
}
|
|
7084
|
-
const Kl = /* @__PURE__ */
|
|
7084
|
+
const Kl = /* @__PURE__ */ q(ql, [["render", $l], ["__scopeId", "data-v-dcedee39"]]);
|
|
7085
7085
|
const Jl = {
|
|
7086
7086
|
name: "IdmThickness",
|
|
7087
7087
|
props: {
|
|
@@ -7165,7 +7165,7 @@ const Jl = {
|
|
|
7165
7165
|
// 4m
|
|
7166
7166
|
];
|
|
7167
7167
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7168
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7168
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7169
7169
|
this.program = e, this.aPositionBuffer = o;
|
|
7170
7170
|
}
|
|
7171
7171
|
},
|
|
@@ -7194,9 +7194,9 @@ function en(t, e, o, i, a, r) {
|
|
|
7194
7194
|
s("span", null, "2", -1),
|
|
7195
7195
|
s("span", null, "3", -1)
|
|
7196
7196
|
]), 4)
|
|
7197
|
-
])) :
|
|
7197
|
+
])) : R("", !0);
|
|
7198
7198
|
}
|
|
7199
|
-
const tn = /* @__PURE__ */
|
|
7199
|
+
const tn = /* @__PURE__ */ q(Jl, [["render", en]]);
|
|
7200
7200
|
const on = {
|
|
7201
7201
|
name: "IdmPrecip3h",
|
|
7202
7202
|
props: {
|
|
@@ -7281,7 +7281,7 @@ const on = {
|
|
|
7281
7281
|
[1, "rgba(197,5,58,0.8)"]
|
|
7282
7282
|
];
|
|
7283
7283
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7284
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7284
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7285
7285
|
this.program = e, this.aPositionBuffer = o;
|
|
7286
7286
|
}
|
|
7287
7287
|
},
|
|
@@ -7311,9 +7311,9 @@ function rn(t, e, o, i, a, r) {
|
|
|
7311
7311
|
s("span", null, "20", -1),
|
|
7312
7312
|
s("span", null, "30", -1)
|
|
7313
7313
|
]), 4)
|
|
7314
|
-
])) :
|
|
7314
|
+
])) : R("", !0);
|
|
7315
7315
|
}
|
|
7316
|
-
const sn = /* @__PURE__ */
|
|
7316
|
+
const sn = /* @__PURE__ */ q(on, [["render", rn]]);
|
|
7317
7317
|
const ln = {
|
|
7318
7318
|
name: "IdmVisibility",
|
|
7319
7319
|
props: {
|
|
@@ -7388,7 +7388,7 @@ const ln = {
|
|
|
7388
7388
|
[1, "rgba(144,144,144,0)"]
|
|
7389
7389
|
];
|
|
7390
7390
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7391
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7391
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7392
7392
|
this.program = e, this.aPositionBuffer = o;
|
|
7393
7393
|
}
|
|
7394
7394
|
},
|
|
@@ -7416,9 +7416,9 @@ function cn(t, e, o, i, a, r) {
|
|
|
7416
7416
|
s("span", null, "3", -1),
|
|
7417
7417
|
s("span", null, "9", -1)
|
|
7418
7418
|
]), 4)
|
|
7419
|
-
])) :
|
|
7419
|
+
])) : R("", !0);
|
|
7420
7420
|
}
|
|
7421
|
-
const mn = /* @__PURE__ */
|
|
7421
|
+
const mn = /* @__PURE__ */ q(ln, [["render", cn]]);
|
|
7422
7422
|
const hn = {
|
|
7423
7423
|
name: "IdmWaterTemp",
|
|
7424
7424
|
props: {
|
|
@@ -7496,7 +7496,7 @@ const hn = {
|
|
|
7496
7496
|
//
|
|
7497
7497
|
];
|
|
7498
7498
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7499
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7499
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7500
7500
|
this.program = e, this.aPositionBuffer = o;
|
|
7501
7501
|
}
|
|
7502
7502
|
},
|
|
@@ -7524,9 +7524,9 @@ function pn(t, e, o, i, a, r) {
|
|
|
7524
7524
|
s("span", null, "30", -1),
|
|
7525
7525
|
s("span", null, "40", -1)
|
|
7526
7526
|
]), 4)
|
|
7527
|
-
])) :
|
|
7527
|
+
])) : R("", !0);
|
|
7528
7528
|
}
|
|
7529
|
-
const un = /* @__PURE__ */
|
|
7529
|
+
const un = /* @__PURE__ */ q(hn, [["render", pn]]);
|
|
7530
7530
|
const gn = {
|
|
7531
7531
|
name: "IdmTemp",
|
|
7532
7532
|
props: {
|
|
@@ -7615,7 +7615,7 @@ const gn = {
|
|
|
7615
7615
|
[1, "rgb(138, 43, 10)"]
|
|
7616
7616
|
];
|
|
7617
7617
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7618
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7618
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7619
7619
|
this.program = e, this.aPositionBuffer = o;
|
|
7620
7620
|
}
|
|
7621
7621
|
},
|
|
@@ -7645,9 +7645,9 @@ function yn(t, e, o, i, a, r) {
|
|
|
7645
7645
|
s("span", null, "30", -1),
|
|
7646
7646
|
s("span", null, "40", -1)
|
|
7647
7647
|
]), 4)
|
|
7648
|
-
])) :
|
|
7648
|
+
])) : R("", !0);
|
|
7649
7649
|
}
|
|
7650
|
-
const bn = /* @__PURE__ */
|
|
7650
|
+
const bn = /* @__PURE__ */ q(gn, [["render", yn]]);
|
|
7651
7651
|
const wn = {
|
|
7652
7652
|
name: "IdmGlLayer",
|
|
7653
7653
|
components: {
|
|
@@ -7903,7 +7903,7 @@ const wn = {
|
|
|
7903
7903
|
},
|
|
7904
7904
|
async fetchModels() {
|
|
7905
7905
|
this.models = {};
|
|
7906
|
-
const t = await
|
|
7906
|
+
const t = await De.get(`${this.gateway}/api/arc/meteo2/models2`, {
|
|
7907
7907
|
headers: {
|
|
7908
7908
|
Authorization: this.defaultMeteoToken
|
|
7909
7909
|
}
|
|
@@ -7917,17 +7917,17 @@ const wn = {
|
|
|
7917
7917
|
if (this.map) {
|
|
7918
7918
|
const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), _ = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
7919
7919
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
7920
|
-
const P = To.WEATHER_LAYERS.find((
|
|
7920
|
+
const P = To.WEATHER_LAYERS.find((B) => {
|
|
7921
7921
|
var I;
|
|
7922
|
-
return ((I =
|
|
7922
|
+
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
7923
7923
|
});
|
|
7924
7924
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight : this.weatherWeight + P.weight : this.weatherWeight = this.weatherWeight & P.weight ? this.weatherWeight - P.weight : this.weatherWeight;
|
|
7925
7925
|
}
|
|
7926
7926
|
if (this.weatherWeight > 0) {
|
|
7927
7927
|
let P = this.weatherWeight;
|
|
7928
7928
|
if (P > 0) {
|
|
7929
|
-
const
|
|
7930
|
-
`${
|
|
7929
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await De.get(
|
|
7930
|
+
`${B}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${L}&bbox=${_}&t=${this.realTime}`,
|
|
7931
7931
|
{
|
|
7932
7932
|
headers: {
|
|
7933
7933
|
Authorization: this.defaultMeteoToken
|
|
@@ -7938,7 +7938,7 @@ const wn = {
|
|
|
7938
7938
|
const C = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
|
|
7939
7939
|
for (const T in C)
|
|
7940
7940
|
k.push(
|
|
7941
|
-
|
|
7941
|
+
De.get(C[T], {
|
|
7942
7942
|
headers: {
|
|
7943
7943
|
Authorization: this.defaultMeteoToken,
|
|
7944
7944
|
key: T
|
|
@@ -7950,9 +7950,9 @@ const wn = {
|
|
|
7950
7950
|
);
|
|
7951
7951
|
const z = await Promise.all(k);
|
|
7952
7952
|
this.weatherLayers = {}, z.map((T) => {
|
|
7953
|
-
var
|
|
7954
|
-
const v = ((
|
|
7955
|
-
let D = (
|
|
7953
|
+
var F, V, Y, Z;
|
|
7954
|
+
const v = ((F = T == null ? void 0 : T.data) == null ? void 0 : F.data) || (T == null ? void 0 : T.data);
|
|
7955
|
+
let D = (Y = (V = T == null ? void 0 : T.config) == null ? void 0 : V.headers) == null ? void 0 : Y.key;
|
|
7956
7956
|
D && v && (this.weatherLayers[D] = {
|
|
7957
7957
|
raw: v,
|
|
7958
7958
|
type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
@@ -8036,50 +8036,50 @@ const wn = {
|
|
|
8036
8036
|
let e = 0, o = 0;
|
|
8037
8037
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8038
8038
|
if (i && a) {
|
|
8039
|
-
const w =
|
|
8039
|
+
const w = X.convertToStdLng(i._sw.lng), L = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), _ = Math.ceil(i._ne.lat);
|
|
8040
8040
|
for (const P in this.weatherLayers) {
|
|
8041
|
-
let
|
|
8041
|
+
let B = !1;
|
|
8042
8042
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
8043
8043
|
let I = [];
|
|
8044
8044
|
if (P === "swell") {
|
|
8045
|
-
|
|
8045
|
+
B = !0;
|
|
8046
8046
|
const C = ((c = this.weatherLayers[P]) == null ? void 0 : c.direction) || {};
|
|
8047
8047
|
for (const z in C)
|
|
8048
8048
|
if (z > g && z < _ && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8049
8049
|
const T = C[z].lng;
|
|
8050
8050
|
w > L ? T.forEach((v, D) => {
|
|
8051
|
-
var
|
|
8051
|
+
var F, V, Y, Z, J, Q;
|
|
8052
8052
|
if (a < 2) {
|
|
8053
8053
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8054
|
-
const
|
|
8055
|
-
val: ((
|
|
8056
|
-
spd: (
|
|
8054
|
+
const K = H.point([v, z], {
|
|
8055
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8056
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8057
8057
|
});
|
|
8058
|
-
I.push(
|
|
8058
|
+
I.push(K);
|
|
8059
8059
|
}
|
|
8060
8060
|
} else if ((v >= w && v <= 180 || v >= -180 && v <= L) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8061
|
-
const
|
|
8062
|
-
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((
|
|
8063
|
-
spd: (
|
|
8061
|
+
const K = H.point([v, z], {
|
|
8062
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8063
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8064
8064
|
});
|
|
8065
|
-
I.push(
|
|
8065
|
+
I.push(K);
|
|
8066
8066
|
}
|
|
8067
8067
|
}) : T.forEach((v, D) => {
|
|
8068
|
-
var
|
|
8068
|
+
var F, V, Y, Z, J, Q;
|
|
8069
8069
|
if (w < 2) {
|
|
8070
8070
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8071
|
-
const
|
|
8072
|
-
val: ((
|
|
8073
|
-
spd: (
|
|
8071
|
+
const K = H.point([v, z], {
|
|
8072
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8073
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8074
8074
|
});
|
|
8075
|
-
I.push(
|
|
8075
|
+
I.push(K);
|
|
8076
8076
|
}
|
|
8077
8077
|
} else if (v >= w && v <= L && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8078
|
-
const
|
|
8079
|
-
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((
|
|
8080
|
-
spd: (
|
|
8078
|
+
const K = H.point([v, z], {
|
|
8079
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8080
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8081
8081
|
});
|
|
8082
|
-
I.push(
|
|
8082
|
+
I.push(K);
|
|
8083
8083
|
}
|
|
8084
8084
|
});
|
|
8085
8085
|
}
|
|
@@ -8106,44 +8106,44 @@ const wn = {
|
|
|
8106
8106
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8107
8107
|
}
|
|
8108
8108
|
} else if (P === "current") {
|
|
8109
|
-
|
|
8109
|
+
B = !0;
|
|
8110
8110
|
const C = ((u = this.weatherLayers[P]) == null ? void 0 : u.direction) || {};
|
|
8111
8111
|
for (const z in C)
|
|
8112
8112
|
if (z > g && z < _ && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8113
8113
|
const T = C[z].lng;
|
|
8114
8114
|
w > L ? T.forEach((v, D) => {
|
|
8115
|
-
var
|
|
8115
|
+
var F, V, Y, Z, J, Q;
|
|
8116
8116
|
if (a < 2) {
|
|
8117
8117
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8118
|
-
const
|
|
8119
|
-
val: ((
|
|
8120
|
-
spd: (
|
|
8118
|
+
const K = H.point([v, z], {
|
|
8119
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8120
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8121
8121
|
});
|
|
8122
|
-
I.push(
|
|
8122
|
+
I.push(K);
|
|
8123
8123
|
}
|
|
8124
8124
|
} else if ((v >= w && v <= 180 || v >= -180 && v <= L) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8125
|
-
const
|
|
8126
|
-
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((
|
|
8127
|
-
spd: (
|
|
8125
|
+
const K = H.point([v, z], {
|
|
8126
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8127
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8128
8128
|
});
|
|
8129
|
-
I.push(
|
|
8129
|
+
I.push(K);
|
|
8130
8130
|
}
|
|
8131
8131
|
}) : T.forEach((v, D) => {
|
|
8132
|
-
var
|
|
8132
|
+
var F, V, Y, Z, J, Q;
|
|
8133
8133
|
if (w < 2) {
|
|
8134
8134
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8135
|
-
const
|
|
8136
|
-
val: ((
|
|
8137
|
-
spd: (
|
|
8135
|
+
const K = H.point([v, z], {
|
|
8136
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8137
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8138
8138
|
});
|
|
8139
|
-
I.push(
|
|
8139
|
+
I.push(K);
|
|
8140
8140
|
}
|
|
8141
8141
|
} else if (v >= w && v <= L && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8142
|
-
const
|
|
8143
|
-
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((
|
|
8144
|
-
spd: (
|
|
8142
|
+
const K = H.point([v, z], {
|
|
8143
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8144
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8145
8145
|
});
|
|
8146
|
-
I.push(
|
|
8146
|
+
I.push(K);
|
|
8147
8147
|
}
|
|
8148
8148
|
});
|
|
8149
8149
|
}
|
|
@@ -8154,9 +8154,9 @@ const wn = {
|
|
|
8154
8154
|
const T = [];
|
|
8155
8155
|
for (const v in (d = k.raw) == null ? void 0 : d.Polygon) {
|
|
8156
8156
|
const D = k.raw.Polygon[v];
|
|
8157
|
-
for (const
|
|
8157
|
+
for (const F of D)
|
|
8158
8158
|
T.push(
|
|
8159
|
-
H.polygon(
|
|
8159
|
+
H.polygon(F, {
|
|
8160
8160
|
val: Number(v)
|
|
8161
8161
|
})
|
|
8162
8162
|
);
|
|
@@ -8167,41 +8167,41 @@ const wn = {
|
|
|
8167
8167
|
I = I.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8168
8168
|
}
|
|
8169
8169
|
} else if (P === "wind") {
|
|
8170
|
-
|
|
8170
|
+
B = !0;
|
|
8171
8171
|
const C = this.weatherLayers.wind.raw;
|
|
8172
8172
|
for (const k in C)
|
|
8173
8173
|
if (k > g && k < _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8174
8174
|
const z = C[k].lng;
|
|
8175
8175
|
w > L ? z.forEach((T, v) => {
|
|
8176
|
-
var D,
|
|
8176
|
+
var D, F, V, Y;
|
|
8177
8177
|
if (a < 2) {
|
|
8178
8178
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
8179
8179
|
const Z = H.point([T, k], {
|
|
8180
|
-
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((
|
|
8180
|
+
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((F = C[k].dir) == null ? void 0 : F[v]),
|
|
8181
8181
|
spd: C[k].spd[v]
|
|
8182
8182
|
});
|
|
8183
8183
|
I.push(Z);
|
|
8184
8184
|
}
|
|
8185
8185
|
} else if ((T >= w && T <= 180 || T >= -180 && T <= L) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8186
8186
|
const Z = H.point([T, k], {
|
|
8187
|
-
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((
|
|
8187
|
+
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8188
8188
|
spd: C[k].spd[v]
|
|
8189
8189
|
});
|
|
8190
8190
|
I.push(Z);
|
|
8191
8191
|
}
|
|
8192
8192
|
}) : z.forEach((T, v) => {
|
|
8193
|
-
var D,
|
|
8193
|
+
var D, F, V, Y;
|
|
8194
8194
|
if (a < 2) {
|
|
8195
8195
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
8196
8196
|
const Z = H.point([T, k], {
|
|
8197
|
-
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((
|
|
8197
|
+
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((F = C[k].dir) == null ? void 0 : F[v]),
|
|
8198
8198
|
spd: C[k].spd[v]
|
|
8199
8199
|
});
|
|
8200
8200
|
I.push(Z);
|
|
8201
8201
|
}
|
|
8202
8202
|
} else if (T >= w && T <= L && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8203
8203
|
const Z = H.point([T, k], {
|
|
8204
|
-
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((
|
|
8204
|
+
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8205
8205
|
spd: C[k].spd[v]
|
|
8206
8206
|
});
|
|
8207
8207
|
I.push(Z);
|
|
@@ -8213,7 +8213,7 @@ const wn = {
|
|
|
8213
8213
|
if (this.weatherLayers[P].data)
|
|
8214
8214
|
I = this.weatherLayers[P].data;
|
|
8215
8215
|
else {
|
|
8216
|
-
|
|
8216
|
+
B = !0;
|
|
8217
8217
|
const C = this.weatherLayers[P].raw;
|
|
8218
8218
|
if (C) {
|
|
8219
8219
|
const k = [];
|
|
@@ -8252,7 +8252,7 @@ const wn = {
|
|
|
8252
8252
|
if (this.weatherLayers[P].data)
|
|
8253
8253
|
I = this.weatherLayers[P].data;
|
|
8254
8254
|
else {
|
|
8255
|
-
|
|
8255
|
+
B = !0;
|
|
8256
8256
|
const C = this.weatherLayers[P].raw;
|
|
8257
8257
|
if (C) {
|
|
8258
8258
|
const k = [];
|
|
@@ -8267,7 +8267,7 @@ const wn = {
|
|
|
8267
8267
|
}
|
|
8268
8268
|
for (const z in C.Point)
|
|
8269
8269
|
C.Point[z].lng.forEach((T, v) => {
|
|
8270
|
-
T =
|
|
8270
|
+
T = X.convertToStdLng(T), k.push(
|
|
8271
8271
|
H.point([T, z], {
|
|
8272
8272
|
val: C.Point[z].val[v],
|
|
8273
8273
|
type: C.Point[z].type[v]
|
|
@@ -8279,7 +8279,7 @@ const wn = {
|
|
|
8279
8279
|
}
|
|
8280
8280
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
8281
8281
|
}
|
|
8282
|
-
I.length && (this.weatherLayers[P].data = H.featureCollection(I)),
|
|
8282
|
+
I.length && (this.weatherLayers[P].data = H.featureCollection(I)), B && (this.weatherLayers[P].version = Math.random() + 1);
|
|
8283
8283
|
}
|
|
8284
8284
|
}
|
|
8285
8285
|
}
|
|
@@ -8290,7 +8290,7 @@ const wn = {
|
|
|
8290
8290
|
this.handleDrawWeather4Json();
|
|
8291
8291
|
},
|
|
8292
8292
|
handleBboxClip(t, e) {
|
|
8293
|
-
const o = [], i =
|
|
8293
|
+
const o = [], i = X.convertToStdLng(e._sw.lng), a = X.convertToStdLng(e._ne.lng);
|
|
8294
8294
|
return t.features.forEach((r) => {
|
|
8295
8295
|
if (r.geometry.type !== "Point")
|
|
8296
8296
|
if (i > a) {
|
|
@@ -8322,8 +8322,8 @@ const wn = {
|
|
|
8322
8322
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8323
8323
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, jn = { 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" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { 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" };
|
|
8324
8324
|
function ic(t, e, o, i, a, r) {
|
|
8325
|
-
var
|
|
8326
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), d = x("VCardText"), b = x("VDivider"), w = x("VCard"), L = x("VSwitch"), g = x("VCardTitle"), _ = x("VCardItem"), P = x("VCheckbox"),
|
|
8325
|
+
var pe, ie, ce, ue, me, he, A, ee, ye, xe, Le, Pe, ve, Me, Ce;
|
|
8326
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), d = x("VCardText"), b = x("VDivider"), w = x("VCard"), L = x("VSwitch"), g = x("VCardTitle"), _ = x("VCardItem"), P = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), k = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), T = x("IdmPrmsl"), v = x("IdmWindParticle"), D = x("IdmCurrentParticle"), F = x("IdmWave"), V = x("IdmSwell"), Y = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), Q = x("IdmPrecip3h"), K = x("IdmVisibility"), se = x("IdmWaterTemp"), le = x("IdmTemp");
|
|
8327
8327
|
return y(), M("div", xn, [
|
|
8328
8328
|
s("div", {
|
|
8329
8329
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8334,7 +8334,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8334
8334
|
location: "left"
|
|
8335
8335
|
}, {
|
|
8336
8336
|
activator: f(({ props: G }) => [
|
|
8337
|
-
p(l,
|
|
8337
|
+
p(l, N(G, {
|
|
8338
8338
|
"min-width": "32",
|
|
8339
8339
|
width: "32",
|
|
8340
8340
|
height: "32",
|
|
@@ -8361,7 +8361,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8361
8361
|
location: "left"
|
|
8362
8362
|
}, {
|
|
8363
8363
|
activator: f(({ props: G }) => [
|
|
8364
|
-
p(l,
|
|
8364
|
+
p(l, N(G, {
|
|
8365
8365
|
"min-width": "32",
|
|
8366
8366
|
width: "32",
|
|
8367
8367
|
height: "32",
|
|
@@ -8378,7 +8378,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8378
8378
|
_: 1
|
|
8379
8379
|
})
|
|
8380
8380
|
], 4),
|
|
8381
|
-
a.legendToggle ? (y(),
|
|
8381
|
+
a.legendToggle ? (y(), O(w, {
|
|
8382
8382
|
key: 0,
|
|
8383
8383
|
width: "435",
|
|
8384
8384
|
elevation: "16",
|
|
@@ -8391,7 +8391,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8391
8391
|
e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
8392
8392
|
p(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
8393
8393
|
default: f(() => [
|
|
8394
|
-
(y(!0), M(
|
|
8394
|
+
(y(!0), M(we, null, _e(a.legend.barbs, (G, te) => (y(), O(n, {
|
|
8395
8395
|
key: G,
|
|
8396
8396
|
cols: "6",
|
|
8397
8397
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -8423,7 +8423,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8423
8423
|
style: { width: "100px" }
|
|
8424
8424
|
}, {
|
|
8425
8425
|
default: f(() => [
|
|
8426
|
-
(y(!0), M(
|
|
8426
|
+
(y(!0), M(we, null, _e(a.legend.sigWaveHeight, (G, te) => (y(), O(n, {
|
|
8427
8427
|
key: te,
|
|
8428
8428
|
cols: "12",
|
|
8429
8429
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -8455,7 +8455,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8455
8455
|
style: { width: "110px" }
|
|
8456
8456
|
}, {
|
|
8457
8457
|
default: f(() => [
|
|
8458
|
-
(y(!0), M(
|
|
8458
|
+
(y(!0), M(we, null, _e(a.legend.current, (G, te) => (y(), O(n, {
|
|
8459
8459
|
key: te,
|
|
8460
8460
|
cols: "12",
|
|
8461
8461
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -8482,8 +8482,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8482
8482
|
})
|
|
8483
8483
|
]),
|
|
8484
8484
|
_: 1
|
|
8485
|
-
}, 8, ["style"])) :
|
|
8486
|
-
])) :
|
|
8485
|
+
}, 8, ["style"])) : R("", !0)
|
|
8486
|
+
])) : R("", !0),
|
|
8487
8487
|
s("div", {
|
|
8488
8488
|
class: Ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
8489
8489
|
style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
@@ -8530,7 +8530,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8530
8530
|
style: { "font-size": "16px !important" }
|
|
8531
8531
|
}, {
|
|
8532
8532
|
default: f(() => [
|
|
8533
|
-
|
|
8533
|
+
$(m(t.$t("weather.overlays")), 1)
|
|
8534
8534
|
]),
|
|
8535
8535
|
_: 1
|
|
8536
8536
|
})
|
|
@@ -8539,7 +8539,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8539
8539
|
}),
|
|
8540
8540
|
p(d, { class: "py-2" }, {
|
|
8541
8541
|
default: f(() => [
|
|
8542
|
-
(y(!0), M(
|
|
8542
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((G) => G.overlays), (G) => (y(), O(P, {
|
|
8543
8543
|
key: G.key,
|
|
8544
8544
|
modelValue: a.checkList,
|
|
8545
8545
|
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
@@ -8570,7 +8570,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8570
8570
|
style: { "font-size": "16px !important" }
|
|
8571
8571
|
}, {
|
|
8572
8572
|
default: f(() => [
|
|
8573
|
-
|
|
8573
|
+
$(m(t.$t("weather.renders")), 1)
|
|
8574
8574
|
]),
|
|
8575
8575
|
_: 1
|
|
8576
8576
|
})
|
|
@@ -8579,10 +8579,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
8579
8579
|
}),
|
|
8580
8580
|
p(d, { class: "py-2" }, {
|
|
8581
8581
|
default: f(() => [
|
|
8582
|
-
(y(!0), M(
|
|
8582
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), M(we, {
|
|
8583
8583
|
key: G.key
|
|
8584
8584
|
}, [
|
|
8585
|
-
p(
|
|
8585
|
+
p(B, {
|
|
8586
8586
|
modelValue: a.renderKey,
|
|
8587
8587
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
8588
8588
|
label: t.$t(`weather.${G.locale}`),
|
|
@@ -8609,7 +8609,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8609
8609
|
style: { "font-size": "14px" },
|
|
8610
8610
|
"hide-details": ""
|
|
8611
8611
|
}, null, 8, ["modelValue"])
|
|
8612
|
-
])) :
|
|
8612
|
+
])) : R("", !0),
|
|
8613
8613
|
a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), M("div", Rn, [
|
|
8614
8614
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8615
8615
|
p(L, {
|
|
@@ -8624,8 +8624,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8624
8624
|
height: "20",
|
|
8625
8625
|
"hide-details": ""
|
|
8626
8626
|
}, null, 8, ["modelValue"])
|
|
8627
|
-
])) :
|
|
8628
|
-
a.renderKey === "wave-group" && G.key === "wave-group" ? (y(),
|
|
8627
|
+
])) : R("", !0),
|
|
8628
|
+
a.renderKey === "wave-group" && G.key === "wave-group" ? (y(), O(I, {
|
|
8629
8629
|
key: 2,
|
|
8630
8630
|
modelValue: a.waveToggleValue,
|
|
8631
8631
|
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.waveToggleValue = te),
|
|
@@ -8647,7 +8647,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8647
8647
|
disabled: !a.autoActive
|
|
8648
8648
|
}, {
|
|
8649
8649
|
default: f(() => [
|
|
8650
|
-
|
|
8650
|
+
$(m(t.$t("weather.significant")), 1)
|
|
8651
8651
|
]),
|
|
8652
8652
|
_: 1
|
|
8653
8653
|
}, 8, ["color", "disabled"]),
|
|
@@ -8661,14 +8661,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
8661
8661
|
value: "swell"
|
|
8662
8662
|
}, {
|
|
8663
8663
|
default: f(() => [
|
|
8664
|
-
|
|
8664
|
+
$(m(t.$t("weather.swell")), 1)
|
|
8665
8665
|
]),
|
|
8666
8666
|
_: 1
|
|
8667
8667
|
}, 8, ["color", "disabled"])
|
|
8668
8668
|
]),
|
|
8669
8669
|
_: 1
|
|
8670
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8671
|
-
a.renderKey === "ice-forecast" && G.key === "ice-forecast" ? (y(),
|
|
8670
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0),
|
|
8671
|
+
a.renderKey === "ice-forecast" && G.key === "ice-forecast" ? (y(), O(I, {
|
|
8672
8672
|
key: 3,
|
|
8673
8673
|
modelValue: a.iceToggleValue,
|
|
8674
8674
|
"onUpdate:modelValue": e[7] || (e[7] = (te) => a.iceToggleValue = te),
|
|
@@ -8690,7 +8690,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8690
8690
|
disabled: !a.autoActive
|
|
8691
8691
|
}, {
|
|
8692
8692
|
default: f(() => [
|
|
8693
|
-
|
|
8693
|
+
$(m(t.$t("weather.coverage")), 1)
|
|
8694
8694
|
]),
|
|
8695
8695
|
_: 1
|
|
8696
8696
|
}, 8, ["color", "disabled"]),
|
|
@@ -8704,13 +8704,13 @@ function ic(t, e, o, i, a, r) {
|
|
|
8704
8704
|
value: "ice-thickness"
|
|
8705
8705
|
}, {
|
|
8706
8706
|
default: f(() => [
|
|
8707
|
-
|
|
8707
|
+
$(m(t.$t("weather.thickness")), 1)
|
|
8708
8708
|
]),
|
|
8709
8709
|
_: 1
|
|
8710
8710
|
}, 8, ["color", "disabled"])
|
|
8711
8711
|
]),
|
|
8712
8712
|
_: 1
|
|
8713
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8713
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0)
|
|
8714
8714
|
], 64))), 128))
|
|
8715
8715
|
]),
|
|
8716
8716
|
_: 1
|
|
@@ -8730,7 +8730,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8730
8730
|
style: { "font-size": "16px !important" }
|
|
8731
8731
|
}, {
|
|
8732
8732
|
default: f(() => [
|
|
8733
|
-
|
|
8733
|
+
$(m(t.$t("weather.forecastModel")), 1)
|
|
8734
8734
|
]),
|
|
8735
8735
|
_: 1
|
|
8736
8736
|
})
|
|
@@ -8739,14 +8739,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
8739
8739
|
}),
|
|
8740
8740
|
p(d, { class: "" }, {
|
|
8741
8741
|
default: f(() => {
|
|
8742
|
-
var G, te, Fe,
|
|
8742
|
+
var G, te, Fe, Ae, ge, Ie, U, fe, oe, re, Oe, He, Ge, E, be, Re, Be, Ne, j, Ue, W, qe, Xe, $e, ze, Ke, Je, Qe, 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, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, 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;
|
|
8743
8743
|
return [
|
|
8744
8744
|
s("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
8745
|
-
s("div", Bn, m((Fe = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((
|
|
8745
|
+
s("div", Bn, m((Fe = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((Ie = (ge = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Ie.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
8746
8746
|
s("div", Nn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8747
|
-
s("div", En, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((
|
|
8748
|
-
s("div", jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ne = (Be = (
|
|
8749
|
-
s("div", Fn, m((W = (Ue = (
|
|
8747
|
+
s("div", En, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (Ge = (He = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ge.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
8748
|
+
s("div", jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ne = (Be = (Re = (be = a.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Be.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
8749
|
+
s("div", Fn, m((W = (Ue = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : W.source) + " " + m(($e = (Xe = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Xe.ECMWF) == null ? void 0 : $e.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = (Ke = (ze = a.models) == null ? void 0 : ze.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
8750
8750
|
s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8751
8751
|
s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
8752
8752
|
s("div", Un, m(t.$t("weather.referenceTime")) + ": " + m(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),
|
|
@@ -8775,110 +8775,110 @@ function ic(t, e, o, i, a, r) {
|
|
|
8775
8775
|
})
|
|
8776
8776
|
], 2)
|
|
8777
8777
|
], 6),
|
|
8778
|
-
o.map ? (y(),
|
|
8778
|
+
o.map ? (y(), O(C, N({
|
|
8779
8779
|
key: 1,
|
|
8780
8780
|
ref: "windBarb",
|
|
8781
8781
|
map: o.map,
|
|
8782
8782
|
"map-feather": o.mapFeather,
|
|
8783
8783
|
"before-layer": "empty-layer-3",
|
|
8784
|
-
wind: (
|
|
8784
|
+
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
8785
8785
|
"menu-toggle": o.menuToggle
|
|
8786
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
8787
|
-
o.map ? (y(),
|
|
8786
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
|
|
8787
|
+
o.map ? (y(), O(k, N({
|
|
8788
8788
|
key: 2,
|
|
8789
8789
|
map: o.map,
|
|
8790
8790
|
"before-layer": "empty-layer-2",
|
|
8791
|
-
"sig-wave-height": (
|
|
8791
|
+
"sig-wave-height": (ie = a.weatherLayers) == null ? void 0 : ie["sig-wave-height"],
|
|
8792
8792
|
"menu-toggle": o.menuToggle,
|
|
8793
8793
|
"active-weather-layers": a.activeWeatherLayers
|
|
8794
|
-
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
8795
|
-
o.map ? (y(),
|
|
8794
|
+
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
8795
|
+
o.map ? (y(), O(z, N({
|
|
8796
8796
|
key: 3,
|
|
8797
8797
|
map: o.map,
|
|
8798
8798
|
"map-feather": o.mapFeather,
|
|
8799
8799
|
"before-layer": "empty-layer-2",
|
|
8800
|
-
current: (
|
|
8800
|
+
current: (ce = a.weatherLayers) == null ? void 0 : ce.current,
|
|
8801
8801
|
"menu-toggle": o.menuToggle
|
|
8802
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
8803
|
-
o.map ? (y(),
|
|
8802
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
|
|
8803
|
+
o.map ? (y(), O(T, N({
|
|
8804
8804
|
key: 4,
|
|
8805
8805
|
map: o.map,
|
|
8806
8806
|
"before-layer": "empty-layer-2",
|
|
8807
|
-
prmsl: (
|
|
8807
|
+
prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
|
|
8808
8808
|
"menu-toggle": o.menuToggle,
|
|
8809
8809
|
"active-weather-layers": a.activeWeatherLayers
|
|
8810
|
-
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) :
|
|
8811
|
-
o.map ? (y(),
|
|
8810
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
|
|
8811
|
+
o.map ? (y(), O(v, N({
|
|
8812
8812
|
key: 5,
|
|
8813
8813
|
viewport: a.viewport,
|
|
8814
|
-
factor: (
|
|
8814
|
+
factor: (me = a.weatherLayers) == null ? void 0 : me["wind-particle"],
|
|
8815
8815
|
"menu-toggle": o.menuToggle
|
|
8816
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8817
|
-
o.map ? (y(),
|
|
8816
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8817
|
+
o.map ? (y(), O(D, N({
|
|
8818
8818
|
key: 6,
|
|
8819
8819
|
viewport: a.viewport,
|
|
8820
|
-
factor: (
|
|
8820
|
+
factor: (he = a.weatherLayers) == null ? void 0 : he["current-particle"],
|
|
8821
8821
|
"menu-toggle": o.menuToggle
|
|
8822
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8823
|
-
o.map ? (y(),
|
|
8822
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8823
|
+
o.map ? (y(), O(F, N({
|
|
8824
8824
|
key: 7,
|
|
8825
8825
|
viewport: a.viewport,
|
|
8826
|
-
factor: (
|
|
8826
|
+
factor: (A = a.weatherLayers) == null ? void 0 : A["sig-wave"],
|
|
8827
8827
|
"menu-toggle": o.menuToggle
|
|
8828
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8829
|
-
o.map ? (y(),
|
|
8828
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8829
|
+
o.map ? (y(), O(V, N({
|
|
8830
8830
|
key: 8,
|
|
8831
8831
|
map: o.map,
|
|
8832
8832
|
viewport: a.viewport,
|
|
8833
|
-
factor: (
|
|
8833
|
+
factor: (ee = a.weatherLayers) == null ? void 0 : ee.swell,
|
|
8834
8834
|
"menu-toggle": o.menuToggle,
|
|
8835
8835
|
"active-weather-layers": a.activeWeatherLayers
|
|
8836
|
-
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) :
|
|
8837
|
-
o.map ? (y(),
|
|
8836
|
+
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
8837
|
+
o.map ? (y(), O(Y, N({
|
|
8838
8838
|
key: 9,
|
|
8839
8839
|
viewport: a.viewport,
|
|
8840
8840
|
factor: (ye = a.weatherLayers) == null ? void 0 : ye["ice-edge"],
|
|
8841
8841
|
"menu-toggle": o.menuToggle
|
|
8842
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8843
|
-
o.map ? (y(),
|
|
8842
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8843
|
+
o.map ? (y(), O(Z, N({
|
|
8844
8844
|
key: 10,
|
|
8845
8845
|
viewport: a.viewport,
|
|
8846
|
-
factor: (
|
|
8846
|
+
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-cover"],
|
|
8847
8847
|
"menu-toggle": o.menuToggle
|
|
8848
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8849
|
-
o.map ? (y(),
|
|
8848
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8849
|
+
o.map ? (y(), O(J, N({
|
|
8850
8850
|
key: 11,
|
|
8851
8851
|
viewport: a.viewport,
|
|
8852
|
-
factor: (
|
|
8852
|
+
factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
8853
8853
|
"menu-toggle": o.menuToggle
|
|
8854
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8855
|
-
o.map ? (y(),
|
|
8854
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8855
|
+
o.map ? (y(), O(Q, N({
|
|
8856
8856
|
key: 12,
|
|
8857
8857
|
viewport: a.viewport,
|
|
8858
|
-
factor: (
|
|
8858
|
+
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
8859
8859
|
"menu-toggle": o.menuToggle
|
|
8860
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8861
|
-
o.map ? (y(),
|
|
8860
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8861
|
+
o.map ? (y(), O(K, N({
|
|
8862
8862
|
key: 13,
|
|
8863
8863
|
viewport: a.viewport,
|
|
8864
|
-
factor: (
|
|
8864
|
+
factor: (ve = a.weatherLayers) == null ? void 0 : ve.visibility,
|
|
8865
8865
|
"menu-toggle": o.menuToggle
|
|
8866
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8867
|
-
o.map ? (y(),
|
|
8866
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8867
|
+
o.map ? (y(), O(se, N({
|
|
8868
8868
|
key: 14,
|
|
8869
8869
|
viewport: a.viewport,
|
|
8870
|
-
factor: (
|
|
8870
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
8871
8871
|
"menu-toggle": o.menuToggle
|
|
8872
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8873
|
-
o.map ? (y(),
|
|
8872
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8873
|
+
o.map ? (y(), O(le, N({
|
|
8874
8874
|
key: 15,
|
|
8875
8875
|
viewport: a.viewport,
|
|
8876
|
-
factor: (
|
|
8876
|
+
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
8877
8877
|
"menu-toggle": o.menuToggle
|
|
8878
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8878
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0)
|
|
8879
8879
|
]);
|
|
8880
8880
|
}
|
|
8881
|
-
const rc = /* @__PURE__ */
|
|
8881
|
+
const rc = /* @__PURE__ */ q(wn, [["render", ic]]), Lo = [
|
|
8882
8882
|
{
|
|
8883
8883
|
rank: 0,
|
|
8884
8884
|
name: "Best Match",
|
|
@@ -9225,91 +9225,91 @@ class Ya {
|
|
|
9225
9225
|
}), a;
|
|
9226
9226
|
}
|
|
9227
9227
|
static pickHourly(e, o) {
|
|
9228
|
-
var i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
9229
|
-
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine,
|
|
9228
|
+
var i, a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe, ie, ce, ue, me, he, A, ee, ye, xe, Le, Pe, ve, Me, Ce, G, te, Fe, Ae, ge, Ie;
|
|
9229
|
+
const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = 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"), He = re.clone().add((d = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : d.at(-1), "h"), Ge = [];
|
|
9230
9230
|
if (U.isBetween(Oe, He, "millisecond", "[]")) {
|
|
9231
|
-
const
|
|
9232
|
-
let
|
|
9231
|
+
const E = U.utc().diff(Oe, "h", !1);
|
|
9232
|
+
let be, Re;
|
|
9233
9233
|
if (fe) {
|
|
9234
|
-
let Be = 0, Ne = 0,
|
|
9234
|
+
let Be = 0, Ne = 0, j = 0;
|
|
9235
9235
|
for (const Ue of fe) {
|
|
9236
9236
|
const W = Ue == null ? void 0 : Ue.hourly;
|
|
9237
|
-
for (let ze =
|
|
9237
|
+
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
9238
9238
|
Be += (b = W == null ? void 0 : W.precipitation) == null ? void 0 : b.at(ze);
|
|
9239
|
-
for (let ze =
|
|
9239
|
+
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
9240
9240
|
Ne += (w = W == null ? void 0 : W.precipitation) == null ? void 0 : w.at(ze);
|
|
9241
|
-
for (let ze =
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
temp: (g = W == null ? void 0 : W.temperature_2m) == null ? void 0 : g.at(
|
|
9245
|
-
apparentTemp: (_ = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : _.at(
|
|
9246
|
-
rh: (P = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : P.at(
|
|
9247
|
-
dp: (
|
|
9241
|
+
for (let ze = E - (E - 1) % 12; ze <= E; ze++)
|
|
9242
|
+
j += (L = W == null ? void 0 : W.precipitation) == null ? void 0 : L.at(ze);
|
|
9243
|
+
be = {
|
|
9244
|
+
temp: (g = W == null ? void 0 : W.temperature_2m) == null ? void 0 : g.at(E),
|
|
9245
|
+
apparentTemp: (_ = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : _.at(E),
|
|
9246
|
+
rh: (P = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : P.at(E),
|
|
9247
|
+
dp: (B = W == null ? void 0 : W.dew_point_2m) == null ? void 0 : B.at(E),
|
|
9248
9248
|
precip: {
|
|
9249
|
-
probability: (I = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : I.at(
|
|
9250
|
-
sum: (C = W == null ? void 0 : W.precipitation) == null ? void 0 : C.at(
|
|
9251
|
-
sum1Hours: (k = W == null ? void 0 : W.precipitation) == null ? void 0 : k.at(
|
|
9249
|
+
probability: (I = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : I.at(E),
|
|
9250
|
+
sum: (C = W == null ? void 0 : W.precipitation) == null ? void 0 : C.at(E),
|
|
9251
|
+
sum1Hours: (k = W == null ? void 0 : W.precipitation) == null ? void 0 : k.at(E),
|
|
9252
9252
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9253
9253
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
9254
|
-
sum12Hours: Math.round(
|
|
9254
|
+
sum12Hours: Math.round(j * 100) / 100
|
|
9255
9255
|
},
|
|
9256
|
-
pmsl: (z = W == null ? void 0 : W.pressure_msl) == null ? void 0 : z.at(
|
|
9257
|
-
psurf: (T = W == null ? void 0 : W.surface_pressure) == null ? void 0 : T.at(
|
|
9258
|
-
code: (v = W == null ? void 0 : W.weather_code) == null ? void 0 : v.at(
|
|
9259
|
-
visibility: this.m2nm((D = W == null ? void 0 : W.visibility) == null ? void 0 : D.at(
|
|
9256
|
+
pmsl: (z = W == null ? void 0 : W.pressure_msl) == null ? void 0 : z.at(E),
|
|
9257
|
+
psurf: (T = W == null ? void 0 : W.surface_pressure) == null ? void 0 : T.at(E),
|
|
9258
|
+
code: (v = W == null ? void 0 : W.weather_code) == null ? void 0 : v.at(E),
|
|
9259
|
+
visibility: this.m2nm((D = W == null ? void 0 : W.visibility) == null ? void 0 : D.at(E)),
|
|
9260
9260
|
wind: {
|
|
9261
|
-
speed: (
|
|
9262
|
-
kts: (V = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : V.at(
|
|
9263
|
-
degree: (
|
|
9264
|
-
bearing: ((Z = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Z.at(
|
|
9265
|
-
gusts: (
|
|
9261
|
+
speed: (F = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
9262
|
+
kts: (V = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : V.at(E),
|
|
9263
|
+
degree: (Y = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Y.at(E),
|
|
9264
|
+
bearing: ((Z = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((J = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : J.at(E)) + 180) % 360 : null,
|
|
9265
|
+
gusts: (Q = W == null ? void 0 : W.wind_gusts_10m) == null ? void 0 : Q.at(E)
|
|
9266
9266
|
},
|
|
9267
|
-
isDay: (
|
|
9267
|
+
isDay: (K = W == null ? void 0 : W.is_day) == null ? void 0 : K.at(E)
|
|
9268
9268
|
};
|
|
9269
|
-
const { name: qe, url: Xe, bg: $e } = this.parseWeatherCode(
|
|
9270
|
-
|
|
9271
|
-
utc: Oe.add(
|
|
9269
|
+
const { name: qe, url: Xe, bg: $e } = this.parseWeatherCode(be.code, be.isDay);
|
|
9270
|
+
be.name = qe, be.url = Xe, be.bg = $e, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), Ge.push({
|
|
9271
|
+
utc: Oe.add(E, "h").format(),
|
|
9272
9272
|
model: Ue.model,
|
|
9273
|
-
weather: { ...
|
|
9273
|
+
weather: { ...be }
|
|
9274
9274
|
});
|
|
9275
9275
|
}
|
|
9276
9276
|
}
|
|
9277
9277
|
if (oe) {
|
|
9278
9278
|
let Be = 0;
|
|
9279
9279
|
for (const Ne of oe) {
|
|
9280
|
-
const
|
|
9281
|
-
|
|
9280
|
+
const j = Ne == null ? void 0 : Ne.hourly;
|
|
9281
|
+
Re = {
|
|
9282
9282
|
wave: {
|
|
9283
9283
|
sig: {
|
|
9284
|
-
height: (
|
|
9285
|
-
degree: (
|
|
9286
|
-
bearing: ((
|
|
9287
|
-
period: (
|
|
9284
|
+
height: (se = j == null ? void 0 : j.wave_height) == null ? void 0 : se.at(E),
|
|
9285
|
+
degree: (le = j == null ? void 0 : j.wave_direction) == null ? void 0 : le.at(E),
|
|
9286
|
+
bearing: ((pe = j == null ? void 0 : j.wave_direction) == null ? void 0 : pe.at(E)) !== null ? (((ie = j == null ? void 0 : j.wave_direction) == null ? void 0 : ie.at(E)) + 180) % 360 : null,
|
|
9287
|
+
period: (ce = j == null ? void 0 : j.wave_period) == null ? void 0 : ce.at(E)
|
|
9288
9288
|
},
|
|
9289
9289
|
swell: {
|
|
9290
|
-
height: (
|
|
9291
|
-
degree: (
|
|
9292
|
-
bearing: ((
|
|
9293
|
-
period: (
|
|
9294
|
-
peakPeriod: (ye =
|
|
9290
|
+
height: (ue = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : ue.at(E),
|
|
9291
|
+
degree: (me = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : me.at(E),
|
|
9292
|
+
bearing: ((he = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : he.at(E)) !== null ? (((A = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : A.at(E)) + 180) % 360 : null,
|
|
9293
|
+
period: (ee = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : ee.at(E),
|
|
9294
|
+
peakPeriod: (ye = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : ye.at(E)
|
|
9295
9295
|
},
|
|
9296
9296
|
wd: {
|
|
9297
|
-
height: (
|
|
9298
|
-
degree: (
|
|
9299
|
-
bearing: ((
|
|
9300
|
-
period: (
|
|
9301
|
-
peakPeriod: (
|
|
9297
|
+
height: (xe = j == null ? void 0 : j.wind_wave_height) == null ? void 0 : xe.at(E),
|
|
9298
|
+
degree: (Le = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Le.at(E),
|
|
9299
|
+
bearing: ((Pe = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Pe.at(E)) !== null ? (((ve = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : ve.at(E)) + 180) % 360 : null,
|
|
9300
|
+
period: (Me = j == null ? void 0 : j.wind_wave_period) == null ? void 0 : Me.at(E),
|
|
9301
|
+
peakPeriod: (Ce = j == null ? void 0 : j.wind_wave_peak_period) == null ? void 0 : Ce.at(E)
|
|
9302
9302
|
}
|
|
9303
9303
|
},
|
|
9304
9304
|
current: {
|
|
9305
|
-
speed: (G =
|
|
9306
|
-
kts: (te =
|
|
9307
|
-
degree: (Fe =
|
|
9308
|
-
bearing: ((
|
|
9309
|
-
},
|
|
9310
|
-
sst: (ge =
|
|
9311
|
-
height: (
|
|
9312
|
-
},
|
|
9305
|
+
speed: (G = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : G.at(E),
|
|
9306
|
+
kts: (te = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : te.at(E),
|
|
9307
|
+
degree: (Fe = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Fe.at(E),
|
|
9308
|
+
bearing: ((Ae = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Ae.at(E)) ?? null
|
|
9309
|
+
},
|
|
9310
|
+
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
9311
|
+
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
9312
|
+
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(Ge[Be], Re), Be++;
|
|
9313
9313
|
}
|
|
9314
9314
|
}
|
|
9315
9315
|
}
|
|
@@ -9338,13 +9338,13 @@ class Ya {
|
|
|
9338
9338
|
};
|
|
9339
9339
|
}
|
|
9340
9340
|
static pickDaily(e, o) {
|
|
9341
|
-
var i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
9342
|
-
const
|
|
9343
|
-
if (
|
|
9344
|
-
let ge,
|
|
9345
|
-
const U =
|
|
9346
|
-
if (
|
|
9347
|
-
for (const fe of
|
|
9341
|
+
var i, a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe, ie, ce, ue, me, he, A, ee, ye, xe, Le, Pe, ve;
|
|
9342
|
+
const Me = typeof o == "string" ? S(o) : o, Ce = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ae = [];
|
|
9343
|
+
if (Me.isBetween(te, Fe, "millisecond", "[]")) {
|
|
9344
|
+
let ge, Ie;
|
|
9345
|
+
const U = Me.diff(te, "d", !1);
|
|
9346
|
+
if (Ce)
|
|
9347
|
+
for (const fe of Ce) {
|
|
9348
9348
|
const oe = fe.daily;
|
|
9349
9349
|
ge = {
|
|
9350
9350
|
code: (u = oe.weather_code) == null ? void 0 : u.at(U),
|
|
@@ -9360,7 +9360,7 @@ class Ya {
|
|
|
9360
9360
|
precip: {
|
|
9361
9361
|
sum: (_ = oe.precipitation_sum) == null ? void 0 : _.at(U),
|
|
9362
9362
|
rainSum: (P = oe.rain_sum) == null ? void 0 : P.at(U),
|
|
9363
|
-
snowfallSum: (
|
|
9363
|
+
snowfallSum: (B = oe.snowfall_sum) == null ? void 0 : B.at(U),
|
|
9364
9364
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
|
|
9365
9365
|
hours: (C = oe.precipitation_hours) == null ? void 0 : C.at(U),
|
|
9366
9366
|
probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(U)
|
|
@@ -9372,14 +9372,14 @@ class Ya {
|
|
|
9372
9372
|
},
|
|
9373
9373
|
wind: {
|
|
9374
9374
|
speed: (D = oe.wind_speed_10m_max) == null ? void 0 : D.at(U),
|
|
9375
|
-
kts: (
|
|
9375
|
+
kts: (F = oe.wind_speed_10m_max) == null ? void 0 : F.at(U),
|
|
9376
9376
|
degree: (V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U),
|
|
9377
|
-
gusts: (
|
|
9378
|
-
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((
|
|
9377
|
+
gusts: (Y = oe.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
|
|
9378
|
+
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((J = oe.wind_direction_10m_dominant) == null ? void 0 : J.at(U)) + 180) % 360 : null
|
|
9379
9379
|
}
|
|
9380
9380
|
};
|
|
9381
|
-
const { name:
|
|
9382
|
-
ge.name =
|
|
9381
|
+
const { name: re, url: Oe, bg: He } = this.parseWeatherCode(ge.code, !0);
|
|
9382
|
+
ge.name = re, ge.url = Oe, ge.bg = He, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ae.push({
|
|
9383
9383
|
utc: te.add(U, "d").utc().format(),
|
|
9384
9384
|
model: fe.model,
|
|
9385
9385
|
weather: { ...ge }
|
|
@@ -9388,36 +9388,36 @@ class Ya {
|
|
|
9388
9388
|
if (G) {
|
|
9389
9389
|
let fe = 0;
|
|
9390
9390
|
for (const oe of G) {
|
|
9391
|
-
const
|
|
9392
|
-
|
|
9391
|
+
const re = oe.daily;
|
|
9392
|
+
Ie = {
|
|
9393
9393
|
wave: {
|
|
9394
9394
|
sig: {
|
|
9395
|
-
height: (
|
|
9396
|
-
degree: (
|
|
9397
|
-
period: (
|
|
9398
|
-
bearing: ((
|
|
9395
|
+
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(U),
|
|
9396
|
+
degree: (K = re.wave_direction_dominant) == null ? void 0 : K.at(U),
|
|
9397
|
+
period: (se = re.wave_period_max) == null ? void 0 : se.at(U),
|
|
9398
|
+
bearing: ((le = re.wave_direction_dominant) == null ? void 0 : le.at(U)) !== null ? (((pe = re.wave_direction_dominant) == null ? void 0 : pe.at(U)) + 180) % 360 : null
|
|
9399
9399
|
},
|
|
9400
9400
|
swell: {
|
|
9401
|
-
height: (
|
|
9402
|
-
degree: (
|
|
9403
|
-
period: (
|
|
9404
|
-
peakPeriod: (
|
|
9401
|
+
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(U),
|
|
9402
|
+
degree: (ce = re.swell_wave_direction_dominant) == null ? void 0 : ce.at(U),
|
|
9403
|
+
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(U),
|
|
9404
|
+
peakPeriod: (me = re.swell_wave_peak_period_max) == null ? void 0 : me.at(U),
|
|
9405
9405
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
9406
|
-
bearing: ((
|
|
9406
|
+
bearing: ((he = re.swell_wave_direction_dominant) == null ? void 0 : he.at(U)) !== null ? ((A = re.swell_wave_direction_dominant) == null ? void 0 : A.at(U)) % 360 : null
|
|
9407
9407
|
},
|
|
9408
9408
|
wd: {
|
|
9409
|
-
height: (
|
|
9410
|
-
degree: (ye =
|
|
9411
|
-
period: (
|
|
9412
|
-
peakPeriod: (
|
|
9413
|
-
bearing: ((
|
|
9409
|
+
height: (ee = re.wind_wave_height_max) == null ? void 0 : ee.at(U),
|
|
9410
|
+
degree: (ye = re.wind_wave_direction_dominant) == null ? void 0 : ye.at(U),
|
|
9411
|
+
period: (xe = re.wind_wave_period_max) == null ? void 0 : xe.at(U),
|
|
9412
|
+
peakPeriod: (Le = re.wind_wave_peak_period_max) == null ? void 0 : Le.at(U),
|
|
9413
|
+
bearing: ((Pe = re.wind_wave_direction_dominant) == null ? void 0 : Pe.at(U)) !== null ? (((ve = re.wind_wave_direction_dominant) == null ? void 0 : ve.at(U)) + 180) % 360 : null
|
|
9414
9414
|
}
|
|
9415
9415
|
}
|
|
9416
|
-
},
|
|
9416
|
+
}, Ie.wave = this.parseWave(Ie.wave, ge == null ? void 0 : ge.wind), Object.assign(Ae[fe], Ie), fe++;
|
|
9417
9417
|
}
|
|
9418
9418
|
}
|
|
9419
9419
|
}
|
|
9420
|
-
return
|
|
9420
|
+
return Ae;
|
|
9421
9421
|
}
|
|
9422
9422
|
static parseWave(e, o) {
|
|
9423
9423
|
if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
|
|
@@ -9867,7 +9867,7 @@ const sc = {
|
|
|
9867
9867
|
},
|
|
9868
9868
|
emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
|
|
9869
9869
|
setup() {
|
|
9870
|
-
return { Theme:
|
|
9870
|
+
return { Theme: Se() };
|
|
9871
9871
|
},
|
|
9872
9872
|
data() {
|
|
9873
9873
|
return {
|
|
@@ -9954,7 +9954,7 @@ const sc = {
|
|
|
9954
9954
|
};
|
|
9955
9955
|
},
|
|
9956
9956
|
computePosition() {
|
|
9957
|
-
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
9957
|
+
return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
9958
9958
|
}
|
|
9959
9959
|
},
|
|
9960
9960
|
watch: {
|
|
@@ -10011,14 +10011,14 @@ const sc = {
|
|
|
10011
10011
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
10012
10012
|
let e = 0, o = 0, i = (a = To.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
10013
10013
|
if (i > 0) {
|
|
10014
|
-
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await
|
|
10014
|
+
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await De.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
10015
10015
|
headers: {
|
|
10016
10016
|
Authorization: this.defaultMeteoToken
|
|
10017
10017
|
}
|
|
10018
10018
|
});
|
|
10019
10019
|
if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
10020
10020
|
const u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
|
|
10021
|
-
await
|
|
10021
|
+
await De.get(u.tropicals, {
|
|
10022
10022
|
headers: {
|
|
10023
10023
|
Authorization: this.defaultMeteoToken,
|
|
10024
10024
|
key: "tropicals"
|
|
@@ -10045,7 +10045,7 @@ const sc = {
|
|
|
10045
10045
|
handleRefresh() {
|
|
10046
10046
|
var e, o;
|
|
10047
10047
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10048
|
-
var a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
10048
|
+
var a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v;
|
|
10049
10049
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10050
10050
|
let D = "";
|
|
10051
10051
|
switch (!0) {
|
|
@@ -10073,7 +10073,7 @@ const sc = {
|
|
|
10073
10073
|
}
|
|
10074
10074
|
i.properties.level = D;
|
|
10075
10075
|
}
|
|
10076
|
-
((
|
|
10076
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (C = S(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((z = i.geometry) == null ? void 0 : z.type) === "Point" && (i.properties.Name = ((v = (T = i.properties.name) == null ? void 0 : T.trim()) == null ? void 0 : v.replace(/^./, (D) => D.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
10077
10077
|
}), this.handleInit();
|
|
10078
10078
|
},
|
|
10079
10079
|
handleInit() {
|
|
@@ -10292,14 +10292,14 @@ const sc = {
|
|
|
10292
10292
|
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();
|
|
10293
10293
|
},
|
|
10294
10294
|
handleDateChange() {
|
|
10295
|
-
var t, e, o, i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
10295
|
+
var t, e, o, i, a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe;
|
|
10296
10296
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10297
|
-
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
10298
|
-
ue.forEach((
|
|
10299
|
-
|
|
10300
|
-
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
10297
|
+
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((A) => A.properties.date === (ie == null ? void 0 : ie.format()) && !A.properties.disabled), ue = this.handleComputePolygons(ce), me = H.featureCollection([...ce]);
|
|
10298
|
+
ue.forEach((A) => {
|
|
10299
|
+
me.features.push(A);
|
|
10300
|
+
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
10301
10301
|
type: "geojson",
|
|
10302
|
-
data:
|
|
10302
|
+
data: me
|
|
10303
10303
|
}), (r = this.map) == null || r.addLayer({
|
|
10304
10304
|
id: this.interpolateLineLayer,
|
|
10305
10305
|
type: "line",
|
|
@@ -10319,28 +10319,28 @@ const sc = {
|
|
|
10319
10319
|
"line-width": 1
|
|
10320
10320
|
}
|
|
10321
10321
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10322
|
-
const
|
|
10323
|
-
for (const
|
|
10324
|
-
if (!
|
|
10325
|
-
if (!
|
|
10326
|
-
var
|
|
10327
|
-
return
|
|
10322
|
+
const he = [];
|
|
10323
|
+
for (const A of ce)
|
|
10324
|
+
if (!A.properties.disabled) {
|
|
10325
|
+
if (!he.some((Pe) => {
|
|
10326
|
+
var ve;
|
|
10327
|
+
return Pe.properties.name === ((ve = A.properties) == null ? void 0 : ve.name);
|
|
10328
10328
|
})) {
|
|
10329
|
-
const
|
|
10330
|
-
var
|
|
10331
|
-
return
|
|
10332
|
-
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((n =
|
|
10333
|
-
|
|
10329
|
+
const Pe = ((c = (l = this.tropicals.data.features.find((ve) => {
|
|
10330
|
+
var Me;
|
|
10331
|
+
return ve.properties.name === ((Me = A.properties) == null ? void 0 : Me.name);
|
|
10332
|
+
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((n = A.properties) == null ? void 0 : n.Name) || "-";
|
|
10333
|
+
A.properties.nameCn = Pe, A.properties.Name = ((d = (u = A.properties.name) == null ? void 0 : u.trim()) == null ? void 0 : d.replace(/^./, (ve) => ve.toUpperCase())) || A.properties.nameCn, he.push(A);
|
|
10334
10334
|
}
|
|
10335
|
-
let
|
|
10336
|
-
((
|
|
10337
|
-
const
|
|
10335
|
+
let ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
10336
|
+
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((g = (L = A.properties) == null ? void 0 : L.wind) != null && g.kts) ? ee = this.Theme.current.value.colors["tropicals-td"] : ((P = (_ = A.properties) == null ? void 0 : _.wind) == null ? void 0 : P.kts) >= 32 && ((I = (B = A.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? ee = this.Theme.current.value.colors["tropicals-ts"] : ((k = (C = A.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 47 && ((T = (z = A.properties) == null ? void 0 : z.wind) == null ? void 0 : T.kts) < 63 ? ee = this.Theme.current.value.colors["tropicals-sts"] : ((D = (v = A.properties) == null ? void 0 : v.wind) == null ? void 0 : D.kts) >= 63 && ((V = (F = A.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? ee = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (Y = A.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = A.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? ee = this.Theme.current.value.colors["tropicals-sty"] : ((se = (K = A.properties) == null ? void 0 : K.wind) == null ? void 0 : se.kts) >= 94 ? ee = this.Theme.current.value.colors["tropicals-super-ty"] : ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
10337
|
+
const ye = `<svg t="1719918955501"
|
|
10338
10338
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10339
10339
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
10340
10340
|
<path
|
|
10341
10341
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
10342
|
-
fill="${
|
|
10343
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
10342
|
+
fill="${ee}" p-id="18383"></path>
|
|
10343
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${ee}"
|
|
10344
10344
|
p-id="18384"></path>
|
|
10345
10345
|
<path
|
|
10346
10346
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -10348,14 +10348,14 @@ const sc = {
|
|
|
10348
10348
|
<path
|
|
10349
10349
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
10350
10350
|
fill="#ffffff" p-id="18386"></path>
|
|
10351
|
-
</svg>`,
|
|
10352
|
-
|
|
10353
|
-
const
|
|
10354
|
-
this.interpolateMarkers.push(
|
|
10351
|
+
</svg>`, xe = document.createElement("div");
|
|
10352
|
+
xe.className = "idm-tropical-gl4-hourly-marker", xe.innerHTML = `<div class="${A.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ye}</div>`;
|
|
10353
|
+
const Le = new ke.Marker(xe).setLngLat(A.geometry.coordinates).addTo(this.map);
|
|
10354
|
+
this.interpolateMarkers.push(Le);
|
|
10355
10355
|
}
|
|
10356
|
-
this.$emit("tropicalCenterPoints",
|
|
10356
|
+
this.$emit("tropicalCenterPoints", he);
|
|
10357
10357
|
} else
|
|
10358
|
-
(
|
|
10358
|
+
(le = this.map) != null && le.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
|
|
10359
10359
|
},
|
|
10360
10360
|
handleClick(t) {
|
|
10361
10361
|
var a, r, l, c, n, u, d, b, w, L, g;
|
|
@@ -10537,7 +10537,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10537
10537
|
location: "left"
|
|
10538
10538
|
}, {
|
|
10539
10539
|
activator: f(({ props: g }) => [
|
|
10540
|
-
p(l,
|
|
10540
|
+
p(l, N(g, {
|
|
10541
10541
|
"min-width": "32",
|
|
10542
10542
|
width: "32",
|
|
10543
10543
|
height: "32",
|
|
@@ -10563,11 +10563,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10563
10563
|
default: f(() => [
|
|
10564
10564
|
p(n, null, {
|
|
10565
10565
|
default: f(() => {
|
|
10566
|
-
var g, _, P,
|
|
10566
|
+
var g, _, P, B, I, C, k, z, T, v, D, F;
|
|
10567
10567
|
return [
|
|
10568
10568
|
s("div", cc, [
|
|
10569
10569
|
s("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.Name : ((_ = a.activeTropicals) == null ? void 0 : _.nameCn) || ((P = a.activeTropicals) == null ? void 0 : P.Name) || "-"), 1),
|
|
10570
|
-
(I = (
|
|
10570
|
+
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.level ? (y(), M("span", hc, ", " + m((k = (C = a.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : k.level), 1)) : R("", !0)
|
|
10571
10571
|
]),
|
|
10572
10572
|
p(l, {
|
|
10573
10573
|
icon: "",
|
|
@@ -10584,7 +10584,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10584
10584
|
}, 8, ["onClick"]),
|
|
10585
10585
|
s("div", dc, [
|
|
10586
10586
|
s("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
10587
|
-
s("span", null, m(r.computeTime(((T = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : T.updated) || ((
|
|
10587
|
+
s("span", null, m(r.computeTime(((T = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : T.updated) || ((F = (D = (v = a.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : D.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
10588
10588
|
])
|
|
10589
10589
|
];
|
|
10590
10590
|
}),
|
|
@@ -10593,13 +10593,13 @@ function tm(t, e, o, i, a, r) {
|
|
|
10593
10593
|
p(u),
|
|
10594
10594
|
p(n, { class: "text-body-1" }, {
|
|
10595
10595
|
default: f(() => {
|
|
10596
|
-
var g, _, P,
|
|
10596
|
+
var g, _, P, B, I, C, k, z, T;
|
|
10597
10597
|
return [
|
|
10598
10598
|
s("div", uc, [
|
|
10599
10599
|
s("div", gc, [
|
|
10600
10600
|
s("label", fc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
10601
10601
|
s("span", null, m(((_ = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : _.kts) || "-") + " kts", 1),
|
|
10602
|
-
s("span", null, ", BF " + m(r.computeBF(((
|
|
10602
|
+
s("span", null, ", BF " + m(r.computeBF(((B = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
10603
10603
|
]),
|
|
10604
10604
|
s("div", yc, [
|
|
10605
10605
|
s("label", bc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
@@ -10619,17 +10619,17 @@ function tm(t, e, o, i, a, r) {
|
|
|
10619
10619
|
s("div", zc, [
|
|
10620
10620
|
s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
10621
10621
|
s("div", Pc, [
|
|
10622
|
-
(y(!0), M(
|
|
10622
|
+
(y(!0), M(we, null, _e((T = a.activeTropicals) == null ? void 0 : T.forecasts, (v, D) => (y(), O(l, {
|
|
10623
10623
|
key: D,
|
|
10624
10624
|
density: "compact",
|
|
10625
10625
|
variant: v.disabled ? "text" : "flat",
|
|
10626
10626
|
color: v.disabled ? "" : "primary",
|
|
10627
10627
|
"min-width": 30,
|
|
10628
10628
|
class: Ye(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10629
|
-
onClick: Ee((
|
|
10629
|
+
onClick: Ee((F) => r.handleForecastToggle(v), ["stop"])
|
|
10630
10630
|
}, {
|
|
10631
10631
|
default: f(() => [
|
|
10632
|
-
|
|
10632
|
+
$(m(v.model), 1)
|
|
10633
10633
|
]),
|
|
10634
10634
|
_: 2
|
|
10635
10635
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10654,12 +10654,12 @@ function tm(t, e, o, i, a, r) {
|
|
|
10654
10654
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10655
10655
|
])),
|
|
10656
10656
|
default: f(() => [
|
|
10657
|
-
|
|
10657
|
+
$(" " + m(t.$t("weather.legend")), 1)
|
|
10658
10658
|
]),
|
|
10659
10659
|
_: 1
|
|
10660
10660
|
}, 8, ["color"]),
|
|
10661
10661
|
s("div", Cc, [
|
|
10662
|
-
o.permission & a.helper.LEVEL.Supper ? (y(),
|
|
10662
|
+
o.permission & a.helper.LEVEL.Supper ? (y(), O(l, {
|
|
10663
10663
|
key: 0,
|
|
10664
10664
|
variant: "text",
|
|
10665
10665
|
density: "compact",
|
|
@@ -10667,10 +10667,10 @@ function tm(t, e, o, i, a, r) {
|
|
|
10667
10667
|
onClick: e[1] || (e[1] = Ee((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10668
10668
|
}, {
|
|
10669
10669
|
default: f(() => [
|
|
10670
|
-
|
|
10670
|
+
$(m(t.$t("actions.notify")), 1)
|
|
10671
10671
|
]),
|
|
10672
10672
|
_: 1
|
|
10673
|
-
})) :
|
|
10673
|
+
})) : R("", !0),
|
|
10674
10674
|
p(l, {
|
|
10675
10675
|
variant: "text",
|
|
10676
10676
|
density: "compact",
|
|
@@ -10679,7 +10679,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10679
10679
|
onClick: e[2] || (e[2] = Ee((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10680
10680
|
}, {
|
|
10681
10681
|
default: f(() => [
|
|
10682
|
-
|
|
10682
|
+
$(m(t.$t("actions.viewReport")), 1)
|
|
10683
10683
|
]),
|
|
10684
10684
|
_: 1
|
|
10685
10685
|
})
|
|
@@ -10752,7 +10752,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10752
10752
|
[Ze, a.showLegend]
|
|
10753
10753
|
])
|
|
10754
10754
|
])
|
|
10755
|
-
])) :
|
|
10755
|
+
])) : R("", !0),
|
|
10756
10756
|
Ve(p(b, {
|
|
10757
10757
|
id: "tropicalHoverMarkerInfo",
|
|
10758
10758
|
elevation: "16",
|
|
@@ -10761,11 +10761,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10761
10761
|
default: f(() => [
|
|
10762
10762
|
p(w, null, {
|
|
10763
10763
|
default: f(() => {
|
|
10764
|
-
var g, _, P,
|
|
10764
|
+
var g, _, P, B;
|
|
10765
10765
|
return [
|
|
10766
10766
|
s("div", Ic, [
|
|
10767
10767
|
s("span", Dc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.Name : ((_ = a.hoverPoint) == null ? void 0 : _.nameCn) || ((P = a.hoverPoint) == null ? void 0 : P.Name)), 1),
|
|
10768
|
-
s("span", Ac, "[ " + m((
|
|
10768
|
+
s("span", Ac, "[ " + m((B = a.hoverPoint) == null ? void 0 : B.level) + " ]", 1)
|
|
10769
10769
|
])
|
|
10770
10770
|
];
|
|
10771
10771
|
}),
|
|
@@ -10774,45 +10774,45 @@ function tm(t, e, o, i, a, r) {
|
|
|
10774
10774
|
p(L),
|
|
10775
10775
|
p(n, { class: "text-body-1" }, {
|
|
10776
10776
|
default: f(() => {
|
|
10777
|
-
var g, _, P,
|
|
10777
|
+
var g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le;
|
|
10778
10778
|
return [
|
|
10779
10779
|
s("div", Rc, [
|
|
10780
10780
|
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), M("div", Oc, [
|
|
10781
10781
|
s("label", Bc, m(t.$t("tropical.updated")) + " : ", 1),
|
|
10782
10782
|
s("span", null, m(r.computeTzTime((_ = a.hoverPoint) == null ? void 0 : _.update, o.timeZone)), 1)
|
|
10783
|
-
])) :
|
|
10783
|
+
])) : R("", !0),
|
|
10784
10784
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (y(), M("div", Nc, [
|
|
10785
10785
|
s("label", Ec, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10786
|
-
s("span", null, m(r.computeTzTime((
|
|
10787
|
-
])) :
|
|
10786
|
+
s("span", null, m(r.computeTzTime((B = a.hoverPoint) == null ? void 0 : B.date, o.timeZone)), 1)
|
|
10787
|
+
])) : R("", !0),
|
|
10788
10788
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", jc, [
|
|
10789
10789
|
s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10790
10790
|
s("span", null, m(r.computeTzTime((C = a.hoverPoint) == null ? void 0 : C.date, o.timeZone)), 1)
|
|
10791
|
-
])) :
|
|
10791
|
+
])) : R("", !0),
|
|
10792
10792
|
((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), M("div", Hc, [
|
|
10793
10793
|
s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
|
|
10794
10794
|
s("span", null, m(((z = a.hoverPoint) == null ? void 0 : z.model) ?? "-"), 1)
|
|
10795
|
-
])) :
|
|
10795
|
+
])) : R("", !0),
|
|
10796
10796
|
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Uc, [
|
|
10797
10797
|
s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10798
10798
|
s("span", null, m(((D = JSON.parse((v = a.hoverPoint) == null ? void 0 : v.wind)) == null ? void 0 : D.kts) ?? "-") + " kts", 1)
|
|
10799
|
-
])) :
|
|
10800
|
-
((
|
|
10799
|
+
])) : R("", !0),
|
|
10800
|
+
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (y(), M("div", Vc, [
|
|
10801
10801
|
s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10802
10802
|
s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
10803
|
-
])) :
|
|
10803
|
+
])) : R("", !0),
|
|
10804
10804
|
s("div", Yc, [
|
|
10805
10805
|
s("label", qc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10806
|
-
s("span", null, m(((
|
|
10806
|
+
s("span", null, m(((Y = a.hoverPoint) == null ? void 0 : Y.pressure) ?? "-") + " hPa", 1)
|
|
10807
10807
|
]),
|
|
10808
10808
|
((Z = a.hoverPoint) == null ? void 0 : Z.type) === "history" ? (y(), M("div", Xc, [
|
|
10809
10809
|
s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10810
|
-
s("span", null, m(((
|
|
10811
|
-
])) :
|
|
10812
|
-
((
|
|
10810
|
+
s("span", null, m(((Q = JSON.parse((J = a.hoverPoint) == null ? void 0 : J.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
10811
|
+
])) : R("", !0),
|
|
10812
|
+
((K = a.hoverPoint) == null ? void 0 : K.type) === "history" ? (y(), M("div", Kc, [
|
|
10813
10813
|
s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10814
|
-
s("span", null, m(((
|
|
10815
|
-
])) :
|
|
10814
|
+
s("span", null, m(((le = JSON.parse((se = a.hoverPoint) == null ? void 0 : se.movement)) == null ? void 0 : le.deg) ?? "-") + " °", 1)
|
|
10815
|
+
])) : R("", !0),
|
|
10816
10816
|
s("div", Qc, [
|
|
10817
10817
|
s("label", em, m(t.$t("tropical.position")) + " : ", 1),
|
|
10818
10818
|
s("span", null, m(r.computePosition(a.hoverPoint)), 1)
|
|
@@ -10829,7 +10829,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10829
10829
|
])
|
|
10830
10830
|
]);
|
|
10831
10831
|
}
|
|
10832
|
-
const Xa = /* @__PURE__ */
|
|
10832
|
+
const Xa = /* @__PURE__ */ q(sc, [["render", tm]]);
|
|
10833
10833
|
const om = {
|
|
10834
10834
|
name: "DateTimePicker",
|
|
10835
10835
|
props: {
|
|
@@ -11030,11 +11030,11 @@ function lm(t, e, o, i, a, r) {
|
|
|
11030
11030
|
onClick: r.handleOpenDatePicker
|
|
11031
11031
|
}, {
|
|
11032
11032
|
default: f(() => [
|
|
11033
|
-
|
|
11033
|
+
$(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
11034
11034
|
]),
|
|
11035
11035
|
_: 1
|
|
11036
11036
|
}, 8, ["height", "width", "onClick"]),
|
|
11037
|
-
a.showDatePicker ? (y(),
|
|
11037
|
+
a.showDatePicker ? (y(), O(g, {
|
|
11038
11038
|
key: 0,
|
|
11039
11039
|
class: "card-box d-flex flex-column border",
|
|
11040
11040
|
style: ae(r.getStyle)
|
|
@@ -11065,7 +11065,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11065
11065
|
s("div", sm, m(a.currentTime), 1),
|
|
11066
11066
|
p(b, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
11067
11067
|
default: f(() => [
|
|
11068
|
-
(y(!0), M(
|
|
11068
|
+
(y(!0), M(we, null, _e(r.hourOptions, (_, P) => (y(), O(d, {
|
|
11069
11069
|
key: P,
|
|
11070
11070
|
value: _,
|
|
11071
11071
|
color: "primary",
|
|
@@ -11077,10 +11077,10 @@ function lm(t, e, o, i, a, r) {
|
|
|
11077
11077
|
default: f(() => [
|
|
11078
11078
|
p(u, {
|
|
11079
11079
|
class: "text-body-2 font-weight-600 text-center",
|
|
11080
|
-
onClick: (
|
|
11080
|
+
onClick: (B) => a.currentTime = _
|
|
11081
11081
|
}, {
|
|
11082
11082
|
default: f(() => [
|
|
11083
|
-
|
|
11083
|
+
$(m(_), 1)
|
|
11084
11084
|
]),
|
|
11085
11085
|
_: 2
|
|
11086
11086
|
}, 1032, ["onClick"])
|
|
@@ -11107,7 +11107,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11107
11107
|
onClick: r.handleCancelDate
|
|
11108
11108
|
}, {
|
|
11109
11109
|
default: f(() => e[1] || (e[1] = [
|
|
11110
|
-
|
|
11110
|
+
$("Cancel", -1)
|
|
11111
11111
|
])),
|
|
11112
11112
|
_: 1,
|
|
11113
11113
|
__: [1]
|
|
@@ -11120,7 +11120,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11120
11120
|
onClick: r.handleConfirmDate
|
|
11121
11121
|
}, {
|
|
11122
11122
|
default: f(() => e[2] || (e[2] = [
|
|
11123
|
-
|
|
11123
|
+
$("Confirm", -1)
|
|
11124
11124
|
])),
|
|
11125
11125
|
_: 1,
|
|
11126
11126
|
__: [2]
|
|
@@ -11130,10 +11130,10 @@ function lm(t, e, o, i, a, r) {
|
|
|
11130
11130
|
})
|
|
11131
11131
|
]),
|
|
11132
11132
|
_: 1
|
|
11133
|
-
}, 8, ["style"])) :
|
|
11133
|
+
}, 8, ["style"])) : R("", !0)
|
|
11134
11134
|
], 512);
|
|
11135
11135
|
}
|
|
11136
|
-
const Ao = /* @__PURE__ */
|
|
11136
|
+
const Ao = /* @__PURE__ */ q(om, [["render", lm]]);
|
|
11137
11137
|
const nm = {
|
|
11138
11138
|
name: "IdmPoint",
|
|
11139
11139
|
components: {
|
|
@@ -11251,12 +11251,12 @@ const nm = {
|
|
|
11251
11251
|
},
|
|
11252
11252
|
computePosition() {
|
|
11253
11253
|
return function(t) {
|
|
11254
|
-
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" :
|
|
11254
|
+
return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : X.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + X.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
|
|
11255
11255
|
};
|
|
11256
11256
|
},
|
|
11257
11257
|
computeRoundPrecision() {
|
|
11258
11258
|
return function(t, e = 4) {
|
|
11259
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
11259
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
11260
11260
|
};
|
|
11261
11261
|
}
|
|
11262
11262
|
},
|
|
@@ -11348,7 +11348,7 @@ const nm = {
|
|
|
11348
11348
|
weatherModels: e,
|
|
11349
11349
|
marineModels: o
|
|
11350
11350
|
};
|
|
11351
|
-
await
|
|
11351
|
+
await De.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
11352
11352
|
headers: {
|
|
11353
11353
|
Authorization: this.token || this.defaultMeteoToken
|
|
11354
11354
|
}
|
|
@@ -11368,7 +11368,7 @@ const nm = {
|
|
|
11368
11368
|
pastDays: 1,
|
|
11369
11369
|
weatherModels: e,
|
|
11370
11370
|
marineModels: o
|
|
11371
|
-
}, a = await
|
|
11371
|
+
}, a = await De.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
11372
11372
|
headers: {
|
|
11373
11373
|
Authorization: this.token || this.defaultMeteoToken
|
|
11374
11374
|
}
|
|
@@ -11376,10 +11376,10 @@ const nm = {
|
|
|
11376
11376
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11377
11377
|
},
|
|
11378
11378
|
initTableData(t) {
|
|
11379
|
-
var o, i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
11379
|
+
var o, i, a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe, ie, ce, ue, me, he, A, ee, ye;
|
|
11380
11380
|
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;
|
|
11381
11381
|
const e = ((l = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11382
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (
|
|
11382
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((k = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((T = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((se = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (ce = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((me = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((he = e == null ? void 0 : e.current) == null ? void 0 : he.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ye = e == null ? void 0 : e.weather) == null ? void 0 : ye.url;
|
|
11383
11383
|
},
|
|
11384
11384
|
handleBind() {
|
|
11385
11385
|
var t, e;
|
|
@@ -11395,7 +11395,7 @@ const nm = {
|
|
|
11395
11395
|
return !1;
|
|
11396
11396
|
},
|
|
11397
11397
|
handleGetPosition(t) {
|
|
11398
|
-
this.form.latDegree = Number(
|
|
11398
|
+
this.form.latDegree = Number(X.lat2pretty(t.lat).degree), this.form.latMinute = Number(X.lat2pretty(t.lat).minute), this.form.latDirection = X.lat2pretty(t.lat).direction, this.form.lngDegree = Number(X.lng2pretty(t.lng).degree), this.form.lngMinute = Number(X.lng2pretty(t.lng).minute), this.form.lngDirection = X.lng2pretty(t.lng).direction;
|
|
11399
11399
|
},
|
|
11400
11400
|
handleDrawInfoMarker(t) {
|
|
11401
11401
|
t && (this.map.flyTo({
|
|
@@ -11488,7 +11488,7 @@ const nm = {
|
|
|
11488
11488
|
"aria-hidden": "true"
|
|
11489
11489
|
}, qm = ["xlink:href"];
|
|
11490
11490
|
function Xm(t, e, o, i, a, r) {
|
|
11491
|
-
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), d = x("VTextField"), b = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), g = x("VBtnToggle"), _ = x("VCardText"), P = x("VCardActions"),
|
|
11491
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), d = x("VTextField"), b = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), g = x("VBtnToggle"), _ = x("VCardText"), P = x("VCardActions"), B = x("VForm"), I = x("VCard"), C = x("VIcon");
|
|
11492
11492
|
return y(), M("div", cm, [
|
|
11493
11493
|
s("div", {
|
|
11494
11494
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11499,7 +11499,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11499
11499
|
location: "left"
|
|
11500
11500
|
}, {
|
|
11501
11501
|
activator: f(({ props: k }) => [
|
|
11502
|
-
p(l,
|
|
11502
|
+
p(l, N(k, {
|
|
11503
11503
|
"min-width": "32",
|
|
11504
11504
|
width: "32",
|
|
11505
11505
|
height: "32",
|
|
@@ -11516,7 +11516,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11516
11516
|
_: 1
|
|
11517
11517
|
}, 8, ["text"])
|
|
11518
11518
|
], 4),
|
|
11519
|
-
a.showForm ? (y(),
|
|
11519
|
+
a.showForm ? (y(), O(I, {
|
|
11520
11520
|
key: 0,
|
|
11521
11521
|
class: "spot-form-card",
|
|
11522
11522
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
@@ -11544,7 +11544,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11544
11544
|
_: 1
|
|
11545
11545
|
}),
|
|
11546
11546
|
p(u),
|
|
11547
|
-
p(
|
|
11547
|
+
p(B, {
|
|
11548
11548
|
ref: "spotForm",
|
|
11549
11549
|
autocomplete: "off",
|
|
11550
11550
|
class: "form-box",
|
|
@@ -11620,7 +11620,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11620
11620
|
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11621
11621
|
}, {
|
|
11622
11622
|
default: f(() => [
|
|
11623
|
-
|
|
11623
|
+
$(m(a.form.lngDirection), 1)
|
|
11624
11624
|
]),
|
|
11625
11625
|
_: 1
|
|
11626
11626
|
})
|
|
@@ -11700,7 +11700,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11700
11700
|
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11701
11701
|
}, {
|
|
11702
11702
|
default: f(() => [
|
|
11703
|
-
|
|
11703
|
+
$(m(a.form.latDirection), 1)
|
|
11704
11704
|
]),
|
|
11705
11705
|
_: 1
|
|
11706
11706
|
})
|
|
@@ -11725,7 +11725,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11725
11725
|
class: "pa-0"
|
|
11726
11726
|
}, {
|
|
11727
11727
|
default: f(() => [
|
|
11728
|
-
p(L,
|
|
11728
|
+
p(L, N({
|
|
11729
11729
|
"date-time": a.form.dateTime,
|
|
11730
11730
|
"time-zone": o.timeZone
|
|
11731
11731
|
}, t.$attrs, {
|
|
@@ -11771,7 +11771,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11771
11771
|
"base-color": ""
|
|
11772
11772
|
}, {
|
|
11773
11773
|
default: f(() => e[14] || (e[14] = [
|
|
11774
|
-
|
|
11774
|
+
$("NOAA", -1)
|
|
11775
11775
|
])),
|
|
11776
11776
|
_: 1,
|
|
11777
11777
|
__: [14]
|
|
@@ -11785,7 +11785,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11785
11785
|
value: "ECMWF"
|
|
11786
11786
|
}, {
|
|
11787
11787
|
default: f(() => e[15] || (e[15] = [
|
|
11788
|
-
|
|
11788
|
+
$("ECMWF", -1)
|
|
11789
11789
|
])),
|
|
11790
11790
|
_: 1,
|
|
11791
11791
|
__: [15]
|
|
@@ -11812,7 +11812,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11812
11812
|
onClick: r.cancelForm
|
|
11813
11813
|
}, {
|
|
11814
11814
|
default: f(() => [
|
|
11815
|
-
|
|
11815
|
+
$(m(t.$t("actions.clear")), 1)
|
|
11816
11816
|
]),
|
|
11817
11817
|
_: 1
|
|
11818
11818
|
}, 8, ["onClick"]),
|
|
@@ -11826,7 +11826,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11826
11826
|
class: "text-none text-body-1"
|
|
11827
11827
|
}, {
|
|
11828
11828
|
default: f(() => [
|
|
11829
|
-
|
|
11829
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
11830
11830
|
]),
|
|
11831
11831
|
_: 1
|
|
11832
11832
|
}, 8, ["loading"])
|
|
@@ -11838,8 +11838,8 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11838
11838
|
}, 8, ["onSubmit"])
|
|
11839
11839
|
]),
|
|
11840
11840
|
_: 1
|
|
11841
|
-
}, 8, ["style"])) :
|
|
11842
|
-
a.showMeteo ? (y(),
|
|
11841
|
+
}, 8, ["style"])) : R("", !0),
|
|
11842
|
+
a.showMeteo ? (y(), O(I, {
|
|
11843
11843
|
key: 1,
|
|
11844
11844
|
id: "idm-gl4-spot-meteo",
|
|
11845
11845
|
class: "spot-meteo",
|
|
@@ -11915,7 +11915,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11915
11915
|
o.followList.some((k) => {
|
|
11916
11916
|
var z, T;
|
|
11917
11917
|
return ((z = k == null ? void 0 : k.coordinate) == null ? void 0 : z.lng) === a.form.lng && ((T = k == null ? void 0 : k.coordinate) == null ? void 0 : T.lat) === a.form.lat;
|
|
11918
|
-
}) ? (y(),
|
|
11918
|
+
}) ? (y(), O(l, {
|
|
11919
11919
|
key: 0,
|
|
11920
11920
|
class: "text-none text-body-1",
|
|
11921
11921
|
id: "idm-gl4-spot-meteo-follow",
|
|
@@ -11932,10 +11932,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11932
11932
|
})
|
|
11933
11933
|
]),
|
|
11934
11934
|
default: f(() => [
|
|
11935
|
-
|
|
11935
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
11936
11936
|
]),
|
|
11937
11937
|
_: 1
|
|
11938
|
-
}, 8, ["onClick"])) : (y(),
|
|
11938
|
+
}, 8, ["onClick"])) : (y(), O(l, {
|
|
11939
11939
|
key: 1,
|
|
11940
11940
|
id: "idm-gl4-spot-meteo-unfollow",
|
|
11941
11941
|
class: "text-none text-body-1",
|
|
@@ -11949,7 +11949,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11949
11949
|
p(C, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
11950
11950
|
]),
|
|
11951
11951
|
default: f(() => [
|
|
11952
|
-
|
|
11952
|
+
$(m(t.$t("actions.follow")) + " ", 1)
|
|
11953
11953
|
]),
|
|
11954
11954
|
_: 1
|
|
11955
11955
|
}, 8, ["onClick"])),
|
|
@@ -11962,7 +11962,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11962
11962
|
onClick: Ee(r.handleMeteoMore, ["stop"])
|
|
11963
11963
|
}, {
|
|
11964
11964
|
default: f(() => [
|
|
11965
|
-
|
|
11965
|
+
$(m(t.$t("spot.forecast")), 1)
|
|
11966
11966
|
]),
|
|
11967
11967
|
_: 1
|
|
11968
11968
|
}, 8, ["onClick"])
|
|
@@ -11971,7 +11971,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11971
11971
|
})
|
|
11972
11972
|
]),
|
|
11973
11973
|
_: 1
|
|
11974
|
-
})) :
|
|
11974
|
+
})) : R("", !0),
|
|
11975
11975
|
Ve(s("div", Zm, [
|
|
11976
11976
|
(y(), M("svg", Ym, [
|
|
11977
11977
|
s("use", {
|
|
@@ -11983,7 +11983,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11983
11983
|
])
|
|
11984
11984
|
]);
|
|
11985
11985
|
}
|
|
11986
|
-
const $m = /* @__PURE__ */
|
|
11986
|
+
const $m = /* @__PURE__ */ q(nm, [["render", Xm]]);
|
|
11987
11987
|
const Km = {
|
|
11988
11988
|
name: "IdmMeasure",
|
|
11989
11989
|
props: {
|
|
@@ -12000,7 +12000,7 @@ const Km = {
|
|
|
12000
12000
|
}
|
|
12001
12001
|
},
|
|
12002
12002
|
setup() {
|
|
12003
|
-
return { Theme:
|
|
12003
|
+
return { Theme: Se() };
|
|
12004
12004
|
},
|
|
12005
12005
|
data() {
|
|
12006
12006
|
return {
|
|
@@ -12079,13 +12079,13 @@ const Km = {
|
|
|
12079
12079
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12080
12080
|
const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
12081
12081
|
this.pointMarkers[w.id].filter((P) => {
|
|
12082
|
-
var
|
|
12083
|
-
return ((
|
|
12082
|
+
var B;
|
|
12083
|
+
return ((B = P._element) == null ? void 0 : B.id) === e;
|
|
12084
12084
|
})[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]);
|
|
12085
12085
|
let g;
|
|
12086
|
-
w.features.forEach((P,
|
|
12086
|
+
w.features.forEach((P, B) => {
|
|
12087
12087
|
if (P.geometry.type === "Point" && P.properties.id === e.split("-")[1]) {
|
|
12088
|
-
g =
|
|
12088
|
+
g = B;
|
|
12089
12089
|
return;
|
|
12090
12090
|
}
|
|
12091
12091
|
});
|
|
@@ -12157,13 +12157,13 @@ const Km = {
|
|
|
12157
12157
|
const i = [];
|
|
12158
12158
|
for (let a = 1; a < e.length; a++) {
|
|
12159
12159
|
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = We.calculateDistance(n, u, c.mode === "RL", 4), b = We.calculateBearing(n, u, c.mode === "RL", 2);
|
|
12160
|
-
o =
|
|
12160
|
+
o = X.roundPrecision(o + d, 4);
|
|
12161
12161
|
let w;
|
|
12162
|
-
c.mode === "RL" ? w =
|
|
12162
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, u, 200));
|
|
12163
12163
|
const L = H.lineString(w.map((_) => [_.lng, _.lat]));
|
|
12164
12164
|
L.properties.dist = d, L.properties.bearing = b, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
|
|
12165
12165
|
const g = e[a];
|
|
12166
|
-
g.properties.totalDist =
|
|
12166
|
+
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + d, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12167
12167
|
}
|
|
12168
12168
|
e.push(...i), t.total = o;
|
|
12169
12169
|
}
|
|
@@ -12176,7 +12176,7 @@ const Km = {
|
|
|
12176
12176
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
|
|
12177
12177
|
r = We.calculateDistance(u, d, n.mode === "RL", 4), l = We.calculateBearing(u, d, n.mode === "RL", 2);
|
|
12178
12178
|
let b;
|
|
12179
|
-
n.mode === "RL" ? b =
|
|
12179
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, d]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, d, 200));
|
|
12180
12180
|
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12181
12181
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12182
12182
|
}
|
|
@@ -12184,7 +12184,7 @@ const Km = {
|
|
|
12184
12184
|
const n = o.properties, u = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12185
12185
|
r = We.calculateDistance(u, d, n.mode === "RL", 4), l = We.calculateBearing(u, d, n.mode === "RL", 2);
|
|
12186
12186
|
let b;
|
|
12187
|
-
n.mode === "RL" ? b =
|
|
12187
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, d]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, d, 200));
|
|
12188
12188
|
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12189
12189
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12190
12190
|
}
|
|
@@ -12230,7 +12230,7 @@ const Km = {
|
|
|
12230
12230
|
if (i)
|
|
12231
12231
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
12232
12232
|
else {
|
|
12233
|
-
const n =
|
|
12233
|
+
const n = X.roundPrecision((t.total ?? 0) + r, 1);
|
|
12234
12234
|
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
12235
12235
|
"measure.bearing"
|
|
12236
12236
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
@@ -12347,7 +12347,7 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12347
12347
|
location: "left"
|
|
12348
12348
|
}, {
|
|
12349
12349
|
activator: f(({ props: n }) => [
|
|
12350
|
-
p(l,
|
|
12350
|
+
p(l, N(n, {
|
|
12351
12351
|
"min-width": "32",
|
|
12352
12352
|
width: "32",
|
|
12353
12353
|
height: "32",
|
|
@@ -12366,7 +12366,7 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12366
12366
|
], 4)
|
|
12367
12367
|
]);
|
|
12368
12368
|
}
|
|
12369
|
-
const eh = /* @__PURE__ */
|
|
12369
|
+
const eh = /* @__PURE__ */ q(Km, [["render", Qm]]);
|
|
12370
12370
|
const th = {
|
|
12371
12371
|
name: "IdmBottomBar",
|
|
12372
12372
|
components: { DateTimePicker: Ao },
|
|
@@ -12504,7 +12504,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12504
12504
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12505
12505
|
}, [
|
|
12506
12506
|
s("div", ah, [
|
|
12507
|
-
p(l,
|
|
12507
|
+
p(l, N({
|
|
12508
12508
|
ref: "dateTimePicker",
|
|
12509
12509
|
"date-time": a.currentDateTimeZ,
|
|
12510
12510
|
"time-zone": a.timeZone,
|
|
@@ -12523,12 +12523,12 @@ function hh(t, e, o, i, a, r) {
|
|
|
12523
12523
|
"min-width": "30"
|
|
12524
12524
|
}, {
|
|
12525
12525
|
default: f(() => [
|
|
12526
|
-
|
|
12526
|
+
$(m(a.intervalHour) + " h ", 1),
|
|
12527
12527
|
p(d, { activator: "parent" }, {
|
|
12528
12528
|
default: f(() => [
|
|
12529
12529
|
p(u, { class: "pa-1" }, {
|
|
12530
12530
|
default: f(() => [
|
|
12531
|
-
(y(!0), M(
|
|
12531
|
+
(y(!0), M(we, null, _e(a.intervalOptions, (g, _) => (y(), O(n, {
|
|
12532
12532
|
key: _,
|
|
12533
12533
|
value: g,
|
|
12534
12534
|
variant: a.intervalHour === g ? "tonal" : "text",
|
|
@@ -12545,7 +12545,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12545
12545
|
onClick: (P) => a.intervalHour = g
|
|
12546
12546
|
}, {
|
|
12547
12547
|
default: f(() => [
|
|
12548
|
-
|
|
12548
|
+
$(m(g) + "h", 1)
|
|
12549
12549
|
]),
|
|
12550
12550
|
_: 2
|
|
12551
12551
|
}, 1032, ["onClick"])
|
|
@@ -12594,7 +12594,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12594
12594
|
_: 1,
|
|
12595
12595
|
__: [11]
|
|
12596
12596
|
}, 8, ["onClick"]),
|
|
12597
|
-
a.paused ? (y(),
|
|
12597
|
+
a.paused ? (y(), O(b, {
|
|
12598
12598
|
key: 0,
|
|
12599
12599
|
icon: "",
|
|
12600
12600
|
size: "small",
|
|
@@ -12607,7 +12607,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12607
12607
|
])),
|
|
12608
12608
|
_: 1,
|
|
12609
12609
|
__: [12]
|
|
12610
|
-
}, 8, ["onClick"])) : (y(),
|
|
12610
|
+
}, 8, ["onClick"])) : (y(), O(b, {
|
|
12611
12611
|
key: 1,
|
|
12612
12612
|
icon: "",
|
|
12613
12613
|
size: "small",
|
|
@@ -12648,14 +12648,14 @@ function hh(t, e, o, i, a, r) {
|
|
|
12648
12648
|
activator: f(({ props: g }) => {
|
|
12649
12649
|
var _, P;
|
|
12650
12650
|
return [
|
|
12651
|
-
p(b,
|
|
12651
|
+
p(b, N(g, {
|
|
12652
12652
|
class: "pa-1 d-flex",
|
|
12653
12653
|
color: (_ = o.weatherCheckList) != null && _.includes("wind") ? "primary" : "",
|
|
12654
12654
|
variant: (P = o.weatherCheckList) != null && P.includes("wind") ? "elevated" : "text",
|
|
12655
12655
|
height: "24",
|
|
12656
12656
|
width: "24",
|
|
12657
12657
|
"min-width": "24",
|
|
12658
|
-
onClick: e[4] || (e[4] = (
|
|
12658
|
+
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("wind"))
|
|
12659
12659
|
}), {
|
|
12660
12660
|
default: f(() => e[15] || (e[15] = [
|
|
12661
12661
|
s("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -12674,17 +12674,17 @@ function hh(t, e, o, i, a, r) {
|
|
|
12674
12674
|
activator: f(({ props: g }) => {
|
|
12675
12675
|
var _, P;
|
|
12676
12676
|
return [
|
|
12677
|
-
p(b,
|
|
12677
|
+
p(b, N(g, {
|
|
12678
12678
|
class: "pa-1 d-flex",
|
|
12679
12679
|
color: (_ = o.weatherCheckList) != null && _.includes("sig-wave-height") ? "primary" : "",
|
|
12680
12680
|
variant: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "elevated" : "text",
|
|
12681
12681
|
height: "24",
|
|
12682
12682
|
width: "24",
|
|
12683
12683
|
"min-width": "24",
|
|
12684
|
-
onClick: e[5] || (e[5] = (
|
|
12684
|
+
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
12685
12685
|
}), {
|
|
12686
12686
|
default: f(() => [
|
|
12687
|
-
s("i",
|
|
12687
|
+
s("i", N(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
12688
12688
|
]),
|
|
12689
12689
|
_: 2
|
|
12690
12690
|
}, 1040, ["color", "variant"])
|
|
@@ -12699,17 +12699,17 @@ function hh(t, e, o, i, a, r) {
|
|
|
12699
12699
|
activator: f(({ props: g }) => {
|
|
12700
12700
|
var _, P;
|
|
12701
12701
|
return [
|
|
12702
|
-
p(b,
|
|
12702
|
+
p(b, N(g, {
|
|
12703
12703
|
class: "pa-1 d-flex",
|
|
12704
12704
|
color: (_ = o.weatherCheckList) != null && _.includes("current-direction") ? "primary" : "",
|
|
12705
12705
|
variant: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "elevated" : "text",
|
|
12706
12706
|
height: "24",
|
|
12707
12707
|
width: "24",
|
|
12708
12708
|
"min-width": "24",
|
|
12709
|
-
onClick: e[6] || (e[6] = (
|
|
12709
|
+
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
12710
12710
|
}), {
|
|
12711
12711
|
default: f(() => [
|
|
12712
|
-
s("i",
|
|
12712
|
+
s("i", N(g, { class: "iconfont icon-Current" }), null, 16)
|
|
12713
12713
|
]),
|
|
12714
12714
|
_: 2
|
|
12715
12715
|
}, 1040, ["color", "variant"])
|
|
@@ -12722,7 +12722,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12722
12722
|
location: "top"
|
|
12723
12723
|
}, {
|
|
12724
12724
|
activator: f(({ props: g }) => [
|
|
12725
|
-
p(b,
|
|
12725
|
+
p(b, N(g, {
|
|
12726
12726
|
class: "pa-1 d-flex",
|
|
12727
12727
|
variant: "text",
|
|
12728
12728
|
height: "24",
|
|
@@ -12731,7 +12731,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12731
12731
|
onClick: r.handleClickFastMore
|
|
12732
12732
|
}), {
|
|
12733
12733
|
default: f(() => [
|
|
12734
|
-
s("i",
|
|
12734
|
+
s("i", N(g, { class: "iconfont icon-dots-align" }), null, 16)
|
|
12735
12735
|
]),
|
|
12736
12736
|
_: 2
|
|
12737
12737
|
}, 1040, ["onClick"])
|
|
@@ -12753,7 +12753,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12753
12753
|
onClick: e[7] || (e[7] = (g) => a.source = "GFS")
|
|
12754
12754
|
}, {
|
|
12755
12755
|
default: f(() => e[16] || (e[16] = [
|
|
12756
|
-
|
|
12756
|
+
$("NOAA", -1)
|
|
12757
12757
|
])),
|
|
12758
12758
|
_: 1,
|
|
12759
12759
|
__: [16]
|
|
@@ -12766,7 +12766,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12766
12766
|
onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
|
|
12767
12767
|
}, {
|
|
12768
12768
|
default: f(() => e[17] || (e[17] = [
|
|
12769
|
-
|
|
12769
|
+
$("ECMWF", -1)
|
|
12770
12770
|
])),
|
|
12771
12771
|
_: 1,
|
|
12772
12772
|
__: [17]
|
|
@@ -12778,12 +12778,12 @@ function hh(t, e, o, i, a, r) {
|
|
|
12778
12778
|
style: ae({ right: a.right + "px" })
|
|
12779
12779
|
}, [
|
|
12780
12780
|
a.showTimezone ? (y(), M("div", lh, [
|
|
12781
|
-
(y(!0), M(
|
|
12781
|
+
(y(!0), M(we, null, _e(a.offsets, (g) => (y(), M("div", {
|
|
12782
12782
|
key: g,
|
|
12783
12783
|
class: "item rounded text-body-2 hover-active",
|
|
12784
12784
|
onClick: (_) => a.timeZone = g
|
|
12785
12785
|
}, m(g < 0 ? g : "+" + g), 9, nh))), 128))
|
|
12786
|
-
])) :
|
|
12786
|
+
])) : R("", !0),
|
|
12787
12787
|
s("div", ch, [
|
|
12788
12788
|
p(b, {
|
|
12789
12789
|
text: "",
|
|
@@ -12794,7 +12794,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12794
12794
|
onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
|
|
12795
12795
|
}, {
|
|
12796
12796
|
default: f(() => [
|
|
12797
|
-
|
|
12797
|
+
$(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12798
12798
|
]),
|
|
12799
12799
|
_: 1
|
|
12800
12800
|
}),
|
|
@@ -12803,7 +12803,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12803
12803
|
], 4)
|
|
12804
12804
|
]);
|
|
12805
12805
|
}
|
|
12806
|
-
const dh = /* @__PURE__ */
|
|
12806
|
+
const dh = /* @__PURE__ */ q(th, [["render", hh]]), ph = {
|
|
12807
12807
|
name: "IdmGL4",
|
|
12808
12808
|
components: {
|
|
12809
12809
|
IdmOtherLayer: pl,
|
|
@@ -12869,7 +12869,7 @@ const dh = /* @__PURE__ */ X(th, [["render", hh]]), ph = {
|
|
|
12869
12869
|
function gh(t, e, o, i, a, r) {
|
|
12870
12870
|
const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), d = x("IdmSpot"), b = x("IdmBottomBar");
|
|
12871
12871
|
return y(), M("div", uh, [
|
|
12872
|
-
p(l,
|
|
12872
|
+
p(l, N({
|
|
12873
12873
|
ref: "idmOtherLayers",
|
|
12874
12874
|
token: o.token,
|
|
12875
12875
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12884,7 +12884,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12884
12884
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12885
12885
|
})
|
|
12886
12886
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12887
|
-
p(c,
|
|
12887
|
+
p(c, N({
|
|
12888
12888
|
ref: "idmWeatherLayers",
|
|
12889
12889
|
map: o.map,
|
|
12890
12890
|
"before-layer": "empty-layer-2",
|
|
@@ -12902,7 +12902,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12902
12902
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12903
12903
|
})
|
|
12904
12904
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12905
|
-
p(n,
|
|
12905
|
+
p(n, N({
|
|
12906
12906
|
map: o.map,
|
|
12907
12907
|
token: o.token,
|
|
12908
12908
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12913,11 +12913,11 @@ function gh(t, e, o, i, a, r) {
|
|
|
12913
12913
|
"forecast-model": o.forecastModel,
|
|
12914
12914
|
"map-feather": o.mapFeather
|
|
12915
12915
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12916
|
-
p(u,
|
|
12916
|
+
p(u, N({
|
|
12917
12917
|
map: o.map,
|
|
12918
12918
|
"map-feather": o.mapFeather
|
|
12919
12919
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12920
|
-
p(d,
|
|
12920
|
+
p(d, N({
|
|
12921
12921
|
ref: "idmSpot",
|
|
12922
12922
|
map: o.map,
|
|
12923
12923
|
token: o.token,
|
|
@@ -12926,7 +12926,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12926
12926
|
"forecast-model": o.forecastModel,
|
|
12927
12927
|
"map-feather": o.mapFeather
|
|
12928
12928
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
12929
|
-
p(b,
|
|
12929
|
+
p(b, N({
|
|
12930
12930
|
ref: "idmBottomBar",
|
|
12931
12931
|
"forecast-model": o.forecastModel,
|
|
12932
12932
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12934,16 +12934,16 @@ function gh(t, e, o, i, a, r) {
|
|
|
12934
12934
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
12935
12935
|
], 512);
|
|
12936
12936
|
}
|
|
12937
|
-
const fh = /* @__PURE__ */
|
|
12937
|
+
const fh = /* @__PURE__ */ q(ph, [["render", gh]]);
|
|
12938
12938
|
class yh {
|
|
12939
12939
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
var o, i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
12940
|
+
de(this, "originStyle");
|
|
12941
|
+
de(this, "mapboxStyle");
|
|
12942
|
+
de(this, "i4");
|
|
12943
|
+
de(this, "hi");
|
|
12944
|
+
de(this, "td");
|
|
12945
|
+
de(this, "windy");
|
|
12946
|
+
var o, i, a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le, pe, ie, ce, ue, me, he, A, ee, ye, xe, Le, Pe, ve, Me, Ce, G, te, Fe, Ae, ge, Ie, U, fe, oe, re, Oe, He, Ge, E, be, Re, Be, Ne, j, Ue, W, qe, Xe, $e, ze, Ke, Je, Qe, 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, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, 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, Oo, Bo, No, Eo, jo, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, 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, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ga, Ua, Wa, Va;
|
|
12947
12947
|
this.i4 = {
|
|
12948
12948
|
source: {
|
|
12949
12949
|
type: "raster",
|
|
@@ -31591,33 +31591,33 @@ class yh {
|
|
|
31591
31591
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
31592
31592
|
(L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((h) => h.id === "loadlines-fill"),
|
|
31593
31593
|
(_ = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : _.find((h) => h.id === "empty-layer-0"),
|
|
31594
|
-
(
|
|
31594
|
+
(B = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
31595
31595
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((h) => h.id === "country-boundaries"),
|
|
31596
31596
|
(z = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : z.find((h) => h.id === "water-outline"),
|
|
31597
31597
|
(v = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : v.find((h) => h.id === "water-outline2"),
|
|
31598
|
-
(
|
|
31599
|
-
(
|
|
31600
|
-
(
|
|
31601
|
-
(
|
|
31602
|
-
(
|
|
31603
|
-
(
|
|
31604
|
-
(
|
|
31605
|
-
(
|
|
31606
|
-
(
|
|
31607
|
-
(
|
|
31608
|
-
(
|
|
31609
|
-
(
|
|
31610
|
-
(G = (
|
|
31598
|
+
(F = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
31599
|
+
(Y = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Y.find((h) => h.id === "water-line-label"),
|
|
31600
|
+
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((h) => h.id === "water-point-label"),
|
|
31601
|
+
(K = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : K.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
31602
|
+
(le = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : le.find((h) => h.id === "ne-10m-outline"),
|
|
31603
|
+
(ie = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ie.find((h) => h.id === "ne-10m-label"),
|
|
31604
|
+
(ue = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : ue.find((h) => h.id === "china-route-line"),
|
|
31605
|
+
(he = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : he.find((h) => h.id === "china-route-fill"),
|
|
31606
|
+
(ee = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : ee.find((h) => h.id === "china-route-label"),
|
|
31607
|
+
(xe = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : xe.find((h) => h.id === "admin-0-boundary-bg"),
|
|
31608
|
+
(Pe = (Le = this.originStyle) == null ? void 0 : Le.light.layers) == null ? void 0 : Pe.find((h) => h.id === "admin-0-boundary"),
|
|
31609
|
+
(Me = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Me.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
31610
|
+
(G = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : G.find((h) => h.id === "country-label"),
|
|
31611
31611
|
(Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((h) => h.id === "continent-label"),
|
|
31612
|
-
(ge = (
|
|
31613
|
-
(U = (
|
|
31612
|
+
(ge = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ge.find((h) => h.id === "tide-stations"),
|
|
31613
|
+
(U = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : U.find((h) => h.id === "empty-layer-3"),
|
|
31614
31614
|
(oe = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : oe.find((h) => h.id === "empty-layer-4")
|
|
31615
31615
|
]
|
|
31616
31616
|
},
|
|
31617
31617
|
dark: {
|
|
31618
31618
|
version: 8,
|
|
31619
31619
|
name: "dark",
|
|
31620
|
-
metadata: (
|
|
31620
|
+
metadata: (re = this.originStyle) == null ? void 0 : re.dark.metadata,
|
|
31621
31621
|
center: [90.22129259388525, -3.2084663486364606],
|
|
31622
31622
|
zoom: 1.2556266457717493,
|
|
31623
31623
|
bearing: 0,
|
|
@@ -31629,16 +31629,16 @@ class yh {
|
|
|
31629
31629
|
sources: (Oe = this.originStyle) == null ? void 0 : Oe.dark.sources,
|
|
31630
31630
|
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
31631
31631
|
glyphs: (Ge = this.originStyle) == null ? void 0 : Ge.dark.glyphs,
|
|
31632
|
-
projection: (
|
|
31632
|
+
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
31633
31633
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
31634
31634
|
owner: "neatchenheng",
|
|
31635
31635
|
visibility: "private",
|
|
31636
31636
|
protected: !1,
|
|
31637
31637
|
draft: !1,
|
|
31638
31638
|
layers: [
|
|
31639
|
-
(
|
|
31639
|
+
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((h) => h.id === "land"),
|
|
31640
31640
|
(Ne = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : Ne.find((h) => h.id === "water"),
|
|
31641
|
-
(Ue = (
|
|
31641
|
+
(Ue = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "ice-area-fill"),
|
|
31642
31642
|
(qe = (W = this.originStyle) == null ? void 0 : W.dark.layers) == null ? void 0 : qe.find((h) => h.id === "ice-area-line"),
|
|
31643
31643
|
($e = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : $e.find((h) => h.id === "loadlines-label"),
|
|
31644
31644
|
(Ke = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "loadlines-fill"),
|
|
@@ -31953,7 +31953,7 @@ function kh(t, e, o, i, a, r) {
|
|
|
31953
31953
|
])
|
|
31954
31954
|
]);
|
|
31955
31955
|
}
|
|
31956
|
-
const zh = /* @__PURE__ */
|
|
31956
|
+
const zh = /* @__PURE__ */ q(bh, [["render", kh]]);
|
|
31957
31957
|
const Lh = {
|
|
31958
31958
|
name: "DateRangePicker",
|
|
31959
31959
|
props: {
|
|
@@ -32147,11 +32147,11 @@ function Th(t, e, o, i, a, r) {
|
|
|
32147
32147
|
onClick: r.handleOpenDatePicker
|
|
32148
32148
|
}, {
|
|
32149
32149
|
default: f(() => [
|
|
32150
|
-
|
|
32150
|
+
$(m(a.dateRangeStr), 1)
|
|
32151
32151
|
]),
|
|
32152
32152
|
_: 1
|
|
32153
32153
|
}, 8, ["height", "width", "onClick"]),
|
|
32154
|
-
a.showDatePicker ? (y(),
|
|
32154
|
+
a.showDatePicker ? (y(), O(b, {
|
|
32155
32155
|
key: 0,
|
|
32156
32156
|
class: "card-box d-flex flex-column border",
|
|
32157
32157
|
style: ae(r.getStyle)
|
|
@@ -32191,7 +32191,7 @@ function Th(t, e, o, i, a, r) {
|
|
|
32191
32191
|
onClick: r.handleCancelDate
|
|
32192
32192
|
}, {
|
|
32193
32193
|
default: f(() => e[1] || (e[1] = [
|
|
32194
|
-
|
|
32194
|
+
$("Cancel", -1)
|
|
32195
32195
|
])),
|
|
32196
32196
|
_: 1,
|
|
32197
32197
|
__: [1]
|
|
@@ -32204,7 +32204,7 @@ function Th(t, e, o, i, a, r) {
|
|
|
32204
32204
|
onClick: r.handleConfirmDate
|
|
32205
32205
|
}, {
|
|
32206
32206
|
default: f(() => e[2] || (e[2] = [
|
|
32207
|
-
|
|
32207
|
+
$("Confirm", -1)
|
|
32208
32208
|
])),
|
|
32209
32209
|
_: 1,
|
|
32210
32210
|
__: [2]
|
|
@@ -32214,10 +32214,10 @@ function Th(t, e, o, i, a, r) {
|
|
|
32214
32214
|
})
|
|
32215
32215
|
]),
|
|
32216
32216
|
_: 1
|
|
32217
|
-
}, 8, ["style"])) :
|
|
32217
|
+
}, 8, ["style"])) : R("", !0)
|
|
32218
32218
|
], 512);
|
|
32219
32219
|
}
|
|
32220
|
-
const Sh = /* @__PURE__ */
|
|
32220
|
+
const Sh = /* @__PURE__ */ q(Lh, [["render", Th]]), Hh = {
|
|
32221
32221
|
install(t) {
|
|
32222
32222
|
t.component("MapInitial", zh), t.component("MapboxGL", fh), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", Ao), t.component("DateRangePicker", Sh), t.component("PortDetail", Io);
|
|
32223
32223
|
}
|
|
@@ -32229,10 +32229,10 @@ export {
|
|
|
32229
32229
|
zh as MapInitial,
|
|
32230
32230
|
fh as MapboxGL,
|
|
32231
32231
|
Hh as MapboxGLPlugin,
|
|
32232
|
-
|
|
32232
|
+
Te as ParticleSchema,
|
|
32233
32233
|
Io as PortDetail,
|
|
32234
32234
|
Xa as TropicalGL,
|
|
32235
32235
|
Do as Viewport,
|
|
32236
32236
|
je as WebGL,
|
|
32237
|
-
|
|
32237
|
+
ne as WebGLSchema
|
|
32238
32238
|
};
|