@idmwx/idmui-gl4 3.2.8 → 3.2.9
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/{chunk-3VYIPD3A-08e781e4.js → chunk-3VYIPD3A-179f3f44.js} +1 -1
- package/dist/{chunk-ANSXOGKI-59bc6498.js → chunk-ANSXOGKI-6293ca7b.js} +1 -1
- package/dist/{chunk-T4JIPPZO-47bdda92.js → chunk-T4JIPPZO-2b609468.js} +1 -1
- package/dist/{download-01cb1f74.js → download-6176491d.js} +3 -3
- package/dist/{index-82a05290.js → index-66017208.js} +263 -262
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/{rasterize-JS5G2XHH-71625629.js → rasterize-JS5G2XHH-0e323926.js} +3 -3
- package/dist/{toBlob-f4b168df.js → toBlob-dbfe465a.js} +3 -3
- package/dist/{toCanvas-c9bfd24a.js → toCanvas-a50ef0d0.js} +2 -2
- package/dist/{toImg-5d953bd3.js → toImg-35c24ad8.js} +3 -3
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ var sr = (t, e, o) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var we = (t, e, o) => (sr(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ie from "axios";
|
|
5
5
|
import { useTheme as Ge } from "vuetify";
|
|
6
|
-
import { openBlock as A, createElementBlock as I, resolveComponent as M, createBlock as j, normalizeClass as ue, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as G, toDisplayString as y, createTextVNode as
|
|
6
|
+
import { openBlock as A, createElementBlock as I, resolveComponent as M, createBlock as j, normalizeClass as ue, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as G, toDisplayString as y, createTextVNode as Z, Fragment as Se, renderList as Re, withDirectives as et, vShow as tt, mergeProps as U, normalizeStyle as de } from "vue";
|
|
7
7
|
import ye from "mapbox-gl";
|
|
8
8
|
import T from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as bi, LaneHelper as Oe, GeoJsonHelper as Xe } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Vo, TidesAssist as Ni } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Qo from "echarts";
|
|
12
|
-
import * as
|
|
12
|
+
import * as W from "@turf/turf";
|
|
13
13
|
import { LayerHelper as Xo, CompanyHelper as cr } from "@idm-plugin/tag2";
|
|
14
14
|
import mr from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as dr } from "@idm-plugin/tag";
|
|
@@ -923,7 +923,7 @@ const Cr = {
|
|
|
923
923
|
}, Dr = { class: "summary-box" }, Er = { class: "d-flex justify-space-between align-center py-2" }, Gr = { class: "d-flex justify-center align-center text-h6 ga-2" }, Fr = {
|
|
924
924
|
class: "multi-color-icon",
|
|
925
925
|
"aria-hidden": "true"
|
|
926
|
-
}, jr = ["xlink:href"], Br = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Nr = { class: "w-100 d-flex justify-start align-center" },
|
|
926
|
+
}, jr = ["xlink:href"], Br = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Nr = { class: "w-100 d-flex justify-start align-center" }, Wr = { class: "w-30 text-label font-weight-400" }, Zr = { class: "flex-1-1-0" }, Vr = { class: "w-100 d-flex justify-start align-center" }, Xr = { class: "w-30 text-label font-weight-400" }, Or = { class: "flex-1-1-0" }, Yr = { class: "w-100 d-flex justify-start align-center" }, Hr = { class: "w-30 text-label font-weight-400" }, Ur = { class: "flex-1-1-0" }, Jr = { class: "table-box w-100 mt-2" }, Kr = { class: "w-100 d-flex justify-space-between align-center py-2" }, Qr = { class: "d-flex justify-center align-center text-h6 ga-2" }, qr = {
|
|
927
927
|
class: "multi-color-icon",
|
|
928
928
|
"aria-hidden": "true"
|
|
929
929
|
}, $r = ["xlink:href"], el = {
|
|
@@ -1069,7 +1069,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1069
1069
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
1070
1070
|
])),
|
|
1071
1071
|
default: x(() => [
|
|
1072
|
-
|
|
1072
|
+
Z(" " + y(t.$t("actions.unfollow")), 1)
|
|
1073
1073
|
]),
|
|
1074
1074
|
_: 1
|
|
1075
1075
|
}, 8, ["onClick"])) : (A(), j(l, {
|
|
@@ -1084,7 +1084,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1084
1084
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
1085
1085
|
])),
|
|
1086
1086
|
default: x(() => [
|
|
1087
|
-
|
|
1087
|
+
Z(y(t.$t("actions.follow")) + " ", 1)
|
|
1088
1088
|
]),
|
|
1089
1089
|
_: 1
|
|
1090
1090
|
}, 8, ["onClick"])),
|
|
@@ -1096,7 +1096,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1096
1096
|
onClick: r.handleMeteoMore
|
|
1097
1097
|
}, {
|
|
1098
1098
|
default: x(() => [
|
|
1099
|
-
|
|
1099
|
+
Z(y(t.$t("actions.7dayForcast")), 1)
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
}, 8, ["onClick"])
|
|
@@ -1119,8 +1119,8 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1119
1119
|
]),
|
|
1120
1120
|
n("div", Br, [
|
|
1121
1121
|
n("div", Nr, [
|
|
1122
|
-
n("div",
|
|
1123
|
-
n("div",
|
|
1122
|
+
n("div", Wr, y(t.$t("port.region")), 1),
|
|
1123
|
+
n("div", Zr, y(((u = o.port) == null ? void 0 : u.region) ?? ((b = o.port) == null ? void 0 : b.city) ?? "-"), 1)
|
|
1124
1124
|
]),
|
|
1125
1125
|
n("div", Vr, [
|
|
1126
1126
|
n("div", Xr, y(t.$t("port.position")), 1),
|
|
@@ -1168,7 +1168,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1168
1168
|
value: g.index
|
|
1169
1169
|
}, {
|
|
1170
1170
|
default: x(() => [
|
|
1171
|
-
|
|
1171
|
+
Z(y(g.label), 1)
|
|
1172
1172
|
]),
|
|
1173
1173
|
_: 2
|
|
1174
1174
|
}, 1032, ["value"]))), 128))
|
|
@@ -1181,7 +1181,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1181
1181
|
key: g.id
|
|
1182
1182
|
}, [
|
|
1183
1183
|
n("th", tl, [
|
|
1184
|
-
|
|
1184
|
+
Z(y(t.$t(`${g.key}`)) + " ", 1),
|
|
1185
1185
|
g.unit ? (A(), I("span", ol, " ( " + y(g.unit) + " )", 1)) : G("", !0)
|
|
1186
1186
|
]),
|
|
1187
1187
|
n("td", al, [
|
|
@@ -1672,7 +1672,7 @@ const jl = /* @__PURE__ */ ie(Gl, [["render", Fl]]), Bl = {
|
|
|
1672
1672
|
function Nl(t, e, o, i, a, r) {
|
|
1673
1673
|
return A(), I("div");
|
|
1674
1674
|
}
|
|
1675
|
-
const
|
|
1675
|
+
const Wl = /* @__PURE__ */ ie(Bl, [["render", Nl]]), Zl = {
|
|
1676
1676
|
name: "IdmVoluntaryReportingArea",
|
|
1677
1677
|
props: {
|
|
1678
1678
|
map: {
|
|
@@ -1767,7 +1767,7 @@ const Zl = /* @__PURE__ */ ie(Bl, [["render", Nl]]), Wl = {
|
|
|
1767
1767
|
function Vl(t, e, o, i, a, r) {
|
|
1768
1768
|
return A(), I("div");
|
|
1769
1769
|
}
|
|
1770
|
-
const Xl = /* @__PURE__ */ ie(
|
|
1770
|
+
const Xl = /* @__PURE__ */ ie(Zl, [["render", Vl]]), Ol = {
|
|
1771
1771
|
name: "IdmSpecialArea",
|
|
1772
1772
|
props: {
|
|
1773
1773
|
map: {
|
|
@@ -2449,7 +2449,7 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2449
2449
|
value: b.index
|
|
2450
2450
|
}, {
|
|
2451
2451
|
default: x(() => [
|
|
2452
|
-
|
|
2452
|
+
Z(y(b.label), 1)
|
|
2453
2453
|
]),
|
|
2454
2454
|
_: 2
|
|
2455
2455
|
}, 1032, ["value"]))), 128))
|
|
@@ -2483,7 +2483,7 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2483
2483
|
}, 8, ["class"]);
|
|
2484
2484
|
}
|
|
2485
2485
|
const Nn = /* @__PURE__ */ ie(nn, [["render", Bn], ["__scopeId", "data-v-79152278"]]);
|
|
2486
|
-
const
|
|
2486
|
+
const Wn = {
|
|
2487
2487
|
name: "IdmTideStations",
|
|
2488
2488
|
components: {
|
|
2489
2489
|
TideDetail: Nn
|
|
@@ -2558,7 +2558,7 @@ const Zn = {
|
|
|
2558
2558
|
this.showDetail = !1;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
},
|
|
2561
|
+
}, Zn = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Vn = { class: "d-flex justify-start align-center" }, Xn = { class: "d-flex justify-start align-center" }, On = { class: "text-label" };
|
|
2562
2562
|
function Yn(t, e, o, i, a, r) {
|
|
2563
2563
|
const l = M("VCardText"), c = M("VCard"), s = M("TideDetail");
|
|
2564
2564
|
return A(), I("div", null, [
|
|
@@ -2568,7 +2568,7 @@ function Yn(t, e, o, i, a, r) {
|
|
|
2568
2568
|
default: x(() => {
|
|
2569
2569
|
var d, m;
|
|
2570
2570
|
return [
|
|
2571
|
-
n("div",
|
|
2571
|
+
n("div", Zn, [
|
|
2572
2572
|
n("div", Vn, y(t.$t("tide.tideStation")), 1),
|
|
2573
2573
|
n("div", Xn, [
|
|
2574
2574
|
n("label", On, y((d = a.hoverStation) == null ? void 0 : d.name) + " , " + y(((m = a.hoverStation) == null ? void 0 : m.Country) || "-"), 1)
|
|
@@ -2589,7 +2589,7 @@ function Yn(t, e, o, i, a, r) {
|
|
|
2589
2589
|
}, t.$attrs, { onClose: r.handleCloseDetail }), null, 16, ["station", "onClose"])) : G("", !0)
|
|
2590
2590
|
]);
|
|
2591
2591
|
}
|
|
2592
|
-
const Hn = /* @__PURE__ */ ie(
|
|
2592
|
+
const Hn = /* @__PURE__ */ ie(Wn, [["render", Yn], ["__scopeId", "data-v-ad725d5e"]]), Un = {
|
|
2593
2593
|
name: "IdmIceAreas",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
map: {
|
|
@@ -2749,7 +2749,7 @@ const Qn = {
|
|
|
2749
2749
|
handleZoomEnd() {
|
|
2750
2750
|
var e;
|
|
2751
2751
|
const t = this.handleComputeLatLngs();
|
|
2752
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
2752
|
+
(e = this.map) == null || e.getSource(this.source).setData(W.featureCollection(t));
|
|
2753
2753
|
},
|
|
2754
2754
|
handleRender() {
|
|
2755
2755
|
if (this.handleClear(), this.map) {
|
|
@@ -2817,7 +2817,7 @@ function qn(t, e, o, i, a, r) {
|
|
|
2817
2817
|
n("div", null, y((s = a.lngLat) == null ? void 0 : s.str), 1)
|
|
2818
2818
|
], 4));
|
|
2819
2819
|
}
|
|
2820
|
-
const
|
|
2820
|
+
const Wi = /* @__PURE__ */ ie(Qn, [["render", qn]]);
|
|
2821
2821
|
const $n = {
|
|
2822
2822
|
name: "IdmFollowPort",
|
|
2823
2823
|
components: {
|
|
@@ -3161,7 +3161,7 @@ const ds = {
|
|
|
3161
3161
|
IdmAlertZone: _r,
|
|
3162
3162
|
IdmPort: El,
|
|
3163
3163
|
IdmLoadLine: jl,
|
|
3164
|
-
IdmTimezone:
|
|
3164
|
+
IdmTimezone: Wl,
|
|
3165
3165
|
IdmVRA: Xl,
|
|
3166
3166
|
IdmSpecialArea: Hl,
|
|
3167
3167
|
IdmTerminator: Kl,
|
|
@@ -3170,7 +3170,7 @@ const ds = {
|
|
|
3170
3170
|
IdmChinaRoute: ln,
|
|
3171
3171
|
IdmTideStations: Hn,
|
|
3172
3172
|
IdmIceAreas: Kn,
|
|
3173
|
-
IdmLatLng:
|
|
3173
|
+
IdmLatLng: Wi,
|
|
3174
3174
|
IdmFollowPort: is,
|
|
3175
3175
|
IdmFollowPosition: ms
|
|
3176
3176
|
},
|
|
@@ -3443,7 +3443,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3443
3443
|
default: x(() => [
|
|
3444
3444
|
w(s, { class: "text-h6" }, {
|
|
3445
3445
|
default: x(() => [
|
|
3446
|
-
|
|
3446
|
+
Z(y(t.$t("layer.mapFeathers")), 1)
|
|
3447
3447
|
]),
|
|
3448
3448
|
_: 1
|
|
3449
3449
|
})
|
|
@@ -3493,7 +3493,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3493
3493
|
default: x(() => [
|
|
3494
3494
|
w(s, { class: "text-h6" }, {
|
|
3495
3495
|
default: x(() => [
|
|
3496
|
-
|
|
3496
|
+
Z(y(t.$t("layer.pointsOfInteresting")), 1)
|
|
3497
3497
|
]),
|
|
3498
3498
|
_: 1
|
|
3499
3499
|
})
|
|
@@ -3529,7 +3529,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3529
3529
|
default: x(() => [
|
|
3530
3530
|
w(s, { class: "text-h6" }, {
|
|
3531
3531
|
default: x(() => [
|
|
3532
|
-
|
|
3532
|
+
Z(y(t.$t("layer.otherLayers")), 1)
|
|
3533
3533
|
]),
|
|
3534
3534
|
_: 1
|
|
3535
3535
|
})
|
|
@@ -3565,7 +3565,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3565
3565
|
default: x(() => [
|
|
3566
3566
|
w(s, { class: "text-h6" }, {
|
|
3567
3567
|
default: x(() => [
|
|
3568
|
-
|
|
3568
|
+
Z(y(t.$t("layer.myFollows")), 1)
|
|
3569
3569
|
]),
|
|
3570
3570
|
_: 1
|
|
3571
3571
|
})
|
|
@@ -4272,7 +4272,7 @@ const Ls = {
|
|
|
4272
4272
|
showCaption: !1,
|
|
4273
4273
|
source: "wind-barb-source",
|
|
4274
4274
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
4275
|
-
empty:
|
|
4275
|
+
empty: W.featureCollection([]),
|
|
4276
4276
|
right: 10,
|
|
4277
4277
|
bottom: 125,
|
|
4278
4278
|
windBarbLoaded: !1,
|
|
@@ -4584,7 +4584,7 @@ const Ts = /* @__PURE__ */ ie(Ms, [["render", Ss]]), Rs = {
|
|
|
4584
4584
|
directionLayer: "current-direction-layer",
|
|
4585
4585
|
speedLayer: "current-speed-layer",
|
|
4586
4586
|
speedLabelLayer: "current-speed-label-layer",
|
|
4587
|
-
empty:
|
|
4587
|
+
empty: W.featureCollection([])
|
|
4588
4588
|
};
|
|
4589
4589
|
},
|
|
4590
4590
|
computed: {
|
|
@@ -5004,7 +5004,7 @@ const Bs = {
|
|
|
5004
5004
|
}
|
|
5005
5005
|
}
|
|
5006
5006
|
}, Ns = { key: 0 };
|
|
5007
|
-
function
|
|
5007
|
+
function Ws(t, e, o, i, a, r) {
|
|
5008
5008
|
var l;
|
|
5009
5009
|
return (l = o.factor) != null && l.active ? (A(), I("div", Ns, [
|
|
5010
5010
|
n("div", {
|
|
@@ -5021,7 +5021,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
5021
5021
|
]), 4)
|
|
5022
5022
|
])) : G("", !0);
|
|
5023
5023
|
}
|
|
5024
|
-
const
|
|
5024
|
+
const Zs = /* @__PURE__ */ ie(Bs, [["render", Ws], ["__scopeId", "data-v-b562523c"]]), Vs = {
|
|
5025
5025
|
name: "IdmSigWaveHeight",
|
|
5026
5026
|
props: {
|
|
5027
5027
|
map: {
|
|
@@ -5045,7 +5045,7 @@ const Ws = /* @__PURE__ */ ie(Bs, [["render", Zs], ["__scopeId", "data-v-b562523
|
|
|
5045
5045
|
source: "sig-wave-height-source",
|
|
5046
5046
|
heightLayer: "sig-wave-height-layer",
|
|
5047
5047
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
5048
|
-
empty:
|
|
5048
|
+
empty: W.featureCollection([])
|
|
5049
5049
|
};
|
|
5050
5050
|
},
|
|
5051
5051
|
watch: {
|
|
@@ -5318,7 +5318,7 @@ const Js = /* @__PURE__ */ ie(Ys, [["render", Us], ["__scopeId", "data-v-7ee2fac
|
|
|
5318
5318
|
layer: "prmsl-layer",
|
|
5319
5319
|
labelLayer: "prmsl-label-layer",
|
|
5320
5320
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
5321
|
-
empty:
|
|
5321
|
+
empty: W.featureCollection([])
|
|
5322
5322
|
};
|
|
5323
5323
|
},
|
|
5324
5324
|
watch: {
|
|
@@ -6258,7 +6258,7 @@ const Cc = {
|
|
|
6258
6258
|
IdmWindParticle: Ts,
|
|
6259
6259
|
IdmCurrentDirection: Ds,
|
|
6260
6260
|
IdmCurrentParticle: js,
|
|
6261
|
-
IdmWave:
|
|
6261
|
+
IdmWave: Zs,
|
|
6262
6262
|
IdmSigWaveHeight: Os,
|
|
6263
6263
|
IdmSwell: Js,
|
|
6264
6264
|
IdmPrmsl: qs,
|
|
@@ -6531,7 +6531,7 @@ const Cc = {
|
|
|
6531
6531
|
},
|
|
6532
6532
|
handleCheckListChange(t, e) {
|
|
6533
6533
|
if (this.arraysEqual(t, e))
|
|
6534
|
-
return !1;
|
|
6534
|
+
return this.handleMove4Weather(), !1;
|
|
6535
6535
|
const o = [...new Set(t)], i = o == null ? void 0 : o.filter((l) => !(e != null && e.includes(l)))[0], a = e == null ? void 0 : e.filter((l) => !(o != null && o.includes(l)))[0], r = this.checkList.filter((l) => !this.rendersKeys.some((c) => c === l));
|
|
6536
6536
|
if (i)
|
|
6537
6537
|
if (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast")
|
|
@@ -6633,7 +6633,7 @@ const Cc = {
|
|
|
6633
6633
|
},
|
|
6634
6634
|
handleWeatherLayerToggle() {
|
|
6635
6635
|
for (const t in this.weatherLayers)
|
|
6636
|
-
this.weatherLayers[t].active = !1, this.weatherLayers[t].version = Math.random() + 1;
|
|
6636
|
+
this.weatherLayers[t].active = !1, this.weatherLayers[t].version = Math.random() + 1, console.log(333, t);
|
|
6637
6637
|
for (const t of this.activeWeatherLayers) {
|
|
6638
6638
|
let e = t.key;
|
|
6639
6639
|
e === "current-direction" && (e = "current"), this.weatherLayers[e] && (this.weatherLayers[e].active = !0, this.weatherLayers[e].version = Math.random() + 1, e === "wind-particle" && (this.weatherLayers[e].particle = this.showWindParticle), e === "current-particle" && (this.weatherLayers[e].particle = this.showCurrentParticle));
|
|
@@ -6699,14 +6699,14 @@ const Cc = {
|
|
|
6699
6699
|
var S, F, N, B, Q, q;
|
|
6700
6700
|
if (i < 2) {
|
|
6701
6701
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6702
|
-
const oe =
|
|
6702
|
+
const oe = W.point([z, L], {
|
|
6703
6703
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6704
6704
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6705
6705
|
});
|
|
6706
6706
|
k.push(oe);
|
|
6707
6707
|
}
|
|
6708
6708
|
} else if ((z >= p && z <= 180 || z >= -180 && z <= u) && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6709
|
-
const oe =
|
|
6709
|
+
const oe = W.point([z, L], {
|
|
6710
6710
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6711
6711
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6712
6712
|
});
|
|
@@ -6716,14 +6716,14 @@ const Cc = {
|
|
|
6716
6716
|
var S, F, N, B, Q, q;
|
|
6717
6717
|
if (p < 2) {
|
|
6718
6718
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6719
|
-
const oe =
|
|
6719
|
+
const oe = W.point([z, L], {
|
|
6720
6720
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6721
6721
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6722
6722
|
});
|
|
6723
6723
|
k.push(oe);
|
|
6724
6724
|
}
|
|
6725
6725
|
} else if (z >= p && z <= u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6726
|
-
const oe =
|
|
6726
|
+
const oe = W.point([z, L], {
|
|
6727
6727
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6728
6728
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6729
6729
|
});
|
|
@@ -6740,11 +6740,11 @@ const Cc = {
|
|
|
6740
6740
|
const z = _.raw.LineString[P];
|
|
6741
6741
|
for (const R of z)
|
|
6742
6742
|
L.push(
|
|
6743
|
-
|
|
6743
|
+
W.lineString(R, {
|
|
6744
6744
|
val: Number(P)
|
|
6745
6745
|
})
|
|
6746
6746
|
);
|
|
6747
|
-
_.data =
|
|
6747
|
+
_.data = W.featureCollection(L);
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
6750
|
if (_.data) {
|
|
@@ -6763,14 +6763,14 @@ const Cc = {
|
|
|
6763
6763
|
var S, F, N, B, Q, q;
|
|
6764
6764
|
if (i < 2) {
|
|
6765
6765
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6766
|
-
const oe =
|
|
6766
|
+
const oe = W.point([z, L], {
|
|
6767
6767
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6768
6768
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6769
6769
|
});
|
|
6770
6770
|
k.push(oe);
|
|
6771
6771
|
}
|
|
6772
6772
|
} else if ((z >= p && z <= 180 || z >= -180 && z <= u) && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6773
|
-
const oe =
|
|
6773
|
+
const oe = W.point([z, L], {
|
|
6774
6774
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6775
6775
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6776
6776
|
});
|
|
@@ -6780,14 +6780,14 @@ const Cc = {
|
|
|
6780
6780
|
var S, F, N, B, Q, q;
|
|
6781
6781
|
if (p < 2) {
|
|
6782
6782
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6783
|
-
const oe =
|
|
6783
|
+
const oe = W.point([z, L], {
|
|
6784
6784
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6785
6785
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6786
6786
|
});
|
|
6787
6787
|
k.push(oe);
|
|
6788
6788
|
}
|
|
6789
6789
|
} else if (z >= p && z <= u && (!(i <= this.zoom) || z % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6790
|
-
const oe =
|
|
6790
|
+
const oe = W.point([z, L], {
|
|
6791
6791
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6792
6792
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6793
6793
|
});
|
|
@@ -6804,12 +6804,12 @@ const Cc = {
|
|
|
6804
6804
|
const R = _.raw.Polygon[z];
|
|
6805
6805
|
for (const S of R)
|
|
6806
6806
|
P.push(
|
|
6807
|
-
|
|
6807
|
+
W.polygon(S, {
|
|
6808
6808
|
val: Number(z)
|
|
6809
6809
|
})
|
|
6810
6810
|
);
|
|
6811
6811
|
}
|
|
6812
|
-
_.data =
|
|
6812
|
+
_.data = W.featureCollection(P);
|
|
6813
6813
|
}
|
|
6814
6814
|
const L = i < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
|
|
6815
6815
|
k = k.concat(L), (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6824,14 +6824,14 @@ const Cc = {
|
|
|
6824
6824
|
var R, S, F, N;
|
|
6825
6825
|
if (i < 2) {
|
|
6826
6826
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6827
|
-
const B =
|
|
6827
|
+
const B = W.point([P, _], {
|
|
6828
6828
|
dir: ((R = v[_].val) == null ? void 0 : R[z]) || ((S = v[_].dir) == null ? void 0 : S[z]),
|
|
6829
6829
|
spd: v[_].spd[z]
|
|
6830
6830
|
});
|
|
6831
6831
|
k.push(B);
|
|
6832
6832
|
}
|
|
6833
6833
|
} else if ((P >= p && P <= 180 || P >= -180 && P <= u) && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6834
|
-
const B =
|
|
6834
|
+
const B = W.point([P, _], {
|
|
6835
6835
|
dir: ((F = v[_].val) == null ? void 0 : F[z]) || ((N = v[_].dir) == null ? void 0 : N[z]),
|
|
6836
6836
|
spd: v[_].spd[z]
|
|
6837
6837
|
});
|
|
@@ -6841,14 +6841,14 @@ const Cc = {
|
|
|
6841
6841
|
var R, S, F, N;
|
|
6842
6842
|
if (i < 2) {
|
|
6843
6843
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6844
|
-
const B =
|
|
6844
|
+
const B = W.point([P, _], {
|
|
6845
6845
|
dir: ((R = v[_].val) == null ? void 0 : R[z]) || ((S = v[_].dir) == null ? void 0 : S[z]),
|
|
6846
6846
|
spd: v[_].spd[z]
|
|
6847
6847
|
});
|
|
6848
6848
|
k.push(B);
|
|
6849
6849
|
}
|
|
6850
6850
|
} else if (P >= p && P <= u && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6851
|
-
const B =
|
|
6851
|
+
const B = W.point([P, _], {
|
|
6852
6852
|
dir: ((F = v[_].val) == null ? void 0 : F[z]) || ((N = v[_].dir) == null ? void 0 : N[z]),
|
|
6853
6853
|
spd: v[_].spd[z]
|
|
6854
6854
|
});
|
|
@@ -6869,7 +6869,7 @@ const Cc = {
|
|
|
6869
6869
|
const P = v.Polygon[L];
|
|
6870
6870
|
for (const z of P)
|
|
6871
6871
|
_.push(
|
|
6872
|
-
|
|
6872
|
+
W.polygon(z, {
|
|
6873
6873
|
val: Number(L)
|
|
6874
6874
|
})
|
|
6875
6875
|
);
|
|
@@ -6878,7 +6878,7 @@ const Cc = {
|
|
|
6878
6878
|
const P = v.MultiPolygon[L];
|
|
6879
6879
|
for (const z of P)
|
|
6880
6880
|
_.push(
|
|
6881
|
-
|
|
6881
|
+
W.multiPolygon(z, {
|
|
6882
6882
|
val: Number(L)
|
|
6883
6883
|
})
|
|
6884
6884
|
);
|
|
@@ -6887,7 +6887,7 @@ const Cc = {
|
|
|
6887
6887
|
const P = v.Point[L];
|
|
6888
6888
|
for (let z = 0; z < ((m = P.lng) == null ? void 0 : m.length); z++)
|
|
6889
6889
|
_.push(
|
|
6890
|
-
|
|
6890
|
+
W.point([P.lng[z], L], {
|
|
6891
6891
|
val: Number(P.val[z])
|
|
6892
6892
|
})
|
|
6893
6893
|
);
|
|
@@ -6908,7 +6908,7 @@ const Cc = {
|
|
|
6908
6908
|
const P = v.LineString[L];
|
|
6909
6909
|
for (const z of P)
|
|
6910
6910
|
_.push(
|
|
6911
|
-
|
|
6911
|
+
W.lineString(z, {
|
|
6912
6912
|
val: Number(L)
|
|
6913
6913
|
})
|
|
6914
6914
|
);
|
|
@@ -6916,7 +6916,7 @@ const Cc = {
|
|
|
6916
6916
|
for (const L in v.Point)
|
|
6917
6917
|
v.Point[L].lng.forEach((P, z) => {
|
|
6918
6918
|
P = X.convertToStdLng(P), _.push(
|
|
6919
|
-
|
|
6919
|
+
W.point([P, L], {
|
|
6920
6920
|
val: v.Point[L].val[z],
|
|
6921
6921
|
type: v.Point[L].type[z]
|
|
6922
6922
|
})
|
|
@@ -6927,12 +6927,13 @@ const Cc = {
|
|
|
6927
6927
|
}
|
|
6928
6928
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6929
6929
|
}
|
|
6930
|
-
k.length && (this.weatherLayers[h].data =
|
|
6930
|
+
k.length && (this.weatherLayers[h].data = W.featureCollection(k)), f && (this.weatherLayers[h].version = Math.random() + 1);
|
|
6931
6931
|
}
|
|
6932
6932
|
}
|
|
6933
6933
|
}
|
|
6934
6934
|
},
|
|
6935
6935
|
handleMove4Weather() {
|
|
6936
|
+
console.log(444, "[handleMove4Weather]");
|
|
6936
6937
|
for (const t in this.weatherLayers)
|
|
6937
6938
|
this.weatherLayers[t].active && this.weatherLayers[t].type === "image" && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1);
|
|
6938
6939
|
this.handleDrawWeather4Json();
|
|
@@ -6942,10 +6943,10 @@ const Cc = {
|
|
|
6942
6943
|
return t.features.forEach((r) => {
|
|
6943
6944
|
if (r.geometry.type !== "Point")
|
|
6944
6945
|
if (i > a) {
|
|
6945
|
-
let l = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
6946
|
-
c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c =
|
|
6946
|
+
let l = [i, e._sw.lat, 180, e._ne.lat], c = W.bboxClip(r, l);
|
|
6947
|
+
c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l), c.geometry.coordinates.length && o.push(c);
|
|
6947
6948
|
} else {
|
|
6948
|
-
const l = [i, e._sw.lat, a, e._ne.lat], c =
|
|
6949
|
+
const l = [i, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l);
|
|
6949
6950
|
c.geometry.coordinates.length && o.push(c);
|
|
6950
6951
|
}
|
|
6951
6952
|
else
|
|
@@ -6965,10 +6966,10 @@ const Cc = {
|
|
|
6965
6966
|
}, Fc = { class: "text-caption" }, jc = { class: "d-flex justify-start align-center ga-3" }, Bc = { class: "text-h5 font-weight-medium" }, Nc = {
|
|
6966
6967
|
key: 0,
|
|
6967
6968
|
class: "w-100 d-flex justify-space-between align-center ga-1 mb-2 px-3"
|
|
6968
|
-
},
|
|
6969
|
+
}, Wc = {
|
|
6969
6970
|
key: 0,
|
|
6970
6971
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
6971
|
-
},
|
|
6972
|
+
}, Zc = {
|
|
6972
6973
|
key: 1,
|
|
6973
6974
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
6974
6975
|
}, Vc = { class: "text-body-1 py-2" }, Xc = { class: "text-body-1 font-weight-medium" }, Oc = { class: "text-body-2 text-label" }, Yc = { class: "text-body-2 text-label" }, Hc = { class: "text-body-2 text-label mb-3" }, Uc = { class: "text-body-1 font-weight-medium" }, Jc = { class: "text-body-2 text-label" }, Kc = { class: "text-body-2 text-label" }, Qc = { class: "text-body-2 text-label mb-3" }, qc = { class: "text-body-1 py-2" }, $c = { class: "text-body-1 font-weight-medium" }, em = { class: "text-body-2 text-label" }, tm = { class: "text-body-2 text-label" }, om = { class: "text-body-2 text-label mb-3" }, am = { class: "text-body-1 font-weight-medium" }, im = { class: "text-body-2 text-label" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label mb-3" }, nm = { class: "text-body-1 py-2" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" };
|
|
@@ -7199,7 +7200,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7199
7200
|
"base-color": ""
|
|
7200
7201
|
}, {
|
|
7201
7202
|
default: x(() => e[15] || (e[15] = [
|
|
7202
|
-
|
|
7203
|
+
Z(" NOAA ", -1)
|
|
7203
7204
|
])),
|
|
7204
7205
|
_: 1,
|
|
7205
7206
|
__: [15]
|
|
@@ -7213,7 +7214,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7213
7214
|
value: "ECMWF"
|
|
7214
7215
|
}, {
|
|
7215
7216
|
default: x(() => e[16] || (e[16] = [
|
|
7216
|
-
|
|
7217
|
+
Z(" ECMWF ", -1)
|
|
7217
7218
|
])),
|
|
7218
7219
|
_: 1,
|
|
7219
7220
|
__: [16]
|
|
@@ -7234,7 +7235,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7234
7235
|
default: x(() => [
|
|
7235
7236
|
w(h, { class: "text-h6" }, {
|
|
7236
7237
|
default: x(() => [
|
|
7237
|
-
|
|
7238
|
+
Z(y(t.$t("weather.overlays")), 1)
|
|
7238
7239
|
]),
|
|
7239
7240
|
_: 1
|
|
7240
7241
|
})
|
|
@@ -7271,7 +7272,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7271
7272
|
default: x(() => [
|
|
7272
7273
|
w(h, { class: "text-h6" }, {
|
|
7273
7274
|
default: x(() => [
|
|
7274
|
-
|
|
7275
|
+
Z(y(t.$t("weather.renders")), 1)
|
|
7275
7276
|
]),
|
|
7276
7277
|
_: 1
|
|
7277
7278
|
})
|
|
@@ -7296,7 +7297,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7296
7297
|
"hide-details": "",
|
|
7297
7298
|
onClick: (me) => a.renderKey = a.renderKey === $.key ? "" : $.key
|
|
7298
7299
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
7299
|
-
a.renderKey === "wind-particle" && $.key === "wind-particle" ? (A(), I("div",
|
|
7300
|
+
a.renderKey === "wind-particle" && $.key === "wind-particle" ? (A(), I("div", Wc, [
|
|
7300
7301
|
n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
7301
7302
|
w(b, {
|
|
7302
7303
|
modelValue: a.showWindParticle,
|
|
@@ -7311,7 +7312,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7311
7312
|
"hide-details": ""
|
|
7312
7313
|
}, null, 8, ["modelValue"])
|
|
7313
7314
|
])) : G("", !0),
|
|
7314
|
-
a.renderKey === "current-particle" && $.key === "current-particle" ? (A(), I("div",
|
|
7315
|
+
a.renderKey === "current-particle" && $.key === "current-particle" ? (A(), I("div", Zc, [
|
|
7315
7316
|
n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
7316
7317
|
w(b, {
|
|
7317
7318
|
modelValue: a.showCurrentParticle,
|
|
@@ -7349,7 +7350,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7349
7350
|
disabled: !a.autoActive
|
|
7350
7351
|
}, {
|
|
7351
7352
|
default: x(() => [
|
|
7352
|
-
|
|
7353
|
+
Z(y(t.$t("weather.significant")), 1)
|
|
7353
7354
|
]),
|
|
7354
7355
|
_: 1
|
|
7355
7356
|
}, 8, ["color", "disabled"]),
|
|
@@ -7363,7 +7364,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7363
7364
|
value: "swell"
|
|
7364
7365
|
}, {
|
|
7365
7366
|
default: x(() => [
|
|
7366
|
-
|
|
7367
|
+
Z(y(t.$t("weather.swell")), 1)
|
|
7367
7368
|
]),
|
|
7368
7369
|
_: 1
|
|
7369
7370
|
}, 8, ["color", "disabled"])
|
|
@@ -7393,7 +7394,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7393
7394
|
disabled: !a.autoActive
|
|
7394
7395
|
}, {
|
|
7395
7396
|
default: x(() => [
|
|
7396
|
-
|
|
7397
|
+
Z(y(t.$t("weather.coverage")), 1)
|
|
7397
7398
|
]),
|
|
7398
7399
|
_: 1
|
|
7399
7400
|
}, 8, ["color", "disabled"]),
|
|
@@ -7407,7 +7408,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7407
7408
|
value: "ice-thickness"
|
|
7408
7409
|
}, {
|
|
7409
7410
|
default: x(() => [
|
|
7410
|
-
|
|
7411
|
+
Z(y(t.$t("weather.thickness")), 1)
|
|
7411
7412
|
]),
|
|
7412
7413
|
_: 1
|
|
7413
7414
|
}, 8, ["color", "disabled"])
|
|
@@ -7430,7 +7431,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7430
7431
|
default: x(() => [
|
|
7431
7432
|
w(h, { class: "text-h6" }, {
|
|
7432
7433
|
default: x(() => [
|
|
7433
|
-
|
|
7434
|
+
Z(y(t.$t("weather.forecastModel")), 1)
|
|
7434
7435
|
]),
|
|
7435
7436
|
_: 1
|
|
7436
7437
|
})
|
|
@@ -7439,13 +7440,13 @@ function hm(t, e, o, i, a, r) {
|
|
|
7439
7440
|
}),
|
|
7440
7441
|
w(m, { class: "" }, {
|
|
7441
7442
|
default: x(() => {
|
|
7442
|
-
var $, me, Ye, Be, Ce, De, re, Me, pe, xe,
|
|
7443
|
+
var $, me, Ye, Be, Ce, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, _o, Co, Mo, Po, So, To, Ro, Io, Do, Eo, Go;
|
|
7443
7444
|
return [
|
|
7444
7445
|
n("div", Vc, y(t.$t("weather.atmospheric")), 1),
|
|
7445
7446
|
n("div", Xc, y((Ye = (me = ($ = a.models) == null ? void 0 : $.weather) == null ? void 0 : me.NOAA) == null ? void 0 : Ye.source) + " " + y((De = (Ce = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : De.spatialResolution) + y(t.$t("units.km")) + " " + y((xe = (pe = (Me = (re = a.models) == null ? void 0 : re.weather) == null ? void 0 : Me.NOAA) == null ? void 0 : pe.meta) == null ? void 0 : xe.days) + y(t.$t("units.days")), 1),
|
|
7446
7447
|
n("div", Oc, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7447
|
-
n("div", Yc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((H = (He = (Ue = (
|
|
7448
|
-
n("div", Hc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ve = (
|
|
7448
|
+
n("div", Yc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((H = (He = (Ue = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : He.meta) == null ? void 0 : H.availabilityTime)), 1),
|
|
7449
|
+
n("div", Hc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ve = (Ze = (Ee = (ve = a.models) == null ? void 0 : ve.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : Ze.meta) == null ? void 0 : Ve.initialisationTime)), 1),
|
|
7449
7450
|
n("div", Uc, y((ne = (Ne = (te = a.models) == null ? void 0 : te.weather) == null ? void 0 : Ne.ECMWF) == null ? void 0 : ne.source) + " " + y((it = (at = (ot = a.models) == null ? void 0 : ot.weather) == null ? void 0 : at.ECMWF) == null ? void 0 : it.spatialResolution) + y(t.$t("units.km")) + " " + y((ht = (dt = (mt = (Fe = a.models) == null ? void 0 : Fe.weather) == null ? void 0 : mt.ECMWF) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + y(t.$t("units.days")), 1),
|
|
7450
7451
|
n("div", Jc, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7451
7452
|
n("div", Kc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.weather) == null ? void 0 : ut.ECMWF) == null ? void 0 : gt.meta) == null ? void 0 : ft.availabilityTime)), 1),
|
|
@@ -7455,7 +7456,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7455
7456
|
n("div", $c, y((Lt = (kt = (At = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : At.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : Lt.source) + " " + y((Mt = (Ct = (_t = (zt = a.models) == null ? void 0 : zt.marine) == null ? void 0 : _t.wave) == null ? void 0 : Ct.NOAA) == null ? void 0 : Mt.spatialResolution) + y(t.$t("units.km")) + " " + y((It = (Rt = (Tt = (St = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : St.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : Rt.meta) == null ? void 0 : It.days) + y(t.$t("units.days")), 1),
|
|
7456
7457
|
n("div", em, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7457
7458
|
n("div", tm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((jt = (Ft = (Gt = (Et = (Dt = a.models) == null ? void 0 : Dt.marine) == null ? void 0 : Et.wave) == null ? void 0 : Gt.NOAA) == null ? void 0 : Ft.meta) == null ? void 0 : jt.availabilityTime)), 1),
|
|
7458
|
-
n("div", om, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Vt = (
|
|
7459
|
+
n("div", om, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Vt = (Zt = (Wt = (Nt = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Nt.wave) == null ? void 0 : Wt.NOAA) == null ? void 0 : Zt.meta) == null ? void 0 : Vt.initialisationTime)), 1),
|
|
7459
7460
|
n("div", am, y((Ht = (Yt = (Ot = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Ot.wave) == null ? void 0 : Yt.ECMWF) == null ? void 0 : Ht.source) + " " + y((Qt = (Kt = (Jt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Jt.wave) == null ? void 0 : Kt.ECMWF) == null ? void 0 : Qt.spatialResolution) + y(t.$t("units.km")) + " " + y((oo = (to = (eo = ($t = (qt = a.models) == null ? void 0 : qt.marine) == null ? void 0 : $t.wave) == null ? void 0 : eo.ECMWF) == null ? void 0 : to.meta) == null ? void 0 : oo.days) + y(t.$t("units.days")), 1),
|
|
7460
7461
|
n("div", im, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7461
7462
|
n("div", rm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((no = (lo = (ro = (io = (ao = a.models) == null ? void 0 : ao.marine) == null ? void 0 : io.wave) == null ? void 0 : ro.ECMWF) == null ? void 0 : lo.meta) == null ? void 0 : no.availabilityTime)), 1),
|
|
@@ -7937,16 +7938,16 @@ let wi = class {
|
|
|
7937
7938
|
}
|
|
7938
7939
|
static pickHourly(e, o) {
|
|
7939
7940
|
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, _, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, Ce, De;
|
|
7940
|
-
const re = typeof o == "string" ? T(o) : o, Me = e == null ? void 0 : e.weather, pe = e == null ? void 0 : e.marine, xe = T((a = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(),
|
|
7941
|
-
if (re.isBetween(
|
|
7942
|
-
const H = re.utc().diff(
|
|
7941
|
+
const re = typeof o == "string" ? T(o) : o, Me = e == null ? void 0 : e.weather, pe = e == null ? void 0 : e.marine, xe = T((a = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), We = xe.clone().add((c = (l = (r = Me == null ? void 0 : Me[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = xe.clone().add((m = (d = (s = Me == null ? void 0 : Me[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), He = [];
|
|
7942
|
+
if (re.isBetween(We, Ue, "millisecond", "[]")) {
|
|
7943
|
+
const H = re.utc().diff(We, "h", !1);
|
|
7943
7944
|
let ve, Ee;
|
|
7944
7945
|
if (Me) {
|
|
7945
|
-
let
|
|
7946
|
+
let Ze = 0, Ve = 0, te = 0;
|
|
7946
7947
|
for (const Ne of Me) {
|
|
7947
7948
|
const ne = Ne == null ? void 0 : Ne.hourly;
|
|
7948
7949
|
for (let Fe = H - (H - 1) % 3; Fe <= H; Fe++)
|
|
7949
|
-
|
|
7950
|
+
Ze += (p = ne == null ? void 0 : ne.precipitation) == null ? void 0 : p.at(Fe);
|
|
7950
7951
|
for (let Fe = H - (H - 1) % 6; Fe <= H; Fe++)
|
|
7951
7952
|
Ve += (u = ne == null ? void 0 : ne.precipitation) == null ? void 0 : u.at(Fe);
|
|
7952
7953
|
for (let Fe = H - (H - 1) % 12; Fe <= H; Fe++)
|
|
@@ -7960,7 +7961,7 @@ let wi = class {
|
|
|
7960
7961
|
probability: (v = ne == null ? void 0 : ne.precipitation_probability) == null ? void 0 : v.at(H),
|
|
7961
7962
|
sum: (_ = ne == null ? void 0 : ne.precipitation) == null ? void 0 : _.at(H),
|
|
7962
7963
|
sum1Hours: (L = ne == null ? void 0 : ne.precipitation) == null ? void 0 : L.at(H),
|
|
7963
|
-
sum3Hours: Math.round(
|
|
7964
|
+
sum3Hours: Math.round(Ze * 100) / 100,
|
|
7964
7965
|
sum6Hours: Math.round(Ve * 100) / 100,
|
|
7965
7966
|
sum12Hours: Math.round(te * 100) / 100
|
|
7966
7967
|
},
|
|
@@ -7979,14 +7980,14 @@ let wi = class {
|
|
|
7979
7980
|
};
|
|
7980
7981
|
const { name: ot, url: at, bg: it } = this.parseWeatherCode(ve.code, ve.isDay);
|
|
7981
7982
|
ve.name = ot, ve.url = at, ve.bg = it, ve.wind.scale = this.beaufort(this.kts2ms(ve.wind.kts)), ve.wind.direction = this.degree2Direction(ve.wind.degree), He.push({
|
|
7982
|
-
utc:
|
|
7983
|
+
utc: We.add(H, "h").format(),
|
|
7983
7984
|
model: Ne.model,
|
|
7984
7985
|
weather: { ...ve }
|
|
7985
7986
|
});
|
|
7986
7987
|
}
|
|
7987
7988
|
}
|
|
7988
7989
|
if (pe) {
|
|
7989
|
-
let
|
|
7990
|
+
let Ze = 0;
|
|
7990
7991
|
for (const Ve of pe) {
|
|
7991
7992
|
const te = Ve == null ? void 0 : Ve.hourly;
|
|
7992
7993
|
Ee = {
|
|
@@ -8020,7 +8021,7 @@ let wi = class {
|
|
|
8020
8021
|
},
|
|
8021
8022
|
sst: (Ce = te == null ? void 0 : te.sea_surface_temperature) == null ? void 0 : Ce.at(H),
|
|
8022
8023
|
height: (De = te == null ? void 0 : te.sea_level_height_msl) == null ? void 0 : De.at(H)
|
|
8023
|
-
}, Ee.wave = this.parseWave(Ee.wave, ve == null ? void 0 : ve.wind), Ee.current.direction = this.degree2Direction(Ee.current.degree), Object.assign(He[
|
|
8024
|
+
}, Ee.wave = this.parseWave(Ee.wave, ve == null ? void 0 : ve.wind), Ee.current.direction = this.degree2Direction(Ee.current.degree), Object.assign(He[Ze], Ee), Ze++;
|
|
8024
8025
|
}
|
|
8025
8026
|
}
|
|
8026
8027
|
}
|
|
@@ -8089,8 +8090,8 @@ let wi = class {
|
|
|
8089
8090
|
bearing: ((Q = pe.wind_direction_10m_dominant) == null ? void 0 : Q.at(re)) !== null ? (((q = pe.wind_direction_10m_dominant) == null ? void 0 : q.at(re)) + 180) % 360 : null
|
|
8090
8091
|
}
|
|
8091
8092
|
};
|
|
8092
|
-
const { name: xe, url:
|
|
8093
|
-
Ce.name = xe, Ce.url =
|
|
8093
|
+
const { name: xe, url: We, bg: Ue } = this.parseWeatherCode(Ce.code, !0);
|
|
8094
|
+
Ce.name = xe, Ce.url = We, Ce.bg = Ue, Ce.wind.scale = this.beaufort(this.kts2ms(Ce.wind.kts)), Ce.wind.direction = this.degree2Direction(Ce.wind.degree), Be.push({
|
|
8094
8095
|
utc: me.add(re, "d").utc().format(),
|
|
8095
8096
|
model: Me.model,
|
|
8096
8097
|
weather: { ...Ce }
|
|
@@ -8612,7 +8613,7 @@ const um = {
|
|
|
8612
8613
|
showTropicalsInfo: !1,
|
|
8613
8614
|
activeTropicals: void 0,
|
|
8614
8615
|
activeTropicalsMarker: void 0,
|
|
8615
|
-
empty:
|
|
8616
|
+
empty: W.featureCollection([]),
|
|
8616
8617
|
showLegend: !1,
|
|
8617
8618
|
showHoverPoint: !1,
|
|
8618
8619
|
hoverPoint: void 0,
|
|
@@ -9041,7 +9042,7 @@ const um = {
|
|
|
9041
9042
|
handleDateChange() {
|
|
9042
9043
|
var t, e, o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, _, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J;
|
|
9043
9044
|
if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9044
|
-
const K = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((D) => D.properties.date === (K == null ? void 0 : K.format()) && !D.properties.disabled), Y = this.handleComputePolygons(ae), O =
|
|
9045
|
+
const K = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((D) => D.properties.date === (K == null ? void 0 : K.format()) && !D.properties.disabled), Y = this.handleComputePolygons(ae), O = W.featureCollection([...ae]);
|
|
9045
9046
|
Y.forEach((D) => {
|
|
9046
9047
|
O.features.push(D);
|
|
9047
9048
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(O) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -9149,7 +9150,7 @@ const um = {
|
|
|
9149
9150
|
d.properties.category === e && (d.properties.disabled = t.disabled);
|
|
9150
9151
|
}), this.interpolateData.forEach((d) => {
|
|
9151
9152
|
d.properties.category === e && (d.properties.disabled = t.disabled);
|
|
9152
|
-
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(
|
|
9153
|
+
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (s = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || s.setData(W.featureCollection(o)), this.handleDateChange();
|
|
9153
9154
|
},
|
|
9154
9155
|
handleStrikeProbability(t) {
|
|
9155
9156
|
this.$emit("tropicalProbability", t);
|
|
@@ -9188,22 +9189,22 @@ const um = {
|
|
|
9188
9189
|
let s;
|
|
9189
9190
|
switch (l) {
|
|
9190
9191
|
case "ne":
|
|
9191
|
-
s =
|
|
9192
|
+
s = W.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9192
9193
|
break;
|
|
9193
9194
|
case "se":
|
|
9194
|
-
s =
|
|
9195
|
+
s = W.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9195
9196
|
break;
|
|
9196
9197
|
case "sw":
|
|
9197
|
-
s =
|
|
9198
|
+
s = W.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9198
9199
|
break;
|
|
9199
9200
|
case "nw":
|
|
9200
|
-
s =
|
|
9201
|
+
s = W.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9201
9202
|
break;
|
|
9202
9203
|
}
|
|
9203
9204
|
i.push(...(r = s == null ? void 0 : s.geometry) == null ? void 0 : r.coordinates);
|
|
9204
9205
|
}
|
|
9205
|
-
const a =
|
|
9206
|
-
return
|
|
9206
|
+
const a = W.lineString(i);
|
|
9207
|
+
return W.lineToPolygon(a, { properties: o });
|
|
9207
9208
|
},
|
|
9208
9209
|
handleNotification(t) {
|
|
9209
9210
|
this.$emit("tropicalNotification", t);
|
|
@@ -9246,7 +9247,7 @@ const um = {
|
|
|
9246
9247
|
}, Im = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Dm = { class: "more" }, Em = {
|
|
9247
9248
|
key: 0,
|
|
9248
9249
|
class: "w-100 d-flex justify-space-between align-center px-2"
|
|
9249
|
-
}, Gm = { class: "pa-1" }, Fm = { class: "legend d-flex justify-start align-center py-2" }, jm = { class: "label" }, Bm = { class: "legend d-flex justify-start align-center py-2" }, Nm = { class: "label" },
|
|
9250
|
+
}, Gm = { class: "pa-1" }, Fm = { class: "legend d-flex justify-start align-center py-2" }, jm = { class: "label" }, Bm = { class: "legend d-flex justify-start align-center py-2" }, Nm = { class: "label" }, Wm = { class: "legend d-flex justify-start align-center py-2" }, Zm = { class: "label" }, Vm = { class: "pa-1" }, Xm = { class: "legend d-flex justify-start align-center py-2" }, Om = { class: "label" }, Ym = { class: "legend d-flex justify-start align-center py-2" }, Hm = { class: "label" }, Um = { class: "legend d-flex justify-start align-center py-2" }, Jm = { class: "label" }, Km = { class: "pa-1" }, Qm = { class: "w-100 legend d-flex justify-start align-center py-2 ga-2" }, qm = { class: "label" }, $m = { class: "label" }, ed = { class: "w-100 legend d-flex justify-start align-center py-2" }, td = { class: "label" }, od = { class: "w-100 legend d-flex justify-start align-center py-2" }, ad = { class: "label" }, id = {
|
|
9250
9251
|
key: 1,
|
|
9251
9252
|
class: "my-3 w-100",
|
|
9252
9253
|
style: { height: "80px" }
|
|
@@ -9268,7 +9269,7 @@ const um = {
|
|
|
9268
9269
|
}, jd = { class: "text-label pr-1" }, Bd = {
|
|
9269
9270
|
key: 5,
|
|
9270
9271
|
class: "d-flex justify-start align-center"
|
|
9271
|
-
}, Nd = { class: "text-label pr-1" },
|
|
9272
|
+
}, Nd = { class: "text-label pr-1" }, Wd = { class: "d-flex justify-start align-center" }, Zd = { class: "text-label pr-1" }, Vd = {
|
|
9272
9273
|
key: 6,
|
|
9273
9274
|
class: "d-flex justify-start align-center"
|
|
9274
9275
|
}, Xd = { class: "text-label pr-1" }, Od = {
|
|
@@ -9387,7 +9388,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9387
9388
|
onClick: Le((S) => r.handleForecastToggle(z), ["stop"])
|
|
9388
9389
|
}, {
|
|
9389
9390
|
default: x(() => [
|
|
9390
|
-
|
|
9391
|
+
Z(y(z.model), 1)
|
|
9391
9392
|
]),
|
|
9392
9393
|
_: 2
|
|
9393
9394
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -9415,7 +9416,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9415
9416
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9416
9417
|
])),
|
|
9417
9418
|
default: x(() => [
|
|
9418
|
-
|
|
9419
|
+
Z(" " + y(t.$t("weather.legend")), 1)
|
|
9419
9420
|
]),
|
|
9420
9421
|
_: 1
|
|
9421
9422
|
}, 8, ["color"]),
|
|
@@ -9428,7 +9429,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9428
9429
|
onClick: e[1] || (e[1] = Le((b) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
9429
9430
|
}, {
|
|
9430
9431
|
default: x(() => [
|
|
9431
|
-
|
|
9432
|
+
Z(y(t.$t("actions.viewReport")), 1)
|
|
9432
9433
|
]),
|
|
9433
9434
|
_: 1
|
|
9434
9435
|
})
|
|
@@ -9449,9 +9450,9 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9449
9450
|
e[6] || (e[6] = n("div", { class: "icon sts" }, null, -1)),
|
|
9450
9451
|
n("div", Nm, y(t.$t("tropical.sts")), 1)
|
|
9451
9452
|
]),
|
|
9452
|
-
n("div",
|
|
9453
|
+
n("div", Wm, [
|
|
9453
9454
|
e[7] || (e[7] = n("div", { class: "icon sty" }, null, -1)),
|
|
9454
|
-
n("div",
|
|
9455
|
+
n("div", Zm, y(t.$t("tropical.sty")), 1)
|
|
9455
9456
|
])
|
|
9456
9457
|
]),
|
|
9457
9458
|
n("div", Vm, [
|
|
@@ -9593,8 +9594,8 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9593
9594
|
n("label", Nd, y(t.$t("weather.wind")) + " : ", 1),
|
|
9594
9595
|
n("span", null, y(((F = a.hoverPoint) == null ? void 0 : F.kts) ?? "-") + " kts", 1)
|
|
9595
9596
|
])) : G("", !0),
|
|
9596
|
-
n("div",
|
|
9597
|
-
n("label",
|
|
9597
|
+
n("div", Wd, [
|
|
9598
|
+
n("label", Zd, y(t.$t("weather.pressure")) + " : ", 1),
|
|
9598
9599
|
n("span", null, y(((N = a.hoverPoint) == null ? void 0 : N.pressure) ?? "-") + " hPa", 1)
|
|
9599
9600
|
]),
|
|
9600
9601
|
((B = a.hoverPoint) == null ? void 0 : B.type) === "history" ? (A(), I("div", Vd, [
|
|
@@ -9621,7 +9622,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9621
9622
|
])
|
|
9622
9623
|
]);
|
|
9623
9624
|
}
|
|
9624
|
-
const
|
|
9625
|
+
const Zi = /* @__PURE__ */ ie(um, [["render", Jd]]);
|
|
9625
9626
|
const Kd = {
|
|
9626
9627
|
name: "DateTimePicker",
|
|
9627
9628
|
props: {
|
|
@@ -9867,7 +9868,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9867
9868
|
onClick: (k) => a.currentTime = h
|
|
9868
9869
|
}, {
|
|
9869
9870
|
default: x(() => [
|
|
9870
|
-
|
|
9871
|
+
Z(y(h), 1)
|
|
9871
9872
|
]),
|
|
9872
9873
|
_: 2
|
|
9873
9874
|
}, 1032, ["onClick"])
|
|
@@ -9894,7 +9895,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9894
9895
|
onClick: r.handleCancelDate
|
|
9895
9896
|
}, {
|
|
9896
9897
|
default: x(() => [
|
|
9897
|
-
|
|
9898
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
9898
9899
|
]),
|
|
9899
9900
|
_: 1
|
|
9900
9901
|
}, 8, ["onClick"]),
|
|
@@ -9906,7 +9907,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9906
9907
|
onClick: r.handleConfirmDate
|
|
9907
9908
|
}, {
|
|
9908
9909
|
default: x(() => [
|
|
9909
|
-
|
|
9910
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
9910
9911
|
]),
|
|
9911
9912
|
_: 1
|
|
9912
9913
|
}, 8, ["onClick"])
|
|
@@ -10290,10 +10291,10 @@ const oh = {
|
|
|
10290
10291
|
}, Dh = {
|
|
10291
10292
|
style: { width: "80px" },
|
|
10292
10293
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10293
|
-
}, Eh = { class: "pa-0 text-left" }, Gh = { class: "d-flex justify-space-between align-center" }, Fh = { class: "d-flex justify-start align-center" }, jh = { class: "mx-1" }, Bh = { class: "d-flex justify-end align-center" }, Nh = { class: "mx-0 py-1 d-flex align-center justify-start" },
|
|
10294
|
+
}, Eh = { class: "pa-0 text-left" }, Gh = { class: "d-flex justify-space-between align-center" }, Fh = { class: "d-flex justify-start align-center" }, jh = { class: "mx-1" }, Bh = { class: "d-flex justify-end align-center" }, Nh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Wh = {
|
|
10294
10295
|
style: { width: "60px" },
|
|
10295
10296
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10296
|
-
},
|
|
10297
|
+
}, Zh = { class: "pa-0 px-0" }, Vh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Xh = { class: "pa-0 px-0" }, Oh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Yh = { class: "d-flex flex-column align-start justify-center ga-3" }, Hh = { class: "text-label pr-2" }, Uh = { class: "text-label pr-2" }, Jh = { class: "text-label pr-2" }, Kh = { class: "d-flex flex-column align-start justify-center ga-3" }, Qh = { class: "text-label pr-2" }, qh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, ep = { id: "idm-position-icon" }, tp = {
|
|
10297
10298
|
class: "multi-color-icon",
|
|
10298
10299
|
style: { height: "30px", width: "30px" },
|
|
10299
10300
|
"aria-hidden": "true"
|
|
@@ -10370,7 +10371,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10370
10371
|
default: x(() => [
|
|
10371
10372
|
n("div", lh, [
|
|
10372
10373
|
n("div", nh, [
|
|
10373
|
-
|
|
10374
|
+
Z(y(t.$t("spot.lat")), 1),
|
|
10374
10375
|
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
10375
10376
|
])
|
|
10376
10377
|
]),
|
|
@@ -10436,7 +10437,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10436
10437
|
onClick: e[2] || (e[2] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10437
10438
|
}, {
|
|
10438
10439
|
default: x(() => [
|
|
10439
|
-
|
|
10440
|
+
Z(y(a.form.latDirection), 1)
|
|
10440
10441
|
]),
|
|
10441
10442
|
_: 1
|
|
10442
10443
|
})
|
|
@@ -10448,7 +10449,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10448
10449
|
}),
|
|
10449
10450
|
n("div", sh, [
|
|
10450
10451
|
n("div", ch, [
|
|
10451
|
-
|
|
10452
|
+
Z(y(t.$t("spot.lng")), 1),
|
|
10452
10453
|
e[13] || (e[13] = n("span", { class: "text-danger" }, "*", -1))
|
|
10453
10454
|
])
|
|
10454
10455
|
]),
|
|
@@ -10511,7 +10512,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10511
10512
|
onClick: e[5] || (e[5] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10512
10513
|
}, {
|
|
10513
10514
|
default: x(() => [
|
|
10514
|
-
|
|
10515
|
+
Z(y(a.form.lngDirection), 1)
|
|
10515
10516
|
]),
|
|
10516
10517
|
_: 1
|
|
10517
10518
|
})
|
|
@@ -10523,7 +10524,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10523
10524
|
}),
|
|
10524
10525
|
n("div", mh, [
|
|
10525
10526
|
n("div", dh, [
|
|
10526
|
-
|
|
10527
|
+
Z(y(t.$t("spot.dateTime")), 1),
|
|
10527
10528
|
e[16] || (e[16] = n("span", { class: "text-danger" }, "*", -1))
|
|
10528
10529
|
])
|
|
10529
10530
|
]),
|
|
@@ -10548,7 +10549,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10548
10549
|
}),
|
|
10549
10550
|
n("div", hh, [
|
|
10550
10551
|
n("div", ph, [
|
|
10551
|
-
|
|
10552
|
+
Z(y(t.$t("weather.forecastModel")), 1),
|
|
10552
10553
|
e[17] || (e[17] = n("span", { class: "text-danger" }, "*", -1))
|
|
10553
10554
|
])
|
|
10554
10555
|
]),
|
|
@@ -10579,7 +10580,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10579
10580
|
"base-color": ""
|
|
10580
10581
|
}, {
|
|
10581
10582
|
default: x(() => e[18] || (e[18] = [
|
|
10582
|
-
|
|
10583
|
+
Z(" NOAA ", -1)
|
|
10583
10584
|
])),
|
|
10584
10585
|
_: 1,
|
|
10585
10586
|
__: [18]
|
|
@@ -10593,7 +10594,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10593
10594
|
value: "ECMWF"
|
|
10594
10595
|
}, {
|
|
10595
10596
|
default: x(() => e[19] || (e[19] = [
|
|
10596
|
-
|
|
10597
|
+
Z(" ECMWF ", -1)
|
|
10597
10598
|
])),
|
|
10598
10599
|
_: 1,
|
|
10599
10600
|
__: [19]
|
|
@@ -10620,7 +10621,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10620
10621
|
onClick: r.cancelForm
|
|
10621
10622
|
}, {
|
|
10622
10623
|
default: x(() => [
|
|
10623
|
-
|
|
10624
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
10624
10625
|
]),
|
|
10625
10626
|
_: 1
|
|
10626
10627
|
}, 8, ["onClick"]),
|
|
@@ -10634,7 +10635,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10634
10635
|
class: "text-none text-body-1"
|
|
10635
10636
|
}, {
|
|
10636
10637
|
default: x(() => [
|
|
10637
|
-
|
|
10638
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
10638
10639
|
]),
|
|
10639
10640
|
_: 1
|
|
10640
10641
|
}, 8, ["loading"])
|
|
@@ -10735,7 +10736,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10735
10736
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
10736
10737
|
])),
|
|
10737
10738
|
default: x(() => [
|
|
10738
|
-
|
|
10739
|
+
Z(" " + y(t.$t("actions.unfollow")), 1)
|
|
10739
10740
|
]),
|
|
10740
10741
|
_: 1
|
|
10741
10742
|
}, 8, ["onClick"])) : (A(), j(l, {
|
|
@@ -10751,7 +10752,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10751
10752
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
10752
10753
|
])),
|
|
10753
10754
|
default: x(() => [
|
|
10754
|
-
|
|
10755
|
+
Z(y(t.$t("actions.follow")) + " ", 1)
|
|
10755
10756
|
]),
|
|
10756
10757
|
_: 1
|
|
10757
10758
|
}, 8, ["onClick"])),
|
|
@@ -10764,7 +10765,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10764
10765
|
onClick: Le(r.handleMeteoMore, ["stop"])
|
|
10765
10766
|
}, {
|
|
10766
10767
|
default: x(() => [
|
|
10767
|
-
|
|
10768
|
+
Z(y(t.$t("spot.forecast")), 1)
|
|
10768
10769
|
]),
|
|
10769
10770
|
_: 1
|
|
10770
10771
|
}, 8, ["onClick"])
|
|
@@ -10853,8 +10854,8 @@ function ap(t, e, o, i, a, r) {
|
|
|
10853
10854
|
var _, L;
|
|
10854
10855
|
return [
|
|
10855
10856
|
n("div", Nh, [
|
|
10856
|
-
n("div",
|
|
10857
|
-
n("div",
|
|
10857
|
+
n("div", Wh, y(t.$t("time.time")), 1),
|
|
10858
|
+
n("div", Zh, y(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
10858
10859
|
]),
|
|
10859
10860
|
n("div", Vh, [
|
|
10860
10861
|
e[30] || (e[30] = n("div", {
|
|
@@ -10976,7 +10977,7 @@ const rp = {
|
|
|
10976
10977
|
else {
|
|
10977
10978
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
|
|
10978
10979
|
let i = this.geojson.find((a) => !a.closed);
|
|
10979
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
10980
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
10980
10981
|
}
|
|
10981
10982
|
},
|
|
10982
10983
|
immediate: !0
|
|
@@ -11071,8 +11072,8 @@ const rp = {
|
|
|
11071
11072
|
d.features = d.features.filter((m) => m.geometry.type === "Point" && m.properties.id !== s[1]), this.handlePointUpdate(d);
|
|
11072
11073
|
} else if (e !== "marker-label" && this.toggle) {
|
|
11073
11074
|
let s = this.geojson.at(-1);
|
|
11074
|
-
s || (s =
|
|
11075
|
-
const d =
|
|
11075
|
+
s || (s = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(s)), s.features = s.features.filter((m) => m.geometry.type === "Point");
|
|
11076
|
+
const d = W.feature(
|
|
11076
11077
|
{
|
|
11077
11078
|
type: "Point",
|
|
11078
11079
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -11096,7 +11097,7 @@ const rp = {
|
|
|
11096
11097
|
o = X.roundPrecision(o + m, 4);
|
|
11097
11098
|
let u;
|
|
11098
11099
|
c.mode === "RL" ? u = X.convertToMonotonicLng([s, d]) : u = X.convertToMonotonicLng(Oe.interpolateCoordinates(s, d, 200));
|
|
11099
|
-
const b =
|
|
11100
|
+
const b = W.lineString(u.map((h) => [h.lng, h.lat]));
|
|
11100
11101
|
b.properties.dist = m, b.properties.bearing = p, b.properties.total = o, b.properties.name = "Line " + this.currentLineIndex, i.push(b);
|
|
11101
11102
|
const g = e[a];
|
|
11102
11103
|
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + m, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
@@ -11106,14 +11107,14 @@ const rp = {
|
|
|
11106
11107
|
return this.handleRender(t), t;
|
|
11107
11108
|
},
|
|
11108
11109
|
handleTmpPointUpdate(t, e, o, i) {
|
|
11109
|
-
const a =
|
|
11110
|
+
const a = W.featureCollection([]);
|
|
11110
11111
|
let r, l;
|
|
11111
11112
|
if (e) {
|
|
11112
11113
|
const s = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, m = { lng: o.lng, lat: o.lat };
|
|
11113
11114
|
r = Oe.calculateDistance(d, m, s.mode === "RL", 4), l = Oe.calculateBearing(d, m, s.mode === "RL", 2);
|
|
11114
11115
|
let p;
|
|
11115
11116
|
s.mode === "RL" ? p = X.convertToMonotonicLng([d, m]) : p = X.convertToMonotonicLng(Oe.interpolateCoordinates(d, m, 200));
|
|
11116
|
-
const u =
|
|
11117
|
+
const u = W.lineString(p.map((b) => [b.lng, b.lat]));
|
|
11117
11118
|
u.properties.dist = r, u.properties.bearing = l, a.features.push(u);
|
|
11118
11119
|
}
|
|
11119
11120
|
if (i) {
|
|
@@ -11121,7 +11122,7 @@ const rp = {
|
|
|
11121
11122
|
r = Oe.calculateDistance(d, m, s.mode === "RL", 4), l = Oe.calculateBearing(d, m, s.mode === "RL", 2);
|
|
11122
11123
|
let p;
|
|
11123
11124
|
s.mode === "RL" ? p = X.convertToMonotonicLng([d, m]) : p = X.convertToMonotonicLng(Oe.interpolateCoordinates(d, m, 200));
|
|
11124
|
-
const u =
|
|
11125
|
+
const u = W.lineString(p.map((b) => [b.lng, b.lat]));
|
|
11125
11126
|
u.properties.dist = r, u.properties.bearing = l, a.features.push(u);
|
|
11126
11127
|
}
|
|
11127
11128
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -11183,14 +11184,14 @@ const rp = {
|
|
|
11183
11184
|
handleMove(t) {
|
|
11184
11185
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
11185
11186
|
let e = this.geojson.at(-1);
|
|
11186
|
-
e || (e =
|
|
11187
|
+
e || (e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
11187
11188
|
const o = e.features.filter((i) => i.geometry.type === "Point");
|
|
11188
11189
|
o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
11189
11190
|
},
|
|
11190
11191
|
handleDblClick(t) {
|
|
11191
11192
|
t.preventDefault();
|
|
11192
11193
|
let e = this.geojson.at(-1);
|
|
11193
|
-
e.closed = !0, this.handleRender(e), e =
|
|
11194
|
+
e.closed = !0, this.handleRender(e), e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
11194
11195
|
},
|
|
11195
11196
|
handleRender(t) {
|
|
11196
11197
|
var e;
|
|
@@ -11499,7 +11500,7 @@ const cp = {
|
|
|
11499
11500
|
},
|
|
11500
11501
|
handlerRenderEditLine(t) {
|
|
11501
11502
|
this.drawCoords = t.geometry.coordinates.map((i) => [...i]);
|
|
11502
|
-
const e =
|
|
11503
|
+
const e = W.featureCollection([t, ...this.drawCoords.map((i) => W.point(i))]);
|
|
11503
11504
|
this.handleSetDrawSource(e);
|
|
11504
11505
|
const o = 3;
|
|
11505
11506
|
this.map.getLayer(this.drawLineLayer) || this.map.addLayer({
|
|
@@ -11526,26 +11527,26 @@ const cp = {
|
|
|
11526
11527
|
}), a.on("drag", () => {
|
|
11527
11528
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11528
11529
|
const { lng: r, lat: l } = a.getLngLat();
|
|
11529
|
-
this.handleUpdateVertexLabel([r, l]), this.drawCoords[o] = [r, l], this.handlerRenderEditLine(
|
|
11530
|
+
this.handleUpdateVertexLabel([r, l]), this.drawCoords[o] = [r, l], this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color }));
|
|
11530
11531
|
}), a.on("dragend", () => {
|
|
11531
11532
|
this.map.getCanvas().style.cursor = "grab";
|
|
11532
11533
|
const { lng: r, lat: l } = a.getLngLat();
|
|
11533
|
-
this.drawCoords[o] = [r, l], this.handlerRenderEditLine(
|
|
11534
|
+
this.drawCoords[o] = [r, l], this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.handleClearVertexLabels();
|
|
11534
11535
|
}), i.addEventListener("contextmenu", (r) => {
|
|
11535
11536
|
r.preventDefault(), r.stopPropagation(), this.drawCoords.length > 2 && this.showDeleteButton(e, () => {
|
|
11536
|
-
this.drawCoords.splice(o, 1), this.handlerRenderEditLine(
|
|
11537
|
+
this.drawCoords.splice(o, 1), this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
|
|
11537
11538
|
});
|
|
11538
11539
|
}), this.editMarkers.push(a);
|
|
11539
11540
|
});
|
|
11540
11541
|
const t = (e) => {
|
|
11541
11542
|
e.preventDefault();
|
|
11542
|
-
const { lng: o, lat: i } = e.lngLat, a =
|
|
11543
|
+
const { lng: o, lat: i } = e.lngLat, a = W.point([o, i]), r = W.lineString(this.drawCoords), l = W.nearestPointOnLine(r, a);
|
|
11543
11544
|
if (l) {
|
|
11544
11545
|
const c = l.properties.index;
|
|
11545
11546
|
this.showDeleteButton(
|
|
11546
11547
|
[o, i],
|
|
11547
11548
|
() => {
|
|
11548
|
-
this.drawCoords.splice(c + 1, 0, [o, i]), this.handlerRenderEditLine(
|
|
11549
|
+
this.drawCoords.splice(c + 1, 0, [o, i]), this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
|
|
11549
11550
|
},
|
|
11550
11551
|
this.$t("actions.add") || "新增",
|
|
11551
11552
|
"add"
|
|
@@ -11633,7 +11634,7 @@ const cp = {
|
|
|
11633
11634
|
});
|
|
11634
11635
|
const o = (i) => {
|
|
11635
11636
|
i.preventDefault();
|
|
11636
|
-
const { lng: a, lat: r } = i.lngLat, l =
|
|
11637
|
+
const { lng: a, lat: r } = i.lngLat, l = W.point([a, r]), c = W.lineString([...this.drawCoords, this.drawCoords[0]]), s = W.nearestPointOnLine(c, l);
|
|
11637
11638
|
if (s) {
|
|
11638
11639
|
const d = s.properties.index, m = d >= this.drawCoords.length - 1 ? this.drawCoords.length - 1 : d;
|
|
11639
11640
|
this.showDeleteButton(
|
|
@@ -11694,7 +11695,7 @@ const cp = {
|
|
|
11694
11695
|
t == null || t.forEach((a, r) => {
|
|
11695
11696
|
e.push(Xe.drawPoint(a == null ? void 0 : a[1], a == null ? void 0 : a[0]));
|
|
11696
11697
|
}), (t == null ? void 0 : t.length) >= 2 && e.push(Xe.drawLine(t));
|
|
11697
|
-
const o = 2, i =
|
|
11698
|
+
const o = 2, i = W.featureCollection(e);
|
|
11698
11699
|
this.handleSetDrawSource(i), this.map.getLayer(this.drawLineLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-color", this.form.color), this.map.setPaintProperty(this.drawLineLayer, "line-width", o), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
|
|
11699
11700
|
id: this.drawLineLayer,
|
|
11700
11701
|
type: "line",
|
|
@@ -11719,7 +11720,7 @@ const cp = {
|
|
|
11719
11720
|
}));
|
|
11720
11721
|
},
|
|
11721
11722
|
handleRenderTmpLine(t, e) {
|
|
11722
|
-
const o = Xe.drawLine([t, e]), i =
|
|
11723
|
+
const o = Xe.drawLine([t, e]), i = W.featureCollection([o]);
|
|
11723
11724
|
this.map.getSource(this.drawTmpSource) ? this.map.getSource(this.drawTmpSource).setData(i) : this.map.addSource(this.drawTmpSource, { type: "geojson", data: i }), this.map.getLayer(this.drawTmpLayer) || this.map.addLayer({
|
|
11724
11725
|
id: this.drawTmpLayer,
|
|
11725
11726
|
type: "line",
|
|
@@ -11770,12 +11771,12 @@ const cp = {
|
|
|
11770
11771
|
var a;
|
|
11771
11772
|
let e = [];
|
|
11772
11773
|
if (t == null || t.forEach((r, l) => {
|
|
11773
|
-
e.push(
|
|
11774
|
+
e.push(W.point(r));
|
|
11774
11775
|
}), (t == null ? void 0 : t.length) > 2) {
|
|
11775
11776
|
const r = [...t, t[0]];
|
|
11776
11777
|
e.push(Xe.drawPolygon(r, { ...this.originalProperties }));
|
|
11777
11778
|
}
|
|
11778
|
-
const o =
|
|
11779
|
+
const o = W.featureCollection(e);
|
|
11779
11780
|
this.handleSetDrawSource(o);
|
|
11780
11781
|
const i = (a = this.editLayer) != null && a.id ? 3 : 2;
|
|
11781
11782
|
this.map.getLayer(this.drawFillLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-width", i), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
|
|
@@ -11846,7 +11847,7 @@ const cp = {
|
|
|
11846
11847
|
const { lng: e, lat: o } = t.lngLat;
|
|
11847
11848
|
if (this.drawCoords.length === 0) {
|
|
11848
11849
|
this.drawCoords.push([e, o]);
|
|
11849
|
-
const i =
|
|
11850
|
+
const i = W.featureCollection([W.point([e, o])]);
|
|
11850
11851
|
this.handleSetDrawSource(i), this.map.getLayer(this.drawPointLayer) || this.map.addLayer({
|
|
11851
11852
|
id: this.drawPointLayer,
|
|
11852
11853
|
type: "circle",
|
|
@@ -11860,14 +11861,14 @@ const cp = {
|
|
|
11860
11861
|
}
|
|
11861
11862
|
}), this.handleRenderCircleCenterLabel([e, o]);
|
|
11862
11863
|
} else {
|
|
11863
|
-
const i = this.drawCoords[0], a = [e, o], r =
|
|
11864
|
+
const i = this.drawCoords[0], a = [e, o], r = W.distance(W.point(i), W.point(a), { units: "nauticalmiles" }), l = Xe.drawCircle(i[0], i[1], r), c = W.featureCollection([W.point(i), l]);
|
|
11864
11865
|
this.handleSetDrawSource(c), this.handleRenderAreaLayers(), this.handleRenderRadiusLine(i, a, r), this.drawCoords = [i, a], this.map.off("click", this.handleMapClickCircle), this.map.off("mousemove", this.handleMapMoveCircle);
|
|
11865
11866
|
}
|
|
11866
11867
|
},
|
|
11867
11868
|
handleMapMoveCircle(t) {
|
|
11868
11869
|
if (this.drawCoords.length !== 1)
|
|
11869
11870
|
return;
|
|
11870
|
-
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i =
|
|
11871
|
+
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = W.distance(W.point(e), W.point(o), { units: "nauticalmiles" }), a = Xe.drawCircle(e[0], e[1], i), r = W.featureCollection([W.point(e), a]);
|
|
11871
11872
|
this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderAreaLayers(), this.handleRenderRadiusLine(e, o, i);
|
|
11872
11873
|
},
|
|
11873
11874
|
handleRenderCircleCenterLabel(t) {
|
|
@@ -11877,7 +11878,7 @@ const cp = {
|
|
|
11877
11878
|
this.circleMarkers.push(a);
|
|
11878
11879
|
},
|
|
11879
11880
|
handleRenderRadiusLine(t, e, o) {
|
|
11880
|
-
const i = X.roundPrecision(o, 2), a =
|
|
11881
|
+
const i = X.roundPrecision(o, 2), a = W.featureCollection([W.lineString([t, e])]);
|
|
11881
11882
|
this.map.getSource(this.drawRadiusSource) ? this.map.getSource(this.drawRadiusSource).setData(a) : this.map.addSource(this.drawRadiusSource, { type: "geojson", data: a }), this.map.getLayer(this.drawRadiusLayer) || this.map.addLayer({
|
|
11882
11883
|
id: this.drawRadiusLayer,
|
|
11883
11884
|
type: "line",
|
|
@@ -11920,14 +11921,14 @@ const cp = {
|
|
|
11920
11921
|
else {
|
|
11921
11922
|
const i = this.drawCoords[0], a = [e, o], r = Xe.drawRect(i, a);
|
|
11922
11923
|
delete r.bbox;
|
|
11923
|
-
const l = this.buildRectFeatureCollection(i, a), c =
|
|
11924
|
+
const l = this.buildRectFeatureCollection(i, a), c = W.featureCollection([r, ...l.map((s) => W.point(s))]);
|
|
11924
11925
|
this.handleSetDrawSource(c), this.handleRenderRectLayers(), this.handleRenderRectCorners(i, a), this.drawCoords = [i, a], this.map.off("click", this.handleMapClickRect), this.map.off("mousemove", this.handleMapMoveRect);
|
|
11925
11926
|
}
|
|
11926
11927
|
},
|
|
11927
11928
|
handleMapMoveRect(t) {
|
|
11928
11929
|
if (this.drawCoords.length !== 1)
|
|
11929
11930
|
return;
|
|
11930
|
-
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = Xe.drawRect(e, o), a = this.buildRectFeatureCollection(e, o), r =
|
|
11931
|
+
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = Xe.drawRect(e, o), a = this.buildRectFeatureCollection(e, o), r = W.featureCollection([i, ...a.map((l) => W.point(l))]);
|
|
11931
11932
|
this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderRectLayers(), this.handleRenderRectCorners(e, o);
|
|
11932
11933
|
},
|
|
11933
11934
|
handleRenderRectLayers() {
|
|
@@ -12043,7 +12044,7 @@ const cp = {
|
|
|
12043
12044
|
if (!this.drawCoords.length)
|
|
12044
12045
|
return;
|
|
12045
12046
|
const [c, s] = this.drawCoords[0];
|
|
12046
|
-
t =
|
|
12047
|
+
t = W.featureCollection([
|
|
12047
12048
|
Xe.drawPoint(s, c, { ...this.originalProperties, color: this.form.color, name: this.form.name })
|
|
12048
12049
|
]), (l = t.features) == null || l.forEach((d) => {
|
|
12049
12050
|
d.properties.color = this.form.color, d.properties.name = this.form.name;
|
|
@@ -12066,7 +12067,7 @@ const cp = {
|
|
|
12066
12067
|
}
|
|
12067
12068
|
})
|
|
12068
12069
|
);
|
|
12069
|
-
t =
|
|
12070
|
+
t = W.featureCollection(l);
|
|
12070
12071
|
}
|
|
12071
12072
|
}) : this.markerType === "Area" && await this.$refs.areaForm.validate().then((r) => {
|
|
12072
12073
|
var l, c, s;
|
|
@@ -12080,7 +12081,7 @@ const cp = {
|
|
|
12080
12081
|
let p = ((s = m.features) == null ? void 0 : s.filter((u) => u.geometry.type === "Polygon")) || [];
|
|
12081
12082
|
if (p = p == null ? void 0 : p.map((u) => (u.properties.name = this.form.name, u.properties.color = this.form.color, u)), !p.length)
|
|
12082
12083
|
return;
|
|
12083
|
-
t =
|
|
12084
|
+
t = W.featureCollection(p);
|
|
12084
12085
|
}
|
|
12085
12086
|
}), !t)
|
|
12086
12087
|
return !1;
|
|
@@ -12169,7 +12170,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12169
12170
|
var v;
|
|
12170
12171
|
return [
|
|
12171
12172
|
n("div", hp, [
|
|
12172
|
-
|
|
12173
|
+
Z(y(t.$t("marker.markerType")), 1),
|
|
12173
12174
|
e[22] || (e[22] = n("span", { class: "text-danger" }, "*", -1))
|
|
12174
12175
|
]),
|
|
12175
12176
|
w(p, {
|
|
@@ -12192,7 +12193,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12192
12193
|
"min-height": "32px"
|
|
12193
12194
|
}, {
|
|
12194
12195
|
default: x(() => [
|
|
12195
|
-
|
|
12196
|
+
Z(y(t.$t("marker.point")), 1)
|
|
12196
12197
|
]),
|
|
12197
12198
|
_: 1
|
|
12198
12199
|
}, 8, ["class", "color"]),
|
|
@@ -12205,7 +12206,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12205
12206
|
"min-height": "32px"
|
|
12206
12207
|
}, {
|
|
12207
12208
|
default: x(() => [
|
|
12208
|
-
|
|
12209
|
+
Z(y(t.$t("marker.line")), 1)
|
|
12209
12210
|
]),
|
|
12210
12211
|
_: 1
|
|
12211
12212
|
}, 8, ["class", "color"]),
|
|
@@ -12217,7 +12218,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12217
12218
|
"min-height": "32px"
|
|
12218
12219
|
}, {
|
|
12219
12220
|
default: x(() => [
|
|
12220
|
-
|
|
12221
|
+
Z(y(t.$t("marker.area")), 1)
|
|
12221
12222
|
]),
|
|
12222
12223
|
_: 1
|
|
12223
12224
|
}, 8, ["class", "color"])
|
|
@@ -12240,7 +12241,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12240
12241
|
default: x(() => [
|
|
12241
12242
|
n("div", pp, [
|
|
12242
12243
|
n("div", up, [
|
|
12243
|
-
|
|
12244
|
+
Z(y(t.$t("marker.lat")), 1),
|
|
12244
12245
|
e[23] || (e[23] = n("span", { class: "text-danger" }, "*", -1))
|
|
12245
12246
|
]),
|
|
12246
12247
|
w(b, { class: "ma-0" }, {
|
|
@@ -12317,7 +12318,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12317
12318
|
})
|
|
12318
12319
|
}, {
|
|
12319
12320
|
default: x(() => [
|
|
12320
|
-
|
|
12321
|
+
Z(y(a.form.latDir), 1)
|
|
12321
12322
|
]),
|
|
12322
12323
|
_: 1
|
|
12323
12324
|
})
|
|
@@ -12330,7 +12331,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12330
12331
|
]),
|
|
12331
12332
|
n("div", gp, [
|
|
12332
12333
|
n("div", fp, [
|
|
12333
|
-
|
|
12334
|
+
Z(y(t.$t("marker.lng")), 1),
|
|
12334
12335
|
e[26] || (e[26] = n("span", { class: "text-danger" }, "*", -1))
|
|
12335
12336
|
]),
|
|
12336
12337
|
w(b, { class: "ma-0" }, {
|
|
@@ -12397,7 +12398,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12397
12398
|
})
|
|
12398
12399
|
}, {
|
|
12399
12400
|
default: x(() => [
|
|
12400
|
-
|
|
12401
|
+
Z(y(a.form.lngDir), 1)
|
|
12401
12402
|
]),
|
|
12402
12403
|
_: 1
|
|
12403
12404
|
})
|
|
@@ -12410,7 +12411,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12410
12411
|
]),
|
|
12411
12412
|
n("div", yp, [
|
|
12412
12413
|
n("div", bp, [
|
|
12413
|
-
|
|
12414
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12414
12415
|
e[29] || (e[29] = n("span", { class: "text-danger" }, "*", -1))
|
|
12415
12416
|
]),
|
|
12416
12417
|
n("div", wp, [
|
|
@@ -12432,7 +12433,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12432
12433
|
]),
|
|
12433
12434
|
n("div", vp, [
|
|
12434
12435
|
n("div", Ap, [
|
|
12435
|
-
|
|
12436
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12436
12437
|
e[30] || (e[30] = n("span", { class: "text-danger" }, "*", -1))
|
|
12437
12438
|
]),
|
|
12438
12439
|
w(d, {
|
|
@@ -12458,7 +12459,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12458
12459
|
onClick: r.handleClearDraw
|
|
12459
12460
|
}, {
|
|
12460
12461
|
default: x(() => [
|
|
12461
|
-
|
|
12462
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12462
12463
|
]),
|
|
12463
12464
|
_: 1
|
|
12464
12465
|
}, 8, ["onClick"]),
|
|
@@ -12471,7 +12472,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12471
12472
|
loading: a.saving
|
|
12472
12473
|
}, {
|
|
12473
12474
|
default: x(() => [
|
|
12474
|
-
|
|
12475
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12475
12476
|
]),
|
|
12476
12477
|
_: 1
|
|
12477
12478
|
}, 8, ["loading"])
|
|
@@ -12493,7 +12494,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12493
12494
|
default: x(() => [
|
|
12494
12495
|
n("div", kp, [
|
|
12495
12496
|
n("div", Lp, [
|
|
12496
|
-
|
|
12497
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12497
12498
|
e[31] || (e[31] = n("span", { class: "text-danger" }, "*", -1))
|
|
12498
12499
|
]),
|
|
12499
12500
|
n("div", zp, [
|
|
@@ -12515,7 +12516,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12515
12516
|
]),
|
|
12516
12517
|
n("div", Cp, [
|
|
12517
12518
|
n("div", Mp, [
|
|
12518
|
-
|
|
12519
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12519
12520
|
e[32] || (e[32] = n("span", { class: "text-danger" }, "*", -1))
|
|
12520
12521
|
]),
|
|
12521
12522
|
w(d, {
|
|
@@ -12541,7 +12542,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12541
12542
|
onClick: r.handleClearDraw
|
|
12542
12543
|
}, {
|
|
12543
12544
|
default: x(() => [
|
|
12544
|
-
|
|
12545
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12545
12546
|
]),
|
|
12546
12547
|
_: 1
|
|
12547
12548
|
}, 8, ["onClick"]),
|
|
@@ -12554,7 +12555,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12554
12555
|
loading: a.saving
|
|
12555
12556
|
}, {
|
|
12556
12557
|
default: x(() => [
|
|
12557
|
-
|
|
12558
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12558
12559
|
]),
|
|
12559
12560
|
_: 1
|
|
12560
12561
|
}, 8, ["loading"])
|
|
@@ -12578,7 +12579,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12578
12579
|
return [
|
|
12579
12580
|
(v = o.editLayer) != null && v.id ? G("", !0) : (A(), I("div", Pp, [
|
|
12580
12581
|
n("div", Sp, [
|
|
12581
|
-
|
|
12582
|
+
Z(y(t.$t("marker.areaType")), 1),
|
|
12582
12583
|
e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
|
|
12583
12584
|
]),
|
|
12584
12585
|
w(p, {
|
|
@@ -12602,7 +12603,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12602
12603
|
"min-height": "32px"
|
|
12603
12604
|
}, {
|
|
12604
12605
|
default: x(() => [
|
|
12605
|
-
|
|
12606
|
+
Z(y(t.$t("marker.polygon")), 1)
|
|
12606
12607
|
]),
|
|
12607
12608
|
_: 1
|
|
12608
12609
|
}, 8, ["class", "color"]),
|
|
@@ -12616,7 +12617,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12616
12617
|
"min-height": "32px"
|
|
12617
12618
|
}, {
|
|
12618
12619
|
default: x(() => [
|
|
12619
|
-
|
|
12620
|
+
Z(y(t.$t("marker.circle")), 1)
|
|
12620
12621
|
]),
|
|
12621
12622
|
_: 1
|
|
12622
12623
|
}, 8, ["class", "color"]),
|
|
@@ -12629,7 +12630,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12629
12630
|
"min-height": "32px"
|
|
12630
12631
|
}, {
|
|
12631
12632
|
default: x(() => [
|
|
12632
|
-
|
|
12633
|
+
Z(y(t.$t("marker.rect")), 1)
|
|
12633
12634
|
]),
|
|
12634
12635
|
_: 1
|
|
12635
12636
|
}, 8, ["class", "color"])
|
|
@@ -12639,7 +12640,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12639
12640
|
])),
|
|
12640
12641
|
n("div", Tp, [
|
|
12641
12642
|
n("div", Rp, [
|
|
12642
|
-
|
|
12643
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12643
12644
|
e[34] || (e[34] = n("span", { class: "text-danger" }, "*", -1))
|
|
12644
12645
|
]),
|
|
12645
12646
|
n("div", Ip, [
|
|
@@ -12661,7 +12662,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12661
12662
|
]),
|
|
12662
12663
|
n("div", Ep, [
|
|
12663
12664
|
n("div", Gp, [
|
|
12664
|
-
|
|
12665
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12665
12666
|
e[35] || (e[35] = n("span", { class: "text-danger" }, "*", -1))
|
|
12666
12667
|
]),
|
|
12667
12668
|
w(d, {
|
|
@@ -12691,7 +12692,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12691
12692
|
onClick: r.handleClearDraw
|
|
12692
12693
|
}, {
|
|
12693
12694
|
default: x(() => [
|
|
12694
|
-
|
|
12695
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12695
12696
|
]),
|
|
12696
12697
|
_: 1
|
|
12697
12698
|
}, 8, ["onClick"])),
|
|
@@ -12704,7 +12705,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12704
12705
|
loading: a.saving
|
|
12705
12706
|
}, {
|
|
12706
12707
|
default: x(() => [
|
|
12707
|
-
|
|
12708
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12708
12709
|
]),
|
|
12709
12710
|
_: 1
|
|
12710
12711
|
}, 8, ["loading"])
|
|
@@ -12949,7 +12950,7 @@ const Bp = {
|
|
|
12949
12950
|
}), this.map.getSource(t) && this.map.removeSource(t);
|
|
12950
12951
|
}
|
|
12951
12952
|
}
|
|
12952
|
-
}, Np = { class: "text-h6 font-weight-600" },
|
|
12953
|
+
}, Np = { class: "text-h6 font-weight-600" }, Wp = { class: "mb-4" }, Zp = { class: "text-label mb-1" }, Vp = { class: "mb-1" }, Xp = { class: "text-label mb-1" }, Op = { class: "color-picker-row d-flex align-start ga-2" }, Yp = ["value"], Hp = { class: "text-body-2 text-center text-label" }, Up = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, Jp = { class: "text-body-2 text-left text-label mt-1" }, Kp = {
|
|
12953
12954
|
key: 0,
|
|
12954
12955
|
class: "text-body-2 text-left text-danger mt-1"
|
|
12955
12956
|
}, Qp = {
|
|
@@ -12992,9 +12993,9 @@ function $p(t, e, o, i, a, r) {
|
|
|
12992
12993
|
default: x(() => [
|
|
12993
12994
|
w(p, { class: "px-4 text-body-1" }, {
|
|
12994
12995
|
default: x(() => [
|
|
12995
|
-
n("div",
|
|
12996
|
-
n("div",
|
|
12997
|
-
|
|
12996
|
+
n("div", Wp, [
|
|
12997
|
+
n("div", Zp, [
|
|
12998
|
+
Z(y(t.$t("marker.group")), 1),
|
|
12998
12999
|
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
12999
13000
|
]),
|
|
13000
13001
|
w(d, {
|
|
@@ -13008,7 +13009,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13008
13009
|
]),
|
|
13009
13010
|
n("div", Vp, [
|
|
13010
13011
|
n("div", Xp, [
|
|
13011
|
-
|
|
13012
|
+
Z(y(t.$t("marker.color")), 1),
|
|
13012
13013
|
e[11] || (e[11] = n("span", { class: "text-danger" }, "*", -1))
|
|
13013
13014
|
]),
|
|
13014
13015
|
n("div", Op, [
|
|
@@ -13043,7 +13044,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13043
13044
|
class: "mb-2"
|
|
13044
13045
|
}, {
|
|
13045
13046
|
default: x(() => e[12] || (e[12] = [
|
|
13046
|
-
|
|
13047
|
+
Z("mdi-cloud-upload-outline", -1)
|
|
13047
13048
|
])),
|
|
13048
13049
|
_: 1,
|
|
13049
13050
|
__: [12]
|
|
@@ -13068,12 +13069,12 @@ function $p(t, e, o, i, a, r) {
|
|
|
13068
13069
|
class: "mr-1"
|
|
13069
13070
|
}, {
|
|
13070
13071
|
default: x(() => e[13] || (e[13] = [
|
|
13071
|
-
|
|
13072
|
+
Z("mdi-check-circle", -1)
|
|
13072
13073
|
])),
|
|
13073
13074
|
_: 1,
|
|
13074
13075
|
__: [13]
|
|
13075
13076
|
}),
|
|
13076
|
-
|
|
13077
|
+
Z(" " + y(a.form.file.name), 1)
|
|
13077
13078
|
]),
|
|
13078
13079
|
w(l, {
|
|
13079
13080
|
icon: "",
|
|
@@ -13086,7 +13087,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13086
13087
|
default: x(() => [
|
|
13087
13088
|
w(m, { size: "16" }, {
|
|
13088
13089
|
default: x(() => e[14] || (e[14] = [
|
|
13089
|
-
|
|
13090
|
+
Z("mdi-close", -1)
|
|
13090
13091
|
])),
|
|
13091
13092
|
_: 1,
|
|
13092
13093
|
__: [14]
|
|
@@ -13108,7 +13109,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13108
13109
|
onClick: r.handleReset
|
|
13109
13110
|
}, {
|
|
13110
13111
|
default: x(() => [
|
|
13111
|
-
|
|
13112
|
+
Z(y(t.$t("actions.reset")), 1)
|
|
13112
13113
|
]),
|
|
13113
13114
|
_: 1
|
|
13114
13115
|
}, 8, ["onClick"]),
|
|
@@ -13121,7 +13122,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13121
13122
|
loading: a.uploading
|
|
13122
13123
|
}, {
|
|
13123
13124
|
default: x(() => [
|
|
13124
|
-
|
|
13125
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
13125
13126
|
]),
|
|
13126
13127
|
_: 1
|
|
13127
13128
|
}, 8, ["loading"])
|
|
@@ -13233,7 +13234,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13233
13234
|
w(m, { class: "px-4 text-body-1" }, {
|
|
13234
13235
|
default: x(() => [
|
|
13235
13236
|
n("div", au, [
|
|
13236
|
-
|
|
13237
|
+
Z(y(t.$t("marker.groupName")), 1),
|
|
13237
13238
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
13238
13239
|
]),
|
|
13239
13240
|
w(d, {
|
|
@@ -13260,7 +13261,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13260
13261
|
onClick: r.handleClose
|
|
13261
13262
|
}, {
|
|
13262
13263
|
default: x(() => [
|
|
13263
|
-
|
|
13264
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
13264
13265
|
]),
|
|
13265
13266
|
_: 1
|
|
13266
13267
|
}, 8, ["onClick"]),
|
|
@@ -13273,7 +13274,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13273
13274
|
onClick: r.handleConfirm
|
|
13274
13275
|
}, {
|
|
13275
13276
|
default: x(() => [
|
|
13276
|
-
|
|
13277
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
13277
13278
|
]),
|
|
13278
13279
|
_: 1
|
|
13279
13280
|
}, 8, ["loading", "onClick"])
|
|
@@ -13372,7 +13373,7 @@ function cu(t, e, o, i, a, r) {
|
|
|
13372
13373
|
onClick: r.handleClose
|
|
13373
13374
|
}, {
|
|
13374
13375
|
default: x(() => [
|
|
13375
|
-
|
|
13376
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
13376
13377
|
]),
|
|
13377
13378
|
_: 1
|
|
13378
13379
|
}, 8, ["onClick"]),
|
|
@@ -13385,7 +13386,7 @@ function cu(t, e, o, i, a, r) {
|
|
|
13385
13386
|
onClick: r.handleDelete
|
|
13386
13387
|
}, {
|
|
13387
13388
|
default: x(() => [
|
|
13388
|
-
|
|
13389
|
+
Z(y(t.$t("actions.delete")), 1)
|
|
13389
13390
|
]),
|
|
13390
13391
|
_: 1
|
|
13391
13392
|
}, 8, ["loading", "onClick"])
|
|
@@ -13892,7 +13893,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13892
13893
|
onClick: e[2] || (e[2] = (S) => r.handleOpenDrawMarkers())
|
|
13893
13894
|
}, {
|
|
13894
13895
|
default: x(() => [
|
|
13895
|
-
|
|
13896
|
+
Z(y(t.$t("actions.add")), 1)
|
|
13896
13897
|
]),
|
|
13897
13898
|
_: 1
|
|
13898
13899
|
}),
|
|
@@ -13907,7 +13908,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13907
13908
|
onClick: r.handleOpenImportDialog
|
|
13908
13909
|
}, {
|
|
13909
13910
|
default: x(() => [
|
|
13910
|
-
|
|
13911
|
+
Z(y(t.$t("actions.import")), 1)
|
|
13911
13912
|
]),
|
|
13912
13913
|
_: 1
|
|
13913
13914
|
}, 8, ["onClick"])
|
|
@@ -13958,7 +13959,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13958
13959
|
default: x(() => {
|
|
13959
13960
|
var B;
|
|
13960
13961
|
return [
|
|
13961
|
-
|
|
13962
|
+
Z(y((B = S.layers) == null ? void 0 : B.length), 1)
|
|
13962
13963
|
];
|
|
13963
13964
|
}),
|
|
13964
13965
|
_: 2
|
|
@@ -14292,7 +14293,7 @@ function vi(t) {
|
|
|
14292
14293
|
i.onload = () => e(String(i.result || "")), i.onerror = () => o(new Error("read_failed")), i.readAsDataURL(t);
|
|
14293
14294
|
});
|
|
14294
14295
|
}
|
|
14295
|
-
function
|
|
14296
|
+
function Wu(t, e) {
|
|
14296
14297
|
return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
|
|
14297
14298
|
}
|
|
14298
14299
|
async function Ke(t, e = {}) {
|
|
@@ -14320,7 +14321,7 @@ async function Ke(t, e = {}) {
|
|
|
14320
14321
|
}
|
|
14321
14322
|
if (/^about:blank$/i.test(t))
|
|
14322
14323
|
return o === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: o === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
|
|
14323
|
-
let s =
|
|
14324
|
+
let s = Wu(t, { as: o, timeout: i, useProxy: a, errorTTL: r }), d = Yo.get(s);
|
|
14324
14325
|
if (d && d.until > Date.now())
|
|
14325
14326
|
return { ...d.result, fromCache: !0 };
|
|
14326
14327
|
d && Yo.delete(s);
|
|
@@ -14381,7 +14382,7 @@ async function Vi(t, e = {}) {
|
|
|
14381
14382
|
return V.background.set(i, null), "none";
|
|
14382
14383
|
}
|
|
14383
14384
|
}
|
|
14384
|
-
var
|
|
14385
|
+
var Zu = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), ya = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
|
|
14385
14386
|
function Vu(t) {
|
|
14386
14387
|
if (t = String(t).toLowerCase(), ya.has(t)) {
|
|
14387
14388
|
let r = {};
|
|
@@ -15247,7 +15248,7 @@ function _g(t, e, o = !1) {
|
|
|
15247
15248
|
return !t || t.plugins && !o || (t.plugins = zg(e)), t;
|
|
15248
15249
|
}
|
|
15249
15250
|
var _i = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new Map(), ca = 0;
|
|
15250
|
-
function
|
|
15251
|
+
function Wo() {
|
|
15251
15252
|
ca++;
|
|
15252
15253
|
}
|
|
15253
15254
|
var Ci = !1;
|
|
@@ -15256,16 +15257,16 @@ function Cg(t = document.documentElement) {
|
|
|
15256
15257
|
if (!Ci) {
|
|
15257
15258
|
Ci = !0;
|
|
15258
15259
|
try {
|
|
15259
|
-
new MutationObserver(() =>
|
|
15260
|
+
new MutationObserver(() => Wo()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15260
15261
|
} catch {
|
|
15261
15262
|
}
|
|
15262
15263
|
try {
|
|
15263
|
-
new MutationObserver(() =>
|
|
15264
|
+
new MutationObserver(() => Wo()).observe(document.head, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15264
15265
|
} catch {
|
|
15265
15266
|
}
|
|
15266
15267
|
try {
|
|
15267
15268
|
let i = document.fonts;
|
|
15268
|
-
i && ((e = i.addEventListener) == null || e.call(i, "loadingdone",
|
|
15269
|
+
i && ((e = i.addEventListener) == null || e.call(i, "loadingdone", Wo), (o = i.ready) == null || o.then(() => Wo()).catch(() => {
|
|
15269
15270
|
}));
|
|
15270
15271
|
} catch {
|
|
15271
15272
|
}
|
|
@@ -15317,7 +15318,7 @@ async function st(t, e, o, i) {
|
|
|
15317
15318
|
if (t.tagName === "STYLE")
|
|
15318
15319
|
return;
|
|
15319
15320
|
let a = Tg(o, i), r = a.options && a.options.cache || "auto";
|
|
15320
|
-
if (r !== "disabled" && Cg(document.documentElement), r === "disabled" && !a.session.__bumpedForDisabled && (
|
|
15321
|
+
if (r !== "disabled" && Cg(document.documentElement), r === "disabled" && !a.session.__bumpedForDisabled && (Wo(), sa.clear(), a.session.__bumpedForDisabled = !0), ya.has((u = t.tagName) == null ? void 0 : u.toLowerCase())) {
|
|
15321
15322
|
let h = (b = t.getAttribute) == null ? void 0 : b.call(t, "style");
|
|
15322
15323
|
h && e.setAttribute("style", h);
|
|
15323
15324
|
}
|
|
@@ -15476,13 +15477,13 @@ function Ng(t, e, o = !0) {
|
|
|
15476
15477
|
return `:where(${e} ${a})`;
|
|
15477
15478
|
}).join(", ");
|
|
15478
15479
|
}
|
|
15479
|
-
function
|
|
15480
|
+
function Wg(t, e) {
|
|
15480
15481
|
return t ? (t = t.replace(/:host\(([^)]+)\)/g, (o, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (o, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (o, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (o, i, a, r) => {
|
|
15481
15482
|
let l = Ng(r, e, !0);
|
|
15482
15483
|
return `${i}${a}${l}{`;
|
|
15483
15484
|
}), t) : "";
|
|
15484
15485
|
}
|
|
15485
|
-
function
|
|
15486
|
+
function Zg(t) {
|
|
15486
15487
|
return t.shadowScopeSeq = (t.shadowScopeSeq || 0) + 1, `s${t.shadowScopeSeq}`;
|
|
15487
15488
|
}
|
|
15488
15489
|
function Vg(t) {
|
|
@@ -15606,7 +15607,7 @@ async function $g(t, e, o) {
|
|
|
15606
15607
|
return e.nodeMap.set(p, t), st(t, p, e, o), p.style.overflow = "hidden", p.style.display = "block", p.style.width || (p.style.width = `${Math.round(l.width)}px`), p.style.height || (p.style.height = `${Math.round(l.height)}px`), p.appendChild(m), p;
|
|
15607
15608
|
}
|
|
15608
15609
|
var Bo = /* @__PURE__ */ new Map();
|
|
15609
|
-
async function
|
|
15610
|
+
async function Zo(t) {
|
|
15610
15611
|
var o;
|
|
15611
15612
|
if ((o = V.resource) != null && o.has(t))
|
|
15612
15613
|
return V.resource.get(t);
|
|
@@ -15637,7 +15638,7 @@ async function Si(t) {
|
|
|
15637
15638
|
let o = t;
|
|
15638
15639
|
for (let i of e)
|
|
15639
15640
|
try {
|
|
15640
|
-
let a = await
|
|
15641
|
+
let a = await Zo(i);
|
|
15641
15642
|
o = o.split(i).join(a);
|
|
15642
15643
|
} catch {
|
|
15643
15644
|
}
|
|
@@ -15664,7 +15665,7 @@ async function a0(t) {
|
|
|
15664
15665
|
try {
|
|
15665
15666
|
let d = s.getAttribute("src") || s.currentSrc || "";
|
|
15666
15667
|
if (Ho(d)) {
|
|
15667
|
-
let p = await
|
|
15668
|
+
let p = await Zo(d);
|
|
15668
15669
|
s.setAttribute("src", p);
|
|
15669
15670
|
}
|
|
15670
15671
|
let m = s.getAttribute("srcset");
|
|
@@ -15673,7 +15674,7 @@ async function a0(t) {
|
|
|
15673
15674
|
for (let b of p)
|
|
15674
15675
|
if (Ho(b.url))
|
|
15675
15676
|
try {
|
|
15676
|
-
b.url = await
|
|
15677
|
+
b.url = await Zo(b.url), u = !0;
|
|
15677
15678
|
} catch {
|
|
15678
15679
|
}
|
|
15679
15680
|
u && s.setAttribute("srcset", o0(p));
|
|
@@ -15685,7 +15686,7 @@ async function a0(t) {
|
|
|
15685
15686
|
try {
|
|
15686
15687
|
let d = "http://www.w3.org/1999/xlink", m = s.getAttribute("href") || ((l = s.getAttributeNS) == null ? void 0 : l.call(s, d, "href"));
|
|
15687
15688
|
if (Ho(m)) {
|
|
15688
|
-
let p = await
|
|
15689
|
+
let p = await Zo(m);
|
|
15689
15690
|
s.setAttribute("href", p), (c = s.removeAttributeNS) == null || c.call(s, d, "href");
|
|
15690
15691
|
}
|
|
15691
15692
|
} catch {
|
|
@@ -15713,7 +15714,7 @@ async function a0(t) {
|
|
|
15713
15714
|
for (let m of d)
|
|
15714
15715
|
try {
|
|
15715
15716
|
let p = m.getAttribute(s);
|
|
15716
|
-
Ho(p) && m.setAttribute(s, await
|
|
15717
|
+
Ho(p) && m.setAttribute(s, await Zo(p));
|
|
15717
15718
|
} catch {
|
|
15718
15719
|
}
|
|
15719
15720
|
}
|
|
@@ -15725,7 +15726,7 @@ async function Ko(t, e, o) {
|
|
|
15725
15726
|
let i = /* @__PURE__ */ new Set(), a = null, r = null;
|
|
15726
15727
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
15727
15728
|
let h = (t.localName || t.tagName || "").toLowerCase();
|
|
15728
|
-
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") ||
|
|
15729
|
+
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || Zu.has(h))
|
|
15729
15730
|
return null;
|
|
15730
15731
|
}
|
|
15731
15732
|
if (t.nodeType === Node.TEXT_NODE || t.nodeType !== Node.ELEMENT_NODE)
|
|
@@ -15877,12 +15878,12 @@ async function Ko(t, e, o) {
|
|
|
15877
15878
|
}
|
|
15878
15879
|
} catch {
|
|
15879
15880
|
}
|
|
15880
|
-
let f =
|
|
15881
|
+
let f = Zg(e), k = `[data-sd="${f}"]`;
|
|
15881
15882
|
try {
|
|
15882
15883
|
l.setAttribute("data-sd", f);
|
|
15883
15884
|
} catch {
|
|
15884
15885
|
}
|
|
15885
|
-
let v = Vg(t.shadowRoot), _ =
|
|
15886
|
+
let v = Vg(t.shadowRoot), _ = Wg(v, k), L = Yg(v), P = Ug(t, L, k);
|
|
15886
15887
|
Xg(l, P + _, f);
|
|
15887
15888
|
let z = document.createDocumentFragment(), R = await aa(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15888
15889
|
z.append(...R.filter((S) => !!S)), l.appendChild(z);
|
|
@@ -16805,7 +16806,7 @@ function N0(t) {
|
|
|
16805
16806
|
}
|
|
16806
16807
|
return { bleed: { top: se(i), right: se(a), bottom: se(r), left: se(l) }, has: c };
|
|
16807
16808
|
}
|
|
16808
|
-
function
|
|
16809
|
+
function W0(t, e) {
|
|
16809
16810
|
if (!t || !e || !e.style)
|
|
16810
16811
|
return null;
|
|
16811
16812
|
let o = getComputedStyle(t);
|
|
@@ -16857,7 +16858,7 @@ function Bi(t, e, o, i, a) {
|
|
|
16857
16858
|
k < b && (b = k), v < g && (g = v), k > h && (h = k), v > f && (f = v);
|
|
16858
16859
|
return { minX: b, minY: g, maxX: h, maxY: f, width: h - b, height: f - g };
|
|
16859
16860
|
}
|
|
16860
|
-
function
|
|
16861
|
+
function Z0(t, e, o) {
|
|
16861
16862
|
let i = (t.transformOrigin || "0 0").trim().split(/\s+/), [a, r] = [i[0] || "0", i[1] || "0"], l = (c, s) => {
|
|
16862
16863
|
let d = c.toLowerCase();
|
|
16863
16864
|
return d === "left" || d === "top" ? 0 : d === "center" ? s / 2 : d === "right" || d === "bottom" ? s : d.endsWith("px") ? parseFloat(d) || 0 : d.endsWith("%") ? (parseFloat(d) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(d) && parseFloat(d) || 0;
|
|
@@ -16945,7 +16946,7 @@ async function ir(t, e) {
|
|
|
16945
16946
|
await $e("beforeSnap", r), await $e("beforeClone", r);
|
|
16946
16947
|
let g = v0(r.element);
|
|
16947
16948
|
try {
|
|
16948
|
-
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b =
|
|
16949
|
+
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = W0(r.element, l)), !a && l && _0(r.element, l);
|
|
16949
16950
|
} finally {
|
|
16950
16951
|
g();
|
|
16951
16952
|
}
|
|
@@ -17000,7 +17001,7 @@ async function ir(t, e) {
|
|
|
17000
17001
|
let H = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, ve = Bi(z, R, H, 0, 0);
|
|
17001
17002
|
he = se(ve.minX), E = se(ve.minY), J = se(ve.maxX), K = se(ve.maxY);
|
|
17002
17003
|
} else if (i && H0(r.element)) {
|
|
17003
|
-
let H = L.transform && L.transform !== "none" ? L.transform : "", ve = V0(r.element), Ee = O0({ baseTransform: H, rotate: ve.rotate || "0deg", scale: ve.scale, translate: ve.translate }), { ox:
|
|
17004
|
+
let H = L.transform && L.transform !== "none" ? L.transform : "", ve = V0(r.element), Ee = O0({ baseTransform: H, rotate: ve.rotate || "0deg", scale: ve.scale, translate: ve.translate }), { ox: Ze, oy: Ve } = Z0(L, z, R), te = Ee.is2D ? Ee : new DOMMatrix(Ee.toString()), Ne = Bi(z, R, te, Ze, Ve);
|
|
17004
17005
|
he = se(Ne.minX), E = se(Ne.minY), J = se(Ne.maxX), K = se(Ne.maxY);
|
|
17005
17006
|
}
|
|
17006
17007
|
let ae = F0(L), Y = j0(L), O = B0(L), ee = N0(L), D = a ? { top: se(ae.top + Y.top + O.top + ee.bleed.top), right: se(ae.right + Y.right + O.right + ee.bleed.right), bottom: se(ae.bottom + Y.bottom + O.bottom + ee.bleed.bottom), left: se(ae.left + Y.left + O.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
@@ -17013,8 +17014,8 @@ async function ir(t, e) {
|
|
|
17013
17014
|
De.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.style.width = `${se(z)}px`, De.style.height = `${se(R)}px`, De.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.appendChild(r.clone), me.appendChild(De);
|
|
17014
17015
|
let re = new XMLSerializer().serializeToString(me), Me = se(le + $ * 2), pe = se(fe + $ * 2), xe = q || oe;
|
|
17015
17016
|
e.meta = { w0: z, h0: R, vbW: Me, vbH: pe, targetW: B, targetH: Q };
|
|
17016
|
-
let
|
|
17017
|
-
u = `<svg xmlns="${ke}" width="${
|
|
17017
|
+
let We = No() && xe ? Me : se(ce + $ * 2), Ue = No() && xe ? pe : se(be + $ * 2);
|
|
17018
|
+
u = `<svg xmlns="${ke}" width="${We}" height="${Ue}" viewBox="0 0 ${Me} ${pe}">` + re + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r }, _();
|
|
17018
17019
|
}, { fast: o });
|
|
17019
17020
|
}), await $e("afterRender", r);
|
|
17020
17021
|
let k = document.getElementById("snapdom-sandbox");
|
|
@@ -17057,52 +17058,52 @@ Pe.capture = async (t, e, o) => {
|
|
|
17057
17058
|
if (o !== rr)
|
|
17058
17059
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17059
17060
|
let i = await ir(t, e), a = { img: async (g, h) => {
|
|
17060
|
-
let { toImg: f } = await import("./toImg-
|
|
17061
|
+
let { toImg: f } = await import("./toImg-35c24ad8.js");
|
|
17061
17062
|
return f(i, { ...g, ...h || {} });
|
|
17062
17063
|
}, svg: async (g, h) => {
|
|
17063
|
-
let { toSvg: f } = await import("./toImg-
|
|
17064
|
+
let { toSvg: f } = await import("./toImg-35c24ad8.js");
|
|
17064
17065
|
return f(i, { ...g, ...h || {} });
|
|
17065
17066
|
}, canvas: async (g, h) => {
|
|
17066
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17067
|
+
let { toCanvas: f } = await import("./toCanvas-a50ef0d0.js");
|
|
17067
17068
|
return f(i, { ...g, ...h || {} });
|
|
17068
17069
|
}, blob: async (g, h) => {
|
|
17069
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17070
|
+
let { toBlob: f } = await import("./toBlob-dbfe465a.js");
|
|
17070
17071
|
return f(i, { ...g, ...h || {} });
|
|
17071
17072
|
}, png: async (g, h) => {
|
|
17072
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17073
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17073
17074
|
return f(i, { ...g, ...h || {}, format: "png" });
|
|
17074
17075
|
}, jpeg: async (g, h) => {
|
|
17075
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17076
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17076
17077
|
return f(i, { ...g, ...h || {}, format: "jpeg" });
|
|
17077
17078
|
}, webp: async (g, h) => {
|
|
17078
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17079
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17079
17080
|
return f(i, { ...g, ...h || {}, format: "webp" });
|
|
17080
17081
|
}, download: async (g, h) => {
|
|
17081
|
-
let { download: f } = await import("./download-
|
|
17082
|
+
let { download: f } = await import("./download-6176491d.js");
|
|
17082
17083
|
return f(i, { ...g, ...h || {} });
|
|
17083
17084
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (g) => {
|
|
17084
|
-
let { toSvg: h } = await import("./toImg-
|
|
17085
|
+
let { toSvg: h } = await import("./toImg-35c24ad8.js");
|
|
17085
17086
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17086
17087
|
}, canvas: async (g) => {
|
|
17087
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17088
|
+
let { toCanvas: h } = await import("./toCanvas-a50ef0d0.js");
|
|
17088
17089
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17089
17090
|
}, png: async (g) => {
|
|
17090
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17091
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17091
17092
|
return h(i, { ...e, ...g || {}, format: "png", [qe]: !0 });
|
|
17092
17093
|
}, jpeg: async (g) => {
|
|
17093
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17094
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17094
17095
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17095
17096
|
}, jpg: async (g) => {
|
|
17096
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17097
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17097
17098
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17098
17099
|
}, webp: async (g) => {
|
|
17099
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17100
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-0e323926.js");
|
|
17100
17101
|
return h(i, { ...e, ...g || {}, format: "webp", [qe]: !0 });
|
|
17101
17102
|
}, blob: async (g) => {
|
|
17102
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17103
|
+
let { toBlob: h } = await import("./toBlob-dbfe465a.js");
|
|
17103
17104
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17104
17105
|
}, img: async (g) => {
|
|
17105
|
-
let { toImg: h } = await import("./toImg-
|
|
17106
|
+
let { toImg: h } = await import("./toImg-35c24ad8.js");
|
|
17106
17107
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17107
17108
|
} } }, l = await Lg("defineExports", r), c = Object.assign({}, ...l.filter((g) => g && typeof g == "object")), s = { ...a, ...c };
|
|
17108
17109
|
s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
|
|
@@ -17862,7 +17863,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
17862
17863
|
"min-width": "30"
|
|
17863
17864
|
}, {
|
|
17864
17865
|
default: x(() => [
|
|
17865
|
-
|
|
17866
|
+
Z(y(a.intervalHour) + " h ", 1),
|
|
17866
17867
|
w(p, { activator: "parent" }, {
|
|
17867
17868
|
default: x(() => [
|
|
17868
17869
|
w(m, { class: "pa-1" }, {
|
|
@@ -17884,7 +17885,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
17884
17885
|
onClick: (k) => a.intervalHour = h
|
|
17885
17886
|
}, {
|
|
17886
17887
|
default: x(() => [
|
|
17887
|
-
|
|
17888
|
+
Z(y(h) + "h", 1)
|
|
17888
17889
|
]),
|
|
17889
17890
|
_: 2
|
|
17890
17891
|
}, 1032, ["onClick"])
|
|
@@ -18179,7 +18180,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18179
18180
|
onClick: e[11] || (e[11] = (h) => a.source = "GFS")
|
|
18180
18181
|
}, {
|
|
18181
18182
|
default: x(() => e[22] || (e[22] = [
|
|
18182
|
-
|
|
18183
|
+
Z(" NOAA ", -1)
|
|
18183
18184
|
])),
|
|
18184
18185
|
_: 1,
|
|
18185
18186
|
__: [22]
|
|
@@ -18192,7 +18193,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18192
18193
|
onClick: e[12] || (e[12] = (h) => a.source = "ECMWF")
|
|
18193
18194
|
}, {
|
|
18194
18195
|
default: x(() => e[23] || (e[23] = [
|
|
18195
|
-
|
|
18196
|
+
Z(" ECMWF ", -1)
|
|
18196
18197
|
])),
|
|
18197
18198
|
_: 1,
|
|
18198
18199
|
__: [23]
|
|
@@ -18220,7 +18221,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18220
18221
|
onClick: e[13] || (e[13] = (h) => a.showTimezone = !a.showTimezone)
|
|
18221
18222
|
}, {
|
|
18222
18223
|
default: x(() => [
|
|
18223
|
-
|
|
18224
|
+
Z(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
18224
18225
|
]),
|
|
18225
18226
|
_: 1
|
|
18226
18227
|
}),
|
|
@@ -18443,7 +18444,7 @@ const lr = /* @__PURE__ */ ie(_f, [["render", Mf]]), Pf = {
|
|
|
18443
18444
|
components: {
|
|
18444
18445
|
IdmOtherLayer: ks,
|
|
18445
18446
|
IdmWeatherLayer: pm,
|
|
18446
|
-
IdmTropicals:
|
|
18447
|
+
IdmTropicals: Zi,
|
|
18447
18448
|
IdmMeasure: sp,
|
|
18448
18449
|
IdmSpot: ip,
|
|
18449
18450
|
IdmMarker: Iu,
|
|
@@ -18617,7 +18618,7 @@ class If {
|
|
|
18617
18618
|
we(this, "hi");
|
|
18618
18619
|
we(this, "td");
|
|
18619
18620
|
we(this, "windy");
|
|
18620
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, _, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, Ce, De, re, Me, pe, xe,
|
|
18621
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, _, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, Ce, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, _o, Co, Mo, Po, So, To, Ro, Io, Do, Eo, Go, wa, xa, va, Aa, ka, La, za, _a, Ca, Ma, Pa, Sa, Ta, Ra, Ia, Da, Ea, Ga, Fa, ja, Ba, Na, Wa, Za, Va, Xa, Oa, Ya, Ha, Ua, Ja, Ka, Qa, qa, $a, ei, ti, oi, ai, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi;
|
|
18621
18622
|
this.i4 = {
|
|
18622
18623
|
source: {
|
|
18623
18624
|
type: "raster",
|
|
@@ -37174,7 +37175,7 @@ class If {
|
|
|
37174
37175
|
dark: {
|
|
37175
37176
|
version: 8,
|
|
37176
37177
|
name: "dark",
|
|
37177
|
-
metadata: (
|
|
37178
|
+
metadata: (We = this.originStyle) == null ? void 0 : We.dark.metadata,
|
|
37178
37179
|
center: [90.22129259388525, -3.2084663486364606],
|
|
37179
37180
|
zoom: 1.2556266457717493,
|
|
37180
37181
|
bearing: 0,
|
|
@@ -37193,7 +37194,7 @@ class If {
|
|
|
37193
37194
|
protected: !1,
|
|
37194
37195
|
draft: !1,
|
|
37195
37196
|
layers: [
|
|
37196
|
-
(
|
|
37197
|
+
(Ze = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ze.find((C) => C.id === "land"),
|
|
37197
37198
|
(te = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : te.find((C) => C.id === "water"),
|
|
37198
37199
|
(ne = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : ne.find((C) => C.id === "ice-area-fill"),
|
|
37199
37200
|
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((C) => C.id === "ice-area-line"),
|
|
@@ -37213,8 +37214,8 @@ class If {
|
|
|
37213
37214
|
(Et = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : Et.find((C) => C.id === "china-route-fill"),
|
|
37214
37215
|
(Ft = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Ft.find((C) => C.id === "china-route-label"),
|
|
37215
37216
|
(Bt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Bt.find((C) => C.id === "admin-0-boundary-bg"),
|
|
37216
|
-
(
|
|
37217
|
-
(Vt = (
|
|
37217
|
+
(Wt = (Nt = this.originStyle) == null ? void 0 : Nt.dark.layers) == null ? void 0 : Wt.find((C) => C.id === "admin-0-boundary"),
|
|
37218
|
+
(Vt = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Vt.find((C) => C.id === "admin-0-boundary-disputed"),
|
|
37218
37219
|
(Ot = (Xt = this.originStyle) == null ? void 0 : Xt.dark.layers) == null ? void 0 : Ot.find((C) => C.id === "country-label"),
|
|
37219
37220
|
(Ht = (Yt = this.originStyle) == null ? void 0 : Yt.dark.layers) == null ? void 0 : Ht.find((C) => C.id === "continent-label"),
|
|
37220
37221
|
(Jt = (Ut = this.originStyle) == null ? void 0 : Ut.dark.layers) == null ? void 0 : Jt.find((C) => C.id === "tide-stations"),
|
|
@@ -37327,8 +37328,8 @@ class If {
|
|
|
37327
37328
|
(Ea = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ea.find((C) => C.id === "ice-area-fill"),
|
|
37328
37329
|
(Fa = (Ga = this.originStyle) == null ? void 0 : Ga.light.layers) == null ? void 0 : Fa.find((C) => C.id === "ice-area-line"),
|
|
37329
37330
|
(Ba = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Ba.find((C) => C.id === "empty-layer-0"),
|
|
37330
|
-
(
|
|
37331
|
-
(Va = (
|
|
37331
|
+
(Wa = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Wa.find((C) => C.id === "empty-layer-1"),
|
|
37332
|
+
(Va = (Za = this.originStyle) == null ? void 0 : Za.light.layers) == null ? void 0 : Va.find((C) => C.id === "empty-layer-2"),
|
|
37332
37333
|
(Oa = (Xa = this.originStyle) == null ? void 0 : Xa.light.layers) == null ? void 0 : Oa.find((C) => C.id === "country-boundaries"),
|
|
37333
37334
|
(Ha = (Ya = this.originStyle) == null ? void 0 : Ya.light.layers) == null ? void 0 : Ha.find((C) => C.id === "water-outline"),
|
|
37334
37335
|
(Ja = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Ja.find((C) => C.id === "water-outline2"),
|
|
@@ -37548,7 +37549,7 @@ function Bf(t, e, o, i, a, r) {
|
|
|
37548
37549
|
], 4);
|
|
37549
37550
|
}
|
|
37550
37551
|
const Nf = /* @__PURE__ */ ie(Df, [["render", Bf]]);
|
|
37551
|
-
const
|
|
37552
|
+
const Wf = {
|
|
37552
37553
|
name: "DateRangePicker",
|
|
37553
37554
|
props: {
|
|
37554
37555
|
width: {
|
|
@@ -37790,7 +37791,7 @@ const Zf = {
|
|
|
37790
37791
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
37791
37792
|
}
|
|
37792
37793
|
}
|
|
37793
|
-
},
|
|
37794
|
+
}, Zf = {
|
|
37794
37795
|
ref: "idmGl4DatePicker",
|
|
37795
37796
|
class: "idm-gl4-date-picker"
|
|
37796
37797
|
}, Vf = { class: "flex-1-1-0" }, Xf = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, Of = {
|
|
@@ -37799,7 +37800,7 @@ const Zf = {
|
|
|
37799
37800
|
}, Yf = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
|
|
37800
37801
|
function Hf(t, e, o, i, a, r) {
|
|
37801
37802
|
const l = M("VIcon"), c = M("VDatePicker"), s = M("VDivider"), d = M("VCardText"), m = M("VBtn"), p = M("VCardActions"), u = M("VCard");
|
|
37802
|
-
return A(), I("div",
|
|
37803
|
+
return A(), I("div", Zf, [
|
|
37803
37804
|
n("div", {
|
|
37804
37805
|
style: de({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
37805
37806
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
@@ -37879,7 +37880,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37879
37880
|
onClick: (f) => r.handleFastPick({ dateRange: h })
|
|
37880
37881
|
}, {
|
|
37881
37882
|
default: x(() => [
|
|
37882
|
-
|
|
37883
|
+
Z(y(t.$t("time." + h)), 1)
|
|
37883
37884
|
]),
|
|
37884
37885
|
_: 2
|
|
37885
37886
|
}, 1032, ["color", "variant", "onClick"]))), 128))
|
|
@@ -37892,7 +37893,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37892
37893
|
onClick: r.handleCancelDate
|
|
37893
37894
|
}, {
|
|
37894
37895
|
default: x(() => [
|
|
37895
|
-
|
|
37896
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
37896
37897
|
]),
|
|
37897
37898
|
_: 1
|
|
37898
37899
|
}, 8, ["onClick"]),
|
|
@@ -37904,7 +37905,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37904
37905
|
onClick: r.handleConfirmDate
|
|
37905
37906
|
}, {
|
|
37906
37907
|
default: x(() => [
|
|
37907
|
-
|
|
37908
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
37908
37909
|
]),
|
|
37909
37910
|
_: 1
|
|
37910
37911
|
}, 8, ["onClick"])
|
|
@@ -37918,17 +37919,17 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37918
37919
|
}, 8, ["style"])) : G("", !0)
|
|
37919
37920
|
], 512);
|
|
37920
37921
|
}
|
|
37921
|
-
const Uf = /* @__PURE__ */ ie(
|
|
37922
|
+
const Uf = /* @__PURE__ */ ie(Wf, [["render", Hf]]), m1 = {
|
|
37922
37923
|
install(t) {
|
|
37923
|
-
t.component("MapInitial", Nf), t.component("MapboxGL", Rf), t.component("TropicalGL",
|
|
37924
|
+
t.component("MapInitial", Nf), t.component("MapboxGL", Rf), t.component("TropicalGL", Zi), t.component("LatLngGL", Wi), t.component("DateTimePicker", ea), t.component("DateRangePicker", Uf), t.component("PortDetail", ua), t.component("TimePlayer", lr);
|
|
37924
37925
|
}
|
|
37925
37926
|
};
|
|
37926
37927
|
export {
|
|
37927
37928
|
ea as D,
|
|
37928
|
-
|
|
37929
|
+
Wi as L,
|
|
37929
37930
|
m1 as M,
|
|
37930
37931
|
ua as P,
|
|
37931
|
-
|
|
37932
|
+
Zi as T,
|
|
37932
37933
|
ga as V,
|
|
37933
37934
|
Je as W,
|
|
37934
37935
|
Nf as a,
|