@idmwx/idmui-gl4 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +319 -308
- package/dist/index.umd.cjs +11 -8
- package/dist/mapbox/src/components/map/index.vue.d.ts +3 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Xa = (t, e, o) => e in t ? qa(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var se = (t, e, o) => (Xa(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as Le } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as M, resolveComponent as x, withDirectives as He, createBlock as B, withCtx as u, createVNode as
|
|
6
|
+
import { openBlock as y, createElementBlock as M, resolveComponent as x, withDirectives as He, createBlock as B, withCtx as u, createVNode as h, withModifiers as io, createElementVNode as l, vShow as We, toDisplayString as b, Fragment as be, renderList as we, createTextVNode as U, createCommentVNode as E, normalizeStyle as ae, mergeProps as j, normalizeClass as Ue } from "vue";
|
|
7
7
|
import xe from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as K, TropicalHelper as Ua, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
9
9
|
import I from "moment";
|
|
@@ -440,7 +440,7 @@ const ci = {
|
|
|
440
440
|
"symbol-placement": "point",
|
|
441
441
|
"icon-image": "warning",
|
|
442
442
|
"icon-size": 1,
|
|
443
|
-
"icon-offset": [0, -
|
|
443
|
+
"icon-offset": [0, -13],
|
|
444
444
|
"icon-allow-overlap": !0,
|
|
445
445
|
"icon-rotation-alignment": "viewport"
|
|
446
446
|
},
|
|
@@ -499,11 +499,11 @@ function di(t, e, o, i, a, r) {
|
|
|
499
499
|
id: "idm-gl4-zone-info"
|
|
500
500
|
}, {
|
|
501
501
|
default: u(() => [
|
|
502
|
-
|
|
502
|
+
h(n, null, {
|
|
503
503
|
default: u(() => {
|
|
504
504
|
var g;
|
|
505
505
|
return [
|
|
506
|
-
|
|
506
|
+
h(s, {
|
|
507
507
|
icon: "",
|
|
508
508
|
density: "compact",
|
|
509
509
|
variant: "plain",
|
|
@@ -599,7 +599,11 @@ const pi = {
|
|
|
599
599
|
"symbol-placement": "point",
|
|
600
600
|
"icon-size": 1,
|
|
601
601
|
"icon-image": "port",
|
|
602
|
-
"icon-offset": [0, -
|
|
602
|
+
"icon-offset": [0, -13],
|
|
603
|
+
"icon-allow-overlap": !1,
|
|
604
|
+
"icon-ignore-placement": !1,
|
|
605
|
+
"icon-avoid-edges": !1,
|
|
606
|
+
"icon-padding": 4,
|
|
603
607
|
"text-anchor": "bottom",
|
|
604
608
|
"text-field": "{name}",
|
|
605
609
|
"text-rotation-alignment": "viewport",
|
|
@@ -641,13 +645,13 @@ const pi = {
|
|
|
641
645
|
}
|
|
642
646
|
}, ui = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, gi = { class: "d-flex justify-start align-center text-label" }, fi = { class: "d-flex justify-start align-center text-label" };
|
|
643
647
|
function yi(t, e, o, i, a, r) {
|
|
644
|
-
const s = x("
|
|
648
|
+
const s = x("VCardText"), n = x("VCard");
|
|
645
649
|
return He((y(), B(n, {
|
|
646
650
|
id: "idmPortInfo",
|
|
647
651
|
ref: "idmPortInfo"
|
|
648
652
|
}, {
|
|
649
653
|
default: u(() => [
|
|
650
|
-
|
|
654
|
+
h(s, { class: "text-body-1 pr-8" }, {
|
|
651
655
|
default: u(() => [
|
|
652
656
|
l("div", ui, [
|
|
653
657
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
@@ -668,7 +672,7 @@ function yi(t, e, o, i, a, r) {
|
|
|
668
672
|
[We, a.showInfo]
|
|
669
673
|
]);
|
|
670
674
|
}
|
|
671
|
-
const bi = /* @__PURE__ */ V(pi, [["render", yi], ["__scopeId", "data-v-
|
|
675
|
+
const bi = /* @__PURE__ */ V(pi, [["render", yi], ["__scopeId", "data-v-70375c62"]]), wi = {
|
|
672
676
|
name: "IdmLoadLine",
|
|
673
677
|
props: {
|
|
674
678
|
map: {
|
|
@@ -1604,11 +1608,11 @@ const Ui = {
|
|
|
1604
1608
|
width: "120"
|
|
1605
1609
|
};
|
|
1606
1610
|
function _r(t, e, o, i, a, r) {
|
|
1607
|
-
const s = x("v-card-text"), n = x("v-card"), c = x("VBtn"), g = x("v-card-title"), p = x("v-divider"),
|
|
1611
|
+
const s = x("v-card-text"), n = x("v-card"), c = x("VBtn"), g = x("v-card-title"), p = x("v-divider"), d = x("VBtnToggle");
|
|
1608
1612
|
return y(), M("div", null, [
|
|
1609
|
-
He(
|
|
1613
|
+
He(h(n, { id: "idmTidalInfo" }, {
|
|
1610
1614
|
default: u(() => [
|
|
1611
|
-
|
|
1615
|
+
h(s, { class: "pr-8 text-body-1" }, {
|
|
1612
1616
|
default: u(() => {
|
|
1613
1617
|
var f, k;
|
|
1614
1618
|
return [
|
|
@@ -1634,7 +1638,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1634
1638
|
default: u(() => {
|
|
1635
1639
|
var f, k, v, T;
|
|
1636
1640
|
return [
|
|
1637
|
-
|
|
1641
|
+
h(g, { class: "w-100" }, {
|
|
1638
1642
|
default: u(() => {
|
|
1639
1643
|
var w;
|
|
1640
1644
|
return [
|
|
@@ -1642,7 +1646,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1642
1646
|
l("div", qi, [
|
|
1643
1647
|
l("div", null, b((w = a.station) == null ? void 0 : w.name), 1)
|
|
1644
1648
|
]),
|
|
1645
|
-
|
|
1649
|
+
h(c, {
|
|
1646
1650
|
icon: "",
|
|
1647
1651
|
density: "compact",
|
|
1648
1652
|
variant: "plain",
|
|
@@ -1664,7 +1668,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1664
1668
|
_: 1,
|
|
1665
1669
|
__: [4]
|
|
1666
1670
|
}),
|
|
1667
|
-
|
|
1671
|
+
h(p, { class: "w-100" }),
|
|
1668
1672
|
l("div", Xi, [
|
|
1669
1673
|
l("div", Ki, [
|
|
1670
1674
|
l("div", Qi, [
|
|
@@ -1706,7 +1710,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
1706
1710
|
e[8] || (e[8] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
|
|
1707
1711
|
]),
|
|
1708
1712
|
l("div", fr, [
|
|
1709
|
-
d
|
|
1713
|
+
h(d, {
|
|
1710
1714
|
modelValue: a.currentIndex,
|
|
1711
1715
|
"onUpdate:modelValue": e[1] || (e[1] = (w) => a.currentIndex = w),
|
|
1712
1716
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
@@ -2867,7 +2871,7 @@ const Sr = {
|
|
|
2867
2871
|
"symbol-placement": "point",
|
|
2868
2872
|
"icon-size": 1,
|
|
2869
2873
|
"icon-image": "port",
|
|
2870
|
-
"icon-offset": [0, -
|
|
2874
|
+
"icon-offset": [0, -13],
|
|
2871
2875
|
"text-anchor": "bottom",
|
|
2872
2876
|
"text-field": "{name}",
|
|
2873
2877
|
"text-rotation-alignment": "viewport",
|
|
@@ -2912,7 +2916,7 @@ function Dr(t, e, o, i, a, r) {
|
|
|
2912
2916
|
ref: "idmFollowPortInfo"
|
|
2913
2917
|
}, {
|
|
2914
2918
|
default: u(() => [
|
|
2915
|
-
|
|
2919
|
+
h(s, { class: "text-body-1 pr-8" }, {
|
|
2916
2920
|
default: u(() => [
|
|
2917
2921
|
l("div", Mr, [
|
|
2918
2922
|
e[1] || (e[1] = l("div", null, "port", -1)),
|
|
@@ -2933,7 +2937,7 @@ function Dr(t, e, o, i, a, r) {
|
|
|
2933
2937
|
[We, a.showInfo]
|
|
2934
2938
|
]);
|
|
2935
2939
|
}
|
|
2936
|
-
const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-
|
|
2940
|
+
const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-98bcf2a1"]]), Or = {
|
|
2937
2941
|
name: "IdmFollowPosition",
|
|
2938
2942
|
props: {
|
|
2939
2943
|
map: {
|
|
@@ -3807,7 +3811,7 @@ const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-de5a1fa3
|
|
|
3807
3811
|
"symbol-placement": "point",
|
|
3808
3812
|
"icon-size": 1,
|
|
3809
3813
|
"icon-image": "location",
|
|
3810
|
-
"icon-offset": [0, -
|
|
3814
|
+
"icon-offset": [0, -13]
|
|
3811
3815
|
},
|
|
3812
3816
|
paint: {
|
|
3813
3817
|
"text-color": this.Theme.current.value.colors["on-surface"],
|
|
@@ -3823,9 +3827,11 @@ const Rr = /* @__PURE__ */ V(Sr, [["render", Dr], ["__scopeId", "data-v-de5a1fa3
|
|
|
3823
3827
|
var o, i, a, r, s, n, c, g, p;
|
|
3824
3828
|
const e = t.features[0];
|
|
3825
3829
|
if (e.properties) {
|
|
3826
|
-
const
|
|
3827
|
-
|
|
3828
|
-
|
|
3830
|
+
const d = e.properties;
|
|
3831
|
+
d.lng = e.geometry.coordinates[0], d.lat = e.geometry.coordinates[1], console.log("point", d);
|
|
3832
|
+
const f = I(), k = (o = I(this.realTime)) == null ? void 0 : o.diff(f, "d", !0), v = {
|
|
3833
|
+
lat: d.lat,
|
|
3834
|
+
lng: d.lng,
|
|
3829
3835
|
datetime: this.realTime,
|
|
3830
3836
|
forecastModel: this.forecastModel
|
|
3831
3837
|
};
|
|
@@ -3932,7 +3938,6 @@ const jr = {
|
|
|
3932
3938
|
{ name: "Nautical Map", value: "nautical", locale: "nauticalMap" }
|
|
3933
3939
|
],
|
|
3934
3940
|
checkList: []
|
|
3935
|
-
// followList: [],
|
|
3936
3941
|
};
|
|
3937
3942
|
},
|
|
3938
3943
|
computed: {
|
|
@@ -3984,12 +3989,6 @@ const jr = {
|
|
|
3984
3989
|
this.$emit("otherCheckList", this.checkList);
|
|
3985
3990
|
}
|
|
3986
3991
|
}
|
|
3987
|
-
// followList: {
|
|
3988
|
-
// handler() {
|
|
3989
|
-
// localStorage.setItem(this.cache.followListKey, JSON.stringify(this.followList))
|
|
3990
|
-
// this.$emit('followLayerList', this.followList)
|
|
3991
|
-
// },
|
|
3992
|
-
// },
|
|
3993
3992
|
},
|
|
3994
3993
|
async mounted() {
|
|
3995
3994
|
this.fetchCache();
|
|
@@ -4021,18 +4020,18 @@ const jr = {
|
|
|
4021
4020
|
});
|
|
4022
4021
|
if (((o = n == null ? void 0 : n.data) == null ? void 0 : o.code) === 0) {
|
|
4023
4022
|
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, g = [];
|
|
4024
|
-
for (const
|
|
4023
|
+
for (const d in c)
|
|
4025
4024
|
g.push(
|
|
4026
|
-
Se.get(c[
|
|
4025
|
+
Se.get(c[d], {
|
|
4027
4026
|
headers: {
|
|
4028
4027
|
Authorization: this.token || this.defaultMeteoToken,
|
|
4029
|
-
key:
|
|
4028
|
+
key: d
|
|
4030
4029
|
}
|
|
4031
4030
|
})
|
|
4032
4031
|
);
|
|
4033
|
-
(await Promise.all(g)).map((
|
|
4032
|
+
(await Promise.all(g)).map((d) => {
|
|
4034
4033
|
var v, T, w;
|
|
4035
|
-
const f = ((v =
|
|
4034
|
+
const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), k = (w = (T = d == null ? void 0 : d.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4036
4035
|
this.otherLayers[k] = f;
|
|
4037
4036
|
});
|
|
4038
4037
|
}
|
|
@@ -4044,18 +4043,18 @@ const jr = {
|
|
|
4044
4043
|
});
|
|
4045
4044
|
if (((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 0) {
|
|
4046
4045
|
const c = (r = n == null ? void 0 : n.data) == null ? void 0 : r.data, g = [];
|
|
4047
|
-
for (const
|
|
4046
|
+
for (const d in c)
|
|
4048
4047
|
g.push(
|
|
4049
|
-
Se.get(c[
|
|
4048
|
+
Se.get(c[d], {
|
|
4050
4049
|
headers: {
|
|
4051
4050
|
Authorization: this.token || this.defaultMeteoToken,
|
|
4052
|
-
key:
|
|
4051
|
+
key: d
|
|
4053
4052
|
}
|
|
4054
4053
|
})
|
|
4055
4054
|
);
|
|
4056
|
-
(await Promise.all(g)).map((
|
|
4055
|
+
(await Promise.all(g)).map((d) => {
|
|
4057
4056
|
var v, T, w;
|
|
4058
|
-
const f = ((v =
|
|
4057
|
+
const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), k = (w = (T = d == null ? void 0 : d.config) == null ? void 0 : T.headers) == null ? void 0 : w.key;
|
|
4059
4058
|
this.otherLayers[k] = f;
|
|
4060
4059
|
});
|
|
4061
4060
|
}
|
|
@@ -4086,18 +4085,18 @@ const jr = {
|
|
|
4086
4085
|
}, Xr = { class: "text-body-2 text-center pt-1" };
|
|
4087
4086
|
function Kr(t, e, o, i, a, r) {
|
|
4088
4087
|
var J, le, pe, ue, ce, Q, ie, ge, me;
|
|
4089
|
-
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"),
|
|
4088
|
+
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), d = x("VCardText"), f = x("VCard"), k = x("IdmLatLng"), v = x("IdmTerminator"), T = x("IdmTimezone"), w = x("IdmPort"), D = x("IdmAlertZone"), S = x("IdmTideStations"), P = x("IdmEcaZone"), z = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), _ = x("IdmWorldMarine"), A = x("IdmVRA"), Z = x("IdmSpecialArea"), q = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Y = x("IdmIceAreas"), te = x("IdmFollowPort"), oe = x("IdmFollowPosition");
|
|
4090
4089
|
return y(), M("div", Nr, [
|
|
4091
4090
|
l("div", {
|
|
4092
4091
|
class: "menu-bar-box transition px-1 rounded",
|
|
4093
4092
|
style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
|
|
4094
4093
|
}, [
|
|
4095
|
-
|
|
4094
|
+
h(n, {
|
|
4096
4095
|
text: t.$t("layer.mapLayers"),
|
|
4097
4096
|
location: "left"
|
|
4098
4097
|
}, {
|
|
4099
4098
|
activator: u(({ props: F }) => [
|
|
4100
|
-
|
|
4099
|
+
h(s, j(F, {
|
|
4101
4100
|
"min-width": "32",
|
|
4102
4101
|
width: "32",
|
|
4103
4102
|
height: "32",
|
|
@@ -4120,7 +4119,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4120
4119
|
}, [
|
|
4121
4120
|
l("div", Fr, [
|
|
4122
4121
|
l("div", Hr, b(t.$t("layer.layers")), 1),
|
|
4123
|
-
|
|
4122
|
+
h(s, {
|
|
4124
4123
|
icon: "",
|
|
4125
4124
|
density: "compact",
|
|
4126
4125
|
variant: "plain",
|
|
@@ -4135,14 +4134,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4135
4134
|
}, 8, ["onClick"])
|
|
4136
4135
|
]),
|
|
4137
4136
|
l("div", Wr, [
|
|
4138
|
-
|
|
4137
|
+
h(f, {
|
|
4139
4138
|
class: "menu-card mx-auto mb-3",
|
|
4140
4139
|
elevation: "0"
|
|
4141
4140
|
}, {
|
|
4142
4141
|
default: u(() => [
|
|
4143
|
-
|
|
4142
|
+
h(g, { class: "border-b-thin" }, {
|
|
4144
4143
|
default: u(() => [
|
|
4145
|
-
|
|
4144
|
+
h(c, {
|
|
4146
4145
|
class: "text-subtitle-1 font-weight-medium",
|
|
4147
4146
|
style: { "font-size": "16px !important" }
|
|
4148
4147
|
}, {
|
|
@@ -4154,7 +4153,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4154
4153
|
]),
|
|
4155
4154
|
_: 1
|
|
4156
4155
|
}),
|
|
4157
|
-
d
|
|
4156
|
+
h(d, { class: "pb-2" }, {
|
|
4158
4157
|
default: u(() => [
|
|
4159
4158
|
l("div", Ur, [
|
|
4160
4159
|
(y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
|
|
@@ -4188,14 +4187,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4188
4187
|
]),
|
|
4189
4188
|
_: 1
|
|
4190
4189
|
}),
|
|
4191
|
-
|
|
4190
|
+
h(f, {
|
|
4192
4191
|
class: "menu-card mx-auto mb-3",
|
|
4193
4192
|
elevation: "0"
|
|
4194
4193
|
}, {
|
|
4195
4194
|
default: u(() => [
|
|
4196
|
-
|
|
4195
|
+
h(g, { class: "border-b-thin" }, {
|
|
4197
4196
|
default: u(() => [
|
|
4198
|
-
|
|
4197
|
+
h(c, {
|
|
4199
4198
|
class: "text-subtitle-1 font-weight-medium",
|
|
4200
4199
|
style: { "font-size": "16px !important" }
|
|
4201
4200
|
}, {
|
|
@@ -4207,7 +4206,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4207
4206
|
]),
|
|
4208
4207
|
_: 1
|
|
4209
4208
|
}),
|
|
4210
|
-
d
|
|
4209
|
+
h(d, { class: "py-2" }, {
|
|
4211
4210
|
default: u(() => [
|
|
4212
4211
|
(y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(p, {
|
|
4213
4212
|
key: F.key,
|
|
@@ -4227,14 +4226,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4227
4226
|
]),
|
|
4228
4227
|
_: 1
|
|
4229
4228
|
}),
|
|
4230
|
-
|
|
4229
|
+
h(f, {
|
|
4231
4230
|
class: "menu-card mx-auto mb-3",
|
|
4232
4231
|
elevation: "0"
|
|
4233
4232
|
}, {
|
|
4234
4233
|
default: u(() => [
|
|
4235
|
-
|
|
4234
|
+
h(g, { class: "border-b-thin" }, {
|
|
4236
4235
|
default: u(() => [
|
|
4237
|
-
|
|
4236
|
+
h(c, {
|
|
4238
4237
|
class: "text-subtitle-1 font-weight-medium",
|
|
4239
4238
|
style: { "font-size": "16px !important" }
|
|
4240
4239
|
}, {
|
|
@@ -4246,7 +4245,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4246
4245
|
]),
|
|
4247
4246
|
_: 1
|
|
4248
4247
|
}),
|
|
4249
|
-
d
|
|
4248
|
+
h(d, { class: "py-2" }, {
|
|
4250
4249
|
default: u(() => [
|
|
4251
4250
|
(y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), B(p, {
|
|
4252
4251
|
key: F.key,
|
|
@@ -4266,14 +4265,14 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4266
4265
|
]),
|
|
4267
4266
|
_: 1
|
|
4268
4267
|
}),
|
|
4269
|
-
|
|
4268
|
+
h(f, {
|
|
4270
4269
|
class: "menu-card mx-auto mb-3",
|
|
4271
4270
|
elevation: "0"
|
|
4272
4271
|
}, {
|
|
4273
4272
|
default: u(() => [
|
|
4274
|
-
|
|
4273
|
+
h(g, { class: "border-b-thin" }, {
|
|
4275
4274
|
default: u(() => [
|
|
4276
|
-
|
|
4275
|
+
h(c, {
|
|
4277
4276
|
class: "text-subtitle-1 font-weight-medium",
|
|
4278
4277
|
style: { "font-size": "16px !important" }
|
|
4279
4278
|
}, {
|
|
@@ -4285,9 +4284,9 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4285
4284
|
]),
|
|
4286
4285
|
_: 1
|
|
4287
4286
|
}),
|
|
4288
|
-
d
|
|
4287
|
+
h(d, { class: "py-2" }, {
|
|
4289
4288
|
default: u(() => [
|
|
4290
|
-
|
|
4289
|
+
h(p, {
|
|
4291
4290
|
modelValue: a.checkList,
|
|
4292
4291
|
"onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
|
|
4293
4292
|
value: "follow-ports",
|
|
@@ -4298,7 +4297,7 @@ function Kr(t, e, o, i, a, r) {
|
|
|
4298
4297
|
class: "flex-1-0-100 text-body-2",
|
|
4299
4298
|
"hide-details": ""
|
|
4300
4299
|
}, null, 8, ["modelValue", "label"]),
|
|
4301
|
-
|
|
4300
|
+
h(p, {
|
|
4302
4301
|
modelValue: a.checkList,
|
|
4303
4302
|
"onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
|
|
4304
4303
|
value: "follow-positions",
|
|
@@ -4477,8 +4476,8 @@ class ro {
|
|
|
4477
4476
|
const e = (v = this.map) == null ? void 0 : v.getBounds();
|
|
4478
4477
|
if (!e)
|
|
4479
4478
|
return [];
|
|
4480
|
-
const o = ((T = this.map) == null ? void 0 : T.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [n, c] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [
|
|
4481
|
-
return [
|
|
4479
|
+
const o = ((T = this.map) == null ? void 0 : T.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [n, c] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([n, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (s + c));
|
|
4480
|
+
return [d, f, g + k, p];
|
|
4482
4481
|
}
|
|
4483
4482
|
/**
|
|
4484
4483
|
* [视窗边界像素宽度]
|
|
@@ -4495,11 +4494,11 @@ class ro {
|
|
|
4495
4494
|
getWorldCopy(e, o) {
|
|
4496
4495
|
const i = 2 ** o, [a, r, s, n] = e.map((p) => ~~(p / (i * 256))), c = [];
|
|
4497
4496
|
for (let p = n; p <= r; p++)
|
|
4498
|
-
for (let
|
|
4499
|
-
c.push([
|
|
4497
|
+
for (let d = a; d <= s; d++)
|
|
4498
|
+
c.push([d, p]);
|
|
4500
4499
|
return c.map((p) => {
|
|
4501
|
-
const
|
|
4502
|
-
return [p[0] *
|
|
4500
|
+
const d = 2 ** o * 256;
|
|
4501
|
+
return [p[0] * d, p[1] * d, d];
|
|
4503
4502
|
});
|
|
4504
4503
|
}
|
|
4505
4504
|
resize() {
|
|
@@ -4643,8 +4642,8 @@ class Ne {
|
|
|
4643
4642
|
return {};
|
|
4644
4643
|
}
|
|
4645
4644
|
bindParticle(e, o, i, a, r, s) {
|
|
4646
|
-
const n = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])),
|
|
4647
|
-
return { particle: n, screen: c, update: g, quadBuffer: p, frameBuffer:
|
|
4645
|
+
const n = this.createProgramWrapper(e, o, i), c = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
|
|
4646
|
+
return { particle: n, screen: c, update: g, quadBuffer: p, frameBuffer: d };
|
|
4648
4647
|
}
|
|
4649
4648
|
draw(e, o, i, a, r, s, n) {
|
|
4650
4649
|
var c, g;
|
|
@@ -4661,9 +4660,9 @@ class Ne {
|
|
|
4661
4660
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
4662
4661
|
};
|
|
4663
4662
|
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), n != null && n.uvRange && (n != null && n.sRange) && (p.uvRange && o.uniform2f(p.uvRange, n.uvRange[0], n.uvRange[1]), p.sRange && o.uniform2f(p.sRange, n.sRange[0], n.sRange[1])), p.scale && o.uniform1f(p.scale, (n == null ? void 0 : n.scale) || 1);
|
|
4664
|
-
const
|
|
4663
|
+
const d = e.getBoundPixel(), f = e.map.getZoom() + 1, k = e.getWorldCopy(d, f);
|
|
4665
4664
|
for (const v of k) {
|
|
4666
|
-
const T = (v[0] -
|
|
4665
|
+
const T = (v[0] - d[0]) * e.ratio, w = (v[1] - d[3]) * e.ratio, D = v[2] * e.ratio, [S, P, z, L] = [T, D + T, w, D + w], C = new Float32Array([S, z, P, z, S, L, S, L, P, z, P, L]);
|
|
4667
4666
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4668
4667
|
}
|
|
4669
4668
|
} catch (p) {
|
|
@@ -5014,11 +5013,11 @@ const Jr = {
|
|
|
5014
5013
|
else {
|
|
5015
5014
|
this.map.addSource(this.source, { type: "geojson", data: n });
|
|
5016
5015
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
5017
|
-
const g = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0,
|
|
5016
|
+
const g = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = g < 10 ? `00${g}kts` : g < 100 ? `0${g}kts` : `${g}kts`, f = new Image(48, 48), k = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
|
|
5018
5017
|
f.src = k, f.onload = () => {
|
|
5019
|
-
this.map.hasImage(
|
|
5018
|
+
this.map.hasImage(d + "-icon") || this.map.addImage(d + "-icon", f), this.map.addLayer(
|
|
5020
5019
|
{
|
|
5021
|
-
id:
|
|
5020
|
+
id: d,
|
|
5022
5021
|
type: "symbol",
|
|
5023
5022
|
filter: [
|
|
5024
5023
|
"all",
|
|
@@ -5030,7 +5029,7 @@ const Jr = {
|
|
|
5030
5029
|
source: this.source,
|
|
5031
5030
|
layout: {
|
|
5032
5031
|
"symbol-placement": "point",
|
|
5033
|
-
"icon-image":
|
|
5032
|
+
"icon-image": d + "-icon",
|
|
5034
5033
|
// mapbox sprite
|
|
5035
5034
|
"icon-size": 0.5,
|
|
5036
5035
|
"icon-offset": [0, -20],
|
|
@@ -5383,10 +5382,10 @@ const rl = /* @__PURE__ */ V(ol, [["render", il]]), ll = {
|
|
|
5383
5382
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5384
5383
|
</svg>`, c = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(n))), g.src = c;
|
|
5385
5384
|
const p = [g];
|
|
5386
|
-
let
|
|
5385
|
+
let d = 0;
|
|
5387
5386
|
p.forEach((f) => {
|
|
5388
5387
|
f.onload = () => {
|
|
5389
|
-
|
|
5388
|
+
d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", g), d === 1 && this.map.addLayer(
|
|
5390
5389
|
{
|
|
5391
5390
|
id: this.directionLayer,
|
|
5392
5391
|
type: "symbol",
|
|
@@ -6206,12 +6205,12 @@ function Ll(t, e, o, i, a, r) {
|
|
|
6206
6205
|
class: "menu-bar-box pa-1 rounded",
|
|
6207
6206
|
style: ae({ right: a.right + "px" })
|
|
6208
6207
|
}, [
|
|
6209
|
-
|
|
6208
|
+
h(n, {
|
|
6210
6209
|
text: "Map Layers",
|
|
6211
6210
|
location: "left"
|
|
6212
6211
|
}, {
|
|
6213
6212
|
activator: u(({ props: g }) => [
|
|
6214
|
-
|
|
6213
|
+
h(s, j(g, {
|
|
6215
6214
|
"min-width": "32",
|
|
6216
6215
|
width: "32",
|
|
6217
6216
|
height: "32",
|
|
@@ -7309,7 +7308,7 @@ const ts = {
|
|
|
7309
7308
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7310
7309
|
},
|
|
7311
7310
|
async fetchWeatherLayers(t = {}) {
|
|
7312
|
-
var a, r, s, n, c, g, p,
|
|
7311
|
+
var a, r, s, n, c, g, p, d, f;
|
|
7313
7312
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7314
7313
|
let o = 0, i = 0;
|
|
7315
7314
|
if (this.map) {
|
|
@@ -7368,7 +7367,7 @@ const ts = {
|
|
|
7368
7367
|
};
|
|
7369
7368
|
}
|
|
7370
7369
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7371
|
-
const P = (
|
|
7370
|
+
const P = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, z = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
7372
7371
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7373
7372
|
type: "json",
|
|
7374
7373
|
direction: P,
|
|
@@ -7399,7 +7398,7 @@ const ts = {
|
|
|
7399
7398
|
}, 500);
|
|
7400
7399
|
},
|
|
7401
7400
|
handleRampColorInitial() {
|
|
7402
|
-
var t, e, o, i, a, r, s, n, c, g, p,
|
|
7401
|
+
var t, e, o, i, a, r, s, n, c, g, p, d;
|
|
7403
7402
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
7404
7403
|
type: "canvas",
|
|
7405
7404
|
canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
|
|
@@ -7424,7 +7423,7 @@ const ts = {
|
|
|
7424
7423
|
{
|
|
7425
7424
|
type: "raster",
|
|
7426
7425
|
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
7427
|
-
source: (
|
|
7426
|
+
source: (d = this.viewport) == null ? void 0 : d.particleSource,
|
|
7428
7427
|
layout: {
|
|
7429
7428
|
visibility: "none"
|
|
7430
7429
|
}
|
|
@@ -7433,7 +7432,7 @@ const ts = {
|
|
|
7433
7432
|
);
|
|
7434
7433
|
},
|
|
7435
7434
|
handleDrawWeather4Json() {
|
|
7436
|
-
var g, p,
|
|
7435
|
+
var g, p, d, f, k, v, T;
|
|
7437
7436
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
7438
7437
|
let e = 0, o = 0;
|
|
7439
7438
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = K.convertToStdLng(i._sw.lng), s = K.convertToStdLng(i._ne.lng), n = Math.floor(i._sw.lat), c = Math.ceil(i._ne.lat);
|
|
@@ -7443,7 +7442,7 @@ const ts = {
|
|
|
7443
7442
|
let S = [];
|
|
7444
7443
|
if (w === "swell") {
|
|
7445
7444
|
D = !0;
|
|
7446
|
-
const P = ((
|
|
7445
|
+
const P = ((d = this.weatherLayers[w]) == null ? void 0 : d.direction) || {};
|
|
7447
7446
|
for (const L in P)
|
|
7448
7447
|
if (L > n && L < c && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
7449
7448
|
const C = P[L].lng;
|
|
@@ -7722,18 +7721,18 @@ const ts = {
|
|
|
7722
7721
|
}, ys = { class: "text-body-1 py-2" }, bs = { class: "text-body-1 font-weight-medium" }, ws = { class: "text-body-2 opacity-70" }, xs = { class: "text-body-2 opacity-70 mb-3" }, vs = { class: "text-body-1 font-weight-medium" }, _s = { class: "text-body-2 opacity-70" }, ks = { class: "text-body-2 opacity-70 mb-3" }, zs = { class: "text-body-1 py-2" }, Ls = { class: "text-body-1 font-weight-medium" }, Ps = { class: "text-body-2 opacity-70" }, Cs = { class: "text-body-2 opacity-70 mb-3" }, Ts = { class: "text-body-1 font-weight-medium" }, Ss = { class: "text-body-2 opacity-70" }, Ms = { class: "text-body-2 opacity-70 mb-3" }, Is = { class: "text-body-1 py-2" }, As = { class: "text-body-1 font-weight-medium" }, Ds = { class: "text-body-2 opacity-70" }, Rs = { class: "text-body-2 opacity-70 mb-3" };
|
|
7723
7722
|
function Os(t, e, o, i, a, r) {
|
|
7724
7723
|
var ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De, Re, ve;
|
|
7725
|
-
const s = x("VBtn"), n = x("VTooltip"), c = x("VCol"), g = x("VRow"), p = x("VCardText"),
|
|
7724
|
+
const s = x("VBtn"), n = x("VTooltip"), c = x("VCol"), g = x("VRow"), p = x("VCardText"), d = x("VDivider"), f = x("VCard"), k = x("VSwitch"), v = x("VCardTitle"), T = x("VCardItem"), w = x("VCheckbox"), D = x("VRadio"), S = x("VBtnToggle"), P = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), _ = x("IdmWindParticle"), A = x("IdmCurrentParticle"), Z = x("IdmWave"), q = x("IdmSwell"), X = x("IdmIceEdge"), Y = x("IdmIceCover"), te = x("IdmIceThickness"), oe = x("IdmPrecip3h"), J = x("IdmVisibility"), le = x("IdmWaterTemp"), pe = x("IdmTemp");
|
|
7726
7725
|
return y(), M("div", os, [
|
|
7727
7726
|
l("div", {
|
|
7728
7727
|
class: "menu-bar-box transition pa-1",
|
|
7729
7728
|
style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
|
|
7730
7729
|
}, [
|
|
7731
|
-
|
|
7730
|
+
h(n, {
|
|
7732
7731
|
text: t.$t("weather.weatherLayers"),
|
|
7733
7732
|
location: "left"
|
|
7734
7733
|
}, {
|
|
7735
7734
|
activator: u(({ props: H }) => [
|
|
7736
|
-
|
|
7735
|
+
h(s, j(H, {
|
|
7737
7736
|
"min-width": "32",
|
|
7738
7737
|
width: "32",
|
|
7739
7738
|
height: "32",
|
|
@@ -7755,12 +7754,12 @@ function Os(t, e, o, i, a, r) {
|
|
|
7755
7754
|
class: "menu-bar-box pa-1 rounded",
|
|
7756
7755
|
style: ae({ right: a.right + "px" })
|
|
7757
7756
|
}, [
|
|
7758
|
-
|
|
7757
|
+
h(n, {
|
|
7759
7758
|
text: "Legend",
|
|
7760
7759
|
location: "left"
|
|
7761
7760
|
}, {
|
|
7762
7761
|
activator: u(({ props: H }) => [
|
|
7763
|
-
|
|
7762
|
+
h(s, j(H, {
|
|
7764
7763
|
"min-width": "32",
|
|
7765
7764
|
width: "32",
|
|
7766
7765
|
height: "32",
|
|
@@ -7785,10 +7784,10 @@ function Os(t, e, o, i, a, r) {
|
|
|
7785
7784
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
7786
7785
|
}, {
|
|
7787
7786
|
default: u(() => [
|
|
7788
|
-
|
|
7787
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7789
7788
|
default: u(() => [
|
|
7790
7789
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
7791
|
-
|
|
7790
|
+
h(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
7792
7791
|
default: u(() => [
|
|
7793
7792
|
(y(!0), M(be, null, we(a.legend.barbs, (H, ee) => (y(), B(c, {
|
|
7794
7793
|
key: H,
|
|
@@ -7813,11 +7812,11 @@ function Os(t, e, o, i, a, r) {
|
|
|
7813
7812
|
_: 1,
|
|
7814
7813
|
__: [9]
|
|
7815
7814
|
}),
|
|
7816
|
-
d
|
|
7817
|
-
|
|
7815
|
+
h(d, { vertical: "" }),
|
|
7816
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7818
7817
|
default: u(() => [
|
|
7819
7818
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
7820
|
-
|
|
7819
|
+
h(g, {
|
|
7821
7820
|
class: "ma-0 ml-1",
|
|
7822
7821
|
style: { width: "100px" }
|
|
7823
7822
|
}, {
|
|
@@ -7845,11 +7844,11 @@ function Os(t, e, o, i, a, r) {
|
|
|
7845
7844
|
_: 1,
|
|
7846
7845
|
__: [10]
|
|
7847
7846
|
}),
|
|
7848
|
-
d
|
|
7849
|
-
|
|
7847
|
+
h(d, { vertical: "" }),
|
|
7848
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
7850
7849
|
default: u(() => [
|
|
7851
7850
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
7852
|
-
|
|
7851
|
+
h(g, {
|
|
7853
7852
|
class: "ma-0 ml-n5",
|
|
7854
7853
|
style: { width: "110px" }
|
|
7855
7854
|
}, {
|
|
@@ -7890,7 +7889,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7890
7889
|
l("div", hs, [
|
|
7891
7890
|
l("div", ps, [
|
|
7892
7891
|
l("div", us, b(t.$t("weather.weather")), 1),
|
|
7893
|
-
|
|
7892
|
+
h(k, {
|
|
7894
7893
|
modelValue: a.autoActive,
|
|
7895
7894
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
7896
7895
|
class: "small-switch",
|
|
@@ -7899,7 +7898,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7899
7898
|
"hide-details": ""
|
|
7900
7899
|
}, null, 8, ["modelValue"])
|
|
7901
7900
|
]),
|
|
7902
|
-
|
|
7901
|
+
h(s, {
|
|
7903
7902
|
icon: "",
|
|
7904
7903
|
density: "compact",
|
|
7905
7904
|
variant: "plain",
|
|
@@ -7916,14 +7915,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
7916
7915
|
l("div", {
|
|
7917
7916
|
class: Ue(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
7918
7917
|
}, [
|
|
7919
|
-
|
|
7918
|
+
h(f, {
|
|
7920
7919
|
class: "menu-card mx-auto mb-3",
|
|
7921
7920
|
elevation: "0"
|
|
7922
7921
|
}, {
|
|
7923
7922
|
default: u(() => [
|
|
7924
|
-
|
|
7923
|
+
h(T, { class: "border-b-thin" }, {
|
|
7925
7924
|
default: u(() => [
|
|
7926
|
-
|
|
7925
|
+
h(v, {
|
|
7927
7926
|
class: "text-subtitle-1 font-weight-medium",
|
|
7928
7927
|
style: { "font-size": "16px !important" }
|
|
7929
7928
|
}, {
|
|
@@ -7935,7 +7934,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7935
7934
|
]),
|
|
7936
7935
|
_: 1
|
|
7937
7936
|
}),
|
|
7938
|
-
|
|
7937
|
+
h(p, { class: "py-2" }, {
|
|
7939
7938
|
default: u(() => [
|
|
7940
7939
|
(y(!0), M(be, null, we(a.tagLayers.filter((H) => H.overlays), (H) => (y(), B(w, {
|
|
7941
7940
|
key: H.key,
|
|
@@ -7956,14 +7955,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
7956
7955
|
]),
|
|
7957
7956
|
_: 1
|
|
7958
7957
|
}),
|
|
7959
|
-
|
|
7958
|
+
h(f, {
|
|
7960
7959
|
class: "menu-card mx-auto mb-3",
|
|
7961
7960
|
elevation: "0"
|
|
7962
7961
|
}, {
|
|
7963
7962
|
default: u(() => [
|
|
7964
|
-
|
|
7963
|
+
h(T, { class: "border-b-thin" }, {
|
|
7965
7964
|
default: u(() => [
|
|
7966
|
-
|
|
7965
|
+
h(v, {
|
|
7967
7966
|
class: "text-subtitle-1 font-weight-medium",
|
|
7968
7967
|
style: { "font-size": "16px !important" }
|
|
7969
7968
|
}, {
|
|
@@ -7975,12 +7974,12 @@ function Os(t, e, o, i, a, r) {
|
|
|
7975
7974
|
]),
|
|
7976
7975
|
_: 1
|
|
7977
7976
|
}),
|
|
7978
|
-
|
|
7977
|
+
h(p, { class: "py-2" }, {
|
|
7979
7978
|
default: u(() => [
|
|
7980
7979
|
(y(!0), M(be, null, we(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), M(be, {
|
|
7981
7980
|
key: H.key
|
|
7982
7981
|
}, [
|
|
7983
|
-
|
|
7982
|
+
h(D, {
|
|
7984
7983
|
modelValue: a.renderKey,
|
|
7985
7984
|
"onUpdate:modelValue": e[3] || (e[3] = (ee) => a.renderKey = ee),
|
|
7986
7985
|
label: t.$t(`weather.${H.locale}`),
|
|
@@ -7995,7 +7994,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
7995
7994
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
7996
7995
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), M("div", gs, [
|
|
7997
7996
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
7998
|
-
|
|
7997
|
+
h(k, {
|
|
7999
7998
|
modelValue: a.showWindParticle,
|
|
8000
7999
|
"onUpdate:modelValue": e[4] || (e[4] = (ee) => a.showWindParticle = ee),
|
|
8001
8000
|
label: "",
|
|
@@ -8009,7 +8008,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8009
8008
|
])) : E("", !0),
|
|
8010
8009
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), M("div", fs, [
|
|
8011
8010
|
l("span", null, b(t.$t("weather.particleAnimatiom")), 1),
|
|
8012
|
-
|
|
8011
|
+
h(k, {
|
|
8013
8012
|
modelValue: a.showCurrentParticle,
|
|
8014
8013
|
"onUpdate:modelValue": e[5] || (e[5] = (ee) => a.showCurrentParticle = ee),
|
|
8015
8014
|
label: "",
|
|
@@ -8033,7 +8032,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8033
8032
|
disabled: !a.autoActive
|
|
8034
8033
|
}, {
|
|
8035
8034
|
default: u(() => [
|
|
8036
|
-
|
|
8035
|
+
h(s, {
|
|
8037
8036
|
density: "compact",
|
|
8038
8037
|
height: "30",
|
|
8039
8038
|
value: "ice-cover",
|
|
@@ -8047,7 +8046,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8047
8046
|
]),
|
|
8048
8047
|
_: 1
|
|
8049
8048
|
}, 8, ["color", "disabled"]),
|
|
8050
|
-
|
|
8049
|
+
h(s, {
|
|
8051
8050
|
density: "compact",
|
|
8052
8051
|
height: "30",
|
|
8053
8052
|
class: "text-none px-2",
|
|
@@ -8071,14 +8070,14 @@ function Os(t, e, o, i, a, r) {
|
|
|
8071
8070
|
]),
|
|
8072
8071
|
_: 1
|
|
8073
8072
|
}),
|
|
8074
|
-
|
|
8073
|
+
h(f, {
|
|
8075
8074
|
class: "menu-card mx-auto mb-3",
|
|
8076
8075
|
elevation: "0"
|
|
8077
8076
|
}, {
|
|
8078
8077
|
default: u(() => [
|
|
8079
|
-
|
|
8078
|
+
h(T, { class: "border-b-thin" }, {
|
|
8080
8079
|
default: u(() => [
|
|
8081
|
-
|
|
8080
|
+
h(v, {
|
|
8082
8081
|
class: "text-subtitle-1 font-weight-medium",
|
|
8083
8082
|
style: { "font-size": "16px !important" }
|
|
8084
8083
|
}, {
|
|
@@ -8090,7 +8089,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8090
8089
|
]),
|
|
8091
8090
|
_: 1
|
|
8092
8091
|
}),
|
|
8093
|
-
|
|
8092
|
+
h(p, { class: "" }, {
|
|
8094
8093
|
default: u(() => {
|
|
8095
8094
|
var H, ee, je, Ce, he, fe, W, ze, $, re, Oe, O, ye, Te, Be, Ee, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt;
|
|
8096
8095
|
return [
|
|
@@ -8101,7 +8100,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8101
8100
|
l("div", vs, b((R = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : R.source) + " " + b((Ve = (Ge = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + b(t.$t("units.km")) + " " + b((qe = (Ye = (Pe = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : Pe.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : qe.days) + b(t.$t("units.days")), 1),
|
|
8102
8101
|
l("div", _s, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8103
8102
|
l("div", ks, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Je = (Qe = (Ke = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
|
|
8104
|
-
d
|
|
8103
|
+
h(d),
|
|
8105
8104
|
l("div", zs, b(t.$t("weather.wave")), 1),
|
|
8106
8105
|
l("div", Ls, b((ot = (tt = (et = ($e = a.models) == null ? void 0 : $e.marine) == null ? void 0 : et.wave) == null ? void 0 : tt.NOAA) == null ? void 0 : ot.source) + " " + b((lt = (rt = (it = (at = a.models) == null ? void 0 : at.marine) == null ? void 0 : it.wave) == null ? void 0 : rt.NOAA) == null ? void 0 : lt.spatialResolution) + b(t.$t("units.km")) + " " + b((dt = (mt = (ct = (nt = (st = a.models) == null ? void 0 : st.marine) == null ? void 0 : nt.wave) == null ? void 0 : ct.NOAA) == null ? void 0 : mt.meta) == null ? void 0 : dt.days) + b(t.$t("units.days")), 1),
|
|
8107
8106
|
l("div", Ps, b(t.$t("weather.source")) + ": NOAA", 1),
|
|
@@ -8109,7 +8108,7 @@ function Os(t, e, o, i, a, r) {
|
|
|
8109
8108
|
l("div", Ts, b((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : bt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.source) + " " + b((zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.ECMWF) == null ? void 0 : zt.spatialResolution) + b(t.$t("units.km")) + " " + b((St = (Tt = (Ct = (Pt = (Lt = a.models) == null ? void 0 : Lt.marine) == null ? void 0 : Pt.wave) == null ? void 0 : Ct.ECMWF) == null ? void 0 : Tt.meta) == null ? void 0 : St.days) + b(t.$t("units.days")), 1),
|
|
8110
8109
|
l("div", Ss, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8111
8110
|
l("div", Ms, b(t.$t("weather.lastUpdate")) + ": " + b(r.computeDateZ((Rt = (Dt = (At = (It = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : It.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Dt.meta) == null ? void 0 : Rt.initialisationTime)), 1),
|
|
8112
|
-
d
|
|
8111
|
+
h(d),
|
|
8113
8112
|
l("div", Is, b(t.$t("weather.currents")), 1),
|
|
8114
8113
|
l("div", As, b((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.source) + " " + b((Wt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.spatialResolution) + b(t.$t("units.km")) + " " + b((Yt = (Zt = (Vt = (Gt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Gt.current) == null ? void 0 : Vt.ECMWF) == null ? void 0 : Zt.meta) == null ? void 0 : Yt.days) + b(t.$t("units.days")), 1),
|
|
8115
8114
|
l("div", Ds, b(t.$t("weather.source")) + ": ECMWF", 1),
|
|
@@ -8543,18 +8542,18 @@ class Va {
|
|
|
8543
8542
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
8544
8543
|
for (const n of a) {
|
|
8545
8544
|
let c = eo.find((p) => {
|
|
8546
|
-
var
|
|
8547
|
-
return ((
|
|
8545
|
+
var d, f, k;
|
|
8546
|
+
return ((d = p.models) == null ? void 0 : d.includes(n)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === n || ((k = p.name) == null ? void 0 : k.toLowerCase()) === n;
|
|
8548
8547
|
}), g = to.find((p) => {
|
|
8549
|
-
var
|
|
8550
|
-
return ((
|
|
8548
|
+
var d, f, k;
|
|
8549
|
+
return ((d = p.models) == null ? void 0 : d.includes(n)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === n || ((k = p.name) == null ? void 0 : k.toLowerCase()) === n;
|
|
8551
8550
|
});
|
|
8552
8551
|
c = c || eo.find((p) => {
|
|
8553
|
-
var
|
|
8554
|
-
return ((
|
|
8552
|
+
var d, f;
|
|
8553
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = g == null ? void 0 : g.alias) == null ? void 0 : f.toLowerCase());
|
|
8555
8554
|
}), g = g || to.find((p) => {
|
|
8556
|
-
var
|
|
8557
|
-
return ((
|
|
8555
|
+
var d, f;
|
|
8556
|
+
return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = c == null ? void 0 : c.alias) == null ? void 0 : f.toLowerCase());
|
|
8558
8557
|
}), c = c || eo[0], g = g || to[0], r.push((o = c.models) != null && o.includes(n) ? n : c.model), s.push((i = g.models) != null && i.includes(n) ? n : g.model);
|
|
8559
8558
|
}
|
|
8560
8559
|
return {
|
|
@@ -8572,7 +8571,7 @@ class Va {
|
|
|
8572
8571
|
}), a;
|
|
8573
8572
|
}
|
|
8574
8573
|
static pickHourly(e, o) {
|
|
8575
|
-
var i, a, r, s, n, c, g, p,
|
|
8574
|
+
var i, a, r, s, n, c, g, p, d, f, k, v, T, w, D, S, P, z, L, C, _, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De, Re, ve, H, ee, je, Ce;
|
|
8576
8575
|
const he = typeof o == "string" ? I(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, ze = I((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), $ = ze.clone().add((n = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : n.at(0), "h"), re = ze.clone().add((p = (g = (c = fe == null ? void 0 : fe[0]) == null ? void 0 : c.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
8577
8576
|
if (he.isBetween($, re, "millisecond", "[]")) {
|
|
8578
8577
|
const O = he.utc().diff($, "h", !1);
|
|
@@ -8582,7 +8581,7 @@ class Va {
|
|
|
8582
8581
|
for (const R of fe) {
|
|
8583
8582
|
const G = R == null ? void 0 : R.hourly;
|
|
8584
8583
|
for (let Pe = O - (O - 1) % 3; Pe <= O; Pe++)
|
|
8585
|
-
Be += (
|
|
8584
|
+
Be += (d = G == null ? void 0 : G.precipitation) == null ? void 0 : d.at(Pe);
|
|
8586
8585
|
for (let Pe = O - (O - 1) % 6; Pe <= O; Pe++)
|
|
8587
8586
|
Ee += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(Pe);
|
|
8588
8587
|
ye = {
|
|
@@ -8659,7 +8658,7 @@ class Va {
|
|
|
8659
8658
|
return Oe;
|
|
8660
8659
|
}
|
|
8661
8660
|
static toLegacy(e) {
|
|
8662
|
-
var o, i, a, r, s, n, c, g, p,
|
|
8661
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
8663
8662
|
return {
|
|
8664
8663
|
wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
|
|
8665
8664
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -8671,7 +8670,7 @@ class Va {
|
|
|
8671
8670
|
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
8672
8671
|
code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
|
|
8673
8672
|
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
8674
|
-
url: (
|
|
8673
|
+
url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
|
|
8675
8674
|
wave: e == null ? void 0 : e.wave,
|
|
8676
8675
|
current: e == null ? void 0 : e.current,
|
|
8677
8676
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -8681,7 +8680,7 @@ class Va {
|
|
|
8681
8680
|
};
|
|
8682
8681
|
}
|
|
8683
8682
|
static pickDaily(e, o) {
|
|
8684
|
-
var i, a, r, s, n, c, g, p,
|
|
8683
|
+
var i, a, r, s, n, c, g, p, d, f, k, v, T, w, D, S, P, z, L, C, _, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De;
|
|
8685
8684
|
const Re = typeof o == "string" ? I(o) : o, ve = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, ee = I((r = (a = (i = ve == null ? void 0 : ve[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = I((c = (n = (s = ve == null ? void 0 : ve[0]) == null ? void 0 : s.daily) == null ? void 0 : n.time) == null ? void 0 : c.at(-1)), Ce = [];
|
|
8686
8685
|
if (Re.isBetween(ee, je, "millisecond", "[]")) {
|
|
8687
8686
|
let he, fe;
|
|
@@ -8693,7 +8692,7 @@ class Va {
|
|
|
8693
8692
|
code: (g = $.weather_code) == null ? void 0 : g.at(W),
|
|
8694
8693
|
temp: {
|
|
8695
8694
|
max: (p = $.temperature_2m_max) == null ? void 0 : p.at(W),
|
|
8696
|
-
min: (
|
|
8695
|
+
min: (d = $.temperature_2m_min) == null ? void 0 : d.at(W),
|
|
8697
8696
|
mean: (f = $.temperature_2m_mean) == null ? void 0 : f.at(W)
|
|
8698
8697
|
},
|
|
8699
8698
|
apparentTemp: {
|
|
@@ -9322,9 +9321,9 @@ const Es = {
|
|
|
9322
9321
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
9323
9322
|
}).then((p) => {
|
|
9324
9323
|
var k, v, T;
|
|
9325
|
-
const
|
|
9326
|
-
((T = (v = p == null ? void 0 : p.config) == null ? void 0 : v.headers) == null ? void 0 : T.key) &&
|
|
9327
|
-
data:
|
|
9324
|
+
const d = Ua.convert2Geojson(((k = p == null ? void 0 : p.data) == null ? void 0 : k.data) || (p == null ? void 0 : p.data));
|
|
9325
|
+
((T = (v = p == null ? void 0 : p.config) == null ? void 0 : v.headers) == null ? void 0 : T.key) && d && (this.tropicals = {
|
|
9326
|
+
data: d,
|
|
9328
9327
|
active: !0,
|
|
9329
9328
|
cached: !0,
|
|
9330
9329
|
type: "json",
|
|
@@ -9370,9 +9369,9 @@ const Es = {
|
|
|
9370
9369
|
}, 500);
|
|
9371
9370
|
else {
|
|
9372
9371
|
if (this.tropicals) {
|
|
9373
|
-
const
|
|
9372
|
+
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
9374
9373
|
let f = 0, k = 0;
|
|
9375
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), k = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9374
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), k = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropicals] update elapsed: ", k, ", total: ", f += k)) : (this.map.addSource(this.source, {
|
|
9376
9375
|
type: "geojson",
|
|
9377
9376
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
9378
9377
|
}), this.map.addLayer({
|
|
@@ -9469,7 +9468,7 @@ const Es = {
|
|
|
9469
9468
|
],
|
|
9470
9469
|
"text-halo-width": 4
|
|
9471
9470
|
}
|
|
9472
|
-
}), k = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9471
|
+
}), k = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", k, ", total: ", f += k)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), k = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] update elapsed: ", k, ", total: ", f += k)) : (this.map.addSource(this.clusterSource, {
|
|
9473
9472
|
type: "geojson",
|
|
9474
9473
|
data: (c = this.tropicals) != null && c.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
|
|
9475
9474
|
// cluster: true,
|
|
@@ -9585,7 +9584,7 @@ const Es = {
|
|
|
9585
9584
|
"text-halo-color": "#ffffff",
|
|
9586
9585
|
"text-halo-width": 1
|
|
9587
9586
|
}
|
|
9588
|
-
}), k = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9587
|
+
}), k = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", k, ", total: ", f += k));
|
|
9589
9588
|
}
|
|
9590
9589
|
this.handleDrawCircle();
|
|
9591
9590
|
const p = Ua.interpolate(this.tropicals, 1);
|
|
@@ -9610,7 +9609,7 @@ const Es = {
|
|
|
9610
9609
|
), this.showTropicalsInfo = !1;
|
|
9611
9610
|
},
|
|
9612
9611
|
handleDateChange() {
|
|
9613
|
-
var t, e, o, i, a, r, s, n, c, g, p,
|
|
9612
|
+
var t, e, o, i, a, r, s, n, c, g, p, d, f, k, v, T, w, D, S, P, z, L, C, _, A, Z, q, X, Y, te, oe, J;
|
|
9614
9613
|
if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9615
9614
|
const le = I(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = this.interpolateData.filter((Q) => Q.properties.date === (le == null ? void 0 : le.format()) && !Q.properties.disabled), ue = this.handleComputePolygons(pe), ce = N.featureCollection([...pe]);
|
|
9616
9615
|
ue.forEach((Q) => {
|
|
@@ -9632,7 +9631,7 @@ const Es = {
|
|
|
9632
9631
|
for (const Q of pe)
|
|
9633
9632
|
if (!Q.properties.disabled) {
|
|
9634
9633
|
let ie = "#f44336";
|
|
9635
|
-
((n = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = Q.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((
|
|
9634
|
+
((n = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = Q.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = Q.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((k = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : k.kts) < 47 ? ie = "#f2f202" : ((T = (v = Q.properties) == null ? void 0 : v.wind) == null ? void 0 : T.kts) >= 47 && ((D = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : D.kts) < 63 ? ie = "#ff9100" : ((P = (S = Q.properties) == null ? void 0 : S.wind) == null ? void 0 : P.kts) >= 63 && ((L = (z = Q.properties) == null ? void 0 : z.wind) == null ? void 0 : L.kts) < 79 ? ie = "#f44336" : ((_ = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((Z = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : Z.kts) < 94 ? ie = "#f903d0" : ((X = (q = Q.properties) == null ? void 0 : q.wind) == null ? void 0 : X.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
|
|
9636
9635
|
const ge = `<svg t="1719918955501"
|
|
9637
9636
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9638
9637
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9656,7 +9655,7 @@ const Es = {
|
|
|
9656
9655
|
(oe = this.map) != null && oe.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
|
|
9657
9656
|
},
|
|
9658
9657
|
handleClick(t) {
|
|
9659
|
-
var r, s, n, c, g, p,
|
|
9658
|
+
var r, s, n, c, g, p, d, f;
|
|
9660
9659
|
const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
9661
9660
|
(k) => {
|
|
9662
9661
|
var v;
|
|
@@ -9672,7 +9671,7 @@ const Es = {
|
|
|
9672
9671
|
name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
|
|
9673
9672
|
forecasts: o.map((k) => k.properties),
|
|
9674
9673
|
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
9675
|
-
showCircle: (f = (
|
|
9674
|
+
showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
9676
9675
|
}, this.showTropicalsInfo = !0;
|
|
9677
9676
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
9678
9677
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new xe.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -9774,18 +9773,18 @@ const Es = {
|
|
|
9774
9773
|
style: { height: "80px" }
|
|
9775
9774
|
}, en = { class: "pa-1 d-flex justify-space-between align-center" }, tn = { class: "pa-1 d-flex justify-space-between align-center" };
|
|
9776
9775
|
function on(t, e, o, i, a, r) {
|
|
9777
|
-
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardText"), g = x("VDivider"), p = x("VCardActions"),
|
|
9776
|
+
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), d = x("VCard");
|
|
9778
9777
|
return y(), M("div", js, [
|
|
9779
9778
|
l("div", {
|
|
9780
9779
|
class: "menu-bar-box transition pa-1",
|
|
9781
9780
|
style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
|
|
9782
9781
|
}, [
|
|
9783
|
-
|
|
9782
|
+
h(n, {
|
|
9784
9783
|
text: t.$t("tropical.tropicals"),
|
|
9785
9784
|
location: "left"
|
|
9786
9785
|
}, {
|
|
9787
9786
|
activator: u(({ props: f }) => [
|
|
9788
|
-
|
|
9787
|
+
h(s, j(f, {
|
|
9789
9788
|
"min-width": "32",
|
|
9790
9789
|
width: "32",
|
|
9791
9790
|
height: "32",
|
|
@@ -9803,12 +9802,12 @@ function on(t, e, o, i, a, r) {
|
|
|
9803
9802
|
}, 8, ["text"])
|
|
9804
9803
|
], 4),
|
|
9805
9804
|
He(l("div", Ns, [
|
|
9806
|
-
d
|
|
9805
|
+
h(d, {
|
|
9807
9806
|
width: "400",
|
|
9808
9807
|
elevation: "16"
|
|
9809
9808
|
}, {
|
|
9810
9809
|
default: u(() => [
|
|
9811
|
-
|
|
9810
|
+
h(c, null, {
|
|
9812
9811
|
default: u(() => {
|
|
9813
9812
|
var f, k, v, T, w, D, S, P, z, L;
|
|
9814
9813
|
return [
|
|
@@ -9816,7 +9815,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9816
9815
|
l("span", Hs, b((f = a.activeTropicals) == null ? void 0 : f.name), 1),
|
|
9817
9816
|
(v = (k = a.activeTropicals) == null ? void 0 : k.history) != null && v.level ? (y(), M("span", Ws, ", " + b((w = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : w.level), 1)) : E("", !0)
|
|
9818
9817
|
]),
|
|
9819
|
-
|
|
9818
|
+
h(s, {
|
|
9820
9819
|
icon: "",
|
|
9821
9820
|
density: "compact",
|
|
9822
9821
|
variant: "plain",
|
|
@@ -9837,8 +9836,8 @@ function on(t, e, o, i, a, r) {
|
|
|
9837
9836
|
}),
|
|
9838
9837
|
_: 1
|
|
9839
9838
|
}),
|
|
9840
|
-
|
|
9841
|
-
|
|
9839
|
+
h(g),
|
|
9840
|
+
h(c, { class: "text-body-1" }, {
|
|
9842
9841
|
default: u(() => {
|
|
9843
9842
|
var f, k, v, T, w, D, S, P, z;
|
|
9844
9843
|
return [
|
|
@@ -9888,10 +9887,10 @@ function on(t, e, o, i, a, r) {
|
|
|
9888
9887
|
}),
|
|
9889
9888
|
_: 1
|
|
9890
9889
|
}),
|
|
9891
|
-
|
|
9892
|
-
|
|
9890
|
+
h(g),
|
|
9891
|
+
h(p, { class: "d-flex justify-space-between" }, {
|
|
9893
9892
|
default: u(() => [
|
|
9894
|
-
|
|
9893
|
+
h(s, {
|
|
9895
9894
|
density: "compact",
|
|
9896
9895
|
"prepend-icon": "",
|
|
9897
9896
|
variant: "text",
|
|
@@ -9922,7 +9921,7 @@ function on(t, e, o, i, a, r) {
|
|
|
9922
9921
|
_: 1,
|
|
9923
9922
|
__: [14]
|
|
9924
9923
|
})) : E("", !0),
|
|
9925
|
-
|
|
9924
|
+
h(s, {
|
|
9926
9925
|
variant: "text",
|
|
9927
9926
|
density: "compact",
|
|
9928
9927
|
"append-icon": "mdi-chevron-right",
|
|
@@ -9943,12 +9942,12 @@ function on(t, e, o, i, a, r) {
|
|
|
9943
9942
|
_: 1
|
|
9944
9943
|
}),
|
|
9945
9944
|
l("div", $s, [
|
|
9946
|
-
He(d
|
|
9945
|
+
He(h(d, {
|
|
9947
9946
|
width: "400",
|
|
9948
9947
|
elevation: "16"
|
|
9949
9948
|
}, {
|
|
9950
9949
|
default: u(() => [
|
|
9951
|
-
|
|
9950
|
+
h(c, null, {
|
|
9952
9951
|
default: u(() => [
|
|
9953
9952
|
He(l("div", en, e[16] || (e[16] = [
|
|
9954
9953
|
l("div", { class: "legend d-flex justify-start align-center" }, [
|
|
@@ -10165,9 +10164,9 @@ const an = {
|
|
|
10165
10164
|
style: { height: "56px" }
|
|
10166
10165
|
};
|
|
10167
10166
|
function cn(t, e, o, i, a, r) {
|
|
10168
|
-
const s = x("VBtn"), n = x("VDatePicker"), c = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"),
|
|
10167
|
+
const s = x("VBtn"), n = x("VDatePicker"), c = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), d = x("VList"), f = x("VCardText"), k = x("VCardActions"), v = x("VCard");
|
|
10169
10168
|
return y(), M("div", rn, [
|
|
10170
|
-
|
|
10169
|
+
h(s, {
|
|
10171
10170
|
text: "",
|
|
10172
10171
|
height: "30",
|
|
10173
10172
|
class: "elevation-0 text-body-1 px-2 btn-border-1",
|
|
@@ -10183,10 +10182,10 @@ function cn(t, e, o, i, a, r) {
|
|
|
10183
10182
|
class: "card-box d-flex flex-column"
|
|
10184
10183
|
}, {
|
|
10185
10184
|
default: u(() => [
|
|
10186
|
-
|
|
10185
|
+
h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
10187
10186
|
default: u(() => [
|
|
10188
10187
|
l("div", ln, [
|
|
10189
|
-
|
|
10188
|
+
h(n, {
|
|
10190
10189
|
modelValue: a.currentDate,
|
|
10191
10190
|
"onUpdate:modelValue": e[0] || (e[0] = (T) => a.currentDate = T),
|
|
10192
10191
|
min: a.dateRange[0],
|
|
@@ -10200,13 +10199,13 @@ function cn(t, e, o, i, a, r) {
|
|
|
10200
10199
|
"onUpdate:month": r.handleUpdateMonth
|
|
10201
10200
|
}, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
|
|
10202
10201
|
]),
|
|
10203
|
-
|
|
10202
|
+
h(c, {
|
|
10204
10203
|
class: "h-100",
|
|
10205
10204
|
vertical: ""
|
|
10206
10205
|
}),
|
|
10207
10206
|
l("div", sn, [
|
|
10208
10207
|
l("div", nn, b(a.currentTime), 1),
|
|
10209
|
-
d
|
|
10208
|
+
h(d, { class: "pa-0 flex-1-1-0" }, {
|
|
10210
10209
|
default: u(() => [
|
|
10211
10210
|
(y(!0), M(be, null, we(r.hourOptions, (T, w) => (y(), B(p, {
|
|
10212
10211
|
key: w,
|
|
@@ -10218,7 +10217,7 @@ function cn(t, e, o, i, a, r) {
|
|
|
10218
10217
|
"min-height": "26"
|
|
10219
10218
|
}, {
|
|
10220
10219
|
default: u(() => [
|
|
10221
|
-
|
|
10220
|
+
h(g, {
|
|
10222
10221
|
class: "text-body-2 text-center",
|
|
10223
10222
|
onClick: (D) => a.currentTime = T
|
|
10224
10223
|
}, {
|
|
@@ -10237,13 +10236,13 @@ function cn(t, e, o, i, a, r) {
|
|
|
10237
10236
|
]),
|
|
10238
10237
|
_: 1
|
|
10239
10238
|
}),
|
|
10240
|
-
|
|
10241
|
-
|
|
10239
|
+
h(c),
|
|
10240
|
+
h(k, {
|
|
10242
10241
|
class: "justify-end pa-0 pr-4",
|
|
10243
10242
|
style: { height: "50px" }
|
|
10244
10243
|
}, {
|
|
10245
10244
|
default: u(() => [
|
|
10246
|
-
|
|
10245
|
+
h(s, {
|
|
10247
10246
|
size: "small",
|
|
10248
10247
|
variant: "tonal",
|
|
10249
10248
|
class: "text-none",
|
|
@@ -10255,7 +10254,7 @@ function cn(t, e, o, i, a, r) {
|
|
|
10255
10254
|
_: 1,
|
|
10256
10255
|
__: [1]
|
|
10257
10256
|
}, 8, ["onClick"]),
|
|
10258
|
-
|
|
10257
|
+
h(s, {
|
|
10259
10258
|
size: "small",
|
|
10260
10259
|
variant: "tonal",
|
|
10261
10260
|
color: "primary",
|
|
@@ -10521,10 +10520,10 @@ const mn = {
|
|
|
10521
10520
|
(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.loading = !1;
|
|
10522
10521
|
},
|
|
10523
10522
|
initTableData(t) {
|
|
10524
|
-
var o, i, a, r, s, n, c, g, p,
|
|
10523
|
+
var o, i, a, r, s, n, c, g, p, d, f, k, v, T, w, D, S, P, z, L, C, _, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke;
|
|
10525
10524
|
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;
|
|
10526
10525
|
const e = ((s = ao.pickHourly(t, I(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
10527
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((
|
|
10526
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = (w = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : w.direction, this.currentHourData.windLevel = this.roundPrecision((S = (D = e == null ? void 0 : e.weather) == null ? void 0 : D.wind) == null ? void 0 : S.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((q = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.sig) == null ? void 0 : q.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (te = e == null ? void 0 : e.wave) == null ? void 0 : te.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((ue = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (Q = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : Q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ge = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ge.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ke = e == null ? void 0 : e.weather) == null ? void 0 : ke.url;
|
|
10528
10527
|
},
|
|
10529
10528
|
handleBind() {
|
|
10530
10529
|
var t, e;
|
|
@@ -10561,7 +10560,10 @@ const mn = {
|
|
|
10561
10560
|
(o = this.meteoMarker) == null || o.setLngLat(t);
|
|
10562
10561
|
else {
|
|
10563
10562
|
const a = document.createElement("div");
|
|
10564
|
-
a.innerHTML =
|
|
10563
|
+
a.innerHTML = `
|
|
10564
|
+
<svg class="multi-color-icon" style="height: 26px;width: 26px;" aria-hidden="true">
|
|
10565
|
+
<use :xlink:href="#icon-spot-${this.theme}"></use>
|
|
10566
|
+
</svg>`, this.meteoMarker = new xe.Marker(a).setLngLat(t).setOffset([0, -13]).addTo(this.map);
|
|
10565
10567
|
}
|
|
10566
10568
|
if (this.meteoInfoMarker)
|
|
10567
10569
|
(i = this.meteoInfoMarker) == null || i.setLngLat(t);
|
|
@@ -10596,18 +10598,18 @@ const mn = {
|
|
|
10596
10598
|
"aria-hidden": "true"
|
|
10597
10599
|
}, kn = ["xlink:href"], zn = { class: "d-flex justify-start align-center" }, Ln = { class: "mx-2" };
|
|
10598
10600
|
function Pn(t, e, o, i, a, r) {
|
|
10599
|
-
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"),
|
|
10601
|
+
const s = x("VBtn"), n = x("VTooltip"), c = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), d = x("VCol"), f = x("VRow"), k = x("DateTimePicker"), v = x("VBtnToggle"), T = x("VCardActions"), w = x("VForm"), D = x("VCardText"), S = x("VCard"), P = x("VIcon");
|
|
10600
10602
|
return y(), M("div", dn, [
|
|
10601
10603
|
l("div", {
|
|
10602
10604
|
class: "menu-bar-box transition pa-1",
|
|
10603
10605
|
style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
|
|
10604
10606
|
}, [
|
|
10605
|
-
|
|
10607
|
+
h(n, {
|
|
10606
10608
|
text: t.$t("spot.spotsMeteo"),
|
|
10607
10609
|
location: "left"
|
|
10608
10610
|
}, {
|
|
10609
10611
|
activator: u(({ props: z }) => [
|
|
10610
|
-
|
|
10612
|
+
h(s, j(z, {
|
|
10611
10613
|
"min-width": "32",
|
|
10612
10614
|
width: "32",
|
|
10613
10615
|
height: "32",
|
|
@@ -10630,12 +10632,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10630
10632
|
style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
10631
10633
|
}, {
|
|
10632
10634
|
default: u(() => [
|
|
10633
|
-
|
|
10635
|
+
h(c, { class: "d-flex justify-space-between align-center" }, {
|
|
10634
10636
|
default: u(() => [
|
|
10635
10637
|
e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
|
|
10636
10638
|
l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
|
|
10637
10639
|
], -1)),
|
|
10638
|
-
|
|
10640
|
+
h(s, {
|
|
10639
10641
|
icon: "",
|
|
10640
10642
|
density: "compact",
|
|
10641
10643
|
variant: "plain",
|
|
@@ -10652,10 +10654,10 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10652
10654
|
_: 1,
|
|
10653
10655
|
__: [10]
|
|
10654
10656
|
}),
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
+
h(g),
|
|
10658
|
+
h(D, { class: "text-body-1 py-1" }, {
|
|
10657
10659
|
default: u(() => [
|
|
10658
|
-
|
|
10660
|
+
h(w, {
|
|
10659
10661
|
ref: "spotForm",
|
|
10660
10662
|
autocomplete: "off",
|
|
10661
10663
|
class: "form-box",
|
|
@@ -10670,14 +10672,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10670
10672
|
])),
|
|
10671
10673
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
10672
10674
|
]),
|
|
10673
|
-
|
|
10675
|
+
h(f, { class: "ma-0" }, {
|
|
10674
10676
|
default: u(() => [
|
|
10675
|
-
d
|
|
10677
|
+
h(d, {
|
|
10676
10678
|
cols: "4",
|
|
10677
10679
|
class: "pa-0 d-flex"
|
|
10678
10680
|
}, {
|
|
10679
10681
|
default: u(() => [
|
|
10680
|
-
|
|
10682
|
+
h(p, {
|
|
10681
10683
|
modelValue: a.form.lngDegree,
|
|
10682
10684
|
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.form.lngDegree = z),
|
|
10683
10685
|
rules: a.formRules.lngDegree,
|
|
@@ -10691,12 +10693,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10691
10693
|
_: 1,
|
|
10692
10694
|
__: [12]
|
|
10693
10695
|
}),
|
|
10694
|
-
d
|
|
10696
|
+
h(d, {
|
|
10695
10697
|
cols: "6",
|
|
10696
10698
|
class: "pa-0 d-flex"
|
|
10697
10699
|
}, {
|
|
10698
10700
|
default: u(() => [
|
|
10699
|
-
|
|
10701
|
+
h(p, {
|
|
10700
10702
|
modelValue: a.form.lngMinute,
|
|
10701
10703
|
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.form.lngMinute = z),
|
|
10702
10704
|
rules: a.formRules.lngMinute,
|
|
@@ -10711,12 +10713,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10711
10713
|
_: 1,
|
|
10712
10714
|
__: [13]
|
|
10713
10715
|
}),
|
|
10714
|
-
d
|
|
10716
|
+
h(d, {
|
|
10715
10717
|
cols: "2",
|
|
10716
10718
|
class: "pa-0"
|
|
10717
10719
|
}, {
|
|
10718
10720
|
default: u(() => [
|
|
10719
|
-
|
|
10721
|
+
h(s, {
|
|
10720
10722
|
variant: "outlined",
|
|
10721
10723
|
density: "compact",
|
|
10722
10724
|
width: "32",
|
|
@@ -10745,14 +10747,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10745
10747
|
])),
|
|
10746
10748
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
10747
10749
|
]),
|
|
10748
|
-
|
|
10750
|
+
h(f, { class: "ma-0" }, {
|
|
10749
10751
|
default: u(() => [
|
|
10750
|
-
d
|
|
10752
|
+
h(d, {
|
|
10751
10753
|
cols: "4",
|
|
10752
10754
|
class: "pa-0 d-flex"
|
|
10753
10755
|
}, {
|
|
10754
10756
|
default: u(() => [
|
|
10755
|
-
|
|
10757
|
+
h(p, {
|
|
10756
10758
|
modelValue: a.form.latDegree,
|
|
10757
10759
|
"onUpdate:modelValue": e[3] || (e[3] = (z) => a.form.latDegree = z),
|
|
10758
10760
|
rules: a.formRules.latDegree,
|
|
@@ -10769,12 +10771,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10769
10771
|
_: 1,
|
|
10770
10772
|
__: [15]
|
|
10771
10773
|
}),
|
|
10772
|
-
d
|
|
10774
|
+
h(d, {
|
|
10773
10775
|
cols: "6",
|
|
10774
10776
|
class: "pa-0 d-flex"
|
|
10775
10777
|
}, {
|
|
10776
10778
|
default: u(() => [
|
|
10777
|
-
|
|
10779
|
+
h(p, {
|
|
10778
10780
|
modelValue: a.form.latMinute,
|
|
10779
10781
|
"onUpdate:modelValue": e[4] || (e[4] = (z) => a.form.latMinute = z),
|
|
10780
10782
|
rules: a.formRules.latMinute,
|
|
@@ -10789,12 +10791,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10789
10791
|
_: 1,
|
|
10790
10792
|
__: [16]
|
|
10791
10793
|
}),
|
|
10792
|
-
d
|
|
10794
|
+
h(d, {
|
|
10793
10795
|
cols: "2",
|
|
10794
10796
|
class: "pa-0"
|
|
10795
10797
|
}, {
|
|
10796
10798
|
default: u(() => [
|
|
10797
|
-
|
|
10799
|
+
h(s, {
|
|
10798
10800
|
variant: "outlined",
|
|
10799
10801
|
density: "compact",
|
|
10800
10802
|
width: "32",
|
|
@@ -10823,14 +10825,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10823
10825
|
])),
|
|
10824
10826
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
10825
10827
|
]),
|
|
10826
|
-
|
|
10828
|
+
h(f, { class: "ma-0 mb-4" }, {
|
|
10827
10829
|
default: u(() => [
|
|
10828
|
-
d
|
|
10830
|
+
h(d, {
|
|
10829
10831
|
cols: "12",
|
|
10830
10832
|
class: "pa-0"
|
|
10831
10833
|
}, {
|
|
10832
10834
|
default: u(() => [
|
|
10833
|
-
|
|
10835
|
+
h(k, j({
|
|
10834
10836
|
"date-time": a.form.dateTime,
|
|
10835
10837
|
"time-zone": o.timeZone
|
|
10836
10838
|
}, t.$attrs, {
|
|
@@ -10850,14 +10852,14 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10850
10852
|
])),
|
|
10851
10853
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
10852
10854
|
]),
|
|
10853
|
-
|
|
10855
|
+
h(f, { class: "ma-0 mb-2" }, {
|
|
10854
10856
|
default: u(() => [
|
|
10855
|
-
d
|
|
10857
|
+
h(d, {
|
|
10856
10858
|
cols: "12",
|
|
10857
10859
|
class: "pa-0"
|
|
10858
10860
|
}, {
|
|
10859
10861
|
default: u(() => [
|
|
10860
|
-
|
|
10862
|
+
h(v, {
|
|
10861
10863
|
modelValue: a.form.forecastModel,
|
|
10862
10864
|
"onUpdate:modelValue": e[7] || (e[7] = (z) => a.form.forecastModel = z),
|
|
10863
10865
|
class: "w-100",
|
|
@@ -10867,7 +10869,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10867
10869
|
group: ""
|
|
10868
10870
|
}, {
|
|
10869
10871
|
default: u(() => [
|
|
10870
|
-
|
|
10872
|
+
h(s, {
|
|
10871
10873
|
density: "compact",
|
|
10872
10874
|
height: "30",
|
|
10873
10875
|
value: "GFS",
|
|
@@ -10881,7 +10883,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10881
10883
|
_: 1,
|
|
10882
10884
|
__: [19]
|
|
10883
10885
|
}, 8, ["class", "color"]),
|
|
10884
|
-
|
|
10886
|
+
h(s, {
|
|
10885
10887
|
density: "compact",
|
|
10886
10888
|
height: "30",
|
|
10887
10889
|
class: Ue(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1"]),
|
|
@@ -10904,10 +10906,10 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10904
10906
|
]),
|
|
10905
10907
|
_: 1
|
|
10906
10908
|
}),
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
+
h(g),
|
|
10910
|
+
h(T, { class: "d-flex justify-end align-center ga-4" }, {
|
|
10909
10911
|
default: u(() => [
|
|
10910
|
-
|
|
10912
|
+
h(s, {
|
|
10911
10913
|
size: "small",
|
|
10912
10914
|
variant: "outlined",
|
|
10913
10915
|
class: "text-none text-body-1",
|
|
@@ -10919,7 +10921,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10919
10921
|
_: 1,
|
|
10920
10922
|
__: [21]
|
|
10921
10923
|
}, 8, ["onClick"]),
|
|
10922
|
-
|
|
10924
|
+
h(s, {
|
|
10923
10925
|
ref: "submitSpot",
|
|
10924
10926
|
loading: a.loading,
|
|
10925
10927
|
size: "small",
|
|
@@ -10946,13 +10948,13 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10946
10948
|
]),
|
|
10947
10949
|
_: 1
|
|
10948
10950
|
}, 8, ["style"])) : E("", !0),
|
|
10949
|
-
He(
|
|
10951
|
+
He(h(S, {
|
|
10950
10952
|
id: "idm-gl4-spot-meteo",
|
|
10951
10953
|
class: "spot-meteo",
|
|
10952
10954
|
style: { width: "490px", "z-index": "9" }
|
|
10953
10955
|
}, {
|
|
10954
10956
|
default: u(() => [
|
|
10955
|
-
|
|
10957
|
+
h(c, { class: "d-flex justify-space-between align-center" }, {
|
|
10956
10958
|
default: u(() => {
|
|
10957
10959
|
var z, L, C, _;
|
|
10958
10960
|
return [
|
|
@@ -10960,7 +10962,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10960
10962
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
10961
10963
|
l("div", Ln, b(r.computeLat(((z = a.form) == null ? void 0 : z.lat) || ((L = a.currentHourData) == null ? void 0 : L.lat))) + "," + b(r.computeLng(((C = a.form) == null ? void 0 : C.lng) || ((_ = a.currentHourData) == null ? void 0 : _.lng))), 1)
|
|
10962
10964
|
]),
|
|
10963
|
-
|
|
10965
|
+
h(s, {
|
|
10964
10966
|
class: "mr-n2",
|
|
10965
10967
|
density: "comfortable",
|
|
10966
10968
|
icon: "",
|
|
@@ -10980,12 +10982,12 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10980
10982
|
}),
|
|
10981
10983
|
_: 1
|
|
10982
10984
|
}),
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
+
h(g),
|
|
10986
|
+
h(D, { class: "text-body-1 ml-n8" }, {
|
|
10985
10987
|
default: u(() => [
|
|
10986
|
-
|
|
10988
|
+
h(f, null, {
|
|
10987
10989
|
default: u(() => [
|
|
10988
|
-
d
|
|
10990
|
+
h(d, {
|
|
10989
10991
|
cols: "3",
|
|
10990
10992
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
10991
10993
|
}, {
|
|
@@ -10995,7 +10997,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
10995
10997
|
_: 1,
|
|
10996
10998
|
__: [25]
|
|
10997
10999
|
}),
|
|
10998
|
-
d
|
|
11000
|
+
h(d, {
|
|
10999
11001
|
cols: "9",
|
|
11000
11002
|
class: "pa-2 px-0"
|
|
11001
11003
|
}, {
|
|
@@ -11010,9 +11012,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11010
11012
|
]),
|
|
11011
11013
|
_: 1
|
|
11012
11014
|
}),
|
|
11013
|
-
|
|
11015
|
+
h(f, null, {
|
|
11014
11016
|
default: u(() => [
|
|
11015
|
-
d
|
|
11017
|
+
h(d, {
|
|
11016
11018
|
cols: "3",
|
|
11017
11019
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11018
11020
|
}, {
|
|
@@ -11022,7 +11024,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11022
11024
|
_: 1,
|
|
11023
11025
|
__: [26]
|
|
11024
11026
|
}),
|
|
11025
|
-
d
|
|
11027
|
+
h(d, {
|
|
11026
11028
|
cols: "9",
|
|
11027
11029
|
class: "pa-2 px-0"
|
|
11028
11030
|
}, {
|
|
@@ -11037,9 +11039,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11037
11039
|
]),
|
|
11038
11040
|
_: 1
|
|
11039
11041
|
}),
|
|
11040
|
-
|
|
11042
|
+
h(f, null, {
|
|
11041
11043
|
default: u(() => [
|
|
11042
|
-
d
|
|
11044
|
+
h(d, {
|
|
11043
11045
|
cols: "3",
|
|
11044
11046
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11045
11047
|
}, {
|
|
@@ -11049,7 +11051,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11049
11051
|
_: 1,
|
|
11050
11052
|
__: [27]
|
|
11051
11053
|
}),
|
|
11052
|
-
d
|
|
11054
|
+
h(d, {
|
|
11053
11055
|
cols: "4",
|
|
11054
11056
|
class: "pa-2 px-0 text-left"
|
|
11055
11057
|
}, {
|
|
@@ -11058,7 +11060,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11058
11060
|
]),
|
|
11059
11061
|
_: 1
|
|
11060
11062
|
}),
|
|
11061
|
-
d
|
|
11063
|
+
h(d, {
|
|
11062
11064
|
cols: "2",
|
|
11063
11065
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11064
11066
|
}, {
|
|
@@ -11068,7 +11070,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11068
11070
|
_: 1,
|
|
11069
11071
|
__: [28]
|
|
11070
11072
|
}),
|
|
11071
|
-
d
|
|
11073
|
+
h(d, {
|
|
11072
11074
|
cols: "3",
|
|
11073
11075
|
class: "pa-2 px-0 text-left"
|
|
11074
11076
|
}, {
|
|
@@ -11080,9 +11082,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11080
11082
|
]),
|
|
11081
11083
|
_: 1
|
|
11082
11084
|
}),
|
|
11083
|
-
|
|
11085
|
+
h(f, null, {
|
|
11084
11086
|
default: u(() => [
|
|
11085
|
-
d
|
|
11087
|
+
h(d, {
|
|
11086
11088
|
cols: "3",
|
|
11087
11089
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11088
11090
|
}, {
|
|
@@ -11092,7 +11094,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11092
11094
|
_: 1,
|
|
11093
11095
|
__: [29]
|
|
11094
11096
|
}),
|
|
11095
|
-
d
|
|
11097
|
+
h(d, {
|
|
11096
11098
|
cols: "4",
|
|
11097
11099
|
class: "pa-2 px-0 text-left"
|
|
11098
11100
|
}, {
|
|
@@ -11101,7 +11103,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11101
11103
|
]),
|
|
11102
11104
|
_: 1
|
|
11103
11105
|
}),
|
|
11104
|
-
d
|
|
11106
|
+
h(d, {
|
|
11105
11107
|
cols: "2",
|
|
11106
11108
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11107
11109
|
}, {
|
|
@@ -11111,7 +11113,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11111
11113
|
_: 1,
|
|
11112
11114
|
__: [30]
|
|
11113
11115
|
}),
|
|
11114
|
-
d
|
|
11116
|
+
h(d, {
|
|
11115
11117
|
cols: "3",
|
|
11116
11118
|
class: "pa-2 px-0 text-left"
|
|
11117
11119
|
}, {
|
|
@@ -11123,9 +11125,9 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11123
11125
|
]),
|
|
11124
11126
|
_: 1
|
|
11125
11127
|
}),
|
|
11126
|
-
|
|
11128
|
+
h(f, null, {
|
|
11127
11129
|
default: u(() => [
|
|
11128
|
-
d
|
|
11130
|
+
h(d, {
|
|
11129
11131
|
cols: "3",
|
|
11130
11132
|
class: "pa-2 pl-0 text-right opacity-50"
|
|
11131
11133
|
}, {
|
|
@@ -11135,7 +11137,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11135
11137
|
_: 1,
|
|
11136
11138
|
__: [31]
|
|
11137
11139
|
}),
|
|
11138
|
-
d
|
|
11140
|
+
h(d, {
|
|
11139
11141
|
cols: "4",
|
|
11140
11142
|
class: "pa-2 px-0 text-left"
|
|
11141
11143
|
}, {
|
|
@@ -11144,7 +11146,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11144
11146
|
]),
|
|
11145
11147
|
_: 1
|
|
11146
11148
|
}),
|
|
11147
|
-
d
|
|
11149
|
+
h(d, {
|
|
11148
11150
|
cols: "2",
|
|
11149
11151
|
class: "pa-2 pl-0 ml-n4 text-right opacity-50"
|
|
11150
11152
|
}, {
|
|
@@ -11154,7 +11156,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11154
11156
|
_: 1,
|
|
11155
11157
|
__: [32]
|
|
11156
11158
|
}),
|
|
11157
|
-
d
|
|
11159
|
+
h(d, {
|
|
11158
11160
|
cols: "3",
|
|
11159
11161
|
class: "pa-2 px-0 text-left"
|
|
11160
11162
|
}, {
|
|
@@ -11169,10 +11171,10 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11169
11171
|
]),
|
|
11170
11172
|
_: 1
|
|
11171
11173
|
}),
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
+
h(g),
|
|
11175
|
+
h(T, { class: "d-flex justify-space-between align-center" }, {
|
|
11174
11176
|
default: u(() => [
|
|
11175
|
-
|
|
11177
|
+
h(s, {
|
|
11176
11178
|
vvariant: "text",
|
|
11177
11179
|
density: "compact",
|
|
11178
11180
|
"prepend-icon": "mdi-star",
|
|
@@ -11180,7 +11182,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11180
11182
|
onClick: r.handleFollow
|
|
11181
11183
|
}, {
|
|
11182
11184
|
prepend: u(() => [
|
|
11183
|
-
|
|
11185
|
+
h(P, { color: "warning" })
|
|
11184
11186
|
]),
|
|
11185
11187
|
default: u(() => [
|
|
11186
11188
|
e[33] || (e[33] = U(" Follow", -1))
|
|
@@ -11188,7 +11190,7 @@ function Pn(t, e, o, i, a, r) {
|
|
|
11188
11190
|
_: 1,
|
|
11189
11191
|
__: [33]
|
|
11190
11192
|
}, 8, ["onClick"]),
|
|
11191
|
-
|
|
11193
|
+
h(s, {
|
|
11192
11194
|
variant: "text",
|
|
11193
11195
|
density: "compact",
|
|
11194
11196
|
"append-icon": "mdi-chevron-right",
|
|
@@ -11302,7 +11304,7 @@ const Tn = {
|
|
|
11302
11304
|
}
|
|
11303
11305
|
},
|
|
11304
11306
|
handleDrag(t) {
|
|
11305
|
-
var o, i, a, r, s, n, c, g, p,
|
|
11307
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
11306
11308
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11307
11309
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11308
11310
|
const f = this.geojson.filter((w) => w.id === e.split("-")[0])[0];
|
|
@@ -11321,13 +11323,13 @@ const Tn = {
|
|
|
11321
11323
|
this.handleTmpPointUpdate(
|
|
11322
11324
|
f,
|
|
11323
11325
|
T[v - 1],
|
|
11324
|
-
{ lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (
|
|
11326
|
+
{ lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: T[v].properties },
|
|
11325
11327
|
v === T.length - 1 ? void 0 : T[v + 1]
|
|
11326
11328
|
);
|
|
11327
11329
|
}
|
|
11328
11330
|
},
|
|
11329
11331
|
handleDragEnd(t) {
|
|
11330
|
-
var o, i, a, r, s, n, c, g, p,
|
|
11332
|
+
var o, i, a, r, s, n, c, g, p, d;
|
|
11331
11333
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
11332
11334
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
11333
11335
|
const f = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
@@ -11336,7 +11338,7 @@ const Tn = {
|
|
|
11336
11338
|
return ((w = T._element) == null ? void 0 : w.id) === e;
|
|
11337
11339
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
|
|
11338
11340
|
const v = f.features.filter((T) => T.geometry.type === "Point" && T.properties.id === e.split("-")[1])[0];
|
|
11339
|
-
v.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (
|
|
11341
|
+
v.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((T) => T.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
11340
11342
|
}
|
|
11341
11343
|
},
|
|
11342
11344
|
handleContextmenu(t) {
|
|
@@ -11384,12 +11386,12 @@ const Tn = {
|
|
|
11384
11386
|
let o = 0;
|
|
11385
11387
|
const i = [];
|
|
11386
11388
|
for (let a = 1; a < e.length; a++) {
|
|
11387
|
-
const r = e[a - 1], s = e[a], n = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(c, g, n.mode === "RL", 4),
|
|
11389
|
+
const r = e[a - 1], s = e[a], n = r.properties, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(c, g, n.mode === "RL", 4), d = Fe.calculateBearing(c, g, n.mode === "RL", 2);
|
|
11388
11390
|
o = K.roundPrecision(o + p, 4);
|
|
11389
11391
|
let f;
|
|
11390
11392
|
n.mode === "RL" ? f = K.convertToMonotonicLng([c, g]) : f = K.convertToMonotonicLng(Fe.interpolateCoordinates(c, g, 200));
|
|
11391
11393
|
const k = N.lineString(f.map((T) => [T.lng, T.lat]));
|
|
11392
|
-
k.properties.dist = p, k.properties.bearing =
|
|
11394
|
+
k.properties.dist = p, k.properties.bearing = d, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
|
|
11393
11395
|
const v = e[a];
|
|
11394
11396
|
v.properties.totalDist = K.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), v.properties.sumLabel = v.properties.totalDist + " nm";
|
|
11395
11397
|
}
|
|
@@ -11403,17 +11405,17 @@ const Tn = {
|
|
|
11403
11405
|
if (e) {
|
|
11404
11406
|
const c = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
|
|
11405
11407
|
r = Fe.calculateDistance(g, p, c.mode === "RL", 4), s = Fe.calculateBearing(g, p, c.mode === "RL", 2);
|
|
11406
|
-
let
|
|
11407
|
-
c.mode === "RL" ?
|
|
11408
|
-
const f = N.lineString(
|
|
11408
|
+
let d;
|
|
11409
|
+
c.mode === "RL" ? d = K.convertToMonotonicLng([g, p]) : d = K.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
11410
|
+
const f = N.lineString(d.map((k) => [k.lng, k.lat]));
|
|
11409
11411
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11410
11412
|
}
|
|
11411
11413
|
if (i) {
|
|
11412
11414
|
const c = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
11413
11415
|
r = Fe.calculateDistance(g, p, c.mode === "RL", 4), s = Fe.calculateBearing(g, p, c.mode === "RL", 2);
|
|
11414
|
-
let
|
|
11415
|
-
c.mode === "RL" ?
|
|
11416
|
-
const f = N.lineString(
|
|
11416
|
+
let d;
|
|
11417
|
+
c.mode === "RL" ? d = K.convertToMonotonicLng([g, p]) : d = K.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
|
|
11418
|
+
const f = N.lineString(d.map((k) => [k.lng, k.lat]));
|
|
11417
11419
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
11418
11420
|
}
|
|
11419
11421
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -11549,15 +11551,15 @@ const Tn = {
|
|
|
11549
11551
|
g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
|
|
11550
11552
|
}
|
|
11551
11553
|
if (t.closed) {
|
|
11552
|
-
const n = s.at(-1), g = t.features.filter((
|
|
11554
|
+
const n = s.at(-1), g = t.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
11553
11555
|
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(p).setOffset([0, -30]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
11554
11556
|
}
|
|
11555
11557
|
}
|
|
11556
11558
|
},
|
|
11557
11559
|
handleClear(t, e = !0) {
|
|
11558
|
-
var s, n, c, g, p,
|
|
11560
|
+
var s, n, c, g, p, d, f, k, v, T;
|
|
11559
11561
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
11560
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (
|
|
11562
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((w) => {
|
|
11561
11563
|
w == null || w.remove();
|
|
11562
11564
|
}), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(o)) && this.map.removeSource(o), e && ((T = this.map) != null && T.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
11563
11565
|
}
|
|
@@ -11570,12 +11572,12 @@ function Mn(t, e, o, i, a, r) {
|
|
|
11570
11572
|
class: "menu-bar-box transition pa-1",
|
|
11571
11573
|
style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
11572
11574
|
}, [
|
|
11573
|
-
|
|
11575
|
+
h(n, {
|
|
11574
11576
|
text: t.$t("measure.measure"),
|
|
11575
11577
|
location: "left"
|
|
11576
11578
|
}, {
|
|
11577
11579
|
activator: u(({ props: c }) => [
|
|
11578
|
-
|
|
11580
|
+
h(s, j(c, {
|
|
11579
11581
|
"min-width": "32",
|
|
11580
11582
|
width: "32",
|
|
11581
11583
|
height: "32",
|
|
@@ -11718,14 +11720,14 @@ const An = {
|
|
|
11718
11720
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
11719
11721
|
}, Nn = ["onClick"], Fn = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Hn = { class: "text-body-1" };
|
|
11720
11722
|
function Wn(t, e, o, i, a, r) {
|
|
11721
|
-
const s = x("DateTimePicker"), n = x("VListItemTitle"), c = x("VListItem"), g = x("VList"), p = x("VMenu"),
|
|
11723
|
+
const s = x("DateTimePicker"), n = x("VListItemTitle"), c = x("VListItem"), g = x("VList"), p = x("VMenu"), d = x("VBtn"), f = x("VDivider"), k = x("VTooltip");
|
|
11722
11724
|
return y(), M("div", Dn, [
|
|
11723
11725
|
l("div", {
|
|
11724
11726
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
11725
11727
|
style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
11726
11728
|
}, [
|
|
11727
11729
|
l("div", Rn, [
|
|
11728
|
-
|
|
11730
|
+
h(s, j({
|
|
11729
11731
|
ref: "dateTimePicker",
|
|
11730
11732
|
"date-time": a.currentDateTimeZ,
|
|
11731
11733
|
"time-zone": a.timeZone,
|
|
@@ -11736,7 +11738,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11736
11738
|
onCurrentRealTime: e[1] || (e[1] = (v) => a.currentRealTime = v),
|
|
11737
11739
|
onTimestampRange: e[2] || (e[2] = (v) => a.timestampRange = v)
|
|
11738
11740
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
11739
|
-
d
|
|
11741
|
+
h(d, {
|
|
11740
11742
|
text: "",
|
|
11741
11743
|
height: "30",
|
|
11742
11744
|
class: "text-none elevation-0 btn-border-1 text-body-1",
|
|
@@ -11744,9 +11746,9 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11744
11746
|
}, {
|
|
11745
11747
|
default: u(() => [
|
|
11746
11748
|
U(b(a.intervalHour) + " h ", 1),
|
|
11747
|
-
|
|
11749
|
+
h(p, { activator: "parent" }, {
|
|
11748
11750
|
default: u(() => [
|
|
11749
|
-
|
|
11751
|
+
h(g, { class: "pa-1" }, {
|
|
11750
11752
|
default: u(() => [
|
|
11751
11753
|
(y(!0), M(be, null, we(a.intervalOptions, (v, T) => (y(), B(c, {
|
|
11752
11754
|
key: T,
|
|
@@ -11761,7 +11763,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11761
11763
|
class: "pa-0 text-center text-body-1"
|
|
11762
11764
|
}, {
|
|
11763
11765
|
default: u(() => [
|
|
11764
|
-
|
|
11766
|
+
h(n, {
|
|
11765
11767
|
onClick: (w) => a.intervalHour = v
|
|
11766
11768
|
}, {
|
|
11767
11769
|
default: u(() => [
|
|
@@ -11782,13 +11784,13 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11782
11784
|
_: 1
|
|
11783
11785
|
})
|
|
11784
11786
|
]),
|
|
11785
|
-
|
|
11787
|
+
h(f, {
|
|
11786
11788
|
vertical: "",
|
|
11787
11789
|
class: "mx-2 my-3",
|
|
11788
11790
|
style: { height: "16px" }
|
|
11789
11791
|
}),
|
|
11790
11792
|
l("div", On, [
|
|
11791
|
-
d
|
|
11793
|
+
h(d, {
|
|
11792
11794
|
icon: "",
|
|
11793
11795
|
size: "small",
|
|
11794
11796
|
density: "comfortable",
|
|
@@ -11801,7 +11803,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11801
11803
|
_: 1,
|
|
11802
11804
|
__: [9]
|
|
11803
11805
|
}, 8, ["onClick"]),
|
|
11804
|
-
d
|
|
11806
|
+
h(d, {
|
|
11805
11807
|
icon: "",
|
|
11806
11808
|
size: "small",
|
|
11807
11809
|
density: "comfortable",
|
|
@@ -11814,7 +11816,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11814
11816
|
_: 1,
|
|
11815
11817
|
__: [10]
|
|
11816
11818
|
}, 8, ["onClick"]),
|
|
11817
|
-
a.paused ? (y(), B(
|
|
11819
|
+
a.paused ? (y(), B(d, {
|
|
11818
11820
|
key: 0,
|
|
11819
11821
|
icon: "",
|
|
11820
11822
|
size: "small",
|
|
@@ -11827,7 +11829,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11827
11829
|
])),
|
|
11828
11830
|
_: 1,
|
|
11829
11831
|
__: [11]
|
|
11830
|
-
}, 8, ["onClick"])) : (y(), B(
|
|
11832
|
+
}, 8, ["onClick"])) : (y(), B(d, {
|
|
11831
11833
|
key: 1,
|
|
11832
11834
|
icon: "",
|
|
11833
11835
|
size: "small",
|
|
@@ -11841,7 +11843,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11841
11843
|
_: 1,
|
|
11842
11844
|
__: [12]
|
|
11843
11845
|
}, 8, ["onClick"])),
|
|
11844
|
-
d
|
|
11846
|
+
h(d, {
|
|
11845
11847
|
icon: "",
|
|
11846
11848
|
size: "small",
|
|
11847
11849
|
density: "comfortable",
|
|
@@ -11855,20 +11857,20 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11855
11857
|
__: [13]
|
|
11856
11858
|
}, 8, ["onClick"])
|
|
11857
11859
|
]),
|
|
11858
|
-
|
|
11860
|
+
h(f, {
|
|
11859
11861
|
vertical: "",
|
|
11860
11862
|
class: "mx-2 my-3",
|
|
11861
11863
|
style: { height: "16px" }
|
|
11862
11864
|
}),
|
|
11863
11865
|
l("div", Bn, [
|
|
11864
|
-
|
|
11866
|
+
h(k, {
|
|
11865
11867
|
text: t.$t("weather.windBarbs"),
|
|
11866
11868
|
location: "top"
|
|
11867
11869
|
}, {
|
|
11868
11870
|
activator: u(({ props: v }) => {
|
|
11869
11871
|
var T, w;
|
|
11870
11872
|
return [
|
|
11871
|
-
d
|
|
11873
|
+
h(d, j(v, {
|
|
11872
11874
|
class: "pa-1 d-flex",
|
|
11873
11875
|
color: (T = o.weatherCheckList) != null && T.includes("wind") ? "primary" : "",
|
|
11874
11876
|
variant: (w = o.weatherCheckList) != null && w.includes("wind") ? "elevated" : "text",
|
|
@@ -11887,14 +11889,14 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11887
11889
|
}),
|
|
11888
11890
|
_: 1
|
|
11889
11891
|
}, 8, ["text"]),
|
|
11890
|
-
|
|
11892
|
+
h(k, {
|
|
11891
11893
|
text: t.$t("weather.sigWaveHeight"),
|
|
11892
11894
|
location: "top"
|
|
11893
11895
|
}, {
|
|
11894
11896
|
activator: u(({ props: v }) => {
|
|
11895
11897
|
var T, w;
|
|
11896
11898
|
return [
|
|
11897
|
-
d
|
|
11899
|
+
h(d, j(v, {
|
|
11898
11900
|
class: "pa-1 d-flex",
|
|
11899
11901
|
color: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "primary" : "",
|
|
11900
11902
|
variant: (w = o.weatherCheckList) != null && w.includes("sig-wave-height") ? "elevated" : "text",
|
|
@@ -11912,14 +11914,14 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11912
11914
|
}),
|
|
11913
11915
|
_: 1
|
|
11914
11916
|
}, 8, ["text"]),
|
|
11915
|
-
|
|
11917
|
+
h(k, {
|
|
11916
11918
|
text: t.$t("weather.currentDirection"),
|
|
11917
11919
|
location: "top"
|
|
11918
11920
|
}, {
|
|
11919
11921
|
activator: u(({ props: v }) => {
|
|
11920
11922
|
var T, w;
|
|
11921
11923
|
return [
|
|
11922
|
-
d
|
|
11924
|
+
h(d, j(v, {
|
|
11923
11925
|
class: "pa-1 d-flex",
|
|
11924
11926
|
color: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "primary" : "",
|
|
11925
11927
|
variant: (w = o.weatherCheckList) != null && w.includes("current-direction") ? "elevated" : "text",
|
|
@@ -11937,12 +11939,12 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11937
11939
|
}),
|
|
11938
11940
|
_: 1
|
|
11939
11941
|
}, 8, ["text"]),
|
|
11940
|
-
|
|
11942
|
+
h(k, {
|
|
11941
11943
|
text: t.$t("weather.weatherLayers"),
|
|
11942
11944
|
location: "top"
|
|
11943
11945
|
}, {
|
|
11944
11946
|
activator: u(({ props: v }) => [
|
|
11945
|
-
d
|
|
11947
|
+
h(d, j(v, {
|
|
11946
11948
|
class: "pa-1 d-flex",
|
|
11947
11949
|
variant: "text",
|
|
11948
11950
|
height: "24",
|
|
@@ -11959,13 +11961,13 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11959
11961
|
_: 1
|
|
11960
11962
|
}, 8, ["text"])
|
|
11961
11963
|
]),
|
|
11962
|
-
|
|
11964
|
+
h(f, {
|
|
11963
11965
|
vertical: "",
|
|
11964
11966
|
class: "mx-2 mr-3 my-3",
|
|
11965
11967
|
style: { height: "16px" }
|
|
11966
11968
|
}),
|
|
11967
11969
|
l("div", En, [
|
|
11968
|
-
d
|
|
11970
|
+
h(d, {
|
|
11969
11971
|
text: "",
|
|
11970
11972
|
height: "30",
|
|
11971
11973
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
@@ -11978,7 +11980,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
11978
11980
|
_: 1,
|
|
11979
11981
|
__: [15]
|
|
11980
11982
|
}, 8, ["color"]),
|
|
11981
|
-
d
|
|
11983
|
+
h(d, {
|
|
11982
11984
|
text: "",
|
|
11983
11985
|
height: "30",
|
|
11984
11986
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
@@ -12005,7 +12007,7 @@ function Wn(t, e, o, i, a, r) {
|
|
|
12005
12007
|
}, b(v < 0 ? v : "+" + v), 9, Nn))), 128))
|
|
12006
12008
|
])) : E("", !0),
|
|
12007
12009
|
l("div", Fn, [
|
|
12008
|
-
d
|
|
12010
|
+
h(d, {
|
|
12009
12011
|
text: "",
|
|
12010
12012
|
variant: "flat",
|
|
12011
12013
|
height: "28",
|
|
@@ -12088,9 +12090,9 @@ const Un = /* @__PURE__ */ V(An, [["render", Wn]]), Gn = {
|
|
|
12088
12090
|
class: "map-gl4-home"
|
|
12089
12091
|
};
|
|
12090
12092
|
function Zn(t, e, o, i, a, r) {
|
|
12091
|
-
const s = x("IdmOtherLayer"), n = x("IdmWeatherLayer"), c = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"),
|
|
12093
|
+
const s = x("IdmOtherLayer"), n = x("IdmWeatherLayer"), c = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), d = x("IdmBottomBar");
|
|
12092
12094
|
return y(), M("div", Vn, [
|
|
12093
|
-
|
|
12095
|
+
h(s, j({
|
|
12094
12096
|
ref: "idmOtherLayers",
|
|
12095
12097
|
token: o.token,
|
|
12096
12098
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12105,7 +12107,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12105
12107
|
a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12106
12108
|
})
|
|
12107
12109
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12108
|
-
|
|
12110
|
+
h(n, j({
|
|
12109
12111
|
ref: "idmWeatherLayers",
|
|
12110
12112
|
map: o.map,
|
|
12111
12113
|
"before-layer": "empty-layer-2",
|
|
@@ -12123,7 +12125,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12123
12125
|
a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
|
|
12124
12126
|
})
|
|
12125
12127
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12126
|
-
|
|
12128
|
+
h(c, j({
|
|
12127
12129
|
map: o.map,
|
|
12128
12130
|
token: o.token,
|
|
12129
12131
|
"default-meteo-token": a.defaultMeteoToken,
|
|
@@ -12134,11 +12136,11 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12134
12136
|
"forecast-model": o.forecastModel,
|
|
12135
12137
|
"map-feather": o.mapFeather
|
|
12136
12138
|
}, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12137
|
-
|
|
12139
|
+
h(g, j({
|
|
12138
12140
|
map: o.map,
|
|
12139
12141
|
"map-feather": o.mapFeather
|
|
12140
12142
|
}, t.$attrs), null, 16, ["map", "map-feather"]),
|
|
12141
|
-
|
|
12143
|
+
h(p, j({
|
|
12142
12144
|
ref: "idmSpot",
|
|
12143
12145
|
map: o.map,
|
|
12144
12146
|
token: o.token,
|
|
@@ -12146,7 +12148,7 @@ function Zn(t, e, o, i, a, r) {
|
|
|
12146
12148
|
"forecast-model": o.forecastModel,
|
|
12147
12149
|
"map-feather": o.mapFeather
|
|
12148
12150
|
}, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
|
|
12149
|
-
d
|
|
12151
|
+
h(d, j({
|
|
12150
12152
|
ref: "idmBottomBar",
|
|
12151
12153
|
"forecast-model": o.forecastModel,
|
|
12152
12154
|
"weather-check-list": a.weatherCheckList,
|
|
@@ -12163,7 +12165,7 @@ class qn {
|
|
|
12163
12165
|
se(this, "hi");
|
|
12164
12166
|
se(this, "td");
|
|
12165
12167
|
se(this, "windy");
|
|
12166
|
-
var o, i, a, r, s, n, c, g, p,
|
|
12168
|
+
var o, i, a, r, s, n, c, g, p, d, f, k, v, T, w, D, S, P, z, L, C, _, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Me, Ie, Ae, De, Re, ve, H, ee, je, Ce, he, fe, W, ze, $, re, Oe, O, ye, Te, Be, Ee, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Uo, Go, Vo, Zo, Yo, qo, Xo, Ko, Qo, Jo, $o, 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, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Wa;
|
|
12167
12169
|
this.i4 = {
|
|
12168
12170
|
source: {
|
|
12169
12171
|
type: "raster",
|
|
@@ -13671,7 +13673,7 @@ class qn {
|
|
|
13671
13673
|
"text-size": 10,
|
|
13672
13674
|
"icon-image": "tide",
|
|
13673
13675
|
"icon-size": 1,
|
|
13674
|
-
"icon-offset": [0, -
|
|
13676
|
+
"icon-offset": [0, -13],
|
|
13675
13677
|
"text-offset": [0, 1.6],
|
|
13676
13678
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
13677
13679
|
},
|
|
@@ -15198,7 +15200,7 @@ class qn {
|
|
|
15198
15200
|
"text-size": 10,
|
|
15199
15201
|
"icon-image": "tide",
|
|
15200
15202
|
"icon-size": 1,
|
|
15201
|
-
"icon-offset": [0, -
|
|
15203
|
+
"icon-offset": [0, -13],
|
|
15202
15204
|
"text-offset": [0, 1.6],
|
|
15203
15205
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
15204
15206
|
},
|
|
@@ -19837,7 +19839,7 @@ class qn {
|
|
|
19837
19839
|
"text-size": 10,
|
|
19838
19840
|
"icon-image": "tide",
|
|
19839
19841
|
"icon-size": 1,
|
|
19840
|
-
"icon-offset": [0, -
|
|
19842
|
+
"icon-offset": [0, -13],
|
|
19841
19843
|
"text-offset": [0, 1.6],
|
|
19842
19844
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
19843
19845
|
},
|
|
@@ -30644,7 +30646,7 @@ class qn {
|
|
|
30644
30646
|
"text-size": 10,
|
|
30645
30647
|
"icon-image": "tide",
|
|
30646
30648
|
"icon-size": 1,
|
|
30647
|
-
"icon-offset": [0, -
|
|
30649
|
+
"icon-offset": [0, -13],
|
|
30648
30650
|
"text-offset": [0, 1.6],
|
|
30649
30651
|
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
30650
30652
|
},
|
|
@@ -30743,7 +30745,7 @@ class qn {
|
|
|
30743
30745
|
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
|
|
30744
30746
|
(n = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : n.find((m) => m.id === "ice-area-fill"),
|
|
30745
30747
|
(g = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
|
|
30746
|
-
(
|
|
30748
|
+
(d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((m) => m.id === "loadlines-label"),
|
|
30747
30749
|
(k = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : k.find((m) => m.id === "loadlines-fill"),
|
|
30748
30750
|
(T = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : T.find((m) => m.id === "empty-layer-0"),
|
|
30749
30751
|
(D = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : D.find((m) => m.id === "empty-layer-1"),
|
|
@@ -30943,7 +30945,12 @@ const Xn = {
|
|
|
30943
30945
|
right: 10
|
|
30944
30946
|
};
|
|
30945
30947
|
},
|
|
30946
|
-
computed: {
|
|
30948
|
+
computed: {
|
|
30949
|
+
computeYear() {
|
|
30950
|
+
const t = (/* @__PURE__ */ new Date()).getFullYear();
|
|
30951
|
+
return t > 2023 ? t : 2023;
|
|
30952
|
+
}
|
|
30953
|
+
},
|
|
30947
30954
|
watch: {
|
|
30948
30955
|
"menuToggle.v": {
|
|
30949
30956
|
handler() {
|
|
@@ -30962,8 +30969,6 @@ const Xn = {
|
|
|
30962
30969
|
immediate: !0
|
|
30963
30970
|
}
|
|
30964
30971
|
},
|
|
30965
|
-
mounted() {
|
|
30966
|
-
},
|
|
30967
30972
|
methods: {
|
|
30968
30973
|
async initOnlineMap() {
|
|
30969
30974
|
var e;
|
|
@@ -31007,17 +31012,17 @@ const Xn = {
|
|
|
31007
31012
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
31008
31013
|
}
|
|
31009
31014
|
}
|
|
31010
|
-
}, Kn = { class: "mapbox-initial-gl4" }, Qn = { class: "v-btn--variant-elevated rounded" }, Jn = { class: "zoom" };
|
|
31011
|
-
function
|
|
31015
|
+
}, Kn = { class: "mapbox-initial-gl4" }, Qn = { class: "v-btn--variant-elevated rounded" }, Jn = { class: "zoom" }, $n = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
|
|
31016
|
+
function ec(t, e, o, i, a, r) {
|
|
31012
31017
|
const s = x("VBtn");
|
|
31013
31018
|
return y(), M("div", Kn, [
|
|
31014
|
-
e[
|
|
31019
|
+
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
31015
31020
|
l("div", {
|
|
31016
31021
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
31017
31022
|
style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
31018
31023
|
}, [
|
|
31019
31024
|
l("div", Qn, [
|
|
31020
|
-
|
|
31025
|
+
h(s, {
|
|
31021
31026
|
"min-width": "32",
|
|
31022
31027
|
width: "32",
|
|
31023
31028
|
height: "32",
|
|
@@ -31031,7 +31036,7 @@ function $n(t, e, o, i, a, r) {
|
|
|
31031
31036
|
__: [0]
|
|
31032
31037
|
}, 8, ["onClick"]),
|
|
31033
31038
|
l("div", Jn, b(Math.floor(a.zoom)), 1),
|
|
31034
|
-
|
|
31039
|
+
h(s, {
|
|
31035
31040
|
"min-width": "32",
|
|
31036
31041
|
width: "32",
|
|
31037
31042
|
height: "32",
|
|
@@ -31046,23 +31051,29 @@ function $n(t, e, o, i, a, r) {
|
|
|
31046
31051
|
}, 8, ["onClick"])
|
|
31047
31052
|
])
|
|
31048
31053
|
], 4),
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
l("span",
|
|
31052
|
-
|
|
31054
|
+
l("div", $n, [
|
|
31055
|
+
e[2] || (e[2] = l("span", null, "© 2023", -1)),
|
|
31056
|
+
l("span", null, "-" + b(r.computeYear), 1),
|
|
31057
|
+
e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
31058
|
+
e[4] || (e[4] = l("a", {
|
|
31059
|
+
class: "text-decoration-underline cursor-pointer text-label",
|
|
31060
|
+
href: "https://beian.miit.gov.cn/",
|
|
31061
|
+
target: "_blank"
|
|
31062
|
+
}, "沪ICP备18039043号-6", -1))
|
|
31063
|
+
])
|
|
31053
31064
|
]);
|
|
31054
31065
|
}
|
|
31055
|
-
const
|
|
31066
|
+
const tc = /* @__PURE__ */ V(Xn, [["render", ec]]), pc = {
|
|
31056
31067
|
install(t) {
|
|
31057
|
-
t.component("MapInitial",
|
|
31068
|
+
t.component("MapInitial", tc), t.component("MapboxGL", Yn), t.component("TropicalGL", Ya), t.component("LatLngGL", Za), t.component("DateTimePicker", lo);
|
|
31058
31069
|
}
|
|
31059
31070
|
};
|
|
31060
31071
|
export {
|
|
31061
31072
|
lo as DateTimePicker,
|
|
31062
31073
|
Za as LatLngGL,
|
|
31063
|
-
|
|
31074
|
+
tc as MapInitial,
|
|
31064
31075
|
Yn as MapboxGL,
|
|
31065
|
-
|
|
31076
|
+
pc as MapboxGLPlugin,
|
|
31066
31077
|
_e as ParticleSchema,
|
|
31067
31078
|
Ya as TropicalGL,
|
|
31068
31079
|
ro as Viewport,
|