@idmwx/idmui-gl4 2.3.6 → 2.3.7
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 +524 -507
- package/dist/index.umd.cjs +9 -9
- package/dist/mapbox/src/components/bottombar/index.vue.d.ts +1 -0
- package/dist/mapbox/src/components/spot/index.vue.d.ts +3 -0
- package/dist/mapbox/src/components/timePlayer/index.vue.d.ts +1 -0
- package/dist/mapbox/src/index.vue.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var pe = (t, e, o) => (
|
|
1
|
+
var Ja = Object.defineProperty;
|
|
2
|
+
var Qa = (t, e, o) => e in t ? Ja(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var pe = (t, e, o) => (Qa(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ae from "axios";
|
|
5
5
|
import { useTheme as De } from "vuetify";
|
|
6
6
|
import { openBlock as g, createElementBlock as M, resolveComponent as v, createBlock as R, normalizeClass as ne, withCtx as u, createVNode as p, withModifiers as Me, createElementVNode as s, createCommentVNode as D, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ze, vShow as Ye, mergeProps as j, normalizeStyle as ee } from "vue";
|
|
7
7
|
import ze from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
9
|
import { LngLatHelper as q, TropicalHelper as Va, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
10
|
-
import { Meteo2Assist as
|
|
10
|
+
import { Meteo2Assist as To, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Mo from "echarts";
|
|
12
12
|
import * as G from "@turf/turf";
|
|
13
|
-
import { LayerHelper as
|
|
13
|
+
import { LayerHelper as Co, CompanyHelper as ei } from "@idm-plugin/tag2";
|
|
14
14
|
import ti from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as oi } from "@idm-plugin/tag";
|
|
16
16
|
const Y = (t, e) => {
|
|
@@ -1478,7 +1478,7 @@ const fi = {
|
|
|
1478
1478
|
async fetchForecastData() {
|
|
1479
1479
|
var i, a;
|
|
1480
1480
|
console.log(333, this.theme, this.simple, this.followList), this.loading = !0, this.meteoData = [];
|
|
1481
|
-
const { weatherModels: t, marineModels: e } =
|
|
1481
|
+
const { weatherModels: t, marineModels: e } = To.autoPickMeteoModel(this.forecastModel);
|
|
1482
1482
|
let o = {
|
|
1483
1483
|
lat: (i = this.port) == null ? void 0 : i.lat,
|
|
1484
1484
|
lng: (a = this.port) == null ? void 0 : a.lng,
|
|
@@ -1512,10 +1512,10 @@ const fi = {
|
|
|
1512
1512
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1513
1513
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1514
1514
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1515
|
-
var m, c, f, d, b,
|
|
1515
|
+
var m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe;
|
|
1516
1516
|
let r = {};
|
|
1517
|
-
const l = ((m =
|
|
1518
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((
|
|
1517
|
+
const l = ((m = To.pickHourly(t, S(i))) == null ? void 0 : m[0]) || {};
|
|
1518
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (c = l.weather) == null ? void 0 : c.url, r.temp = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = l == null ? void 0 : l.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.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((L = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((O = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : O.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 = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.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 = (re = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((ue = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : ue.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((me = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.height, 1) ?? "-", r.swellDir = (he = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((A = (de = l == null ? void 0 : l.wave) == null ? void 0 : de.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1519
1519
|
});
|
|
1520
1520
|
},
|
|
1521
1521
|
handleTide() {
|
|
@@ -1684,7 +1684,7 @@ const fi = {
|
|
|
1684
1684
|
}, ki = { class: "summary-box" }, zi = { class: "d-flex justify-space-between align-center py-2" }, Li = { class: "d-flex justify-center align-center text-h6 ga-2" }, Pi = {
|
|
1685
1685
|
class: "multi-color-icon",
|
|
1686
1686
|
"aria-hidden": "true"
|
|
1687
|
-
},
|
|
1687
|
+
}, Ti = ["xlink:href"], Ci = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Mi = { class: "w-100 d-flex justify-start align-center" }, Si = { class: "w-30 text-label font-weight-400" }, Di = { class: "flex-1-1-0" }, Ii = { class: "w-100 d-flex justify-start align-center" }, Ri = { class: "w-30 text-label font-weight-400" }, Ai = { class: "flex-1-1-0" }, Oi = { class: "w-100 d-flex justify-start align-center" }, Bi = { class: "w-30 text-label font-weight-400" }, ji = { class: "flex-1-1-0" }, Ei = { class: "table-box w-100 mt-2" }, Ni = { class: "w-100 d-flex justify-space-between align-center py-2" }, Fi = { class: "d-flex justify-center align-center text-h6 ga-2" }, Hi = {
|
|
1688
1688
|
class: "multi-color-icon",
|
|
1689
1689
|
"aria-hidden": "true"
|
|
1690
1690
|
}, Gi = ["xlink:href"], Wi = {
|
|
@@ -1697,7 +1697,7 @@ const fi = {
|
|
|
1697
1697
|
}, Vi = {
|
|
1698
1698
|
key: 0,
|
|
1699
1699
|
class: ""
|
|
1700
|
-
}, Zi = { class: "px-1 text-center" }, Yi = ["src"], Xi = { key: 1 }, qi = { class: "px-1 text-center" }, Ki = ["src"],
|
|
1700
|
+
}, Zi = { class: "px-1 text-center" }, Yi = ["src"], Xi = { key: 1 }, qi = { class: "px-1 text-center" }, Ki = ["src"], $i = { key: 1 }, Ji = { class: "px-1 text-center" }, Qi = ["src"], es = { key: 1 }, ts = { class: "px-1 text-center" }, os = ["src"], as = { key: 1 }, is = { class: "table-box w-100 mt-2 d-flex flex-column justify-start align-center" }, ss = { class: "w-100 d-flex justify-space-between align-center py-2" }, rs = { class: "d-flex justify-center align-center text-h6 ga-2" }, ls = {
|
|
1701
1701
|
class: "multi-color-icon",
|
|
1702
1702
|
"aria-hidden": "true"
|
|
1703
1703
|
}, ns = ["xlink:href"], cs = { class: "text-body-2 ga-2" }, ms = {
|
|
@@ -1724,16 +1724,16 @@ function bs(t, e, o, i, a, r) {
|
|
|
1724
1724
|
class: ne(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1725
1725
|
}, {
|
|
1726
1726
|
default: u(() => {
|
|
1727
|
-
var b,
|
|
1727
|
+
var b, w, _;
|
|
1728
1728
|
return [
|
|
1729
1729
|
p(m, { class: "w-100" }, {
|
|
1730
1730
|
default: u(() => {
|
|
1731
|
-
var y, z,
|
|
1731
|
+
var y, z, T, B, I, x;
|
|
1732
1732
|
return [
|
|
1733
1733
|
s("div", yi, [
|
|
1734
1734
|
s("div", bi, [
|
|
1735
1735
|
s("div", {
|
|
1736
|
-
class: ne(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (
|
|
1736
|
+
class: ne(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1737
1737
|
style: { width: "36px", height: "24px" }
|
|
1738
1738
|
}, null, 2),
|
|
1739
1739
|
s("div", null, n((B = o.port) == null ? void 0 : B.name), 1)
|
|
@@ -1806,7 +1806,7 @@ function bs(t, e, o, i, a, r) {
|
|
|
1806
1806
|
s("div", null, n(t.$t("port.port")), 1),
|
|
1807
1807
|
s("div", null, [
|
|
1808
1808
|
e[6] || (e[6] = s("label", null, "UN/LOCODE: ", -1)),
|
|
1809
|
-
s("span", null, n((
|
|
1809
|
+
s("span", null, n((x = o.port) == null ? void 0 : x.cntLoCode), 1)
|
|
1810
1810
|
])
|
|
1811
1811
|
])
|
|
1812
1812
|
];
|
|
@@ -1872,16 +1872,16 @@ function bs(t, e, o, i, a, r) {
|
|
|
1872
1872
|
(g(), M("svg", Pi, [
|
|
1873
1873
|
s("use", {
|
|
1874
1874
|
"xlink:href": `#icon-title-${o.theme}`
|
|
1875
|
-
}, null, 8,
|
|
1875
|
+
}, null, 8, Ti)
|
|
1876
1876
|
])),
|
|
1877
1877
|
s("div", null, n(t.$t("detail.summary")), 1)
|
|
1878
1878
|
]),
|
|
1879
1879
|
e[9] || (e[9] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1880
1880
|
]),
|
|
1881
|
-
s("div",
|
|
1881
|
+
s("div", Ci, [
|
|
1882
1882
|
s("div", Mi, [
|
|
1883
1883
|
s("div", Si, n(t.$t("port.region")), 1),
|
|
1884
|
-
s("div", Di, n(((
|
|
1884
|
+
s("div", Di, n(((w = o.port) == null ? void 0 : w.region) ?? ((_ = o.port) == null ? void 0 : _.city) ?? "-"), 1)
|
|
1885
1885
|
]),
|
|
1886
1886
|
s("div", Ii, [
|
|
1887
1887
|
s("div", Ri, n(t.$t("port.position")), 1),
|
|
@@ -1955,14 +1955,14 @@ function bs(t, e, o, i, a, r) {
|
|
|
1955
1955
|
key: 0,
|
|
1956
1956
|
src: y == null ? void 0 : y.value1,
|
|
1957
1957
|
style: { height: "30px" }
|
|
1958
|
-
}, null, 8, Ki)) : (g(), M("span",
|
|
1958
|
+
}, null, 8, Ki)) : (g(), M("span", $i, n((y == null ? void 0 : y.value1) ?? "-"), 1))
|
|
1959
1959
|
]),
|
|
1960
|
-
s("td",
|
|
1960
|
+
s("td", Ji, [
|
|
1961
1961
|
y.img ? (g(), M("img", {
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
src: y == null ? void 0 : y.value2,
|
|
1964
1964
|
style: { height: "30px" }
|
|
1965
|
-
}, null, 8,
|
|
1965
|
+
}, null, 8, Qi)) : (g(), M("span", es, n((y == null ? void 0 : y.value2) ?? "-"), 1))
|
|
1966
1966
|
]),
|
|
1967
1967
|
s("td", ts, [
|
|
1968
1968
|
y.img ? (g(), M("img", {
|
|
@@ -2017,9 +2017,9 @@ function bs(t, e, o, i, a, r) {
|
|
|
2017
2017
|
s("th", us, n(t.$t("tide.height")) + " ( m )", 1)
|
|
2018
2018
|
]),
|
|
2019
2019
|
(g(!0), M(xe, null, ke(a.tideTableData, (y, z) => {
|
|
2020
|
-
var
|
|
2020
|
+
var T;
|
|
2021
2021
|
return g(), M("tr", { key: z }, [
|
|
2022
|
-
s("td", gs, n(t.$t(`tide.${(
|
|
2022
|
+
s("td", gs, n(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
2023
2023
|
s("td", fs, n(r.computeLocalTime(y == null ? void 0 : y.date, o.port, "MM-DD HH:mm")), 1),
|
|
2024
2024
|
s("td", ys, n((y == null ? void 0 : y.height) ?? "-") + " m", 1)
|
|
2025
2025
|
]);
|
|
@@ -2224,7 +2224,7 @@ const zs = /* @__PURE__ */ Y(ws, [["render", ks], ["__scopeId", "data-v-0c0f27d3
|
|
|
2224
2224
|
function Ps(t, e, o, i, a, r) {
|
|
2225
2225
|
return g(), M("div");
|
|
2226
2226
|
}
|
|
2227
|
-
const
|
|
2227
|
+
const Ts = /* @__PURE__ */ Y(Ls, [["render", Ps]]), Cs = {
|
|
2228
2228
|
name: "IdmTimezone",
|
|
2229
2229
|
props: {
|
|
2230
2230
|
map: {
|
|
@@ -2430,7 +2430,7 @@ const Cs = /* @__PURE__ */ Y(Ls, [["render", Ps]]), Ts = {
|
|
|
2430
2430
|
function Ms(t, e, o, i, a, r) {
|
|
2431
2431
|
return g(), M("div");
|
|
2432
2432
|
}
|
|
2433
|
-
const Ss = /* @__PURE__ */ Y(
|
|
2433
|
+
const Ss = /* @__PURE__ */ Y(Cs, [["render", Ms]]), Ds = {
|
|
2434
2434
|
name: "IdmVoluntaryReportingArea",
|
|
2435
2435
|
props: {
|
|
2436
2436
|
map: {
|
|
@@ -3074,7 +3074,7 @@ const qs = {
|
|
|
3074
3074
|
this.$emit("close");
|
|
3075
3075
|
}
|
|
3076
3076
|
}
|
|
3077
|
-
}, Ks = { class: "d-flex justify-space-between align-center" },
|
|
3077
|
+
}, Ks = { class: "d-flex justify-space-between align-center" }, $s = { class: "d-flex justify-start text-h5 my-2" }, Js = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, Qs = { class: "summary-box w-100" }, er = { class: "d-flex justify-space-between align-center py-2" }, tr = { class: "d-flex justify-center align-center text-h6 ga-2" }, or = {
|
|
3078
3078
|
class: "multi-color-icon",
|
|
3079
3079
|
"aria-hidden": "true"
|
|
3080
3080
|
}, ar = ["xlink:href"], ir = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, sr = { class: "w-100 d-flex justify-start align-center" }, rr = { class: "w-30 text-label font-weight-400" }, lr = { class: "flex-1-1-0" }, nr = { class: "w-100 d-flex justify-start align-center" }, cr = { class: "w-30 text-label font-weight-400" }, mr = { class: "flex-1-1-0" }, hr = { class: "w-100 d-flex justify-start align-center" }, dr = { class: "w-30 text-label font-weight-400" }, pr = { class: "flex-1-1-0" }, ur = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, gr = { class: "w-100 d-flex justify-space-between align-center py-2" }, fr = { class: "d-flex justify-center align-center text-h6 ga-2" }, yr = {
|
|
@@ -3098,21 +3098,21 @@ const qs = {
|
|
|
3098
3098
|
class: "px-1 text-center text-label font-weight-400",
|
|
3099
3099
|
width: "120"
|
|
3100
3100
|
}, zr = { class: "px-1 text-center" }, Lr = { class: "px-1 text-center" }, Pr = { class: "px-1 text-center" };
|
|
3101
|
-
function
|
|
3101
|
+
function Tr(t, e, o, i, a, r) {
|
|
3102
3102
|
const l = v("VBtn"), m = v("v-card-title"), c = v("v-divider"), f = v("VBtnToggle"), d = v("v-card");
|
|
3103
3103
|
return g(), R(d, {
|
|
3104
3104
|
class: ne(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
3105
3105
|
}, {
|
|
3106
3106
|
default: u(() => {
|
|
3107
|
-
var b,
|
|
3107
|
+
var b, w;
|
|
3108
3108
|
return [
|
|
3109
3109
|
p(m, { class: "w-100" }, {
|
|
3110
3110
|
default: u(() => {
|
|
3111
|
-
var
|
|
3111
|
+
var _;
|
|
3112
3112
|
return [
|
|
3113
3113
|
s("div", Ks, [
|
|
3114
|
-
s("div",
|
|
3115
|
-
s("div", null, n((
|
|
3114
|
+
s("div", $s, [
|
|
3115
|
+
s("div", null, n((_ = o.station) == null ? void 0 : _.name), 1)
|
|
3116
3116
|
]),
|
|
3117
3117
|
p(l, {
|
|
3118
3118
|
icon: "",
|
|
@@ -3128,7 +3128,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3128
3128
|
__: [1]
|
|
3129
3129
|
}, 8, ["onClick"])
|
|
3130
3130
|
]),
|
|
3131
|
-
s("div",
|
|
3131
|
+
s("div", Js, [
|
|
3132
3132
|
s("div", null, n(t.$t("tide.tideStation")), 1)
|
|
3133
3133
|
])
|
|
3134
3134
|
];
|
|
@@ -3139,7 +3139,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3139
3139
|
s("div", {
|
|
3140
3140
|
class: ne(["w-100 pt-0 pb-0 overflow-y-auto scroll", o.simple ? "px-3" : "px-5"])
|
|
3141
3141
|
}, [
|
|
3142
|
-
s("div",
|
|
3142
|
+
s("div", Qs, [
|
|
3143
3143
|
s("div", er, [
|
|
3144
3144
|
s("div", tr, [
|
|
3145
3145
|
(g(), M("svg", or, [
|
|
@@ -3153,7 +3153,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3153
3153
|
s("div", ir, [
|
|
3154
3154
|
s("div", sr, [
|
|
3155
3155
|
s("div", rr, n(t.$t("tide.region")), 1),
|
|
3156
|
-
s("div", lr, n(((b = o.station) == null ? void 0 : b.Country) ?? ((
|
|
3156
|
+
s("div", lr, n(((b = o.station) == null ? void 0 : b.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
3157
3157
|
]),
|
|
3158
3158
|
s("div", nr, [
|
|
3159
3159
|
s("div", cr, n(t.$t("tide.position")), 1),
|
|
@@ -3182,7 +3182,7 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3182
3182
|
}, [
|
|
3183
3183
|
p(f, {
|
|
3184
3184
|
modelValue: a.currentIndex,
|
|
3185
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3185
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.currentIndex = _),
|
|
3186
3186
|
class: "w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3187
3187
|
density: "compact",
|
|
3188
3188
|
group: "",
|
|
@@ -3191,15 +3191,15 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3191
3191
|
rounded: "1"
|
|
3192
3192
|
}, {
|
|
3193
3193
|
default: u(() => [
|
|
3194
|
-
(g(!0), M(xe, null, ke(r.dateList, (
|
|
3194
|
+
(g(!0), M(xe, null, ke(r.dateList, (_) => (g(), R(l, {
|
|
3195
3195
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3196
3196
|
density: "compact",
|
|
3197
3197
|
color: "primary",
|
|
3198
3198
|
height: "26",
|
|
3199
|
-
value:
|
|
3199
|
+
value: _.index
|
|
3200
3200
|
}, {
|
|
3201
3201
|
default: u(() => [
|
|
3202
|
-
K(n(
|
|
3202
|
+
K(n(_.label), 1)
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 2
|
|
3205
3205
|
}, 1032, ["value"]))), 256))
|
|
@@ -3214,12 +3214,12 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3214
3214
|
s("th", _r, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
3215
3215
|
s("th", kr, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3216
3216
|
]),
|
|
3217
|
-
(g(!0), M(xe, null, ke(a.tideTableData, (
|
|
3217
|
+
(g(!0), M(xe, null, ke(a.tideTableData, (_, y) => {
|
|
3218
3218
|
var z;
|
|
3219
3219
|
return g(), M("tr", { key: y }, [
|
|
3220
|
-
s("td", zr, n(t.$t(`tide.${(z =
|
|
3221
|
-
s("td", Lr, n(r.computeLocalTime(
|
|
3222
|
-
s("td", Pr, n((
|
|
3220
|
+
s("td", zr, n(t.$t(`tide.${(z = _ == null ? void 0 : _.type) == null ? void 0 : z.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3221
|
+
s("td", Lr, n(r.computeLocalTime(_ == null ? void 0 : _.date, o.station, "MM-DD HH:mm")), 1),
|
|
3222
|
+
s("td", Pr, n((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
|
|
3223
3223
|
]);
|
|
3224
3224
|
}), 128))
|
|
3225
3225
|
])
|
|
@@ -3232,11 +3232,11 @@ function Cr(t, e, o, i, a, r) {
|
|
|
3232
3232
|
_: 1
|
|
3233
3233
|
}, 8, ["class"]);
|
|
3234
3234
|
}
|
|
3235
|
-
const
|
|
3235
|
+
const Cr = /* @__PURE__ */ Y(qs, [["render", Tr], ["__scopeId", "data-v-fd2a220c"]]);
|
|
3236
3236
|
const Mr = {
|
|
3237
3237
|
name: "IdmTideStations",
|
|
3238
3238
|
components: {
|
|
3239
|
-
TideDetail:
|
|
3239
|
+
TideDetail: Cr
|
|
3240
3240
|
},
|
|
3241
3241
|
props: {
|
|
3242
3242
|
map: {
|
|
@@ -5406,14 +5406,14 @@ const Yr = {
|
|
|
5406
5406
|
if (e.properties) {
|
|
5407
5407
|
const b = e.properties;
|
|
5408
5408
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
5409
|
-
const
|
|
5409
|
+
const w = S(), _ = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), y = {
|
|
5410
5410
|
followId: b.id,
|
|
5411
5411
|
lat: b.lat,
|
|
5412
5412
|
lng: b.lng,
|
|
5413
5413
|
datetime: this.realTime,
|
|
5414
5414
|
forecastModel: this.forecastModel
|
|
5415
5415
|
};
|
|
5416
|
-
|
|
5416
|
+
_ >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchForecastData(y) : (d = (f = (c = (m = this.$parent) == null ? void 0 : m.$parent) == null ? void 0 : c.$refs) == null ? void 0 : f.idmSpot) == null || d.fetchHistoryData(y);
|
|
5417
5417
|
}
|
|
5418
5418
|
},
|
|
5419
5419
|
handleHover(t) {
|
|
@@ -5435,7 +5435,7 @@ const Yr = {
|
|
|
5435
5435
|
key: 0,
|
|
5436
5436
|
class: "d-flex justify-start align-center text-label"
|
|
5437
5437
|
};
|
|
5438
|
-
function
|
|
5438
|
+
function $r(t, e, o, i, a, r) {
|
|
5439
5439
|
const l = v("v-card-text"), m = v("v-card");
|
|
5440
5440
|
return Ze((g(), R(m, {
|
|
5441
5441
|
id: "idmFollowPositionInfo",
|
|
@@ -5462,8 +5462,8 @@ function Jr(t, e, o, i, a, r) {
|
|
|
5462
5462
|
[Ye, a.showInfo]
|
|
5463
5463
|
]);
|
|
5464
5464
|
}
|
|
5465
|
-
const
|
|
5466
|
-
const
|
|
5465
|
+
const Jr = /* @__PURE__ */ Y(Yr, [["render", $r], ["__scopeId", "data-v-82405c68"]]);
|
|
5466
|
+
const Qr = {
|
|
5467
5467
|
name: "IdmOtherLayerr",
|
|
5468
5468
|
components: {
|
|
5469
5469
|
IdmWarZone: si,
|
|
@@ -5471,7 +5471,7 @@ const $r = {
|
|
|
5471
5471
|
IdmEcaZone: hi,
|
|
5472
5472
|
IdmAlertZone: gi,
|
|
5473
5473
|
IdmPort: zs,
|
|
5474
|
-
IdmLoadLine:
|
|
5474
|
+
IdmLoadLine: Ts,
|
|
5475
5475
|
IdmTimezone: Ss,
|
|
5476
5476
|
IdmVRA: Rs,
|
|
5477
5477
|
IdmSpecialArea: Bs,
|
|
@@ -5483,7 +5483,7 @@ const $r = {
|
|
|
5483
5483
|
IdmIceAreas: Er,
|
|
5484
5484
|
IdmLatLng: Xa,
|
|
5485
5485
|
IdmFollowPort: Zr,
|
|
5486
|
-
IdmFollowPosition:
|
|
5486
|
+
IdmFollowPosition: Jr
|
|
5487
5487
|
},
|
|
5488
5488
|
props: {
|
|
5489
5489
|
simple: {
|
|
@@ -5545,7 +5545,7 @@ const $r = {
|
|
|
5545
5545
|
right: 10,
|
|
5546
5546
|
toggle: !1,
|
|
5547
5547
|
mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "dark",
|
|
5548
|
-
tagLayers: [...
|
|
5548
|
+
tagLayers: [...Co.OTHER_LAYERS.filter((t) => t.enabled)],
|
|
5549
5549
|
layerWeight: 0,
|
|
5550
5550
|
otherLayers: {},
|
|
5551
5551
|
activeOtherLayers: [],
|
|
@@ -5650,8 +5650,8 @@ const $r = {
|
|
|
5650
5650
|
})
|
|
5651
5651
|
);
|
|
5652
5652
|
(await Promise.all(l)).map((c) => {
|
|
5653
|
-
var b,
|
|
5654
|
-
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (
|
|
5653
|
+
var b, w, _;
|
|
5654
|
+
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (_ = (w = c == null ? void 0 : c.config) == null ? void 0 : w.headers) == null ? void 0 : _.key;
|
|
5655
5655
|
this.otherLayers[d] = f;
|
|
5656
5656
|
});
|
|
5657
5657
|
}
|
|
@@ -5689,8 +5689,8 @@ const $r = {
|
|
|
5689
5689
|
class: "border rounded-sm"
|
|
5690
5690
|
}, cl = { class: "text-body-2 text-center pt-2" };
|
|
5691
5691
|
function ml(t, e, o, i, a, r) {
|
|
5692
|
-
var
|
|
5693
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"),
|
|
5692
|
+
var $, re, le, ue, ie, me, ge, he, de;
|
|
5693
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"), w = v("VCard"), _ = v("IdmLatLng"), y = v("IdmTerminator"), z = v("IdmTimezone"), T = v("IdmPort"), B = v("IdmAlertZone"), I = v("IdmTideStations"), x = v("IdmEcaZone"), L = v("IdmWarZone"), P = v("IdmGmdssArea"), C = v("IdmLoadLine"), k = v("IdmWorldMarine"), O = v("IdmVRA"), F = v("IdmSpecialArea"), V = v("IdmWorld12nm"), X = v("IdmChinaRoute"), Z = v("IdmIceAreas"), J = v("IdmFollowPort"), Q = v("IdmFollowPosition");
|
|
5694
5694
|
return g(), M("div", el, [
|
|
5695
5695
|
s("div", {
|
|
5696
5696
|
class: ne(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -5745,7 +5745,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5745
5745
|
s("div", {
|
|
5746
5746
|
class: ne(["list-box w-100 flex-1-1-0 scroll overflow-y-auto", o.simple ? "pl-3 pr-1" : "pl-4 pr-2"])
|
|
5747
5747
|
}, [
|
|
5748
|
-
p(
|
|
5748
|
+
p(w, {
|
|
5749
5749
|
class: "block-bg mx-auto mb-2",
|
|
5750
5750
|
elevation: "0"
|
|
5751
5751
|
}, {
|
|
@@ -5795,7 +5795,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5795
5795
|
]),
|
|
5796
5796
|
_: 1
|
|
5797
5797
|
}),
|
|
5798
|
-
p(
|
|
5798
|
+
p(w, {
|
|
5799
5799
|
class: "block-bg mx-auto mb-2",
|
|
5800
5800
|
elevation: "0"
|
|
5801
5801
|
}, {
|
|
@@ -5831,7 +5831,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5831
5831
|
]),
|
|
5832
5832
|
_: 1
|
|
5833
5833
|
}),
|
|
5834
|
-
p(
|
|
5834
|
+
p(w, {
|
|
5835
5835
|
class: "block-bg mx-auto mb-2",
|
|
5836
5836
|
elevation: "0"
|
|
5837
5837
|
}, {
|
|
@@ -5867,7 +5867,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5867
5867
|
]),
|
|
5868
5868
|
_: 1
|
|
5869
5869
|
}),
|
|
5870
|
-
p(
|
|
5870
|
+
p(w, {
|
|
5871
5871
|
class: "block-bg mx-auto mb-3",
|
|
5872
5872
|
elevation: "0"
|
|
5873
5873
|
}, {
|
|
@@ -5915,7 +5915,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5915
5915
|
})
|
|
5916
5916
|
], 2)
|
|
5917
5917
|
], 6),
|
|
5918
|
-
o.map ? (g(), R(
|
|
5918
|
+
o.map ? (g(), R(_, j({
|
|
5919
5919
|
key: 0,
|
|
5920
5920
|
simple: o.simple,
|
|
5921
5921
|
map: o.map,
|
|
@@ -5925,7 +5925,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5925
5925
|
o.map ? (g(), R(y, j({
|
|
5926
5926
|
key: 1,
|
|
5927
5927
|
map: o.map,
|
|
5928
|
-
area: (
|
|
5928
|
+
area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
|
|
5929
5929
|
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
|
|
5930
5930
|
o.map ? (g(), R(z, j({
|
|
5931
5931
|
key: 2,
|
|
@@ -5933,7 +5933,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5933
5933
|
zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"],
|
|
5934
5934
|
realTime: o.realTime
|
|
5935
5935
|
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : D("", !0),
|
|
5936
|
-
o.map ? (g(), R(
|
|
5936
|
+
o.map ? (g(), R(T, j({
|
|
5937
5937
|
key: 3,
|
|
5938
5938
|
ref: "idmPorts",
|
|
5939
5939
|
simple: o.simple,
|
|
@@ -5968,7 +5968,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
5968
5968
|
forecastModel: o.forecastModel,
|
|
5969
5969
|
"before-layer": "empty-layer-3"
|
|
5970
5970
|
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5971
|
-
o.map ? (g(), R(
|
|
5971
|
+
o.map ? (g(), R(x, j({
|
|
5972
5972
|
key: 6,
|
|
5973
5973
|
map: o.map,
|
|
5974
5974
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
@@ -5983,12 +5983,12 @@ function ml(t, e, o, i, a, r) {
|
|
|
5983
5983
|
map: o.map,
|
|
5984
5984
|
area: (ge = a.otherLayers) == null ? void 0 : ge["gmdss-areas"]
|
|
5985
5985
|
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5986
|
-
o.map ? (g(), R(
|
|
5986
|
+
o.map ? (g(), R(C, j({
|
|
5987
5987
|
key: 9,
|
|
5988
5988
|
map: o.map,
|
|
5989
5989
|
show: a.checkList.includes("load-lines")
|
|
5990
5990
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5991
|
-
o.map ? (g(), R(
|
|
5991
|
+
o.map ? (g(), R(k, j({
|
|
5992
5992
|
key: 10,
|
|
5993
5993
|
map: o.map,
|
|
5994
5994
|
token: o.token,
|
|
@@ -6021,7 +6021,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
6021
6021
|
map: o.map,
|
|
6022
6022
|
show: a.checkList.includes("ice-areas")
|
|
6023
6023
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
6024
|
-
o.map ? (g(), R(
|
|
6024
|
+
o.map ? (g(), R(J, j({
|
|
6025
6025
|
key: 16,
|
|
6026
6026
|
ref: "idmFollowPort",
|
|
6027
6027
|
simple: o.simple,
|
|
@@ -6032,7 +6032,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
6032
6032
|
"forecast-model": o.forecastModel,
|
|
6033
6033
|
realTime: o.realTime
|
|
6034
6034
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
6035
|
-
o.map ? (g(), R(
|
|
6035
|
+
o.map ? (g(), R(Q, j({
|
|
6036
6036
|
key: 17,
|
|
6037
6037
|
ref: "idmFollowPosition",
|
|
6038
6038
|
simple: o.simple,
|
|
@@ -6043,7 +6043,7 @@ function ml(t, e, o, i, a, r) {
|
|
|
6043
6043
|
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) : D("", !0)
|
|
6044
6044
|
]);
|
|
6045
6045
|
}
|
|
6046
|
-
const hl = /* @__PURE__ */ Y(
|
|
6046
|
+
const hl = /* @__PURE__ */ Y(Qr, [["render", ml]]);
|
|
6047
6047
|
class Io {
|
|
6048
6048
|
constructor(e) {
|
|
6049
6049
|
pe(this, "map");
|
|
@@ -6094,8 +6094,8 @@ class Io {
|
|
|
6094
6094
|
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
6095
6095
|
if (!e)
|
|
6096
6096
|
return [];
|
|
6097
|
-
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b,
|
|
6098
|
-
return [b,
|
|
6097
|
+
const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [m, c] = this.convertNLng(a[0]), [f, d] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([m, a[1]], o), _ = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
|
|
6098
|
+
return [b, w, f + _, d];
|
|
6099
6099
|
}
|
|
6100
6100
|
/**
|
|
6101
6101
|
* [视窗边界像素宽度]
|
|
@@ -6278,10 +6278,10 @@ class Fe {
|
|
|
6278
6278
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6279
6279
|
};
|
|
6280
6280
|
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), m != null && m.uvRange && (m != null && m.sRange) && (d.uvRange && o.uniform2f(d.uvRange, m.uvRange[0], m.uvRange[1]), d.sRange && o.uniform2f(d.sRange, m.sRange[0], m.sRange[1])), d.scale && o.uniform1f(d.scale, (m == null ? void 0 : m.scale) || 1);
|
|
6281
|
-
const b = e.getBoundPixel(),
|
|
6282
|
-
for (const y of
|
|
6283
|
-
const z = (y[0] - b[0]) * e.ratio,
|
|
6284
|
-
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER,
|
|
6281
|
+
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, _ = e.getWorldCopy(b, w);
|
|
6282
|
+
for (const y of _) {
|
|
6283
|
+
const z = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [I, x, L, P] = [z, B + z, T, B + T], C = new Float32Array([I, L, x, L, I, P, I, P, x, L, x, P]);
|
|
6284
|
+
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6285
6285
|
}
|
|
6286
6286
|
} catch (d) {
|
|
6287
6287
|
console.log(`render failed...${d}`);
|
|
@@ -6989,8 +6989,8 @@ const wl = /* @__PURE__ */ Y(fl, [["render", bl]]), xl = {
|
|
|
6989
6989
|
c.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
6990
6990
|
const d = [c];
|
|
6991
6991
|
let b = 0;
|
|
6992
|
-
d.forEach((
|
|
6993
|
-
|
|
6992
|
+
d.forEach((w) => {
|
|
6993
|
+
w.onload = () => {
|
|
6994
6994
|
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", c), b === 1 && this.map.addLayer(
|
|
6995
6995
|
{
|
|
6996
6996
|
id: this.directionLayer,
|
|
@@ -7217,7 +7217,7 @@ function Ll(t, e, o, i, a, r) {
|
|
|
7217
7217
|
])) : D("", !0);
|
|
7218
7218
|
}
|
|
7219
7219
|
const Pl = /* @__PURE__ */ Y(kl, [["render", Ll]]);
|
|
7220
|
-
const
|
|
7220
|
+
const Tl = {
|
|
7221
7221
|
name: "IdmSigWave",
|
|
7222
7222
|
props: {
|
|
7223
7223
|
simple: {
|
|
@@ -7326,10 +7326,10 @@ const Cl = {
|
|
|
7326
7326
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7327
7327
|
}
|
|
7328
7328
|
}
|
|
7329
|
-
},
|
|
7329
|
+
}, Cl = { key: 0 };
|
|
7330
7330
|
function Ml(t, e, o, i, a, r) {
|
|
7331
7331
|
var l;
|
|
7332
|
-
return (l = o.factor) != null && l.active ? (g(), M("div",
|
|
7332
|
+
return (l = o.factor) != null && l.active ? (g(), M("div", Cl, [
|
|
7333
7333
|
s("div", {
|
|
7334
7334
|
class: "legend-bars-gl4 sig-wave",
|
|
7335
7335
|
style: ee({ right: a.right + "px" })
|
|
@@ -7344,7 +7344,7 @@ function Ml(t, e, o, i, a, r) {
|
|
|
7344
7344
|
]), 4)
|
|
7345
7345
|
])) : D("", !0);
|
|
7346
7346
|
}
|
|
7347
|
-
const Sl = /* @__PURE__ */ Y(
|
|
7347
|
+
const Sl = /* @__PURE__ */ Y(Tl, [["render", Ml], ["__scopeId", "data-v-c6137292"]]), Dl = {
|
|
7348
7348
|
name: "IdmSigWaveHeight",
|
|
7349
7349
|
props: {
|
|
7350
7350
|
map: {
|
|
@@ -8089,7 +8089,7 @@ const ql = {
|
|
|
8089
8089
|
}
|
|
8090
8090
|
}
|
|
8091
8091
|
}, Kl = { key: 0 };
|
|
8092
|
-
function
|
|
8092
|
+
function $l(t, e, o, i, a, r) {
|
|
8093
8093
|
var l;
|
|
8094
8094
|
return (l = o.factor) != null && l.active ? (g(), M("div", Kl, [
|
|
8095
8095
|
s("div", {
|
|
@@ -8106,8 +8106,8 @@ function Jl(t, e, o, i, a, r) {
|
|
|
8106
8106
|
]), 4)
|
|
8107
8107
|
])) : D("", !0);
|
|
8108
8108
|
}
|
|
8109
|
-
const
|
|
8110
|
-
const
|
|
8109
|
+
const Jl = /* @__PURE__ */ Y(ql, [["render", $l]]);
|
|
8110
|
+
const Ql = {
|
|
8111
8111
|
name: "IdmPrecip3h",
|
|
8112
8112
|
props: {
|
|
8113
8113
|
simple: {
|
|
@@ -8227,7 +8227,7 @@ function tn(t, e, o, i, a, r) {
|
|
|
8227
8227
|
]), 4)
|
|
8228
8228
|
])) : D("", !0);
|
|
8229
8229
|
}
|
|
8230
|
-
const on = /* @__PURE__ */ Y(
|
|
8230
|
+
const on = /* @__PURE__ */ Y(Ql, [["render", tn]]);
|
|
8231
8231
|
const an = {
|
|
8232
8232
|
name: "IdmVisibility",
|
|
8233
8233
|
props: {
|
|
@@ -8587,7 +8587,7 @@ const fn = {
|
|
|
8587
8587
|
IdmPrmsl: Fl,
|
|
8588
8588
|
IdmIceEdge: Ul,
|
|
8589
8589
|
IdmIceCover: Xl,
|
|
8590
|
-
IdmIceThickness:
|
|
8590
|
+
IdmIceThickness: Jl,
|
|
8591
8591
|
IdmPrecip3h: on,
|
|
8592
8592
|
IdmVisibility: ln,
|
|
8593
8593
|
IdmWaterTemp: hn,
|
|
@@ -8650,8 +8650,8 @@ const fn = {
|
|
|
8650
8650
|
toggle: !1,
|
|
8651
8651
|
autoActive: !0,
|
|
8652
8652
|
weatherWeight: 0,
|
|
8653
|
-
allLayers: [...
|
|
8654
|
-
tagLayers: [...
|
|
8653
|
+
allLayers: [...Co.WEATHER_LAYERS],
|
|
8654
|
+
tagLayers: [...Co.WEATHER_LAYERS.filter((t) => !t.hide)],
|
|
8655
8655
|
checkList: [],
|
|
8656
8656
|
renderKey: "",
|
|
8657
8657
|
iceToggleValue: void 0,
|
|
@@ -8864,23 +8864,23 @@ const fn = {
|
|
|
8864
8864
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8865
8865
|
},
|
|
8866
8866
|
async fetchWeatherLayers(t = {}) {
|
|
8867
|
-
var a, r, l, m, c, f, d, b,
|
|
8867
|
+
var a, r, l, m, c, f, d, b, w;
|
|
8868
8868
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8869
8869
|
let o = 0, i = 0;
|
|
8870
8870
|
if (this.map) {
|
|
8871
|
-
const
|
|
8871
|
+
const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), z = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8872
8872
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8873
|
-
const
|
|
8873
|
+
const T = Co.WEATHER_LAYERS.find((B) => {
|
|
8874
8874
|
var I;
|
|
8875
8875
|
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8876
8876
|
});
|
|
8877
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
8877
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
|
|
8878
8878
|
}
|
|
8879
8879
|
if (this.weatherWeight > 0) {
|
|
8880
|
-
let
|
|
8881
|
-
if (
|
|
8880
|
+
let T = this.weatherWeight;
|
|
8881
|
+
if (T > 0) {
|
|
8882
8882
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Ae.get(
|
|
8883
|
-
`${B}/api/arc/weather/layers2/links?l=${
|
|
8883
|
+
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${_}&bbox=${z}&t=${this.realTime}`,
|
|
8884
8884
|
{
|
|
8885
8885
|
headers: {
|
|
8886
8886
|
Authorization: this.defaultMeteoToken
|
|
@@ -8888,45 +8888,45 @@ const fn = {
|
|
|
8888
8888
|
}
|
|
8889
8889
|
);
|
|
8890
8890
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m = I == null ? void 0 : I.data) == null ? void 0 : m.code) === 0) {
|
|
8891
|
-
const
|
|
8892
|
-
for (const
|
|
8891
|
+
const x = (c = I == null ? void 0 : I.data) == null ? void 0 : c.data, L = [];
|
|
8892
|
+
for (const C in x)
|
|
8893
8893
|
L.push(
|
|
8894
|
-
Ae.get(
|
|
8894
|
+
Ae.get(x[C], {
|
|
8895
8895
|
headers: {
|
|
8896
8896
|
Authorization: this.defaultMeteoToken,
|
|
8897
|
-
key:
|
|
8897
|
+
key: C
|
|
8898
8898
|
},
|
|
8899
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8900
|
-
}).catch((
|
|
8901
|
-
console.log(`[${
|
|
8899
|
+
responseType: /\.(jpg|png)$/.test(x[C]) ? "blob" : "json"
|
|
8900
|
+
}).catch((k) => {
|
|
8901
|
+
console.log(`[${C}] fetch layer error: ${k}`);
|
|
8902
8902
|
})
|
|
8903
8903
|
);
|
|
8904
8904
|
const P = await Promise.all(L);
|
|
8905
|
-
this.weatherLayers = {}, P.map((
|
|
8905
|
+
this.weatherLayers = {}, P.map((C) => {
|
|
8906
8906
|
var F, V, X, Z;
|
|
8907
|
-
const
|
|
8908
|
-
let O = (X = (V =
|
|
8909
|
-
O &&
|
|
8910
|
-
raw:
|
|
8911
|
-
type: ((Z =
|
|
8907
|
+
const k = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8908
|
+
let O = (X = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : X.key;
|
|
8909
|
+
O && k && (this.weatherLayers[O] = {
|
|
8910
|
+
raw: k,
|
|
8911
|
+
type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8912
8912
|
etime: I.data.etime
|
|
8913
8913
|
});
|
|
8914
8914
|
});
|
|
8915
8915
|
}
|
|
8916
8916
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8917
|
-
const
|
|
8917
|
+
const x = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8918
8918
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8919
8919
|
type: "json",
|
|
8920
|
-
direction:
|
|
8920
|
+
direction: x,
|
|
8921
8921
|
height: { raw: L },
|
|
8922
8922
|
etime: I.data.etime
|
|
8923
8923
|
};
|
|
8924
8924
|
}
|
|
8925
8925
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8926
|
-
const
|
|
8926
|
+
const x = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, L = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
8927
8927
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8928
8928
|
type: "json",
|
|
8929
|
-
direction:
|
|
8929
|
+
direction: x,
|
|
8930
8930
|
speed: { raw: L },
|
|
8931
8931
|
etime: I.data.etime
|
|
8932
8932
|
};
|
|
@@ -8989,64 +8989,64 @@ const fn = {
|
|
|
8989
8989
|
let e = 0, o = 0;
|
|
8990
8990
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8991
8991
|
if (i && a) {
|
|
8992
|
-
const
|
|
8993
|
-
for (const
|
|
8992
|
+
const w = q.convertToStdLng(i._sw.lng), _ = q.convertToStdLng(i._ne.lng), y = Math.floor(i._sw.lat), z = Math.ceil(i._ne.lat);
|
|
8993
|
+
for (const T in this.weatherLayers) {
|
|
8994
8994
|
let B = !1;
|
|
8995
|
-
if (this.weatherLayers[
|
|
8995
|
+
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8996
8996
|
let I = [];
|
|
8997
|
-
if (
|
|
8997
|
+
if (T === "swell") {
|
|
8998
8998
|
B = !0;
|
|
8999
|
-
const
|
|
9000
|
-
for (const P in
|
|
8999
|
+
const x = ((m = this.weatherLayers[T]) == null ? void 0 : m.direction) || {};
|
|
9000
|
+
for (const P in x)
|
|
9001
9001
|
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9002
|
-
const
|
|
9003
|
-
|
|
9004
|
-
var F, V, X, Z,
|
|
9002
|
+
const C = x[P].lng;
|
|
9003
|
+
w > _ ? C.forEach((k, O) => {
|
|
9004
|
+
var F, V, X, Z, J, Q;
|
|
9005
9005
|
if (a < 2) {
|
|
9006
|
-
if ((
|
|
9007
|
-
const
|
|
9008
|
-
val: ((F =
|
|
9009
|
-
spd: (X =
|
|
9006
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9007
|
+
const $ = G.point([k, P], {
|
|
9008
|
+
val: ((F = x[P].val) == null ? void 0 : F[O]) || ((V = x[P].dir) == null ? void 0 : V[O]),
|
|
9009
|
+
spd: (X = x[P].spd) == null ? void 0 : X[O]
|
|
9010
9010
|
});
|
|
9011
|
-
I.push(
|
|
9011
|
+
I.push($);
|
|
9012
9012
|
}
|
|
9013
|
-
} else if ((
|
|
9014
|
-
const
|
|
9015
|
-
val: ((Z =
|
|
9016
|
-
spd: (
|
|
9013
|
+
} else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9014
|
+
const $ = G.point([k, P], {
|
|
9015
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[O]) || ((J = x[P].dir) == null ? void 0 : J[O]),
|
|
9016
|
+
spd: (Q = x[P].spd) == null ? void 0 : Q[O]
|
|
9017
9017
|
});
|
|
9018
|
-
I.push(
|
|
9018
|
+
I.push($);
|
|
9019
9019
|
}
|
|
9020
|
-
}) :
|
|
9021
|
-
var F, V, X, Z,
|
|
9022
|
-
if (
|
|
9023
|
-
if ((
|
|
9024
|
-
const
|
|
9025
|
-
val: ((F =
|
|
9026
|
-
spd: (X =
|
|
9020
|
+
}) : C.forEach((k, O) => {
|
|
9021
|
+
var F, V, X, Z, J, Q;
|
|
9022
|
+
if (w < 2) {
|
|
9023
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9024
|
+
const $ = G.point([k, P], {
|
|
9025
|
+
val: ((F = x[P].val) == null ? void 0 : F[O]) || ((V = x[P].dir) == null ? void 0 : V[O]),
|
|
9026
|
+
spd: (X = x[P].spd) == null ? void 0 : X[O]
|
|
9027
9027
|
});
|
|
9028
|
-
I.push(
|
|
9028
|
+
I.push($);
|
|
9029
9029
|
}
|
|
9030
|
-
} else if (
|
|
9031
|
-
const
|
|
9032
|
-
val: ((Z =
|
|
9033
|
-
spd: (
|
|
9030
|
+
} else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9031
|
+
const $ = G.point([k, P], {
|
|
9032
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[O]) || ((J = x[P].dir) == null ? void 0 : J[O]),
|
|
9033
|
+
spd: (Q = x[P].spd) == null ? void 0 : Q[O]
|
|
9034
9034
|
});
|
|
9035
|
-
I.push(
|
|
9035
|
+
I.push($);
|
|
9036
9036
|
}
|
|
9037
9037
|
});
|
|
9038
9038
|
}
|
|
9039
9039
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
9040
|
-
const L = this.weatherLayers[
|
|
9040
|
+
const L = this.weatherLayers[T].height;
|
|
9041
9041
|
if (L) {
|
|
9042
9042
|
if (!L.data) {
|
|
9043
9043
|
const P = [];
|
|
9044
|
-
for (const
|
|
9045
|
-
const
|
|
9046
|
-
for (const O of
|
|
9044
|
+
for (const C in (c = L.raw) == null ? void 0 : c.LineString) {
|
|
9045
|
+
const k = L.raw.LineString[C];
|
|
9046
|
+
for (const O of k)
|
|
9047
9047
|
P.push(
|
|
9048
9048
|
G.lineString(O, {
|
|
9049
|
-
val: Number(
|
|
9049
|
+
val: Number(C)
|
|
9050
9050
|
})
|
|
9051
9051
|
);
|
|
9052
9052
|
L.data = G.featureCollection(P);
|
|
@@ -9058,142 +9058,142 @@ const fn = {
|
|
|
9058
9058
|
}
|
|
9059
9059
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
9060
9060
|
}
|
|
9061
|
-
} else if (
|
|
9061
|
+
} else if (T === "current") {
|
|
9062
9062
|
B = !0;
|
|
9063
|
-
const
|
|
9064
|
-
for (const P in
|
|
9063
|
+
const x = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
9064
|
+
for (const P in x)
|
|
9065
9065
|
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9066
|
-
const
|
|
9067
|
-
|
|
9068
|
-
var F, V, X, Z,
|
|
9066
|
+
const C = x[P].lng;
|
|
9067
|
+
w > _ ? C.forEach((k, O) => {
|
|
9068
|
+
var F, V, X, Z, J, Q;
|
|
9069
9069
|
if (a < 2) {
|
|
9070
|
-
if ((
|
|
9071
|
-
const
|
|
9072
|
-
val: ((F =
|
|
9073
|
-
spd: (X =
|
|
9070
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9071
|
+
const $ = G.point([k, P], {
|
|
9072
|
+
val: ((F = x[P].val) == null ? void 0 : F[O]) || ((V = x[P].dir) == null ? void 0 : V[O]),
|
|
9073
|
+
spd: (X = x[P].spd) == null ? void 0 : X[O]
|
|
9074
9074
|
});
|
|
9075
|
-
I.push(
|
|
9075
|
+
I.push($);
|
|
9076
9076
|
}
|
|
9077
|
-
} else if ((
|
|
9078
|
-
const
|
|
9079
|
-
val: ((Z =
|
|
9080
|
-
spd: (
|
|
9077
|
+
} else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9078
|
+
const $ = G.point([k, P], {
|
|
9079
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[O]) || ((J = x[P].dir) == null ? void 0 : J[O]),
|
|
9080
|
+
spd: (Q = x[P].spd) == null ? void 0 : Q[O]
|
|
9081
9081
|
});
|
|
9082
|
-
I.push(
|
|
9082
|
+
I.push($);
|
|
9083
9083
|
}
|
|
9084
|
-
}) :
|
|
9085
|
-
var F, V, X, Z,
|
|
9086
|
-
if (
|
|
9087
|
-
if ((
|
|
9088
|
-
const
|
|
9089
|
-
val: ((F =
|
|
9090
|
-
spd: (X =
|
|
9084
|
+
}) : C.forEach((k, O) => {
|
|
9085
|
+
var F, V, X, Z, J, Q;
|
|
9086
|
+
if (w < 2) {
|
|
9087
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
9088
|
+
const $ = G.point([k, P], {
|
|
9089
|
+
val: ((F = x[P].val) == null ? void 0 : F[O]) || ((V = x[P].dir) == null ? void 0 : V[O]),
|
|
9090
|
+
spd: (X = x[P].spd) == null ? void 0 : X[O]
|
|
9091
9091
|
});
|
|
9092
|
-
I.push(
|
|
9092
|
+
I.push($);
|
|
9093
9093
|
}
|
|
9094
|
-
} else if (
|
|
9095
|
-
const
|
|
9096
|
-
val: ((Z =
|
|
9097
|
-
spd: (
|
|
9094
|
+
} else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9095
|
+
const $ = G.point([k, P], {
|
|
9096
|
+
val: ((Z = x[P].val) == null ? void 0 : Z[O]) || ((J = x[P].dir) == null ? void 0 : J[O]),
|
|
9097
|
+
spd: (Q = x[P].spd) == null ? void 0 : Q[O]
|
|
9098
9098
|
});
|
|
9099
|
-
I.push(
|
|
9099
|
+
I.push($);
|
|
9100
9100
|
}
|
|
9101
9101
|
});
|
|
9102
9102
|
}
|
|
9103
9103
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
9104
|
-
const L = this.weatherLayers[
|
|
9104
|
+
const L = this.weatherLayers[T].speed;
|
|
9105
9105
|
if (L) {
|
|
9106
9106
|
if (!L.data) {
|
|
9107
|
-
const
|
|
9108
|
-
for (const
|
|
9109
|
-
const O = L.raw.Polygon[
|
|
9107
|
+
const C = [];
|
|
9108
|
+
for (const k in (d = L.raw) == null ? void 0 : d.Polygon) {
|
|
9109
|
+
const O = L.raw.Polygon[k];
|
|
9110
9110
|
for (const F of O)
|
|
9111
|
-
|
|
9111
|
+
C.push(
|
|
9112
9112
|
G.polygon(F, {
|
|
9113
|
-
val: Number(
|
|
9113
|
+
val: Number(k)
|
|
9114
9114
|
})
|
|
9115
9115
|
);
|
|
9116
9116
|
}
|
|
9117
|
-
L.data = G.featureCollection(
|
|
9117
|
+
L.data = G.featureCollection(C);
|
|
9118
9118
|
}
|
|
9119
|
-
const P = a < this.zoom ? L.data.features.filter((
|
|
9119
|
+
const P = a < this.zoom ? L.data.features.filter((C) => C.properties.val > 0.5) : L.data.features;
|
|
9120
9120
|
I = I.concat(P), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
9121
9121
|
}
|
|
9122
|
-
} else if (
|
|
9122
|
+
} else if (T === "wind") {
|
|
9123
9123
|
B = !0;
|
|
9124
|
-
const
|
|
9125
|
-
for (const L in
|
|
9124
|
+
const x = this.weatherLayers.wind.raw;
|
|
9125
|
+
for (const L in x)
|
|
9126
9126
|
if (L > y && L < z && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9127
|
-
const P =
|
|
9128
|
-
|
|
9127
|
+
const P = x[L].lng;
|
|
9128
|
+
w > _ ? P.forEach((C, k) => {
|
|
9129
9129
|
var O, F, V, X;
|
|
9130
9130
|
if (a < 2) {
|
|
9131
|
-
if ((
|
|
9132
|
-
const Z = G.point([
|
|
9133
|
-
dir: ((O =
|
|
9134
|
-
spd:
|
|
9131
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9132
|
+
const Z = G.point([C, L], {
|
|
9133
|
+
dir: ((O = x[L].val) == null ? void 0 : O[k]) || ((F = x[L].dir) == null ? void 0 : F[k]),
|
|
9134
|
+
spd: x[L].spd[k]
|
|
9135
9135
|
});
|
|
9136
9136
|
I.push(Z);
|
|
9137
9137
|
}
|
|
9138
|
-
} else if ((
|
|
9139
|
-
const Z = G.point([
|
|
9140
|
-
dir: ((V =
|
|
9141
|
-
spd:
|
|
9138
|
+
} else if ((C >= w && C <= 180 || C >= -180 && C <= _) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9139
|
+
const Z = G.point([C, L], {
|
|
9140
|
+
dir: ((V = x[L].val) == null ? void 0 : V[k]) || ((X = x[L].dir) == null ? void 0 : X[k]),
|
|
9141
|
+
spd: x[L].spd[k]
|
|
9142
9142
|
});
|
|
9143
9143
|
I.push(Z);
|
|
9144
9144
|
}
|
|
9145
|
-
}) : P.forEach((
|
|
9145
|
+
}) : P.forEach((C, k) => {
|
|
9146
9146
|
var O, F, V, X;
|
|
9147
9147
|
if (a < 2) {
|
|
9148
|
-
if ((
|
|
9149
|
-
const Z = G.point([
|
|
9150
|
-
dir: ((O =
|
|
9151
|
-
spd:
|
|
9148
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9149
|
+
const Z = G.point([C, L], {
|
|
9150
|
+
dir: ((O = x[L].val) == null ? void 0 : O[k]) || ((F = x[L].dir) == null ? void 0 : F[k]),
|
|
9151
|
+
spd: x[L].spd[k]
|
|
9152
9152
|
});
|
|
9153
9153
|
I.push(Z);
|
|
9154
9154
|
}
|
|
9155
|
-
} else if (
|
|
9156
|
-
const Z = G.point([
|
|
9157
|
-
dir: ((V =
|
|
9158
|
-
spd:
|
|
9155
|
+
} else if (C >= w && C <= _ && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9156
|
+
const Z = G.point([C, L], {
|
|
9157
|
+
dir: ((V = x[L].val) == null ? void 0 : V[k]) || ((X = x[L].dir) == null ? void 0 : X[k]),
|
|
9158
|
+
spd: x[L].spd[k]
|
|
9159
9159
|
});
|
|
9160
9160
|
I.push(Z);
|
|
9161
9161
|
}
|
|
9162
9162
|
});
|
|
9163
9163
|
}
|
|
9164
9164
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
9165
|
-
} else if (
|
|
9166
|
-
if (this.weatherLayers[
|
|
9167
|
-
I = this.weatherLayers[
|
|
9165
|
+
} else if (T === "sig-wave-height") {
|
|
9166
|
+
if (this.weatherLayers[T].data)
|
|
9167
|
+
I = this.weatherLayers[T].data;
|
|
9168
9168
|
else {
|
|
9169
9169
|
B = !0;
|
|
9170
|
-
const
|
|
9171
|
-
if (
|
|
9170
|
+
const x = this.weatherLayers[T].raw;
|
|
9171
|
+
if (x) {
|
|
9172
9172
|
const L = [];
|
|
9173
|
-
for (const P in
|
|
9174
|
-
const
|
|
9175
|
-
for (const
|
|
9173
|
+
for (const P in x.Polygon) {
|
|
9174
|
+
const C = x.Polygon[P];
|
|
9175
|
+
for (const k of C)
|
|
9176
9176
|
L.push(
|
|
9177
|
-
G.polygon(
|
|
9177
|
+
G.polygon(k, {
|
|
9178
9178
|
val: Number(P)
|
|
9179
9179
|
})
|
|
9180
9180
|
);
|
|
9181
9181
|
}
|
|
9182
|
-
for (const P in
|
|
9183
|
-
const
|
|
9184
|
-
for (const
|
|
9182
|
+
for (const P in x.MultiPolygon) {
|
|
9183
|
+
const C = x.MultiPolygon[P];
|
|
9184
|
+
for (const k of C)
|
|
9185
9185
|
L.push(
|
|
9186
|
-
G.multiPolygon(
|
|
9186
|
+
G.multiPolygon(k, {
|
|
9187
9187
|
val: Number(P)
|
|
9188
9188
|
})
|
|
9189
9189
|
);
|
|
9190
9190
|
}
|
|
9191
|
-
for (const P in
|
|
9192
|
-
const
|
|
9193
|
-
for (let
|
|
9191
|
+
for (const P in x.Point) {
|
|
9192
|
+
const C = x.Point[P];
|
|
9193
|
+
for (let k = 0; k < ((b = C.lng) == null ? void 0 : b.length); k++)
|
|
9194
9194
|
L.push(
|
|
9195
|
-
G.point([
|
|
9196
|
-
val: Number(
|
|
9195
|
+
G.point([C.lng[k], P], {
|
|
9196
|
+
val: Number(C.val[k])
|
|
9197
9197
|
})
|
|
9198
9198
|
);
|
|
9199
9199
|
}
|
|
@@ -9201,29 +9201,29 @@ const fn = {
|
|
|
9201
9201
|
}
|
|
9202
9202
|
}
|
|
9203
9203
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
9204
|
-
} else if (
|
|
9205
|
-
if (this.weatherLayers[
|
|
9206
|
-
I = this.weatherLayers[
|
|
9204
|
+
} else if (T === "prmsl") {
|
|
9205
|
+
if (this.weatherLayers[T].data)
|
|
9206
|
+
I = this.weatherLayers[T].data;
|
|
9207
9207
|
else {
|
|
9208
9208
|
B = !0;
|
|
9209
|
-
const
|
|
9210
|
-
if (
|
|
9209
|
+
const x = this.weatherLayers[T].raw;
|
|
9210
|
+
if (x) {
|
|
9211
9211
|
const L = [];
|
|
9212
|
-
for (const P in
|
|
9213
|
-
const
|
|
9214
|
-
for (const
|
|
9212
|
+
for (const P in x.LineString) {
|
|
9213
|
+
const C = x.LineString[P];
|
|
9214
|
+
for (const k of C)
|
|
9215
9215
|
L.push(
|
|
9216
|
-
G.lineString(
|
|
9216
|
+
G.lineString(k, {
|
|
9217
9217
|
val: Number(P)
|
|
9218
9218
|
})
|
|
9219
9219
|
);
|
|
9220
9220
|
}
|
|
9221
|
-
for (const P in
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
G.point([
|
|
9225
|
-
val:
|
|
9226
|
-
type:
|
|
9221
|
+
for (const P in x.Point)
|
|
9222
|
+
x.Point[P].lng.forEach((C, k) => {
|
|
9223
|
+
C = q.convertToStdLng(C), L.push(
|
|
9224
|
+
G.point([C, P], {
|
|
9225
|
+
val: x.Point[P].val[k],
|
|
9226
|
+
type: x.Point[P].type[k]
|
|
9227
9227
|
})
|
|
9228
9228
|
);
|
|
9229
9229
|
});
|
|
@@ -9232,7 +9232,7 @@ const fn = {
|
|
|
9232
9232
|
}
|
|
9233
9233
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9234
9234
|
}
|
|
9235
|
-
I.length && (this.weatherLayers[
|
|
9235
|
+
I.length && (this.weatherLayers[T].data = G.featureCollection(I)), B && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9236
9236
|
}
|
|
9237
9237
|
}
|
|
9238
9238
|
}
|
|
@@ -9267,7 +9267,7 @@ const fn = {
|
|
|
9267
9267
|
}, kn = { class: "text-caption px-2" }, zn = { class: "d-flex flex-row justify-start align-center" }, Ln = {
|
|
9268
9268
|
class: "d-flex flex-row justify-center align-center",
|
|
9269
9269
|
style: { width: "40px" }
|
|
9270
|
-
}, Pn = { class: "text-caption" },
|
|
9270
|
+
}, Pn = { class: "text-caption" }, Tn = { class: "d-flex justify-start align-center ga-3" }, Cn = { class: "text-h5 font-weight-medium" }, Mn = {
|
|
9271
9271
|
key: 0,
|
|
9272
9272
|
class: "w-100 d-flex justify-space-between align-center ga-1 mb-2 px-3"
|
|
9273
9273
|
}, Sn = {
|
|
@@ -9276,10 +9276,10 @@ const fn = {
|
|
|
9276
9276
|
}, Dn = {
|
|
9277
9277
|
key: 1,
|
|
9278
9278
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9279
|
-
}, In = { class: "text-body-1 py-2" }, Rn = { class: "text-body-1 font-weight-medium" }, An = { class: "text-body-2 text-label" }, On = { class: "text-body-2 text-label" }, Bn = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Gn = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" },
|
|
9279
|
+
}, In = { class: "text-body-1 py-2" }, Rn = { class: "text-body-1 font-weight-medium" }, An = { class: "text-body-2 text-label" }, On = { class: "text-body-2 text-label" }, Bn = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Gn = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, $n = { class: "text-body-1 font-weight-medium" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label" }, ec = { class: "text-body-2 text-label mb-3" };
|
|
9280
9280
|
function tc(t, e, o, i, a, r) {
|
|
9281
|
-
var ue, ie, me, ge, he, de, A, te, be, ve, Pe,
|
|
9282
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"),
|
|
9281
|
+
var ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9282
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"), w = v("VCard"), _ = v("VSwitch"), y = v("VBtnToggle"), z = v("VCardTitle"), T = v("VCardItem"), B = v("VCheckbox"), I = v("VRadio"), x = v("IdmWindBarb"), L = v("IdmSigWaveHeight"), P = v("IdmCurrentDirection"), C = v("IdmPrmsl"), k = v("IdmWindParticle"), O = v("IdmCurrentParticle"), F = v("IdmWave"), V = v("IdmSwell"), X = v("IdmIceEdge"), Z = v("IdmIceCover"), J = v("IdmIceThickness"), Q = v("IdmPrecip3h"), $ = v("IdmVisibility"), re = v("IdmWaterTemp"), le = v("IdmTemp");
|
|
9283
9283
|
return g(), M("div", yn, [
|
|
9284
9284
|
s("div", {
|
|
9285
9285
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9342,7 +9342,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9342
9342
|
_: 1
|
|
9343
9343
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
9344
9344
|
], 6),
|
|
9345
|
-
a.legendToggle ? (g(), R(
|
|
9345
|
+
a.legendToggle ? (g(), R(w, {
|
|
9346
9346
|
key: 0,
|
|
9347
9347
|
elevation: "16",
|
|
9348
9348
|
class: "card-info d-flex justify-center align-start",
|
|
@@ -9457,9 +9457,9 @@ function tc(t, e, o, i, a, r) {
|
|
|
9457
9457
|
s("div", {
|
|
9458
9458
|
class: ne(["header-box w-100 d-flex justify-space-between align-center", o.simple ? "px-3" : "px-4"])
|
|
9459
9459
|
}, [
|
|
9460
|
-
s("div",
|
|
9461
|
-
s("div",
|
|
9462
|
-
p(
|
|
9460
|
+
s("div", Tn, [
|
|
9461
|
+
s("div", Cn, n(t.$t("weather.weather")), 1),
|
|
9462
|
+
p(_, {
|
|
9463
9463
|
modelValue: a.autoActive,
|
|
9464
9464
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
9465
9465
|
class: "small-switch",
|
|
@@ -9529,12 +9529,12 @@ function tc(t, e, o, i, a, r) {
|
|
|
9529
9529
|
s("div", {
|
|
9530
9530
|
class: ne(["list-box w-100 scroll overflow-y-auto", [a.autoActive ? "" : "cursor-not-allowed", o.simple ? "pl-3 pr-1" : "pl-4 pr-2"]])
|
|
9531
9531
|
}, [
|
|
9532
|
-
p(
|
|
9532
|
+
p(w, {
|
|
9533
9533
|
class: "block-bg mx-auto mb-2",
|
|
9534
9534
|
elevation: "0"
|
|
9535
9535
|
}, {
|
|
9536
9536
|
default: u(() => [
|
|
9537
|
-
p(
|
|
9537
|
+
p(T, { class: "border-b-thin" }, {
|
|
9538
9538
|
default: u(() => [
|
|
9539
9539
|
p(z, { class: "text-h6" }, {
|
|
9540
9540
|
default: u(() => [
|
|
@@ -9566,12 +9566,12 @@ function tc(t, e, o, i, a, r) {
|
|
|
9566
9566
|
]),
|
|
9567
9567
|
_: 1
|
|
9568
9568
|
}),
|
|
9569
|
-
p(
|
|
9569
|
+
p(w, {
|
|
9570
9570
|
class: "block-bg mx-auto mb-2",
|
|
9571
9571
|
elevation: "0"
|
|
9572
9572
|
}, {
|
|
9573
9573
|
default: u(() => [
|
|
9574
|
-
p(
|
|
9574
|
+
p(T, { class: "border-b-thin" }, {
|
|
9575
9575
|
default: u(() => [
|
|
9576
9576
|
p(z, { class: "text-h6" }, {
|
|
9577
9577
|
default: u(() => [
|
|
@@ -9602,7 +9602,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9602
9602
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9603
9603
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (g(), M("div", Sn, [
|
|
9604
9604
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9605
|
-
p(
|
|
9605
|
+
p(_, {
|
|
9606
9606
|
modelValue: a.showWindParticle,
|
|
9607
9607
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showWindParticle = oe),
|
|
9608
9608
|
label: "",
|
|
@@ -9617,7 +9617,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9617
9617
|
])) : D("", !0),
|
|
9618
9618
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), M("div", Dn, [
|
|
9619
9619
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9620
|
-
p(
|
|
9620
|
+
p(_, {
|
|
9621
9621
|
modelValue: a.showCurrentParticle,
|
|
9622
9622
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.showCurrentParticle = oe),
|
|
9623
9623
|
label: "",
|
|
@@ -9723,12 +9723,12 @@ function tc(t, e, o, i, a, r) {
|
|
|
9723
9723
|
]),
|
|
9724
9724
|
_: 1
|
|
9725
9725
|
}),
|
|
9726
|
-
p(
|
|
9726
|
+
p(w, {
|
|
9727
9727
|
class: "block-bg mx-auto mb-2",
|
|
9728
9728
|
elevation: "0"
|
|
9729
9729
|
}, {
|
|
9730
9730
|
default: u(() => [
|
|
9731
|
-
p(
|
|
9731
|
+
p(T, { class: "border-b-thin" }, {
|
|
9732
9732
|
default: u(() => [
|
|
9733
9733
|
p(z, { class: "text-h6" }, {
|
|
9734
9734
|
default: u(() => [
|
|
@@ -9741,14 +9741,14 @@ function tc(t, e, o, i, a, r) {
|
|
|
9741
9741
|
}),
|
|
9742
9742
|
p(d, { class: "" }, {
|
|
9743
9743
|
default: u(() => {
|
|
9744
|
-
var H, oe, He, Oe, fe, Re, W, ye, ae, se, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, Je, Qe,
|
|
9744
|
+
var H, oe, He, Oe, fe, Re, W, ye, ae, se, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, $e, Je, Qe, et, tt, ot, at, it, st, rt, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, Mt, St, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, so, ro, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9745
9745
|
return [
|
|
9746
9746
|
s("div", In, n(t.$t("weather.atmospheric")), 1),
|
|
9747
9747
|
s("div", Rn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (fe = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : Re.spatialResolution) + n(t.$t("units.km")) + " " + n((se = (ae = (ye = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : ye.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : se.days) + n(t.$t("units.days")), 1),
|
|
9748
9748
|
s("div", An, n(t.$t("weather.source")) + ": NOAA", 1),
|
|
9749
9749
|
s("div", On, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((E = (We = (Ge = (je = a.models) == null ? void 0 : je.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9750
9750
|
s("div", Bn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((Ne = (Ee = (Be = (we = a.models) == null ? void 0 : we.weather) == null ? void 0 : Be.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
9751
|
-
s("div", jn, n((U = (Ue = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : U.source) + " " + n((Ke = (qe = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Ke.spatialResolution) + n(t.$t("units.km")) + " " + n((
|
|
9751
|
+
s("div", jn, n((U = (Ue = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : U.source) + " " + n((Ke = (qe = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Ke.spatialResolution) + n(t.$t("units.km")) + " " + n((Qe = (Je = ($e = (Le = a.models) == null ? void 0 : Le.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + n(t.$t("units.days")), 1),
|
|
9752
9752
|
s("div", En, n(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9753
9753
|
s("div", Nn, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
9754
9754
|
s("div", Fn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((lt = (rt = (st = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : st.ECMWF) == null ? void 0 : rt.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
@@ -9757,16 +9757,16 @@ function tc(t, e, o, i, a, r) {
|
|
|
9757
9757
|
s("div", Gn, n((ht = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : ht.source) + " " + n((gt = (ut = (pt = (dt = a.models) == null ? void 0 : dt.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + n(t.$t("units.km")) + " " + n((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + n(t.$t("units.days")), 1),
|
|
9758
9758
|
s("div", Wn, n(t.$t("weather.source")) + ": NOAA", 1),
|
|
9759
9759
|
s("div", Un, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((Lt = (zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : zt.meta) == null ? void 0 : Lt.availabilityTime)), 1),
|
|
9760
|
-
s("div", Vn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((St = (Mt = (
|
|
9760
|
+
s("div", Vn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((St = (Mt = (Ct = (Tt = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Tt.wave) == null ? void 0 : Ct.NOAA) == null ? void 0 : Mt.meta) == null ? void 0 : St.initialisationTime)), 1),
|
|
9761
9761
|
s("div", Zn, n((At = (Rt = (It = (Dt = a.models) == null ? void 0 : Dt.marine) == null ? void 0 : It.wave) == null ? void 0 : Rt.ECMWF) == null ? void 0 : At.source) + " " + n((Et = (jt = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.wave) == null ? void 0 : jt.ECMWF) == null ? void 0 : Et.spatialResolution) + n(t.$t("units.km")) + " " + n((Wt = (Gt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Gt.meta) == null ? void 0 : Wt.days) + n(t.$t("units.days")), 1),
|
|
9762
9762
|
s("div", Yn, n(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9763
9763
|
s("div", Xn, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((Xt = (Yt = (Zt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : Xt.availabilityTime)), 1),
|
|
9764
9764
|
s("div", qn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((eo = (Qt = (Jt = (Kt = (qt = a.models) == null ? void 0 : qt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
|
|
9765
9765
|
p(b),
|
|
9766
9766
|
s("div", Kn, n(t.$t("weather.currents")), 1),
|
|
9767
|
-
s("div",
|
|
9768
|
-
s("div",
|
|
9769
|
-
s("div",
|
|
9767
|
+
s("div", $n, n((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + n((no = (lo = (ro = (so = a.models) == null ? void 0 : so.marine) == null ? void 0 : ro.current) == null ? void 0 : lo.ECMWF) == null ? void 0 : no.spatialResolution) + n(t.$t("units.km")) + " " + n((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + n(t.$t("units.days")), 1),
|
|
9768
|
+
s("div", Jn, n(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9769
|
+
s("div", Qn, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((wo = (bo = (yo = (fo = (go = a.models) == null ? void 0 : go.marine) == null ? void 0 : fo.current) == null ? void 0 : yo.ECMWF) == null ? void 0 : bo.meta) == null ? void 0 : wo.availabilityTime)), 1),
|
|
9770
9770
|
s("div", ec, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((zo = (ko = (_o = (vo = (xo = a.models) == null ? void 0 : xo.marine) == null ? void 0 : vo.current) == null ? void 0 : _o.ECMWF) == null ? void 0 : ko.meta) == null ? void 0 : zo.initialisationTime)), 1)
|
|
9771
9771
|
];
|
|
9772
9772
|
}),
|
|
@@ -9777,7 +9777,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9777
9777
|
})
|
|
9778
9778
|
], 2)
|
|
9779
9779
|
], 6),
|
|
9780
|
-
o.map ? (g(), R(
|
|
9780
|
+
o.map ? (g(), R(x, j({
|
|
9781
9781
|
key: 1,
|
|
9782
9782
|
ref: "windBarb",
|
|
9783
9783
|
map: o.map,
|
|
@@ -9802,7 +9802,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9802
9802
|
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
9803
9803
|
"menu-toggle": o.menuToggle
|
|
9804
9804
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
9805
|
-
o.map ? (g(), R(
|
|
9805
|
+
o.map ? (g(), R(C, j({
|
|
9806
9806
|
key: 4,
|
|
9807
9807
|
map: o.map,
|
|
9808
9808
|
"before-layer": "empty-layer-3",
|
|
@@ -9810,7 +9810,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9810
9810
|
"menu-toggle": o.menuToggle,
|
|
9811
9811
|
"active-weather-layers": a.activeWeatherLayers
|
|
9812
9812
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
9813
|
-
o.map ? (g(), R(
|
|
9813
|
+
o.map ? (g(), R(k, j({
|
|
9814
9814
|
key: 5,
|
|
9815
9815
|
viewport: a.viewport,
|
|
9816
9816
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
@@ -9854,21 +9854,21 @@ function tc(t, e, o, i, a, r) {
|
|
|
9854
9854
|
"menu-toggle": o.menuToggle,
|
|
9855
9855
|
simple: o.simple
|
|
9856
9856
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9857
|
-
o.map ? (g(), R(
|
|
9857
|
+
o.map ? (g(), R(J, j({
|
|
9858
9858
|
key: 11,
|
|
9859
9859
|
viewport: a.viewport,
|
|
9860
9860
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
9861
9861
|
"menu-toggle": o.menuToggle,
|
|
9862
9862
|
simple: o.simple
|
|
9863
9863
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9864
|
-
o.map ? (g(), R(
|
|
9864
|
+
o.map ? (g(), R(Q, j({
|
|
9865
9865
|
key: 12,
|
|
9866
9866
|
viewport: a.viewport,
|
|
9867
|
-
factor: (
|
|
9867
|
+
factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
|
|
9868
9868
|
"menu-toggle": o.menuToggle,
|
|
9869
9869
|
simple: o.simple
|
|
9870
9870
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9871
|
-
o.map ? (g(), R(
|
|
9871
|
+
o.map ? (g(), R($, j({
|
|
9872
9872
|
key: 13,
|
|
9873
9873
|
viewport: a.viewport,
|
|
9874
9874
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.visibility,
|
|
@@ -9885,7 +9885,7 @@ function tc(t, e, o, i, a, r) {
|
|
|
9885
9885
|
o.map ? (g(), R(le, j({
|
|
9886
9886
|
key: 15,
|
|
9887
9887
|
viewport: a.viewport,
|
|
9888
|
-
factor: (
|
|
9888
|
+
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
9889
9889
|
"menu-toggle": o.menuToggle,
|
|
9890
9890
|
simple: o.simple
|
|
9891
9891
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0)
|
|
@@ -10209,18 +10209,18 @@ class Za {
|
|
|
10209
10209
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10210
10210
|
for (const m of a) {
|
|
10211
10211
|
let c = Lo.find((d) => {
|
|
10212
|
-
var b,
|
|
10213
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10212
|
+
var b, w, _;
|
|
10213
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === m;
|
|
10214
10214
|
}), f = Po.find((d) => {
|
|
10215
|
-
var b,
|
|
10216
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10215
|
+
var b, w, _;
|
|
10216
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((w = d.alias) == null ? void 0 : w.toLowerCase()) === m || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === m;
|
|
10217
10217
|
});
|
|
10218
10218
|
c = c || Lo.find((d) => {
|
|
10219
|
-
var b,
|
|
10220
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10219
|
+
var b, w;
|
|
10220
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
|
|
10221
10221
|
}), f = f || Po.find((d) => {
|
|
10222
|
-
var b,
|
|
10223
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10222
|
+
var b, w;
|
|
10223
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((w = c == null ? void 0 : c.alias) == null ? void 0 : w.toLowerCase());
|
|
10224
10224
|
}), c = c || Lo[0], f = f || Po[0], r.push((o = c.models) != null && o.includes(m) ? m : c.model), l.push((i = f.models) != null && i.includes(m) ? m : f.model);
|
|
10225
10225
|
}
|
|
10226
10226
|
return {
|
|
@@ -10238,7 +10238,7 @@ class Za {
|
|
|
10238
10238
|
}), a;
|
|
10239
10239
|
}
|
|
10240
10240
|
static pickHourly(e, o) {
|
|
10241
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10241
|
+
var i, a, r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re;
|
|
10242
10242
|
const W = typeof o == "string" ? S(o) : o, ye = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, se = S((a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = se.clone().add((m = (l = (r = ye == null ? void 0 : ye[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : m.at(0), "h"), Ge = se.clone().add((d = (f = (c = ye == null ? void 0 : ye[0]) == null ? void 0 : c.hourly) == null ? void 0 : f.time) == null ? void 0 : d.at(-1), "h"), We = [];
|
|
10243
10243
|
if (W.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10244
10244
|
const E = W.utc().diff(je, "h", !1);
|
|
@@ -10250,34 +10250,34 @@ class Za {
|
|
|
10250
10250
|
for (let Le = E - (E - 1) % 3; Le <= E; Le++)
|
|
10251
10251
|
Ee += (b = U == null ? void 0 : U.precipitation) == null ? void 0 : b.at(Le);
|
|
10252
10252
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10253
|
-
Ne += (
|
|
10253
|
+
Ne += (w = U == null ? void 0 : U.precipitation) == null ? void 0 : w.at(Le);
|
|
10254
10254
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10255
|
-
N += (
|
|
10255
|
+
N += (_ = U == null ? void 0 : U.precipitation) == null ? void 0 : _.at(Le);
|
|
10256
10256
|
we = {
|
|
10257
10257
|
temp: (y = U == null ? void 0 : U.temperature_2m) == null ? void 0 : y.at(E),
|
|
10258
10258
|
apparentTemp: (z = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : z.at(E),
|
|
10259
|
-
rh: (
|
|
10259
|
+
rh: (T = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : T.at(E),
|
|
10260
10260
|
dp: (B = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10261
10261
|
precip: {
|
|
10262
10262
|
probability: (I = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10263
|
-
sum: (
|
|
10263
|
+
sum: (x = U == null ? void 0 : U.precipitation) == null ? void 0 : x.at(E),
|
|
10264
10264
|
sum1Hours: (L = U == null ? void 0 : U.precipitation) == null ? void 0 : L.at(E),
|
|
10265
10265
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10266
10266
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
10267
10267
|
sum12Hours: Math.round(N * 100) / 100
|
|
10268
10268
|
},
|
|
10269
10269
|
pmsl: (P = U == null ? void 0 : U.pressure_msl) == null ? void 0 : P.at(E),
|
|
10270
|
-
psurf: (
|
|
10271
|
-
code: (
|
|
10270
|
+
psurf: (C = U == null ? void 0 : U.surface_pressure) == null ? void 0 : C.at(E),
|
|
10271
|
+
code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(E),
|
|
10272
10272
|
visibility: this.m2nm((O = U == null ? void 0 : U.visibility) == null ? void 0 : O.at(E)),
|
|
10273
10273
|
wind: {
|
|
10274
10274
|
speed: (F = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
10275
10275
|
kts: (V = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : V.at(E),
|
|
10276
10276
|
degree: (X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(E),
|
|
10277
|
-
bearing: ((Z = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((
|
|
10278
|
-
gusts: (
|
|
10277
|
+
bearing: ((Z = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((J = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : J.at(E)) + 180) % 360 : null,
|
|
10278
|
+
gusts: (Q = U == null ? void 0 : U.wind_gusts_10m) == null ? void 0 : Q.at(E)
|
|
10279
10279
|
},
|
|
10280
|
-
isDay: (
|
|
10280
|
+
isDay: ($ = U == null ? void 0 : U.is_day) == null ? void 0 : $.at(E)
|
|
10281
10281
|
};
|
|
10282
10282
|
const { name: Xe, url: qe, bg: Ke } = this.parseWeatherCode(we.code, we.isDay);
|
|
10283
10283
|
we.name = Xe, we.url = qe, we.bg = Ke, we.wind.scale = this.beaufort(this.kts2ms(we.wind.kts)), we.wind.direction = this.degree2Direction(we.wind.degree), We.push({
|
|
@@ -10309,9 +10309,9 @@ class Za {
|
|
|
10309
10309
|
wd: {
|
|
10310
10310
|
height: (ve = N == null ? void 0 : N.wind_wave_height) == null ? void 0 : ve.at(E),
|
|
10311
10311
|
degree: (Pe = N == null ? void 0 : N.wind_wave_direction) == null ? void 0 : Pe.at(E),
|
|
10312
|
-
bearing: ((
|
|
10312
|
+
bearing: ((Te = N == null ? void 0 : N.wind_wave_direction) == null ? void 0 : Te.at(E)) !== null ? (((_e = N == null ? void 0 : N.wind_wave_direction) == null ? void 0 : _e.at(E)) + 180) % 360 : null,
|
|
10313
10313
|
period: (Ie = N == null ? void 0 : N.wind_wave_period) == null ? void 0 : Ie.at(E),
|
|
10314
|
-
peakPeriod: (
|
|
10314
|
+
peakPeriod: (Ce = N == null ? void 0 : N.wind_wave_peak_period) == null ? void 0 : Ce.at(E)
|
|
10315
10315
|
}
|
|
10316
10316
|
},
|
|
10317
10317
|
current: {
|
|
@@ -10351,44 +10351,44 @@ class Za {
|
|
|
10351
10351
|
};
|
|
10352
10352
|
}
|
|
10353
10353
|
static pickDaily(e, o) {
|
|
10354
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10355
|
-
const Ie = typeof o == "string" ? S(o) : o,
|
|
10354
|
+
var i, a, r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e;
|
|
10355
|
+
const Ie = typeof o == "string" ? S(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = 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)), He = S((c = (m = (l = Ce == null ? void 0 : Ce[0]) == null ? void 0 : l.daily) == null ? void 0 : m.time) == null ? void 0 : c.at(-1)), Oe = [];
|
|
10356
10356
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10357
10357
|
let fe, Re;
|
|
10358
10358
|
const W = Ie.diff(oe, "d", !1);
|
|
10359
|
-
if (
|
|
10360
|
-
for (const ye of
|
|
10359
|
+
if (Ce)
|
|
10360
|
+
for (const ye of Ce) {
|
|
10361
10361
|
const ae = ye.daily;
|
|
10362
10362
|
fe = {
|
|
10363
10363
|
code: (f = ae.weather_code) == null ? void 0 : f.at(W),
|
|
10364
10364
|
temp: {
|
|
10365
10365
|
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(W),
|
|
10366
10366
|
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
10367
|
-
mean: (
|
|
10367
|
+
mean: (w = ae.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10368
10368
|
},
|
|
10369
10369
|
apparentTemp: {
|
|
10370
|
-
max: (
|
|
10370
|
+
max: (_ = ae.apparent_temperature_max) == null ? void 0 : _.at(W),
|
|
10371
10371
|
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10372
10372
|
},
|
|
10373
10373
|
precip: {
|
|
10374
10374
|
sum: (z = ae.precipitation_sum) == null ? void 0 : z.at(W),
|
|
10375
|
-
rainSum: (
|
|
10375
|
+
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(W),
|
|
10376
10376
|
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10377
10377
|
showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
|
|
10378
|
-
hours: (
|
|
10378
|
+
hours: (x = ae.precipitation_hours) == null ? void 0 : x.at(W),
|
|
10379
10379
|
probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(W)
|
|
10380
10380
|
},
|
|
10381
10381
|
rh: {
|
|
10382
10382
|
max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(W),
|
|
10383
|
-
min: (
|
|
10384
|
-
mean: (
|
|
10383
|
+
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10384
|
+
mean: (k = ae.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
|
|
10385
10385
|
},
|
|
10386
10386
|
wind: {
|
|
10387
10387
|
speed: (O = ae.wind_speed_10m_max) == null ? void 0 : O.at(W),
|
|
10388
10388
|
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(W),
|
|
10389
10389
|
degree: (V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(W),
|
|
10390
10390
|
gusts: (X = ae.wind_gusts_10m_max) == null ? void 0 : X.at(W),
|
|
10391
|
-
bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((
|
|
10391
|
+
bearing: ((Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((J = ae.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10392
10392
|
}
|
|
10393
10393
|
};
|
|
10394
10394
|
const { name: se, url: je, bg: Ge } = this.parseWeatherCode(fe.code, !0);
|
|
@@ -10405,8 +10405,8 @@ class Za {
|
|
|
10405
10405
|
Re = {
|
|
10406
10406
|
wave: {
|
|
10407
10407
|
sig: {
|
|
10408
|
-
height: (
|
|
10409
|
-
degree: (
|
|
10408
|
+
height: (Q = se.wave_height_max) == null ? void 0 : Q.at(W),
|
|
10409
|
+
degree: ($ = se.wave_direction_dominant) == null ? void 0 : $.at(W),
|
|
10410
10410
|
period: (re = se.wave_period_max) == null ? void 0 : re.at(W),
|
|
10411
10411
|
bearing: ((le = se.wave_direction_dominant) == null ? void 0 : le.at(W)) !== null ? (((ue = se.wave_direction_dominant) == null ? void 0 : ue.at(W)) + 180) % 360 : null
|
|
10412
10412
|
},
|
|
@@ -10423,7 +10423,7 @@ class Za {
|
|
|
10423
10423
|
degree: (be = se.wind_wave_direction_dominant) == null ? void 0 : be.at(W),
|
|
10424
10424
|
period: (ve = se.wind_wave_period_max) == null ? void 0 : ve.at(W),
|
|
10425
10425
|
peakPeriod: (Pe = se.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
|
|
10426
|
-
bearing: ((
|
|
10426
|
+
bearing: ((Te = se.wind_wave_direction_dominant) == null ? void 0 : Te.at(W)) !== null ? (((_e = se.wind_wave_direction_dominant) == null ? void 0 : _e.at(W)) + 180) % 360 : null
|
|
10427
10427
|
}
|
|
10428
10428
|
}
|
|
10429
10429
|
}, Re.wave = this.parseWave(Re.wave, fe == null ? void 0 : fe.wind), Object.assign(Oe[ye], Re), ye++;
|
|
@@ -10995,7 +10995,10 @@ const ac = {
|
|
|
10995
10995
|
},
|
|
10996
10996
|
showTropicalsInfo: {
|
|
10997
10997
|
handler() {
|
|
10998
|
-
this.$emit("tropical", this.showTropicalsInfo)
|
|
10998
|
+
this.$emit("tropical", this.showTropicalsInfo), this.simple && this.$nextTick(() => {
|
|
10999
|
+
var t, e;
|
|
11000
|
+
this.$parent.playerBottom = ((e = (t = this.$refs.tropicalsInfo) == null ? void 0 : t.$el) == null ? void 0 : e.clientHeight) + 10;
|
|
11001
|
+
});
|
|
10999
11002
|
},
|
|
11000
11003
|
immediate: !0
|
|
11001
11004
|
},
|
|
@@ -11030,7 +11033,7 @@ const ac = {
|
|
|
11030
11033
|
async fetchTropicals() {
|
|
11031
11034
|
var a, r, l;
|
|
11032
11035
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
11033
|
-
let e = 0, o = 0, i = (a =
|
|
11036
|
+
let e = 0, o = 0, i = (a = Co.WEATHER_LAYERS.find((m) => m.key === "tropicals")) == null ? void 0 : a.weight;
|
|
11034
11037
|
if (i > 0) {
|
|
11035
11038
|
const m = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], c = await Ae.get(`${m}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
11036
11039
|
headers: {
|
|
@@ -11046,8 +11049,8 @@ const ac = {
|
|
|
11046
11049
|
},
|
|
11047
11050
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11048
11051
|
}).then((d) => {
|
|
11049
|
-
var
|
|
11050
|
-
const b = Va.convert2Geojson(((
|
|
11052
|
+
var _, y, z;
|
|
11053
|
+
const b = Va.convert2Geojson(((_ = d == null ? void 0 : d.data) == null ? void 0 : _.data) || (d == null ? void 0 : d.data));
|
|
11051
11054
|
((z = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : z.key) && b && (this.tropicals = {
|
|
11052
11055
|
data: b,
|
|
11053
11056
|
active: !0,
|
|
@@ -11066,7 +11069,7 @@ const ac = {
|
|
|
11066
11069
|
handleRefresh() {
|
|
11067
11070
|
var e, o;
|
|
11068
11071
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11069
|
-
var r, l, m, c, f, d, b,
|
|
11072
|
+
var r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k;
|
|
11070
11073
|
let a = "";
|
|
11071
11074
|
switch (!0) {
|
|
11072
11075
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
@@ -11078,20 +11081,20 @@ const ac = {
|
|
|
11078
11081
|
case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
|
|
11079
11082
|
a = "sts";
|
|
11080
11083
|
break;
|
|
11081
|
-
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((
|
|
11084
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
|
|
11082
11085
|
a = "ty";
|
|
11083
11086
|
break;
|
|
11084
|
-
case (((
|
|
11087
|
+
case (((_ = i.properties.wind) == null ? void 0 : _.kts) < 94 || ((y = i.properties) == null ? void 0 : y.kts) < 94):
|
|
11085
11088
|
a = "sty";
|
|
11086
11089
|
break;
|
|
11087
|
-
case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((
|
|
11090
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
11088
11091
|
a = "superTy";
|
|
11089
11092
|
break;
|
|
11090
11093
|
default:
|
|
11091
11094
|
a = "superTy";
|
|
11092
11095
|
break;
|
|
11093
11096
|
}
|
|
11094
|
-
i.properties.levelI18n = a, ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (L = (
|
|
11097
|
+
i.properties.levelI18n = a, ((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (L = (x = S(i.properties.date)) == null ? void 0 : x.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((k = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : k.replace(/^./, (O) => O.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11095
11098
|
}), this.handleInit();
|
|
11096
11099
|
},
|
|
11097
11100
|
handleInit() {
|
|
@@ -11102,8 +11105,8 @@ const ac = {
|
|
|
11102
11105
|
var t, e, o, i, a, r, l, m, c, f;
|
|
11103
11106
|
if (this.tropicals && this.map) {
|
|
11104
11107
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
11105
|
-
let b = 0,
|
|
11106
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
11108
|
+
let b = 0, w = 0;
|
|
11109
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropicals] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.source, {
|
|
11107
11110
|
type: "geojson",
|
|
11108
11111
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
11109
11112
|
}), this.map.addLayer({
|
|
@@ -11184,7 +11187,7 @@ const ac = {
|
|
|
11184
11187
|
],
|
|
11185
11188
|
"text-halo-width": 4
|
|
11186
11189
|
}
|
|
11187
|
-
}, this.beforeLayer),
|
|
11190
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((m = this.map) == null || m.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
|
|
11188
11191
|
type: "geojson",
|
|
11189
11192
|
data: (c = this.tropicals) != null && c.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
11190
11193
|
// cluster: true,
|
|
@@ -11300,9 +11303,9 @@ const ac = {
|
|
|
11300
11303
|
"text-halo-color": "#ffffff",
|
|
11301
11304
|
"text-halo-width": 2
|
|
11302
11305
|
}
|
|
11303
|
-
}, this.beforeLayer),
|
|
11304
|
-
const
|
|
11305
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
11306
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
|
|
11307
|
+
const _ = Va.interpolate(this.tropicals, 1);
|
|
11308
|
+
this.interpolateData = JSON.parse(JSON.stringify(_)), this.handleDateChange();
|
|
11306
11309
|
}
|
|
11307
11310
|
},
|
|
11308
11311
|
handleClear() {
|
|
@@ -11310,7 +11313,7 @@ const ac = {
|
|
|
11310
11313
|
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();
|
|
11311
11314
|
},
|
|
11312
11315
|
handleDateChange() {
|
|
11313
|
-
var t, e, o, i, a, r, l, m, c, f, d, b,
|
|
11316
|
+
var t, e, o, i, a, r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue;
|
|
11314
11317
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11315
11318
|
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((A) => A.properties.date === (ie == null ? void 0 : ie.format()) && !A.properties.disabled), ge = this.handleComputePolygons(me), he = G.featureCollection([...me]);
|
|
11316
11319
|
ge.forEach((A) => {
|
|
@@ -11340,18 +11343,18 @@ const ac = {
|
|
|
11340
11343
|
const de = [];
|
|
11341
11344
|
for (const A of me)
|
|
11342
11345
|
if (!A.properties.disabled) {
|
|
11343
|
-
if (!de.some((
|
|
11346
|
+
if (!de.some((Te) => {
|
|
11344
11347
|
var _e;
|
|
11345
|
-
return
|
|
11348
|
+
return Te.properties.name === ((_e = A.properties) == null ? void 0 : _e.name);
|
|
11346
11349
|
})) {
|
|
11347
|
-
const
|
|
11350
|
+
const Te = ((m = (l = this.tropicals.data.features.find((_e) => {
|
|
11348
11351
|
var Ie;
|
|
11349
11352
|
return _e.properties.name === ((Ie = A.properties) == null ? void 0 : Ie.name);
|
|
11350
11353
|
})) == null ? void 0 : l.properties) == null ? void 0 : m.nameCn) || ((c = A.properties) == null ? void 0 : c.Name) || "-";
|
|
11351
|
-
A.properties.nameCn =
|
|
11354
|
+
A.properties.nameCn = Te, A.properties.Name = ((d = (f = A.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || A.properties.nameCn, de.push(A);
|
|
11352
11355
|
}
|
|
11353
11356
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11354
|
-
((
|
|
11357
|
+
((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.kts) < 32 || !((y = (_ = A.properties) == null ? void 0 : _.wind) != null && y.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((T = (z = A.properties) == null ? void 0 : z.wind) == null ? void 0 : T.kts) >= 32 && ((I = (B = A.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((L = (x = A.properties) == null ? void 0 : x.wind) == null ? void 0 : L.kts) >= 47 && ((C = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((O = (k = A.properties) == null ? void 0 : k.wind) == null ? void 0 : O.kts) >= 63 && ((V = (F = A.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (X = A.properties) == null ? void 0 : X.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = A.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((re = ($ = A.properties) == null ? void 0 : $.wind) == null ? void 0 : re.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11355
11358
|
const be = `<svg t="1719918955501"
|
|
11356
11359
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11357
11360
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11376,16 +11379,16 @@ const ac = {
|
|
|
11376
11379
|
(le = this.map) != null && le.getSource(this.interpolateSource) && ((ue = this.map) == null || ue.getSource(this.interpolateSource).setData(this.empty));
|
|
11377
11380
|
},
|
|
11378
11381
|
handleClick(t) {
|
|
11379
|
-
var a, r, l, m, c, f, d, b,
|
|
11382
|
+
var a, r, l, m, c, f, d, b, w, _, y;
|
|
11380
11383
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11381
11384
|
(z) => {
|
|
11382
|
-
var
|
|
11383
|
-
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((
|
|
11385
|
+
var T;
|
|
11386
|
+
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11384
11387
|
}
|
|
11385
11388
|
), i = (m = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : m.features.filter(
|
|
11386
11389
|
(z) => {
|
|
11387
|
-
var
|
|
11388
|
-
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((
|
|
11390
|
+
var T;
|
|
11391
|
+
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11389
11392
|
}
|
|
11390
11393
|
);
|
|
11391
11394
|
this.activeTropicals = {
|
|
@@ -11393,8 +11396,8 @@ const ac = {
|
|
|
11393
11396
|
nameCn: ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn) || ((d = e == null ? void 0 : e.properties) == null ? void 0 : d.name) || "-",
|
|
11394
11397
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11395
11398
|
forecasts: o.map((z) => z.properties),
|
|
11396
|
-
history: (
|
|
11397
|
-
showCircle: (y = (
|
|
11399
|
+
history: (w = i[0]) == null ? void 0 : w.properties,
|
|
11400
|
+
showCircle: (y = (_ = o[0]) == null ? void 0 : _.properties) == null ? void 0 : y.showCircle
|
|
11398
11401
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11399
11402
|
},
|
|
11400
11403
|
drawTropicalsInfoMaker(t) {
|
|
@@ -11517,11 +11520,11 @@ const ac = {
|
|
|
11517
11520
|
}, _c = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, kc = { class: "more" }, zc = {
|
|
11518
11521
|
key: 0,
|
|
11519
11522
|
class: "w-100 d-flex justify-space-between align-center px-2"
|
|
11520
|
-
}, Lc = { class: "pa-1" }, Pc = { class: "legend d-flex justify-start align-center py-2" },
|
|
11523
|
+
}, Lc = { class: "pa-1" }, Pc = { class: "legend d-flex justify-start align-center py-2" }, Tc = { class: "label" }, Cc = { class: "legend d-flex justify-start align-center py-2" }, Mc = { class: "label" }, Sc = { class: "legend d-flex justify-start align-center py-2" }, Dc = { class: "label" }, Ic = { class: "pa-1" }, Rc = { class: "legend d-flex justify-start align-center py-2" }, Ac = { class: "label" }, Oc = { class: "legend d-flex justify-start align-center py-2" }, Bc = { class: "label" }, jc = { class: "legend d-flex justify-start align-center py-2" }, Ec = { class: "label" }, Nc = { class: "pa-1" }, Fc = { class: "w-100 legend d-flex justify-start align-center py-2 ga-2" }, Hc = { class: "label" }, Gc = { class: "label" }, Wc = { class: "w-100 legend d-flex justify-start align-center py-2" }, Uc = { class: "label" }, Vc = { class: "w-100 legend d-flex justify-start align-center py-2" }, Zc = { class: "label" }, Yc = {
|
|
11521
11524
|
key: 1,
|
|
11522
11525
|
class: "my-3 w-100",
|
|
11523
11526
|
style: { height: "80px" }
|
|
11524
|
-
}, Xc = { class: "legend d-flex justify-start align-center" }, qc = { class: "label" }, Kc = { class: "legend d-flex justify-start align-center" },
|
|
11527
|
+
}, Xc = { class: "legend d-flex justify-start align-center" }, qc = { class: "label" }, Kc = { class: "legend d-flex justify-start align-center" }, $c = { class: "label" }, Jc = { class: "legend d-flex justify-start align-center" }, Qc = { class: "label" }, em = { class: "legend d-flex justify-start align-center" }, tm = { class: "label" }, om = { class: "legend d-flex justify-start align-center" }, am = { class: "label" }, im = { class: "legend d-flex justify-start align-center" }, sm = { class: "label" }, rm = { class: "legend d-flex justify-start align-center" }, lm = { class: "label" }, nm = { class: "legend d-flex justify-start align-center" }, cm = { class: "label" }, mm = { class: "legend d-flex justify-start align-center" }, hm = { class: "label" }, dm = { class: "legend d-flex justify-start align-center" }, pm = { class: "label" }, um = { class: "d-flex justify-star align-center" }, gm = { class: "font-weight-600 mr-1" }, fm = { class: "" }, ym = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, bm = {
|
|
11525
11528
|
key: 0,
|
|
11526
11529
|
class: "d-flex justify-start align-center"
|
|
11527
11530
|
}, wm = { class: "text-label pr-1" }, xm = {
|
|
@@ -11536,7 +11539,7 @@ const ac = {
|
|
|
11536
11539
|
}, Lm = { class: "text-label pr-1" }, Pm = {
|
|
11537
11540
|
key: 4,
|
|
11538
11541
|
class: "d-flex justify-start align-center"
|
|
11539
|
-
},
|
|
11542
|
+
}, Tm = { class: "text-label pr-1" }, Cm = {
|
|
11540
11543
|
key: 5,
|
|
11541
11544
|
class: "d-flex justify-start align-center"
|
|
11542
11545
|
}, Mm = { class: "text-label pr-1" }, Sm = { class: "d-flex justify-start align-center" }, Dm = { class: "text-label pr-1" }, Im = {
|
|
@@ -11547,7 +11550,7 @@ const ac = {
|
|
|
11547
11550
|
class: "d-flex justify-start align-center"
|
|
11548
11551
|
}, Om = { class: "text-label pr-1" }, Bm = { class: "d-flex justify-start align-center" }, jm = { class: "text-label pr-1" };
|
|
11549
11552
|
function Em(t, e, o, i, a, r) {
|
|
11550
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardText"), f = v("VDivider"), d = v("VCardActions"), b = v("VCard"),
|
|
11553
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardText"), f = v("VDivider"), d = v("VCardActions"), b = v("VCard"), w = v("v-card-title"), _ = v("v-divider");
|
|
11551
11554
|
return g(), M("div", ic, [
|
|
11552
11555
|
s("div", {
|
|
11553
11556
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11581,6 +11584,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11581
11584
|
], 4),
|
|
11582
11585
|
a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (g(), M("div", {
|
|
11583
11586
|
key: 0,
|
|
11587
|
+
ref: "tropicalsInfo",
|
|
11584
11588
|
id: "idm-tropical-gl4-info",
|
|
11585
11589
|
class: ne(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
|
|
11586
11590
|
}, [
|
|
@@ -11591,11 +11595,11 @@ function Em(t, e, o, i, a, r) {
|
|
|
11591
11595
|
default: u(() => [
|
|
11592
11596
|
p(c, null, {
|
|
11593
11597
|
default: u(() => {
|
|
11594
|
-
var y, z,
|
|
11598
|
+
var y, z, T, B, I, x, L, P, C, k, O, F;
|
|
11595
11599
|
return [
|
|
11596
11600
|
s("div", sc, [
|
|
11597
|
-
s("span", rc, n(o.locale === "en" ? (y = a.activeTropicals) == null ? void 0 : y.Name : ((z = a.activeTropicals) == null ? void 0 : z.nameCn) || ((
|
|
11598
|
-
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.levelI18n ? (g(), M("span", lc, " , " + n(t.$t("tropical." + ((L = (
|
|
11601
|
+
s("span", rc, n(o.locale === "en" ? (y = a.activeTropicals) == null ? void 0 : y.Name : ((z = a.activeTropicals) == null ? void 0 : z.nameCn) || ((T = a.activeTropicals) == null ? void 0 : T.Name) || "-"), 1),
|
|
11602
|
+
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.levelI18n ? (g(), M("span", lc, " , " + n(t.$t("tropical." + ((L = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : L.levelI18n))), 1)) : D("", !0)
|
|
11599
11603
|
]),
|
|
11600
11604
|
p(l, {
|
|
11601
11605
|
icon: "",
|
|
@@ -11612,7 +11616,7 @@ function Em(t, e, o, i, a, r) {
|
|
|
11612
11616
|
}, 8, ["onClick"]),
|
|
11613
11617
|
s("div", nc, [
|
|
11614
11618
|
s("span", cc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11615
|
-
s("span", null, n(r.computeTime(((
|
|
11619
|
+
s("span", null, n(r.computeTime(((C = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : C.updated) || ((F = (O = (k = a.activeTropicals) == null ? void 0 : k.forecasts) == null ? void 0 : O.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
11616
11620
|
])
|
|
11617
11621
|
];
|
|
11618
11622
|
}),
|
|
@@ -11621,17 +11625,17 @@ function Em(t, e, o, i, a, r) {
|
|
|
11621
11625
|
p(f),
|
|
11622
11626
|
p(c, { class: "text-body-1 py-3" }, {
|
|
11623
11627
|
default: u(() => {
|
|
11624
|
-
var y, z,
|
|
11628
|
+
var y, z, T, B, I, x, L, P, C;
|
|
11625
11629
|
return [
|
|
11626
11630
|
s("div", mc, [
|
|
11627
11631
|
s("div", hc, [
|
|
11628
11632
|
s("label", dc, n(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11629
11633
|
s("span", null, n(((z = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
11630
|
-
s("span", null, ", BF " + n(r.computeBF(((B = (
|
|
11634
|
+
s("span", null, ", BF " + n(r.computeBF(((B = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
11631
11635
|
]),
|
|
11632
11636
|
s("div", pc, [
|
|
11633
11637
|
s("label", uc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11634
|
-
s("span", null, n(((
|
|
11638
|
+
s("span", null, n(((x = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : x.pressure) || "-") + " hPa", 1)
|
|
11635
11639
|
])
|
|
11636
11640
|
]),
|
|
11637
11641
|
s("div", gc, [
|
|
@@ -11647,17 +11651,17 @@ function Em(t, e, o, i, a, r) {
|
|
|
11647
11651
|
s("div", xc, [
|
|
11648
11652
|
s("label", vc, n(t.$t("tropical.models")) + " : ", 1),
|
|
11649
11653
|
s("div", _c, [
|
|
11650
|
-
(g(!0), M(xe, null, ke((
|
|
11654
|
+
(g(!0), M(xe, null, ke((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, O) => (g(), R(l, {
|
|
11651
11655
|
key: O,
|
|
11652
11656
|
density: "compact",
|
|
11653
|
-
variant:
|
|
11654
|
-
color:
|
|
11657
|
+
variant: k.disabled ? "text" : "flat",
|
|
11658
|
+
color: k.disabled ? "" : "primary",
|
|
11655
11659
|
"min-width": 30,
|
|
11656
|
-
class: ne(["model text-none text-body-1 px-1",
|
|
11657
|
-
onClick: Me((F) => r.handleForecastToggle(
|
|
11660
|
+
class: ne(["model text-none text-body-1 px-1", k.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11661
|
+
onClick: Me((F) => r.handleForecastToggle(k), ["stop"])
|
|
11658
11662
|
}, {
|
|
11659
11663
|
default: u(() => [
|
|
11660
|
-
K(n(
|
|
11664
|
+
K(n(k.model), 1)
|
|
11661
11665
|
]),
|
|
11662
11666
|
_: 2
|
|
11663
11667
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11725,9 +11729,9 @@ function Em(t, e, o, i, a, r) {
|
|
|
11725
11729
|
s("div", Lc, [
|
|
11726
11730
|
s("div", Pc, [
|
|
11727
11731
|
e[6] || (e[6] = s("div", { class: "icon td" }, null, -1)),
|
|
11728
|
-
s("div",
|
|
11732
|
+
s("div", Tc, n(t.$t("tropical.td")), 1)
|
|
11729
11733
|
]),
|
|
11730
|
-
s("div",
|
|
11734
|
+
s("div", Cc, [
|
|
11731
11735
|
e[7] || (e[7] = s("div", { class: "icon sts" }, null, -1)),
|
|
11732
11736
|
s("div", Mc, n(t.$t("tropical.sts")), 1)
|
|
11733
11737
|
]),
|
|
@@ -11780,11 +11784,11 @@ function Em(t, e, o, i, a, r) {
|
|
|
11780
11784
|
]),
|
|
11781
11785
|
s("div", Kc, [
|
|
11782
11786
|
e[17] || (e[17] = s("div", { class: "icon ts" }, null, -1)),
|
|
11783
|
-
s("div",
|
|
11787
|
+
s("div", $c, n(t.$t("tropical.ts")), 1)
|
|
11784
11788
|
]),
|
|
11785
|
-
s("div",
|
|
11789
|
+
s("div", Jc, [
|
|
11786
11790
|
e[18] || (e[18] = s("div", { class: "icon sts" }, null, -1)),
|
|
11787
|
-
s("div",
|
|
11791
|
+
s("div", Qc, n(t.$t("tropical.sts")), 1)
|
|
11788
11792
|
]),
|
|
11789
11793
|
s("div", em, [
|
|
11790
11794
|
e[19] || (e[19] = s("div", { class: "icon ty" }, null, -1)),
|
|
@@ -11833,45 +11837,45 @@ function Em(t, e, o, i, a, r) {
|
|
|
11833
11837
|
"max-width": "280"
|
|
11834
11838
|
}, {
|
|
11835
11839
|
default: u(() => [
|
|
11836
|
-
p(
|
|
11840
|
+
p(w, null, {
|
|
11837
11841
|
default: u(() => {
|
|
11838
|
-
var y, z,
|
|
11842
|
+
var y, z, T, B;
|
|
11839
11843
|
return [
|
|
11840
11844
|
s("div", um, [
|
|
11841
|
-
s("span", gm, n(o.locale === "en" ? (y = a.hoverPoint) == null ? void 0 : y.Name : ((z = a.hoverPoint) == null ? void 0 : z.nameCn) || ((
|
|
11845
|
+
s("span", gm, n(o.locale === "en" ? (y = a.hoverPoint) == null ? void 0 : y.Name : ((z = a.hoverPoint) == null ? void 0 : z.nameCn) || ((T = a.hoverPoint) == null ? void 0 : T.Name)), 1),
|
|
11842
11846
|
s("span", fm, " [" + n(t.$t("tropical." + ((B = a.hoverPoint) == null ? void 0 : B.levelI18n))) + "]", 1)
|
|
11843
11847
|
])
|
|
11844
11848
|
];
|
|
11845
11849
|
}),
|
|
11846
11850
|
_: 1
|
|
11847
11851
|
}),
|
|
11848
|
-
p(
|
|
11852
|
+
p(_),
|
|
11849
11853
|
p(c, { class: "text-body-1" }, {
|
|
11850
11854
|
default: u(() => {
|
|
11851
|
-
var y, z,
|
|
11855
|
+
var y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le;
|
|
11852
11856
|
return [
|
|
11853
11857
|
s("div", ym, [
|
|
11854
11858
|
((y = a.hoverPoint) == null ? void 0 : y.type) === "forecast" ? (g(), M("div", bm, [
|
|
11855
11859
|
s("label", wm, n(t.$t("tropical.updated")) + " : ", 1),
|
|
11856
11860
|
s("span", null, n(r.computeTzTime((z = a.hoverPoint) == null ? void 0 : z.update, o.timeZone)), 1)
|
|
11857
11861
|
])) : D("", !0),
|
|
11858
|
-
((
|
|
11862
|
+
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (g(), M("div", xm, [
|
|
11859
11863
|
s("label", vm, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11860
11864
|
s("span", null, n(r.computeTzTime((B = a.hoverPoint) == null ? void 0 : B.date, o.timeZone)), 1)
|
|
11861
11865
|
])) : D("", !0),
|
|
11862
11866
|
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (g(), M("div", _m, [
|
|
11863
11867
|
s("label", km, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11864
|
-
s("span", null, n(r.computeTzTime((
|
|
11868
|
+
s("span", null, n(r.computeTzTime((x = a.hoverPoint) == null ? void 0 : x.date, o.timeZone)), 1)
|
|
11865
11869
|
])) : D("", !0),
|
|
11866
11870
|
((L = a.hoverPoint) == null ? void 0 : L.type) === "forecast" ? (g(), M("div", zm, [
|
|
11867
11871
|
s("label", Lm, n(t.$t("tropical.model")) + " : ", 1),
|
|
11868
11872
|
s("span", null, n(((P = a.hoverPoint) == null ? void 0 : P.model) ?? "-"), 1)
|
|
11869
11873
|
])) : D("", !0),
|
|
11870
|
-
((
|
|
11871
|
-
s("label",
|
|
11872
|
-
s("span", null, n(((O = JSON.parse((
|
|
11874
|
+
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (g(), M("div", Pm, [
|
|
11875
|
+
s("label", Tm, n(t.$t("weather.wind")) + " : ", 1),
|
|
11876
|
+
s("span", null, n(((O = JSON.parse((k = a.hoverPoint) == null ? void 0 : k.wind)) == null ? void 0 : O.kts) ?? "-") + " kts", 1)
|
|
11873
11877
|
])) : D("", !0),
|
|
11874
|
-
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (g(), M("div",
|
|
11878
|
+
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (g(), M("div", Cm, [
|
|
11875
11879
|
s("label", Mm, n(t.$t("weather.wind")) + " : ", 1),
|
|
11876
11880
|
s("span", null, n(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
11877
11881
|
])) : D("", !0),
|
|
@@ -11881,9 +11885,9 @@ function Em(t, e, o, i, a, r) {
|
|
|
11881
11885
|
]),
|
|
11882
11886
|
((Z = a.hoverPoint) == null ? void 0 : Z.type) === "history" ? (g(), M("div", Im, [
|
|
11883
11887
|
s("label", Rm, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11884
|
-
s("span", null, n(((
|
|
11888
|
+
s("span", null, n(((Q = JSON.parse((J = a.hoverPoint) == null ? void 0 : J.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
|
|
11885
11889
|
])) : D("", !0),
|
|
11886
|
-
((
|
|
11890
|
+
(($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (g(), M("div", Am, [
|
|
11887
11891
|
s("label", Om, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11888
11892
|
s("span", null, n(((le = JSON.parse((re = a.hoverPoint) == null ? void 0 : re.movement)) == null ? void 0 : le.deg) ?? "-") + " °", 1)
|
|
11889
11893
|
])) : D("", !0),
|
|
@@ -12103,7 +12107,7 @@ const Nm = {
|
|
|
12103
12107
|
style: { height: "56px" }
|
|
12104
12108
|
};
|
|
12105
12109
|
function Um(t, e, o, i, a, r) {
|
|
12106
|
-
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"),
|
|
12110
|
+
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"), w = v("VBtn"), _ = v("VCardActions"), y = v("VCard");
|
|
12107
12111
|
return g(), M("div", Fm, [
|
|
12108
12112
|
s("div", {
|
|
12109
12113
|
style: ee({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
@@ -12141,8 +12145,8 @@ function Um(t, e, o, i, a, r) {
|
|
|
12141
12145
|
s("div", Wm, n(a.currentTime), 1),
|
|
12142
12146
|
p(d, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
12143
12147
|
default: u(() => [
|
|
12144
|
-
(g(!0), M(xe, null, ke(r.hourOptions, (z,
|
|
12145
|
-
key:
|
|
12148
|
+
(g(!0), M(xe, null, ke(r.hourOptions, (z, T) => (g(), R(f, {
|
|
12149
|
+
key: T,
|
|
12146
12150
|
value: z,
|
|
12147
12151
|
color: "primary",
|
|
12148
12152
|
active: a.currentTime === z,
|
|
@@ -12171,12 +12175,12 @@ function Um(t, e, o, i, a, r) {
|
|
|
12171
12175
|
_: 1
|
|
12172
12176
|
}),
|
|
12173
12177
|
p(m),
|
|
12174
|
-
p(
|
|
12178
|
+
p(_, {
|
|
12175
12179
|
class: "justify-end pa-0 pr-4",
|
|
12176
12180
|
style: { height: "50px" }
|
|
12177
12181
|
}, {
|
|
12178
12182
|
default: u(() => [
|
|
12179
|
-
p(
|
|
12183
|
+
p(w, {
|
|
12180
12184
|
size: "small",
|
|
12181
12185
|
variant: "tonal",
|
|
12182
12186
|
class: "text-none text-body-2",
|
|
@@ -12187,7 +12191,7 @@ function Um(t, e, o, i, a, r) {
|
|
|
12187
12191
|
]),
|
|
12188
12192
|
_: 1
|
|
12189
12193
|
}, 8, ["onClick"]),
|
|
12190
|
-
p(
|
|
12194
|
+
p(w, {
|
|
12191
12195
|
size: "small",
|
|
12192
12196
|
variant: "flat",
|
|
12193
12197
|
color: "primary",
|
|
@@ -12398,12 +12402,12 @@ const Vm = {
|
|
|
12398
12402
|
ref: "idmGl4DatePicker"
|
|
12399
12403
|
}, Ym = { class: "flex-1-1-0" }, Xm = { class: "pa-0" };
|
|
12400
12404
|
function qm(t, e, o, i, a, r) {
|
|
12401
|
-
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"),
|
|
12405
|
+
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"), w = v("VCard");
|
|
12402
12406
|
return g(), M("div", Zm, [
|
|
12403
12407
|
s("div", {
|
|
12404
12408
|
style: ee({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
12405
12409
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12406
|
-
onClick: e[0] || (e[0] = (...
|
|
12410
|
+
onClick: e[0] || (e[0] = (..._) => r.handleOpenDatePicker && r.handleOpenDatePicker(..._))
|
|
12407
12411
|
}, [
|
|
12408
12412
|
s("span", Ym, n(a.dateRangeStr), 1),
|
|
12409
12413
|
a.dateRangeStr ? (g(), R(l, {
|
|
@@ -12413,7 +12417,7 @@ function qm(t, e, o, i, a, r) {
|
|
|
12413
12417
|
onClick: Me(r.handleClearDate, ["stop"])
|
|
12414
12418
|
}, null, 8, ["onClick"])) : D("", !0)
|
|
12415
12419
|
], 4),
|
|
12416
|
-
a.showDatePicker ? (g(), R(
|
|
12420
|
+
a.showDatePicker ? (g(), R(w, {
|
|
12417
12421
|
key: 0,
|
|
12418
12422
|
class: "card-box d-flex flex-column border",
|
|
12419
12423
|
style: ee(r.getStyle)
|
|
@@ -12424,7 +12428,7 @@ function qm(t, e, o, i, a, r) {
|
|
|
12424
12428
|
s("div", Xm, [
|
|
12425
12429
|
p(m, {
|
|
12426
12430
|
modelValue: a.dateRange,
|
|
12427
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12431
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.dateRange = _),
|
|
12428
12432
|
min: a.minDate,
|
|
12429
12433
|
max: a.maxDate,
|
|
12430
12434
|
"mode-icon": () => r.currentYear,
|
|
@@ -13422,9 +13426,18 @@ const Km = {
|
|
|
13422
13426
|
}) : this.handleCloseForm();
|
|
13423
13427
|
}
|
|
13424
13428
|
},
|
|
13429
|
+
showMeteo: {
|
|
13430
|
+
handler() {
|
|
13431
|
+
var t, e, o, i, a, r, l, m, c, f, d, b;
|
|
13432
|
+
this.showMeteo ? ((o = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || o.handleToggle("spot", !0), (r = (a = (i = this.$parent) == null ? void 0 : i.$refs) == null ? void 0 : a.idmTimePlayerBar) == null || r.handleToggle("spot", !0), this.$nextTick(() => {
|
|
13433
|
+
var w, _;
|
|
13434
|
+
this.$parent.playerBottom = ((_ = (w = this.$refs.spotMeteo) == null ? void 0 : w.$el) == null ? void 0 : _.clientHeight) + 10;
|
|
13435
|
+
})) : ((c = (m = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : m.idmTimePlayerBar) == null || c.handleToggle("spot", !1), (b = (d = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : d.idmTimePlayerBar) == null || b.handleToggle("spot", !1));
|
|
13436
|
+
}
|
|
13437
|
+
},
|
|
13425
13438
|
realTime: {
|
|
13426
13439
|
handler() {
|
|
13427
|
-
this.realTime && (this.form.dateTime = this.realTime);
|
|
13440
|
+
this.realTime && (this.form.dateTime = this.realTime, this.showMeteo && this.fetchData());
|
|
13428
13441
|
}
|
|
13429
13442
|
},
|
|
13430
13443
|
forecastModel: {
|
|
@@ -13473,8 +13486,8 @@ const Km = {
|
|
|
13473
13486
|
((o = S(this.realTime)) == null ? void 0 : o.diff(t, "d", !0)) >= 0 ? await this.fetchForecastData(this.form) : await this.fetchHistoryData(this.form);
|
|
13474
13487
|
},
|
|
13475
13488
|
async fetchForecastData(t) {
|
|
13476
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]),
|
|
13477
|
-
const { weatherModels: e, marineModels: o } =
|
|
13489
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
13490
|
+
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel);
|
|
13478
13491
|
let i = {
|
|
13479
13492
|
lat: t.lat,
|
|
13480
13493
|
lng: t.lng,
|
|
@@ -13495,7 +13508,7 @@ const Km = {
|
|
|
13495
13508
|
},
|
|
13496
13509
|
async fetchHistoryData(t) {
|
|
13497
13510
|
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), console.log(222, this.followList), this.meteoData = [];
|
|
13498
|
-
const { weatherModels: e, marineModels: o } =
|
|
13511
|
+
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel), i = {
|
|
13499
13512
|
lat: t.lat,
|
|
13500
13513
|
lng: t.lng,
|
|
13501
13514
|
datetime: S(t.dateTime).utc().format(),
|
|
@@ -13515,10 +13528,10 @@ const Km = {
|
|
|
13515
13528
|
}), this.loading = !1;
|
|
13516
13529
|
},
|
|
13517
13530
|
initTableData(t) {
|
|
13518
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
13531
|
+
var o, i, a, r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be;
|
|
13519
13532
|
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;
|
|
13520
|
-
const e = ((l =
|
|
13521
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((
|
|
13533
|
+
const e = ((l = To.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13534
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((m = e == null ? void 0 : e.weather) == null ? void 0 : m.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((f = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : f.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.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((L = (x = e == null ? void 0 : e.weather) == null ? void 0 : x.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (O = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : O.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 = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.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((re = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((ue = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (me = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : me.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (ge = e == null ? void 0 : e.wave) == null ? void 0 : ge.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
|
|
13522
13535
|
},
|
|
13523
13536
|
handleBind() {
|
|
13524
13537
|
var t, e;
|
|
@@ -13577,7 +13590,7 @@ const Km = {
|
|
|
13577
13590
|
this.$emit("cancelFollow", t);
|
|
13578
13591
|
}
|
|
13579
13592
|
}
|
|
13580
|
-
},
|
|
13593
|
+
}, $m = { class: "idm-gl4-spot" }, Jm = { class: "d-flex justify-start align-center" }, Qm = { class: "text-h6 font-weight-600" }, eh = { class: "d-flex justify-start align-center ga-1 mb-1" }, th = {
|
|
13581
13594
|
class: "multi-color-icon",
|
|
13582
13595
|
"aria-hidden": "true"
|
|
13583
13596
|
}, oh = ["xlink:href"], ah = { class: "d-flex justify-start align-center ga-1 mb-1" }, ih = {
|
|
@@ -13613,10 +13626,10 @@ const Km = {
|
|
|
13613
13626
|
}, Ph = {
|
|
13614
13627
|
style: { width: "150px" },
|
|
13615
13628
|
class: "pa-0 text-left"
|
|
13616
|
-
},
|
|
13629
|
+
}, Th = {
|
|
13617
13630
|
style: { width: "80px" },
|
|
13618
13631
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13619
|
-
},
|
|
13632
|
+
}, Ch = {
|
|
13620
13633
|
cols: "3",
|
|
13621
13634
|
class: "pa-0 text-left"
|
|
13622
13635
|
}, Mh = { class: "mx-0 py-2 d-flex align-center justify-start" }, Sh = {
|
|
@@ -13631,14 +13644,14 @@ const Km = {
|
|
|
13631
13644
|
}, Rh = { class: "pa-0 text-left" }, Ah = { class: "d-flex justify-space-between align-center" }, Oh = { class: "d-flex justify-start align-center" }, Bh = { class: "mx-1" }, jh = { class: "d-flex justify-end align-center" }, Eh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Nh = {
|
|
13632
13645
|
style: { width: "60px" },
|
|
13633
13646
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13634
|
-
}, Fh = { class: "pa-0 px-0" }, Hh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Gh = { class: "pa-0 px-0" }, Wh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Uh = { class: "d-flex flex-column align-start justify-center ga-3" }, Vh = { class: "text-label pr-2" }, Zh = { class: "text-label pr-2" }, Yh = { class: "text-label pr-2" }, Xh = { class: "d-flex flex-column align-start justify-center ga-3" }, qh = { class: "text-label pr-2" }, Kh = { class: "text-label pr-2" },
|
|
13647
|
+
}, Fh = { class: "pa-0 px-0" }, Hh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Gh = { class: "pa-0 px-0" }, Wh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Uh = { class: "d-flex flex-column align-start justify-center ga-3" }, Vh = { class: "text-label pr-2" }, Zh = { class: "text-label pr-2" }, Yh = { class: "text-label pr-2" }, Xh = { class: "d-flex flex-column align-start justify-center ga-3" }, qh = { class: "text-label pr-2" }, Kh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, Jh = { id: "idm-position-icon" }, Qh = {
|
|
13635
13648
|
class: "multi-color-icon",
|
|
13636
13649
|
style: { height: "30px", width: "30px" },
|
|
13637
13650
|
"aria-hidden": "true"
|
|
13638
13651
|
}, ed = ["xlink:href"];
|
|
13639
13652
|
function td(t, e, o, i, a, r) {
|
|
13640
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"),
|
|
13641
|
-
return g(), M("div",
|
|
13653
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"), w = v("VRow"), _ = v("DateTimePicker"), y = v("VBtnToggle"), z = v("VCardText"), T = v("VCardActions"), B = v("VForm"), I = v("VCard");
|
|
13654
|
+
return g(), M("div", $m, [
|
|
13642
13655
|
s("div", {
|
|
13643
13656
|
class: "menu-bar-box transition pa-1",
|
|
13644
13657
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + "px" })
|
|
@@ -13651,8 +13664,8 @@ function td(t, e, o, i, a, r) {
|
|
|
13651
13664
|
"open-on-focus": !o.simple,
|
|
13652
13665
|
"open-on-hover": !o.simple
|
|
13653
13666
|
}, {
|
|
13654
|
-
activator: u(({ props:
|
|
13655
|
-
p(l, j(
|
|
13667
|
+
activator: u(({ props: x }) => [
|
|
13668
|
+
p(l, j(x, {
|
|
13656
13669
|
"min-width": "32",
|
|
13657
13670
|
width: "32",
|
|
13658
13671
|
height: "32",
|
|
@@ -13677,8 +13690,8 @@ function td(t, e, o, i, a, r) {
|
|
|
13677
13690
|
default: u(() => [
|
|
13678
13691
|
p(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13679
13692
|
default: u(() => [
|
|
13680
|
-
s("div",
|
|
13681
|
-
s("div",
|
|
13693
|
+
s("div", Jm, [
|
|
13694
|
+
s("div", Qm, n(t.$t("spot.spotWeather")), 1)
|
|
13682
13695
|
]),
|
|
13683
13696
|
p(l, {
|
|
13684
13697
|
icon: "",
|
|
@@ -13714,7 +13727,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13714
13727
|
])),
|
|
13715
13728
|
s("div", null, n(t.$t("spot.lng")), 1)
|
|
13716
13729
|
]),
|
|
13717
|
-
p(
|
|
13730
|
+
p(w, { class: "ma-0" }, {
|
|
13718
13731
|
default: u(() => [
|
|
13719
13732
|
p(b, {
|
|
13720
13733
|
cols: "4",
|
|
@@ -13723,7 +13736,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13723
13736
|
default: u(() => [
|
|
13724
13737
|
p(d, {
|
|
13725
13738
|
modelValue: a.form.lngDegree,
|
|
13726
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
13739
|
+
"onUpdate:modelValue": e[0] || (e[0] = (x) => a.form.lngDegree = x),
|
|
13727
13740
|
rules: a.formRules.lngDegree,
|
|
13728
13741
|
density: "compact",
|
|
13729
13742
|
variant: "outlined",
|
|
@@ -13743,7 +13756,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13743
13756
|
default: u(() => [
|
|
13744
13757
|
p(d, {
|
|
13745
13758
|
modelValue: a.form.lngMinute,
|
|
13746
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
13759
|
+
"onUpdate:modelValue": e[1] || (e[1] = (x) => a.form.lngMinute = x),
|
|
13747
13760
|
rules: a.formRules.lngMinute,
|
|
13748
13761
|
label: "",
|
|
13749
13762
|
density: "compact",
|
|
@@ -13770,7 +13783,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13770
13783
|
height: "32",
|
|
13771
13784
|
class: "text-body-1 btn-bg-1",
|
|
13772
13785
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13773
|
-
onClick: e[2] || (e[2] = (
|
|
13786
|
+
onClick: e[2] || (e[2] = (x) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
13774
13787
|
}, {
|
|
13775
13788
|
default: u(() => [
|
|
13776
13789
|
K(n(a.form.lngDirection), 1)
|
|
@@ -13791,7 +13804,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13791
13804
|
])),
|
|
13792
13805
|
s("div", null, n(t.$t("spot.lat")), 1)
|
|
13793
13806
|
]),
|
|
13794
|
-
p(
|
|
13807
|
+
p(w, { class: "ma-0" }, {
|
|
13795
13808
|
default: u(() => [
|
|
13796
13809
|
p(b, {
|
|
13797
13810
|
cols: "4",
|
|
@@ -13800,7 +13813,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13800
13813
|
default: u(() => [
|
|
13801
13814
|
p(d, {
|
|
13802
13815
|
modelValue: a.form.latDegree,
|
|
13803
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
13816
|
+
"onUpdate:modelValue": e[3] || (e[3] = (x) => a.form.latDegree = x),
|
|
13804
13817
|
rules: a.formRules.latDegree,
|
|
13805
13818
|
label: "",
|
|
13806
13819
|
density: "compact",
|
|
@@ -13823,7 +13836,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13823
13836
|
default: u(() => [
|
|
13824
13837
|
p(d, {
|
|
13825
13838
|
modelValue: a.form.latMinute,
|
|
13826
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13839
|
+
"onUpdate:modelValue": e[4] || (e[4] = (x) => a.form.latMinute = x),
|
|
13827
13840
|
rules: a.formRules.latMinute,
|
|
13828
13841
|
label: "",
|
|
13829
13842
|
density: "compact",
|
|
@@ -13850,7 +13863,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13850
13863
|
height: "32",
|
|
13851
13864
|
class: "text-body-1 btn-bg-1",
|
|
13852
13865
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13853
|
-
onClick: e[5] || (e[5] = (
|
|
13866
|
+
onClick: e[5] || (e[5] = (x) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13854
13867
|
}, {
|
|
13855
13868
|
default: u(() => [
|
|
13856
13869
|
K(n(a.form.latDirection), 1)
|
|
@@ -13871,18 +13884,18 @@ function td(t, e, o, i, a, r) {
|
|
|
13871
13884
|
])),
|
|
13872
13885
|
s("div", null, n(t.$t("spot.dateTime")), 1)
|
|
13873
13886
|
]),
|
|
13874
|
-
p(
|
|
13887
|
+
p(w, { class: "ma-0 mb-4" }, {
|
|
13875
13888
|
default: u(() => [
|
|
13876
13889
|
p(b, {
|
|
13877
13890
|
cols: "12",
|
|
13878
13891
|
class: "pa-0"
|
|
13879
13892
|
}, {
|
|
13880
13893
|
default: u(() => [
|
|
13881
|
-
p(
|
|
13894
|
+
p(_, j({
|
|
13882
13895
|
"date-time": a.form.dateTime,
|
|
13883
13896
|
"time-zone": o.timeZone
|
|
13884
13897
|
}, t.$attrs, {
|
|
13885
|
-
onDateTime: e[6] || (e[6] = (
|
|
13898
|
+
onDateTime: e[6] || (e[6] = (x) => a.form.dateTime = x)
|
|
13886
13899
|
}), null, 16, ["date-time", "time-zone"])
|
|
13887
13900
|
]),
|
|
13888
13901
|
_: 1
|
|
@@ -13898,7 +13911,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13898
13911
|
])),
|
|
13899
13912
|
s("div", null, n(t.$t("weather.forecastModel")), 1)
|
|
13900
13913
|
]),
|
|
13901
|
-
p(
|
|
13914
|
+
p(w, { class: "ma-0 mb-2" }, {
|
|
13902
13915
|
default: u(() => [
|
|
13903
13916
|
p(b, {
|
|
13904
13917
|
cols: "12",
|
|
@@ -13907,7 +13920,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13907
13920
|
default: u(() => [
|
|
13908
13921
|
p(y, {
|
|
13909
13922
|
modelValue: a.form.forecastModel,
|
|
13910
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13923
|
+
"onUpdate:modelValue": e[7] || (e[7] = (x) => a.form.forecastModel = x),
|
|
13911
13924
|
class: "w-100",
|
|
13912
13925
|
rounded: "",
|
|
13913
13926
|
height: "30",
|
|
@@ -13956,7 +13969,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13956
13969
|
_: 1
|
|
13957
13970
|
}),
|
|
13958
13971
|
p(f),
|
|
13959
|
-
p(
|
|
13972
|
+
p(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
13960
13973
|
default: u(() => [
|
|
13961
13974
|
p(l, {
|
|
13962
13975
|
size: "small",
|
|
@@ -13992,7 +14005,7 @@ function td(t, e, o, i, a, r) {
|
|
|
13992
14005
|
]),
|
|
13993
14006
|
_: 1
|
|
13994
14007
|
}, 8, ["style"])) : D("", !0),
|
|
13995
|
-
a.showMeteo ? (g(), R(I, {
|
|
14008
|
+
a.showMeteo && !o.simple ? (g(), R(I, {
|
|
13996
14009
|
key: 1,
|
|
13997
14010
|
id: "idm-gl4-spot-meteo",
|
|
13998
14011
|
class: "spot-meteo",
|
|
@@ -14024,11 +14037,11 @@ function td(t, e, o, i, a, r) {
|
|
|
14024
14037
|
p(f),
|
|
14025
14038
|
p(z, { class: "text-body-1 px-0 py-1" }, {
|
|
14026
14039
|
default: u(() => {
|
|
14027
|
-
var
|
|
14040
|
+
var x, L;
|
|
14028
14041
|
return [
|
|
14029
14042
|
s("div", uh, [
|
|
14030
14043
|
s("div", gh, n(t.$t("time.time")), 1),
|
|
14031
|
-
s("div", fh, n(r.computedTzTime((
|
|
14044
|
+
s("div", fh, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14032
14045
|
]),
|
|
14033
14046
|
s("div", yh, [
|
|
14034
14047
|
e[18] || (e[18] = s("div", {
|
|
@@ -14046,8 +14059,8 @@ function td(t, e, o, i, a, r) {
|
|
|
14046
14059
|
s("div", zh, [
|
|
14047
14060
|
s("div", Lh, n(t.$t("weather.windWave")), 1),
|
|
14048
14061
|
s("div", Ph, n(a.currentHourData.windwaveDir ?? "-") + "/" + n(a.currentHourData.windwaveHeight ?? "-") + "m/" + n(a.currentHourData.windwavePeriod ?? "-") + "s", 1),
|
|
14049
|
-
s("div",
|
|
14050
|
-
s("div",
|
|
14062
|
+
s("div", Th, n(t.$t("weather.swell")), 1),
|
|
14063
|
+
s("div", Ch, n(a.currentHourData.swellDir ?? "-") + "/" + n(a.currentHourData.swellHeight ?? "-") + "m/" + n(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
14051
14064
|
]),
|
|
14052
14065
|
s("div", Mh, [
|
|
14053
14066
|
s("div", Sh, n(t.$t("weather.current")), 1),
|
|
@@ -14060,13 +14073,13 @@ function td(t, e, o, i, a, r) {
|
|
|
14060
14073
|
_: 1
|
|
14061
14074
|
}),
|
|
14062
14075
|
p(f),
|
|
14063
|
-
p(
|
|
14076
|
+
p(T, { class: "d-flex justify-space-between align-center" }, {
|
|
14064
14077
|
default: u(() => {
|
|
14065
|
-
var
|
|
14078
|
+
var x;
|
|
14066
14079
|
return [
|
|
14067
|
-
(
|
|
14068
|
-
var P,
|
|
14069
|
-
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((
|
|
14080
|
+
(x = o.followList) != null && x.some((L) => {
|
|
14081
|
+
var P, C;
|
|
14082
|
+
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14070
14083
|
}) ? (g(), R(l, {
|
|
14071
14084
|
key: 0,
|
|
14072
14085
|
class: "text-none text-body-1",
|
|
@@ -14122,13 +14135,14 @@ function td(t, e, o, i, a, r) {
|
|
|
14122
14135
|
})) : D("", !0),
|
|
14123
14136
|
a.showMeteo && o.simple ? (g(), R(I, {
|
|
14124
14137
|
key: 2,
|
|
14138
|
+
ref: "spotMeteo",
|
|
14125
14139
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
14126
14140
|
style: { width: "100vw", "z-index": "1001" }
|
|
14127
14141
|
}, {
|
|
14128
14142
|
default: u(() => [
|
|
14129
14143
|
p(c, null, {
|
|
14130
14144
|
default: u(() => {
|
|
14131
|
-
var
|
|
14145
|
+
var x;
|
|
14132
14146
|
return [
|
|
14133
14147
|
s("div", Ah, [
|
|
14134
14148
|
s("div", Oh, [
|
|
@@ -14136,9 +14150,9 @@ function td(t, e, o, i, a, r) {
|
|
|
14136
14150
|
s("div", Bh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14137
14151
|
]),
|
|
14138
14152
|
s("div", jh, [
|
|
14139
|
-
(
|
|
14140
|
-
var P,
|
|
14141
|
-
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((
|
|
14153
|
+
(x = o.followList) != null && x.some((L) => {
|
|
14154
|
+
var P, C;
|
|
14155
|
+
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((C = L == null ? void 0 : L.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
14142
14156
|
}) ? (g(), R(l, {
|
|
14143
14157
|
key: 0,
|
|
14144
14158
|
class: "text-none text-body-1 rounded-circle",
|
|
@@ -14194,11 +14208,11 @@ function td(t, e, o, i, a, r) {
|
|
|
14194
14208
|
p(f),
|
|
14195
14209
|
p(z, { class: "text-body-1 px-0 py-2" }, {
|
|
14196
14210
|
default: u(() => {
|
|
14197
|
-
var
|
|
14211
|
+
var x, L;
|
|
14198
14212
|
return [
|
|
14199
14213
|
s("div", Eh, [
|
|
14200
14214
|
s("div", Nh, n(t.$t("time.time")), 1),
|
|
14201
|
-
s("div", Fh, n(r.computedTzTime((
|
|
14215
|
+
s("div", Fh, n(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
|
|
14202
14216
|
]),
|
|
14203
14217
|
s("div", Hh, [
|
|
14204
14218
|
e[26] || (e[26] = s("div", {
|
|
@@ -14232,7 +14246,7 @@ function td(t, e, o, i, a, r) {
|
|
|
14232
14246
|
s("span", null, n(a.currentHourData.currentDir ?? "-") + "/" + n(a.currentHourData.currentSpeed ?? "-") + "kts", 1)
|
|
14233
14247
|
]),
|
|
14234
14248
|
s("div", null, [
|
|
14235
|
-
s("span",
|
|
14249
|
+
s("span", $h, n(t.$t("weather.visibility")), 1),
|
|
14236
14250
|
s("span", null, n(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
14237
14251
|
])
|
|
14238
14252
|
])
|
|
@@ -14243,9 +14257,9 @@ function td(t, e, o, i, a, r) {
|
|
|
14243
14257
|
})
|
|
14244
14258
|
]),
|
|
14245
14259
|
_: 1
|
|
14246
|
-
})) : D("", !0),
|
|
14247
|
-
Ze(s("div",
|
|
14248
|
-
(g(), M("svg",
|
|
14260
|
+
}, 512)) : D("", !0),
|
|
14261
|
+
Ze(s("div", Jh, [
|
|
14262
|
+
(g(), M("svg", Qh, [
|
|
14249
14263
|
s("use", {
|
|
14250
14264
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
14251
14265
|
}, null, 8, ed)
|
|
@@ -14357,21 +14371,21 @@ const ad = {
|
|
|
14357
14371
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14358
14372
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14359
14373
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14360
|
-
const
|
|
14361
|
-
this.pointMarkers[
|
|
14374
|
+
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
14375
|
+
this.pointMarkers[w.id].filter((T) => {
|
|
14362
14376
|
var B;
|
|
14363
|
-
return ((B =
|
|
14377
|
+
return ((B = T._element) == null ? void 0 : B.id) === e;
|
|
14364
14378
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14365
14379
|
let y;
|
|
14366
|
-
|
|
14367
|
-
if (
|
|
14380
|
+
w.features.forEach((T, B) => {
|
|
14381
|
+
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
14368
14382
|
y = B;
|
|
14369
14383
|
return;
|
|
14370
14384
|
}
|
|
14371
14385
|
});
|
|
14372
|
-
const z =
|
|
14386
|
+
const z = w.features.filter((T) => T.geometry.type === "Point");
|
|
14373
14387
|
this.handleTmpPointUpdate(
|
|
14374
|
-
|
|
14388
|
+
w,
|
|
14375
14389
|
z[y - 1],
|
|
14376
14390
|
{ lng: (f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, lat: (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat, properties: z[y].properties },
|
|
14377
14391
|
y === z.length - 1 ? void 0 : z[y + 1]
|
|
@@ -14382,13 +14396,13 @@ const ad = {
|
|
|
14382
14396
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14383
14397
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14384
14398
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14385
|
-
const
|
|
14386
|
-
this.pointMarkers[
|
|
14387
|
-
var
|
|
14388
|
-
return ((
|
|
14399
|
+
const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
|
|
14400
|
+
this.pointMarkers[w.id].filter((z) => {
|
|
14401
|
+
var T;
|
|
14402
|
+
return ((T = z._element) == null ? void 0 : T.id) === e;
|
|
14389
14403
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (m = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : m.lat]);
|
|
14390
|
-
const y =
|
|
14391
|
-
y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat],
|
|
14404
|
+
const y = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
|
|
14405
|
+
y.geometry.coordinates = [(f = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : f.lng, (b = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
14392
14406
|
}
|
|
14393
14407
|
},
|
|
14394
14408
|
handleContextmenu(t) {
|
|
@@ -14438,10 +14452,10 @@ const ad = {
|
|
|
14438
14452
|
for (let a = 1; a < e.length; a++) {
|
|
14439
14453
|
const r = e[a - 1], l = e[a], m = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, d = Ve.calculateDistance(c, f, m.mode === "RL", 4), b = Ve.calculateBearing(c, f, m.mode === "RL", 2);
|
|
14440
14454
|
o = q.roundPrecision(o + d, 4);
|
|
14441
|
-
let
|
|
14442
|
-
m.mode === "RL" ?
|
|
14443
|
-
const
|
|
14444
|
-
|
|
14455
|
+
let w;
|
|
14456
|
+
m.mode === "RL" ? w = q.convertToMonotonicLng([c, f]) : w = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
|
|
14457
|
+
const _ = G.lineString(w.map((z) => [z.lng, z.lat]));
|
|
14458
|
+
_.properties.dist = d, _.properties.bearing = b, _.properties.total = o, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
|
|
14445
14459
|
const y = e[a];
|
|
14446
14460
|
y.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
14447
14461
|
}
|
|
@@ -14457,16 +14471,16 @@ const ad = {
|
|
|
14457
14471
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14458
14472
|
let b;
|
|
14459
14473
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14460
|
-
const
|
|
14461
|
-
|
|
14474
|
+
const w = G.lineString(b.map((_) => [_.lng, _.lat]));
|
|
14475
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
14462
14476
|
}
|
|
14463
14477
|
if (i) {
|
|
14464
14478
|
const c = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
14465
14479
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14466
14480
|
let b;
|
|
14467
14481
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14468
|
-
const
|
|
14469
|
-
|
|
14482
|
+
const w = G.lineString(b.map((_) => [_.lng, _.lat]));
|
|
14483
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
14470
14484
|
}
|
|
14471
14485
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
14472
14486
|
type: "geojson",
|
|
@@ -14607,11 +14621,11 @@ const ad = {
|
|
|
14607
14621
|
}
|
|
14608
14622
|
},
|
|
14609
14623
|
handleClear(t, e = !0) {
|
|
14610
|
-
var l, m, c, f, d, b,
|
|
14624
|
+
var l, m, c, f, d, b, w, _, y, z;
|
|
14611
14625
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
14612
|
-
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (
|
|
14613
|
-
|
|
14614
|
-
}), this.pointMarkers[t.id] = [], (
|
|
14626
|
+
(l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (m = this.map) != null && m.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
14627
|
+
T == null || T.remove();
|
|
14628
|
+
}), this.pointMarkers[t.id] = [], (_ = this.tipMarker) == null || _.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
14615
14629
|
}
|
|
14616
14630
|
}
|
|
14617
14631
|
}, id = { class: "idm-gl4-measure" };
|
|
@@ -14669,6 +14683,7 @@ const ld = {
|
|
|
14669
14683
|
right: 10,
|
|
14670
14684
|
show: {
|
|
14671
14685
|
weather: !1,
|
|
14686
|
+
spot: !1,
|
|
14672
14687
|
tropical: !1,
|
|
14673
14688
|
ship: !1
|
|
14674
14689
|
},
|
|
@@ -14781,7 +14796,7 @@ const ld = {
|
|
|
14781
14796
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
14782
14797
|
}, ud = ["onClick"], gd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, fd = { class: "text-body-1" };
|
|
14783
14798
|
function yd(t, e, o, i, a, r) {
|
|
14784
|
-
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"),
|
|
14799
|
+
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"), w = v("VDivider"), _ = v("VTooltip");
|
|
14785
14800
|
return g(), M("div", nd, [
|
|
14786
14801
|
s("div", {
|
|
14787
14802
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -14827,7 +14842,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
14827
14842
|
}, {
|
|
14828
14843
|
default: u(() => [
|
|
14829
14844
|
p(m, {
|
|
14830
|
-
onClick: (
|
|
14845
|
+
onClick: (T) => a.intervalHour = y
|
|
14831
14846
|
}, {
|
|
14832
14847
|
default: u(() => [
|
|
14833
14848
|
K(n(y) + "h", 1)
|
|
@@ -14847,7 +14862,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
14847
14862
|
_: 1
|
|
14848
14863
|
})
|
|
14849
14864
|
]),
|
|
14850
|
-
p(
|
|
14865
|
+
p(w, {
|
|
14851
14866
|
vertical: "",
|
|
14852
14867
|
class: "mx-2 my-3",
|
|
14853
14868
|
style: { height: "16px" }
|
|
@@ -14920,23 +14935,23 @@ function yd(t, e, o, i, a, r) {
|
|
|
14920
14935
|
__: [14]
|
|
14921
14936
|
}, 8, ["onClick"])
|
|
14922
14937
|
]),
|
|
14923
|
-
p(
|
|
14938
|
+
p(w, {
|
|
14924
14939
|
vertical: "",
|
|
14925
14940
|
class: "mx-2 my-3",
|
|
14926
14941
|
style: { height: "16px" }
|
|
14927
14942
|
}),
|
|
14928
14943
|
s("div", hd, [
|
|
14929
|
-
p(
|
|
14944
|
+
p(_, {
|
|
14930
14945
|
text: t.$t("weather.windBarbs"),
|
|
14931
14946
|
location: "top"
|
|
14932
14947
|
}, {
|
|
14933
14948
|
activator: u(({ props: y }) => {
|
|
14934
|
-
var z,
|
|
14949
|
+
var z, T;
|
|
14935
14950
|
return [
|
|
14936
14951
|
p(b, j(y, {
|
|
14937
14952
|
class: "pa-1 d-flex",
|
|
14938
14953
|
color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
|
|
14939
|
-
variant: (
|
|
14954
|
+
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
14940
14955
|
height: "24",
|
|
14941
14956
|
width: "24",
|
|
14942
14957
|
"min-width": "24",
|
|
@@ -14952,17 +14967,17 @@ function yd(t, e, o, i, a, r) {
|
|
|
14952
14967
|
}),
|
|
14953
14968
|
_: 1
|
|
14954
14969
|
}, 8, ["text"]),
|
|
14955
|
-
p(
|
|
14970
|
+
p(_, {
|
|
14956
14971
|
text: t.$t("weather.sigWaveHeight"),
|
|
14957
14972
|
location: "top"
|
|
14958
14973
|
}, {
|
|
14959
14974
|
activator: u(({ props: y }) => {
|
|
14960
|
-
var z,
|
|
14975
|
+
var z, T;
|
|
14961
14976
|
return [
|
|
14962
14977
|
p(b, j(y, {
|
|
14963
14978
|
class: "pa-1 d-flex",
|
|
14964
14979
|
color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
|
|
14965
|
-
variant: (
|
|
14980
|
+
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
14966
14981
|
height: "24",
|
|
14967
14982
|
width: "24",
|
|
14968
14983
|
"min-width": "24",
|
|
@@ -14977,17 +14992,17 @@ function yd(t, e, o, i, a, r) {
|
|
|
14977
14992
|
}),
|
|
14978
14993
|
_: 1
|
|
14979
14994
|
}, 8, ["text"]),
|
|
14980
|
-
p(
|
|
14995
|
+
p(_, {
|
|
14981
14996
|
text: t.$t("weather.currentDirection"),
|
|
14982
14997
|
location: "top"
|
|
14983
14998
|
}, {
|
|
14984
14999
|
activator: u(({ props: y }) => {
|
|
14985
|
-
var z,
|
|
15000
|
+
var z, T;
|
|
14986
15001
|
return [
|
|
14987
15002
|
p(b, j(y, {
|
|
14988
15003
|
class: "pa-1 d-flex",
|
|
14989
15004
|
color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
|
|
14990
|
-
variant: (
|
|
15005
|
+
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
14991
15006
|
height: "24",
|
|
14992
15007
|
width: "24",
|
|
14993
15008
|
"min-width": "24",
|
|
@@ -15002,7 +15017,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
15002
15017
|
}),
|
|
15003
15018
|
_: 1
|
|
15004
15019
|
}, 8, ["text"]),
|
|
15005
|
-
p(
|
|
15020
|
+
p(_, {
|
|
15006
15021
|
text: t.$t("weather.weatherLayers"),
|
|
15007
15022
|
location: "top"
|
|
15008
15023
|
}, {
|
|
@@ -15024,7 +15039,7 @@ function yd(t, e, o, i, a, r) {
|
|
|
15024
15039
|
_: 1
|
|
15025
15040
|
}, 8, ["text"])
|
|
15026
15041
|
]),
|
|
15027
|
-
p(
|
|
15042
|
+
p(w, {
|
|
15028
15043
|
vertical: "",
|
|
15029
15044
|
class: "mx-2 mr-3 my-3",
|
|
15030
15045
|
style: { height: "16px" }
|
|
@@ -15102,7 +15117,7 @@ const wd = {
|
|
|
15102
15117
|
},
|
|
15103
15118
|
playerBottom: {
|
|
15104
15119
|
type: Number,
|
|
15105
|
-
default:
|
|
15120
|
+
default: 30
|
|
15106
15121
|
}
|
|
15107
15122
|
},
|
|
15108
15123
|
emits: ["realTime", "timeZone"],
|
|
@@ -15111,6 +15126,7 @@ const wd = {
|
|
|
15111
15126
|
right: 10,
|
|
15112
15127
|
show: {
|
|
15113
15128
|
weather: !1,
|
|
15129
|
+
spot: !1,
|
|
15114
15130
|
tropical: !1,
|
|
15115
15131
|
ship: !1
|
|
15116
15132
|
},
|
|
@@ -15296,7 +15312,7 @@ function vd(t, e, o, i, a, r) {
|
|
|
15296
15312
|
])
|
|
15297
15313
|
], 4);
|
|
15298
15314
|
}
|
|
15299
|
-
const
|
|
15315
|
+
const $a = /* @__PURE__ */ Y(wd, [["render", vd]]), _d = {
|
|
15300
15316
|
name: "IdmGL4",
|
|
15301
15317
|
components: {
|
|
15302
15318
|
IdmOtherLayer: hl,
|
|
@@ -15305,7 +15321,7 @@ const Ja = /* @__PURE__ */ Y(wd, [["render", vd]]), _d = {
|
|
|
15305
15321
|
IdmMeasure: rd,
|
|
15306
15322
|
IdmSpot: od,
|
|
15307
15323
|
IdmBottomBar: bd,
|
|
15308
|
-
IdmTimePlayer:
|
|
15324
|
+
IdmTimePlayer: $a
|
|
15309
15325
|
},
|
|
15310
15326
|
props: {
|
|
15311
15327
|
map: {
|
|
@@ -15337,6 +15353,7 @@ const Ja = /* @__PURE__ */ Y(wd, [["render", vd]]), _d = {
|
|
|
15337
15353
|
layerVersion: 0,
|
|
15338
15354
|
autoActive: !0,
|
|
15339
15355
|
tropicals: void 0,
|
|
15356
|
+
playerBottom: 30,
|
|
15340
15357
|
gateway: "https://cbe.idmwx.com",
|
|
15341
15358
|
assistGateway: ["https://assist0.idmwx.com", "https://assist1.idmwx.com", "https://assist2.idmwx.com", "https://assist3.idmwx.com"],
|
|
15342
15359
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNtZWliMDg2dTAwMDdmdnV4ZHRhcmFoODIiLCJyb2xlIjoyLCJuYW1lIjoiY2hlbmhlbmdAb3Jtd3guY29tIiwicGxhdElkIjoiZ2QwbXQxZCIsImNvbXBhbnkiOnsiaWQiOm51bGwsImNoaWxkcmVuIjpbXX0sImlhdCI6MTc1NTg1NzQ0NiwiZXhwIjozOTYzMzc3NDQ2fQ.nll8PA8tZEFONV2ydX4Rx_Xya7nMzJQ6vPSL_Sg2dVU"
|
|
@@ -15365,7 +15382,7 @@ const Ja = /* @__PURE__ */ Y(wd, [["render", vd]]), _d = {
|
|
|
15365
15382
|
class: "map-gl4-home"
|
|
15366
15383
|
};
|
|
15367
15384
|
function zd(t, e, o, i, a, r) {
|
|
15368
|
-
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"),
|
|
15385
|
+
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"), w = v("IdmTimePlayer");
|
|
15369
15386
|
return g(), M("div", kd, [
|
|
15370
15387
|
p(l, j({
|
|
15371
15388
|
ref: "idmOtherLayers",
|
|
@@ -15379,8 +15396,8 @@ function zd(t, e, o, i, a, r) {
|
|
|
15379
15396
|
"forecast-model": o.forecastModel,
|
|
15380
15397
|
"map-feather": o.mapFeather
|
|
15381
15398
|
}, t.$attrs, {
|
|
15382
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
15383
|
-
a.otherCheckList =
|
|
15399
|
+
onOtherCheckList: e[0] || (e[0] = (_) => {
|
|
15400
|
+
a.otherCheckList = _, a.layerVersion = a.layerVersion + 1;
|
|
15384
15401
|
})
|
|
15385
15402
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15386
15403
|
p(m, j({
|
|
@@ -15395,11 +15412,11 @@ function zd(t, e, o, i, a, r) {
|
|
|
15395
15412
|
"forecast-model": o.forecastModel,
|
|
15396
15413
|
"map-feather": o.mapFeather
|
|
15397
15414
|
}, t.$attrs, {
|
|
15398
|
-
onAutoActive: e[1] || (e[1] = (
|
|
15399
|
-
a.autoActive =
|
|
15415
|
+
onAutoActive: e[1] || (e[1] = (_) => {
|
|
15416
|
+
a.autoActive = _, a.layerVersion = a.layerVersion + 1;
|
|
15400
15417
|
}),
|
|
15401
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
15402
|
-
a.weatherCheckList =
|
|
15418
|
+
onWeatherCheckList: e[2] || (e[2] = (_) => {
|
|
15419
|
+
a.weatherCheckList = _, a.layerVersion = a.layerVersion + 1;
|
|
15403
15420
|
})
|
|
15404
15421
|
}), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
15405
15422
|
p(c, j({
|
|
@@ -15436,14 +15453,14 @@ function zd(t, e, o, i, a, r) {
|
|
|
15436
15453
|
"weather-check-list": a.weatherCheckList,
|
|
15437
15454
|
"map-feather": o.mapFeather
|
|
15438
15455
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])),
|
|
15439
|
-
o.simple ? (g(), R(
|
|
15456
|
+
o.simple ? (g(), R(w, j({
|
|
15440
15457
|
key: 1,
|
|
15441
|
-
ref: "
|
|
15458
|
+
ref: "idmTimePlayerBar",
|
|
15459
|
+
playerBottom: a.playerBottom,
|
|
15442
15460
|
bgClass: o.simple ? "bg-background" : "",
|
|
15443
15461
|
"weather-check-list": a.weatherCheckList,
|
|
15444
|
-
"map-feather": o.mapFeather
|
|
15445
|
-
|
|
15446
|
-
}, t.$attrs), null, 16, ["bgClass", "weather-check-list", "map-feather"])) : D("", !0)
|
|
15462
|
+
"map-feather": o.mapFeather
|
|
15463
|
+
}, t.$attrs), null, 16, ["playerBottom", "bgClass", "weather-check-list", "map-feather"])) : D("", !0)
|
|
15447
15464
|
], 512);
|
|
15448
15465
|
}
|
|
15449
15466
|
const Ld = /* @__PURE__ */ Y(_d, [["render", zd]]);
|
|
@@ -15455,7 +15472,7 @@ class Pd {
|
|
|
15455
15472
|
pe(this, "hi");
|
|
15456
15473
|
pe(this, "td");
|
|
15457
15474
|
pe(this, "windy");
|
|
15458
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
15475
|
+
var o, i, a, r, l, m, c, f, d, b, w, _, y, z, T, B, I, x, L, P, C, k, O, F, V, X, Z, J, Q, $, re, le, ue, ie, me, ge, he, de, A, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re, W, ye, ae, se, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, $e, Je, Qe, et, tt, ot, at, it, st, rt, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, Mt, St, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, so, ro, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, Xo, qo, Ko, $o, Jo, Qo, ea, ta, oa, aa, ia, sa, ra, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Ma, Sa, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
15459
15476
|
this.i4 = {
|
|
15460
15477
|
source: {
|
|
15461
15478
|
type: "raster",
|
|
@@ -34101,25 +34118,25 @@ class Pd {
|
|
|
34101
34118
|
(m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
|
|
34102
34119
|
(f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
34103
34120
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
34104
|
-
(
|
|
34121
|
+
(_ = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : _.find((h) => h.id === "loadlines-fill"),
|
|
34105
34122
|
(z = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-0"),
|
|
34106
|
-
(B = (
|
|
34107
|
-
(
|
|
34123
|
+
(B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
34124
|
+
(x = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : x.find((h) => h.id === "country-boundaries"),
|
|
34108
34125
|
(P = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : P.find((h) => h.id === "water-outline"),
|
|
34109
|
-
(
|
|
34126
|
+
(k = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : k.find((h) => h.id === "water-outline2"),
|
|
34110
34127
|
(F = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
34111
34128
|
(X = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : X.find((h) => h.id === "water-line-label"),
|
|
34112
|
-
(
|
|
34113
|
-
(
|
|
34129
|
+
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((h) => h.id === "water-point-label"),
|
|
34130
|
+
($ = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : $.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
34114
34131
|
(le = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : le.find((h) => h.id === "ne-10m-outline"),
|
|
34115
34132
|
(ie = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : ie.find((h) => h.id === "ne-10m-label"),
|
|
34116
34133
|
(ge = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : ge.find((h) => h.id === "china-route-line"),
|
|
34117
34134
|
(de = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : de.find((h) => h.id === "china-route-fill"),
|
|
34118
34135
|
(te = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : te.find((h) => h.id === "china-route-label"),
|
|
34119
34136
|
(ve = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : ve.find((h) => h.id === "admin-0-boundary-bg"),
|
|
34120
|
-
(
|
|
34137
|
+
(Te = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Te.find((h) => h.id === "admin-0-boundary"),
|
|
34121
34138
|
(Ie = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : Ie.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
34122
|
-
(H = (
|
|
34139
|
+
(H = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : H.find((h) => h.id === "country-label"),
|
|
34123
34140
|
(He = (oe = this.originStyle) == null ? void 0 : oe.light.layers) == null ? void 0 : He.find((h) => h.id === "continent-label"),
|
|
34124
34141
|
(fe = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : fe.find((h) => h.id === "tide-stations"),
|
|
34125
34142
|
(W = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : W.find((h) => h.id === "empty-layer-3"),
|
|
@@ -34153,8 +34170,8 @@ class Pd {
|
|
|
34153
34170
|
(Ue = (N = this.originStyle) == null ? void 0 : N.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "ice-area-fill"),
|
|
34154
34171
|
(Xe = (U = this.originStyle) == null ? void 0 : U.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "ice-area-line"),
|
|
34155
34172
|
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "loadlines-label"),
|
|
34156
|
-
(
|
|
34157
|
-
(
|
|
34173
|
+
($e = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : $e.find((h) => h.id === "loadlines-fill"),
|
|
34174
|
+
(Qe = (Je = this.originStyle) == null ? void 0 : Je.dark.layers) == null ? void 0 : Qe.find((h) => h.id === "empty-layer-0"),
|
|
34158
34175
|
(tt = (et = this.originStyle) == null ? void 0 : et.dark.layers) == null ? void 0 : tt.find((h) => h.id === "empty-layer-1"),
|
|
34159
34176
|
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((h) => h.id === "country-boundaries"),
|
|
34160
34177
|
(st = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : st.find((h) => h.id === "water-outline"),
|
|
@@ -34168,8 +34185,8 @@ class Pd {
|
|
|
34168
34185
|
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((h) => h.id === "china-route-fill"),
|
|
34169
34186
|
(kt = (_t = this.originStyle) == null ? void 0 : _t.dark.layers) == null ? void 0 : kt.find((h) => h.id === "china-route-label"),
|
|
34170
34187
|
(Lt = (zt = this.originStyle) == null ? void 0 : zt.dark.layers) == null ? void 0 : Lt.find((h) => h.id === "admin-0-boundary-bg"),
|
|
34171
|
-
(
|
|
34172
|
-
(Mt = (
|
|
34188
|
+
(Tt = (Pt = this.originStyle) == null ? void 0 : Pt.dark.layers) == null ? void 0 : Tt.find((h) => h.id === "admin-0-boundary"),
|
|
34189
|
+
(Mt = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : Mt.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
34173
34190
|
(Dt = (St = this.originStyle) == null ? void 0 : St.dark.layers) == null ? void 0 : Dt.find((h) => h.id === "country-label"),
|
|
34174
34191
|
(Rt = (It = this.originStyle) == null ? void 0 : It.dark.layers) == null ? void 0 : Rt.find((h) => h.id === "continent-label"),
|
|
34175
34192
|
(Ot = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : Ot.find((h) => h.id === "tide-stations"),
|
|
@@ -34281,8 +34298,8 @@ class Pd {
|
|
|
34281
34298
|
(Xo = (Yo = this.originStyle) == null ? void 0 : Yo.light.layers) == null ? void 0 : Xo.find((h) => h.id === "land"),
|
|
34282
34299
|
(Ko = (qo = this.originStyle) == null ? void 0 : qo.light.layers) == null ? void 0 : Ko.find((h) => h.id === "water"),
|
|
34283
34300
|
this.i4.layer,
|
|
34284
|
-
(
|
|
34285
|
-
(ea = (
|
|
34301
|
+
(Jo = ($o = this.originStyle) == null ? void 0 : $o.light.layers) == null ? void 0 : Jo.find((h) => h.id === "ice-area-fill"),
|
|
34302
|
+
(ea = (Qo = this.originStyle) == null ? void 0 : Qo.light.layers) == null ? void 0 : ea.find((h) => h.id === "ice-area-line"),
|
|
34286
34303
|
(oa = (ta = this.originStyle) == null ? void 0 : ta.light.layers) == null ? void 0 : oa.find((h) => h.id === "loadlines-label"),
|
|
34287
34304
|
(ia = (aa = this.originStyle) == null ? void 0 : aa.light.layers) == null ? void 0 : ia.find((h) => h.id === "loadlines-fill"),
|
|
34288
34305
|
(ra = (sa = this.originStyle) == null ? void 0 : sa.light.layers) == null ? void 0 : ra.find((h) => h.id === "empty-layer-0"),
|
|
@@ -34298,7 +34315,7 @@ class Pd {
|
|
|
34298
34315
|
(_a = (va = this.originStyle) == null ? void 0 : va.light.layers) == null ? void 0 : _a.find((h) => h.id === "ne-10m-label"),
|
|
34299
34316
|
(za = (ka = this.originStyle) == null ? void 0 : ka.light.layers) == null ? void 0 : za.find((h) => h.id === "china-route-line"),
|
|
34300
34317
|
(Pa = (La = this.originStyle) == null ? void 0 : La.light.layers) == null ? void 0 : Pa.find((h) => h.id === "china-route-fill"),
|
|
34301
|
-
(
|
|
34318
|
+
(Ca = (Ta = this.originStyle) == null ? void 0 : Ta.light.layers) == null ? void 0 : Ca.find((h) => h.id === "china-route-label"),
|
|
34302
34319
|
(Sa = (Ma = this.originStyle) == null ? void 0 : Ma.light.layers) == null ? void 0 : Sa.find((h) => h.id === "admin-0-boundary-bg"),
|
|
34303
34320
|
(Ia = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ia.find((h) => h.id === "admin-0-boundary"),
|
|
34304
34321
|
(Aa = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Aa.find((h) => h.id === "admin-0-boundary-disputed"),
|
|
@@ -34312,7 +34329,7 @@ class Pd {
|
|
|
34312
34329
|
};
|
|
34313
34330
|
}
|
|
34314
34331
|
}
|
|
34315
|
-
const
|
|
34332
|
+
const Td = {
|
|
34316
34333
|
name: "MapInitial",
|
|
34317
34334
|
props: {
|
|
34318
34335
|
token: {
|
|
@@ -34428,7 +34445,7 @@ const Cd = {
|
|
|
34428
34445
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
34429
34446
|
}
|
|
34430
34447
|
}
|
|
34431
|
-
},
|
|
34448
|
+
}, Cd = { class: "v-btn--variant-elevated rounded" }, Md = { class: "v-btn--variant-elevated rounded" }, Sd = { class: "zoom" }, Dd = {
|
|
34432
34449
|
key: 2,
|
|
34433
34450
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
34434
34451
|
};
|
|
@@ -34444,7 +34461,7 @@ function Id(t, e, o, i, a, r) {
|
|
|
34444
34461
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
34445
34462
|
style: ee({ top: o.top + 254 + "px", right: a.right + "px", height: "40px" })
|
|
34446
34463
|
}, [
|
|
34447
|
-
s("div",
|
|
34464
|
+
s("div", Cd, [
|
|
34448
34465
|
p(l, {
|
|
34449
34466
|
"min-width": "32",
|
|
34450
34467
|
width: "32",
|
|
@@ -34507,9 +34524,9 @@ function Id(t, e, o, i, a, r) {
|
|
|
34507
34524
|
]))
|
|
34508
34525
|
], 4);
|
|
34509
34526
|
}
|
|
34510
|
-
const Rd = /* @__PURE__ */ Y(
|
|
34527
|
+
const Rd = /* @__PURE__ */ Y(Td, [["render", Id]]), Vd = {
|
|
34511
34528
|
install(t) {
|
|
34512
|
-
t.component("MapInitial", Rd), t.component("MapboxGL", Ld), t.component("TropicalGL", qa), t.component("LatLngGL", Xa), t.component("DateTimePicker", So), t.component("DateRangePicker", Ka), t.component("PortDetail", Do), t.component("TimePlayer",
|
|
34529
|
+
t.component("MapInitial", Rd), t.component("MapboxGL", Ld), t.component("TropicalGL", qa), t.component("LatLngGL", Xa), t.component("DateTimePicker", So), t.component("DateRangePicker", Ka), t.component("PortDetail", Do), t.component("TimePlayer", $a);
|
|
34513
34530
|
}
|
|
34514
34531
|
};
|
|
34515
34532
|
export {
|
|
@@ -34522,7 +34539,7 @@ export {
|
|
|
34522
34539
|
Pd as MapboxStyleHelper,
|
|
34523
34540
|
Se as ParticleSchema,
|
|
34524
34541
|
Do as PortDetail,
|
|
34525
|
-
|
|
34542
|
+
$a as TimePlayer,
|
|
34526
34543
|
qa as TropicalGL,
|
|
34527
34544
|
Io as Viewport,
|
|
34528
34545
|
Fe as WebGL,
|