@idmwx/idmui-gl4 2.2.4 → 2.2.6
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 +699 -702
- package/dist/index.umd.cjs +16 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Qa = Object.defineProperty;
|
|
2
2
|
var $a = (t, e, o) => e in t ? Qa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var de = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ae from "axios";
|
|
5
5
|
import { useTheme as De } from "vuetify";
|
|
6
|
-
import { openBlock as g, createElementBlock as S, resolveComponent as v, createBlock as A, normalizeClass as ge, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as
|
|
6
|
+
import { openBlock as g, createElementBlock as S, resolveComponent as v, createBlock as A, normalizeClass as ge, withCtx as u, createVNode as p, withModifiers as Se, createElementVNode as s, createCommentVNode as D, toDisplayString as n, createTextVNode as K, Fragment as xe, renderList as ke, withDirectives as Ye, vShow as Ze, mergeProps as j, normalizeStyle as ee, createStaticVNode as ei } from "vue";
|
|
7
7
|
import ze from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
9
|
import { LngLatHelper as q, TropicalHelper as Va, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as To, TidesAssist as Za } from "@idm-plugin/meteo";
|
|
11
11
|
import * as So from "echarts";
|
|
12
|
-
import * as
|
|
12
|
+
import * as G from "@turf/turf";
|
|
13
13
|
import { LayerHelper as Co, CompanyHelper as ti } from "@idm-plugin/tag2";
|
|
14
14
|
import oi from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ai } from "@idm-plugin/tag";
|
|
16
|
-
const
|
|
16
|
+
const Z = (t, e) => {
|
|
17
17
|
const o = t.__vccOpts || t;
|
|
18
18
|
for (const [i, a] of e)
|
|
19
19
|
o[i] = a;
|
|
@@ -115,7 +115,7 @@ const X = (t, e) => {
|
|
|
115
115
|
function ri(t, e, o, i, a, r) {
|
|
116
116
|
return g(), S("div");
|
|
117
117
|
}
|
|
118
|
-
const si = /* @__PURE__ */
|
|
118
|
+
const si = /* @__PURE__ */ Z(ii, [["render", ri]]), li = {
|
|
119
119
|
name: "IdmGmdssArea",
|
|
120
120
|
props: {
|
|
121
121
|
map: {
|
|
@@ -242,7 +242,7 @@ const si = /* @__PURE__ */ X(ii, [["render", ri]]), li = {
|
|
|
242
242
|
function ni(t, e, o, i, a, r) {
|
|
243
243
|
return g(), S("div");
|
|
244
244
|
}
|
|
245
|
-
const ci = /* @__PURE__ */
|
|
245
|
+
const ci = /* @__PURE__ */ Z(li, [["render", ni]]), mi = {
|
|
246
246
|
name: "IdmEcaZone",
|
|
247
247
|
props: {
|
|
248
248
|
map: {
|
|
@@ -338,7 +338,7 @@ const ci = /* @__PURE__ */ X(li, [["render", ni]]), mi = {
|
|
|
338
338
|
function hi(t, e, o, i, a, r) {
|
|
339
339
|
return g(), S("div");
|
|
340
340
|
}
|
|
341
|
-
const di = /* @__PURE__ */
|
|
341
|
+
const di = /* @__PURE__ */ Z(mi, [["render", hi]]);
|
|
342
342
|
const pi = {
|
|
343
343
|
name: "IdmAlertZone",
|
|
344
344
|
props: {
|
|
@@ -516,7 +516,7 @@ function gi(t, e, o, i, a, r) {
|
|
|
516
516
|
onClick: Se(r.handleRemoveMarker, ["stop"])
|
|
517
517
|
}, {
|
|
518
518
|
default: u(() => e[0] || (e[0] = [
|
|
519
|
-
s("i", { class: "iconfont icon-close text-
|
|
519
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
520
520
|
])),
|
|
521
521
|
_: 1,
|
|
522
522
|
__: [0]
|
|
@@ -531,9 +531,9 @@ function gi(t, e, o, i, a, r) {
|
|
|
531
531
|
})
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
|
-
}, 8, ["class"])) :
|
|
534
|
+
}, 8, ["class"])) : D("", !0);
|
|
535
535
|
}
|
|
536
|
-
const fi = /* @__PURE__ */
|
|
536
|
+
const fi = /* @__PURE__ */ Z(pi, [["render", gi]]);
|
|
537
537
|
const yi = {
|
|
538
538
|
name: "PortDetail",
|
|
539
539
|
props: {
|
|
@@ -1512,10 +1512,10 @@ const yi = {
|
|
|
1512
1512
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1513
1513
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1514
1514
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1515
|
-
var m, c, f, d, b,
|
|
1515
|
+
var m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe;
|
|
1516
1516
|
let r = {};
|
|
1517
1517
|
const l = ((m = To.pickHourly(t, M(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((k = (
|
|
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((k = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : k.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 = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.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((R = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.sig) == null ? void 0 : R.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((Y = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (se = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : se.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = l == null ? void 0 : l.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((O = (he = l == null ? void 0 : l.wave) == null ? void 0 : he.swell) == null ? void 0 : O.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = l == null ? void 0 : l.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (be = l == null ? void 0 : l.current) == null ? void 0 : be.direction, r.currentSpeed = this.computeRoundPrecision((ve = l == null ? void 0 : l.current) == null ? void 0 : ve.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1519
1519
|
});
|
|
1520
1520
|
},
|
|
1521
1521
|
handleTide() {
|
|
@@ -1724,22 +1724,22 @@ function wr(t, e, o, i, a, r) {
|
|
|
1724
1724
|
class: ge(["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, x, k;
|
|
1728
1728
|
return [
|
|
1729
1729
|
p(m, { class: "w-100" }, {
|
|
1730
1730
|
default: u(() => {
|
|
1731
|
-
var y,
|
|
1731
|
+
var y, z, T, B, I, w;
|
|
1732
1732
|
return [
|
|
1733
1733
|
s("div", bi, [
|
|
1734
1734
|
s("div", wi, [
|
|
1735
1735
|
s("div", {
|
|
1736
|
-
class: ge(["fi mr-2 rounded elevation-4", `fi-${(y = o.port) != null && y.cntLoCode ? (T = (
|
|
1736
|
+
class: ge(["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)
|
|
1740
1740
|
]),
|
|
1741
1741
|
o.simple ? (g(), S("div", xi, [
|
|
1742
|
-
(
|
|
1742
|
+
(I = o.followList) != null && I.some((L) => {
|
|
1743
1743
|
var P;
|
|
1744
1744
|
return ((P = L.port) == null ? void 0 : P.id) === o.portId;
|
|
1745
1745
|
}) ? (g(), A(l, {
|
|
@@ -1781,7 +1781,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1781
1781
|
onClick: r.handleClose
|
|
1782
1782
|
}, {
|
|
1783
1783
|
default: u(() => e[4] || (e[4] = [
|
|
1784
|
-
s("i", { class: "iconfont icon-close text-
|
|
1784
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
1785
1785
|
])),
|
|
1786
1786
|
_: 1,
|
|
1787
1787
|
__: [4]
|
|
@@ -1795,7 +1795,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1795
1795
|
onClick: r.handleClose
|
|
1796
1796
|
}, {
|
|
1797
1797
|
default: u(() => e[5] || (e[5] = [
|
|
1798
|
-
s("i", { class: "iconfont icon-close text-
|
|
1798
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
1799
1799
|
])),
|
|
1800
1800
|
_: 1,
|
|
1801
1801
|
__: [5]
|
|
@@ -1806,7 +1806,7 @@ function wr(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((w = o.port) == null ? void 0 : w.cntLoCode), 1)
|
|
1810
1810
|
])
|
|
1811
1811
|
])
|
|
1812
1812
|
];
|
|
@@ -1814,10 +1814,10 @@ function wr(t, e, o, i, a, r) {
|
|
|
1814
1814
|
_: 1
|
|
1815
1815
|
}),
|
|
1816
1816
|
p(c, { class: "w-100" }),
|
|
1817
|
-
o.simple ?
|
|
1817
|
+
o.simple ? D("", !0) : (g(), S("div", ki, [
|
|
1818
1818
|
(b = o.followList) != null && b.some((y) => {
|
|
1819
|
-
var
|
|
1820
|
-
return ((
|
|
1819
|
+
var z;
|
|
1820
|
+
return ((z = y.port) == null ? void 0 : z.id) === o.portId;
|
|
1821
1821
|
}) ? (g(), A(l, {
|
|
1822
1822
|
key: 0,
|
|
1823
1823
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
@@ -1881,7 +1881,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1881
1881
|
s("div", Si, [
|
|
1882
1882
|
s("div", Mi, [
|
|
1883
1883
|
s("div", Di, n(t.$t("port.region")), 1),
|
|
1884
|
-
s("div", Ii, n(((
|
|
1884
|
+
s("div", Ii, n(((x = o.port) == null ? void 0 : x.region) ?? ((k = o.port) == null ? void 0 : k.city) ?? "-"), 1)
|
|
1885
1885
|
]),
|
|
1886
1886
|
s("div", Ri, [
|
|
1887
1887
|
s("div", Ai, n(t.$t("port.position")), 1),
|
|
@@ -1941,7 +1941,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
1941
1941
|
}, [
|
|
1942
1942
|
s("th", Vi, [
|
|
1943
1943
|
K(n(t.$t(`${y.key}`)) + " ", 1),
|
|
1944
|
-
y.unit ? (g(), S("span", Yi, " ( " + n(y.unit) + " )", 1)) :
|
|
1944
|
+
y.unit ? (g(), S("span", Yi, " ( " + n(y.unit) + " )", 1)) : D("", !0)
|
|
1945
1945
|
]),
|
|
1946
1946
|
s("td", Zi, [
|
|
1947
1947
|
y.img ? (g(), S("img", {
|
|
@@ -2016,9 +2016,9 @@ function wr(t, e, o, i, a, r) {
|
|
|
2016
2016
|
s("th", ur, n(t.$t("time.time")) + " ( LT ) ", 1),
|
|
2017
2017
|
s("th", gr, n(t.$t("tide.height")) + " ( m )", 1)
|
|
2018
2018
|
]),
|
|
2019
|
-
(g(!0), S(xe, null, ke(a.tideTableData, (y,
|
|
2019
|
+
(g(!0), S(xe, null, ke(a.tideTableData, (y, z) => {
|
|
2020
2020
|
var T;
|
|
2021
|
-
return g(), S("tr", { key:
|
|
2021
|
+
return g(), S("tr", { key: z }, [
|
|
2022
2022
|
s("td", fr, 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", yr, n(r.computeLocalTime(y == null ? void 0 : y.date, o.port, "MM-DD HH:mm")), 1),
|
|
2024
2024
|
s("td", br, n((y == null ? void 0 : y.height) ?? "-") + " m", 1)
|
|
@@ -2026,7 +2026,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2026
2026
|
}), 128))
|
|
2027
2027
|
])
|
|
2028
2028
|
])
|
|
2029
|
-
], 2)) :
|
|
2029
|
+
], 2)) : D("", !0)
|
|
2030
2030
|
])
|
|
2031
2031
|
], 2)
|
|
2032
2032
|
];
|
|
@@ -2034,7 +2034,7 @@ function wr(t, e, o, i, a, r) {
|
|
|
2034
2034
|
_: 1
|
|
2035
2035
|
}, 8, ["class"]);
|
|
2036
2036
|
}
|
|
2037
|
-
const Do = /* @__PURE__ */
|
|
2037
|
+
const Do = /* @__PURE__ */ Z(yi, [["render", wr], ["__scopeId", "data-v-21c8d432"]]);
|
|
2038
2038
|
const xr = {
|
|
2039
2039
|
name: "IdmPort",
|
|
2040
2040
|
components: {
|
|
@@ -2177,10 +2177,10 @@ function zr(t, e, o, i, a, r) {
|
|
|
2177
2177
|
forecastModel: o.forecastModel,
|
|
2178
2178
|
onClose: r.handleCloseDetail,
|
|
2179
2179
|
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2180
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) :
|
|
2180
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
|
|
2181
2181
|
]);
|
|
2182
2182
|
}
|
|
2183
|
-
const Lr = /* @__PURE__ */
|
|
2183
|
+
const Lr = /* @__PURE__ */ Z(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3"]]), Pr = {
|
|
2184
2184
|
name: "IdmLoadLine",
|
|
2185
2185
|
props: {
|
|
2186
2186
|
map: {
|
|
@@ -2224,7 +2224,7 @@ const Lr = /* @__PURE__ */ X(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3
|
|
|
2224
2224
|
function Tr(t, e, o, i, a, r) {
|
|
2225
2225
|
return g(), S("div");
|
|
2226
2226
|
}
|
|
2227
|
-
const Cr = /* @__PURE__ */
|
|
2227
|
+
const Cr = /* @__PURE__ */ Z(Pr, [["render", Tr]]), Sr = {
|
|
2228
2228
|
name: "IdmTimezone",
|
|
2229
2229
|
props: {
|
|
2230
2230
|
map: {
|
|
@@ -2430,7 +2430,7 @@ const Cr = /* @__PURE__ */ X(Pr, [["render", Tr]]), Sr = {
|
|
|
2430
2430
|
function Mr(t, e, o, i, a, r) {
|
|
2431
2431
|
return g(), S("div");
|
|
2432
2432
|
}
|
|
2433
|
-
const Dr = /* @__PURE__ */
|
|
2433
|
+
const Dr = /* @__PURE__ */ Z(Sr, [["render", Mr]]), Ir = {
|
|
2434
2434
|
name: "IdmVoluntaryReportingArea",
|
|
2435
2435
|
props: {
|
|
2436
2436
|
map: {
|
|
@@ -2525,7 +2525,7 @@ const Dr = /* @__PURE__ */ X(Sr, [["render", Mr]]), Ir = {
|
|
|
2525
2525
|
function Rr(t, e, o, i, a, r) {
|
|
2526
2526
|
return g(), S("div");
|
|
2527
2527
|
}
|
|
2528
|
-
const Ar = /* @__PURE__ */
|
|
2528
|
+
const Ar = /* @__PURE__ */ Z(Ir, [["render", Rr]]), Or = {
|
|
2529
2529
|
name: "IdmSpecialArea",
|
|
2530
2530
|
props: {
|
|
2531
2531
|
map: {
|
|
@@ -2620,7 +2620,7 @@ const Ar = /* @__PURE__ */ X(Ir, [["render", Rr]]), Or = {
|
|
|
2620
2620
|
function Br(t, e, o, i, a, r) {
|
|
2621
2621
|
return g(), S("div");
|
|
2622
2622
|
}
|
|
2623
|
-
const jr = /* @__PURE__ */
|
|
2623
|
+
const jr = /* @__PURE__ */ Z(Or, [["render", Br]]), Er = {
|
|
2624
2624
|
name: "IdmTerminator",
|
|
2625
2625
|
props: {
|
|
2626
2626
|
map: {
|
|
@@ -2674,7 +2674,7 @@ const jr = /* @__PURE__ */ X(Or, [["render", Br]]), Er = {
|
|
|
2674
2674
|
function Nr(t, e, o, i, a, r) {
|
|
2675
2675
|
return g(), S("div");
|
|
2676
2676
|
}
|
|
2677
|
-
const Fr = /* @__PURE__ */
|
|
2677
|
+
const Fr = /* @__PURE__ */ Z(Er, [["render", Nr]]), Hr = {
|
|
2678
2678
|
name: "IdmWorld12nm",
|
|
2679
2679
|
props: {
|
|
2680
2680
|
map: {
|
|
@@ -2731,7 +2731,7 @@ const Fr = /* @__PURE__ */ X(Er, [["render", Nr]]), Hr = {
|
|
|
2731
2731
|
function Gr(t, e, o, i, a, r) {
|
|
2732
2732
|
return null;
|
|
2733
2733
|
}
|
|
2734
|
-
const Wr = /* @__PURE__ */
|
|
2734
|
+
const Wr = /* @__PURE__ */ Z(Hr, [["render", Gr]]);
|
|
2735
2735
|
const Ur = {
|
|
2736
2736
|
name: "IdmWorldMarine",
|
|
2737
2737
|
props: {
|
|
@@ -2770,7 +2770,7 @@ const Ur = {
|
|
|
2770
2770
|
function Vr(t, e, o, i, a, r) {
|
|
2771
2771
|
return null;
|
|
2772
2772
|
}
|
|
2773
|
-
const Yr = /* @__PURE__ */
|
|
2773
|
+
const Yr = /* @__PURE__ */ Z(Ur, [["render", Vr]]), Zr = {
|
|
2774
2774
|
name: "IdmChinaRoute",
|
|
2775
2775
|
props: {
|
|
2776
2776
|
map: {
|
|
@@ -2809,7 +2809,7 @@ const Yr = /* @__PURE__ */ X(Ur, [["render", Vr]]), Zr = {
|
|
|
2809
2809
|
function Xr(t, e, o, i, a, r) {
|
|
2810
2810
|
return null;
|
|
2811
2811
|
}
|
|
2812
|
-
const qr = /* @__PURE__ */
|
|
2812
|
+
const qr = /* @__PURE__ */ Z(Zr, [["render", Xr]]);
|
|
2813
2813
|
const Kr = {
|
|
2814
2814
|
name: "IdmTideStations",
|
|
2815
2815
|
props: {
|
|
@@ -3104,7 +3104,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3104
3104
|
class: ge(["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, x;
|
|
3108
3108
|
return [
|
|
3109
3109
|
p(m, { class: "w-100" }, {
|
|
3110
3110
|
default: u(() => {
|
|
@@ -3122,7 +3122,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3122
3122
|
onClick: r.handleClose
|
|
3123
3123
|
}, {
|
|
3124
3124
|
default: u(() => e[1] || (e[1] = [
|
|
3125
|
-
s("i", { class: "iconfont icon-close text-
|
|
3125
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
3126
3126
|
])),
|
|
3127
3127
|
_: 1,
|
|
3128
3128
|
__: [1]
|
|
@@ -3153,7 +3153,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3153
3153
|
s("div", rs, [
|
|
3154
3154
|
s("div", ss, [
|
|
3155
3155
|
s("div", ls, n(t.$t("tide.region")), 1),
|
|
3156
|
-
s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((
|
|
3156
|
+
s("div", ns, n(((b = o.station) == null ? void 0 : b.Country) ?? ((x = o.station) == null ? void 0 : x.city) ?? "-"), 1)
|
|
3157
3157
|
]),
|
|
3158
3158
|
s("div", cs, [
|
|
3159
3159
|
s("div", ms, n(t.$t("tide.position")), 1),
|
|
@@ -3215,9 +3215,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3215
3215
|
s("th", zs, n(t.$t("tide.height")) + " ( m )", 1)
|
|
3216
3216
|
]),
|
|
3217
3217
|
(g(!0), S(xe, null, ke(a.tideTableData, (k, y) => {
|
|
3218
|
-
var
|
|
3218
|
+
var z;
|
|
3219
3219
|
return g(), S("tr", { key: y }, [
|
|
3220
|
-
s("td", Ls, n(t.$t(`tide.${(
|
|
3220
|
+
s("td", Ls, n(t.$t(`tide.${(z = k == null ? void 0 : k.type) == null ? void 0 : z.toLowerCase()}`)) + " " + n(t.$t("tide.tide")), 1),
|
|
3221
3221
|
s("td", Ps, n(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
|
|
3222
3222
|
s("td", Ts, n((k == null ? void 0 : k.height) ?? "-") + " m", 1)
|
|
3223
3223
|
]);
|
|
@@ -3232,7 +3232,7 @@ function Cs(t, e, o, i, a, r) {
|
|
|
3232
3232
|
_: 1
|
|
3233
3233
|
}, 8, ["class"]);
|
|
3234
3234
|
}
|
|
3235
|
-
const Ss = /* @__PURE__ */
|
|
3235
|
+
const Ss = /* @__PURE__ */ Z(Kr, [["render", Cs], ["__scopeId", "data-v-584f4fc1"]]);
|
|
3236
3236
|
const Ms = {
|
|
3237
3237
|
name: "IdmTideStations",
|
|
3238
3238
|
components: {
|
|
@@ -3337,10 +3337,10 @@ function Os(t, e, o, i, a, r) {
|
|
|
3337
3337
|
key: 0,
|
|
3338
3338
|
station: a.station,
|
|
3339
3339
|
onClose: r.handleCloseDetail
|
|
3340
|
-
}, t.$attrs), null, 16, ["station", "onClose"])) :
|
|
3340
|
+
}, t.$attrs), null, 16, ["station", "onClose"])) : D("", !0)
|
|
3341
3341
|
]);
|
|
3342
3342
|
}
|
|
3343
|
-
const Bs = /* @__PURE__ */
|
|
3343
|
+
const Bs = /* @__PURE__ */ Z(Ms, [["render", Os], ["__scopeId", "data-v-7f9e02c0"]]), js = {
|
|
3344
3344
|
name: "IdmIceAreas",
|
|
3345
3345
|
props: {
|
|
3346
3346
|
map: {
|
|
@@ -3378,7 +3378,7 @@ const Bs = /* @__PURE__ */ X(Ms, [["render", Os], ["__scopeId", "data-v-7f9e02c0
|
|
|
3378
3378
|
function Es(t, e, o, i, a, r) {
|
|
3379
3379
|
return null;
|
|
3380
3380
|
}
|
|
3381
|
-
const Ns = /* @__PURE__ */
|
|
3381
|
+
const Ns = /* @__PURE__ */ Z(js, [["render", Es]]);
|
|
3382
3382
|
const Fs = {
|
|
3383
3383
|
name: "IdmLatLng",
|
|
3384
3384
|
props: {
|
|
@@ -3497,7 +3497,7 @@ const Fs = {
|
|
|
3497
3497
|
handleZoomEnd() {
|
|
3498
3498
|
var e;
|
|
3499
3499
|
const t = this.handleComputeLatLngs();
|
|
3500
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
3500
|
+
(e = this.map) == null || e.getSource(this.source).setData(G.featureCollection(t));
|
|
3501
3501
|
},
|
|
3502
3502
|
handleRender() {
|
|
3503
3503
|
if (this.handleClear(), this.map) {
|
|
@@ -3555,7 +3555,7 @@ const Fs = {
|
|
|
3555
3555
|
};
|
|
3556
3556
|
function Hs(t, e, o, i, a, r) {
|
|
3557
3557
|
var l, m, c;
|
|
3558
|
-
return o.simple ?
|
|
3558
|
+
return o.simple ? D("", !0) : (g(), S("div", {
|
|
3559
3559
|
key: 0,
|
|
3560
3560
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3561
3561
|
style: ee({ right: a.right + "px" })
|
|
@@ -3565,7 +3565,7 @@ function Hs(t, e, o, i, a, r) {
|
|
|
3565
3565
|
s("div", null, n((c = a.lngLat) == null ? void 0 : c.str), 1)
|
|
3566
3566
|
], 4));
|
|
3567
3567
|
}
|
|
3568
|
-
const Xa = /* @__PURE__ */
|
|
3568
|
+
const Xa = /* @__PURE__ */ Z(Fs, [["render", Hs]]);
|
|
3569
3569
|
const Gs = {
|
|
3570
3570
|
name: "IdmFollowPort",
|
|
3571
3571
|
components: {
|
|
@@ -4512,10 +4512,10 @@ function Ys(t, e, o, i, a, r) {
|
|
|
4512
4512
|
followList: o.followList,
|
|
4513
4513
|
onClose: r.handleCloseDetail,
|
|
4514
4514
|
onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4515
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) :
|
|
4515
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
|
|
4516
4516
|
]);
|
|
4517
4517
|
}
|
|
4518
|
-
const Zs = /* @__PURE__ */
|
|
4518
|
+
const Zs = /* @__PURE__ */ Z(Gs, [["render", Ys], ["__scopeId", "data-v-95e70a1f"]]);
|
|
4519
4519
|
const Xs = {
|
|
4520
4520
|
name: "IdmFollowPosition",
|
|
4521
4521
|
props: {
|
|
@@ -5406,7 +5406,7 @@ const Xs = {
|
|
|
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 x = M(), k = (o = M(this.realTime)) == null ? void 0 : o.diff(x, "d", !0), y = {
|
|
5410
5410
|
followId: b.id,
|
|
5411
5411
|
lat: b.lat,
|
|
5412
5412
|
lng: b.lng,
|
|
@@ -5451,7 +5451,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
5451
5451
|
]),
|
|
5452
5452
|
a.position.remark ? (g(), S("div", Js, [
|
|
5453
5453
|
s("span", null, n(a.position.remark ?? "-"), 1)
|
|
5454
|
-
])) :
|
|
5454
|
+
])) : D("", !0)
|
|
5455
5455
|
])
|
|
5456
5456
|
]),
|
|
5457
5457
|
_: 1
|
|
@@ -5462,7 +5462,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
5462
5462
|
[Ze, a.showInfo]
|
|
5463
5463
|
]);
|
|
5464
5464
|
}
|
|
5465
|
-
const $s = /* @__PURE__ */
|
|
5465
|
+
const $s = /* @__PURE__ */ Z(Xs, [["render", Qs], ["__scopeId", "data-v-82405c68"]]);
|
|
5466
5466
|
const el = {
|
|
5467
5467
|
name: "IdmOtherLayerr",
|
|
5468
5468
|
components: {
|
|
@@ -5650,8 +5650,8 @@ const el = {
|
|
|
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 = (k = (
|
|
5653
|
+
var b, x, k;
|
|
5654
|
+
const f = ((b = c == null ? void 0 : c.data) == null ? void 0 : b.data) || (c == null ? void 0 : c.data), d = (k = (x = c == null ? void 0 : c.config) == null ? void 0 : x.headers) == null ? void 0 : k.key;
|
|
5655
5655
|
this.otherLayers[d] = f;
|
|
5656
5656
|
});
|
|
5657
5657
|
}
|
|
@@ -5689,8 +5689,8 @@ const el = {
|
|
|
5689
5689
|
class: "border rounded-sm"
|
|
5690
5690
|
}, hl = { class: "text-body-2 text-center pt-1" };
|
|
5691
5691
|
function dl(t, e, o, i, a, r) {
|
|
5692
|
-
var J,
|
|
5693
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"),
|
|
5692
|
+
var J, se, le, pe, ie, ce, ue, me, he;
|
|
5693
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VCardItem"), d = v("VCheckbox"), b = v("VCardText"), x = v("VCard"), k = v("IdmLatLng"), y = v("IdmTerminator"), z = v("IdmTimezone"), T = v("IdmPort"), B = v("IdmAlertZone"), I = v("IdmTideStations"), w = v("IdmEcaZone"), L = v("IdmWarZone"), P = v("IdmGmdssArea"), C = v("IdmLoadLine"), _ = v("IdmWorldMarine"), R = v("IdmVRA"), F = v("IdmSpecialArea"), V = v("IdmWorld12nm"), X = v("IdmChinaRoute"), Y = v("IdmIceAreas"), Q = v("IdmFollowPort"), $ = v("IdmFollowPosition");
|
|
5694
5694
|
return g(), S("div", tl, [
|
|
5695
5695
|
s("div", {
|
|
5696
5696
|
class: ge(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -5732,14 +5732,14 @@ function dl(t, e, o, i, a, r) {
|
|
|
5732
5732
|
onClick: r.handleMenuToggle
|
|
5733
5733
|
}, {
|
|
5734
5734
|
default: u(() => e[6] || (e[6] = [
|
|
5735
|
-
s("i", { class: "iconfont icon-close text-
|
|
5735
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
5736
5736
|
])),
|
|
5737
5737
|
_: 1,
|
|
5738
5738
|
__: [6]
|
|
5739
5739
|
}, 8, ["onClick"])
|
|
5740
5740
|
]),
|
|
5741
5741
|
s("div", il, [
|
|
5742
|
-
p(
|
|
5742
|
+
p(x, {
|
|
5743
5743
|
class: "block-bg mx-auto mb-3",
|
|
5744
5744
|
elevation: "0"
|
|
5745
5745
|
}, {
|
|
@@ -5792,7 +5792,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5792
5792
|
]),
|
|
5793
5793
|
_: 1
|
|
5794
5794
|
}),
|
|
5795
|
-
p(
|
|
5795
|
+
p(x, {
|
|
5796
5796
|
class: "block-bg mx-auto mb-3",
|
|
5797
5797
|
elevation: "0"
|
|
5798
5798
|
}, {
|
|
@@ -5831,7 +5831,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5831
5831
|
]),
|
|
5832
5832
|
_: 1
|
|
5833
5833
|
}),
|
|
5834
|
-
p(
|
|
5834
|
+
p(x, {
|
|
5835
5835
|
class: "block-bg mx-auto mb-3",
|
|
5836
5836
|
elevation: "0"
|
|
5837
5837
|
}, {
|
|
@@ -5870,7 +5870,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
5870
5870
|
]),
|
|
5871
5871
|
_: 1
|
|
5872
5872
|
}),
|
|
5873
|
-
p(
|
|
5873
|
+
p(x, {
|
|
5874
5874
|
class: "block-bg mx-auto mb-3",
|
|
5875
5875
|
elevation: "0"
|
|
5876
5876
|
}, {
|
|
@@ -5927,40 +5927,40 @@ function dl(t, e, o, i, a, r) {
|
|
|
5927
5927
|
map: o.map,
|
|
5928
5928
|
"menu-toggle": o.menuToggle,
|
|
5929
5929
|
show: a.checkList.includes("graticule")
|
|
5930
|
-
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) :
|
|
5930
|
+
}, t.$attrs), null, 16, ["simple", "map", "menu-toggle", "show"])) : D("", !0),
|
|
5931
5931
|
o.map ? (g(), A(y, j({
|
|
5932
5932
|
key: 1,
|
|
5933
5933
|
map: o.map,
|
|
5934
5934
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
5935
|
-
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) :
|
|
5936
|
-
o.map ? (g(), A(
|
|
5935
|
+
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
|
|
5936
|
+
o.map ? (g(), A(z, j({
|
|
5937
5937
|
key: 2,
|
|
5938
5938
|
map: o.map,
|
|
5939
|
-
zone: (
|
|
5939
|
+
zone: (se = a.otherLayers) == null ? void 0 : se["time-zones"],
|
|
5940
5940
|
realTime: o.realTime
|
|
5941
|
-
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) :
|
|
5941
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone", "realTime"])) : D("", !0),
|
|
5942
5942
|
o.map ? (g(), A(T, j({
|
|
5943
5943
|
key: 3,
|
|
5944
5944
|
ref: "idmPorts",
|
|
5945
5945
|
simple: o.simple,
|
|
5946
5946
|
map: o.map,
|
|
5947
|
-
ports: (
|
|
5947
|
+
ports: (le = a.otherLayers) == null ? void 0 : le.ports,
|
|
5948
5948
|
gateway: o.gateway,
|
|
5949
5949
|
token: o.token,
|
|
5950
5950
|
"forecast-model": o.forecastModel,
|
|
5951
5951
|
realTime: o.realTime,
|
|
5952
5952
|
theme: o.theme
|
|
5953
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) :
|
|
5953
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) : D("", !0),
|
|
5954
5954
|
o.map ? (g(), A(B, j({
|
|
5955
5955
|
key: 4,
|
|
5956
5956
|
map: o.map,
|
|
5957
5957
|
simple: o.simple,
|
|
5958
|
-
zone: (
|
|
5958
|
+
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
5959
5959
|
}, t.$attrs, {
|
|
5960
5960
|
"before-layer": "empty-layer-3",
|
|
5961
5961
|
theme: o.theme
|
|
5962
|
-
}), null, 16, ["map", "simple", "zone", "theme"])) :
|
|
5963
|
-
o.map ? (g(), A(
|
|
5962
|
+
}), null, 16, ["map", "simple", "zone", "theme"])) : D("", !0),
|
|
5963
|
+
o.map ? (g(), A(I, j({
|
|
5964
5964
|
key: 5,
|
|
5965
5965
|
ref: "idmIideStation",
|
|
5966
5966
|
simple: o.simple,
|
|
@@ -5973,60 +5973,60 @@ function dl(t, e, o, i, a, r) {
|
|
|
5973
5973
|
realTime: o.realTime,
|
|
5974
5974
|
forecastModel: o.forecastModel,
|
|
5975
5975
|
"before-layer": "empty-layer-3"
|
|
5976
|
-
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) :
|
|
5977
|
-
o.map ? (g(), A(
|
|
5976
|
+
}, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
5977
|
+
o.map ? (g(), A(w, j({
|
|
5978
5978
|
key: 6,
|
|
5979
5979
|
map: o.map,
|
|
5980
5980
|
zone: (ie = a.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
5981
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5981
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5982
5982
|
o.map ? (g(), A(L, j({
|
|
5983
5983
|
key: 7,
|
|
5984
5984
|
map: o.map,
|
|
5985
|
-
zone: (
|
|
5986
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5985
|
+
zone: (ce = a.otherLayers) == null ? void 0 : ce["war-zones"]
|
|
5986
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5987
5987
|
o.map ? (g(), A(P, j({
|
|
5988
5988
|
key: 8,
|
|
5989
5989
|
map: o.map,
|
|
5990
5990
|
area: (ue = a.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5991
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5991
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5992
5992
|
o.map ? (g(), A(C, j({
|
|
5993
5993
|
key: 9,
|
|
5994
5994
|
map: o.map,
|
|
5995
5995
|
show: a.checkList.includes("load-lines")
|
|
5996
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5997
|
-
o.map ? (g(), A(
|
|
5996
|
+
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5997
|
+
o.map ? (g(), A(_, j({
|
|
5998
5998
|
key: 10,
|
|
5999
5999
|
map: o.map,
|
|
6000
6000
|
token: o.token,
|
|
6001
6001
|
show: a.checkList.includes("worldMarine")
|
|
6002
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6003
|
-
o.map ? (g(), A(
|
|
6002
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
6003
|
+
o.map ? (g(), A(R, j({
|
|
6004
6004
|
key: 11,
|
|
6005
6005
|
map: o.map,
|
|
6006
|
-
area: (
|
|
6007
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
6006
|
+
area: (me = a.otherLayers) == null ? void 0 : me["voluntary-reporting-area"]
|
|
6007
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
6008
6008
|
o.map ? (g(), A(F, j({
|
|
6009
6009
|
key: 12,
|
|
6010
6010
|
map: o.map,
|
|
6011
|
-
area: (
|
|
6012
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
6013
|
-
o.map ? (g(), A(
|
|
6011
|
+
area: (he = a.otherLayers) == null ? void 0 : he["special-area"]
|
|
6012
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
6013
|
+
o.map ? (g(), A(V, j({
|
|
6014
6014
|
key: 13,
|
|
6015
6015
|
map: o.map,
|
|
6016
6016
|
token: o.token,
|
|
6017
6017
|
show: a.checkList.includes("world12nm")
|
|
6018
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6019
|
-
o.map ? (g(), A(
|
|
6018
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
6019
|
+
o.map ? (g(), A(X, j({
|
|
6020
6020
|
key: 14,
|
|
6021
6021
|
map: o.map,
|
|
6022
6022
|
token: o.token,
|
|
6023
6023
|
show: a.checkList.includes("chinaRoute")
|
|
6024
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
6025
|
-
o.map ? (g(), A(
|
|
6024
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
6025
|
+
o.map ? (g(), A(Y, j({
|
|
6026
6026
|
key: 15,
|
|
6027
6027
|
map: o.map,
|
|
6028
6028
|
show: a.checkList.includes("ice-areas")
|
|
6029
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
6029
|
+
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
6030
6030
|
o.map ? (g(), A(Q, j({
|
|
6031
6031
|
key: 16,
|
|
6032
6032
|
ref: "idmFollowPort",
|
|
@@ -6037,7 +6037,7 @@ function dl(t, e, o, i, a, r) {
|
|
|
6037
6037
|
token: o.token,
|
|
6038
6038
|
"forecast-model": o.forecastModel,
|
|
6039
6039
|
realTime: o.realTime
|
|
6040
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) :
|
|
6040
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
6041
6041
|
o.map ? (g(), A($, j({
|
|
6042
6042
|
key: 17,
|
|
6043
6043
|
ref: "idmFollowPosition",
|
|
@@ -6046,21 +6046,21 @@ function dl(t, e, o, i, a, r) {
|
|
|
6046
6046
|
show: a.checkList.includes("follow-positions"),
|
|
6047
6047
|
"forecast-model": o.forecastModel,
|
|
6048
6048
|
realTime: o.realTime
|
|
6049
|
-
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) :
|
|
6049
|
+
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) : D("", !0)
|
|
6050
6050
|
]);
|
|
6051
6051
|
}
|
|
6052
|
-
const pl = /* @__PURE__ */
|
|
6052
|
+
const pl = /* @__PURE__ */ Z(el, [["render", dl]]);
|
|
6053
6053
|
class Io {
|
|
6054
6054
|
constructor(e) {
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6055
|
+
de(this, "map");
|
|
6056
|
+
de(this, "mercator");
|
|
6057
|
+
de(this, "rampColorLayer");
|
|
6058
|
+
de(this, "rampColorSource");
|
|
6059
|
+
de(this, "particleLayer");
|
|
6060
|
+
de(this, "particleSource");
|
|
6061
|
+
de(this, "rampColorCanvas");
|
|
6062
|
+
de(this, "particleCanvas");
|
|
6063
|
+
de(this, "ratio");
|
|
6064
6064
|
this.map = e, this.mercator = new oi(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
6065
6065
|
}
|
|
6066
6066
|
/**
|
|
@@ -6096,12 +6096,12 @@ class Io {
|
|
|
6096
6096
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
6097
6097
|
*/
|
|
6098
6098
|
getBoundPixel() {
|
|
6099
|
-
var y,
|
|
6099
|
+
var y, z;
|
|
6100
6100
|
const e = (y = this.map) == null ? void 0 : y.getBounds();
|
|
6101
6101
|
if (!e)
|
|
6102
6102
|
return [];
|
|
6103
|
-
const o = ((
|
|
6104
|
-
return [b,
|
|
6103
|
+
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, x] = this.mercator.px([m, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + c));
|
|
6104
|
+
return [b, x, f + k, d];
|
|
6105
6105
|
}
|
|
6106
6106
|
/**
|
|
6107
6107
|
* [视窗边界像素宽度]
|
|
@@ -6284,9 +6284,9 @@ class Fe {
|
|
|
6284
6284
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6285
6285
|
};
|
|
6286
6286
|
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);
|
|
6287
|
-
const b = e.getBoundPixel(),
|
|
6287
|
+
const b = e.getBoundPixel(), x = e.map.getZoom() + 1, k = e.getWorldCopy(b, x);
|
|
6288
6288
|
for (const y of k) {
|
|
6289
|
-
const
|
|
6289
|
+
const z = (y[0] - b[0]) * e.ratio, T = (y[1] - b[3]) * e.ratio, B = y[2] * e.ratio, [I, w, L, P] = [z, B + z, T, B + T], C = new Float32Array([I, L, w, L, I, P, I, P, w, L, w, P]);
|
|
6290
6290
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6291
6291
|
}
|
|
6292
6292
|
} catch (d) {
|
|
@@ -6335,10 +6335,10 @@ class Fe {
|
|
|
6335
6335
|
});
|
|
6336
6336
|
}
|
|
6337
6337
|
}
|
|
6338
|
-
class
|
|
6338
|
+
class ne {
|
|
6339
6339
|
}
|
|
6340
6340
|
// 顶点渲染
|
|
6341
|
-
|
|
6341
|
+
de(ne, "vertexSchema", `
|
|
6342
6342
|
//canvas 坐标系上的坐标 (x, y)
|
|
6343
6343
|
attribute vec2 a_position; //像素坐标
|
|
6344
6344
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -6353,7 +6353,7 @@ pe(ce, "vertexSchema", `
|
|
|
6353
6353
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
6354
6354
|
v_texCoord = a_texCoord;
|
|
6355
6355
|
}`), // 类如风、流等u v双变量片元渲染
|
|
6356
|
-
|
|
6356
|
+
de(ne, "uvFragmentSchema", `
|
|
6357
6357
|
precision mediump float;
|
|
6358
6358
|
uniform sampler2D u_image;
|
|
6359
6359
|
uniform vec2 u_range_u_v;
|
|
@@ -6373,7 +6373,7 @@ pe(ce, "uvFragmentSchema", `
|
|
|
6373
6373
|
|
|
6374
6374
|
gl_FragColor = color;
|
|
6375
6375
|
}`), // 类如浪、气压等单变量片元渲染
|
|
6376
|
-
|
|
6376
|
+
de(ne, "fragmentSchema", `
|
|
6377
6377
|
precision mediump float;
|
|
6378
6378
|
uniform sampler2D u_image; // 灰度
|
|
6379
6379
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -6386,7 +6386,7 @@ pe(ce, "fragmentSchema", `
|
|
|
6386
6386
|
}`);
|
|
6387
6387
|
class Me {
|
|
6388
6388
|
}
|
|
6389
|
-
|
|
6389
|
+
de(Me, "vertexSchema", `
|
|
6390
6390
|
precision mediump float;
|
|
6391
6391
|
|
|
6392
6392
|
attribute float a_index; // 索引
|
|
@@ -6410,7 +6410,7 @@ pe(Me, "vertexSchema", `
|
|
|
6410
6410
|
gl_PointSize = 1.0;
|
|
6411
6411
|
// gl_PointSize = u_point;
|
|
6412
6412
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
6413
|
-
}`),
|
|
6413
|
+
}`), de(Me, "fragmentSchema", `
|
|
6414
6414
|
precision mediump float;
|
|
6415
6415
|
|
|
6416
6416
|
uniform sampler2D u_factor;
|
|
@@ -6432,7 +6432,7 @@ pe(Me, "vertexSchema", `
|
|
|
6432
6432
|
|
|
6433
6433
|
float f = 1.0 - uv.b;
|
|
6434
6434
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
6435
|
-
}`),
|
|
6435
|
+
}`), de(Me, "quadVertSchema", `
|
|
6436
6436
|
precision mediump float;
|
|
6437
6437
|
|
|
6438
6438
|
attribute vec2 a_pos;
|
|
@@ -6442,7 +6442,7 @@ pe(Me, "vertexSchema", `
|
|
|
6442
6442
|
void main() {
|
|
6443
6443
|
v_tex_pos = a_pos;
|
|
6444
6444
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
6445
|
-
}`),
|
|
6445
|
+
}`), de(Me, "screenFragmentSchema", `
|
|
6446
6446
|
precision mediump float;
|
|
6447
6447
|
|
|
6448
6448
|
uniform sampler2D u_screen;
|
|
@@ -6454,7 +6454,7 @@ pe(Me, "vertexSchema", `
|
|
|
6454
6454
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
6455
6455
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
6456
6456
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
6457
|
-
}`),
|
|
6457
|
+
}`), de(Me, "updateFragmentSchema", `
|
|
6458
6458
|
precision mediump float;
|
|
6459
6459
|
|
|
6460
6460
|
uniform sampler2D u_particles;
|
|
@@ -6589,7 +6589,7 @@ const ul = {
|
|
|
6589
6589
|
showCaption: !1,
|
|
6590
6590
|
source: "wind-barb-source",
|
|
6591
6591
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
6592
|
-
empty:
|
|
6592
|
+
empty: G.featureCollection([]),
|
|
6593
6593
|
right: 10,
|
|
6594
6594
|
bottom: 125,
|
|
6595
6595
|
windBarbLoaded: !1,
|
|
@@ -6694,7 +6694,7 @@ const ul = {
|
|
|
6694
6694
|
function fl(t, e, o, i, a, r) {
|
|
6695
6695
|
return null;
|
|
6696
6696
|
}
|
|
6697
|
-
const yl = /* @__PURE__ */
|
|
6697
|
+
const yl = /* @__PURE__ */ Z(gl, [["render", fl]]);
|
|
6698
6698
|
const bl = {
|
|
6699
6699
|
name: "IdmWindParticle",
|
|
6700
6700
|
props: {
|
|
@@ -6806,7 +6806,7 @@ const bl = {
|
|
|
6806
6806
|
[1, "rgb(91, 136, 161)"]
|
|
6807
6807
|
];
|
|
6808
6808
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6809
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6809
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
6810
6810
|
this.program = e, this.aPositionBuffer = o;
|
|
6811
6811
|
}
|
|
6812
6812
|
this.handleParticleSetup();
|
|
@@ -6879,9 +6879,9 @@ function xl(t, e, o, i, a, r) {
|
|
|
6879
6879
|
s("span", null, "40", -1),
|
|
6880
6880
|
s("span", null, "60", -1)
|
|
6881
6881
|
]), 4)
|
|
6882
|
-
])) :
|
|
6882
|
+
])) : D("", !0);
|
|
6883
6883
|
}
|
|
6884
|
-
const vl = /* @__PURE__ */
|
|
6884
|
+
const vl = /* @__PURE__ */ Z(bl, [["render", xl]]), _l = {
|
|
6885
6885
|
name: "IdmCurrent",
|
|
6886
6886
|
props: {
|
|
6887
6887
|
map: {
|
|
@@ -6913,7 +6913,7 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
6913
6913
|
directionLayer: "current-direction-layer",
|
|
6914
6914
|
speedLayer: "current-speed-layer",
|
|
6915
6915
|
speedLabelLayer: "current-speed-label-layer",
|
|
6916
|
-
empty:
|
|
6916
|
+
empty: G.featureCollection([])
|
|
6917
6917
|
};
|
|
6918
6918
|
},
|
|
6919
6919
|
computed: {
|
|
@@ -6995,8 +6995,8 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
6995
6995
|
c.src = "data:image/svg+xml;base64," + window.btoa(f);
|
|
6996
6996
|
const d = [c];
|
|
6997
6997
|
let b = 0;
|
|
6998
|
-
d.forEach((
|
|
6999
|
-
|
|
6998
|
+
d.forEach((x) => {
|
|
6999
|
+
x.onload = () => {
|
|
7000
7000
|
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", c), b === 1 && this.map.addLayer(
|
|
7001
7001
|
{
|
|
7002
7002
|
id: this.directionLayer,
|
|
@@ -7039,7 +7039,7 @@ const vl = /* @__PURE__ */ X(bl, [["render", xl]]), _l = {
|
|
|
7039
7039
|
function kl(t, e, o, i, a, r) {
|
|
7040
7040
|
return null;
|
|
7041
7041
|
}
|
|
7042
|
-
const zl = /* @__PURE__ */
|
|
7042
|
+
const zl = /* @__PURE__ */ Z(_l, [["render", kl]]);
|
|
7043
7043
|
const Ll = {
|
|
7044
7044
|
name: "IdmCurrentParticle",
|
|
7045
7045
|
props: {
|
|
@@ -7143,7 +7143,7 @@ const Ll = {
|
|
|
7143
7143
|
[1, "rgb(195,194,194)"]
|
|
7144
7144
|
];
|
|
7145
7145
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7146
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7146
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
7147
7147
|
this.program = e, this.aPositionBuffer = o;
|
|
7148
7148
|
}
|
|
7149
7149
|
this.handleParticleSetup();
|
|
@@ -7220,9 +7220,9 @@ function Tl(t, e, o, i, a, r) {
|
|
|
7220
7220
|
s("span", null, "2", -1),
|
|
7221
7221
|
s("span", null, "3.2", -1)
|
|
7222
7222
|
]), 4)
|
|
7223
|
-
])) :
|
|
7223
|
+
])) : D("", !0);
|
|
7224
7224
|
}
|
|
7225
|
-
const Cl = /* @__PURE__ */
|
|
7225
|
+
const Cl = /* @__PURE__ */ Z(Ll, [["render", Tl]]);
|
|
7226
7226
|
const Sl = {
|
|
7227
7227
|
name: "IdmSigWave",
|
|
7228
7228
|
props: {
|
|
@@ -7319,7 +7319,7 @@ const Sl = {
|
|
|
7319
7319
|
//13
|
|
7320
7320
|
];
|
|
7321
7321
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7322
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7322
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7323
7323
|
this.program = e, this.aPositionBuffer = o;
|
|
7324
7324
|
}
|
|
7325
7325
|
},
|
|
@@ -7348,9 +7348,9 @@ function Dl(t, e, o, i, a, r) {
|
|
|
7348
7348
|
s("span", null, "6", -1),
|
|
7349
7349
|
s("span", null, "9", -1)
|
|
7350
7350
|
]), 4)
|
|
7351
|
-
])) :
|
|
7351
|
+
])) : D("", !0);
|
|
7352
7352
|
}
|
|
7353
|
-
const Il = /* @__PURE__ */
|
|
7353
|
+
const Il = /* @__PURE__ */ Z(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292"]]), Rl = {
|
|
7354
7354
|
name: "IdmSigWaveHeight",
|
|
7355
7355
|
props: {
|
|
7356
7356
|
map: {
|
|
@@ -7374,7 +7374,7 @@ const Il = /* @__PURE__ */ X(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292
|
|
|
7374
7374
|
source: "sig-wave-height-source",
|
|
7375
7375
|
heightLayer: "sig-wave-height-layer",
|
|
7376
7376
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
7377
|
-
empty:
|
|
7377
|
+
empty: G.featureCollection([])
|
|
7378
7378
|
};
|
|
7379
7379
|
},
|
|
7380
7380
|
watch: {
|
|
@@ -7489,7 +7489,7 @@ const Il = /* @__PURE__ */ X(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292
|
|
|
7489
7489
|
function Al(t, e, o, i, a, r) {
|
|
7490
7490
|
return null;
|
|
7491
7491
|
}
|
|
7492
|
-
const Ol = /* @__PURE__ */
|
|
7492
|
+
const Ol = /* @__PURE__ */ Z(Rl, [["render", Al]]);
|
|
7493
7493
|
const Bl = {
|
|
7494
7494
|
name: "IdmSwell",
|
|
7495
7495
|
props: {
|
|
@@ -7586,7 +7586,7 @@ const Bl = {
|
|
|
7586
7586
|
//13
|
|
7587
7587
|
];
|
|
7588
7588
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7589
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7589
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7590
7590
|
this.program = e, this.aPositionBuffer = o;
|
|
7591
7591
|
}
|
|
7592
7592
|
},
|
|
@@ -7615,9 +7615,9 @@ function El(t, e, o, i, a, r) {
|
|
|
7615
7615
|
s("span", null, "6", -1),
|
|
7616
7616
|
s("span", null, "9", -1)
|
|
7617
7617
|
]), 4)
|
|
7618
|
-
])) :
|
|
7618
|
+
])) : D("", !0);
|
|
7619
7619
|
}
|
|
7620
|
-
const Nl = /* @__PURE__ */
|
|
7620
|
+
const Nl = /* @__PURE__ */ Z(Bl, [["render", El], ["__scopeId", "data-v-3c94b068"]]), Fl = {
|
|
7621
7621
|
name: "IdmPrmsl",
|
|
7622
7622
|
props: {
|
|
7623
7623
|
map: {
|
|
@@ -7647,7 +7647,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7647
7647
|
layer: "prmsl-layer",
|
|
7648
7648
|
labelLayer: "prmsl-label-layer",
|
|
7649
7649
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
7650
|
-
empty:
|
|
7650
|
+
empty: G.featureCollection([])
|
|
7651
7651
|
};
|
|
7652
7652
|
},
|
|
7653
7653
|
watch: {
|
|
@@ -7756,7 +7756,7 @@ const Nl = /* @__PURE__ */ X(Bl, [["render", El], ["__scopeId", "data-v-3c94b068
|
|
|
7756
7756
|
function Hl(t, e, o, i, a, r) {
|
|
7757
7757
|
return null;
|
|
7758
7758
|
}
|
|
7759
|
-
const Gl = /* @__PURE__ */
|
|
7759
|
+
const Gl = /* @__PURE__ */ Z(Fl, [["render", Hl]]);
|
|
7760
7760
|
const Wl = {
|
|
7761
7761
|
name: "IdmIceEdge",
|
|
7762
7762
|
props: {
|
|
@@ -7846,7 +7846,7 @@ const Wl = {
|
|
|
7846
7846
|
// 100%
|
|
7847
7847
|
];
|
|
7848
7848
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7849
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7849
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7850
7850
|
this.program = e, this.aPositionBuffer = o;
|
|
7851
7851
|
}
|
|
7852
7852
|
},
|
|
@@ -7880,9 +7880,9 @@ function Vl(t, e, o, i, a, r) {
|
|
|
7880
7880
|
s("span", null, "90", -1),
|
|
7881
7881
|
s("span", null, null, -1)
|
|
7882
7882
|
]), 4)
|
|
7883
|
-
])) :
|
|
7883
|
+
])) : D("", !0);
|
|
7884
7884
|
}
|
|
7885
|
-
const Yl = /* @__PURE__ */
|
|
7885
|
+
const Yl = /* @__PURE__ */ Z(Wl, [["render", Vl]]);
|
|
7886
7886
|
const Zl = {
|
|
7887
7887
|
name: "IdmCover",
|
|
7888
7888
|
props: {
|
|
@@ -7963,7 +7963,7 @@ const Zl = {
|
|
|
7963
7963
|
// 100%
|
|
7964
7964
|
];
|
|
7965
7965
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
7966
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
7966
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
7967
7967
|
this.program = e, this.aPositionBuffer = o;
|
|
7968
7968
|
}
|
|
7969
7969
|
},
|
|
@@ -7991,9 +7991,9 @@ function ql(t, e, o, i, a, r) {
|
|
|
7991
7991
|
s("span", null, "80", -1),
|
|
7992
7992
|
s("span", null, "100", -1)
|
|
7993
7993
|
]), 4)
|
|
7994
|
-
])) :
|
|
7994
|
+
])) : D("", !0);
|
|
7995
7995
|
}
|
|
7996
|
-
const Kl = /* @__PURE__ */
|
|
7996
|
+
const Kl = /* @__PURE__ */ Z(Zl, [["render", ql], ["__scopeId", "data-v-916b01eb"]]);
|
|
7997
7997
|
const Jl = {
|
|
7998
7998
|
name: "IdmThickness",
|
|
7999
7999
|
props: {
|
|
@@ -8081,7 +8081,7 @@ const Jl = {
|
|
|
8081
8081
|
// 4m
|
|
8082
8082
|
];
|
|
8083
8083
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8084
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8084
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
8085
8085
|
this.program = e, this.aPositionBuffer = o;
|
|
8086
8086
|
}
|
|
8087
8087
|
},
|
|
@@ -8110,9 +8110,9 @@ function $l(t, e, o, i, a, r) {
|
|
|
8110
8110
|
s("span", null, "2", -1),
|
|
8111
8111
|
s("span", null, "3", -1)
|
|
8112
8112
|
]), 4)
|
|
8113
|
-
])) :
|
|
8113
|
+
])) : D("", !0);
|
|
8114
8114
|
}
|
|
8115
|
-
const en = /* @__PURE__ */
|
|
8115
|
+
const en = /* @__PURE__ */ Z(Jl, [["render", $l]]);
|
|
8116
8116
|
const tn = {
|
|
8117
8117
|
name: "IdmPrecip3h",
|
|
8118
8118
|
props: {
|
|
@@ -8201,7 +8201,7 @@ const tn = {
|
|
|
8201
8201
|
[1, "rgba(197,5,58,0.8)"]
|
|
8202
8202
|
];
|
|
8203
8203
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8204
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8204
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
8205
8205
|
this.program = e, this.aPositionBuffer = o;
|
|
8206
8206
|
}
|
|
8207
8207
|
},
|
|
@@ -8231,9 +8231,9 @@ function an(t, e, o, i, a, r) {
|
|
|
8231
8231
|
s("span", null, "20", -1),
|
|
8232
8232
|
s("span", null, "30", -1)
|
|
8233
8233
|
]), 4)
|
|
8234
|
-
])) :
|
|
8234
|
+
])) : D("", !0);
|
|
8235
8235
|
}
|
|
8236
|
-
const rn = /* @__PURE__ */
|
|
8236
|
+
const rn = /* @__PURE__ */ Z(tn, [["render", an]]);
|
|
8237
8237
|
const sn = {
|
|
8238
8238
|
name: "IdmVisibility",
|
|
8239
8239
|
props: {
|
|
@@ -8312,7 +8312,7 @@ const sn = {
|
|
|
8312
8312
|
[1, "rgba(144,144,144,0)"]
|
|
8313
8313
|
];
|
|
8314
8314
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8315
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8315
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
8316
8316
|
this.program = e, this.aPositionBuffer = o;
|
|
8317
8317
|
}
|
|
8318
8318
|
},
|
|
@@ -8340,9 +8340,9 @@ function nn(t, e, o, i, a, r) {
|
|
|
8340
8340
|
s("span", null, "3", -1),
|
|
8341
8341
|
s("span", null, "9", -1)
|
|
8342
8342
|
]), 4)
|
|
8343
|
-
])) :
|
|
8343
|
+
])) : D("", !0);
|
|
8344
8344
|
}
|
|
8345
|
-
const cn = /* @__PURE__ */
|
|
8345
|
+
const cn = /* @__PURE__ */ Z(sn, [["render", nn]]);
|
|
8346
8346
|
const mn = {
|
|
8347
8347
|
name: "IdmWaterTemp",
|
|
8348
8348
|
props: {
|
|
@@ -8424,7 +8424,7 @@ const mn = {
|
|
|
8424
8424
|
//
|
|
8425
8425
|
];
|
|
8426
8426
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8427
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8427
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
8428
8428
|
this.program = e, this.aPositionBuffer = o;
|
|
8429
8429
|
}
|
|
8430
8430
|
},
|
|
@@ -8452,9 +8452,9 @@ function dn(t, e, o, i, a, r) {
|
|
|
8452
8452
|
s("span", null, "30", -1),
|
|
8453
8453
|
s("span", null, "40", -1)
|
|
8454
8454
|
]), 4)
|
|
8455
|
-
])) :
|
|
8455
|
+
])) : D("", !0);
|
|
8456
8456
|
}
|
|
8457
|
-
const pn = /* @__PURE__ */
|
|
8457
|
+
const pn = /* @__PURE__ */ Z(mn, [["render", dn]]);
|
|
8458
8458
|
const un = {
|
|
8459
8459
|
name: "IdmTemp",
|
|
8460
8460
|
props: {
|
|
@@ -8547,7 +8547,7 @@ const un = {
|
|
|
8547
8547
|
[1, "rgb(138, 43, 10)"]
|
|
8548
8548
|
];
|
|
8549
8549
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
8550
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
8550
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
8551
8551
|
this.program = e, this.aPositionBuffer = o;
|
|
8552
8552
|
}
|
|
8553
8553
|
},
|
|
@@ -8577,9 +8577,9 @@ function fn(t, e, o, i, a, r) {
|
|
|
8577
8577
|
s("span", null, "30", -1),
|
|
8578
8578
|
s("span", null, "40", -1)
|
|
8579
8579
|
]), 4)
|
|
8580
|
-
])) :
|
|
8580
|
+
])) : D("", !0);
|
|
8581
8581
|
}
|
|
8582
|
-
const yn = /* @__PURE__ */
|
|
8582
|
+
const yn = /* @__PURE__ */ Z(un, [["render", fn]]);
|
|
8583
8583
|
const bn = {
|
|
8584
8584
|
name: "IdmGlLayer",
|
|
8585
8585
|
components: {
|
|
@@ -8870,71 +8870,71 @@ const bn = {
|
|
|
8870
8870
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
8871
8871
|
},
|
|
8872
8872
|
async fetchWeatherLayers(t = {}) {
|
|
8873
|
-
var a, r, l, m, c, f, d, b,
|
|
8873
|
+
var a, r, l, m, c, f, d, b, x;
|
|
8874
8874
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8875
8875
|
let o = 0, i = 0;
|
|
8876
8876
|
if (this.map) {
|
|
8877
|
-
const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(),
|
|
8877
|
+
const k = ((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}`;
|
|
8878
8878
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8879
8879
|
const T = Co.WEATHER_LAYERS.find((B) => {
|
|
8880
|
-
var
|
|
8881
|
-
return ((
|
|
8880
|
+
var I;
|
|
8881
|
+
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8882
8882
|
});
|
|
8883
8883
|
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;
|
|
8884
8884
|
}
|
|
8885
8885
|
if (this.weatherWeight > 0) {
|
|
8886
8886
|
let T = this.weatherWeight;
|
|
8887
8887
|
if (T > 0) {
|
|
8888
|
-
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
8889
|
-
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${
|
|
8888
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Ae.get(
|
|
8889
|
+
`${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${z}&t=${this.realTime}`,
|
|
8890
8890
|
{
|
|
8891
8891
|
headers: {
|
|
8892
8892
|
Authorization: this.defaultMeteoToken
|
|
8893
8893
|
}
|
|
8894
8894
|
}
|
|
8895
8895
|
);
|
|
8896
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((m =
|
|
8897
|
-
const
|
|
8898
|
-
for (const C in
|
|
8896
|
+
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) {
|
|
8897
|
+
const w = (c = I == null ? void 0 : I.data) == null ? void 0 : c.data, L = [];
|
|
8898
|
+
for (const C in w)
|
|
8899
8899
|
L.push(
|
|
8900
|
-
Ae.get(
|
|
8900
|
+
Ae.get(w[C], {
|
|
8901
8901
|
headers: {
|
|
8902
8902
|
Authorization: this.defaultMeteoToken,
|
|
8903
8903
|
key: C
|
|
8904
8904
|
},
|
|
8905
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8906
|
-
}).catch((
|
|
8907
|
-
console.log(`[${C}] fetch layer error: ${
|
|
8905
|
+
responseType: /\.(jpg|png)$/.test(w[C]) ? "blob" : "json"
|
|
8906
|
+
}).catch((_) => {
|
|
8907
|
+
console.log(`[${C}] fetch layer error: ${_}`);
|
|
8908
8908
|
})
|
|
8909
8909
|
);
|
|
8910
8910
|
const P = await Promise.all(L);
|
|
8911
8911
|
this.weatherLayers = {}, P.map((C) => {
|
|
8912
|
-
var F,
|
|
8913
|
-
const
|
|
8914
|
-
let
|
|
8915
|
-
|
|
8916
|
-
raw:
|
|
8917
|
-
type: ((
|
|
8918
|
-
etime:
|
|
8912
|
+
var F, V, X, Y;
|
|
8913
|
+
const _ = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8914
|
+
let R = (X = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : X.key;
|
|
8915
|
+
R && _ && (this.weatherLayers[R] = {
|
|
8916
|
+
raw: _,
|
|
8917
|
+
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
8918
|
+
etime: I.data.etime
|
|
8919
8919
|
});
|
|
8920
8920
|
});
|
|
8921
8921
|
}
|
|
8922
8922
|
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"]) {
|
|
8923
|
-
const
|
|
8923
|
+
const w = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
8924
8924
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8925
8925
|
type: "json",
|
|
8926
|
-
direction:
|
|
8926
|
+
direction: w,
|
|
8927
8927
|
height: { raw: L },
|
|
8928
|
-
etime:
|
|
8928
|
+
etime: I.data.etime
|
|
8929
8929
|
};
|
|
8930
8930
|
}
|
|
8931
8931
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8932
|
-
const
|
|
8932
|
+
const w = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, L = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
|
|
8933
8933
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8934
8934
|
type: "json",
|
|
8935
|
-
direction:
|
|
8935
|
+
direction: w,
|
|
8936
8936
|
speed: { raw: L },
|
|
8937
|
-
etime:
|
|
8937
|
+
etime: I.data.etime
|
|
8938
8938
|
};
|
|
8939
8939
|
}
|
|
8940
8940
|
}
|
|
@@ -8995,50 +8995,50 @@ const bn = {
|
|
|
8995
8995
|
let e = 0, o = 0;
|
|
8996
8996
|
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8997
8997
|
if (i && a) {
|
|
8998
|
-
const
|
|
8998
|
+
const x = q.convertToStdLng(i._sw.lng), k = q.convertToStdLng(i._ne.lng), y = Math.floor(i._sw.lat), z = Math.ceil(i._ne.lat);
|
|
8999
8999
|
for (const T in this.weatherLayers) {
|
|
9000
9000
|
let B = !1;
|
|
9001
9001
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
9002
|
-
let
|
|
9002
|
+
let I = [];
|
|
9003
9003
|
if (T === "swell") {
|
|
9004
9004
|
B = !0;
|
|
9005
|
-
const
|
|
9006
|
-
for (const P in
|
|
9007
|
-
if (P > y && P <
|
|
9008
|
-
const C =
|
|
9009
|
-
|
|
9010
|
-
var F,
|
|
9005
|
+
const w = ((m = this.weatherLayers[T]) == null ? void 0 : m.direction) || {};
|
|
9006
|
+
for (const P in w)
|
|
9007
|
+
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9008
|
+
const C = w[P].lng;
|
|
9009
|
+
x > k ? C.forEach((_, R) => {
|
|
9010
|
+
var F, V, X, Y, Q, $;
|
|
9011
9011
|
if (a < 2) {
|
|
9012
|
-
if ((
|
|
9013
|
-
const J =
|
|
9014
|
-
val: ((F =
|
|
9015
|
-
spd: (
|
|
9012
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9013
|
+
const J = G.point([_, P], {
|
|
9014
|
+
val: ((F = w[P].val) == null ? void 0 : F[R]) || ((V = w[P].dir) == null ? void 0 : V[R]),
|
|
9015
|
+
spd: (X = w[P].spd) == null ? void 0 : X[R]
|
|
9016
9016
|
});
|
|
9017
|
-
|
|
9017
|
+
I.push(J);
|
|
9018
9018
|
}
|
|
9019
|
-
} else if ((
|
|
9020
|
-
const J =
|
|
9021
|
-
val: ((
|
|
9022
|
-
spd: ($ =
|
|
9019
|
+
} else if ((_ >= x && _ <= 180 || _ >= -180 && _ <= k) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9020
|
+
const J = G.point([_, P], {
|
|
9021
|
+
val: ((Y = w[P].val) == null ? void 0 : Y[R]) || ((Q = w[P].dir) == null ? void 0 : Q[R]),
|
|
9022
|
+
spd: ($ = w[P].spd) == null ? void 0 : $[R]
|
|
9023
9023
|
});
|
|
9024
|
-
|
|
9024
|
+
I.push(J);
|
|
9025
9025
|
}
|
|
9026
|
-
}) : C.forEach((
|
|
9027
|
-
var F,
|
|
9028
|
-
if (
|
|
9029
|
-
if ((
|
|
9030
|
-
const J =
|
|
9031
|
-
val: ((F =
|
|
9032
|
-
spd: (
|
|
9026
|
+
}) : C.forEach((_, R) => {
|
|
9027
|
+
var F, V, X, Y, Q, $;
|
|
9028
|
+
if (x < 2) {
|
|
9029
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9030
|
+
const J = G.point([_, P], {
|
|
9031
|
+
val: ((F = w[P].val) == null ? void 0 : F[R]) || ((V = w[P].dir) == null ? void 0 : V[R]),
|
|
9032
|
+
spd: (X = w[P].spd) == null ? void 0 : X[R]
|
|
9033
9033
|
});
|
|
9034
|
-
|
|
9034
|
+
I.push(J);
|
|
9035
9035
|
}
|
|
9036
|
-
} else if (
|
|
9037
|
-
const J =
|
|
9038
|
-
val: ((
|
|
9039
|
-
spd: ($ =
|
|
9036
|
+
} else if (_ >= x && _ <= k && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9037
|
+
const J = G.point([_, P], {
|
|
9038
|
+
val: ((Y = w[P].val) == null ? void 0 : Y[R]) || ((Q = w[P].dir) == null ? void 0 : Q[R]),
|
|
9039
|
+
spd: ($ = w[P].spd) == null ? void 0 : $[R]
|
|
9040
9040
|
});
|
|
9041
|
-
|
|
9041
|
+
I.push(J);
|
|
9042
9042
|
}
|
|
9043
9043
|
});
|
|
9044
9044
|
}
|
|
@@ -9048,61 +9048,61 @@ const bn = {
|
|
|
9048
9048
|
if (!L.data) {
|
|
9049
9049
|
const P = [];
|
|
9050
9050
|
for (const C in (c = L.raw) == null ? void 0 : c.LineString) {
|
|
9051
|
-
const
|
|
9052
|
-
for (const
|
|
9051
|
+
const _ = L.raw.LineString[C];
|
|
9052
|
+
for (const R of _)
|
|
9053
9053
|
P.push(
|
|
9054
|
-
|
|
9054
|
+
G.lineString(R, {
|
|
9055
9055
|
val: Number(C)
|
|
9056
9056
|
})
|
|
9057
9057
|
);
|
|
9058
|
-
L.data =
|
|
9058
|
+
L.data = G.featureCollection(P);
|
|
9059
9059
|
}
|
|
9060
9060
|
}
|
|
9061
9061
|
if (L.data) {
|
|
9062
9062
|
const P = this.handleBboxClip(L.data, i);
|
|
9063
|
-
|
|
9063
|
+
I = I.concat(P);
|
|
9064
9064
|
}
|
|
9065
9065
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
9066
9066
|
}
|
|
9067
9067
|
} else if (T === "current") {
|
|
9068
9068
|
B = !0;
|
|
9069
|
-
const
|
|
9070
|
-
for (const P in
|
|
9071
|
-
if (P > y && P <
|
|
9072
|
-
const C =
|
|
9073
|
-
|
|
9074
|
-
var F,
|
|
9069
|
+
const w = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
|
|
9070
|
+
for (const P in w)
|
|
9071
|
+
if (P > y && P < z && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9072
|
+
const C = w[P].lng;
|
|
9073
|
+
x > k ? C.forEach((_, R) => {
|
|
9074
|
+
var F, V, X, Y, Q, $;
|
|
9075
9075
|
if (a < 2) {
|
|
9076
|
-
if ((
|
|
9077
|
-
const J =
|
|
9078
|
-
val: ((F =
|
|
9079
|
-
spd: (
|
|
9076
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9077
|
+
const J = G.point([_, P], {
|
|
9078
|
+
val: ((F = w[P].val) == null ? void 0 : F[R]) || ((V = w[P].dir) == null ? void 0 : V[R]),
|
|
9079
|
+
spd: (X = w[P].spd) == null ? void 0 : X[R]
|
|
9080
9080
|
});
|
|
9081
|
-
|
|
9081
|
+
I.push(J);
|
|
9082
9082
|
}
|
|
9083
|
-
} else if ((
|
|
9084
|
-
const J =
|
|
9085
|
-
val: ((
|
|
9086
|
-
spd: ($ =
|
|
9083
|
+
} else if ((_ >= x && _ <= 180 || _ >= -180 && _ <= k) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9084
|
+
const J = G.point([_, P], {
|
|
9085
|
+
val: ((Y = w[P].val) == null ? void 0 : Y[R]) || ((Q = w[P].dir) == null ? void 0 : Q[R]),
|
|
9086
|
+
spd: ($ = w[P].spd) == null ? void 0 : $[R]
|
|
9087
9087
|
});
|
|
9088
|
-
|
|
9088
|
+
I.push(J);
|
|
9089
9089
|
}
|
|
9090
|
-
}) : C.forEach((
|
|
9091
|
-
var F,
|
|
9092
|
-
if (
|
|
9093
|
-
if ((
|
|
9094
|
-
const J =
|
|
9095
|
-
val: ((F =
|
|
9096
|
-
spd: (
|
|
9090
|
+
}) : C.forEach((_, R) => {
|
|
9091
|
+
var F, V, X, Y, Q, $;
|
|
9092
|
+
if (x < 2) {
|
|
9093
|
+
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
9094
|
+
const J = G.point([_, P], {
|
|
9095
|
+
val: ((F = w[P].val) == null ? void 0 : F[R]) || ((V = w[P].dir) == null ? void 0 : V[R]),
|
|
9096
|
+
spd: (X = w[P].spd) == null ? void 0 : X[R]
|
|
9097
9097
|
});
|
|
9098
|
-
|
|
9098
|
+
I.push(J);
|
|
9099
9099
|
}
|
|
9100
|
-
} else if (
|
|
9101
|
-
const J =
|
|
9102
|
-
val: ((
|
|
9103
|
-
spd: ($ =
|
|
9100
|
+
} else if (_ >= x && _ <= k && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9101
|
+
const J = G.point([_, P], {
|
|
9102
|
+
val: ((Y = w[P].val) == null ? void 0 : Y[R]) || ((Q = w[P].dir) == null ? void 0 : Q[R]),
|
|
9103
|
+
spd: ($ = w[P].spd) == null ? void 0 : $[R]
|
|
9104
9104
|
});
|
|
9105
|
-
|
|
9105
|
+
I.push(J);
|
|
9106
9106
|
}
|
|
9107
9107
|
});
|
|
9108
9108
|
}
|
|
@@ -9111,134 +9111,134 @@ const bn = {
|
|
|
9111
9111
|
if (L) {
|
|
9112
9112
|
if (!L.data) {
|
|
9113
9113
|
const C = [];
|
|
9114
|
-
for (const
|
|
9115
|
-
const
|
|
9116
|
-
for (const F of
|
|
9114
|
+
for (const _ in (d = L.raw) == null ? void 0 : d.Polygon) {
|
|
9115
|
+
const R = L.raw.Polygon[_];
|
|
9116
|
+
for (const F of R)
|
|
9117
9117
|
C.push(
|
|
9118
|
-
|
|
9119
|
-
val: Number(
|
|
9118
|
+
G.polygon(F, {
|
|
9119
|
+
val: Number(_)
|
|
9120
9120
|
})
|
|
9121
9121
|
);
|
|
9122
9122
|
}
|
|
9123
|
-
L.data =
|
|
9123
|
+
L.data = G.featureCollection(C);
|
|
9124
9124
|
}
|
|
9125
9125
|
const P = a < this.zoom ? L.data.features.filter((C) => C.properties.val > 0.5) : L.data.features;
|
|
9126
|
-
|
|
9126
|
+
I = I.concat(P), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
9127
9127
|
}
|
|
9128
9128
|
} else if (T === "wind") {
|
|
9129
9129
|
B = !0;
|
|
9130
|
-
const
|
|
9131
|
-
for (const L in
|
|
9132
|
-
if (L > y && L <
|
|
9133
|
-
const P =
|
|
9134
|
-
|
|
9135
|
-
var
|
|
9130
|
+
const w = this.weatherLayers.wind.raw;
|
|
9131
|
+
for (const L in w)
|
|
9132
|
+
if (L > y && L < z && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9133
|
+
const P = w[L].lng;
|
|
9134
|
+
x > k ? P.forEach((C, _) => {
|
|
9135
|
+
var R, F, V, X;
|
|
9136
9136
|
if (a < 2) {
|
|
9137
9137
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9138
|
-
const
|
|
9139
|
-
dir: ((
|
|
9140
|
-
spd:
|
|
9138
|
+
const Y = G.point([C, L], {
|
|
9139
|
+
dir: ((R = w[L].val) == null ? void 0 : R[_]) || ((F = w[L].dir) == null ? void 0 : F[_]),
|
|
9140
|
+
spd: w[L].spd[_]
|
|
9141
9141
|
});
|
|
9142
|
-
|
|
9142
|
+
I.push(Y);
|
|
9143
9143
|
}
|
|
9144
|
-
} else if ((C >=
|
|
9145
|
-
const
|
|
9146
|
-
dir: ((
|
|
9147
|
-
spd:
|
|
9144
|
+
} else if ((C >= x && C <= 180 || C >= -180 && C <= k) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9145
|
+
const Y = G.point([C, L], {
|
|
9146
|
+
dir: ((V = w[L].val) == null ? void 0 : V[_]) || ((X = w[L].dir) == null ? void 0 : X[_]),
|
|
9147
|
+
spd: w[L].spd[_]
|
|
9148
9148
|
});
|
|
9149
|
-
|
|
9149
|
+
I.push(Y);
|
|
9150
9150
|
}
|
|
9151
|
-
}) : P.forEach((C,
|
|
9152
|
-
var
|
|
9151
|
+
}) : P.forEach((C, _) => {
|
|
9152
|
+
var R, F, V, X;
|
|
9153
9153
|
if (a < 2) {
|
|
9154
9154
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9155
|
-
const
|
|
9156
|
-
dir: ((
|
|
9157
|
-
spd:
|
|
9155
|
+
const Y = G.point([C, L], {
|
|
9156
|
+
dir: ((R = w[L].val) == null ? void 0 : R[_]) || ((F = w[L].dir) == null ? void 0 : F[_]),
|
|
9157
|
+
spd: w[L].spd[_]
|
|
9158
9158
|
});
|
|
9159
|
-
|
|
9159
|
+
I.push(Y);
|
|
9160
9160
|
}
|
|
9161
|
-
} else if (C >=
|
|
9162
|
-
const
|
|
9163
|
-
dir: ((
|
|
9164
|
-
spd:
|
|
9161
|
+
} else if (C >= x && C <= k && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9162
|
+
const Y = G.point([C, L], {
|
|
9163
|
+
dir: ((V = w[L].val) == null ? void 0 : V[_]) || ((X = w[L].dir) == null ? void 0 : X[_]),
|
|
9164
|
+
spd: w[L].spd[_]
|
|
9165
9165
|
});
|
|
9166
|
-
|
|
9166
|
+
I.push(Y);
|
|
9167
9167
|
}
|
|
9168
9168
|
});
|
|
9169
9169
|
}
|
|
9170
9170
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
9171
9171
|
} else if (T === "sig-wave-height") {
|
|
9172
9172
|
if (this.weatherLayers[T].data)
|
|
9173
|
-
|
|
9173
|
+
I = this.weatherLayers[T].data;
|
|
9174
9174
|
else {
|
|
9175
9175
|
B = !0;
|
|
9176
|
-
const
|
|
9177
|
-
if (
|
|
9176
|
+
const w = this.weatherLayers[T].raw;
|
|
9177
|
+
if (w) {
|
|
9178
9178
|
const L = [];
|
|
9179
|
-
for (const P in
|
|
9180
|
-
const C =
|
|
9181
|
-
for (const
|
|
9179
|
+
for (const P in w.Polygon) {
|
|
9180
|
+
const C = w.Polygon[P];
|
|
9181
|
+
for (const _ of C)
|
|
9182
9182
|
L.push(
|
|
9183
|
-
|
|
9183
|
+
G.polygon(_, {
|
|
9184
9184
|
val: Number(P)
|
|
9185
9185
|
})
|
|
9186
9186
|
);
|
|
9187
9187
|
}
|
|
9188
|
-
for (const P in
|
|
9189
|
-
const C =
|
|
9190
|
-
for (const
|
|
9188
|
+
for (const P in w.MultiPolygon) {
|
|
9189
|
+
const C = w.MultiPolygon[P];
|
|
9190
|
+
for (const _ of C)
|
|
9191
9191
|
L.push(
|
|
9192
|
-
|
|
9192
|
+
G.multiPolygon(_, {
|
|
9193
9193
|
val: Number(P)
|
|
9194
9194
|
})
|
|
9195
9195
|
);
|
|
9196
9196
|
}
|
|
9197
|
-
for (const P in
|
|
9198
|
-
const C =
|
|
9199
|
-
for (let
|
|
9197
|
+
for (const P in w.Point) {
|
|
9198
|
+
const C = w.Point[P];
|
|
9199
|
+
for (let _ = 0; _ < ((b = C.lng) == null ? void 0 : b.length); _++)
|
|
9200
9200
|
L.push(
|
|
9201
|
-
|
|
9202
|
-
val: Number(C.val[
|
|
9201
|
+
G.point([C.lng[_], P], {
|
|
9202
|
+
val: Number(C.val[_])
|
|
9203
9203
|
})
|
|
9204
9204
|
);
|
|
9205
9205
|
}
|
|
9206
|
-
|
|
9206
|
+
I = I.concat(L);
|
|
9207
9207
|
}
|
|
9208
9208
|
}
|
|
9209
9209
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
9210
9210
|
} else if (T === "prmsl") {
|
|
9211
9211
|
if (this.weatherLayers[T].data)
|
|
9212
|
-
|
|
9212
|
+
I = this.weatherLayers[T].data;
|
|
9213
9213
|
else {
|
|
9214
9214
|
B = !0;
|
|
9215
|
-
const
|
|
9216
|
-
if (
|
|
9215
|
+
const w = this.weatherLayers[T].raw;
|
|
9216
|
+
if (w) {
|
|
9217
9217
|
const L = [];
|
|
9218
|
-
for (const P in
|
|
9219
|
-
const C =
|
|
9220
|
-
for (const
|
|
9218
|
+
for (const P in w.LineString) {
|
|
9219
|
+
const C = w.LineString[P];
|
|
9220
|
+
for (const _ of C)
|
|
9221
9221
|
L.push(
|
|
9222
|
-
|
|
9222
|
+
G.lineString(_, {
|
|
9223
9223
|
val: Number(P)
|
|
9224
9224
|
})
|
|
9225
9225
|
);
|
|
9226
9226
|
}
|
|
9227
|
-
for (const P in
|
|
9228
|
-
|
|
9227
|
+
for (const P in w.Point)
|
|
9228
|
+
w.Point[P].lng.forEach((C, _) => {
|
|
9229
9229
|
C = q.convertToStdLng(C), L.push(
|
|
9230
|
-
|
|
9231
|
-
val:
|
|
9232
|
-
type:
|
|
9230
|
+
G.point([C, P], {
|
|
9231
|
+
val: w.Point[P].val[_],
|
|
9232
|
+
type: w.Point[P].type[_]
|
|
9233
9233
|
})
|
|
9234
9234
|
);
|
|
9235
9235
|
});
|
|
9236
|
-
|
|
9236
|
+
I = I.concat(L);
|
|
9237
9237
|
}
|
|
9238
9238
|
}
|
|
9239
9239
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9240
9240
|
}
|
|
9241
|
-
|
|
9241
|
+
I.length && (this.weatherLayers[T].data = G.featureCollection(I)), B && (this.weatherLayers[T].version = Math.random() + 1);
|
|
9242
9242
|
}
|
|
9243
9243
|
}
|
|
9244
9244
|
}
|
|
@@ -9253,10 +9253,10 @@ const bn = {
|
|
|
9253
9253
|
return t.features.forEach((r) => {
|
|
9254
9254
|
if (r.geometry.type !== "Point")
|
|
9255
9255
|
if (i > a) {
|
|
9256
|
-
let l = [i, e._sw.lat, 180, e._ne.lat], m =
|
|
9257
|
-
m.geometry.coordinates.length && o.push(m), l = [-180, e._sw.lat, a, e._ne.lat], m =
|
|
9256
|
+
let l = [i, e._sw.lat, 180, e._ne.lat], m = G.bboxClip(r, l);
|
|
9257
|
+
m.geometry.coordinates.length && o.push(m), l = [-180, e._sw.lat, a, e._ne.lat], m = G.bboxClip(r, l), m.geometry.coordinates.length && o.push(m);
|
|
9258
9258
|
} else {
|
|
9259
|
-
const l = [i, e._sw.lat, a, e._ne.lat], m =
|
|
9259
|
+
const l = [i, e._sw.lat, a, e._ne.lat], m = G.bboxClip(r, l);
|
|
9260
9260
|
m.geometry.coordinates.length && o.push(m);
|
|
9261
9261
|
}
|
|
9262
9262
|
else
|
|
@@ -9284,8 +9284,8 @@ const bn = {
|
|
|
9284
9284
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9285
9285
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Wn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, Zn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label mb-3" }, qn = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
9286
9286
|
function ic(t, e, o, i, a, r) {
|
|
9287
|
-
var
|
|
9288
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"),
|
|
9287
|
+
var pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce;
|
|
9288
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCol"), f = v("VRow"), d = v("VCardText"), b = v("VDivider"), x = v("VCard"), k = v("VSwitch"), y = v("VBtnToggle"), z = v("VCardTitle"), T = v("VCardItem"), B = v("VCheckbox"), I = v("VRadio"), w = v("IdmWindBarb"), L = v("IdmSigWaveHeight"), P = v("IdmCurrentDirection"), C = v("IdmPrmsl"), _ = v("IdmWindParticle"), R = v("IdmCurrentParticle"), F = v("IdmWave"), V = v("IdmSwell"), X = v("IdmIceEdge"), Y = v("IdmIceCover"), Q = v("IdmIceThickness"), $ = v("IdmPrecip3h"), J = v("IdmVisibility"), se = v("IdmWaterTemp"), le = v("IdmTemp");
|
|
9289
9289
|
return g(), S("div", wn, [
|
|
9290
9290
|
s("div", {
|
|
9291
9291
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9342,7 +9342,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9342
9342
|
_: 1
|
|
9343
9343
|
})
|
|
9344
9344
|
], 6),
|
|
9345
|
-
a.legendToggle ? (g(), A(
|
|
9345
|
+
a.legendToggle ? (g(), A(x, {
|
|
9346
9346
|
key: 0,
|
|
9347
9347
|
elevation: "16",
|
|
9348
9348
|
class: "card-info d-flex justify-center align-start",
|
|
@@ -9448,8 +9448,8 @@ function ic(t, e, o, i, a, r) {
|
|
|
9448
9448
|
})
|
|
9449
9449
|
]),
|
|
9450
9450
|
_: 1
|
|
9451
|
-
}, 8, ["style"])) :
|
|
9452
|
-
])) :
|
|
9451
|
+
}, 8, ["style"])) : D("", !0)
|
|
9452
|
+
])) : D("", !0),
|
|
9453
9453
|
s("div", {
|
|
9454
9454
|
class: ge(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
9455
9455
|
style: ee(r.listStyle)
|
|
@@ -9475,7 +9475,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9475
9475
|
onClick: r.handleMenuToggle
|
|
9476
9476
|
}, {
|
|
9477
9477
|
default: u(() => e[14] || (e[14] = [
|
|
9478
|
-
s("i", { class: "iconfont icon-close text-
|
|
9478
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
9479
9479
|
])),
|
|
9480
9480
|
_: 1,
|
|
9481
9481
|
__: [14]
|
|
@@ -9523,18 +9523,18 @@ function ic(t, e, o, i, a, r) {
|
|
|
9523
9523
|
]),
|
|
9524
9524
|
_: 1
|
|
9525
9525
|
}, 8, ["modelValue"])
|
|
9526
|
-
])) :
|
|
9526
|
+
])) : D("", !0),
|
|
9527
9527
|
s("div", {
|
|
9528
9528
|
class: ge(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
9529
9529
|
}, [
|
|
9530
|
-
p(
|
|
9530
|
+
p(x, {
|
|
9531
9531
|
class: "block-bg mx-auto mb-3",
|
|
9532
9532
|
elevation: "0"
|
|
9533
9533
|
}, {
|
|
9534
9534
|
default: u(() => [
|
|
9535
9535
|
p(T, { class: "border-b-thin" }, {
|
|
9536
9536
|
default: u(() => [
|
|
9537
|
-
p(
|
|
9537
|
+
p(z, {
|
|
9538
9538
|
class: "text-subtitle-1 font-weight-medium",
|
|
9539
9539
|
style: { "font-size": "16px !important" }
|
|
9540
9540
|
}, {
|
|
@@ -9567,14 +9567,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9567
9567
|
]),
|
|
9568
9568
|
_: 1
|
|
9569
9569
|
}),
|
|
9570
|
-
p(
|
|
9570
|
+
p(x, {
|
|
9571
9571
|
class: "block-bg mx-auto mb-3",
|
|
9572
9572
|
elevation: "0"
|
|
9573
9573
|
}, {
|
|
9574
9574
|
default: u(() => [
|
|
9575
9575
|
p(T, { class: "border-b-thin" }, {
|
|
9576
9576
|
default: u(() => [
|
|
9577
|
-
p(
|
|
9577
|
+
p(z, {
|
|
9578
9578
|
class: "text-subtitle-1 font-weight-medium",
|
|
9579
9579
|
style: { "font-size": "16px !important" }
|
|
9580
9580
|
}, {
|
|
@@ -9591,7 +9591,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9591
9591
|
(g(!0), S(xe, null, ke(a.tagLayers.filter((H) => !H.overlays), (H) => (g(), S(xe, {
|
|
9592
9592
|
key: H.key
|
|
9593
9593
|
}, [
|
|
9594
|
-
p(
|
|
9594
|
+
p(I, {
|
|
9595
9595
|
modelValue: a.renderKey,
|
|
9596
9596
|
"onUpdate:modelValue": e[4] || (e[4] = (oe) => a.renderKey = oe),
|
|
9597
9597
|
label: t.$t(`weather.${H.locale}`),
|
|
@@ -9618,7 +9618,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9618
9618
|
style: { "font-size": "14px" },
|
|
9619
9619
|
"hide-details": ""
|
|
9620
9620
|
}, null, 8, ["modelValue"])
|
|
9621
|
-
])) :
|
|
9621
|
+
])) : D("", !0),
|
|
9622
9622
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (g(), S("div", An, [
|
|
9623
9623
|
s("span", null, n(t.$t("weather.particleAnimatiom")), 1),
|
|
9624
9624
|
p(k, {
|
|
@@ -9633,7 +9633,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9633
9633
|
height: "20",
|
|
9634
9634
|
"hide-details": ""
|
|
9635
9635
|
}, null, 8, ["modelValue"])
|
|
9636
|
-
])) :
|
|
9636
|
+
])) : D("", !0),
|
|
9637
9637
|
a.renderKey === "wave-group" && H.key === "wave-group" ? (g(), A(y, {
|
|
9638
9638
|
key: 2,
|
|
9639
9639
|
modelValue: a.waveToggleValue,
|
|
@@ -9676,7 +9676,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9676
9676
|
}, 8, ["color", "disabled"])
|
|
9677
9677
|
]),
|
|
9678
9678
|
_: 1
|
|
9679
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
9679
|
+
}, 8, ["modelValue", "disabled"])) : D("", !0),
|
|
9680
9680
|
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (g(), A(y, {
|
|
9681
9681
|
key: 3,
|
|
9682
9682
|
modelValue: a.iceToggleValue,
|
|
@@ -9719,7 +9719,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
9719
9719
|
}, 8, ["color", "disabled"])
|
|
9720
9720
|
]),
|
|
9721
9721
|
_: 1
|
|
9722
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
9722
|
+
}, 8, ["modelValue", "disabled"])) : D("", !0)
|
|
9723
9723
|
], 64))), 128))
|
|
9724
9724
|
]),
|
|
9725
9725
|
_: 1
|
|
@@ -9727,14 +9727,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9727
9727
|
]),
|
|
9728
9728
|
_: 1
|
|
9729
9729
|
}),
|
|
9730
|
-
p(
|
|
9730
|
+
p(x, {
|
|
9731
9731
|
class: "block-bg mx-auto mb-3",
|
|
9732
9732
|
elevation: "0"
|
|
9733
9733
|
}, {
|
|
9734
9734
|
default: u(() => [
|
|
9735
9735
|
p(T, { class: "border-b-thin" }, {
|
|
9736
9736
|
default: u(() => [
|
|
9737
|
-
p(
|
|
9737
|
+
p(z, {
|
|
9738
9738
|
class: "text-subtitle-1 font-weight-medium",
|
|
9739
9739
|
style: { "font-size": "16px !important" }
|
|
9740
9740
|
}, {
|
|
@@ -9748,14 +9748,14 @@ function ic(t, e, o, i, a, r) {
|
|
|
9748
9748
|
}),
|
|
9749
9749
|
p(d, { class: "" }, {
|
|
9750
9750
|
default: u(() => {
|
|
9751
|
-
var H, oe, He, Oe, fe, Re,
|
|
9751
|
+
var H, oe, He, Oe, fe, Re, W, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
9752
9752
|
return [
|
|
9753
9753
|
s("div", On, n(t.$t("weather.atmospheric")), 1),
|
|
9754
|
-
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (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((re = (ae = (ye = (
|
|
9754
|
+
s("div", Bn, n((He = (oe = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : oe.NOAA) == null ? void 0 : He.source) + " " + n((Re = (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((re = (ae = (ye = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : ye.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : re.days) + n(t.$t("units.days")), 1),
|
|
9755
9755
|
s("div", jn, n(t.$t("weather.source")) + ": NOAA", 1),
|
|
9756
9756
|
s("div", En, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((E = (We = (Ge = (je = a.models) == null ? void 0 : je.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9757
9757
|
s("div", Nn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((Ne = (Ee = (Be = (we = a.models) == null ? void 0 : we.weather) == null ? void 0 : Be.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
9758
|
-
s("div", Fn, n((
|
|
9758
|
+
s("div", Fn, 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(($e = (Qe = (Je = (Le = a.models) == null ? void 0 : Le.weather) == null ? void 0 : Je.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : $e.days) + n(t.$t("units.days")), 1),
|
|
9759
9759
|
s("div", Hn, n(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9760
9760
|
s("div", Gn, n(t.$t("weather.lastUpdate")) + ": " + n(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
9761
9761
|
s("div", Wn, n(t.$t("weather.referenceTime")) + ": " + n(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
@@ -9784,15 +9784,15 @@ function ic(t, e, o, i, a, r) {
|
|
|
9784
9784
|
})
|
|
9785
9785
|
], 2)
|
|
9786
9786
|
], 6),
|
|
9787
|
-
o.map ? (g(), A(
|
|
9787
|
+
o.map ? (g(), A(w, j({
|
|
9788
9788
|
key: 1,
|
|
9789
9789
|
ref: "windBarb",
|
|
9790
9790
|
map: o.map,
|
|
9791
9791
|
"map-feather": o.mapFeather,
|
|
9792
9792
|
"before-layer": "empty-layer-3",
|
|
9793
|
-
wind: (
|
|
9793
|
+
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
9794
9794
|
"menu-toggle": o.menuToggle
|
|
9795
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
9795
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
9796
9796
|
o.map ? (g(), A(L, j({
|
|
9797
9797
|
key: 2,
|
|
9798
9798
|
map: o.map,
|
|
@@ -9800,15 +9800,15 @@ function ic(t, e, o, i, a, r) {
|
|
|
9800
9800
|
"sig-wave-height": (ie = a.weatherLayers) == null ? void 0 : ie["sig-wave-height"],
|
|
9801
9801
|
"menu-toggle": o.menuToggle,
|
|
9802
9802
|
"active-weather-layers": a.activeWeatherLayers
|
|
9803
|
-
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
9803
|
+
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
9804
9804
|
o.map ? (g(), A(P, j({
|
|
9805
9805
|
key: 3,
|
|
9806
9806
|
map: o.map,
|
|
9807
9807
|
"map-feather": o.mapFeather,
|
|
9808
9808
|
"before-layer": "empty-layer-2",
|
|
9809
|
-
current: (
|
|
9809
|
+
current: (ce = a.weatherLayers) == null ? void 0 : ce.current,
|
|
9810
9810
|
"menu-toggle": o.menuToggle
|
|
9811
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
9811
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
9812
9812
|
o.map ? (g(), A(C, j({
|
|
9813
9813
|
key: 4,
|
|
9814
9814
|
map: o.map,
|
|
@@ -9816,29 +9816,29 @@ function ic(t, e, o, i, a, r) {
|
|
|
9816
9816
|
prmsl: (ue = a.weatherLayers) == null ? void 0 : ue.prmsl,
|
|
9817
9817
|
"menu-toggle": o.menuToggle,
|
|
9818
9818
|
"active-weather-layers": a.activeWeatherLayers
|
|
9819
|
-
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) :
|
|
9820
|
-
o.map ? (g(), A(
|
|
9819
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
9820
|
+
o.map ? (g(), A(_, j({
|
|
9821
9821
|
key: 5,
|
|
9822
9822
|
viewport: a.viewport,
|
|
9823
|
-
factor: (
|
|
9823
|
+
factor: (me = a.weatherLayers) == null ? void 0 : me["wind-particle"],
|
|
9824
9824
|
"menu-toggle": o.menuToggle,
|
|
9825
9825
|
simple: o.simple
|
|
9826
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9827
|
-
o.map ? (g(), A(
|
|
9826
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9827
|
+
o.map ? (g(), A(R, j({
|
|
9828
9828
|
key: 6,
|
|
9829
9829
|
viewport: a.viewport,
|
|
9830
|
-
factor: (
|
|
9830
|
+
factor: (he = a.weatherLayers) == null ? void 0 : he["current-particle"],
|
|
9831
9831
|
"menu-toggle": o.menuToggle,
|
|
9832
9832
|
simple: o.simple
|
|
9833
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9833
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9834
9834
|
o.map ? (g(), A(F, j({
|
|
9835
9835
|
key: 7,
|
|
9836
9836
|
viewport: a.viewport,
|
|
9837
9837
|
factor: (O = a.weatherLayers) == null ? void 0 : O["sig-wave"],
|
|
9838
9838
|
"menu-toggle": o.menuToggle,
|
|
9839
9839
|
simple: o.simple
|
|
9840
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9841
|
-
o.map ? (g(), A(
|
|
9840
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9841
|
+
o.map ? (g(), A(V, j({
|
|
9842
9842
|
key: 8,
|
|
9843
9843
|
map: o.map,
|
|
9844
9844
|
viewport: a.viewport,
|
|
@@ -9846,59 +9846,59 @@ function ic(t, e, o, i, a, r) {
|
|
|
9846
9846
|
"menu-toggle": o.menuToggle,
|
|
9847
9847
|
"active-weather-layers": a.activeWeatherLayers,
|
|
9848
9848
|
simple: o.simple
|
|
9849
|
-
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) :
|
|
9850
|
-
o.map ? (g(), A(
|
|
9849
|
+
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) : D("", !0),
|
|
9850
|
+
o.map ? (g(), A(X, j({
|
|
9851
9851
|
key: 9,
|
|
9852
9852
|
viewport: a.viewport,
|
|
9853
9853
|
factor: (be = a.weatherLayers) == null ? void 0 : be["ice-edge"],
|
|
9854
9854
|
"menu-toggle": o.menuToggle,
|
|
9855
9855
|
simple: o.simple
|
|
9856
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9857
|
-
o.map ? (g(), A(
|
|
9856
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9857
|
+
o.map ? (g(), A(Y, j({
|
|
9858
9858
|
key: 10,
|
|
9859
9859
|
viewport: a.viewport,
|
|
9860
9860
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-cover"],
|
|
9861
9861
|
"menu-toggle": o.menuToggle,
|
|
9862
9862
|
simple: o.simple
|
|
9863
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9863
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9864
9864
|
o.map ? (g(), A(Q, j({
|
|
9865
9865
|
key: 11,
|
|
9866
9866
|
viewport: a.viewport,
|
|
9867
9867
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
9868
9868
|
"menu-toggle": o.menuToggle,
|
|
9869
9869
|
simple: o.simple
|
|
9870
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9870
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9871
9871
|
o.map ? (g(), A($, j({
|
|
9872
9872
|
key: 12,
|
|
9873
9873
|
viewport: a.viewport,
|
|
9874
9874
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
|
|
9875
9875
|
"menu-toggle": o.menuToggle,
|
|
9876
9876
|
simple: o.simple
|
|
9877
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9877
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9878
9878
|
o.map ? (g(), A(J, j({
|
|
9879
9879
|
key: 13,
|
|
9880
9880
|
viewport: a.viewport,
|
|
9881
9881
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.visibility,
|
|
9882
9882
|
"menu-toggle": o.menuToggle,
|
|
9883
9883
|
simple: o.simple
|
|
9884
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9885
|
-
o.map ? (g(), A(
|
|
9884
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9885
|
+
o.map ? (g(), A(se, j({
|
|
9886
9886
|
key: 14,
|
|
9887
9887
|
viewport: a.viewport,
|
|
9888
9888
|
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie["water-temp"],
|
|
9889
9889
|
"menu-toggle": o.menuToggle,
|
|
9890
9890
|
simple: o.simple
|
|
9891
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9892
|
-
o.map ? (g(), A(
|
|
9891
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0),
|
|
9892
|
+
o.map ? (g(), A(le, j({
|
|
9893
9893
|
key: 15,
|
|
9894
9894
|
viewport: a.viewport,
|
|
9895
9895
|
factor: (Ce = a.weatherLayers) == null ? void 0 : Ce.temp,
|
|
9896
9896
|
"menu-toggle": o.menuToggle,
|
|
9897
9897
|
simple: o.simple
|
|
9898
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) :
|
|
9898
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : D("", !0)
|
|
9899
9899
|
]);
|
|
9900
9900
|
}
|
|
9901
|
-
const rc = /* @__PURE__ */
|
|
9901
|
+
const rc = /* @__PURE__ */ Z(bn, [["render", ic]]), Lo = [
|
|
9902
9902
|
{
|
|
9903
9903
|
rank: 0,
|
|
9904
9904
|
name: "Best Match",
|
|
@@ -10216,18 +10216,18 @@ class Ya {
|
|
|
10216
10216
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
10217
10217
|
for (const m of a) {
|
|
10218
10218
|
let c = Lo.find((d) => {
|
|
10219
|
-
var b,
|
|
10220
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10219
|
+
var b, x, k;
|
|
10220
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10221
10221
|
}), f = Po.find((d) => {
|
|
10222
|
-
var b,
|
|
10223
|
-
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((
|
|
10222
|
+
var b, x, k;
|
|
10223
|
+
return ((b = d.models) == null ? void 0 : b.includes(m)) || ((x = d.alias) == null ? void 0 : x.toLowerCase()) === m || ((k = d.name) == null ? void 0 : k.toLowerCase()) === m;
|
|
10224
10224
|
});
|
|
10225
10225
|
c = c || Lo.find((d) => {
|
|
10226
|
-
var b,
|
|
10227
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10226
|
+
var b, x;
|
|
10227
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((x = f == null ? void 0 : f.alias) == null ? void 0 : x.toLowerCase());
|
|
10228
10228
|
}), f = f || Po.find((d) => {
|
|
10229
|
-
var b,
|
|
10230
|
-
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
10229
|
+
var b, x;
|
|
10230
|
+
return ((b = d.alias) == null ? void 0 : b.toLowerCase()) === ((x = c == null ? void 0 : c.alias) == null ? void 0 : x.toLowerCase());
|
|
10231
10231
|
}), 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);
|
|
10232
10232
|
}
|
|
10233
10233
|
return {
|
|
@@ -10245,46 +10245,46 @@ class Ya {
|
|
|
10245
10245
|
}), a;
|
|
10246
10246
|
}
|
|
10247
10247
|
static pickHourly(e, o) {
|
|
10248
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10249
|
-
const
|
|
10250
|
-
if (
|
|
10251
|
-
const E =
|
|
10248
|
+
var i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re;
|
|
10249
|
+
const W = typeof o == "string" ? M(o) : o, ye = e == null ? void 0 : e.weather, ae = e == null ? void 0 : e.marine, re = M((a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), je = re.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 = re.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 = [];
|
|
10250
|
+
if (W.isBetween(je, Ge, "millisecond", "[]")) {
|
|
10251
|
+
const E = W.utc().diff(je, "h", !1);
|
|
10252
10252
|
let we, Be;
|
|
10253
10253
|
if (ye) {
|
|
10254
10254
|
let Ee = 0, Ne = 0, N = 0;
|
|
10255
10255
|
for (const Ue of ye) {
|
|
10256
|
-
const
|
|
10256
|
+
const U = Ue == null ? void 0 : Ue.hourly;
|
|
10257
10257
|
for (let Le = E - (E - 1) % 3; Le <= E; Le++)
|
|
10258
|
-
Ee += (b =
|
|
10258
|
+
Ee += (b = U == null ? void 0 : U.precipitation) == null ? void 0 : b.at(Le);
|
|
10259
10259
|
for (let Le = E - (E - 1) % 6; Le <= E; Le++)
|
|
10260
|
-
Ne += (
|
|
10260
|
+
Ne += (x = U == null ? void 0 : U.precipitation) == null ? void 0 : x.at(Le);
|
|
10261
10261
|
for (let Le = E - (E - 1) % 12; Le <= E; Le++)
|
|
10262
|
-
N += (k =
|
|
10262
|
+
N += (k = U == null ? void 0 : U.precipitation) == null ? void 0 : k.at(Le);
|
|
10263
10263
|
we = {
|
|
10264
|
-
temp: (y =
|
|
10265
|
-
apparentTemp: (
|
|
10266
|
-
rh: (T =
|
|
10267
|
-
dp: (B =
|
|
10264
|
+
temp: (y = U == null ? void 0 : U.temperature_2m) == null ? void 0 : y.at(E),
|
|
10265
|
+
apparentTemp: (z = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : z.at(E),
|
|
10266
|
+
rh: (T = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : T.at(E),
|
|
10267
|
+
dp: (B = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10268
10268
|
precip: {
|
|
10269
|
-
probability: (
|
|
10270
|
-
sum: (
|
|
10271
|
-
sum1Hours: (L =
|
|
10269
|
+
probability: (I = U == null ? void 0 : U.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10270
|
+
sum: (w = U == null ? void 0 : U.precipitation) == null ? void 0 : w.at(E),
|
|
10271
|
+
sum1Hours: (L = U == null ? void 0 : U.precipitation) == null ? void 0 : L.at(E),
|
|
10272
10272
|
sum3Hours: Math.round(Ee * 100) / 100,
|
|
10273
10273
|
sum6Hours: Math.round(Ne * 100) / 100,
|
|
10274
10274
|
sum12Hours: Math.round(N * 100) / 100
|
|
10275
10275
|
},
|
|
10276
|
-
pmsl: (P =
|
|
10277
|
-
psurf: (C =
|
|
10278
|
-
code: (
|
|
10279
|
-
visibility: this.m2nm((
|
|
10276
|
+
pmsl: (P = U == null ? void 0 : U.pressure_msl) == null ? void 0 : P.at(E),
|
|
10277
|
+
psurf: (C = U == null ? void 0 : U.surface_pressure) == null ? void 0 : C.at(E),
|
|
10278
|
+
code: (_ = U == null ? void 0 : U.weather_code) == null ? void 0 : _.at(E),
|
|
10279
|
+
visibility: this.m2nm((R = U == null ? void 0 : U.visibility) == null ? void 0 : R.at(E)),
|
|
10280
10280
|
wind: {
|
|
10281
|
-
speed: (F =
|
|
10282
|
-
kts: (
|
|
10283
|
-
degree: (
|
|
10284
|
-
bearing: ((
|
|
10285
|
-
gusts: ($ =
|
|
10281
|
+
speed: (F = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : F.at(E),
|
|
10282
|
+
kts: (V = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : V.at(E),
|
|
10283
|
+
degree: (X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(E),
|
|
10284
|
+
bearing: ((Y = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : Y.at(E)) !== null ? (((Q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : Q.at(E)) + 180) % 360 : null,
|
|
10285
|
+
gusts: ($ = U == null ? void 0 : U.wind_gusts_10m) == null ? void 0 : $.at(E)
|
|
10286
10286
|
},
|
|
10287
|
-
isDay: (J =
|
|
10287
|
+
isDay: (J = U == null ? void 0 : U.is_day) == null ? void 0 : J.at(E)
|
|
10288
10288
|
};
|
|
10289
10289
|
const { name: Xe, url: qe, bg: Ke } = this.parseWeatherCode(we.code, we.isDay);
|
|
10290
10290
|
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({
|
|
@@ -10301,15 +10301,15 @@ class Ya {
|
|
|
10301
10301
|
Be = {
|
|
10302
10302
|
wave: {
|
|
10303
10303
|
sig: {
|
|
10304
|
-
height: (
|
|
10305
|
-
degree: (
|
|
10306
|
-
bearing: ((
|
|
10307
|
-
period: (
|
|
10304
|
+
height: (se = N == null ? void 0 : N.wave_height) == null ? void 0 : se.at(E),
|
|
10305
|
+
degree: (le = N == null ? void 0 : N.wave_direction) == null ? void 0 : le.at(E),
|
|
10306
|
+
bearing: ((pe = N == null ? void 0 : N.wave_direction) == null ? void 0 : pe.at(E)) !== null ? (((ie = N == null ? void 0 : N.wave_direction) == null ? void 0 : ie.at(E)) + 180) % 360 : null,
|
|
10307
|
+
period: (ce = N == null ? void 0 : N.wave_period) == null ? void 0 : ce.at(E)
|
|
10308
10308
|
},
|
|
10309
10309
|
swell: {
|
|
10310
10310
|
height: (ue = N == null ? void 0 : N.swell_wave_height) == null ? void 0 : ue.at(E),
|
|
10311
|
-
degree: (
|
|
10312
|
-
bearing: ((
|
|
10311
|
+
degree: (me = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : me.at(E),
|
|
10312
|
+
bearing: ((he = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : he.at(E)) !== null ? (((O = N == null ? void 0 : N.swell_wave_direction) == null ? void 0 : O.at(E)) + 180) % 360 : null,
|
|
10313
10313
|
period: (te = N == null ? void 0 : N.swell_wave_period) == null ? void 0 : te.at(E),
|
|
10314
10314
|
peakPeriod: (be = N == null ? void 0 : N.swell_wave_peak_period) == null ? void 0 : be.at(E)
|
|
10315
10315
|
},
|
|
@@ -10358,49 +10358,49 @@ class Ya {
|
|
|
10358
10358
|
};
|
|
10359
10359
|
}
|
|
10360
10360
|
static pickDaily(e, o) {
|
|
10361
|
-
var i, a, r, l, m, c, f, d, b,
|
|
10361
|
+
var i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e;
|
|
10362
10362
|
const Ie = typeof o == "string" ? M(o) : o, Ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, oe = M((r = (a = (i = Ce == null ? void 0 : Ce[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((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 = [];
|
|
10363
10363
|
if (Ie.isBetween(oe, He, "millisecond", "[]")) {
|
|
10364
10364
|
let fe, Re;
|
|
10365
|
-
const
|
|
10365
|
+
const W = Ie.diff(oe, "d", !1);
|
|
10366
10366
|
if (Ce)
|
|
10367
10367
|
for (const ye of Ce) {
|
|
10368
10368
|
const ae = ye.daily;
|
|
10369
10369
|
fe = {
|
|
10370
|
-
code: (f = ae.weather_code) == null ? void 0 : f.at(
|
|
10370
|
+
code: (f = ae.weather_code) == null ? void 0 : f.at(W),
|
|
10371
10371
|
temp: {
|
|
10372
|
-
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(
|
|
10373
|
-
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(
|
|
10374
|
-
mean: (
|
|
10372
|
+
max: (d = ae.temperature_2m_max) == null ? void 0 : d.at(W),
|
|
10373
|
+
min: (b = ae.temperature_2m_min) == null ? void 0 : b.at(W),
|
|
10374
|
+
mean: (x = ae.temperature_2m_mean) == null ? void 0 : x.at(W)
|
|
10375
10375
|
},
|
|
10376
10376
|
apparentTemp: {
|
|
10377
|
-
max: (k = ae.apparent_temperature_max) == null ? void 0 : k.at(
|
|
10378
|
-
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(
|
|
10377
|
+
max: (k = ae.apparent_temperature_max) == null ? void 0 : k.at(W),
|
|
10378
|
+
min: (y = ae.apparent_temperature_min) == null ? void 0 : y.at(W)
|
|
10379
10379
|
},
|
|
10380
10380
|
precip: {
|
|
10381
|
-
sum: (
|
|
10382
|
-
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(
|
|
10383
|
-
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(
|
|
10384
|
-
showersSum: (
|
|
10385
|
-
hours: (
|
|
10386
|
-
probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(
|
|
10381
|
+
sum: (z = ae.precipitation_sum) == null ? void 0 : z.at(W),
|
|
10382
|
+
rainSum: (T = ae.rain_sum) == null ? void 0 : T.at(W),
|
|
10383
|
+
snowfallSum: (B = ae.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10384
|
+
showersSum: (I = ae.showers_sum) == null ? void 0 : I.at(W),
|
|
10385
|
+
hours: (w = ae.precipitation_hours) == null ? void 0 : w.at(W),
|
|
10386
|
+
probability: (L = ae.precipitation_probability_max) == null ? void 0 : L.at(W)
|
|
10387
10387
|
},
|
|
10388
10388
|
rh: {
|
|
10389
|
-
max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(
|
|
10390
|
-
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(
|
|
10391
|
-
mean: (
|
|
10389
|
+
max: (P = ae.relative_humidity_2m_max) == null ? void 0 : P.at(W),
|
|
10390
|
+
min: (C = ae.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10391
|
+
mean: (_ = ae.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
|
|
10392
10392
|
},
|
|
10393
10393
|
wind: {
|
|
10394
|
-
speed: (
|
|
10395
|
-
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(
|
|
10396
|
-
degree: (
|
|
10397
|
-
gusts: (
|
|
10398
|
-
bearing: ((
|
|
10394
|
+
speed: (R = ae.wind_speed_10m_max) == null ? void 0 : R.at(W),
|
|
10395
|
+
kts: (F = ae.wind_speed_10m_max) == null ? void 0 : F.at(W),
|
|
10396
|
+
degree: (V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(W),
|
|
10397
|
+
gusts: (X = ae.wind_gusts_10m_max) == null ? void 0 : X.at(W),
|
|
10398
|
+
bearing: ((Y = ae.wind_direction_10m_dominant) == null ? void 0 : Y.at(W)) !== null ? (((Q = ae.wind_direction_10m_dominant) == null ? void 0 : Q.at(W)) + 180) % 360 : null
|
|
10399
10399
|
}
|
|
10400
10400
|
};
|
|
10401
10401
|
const { name: re, url: je, bg: Ge } = this.parseWeatherCode(fe.code, !0);
|
|
10402
10402
|
fe.name = re, fe.url = je, fe.bg = Ge, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Oe.push({
|
|
10403
|
-
utc: oe.add(
|
|
10403
|
+
utc: oe.add(W, "d").utc().format(),
|
|
10404
10404
|
model: ye.model,
|
|
10405
10405
|
weather: { ...fe }
|
|
10406
10406
|
});
|
|
@@ -10412,25 +10412,25 @@ class Ya {
|
|
|
10412
10412
|
Re = {
|
|
10413
10413
|
wave: {
|
|
10414
10414
|
sig: {
|
|
10415
|
-
height: ($ = re.wave_height_max) == null ? void 0 : $.at(
|
|
10416
|
-
degree: (J = re.wave_direction_dominant) == null ? void 0 : J.at(
|
|
10417
|
-
period: (
|
|
10418
|
-
bearing: ((
|
|
10415
|
+
height: ($ = re.wave_height_max) == null ? void 0 : $.at(W),
|
|
10416
|
+
degree: (J = re.wave_direction_dominant) == null ? void 0 : J.at(W),
|
|
10417
|
+
period: (se = re.wave_period_max) == null ? void 0 : se.at(W),
|
|
10418
|
+
bearing: ((le = re.wave_direction_dominant) == null ? void 0 : le.at(W)) !== null ? (((pe = re.wave_direction_dominant) == null ? void 0 : pe.at(W)) + 180) % 360 : null
|
|
10419
10419
|
},
|
|
10420
10420
|
swell: {
|
|
10421
|
-
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(
|
|
10422
|
-
degree: (
|
|
10423
|
-
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(
|
|
10424
|
-
peakPeriod: (
|
|
10421
|
+
height: (ie = re.swell_wave_height_max) == null ? void 0 : ie.at(W),
|
|
10422
|
+
degree: (ce = re.swell_wave_direction_dominant) == null ? void 0 : ce.at(W),
|
|
10423
|
+
period: (ue = re.swell_wave_period_max) == null ? void 0 : ue.at(W),
|
|
10424
|
+
peakPeriod: (me = re.swell_wave_peak_period_max) == null ? void 0 : me.at(W),
|
|
10425
10425
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
10426
|
-
bearing: ((
|
|
10426
|
+
bearing: ((he = re.swell_wave_direction_dominant) == null ? void 0 : he.at(W)) !== null ? ((O = re.swell_wave_direction_dominant) == null ? void 0 : O.at(W)) % 360 : null
|
|
10427
10427
|
},
|
|
10428
10428
|
wd: {
|
|
10429
|
-
height: (te = re.wind_wave_height_max) == null ? void 0 : te.at(
|
|
10430
|
-
degree: (be = re.wind_wave_direction_dominant) == null ? void 0 : be.at(
|
|
10431
|
-
period: (ve = re.wind_wave_period_max) == null ? void 0 : ve.at(
|
|
10432
|
-
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(
|
|
10433
|
-
bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(
|
|
10429
|
+
height: (te = re.wind_wave_height_max) == null ? void 0 : te.at(W),
|
|
10430
|
+
degree: (be = re.wind_wave_direction_dominant) == null ? void 0 : be.at(W),
|
|
10431
|
+
period: (ve = re.wind_wave_period_max) == null ? void 0 : ve.at(W),
|
|
10432
|
+
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
|
|
10433
|
+
bearing: ((Te = re.wind_wave_direction_dominant) == null ? void 0 : Te.at(W)) !== null ? (((_e = re.wind_wave_direction_dominant) == null ? void 0 : _e.at(W)) + 180) % 360 : null
|
|
10434
10434
|
}
|
|
10435
10435
|
}
|
|
10436
10436
|
}, Re.wave = this.parseWave(Re.wave, fe == null ? void 0 : fe.wind), Object.assign(Oe[ye], Re), ye++;
|
|
@@ -10921,7 +10921,7 @@ const sc = {
|
|
|
10921
10921
|
showTropicalsInfo: !1,
|
|
10922
10922
|
activeTropicals: void 0,
|
|
10923
10923
|
activeTropicalsMarker: void 0,
|
|
10924
|
-
empty:
|
|
10924
|
+
empty: G.featureCollection([]),
|
|
10925
10925
|
showLegend: !1,
|
|
10926
10926
|
showHoverPoint: !1,
|
|
10927
10927
|
hoverPoint: void 0,
|
|
@@ -11053,9 +11053,9 @@ const sc = {
|
|
|
11053
11053
|
},
|
|
11054
11054
|
responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
|
|
11055
11055
|
}).then((d) => {
|
|
11056
|
-
var k, y,
|
|
11056
|
+
var k, y, z;
|
|
11057
11057
|
const b = Va.convert2Geojson(((k = d == null ? void 0 : d.data) == null ? void 0 : k.data) || (d == null ? void 0 : d.data));
|
|
11058
|
-
((
|
|
11058
|
+
((z = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : z.key) && b && (this.tropicals = {
|
|
11059
11059
|
data: b,
|
|
11060
11060
|
active: !0,
|
|
11061
11061
|
cached: !0,
|
|
@@ -11073,35 +11073,35 @@ const sc = {
|
|
|
11073
11073
|
handleRefresh() {
|
|
11074
11074
|
var e, o;
|
|
11075
11075
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
11076
|
-
var a, r, l, m, c, f, d, b,
|
|
11076
|
+
var a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _;
|
|
11077
11077
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
11078
|
-
let
|
|
11078
|
+
let R = "";
|
|
11079
11079
|
switch (!0) {
|
|
11080
11080
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
11081
|
-
|
|
11081
|
+
R = "TD";
|
|
11082
11082
|
break;
|
|
11083
11083
|
case (((m = i.properties.wind) == null ? void 0 : m.kts) < 47 || ((c = i.properties) == null ? void 0 : c.kts) < 47):
|
|
11084
|
-
|
|
11084
|
+
R = "TS";
|
|
11085
11085
|
break;
|
|
11086
11086
|
case (((f = i.properties.wind) == null ? void 0 : f.kts) < 63 || ((d = i.properties) == null ? void 0 : d.kts) < 63):
|
|
11087
|
-
|
|
11087
|
+
R = "STS";
|
|
11088
11088
|
break;
|
|
11089
|
-
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((
|
|
11090
|
-
|
|
11089
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((x = i.properties) == null ? void 0 : x.kts) < 79):
|
|
11090
|
+
R = "TY";
|
|
11091
11091
|
break;
|
|
11092
11092
|
case (((k = i.properties.wind) == null ? void 0 : k.kts) < 94 || ((y = i.properties) == null ? void 0 : y.kts) < 94):
|
|
11093
|
-
|
|
11093
|
+
R = "STY";
|
|
11094
11094
|
break;
|
|
11095
|
-
case (((
|
|
11096
|
-
|
|
11095
|
+
case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
11096
|
+
R = "Super TY";
|
|
11097
11097
|
break;
|
|
11098
11098
|
default:
|
|
11099
|
-
|
|
11099
|
+
R = "Super TY";
|
|
11100
11100
|
break;
|
|
11101
11101
|
}
|
|
11102
|
-
i.properties.level =
|
|
11102
|
+
i.properties.level = R;
|
|
11103
11103
|
}
|
|
11104
|
-
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((
|
|
11104
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (L = (w = M(i.properties.date)) == null ? void 0 : w.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 = ((_ = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : _.replace(/^./, (R) => R.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11105
11105
|
}), this.handleInit();
|
|
11106
11106
|
},
|
|
11107
11107
|
handleInit() {
|
|
@@ -11112,8 +11112,8 @@ const sc = {
|
|
|
11112
11112
|
var t, e, o, i, a, r, l, m, c, f;
|
|
11113
11113
|
if (this.tropicals && this.map) {
|
|
11114
11114
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
11115
|
-
let b = 0,
|
|
11116
|
-
(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),
|
|
11115
|
+
let b = 0, x = 0;
|
|
11116
|
+
(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), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropicals] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.source, {
|
|
11117
11117
|
type: "geojson",
|
|
11118
11118
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
11119
11119
|
}), this.map.addLayer({
|
|
@@ -11194,7 +11194,7 @@ const sc = {
|
|
|
11194
11194
|
],
|
|
11195
11195
|
"text-halo-width": 4
|
|
11196
11196
|
}
|
|
11197
|
-
}, this.beforeLayer),
|
|
11197
|
+
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x)), (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), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.clusterSource, {
|
|
11198
11198
|
type: "geojson",
|
|
11199
11199
|
data: (c = this.tropicals) != null && c.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
|
|
11200
11200
|
// cluster: true,
|
|
@@ -11310,7 +11310,7 @@ const sc = {
|
|
|
11310
11310
|
"text-halo-color": "#ffffff",
|
|
11311
11311
|
"text-halo-width": 2
|
|
11312
11312
|
}
|
|
11313
|
-
}, this.beforeLayer),
|
|
11313
|
+
}, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (d + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x));
|
|
11314
11314
|
const k = Va.interpolate(this.tropicals, 1);
|
|
11315
11315
|
this.interpolateData = JSON.parse(JSON.stringify(k)), this.handleDateChange();
|
|
11316
11316
|
}
|
|
@@ -11320,14 +11320,14 @@ const sc = {
|
|
|
11320
11320
|
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();
|
|
11321
11321
|
},
|
|
11322
11322
|
handleDateChange() {
|
|
11323
|
-
var t, e, o, i, a, r, l, m, c, f, d, b,
|
|
11323
|
+
var t, e, o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe;
|
|
11324
11324
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11325
|
-
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
11325
|
+
const ie = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((O) => O.properties.date === (ie == null ? void 0 : ie.format()) && !O.properties.disabled), ue = this.handleComputePolygons(ce), me = G.featureCollection([...ce]);
|
|
11326
11326
|
ue.forEach((O) => {
|
|
11327
|
-
|
|
11328
|
-
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
11327
|
+
me.features.push(O);
|
|
11328
|
+
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
11329
11329
|
type: "geojson",
|
|
11330
|
-
data:
|
|
11330
|
+
data: me
|
|
11331
11331
|
}), (r = this.map) == null || r.addLayer({
|
|
11332
11332
|
id: this.interpolateLineLayer,
|
|
11333
11333
|
type: "line",
|
|
@@ -11347,10 +11347,10 @@ const sc = {
|
|
|
11347
11347
|
"line-width": 1
|
|
11348
11348
|
}
|
|
11349
11349
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
11350
|
-
const
|
|
11351
|
-
for (const O of
|
|
11350
|
+
const he = [];
|
|
11351
|
+
for (const O of ce)
|
|
11352
11352
|
if (!O.properties.disabled) {
|
|
11353
|
-
if (!
|
|
11353
|
+
if (!he.some((Te) => {
|
|
11354
11354
|
var _e;
|
|
11355
11355
|
return Te.properties.name === ((_e = O.properties) == null ? void 0 : _e.name);
|
|
11356
11356
|
})) {
|
|
@@ -11358,10 +11358,10 @@ const sc = {
|
|
|
11358
11358
|
var Ie;
|
|
11359
11359
|
return _e.properties.name === ((Ie = O.properties) == null ? void 0 : Ie.name);
|
|
11360
11360
|
})) == null ? void 0 : l.properties) == null ? void 0 : m.nameCn) || ((c = O.properties) == null ? void 0 : c.Name) || "-";
|
|
11361
|
-
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn,
|
|
11361
|
+
O.properties.nameCn = Te, O.properties.Name = ((d = (f = O.properties.name) == null ? void 0 : f.trim()) == null ? void 0 : d.replace(/^./, (_e) => _e.toUpperCase())) || O.properties.nameCn, he.push(O);
|
|
11362
11362
|
}
|
|
11363
11363
|
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11364
|
-
((
|
|
11364
|
+
((x = (b = O.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((y = (k = O.properties) == null ? void 0 : k.wind) != null && y.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((T = (z = O.properties) == null ? void 0 : z.wind) == null ? void 0 : T.kts) >= 32 && ((I = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((L = (w = O.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) >= 47 && ((C = (P = O.properties) == null ? void 0 : P.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((R = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : R.kts) >= 63 && ((V = (F = O.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Y = (X = O.properties) == null ? void 0 : X.wind) == null ? void 0 : Y.kts) >= 79 && (($ = (Q = O.properties) == null ? void 0 : Q.wind) == null ? void 0 : $.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((se = (J = O.properties) == null ? void 0 : J.wind) == null ? void 0 : se.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11365
11365
|
const be = `<svg t="1719918955501"
|
|
11366
11366
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11367
11367
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11381,29 +11381,29 @@ const sc = {
|
|
|
11381
11381
|
const Pe = new ze.Marker(ve).setLngLat(O.geometry.coordinates).addTo(this.map);
|
|
11382
11382
|
this.interpolateMarkers.push(Pe);
|
|
11383
11383
|
}
|
|
11384
|
-
this.$emit("tropicalCenterPoints",
|
|
11384
|
+
this.$emit("tropicalCenterPoints", he);
|
|
11385
11385
|
} else
|
|
11386
|
-
(
|
|
11386
|
+
(le = this.map) != null && le.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
|
|
11387
11387
|
},
|
|
11388
11388
|
handleClick(t) {
|
|
11389
|
-
var a, r, l, m, c, f, d, b,
|
|
11389
|
+
var a, r, l, m, c, f, d, b, x, k, y;
|
|
11390
11390
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11391
|
-
(
|
|
11391
|
+
(z) => {
|
|
11392
11392
|
var T;
|
|
11393
|
-
return
|
|
11393
|
+
return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11394
11394
|
}
|
|
11395
11395
|
), i = (m = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : m.features.filter(
|
|
11396
|
-
(
|
|
11396
|
+
(z) => {
|
|
11397
11397
|
var T;
|
|
11398
|
-
return
|
|
11398
|
+
return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((T = e == null ? void 0 : e.properties) == null ? void 0 : T.name);
|
|
11399
11399
|
}
|
|
11400
11400
|
);
|
|
11401
11401
|
this.activeTropicals = {
|
|
11402
11402
|
name: ((c = e == null ? void 0 : e.properties) == null ? void 0 : c.name) || "-",
|
|
11403
11403
|
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) || "-",
|
|
11404
11404
|
Name: ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.Name) || "-",
|
|
11405
|
-
forecasts: o.map((
|
|
11406
|
-
history: (
|
|
11405
|
+
forecasts: o.map((z) => z.properties),
|
|
11406
|
+
history: (x = i[0]) == null ? void 0 : x.properties,
|
|
11407
11407
|
showCircle: (y = (k = o[0]) == null ? void 0 : k.properties) == null ? void 0 : y.showCircle
|
|
11408
11408
|
}, this.showTropicalsInfo = !0, this.simple || this.drawTropicalsInfoMaker([t.lngLat.lng, t.lngLat.lat]);
|
|
11409
11409
|
},
|
|
@@ -11427,7 +11427,7 @@ const sc = {
|
|
|
11427
11427
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11428
11428
|
}), this.interpolateData.forEach((f) => {
|
|
11429
11429
|
f.properties.category === e && (f.properties.disabled = t.disabled);
|
|
11430
|
-
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(
|
|
11430
|
+
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(G.featureCollection(o)), (c = (m = this.map) == null ? void 0 : m.getSource(this.clusterSource)) == null || c.setData(G.featureCollection(o)), this.handleDateChange();
|
|
11431
11431
|
},
|
|
11432
11432
|
handleStrikeProbability(t) {
|
|
11433
11433
|
this.$emit("tropicalProbability", t);
|
|
@@ -11466,22 +11466,22 @@ const sc = {
|
|
|
11466
11466
|
let c;
|
|
11467
11467
|
switch (l) {
|
|
11468
11468
|
case "ne":
|
|
11469
|
-
c =
|
|
11469
|
+
c = G.lineArc(t, m, 0, 90, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11470
11470
|
break;
|
|
11471
11471
|
case "se":
|
|
11472
|
-
c =
|
|
11472
|
+
c = G.lineArc(t, m, 90, 180, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11473
11473
|
break;
|
|
11474
11474
|
case "sw":
|
|
11475
|
-
c =
|
|
11475
|
+
c = G.lineArc(t, m, 180, 270, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11476
11476
|
break;
|
|
11477
11477
|
case "nw":
|
|
11478
|
-
c =
|
|
11478
|
+
c = G.lineArc(t, m, 270, 360, { steps: m > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
11479
11479
|
break;
|
|
11480
11480
|
}
|
|
11481
11481
|
i.push(...(r = c == null ? void 0 : c.geometry) == null ? void 0 : r.coordinates);
|
|
11482
11482
|
}
|
|
11483
|
-
const a =
|
|
11484
|
-
return
|
|
11483
|
+
const a = G.lineString(i);
|
|
11484
|
+
return G.lineToPolygon(a, { properties: o });
|
|
11485
11485
|
},
|
|
11486
11486
|
handleNotification(t) {
|
|
11487
11487
|
this.$emit("tropicalNotification", t);
|
|
@@ -11557,7 +11557,7 @@ const sc = {
|
|
|
11557
11557
|
class: "d-flex justify-start align-center"
|
|
11558
11558
|
}, Qc = { class: "text-label pr-1" }, $c = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
11559
11559
|
function tm(t, e, o, i, a, r) {
|
|
11560
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("
|
|
11560
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardText"), f = v("VDivider"), d = v("VCardActions"), b = v("VCard"), x = v("v-card-title"), k = v("v-divider");
|
|
11561
11561
|
return g(), S("div", lc, [
|
|
11562
11562
|
s("div", {
|
|
11563
11563
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11567,8 +11567,8 @@ function tm(t, e, o, i, a, r) {
|
|
|
11567
11567
|
text: t.$t("tropical.tropicals"),
|
|
11568
11568
|
location: "left"
|
|
11569
11569
|
}, {
|
|
11570
|
-
activator: u(({ props:
|
|
11571
|
-
p(l, j(
|
|
11570
|
+
activator: u(({ props: y }) => [
|
|
11571
|
+
p(l, j(y, {
|
|
11572
11572
|
"min-width": "32",
|
|
11573
11573
|
width: "32",
|
|
11574
11574
|
height: "32",
|
|
@@ -11590,18 +11590,18 @@ function tm(t, e, o, i, a, r) {
|
|
|
11590
11590
|
id: "idm-tropical-gl4-info",
|
|
11591
11591
|
class: ge(["idm-tropical-gl4-info", o.simple ? "page" : "dialog"])
|
|
11592
11592
|
}, [
|
|
11593
|
-
p(
|
|
11593
|
+
p(b, {
|
|
11594
11594
|
class: ge(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
|
|
11595
11595
|
elevation: o.simple ? 0 : 16
|
|
11596
11596
|
}, {
|
|
11597
11597
|
default: u(() => [
|
|
11598
|
-
p(
|
|
11598
|
+
p(c, null, {
|
|
11599
11599
|
default: u(() => {
|
|
11600
|
-
var
|
|
11600
|
+
var y, z, T, B, I, w, L, P, C, _, R, F;
|
|
11601
11601
|
return [
|
|
11602
11602
|
s("div", nc, [
|
|
11603
|
-
s("span", cc, n(o.locale === "en" ? (
|
|
11604
|
-
(
|
|
11603
|
+
s("span", cc, 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),
|
|
11604
|
+
(I = (B = a.activeTropicals) == null ? void 0 : B.history) != null && I.level ? (g(), S("span", mc, ", " + n((L = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : L.level), 1)) : D("", !0)
|
|
11605
11605
|
]),
|
|
11606
11606
|
p(l, {
|
|
11607
11607
|
icon: "",
|
|
@@ -11610,62 +11610,60 @@ function tm(t, e, o, i, a, r) {
|
|
|
11610
11610
|
class: "close",
|
|
11611
11611
|
onClick: Se(r.handleCloseInfoMarker, ["stop"])
|
|
11612
11612
|
}, {
|
|
11613
|
-
default: u(() => [
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
]),
|
|
11619
|
-
_: 1
|
|
11613
|
+
default: u(() => e[4] || (e[4] = [
|
|
11614
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
11615
|
+
])),
|
|
11616
|
+
_: 1,
|
|
11617
|
+
__: [4]
|
|
11620
11618
|
}, 8, ["onClick"]),
|
|
11621
11619
|
s("div", hc, [
|
|
11622
11620
|
s("span", dc, n(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11623
|
-
s("span", null, n(r.computeTime(((
|
|
11621
|
+
s("span", null, n(r.computeTime(((C = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : C.updated) || ((F = (R = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : R.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), o.timeZone)), 1)
|
|
11624
11622
|
])
|
|
11625
11623
|
];
|
|
11626
11624
|
}),
|
|
11627
11625
|
_: 1
|
|
11628
11626
|
}),
|
|
11629
|
-
p(
|
|
11630
|
-
p(
|
|
11627
|
+
p(f),
|
|
11628
|
+
p(c, { class: "text-body-1 py-3" }, {
|
|
11631
11629
|
default: u(() => {
|
|
11632
|
-
var
|
|
11630
|
+
var y, z, T, B, I, w, L, P, C;
|
|
11633
11631
|
return [
|
|
11634
11632
|
s("div", pc, [
|
|
11635
11633
|
s("div", uc, [
|
|
11636
11634
|
s("label", gc, n(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11637
|
-
s("span", null, n(((
|
|
11638
|
-
s("span", null, ", BF " + n(r.computeBF(((
|
|
11635
|
+
s("span", null, n(((z = (y = a.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
|
|
11636
|
+
s("span", null, ", BF " + n(r.computeBF(((B = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : B.kts) || "-")), 1)
|
|
11639
11637
|
]),
|
|
11640
11638
|
s("div", fc, [
|
|
11641
11639
|
s("label", yc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11642
|
-
s("span", null, n(((
|
|
11640
|
+
s("span", null, n(((w = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : w.pressure) || "-") + " hPa", 1)
|
|
11643
11641
|
])
|
|
11644
11642
|
]),
|
|
11645
11643
|
s("div", bc, [
|
|
11646
11644
|
s("div", wc, [
|
|
11647
11645
|
s("label", xc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11648
|
-
s("span", null, n(((
|
|
11646
|
+
s("span", null, n(((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.kts) || "-") + " kts", 1)
|
|
11649
11647
|
]),
|
|
11650
11648
|
s("div", vc, [
|
|
11651
11649
|
s("label", _c, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11652
|
-
s("span", null, n(((
|
|
11650
|
+
s("span", null, n(((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.deg) || "-") + "°", 1)
|
|
11653
11651
|
])
|
|
11654
11652
|
]),
|
|
11655
11653
|
s("div", kc, [
|
|
11656
11654
|
s("label", zc, n(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11657
11655
|
s("div", Lc, [
|
|
11658
|
-
(g(!0), S(xe, null, ke((
|
|
11659
|
-
key:
|
|
11656
|
+
(g(!0), S(xe, null, ke((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, R) => (g(), A(l, {
|
|
11657
|
+
key: R,
|
|
11660
11658
|
density: "compact",
|
|
11661
|
-
variant:
|
|
11662
|
-
color:
|
|
11659
|
+
variant: _.disabled ? "text" : "flat",
|
|
11660
|
+
color: _.disabled ? "" : "primary",
|
|
11663
11661
|
"min-width": 30,
|
|
11664
|
-
class: ge(["model text-none text-body-1 px-1",
|
|
11665
|
-
onClick: Se((
|
|
11662
|
+
class: ge(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11663
|
+
onClick: Se((F) => r.handleForecastToggle(_), ["stop"])
|
|
11666
11664
|
}, {
|
|
11667
11665
|
default: u(() => [
|
|
11668
|
-
K(n(
|
|
11666
|
+
K(n(_.model), 1)
|
|
11669
11667
|
]),
|
|
11670
11668
|
_: 2
|
|
11671
11669
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11675,8 +11673,8 @@ function tm(t, e, o, i, a, r) {
|
|
|
11675
11673
|
}),
|
|
11676
11674
|
_: 1
|
|
11677
11675
|
}),
|
|
11678
|
-
p(
|
|
11679
|
-
o.simple ?
|
|
11676
|
+
p(f),
|
|
11677
|
+
o.simple ? D("", !0) : (g(), A(d, {
|
|
11680
11678
|
key: 0,
|
|
11681
11679
|
class: "d-flex justify-space-between"
|
|
11682
11680
|
}, {
|
|
@@ -11687,9 +11685,9 @@ function tm(t, e, o, i, a, r) {
|
|
|
11687
11685
|
variant: "text",
|
|
11688
11686
|
color: a.showLegend ? "primary" : "",
|
|
11689
11687
|
class: "text-none text-body-1",
|
|
11690
|
-
onClick: e[0] || (e[0] = Se((
|
|
11688
|
+
onClick: e[0] || (e[0] = Se((y) => a.showLegend = !a.showLegend, ["stop"]))
|
|
11691
11689
|
}, {
|
|
11692
|
-
prepend: u(() => e[
|
|
11690
|
+
prepend: u(() => e[5] || (e[5] = [
|
|
11693
11691
|
s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
11694
11692
|
])),
|
|
11695
11693
|
default: u(() => [
|
|
@@ -11703,19 +11701,19 @@ function tm(t, e, o, i, a, r) {
|
|
|
11703
11701
|
variant: "text",
|
|
11704
11702
|
density: "compact",
|
|
11705
11703
|
class: "text-none text-body-1",
|
|
11706
|
-
onClick: e[1] || (e[1] = Se((
|
|
11704
|
+
onClick: e[1] || (e[1] = Se((y) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
11707
11705
|
}, {
|
|
11708
11706
|
default: u(() => [
|
|
11709
11707
|
K(n(t.$t("actions.notify")), 1)
|
|
11710
11708
|
]),
|
|
11711
11709
|
_: 1
|
|
11712
|
-
})) :
|
|
11710
|
+
})) : D("", !0),
|
|
11713
11711
|
p(l, {
|
|
11714
11712
|
variant: "text",
|
|
11715
11713
|
density: "compact",
|
|
11716
11714
|
"append-icon": "mdi-chevron-right",
|
|
11717
11715
|
class: "text-none text-body-1",
|
|
11718
|
-
onClick: e[2] || (e[2] = Se((
|
|
11716
|
+
onClick: e[2] || (e[2] = Se((y) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
11719
11717
|
}, {
|
|
11720
11718
|
default: u(() => [
|
|
11721
11719
|
K(n(t.$t("actions.viewReport")), 1)
|
|
@@ -11729,14 +11727,14 @@ function tm(t, e, o, i, a, r) {
|
|
|
11729
11727
|
]),
|
|
11730
11728
|
_: 1
|
|
11731
11729
|
}, 8, ["class", "elevation"]),
|
|
11732
|
-
o.simple ? (g(), S("div", Tc, e[
|
|
11730
|
+
o.simple ? (g(), S("div", Tc, e[6] || (e[6] = [
|
|
11733
11731
|
ei('<div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon td"></div><div class="label">TD</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon sty"></div><div class="label">STY</div></div></div><div class="pa-1"><div class="legend d-flex justify-start align-center py-2"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend d-flex justify-start align-center py-2"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="pa-1"><div class="w-100 legend d-flex justify-start align-center py-2 ga-2"><div class="icon history"></div><div class="label">History</div><div class="icon forecast"></div><div class="label">Forecast</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="w-100 legend d-flex justify-start align-center py-2"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3)
|
|
11734
11732
|
]))) : (g(), S("div", Cc, [
|
|
11735
|
-
Ye(p(
|
|
11733
|
+
Ye(p(b, { elevation: "16" }, {
|
|
11736
11734
|
default: u(() => [
|
|
11737
|
-
p(
|
|
11735
|
+
p(c, null, {
|
|
11738
11736
|
default: u(() => [
|
|
11739
|
-
Ye(s("div", Sc, e[
|
|
11737
|
+
Ye(s("div", Sc, e[7] || (e[7] = [
|
|
11740
11738
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11741
11739
|
s("div", { class: "icon td" }),
|
|
11742
11740
|
s("div", { class: "label" }, "TD")
|
|
@@ -11764,7 +11762,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11764
11762
|
]), 512), [
|
|
11765
11763
|
[Ze, a.showLegend]
|
|
11766
11764
|
]),
|
|
11767
|
-
Ye(s("div", Mc, e[
|
|
11765
|
+
Ye(s("div", Mc, e[8] || (e[8] = [
|
|
11768
11766
|
s("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11769
11767
|
s("div", { class: "icon history" }),
|
|
11770
11768
|
s("div", { class: "label" }, "History")
|
|
@@ -11793,67 +11791,67 @@ function tm(t, e, o, i, a, r) {
|
|
|
11793
11791
|
[Ze, a.showLegend]
|
|
11794
11792
|
])
|
|
11795
11793
|
]))
|
|
11796
|
-
], 2)) :
|
|
11797
|
-
Ye(p(
|
|
11794
|
+
], 2)) : D("", !0),
|
|
11795
|
+
Ye(p(b, {
|
|
11798
11796
|
id: "tropicalHoverMarkerInfo",
|
|
11799
11797
|
elevation: "16",
|
|
11800
11798
|
"max-width": "280"
|
|
11801
11799
|
}, {
|
|
11802
11800
|
default: u(() => [
|
|
11803
|
-
p(
|
|
11801
|
+
p(x, null, {
|
|
11804
11802
|
default: u(() => {
|
|
11805
|
-
var
|
|
11803
|
+
var y, z, T, B;
|
|
11806
11804
|
return [
|
|
11807
11805
|
s("div", Dc, [
|
|
11808
|
-
s("span", Ic, n(o.locale === "en" ? (
|
|
11809
|
-
s("span", Rc, "[ " + n((
|
|
11806
|
+
s("span", Ic, 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),
|
|
11807
|
+
s("span", Rc, "[ " + n((B = a.hoverPoint) == null ? void 0 : B.level) + " ]", 1)
|
|
11810
11808
|
])
|
|
11811
11809
|
];
|
|
11812
11810
|
}),
|
|
11813
11811
|
_: 1
|
|
11814
11812
|
}),
|
|
11815
|
-
p(
|
|
11816
|
-
p(
|
|
11813
|
+
p(k),
|
|
11814
|
+
p(c, { class: "text-body-1" }, {
|
|
11817
11815
|
default: u(() => {
|
|
11818
|
-
var
|
|
11816
|
+
var y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le;
|
|
11819
11817
|
return [
|
|
11820
11818
|
s("div", Ac, [
|
|
11821
|
-
((
|
|
11819
|
+
((y = a.hoverPoint) == null ? void 0 : y.type) === "forecast" ? (g(), S("div", Oc, [
|
|
11822
11820
|
s("label", Bc, n(t.$t("tropical.updated")) + " : ", 1),
|
|
11823
|
-
s("span", null, n(r.computeTzTime((
|
|
11824
|
-
])) :
|
|
11825
|
-
((
|
|
11821
|
+
s("span", null, n(r.computeTzTime((z = a.hoverPoint) == null ? void 0 : z.update, o.timeZone)), 1)
|
|
11822
|
+
])) : D("", !0),
|
|
11823
|
+
((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (g(), S("div", jc, [
|
|
11826
11824
|
s("label", Ec, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11827
|
-
s("span", null, n(r.computeTzTime((
|
|
11828
|
-
])) :
|
|
11829
|
-
((
|
|
11825
|
+
s("span", null, n(r.computeTzTime((B = a.hoverPoint) == null ? void 0 : B.date, o.timeZone)), 1)
|
|
11826
|
+
])) : D("", !0),
|
|
11827
|
+
((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (g(), S("div", Nc, [
|
|
11830
11828
|
s("label", Fc, n(t.$t("tropical.forecast")) + " : ", 1),
|
|
11831
|
-
s("span", null, n(r.computeTzTime((
|
|
11832
|
-
])) :
|
|
11833
|
-
((
|
|
11829
|
+
s("span", null, n(r.computeTzTime((w = a.hoverPoint) == null ? void 0 : w.date, o.timeZone)), 1)
|
|
11830
|
+
])) : D("", !0),
|
|
11831
|
+
((L = a.hoverPoint) == null ? void 0 : L.type) === "forecast" ? (g(), S("div", Hc, [
|
|
11834
11832
|
s("label", Gc, n(t.$t("tropical.model")) + " : ", 1),
|
|
11835
|
-
s("span", null, n(((
|
|
11836
|
-
])) :
|
|
11837
|
-
((
|
|
11833
|
+
s("span", null, n(((P = a.hoverPoint) == null ? void 0 : P.model) ?? "-"), 1)
|
|
11834
|
+
])) : D("", !0),
|
|
11835
|
+
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (g(), S("div", Wc, [
|
|
11838
11836
|
s("label", Uc, n(t.$t("weather.wind")) + " : ", 1),
|
|
11839
|
-
s("span", null, n(((
|
|
11840
|
-
])) :
|
|
11841
|
-
((
|
|
11837
|
+
s("span", null, n(((R = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : R.kts) ?? "-") + " kts", 1)
|
|
11838
|
+
])) : D("", !0),
|
|
11839
|
+
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (g(), S("div", Vc, [
|
|
11842
11840
|
s("label", Yc, n(t.$t("weather.wind")) + " : ", 1),
|
|
11843
|
-
s("span", null, n(((
|
|
11844
|
-
])) :
|
|
11841
|
+
s("span", null, n(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
|
|
11842
|
+
])) : D("", !0),
|
|
11845
11843
|
s("div", Zc, [
|
|
11846
11844
|
s("label", Xc, n(t.$t("weather.pressure")) + " : ", 1),
|
|
11847
|
-
s("span", null, n(((
|
|
11845
|
+
s("span", null, n(((X = a.hoverPoint) == null ? void 0 : X.pressure) ?? "-") + " hPa", 1)
|
|
11848
11846
|
]),
|
|
11849
|
-
((
|
|
11847
|
+
((Y = a.hoverPoint) == null ? void 0 : Y.type) === "history" ? (g(), S("div", qc, [
|
|
11850
11848
|
s("label", Kc, n(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
11851
|
-
s("span", null, n(((
|
|
11852
|
-
])) :
|
|
11853
|
-
((
|
|
11849
|
+
s("span", null, n((($ = JSON.parse((Q = a.hoverPoint) == null ? void 0 : Q.movement)) == null ? void 0 : $.kts) ?? "-") + " kts", 1)
|
|
11850
|
+
])) : D("", !0),
|
|
11851
|
+
((J = a.hoverPoint) == null ? void 0 : J.type) === "history" ? (g(), S("div", Jc, [
|
|
11854
11852
|
s("label", Qc, n(t.$t("tropical.moveDir")) + " : ", 1),
|
|
11855
|
-
s("span", null, n(((
|
|
11856
|
-
])) :
|
|
11853
|
+
s("span", null, n(((le = JSON.parse((se = a.hoverPoint) == null ? void 0 : se.movement)) == null ? void 0 : le.deg) ?? "-") + " °", 1)
|
|
11854
|
+
])) : D("", !0),
|
|
11857
11855
|
s("div", $c, [
|
|
11858
11856
|
s("label", em, n(t.$t("tropical.position")) + " : ", 1),
|
|
11859
11857
|
s("span", null, n(r.computePosition(a.hoverPoint)), 1)
|
|
@@ -11870,7 +11868,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
11870
11868
|
])
|
|
11871
11869
|
]);
|
|
11872
11870
|
}
|
|
11873
|
-
const qa = /* @__PURE__ */
|
|
11871
|
+
const qa = /* @__PURE__ */ Z(sc, [["render", tm]]);
|
|
11874
11872
|
const om = {
|
|
11875
11873
|
name: "DateTimePicker",
|
|
11876
11874
|
props: {
|
|
@@ -12069,12 +12067,12 @@ const om = {
|
|
|
12069
12067
|
style: { height: "56px" }
|
|
12070
12068
|
};
|
|
12071
12069
|
function nm(t, e, o, i, a, r) {
|
|
12072
|
-
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"),
|
|
12070
|
+
const l = v("VDatePicker"), m = v("VDivider"), c = v("VListItemTitle"), f = v("VListItem"), d = v("VList"), b = v("VCardText"), x = v("VBtn"), k = v("VCardActions"), y = v("VCard");
|
|
12073
12071
|
return g(), S("div", am, [
|
|
12074
12072
|
s("div", {
|
|
12075
12073
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
12076
12074
|
class: ge([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
|
|
12077
|
-
onClick: e[0] || (e[0] = (...
|
|
12075
|
+
onClick: e[0] || (e[0] = (...z) => r.handleOpenDatePicker && r.handleOpenDatePicker(...z))
|
|
12078
12076
|
}, [
|
|
12079
12077
|
s("span", im, n(a.currentDateTime) + " | UTC " + n(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
12080
12078
|
], 6),
|
|
@@ -12089,7 +12087,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12089
12087
|
s("div", rm, [
|
|
12090
12088
|
p(l, {
|
|
12091
12089
|
modelValue: a.currentDate,
|
|
12092
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
12090
|
+
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.currentDate = z),
|
|
12093
12091
|
min: a.minDate,
|
|
12094
12092
|
max: a.maxDate,
|
|
12095
12093
|
"mode-icon": () => r.currentYear,
|
|
@@ -12109,11 +12107,11 @@ function nm(t, e, o, i, a, r) {
|
|
|
12109
12107
|
s("div", lm, n(a.currentTime), 1),
|
|
12110
12108
|
p(d, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
12111
12109
|
default: u(() => [
|
|
12112
|
-
(g(!0), S(xe, null, ke(r.hourOptions, (
|
|
12110
|
+
(g(!0), S(xe, null, ke(r.hourOptions, (z, T) => (g(), A(f, {
|
|
12113
12111
|
key: T,
|
|
12114
|
-
value:
|
|
12112
|
+
value: z,
|
|
12115
12113
|
color: "primary",
|
|
12116
|
-
active: a.currentTime ===
|
|
12114
|
+
active: a.currentTime === z,
|
|
12117
12115
|
rounded: "",
|
|
12118
12116
|
height: "26",
|
|
12119
12117
|
"min-height": "26"
|
|
@@ -12121,10 +12119,10 @@ function nm(t, e, o, i, a, r) {
|
|
|
12121
12119
|
default: u(() => [
|
|
12122
12120
|
p(c, {
|
|
12123
12121
|
class: "text-body-2 font-weight-600 text-center",
|
|
12124
|
-
onClick: (B) => a.currentTime =
|
|
12122
|
+
onClick: (B) => a.currentTime = z
|
|
12125
12123
|
}, {
|
|
12126
12124
|
default: u(() => [
|
|
12127
|
-
K(n(
|
|
12125
|
+
K(n(z), 1)
|
|
12128
12126
|
]),
|
|
12129
12127
|
_: 2
|
|
12130
12128
|
}, 1032, ["onClick"])
|
|
@@ -12144,7 +12142,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12144
12142
|
style: { height: "50px" }
|
|
12145
12143
|
}, {
|
|
12146
12144
|
default: u(() => [
|
|
12147
|
-
p(
|
|
12145
|
+
p(x, {
|
|
12148
12146
|
size: "small",
|
|
12149
12147
|
variant: "tonal",
|
|
12150
12148
|
class: "text-none text-body-2",
|
|
@@ -12155,7 +12153,7 @@ function nm(t, e, o, i, a, r) {
|
|
|
12155
12153
|
]),
|
|
12156
12154
|
_: 1
|
|
12157
12155
|
}, 8, ["onClick"]),
|
|
12158
|
-
p(
|
|
12156
|
+
p(x, {
|
|
12159
12157
|
size: "small",
|
|
12160
12158
|
variant: "flat",
|
|
12161
12159
|
color: "primary",
|
|
@@ -12172,10 +12170,10 @@ function nm(t, e, o, i, a, r) {
|
|
|
12172
12170
|
})
|
|
12173
12171
|
]),
|
|
12174
12172
|
_: 1
|
|
12175
|
-
}, 8, ["style"])) :
|
|
12173
|
+
}, 8, ["style"])) : D("", !0)
|
|
12176
12174
|
], 512);
|
|
12177
12175
|
}
|
|
12178
|
-
const Mo = /* @__PURE__ */
|
|
12176
|
+
const Mo = /* @__PURE__ */ Z(om, [["render", nm]]);
|
|
12179
12177
|
const cm = {
|
|
12180
12178
|
name: "DateRangePicker",
|
|
12181
12179
|
props: {
|
|
@@ -12365,7 +12363,7 @@ const cm = {
|
|
|
12365
12363
|
ref: "idmGl4DatePicker"
|
|
12366
12364
|
}, hm = { class: "flex-1-1-0" }, dm = { class: "pa-0" };
|
|
12367
12365
|
function pm(t, e, o, i, a, r) {
|
|
12368
|
-
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"),
|
|
12366
|
+
const l = v("VIcon"), m = v("VDatePicker"), c = v("VCardText"), f = v("VDivider"), d = v("VBtn"), b = v("VCardActions"), x = v("VCard");
|
|
12369
12367
|
return g(), S("div", mm, [
|
|
12370
12368
|
s("div", {
|
|
12371
12369
|
style: ee({ height: o.height + "px", width: o.width + "px" }),
|
|
@@ -12378,9 +12376,9 @@ function pm(t, e, o, i, a, r) {
|
|
|
12378
12376
|
class: "text-h5",
|
|
12379
12377
|
icon: "mdi-close-circle text-label",
|
|
12380
12378
|
onClick: Se(r.handleClearDate, ["stop"])
|
|
12381
|
-
}, null, 8, ["onClick"])) :
|
|
12379
|
+
}, null, 8, ["onClick"])) : D("", !0)
|
|
12382
12380
|
], 4),
|
|
12383
|
-
a.showDatePicker ? (g(), A(
|
|
12381
|
+
a.showDatePicker ? (g(), A(x, {
|
|
12384
12382
|
key: 0,
|
|
12385
12383
|
class: "card-box d-flex flex-column border",
|
|
12386
12384
|
style: ee(r.getStyle)
|
|
@@ -12441,10 +12439,10 @@ function pm(t, e, o, i, a, r) {
|
|
|
12441
12439
|
})
|
|
12442
12440
|
]),
|
|
12443
12441
|
_: 1
|
|
12444
|
-
}, 8, ["style"])) :
|
|
12442
|
+
}, 8, ["style"])) : D("", !0)
|
|
12445
12443
|
], 512);
|
|
12446
12444
|
}
|
|
12447
|
-
const Ka = /* @__PURE__ */
|
|
12445
|
+
const Ka = /* @__PURE__ */ Z(cm, [["render", pm]]);
|
|
12448
12446
|
const um = {
|
|
12449
12447
|
name: "IdmPoint",
|
|
12450
12448
|
components: {
|
|
@@ -13482,10 +13480,10 @@ const um = {
|
|
|
13482
13480
|
}), this.loading = !1;
|
|
13483
13481
|
},
|
|
13484
13482
|
initTableData(t) {
|
|
13485
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
13483
|
+
var o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be;
|
|
13486
13484
|
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;
|
|
13487
13485
|
const e = ((l = To.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13488
|
-
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((
|
|
13486
|
+
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((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.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 = (w = e == null ? void 0 : e.weather) == null ? void 0 : w.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 = (R = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : R.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((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((se = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (ce = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((me = (ue = e == null ? void 0 : e.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((he = e == null ? void 0 : e.current) == null ? void 0 : he.speed, 1) ?? "-", this.currentHourData.currentDir = (O = e == null ? void 0 : e.current) == null ? void 0 : O.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((te = e == null ? void 0 : e.current) == null ? void 0 : te.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (be = e == null ? void 0 : e.weather) == null ? void 0 : be.url;
|
|
13489
13487
|
},
|
|
13490
13488
|
handleBind() {
|
|
13491
13489
|
var t, e;
|
|
@@ -13604,7 +13602,7 @@ const um = {
|
|
|
13604
13602
|
"aria-hidden": "true"
|
|
13605
13603
|
}, bh = ["xlink:href"];
|
|
13606
13604
|
function wh(t, e, o, i, a, r) {
|
|
13607
|
-
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"),
|
|
13605
|
+
const l = v("VBtn"), m = v("VTooltip"), c = v("VCardTitle"), f = v("VDivider"), d = v("VTextField"), b = v("VCol"), x = v("VRow"), k = v("DateTimePicker"), y = v("VBtnToggle"), z = v("VCardText"), T = v("VCardActions"), B = v("VForm"), I = v("VCard");
|
|
13608
13606
|
return g(), S("div", gm, [
|
|
13609
13607
|
s("div", {
|
|
13610
13608
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13614,8 +13612,8 @@ function wh(t, e, o, i, a, r) {
|
|
|
13614
13612
|
text: t.$t("spot.spotsMeteo"),
|
|
13615
13613
|
location: "left"
|
|
13616
13614
|
}, {
|
|
13617
|
-
activator: u(({ props:
|
|
13618
|
-
p(l, j(
|
|
13615
|
+
activator: u(({ props: w }) => [
|
|
13616
|
+
p(l, j(w, {
|
|
13619
13617
|
"min-width": "32",
|
|
13620
13618
|
width: "32",
|
|
13621
13619
|
height: "32",
|
|
@@ -13632,7 +13630,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13632
13630
|
_: 1
|
|
13633
13631
|
}, 8, ["text"])
|
|
13634
13632
|
], 4),
|
|
13635
|
-
a.showForm && !o.simple ? (g(), A(
|
|
13633
|
+
a.showForm && !o.simple ? (g(), A(I, {
|
|
13636
13634
|
key: 0,
|
|
13637
13635
|
class: "spot-form-card",
|
|
13638
13636
|
style: ee({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
@@ -13651,7 +13649,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13651
13649
|
onClick: r.handleCloseForm
|
|
13652
13650
|
}, {
|
|
13653
13651
|
default: u(() => e[9] || (e[9] = [
|
|
13654
|
-
s("i", { class: "iconfont icon-close text-
|
|
13652
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13655
13653
|
])),
|
|
13656
13654
|
_: 1,
|
|
13657
13655
|
__: [9]
|
|
@@ -13667,7 +13665,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13667
13665
|
onSubmit: Se(r.submitForm, ["prevent"])
|
|
13668
13666
|
}, {
|
|
13669
13667
|
default: u(() => [
|
|
13670
|
-
p(
|
|
13668
|
+
p(z, { class: "text-body-1 py-1" }, {
|
|
13671
13669
|
default: u(() => [
|
|
13672
13670
|
s("div", bm, [
|
|
13673
13671
|
(g(), S("svg", wm, [
|
|
@@ -13677,7 +13675,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13677
13675
|
])),
|
|
13678
13676
|
s("div", null, n(t.$t("spot.lng")), 1)
|
|
13679
13677
|
]),
|
|
13680
|
-
p(
|
|
13678
|
+
p(x, { class: "ma-0" }, {
|
|
13681
13679
|
default: u(() => [
|
|
13682
13680
|
p(b, {
|
|
13683
13681
|
cols: "4",
|
|
@@ -13686,7 +13684,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13686
13684
|
default: u(() => [
|
|
13687
13685
|
p(d, {
|
|
13688
13686
|
modelValue: a.form.lngDegree,
|
|
13689
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
13687
|
+
"onUpdate:modelValue": e[0] || (e[0] = (w) => a.form.lngDegree = w),
|
|
13690
13688
|
rules: a.formRules.lngDegree,
|
|
13691
13689
|
density: "compact",
|
|
13692
13690
|
variant: "outlined",
|
|
@@ -13706,7 +13704,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13706
13704
|
default: u(() => [
|
|
13707
13705
|
p(d, {
|
|
13708
13706
|
modelValue: a.form.lngMinute,
|
|
13709
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
13707
|
+
"onUpdate:modelValue": e[1] || (e[1] = (w) => a.form.lngMinute = w),
|
|
13710
13708
|
rules: a.formRules.lngMinute,
|
|
13711
13709
|
label: "",
|
|
13712
13710
|
density: "compact",
|
|
@@ -13733,7 +13731,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13733
13731
|
height: "32",
|
|
13734
13732
|
class: "text-body-1 btn-bg-1",
|
|
13735
13733
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13736
|
-
onClick: e[2] || (e[2] = (
|
|
13734
|
+
onClick: e[2] || (e[2] = (w) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
13737
13735
|
}, {
|
|
13738
13736
|
default: u(() => [
|
|
13739
13737
|
K(n(a.form.lngDirection), 1)
|
|
@@ -13754,7 +13752,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13754
13752
|
])),
|
|
13755
13753
|
s("div", null, n(t.$t("spot.lat")), 1)
|
|
13756
13754
|
]),
|
|
13757
|
-
p(
|
|
13755
|
+
p(x, { class: "ma-0" }, {
|
|
13758
13756
|
default: u(() => [
|
|
13759
13757
|
p(b, {
|
|
13760
13758
|
cols: "4",
|
|
@@ -13763,7 +13761,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13763
13761
|
default: u(() => [
|
|
13764
13762
|
p(d, {
|
|
13765
13763
|
modelValue: a.form.latDegree,
|
|
13766
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
13764
|
+
"onUpdate:modelValue": e[3] || (e[3] = (w) => a.form.latDegree = w),
|
|
13767
13765
|
rules: a.formRules.latDegree,
|
|
13768
13766
|
label: "",
|
|
13769
13767
|
density: "compact",
|
|
@@ -13786,7 +13784,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13786
13784
|
default: u(() => [
|
|
13787
13785
|
p(d, {
|
|
13788
13786
|
modelValue: a.form.latMinute,
|
|
13789
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
13787
|
+
"onUpdate:modelValue": e[4] || (e[4] = (w) => a.form.latMinute = w),
|
|
13790
13788
|
rules: a.formRules.latMinute,
|
|
13791
13789
|
label: "",
|
|
13792
13790
|
density: "compact",
|
|
@@ -13813,7 +13811,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13813
13811
|
height: "32",
|
|
13814
13812
|
class: "text-body-1 btn-bg-1",
|
|
13815
13813
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
13816
|
-
onClick: e[5] || (e[5] = (
|
|
13814
|
+
onClick: e[5] || (e[5] = (w) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
13817
13815
|
}, {
|
|
13818
13816
|
default: u(() => [
|
|
13819
13817
|
K(n(a.form.latDirection), 1)
|
|
@@ -13834,7 +13832,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13834
13832
|
])),
|
|
13835
13833
|
s("div", null, n(t.$t("spot.dateTime")), 1)
|
|
13836
13834
|
]),
|
|
13837
|
-
p(
|
|
13835
|
+
p(x, { class: "ma-0 mb-4" }, {
|
|
13838
13836
|
default: u(() => [
|
|
13839
13837
|
p(b, {
|
|
13840
13838
|
cols: "12",
|
|
@@ -13845,7 +13843,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13845
13843
|
"date-time": a.form.dateTime,
|
|
13846
13844
|
"time-zone": o.timeZone
|
|
13847
13845
|
}, t.$attrs, {
|
|
13848
|
-
onDateTime: e[6] || (e[6] = (
|
|
13846
|
+
onDateTime: e[6] || (e[6] = (w) => a.form.dateTime = w)
|
|
13849
13847
|
}), null, 16, ["date-time", "time-zone"])
|
|
13850
13848
|
]),
|
|
13851
13849
|
_: 1
|
|
@@ -13861,7 +13859,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13861
13859
|
])),
|
|
13862
13860
|
s("div", null, n(t.$t("weather.forecastModel")), 1)
|
|
13863
13861
|
]),
|
|
13864
|
-
p(
|
|
13862
|
+
p(x, { class: "ma-0 mb-2" }, {
|
|
13865
13863
|
default: u(() => [
|
|
13866
13864
|
p(b, {
|
|
13867
13865
|
cols: "12",
|
|
@@ -13870,7 +13868,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13870
13868
|
default: u(() => [
|
|
13871
13869
|
p(y, {
|
|
13872
13870
|
modelValue: a.form.forecastModel,
|
|
13873
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
13871
|
+
"onUpdate:modelValue": e[7] || (e[7] = (w) => a.form.forecastModel = w),
|
|
13874
13872
|
class: "w-100",
|
|
13875
13873
|
rounded: "",
|
|
13876
13874
|
height: "30",
|
|
@@ -13954,8 +13952,8 @@ function wh(t, e, o, i, a, r) {
|
|
|
13954
13952
|
}, 8, ["onSubmit"])
|
|
13955
13953
|
]),
|
|
13956
13954
|
_: 1
|
|
13957
|
-
}, 8, ["style"])) :
|
|
13958
|
-
a.showMeteo ? (g(), A(
|
|
13955
|
+
}, 8, ["style"])) : D("", !0),
|
|
13956
|
+
a.showMeteo ? (g(), A(I, {
|
|
13959
13957
|
key: 1,
|
|
13960
13958
|
id: "idm-gl4-spot-meteo",
|
|
13961
13959
|
class: "spot-meteo",
|
|
@@ -13976,7 +13974,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
13976
13974
|
onClick: Se(r.handleCloseMeteo, ["stop"])
|
|
13977
13975
|
}, {
|
|
13978
13976
|
default: u(() => e[17] || (e[17] = [
|
|
13979
|
-
s("i", { class: "iconfont icon-close text-
|
|
13977
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13980
13978
|
])),
|
|
13981
13979
|
_: 1,
|
|
13982
13980
|
__: [17]
|
|
@@ -13985,13 +13983,13 @@ function wh(t, e, o, i, a, r) {
|
|
|
13985
13983
|
_: 1
|
|
13986
13984
|
}),
|
|
13987
13985
|
p(f),
|
|
13988
|
-
p(
|
|
13986
|
+
p(z, { class: "text-body-1 px-0 py-1" }, {
|
|
13989
13987
|
default: u(() => {
|
|
13990
|
-
var
|
|
13988
|
+
var w, L;
|
|
13991
13989
|
return [
|
|
13992
13990
|
s("div", Im, [
|
|
13993
13991
|
s("div", Rm, n(t.$t("time.time")), 1),
|
|
13994
|
-
s("div", Am, n(r.computedTzTime((
|
|
13992
|
+
s("div", Am, n(r.computedTzTime((w = a.currentHourData) == null ? void 0 : w.utc)), 1)
|
|
13995
13993
|
]),
|
|
13996
13994
|
s("div", Om, [
|
|
13997
13995
|
e[18] || (e[18] = s("div", {
|
|
@@ -14025,9 +14023,9 @@ function wh(t, e, o, i, a, r) {
|
|
|
14025
14023
|
p(f),
|
|
14026
14024
|
p(T, { class: "d-flex justify-space-between align-center" }, {
|
|
14027
14025
|
default: u(() => {
|
|
14028
|
-
var
|
|
14026
|
+
var w;
|
|
14029
14027
|
return [
|
|
14030
|
-
(
|
|
14028
|
+
(w = o.followList) != null && w.some((L) => {
|
|
14031
14029
|
var P, C;
|
|
14032
14030
|
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;
|
|
14033
14031
|
}) ? (g(), A(l, {
|
|
@@ -14037,7 +14035,6 @@ function wh(t, e, o, i, a, r) {
|
|
|
14037
14035
|
variant: "text",
|
|
14038
14036
|
density: "compact",
|
|
14039
14037
|
height: "32",
|
|
14040
|
-
"prepend-icon": "mdi-star",
|
|
14041
14038
|
onClick: Se(r.handleCancelFollow, ["stop"])
|
|
14042
14039
|
}, {
|
|
14043
14040
|
prepend: u(() => e[19] || (e[19] = [
|
|
@@ -14083,8 +14080,8 @@ function wh(t, e, o, i, a, r) {
|
|
|
14083
14080
|
})
|
|
14084
14081
|
]),
|
|
14085
14082
|
_: 1
|
|
14086
|
-
})) :
|
|
14087
|
-
a.showMeteo && o.simple ? (g(), A(
|
|
14083
|
+
})) : D("", !0),
|
|
14084
|
+
a.showMeteo && o.simple ? (g(), A(I, {
|
|
14088
14085
|
key: 2,
|
|
14089
14086
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
14090
14087
|
style: { width: "100vw", "z-index": "1001" }
|
|
@@ -14092,7 +14089,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14092
14089
|
default: u(() => [
|
|
14093
14090
|
p(c, null, {
|
|
14094
14091
|
default: u(() => {
|
|
14095
|
-
var
|
|
14092
|
+
var w;
|
|
14096
14093
|
return [
|
|
14097
14094
|
s("div", Qm, [
|
|
14098
14095
|
s("div", $m, [
|
|
@@ -14100,7 +14097,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14100
14097
|
s("div", eh, n(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14101
14098
|
]),
|
|
14102
14099
|
s("div", th, [
|
|
14103
|
-
(
|
|
14100
|
+
(w = o.followList) != null && w.some((L) => {
|
|
14104
14101
|
var P, C;
|
|
14105
14102
|
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;
|
|
14106
14103
|
}) ? (g(), A(l, {
|
|
@@ -14142,7 +14139,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14142
14139
|
onClick: Se(r.handleCloseMeteo, ["stop"])
|
|
14143
14140
|
}, {
|
|
14144
14141
|
default: u(() => e[24] || (e[24] = [
|
|
14145
|
-
s("i", { class: "iconfont icon-close text-
|
|
14142
|
+
s("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
14146
14143
|
])),
|
|
14147
14144
|
_: 1,
|
|
14148
14145
|
__: [24]
|
|
@@ -14156,13 +14153,13 @@ function wh(t, e, o, i, a, r) {
|
|
|
14156
14153
|
__: [25]
|
|
14157
14154
|
}),
|
|
14158
14155
|
p(f),
|
|
14159
|
-
p(
|
|
14156
|
+
p(z, { class: "text-body-1 px-0 py-2" }, {
|
|
14160
14157
|
default: u(() => {
|
|
14161
|
-
var
|
|
14158
|
+
var w, L;
|
|
14162
14159
|
return [
|
|
14163
14160
|
s("div", oh, [
|
|
14164
14161
|
s("div", ah, n(t.$t("time.time")), 1),
|
|
14165
|
-
s("div", ih, n(r.computedTzTime((
|
|
14162
|
+
s("div", ih, n(r.computedTzTime((w = a.currentHourData) == null ? void 0 : w.utc)), 1)
|
|
14166
14163
|
]),
|
|
14167
14164
|
s("div", rh, [
|
|
14168
14165
|
e[26] || (e[26] = s("div", {
|
|
@@ -14207,7 +14204,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14207
14204
|
})
|
|
14208
14205
|
]),
|
|
14209
14206
|
_: 1
|
|
14210
|
-
})) :
|
|
14207
|
+
})) : D("", !0),
|
|
14211
14208
|
Ye(s("div", fh, [
|
|
14212
14209
|
(g(), S("svg", yh, [
|
|
14213
14210
|
s("use", {
|
|
@@ -14219,7 +14216,7 @@ function wh(t, e, o, i, a, r) {
|
|
|
14219
14216
|
])
|
|
14220
14217
|
]);
|
|
14221
14218
|
}
|
|
14222
|
-
const xh = /* @__PURE__ */
|
|
14219
|
+
const xh = /* @__PURE__ */ Z(um, [["render", wh]]);
|
|
14223
14220
|
const vh = {
|
|
14224
14221
|
name: "IdmMeasure",
|
|
14225
14222
|
props: {
|
|
@@ -14284,7 +14281,7 @@ const vh = {
|
|
|
14284
14281
|
else {
|
|
14285
14282
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
|
|
14286
14283
|
let i = this.geojson.find((a) => !a.closed);
|
|
14287
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
14284
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = G.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
14288
14285
|
}
|
|
14289
14286
|
},
|
|
14290
14287
|
immediate: !0
|
|
@@ -14321,24 +14318,24 @@ const vh = {
|
|
|
14321
14318
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14322
14319
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14323
14320
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14324
|
-
const
|
|
14325
|
-
this.pointMarkers[
|
|
14321
|
+
const x = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
14322
|
+
this.pointMarkers[x.id].filter((T) => {
|
|
14326
14323
|
var B;
|
|
14327
14324
|
return ((B = T._element) == null ? void 0 : B.id) === e;
|
|
14328
14325
|
})[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]);
|
|
14329
14326
|
let y;
|
|
14330
|
-
|
|
14327
|
+
x.features.forEach((T, B) => {
|
|
14331
14328
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
14332
14329
|
y = B;
|
|
14333
14330
|
return;
|
|
14334
14331
|
}
|
|
14335
14332
|
});
|
|
14336
|
-
const
|
|
14333
|
+
const z = x.features.filter((T) => T.geometry.type === "Point");
|
|
14337
14334
|
this.handleTmpPointUpdate(
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
{ 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:
|
|
14341
|
-
y ===
|
|
14335
|
+
x,
|
|
14336
|
+
z[y - 1],
|
|
14337
|
+
{ 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 },
|
|
14338
|
+
y === z.length - 1 ? void 0 : z[y + 1]
|
|
14342
14339
|
);
|
|
14343
14340
|
}
|
|
14344
14341
|
},
|
|
@@ -14346,13 +14343,13 @@ const vh = {
|
|
|
14346
14343
|
var o, i, a, r, l, m, c, f, d, b;
|
|
14347
14344
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
14348
14345
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
14349
|
-
const
|
|
14350
|
-
this.pointMarkers[
|
|
14346
|
+
const x = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
|
|
14347
|
+
this.pointMarkers[x.id].filter((z) => {
|
|
14351
14348
|
var T;
|
|
14352
|
-
return ((T =
|
|
14349
|
+
return ((T = z._element) == null ? void 0 : T.id) === e;
|
|
14353
14350
|
})[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]);
|
|
14354
|
-
const y =
|
|
14355
|
-
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],
|
|
14351
|
+
const y = x.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
|
|
14352
|
+
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], x.features = x.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(x);
|
|
14356
14353
|
}
|
|
14357
14354
|
},
|
|
14358
14355
|
handleContextmenu(t) {
|
|
@@ -14379,8 +14376,8 @@ const vh = {
|
|
|
14379
14376
|
f.features = f.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== c[1]), this.handlePointUpdate(f);
|
|
14380
14377
|
} else if (e !== "marker-label" && this.toggle) {
|
|
14381
14378
|
let c = this.geojson.at(-1);
|
|
14382
|
-
c || (c =
|
|
14383
|
-
const f =
|
|
14379
|
+
c || (c = G.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((d) => d.geometry.type === "Point");
|
|
14380
|
+
const f = G.feature(
|
|
14384
14381
|
{
|
|
14385
14382
|
type: "Point",
|
|
14386
14383
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -14402,9 +14399,9 @@ const vh = {
|
|
|
14402
14399
|
for (let a = 1; a < e.length; a++) {
|
|
14403
14400
|
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);
|
|
14404
14401
|
o = q.roundPrecision(o + d, 4);
|
|
14405
|
-
let
|
|
14406
|
-
m.mode === "RL" ?
|
|
14407
|
-
const k =
|
|
14402
|
+
let x;
|
|
14403
|
+
m.mode === "RL" ? x = q.convertToMonotonicLng([c, f]) : x = q.convertToMonotonicLng(Ve.interpolateCoordinates(c, f, 200));
|
|
14404
|
+
const k = G.lineString(x.map((z) => [z.lng, z.lat]));
|
|
14408
14405
|
k.properties.dist = d, k.properties.bearing = b, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
|
|
14409
14406
|
const y = e[a];
|
|
14410
14407
|
y.properties.totalDist = q.roundPrecision((m.totalDist ? m.totalDist : 0) + d, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
|
|
@@ -14414,23 +14411,23 @@ const vh = {
|
|
|
14414
14411
|
return this.handleRender(t), t;
|
|
14415
14412
|
},
|
|
14416
14413
|
handleTmpPointUpdate(t, e, o, i) {
|
|
14417
|
-
const a =
|
|
14414
|
+
const a = G.featureCollection([]);
|
|
14418
14415
|
let r, l;
|
|
14419
14416
|
if (e) {
|
|
14420
14417
|
const c = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: o.lng, lat: o.lat };
|
|
14421
14418
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14422
14419
|
let b;
|
|
14423
14420
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14424
|
-
const
|
|
14425
|
-
|
|
14421
|
+
const x = G.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14422
|
+
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
14426
14423
|
}
|
|
14427
14424
|
if (i) {
|
|
14428
14425
|
const c = o.properties, f = o, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
14429
14426
|
r = Ve.calculateDistance(f, d, c.mode === "RL", 4), l = Ve.calculateBearing(f, d, c.mode === "RL", 2);
|
|
14430
14427
|
let b;
|
|
14431
14428
|
c.mode === "RL" ? b = q.convertToMonotonicLng([f, d]) : b = q.convertToMonotonicLng(Ve.interpolateCoordinates(f, d, 200));
|
|
14432
|
-
const
|
|
14433
|
-
|
|
14429
|
+
const x = G.lineString(b.map((k) => [k.lng, k.lat]));
|
|
14430
|
+
x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
|
|
14434
14431
|
}
|
|
14435
14432
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
14436
14433
|
type: "geojson",
|
|
@@ -14491,14 +14488,14 @@ const vh = {
|
|
|
14491
14488
|
handleMove(t) {
|
|
14492
14489
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
14493
14490
|
let e = this.geojson.at(-1);
|
|
14494
|
-
e || (e =
|
|
14491
|
+
e || (e = G.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
14495
14492
|
const o = e.features.filter((i) => i.geometry.type === "Point");
|
|
14496
14493
|
o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
14497
14494
|
},
|
|
14498
14495
|
handleDblClick(t) {
|
|
14499
14496
|
t.preventDefault();
|
|
14500
14497
|
let e = this.geojson.at(-1);
|
|
14501
|
-
e.closed = !0, this.handleRender(e), e =
|
|
14498
|
+
e.closed = !0, this.handleRender(e), e = G.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
14502
14499
|
},
|
|
14503
14500
|
handleRender(t) {
|
|
14504
14501
|
var e;
|
|
@@ -14571,11 +14568,11 @@ const vh = {
|
|
|
14571
14568
|
}
|
|
14572
14569
|
},
|
|
14573
14570
|
handleClear(t, e = !0) {
|
|
14574
|
-
var l, m, c, f, d, b,
|
|
14571
|
+
var l, m, c, f, d, b, x, k, y, z;
|
|
14575
14572
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
14576
|
-
(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, (
|
|
14573
|
+
(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, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
|
|
14577
14574
|
T == null || T.remove();
|
|
14578
|
-
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(o)) && this.map.removeSource(o), e && ((
|
|
14575
|
+
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.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);
|
|
14579
14576
|
}
|
|
14580
14577
|
}
|
|
14581
14578
|
}, _h = { class: "idm-gl4-measure" };
|
|
@@ -14610,7 +14607,7 @@ function kh(t, e, o, i, a, r) {
|
|
|
14610
14607
|
], 4)
|
|
14611
14608
|
]);
|
|
14612
14609
|
}
|
|
14613
|
-
const zh = /* @__PURE__ */
|
|
14610
|
+
const zh = /* @__PURE__ */ Z(vh, [["render", kh]]);
|
|
14614
14611
|
const Lh = {
|
|
14615
14612
|
name: "IdmBottomBar",
|
|
14616
14613
|
components: { DateTimePicker: Mo },
|
|
@@ -14741,7 +14738,7 @@ const Lh = {
|
|
|
14741
14738
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
14742
14739
|
}, Ih = ["onClick"], Rh = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ah = { class: "text-body-1" };
|
|
14743
14740
|
function Oh(t, e, o, i, a, r) {
|
|
14744
|
-
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"),
|
|
14741
|
+
const l = v("DateTimePicker"), m = v("VListItemTitle"), c = v("VListItem"), f = v("VList"), d = v("VMenu"), b = v("VBtn"), x = v("VDivider"), k = v("VTooltip");
|
|
14745
14742
|
return g(), S("div", Ph, [
|
|
14746
14743
|
s("div", {
|
|
14747
14744
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -14772,8 +14769,8 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14772
14769
|
default: u(() => [
|
|
14773
14770
|
p(f, { class: "pa-1" }, {
|
|
14774
14771
|
default: u(() => [
|
|
14775
|
-
(g(!0), S(xe, null, ke(a.intervalOptions, (y,
|
|
14776
|
-
key:
|
|
14772
|
+
(g(!0), S(xe, null, ke(a.intervalOptions, (y, z) => (g(), A(c, {
|
|
14773
|
+
key: z,
|
|
14777
14774
|
value: y,
|
|
14778
14775
|
variant: a.intervalHour === y ? "tonal" : "text",
|
|
14779
14776
|
color: "primary",
|
|
@@ -14806,7 +14803,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14806
14803
|
_: 1
|
|
14807
14804
|
})
|
|
14808
14805
|
]),
|
|
14809
|
-
p(
|
|
14806
|
+
p(x, {
|
|
14810
14807
|
vertical: "",
|
|
14811
14808
|
class: "mx-2 my-3",
|
|
14812
14809
|
style: { height: "16px" }
|
|
@@ -14879,7 +14876,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14879
14876
|
__: [14]
|
|
14880
14877
|
}, 8, ["onClick"])
|
|
14881
14878
|
]),
|
|
14882
|
-
p(
|
|
14879
|
+
p(x, {
|
|
14883
14880
|
vertical: "",
|
|
14884
14881
|
class: "mx-2 my-3",
|
|
14885
14882
|
style: { height: "16px" }
|
|
@@ -14890,11 +14887,11 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14890
14887
|
location: "top"
|
|
14891
14888
|
}, {
|
|
14892
14889
|
activator: u(({ props: y }) => {
|
|
14893
|
-
var
|
|
14890
|
+
var z, T;
|
|
14894
14891
|
return [
|
|
14895
14892
|
p(b, j(y, {
|
|
14896
14893
|
class: "pa-1 d-flex",
|
|
14897
|
-
color: (
|
|
14894
|
+
color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
|
|
14898
14895
|
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
14899
14896
|
height: "24",
|
|
14900
14897
|
width: "24",
|
|
@@ -14916,11 +14913,11 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14916
14913
|
location: "top"
|
|
14917
14914
|
}, {
|
|
14918
14915
|
activator: u(({ props: y }) => {
|
|
14919
|
-
var
|
|
14916
|
+
var z, T;
|
|
14920
14917
|
return [
|
|
14921
14918
|
p(b, j(y, {
|
|
14922
14919
|
class: "pa-1 d-flex",
|
|
14923
|
-
color: (
|
|
14920
|
+
color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
|
|
14924
14921
|
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
14925
14922
|
height: "24",
|
|
14926
14923
|
width: "24",
|
|
@@ -14941,11 +14938,11 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14941
14938
|
location: "top"
|
|
14942
14939
|
}, {
|
|
14943
14940
|
activator: u(({ props: y }) => {
|
|
14944
|
-
var
|
|
14941
|
+
var z, T;
|
|
14945
14942
|
return [
|
|
14946
14943
|
p(b, j(y, {
|
|
14947
14944
|
class: "pa-1 d-flex",
|
|
14948
|
-
color: (
|
|
14945
|
+
color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
|
|
14949
14946
|
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
14950
14947
|
height: "24",
|
|
14951
14948
|
width: "24",
|
|
@@ -14983,7 +14980,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
14983
14980
|
_: 1
|
|
14984
14981
|
}, 8, ["text"])
|
|
14985
14982
|
]),
|
|
14986
|
-
p(
|
|
14983
|
+
p(x, {
|
|
14987
14984
|
vertical: "",
|
|
14988
14985
|
class: "mx-2 mr-3 my-3",
|
|
14989
14986
|
style: { height: "16px" }
|
|
@@ -15025,9 +15022,9 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15025
15022
|
(g(!0), S(xe, null, ke(a.offsets, (y) => (g(), S("div", {
|
|
15026
15023
|
key: y,
|
|
15027
15024
|
class: "item rounded text-body-2 hover-active",
|
|
15028
|
-
onClick: (
|
|
15025
|
+
onClick: (z) => a.timeZone = y
|
|
15029
15026
|
}, n(y < 0 ? y : "+" + y), 9, Ih))), 128))
|
|
15030
|
-
])) :
|
|
15027
|
+
])) : D("", !0),
|
|
15031
15028
|
s("div", Rh, [
|
|
15032
15029
|
p(b, {
|
|
15033
15030
|
text: "",
|
|
@@ -15047,7 +15044,7 @@ function Oh(t, e, o, i, a, r) {
|
|
|
15047
15044
|
], 4)
|
|
15048
15045
|
]);
|
|
15049
15046
|
}
|
|
15050
|
-
const Bh = /* @__PURE__ */
|
|
15047
|
+
const Bh = /* @__PURE__ */ Z(Lh, [["render", Oh]]);
|
|
15051
15048
|
const jh = {
|
|
15052
15049
|
name: "IdmTimePlayer",
|
|
15053
15050
|
components: { DateTimePicker: Mo },
|
|
@@ -15255,7 +15252,7 @@ function Nh(t, e, o, i, a, r) {
|
|
|
15255
15252
|
])
|
|
15256
15253
|
], 4);
|
|
15257
15254
|
}
|
|
15258
|
-
const Ja = /* @__PURE__ */
|
|
15255
|
+
const Ja = /* @__PURE__ */ Z(jh, [["render", Nh]]), Fh = {
|
|
15259
15256
|
name: "IdmGL4",
|
|
15260
15257
|
components: {
|
|
15261
15258
|
IdmOtherLayer: pl,
|
|
@@ -15324,7 +15321,7 @@ const Ja = /* @__PURE__ */ X(jh, [["render", Nh]]), Fh = {
|
|
|
15324
15321
|
class: "map-gl4-home"
|
|
15325
15322
|
};
|
|
15326
15323
|
function Gh(t, e, o, i, a, r) {
|
|
15327
|
-
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"),
|
|
15324
|
+
const l = v("IdmOtherLayer"), m = v("IdmWeatherLayer"), c = v("IdmTropicals"), f = v("IdmMeasure"), d = v("IdmSpot"), b = v("IdmBottomBar"), x = v("IdmTimePlayer");
|
|
15328
15325
|
return g(), S("div", Hh, [
|
|
15329
15326
|
p(l, j({
|
|
15330
15327
|
ref: "idmOtherLayers",
|
|
@@ -15388,32 +15385,32 @@ function Gh(t, e, o, i, a, r) {
|
|
|
15388
15385
|
"forecast-model": o.forecastModel,
|
|
15389
15386
|
"map-feather": o.mapFeather
|
|
15390
15387
|
}, t.$attrs), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
15391
|
-
o.simple ?
|
|
15388
|
+
o.simple ? D("", !0) : (g(), A(b, j({
|
|
15392
15389
|
key: 0,
|
|
15393
15390
|
ref: "idmBottomBar",
|
|
15394
15391
|
"forecast-model": o.forecastModel,
|
|
15395
15392
|
"weather-check-list": a.weatherCheckList,
|
|
15396
15393
|
"map-feather": o.mapFeather
|
|
15397
15394
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])),
|
|
15398
|
-
o.simple ? (g(), A(
|
|
15395
|
+
o.simple ? (g(), A(x, j({
|
|
15399
15396
|
key: 1,
|
|
15400
15397
|
ref: "idmBottomBar",
|
|
15401
15398
|
"weather-check-list": a.weatherCheckList,
|
|
15402
15399
|
"map-feather": o.mapFeather,
|
|
15403
15400
|
playerBottom: 30
|
|
15404
|
-
}, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) :
|
|
15401
|
+
}, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) : D("", !0)
|
|
15405
15402
|
], 512);
|
|
15406
15403
|
}
|
|
15407
|
-
const Wh = /* @__PURE__ */
|
|
15404
|
+
const Wh = /* @__PURE__ */ Z(Fh, [["render", Gh]]);
|
|
15408
15405
|
class Uh {
|
|
15409
15406
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
var o, i, a, r, l, m, c, f, d, b,
|
|
15407
|
+
de(this, "originStyle");
|
|
15408
|
+
de(this, "mapboxStyle");
|
|
15409
|
+
de(this, "i4");
|
|
15410
|
+
de(this, "hi");
|
|
15411
|
+
de(this, "td");
|
|
15412
|
+
de(this, "windy");
|
|
15413
|
+
var o, i, a, r, l, m, c, f, d, b, x, k, y, z, T, B, I, w, L, P, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be, ve, Pe, Te, _e, Ie, Ce, H, oe, He, Oe, fe, Re, W, ye, ae, re, je, Ge, We, E, we, Be, Ee, Ne, N, Ue, U, Xe, qe, Ke, Le, Je, Qe, $e, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, Dt, It, Rt, At, Ot, Bt, jt, Et, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Ao, Oo, Bo, jo, Eo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Jo, Qo, $o, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ta, Ca, Sa, Ma, Da, Ia, Ra, Aa, Oa, Ba, ja, Ea, Na, Fa, Ha, Ga, Wa, Ua;
|
|
15417
15414
|
this.i4 = {
|
|
15418
15415
|
source: {
|
|
15419
15416
|
type: "raster",
|
|
@@ -34059,20 +34056,20 @@ class Uh {
|
|
|
34059
34056
|
(m = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : m.find((h) => h.id === "ice-area-fill"),
|
|
34060
34057
|
(f = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : f.find((h) => h.id === "ice-area-line"),
|
|
34061
34058
|
(b = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : b.find((h) => h.id === "loadlines-label"),
|
|
34062
|
-
(k = (
|
|
34063
|
-
(
|
|
34059
|
+
(k = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : k.find((h) => h.id === "loadlines-fill"),
|
|
34060
|
+
(z = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-0"),
|
|
34064
34061
|
(B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((h) => h.id === "empty-layer-1"),
|
|
34065
|
-
(
|
|
34062
|
+
(w = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : w.find((h) => h.id === "country-boundaries"),
|
|
34066
34063
|
(P = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : P.find((h) => h.id === "water-outline"),
|
|
34067
|
-
(
|
|
34068
|
-
(F = (
|
|
34069
|
-
(
|
|
34070
|
-
(Q = (
|
|
34064
|
+
(_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((h) => h.id === "water-outline2"),
|
|
34065
|
+
(F = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : F.find((h) => h.id === "empty-layer-2"),
|
|
34066
|
+
(X = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : X.find((h) => h.id === "water-line-label"),
|
|
34067
|
+
(Q = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : Q.find((h) => h.id === "water-point-label"),
|
|
34071
34068
|
(J = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : J.find((h) => h.id === "world-12nm-v4-20231025"),
|
|
34072
|
-
(
|
|
34073
|
-
(ie = (
|
|
34074
|
-
(ue = (
|
|
34075
|
-
(
|
|
34069
|
+
(le = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : le.find((h) => h.id === "ne-10m-outline"),
|
|
34070
|
+
(ie = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ie.find((h) => h.id === "ne-10m-label"),
|
|
34071
|
+
(ue = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : ue.find((h) => h.id === "china-route-line"),
|
|
34072
|
+
(he = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : he.find((h) => h.id === "china-route-fill"),
|
|
34076
34073
|
(te = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : te.find((h) => h.id === "china-route-label"),
|
|
34077
34074
|
(ve = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : ve.find((h) => h.id === "admin-0-boundary-bg"),
|
|
34078
34075
|
(Te = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Te.find((h) => h.id === "admin-0-boundary"),
|
|
@@ -34080,7 +34077,7 @@ class Uh {
|
|
|
34080
34077
|
(H = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : H.find((h) => h.id === "country-label"),
|
|
34081
34078
|
(He = (oe = this.originStyle) == null ? void 0 : oe.light.layers) == null ? void 0 : He.find((h) => h.id === "continent-label"),
|
|
34082
34079
|
(fe = (Oe = this.originStyle) == null ? void 0 : Oe.light.layers) == null ? void 0 : fe.find((h) => h.id === "tide-stations"),
|
|
34083
|
-
(
|
|
34080
|
+
(W = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : W.find((h) => h.id === "empty-layer-3"),
|
|
34084
34081
|
(ae = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : ae.find((h) => h.id === "empty-layer-4")
|
|
34085
34082
|
]
|
|
34086
34083
|
},
|
|
@@ -34109,7 +34106,7 @@ class Uh {
|
|
|
34109
34106
|
(Be = (we = this.originStyle) == null ? void 0 : we.dark.layers) == null ? void 0 : Be.find((h) => h.id === "land"),
|
|
34110
34107
|
(Ne = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ne.find((h) => h.id === "water"),
|
|
34111
34108
|
(Ue = (N = this.originStyle) == null ? void 0 : N.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "ice-area-fill"),
|
|
34112
|
-
(Xe = (
|
|
34109
|
+
(Xe = (U = this.originStyle) == null ? void 0 : U.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "ice-area-line"),
|
|
34113
34110
|
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "loadlines-label"),
|
|
34114
34111
|
(Je = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : Je.find((h) => h.id === "loadlines-fill"),
|
|
34115
34112
|
($e = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : $e.find((h) => h.id === "empty-layer-0"),
|
|
@@ -34417,8 +34414,8 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34417
34414
|
__: [0]
|
|
34418
34415
|
}, 8, ["onClick"])
|
|
34419
34416
|
])
|
|
34420
|
-
], 4)) :
|
|
34421
|
-
o.simple ?
|
|
34417
|
+
], 4)) : D("", !0),
|
|
34418
|
+
o.simple ? D("", !0) : (g(), S("div", {
|
|
34422
34419
|
key: 1,
|
|
34423
34420
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
34424
34421
|
style: ee({ top: o.top + 268 + "px", right: a.right + "px", height: "112px" })
|
|
@@ -34453,7 +34450,7 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34453
34450
|
}, 8, ["onClick"])
|
|
34454
34451
|
])
|
|
34455
34452
|
], 4)),
|
|
34456
|
-
o.simple ?
|
|
34453
|
+
o.simple ? D("", !0) : (g(), S("div", qh, [
|
|
34457
34454
|
e[3] || (e[3] = s("span", null, "© 2023", -1)),
|
|
34458
34455
|
s("span", null, "-" + n(r.computeYear), 1),
|
|
34459
34456
|
e[4] || (e[4] = s("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -34465,7 +34462,7 @@ function Kh(t, e, o, i, a, r) {
|
|
|
34465
34462
|
]))
|
|
34466
34463
|
], 4);
|
|
34467
34464
|
}
|
|
34468
|
-
const Jh = /* @__PURE__ */
|
|
34465
|
+
const Jh = /* @__PURE__ */ Z(Vh, [["render", Kh]]), cd = {
|
|
34469
34466
|
install(t) {
|
|
34470
34467
|
t.component("MapInitial", Jh), t.component("MapboxGL", Wh), t.component("TropicalGL", qa), t.component("LatLngGL", Xa), t.component("DateTimePicker", Mo), t.component("DateRangePicker", Ka), t.component("PortDetail", Do), t.component("TimePlayer", Ja);
|
|
34471
34468
|
}
|
|
@@ -34484,5 +34481,5 @@ export {
|
|
|
34484
34481
|
qa as TropicalGL,
|
|
34485
34482
|
Io as Viewport,
|
|
34486
34483
|
Fe as WebGL,
|
|
34487
|
-
|
|
34484
|
+
ne as WebGLSchema
|
|
34488
34485
|
};
|