@idmwx/idmui-gl4 1.5.4 → 1.5.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 +747 -538
- package/dist/index.umd.cjs +8 -8
- package/dist/mapbox/index.d.ts +3 -2
- package/dist/mapbox/src/components/bottombar/index.vue.d.ts +2 -1
- package/dist/mapbox/src/components/timePicker/dateRange.vue.d.ts +89 -0
- package/dist/mapbox/src/components/timePicker/{index.vue.d.ts → timePicker.vue.d.ts} +5 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,17 +3,17 @@ var $a = (t, e, o) => e in t ? Ka(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ce = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
|
-
import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as u, createVNode as h, withModifiers as je, createElementVNode as l, createCommentVNode as
|
|
6
|
+
import { openBlock as b, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as u, createVNode as h, withModifiers as je, createElementVNode as l, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as B, Fragment as be, renderList as we, withDirectives as We, vShow as Ue, mergeProps as E, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
|
-
import
|
|
8
|
+
import M from "moment";
|
|
9
9
|
import { LngLatHelper as K, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
10
|
-
import { Meteo2Assist as ao, TidesAssist as
|
|
10
|
+
import { Meteo2Assist as ao, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
11
11
|
import * as ro from "echarts";
|
|
12
12
|
import * as G from "@turf/turf";
|
|
13
13
|
import { LayerHelper as io, CompanyHelper as Qa } from "@idm-plugin/tag2";
|
|
14
14
|
import Ja from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
16
|
-
const
|
|
16
|
+
const q = (t, e) => {
|
|
17
17
|
const o = t.__vccOpts || t;
|
|
18
18
|
for (const [i, a] of e)
|
|
19
19
|
o[i] = a;
|
|
@@ -115,7 +115,7 @@ const X = (t, e) => {
|
|
|
115
115
|
function oi(t, e, o, i, a, r) {
|
|
116
116
|
return b(), S("div");
|
|
117
117
|
}
|
|
118
|
-
const ai = /* @__PURE__ */
|
|
118
|
+
const ai = /* @__PURE__ */ q(ti, [["render", oi]]), ii = {
|
|
119
119
|
name: "IdmGmdssArea",
|
|
120
120
|
props: {
|
|
121
121
|
map: {
|
|
@@ -242,7 +242,7 @@ const ai = /* @__PURE__ */ X(ti, [["render", oi]]), ii = {
|
|
|
242
242
|
function ri(t, e, o, i, a, r) {
|
|
243
243
|
return b(), S("div");
|
|
244
244
|
}
|
|
245
|
-
const li = /* @__PURE__ */
|
|
245
|
+
const li = /* @__PURE__ */ q(ii, [["render", ri]]), si = {
|
|
246
246
|
name: "IdmEcaZone",
|
|
247
247
|
props: {
|
|
248
248
|
map: {
|
|
@@ -338,7 +338,7 @@ const li = /* @__PURE__ */ X(ii, [["render", ri]]), si = {
|
|
|
338
338
|
function ni(t, e, o, i, a, r) {
|
|
339
339
|
return b(), S("div");
|
|
340
340
|
}
|
|
341
|
-
const ci = /* @__PURE__ */
|
|
341
|
+
const ci = /* @__PURE__ */ q(si, [["render", ni]]);
|
|
342
342
|
const mi = {
|
|
343
343
|
name: "IdmAlertZone",
|
|
344
344
|
props: {
|
|
@@ -523,9 +523,9 @@ function hi(t, e, o, i, a, r) {
|
|
|
523
523
|
})
|
|
524
524
|
]),
|
|
525
525
|
_: 1
|
|
526
|
-
})) :
|
|
526
|
+
})) : D("", !0);
|
|
527
527
|
}
|
|
528
|
-
const pi = /* @__PURE__ */
|
|
528
|
+
const pi = /* @__PURE__ */ q(mi, [["render", hi]]);
|
|
529
529
|
const ui = {
|
|
530
530
|
name: "PortDetail",
|
|
531
531
|
props: {
|
|
@@ -1370,13 +1370,13 @@ const ui = {
|
|
|
1370
1370
|
let c = {
|
|
1371
1371
|
index: s,
|
|
1372
1372
|
dateTimeList: [],
|
|
1373
|
-
label:
|
|
1374
|
-
startTime:
|
|
1375
|
-
dateTime:
|
|
1373
|
+
label: M().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
1374
|
+
startTime: M().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1375
|
+
dateTime: M().utcOffset(e).add(s, "days").format()
|
|
1376
1376
|
};
|
|
1377
1377
|
for (let n = 0; n < 4; n++)
|
|
1378
1378
|
c.dateTimeList.push(
|
|
1379
|
-
|
|
1379
|
+
M(c.startTime).utcOffset(e).add(n * this.interval, "hours").utc().format()
|
|
1380
1380
|
);
|
|
1381
1381
|
t.push(c);
|
|
1382
1382
|
}
|
|
@@ -1387,7 +1387,7 @@ const ui = {
|
|
|
1387
1387
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
1388
1388
|
return "-";
|
|
1389
1389
|
const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
1390
|
-
return
|
|
1390
|
+
return M(t).utcOffset(i).format(o);
|
|
1391
1391
|
};
|
|
1392
1392
|
},
|
|
1393
1393
|
computeTimeOffset() {
|
|
@@ -1482,10 +1482,10 @@ const ui = {
|
|
|
1482
1482
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1483
1483
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1484
1484
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1485
|
-
var c, n, g, p, y, w, k, f, z, T, O,
|
|
1485
|
+
var c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe;
|
|
1486
1486
|
let r = {};
|
|
1487
|
-
const s = ((c = ao.pickHourly(t,
|
|
1488
|
-
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((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (
|
|
1487
|
+
const s = ((c = ao.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1488
|
+
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((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.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((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Y = s == null ? void 0 : s.wave) == null ? void 0 : Y.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (ee = s == null ? void 0 : s.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (pe = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (me = s == null ? void 0 : s.wave) == null ? void 0 : me.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((de = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.height, 1) ?? "-", r.swellDir = (he = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((H = (ge = s == null ? void 0 : s.wave) == null ? void 0 : ge.swell) == null ? void 0 : H.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = s == null ? void 0 : s.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.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 = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1489
1489
|
});
|
|
1490
1490
|
},
|
|
1491
1491
|
handleTide() {
|
|
@@ -1518,7 +1518,7 @@ const ui = {
|
|
|
1518
1518
|
},
|
|
1519
1519
|
initTideTableData(t) {
|
|
1520
1520
|
var e, o;
|
|
1521
|
-
this.tideTableData =
|
|
1521
|
+
this.tideTableData = Ya.pickDailyExtremes(t, (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : o.dateTime), this.initEchartData();
|
|
1522
1522
|
},
|
|
1523
1523
|
initEchartData() {
|
|
1524
1524
|
var t;
|
|
@@ -1632,7 +1632,7 @@ const ui = {
|
|
|
1632
1632
|
}, xi = { class: "summary-box" }, vi = { class: "d-flex justify-space-between align-center py-2" }, _i = { class: "d-flex justify-center align-center text-h6 ga-2" }, ki = {
|
|
1633
1633
|
class: "multi-color-icon",
|
|
1634
1634
|
"aria-hidden": "true"
|
|
1635
|
-
}, zi = ["xlink:href"], Li = { class: "gray-card rounded d-flex flex-column ga-4 pa-4" }, Pi = { class: "w-100 d-flex justify-start align-center" }, Ci = { class: "w-30 text-label font-weight-400" }, Ti = { class: "flex-1-1-0" }, Si = { class: "w-100 d-flex justify-start align-center" }, Mi = { class: "w-30 text-label font-weight-400" }, Ii = { class: "flex-1-1-0" },
|
|
1635
|
+
}, zi = ["xlink:href"], Li = { class: "gray-card rounded d-flex flex-column ga-4 pa-4" }, Pi = { class: "w-100 d-flex justify-start align-center" }, Ci = { class: "w-30 text-label font-weight-400" }, Ti = { class: "flex-1-1-0" }, Si = { class: "w-100 d-flex justify-start align-center" }, Mi = { class: "w-30 text-label font-weight-400" }, Ii = { class: "flex-1-1-0" }, Di = { class: "w-100 d-flex justify-start align-center" }, Ai = { class: "w-30 text-label font-weight-400" }, Ri = { class: "flex-1-1-0" }, Oi = { class: "table-box w-100 mt-2" }, Bi = { class: "w-100 d-flex justify-space-between align-center py-2" }, Ei = { class: "d-flex justify-center align-center text-h6 ga-2" }, ji = {
|
|
1636
1636
|
class: "multi-color-icon",
|
|
1637
1637
|
"aria-hidden": "true"
|
|
1638
1638
|
}, Ni = ["xlink:href"], Fi = { class: "w-100 gray-card rounded pa-4" }, Hi = {
|
|
@@ -1645,7 +1645,7 @@ const ui = {
|
|
|
1645
1645
|
}, Wi = {
|
|
1646
1646
|
key: 0,
|
|
1647
1647
|
class: ""
|
|
1648
|
-
}, Ui = { class: "px-1 text-center" }, Vi = ["src"],
|
|
1648
|
+
}, Ui = { class: "px-1 text-center" }, Vi = ["src"], Zi = { key: 1 }, Yi = { class: "px-1 text-center" }, qi = ["src"], Xi = { key: 1 }, Ki = { class: "px-1 text-center" }, $i = ["src"], Qi = { key: 1 }, Ji = { class: "px-1 text-center" }, er = ["src"], tr = { key: 1 }, or = { class: "table-box w-100 mt-2 d-flex flex-column justify-start align-center" }, ar = { class: "w-100 d-flex justify-space-between align-center py-2" }, ir = { class: "d-flex justify-center align-center text-h6 ga-2" }, rr = {
|
|
1649
1649
|
class: "multi-color-icon",
|
|
1650
1650
|
"aria-hidden": "true"
|
|
1651
1651
|
}, lr = ["xlink:href"], sr = { class: "text-body-2 ga-2" }, nr = {
|
|
@@ -1677,12 +1677,12 @@ function yr(t, e, o, i, a, r) {
|
|
|
1677
1677
|
return [
|
|
1678
1678
|
h(c, { class: "w-100" }, {
|
|
1679
1679
|
default: u(() => {
|
|
1680
|
-
var f, z, T, O,
|
|
1680
|
+
var f, z, T, O, I;
|
|
1681
1681
|
return [
|
|
1682
1682
|
l("div", gi, [
|
|
1683
1683
|
l("div", fi, [
|
|
1684
1684
|
l("div", {
|
|
1685
|
-
class:
|
|
1685
|
+
class: Ne(["fi mr-2 rounded elevation-4", `fi-${(f = o.port) != null && f.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
|
|
1686
1686
|
style: { width: "36px", height: "24px" }
|
|
1687
1687
|
}, null, 2),
|
|
1688
1688
|
l("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
|
|
@@ -1705,7 +1705,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1705
1705
|
l("div", null, m(t.$t("port.port")), 1),
|
|
1706
1706
|
l("div", null, [
|
|
1707
1707
|
e[3] || (e[3] = l("label", null, "UN/LOCODE: ", -1)),
|
|
1708
|
-
l("span", null, m((
|
|
1708
|
+
l("span", null, m((I = o.port) == null ? void 0 : I.cntLoCode), 1)
|
|
1709
1709
|
])
|
|
1710
1710
|
])
|
|
1711
1711
|
];
|
|
@@ -1730,7 +1730,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1730
1730
|
h(g, { color: "warning" })
|
|
1731
1731
|
]),
|
|
1732
1732
|
default: u(() => [
|
|
1733
|
-
|
|
1733
|
+
B(" " + m(t.$t("actions.unfollow")), 1)
|
|
1734
1734
|
]),
|
|
1735
1735
|
_: 1
|
|
1736
1736
|
}, 8, ["onClick"])) : (b(), R(s, {
|
|
@@ -1743,7 +1743,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1743
1743
|
onClick: r.handleFollow
|
|
1744
1744
|
}, {
|
|
1745
1745
|
default: u(() => [
|
|
1746
|
-
|
|
1746
|
+
B(m(t.$t("actions.follow")), 1)
|
|
1747
1747
|
]),
|
|
1748
1748
|
_: 1
|
|
1749
1749
|
}, 8, ["onClick"])),
|
|
@@ -1755,7 +1755,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1755
1755
|
onClick: r.handleMeteoMore
|
|
1756
1756
|
}, {
|
|
1757
1757
|
default: u(() => [
|
|
1758
|
-
|
|
1758
|
+
B(m(t.$t("actions.7dayForcast")), 1)
|
|
1759
1759
|
]),
|
|
1760
1760
|
_: 1
|
|
1761
1761
|
}, 8, ["onClick"])
|
|
@@ -1782,8 +1782,8 @@ function yr(t, e, o, i, a, r) {
|
|
|
1782
1782
|
l("div", Mi, m(t.$t("port.position")), 1),
|
|
1783
1783
|
l("div", Ii, m(r.computePosition(o.port)), 1)
|
|
1784
1784
|
]),
|
|
1785
|
-
l("div",
|
|
1786
|
-
l("div",
|
|
1785
|
+
l("div", Di, [
|
|
1786
|
+
l("div", Ai, m(t.$t("time.localTime")), 1),
|
|
1787
1787
|
l("div", Ri, m(r.computeLocalTime(o.realTime, o.port)) + " " + m(r.computeTimeOffset(o.port)), 1)
|
|
1788
1788
|
])
|
|
1789
1789
|
])
|
|
@@ -1820,7 +1820,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1820
1820
|
value: f.index
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: u(() => [
|
|
1823
|
-
|
|
1823
|
+
B(m(f.label), 1)
|
|
1824
1824
|
]),
|
|
1825
1825
|
_: 2
|
|
1826
1826
|
}, 1032, ["value"]))), 256))
|
|
@@ -1833,17 +1833,17 @@ function yr(t, e, o, i, a, r) {
|
|
|
1833
1833
|
key: f.id
|
|
1834
1834
|
}, [
|
|
1835
1835
|
l("th", Gi, [
|
|
1836
|
-
|
|
1837
|
-
f.unit ? (b(), S("span", Wi, " ( " + m(f.unit) + " )", 1)) :
|
|
1836
|
+
B(m(t.$t(`${f.key}`)) + " ", 1),
|
|
1837
|
+
f.unit ? (b(), S("span", Wi, " ( " + m(f.unit) + " )", 1)) : D("", !0)
|
|
1838
1838
|
]),
|
|
1839
1839
|
l("td", Ui, [
|
|
1840
1840
|
f.img ? (b(), S("img", {
|
|
1841
1841
|
key: 0,
|
|
1842
1842
|
src: f == null ? void 0 : f.value0,
|
|
1843
1843
|
style: { height: "30px" }
|
|
1844
|
-
}, null, 8, Vi)) : (b(), S("span",
|
|
1844
|
+
}, null, 8, Vi)) : (b(), S("span", Zi, m((f == null ? void 0 : f.value0) ?? "-"), 1))
|
|
1845
1845
|
]),
|
|
1846
|
-
l("td",
|
|
1846
|
+
l("td", Yi, [
|
|
1847
1847
|
f.img ? (b(), S("img", {
|
|
1848
1848
|
key: 0,
|
|
1849
1849
|
src: f == null ? void 0 : f.value1,
|
|
@@ -1916,7 +1916,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1916
1916
|
}), 128))
|
|
1917
1917
|
])
|
|
1918
1918
|
])
|
|
1919
|
-
])) :
|
|
1919
|
+
])) : D("", !0)
|
|
1920
1920
|
])
|
|
1921
1921
|
], 512)
|
|
1922
1922
|
];
|
|
@@ -1924,7 +1924,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1924
1924
|
_: 1
|
|
1925
1925
|
});
|
|
1926
1926
|
}
|
|
1927
|
-
const lo = /* @__PURE__ */
|
|
1927
|
+
const lo = /* @__PURE__ */ q(ui, [["render", yr], ["__scopeId", "data-v-3b3ca572"]]);
|
|
1928
1928
|
const br = {
|
|
1929
1929
|
name: "IdmPort",
|
|
1930
1930
|
components: {
|
|
@@ -2060,17 +2060,17 @@ function _r(t, e, o, i, a, r) {
|
|
|
2060
2060
|
}, 512), [
|
|
2061
2061
|
[Ue, a.showInfo]
|
|
2062
2062
|
]),
|
|
2063
|
-
a.showDetail ? (b(), R(n,
|
|
2063
|
+
a.showDetail ? (b(), R(n, E({
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
portId: a.portId,
|
|
2066
2066
|
port: a.port,
|
|
2067
2067
|
forecastModel: o.forecastModel,
|
|
2068
2068
|
onClose: r.handleCloseDetail,
|
|
2069
2069
|
onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
|
|
2070
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) :
|
|
2070
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
|
|
2071
2071
|
]);
|
|
2072
2072
|
}
|
|
2073
|
-
const kr = /* @__PURE__ */
|
|
2073
|
+
const kr = /* @__PURE__ */ q(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3"]]), zr = {
|
|
2074
2074
|
name: "IdmLoadLine",
|
|
2075
2075
|
props: {
|
|
2076
2076
|
map: {
|
|
@@ -2114,7 +2114,7 @@ const kr = /* @__PURE__ */ X(br, [["render", _r], ["__scopeId", "data-v-0c0f27d3
|
|
|
2114
2114
|
function Lr(t, e, o, i, a, r) {
|
|
2115
2115
|
return b(), S("div");
|
|
2116
2116
|
}
|
|
2117
|
-
const Pr = /* @__PURE__ */
|
|
2117
|
+
const Pr = /* @__PURE__ */ q(zr, [["render", Lr]]), Cr = {
|
|
2118
2118
|
name: "IdmTimezone",
|
|
2119
2119
|
props: {
|
|
2120
2120
|
map: {
|
|
@@ -2290,7 +2290,7 @@ const Pr = /* @__PURE__ */ X(zr, [["render", Lr]]), Cr = {
|
|
|
2290
2290
|
function Tr(t, e, o, i, a, r) {
|
|
2291
2291
|
return b(), S("div");
|
|
2292
2292
|
}
|
|
2293
|
-
const Sr = /* @__PURE__ */
|
|
2293
|
+
const Sr = /* @__PURE__ */ q(Cr, [["render", Tr]]), Mr = {
|
|
2294
2294
|
name: "IdmVoluntaryReportingArea",
|
|
2295
2295
|
props: {
|
|
2296
2296
|
map: {
|
|
@@ -2385,7 +2385,7 @@ const Sr = /* @__PURE__ */ X(Cr, [["render", Tr]]), Mr = {
|
|
|
2385
2385
|
function Ir(t, e, o, i, a, r) {
|
|
2386
2386
|
return b(), S("div");
|
|
2387
2387
|
}
|
|
2388
|
-
const
|
|
2388
|
+
const Dr = /* @__PURE__ */ q(Mr, [["render", Ir]]), Ar = {
|
|
2389
2389
|
name: "IdmSpecialArea",
|
|
2390
2390
|
props: {
|
|
2391
2391
|
map: {
|
|
@@ -2480,7 +2480,7 @@ const Ar = /* @__PURE__ */ X(Mr, [["render", Ir]]), Dr = {
|
|
|
2480
2480
|
function Rr(t, e, o, i, a, r) {
|
|
2481
2481
|
return b(), S("div");
|
|
2482
2482
|
}
|
|
2483
|
-
const Or = /* @__PURE__ */
|
|
2483
|
+
const Or = /* @__PURE__ */ q(Ar, [["render", Rr]]), Br = {
|
|
2484
2484
|
name: "IdmTerminator",
|
|
2485
2485
|
props: {
|
|
2486
2486
|
map: {
|
|
@@ -2534,7 +2534,7 @@ const Or = /* @__PURE__ */ X(Dr, [["render", Rr]]), Br = {
|
|
|
2534
2534
|
function Er(t, e, o, i, a, r) {
|
|
2535
2535
|
return b(), S("div");
|
|
2536
2536
|
}
|
|
2537
|
-
const jr = /* @__PURE__ */
|
|
2537
|
+
const jr = /* @__PURE__ */ q(Br, [["render", Er]]), Nr = {
|
|
2538
2538
|
name: "IdmWorld12nm",
|
|
2539
2539
|
props: {
|
|
2540
2540
|
map: {
|
|
@@ -2591,7 +2591,7 @@ const jr = /* @__PURE__ */ X(Br, [["render", Er]]), Nr = {
|
|
|
2591
2591
|
function Fr(t, e, o, i, a, r) {
|
|
2592
2592
|
return null;
|
|
2593
2593
|
}
|
|
2594
|
-
const Hr = /* @__PURE__ */
|
|
2594
|
+
const Hr = /* @__PURE__ */ q(Nr, [["render", Fr]]);
|
|
2595
2595
|
const Gr = {
|
|
2596
2596
|
name: "IdmWorldMarine",
|
|
2597
2597
|
props: {
|
|
@@ -2630,7 +2630,7 @@ const Gr = {
|
|
|
2630
2630
|
function Wr(t, e, o, i, a, r) {
|
|
2631
2631
|
return null;
|
|
2632
2632
|
}
|
|
2633
|
-
const Ur = /* @__PURE__ */
|
|
2633
|
+
const Ur = /* @__PURE__ */ q(Gr, [["render", Wr]]), Vr = {
|
|
2634
2634
|
name: "IdmChinaRoute",
|
|
2635
2635
|
props: {
|
|
2636
2636
|
map: {
|
|
@@ -2666,10 +2666,10 @@ const Ur = /* @__PURE__ */ X(Gr, [["render", Wr]]), Vr = {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
2668
|
};
|
|
2669
|
-
function
|
|
2669
|
+
function Zr(t, e, o, i, a, r) {
|
|
2670
2670
|
return null;
|
|
2671
2671
|
}
|
|
2672
|
-
const
|
|
2672
|
+
const Yr = /* @__PURE__ */ q(Vr, [["render", Zr]]);
|
|
2673
2673
|
const qr = {
|
|
2674
2674
|
name: "IdmTideStations",
|
|
2675
2675
|
props: {
|
|
@@ -2724,12 +2724,12 @@ const qr = {
|
|
|
2724
2724
|
let c = {
|
|
2725
2725
|
index: s,
|
|
2726
2726
|
dateTimeList: [],
|
|
2727
|
-
label:
|
|
2728
|
-
startTime:
|
|
2729
|
-
dateTime:
|
|
2727
|
+
label: M().utcOffset(e).add(s, "days").format("MM-DD ddd"),
|
|
2728
|
+
startTime: M().utcOffset(e).add(s, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
2729
|
+
dateTime: M().utcOffset(e).add(s, "days").format()
|
|
2730
2730
|
};
|
|
2731
2731
|
for (let n = 0; n < 4; n++)
|
|
2732
|
-
c.dateTimeList.push(
|
|
2732
|
+
c.dateTimeList.push(M(c.startTime).utcOffset(e).add(n * 3, "hours").utc().format());
|
|
2733
2733
|
t.push(c);
|
|
2734
2734
|
}
|
|
2735
2735
|
return t;
|
|
@@ -2739,7 +2739,7 @@ const qr = {
|
|
|
2739
2739
|
if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
|
|
2740
2740
|
return "-";
|
|
2741
2741
|
const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
|
|
2742
|
-
return
|
|
2742
|
+
return M(t).utcOffset(i).format(o);
|
|
2743
2743
|
};
|
|
2744
2744
|
},
|
|
2745
2745
|
computeTimeOffset() {
|
|
@@ -2802,7 +2802,7 @@ const qr = {
|
|
|
2802
2802
|
},
|
|
2803
2803
|
initTideTableData(t) {
|
|
2804
2804
|
var e, o;
|
|
2805
|
-
this.tideTableData =
|
|
2805
|
+
this.tideTableData = Ya.pickDailyExtremes(t, (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : o.dateTime), this.initEchartData();
|
|
2806
2806
|
},
|
|
2807
2807
|
initEchartData() {
|
|
2808
2808
|
var t;
|
|
@@ -3030,7 +3030,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3030
3030
|
value: k.index
|
|
3031
3031
|
}, {
|
|
3032
3032
|
default: u(() => [
|
|
3033
|
-
|
|
3033
|
+
B(m(k.label), 1)
|
|
3034
3034
|
]),
|
|
3035
3035
|
_: 2
|
|
3036
3036
|
}, 1032, ["value"]))), 256))
|
|
@@ -3063,7 +3063,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3063
3063
|
_: 1
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
const Sl = /* @__PURE__ */
|
|
3066
|
+
const Sl = /* @__PURE__ */ q(qr, [["render", Tl], ["__scopeId", "data-v-53dd32f9"]]);
|
|
3067
3067
|
const Ml = {
|
|
3068
3068
|
name: "IdmTideStations",
|
|
3069
3069
|
components: {
|
|
@@ -3139,7 +3139,7 @@ const Ml = {
|
|
|
3139
3139
|
this.showDetail = !1;
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
|
-
}, Il = { class: "station-box d-flex flex-column justify-center align-start ga-1" },
|
|
3142
|
+
}, Il = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Dl = { class: "d-flex justify-start align-center" }, Al = { class: "d-flex justify-start align-center" }, Rl = { class: "text-label" };
|
|
3143
3143
|
function Ol(t, e, o, i, a, r) {
|
|
3144
3144
|
const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3145
3145
|
return b(), S("div", null, [
|
|
@@ -3150,8 +3150,8 @@ function Ol(t, e, o, i, a, r) {
|
|
|
3150
3150
|
var g, p;
|
|
3151
3151
|
return [
|
|
3152
3152
|
l("div", Il, [
|
|
3153
|
-
l("div",
|
|
3154
|
-
l("div",
|
|
3153
|
+
l("div", Dl, m(t.$t("tide.tideStation")), 1),
|
|
3154
|
+
l("div", Al, [
|
|
3155
3155
|
l("label", Rl, m((g = a.hoverStation) == null ? void 0 : g.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
|
|
3156
3156
|
])
|
|
3157
3157
|
])
|
|
@@ -3164,14 +3164,14 @@ function Ol(t, e, o, i, a, r) {
|
|
|
3164
3164
|
}, 512), [
|
|
3165
3165
|
[Ue, a.showInfo]
|
|
3166
3166
|
]),
|
|
3167
|
-
a.showDetail ? (b(), R(n,
|
|
3167
|
+
a.showDetail ? (b(), R(n, E({
|
|
3168
3168
|
key: 0,
|
|
3169
3169
|
station: a.station,
|
|
3170
3170
|
onClose: r.handleCloseDetail
|
|
3171
|
-
}, t.$attrs), null, 16, ["station", "onClose"])) :
|
|
3171
|
+
}, t.$attrs), null, 16, ["station", "onClose"])) : D("", !0)
|
|
3172
3172
|
]);
|
|
3173
3173
|
}
|
|
3174
|
-
const Bl = /* @__PURE__ */
|
|
3174
|
+
const Bl = /* @__PURE__ */ q(Ml, [["render", Ol], ["__scopeId", "data-v-4611be64"]]), El = {
|
|
3175
3175
|
name: "IdmIceAreas",
|
|
3176
3176
|
props: {
|
|
3177
3177
|
map: {
|
|
@@ -3209,7 +3209,7 @@ const Bl = /* @__PURE__ */ X(Ml, [["render", Ol], ["__scopeId", "data-v-4611be64
|
|
|
3209
3209
|
function jl(t, e, o, i, a, r) {
|
|
3210
3210
|
return null;
|
|
3211
3211
|
}
|
|
3212
|
-
const Nl = /* @__PURE__ */
|
|
3212
|
+
const Nl = /* @__PURE__ */ q(El, [["render", jl]]);
|
|
3213
3213
|
const Fl = {
|
|
3214
3214
|
name: "IdmLatLng",
|
|
3215
3215
|
props: {
|
|
@@ -3391,7 +3391,7 @@ function Hl(t, e, o, i, a, r) {
|
|
|
3391
3391
|
l("div", null, m((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
3392
3392
|
], 4);
|
|
3393
3393
|
}
|
|
3394
|
-
const qa = /* @__PURE__ */
|
|
3394
|
+
const qa = /* @__PURE__ */ q(Fl, [["render", Hl]]);
|
|
3395
3395
|
const Gl = {
|
|
3396
3396
|
name: "IdmFollowPort",
|
|
3397
3397
|
components: {
|
|
@@ -4302,7 +4302,7 @@ const Gl = {
|
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
4304
|
}, Wl = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ul = { class: "d-flex justify-start align-center text-label" }, Vl = { class: "d-flex justify-start align-center text-label" };
|
|
4305
|
-
function
|
|
4305
|
+
function Zl(t, e, o, i, a, r) {
|
|
4306
4306
|
const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4307
4307
|
return b(), S("div", null, [
|
|
4308
4308
|
We(h(c, {
|
|
@@ -4330,7 +4330,7 @@ function Yl(t, e, o, i, a, r) {
|
|
|
4330
4330
|
}, 512), [
|
|
4331
4331
|
[Ue, a.showInfo]
|
|
4332
4332
|
]),
|
|
4333
|
-
a.showDetail ? (b(), R(n,
|
|
4333
|
+
a.showDetail ? (b(), R(n, E({
|
|
4334
4334
|
key: 0,
|
|
4335
4335
|
portId: a.portId,
|
|
4336
4336
|
port: a.port,
|
|
@@ -4338,10 +4338,10 @@ function Yl(t, e, o, i, a, r) {
|
|
|
4338
4338
|
followList: o.followList,
|
|
4339
4339
|
onClose: r.handleCloseDetail,
|
|
4340
4340
|
onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
|
|
4341
|
-
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) :
|
|
4341
|
+
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
|
|
4342
4342
|
]);
|
|
4343
4343
|
}
|
|
4344
|
-
const
|
|
4344
|
+
const Yl = /* @__PURE__ */ q(Gl, [["render", Zl], ["__scopeId", "data-v-95e70a1f"]]);
|
|
4345
4345
|
const ql = {
|
|
4346
4346
|
name: "IdmFollowPosition",
|
|
4347
4347
|
props: {
|
|
@@ -4450,7 +4450,7 @@ const ql = {
|
|
|
4450
4450
|
if (e.properties) {
|
|
4451
4451
|
const y = e.properties;
|
|
4452
4452
|
y.lng = e.geometry.coordinates[0], y.lat = e.geometry.coordinates[1];
|
|
4453
|
-
const w =
|
|
4453
|
+
const w = M(), k = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), f = {
|
|
4454
4454
|
lat: y.lat,
|
|
4455
4455
|
lng: y.lng,
|
|
4456
4456
|
datetime: this.realTime,
|
|
@@ -4494,7 +4494,7 @@ function Ql(t, e, o, i, a, r) {
|
|
|
4494
4494
|
]),
|
|
4495
4495
|
a.position.remark ? (b(), S("div", $l, [
|
|
4496
4496
|
l("span", null, m(a.position.remark ?? "-"), 1)
|
|
4497
|
-
])) :
|
|
4497
|
+
])) : D("", !0)
|
|
4498
4498
|
])
|
|
4499
4499
|
]),
|
|
4500
4500
|
_: 1
|
|
@@ -4505,7 +4505,7 @@ function Ql(t, e, o, i, a, r) {
|
|
|
4505
4505
|
[Ue, a.showInfo]
|
|
4506
4506
|
]);
|
|
4507
4507
|
}
|
|
4508
|
-
const Jl = /* @__PURE__ */
|
|
4508
|
+
const Jl = /* @__PURE__ */ q(ql, [["render", Ql], ["__scopeId", "data-v-cd6c9f7e"]]);
|
|
4509
4509
|
const es = {
|
|
4510
4510
|
name: "IdmOtherLayerr",
|
|
4511
4511
|
components: {
|
|
@@ -4516,16 +4516,16 @@ const es = {
|
|
|
4516
4516
|
IdmPort: kr,
|
|
4517
4517
|
IdmLoadLine: Pr,
|
|
4518
4518
|
IdmTimezone: Sr,
|
|
4519
|
-
IdmVRA:
|
|
4519
|
+
IdmVRA: Dr,
|
|
4520
4520
|
IdmSpecialArea: Or,
|
|
4521
4521
|
IdmTerminator: jr,
|
|
4522
4522
|
IdmWorld12nm: Hr,
|
|
4523
4523
|
IdmWorldMarine: Ur,
|
|
4524
|
-
IdmChinaRoute:
|
|
4524
|
+
IdmChinaRoute: Yr,
|
|
4525
4525
|
IdmTideStations: Bl,
|
|
4526
4526
|
IdmIceAreas: Nl,
|
|
4527
4527
|
IdmLatLng: qa,
|
|
4528
|
-
IdmFollowPort:
|
|
4528
|
+
IdmFollowPort: Yl,
|
|
4529
4529
|
IdmFollowPosition: Jl
|
|
4530
4530
|
},
|
|
4531
4531
|
props: {
|
|
@@ -4716,7 +4716,7 @@ const es = {
|
|
|
4716
4716
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
4717
4717
|
function hs(t, e, o, i, a, r) {
|
|
4718
4718
|
var J, pe, me, Q, ae, de, se, he, ge;
|
|
4719
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), f = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"),
|
|
4719
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), f = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), F = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), V = x("IdmIceAreas"), ee = x("IdmFollowPort"), $ = x("IdmFollowPosition");
|
|
4720
4720
|
return b(), S("div", ts, [
|
|
4721
4721
|
l("div", {
|
|
4722
4722
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -4727,7 +4727,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4727
4727
|
location: "left"
|
|
4728
4728
|
}, {
|
|
4729
4729
|
activator: u(({ props: H }) => [
|
|
4730
|
-
h(s,
|
|
4730
|
+
h(s, E(H, {
|
|
4731
4731
|
"min-width": "32",
|
|
4732
4732
|
width: "32",
|
|
4733
4733
|
height: "32",
|
|
@@ -4745,7 +4745,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4745
4745
|
}, 8, ["text"])
|
|
4746
4746
|
], 4),
|
|
4747
4747
|
l("div", {
|
|
4748
|
-
class:
|
|
4748
|
+
class: Ne(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
4749
4749
|
style: ie({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
4750
4750
|
}, [
|
|
4751
4751
|
l("div", os, [
|
|
@@ -4777,7 +4777,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4777
4777
|
style: { "font-size": "16px !important" }
|
|
4778
4778
|
}, {
|
|
4779
4779
|
default: u(() => [
|
|
4780
|
-
|
|
4780
|
+
B(m(t.$t("layer.mapFeathers")), 1)
|
|
4781
4781
|
]),
|
|
4782
4782
|
_: 1
|
|
4783
4783
|
})
|
|
@@ -4793,7 +4793,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4793
4793
|
onClick: (ne) => r.handleToggleMapFeather(H)
|
|
4794
4794
|
}, [
|
|
4795
4795
|
l("div", {
|
|
4796
|
-
class:
|
|
4796
|
+
class: Ne([a.mapFeather === H.value ? "active" : "", "img-box"])
|
|
4797
4797
|
}, [
|
|
4798
4798
|
H.value === "dark" ? (b(), S("img", ss)) : H.value === "nautical" ? (b(), S("img", ns)) : H.value === "satellite" ? (b(), S("img", cs)) : (b(), S("img", ms))
|
|
4799
4799
|
], 2),
|
|
@@ -4830,7 +4830,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4830
4830
|
style: { "font-size": "16px !important" }
|
|
4831
4831
|
}, {
|
|
4832
4832
|
default: u(() => [
|
|
4833
|
-
|
|
4833
|
+
B(m(t.$t("layer.pointsOfInteresting")), 1)
|
|
4834
4834
|
]),
|
|
4835
4835
|
_: 1
|
|
4836
4836
|
})
|
|
@@ -4869,7 +4869,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4869
4869
|
style: { "font-size": "16px !important" }
|
|
4870
4870
|
}, {
|
|
4871
4871
|
default: u(() => [
|
|
4872
|
-
|
|
4872
|
+
B(m(t.$t("layer.otherLayers")), 1)
|
|
4873
4873
|
]),
|
|
4874
4874
|
_: 1
|
|
4875
4875
|
})
|
|
@@ -4908,7 +4908,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
4908
4908
|
style: { "font-size": "16px !important" }
|
|
4909
4909
|
}, {
|
|
4910
4910
|
default: u(() => [
|
|
4911
|
-
|
|
4911
|
+
B(m(t.$t("layer.myFollows")), 1)
|
|
4912
4912
|
]),
|
|
4913
4913
|
_: 1
|
|
4914
4914
|
})
|
|
@@ -4947,23 +4947,23 @@ function hs(t, e, o, i, a, r) {
|
|
|
4947
4947
|
})
|
|
4948
4948
|
])
|
|
4949
4949
|
], 6),
|
|
4950
|
-
o.map ? (b(), R(k,
|
|
4950
|
+
o.map ? (b(), R(k, E({
|
|
4951
4951
|
key: 0,
|
|
4952
4952
|
map: o.map,
|
|
4953
4953
|
"menu-toggle": o.menuToggle,
|
|
4954
4954
|
show: a.checkList.includes("graticule")
|
|
4955
|
-
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
4956
|
-
o.map ? (b(), R(f,
|
|
4955
|
+
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
|
|
4956
|
+
o.map ? (b(), R(f, E({
|
|
4957
4957
|
key: 1,
|
|
4958
4958
|
map: o.map,
|
|
4959
4959
|
area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
|
|
4960
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
4961
|
-
o.map ? (b(), R(z,
|
|
4960
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
4961
|
+
o.map ? (b(), R(z, E({
|
|
4962
4962
|
key: 2,
|
|
4963
4963
|
map: o.map,
|
|
4964
4964
|
zone: (pe = a.otherLayers) == null ? void 0 : pe["time-zones"]
|
|
4965
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
4966
|
-
o.map ? (b(), R(T,
|
|
4965
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
4966
|
+
o.map ? (b(), R(T, E({
|
|
4967
4967
|
key: 3,
|
|
4968
4968
|
ref: "idmPorts",
|
|
4969
4969
|
map: o.map,
|
|
@@ -4972,16 +4972,16 @@ function hs(t, e, o, i, a, r) {
|
|
|
4972
4972
|
token: o.token,
|
|
4973
4973
|
"forecast-model": o.forecastModel,
|
|
4974
4974
|
realTime: o.realTime
|
|
4975
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) :
|
|
4976
|
-
o.map ? (b(), R(O,
|
|
4975
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
4976
|
+
o.map ? (b(), R(O, E({
|
|
4977
4977
|
key: 4,
|
|
4978
4978
|
map: o.map,
|
|
4979
4979
|
zone: (Q = a.otherLayers) == null ? void 0 : Q["alert-zones"]
|
|
4980
4980
|
}, t.$attrs, {
|
|
4981
4981
|
"before-layer": "empty-layer-3",
|
|
4982
4982
|
theme: o.theme
|
|
4983
|
-
}), null, 16, ["map", "zone", "theme"])) :
|
|
4984
|
-
o.map ? (b(), R(
|
|
4983
|
+
}), null, 16, ["map", "zone", "theme"])) : D("", !0),
|
|
4984
|
+
o.map ? (b(), R(I, E({
|
|
4985
4985
|
key: 5,
|
|
4986
4986
|
ref: "idmIideStation",
|
|
4987
4987
|
map: o.map,
|
|
@@ -4992,61 +4992,61 @@ function hs(t, e, o, i, a, r) {
|
|
|
4992
4992
|
realTime: o.realTime,
|
|
4993
4993
|
forecastModel: o.forecastModel,
|
|
4994
4994
|
"before-layer": "empty-layer-3"
|
|
4995
|
-
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) :
|
|
4996
|
-
o.map ? (b(), R(P,
|
|
4995
|
+
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
|
|
4996
|
+
o.map ? (b(), R(P, E({
|
|
4997
4997
|
key: 6,
|
|
4998
4998
|
map: o.map,
|
|
4999
4999
|
zone: (ae = a.otherLayers) == null ? void 0 : ae["eca-zones"]
|
|
5000
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5001
|
-
o.map ? (b(), R(_,
|
|
5000
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5001
|
+
o.map ? (b(), R(_, E({
|
|
5002
5002
|
key: 7,
|
|
5003
5003
|
map: o.map,
|
|
5004
5004
|
zone: (de = a.otherLayers) == null ? void 0 : de["war-zones"]
|
|
5005
|
-
}, t.$attrs), null, 16, ["map", "zone"])) :
|
|
5006
|
-
o.map ? (b(), R(L,
|
|
5005
|
+
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5006
|
+
o.map ? (b(), R(L, E({
|
|
5007
5007
|
key: 8,
|
|
5008
5008
|
map: o.map,
|
|
5009
5009
|
area: (se = a.otherLayers) == null ? void 0 : se["gmdss-areas"]
|
|
5010
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5011
|
-
o.map ? (b(), R(C,
|
|
5010
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5011
|
+
o.map ? (b(), R(C, E({
|
|
5012
5012
|
key: 9,
|
|
5013
5013
|
map: o.map,
|
|
5014
5014
|
show: a.checkList.includes("load-lines")
|
|
5015
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5016
|
-
o.map ? (b(), R(v,
|
|
5015
|
+
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5016
|
+
o.map ? (b(), R(v, E({
|
|
5017
5017
|
key: 10,
|
|
5018
5018
|
map: o.map,
|
|
5019
5019
|
token: o.token,
|
|
5020
5020
|
show: a.checkList.includes("worldMarine")
|
|
5021
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5022
|
-
o.map ? (b(), R(A,
|
|
5021
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5022
|
+
o.map ? (b(), R(A, E({
|
|
5023
5023
|
key: 11,
|
|
5024
5024
|
map: o.map,
|
|
5025
5025
|
area: (he = a.otherLayers) == null ? void 0 : he["voluntary-reporting-area"]
|
|
5026
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5027
|
-
o.map ? (b(), R(F,
|
|
5026
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5027
|
+
o.map ? (b(), R(F, E({
|
|
5028
5028
|
key: 12,
|
|
5029
5029
|
map: o.map,
|
|
5030
5030
|
area: (ge = a.otherLayers) == null ? void 0 : ge["special-area"]
|
|
5031
|
-
}, t.$attrs), null, 16, ["map", "area"])) :
|
|
5032
|
-
o.map ? (b(), R(
|
|
5031
|
+
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
5032
|
+
o.map ? (b(), R(Z, E({
|
|
5033
5033
|
key: 13,
|
|
5034
5034
|
map: o.map,
|
|
5035
5035
|
token: o.token,
|
|
5036
5036
|
show: a.checkList.includes("world12nm")
|
|
5037
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5038
|
-
o.map ? (b(), R(
|
|
5037
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5038
|
+
o.map ? (b(), R(Y, E({
|
|
5039
5039
|
key: 14,
|
|
5040
5040
|
map: o.map,
|
|
5041
5041
|
token: o.token,
|
|
5042
5042
|
show: a.checkList.includes("chinaRoute")
|
|
5043
|
-
}, t.$attrs), null, 16, ["map", "token", "show"])) :
|
|
5044
|
-
o.map ? (b(), R(V,
|
|
5043
|
+
}, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
|
|
5044
|
+
o.map ? (b(), R(V, E({
|
|
5045
5045
|
key: 15,
|
|
5046
5046
|
map: o.map,
|
|
5047
5047
|
show: a.checkList.includes("ice-areas")
|
|
5048
|
-
}, t.$attrs), null, 16, ["map", "show"])) :
|
|
5049
|
-
o.map ? (b(), R(ee,
|
|
5048
|
+
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5049
|
+
o.map ? (b(), R(ee, E({
|
|
5050
5050
|
key: 16,
|
|
5051
5051
|
ref: "idmFollowPort",
|
|
5052
5052
|
map: o.map,
|
|
@@ -5055,18 +5055,18 @@ function hs(t, e, o, i, a, r) {
|
|
|
5055
5055
|
token: o.token,
|
|
5056
5056
|
"forecast-model": o.forecastModel,
|
|
5057
5057
|
realTime: o.realTime
|
|
5058
|
-
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) :
|
|
5059
|
-
o.map ? (b(), R($,
|
|
5058
|
+
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5059
|
+
o.map ? (b(), R($, E({
|
|
5060
5060
|
key: 17,
|
|
5061
5061
|
ref: "idmFollowPosition",
|
|
5062
5062
|
map: o.map,
|
|
5063
5063
|
show: a.checkList.includes("follow-positions"),
|
|
5064
5064
|
"forecast-model": o.forecastModel,
|
|
5065
5065
|
realTime: o.realTime
|
|
5066
|
-
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) :
|
|
5066
|
+
}, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) : D("", !0)
|
|
5067
5067
|
]);
|
|
5068
5068
|
}
|
|
5069
|
-
const ps = /* @__PURE__ */
|
|
5069
|
+
const ps = /* @__PURE__ */ q(es, [["render", hs]]);
|
|
5070
5070
|
class so {
|
|
5071
5071
|
constructor(e) {
|
|
5072
5072
|
ce(this, "map");
|
|
@@ -5157,7 +5157,7 @@ class so {
|
|
|
5157
5157
|
o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
|
-
class
|
|
5160
|
+
class Fe {
|
|
5161
5161
|
/**
|
|
5162
5162
|
* 创建着色器
|
|
5163
5163
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -5303,7 +5303,7 @@ class Ne {
|
|
|
5303
5303
|
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
5304
5304
|
const y = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(y, w);
|
|
5305
5305
|
for (const f of k) {
|
|
5306
|
-
const z = (f[0] - y[0]) * e.ratio, T = (f[1] - y[3]) * e.ratio, O = f[2] * e.ratio, [
|
|
5306
|
+
const z = (f[0] - y[0]) * e.ratio, T = (f[1] - y[3]) * e.ratio, O = f[2] * e.ratio, [I, P, _, L] = [z, O + z, T, O + T], C = new Float32Array([I, _, P, _, I, L, I, L, P, _, P, L]);
|
|
5307
5307
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5308
5308
|
}
|
|
5309
5309
|
} catch (p) {
|
|
@@ -5711,7 +5711,7 @@ const us = {
|
|
|
5711
5711
|
function fs(t, e, o, i, a, r) {
|
|
5712
5712
|
return null;
|
|
5713
5713
|
}
|
|
5714
|
-
const ys = /* @__PURE__ */
|
|
5714
|
+
const ys = /* @__PURE__ */ q(gs, [["render", fs]]);
|
|
5715
5715
|
const bs = {
|
|
5716
5716
|
name: "IdmWindParticle",
|
|
5717
5717
|
props: {
|
|
@@ -5732,7 +5732,7 @@ const bs = {
|
|
|
5732
5732
|
texture: void 0,
|
|
5733
5733
|
rampColor: void 0,
|
|
5734
5734
|
aPositionBuffer: void 0,
|
|
5735
|
-
webgl: new
|
|
5735
|
+
webgl: new Fe(),
|
|
5736
5736
|
etime: void 0,
|
|
5737
5737
|
wrapper: void 0,
|
|
5738
5738
|
animation: void 0,
|
|
@@ -5892,9 +5892,9 @@ function xs(t, e, o, i, a, r) {
|
|
|
5892
5892
|
l("span", null, "40", -1),
|
|
5893
5893
|
l("span", null, "60", -1)
|
|
5894
5894
|
]), 4)
|
|
5895
|
-
])) :
|
|
5895
|
+
])) : D("", !0);
|
|
5896
5896
|
}
|
|
5897
|
-
const vs = /* @__PURE__ */
|
|
5897
|
+
const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
|
|
5898
5898
|
name: "IdmCurrent",
|
|
5899
5899
|
props: {
|
|
5900
5900
|
map: {
|
|
@@ -6052,7 +6052,7 @@ const vs = /* @__PURE__ */ X(bs, [["render", xs]]), _s = {
|
|
|
6052
6052
|
function ks(t, e, o, i, a, r) {
|
|
6053
6053
|
return null;
|
|
6054
6054
|
}
|
|
6055
|
-
const zs = /* @__PURE__ */
|
|
6055
|
+
const zs = /* @__PURE__ */ q(_s, [["render", ks]]);
|
|
6056
6056
|
const Ls = {
|
|
6057
6057
|
name: "IdmCurrentParticle",
|
|
6058
6058
|
props: {
|
|
@@ -6073,7 +6073,7 @@ const Ls = {
|
|
|
6073
6073
|
texture: void 0,
|
|
6074
6074
|
rampColor: void 0,
|
|
6075
6075
|
aPositionBuffer: void 0,
|
|
6076
|
-
webgl: new
|
|
6076
|
+
webgl: new Fe(),
|
|
6077
6077
|
etime: void 0,
|
|
6078
6078
|
wrapper: void 0,
|
|
6079
6079
|
animation: void 0,
|
|
@@ -6229,9 +6229,9 @@ function Cs(t, e, o, i, a, r) {
|
|
|
6229
6229
|
l("span", null, "2", -1),
|
|
6230
6230
|
l("span", null, "3.2", -1)
|
|
6231
6231
|
]), 4)
|
|
6232
|
-
])) :
|
|
6232
|
+
])) : D("", !0);
|
|
6233
6233
|
}
|
|
6234
|
-
const Ts = /* @__PURE__ */
|
|
6234
|
+
const Ts = /* @__PURE__ */ q(Ls, [["render", Cs]]);
|
|
6235
6235
|
const Ss = {
|
|
6236
6236
|
name: "IdmSigWave",
|
|
6237
6237
|
props: {
|
|
@@ -6256,7 +6256,7 @@ const Ss = {
|
|
|
6256
6256
|
texture: void 0,
|
|
6257
6257
|
rampColor: void 0,
|
|
6258
6258
|
aPositionBuffer: void 0,
|
|
6259
|
-
webgl: new
|
|
6259
|
+
webgl: new Fe(),
|
|
6260
6260
|
etime: void 0,
|
|
6261
6261
|
right: 10
|
|
6262
6262
|
};
|
|
@@ -6353,9 +6353,9 @@ function Is(t, e, o, i, a, r) {
|
|
|
6353
6353
|
l("span", null, "6", -1),
|
|
6354
6354
|
l("span", null, "9", -1)
|
|
6355
6355
|
]), 4)
|
|
6356
|
-
])) :
|
|
6356
|
+
])) : D("", !0);
|
|
6357
6357
|
}
|
|
6358
|
-
const
|
|
6358
|
+
const Ds = /* @__PURE__ */ q(Ss, [["render", Is], ["__scopeId", "data-v-fa73c319"]]), As = {
|
|
6359
6359
|
name: "IdmSigWaveHeight",
|
|
6360
6360
|
props: {
|
|
6361
6361
|
map: {
|
|
@@ -6503,7 +6503,7 @@ const As = /* @__PURE__ */ X(Ss, [["render", Is], ["__scopeId", "data-v-fa73c319
|
|
|
6503
6503
|
function Rs(t, e, o, i, a, r) {
|
|
6504
6504
|
return null;
|
|
6505
6505
|
}
|
|
6506
|
-
const Os = /* @__PURE__ */
|
|
6506
|
+
const Os = /* @__PURE__ */ q(As, [["render", Rs]]);
|
|
6507
6507
|
const Bs = {
|
|
6508
6508
|
name: "IdmSwell",
|
|
6509
6509
|
props: {
|
|
@@ -6528,7 +6528,7 @@ const Bs = {
|
|
|
6528
6528
|
texture: void 0,
|
|
6529
6529
|
rampColor: void 0,
|
|
6530
6530
|
aPositionBuffer: void 0,
|
|
6531
|
-
webgl: new
|
|
6531
|
+
webgl: new Fe(),
|
|
6532
6532
|
etime: void 0,
|
|
6533
6533
|
right: 10
|
|
6534
6534
|
};
|
|
@@ -6625,9 +6625,9 @@ function js(t, e, o, i, a, r) {
|
|
|
6625
6625
|
l("span", null, "6", -1),
|
|
6626
6626
|
l("span", null, "9", -1)
|
|
6627
6627
|
]), 4)
|
|
6628
|
-
])) :
|
|
6628
|
+
])) : D("", !0);
|
|
6629
6629
|
}
|
|
6630
|
-
const Ns = /* @__PURE__ */
|
|
6630
|
+
const Ns = /* @__PURE__ */ q(Bs, [["render", js], ["__scopeId", "data-v-d47b8b5c"]]), Fs = {
|
|
6631
6631
|
name: "IdmPrmsl",
|
|
6632
6632
|
props: {
|
|
6633
6633
|
map: {
|
|
@@ -6789,7 +6789,7 @@ function Gs(t, e, o, i, a, r) {
|
|
|
6789
6789
|
location: "left"
|
|
6790
6790
|
}, {
|
|
6791
6791
|
activator: u(({ props: g }) => [
|
|
6792
|
-
h(s,
|
|
6792
|
+
h(s, E(g, {
|
|
6793
6793
|
"min-width": "32",
|
|
6794
6794
|
width: "32",
|
|
6795
6795
|
height: "32",
|
|
@@ -6807,9 +6807,9 @@ function Gs(t, e, o, i, a, r) {
|
|
|
6807
6807
|
_: 1
|
|
6808
6808
|
})
|
|
6809
6809
|
], 4)
|
|
6810
|
-
])) :
|
|
6810
|
+
])) : D("", !0);
|
|
6811
6811
|
}
|
|
6812
|
-
const Ws = /* @__PURE__ */
|
|
6812
|
+
const Ws = /* @__PURE__ */ q(Fs, [["render", Gs]]);
|
|
6813
6813
|
const Us = {
|
|
6814
6814
|
name: "IdmIceEdge",
|
|
6815
6815
|
props: {
|
|
@@ -6834,7 +6834,7 @@ const Us = {
|
|
|
6834
6834
|
texture: void 0,
|
|
6835
6835
|
rampColor: void 0,
|
|
6836
6836
|
aPositionBuffer: void 0,
|
|
6837
|
-
webgl: new
|
|
6837
|
+
webgl: new Fe(),
|
|
6838
6838
|
etime: void 0,
|
|
6839
6839
|
right: 10
|
|
6840
6840
|
};
|
|
@@ -6909,7 +6909,7 @@ const Us = {
|
|
|
6909
6909
|
}
|
|
6910
6910
|
}
|
|
6911
6911
|
}, Vs = { key: 0 };
|
|
6912
|
-
function
|
|
6912
|
+
function Zs(t, e, o, i, a, r) {
|
|
6913
6913
|
var s;
|
|
6914
6914
|
return (s = o.factor) != null && s.active ? (b(), S("div", Vs, [
|
|
6915
6915
|
l("div", {
|
|
@@ -6929,9 +6929,9 @@ function Ys(t, e, o, i, a, r) {
|
|
|
6929
6929
|
l("span", null, "90", -1),
|
|
6930
6930
|
l("span", null, null, -1)
|
|
6931
6931
|
]), 4)
|
|
6932
|
-
])) :
|
|
6932
|
+
])) : D("", !0);
|
|
6933
6933
|
}
|
|
6934
|
-
const
|
|
6934
|
+
const Ys = /* @__PURE__ */ q(Us, [["render", Zs]]);
|
|
6935
6935
|
const qs = {
|
|
6936
6936
|
name: "IdmCover",
|
|
6937
6937
|
props: {
|
|
@@ -6956,7 +6956,7 @@ const qs = {
|
|
|
6956
6956
|
texture: void 0,
|
|
6957
6957
|
rampColor: void 0,
|
|
6958
6958
|
aPositionBuffer: void 0,
|
|
6959
|
-
webgl: new
|
|
6959
|
+
webgl: new Fe(),
|
|
6960
6960
|
etime: void 0,
|
|
6961
6961
|
right: 10
|
|
6962
6962
|
};
|
|
@@ -7036,9 +7036,9 @@ function Ks(t, e, o, i, a, r) {
|
|
|
7036
7036
|
l("span", null, "80", -1),
|
|
7037
7037
|
l("span", null, "100", -1)
|
|
7038
7038
|
]), 4)
|
|
7039
|
-
])) :
|
|
7039
|
+
])) : D("", !0);
|
|
7040
7040
|
}
|
|
7041
|
-
const $s = /* @__PURE__ */
|
|
7041
|
+
const $s = /* @__PURE__ */ q(qs, [["render", Ks], ["__scopeId", "data-v-dcedee39"]]);
|
|
7042
7042
|
const Qs = {
|
|
7043
7043
|
name: "IdmThickness",
|
|
7044
7044
|
props: {
|
|
@@ -7063,7 +7063,7 @@ const Qs = {
|
|
|
7063
7063
|
texture: void 0,
|
|
7064
7064
|
rampColor: void 0,
|
|
7065
7065
|
aPositionBuffer: void 0,
|
|
7066
|
-
webgl: new
|
|
7066
|
+
webgl: new Fe(),
|
|
7067
7067
|
etime: void 0,
|
|
7068
7068
|
right: 10
|
|
7069
7069
|
};
|
|
@@ -7151,9 +7151,9 @@ function en(t, e, o, i, a, r) {
|
|
|
7151
7151
|
l("span", null, "2", -1),
|
|
7152
7152
|
l("span", null, "3", -1)
|
|
7153
7153
|
]), 4)
|
|
7154
|
-
])) :
|
|
7154
|
+
])) : D("", !0);
|
|
7155
7155
|
}
|
|
7156
|
-
const tn = /* @__PURE__ */
|
|
7156
|
+
const tn = /* @__PURE__ */ q(Qs, [["render", en]]);
|
|
7157
7157
|
const on = {
|
|
7158
7158
|
name: "IdmPrecip3h",
|
|
7159
7159
|
props: {
|
|
@@ -7182,7 +7182,7 @@ const on = {
|
|
|
7182
7182
|
texture: void 0,
|
|
7183
7183
|
rampColor: void 0,
|
|
7184
7184
|
aPositionBuffer: void 0,
|
|
7185
|
-
webgl: new
|
|
7185
|
+
webgl: new Fe(),
|
|
7186
7186
|
etime: void 0,
|
|
7187
7187
|
right: 10
|
|
7188
7188
|
};
|
|
@@ -7268,9 +7268,9 @@ function rn(t, e, o, i, a, r) {
|
|
|
7268
7268
|
l("span", null, "20", -1),
|
|
7269
7269
|
l("span", null, "30", -1)
|
|
7270
7270
|
]), 4)
|
|
7271
|
-
])) :
|
|
7271
|
+
])) : D("", !0);
|
|
7272
7272
|
}
|
|
7273
|
-
const ln = /* @__PURE__ */
|
|
7273
|
+
const ln = /* @__PURE__ */ q(on, [["render", rn]]);
|
|
7274
7274
|
const sn = {
|
|
7275
7275
|
name: "IdmVisibility",
|
|
7276
7276
|
props: {
|
|
@@ -7296,7 +7296,7 @@ const sn = {
|
|
|
7296
7296
|
texture: void 0,
|
|
7297
7297
|
rampColor: void 0,
|
|
7298
7298
|
aPositionBuffer: void 0,
|
|
7299
|
-
webgl: new
|
|
7299
|
+
webgl: new Fe(),
|
|
7300
7300
|
etime: void 0
|
|
7301
7301
|
};
|
|
7302
7302
|
},
|
|
@@ -7373,9 +7373,9 @@ function cn(t, e, o, i, a, r) {
|
|
|
7373
7373
|
l("span", null, "3", -1),
|
|
7374
7374
|
l("span", null, "9", -1)
|
|
7375
7375
|
]), 4)
|
|
7376
|
-
])) :
|
|
7376
|
+
])) : D("", !0);
|
|
7377
7377
|
}
|
|
7378
|
-
const mn = /* @__PURE__ */
|
|
7378
|
+
const mn = /* @__PURE__ */ q(sn, [["render", cn]]);
|
|
7379
7379
|
const dn = {
|
|
7380
7380
|
name: "IdmWaterTemp",
|
|
7381
7381
|
props: {
|
|
@@ -7396,7 +7396,7 @@ const dn = {
|
|
|
7396
7396
|
texture: void 0,
|
|
7397
7397
|
rampColor: void 0,
|
|
7398
7398
|
aPositionBuffer: void 0,
|
|
7399
|
-
webgl: new
|
|
7399
|
+
webgl: new Fe(),
|
|
7400
7400
|
etime: void 0,
|
|
7401
7401
|
right: 10
|
|
7402
7402
|
};
|
|
@@ -7481,9 +7481,9 @@ function pn(t, e, o, i, a, r) {
|
|
|
7481
7481
|
l("span", null, "30", -1),
|
|
7482
7482
|
l("span", null, "40", -1)
|
|
7483
7483
|
]), 4)
|
|
7484
|
-
])) :
|
|
7484
|
+
])) : D("", !0);
|
|
7485
7485
|
}
|
|
7486
|
-
const un = /* @__PURE__ */
|
|
7486
|
+
const un = /* @__PURE__ */ q(dn, [["render", pn]]);
|
|
7487
7487
|
const gn = {
|
|
7488
7488
|
name: "IdmTemp",
|
|
7489
7489
|
props: {
|
|
@@ -7512,7 +7512,7 @@ const gn = {
|
|
|
7512
7512
|
texture: void 0,
|
|
7513
7513
|
rampColor: void 0,
|
|
7514
7514
|
aPositionBuffer: void 0,
|
|
7515
|
-
webgl: new
|
|
7515
|
+
webgl: new Fe(),
|
|
7516
7516
|
etime: void 0,
|
|
7517
7517
|
right: 10
|
|
7518
7518
|
};
|
|
@@ -7602,9 +7602,9 @@ function yn(t, e, o, i, a, r) {
|
|
|
7602
7602
|
l("span", null, "30", -1),
|
|
7603
7603
|
l("span", null, "40", -1)
|
|
7604
7604
|
]), 4)
|
|
7605
|
-
])) :
|
|
7605
|
+
])) : D("", !0);
|
|
7606
7606
|
}
|
|
7607
|
-
const bn = /* @__PURE__ */
|
|
7607
|
+
const bn = /* @__PURE__ */ q(gn, [["render", yn]]);
|
|
7608
7608
|
const wn = {
|
|
7609
7609
|
name: "IdmGlLayer",
|
|
7610
7610
|
components: {
|
|
@@ -7612,11 +7612,11 @@ const wn = {
|
|
|
7612
7612
|
IdmWindParticle: vs,
|
|
7613
7613
|
IdmCurrentDirection: zs,
|
|
7614
7614
|
IdmCurrentParticle: Ts,
|
|
7615
|
-
IdmWave:
|
|
7615
|
+
IdmWave: Ds,
|
|
7616
7616
|
IdmSigWaveHeight: Os,
|
|
7617
7617
|
IdmSwell: Ns,
|
|
7618
7618
|
IdmPrmsl: Ws,
|
|
7619
|
-
IdmIceEdge:
|
|
7619
|
+
IdmIceEdge: Ys,
|
|
7620
7620
|
IdmIceCover: $s,
|
|
7621
7621
|
IdmIceThickness: tn,
|
|
7622
7622
|
IdmPrecip3h: ln,
|
|
@@ -7728,7 +7728,7 @@ const wn = {
|
|
|
7728
7728
|
return function(t) {
|
|
7729
7729
|
var e;
|
|
7730
7730
|
if (t) {
|
|
7731
|
-
const o =
|
|
7731
|
+
const o = M(t);
|
|
7732
7732
|
return `${(e = o == null ? void 0 : o.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
7733
7733
|
}
|
|
7734
7734
|
return "-";
|
|
@@ -7775,7 +7775,7 @@ const wn = {
|
|
|
7775
7775
|
},
|
|
7776
7776
|
realTime: {
|
|
7777
7777
|
handler(t, e) {
|
|
7778
|
-
t && e &&
|
|
7778
|
+
t && e && M(t).utc().format("yyyy-MM-DD HH") !== M(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
7779
7779
|
this.fetchWeatherLayers();
|
|
7780
7780
|
});
|
|
7781
7781
|
},
|
|
@@ -7875,15 +7875,15 @@ const wn = {
|
|
|
7875
7875
|
const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, f = (r = this.map) == null ? void 0 : r.getBounds(), z = `${f._sw.lng},${f._sw.lat},${f._ne.lng},${f._ne.lat}`;
|
|
7876
7876
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
7877
7877
|
const T = io.WEATHER_LAYERS.find((O) => {
|
|
7878
|
-
var
|
|
7879
|
-
return ((
|
|
7878
|
+
var I;
|
|
7879
|
+
return ((I = O.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
7880
7880
|
});
|
|
7881
7881
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight : this.weatherWeight + T.weight : this.weatherWeight = this.weatherWeight & T.weight ? this.weatherWeight - T.weight : this.weatherWeight;
|
|
7882
7882
|
}
|
|
7883
7883
|
if (this.weatherWeight > 0) {
|
|
7884
7884
|
let T = this.weatherWeight;
|
|
7885
7885
|
if (T > 0) {
|
|
7886
|
-
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
7886
|
+
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
7887
7887
|
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${k}&bbox=${z}&t=${this.realTime}`,
|
|
7888
7888
|
{
|
|
7889
7889
|
headers: {
|
|
@@ -7891,8 +7891,8 @@ const wn = {
|
|
|
7891
7891
|
}
|
|
7892
7892
|
}
|
|
7893
7893
|
);
|
|
7894
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c =
|
|
7895
|
-
const P = (n =
|
|
7894
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
7895
|
+
const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
|
|
7896
7896
|
for (const C in P)
|
|
7897
7897
|
_.push(
|
|
7898
7898
|
Se.get(P[C], {
|
|
@@ -7907,13 +7907,13 @@ const wn = {
|
|
|
7907
7907
|
);
|
|
7908
7908
|
const L = await Promise.all(_);
|
|
7909
7909
|
this.weatherLayers = {}, L.map((C) => {
|
|
7910
|
-
var F,
|
|
7910
|
+
var F, Z, Y, V;
|
|
7911
7911
|
const v = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
|
|
7912
|
-
let A = (
|
|
7912
|
+
let A = (Y = (Z = C == null ? void 0 : C.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
|
|
7913
7913
|
A && v && (this.weatherLayers[A] = {
|
|
7914
7914
|
raw: v,
|
|
7915
7915
|
type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
|
|
7916
|
-
etime:
|
|
7916
|
+
etime: I.data.etime
|
|
7917
7917
|
});
|
|
7918
7918
|
});
|
|
7919
7919
|
}
|
|
@@ -7923,7 +7923,7 @@ const wn = {
|
|
|
7923
7923
|
type: "json",
|
|
7924
7924
|
direction: P,
|
|
7925
7925
|
height: { raw: _ },
|
|
7926
|
-
etime:
|
|
7926
|
+
etime: I.data.etime
|
|
7927
7927
|
};
|
|
7928
7928
|
}
|
|
7929
7929
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
@@ -7932,7 +7932,7 @@ const wn = {
|
|
|
7932
7932
|
type: "json",
|
|
7933
7933
|
direction: P,
|
|
7934
7934
|
speed: { raw: _ },
|
|
7935
|
-
etime:
|
|
7935
|
+
etime: I.data.etime
|
|
7936
7936
|
};
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
@@ -7995,7 +7995,7 @@ const wn = {
|
|
|
7995
7995
|
for (const T in this.weatherLayers) {
|
|
7996
7996
|
let O = !1;
|
|
7997
7997
|
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
7998
|
-
let
|
|
7998
|
+
let I = [];
|
|
7999
7999
|
if (T === "swell") {
|
|
8000
8000
|
O = !0;
|
|
8001
8001
|
const P = ((y = this.weatherLayers[T]) == null ? void 0 : y.direction) || {};
|
|
@@ -8003,38 +8003,38 @@ const wn = {
|
|
|
8003
8003
|
if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8004
8004
|
const C = P[L].lng;
|
|
8005
8005
|
r > s ? C.forEach((v, A) => {
|
|
8006
|
-
var F,
|
|
8006
|
+
var F, Z, Y, V, ee, $;
|
|
8007
8007
|
if (a < 2) {
|
|
8008
8008
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8009
8009
|
const J = G.point([v, L], {
|
|
8010
|
-
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((
|
|
8011
|
-
spd: (
|
|
8010
|
+
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8011
|
+
spd: (Y = P[L].spd) == null ? void 0 : Y[A]
|
|
8012
8012
|
});
|
|
8013
|
-
|
|
8013
|
+
I.push(J);
|
|
8014
8014
|
}
|
|
8015
8015
|
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8016
8016
|
const J = G.point([v, L], {
|
|
8017
8017
|
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
|
|
8018
8018
|
spd: ($ = P[L].spd) == null ? void 0 : $[A]
|
|
8019
8019
|
});
|
|
8020
|
-
|
|
8020
|
+
I.push(J);
|
|
8021
8021
|
}
|
|
8022
8022
|
}) : C.forEach((v, A) => {
|
|
8023
|
-
var F,
|
|
8023
|
+
var F, Z, Y, V, ee, $;
|
|
8024
8024
|
if (r < 2) {
|
|
8025
8025
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8026
8026
|
const J = G.point([v, L], {
|
|
8027
|
-
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((
|
|
8028
|
-
spd: (
|
|
8027
|
+
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8028
|
+
spd: (Y = P[L].spd) == null ? void 0 : Y[A]
|
|
8029
8029
|
});
|
|
8030
|
-
|
|
8030
|
+
I.push(J);
|
|
8031
8031
|
}
|
|
8032
8032
|
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8033
8033
|
const J = G.point([v, L], {
|
|
8034
8034
|
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
|
|
8035
8035
|
spd: ($ = P[L].spd) == null ? void 0 : $[A]
|
|
8036
8036
|
});
|
|
8037
|
-
|
|
8037
|
+
I.push(J);
|
|
8038
8038
|
}
|
|
8039
8039
|
});
|
|
8040
8040
|
}
|
|
@@ -8056,7 +8056,7 @@ const wn = {
|
|
|
8056
8056
|
}
|
|
8057
8057
|
if (_.data) {
|
|
8058
8058
|
const L = this.handleBboxClip(_.data, i);
|
|
8059
|
-
|
|
8059
|
+
I = I.concat(L);
|
|
8060
8060
|
}
|
|
8061
8061
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8062
8062
|
}
|
|
@@ -8067,38 +8067,38 @@ const wn = {
|
|
|
8067
8067
|
if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8068
8068
|
const C = P[L].lng;
|
|
8069
8069
|
r > s ? C.forEach((v, A) => {
|
|
8070
|
-
var F,
|
|
8070
|
+
var F, Z, Y, V, ee, $;
|
|
8071
8071
|
if (a < 2) {
|
|
8072
8072
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8073
8073
|
const J = G.point([v, L], {
|
|
8074
|
-
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((
|
|
8075
|
-
spd: (
|
|
8074
|
+
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8075
|
+
spd: (Y = P[L].spd) == null ? void 0 : Y[A]
|
|
8076
8076
|
});
|
|
8077
|
-
|
|
8077
|
+
I.push(J);
|
|
8078
8078
|
}
|
|
8079
8079
|
} else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8080
8080
|
const J = G.point([v, L], {
|
|
8081
8081
|
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
|
|
8082
8082
|
spd: ($ = P[L].spd) == null ? void 0 : $[A]
|
|
8083
8083
|
});
|
|
8084
|
-
|
|
8084
|
+
I.push(J);
|
|
8085
8085
|
}
|
|
8086
8086
|
}) : C.forEach((v, A) => {
|
|
8087
|
-
var F,
|
|
8087
|
+
var F, Z, Y, V, ee, $;
|
|
8088
8088
|
if (r < 2) {
|
|
8089
8089
|
if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
|
|
8090
8090
|
const J = G.point([v, L], {
|
|
8091
|
-
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((
|
|
8092
|
-
spd: (
|
|
8091
|
+
val: ((F = P[L].val) == null ? void 0 : F[A]) || ((Z = P[L].dir) == null ? void 0 : Z[A]),
|
|
8092
|
+
spd: (Y = P[L].spd) == null ? void 0 : Y[A]
|
|
8093
8093
|
});
|
|
8094
|
-
|
|
8094
|
+
I.push(J);
|
|
8095
8095
|
}
|
|
8096
8096
|
} else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8097
8097
|
const J = G.point([v, L], {
|
|
8098
8098
|
val: ((V = P[L].val) == null ? void 0 : V[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
|
|
8099
8099
|
spd: ($ = P[L].spd) == null ? void 0 : $[A]
|
|
8100
8100
|
});
|
|
8101
|
-
|
|
8101
|
+
I.push(J);
|
|
8102
8102
|
}
|
|
8103
8103
|
});
|
|
8104
8104
|
}
|
|
@@ -8119,7 +8119,7 @@ const wn = {
|
|
|
8119
8119
|
_.data = G.featureCollection(C);
|
|
8120
8120
|
}
|
|
8121
8121
|
const L = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
8122
|
-
|
|
8122
|
+
I = I.concat(L), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8123
8123
|
}
|
|
8124
8124
|
} else if (T === "wind") {
|
|
8125
8125
|
O = !0;
|
|
@@ -8128,45 +8128,45 @@ const wn = {
|
|
|
8128
8128
|
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8129
8129
|
const L = P[_].lng;
|
|
8130
8130
|
r > s ? L.forEach((C, v) => {
|
|
8131
|
-
var A, F,
|
|
8131
|
+
var A, F, Z, Y;
|
|
8132
8132
|
if (a < 2) {
|
|
8133
8133
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8134
8134
|
const V = G.point([C, _], {
|
|
8135
8135
|
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((F = P[_].dir) == null ? void 0 : F[v]),
|
|
8136
8136
|
spd: P[_].spd[v]
|
|
8137
8137
|
});
|
|
8138
|
-
|
|
8138
|
+
I.push(V);
|
|
8139
8139
|
}
|
|
8140
8140
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8141
8141
|
const V = G.point([C, _], {
|
|
8142
|
-
dir: ((
|
|
8142
|
+
dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((Y = P[_].dir) == null ? void 0 : Y[v]),
|
|
8143
8143
|
spd: P[_].spd[v]
|
|
8144
8144
|
});
|
|
8145
|
-
|
|
8145
|
+
I.push(V);
|
|
8146
8146
|
}
|
|
8147
8147
|
}) : L.forEach((C, v) => {
|
|
8148
|
-
var A, F,
|
|
8148
|
+
var A, F, Z, Y;
|
|
8149
8149
|
if (a < 2) {
|
|
8150
8150
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8151
8151
|
const V = G.point([C, _], {
|
|
8152
8152
|
dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((F = P[_].dir) == null ? void 0 : F[v]),
|
|
8153
8153
|
spd: P[_].spd[v]
|
|
8154
8154
|
});
|
|
8155
|
-
|
|
8155
|
+
I.push(V);
|
|
8156
8156
|
}
|
|
8157
8157
|
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8158
8158
|
const V = G.point([C, _], {
|
|
8159
|
-
dir: ((
|
|
8159
|
+
dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((Y = P[_].dir) == null ? void 0 : Y[v]),
|
|
8160
8160
|
spd: P[_].spd[v]
|
|
8161
8161
|
});
|
|
8162
|
-
|
|
8162
|
+
I.push(V);
|
|
8163
8163
|
}
|
|
8164
8164
|
});
|
|
8165
8165
|
}
|
|
8166
8166
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
8167
8167
|
} else if (T === "sig-wave-height") {
|
|
8168
8168
|
if (this.weatherLayers[T].data)
|
|
8169
|
-
|
|
8169
|
+
I = this.weatherLayers[T].data;
|
|
8170
8170
|
else {
|
|
8171
8171
|
O = !0;
|
|
8172
8172
|
const P = this.weatherLayers[T].raw;
|
|
@@ -8199,13 +8199,13 @@ const wn = {
|
|
|
8199
8199
|
})
|
|
8200
8200
|
);
|
|
8201
8201
|
}
|
|
8202
|
-
|
|
8202
|
+
I = I.concat(_);
|
|
8203
8203
|
}
|
|
8204
8204
|
}
|
|
8205
8205
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
8206
8206
|
} else if (T === "prmsl") {
|
|
8207
8207
|
if (this.weatherLayers[T].data)
|
|
8208
|
-
|
|
8208
|
+
I = this.weatherLayers[T].data;
|
|
8209
8209
|
else {
|
|
8210
8210
|
O = !0;
|
|
8211
8211
|
const P = this.weatherLayers[T].raw;
|
|
@@ -8229,12 +8229,12 @@ const wn = {
|
|
|
8229
8229
|
})
|
|
8230
8230
|
);
|
|
8231
8231
|
});
|
|
8232
|
-
|
|
8232
|
+
I = I.concat(_);
|
|
8233
8233
|
}
|
|
8234
8234
|
}
|
|
8235
8235
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
8236
8236
|
}
|
|
8237
|
-
|
|
8237
|
+
I.length && (this.weatherLayers[T].data = G.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
|
|
8238
8238
|
}
|
|
8239
8239
|
}
|
|
8240
8240
|
},
|
|
@@ -8268,16 +8268,16 @@ const wn = {
|
|
|
8268
8268
|
}, Pn = { class: "text-caption px-2" }, Cn = { class: "d-flex flex-row justify-start align-center" }, Tn = {
|
|
8269
8269
|
class: "d-flex flex-row justify-center align-center",
|
|
8270
8270
|
style: { width: "40px" }
|
|
8271
|
-
}, Sn = { class: "text-caption px-2" }, Mn = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, In = { class: "d-flex justify-start align-center ga-3" },
|
|
8271
|
+
}, Sn = { class: "text-caption px-2" }, Mn = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, In = { class: "d-flex justify-start align-center ga-3" }, Dn = { class: "text-h5 font-weight-medium" }, An = {
|
|
8272
8272
|
key: 0,
|
|
8273
8273
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8274
8274
|
}, Rn = {
|
|
8275
8275
|
key: 1,
|
|
8276
8276
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8277
|
-
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" },
|
|
8277
|
+
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
|
|
8278
8278
|
function Jn(t, e, o, i, a, r) {
|
|
8279
|
-
var Q, ae, de, se, he, ge, H, ne, xe, Le, Pe,
|
|
8280
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), f = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"),
|
|
8279
|
+
var Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, De, Ae, Re, _e;
|
|
8280
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), f = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), F = x("IdmWave"), Z = x("IdmSwell"), Y = x("IdmIceEdge"), V = x("IdmIceCover"), ee = x("IdmIceThickness"), $ = x("IdmPrecip3h"), J = x("IdmVisibility"), pe = x("IdmWaterTemp"), me = x("IdmTemp");
|
|
8281
8281
|
return b(), S("div", xn, [
|
|
8282
8282
|
l("div", {
|
|
8283
8283
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8288,7 +8288,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8288
8288
|
location: "left"
|
|
8289
8289
|
}, {
|
|
8290
8290
|
activator: u(({ props: W }) => [
|
|
8291
|
-
h(s,
|
|
8291
|
+
h(s, E(W, {
|
|
8292
8292
|
"min-width": "32",
|
|
8293
8293
|
width: "32",
|
|
8294
8294
|
height: "32",
|
|
@@ -8315,7 +8315,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8315
8315
|
location: "left"
|
|
8316
8316
|
}, {
|
|
8317
8317
|
activator: u(({ props: W }) => [
|
|
8318
|
-
h(s,
|
|
8318
|
+
h(s, E(W, {
|
|
8319
8319
|
"min-width": "32",
|
|
8320
8320
|
width: "32",
|
|
8321
8321
|
height: "32",
|
|
@@ -8353,7 +8353,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8353
8353
|
default: u(() => [
|
|
8354
8354
|
l("div", _n, [
|
|
8355
8355
|
l("i", {
|
|
8356
|
-
class:
|
|
8356
|
+
class: Ne(["iconfont", r.barbsIconName[te]]),
|
|
8357
8357
|
style: ie({ color: o.theme === "dark" ? "#fff" : "#000" })
|
|
8358
8358
|
}, null, 6),
|
|
8359
8359
|
l("span", kn, m(Number(W) < 10 ? `00${W}kts` : Number(W) < 100 ? `0${W}kts` : `${W}kts`), 1)
|
|
@@ -8436,15 +8436,15 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8436
8436
|
})
|
|
8437
8437
|
]),
|
|
8438
8438
|
_: 1
|
|
8439
|
-
}, 8, ["style"])) :
|
|
8440
|
-
])) :
|
|
8439
|
+
}, 8, ["style"])) : D("", !0)
|
|
8440
|
+
])) : D("", !0),
|
|
8441
8441
|
l("div", {
|
|
8442
|
-
class:
|
|
8442
|
+
class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
8443
8443
|
style: ie({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
8444
8444
|
}, [
|
|
8445
8445
|
l("div", Mn, [
|
|
8446
8446
|
l("div", In, [
|
|
8447
|
-
l("div",
|
|
8447
|
+
l("div", Dn, m(t.$t("weather.weather")), 1),
|
|
8448
8448
|
h(k, {
|
|
8449
8449
|
modelValue: a.autoActive,
|
|
8450
8450
|
"onUpdate:modelValue": e[1] || (e[1] = (W) => a.autoActive = W),
|
|
@@ -8470,7 +8470,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8470
8470
|
}, 8, ["onClick"])
|
|
8471
8471
|
]),
|
|
8472
8472
|
l("div", {
|
|
8473
|
-
class:
|
|
8473
|
+
class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
8474
8474
|
}, [
|
|
8475
8475
|
h(w, {
|
|
8476
8476
|
class: "block-bg mx-auto mb-3",
|
|
@@ -8484,7 +8484,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8484
8484
|
style: { "font-size": "16px !important" }
|
|
8485
8485
|
}, {
|
|
8486
8486
|
default: u(() => [
|
|
8487
|
-
|
|
8487
|
+
B(m(t.$t("weather.overlays")), 1)
|
|
8488
8488
|
]),
|
|
8489
8489
|
_: 1
|
|
8490
8490
|
})
|
|
@@ -8524,7 +8524,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8524
8524
|
style: { "font-size": "16px !important" }
|
|
8525
8525
|
}, {
|
|
8526
8526
|
default: u(() => [
|
|
8527
|
-
|
|
8527
|
+
B(m(t.$t("weather.renders")), 1)
|
|
8528
8528
|
]),
|
|
8529
8529
|
_: 1
|
|
8530
8530
|
})
|
|
@@ -8549,7 +8549,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8549
8549
|
"hide-details": "",
|
|
8550
8550
|
onClick: (te) => a.renderKey = a.renderKey === W.key ? "" : W.key
|
|
8551
8551
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
8552
|
-
a.renderKey === "wind-particle" && W.key === "wind-particle" ? (b(), S("div",
|
|
8552
|
+
a.renderKey === "wind-particle" && W.key === "wind-particle" ? (b(), S("div", An, [
|
|
8553
8553
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8554
8554
|
h(k, {
|
|
8555
8555
|
modelValue: a.showWindParticle,
|
|
@@ -8563,7 +8563,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8563
8563
|
style: { "font-size": "14px" },
|
|
8564
8564
|
"hide-details": ""
|
|
8565
8565
|
}, null, 8, ["modelValue"])
|
|
8566
|
-
])) :
|
|
8566
|
+
])) : D("", !0),
|
|
8567
8567
|
a.renderKey === "current-particle" && W.key === "current-particle" ? (b(), S("div", Rn, [
|
|
8568
8568
|
l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8569
8569
|
h(k, {
|
|
@@ -8578,8 +8578,8 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8578
8578
|
height: "20",
|
|
8579
8579
|
"hide-details": ""
|
|
8580
8580
|
}, null, 8, ["modelValue"])
|
|
8581
|
-
])) :
|
|
8582
|
-
a.renderKey === "wave-group" && W.key === "wave-group" ? (b(), R(
|
|
8581
|
+
])) : D("", !0),
|
|
8582
|
+
a.renderKey === "wave-group" && W.key === "wave-group" ? (b(), R(I, {
|
|
8583
8583
|
key: 2,
|
|
8584
8584
|
modelValue: a.waveToggleValue,
|
|
8585
8585
|
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.waveToggleValue = te),
|
|
@@ -8601,7 +8601,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8601
8601
|
disabled: !a.autoActive
|
|
8602
8602
|
}, {
|
|
8603
8603
|
default: u(() => [
|
|
8604
|
-
|
|
8604
|
+
B(m(t.$t("weather.significant")), 1)
|
|
8605
8605
|
]),
|
|
8606
8606
|
_: 1
|
|
8607
8607
|
}, 8, ["color", "disabled"]),
|
|
@@ -8615,14 +8615,14 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8615
8615
|
value: "swell"
|
|
8616
8616
|
}, {
|
|
8617
8617
|
default: u(() => [
|
|
8618
|
-
|
|
8618
|
+
B(m(t.$t("weather.swell")), 1)
|
|
8619
8619
|
]),
|
|
8620
8620
|
_: 1
|
|
8621
8621
|
}, 8, ["color", "disabled"])
|
|
8622
8622
|
]),
|
|
8623
8623
|
_: 1
|
|
8624
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8625
|
-
a.renderKey === "ice-forecast" && W.key === "ice-forecast" ? (b(), R(
|
|
8624
|
+
}, 8, ["modelValue", "disabled"])) : D("", !0),
|
|
8625
|
+
a.renderKey === "ice-forecast" && W.key === "ice-forecast" ? (b(), R(I, {
|
|
8626
8626
|
key: 3,
|
|
8627
8627
|
modelValue: a.iceToggleValue,
|
|
8628
8628
|
"onUpdate:modelValue": e[7] || (e[7] = (te) => a.iceToggleValue = te),
|
|
@@ -8644,7 +8644,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8644
8644
|
disabled: !a.autoActive
|
|
8645
8645
|
}, {
|
|
8646
8646
|
default: u(() => [
|
|
8647
|
-
|
|
8647
|
+
B(m(t.$t("weather.coverage")), 1)
|
|
8648
8648
|
]),
|
|
8649
8649
|
_: 1
|
|
8650
8650
|
}, 8, ["color", "disabled"]),
|
|
@@ -8658,13 +8658,13 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8658
8658
|
value: "ice-thickness"
|
|
8659
8659
|
}, {
|
|
8660
8660
|
default: u(() => [
|
|
8661
|
-
|
|
8661
|
+
B(m(t.$t("weather.thickness")), 1)
|
|
8662
8662
|
]),
|
|
8663
8663
|
_: 1
|
|
8664
8664
|
}, 8, ["color", "disabled"])
|
|
8665
8665
|
]),
|
|
8666
8666
|
_: 1
|
|
8667
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
8667
|
+
}, 8, ["modelValue", "disabled"])) : D("", !0)
|
|
8668
8668
|
], 64))), 128))
|
|
8669
8669
|
]),
|
|
8670
8670
|
_: 1
|
|
@@ -8684,7 +8684,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8684
8684
|
style: { "font-size": "16px !important" }
|
|
8685
8685
|
}, {
|
|
8686
8686
|
default: u(() => [
|
|
8687
|
-
|
|
8687
|
+
B(m(t.$t("weather.forecastModel")), 1)
|
|
8688
8688
|
]),
|
|
8689
8689
|
_: 1
|
|
8690
8690
|
})
|
|
@@ -8693,13 +8693,13 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8693
8693
|
}),
|
|
8694
8694
|
h(p, { class: "" }, {
|
|
8695
8695
|
default: u(() => {
|
|
8696
|
-
var W, te,
|
|
8696
|
+
var W, te, He, Me, ue, fe, U, Ce, oe, re, Oe, N, ye, Ie, Be, Ee, j, X, Ve, Ze, Ye, Te, qe, Xe, Ke, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo;
|
|
8697
8697
|
return [
|
|
8698
8698
|
l("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
8699
|
-
l("div", Bn, m((
|
|
8699
|
+
l("div", Bn, m((He = (te = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : te.NOAA) == null ? void 0 : He.source) + " " + m((fe = (ue = (Me = a.models) == null ? void 0 : Me.weather) == null ? void 0 : ue.NOAA) == null ? void 0 : fe.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (Ce = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
8700
8700
|
l("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8701
|
-
l("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ie = (ye = (
|
|
8702
|
-
l("div", Nn, m((
|
|
8701
|
+
l("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ie = (ye = (N = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : N.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Ie.initialisationTime)), 1),
|
|
8702
|
+
l("div", Nn, m((j = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : j.source) + " " + m((Ze = (Ve = (X = a.models) == null ? void 0 : X.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Xe = (qe = (Te = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : qe.meta) == null ? void 0 : Xe.days) + m(t.$t("units.days")), 1),
|
|
8703
8703
|
l("div", Fn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8704
8704
|
l("div", Hn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Je = (Qe = ($e = (Ke = a.models) == null ? void 0 : Ke.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
8705
8705
|
h(y),
|
|
@@ -8707,12 +8707,12 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8707
8707
|
l("div", Wn, m((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.source) + " " + m((st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + m(t.$t("units.km")) + " " + m((ht = (dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + m(t.$t("units.days")), 1),
|
|
8708
8708
|
l("div", Un, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8709
8709
|
l("div", Vn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((yt = (ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.NOAA) == null ? void 0 : ft.meta) == null ? void 0 : yt.initialisationTime)), 1),
|
|
8710
|
-
l("div",
|
|
8711
|
-
l("div",
|
|
8712
|
-
l("div", qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (
|
|
8710
|
+
l("div", Zn, m((vt = (xt = (wt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + m((Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + m(t.$t("units.km")) + " " + m((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : Mt.days) + m(t.$t("units.days")), 1),
|
|
8711
|
+
l("div", Yn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8712
|
+
l("div", qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
8713
8713
|
h(y),
|
|
8714
8714
|
l("div", Xn, m(t.$t("weather.currents")), 1),
|
|
8715
|
-
l("div", Kn, m((Nt = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Nt.source) + " " + m((Wt = (Gt = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Gt.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((qt = (
|
|
8715
|
+
l("div", Kn, m((Nt = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Nt.source) + " " + m((Wt = (Gt = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Gt.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((qt = (Yt = (Zt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.days) + m(t.$t("units.days")), 1),
|
|
8716
8716
|
l("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8717
8717
|
l("div", Qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((eo = (Jt = (Qt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.current) == null ? void 0 : Qt.ECMWF) == null ? void 0 : Jt.meta) == null ? void 0 : eo.initialisationTime)), 1)
|
|
8718
8718
|
];
|
|
@@ -8724,7 +8724,7 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8724
8724
|
})
|
|
8725
8725
|
], 2)
|
|
8726
8726
|
], 6),
|
|
8727
|
-
o.map ? (b(), R(P,
|
|
8727
|
+
o.map ? (b(), R(P, E({
|
|
8728
8728
|
key: 1,
|
|
8729
8729
|
ref: "windBarb",
|
|
8730
8730
|
map: o.map,
|
|
@@ -8732,102 +8732,102 @@ function Jn(t, e, o, i, a, r) {
|
|
|
8732
8732
|
"before-layer": "empty-layer-3",
|
|
8733
8733
|
wind: (Q = a.weatherLayers) == null ? void 0 : Q.wind,
|
|
8734
8734
|
"menu-toggle": o.menuToggle
|
|
8735
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
8736
|
-
o.map ? (b(), R(_,
|
|
8735
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
8736
|
+
o.map ? (b(), R(_, E({
|
|
8737
8737
|
key: 2,
|
|
8738
8738
|
map: o.map,
|
|
8739
8739
|
"before-layer": "empty-layer-2",
|
|
8740
8740
|
"sig-wave-height": (ae = a.weatherLayers) == null ? void 0 : ae["sig-wave-height"],
|
|
8741
8741
|
"menu-toggle": o.menuToggle,
|
|
8742
8742
|
"active-weather-layers": a.activeWeatherLayers
|
|
8743
|
-
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
8744
|
-
o.map ? (b(), R(L,
|
|
8743
|
+
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
8744
|
+
o.map ? (b(), R(L, E({
|
|
8745
8745
|
key: 3,
|
|
8746
8746
|
map: o.map,
|
|
8747
8747
|
"map-feather": o.mapFeather,
|
|
8748
8748
|
"before-layer": "empty-layer-2",
|
|
8749
8749
|
current: (de = a.weatherLayers) == null ? void 0 : de.current,
|
|
8750
8750
|
"menu-toggle": o.menuToggle
|
|
8751
|
-
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
8752
|
-
o.map ? (b(), R(C,
|
|
8751
|
+
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
|
|
8752
|
+
o.map ? (b(), R(C, E({
|
|
8753
8753
|
key: 4,
|
|
8754
8754
|
map: o.map,
|
|
8755
8755
|
"before-layer": "empty-layer-2",
|
|
8756
8756
|
prmsl: (se = a.weatherLayers) == null ? void 0 : se.prmsl,
|
|
8757
8757
|
"menu-toggle": o.menuToggle,
|
|
8758
8758
|
"active-weather-layers": a.activeWeatherLayers
|
|
8759
|
-
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) :
|
|
8760
|
-
o.map ? (b(), R(v,
|
|
8759
|
+
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
8760
|
+
o.map ? (b(), R(v, E({
|
|
8761
8761
|
key: 5,
|
|
8762
8762
|
viewport: a.viewport,
|
|
8763
8763
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
8764
8764
|
"menu-toggle": o.menuToggle
|
|
8765
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8766
|
-
o.map ? (b(), R(A,
|
|
8765
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8766
|
+
o.map ? (b(), R(A, E({
|
|
8767
8767
|
key: 6,
|
|
8768
8768
|
viewport: a.viewport,
|
|
8769
8769
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["current-particle"],
|
|
8770
8770
|
"menu-toggle": o.menuToggle
|
|
8771
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8772
|
-
o.map ? (b(), R(F,
|
|
8771
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8772
|
+
o.map ? (b(), R(F, E({
|
|
8773
8773
|
key: 7,
|
|
8774
8774
|
viewport: a.viewport,
|
|
8775
8775
|
factor: (H = a.weatherLayers) == null ? void 0 : H["sig-wave"],
|
|
8776
8776
|
"menu-toggle": o.menuToggle
|
|
8777
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8778
|
-
o.map ? (b(), R(
|
|
8777
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8778
|
+
o.map ? (b(), R(Z, E({
|
|
8779
8779
|
key: 8,
|
|
8780
8780
|
map: o.map,
|
|
8781
8781
|
viewport: a.viewport,
|
|
8782
8782
|
factor: (ne = a.weatherLayers) == null ? void 0 : ne.swell,
|
|
8783
8783
|
"menu-toggle": o.menuToggle,
|
|
8784
8784
|
"active-weather-layers": a.activeWeatherLayers
|
|
8785
|
-
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) :
|
|
8786
|
-
o.map ? (b(), R(
|
|
8785
|
+
}, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
|
|
8786
|
+
o.map ? (b(), R(Y, E({
|
|
8787
8787
|
key: 9,
|
|
8788
8788
|
viewport: a.viewport,
|
|
8789
8789
|
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
8790
8790
|
"menu-toggle": o.menuToggle
|
|
8791
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8792
|
-
o.map ? (b(), R(V,
|
|
8791
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8792
|
+
o.map ? (b(), R(V, E({
|
|
8793
8793
|
key: 10,
|
|
8794
8794
|
viewport: a.viewport,
|
|
8795
8795
|
factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-cover"],
|
|
8796
8796
|
"menu-toggle": o.menuToggle
|
|
8797
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8798
|
-
o.map ? (b(), R(ee,
|
|
8797
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8798
|
+
o.map ? (b(), R(ee, E({
|
|
8799
8799
|
key: 11,
|
|
8800
8800
|
viewport: a.viewport,
|
|
8801
8801
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
8802
8802
|
"menu-toggle": o.menuToggle
|
|
8803
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8804
|
-
o.map ? (b(), R($,
|
|
8803
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8804
|
+
o.map ? (b(), R($, E({
|
|
8805
8805
|
key: 12,
|
|
8806
8806
|
viewport: a.viewport,
|
|
8807
|
-
factor: (
|
|
8807
|
+
factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
|
|
8808
8808
|
"menu-toggle": o.menuToggle
|
|
8809
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8810
|
-
o.map ? (b(), R(J,
|
|
8809
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8810
|
+
o.map ? (b(), R(J, E({
|
|
8811
8811
|
key: 13,
|
|
8812
8812
|
viewport: a.viewport,
|
|
8813
|
-
factor: (
|
|
8813
|
+
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
8814
8814
|
"menu-toggle": o.menuToggle
|
|
8815
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8816
|
-
o.map ? (b(), R(pe,
|
|
8815
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8816
|
+
o.map ? (b(), R(pe, E({
|
|
8817
8817
|
key: 14,
|
|
8818
8818
|
viewport: a.viewport,
|
|
8819
8819
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
8820
8820
|
"menu-toggle": o.menuToggle
|
|
8821
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8822
|
-
o.map ? (b(), R(me,
|
|
8821
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8822
|
+
o.map ? (b(), R(me, E({
|
|
8823
8823
|
key: 15,
|
|
8824
8824
|
viewport: a.viewport,
|
|
8825
8825
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
|
|
8826
8826
|
"menu-toggle": o.menuToggle
|
|
8827
|
-
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
8827
|
+
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0)
|
|
8828
8828
|
]);
|
|
8829
8829
|
}
|
|
8830
|
-
const ec = /* @__PURE__ */
|
|
8830
|
+
const ec = /* @__PURE__ */ q(wn, [["render", Jn]]), to = [
|
|
8831
8831
|
{
|
|
8832
8832
|
rank: 0,
|
|
8833
8833
|
name: "Best Match",
|
|
@@ -9105,7 +9105,7 @@ const ec = /* @__PURE__ */ X(wn, [["render", Jn]]), to = [
|
|
|
9105
9105
|
variables: "swell_wave_direction,swell_wave_height,swell_wave_period,swell_wave_peak_period,wave_direction,wave_height,wave_period,wind_wave_direction,wind_wave_height,wind_wave_period,wind_wave_peak_period"
|
|
9106
9106
|
}
|
|
9107
9107
|
];
|
|
9108
|
-
class
|
|
9108
|
+
class Za {
|
|
9109
9109
|
static standardWeatherModels() {
|
|
9110
9110
|
return to.filter((e) => !e.disabled && e.alias);
|
|
9111
9111
|
}
|
|
@@ -9174,47 +9174,47 @@ class Ya {
|
|
|
9174
9174
|
}), a;
|
|
9175
9175
|
}
|
|
9176
9176
|
static pickHourly(e, o) {
|
|
9177
|
-
var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O,
|
|
9178
|
-
const ue = typeof o == "string" ?
|
|
9177
|
+
var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, De, Ae, Re, _e, W, te, He, Me;
|
|
9178
|
+
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.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"), re = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9179
9179
|
if (ue.isBetween(oe, re, "millisecond", "[]")) {
|
|
9180
|
-
const
|
|
9180
|
+
const N = ue.utc().diff(oe, "h", !1);
|
|
9181
9181
|
let ye, Ie;
|
|
9182
9182
|
if (fe) {
|
|
9183
9183
|
let Be = 0, Ee = 0;
|
|
9184
|
-
for (const
|
|
9185
|
-
const
|
|
9186
|
-
for (let Te =
|
|
9187
|
-
Be += (y =
|
|
9188
|
-
for (let Te =
|
|
9189
|
-
Ee += (w =
|
|
9184
|
+
for (const j of fe) {
|
|
9185
|
+
const X = j == null ? void 0 : j.hourly;
|
|
9186
|
+
for (let Te = N - (N - 1) % 3; Te <= N; Te++)
|
|
9187
|
+
Be += (y = X == null ? void 0 : X.precipitation) == null ? void 0 : y.at(Te);
|
|
9188
|
+
for (let Te = N - (N - 1) % 6; Te <= N; Te++)
|
|
9189
|
+
Ee += (w = X == null ? void 0 : X.precipitation) == null ? void 0 : w.at(Te);
|
|
9190
9190
|
ye = {
|
|
9191
|
-
temp: (k =
|
|
9192
|
-
apparentTemp: (f =
|
|
9193
|
-
rh: (z =
|
|
9194
|
-
dp: (T =
|
|
9191
|
+
temp: (k = X == null ? void 0 : X.temperature_2m) == null ? void 0 : k.at(N),
|
|
9192
|
+
apparentTemp: (f = X == null ? void 0 : X.apparent_temperature) == null ? void 0 : f.at(N),
|
|
9193
|
+
rh: (z = X == null ? void 0 : X.relative_humidity_2m) == null ? void 0 : z.at(N),
|
|
9194
|
+
dp: (T = X == null ? void 0 : X.dew_point_2m) == null ? void 0 : T.at(N),
|
|
9195
9195
|
precip: {
|
|
9196
|
-
probability: (O =
|
|
9197
|
-
sum: (
|
|
9196
|
+
probability: (O = X == null ? void 0 : X.precipitation_probability) == null ? void 0 : O.at(N),
|
|
9197
|
+
sum: (I = X == null ? void 0 : X.precipitation) == null ? void 0 : I.at(N),
|
|
9198
9198
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
9199
9199
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
9200
9200
|
},
|
|
9201
|
-
pmsl: (P =
|
|
9202
|
-
psurf: (_ =
|
|
9203
|
-
code: (L =
|
|
9204
|
-
visibility: this.m2nm((C =
|
|
9201
|
+
pmsl: (P = X == null ? void 0 : X.pressure_msl) == null ? void 0 : P.at(N),
|
|
9202
|
+
psurf: (_ = X == null ? void 0 : X.surface_pressure) == null ? void 0 : _.at(N),
|
|
9203
|
+
code: (L = X == null ? void 0 : X.weather_code) == null ? void 0 : L.at(N),
|
|
9204
|
+
visibility: this.m2nm((C = X == null ? void 0 : X.visibility) == null ? void 0 : C.at(N)),
|
|
9205
9205
|
wind: {
|
|
9206
|
-
speed: (v =
|
|
9207
|
-
kts: (A =
|
|
9208
|
-
degree: (F =
|
|
9209
|
-
bearing: ((
|
|
9210
|
-
gusts: (V =
|
|
9206
|
+
speed: (v = X == null ? void 0 : X.wind_speed_10m) == null ? void 0 : v.at(N),
|
|
9207
|
+
kts: (A = X == null ? void 0 : X.wind_speed_10m) == null ? void 0 : A.at(N),
|
|
9208
|
+
degree: (F = X == null ? void 0 : X.wind_direction_10m) == null ? void 0 : F.at(N),
|
|
9209
|
+
bearing: ((Z = X == null ? void 0 : X.wind_direction_10m) == null ? void 0 : Z.at(N)) !== null ? (((Y = X == null ? void 0 : X.wind_direction_10m) == null ? void 0 : Y.at(N)) + 180) % 360 : null,
|
|
9210
|
+
gusts: (V = X == null ? void 0 : X.wind_gusts_10m) == null ? void 0 : V.at(N)
|
|
9211
9211
|
},
|
|
9212
|
-
isDay: (ee =
|
|
9212
|
+
isDay: (ee = X == null ? void 0 : X.is_day) == null ? void 0 : ee.at(N)
|
|
9213
9213
|
};
|
|
9214
|
-
const { name: Ve, url:
|
|
9215
|
-
ye.name = Ve, ye.url =
|
|
9216
|
-
utc: oe.add(
|
|
9217
|
-
model:
|
|
9214
|
+
const { name: Ve, url: Ze, bg: Ye } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
9215
|
+
ye.name = Ve, ye.url = Ze, ye.bg = Ye, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Oe.push({
|
|
9216
|
+
utc: oe.add(N, "h").format(),
|
|
9217
|
+
model: j.model,
|
|
9218
9218
|
weather: { ...ye }
|
|
9219
9219
|
});
|
|
9220
9220
|
}
|
|
@@ -9222,38 +9222,38 @@ class Ya {
|
|
|
9222
9222
|
if (U) {
|
|
9223
9223
|
let Be = 0;
|
|
9224
9224
|
for (const Ee of U) {
|
|
9225
|
-
const
|
|
9225
|
+
const j = Ee == null ? void 0 : Ee.hourly;
|
|
9226
9226
|
Ie = {
|
|
9227
9227
|
wave: {
|
|
9228
9228
|
sig: {
|
|
9229
|
-
height: ($ =
|
|
9230
|
-
degree: (J =
|
|
9231
|
-
bearing: ((pe =
|
|
9232
|
-
period: (Q =
|
|
9229
|
+
height: ($ = j == null ? void 0 : j.wave_height) == null ? void 0 : $.at(N),
|
|
9230
|
+
degree: (J = j == null ? void 0 : j.wave_direction) == null ? void 0 : J.at(N),
|
|
9231
|
+
bearing: ((pe = j == null ? void 0 : j.wave_direction) == null ? void 0 : pe.at(N)) !== null ? (((me = j == null ? void 0 : j.wave_direction) == null ? void 0 : me.at(N)) + 180) % 360 : null,
|
|
9232
|
+
period: (Q = j == null ? void 0 : j.wave_period) == null ? void 0 : Q.at(N)
|
|
9233
9233
|
},
|
|
9234
9234
|
swell: {
|
|
9235
|
-
height: (ae =
|
|
9236
|
-
degree: (de =
|
|
9237
|
-
bearing: ((se =
|
|
9238
|
-
period: (ge =
|
|
9239
|
-
peakPeriod: (H =
|
|
9235
|
+
height: (ae = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : ae.at(N),
|
|
9236
|
+
degree: (de = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : de.at(N),
|
|
9237
|
+
bearing: ((se = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : se.at(N)) !== null ? (((he = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : he.at(N)) + 180) % 360 : null,
|
|
9238
|
+
period: (ge = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : ge.at(N),
|
|
9239
|
+
peakPeriod: (H = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : H.at(N)
|
|
9240
9240
|
},
|
|
9241
9241
|
wd: {
|
|
9242
|
-
height: (ne =
|
|
9243
|
-
degree: (xe =
|
|
9244
|
-
bearing: ((Le =
|
|
9245
|
-
period: (
|
|
9246
|
-
peakPeriod: (
|
|
9242
|
+
height: (ne = j == null ? void 0 : j.wind_wave_height) == null ? void 0 : ne.at(N),
|
|
9243
|
+
degree: (xe = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : xe.at(N),
|
|
9244
|
+
bearing: ((Le = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Le.at(N)) !== null ? (((Pe = j == null ? void 0 : j.wind_wave_direction) == null ? void 0 : Pe.at(N)) + 180) % 360 : null,
|
|
9245
|
+
period: (De = j == null ? void 0 : j.wind_wave_period) == null ? void 0 : De.at(N),
|
|
9246
|
+
peakPeriod: (Ae = j == null ? void 0 : j.wind_wave_peak_period) == null ? void 0 : Ae.at(N)
|
|
9247
9247
|
}
|
|
9248
9248
|
},
|
|
9249
9249
|
current: {
|
|
9250
|
-
speed: (Re =
|
|
9251
|
-
kts: (_e =
|
|
9252
|
-
degree: (W =
|
|
9253
|
-
bearing: ((te =
|
|
9250
|
+
speed: (Re = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : Re.at(N),
|
|
9251
|
+
kts: (_e = j == null ? void 0 : j.ocean_current_velocity) == null ? void 0 : _e.at(N),
|
|
9252
|
+
degree: (W = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : W.at(N),
|
|
9253
|
+
bearing: ((te = j == null ? void 0 : j.ocean_current_direction) == null ? void 0 : te.at(N)) ?? null
|
|
9254
9254
|
},
|
|
9255
|
-
sst: (
|
|
9256
|
-
height: (Me =
|
|
9255
|
+
sst: (He = j == null ? void 0 : j.sea_surface_temperature) == null ? void 0 : He.at(N),
|
|
9256
|
+
height: (Me = j == null ? void 0 : j.sea_level_height_msl) == null ? void 0 : Me.at(N)
|
|
9257
9257
|
}, Ie.wave = this.parseWave(Ie.wave, ye == null ? void 0 : ye.wind), Ie.current.direction = this.degree2Direction(Ie.current.degree), Object.assign(Oe[Be], Ie), Be++;
|
|
9258
9258
|
}
|
|
9259
9259
|
}
|
|
@@ -9283,9 +9283,9 @@ class Ya {
|
|
|
9283
9283
|
};
|
|
9284
9284
|
}
|
|
9285
9285
|
static pickDaily(e, o) {
|
|
9286
|
-
var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O,
|
|
9287
|
-
const Re = typeof o == "string" ?
|
|
9288
|
-
if (Re.isBetween(te,
|
|
9286
|
+
var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, De, Ae;
|
|
9287
|
+
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9288
|
+
if (Re.isBetween(te, He, "millisecond", "[]")) {
|
|
9289
9289
|
let ue, fe;
|
|
9290
9290
|
const U = Re.diff(te, "d", !1);
|
|
9291
9291
|
if (_e)
|
|
@@ -9306,7 +9306,7 @@ class Ya {
|
|
|
9306
9306
|
sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(U),
|
|
9307
9307
|
rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(U),
|
|
9308
9308
|
snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(U),
|
|
9309
|
-
showersSum: (
|
|
9309
|
+
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
|
|
9310
9310
|
hours: (P = oe.precipitation_hours) == null ? void 0 : P.at(U),
|
|
9311
9311
|
probability: (_ = oe.precipitation_probability_max) == null ? void 0 : _.at(U)
|
|
9312
9312
|
},
|
|
@@ -9318,13 +9318,13 @@ class Ya {
|
|
|
9318
9318
|
wind: {
|
|
9319
9319
|
speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(U),
|
|
9320
9320
|
kts: (F = oe.wind_speed_10m_max) == null ? void 0 : F.at(U),
|
|
9321
|
-
degree: (
|
|
9322
|
-
gusts: (
|
|
9321
|
+
degree: (Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U),
|
|
9322
|
+
gusts: (Y = oe.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
|
|
9323
9323
|
bearing: ((V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U)) !== null ? (((ee = oe.wind_direction_10m_dominant) == null ? void 0 : ee.at(U)) + 180) % 360 : null
|
|
9324
9324
|
}
|
|
9325
9325
|
};
|
|
9326
|
-
const { name: re, url: Oe, bg:
|
|
9327
|
-
ue.name = re, ue.url = Oe, ue.bg =
|
|
9326
|
+
const { name: re, url: Oe, bg: N } = this.parseWeatherCode(ue.code, !0);
|
|
9327
|
+
ue.name = re, ue.url = Oe, ue.bg = N, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Me.push({
|
|
9328
9328
|
utc: te.add(U, "d").utc().format(),
|
|
9329
9329
|
model: Ce.model,
|
|
9330
9330
|
weather: { ...ue }
|
|
@@ -9355,7 +9355,7 @@ class Ya {
|
|
|
9355
9355
|
degree: (xe = re.wind_wave_direction_dominant) == null ? void 0 : xe.at(U),
|
|
9356
9356
|
period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(U),
|
|
9357
9357
|
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(U),
|
|
9358
|
-
bearing: ((
|
|
9358
|
+
bearing: ((De = re.wind_wave_direction_dominant) == null ? void 0 : De.at(U)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(U)) + 180) % 360 : null
|
|
9359
9359
|
}
|
|
9360
9360
|
}
|
|
9361
9361
|
}, fe.wave = this.parseWave(fe.wave, ue == null ? void 0 : ue.wind), Object.assign(Me[Ce], fe), Ce++;
|
|
@@ -9867,7 +9867,7 @@ const tc = {
|
|
|
9867
9867
|
computeTime() {
|
|
9868
9868
|
return (t, e) => {
|
|
9869
9869
|
if (t) {
|
|
9870
|
-
const o =
|
|
9870
|
+
const o = M(t).utcOffset(e), i = e < 0 ? e : "+" + e;
|
|
9871
9871
|
return `${o == null ? void 0 : o.format("MMM-DD/HHmm")} ( UTC${i} ) ${o == null ? void 0 : o.fromNow()} `;
|
|
9872
9872
|
}
|
|
9873
9873
|
return "-";
|
|
@@ -9877,7 +9877,7 @@ const tc = {
|
|
|
9877
9877
|
return (t, e, o = "MM-DD HH:mm") => {
|
|
9878
9878
|
var i, a;
|
|
9879
9879
|
if (t) {
|
|
9880
|
-
const r = e || 0, s = (a = (i =
|
|
9880
|
+
const r = e || 0, s = (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
|
|
9881
9881
|
return s + " " + c;
|
|
9882
9882
|
}
|
|
9883
9883
|
return "-";
|
|
@@ -9888,8 +9888,8 @@ const tc = {
|
|
|
9888
9888
|
},
|
|
9889
9889
|
computeBF() {
|
|
9890
9890
|
return function(t) {
|
|
9891
|
-
const e =
|
|
9892
|
-
return
|
|
9891
|
+
const e = Za.kts2ms(t);
|
|
9892
|
+
return Za.beaufort(e);
|
|
9893
9893
|
};
|
|
9894
9894
|
},
|
|
9895
9895
|
computeMovement() {
|
|
@@ -10018,7 +10018,7 @@ const tc = {
|
|
|
10018
10018
|
}
|
|
10019
10019
|
i.properties.level = z;
|
|
10020
10020
|
}
|
|
10021
|
-
((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (f = (k =
|
|
10021
|
+
((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (f = (k = M(i.properties.date)) == null ? void 0 : k.utcOffset(this.timeZone)) == null ? void 0 : f.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
10022
10022
|
}), this.handleInit();
|
|
10023
10023
|
},
|
|
10024
10024
|
handleInit() {
|
|
@@ -10253,9 +10253,9 @@ const tc = {
|
|
|
10253
10253
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
10254
10254
|
},
|
|
10255
10255
|
handleDateChange() {
|
|
10256
|
-
var t, e, o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O,
|
|
10256
|
+
var t, e, o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee;
|
|
10257
10257
|
if ((t = this.interpolateMarkers) == null || t.forEach(($) => $ == null ? void 0 : $.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10258
|
-
const $ =
|
|
10258
|
+
const $ = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((Q) => Q.properties.date === ($ == null ? void 0 : $.format()) && !Q.properties.disabled), pe = this.handleComputePolygons(J), me = G.featureCollection([...J]);
|
|
10259
10259
|
pe.forEach((Q) => {
|
|
10260
10260
|
me.features.push(Q);
|
|
10261
10261
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -10275,7 +10275,7 @@ const tc = {
|
|
|
10275
10275
|
for (const Q of J)
|
|
10276
10276
|
if (!Q.properties.disabled) {
|
|
10277
10277
|
let ae = "#f44336";
|
|
10278
|
-
((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = Q.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((y = (p = Q.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (
|
|
10278
|
+
((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = Q.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((y = (p = Q.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((F = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : F.kts) < 94 ? ae = "#f903d0" : ((Y = (Z = Q.properties) == null ? void 0 : Z.wind) == null ? void 0 : Y.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
10279
10279
|
const de = `<svg t="1719918955501"
|
|
10280
10280
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10281
10281
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -10440,10 +10440,10 @@ const tc = {
|
|
|
10440
10440
|
}, vc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, _c = { class: "more" }, kc = {
|
|
10441
10441
|
class: "my-3",
|
|
10442
10442
|
style: { height: "80px", width: "100%" }
|
|
10443
|
-
}, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = { class: "d-flex justify-start align-center" }, Ic = { class: "text-label pr-1" },
|
|
10443
|
+
}, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = { class: "d-flex justify-start align-center" }, Ic = { class: "text-label pr-1" }, Dc = {
|
|
10444
10444
|
key: 0,
|
|
10445
10445
|
class: "d-flex justify-start align-center"
|
|
10446
|
-
},
|
|
10446
|
+
}, Ac = { class: "text-label pr-1" }, Rc = {
|
|
10447
10447
|
key: 1,
|
|
10448
10448
|
class: "d-flex justify-start align-center"
|
|
10449
10449
|
}, Oc = { class: "text-label pr-1" }, Bc = {
|
|
@@ -10458,7 +10458,7 @@ const tc = {
|
|
|
10458
10458
|
}, Wc = { class: "text-label pr-1" }, Uc = {
|
|
10459
10459
|
key: 5,
|
|
10460
10460
|
class: "d-flex justify-start align-center"
|
|
10461
|
-
}, Vc = { class: "text-label pr-1" },
|
|
10461
|
+
}, Vc = { class: "text-label pr-1" }, Zc = { class: "d-flex justify-start align-center" }, Yc = { class: "text-label pr-1" };
|
|
10462
10462
|
function qc(t, e, o, i, a, r) {
|
|
10463
10463
|
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), y = x("VCard"), w = x("v-card-title"), k = x("v-divider");
|
|
10464
10464
|
return b(), S("div", oc, [
|
|
@@ -10471,7 +10471,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10471
10471
|
location: "left"
|
|
10472
10472
|
}, {
|
|
10473
10473
|
activator: u(({ props: f }) => [
|
|
10474
|
-
h(s,
|
|
10474
|
+
h(s, E(f, {
|
|
10475
10475
|
"min-width": "32",
|
|
10476
10476
|
width: "32",
|
|
10477
10477
|
height: "32",
|
|
@@ -10497,11 +10497,11 @@ function qc(t, e, o, i, a, r) {
|
|
|
10497
10497
|
default: u(() => [
|
|
10498
10498
|
h(n, null, {
|
|
10499
10499
|
default: u(() => {
|
|
10500
|
-
var f, z, T, O,
|
|
10500
|
+
var f, z, T, O, I, P, _, L, C, v, A;
|
|
10501
10501
|
return [
|
|
10502
10502
|
l("div", ic, [
|
|
10503
10503
|
l("span", rc, m(o.locale === "en" ? (f = a.activeTropicals) == null ? void 0 : f.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
|
|
10504
|
-
(O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (b(), S("span", lc, ", " + m((P = (
|
|
10504
|
+
(O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (b(), S("span", lc, ", " + m((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.level), 1)) : D("", !0)
|
|
10505
10505
|
]),
|
|
10506
10506
|
h(s, {
|
|
10507
10507
|
icon: "",
|
|
@@ -10527,7 +10527,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10527
10527
|
h(g),
|
|
10528
10528
|
h(n, { class: "text-body-1" }, {
|
|
10529
10529
|
default: u(() => {
|
|
10530
|
-
var f, z, T, O,
|
|
10530
|
+
var f, z, T, O, I, P, _, L, C;
|
|
10531
10531
|
return [
|
|
10532
10532
|
l("div", cc, [
|
|
10533
10533
|
l("div", mc, [
|
|
@@ -10537,7 +10537,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10537
10537
|
]),
|
|
10538
10538
|
l("div", hc, [
|
|
10539
10539
|
l("label", pc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10540
|
-
l("span", null, m(((P = (
|
|
10540
|
+
l("span", null, m(((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.pressure) || "-") + " hPa", 1)
|
|
10541
10541
|
])
|
|
10542
10542
|
]),
|
|
10543
10543
|
l("div", uc, [
|
|
@@ -10559,11 +10559,11 @@ function qc(t, e, o, i, a, r) {
|
|
|
10559
10559
|
variant: v.disabled ? "text" : "flat",
|
|
10560
10560
|
color: v.disabled ? "" : "primary",
|
|
10561
10561
|
"min-width": 30,
|
|
10562
|
-
class:
|
|
10562
|
+
class: Ne(["model text-none text-body-1 px-1", v.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10563
10563
|
onClick: je((F) => r.handleForecastToggle(v), ["stop"])
|
|
10564
10564
|
}, {
|
|
10565
10565
|
default: u(() => [
|
|
10566
|
-
|
|
10566
|
+
B(m(v.model), 1)
|
|
10567
10567
|
]),
|
|
10568
10568
|
_: 2
|
|
10569
10569
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10588,7 +10588,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10588
10588
|
l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
10589
10589
|
])),
|
|
10590
10590
|
default: u(() => [
|
|
10591
|
-
|
|
10591
|
+
B(" " + m(t.$t("weather.legend")), 1)
|
|
10592
10592
|
]),
|
|
10593
10593
|
_: 1
|
|
10594
10594
|
}, 8, ["color"]),
|
|
@@ -10601,10 +10601,10 @@ function qc(t, e, o, i, a, r) {
|
|
|
10601
10601
|
onClick: e[1] || (e[1] = je((f) => r.handleNotification(a.activeTropicals), ["stop"]))
|
|
10602
10602
|
}, {
|
|
10603
10603
|
default: u(() => [
|
|
10604
|
-
|
|
10604
|
+
B(m(t.$t("actions.notify")), 1)
|
|
10605
10605
|
]),
|
|
10606
10606
|
_: 1
|
|
10607
|
-
})) :
|
|
10607
|
+
})) : D("", !0),
|
|
10608
10608
|
h(s, {
|
|
10609
10609
|
variant: "text",
|
|
10610
10610
|
density: "compact",
|
|
@@ -10613,7 +10613,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10613
10613
|
onClick: e[2] || (e[2] = je((f) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
10614
10614
|
}, {
|
|
10615
10615
|
default: u(() => [
|
|
10616
|
-
|
|
10616
|
+
B(m(t.$t("actions.viewReport")), 1)
|
|
10617
10617
|
]),
|
|
10618
10618
|
_: 1
|
|
10619
10619
|
})
|
|
@@ -10686,7 +10686,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10686
10686
|
[Ue, a.showLegend]
|
|
10687
10687
|
])
|
|
10688
10688
|
])
|
|
10689
|
-
])) :
|
|
10689
|
+
])) : D("", !0),
|
|
10690
10690
|
We(h(y, {
|
|
10691
10691
|
id: "tropicalHoverMarkerInfo",
|
|
10692
10692
|
elevation: "16",
|
|
@@ -10708,43 +10708,43 @@ function qc(t, e, o, i, a, r) {
|
|
|
10708
10708
|
h(k),
|
|
10709
10709
|
h(n, { class: "text-body-1" }, {
|
|
10710
10710
|
default: u(() => {
|
|
10711
|
-
var f, z, T, O,
|
|
10711
|
+
var f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $;
|
|
10712
10712
|
return [
|
|
10713
10713
|
l("div", Sc, [
|
|
10714
10714
|
l("div", Mc, [
|
|
10715
10715
|
l("label", Ic, m(t.$t("tropical.updated")) + " : ", 1),
|
|
10716
10716
|
l("span", null, m(r.computeTzTime((f = a.hoverPoint) == null ? void 0 : f.update, o.timeZone)), 1)
|
|
10717
10717
|
]),
|
|
10718
|
-
((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (b(), S("div",
|
|
10719
|
-
l("label",
|
|
10718
|
+
((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (b(), S("div", Dc, [
|
|
10719
|
+
l("label", Ac, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10720
10720
|
l("span", null, m(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.date, o.timeZone)), 1)
|
|
10721
|
-
])) :
|
|
10721
|
+
])) : D("", !0),
|
|
10722
10722
|
((O = a.hoverPoint) == null ? void 0 : O.type) === "forecast" ? (b(), S("div", Rc, [
|
|
10723
10723
|
l("label", Oc, m(t.$t("tropical.model")) + " : ", 1),
|
|
10724
|
-
l("span", null, m(((
|
|
10725
|
-
])) :
|
|
10724
|
+
l("span", null, m(((I = a.hoverPoint) == null ? void 0 : I.model) ?? "-"), 1)
|
|
10725
|
+
])) : D("", !0),
|
|
10726
10726
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (b(), S("div", Bc, [
|
|
10727
10727
|
l("label", Ec, m(t.$t("weather.wind")) + " : ", 1),
|
|
10728
10728
|
l("span", null, m(((L = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : L.kts) ?? "-") + " kts", 1)
|
|
10729
|
-
])) :
|
|
10729
|
+
])) : D("", !0),
|
|
10730
10730
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "history" ? (b(), S("div", jc, [
|
|
10731
10731
|
l("label", Nc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10732
10732
|
l("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.kts) ?? "-") + " kts", 1)
|
|
10733
|
-
])) :
|
|
10733
|
+
])) : D("", !0),
|
|
10734
10734
|
l("div", Fc, [
|
|
10735
10735
|
l("label", Hc, m(t.$t("weather.pressure")) + " : ", 1),
|
|
10736
10736
|
l("span", null, m(((A = a.hoverPoint) == null ? void 0 : A.pressure) ?? "-") + " kPa", 1)
|
|
10737
10737
|
]),
|
|
10738
10738
|
((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (b(), S("div", Gc, [
|
|
10739
10739
|
l("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10740
|
-
l("span", null, m(((
|
|
10741
|
-
])) :
|
|
10740
|
+
l("span", null, m(((Y = JSON.parse((Z = a.hoverPoint) == null ? void 0 : Z.movement)) == null ? void 0 : Y.kts) ?? "-") + " kts", 1)
|
|
10741
|
+
])) : D("", !0),
|
|
10742
10742
|
((V = a.hoverPoint) == null ? void 0 : V.type) === "history" ? (b(), S("div", Uc, [
|
|
10743
10743
|
l("label", Vc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10744
10744
|
l("span", null, m((($ = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : $.deg) ?? "-") + " °", 1)
|
|
10745
|
-
])) :
|
|
10746
|
-
l("div",
|
|
10747
|
-
l("label",
|
|
10745
|
+
])) : D("", !0),
|
|
10746
|
+
l("div", Zc, [
|
|
10747
|
+
l("label", Yc, m(t.$t("tropical.position")) + " : ", 1),
|
|
10748
10748
|
l("span", null, m(r.computePosition(a.hoverPoint)), 1)
|
|
10749
10749
|
])
|
|
10750
10750
|
])
|
|
@@ -10759,7 +10759,7 @@ function qc(t, e, o, i, a, r) {
|
|
|
10759
10759
|
])
|
|
10760
10760
|
]);
|
|
10761
10761
|
}
|
|
10762
|
-
const Xa = /* @__PURE__ */
|
|
10762
|
+
const Xa = /* @__PURE__ */ q(tc, [["render", qc]]);
|
|
10763
10763
|
const Xc = {
|
|
10764
10764
|
name: "DateTimePicker",
|
|
10765
10765
|
props: {
|
|
@@ -10799,12 +10799,14 @@ const Xc = {
|
|
|
10799
10799
|
//{ h: -7, f: 14 }
|
|
10800
10800
|
}
|
|
10801
10801
|
},
|
|
10802
|
-
emits: ["dateTime", "currentTimestamp", "currentRealTime", "
|
|
10802
|
+
emits: ["dateTime", "currentTimestamp", "currentRealTime", "minTimestamp", "maxTimestamp"],
|
|
10803
10803
|
data() {
|
|
10804
10804
|
return {
|
|
10805
10805
|
showDatePicker: !1,
|
|
10806
|
-
|
|
10807
|
-
|
|
10806
|
+
minDate: void 0,
|
|
10807
|
+
maxDate: void 0,
|
|
10808
|
+
minTimestamp: void 0,
|
|
10809
|
+
maxTimestamp: void 0,
|
|
10808
10810
|
currentDate: void 0,
|
|
10809
10811
|
currentTime: void 0,
|
|
10810
10812
|
currentTimestamp: void 0,
|
|
@@ -10816,7 +10818,7 @@ const Xc = {
|
|
|
10816
10818
|
},
|
|
10817
10819
|
computed: {
|
|
10818
10820
|
currentYear() {
|
|
10819
|
-
return
|
|
10821
|
+
return M(this.currentTimestamp).format("YYYY");
|
|
10820
10822
|
},
|
|
10821
10823
|
hourOptions() {
|
|
10822
10824
|
const t = [];
|
|
@@ -10825,11 +10827,11 @@ const Xc = {
|
|
|
10825
10827
|
return t.filter((e, o) => (o - this.timeZone) % this.intervalHour === 0);
|
|
10826
10828
|
},
|
|
10827
10829
|
timeZoneNames() {
|
|
10828
|
-
return
|
|
10830
|
+
return M.tz.names();
|
|
10829
10831
|
},
|
|
10830
10832
|
timeZoneName() {
|
|
10831
10833
|
var t;
|
|
10832
|
-
return (t = this.timeZoneNames.filter((e) =>
|
|
10834
|
+
return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
|
|
10833
10835
|
},
|
|
10834
10836
|
utcTimeZoneName() {
|
|
10835
10837
|
return "Africa/Abidjan";
|
|
@@ -10841,7 +10843,7 @@ const Xc = {
|
|
|
10841
10843
|
watch: {
|
|
10842
10844
|
timeZone: {
|
|
10843
10845
|
handler(t, e) {
|
|
10844
|
-
t !== e && (this.handleResetDateTime(this.dateTime), this.
|
|
10846
|
+
t !== e && (this.handleResetDateTime(this.dateTime), this.handleResetMinMax());
|
|
10845
10847
|
}
|
|
10846
10848
|
},
|
|
10847
10849
|
dateTime: {
|
|
@@ -10852,7 +10854,7 @@ const Xc = {
|
|
|
10852
10854
|
},
|
|
10853
10855
|
currentTimestamp: {
|
|
10854
10856
|
handler() {
|
|
10855
|
-
this.currentDateTimeZ =
|
|
10857
|
+
this.currentDateTimeZ = M(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
10856
10858
|
},
|
|
10857
10859
|
immediate: !0
|
|
10858
10860
|
},
|
|
@@ -10864,7 +10866,7 @@ const Xc = {
|
|
|
10864
10866
|
},
|
|
10865
10867
|
mounted() {
|
|
10866
10868
|
this.timer = setInterval(() => {
|
|
10867
|
-
this.currentRealTime = `${
|
|
10869
|
+
this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
10868
10870
|
}, 100), document.addEventListener("click", this.handleClickOutside);
|
|
10869
10871
|
},
|
|
10870
10872
|
unmounted() {
|
|
@@ -10872,45 +10874,39 @@ const Xc = {
|
|
|
10872
10874
|
},
|
|
10873
10875
|
methods: {
|
|
10874
10876
|
handleReset() {
|
|
10875
|
-
this.handleResetDateTime(), this.
|
|
10877
|
+
this.handleResetDateTime(), this.handleResetMinMax();
|
|
10876
10878
|
},
|
|
10877
10879
|
handleResetDateTime(t) {
|
|
10878
10880
|
var a;
|
|
10879
|
-
const e =
|
|
10880
|
-
this.currentTimestamp = ((a =
|
|
10881
|
-
const i =
|
|
10882
|
-
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${
|
|
10881
|
+
const e = M(t).utc().date(), o = Math.ceil(M(t).utc().hour() / 3) * 3;
|
|
10882
|
+
this.currentTimestamp = ((a = M(t)) == null ? void 0 : a.utc().set({ date: e, hour: o, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
|
|
10883
|
+
const i = M.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
10884
|
+
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${M.tz(M().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
10883
10885
|
},
|
|
10884
|
-
|
|
10885
|
-
var a, r, s;
|
|
10886
|
+
handleResetMinMax() {
|
|
10887
|
+
var a, r, s, c, n;
|
|
10886
10888
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
10887
10889
|
return;
|
|
10888
|
-
const t =
|
|
10889
|
-
this.
|
|
10890
|
-
i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"),
|
|
10891
|
-
i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD")
|
|
10892
|
-
], this.timestampRange = [
|
|
10893
|
-
((r = D()) == null ? void 0 : r.utc().set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3,
|
|
10894
|
-
((s = D()) == null ? void 0 : s.utc().set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3
|
|
10895
|
-
], this.$emit("timestampRange", this.timestampRange);
|
|
10890
|
+
const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
|
|
10891
|
+
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((s = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : s.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((n = (c = M()) == null ? void 0 : c.utc()) == null ? void 0 : n.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
|
|
10896
10892
|
},
|
|
10897
10893
|
handleOpenDatePicker() {
|
|
10898
10894
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
10899
10895
|
},
|
|
10900
10896
|
handleUpdateMonth(t) {
|
|
10901
|
-
const e = t ||
|
|
10897
|
+
const e = t || M.tz(this.currentTimestamp, this.timeZoneName).clone().month(), o = this.locale === "en" ? M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
|
|
10902
10898
|
this.$nextTick(() => {
|
|
10903
10899
|
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
10904
10900
|
i.innerText = o;
|
|
10905
10901
|
});
|
|
10906
10902
|
},
|
|
10907
10903
|
handleConfirmDate() {
|
|
10908
|
-
const t =
|
|
10904
|
+
const t = M(this.currentDate).format("yyyy-MM-DD"), e = this.currentTime, o = `${t} ${e}`, i = M.tz(o, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
|
|
10909
10905
|
this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
|
|
10910
10906
|
},
|
|
10911
10907
|
handleCancelDate() {
|
|
10912
10908
|
this.showDatePicker = !1;
|
|
10913
|
-
const t =
|
|
10909
|
+
const t = M.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
10914
10910
|
this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
|
|
10915
10911
|
},
|
|
10916
10912
|
handleClickOutside(t) {
|
|
@@ -10919,7 +10915,7 @@ const Xc = {
|
|
|
10919
10915
|
}
|
|
10920
10916
|
}
|
|
10921
10917
|
}, Kc = {
|
|
10922
|
-
class: "idm-gl4-
|
|
10918
|
+
class: "idm-gl4-time-picker",
|
|
10923
10919
|
ref: "idmGl4Timepicker"
|
|
10924
10920
|
}, $c = {
|
|
10925
10921
|
class: "pa-0",
|
|
@@ -10942,13 +10938,13 @@ function em(t, e, o, i, a, r) {
|
|
|
10942
10938
|
onClick: r.handleOpenDatePicker
|
|
10943
10939
|
}, {
|
|
10944
10940
|
default: u(() => [
|
|
10945
|
-
|
|
10941
|
+
B(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
|
|
10946
10942
|
]),
|
|
10947
10943
|
_: 1
|
|
10948
10944
|
}, 8, ["height", "width", "onClick"]),
|
|
10949
10945
|
a.showDatePicker ? (b(), R(f, {
|
|
10950
10946
|
key: 0,
|
|
10951
|
-
class:
|
|
10947
|
+
class: Ne(["card-box d-flex flex-column", o.position])
|
|
10952
10948
|
}, {
|
|
10953
10949
|
default: u(() => [
|
|
10954
10950
|
h(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
@@ -10957,8 +10953,8 @@ function em(t, e, o, i, a, r) {
|
|
|
10957
10953
|
h(c, {
|
|
10958
10954
|
modelValue: a.currentDate,
|
|
10959
10955
|
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
|
|
10960
|
-
min: a.
|
|
10961
|
-
max: a.
|
|
10956
|
+
min: a.minDate,
|
|
10957
|
+
max: a.maxDate,
|
|
10962
10958
|
"mode-icon": () => r.currentYear,
|
|
10963
10959
|
"weekday-format": "short",
|
|
10964
10960
|
color: "primary",
|
|
@@ -10991,7 +10987,7 @@ function em(t, e, o, i, a, r) {
|
|
|
10991
10987
|
onClick: (O) => a.currentTime = z
|
|
10992
10988
|
}, {
|
|
10993
10989
|
default: u(() => [
|
|
10994
|
-
|
|
10990
|
+
B(m(z), 1)
|
|
10995
10991
|
]),
|
|
10996
10992
|
_: 2
|
|
10997
10993
|
}, 1032, ["onClick"])
|
|
@@ -11018,7 +11014,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11018
11014
|
onClick: r.handleCancelDate
|
|
11019
11015
|
}, {
|
|
11020
11016
|
default: u(() => e[1] || (e[1] = [
|
|
11021
|
-
|
|
11017
|
+
B("Cancel", -1)
|
|
11022
11018
|
])),
|
|
11023
11019
|
_: 1,
|
|
11024
11020
|
__: [1]
|
|
@@ -11031,7 +11027,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11031
11027
|
onClick: r.handleConfirmDate
|
|
11032
11028
|
}, {
|
|
11033
11029
|
default: u(() => e[2] || (e[2] = [
|
|
11034
|
-
|
|
11030
|
+
B("Confirm", -1)
|
|
11035
11031
|
])),
|
|
11036
11032
|
_: 1,
|
|
11037
11033
|
__: [2]
|
|
@@ -11041,10 +11037,10 @@ function em(t, e, o, i, a, r) {
|
|
|
11041
11037
|
})
|
|
11042
11038
|
]),
|
|
11043
11039
|
_: 1
|
|
11044
|
-
}, 8, ["class"])) :
|
|
11040
|
+
}, 8, ["class"])) : D("", !0)
|
|
11045
11041
|
], 512);
|
|
11046
11042
|
}
|
|
11047
|
-
const no = /* @__PURE__ */
|
|
11043
|
+
const no = /* @__PURE__ */ q(Xc, [["render", em]]);
|
|
11048
11044
|
const tm = {
|
|
11049
11045
|
name: "IdmPoint",
|
|
11050
11046
|
components: {
|
|
@@ -11140,20 +11136,20 @@ const tm = {
|
|
|
11140
11136
|
},
|
|
11141
11137
|
computed: {
|
|
11142
11138
|
timeZoneNames() {
|
|
11143
|
-
return
|
|
11139
|
+
return M.tz.names();
|
|
11144
11140
|
},
|
|
11145
11141
|
timeZoneName() {
|
|
11146
11142
|
var t;
|
|
11147
|
-
return (t = this.timeZoneNames.filter((e) =>
|
|
11143
|
+
return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
|
|
11148
11144
|
},
|
|
11149
11145
|
computedTzTime() {
|
|
11150
|
-
return (t) =>
|
|
11146
|
+
return (t) => M.tz(M(t), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
|
|
11151
11147
|
},
|
|
11152
11148
|
computedLocalTime() {
|
|
11153
11149
|
return (t) => {
|
|
11154
11150
|
var i, a;
|
|
11155
|
-
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, o = (a = this.timeZoneNames.filter((r) =>
|
|
11156
|
-
return t ?
|
|
11151
|
+
const e = ((i = this.positionGmt) == null ? void 0 : i.slice(-2)) * -1, o = (a = this.timeZoneNames.filter((r) => M.tz(M(), r).utcOffset() === e * 60)) == null ? void 0 : a[0];
|
|
11152
|
+
return t ? M.tz(M(t), o).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (e >= 0 ? "+" : "") + e + ")" : "-";
|
|
11157
11153
|
};
|
|
11158
11154
|
},
|
|
11159
11155
|
computePosition() {
|
|
@@ -11221,8 +11217,8 @@ const tm = {
|
|
|
11221
11217
|
var e;
|
|
11222
11218
|
if (t != null && t.valid) {
|
|
11223
11219
|
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1);
|
|
11224
|
-
const o =
|
|
11225
|
-
((e =
|
|
11220
|
+
const o = M();
|
|
11221
|
+
((e = M(this.realTime)) == null ? void 0 : e.diff(o, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
|
|
11226
11222
|
}
|
|
11227
11223
|
});
|
|
11228
11224
|
},
|
|
@@ -11250,7 +11246,7 @@ const tm = {
|
|
|
11250
11246
|
let i = {
|
|
11251
11247
|
lat: t.lat,
|
|
11252
11248
|
lng: t.lng,
|
|
11253
|
-
datetime:
|
|
11249
|
+
datetime: M(t.dateTime).utc().format(),
|
|
11254
11250
|
forecastDays: t.day ?? 7,
|
|
11255
11251
|
weatherModels: e,
|
|
11256
11252
|
marineModels: o
|
|
@@ -11266,7 +11262,7 @@ const tm = {
|
|
|
11266
11262
|
const { weatherModels: e, marineModels: o } = ao.autoPickMeteoModel(t.forecastModel), i = {
|
|
11267
11263
|
lat: t.lat,
|
|
11268
11264
|
lng: t.lng,
|
|
11269
|
-
datetime:
|
|
11265
|
+
datetime: M(t.dateTime).utc().format(),
|
|
11270
11266
|
forecastDays: 3,
|
|
11271
11267
|
pastDays: 1,
|
|
11272
11268
|
weatherModels: e,
|
|
@@ -11279,10 +11275,10 @@ const tm = {
|
|
|
11279
11275
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11280
11276
|
},
|
|
11281
11277
|
initTableData(t) {
|
|
11282
|
-
var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O,
|
|
11278
|
+
var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe;
|
|
11283
11279
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11284
|
-
const e = ((s = ao.pickHourly(t,
|
|
11285
|
-
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((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((y = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : y.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((f = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((
|
|
11280
|
+
const e = ((s = ao.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11281
|
+
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((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((y = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : y.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((f = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.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 = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (de = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (H = e == null ? void 0 : e.current) == null ? void 0 : H.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.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 = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11286
11282
|
},
|
|
11287
11283
|
handleBind() {
|
|
11288
11284
|
var t, e;
|
|
@@ -11352,7 +11348,7 @@ const tm = {
|
|
|
11352
11348
|
"aria-hidden": "true"
|
|
11353
11349
|
}, vm = ["xlink:href"];
|
|
11354
11350
|
function _m(t, e, o, i, a, r) {
|
|
11355
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), f = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"),
|
|
11351
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), f = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"), I = x("VCard"), P = x("VIcon");
|
|
11356
11352
|
return b(), S("div", om, [
|
|
11357
11353
|
l("div", {
|
|
11358
11354
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11363,7 +11359,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11363
11359
|
location: "left"
|
|
11364
11360
|
}, {
|
|
11365
11361
|
activator: u(({ props: _ }) => [
|
|
11366
|
-
h(s,
|
|
11362
|
+
h(s, E(_, {
|
|
11367
11363
|
"min-width": "32",
|
|
11368
11364
|
width: "32",
|
|
11369
11365
|
height: "32",
|
|
@@ -11380,7 +11376,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11380
11376
|
_: 1
|
|
11381
11377
|
}, 8, ["text"])
|
|
11382
11378
|
], 4),
|
|
11383
|
-
a.showForm ? (b(), R(
|
|
11379
|
+
a.showForm ? (b(), R(I, {
|
|
11384
11380
|
key: 0,
|
|
11385
11381
|
class: "spot-form-card",
|
|
11386
11382
|
style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
@@ -11482,7 +11478,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11482
11478
|
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11483
11479
|
}, {
|
|
11484
11480
|
default: u(() => [
|
|
11485
|
-
|
|
11481
|
+
B(m(a.form.lngDirection), 1)
|
|
11486
11482
|
]),
|
|
11487
11483
|
_: 1
|
|
11488
11484
|
})
|
|
@@ -11560,7 +11556,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11560
11556
|
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11561
11557
|
}, {
|
|
11562
11558
|
default: u(() => [
|
|
11563
|
-
|
|
11559
|
+
B(m(a.form.latDirection), 1)
|
|
11564
11560
|
]),
|
|
11565
11561
|
_: 1
|
|
11566
11562
|
})
|
|
@@ -11585,7 +11581,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11585
11581
|
class: "pa-0"
|
|
11586
11582
|
}, {
|
|
11587
11583
|
default: u(() => [
|
|
11588
|
-
h(k,
|
|
11584
|
+
h(k, E({
|
|
11589
11585
|
"date-time": a.form.dateTime,
|
|
11590
11586
|
"time-zone": o.timeZone
|
|
11591
11587
|
}, t.$attrs, {
|
|
@@ -11626,12 +11622,12 @@ function _m(t, e, o, i, a, r) {
|
|
|
11626
11622
|
density: "compact",
|
|
11627
11623
|
height: "30",
|
|
11628
11624
|
value: "GFS",
|
|
11629
|
-
class:
|
|
11625
|
+
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1 btn-bg-1"]),
|
|
11630
11626
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
11631
11627
|
"base-color": ""
|
|
11632
11628
|
}, {
|
|
11633
11629
|
default: u(() => e[14] || (e[14] = [
|
|
11634
|
-
|
|
11630
|
+
B("NOAA", -1)
|
|
11635
11631
|
])),
|
|
11636
11632
|
_: 1,
|
|
11637
11633
|
__: [14]
|
|
@@ -11639,13 +11635,13 @@ function _m(t, e, o, i, a, r) {
|
|
|
11639
11635
|
h(s, {
|
|
11640
11636
|
density: "compact",
|
|
11641
11637
|
height: "30",
|
|
11642
|
-
class:
|
|
11638
|
+
class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
|
|
11643
11639
|
color: a.form.forecastModel === "ECMWF" ? "primary" : "",
|
|
11644
11640
|
"base-color": "",
|
|
11645
11641
|
value: "ECMWF"
|
|
11646
11642
|
}, {
|
|
11647
11643
|
default: u(() => e[15] || (e[15] = [
|
|
11648
|
-
|
|
11644
|
+
B("ECMWF", -1)
|
|
11649
11645
|
])),
|
|
11650
11646
|
_: 1,
|
|
11651
11647
|
__: [15]
|
|
@@ -11669,7 +11665,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11669
11665
|
onClick: r.cancelForm
|
|
11670
11666
|
}, {
|
|
11671
11667
|
default: u(() => [
|
|
11672
|
-
|
|
11668
|
+
B(m(t.$t("actions.clear")), 1)
|
|
11673
11669
|
]),
|
|
11674
11670
|
_: 1
|
|
11675
11671
|
}, 8, ["onClick"]),
|
|
@@ -11683,7 +11679,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11683
11679
|
class: "text-none text-body-1"
|
|
11684
11680
|
}, {
|
|
11685
11681
|
default: u(() => [
|
|
11686
|
-
|
|
11682
|
+
B(m(t.$t("actions.confirm")), 1)
|
|
11687
11683
|
]),
|
|
11688
11684
|
_: 1
|
|
11689
11685
|
}, 8, ["loading"])
|
|
@@ -11698,8 +11694,8 @@ function _m(t, e, o, i, a, r) {
|
|
|
11698
11694
|
})
|
|
11699
11695
|
]),
|
|
11700
11696
|
_: 1
|
|
11701
|
-
}, 8, ["style"])) :
|
|
11702
|
-
a.showMeteo ? (b(), R(
|
|
11697
|
+
}, 8, ["style"])) : D("", !0),
|
|
11698
|
+
a.showMeteo ? (b(), R(I, {
|
|
11703
11699
|
key: 1,
|
|
11704
11700
|
id: "idm-gl4-spot-meteo",
|
|
11705
11701
|
class: "spot-meteo",
|
|
@@ -11741,7 +11737,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11741
11737
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11742
11738
|
}, {
|
|
11743
11739
|
default: u(() => [
|
|
11744
|
-
|
|
11740
|
+
B(m(t.$t("time.time")), 1)
|
|
11745
11741
|
]),
|
|
11746
11742
|
_: 1
|
|
11747
11743
|
}),
|
|
@@ -11752,7 +11748,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11752
11748
|
default: u(() => {
|
|
11753
11749
|
var _;
|
|
11754
11750
|
return [
|
|
11755
|
-
|
|
11751
|
+
B(m(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
11756
11752
|
];
|
|
11757
11753
|
}),
|
|
11758
11754
|
_: 1
|
|
@@ -11767,7 +11763,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11767
11763
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11768
11764
|
}, {
|
|
11769
11765
|
default: u(() => e[18] || (e[18] = [
|
|
11770
|
-
|
|
11766
|
+
B("LT", -1)
|
|
11771
11767
|
])),
|
|
11772
11768
|
_: 1,
|
|
11773
11769
|
__: [18]
|
|
@@ -11779,7 +11775,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11779
11775
|
default: u(() => {
|
|
11780
11776
|
var _;
|
|
11781
11777
|
return [
|
|
11782
|
-
|
|
11778
|
+
B(m(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
11783
11779
|
];
|
|
11784
11780
|
}),
|
|
11785
11781
|
_: 1
|
|
@@ -11794,7 +11790,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11794
11790
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11795
11791
|
}, {
|
|
11796
11792
|
default: u(() => [
|
|
11797
|
-
|
|
11793
|
+
B(m(t.$t("weather.wind")), 1)
|
|
11798
11794
|
]),
|
|
11799
11795
|
_: 1
|
|
11800
11796
|
}),
|
|
@@ -11803,7 +11799,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11803
11799
|
class: "pa-2 px-0 text-left"
|
|
11804
11800
|
}, {
|
|
11805
11801
|
default: u(() => [
|
|
11806
|
-
|
|
11802
|
+
B(m(a.currentHourData.windDir ?? "-") + " / " + m(a.currentHourData.windSpeed ?? "-") + "kts / BF" + m(a.currentHourData.windLevel ?? "-"), 1)
|
|
11807
11803
|
]),
|
|
11808
11804
|
_: 1
|
|
11809
11805
|
}),
|
|
@@ -11812,7 +11808,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11812
11808
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11813
11809
|
}, {
|
|
11814
11810
|
default: u(() => [
|
|
11815
|
-
|
|
11811
|
+
B(m(t.$t("weather.sigWave")), 1)
|
|
11816
11812
|
]),
|
|
11817
11813
|
_: 1
|
|
11818
11814
|
}),
|
|
@@ -11821,7 +11817,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11821
11817
|
class: "pa-2 px-0 text-left"
|
|
11822
11818
|
}, {
|
|
11823
11819
|
default: u(() => [
|
|
11824
|
-
|
|
11820
|
+
B(m(a.currentHourData.sigwaveDir ?? "-") + " / " + m(a.currentHourData.sigwaveHeight ?? "-") + "m / " + m(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
|
|
11825
11821
|
]),
|
|
11826
11822
|
_: 1
|
|
11827
11823
|
})
|
|
@@ -11835,7 +11831,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11835
11831
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11836
11832
|
}, {
|
|
11837
11833
|
default: u(() => [
|
|
11838
|
-
|
|
11834
|
+
B(m(t.$t("weather.windWave")), 1)
|
|
11839
11835
|
]),
|
|
11840
11836
|
_: 1
|
|
11841
11837
|
}),
|
|
@@ -11844,7 +11840,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11844
11840
|
class: "pa-2 px-0 text-left"
|
|
11845
11841
|
}, {
|
|
11846
11842
|
default: u(() => [
|
|
11847
|
-
|
|
11843
|
+
B(m(a.currentHourData.windwaveDir ?? "-") + " / " + m(a.currentHourData.windwaveHeight ?? "-") + "m / " + m(a.currentHourData.windwavePeriod ?? "-") + "s", 1)
|
|
11848
11844
|
]),
|
|
11849
11845
|
_: 1
|
|
11850
11846
|
}),
|
|
@@ -11853,7 +11849,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11853
11849
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11854
11850
|
}, {
|
|
11855
11851
|
default: u(() => [
|
|
11856
|
-
|
|
11852
|
+
B(m(t.$t("weather.swell")), 1)
|
|
11857
11853
|
]),
|
|
11858
11854
|
_: 1
|
|
11859
11855
|
}),
|
|
@@ -11862,7 +11858,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11862
11858
|
class: "pa-2 px-0 text-left"
|
|
11863
11859
|
}, {
|
|
11864
11860
|
default: u(() => [
|
|
11865
|
-
|
|
11861
|
+
B(m(a.currentHourData.swellDir ?? "-") + " / " + m(a.currentHourData.swellHeight ?? "-") + "m / " + m(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
11866
11862
|
]),
|
|
11867
11863
|
_: 1
|
|
11868
11864
|
})
|
|
@@ -11876,7 +11872,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11876
11872
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11877
11873
|
}, {
|
|
11878
11874
|
default: u(() => [
|
|
11879
|
-
|
|
11875
|
+
B(m(t.$t("weather.current")), 1)
|
|
11880
11876
|
]),
|
|
11881
11877
|
_: 1
|
|
11882
11878
|
}),
|
|
@@ -11885,7 +11881,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11885
11881
|
class: "pa-2 px-0 text-left"
|
|
11886
11882
|
}, {
|
|
11887
11883
|
default: u(() => [
|
|
11888
|
-
|
|
11884
|
+
B(m(a.currentHourData.currentDir ?? "-") + " / " + m(a.currentHourData.currentSpeed ?? "-") + "kts", 1)
|
|
11889
11885
|
]),
|
|
11890
11886
|
_: 1
|
|
11891
11887
|
}),
|
|
@@ -11894,7 +11890,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11894
11890
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11895
11891
|
}, {
|
|
11896
11892
|
default: u(() => [
|
|
11897
|
-
|
|
11893
|
+
B(m(t.$t("weather.visibility")), 1)
|
|
11898
11894
|
]),
|
|
11899
11895
|
_: 1
|
|
11900
11896
|
}),
|
|
@@ -11903,7 +11899,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11903
11899
|
class: "pa-2 px-0 text-left"
|
|
11904
11900
|
}, {
|
|
11905
11901
|
default: u(() => [
|
|
11906
|
-
|
|
11902
|
+
B(m(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
11907
11903
|
]),
|
|
11908
11904
|
_: 1
|
|
11909
11905
|
})
|
|
@@ -11933,7 +11929,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11933
11929
|
h(P, { color: "warning" })
|
|
11934
11930
|
]),
|
|
11935
11931
|
default: u(() => [
|
|
11936
|
-
|
|
11932
|
+
B(" " + m(t.$t("actions.unfollow")), 1)
|
|
11937
11933
|
]),
|
|
11938
11934
|
_: 1
|
|
11939
11935
|
}, 8, ["onClick"])) : (b(), R(s, {
|
|
@@ -11947,7 +11943,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11947
11943
|
onClick: je(r.handleFollow, ["stop"])
|
|
11948
11944
|
}, {
|
|
11949
11945
|
default: u(() => [
|
|
11950
|
-
|
|
11946
|
+
B(m(t.$t("actions.follow")), 1)
|
|
11951
11947
|
]),
|
|
11952
11948
|
_: 1
|
|
11953
11949
|
}, 8, ["onClick"])),
|
|
@@ -11960,7 +11956,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11960
11956
|
onClick: je(r.handleMeteoMore, ["stop"])
|
|
11961
11957
|
}, {
|
|
11962
11958
|
default: u(() => [
|
|
11963
|
-
|
|
11959
|
+
B(m(t.$t("spot.forecast")), 1)
|
|
11964
11960
|
]),
|
|
11965
11961
|
_: 1
|
|
11966
11962
|
}, 8, ["onClick"])
|
|
@@ -11969,7 +11965,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11969
11965
|
})
|
|
11970
11966
|
]),
|
|
11971
11967
|
_: 1
|
|
11972
|
-
})) :
|
|
11968
|
+
})) : D("", !0),
|
|
11973
11969
|
We(l("div", wm, [
|
|
11974
11970
|
(b(), S("svg", xm, [
|
|
11975
11971
|
l("use", {
|
|
@@ -11981,7 +11977,7 @@ function _m(t, e, o, i, a, r) {
|
|
|
11981
11977
|
])
|
|
11982
11978
|
]);
|
|
11983
11979
|
}
|
|
11984
|
-
const km = /* @__PURE__ */
|
|
11980
|
+
const km = /* @__PURE__ */ q(tm, [["render", _m]]);
|
|
11985
11981
|
const zm = {
|
|
11986
11982
|
name: "IdmMeasure",
|
|
11987
11983
|
props: {
|
|
@@ -12345,7 +12341,7 @@ function Pm(t, e, o, i, a, r) {
|
|
|
12345
12341
|
location: "left"
|
|
12346
12342
|
}, {
|
|
12347
12343
|
activator: u(({ props: n }) => [
|
|
12348
|
-
h(s,
|
|
12344
|
+
h(s, E(n, {
|
|
12349
12345
|
"min-width": "32",
|
|
12350
12346
|
width: "32",
|
|
12351
12347
|
height: "32",
|
|
@@ -12364,7 +12360,7 @@ function Pm(t, e, o, i, a, r) {
|
|
|
12364
12360
|
], 4)
|
|
12365
12361
|
]);
|
|
12366
12362
|
}
|
|
12367
|
-
const Cm = /* @__PURE__ */
|
|
12363
|
+
const Cm = /* @__PURE__ */ q(zm, [["render", Pm]]);
|
|
12368
12364
|
const Tm = {
|
|
12369
12365
|
name: "IdmBottomBar",
|
|
12370
12366
|
components: { DateTimePicker: no },
|
|
@@ -12391,7 +12387,8 @@ const Tm = {
|
|
|
12391
12387
|
currentTimestamp: void 0,
|
|
12392
12388
|
currentDateTime: void 0,
|
|
12393
12389
|
currentRealTime: void 0,
|
|
12394
|
-
|
|
12390
|
+
minTimestamp: void 0,
|
|
12391
|
+
maxTimestamp: void 0,
|
|
12395
12392
|
animation: void 0,
|
|
12396
12393
|
startAnimate: 0,
|
|
12397
12394
|
step: 0,
|
|
@@ -12402,7 +12399,7 @@ const Tm = {
|
|
|
12402
12399
|
//hour
|
|
12403
12400
|
intervalOptions: [3, 6, 12, 24],
|
|
12404
12401
|
showTimezone: !1,
|
|
12405
|
-
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) :
|
|
12402
|
+
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : M().utcOffset() / 60,
|
|
12406
12403
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
12407
12404
|
source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4")
|
|
12408
12405
|
};
|
|
@@ -12428,13 +12425,13 @@ const Tm = {
|
|
|
12428
12425
|
if (!isNaN(t) && !isNaN(e) && t !== e) {
|
|
12429
12426
|
const o = t - e;
|
|
12430
12427
|
let i = this.currentTimestamp;
|
|
12431
|
-
i = i + o * this.intervalHour * 3600 * 1e3, i <= this.
|
|
12428
|
+
i = i + o * this.intervalHour * 3600 * 1e3, i <= this.minTimestamp || i >= this.maxTimestamp ? this.paused ? this.currentTimestamp = o < 0 ? this.minTimestamp : this.maxTimestamp : this.handleReset() : this.currentTimestamp = i;
|
|
12432
12429
|
}
|
|
12433
12430
|
}
|
|
12434
12431
|
},
|
|
12435
12432
|
currentTimestamp: {
|
|
12436
12433
|
handler() {
|
|
12437
|
-
this.currentDateTimeZ =
|
|
12434
|
+
this.currentDateTimeZ = M(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
12438
12435
|
},
|
|
12439
12436
|
immediate: !0
|
|
12440
12437
|
},
|
|
@@ -12489,7 +12486,7 @@ const Tm = {
|
|
|
12489
12486
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
12490
12487
|
}
|
|
12491
12488
|
}
|
|
12492
|
-
}, Sm = { class: "idm-bottom-bar-gl4" }, Mm = { class: "date-box d-flex ga-2 mr-2" }, Im = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" },
|
|
12489
|
+
}, Sm = { class: "idm-bottom-bar-gl4" }, Mm = { class: "date-box d-flex ga-2 mr-2" }, Im = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, Dm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Am = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Rm = {
|
|
12493
12490
|
key: 0,
|
|
12494
12491
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
12495
12492
|
}, Om = ["onClick"], Bm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Em = { class: "text-body-1" };
|
|
@@ -12501,7 +12498,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12501
12498
|
style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
12502
12499
|
}, [
|
|
12503
12500
|
l("div", Mm, [
|
|
12504
|
-
h(s,
|
|
12501
|
+
h(s, E({
|
|
12505
12502
|
ref: "dateTimePicker",
|
|
12506
12503
|
"date-time": a.currentDateTimeZ,
|
|
12507
12504
|
"time-zone": a.timeZone,
|
|
@@ -12510,7 +12507,8 @@ function jm(t, e, o, i, a, r) {
|
|
|
12510
12507
|
}, t.$attrs, {
|
|
12511
12508
|
onCurrentTimestamp: e[0] || (e[0] = (f) => a.currentTimestamp = f),
|
|
12512
12509
|
onCurrentRealTime: e[1] || (e[1] = (f) => a.currentRealTime = f),
|
|
12513
|
-
|
|
12510
|
+
onMinTimestamp: e[2] || (e[2] = (f) => a.minTimestamp = f),
|
|
12511
|
+
onMaxTimestamp: e[3] || (e[3] = (f) => a.maxTimestamp = f)
|
|
12514
12512
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
12515
12513
|
h(y, {
|
|
12516
12514
|
text: "",
|
|
@@ -12519,7 +12517,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12519
12517
|
"min-width": "30"
|
|
12520
12518
|
}, {
|
|
12521
12519
|
default: u(() => [
|
|
12522
|
-
|
|
12520
|
+
B(m(a.intervalHour) + " h ", 1),
|
|
12523
12521
|
h(p, { activator: "parent" }, {
|
|
12524
12522
|
default: u(() => [
|
|
12525
12523
|
h(g, { class: "pa-1" }, {
|
|
@@ -12541,7 +12539,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12541
12539
|
onClick: (T) => a.intervalHour = f
|
|
12542
12540
|
}, {
|
|
12543
12541
|
default: u(() => [
|
|
12544
|
-
|
|
12542
|
+
B(m(f) + "h", 1)
|
|
12545
12543
|
]),
|
|
12546
12544
|
_: 2
|
|
12547
12545
|
}, 1032, ["onClick"])
|
|
@@ -12571,11 +12569,11 @@ function jm(t, e, o, i, a, r) {
|
|
|
12571
12569
|
variant: "text",
|
|
12572
12570
|
onClick: r.handleReset
|
|
12573
12571
|
}, {
|
|
12574
|
-
default: u(() => e[
|
|
12572
|
+
default: u(() => e[10] || (e[10] = [
|
|
12575
12573
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
12576
12574
|
])),
|
|
12577
12575
|
_: 1,
|
|
12578
|
-
__: [
|
|
12576
|
+
__: [10]
|
|
12579
12577
|
}, 8, ["onClick"]),
|
|
12580
12578
|
h(y, {
|
|
12581
12579
|
icon: "",
|
|
@@ -12584,11 +12582,11 @@ function jm(t, e, o, i, a, r) {
|
|
|
12584
12582
|
variant: "text",
|
|
12585
12583
|
onClick: r.handleBackward
|
|
12586
12584
|
}, {
|
|
12587
|
-
default: u(() => e[
|
|
12585
|
+
default: u(() => e[11] || (e[11] = [
|
|
12588
12586
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
12589
12587
|
])),
|
|
12590
12588
|
_: 1,
|
|
12591
|
-
__: [
|
|
12589
|
+
__: [11]
|
|
12592
12590
|
}, 8, ["onClick"]),
|
|
12593
12591
|
a.paused ? (b(), R(y, {
|
|
12594
12592
|
key: 0,
|
|
@@ -12598,11 +12596,11 @@ function jm(t, e, o, i, a, r) {
|
|
|
12598
12596
|
variant: "text",
|
|
12599
12597
|
onClick: r.handlePlay
|
|
12600
12598
|
}, {
|
|
12601
|
-
default: u(() => e[
|
|
12599
|
+
default: u(() => e[12] || (e[12] = [
|
|
12602
12600
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
12603
12601
|
])),
|
|
12604
12602
|
_: 1,
|
|
12605
|
-
__: [
|
|
12603
|
+
__: [12]
|
|
12606
12604
|
}, 8, ["onClick"])) : (b(), R(y, {
|
|
12607
12605
|
key: 1,
|
|
12608
12606
|
icon: "",
|
|
@@ -12611,11 +12609,11 @@ function jm(t, e, o, i, a, r) {
|
|
|
12611
12609
|
variant: "text",
|
|
12612
12610
|
onClick: r.handlePause
|
|
12613
12611
|
}, {
|
|
12614
|
-
default: u(() => e[
|
|
12612
|
+
default: u(() => e[13] || (e[13] = [
|
|
12615
12613
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
12616
12614
|
])),
|
|
12617
12615
|
_: 1,
|
|
12618
|
-
__: [
|
|
12616
|
+
__: [13]
|
|
12619
12617
|
}, 8, ["onClick"])),
|
|
12620
12618
|
h(y, {
|
|
12621
12619
|
icon: "",
|
|
@@ -12624,11 +12622,11 @@ function jm(t, e, o, i, a, r) {
|
|
|
12624
12622
|
variant: "text",
|
|
12625
12623
|
onClick: r.handleForward
|
|
12626
12624
|
}, {
|
|
12627
|
-
default: u(() => e[
|
|
12625
|
+
default: u(() => e[14] || (e[14] = [
|
|
12628
12626
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
12629
12627
|
])),
|
|
12630
12628
|
_: 1,
|
|
12631
|
-
__: [
|
|
12629
|
+
__: [14]
|
|
12632
12630
|
}, 8, ["onClick"])
|
|
12633
12631
|
]),
|
|
12634
12632
|
h(w, {
|
|
@@ -12636,7 +12634,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12636
12634
|
class: "mx-2 my-3",
|
|
12637
12635
|
style: { height: "16px" }
|
|
12638
12636
|
}),
|
|
12639
|
-
l("div",
|
|
12637
|
+
l("div", Dm, [
|
|
12640
12638
|
h(k, {
|
|
12641
12639
|
text: t.$t("weather.windBarbs"),
|
|
12642
12640
|
location: "top"
|
|
@@ -12644,20 +12642,20 @@ function jm(t, e, o, i, a, r) {
|
|
|
12644
12642
|
activator: u(({ props: f }) => {
|
|
12645
12643
|
var z, T;
|
|
12646
12644
|
return [
|
|
12647
|
-
h(y,
|
|
12645
|
+
h(y, E(f, {
|
|
12648
12646
|
class: "pa-1 d-flex",
|
|
12649
12647
|
color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
|
|
12650
12648
|
variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
|
|
12651
12649
|
height: "24",
|
|
12652
12650
|
width: "24",
|
|
12653
12651
|
"min-width": "24",
|
|
12654
|
-
onClick: e[
|
|
12652
|
+
onClick: e[4] || (e[4] = (O) => r.handleClickFastWeather("wind"))
|
|
12655
12653
|
}), {
|
|
12656
|
-
default: u(() => e[
|
|
12654
|
+
default: u(() => e[15] || (e[15] = [
|
|
12657
12655
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
12658
12656
|
])),
|
|
12659
12657
|
_: 2,
|
|
12660
|
-
__: [
|
|
12658
|
+
__: [15]
|
|
12661
12659
|
}, 1040, ["color", "variant"])
|
|
12662
12660
|
];
|
|
12663
12661
|
}),
|
|
@@ -12670,17 +12668,17 @@ function jm(t, e, o, i, a, r) {
|
|
|
12670
12668
|
activator: u(({ props: f }) => {
|
|
12671
12669
|
var z, T;
|
|
12672
12670
|
return [
|
|
12673
|
-
h(y,
|
|
12671
|
+
h(y, E(f, {
|
|
12674
12672
|
class: "pa-1 d-flex",
|
|
12675
12673
|
color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
|
|
12676
12674
|
variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
|
|
12677
12675
|
height: "24",
|
|
12678
12676
|
width: "24",
|
|
12679
12677
|
"min-width": "24",
|
|
12680
|
-
onClick: e[
|
|
12678
|
+
onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("sig-wave-height"))
|
|
12681
12679
|
}), {
|
|
12682
12680
|
default: u(() => [
|
|
12683
|
-
l("i",
|
|
12681
|
+
l("i", E(f, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
12684
12682
|
]),
|
|
12685
12683
|
_: 2
|
|
12686
12684
|
}, 1040, ["color", "variant"])
|
|
@@ -12695,17 +12693,17 @@ function jm(t, e, o, i, a, r) {
|
|
|
12695
12693
|
activator: u(({ props: f }) => {
|
|
12696
12694
|
var z, T;
|
|
12697
12695
|
return [
|
|
12698
|
-
h(y,
|
|
12696
|
+
h(y, E(f, {
|
|
12699
12697
|
class: "pa-1 d-flex",
|
|
12700
12698
|
color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
|
|
12701
12699
|
variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
|
|
12702
12700
|
height: "24",
|
|
12703
12701
|
width: "24",
|
|
12704
12702
|
"min-width": "24",
|
|
12705
|
-
onClick: e[
|
|
12703
|
+
onClick: e[6] || (e[6] = (O) => r.handleClickFastWeather("current-direction"))
|
|
12706
12704
|
}), {
|
|
12707
12705
|
default: u(() => [
|
|
12708
|
-
l("i",
|
|
12706
|
+
l("i", E(f, { class: "iconfont icon-Current" }), null, 16)
|
|
12709
12707
|
]),
|
|
12710
12708
|
_: 2
|
|
12711
12709
|
}, 1040, ["color", "variant"])
|
|
@@ -12718,7 +12716,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12718
12716
|
location: "top"
|
|
12719
12717
|
}, {
|
|
12720
12718
|
activator: u(({ props: f }) => [
|
|
12721
|
-
h(y,
|
|
12719
|
+
h(y, E(f, {
|
|
12722
12720
|
class: "pa-1 d-flex",
|
|
12723
12721
|
variant: "text",
|
|
12724
12722
|
height: "24",
|
|
@@ -12727,7 +12725,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12727
12725
|
onClick: r.handleClickFastMore
|
|
12728
12726
|
}), {
|
|
12729
12727
|
default: u(() => [
|
|
12730
|
-
l("i",
|
|
12728
|
+
l("i", E(f, { class: "iconfont icon-dots-align" }), null, 16)
|
|
12731
12729
|
]),
|
|
12732
12730
|
_: 2
|
|
12733
12731
|
}, 1040, ["onClick"])
|
|
@@ -12740,32 +12738,32 @@ function jm(t, e, o, i, a, r) {
|
|
|
12740
12738
|
class: "mx-2 mr-3 my-3",
|
|
12741
12739
|
style: { height: "16px" }
|
|
12742
12740
|
}),
|
|
12743
|
-
l("div",
|
|
12741
|
+
l("div", Am, [
|
|
12744
12742
|
h(y, {
|
|
12745
12743
|
text: "",
|
|
12746
12744
|
height: "30",
|
|
12747
12745
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
12748
12746
|
color: a.source === "GFS" ? "primary" : "",
|
|
12749
|
-
onClick: e[
|
|
12747
|
+
onClick: e[7] || (e[7] = (f) => a.source = "GFS")
|
|
12750
12748
|
}, {
|
|
12751
|
-
default: u(() => e[
|
|
12752
|
-
|
|
12749
|
+
default: u(() => e[16] || (e[16] = [
|
|
12750
|
+
B("NOAA", -1)
|
|
12753
12751
|
])),
|
|
12754
12752
|
_: 1,
|
|
12755
|
-
__: [
|
|
12753
|
+
__: [16]
|
|
12756
12754
|
}, 8, ["color"]),
|
|
12757
12755
|
h(y, {
|
|
12758
12756
|
text: "",
|
|
12759
12757
|
height: "30",
|
|
12760
12758
|
class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
|
|
12761
12759
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
12762
|
-
onClick: e[
|
|
12760
|
+
onClick: e[8] || (e[8] = (f) => a.source = "ECMWF")
|
|
12763
12761
|
}, {
|
|
12764
|
-
default: u(() => e[
|
|
12765
|
-
|
|
12762
|
+
default: u(() => e[17] || (e[17] = [
|
|
12763
|
+
B("ECMWF", -1)
|
|
12766
12764
|
])),
|
|
12767
12765
|
_: 1,
|
|
12768
|
-
__: [
|
|
12766
|
+
__: [17]
|
|
12769
12767
|
}, 8, ["color"])
|
|
12770
12768
|
])
|
|
12771
12769
|
], 4),
|
|
@@ -12779,7 +12777,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12779
12777
|
class: "item rounded text-body-2 hover-active",
|
|
12780
12778
|
onClick: (z) => a.timeZone = f
|
|
12781
12779
|
}, m(f < 0 ? f : "+" + f), 9, Om))), 128))
|
|
12782
|
-
])) :
|
|
12780
|
+
])) : D("", !0),
|
|
12783
12781
|
l("div", Bm, [
|
|
12784
12782
|
h(y, {
|
|
12785
12783
|
text: "",
|
|
@@ -12787,10 +12785,10 @@ function jm(t, e, o, i, a, r) {
|
|
|
12787
12785
|
height: "28",
|
|
12788
12786
|
class: "pa-1 text-body-1",
|
|
12789
12787
|
color: "primary",
|
|
12790
|
-
onClick: e[
|
|
12788
|
+
onClick: e[9] || (e[9] = (f) => a.showTimezone = !a.showTimezone)
|
|
12791
12789
|
}, {
|
|
12792
12790
|
default: u(() => [
|
|
12793
|
-
|
|
12791
|
+
B(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
12794
12792
|
]),
|
|
12795
12793
|
_: 1
|
|
12796
12794
|
}),
|
|
@@ -12799,7 +12797,7 @@ function jm(t, e, o, i, a, r) {
|
|
|
12799
12797
|
], 4)
|
|
12800
12798
|
]);
|
|
12801
12799
|
}
|
|
12802
|
-
const Nm = /* @__PURE__ */
|
|
12800
|
+
const Nm = /* @__PURE__ */ q(Tm, [["render", jm]]), Fm = {
|
|
12803
12801
|
name: "IdmGL4",
|
|
12804
12802
|
components: {
|
|
12805
12803
|
IdmOtherLayer: ps,
|
|
@@ -12865,7 +12863,7 @@ const Nm = /* @__PURE__ */ X(Tm, [["render", jm]]), Fm = {
|
|
|
12865
12863
|
function Gm(t, e, o, i, a, r) {
|
|
12866
12864
|
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
|
|
12867
12865
|
return b(), S("div", Hm, [
|
|
12868
|
-
h(s,
|
|
12866
|
+
h(s, E({
|
|
12869
12867
|
ref: "idmOtherLayers",
|
|
12870
12868
|
token: o.token,
|
|
12871
12869
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12880,7 +12878,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
12880
12878
|
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12881
12879
|
})
|
|
12882
12880
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12883
|
-
h(c,
|
|
12881
|
+
h(c, E({
|
|
12884
12882
|
ref: "idmWeatherLayers",
|
|
12885
12883
|
map: o.map,
|
|
12886
12884
|
"before-layer": "empty-layer-2",
|
|
@@ -12898,7 +12896,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
12898
12896
|
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12899
12897
|
})
|
|
12900
12898
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12901
|
-
h(n,
|
|
12899
|
+
h(n, E({
|
|
12902
12900
|
map: o.map,
|
|
12903
12901
|
token: o.token,
|
|
12904
12902
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12909,11 +12907,11 @@ function Gm(t, e, o, i, a, r) {
|
|
|
12909
12907
|
"forecast-model": o.forecastModel,
|
|
12910
12908
|
"map-feather": o.mapFeather
|
|
12911
12909
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12912
|
-
h(g,
|
|
12910
|
+
h(g, E({
|
|
12913
12911
|
map: o.map,
|
|
12914
12912
|
"map-feather": o.mapFeather
|
|
12915
12913
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12916
|
-
h(p,
|
|
12914
|
+
h(p, E({
|
|
12917
12915
|
ref: "idmSpot",
|
|
12918
12916
|
map: o.map,
|
|
12919
12917
|
token: o.token,
|
|
@@ -12921,7 +12919,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
12921
12919
|
"forecast-model": o.forecastModel,
|
|
12922
12920
|
"map-feather": o.mapFeather
|
|
12923
12921
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
12924
|
-
h(y,
|
|
12922
|
+
h(y, E({
|
|
12925
12923
|
ref: "idmBottomBar",
|
|
12926
12924
|
"forecast-model": o.forecastModel,
|
|
12927
12925
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12929,7 +12927,7 @@ function Gm(t, e, o, i, a, r) {
|
|
|
12929
12927
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
12930
12928
|
], 512);
|
|
12931
12929
|
}
|
|
12932
|
-
const Wm = /* @__PURE__ */
|
|
12930
|
+
const Wm = /* @__PURE__ */ q(Fm, [["render", Gm]]);
|
|
12933
12931
|
class Um {
|
|
12934
12932
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
12935
12933
|
ce(this, "originStyle");
|
|
@@ -12938,7 +12936,7 @@ class Um {
|
|
|
12938
12936
|
ce(this, "hi");
|
|
12939
12937
|
ce(this, "td");
|
|
12940
12938
|
ce(this, "windy");
|
|
12941
|
-
var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O,
|
|
12939
|
+
var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, I, P, _, L, C, v, A, F, Z, Y, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, De, Ae, Re, _e, W, te, He, Me, ue, fe, U, Ce, oe, re, Oe, N, ye, Ie, Be, Ee, j, X, Ve, Ze, Ye, Te, qe, Xe, Ke, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Do, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, qo, Xo, Ko, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
|
|
12942
12940
|
this.i4 = {
|
|
12943
12941
|
source: {
|
|
12944
12942
|
type: "raster",
|
|
@@ -31587,11 +31585,11 @@ class Um {
|
|
|
31587
31585
|
(k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((d) => d.id === "loadlines-fill"),
|
|
31588
31586
|
(z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
|
|
31589
31587
|
(O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
|
|
31590
|
-
(P = (
|
|
31588
|
+
(P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
|
|
31591
31589
|
(L = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),
|
|
31592
31590
|
(v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
|
|
31593
31591
|
(F = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : F.find((d) => d.id === "empty-layer-2"),
|
|
31594
|
-
(
|
|
31592
|
+
(Y = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : Y.find((d) => d.id === "water-line-label"),
|
|
31595
31593
|
(ee = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31596
31594
|
(J = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : J.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31597
31595
|
(me = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : me.find((d) => d.id === "ne-10m-outline"),
|
|
@@ -31600,10 +31598,10 @@ class Um {
|
|
|
31600
31598
|
(ge = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
|
|
31601
31599
|
(ne = (H = this.originStyle) == null ? void 0 : H.light.layers) == null ? void 0 : ne.find((d) => d.id === "china-route-label"),
|
|
31602
31600
|
(Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31603
|
-
(
|
|
31604
|
-
(Re = (
|
|
31601
|
+
(De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31602
|
+
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31605
31603
|
(W = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : W.find((d) => d.id === "country-label"),
|
|
31606
|
-
(
|
|
31604
|
+
(He = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : He.find((d) => d.id === "continent-label"),
|
|
31607
31605
|
(ue = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : ue.find((d) => d.id === "tide-stations"),
|
|
31608
31606
|
(U = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : U.find((d) => d.id === "empty-layer-3"),
|
|
31609
31607
|
(oe = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : oe.find((d) => d.id === "empty-layer-4")
|
|
@@ -31622,7 +31620,7 @@ class Um {
|
|
|
31622
31620
|
range: [0.5, 10]
|
|
31623
31621
|
},
|
|
31624
31622
|
sources: (Oe = this.originStyle) == null ? void 0 : Oe.dark.sources,
|
|
31625
|
-
sprite: (
|
|
31623
|
+
sprite: (N = this.originStyle) == null ? void 0 : N.dark.sprite,
|
|
31626
31624
|
glyphs: (ye = this.originStyle) == null ? void 0 : ye.dark.glyphs,
|
|
31627
31625
|
projection: (Ie = this.originStyle) == null ? void 0 : Ie.dark.projection,
|
|
31628
31626
|
id: "cmdqwez32005b01re2w0k3zk4",
|
|
@@ -31632,9 +31630,9 @@ class Um {
|
|
|
31632
31630
|
draft: !1,
|
|
31633
31631
|
layers: [
|
|
31634
31632
|
(Ee = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : Ee.find((d) => d.id === "land"),
|
|
31635
|
-
(
|
|
31636
|
-
(
|
|
31637
|
-
(Te = (
|
|
31633
|
+
(X = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : X.find((d) => d.id === "water"),
|
|
31634
|
+
(Ze = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : Ze.find((d) => d.id === "ice-area-fill"),
|
|
31635
|
+
(Te = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : Te.find((d) => d.id === "ice-area-line"),
|
|
31638
31636
|
(Xe = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Xe.find((d) => d.id === "loadlines-label"),
|
|
31639
31637
|
($e = (Ke = this.originStyle) == null ? void 0 : Ke.dark.layers) == null ? void 0 : $e.find((d) => d.id === "loadlines-fill"),
|
|
31640
31638
|
(Je = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : Je.find((d) => d.id === "empty-layer-0"),
|
|
@@ -31654,7 +31652,7 @@ class Um {
|
|
|
31654
31652
|
(Ct = (Pt = this.originStyle) == null ? void 0 : Pt.dark.layers) == null ? void 0 : Ct.find((d) => d.id === "admin-0-boundary"),
|
|
31655
31653
|
(St = (Tt = this.originStyle) == null ? void 0 : Tt.dark.layers) == null ? void 0 : St.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31656
31654
|
(It = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : It.find((d) => d.id === "country-label"),
|
|
31657
|
-
(
|
|
31655
|
+
(At = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : At.find((d) => d.id === "continent-label"),
|
|
31658
31656
|
(Ot = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : Ot.find((d) => d.id === "tide-stations"),
|
|
31659
31657
|
(Et = (Bt = this.originStyle) == null ? void 0 : Bt.dark.layers) == null ? void 0 : Et.find((d) => d.id === "empty-layer-3"),
|
|
31660
31658
|
(Nt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Nt.find((d) => d.id === "empty-layer-4")
|
|
@@ -31671,7 +31669,7 @@ class Um {
|
|
|
31671
31669
|
sources: (Wt = this.originStyle) == null ? void 0 : Wt.satellite.sources,
|
|
31672
31670
|
sprite: (Ut = this.originStyle) == null ? void 0 : Ut.satellite.sprite,
|
|
31673
31671
|
glyphs: (Vt = this.originStyle) == null ? void 0 : Vt.satellite.glyphs,
|
|
31674
|
-
projection: (
|
|
31672
|
+
projection: (Zt = this.originStyle) == null ? void 0 : Zt.satellite.projection,
|
|
31675
31673
|
created: "2025-07-25T03:53:24.667Z",
|
|
31676
31674
|
modified: "2025-07-28T06:47:35.471Z",
|
|
31677
31675
|
id: "cmdiadnej03n101r485bs2m6a",
|
|
@@ -31680,7 +31678,7 @@ class Um {
|
|
|
31680
31678
|
protected: !1,
|
|
31681
31679
|
draft: !1,
|
|
31682
31680
|
layers: [
|
|
31683
|
-
(qt = (
|
|
31681
|
+
(qt = (Yt = this.originStyle) == null ? void 0 : Yt.satellite.layers) == null ? void 0 : qt.find((d) => d.id === "background"),
|
|
31684
31682
|
(Kt = (Xt = this.originStyle) == null ? void 0 : Xt.satellite.layers) == null ? void 0 : Kt.find((d) => d.id === "satellite"),
|
|
31685
31683
|
(Jt = (Qt = this.originStyle) == null ? void 0 : Qt.satellite.layers) == null ? void 0 : Jt.find((d) => d.id === "loadlines-label"),
|
|
31686
31684
|
(co = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : co.find((d) => d.id === "loadlines-fill"),
|
|
@@ -31694,14 +31692,14 @@ class Um {
|
|
|
31694
31692
|
(Po = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : Po.find((d) => d.id === "ne-10m-label"),
|
|
31695
31693
|
(To = (Co = this.originStyle) == null ? void 0 : Co.satellite.layers) == null ? void 0 : To.find((d) => d.id === "china-route-line"),
|
|
31696
31694
|
(Mo = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : Mo.find((d) => d.id === "china-route-fill"),
|
|
31697
|
-
(
|
|
31698
|
-
(Ro = (
|
|
31695
|
+
(Do = (Io = this.originStyle) == null ? void 0 : Io.satellite.layers) == null ? void 0 : Do.find((d) => d.id === "china-route-label"),
|
|
31696
|
+
(Ro = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : Ro.find((d) => d.id === "country-label"),
|
|
31699
31697
|
(Bo = (Oo = this.originStyle) == null ? void 0 : Oo.satellite.layers) == null ? void 0 : Bo.find((d) => d.id === "continent-label"),
|
|
31700
31698
|
(jo = (Eo = this.originStyle) == null ? void 0 : Eo.satellite.layers) == null ? void 0 : jo.find((d) => d.id === "tide-stations"),
|
|
31701
31699
|
(Fo = (No = this.originStyle) == null ? void 0 : No.satellite.layers) == null ? void 0 : Fo.find((d) => d.id === "ice-area-fill"),
|
|
31702
31700
|
(Go = (Ho = this.originStyle) == null ? void 0 : Ho.satellite.layers) == null ? void 0 : Go.find((d) => d.id === "ice-area-line"),
|
|
31703
31701
|
(Uo = (Wo = this.originStyle) == null ? void 0 : Wo.satellite.layers) == null ? void 0 : Uo.find((d) => d.id === "empty-layer-3"),
|
|
31704
|
-
(
|
|
31702
|
+
(Zo = (Vo = this.originStyle) == null ? void 0 : Vo.satellite.layers) == null ? void 0 : Zo.find((d) => d.id === "empty-layer-4")
|
|
31705
31703
|
]
|
|
31706
31704
|
},
|
|
31707
31705
|
nautical: {
|
|
@@ -31761,7 +31759,7 @@ class Um {
|
|
|
31761
31759
|
projection: this.originStyle.light.projection,
|
|
31762
31760
|
sources: this.originStyle.light.sources,
|
|
31763
31761
|
layers: [
|
|
31764
|
-
(qo = (
|
|
31762
|
+
(qo = (Yo = this.originStyle) == null ? void 0 : Yo.light.layers) == null ? void 0 : qo.find((d) => d.id === "land"),
|
|
31765
31763
|
(Ko = (Xo = this.originStyle) == null ? void 0 : Xo.light.layers) == null ? void 0 : Ko.find((d) => d.id === "water"),
|
|
31766
31764
|
this.i4.layer,
|
|
31767
31765
|
(Qo = ($o = this.originStyle) == null ? void 0 : $o.light.layers) == null ? void 0 : Qo.find((d) => d.id === "ice-area-fill"),
|
|
@@ -31783,8 +31781,8 @@ class Um {
|
|
|
31783
31781
|
(Pa = (La = this.originStyle) == null ? void 0 : La.light.layers) == null ? void 0 : Pa.find((d) => d.id === "china-route-fill"),
|
|
31784
31782
|
(Ta = (Ca = this.originStyle) == null ? void 0 : Ca.light.layers) == null ? void 0 : Ta.find((d) => d.id === "china-route-label"),
|
|
31785
31783
|
(Ma = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ma.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31786
|
-
(
|
|
31787
|
-
(Ra = (
|
|
31784
|
+
(Da = (Ia = this.originStyle) == null ? void 0 : Ia.light.layers) == null ? void 0 : Da.find((d) => d.id === "admin-0-boundary"),
|
|
31785
|
+
(Ra = (Aa = this.originStyle) == null ? void 0 : Aa.light.layers) == null ? void 0 : Ra.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31788
31786
|
(Ba = (Oa = this.originStyle) == null ? void 0 : Oa.light.layers) == null ? void 0 : Ba.find((d) => d.id === "country-label"),
|
|
31789
31787
|
(ja = (Ea = this.originStyle) == null ? void 0 : Ea.light.layers) == null ? void 0 : ja.find((d) => d.id === "continent-label"),
|
|
31790
31788
|
(Fa = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Fa.find((d) => d.id === "tide-stations"),
|
|
@@ -31897,16 +31895,16 @@ const Vm = {
|
|
|
31897
31895
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
31898
31896
|
}
|
|
31899
31897
|
}
|
|
31900
|
-
},
|
|
31898
|
+
}, Zm = { class: "mapbox-initial-gl4" }, Ym = { class: "v-btn--variant-elevated rounded" }, qm = { class: "zoom" }, Xm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
|
|
31901
31899
|
function Km(t, e, o, i, a, r) {
|
|
31902
31900
|
const s = x("VBtn");
|
|
31903
|
-
return b(), S("div",
|
|
31901
|
+
return b(), S("div", Zm, [
|
|
31904
31902
|
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
31905
31903
|
l("div", {
|
|
31906
31904
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
31907
31905
|
style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31908
31906
|
}, [
|
|
31909
|
-
l("div",
|
|
31907
|
+
l("div", Ym, [
|
|
31910
31908
|
h(s, {
|
|
31911
31909
|
"min-width": "32",
|
|
31912
31910
|
width: "32",
|
|
@@ -31948,21 +31946,232 @@ function Km(t, e, o, i, a, r) {
|
|
|
31948
31946
|
])
|
|
31949
31947
|
]);
|
|
31950
31948
|
}
|
|
31951
|
-
const $m = /* @__PURE__ */
|
|
31949
|
+
const $m = /* @__PURE__ */ q(Vm, [["render", Km]]);
|
|
31950
|
+
const Qm = {
|
|
31951
|
+
name: "DateRangePicker",
|
|
31952
|
+
props: {
|
|
31953
|
+
width: {
|
|
31954
|
+
type: Number,
|
|
31955
|
+
default: 230
|
|
31956
|
+
},
|
|
31957
|
+
height: {
|
|
31958
|
+
type: Number,
|
|
31959
|
+
default: 30
|
|
31960
|
+
},
|
|
31961
|
+
position: {
|
|
31962
|
+
type: String,
|
|
31963
|
+
default: "top"
|
|
31964
|
+
},
|
|
31965
|
+
locale: {
|
|
31966
|
+
type: String,
|
|
31967
|
+
default: "en"
|
|
31968
|
+
},
|
|
31969
|
+
timeZone: {
|
|
31970
|
+
type: Number
|
|
31971
|
+
},
|
|
31972
|
+
defaultDays: {
|
|
31973
|
+
type: Number,
|
|
31974
|
+
default: 7
|
|
31975
|
+
},
|
|
31976
|
+
defaultRange: {
|
|
31977
|
+
type: Array,
|
|
31978
|
+
default: () => []
|
|
31979
|
+
},
|
|
31980
|
+
dayAbout: {
|
|
31981
|
+
type: Object,
|
|
31982
|
+
default: () => ({ h: 0, f: 7 })
|
|
31983
|
+
//{ h: -7, f: 14 }
|
|
31984
|
+
}
|
|
31985
|
+
},
|
|
31986
|
+
emits: ["dateRange"],
|
|
31987
|
+
data() {
|
|
31988
|
+
return {
|
|
31989
|
+
showDatePicker: !1,
|
|
31990
|
+
minDate: void 0,
|
|
31991
|
+
maxDate: void 0,
|
|
31992
|
+
dateRange: []
|
|
31993
|
+
};
|
|
31994
|
+
},
|
|
31995
|
+
computed: {
|
|
31996
|
+
currentYear() {
|
|
31997
|
+
return M(this.dateRange[0]).format("YYYY");
|
|
31998
|
+
},
|
|
31999
|
+
timeZoneNames() {
|
|
32000
|
+
return M.tz.names();
|
|
32001
|
+
},
|
|
32002
|
+
timeZoneName() {
|
|
32003
|
+
var t;
|
|
32004
|
+
return (t = this.timeZoneNames.filter((e) => M.tz(M(), e).utcOffset() === this.timeZone * 60)) == null ? void 0 : t[0];
|
|
32005
|
+
},
|
|
32006
|
+
utcTimeZoneName() {
|
|
32007
|
+
return "Africa/Abidjan";
|
|
32008
|
+
},
|
|
32009
|
+
localTimeZoneName() {
|
|
32010
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone || "Asia/Shanghai";
|
|
32011
|
+
}
|
|
32012
|
+
},
|
|
32013
|
+
watch: {
|
|
32014
|
+
timeZone: {
|
|
32015
|
+
handler(t, e) {
|
|
32016
|
+
t !== e && (this.handleResetDateRange(this.dateTime), this.handleResetMinMax());
|
|
32017
|
+
}
|
|
32018
|
+
},
|
|
32019
|
+
dateRange: {
|
|
32020
|
+
handler(t, e) {
|
|
32021
|
+
t !== e && console.log(this.dateRange);
|
|
32022
|
+
}
|
|
32023
|
+
}
|
|
32024
|
+
},
|
|
32025
|
+
mounted() {
|
|
32026
|
+
this.handleReset();
|
|
32027
|
+
},
|
|
32028
|
+
unmounted() {
|
|
32029
|
+
this.handleCancelDate();
|
|
32030
|
+
},
|
|
32031
|
+
methods: {
|
|
32032
|
+
handleReset() {
|
|
32033
|
+
this.handleResetDateRange(), this.handleResetMinMax();
|
|
32034
|
+
},
|
|
32035
|
+
handleResetDateRange() {
|
|
32036
|
+
var s, c, n;
|
|
32037
|
+
let t, e;
|
|
32038
|
+
(s = this.defaultRange) != null && s.length ? (t = this.defaultRange[0], e = (c = this.defaultRange) == null ? void 0 : c.length) : e = this.defaultDays;
|
|
32039
|
+
const o = M(t).utc().date(), i = ((n = M(t)) == null ? void 0 : n.utc().set({ date: o, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, a = M.tz(i, this.timeZoneName).clone(), r = [];
|
|
32040
|
+
for (let g = 0; g < e; g++)
|
|
32041
|
+
r.push(a.clone().add(g, "days").format("YYYY-MM-DD"));
|
|
32042
|
+
this.dateRange = r;
|
|
32043
|
+
},
|
|
32044
|
+
handleResetMinMax() {
|
|
32045
|
+
var a;
|
|
32046
|
+
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
32047
|
+
return;
|
|
32048
|
+
const t = M().utc().date(), e = Math.ceil(M().utc().hour() / 3) * 3, o = ((a = M()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = M.tz(o, this.timeZoneName).clone();
|
|
32049
|
+
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD");
|
|
32050
|
+
},
|
|
32051
|
+
handleOpenDatePicker() {
|
|
32052
|
+
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
32053
|
+
},
|
|
32054
|
+
handleUpdateMonth(t) {
|
|
32055
|
+
const e = t || M.tz(this.dateRange[0], this.timeZoneName).clone().month(), o = this.locale === "en" ? M.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("MMM") : M.tz(this.dateRange[0], this.timeZoneName).set({ month: e }).clone().format("M月");
|
|
32056
|
+
this.$nextTick(() => {
|
|
32057
|
+
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
32058
|
+
i.innerText = o;
|
|
32059
|
+
});
|
|
32060
|
+
},
|
|
32061
|
+
handleConfirmDate() {
|
|
32062
|
+
this.$emit("dateRange", [this.dateRange[0], this.dateRange[this.dateRange.length - 1]]), this.showDatePicker = !1;
|
|
32063
|
+
},
|
|
32064
|
+
handleCancelDate() {
|
|
32065
|
+
this.showDatePicker = !1;
|
|
32066
|
+
},
|
|
32067
|
+
handleClickOutside(t) {
|
|
32068
|
+
const e = this.$refs.idmGl4Timepicker;
|
|
32069
|
+
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
32070
|
+
}
|
|
32071
|
+
}
|
|
32072
|
+
}, Jm = {
|
|
32073
|
+
class: "idm-gl4-date-picker",
|
|
32074
|
+
ref: "idmGl4DatePicker"
|
|
32075
|
+
}, ed = { class: "pa-0" };
|
|
32076
|
+
function td(t, e, o, i, a, r) {
|
|
32077
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), y = x("VCard");
|
|
32078
|
+
return b(), S("div", Jm, [
|
|
32079
|
+
h(s, {
|
|
32080
|
+
text: "",
|
|
32081
|
+
height: o.height,
|
|
32082
|
+
width: o.width,
|
|
32083
|
+
class: "elevation-0 text-body-1 px-2 btn-border-1 btn-bg-1",
|
|
32084
|
+
onClick: r.handleOpenDatePicker
|
|
32085
|
+
}, {
|
|
32086
|
+
default: u(() => {
|
|
32087
|
+
var w;
|
|
32088
|
+
return [
|
|
32089
|
+
B(m(a.dateRange[0]) + " ~ " + m(a.dateRange[((w = a.dateRange) == null ? void 0 : w.length) - 1]), 1)
|
|
32090
|
+
];
|
|
32091
|
+
}),
|
|
32092
|
+
_: 1
|
|
32093
|
+
}, 8, ["height", "width", "onClick"]),
|
|
32094
|
+
a.showDatePicker ? (b(), R(y, {
|
|
32095
|
+
key: 0,
|
|
32096
|
+
class: Ne(["card-box d-flex flex-column", o.position])
|
|
32097
|
+
}, {
|
|
32098
|
+
default: u(() => [
|
|
32099
|
+
h(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
32100
|
+
default: u(() => [
|
|
32101
|
+
l("div", ed, [
|
|
32102
|
+
h(c, {
|
|
32103
|
+
modelValue: a.dateRange,
|
|
32104
|
+
"onUpdate:modelValue": e[0] || (e[0] = (w) => a.dateRange = w),
|
|
32105
|
+
min: a.minDate,
|
|
32106
|
+
max: a.maxDate,
|
|
32107
|
+
"mode-icon": () => r.currentYear,
|
|
32108
|
+
"weekday-format": "short",
|
|
32109
|
+
multiple: "range",
|
|
32110
|
+
color: "primary",
|
|
32111
|
+
density: "compact",
|
|
32112
|
+
class: "w-100",
|
|
32113
|
+
"hide-header": "",
|
|
32114
|
+
"onUpdate:month": r.handleUpdateMonth
|
|
32115
|
+
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
32116
|
+
])
|
|
32117
|
+
]),
|
|
32118
|
+
_: 1
|
|
32119
|
+
}),
|
|
32120
|
+
h(g),
|
|
32121
|
+
h(p, {
|
|
32122
|
+
class: "justify-end pa-0 pr-4",
|
|
32123
|
+
style: { height: "50px" }
|
|
32124
|
+
}, {
|
|
32125
|
+
default: u(() => [
|
|
32126
|
+
h(s, {
|
|
32127
|
+
size: "small",
|
|
32128
|
+
variant: "tonal",
|
|
32129
|
+
class: "text-none text-body-2",
|
|
32130
|
+
onClick: r.handleCancelDate
|
|
32131
|
+
}, {
|
|
32132
|
+
default: u(() => e[1] || (e[1] = [
|
|
32133
|
+
B("Cancel", -1)
|
|
32134
|
+
])),
|
|
32135
|
+
_: 1,
|
|
32136
|
+
__: [1]
|
|
32137
|
+
}, 8, ["onClick"]),
|
|
32138
|
+
h(s, {
|
|
32139
|
+
size: "small",
|
|
32140
|
+
variant: "tonal",
|
|
32141
|
+
color: "primary",
|
|
32142
|
+
class: "text-none text-body-2",
|
|
32143
|
+
onClick: r.handleConfirmDate
|
|
32144
|
+
}, {
|
|
32145
|
+
default: u(() => e[2] || (e[2] = [
|
|
32146
|
+
B("Confirm", -1)
|
|
32147
|
+
])),
|
|
32148
|
+
_: 1,
|
|
32149
|
+
__: [2]
|
|
32150
|
+
}, 8, ["onClick"])
|
|
32151
|
+
]),
|
|
32152
|
+
_: 1
|
|
32153
|
+
})
|
|
32154
|
+
]),
|
|
32155
|
+
_: 1
|
|
32156
|
+
}, 8, ["class"])) : D("", !0)
|
|
32157
|
+
], 512);
|
|
32158
|
+
}
|
|
32159
|
+
const od = /* @__PURE__ */ q(Qm, [["render", td]]), ud = {
|
|
31952
32160
|
install(t) {
|
|
31953
|
-
t.component("MapInitial", $m), t.component("MapboxGL", Wm), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", no), t.component("PortDetail", lo);
|
|
32161
|
+
t.component("MapInitial", $m), t.component("MapboxGL", Wm), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", no), t.component("DateRangePicker", od), t.component("PortDetail", lo);
|
|
31954
32162
|
}
|
|
31955
32163
|
};
|
|
31956
32164
|
export {
|
|
32165
|
+
od as DateRangePicker,
|
|
31957
32166
|
no as DateTimePicker,
|
|
31958
32167
|
qa as LatLngGL,
|
|
31959
32168
|
$m as MapInitial,
|
|
31960
32169
|
Wm as MapboxGL,
|
|
31961
|
-
|
|
32170
|
+
ud as MapboxGLPlugin,
|
|
31962
32171
|
ke as ParticleSchema,
|
|
31963
32172
|
lo as PortDetail,
|
|
31964
32173
|
Xa as TropicalGL,
|
|
31965
32174
|
so as Viewport,
|
|
31966
|
-
|
|
32175
|
+
Fe as WebGL,
|
|
31967
32176
|
le as WebGLSchema
|
|
31968
32177
|
};
|