@idmwx/idmui-gl4 1.8.8 → 1.9.0
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 +686 -666
- package/dist/index.umd.cjs +18 -18
- package/dist/mapbox/src/components/measure/index.vue.d.ts +9 -3
- package/dist/mapbox/src/components/other/index.vue.d.ts +20 -8
- package/dist/mapbox/src/components/spot/index.vue.d.ts +20 -14
- package/dist/mapbox/src/components/tropical/index.vue.d.ts +24 -18
- package/dist/mapbox/src/components/weather/index.vue.d.ts +13 -7
- package/dist/style.css +1 -1
- 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: {
|
|
@@ -4597,6 +4597,14 @@ const el = {
|
|
|
4597
4597
|
type: Number,
|
|
4598
4598
|
default: 60
|
|
4599
4599
|
},
|
|
4600
|
+
paddingTop: {
|
|
4601
|
+
type: Number,
|
|
4602
|
+
default: 48
|
|
4603
|
+
},
|
|
4604
|
+
menuHeight: {
|
|
4605
|
+
type: Number,
|
|
4606
|
+
default: 248
|
|
4607
|
+
},
|
|
4600
4608
|
menuToggle: {
|
|
4601
4609
|
type: Object,
|
|
4602
4610
|
default: {}
|
|
@@ -4700,7 +4708,7 @@ const el = {
|
|
|
4700
4708
|
var e, o;
|
|
4701
4709
|
let t = this.layerWeight;
|
|
4702
4710
|
if (t) {
|
|
4703
|
-
const i = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], a = await
|
|
4711
|
+
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
4712
|
headers: {
|
|
4705
4713
|
Authorization: this.defaultMeteoToken
|
|
4706
4714
|
}
|
|
@@ -4709,7 +4717,7 @@ const el = {
|
|
|
4709
4717
|
const r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data, l = [];
|
|
4710
4718
|
for (const n in r)
|
|
4711
4719
|
l.push(
|
|
4712
|
-
|
|
4720
|
+
De.get(r[n], {
|
|
4713
4721
|
headers: {
|
|
4714
4722
|
Authorization: this.defaultMeteoToken,
|
|
4715
4723
|
key: n
|
|
@@ -4726,7 +4734,7 @@ const el = {
|
|
|
4726
4734
|
},
|
|
4727
4735
|
async fetchDayNightLayer() {
|
|
4728
4736
|
var o, i;
|
|
4729
|
-
const t = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], e = await
|
|
4737
|
+
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
4738
|
headers: {
|
|
4731
4739
|
Authorization: this.defaultMeteoToken
|
|
4732
4740
|
}
|
|
@@ -4756,19 +4764,19 @@ const el = {
|
|
|
4756
4764
|
class: "border rounded-sm"
|
|
4757
4765
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
4758
4766
|
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"),
|
|
4767
|
+
var K, se, le, pe, ie, ce, ue, me, he;
|
|
4768
|
+
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
4769
|
return y(), M("div", tl, [
|
|
4762
4770
|
s("div", {
|
|
4763
4771
|
class: "menu-bar-box transition px-1 rounded",
|
|
4764
|
-
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4772
|
+
style: ae({ top: o.top + 10 + "px", right: a.right + "px", paddingTop: o.paddingTop + "px", height: o.menuHeight + "px" })
|
|
4765
4773
|
}, [
|
|
4766
4774
|
p(c, {
|
|
4767
4775
|
text: t.$t("layer.mapLayers"),
|
|
4768
4776
|
location: "left"
|
|
4769
4777
|
}, {
|
|
4770
|
-
activator: f(({ props:
|
|
4771
|
-
p(l,
|
|
4778
|
+
activator: f(({ props: A }) => [
|
|
4779
|
+
p(l, N(A, {
|
|
4772
4780
|
"min-width": "32",
|
|
4773
4781
|
width: "32",
|
|
4774
4782
|
height: "32",
|
|
@@ -4818,7 +4826,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4818
4826
|
style: { "font-size": "16px !important" }
|
|
4819
4827
|
}, {
|
|
4820
4828
|
default: f(() => [
|
|
4821
|
-
|
|
4829
|
+
$(m(t.$t("layer.mapFeathers")), 1)
|
|
4822
4830
|
]),
|
|
4823
4831
|
_: 1
|
|
4824
4832
|
})
|
|
@@ -4828,25 +4836,25 @@ function dl(t, e, o, i, a, r) {
|
|
|
4828
4836
|
p(b, { class: "pb-2" }, {
|
|
4829
4837
|
default: f(() => [
|
|
4830
4838
|
s("div", rl, [
|
|
4831
|
-
(y(!0), M(
|
|
4832
|
-
key:
|
|
4839
|
+
(y(!0), M(we, null, _e(a.mapFeathers, (A) => (y(), M("div", {
|
|
4840
|
+
key: A.value,
|
|
4833
4841
|
class: "mb-2 feather-item",
|
|
4834
|
-
onClick: (
|
|
4842
|
+
onClick: (ee) => r.handleToggleMapFeather(A)
|
|
4835
4843
|
}, [
|
|
4836
4844
|
s("div", {
|
|
4837
|
-
class: Ye([a.mapFeather ===
|
|
4845
|
+
class: Ye([a.mapFeather === A.value ? "active" : "", "img-box"])
|
|
4838
4846
|
}, [
|
|
4839
|
-
|
|
4847
|
+
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
4848
|
], 2),
|
|
4841
|
-
s("div", hl, m(t.$t(`layer.${
|
|
4849
|
+
s("div", hl, m(t.$t(`layer.${A.locale}`)), 1)
|
|
4842
4850
|
], 8, sl))), 128))
|
|
4843
4851
|
]),
|
|
4844
|
-
(y(!0), M(
|
|
4845
|
-
key:
|
|
4852
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => ["graticule", "day-night", "time-zones"].includes(A.key)), (A) => (y(), O(d, {
|
|
4853
|
+
key: A.key,
|
|
4846
4854
|
modelValue: a.checkList,
|
|
4847
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
4848
|
-
value:
|
|
4849
|
-
label: t.$t(`layer.${
|
|
4855
|
+
"onUpdate:modelValue": e[0] || (e[0] = (ee) => a.checkList = ee),
|
|
4856
|
+
value: A.key,
|
|
4857
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4850
4858
|
color: "primary",
|
|
4851
4859
|
density: "compact",
|
|
4852
4860
|
style: { height: "36px" },
|
|
@@ -4871,7 +4879,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4871
4879
|
style: { "font-size": "16px !important" }
|
|
4872
4880
|
}, {
|
|
4873
4881
|
default: f(() => [
|
|
4874
|
-
|
|
4882
|
+
$(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4875
4883
|
]),
|
|
4876
4884
|
_: 1
|
|
4877
4885
|
})
|
|
@@ -4880,12 +4888,12 @@ function dl(t, e, o, i, a, r) {
|
|
|
4880
4888
|
}),
|
|
4881
4889
|
p(b, { class: "py-2" }, {
|
|
4882
4890
|
default: f(() => [
|
|
4883
|
-
(y(!0), M(
|
|
4884
|
-
key:
|
|
4891
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((A) => ["ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (y(), O(d, {
|
|
4892
|
+
key: A.key,
|
|
4885
4893
|
modelValue: a.checkList,
|
|
4886
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
4887
|
-
value:
|
|
4888
|
-
label: t.$t(`layer.${
|
|
4894
|
+
"onUpdate:modelValue": e[1] || (e[1] = (ee) => a.checkList = ee),
|
|
4895
|
+
value: A.key,
|
|
4896
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4889
4897
|
color: "primary",
|
|
4890
4898
|
density: "compact",
|
|
4891
4899
|
style: { height: "36px" },
|
|
@@ -4910,7 +4918,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4910
4918
|
style: { "font-size": "16px !important" }
|
|
4911
4919
|
}, {
|
|
4912
4920
|
default: f(() => [
|
|
4913
|
-
|
|
4921
|
+
$(m(t.$t("layer.otherLayers")), 1)
|
|
4914
4922
|
]),
|
|
4915
4923
|
_: 1
|
|
4916
4924
|
})
|
|
@@ -4919,12 +4927,12 @@ function dl(t, e, o, i, a, r) {
|
|
|
4919
4927
|
}),
|
|
4920
4928
|
p(b, { class: "py-2" }, {
|
|
4921
4929
|
default: f(() => [
|
|
4922
|
-
(y(!0), M(
|
|
4923
|
-
key:
|
|
4930
|
+
(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, {
|
|
4931
|
+
key: A.key,
|
|
4924
4932
|
modelValue: a.checkList,
|
|
4925
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
4926
|
-
value:
|
|
4927
|
-
label: t.$t(`layer.${
|
|
4933
|
+
"onUpdate:modelValue": e[2] || (e[2] = (ee) => a.checkList = ee),
|
|
4934
|
+
value: A.key,
|
|
4935
|
+
label: t.$t(`layer.${A.locale}`),
|
|
4928
4936
|
color: "primary",
|
|
4929
4937
|
density: "compact",
|
|
4930
4938
|
style: { height: "36px" },
|
|
@@ -4949,7 +4957,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4949
4957
|
style: { "font-size": "16px !important" }
|
|
4950
4958
|
}, {
|
|
4951
4959
|
default: f(() => [
|
|
4952
|
-
|
|
4960
|
+
$(m(t.$t("layer.myFollows")), 1)
|
|
4953
4961
|
]),
|
|
4954
4962
|
_: 1
|
|
4955
4963
|
})
|
|
@@ -4960,7 +4968,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4960
4968
|
default: f(() => [
|
|
4961
4969
|
p(d, {
|
|
4962
4970
|
modelValue: a.checkList,
|
|
4963
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
4971
|
+
"onUpdate:modelValue": e[3] || (e[3] = (A) => a.checkList = A),
|
|
4964
4972
|
value: "follow-ports",
|
|
4965
4973
|
label: t.$t("layer.ports"),
|
|
4966
4974
|
color: "primary",
|
|
@@ -4971,7 +4979,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
4971
4979
|
}, null, 8, ["modelValue", "label"]),
|
|
4972
4980
|
p(d, {
|
|
4973
4981
|
modelValue: a.checkList,
|
|
4974
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
4982
|
+
"onUpdate:modelValue": e[4] || (e[4] = (A) => a.checkList = A),
|
|
4975
4983
|
value: "follow-positions",
|
|
4976
4984
|
label: t.$t("layer.locations"),
|
|
4977
4985
|
color: "primary",
|
|
@@ -4988,42 +4996,42 @@ function dl(t, e, o, i, a, r) {
|
|
|
4988
4996
|
})
|
|
4989
4997
|
])
|
|
4990
4998
|
], 6),
|
|
4991
|
-
o.map ? (y(),
|
|
4999
|
+
o.map ? (y(), O(L, N({
|
|
4992
5000
|
key: 0,
|
|
4993
5001
|
map: o.map,
|
|
4994
5002
|
"menu-toggle": o.menuToggle,
|
|
4995
5003
|
show: a.checkList.includes("graticule")
|
|
4996
|
-
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
4997
|
-
o.map ? (y(),
|
|
5004
|
+
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : R("", !0),
|
|
5005
|
+
o.map ? (y(), O(g, N({
|
|
4998
5006
|
key: 1,
|
|
4999
5007
|
map: o.map,
|
|
5000
|
-
area: (
|
|
5001
|
-
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) :
|
|
5002
|
-
o.map ? (y(),
|
|
5008
|
+
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
5009
|
+
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : R("", !0),
|
|
5010
|
+
o.map ? (y(), O(_, N({
|
|
5003
5011
|
key: 2,
|
|
5004
5012
|
map: o.map,
|
|
5005
|
-
zone: (
|
|
5013
|
+
zone: (se = a.otherLayers) == null ? void 0 : se["time-zones"],
|
|
5006
5014
|
realTime: o.realTime
|
|
5007
|
-
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) :
|
|
5008
|
-
o.map ? (y(),
|
|
5015
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : R("", !0),
|
|
5016
|
+
o.map ? (y(), O(P, N({
|
|
5009
5017
|
key: 3,
|
|
5010
5018
|
ref: "idmPorts",
|
|
5011
5019
|
map: o.map,
|
|
5012
|
-
ports: (
|
|
5020
|
+
ports: (le = a.otherLayers) == null ? void 0 : le.ports,
|
|
5013
5021
|
gateway: o.gateway,
|
|
5014
5022
|
token: o.token,
|
|
5015
5023
|
"forecast-model": o.forecastModel,
|
|
5016
5024
|
realTime: o.realTime
|
|
5017
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) :
|
|
5018
|
-
o.map ? (y(),
|
|
5025
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5026
|
+
o.map ? (y(), O(B, N({
|
|
5019
5027
|
key: 4,
|
|
5020
5028
|
map: o.map,
|
|
5021
|
-
zone: (
|
|
5029
|
+
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
5022
5030
|
}, t.$attrs, {
|
|
5023
5031
|
"before-layer": "empty-layer-3",
|
|
5024
5032
|
theme: o.theme
|
|
5025
|
-
}), null, 16, ["map", "zone", "theme"])) :
|
|
5026
|
-
o.map ? (y(),
|
|
5033
|
+
}), null, 16, ["map", "zone", "theme"])) : R("", !0),
|
|
5034
|
+
o.map ? (y(), O(I, N({
|
|
5027
5035
|
key: 5,
|
|
5028
5036
|
ref: "idmIideStation",
|
|
5029
5037
|
map: o.map,
|
|
@@ -5035,61 +5043,61 @@ function dl(t, e, o, i, a, r) {
|
|
|
5035
5043
|
realTime: o.realTime,
|
|
5036
5044
|
forecastModel: o.forecastModel,
|
|
5037
5045
|
"before-layer": "empty-layer-3"
|
|
5038
|
-
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) :
|
|
5039
|
-
o.map ? (y(),
|
|
5046
|
+
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : R("", !0),
|
|
5047
|
+
o.map ? (y(), O(C, N({
|
|
5040
5048
|
key: 6,
|
|
5041
5049
|
map: o.map,
|
|
5042
|
-
zone: (
|
|
5043
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5044
|
-
o.map ? (y(),
|
|
5050
|
+
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5051
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5052
|
+
o.map ? (y(), O(k, N({
|
|
5045
5053
|
key: 7,
|
|
5046
5054
|
map: o.map,
|
|
5047
|
-
zone: (
|
|
5048
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5049
|
-
o.map ? (y(),
|
|
5055
|
+
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5056
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : R("", !0),
|
|
5057
|
+
o.map ? (y(), O(z, N({
|
|
5050
5058
|
key: 8,
|
|
5051
5059
|
map: o.map,
|
|
5052
|
-
area: (
|
|
5053
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5054
|
-
o.map ? (y(),
|
|
5060
|
+
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5061
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5062
|
+
o.map ? (y(), O(T, N({
|
|
5055
5063
|
key: 9,
|
|
5056
5064
|
map: o.map,
|
|
5057
5065
|
show: a.checkList.includes("load-lines")
|
|
5058
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5059
|
-
o.map ? (y(),
|
|
5066
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5067
|
+
o.map ? (y(), O(v, N({
|
|
5060
5068
|
key: 10,
|
|
5061
5069
|
map: o.map,
|
|
5062
5070
|
token: o.token,
|
|
5063
5071
|
show: a.checkList.includes("worldMarine")
|
|
5064
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5065
|
-
o.map ? (y(),
|
|
5072
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5073
|
+
o.map ? (y(), O(D, N({
|
|
5066
5074
|
key: 11,
|
|
5067
5075
|
map: o.map,
|
|
5068
|
-
area: (
|
|
5069
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5070
|
-
o.map ? (y(),
|
|
5076
|
+
area: (me = a.otherLayers) == null ? void 0 : me["voluntary-reporting-area"]
|
|
5077
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5078
|
+
o.map ? (y(), O(F, N({
|
|
5071
5079
|
key: 12,
|
|
5072
5080
|
map: o.map,
|
|
5073
|
-
area: (
|
|
5074
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5075
|
-
o.map ? (y(),
|
|
5081
|
+
area: (he = a.otherLayers) == null ? void 0 : he["special-area"]
|
|
5082
|
+
}, t.$attrs), null, 16, ["map", "area"])) : R("", !0),
|
|
5083
|
+
o.map ? (y(), O(V, N({
|
|
5076
5084
|
key: 13,
|
|
5077
5085
|
map: o.map,
|
|
5078
5086
|
token: o.token,
|
|
5079
5087
|
show: a.checkList.includes("world12nm")
|
|
5080
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5081
|
-
o.map ? (y(),
|
|
5088
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5089
|
+
o.map ? (y(), O(Y, N({
|
|
5082
5090
|
key: 14,
|
|
5083
5091
|
map: o.map,
|
|
5084
5092
|
token: o.token,
|
|
5085
5093
|
show: a.checkList.includes("chinaRoute")
|
|
5086
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5087
|
-
o.map ? (y(),
|
|
5094
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : R("", !0),
|
|
5095
|
+
o.map ? (y(), O(Z, N({
|
|
5088
5096
|
key: 15,
|
|
5089
5097
|
map: o.map,
|
|
5090
5098
|
show: a.checkList.includes("ice-areas")
|
|
5091
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5092
|
-
o.map ? (y(),
|
|
5099
|
+
}, t.$attrs), null, 16, ["map", "show"])) : R("", !0),
|
|
5100
|
+
o.map ? (y(), O(J, N({
|
|
5093
5101
|
key: 16,
|
|
5094
5102
|
ref: "idmFollowPort",
|
|
5095
5103
|
map: o.map,
|
|
@@ -5098,29 +5106,29 @@ function dl(t, e, o, i, a, r) {
|
|
|
5098
5106
|
token: o.token,
|
|
5099
5107
|
"forecast-model": o.forecastModel,
|
|
5100
5108
|
realTime: o.realTime
|
|
5101
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) :
|
|
5102
|
-
o.map ? (y(),
|
|
5109
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : R("", !0),
|
|
5110
|
+
o.map ? (y(), O(Q, N({
|
|
5103
5111
|
key: 17,
|
|
5104
5112
|
ref: "idmFollowPosition",
|
|
5105
5113
|
map: o.map,
|
|
5106
5114
|
show: a.checkList.includes("follow-positions"),
|
|
5107
5115
|
"forecast-model": o.forecastModel,
|
|
5108
5116
|
realTime: o.realTime
|
|
5109
|
-
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) :
|
|
5117
|
+
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) : R("", !0)
|
|
5110
5118
|
]);
|
|
5111
5119
|
}
|
|
5112
|
-
const pl = /* @__PURE__ */
|
|
5120
|
+
const pl = /* @__PURE__ */ q(el, [["render", dl]]);
|
|
5113
5121
|
class Do {
|
|
5114
5122
|
constructor(e) {
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5123
|
+
de(this, "map");
|
|
5124
|
+
de(this, "mercator");
|
|
5125
|
+
de(this, "rampColorLayer");
|
|
5126
|
+
de(this, "rampColorSource");
|
|
5127
|
+
de(this, "particleLayer");
|
|
5128
|
+
de(this, "particleSource");
|
|
5129
|
+
de(this, "rampColorCanvas");
|
|
5130
|
+
de(this, "particleCanvas");
|
|
5131
|
+
de(this, "ratio");
|
|
5124
5132
|
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
5133
|
}
|
|
5126
5134
|
/**
|
|
@@ -5346,7 +5354,7 @@ class je {
|
|
|
5346
5354
|
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
5355
|
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(b, w);
|
|
5348
5356
|
for (const g of L) {
|
|
5349
|
-
const _ = (g[0] - b[0]) * e.ratio, P = (g[1] - b[3]) * e.ratio,
|
|
5357
|
+
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
5358
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5351
5359
|
}
|
|
5352
5360
|
} catch (d) {
|
|
@@ -5395,10 +5403,10 @@ class je {
|
|
|
5395
5403
|
});
|
|
5396
5404
|
}
|
|
5397
5405
|
}
|
|
5398
|
-
class
|
|
5406
|
+
class ne {
|
|
5399
5407
|
}
|
|
5400
5408
|
// 顶点渲染
|
|
5401
|
-
|
|
5409
|
+
de(ne, "vertexSchema", `
|
|
5402
5410
|
//canvas 坐标系上的坐标 (x, y)
|
|
5403
5411
|
attribute vec2 a_position; //像素坐标
|
|
5404
5412
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -5413,7 +5421,7 @@ pe(ce, "vertexSchema", `
|
|
|
5413
5421
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
5414
5422
|
v_texCoord = a_texCoord;
|
|
5415
5423
|
}`), // 类如风、流等u v双变量片元渲染
|
|
5416
|
-
|
|
5424
|
+
de(ne, "uvFragmentSchema", `
|
|
5417
5425
|
precision mediump float;
|
|
5418
5426
|
uniform sampler2D u_image;
|
|
5419
5427
|
uniform vec2 u_range_u_v;
|
|
@@ -5433,7 +5441,7 @@ pe(ce, "uvFragmentSchema", `
|
|
|
5433
5441
|
|
|
5434
5442
|
gl_FragColor = color;
|
|
5435
5443
|
}`), // 类如浪、气压等单变量片元渲染
|
|
5436
|
-
|
|
5444
|
+
de(ne, "fragmentSchema", `
|
|
5437
5445
|
precision mediump float;
|
|
5438
5446
|
uniform sampler2D u_image; // 灰度
|
|
5439
5447
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -5444,9 +5452,9 @@ pe(ce, "fragmentSchema", `
|
|
|
5444
5452
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
5445
5453
|
gl_FragColor = color;
|
|
5446
5454
|
}`);
|
|
5447
|
-
class
|
|
5455
|
+
class Te {
|
|
5448
5456
|
}
|
|
5449
|
-
|
|
5457
|
+
de(Te, "vertexSchema", `
|
|
5450
5458
|
precision mediump float;
|
|
5451
5459
|
|
|
5452
5460
|
attribute float a_index; // 索引
|
|
@@ -5470,7 +5478,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5470
5478
|
gl_PointSize = 1.0;
|
|
5471
5479
|
// gl_PointSize = u_point;
|
|
5472
5480
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
5473
|
-
}`),
|
|
5481
|
+
}`), de(Te, "fragmentSchema", `
|
|
5474
5482
|
precision mediump float;
|
|
5475
5483
|
|
|
5476
5484
|
uniform sampler2D u_factor;
|
|
@@ -5492,7 +5500,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5492
5500
|
|
|
5493
5501
|
float f = 1.0 - uv.b;
|
|
5494
5502
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
5495
|
-
}`),
|
|
5503
|
+
}`), de(Te, "quadVertSchema", `
|
|
5496
5504
|
precision mediump float;
|
|
5497
5505
|
|
|
5498
5506
|
attribute vec2 a_pos;
|
|
@@ -5502,7 +5510,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5502
5510
|
void main() {
|
|
5503
5511
|
v_tex_pos = a_pos;
|
|
5504
5512
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
5505
|
-
}`),
|
|
5513
|
+
}`), de(Te, "screenFragmentSchema", `
|
|
5506
5514
|
precision mediump float;
|
|
5507
5515
|
|
|
5508
5516
|
uniform sampler2D u_screen;
|
|
@@ -5514,7 +5522,7 @@ pe(Pe, "vertexSchema", `
|
|
|
5514
5522
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
5515
5523
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
5516
5524
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
5517
|
-
}`),
|
|
5525
|
+
}`), de(Te, "updateFragmentSchema", `
|
|
5518
5526
|
precision mediump float;
|
|
5519
5527
|
|
|
5520
5528
|
uniform sampler2D u_particles;
|
|
@@ -5754,7 +5762,7 @@ const ul = {
|
|
|
5754
5762
|
function fl(t, e, o, i, a, r) {
|
|
5755
5763
|
return null;
|
|
5756
5764
|
}
|
|
5757
|
-
const yl = /* @__PURE__ */
|
|
5765
|
+
const yl = /* @__PURE__ */ q(gl, [["render", fl]]);
|
|
5758
5766
|
const bl = {
|
|
5759
5767
|
name: "IdmWindParticle",
|
|
5760
5768
|
props: {
|
|
@@ -5862,7 +5870,7 @@ const bl = {
|
|
|
5862
5870
|
[1, "rgb(91, 136, 161)"]
|
|
5863
5871
|
];
|
|
5864
5872
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5865
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5873
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
5866
5874
|
this.program = e, this.aPositionBuffer = o;
|
|
5867
5875
|
}
|
|
5868
5876
|
this.handleParticleSetup();
|
|
@@ -5876,11 +5884,11 @@ const bl = {
|
|
|
5876
5884
|
];
|
|
5877
5885
|
this.wrapper = this.webgl.bindParticle(
|
|
5878
5886
|
this.particleContext,
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5887
|
+
Te.vertexSchema,
|
|
5888
|
+
Te.fragmentSchema,
|
|
5889
|
+
Te.quadVertSchema,
|
|
5890
|
+
Te.screenFragmentSchema,
|
|
5891
|
+
Te.updateFragmentSchema
|
|
5884
5892
|
), 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
5893
|
}
|
|
5886
5894
|
},
|
|
@@ -5935,9 +5943,9 @@ function xl(t, e, o, i, a, r) {
|
|
|
5935
5943
|
s("span", null, "40", -1),
|
|
5936
5944
|
s("span", null, "60", -1)
|
|
5937
5945
|
]), 4)
|
|
5938
|
-
])) :
|
|
5946
|
+
])) : R("", !0);
|
|
5939
5947
|
}
|
|
5940
|
-
const vl = /* @__PURE__ */
|
|
5948
|
+
const vl = /* @__PURE__ */ q(bl, [["render", xl]]), _l = {
|
|
5941
5949
|
name: "IdmCurrent",
|
|
5942
5950
|
props: {
|
|
5943
5951
|
map: {
|
|
@@ -6095,7 +6103,7 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
6095
6103
|
function kl(t, e, o, i, a, r) {
|
|
6096
6104
|
return null;
|
|
6097
6105
|
}
|
|
6098
|
-
const zl = /* @__PURE__ */
|
|
6106
|
+
const zl = /* @__PURE__ */ q(_l, [["render", kl]]);
|
|
6099
6107
|
const Ll = {
|
|
6100
6108
|
name: "IdmCurrentParticle",
|
|
6101
6109
|
props: {
|
|
@@ -6195,7 +6203,7 @@ const Ll = {
|
|
|
6195
6203
|
[1, "rgb(195,194,194)"]
|
|
6196
6204
|
];
|
|
6197
6205
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6198
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6206
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
6199
6207
|
this.program = e, this.aPositionBuffer = o;
|
|
6200
6208
|
}
|
|
6201
6209
|
this.handleParticleSetup();
|
|
@@ -6210,11 +6218,11 @@ const Ll = {
|
|
|
6210
6218
|
];
|
|
6211
6219
|
this.wrapper = this.webgl.bindParticle(
|
|
6212
6220
|
this.particleContext,
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6221
|
+
Te.vertexSchema,
|
|
6222
|
+
Te.fragmentSchema,
|
|
6223
|
+
Te.quadVertSchema,
|
|
6224
|
+
Te.screenFragmentSchema,
|
|
6225
|
+
Te.updateFragmentSchema
|
|
6218
6226
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
6219
6227
|
...this.wrapper,
|
|
6220
6228
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -6272,9 +6280,9 @@ function Cl(t, e, o, i, a, r) {
|
|
|
6272
6280
|
s("span", null, "2", -1),
|
|
6273
6281
|
s("span", null, "3.2", -1)
|
|
6274
6282
|
]), 4)
|
|
6275
|
-
])) :
|
|
6283
|
+
])) : R("", !0);
|
|
6276
6284
|
}
|
|
6277
|
-
const Tl = /* @__PURE__ */
|
|
6285
|
+
const Tl = /* @__PURE__ */ q(Ll, [["render", Cl]]);
|
|
6278
6286
|
const Sl = {
|
|
6279
6287
|
name: "IdmSigWave",
|
|
6280
6288
|
props: {
|
|
@@ -6367,7 +6375,7 @@ const Sl = {
|
|
|
6367
6375
|
//13
|
|
6368
6376
|
];
|
|
6369
6377
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6370
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6378
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6371
6379
|
this.program = e, this.aPositionBuffer = o;
|
|
6372
6380
|
}
|
|
6373
6381
|
},
|
|
@@ -6396,9 +6404,9 @@ function Il(t, e, o, i, a, r) {
|
|
|
6396
6404
|
s("span", null, "6", -1),
|
|
6397
6405
|
s("span", null, "9", -1)
|
|
6398
6406
|
]), 4)
|
|
6399
|
-
])) :
|
|
6407
|
+
])) : R("", !0);
|
|
6400
6408
|
}
|
|
6401
|
-
const Dl = /* @__PURE__ */
|
|
6409
|
+
const Dl = /* @__PURE__ */ q(Sl, [["render", Il], ["__scopeId", "data-v-fa73c319"]]), Al = {
|
|
6402
6410
|
name: "IdmSigWaveHeight",
|
|
6403
6411
|
props: {
|
|
6404
6412
|
map: {
|
|
@@ -6546,7 +6554,7 @@ const Dl = /* @__PURE__ */ X(Sl, [["render", Il], ["__scopeId", "data-v-fa73c319
|
|
|
6546
6554
|
function Rl(t, e, o, i, a, r) {
|
|
6547
6555
|
return null;
|
|
6548
6556
|
}
|
|
6549
|
-
const Ol = /* @__PURE__ */
|
|
6557
|
+
const Ol = /* @__PURE__ */ q(Al, [["render", Rl]]);
|
|
6550
6558
|
const Bl = {
|
|
6551
6559
|
name: "IdmSwell",
|
|
6552
6560
|
props: {
|
|
@@ -6639,7 +6647,7 @@ const Bl = {
|
|
|
6639
6647
|
//13
|
|
6640
6648
|
];
|
|
6641
6649
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6642
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6650
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6643
6651
|
this.program = e, this.aPositionBuffer = o;
|
|
6644
6652
|
}
|
|
6645
6653
|
},
|
|
@@ -6668,9 +6676,9 @@ function El(t, e, o, i, a, r) {
|
|
|
6668
6676
|
s("span", null, "6", -1),
|
|
6669
6677
|
s("span", null, "9", -1)
|
|
6670
6678
|
]), 4)
|
|
6671
|
-
])) :
|
|
6679
|
+
])) : R("", !0);
|
|
6672
6680
|
}
|
|
6673
|
-
const jl = /* @__PURE__ */
|
|
6681
|
+
const jl = /* @__PURE__ */ q(Bl, [["render", El], ["__scopeId", "data-v-d47b8b5c"]]), Fl = {
|
|
6674
6682
|
name: "IdmPrmsl",
|
|
6675
6683
|
props: {
|
|
6676
6684
|
map: {
|
|
@@ -6832,7 +6840,7 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6832
6840
|
location: "left"
|
|
6833
6841
|
}, {
|
|
6834
6842
|
activator: f(({ props: u }) => [
|
|
6835
|
-
p(l,
|
|
6843
|
+
p(l, N(u, {
|
|
6836
6844
|
"min-width": "32",
|
|
6837
6845
|
width: "32",
|
|
6838
6846
|
height: "32",
|
|
@@ -6850,9 +6858,9 @@ function Gl(t, e, o, i, a, r) {
|
|
|
6850
6858
|
_: 1
|
|
6851
6859
|
})
|
|
6852
6860
|
], 4)
|
|
6853
|
-
])) :
|
|
6861
|
+
])) : R("", !0);
|
|
6854
6862
|
}
|
|
6855
|
-
const Ul = /* @__PURE__ */
|
|
6863
|
+
const Ul = /* @__PURE__ */ q(Fl, [["render", Gl]]);
|
|
6856
6864
|
const Wl = {
|
|
6857
6865
|
name: "IdmIceEdge",
|
|
6858
6866
|
props: {
|
|
@@ -6938,7 +6946,7 @@ const Wl = {
|
|
|
6938
6946
|
// 100%
|
|
6939
6947
|
];
|
|
6940
6948
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6941
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6949
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6942
6950
|
this.program = e, this.aPositionBuffer = o;
|
|
6943
6951
|
}
|
|
6944
6952
|
},
|
|
@@ -6972,9 +6980,9 @@ function Zl(t, e, o, i, a, r) {
|
|
|
6972
6980
|
s("span", null, "90", -1),
|
|
6973
6981
|
s("span", null, null, -1)
|
|
6974
6982
|
]), 4)
|
|
6975
|
-
])) :
|
|
6983
|
+
])) : R("", !0);
|
|
6976
6984
|
}
|
|
6977
|
-
const Yl = /* @__PURE__ */
|
|
6985
|
+
const Yl = /* @__PURE__ */ q(Wl, [["render", Zl]]);
|
|
6978
6986
|
const ql = {
|
|
6979
6987
|
name: "IdmCover",
|
|
6980
6988
|
props: {
|
|
@@ -7051,7 +7059,7 @@ const ql = {
|
|
|
7051
7059
|
// 100%
|
|
7052
7060
|
];
|
|
7053
7061
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7054
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7062
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7055
7063
|
this.program = e, this.aPositionBuffer = o;
|
|
7056
7064
|
}
|
|
7057
7065
|
},
|
|
@@ -7079,9 +7087,9 @@ function $l(t, e, o, i, a, r) {
|
|
|
7079
7087
|
s("span", null, "80", -1),
|
|
7080
7088
|
s("span", null, "100", -1)
|
|
7081
7089
|
]), 4)
|
|
7082
|
-
])) :
|
|
7090
|
+
])) : R("", !0);
|
|
7083
7091
|
}
|
|
7084
|
-
const Kl = /* @__PURE__ */
|
|
7092
|
+
const Kl = /* @__PURE__ */ q(ql, [["render", $l], ["__scopeId", "data-v-dcedee39"]]);
|
|
7085
7093
|
const Jl = {
|
|
7086
7094
|
name: "IdmThickness",
|
|
7087
7095
|
props: {
|
|
@@ -7165,7 +7173,7 @@ const Jl = {
|
|
|
7165
7173
|
// 4m
|
|
7166
7174
|
];
|
|
7167
7175
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7168
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7176
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7169
7177
|
this.program = e, this.aPositionBuffer = o;
|
|
7170
7178
|
}
|
|
7171
7179
|
},
|
|
@@ -7194,9 +7202,9 @@ function en(t, e, o, i, a, r) {
|
|
|
7194
7202
|
s("span", null, "2", -1),
|
|
7195
7203
|
s("span", null, "3", -1)
|
|
7196
7204
|
]), 4)
|
|
7197
|
-
])) :
|
|
7205
|
+
])) : R("", !0);
|
|
7198
7206
|
}
|
|
7199
|
-
const tn = /* @__PURE__ */
|
|
7207
|
+
const tn = /* @__PURE__ */ q(Jl, [["render", en]]);
|
|
7200
7208
|
const on = {
|
|
7201
7209
|
name: "IdmPrecip3h",
|
|
7202
7210
|
props: {
|
|
@@ -7281,7 +7289,7 @@ const on = {
|
|
|
7281
7289
|
[1, "rgba(197,5,58,0.8)"]
|
|
7282
7290
|
];
|
|
7283
7291
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7284
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7292
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7285
7293
|
this.program = e, this.aPositionBuffer = o;
|
|
7286
7294
|
}
|
|
7287
7295
|
},
|
|
@@ -7311,9 +7319,9 @@ function rn(t, e, o, i, a, r) {
|
|
|
7311
7319
|
s("span", null, "20", -1),
|
|
7312
7320
|
s("span", null, "30", -1)
|
|
7313
7321
|
]), 4)
|
|
7314
|
-
])) :
|
|
7322
|
+
])) : R("", !0);
|
|
7315
7323
|
}
|
|
7316
|
-
const sn = /* @__PURE__ */
|
|
7324
|
+
const sn = /* @__PURE__ */ q(on, [["render", rn]]);
|
|
7317
7325
|
const ln = {
|
|
7318
7326
|
name: "IdmVisibility",
|
|
7319
7327
|
props: {
|
|
@@ -7388,7 +7396,7 @@ const ln = {
|
|
|
7388
7396
|
[1, "rgba(144,144,144,0)"]
|
|
7389
7397
|
];
|
|
7390
7398
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7391
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7399
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7392
7400
|
this.program = e, this.aPositionBuffer = o;
|
|
7393
7401
|
}
|
|
7394
7402
|
},
|
|
@@ -7416,9 +7424,9 @@ function cn(t, e, o, i, a, r) {
|
|
|
7416
7424
|
s("span", null, "3", -1),
|
|
7417
7425
|
s("span", null, "9", -1)
|
|
7418
7426
|
]), 4)
|
|
7419
|
-
])) :
|
|
7427
|
+
])) : R("", !0);
|
|
7420
7428
|
}
|
|
7421
|
-
const mn = /* @__PURE__ */
|
|
7429
|
+
const mn = /* @__PURE__ */ q(ln, [["render", cn]]);
|
|
7422
7430
|
const hn = {
|
|
7423
7431
|
name: "IdmWaterTemp",
|
|
7424
7432
|
props: {
|
|
@@ -7496,7 +7504,7 @@ const hn = {
|
|
|
7496
7504
|
//
|
|
7497
7505
|
];
|
|
7498
7506
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7499
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7507
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7500
7508
|
this.program = e, this.aPositionBuffer = o;
|
|
7501
7509
|
}
|
|
7502
7510
|
},
|
|
@@ -7524,9 +7532,9 @@ function pn(t, e, o, i, a, r) {
|
|
|
7524
7532
|
s("span", null, "30", -1),
|
|
7525
7533
|
s("span", null, "40", -1)
|
|
7526
7534
|
]), 4)
|
|
7527
|
-
])) :
|
|
7535
|
+
])) : R("", !0);
|
|
7528
7536
|
}
|
|
7529
|
-
const un = /* @__PURE__ */
|
|
7537
|
+
const un = /* @__PURE__ */ q(hn, [["render", pn]]);
|
|
7530
7538
|
const gn = {
|
|
7531
7539
|
name: "IdmTemp",
|
|
7532
7540
|
props: {
|
|
@@ -7615,7 +7623,7 @@ const gn = {
|
|
|
7615
7623
|
[1, "rgb(138, 43, 10)"]
|
|
7616
7624
|
];
|
|
7617
7625
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7618
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7626
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7619
7627
|
this.program = e, this.aPositionBuffer = o;
|
|
7620
7628
|
}
|
|
7621
7629
|
},
|
|
@@ -7645,9 +7653,9 @@ function yn(t, e, o, i, a, r) {
|
|
|
7645
7653
|
s("span", null, "30", -1),
|
|
7646
7654
|
s("span", null, "40", -1)
|
|
7647
7655
|
]), 4)
|
|
7648
|
-
])) :
|
|
7656
|
+
])) : R("", !0);
|
|
7649
7657
|
}
|
|
7650
|
-
const bn = /* @__PURE__ */
|
|
7658
|
+
const bn = /* @__PURE__ */ q(gn, [["render", yn]]);
|
|
7651
7659
|
const wn = {
|
|
7652
7660
|
name: "IdmGlLayer",
|
|
7653
7661
|
components: {
|
|
@@ -7695,6 +7703,10 @@ const wn = {
|
|
|
7695
7703
|
type: Number,
|
|
7696
7704
|
default: 60
|
|
7697
7705
|
},
|
|
7706
|
+
paddingTop: {
|
|
7707
|
+
type: Number,
|
|
7708
|
+
default: 48
|
|
7709
|
+
},
|
|
7698
7710
|
menuToggle: {
|
|
7699
7711
|
type: Object,
|
|
7700
7712
|
default: {}
|
|
@@ -7903,7 +7915,7 @@ const wn = {
|
|
|
7903
7915
|
},
|
|
7904
7916
|
async fetchModels() {
|
|
7905
7917
|
this.models = {};
|
|
7906
|
-
const t = await
|
|
7918
|
+
const t = await De.get(`${this.gateway}/api/arc/meteo2/models2`, {
|
|
7907
7919
|
headers: {
|
|
7908
7920
|
Authorization: this.defaultMeteoToken
|
|
7909
7921
|
}
|
|
@@ -7917,17 +7929,17 @@ const wn = {
|
|
|
7917
7929
|
if (this.map) {
|
|
7918
7930
|
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
7931
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
7920
|
-
const P = To.WEATHER_LAYERS.find((
|
|
7932
|
+
const P = To.WEATHER_LAYERS.find((B) => {
|
|
7921
7933
|
var I;
|
|
7922
|
-
return ((I =
|
|
7934
|
+
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
7923
7935
|
});
|
|
7924
7936
|
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
7937
|
}
|
|
7926
7938
|
if (this.weatherWeight > 0) {
|
|
7927
7939
|
let P = this.weatherWeight;
|
|
7928
7940
|
if (P > 0) {
|
|
7929
|
-
const
|
|
7930
|
-
`${
|
|
7941
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await De.get(
|
|
7942
|
+
`${B}/api/arc/weather/layers2/links?l=${P}&v=${this.forecastModel}&z=${L}&bbox=${_}&t=${this.realTime}`,
|
|
7931
7943
|
{
|
|
7932
7944
|
headers: {
|
|
7933
7945
|
Authorization: this.defaultMeteoToken
|
|
@@ -7938,7 +7950,7 @@ const wn = {
|
|
|
7938
7950
|
const C = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
|
|
7939
7951
|
for (const T in C)
|
|
7940
7952
|
k.push(
|
|
7941
|
-
|
|
7953
|
+
De.get(C[T], {
|
|
7942
7954
|
headers: {
|
|
7943
7955
|
Authorization: this.defaultMeteoToken,
|
|
7944
7956
|
key: T
|
|
@@ -7950,9 +7962,9 @@ const wn = {
|
|
|
7950
7962
|
);
|
|
7951
7963
|
const z = await Promise.all(k);
|
|
7952
7964
|
this.weatherLayers = {}, z.map((T) => {
|
|
7953
|
-
var
|
|
7954
|
-
const v = ((
|
|
7955
|
-
let D = (
|
|
7965
|
+
var F, V, Y, Z;
|
|
7966
|
+
const v = ((F = T == null ? void 0 : T.data) == null ? void 0 : F.data) || (T == null ? void 0 : T.data);
|
|
7967
|
+
let D = (Y = (V = T == null ? void 0 : T.config) == null ? void 0 : V.headers) == null ? void 0 : Y.key;
|
|
7956
7968
|
D && v && (this.weatherLayers[D] = {
|
|
7957
7969
|
raw: v,
|
|
7958
7970
|
type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
@@ -8036,50 +8048,50 @@ const wn = {
|
|
|
8036
8048
|
let e = 0, o = 0;
|
|
8037
8049
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8038
8050
|
if (i && a) {
|
|
8039
|
-
const w =
|
|
8051
|
+
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
8052
|
for (const P in this.weatherLayers) {
|
|
8041
|
-
let
|
|
8053
|
+
let B = !1;
|
|
8042
8054
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
8043
8055
|
let I = [];
|
|
8044
8056
|
if (P === "swell") {
|
|
8045
|
-
|
|
8057
|
+
B = !0;
|
|
8046
8058
|
const C = ((c = this.weatherLayers[P]) == null ? void 0 : c.direction) || {};
|
|
8047
8059
|
for (const z in C)
|
|
8048
8060
|
if (z > g && z < _ && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8049
8061
|
const T = C[z].lng;
|
|
8050
8062
|
w > L ? T.forEach((v, D) => {
|
|
8051
|
-
var
|
|
8063
|
+
var F, V, Y, Z, J, Q;
|
|
8052
8064
|
if (a < 2) {
|
|
8053
8065
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8054
|
-
const
|
|
8055
|
-
val: ((
|
|
8056
|
-
spd: (
|
|
8066
|
+
const K = H.point([v, z], {
|
|
8067
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8068
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8057
8069
|
});
|
|
8058
|
-
I.push(
|
|
8070
|
+
I.push(K);
|
|
8059
8071
|
}
|
|
8060
8072
|
} 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: (
|
|
8073
|
+
const K = H.point([v, z], {
|
|
8074
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8075
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8064
8076
|
});
|
|
8065
|
-
I.push(
|
|
8077
|
+
I.push(K);
|
|
8066
8078
|
}
|
|
8067
8079
|
}) : T.forEach((v, D) => {
|
|
8068
|
-
var
|
|
8080
|
+
var F, V, Y, Z, J, Q;
|
|
8069
8081
|
if (w < 2) {
|
|
8070
8082
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8071
|
-
const
|
|
8072
|
-
val: ((
|
|
8073
|
-
spd: (
|
|
8083
|
+
const K = H.point([v, z], {
|
|
8084
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8085
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8074
8086
|
});
|
|
8075
|
-
I.push(
|
|
8087
|
+
I.push(K);
|
|
8076
8088
|
}
|
|
8077
8089
|
} 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: (
|
|
8090
|
+
const K = H.point([v, z], {
|
|
8091
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8092
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8081
8093
|
});
|
|
8082
|
-
I.push(
|
|
8094
|
+
I.push(K);
|
|
8083
8095
|
}
|
|
8084
8096
|
});
|
|
8085
8097
|
}
|
|
@@ -8106,44 +8118,44 @@ const wn = {
|
|
|
8106
8118
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8107
8119
|
}
|
|
8108
8120
|
} else if (P === "current") {
|
|
8109
|
-
|
|
8121
|
+
B = !0;
|
|
8110
8122
|
const C = ((u = this.weatherLayers[P]) == null ? void 0 : u.direction) || {};
|
|
8111
8123
|
for (const z in C)
|
|
8112
8124
|
if (z > g && z < _ && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8113
8125
|
const T = C[z].lng;
|
|
8114
8126
|
w > L ? T.forEach((v, D) => {
|
|
8115
|
-
var
|
|
8127
|
+
var F, V, Y, Z, J, Q;
|
|
8116
8128
|
if (a < 2) {
|
|
8117
8129
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8118
|
-
const
|
|
8119
|
-
val: ((
|
|
8120
|
-
spd: (
|
|
8130
|
+
const K = H.point([v, z], {
|
|
8131
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8132
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8121
8133
|
});
|
|
8122
|
-
I.push(
|
|
8134
|
+
I.push(K);
|
|
8123
8135
|
}
|
|
8124
8136
|
} 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: (
|
|
8137
|
+
const K = H.point([v, z], {
|
|
8138
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8139
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8128
8140
|
});
|
|
8129
|
-
I.push(
|
|
8141
|
+
I.push(K);
|
|
8130
8142
|
}
|
|
8131
8143
|
}) : T.forEach((v, D) => {
|
|
8132
|
-
var
|
|
8144
|
+
var F, V, Y, Z, J, Q;
|
|
8133
8145
|
if (w < 2) {
|
|
8134
8146
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8135
|
-
const
|
|
8136
|
-
val: ((
|
|
8137
|
-
spd: (
|
|
8147
|
+
const K = H.point([v, z], {
|
|
8148
|
+
val: ((F = C[z].val) == null ? void 0 : F[D]) || ((V = C[z].dir) == null ? void 0 : V[D]),
|
|
8149
|
+
spd: (Y = C[z].spd) == null ? void 0 : Y[D]
|
|
8138
8150
|
});
|
|
8139
|
-
I.push(
|
|
8151
|
+
I.push(K);
|
|
8140
8152
|
}
|
|
8141
8153
|
} 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: (
|
|
8154
|
+
const K = H.point([v, z], {
|
|
8155
|
+
val: ((Z = C[z].val) == null ? void 0 : Z[D]) || ((J = C[z].dir) == null ? void 0 : J[D]),
|
|
8156
|
+
spd: (Q = C[z].spd) == null ? void 0 : Q[D]
|
|
8145
8157
|
});
|
|
8146
|
-
I.push(
|
|
8158
|
+
I.push(K);
|
|
8147
8159
|
}
|
|
8148
8160
|
});
|
|
8149
8161
|
}
|
|
@@ -8154,9 +8166,9 @@ const wn = {
|
|
|
8154
8166
|
const T = [];
|
|
8155
8167
|
for (const v in (d = k.raw) == null ? void 0 : d.Polygon) {
|
|
8156
8168
|
const D = k.raw.Polygon[v];
|
|
8157
|
-
for (const
|
|
8169
|
+
for (const F of D)
|
|
8158
8170
|
T.push(
|
|
8159
|
-
H.polygon(
|
|
8171
|
+
H.polygon(F, {
|
|
8160
8172
|
val: Number(v)
|
|
8161
8173
|
})
|
|
8162
8174
|
);
|
|
@@ -8167,41 +8179,41 @@ const wn = {
|
|
|
8167
8179
|
I = I.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8168
8180
|
}
|
|
8169
8181
|
} else if (P === "wind") {
|
|
8170
|
-
|
|
8182
|
+
B = !0;
|
|
8171
8183
|
const C = this.weatherLayers.wind.raw;
|
|
8172
8184
|
for (const k in C)
|
|
8173
8185
|
if (k > g && k < _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8174
8186
|
const z = C[k].lng;
|
|
8175
8187
|
w > L ? z.forEach((T, v) => {
|
|
8176
|
-
var D,
|
|
8188
|
+
var D, F, V, Y;
|
|
8177
8189
|
if (a < 2) {
|
|
8178
8190
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
8179
8191
|
const Z = H.point([T, k], {
|
|
8180
|
-
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((
|
|
8192
|
+
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((F = C[k].dir) == null ? void 0 : F[v]),
|
|
8181
8193
|
spd: C[k].spd[v]
|
|
8182
8194
|
});
|
|
8183
8195
|
I.push(Z);
|
|
8184
8196
|
}
|
|
8185
8197
|
} else if ((T >= w && T <= 180 || T >= -180 && T <= L) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8186
8198
|
const Z = H.point([T, k], {
|
|
8187
|
-
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((
|
|
8199
|
+
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8188
8200
|
spd: C[k].spd[v]
|
|
8189
8201
|
});
|
|
8190
8202
|
I.push(Z);
|
|
8191
8203
|
}
|
|
8192
8204
|
}) : z.forEach((T, v) => {
|
|
8193
|
-
var D,
|
|
8205
|
+
var D, F, V, Y;
|
|
8194
8206
|
if (a < 2) {
|
|
8195
8207
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
8196
8208
|
const Z = H.point([T, k], {
|
|
8197
|
-
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((
|
|
8209
|
+
dir: ((D = C[k].val) == null ? void 0 : D[v]) || ((F = C[k].dir) == null ? void 0 : F[v]),
|
|
8198
8210
|
spd: C[k].spd[v]
|
|
8199
8211
|
});
|
|
8200
8212
|
I.push(Z);
|
|
8201
8213
|
}
|
|
8202
8214
|
} else if (T >= w && T <= L && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8203
8215
|
const Z = H.point([T, k], {
|
|
8204
|
-
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((
|
|
8216
|
+
dir: ((V = C[k].val) == null ? void 0 : V[v]) || ((Y = C[k].dir) == null ? void 0 : Y[v]),
|
|
8205
8217
|
spd: C[k].spd[v]
|
|
8206
8218
|
});
|
|
8207
8219
|
I.push(Z);
|
|
@@ -8213,7 +8225,7 @@ const wn = {
|
|
|
8213
8225
|
if (this.weatherLayers[P].data)
|
|
8214
8226
|
I = this.weatherLayers[P].data;
|
|
8215
8227
|
else {
|
|
8216
|
-
|
|
8228
|
+
B = !0;
|
|
8217
8229
|
const C = this.weatherLayers[P].raw;
|
|
8218
8230
|
if (C) {
|
|
8219
8231
|
const k = [];
|
|
@@ -8252,7 +8264,7 @@ const wn = {
|
|
|
8252
8264
|
if (this.weatherLayers[P].data)
|
|
8253
8265
|
I = this.weatherLayers[P].data;
|
|
8254
8266
|
else {
|
|
8255
|
-
|
|
8267
|
+
B = !0;
|
|
8256
8268
|
const C = this.weatherLayers[P].raw;
|
|
8257
8269
|
if (C) {
|
|
8258
8270
|
const k = [];
|
|
@@ -8267,7 +8279,7 @@ const wn = {
|
|
|
8267
8279
|
}
|
|
8268
8280
|
for (const z in C.Point)
|
|
8269
8281
|
C.Point[z].lng.forEach((T, v) => {
|
|
8270
|
-
T =
|
|
8282
|
+
T = X.convertToStdLng(T), k.push(
|
|
8271
8283
|
H.point([T, z], {
|
|
8272
8284
|
val: C.Point[z].val[v],
|
|
8273
8285
|
type: C.Point[z].type[v]
|
|
@@ -8279,7 +8291,7 @@ const wn = {
|
|
|
8279
8291
|
}
|
|
8280
8292
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
8281
8293
|
}
|
|
8282
|
-
I.length && (this.weatherLayers[P].data = H.featureCollection(I)),
|
|
8294
|
+
I.length && (this.weatherLayers[P].data = H.featureCollection(I)), B && (this.weatherLayers[P].version = Math.random() + 1);
|
|
8283
8295
|
}
|
|
8284
8296
|
}
|
|
8285
8297
|
}
|
|
@@ -8290,7 +8302,7 @@ const wn = {
|
|
|
8290
8302
|
this.handleDrawWeather4Json();
|
|
8291
8303
|
},
|
|
8292
8304
|
handleBboxClip(t, e) {
|
|
8293
|
-
const o = [], i =
|
|
8305
|
+
const o = [], i = X.convertToStdLng(e._sw.lng), a = X.convertToStdLng(e._ne.lng);
|
|
8294
8306
|
return t.features.forEach((r) => {
|
|
8295
8307
|
if (r.geometry.type !== "Point")
|
|
8296
8308
|
if (i > a) {
|
|
@@ -8322,19 +8334,19 @@ const wn = {
|
|
|
8322
8334
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8323
8335
|
}, 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
8336
|
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"),
|
|
8337
|
+
var pe, ie, ce, ue, me, he, A, ee, ye, xe, Le, Pe, ve, Me, Ce;
|
|
8338
|
+
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
8339
|
return y(), M("div", xn, [
|
|
8328
8340
|
s("div", {
|
|
8329
8341
|
class: "menu-bar-box transition pa-1",
|
|
8330
|
-
style: ae({ top: o.top +
|
|
8342
|
+
style: ae({ top: o.top + o.paddingTop + 46 + "px", right: a.right + "px" })
|
|
8331
8343
|
}, [
|
|
8332
8344
|
p(c, {
|
|
8333
8345
|
text: t.$t("weather.weatherLayers"),
|
|
8334
8346
|
location: "left"
|
|
8335
8347
|
}, {
|
|
8336
8348
|
activator: f(({ props: G }) => [
|
|
8337
|
-
p(l,
|
|
8349
|
+
p(l, N(G, {
|
|
8338
8350
|
"min-width": "32",
|
|
8339
8351
|
width: "32",
|
|
8340
8352
|
height: "32",
|
|
@@ -8361,7 +8373,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8361
8373
|
location: "left"
|
|
8362
8374
|
}, {
|
|
8363
8375
|
activator: f(({ props: G }) => [
|
|
8364
|
-
p(l,
|
|
8376
|
+
p(l, N(G, {
|
|
8365
8377
|
"min-width": "32",
|
|
8366
8378
|
width: "32",
|
|
8367
8379
|
height: "32",
|
|
@@ -8378,7 +8390,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8378
8390
|
_: 1
|
|
8379
8391
|
})
|
|
8380
8392
|
], 4),
|
|
8381
|
-
a.legendToggle ? (y(),
|
|
8393
|
+
a.legendToggle ? (y(), O(w, {
|
|
8382
8394
|
key: 0,
|
|
8383
8395
|
width: "435",
|
|
8384
8396
|
elevation: "16",
|
|
@@ -8391,7 +8403,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8391
8403
|
e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
8392
8404
|
p(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
8393
8405
|
default: f(() => [
|
|
8394
|
-
(y(!0), M(
|
|
8406
|
+
(y(!0), M(we, null, _e(a.legend.barbs, (G, te) => (y(), O(n, {
|
|
8395
8407
|
key: G,
|
|
8396
8408
|
cols: "6",
|
|
8397
8409
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -8423,7 +8435,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8423
8435
|
style: { width: "100px" }
|
|
8424
8436
|
}, {
|
|
8425
8437
|
default: f(() => [
|
|
8426
|
-
(y(!0), M(
|
|
8438
|
+
(y(!0), M(we, null, _e(a.legend.sigWaveHeight, (G, te) => (y(), O(n, {
|
|
8427
8439
|
key: te,
|
|
8428
8440
|
cols: "12",
|
|
8429
8441
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -8455,7 +8467,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8455
8467
|
style: { width: "110px" }
|
|
8456
8468
|
}, {
|
|
8457
8469
|
default: f(() => [
|
|
8458
|
-
(y(!0), M(
|
|
8470
|
+
(y(!0), M(we, null, _e(a.legend.current, (G, te) => (y(), O(n, {
|
|
8459
8471
|
key: te,
|
|
8460
8472
|
cols: "12",
|
|
8461
8473
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -8482,8 +8494,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8482
8494
|
})
|
|
8483
8495
|
]),
|
|
8484
8496
|
_: 1
|
|
8485
|
-
}, 8, ["style"])) :
|
|
8486
|
-
])) :
|
|
8497
|
+
}, 8, ["style"])) : R("", !0)
|
|
8498
|
+
])) : R("", !0),
|
|
8487
8499
|
s("div", {
|
|
8488
8500
|
class: Ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
8489
8501
|
style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
@@ -8530,7 +8542,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8530
8542
|
style: { "font-size": "16px !important" }
|
|
8531
8543
|
}, {
|
|
8532
8544
|
default: f(() => [
|
|
8533
|
-
|
|
8545
|
+
$(m(t.$t("weather.overlays")), 1)
|
|
8534
8546
|
]),
|
|
8535
8547
|
_: 1
|
|
8536
8548
|
})
|
|
@@ -8539,7 +8551,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8539
8551
|
}),
|
|
8540
8552
|
p(d, { class: "py-2" }, {
|
|
8541
8553
|
default: f(() => [
|
|
8542
|
-
(y(!0), M(
|
|
8554
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((G) => G.overlays), (G) => (y(), O(P, {
|
|
8543
8555
|
key: G.key,
|
|
8544
8556
|
modelValue: a.checkList,
|
|
8545
8557
|
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
@@ -8570,7 +8582,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8570
8582
|
style: { "font-size": "16px !important" }
|
|
8571
8583
|
}, {
|
|
8572
8584
|
default: f(() => [
|
|
8573
|
-
|
|
8585
|
+
$(m(t.$t("weather.renders")), 1)
|
|
8574
8586
|
]),
|
|
8575
8587
|
_: 1
|
|
8576
8588
|
})
|
|
@@ -8579,10 +8591,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
8579
8591
|
}),
|
|
8580
8592
|
p(d, { class: "py-2" }, {
|
|
8581
8593
|
default: f(() => [
|
|
8582
|
-
(y(!0), M(
|
|
8594
|
+
(y(!0), M(we, null, _e(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), M(we, {
|
|
8583
8595
|
key: G.key
|
|
8584
8596
|
}, [
|
|
8585
|
-
p(
|
|
8597
|
+
p(B, {
|
|
8586
8598
|
modelValue: a.renderKey,
|
|
8587
8599
|
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
8588
8600
|
label: t.$t(`weather.${G.locale}`),
|
|
@@ -8609,7 +8621,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8609
8621
|
style: { "font-size": "14px" },
|
|
8610
8622
|
"hide-details": ""
|
|
8611
8623
|
}, null, 8, ["modelValue"])
|
|
8612
|
-
])) :
|
|
8624
|
+
])) : R("", !0),
|
|
8613
8625
|
a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), M("div", Rn, [
|
|
8614
8626
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8615
8627
|
p(L, {
|
|
@@ -8624,8 +8636,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
8624
8636
|
height: "20",
|
|
8625
8637
|
"hide-details": ""
|
|
8626
8638
|
}, null, 8, ["modelValue"])
|
|
8627
|
-
])) :
|
|
8628
|
-
a.renderKey === "wave-group" && G.key === "wave-group" ? (y(),
|
|
8639
|
+
])) : R("", !0),
|
|
8640
|
+
a.renderKey === "wave-group" && G.key === "wave-group" ? (y(), O(I, {
|
|
8629
8641
|
key: 2,
|
|
8630
8642
|
modelValue: a.waveToggleValue,
|
|
8631
8643
|
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.waveToggleValue = te),
|
|
@@ -8647,7 +8659,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8647
8659
|
disabled: !a.autoActive
|
|
8648
8660
|
}, {
|
|
8649
8661
|
default: f(() => [
|
|
8650
|
-
|
|
8662
|
+
$(m(t.$t("weather.significant")), 1)
|
|
8651
8663
|
]),
|
|
8652
8664
|
_: 1
|
|
8653
8665
|
}, 8, ["color", "disabled"]),
|
|
@@ -8661,14 +8673,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
8661
8673
|
value: "swell"
|
|
8662
8674
|
}, {
|
|
8663
8675
|
default: f(() => [
|
|
8664
|
-
|
|
8676
|
+
$(m(t.$t("weather.swell")), 1)
|
|
8665
8677
|
]),
|
|
8666
8678
|
_: 1
|
|
8667
8679
|
}, 8, ["color", "disabled"])
|
|
8668
8680
|
]),
|
|
8669
8681
|
_: 1
|
|
8670
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8671
|
-
a.renderKey === "ice-forecast" && G.key === "ice-forecast" ? (y(),
|
|
8682
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0),
|
|
8683
|
+
a.renderKey === "ice-forecast" && G.key === "ice-forecast" ? (y(), O(I, {
|
|
8672
8684
|
key: 3,
|
|
8673
8685
|
modelValue: a.iceToggleValue,
|
|
8674
8686
|
"onUpdate:modelValue": e[7] || (e[7] = (te) => a.iceToggleValue = te),
|
|
@@ -8690,7 +8702,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8690
8702
|
disabled: !a.autoActive
|
|
8691
8703
|
}, {
|
|
8692
8704
|
default: f(() => [
|
|
8693
|
-
|
|
8705
|
+
$(m(t.$t("weather.coverage")), 1)
|
|
8694
8706
|
]),
|
|
8695
8707
|
_: 1
|
|
8696
8708
|
}, 8, ["color", "disabled"]),
|
|
@@ -8704,13 +8716,13 @@ function ic(t, e, o, i, a, r) {
|
|
|
8704
8716
|
value: "ice-thickness"
|
|
8705
8717
|
}, {
|
|
8706
8718
|
default: f(() => [
|
|
8707
|
-
|
|
8719
|
+
$(m(t.$t("weather.thickness")), 1)
|
|
8708
8720
|
]),
|
|
8709
8721
|
_: 1
|
|
8710
8722
|
}, 8, ["color", "disabled"])
|
|
8711
8723
|
]),
|
|
8712
8724
|
_: 1
|
|
8713
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8725
|
+
}, 8, ["modelValue", "disabled"])) : R("", !0)
|
|
8714
8726
|
], 64))), 128))
|
|
8715
8727
|
]),
|
|
8716
8728
|
_: 1
|
|
@@ -8730,7 +8742,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8730
8742
|
style: { "font-size": "16px !important" }
|
|
8731
8743
|
}, {
|
|
8732
8744
|
default: f(() => [
|
|
8733
|
-
|
|
8745
|
+
$(m(t.$t("weather.forecastModel")), 1)
|
|
8734
8746
|
]),
|
|
8735
8747
|
_: 1
|
|
8736
8748
|
})
|
|
@@ -8739,14 +8751,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
8739
8751
|
}),
|
|
8740
8752
|
p(d, { class: "" }, {
|
|
8741
8753
|
default: f(() => {
|
|
8742
|
-
var G, te, Fe,
|
|
8754
|
+
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
8755
|
return [
|
|
8744
8756
|
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((
|
|
8757
|
+
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
8758
|
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 = (
|
|
8759
|
+
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),
|
|
8760
|
+
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),
|
|
8761
|
+
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
8762
|
s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8751
8763
|
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
8764
|
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 +8787,110 @@ function ic(t, e, o, i, a, r) {
|
|
|
8775
8787
|
})
|
|
8776
8788
|
], 2)
|
|
8777
8789
|
], 6),
|
|
8778
|
-
o.map ? (y(),
|
|
8790
|
+
o.map ? (y(), O(C, N({
|
|
8779
8791
|
key: 1,
|
|
8780
8792
|
ref: "windBarb",
|
|
8781
8793
|
map: o.map,
|
|
8782
8794
|
"map-feather": o.mapFeather,
|
|
8783
8795
|
"before-layer": "empty-layer-3",
|
|
8784
|
-
wind: (
|
|
8796
|
+
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
8785
8797
|
"menu-toggle": o.menuToggle
|
|
8786
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
8787
|
-
o.map ? (y(),
|
|
8798
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : R("", !0),
|
|
8799
|
+
o.map ? (y(), O(k, N({
|
|
8788
8800
|
key: 2,
|
|
8789
8801
|
map: o.map,
|
|
8790
8802
|
"before-layer": "empty-layer-2",
|
|
8791
|
-
"sig-wave-height": (
|
|
8803
|
+
"sig-wave-height": (ie = a.weatherLayers) == null ? void 0 : ie["sig-wave-height"],
|
|
8792
8804
|
"menu-toggle": o.menuToggle,
|
|
8793
8805
|
"active-weather-layers": a.activeWeatherLayers
|
|
8794
|
-
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
8795
|
-
o.map ? (y(),
|
|
8806
|
+
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
8807
|
+
o.map ? (y(), O(z, N({
|
|
8796
8808
|
key: 3,
|
|
8797
8809
|
map: o.map,
|
|
8798
8810
|
"map-feather": o.mapFeather,
|
|
8799
8811
|
"before-layer": "empty-layer-2",
|
|
8800
|
-
current: (
|
|
8812
|
+
current: (ce = a.weatherLayers) == null ? void 0 : ce.current,
|
|
8801
8813
|
"menu-toggle": o.menuToggle
|
|
8802
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
8803
|
-
o.map ? (y(),
|
|
8814
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : R("", !0),
|
|
8815
|
+
o.map ? (y(), O(T, N({
|
|
8804
8816
|
key: 4,
|
|
8805
8817
|
map: o.map,
|
|
8806
8818
|
"before-layer": "empty-layer-2",
|
|
8807
|
-
prmsl: (
|
|
8819
|
+
prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
|
|
8808
8820
|
"menu-toggle": o.menuToggle,
|
|
8809
8821
|
"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(),
|
|
8822
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : R("", !0),
|
|
8823
|
+
o.map ? (y(), O(v, N({
|
|
8812
8824
|
key: 5,
|
|
8813
8825
|
viewport: a.viewport,
|
|
8814
|
-
factor: (
|
|
8826
|
+
factor: (me = a.weatherLayers) == null ? void 0 : me["wind-particle"],
|
|
8815
8827
|
"menu-toggle": o.menuToggle
|
|
8816
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8817
|
-
o.map ? (y(),
|
|
8828
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8829
|
+
o.map ? (y(), O(D, N({
|
|
8818
8830
|
key: 6,
|
|
8819
8831
|
viewport: a.viewport,
|
|
8820
|
-
factor: (
|
|
8832
|
+
factor: (he = a.weatherLayers) == null ? void 0 : he["current-particle"],
|
|
8821
8833
|
"menu-toggle": o.menuToggle
|
|
8822
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8823
|
-
o.map ? (y(),
|
|
8834
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8835
|
+
o.map ? (y(), O(F, N({
|
|
8824
8836
|
key: 7,
|
|
8825
8837
|
viewport: a.viewport,
|
|
8826
|
-
factor: (
|
|
8838
|
+
factor: (A = a.weatherLayers) == null ? void 0 : A["sig-wave"],
|
|
8827
8839
|
"menu-toggle": o.menuToggle
|
|
8828
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8829
|
-
o.map ? (y(),
|
|
8840
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8841
|
+
o.map ? (y(), O(V, N({
|
|
8830
8842
|
key: 8,
|
|
8831
8843
|
map: o.map,
|
|
8832
8844
|
viewport: a.viewport,
|
|
8833
|
-
factor: (
|
|
8845
|
+
factor: (ee = a.weatherLayers) == null ? void 0 : ee.swell,
|
|
8834
8846
|
"menu-toggle": o.menuToggle,
|
|
8835
8847
|
"active-weather-layers": a.activeWeatherLayers
|
|
8836
|
-
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) :
|
|
8837
|
-
o.map ? (y(),
|
|
8848
|
+
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : R("", !0),
|
|
8849
|
+
o.map ? (y(), O(Y, N({
|
|
8838
8850
|
key: 9,
|
|
8839
8851
|
viewport: a.viewport,
|
|
8840
8852
|
factor: (ye = a.weatherLayers) == null ? void 0 : ye["ice-edge"],
|
|
8841
8853
|
"menu-toggle": o.menuToggle
|
|
8842
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8843
|
-
o.map ? (y(),
|
|
8854
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8855
|
+
o.map ? (y(), O(Z, N({
|
|
8844
8856
|
key: 10,
|
|
8845
8857
|
viewport: a.viewport,
|
|
8846
|
-
factor: (
|
|
8858
|
+
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-cover"],
|
|
8847
8859
|
"menu-toggle": o.menuToggle
|
|
8848
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8849
|
-
o.map ? (y(),
|
|
8860
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8861
|
+
o.map ? (y(), O(J, N({
|
|
8850
8862
|
key: 11,
|
|
8851
8863
|
viewport: a.viewport,
|
|
8852
|
-
factor: (
|
|
8864
|
+
factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
8853
8865
|
"menu-toggle": o.menuToggle
|
|
8854
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8855
|
-
o.map ? (y(),
|
|
8866
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8867
|
+
o.map ? (y(), O(Q, N({
|
|
8856
8868
|
key: 12,
|
|
8857
8869
|
viewport: a.viewport,
|
|
8858
|
-
factor: (
|
|
8870
|
+
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
8859
8871
|
"menu-toggle": o.menuToggle
|
|
8860
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8861
|
-
o.map ? (y(),
|
|
8872
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8873
|
+
o.map ? (y(), O(K, N({
|
|
8862
8874
|
key: 13,
|
|
8863
8875
|
viewport: a.viewport,
|
|
8864
|
-
factor: (
|
|
8876
|
+
factor: (ve = a.weatherLayers) == null ? void 0 : ve.visibility,
|
|
8865
8877
|
"menu-toggle": o.menuToggle
|
|
8866
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8867
|
-
o.map ? (y(),
|
|
8878
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8879
|
+
o.map ? (y(), O(se, N({
|
|
8868
8880
|
key: 14,
|
|
8869
8881
|
viewport: a.viewport,
|
|
8870
|
-
factor: (
|
|
8882
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
8871
8883
|
"menu-toggle": o.menuToggle
|
|
8872
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8873
|
-
o.map ? (y(),
|
|
8884
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0),
|
|
8885
|
+
o.map ? (y(), O(le, N({
|
|
8874
8886
|
key: 15,
|
|
8875
8887
|
viewport: a.viewport,
|
|
8876
|
-
factor: (
|
|
8888
|
+
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
8877
8889
|
"menu-toggle": o.menuToggle
|
|
8878
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8890
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : R("", !0)
|
|
8879
8891
|
]);
|
|
8880
8892
|
}
|
|
8881
|
-
const rc = /* @__PURE__ */
|
|
8893
|
+
const rc = /* @__PURE__ */ q(wn, [["render", ic]]), Lo = [
|
|
8882
8894
|
{
|
|
8883
8895
|
rank: 0,
|
|
8884
8896
|
name: "Best Match",
|
|
@@ -9225,91 +9237,91 @@ class Ya {
|
|
|
9225
9237
|
}), a;
|
|
9226
9238
|
}
|
|
9227
9239
|
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,
|
|
9240
|
+
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;
|
|
9241
|
+
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
9242
|
if (U.isBetween(Oe, He, "millisecond", "[]")) {
|
|
9231
|
-
const
|
|
9232
|
-
let
|
|
9243
|
+
const E = U.utc().diff(Oe, "h", !1);
|
|
9244
|
+
let be, Re;
|
|
9233
9245
|
if (fe) {
|
|
9234
|
-
let Be = 0, Ne = 0,
|
|
9246
|
+
let Be = 0, Ne = 0, j = 0;
|
|
9235
9247
|
for (const Ue of fe) {
|
|
9236
9248
|
const W = Ue == null ? void 0 : Ue.hourly;
|
|
9237
|
-
for (let ze =
|
|
9249
|
+
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
9238
9250
|
Be += (b = W == null ? void 0 : W.precipitation) == null ? void 0 : b.at(ze);
|
|
9239
|
-
for (let ze =
|
|
9251
|
+
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
9240
9252
|
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: (
|
|
9253
|
+
for (let ze = E - (E - 1) % 12; ze <= E; ze++)
|
|
9254
|
+
j += (L = W == null ? void 0 : W.precipitation) == null ? void 0 : L.at(ze);
|
|
9255
|
+
be = {
|
|
9256
|
+
temp: (g = W == null ? void 0 : W.temperature_2m) == null ? void 0 : g.at(E),
|
|
9257
|
+
apparentTemp: (_ = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : _.at(E),
|
|
9258
|
+
rh: (P = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : P.at(E),
|
|
9259
|
+
dp: (B = W == null ? void 0 : W.dew_point_2m) == null ? void 0 : B.at(E),
|
|
9248
9260
|
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(
|
|
9261
|
+
probability: (I = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : I.at(E),
|
|
9262
|
+
sum: (C = W == null ? void 0 : W.precipitation) == null ? void 0 : C.at(E),
|
|
9263
|
+
sum1Hours: (k = W == null ? void 0 : W.precipitation) == null ? void 0 : k.at(E),
|
|
9252
9264
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9253
9265
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
9254
|
-
sum12Hours: Math.round(
|
|
9266
|
+
sum12Hours: Math.round(j * 100) / 100
|
|
9255
9267
|
},
|
|
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(
|
|
9268
|
+
pmsl: (z = W == null ? void 0 : W.pressure_msl) == null ? void 0 : z.at(E),
|
|
9269
|
+
psurf: (T = W == null ? void 0 : W.surface_pressure) == null ? void 0 : T.at(E),
|
|
9270
|
+
code: (v = W == null ? void 0 : W.weather_code) == null ? void 0 : v.at(E),
|
|
9271
|
+
visibility: this.m2nm((D = W == null ? void 0 : W.visibility) == null ? void 0 : D.at(E)),
|
|
9260
9272
|
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: (
|
|
9273
|
+
speed: (F = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
9274
|
+
kts: (V = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : V.at(E),
|
|
9275
|
+
degree: (Y = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Y.at(E),
|
|
9276
|
+
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,
|
|
9277
|
+
gusts: (Q = W == null ? void 0 : W.wind_gusts_10m) == null ? void 0 : Q.at(E)
|
|
9266
9278
|
},
|
|
9267
|
-
isDay: (
|
|
9279
|
+
isDay: (K = W == null ? void 0 : W.is_day) == null ? void 0 : K.at(E)
|
|
9268
9280
|
};
|
|
9269
|
-
const { name: qe, url: Xe, bg: $e } = this.parseWeatherCode(
|
|
9270
|
-
|
|
9271
|
-
utc: Oe.add(
|
|
9281
|
+
const { name: qe, url: Xe, bg: $e } = this.parseWeatherCode(be.code, be.isDay);
|
|
9282
|
+
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({
|
|
9283
|
+
utc: Oe.add(E, "h").format(),
|
|
9272
9284
|
model: Ue.model,
|
|
9273
|
-
weather: { ...
|
|
9285
|
+
weather: { ...be }
|
|
9274
9286
|
});
|
|
9275
9287
|
}
|
|
9276
9288
|
}
|
|
9277
9289
|
if (oe) {
|
|
9278
9290
|
let Be = 0;
|
|
9279
9291
|
for (const Ne of oe) {
|
|
9280
|
-
const
|
|
9281
|
-
|
|
9292
|
+
const j = Ne == null ? void 0 : Ne.hourly;
|
|
9293
|
+
Re = {
|
|
9282
9294
|
wave: {
|
|
9283
9295
|
sig: {
|
|
9284
|
-
height: (
|
|
9285
|
-
degree: (
|
|
9286
|
-
bearing: ((
|
|
9287
|
-
period: (
|
|
9296
|
+
height: (se = j == null ? void 0 : j.wave_height) == null ? void 0 : se.at(E),
|
|
9297
|
+
degree: (le = j == null ? void 0 : j.wave_direction) == null ? void 0 : le.at(E),
|
|
9298
|
+
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,
|
|
9299
|
+
period: (ce = j == null ? void 0 : j.wave_period) == null ? void 0 : ce.at(E)
|
|
9288
9300
|
},
|
|
9289
9301
|
swell: {
|
|
9290
|
-
height: (
|
|
9291
|
-
degree: (
|
|
9292
|
-
bearing: ((
|
|
9293
|
-
period: (
|
|
9294
|
-
peakPeriod: (ye =
|
|
9302
|
+
height: (ue = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : ue.at(E),
|
|
9303
|
+
degree: (me = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : me.at(E),
|
|
9304
|
+
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,
|
|
9305
|
+
period: (ee = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : ee.at(E),
|
|
9306
|
+
peakPeriod: (ye = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : ye.at(E)
|
|
9295
9307
|
},
|
|
9296
9308
|
wd: {
|
|
9297
|
-
height: (
|
|
9298
|
-
degree: (
|
|
9299
|
-
bearing: ((
|
|
9300
|
-
period: (
|
|
9301
|
-
peakPeriod: (
|
|
9309
|
+
height: (xe = j == null ? void 0 : j.wind_wave_height) == null ? void 0 : xe.at(E),
|
|
9310
|
+
degree: (Le = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Le.at(E),
|
|
9311
|
+
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,
|
|
9312
|
+
period: (Me = j == null ? void 0 : j.wind_wave_period) == null ? void 0 : Me.at(E),
|
|
9313
|
+
peakPeriod: (Ce = j == null ? void 0 : j.wind_wave_peak_period) == null ? void 0 : Ce.at(E)
|
|
9302
9314
|
}
|
|
9303
9315
|
},
|
|
9304
9316
|
current: {
|
|
9305
|
-
speed: (G =
|
|
9306
|
-
kts: (te =
|
|
9307
|
-
degree: (Fe =
|
|
9308
|
-
bearing: ((
|
|
9309
|
-
},
|
|
9310
|
-
sst: (ge =
|
|
9311
|
-
height: (
|
|
9312
|
-
},
|
|
9317
|
+
speed: (G = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : G.at(E),
|
|
9318
|
+
kts: (te = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : te.at(E),
|
|
9319
|
+
degree: (Fe = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Fe.at(E),
|
|
9320
|
+
bearing: ((Ae = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : Ae.at(E)) ?? null
|
|
9321
|
+
},
|
|
9322
|
+
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
9323
|
+
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
9324
|
+
}, 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
9325
|
}
|
|
9314
9326
|
}
|
|
9315
9327
|
}
|
|
@@ -9338,13 +9350,13 @@ class Ya {
|
|
|
9338
9350
|
};
|
|
9339
9351
|
}
|
|
9340
9352
|
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
|
|
9353
|
+
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;
|
|
9354
|
+
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 = [];
|
|
9355
|
+
if (Me.isBetween(te, Fe, "millisecond", "[]")) {
|
|
9356
|
+
let ge, Ie;
|
|
9357
|
+
const U = Me.diff(te, "d", !1);
|
|
9358
|
+
if (Ce)
|
|
9359
|
+
for (const fe of Ce) {
|
|
9348
9360
|
const oe = fe.daily;
|
|
9349
9361
|
ge = {
|
|
9350
9362
|
code: (u = oe.weather_code) == null ? void 0 : u.at(U),
|
|
@@ -9360,7 +9372,7 @@ class Ya {
|
|
|
9360
9372
|
precip: {
|
|
9361
9373
|
sum: (_ = oe.precipitation_sum) == null ? void 0 : _.at(U),
|
|
9362
9374
|
rainSum: (P = oe.rain_sum) == null ? void 0 : P.at(U),
|
|
9363
|
-
snowfallSum: (
|
|
9375
|
+
snowfallSum: (B = oe.snowfall_sum) == null ? void 0 : B.at(U),
|
|
9364
9376
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
|
|
9365
9377
|
hours: (C = oe.precipitation_hours) == null ? void 0 : C.at(U),
|
|
9366
9378
|
probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(U)
|
|
@@ -9372,14 +9384,14 @@ class Ya {
|
|
|
9372
9384
|
},
|
|
9373
9385
|
wind: {
|
|
9374
9386
|
speed: (D = oe.wind_speed_10m_max) == null ? void 0 : D.at(U),
|
|
9375
|
-
kts: (
|
|
9387
|
+
kts: (F = oe.wind_speed_10m_max) == null ? void 0 : F.at(U),
|
|
9376
9388
|
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 ? (((
|
|
9389
|
+
gusts: (Y = oe.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
|
|
9390
|
+
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
9391
|
}
|
|
9380
9392
|
};
|
|
9381
|
-
const { name:
|
|
9382
|
-
ge.name =
|
|
9393
|
+
const { name: re, url: Oe, bg: He } = this.parseWeatherCode(ge.code, !0);
|
|
9394
|
+
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
9395
|
utc: te.add(U, "d").utc().format(),
|
|
9384
9396
|
model: fe.model,
|
|
9385
9397
|
weather: { ...ge }
|
|
@@ -9388,36 +9400,36 @@ class Ya {
|
|
|
9388
9400
|
if (G) {
|
|
9389
9401
|
let fe = 0;
|
|
9390
9402
|
for (const oe of G) {
|
|
9391
|
-
const
|
|
9392
|
-
|
|
9403
|
+
const re = oe.daily;
|
|
9404
|
+
Ie = {
|
|
9393
9405
|
wave: {
|
|
9394
9406
|
sig: {
|
|
9395
|
-
height: (
|
|
9396
|
-
degree: (
|
|
9397
|
-
period: (
|
|
9398
|
-
bearing: ((
|
|
9407
|
+
height: (Q = re.wave_height_max) == null ? void 0 : Q.at(U),
|
|
9408
|
+
degree: (K = re.wave_direction_dominant) == null ? void 0 : K.at(U),
|
|
9409
|
+
period: (se = re.wave_period_max) == null ? void 0 : se.at(U),
|
|
9410
|
+
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
9411
|
},
|
|
9400
9412
|
swell: {
|
|
9401
|
-
height: (
|
|
9402
|
-
degree: (
|
|
9403
|
-
period: (
|
|
9404
|
-
peakPeriod: (
|
|
9413
|
+
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(U),
|
|
9414
|
+
degree: (ce = re.swell_wave_direction_dominant) == null ? void 0 : ce.at(U),
|
|
9415
|
+
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(U),
|
|
9416
|
+
peakPeriod: (me = re.swell_wave_peak_period_max) == null ? void 0 : me.at(U),
|
|
9405
9417
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
9406
|
-
bearing: ((
|
|
9418
|
+
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
9419
|
},
|
|
9408
9420
|
wd: {
|
|
9409
|
-
height: (
|
|
9410
|
-
degree: (ye =
|
|
9411
|
-
period: (
|
|
9412
|
-
peakPeriod: (
|
|
9413
|
-
bearing: ((
|
|
9421
|
+
height: (ee = re.wind_wave_height_max) == null ? void 0 : ee.at(U),
|
|
9422
|
+
degree: (ye = re.wind_wave_direction_dominant) == null ? void 0 : ye.at(U),
|
|
9423
|
+
period: (xe = re.wind_wave_period_max) == null ? void 0 : xe.at(U),
|
|
9424
|
+
peakPeriod: (Le = re.wind_wave_peak_period_max) == null ? void 0 : Le.at(U),
|
|
9425
|
+
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
9426
|
}
|
|
9415
9427
|
}
|
|
9416
|
-
},
|
|
9428
|
+
}, Ie.wave = this.parseWave(Ie.wave, ge == null ? void 0 : ge.wind), Object.assign(Ae[fe], Ie), fe++;
|
|
9417
9429
|
}
|
|
9418
9430
|
}
|
|
9419
9431
|
}
|
|
9420
|
-
return
|
|
9432
|
+
return Ae;
|
|
9421
9433
|
}
|
|
9422
9434
|
static parseWave(e, o) {
|
|
9423
9435
|
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) {
|
|
@@ -9834,6 +9846,10 @@ const sc = {
|
|
|
9834
9846
|
type: Number,
|
|
9835
9847
|
default: 60
|
|
9836
9848
|
},
|
|
9849
|
+
paddingTop: {
|
|
9850
|
+
type: Number,
|
|
9851
|
+
default: 48
|
|
9852
|
+
},
|
|
9837
9853
|
menuToggle: {
|
|
9838
9854
|
type: Object,
|
|
9839
9855
|
default: {}
|
|
@@ -9867,7 +9883,7 @@ const sc = {
|
|
|
9867
9883
|
},
|
|
9868
9884
|
emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
|
|
9869
9885
|
setup() {
|
|
9870
|
-
return { Theme:
|
|
9886
|
+
return { Theme: Se() };
|
|
9871
9887
|
},
|
|
9872
9888
|
data() {
|
|
9873
9889
|
return {
|
|
@@ -9954,7 +9970,7 @@ const sc = {
|
|
|
9954
9970
|
};
|
|
9955
9971
|
},
|
|
9956
9972
|
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) ? "-" :
|
|
9973
|
+
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
9974
|
}
|
|
9959
9975
|
},
|
|
9960
9976
|
watch: {
|
|
@@ -10011,14 +10027,14 @@ const sc = {
|
|
|
10011
10027
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
10012
10028
|
let e = 0, o = 0, i = (a = To.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
10013
10029
|
if (i > 0) {
|
|
10014
|
-
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await
|
|
10030
|
+
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
10031
|
headers: {
|
|
10016
10032
|
Authorization: this.defaultMeteoToken
|
|
10017
10033
|
}
|
|
10018
10034
|
});
|
|
10019
10035
|
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
10036
|
const u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
|
|
10021
|
-
await
|
|
10037
|
+
await De.get(u.tropicals, {
|
|
10022
10038
|
headers: {
|
|
10023
10039
|
Authorization: this.defaultMeteoToken,
|
|
10024
10040
|
key: "tropicals"
|
|
@@ -10045,7 +10061,7 @@ const sc = {
|
|
|
10045
10061
|
handleRefresh() {
|
|
10046
10062
|
var e, o;
|
|
10047
10063
|
(((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,
|
|
10064
|
+
var a, r, l, c, n, u, d, b, w, L, g, _, P, B, I, C, k, z, T, v;
|
|
10049
10065
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10050
10066
|
let D = "";
|
|
10051
10067
|
switch (!0) {
|
|
@@ -10073,7 +10089,7 @@ const sc = {
|
|
|
10073
10089
|
}
|
|
10074
10090
|
i.properties.level = D;
|
|
10075
10091
|
}
|
|
10076
|
-
((
|
|
10092
|
+
((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
10093
|
}), this.handleInit();
|
|
10078
10094
|
},
|
|
10079
10095
|
handleInit() {
|
|
@@ -10292,14 +10308,14 @@ const sc = {
|
|
|
10292
10308
|
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
10309
|
},
|
|
10294
10310
|
handleDateChange() {
|
|
10295
|
-
var t, e, o, i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
10311
|
+
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
10312
|
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(
|
|
10313
|
+
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]);
|
|
10314
|
+
ue.forEach((A) => {
|
|
10315
|
+
me.features.push(A);
|
|
10316
|
+
}), (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
10317
|
type: "geojson",
|
|
10302
|
-
data:
|
|
10318
|
+
data: me
|
|
10303
10319
|
}), (r = this.map) == null || r.addLayer({
|
|
10304
10320
|
id: this.interpolateLineLayer,
|
|
10305
10321
|
type: "line",
|
|
@@ -10319,28 +10335,28 @@ const sc = {
|
|
|
10319
10335
|
"line-width": 1
|
|
10320
10336
|
}
|
|
10321
10337
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10322
|
-
const
|
|
10323
|
-
for (const
|
|
10324
|
-
if (!
|
|
10325
|
-
if (!
|
|
10326
|
-
var
|
|
10327
|
-
return
|
|
10338
|
+
const he = [];
|
|
10339
|
+
for (const A of ce)
|
|
10340
|
+
if (!A.properties.disabled) {
|
|
10341
|
+
if (!he.some((Pe) => {
|
|
10342
|
+
var ve;
|
|
10343
|
+
return Pe.properties.name === ((ve = A.properties) == null ? void 0 : ve.name);
|
|
10328
10344
|
})) {
|
|
10329
|
-
const
|
|
10330
|
-
var
|
|
10331
|
-
return
|
|
10332
|
-
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((n =
|
|
10333
|
-
|
|
10345
|
+
const Pe = ((c = (l = this.tropicals.data.features.find((ve) => {
|
|
10346
|
+
var Me;
|
|
10347
|
+
return ve.properties.name === ((Me = A.properties) == null ? void 0 : Me.name);
|
|
10348
|
+
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((n = A.properties) == null ? void 0 : n.Name) || "-";
|
|
10349
|
+
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
10350
|
}
|
|
10335
|
-
let
|
|
10336
|
-
((
|
|
10337
|
-
const
|
|
10351
|
+
let ee = this.Theme.current.value.colors["tropicals-ty"];
|
|
10352
|
+
((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"];
|
|
10353
|
+
const ye = `<svg t="1719918955501"
|
|
10338
10354
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10339
10355
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
10340
10356
|
<path
|
|
10341
10357
|
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="${
|
|
10358
|
+
fill="${ee}" p-id="18383"></path>
|
|
10359
|
+
<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
10360
|
p-id="18384"></path>
|
|
10345
10361
|
<path
|
|
10346
10362
|
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 +10364,14 @@ const sc = {
|
|
|
10348
10364
|
<path
|
|
10349
10365
|
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
10366
|
fill="#ffffff" p-id="18386"></path>
|
|
10351
|
-
</svg>`,
|
|
10352
|
-
|
|
10353
|
-
const
|
|
10354
|
-
this.interpolateMarkers.push(
|
|
10367
|
+
</svg>`, xe = document.createElement("div");
|
|
10368
|
+
xe.className = "idm-tropical-gl4-hourly-marker", xe.innerHTML = `<div class="${A.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ye}</div>`;
|
|
10369
|
+
const Le = new ke.Marker(xe).setLngLat(A.geometry.coordinates).addTo(this.map);
|
|
10370
|
+
this.interpolateMarkers.push(Le);
|
|
10355
10371
|
}
|
|
10356
|
-
this.$emit("tropicalCenterPoints",
|
|
10372
|
+
this.$emit("tropicalCenterPoints", he);
|
|
10357
10373
|
} else
|
|
10358
|
-
(
|
|
10374
|
+
(le = this.map) != null && le.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
|
|
10359
10375
|
},
|
|
10360
10376
|
handleClick(t) {
|
|
10361
10377
|
var a, r, l, c, n, u, d, b, w, L, g;
|
|
@@ -10530,14 +10546,14 @@ function tm(t, e, o, i, a, r) {
|
|
|
10530
10546
|
return y(), M("div", lc, [
|
|
10531
10547
|
s("div", {
|
|
10532
10548
|
class: "menu-bar-box transition pa-1",
|
|
10533
|
-
style: ae({ top: o.top +
|
|
10549
|
+
style: ae({ top: o.top + o.paddingTop + 86 + "px", right: a.right + "px" })
|
|
10534
10550
|
}, [
|
|
10535
10551
|
p(c, {
|
|
10536
10552
|
text: t.$t("tropical.tropicals"),
|
|
10537
10553
|
location: "left"
|
|
10538
10554
|
}, {
|
|
10539
10555
|
activator: f(({ props: g }) => [
|
|
10540
|
-
p(l,
|
|
10556
|
+
p(l, N(g, {
|
|
10541
10557
|
"min-width": "32",
|
|
10542
10558
|
width: "32",
|
|
10543
10559
|
height: "32",
|
|
@@ -10563,11 +10579,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10563
10579
|
default: f(() => [
|
|
10564
10580
|
p(n, null, {
|
|
10565
10581
|
default: f(() => {
|
|
10566
|
-
var g, _, P,
|
|
10582
|
+
var g, _, P, B, I, C, k, z, T, v, D, F;
|
|
10567
10583
|
return [
|
|
10568
10584
|
s("div", cc, [
|
|
10569
10585
|
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 = (
|
|
10586
|
+
(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
10587
|
]),
|
|
10572
10588
|
p(l, {
|
|
10573
10589
|
icon: "",
|
|
@@ -10584,7 +10600,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10584
10600
|
}, 8, ["onClick"]),
|
|
10585
10601
|
s("div", dc, [
|
|
10586
10602
|
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) || ((
|
|
10603
|
+
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
10604
|
])
|
|
10589
10605
|
];
|
|
10590
10606
|
}),
|
|
@@ -10593,13 +10609,13 @@ function tm(t, e, o, i, a, r) {
|
|
|
10593
10609
|
p(u),
|
|
10594
10610
|
p(n, { class: "text-body-1" }, {
|
|
10595
10611
|
default: f(() => {
|
|
10596
|
-
var g, _, P,
|
|
10612
|
+
var g, _, P, B, I, C, k, z, T;
|
|
10597
10613
|
return [
|
|
10598
10614
|
s("div", uc, [
|
|
10599
10615
|
s("div", gc, [
|
|
10600
10616
|
s("label", fc, m(t.$t("weather.windSpeed")) + " : ", 1),
|
|
10601
10617
|
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(((
|
|
10618
|
+
s("span", null, ", BF " + m(r.computeBF(((B = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
10603
10619
|
]),
|
|
10604
10620
|
s("div", yc, [
|
|
10605
10621
|
s("label", bc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
@@ -10619,17 +10635,17 @@ function tm(t, e, o, i, a, r) {
|
|
|
10619
10635
|
s("div", zc, [
|
|
10620
10636
|
s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
10621
10637
|
s("div", Pc, [
|
|
10622
|
-
(y(!0), M(
|
|
10638
|
+
(y(!0), M(we, null, _e((T = a.activeTropicals) == null ? void 0 : T.forecasts, (v, D) => (y(), O(l, {
|
|
10623
10639
|
key: D,
|
|
10624
10640
|
density: "compact",
|
|
10625
10641
|
variant: v.disabled ? "text" : "flat",
|
|
10626
10642
|
color: v.disabled ? "" : "primary",
|
|
10627
10643
|
"min-width": 30,
|
|
10628
10644
|
class: Ye(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10629
|
-
onClick: Ee((
|
|
10645
|
+
onClick: Ee((F) => r.handleForecastToggle(v), ["stop"])
|
|
10630
10646
|
}, {
|
|
10631
10647
|
default: f(() => [
|
|
10632
|
-
|
|
10648
|
+
$(m(v.model), 1)
|
|
10633
10649
|
]),
|
|
10634
10650
|
_: 2
|
|
10635
10651
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10654,12 +10670,12 @@ function tm(t, e, o, i, a, r) {
|
|
|
10654
10670
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10655
10671
|
])),
|
|
10656
10672
|
default: f(() => [
|
|
10657
|
-
|
|
10673
|
+
$(" " + m(t.$t("weather.legend")), 1)
|
|
10658
10674
|
]),
|
|
10659
10675
|
_: 1
|
|
10660
10676
|
}, 8, ["color"]),
|
|
10661
10677
|
s("div", Cc, [
|
|
10662
|
-
o.permission & a.helper.LEVEL.Supper ? (y(),
|
|
10678
|
+
o.permission & a.helper.LEVEL.Supper ? (y(), O(l, {
|
|
10663
10679
|
key: 0,
|
|
10664
10680
|
variant: "text",
|
|
10665
10681
|
density: "compact",
|
|
@@ -10667,10 +10683,10 @@ function tm(t, e, o, i, a, r) {
|
|
|
10667
10683
|
onClick: e[1] || (e[1] = Ee((g) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10668
10684
|
}, {
|
|
10669
10685
|
default: f(() => [
|
|
10670
|
-
|
|
10686
|
+
$(m(t.$t("actions.notify")), 1)
|
|
10671
10687
|
]),
|
|
10672
10688
|
_: 1
|
|
10673
|
-
})) :
|
|
10689
|
+
})) : R("", !0),
|
|
10674
10690
|
p(l, {
|
|
10675
10691
|
variant: "text",
|
|
10676
10692
|
density: "compact",
|
|
@@ -10679,7 +10695,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10679
10695
|
onClick: e[2] || (e[2] = Ee((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10680
10696
|
}, {
|
|
10681
10697
|
default: f(() => [
|
|
10682
|
-
|
|
10698
|
+
$(m(t.$t("actions.viewReport")), 1)
|
|
10683
10699
|
]),
|
|
10684
10700
|
_: 1
|
|
10685
10701
|
})
|
|
@@ -10752,7 +10768,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10752
10768
|
[Ze, a.showLegend]
|
|
10753
10769
|
])
|
|
10754
10770
|
])
|
|
10755
|
-
])) :
|
|
10771
|
+
])) : R("", !0),
|
|
10756
10772
|
Ve(p(b, {
|
|
10757
10773
|
id: "tropicalHoverMarkerInfo",
|
|
10758
10774
|
elevation: "16",
|
|
@@ -10761,11 +10777,11 @@ function tm(t, e, o, i, a, r) {
|
|
|
10761
10777
|
default: f(() => [
|
|
10762
10778
|
p(w, null, {
|
|
10763
10779
|
default: f(() => {
|
|
10764
|
-
var g, _, P,
|
|
10780
|
+
var g, _, P, B;
|
|
10765
10781
|
return [
|
|
10766
10782
|
s("div", Ic, [
|
|
10767
10783
|
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((
|
|
10784
|
+
s("span", Ac, "[ " + m((B = a.hoverPoint) == null ? void 0 : B.level) + " ]", 1)
|
|
10769
10785
|
])
|
|
10770
10786
|
];
|
|
10771
10787
|
}),
|
|
@@ -10774,45 +10790,45 @@ function tm(t, e, o, i, a, r) {
|
|
|
10774
10790
|
p(L),
|
|
10775
10791
|
p(n, { class: "text-body-1" }, {
|
|
10776
10792
|
default: f(() => {
|
|
10777
|
-
var g, _, P,
|
|
10793
|
+
var g, _, P, B, I, C, k, z, T, v, D, F, V, Y, Z, J, Q, K, se, le;
|
|
10778
10794
|
return [
|
|
10779
10795
|
s("div", Rc, [
|
|
10780
10796
|
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), M("div", Oc, [
|
|
10781
10797
|
s("label", Bc, m(t.$t("tropical.updated")) + " : ", 1),
|
|
10782
10798
|
s("span", null, m(r.computeTzTime((_ = a.hoverPoint) == null ? void 0 : _.update, o.timeZone)), 1)
|
|
10783
|
-
])) :
|
|
10799
|
+
])) : R("", !0),
|
|
10784
10800
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (y(), M("div", Nc, [
|
|
10785
10801
|
s("label", Ec, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10786
|
-
s("span", null, m(r.computeTzTime((
|
|
10787
|
-
])) :
|
|
10802
|
+
s("span", null, m(r.computeTzTime((B = a.hoverPoint) == null ? void 0 : B.date, o.timeZone)), 1)
|
|
10803
|
+
])) : R("", !0),
|
|
10788
10804
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", jc, [
|
|
10789
10805
|
s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10790
10806
|
s("span", null, m(r.computeTzTime((C = a.hoverPoint) == null ? void 0 : C.date, o.timeZone)), 1)
|
|
10791
|
-
])) :
|
|
10807
|
+
])) : R("", !0),
|
|
10792
10808
|
((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), M("div", Hc, [
|
|
10793
10809
|
s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
|
|
10794
10810
|
s("span", null, m(((z = a.hoverPoint) == null ? void 0 : z.model) ?? "-"), 1)
|
|
10795
|
-
])) :
|
|
10811
|
+
])) : R("", !0),
|
|
10796
10812
|
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Uc, [
|
|
10797
10813
|
s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10798
10814
|
s("span", null, m(((D = JSON.parse((v = a.hoverPoint) == null ? void 0 : v.wind)) == null ? void 0 : D.kts) ?? "-") + " kts", 1)
|
|
10799
|
-
])) :
|
|
10800
|
-
((
|
|
10815
|
+
])) : R("", !0),
|
|
10816
|
+
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (y(), M("div", Vc, [
|
|
10801
10817
|
s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10802
10818
|
s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
10803
|
-
])) :
|
|
10819
|
+
])) : R("", !0),
|
|
10804
10820
|
s("div", Yc, [
|
|
10805
10821
|
s("label", qc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10806
|
-
s("span", null, m(((
|
|
10822
|
+
s("span", null, m(((Y = a.hoverPoint) == null ? void 0 : Y.pressure) ?? "-") + " hPa", 1)
|
|
10807
10823
|
]),
|
|
10808
10824
|
((Z = a.hoverPoint) == null ? void 0 : Z.type) === "history" ? (y(), M("div", Xc, [
|
|
10809
10825
|
s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10810
|
-
s("span", null, m(((
|
|
10811
|
-
])) :
|
|
10812
|
-
((
|
|
10826
|
+
s("span", null, m(((Q = JSON.parse((J = a.hoverPoint) == null ? void 0 : J.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
10827
|
+
])) : R("", !0),
|
|
10828
|
+
((K = a.hoverPoint) == null ? void 0 : K.type) === "history" ? (y(), M("div", Kc, [
|
|
10813
10829
|
s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10814
|
-
s("span", null, m(((
|
|
10815
|
-
])) :
|
|
10830
|
+
s("span", null, m(((le = JSON.parse((se = a.hoverPoint) == null ? void 0 : se.movement)) == null ? void 0 : le.deg) ?? "-") + " °", 1)
|
|
10831
|
+
])) : R("", !0),
|
|
10816
10832
|
s("div", Qc, [
|
|
10817
10833
|
s("label", em, m(t.$t("tropical.position")) + " : ", 1),
|
|
10818
10834
|
s("span", null, m(r.computePosition(a.hoverPoint)), 1)
|
|
@@ -10829,7 +10845,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10829
10845
|
])
|
|
10830
10846
|
]);
|
|
10831
10847
|
}
|
|
10832
|
-
const Xa = /* @__PURE__ */
|
|
10848
|
+
const Xa = /* @__PURE__ */ q(sc, [["render", tm]]);
|
|
10833
10849
|
const om = {
|
|
10834
10850
|
name: "DateTimePicker",
|
|
10835
10851
|
props: {
|
|
@@ -11030,11 +11046,11 @@ function lm(t, e, o, i, a, r) {
|
|
|
11030
11046
|
onClick: r.handleOpenDatePicker
|
|
11031
11047
|
}, {
|
|
11032
11048
|
default: f(() => [
|
|
11033
|
-
|
|
11049
|
+
$(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
11034
11050
|
]),
|
|
11035
11051
|
_: 1
|
|
11036
11052
|
}, 8, ["height", "width", "onClick"]),
|
|
11037
|
-
a.showDatePicker ? (y(),
|
|
11053
|
+
a.showDatePicker ? (y(), O(g, {
|
|
11038
11054
|
key: 0,
|
|
11039
11055
|
class: "card-box d-flex flex-column border",
|
|
11040
11056
|
style: ae(r.getStyle)
|
|
@@ -11065,7 +11081,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11065
11081
|
s("div", sm, m(a.currentTime), 1),
|
|
11066
11082
|
p(b, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
11067
11083
|
default: f(() => [
|
|
11068
|
-
(y(!0), M(
|
|
11084
|
+
(y(!0), M(we, null, _e(r.hourOptions, (_, P) => (y(), O(d, {
|
|
11069
11085
|
key: P,
|
|
11070
11086
|
value: _,
|
|
11071
11087
|
color: "primary",
|
|
@@ -11077,10 +11093,10 @@ function lm(t, e, o, i, a, r) {
|
|
|
11077
11093
|
default: f(() => [
|
|
11078
11094
|
p(u, {
|
|
11079
11095
|
class: "text-body-2 font-weight-600 text-center",
|
|
11080
|
-
onClick: (
|
|
11096
|
+
onClick: (B) => a.currentTime = _
|
|
11081
11097
|
}, {
|
|
11082
11098
|
default: f(() => [
|
|
11083
|
-
|
|
11099
|
+
$(m(_), 1)
|
|
11084
11100
|
]),
|
|
11085
11101
|
_: 2
|
|
11086
11102
|
}, 1032, ["onClick"])
|
|
@@ -11106,11 +11122,10 @@ function lm(t, e, o, i, a, r) {
|
|
|
11106
11122
|
class: "text-none text-body-2",
|
|
11107
11123
|
onClick: r.handleCancelDate
|
|
11108
11124
|
}, {
|
|
11109
|
-
default: f(() =>
|
|
11110
|
-
|
|
11111
|
-
])
|
|
11112
|
-
_: 1
|
|
11113
|
-
__: [1]
|
|
11125
|
+
default: f(() => [
|
|
11126
|
+
$(m(t.$t("actions.cancel")), 1)
|
|
11127
|
+
]),
|
|
11128
|
+
_: 1
|
|
11114
11129
|
}, 8, ["onClick"]),
|
|
11115
11130
|
p(l, {
|
|
11116
11131
|
size: "small",
|
|
@@ -11119,21 +11134,20 @@ function lm(t, e, o, i, a, r) {
|
|
|
11119
11134
|
class: "text-none text-body-2",
|
|
11120
11135
|
onClick: r.handleConfirmDate
|
|
11121
11136
|
}, {
|
|
11122
|
-
default: f(() =>
|
|
11123
|
-
|
|
11124
|
-
])
|
|
11125
|
-
_: 1
|
|
11126
|
-
__: [2]
|
|
11137
|
+
default: f(() => [
|
|
11138
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
11139
|
+
]),
|
|
11140
|
+
_: 1
|
|
11127
11141
|
}, 8, ["onClick"])
|
|
11128
11142
|
]),
|
|
11129
11143
|
_: 1
|
|
11130
11144
|
})
|
|
11131
11145
|
]),
|
|
11132
11146
|
_: 1
|
|
11133
|
-
}, 8, ["style"])) :
|
|
11147
|
+
}, 8, ["style"])) : R("", !0)
|
|
11134
11148
|
], 512);
|
|
11135
11149
|
}
|
|
11136
|
-
const Ao = /* @__PURE__ */
|
|
11150
|
+
const Ao = /* @__PURE__ */ q(om, [["render", lm]]);
|
|
11137
11151
|
const nm = {
|
|
11138
11152
|
name: "IdmPoint",
|
|
11139
11153
|
components: {
|
|
@@ -11162,6 +11176,10 @@ const nm = {
|
|
|
11162
11176
|
type: Number,
|
|
11163
11177
|
default: 60
|
|
11164
11178
|
},
|
|
11179
|
+
paddingTop: {
|
|
11180
|
+
type: Number,
|
|
11181
|
+
default: 48
|
|
11182
|
+
},
|
|
11165
11183
|
menuToggle: {
|
|
11166
11184
|
type: Object,
|
|
11167
11185
|
default: {}
|
|
@@ -11251,12 +11269,12 @@ const nm = {
|
|
|
11251
11269
|
},
|
|
11252
11270
|
computePosition() {
|
|
11253
11271
|
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) ? "-" :
|
|
11272
|
+
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
11273
|
};
|
|
11256
11274
|
},
|
|
11257
11275
|
computeRoundPrecision() {
|
|
11258
11276
|
return function(t, e = 4) {
|
|
11259
|
-
return t == null || isNaN(t) || isNaN(e) ? "-" :
|
|
11277
|
+
return t == null || isNaN(t) || isNaN(e) ? "-" : X.roundPrecision(t, e);
|
|
11260
11278
|
};
|
|
11261
11279
|
}
|
|
11262
11280
|
},
|
|
@@ -11348,7 +11366,7 @@ const nm = {
|
|
|
11348
11366
|
weatherModels: e,
|
|
11349
11367
|
marineModels: o
|
|
11350
11368
|
};
|
|
11351
|
-
await
|
|
11369
|
+
await De.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
11352
11370
|
headers: {
|
|
11353
11371
|
Authorization: this.token || this.defaultMeteoToken
|
|
11354
11372
|
}
|
|
@@ -11368,7 +11386,7 @@ const nm = {
|
|
|
11368
11386
|
pastDays: 1,
|
|
11369
11387
|
weatherModels: e,
|
|
11370
11388
|
marineModels: o
|
|
11371
|
-
}, a = await
|
|
11389
|
+
}, a = await De.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
11372
11390
|
headers: {
|
|
11373
11391
|
Authorization: this.token || this.defaultMeteoToken
|
|
11374
11392
|
}
|
|
@@ -11376,10 +11394,10 @@ const nm = {
|
|
|
11376
11394
|
(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
11395
|
},
|
|
11378
11396
|
initTableData(t) {
|
|
11379
|
-
var o, i, a, r, l, c, n, u, d, b, w, L, g, _, P,
|
|
11397
|
+
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
11398
|
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
11399
|
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 = (
|
|
11400
|
+
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
11401
|
},
|
|
11384
11402
|
handleBind() {
|
|
11385
11403
|
var t, e;
|
|
@@ -11395,7 +11413,7 @@ const nm = {
|
|
|
11395
11413
|
return !1;
|
|
11396
11414
|
},
|
|
11397
11415
|
handleGetPosition(t) {
|
|
11398
|
-
this.form.latDegree = Number(
|
|
11416
|
+
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
11417
|
},
|
|
11400
11418
|
handleDrawInfoMarker(t) {
|
|
11401
11419
|
t && (this.map.flyTo({
|
|
@@ -11488,18 +11506,18 @@ const nm = {
|
|
|
11488
11506
|
"aria-hidden": "true"
|
|
11489
11507
|
}, qm = ["xlink:href"];
|
|
11490
11508
|
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"),
|
|
11509
|
+
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
11510
|
return y(), M("div", cm, [
|
|
11493
11511
|
s("div", {
|
|
11494
11512
|
class: "menu-bar-box transition pa-1",
|
|
11495
|
-
style: ae({ top: o.top +
|
|
11513
|
+
style: ae({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
11496
11514
|
}, [
|
|
11497
11515
|
p(c, {
|
|
11498
11516
|
text: t.$t("spot.spotsMeteo"),
|
|
11499
11517
|
location: "left"
|
|
11500
11518
|
}, {
|
|
11501
11519
|
activator: f(({ props: k }) => [
|
|
11502
|
-
p(l,
|
|
11520
|
+
p(l, N(k, {
|
|
11503
11521
|
"min-width": "32",
|
|
11504
11522
|
width: "32",
|
|
11505
11523
|
height: "32",
|
|
@@ -11516,10 +11534,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11516
11534
|
_: 1
|
|
11517
11535
|
}, 8, ["text"])
|
|
11518
11536
|
], 4),
|
|
11519
|
-
a.showForm ? (y(),
|
|
11537
|
+
a.showForm ? (y(), O(I, {
|
|
11520
11538
|
key: 0,
|
|
11521
11539
|
class: "spot-form-card",
|
|
11522
|
-
style: ae({ top: o.top +
|
|
11540
|
+
style: ae({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
11523
11541
|
}, {
|
|
11524
11542
|
default: f(() => [
|
|
11525
11543
|
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
@@ -11544,7 +11562,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11544
11562
|
_: 1
|
|
11545
11563
|
}),
|
|
11546
11564
|
p(u),
|
|
11547
|
-
p(
|
|
11565
|
+
p(B, {
|
|
11548
11566
|
ref: "spotForm",
|
|
11549
11567
|
autocomplete: "off",
|
|
11550
11568
|
class: "form-box",
|
|
@@ -11620,7 +11638,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11620
11638
|
onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11621
11639
|
}, {
|
|
11622
11640
|
default: f(() => [
|
|
11623
|
-
|
|
11641
|
+
$(m(a.form.lngDirection), 1)
|
|
11624
11642
|
]),
|
|
11625
11643
|
_: 1
|
|
11626
11644
|
})
|
|
@@ -11700,7 +11718,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11700
11718
|
onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11701
11719
|
}, {
|
|
11702
11720
|
default: f(() => [
|
|
11703
|
-
|
|
11721
|
+
$(m(a.form.latDirection), 1)
|
|
11704
11722
|
]),
|
|
11705
11723
|
_: 1
|
|
11706
11724
|
})
|
|
@@ -11725,7 +11743,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11725
11743
|
class: "pa-0"
|
|
11726
11744
|
}, {
|
|
11727
11745
|
default: f(() => [
|
|
11728
|
-
p(L,
|
|
11746
|
+
p(L, N({
|
|
11729
11747
|
"date-time": a.form.dateTime,
|
|
11730
11748
|
"time-zone": o.timeZone
|
|
11731
11749
|
}, t.$attrs, {
|
|
@@ -11771,7 +11789,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11771
11789
|
"base-color": ""
|
|
11772
11790
|
}, {
|
|
11773
11791
|
default: f(() => e[14] || (e[14] = [
|
|
11774
|
-
|
|
11792
|
+
$("NOAA", -1)
|
|
11775
11793
|
])),
|
|
11776
11794
|
_: 1,
|
|
11777
11795
|
__: [14]
|
|
@@ -11785,7 +11803,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11785
11803
|
value: "ECMWF"
|
|
11786
11804
|
}, {
|
|
11787
11805
|
default: f(() => e[15] || (e[15] = [
|
|
11788
|
-
|
|
11806
|
+
$("ECMWF", -1)
|
|
11789
11807
|
])),
|
|
11790
11808
|
_: 1,
|
|
11791
11809
|
__: [15]
|
|
@@ -11812,7 +11830,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11812
11830
|
onClick: r.cancelForm
|
|
11813
11831
|
}, {
|
|
11814
11832
|
default: f(() => [
|
|
11815
|
-
|
|
11833
|
+
$(m(t.$t("actions.clear")), 1)
|
|
11816
11834
|
]),
|
|
11817
11835
|
_: 1
|
|
11818
11836
|
}, 8, ["onClick"]),
|
|
@@ -11826,7 +11844,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11826
11844
|
class: "text-none text-body-1"
|
|
11827
11845
|
}, {
|
|
11828
11846
|
default: f(() => [
|
|
11829
|
-
|
|
11847
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
11830
11848
|
]),
|
|
11831
11849
|
_: 1
|
|
11832
11850
|
}, 8, ["loading"])
|
|
@@ -11838,8 +11856,8 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11838
11856
|
}, 8, ["onSubmit"])
|
|
11839
11857
|
]),
|
|
11840
11858
|
_: 1
|
|
11841
|
-
}, 8, ["style"])) :
|
|
11842
|
-
a.showMeteo ? (y(),
|
|
11859
|
+
}, 8, ["style"])) : R("", !0),
|
|
11860
|
+
a.showMeteo ? (y(), O(I, {
|
|
11843
11861
|
key: 1,
|
|
11844
11862
|
id: "idm-gl4-spot-meteo",
|
|
11845
11863
|
class: "spot-meteo",
|
|
@@ -11915,7 +11933,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11915
11933
|
o.followList.some((k) => {
|
|
11916
11934
|
var z, T;
|
|
11917
11935
|
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(),
|
|
11936
|
+
}) ? (y(), O(l, {
|
|
11919
11937
|
key: 0,
|
|
11920
11938
|
class: "text-none text-body-1",
|
|
11921
11939
|
id: "idm-gl4-spot-meteo-follow",
|
|
@@ -11932,10 +11950,10 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11932
11950
|
})
|
|
11933
11951
|
]),
|
|
11934
11952
|
default: f(() => [
|
|
11935
|
-
|
|
11953
|
+
$(" " + m(t.$t("actions.unfollow")), 1)
|
|
11936
11954
|
]),
|
|
11937
11955
|
_: 1
|
|
11938
|
-
}, 8, ["onClick"])) : (y(),
|
|
11956
|
+
}, 8, ["onClick"])) : (y(), O(l, {
|
|
11939
11957
|
key: 1,
|
|
11940
11958
|
id: "idm-gl4-spot-meteo-unfollow",
|
|
11941
11959
|
class: "text-none text-body-1",
|
|
@@ -11949,7 +11967,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11949
11967
|
p(C, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
11950
11968
|
]),
|
|
11951
11969
|
default: f(() => [
|
|
11952
|
-
|
|
11970
|
+
$(m(t.$t("actions.follow")) + " ", 1)
|
|
11953
11971
|
]),
|
|
11954
11972
|
_: 1
|
|
11955
11973
|
}, 8, ["onClick"])),
|
|
@@ -11962,7 +11980,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11962
11980
|
onClick: Ee(r.handleMeteoMore, ["stop"])
|
|
11963
11981
|
}, {
|
|
11964
11982
|
default: f(() => [
|
|
11965
|
-
|
|
11983
|
+
$(m(t.$t("spot.forecast")), 1)
|
|
11966
11984
|
]),
|
|
11967
11985
|
_: 1
|
|
11968
11986
|
}, 8, ["onClick"])
|
|
@@ -11971,7 +11989,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11971
11989
|
})
|
|
11972
11990
|
]),
|
|
11973
11991
|
_: 1
|
|
11974
|
-
})) :
|
|
11992
|
+
})) : R("", !0),
|
|
11975
11993
|
Ve(s("div", Zm, [
|
|
11976
11994
|
(y(), M("svg", Ym, [
|
|
11977
11995
|
s("use", {
|
|
@@ -11983,7 +12001,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11983
12001
|
])
|
|
11984
12002
|
]);
|
|
11985
12003
|
}
|
|
11986
|
-
const $m = /* @__PURE__ */
|
|
12004
|
+
const $m = /* @__PURE__ */ q(nm, [["render", Xm]]);
|
|
11987
12005
|
const Km = {
|
|
11988
12006
|
name: "IdmMeasure",
|
|
11989
12007
|
props: {
|
|
@@ -11994,13 +12012,17 @@ const Km = {
|
|
|
11994
12012
|
type: Number,
|
|
11995
12013
|
default: 60
|
|
11996
12014
|
},
|
|
12015
|
+
paddingTop: {
|
|
12016
|
+
type: Number,
|
|
12017
|
+
default: 48
|
|
12018
|
+
},
|
|
11997
12019
|
menuToggle: {
|
|
11998
12020
|
type: Object,
|
|
11999
12021
|
default: {}
|
|
12000
12022
|
}
|
|
12001
12023
|
},
|
|
12002
12024
|
setup() {
|
|
12003
|
-
return { Theme:
|
|
12025
|
+
return { Theme: Se() };
|
|
12004
12026
|
},
|
|
12005
12027
|
data() {
|
|
12006
12028
|
return {
|
|
@@ -12079,13 +12101,13 @@ const Km = {
|
|
|
12079
12101
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12080
12102
|
const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
12081
12103
|
this.pointMarkers[w.id].filter((P) => {
|
|
12082
|
-
var
|
|
12083
|
-
return ((
|
|
12104
|
+
var B;
|
|
12105
|
+
return ((B = P._element) == null ? void 0 : B.id) === e;
|
|
12084
12106
|
})[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
12107
|
let g;
|
|
12086
|
-
w.features.forEach((P,
|
|
12108
|
+
w.features.forEach((P, B) => {
|
|
12087
12109
|
if (P.geometry.type === "Point" && P.properties.id === e.split("-")[1]) {
|
|
12088
|
-
g =
|
|
12110
|
+
g = B;
|
|
12089
12111
|
return;
|
|
12090
12112
|
}
|
|
12091
12113
|
});
|
|
@@ -12157,13 +12179,13 @@ const Km = {
|
|
|
12157
12179
|
const i = [];
|
|
12158
12180
|
for (let a = 1; a < e.length; a++) {
|
|
12159
12181
|
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 =
|
|
12182
|
+
o = X.roundPrecision(o + d, 4);
|
|
12161
12183
|
let w;
|
|
12162
|
-
c.mode === "RL" ? w =
|
|
12184
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, u, 200));
|
|
12163
12185
|
const L = H.lineString(w.map((_) => [_.lng, _.lat]));
|
|
12164
12186
|
L.properties.dist = d, L.properties.bearing = b, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
|
|
12165
12187
|
const g = e[a];
|
|
12166
|
-
g.properties.totalDist =
|
|
12188
|
+
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + d, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12167
12189
|
}
|
|
12168
12190
|
e.push(...i), t.total = o;
|
|
12169
12191
|
}
|
|
@@ -12176,7 +12198,7 @@ const Km = {
|
|
|
12176
12198
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
|
|
12177
12199
|
r = We.calculateDistance(u, d, n.mode === "RL", 4), l = We.calculateBearing(u, d, n.mode === "RL", 2);
|
|
12178
12200
|
let b;
|
|
12179
|
-
n.mode === "RL" ? b =
|
|
12201
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, d]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, d, 200));
|
|
12180
12202
|
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12181
12203
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12182
12204
|
}
|
|
@@ -12184,7 +12206,7 @@ const Km = {
|
|
|
12184
12206
|
const n = o.properties, u = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12185
12207
|
r = We.calculateDistance(u, d, n.mode === "RL", 4), l = We.calculateBearing(u, d, n.mode === "RL", 2);
|
|
12186
12208
|
let b;
|
|
12187
|
-
n.mode === "RL" ? b =
|
|
12209
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, d]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, d, 200));
|
|
12188
12210
|
const w = H.lineString(b.map((L) => [L.lng, L.lat]));
|
|
12189
12211
|
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12190
12212
|
}
|
|
@@ -12230,7 +12252,7 @@ const Km = {
|
|
|
12230
12252
|
if (i)
|
|
12231
12253
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
12232
12254
|
else {
|
|
12233
|
-
const n =
|
|
12255
|
+
const n = X.roundPrecision((t.total ?? 0) + r, 1);
|
|
12234
12256
|
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
12235
12257
|
"measure.bearing"
|
|
12236
12258
|
)}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
@@ -12340,14 +12362,14 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12340
12362
|
return y(), M("div", Jm, [
|
|
12341
12363
|
s("div", {
|
|
12342
12364
|
class: "menu-bar-box transition pa-1",
|
|
12343
|
-
style: ae({ top: o.top +
|
|
12365
|
+
style: ae({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
12344
12366
|
}, [
|
|
12345
12367
|
p(c, {
|
|
12346
12368
|
text: t.$t("measure.measure"),
|
|
12347
12369
|
location: "left"
|
|
12348
12370
|
}, {
|
|
12349
12371
|
activator: f(({ props: n }) => [
|
|
12350
|
-
p(l,
|
|
12372
|
+
p(l, N(n, {
|
|
12351
12373
|
"min-width": "32",
|
|
12352
12374
|
width: "32",
|
|
12353
12375
|
height: "32",
|
|
@@ -12366,7 +12388,7 @@ function Qm(t, e, o, i, a, r) {
|
|
|
12366
12388
|
], 4)
|
|
12367
12389
|
]);
|
|
12368
12390
|
}
|
|
12369
|
-
const eh = /* @__PURE__ */
|
|
12391
|
+
const eh = /* @__PURE__ */ q(Km, [["render", Qm]]);
|
|
12370
12392
|
const th = {
|
|
12371
12393
|
name: "IdmBottomBar",
|
|
12372
12394
|
components: { DateTimePicker: Ao },
|
|
@@ -12504,7 +12526,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12504
12526
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12505
12527
|
}, [
|
|
12506
12528
|
s("div", ah, [
|
|
12507
|
-
p(l,
|
|
12529
|
+
p(l, N({
|
|
12508
12530
|
ref: "dateTimePicker",
|
|
12509
12531
|
"date-time": a.currentDateTimeZ,
|
|
12510
12532
|
"time-zone": a.timeZone,
|
|
@@ -12523,12 +12545,12 @@ function hh(t, e, o, i, a, r) {
|
|
|
12523
12545
|
"min-width": "30"
|
|
12524
12546
|
}, {
|
|
12525
12547
|
default: f(() => [
|
|
12526
|
-
|
|
12548
|
+
$(m(a.intervalHour) + " h ", 1),
|
|
12527
12549
|
p(d, { activator: "parent" }, {
|
|
12528
12550
|
default: f(() => [
|
|
12529
12551
|
p(u, { class: "pa-1" }, {
|
|
12530
12552
|
default: f(() => [
|
|
12531
|
-
(y(!0), M(
|
|
12553
|
+
(y(!0), M(we, null, _e(a.intervalOptions, (g, _) => (y(), O(n, {
|
|
12532
12554
|
key: _,
|
|
12533
12555
|
value: g,
|
|
12534
12556
|
variant: a.intervalHour === g ? "tonal" : "text",
|
|
@@ -12545,7 +12567,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12545
12567
|
onClick: (P) => a.intervalHour = g
|
|
12546
12568
|
}, {
|
|
12547
12569
|
default: f(() => [
|
|
12548
|
-
|
|
12570
|
+
$(m(g) + "h", 1)
|
|
12549
12571
|
]),
|
|
12550
12572
|
_: 2
|
|
12551
12573
|
}, 1032, ["onClick"])
|
|
@@ -12594,7 +12616,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12594
12616
|
_: 1,
|
|
12595
12617
|
__: [11]
|
|
12596
12618
|
}, 8, ["onClick"]),
|
|
12597
|
-
a.paused ? (y(),
|
|
12619
|
+
a.paused ? (y(), O(b, {
|
|
12598
12620
|
key: 0,
|
|
12599
12621
|
icon: "",
|
|
12600
12622
|
size: "small",
|
|
@@ -12607,7 +12629,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12607
12629
|
])),
|
|
12608
12630
|
_: 1,
|
|
12609
12631
|
__: [12]
|
|
12610
|
-
}, 8, ["onClick"])) : (y(),
|
|
12632
|
+
}, 8, ["onClick"])) : (y(), O(b, {
|
|
12611
12633
|
key: 1,
|
|
12612
12634
|
icon: "",
|
|
12613
12635
|
size: "small",
|
|
@@ -12648,14 +12670,14 @@ function hh(t, e, o, i, a, r) {
|
|
|
12648
12670
|
activator: f(({ props: g }) => {
|
|
12649
12671
|
var _, P;
|
|
12650
12672
|
return [
|
|
12651
|
-
p(b,
|
|
12673
|
+
p(b, N(g, {
|
|
12652
12674
|
class: "pa-1 d-flex",
|
|
12653
12675
|
color: (_ = o.weatherCheckList) != null && _.includes("wind") ? "primary" : "",
|
|
12654
12676
|
variant: (P = o.weatherCheckList) != null && P.includes("wind") ? "elevated" : "text",
|
|
12655
12677
|
height: "24",
|
|
12656
12678
|
width: "24",
|
|
12657
12679
|
"min-width": "24",
|
|
12658
|
-
onClick: e[4] || (e[4] = (
|
|
12680
|
+
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("wind"))
|
|
12659
12681
|
}), {
|
|
12660
12682
|
default: f(() => e[15] || (e[15] = [
|
|
12661
12683
|
s("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -12674,17 +12696,17 @@ function hh(t, e, o, i, a, r) {
|
|
|
12674
12696
|
activator: f(({ props: g }) => {
|
|
12675
12697
|
var _, P;
|
|
12676
12698
|
return [
|
|
12677
|
-
p(b,
|
|
12699
|
+
p(b, N(g, {
|
|
12678
12700
|
class: "pa-1 d-flex",
|
|
12679
12701
|
color: (_ = o.weatherCheckList) != null && _.includes("sig-wave-height") ? "primary" : "",
|
|
12680
12702
|
variant: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "elevated" : "text",
|
|
12681
12703
|
height: "24",
|
|
12682
12704
|
width: "24",
|
|
12683
12705
|
"min-width": "24",
|
|
12684
|
-
onClick: e[5] || (e[5] = (
|
|
12706
|
+
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
12685
12707
|
}), {
|
|
12686
12708
|
default: f(() => [
|
|
12687
|
-
s("i",
|
|
12709
|
+
s("i", N(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
12688
12710
|
]),
|
|
12689
12711
|
_: 2
|
|
12690
12712
|
}, 1040, ["color", "variant"])
|
|
@@ -12699,17 +12721,17 @@ function hh(t, e, o, i, a, r) {
|
|
|
12699
12721
|
activator: f(({ props: g }) => {
|
|
12700
12722
|
var _, P;
|
|
12701
12723
|
return [
|
|
12702
|
-
p(b,
|
|
12724
|
+
p(b, N(g, {
|
|
12703
12725
|
class: "pa-1 d-flex",
|
|
12704
12726
|
color: (_ = o.weatherCheckList) != null && _.includes("current-direction") ? "primary" : "",
|
|
12705
12727
|
variant: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "elevated" : "text",
|
|
12706
12728
|
height: "24",
|
|
12707
12729
|
width: "24",
|
|
12708
12730
|
"min-width": "24",
|
|
12709
|
-
onClick: e[6] || (e[6] = (
|
|
12731
|
+
onClick: e[6] || (e[6] = (B) => r.handleClickFastWeather("current-direction"))
|
|
12710
12732
|
}), {
|
|
12711
12733
|
default: f(() => [
|
|
12712
|
-
s("i",
|
|
12734
|
+
s("i", N(g, { class: "iconfont icon-Current" }), null, 16)
|
|
12713
12735
|
]),
|
|
12714
12736
|
_: 2
|
|
12715
12737
|
}, 1040, ["color", "variant"])
|
|
@@ -12722,7 +12744,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12722
12744
|
location: "top"
|
|
12723
12745
|
}, {
|
|
12724
12746
|
activator: f(({ props: g }) => [
|
|
12725
|
-
p(b,
|
|
12747
|
+
p(b, N(g, {
|
|
12726
12748
|
class: "pa-1 d-flex",
|
|
12727
12749
|
variant: "text",
|
|
12728
12750
|
height: "24",
|
|
@@ -12731,7 +12753,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12731
12753
|
onClick: r.handleClickFastMore
|
|
12732
12754
|
}), {
|
|
12733
12755
|
default: f(() => [
|
|
12734
|
-
s("i",
|
|
12756
|
+
s("i", N(g, { class: "iconfont icon-dots-align" }), null, 16)
|
|
12735
12757
|
]),
|
|
12736
12758
|
_: 2
|
|
12737
12759
|
}, 1040, ["onClick"])
|
|
@@ -12753,7 +12775,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12753
12775
|
onClick: e[7] || (e[7] = (g) => a.source = "GFS")
|
|
12754
12776
|
}, {
|
|
12755
12777
|
default: f(() => e[16] || (e[16] = [
|
|
12756
|
-
|
|
12778
|
+
$("NOAA", -1)
|
|
12757
12779
|
])),
|
|
12758
12780
|
_: 1,
|
|
12759
12781
|
__: [16]
|
|
@@ -12766,7 +12788,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12766
12788
|
onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
|
|
12767
12789
|
}, {
|
|
12768
12790
|
default: f(() => e[17] || (e[17] = [
|
|
12769
|
-
|
|
12791
|
+
$("ECMWF", -1)
|
|
12770
12792
|
])),
|
|
12771
12793
|
_: 1,
|
|
12772
12794
|
__: [17]
|
|
@@ -12778,12 +12800,12 @@ function hh(t, e, o, i, a, r) {
|
|
|
12778
12800
|
style: ae({ right: a.right + "px" })
|
|
12779
12801
|
}, [
|
|
12780
12802
|
a.showTimezone ? (y(), M("div", lh, [
|
|
12781
|
-
(y(!0), M(
|
|
12803
|
+
(y(!0), M(we, null, _e(a.offsets, (g) => (y(), M("div", {
|
|
12782
12804
|
key: g,
|
|
12783
12805
|
class: "item rounded text-body-2 hover-active",
|
|
12784
12806
|
onClick: (_) => a.timeZone = g
|
|
12785
12807
|
}, m(g < 0 ? g : "+" + g), 9, nh))), 128))
|
|
12786
|
-
])) :
|
|
12808
|
+
])) : R("", !0),
|
|
12787
12809
|
s("div", ch, [
|
|
12788
12810
|
p(b, {
|
|
12789
12811
|
text: "",
|
|
@@ -12794,7 +12816,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12794
12816
|
onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
|
|
12795
12817
|
}, {
|
|
12796
12818
|
default: f(() => [
|
|
12797
|
-
|
|
12819
|
+
$(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12798
12820
|
]),
|
|
12799
12821
|
_: 1
|
|
12800
12822
|
}),
|
|
@@ -12803,7 +12825,7 @@ function hh(t, e, o, i, a, r) {
|
|
|
12803
12825
|
], 4)
|
|
12804
12826
|
]);
|
|
12805
12827
|
}
|
|
12806
|
-
const dh = /* @__PURE__ */
|
|
12828
|
+
const dh = /* @__PURE__ */ q(th, [["render", hh]]), ph = {
|
|
12807
12829
|
name: "IdmGL4",
|
|
12808
12830
|
components: {
|
|
12809
12831
|
IdmOtherLayer: pl,
|
|
@@ -12869,7 +12891,7 @@ const dh = /* @__PURE__ */ X(th, [["render", hh]]), ph = {
|
|
|
12869
12891
|
function gh(t, e, o, i, a, r) {
|
|
12870
12892
|
const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), d = x("IdmSpot"), b = x("IdmBottomBar");
|
|
12871
12893
|
return y(), M("div", uh, [
|
|
12872
|
-
p(l,
|
|
12894
|
+
p(l, N({
|
|
12873
12895
|
ref: "idmOtherLayers",
|
|
12874
12896
|
token: o.token,
|
|
12875
12897
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12884,7 +12906,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12884
12906
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12885
12907
|
})
|
|
12886
12908
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12887
|
-
p(c,
|
|
12909
|
+
p(c, N({
|
|
12888
12910
|
ref: "idmWeatherLayers",
|
|
12889
12911
|
map: o.map,
|
|
12890
12912
|
"before-layer": "empty-layer-2",
|
|
@@ -12902,7 +12924,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12902
12924
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12903
12925
|
})
|
|
12904
12926
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12905
|
-
p(n,
|
|
12927
|
+
p(n, N({
|
|
12906
12928
|
map: o.map,
|
|
12907
12929
|
token: o.token,
|
|
12908
12930
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12913,11 +12935,11 @@ function gh(t, e, o, i, a, r) {
|
|
|
12913
12935
|
"forecast-model": o.forecastModel,
|
|
12914
12936
|
"map-feather": o.mapFeather
|
|
12915
12937
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12916
|
-
p(u,
|
|
12938
|
+
p(u, N({
|
|
12917
12939
|
map: o.map,
|
|
12918
12940
|
"map-feather": o.mapFeather
|
|
12919
12941
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12920
|
-
p(d,
|
|
12942
|
+
p(d, N({
|
|
12921
12943
|
ref: "idmSpot",
|
|
12922
12944
|
map: o.map,
|
|
12923
12945
|
token: o.token,
|
|
@@ -12926,7 +12948,7 @@ function gh(t, e, o, i, a, r) {
|
|
|
12926
12948
|
"forecast-model": o.forecastModel,
|
|
12927
12949
|
"map-feather": o.mapFeather
|
|
12928
12950
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
12929
|
-
p(b,
|
|
12951
|
+
p(b, N({
|
|
12930
12952
|
ref: "idmBottomBar",
|
|
12931
12953
|
"forecast-model": o.forecastModel,
|
|
12932
12954
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12934,16 +12956,16 @@ function gh(t, e, o, i, a, r) {
|
|
|
12934
12956
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
12935
12957
|
], 512);
|
|
12936
12958
|
}
|
|
12937
|
-
const fh = /* @__PURE__ */
|
|
12959
|
+
const fh = /* @__PURE__ */ q(ph, [["render", gh]]);
|
|
12938
12960
|
class yh {
|
|
12939
12961
|
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,
|
|
12962
|
+
de(this, "originStyle");
|
|
12963
|
+
de(this, "mapboxStyle");
|
|
12964
|
+
de(this, "i4");
|
|
12965
|
+
de(this, "hi");
|
|
12966
|
+
de(this, "td");
|
|
12967
|
+
de(this, "windy");
|
|
12968
|
+
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
12969
|
this.i4 = {
|
|
12948
12970
|
source: {
|
|
12949
12971
|
type: "raster",
|
|
@@ -31591,33 +31613,33 @@ class yh {
|
|
|
31591
31613
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
31592
31614
|
(L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((h) => h.id === "loadlines-fill"),
|
|
31593
31615
|
(_ = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : _.find((h) => h.id === "empty-layer-0"),
|
|
31594
|
-
(
|
|
31616
|
+
(B = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
31595
31617
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((h) => h.id === "country-boundaries"),
|
|
31596
31618
|
(z = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : z.find((h) => h.id === "water-outline"),
|
|
31597
31619
|
(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 = (
|
|
31620
|
+
(F = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
31621
|
+
(Y = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Y.find((h) => h.id === "water-line-label"),
|
|
31622
|
+
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((h) => h.id === "water-point-label"),
|
|
31623
|
+
(K = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : K.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
31624
|
+
(le = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : le.find((h) => h.id === "ne-10m-outline"),
|
|
31625
|
+
(ie = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ie.find((h) => h.id === "ne-10m-label"),
|
|
31626
|
+
(ue = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : ue.find((h) => h.id === "china-route-line"),
|
|
31627
|
+
(he = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : he.find((h) => h.id === "china-route-fill"),
|
|
31628
|
+
(ee = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : ee.find((h) => h.id === "china-route-label"),
|
|
31629
|
+
(xe = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : xe.find((h) => h.id === "admin-0-boundary-bg"),
|
|
31630
|
+
(Pe = (Le = this.originStyle) == null ? void 0 : Le.light.layers) == null ? void 0 : Pe.find((h) => h.id === "admin-0-boundary"),
|
|
31631
|
+
(Me = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Me.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
31632
|
+
(G = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : G.find((h) => h.id === "country-label"),
|
|
31611
31633
|
(Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((h) => h.id === "continent-label"),
|
|
31612
|
-
(ge = (
|
|
31613
|
-
(U = (
|
|
31634
|
+
(ge = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ge.find((h) => h.id === "tide-stations"),
|
|
31635
|
+
(U = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : U.find((h) => h.id === "empty-layer-3"),
|
|
31614
31636
|
(oe = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : oe.find((h) => h.id === "empty-layer-4")
|
|
31615
31637
|
]
|
|
31616
31638
|
},
|
|
31617
31639
|
dark: {
|
|
31618
31640
|
version: 8,
|
|
31619
31641
|
name: "dark",
|
|
31620
|
-
metadata: (
|
|
31642
|
+
metadata: (re = this.originStyle) == null ? void 0 : re.dark.metadata,
|
|
31621
31643
|
center: [90.22129259388525, -3.2084663486364606],
|
|
31622
31644
|
zoom: 1.2556266457717493,
|
|
31623
31645
|
bearing: 0,
|
|
@@ -31629,16 +31651,16 @@ class yh {
|
|
|
31629
31651
|
sources: (Oe = this.originStyle) == null ? void 0 : Oe.dark.sources,
|
|
31630
31652
|
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
31631
31653
|
glyphs: (Ge = this.originStyle) == null ? void 0 : Ge.dark.glyphs,
|
|
31632
|
-
projection: (
|
|
31654
|
+
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
31633
31655
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
31634
31656
|
owner: "neatchenheng",
|
|
31635
31657
|
visibility: "private",
|
|
31636
31658
|
protected: !1,
|
|
31637
31659
|
draft: !1,
|
|
31638
31660
|
layers: [
|
|
31639
|
-
(
|
|
31661
|
+
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((h) => h.id === "land"),
|
|
31640
31662
|
(Ne = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : Ne.find((h) => h.id === "water"),
|
|
31641
|
-
(Ue = (
|
|
31663
|
+
(Ue = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "ice-area-fill"),
|
|
31642
31664
|
(qe = (W = this.originStyle) == null ? void 0 : W.dark.layers) == null ? void 0 : qe.find((h) => h.id === "ice-area-line"),
|
|
31643
31665
|
($e = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : $e.find((h) => h.id === "loadlines-label"),
|
|
31644
31666
|
(Ke = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "loadlines-fill"),
|
|
@@ -31953,7 +31975,7 @@ function kh(t, e, o, i, a, r) {
|
|
|
31953
31975
|
])
|
|
31954
31976
|
]);
|
|
31955
31977
|
}
|
|
31956
|
-
const zh = /* @__PURE__ */
|
|
31978
|
+
const zh = /* @__PURE__ */ q(bh, [["render", kh]]);
|
|
31957
31979
|
const Lh = {
|
|
31958
31980
|
name: "DateRangePicker",
|
|
31959
31981
|
props: {
|
|
@@ -32147,11 +32169,11 @@ function Th(t, e, o, i, a, r) {
|
|
|
32147
32169
|
onClick: r.handleOpenDatePicker
|
|
32148
32170
|
}, {
|
|
32149
32171
|
default: f(() => [
|
|
32150
|
-
|
|
32172
|
+
$(m(a.dateRangeStr), 1)
|
|
32151
32173
|
]),
|
|
32152
32174
|
_: 1
|
|
32153
32175
|
}, 8, ["height", "width", "onClick"]),
|
|
32154
|
-
a.showDatePicker ? (y(),
|
|
32176
|
+
a.showDatePicker ? (y(), O(b, {
|
|
32155
32177
|
key: 0,
|
|
32156
32178
|
class: "card-box d-flex flex-column border",
|
|
32157
32179
|
style: ae(r.getStyle)
|
|
@@ -32190,11 +32212,10 @@ function Th(t, e, o, i, a, r) {
|
|
|
32190
32212
|
class: "text-none text-body-2",
|
|
32191
32213
|
onClick: r.handleCancelDate
|
|
32192
32214
|
}, {
|
|
32193
|
-
default: f(() =>
|
|
32194
|
-
|
|
32195
|
-
])
|
|
32196
|
-
_: 1
|
|
32197
|
-
__: [1]
|
|
32215
|
+
default: f(() => [
|
|
32216
|
+
$(m(t.$t("actions.cancel")), 1)
|
|
32217
|
+
]),
|
|
32218
|
+
_: 1
|
|
32198
32219
|
}, 8, ["onClick"]),
|
|
32199
32220
|
p(l, {
|
|
32200
32221
|
size: "small",
|
|
@@ -32203,21 +32224,20 @@ function Th(t, e, o, i, a, r) {
|
|
|
32203
32224
|
class: "text-none text-body-2",
|
|
32204
32225
|
onClick: r.handleConfirmDate
|
|
32205
32226
|
}, {
|
|
32206
|
-
default: f(() =>
|
|
32207
|
-
|
|
32208
|
-
])
|
|
32209
|
-
_: 1
|
|
32210
|
-
__: [2]
|
|
32227
|
+
default: f(() => [
|
|
32228
|
+
$(m(t.$t("actions.confirm")), 1)
|
|
32229
|
+
]),
|
|
32230
|
+
_: 1
|
|
32211
32231
|
}, 8, ["onClick"])
|
|
32212
32232
|
]),
|
|
32213
32233
|
_: 1
|
|
32214
32234
|
})
|
|
32215
32235
|
]),
|
|
32216
32236
|
_: 1
|
|
32217
|
-
}, 8, ["style"])) :
|
|
32237
|
+
}, 8, ["style"])) : R("", !0)
|
|
32218
32238
|
], 512);
|
|
32219
32239
|
}
|
|
32220
|
-
const Sh = /* @__PURE__ */
|
|
32240
|
+
const Sh = /* @__PURE__ */ q(Lh, [["render", Th]]), Hh = {
|
|
32221
32241
|
install(t) {
|
|
32222
32242
|
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
32243
|
}
|
|
@@ -32229,10 +32249,10 @@ export {
|
|
|
32229
32249
|
zh as MapInitial,
|
|
32230
32250
|
fh as MapboxGL,
|
|
32231
32251
|
Hh as MapboxGLPlugin,
|
|
32232
|
-
|
|
32252
|
+
Te as ParticleSchema,
|
|
32233
32253
|
Io as PortDetail,
|
|
32234
32254
|
Xa as TropicalGL,
|
|
32235
32255
|
Do as Viewport,
|
|
32236
32256
|
je as WebGL,
|
|
32237
|
-
|
|
32257
|
+
ne as WebGLSchema
|
|
32238
32258
|
};
|