@idmwx/idmui-gl4 2.0.3 → 2.0.5
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 +436 -436
- package/dist/index.umd.cjs +9 -9
- package/dist/mapbox/src/components/timePicker/timePicker.vue.d.ts +20 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ var Qo = (t, e, a) => e in t ? Jo(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var he = (t, e, a) => (Qo(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import De from "axios";
|
|
5
5
|
import { useTheme as Se } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as w, createBlock as O, withCtx as g, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as A, normalizeClass as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as w, createBlock as O, withCtx as g, createVNode as p, withModifiers as Oe, createElementVNode as l, createCommentVNode as A, normalizeClass as He, toDisplayString as m, createTextVNode as K, Fragment as we, renderList as _e, withDirectives as Ze, vShow as Ye, mergeProps as N, normalizeStyle as ee } from "vue";
|
|
7
7
|
import ke from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
|
-
import { LngLatHelper as X, TropicalHelper as Zo, LaneHelper as
|
|
10
|
-
import { Meteo2Assist as Pa, TidesAssist as
|
|
9
|
+
import { LngLatHelper as X, TropicalHelper as Zo, LaneHelper as Ve } from "@idm-plugin/geo";
|
|
10
|
+
import { Meteo2Assist as Pa, TidesAssist as Ca } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Sa from "echarts";
|
|
12
12
|
import * as U from "@turf/turf";
|
|
13
|
-
import { LayerHelper as
|
|
13
|
+
import { LayerHelper as Ta, CompanyHelper as ei } from "@idm-plugin/tag2";
|
|
14
14
|
import ti from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ai } from "@idm-plugin/tag";
|
|
16
16
|
const Y = (t, e) => {
|
|
@@ -1490,10 +1490,10 @@ const fi = {
|
|
|
1490
1490
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1491
1491
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1492
1492
|
], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
|
|
1493
|
-
var c, n, u, h, b, x, _, f, k, P, B, I,
|
|
1493
|
+
var c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le;
|
|
1494
1494
|
let r = {};
|
|
1495
1495
|
const s = ((c = Pa.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
1496
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = s == null ? void 0 : s.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = s == null ? void 0 : s.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (x = s == null ? void 0 : s.weather) == null ? void 0 : x.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (
|
|
1496
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = s == null ? void 0 : s.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = s == null ? void 0 : s.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (x = s == null ? void 0 : s.weather) == null ? void 0 : x.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (T = s == null ? void 0 : s.weather) == null ? void 0 : T.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (V = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (le = ($ = s == null ? void 0 : s.wave) == null ? void 0 : $.wd) == null ? void 0 : le.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ce = (ie = s == null ? void 0 : s.wave) == null ? void 0 : ie.swell) == null ? void 0 : ce.height, 1) ?? "-", r.swellDir = (me = (ue = s == null ? void 0 : s.wave) == null ? void 0 : ue.swell) == null ? void 0 : me.direction, r.swellPeriod = this.computeRoundPrecision((R = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.swell) == null ? void 0 : R.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((te = s == null ? void 0 : s.current) == null ? void 0 : te.speed, 1) ?? "-", r.currentDir = (ye = s == null ? void 0 : s.current) == null ? void 0 : ye.direction, r.currentSpeed = this.computeRoundPrecision((xe = s == null ? void 0 : s.current) == null ? void 0 : xe.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Le = s == null ? void 0 : s.weather) == null ? void 0 : Le.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
1499
|
handleTide() {
|
|
@@ -1526,7 +1526,7 @@ const fi = {
|
|
|
1526
1526
|
},
|
|
1527
1527
|
initTideTableData(t) {
|
|
1528
1528
|
var e, a;
|
|
1529
|
-
this.tideTableData =
|
|
1529
|
+
this.tideTableData = Ca.pickDailyExtremes(t, (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : a.dateTime), this.initEchartData();
|
|
1530
1530
|
},
|
|
1531
1531
|
initEchartData() {
|
|
1532
1532
|
var t;
|
|
@@ -1640,7 +1640,7 @@ const fi = {
|
|
|
1640
1640
|
}, _i = { class: "summary-box" }, ki = { class: "d-flex justify-space-between align-center py-2" }, zi = { class: "d-flex justify-center align-center text-h6 ga-2" }, Li = {
|
|
1641
1641
|
class: "multi-color-icon",
|
|
1642
1642
|
"aria-hidden": "true"
|
|
1643
|
-
}, Pi = ["xlink:href"],
|
|
1643
|
+
}, Pi = ["xlink:href"], Ti = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Ci = { class: "w-100 d-flex justify-start align-center" }, Si = { class: "w-30 text-label font-weight-400" }, Mi = { class: "flex-1-1-0" }, Ii = { class: "w-100 d-flex justify-start align-center" }, Di = { class: "w-30 text-label font-weight-400" }, Ai = { class: "flex-1-1-0" }, Ri = { class: "w-100 d-flex justify-start align-center" }, Oi = { class: "w-30 text-label font-weight-400" }, Bi = { class: "flex-1-1-0" }, Ni = { class: "table-box w-100 mt-2" }, Ei = { class: "w-100 d-flex justify-space-between align-center py-2" }, ji = { class: "d-flex justify-center align-center text-h6 ga-2" }, Fi = {
|
|
1644
1644
|
class: "multi-color-icon",
|
|
1645
1645
|
"aria-hidden": "true"
|
|
1646
1646
|
}, Hi = ["xlink:href"], Ui = { class: "w-100 gray-bg-2 rounded pa-4" }, Wi = {
|
|
@@ -1690,7 +1690,7 @@ function wr(t, e, a, i, o, r) {
|
|
|
1690
1690
|
l("div", yi, [
|
|
1691
1691
|
l("div", bi, [
|
|
1692
1692
|
l("div", {
|
|
1693
|
-
class:
|
|
1693
|
+
class: He(["fi mr-2 rounded elevation-4", `fi-${(f = a.port) != null && f.cntLoCode ? (P = (k = a.port) == null ? void 0 : k.cntLoCode) == null ? void 0 : P.toLowerCase() : "xx"}`]),
|
|
1694
1694
|
style: { width: "36px", height: "24px" }
|
|
1695
1695
|
}, null, 2),
|
|
1696
1696
|
l("div", null, m((B = a.port) == null ? void 0 : B.name), 1)
|
|
@@ -1781,8 +1781,8 @@ function wr(t, e, a, i, o, r) {
|
|
|
1781
1781
|
]),
|
|
1782
1782
|
e[4] || (e[4] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1783
1783
|
]),
|
|
1784
|
-
l("div",
|
|
1785
|
-
l("div",
|
|
1784
|
+
l("div", Ti, [
|
|
1785
|
+
l("div", Ci, [
|
|
1786
1786
|
l("div", Si, m(t.$t("port.region")), 1),
|
|
1787
1787
|
l("div", Mi, m(((x = a.port) == null ? void 0 : x.region) ?? ((_ = a.port) == null ? void 0 : _.city) ?? "-"), 1)
|
|
1788
1788
|
]),
|
|
@@ -2043,7 +2043,7 @@ const xr = {
|
|
|
2043
2043
|
function zr(t, e, a, i, o, r) {
|
|
2044
2044
|
const s = w("VCardText"), c = w("VCard"), n = w("PortDetail");
|
|
2045
2045
|
return y(), M("div", null, [
|
|
2046
|
-
|
|
2046
|
+
Ze(p(c, {
|
|
2047
2047
|
id: "idmPortInfo",
|
|
2048
2048
|
ref: "idmPortInfo"
|
|
2049
2049
|
}, {
|
|
@@ -2066,7 +2066,7 @@ function zr(t, e, a, i, o, r) {
|
|
|
2066
2066
|
]),
|
|
2067
2067
|
_: 1
|
|
2068
2068
|
}, 512), [
|
|
2069
|
-
[
|
|
2069
|
+
[Ye, o.showInfo]
|
|
2070
2070
|
]),
|
|
2071
2071
|
o.showDetail ? (y(), O(n, N({
|
|
2072
2072
|
key: 0,
|
|
@@ -2119,10 +2119,10 @@ const Lr = /* @__PURE__ */ Y(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3
|
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
};
|
|
2122
|
-
function
|
|
2122
|
+
function Tr(t, e, a, i, o, r) {
|
|
2123
2123
|
return y(), M("div");
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2125
|
+
const Cr = /* @__PURE__ */ Y(Pr, [["render", Tr]]), Sr = {
|
|
2126
2126
|
name: "IdmTimezone",
|
|
2127
2127
|
props: {
|
|
2128
2128
|
map: {
|
|
@@ -2812,7 +2812,7 @@ const Kr = {
|
|
|
2812
2812
|
currentIndex: {
|
|
2813
2813
|
handler() {
|
|
2814
2814
|
var t, e;
|
|
2815
|
-
this.initTideTableData(), this.initEchartData(
|
|
2815
|
+
this.initTideTableData(), this.initEchartData(Ca.pickDailyHeights(this.tideData, (e = (t = this.dateList) == null ? void 0 : t[this.currentIndex]) == null ? void 0 : e.dateTime));
|
|
2816
2816
|
}
|
|
2817
2817
|
},
|
|
2818
2818
|
station: {
|
|
@@ -2840,11 +2840,11 @@ const Kr = {
|
|
|
2840
2840
|
//
|
|
2841
2841
|
}
|
|
2842
2842
|
});
|
|
2843
|
-
((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) === 0 && (this.tideData = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.data) || {}, this.tideLoading = !1, this.initTideTableData(), this.initEchartData(
|
|
2843
|
+
((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) === 0 && (this.tideData = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.data) || {}, this.tideLoading = !1, this.initTideTableData(), this.initEchartData(Ca.pickDailyHeights(this.tideData, (c = (s = this.dateList) == null ? void 0 : s[this.currentIndex]) == null ? void 0 : c.dateTime)));
|
|
2844
2844
|
},
|
|
2845
2845
|
initTideTableData() {
|
|
2846
2846
|
var t, e;
|
|
2847
|
-
this.tideTableData =
|
|
2847
|
+
this.tideTableData = Ca.pickDailyExtremes(this.tideData, (e = (t = this.dateList) == null ? void 0 : t[this.currentIndex]) == null ? void 0 : e.dateTime);
|
|
2848
2848
|
},
|
|
2849
2849
|
initEchartData(t) {
|
|
2850
2850
|
this.xDate = [], this.echartData = {
|
|
@@ -2974,7 +2974,7 @@ const Kr = {
|
|
|
2974
2974
|
}, Pl = {
|
|
2975
2975
|
class: "px-1 text-center text-label font-weight-400",
|
|
2976
2976
|
width: "120"
|
|
2977
|
-
},
|
|
2977
|
+
}, Tl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" }, Sl = { class: "px-1 text-center" };
|
|
2978
2978
|
function Ml(t, e, a, i, o, r) {
|
|
2979
2979
|
const s = w("VBtn"), c = w("v-card-title"), n = w("v-divider"), u = w("VBtnToggle"), h = w("v-card");
|
|
2980
2980
|
return y(), O(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
@@ -3089,8 +3089,8 @@ function Ml(t, e, a, i, o, r) {
|
|
|
3089
3089
|
(y(!0), M(we, null, _e(o.tideTableData, (_, f) => {
|
|
3090
3090
|
var k;
|
|
3091
3091
|
return y(), M("tr", { key: f }, [
|
|
3092
|
-
l("td",
|
|
3093
|
-
l("td",
|
|
3092
|
+
l("td", Tl, m(t.$t(`tide.${(k = _ == null ? void 0 : _.type) == null ? void 0 : k.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3093
|
+
l("td", Cl, m(r.computeLocalTime(_ == null ? void 0 : _.date, a.station, "MM-DD HH:mm")), 1),
|
|
3094
3094
|
l("td", Sl, m((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
|
|
3095
3095
|
]);
|
|
3096
3096
|
}), 128))
|
|
@@ -3184,7 +3184,7 @@ const Dl = {
|
|
|
3184
3184
|
function Nl(t, e, a, i, o, r) {
|
|
3185
3185
|
const s = w("v-card-text"), c = w("v-card"), n = w("TideDetail");
|
|
3186
3186
|
return y(), M("div", null, [
|
|
3187
|
-
|
|
3187
|
+
Ze(p(c, { id: "idmTidalInfo" }, {
|
|
3188
3188
|
default: g(() => [
|
|
3189
3189
|
p(s, { class: "pr-8 text-body-1" }, {
|
|
3190
3190
|
default: g(() => {
|
|
@@ -3203,7 +3203,7 @@ function Nl(t, e, a, i, o, r) {
|
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 1
|
|
3205
3205
|
}, 512), [
|
|
3206
|
-
[
|
|
3206
|
+
[Ye, o.showInfo]
|
|
3207
3207
|
]),
|
|
3208
3208
|
o.showDetail ? (y(), O(n, N({
|
|
3209
3209
|
key: 0,
|
|
@@ -3430,7 +3430,7 @@ function Wl(t, e, a, i, o, r) {
|
|
|
3430
3430
|
return a.simple ? A("", !0) : (y(), M("div", {
|
|
3431
3431
|
key: 0,
|
|
3432
3432
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
3433
|
-
style:
|
|
3433
|
+
style: ee({ right: o.right + "px" })
|
|
3434
3434
|
}, [
|
|
3435
3435
|
l("div", null, m((s = o.lngLat) == null ? void 0 : s.lat), 1),
|
|
3436
3436
|
l("div", null, m((c = o.lngLat) == null ? void 0 : c.lng), 1),
|
|
@@ -4351,7 +4351,7 @@ const Gl = {
|
|
|
4351
4351
|
function ql(t, e, a, i, o, r) {
|
|
4352
4352
|
const s = w("v-card-text"), c = w("v-card"), n = w("PortDetail");
|
|
4353
4353
|
return y(), M("div", null, [
|
|
4354
|
-
|
|
4354
|
+
Ze(p(c, {
|
|
4355
4355
|
id: "idmFollowPortInfo",
|
|
4356
4356
|
ref: "idmFollowPortInfo"
|
|
4357
4357
|
}, {
|
|
@@ -4374,7 +4374,7 @@ function ql(t, e, a, i, o, r) {
|
|
|
4374
4374
|
]),
|
|
4375
4375
|
_: 1
|
|
4376
4376
|
}, 512), [
|
|
4377
|
-
[
|
|
4377
|
+
[Ye, o.showInfo]
|
|
4378
4378
|
]),
|
|
4379
4379
|
o.showDetail ? (y(), O(n, N({
|
|
4380
4380
|
key: 0,
|
|
@@ -5306,7 +5306,7 @@ const Kl = {
|
|
|
5306
5306
|
};
|
|
5307
5307
|
function es(t, e, a, i, o, r) {
|
|
5308
5308
|
const s = w("v-card-text"), c = w("v-card");
|
|
5309
|
-
return
|
|
5309
|
+
return Ze((y(), O(c, {
|
|
5310
5310
|
id: "idmFollowPositionInfo",
|
|
5311
5311
|
ref: "idmFollowPositionInfo"
|
|
5312
5312
|
}, {
|
|
@@ -5328,7 +5328,7 @@ function es(t, e, a, i, o, r) {
|
|
|
5328
5328
|
]),
|
|
5329
5329
|
_: 1
|
|
5330
5330
|
}, 512)), [
|
|
5331
|
-
[
|
|
5331
|
+
[Ye, o.showInfo]
|
|
5332
5332
|
]);
|
|
5333
5333
|
}
|
|
5334
5334
|
const ts = /* @__PURE__ */ Y(Kl, [["render", es], ["__scopeId", "data-v-1def8c73"]]);
|
|
@@ -5340,7 +5340,7 @@ const as = {
|
|
|
5340
5340
|
IdmEcaZone: di,
|
|
5341
5341
|
IdmAlertZone: gi,
|
|
5342
5342
|
IdmPort: Lr,
|
|
5343
|
-
IdmLoadLine:
|
|
5343
|
+
IdmLoadLine: Cr,
|
|
5344
5344
|
IdmTimezone: Ir,
|
|
5345
5345
|
IdmVRA: Rr,
|
|
5346
5346
|
IdmSpecialArea: Nr,
|
|
@@ -5414,7 +5414,7 @@ const as = {
|
|
|
5414
5414
|
right: 10,
|
|
5415
5415
|
toggle: !1,
|
|
5416
5416
|
mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
|
|
5417
|
-
tagLayers: [...
|
|
5417
|
+
tagLayers: [...Ta.OTHER_LAYERS.filter((t) => t.enabled)],
|
|
5418
5418
|
layerWeight: 0,
|
|
5419
5419
|
otherLayers: {},
|
|
5420
5420
|
activeOtherLayers: [],
|
|
@@ -5559,11 +5559,11 @@ const as = {
|
|
|
5559
5559
|
}, ps = { class: "text-body-2 text-center pt-1" };
|
|
5560
5560
|
function us(t, e, a, i, o, r) {
|
|
5561
5561
|
var $, le, se, pe, ie, ce, ue, me, de;
|
|
5562
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), _ = w("IdmLatLng"), f = w("IdmTerminator"), k = w("IdmTimezone"), P = w("IdmPort"), B = w("IdmAlertZone"), I = w("IdmTideStations"),
|
|
5562
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), _ = w("IdmLatLng"), f = w("IdmTerminator"), k = w("IdmTimezone"), P = w("IdmPort"), B = w("IdmAlertZone"), I = w("IdmTideStations"), T = w("IdmEcaZone"), z = w("IdmWarZone"), L = w("IdmGmdssArea"), C = w("IdmLoadLine"), v = w("IdmWorldMarine"), D = w("IdmVRA"), F = w("IdmSpecialArea"), V = w("IdmWorld12nm"), q = w("IdmChinaRoute"), Z = w("IdmIceAreas"), J = w("IdmFollowPort"), Q = w("IdmFollowPosition");
|
|
5563
5563
|
return y(), M("div", os, [
|
|
5564
5564
|
l("div", {
|
|
5565
5565
|
class: "menu-bar-box transition px-1 rounded",
|
|
5566
|
-
style:
|
|
5566
|
+
style: ee({ top: a.top + 10 + "px", right: o.right + "px", paddingTop: a.paddingTop + "px", height: a.menuHeight + "px" })
|
|
5567
5567
|
}, [
|
|
5568
5568
|
p(c, {
|
|
5569
5569
|
text: t.$t("layer.mapLayers"),
|
|
@@ -5588,8 +5588,8 @@ function us(t, e, a, i, o, r) {
|
|
|
5588
5588
|
}, 8, ["text"])
|
|
5589
5589
|
], 4),
|
|
5590
5590
|
l("div", {
|
|
5591
|
-
class:
|
|
5592
|
-
style:
|
|
5591
|
+
class: He(["available-layers transition", o.toggle ? "right-bar" : ""]),
|
|
5592
|
+
style: ee(r.listStyle)
|
|
5593
5593
|
}, [
|
|
5594
5594
|
l("div", is, [
|
|
5595
5595
|
l("div", rs, m(t.$t("layer.layers")), 1),
|
|
@@ -5633,10 +5633,10 @@ function us(t, e, a, i, o, r) {
|
|
|
5633
5633
|
(y(!0), M(we, null, _e(o.mapFeathers, (R) => (y(), M("div", {
|
|
5634
5634
|
key: R.value,
|
|
5635
5635
|
class: "mb-2 feather-item",
|
|
5636
|
-
onClick: (
|
|
5636
|
+
onClick: (te) => r.handleToggleMapFeather(R)
|
|
5637
5637
|
}, [
|
|
5638
5638
|
l("div", {
|
|
5639
|
-
class:
|
|
5639
|
+
class: He([o.mapFeather === R.value ? "active" : "", "img-box"])
|
|
5640
5640
|
}, [
|
|
5641
5641
|
R.value === "dark" ? (y(), M("img", cs)) : R.value === "nautical" ? (y(), M("img", ms)) : R.value === "satellite" ? (y(), M("img", ds)) : (y(), M("img", hs))
|
|
5642
5642
|
], 2),
|
|
@@ -5646,7 +5646,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5646
5646
|
(y(!0), M(we, null, _e(o.tagLayers.filter((R) => ["graticule", "day-night", "time-zones"].includes(R.key)), (R) => (y(), O(h, {
|
|
5647
5647
|
key: R.key,
|
|
5648
5648
|
modelValue: o.checkList,
|
|
5649
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
5649
|
+
"onUpdate:modelValue": e[0] || (e[0] = (te) => o.checkList = te),
|
|
5650
5650
|
value: R.key,
|
|
5651
5651
|
label: t.$t(`layer.${R.locale}`),
|
|
5652
5652
|
color: "primary",
|
|
@@ -5685,7 +5685,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5685
5685
|
(y(!0), M(we, null, _e(o.tagLayers.filter((R) => ["ports", "alert-zones", "tidal-stations"].includes(R.key)), (R) => (y(), O(h, {
|
|
5686
5686
|
key: R.key,
|
|
5687
5687
|
modelValue: o.checkList,
|
|
5688
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
5688
|
+
"onUpdate:modelValue": e[1] || (e[1] = (te) => o.checkList = te),
|
|
5689
5689
|
value: R.key,
|
|
5690
5690
|
label: t.$t(`layer.${R.locale}`),
|
|
5691
5691
|
color: "primary",
|
|
@@ -5724,7 +5724,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5724
5724
|
(y(!0), M(we, null, _e(o.tagLayers.filter((R) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(R.key)), (R) => (y(), O(h, {
|
|
5725
5725
|
key: R.key,
|
|
5726
5726
|
modelValue: o.checkList,
|
|
5727
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
5727
|
+
"onUpdate:modelValue": e[2] || (e[2] = (te) => o.checkList = te),
|
|
5728
5728
|
value: R.key,
|
|
5729
5729
|
label: t.$t(`layer.${R.locale}`),
|
|
5730
5730
|
color: "primary",
|
|
@@ -5839,7 +5839,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5839
5839
|
forecastModel: a.forecastModel,
|
|
5840
5840
|
"before-layer": "empty-layer-3"
|
|
5841
5841
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : A("", !0),
|
|
5842
|
-
a.map ? (y(), O(
|
|
5842
|
+
a.map ? (y(), O(T, N({
|
|
5843
5843
|
key: 6,
|
|
5844
5844
|
map: a.map,
|
|
5845
5845
|
zone: (ie = o.otherLayers) == null ? void 0 : ie["eca-zones"]
|
|
@@ -5854,7 +5854,7 @@ function us(t, e, a, i, o, r) {
|
|
|
5854
5854
|
map: a.map,
|
|
5855
5855
|
area: (ue = o.otherLayers) == null ? void 0 : ue["gmdss-areas"]
|
|
5856
5856
|
}, t.$attrs), null, 16, ["map", "area"])) : A("", !0),
|
|
5857
|
-
a.map ? (y(), O(
|
|
5857
|
+
a.map ? (y(), O(C, N({
|
|
5858
5858
|
key: 9,
|
|
5859
5859
|
map: a.map,
|
|
5860
5860
|
show: o.checkList.includes("load-lines")
|
|
@@ -6149,8 +6149,8 @@ class je {
|
|
|
6149
6149
|
h.resolution && a.uniform2f(h.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), h.image && a.uniform1i(h.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), h.color && a.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && a.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && a.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && a.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6150
6150
|
const b = e.getBoundPixel(), x = e.map.getZoom() + 1, _ = e.getWorldCopy(b, x);
|
|
6151
6151
|
for (const f of _) {
|
|
6152
|
-
const k = (f[0] - b[0]) * e.ratio, P = (f[1] - b[3]) * e.ratio, B = f[2] * e.ratio, [I,
|
|
6153
|
-
a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER,
|
|
6152
|
+
const k = (f[0] - b[0]) * e.ratio, P = (f[1] - b[3]) * e.ratio, B = f[2] * e.ratio, [I, T, z, L] = [k, B + k, P, B + P], C = new Float32Array([I, z, T, z, I, L, I, L, T, z, T, L]);
|
|
6153
|
+
a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, C, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
6154
6154
|
}
|
|
6155
6155
|
} catch (h) {
|
|
6156
6156
|
console.log(`render failed...${h}`);
|
|
@@ -6247,9 +6247,9 @@ he(ne, "fragmentSchema", `
|
|
|
6247
6247
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
6248
6248
|
gl_FragColor = color;
|
|
6249
6249
|
}`);
|
|
6250
|
-
class
|
|
6250
|
+
class Ce {
|
|
6251
6251
|
}
|
|
6252
|
-
he(
|
|
6252
|
+
he(Ce, "vertexSchema", `
|
|
6253
6253
|
precision mediump float;
|
|
6254
6254
|
|
|
6255
6255
|
attribute float a_index; // 索引
|
|
@@ -6273,7 +6273,7 @@ he(Te, "vertexSchema", `
|
|
|
6273
6273
|
gl_PointSize = 1.0;
|
|
6274
6274
|
// gl_PointSize = u_point;
|
|
6275
6275
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
6276
|
-
}`), he(
|
|
6276
|
+
}`), he(Ce, "fragmentSchema", `
|
|
6277
6277
|
precision mediump float;
|
|
6278
6278
|
|
|
6279
6279
|
uniform sampler2D u_factor;
|
|
@@ -6295,7 +6295,7 @@ he(Te, "vertexSchema", `
|
|
|
6295
6295
|
|
|
6296
6296
|
float f = 1.0 - uv.b;
|
|
6297
6297
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
6298
|
-
}`), he(
|
|
6298
|
+
}`), he(Ce, "quadVertSchema", `
|
|
6299
6299
|
precision mediump float;
|
|
6300
6300
|
|
|
6301
6301
|
attribute vec2 a_pos;
|
|
@@ -6305,7 +6305,7 @@ he(Te, "vertexSchema", `
|
|
|
6305
6305
|
void main() {
|
|
6306
6306
|
v_tex_pos = a_pos;
|
|
6307
6307
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
6308
|
-
}`), he(
|
|
6308
|
+
}`), he(Ce, "screenFragmentSchema", `
|
|
6309
6309
|
precision mediump float;
|
|
6310
6310
|
|
|
6311
6311
|
uniform sampler2D u_screen;
|
|
@@ -6317,7 +6317,7 @@ he(Te, "vertexSchema", `
|
|
|
6317
6317
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
6318
6318
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
6319
6319
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
6320
|
-
}`), he(
|
|
6320
|
+
}`), he(Ce, "updateFragmentSchema", `
|
|
6321
6321
|
precision mediump float;
|
|
6322
6322
|
|
|
6323
6323
|
uniform sampler2D u_particles;
|
|
@@ -6683,11 +6683,11 @@ const xs = {
|
|
|
6683
6683
|
];
|
|
6684
6684
|
this.wrapper = this.webgl.bindParticle(
|
|
6685
6685
|
this.particleContext,
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6686
|
+
Ce.vertexSchema,
|
|
6687
|
+
Ce.fragmentSchema,
|
|
6688
|
+
Ce.quadVertSchema,
|
|
6689
|
+
Ce.screenFragmentSchema,
|
|
6690
|
+
Ce.updateFragmentSchema
|
|
6691
6691
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
6692
6692
|
}
|
|
6693
6693
|
},
|
|
@@ -6731,7 +6731,7 @@ function _s(t, e, a, i, o, r) {
|
|
|
6731
6731
|
return (s = a.factor) != null && s.active ? (y(), M("div", vs, [
|
|
6732
6732
|
l("div", {
|
|
6733
6733
|
class: "legend-bars-gl4 wind",
|
|
6734
|
-
style:
|
|
6734
|
+
style: ee({ right: o.right + "px" })
|
|
6735
6735
|
}, e[0] || (e[0] = [
|
|
6736
6736
|
l("span", null, "kts", -1),
|
|
6737
6737
|
l("span", null, "0", -1),
|
|
@@ -6903,7 +6903,7 @@ function Ls(t, e, a, i, o, r) {
|
|
|
6903
6903
|
return null;
|
|
6904
6904
|
}
|
|
6905
6905
|
const Ps = /* @__PURE__ */ Y(zs, [["render", Ls]]);
|
|
6906
|
-
const
|
|
6906
|
+
const Ts = {
|
|
6907
6907
|
name: "IdmCurrentParticle",
|
|
6908
6908
|
props: {
|
|
6909
6909
|
simple: {
|
|
@@ -7021,11 +7021,11 @@ const Cs = {
|
|
|
7021
7021
|
];
|
|
7022
7022
|
this.wrapper = this.webgl.bindParticle(
|
|
7023
7023
|
this.particleContext,
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7024
|
+
Ce.vertexSchema,
|
|
7025
|
+
Ce.fragmentSchema,
|
|
7026
|
+
Ce.quadVertSchema,
|
|
7027
|
+
Ce.screenFragmentSchema,
|
|
7028
|
+
Ce.updateFragmentSchema
|
|
7029
7029
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
7030
7030
|
...this.wrapper,
|
|
7031
7031
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -7067,13 +7067,13 @@ const Cs = {
|
|
|
7067
7067
|
(t = this.viewport) == null || t.toggle(!1), this.context = void 0, this.etime = void 0, this.handleClearParticle();
|
|
7068
7068
|
}
|
|
7069
7069
|
}
|
|
7070
|
-
},
|
|
7070
|
+
}, Cs = { key: 0 };
|
|
7071
7071
|
function Ss(t, e, a, i, o, r) {
|
|
7072
7072
|
var s;
|
|
7073
|
-
return (s = a.factor) != null && s.active ? (y(), M("div",
|
|
7073
|
+
return (s = a.factor) != null && s.active ? (y(), M("div", Cs, [
|
|
7074
7074
|
l("div", {
|
|
7075
7075
|
class: "legend-bars-gl4 current",
|
|
7076
|
-
style:
|
|
7076
|
+
style: ee({ right: o.right + "px" })
|
|
7077
7077
|
}, e[0] || (e[0] = [
|
|
7078
7078
|
l("span", null, "kts", -1),
|
|
7079
7079
|
l("span", null, "0", -1),
|
|
@@ -7085,7 +7085,7 @@ function Ss(t, e, a, i, o, r) {
|
|
|
7085
7085
|
]), 4)
|
|
7086
7086
|
])) : A("", !0);
|
|
7087
7087
|
}
|
|
7088
|
-
const Ms = /* @__PURE__ */ Y(
|
|
7088
|
+
const Ms = /* @__PURE__ */ Y(Ts, [["render", Ss]]);
|
|
7089
7089
|
const Is = {
|
|
7090
7090
|
name: "IdmSigWave",
|
|
7091
7091
|
props: {
|
|
@@ -7201,7 +7201,7 @@ function As(t, e, a, i, o, r) {
|
|
|
7201
7201
|
return (s = a.factor) != null && s.active ? (y(), M("div", Ds, [
|
|
7202
7202
|
l("div", {
|
|
7203
7203
|
class: "legend-bars-gl4 sig-wave",
|
|
7204
|
-
style:
|
|
7204
|
+
style: ee({ right: o.right + "px" })
|
|
7205
7205
|
}, e[0] || (e[0] = [
|
|
7206
7206
|
l("span", null, "m", -1),
|
|
7207
7207
|
l("span", null, "0.5", -1),
|
|
@@ -7468,7 +7468,7 @@ function Fs(t, e, a, i, o, r) {
|
|
|
7468
7468
|
return (s = a.factor) != null && s.active ? (y(), M("div", js, [
|
|
7469
7469
|
l("div", {
|
|
7470
7470
|
class: "legend-bars-gl4 swell",
|
|
7471
|
-
style:
|
|
7471
|
+
style: ee({ right: o.right + "px" })
|
|
7472
7472
|
}, e[0] || (e[0] = [
|
|
7473
7473
|
l("span", null, "m", -1),
|
|
7474
7474
|
l("span", null, "0.5", -1),
|
|
@@ -7738,7 +7738,7 @@ function Ys(t, e, a, i, o, r) {
|
|
|
7738
7738
|
return (s = a.factor) != null && s.active ? (y(), M("div", Zs, [
|
|
7739
7739
|
l("div", {
|
|
7740
7740
|
class: "legend-bars-gl4 ice-edge",
|
|
7741
|
-
style:
|
|
7741
|
+
style: ee({ right: o.right + "px" })
|
|
7742
7742
|
}, e[0] || (e[0] = [
|
|
7743
7743
|
l("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
7744
7744
|
l("span", null, null, -1),
|
|
@@ -7855,7 +7855,7 @@ function $s(t, e, a, i, o, r) {
|
|
|
7855
7855
|
return (s = a.factor) != null && s.active ? (y(), M("div", Ks, [
|
|
7856
7856
|
l("div", {
|
|
7857
7857
|
class: "legend-bars-gl4 ice-cover",
|
|
7858
|
-
style:
|
|
7858
|
+
style: ee({ right: o.right + "px" })
|
|
7859
7859
|
}, e[0] || (e[0] = [
|
|
7860
7860
|
l("span", null, "%", -1),
|
|
7861
7861
|
l("span", null, "20", -1),
|
|
@@ -7973,7 +7973,7 @@ function tn(t, e, a, i, o, r) {
|
|
|
7973
7973
|
return (s = a.factor) != null && s.active ? (y(), M("div", en, [
|
|
7974
7974
|
l("div", {
|
|
7975
7975
|
class: "legend-bars-gl4 ice-thickness",
|
|
7976
|
-
style:
|
|
7976
|
+
style: ee({ right: o.right + "px" })
|
|
7977
7977
|
}, e[0] || (e[0] = [
|
|
7978
7978
|
l("span", null, "m", -1),
|
|
7979
7979
|
l("span", null, "0", -1),
|
|
@@ -8093,7 +8093,7 @@ function ln(t, e, a, i, o, r) {
|
|
|
8093
8093
|
return (s = a.factor) != null && s.active ? (y(), M("div", rn, [
|
|
8094
8094
|
l("div", {
|
|
8095
8095
|
class: "legend-bars-gl4 precip3h",
|
|
8096
|
-
style:
|
|
8096
|
+
style: ee({ right: o.right + "px" })
|
|
8097
8097
|
}, e[0] || (e[0] = [
|
|
8098
8098
|
l("span", null, "mm", -1),
|
|
8099
8099
|
l("span", null, "1.5", -1),
|
|
@@ -8204,7 +8204,7 @@ function mn(t, e, a, i, o, r) {
|
|
|
8204
8204
|
return (s = a.factor) != null && s.active ? (y(), M("div", cn, [
|
|
8205
8205
|
l("div", {
|
|
8206
8206
|
class: "legend-bars-gl4 visibility",
|
|
8207
|
-
style:
|
|
8207
|
+
style: ee({ right: o.right + "px" })
|
|
8208
8208
|
}, e[0] || (e[0] = [
|
|
8209
8209
|
l("span", null, "nm", -1),
|
|
8210
8210
|
l("span", null, "0", -1),
|
|
@@ -8316,7 +8316,7 @@ function un(t, e, a, i, o, r) {
|
|
|
8316
8316
|
return (s = a.factor) != null && s.active ? (y(), M("div", pn, [
|
|
8317
8317
|
l("div", {
|
|
8318
8318
|
class: "legend-bars-gl4 water-temp",
|
|
8319
|
-
style:
|
|
8319
|
+
style: ee({ right: o.right + "px" })
|
|
8320
8320
|
}, e[0] || (e[0] = [
|
|
8321
8321
|
l("span", null, "°C", -1),
|
|
8322
8322
|
l("span", null, "0", -1),
|
|
@@ -8439,7 +8439,7 @@ function bn(t, e, a, i, o, r) {
|
|
|
8439
8439
|
return (s = a.factor) != null && s.active ? (y(), M("div", yn, [
|
|
8440
8440
|
l("div", {
|
|
8441
8441
|
class: "legend-bars-gl4 temp",
|
|
8442
|
-
style:
|
|
8442
|
+
style: ee({ right: o.right + "px" })
|
|
8443
8443
|
}, e[0] || (e[0] = [
|
|
8444
8444
|
l("span", null, "°C", -1),
|
|
8445
8445
|
l("span", null, "-20", -1),
|
|
@@ -8529,8 +8529,8 @@ const xn = {
|
|
|
8529
8529
|
toggle: !1,
|
|
8530
8530
|
autoActive: !0,
|
|
8531
8531
|
weatherWeight: 0,
|
|
8532
|
-
allLayers: [...
|
|
8533
|
-
tagLayers: [...
|
|
8532
|
+
allLayers: [...Ta.WEATHER_LAYERS],
|
|
8533
|
+
tagLayers: [...Ta.WEATHER_LAYERS.filter((t) => !t.hide)],
|
|
8534
8534
|
checkList: [],
|
|
8535
8535
|
renderKey: "",
|
|
8536
8536
|
iceToggleValue: void 0,
|
|
@@ -8746,7 +8746,7 @@ const xn = {
|
|
|
8746
8746
|
if (this.map) {
|
|
8747
8747
|
const _ = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, f = (r = this.map) == null ? void 0 : r.getBounds(), k = `${f._sw.lng},${f._sw.lat},${f._ne.lng},${f._ne.lat}`;
|
|
8748
8748
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8749
|
-
const P =
|
|
8749
|
+
const P = Ta.WEATHER_LAYERS.find((B) => {
|
|
8750
8750
|
var I;
|
|
8751
8751
|
return ((I = B.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8752
8752
|
});
|
|
@@ -8764,45 +8764,45 @@ const xn = {
|
|
|
8764
8764
|
}
|
|
8765
8765
|
);
|
|
8766
8766
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", i, ", total: ", a += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
8767
|
-
const
|
|
8768
|
-
for (const
|
|
8767
|
+
const T = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, z = [];
|
|
8768
|
+
for (const C in T)
|
|
8769
8769
|
z.push(
|
|
8770
|
-
De.get(C
|
|
8770
|
+
De.get(T[C], {
|
|
8771
8771
|
headers: {
|
|
8772
8772
|
Authorization: this.defaultMeteoToken,
|
|
8773
|
-
key:
|
|
8773
|
+
key: C
|
|
8774
8774
|
},
|
|
8775
|
-
responseType: /\.(jpg|png)$/.test(C
|
|
8775
|
+
responseType: /\.(jpg|png)$/.test(T[C]) ? "blob" : "json"
|
|
8776
8776
|
}).catch((v) => {
|
|
8777
|
-
console.log(`[${
|
|
8777
|
+
console.log(`[${C}] fetch layer error: ${v}`);
|
|
8778
8778
|
})
|
|
8779
8779
|
);
|
|
8780
8780
|
const L = await Promise.all(z);
|
|
8781
|
-
this.weatherLayers = {}, L.map((
|
|
8781
|
+
this.weatherLayers = {}, L.map((C) => {
|
|
8782
8782
|
var F, V, q, Z;
|
|
8783
|
-
const v = ((F =
|
|
8784
|
-
let D = (q = (V =
|
|
8783
|
+
const v = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
8784
|
+
let D = (q = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : q.key;
|
|
8785
8785
|
D && v && (this.weatherLayers[D] = {
|
|
8786
8786
|
raw: v,
|
|
8787
|
-
type: ((Z =
|
|
8787
|
+
type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8788
8788
|
etime: I.data.etime
|
|
8789
8789
|
});
|
|
8790
8790
|
});
|
|
8791
8791
|
}
|
|
8792
8792
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", i, ", total: ", a += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8793
|
-
const
|
|
8793
|
+
const T = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, z = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
8794
8794
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8795
8795
|
type: "json",
|
|
8796
|
-
direction:
|
|
8796
|
+
direction: T,
|
|
8797
8797
|
height: { raw: z },
|
|
8798
8798
|
etime: I.data.etime
|
|
8799
8799
|
};
|
|
8800
8800
|
}
|
|
8801
8801
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8802
|
-
const
|
|
8802
|
+
const T = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, z = (x = this.weatherLayers["current-speed"]) == null ? void 0 : x.raw;
|
|
8803
8803
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8804
8804
|
type: "json",
|
|
8805
|
-
direction:
|
|
8805
|
+
direction: T,
|
|
8806
8806
|
speed: { raw: z },
|
|
8807
8807
|
etime: I.data.etime
|
|
8808
8808
|
};
|
|
@@ -8872,41 +8872,41 @@ const xn = {
|
|
|
8872
8872
|
let I = [];
|
|
8873
8873
|
if (P === "swell") {
|
|
8874
8874
|
B = !0;
|
|
8875
|
-
const
|
|
8876
|
-
for (const L in
|
|
8875
|
+
const T = ((c = this.weatherLayers[P]) == null ? void 0 : c.direction) || {};
|
|
8876
|
+
for (const L in T)
|
|
8877
8877
|
if (L > f && L < k && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8878
|
-
const
|
|
8879
|
-
x > _ ?
|
|
8878
|
+
const C = T[L].lng;
|
|
8879
|
+
x > _ ? C.forEach((v, D) => {
|
|
8880
8880
|
var F, V, q, Z, J, Q;
|
|
8881
8881
|
if (o < 2) {
|
|
8882
8882
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8883
8883
|
const $ = U.point([v, L], {
|
|
8884
|
-
val: ((F =
|
|
8885
|
-
spd: (q =
|
|
8884
|
+
val: ((F = T[L].val) == null ? void 0 : F[D]) || ((V = T[L].dir) == null ? void 0 : V[D]),
|
|
8885
|
+
spd: (q = T[L].spd) == null ? void 0 : q[D]
|
|
8886
8886
|
});
|
|
8887
8887
|
I.push($);
|
|
8888
8888
|
}
|
|
8889
8889
|
} else if ((v >= x && v <= 180 || v >= -180 && v <= _) && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8890
8890
|
const $ = U.point([v, L], {
|
|
8891
|
-
val: ((Z =
|
|
8892
|
-
spd: (Q =
|
|
8891
|
+
val: ((Z = T[L].val) == null ? void 0 : Z[D]) || ((J = T[L].dir) == null ? void 0 : J[D]),
|
|
8892
|
+
spd: (Q = T[L].spd) == null ? void 0 : Q[D]
|
|
8893
8893
|
});
|
|
8894
8894
|
I.push($);
|
|
8895
8895
|
}
|
|
8896
|
-
}) :
|
|
8896
|
+
}) : C.forEach((v, D) => {
|
|
8897
8897
|
var F, V, q, Z, J, Q;
|
|
8898
8898
|
if (x < 2) {
|
|
8899
8899
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8900
8900
|
const $ = U.point([v, L], {
|
|
8901
|
-
val: ((F =
|
|
8902
|
-
spd: (q =
|
|
8901
|
+
val: ((F = T[L].val) == null ? void 0 : F[D]) || ((V = T[L].dir) == null ? void 0 : V[D]),
|
|
8902
|
+
spd: (q = T[L].spd) == null ? void 0 : q[D]
|
|
8903
8903
|
});
|
|
8904
8904
|
I.push($);
|
|
8905
8905
|
}
|
|
8906
8906
|
} else if (v >= x && v <= _ && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8907
8907
|
const $ = U.point([v, L], {
|
|
8908
|
-
val: ((Z =
|
|
8909
|
-
spd: (Q =
|
|
8908
|
+
val: ((Z = T[L].val) == null ? void 0 : Z[D]) || ((J = T[L].dir) == null ? void 0 : J[D]),
|
|
8909
|
+
spd: (Q = T[L].spd) == null ? void 0 : Q[D]
|
|
8910
8910
|
});
|
|
8911
8911
|
I.push($);
|
|
8912
8912
|
}
|
|
@@ -8917,12 +8917,12 @@ const xn = {
|
|
|
8917
8917
|
if (z) {
|
|
8918
8918
|
if (!z.data) {
|
|
8919
8919
|
const L = [];
|
|
8920
|
-
for (const
|
|
8921
|
-
const v = z.raw.LineString[
|
|
8920
|
+
for (const C in (n = z.raw) == null ? void 0 : n.LineString) {
|
|
8921
|
+
const v = z.raw.LineString[C];
|
|
8922
8922
|
for (const D of v)
|
|
8923
8923
|
L.push(
|
|
8924
8924
|
U.lineString(D, {
|
|
8925
|
-
val: Number(
|
|
8925
|
+
val: Number(C)
|
|
8926
8926
|
})
|
|
8927
8927
|
);
|
|
8928
8928
|
z.data = U.featureCollection(L);
|
|
@@ -8936,41 +8936,41 @@ const xn = {
|
|
|
8936
8936
|
}
|
|
8937
8937
|
} else if (P === "current") {
|
|
8938
8938
|
B = !0;
|
|
8939
|
-
const
|
|
8940
|
-
for (const L in
|
|
8939
|
+
const T = ((u = this.weatherLayers[P]) == null ? void 0 : u.direction) || {};
|
|
8940
|
+
for (const L in T)
|
|
8941
8941
|
if (L > f && L < k && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8942
|
-
const
|
|
8943
|
-
x > _ ?
|
|
8942
|
+
const C = T[L].lng;
|
|
8943
|
+
x > _ ? C.forEach((v, D) => {
|
|
8944
8944
|
var F, V, q, Z, J, Q;
|
|
8945
8945
|
if (o < 2) {
|
|
8946
8946
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8947
8947
|
const $ = U.point([v, L], {
|
|
8948
|
-
val: ((F =
|
|
8949
|
-
spd: (q =
|
|
8948
|
+
val: ((F = T[L].val) == null ? void 0 : F[D]) || ((V = T[L].dir) == null ? void 0 : V[D]),
|
|
8949
|
+
spd: (q = T[L].spd) == null ? void 0 : q[D]
|
|
8950
8950
|
});
|
|
8951
8951
|
I.push($);
|
|
8952
8952
|
}
|
|
8953
8953
|
} else if ((v >= x && v <= 180 || v >= -180 && v <= _) && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
8954
8954
|
const $ = U.point([v, L], {
|
|
8955
|
-
val: ((Z =
|
|
8956
|
-
spd: (Q =
|
|
8955
|
+
val: ((Z = T[L].val) == null ? void 0 : Z[D]) || ((J = T[L].dir) == null ? void 0 : J[D]),
|
|
8956
|
+
spd: (Q = T[L].spd) == null ? void 0 : Q[D]
|
|
8957
8957
|
});
|
|
8958
8958
|
I.push($);
|
|
8959
8959
|
}
|
|
8960
|
-
}) :
|
|
8960
|
+
}) : C.forEach((v, D) => {
|
|
8961
8961
|
var F, V, q, Z, J, Q;
|
|
8962
8962
|
if (x < 2) {
|
|
8963
8963
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8964
8964
|
const $ = U.point([v, L], {
|
|
8965
|
-
val: ((F =
|
|
8966
|
-
spd: (q =
|
|
8965
|
+
val: ((F = T[L].val) == null ? void 0 : F[D]) || ((V = T[L].dir) == null ? void 0 : V[D]),
|
|
8966
|
+
spd: (q = T[L].spd) == null ? void 0 : q[D]
|
|
8967
8967
|
});
|
|
8968
8968
|
I.push($);
|
|
8969
8969
|
}
|
|
8970
8970
|
} else if (v >= x && v <= _ && (!(o <= this.zoom) || v % (o < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8971
8971
|
const $ = U.point([v, L], {
|
|
8972
|
-
val: ((Z =
|
|
8973
|
-
spd: (Q =
|
|
8972
|
+
val: ((Z = T[L].val) == null ? void 0 : Z[D]) || ((J = T[L].dir) == null ? void 0 : J[D]),
|
|
8973
|
+
spd: (Q = T[L].spd) == null ? void 0 : Q[D]
|
|
8974
8974
|
});
|
|
8975
8975
|
I.push($);
|
|
8976
8976
|
}
|
|
@@ -8980,58 +8980,58 @@ const xn = {
|
|
|
8980
8980
|
const z = this.weatherLayers[P].speed;
|
|
8981
8981
|
if (z) {
|
|
8982
8982
|
if (!z.data) {
|
|
8983
|
-
const
|
|
8983
|
+
const C = [];
|
|
8984
8984
|
for (const v in (h = z.raw) == null ? void 0 : h.Polygon) {
|
|
8985
8985
|
const D = z.raw.Polygon[v];
|
|
8986
8986
|
for (const F of D)
|
|
8987
|
-
|
|
8987
|
+
C.push(
|
|
8988
8988
|
U.polygon(F, {
|
|
8989
8989
|
val: Number(v)
|
|
8990
8990
|
})
|
|
8991
8991
|
);
|
|
8992
8992
|
}
|
|
8993
|
-
z.data = U.featureCollection(
|
|
8993
|
+
z.data = U.featureCollection(C);
|
|
8994
8994
|
}
|
|
8995
|
-
const L = o < this.zoom ? z.data.features.filter((
|
|
8995
|
+
const L = o < this.zoom ? z.data.features.filter((C) => C.properties.val > 0.5) : z.data.features;
|
|
8996
8996
|
I = I.concat(L), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
8997
8997
|
}
|
|
8998
8998
|
} else if (P === "wind") {
|
|
8999
8999
|
B = !0;
|
|
9000
|
-
const
|
|
9001
|
-
for (const z in
|
|
9000
|
+
const T = this.weatherLayers.wind.raw;
|
|
9001
|
+
for (const z in T)
|
|
9002
9002
|
if (z > f && z < k && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9003
|
-
const L =
|
|
9004
|
-
x > _ ? L.forEach((
|
|
9003
|
+
const L = T[z].lng;
|
|
9004
|
+
x > _ ? L.forEach((C, v) => {
|
|
9005
9005
|
var D, F, V, q;
|
|
9006
9006
|
if (o < 2) {
|
|
9007
|
-
if ((
|
|
9008
|
-
const Z = U.point([
|
|
9009
|
-
dir: ((D =
|
|
9010
|
-
spd:
|
|
9007
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9008
|
+
const Z = U.point([C, z], {
|
|
9009
|
+
dir: ((D = T[z].val) == null ? void 0 : D[v]) || ((F = T[z].dir) == null ? void 0 : F[v]),
|
|
9010
|
+
spd: T[z].spd[v]
|
|
9011
9011
|
});
|
|
9012
9012
|
I.push(Z);
|
|
9013
9013
|
}
|
|
9014
|
-
} else if ((
|
|
9015
|
-
const Z = U.point([
|
|
9016
|
-
dir: ((V =
|
|
9017
|
-
spd:
|
|
9014
|
+
} else if ((C >= x && C <= 180 || C >= -180 && C <= _) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9015
|
+
const Z = U.point([C, z], {
|
|
9016
|
+
dir: ((V = T[z].val) == null ? void 0 : V[v]) || ((q = T[z].dir) == null ? void 0 : q[v]),
|
|
9017
|
+
spd: T[z].spd[v]
|
|
9018
9018
|
});
|
|
9019
9019
|
I.push(Z);
|
|
9020
9020
|
}
|
|
9021
|
-
}) : L.forEach((
|
|
9021
|
+
}) : L.forEach((C, v) => {
|
|
9022
9022
|
var D, F, V, q;
|
|
9023
9023
|
if (o < 2) {
|
|
9024
|
-
if ((
|
|
9025
|
-
const Z = U.point([
|
|
9026
|
-
dir: ((D =
|
|
9027
|
-
spd:
|
|
9024
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9025
|
+
const Z = U.point([C, z], {
|
|
9026
|
+
dir: ((D = T[z].val) == null ? void 0 : D[v]) || ((F = T[z].dir) == null ? void 0 : F[v]),
|
|
9027
|
+
spd: T[z].spd[v]
|
|
9028
9028
|
});
|
|
9029
9029
|
I.push(Z);
|
|
9030
9030
|
}
|
|
9031
|
-
} else if (
|
|
9032
|
-
const Z = U.point([
|
|
9033
|
-
dir: ((V =
|
|
9034
|
-
spd:
|
|
9031
|
+
} else if (C >= x && C <= _ && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9032
|
+
const Z = U.point([C, z], {
|
|
9033
|
+
dir: ((V = T[z].val) == null ? void 0 : V[v]) || ((q = T[z].dir) == null ? void 0 : q[v]),
|
|
9034
|
+
spd: T[z].spd[v]
|
|
9035
9035
|
});
|
|
9036
9036
|
I.push(Z);
|
|
9037
9037
|
}
|
|
@@ -9043,33 +9043,33 @@ const xn = {
|
|
|
9043
9043
|
I = this.weatherLayers[P].data;
|
|
9044
9044
|
else {
|
|
9045
9045
|
B = !0;
|
|
9046
|
-
const
|
|
9047
|
-
if (
|
|
9046
|
+
const T = this.weatherLayers[P].raw;
|
|
9047
|
+
if (T) {
|
|
9048
9048
|
const z = [];
|
|
9049
|
-
for (const L in
|
|
9050
|
-
const
|
|
9051
|
-
for (const v of
|
|
9049
|
+
for (const L in T.Polygon) {
|
|
9050
|
+
const C = T.Polygon[L];
|
|
9051
|
+
for (const v of C)
|
|
9052
9052
|
z.push(
|
|
9053
9053
|
U.polygon(v, {
|
|
9054
9054
|
val: Number(L)
|
|
9055
9055
|
})
|
|
9056
9056
|
);
|
|
9057
9057
|
}
|
|
9058
|
-
for (const L in
|
|
9059
|
-
const
|
|
9060
|
-
for (const v of
|
|
9058
|
+
for (const L in T.MultiPolygon) {
|
|
9059
|
+
const C = T.MultiPolygon[L];
|
|
9060
|
+
for (const v of C)
|
|
9061
9061
|
z.push(
|
|
9062
9062
|
U.multiPolygon(v, {
|
|
9063
9063
|
val: Number(L)
|
|
9064
9064
|
})
|
|
9065
9065
|
);
|
|
9066
9066
|
}
|
|
9067
|
-
for (const L in
|
|
9068
|
-
const
|
|
9069
|
-
for (let v = 0; v < ((b =
|
|
9067
|
+
for (const L in T.Point) {
|
|
9068
|
+
const C = T.Point[L];
|
|
9069
|
+
for (let v = 0; v < ((b = C.lng) == null ? void 0 : b.length); v++)
|
|
9070
9070
|
z.push(
|
|
9071
|
-
U.point([
|
|
9072
|
-
val: Number(
|
|
9071
|
+
U.point([C.lng[v], L], {
|
|
9072
|
+
val: Number(C.val[v])
|
|
9073
9073
|
})
|
|
9074
9074
|
);
|
|
9075
9075
|
}
|
|
@@ -9082,24 +9082,24 @@ const xn = {
|
|
|
9082
9082
|
I = this.weatherLayers[P].data;
|
|
9083
9083
|
else {
|
|
9084
9084
|
B = !0;
|
|
9085
|
-
const
|
|
9086
|
-
if (
|
|
9085
|
+
const T = this.weatherLayers[P].raw;
|
|
9086
|
+
if (T) {
|
|
9087
9087
|
const z = [];
|
|
9088
|
-
for (const L in
|
|
9089
|
-
const
|
|
9090
|
-
for (const v of
|
|
9088
|
+
for (const L in T.LineString) {
|
|
9089
|
+
const C = T.LineString[L];
|
|
9090
|
+
for (const v of C)
|
|
9091
9091
|
z.push(
|
|
9092
9092
|
U.lineString(v, {
|
|
9093
9093
|
val: Number(L)
|
|
9094
9094
|
})
|
|
9095
9095
|
);
|
|
9096
9096
|
}
|
|
9097
|
-
for (const L in
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
U.point([
|
|
9101
|
-
val:
|
|
9102
|
-
type:
|
|
9097
|
+
for (const L in T.Point)
|
|
9098
|
+
T.Point[L].lng.forEach((C, v) => {
|
|
9099
|
+
C = X.convertToStdLng(C), z.push(
|
|
9100
|
+
U.point([C, L], {
|
|
9101
|
+
val: T.Point[L].val[v],
|
|
9102
|
+
type: T.Point[L].type[v]
|
|
9103
9103
|
})
|
|
9104
9104
|
);
|
|
9105
9105
|
});
|
|
@@ -9140,7 +9140,7 @@ const xn = {
|
|
|
9140
9140
|
}, kn = { class: "d-flex flex-row justify-center align-center" }, zn = { class: "text-caption" }, Ln = { class: "d-flex flex-row justify-center align-center" }, Pn = {
|
|
9141
9141
|
key: 0,
|
|
9142
9142
|
style: { width: "24px", height: "12px", border: "1px solid rgba(var(--v-border-color), var(--v-border-opacity))" }
|
|
9143
|
-
},
|
|
9143
|
+
}, Tn = { class: "text-caption px-2" }, Cn = { class: "d-flex flex-row justify-start align-center" }, Sn = {
|
|
9144
9144
|
class: "d-flex flex-row justify-center align-center",
|
|
9145
9145
|
style: { width: "40px" }
|
|
9146
9146
|
}, Mn = { class: "text-caption" }, In = { class: "header-box d-flex justify-space-between align-center px-4" }, Dn = { class: "d-flex justify-start align-center ga-3" }, An = { class: "text-h5 font-weight-medium" }, Rn = {
|
|
@@ -9154,12 +9154,12 @@ const xn = {
|
|
|
9154
9154
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9155
9155
|
}, Nn = { class: "text-body-1 py-2" }, En = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 py-2" }, Yn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Xn = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label mb-3" }, $n = { class: "text-body-1 font-weight-medium" }, Jn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label" }, ec = { class: "text-body-2 text-label mb-3" }, tc = { class: "text-body-1 py-2" }, ac = { class: "text-body-1 font-weight-medium" }, oc = { class: "text-body-2 text-label" }, ic = { class: "text-body-2 text-label" }, rc = { class: "text-body-2 text-label mb-3" };
|
|
9156
9156
|
function lc(t, e, a, i, o, r) {
|
|
9157
|
-
var pe, ie, ce, ue, me, de, R,
|
|
9158
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), _ = w("VSwitch"), f = w("VBtnToggle"), k = w("VCardTitle"), P = w("VCardItem"), B = w("VCheckbox"), I = w("VRadio"),
|
|
9157
|
+
var pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te;
|
|
9158
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), _ = w("VSwitch"), f = w("VBtnToggle"), k = w("VCardTitle"), P = w("VCardItem"), B = w("VCheckbox"), I = w("VRadio"), T = w("IdmWindBarb"), z = w("IdmSigWaveHeight"), L = w("IdmCurrentDirection"), C = w("IdmPrmsl"), v = w("IdmWindParticle"), D = w("IdmCurrentParticle"), F = w("IdmWave"), V = w("IdmSwell"), q = w("IdmIceEdge"), Z = w("IdmIceCover"), J = w("IdmIceThickness"), Q = w("IdmPrecip3h"), $ = w("IdmVisibility"), le = w("IdmWaterTemp"), se = w("IdmTemp");
|
|
9159
9159
|
return y(), M("div", vn, [
|
|
9160
9160
|
l("div", {
|
|
9161
9161
|
class: "menu-bar-box transition pa-1",
|
|
9162
|
-
style:
|
|
9162
|
+
style: ee({ top: this.top + this.paddingTop + 46 + "px", right: this.right + "px" })
|
|
9163
9163
|
}, [
|
|
9164
9164
|
p(c, {
|
|
9165
9165
|
text: t.$t("weather.weatherLayers"),
|
|
@@ -9186,7 +9186,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9186
9186
|
r.showTipMenu ? (y(), M("div", _n, [
|
|
9187
9187
|
l("div", {
|
|
9188
9188
|
class: "menu-bar-box pa-1 rounded",
|
|
9189
|
-
style:
|
|
9189
|
+
style: ee({ right: o.right + "px" })
|
|
9190
9190
|
}, [
|
|
9191
9191
|
p(c, {
|
|
9192
9192
|
text: "Legend",
|
|
@@ -9214,7 +9214,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9214
9214
|
key: 0,
|
|
9215
9215
|
elevation: "16",
|
|
9216
9216
|
class: "card-info d-flex justify-center align-start",
|
|
9217
|
-
style:
|
|
9217
|
+
style: ee({ position: "absolute", top: "340px", right: o.right + 50 + "px" })
|
|
9218
9218
|
}, {
|
|
9219
9219
|
default: g(() => [
|
|
9220
9220
|
p(h, {
|
|
@@ -9233,8 +9233,8 @@ function lc(t, e, a, i, o, r) {
|
|
|
9233
9233
|
default: g(() => [
|
|
9234
9234
|
l("div", kn, [
|
|
9235
9235
|
l("i", {
|
|
9236
|
-
class:
|
|
9237
|
-
style:
|
|
9236
|
+
class: He(["iconfont", r.barbsIconName[ae]]),
|
|
9237
|
+
style: ee({ color: a.theme === "dark" ? "#fff" : "#000" })
|
|
9238
9238
|
}, null, 6),
|
|
9239
9239
|
l("span", zn, m(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
9240
9240
|
])
|
|
@@ -9266,9 +9266,9 @@ function lc(t, e, a, i, o, r) {
|
|
|
9266
9266
|
l("div", Ln, [
|
|
9267
9267
|
ae === 0 ? (y(), M("div", Pn)) : (y(), M("div", {
|
|
9268
9268
|
key: 1,
|
|
9269
|
-
style:
|
|
9269
|
+
style: ee({ width: "24px", height: "12px", background: H.color })
|
|
9270
9270
|
}, null, 4)),
|
|
9271
|
-
l("div",
|
|
9271
|
+
l("div", Tn, m(H.label), 1)
|
|
9272
9272
|
])
|
|
9273
9273
|
]),
|
|
9274
9274
|
_: 2
|
|
@@ -9295,11 +9295,11 @@ function lc(t, e, a, i, o, r) {
|
|
|
9295
9295
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
9296
9296
|
}, {
|
|
9297
9297
|
default: g(() => [
|
|
9298
|
-
l("div",
|
|
9298
|
+
l("div", Cn, [
|
|
9299
9299
|
l("div", Sn, [
|
|
9300
9300
|
l("i", {
|
|
9301
9301
|
class: "iconfont icon-a-direction-arrow text-label",
|
|
9302
|
-
style:
|
|
9302
|
+
style: ee({ fontSize: 40 * H.size + "px" })
|
|
9303
9303
|
}, null, 4)
|
|
9304
9304
|
]),
|
|
9305
9305
|
l("div", Mn, m(H.label), 1)
|
|
@@ -9319,8 +9319,8 @@ function lc(t, e, a, i, o, r) {
|
|
|
9319
9319
|
}, 8, ["style"])) : A("", !0)
|
|
9320
9320
|
])) : A("", !0),
|
|
9321
9321
|
l("div", {
|
|
9322
|
-
class:
|
|
9323
|
-
style:
|
|
9322
|
+
class: He(["available-layers transition flex-center", o.toggle ? "right-bar" : ""]),
|
|
9323
|
+
style: ee(r.listStyle)
|
|
9324
9324
|
}, [
|
|
9325
9325
|
l("div", In, [
|
|
9326
9326
|
l("div", Dn, [
|
|
@@ -9393,7 +9393,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9393
9393
|
}, 8, ["modelValue"])
|
|
9394
9394
|
])) : A("", !0),
|
|
9395
9395
|
l("div", {
|
|
9396
|
-
class:
|
|
9396
|
+
class: He(["list-box scroll pl-4 pr-2 overflow-y-auto", o.autoActive ? "" : "cursor-not-allowed"])
|
|
9397
9397
|
}, [
|
|
9398
9398
|
p(x, {
|
|
9399
9399
|
class: "block-bg mx-auto mb-3",
|
|
@@ -9616,14 +9616,14 @@ function lc(t, e, a, i, o, r) {
|
|
|
9616
9616
|
}),
|
|
9617
9617
|
p(h, { class: "" }, {
|
|
9618
9618
|
default: g(() => {
|
|
9619
|
-
var H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be,
|
|
9619
|
+
var H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be, Ue, We, E, be, Re, Ne, Ee, j, Ge, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, ea, ta, aa, oa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka;
|
|
9620
9620
|
return [
|
|
9621
9621
|
l("div", Nn, m(t.$t("weather.atmospheric")), 1),
|
|
9622
9622
|
l("div", En, m((Fe = (ae = (H = o.models) == null ? void 0 : H.weather) == null ? void 0 : ae.NOAA) == null ? void 0 : Fe.source) + " " + m((Ie = (ge = (Ae = o.models) == null ? void 0 : Ae.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : Ie.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (fe = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : fe.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
9623
9623
|
l("div", jn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9624
|
-
l("div", Fn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (
|
|
9624
|
+
l("div", Fn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((E = (We = (Ue = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : We.meta) == null ? void 0 : E.availabilityTime)), 1),
|
|
9625
9625
|
l("div", Hn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Ee = (Ne = (Re = (be = o.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Ne.meta) == null ? void 0 : Ee.initialisationTime)), 1),
|
|
9626
|
-
l("div", Un, m((G = (
|
|
9626
|
+
l("div", Un, m((G = (Ge = (j = o.models) == null ? void 0 : j.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : G.source) + " " + m((Ke = (Xe = (qe = o.models) == null ? void 0 : qe.weather) == null ? void 0 : Xe.ECMWF) == null ? void 0 : Ke.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = ($e = (ze = o.models) == null ? void 0 : ze.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
9627
9627
|
l("div", Wn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9628
9628
|
l("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((ot = (at = (tt = (et = o.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : at.meta) == null ? void 0 : ot.availabilityTime)), 1),
|
|
9629
9629
|
l("div", Vn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((st = (lt = (rt = (it = o.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : lt.meta) == null ? void 0 : st.initialisationTime)), 1),
|
|
@@ -9632,7 +9632,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9632
9632
|
l("div", Yn, m((dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.source) + " " + m((gt = (ut = (pt = (ht = o.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = o.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
|
|
9633
9633
|
l("div", qn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
9634
9634
|
l("div", Xn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Lt = (zt = (kt = (_t = (vt = o.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : zt.meta) == null ? void 0 : Lt.availabilityTime)), 1),
|
|
9635
|
-
l("div", Kn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Mt = (St = (
|
|
9635
|
+
l("div", Kn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((Mt = (St = (Ct = (Tt = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Tt.wave) == null ? void 0 : Ct.NOAA) == null ? void 0 : St.meta) == null ? void 0 : Mt.initialisationTime)), 1),
|
|
9636
9636
|
l("div", $n, m((Rt = (At = (Dt = (It = o.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.source) + " " + m((Et = (Nt = (Bt = (Ot = o.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Nt.ECMWF) == null ? void 0 : Et.spatialResolution) + m(t.$t("units.km")) + " " + m((Wt = (Ut = (Ht = (Ft = (jt = o.models) == null ? void 0 : jt.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Ut.meta) == null ? void 0 : Wt.days) + m(t.$t("units.days")), 1),
|
|
9637
9637
|
l("div", Jn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
9638
9638
|
l("div", Qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
|
|
@@ -9652,7 +9652,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9652
9652
|
})
|
|
9653
9653
|
], 2)
|
|
9654
9654
|
], 6),
|
|
9655
|
-
a.map ? (y(), O(
|
|
9655
|
+
a.map ? (y(), O(T, N({
|
|
9656
9656
|
key: 1,
|
|
9657
9657
|
ref: "windBarb",
|
|
9658
9658
|
map: a.map,
|
|
@@ -9677,7 +9677,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9677
9677
|
current: (ce = o.weatherLayers) == null ? void 0 : ce.current,
|
|
9678
9678
|
"menu-toggle": a.menuToggle
|
|
9679
9679
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : A("", !0),
|
|
9680
|
-
a.map ? (y(), O(
|
|
9680
|
+
a.map ? (y(), O(C, N({
|
|
9681
9681
|
key: 4,
|
|
9682
9682
|
map: a.map,
|
|
9683
9683
|
"before-layer": "empty-layer-2",
|
|
@@ -9710,7 +9710,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9710
9710
|
key: 8,
|
|
9711
9711
|
map: a.map,
|
|
9712
9712
|
viewport: o.viewport,
|
|
9713
|
-
factor: (
|
|
9713
|
+
factor: (te = o.weatherLayers) == null ? void 0 : te.swell,
|
|
9714
9714
|
"menu-toggle": a.menuToggle,
|
|
9715
9715
|
"active-weather-layers": o.activeWeatherLayers,
|
|
9716
9716
|
simple: a.simple
|
|
@@ -9760,7 +9760,7 @@ function lc(t, e, a, i, o, r) {
|
|
|
9760
9760
|
a.map ? (y(), O(se, N({
|
|
9761
9761
|
key: 15,
|
|
9762
9762
|
viewport: o.viewport,
|
|
9763
|
-
factor: (
|
|
9763
|
+
factor: (Te = o.weatherLayers) == null ? void 0 : Te.temp,
|
|
9764
9764
|
"menu-toggle": a.menuToggle,
|
|
9765
9765
|
simple: a.simple
|
|
9766
9766
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : A("", !0)
|
|
@@ -10113,15 +10113,15 @@ class Yo {
|
|
|
10113
10113
|
}), o;
|
|
10114
10114
|
}
|
|
10115
10115
|
static pickHourly(e, a) {
|
|
10116
|
-
var i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
10117
|
-
const W = typeof a == "string" ? S(a) : a, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = re.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"),
|
|
10118
|
-
if (W.isBetween(Be,
|
|
10116
|
+
var i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te, H, ae, Fe, Ae, ge, Ie;
|
|
10117
|
+
const W = typeof a == "string" ? S(a) : a, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = re.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), Ue = re.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), We = [];
|
|
10118
|
+
if (W.isBetween(Be, Ue, "millisecond", "[]")) {
|
|
10119
10119
|
const E = W.utc().diff(Be, "h", !1);
|
|
10120
10120
|
let be, Re;
|
|
10121
10121
|
if (fe) {
|
|
10122
10122
|
let Ne = 0, Ee = 0, j = 0;
|
|
10123
|
-
for (const
|
|
10124
|
-
const G =
|
|
10123
|
+
for (const Ge of fe) {
|
|
10124
|
+
const G = Ge == null ? void 0 : Ge.hourly;
|
|
10125
10125
|
for (let ze = E - (E - 1) % 3; ze <= E; ze++)
|
|
10126
10126
|
Ne += (b = G == null ? void 0 : G.precipitation) == null ? void 0 : b.at(ze);
|
|
10127
10127
|
for (let ze = E - (E - 1) % 6; ze <= E; ze++)
|
|
@@ -10135,14 +10135,14 @@ class Yo {
|
|
|
10135
10135
|
dp: (B = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : B.at(E),
|
|
10136
10136
|
precip: {
|
|
10137
10137
|
probability: (I = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : I.at(E),
|
|
10138
|
-
sum: (
|
|
10138
|
+
sum: (T = G == null ? void 0 : G.precipitation) == null ? void 0 : T.at(E),
|
|
10139
10139
|
sum1Hours: (z = G == null ? void 0 : G.precipitation) == null ? void 0 : z.at(E),
|
|
10140
10140
|
sum3Hours: Math.round(Ne * 100) / 100,
|
|
10141
10141
|
sum6Hours: Math.round(Ee * 100) / 100,
|
|
10142
10142
|
sum12Hours: Math.round(j * 100) / 100
|
|
10143
10143
|
},
|
|
10144
10144
|
pmsl: (L = G == null ? void 0 : G.pressure_msl) == null ? void 0 : L.at(E),
|
|
10145
|
-
psurf: (
|
|
10145
|
+
psurf: (C = G == null ? void 0 : G.surface_pressure) == null ? void 0 : C.at(E),
|
|
10146
10146
|
code: (v = G == null ? void 0 : G.weather_code) == null ? void 0 : v.at(E),
|
|
10147
10147
|
visibility: this.m2nm((D = G == null ? void 0 : G.visibility) == null ? void 0 : D.at(E)),
|
|
10148
10148
|
wind: {
|
|
@@ -10155,9 +10155,9 @@ class Yo {
|
|
|
10155
10155
|
isDay: ($ = G == null ? void 0 : G.is_day) == null ? void 0 : $.at(E)
|
|
10156
10156
|
};
|
|
10157
10157
|
const { name: qe, url: Xe, bg: Ke } = this.parseWeatherCode(be.code, be.isDay);
|
|
10158
|
-
be.name = qe, be.url = Xe, be.bg = Ke, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree),
|
|
10158
|
+
be.name = qe, be.url = Xe, be.bg = Ke, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), We.push({
|
|
10159
10159
|
utc: Be.add(E, "h").format(),
|
|
10160
|
-
model:
|
|
10160
|
+
model: Ge.model,
|
|
10161
10161
|
weather: { ...be }
|
|
10162
10162
|
});
|
|
10163
10163
|
}
|
|
@@ -10178,7 +10178,7 @@ class Yo {
|
|
|
10178
10178
|
height: (ue = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : ue.at(E),
|
|
10179
10179
|
degree: (me = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : me.at(E),
|
|
10180
10180
|
bearing: ((de = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : de.at(E)) !== null ? (((R = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : R.at(E)) + 180) % 360 : null,
|
|
10181
|
-
period: (
|
|
10181
|
+
period: (te = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : te.at(E),
|
|
10182
10182
|
peakPeriod: (ye = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : ye.at(E)
|
|
10183
10183
|
},
|
|
10184
10184
|
wd: {
|
|
@@ -10186,7 +10186,7 @@ class Yo {
|
|
|
10186
10186
|
degree: (Le = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Le.at(E),
|
|
10187
10187
|
bearing: ((Pe = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Pe.at(E)) !== null ? (((ve = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : ve.at(E)) + 180) % 360 : null,
|
|
10188
10188
|
period: (Me = j == null ? void 0 : j.wind_wave_period) == null ? void 0 : Me.at(E),
|
|
10189
|
-
peakPeriod: (
|
|
10189
|
+
peakPeriod: (Te = j == null ? void 0 : j.wind_wave_peak_period) == null ? void 0 : Te.at(E)
|
|
10190
10190
|
}
|
|
10191
10191
|
},
|
|
10192
10192
|
current: {
|
|
@@ -10197,11 +10197,11 @@ class Yo {
|
|
|
10197
10197
|
},
|
|
10198
10198
|
sst: (ge = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : ge.at(E),
|
|
10199
10199
|
height: (Ie = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Ie.at(E)
|
|
10200
|
-
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(
|
|
10200
|
+
}, Re.wave = this.parseWave(Re.wave, be == null ? void 0 : be.wind), Re.current.direction = this.degree2Direction(Re.current.degree), Object.assign(We[Ne], Re), Ne++;
|
|
10201
10201
|
}
|
|
10202
10202
|
}
|
|
10203
10203
|
}
|
|
10204
|
-
return
|
|
10204
|
+
return We;
|
|
10205
10205
|
}
|
|
10206
10206
|
static toLegacy(e) {
|
|
10207
10207
|
var a, i, o, r, s, c, n, u, h, b;
|
|
@@ -10226,13 +10226,13 @@ class Yo {
|
|
|
10226
10226
|
};
|
|
10227
10227
|
}
|
|
10228
10228
|
static pickDaily(e, a) {
|
|
10229
|
-
var i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
10230
|
-
const Me = typeof a == "string" ? S(a) : a,
|
|
10229
|
+
var i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve;
|
|
10230
|
+
const Me = typeof a == "string" ? S(a) : a, Te = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, ae = S((r = (o = (i = Te == null ? void 0 : Te[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (s = Te == null ? void 0 : Te[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ae = [];
|
|
10231
10231
|
if (Me.isBetween(ae, Fe, "millisecond", "[]")) {
|
|
10232
10232
|
let ge, Ie;
|
|
10233
10233
|
const W = Me.diff(ae, "d", !1);
|
|
10234
|
-
if (
|
|
10235
|
-
for (const fe of
|
|
10234
|
+
if (Te)
|
|
10235
|
+
for (const fe of Te) {
|
|
10236
10236
|
const oe = fe.daily;
|
|
10237
10237
|
ge = {
|
|
10238
10238
|
code: (u = oe.weather_code) == null ? void 0 : u.at(W),
|
|
@@ -10250,12 +10250,12 @@ class Yo {
|
|
|
10250
10250
|
rainSum: (P = oe.rain_sum) == null ? void 0 : P.at(W),
|
|
10251
10251
|
snowfallSum: (B = oe.snowfall_sum) == null ? void 0 : B.at(W),
|
|
10252
10252
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(W),
|
|
10253
|
-
hours: (
|
|
10253
|
+
hours: (T = oe.precipitation_hours) == null ? void 0 : T.at(W),
|
|
10254
10254
|
probability: (z = oe.precipitation_probability_max) == null ? void 0 : z.at(W)
|
|
10255
10255
|
},
|
|
10256
10256
|
rh: {
|
|
10257
10257
|
max: (L = oe.relative_humidity_2m_max) == null ? void 0 : L.at(W),
|
|
10258
|
-
min: (
|
|
10258
|
+
min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(W),
|
|
10259
10259
|
mean: (v = oe.relative_humidity_2m_mean) == null ? void 0 : v.at(W)
|
|
10260
10260
|
},
|
|
10261
10261
|
wind: {
|
|
@@ -10266,8 +10266,8 @@ class Yo {
|
|
|
10266
10266
|
bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(W)) !== null ? (((J = oe.wind_direction_10m_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
|
|
10267
10267
|
}
|
|
10268
10268
|
};
|
|
10269
|
-
const { name: re, url: Be, bg:
|
|
10270
|
-
ge.name = re, ge.url = Be, ge.bg =
|
|
10269
|
+
const { name: re, url: Be, bg: Ue } = this.parseWeatherCode(ge.code, !0);
|
|
10270
|
+
ge.name = re, ge.url = Be, ge.bg = Ue, ge.wind.scale = this.beaufort(this.kts2ms(ge.wind.kts)), ge.wind.direction = this.degree2Direction(ge.wind.degree), Ae.push({
|
|
10271
10271
|
utc: ae.add(W, "d").utc().format(),
|
|
10272
10272
|
model: fe.model,
|
|
10273
10273
|
weather: { ...ge }
|
|
@@ -10294,7 +10294,7 @@ class Yo {
|
|
|
10294
10294
|
bearing: ((de = re.swell_wave_direction_dominant) == null ? void 0 : de.at(W)) !== null ? ((R = re.swell_wave_direction_dominant) == null ? void 0 : R.at(W)) % 360 : null
|
|
10295
10295
|
},
|
|
10296
10296
|
wd: {
|
|
10297
|
-
height: (
|
|
10297
|
+
height: (te = re.wind_wave_height_max) == null ? void 0 : te.at(W),
|
|
10298
10298
|
degree: (ye = re.wind_wave_direction_dominant) == null ? void 0 : ye.at(W),
|
|
10299
10299
|
period: (xe = re.wind_wave_period_max) == null ? void 0 : xe.at(W),
|
|
10300
10300
|
peakPeriod: (Le = re.wind_wave_peak_period_max) == null ? void 0 : Le.at(W),
|
|
@@ -10905,7 +10905,7 @@ const nc = {
|
|
|
10905
10905
|
async fetchTropicals() {
|
|
10906
10906
|
var o, r, s;
|
|
10907
10907
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
10908
|
-
let e = 0, a = 0, i = (o =
|
|
10908
|
+
let e = 0, a = 0, i = (o = Ta.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : o.weight;
|
|
10909
10909
|
if (i > 0) {
|
|
10910
10910
|
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await De.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
10911
10911
|
headers: {
|
|
@@ -10941,7 +10941,7 @@ const nc = {
|
|
|
10941
10941
|
handleRefresh() {
|
|
10942
10942
|
var e, a;
|
|
10943
10943
|
(((a = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : a.features) || []).forEach((i) => {
|
|
10944
|
-
var o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
10944
|
+
var o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v;
|
|
10945
10945
|
if (((o = i.geometry) == null ? void 0 : o.type) === "Point") {
|
|
10946
10946
|
let D = "";
|
|
10947
10947
|
switch (!0) {
|
|
@@ -10969,7 +10969,7 @@ const nc = {
|
|
|
10969
10969
|
}
|
|
10970
10970
|
i.properties.level = D;
|
|
10971
10971
|
}
|
|
10972
|
-
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (
|
|
10972
|
+
((B = i.geometry) == null ? void 0 : B.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (T = S(i.properties.date)) == null ? void 0 : T.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((L = i.geometry) == null ? void 0 : L.type) === "Point" && (i.properties.Name = ((v = (C = i.properties.name) == null ? void 0 : C.trim()) == null ? void 0 : v.replace(/^./, (D) => D.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
10973
10973
|
}), this.handleInit();
|
|
10974
10974
|
},
|
|
10975
10975
|
handleInit() {
|
|
@@ -11188,7 +11188,7 @@ const nc = {
|
|
|
11188
11188
|
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((o) => o == null ? void 0 : o.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), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11189
11189
|
},
|
|
11190
11190
|
handleDateChange() {
|
|
11191
|
-
var t, e, a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
11191
|
+
var t, e, a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe;
|
|
11192
11192
|
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11193
11193
|
const ie = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((R) => R.properties.date === (ie == null ? void 0 : ie.format()) && !R.properties.disabled), ue = this.handleComputePolygons(ce), me = U.featureCollection([...ce]);
|
|
11194
11194
|
ue.forEach((R) => {
|
|
@@ -11228,15 +11228,15 @@ const nc = {
|
|
|
11228
11228
|
})) == null ? void 0 : s.properties) == null ? void 0 : c.nameCn) || ((n = R.properties) == null ? void 0 : n.Name) || "-";
|
|
11229
11229
|
R.properties.nameCn = Pe, R.properties.Name = ((h = (u = R.properties.name) == null ? void 0 : u.trim()) == null ? void 0 : h.replace(/^./, (ve) => ve.toUpperCase())) || R.properties.nameCn, de.push(R);
|
|
11230
11230
|
}
|
|
11231
|
-
let
|
|
11232
|
-
((x = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((f = (_ = R.properties) == null ? void 0 : _.wind) != null && f.kts) ?
|
|
11231
|
+
let te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11232
|
+
((x = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 32 || !((f = (_ = R.properties) == null ? void 0 : _.wind) != null && f.kts) ? te = this.Theme.current.value.colors["tropicals-td"] : ((P = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : P.kts) >= 32 && ((I = (B = R.properties) == null ? void 0 : B.wind) == null ? void 0 : I.kts) < 47 ? te = this.Theme.current.value.colors["tropicals-ts"] : ((z = (T = R.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) >= 47 && ((C = (L = R.properties) == null ? void 0 : L.wind) == null ? void 0 : C.kts) < 63 ? te = this.Theme.current.value.colors["tropicals-sts"] : ((D = (v = R.properties) == null ? void 0 : v.wind) == null ? void 0 : D.kts) >= 63 && ((V = (F = R.properties) == null ? void 0 : F.wind) == null ? void 0 : V.kts) < 79 ? te = this.Theme.current.value.colors["tropicals-ty"] : ((Z = (q = R.properties) == null ? void 0 : q.wind) == null ? void 0 : Z.kts) >= 79 && ((Q = (J = R.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? te = this.Theme.current.value.colors["tropicals-sty"] : ((le = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : le.kts) >= 94 ? te = this.Theme.current.value.colors["tropicals-super-ty"] : te = this.Theme.current.value.colors["tropicals-ty"];
|
|
11233
11233
|
const ye = `<svg t="1719918955501"
|
|
11234
11234
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11235
11235
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
11236
11236
|
<path
|
|
11237
11237
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
11238
|
-
fill="${
|
|
11239
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
11238
|
+
fill="${te}" p-id="18383"></path>
|
|
11239
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${te}"
|
|
11240
11240
|
p-id="18384"></path>
|
|
11241
11241
|
<path
|
|
11242
11242
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -11390,10 +11390,10 @@ const nc = {
|
|
|
11390
11390
|
}, dc = { class: "pb-1" }, hc = { class: "text-h5 font-weight-600" }, pc = {
|
|
11391
11391
|
key: 0,
|
|
11392
11392
|
class: "text-body-1 text-label"
|
|
11393
|
-
}, uc = { class: "text-body-2" }, gc = { class: "text-label" }, fc = { class: "d-flex justify-space-between align-center" }, yc = { class: "w-60" }, bc = { class: "text-label pr-1" }, wc = { class: "flex-1-1-0" }, xc = { class: "text-label pr-1" }, vc = { class: "py-2 d-flex justify-space-between align-center" }, _c = { class: "w-60" }, kc = { class: "text-label pr-1" }, zc = { class: "flex-1-1-0" }, Lc = { class: "text-label pr-1" }, Pc = { class: "d-flex align-center flex-1-1-100 justify-space-between" },
|
|
11393
|
+
}, uc = { class: "text-body-2" }, gc = { class: "text-label" }, fc = { class: "d-flex justify-space-between align-center" }, yc = { class: "w-60" }, bc = { class: "text-label pr-1" }, wc = { class: "flex-1-1-0" }, xc = { class: "text-label pr-1" }, vc = { class: "py-2 d-flex justify-space-between align-center" }, _c = { class: "w-60" }, kc = { class: "text-label pr-1" }, zc = { class: "flex-1-1-0" }, Lc = { class: "text-label pr-1" }, Pc = { class: "d-flex align-center flex-1-1-100 justify-space-between" }, Tc = {
|
|
11394
11394
|
class: "text-label pr-1",
|
|
11395
11395
|
style: { width: "130px" }
|
|
11396
|
-
},
|
|
11396
|
+
}, Cc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Sc = { class: "more" }, Mc = {
|
|
11397
11397
|
class: "my-3",
|
|
11398
11398
|
style: { height: "80px", width: "100%" }
|
|
11399
11399
|
}, Ic = { class: "pa-1 d-flex justify-space-between align-center" }, Dc = { class: "pa-1 d-flex justify-space-between align-center" }, Ac = { class: "d-flex justify-star align-center" }, Rc = { class: "font-weight-600 mr-1" }, Oc = { class: "" }, Bc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Nc = {
|
|
@@ -11426,7 +11426,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11426
11426
|
return y(), M("div", cc, [
|
|
11427
11427
|
l("div", {
|
|
11428
11428
|
class: "menu-bar-box transition pa-1",
|
|
11429
|
-
style:
|
|
11429
|
+
style: ee({ top: a.top + a.paddingTop + 86 + "px", right: o.right + "px" })
|
|
11430
11430
|
}, [
|
|
11431
11431
|
p(c, {
|
|
11432
11432
|
text: t.$t("tropical.tropicals"),
|
|
@@ -11459,11 +11459,11 @@ function om(t, e, a, i, o, r) {
|
|
|
11459
11459
|
default: g(() => [
|
|
11460
11460
|
p(n, null, {
|
|
11461
11461
|
default: g(() => {
|
|
11462
|
-
var f, k, P, B, I,
|
|
11462
|
+
var f, k, P, B, I, T, z, L, C, v, D, F;
|
|
11463
11463
|
return [
|
|
11464
11464
|
l("div", dc, [
|
|
11465
11465
|
l("span", hc, m(a.locale === "en" ? (f = o.activeTropicals) == null ? void 0 : f.Name : ((k = o.activeTropicals) == null ? void 0 : k.nameCn) || ((P = o.activeTropicals) == null ? void 0 : P.Name) || "-"), 1),
|
|
11466
|
-
(I = (B = o.activeTropicals) == null ? void 0 : B.history) != null && I.level ? (y(), M("span", pc, ", " + m((z = (
|
|
11466
|
+
(I = (B = o.activeTropicals) == null ? void 0 : B.history) != null && I.level ? (y(), M("span", pc, ", " + m((z = (T = o.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : z.level), 1)) : A("", !0)
|
|
11467
11467
|
]),
|
|
11468
11468
|
p(s, {
|
|
11469
11469
|
icon: "",
|
|
@@ -11480,7 +11480,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11480
11480
|
}, 8, ["onClick"]),
|
|
11481
11481
|
l("div", uc, [
|
|
11482
11482
|
l("span", gc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11483
|
-
l("span", null, m(r.computeTime(((
|
|
11483
|
+
l("span", null, m(r.computeTime(((C = (L = o.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : C.updated) || ((F = (D = (v = o.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : D.filter((V) => !V.disabled)[0]) == null ? void 0 : F.date), a.timeZone)), 1)
|
|
11484
11484
|
])
|
|
11485
11485
|
];
|
|
11486
11486
|
}),
|
|
@@ -11489,7 +11489,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11489
11489
|
p(u),
|
|
11490
11490
|
p(n, { class: "text-body-1" }, {
|
|
11491
11491
|
default: g(() => {
|
|
11492
|
-
var f, k, P, B, I,
|
|
11492
|
+
var f, k, P, B, I, T, z, L, C;
|
|
11493
11493
|
return [
|
|
11494
11494
|
l("div", fc, [
|
|
11495
11495
|
l("div", yc, [
|
|
@@ -11499,7 +11499,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11499
11499
|
]),
|
|
11500
11500
|
l("div", wc, [
|
|
11501
11501
|
l("label", xc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
11502
|
-
l("span", null, m(((
|
|
11502
|
+
l("span", null, m(((T = (I = o.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : T.pressure) || "-") + " hPa", 1)
|
|
11503
11503
|
])
|
|
11504
11504
|
]),
|
|
11505
11505
|
l("div", vc, [
|
|
@@ -11513,15 +11513,15 @@ function om(t, e, a, i, o, r) {
|
|
|
11513
11513
|
])
|
|
11514
11514
|
]),
|
|
11515
11515
|
l("div", Pc, [
|
|
11516
|
-
l("label",
|
|
11517
|
-
l("div",
|
|
11518
|
-
(y(!0), M(we, null, _e((
|
|
11516
|
+
l("label", Tc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11517
|
+
l("div", Cc, [
|
|
11518
|
+
(y(!0), M(we, null, _e((C = o.activeTropicals) == null ? void 0 : C.forecasts, (v, D) => (y(), O(s, {
|
|
11519
11519
|
key: D,
|
|
11520
11520
|
density: "compact",
|
|
11521
11521
|
variant: v.disabled ? "text" : "flat",
|
|
11522
11522
|
color: v.disabled ? "" : "primary",
|
|
11523
11523
|
"min-width": 30,
|
|
11524
|
-
class:
|
|
11524
|
+
class: He(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
11525
11525
|
onClick: Oe((F) => r.handleForecastToggle(v), ["stop"])
|
|
11526
11526
|
}, {
|
|
11527
11527
|
default: g(() => [
|
|
@@ -11587,11 +11587,11 @@ function om(t, e, a, i, o, r) {
|
|
|
11587
11587
|
_: 1
|
|
11588
11588
|
}),
|
|
11589
11589
|
l("div", Mc, [
|
|
11590
|
-
|
|
11590
|
+
Ze(p(b, { elevation: "16" }, {
|
|
11591
11591
|
default: g(() => [
|
|
11592
11592
|
p(n, null, {
|
|
11593
11593
|
default: g(() => [
|
|
11594
|
-
|
|
11594
|
+
Ze(l("div", Ic, e[6] || (e[6] = [
|
|
11595
11595
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11596
11596
|
l("div", { class: "icon td" }),
|
|
11597
11597
|
l("div", { class: "label" }, "TD")
|
|
@@ -11617,9 +11617,9 @@ function om(t, e, a, i, o, r) {
|
|
|
11617
11617
|
l("div", { class: "label" }, "Super TY")
|
|
11618
11618
|
], -1)
|
|
11619
11619
|
]), 512), [
|
|
11620
|
-
[
|
|
11620
|
+
[Ye, o.showLegend]
|
|
11621
11621
|
]),
|
|
11622
|
-
|
|
11622
|
+
Ze(l("div", Dc, e[7] || (e[7] = [
|
|
11623
11623
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
11624
11624
|
l("div", { class: "icon history" }),
|
|
11625
11625
|
l("div", { class: "label" }, "History")
|
|
@@ -11637,7 +11637,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11637
11637
|
l("div", { class: "label" }, "50kts Radii")
|
|
11638
11638
|
], -1)
|
|
11639
11639
|
]), 512), [
|
|
11640
|
-
[
|
|
11640
|
+
[Ye, o.showLegend]
|
|
11641
11641
|
])
|
|
11642
11642
|
]),
|
|
11643
11643
|
_: 1
|
|
@@ -11645,11 +11645,11 @@ function om(t, e, a, i, o, r) {
|
|
|
11645
11645
|
]),
|
|
11646
11646
|
_: 1
|
|
11647
11647
|
}, 512), [
|
|
11648
|
-
[
|
|
11648
|
+
[Ye, o.showLegend]
|
|
11649
11649
|
])
|
|
11650
11650
|
])
|
|
11651
11651
|
])) : A("", !0),
|
|
11652
|
-
|
|
11652
|
+
Ze(p(b, {
|
|
11653
11653
|
id: "tropicalHoverMarkerInfo",
|
|
11654
11654
|
elevation: "16",
|
|
11655
11655
|
"max-width": "280"
|
|
@@ -11670,7 +11670,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11670
11670
|
p(_),
|
|
11671
11671
|
p(n, { class: "text-body-1" }, {
|
|
11672
11672
|
default: g(() => {
|
|
11673
|
-
var f, k, P, B, I,
|
|
11673
|
+
var f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se;
|
|
11674
11674
|
return [
|
|
11675
11675
|
l("div", Bc, [
|
|
11676
11676
|
((f = o.hoverPoint) == null ? void 0 : f.type) === "forecast" ? (y(), M("div", Nc, [
|
|
@@ -11683,13 +11683,13 @@ function om(t, e, a, i, o, r) {
|
|
|
11683
11683
|
])) : A("", !0),
|
|
11684
11684
|
((I = o.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", Hc, [
|
|
11685
11685
|
l("label", Uc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
11686
|
-
l("span", null, m(r.computeTzTime((
|
|
11686
|
+
l("span", null, m(r.computeTzTime((T = o.hoverPoint) == null ? void 0 : T.date, a.timeZone)), 1)
|
|
11687
11687
|
])) : A("", !0),
|
|
11688
11688
|
((z = o.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), M("div", Wc, [
|
|
11689
11689
|
l("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
|
|
11690
11690
|
l("span", null, m(((L = o.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
|
|
11691
11691
|
])) : A("", !0),
|
|
11692
|
-
((
|
|
11692
|
+
((C = o.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), M("div", Vc, [
|
|
11693
11693
|
l("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
|
|
11694
11694
|
l("span", null, m(((D = JSON.parse((v = o.hoverPoint) == null ? void 0 : v.wind)) == null ? void 0 : D.kts) ?? "-") + " kts", 1)
|
|
11695
11695
|
])) : A("", !0),
|
|
@@ -11721,7 +11721,7 @@ function om(t, e, a, i, o, r) {
|
|
|
11721
11721
|
]),
|
|
11722
11722
|
_: 1
|
|
11723
11723
|
}, 512), [
|
|
11724
|
-
[
|
|
11724
|
+
[Ye, o.showHoverPoint]
|
|
11725
11725
|
])
|
|
11726
11726
|
]);
|
|
11727
11727
|
}
|
|
@@ -11741,6 +11741,10 @@ const im = {
|
|
|
11741
11741
|
type: String,
|
|
11742
11742
|
default: "top"
|
|
11743
11743
|
},
|
|
11744
|
+
bgClass: {
|
|
11745
|
+
type: String,
|
|
11746
|
+
default: ""
|
|
11747
|
+
},
|
|
11744
11748
|
locale: {
|
|
11745
11749
|
type: String,
|
|
11746
11750
|
default: "en"
|
|
@@ -11842,7 +11846,7 @@ const im = {
|
|
|
11842
11846
|
},
|
|
11843
11847
|
currentTimestamp: {
|
|
11844
11848
|
handler() {
|
|
11845
|
-
this.currentDateTimeZ = S(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${S.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}
|
|
11849
|
+
this.currentTimestamp ? (this.currentDateTimeZ = S(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${S.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`) : (this.currentDateTimeZ = void 0, this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = void 0);
|
|
11846
11850
|
},
|
|
11847
11851
|
immediate: !0
|
|
11848
11852
|
},
|
|
@@ -11905,43 +11909,38 @@ const im = {
|
|
|
11905
11909
|
}, rm = {
|
|
11906
11910
|
class: "idm-gl4-time-picker",
|
|
11907
11911
|
ref: "idmGl4Timepicker"
|
|
11908
|
-
}, lm = {
|
|
11912
|
+
}, lm = { class: "flex-1-1-0" }, sm = {
|
|
11909
11913
|
class: "pa-0",
|
|
11910
11914
|
style: { width: "250px" }
|
|
11911
|
-
},
|
|
11915
|
+
}, nm = {
|
|
11912
11916
|
class: "h-100 pa-0 d-flex flex-column justify-start align-center",
|
|
11913
11917
|
style: { width: "100px" }
|
|
11914
|
-
},
|
|
11918
|
+
}, cm = {
|
|
11915
11919
|
class: "d-flex justify-center align-center text-body-2",
|
|
11916
11920
|
style: { height: "56px" }
|
|
11917
11921
|
};
|
|
11918
|
-
function
|
|
11919
|
-
const s = w("
|
|
11922
|
+
function mm(t, e, a, i, o, r) {
|
|
11923
|
+
const s = w("VDatePicker"), c = w("VDivider"), n = w("VListItemTitle"), u = w("VListItem"), h = w("VList"), b = w("VCardText"), x = w("VBtn"), _ = w("VCardActions"), f = w("VCard");
|
|
11920
11924
|
return y(), M("div", rm, [
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
default: g(() => [
|
|
11929
|
-
K(m(o.currentDateTime) + " | UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
11930
|
-
]),
|
|
11931
|
-
_: 1
|
|
11932
|
-
}, 8, ["height", "width", "onClick"]),
|
|
11925
|
+
l("div", {
|
|
11926
|
+
style: ee({ height: a.height + "px", width: a.width + "px" }),
|
|
11927
|
+
class: He([a.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer"]),
|
|
11928
|
+
onClick: e[0] || (e[0] = (...k) => r.handleOpenDatePicker && r.handleOpenDatePicker(...k))
|
|
11929
|
+
}, [
|
|
11930
|
+
l("span", lm, m(o.currentDateTime) + " | UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
11931
|
+
], 6),
|
|
11933
11932
|
o.showDatePicker ? (y(), O(f, {
|
|
11934
11933
|
key: 0,
|
|
11935
11934
|
class: "card-box d-flex flex-column border",
|
|
11936
|
-
style:
|
|
11935
|
+
style: ee(r.getStyle)
|
|
11937
11936
|
}, {
|
|
11938
11937
|
default: g(() => [
|
|
11939
|
-
p(
|
|
11938
|
+
p(b, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
11940
11939
|
default: g(() => [
|
|
11941
|
-
l("div",
|
|
11942
|
-
p(
|
|
11940
|
+
l("div", sm, [
|
|
11941
|
+
p(s, {
|
|
11943
11942
|
modelValue: o.currentDate,
|
|
11944
|
-
"onUpdate:modelValue": e[
|
|
11943
|
+
"onUpdate:modelValue": e[1] || (e[1] = (k) => o.currentDate = k),
|
|
11945
11944
|
min: o.minDate,
|
|
11946
11945
|
max: o.maxDate,
|
|
11947
11946
|
"mode-icon": () => r.currentYear,
|
|
@@ -11953,15 +11952,15 @@ function cm(t, e, a, i, o, r) {
|
|
|
11953
11952
|
"onUpdate:month": r.handleUpdateMonth
|
|
11954
11953
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
11955
11954
|
]),
|
|
11956
|
-
p(
|
|
11955
|
+
p(c, {
|
|
11957
11956
|
class: "h-100",
|
|
11958
11957
|
vertical: ""
|
|
11959
11958
|
}),
|
|
11960
|
-
l("div",
|
|
11961
|
-
l("div",
|
|
11962
|
-
p(
|
|
11959
|
+
l("div", nm, [
|
|
11960
|
+
l("div", cm, m(o.currentTime), 1),
|
|
11961
|
+
p(h, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
11963
11962
|
default: g(() => [
|
|
11964
|
-
(y(!0), M(we, null, _e(r.hourOptions, (k, P) => (y(), O(
|
|
11963
|
+
(y(!0), M(we, null, _e(r.hourOptions, (k, P) => (y(), O(u, {
|
|
11965
11964
|
key: P,
|
|
11966
11965
|
value: k,
|
|
11967
11966
|
color: "primary",
|
|
@@ -11971,7 +11970,7 @@ function cm(t, e, a, i, o, r) {
|
|
|
11971
11970
|
"min-height": "26"
|
|
11972
11971
|
}, {
|
|
11973
11972
|
default: g(() => [
|
|
11974
|
-
p(
|
|
11973
|
+
p(n, {
|
|
11975
11974
|
class: "text-body-2 font-weight-600 text-center",
|
|
11976
11975
|
onClick: (B) => o.currentTime = k
|
|
11977
11976
|
}, {
|
|
@@ -11990,13 +11989,13 @@ function cm(t, e, a, i, o, r) {
|
|
|
11990
11989
|
]),
|
|
11991
11990
|
_: 1
|
|
11992
11991
|
}),
|
|
11993
|
-
p(
|
|
11992
|
+
p(c),
|
|
11994
11993
|
p(_, {
|
|
11995
11994
|
class: "justify-end pa-0 pr-4",
|
|
11996
11995
|
style: { height: "50px" }
|
|
11997
11996
|
}, {
|
|
11998
11997
|
default: g(() => [
|
|
11999
|
-
p(
|
|
11998
|
+
p(x, {
|
|
12000
11999
|
size: "small",
|
|
12001
12000
|
variant: "tonal",
|
|
12002
12001
|
class: "text-none text-body-2",
|
|
@@ -12007,7 +12006,7 @@ function cm(t, e, a, i, o, r) {
|
|
|
12007
12006
|
]),
|
|
12008
12007
|
_: 1
|
|
12009
12008
|
}, 8, ["onClick"]),
|
|
12010
|
-
p(
|
|
12009
|
+
p(x, {
|
|
12011
12010
|
size: "small",
|
|
12012
12011
|
variant: "flat",
|
|
12013
12012
|
color: "primary",
|
|
@@ -12027,8 +12026,8 @@ function cm(t, e, a, i, o, r) {
|
|
|
12027
12026
|
}, 8, ["style"])) : A("", !0)
|
|
12028
12027
|
], 512);
|
|
12029
12028
|
}
|
|
12030
|
-
const Ma = /* @__PURE__ */ Y(im, [["render",
|
|
12031
|
-
const
|
|
12029
|
+
const Ma = /* @__PURE__ */ Y(im, [["render", mm]]);
|
|
12030
|
+
const dm = {
|
|
12032
12031
|
name: "DateRangePicker",
|
|
12033
12032
|
props: {
|
|
12034
12033
|
width: {
|
|
@@ -12212,19 +12211,19 @@ const mm = {
|
|
|
12212
12211
|
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
12213
12212
|
}
|
|
12214
12213
|
}
|
|
12215
|
-
},
|
|
12214
|
+
}, hm = {
|
|
12216
12215
|
class: "idm-gl4-date-picker",
|
|
12217
12216
|
ref: "idmGl4DatePicker"
|
|
12218
|
-
},
|
|
12219
|
-
function
|
|
12217
|
+
}, pm = { class: "flex-1-1-0" }, um = { class: "pa-0" };
|
|
12218
|
+
function gm(t, e, a, i, o, r) {
|
|
12220
12219
|
const s = w("VIcon"), c = w("VDatePicker"), n = w("VCardText"), u = w("VDivider"), h = w("VBtn"), b = w("VCardActions"), x = w("VCard");
|
|
12221
|
-
return y(), M("div",
|
|
12220
|
+
return y(), M("div", hm, [
|
|
12222
12221
|
l("div", {
|
|
12223
|
-
style:
|
|
12222
|
+
style: ee({ height: a.height + "px", width: a.width + "px" }),
|
|
12224
12223
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
12225
12224
|
onClick: e[0] || (e[0] = (..._) => r.handleOpenDatePicker && r.handleOpenDatePicker(..._))
|
|
12226
12225
|
}, [
|
|
12227
|
-
l("span",
|
|
12226
|
+
l("span", pm, m(o.dateRangeStr), 1),
|
|
12228
12227
|
o.dateRangeStr ? (y(), O(s, {
|
|
12229
12228
|
key: 0,
|
|
12230
12229
|
class: "text-h5",
|
|
@@ -12235,12 +12234,12 @@ function um(t, e, a, i, o, r) {
|
|
|
12235
12234
|
o.showDatePicker ? (y(), O(x, {
|
|
12236
12235
|
key: 0,
|
|
12237
12236
|
class: "card-box d-flex flex-column border",
|
|
12238
|
-
style:
|
|
12237
|
+
style: ee(r.getStyle)
|
|
12239
12238
|
}, {
|
|
12240
12239
|
default: g(() => [
|
|
12241
12240
|
p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
12242
12241
|
default: g(() => [
|
|
12243
|
-
l("div",
|
|
12242
|
+
l("div", um, [
|
|
12244
12243
|
p(c, {
|
|
12245
12244
|
modelValue: o.dateRange,
|
|
12246
12245
|
"onUpdate:modelValue": e[1] || (e[1] = (_) => o.dateRange = _),
|
|
@@ -12296,8 +12295,8 @@ function um(t, e, a, i, o, r) {
|
|
|
12296
12295
|
}, 8, ["style"])) : A("", !0)
|
|
12297
12296
|
], 512);
|
|
12298
12297
|
}
|
|
12299
|
-
const Ko = /* @__PURE__ */ Y(
|
|
12300
|
-
const
|
|
12298
|
+
const Ko = /* @__PURE__ */ Y(dm, [["render", gm]]);
|
|
12299
|
+
const fm = {
|
|
12301
12300
|
name: "IdmPoint",
|
|
12302
12301
|
components: {
|
|
12303
12302
|
DateTimePicker: Ma,
|
|
@@ -12549,10 +12548,10 @@ const gm = {
|
|
|
12549
12548
|
(o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
12550
12549
|
},
|
|
12551
12550
|
initTableData(t) {
|
|
12552
|
-
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
12551
|
+
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye;
|
|
12553
12552
|
this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
|
|
12554
12553
|
const e = ((s = Pa.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
12555
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.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((f = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (
|
|
12554
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.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((f = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((P = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : P.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Z = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((le = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.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((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.currentDir = (R = e == null ? void 0 : e.current) == null ? void 0 : R.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 = (ye = e == null ? void 0 : e.weather) == null ? void 0 : ye.url;
|
|
12556
12555
|
},
|
|
12557
12556
|
handleBind() {
|
|
12558
12557
|
var t, e;
|
|
@@ -12603,68 +12602,68 @@ const gm = {
|
|
|
12603
12602
|
this.$emit("cancelFollow", t);
|
|
12604
12603
|
}
|
|
12605
12604
|
}
|
|
12606
|
-
},
|
|
12605
|
+
}, ym = { class: "idm-gl4-spot" }, bm = { class: "d-flex justify-start align-center" }, wm = { class: "text-h6 font-weight-600 mx-2" }, xm = { class: "d-flex justify-start align-center ga-1 mb-1" }, vm = {
|
|
12607
12606
|
class: "multi-color-icon",
|
|
12608
12607
|
"aria-hidden": "true"
|
|
12609
|
-
},
|
|
12608
|
+
}, _m = ["xlink:href"], km = { class: "d-flex justify-start align-center ga-1 mb-1" }, zm = {
|
|
12610
12609
|
class: "multi-color-icon",
|
|
12611
12610
|
"aria-hidden": "true"
|
|
12612
|
-
},
|
|
12611
|
+
}, Lm = ["xlink:href"], Pm = { class: "d-flex justify-start align-center ga-1 mb-1" }, Tm = {
|
|
12613
12612
|
class: "multi-color-icon",
|
|
12614
12613
|
"aria-hidden": "true"
|
|
12615
|
-
}, Cm = ["xlink:href"],
|
|
12614
|
+
}, Cm = ["xlink:href"], Sm = { class: "d-flex justify-start align-center ga-1 mb-1" }, Mm = {
|
|
12616
12615
|
class: "multi-color-icon",
|
|
12617
12616
|
"aria-hidden": "true"
|
|
12618
|
-
},
|
|
12617
|
+
}, Im = ["xlink:href"], Dm = { class: "d-flex justify-start align-center" }, Am = { class: "mx-2" }, Rm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Om = {
|
|
12619
12618
|
style: { width: "100px" },
|
|
12620
12619
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12621
|
-
},
|
|
12620
|
+
}, Bm = { class: "pa-0 px-0" }, Nm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Em = {
|
|
12622
12621
|
cols: "9",
|
|
12623
12622
|
class: "pa-0 px-0"
|
|
12624
|
-
},
|
|
12623
|
+
}, jm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Fm = {
|
|
12625
12624
|
style: { width: "100px" },
|
|
12626
12625
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12627
|
-
},
|
|
12626
|
+
}, Hm = {
|
|
12628
12627
|
style: { width: "150px" },
|
|
12629
12628
|
class: "pa-0 text-left"
|
|
12630
|
-
},
|
|
12629
|
+
}, Um = {
|
|
12631
12630
|
style: { width: "80px" },
|
|
12632
12631
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12633
|
-
},
|
|
12632
|
+
}, Wm = {
|
|
12634
12633
|
cols: "3",
|
|
12635
12634
|
class: "pa-0 px-0 text-left"
|
|
12636
|
-
},
|
|
12635
|
+
}, Gm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Vm = {
|
|
12637
12636
|
style: { width: "100px" },
|
|
12638
12637
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12639
|
-
},
|
|
12638
|
+
}, Zm = {
|
|
12640
12639
|
style: { width: "150px" },
|
|
12641
12640
|
class: "pa-0 text-left"
|
|
12642
|
-
},
|
|
12641
|
+
}, Ym = {
|
|
12643
12642
|
style: { width: "80px" },
|
|
12644
12643
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12645
|
-
},
|
|
12644
|
+
}, qm = {
|
|
12646
12645
|
cols: "3",
|
|
12647
12646
|
class: "pa-0 text-left"
|
|
12648
|
-
},
|
|
12647
|
+
}, Xm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Km = {
|
|
12649
12648
|
style: { width: "100px" },
|
|
12650
12649
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12651
|
-
},
|
|
12650
|
+
}, $m = {
|
|
12652
12651
|
style: { width: "150px" },
|
|
12653
12652
|
class: "pa-0 text-left"
|
|
12654
|
-
},
|
|
12653
|
+
}, Jm = {
|
|
12655
12654
|
style: { width: "80px" },
|
|
12656
12655
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
12657
|
-
},
|
|
12656
|
+
}, Qm = { class: "pa-0 text-left" }, ed = { id: "idm-position-icon" }, td = {
|
|
12658
12657
|
class: "multi-color-icon",
|
|
12659
12658
|
style: { height: "30px", width: "30px" },
|
|
12660
12659
|
"aria-hidden": "true"
|
|
12661
|
-
},
|
|
12662
|
-
function
|
|
12663
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), _ = w("DateTimePicker"), f = w("VBtnToggle"), k = w("VCardText"), P = w("VCardActions"), B = w("VForm"), I = w("VCard"),
|
|
12664
|
-
return y(), M("div",
|
|
12660
|
+
}, ad = ["xlink:href"];
|
|
12661
|
+
function od(t, e, a, i, o, r) {
|
|
12662
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), _ = w("DateTimePicker"), f = w("VBtnToggle"), k = w("VCardText"), P = w("VCardActions"), B = w("VForm"), I = w("VCard"), T = w("VIcon");
|
|
12663
|
+
return y(), M("div", ym, [
|
|
12665
12664
|
l("div", {
|
|
12666
12665
|
class: "menu-bar-box transition pa-1",
|
|
12667
|
-
style:
|
|
12666
|
+
style: ee({ top: a.top + a.paddingTop + 126 + "px", right: o.right + "px" })
|
|
12668
12667
|
}, [
|
|
12669
12668
|
p(c, {
|
|
12670
12669
|
text: t.$t("spot.spotsMeteo"),
|
|
@@ -12691,13 +12690,13 @@ function ad(t, e, a, i, o, r) {
|
|
|
12691
12690
|
o.showForm && !a.simple ? (y(), O(I, {
|
|
12692
12691
|
key: 0,
|
|
12693
12692
|
class: "spot-form-card",
|
|
12694
|
-
style:
|
|
12693
|
+
style: ee({ top: a.top + a.paddingTop + 126 + "px", right: o.right + 50 + "px" })
|
|
12695
12694
|
}, {
|
|
12696
12695
|
default: g(() => [
|
|
12697
12696
|
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12698
12697
|
default: g(() => [
|
|
12699
|
-
l("div",
|
|
12700
|
-
l("div",
|
|
12698
|
+
l("div", bm, [
|
|
12699
|
+
l("div", wm, m(t.$t("spot.spotWeather")), 1)
|
|
12701
12700
|
]),
|
|
12702
12701
|
p(s, {
|
|
12703
12702
|
icon: "",
|
|
@@ -12725,11 +12724,11 @@ function ad(t, e, a, i, o, r) {
|
|
|
12725
12724
|
default: g(() => [
|
|
12726
12725
|
p(k, { class: "text-body-1 py-1" }, {
|
|
12727
12726
|
default: g(() => [
|
|
12728
|
-
l("div",
|
|
12729
|
-
(y(), M("svg",
|
|
12727
|
+
l("div", xm, [
|
|
12728
|
+
(y(), M("svg", vm, [
|
|
12730
12729
|
l("use", {
|
|
12731
12730
|
"xlink:href": `#icon-lng-${a.theme}`
|
|
12732
|
-
}, null, 8,
|
|
12731
|
+
}, null, 8, _m)
|
|
12733
12732
|
])),
|
|
12734
12733
|
l("div", null, m(t.$t("spot.lng")), 1)
|
|
12735
12734
|
]),
|
|
@@ -12802,11 +12801,11 @@ function ad(t, e, a, i, o, r) {
|
|
|
12802
12801
|
]),
|
|
12803
12802
|
_: 1
|
|
12804
12803
|
}),
|
|
12805
|
-
l("div",
|
|
12806
|
-
(y(), M("svg",
|
|
12804
|
+
l("div", km, [
|
|
12805
|
+
(y(), M("svg", zm, [
|
|
12807
12806
|
l("use", {
|
|
12808
12807
|
"xlink:href": `#icon-lng-${a.theme}`
|
|
12809
|
-
}, null, 8,
|
|
12808
|
+
}, null, 8, Lm)
|
|
12810
12809
|
])),
|
|
12811
12810
|
l("div", null, m(t.$t("spot.lat")), 1)
|
|
12812
12811
|
]),
|
|
@@ -12882,8 +12881,8 @@ function ad(t, e, a, i, o, r) {
|
|
|
12882
12881
|
]),
|
|
12883
12882
|
_: 1
|
|
12884
12883
|
}),
|
|
12885
|
-
l("div",
|
|
12886
|
-
(y(), M("svg",
|
|
12884
|
+
l("div", Pm, [
|
|
12885
|
+
(y(), M("svg", Tm, [
|
|
12887
12886
|
l("use", {
|
|
12888
12887
|
"xlink:href": `#icon-date-time-${a.theme}`
|
|
12889
12888
|
}, null, 8, Cm)
|
|
@@ -12909,11 +12908,11 @@ function ad(t, e, a, i, o, r) {
|
|
|
12909
12908
|
]),
|
|
12910
12909
|
_: 1
|
|
12911
12910
|
}),
|
|
12912
|
-
l("div",
|
|
12913
|
-
(y(), M("svg",
|
|
12911
|
+
l("div", Sm, [
|
|
12912
|
+
(y(), M("svg", Mm, [
|
|
12914
12913
|
l("use", {
|
|
12915
12914
|
"xlink:href": `#icon-forecast-model-${a.theme}`
|
|
12916
|
-
}, null, 8,
|
|
12915
|
+
}, null, 8, Im)
|
|
12917
12916
|
])),
|
|
12918
12917
|
l("div", null, m(t.$t("weather.forecastModel")), 1)
|
|
12919
12918
|
]),
|
|
@@ -12938,7 +12937,7 @@ function ad(t, e, a, i, o, r) {
|
|
|
12938
12937
|
density: "compact",
|
|
12939
12938
|
height: "30",
|
|
12940
12939
|
value: "GFS",
|
|
12941
|
-
class:
|
|
12940
|
+
class: He(["text-none flex-1-1-0", o.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
|
|
12942
12941
|
color: o.form.forecastModel === "GFS" ? "primary" : "",
|
|
12943
12942
|
"base-color": ""
|
|
12944
12943
|
}, {
|
|
@@ -12951,7 +12950,7 @@ function ad(t, e, a, i, o, r) {
|
|
|
12951
12950
|
p(s, {
|
|
12952
12951
|
density: "compact",
|
|
12953
12952
|
height: "30",
|
|
12954
|
-
class:
|
|
12953
|
+
class: He(["text-none flex-1-1-0", o.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
12955
12954
|
color: o.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
12956
12955
|
"base-color": "",
|
|
12957
12956
|
value: "ECMWF"
|
|
@@ -13020,9 +13019,9 @@ function ad(t, e, a, i, o, r) {
|
|
|
13020
13019
|
default: g(() => [
|
|
13021
13020
|
p(n, { class: "d-flex justify-space-between align-center" }, {
|
|
13022
13021
|
default: g(() => [
|
|
13023
|
-
l("div",
|
|
13022
|
+
l("div", Dm, [
|
|
13024
13023
|
e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
13025
|
-
l("div",
|
|
13024
|
+
l("div", Am, m(r.computePosition(o.form || o.currentHourData)), 1)
|
|
13026
13025
|
]),
|
|
13027
13026
|
p(s, {
|
|
13028
13027
|
class: "mr-n2",
|
|
@@ -13048,34 +13047,34 @@ function ad(t, e, a, i, o, r) {
|
|
|
13048
13047
|
default: g(() => {
|
|
13049
13048
|
var z, L;
|
|
13050
13049
|
return [
|
|
13051
|
-
l("div",
|
|
13052
|
-
l("div",
|
|
13053
|
-
l("div",
|
|
13050
|
+
l("div", Rm, [
|
|
13051
|
+
l("div", Om, m(t.$t("time.time")), 1),
|
|
13052
|
+
l("div", Bm, m(r.computedTzTime((z = o.currentHourData) == null ? void 0 : z.utc)), 1)
|
|
13054
13053
|
]),
|
|
13055
|
-
l("div",
|
|
13054
|
+
l("div", Nm, [
|
|
13056
13055
|
e[18] || (e[18] = l("div", {
|
|
13057
13056
|
style: { width: "100px" },
|
|
13058
13057
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13059
13058
|
}, "LT", -1)),
|
|
13060
|
-
l("div",
|
|
13059
|
+
l("div", Em, m(r.computedLocalTime((L = o.currentHourData) == null ? void 0 : L.utc)), 1)
|
|
13061
13060
|
]),
|
|
13062
|
-
l("div",
|
|
13063
|
-
l("div",
|
|
13064
|
-
l("div",
|
|
13065
|
-
l("div",
|
|
13066
|
-
l("div",
|
|
13061
|
+
l("div", jm, [
|
|
13062
|
+
l("div", Fm, m(t.$t("weather.wind")), 1),
|
|
13063
|
+
l("div", Hm, m(o.currentHourData.windDir ?? "-") + "/" + m(o.currentHourData.windSpeed ?? "-") + "kts/BF" + m(o.currentHourData.windLevel ?? "-"), 1),
|
|
13064
|
+
l("div", Um, m(t.$t("weather.sigWave")), 1),
|
|
13065
|
+
l("div", Wm, m(o.currentHourData.sigwaveDir ?? "-") + "/" + m(o.currentHourData.sigwaveHeight ?? "-") + "m/" + m(o.currentHourData.sigwavePeriod ?? "-") + "s", 1)
|
|
13067
13066
|
]),
|
|
13068
|
-
l("div",
|
|
13069
|
-
l("div",
|
|
13070
|
-
l("div",
|
|
13071
|
-
l("div",
|
|
13072
|
-
l("div",
|
|
13067
|
+
l("div", Gm, [
|
|
13068
|
+
l("div", Vm, m(t.$t("weather.windWave")), 1),
|
|
13069
|
+
l("div", Zm, m(o.currentHourData.windwaveDir ?? "-") + "/" + m(o.currentHourData.windwaveHeight ?? "-") + "m/" + m(o.currentHourData.windwavePeriod ?? "-") + "s", 1),
|
|
13070
|
+
l("div", Ym, m(t.$t("weather.swell")), 1),
|
|
13071
|
+
l("div", qm, m(o.currentHourData.swellDir ?? "-") + "/" + m(o.currentHourData.swellHeight ?? "-") + "m/" + m(o.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
13073
13072
|
]),
|
|
13074
|
-
l("div",
|
|
13075
|
-
l("div",
|
|
13076
|
-
l("div",
|
|
13077
|
-
l("div",
|
|
13078
|
-
l("div",
|
|
13073
|
+
l("div", Xm, [
|
|
13074
|
+
l("div", Km, m(t.$t("weather.current")), 1),
|
|
13075
|
+
l("div", $m, m(o.currentHourData.currentDir ?? "-") + "/" + m(o.currentHourData.currentSpeed ?? "-") + "kts", 1),
|
|
13076
|
+
l("div", Jm, m(t.$t("weather.visibility")), 1),
|
|
13077
|
+
l("div", Qm, m(o.currentHourData.visibility ?? "-") + " nm", 1)
|
|
13079
13078
|
])
|
|
13080
13079
|
];
|
|
13081
13080
|
}),
|
|
@@ -13085,8 +13084,8 @@ function ad(t, e, a, i, o, r) {
|
|
|
13085
13084
|
p(P, { class: "d-flex justify-space-between align-center" }, {
|
|
13086
13085
|
default: g(() => [
|
|
13087
13086
|
a.followList.some((z) => {
|
|
13088
|
-
var L,
|
|
13089
|
-
return ((L = z == null ? void 0 : z.coordinate) == null ? void 0 : L.lng) === o.form.lng && ((
|
|
13087
|
+
var L, C;
|
|
13088
|
+
return ((L = z == null ? void 0 : z.coordinate) == null ? void 0 : L.lng) === o.form.lng && ((C = z == null ? void 0 : z.coordinate) == null ? void 0 : C.lat) === o.form.lat;
|
|
13090
13089
|
}) ? (y(), O(s, {
|
|
13091
13090
|
key: 0,
|
|
13092
13091
|
class: "text-none text-body-1",
|
|
@@ -13098,7 +13097,7 @@ function ad(t, e, a, i, o, r) {
|
|
|
13098
13097
|
onClick: Oe(r.handleCancelFollow, ["stop"])
|
|
13099
13098
|
}, {
|
|
13100
13099
|
prepend: g(() => [
|
|
13101
|
-
p(
|
|
13100
|
+
p(T, {
|
|
13102
13101
|
color: "warning",
|
|
13103
13102
|
style: { "font-size": "20px", "margin-top": "-2px" }
|
|
13104
13103
|
})
|
|
@@ -13118,7 +13117,7 @@ function ad(t, e, a, i, o, r) {
|
|
|
13118
13117
|
onClick: Oe(r.handleFollow, ["stop"])
|
|
13119
13118
|
}, {
|
|
13120
13119
|
prepend: g(() => [
|
|
13121
|
-
p(
|
|
13120
|
+
p(T, { style: { "font-size": "20px", "margin-top": "-2px" } })
|
|
13122
13121
|
]),
|
|
13123
13122
|
default: g(() => [
|
|
13124
13123
|
K(m(t.$t("actions.follow")) + " ", 1)
|
|
@@ -13144,19 +13143,19 @@ function ad(t, e, a, i, o, r) {
|
|
|
13144
13143
|
]),
|
|
13145
13144
|
_: 1
|
|
13146
13145
|
})) : A("", !0),
|
|
13147
|
-
|
|
13148
|
-
(y(), M("svg",
|
|
13146
|
+
Ze(l("div", ed, [
|
|
13147
|
+
(y(), M("svg", td, [
|
|
13149
13148
|
l("use", {
|
|
13150
13149
|
"xlink:href": `#icon-spot-${a.theme}`
|
|
13151
|
-
}, null, 8,
|
|
13150
|
+
}, null, 8, ad)
|
|
13152
13151
|
]))
|
|
13153
13152
|
], 512), [
|
|
13154
|
-
[
|
|
13153
|
+
[Ye, o.showMeteo]
|
|
13155
13154
|
])
|
|
13156
13155
|
]);
|
|
13157
13156
|
}
|
|
13158
|
-
const
|
|
13159
|
-
const
|
|
13157
|
+
const id = /* @__PURE__ */ Y(fm, [["render", od]]);
|
|
13158
|
+
const rd = {
|
|
13160
13159
|
name: "IdmMeasure",
|
|
13161
13160
|
props: {
|
|
13162
13161
|
simple: {
|
|
@@ -13336,10 +13335,10 @@ const id = {
|
|
|
13336
13335
|
let a = 0;
|
|
13337
13336
|
const i = [];
|
|
13338
13337
|
for (let o = 1; o < e.length; o++) {
|
|
13339
|
-
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h =
|
|
13338
|
+
const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h = Ve.calculateDistance(n, u, c.mode === "RL", 4), b = Ve.calculateBearing(n, u, c.mode === "RL", 2);
|
|
13340
13339
|
a = X.roundPrecision(a + h, 4);
|
|
13341
13340
|
let x;
|
|
13342
|
-
c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(
|
|
13341
|
+
c.mode === "RL" ? x = X.convertToMonotonicLng([n, u]) : x = X.convertToMonotonicLng(Ve.interpolateCoordinates(n, u, 200));
|
|
13343
13342
|
const _ = U.lineString(x.map((k) => [k.lng, k.lat]));
|
|
13344
13343
|
_.properties.dist = h, _.properties.bearing = b, _.properties.total = a, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
|
|
13345
13344
|
const f = e[o];
|
|
@@ -13354,17 +13353,17 @@ const id = {
|
|
|
13354
13353
|
let r, s;
|
|
13355
13354
|
if (e) {
|
|
13356
13355
|
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: a.lng, lat: a.lat };
|
|
13357
|
-
r =
|
|
13356
|
+
r = Ve.calculateDistance(u, h, n.mode === "RL", 4), s = Ve.calculateBearing(u, h, n.mode === "RL", 2);
|
|
13358
13357
|
let b;
|
|
13359
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
13358
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ve.interpolateCoordinates(u, h, 200));
|
|
13360
13359
|
const x = U.lineString(b.map((_) => [_.lng, _.lat]));
|
|
13361
13360
|
x.properties.dist = r, x.properties.bearing = s, o.features.push(x);
|
|
13362
13361
|
}
|
|
13363
13362
|
if (i) {
|
|
13364
13363
|
const n = a.properties, u = a, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
13365
|
-
r =
|
|
13364
|
+
r = Ve.calculateDistance(u, h, n.mode === "RL", 4), s = Ve.calculateBearing(u, h, n.mode === "RL", 2);
|
|
13366
13365
|
let b;
|
|
13367
|
-
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(
|
|
13366
|
+
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ve.interpolateCoordinates(u, h, 200));
|
|
13368
13367
|
const x = U.lineString(b.map((_) => [_.lng, _.lat]));
|
|
13369
13368
|
x.properties.dist = r, x.properties.bearing = s, o.features.push(x);
|
|
13370
13369
|
}
|
|
@@ -13514,13 +13513,13 @@ const id = {
|
|
|
13514
13513
|
}), this.pointMarkers[t.id] = [], (_ = this.tipMarker) == null || _.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((k = this.map) != null && k.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
13515
13514
|
}
|
|
13516
13515
|
}
|
|
13517
|
-
},
|
|
13518
|
-
function
|
|
13516
|
+
}, ld = { class: "idm-gl4-measure" };
|
|
13517
|
+
function sd(t, e, a, i, o, r) {
|
|
13519
13518
|
const s = w("VBtn"), c = w("VTooltip");
|
|
13520
|
-
return y(), M("div",
|
|
13519
|
+
return y(), M("div", ld, [
|
|
13521
13520
|
l("div", {
|
|
13522
13521
|
class: "menu-bar-box transition pa-1",
|
|
13523
|
-
style:
|
|
13522
|
+
style: ee({ top: a.top + a.paddingTop + 166 + "px", right: o.right + "px" })
|
|
13524
13523
|
}, [
|
|
13525
13524
|
p(c, {
|
|
13526
13525
|
text: t.$t("measure.measure"),
|
|
@@ -13546,8 +13545,8 @@ function ld(t, e, a, i, o, r) {
|
|
|
13546
13545
|
], 4)
|
|
13547
13546
|
]);
|
|
13548
13547
|
}
|
|
13549
|
-
const
|
|
13550
|
-
const
|
|
13548
|
+
const nd = /* @__PURE__ */ Y(rd, [["render", sd]]);
|
|
13549
|
+
const cd = {
|
|
13551
13550
|
name: "IdmBottomBar",
|
|
13552
13551
|
components: { DateTimePicker: Ma },
|
|
13553
13552
|
props: {
|
|
@@ -13672,18 +13671,18 @@ const nd = {
|
|
|
13672
13671
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
13673
13672
|
}
|
|
13674
13673
|
}
|
|
13675
|
-
},
|
|
13674
|
+
}, md = { class: "idm-bottom-bar-gl4" }, dd = { class: "date-box d-flex ga-2 mr-2" }, hd = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, pd = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, ud = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, gd = {
|
|
13676
13675
|
key: 0,
|
|
13677
13676
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13678
|
-
},
|
|
13679
|
-
function
|
|
13677
|
+
}, fd = ["onClick"], yd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, bd = { class: "text-body-1" };
|
|
13678
|
+
function wd(t, e, a, i, o, r) {
|
|
13680
13679
|
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), h = w("VMenu"), b = w("VBtn"), x = w("VDivider"), _ = w("VTooltip");
|
|
13681
|
-
return y(), M("div",
|
|
13680
|
+
return y(), M("div", md, [
|
|
13682
13681
|
l("div", {
|
|
13683
13682
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13684
|
-
style:
|
|
13683
|
+
style: ee({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
|
|
13685
13684
|
}, [
|
|
13686
|
-
l("div",
|
|
13685
|
+
l("div", dd, [
|
|
13687
13686
|
p(s, N({
|
|
13688
13687
|
ref: "dateTimePicker",
|
|
13689
13688
|
"date-time": o.currentDateTimeZ,
|
|
@@ -13747,7 +13746,7 @@ function bd(t, e, a, i, o, r) {
|
|
|
13747
13746
|
class: "mx-2 my-3",
|
|
13748
13747
|
style: { height: "16px" }
|
|
13749
13748
|
}),
|
|
13750
|
-
l("div",
|
|
13749
|
+
l("div", hd, [
|
|
13751
13750
|
p(b, {
|
|
13752
13751
|
icon: "",
|
|
13753
13752
|
size: "small",
|
|
@@ -13820,7 +13819,7 @@ function bd(t, e, a, i, o, r) {
|
|
|
13820
13819
|
class: "mx-2 my-3",
|
|
13821
13820
|
style: { height: "16px" }
|
|
13822
13821
|
}),
|
|
13823
|
-
l("div",
|
|
13822
|
+
l("div", pd, [
|
|
13824
13823
|
p(_, {
|
|
13825
13824
|
text: t.$t("weather.windBarbs"),
|
|
13826
13825
|
location: "top"
|
|
@@ -13924,7 +13923,7 @@ function bd(t, e, a, i, o, r) {
|
|
|
13924
13923
|
class: "mx-2 mr-3 my-3",
|
|
13925
13924
|
style: { height: "16px" }
|
|
13926
13925
|
}),
|
|
13927
|
-
l("div",
|
|
13926
|
+
l("div", ud, [
|
|
13928
13927
|
p(b, {
|
|
13929
13928
|
text: "",
|
|
13930
13929
|
height: "30",
|
|
@@ -13955,16 +13954,16 @@ function bd(t, e, a, i, o, r) {
|
|
|
13955
13954
|
], 4),
|
|
13956
13955
|
l("div", {
|
|
13957
13956
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
13958
|
-
style:
|
|
13957
|
+
style: ee({ right: o.right + "px" })
|
|
13959
13958
|
}, [
|
|
13960
|
-
o.showTimezone ? (y(), M("div",
|
|
13959
|
+
o.showTimezone ? (y(), M("div", gd, [
|
|
13961
13960
|
(y(!0), M(we, null, _e(o.offsets, (f) => (y(), M("div", {
|
|
13962
13961
|
key: f,
|
|
13963
13962
|
class: "item rounded text-body-2 hover-active",
|
|
13964
13963
|
onClick: (k) => o.timeZone = f
|
|
13965
|
-
}, m(f < 0 ? f : "+" + f), 9,
|
|
13964
|
+
}, m(f < 0 ? f : "+" + f), 9, fd))), 128))
|
|
13966
13965
|
])) : A("", !0),
|
|
13967
|
-
l("div",
|
|
13966
|
+
l("div", yd, [
|
|
13968
13967
|
p(b, {
|
|
13969
13968
|
text: "",
|
|
13970
13969
|
variant: "flat",
|
|
@@ -13978,13 +13977,13 @@ function bd(t, e, a, i, o, r) {
|
|
|
13978
13977
|
]),
|
|
13979
13978
|
_: 1
|
|
13980
13979
|
}),
|
|
13981
|
-
l("span",
|
|
13980
|
+
l("span", bd, m(o.currentRealTime), 1)
|
|
13982
13981
|
])
|
|
13983
13982
|
], 4)
|
|
13984
13983
|
]);
|
|
13985
13984
|
}
|
|
13986
|
-
const
|
|
13987
|
-
const
|
|
13985
|
+
const xd = /* @__PURE__ */ Y(cd, [["render", wd]]);
|
|
13986
|
+
const vd = {
|
|
13988
13987
|
name: "IdmBottomBar",
|
|
13989
13988
|
components: { DateTimePicker: Ma },
|
|
13990
13989
|
props: {
|
|
@@ -14087,18 +14086,18 @@ const xd = {
|
|
|
14087
14086
|
this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
|
|
14088
14087
|
}
|
|
14089
14088
|
}
|
|
14090
|
-
},
|
|
14091
|
-
function
|
|
14089
|
+
}, _d = { class: "timeline-box px-2 d-flex justify-center align-center rounded ga-1" };
|
|
14090
|
+
function kd(t, e, a, i, o, r) {
|
|
14092
14091
|
const s = w("VBtn"), c = w("DateTimePicker");
|
|
14093
14092
|
return y(), M("div", {
|
|
14094
14093
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
14095
|
-
style:
|
|
14094
|
+
style: ee({ bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
|
|
14096
14095
|
}, [
|
|
14097
|
-
l("div",
|
|
14096
|
+
l("div", _d, [
|
|
14098
14097
|
p(s, {
|
|
14099
14098
|
size: "small",
|
|
14100
14099
|
density: "compact",
|
|
14101
|
-
class: "px-1 bg-background",
|
|
14100
|
+
class: "px-1 bg-background btn-border-1",
|
|
14102
14101
|
width: "30",
|
|
14103
14102
|
"min-width": "30",
|
|
14104
14103
|
height: "30",
|
|
@@ -14113,7 +14112,7 @@ function _d(t, e, a, i, o, r) {
|
|
|
14113
14112
|
p(s, {
|
|
14114
14113
|
size: "small",
|
|
14115
14114
|
density: "compact",
|
|
14116
|
-
class: "px-1 bg-background",
|
|
14115
|
+
class: "px-1 bg-background btn-border-1",
|
|
14117
14116
|
width: "30",
|
|
14118
14117
|
"min-width": "30",
|
|
14119
14118
|
height: "30",
|
|
@@ -14131,7 +14130,8 @@ function _d(t, e, a, i, o, r) {
|
|
|
14131
14130
|
"time-zone": o.timeZone,
|
|
14132
14131
|
"day-about": o.dayAbout,
|
|
14133
14132
|
"interval-hour": o.intervalHour,
|
|
14134
|
-
width: 220
|
|
14133
|
+
width: 220,
|
|
14134
|
+
height: 32
|
|
14135
14135
|
}, t.$attrs, {
|
|
14136
14136
|
onCurrentTimestamp: e[0] || (e[0] = (n) => o.currentTimestamp = n),
|
|
14137
14137
|
onCurrentRealTime: e[1] || (e[1] = (n) => o.currentRealTime = n),
|
|
@@ -14141,7 +14141,7 @@ function _d(t, e, a, i, o, r) {
|
|
|
14141
14141
|
p(s, {
|
|
14142
14142
|
size: "small",
|
|
14143
14143
|
density: "compact",
|
|
14144
|
-
class: "px-1 bg-background",
|
|
14144
|
+
class: "px-1 bg-background btn-border-1",
|
|
14145
14145
|
width: "30",
|
|
14146
14146
|
"min-width": "30",
|
|
14147
14147
|
height: "30",
|
|
@@ -14157,7 +14157,7 @@ function _d(t, e, a, i, o, r) {
|
|
|
14157
14157
|
key: 0,
|
|
14158
14158
|
size: "small",
|
|
14159
14159
|
density: "compact",
|
|
14160
|
-
class: "px-1 bg-background",
|
|
14160
|
+
class: "px-1 bg-background btn-border-1",
|
|
14161
14161
|
width: "30",
|
|
14162
14162
|
"min-width": "30",
|
|
14163
14163
|
height: "30",
|
|
@@ -14172,7 +14172,7 @@ function _d(t, e, a, i, o, r) {
|
|
|
14172
14172
|
key: 1,
|
|
14173
14173
|
size: "small",
|
|
14174
14174
|
density: "compact",
|
|
14175
|
-
class: "px-1 bg-background",
|
|
14175
|
+
class: "px-1 bg-background btn-border-1",
|
|
14176
14176
|
width: "30",
|
|
14177
14177
|
"min-width": "30",
|
|
14178
14178
|
height: "30",
|
|
@@ -14187,15 +14187,15 @@ function _d(t, e, a, i, o, r) {
|
|
|
14187
14187
|
])
|
|
14188
14188
|
], 4);
|
|
14189
14189
|
}
|
|
14190
|
-
const $o = /* @__PURE__ */ Y(
|
|
14190
|
+
const $o = /* @__PURE__ */ Y(vd, [["render", kd]]), zd = {
|
|
14191
14191
|
name: "IdmGL4",
|
|
14192
14192
|
components: {
|
|
14193
14193
|
IdmOtherLayer: gs,
|
|
14194
14194
|
IdmWeatherLayer: sc,
|
|
14195
14195
|
IdmTropicals: Xo,
|
|
14196
|
-
IdmMeasure:
|
|
14197
|
-
IdmSpot:
|
|
14198
|
-
IdmBottomBar:
|
|
14196
|
+
IdmMeasure: nd,
|
|
14197
|
+
IdmSpot: id,
|
|
14198
|
+
IdmBottomBar: xd,
|
|
14199
14199
|
IdmTimePlayer: $o
|
|
14200
14200
|
},
|
|
14201
14201
|
props: {
|
|
@@ -14251,13 +14251,13 @@ const $o = /* @__PURE__ */ Y(xd, [["render", _d]]), kd = {
|
|
|
14251
14251
|
}
|
|
14252
14252
|
},
|
|
14253
14253
|
methods: {}
|
|
14254
|
-
},
|
|
14254
|
+
}, Ld = {
|
|
14255
14255
|
ref: "mapHomeGl4",
|
|
14256
14256
|
class: "map-gl4-home"
|
|
14257
14257
|
};
|
|
14258
|
-
function
|
|
14258
|
+
function Pd(t, e, a, i, o, r) {
|
|
14259
14259
|
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), b = w("IdmBottomBar"), x = w("IdmTimePlayer");
|
|
14260
|
-
return y(), M("div",
|
|
14260
|
+
return y(), M("div", Ld, [
|
|
14261
14261
|
p(s, N({
|
|
14262
14262
|
ref: "idmOtherLayers",
|
|
14263
14263
|
simple: a.simple,
|
|
@@ -14335,7 +14335,7 @@ function Ld(t, e, a, i, o, r) {
|
|
|
14335
14335
|
}, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) : A("", !0)
|
|
14336
14336
|
], 512);
|
|
14337
14337
|
}
|
|
14338
|
-
const
|
|
14338
|
+
const Td = /* @__PURE__ */ Y(zd, [["render", Pd]]);
|
|
14339
14339
|
class Cd {
|
|
14340
14340
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
14341
14341
|
he(this, "originStyle");
|
|
@@ -14344,7 +14344,7 @@ class Cd {
|
|
|
14344
14344
|
he(this, "hi");
|
|
14345
14345
|
he(this, "td");
|
|
14346
14346
|
he(this, "windy");
|
|
14347
|
-
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I,
|
|
14347
|
+
var a, i, o, r, s, c, n, u, h, b, x, _, f, k, P, B, I, T, z, L, C, v, D, F, V, q, Z, J, Q, $, le, se, pe, ie, ce, ue, me, de, R, te, ye, xe, Le, Pe, ve, Me, Te, H, ae, Fe, Ae, ge, Ie, W, fe, oe, re, Be, Ue, We, E, be, Re, Ne, Ee, j, Ge, G, qe, Xe, Ke, ze, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Tt, Ct, St, Mt, It, Dt, At, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, ea, ta, aa, oa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, Aa, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, Ya, qa, Xa, Ka, $a, Ja, Qa, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, To, Co, So, Mo, Io, Do, Ao, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go, Vo;
|
|
14348
14348
|
this.i4 = {
|
|
14349
14349
|
source: {
|
|
14350
14350
|
type: "raster",
|
|
@@ -32993,9 +32993,9 @@ class Cd {
|
|
|
32993
32993
|
(_ = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : _.find((d) => d.id === "loadlines-fill"),
|
|
32994
32994
|
(k = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : k.find((d) => d.id === "empty-layer-0"),
|
|
32995
32995
|
(B = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : B.find((d) => d.id === "empty-layer-1"),
|
|
32996
|
-
(
|
|
32996
|
+
(T = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : T.find((d) => d.id === "country-boundaries"),
|
|
32997
32997
|
(L = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),
|
|
32998
|
-
(v = (
|
|
32998
|
+
(v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
|
|
32999
32999
|
(F = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : F.find((d) => d.id === "empty-layer-2"),
|
|
33000
33000
|
(q = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : q.find((d) => d.id === "water-line-label"),
|
|
33001
33001
|
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((d) => d.id === "water-point-label"),
|
|
@@ -33004,11 +33004,11 @@ class Cd {
|
|
|
33004
33004
|
(ie = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ie.find((d) => d.id === "ne-10m-label"),
|
|
33005
33005
|
(ue = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : ue.find((d) => d.id === "china-route-line"),
|
|
33006
33006
|
(de = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : de.find((d) => d.id === "china-route-fill"),
|
|
33007
|
-
(
|
|
33007
|
+
(te = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : te.find((d) => d.id === "china-route-label"),
|
|
33008
33008
|
(xe = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : xe.find((d) => d.id === "admin-0-boundary-bg"),
|
|
33009
33009
|
(Pe = (Le = this.originStyle) == null ? void 0 : Le.light.layers) == null ? void 0 : Pe.find((d) => d.id === "admin-0-boundary"),
|
|
33010
33010
|
(Me = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Me.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
33011
|
-
(H = (
|
|
33011
|
+
(H = (Te = this.originStyle) == null ? void 0 : Te.light.layers) == null ? void 0 : H.find((d) => d.id === "country-label"),
|
|
33012
33012
|
(Fe = (ae = this.originStyle) == null ? void 0 : ae.light.layers) == null ? void 0 : Fe.find((d) => d.id === "continent-label"),
|
|
33013
33013
|
(ge = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ge.find((d) => d.id === "tide-stations"),
|
|
33014
33014
|
(W = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : W.find((d) => d.id === "empty-layer-3"),
|
|
@@ -33028,8 +33028,8 @@ class Cd {
|
|
|
33028
33028
|
range: [0.5, 10]
|
|
33029
33029
|
},
|
|
33030
33030
|
sources: (Be = this.originStyle) == null ? void 0 : Be.dark.sources,
|
|
33031
|
-
sprite: (
|
|
33032
|
-
glyphs: (
|
|
33031
|
+
sprite: (Ue = this.originStyle) == null ? void 0 : Ue.dark.sprite,
|
|
33032
|
+
glyphs: (We = this.originStyle) == null ? void 0 : We.dark.glyphs,
|
|
33033
33033
|
projection: (E = this.originStyle) == null ? void 0 : E.dark.projection,
|
|
33034
33034
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
33035
33035
|
owner: "neatchenheng",
|
|
@@ -33039,7 +33039,7 @@ class Cd {
|
|
|
33039
33039
|
layers: [
|
|
33040
33040
|
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((d) => d.id === "land"),
|
|
33041
33041
|
(Ee = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "water"),
|
|
33042
|
-
(
|
|
33042
|
+
(Ge = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : Ge.find((d) => d.id === "ice-area-fill"),
|
|
33043
33043
|
(qe = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : qe.find((d) => d.id === "ice-area-line"),
|
|
33044
33044
|
(Ke = (Xe = this.originStyle) == null ? void 0 : Xe.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-label"),
|
|
33045
33045
|
($e = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : $e.find((d) => d.id === "loadlines-fill"),
|
|
@@ -33057,8 +33057,8 @@ class Cd {
|
|
|
33057
33057
|
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((d) => d.id === "china-route-fill"),
|
|
33058
33058
|
(kt = (_t = this.originStyle) == null ? void 0 : _t.dark.layers) == null ? void 0 : kt.find((d) => d.id === "china-route-label"),
|
|
33059
33059
|
(Lt = (zt = this.originStyle) == null ? void 0 : zt.dark.layers) == null ? void 0 : Lt.find((d) => d.id === "admin-0-boundary-bg"),
|
|
33060
|
-
(
|
|
33061
|
-
(St = (
|
|
33060
|
+
(Tt = (Pt = this.originStyle) == null ? void 0 : Pt.dark.layers) == null ? void 0 : Tt.find((d) => d.id === "admin-0-boundary"),
|
|
33061
|
+
(St = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : St.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
33062
33062
|
(It = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : It.find((d) => d.id === "country-label"),
|
|
33063
33063
|
(At = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : At.find((d) => d.id === "continent-label"),
|
|
33064
33064
|
(Ot = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : Ot.find((d) => d.id === "tide-stations"),
|
|
@@ -33186,8 +33186,8 @@ class Cd {
|
|
|
33186
33186
|
(vo = (xo = this.originStyle) == null ? void 0 : xo.light.layers) == null ? void 0 : vo.find((d) => d.id === "ne-10m-outline"),
|
|
33187
33187
|
(ko = (_o = this.originStyle) == null ? void 0 : _o.light.layers) == null ? void 0 : ko.find((d) => d.id === "ne-10m-label"),
|
|
33188
33188
|
(Lo = (zo = this.originStyle) == null ? void 0 : zo.light.layers) == null ? void 0 : Lo.find((d) => d.id === "china-route-line"),
|
|
33189
|
-
(
|
|
33190
|
-
(So = (
|
|
33189
|
+
(To = (Po = this.originStyle) == null ? void 0 : Po.light.layers) == null ? void 0 : To.find((d) => d.id === "china-route-fill"),
|
|
33190
|
+
(So = (Co = this.originStyle) == null ? void 0 : Co.light.layers) == null ? void 0 : So.find((d) => d.id === "china-route-label"),
|
|
33191
33191
|
(Io = (Mo = this.originStyle) == null ? void 0 : Mo.light.layers) == null ? void 0 : Io.find((d) => d.id === "admin-0-boundary-bg"),
|
|
33192
33192
|
(Ao = (Do = this.originStyle) == null ? void 0 : Do.light.layers) == null ? void 0 : Ao.find((d) => d.id === "admin-0-boundary"),
|
|
33193
33193
|
(Oo = (Ro = this.originStyle) == null ? void 0 : Ro.light.layers) == null ? void 0 : Oo.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
@@ -33201,7 +33201,7 @@ class Cd {
|
|
|
33201
33201
|
};
|
|
33202
33202
|
}
|
|
33203
33203
|
}
|
|
33204
|
-
const
|
|
33204
|
+
const Sd = {
|
|
33205
33205
|
name: "MapInitial",
|
|
33206
33206
|
props: {
|
|
33207
33207
|
token: {
|
|
@@ -33315,23 +33315,23 @@ const Td = {
|
|
|
33315
33315
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
33316
33316
|
}
|
|
33317
33317
|
}
|
|
33318
|
-
},
|
|
33318
|
+
}, Md = { class: "v-btn--variant-elevated rounded" }, Id = { class: "v-btn--variant-elevated rounded" }, Dd = { class: "zoom" }, Ad = {
|
|
33319
33319
|
key: 2,
|
|
33320
33320
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
33321
33321
|
};
|
|
33322
|
-
function
|
|
33322
|
+
function Rd(t, e, a, i, o, r) {
|
|
33323
33323
|
const s = w("VBtn");
|
|
33324
33324
|
return y(), M("div", {
|
|
33325
33325
|
class: "mapbox-initial-gl4",
|
|
33326
|
-
style:
|
|
33326
|
+
style: ee({ height: a.height, width: a.width })
|
|
33327
33327
|
}, [
|
|
33328
33328
|
e[6] || (e[6] = l("div", { id: "map" }, null, -1)),
|
|
33329
33329
|
a.simple ? (y(), M("div", {
|
|
33330
33330
|
key: 0,
|
|
33331
33331
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1",
|
|
33332
|
-
style:
|
|
33332
|
+
style: ee({ top: a.top + 268 + "px", right: o.right + "px", height: "40px" })
|
|
33333
33333
|
}, [
|
|
33334
|
-
l("div",
|
|
33334
|
+
l("div", Md, [
|
|
33335
33335
|
p(s, {
|
|
33336
33336
|
"min-width": "32",
|
|
33337
33337
|
width: "32",
|
|
@@ -33350,9 +33350,9 @@ function Ad(t, e, a, i, o, r) {
|
|
|
33350
33350
|
a.simple ? A("", !0) : (y(), M("div", {
|
|
33351
33351
|
key: 1,
|
|
33352
33352
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
33353
|
-
style:
|
|
33353
|
+
style: ee({ top: a.top + 268 + "px", right: o.right + "px" })
|
|
33354
33354
|
}, [
|
|
33355
|
-
l("div",
|
|
33355
|
+
l("div", Id, [
|
|
33356
33356
|
p(s, {
|
|
33357
33357
|
"min-width": "32",
|
|
33358
33358
|
width: "32",
|
|
@@ -33366,7 +33366,7 @@ function Ad(t, e, a, i, o, r) {
|
|
|
33366
33366
|
_: 1,
|
|
33367
33367
|
__: [1]
|
|
33368
33368
|
}, 8, ["onClick"]),
|
|
33369
|
-
l("div",
|
|
33369
|
+
l("div", Dd, m(o.zoom ? Math.floor(o.zoom) : 0), 1),
|
|
33370
33370
|
p(s, {
|
|
33371
33371
|
"min-width": "32",
|
|
33372
33372
|
width: "32",
|
|
@@ -33382,7 +33382,7 @@ function Ad(t, e, a, i, o, r) {
|
|
|
33382
33382
|
}, 8, ["onClick"])
|
|
33383
33383
|
])
|
|
33384
33384
|
], 4)),
|
|
33385
|
-
a.simple ? A("", !0) : (y(), M("div",
|
|
33385
|
+
a.simple ? A("", !0) : (y(), M("div", Ad, [
|
|
33386
33386
|
e[3] || (e[3] = l("span", null, "© 2023", -1)),
|
|
33387
33387
|
l("span", null, "-" + m(r.computeYear), 1),
|
|
33388
33388
|
e[4] || (e[4] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -33394,20 +33394,20 @@ function Ad(t, e, a, i, o, r) {
|
|
|
33394
33394
|
]))
|
|
33395
33395
|
], 4);
|
|
33396
33396
|
}
|
|
33397
|
-
const
|
|
33397
|
+
const Od = /* @__PURE__ */ Y(Sd, [["render", Rd]]), Yd = {
|
|
33398
33398
|
install(t) {
|
|
33399
|
-
t.component("MapInitial",
|
|
33399
|
+
t.component("MapInitial", Od), t.component("MapboxGL", Td), t.component("TropicalGL", Xo), t.component("LatLngGL", qo), t.component("DateTimePicker", Ma), t.component("DateRangePicker", Ko), t.component("PortDetail", Ia), t.component("TimePlayer", $o);
|
|
33400
33400
|
}
|
|
33401
33401
|
};
|
|
33402
33402
|
export {
|
|
33403
33403
|
Ko as DateRangePicker,
|
|
33404
33404
|
Ma as DateTimePicker,
|
|
33405
33405
|
qo as LatLngGL,
|
|
33406
|
-
|
|
33407
|
-
|
|
33408
|
-
|
|
33406
|
+
Od as MapInitial,
|
|
33407
|
+
Td as MapboxGL,
|
|
33408
|
+
Yd as MapboxGLPlugin,
|
|
33409
33409
|
Cd as MapboxStyleHelper,
|
|
33410
|
-
|
|
33410
|
+
Ce as ParticleSchema,
|
|
33411
33411
|
Ia as PortDetail,
|
|
33412
33412
|
$o as TimePlayer,
|
|
33413
33413
|
Xo as TropicalGL,
|