@idmwx/idmui-gl4 3.5.7 → 3.5.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-d52e61c5.js → chunk-3VYIPD3A-4c6cf162.js} +1 -1
- package/dist/{chunk-ANSXOGKI-767fe6f2.js → chunk-ANSXOGKI-76beedf9.js} +1 -1
- package/dist/{chunk-T4JIPPZO-98d15e22.js → chunk-T4JIPPZO-03c56c7b.js} +1 -1
- package/dist/{download-1ba945c5.js → download-4477d123.js} +3 -3
- package/dist/{index-4947a104.js → index-62e95a3b.js} +698 -638
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/mapbox/src/components/map/index.vue.d.ts +13 -1
- package/dist/mapbox/src/helper/mapbox.d.ts +2 -2
- package/dist/{rasterize-JS5G2XHH-71109e82.js → rasterize-JS5G2XHH-6880f738.js} +3 -3
- package/dist/{toBlob-de1d5e0e.js → toBlob-ad6cc35a.js} +3 -3
- package/dist/{toCanvas-478ad68f.js → toCanvas-98141454.js} +2 -2
- package/dist/{toImg-abf1e7ab.js → toImg-0ca56397.js} +3 -3
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ var ar = (t, e, o) => e in t ? or(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ke = (t, e, o) => (ar(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ie from "axios";
|
|
5
5
|
import { useTheme as Ze } from "vuetify";
|
|
6
|
-
import { openBlock as A, createElementBlock as R, resolveComponent as M, createBlock as F, normalizeClass as ue, withCtx as
|
|
7
|
-
import
|
|
6
|
+
import { openBlock as A, createElementBlock as R, resolveComponent as M, createBlock as F, normalizeClass as ue, withCtx as x, createVNode as w, withModifiers as _e, createElementVNode as n, createCommentVNode as I, toDisplayString as y, createTextVNode as N, Fragment as Ce, renderList as Me, withDirectives as uo, vShow as po, mergeProps as V, normalizeStyle as ge } from "vue";
|
|
7
|
+
import ve from "mapbox-gl";
|
|
8
8
|
import S from "moment";
|
|
9
9
|
import { LngLatHelper as H, TropicalHelper as hl, LaneHelper as pt, GeoJsonHelper as ut } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Zo, TidesAssist as Il } from "@idm-plugin/meteo";
|
|
@@ -508,7 +508,7 @@ const br = {
|
|
|
508
508
|
const o = (a = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : a.cloneNode(!0), i = (l = o == null ? void 0 : o.children[1]) == null ? void 0 : l.children[0];
|
|
509
509
|
i && (i.onclick = () => {
|
|
510
510
|
this.handleRemoveMarker();
|
|
511
|
-
}), this.marker = new
|
|
511
|
+
}), this.marker = new ve.Marker(o).setLngLat(t).setOffset([230, 0]).addTo(this.map);
|
|
512
512
|
});
|
|
513
513
|
},
|
|
514
514
|
handleRemoveMarker() {
|
|
@@ -517,16 +517,16 @@ const br = {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}, wr = ["innerHTML"];
|
|
520
|
-
function
|
|
520
|
+
function xr(t, e, o, i, a, l) {
|
|
521
521
|
const r = M("VBtn"), c = M("VCardText"), s = M("VCard");
|
|
522
522
|
return a.showMakerInfo ? (A(), F(s, {
|
|
523
523
|
key: 0,
|
|
524
524
|
id: "idm-gl4-zone-info",
|
|
525
525
|
class: ue(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"])
|
|
526
526
|
}, {
|
|
527
|
-
default:
|
|
527
|
+
default: x(() => [
|
|
528
528
|
w(c, null, {
|
|
529
|
-
default:
|
|
529
|
+
default: x(() => {
|
|
530
530
|
var d;
|
|
531
531
|
return [
|
|
532
532
|
w(r, {
|
|
@@ -536,7 +536,7 @@ function vr(t, e, o, i, a, l) {
|
|
|
536
536
|
class: "close",
|
|
537
537
|
onClick: _e(l.handleRemoveMarker, ["stop"])
|
|
538
538
|
}, {
|
|
539
|
-
default:
|
|
539
|
+
default: x(() => e[0] || (e[0] = [
|
|
540
540
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
541
541
|
])),
|
|
542
542
|
_: 1,
|
|
@@ -554,7 +554,7 @@ function vr(t, e, o, i, a, l) {
|
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["class"])) : I("", !0);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
557
|
+
const vr = /* @__PURE__ */ ne(br, [["render", xr]]);
|
|
558
558
|
const Ar = {
|
|
559
559
|
name: "PortDetail",
|
|
560
560
|
props: {
|
|
@@ -751,10 +751,10 @@ const Ar = {
|
|
|
751
751
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
752
752
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
753
753
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
754
|
-
var c, s, d, m, p, g, b, u, h, f, L,
|
|
754
|
+
var c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze;
|
|
755
755
|
let l = {};
|
|
756
756
|
const r = ((c = Zo.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
|
|
757
|
-
l.utc = r.utc, l.lat = t.lat, l.lng = t.lng, l.weatherUrl = (s = r.weather) == null ? void 0 : s.url, l.temp = this.computeRoundPrecision((d = r == null ? void 0 : r.weather) == null ? void 0 : d.temp, 0) ?? "-", l.precipProbability = this.computeRoundPrecision((p = (m = r == null ? void 0 : r.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", l.precip1h = this.computeRoundPrecision((b = (g = r == null ? void 0 : r.weather) == null ? void 0 : g.precip) == null ? void 0 : b.sum, 1) ?? "-", l.visibility = this.computeRoundPrecision((u = r == null ? void 0 : r.weather) == null ? void 0 : u.visibility, 0) ?? "-", l.windSpeed = this.computeRoundPrecision((f = (h = r == null ? void 0 : r.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", l.windDir = (
|
|
757
|
+
l.utc = r.utc, l.lat = t.lat, l.lng = t.lng, l.weatherUrl = (s = r.weather) == null ? void 0 : s.url, l.temp = this.computeRoundPrecision((d = r == null ? void 0 : r.weather) == null ? void 0 : d.temp, 0) ?? "-", l.precipProbability = this.computeRoundPrecision((p = (m = r == null ? void 0 : r.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", l.precip1h = this.computeRoundPrecision((b = (g = r == null ? void 0 : r.weather) == null ? void 0 : g.precip) == null ? void 0 : b.sum, 1) ?? "-", l.visibility = this.computeRoundPrecision((u = r == null ? void 0 : r.weather) == null ? void 0 : u.visibility, 0) ?? "-", l.windSpeed = this.computeRoundPrecision((f = (h = r == null ? void 0 : r.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", l.windDir = (v = (L = r == null ? void 0 : r.weather) == null ? void 0 : L.wind) == null ? void 0 : v.direction, l.windLevel = this.computeRoundPrecision((z = (C = r == null ? void 0 : r.weather) == null ? void 0 : C.wind) == null ? void 0 : z.scale, 0) ?? "-", l.windGust = this.computeRoundPrecision((_ = (P = r == null ? void 0 : r.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", l.sigwaveHeight = this.computeRoundPrecision((T = (D = r == null ? void 0 : r.wave) == null ? void 0 : D.sig) == null ? void 0 : T.height, 1) ?? "-", l.sigwaveDir = (j = (B = r == null ? void 0 : r.wave) == null ? void 0 : B.sig) == null ? void 0 : j.direction, l.sigwavePeriod = this.computeRoundPrecision((Q = (G = r == null ? void 0 : r.wave) == null ? void 0 : G.sig) == null ? void 0 : Q.period, 1) ?? "-", l.windwaveHeight = this.computeRoundPrecision((re = (ie = r == null ? void 0 : r.wave) == null ? void 0 : ie.wd) == null ? void 0 : re.height, 1) ?? "-", l.windwaveDir = (be = (xe = r == null ? void 0 : r.wave) == null ? void 0 : xe.wd) == null ? void 0 : be.direction, l.windwavePeriod = this.computeRoundPrecision(($ = (E = r == null ? void 0 : r.wave) == null ? void 0 : E.wd) == null ? void 0 : $.period, 1) ?? "-", l.swellHeight = this.computeRoundPrecision((se = (te = r == null ? void 0 : r.wave) == null ? void 0 : te.swell) == null ? void 0 : se.height, 1) ?? "-", l.swellDir = (Y = (q = r == null ? void 0 : r.wave) == null ? void 0 : q.swell) == null ? void 0 : Y.direction, l.swellPeriod = this.computeRoundPrecision((Z = (le = r == null ? void 0 : r.wave) == null ? void 0 : le.swell) == null ? void 0 : Z.period, 1) ?? "-", l.currentSpeed = this.computeRoundPrecision((U = r == null ? void 0 : r.current) == null ? void 0 : U.speed, 1) ?? "-", l.currentDir = (fe = r == null ? void 0 : r.current) == null ? void 0 : fe.direction, l.currentSpeed = this.computeRoundPrecision((Le = r == null ? void 0 : r.current) == null ? void 0 : Le.speed, 1) ?? "-", l.seaLevel = this.computeRoundPrecision(r == null ? void 0 : r.height, 1) ?? "-", l.seaTemp = this.computeRoundPrecision(r == null ? void 0 : r.sst, 0) ?? "-", l.weatherUrls = (ze = r == null ? void 0 : r.weather) == null ? void 0 : ze.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = l.weatherUrl, this.tableData[2][`value${a}`] = l.temp, this.tableData[3][`value${a}`] = l.precip1h, this.tableData[4][`value${a}`] = l.visibility, this.tableData[5][`value${a}`] = l.windSpeed, this.tableData[6][`value${a}`] = l.sigwaveHeight, this.tableData[7][`value${a}`] = l.swellHeight, this.tableData[8][`value${a}`] = l.currentSpeed;
|
|
758
758
|
});
|
|
759
759
|
},
|
|
760
760
|
handleTide() {
|
|
@@ -950,10 +950,10 @@ const Ar = {
|
|
|
950
950
|
}, wn = {
|
|
951
951
|
class: "px-1 text-center text-label font-weight-400",
|
|
952
952
|
width: "120"
|
|
953
|
-
},
|
|
953
|
+
}, xn = {
|
|
954
954
|
class: "px-1 text-center text-label font-weight-400",
|
|
955
955
|
width: "120"
|
|
956
|
-
},
|
|
956
|
+
}, vn = {
|
|
957
957
|
class: "px-1 text-center text-label font-weight-400",
|
|
958
958
|
width: "120"
|
|
959
959
|
}, An = { class: "px-1 text-center" }, kn = { class: "px-1 text-center" }, Ln = { class: "px-1 text-center" };
|
|
@@ -962,12 +962,12 @@ function zn(t, e, o, i, a, l) {
|
|
|
962
962
|
return A(), F(m, {
|
|
963
963
|
class: ue(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
964
964
|
}, {
|
|
965
|
-
default:
|
|
965
|
+
default: x(() => {
|
|
966
966
|
var p, g, b;
|
|
967
967
|
return [
|
|
968
968
|
w(c, { class: "w-100" }, {
|
|
969
|
-
default:
|
|
970
|
-
var u, h, f, L,
|
|
969
|
+
default: x(() => {
|
|
970
|
+
var u, h, f, L, v, C;
|
|
971
971
|
return [
|
|
972
972
|
n("div", kr, [
|
|
973
973
|
n("div", Lr, [
|
|
@@ -978,7 +978,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
978
978
|
n("div", null, y((L = o.port) == null ? void 0 : L.name), 1)
|
|
979
979
|
]),
|
|
980
980
|
o.simple ? (A(), R("div", zr, [
|
|
981
|
-
(
|
|
981
|
+
(v = o.followList) != null && v.some((z) => {
|
|
982
982
|
var P;
|
|
983
983
|
return ((P = z.port) == null ? void 0 : P.id) === o.portId;
|
|
984
984
|
}) ? (A(), F(r, {
|
|
@@ -991,7 +991,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
991
991
|
"min-width": "28",
|
|
992
992
|
onClick: l.handleCancelFollow
|
|
993
993
|
}, {
|
|
994
|
-
default:
|
|
994
|
+
default: x(() => e[2] || (e[2] = [
|
|
995
995
|
n("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
|
|
996
996
|
])),
|
|
997
997
|
_: 1,
|
|
@@ -1006,7 +1006,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1006
1006
|
"min-width": "28",
|
|
1007
1007
|
onClick: l.handleFollow
|
|
1008
1008
|
}, {
|
|
1009
|
-
default:
|
|
1009
|
+
default: x(() => e[3] || (e[3] = [
|
|
1010
1010
|
n("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
|
|
1011
1011
|
])),
|
|
1012
1012
|
_: 1,
|
|
@@ -1019,7 +1019,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1019
1019
|
class: "",
|
|
1020
1020
|
onClick: l.handleClose
|
|
1021
1021
|
}, {
|
|
1022
|
-
default:
|
|
1022
|
+
default: x(() => e[4] || (e[4] = [
|
|
1023
1023
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
1024
1024
|
])),
|
|
1025
1025
|
_: 1,
|
|
@@ -1033,7 +1033,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1033
1033
|
class: "",
|
|
1034
1034
|
onClick: l.handleClose
|
|
1035
1035
|
}, {
|
|
1036
|
-
default:
|
|
1036
|
+
default: x(() => e[5] || (e[5] = [
|
|
1037
1037
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
1038
1038
|
])),
|
|
1039
1039
|
_: 1,
|
|
@@ -1065,10 +1065,10 @@ function zn(t, e, o, i, a, l) {
|
|
|
1065
1065
|
height: "32",
|
|
1066
1066
|
onClick: l.handleCancelFollow
|
|
1067
1067
|
}, {
|
|
1068
|
-
prepend:
|
|
1068
|
+
prepend: x(() => e[7] || (e[7] = [
|
|
1069
1069
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
1070
1070
|
])),
|
|
1071
|
-
default:
|
|
1071
|
+
default: x(() => [
|
|
1072
1072
|
N(" " + y(t.$t("actions.unfollow")), 1)
|
|
1073
1073
|
]),
|
|
1074
1074
|
_: 1
|
|
@@ -1080,10 +1080,10 @@ function zn(t, e, o, i, a, l) {
|
|
|
1080
1080
|
height: "32",
|
|
1081
1081
|
onClick: l.handleFollow
|
|
1082
1082
|
}, {
|
|
1083
|
-
prepend:
|
|
1083
|
+
prepend: x(() => e[8] || (e[8] = [
|
|
1084
1084
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
1085
1085
|
])),
|
|
1086
|
-
default:
|
|
1086
|
+
default: x(() => [
|
|
1087
1087
|
N(y(t.$t("actions.follow")) + " ", 1)
|
|
1088
1088
|
]),
|
|
1089
1089
|
_: 1
|
|
@@ -1095,7 +1095,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1095
1095
|
height: "32",
|
|
1096
1096
|
onClick: l.handleMeteoMore
|
|
1097
1097
|
}, {
|
|
1098
|
-
default:
|
|
1098
|
+
default: x(() => [
|
|
1099
1099
|
N(y(t.$t("actions.7dayForcast")), 1)
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
@@ -1158,7 +1158,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1158
1158
|
rounded: "1",
|
|
1159
1159
|
mandatory: ""
|
|
1160
1160
|
}, {
|
|
1161
|
-
default:
|
|
1161
|
+
default: x(() => [
|
|
1162
1162
|
(A(!0), R(Ce, null, Me(l.dateList, (u) => (A(), F(r, {
|
|
1163
1163
|
key: u.index,
|
|
1164
1164
|
class: ue(["text-none text-body-1 flex-1-1-0", `bg-${u.index === a.currentIndex ? "bg-primary" : "gray-bg-2"}`]),
|
|
@@ -1167,7 +1167,7 @@ function zn(t, e, o, i, a, l) {
|
|
|
1167
1167
|
height: "26",
|
|
1168
1168
|
value: u.index
|
|
1169
1169
|
}, {
|
|
1170
|
-
default:
|
|
1170
|
+
default: x(() => [
|
|
1171
1171
|
N(y(u.label), 1)
|
|
1172
1172
|
]),
|
|
1173
1173
|
_: 2
|
|
@@ -1254,8 +1254,8 @@ function zn(t, e, o, i, a, l) {
|
|
|
1254
1254
|
n("tbody", null, [
|
|
1255
1255
|
n("tr", null, [
|
|
1256
1256
|
n("th", wn, y(t.$t("tide.tide")), 1),
|
|
1257
|
-
n("th",
|
|
1258
|
-
n("th",
|
|
1257
|
+
n("th", xn, y(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1258
|
+
n("th", vn, y(t.$t("tide.height")) + " ( m )", 1)
|
|
1259
1259
|
]),
|
|
1260
1260
|
(A(!0), R(Ce, null, Me(a.tideTableData, (u, h) => {
|
|
1261
1261
|
var f;
|
|
@@ -1371,7 +1371,7 @@ const _n = {
|
|
|
1371
1371
|
if (e.properties.id) {
|
|
1372
1372
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
1373
1373
|
const l = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
1374
|
-
this.marker = new
|
|
1374
|
+
this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
1375
1375
|
}
|
|
1376
1376
|
},
|
|
1377
1377
|
handleLeave() {
|
|
@@ -1390,9 +1390,9 @@ function Sn(t, e, o, i, a, l) {
|
|
|
1390
1390
|
id: "idmPortInfo",
|
|
1391
1391
|
ref: "idmPortInfo"
|
|
1392
1392
|
}, {
|
|
1393
|
-
default:
|
|
1393
|
+
default: x(() => [
|
|
1394
1394
|
w(r, { class: "text-body-1 pr-8" }, {
|
|
1395
|
-
default:
|
|
1395
|
+
default: x(() => [
|
|
1396
1396
|
n("div", Cn, [
|
|
1397
1397
|
n("div", null, y(t.$t("port.port")), 1),
|
|
1398
1398
|
n("div", Mn, [
|
|
@@ -1662,7 +1662,7 @@ const In = /* @__PURE__ */ ne(Rn, [["render", Dn]]), En = {
|
|
|
1662
1662
|
}), (i = this.map.getSource(this.source)) == null || i.setData(a);
|
|
1663
1663
|
const l = document.createElement("div");
|
|
1664
1664
|
l.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", l.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
|
|
1665
|
-
<div>${S.tz(S().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new
|
|
1665
|
+
<div>${S.tz(S().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
|
|
1666
1666
|
}
|
|
1667
1667
|
},
|
|
1668
1668
|
handleLeave() {
|
|
@@ -2368,7 +2368,7 @@ const ls = {
|
|
|
2368
2368
|
}, rs = { class: "d-flex justify-space-between align-center" }, ns = { class: "d-flex justify-start text-h5 my-2" }, ss = { class: "d-flex justify-start align-center text-h6 text-label ga-3" }, cs = { class: "summary-box w-100" }, ms = { class: "d-flex justify-space-between align-center py-2" }, ds = { class: "d-flex justify-center align-center text-h6 ga-2" }, hs = {
|
|
2369
2369
|
class: "multi-color-icon",
|
|
2370
2370
|
"aria-hidden": "true"
|
|
2371
|
-
}, us = ["xlink:href"], ps = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, gs = { class: "w-100 d-flex justify-start align-center" }, fs = { class: "w-30 text-label font-weight-400" }, ys = { class: "flex-1-1-0" }, bs = { class: "w-100 d-flex justify-start align-center" }, ws = { class: "w-30 text-label font-weight-400" },
|
|
2371
|
+
}, us = ["xlink:href"], ps = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, gs = { class: "w-100 d-flex justify-start align-center" }, fs = { class: "w-30 text-label font-weight-400" }, ys = { class: "flex-1-1-0" }, bs = { class: "w-100 d-flex justify-start align-center" }, ws = { class: "w-30 text-label font-weight-400" }, xs = { class: "flex-1-1-0" }, vs = { class: "w-100 d-flex justify-start align-center" }, As = { class: "w-30 text-label font-weight-400" }, ks = { class: "flex-1-1-0" }, Ls = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, zs = { class: "w-100 d-flex justify-space-between align-center py-2" }, _s = { class: "d-flex justify-center align-center text-h6 ga-2" }, Cs = {
|
|
2372
2372
|
class: "multi-color-icon",
|
|
2373
2373
|
"aria-hidden": "true"
|
|
2374
2374
|
}, Ms = ["xlink:href"], Ps = {
|
|
@@ -2394,11 +2394,11 @@ function Fs(t, e, o, i, a, l) {
|
|
|
2394
2394
|
return A(), F(m, {
|
|
2395
2395
|
class: ue(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
2396
2396
|
}, {
|
|
2397
|
-
default:
|
|
2397
|
+
default: x(() => {
|
|
2398
2398
|
var p, g;
|
|
2399
2399
|
return [
|
|
2400
2400
|
w(c, { class: "w-100" }, {
|
|
2401
|
-
default:
|
|
2401
|
+
default: x(() => {
|
|
2402
2402
|
var b;
|
|
2403
2403
|
return [
|
|
2404
2404
|
n("div", rs, [
|
|
@@ -2412,7 +2412,7 @@ function Fs(t, e, o, i, a, l) {
|
|
|
2412
2412
|
class: "",
|
|
2413
2413
|
onClick: l.handleClose
|
|
2414
2414
|
}, {
|
|
2415
|
-
default:
|
|
2415
|
+
default: x(() => e[1] || (e[1] = [
|
|
2416
2416
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
2417
2417
|
])),
|
|
2418
2418
|
_: 1,
|
|
@@ -2448,9 +2448,9 @@ function Fs(t, e, o, i, a, l) {
|
|
|
2448
2448
|
]),
|
|
2449
2449
|
n("div", bs, [
|
|
2450
2450
|
n("div", ws, y(t.$t("tide.position")), 1),
|
|
2451
|
-
n("div",
|
|
2451
|
+
n("div", xs, y(l.computePosition(o.station)), 1)
|
|
2452
2452
|
]),
|
|
2453
|
-
n("div",
|
|
2453
|
+
n("div", vs, [
|
|
2454
2454
|
n("div", As, y(t.$t("time.localTime")), 1),
|
|
2455
2455
|
n("div", ks, y(l.computeLocalTime(o.realTime, o.station)) + " " + y(l.computeTimeOffset(o.station)), 1)
|
|
2456
2456
|
])
|
|
@@ -2482,7 +2482,7 @@ function Fs(t, e, o, i, a, l) {
|
|
|
2482
2482
|
rounded: "1",
|
|
2483
2483
|
mandatory: ""
|
|
2484
2484
|
}, {
|
|
2485
|
-
default:
|
|
2485
|
+
default: x(() => [
|
|
2486
2486
|
(A(!0), R(Ce, null, Me(l.dateList, (b) => (A(), F(r, {
|
|
2487
2487
|
key: b.label,
|
|
2488
2488
|
class: ue(["text-none text-body-1 flex-1-1-0", `bg-${b.index === a.currentIndex ? "bg-primary" : "gray-bg-2"}`]),
|
|
@@ -2491,7 +2491,7 @@ function Fs(t, e, o, i, a, l) {
|
|
|
2491
2491
|
height: "26",
|
|
2492
2492
|
value: b.index
|
|
2493
2493
|
}, {
|
|
2494
|
-
default:
|
|
2494
|
+
default: x(() => [
|
|
2495
2495
|
N(y(b.label), 1)
|
|
2496
2496
|
]),
|
|
2497
2497
|
_: 2
|
|
@@ -2590,7 +2590,7 @@ const js = {
|
|
|
2590
2590
|
if (e.properties) {
|
|
2591
2591
|
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
|
|
2592
2592
|
const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
|
|
2593
|
-
this.marker = new
|
|
2593
|
+
this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
|
|
2594
2594
|
}
|
|
2595
2595
|
},
|
|
2596
2596
|
handleLeave() {
|
|
@@ -2606,9 +2606,9 @@ function Xs(t, e, o, i, a, l) {
|
|
|
2606
2606
|
const r = M("VCardText"), c = M("VCard"), s = M("TideDetail");
|
|
2607
2607
|
return A(), R("div", null, [
|
|
2608
2608
|
uo(w(c, { id: "idmTidalInfo" }, {
|
|
2609
|
-
default:
|
|
2609
|
+
default: x(() => [
|
|
2610
2610
|
w(r, { class: "pr-8 text-body-1" }, {
|
|
2611
|
-
default:
|
|
2611
|
+
default: x(() => {
|
|
2612
2612
|
var d, m;
|
|
2613
2613
|
return [
|
|
2614
2614
|
n("div", Ns, [
|
|
@@ -2977,7 +2977,7 @@ const Qs = {
|
|
|
2977
2977
|
if (e.properties.id) {
|
|
2978
2978
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
2979
2979
|
const l = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
2980
|
-
this.marker = new
|
|
2980
|
+
this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
2981
2981
|
}
|
|
2982
2982
|
},
|
|
2983
2983
|
handleLeave() {
|
|
@@ -2996,9 +2996,9 @@ function tc(t, e, o, i, a, l) {
|
|
|
2996
2996
|
id: "idmFollowPortInfo",
|
|
2997
2997
|
ref: "idmFollowPortInfo"
|
|
2998
2998
|
}, {
|
|
2999
|
-
default:
|
|
2999
|
+
default: x(() => [
|
|
3000
3000
|
w(r, { class: "text-body-1 pr-8" }, {
|
|
3001
|
-
default:
|
|
3001
|
+
default: x(() => [
|
|
3002
3002
|
n("div", qs, [
|
|
3003
3003
|
n("div", null, y(t.$t("port.port")), 1),
|
|
3004
3004
|
n("div", $s, [
|
|
@@ -3155,7 +3155,7 @@ const ac = {
|
|
|
3155
3155
|
if (e.properties.id) {
|
|
3156
3156
|
this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
|
|
3157
3157
|
const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
|
|
3158
|
-
this.marker = new
|
|
3158
|
+
this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
3161
|
handleLeave() {
|
|
@@ -3173,9 +3173,9 @@ function nc(t, e, o, i, a, l) {
|
|
|
3173
3173
|
id: "idmFollowPositionInfo",
|
|
3174
3174
|
ref: "idmFollowPositionInfo"
|
|
3175
3175
|
}, {
|
|
3176
|
-
default:
|
|
3176
|
+
default: x(() => [
|
|
3177
3177
|
w(r, { class: "text-body-1 pr-8" }, {
|
|
3178
|
-
default:
|
|
3178
|
+
default: x(() => [
|
|
3179
3179
|
n("div", ic, [
|
|
3180
3180
|
e[0] || (e[0] = n("div", null, "Location", -1)),
|
|
3181
3181
|
n("div", lc, [
|
|
@@ -3201,7 +3201,7 @@ const cc = {
|
|
|
3201
3201
|
IdmWarZone: dr,
|
|
3202
3202
|
IdmGmdssArea: pr,
|
|
3203
3203
|
IdmEcaZone: yr,
|
|
3204
|
-
IdmAlertZone:
|
|
3204
|
+
IdmAlertZone: vr,
|
|
3205
3205
|
IdmPort: Tn,
|
|
3206
3206
|
IdmLoadLine: In,
|
|
3207
3207
|
IdmTimezone: Fn,
|
|
@@ -3421,9 +3421,9 @@ const cc = {
|
|
|
3421
3421
|
src: "https://ossimg.ormwx.com/asset/light-map.png",
|
|
3422
3422
|
class: "border rounded-sm"
|
|
3423
3423
|
}, wc = { class: "text-body-2 text-center pt-2" };
|
|
3424
|
-
function
|
|
3424
|
+
function xc(t, e, o, i, a, l) {
|
|
3425
3425
|
var be, E, $, te, se, q, Y, le, Z;
|
|
3426
|
-
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), g = M("VCard"), b = M("IdmPort"), u = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), L = M("IdmTimezone"),
|
|
3426
|
+
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), g = M("VCard"), b = M("IdmPort"), u = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), L = M("IdmTimezone"), v = M("IdmAlertZone"), C = M("IdmEcaZone"), z = M("IdmWarZone"), P = M("IdmGmdssArea"), _ = M("IdmLoadLine"), D = M("IdmWorldMarine"), T = M("IdmVRA"), B = M("IdmSpecialArea"), j = M("IdmWorld12nm"), G = M("IdmChinaRoute"), Q = M("IdmIceAreas"), ie = M("IdmNsrAreas"), re = M("IdmFollowPort"), xe = M("IdmFollowPosition");
|
|
3427
3427
|
return A(), R("div", mc, [
|
|
3428
3428
|
n("div", {
|
|
3429
3429
|
class: ue(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -3437,7 +3437,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3437
3437
|
"open-on-focus": !o.simple,
|
|
3438
3438
|
"open-on-hover": !o.simple
|
|
3439
3439
|
}, {
|
|
3440
|
-
activator:
|
|
3440
|
+
activator: x(({ props: U }) => [
|
|
3441
3441
|
w(r, V(U, {
|
|
3442
3442
|
"min-width": "32",
|
|
3443
3443
|
width: "32",
|
|
@@ -3445,7 +3445,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3445
3445
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
3446
3446
|
onClick: l.handleMenuToggle
|
|
3447
3447
|
}), {
|
|
3448
|
-
default:
|
|
3448
|
+
default: x(() => e[5] || (e[5] = [
|
|
3449
3449
|
n("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
|
|
3450
3450
|
])),
|
|
3451
3451
|
_: 2,
|
|
@@ -3468,7 +3468,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3468
3468
|
class: "mr-n2",
|
|
3469
3469
|
onClick: l.handleMenuToggle
|
|
3470
3470
|
}, {
|
|
3471
|
-
default:
|
|
3471
|
+
default: x(() => e[6] || (e[6] = [
|
|
3472
3472
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
3473
3473
|
])),
|
|
3474
3474
|
_: 1,
|
|
@@ -3482,11 +3482,11 @@ function vc(t, e, o, i, a, l) {
|
|
|
3482
3482
|
class: "block-bg mx-auto mb-2",
|
|
3483
3483
|
elevation: "0"
|
|
3484
3484
|
}, {
|
|
3485
|
-
default:
|
|
3485
|
+
default: x(() => [
|
|
3486
3486
|
w(d, { class: "border-b-thin" }, {
|
|
3487
|
-
default:
|
|
3487
|
+
default: x(() => [
|
|
3488
3488
|
w(s, { class: "text-h6" }, {
|
|
3489
|
-
default:
|
|
3489
|
+
default: x(() => [
|
|
3490
3490
|
N(y(t.$t("layer.mapFeathers")), 1)
|
|
3491
3491
|
]),
|
|
3492
3492
|
_: 1
|
|
@@ -3495,7 +3495,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3495
3495
|
_: 1
|
|
3496
3496
|
}),
|
|
3497
3497
|
w(p, { class: "pb-2" }, {
|
|
3498
|
-
default:
|
|
3498
|
+
default: x(() => [
|
|
3499
3499
|
n("div", uc, [
|
|
3500
3500
|
(A(!0), R(Ce, null, Me(a.mapFeathers, (U) => (A(), R("div", {
|
|
3501
3501
|
key: U.value,
|
|
@@ -3532,11 +3532,11 @@ function vc(t, e, o, i, a, l) {
|
|
|
3532
3532
|
class: "block-bg mx-auto mb-2",
|
|
3533
3533
|
elevation: "0"
|
|
3534
3534
|
}, {
|
|
3535
|
-
default:
|
|
3535
|
+
default: x(() => [
|
|
3536
3536
|
w(d, { class: "border-b-thin" }, {
|
|
3537
|
-
default:
|
|
3537
|
+
default: x(() => [
|
|
3538
3538
|
w(s, { class: "text-h6" }, {
|
|
3539
|
-
default:
|
|
3539
|
+
default: x(() => [
|
|
3540
3540
|
N(y(t.$t("layer.pointsOfInteresting")), 1)
|
|
3541
3541
|
]),
|
|
3542
3542
|
_: 1
|
|
@@ -3545,7 +3545,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3545
3545
|
_: 1
|
|
3546
3546
|
}),
|
|
3547
3547
|
w(p, { class: "py-2 mx-n1" }, {
|
|
3548
|
-
default:
|
|
3548
|
+
default: x(() => [
|
|
3549
3549
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((U) => ["ports", "alert-zones", "tidal-stations"].includes(U.key)), (U) => (A(), F(m, {
|
|
3550
3550
|
key: U.key,
|
|
3551
3551
|
modelValue: a.checkList,
|
|
@@ -3568,11 +3568,11 @@ function vc(t, e, o, i, a, l) {
|
|
|
3568
3568
|
class: "block-bg mx-auto mb-2",
|
|
3569
3569
|
elevation: "0"
|
|
3570
3570
|
}, {
|
|
3571
|
-
default:
|
|
3571
|
+
default: x(() => [
|
|
3572
3572
|
w(d, { class: "border-b-thin" }, {
|
|
3573
|
-
default:
|
|
3573
|
+
default: x(() => [
|
|
3574
3574
|
w(s, { class: "text-h6" }, {
|
|
3575
|
-
default:
|
|
3575
|
+
default: x(() => [
|
|
3576
3576
|
N(y(t.$t("layer.otherLayers")), 1)
|
|
3577
3577
|
]),
|
|
3578
3578
|
_: 1
|
|
@@ -3581,7 +3581,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3581
3581
|
_: 1
|
|
3582
3582
|
}),
|
|
3583
3583
|
w(p, { class: "py-2 mx-n1" }, {
|
|
3584
|
-
default:
|
|
3584
|
+
default: x(() => [
|
|
3585
3585
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((U) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(U.key)), (U) => (A(), F(m, {
|
|
3586
3586
|
key: U.key,
|
|
3587
3587
|
modelValue: a.checkList,
|
|
@@ -3604,11 +3604,11 @@ function vc(t, e, o, i, a, l) {
|
|
|
3604
3604
|
class: "block-bg mx-auto mb-3",
|
|
3605
3605
|
elevation: "0"
|
|
3606
3606
|
}, {
|
|
3607
|
-
default:
|
|
3607
|
+
default: x(() => [
|
|
3608
3608
|
w(d, { class: "border-b-thin" }, {
|
|
3609
|
-
default:
|
|
3609
|
+
default: x(() => [
|
|
3610
3610
|
w(s, { class: "text-h6" }, {
|
|
3611
|
-
default:
|
|
3611
|
+
default: x(() => [
|
|
3612
3612
|
N(y(t.$t("layer.myFollows")), 1)
|
|
3613
3613
|
]),
|
|
3614
3614
|
_: 1
|
|
@@ -3617,7 +3617,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3617
3617
|
_: 1
|
|
3618
3618
|
}),
|
|
3619
3619
|
w(p, { class: "py-2 mx-n1" }, {
|
|
3620
|
-
default:
|
|
3620
|
+
default: x(() => [
|
|
3621
3621
|
w(m, {
|
|
3622
3622
|
modelValue: a.checkList,
|
|
3623
3623
|
"onUpdate:modelValue": e[3] || (e[3] = (U) => a.checkList = U),
|
|
@@ -3692,7 +3692,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3692
3692
|
zone: ($ = a.otherLayers) == null ? void 0 : $["time-zones"],
|
|
3693
3693
|
"real-time": o.realTime
|
|
3694
3694
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "zone", "real-time"])) : I("", !0),
|
|
3695
|
-
o.map ? (A(), F(
|
|
3695
|
+
o.map ? (A(), F(v, V({
|
|
3696
3696
|
key: 5,
|
|
3697
3697
|
map: o.map,
|
|
3698
3698
|
simple: o.simple,
|
|
@@ -3770,7 +3770,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3770
3770
|
"forecast-model": o.forecastModel,
|
|
3771
3771
|
"real-time": o.realTime
|
|
3772
3772
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "real-time"])) : I("", !0),
|
|
3773
|
-
o.map ? (A(), F(
|
|
3773
|
+
o.map ? (A(), F(xe, V({
|
|
3774
3774
|
key: 18,
|
|
3775
3775
|
ref: "idmFollowPosition",
|
|
3776
3776
|
simple: o.simple,
|
|
@@ -3781,7 +3781,7 @@ function vc(t, e, o, i, a, l) {
|
|
|
3781
3781
|
}, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "real-time"])) : I("", !0)
|
|
3782
3782
|
]);
|
|
3783
3783
|
}
|
|
3784
|
-
const
|
|
3784
|
+
const vc = /* @__PURE__ */ ne(cc, [["render", xc]]);
|
|
3785
3785
|
class ua {
|
|
3786
3786
|
constructor(e) {
|
|
3787
3787
|
ke(this, "map");
|
|
@@ -3859,16 +3859,20 @@ class ua {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
resize() {
|
|
3861
3861
|
let e = this.map.getSource(this.rampColorSource);
|
|
3862
|
-
e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
|
|
3862
|
+
e == null || e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e == null || e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
|
|
3863
3863
|
}
|
|
3864
3864
|
toggle(e) {
|
|
3865
3865
|
var a;
|
|
3866
|
-
|
|
3866
|
+
if (!((a = this.map) != null && a.getLayer(this.rampColorLayer)))
|
|
3867
|
+
return;
|
|
3868
|
+
const o = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), i = e ? "visible" : "none";
|
|
3867
3869
|
o !== i && this.map.setLayoutProperty(this.rampColorLayer, "visibility", i);
|
|
3868
3870
|
}
|
|
3869
3871
|
toggleParticle(e) {
|
|
3870
3872
|
var a;
|
|
3871
|
-
|
|
3873
|
+
if (!((a = this.map) != null && a.getLayer(this.particleLayer)))
|
|
3874
|
+
return;
|
|
3875
|
+
const o = this.map.getLayoutProperty(this.particleLayer, "visibility"), i = e ? "visible" : "none";
|
|
3872
3876
|
o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
3873
3877
|
}
|
|
3874
3878
|
}
|
|
@@ -4018,7 +4022,7 @@ class ro {
|
|
|
4018
4022
|
m.resolution && o.uniform2f(m.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), m.image && o.uniform1i(m.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, l), m.color && o.uniform1i(m.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (m.uvRange && o.uniform2f(m.uvRange, c.uvRange[0], c.uvRange[1]), m.sRange && o.uniform2f(m.sRange, c.sRange[0], c.sRange[1])), m.scale && o.uniform1f(m.scale, (c == null ? void 0 : c.scale) || 1);
|
|
4019
4023
|
const p = e.getBoundPixel(), g = e.map.getZoom() + 1, b = e.getWorldCopy(p, g);
|
|
4020
4024
|
for (const u of b) {
|
|
4021
|
-
const h = (u[0] - p[0]) * e.ratio, f = (u[1] - p[3]) * e.ratio, L = u[2] * e.ratio, [
|
|
4025
|
+
const h = (u[0] - p[0]) * e.ratio, f = (u[1] - p[3]) * e.ratio, L = u[2] * e.ratio, [v, C, z, P] = [h, L + h, f, L + f], _ = new Float32Array([v, z, C, z, v, P, v, P, C, z, C, P]);
|
|
4022
4026
|
o.bindBuffer(o.ARRAY_BUFFER, r), o.bufferData(o.ARRAY_BUFFER, _, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4023
4027
|
}
|
|
4024
4028
|
} catch (m) {
|
|
@@ -6174,8 +6178,8 @@ function wm(t, e, o, i, a, l) {
|
|
|
6174
6178
|
]), 4)
|
|
6175
6179
|
])) : I("", !0);
|
|
6176
6180
|
}
|
|
6177
|
-
const
|
|
6178
|
-
const
|
|
6181
|
+
const xm = /* @__PURE__ */ ne(ym, [["render", wm]]);
|
|
6182
|
+
const vm = {
|
|
6179
6183
|
name: "IdmTemp",
|
|
6180
6184
|
props: {
|
|
6181
6185
|
simple: {
|
|
@@ -6299,7 +6303,7 @@ function km(t, e, o, i, a, l) {
|
|
|
6299
6303
|
]), 4)
|
|
6300
6304
|
])) : I("", !0);
|
|
6301
6305
|
}
|
|
6302
|
-
const Lm = /* @__PURE__ */ ne(
|
|
6306
|
+
const Lm = /* @__PURE__ */ ne(vm, [["render", km]]);
|
|
6303
6307
|
const zm = {
|
|
6304
6308
|
name: "IdmGlLayer",
|
|
6305
6309
|
components: {
|
|
@@ -6316,7 +6320,7 @@ const zm = {
|
|
|
6316
6320
|
IdmIceThickness: sm,
|
|
6317
6321
|
IdmPrecip3h: hm,
|
|
6318
6322
|
IdmVisibility: fm,
|
|
6319
|
-
IdmWaterTemp:
|
|
6323
|
+
IdmWaterTemp: xm,
|
|
6320
6324
|
IdmTemp: Lm
|
|
6321
6325
|
},
|
|
6322
6326
|
props: {
|
|
@@ -6484,7 +6488,10 @@ const zm = {
|
|
|
6484
6488
|
},
|
|
6485
6489
|
map: {
|
|
6486
6490
|
handler() {
|
|
6487
|
-
|
|
6491
|
+
const t = this.map;
|
|
6492
|
+
t && (this.viewport = new ua(t), t.once("idle", () => {
|
|
6493
|
+
this.map === t && (this.fetchCache(), t.on("move", this.handleMove4Weather), this.handleRampColorInitial());
|
|
6494
|
+
}), t.triggerRepaint());
|
|
6488
6495
|
},
|
|
6489
6496
|
immediate: !0
|
|
6490
6497
|
},
|
|
@@ -6629,15 +6636,15 @@ const zm = {
|
|
|
6629
6636
|
}
|
|
6630
6637
|
);
|
|
6631
6638
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), ((r = L == null ? void 0 : L.data) == null ? void 0 : r.code) === 0) {
|
|
6632
|
-
const
|
|
6633
|
-
for (const P in
|
|
6639
|
+
const v = (c = L == null ? void 0 : L.data) == null ? void 0 : c.data, C = [];
|
|
6640
|
+
for (const P in v)
|
|
6634
6641
|
C.push(
|
|
6635
|
-
Ie.get(
|
|
6642
|
+
Ie.get(v[P], {
|
|
6636
6643
|
headers: {
|
|
6637
6644
|
Authorization: this.defaultMeteoToken,
|
|
6638
6645
|
key: P
|
|
6639
6646
|
},
|
|
6640
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6647
|
+
responseType: /\.(jpg|png)$/.test(v[P]) ? "blob" : "json"
|
|
6641
6648
|
}).catch((_) => {
|
|
6642
6649
|
console.log(`[${P}] fetch layer error: ${_}`);
|
|
6643
6650
|
})
|
|
@@ -6655,19 +6662,19 @@ const zm = {
|
|
|
6655
6662
|
});
|
|
6656
6663
|
}
|
|
6657
6664
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6658
|
-
const
|
|
6665
|
+
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw, C = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
6659
6666
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6660
6667
|
type: "json",
|
|
6661
|
-
direction:
|
|
6668
|
+
direction: v,
|
|
6662
6669
|
height: { raw: C },
|
|
6663
6670
|
etime: L.data.etime
|
|
6664
6671
|
};
|
|
6665
6672
|
}
|
|
6666
6673
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6667
|
-
const
|
|
6674
|
+
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, C = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6668
6675
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6669
6676
|
type: "json",
|
|
6670
|
-
direction:
|
|
6677
|
+
direction: v,
|
|
6671
6678
|
speed: { raw: C },
|
|
6672
6679
|
etime: L.data.etime
|
|
6673
6680
|
};
|
|
@@ -6675,8 +6682,8 @@ const zm = {
|
|
|
6675
6682
|
}
|
|
6676
6683
|
}
|
|
6677
6684
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json(), this.$nextTick(() => {
|
|
6678
|
-
var h, f, L,
|
|
6679
|
-
(C = (
|
|
6685
|
+
var h, f, L, v, C;
|
|
6686
|
+
(C = (v = (L = (f = (h = this.$parent) == null ? void 0 : h.$refs) == null ? void 0 : f.idmBottomBar) == null ? void 0 : L.$refs) == null ? void 0 : v.capture) == null || C.captureCurrentFrame();
|
|
6680
6687
|
});
|
|
6681
6688
|
}
|
|
6682
6689
|
},
|
|
@@ -6748,24 +6755,24 @@ const zm = {
|
|
|
6748
6755
|
let L = [];
|
|
6749
6756
|
if (h === "swell") {
|
|
6750
6757
|
f = !0;
|
|
6751
|
-
const
|
|
6752
|
-
for (const z in
|
|
6758
|
+
const v = ((r = this.weatherLayers[h]) == null ? void 0 : r.direction) || {};
|
|
6759
|
+
for (const z in v)
|
|
6753
6760
|
if (z > b && z < u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6754
|
-
const P =
|
|
6761
|
+
const P = v[z].lng;
|
|
6755
6762
|
p > g ? P.forEach((_, D) => {
|
|
6756
6763
|
var T, B, j, G, Q, ie;
|
|
6757
6764
|
if (i < 2) {
|
|
6758
6765
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6759
6766
|
const re = W.point([_, z], {
|
|
6760
|
-
val: ((T =
|
|
6761
|
-
spd: (j =
|
|
6767
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6768
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6762
6769
|
});
|
|
6763
6770
|
L.push(re);
|
|
6764
6771
|
}
|
|
6765
6772
|
} else if ((_ >= p && _ <= 180 || _ >= -180 && _ <= g) && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6766
6773
|
const re = W.point([_, z], {
|
|
6767
|
-
val: ((G =
|
|
6768
|
-
spd: (ie =
|
|
6774
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6775
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6769
6776
|
});
|
|
6770
6777
|
L.push(re);
|
|
6771
6778
|
}
|
|
@@ -6774,15 +6781,15 @@ const zm = {
|
|
|
6774
6781
|
if (p < 2) {
|
|
6775
6782
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6776
6783
|
const re = W.point([_, z], {
|
|
6777
|
-
val: ((T =
|
|
6778
|
-
spd: (j =
|
|
6784
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6785
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6779
6786
|
});
|
|
6780
6787
|
L.push(re);
|
|
6781
6788
|
}
|
|
6782
6789
|
} else if (_ >= p && _ <= g && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6783
6790
|
const re = W.point([_, z], {
|
|
6784
|
-
val: ((G =
|
|
6785
|
-
spd: (ie =
|
|
6791
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6792
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6786
6793
|
});
|
|
6787
6794
|
L.push(re);
|
|
6788
6795
|
}
|
|
@@ -6812,24 +6819,24 @@ const zm = {
|
|
|
6812
6819
|
}
|
|
6813
6820
|
} else if (h === "current") {
|
|
6814
6821
|
f = !0;
|
|
6815
|
-
const
|
|
6816
|
-
for (const z in
|
|
6822
|
+
const v = ((s = this.weatherLayers[h]) == null ? void 0 : s.direction) || {};
|
|
6823
|
+
for (const z in v)
|
|
6817
6824
|
if (z > b && z < u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6818
|
-
const P =
|
|
6825
|
+
const P = v[z].lng;
|
|
6819
6826
|
p > g ? P.forEach((_, D) => {
|
|
6820
6827
|
var T, B, j, G, Q, ie;
|
|
6821
6828
|
if (i < 2) {
|
|
6822
6829
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6823
6830
|
const re = W.point([_, z], {
|
|
6824
|
-
val: ((T =
|
|
6825
|
-
spd: (j =
|
|
6831
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6832
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6826
6833
|
});
|
|
6827
6834
|
L.push(re);
|
|
6828
6835
|
}
|
|
6829
6836
|
} else if ((_ >= p && _ <= 180 || _ >= -180 && _ <= g) && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6830
6837
|
const re = W.point([_, z], {
|
|
6831
|
-
val: ((G =
|
|
6832
|
-
spd: (ie =
|
|
6838
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6839
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6833
6840
|
});
|
|
6834
6841
|
L.push(re);
|
|
6835
6842
|
}
|
|
@@ -6838,15 +6845,15 @@ const zm = {
|
|
|
6838
6845
|
if (p < 2) {
|
|
6839
6846
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6840
6847
|
const re = W.point([_, z], {
|
|
6841
|
-
val: ((T =
|
|
6842
|
-
spd: (j =
|
|
6848
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6849
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6843
6850
|
});
|
|
6844
6851
|
L.push(re);
|
|
6845
6852
|
}
|
|
6846
6853
|
} else if (_ >= p && _ <= g && (!(i <= this.zoom) || _ % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6847
6854
|
const re = W.point([_, z], {
|
|
6848
|
-
val: ((G =
|
|
6849
|
-
spd: (ie =
|
|
6855
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6856
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6850
6857
|
});
|
|
6851
6858
|
L.push(re);
|
|
6852
6859
|
}
|
|
@@ -6873,24 +6880,24 @@ const zm = {
|
|
|
6873
6880
|
}
|
|
6874
6881
|
} else if (h === "wind") {
|
|
6875
6882
|
f = !0;
|
|
6876
|
-
const
|
|
6877
|
-
for (const C in
|
|
6883
|
+
const v = this.weatherLayers.wind.raw;
|
|
6884
|
+
for (const C in v)
|
|
6878
6885
|
if (C > b && C < u && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6879
|
-
const z =
|
|
6886
|
+
const z = v[C].lng;
|
|
6880
6887
|
p > g ? z.forEach((P, _) => {
|
|
6881
6888
|
var D, T, B, j;
|
|
6882
6889
|
if (i < 2) {
|
|
6883
6890
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6884
6891
|
const G = W.point([P, C], {
|
|
6885
|
-
dir: ((D =
|
|
6886
|
-
spd:
|
|
6892
|
+
dir: ((D = v[C].val) == null ? void 0 : D[_]) || ((T = v[C].dir) == null ? void 0 : T[_]),
|
|
6893
|
+
spd: v[C].spd[_]
|
|
6887
6894
|
});
|
|
6888
6895
|
L.push(G);
|
|
6889
6896
|
}
|
|
6890
6897
|
} else if ((P >= p && P <= 180 || P >= -180 && P <= g) && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6891
6898
|
const G = W.point([P, C], {
|
|
6892
|
-
dir: ((B =
|
|
6893
|
-
spd:
|
|
6899
|
+
dir: ((B = v[C].val) == null ? void 0 : B[_]) || ((j = v[C].dir) == null ? void 0 : j[_]),
|
|
6900
|
+
spd: v[C].spd[_]
|
|
6894
6901
|
});
|
|
6895
6902
|
L.push(G);
|
|
6896
6903
|
}
|
|
@@ -6899,15 +6906,15 @@ const zm = {
|
|
|
6899
6906
|
if (i < 2) {
|
|
6900
6907
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6901
6908
|
const G = W.point([P, C], {
|
|
6902
|
-
dir: ((D =
|
|
6903
|
-
spd:
|
|
6909
|
+
dir: ((D = v[C].val) == null ? void 0 : D[_]) || ((T = v[C].dir) == null ? void 0 : T[_]),
|
|
6910
|
+
spd: v[C].spd[_]
|
|
6904
6911
|
});
|
|
6905
6912
|
L.push(G);
|
|
6906
6913
|
}
|
|
6907
6914
|
} else if (P >= p && P <= g && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6908
6915
|
const G = W.point([P, C], {
|
|
6909
|
-
dir: ((B =
|
|
6910
|
-
spd:
|
|
6916
|
+
dir: ((B = v[C].val) == null ? void 0 : B[_]) || ((j = v[C].dir) == null ? void 0 : j[_]),
|
|
6917
|
+
spd: v[C].spd[_]
|
|
6911
6918
|
});
|
|
6912
6919
|
L.push(G);
|
|
6913
6920
|
}
|
|
@@ -6919,11 +6926,11 @@ const zm = {
|
|
|
6919
6926
|
L = this.weatherLayers[h].data;
|
|
6920
6927
|
else {
|
|
6921
6928
|
f = !0;
|
|
6922
|
-
const
|
|
6923
|
-
if (
|
|
6929
|
+
const v = this.weatherLayers[h].raw;
|
|
6930
|
+
if (v) {
|
|
6924
6931
|
const C = [];
|
|
6925
|
-
for (const z in
|
|
6926
|
-
const P =
|
|
6932
|
+
for (const z in v.Polygon) {
|
|
6933
|
+
const P = v.Polygon[z];
|
|
6927
6934
|
for (const _ of P)
|
|
6928
6935
|
C.push(
|
|
6929
6936
|
W.polygon(_, {
|
|
@@ -6931,8 +6938,8 @@ const zm = {
|
|
|
6931
6938
|
})
|
|
6932
6939
|
);
|
|
6933
6940
|
}
|
|
6934
|
-
for (const z in
|
|
6935
|
-
const P =
|
|
6941
|
+
for (const z in v.MultiPolygon) {
|
|
6942
|
+
const P = v.MultiPolygon[z];
|
|
6936
6943
|
for (const _ of P)
|
|
6937
6944
|
C.push(
|
|
6938
6945
|
W.multiPolygon(_, {
|
|
@@ -6940,8 +6947,8 @@ const zm = {
|
|
|
6940
6947
|
})
|
|
6941
6948
|
);
|
|
6942
6949
|
}
|
|
6943
|
-
for (const z in
|
|
6944
|
-
const P =
|
|
6950
|
+
for (const z in v.Point) {
|
|
6951
|
+
const P = v.Point[z];
|
|
6945
6952
|
for (let _ = 0; _ < ((m = P.lng) == null ? void 0 : m.length); _++)
|
|
6946
6953
|
C.push(
|
|
6947
6954
|
W.point([P.lng[_], z], {
|
|
@@ -6958,11 +6965,11 @@ const zm = {
|
|
|
6958
6965
|
L = this.weatherLayers[h].data;
|
|
6959
6966
|
else {
|
|
6960
6967
|
f = !0;
|
|
6961
|
-
const
|
|
6962
|
-
if (
|
|
6968
|
+
const v = this.weatherLayers[h].raw;
|
|
6969
|
+
if (v) {
|
|
6963
6970
|
const C = [];
|
|
6964
|
-
for (const z in
|
|
6965
|
-
const P =
|
|
6971
|
+
for (const z in v.LineString) {
|
|
6972
|
+
const P = v.LineString[z];
|
|
6966
6973
|
for (const _ of P)
|
|
6967
6974
|
C.push(
|
|
6968
6975
|
W.lineString(_, {
|
|
@@ -6970,12 +6977,12 @@ const zm = {
|
|
|
6970
6977
|
})
|
|
6971
6978
|
);
|
|
6972
6979
|
}
|
|
6973
|
-
for (const z in
|
|
6974
|
-
|
|
6980
|
+
for (const z in v.Point)
|
|
6981
|
+
v.Point[z].lng.forEach((P, _) => {
|
|
6975
6982
|
P = H.convertToStdLng(P), C.push(
|
|
6976
6983
|
W.point([P, z], {
|
|
6977
|
-
val:
|
|
6978
|
-
type:
|
|
6984
|
+
val: v.Point[z].val[_],
|
|
6985
|
+
type: v.Point[z].type[_]
|
|
6979
6986
|
})
|
|
6980
6987
|
);
|
|
6981
6988
|
});
|
|
@@ -7031,7 +7038,7 @@ const zm = {
|
|
|
7031
7038
|
}, Xm = { class: "text-body-1 py-2" }, Om = { class: "text-body-1 font-weight-medium" }, Hm = { class: "text-body-2 text-label" }, Ym = { class: "text-body-2 text-label" }, Um = { class: "text-body-2 text-label mb-3" }, Jm = { class: "text-body-1 font-weight-medium" }, Km = { class: "text-body-2 text-label" }, Qm = { class: "text-body-2 text-label" }, qm = { class: "text-body-2 text-label mb-3" }, $m = { class: "text-body-1 py-2" }, ed = { class: "text-body-1 font-weight-medium" }, td = { class: "text-body-2 text-label" }, od = { class: "text-body-2 text-label" }, ad = { class: "text-body-2 text-label mb-3" }, id = { class: "text-body-1 font-weight-medium" }, ld = { class: "text-body-2 text-label" }, rd = { class: "text-body-2 text-label" }, nd = { class: "text-body-2 text-label mb-3" }, sd = { class: "text-body-1 py-2" }, cd = { class: "text-body-1 font-weight-medium" }, md = { class: "text-body-2 text-label" }, dd = { class: "text-body-2 text-label" }, hd = { class: "text-body-2 text-label mb-3" };
|
|
7032
7039
|
function ud(t, e, o, i, a, l) {
|
|
7033
7040
|
var be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze, he, Ae;
|
|
7034
|
-
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardText"), d = M("VDivider"), m = M("VCard"), p = M("VSwitch"), g = M("VBtnToggle"), b = M("VCardTitle"), u = M("VCardItem"), h = M("VCheckbox"), f = M("VRadio"), L = M("IdmWindBarb"),
|
|
7041
|
+
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardText"), d = M("VDivider"), m = M("VCard"), p = M("VSwitch"), g = M("VBtnToggle"), b = M("VCardTitle"), u = M("VCardItem"), h = M("VCheckbox"), f = M("VRadio"), L = M("IdmWindBarb"), v = M("IdmSigWaveHeight"), C = M("IdmCurrentDirection"), z = M("IdmPrmsl"), P = M("IdmWindParticle"), _ = M("IdmCurrentParticle"), D = M("IdmWave"), T = M("IdmSwell"), B = M("IdmIceEdge"), j = M("IdmIceCover"), G = M("IdmIceThickness"), Q = M("IdmPrecip3h"), ie = M("IdmVisibility"), re = M("IdmWaterTemp"), xe = M("IdmTemp");
|
|
7035
7042
|
return A(), R("div", _m, [
|
|
7036
7043
|
n("div", {
|
|
7037
7044
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7045,7 +7052,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7045
7052
|
"open-on-focus": !o.simple,
|
|
7046
7053
|
"open-on-hover": !o.simple
|
|
7047
7054
|
}, {
|
|
7048
|
-
activator:
|
|
7055
|
+
activator: x(({ props: ee }) => [
|
|
7049
7056
|
w(r, V(ee, {
|
|
7050
7057
|
"min-width": "32",
|
|
7051
7058
|
width: "32",
|
|
@@ -7053,7 +7060,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7053
7060
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7054
7061
|
onClick: l.handleMenuToggle
|
|
7055
7062
|
}), {
|
|
7056
|
-
default:
|
|
7063
|
+
default: x(() => e[9] || (e[9] = [
|
|
7057
7064
|
n("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
7058
7065
|
])),
|
|
7059
7066
|
_: 2,
|
|
@@ -7066,7 +7073,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7066
7073
|
l.showTipMenu ? (A(), R("div", Cm, [
|
|
7067
7074
|
n("div", {
|
|
7068
7075
|
class: ue(["menu-bar-box pa-1 rounded", o.simple ? "simple" : ""]),
|
|
7069
|
-
style: ge({ right: a.right + "px", top: o.simple ? "394px" : "
|
|
7076
|
+
style: ge({ right: a.right + "px", top: o.simple ? "394px" : "580px" })
|
|
7070
7077
|
}, [
|
|
7071
7078
|
w(c, {
|
|
7072
7079
|
text: t.$t("weather.legend"),
|
|
@@ -7076,7 +7083,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7076
7083
|
"open-on-focus": !o.simple,
|
|
7077
7084
|
"open-on-hover": !o.simple
|
|
7078
7085
|
}, {
|
|
7079
|
-
activator:
|
|
7086
|
+
activator: x(({ props: ee }) => [
|
|
7080
7087
|
w(r, V(ee, {
|
|
7081
7088
|
"min-width": "32",
|
|
7082
7089
|
width: "32",
|
|
@@ -7084,7 +7091,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7084
7091
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
7085
7092
|
onClick: e[0] || (e[0] = (we) => a.legendToggle = !a.legendToggle)
|
|
7086
7093
|
}), {
|
|
7087
|
-
default:
|
|
7094
|
+
default: x(() => e[10] || (e[10] = [
|
|
7088
7095
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7089
7096
|
])),
|
|
7090
7097
|
_: 2,
|
|
@@ -7100,12 +7107,12 @@ function ud(t, e, o, i, a, l) {
|
|
|
7100
7107
|
class: "card-info d-flex justify-center align-start",
|
|
7101
7108
|
style: ge({ position: "absolute", top: o.simple ? "200px" : "340px", right: a.right + 50 + "px" })
|
|
7102
7109
|
}, {
|
|
7103
|
-
default:
|
|
7110
|
+
default: x(() => [
|
|
7104
7111
|
w(s, {
|
|
7105
7112
|
class: "d-flex flex-column justify-center align-start text-label px-1",
|
|
7106
7113
|
style: { width: "120px" }
|
|
7107
7114
|
}, {
|
|
7108
|
-
default:
|
|
7115
|
+
default: x(() => [
|
|
7109
7116
|
e[11] || (e[11] = n("div", { class: "text-body-2 font-weight-600 mb-2 mx-1" }, "Wind Level", -1)),
|
|
7110
7117
|
n("div", Mm, [
|
|
7111
7118
|
(A(!0), R(Ce, null, Me(a.legend.barbs, (ee, we) => (A(), R("div", {
|
|
@@ -7130,7 +7137,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7130
7137
|
class: "d-flex flex-column justify-center align-start text-label px-2",
|
|
7131
7138
|
style: { width: "100px" }
|
|
7132
7139
|
}, {
|
|
7133
|
-
default:
|
|
7140
|
+
default: x(() => [
|
|
7134
7141
|
e[12] || (e[12] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
7135
7142
|
n("div", Tm, [
|
|
7136
7143
|
(A(!0), R(Ce, null, Me(a.legend.sigWaveHeight, (ee, we) => (A(), R("div", {
|
|
@@ -7155,7 +7162,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7155
7162
|
class: "d-flex flex-column justify-center align-start text-label pl-0 pr-2",
|
|
7156
7163
|
style: { width: "100px" }
|
|
7157
7164
|
}, {
|
|
7158
|
-
default:
|
|
7165
|
+
default: x(() => [
|
|
7159
7166
|
e[13] || (e[13] = n("div", { class: "text-body-2 font-weight-600 mb-2 mx-2" }, "Current", -1)),
|
|
7160
7167
|
n("div", Em, [
|
|
7161
7168
|
(A(!0), R(Ce, null, Me(a.legend.current, (ee, we) => (A(), R("div", {
|
|
@@ -7207,7 +7214,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7207
7214
|
class: "mr-n2",
|
|
7208
7215
|
onClick: l.handleMenuToggle
|
|
7209
7216
|
}, {
|
|
7210
|
-
default:
|
|
7217
|
+
default: x(() => e[14] || (e[14] = [
|
|
7211
7218
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
7212
7219
|
])),
|
|
7213
7220
|
_: 1,
|
|
@@ -7225,7 +7232,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7225
7232
|
mandatory: "",
|
|
7226
7233
|
group: ""
|
|
7227
7234
|
}, {
|
|
7228
|
-
default:
|
|
7235
|
+
default: x(() => [
|
|
7229
7236
|
w(r, {
|
|
7230
7237
|
density: "compact",
|
|
7231
7238
|
height: "28",
|
|
@@ -7234,7 +7241,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7234
7241
|
color: a.currentModel === "GFS" ? "primary" : "",
|
|
7235
7242
|
"base-color": ""
|
|
7236
7243
|
}, {
|
|
7237
|
-
default:
|
|
7244
|
+
default: x(() => e[15] || (e[15] = [
|
|
7238
7245
|
N(" NOAA ", -1)
|
|
7239
7246
|
])),
|
|
7240
7247
|
_: 1,
|
|
@@ -7248,7 +7255,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7248
7255
|
"base-color": "",
|
|
7249
7256
|
value: "ECMWF"
|
|
7250
7257
|
}, {
|
|
7251
|
-
default:
|
|
7258
|
+
default: x(() => e[16] || (e[16] = [
|
|
7252
7259
|
N(" ECMWF ", -1)
|
|
7253
7260
|
])),
|
|
7254
7261
|
_: 1,
|
|
@@ -7265,11 +7272,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7265
7272
|
class: "block-bg mx-auto mb-2",
|
|
7266
7273
|
elevation: "0"
|
|
7267
7274
|
}, {
|
|
7268
|
-
default:
|
|
7275
|
+
default: x(() => [
|
|
7269
7276
|
w(u, { class: "border-b-thin" }, {
|
|
7270
|
-
default:
|
|
7277
|
+
default: x(() => [
|
|
7271
7278
|
w(b, { class: "text-h6" }, {
|
|
7272
|
-
default:
|
|
7279
|
+
default: x(() => [
|
|
7273
7280
|
N(y(t.$t("weather.overlays")), 1)
|
|
7274
7281
|
]),
|
|
7275
7282
|
_: 1
|
|
@@ -7278,7 +7285,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7278
7285
|
_: 1
|
|
7279
7286
|
}),
|
|
7280
7287
|
w(s, { class: "py-2 mx-n1" }, {
|
|
7281
|
-
default:
|
|
7288
|
+
default: x(() => [
|
|
7282
7289
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((ee) => ee.overlays), (ee) => (A(), F(h, {
|
|
7283
7290
|
key: ee.key,
|
|
7284
7291
|
modelValue: a.checkList,
|
|
@@ -7302,11 +7309,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7302
7309
|
class: "block-bg mx-auto mb-2",
|
|
7303
7310
|
elevation: "0"
|
|
7304
7311
|
}, {
|
|
7305
|
-
default:
|
|
7312
|
+
default: x(() => [
|
|
7306
7313
|
w(u, { class: "border-b-thin" }, {
|
|
7307
|
-
default:
|
|
7314
|
+
default: x(() => [
|
|
7308
7315
|
w(b, { class: "text-h6" }, {
|
|
7309
|
-
default:
|
|
7316
|
+
default: x(() => [
|
|
7310
7317
|
N(y(t.$t("weather.renders")), 1)
|
|
7311
7318
|
]),
|
|
7312
7319
|
_: 1
|
|
@@ -7315,7 +7322,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7315
7322
|
_: 1
|
|
7316
7323
|
}),
|
|
7317
7324
|
w(s, { class: "py-2 mx-n1" }, {
|
|
7318
|
-
default:
|
|
7325
|
+
default: x(() => [
|
|
7319
7326
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((ee) => !ee.overlays), (ee) => (A(), R(Ce, {
|
|
7320
7327
|
key: ee.key
|
|
7321
7328
|
}, [
|
|
@@ -7374,7 +7381,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7374
7381
|
mandatory: "",
|
|
7375
7382
|
disabled: !a.autoActive
|
|
7376
7383
|
}, {
|
|
7377
|
-
default:
|
|
7384
|
+
default: x(() => [
|
|
7378
7385
|
w(r, {
|
|
7379
7386
|
density: "compact",
|
|
7380
7387
|
height: "30",
|
|
@@ -7384,7 +7391,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7384
7391
|
"base-color": "grey-lighten-1",
|
|
7385
7392
|
disabled: !a.autoActive
|
|
7386
7393
|
}, {
|
|
7387
|
-
default:
|
|
7394
|
+
default: x(() => [
|
|
7388
7395
|
N(y(t.$t("weather.significant")), 1)
|
|
7389
7396
|
]),
|
|
7390
7397
|
_: 1
|
|
@@ -7398,7 +7405,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7398
7405
|
disabled: !a.autoActive,
|
|
7399
7406
|
value: "swell"
|
|
7400
7407
|
}, {
|
|
7401
|
-
default:
|
|
7408
|
+
default: x(() => [
|
|
7402
7409
|
N(y(t.$t("weather.swell")), 1)
|
|
7403
7410
|
]),
|
|
7404
7411
|
_: 1
|
|
@@ -7418,7 +7425,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7418
7425
|
mandatory: "",
|
|
7419
7426
|
disabled: !a.autoActive
|
|
7420
7427
|
}, {
|
|
7421
|
-
default:
|
|
7428
|
+
default: x(() => [
|
|
7422
7429
|
w(r, {
|
|
7423
7430
|
density: "compact",
|
|
7424
7431
|
height: "30",
|
|
@@ -7428,7 +7435,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7428
7435
|
"base-color": "grey-lighten-1",
|
|
7429
7436
|
disabled: !a.autoActive
|
|
7430
7437
|
}, {
|
|
7431
|
-
default:
|
|
7438
|
+
default: x(() => [
|
|
7432
7439
|
N(y(t.$t("weather.coverage")), 1)
|
|
7433
7440
|
]),
|
|
7434
7441
|
_: 1
|
|
@@ -7442,7 +7449,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7442
7449
|
disabled: !a.autoActive,
|
|
7443
7450
|
value: "ice-thickness"
|
|
7444
7451
|
}, {
|
|
7445
|
-
default:
|
|
7452
|
+
default: x(() => [
|
|
7446
7453
|
N(y(t.$t("weather.thickness")), 1)
|
|
7447
7454
|
]),
|
|
7448
7455
|
_: 1
|
|
@@ -7461,11 +7468,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7461
7468
|
class: "block-bg mx-auto mb-2",
|
|
7462
7469
|
elevation: "0"
|
|
7463
7470
|
}, {
|
|
7464
|
-
default:
|
|
7471
|
+
default: x(() => [
|
|
7465
7472
|
w(u, { class: "border-b-thin" }, {
|
|
7466
|
-
default:
|
|
7473
|
+
default: x(() => [
|
|
7467
7474
|
w(b, { class: "text-h6" }, {
|
|
7468
|
-
default:
|
|
7475
|
+
default: x(() => [
|
|
7469
7476
|
N(y(t.$t("weather.forecastModel")), 1)
|
|
7470
7477
|
]),
|
|
7471
7478
|
_: 1
|
|
@@ -7474,15 +7481,15 @@ function ud(t, e, o, i, a, l) {
|
|
|
7474
7481
|
_: 1
|
|
7475
7482
|
}),
|
|
7476
7483
|
w(s, { class: "" }, {
|
|
7477
|
-
default:
|
|
7478
|
-
var ee, we, Ee, Ge, $e, et, Je, je, tt, Oe, He, Ke, ot, at, Qe, Te, Re, Ne, it, lt, rt, Ve, bt, wt,
|
|
7484
|
+
default: x(() => {
|
|
7485
|
+
var ee, we, Ee, Ge, $e, et, Je, je, tt, Oe, He, Ke, ot, at, Qe, Te, Re, Ne, it, lt, rt, Ve, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, Dt, It, Et, Gt, Ft, Bt, jt, Nt, Zt, Wt, Vt, Xt, Ot, Ht, Yt, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, Xe, Ye, ao, nt, io, gt, De, st, de, Fe, ae, oe, ct, qe, We, J, lo, ce, Be, mt, ft, yt, X, dt, K, ht, no, pe, go, ye, vo, Ao, ko, Lo, zo, _o, Co, Mo, Po, So, To, Ro, Do, Io;
|
|
7479
7486
|
return [
|
|
7480
7487
|
n("div", Xm, y(t.$t("weather.atmospheric")), 1),
|
|
7481
7488
|
n("div", Om, y((Ee = (we = (ee = a.models) == null ? void 0 : ee.weather) == null ? void 0 : we.NOAA) == null ? void 0 : Ee.source) + " " + y((et = ($e = (Ge = a.models) == null ? void 0 : Ge.weather) == null ? void 0 : $e.NOAA) == null ? void 0 : et.spatialResolution) + y(t.$t("units.km")) + " " + y((Oe = (tt = (je = (Je = a.models) == null ? void 0 : Je.weather) == null ? void 0 : je.NOAA) == null ? void 0 : tt.meta) == null ? void 0 : Oe.days) + y(t.$t("units.days")), 1),
|
|
7482
7489
|
n("div", Hm, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7483
7490
|
n("div", Ym, y(t.$t("weather.lastUpdate")) + ": " + y(l.computeDateUpdate((at = (ot = (Ke = (He = a.models) == null ? void 0 : He.weather) == null ? void 0 : Ke.NOAA) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
7484
7491
|
n("div", Um, y(t.$t("weather.referenceTime")) + ": " + y(l.computeDateZ((Ne = (Re = (Te = (Qe = a.models) == null ? void 0 : Qe.weather) == null ? void 0 : Te.NOAA) == null ? void 0 : Re.meta) == null ? void 0 : Ne.initialisationTime)), 1),
|
|
7485
|
-
n("div", Jm, y((rt = (lt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : lt.ECMWF) == null ? void 0 : rt.source) + " " + y((wt = (bt = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : bt.ECMWF) == null ? void 0 : wt.spatialResolution) + y(t.$t("units.km")) + " " + y((kt = (At = (
|
|
7492
|
+
n("div", Jm, y((rt = (lt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : lt.ECMWF) == null ? void 0 : rt.source) + " " + y((wt = (bt = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : bt.ECMWF) == null ? void 0 : wt.spatialResolution) + y(t.$t("units.km")) + " " + y((kt = (At = (vt = (xt = a.models) == null ? void 0 : xt.weather) == null ? void 0 : vt.ECMWF) == null ? void 0 : At.meta) == null ? void 0 : kt.days) + y(t.$t("units.days")), 1),
|
|
7486
7493
|
n("div", Km, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7487
7494
|
n("div", Qm, y(t.$t("weather.lastUpdate")) + ": " + y(l.computeDateUpdate((Ct = (_t = (zt = (Lt = a.models) == null ? void 0 : Lt.weather) == null ? void 0 : zt.ECMWF) == null ? void 0 : _t.meta) == null ? void 0 : Ct.availabilityTime)), 1),
|
|
7488
7495
|
n("div", qm, y(t.$t("weather.referenceTime")) + ": " + y(l.computeDateZ((Tt = (St = (Pt = (Mt = a.models) == null ? void 0 : Mt.weather) == null ? void 0 : Pt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : Tt.initialisationTime)), 1),
|
|
@@ -7498,7 +7505,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7498
7505
|
n("div", nd, y(t.$t("weather.referenceTime")) + ": " + y(l.computeDateZ((ft = (mt = (Be = (ce = (lo = a.models) == null ? void 0 : lo.marine) == null ? void 0 : ce.wave) == null ? void 0 : Be.ECMWF) == null ? void 0 : mt.meta) == null ? void 0 : ft.initialisationTime)), 1),
|
|
7499
7506
|
w(d),
|
|
7500
7507
|
n("div", sd, y(t.$t("weather.currents")), 1),
|
|
7501
|
-
n("div", cd, y((K = (dt = (X = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : X.current) == null ? void 0 : dt.ECMWF) == null ? void 0 : K.source) + " " + y((go = (pe = (no = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : no.current) == null ? void 0 : pe.ECMWF) == null ? void 0 : go.spatialResolution) + y(t.$t("units.km")) + " " + y((Lo = (ko = (Ao = (
|
|
7508
|
+
n("div", cd, y((K = (dt = (X = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : X.current) == null ? void 0 : dt.ECMWF) == null ? void 0 : K.source) + " " + y((go = (pe = (no = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : no.current) == null ? void 0 : pe.ECMWF) == null ? void 0 : go.spatialResolution) + y(t.$t("units.km")) + " " + y((Lo = (ko = (Ao = (vo = (ye = a.models) == null ? void 0 : ye.marine) == null ? void 0 : vo.current) == null ? void 0 : Ao.ECMWF) == null ? void 0 : ko.meta) == null ? void 0 : Lo.days) + y(t.$t("units.days")), 1),
|
|
7502
7509
|
n("div", md, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7503
7510
|
n("div", dd, y(t.$t("weather.lastUpdate")) + ": " + y(l.computeDateUpdate((Po = (Mo = (Co = (_o = (zo = a.models) == null ? void 0 : zo.marine) == null ? void 0 : _o.current) == null ? void 0 : Co.ECMWF) == null ? void 0 : Mo.meta) == null ? void 0 : Po.availabilityTime)), 1),
|
|
7504
7511
|
n("div", hd, y(t.$t("weather.referenceTime")) + ": " + y(l.computeDateZ((Io = (Do = (Ro = (To = (So = a.models) == null ? void 0 : So.marine) == null ? void 0 : To.current) == null ? void 0 : Ro.ECMWF) == null ? void 0 : Do.meta) == null ? void 0 : Io.initialisationTime)), 1)
|
|
@@ -7520,7 +7527,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7520
7527
|
wind: (be = a.weatherLayers) == null ? void 0 : be.wind,
|
|
7521
7528
|
"menu-toggle": o.menuToggle
|
|
7522
7529
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : I("", !0),
|
|
7523
|
-
o.map ? (A(), F(
|
|
7530
|
+
o.map ? (A(), F(v, V({
|
|
7524
7531
|
key: 2,
|
|
7525
7532
|
map: o.map,
|
|
7526
7533
|
"before-layer": "empty-layer-2",
|
|
@@ -7616,7 +7623,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7616
7623
|
"menu-toggle": o.menuToggle,
|
|
7617
7624
|
simple: o.simple
|
|
7618
7625
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : I("", !0),
|
|
7619
|
-
o.map ? (A(), F(
|
|
7626
|
+
o.map ? (A(), F(xe, V({
|
|
7620
7627
|
key: 15,
|
|
7621
7628
|
viewport: a.viewport,
|
|
7622
7629
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.temp,
|
|
@@ -7976,10 +7983,10 @@ let ul = class {
|
|
|
7976
7983
|
}), a;
|
|
7977
7984
|
}
|
|
7978
7985
|
static pickHourly(e, o) {
|
|
7979
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
7986
|
+
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze, he, Ae, ee, we, Ee, Ge, $e, et, Je, je, tt, Oe, He, Ke, ot, at, Qe, Te, Re, Ne, it, lt, rt, Ve, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, Dt, It, Et, Gt, Ft, Bt, jt, Nt, Zt, Wt, Vt, Xt, Ot, Ht, Yt, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, Xe, Ye, ao, nt, io, gt, De, st;
|
|
7980
7987
|
const de = typeof o == "string" ? S(o) : o;
|
|
7981
7988
|
let Fe = de.clone();
|
|
7982
|
-
const ae = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, ct = ((a = (i = ae == null ? void 0 : ae[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date) || ((r = (l = oe == null ? void 0 : oe[0]) == null ? void 0 : l.hourly) == null ? void 0 : r.date), qe = S.utc(ct), We = qe.clone().add(((d = (s = (c = ae == null ? void 0 : ae[0]) == null ? void 0 : c.hourly) == null ? void 0 : s.time) == null ? void 0 : d.at(0)) || ((g = (p = (m = oe == null ? void 0 : oe[0]) == null ? void 0 : m.hourly) == null ? void 0 : p.time) == null ? void 0 : g.at(0)), "h"), J = qe.clone().add(((h = (u = (b = ae == null ? void 0 : ae[0]) == null ? void 0 : b.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1)) || ((
|
|
7989
|
+
const ae = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, ct = ((a = (i = ae == null ? void 0 : ae[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date) || ((r = (l = oe == null ? void 0 : oe[0]) == null ? void 0 : l.hourly) == null ? void 0 : r.date), qe = S.utc(ct), We = qe.clone().add(((d = (s = (c = ae == null ? void 0 : ae[0]) == null ? void 0 : c.hourly) == null ? void 0 : s.time) == null ? void 0 : d.at(0)) || ((g = (p = (m = oe == null ? void 0 : oe[0]) == null ? void 0 : m.hourly) == null ? void 0 : p.time) == null ? void 0 : g.at(0)), "h"), J = qe.clone().add(((h = (u = (b = ae == null ? void 0 : ae[0]) == null ? void 0 : b.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1)) || ((v = (L = (f = oe == null ? void 0 : oe[0]) == null ? void 0 : f.hourly) == null ? void 0 : L.time) == null ? void 0 : v.at(-1)), "h"), lo = [];
|
|
7983
7990
|
Fe = Fe.isBefore(We) ? We.clone() : Fe, Fe = Fe.isAfter(J) ? J.clone() : Fe;
|
|
7984
7991
|
const ce = Fe.utc().diff(We, "h", !1);
|
|
7985
7992
|
let Be, mt;
|
|
@@ -7997,7 +8004,7 @@ let ul = class {
|
|
|
7997
8004
|
Be = {
|
|
7998
8005
|
temp: ((B = K == null ? void 0 : K.temperature_2m) == null ? void 0 : B.at(ce)) ?? ((G = (j = K == null ? void 0 : K.temperature_2m) == null ? void 0 : j.filter((ye) => ye !== null)) == null ? void 0 : G.at(-1)),
|
|
7999
8006
|
apparentTemp: ((Q = K == null ? void 0 : K.apparent_temperature) == null ? void 0 : Q.at(ce)) ?? ((re = (ie = K == null ? void 0 : K.apparent_temperature) == null ? void 0 : ie.filter((ye) => ye !== null)) == null ? void 0 : re.at(-1)),
|
|
8000
|
-
rh: ((
|
|
8007
|
+
rh: ((xe = K == null ? void 0 : K.relative_humidity_2m) == null ? void 0 : xe.at(ce)) ?? ((E = (be = K == null ? void 0 : K.relative_humidity_2m) == null ? void 0 : be.filter((ye) => ye !== null)) == null ? void 0 : E.at(-1)),
|
|
8001
8008
|
dp: (($ = K == null ? void 0 : K.dew_point_2m) == null ? void 0 : $.at(ce)) ?? ((se = (te = K == null ? void 0 : K.dew_point_2m) == null ? void 0 : te.filter((ye) => ye !== null)) == null ? void 0 : se.at(-1)),
|
|
8002
8009
|
precip: {
|
|
8003
8010
|
probability: ((q = K == null ? void 0 : K.precipitation_probability) == null ? void 0 : q.at(ce)) ?? 0,
|
|
@@ -8032,7 +8039,7 @@ let ul = class {
|
|
|
8032
8039
|
if (oe != null && oe.length) {
|
|
8033
8040
|
let ft = 0;
|
|
8034
8041
|
for (const yt of oe) {
|
|
8035
|
-
const X = yt == null ? void 0 : yt.hourly, dt = ((Te = X == null ? void 0 : X.wave_direction) == null ? void 0 : Te.at(ce)) ?? ((Ne = (Re = X == null ? void 0 : X.wave_direction) == null ? void 0 : Re.filter((pe) => pe !== null)) == null ? void 0 : Ne.at(-1)), K = ((it = X == null ? void 0 : X.swell_wave_direction) == null ? void 0 : it.at(ce)) ?? ((rt = (lt = X == null ? void 0 : X.swell_wave_direction) == null ? void 0 : lt.filter((pe) => pe !== null)) == null ? void 0 : rt.at(-1)), ht = ((Ve = X == null ? void 0 : X.wind_wave_direction) == null ? void 0 : Ve.at(ce)) ?? ((wt = (bt = X == null ? void 0 : X.wind_wave_direction) == null ? void 0 : bt.filter((pe) => pe !== null)) == null ? void 0 : wt.at(-1)), no = ((
|
|
8042
|
+
const X = yt == null ? void 0 : yt.hourly, dt = ((Te = X == null ? void 0 : X.wave_direction) == null ? void 0 : Te.at(ce)) ?? ((Ne = (Re = X == null ? void 0 : X.wave_direction) == null ? void 0 : Re.filter((pe) => pe !== null)) == null ? void 0 : Ne.at(-1)), K = ((it = X == null ? void 0 : X.swell_wave_direction) == null ? void 0 : it.at(ce)) ?? ((rt = (lt = X == null ? void 0 : X.swell_wave_direction) == null ? void 0 : lt.filter((pe) => pe !== null)) == null ? void 0 : rt.at(-1)), ht = ((Ve = X == null ? void 0 : X.wind_wave_direction) == null ? void 0 : Ve.at(ce)) ?? ((wt = (bt = X == null ? void 0 : X.wind_wave_direction) == null ? void 0 : bt.filter((pe) => pe !== null)) == null ? void 0 : wt.at(-1)), no = ((xt = X == null ? void 0 : X.ocean_current_direction) == null ? void 0 : xt.at(ce)) ?? ((At = (vt = X == null ? void 0 : X.ocean_current_direction) == null ? void 0 : vt.filter((pe) => pe !== null)) == null ? void 0 : At.at(-1));
|
|
8036
8043
|
mt = {
|
|
8037
8044
|
wave: {
|
|
8038
8045
|
sig: {
|
|
@@ -8102,7 +8109,7 @@ let ul = class {
|
|
|
8102
8109
|
};
|
|
8103
8110
|
}
|
|
8104
8111
|
static pickDaily(e, o) {
|
|
8105
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
8112
|
+
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze, he, Ae, ee, we, Ee, Ge, $e, et, Je, je, tt, Oe, He, Ke, ot, at, Qe, Te, Re, Ne, it, lt, rt, Ve, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, Dt, It, Et, Gt, Ft, Bt, jt, Nt, Zt, Wt, Vt, Xt, Ot, Ht, Yt, Ut, Jt, Kt, Qt, qt, $t, eo, to;
|
|
8106
8113
|
const oo = typeof o == "string" ? S(o) : o;
|
|
8107
8114
|
let Xe = oo.clone();
|
|
8108
8115
|
const Ye = e == null ? void 0 : e.weather, ao = e == null ? void 0 : e.marine, nt = S((l = (a = (i = Ye == null ? void 0 : Ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : l.at(0)), io = S((s = (c = (r = Ye == null ? void 0 : Ye[0]) == null ? void 0 : r.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), gt = [];
|
|
@@ -8116,7 +8123,7 @@ let ul = class {
|
|
|
8116
8123
|
code: ((g = ae.weather_code) == null ? void 0 : g.at(de)) ?? ((u = (b = ae.weather_code) == null ? void 0 : b.filter((J) => J !== null)) == null ? void 0 : u.at(-1)),
|
|
8117
8124
|
temp: {
|
|
8118
8125
|
max: ((h = ae.temperature_2m_max) == null ? void 0 : h.at(de)) ?? ((L = (f = ae.temperature_2m_max) == null ? void 0 : f.filter((J) => J !== null)) == null ? void 0 : L.at(-1)),
|
|
8119
|
-
min: ((
|
|
8126
|
+
min: ((v = ae.temperature_2m_min) == null ? void 0 : v.at(de)) ?? ((z = (C = ae.temperature_2m_min) == null ? void 0 : C.filter((J) => J !== null)) == null ? void 0 : z.at(-1)),
|
|
8120
8127
|
mean: ((P = ae.temperature_2m_mean) == null ? void 0 : P.at(de)) ?? ((D = (_ = ae.temperature_2m_mean) == null ? void 0 : _.filter((J) => J !== null)) == null ? void 0 : D.at(-1))
|
|
8121
8128
|
},
|
|
8122
8129
|
apparentTemp: {
|
|
@@ -8124,7 +8131,7 @@ let ul = class {
|
|
|
8124
8131
|
min: ((G = ae.apparent_temperature_min) == null ? void 0 : G.at(de)) ?? ((ie = (Q = ae.apparent_temperature_min) == null ? void 0 : Q.filter((J) => J !== null)) == null ? void 0 : ie.at(-1))
|
|
8125
8132
|
},
|
|
8126
8133
|
precip: {
|
|
8127
|
-
sum: ((re = ae.precipitation_sum) == null ? void 0 : re.at(de)) ?? ((be = (
|
|
8134
|
+
sum: ((re = ae.precipitation_sum) == null ? void 0 : re.at(de)) ?? ((be = (xe = ae.precipitation_sum) == null ? void 0 : xe.filter((J) => J !== null)) == null ? void 0 : be.at(-1)),
|
|
8128
8135
|
rainSum: ((E = ae.rain_sum) == null ? void 0 : E.at(de)) ?? ((te = ($ = ae.rain_sum) == null ? void 0 : $.filter((J) => J !== null)) == null ? void 0 : te.at(-1)),
|
|
8129
8136
|
snowfallSum: ((se = ae.snowfall_sum) == null ? void 0 : se.at(de)) ?? ((Y = (q = ae.snowfall_sum) == null ? void 0 : q.filter((J) => J !== null)) == null ? void 0 : Y.at(-1)),
|
|
8130
8137
|
showersSum: ((le = ae.showers_sum) == null ? void 0 : le.at(de)) ?? ((U = (Z = ae.showers_sum) == null ? void 0 : Z.filter((J) => J !== null)) == null ? void 0 : U.at(-1)),
|
|
@@ -8147,7 +8154,7 @@ let ul = class {
|
|
|
8147
8154
|
visibility: {
|
|
8148
8155
|
max: this.m2nm(((it = ae.visibility_max) == null ? void 0 : it.at(de)) ?? ((rt = (lt = ae.visibility_max) == null ? void 0 : lt.filter((J) => J !== null)) == null ? void 0 : rt.at(-1))),
|
|
8149
8156
|
min: this.m2nm(((Ve = ae.visibility_min) == null ? void 0 : Ve.at(de)) ?? ((wt = (bt = ae.visibility_min) == null ? void 0 : bt.filter((J) => J !== null)) == null ? void 0 : wt.at(-1))),
|
|
8150
|
-
mean: this.m2nm(((
|
|
8157
|
+
mean: this.m2nm(((xt = ae.visibility_mean) == null ? void 0 : xt.at(de)) ?? ((At = (vt = ae.visibility_mean) == null ? void 0 : vt.filter((J) => J !== null)) == null ? void 0 : At.at(-1)))
|
|
8151
8158
|
}
|
|
8152
8159
|
};
|
|
8153
8160
|
const { name: ct, url: qe, bg: We } = this.parseWeatherCode(De.code, !0);
|
|
@@ -8836,7 +8843,7 @@ const gd = {
|
|
|
8836
8843
|
handleRefresh() {
|
|
8837
8844
|
var e, o;
|
|
8838
8845
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
8839
|
-
var l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
8846
|
+
var l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D;
|
|
8840
8847
|
let a = "";
|
|
8841
8848
|
switch (!0) {
|
|
8842
8849
|
case (((l = i.properties.wind) == null ? void 0 : l.kts) < 32 || ((r = i.properties) == null ? void 0 : r.kts) < 32):
|
|
@@ -8861,7 +8868,7 @@ const gd = {
|
|
|
8861
8868
|
a = "superTy";
|
|
8862
8869
|
break;
|
|
8863
8870
|
}
|
|
8864
|
-
i.properties.levelI18n = a, ((L = i.geometry) == null ? void 0 : L.type) === "Point" && ((
|
|
8871
|
+
i.properties.levelI18n = a, ((L = i.geometry) == null ? void 0 : L.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (z = (C = S(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((D = (_ = i.properties.name) == null ? void 0 : _.trim()) == null ? void 0 : D.replace(/^./, (T) => T.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
8865
8872
|
}), this.handleInit();
|
|
8866
8873
|
},
|
|
8867
8874
|
handleInit() {
|
|
@@ -9113,7 +9120,7 @@ const gd = {
|
|
|
9113
9120
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
9114
9121
|
},
|
|
9115
9122
|
handleDateChange() {
|
|
9116
|
-
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
9123
|
+
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $;
|
|
9117
9124
|
if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9118
9125
|
const te = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), se = this.interpolateData.filter((Z) => Z.properties.date === (te == null ? void 0 : te.format()) && !Z.properties.disabled), q = this.handleComputePolygons(se), Y = W.featureCollection([...se]);
|
|
9119
9126
|
q.forEach((Z) => {
|
|
@@ -9157,7 +9164,7 @@ const gd = {
|
|
|
9157
9164
|
Z.properties.nameCn = he, Z.properties.Name = ((m = (d = Z.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (Ae) => Ae.toUpperCase())) || Z.properties.nameCn, le.push(Z);
|
|
9158
9165
|
}
|
|
9159
9166
|
let U = this.Theme.current.value.colors["tropicals-ty"];
|
|
9160
|
-
((g = (p = Z.properties) == null ? void 0 : p.wind) == null ? void 0 : g.kts) < 32 || !((u = (b = Z.properties) == null ? void 0 : b.wind) != null && u.kts) ? U = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = Z.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((
|
|
9167
|
+
((g = (p = Z.properties) == null ? void 0 : p.wind) == null ? void 0 : g.kts) < 32 || !((u = (b = Z.properties) == null ? void 0 : b.wind) != null && u.kts) ? U = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = Z.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((v = (L = Z.properties) == null ? void 0 : L.wind) == null ? void 0 : v.kts) < 47 ? U = this.Theme.current.value.colors["tropicals-ts"] : ((z = (C = Z.properties) == null ? void 0 : C.wind) == null ? void 0 : z.kts) >= 47 && ((_ = (P = Z.properties) == null ? void 0 : P.wind) == null ? void 0 : _.kts) < 63 ? U = this.Theme.current.value.colors["tropicals-sts"] : ((T = (D = Z.properties) == null ? void 0 : D.wind) == null ? void 0 : T.kts) >= 63 && ((j = (B = Z.properties) == null ? void 0 : B.wind) == null ? void 0 : j.kts) < 79 ? U = this.Theme.current.value.colors["tropicals-ty"] : ((Q = (G = Z.properties) == null ? void 0 : G.wind) == null ? void 0 : Q.kts) >= 79 && ((re = (ie = Z.properties) == null ? void 0 : ie.wind) == null ? void 0 : re.kts) < 94 ? U = this.Theme.current.value.colors["tropicals-sty"] : ((be = (xe = Z.properties) == null ? void 0 : xe.wind) == null ? void 0 : be.kts) >= 94 ? U = this.Theme.current.value.colors["tropicals-super-ty"] : U = this.Theme.current.value.colors["tropicals-ty"];
|
|
9161
9168
|
const fe = `<svg t="1719918955501"
|
|
9162
9169
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9163
9170
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9174,7 +9181,7 @@ const gd = {
|
|
|
9174
9181
|
fill="#ffffff" p-id="18386"></path>
|
|
9175
9182
|
</svg>`, Le = document.createElement("div");
|
|
9176
9183
|
Le.className = "idm-tropical-gl4-hourly-marker", Le.innerHTML = `<div class="${Z.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
9177
|
-
const ze = new
|
|
9184
|
+
const ze = new ve.Marker(Le).setLngLat(Z.geometry.coordinates).addTo(this.map);
|
|
9178
9185
|
this.interpolateMarkers.push(ze);
|
|
9179
9186
|
}
|
|
9180
9187
|
this.$emit("tropicalCenterPoints", le);
|
|
@@ -9206,7 +9213,7 @@ const gd = {
|
|
|
9206
9213
|
drawTropicalsInfoMaker(t) {
|
|
9207
9214
|
this.$nextTick(() => {
|
|
9208
9215
|
const e = document.getElementById("idm-tropical-gl4-info");
|
|
9209
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new
|
|
9216
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(e).setLngLat(t).setOffset([220, 0]).addTo(this.map);
|
|
9210
9217
|
});
|
|
9211
9218
|
},
|
|
9212
9219
|
handleCloseInfoMarker() {
|
|
@@ -9303,7 +9310,7 @@ const gd = {
|
|
|
9303
9310
|
);
|
|
9304
9311
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (r = i == null ? void 0 : i[0]) == null ? void 0 : r.properties) == null ? void 0 : c.date, (s = this.hoverMarker) == null || s.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
9305
9312
|
const d = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
9306
|
-
this.hoverMarker = new
|
|
9313
|
+
this.hoverMarker = new ve.Marker(d).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
9307
9314
|
}));
|
|
9308
9315
|
},
|
|
9309
9316
|
handleLeave() {
|
|
@@ -9314,7 +9321,7 @@ const gd = {
|
|
|
9314
9321
|
}, fd = { class: "idm-tropical-gl4" }, yd = { class: "pb-1" }, bd = { class: "text-h5 font-weight-600" }, wd = {
|
|
9315
9322
|
key: 0,
|
|
9316
9323
|
class: "text-h5 font-weight-600"
|
|
9317
|
-
},
|
|
9324
|
+
}, xd = { class: "text-body-1" }, vd = { class: "text-label" }, Ad = { class: "d-flex justify-space-between align-center" }, kd = { class: "w-60" }, Ld = { class: "text-label pr-1" }, zd = { class: "flex-1-1-0" }, _d = { class: "text-label pr-1" }, Cd = { class: "py-2 d-flex justify-space-between align-center" }, Md = { class: "w-60" }, Pd = { class: "text-label pr-1" }, Sd = { class: "flex-1-1-0" }, Td = { class: "text-label pr-1" }, Rd = { class: "d-flex align-center flex-1-1-100 justify-start mt-n1" }, Dd = {
|
|
9318
9325
|
class: "text-label pr-1",
|
|
9319
9326
|
style: { width: "70px" }
|
|
9320
9327
|
}, Id = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Ed = { class: "more" }, Gd = {
|
|
@@ -9324,7 +9331,7 @@ const gd = {
|
|
|
9324
9331
|
key: 1,
|
|
9325
9332
|
class: "my-3 w-100",
|
|
9326
9333
|
style: { height: "80px" }
|
|
9327
|
-
}, rh = { class: "legend d-flex justify-start align-center" }, nh = { class: "label" }, sh = { class: "legend d-flex justify-start align-center" }, ch = { class: "label" }, mh = { class: "legend d-flex justify-start align-center" }, dh = { class: "label" }, hh = { class: "legend d-flex justify-start align-center" }, uh = { class: "label" }, ph = { class: "legend d-flex justify-start align-center" }, gh = { class: "label" }, fh = { class: "legend d-flex justify-start align-center" }, yh = { class: "label" }, bh = { class: "legend d-flex justify-start align-center" }, wh = { class: "label" },
|
|
9334
|
+
}, rh = { class: "legend d-flex justify-start align-center" }, nh = { class: "label" }, sh = { class: "legend d-flex justify-start align-center" }, ch = { class: "label" }, mh = { class: "legend d-flex justify-start align-center" }, dh = { class: "label" }, hh = { class: "legend d-flex justify-start align-center" }, uh = { class: "label" }, ph = { class: "legend d-flex justify-start align-center" }, gh = { class: "label" }, fh = { class: "legend d-flex justify-start align-center" }, yh = { class: "label" }, bh = { class: "legend d-flex justify-start align-center" }, wh = { class: "label" }, xh = { class: "legend d-flex justify-start align-center" }, vh = { class: "label" }, Ah = { class: "legend d-flex justify-start align-center" }, kh = { class: "label" }, Lh = { class: "legend d-flex justify-start align-center" }, zh = { class: "label" }, _h = { class: "d-flex justify-star align-center" }, Ch = { class: "font-weight-600 mr-1" }, Mh = { class: "" }, Ph = { class: "d-flex flex-column justify-center align-start ga-2" }, Sh = {
|
|
9328
9335
|
key: 0,
|
|
9329
9336
|
class: "d-flex justify-start align-center"
|
|
9330
9337
|
}, Th = { class: "text-label pr-1" }, Rh = {
|
|
@@ -9364,7 +9371,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9364
9371
|
"open-on-focus": !o.simple,
|
|
9365
9372
|
"open-on-hover": !o.simple
|
|
9366
9373
|
}, {
|
|
9367
|
-
activator:
|
|
9374
|
+
activator: x(({ props: b }) => [
|
|
9368
9375
|
w(r, V(b, {
|
|
9369
9376
|
"min-width": "32",
|
|
9370
9377
|
width: "32",
|
|
@@ -9372,7 +9379,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9372
9379
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9373
9380
|
onClick: l.handleMenuToggle
|
|
9374
9381
|
}), {
|
|
9375
|
-
default:
|
|
9382
|
+
default: x(() => e[2] || (e[2] = [
|
|
9376
9383
|
n("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
|
|
9377
9384
|
])),
|
|
9378
9385
|
_: 2,
|
|
@@ -9392,14 +9399,14 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9392
9399
|
class: ue(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
|
|
9393
9400
|
elevation: o.simple ? 0 : 16
|
|
9394
9401
|
}, {
|
|
9395
|
-
default:
|
|
9402
|
+
default: x(() => [
|
|
9396
9403
|
w(s, null, {
|
|
9397
|
-
default:
|
|
9398
|
-
var b, u, h, f, L,
|
|
9404
|
+
default: x(() => {
|
|
9405
|
+
var b, u, h, f, L, v, C, z, P, _, D, T;
|
|
9399
9406
|
return [
|
|
9400
9407
|
n("div", yd, [
|
|
9401
9408
|
n("span", bd, y(o.locale === "en" ? (b = a.activeTropicals) == null ? void 0 : b.Name : ((u = a.activeTropicals) == null ? void 0 : u.nameCn) || ((h = a.activeTropicals) == null ? void 0 : h.Name) || "-"), 1),
|
|
9402
|
-
(L = (f = a.activeTropicals) == null ? void 0 : f.history) != null && L.levelI18n ? (A(), R("span", wd, " , " + y(t.$t("tropical." + ((C = (
|
|
9409
|
+
(L = (f = a.activeTropicals) == null ? void 0 : f.history) != null && L.levelI18n ? (A(), R("span", wd, " , " + y(t.$t("tropical." + ((C = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : C.levelI18n))), 1)) : I("", !0)
|
|
9403
9410
|
]),
|
|
9404
9411
|
w(r, {
|
|
9405
9412
|
icon: "",
|
|
@@ -9408,14 +9415,14 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9408
9415
|
class: "close",
|
|
9409
9416
|
onClick: _e(l.handleCloseInfoMarker, ["stop"])
|
|
9410
9417
|
}, {
|
|
9411
|
-
default:
|
|
9418
|
+
default: x(() => e[3] || (e[3] = [
|
|
9412
9419
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
9413
9420
|
])),
|
|
9414
9421
|
_: 1,
|
|
9415
9422
|
__: [3]
|
|
9416
9423
|
}, 8, ["onClick"]),
|
|
9417
|
-
n("div",
|
|
9418
|
-
n("span",
|
|
9424
|
+
n("div", xd, [
|
|
9425
|
+
n("span", vd, y(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
9419
9426
|
n("span", null, y(l.computeTime(((P = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : P.updated) || ((T = (D = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : D.filter((B) => !B.disabled)[0]) == null ? void 0 : T.date), o.timeZone)), 1)
|
|
9420
9427
|
])
|
|
9421
9428
|
];
|
|
@@ -9424,8 +9431,8 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9424
9431
|
}),
|
|
9425
9432
|
w(d),
|
|
9426
9433
|
w(s, { class: "text-body-1 py-3" }, {
|
|
9427
|
-
default:
|
|
9428
|
-
var b, u, h, f, L,
|
|
9434
|
+
default: x(() => {
|
|
9435
|
+
var b, u, h, f, L, v, C, z, P;
|
|
9429
9436
|
return [
|
|
9430
9437
|
n("div", Ad, [
|
|
9431
9438
|
n("div", kd, [
|
|
@@ -9435,7 +9442,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9435
9442
|
]),
|
|
9436
9443
|
n("div", zd, [
|
|
9437
9444
|
n("label", _d, y(t.$t("weather.pressure")) + " : ", 1),
|
|
9438
|
-
n("span", null, y(((
|
|
9445
|
+
n("span", null, y(((v = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : v.pressure) || "-") + " hPa", 1)
|
|
9439
9446
|
])
|
|
9440
9447
|
]),
|
|
9441
9448
|
n("div", Cd, [
|
|
@@ -9460,7 +9467,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9460
9467
|
class: ue(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
9461
9468
|
onClick: _e((T) => l.handleForecastToggle(_), ["stop"])
|
|
9462
9469
|
}, {
|
|
9463
|
-
default:
|
|
9470
|
+
default: x(() => [
|
|
9464
9471
|
N(y(_.model), 1)
|
|
9465
9472
|
]),
|
|
9466
9473
|
_: 2
|
|
@@ -9476,7 +9483,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9476
9483
|
key: 0,
|
|
9477
9484
|
class: "d-flex justify-space-between"
|
|
9478
9485
|
}, {
|
|
9479
|
-
default:
|
|
9486
|
+
default: x(() => [
|
|
9480
9487
|
w(r, {
|
|
9481
9488
|
density: "compact",
|
|
9482
9489
|
"prepend-icon": "",
|
|
@@ -9485,10 +9492,10 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9485
9492
|
class: "text-none text-body-1",
|
|
9486
9493
|
onClick: e[0] || (e[0] = _e((b) => a.showLegend = !a.showLegend, ["stop"]))
|
|
9487
9494
|
}, {
|
|
9488
|
-
prepend:
|
|
9495
|
+
prepend: x(() => e[4] || (e[4] = [
|
|
9489
9496
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9490
9497
|
])),
|
|
9491
|
-
default:
|
|
9498
|
+
default: x(() => [
|
|
9492
9499
|
N(" " + y(t.$t("weather.legend")), 1)
|
|
9493
9500
|
]),
|
|
9494
9501
|
_: 1
|
|
@@ -9501,7 +9508,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9501
9508
|
class: "text-none text-body-1",
|
|
9502
9509
|
onClick: e[1] || (e[1] = _e((b) => l.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
9503
9510
|
}, {
|
|
9504
|
-
default:
|
|
9511
|
+
default: x(() => [
|
|
9505
9512
|
N(y(t.$t("actions.viewReport")), 1)
|
|
9506
9513
|
]),
|
|
9507
9514
|
_: 1
|
|
@@ -9560,9 +9567,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9560
9567
|
])
|
|
9561
9568
|
])) : (A(), R("div", lh, [
|
|
9562
9569
|
uo(w(p, { elevation: "16" }, {
|
|
9563
|
-
default:
|
|
9570
|
+
default: x(() => [
|
|
9564
9571
|
w(s, null, {
|
|
9565
|
-
default:
|
|
9572
|
+
default: x(() => [
|
|
9566
9573
|
uo(n("div", {
|
|
9567
9574
|
class: ue(["pa-1 d-flex justify-space-between align-center flex-wrap", o.locale === "zhHans" ? " ga-2" : " ga-3"])
|
|
9568
9575
|
}, [
|
|
@@ -9594,9 +9601,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9594
9601
|
e[21] || (e[21] = n("div", { class: "icon history" }, null, -1)),
|
|
9595
9602
|
n("div", wh, y(t.$t("tropical.history")), 1)
|
|
9596
9603
|
]),
|
|
9597
|
-
n("div",
|
|
9604
|
+
n("div", xh, [
|
|
9598
9605
|
e[22] || (e[22] = n("div", { class: "icon forecast" }, null, -1)),
|
|
9599
|
-
n("div",
|
|
9606
|
+
n("div", vh, y(t.$t("tropical.forecast")), 1)
|
|
9600
9607
|
]),
|
|
9601
9608
|
n("div", Ah, [
|
|
9602
9609
|
e[23] || (e[23] = n("div", { class: "icon r7" }, null, -1)),
|
|
@@ -9624,9 +9631,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9624
9631
|
elevation: "16",
|
|
9625
9632
|
"max-width": "290"
|
|
9626
9633
|
}, {
|
|
9627
|
-
default:
|
|
9634
|
+
default: x(() => [
|
|
9628
9635
|
w(g, null, {
|
|
9629
|
-
default:
|
|
9636
|
+
default: x(() => {
|
|
9630
9637
|
var b, u, h, f;
|
|
9631
9638
|
return [
|
|
9632
9639
|
n("div", _h, [
|
|
@@ -9639,8 +9646,8 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9639
9646
|
}),
|
|
9640
9647
|
w(d),
|
|
9641
9648
|
w(s, { class: "text-body-1" }, {
|
|
9642
|
-
default:
|
|
9643
|
-
var b, u, h, f, L,
|
|
9649
|
+
default: x(() => {
|
|
9650
|
+
var b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be;
|
|
9644
9651
|
return [
|
|
9645
9652
|
n("div", Ph, [
|
|
9646
9653
|
((b = a.hoverPoint) == null ? void 0 : b.type) === "forecast" ? (A(), R("div", Sh, [
|
|
@@ -9653,7 +9660,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9653
9660
|
])) : I("", !0),
|
|
9654
9661
|
((L = a.hoverPoint) == null ? void 0 : L.type) === "history" ? (A(), R("div", Ih, [
|
|
9655
9662
|
n("label", Eh, y(t.$t("tropical.forecast")) + " : ", 1),
|
|
9656
|
-
n("span", null, y(l.computeTzTime((
|
|
9663
|
+
n("span", null, y(l.computeTzTime((v = a.hoverPoint) == null ? void 0 : v.date, o.timeZone)), 1)
|
|
9657
9664
|
])) : I("", !0),
|
|
9658
9665
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (A(), R("div", Gh, [
|
|
9659
9666
|
n("label", Fh, y(t.$t("tropical.model")) + " : ", 1),
|
|
@@ -9677,7 +9684,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9677
9684
|
])) : I("", !0),
|
|
9678
9685
|
((re = a.hoverPoint) == null ? void 0 : re.type) === "history" ? (A(), R("div", Hh, [
|
|
9679
9686
|
n("label", Yh, y(t.$t("tropical.moveDir")) + " : ", 1),
|
|
9680
|
-
n("span", null, y(((be = JSON.parse(((
|
|
9687
|
+
n("span", null, y(((be = JSON.parse(((xe = a.hoverPoint) == null ? void 0 : xe.movement) || "{}")) == null ? void 0 : be.deg) ?? "-") + " °", 1)
|
|
9681
9688
|
])) : I("", !0),
|
|
9682
9689
|
n("div", Uh, [
|
|
9683
9690
|
n("label", Jh, y(t.$t("tropical.position")) + " : ", 1),
|
|
@@ -9900,9 +9907,9 @@ function ou(t, e, o, i, a, l) {
|
|
|
9900
9907
|
class: "card-box d-flex flex-column border elevation-12",
|
|
9901
9908
|
style: ge(l.getStyle)
|
|
9902
9909
|
}, {
|
|
9903
|
-
default:
|
|
9910
|
+
default: x(() => [
|
|
9904
9911
|
w(p, { class: "w-100 flex-1-1-0 d-flex pa-0 text-body-1" }, {
|
|
9905
|
-
default:
|
|
9912
|
+
default: x(() => [
|
|
9906
9913
|
n("div", $h, [
|
|
9907
9914
|
w(r, {
|
|
9908
9915
|
modelValue: a.currentDate,
|
|
@@ -9923,7 +9930,7 @@ function ou(t, e, o, i, a, l) {
|
|
|
9923
9930
|
n("div", eu, [
|
|
9924
9931
|
n("div", tu, y(t.$t("time.time")), 1),
|
|
9925
9932
|
w(m, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
9926
|
-
default:
|
|
9933
|
+
default: x(() => [
|
|
9927
9934
|
(A(!0), R(Ce, null, Me(l.hourOptions, (h, f) => (A(), F(d, {
|
|
9928
9935
|
key: f,
|
|
9929
9936
|
value: h,
|
|
@@ -9935,12 +9942,12 @@ function ou(t, e, o, i, a, l) {
|
|
|
9935
9942
|
class: "rounded-xl",
|
|
9936
9943
|
variant: a.currentTime === h ? "flat" : "text"
|
|
9937
9944
|
}, {
|
|
9938
|
-
default:
|
|
9945
|
+
default: x(() => [
|
|
9939
9946
|
w(s, {
|
|
9940
9947
|
class: "text-body-2 font-weight-600 text-center",
|
|
9941
9948
|
onClick: (L) => a.currentTime = h
|
|
9942
9949
|
}, {
|
|
9943
|
-
default:
|
|
9950
|
+
default: x(() => [
|
|
9944
9951
|
N(y(h), 1)
|
|
9945
9952
|
]),
|
|
9946
9953
|
_: 2
|
|
@@ -9960,14 +9967,14 @@ function ou(t, e, o, i, a, l) {
|
|
|
9960
9967
|
class: "w-100 d-flex justify-end align-center px-4 ga-4",
|
|
9961
9968
|
style: { height: "50px" }
|
|
9962
9969
|
}, {
|
|
9963
|
-
default:
|
|
9970
|
+
default: x(() => [
|
|
9964
9971
|
w(g, {
|
|
9965
9972
|
size: "small",
|
|
9966
9973
|
variant: "tonal",
|
|
9967
9974
|
class: "text-none text-body-1 px-4",
|
|
9968
9975
|
onClick: l.handleCancelDate
|
|
9969
9976
|
}, {
|
|
9970
|
-
default:
|
|
9977
|
+
default: x(() => [
|
|
9971
9978
|
N(y(t.$t("actions.cancel")), 1)
|
|
9972
9979
|
]),
|
|
9973
9980
|
_: 1
|
|
@@ -9979,7 +9986,7 @@ function ou(t, e, o, i, a, l) {
|
|
|
9979
9986
|
class: "text-none text-body-1 px-4",
|
|
9980
9987
|
onClick: l.handleConfirmDate
|
|
9981
9988
|
}, {
|
|
9982
|
-
default:
|
|
9989
|
+
default: x(() => [
|
|
9983
9990
|
N(y(t.$t("actions.confirm")), 1)
|
|
9984
9991
|
]),
|
|
9985
9992
|
_: 1
|
|
@@ -10257,10 +10264,10 @@ const au = {
|
|
|
10257
10264
|
}), this.loading = !1;
|
|
10258
10265
|
},
|
|
10259
10266
|
initTableData(t) {
|
|
10260
|
-
var o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
10267
|
+
var o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze;
|
|
10261
10268
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (l = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : l.offset;
|
|
10262
10269
|
const e = ((r = Zo.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : r[0]) || {};
|
|
10263
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((g = e == null ? void 0 : e.weather) == null ? void 0 : g.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((u = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : u.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((
|
|
10270
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((g = e == null ? void 0 : e.weather) == null ? void 0 : g.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((u = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : u.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : _.height, 1) ?? "-", this.currentHourData.sigwaveDir = (T = (D = e == null ? void 0 : e.wave) == null ? void 0 : D.sig) == null ? void 0 : T.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((j = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.sig) == null ? void 0 : j.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Q = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.wd) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.windwaveDir = (re = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.wd) == null ? void 0 : re.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((be = (xe = e == null ? void 0 : e.wave) == null ? void 0 : xe.wd) == null ? void 0 : be.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision(($ = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.swell) == null ? void 0 : $.height, 1) ?? "-", this.currentHourData.swellDir = (se = (te = e == null ? void 0 : e.wave) == null ? void 0 : te.swell) == null ? void 0 : se.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.swell) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.currentDir = (Z = e == null ? void 0 : e.current) == null ? void 0 : Z.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((U = e == null ? void 0 : e.current) == null ? void 0 : U.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url, this.currentHourData.sit = (Le = e == null ? void 0 : e.ice) == null ? void 0 : Le.sit, this.currentHourData.sic = this.computeRoundPrecision(((ze = e == null ? void 0 : e.ice) == null ? void 0 : ze.sic) * 100, 0) ?? "-", this.currentHourData.showIce = t.lat >= 65 || t.lat <= -65;
|
|
10264
10271
|
},
|
|
10265
10272
|
handleBind() {
|
|
10266
10273
|
var t, e;
|
|
@@ -10290,14 +10297,14 @@ const au = {
|
|
|
10290
10297
|
var o, i;
|
|
10291
10298
|
(o = this.positionMarker) == null || o.remove();
|
|
10292
10299
|
const e = (i = document.getElementById("idm-position-icon")) == null ? void 0 : i.cloneNode(!0);
|
|
10293
|
-
this.positionMarker = new
|
|
10300
|
+
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
|
|
10294
10301
|
}));
|
|
10295
10302
|
},
|
|
10296
10303
|
drawMeteoInfoMarker(t) {
|
|
10297
10304
|
this.$nextTick(() => {
|
|
10298
10305
|
var o;
|
|
10299
10306
|
const e = document.getElementById("idm-gl4-spot-meteo");
|
|
10300
|
-
this.meteoInfoMarker ? (o = this.meteoInfoMarker) == null || o.setLngLat(t) : this.meteoInfoMarker = new
|
|
10307
|
+
this.meteoInfoMarker ? (o = this.meteoInfoMarker) == null || o.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
10301
10308
|
});
|
|
10302
10309
|
},
|
|
10303
10310
|
handleMeteoMore() {
|
|
@@ -10323,7 +10330,7 @@ const au = {
|
|
|
10323
10330
|
this.$emit("cancelFollow", t);
|
|
10324
10331
|
}
|
|
10325
10332
|
}
|
|
10326
|
-
}, iu = { class: "idm-gl4-spot" }, lu = { class: "d-flex justify-start align-center" }, ru = { class: "text-h6 font-weight-600" }, nu = { class: "d-flex justify-start align-center ga-1 mb-2" }, su = { class: "text-label" }, cu = { class: "w-100 d-flex ma-0" }, mu = { class: "w-30 pa-0 d-flex" }, du = { class: "flex-1-1-0 pa-0 d-flex" }, hu = { class: "pa-0" }, uu = { class: "d-flex justify-start align-center ga-1 mb-2" }, pu = { class: "text-label" }, gu = { class: "w-100 d-flex ma-0" }, fu = { class: "w-30 pa-0 d-flex" }, yu = { class: "flex-1-1-0 pa-0 d-flex" }, bu = { class: "pa-0" }, wu = { class: "d-flex justify-start align-center ga-1 mb-2" },
|
|
10333
|
+
}, iu = { class: "idm-gl4-spot" }, lu = { class: "d-flex justify-start align-center" }, ru = { class: "text-h6 font-weight-600" }, nu = { class: "d-flex justify-start align-center ga-1 mb-2" }, su = { class: "text-label" }, cu = { class: "w-100 d-flex ma-0" }, mu = { class: "w-30 pa-0 d-flex" }, du = { class: "flex-1-1-0 pa-0 d-flex" }, hu = { class: "pa-0" }, uu = { class: "d-flex justify-start align-center ga-1 mb-2" }, pu = { class: "text-label" }, gu = { class: "w-100 d-flex ma-0" }, fu = { class: "w-30 pa-0 d-flex" }, yu = { class: "flex-1-1-0 pa-0 d-flex" }, bu = { class: "pa-0" }, wu = { class: "d-flex justify-start align-center ga-1 mb-2" }, xu = { class: "text-label" }, vu = { class: "d-flex justify-start align-center ga-1 mb-2" }, Au = { class: "text-label" }, ku = { class: "d-flex justify-start align-center" }, Lu = { class: "mx-2" }, zu = { class: "mx-0 py-2 d-flex align-center justify-start" }, _u = {
|
|
10327
10334
|
style: { width: "100px" },
|
|
10328
10335
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10329
10336
|
}, Cu = { class: "pa-0 px-0" }, Mu = { class: "mx-0 py-2 d-flex align-center justify-start" }, Pu = {
|
|
@@ -10381,9 +10388,9 @@ const au = {
|
|
|
10381
10388
|
class: "multi-color-icon",
|
|
10382
10389
|
style: { height: "30px", width: "30px" },
|
|
10383
10390
|
"aria-hidden": "true"
|
|
10384
|
-
},
|
|
10385
|
-
function
|
|
10386
|
-
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VDivider"), m = M("VTextField"), p = M("DateTimePicker"), g = M("VCol"), b = M("VRow"), u = M("VBtnToggle"), h = M("VCardText"), f = M("VCardActions"), L = M("VForm"),
|
|
10391
|
+
}, xp = ["xlink:href"];
|
|
10392
|
+
function vp(t, e, o, i, a, l) {
|
|
10393
|
+
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VDivider"), m = M("VTextField"), p = M("DateTimePicker"), g = M("VCol"), b = M("VRow"), u = M("VBtnToggle"), h = M("VCardText"), f = M("VCardActions"), L = M("VForm"), v = M("VCard");
|
|
10387
10394
|
return A(), R("div", iu, [
|
|
10388
10395
|
n("div", {
|
|
10389
10396
|
class: "menu-bar-box transition pa-1",
|
|
@@ -10397,7 +10404,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10397
10404
|
"open-on-focus": !o.simple,
|
|
10398
10405
|
"open-on-hover": !o.simple
|
|
10399
10406
|
}, {
|
|
10400
|
-
activator:
|
|
10407
|
+
activator: x(({ props: C }) => [
|
|
10401
10408
|
w(r, V(C, {
|
|
10402
10409
|
"min-width": "32",
|
|
10403
10410
|
width: "32",
|
|
@@ -10405,7 +10412,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10405
10412
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
10406
10413
|
onClick: l.handleMenuToggle
|
|
10407
10414
|
}), {
|
|
10408
|
-
default:
|
|
10415
|
+
default: x(() => e[8] || (e[8] = [
|
|
10409
10416
|
n("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
10410
10417
|
])),
|
|
10411
10418
|
_: 2,
|
|
@@ -10415,14 +10422,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10415
10422
|
_: 1
|
|
10416
10423
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
10417
10424
|
], 4),
|
|
10418
|
-
a.showForm && !o.simple ? (A(), F(
|
|
10425
|
+
a.showForm && !o.simple ? (A(), F(v, {
|
|
10419
10426
|
key: 0,
|
|
10420
10427
|
class: "spot-form-card",
|
|
10421
10428
|
style: ge({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
10422
10429
|
}, {
|
|
10423
|
-
default:
|
|
10430
|
+
default: x(() => [
|
|
10424
10431
|
w(s, { class: "d-flex justify-space-between align-center" }, {
|
|
10425
|
-
default:
|
|
10432
|
+
default: x(() => [
|
|
10426
10433
|
n("div", lu, [
|
|
10427
10434
|
n("div", ru, y(t.$t("spot.spotWeather")), 1)
|
|
10428
10435
|
]),
|
|
@@ -10433,7 +10440,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10433
10440
|
class: "mr-n2",
|
|
10434
10441
|
onClick: l.handleCloseForm
|
|
10435
10442
|
}, {
|
|
10436
|
-
default:
|
|
10443
|
+
default: x(() => e[9] || (e[9] = [
|
|
10437
10444
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10438
10445
|
])),
|
|
10439
10446
|
_: 1,
|
|
@@ -10449,9 +10456,9 @@ function xp(t, e, o, i, a, l) {
|
|
|
10449
10456
|
class: "form-box",
|
|
10450
10457
|
onSubmit: _e(l.submitForm, ["prevent"])
|
|
10451
10458
|
}, {
|
|
10452
|
-
default:
|
|
10459
|
+
default: x(() => [
|
|
10453
10460
|
w(h, { class: "text-body-1 pa-4 py-2" }, {
|
|
10454
|
-
default:
|
|
10461
|
+
default: x(() => [
|
|
10455
10462
|
n("div", nu, [
|
|
10456
10463
|
n("div", su, [
|
|
10457
10464
|
N(y(t.$t("spot.lat")), 1),
|
|
@@ -10500,7 +10507,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10500
10507
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10501
10508
|
onClick: e[2] || (e[2] = (C) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10502
10509
|
}, {
|
|
10503
|
-
default:
|
|
10510
|
+
default: x(() => [
|
|
10504
10511
|
N(y(a.form.latDirection), 1)
|
|
10505
10512
|
]),
|
|
10506
10513
|
_: 1
|
|
@@ -10552,7 +10559,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10552
10559
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10553
10560
|
onClick: e[5] || (e[5] = (C) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10554
10561
|
}, {
|
|
10555
|
-
default:
|
|
10562
|
+
default: x(() => [
|
|
10556
10563
|
N(y(a.form.lngDirection), 1)
|
|
10557
10564
|
]),
|
|
10558
10565
|
_: 1
|
|
@@ -10560,18 +10567,18 @@ function xp(t, e, o, i, a, l) {
|
|
|
10560
10567
|
])
|
|
10561
10568
|
]),
|
|
10562
10569
|
n("div", wu, [
|
|
10563
|
-
n("div",
|
|
10570
|
+
n("div", xu, [
|
|
10564
10571
|
N(y(t.$t("spot.dateTime")), 1),
|
|
10565
10572
|
e[16] || (e[16] = n("span", { class: "text-danger" }, "*", -1))
|
|
10566
10573
|
])
|
|
10567
10574
|
]),
|
|
10568
10575
|
w(b, { class: "ma-0 mb-4" }, {
|
|
10569
|
-
default:
|
|
10576
|
+
default: x(() => [
|
|
10570
10577
|
w(g, {
|
|
10571
10578
|
cols: "12",
|
|
10572
10579
|
class: "pa-0"
|
|
10573
10580
|
}, {
|
|
10574
|
-
default:
|
|
10581
|
+
default: x(() => [
|
|
10575
10582
|
w(p, V({
|
|
10576
10583
|
"date-time": a.form.dateTime,
|
|
10577
10584
|
"time-zone": o.timeZone
|
|
@@ -10584,19 +10591,19 @@ function xp(t, e, o, i, a, l) {
|
|
|
10584
10591
|
]),
|
|
10585
10592
|
_: 1
|
|
10586
10593
|
}),
|
|
10587
|
-
n("div",
|
|
10594
|
+
n("div", vu, [
|
|
10588
10595
|
n("div", Au, [
|
|
10589
10596
|
N(y(t.$t("weather.forecastModel")), 1),
|
|
10590
10597
|
e[17] || (e[17] = n("span", { class: "text-danger" }, "*", -1))
|
|
10591
10598
|
])
|
|
10592
10599
|
]),
|
|
10593
10600
|
w(b, { class: "ma-0" }, {
|
|
10594
|
-
default:
|
|
10601
|
+
default: x(() => [
|
|
10595
10602
|
w(g, {
|
|
10596
10603
|
cols: "12",
|
|
10597
10604
|
class: "pa-0"
|
|
10598
10605
|
}, {
|
|
10599
|
-
default:
|
|
10606
|
+
default: x(() => [
|
|
10600
10607
|
w(u, {
|
|
10601
10608
|
modelValue: a.form.forecastModel,
|
|
10602
10609
|
"onUpdate:modelValue": e[7] || (e[7] = (C) => a.form.forecastModel = C),
|
|
@@ -10607,7 +10614,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10607
10614
|
group: "",
|
|
10608
10615
|
mandatory: ""
|
|
10609
10616
|
}, {
|
|
10610
|
-
default:
|
|
10617
|
+
default: x(() => [
|
|
10611
10618
|
w(r, {
|
|
10612
10619
|
density: "compact",
|
|
10613
10620
|
height: "30",
|
|
@@ -10616,7 +10623,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10616
10623
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
10617
10624
|
"base-color": ""
|
|
10618
10625
|
}, {
|
|
10619
|
-
default:
|
|
10626
|
+
default: x(() => e[18] || (e[18] = [
|
|
10620
10627
|
N(" NOAA ", -1)
|
|
10621
10628
|
])),
|
|
10622
10629
|
_: 1,
|
|
@@ -10630,7 +10637,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10630
10637
|
"base-color": "",
|
|
10631
10638
|
value: "ECMWF"
|
|
10632
10639
|
}, {
|
|
10633
|
-
default:
|
|
10640
|
+
default: x(() => e[19] || (e[19] = [
|
|
10634
10641
|
N(" ECMWF ", -1)
|
|
10635
10642
|
])),
|
|
10636
10643
|
_: 1,
|
|
@@ -10650,14 +10657,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10650
10657
|
}),
|
|
10651
10658
|
w(d),
|
|
10652
10659
|
w(f, { class: "d-flex justify-end align-center ga-4 pa-4 py-2" }, {
|
|
10653
|
-
default:
|
|
10660
|
+
default: x(() => [
|
|
10654
10661
|
w(r, {
|
|
10655
10662
|
size: "small",
|
|
10656
10663
|
variant: "tonal",
|
|
10657
10664
|
class: "text-none text-body-1 btn-bg-1",
|
|
10658
10665
|
onClick: l.cancelForm
|
|
10659
10666
|
}, {
|
|
10660
|
-
default:
|
|
10667
|
+
default: x(() => [
|
|
10661
10668
|
N(y(t.$t("actions.clear")), 1)
|
|
10662
10669
|
]),
|
|
10663
10670
|
_: 1
|
|
@@ -10671,7 +10678,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10671
10678
|
type: "submit",
|
|
10672
10679
|
class: "text-none text-body-1"
|
|
10673
10680
|
}, {
|
|
10674
|
-
default:
|
|
10681
|
+
default: x(() => [
|
|
10675
10682
|
N(y(t.$t("actions.confirm")), 1)
|
|
10676
10683
|
]),
|
|
10677
10684
|
_: 1
|
|
@@ -10685,15 +10692,15 @@ function xp(t, e, o, i, a, l) {
|
|
|
10685
10692
|
]),
|
|
10686
10693
|
_: 1
|
|
10687
10694
|
}, 8, ["style"])) : I("", !0),
|
|
10688
|
-
a.showMeteo && !o.simple ? (A(), F(
|
|
10695
|
+
a.showMeteo && !o.simple ? (A(), F(v, {
|
|
10689
10696
|
key: 1,
|
|
10690
10697
|
id: "idm-gl4-spot-meteo",
|
|
10691
10698
|
class: "spot-meteo",
|
|
10692
10699
|
style: { width: "490px", "z-index": "9" }
|
|
10693
10700
|
}, {
|
|
10694
|
-
default:
|
|
10701
|
+
default: x(() => [
|
|
10695
10702
|
w(s, { class: "d-flex justify-space-between align-center" }, {
|
|
10696
|
-
default:
|
|
10703
|
+
default: x(() => [
|
|
10697
10704
|
n("div", ku, [
|
|
10698
10705
|
e[20] || (e[20] = n("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
10699
10706
|
n("div", Lu, y(l.computePosition(a.form || a.currentHourData)), 1)
|
|
@@ -10705,7 +10712,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10705
10712
|
variant: "plain",
|
|
10706
10713
|
onClick: _e(l.handleCloseMeteo, ["stop"])
|
|
10707
10714
|
}, {
|
|
10708
|
-
default:
|
|
10715
|
+
default: x(() => e[21] || (e[21] = [
|
|
10709
10716
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10710
10717
|
])),
|
|
10711
10718
|
_: 1,
|
|
@@ -10716,7 +10723,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10716
10723
|
}),
|
|
10717
10724
|
w(d),
|
|
10718
10725
|
w(h, { class: "text-body-1 px-0 py-1" }, {
|
|
10719
|
-
default:
|
|
10726
|
+
default: x(() => {
|
|
10720
10727
|
var C, z;
|
|
10721
10728
|
return [
|
|
10722
10729
|
n("div", zu, [
|
|
@@ -10760,7 +10767,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10760
10767
|
}),
|
|
10761
10768
|
w(d),
|
|
10762
10769
|
w(f, { class: "d-flex justify-space-between align-center" }, {
|
|
10763
|
-
default:
|
|
10770
|
+
default: x(() => {
|
|
10764
10771
|
var C;
|
|
10765
10772
|
return [
|
|
10766
10773
|
(C = o.followList) != null && C.some((z) => {
|
|
@@ -10775,10 +10782,10 @@ function xp(t, e, o, i, a, l) {
|
|
|
10775
10782
|
height: "32",
|
|
10776
10783
|
onClick: _e(l.handleCancelFollow, ["stop"])
|
|
10777
10784
|
}, {
|
|
10778
|
-
prepend:
|
|
10785
|
+
prepend: x(() => e[23] || (e[23] = [
|
|
10779
10786
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
10780
10787
|
])),
|
|
10781
|
-
default:
|
|
10788
|
+
default: x(() => [
|
|
10782
10789
|
N(" " + y(t.$t("actions.unfollow")), 1)
|
|
10783
10790
|
]),
|
|
10784
10791
|
_: 1
|
|
@@ -10791,10 +10798,10 @@ function xp(t, e, o, i, a, l) {
|
|
|
10791
10798
|
height: "32",
|
|
10792
10799
|
onClick: _e(l.handleFollow, ["stop"])
|
|
10793
10800
|
}, {
|
|
10794
|
-
prepend:
|
|
10801
|
+
prepend: x(() => e[24] || (e[24] = [
|
|
10795
10802
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
10796
10803
|
])),
|
|
10797
|
-
default:
|
|
10804
|
+
default: x(() => [
|
|
10798
10805
|
N(y(t.$t("actions.follow")) + " ", 1)
|
|
10799
10806
|
]),
|
|
10800
10807
|
_: 1
|
|
@@ -10807,7 +10814,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10807
10814
|
class: "text-none text-body-1",
|
|
10808
10815
|
onClick: _e(l.handleMeteoMore, ["stop"])
|
|
10809
10816
|
}, {
|
|
10810
|
-
default:
|
|
10817
|
+
default: x(() => [
|
|
10811
10818
|
N(y(t.$t("spot.forecast")), 1)
|
|
10812
10819
|
]),
|
|
10813
10820
|
_: 1
|
|
@@ -10819,15 +10826,15 @@ function xp(t, e, o, i, a, l) {
|
|
|
10819
10826
|
]),
|
|
10820
10827
|
_: 1
|
|
10821
10828
|
})) : I("", !0),
|
|
10822
|
-
a.showMeteo && o.simple ? (A(), F(
|
|
10829
|
+
a.showMeteo && o.simple ? (A(), F(v, {
|
|
10823
10830
|
key: 2,
|
|
10824
10831
|
ref: "spotMeteo",
|
|
10825
10832
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
10826
10833
|
style: { width: "100vw", "z-index": "1001" }
|
|
10827
10834
|
}, {
|
|
10828
|
-
default:
|
|
10835
|
+
default: x(() => [
|
|
10829
10836
|
w(s, null, {
|
|
10830
|
-
default:
|
|
10837
|
+
default: x(() => {
|
|
10831
10838
|
var C;
|
|
10832
10839
|
return [
|
|
10833
10840
|
n("div", Ku, [
|
|
@@ -10849,7 +10856,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10849
10856
|
"min-width": "28",
|
|
10850
10857
|
onClick: _e(l.handleCancelFollow, ["stop"])
|
|
10851
10858
|
}, {
|
|
10852
|
-
default:
|
|
10859
|
+
default: x(() => e[26] || (e[26] = [
|
|
10853
10860
|
n("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
|
|
10854
10861
|
])),
|
|
10855
10862
|
_: 1,
|
|
@@ -10864,7 +10871,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10864
10871
|
"min-width": "28",
|
|
10865
10872
|
onClick: _e(l.handleFollow, ["stop"])
|
|
10866
10873
|
}, {
|
|
10867
|
-
default:
|
|
10874
|
+
default: x(() => e[27] || (e[27] = [
|
|
10868
10875
|
n("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
|
|
10869
10876
|
])),
|
|
10870
10877
|
_: 1,
|
|
@@ -10877,7 +10884,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10877
10884
|
variant: "plain",
|
|
10878
10885
|
onClick: _e(l.handleCloseMeteo, ["stop"])
|
|
10879
10886
|
}, {
|
|
10880
|
-
default:
|
|
10887
|
+
default: x(() => e[28] || (e[28] = [
|
|
10881
10888
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10882
10889
|
])),
|
|
10883
10890
|
_: 1,
|
|
@@ -10893,7 +10900,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10893
10900
|
}),
|
|
10894
10901
|
w(d),
|
|
10895
10902
|
w(h, { class: "text-body-1 px-0 py-2" }, {
|
|
10896
|
-
default:
|
|
10903
|
+
default: x(() => {
|
|
10897
10904
|
var C, z;
|
|
10898
10905
|
return [
|
|
10899
10906
|
n("div", ep, [
|
|
@@ -10956,14 +10963,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10956
10963
|
(A(), R("svg", wp, [
|
|
10957
10964
|
n("use", {
|
|
10958
10965
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
10959
|
-
}, null, 8,
|
|
10966
|
+
}, null, 8, xp)
|
|
10960
10967
|
]))
|
|
10961
10968
|
], 512), [
|
|
10962
10969
|
[po, a.showMeteo]
|
|
10963
10970
|
])
|
|
10964
10971
|
]);
|
|
10965
10972
|
}
|
|
10966
|
-
const Ap = /* @__PURE__ */ ne(au, [["render",
|
|
10973
|
+
const Ap = /* @__PURE__ */ ne(au, [["render", vp]]);
|
|
10967
10974
|
const kp = {
|
|
10968
10975
|
name: "IdmMeasure",
|
|
10969
10976
|
props: {
|
|
@@ -11107,7 +11114,7 @@ const kp = {
|
|
|
11107
11114
|
const c = this.geojson.filter((s) => s.id === e.split("-")[0])[0].features.filter((s) => s.geometry.type === "Point");
|
|
11108
11115
|
if (c.length > 2 && c.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
11109
11116
|
const d = document.createElement("div");
|
|
11110
|
-
d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${this.$t("actions.detele")}</span>`, this.contextmenu = new
|
|
11117
|
+
d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${this.$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(d).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
11111
11118
|
}
|
|
11112
11119
|
}
|
|
11113
11120
|
},
|
|
@@ -11229,7 +11236,7 @@ const kp = {
|
|
|
11229
11236
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
11230
11237
|
else {
|
|
11231
11238
|
const s = document.createElement("div");
|
|
11232
|
-
s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new
|
|
11239
|
+
s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new ve.Marker(s).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
11233
11240
|
}
|
|
11234
11241
|
},
|
|
11235
11242
|
handleMove(t) {
|
|
@@ -11305,12 +11312,12 @@ const kp = {
|
|
|
11305
11312
|
for (const c of r) {
|
|
11306
11313
|
const s = document.createElement("div");
|
|
11307
11314
|
s.id = `${t.id}-${c.properties.id}`, s.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
11308
|
-
const d = new
|
|
11315
|
+
const d = new ve.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11309
11316
|
d.on("drag", this.handleDrag), d.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(d) : this.pointMarkers[t.id] = [d];
|
|
11310
11317
|
}
|
|
11311
11318
|
if (t.closed) {
|
|
11312
11319
|
const c = r.at(-1), d = t.features.filter((p) => p.geometry.type === "LineString").at(-1), m = document.createElement("div");
|
|
11313
|
-
m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new
|
|
11320
|
+
m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new ve.Marker(m).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11314
11321
|
}
|
|
11315
11322
|
}
|
|
11316
11323
|
},
|
|
@@ -11338,7 +11345,7 @@ function zp(t, e, o, i, a, l) {
|
|
|
11338
11345
|
"open-on-focus": !o.simple,
|
|
11339
11346
|
"open-on-hover": !o.simple
|
|
11340
11347
|
}, {
|
|
11341
|
-
activator:
|
|
11348
|
+
activator: x(({ props: s }) => [
|
|
11342
11349
|
w(r, V(s, {
|
|
11343
11350
|
"min-width": "32",
|
|
11344
11351
|
width: "32",
|
|
@@ -11346,7 +11353,7 @@ function zp(t, e, o, i, a, l) {
|
|
|
11346
11353
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
11347
11354
|
onClick: l.handleMenuToggle
|
|
11348
11355
|
}), {
|
|
11349
|
-
default:
|
|
11356
|
+
default: x(() => e[0] || (e[0] = [
|
|
11350
11357
|
n("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
11351
11358
|
])),
|
|
11352
11359
|
_: 2,
|
|
@@ -11537,7 +11544,7 @@ const Cp = {
|
|
|
11537
11544
|
const t = document.createElement("div");
|
|
11538
11545
|
t.className = "idm-gl4-point-center-ring";
|
|
11539
11546
|
const e = this.pointMarker.getLngLat();
|
|
11540
|
-
this.pointHighlightMarker = new
|
|
11547
|
+
this.pointHighlightMarker = new ve.Marker({ element: t, anchor: "center", offset: [0, 0] }).setLngLat(e).addTo(this.map), this.pointMarker.on("drag", () => {
|
|
11541
11548
|
var i;
|
|
11542
11549
|
(i = this.pointHighlightMarker) == null || i.setLngLat(this.pointMarker.getLngLat());
|
|
11543
11550
|
});
|
|
@@ -11570,7 +11577,7 @@ const Cp = {
|
|
|
11570
11577
|
this.clearEditMarkers(), this.drawCoords.forEach((e, o) => {
|
|
11571
11578
|
const i = document.createElement("div");
|
|
11572
11579
|
i.className = "idm-gl4-edit-vertex", i.style.backgroundColor = this.form.color;
|
|
11573
|
-
const a = new
|
|
11580
|
+
const a = new ve.Marker({ element: i, draggable: !0 }).setLngLat(e).addTo(this.map);
|
|
11574
11581
|
a.on("dragstart", () => {
|
|
11575
11582
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11576
11583
|
const { lng: l, lat: r } = a.getLngLat();
|
|
@@ -11661,7 +11668,7 @@ const Cp = {
|
|
|
11661
11668
|
this.drawCoords = e.map((i) => [...i]), this.drawCoords.forEach((i, a) => {
|
|
11662
11669
|
const l = document.createElement("div");
|
|
11663
11670
|
l.className = "idm-gl4-edit-vertex", l.style.backgroundColor = this.form.color;
|
|
11664
|
-
const r = new
|
|
11671
|
+
const r = new ve.Marker({ element: l, draggable: !0 }).setLngLat(i).addTo(this.map);
|
|
11665
11672
|
r.on("dragstart", () => {
|
|
11666
11673
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11667
11674
|
const { lng: c, lat: s } = r.getLngLat();
|
|
@@ -11722,7 +11729,7 @@ const Cp = {
|
|
|
11722
11729
|
if ((a = this.pointMarker) == null || a.remove(), !t || !t.length)
|
|
11723
11730
|
return;
|
|
11724
11731
|
const [o, i] = t[0];
|
|
11725
|
-
this.pointMarker = new
|
|
11732
|
+
this.pointMarker = new ve.Marker({ color: e }).setLngLat([o, i]).addTo(this.map);
|
|
11726
11733
|
},
|
|
11727
11734
|
// -------- Line drawing --------
|
|
11728
11735
|
handleMapClickLine(t) {
|
|
@@ -11797,7 +11804,7 @@ const Cp = {
|
|
|
11797
11804
|
this.tipMarker._element.innerHTML = d, this.tipMarker.setLngLat([e[0], e[1]]);
|
|
11798
11805
|
else {
|
|
11799
11806
|
const m = document.createElement("div");
|
|
11800
|
-
m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new
|
|
11807
|
+
m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new ve.Marker(m).setOffset([140, 0]).setLngLat([e[0], e[1]]).addTo(this.map);
|
|
11801
11808
|
}
|
|
11802
11809
|
},
|
|
11803
11810
|
handleRefreshLine() {
|
|
@@ -11866,7 +11873,7 @@ const Cp = {
|
|
|
11866
11873
|
this.handleClearVertexLabels();
|
|
11867
11874
|
const o = H.lat2pretty(t[1], 4).pretty, i = H.lng2pretty(t[0], 4).pretty, a = document.createElement("div");
|
|
11868
11875
|
a.className = "idm-gl4-draw-corner-label center", a.innerHTML = `<span class="corner-text">${o} <br/> ${i}</span>`;
|
|
11869
|
-
const l = new
|
|
11876
|
+
const l = new ve.Marker(a, { anchor: "bottom", offset: [0, e] }).setLngLat(t).addTo(this.map);
|
|
11870
11877
|
this.polygonVertexMarkers.push(l);
|
|
11871
11878
|
},
|
|
11872
11879
|
handleRenderAllVertexLabels(t) {
|
|
@@ -11878,7 +11885,7 @@ const Cp = {
|
|
|
11878
11885
|
a >= 0 && i >= 0 ? l = "bottom-left" : a >= 0 && i < 0 ? l = "bottom-right" : a < 0 && i >= 0 ? l = "top-left" : l = "top-right";
|
|
11879
11886
|
const r = H.lat2pretty(o[1], 4).pretty, c = H.lng2pretty(o[0], 4).pretty, s = document.createElement("div");
|
|
11880
11887
|
s.className = "idm-gl4-draw-corner-label " + l, s.innerHTML = `<span class="corner-text">${r} <br/> ${c}</span>`;
|
|
11881
|
-
const d = new
|
|
11888
|
+
const d = new ve.Marker(s, { anchor: l }).setLngLat(o).addTo(this.map);
|
|
11882
11889
|
this.polygonVertexMarkers.push(d);
|
|
11883
11890
|
});
|
|
11884
11891
|
},
|
|
@@ -11925,7 +11932,7 @@ const Cp = {
|
|
|
11925
11932
|
handleRenderCircleCenterLabel(t) {
|
|
11926
11933
|
const e = H.lat2pretty(t[1], 4).pretty, o = H.lng2pretty(t[0], 4).pretty, i = document.createElement("div");
|
|
11927
11934
|
i.className = "idm-gl4-draw-corner-label bottom-right", i.innerHTML = `<span class="corner-text">${e} <br/> ${o}</span>`;
|
|
11928
|
-
const a = new
|
|
11935
|
+
const a = new ve.Marker(i, { anchor: "bottom-right" }).setLngLat(t).addTo(this.map);
|
|
11929
11936
|
this.circleMarkers.push(a);
|
|
11930
11937
|
},
|
|
11931
11938
|
handleRenderRadiusLine(t, e, o) {
|
|
@@ -11948,7 +11955,7 @@ const Cp = {
|
|
|
11948
11955
|
this.circleMarkers.length > 1 && (this.circleMarkers[1].remove(), this.circleMarkers.splice(1, 1));
|
|
11949
11956
|
const h = document.createElement("div"), f = document.createElement("span");
|
|
11950
11957
|
f.className = "idm-gl4-draw-radius-label", f.style.transform = `rotate(${m}deg)`, f.style.transformOrigin = "center", f.style.display = "inline-block", f.textContent = `${i} nm`, h.appendChild(f);
|
|
11951
|
-
const L = new
|
|
11958
|
+
const L = new ve.Marker(h, { anchor: "center", offset: [b, u] }).setLngLat(l).addTo(this.map);
|
|
11952
11959
|
this.circleMarkers.push(L);
|
|
11953
11960
|
},
|
|
11954
11961
|
handleClearCircleLabels() {
|
|
@@ -12027,7 +12034,7 @@ const Cp = {
|
|
|
12027
12034
|
this.handleClearRectCorners(), r.forEach(({ coord: c, anchor: s }) => {
|
|
12028
12035
|
const d = H.lat2pretty(c[1], 4).pretty, m = H.lng2pretty(c[0], 4).pretty, p = document.createElement("div");
|
|
12029
12036
|
p.className = "idm-gl4-draw-corner-label " + s, p.innerHTML = `<span class="corner-text">${d} <br/> ${m}</span>`;
|
|
12030
|
-
const g = new
|
|
12037
|
+
const g = new ve.Marker(p, { anchor: s }).setLngLat(c).addTo(this.map);
|
|
12031
12038
|
this.rectCornerMarkers.push(g);
|
|
12032
12039
|
});
|
|
12033
12040
|
},
|
|
@@ -12170,14 +12177,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12170
12177
|
class: "idm-gl4-draw-dialog-card",
|
|
12171
12178
|
elevation: "4"
|
|
12172
12179
|
}, {
|
|
12173
|
-
default:
|
|
12180
|
+
default: x(() => {
|
|
12174
12181
|
var L;
|
|
12175
12182
|
return [
|
|
12176
12183
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
12177
|
-
default:
|
|
12178
|
-
var
|
|
12184
|
+
default: x(() => {
|
|
12185
|
+
var v;
|
|
12179
12186
|
return [
|
|
12180
|
-
n("span", Mp, y((
|
|
12187
|
+
n("span", Mp, y((v = o.editLayer) != null && v.id ? t.$t("actions.edit") : t.$t("actions.addMarker")), 1),
|
|
12181
12188
|
w(r, {
|
|
12182
12189
|
icon: "",
|
|
12183
12190
|
density: "compact",
|
|
@@ -12185,7 +12192,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12185
12192
|
class: "mr-n2",
|
|
12186
12193
|
onClick: l.handleClose
|
|
12187
12194
|
}, {
|
|
12188
|
-
default:
|
|
12195
|
+
default: x(() => e[21] || (e[21] = [
|
|
12189
12196
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
12190
12197
|
])),
|
|
12191
12198
|
_: 1,
|
|
@@ -12197,12 +12204,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12197
12204
|
}),
|
|
12198
12205
|
w(s),
|
|
12199
12206
|
w(m, { class: "text-body-1 px-4 pb-0" }, {
|
|
12200
|
-
default:
|
|
12201
|
-
var
|
|
12207
|
+
default: x(() => {
|
|
12208
|
+
var v;
|
|
12202
12209
|
return [
|
|
12203
12210
|
n("div", Pp, y(t.$t("marker.group")), 1),
|
|
12204
12211
|
w(d, {
|
|
12205
|
-
"model-value": (
|
|
12212
|
+
"model-value": (v = o.group) == null ? void 0 : v.name,
|
|
12206
12213
|
density: "compact",
|
|
12207
12214
|
variant: "outlined",
|
|
12208
12215
|
"hide-details": "",
|
|
@@ -12217,8 +12224,8 @@ function tg(t, e, o, i, a, l) {
|
|
|
12217
12224
|
key: 0,
|
|
12218
12225
|
class: "text-body-1 px-4 pb-0"
|
|
12219
12226
|
}, {
|
|
12220
|
-
default:
|
|
12221
|
-
var
|
|
12227
|
+
default: x(() => {
|
|
12228
|
+
var v;
|
|
12222
12229
|
return [
|
|
12223
12230
|
n("div", Sp, [
|
|
12224
12231
|
N(y(t.$t("marker.markerType")), 1),
|
|
@@ -12232,9 +12239,9 @@ function tg(t, e, o, i, a, l) {
|
|
|
12232
12239
|
density: "compact",
|
|
12233
12240
|
variant: "flat",
|
|
12234
12241
|
class: "w-100",
|
|
12235
|
-
disabled: !!((
|
|
12242
|
+
disabled: !!((v = o.editLayer) != null && v.id)
|
|
12236
12243
|
}, {
|
|
12237
|
-
default:
|
|
12244
|
+
default: x(() => [
|
|
12238
12245
|
w(r, {
|
|
12239
12246
|
value: "Point",
|
|
12240
12247
|
class: ue(["flex-1-1-0 text-none text-body-1", a.markerType === "Point" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -12243,7 +12250,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12243
12250
|
height: "32px",
|
|
12244
12251
|
"min-height": "32px"
|
|
12245
12252
|
}, {
|
|
12246
|
-
default:
|
|
12253
|
+
default: x(() => [
|
|
12247
12254
|
N(y(t.$t("marker.point")), 1)
|
|
12248
12255
|
]),
|
|
12249
12256
|
_: 1
|
|
@@ -12256,7 +12263,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12256
12263
|
height: "32px",
|
|
12257
12264
|
"min-height": "32px"
|
|
12258
12265
|
}, {
|
|
12259
|
-
default:
|
|
12266
|
+
default: x(() => [
|
|
12260
12267
|
N(y(t.$t("marker.line")), 1)
|
|
12261
12268
|
]),
|
|
12262
12269
|
_: 1
|
|
@@ -12268,7 +12275,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12268
12275
|
height: "32px",
|
|
12269
12276
|
"min-height": "32px"
|
|
12270
12277
|
}, {
|
|
12271
|
-
default:
|
|
12278
|
+
default: x(() => [
|
|
12272
12279
|
N(y(t.$t("marker.area")), 1)
|
|
12273
12280
|
]),
|
|
12274
12281
|
_: 1
|
|
@@ -12287,26 +12294,26 @@ function tg(t, e, o, i, a, l) {
|
|
|
12287
12294
|
class: "form-box",
|
|
12288
12295
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12289
12296
|
}, {
|
|
12290
|
-
default:
|
|
12297
|
+
default: x(() => [
|
|
12291
12298
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12292
|
-
default:
|
|
12299
|
+
default: x(() => [
|
|
12293
12300
|
n("div", Tp, [
|
|
12294
12301
|
n("div", Rp, [
|
|
12295
12302
|
N(y(t.$t("marker.lat")), 1),
|
|
12296
12303
|
e[23] || (e[23] = n("span", { class: "text-danger" }, "*", -1))
|
|
12297
12304
|
]),
|
|
12298
12305
|
w(b, { class: "ma-0" }, {
|
|
12299
|
-
default:
|
|
12306
|
+
default: x(() => [
|
|
12300
12307
|
w(g, {
|
|
12301
12308
|
cols: "4",
|
|
12302
12309
|
class: "pa-0 d-flex"
|
|
12303
12310
|
}, {
|
|
12304
|
-
default:
|
|
12311
|
+
default: x(() => [
|
|
12305
12312
|
w(d, {
|
|
12306
12313
|
modelValue: a.form.latDegree,
|
|
12307
12314
|
"onUpdate:modelValue": [
|
|
12308
|
-
e[1] || (e[1] = (
|
|
12309
|
-
e[2] || (e[2] = (
|
|
12315
|
+
e[1] || (e[1] = (v) => a.form.latDegree = v),
|
|
12316
|
+
e[2] || (e[2] = (v) => l.handleChangePoint())
|
|
12310
12317
|
],
|
|
12311
12318
|
rules: a.formRules.latDegree,
|
|
12312
12319
|
label: "",
|
|
@@ -12328,12 +12335,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12328
12335
|
cols: "6",
|
|
12329
12336
|
class: "pa-0 d-flex"
|
|
12330
12337
|
}, {
|
|
12331
|
-
default:
|
|
12338
|
+
default: x(() => [
|
|
12332
12339
|
w(d, {
|
|
12333
12340
|
modelValue: a.form.latMinute,
|
|
12334
12341
|
"onUpdate:modelValue": [
|
|
12335
|
-
e[3] || (e[3] = (
|
|
12336
|
-
e[4] || (e[4] = (
|
|
12342
|
+
e[3] || (e[3] = (v) => a.form.latMinute = v),
|
|
12343
|
+
e[4] || (e[4] = (v) => l.handleChangePoint())
|
|
12337
12344
|
],
|
|
12338
12345
|
rules: a.formRules.latMinute,
|
|
12339
12346
|
label: "",
|
|
@@ -12355,7 +12362,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12355
12362
|
cols: "2",
|
|
12356
12363
|
class: "pa-0"
|
|
12357
12364
|
}, {
|
|
12358
|
-
default:
|
|
12365
|
+
default: x(() => [
|
|
12359
12366
|
w(r, {
|
|
12360
12367
|
variant: "outlined",
|
|
12361
12368
|
density: "compact",
|
|
@@ -12364,11 +12371,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12364
12371
|
height: "32",
|
|
12365
12372
|
class: "text-body-1 bg-primary",
|
|
12366
12373
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12367
|
-
onClick: e[5] || (e[5] = (
|
|
12374
|
+
onClick: e[5] || (e[5] = (v) => {
|
|
12368
12375
|
a.form.latDir = a.form.latDir === "N" ? "S" : "N", l.handleChangePoint();
|
|
12369
12376
|
})
|
|
12370
12377
|
}, {
|
|
12371
|
-
default:
|
|
12378
|
+
default: x(() => [
|
|
12372
12379
|
N(y(a.form.latDir), 1)
|
|
12373
12380
|
]),
|
|
12374
12381
|
_: 1
|
|
@@ -12386,17 +12393,17 @@ function tg(t, e, o, i, a, l) {
|
|
|
12386
12393
|
e[26] || (e[26] = n("span", { class: "text-danger" }, "*", -1))
|
|
12387
12394
|
]),
|
|
12388
12395
|
w(b, { class: "ma-0" }, {
|
|
12389
|
-
default:
|
|
12396
|
+
default: x(() => [
|
|
12390
12397
|
w(g, {
|
|
12391
12398
|
cols: "4",
|
|
12392
12399
|
class: "pa-0 d-flex"
|
|
12393
12400
|
}, {
|
|
12394
|
-
default:
|
|
12401
|
+
default: x(() => [
|
|
12395
12402
|
w(d, {
|
|
12396
12403
|
modelValue: a.form.lngDegree,
|
|
12397
12404
|
"onUpdate:modelValue": [
|
|
12398
|
-
e[6] || (e[6] = (
|
|
12399
|
-
e[7] || (e[7] = (
|
|
12405
|
+
e[6] || (e[6] = (v) => a.form.lngDegree = v),
|
|
12406
|
+
e[7] || (e[7] = (v) => l.handleChangePoint())
|
|
12400
12407
|
],
|
|
12401
12408
|
rules: a.formRules.lngDegree,
|
|
12402
12409
|
density: "compact",
|
|
@@ -12413,12 +12420,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12413
12420
|
cols: "6",
|
|
12414
12421
|
class: "pa-0 d-flex"
|
|
12415
12422
|
}, {
|
|
12416
|
-
default:
|
|
12423
|
+
default: x(() => [
|
|
12417
12424
|
w(d, {
|
|
12418
12425
|
modelValue: a.form.lngMinute,
|
|
12419
12426
|
"onUpdate:modelValue": [
|
|
12420
|
-
e[8] || (e[8] = (
|
|
12421
|
-
e[9] || (e[9] = (
|
|
12427
|
+
e[8] || (e[8] = (v) => a.form.lngMinute = v),
|
|
12428
|
+
e[9] || (e[9] = (v) => l.handleChangePoint())
|
|
12422
12429
|
],
|
|
12423
12430
|
rules: a.formRules.lngMinute,
|
|
12424
12431
|
density: "compact",
|
|
@@ -12435,7 +12442,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12435
12442
|
cols: "2",
|
|
12436
12443
|
class: "pa-0"
|
|
12437
12444
|
}, {
|
|
12438
|
-
default:
|
|
12445
|
+
default: x(() => [
|
|
12439
12446
|
w(r, {
|
|
12440
12447
|
variant: "outlined",
|
|
12441
12448
|
density: "compact",
|
|
@@ -12444,11 +12451,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12444
12451
|
height: "32",
|
|
12445
12452
|
class: "text-body-1 bg-primary",
|
|
12446
12453
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12447
|
-
onClick: e[10] || (e[10] = (
|
|
12454
|
+
onClick: e[10] || (e[10] = (v) => {
|
|
12448
12455
|
a.form.lngDir = a.form.lngDir === "E" ? "W" : "E", l.handleChangePoint();
|
|
12449
12456
|
})
|
|
12450
12457
|
}, {
|
|
12451
|
-
default:
|
|
12458
|
+
default: x(() => [
|
|
12452
12459
|
N(y(a.form.lngDir), 1)
|
|
12453
12460
|
]),
|
|
12454
12461
|
_: 1
|
|
@@ -12470,11 +12477,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12470
12477
|
type: "color",
|
|
12471
12478
|
value: a.form.color,
|
|
12472
12479
|
class: "native-color-picker cursor-pointer",
|
|
12473
|
-
onInput: e[11] || (e[11] = (
|
|
12480
|
+
onInput: e[11] || (e[11] = (v) => a.form.color = v.target.value)
|
|
12474
12481
|
}, null, 40, Bp),
|
|
12475
12482
|
w(d, {
|
|
12476
12483
|
modelValue: a.form.color,
|
|
12477
|
-
"onUpdate:modelValue": e[12] || (e[12] = (
|
|
12484
|
+
"onUpdate:modelValue": e[12] || (e[12] = (v) => a.form.color = v),
|
|
12478
12485
|
rules: a.formRules.color,
|
|
12479
12486
|
density: "compact",
|
|
12480
12487
|
variant: "outlined",
|
|
@@ -12489,7 +12496,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12489
12496
|
]),
|
|
12490
12497
|
w(d, {
|
|
12491
12498
|
modelValue: a.form.name,
|
|
12492
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
12499
|
+
"onUpdate:modelValue": e[13] || (e[13] = (v) => a.form.name = v),
|
|
12493
12500
|
density: "compact",
|
|
12494
12501
|
variant: "outlined",
|
|
12495
12502
|
rules: a.formRules.name,
|
|
@@ -12502,14 +12509,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12502
12509
|
}),
|
|
12503
12510
|
w(s),
|
|
12504
12511
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12505
|
-
default:
|
|
12512
|
+
default: x(() => [
|
|
12506
12513
|
w(r, {
|
|
12507
12514
|
class: "text-none text-body-1",
|
|
12508
12515
|
variant: "tonal",
|
|
12509
12516
|
density: "comfortable",
|
|
12510
12517
|
onClick: l.handleClearDraw
|
|
12511
12518
|
}, {
|
|
12512
|
-
default:
|
|
12519
|
+
default: x(() => [
|
|
12513
12520
|
N(y(t.$t("actions.clear")), 1)
|
|
12514
12521
|
]),
|
|
12515
12522
|
_: 1
|
|
@@ -12522,7 +12529,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12522
12529
|
type: "submit",
|
|
12523
12530
|
loading: a.saving
|
|
12524
12531
|
}, {
|
|
12525
|
-
default:
|
|
12532
|
+
default: x(() => [
|
|
12526
12533
|
N(y(t.$t("actions.save")), 1)
|
|
12527
12534
|
]),
|
|
12528
12535
|
_: 1
|
|
@@ -12540,9 +12547,9 @@ function tg(t, e, o, i, a, l) {
|
|
|
12540
12547
|
class: "form-box",
|
|
12541
12548
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12542
12549
|
}, {
|
|
12543
|
-
default:
|
|
12550
|
+
default: x(() => [
|
|
12544
12551
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12545
|
-
default:
|
|
12552
|
+
default: x(() => [
|
|
12546
12553
|
n("div", Zp, [
|
|
12547
12554
|
n("div", Wp, [
|
|
12548
12555
|
N(y(t.$t("marker.color")), 1),
|
|
@@ -12553,11 +12560,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12553
12560
|
type: "color",
|
|
12554
12561
|
value: a.form.color,
|
|
12555
12562
|
class: "native-color-picker cursor-pointer",
|
|
12556
|
-
onInput: e[14] || (e[14] = (
|
|
12563
|
+
onInput: e[14] || (e[14] = (v) => a.form.color = v.target.value)
|
|
12557
12564
|
}, null, 40, Xp),
|
|
12558
12565
|
w(d, {
|
|
12559
12566
|
modelValue: a.form.color,
|
|
12560
|
-
"onUpdate:modelValue": e[15] || (e[15] = (
|
|
12567
|
+
"onUpdate:modelValue": e[15] || (e[15] = (v) => a.form.color = v),
|
|
12561
12568
|
rules: a.formRules.color,
|
|
12562
12569
|
density: "compact",
|
|
12563
12570
|
variant: "outlined",
|
|
@@ -12572,7 +12579,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12572
12579
|
]),
|
|
12573
12580
|
w(d, {
|
|
12574
12581
|
modelValue: a.form.name,
|
|
12575
|
-
"onUpdate:modelValue": e[16] || (e[16] = (
|
|
12582
|
+
"onUpdate:modelValue": e[16] || (e[16] = (v) => a.form.name = v),
|
|
12576
12583
|
density: "compact",
|
|
12577
12584
|
variant: "outlined",
|
|
12578
12585
|
rules: a.formRules.name,
|
|
@@ -12585,14 +12592,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12585
12592
|
}),
|
|
12586
12593
|
w(s),
|
|
12587
12594
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12588
|
-
default:
|
|
12595
|
+
default: x(() => [
|
|
12589
12596
|
w(r, {
|
|
12590
12597
|
class: "text-none text-body-1",
|
|
12591
12598
|
variant: "tonal",
|
|
12592
12599
|
density: "comfortable",
|
|
12593
12600
|
onClick: l.handleClearDraw
|
|
12594
12601
|
}, {
|
|
12595
|
-
default:
|
|
12602
|
+
default: x(() => [
|
|
12596
12603
|
N(y(t.$t("actions.clear")), 1)
|
|
12597
12604
|
]),
|
|
12598
12605
|
_: 1
|
|
@@ -12605,7 +12612,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12605
12612
|
type: "submit",
|
|
12606
12613
|
loading: a.saving
|
|
12607
12614
|
}, {
|
|
12608
|
-
default:
|
|
12615
|
+
default: x(() => [
|
|
12609
12616
|
N(y(t.$t("actions.save")), 1)
|
|
12610
12617
|
]),
|
|
12611
12618
|
_: 1
|
|
@@ -12623,12 +12630,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12623
12630
|
class: "form-box",
|
|
12624
12631
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12625
12632
|
}, {
|
|
12626
|
-
default:
|
|
12633
|
+
default: x(() => [
|
|
12627
12634
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12628
|
-
default:
|
|
12629
|
-
var
|
|
12635
|
+
default: x(() => {
|
|
12636
|
+
var v, C;
|
|
12630
12637
|
return [
|
|
12631
|
-
(
|
|
12638
|
+
(v = o.editLayer) != null && v.id ? I("", !0) : (A(), R("div", Yp, [
|
|
12632
12639
|
n("div", Up, [
|
|
12633
12640
|
N(y(t.$t("marker.areaType")), 1),
|
|
12634
12641
|
e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
|
|
@@ -12644,7 +12651,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12644
12651
|
class: "w-100",
|
|
12645
12652
|
disabled: !!((C = o.editLayer) != null && C.id)
|
|
12646
12653
|
}, {
|
|
12647
|
-
default:
|
|
12654
|
+
default: x(() => [
|
|
12648
12655
|
w(r, {
|
|
12649
12656
|
value: "Polygon",
|
|
12650
12657
|
class: ue(["flex-1-1-0 text-none text-body-1", a.form.areaType === "Polygon" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -12653,7 +12660,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12653
12660
|
height: "32px",
|
|
12654
12661
|
"min-height": "32px"
|
|
12655
12662
|
}, {
|
|
12656
|
-
default:
|
|
12663
|
+
default: x(() => [
|
|
12657
12664
|
N(y(t.$t("marker.polygon")), 1)
|
|
12658
12665
|
]),
|
|
12659
12666
|
_: 1
|
|
@@ -12667,7 +12674,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12667
12674
|
height: "32px",
|
|
12668
12675
|
"min-height": "32px"
|
|
12669
12676
|
}, {
|
|
12670
|
-
default:
|
|
12677
|
+
default: x(() => [
|
|
12671
12678
|
N(y(t.$t("marker.circle")), 1)
|
|
12672
12679
|
]),
|
|
12673
12680
|
_: 1
|
|
@@ -12680,7 +12687,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12680
12687
|
height: "32px",
|
|
12681
12688
|
"min-height": "32px"
|
|
12682
12689
|
}, {
|
|
12683
|
-
default:
|
|
12690
|
+
default: x(() => [
|
|
12684
12691
|
N(y(t.$t("marker.rect")), 1)
|
|
12685
12692
|
]),
|
|
12686
12693
|
_: 1
|
|
@@ -12732,17 +12739,17 @@ function tg(t, e, o, i, a, l) {
|
|
|
12732
12739
|
}),
|
|
12733
12740
|
w(s),
|
|
12734
12741
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12735
|
-
default:
|
|
12736
|
-
var
|
|
12742
|
+
default: x(() => {
|
|
12743
|
+
var v;
|
|
12737
12744
|
return [
|
|
12738
|
-
(
|
|
12745
|
+
(v = o.editLayer) != null && v.id ? I("", !0) : (A(), F(r, {
|
|
12739
12746
|
key: 0,
|
|
12740
12747
|
class: "text-none text-body-1",
|
|
12741
12748
|
variant: "tonal",
|
|
12742
12749
|
density: "comfortable",
|
|
12743
12750
|
onClick: l.handleClearDraw
|
|
12744
12751
|
}, {
|
|
12745
|
-
default:
|
|
12752
|
+
default: x(() => [
|
|
12746
12753
|
N(y(t.$t("actions.clear")), 1)
|
|
12747
12754
|
]),
|
|
12748
12755
|
_: 1
|
|
@@ -12755,7 +12762,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12755
12762
|
type: "submit",
|
|
12756
12763
|
loading: a.saving
|
|
12757
12764
|
}, {
|
|
12758
|
-
default:
|
|
12765
|
+
default: x(() => [
|
|
12759
12766
|
N(y(t.$t("actions.save")), 1)
|
|
12760
12767
|
]),
|
|
12761
12768
|
_: 1
|
|
@@ -12949,7 +12956,7 @@ const ag = {
|
|
|
12949
12956
|
const l = ((r = a == null ? void 0 : a.properties) == null ? void 0 : r.color) || ((c = this.Theme.current.value.colors) == null ? void 0 : c["map-green"]);
|
|
12950
12957
|
if (((s = a.geometry) == null ? void 0 : s.type) === "Point") {
|
|
12951
12958
|
const [d, m] = a.geometry.coordinates;
|
|
12952
|
-
this.previewMarkers.push(new
|
|
12959
|
+
this.previewMarkers.push(new ve.Marker({ color: l }).setLngLat([d, m]).addTo(this.map));
|
|
12953
12960
|
}
|
|
12954
12961
|
a.properties.color || (a.properties.color = l);
|
|
12955
12962
|
}), this.map.getSource(e) ? this.map.getSource(e).setData(t) : this.map.addSource(e, { type: "geojson", data: t });
|
|
@@ -13014,9 +13021,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13014
13021
|
class: "idm-gl4-import-dialog-card",
|
|
13015
13022
|
elevation: "4"
|
|
13016
13023
|
}, {
|
|
13017
|
-
default:
|
|
13024
|
+
default: x(() => [
|
|
13018
13025
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13019
|
-
default:
|
|
13026
|
+
default: x(() => [
|
|
13020
13027
|
n("span", ig, y(t.$t("marker.importLayer")), 1),
|
|
13021
13028
|
w(r, {
|
|
13022
13029
|
icon: "",
|
|
@@ -13025,7 +13032,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13025
13032
|
class: "mr-n2",
|
|
13026
13033
|
onClick: l.handleClose
|
|
13027
13034
|
}, {
|
|
13028
|
-
default:
|
|
13035
|
+
default: x(() => e[9] || (e[9] = [
|
|
13029
13036
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13030
13037
|
])),
|
|
13031
13038
|
_: 1,
|
|
@@ -13041,9 +13048,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13041
13048
|
class: "form-box",
|
|
13042
13049
|
onSubmit: _e(l.handleConfirm, ["prevent"])
|
|
13043
13050
|
}, {
|
|
13044
|
-
default:
|
|
13051
|
+
default: x(() => [
|
|
13045
13052
|
w(p, { class: "px-4 text-body-1" }, {
|
|
13046
|
-
default:
|
|
13053
|
+
default: x(() => [
|
|
13047
13054
|
n("div", lg, [
|
|
13048
13055
|
n("div", rg, [
|
|
13049
13056
|
N(y(t.$t("marker.group")), 1),
|
|
@@ -13094,7 +13101,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13094
13101
|
color: "grey",
|
|
13095
13102
|
class: "mb-2"
|
|
13096
13103
|
}, {
|
|
13097
|
-
default:
|
|
13104
|
+
default: x(() => e[12] || (e[12] = [
|
|
13098
13105
|
N("mdi-cloud-upload-outline", -1)
|
|
13099
13106
|
])),
|
|
13100
13107
|
_: 1,
|
|
@@ -13119,7 +13126,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13119
13126
|
color: "success",
|
|
13120
13127
|
class: "mr-1"
|
|
13121
13128
|
}, {
|
|
13122
|
-
default:
|
|
13129
|
+
default: x(() => e[13] || (e[13] = [
|
|
13123
13130
|
N("mdi-check-circle", -1)
|
|
13124
13131
|
])),
|
|
13125
13132
|
_: 1,
|
|
@@ -13135,9 +13142,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13135
13142
|
class: "file-remove-btn",
|
|
13136
13143
|
onClick: l.handleRemoveFile
|
|
13137
13144
|
}, {
|
|
13138
|
-
default:
|
|
13145
|
+
default: x(() => [
|
|
13139
13146
|
w(m, { size: "16" }, {
|
|
13140
|
-
default:
|
|
13147
|
+
default: x(() => e[14] || (e[14] = [
|
|
13141
13148
|
N("mdi-close", -1)
|
|
13142
13149
|
])),
|
|
13143
13150
|
_: 1,
|
|
@@ -13152,14 +13159,14 @@ function yg(t, e, o, i, a, l) {
|
|
|
13152
13159
|
}),
|
|
13153
13160
|
w(s),
|
|
13154
13161
|
w(g, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
13155
|
-
default:
|
|
13162
|
+
default: x(() => [
|
|
13156
13163
|
w(r, {
|
|
13157
13164
|
class: "text-none text-body-1",
|
|
13158
13165
|
variant: "tonal",
|
|
13159
13166
|
density: "comfortable",
|
|
13160
13167
|
onClick: l.handleReset
|
|
13161
13168
|
}, {
|
|
13162
|
-
default:
|
|
13169
|
+
default: x(() => [
|
|
13163
13170
|
N(y(t.$t("actions.reset")), 1)
|
|
13164
13171
|
]),
|
|
13165
13172
|
_: 1
|
|
@@ -13172,7 +13179,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13172
13179
|
type: "submit",
|
|
13173
13180
|
loading: a.uploading
|
|
13174
13181
|
}, {
|
|
13175
|
-
default:
|
|
13182
|
+
default: x(() => [
|
|
13176
13183
|
N(y(t.$t("actions.confirm")), 1)
|
|
13177
13184
|
]),
|
|
13178
13185
|
_: 1
|
|
@@ -13247,7 +13254,7 @@ const wg = {
|
|
|
13247
13254
|
}));
|
|
13248
13255
|
}
|
|
13249
13256
|
}
|
|
13250
|
-
},
|
|
13257
|
+
}, xg = { class: "text-h6 font-weight-600" }, vg = { class: "text-label mb-2" };
|
|
13251
13258
|
function Ag(t, e, o, i, a, l) {
|
|
13252
13259
|
const r = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VTextField"), m = M("VCardText"), p = M("VCardActions"), g = M("VCard"), b = M("VDialog");
|
|
13253
13260
|
return A(), F(b, {
|
|
@@ -13256,15 +13263,15 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13256
13263
|
persistent: "",
|
|
13257
13264
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.$emit("update:modelValue", u))
|
|
13258
13265
|
}, {
|
|
13259
|
-
default:
|
|
13266
|
+
default: x(() => [
|
|
13260
13267
|
w(g, {
|
|
13261
13268
|
class: "",
|
|
13262
13269
|
elevation: "4"
|
|
13263
13270
|
}, {
|
|
13264
|
-
default:
|
|
13271
|
+
default: x(() => [
|
|
13265
13272
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13266
|
-
default:
|
|
13267
|
-
n("span",
|
|
13273
|
+
default: x(() => [
|
|
13274
|
+
n("span", xg, y(t.$t("actions.editGroup")), 1),
|
|
13268
13275
|
w(r, {
|
|
13269
13276
|
icon: "",
|
|
13270
13277
|
density: "compact",
|
|
@@ -13272,7 +13279,7 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13272
13279
|
class: "mr-n2",
|
|
13273
13280
|
onClick: l.handleClose
|
|
13274
13281
|
}, {
|
|
13275
|
-
default:
|
|
13282
|
+
default: x(() => e[2] || (e[2] = [
|
|
13276
13283
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13277
13284
|
])),
|
|
13278
13285
|
_: 1,
|
|
@@ -13283,8 +13290,8 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13283
13290
|
}),
|
|
13284
13291
|
w(s),
|
|
13285
13292
|
w(m, { class: "px-4 text-body-1" }, {
|
|
13286
|
-
default:
|
|
13287
|
-
n("div",
|
|
13293
|
+
default: x(() => [
|
|
13294
|
+
n("div", vg, [
|
|
13288
13295
|
N(y(t.$t("marker.groupName")), 1),
|
|
13289
13296
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
13290
13297
|
]),
|
|
@@ -13304,14 +13311,14 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13304
13311
|
}),
|
|
13305
13312
|
w(s),
|
|
13306
13313
|
w(p, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
13307
|
-
default:
|
|
13314
|
+
default: x(() => [
|
|
13308
13315
|
w(r, {
|
|
13309
13316
|
class: "text-none text-body-1",
|
|
13310
13317
|
variant: "tonal",
|
|
13311
13318
|
density: "comfortable",
|
|
13312
13319
|
onClick: l.handleClose
|
|
13313
13320
|
}, {
|
|
13314
|
-
default:
|
|
13321
|
+
default: x(() => [
|
|
13315
13322
|
N(y(t.$t("actions.cancel")), 1)
|
|
13316
13323
|
]),
|
|
13317
13324
|
_: 1
|
|
@@ -13324,7 +13331,7 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13324
13331
|
loading: a.saving,
|
|
13325
13332
|
onClick: l.handleConfirm
|
|
13326
13333
|
}, {
|
|
13327
|
-
default:
|
|
13334
|
+
default: x(() => [
|
|
13328
13335
|
N(y(t.$t("actions.confirm")), 1)
|
|
13329
13336
|
]),
|
|
13330
13337
|
_: 1
|
|
@@ -13380,11 +13387,11 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13380
13387
|
"min-width": "500",
|
|
13381
13388
|
"max-width": "500"
|
|
13382
13389
|
}, {
|
|
13383
|
-
default:
|
|
13390
|
+
default: x(() => [
|
|
13384
13391
|
w(p, { class: "" }, {
|
|
13385
|
-
default:
|
|
13392
|
+
default: x(() => [
|
|
13386
13393
|
w(s, { class: "text-h6 font-weight-600 d-flex justify-center align-center py-4" }, {
|
|
13387
|
-
default:
|
|
13394
|
+
default: x(() => [
|
|
13388
13395
|
w(r, {
|
|
13389
13396
|
color: "warning",
|
|
13390
13397
|
icon: "mdi-alert-circle",
|
|
@@ -13399,7 +13406,7 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13399
13406
|
class: "position-absolute top-0 right-0 mt-2 mr-2",
|
|
13400
13407
|
onClick: l.handleClose
|
|
13401
13408
|
}, {
|
|
13402
|
-
default:
|
|
13409
|
+
default: x(() => e[1] || (e[1] = [
|
|
13403
13410
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13404
13411
|
])),
|
|
13405
13412
|
_: 1,
|
|
@@ -13409,21 +13416,21 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13409
13416
|
_: 1
|
|
13410
13417
|
}),
|
|
13411
13418
|
w(d, { class: "py-4 text-center" }, {
|
|
13412
|
-
default:
|
|
13419
|
+
default: x(() => [
|
|
13413
13420
|
n("p", zg, y(o.tips), 1),
|
|
13414
13421
|
n("p", _g, y(t.$t("tips.doYouWantToContinue")), 1)
|
|
13415
13422
|
]),
|
|
13416
13423
|
_: 1
|
|
13417
13424
|
}),
|
|
13418
13425
|
w(m, { class: "w-100 d-flex justify-center align-center ga-8 py-6" }, {
|
|
13419
|
-
default:
|
|
13426
|
+
default: x(() => [
|
|
13420
13427
|
w(c, {
|
|
13421
13428
|
variant: "tonal",
|
|
13422
13429
|
class: "text-none text-body-1",
|
|
13423
13430
|
height: "32",
|
|
13424
13431
|
onClick: l.handleClose
|
|
13425
13432
|
}, {
|
|
13426
|
-
default:
|
|
13433
|
+
default: x(() => [
|
|
13427
13434
|
N(y(t.$t("actions.cancel")), 1)
|
|
13428
13435
|
]),
|
|
13429
13436
|
_: 1
|
|
@@ -13436,7 +13443,7 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13436
13443
|
height: "32",
|
|
13437
13444
|
onClick: l.handleDelete
|
|
13438
13445
|
}, {
|
|
13439
|
-
default:
|
|
13446
|
+
default: x(() => [
|
|
13440
13447
|
N(y(t.$t("actions.delete")), 1)
|
|
13441
13448
|
]),
|
|
13442
13449
|
_: 1
|
|
@@ -13660,29 +13667,29 @@ const Pg = {
|
|
|
13660
13667
|
var g, b, u, h;
|
|
13661
13668
|
const d = (g = s.geometry) == null ? void 0 : g.type, m = ((b = s.properties) == null ? void 0 : b.name) || "", p = ((u = s.properties) == null ? void 0 : u.color) || t.color || ((h = this.Theme.current.value.colors) == null ? void 0 : h["map-green"]);
|
|
13662
13669
|
if (d === "Point") {
|
|
13663
|
-
const [f, L] = s.geometry.coordinates,
|
|
13670
|
+
const [f, L] = s.geometry.coordinates, v = `<div style="font-size:12px;line-height:1.5;">
|
|
13664
13671
|
<div style="font-weight:600;">${m}</div>
|
|
13665
13672
|
<div>${H.lat2pretty(L, 4).pretty}, ${H.lng2pretty(f, 4).pretty}</div>
|
|
13666
|
-
</div>`, C = new
|
|
13673
|
+
</div>`, C = new ve.Popup({
|
|
13667
13674
|
offset: 40,
|
|
13668
13675
|
closeButton: !1,
|
|
13669
13676
|
closeOnClick: !1,
|
|
13670
13677
|
anchor: "bottom",
|
|
13671
13678
|
className: "marker-popup-dark"
|
|
13672
|
-
}).setHTML(
|
|
13679
|
+
}).setHTML(v), z = new ve.Marker({ color: p }).setLngLat([f, L]).addTo(this.map), P = z.getElement();
|
|
13673
13680
|
P.addEventListener("mouseenter", () => C.setLngLat([f, L]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(z);
|
|
13674
13681
|
} else
|
|
13675
13682
|
d === "MultiPoint" && s.geometry.coordinates.forEach(([f, L]) => {
|
|
13676
|
-
const
|
|
13683
|
+
const v = `<div style="font-size:12px;line-height:1.5;">
|
|
13677
13684
|
<div style="font-weight:600;">${m}</div>
|
|
13678
13685
|
<div>${H.lat2pretty(L, 4).pretty}, ${H.lng2pretty(f, 4).pretty}</div>
|
|
13679
|
-
</div>`, C = new
|
|
13686
|
+
</div>`, C = new ve.Popup({
|
|
13680
13687
|
offset: 40,
|
|
13681
13688
|
closeButton: !1,
|
|
13682
13689
|
closeOnClick: !1,
|
|
13683
13690
|
anchor: "bottom",
|
|
13684
13691
|
className: "marker-popup-dark"
|
|
13685
|
-
}).setHTML(
|
|
13692
|
+
}).setHTML(v), z = new ve.Marker({ color: p }).setLngLat([f, L]).addTo(this.map), P = z.getElement();
|
|
13686
13693
|
P.addEventListener("mouseenter", () => C.setLngLat([f, L]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(z);
|
|
13687
13694
|
});
|
|
13688
13695
|
}), this.layerMarkers[t.id] = c;
|
|
@@ -13836,7 +13843,7 @@ const Pg = {
|
|
|
13836
13843
|
};
|
|
13837
13844
|
function Kg(t, e, o, i, a, l) {
|
|
13838
13845
|
var D;
|
|
13839
|
-
const r = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), g = M("VChip"), b = M("VListItemTitle"), u = M("VListItem"), h = M("VList"), f = M("VCard"), L = M("VMenu"),
|
|
13846
|
+
const r = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), g = M("VChip"), b = M("VListItemTitle"), u = M("VListItem"), h = M("VList"), f = M("VCard"), L = M("VMenu"), v = M("VDivider"), C = M("IdmDrawMarker"), z = M("IdmImportMarker"), P = M("IdmGroupDialog"), _ = M("DeleteDialog");
|
|
13840
13847
|
return A(), R("div", Sg, [
|
|
13841
13848
|
n("div", {
|
|
13842
13849
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13850,7 +13857,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13850
13857
|
"open-on-focus": !o.simple,
|
|
13851
13858
|
"open-on-hover": !o.simple
|
|
13852
13859
|
}, {
|
|
13853
|
-
activator:
|
|
13860
|
+
activator: x(({ props: T }) => [
|
|
13854
13861
|
w(r, V(T, {
|
|
13855
13862
|
"min-width": "32",
|
|
13856
13863
|
width: "32",
|
|
@@ -13858,7 +13865,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13858
13865
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
13859
13866
|
onClick: l.handleMenuToggle
|
|
13860
13867
|
}), {
|
|
13861
|
-
default:
|
|
13868
|
+
default: x(() => e[7] || (e[7] = [
|
|
13862
13869
|
n("i", { class: "iconfont icon-compass text-h4" }, null, -1)
|
|
13863
13870
|
])),
|
|
13864
13871
|
_: 2,
|
|
@@ -13892,7 +13899,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13892
13899
|
variant: "text",
|
|
13893
13900
|
onClick: l.fetchAllLayers
|
|
13894
13901
|
}, {
|
|
13895
|
-
default:
|
|
13902
|
+
default: x(() => [
|
|
13896
13903
|
w(d, { icon: "mdi-refresh" })
|
|
13897
13904
|
]),
|
|
13898
13905
|
_: 1
|
|
@@ -13905,7 +13912,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13905
13912
|
variant: "plain",
|
|
13906
13913
|
onClick: l.handleMenuToggle
|
|
13907
13914
|
}, {
|
|
13908
|
-
default:
|
|
13915
|
+
default: x(() => e[8] || (e[8] = [
|
|
13909
13916
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13910
13917
|
])),
|
|
13911
13918
|
_: 1,
|
|
@@ -13924,7 +13931,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13924
13931
|
autocomplete: "off",
|
|
13925
13932
|
class: "input-btn-bg-1"
|
|
13926
13933
|
}, {
|
|
13927
|
-
"prepend-inner":
|
|
13934
|
+
"prepend-inner": x(() => [
|
|
13928
13935
|
(A(), R("svg", Gg, e[9] || (e[9] = [
|
|
13929
13936
|
n("use", { "xlink:href": "#icon-search" }, null, -1)
|
|
13930
13937
|
])))
|
|
@@ -13943,7 +13950,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13943
13950
|
"prepend-icon": "mdi-plus",
|
|
13944
13951
|
onClick: e[2] || (e[2] = (T) => l.handleOpenDrawMarkers())
|
|
13945
13952
|
}, {
|
|
13946
|
-
default:
|
|
13953
|
+
default: x(() => [
|
|
13947
13954
|
N(y(t.$t("actions.add")), 1)
|
|
13948
13955
|
]),
|
|
13949
13956
|
_: 1
|
|
@@ -13958,7 +13965,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13958
13965
|
"prepend-icon": "mdi-import",
|
|
13959
13966
|
onClick: l.handleOpenImportDialog
|
|
13960
13967
|
}, {
|
|
13961
|
-
default:
|
|
13968
|
+
default: x(() => [
|
|
13962
13969
|
N(y(t.$t("actions.import")), 1)
|
|
13963
13970
|
]),
|
|
13964
13971
|
_: 1
|
|
@@ -14007,7 +14014,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14007
14014
|
color: "primary",
|
|
14008
14015
|
onClick: (G) => T.show = !T.show
|
|
14009
14016
|
}, {
|
|
14010
|
-
default:
|
|
14017
|
+
default: x(() => {
|
|
14011
14018
|
var G;
|
|
14012
14019
|
return [
|
|
14013
14020
|
N(y((G = T.layers) == null ? void 0 : G.length), 1)
|
|
@@ -14027,18 +14034,18 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14027
14034
|
variant: "plain",
|
|
14028
14035
|
class: "mx-1"
|
|
14029
14036
|
}, {
|
|
14030
|
-
default:
|
|
14037
|
+
default: x(() => [
|
|
14031
14038
|
e[10] || (e[10] = n("i", { class: "iconfont icon-dots-vertical text-h4 cursor-pointer" }, null, -1)),
|
|
14032
14039
|
w(L, {
|
|
14033
14040
|
activator: "parent",
|
|
14034
14041
|
"min-width": "240",
|
|
14035
14042
|
class: "drop-menu"
|
|
14036
14043
|
}, {
|
|
14037
|
-
default:
|
|
14044
|
+
default: x(() => [
|
|
14038
14045
|
w(f, { class: "pa-2 px-0" }, {
|
|
14039
|
-
default:
|
|
14046
|
+
default: x(() => [
|
|
14040
14047
|
w(h, { class: "" }, {
|
|
14041
|
-
default:
|
|
14048
|
+
default: x(() => [
|
|
14042
14049
|
w(u, {
|
|
14043
14050
|
value: "account",
|
|
14044
14051
|
variant: "flat",
|
|
@@ -14046,12 +14053,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14046
14053
|
height: "38",
|
|
14047
14054
|
"min-height": "38"
|
|
14048
14055
|
}, {
|
|
14049
|
-
default:
|
|
14056
|
+
default: x(() => [
|
|
14050
14057
|
w(b, {
|
|
14051
14058
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14052
14059
|
onClick: (G) => l.handleOpenDrawMarkers(T)
|
|
14053
14060
|
}, {
|
|
14054
|
-
default:
|
|
14061
|
+
default: x(() => [
|
|
14055
14062
|
w(d, {
|
|
14056
14063
|
icon: "mdi-plus-circle-outline mr-4",
|
|
14057
14064
|
size: "16"
|
|
@@ -14070,12 +14077,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14070
14077
|
height: "38",
|
|
14071
14078
|
"min-height": "38"
|
|
14072
14079
|
}, {
|
|
14073
|
-
default:
|
|
14080
|
+
default: x(() => [
|
|
14074
14081
|
w(b, {
|
|
14075
14082
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14076
14083
|
onClick: (G) => l.handleEditGroup(T)
|
|
14077
14084
|
}, {
|
|
14078
|
-
default:
|
|
14085
|
+
default: x(() => [
|
|
14079
14086
|
w(d, {
|
|
14080
14087
|
icon: "mdi-pencil mr-4",
|
|
14081
14088
|
size: "16"
|
|
@@ -14094,12 +14101,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14094
14101
|
height: "38",
|
|
14095
14102
|
"min-height": "38"
|
|
14096
14103
|
}, {
|
|
14097
|
-
default:
|
|
14104
|
+
default: x(() => [
|
|
14098
14105
|
w(b, {
|
|
14099
14106
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14100
14107
|
onClick: (G) => l.handleOpenDelete("group", T)
|
|
14101
14108
|
}, {
|
|
14102
|
-
default:
|
|
14109
|
+
default: x(() => [
|
|
14103
14110
|
w(d, {
|
|
14104
14111
|
icon: "mdi-trash-can-outline mr-4",
|
|
14105
14112
|
size: "16"
|
|
@@ -14147,7 +14154,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14147
14154
|
variant: "text",
|
|
14148
14155
|
onClick: (ie) => l.handleEditLayer(T, G)
|
|
14149
14156
|
}, {
|
|
14150
|
-
default:
|
|
14157
|
+
default: x(() => [
|
|
14151
14158
|
w(d, {
|
|
14152
14159
|
icon: "mdi-pencil",
|
|
14153
14160
|
size: "16"
|
|
@@ -14162,7 +14169,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14162
14169
|
variant: "text",
|
|
14163
14170
|
onClick: (ie) => l.handleOpenDelete("layer", G)
|
|
14164
14171
|
}, {
|
|
14165
|
-
default:
|
|
14172
|
+
default: x(() => [
|
|
14166
14173
|
w(d, {
|
|
14167
14174
|
icon: "mdi-trash-can-outline",
|
|
14168
14175
|
size: "16"
|
|
@@ -14174,7 +14181,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14174
14181
|
], 2);
|
|
14175
14182
|
}), 128))
|
|
14176
14183
|
])) : I("", !0),
|
|
14177
|
-
B < a.layerGroup.length - 1 ? (A(), F(
|
|
14184
|
+
B < a.layerGroup.length - 1 ? (A(), F(v, {
|
|
14178
14185
|
key: 1,
|
|
14179
14186
|
class: "w-100",
|
|
14180
14187
|
thickness: "1"
|
|
@@ -14355,7 +14362,7 @@ async function so(t, e = {}) {
|
|
|
14355
14362
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1 };
|
|
14356
14363
|
if (o === "dataURL")
|
|
14357
14364
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1, mime: String(t).slice(5).split(";")[0] || "" };
|
|
14358
|
-
let [, f = "", L = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [],
|
|
14365
|
+
let [, f = "", L = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [], v = /;base64/i.test(f) ? atob(L) : decodeURIComponent(L), C = new Uint8Array([...v].map((P) => P.charCodeAt(0))), z = new Blob([C], { type: (f || "").split(";")[0] || "" });
|
|
14359
14366
|
return { ok: !0, data: z, status: 200, url: t, fromCache: !1, mime: z.type || "" };
|
|
14360
14367
|
} catch {
|
|
14361
14368
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "special_url_error" };
|
|
@@ -14365,8 +14372,8 @@ async function so(t, e = {}) {
|
|
|
14365
14372
|
let f = await fetch(t);
|
|
14366
14373
|
if (!f.ok)
|
|
14367
14374
|
return { ok: !1, data: null, status: f.status, url: t, fromCache: !1, reason: "http_error" };
|
|
14368
|
-
let L = await f.blob(),
|
|
14369
|
-
return o === "dataURL" ? { ok: !0, data: await gl(L), status: f.status, url: t, fromCache: !1, mime:
|
|
14375
|
+
let L = await f.blob(), v = L.type || f.headers.get("content-type") || "";
|
|
14376
|
+
return o === "dataURL" ? { ok: !0, data: await gl(L), status: f.status, url: t, fromCache: !1, mime: v } : o === "text" ? { ok: !0, data: await L.text(), status: f.status, url: t, fromCache: !1, mime: v } : { ok: !0, data: L, status: f.status, url: t, fromCache: !1, mime: v };
|
|
14370
14377
|
} catch {
|
|
14371
14378
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "network" };
|
|
14372
14379
|
}
|
|
@@ -14400,15 +14407,15 @@ async function so(t, e = {}) {
|
|
|
14400
14407
|
}
|
|
14401
14408
|
if (o === "text")
|
|
14402
14409
|
return { ok: !0, data: await f.text(), status: f.status, url: p, fromCache: !1 };
|
|
14403
|
-
let L = await f.blob(),
|
|
14404
|
-
return o === "dataURL" ? { ok: !0, data: await gl(L), status: f.status, url: p, fromCache: !1, mime:
|
|
14410
|
+
let L = await f.blob(), v = L.type || f.headers.get("content-type") || "";
|
|
14411
|
+
return o === "dataURL" ? { ok: !0, data: await gl(L), status: f.status, url: p, fromCache: !1, mime: v } : { ok: !0, data: L, status: f.status, url: p, fromCache: !1, mime: v };
|
|
14405
14412
|
} catch (f) {
|
|
14406
|
-
let L = f && typeof f == "object" && "name" in f && f.name === "AbortError" ? String(f.message || "").includes("timeout") ? "timeout" : "abort" : "network",
|
|
14407
|
-
if (!/^blob:/i.test(t) && l > 0 && Oo.set(s, { until: Date.now() + l, result:
|
|
14413
|
+
let L = f && typeof f == "object" && "name" in f && f.name === "AbortError" ? String(f.message || "").includes("timeout") ? "timeout" : "abort" : "network", v = { ok: !1, data: null, status: 0, url: p, fromCache: !1, reason: L };
|
|
14414
|
+
if (!/^blob:/i.test(t) && l > 0 && Oo.set(s, { until: Date.now() + l, result: v }), !c) {
|
|
14408
14415
|
let C = `${L}:${o}:${new URL(t, (location == null ? void 0 : location.href) ?? "http://localhost/").origin}`, z = L === "timeout" ? `Timeout after ${i}ms. Consider increasing timeout or using a proxy for ${t}` : L === "abort" ? `Request aborted while fetching ${o} ${t}` : `Network/CORS issue while fetching ${o} ${t}. A proxy may be required`;
|
|
14409
14416
|
pl.errorOnce(C, z);
|
|
14410
14417
|
}
|
|
14411
|
-
return e.onError && e.onError(
|
|
14418
|
+
return e.onError && e.onError(v), v;
|
|
14412
14419
|
} finally {
|
|
14413
14420
|
clearTimeout(u), ea.delete(s);
|
|
14414
14421
|
}
|
|
@@ -14571,7 +14578,7 @@ async function w0(t = "Material Icons", e = 24) {
|
|
|
14571
14578
|
} catch {
|
|
14572
14579
|
}
|
|
14573
14580
|
}
|
|
14574
|
-
function
|
|
14581
|
+
function x0(t) {
|
|
14575
14582
|
var a, l;
|
|
14576
14583
|
let e = ((a = t.getPropertyValue("-webkit-text-fill-color")) == null ? void 0 : a.trim()) || "", o = /^transparent$/i.test(e) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e);
|
|
14577
14584
|
if (e && !o && e.toLowerCase() !== "currentcolor")
|
|
@@ -14579,7 +14586,7 @@ function v0(t) {
|
|
|
14579
14586
|
let i = (l = t.color) == null ? void 0 : l.trim();
|
|
14580
14587
|
return i && i !== "inherit" ? i : "#000";
|
|
14581
14588
|
}
|
|
14582
|
-
async function
|
|
14589
|
+
async function v0(t, { family: e = "Material Icons", weight: o = "normal", fontSize: i = 32, color: a = "#000", variation: l = "", className: r = "" } = {}) {
|
|
14583
14590
|
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = y0(l), { familyForMeasure: m, familyForCanvas: p } = await b0(c, r, d);
|
|
14584
14591
|
await w0(p.replace(/^["']+|["']+$/g, ""), i);
|
|
14585
14592
|
let g = document.createElement("span");
|
|
@@ -14612,10 +14619,10 @@ async function A0(t, e) {
|
|
|
14612
14619
|
let p = (s || c).textContent.trim();
|
|
14613
14620
|
if (!p)
|
|
14614
14621
|
continue;
|
|
14615
|
-
let g = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u =
|
|
14622
|
+
let g = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u = x0(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: L, width: v, height: C } = await v0(p, { family: m, weight: b, fontSize: g, color: u, variation: h, className: f });
|
|
14616
14623
|
c.textContent = "";
|
|
14617
14624
|
let z = c.ownerDocument.createElement("img");
|
|
14618
|
-
z.src = L, z.alt = p, z.style.height = `${g}px`, z.style.width = `${Math.max(1, Math.round(
|
|
14625
|
+
z.src = L, z.alt = p, z.style.height = `${g}px`, z.style.width = `${Math.max(1, Math.round(v / C * g))}px`, z.style.objectFit = "contain", z.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(z), l++;
|
|
14619
14626
|
} catch {
|
|
14620
14627
|
}
|
|
14621
14628
|
}
|
|
@@ -14887,7 +14894,7 @@ function I0(t) {
|
|
|
14887
14894
|
return t;
|
|
14888
14895
|
let e = /@font-face[^{}]*\{[^}]*\}/gi, o = /* @__PURE__ */ new Set(), i = [];
|
|
14889
14896
|
for (let p of t.match(e) || []) {
|
|
14890
|
-
let g = ((l = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : l[1]) || "", b = $o(g), u = (((r = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "400").trim(), h = (((c = p.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : c[1]) || "normal").trim(), f = (((s = p.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : s[1]) || "100%").trim(), L = (((d = p.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : d[1]) || "").trim(),
|
|
14897
|
+
let g = ((l = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : l[1]) || "", b = $o(g), u = (((r = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "400").trim(), h = (((c = p.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : c[1]) || "normal").trim(), f = (((s = p.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : s[1]) || "100%").trim(), L = (((d = p.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : d[1]) || "").trim(), v = (((m = p.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : m[1]) || "").trim(), C = fa(v, location.href), z = C.length ? C.map((_) => String(_).toLowerCase()).sort().join("|") : v.toLowerCase(), P = [String(b || "").toLowerCase(), u, h, f, L.toLowerCase(), z].join("|");
|
|
14891
14898
|
o.has(P) || (o.add(P), i.push(p));
|
|
14892
14899
|
}
|
|
14893
14900
|
if (i.length === 0)
|
|
@@ -14951,7 +14958,7 @@ async function Ol(t, e, o, i) {
|
|
|
14951
14958
|
}
|
|
14952
14959
|
}
|
|
14953
14960
|
async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFonts: i = [], useProxy: a = "" } = {}) {
|
|
14954
|
-
var h, f, L,
|
|
14961
|
+
var h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be;
|
|
14955
14962
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
14956
14963
|
let l = /* @__PURE__ */ new Map();
|
|
14957
14964
|
for (let E of t) {
|
|
@@ -15034,7 +15041,7 @@ async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15034
15041
|
let Y = (((f = q.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), le = $o(Y);
|
|
15035
15042
|
if (!le || co(le))
|
|
15036
15043
|
continue;
|
|
15037
|
-
let Z = (((L = q.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "400").trim(), U = (((
|
|
15044
|
+
let Z = (((L = q.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "400").trim(), U = (((v = q.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "normal").trim(), fe = (((C = q.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : C[1]) || "100%").trim(), Le = (((z = q.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : z[1]) || "").trim(), ze = (((P = q.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : P[1]) || "").trim(), he = fa(ze, E.href);
|
|
15038
15045
|
if (!r(le, U, Z, fe))
|
|
15039
15046
|
continue;
|
|
15040
15047
|
let Ae = Wl(Le);
|
|
@@ -15101,7 +15108,7 @@ async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15101
15108
|
try {
|
|
15102
15109
|
let Z = await so(Y, { as: "dataURL", useProxy: a, silent: !0 });
|
|
15103
15110
|
if (Z.ok && typeof Z.data == "string")
|
|
15104
|
-
le = Z.data, (re = O.resource) == null || re.set(Y, le), (
|
|
15111
|
+
le = Z.data, (re = O.resource) == null || re.set(Y, le), (xe = O.font) == null || xe.add(Y);
|
|
15105
15112
|
else
|
|
15106
15113
|
continue;
|
|
15107
15114
|
} catch {
|
|
@@ -15207,8 +15214,8 @@ async function N0(t, e, o, i = {}) {
|
|
|
15207
15214
|
let f = p.getPropertyValue(h);
|
|
15208
15215
|
if (!f || f === "none")
|
|
15209
15216
|
continue;
|
|
15210
|
-
let L = Nl(f),
|
|
15211
|
-
|
|
15217
|
+
let L = Nl(f), v = await Promise.all(L.map((C) => Fl(C, i)));
|
|
15218
|
+
v.some((C) => C && C !== "none" && !/^url\(undefined/.test(C)) && m.style.setProperty(h, v.join(", "));
|
|
15212
15219
|
}
|
|
15213
15220
|
for (let h of r) {
|
|
15214
15221
|
let f = p.getPropertyValue(h);
|
|
@@ -15298,15 +15305,15 @@ function V0(t) {
|
|
|
15298
15305
|
function X0(t, e, o = !1) {
|
|
15299
15306
|
return !t || t.plugins && !o || (t.plugins = V0(e)), t;
|
|
15300
15307
|
}
|
|
15301
|
-
var
|
|
15308
|
+
var xl = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new Map(), na = 0;
|
|
15302
15309
|
function jo() {
|
|
15303
15310
|
na++;
|
|
15304
15311
|
}
|
|
15305
|
-
var
|
|
15312
|
+
var vl = !1;
|
|
15306
15313
|
function O0(t = document.documentElement) {
|
|
15307
15314
|
var e, o;
|
|
15308
|
-
if (!
|
|
15309
|
-
|
|
15315
|
+
if (!vl) {
|
|
15316
|
+
vl = !0;
|
|
15310
15317
|
try {
|
|
15311
15318
|
new MutationObserver(() => jo()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15312
15319
|
} catch {
|
|
@@ -15355,11 +15362,11 @@ function Y0(t) {
|
|
|
15355
15362
|
return e || (e = Object.entries(t).sort((o, i) => o[0] < i[0] ? -1 : o[0] > i[0] ? 1 : 0).map(([o, i]) => `${o}:${i}`).join(";"), Al.set(t, e), e);
|
|
15356
15363
|
}
|
|
15357
15364
|
function U0(t, e = null, o = {}) {
|
|
15358
|
-
let i =
|
|
15365
|
+
let i = xl.get(t);
|
|
15359
15366
|
if (i && i.epoch === na)
|
|
15360
15367
|
return i.snapshot;
|
|
15361
15368
|
let a = e || getComputedStyle(t), l = H0(a, o);
|
|
15362
|
-
return ef(t, a, l),
|
|
15369
|
+
return ef(t, a, l), xl.set(t, { epoch: na, snapshot: l }), l;
|
|
15363
15370
|
}
|
|
15364
15371
|
function J0(t, e) {
|
|
15365
15372
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: ra, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: e || {} } : { session: O.session, persist: { snapshotKeyCache: ra, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: t || e || {} };
|
|
@@ -15698,13 +15705,13 @@ async function Ll(t) {
|
|
|
15698
15705
|
function Ho(t) {
|
|
15699
15706
|
return typeof t == "string" && t.startsWith("blob:");
|
|
15700
15707
|
}
|
|
15701
|
-
function
|
|
15708
|
+
function xf(t) {
|
|
15702
15709
|
return (t || "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => {
|
|
15703
15710
|
let o = e.match(/^(\S+)(\s+.+)?$/);
|
|
15704
15711
|
return o ? { url: o[1], desc: o[2] || "" } : null;
|
|
15705
15712
|
}).filter(Boolean);
|
|
15706
15713
|
}
|
|
15707
|
-
function
|
|
15714
|
+
function vf(t) {
|
|
15708
15715
|
return t.map((e) => e.desc ? `${e.url} ${e.desc.trim()}` : e.url).join(", ");
|
|
15709
15716
|
}
|
|
15710
15717
|
async function Af(t) {
|
|
@@ -15721,14 +15728,14 @@ async function Af(t) {
|
|
|
15721
15728
|
}
|
|
15722
15729
|
let m = s.getAttribute("srcset");
|
|
15723
15730
|
if (m && m.includes("blob:")) {
|
|
15724
|
-
let p =
|
|
15731
|
+
let p = xf(m), g = !1;
|
|
15725
15732
|
for (let b of p)
|
|
15726
15733
|
if (Ho(b.url))
|
|
15727
15734
|
try {
|
|
15728
15735
|
b.url = await No(b.url), g = !0;
|
|
15729
15736
|
} catch {
|
|
15730
15737
|
}
|
|
15731
|
-
g && s.setAttribute("srcset",
|
|
15738
|
+
g && s.setAttribute("srcset", vf(p));
|
|
15732
15739
|
}
|
|
15733
15740
|
} catch {
|
|
15734
15741
|
}
|
|
@@ -15849,16 +15856,16 @@ async function Jo(t, e, o) {
|
|
|
15849
15856
|
L && L.getImageData(0, 0, 1, 1);
|
|
15850
15857
|
} catch {
|
|
15851
15858
|
}
|
|
15852
|
-
if (await new Promise((
|
|
15859
|
+
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15853
15860
|
try {
|
|
15854
15861
|
L && L.getImageData(0, 0, 1, 1);
|
|
15855
15862
|
} catch {
|
|
15856
15863
|
}
|
|
15857
|
-
if (await new Promise((
|
|
15858
|
-
let
|
|
15859
|
-
|
|
15860
|
-
let C =
|
|
15861
|
-
C && (C.drawImage(t, 0, 0), h =
|
|
15864
|
+
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15865
|
+
let v = document.createElement("canvas");
|
|
15866
|
+
v.width = t.width, v.height = t.height;
|
|
15867
|
+
let C = v.getContext("2d");
|
|
15868
|
+
C && (C.drawImage(t, 0, 0), h = v.toDataURL("image/png"));
|
|
15862
15869
|
}
|
|
15863
15870
|
}
|
|
15864
15871
|
} catch {
|
|
@@ -15883,7 +15890,7 @@ async function Jo(t, e, o) {
|
|
|
15883
15890
|
try {
|
|
15884
15891
|
let h = t.getBoundingClientRect(), f = Math.round(h.width || 0), L = Math.round(h.height || 0);
|
|
15885
15892
|
if (!f || !L) {
|
|
15886
|
-
let
|
|
15893
|
+
let v = window.getComputedStyle(t), C = parseFloat(v.width) || 0, z = parseFloat(v.height) || 0, P = parseInt(t.getAttribute("width") || "", 10) || 0, _ = parseInt(t.getAttribute("height") || "", 10) || 0, D = t.width || t.naturalWidth || 0, T = t.height || t.naturalHeight || 0;
|
|
15887
15894
|
f = Math.round(f || C || P || D || 0), L = Math.round(L || z || _ || T || 0);
|
|
15888
15895
|
}
|
|
15889
15896
|
f && (r.dataset.snapdomWidth = String(f)), L && (r.dataset.snapdomHeight = String(L));
|
|
@@ -15893,8 +15900,8 @@ async function Jo(t, e, o) {
|
|
|
15893
15900
|
let h = t.getAttribute("style") || "", f = window.getComputedStyle(t), L = (_) => {
|
|
15894
15901
|
let D = h.match(new RegExp(`${_}\\s*:\\s*([^;]+)`, "i")), T = D ? D[1].trim() : f.getPropertyValue(_);
|
|
15895
15902
|
return /%|auto/i.test(String(T || ""));
|
|
15896
|
-
},
|
|
15897
|
-
z &&
|
|
15903
|
+
}, v = parseInt(r.dataset.snapdomWidth || "0", 10), C = parseInt(r.dataset.snapdomHeight || "0", 10), z = L("width") || !v, P = L("height") || !C;
|
|
15904
|
+
z && v && (r.style.width = `${v}px`), P && C && (r.style.height = `${C}px`), v && (r.style.minWidth = `${v}px`), C && (r.style.minHeight = `${C}px`);
|
|
15898
15905
|
} catch {
|
|
15899
15906
|
}
|
|
15900
15907
|
}
|
|
@@ -15934,7 +15941,7 @@ async function Jo(t, e, o) {
|
|
|
15934
15941
|
r.setAttribute("data-sd", f);
|
|
15935
15942
|
} catch {
|
|
15936
15943
|
}
|
|
15937
|
-
let
|
|
15944
|
+
let v = sf(t.shadowRoot), C = rf(v, L), z = df(v), P = uf(t, z, L);
|
|
15938
15945
|
cf(r, P + C, f);
|
|
15939
15946
|
let _ = document.createDocumentFragment(), D = await ta(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15940
15947
|
_.append(...D.filter((T) => !!T)), r.appendChild(_);
|
|
@@ -15946,8 +15953,8 @@ async function Jo(t, e, o) {
|
|
|
15946
15953
|
}).catch(() => {
|
|
15947
15954
|
P(null);
|
|
15948
15955
|
});
|
|
15949
|
-
}, f = ((u = t.assignedNodes) == null ? void 0 : u.call(t, { flatten: !0 })) || [], L = f.length > 0 ? f : Array.from(t.childNodes),
|
|
15950
|
-
return
|
|
15956
|
+
}, f = ((u = t.assignedNodes) == null ? void 0 : u.call(t, { flatten: !0 })) || [], L = f.length > 0 ? f : Array.from(t.childNodes), v = document.createDocumentFragment(), C = await ta(Array.from(L), h, o.fast);
|
|
15957
|
+
return v.append(...C.filter((z) => !!z)), v;
|
|
15951
15958
|
}
|
|
15952
15959
|
function c(h, f) {
|
|
15953
15960
|
if (i.has(h))
|
|
@@ -16023,10 +16030,10 @@ function zf(t) {
|
|
|
16023
16030
|
b.set(u, h.slice());
|
|
16024
16031
|
return b;
|
|
16025
16032
|
}, s = (g, b, u) => {
|
|
16026
|
-
var
|
|
16033
|
+
var v, C;
|
|
16027
16034
|
let h = c(g), f;
|
|
16028
16035
|
try {
|
|
16029
|
-
f = ((
|
|
16036
|
+
f = ((v = u.style) == null ? void 0 : v.counterReset) || getComputedStyle(u).counterReset;
|
|
16030
16037
|
} catch {
|
|
16031
16038
|
}
|
|
16032
16039
|
if (f && f !== "none")
|
|
@@ -16204,7 +16211,7 @@ function Sl(t = document) {
|
|
|
16204
16211
|
}
|
|
16205
16212
|
return t.querySelector('[style*="counter("], [style*="counters("]') ? (yo.set(t, { fingerprint: e, result: !0 }), !0) : (yo.set(t, { fingerprint: e, result: !1 }), !1);
|
|
16206
16213
|
}
|
|
16207
|
-
var
|
|
16214
|
+
var xo = /* @__PURE__ */ new WeakMap(), Tl = -1;
|
|
16208
16215
|
function Mf(t) {
|
|
16209
16216
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
16210
16217
|
}
|
|
@@ -16217,7 +16224,7 @@ function Pf(t) {
|
|
|
16217
16224
|
return e.length ? e.join("") : Mf(t);
|
|
16218
16225
|
}
|
|
16219
16226
|
function ca(t, e) {
|
|
16220
|
-
let o = t.parentElement, i = o ?
|
|
16227
|
+
let o = t.parentElement, i = o ? xo.get(o) : null;
|
|
16221
16228
|
return i ? { get(a, l) {
|
|
16222
16229
|
let r = e.get(a, l), c = i.get(l);
|
|
16223
16230
|
return typeof c == "number" ? Math.max(r, c) : r;
|
|
@@ -16290,7 +16297,7 @@ async function Kl(t, e, o, i) {
|
|
|
16290
16297
|
if (!Cf(a, o))
|
|
16291
16298
|
return;
|
|
16292
16299
|
let l = ((d = O == null ? void 0 : O.session) == null ? void 0 : d.__counterEpoch) ?? 0;
|
|
16293
|
-
if (Tl !== l && (
|
|
16300
|
+
if (Tl !== l && (xo = /* @__PURE__ */ new WeakMap(), o && (o.__counterCtx = null), Tl = l), !o.__counterCtx)
|
|
16294
16301
|
try {
|
|
16295
16302
|
o.__counterCtx = zf(t.ownerDocument || document);
|
|
16296
16303
|
} catch {
|
|
@@ -16322,17 +16329,17 @@ async function Kl(t, e, o, i) {
|
|
|
16322
16329
|
e.replaceChild(he, Y), e.insertBefore(fe, he);
|
|
16323
16330
|
continue;
|
|
16324
16331
|
}
|
|
16325
|
-
let u = b.content ?? "", h = u === "" || u === "none" || u === "normal", { text: f, incs: L } = Sf(t, g, r),
|
|
16326
|
-
if (!(Q || ie || re ||
|
|
16332
|
+
let u = b.content ?? "", h = u === "" || u === "none" || u === "normal", { text: f, incs: L } = Sf(t, g, r), v = b.backgroundImage, C = b.backgroundColor, z = b.fontFamily, P = parseInt(b.fontSize) || 32, _ = parseInt(b.fontWeight) || !1, D = b.color || "#000", T = b.borderStyle, B = parseFloat(b.borderWidth), j = b.transform, G = co(z), Q = !h && f !== "", ie = v && v !== "none", re = C && C !== "transparent" && C !== "rgba(0, 0, 0, 0)", xe = T && T !== "none" && B > 0, be = j && j !== "none";
|
|
16333
|
+
if (!(Q || ie || re || xe || be)) {
|
|
16327
16334
|
if (L && L.length && t.parentElement) {
|
|
16328
|
-
let q =
|
|
16335
|
+
let q = xo.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
16329
16336
|
for (let { name: Y } of L) {
|
|
16330
16337
|
if (!Y)
|
|
16331
16338
|
continue;
|
|
16332
16339
|
let le = ca(t, r), Z = ma(t, getComputedStyle(t, g), le).get(t, Y);
|
|
16333
16340
|
q.set(Y, Z);
|
|
16334
16341
|
}
|
|
16335
|
-
|
|
16342
|
+
xo.set(t.parentElement, q);
|
|
16336
16343
|
}
|
|
16337
16344
|
continue;
|
|
16338
16345
|
}
|
|
@@ -16360,22 +16367,22 @@ async function Kl(t, e, o, i) {
|
|
|
16360
16367
|
}
|
|
16361
16368
|
if (ie)
|
|
16362
16369
|
try {
|
|
16363
|
-
let q = Nl(
|
|
16370
|
+
let q = Nl(v), Y = await Promise.all(q.map(Fl));
|
|
16364
16371
|
E.style.backgroundImage = Y.join(", ");
|
|
16365
16372
|
} catch (q) {
|
|
16366
16373
|
console.warn(`[snapdom] Failed to inline background-image for ${g}`, q);
|
|
16367
16374
|
}
|
|
16368
16375
|
re && (E.style.backgroundColor = C);
|
|
16369
|
-
let se = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || ie || re ||
|
|
16376
|
+
let se = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || ie || re || xe || be;
|
|
16370
16377
|
if (L && L.length && t.parentElement) {
|
|
16371
|
-
let q =
|
|
16378
|
+
let q = xo.get(t.parentElement) || /* @__PURE__ */ new Map(), Y = ca(t, r), le = ma(t, getComputedStyle(t, g), Y);
|
|
16372
16379
|
for (let { name: Z } of L) {
|
|
16373
16380
|
if (!Z)
|
|
16374
16381
|
continue;
|
|
16375
16382
|
let U = le.get(t, Z);
|
|
16376
16383
|
q.set(Z, U);
|
|
16377
16384
|
}
|
|
16378
|
-
|
|
16385
|
+
xo.set(t.parentElement, q);
|
|
16379
16386
|
}
|
|
16380
16387
|
if (!se)
|
|
16381
16388
|
continue;
|
|
@@ -16458,10 +16465,10 @@ function Tf(t, e) {
|
|
|
16458
16465
|
};
|
|
16459
16466
|
if (!p.size)
|
|
16460
16467
|
return;
|
|
16461
|
-
let
|
|
16462
|
-
for (;
|
|
16463
|
-
let _ =
|
|
16464
|
-
if (
|
|
16468
|
+
let v = new Set(p), C = /* @__PURE__ */ new Set();
|
|
16469
|
+
for (; v.size; ) {
|
|
16470
|
+
let _ = v.values().next().value;
|
|
16471
|
+
if (v.delete(_), !_ || m.has(_) || C.has(_))
|
|
16465
16472
|
continue;
|
|
16466
16473
|
let D = L(_);
|
|
16467
16474
|
if (!D) {
|
|
@@ -16476,13 +16483,13 @@ function Tf(t, e) {
|
|
|
16476
16483
|
let G = d(j);
|
|
16477
16484
|
if (G && G.startsWith("#")) {
|
|
16478
16485
|
let ie = G.slice(1).trim();
|
|
16479
|
-
ie && !m.has(ie) && !C.has(ie) &&
|
|
16486
|
+
ie && !m.has(ie) && !C.has(ie) && v.add(ie);
|
|
16480
16487
|
}
|
|
16481
16488
|
let Q = ((z = j.getAttribute) == null ? void 0 : z.call(j, "style")) || "";
|
|
16482
|
-
Q && b(Q,
|
|
16489
|
+
Q && b(Q, v);
|
|
16483
16490
|
for (let ie of r) {
|
|
16484
16491
|
let re = (P = j.getAttribute) == null ? void 0 : P.call(j, ie);
|
|
16485
|
-
re && b(re,
|
|
16492
|
+
re && b(re, v);
|
|
16486
16493
|
}
|
|
16487
16494
|
}
|
|
16488
16495
|
}
|
|
@@ -16506,14 +16513,14 @@ function Rf(t, e) {
|
|
|
16506
16513
|
let b = Df(s, t), u = If(e, b, l);
|
|
16507
16514
|
if (!u)
|
|
16508
16515
|
continue;
|
|
16509
|
-
let h = s.getBoundingClientRect(), f = h.width, L = h.height,
|
|
16510
|
-
if (!(f > 0 && L > 0) || !Number.isFinite(
|
|
16516
|
+
let h = s.getBoundingClientRect(), f = h.width, L = h.height, v = h.left - i.left;
|
|
16517
|
+
if (!(f > 0 && L > 0) || !Number.isFinite(v))
|
|
16511
16518
|
continue;
|
|
16512
16519
|
let C = p != null ? p + o : o + (a - L - g);
|
|
16513
16520
|
if (!Number.isFinite(C))
|
|
16514
16521
|
continue;
|
|
16515
16522
|
let z = Number.parseInt(d.zIndex, 10), P = Number.isFinite(z), _ = P ? Math.max(z, 1) + 1 : 2, D = P ? z - 1 : 0, T = u.cloneNode(!1);
|
|
16516
|
-
T.setAttribute(l, "1"), T.style.position = "sticky", T.style.left = `${
|
|
16523
|
+
T.setAttribute(l, "1"), T.style.position = "sticky", T.style.left = `${v}px`, T.style.top = `${C}px`, T.style.width = `${f}px`, T.style.height = `${L}px`, T.style.visibility = "hidden", T.style.zIndex = String(D), T.style.overflow = "hidden", T.style.background = "transparent", T.style.boxShadow = "none", T.style.filter = "none", (c = u.parentElement) == null || c.insertBefore(T, u), u.style.position = "absolute", u.style.left = `${v}px`, u.style.top = `${C}px`, u.style.bottom = "auto", u.style.zIndex = String(_), u.style.pointerEvents = "none";
|
|
16517
16524
|
}
|
|
16518
16525
|
}
|
|
16519
16526
|
function Rl(t) {
|
|
@@ -16883,12 +16890,12 @@ function r1(t, e) {
|
|
|
16883
16890
|
if (l.length === 6 && l.every(Number.isFinite)) {
|
|
16884
16891
|
let [r, c, s, d] = l, m = Math.sqrt(r * r + c * c) || 0, p = 0, g = 0, b = 0, u = 0, h = 0, f = 0;
|
|
16885
16892
|
m > 0 && (p = r / m, g = c / m, b = p * s + g * d, u = s - p * b, h = d - g * b, f = Math.sqrt(u * u + h * h) || 0, f > 0 ? b = b / f : b = 0);
|
|
16886
|
-
let L = m,
|
|
16893
|
+
let L = m, v = 0, C = b * f, z = f;
|
|
16887
16894
|
try {
|
|
16888
|
-
e.style.transform = `matrix(${L}, ${
|
|
16895
|
+
e.style.transform = `matrix(${L}, ${v}, ${C}, ${z}, 0, 0)`;
|
|
16889
16896
|
} catch {
|
|
16890
16897
|
}
|
|
16891
|
-
return { a: L, b:
|
|
16898
|
+
return { a: L, b: v, c: C, d: z };
|
|
16892
16899
|
}
|
|
16893
16900
|
}
|
|
16894
16901
|
try {
|
|
@@ -16900,13 +16907,13 @@ function r1(t, e) {
|
|
|
16900
16907
|
}
|
|
16901
16908
|
function Dl(t, e, o, i, a) {
|
|
16902
16909
|
let l = o.a, r = o.b, c = o.c, s = o.d, d = o.e || 0, m = o.f || 0;
|
|
16903
|
-
function p(L,
|
|
16904
|
-
let C = L - i, z =
|
|
16910
|
+
function p(L, v) {
|
|
16911
|
+
let C = L - i, z = v - a, P = l * C + c * z, _ = r * C + s * z;
|
|
16905
16912
|
return P += i + d, _ += a + m, [P, _];
|
|
16906
16913
|
}
|
|
16907
16914
|
let g = [p(0, 0), p(t, 0), p(0, e), p(t, e)], b = 1 / 0, u = 1 / 0, h = -1 / 0, f = -1 / 0;
|
|
16908
|
-
for (let [L,
|
|
16909
|
-
L < b && (b = L),
|
|
16915
|
+
for (let [L, v] of g)
|
|
16916
|
+
L < b && (b = L), v < u && (u = v), L > h && (h = L), v > f && (f = v);
|
|
16910
16917
|
return { minX: b, minY: u, maxX: h, maxY: f, width: h - b, height: f - u };
|
|
16911
16918
|
}
|
|
16912
16919
|
function n1(t, e, o) {
|
|
@@ -16947,8 +16954,8 @@ function s1(t) {
|
|
|
16947
16954
|
}
|
|
16948
16955
|
let h = g("translate");
|
|
16949
16956
|
if (h) {
|
|
16950
|
-
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, L = "y" in h && "value" in h.y ? h.y.value : Array.isArray(h) ? (d = h[1]) == null ? void 0 : d.value : 0,
|
|
16951
|
-
e.translate = `${f}${
|
|
16957
|
+
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, L = "y" in h && "value" in h.y ? h.y.value : Array.isArray(h) ? (d = h[1]) == null ? void 0 : d.value : 0, v = "x" in h && ((m = h.x) != null && m.unit) ? h.x.unit : "px", C = "y" in h && ((p = h.y) != null && p.unit) ? h.y.unit : "px";
|
|
16958
|
+
e.translate = `${f}${v} ${L}${C}`;
|
|
16952
16959
|
} else {
|
|
16953
16960
|
let f = getComputedStyle(t);
|
|
16954
16961
|
e.translate = f.translate && f.translate !== "none" ? f.translate : null;
|
|
@@ -16989,7 +16996,7 @@ function Ql(t) {
|
|
|
16989
16996
|
}
|
|
16990
16997
|
}
|
|
16991
16998
|
async function ql(t, e) {
|
|
16992
|
-
var
|
|
16999
|
+
var v;
|
|
16993
17000
|
if (!t)
|
|
16994
17001
|
throw new Error("Element cannot be null or undefined");
|
|
16995
17002
|
qg(e.cache);
|
|
@@ -17001,7 +17008,7 @@ async function ql(t, e) {
|
|
|
17001
17008
|
} finally {
|
|
17002
17009
|
u();
|
|
17003
17010
|
}
|
|
17004
|
-
if (l = { clone: r, classCSS: c, styleCache: s, ...l }, await ho("afterClone", l), Uf(l.clone), ((
|
|
17011
|
+
if (l = { clone: r, classCSS: c, styleCache: s, ...l }, await ho("afterClone", l), Uf(l.clone), ((v = l.options) == null ? void 0 : v.excludeMode) === "remove")
|
|
17005
17012
|
try {
|
|
17006
17013
|
qf(l.element, l.clone, l.styleCache);
|
|
17007
17014
|
} catch (C) {
|
|
@@ -17045,8 +17052,8 @@ async function ql(t, e) {
|
|
|
17045
17052
|
let T = (Te, Re = NaN) => {
|
|
17046
17053
|
let Ne = typeof Te == "string" ? parseFloat(Te) : Te;
|
|
17047
17054
|
return Number.isFinite(Ne) ? Ne : Re;
|
|
17048
|
-
}, B = T(l.options.width), j = T(l.options.height), G = _, Q = D, ie = Number.isFinite(B), re = Number.isFinite(j),
|
|
17049
|
-
ie && re ? (G = Math.max(1, me(B)), Q = Math.max(1, me(j))) : ie ? (G = Math.max(1, me(B)), Q = Math.max(1, me(G / (
|
|
17055
|
+
}, B = T(l.options.width), j = T(l.options.height), G = _, Q = D, ie = Number.isFinite(B), re = Number.isFinite(j), xe = D > 0 ? _ / D : 1;
|
|
17056
|
+
ie && re ? (G = Math.max(1, me(B)), Q = Math.max(1, me(j))) : ie ? (G = Math.max(1, me(B)), Q = Math.max(1, me(G / (xe || 1)))) : re ? (Q = Math.max(1, me(j)), G = Math.max(1, me(Q * (xe || 1)))) : (G = _, Q = D);
|
|
17050
17057
|
let be = 0, E = 0, $ = _, te = D;
|
|
17051
17058
|
if (!i && b && Number.isFinite(b.a)) {
|
|
17052
17059
|
let Te = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, Re = Dl(_, D, Te, 0, 0);
|
|
@@ -17109,52 +17116,52 @@ Se.capture = async (t, e, o) => {
|
|
|
17109
17116
|
if (o !== $l)
|
|
17110
17117
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17111
17118
|
let i = await ql(t, e), a = { img: async (u, h) => {
|
|
17112
|
-
let { toImg: f } = await import("./toImg-
|
|
17119
|
+
let { toImg: f } = await import("./toImg-0ca56397.js");
|
|
17113
17120
|
return f(i, { ...u, ...h || {} });
|
|
17114
17121
|
}, svg: async (u, h) => {
|
|
17115
|
-
let { toSvg: f } = await import("./toImg-
|
|
17122
|
+
let { toSvg: f } = await import("./toImg-0ca56397.js");
|
|
17116
17123
|
return f(i, { ...u, ...h || {} });
|
|
17117
17124
|
}, canvas: async (u, h) => {
|
|
17118
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17125
|
+
let { toCanvas: f } = await import("./toCanvas-98141454.js");
|
|
17119
17126
|
return f(i, { ...u, ...h || {} });
|
|
17120
17127
|
}, blob: async (u, h) => {
|
|
17121
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17128
|
+
let { toBlob: f } = await import("./toBlob-ad6cc35a.js");
|
|
17122
17129
|
return f(i, { ...u, ...h || {} });
|
|
17123
17130
|
}, png: async (u, h) => {
|
|
17124
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17131
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17125
17132
|
return f(i, { ...u, ...h || {}, format: "png" });
|
|
17126
17133
|
}, jpeg: async (u, h) => {
|
|
17127
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17134
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17128
17135
|
return f(i, { ...u, ...h || {}, format: "jpeg" });
|
|
17129
17136
|
}, webp: async (u, h) => {
|
|
17130
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17137
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17131
17138
|
return f(i, { ...u, ...h || {}, format: "webp" });
|
|
17132
17139
|
}, download: async (u, h) => {
|
|
17133
|
-
let { download: f } = await import("./download-
|
|
17140
|
+
let { download: f } = await import("./download-4477d123.js");
|
|
17134
17141
|
return f(i, { ...u, ...h || {} });
|
|
17135
17142
|
} }, l = { ...e, export: { url: i }, exports: { svg: async (u) => {
|
|
17136
|
-
let { toSvg: h } = await import("./toImg-
|
|
17143
|
+
let { toSvg: h } = await import("./toImg-0ca56397.js");
|
|
17137
17144
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17138
17145
|
}, canvas: async (u) => {
|
|
17139
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17146
|
+
let { toCanvas: h } = await import("./toCanvas-98141454.js");
|
|
17140
17147
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17141
17148
|
}, png: async (u) => {
|
|
17142
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17149
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17143
17150
|
return h(i, { ...e, ...u || {}, format: "png", [mo]: !0 });
|
|
17144
17151
|
}, jpeg: async (u) => {
|
|
17145
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17152
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17146
17153
|
return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
|
|
17147
17154
|
}, jpg: async (u) => {
|
|
17148
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17155
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17149
17156
|
return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
|
|
17150
17157
|
}, webp: async (u) => {
|
|
17151
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17158
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
|
|
17152
17159
|
return h(i, { ...e, ...u || {}, format: "webp", [mo]: !0 });
|
|
17153
17160
|
}, blob: async (u) => {
|
|
17154
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17161
|
+
let { toBlob: h } = await import("./toBlob-ad6cc35a.js");
|
|
17155
17162
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17156
17163
|
}, img: async (u) => {
|
|
17157
|
-
let { toImg: h } = await import("./toImg-
|
|
17164
|
+
let { toImg: h } = await import("./toImg-0ca56397.js");
|
|
17158
17165
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17159
17166
|
} } }, r = await W0("defineExports", l), c = Object.assign({}, ...r.filter((u) => u && typeof u == "object")), s = { ...a, ...c };
|
|
17160
17167
|
s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
|
|
@@ -17168,9 +17175,9 @@ Se.capture = async (t, e, o) => {
|
|
|
17168
17175
|
let L = s[u];
|
|
17169
17176
|
if (!L)
|
|
17170
17177
|
throw new Error(`[snapdom] Unknown export type: ${u}`);
|
|
17171
|
-
let
|
|
17178
|
+
let v = d(u, h), C = { ...e, export: { type: u, options: v, url: i } };
|
|
17172
17179
|
await ho("beforeExport", C);
|
|
17173
|
-
let z = await L(C,
|
|
17180
|
+
let z = await L(C, v);
|
|
17174
17181
|
return await ho("afterExport", C, z), m || (m = !0, await ho("afterSnap", e)), z;
|
|
17175
17182
|
};
|
|
17176
17183
|
return p = p.then(f);
|
|
@@ -17345,8 +17352,8 @@ class w1 {
|
|
|
17345
17352
|
);
|
|
17346
17353
|
const s = o, d = Math.max(this.captureRect.width / 48, this.captureRect.height / 48), m = 8, p = 12;
|
|
17347
17354
|
this.ctx.font = `bold ${d}px Arial, sans-serif`, this.ctx.textAlign = "center", this.ctx.textBaseline = "top";
|
|
17348
|
-
const b = this.ctx.measureText(s).width, u = d, h = (this.captureRect.width - b) / 2 - m * 2, f = p, L = b + m * 4,
|
|
17349
|
-
if (this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(h, f, L,
|
|
17355
|
+
const b = this.ctx.measureText(s).width, u = d, h = (this.captureRect.width - b) / 2 - m * 2, f = p, L = b + m * 4, v = u + m * 2;
|
|
17356
|
+
if (this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(h, f, L, v, 16), this.ctx.fill(), this.ctx.fillStyle = "#ffffff", this.ctx.fillText(s, this.captureRect.width / 2, p + m), this.logoImage && this.logoLoaded) {
|
|
17350
17357
|
const P = Math.max(this.captureRect.height / 8, 40), _ = this.logoImage.naturalWidth / this.logoImage.naturalHeight;
|
|
17351
17358
|
let D = P, T = D * _;
|
|
17352
17359
|
const B = this.captureRect.width / 4;
|
|
@@ -17481,7 +17488,7 @@ class w1 {
|
|
|
17481
17488
|
return this._frameDelay;
|
|
17482
17489
|
}
|
|
17483
17490
|
}
|
|
17484
|
-
const
|
|
17491
|
+
const x1 = {
|
|
17485
17492
|
name: "IdmCapture",
|
|
17486
17493
|
props: {
|
|
17487
17494
|
isPlaying: {
|
|
@@ -17654,7 +17661,7 @@ const v1 = {
|
|
|
17654
17661
|
this.recorder.downloadMp4(this.mp4Blob, e);
|
|
17655
17662
|
}
|
|
17656
17663
|
}
|
|
17657
|
-
},
|
|
17664
|
+
}, v1 = {
|
|
17658
17665
|
key: 0,
|
|
17659
17666
|
class: "drag-tips text-h4"
|
|
17660
17667
|
}, A1 = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, k1 = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, L1 = { class: "text-body-2" }, z1 = {
|
|
@@ -17677,7 +17684,7 @@ function P1(t, e, o, i, a, l) {
|
|
|
17677
17684
|
onMousemove: e[3] || (e[3] = (...c) => l.handleMouseMove && l.handleMouseMove(...c)),
|
|
17678
17685
|
onMouseup: e[4] || (e[4] = (...c) => l.handleMouseUp && l.handleMouseUp(...c))
|
|
17679
17686
|
}, [
|
|
17680
|
-
a.actionStatus === 1 ? (A(), R("div",
|
|
17687
|
+
a.actionStatus === 1 ? (A(), R("div", v1, y(t.$t("tips.crossHairText")), 1)) : I("", !0),
|
|
17681
17688
|
a.actionStatus >= 2 ? (A(), R("div", {
|
|
17682
17689
|
key: 1,
|
|
17683
17690
|
class: "selection-box",
|
|
@@ -17736,7 +17743,7 @@ function P1(t, e, o, i, a, l) {
|
|
|
17736
17743
|
], 6)) : I("", !0)
|
|
17737
17744
|
], 32);
|
|
17738
17745
|
}
|
|
17739
|
-
const er = /* @__PURE__ */ ne(
|
|
17746
|
+
const er = /* @__PURE__ */ ne(x1, [["render", P1], ["__scopeId", "data-v-0eb7ef02"]]);
|
|
17740
17747
|
const S1 = {
|
|
17741
17748
|
name: "IdmBottomBar",
|
|
17742
17749
|
components: { DateTimePicker: Xo, IdmCapture: er },
|
|
@@ -17917,12 +17924,12 @@ function N1(t, e, o, i, a, l) {
|
|
|
17917
17924
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
17918
17925
|
"min-width": "30"
|
|
17919
17926
|
}, {
|
|
17920
|
-
default:
|
|
17927
|
+
default: x(() => [
|
|
17921
17928
|
N(y(a.intervalHour) + " h ", 1),
|
|
17922
17929
|
w(p, { activator: "parent" }, {
|
|
17923
|
-
default:
|
|
17930
|
+
default: x(() => [
|
|
17924
17931
|
w(m, { class: "pa-1" }, {
|
|
17925
|
-
default:
|
|
17932
|
+
default: x(() => [
|
|
17926
17933
|
(A(!0), R(Ce, null, Me(a.intervalOptions, (h, f) => (A(), F(d, {
|
|
17927
17934
|
key: f,
|
|
17928
17935
|
value: h,
|
|
@@ -17935,11 +17942,11 @@ function N1(t, e, o, i, a, l) {
|
|
|
17935
17942
|
"min-width": "30",
|
|
17936
17943
|
class: "pa-0 text-center text-body-1"
|
|
17937
17944
|
}, {
|
|
17938
|
-
default:
|
|
17945
|
+
default: x(() => [
|
|
17939
17946
|
w(s, {
|
|
17940
17947
|
onClick: (L) => a.intervalHour = h
|
|
17941
17948
|
}, {
|
|
17942
|
-
default:
|
|
17949
|
+
default: x(() => [
|
|
17943
17950
|
N(y(h) + "h", 1)
|
|
17944
17951
|
]),
|
|
17945
17952
|
_: 2
|
|
@@ -17969,7 +17976,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17969
17976
|
interactive: !0,
|
|
17970
17977
|
"open-on-click": !1
|
|
17971
17978
|
}, {
|
|
17972
|
-
activator:
|
|
17979
|
+
activator: x(({ props: h }) => [
|
|
17973
17980
|
a.gifEnabled ? (A(), F(g, V({
|
|
17974
17981
|
key: 1,
|
|
17975
17982
|
disabled: a.frameCount < 1
|
|
@@ -17980,7 +17987,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17980
17987
|
variant: "text",
|
|
17981
17988
|
onClick: e[7] || (e[7] = (f) => a.gifEnabled = !a.gifEnabled)
|
|
17982
17989
|
}), {
|
|
17983
|
-
default:
|
|
17990
|
+
default: x(() => e[15] || (e[15] = [
|
|
17984
17991
|
n("i", { class: "iconfont icon-stop-record text-danger" }, null, -1)
|
|
17985
17992
|
])),
|
|
17986
17993
|
_: 2,
|
|
@@ -17992,7 +17999,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17992
17999
|
variant: "text",
|
|
17993
18000
|
onClick: e[6] || (e[6] = (f) => a.gifEnabled = !a.gifEnabled)
|
|
17994
18001
|
}), {
|
|
17995
|
-
default:
|
|
18002
|
+
default: x(() => e[14] || (e[14] = [
|
|
17996
18003
|
n("i", { class: "iconfont icon-record" }, null, -1)
|
|
17997
18004
|
])),
|
|
17998
18005
|
_: 2,
|
|
@@ -18007,7 +18014,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18007
18014
|
interactive: !0,
|
|
18008
18015
|
"open-on-click": !1
|
|
18009
18016
|
}, {
|
|
18010
|
-
activator:
|
|
18017
|
+
activator: x(({ props: h }) => [
|
|
18011
18018
|
w(g, V(h, {
|
|
18012
18019
|
icon: "",
|
|
18013
18020
|
size: "small",
|
|
@@ -18015,7 +18022,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18015
18022
|
variant: "text",
|
|
18016
18023
|
onClick: l.handleReset
|
|
18017
18024
|
}), {
|
|
18018
|
-
default:
|
|
18025
|
+
default: x(() => e[16] || (e[16] = [
|
|
18019
18026
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18020
18027
|
])),
|
|
18021
18028
|
_: 2,
|
|
@@ -18030,7 +18037,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18030
18037
|
interactive: !0,
|
|
18031
18038
|
"open-on-click": !1
|
|
18032
18039
|
}, {
|
|
18033
|
-
activator:
|
|
18040
|
+
activator: x(({ props: h }) => [
|
|
18034
18041
|
w(g, V(h, {
|
|
18035
18042
|
icon: "",
|
|
18036
18043
|
size: "small",
|
|
@@ -18038,7 +18045,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18038
18045
|
variant: "text",
|
|
18039
18046
|
onClick: l.handleBackward
|
|
18040
18047
|
}), {
|
|
18041
|
-
default:
|
|
18048
|
+
default: x(() => e[17] || (e[17] = [
|
|
18042
18049
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18043
18050
|
])),
|
|
18044
18051
|
_: 2,
|
|
@@ -18053,7 +18060,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18053
18060
|
interactive: !0,
|
|
18054
18061
|
"open-on-click": !1
|
|
18055
18062
|
}, {
|
|
18056
|
-
activator:
|
|
18063
|
+
activator: x(({ props: h }) => [
|
|
18057
18064
|
a.paused ? (A(), F(g, V({ key: 0 }, h, {
|
|
18058
18065
|
icon: "",
|
|
18059
18066
|
size: "small",
|
|
@@ -18061,7 +18068,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18061
18068
|
variant: "text",
|
|
18062
18069
|
onClick: l.handlePlay
|
|
18063
18070
|
}), {
|
|
18064
|
-
default:
|
|
18071
|
+
default: x(() => e[18] || (e[18] = [
|
|
18065
18072
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18066
18073
|
])),
|
|
18067
18074
|
_: 2,
|
|
@@ -18076,7 +18083,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18076
18083
|
interactive: !0,
|
|
18077
18084
|
"open-on-click": !1
|
|
18078
18085
|
}, {
|
|
18079
|
-
activator:
|
|
18086
|
+
activator: x(({ props: h }) => [
|
|
18080
18087
|
a.paused ? I("", !0) : (A(), F(g, V({ key: 0 }, h, {
|
|
18081
18088
|
icon: "",
|
|
18082
18089
|
size: "small",
|
|
@@ -18084,7 +18091,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18084
18091
|
variant: "text",
|
|
18085
18092
|
onClick: l.handlePause
|
|
18086
18093
|
}), {
|
|
18087
|
-
default:
|
|
18094
|
+
default: x(() => e[19] || (e[19] = [
|
|
18088
18095
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18089
18096
|
])),
|
|
18090
18097
|
_: 2,
|
|
@@ -18099,7 +18106,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18099
18106
|
interactive: !0,
|
|
18100
18107
|
"open-on-click": !1
|
|
18101
18108
|
}, {
|
|
18102
|
-
activator:
|
|
18109
|
+
activator: x(({ props: h }) => [
|
|
18103
18110
|
w(g, V(h, {
|
|
18104
18111
|
icon: "",
|
|
18105
18112
|
size: "small",
|
|
@@ -18107,7 +18114,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18107
18114
|
variant: "text",
|
|
18108
18115
|
onClick: l.handleForward
|
|
18109
18116
|
}), {
|
|
18110
|
-
default:
|
|
18117
|
+
default: x(() => e[20] || (e[20] = [
|
|
18111
18118
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18112
18119
|
])),
|
|
18113
18120
|
_: 2,
|
|
@@ -18127,7 +18134,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18127
18134
|
text: t.$t("weather.windBarbs"),
|
|
18128
18135
|
location: "top"
|
|
18129
18136
|
}, {
|
|
18130
|
-
activator:
|
|
18137
|
+
activator: x(({ props: h }) => {
|
|
18131
18138
|
var f, L;
|
|
18132
18139
|
return [
|
|
18133
18140
|
w(g, V(h, {
|
|
@@ -18137,9 +18144,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18137
18144
|
height: "24",
|
|
18138
18145
|
width: "24",
|
|
18139
18146
|
"min-width": "24",
|
|
18140
|
-
onClick: e[8] || (e[8] = (
|
|
18147
|
+
onClick: e[8] || (e[8] = (v) => l.handleClickFastWeather("wind"))
|
|
18141
18148
|
}), {
|
|
18142
|
-
default:
|
|
18149
|
+
default: x(() => e[21] || (e[21] = [
|
|
18143
18150
|
n("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
18144
18151
|
])),
|
|
18145
18152
|
_: 2,
|
|
@@ -18153,7 +18160,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18153
18160
|
text: t.$t("weather.sigWaveHeight"),
|
|
18154
18161
|
location: "top"
|
|
18155
18162
|
}, {
|
|
18156
|
-
activator:
|
|
18163
|
+
activator: x(({ props: h }) => {
|
|
18157
18164
|
var f, L;
|
|
18158
18165
|
return [
|
|
18159
18166
|
w(g, V(h, {
|
|
@@ -18163,9 +18170,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18163
18170
|
height: "24",
|
|
18164
18171
|
width: "24",
|
|
18165
18172
|
"min-width": "24",
|
|
18166
|
-
onClick: e[9] || (e[9] = (
|
|
18173
|
+
onClick: e[9] || (e[9] = (v) => l.handleClickFastWeather("sig-wave-height"))
|
|
18167
18174
|
}), {
|
|
18168
|
-
default:
|
|
18175
|
+
default: x(() => [
|
|
18169
18176
|
n("i", V(h, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
18170
18177
|
]),
|
|
18171
18178
|
_: 2
|
|
@@ -18178,7 +18185,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18178
18185
|
text: t.$t("weather.currentDirection"),
|
|
18179
18186
|
location: "top"
|
|
18180
18187
|
}, {
|
|
18181
|
-
activator:
|
|
18188
|
+
activator: x(({ props: h }) => {
|
|
18182
18189
|
var f, L;
|
|
18183
18190
|
return [
|
|
18184
18191
|
w(g, V(h, {
|
|
@@ -18188,9 +18195,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18188
18195
|
height: "24",
|
|
18189
18196
|
width: "24",
|
|
18190
18197
|
"min-width": "24",
|
|
18191
|
-
onClick: e[10] || (e[10] = (
|
|
18198
|
+
onClick: e[10] || (e[10] = (v) => l.handleClickFastWeather("current-direction"))
|
|
18192
18199
|
}), {
|
|
18193
|
-
default:
|
|
18200
|
+
default: x(() => [
|
|
18194
18201
|
n("i", V(h, { class: "iconfont icon-Current" }), null, 16)
|
|
18195
18202
|
]),
|
|
18196
18203
|
_: 2
|
|
@@ -18203,7 +18210,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18203
18210
|
text: t.$t("weather.weatherLayers"),
|
|
18204
18211
|
location: "top"
|
|
18205
18212
|
}, {
|
|
18206
|
-
activator:
|
|
18213
|
+
activator: x(({ props: h }) => [
|
|
18207
18214
|
w(g, V(h, {
|
|
18208
18215
|
class: "pa-1 d-flex",
|
|
18209
18216
|
variant: "text",
|
|
@@ -18212,7 +18219,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18212
18219
|
"min-width": "24",
|
|
18213
18220
|
onClick: l.handleClickFastMore
|
|
18214
18221
|
}), {
|
|
18215
|
-
default:
|
|
18222
|
+
default: x(() => [
|
|
18216
18223
|
n("i", V(h, { class: "iconfont icon-dots-align" }), null, 16)
|
|
18217
18224
|
]),
|
|
18218
18225
|
_: 2
|
|
@@ -18234,7 +18241,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18234
18241
|
color: a.source === "GFS" ? "primary" : "",
|
|
18235
18242
|
onClick: e[11] || (e[11] = (h) => a.source = "GFS")
|
|
18236
18243
|
}, {
|
|
18237
|
-
default:
|
|
18244
|
+
default: x(() => e[22] || (e[22] = [
|
|
18238
18245
|
N(" NOAA ", -1)
|
|
18239
18246
|
])),
|
|
18240
18247
|
_: 1,
|
|
@@ -18247,7 +18254,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18247
18254
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
18248
18255
|
onClick: e[12] || (e[12] = (h) => a.source = "ECMWF")
|
|
18249
18256
|
}, {
|
|
18250
|
-
default:
|
|
18257
|
+
default: x(() => e[23] || (e[23] = [
|
|
18251
18258
|
N(" ECMWF ", -1)
|
|
18252
18259
|
])),
|
|
18253
18260
|
_: 1,
|
|
@@ -18275,7 +18282,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18275
18282
|
color: "primary",
|
|
18276
18283
|
onClick: e[13] || (e[13] = (h) => a.showTimezone = !a.showTimezone)
|
|
18277
18284
|
}, {
|
|
18278
|
-
default:
|
|
18285
|
+
default: x(() => [
|
|
18279
18286
|
N(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
18280
18287
|
]),
|
|
18281
18288
|
_: 1
|
|
@@ -18411,7 +18418,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18411
18418
|
height: "30",
|
|
18412
18419
|
onClick: l.handleReset
|
|
18413
18420
|
}, {
|
|
18414
|
-
default:
|
|
18421
|
+
default: x(() => e[4] || (e[4] = [
|
|
18415
18422
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18416
18423
|
])),
|
|
18417
18424
|
_: 1,
|
|
@@ -18426,7 +18433,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18426
18433
|
height: "30",
|
|
18427
18434
|
onClick: l.handleBackward
|
|
18428
18435
|
}, {
|
|
18429
|
-
default:
|
|
18436
|
+
default: x(() => e[5] || (e[5] = [
|
|
18430
18437
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18431
18438
|
])),
|
|
18432
18439
|
_: 1,
|
|
@@ -18454,7 +18461,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18454
18461
|
height: "30",
|
|
18455
18462
|
onClick: l.handleForward
|
|
18456
18463
|
}, {
|
|
18457
|
-
default:
|
|
18464
|
+
default: x(() => e[6] || (e[6] = [
|
|
18458
18465
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18459
18466
|
])),
|
|
18460
18467
|
_: 1,
|
|
@@ -18470,7 +18477,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18470
18477
|
height: "30",
|
|
18471
18478
|
onClick: l.handlePlay
|
|
18472
18479
|
}, {
|
|
18473
|
-
default:
|
|
18480
|
+
default: x(() => e[7] || (e[7] = [
|
|
18474
18481
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18475
18482
|
])),
|
|
18476
18483
|
_: 1,
|
|
@@ -18485,7 +18492,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18485
18492
|
height: "30",
|
|
18486
18493
|
onClick: l.handlePause
|
|
18487
18494
|
}, {
|
|
18488
|
-
default:
|
|
18495
|
+
default: x(() => e[8] || (e[8] = [
|
|
18489
18496
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18490
18497
|
])),
|
|
18491
18498
|
_: 1,
|
|
@@ -18778,7 +18785,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18778
18785
|
interactive: !0,
|
|
18779
18786
|
"open-on-click": !1
|
|
18780
18787
|
}, {
|
|
18781
|
-
activator:
|
|
18788
|
+
activator: x(({ props: u }) => [
|
|
18782
18789
|
a.gifEnabled ? (A(), F(c, V({
|
|
18783
18790
|
key: 1,
|
|
18784
18791
|
disabled: a.frameCount < 1
|
|
@@ -18789,7 +18796,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18789
18796
|
variant: "text",
|
|
18790
18797
|
onClick: e[3] || (e[3] = (h) => a.gifEnabled = !a.gifEnabled)
|
|
18791
18798
|
}), {
|
|
18792
|
-
default:
|
|
18799
|
+
default: x(() => e[15] || (e[15] = [
|
|
18793
18800
|
n("i", { class: "iconfont icon-stop-record text-danger" }, null, -1)
|
|
18794
18801
|
])),
|
|
18795
18802
|
_: 2,
|
|
@@ -18801,7 +18808,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18801
18808
|
variant: "text",
|
|
18802
18809
|
onClick: e[2] || (e[2] = (h) => a.gifEnabled = !a.gifEnabled)
|
|
18803
18810
|
}), {
|
|
18804
|
-
default:
|
|
18811
|
+
default: x(() => e[14] || (e[14] = [
|
|
18805
18812
|
n("i", { class: "iconfont icon-record" }, null, -1)
|
|
18806
18813
|
])),
|
|
18807
18814
|
_: 2,
|
|
@@ -18816,7 +18823,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18816
18823
|
interactive: !0,
|
|
18817
18824
|
"open-on-click": !1
|
|
18818
18825
|
}, {
|
|
18819
|
-
activator:
|
|
18826
|
+
activator: x(({ props: u }) => [
|
|
18820
18827
|
w(c, V(u, {
|
|
18821
18828
|
icon: "",
|
|
18822
18829
|
size: "small",
|
|
@@ -18824,7 +18831,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18824
18831
|
variant: "text",
|
|
18825
18832
|
onClick: l.handleReset
|
|
18826
18833
|
}), {
|
|
18827
|
-
default:
|
|
18834
|
+
default: x(() => e[16] || (e[16] = [
|
|
18828
18835
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18829
18836
|
])),
|
|
18830
18837
|
_: 2,
|
|
@@ -18839,7 +18846,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18839
18846
|
interactive: !0,
|
|
18840
18847
|
"open-on-click": !1
|
|
18841
18848
|
}, {
|
|
18842
|
-
activator:
|
|
18849
|
+
activator: x(({ props: u }) => [
|
|
18843
18850
|
w(c, V(u, {
|
|
18844
18851
|
icon: "",
|
|
18845
18852
|
size: "small",
|
|
@@ -18847,7 +18854,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18847
18854
|
variant: "text",
|
|
18848
18855
|
onClick: l.handleBackward
|
|
18849
18856
|
}), {
|
|
18850
|
-
default:
|
|
18857
|
+
default: x(() => e[17] || (e[17] = [
|
|
18851
18858
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18852
18859
|
])),
|
|
18853
18860
|
_: 2,
|
|
@@ -18862,7 +18869,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18862
18869
|
interactive: !0,
|
|
18863
18870
|
"open-on-click": !1
|
|
18864
18871
|
}, {
|
|
18865
|
-
activator:
|
|
18872
|
+
activator: x(({ props: u }) => [
|
|
18866
18873
|
a.paused ? (A(), F(c, V({ key: 0 }, u, {
|
|
18867
18874
|
icon: "",
|
|
18868
18875
|
size: "small",
|
|
@@ -18870,7 +18877,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18870
18877
|
variant: "text",
|
|
18871
18878
|
onClick: l.handlePlay
|
|
18872
18879
|
}), {
|
|
18873
|
-
default:
|
|
18880
|
+
default: x(() => e[18] || (e[18] = [
|
|
18874
18881
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18875
18882
|
])),
|
|
18876
18883
|
_: 2,
|
|
@@ -18885,7 +18892,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18885
18892
|
interactive: !0,
|
|
18886
18893
|
"open-on-click": !1
|
|
18887
18894
|
}, {
|
|
18888
|
-
activator:
|
|
18895
|
+
activator: x(({ props: u }) => [
|
|
18889
18896
|
a.paused ? I("", !0) : (A(), F(c, V({ key: 0 }, u, {
|
|
18890
18897
|
icon: "",
|
|
18891
18898
|
size: "small",
|
|
@@ -18893,7 +18900,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18893
18900
|
variant: "text",
|
|
18894
18901
|
onClick: l.handlePause
|
|
18895
18902
|
}), {
|
|
18896
|
-
default:
|
|
18903
|
+
default: x(() => e[19] || (e[19] = [
|
|
18897
18904
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18898
18905
|
])),
|
|
18899
18906
|
_: 2,
|
|
@@ -18908,7 +18915,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18908
18915
|
interactive: !0,
|
|
18909
18916
|
"open-on-click": !1
|
|
18910
18917
|
}, {
|
|
18911
|
-
activator:
|
|
18918
|
+
activator: x(({ props: u }) => [
|
|
18912
18919
|
w(c, V(u, {
|
|
18913
18920
|
icon: "",
|
|
18914
18921
|
size: "small",
|
|
@@ -18916,7 +18923,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18916
18923
|
variant: "text",
|
|
18917
18924
|
onClick: l.handleForward
|
|
18918
18925
|
}), {
|
|
18919
|
-
default:
|
|
18926
|
+
default: x(() => e[20] || (e[20] = [
|
|
18920
18927
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18921
18928
|
])),
|
|
18922
18929
|
_: 2,
|
|
@@ -18937,12 +18944,12 @@ function cy(t, e, o, i, a, l) {
|
|
|
18937
18944
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
18938
18945
|
"min-width": "30"
|
|
18939
18946
|
}, {
|
|
18940
|
-
default:
|
|
18947
|
+
default: x(() => [
|
|
18941
18948
|
N(y(a.intervalHour) + " h ", 1),
|
|
18942
18949
|
w(b, { activator: "parent" }, {
|
|
18943
|
-
default:
|
|
18950
|
+
default: x(() => [
|
|
18944
18951
|
w(g, { class: "pa-1" }, {
|
|
18945
|
-
default:
|
|
18952
|
+
default: x(() => [
|
|
18946
18953
|
(A(!0), R(Ce, null, Me(a.intervalOptions, (u, h) => (A(), F(p, {
|
|
18947
18954
|
key: h,
|
|
18948
18955
|
value: u,
|
|
@@ -18955,11 +18962,11 @@ function cy(t, e, o, i, a, l) {
|
|
|
18955
18962
|
"min-width": "30",
|
|
18956
18963
|
class: "pa-0 text-center text-body-1"
|
|
18957
18964
|
}, {
|
|
18958
|
-
default:
|
|
18965
|
+
default: x(() => [
|
|
18959
18966
|
w(m, {
|
|
18960
18967
|
onClick: (f) => a.intervalHour = u
|
|
18961
18968
|
}, {
|
|
18962
|
-
default:
|
|
18969
|
+
default: x(() => [
|
|
18963
18970
|
N(y(u) + "h", 1)
|
|
18964
18971
|
]),
|
|
18965
18972
|
_: 2
|
|
@@ -19004,7 +19011,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19004
19011
|
key: f.key,
|
|
19005
19012
|
class: ue(["timeline-hour", { active: f.isActive }]),
|
|
19006
19013
|
style: ge({ width: l.hourWidth + "px" }),
|
|
19007
|
-
onClick: (
|
|
19014
|
+
onClick: (v) => l.handleTimelineClick(h, L)
|
|
19008
19015
|
}, [
|
|
19009
19016
|
f.isCurrent ? (A(), R("div", ey, [
|
|
19010
19017
|
n("span", ty, y(l.playBubbleText), 1),
|
|
@@ -19026,7 +19033,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19026
19033
|
text: t.$t("weather.windBarbs"),
|
|
19027
19034
|
location: "top"
|
|
19028
19035
|
}, {
|
|
19029
|
-
activator:
|
|
19036
|
+
activator: x(({ props: u }) => {
|
|
19030
19037
|
var h, f;
|
|
19031
19038
|
return [
|
|
19032
19039
|
w(c, V(u, {
|
|
@@ -19038,7 +19045,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19038
19045
|
"min-width": "24",
|
|
19039
19046
|
onClick: e[8] || (e[8] = (L) => l.handleClickFastWeather("wind"))
|
|
19040
19047
|
}), {
|
|
19041
|
-
default:
|
|
19048
|
+
default: x(() => e[22] || (e[22] = [
|
|
19042
19049
|
n("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
19043
19050
|
])),
|
|
19044
19051
|
_: 2,
|
|
@@ -19052,7 +19059,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19052
19059
|
text: t.$t("weather.sigWaveHeight"),
|
|
19053
19060
|
location: "top"
|
|
19054
19061
|
}, {
|
|
19055
|
-
activator:
|
|
19062
|
+
activator: x(({ props: u }) => {
|
|
19056
19063
|
var h, f;
|
|
19057
19064
|
return [
|
|
19058
19065
|
w(c, V(u, {
|
|
@@ -19064,7 +19071,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19064
19071
|
"min-width": "24",
|
|
19065
19072
|
onClick: e[9] || (e[9] = (L) => l.handleClickFastWeather("sig-wave-height"))
|
|
19066
19073
|
}), {
|
|
19067
|
-
default:
|
|
19074
|
+
default: x(() => [
|
|
19068
19075
|
n("i", V(u, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
19069
19076
|
]),
|
|
19070
19077
|
_: 2
|
|
@@ -19077,7 +19084,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19077
19084
|
text: t.$t("weather.currentDirection"),
|
|
19078
19085
|
location: "top"
|
|
19079
19086
|
}, {
|
|
19080
|
-
activator:
|
|
19087
|
+
activator: x(({ props: u }) => {
|
|
19081
19088
|
var h, f;
|
|
19082
19089
|
return [
|
|
19083
19090
|
w(c, V(u, {
|
|
@@ -19089,7 +19096,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19089
19096
|
"min-width": "24",
|
|
19090
19097
|
onClick: e[10] || (e[10] = (L) => l.handleClickFastWeather("current-direction"))
|
|
19091
19098
|
}), {
|
|
19092
|
-
default:
|
|
19099
|
+
default: x(() => [
|
|
19093
19100
|
n("i", V(u, { class: "iconfont icon-Current" }), null, 16)
|
|
19094
19101
|
]),
|
|
19095
19102
|
_: 2
|
|
@@ -19102,7 +19109,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19102
19109
|
text: t.$t("weather.weatherLayers"),
|
|
19103
19110
|
location: "top"
|
|
19104
19111
|
}, {
|
|
19105
|
-
activator:
|
|
19112
|
+
activator: x(({ props: u }) => [
|
|
19106
19113
|
w(c, V(u, {
|
|
19107
19114
|
class: "pa-1 d-flex",
|
|
19108
19115
|
variant: "text",
|
|
@@ -19111,7 +19118,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19111
19118
|
"min-width": "24",
|
|
19112
19119
|
onClick: l.handleClickFastMore
|
|
19113
19120
|
}), {
|
|
19114
|
-
default:
|
|
19121
|
+
default: x(() => [
|
|
19115
19122
|
n("i", V(u, { class: "iconfont icon-dots-align" }), null, 16)
|
|
19116
19123
|
]),
|
|
19117
19124
|
_: 2
|
|
@@ -19132,7 +19139,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19132
19139
|
color: a.source === "GFS" ? "primary" : "",
|
|
19133
19140
|
onClick: e[11] || (e[11] = (u) => a.source = "GFS")
|
|
19134
19141
|
}, {
|
|
19135
|
-
default:
|
|
19142
|
+
default: x(() => e[23] || (e[23] = [
|
|
19136
19143
|
N(" NOAA ", -1)
|
|
19137
19144
|
])),
|
|
19138
19145
|
_: 1,
|
|
@@ -19145,7 +19152,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19145
19152
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
19146
19153
|
onClick: e[12] || (e[12] = (u) => a.source = "ECMWF")
|
|
19147
19154
|
}, {
|
|
19148
|
-
default:
|
|
19155
|
+
default: x(() => e[24] || (e[24] = [
|
|
19149
19156
|
N(" ECMWF ", -1)
|
|
19150
19157
|
])),
|
|
19151
19158
|
_: 1,
|
|
@@ -19173,7 +19180,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19173
19180
|
color: "primary",
|
|
19174
19181
|
onClick: e[13] || (e[13] = (u) => a.showTimezone = !a.showTimezone)
|
|
19175
19182
|
}, {
|
|
19176
|
-
default:
|
|
19183
|
+
default: x(() => [
|
|
19177
19184
|
N(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
19178
19185
|
]),
|
|
19179
19186
|
_: 1
|
|
@@ -19186,7 +19193,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19186
19193
|
const my = /* @__PURE__ */ ne(O1, [["render", cy]]), dy = {
|
|
19187
19194
|
name: "IdmGL4",
|
|
19188
19195
|
components: {
|
|
19189
|
-
IdmOtherLayer:
|
|
19196
|
+
IdmOtherLayer: vc,
|
|
19190
19197
|
IdmWeatherLayer: pd,
|
|
19191
19198
|
IdmTropicals: Gl,
|
|
19192
19199
|
IdmMeasure: _p,
|
|
@@ -19238,10 +19245,10 @@ const my = /* @__PURE__ */ ne(O1, [["render", cy]]), dy = {
|
|
|
19238
19245
|
watch: {
|
|
19239
19246
|
layerVersion: {
|
|
19240
19247
|
handler() {
|
|
19241
|
-
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
19248
|
+
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _;
|
|
19242
19249
|
if (this.map) {
|
|
19243
19250
|
const D = this.autoActive && this.weatherCheckList.some((G) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((Q) => Q === G)), T = this.autoActive && this.weatherCheckList.some((G) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp", "sig-wave-height"].some((Q) => Q === G)), B = this.otherCheckList.some((G) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((Q) => Q === G)), j = T || B;
|
|
19244
|
-
(this.mapFeather === "nautical" || this.mapFeather === "satellite") && (D ? ((t = this.map) != null && t.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), (e = this.map) != null && e.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), (o = this.map) != null && o.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), (i = this.map) != null && i.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), (a = this.map) != null && a.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), (l = this.map) != null && l.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), (r = this.map) != null && r.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible"), (c = this.map) != null && c.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible")) : ((s = this.map) != null && s.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), (d = this.map) != null && d.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), (m = this.map) != null && m.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), (p = this.map) != null && p.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), (g = this.map) != null && g.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), (b = this.map) != null && b.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), (u = this.map) != null && u.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none"), (h = this.map) != null && h.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none"))), j ? ((f = this.map) != null && f.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (L = this.map) != null && L.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((
|
|
19251
|
+
(this.mapFeather === "nautical" || this.mapFeather === "satellite") && (D ? ((t = this.map) != null && t.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), (e = this.map) != null && e.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), (o = this.map) != null && o.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), (i = this.map) != null && i.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), (a = this.map) != null && a.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), (l = this.map) != null && l.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), (r = this.map) != null && r.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible"), (c = this.map) != null && c.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible")) : ((s = this.map) != null && s.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), (d = this.map) != null && d.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), (m = this.map) != null && m.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), (p = this.map) != null && p.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), (g = this.map) != null && g.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), (b = this.map) != null && b.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), (u = this.map) != null && u.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none"), (h = this.map) != null && h.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none"))), j ? ((f = this.map) != null && f.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (L = this.map) != null && L.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((v = this.map) != null && v.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), (C = this.map) != null && C.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none")), T ? ((z = this.map) != null && z.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), (P = this.map) != null && P.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
|
|
19245
19252
|
var G, Q;
|
|
19246
19253
|
(G = this.map) != null && G.getLayer("sig-wave-height-layer") && this.map.moveLayer("sig-wave-height-layer", "empty-layer-0"), (Q = this.map) != null && Q.getLayer("sig-wave-height-label-layer") && this.map.moveLayer("sig-wave-height-label-layer", "empty-layer-0");
|
|
19247
19254
|
}, 1e3)) : (_ = this.map) != null && _.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-2");
|
|
@@ -19368,14 +19375,14 @@ function uy(t, e, o, i, a, l) {
|
|
|
19368
19375
|
}
|
|
19369
19376
|
const py = /* @__PURE__ */ ne(dy, [["render", uy]]);
|
|
19370
19377
|
class gy {
|
|
19371
|
-
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", {
|
|
19378
|
+
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", { nautical: o = "i4" }) {
|
|
19372
19379
|
ke(this, "originStyle");
|
|
19373
19380
|
ke(this, "mapboxStyle");
|
|
19374
19381
|
ke(this, "i4");
|
|
19375
19382
|
ke(this, "hi");
|
|
19376
19383
|
ke(this, "td");
|
|
19377
19384
|
ke(this, "windy");
|
|
19378
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
19385
|
+
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be, E, $, te, se, q, Y, le, Z, U, fe, Le, ze, he, Ae, ee, we, Ee, Ge, $e, et, Je, je, tt, Oe, He, Ke, ot, at, Qe, Te, Re, Ne, it, lt, rt, Ve, bt, wt, xt, vt, At, kt, Lt, zt, _t, Ct, Mt, Pt, St, Tt, Rt, Dt, It, Et, Gt, Ft, Bt, jt, Nt, Zt, Wt, Vt, Xt, Ot, Ht, Yt, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, Xe, Ye, ao, nt, io, gt, De, st, de, Fe, ae, oe, ct, qe, We, J, lo, ce, Be, mt, ft, yt, X, dt, K, ht, no, pe, go, ye, vo, Ao, ko, Lo, zo, _o, Co, Mo, Po, So, To, Ro, Do, Io, ya, ba, wa, xa, va, Aa, ka, La, za, _a, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Ea, Ga, Fa, Ba, ja, Na, Za, Wa, Va, Xa, Oa, Ha, Ya, Ua, Ja, Ka, Qa, qa, $a, ei, ti, oi, ai, ii, li, ri, ni, si, ci, mi, di, hi, ui, pi, gi, fi, yi, bi, wi, xi, vi, Ai, ki, Li, zi, _i, Ci, Mi, Pi, Si, Ti, Ri, Di, Ii, Ei, Gi, Fi, Bi, ji, Ni, Zi, Wi, Vi, Xi, Oi, Hi, Yi, Ui, Ji, Ki, Qi, qi, $i, el, tl, ol, al, il, ll, rl, nl, sl, cl, ml, dl;
|
|
19379
19386
|
this.i4 = {
|
|
19380
19387
|
source: {
|
|
19381
19388
|
type: "raster",
|
|
@@ -19405,8 +19412,8 @@ class gy {
|
|
|
19405
19412
|
id: "hi",
|
|
19406
19413
|
type: "raster",
|
|
19407
19414
|
source: "hi",
|
|
19408
|
-
|
|
19409
|
-
|
|
19415
|
+
minzoom: 1,
|
|
19416
|
+
maxzoom: 18,
|
|
19410
19417
|
layout: {
|
|
19411
19418
|
visibility: "visible"
|
|
19412
19419
|
}
|
|
@@ -38012,14 +38019,14 @@ class gy {
|
|
|
38012
38019
|
(g = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : g.find((k) => k.id === "ice-area-fill"),
|
|
38013
38020
|
(u = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : u.find((k) => k.id === "ice-area-line"),
|
|
38014
38021
|
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((k) => k.id === "empty-layer-0"),
|
|
38015
|
-
(
|
|
38022
|
+
(v = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : v.find((k) => k.id === "empty-layer-1"),
|
|
38016
38023
|
(z = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : z.find((k) => k.id === "country-boundaries"),
|
|
38017
38024
|
(_ = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : _.find((k) => k.id === "water-outline"),
|
|
38018
38025
|
(T = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : T.find((k) => k.id === "water-outline2"),
|
|
38019
38026
|
(j = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : j.find((k) => k.id === "empty-layer-2"),
|
|
38020
38027
|
(Q = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : Q.find((k) => k.id === "water-line-label"),
|
|
38021
38028
|
(re = (ie = this.originStyle) == null ? void 0 : ie.light.layers) == null ? void 0 : re.find((k) => k.id === "water-point-label"),
|
|
38022
|
-
(be = (
|
|
38029
|
+
(be = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : be.find((k) => k.id === "world-12nm-v4-20231025"),
|
|
38023
38030
|
($ = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : $.find((k) => k.id === "nsr-flll"),
|
|
38024
38031
|
(se = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : se.find((k) => k.id === "nsr-line"),
|
|
38025
38032
|
(Y = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : Y.find((k) => k.id === "nsr-label"),
|
|
@@ -38060,8 +38067,8 @@ class gy {
|
|
|
38060
38067
|
protected: !1,
|
|
38061
38068
|
draft: !1,
|
|
38062
38069
|
layers: [
|
|
38063
|
-
(
|
|
38064
|
-
(At = (
|
|
38070
|
+
(xt = (wt = this.originStyle) == null ? void 0 : wt.dark.layers) == null ? void 0 : xt.find((k) => k.id === "land"),
|
|
38071
|
+
(At = (vt = this.originStyle) == null ? void 0 : vt.dark.layers) == null ? void 0 : At.find((k) => k.id === "water"),
|
|
38065
38072
|
(Lt = (kt = this.originStyle) == null ? void 0 : kt.dark.layers) == null ? void 0 : Lt.find((k) => k.id === "loadlines-label"),
|
|
38066
38073
|
(_t = (zt = this.originStyle) == null ? void 0 : zt.dark.layers) == null ? void 0 : _t.find((k) => k.id === "loadlines-fill"),
|
|
38067
38074
|
(Mt = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : Mt.find((k) => k.id === "ice-area-fill"),
|
|
@@ -38112,7 +38119,7 @@ class gy {
|
|
|
38112
38119
|
protected: !1,
|
|
38113
38120
|
draft: !1,
|
|
38114
38121
|
layers: [
|
|
38115
|
-
(
|
|
38122
|
+
(vo = (ye = this.originStyle) == null ? void 0 : ye.satellite.layers) == null ? void 0 : vo.find((k) => k.id === "background"),
|
|
38116
38123
|
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((k) => k.id === "satellite"),
|
|
38117
38124
|
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((k) => k.id === "loadlines-label"),
|
|
38118
38125
|
(Co = (_o = this.originStyle) == null ? void 0 : _o.satellite.layers) == null ? void 0 : Co.find((k) => k.id === "loadlines-fill"),
|
|
@@ -38121,7 +38128,7 @@ class gy {
|
|
|
38121
38128
|
(Do = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Do.find((k) => k.id === "empty-layer-0"),
|
|
38122
38129
|
(ya = (Io = this.originStyle) == null ? void 0 : Io.satellite.layers) == null ? void 0 : ya.find((k) => k.id === "empty-layer-1"),
|
|
38123
38130
|
(wa = (ba = this.originStyle) == null ? void 0 : ba.satellite.layers) == null ? void 0 : wa.find((k) => k.id === "country-boundaries"),
|
|
38124
|
-
(
|
|
38131
|
+
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((k) => k.id === "water-outline"),
|
|
38125
38132
|
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((k) => k.id === "empty-layer-2"),
|
|
38126
38133
|
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((k) => k.id === "world-12nm-v4-20231025"),
|
|
38127
38134
|
(Ca = (_a = this.originStyle) == null ? void 0 : _a.satellite.layers) == null ? void 0 : Ca.find((k) => k.id === "nsr-flll"),
|
|
@@ -38156,14 +38163,14 @@ class gy {
|
|
|
38156
38163
|
layers: [
|
|
38157
38164
|
(li = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : li.find((k) => k.id === "land"),
|
|
38158
38165
|
(ni = (ri = this.originStyle) == null ? void 0 : ri.light.layers) == null ? void 0 : ni.find((k) => k.id === "water"),
|
|
38159
|
-
o ? this.hi.layer : this.i4.layer,
|
|
38166
|
+
o === "hi" ? this.hi.layer : this.i4.layer,
|
|
38160
38167
|
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((k) => k.id === "loadlines-label"),
|
|
38161
38168
|
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((k) => k.id === "loadlines-fill"),
|
|
38162
38169
|
(ui = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : ui.find((k) => k.id === "ice-area-fill"),
|
|
38163
38170
|
(gi = (pi = this.originStyle) == null ? void 0 : pi.light.layers) == null ? void 0 : gi.find((k) => k.id === "ice-area-line"),
|
|
38164
38171
|
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((k) => k.id === "empty-layer-0"),
|
|
38165
38172
|
(wi = (bi = this.originStyle) == null ? void 0 : bi.light.layers) == null ? void 0 : wi.find((k) => k.id === "empty-layer-1"),
|
|
38166
|
-
(
|
|
38173
|
+
(vi = (xi = this.originStyle) == null ? void 0 : xi.light.layers) == null ? void 0 : vi.find((k) => k.id === "country-boundaries"),
|
|
38167
38174
|
(ki = (Ai = this.originStyle) == null ? void 0 : Ai.light.layers) == null ? void 0 : ki.find((k) => k.id === "water-outline"),
|
|
38168
38175
|
(zi = (Li = this.originStyle) == null ? void 0 : Li.light.layers) == null ? void 0 : zi.find((k) => k.id === "water-outline2"),
|
|
38169
38176
|
(Ci = (_i = this.originStyle) == null ? void 0 : _i.light.layers) == null ? void 0 : Ci.find((k) => k.id === "empty-layer-2"),
|
|
@@ -38232,7 +38239,9 @@ const fy = {
|
|
|
38232
38239
|
beforeLayer: "",
|
|
38233
38240
|
helper: void 0,
|
|
38234
38241
|
zoom: 2,
|
|
38235
|
-
right: 10
|
|
38242
|
+
right: 10,
|
|
38243
|
+
nauticalKeys: ["hi", "i4"],
|
|
38244
|
+
nautical: localStorage.getItem("nauticalLayerCacheGL4") === "hi" ? "hi" : "i4"
|
|
38236
38245
|
};
|
|
38237
38246
|
},
|
|
38238
38247
|
computed: {
|
|
@@ -38263,12 +38272,21 @@ const fy = {
|
|
|
38263
38272
|
this.$emit("map", this.map);
|
|
38264
38273
|
},
|
|
38265
38274
|
immediate: !0
|
|
38275
|
+
},
|
|
38276
|
+
nautical: {
|
|
38277
|
+
handler(t) {
|
|
38278
|
+
localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle();
|
|
38279
|
+
}
|
|
38266
38280
|
}
|
|
38267
38281
|
},
|
|
38268
38282
|
methods: {
|
|
38269
|
-
|
|
38270
|
-
|
|
38271
|
-
|
|
38283
|
+
/**
|
|
38284
|
+
* @param view 可选的初始视角 { zoom, center: [lng, lat] },不传则使用默认视角
|
|
38285
|
+
*/
|
|
38286
|
+
async initOnlineMap(t) {
|
|
38287
|
+
const e = typeof (t == null ? void 0 : t.zoom) == "number" ? t.zoom : 2, o = Array.isArray(t == null ? void 0 : t.center) ? t.center : [120, 30];
|
|
38288
|
+
this.helper = new gy(this.token, { nautical: this.nautical ?? "i4" }), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
38289
|
+
const i = new ve.Map({
|
|
38272
38290
|
container: "map",
|
|
38273
38291
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
38274
38292
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -38278,8 +38296,8 @@ const fy = {
|
|
|
38278
38296
|
style: this.helper.mapboxStyle[this.mapFeather],
|
|
38279
38297
|
minZoom: 2,
|
|
38280
38298
|
maxZoom: 22,
|
|
38281
|
-
zoom:
|
|
38282
|
-
center:
|
|
38299
|
+
zoom: e,
|
|
38300
|
+
center: o,
|
|
38283
38301
|
dragRotate: !1,
|
|
38284
38302
|
pitchWithRotate: !1,
|
|
38285
38303
|
touchZoomRotate: { enabled: !0, rotate: !1 },
|
|
@@ -38288,16 +38306,16 @@ const fy = {
|
|
|
38288
38306
|
preserveDrawingBuffer: !0,
|
|
38289
38307
|
fadeDuration: 300
|
|
38290
38308
|
});
|
|
38291
|
-
|
|
38292
|
-
this.zoom =
|
|
38293
|
-
}),
|
|
38294
|
-
var
|
|
38295
|
-
this.zoom = (
|
|
38309
|
+
i.dragRotate.disable(), i.touchZoomRotate.disableRotation(), i.on("load", () => {
|
|
38310
|
+
this.zoom = i.getZoom(), this.map = i, this.$emit("menuToggle"), this.addScaleControl();
|
|
38311
|
+
}), i.on("move", () => {
|
|
38312
|
+
var a;
|
|
38313
|
+
this.zoom = (a = this.map) == null ? void 0 : a.getZoom();
|
|
38296
38314
|
});
|
|
38297
38315
|
},
|
|
38298
38316
|
addScaleControl() {
|
|
38299
38317
|
var e;
|
|
38300
|
-
this.map.addControl(new
|
|
38318
|
+
this.map.addControl(new ve.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
38301
38319
|
const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
38302
38320
|
t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
38303
38321
|
},
|
|
@@ -38308,20 +38326,29 @@ const fy = {
|
|
|
38308
38326
|
handleZoomOut() {
|
|
38309
38327
|
var t;
|
|
38310
38328
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
38329
|
+
},
|
|
38330
|
+
/**
|
|
38331
|
+
* 海图底图 hi / i4 切换:销毁旧地图后按当前 center / zoom 重新加载
|
|
38332
|
+
*/
|
|
38333
|
+
handleNauticalToggle() {
|
|
38334
|
+
const t = this.map, e = t ? { zoom: t.getZoom(), center: t.getCenter().toArray() } : void 0;
|
|
38335
|
+
this.map = void 0, this.$nextTick(() => {
|
|
38336
|
+
t == null || t.remove(), this.initOnlineMap(e);
|
|
38337
|
+
});
|
|
38311
38338
|
}
|
|
38312
38339
|
}
|
|
38313
|
-
}, yy = { class: "v-btn--variant-elevated rounded" }, by = { class: "v-btn--variant-elevated rounded" }, wy = { class: "zoom" },
|
|
38314
|
-
key:
|
|
38340
|
+
}, yy = { class: "v-btn--variant-elevated rounded" }, by = { class: "v-btn--variant-elevated rounded" }, wy = { class: "zoom" }, xy = {
|
|
38341
|
+
key: 3,
|
|
38315
38342
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
38316
38343
|
};
|
|
38317
|
-
function
|
|
38318
|
-
const r = M("VBtn");
|
|
38344
|
+
function vy(t, e, o, i, a, l) {
|
|
38345
|
+
const r = M("VBtn"), c = M("VBtnToggle");
|
|
38319
38346
|
return A(), R("div", {
|
|
38320
38347
|
id: "mapbox-initial-gl4",
|
|
38321
38348
|
class: "mapbox-initial-gl4 gif-container",
|
|
38322
38349
|
style: ge({ height: o.height, width: o.width })
|
|
38323
38350
|
}, [
|
|
38324
|
-
e[
|
|
38351
|
+
e[7] || (e[7] = n("div", { id: "map" }, null, -1)),
|
|
38325
38352
|
o.simple ? (A(), R("div", {
|
|
38326
38353
|
key: 0,
|
|
38327
38354
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
@@ -38335,11 +38362,11 @@ function xy(t, e, o, i, a, l) {
|
|
|
38335
38362
|
class: "pa-0 elevation-0",
|
|
38336
38363
|
onClick: l.initOnlineMap
|
|
38337
38364
|
}, {
|
|
38338
|
-
default:
|
|
38365
|
+
default: x(() => e[1] || (e[1] = [
|
|
38339
38366
|
n("i", { class: "iconfont icon-shuaxin text-h4" }, null, -1)
|
|
38340
38367
|
])),
|
|
38341
38368
|
_: 1,
|
|
38342
|
-
__: [
|
|
38369
|
+
__: [1]
|
|
38343
38370
|
}, 8, ["onClick"])
|
|
38344
38371
|
])
|
|
38345
38372
|
], 4)) : I("", !0),
|
|
@@ -38356,11 +38383,11 @@ function xy(t, e, o, i, a, l) {
|
|
|
38356
38383
|
class: "pa-0 elevation-0",
|
|
38357
38384
|
onClick: l.handleZoomIn
|
|
38358
38385
|
}, {
|
|
38359
|
-
default:
|
|
38386
|
+
default: x(() => e[2] || (e[2] = [
|
|
38360
38387
|
n("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
38361
38388
|
])),
|
|
38362
38389
|
_: 1,
|
|
38363
|
-
__: [
|
|
38390
|
+
__: [2]
|
|
38364
38391
|
}, 8, ["onClick"]),
|
|
38365
38392
|
n("div", wy, y(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
38366
38393
|
w(r, {
|
|
@@ -38370,19 +38397,52 @@ function xy(t, e, o, i, a, l) {
|
|
|
38370
38397
|
class: "elevation-0 pa-0",
|
|
38371
38398
|
onClick: l.handleZoomOut
|
|
38372
38399
|
}, {
|
|
38373
|
-
default:
|
|
38400
|
+
default: x(() => e[3] || (e[3] = [
|
|
38374
38401
|
n("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
38375
38402
|
])),
|
|
38376
38403
|
_: 1,
|
|
38377
|
-
__: [
|
|
38404
|
+
__: [3]
|
|
38378
38405
|
}, 8, ["onClick"])
|
|
38379
38406
|
])
|
|
38380
38407
|
], 4)),
|
|
38381
|
-
o.simple
|
|
38382
|
-
|
|
38408
|
+
!o.simple && o.mapFeather === "nautical" && o.platform === "ops" ? (A(), R("div", {
|
|
38409
|
+
key: 2,
|
|
38410
|
+
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
38411
|
+
style: ge({ top: o.top + 430 + "px", right: a.right + "px", height: "80px" })
|
|
38412
|
+
}, [
|
|
38413
|
+
w(c, {
|
|
38414
|
+
modelValue: a.nautical,
|
|
38415
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => a.nautical = s),
|
|
38416
|
+
class: "v-btn--variant-elevated rounded elevation-0",
|
|
38417
|
+
direction: "vertical",
|
|
38418
|
+
density: "compact",
|
|
38419
|
+
mandatory: "",
|
|
38420
|
+
group: ""
|
|
38421
|
+
}, {
|
|
38422
|
+
default: x(() => [
|
|
38423
|
+
(A(!0), R(Ce, null, Me(a.nauticalKeys, (s) => (A(), F(r, {
|
|
38424
|
+
key: s,
|
|
38425
|
+
value: s,
|
|
38426
|
+
"min-width": "32",
|
|
38427
|
+
width: "32",
|
|
38428
|
+
height: "32",
|
|
38429
|
+
class: "text-none pa-0 elevation-0 text-h6",
|
|
38430
|
+
color: a.nautical === s ? "primary" : ""
|
|
38431
|
+
}, {
|
|
38432
|
+
default: x(() => [
|
|
38433
|
+
N(y(s), 1)
|
|
38434
|
+
]),
|
|
38435
|
+
_: 2
|
|
38436
|
+
}, 1032, ["value", "color"]))), 128))
|
|
38437
|
+
]),
|
|
38438
|
+
_: 1
|
|
38439
|
+
}, 8, ["modelValue"])
|
|
38440
|
+
], 4)) : I("", !0),
|
|
38441
|
+
o.simple ? I("", !0) : (A(), R("div", xy, [
|
|
38442
|
+
e[4] || (e[4] = n("span", null, "© 2023", -1)),
|
|
38383
38443
|
n("span", null, "-" + y(l.computeYear), 1),
|
|
38384
|
-
e[
|
|
38385
|
-
e[
|
|
38444
|
+
e[5] || (e[5] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
38445
|
+
e[6] || (e[6] = n("a", {
|
|
38386
38446
|
class: "text-decoration-underline cursor-pointer text-label",
|
|
38387
38447
|
href: "https://beian.miit.gov.cn/",
|
|
38388
38448
|
target: "_blank"
|
|
@@ -38390,7 +38450,7 @@ function xy(t, e, o, i, a, l) {
|
|
|
38390
38450
|
]))
|
|
38391
38451
|
], 4);
|
|
38392
38452
|
}
|
|
38393
|
-
const Ay = /* @__PURE__ */ ne(fy, [["render",
|
|
38453
|
+
const Ay = /* @__PURE__ */ ne(fy, [["render", vy]]);
|
|
38394
38454
|
const ky = {
|
|
38395
38455
|
name: "DateRangePicker",
|
|
38396
38456
|
props: {
|
|
@@ -38662,9 +38722,9 @@ function Py(t, e, o, i, a, l) {
|
|
|
38662
38722
|
class: "card-box d-flex flex-column border elevation-12",
|
|
38663
38723
|
style: ge(l.getStyle)
|
|
38664
38724
|
}, {
|
|
38665
|
-
default:
|
|
38725
|
+
default: x(() => [
|
|
38666
38726
|
w(d, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
38667
|
-
default:
|
|
38727
|
+
default: x(() => [
|
|
38668
38728
|
n("div", _y, [
|
|
38669
38729
|
w(c, {
|
|
38670
38730
|
modelValue: a.dateRange[0],
|
|
@@ -38709,7 +38769,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38709
38769
|
class: "w-100 d-flex justify-space-between align-center pa-0 px-4",
|
|
38710
38770
|
style: { height: "50px" }
|
|
38711
38771
|
}, {
|
|
38712
|
-
default:
|
|
38772
|
+
default: x(() => {
|
|
38713
38773
|
var b, u;
|
|
38714
38774
|
return [
|
|
38715
38775
|
(b = o.fastPick) != null && b.show ? (A(), R("div", Cy, [
|
|
@@ -38721,7 +38781,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38721
38781
|
class: "text-none text-body-2 px-1",
|
|
38722
38782
|
onClick: (f) => l.handleFastPick({ dateRange: h })
|
|
38723
38783
|
}, {
|
|
38724
|
-
default:
|
|
38784
|
+
default: x(() => [
|
|
38725
38785
|
N(y(t.$t("time." + h)), 1)
|
|
38726
38786
|
]),
|
|
38727
38787
|
_: 2
|
|
@@ -38734,7 +38794,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38734
38794
|
class: "text-none text-body-1 px-4",
|
|
38735
38795
|
onClick: l.handleCancelDate
|
|
38736
38796
|
}, {
|
|
38737
|
-
default:
|
|
38797
|
+
default: x(() => [
|
|
38738
38798
|
N(y(t.$t("actions.cancel")), 1)
|
|
38739
38799
|
]),
|
|
38740
38800
|
_: 1
|
|
@@ -38746,7 +38806,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38746
38806
|
class: "text-none text-body-1 px-4",
|
|
38747
38807
|
onClick: l.handleConfirmDate
|
|
38748
38808
|
}, {
|
|
38749
|
-
default:
|
|
38809
|
+
default: x(() => [
|
|
38750
38810
|
N(y(t.$t("actions.confirm")), 1)
|
|
38751
38811
|
]),
|
|
38752
38812
|
_: 1
|