@idmwx/idmui-gl4 3.5.7 → 3.5.8
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-ea18ece9.js} +1 -1
- package/dist/{chunk-ANSXOGKI-767fe6f2.js → chunk-ANSXOGKI-ba2842be.js} +1 -1
- package/dist/{chunk-T4JIPPZO-98d15e22.js → chunk-T4JIPPZO-2eaa3353.js} +1 -1
- package/dist/{download-1ba945c5.js → download-9206a571.js} +3 -3
- package/dist/{index-4947a104.js → index-9e998034.js} +686 -633
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- 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-2725ed9a.js} +3 -3
- package/dist/{toBlob-de1d5e0e.js → toBlob-e159d4f3.js} +3 -3
- package/dist/{toCanvas-478ad68f.js → toCanvas-a791e335.js} +2 -2
- package/dist/{toImg-abf1e7ab.js → toImg-6357dd5b.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");
|
|
@@ -4018,7 +4018,7 @@ class ro {
|
|
|
4018
4018
|
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
4019
|
const p = e.getBoundPixel(), g = e.map.getZoom() + 1, b = e.getWorldCopy(p, g);
|
|
4020
4020
|
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, [
|
|
4021
|
+
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
4022
|
o.bindBuffer(o.ARRAY_BUFFER, r), o.bufferData(o.ARRAY_BUFFER, _, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
4023
4023
|
}
|
|
4024
4024
|
} catch (m) {
|
|
@@ -6174,8 +6174,8 @@ function wm(t, e, o, i, a, l) {
|
|
|
6174
6174
|
]), 4)
|
|
6175
6175
|
])) : I("", !0);
|
|
6176
6176
|
}
|
|
6177
|
-
const
|
|
6178
|
-
const
|
|
6177
|
+
const xm = /* @__PURE__ */ ne(ym, [["render", wm]]);
|
|
6178
|
+
const vm = {
|
|
6179
6179
|
name: "IdmTemp",
|
|
6180
6180
|
props: {
|
|
6181
6181
|
simple: {
|
|
@@ -6299,7 +6299,7 @@ function km(t, e, o, i, a, l) {
|
|
|
6299
6299
|
]), 4)
|
|
6300
6300
|
])) : I("", !0);
|
|
6301
6301
|
}
|
|
6302
|
-
const Lm = /* @__PURE__ */ ne(
|
|
6302
|
+
const Lm = /* @__PURE__ */ ne(vm, [["render", km]]);
|
|
6303
6303
|
const zm = {
|
|
6304
6304
|
name: "IdmGlLayer",
|
|
6305
6305
|
components: {
|
|
@@ -6316,7 +6316,7 @@ const zm = {
|
|
|
6316
6316
|
IdmIceThickness: sm,
|
|
6317
6317
|
IdmPrecip3h: hm,
|
|
6318
6318
|
IdmVisibility: fm,
|
|
6319
|
-
IdmWaterTemp:
|
|
6319
|
+
IdmWaterTemp: xm,
|
|
6320
6320
|
IdmTemp: Lm
|
|
6321
6321
|
},
|
|
6322
6322
|
props: {
|
|
@@ -6629,15 +6629,15 @@ const zm = {
|
|
|
6629
6629
|
}
|
|
6630
6630
|
);
|
|
6631
6631
|
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
|
|
6632
|
+
const v = (c = L == null ? void 0 : L.data) == null ? void 0 : c.data, C = [];
|
|
6633
|
+
for (const P in v)
|
|
6634
6634
|
C.push(
|
|
6635
|
-
Ie.get(
|
|
6635
|
+
Ie.get(v[P], {
|
|
6636
6636
|
headers: {
|
|
6637
6637
|
Authorization: this.defaultMeteoToken,
|
|
6638
6638
|
key: P
|
|
6639
6639
|
},
|
|
6640
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6640
|
+
responseType: /\.(jpg|png)$/.test(v[P]) ? "blob" : "json"
|
|
6641
6641
|
}).catch((_) => {
|
|
6642
6642
|
console.log(`[${P}] fetch layer error: ${_}`);
|
|
6643
6643
|
})
|
|
@@ -6655,19 +6655,19 @@ const zm = {
|
|
|
6655
6655
|
});
|
|
6656
6656
|
}
|
|
6657
6657
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6658
|
-
const
|
|
6658
|
+
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw, C = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
6659
6659
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6660
6660
|
type: "json",
|
|
6661
|
-
direction:
|
|
6661
|
+
direction: v,
|
|
6662
6662
|
height: { raw: C },
|
|
6663
6663
|
etime: L.data.etime
|
|
6664
6664
|
};
|
|
6665
6665
|
}
|
|
6666
6666
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6667
|
-
const
|
|
6667
|
+
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, C = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6668
6668
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6669
6669
|
type: "json",
|
|
6670
|
-
direction:
|
|
6670
|
+
direction: v,
|
|
6671
6671
|
speed: { raw: C },
|
|
6672
6672
|
etime: L.data.etime
|
|
6673
6673
|
};
|
|
@@ -6675,8 +6675,8 @@ const zm = {
|
|
|
6675
6675
|
}
|
|
6676
6676
|
}
|
|
6677
6677
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json(), this.$nextTick(() => {
|
|
6678
|
-
var h, f, L,
|
|
6679
|
-
(C = (
|
|
6678
|
+
var h, f, L, v, C;
|
|
6679
|
+
(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
6680
|
});
|
|
6681
6681
|
}
|
|
6682
6682
|
},
|
|
@@ -6748,24 +6748,24 @@ const zm = {
|
|
|
6748
6748
|
let L = [];
|
|
6749
6749
|
if (h === "swell") {
|
|
6750
6750
|
f = !0;
|
|
6751
|
-
const
|
|
6752
|
-
for (const z in
|
|
6751
|
+
const v = ((r = this.weatherLayers[h]) == null ? void 0 : r.direction) || {};
|
|
6752
|
+
for (const z in v)
|
|
6753
6753
|
if (z > b && z < u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6754
|
-
const P =
|
|
6754
|
+
const P = v[z].lng;
|
|
6755
6755
|
p > g ? P.forEach((_, D) => {
|
|
6756
6756
|
var T, B, j, G, Q, ie;
|
|
6757
6757
|
if (i < 2) {
|
|
6758
6758
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6759
6759
|
const re = W.point([_, z], {
|
|
6760
|
-
val: ((T =
|
|
6761
|
-
spd: (j =
|
|
6760
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6761
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6762
6762
|
});
|
|
6763
6763
|
L.push(re);
|
|
6764
6764
|
}
|
|
6765
6765
|
} else if ((_ >= p && _ <= 180 || _ >= -180 && _ <= g) && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6766
6766
|
const re = W.point([_, z], {
|
|
6767
|
-
val: ((G =
|
|
6768
|
-
spd: (ie =
|
|
6767
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6768
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6769
6769
|
});
|
|
6770
6770
|
L.push(re);
|
|
6771
6771
|
}
|
|
@@ -6774,15 +6774,15 @@ const zm = {
|
|
|
6774
6774
|
if (p < 2) {
|
|
6775
6775
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6776
6776
|
const re = W.point([_, z], {
|
|
6777
|
-
val: ((T =
|
|
6778
|
-
spd: (j =
|
|
6777
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6778
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6779
6779
|
});
|
|
6780
6780
|
L.push(re);
|
|
6781
6781
|
}
|
|
6782
6782
|
} else if (_ >= p && _ <= g && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6783
6783
|
const re = W.point([_, z], {
|
|
6784
|
-
val: ((G =
|
|
6785
|
-
spd: (ie =
|
|
6784
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6785
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6786
6786
|
});
|
|
6787
6787
|
L.push(re);
|
|
6788
6788
|
}
|
|
@@ -6812,24 +6812,24 @@ const zm = {
|
|
|
6812
6812
|
}
|
|
6813
6813
|
} else if (h === "current") {
|
|
6814
6814
|
f = !0;
|
|
6815
|
-
const
|
|
6816
|
-
for (const z in
|
|
6815
|
+
const v = ((s = this.weatherLayers[h]) == null ? void 0 : s.direction) || {};
|
|
6816
|
+
for (const z in v)
|
|
6817
6817
|
if (z > b && z < u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6818
|
-
const P =
|
|
6818
|
+
const P = v[z].lng;
|
|
6819
6819
|
p > g ? P.forEach((_, D) => {
|
|
6820
6820
|
var T, B, j, G, Q, ie;
|
|
6821
6821
|
if (i < 2) {
|
|
6822
6822
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6823
6823
|
const re = W.point([_, z], {
|
|
6824
|
-
val: ((T =
|
|
6825
|
-
spd: (j =
|
|
6824
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6825
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6826
6826
|
});
|
|
6827
6827
|
L.push(re);
|
|
6828
6828
|
}
|
|
6829
6829
|
} else if ((_ >= p && _ <= 180 || _ >= -180 && _ <= g) && (!(i <= this.zoom) || _ % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6830
6830
|
const re = W.point([_, z], {
|
|
6831
|
-
val: ((G =
|
|
6832
|
-
spd: (ie =
|
|
6831
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6832
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6833
6833
|
});
|
|
6834
6834
|
L.push(re);
|
|
6835
6835
|
}
|
|
@@ -6838,15 +6838,15 @@ const zm = {
|
|
|
6838
6838
|
if (p < 2) {
|
|
6839
6839
|
if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
|
|
6840
6840
|
const re = W.point([_, z], {
|
|
6841
|
-
val: ((T =
|
|
6842
|
-
spd: (j =
|
|
6841
|
+
val: ((T = v[z].val) == null ? void 0 : T[D]) || ((B = v[z].dir) == null ? void 0 : B[D]),
|
|
6842
|
+
spd: (j = v[z].spd) == null ? void 0 : j[D]
|
|
6843
6843
|
});
|
|
6844
6844
|
L.push(re);
|
|
6845
6845
|
}
|
|
6846
6846
|
} else if (_ >= p && _ <= g && (!(i <= this.zoom) || _ % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6847
6847
|
const re = W.point([_, z], {
|
|
6848
|
-
val: ((G =
|
|
6849
|
-
spd: (ie =
|
|
6848
|
+
val: ((G = v[z].val) == null ? void 0 : G[D]) || ((Q = v[z].dir) == null ? void 0 : Q[D]),
|
|
6849
|
+
spd: (ie = v[z].spd) == null ? void 0 : ie[D]
|
|
6850
6850
|
});
|
|
6851
6851
|
L.push(re);
|
|
6852
6852
|
}
|
|
@@ -6873,24 +6873,24 @@ const zm = {
|
|
|
6873
6873
|
}
|
|
6874
6874
|
} else if (h === "wind") {
|
|
6875
6875
|
f = !0;
|
|
6876
|
-
const
|
|
6877
|
-
for (const C in
|
|
6876
|
+
const v = this.weatherLayers.wind.raw;
|
|
6877
|
+
for (const C in v)
|
|
6878
6878
|
if (C > b && C < u && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6879
|
-
const z =
|
|
6879
|
+
const z = v[C].lng;
|
|
6880
6880
|
p > g ? z.forEach((P, _) => {
|
|
6881
6881
|
var D, T, B, j;
|
|
6882
6882
|
if (i < 2) {
|
|
6883
6883
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6884
6884
|
const G = W.point([P, C], {
|
|
6885
|
-
dir: ((D =
|
|
6886
|
-
spd:
|
|
6885
|
+
dir: ((D = v[C].val) == null ? void 0 : D[_]) || ((T = v[C].dir) == null ? void 0 : T[_]),
|
|
6886
|
+
spd: v[C].spd[_]
|
|
6887
6887
|
});
|
|
6888
6888
|
L.push(G);
|
|
6889
6889
|
}
|
|
6890
6890
|
} else if ((P >= p && P <= 180 || P >= -180 && P <= g) && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6891
6891
|
const G = W.point([P, C], {
|
|
6892
|
-
dir: ((B =
|
|
6893
|
-
spd:
|
|
6892
|
+
dir: ((B = v[C].val) == null ? void 0 : B[_]) || ((j = v[C].dir) == null ? void 0 : j[_]),
|
|
6893
|
+
spd: v[C].spd[_]
|
|
6894
6894
|
});
|
|
6895
6895
|
L.push(G);
|
|
6896
6896
|
}
|
|
@@ -6899,15 +6899,15 @@ const zm = {
|
|
|
6899
6899
|
if (i < 2) {
|
|
6900
6900
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6901
6901
|
const G = W.point([P, C], {
|
|
6902
|
-
dir: ((D =
|
|
6903
|
-
spd:
|
|
6902
|
+
dir: ((D = v[C].val) == null ? void 0 : D[_]) || ((T = v[C].dir) == null ? void 0 : T[_]),
|
|
6903
|
+
spd: v[C].spd[_]
|
|
6904
6904
|
});
|
|
6905
6905
|
L.push(G);
|
|
6906
6906
|
}
|
|
6907
6907
|
} else if (P >= p && P <= g && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6908
6908
|
const G = W.point([P, C], {
|
|
6909
|
-
dir: ((B =
|
|
6910
|
-
spd:
|
|
6909
|
+
dir: ((B = v[C].val) == null ? void 0 : B[_]) || ((j = v[C].dir) == null ? void 0 : j[_]),
|
|
6910
|
+
spd: v[C].spd[_]
|
|
6911
6911
|
});
|
|
6912
6912
|
L.push(G);
|
|
6913
6913
|
}
|
|
@@ -6919,11 +6919,11 @@ const zm = {
|
|
|
6919
6919
|
L = this.weatherLayers[h].data;
|
|
6920
6920
|
else {
|
|
6921
6921
|
f = !0;
|
|
6922
|
-
const
|
|
6923
|
-
if (
|
|
6922
|
+
const v = this.weatherLayers[h].raw;
|
|
6923
|
+
if (v) {
|
|
6924
6924
|
const C = [];
|
|
6925
|
-
for (const z in
|
|
6926
|
-
const P =
|
|
6925
|
+
for (const z in v.Polygon) {
|
|
6926
|
+
const P = v.Polygon[z];
|
|
6927
6927
|
for (const _ of P)
|
|
6928
6928
|
C.push(
|
|
6929
6929
|
W.polygon(_, {
|
|
@@ -6931,8 +6931,8 @@ const zm = {
|
|
|
6931
6931
|
})
|
|
6932
6932
|
);
|
|
6933
6933
|
}
|
|
6934
|
-
for (const z in
|
|
6935
|
-
const P =
|
|
6934
|
+
for (const z in v.MultiPolygon) {
|
|
6935
|
+
const P = v.MultiPolygon[z];
|
|
6936
6936
|
for (const _ of P)
|
|
6937
6937
|
C.push(
|
|
6938
6938
|
W.multiPolygon(_, {
|
|
@@ -6940,8 +6940,8 @@ const zm = {
|
|
|
6940
6940
|
})
|
|
6941
6941
|
);
|
|
6942
6942
|
}
|
|
6943
|
-
for (const z in
|
|
6944
|
-
const P =
|
|
6943
|
+
for (const z in v.Point) {
|
|
6944
|
+
const P = v.Point[z];
|
|
6945
6945
|
for (let _ = 0; _ < ((m = P.lng) == null ? void 0 : m.length); _++)
|
|
6946
6946
|
C.push(
|
|
6947
6947
|
W.point([P.lng[_], z], {
|
|
@@ -6958,11 +6958,11 @@ const zm = {
|
|
|
6958
6958
|
L = this.weatherLayers[h].data;
|
|
6959
6959
|
else {
|
|
6960
6960
|
f = !0;
|
|
6961
|
-
const
|
|
6962
|
-
if (
|
|
6961
|
+
const v = this.weatherLayers[h].raw;
|
|
6962
|
+
if (v) {
|
|
6963
6963
|
const C = [];
|
|
6964
|
-
for (const z in
|
|
6965
|
-
const P =
|
|
6964
|
+
for (const z in v.LineString) {
|
|
6965
|
+
const P = v.LineString[z];
|
|
6966
6966
|
for (const _ of P)
|
|
6967
6967
|
C.push(
|
|
6968
6968
|
W.lineString(_, {
|
|
@@ -6970,12 +6970,12 @@ const zm = {
|
|
|
6970
6970
|
})
|
|
6971
6971
|
);
|
|
6972
6972
|
}
|
|
6973
|
-
for (const z in
|
|
6974
|
-
|
|
6973
|
+
for (const z in v.Point)
|
|
6974
|
+
v.Point[z].lng.forEach((P, _) => {
|
|
6975
6975
|
P = H.convertToStdLng(P), C.push(
|
|
6976
6976
|
W.point([P, z], {
|
|
6977
|
-
val:
|
|
6978
|
-
type:
|
|
6977
|
+
val: v.Point[z].val[_],
|
|
6978
|
+
type: v.Point[z].type[_]
|
|
6979
6979
|
})
|
|
6980
6980
|
);
|
|
6981
6981
|
});
|
|
@@ -7031,7 +7031,7 @@ const zm = {
|
|
|
7031
7031
|
}, 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
7032
|
function ud(t, e, o, i, a, l) {
|
|
7033
7033
|
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"),
|
|
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"), 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
7035
|
return A(), R("div", _m, [
|
|
7036
7036
|
n("div", {
|
|
7037
7037
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7045,7 +7045,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7045
7045
|
"open-on-focus": !o.simple,
|
|
7046
7046
|
"open-on-hover": !o.simple
|
|
7047
7047
|
}, {
|
|
7048
|
-
activator:
|
|
7048
|
+
activator: x(({ props: ee }) => [
|
|
7049
7049
|
w(r, V(ee, {
|
|
7050
7050
|
"min-width": "32",
|
|
7051
7051
|
width: "32",
|
|
@@ -7053,7 +7053,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7053
7053
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
7054
7054
|
onClick: l.handleMenuToggle
|
|
7055
7055
|
}), {
|
|
7056
|
-
default:
|
|
7056
|
+
default: x(() => e[9] || (e[9] = [
|
|
7057
7057
|
n("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
|
|
7058
7058
|
])),
|
|
7059
7059
|
_: 2,
|
|
@@ -7076,7 +7076,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7076
7076
|
"open-on-focus": !o.simple,
|
|
7077
7077
|
"open-on-hover": !o.simple
|
|
7078
7078
|
}, {
|
|
7079
|
-
activator:
|
|
7079
|
+
activator: x(({ props: ee }) => [
|
|
7080
7080
|
w(r, V(ee, {
|
|
7081
7081
|
"min-width": "32",
|
|
7082
7082
|
width: "32",
|
|
@@ -7084,7 +7084,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7084
7084
|
class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
|
|
7085
7085
|
onClick: e[0] || (e[0] = (we) => a.legendToggle = !a.legendToggle)
|
|
7086
7086
|
}), {
|
|
7087
|
-
default:
|
|
7087
|
+
default: x(() => e[10] || (e[10] = [
|
|
7088
7088
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
7089
7089
|
])),
|
|
7090
7090
|
_: 2,
|
|
@@ -7100,12 +7100,12 @@ function ud(t, e, o, i, a, l) {
|
|
|
7100
7100
|
class: "card-info d-flex justify-center align-start",
|
|
7101
7101
|
style: ge({ position: "absolute", top: o.simple ? "200px" : "340px", right: a.right + 50 + "px" })
|
|
7102
7102
|
}, {
|
|
7103
|
-
default:
|
|
7103
|
+
default: x(() => [
|
|
7104
7104
|
w(s, {
|
|
7105
7105
|
class: "d-flex flex-column justify-center align-start text-label px-1",
|
|
7106
7106
|
style: { width: "120px" }
|
|
7107
7107
|
}, {
|
|
7108
|
-
default:
|
|
7108
|
+
default: x(() => [
|
|
7109
7109
|
e[11] || (e[11] = n("div", { class: "text-body-2 font-weight-600 mb-2 mx-1" }, "Wind Level", -1)),
|
|
7110
7110
|
n("div", Mm, [
|
|
7111
7111
|
(A(!0), R(Ce, null, Me(a.legend.barbs, (ee, we) => (A(), R("div", {
|
|
@@ -7130,7 +7130,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7130
7130
|
class: "d-flex flex-column justify-center align-start text-label px-2",
|
|
7131
7131
|
style: { width: "100px" }
|
|
7132
7132
|
}, {
|
|
7133
|
-
default:
|
|
7133
|
+
default: x(() => [
|
|
7134
7134
|
e[12] || (e[12] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
7135
7135
|
n("div", Tm, [
|
|
7136
7136
|
(A(!0), R(Ce, null, Me(a.legend.sigWaveHeight, (ee, we) => (A(), R("div", {
|
|
@@ -7155,7 +7155,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7155
7155
|
class: "d-flex flex-column justify-center align-start text-label pl-0 pr-2",
|
|
7156
7156
|
style: { width: "100px" }
|
|
7157
7157
|
}, {
|
|
7158
|
-
default:
|
|
7158
|
+
default: x(() => [
|
|
7159
7159
|
e[13] || (e[13] = n("div", { class: "text-body-2 font-weight-600 mb-2 mx-2" }, "Current", -1)),
|
|
7160
7160
|
n("div", Em, [
|
|
7161
7161
|
(A(!0), R(Ce, null, Me(a.legend.current, (ee, we) => (A(), R("div", {
|
|
@@ -7207,7 +7207,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7207
7207
|
class: "mr-n2",
|
|
7208
7208
|
onClick: l.handleMenuToggle
|
|
7209
7209
|
}, {
|
|
7210
|
-
default:
|
|
7210
|
+
default: x(() => e[14] || (e[14] = [
|
|
7211
7211
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
7212
7212
|
])),
|
|
7213
7213
|
_: 1,
|
|
@@ -7225,7 +7225,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7225
7225
|
mandatory: "",
|
|
7226
7226
|
group: ""
|
|
7227
7227
|
}, {
|
|
7228
|
-
default:
|
|
7228
|
+
default: x(() => [
|
|
7229
7229
|
w(r, {
|
|
7230
7230
|
density: "compact",
|
|
7231
7231
|
height: "28",
|
|
@@ -7234,7 +7234,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7234
7234
|
color: a.currentModel === "GFS" ? "primary" : "",
|
|
7235
7235
|
"base-color": ""
|
|
7236
7236
|
}, {
|
|
7237
|
-
default:
|
|
7237
|
+
default: x(() => e[15] || (e[15] = [
|
|
7238
7238
|
N(" NOAA ", -1)
|
|
7239
7239
|
])),
|
|
7240
7240
|
_: 1,
|
|
@@ -7248,7 +7248,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7248
7248
|
"base-color": "",
|
|
7249
7249
|
value: "ECMWF"
|
|
7250
7250
|
}, {
|
|
7251
|
-
default:
|
|
7251
|
+
default: x(() => e[16] || (e[16] = [
|
|
7252
7252
|
N(" ECMWF ", -1)
|
|
7253
7253
|
])),
|
|
7254
7254
|
_: 1,
|
|
@@ -7265,11 +7265,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7265
7265
|
class: "block-bg mx-auto mb-2",
|
|
7266
7266
|
elevation: "0"
|
|
7267
7267
|
}, {
|
|
7268
|
-
default:
|
|
7268
|
+
default: x(() => [
|
|
7269
7269
|
w(u, { class: "border-b-thin" }, {
|
|
7270
|
-
default:
|
|
7270
|
+
default: x(() => [
|
|
7271
7271
|
w(b, { class: "text-h6" }, {
|
|
7272
|
-
default:
|
|
7272
|
+
default: x(() => [
|
|
7273
7273
|
N(y(t.$t("weather.overlays")), 1)
|
|
7274
7274
|
]),
|
|
7275
7275
|
_: 1
|
|
@@ -7278,7 +7278,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7278
7278
|
_: 1
|
|
7279
7279
|
}),
|
|
7280
7280
|
w(s, { class: "py-2 mx-n1" }, {
|
|
7281
|
-
default:
|
|
7281
|
+
default: x(() => [
|
|
7282
7282
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((ee) => ee.overlays), (ee) => (A(), F(h, {
|
|
7283
7283
|
key: ee.key,
|
|
7284
7284
|
modelValue: a.checkList,
|
|
@@ -7302,11 +7302,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7302
7302
|
class: "block-bg mx-auto mb-2",
|
|
7303
7303
|
elevation: "0"
|
|
7304
7304
|
}, {
|
|
7305
|
-
default:
|
|
7305
|
+
default: x(() => [
|
|
7306
7306
|
w(u, { class: "border-b-thin" }, {
|
|
7307
|
-
default:
|
|
7307
|
+
default: x(() => [
|
|
7308
7308
|
w(b, { class: "text-h6" }, {
|
|
7309
|
-
default:
|
|
7309
|
+
default: x(() => [
|
|
7310
7310
|
N(y(t.$t("weather.renders")), 1)
|
|
7311
7311
|
]),
|
|
7312
7312
|
_: 1
|
|
@@ -7315,7 +7315,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7315
7315
|
_: 1
|
|
7316
7316
|
}),
|
|
7317
7317
|
w(s, { class: "py-2 mx-n1" }, {
|
|
7318
|
-
default:
|
|
7318
|
+
default: x(() => [
|
|
7319
7319
|
(A(!0), R(Ce, null, Me(a.tagLayers.filter((ee) => !ee.overlays), (ee) => (A(), R(Ce, {
|
|
7320
7320
|
key: ee.key
|
|
7321
7321
|
}, [
|
|
@@ -7374,7 +7374,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7374
7374
|
mandatory: "",
|
|
7375
7375
|
disabled: !a.autoActive
|
|
7376
7376
|
}, {
|
|
7377
|
-
default:
|
|
7377
|
+
default: x(() => [
|
|
7378
7378
|
w(r, {
|
|
7379
7379
|
density: "compact",
|
|
7380
7380
|
height: "30",
|
|
@@ -7384,7 +7384,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7384
7384
|
"base-color": "grey-lighten-1",
|
|
7385
7385
|
disabled: !a.autoActive
|
|
7386
7386
|
}, {
|
|
7387
|
-
default:
|
|
7387
|
+
default: x(() => [
|
|
7388
7388
|
N(y(t.$t("weather.significant")), 1)
|
|
7389
7389
|
]),
|
|
7390
7390
|
_: 1
|
|
@@ -7398,7 +7398,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7398
7398
|
disabled: !a.autoActive,
|
|
7399
7399
|
value: "swell"
|
|
7400
7400
|
}, {
|
|
7401
|
-
default:
|
|
7401
|
+
default: x(() => [
|
|
7402
7402
|
N(y(t.$t("weather.swell")), 1)
|
|
7403
7403
|
]),
|
|
7404
7404
|
_: 1
|
|
@@ -7418,7 +7418,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7418
7418
|
mandatory: "",
|
|
7419
7419
|
disabled: !a.autoActive
|
|
7420
7420
|
}, {
|
|
7421
|
-
default:
|
|
7421
|
+
default: x(() => [
|
|
7422
7422
|
w(r, {
|
|
7423
7423
|
density: "compact",
|
|
7424
7424
|
height: "30",
|
|
@@ -7428,7 +7428,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7428
7428
|
"base-color": "grey-lighten-1",
|
|
7429
7429
|
disabled: !a.autoActive
|
|
7430
7430
|
}, {
|
|
7431
|
-
default:
|
|
7431
|
+
default: x(() => [
|
|
7432
7432
|
N(y(t.$t("weather.coverage")), 1)
|
|
7433
7433
|
]),
|
|
7434
7434
|
_: 1
|
|
@@ -7442,7 +7442,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7442
7442
|
disabled: !a.autoActive,
|
|
7443
7443
|
value: "ice-thickness"
|
|
7444
7444
|
}, {
|
|
7445
|
-
default:
|
|
7445
|
+
default: x(() => [
|
|
7446
7446
|
N(y(t.$t("weather.thickness")), 1)
|
|
7447
7447
|
]),
|
|
7448
7448
|
_: 1
|
|
@@ -7461,11 +7461,11 @@ function ud(t, e, o, i, a, l) {
|
|
|
7461
7461
|
class: "block-bg mx-auto mb-2",
|
|
7462
7462
|
elevation: "0"
|
|
7463
7463
|
}, {
|
|
7464
|
-
default:
|
|
7464
|
+
default: x(() => [
|
|
7465
7465
|
w(u, { class: "border-b-thin" }, {
|
|
7466
|
-
default:
|
|
7466
|
+
default: x(() => [
|
|
7467
7467
|
w(b, { class: "text-h6" }, {
|
|
7468
|
-
default:
|
|
7468
|
+
default: x(() => [
|
|
7469
7469
|
N(y(t.$t("weather.forecastModel")), 1)
|
|
7470
7470
|
]),
|
|
7471
7471
|
_: 1
|
|
@@ -7474,15 +7474,15 @@ function ud(t, e, o, i, a, l) {
|
|
|
7474
7474
|
_: 1
|
|
7475
7475
|
}),
|
|
7476
7476
|
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,
|
|
7477
|
+
default: x(() => {
|
|
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, 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
7479
|
return [
|
|
7480
7480
|
n("div", Xm, y(t.$t("weather.atmospheric")), 1),
|
|
7481
7481
|
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
7482
|
n("div", Hm, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7483
7483
|
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
7484
|
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 = (
|
|
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 = (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
7486
|
n("div", Km, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7487
7487
|
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
7488
|
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 +7498,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7498
7498
|
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
7499
|
w(d),
|
|
7500
7500
|
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 = (
|
|
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 = (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
7502
|
n("div", md, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7503
7503
|
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
7504
|
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 +7520,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7520
7520
|
wind: (be = a.weatherLayers) == null ? void 0 : be.wind,
|
|
7521
7521
|
"menu-toggle": o.menuToggle
|
|
7522
7522
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : I("", !0),
|
|
7523
|
-
o.map ? (A(), F(
|
|
7523
|
+
o.map ? (A(), F(v, V({
|
|
7524
7524
|
key: 2,
|
|
7525
7525
|
map: o.map,
|
|
7526
7526
|
"before-layer": "empty-layer-2",
|
|
@@ -7616,7 +7616,7 @@ function ud(t, e, o, i, a, l) {
|
|
|
7616
7616
|
"menu-toggle": o.menuToggle,
|
|
7617
7617
|
simple: o.simple
|
|
7618
7618
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : I("", !0),
|
|
7619
|
-
o.map ? (A(), F(
|
|
7619
|
+
o.map ? (A(), F(xe, V({
|
|
7620
7620
|
key: 15,
|
|
7621
7621
|
viewport: a.viewport,
|
|
7622
7622
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.temp,
|
|
@@ -7976,10 +7976,10 @@ let ul = class {
|
|
|
7976
7976
|
}), a;
|
|
7977
7977
|
}
|
|
7978
7978
|
static pickHourly(e, o) {
|
|
7979
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
7979
|
+
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
7980
|
const de = typeof o == "string" ? S(o) : o;
|
|
7981
7981
|
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)) || ((
|
|
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)) || ((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
7983
|
Fe = Fe.isBefore(We) ? We.clone() : Fe, Fe = Fe.isAfter(J) ? J.clone() : Fe;
|
|
7984
7984
|
const ce = Fe.utc().diff(We, "h", !1);
|
|
7985
7985
|
let Be, mt;
|
|
@@ -7997,7 +7997,7 @@ let ul = class {
|
|
|
7997
7997
|
Be = {
|
|
7998
7998
|
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
7999
|
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: ((
|
|
8000
|
+
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
8001
|
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
8002
|
precip: {
|
|
8003
8003
|
probability: ((q = K == null ? void 0 : K.precipitation_probability) == null ? void 0 : q.at(ce)) ?? 0,
|
|
@@ -8032,7 +8032,7 @@ let ul = class {
|
|
|
8032
8032
|
if (oe != null && oe.length) {
|
|
8033
8033
|
let ft = 0;
|
|
8034
8034
|
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 = ((
|
|
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 = ((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
8036
|
mt = {
|
|
8037
8037
|
wave: {
|
|
8038
8038
|
sig: {
|
|
@@ -8102,7 +8102,7 @@ let ul = class {
|
|
|
8102
8102
|
};
|
|
8103
8103
|
}
|
|
8104
8104
|
static pickDaily(e, o) {
|
|
8105
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
8105
|
+
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
8106
|
const oo = typeof o == "string" ? S(o) : o;
|
|
8107
8107
|
let Xe = oo.clone();
|
|
8108
8108
|
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 +8116,7 @@ let ul = class {
|
|
|
8116
8116
|
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
8117
|
temp: {
|
|
8118
8118
|
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: ((
|
|
8119
|
+
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
8120
|
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
8121
|
},
|
|
8122
8122
|
apparentTemp: {
|
|
@@ -8124,7 +8124,7 @@ let ul = class {
|
|
|
8124
8124
|
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
8125
|
},
|
|
8126
8126
|
precip: {
|
|
8127
|
-
sum: ((re = ae.precipitation_sum) == null ? void 0 : re.at(de)) ?? ((be = (
|
|
8127
|
+
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
8128
|
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
8129
|
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
8130
|
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 +8147,7 @@ let ul = class {
|
|
|
8147
8147
|
visibility: {
|
|
8148
8148
|
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
8149
|
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(((
|
|
8150
|
+
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
8151
|
}
|
|
8152
8152
|
};
|
|
8153
8153
|
const { name: ct, url: qe, bg: We } = this.parseWeatherCode(De.code, !0);
|
|
@@ -8836,7 +8836,7 @@ const gd = {
|
|
|
8836
8836
|
handleRefresh() {
|
|
8837
8837
|
var e, o;
|
|
8838
8838
|
(((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,
|
|
8839
|
+
var l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _, D;
|
|
8840
8840
|
let a = "";
|
|
8841
8841
|
switch (!0) {
|
|
8842
8842
|
case (((l = i.properties.wind) == null ? void 0 : l.kts) < 32 || ((r = i.properties) == null ? void 0 : r.kts) < 32):
|
|
@@ -8861,7 +8861,7 @@ const gd = {
|
|
|
8861
8861
|
a = "superTy";
|
|
8862
8862
|
break;
|
|
8863
8863
|
}
|
|
8864
|
-
i.properties.levelI18n = a, ((L = i.geometry) == null ? void 0 : L.type) === "Point" && ((
|
|
8864
|
+
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
8865
|
}), this.handleInit();
|
|
8866
8866
|
},
|
|
8867
8867
|
handleInit() {
|
|
@@ -9113,7 +9113,7 @@ const gd = {
|
|
|
9113
9113
|
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
9114
|
},
|
|
9115
9115
|
handleDateChange() {
|
|
9116
|
-
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
9116
|
+
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
9117
|
if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9118
9118
|
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
9119
|
q.forEach((Z) => {
|
|
@@ -9157,7 +9157,7 @@ const gd = {
|
|
|
9157
9157
|
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
9158
|
}
|
|
9159
9159
|
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 && ((
|
|
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 && ((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
9161
|
const fe = `<svg t="1719918955501"
|
|
9162
9162
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9163
9163
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9174,7 +9174,7 @@ const gd = {
|
|
|
9174
9174
|
fill="#ffffff" p-id="18386"></path>
|
|
9175
9175
|
</svg>`, Le = document.createElement("div");
|
|
9176
9176
|
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
|
|
9177
|
+
const ze = new ve.Marker(Le).setLngLat(Z.geometry.coordinates).addTo(this.map);
|
|
9178
9178
|
this.interpolateMarkers.push(ze);
|
|
9179
9179
|
}
|
|
9180
9180
|
this.$emit("tropicalCenterPoints", le);
|
|
@@ -9206,7 +9206,7 @@ const gd = {
|
|
|
9206
9206
|
drawTropicalsInfoMaker(t) {
|
|
9207
9207
|
this.$nextTick(() => {
|
|
9208
9208
|
const e = document.getElementById("idm-tropical-gl4-info");
|
|
9209
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new
|
|
9209
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(e).setLngLat(t).setOffset([220, 0]).addTo(this.map);
|
|
9210
9210
|
});
|
|
9211
9211
|
},
|
|
9212
9212
|
handleCloseInfoMarker() {
|
|
@@ -9303,7 +9303,7 @@ const gd = {
|
|
|
9303
9303
|
);
|
|
9304
9304
|
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
9305
|
const d = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
9306
|
-
this.hoverMarker = new
|
|
9306
|
+
this.hoverMarker = new ve.Marker(d).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
9307
9307
|
}));
|
|
9308
9308
|
},
|
|
9309
9309
|
handleLeave() {
|
|
@@ -9314,7 +9314,7 @@ const gd = {
|
|
|
9314
9314
|
}, fd = { class: "idm-tropical-gl4" }, yd = { class: "pb-1" }, bd = { class: "text-h5 font-weight-600" }, wd = {
|
|
9315
9315
|
key: 0,
|
|
9316
9316
|
class: "text-h5 font-weight-600"
|
|
9317
|
-
},
|
|
9317
|
+
}, 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
9318
|
class: "text-label pr-1",
|
|
9319
9319
|
style: { width: "70px" }
|
|
9320
9320
|
}, Id = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Ed = { class: "more" }, Gd = {
|
|
@@ -9324,7 +9324,7 @@ const gd = {
|
|
|
9324
9324
|
key: 1,
|
|
9325
9325
|
class: "my-3 w-100",
|
|
9326
9326
|
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" },
|
|
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" }, 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
9328
|
key: 0,
|
|
9329
9329
|
class: "d-flex justify-start align-center"
|
|
9330
9330
|
}, Th = { class: "text-label pr-1" }, Rh = {
|
|
@@ -9364,7 +9364,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9364
9364
|
"open-on-focus": !o.simple,
|
|
9365
9365
|
"open-on-hover": !o.simple
|
|
9366
9366
|
}, {
|
|
9367
|
-
activator:
|
|
9367
|
+
activator: x(({ props: b }) => [
|
|
9368
9368
|
w(r, V(b, {
|
|
9369
9369
|
"min-width": "32",
|
|
9370
9370
|
width: "32",
|
|
@@ -9372,7 +9372,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9372
9372
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
9373
9373
|
onClick: l.handleMenuToggle
|
|
9374
9374
|
}), {
|
|
9375
|
-
default:
|
|
9375
|
+
default: x(() => e[2] || (e[2] = [
|
|
9376
9376
|
n("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
|
|
9377
9377
|
])),
|
|
9378
9378
|
_: 2,
|
|
@@ -9392,14 +9392,14 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9392
9392
|
class: ue(["w-100", o.simple ? "rounded-t-4 bg-none" : ""]),
|
|
9393
9393
|
elevation: o.simple ? 0 : 16
|
|
9394
9394
|
}, {
|
|
9395
|
-
default:
|
|
9395
|
+
default: x(() => [
|
|
9396
9396
|
w(s, null, {
|
|
9397
|
-
default:
|
|
9398
|
-
var b, u, h, f, L,
|
|
9397
|
+
default: x(() => {
|
|
9398
|
+
var b, u, h, f, L, v, C, z, P, _, D, T;
|
|
9399
9399
|
return [
|
|
9400
9400
|
n("div", yd, [
|
|
9401
9401
|
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 = (
|
|
9402
|
+
(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
9403
|
]),
|
|
9404
9404
|
w(r, {
|
|
9405
9405
|
icon: "",
|
|
@@ -9408,14 +9408,14 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9408
9408
|
class: "close",
|
|
9409
9409
|
onClick: _e(l.handleCloseInfoMarker, ["stop"])
|
|
9410
9410
|
}, {
|
|
9411
|
-
default:
|
|
9411
|
+
default: x(() => e[3] || (e[3] = [
|
|
9412
9412
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
9413
9413
|
])),
|
|
9414
9414
|
_: 1,
|
|
9415
9415
|
__: [3]
|
|
9416
9416
|
}, 8, ["onClick"]),
|
|
9417
|
-
n("div",
|
|
9418
|
-
n("span",
|
|
9417
|
+
n("div", xd, [
|
|
9418
|
+
n("span", vd, y(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
9419
9419
|
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
9420
|
])
|
|
9421
9421
|
];
|
|
@@ -9424,8 +9424,8 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9424
9424
|
}),
|
|
9425
9425
|
w(d),
|
|
9426
9426
|
w(s, { class: "text-body-1 py-3" }, {
|
|
9427
|
-
default:
|
|
9428
|
-
var b, u, h, f, L,
|
|
9427
|
+
default: x(() => {
|
|
9428
|
+
var b, u, h, f, L, v, C, z, P;
|
|
9429
9429
|
return [
|
|
9430
9430
|
n("div", Ad, [
|
|
9431
9431
|
n("div", kd, [
|
|
@@ -9435,7 +9435,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9435
9435
|
]),
|
|
9436
9436
|
n("div", zd, [
|
|
9437
9437
|
n("label", _d, y(t.$t("weather.pressure")) + " : ", 1),
|
|
9438
|
-
n("span", null, y(((
|
|
9438
|
+
n("span", null, y(((v = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : v.pressure) || "-") + " hPa", 1)
|
|
9439
9439
|
])
|
|
9440
9440
|
]),
|
|
9441
9441
|
n("div", Cd, [
|
|
@@ -9460,7 +9460,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9460
9460
|
class: ue(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
9461
9461
|
onClick: _e((T) => l.handleForecastToggle(_), ["stop"])
|
|
9462
9462
|
}, {
|
|
9463
|
-
default:
|
|
9463
|
+
default: x(() => [
|
|
9464
9464
|
N(y(_.model), 1)
|
|
9465
9465
|
]),
|
|
9466
9466
|
_: 2
|
|
@@ -9476,7 +9476,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9476
9476
|
key: 0,
|
|
9477
9477
|
class: "d-flex justify-space-between"
|
|
9478
9478
|
}, {
|
|
9479
|
-
default:
|
|
9479
|
+
default: x(() => [
|
|
9480
9480
|
w(r, {
|
|
9481
9481
|
density: "compact",
|
|
9482
9482
|
"prepend-icon": "",
|
|
@@ -9485,10 +9485,10 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9485
9485
|
class: "text-none text-body-1",
|
|
9486
9486
|
onClick: e[0] || (e[0] = _e((b) => a.showLegend = !a.showLegend, ["stop"]))
|
|
9487
9487
|
}, {
|
|
9488
|
-
prepend:
|
|
9488
|
+
prepend: x(() => e[4] || (e[4] = [
|
|
9489
9489
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9490
9490
|
])),
|
|
9491
|
-
default:
|
|
9491
|
+
default: x(() => [
|
|
9492
9492
|
N(" " + y(t.$t("weather.legend")), 1)
|
|
9493
9493
|
]),
|
|
9494
9494
|
_: 1
|
|
@@ -9501,7 +9501,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9501
9501
|
class: "text-none text-body-1",
|
|
9502
9502
|
onClick: e[1] || (e[1] = _e((b) => l.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
9503
9503
|
}, {
|
|
9504
|
-
default:
|
|
9504
|
+
default: x(() => [
|
|
9505
9505
|
N(y(t.$t("actions.viewReport")), 1)
|
|
9506
9506
|
]),
|
|
9507
9507
|
_: 1
|
|
@@ -9560,9 +9560,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9560
9560
|
])
|
|
9561
9561
|
])) : (A(), R("div", lh, [
|
|
9562
9562
|
uo(w(p, { elevation: "16" }, {
|
|
9563
|
-
default:
|
|
9563
|
+
default: x(() => [
|
|
9564
9564
|
w(s, null, {
|
|
9565
|
-
default:
|
|
9565
|
+
default: x(() => [
|
|
9566
9566
|
uo(n("div", {
|
|
9567
9567
|
class: ue(["pa-1 d-flex justify-space-between align-center flex-wrap", o.locale === "zhHans" ? " ga-2" : " ga-3"])
|
|
9568
9568
|
}, [
|
|
@@ -9594,9 +9594,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9594
9594
|
e[21] || (e[21] = n("div", { class: "icon history" }, null, -1)),
|
|
9595
9595
|
n("div", wh, y(t.$t("tropical.history")), 1)
|
|
9596
9596
|
]),
|
|
9597
|
-
n("div",
|
|
9597
|
+
n("div", xh, [
|
|
9598
9598
|
e[22] || (e[22] = n("div", { class: "icon forecast" }, null, -1)),
|
|
9599
|
-
n("div",
|
|
9599
|
+
n("div", vh, y(t.$t("tropical.forecast")), 1)
|
|
9600
9600
|
]),
|
|
9601
9601
|
n("div", Ah, [
|
|
9602
9602
|
e[23] || (e[23] = n("div", { class: "icon r7" }, null, -1)),
|
|
@@ -9624,9 +9624,9 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9624
9624
|
elevation: "16",
|
|
9625
9625
|
"max-width": "290"
|
|
9626
9626
|
}, {
|
|
9627
|
-
default:
|
|
9627
|
+
default: x(() => [
|
|
9628
9628
|
w(g, null, {
|
|
9629
|
-
default:
|
|
9629
|
+
default: x(() => {
|
|
9630
9630
|
var b, u, h, f;
|
|
9631
9631
|
return [
|
|
9632
9632
|
n("div", _h, [
|
|
@@ -9639,8 +9639,8 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9639
9639
|
}),
|
|
9640
9640
|
w(d),
|
|
9641
9641
|
w(s, { class: "text-body-1" }, {
|
|
9642
|
-
default:
|
|
9643
|
-
var b, u, h, f, L,
|
|
9642
|
+
default: x(() => {
|
|
9643
|
+
var b, u, h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be;
|
|
9644
9644
|
return [
|
|
9645
9645
|
n("div", Ph, [
|
|
9646
9646
|
((b = a.hoverPoint) == null ? void 0 : b.type) === "forecast" ? (A(), R("div", Sh, [
|
|
@@ -9653,7 +9653,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9653
9653
|
])) : I("", !0),
|
|
9654
9654
|
((L = a.hoverPoint) == null ? void 0 : L.type) === "history" ? (A(), R("div", Ih, [
|
|
9655
9655
|
n("label", Eh, y(t.$t("tropical.forecast")) + " : ", 1),
|
|
9656
|
-
n("span", null, y(l.computeTzTime((
|
|
9656
|
+
n("span", null, y(l.computeTzTime((v = a.hoverPoint) == null ? void 0 : v.date, o.timeZone)), 1)
|
|
9657
9657
|
])) : I("", !0),
|
|
9658
9658
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (A(), R("div", Gh, [
|
|
9659
9659
|
n("label", Fh, y(t.$t("tropical.model")) + " : ", 1),
|
|
@@ -9677,7 +9677,7 @@ function Kh(t, e, o, i, a, l) {
|
|
|
9677
9677
|
])) : I("", !0),
|
|
9678
9678
|
((re = a.hoverPoint) == null ? void 0 : re.type) === "history" ? (A(), R("div", Hh, [
|
|
9679
9679
|
n("label", Yh, y(t.$t("tropical.moveDir")) + " : ", 1),
|
|
9680
|
-
n("span", null, y(((be = JSON.parse(((
|
|
9680
|
+
n("span", null, y(((be = JSON.parse(((xe = a.hoverPoint) == null ? void 0 : xe.movement) || "{}")) == null ? void 0 : be.deg) ?? "-") + " °", 1)
|
|
9681
9681
|
])) : I("", !0),
|
|
9682
9682
|
n("div", Uh, [
|
|
9683
9683
|
n("label", Jh, y(t.$t("tropical.position")) + " : ", 1),
|
|
@@ -9900,9 +9900,9 @@ function ou(t, e, o, i, a, l) {
|
|
|
9900
9900
|
class: "card-box d-flex flex-column border elevation-12",
|
|
9901
9901
|
style: ge(l.getStyle)
|
|
9902
9902
|
}, {
|
|
9903
|
-
default:
|
|
9903
|
+
default: x(() => [
|
|
9904
9904
|
w(p, { class: "w-100 flex-1-1-0 d-flex pa-0 text-body-1" }, {
|
|
9905
|
-
default:
|
|
9905
|
+
default: x(() => [
|
|
9906
9906
|
n("div", $h, [
|
|
9907
9907
|
w(r, {
|
|
9908
9908
|
modelValue: a.currentDate,
|
|
@@ -9923,7 +9923,7 @@ function ou(t, e, o, i, a, l) {
|
|
|
9923
9923
|
n("div", eu, [
|
|
9924
9924
|
n("div", tu, y(t.$t("time.time")), 1),
|
|
9925
9925
|
w(m, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
9926
|
-
default:
|
|
9926
|
+
default: x(() => [
|
|
9927
9927
|
(A(!0), R(Ce, null, Me(l.hourOptions, (h, f) => (A(), F(d, {
|
|
9928
9928
|
key: f,
|
|
9929
9929
|
value: h,
|
|
@@ -9935,12 +9935,12 @@ function ou(t, e, o, i, a, l) {
|
|
|
9935
9935
|
class: "rounded-xl",
|
|
9936
9936
|
variant: a.currentTime === h ? "flat" : "text"
|
|
9937
9937
|
}, {
|
|
9938
|
-
default:
|
|
9938
|
+
default: x(() => [
|
|
9939
9939
|
w(s, {
|
|
9940
9940
|
class: "text-body-2 font-weight-600 text-center",
|
|
9941
9941
|
onClick: (L) => a.currentTime = h
|
|
9942
9942
|
}, {
|
|
9943
|
-
default:
|
|
9943
|
+
default: x(() => [
|
|
9944
9944
|
N(y(h), 1)
|
|
9945
9945
|
]),
|
|
9946
9946
|
_: 2
|
|
@@ -9960,14 +9960,14 @@ function ou(t, e, o, i, a, l) {
|
|
|
9960
9960
|
class: "w-100 d-flex justify-end align-center px-4 ga-4",
|
|
9961
9961
|
style: { height: "50px" }
|
|
9962
9962
|
}, {
|
|
9963
|
-
default:
|
|
9963
|
+
default: x(() => [
|
|
9964
9964
|
w(g, {
|
|
9965
9965
|
size: "small",
|
|
9966
9966
|
variant: "tonal",
|
|
9967
9967
|
class: "text-none text-body-1 px-4",
|
|
9968
9968
|
onClick: l.handleCancelDate
|
|
9969
9969
|
}, {
|
|
9970
|
-
default:
|
|
9970
|
+
default: x(() => [
|
|
9971
9971
|
N(y(t.$t("actions.cancel")), 1)
|
|
9972
9972
|
]),
|
|
9973
9973
|
_: 1
|
|
@@ -9979,7 +9979,7 @@ function ou(t, e, o, i, a, l) {
|
|
|
9979
9979
|
class: "text-none text-body-1 px-4",
|
|
9980
9980
|
onClick: l.handleConfirmDate
|
|
9981
9981
|
}, {
|
|
9982
|
-
default:
|
|
9982
|
+
default: x(() => [
|
|
9983
9983
|
N(y(t.$t("actions.confirm")), 1)
|
|
9984
9984
|
]),
|
|
9985
9985
|
_: 1
|
|
@@ -10257,10 +10257,10 @@ const au = {
|
|
|
10257
10257
|
}), this.loading = !1;
|
|
10258
10258
|
},
|
|
10259
10259
|
initTableData(t) {
|
|
10260
|
-
var o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
10260
|
+
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
10261
|
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
10262
|
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((
|
|
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((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
10264
|
},
|
|
10265
10265
|
handleBind() {
|
|
10266
10266
|
var t, e;
|
|
@@ -10290,14 +10290,14 @@ const au = {
|
|
|
10290
10290
|
var o, i;
|
|
10291
10291
|
(o = this.positionMarker) == null || o.remove();
|
|
10292
10292
|
const e = (i = document.getElementById("idm-position-icon")) == null ? void 0 : i.cloneNode(!0);
|
|
10293
|
-
this.positionMarker = new
|
|
10293
|
+
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
|
|
10294
10294
|
}));
|
|
10295
10295
|
},
|
|
10296
10296
|
drawMeteoInfoMarker(t) {
|
|
10297
10297
|
this.$nextTick(() => {
|
|
10298
10298
|
var o;
|
|
10299
10299
|
const e = document.getElementById("idm-gl4-spot-meteo");
|
|
10300
|
-
this.meteoInfoMarker ? (o = this.meteoInfoMarker) == null || o.setLngLat(t) : this.meteoInfoMarker = new
|
|
10300
|
+
this.meteoInfoMarker ? (o = this.meteoInfoMarker) == null || o.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
10301
10301
|
});
|
|
10302
10302
|
},
|
|
10303
10303
|
handleMeteoMore() {
|
|
@@ -10323,7 +10323,7 @@ const au = {
|
|
|
10323
10323
|
this.$emit("cancelFollow", t);
|
|
10324
10324
|
}
|
|
10325
10325
|
}
|
|
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" },
|
|
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" }, 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
10327
|
style: { width: "100px" },
|
|
10328
10328
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10329
10329
|
}, Cu = { class: "pa-0 px-0" }, Mu = { class: "mx-0 py-2 d-flex align-center justify-start" }, Pu = {
|
|
@@ -10381,9 +10381,9 @@ const au = {
|
|
|
10381
10381
|
class: "multi-color-icon",
|
|
10382
10382
|
style: { height: "30px", width: "30px" },
|
|
10383
10383
|
"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"),
|
|
10384
|
+
}, xp = ["xlink:href"];
|
|
10385
|
+
function vp(t, e, o, i, a, l) {
|
|
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"), v = M("VCard");
|
|
10387
10387
|
return A(), R("div", iu, [
|
|
10388
10388
|
n("div", {
|
|
10389
10389
|
class: "menu-bar-box transition pa-1",
|
|
@@ -10397,7 +10397,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10397
10397
|
"open-on-focus": !o.simple,
|
|
10398
10398
|
"open-on-hover": !o.simple
|
|
10399
10399
|
}, {
|
|
10400
|
-
activator:
|
|
10400
|
+
activator: x(({ props: C }) => [
|
|
10401
10401
|
w(r, V(C, {
|
|
10402
10402
|
"min-width": "32",
|
|
10403
10403
|
width: "32",
|
|
@@ -10405,7 +10405,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10405
10405
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
10406
10406
|
onClick: l.handleMenuToggle
|
|
10407
10407
|
}), {
|
|
10408
|
-
default:
|
|
10408
|
+
default: x(() => e[8] || (e[8] = [
|
|
10409
10409
|
n("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
|
|
10410
10410
|
])),
|
|
10411
10411
|
_: 2,
|
|
@@ -10415,14 +10415,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10415
10415
|
_: 1
|
|
10416
10416
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
10417
10417
|
], 4),
|
|
10418
|
-
a.showForm && !o.simple ? (A(), F(
|
|
10418
|
+
a.showForm && !o.simple ? (A(), F(v, {
|
|
10419
10419
|
key: 0,
|
|
10420
10420
|
class: "spot-form-card",
|
|
10421
10421
|
style: ge({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
10422
10422
|
}, {
|
|
10423
|
-
default:
|
|
10423
|
+
default: x(() => [
|
|
10424
10424
|
w(s, { class: "d-flex justify-space-between align-center" }, {
|
|
10425
|
-
default:
|
|
10425
|
+
default: x(() => [
|
|
10426
10426
|
n("div", lu, [
|
|
10427
10427
|
n("div", ru, y(t.$t("spot.spotWeather")), 1)
|
|
10428
10428
|
]),
|
|
@@ -10433,7 +10433,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10433
10433
|
class: "mr-n2",
|
|
10434
10434
|
onClick: l.handleCloseForm
|
|
10435
10435
|
}, {
|
|
10436
|
-
default:
|
|
10436
|
+
default: x(() => e[9] || (e[9] = [
|
|
10437
10437
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10438
10438
|
])),
|
|
10439
10439
|
_: 1,
|
|
@@ -10449,9 +10449,9 @@ function xp(t, e, o, i, a, l) {
|
|
|
10449
10449
|
class: "form-box",
|
|
10450
10450
|
onSubmit: _e(l.submitForm, ["prevent"])
|
|
10451
10451
|
}, {
|
|
10452
|
-
default:
|
|
10452
|
+
default: x(() => [
|
|
10453
10453
|
w(h, { class: "text-body-1 pa-4 py-2" }, {
|
|
10454
|
-
default:
|
|
10454
|
+
default: x(() => [
|
|
10455
10455
|
n("div", nu, [
|
|
10456
10456
|
n("div", su, [
|
|
10457
10457
|
N(y(t.$t("spot.lat")), 1),
|
|
@@ -10500,7 +10500,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10500
10500
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10501
10501
|
onClick: e[2] || (e[2] = (C) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10502
10502
|
}, {
|
|
10503
|
-
default:
|
|
10503
|
+
default: x(() => [
|
|
10504
10504
|
N(y(a.form.latDirection), 1)
|
|
10505
10505
|
]),
|
|
10506
10506
|
_: 1
|
|
@@ -10552,7 +10552,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10552
10552
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10553
10553
|
onClick: e[5] || (e[5] = (C) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10554
10554
|
}, {
|
|
10555
|
-
default:
|
|
10555
|
+
default: x(() => [
|
|
10556
10556
|
N(y(a.form.lngDirection), 1)
|
|
10557
10557
|
]),
|
|
10558
10558
|
_: 1
|
|
@@ -10560,18 +10560,18 @@ function xp(t, e, o, i, a, l) {
|
|
|
10560
10560
|
])
|
|
10561
10561
|
]),
|
|
10562
10562
|
n("div", wu, [
|
|
10563
|
-
n("div",
|
|
10563
|
+
n("div", xu, [
|
|
10564
10564
|
N(y(t.$t("spot.dateTime")), 1),
|
|
10565
10565
|
e[16] || (e[16] = n("span", { class: "text-danger" }, "*", -1))
|
|
10566
10566
|
])
|
|
10567
10567
|
]),
|
|
10568
10568
|
w(b, { class: "ma-0 mb-4" }, {
|
|
10569
|
-
default:
|
|
10569
|
+
default: x(() => [
|
|
10570
10570
|
w(g, {
|
|
10571
10571
|
cols: "12",
|
|
10572
10572
|
class: "pa-0"
|
|
10573
10573
|
}, {
|
|
10574
|
-
default:
|
|
10574
|
+
default: x(() => [
|
|
10575
10575
|
w(p, V({
|
|
10576
10576
|
"date-time": a.form.dateTime,
|
|
10577
10577
|
"time-zone": o.timeZone
|
|
@@ -10584,19 +10584,19 @@ function xp(t, e, o, i, a, l) {
|
|
|
10584
10584
|
]),
|
|
10585
10585
|
_: 1
|
|
10586
10586
|
}),
|
|
10587
|
-
n("div",
|
|
10587
|
+
n("div", vu, [
|
|
10588
10588
|
n("div", Au, [
|
|
10589
10589
|
N(y(t.$t("weather.forecastModel")), 1),
|
|
10590
10590
|
e[17] || (e[17] = n("span", { class: "text-danger" }, "*", -1))
|
|
10591
10591
|
])
|
|
10592
10592
|
]),
|
|
10593
10593
|
w(b, { class: "ma-0" }, {
|
|
10594
|
-
default:
|
|
10594
|
+
default: x(() => [
|
|
10595
10595
|
w(g, {
|
|
10596
10596
|
cols: "12",
|
|
10597
10597
|
class: "pa-0"
|
|
10598
10598
|
}, {
|
|
10599
|
-
default:
|
|
10599
|
+
default: x(() => [
|
|
10600
10600
|
w(u, {
|
|
10601
10601
|
modelValue: a.form.forecastModel,
|
|
10602
10602
|
"onUpdate:modelValue": e[7] || (e[7] = (C) => a.form.forecastModel = C),
|
|
@@ -10607,7 +10607,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10607
10607
|
group: "",
|
|
10608
10608
|
mandatory: ""
|
|
10609
10609
|
}, {
|
|
10610
|
-
default:
|
|
10610
|
+
default: x(() => [
|
|
10611
10611
|
w(r, {
|
|
10612
10612
|
density: "compact",
|
|
10613
10613
|
height: "30",
|
|
@@ -10616,7 +10616,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10616
10616
|
color: a.form.forecastModel === "GFS" ? "primary" : "",
|
|
10617
10617
|
"base-color": ""
|
|
10618
10618
|
}, {
|
|
10619
|
-
default:
|
|
10619
|
+
default: x(() => e[18] || (e[18] = [
|
|
10620
10620
|
N(" NOAA ", -1)
|
|
10621
10621
|
])),
|
|
10622
10622
|
_: 1,
|
|
@@ -10630,7 +10630,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10630
10630
|
"base-color": "",
|
|
10631
10631
|
value: "ECMWF"
|
|
10632
10632
|
}, {
|
|
10633
|
-
default:
|
|
10633
|
+
default: x(() => e[19] || (e[19] = [
|
|
10634
10634
|
N(" ECMWF ", -1)
|
|
10635
10635
|
])),
|
|
10636
10636
|
_: 1,
|
|
@@ -10650,14 +10650,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10650
10650
|
}),
|
|
10651
10651
|
w(d),
|
|
10652
10652
|
w(f, { class: "d-flex justify-end align-center ga-4 pa-4 py-2" }, {
|
|
10653
|
-
default:
|
|
10653
|
+
default: x(() => [
|
|
10654
10654
|
w(r, {
|
|
10655
10655
|
size: "small",
|
|
10656
10656
|
variant: "tonal",
|
|
10657
10657
|
class: "text-none text-body-1 btn-bg-1",
|
|
10658
10658
|
onClick: l.cancelForm
|
|
10659
10659
|
}, {
|
|
10660
|
-
default:
|
|
10660
|
+
default: x(() => [
|
|
10661
10661
|
N(y(t.$t("actions.clear")), 1)
|
|
10662
10662
|
]),
|
|
10663
10663
|
_: 1
|
|
@@ -10671,7 +10671,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10671
10671
|
type: "submit",
|
|
10672
10672
|
class: "text-none text-body-1"
|
|
10673
10673
|
}, {
|
|
10674
|
-
default:
|
|
10674
|
+
default: x(() => [
|
|
10675
10675
|
N(y(t.$t("actions.confirm")), 1)
|
|
10676
10676
|
]),
|
|
10677
10677
|
_: 1
|
|
@@ -10685,15 +10685,15 @@ function xp(t, e, o, i, a, l) {
|
|
|
10685
10685
|
]),
|
|
10686
10686
|
_: 1
|
|
10687
10687
|
}, 8, ["style"])) : I("", !0),
|
|
10688
|
-
a.showMeteo && !o.simple ? (A(), F(
|
|
10688
|
+
a.showMeteo && !o.simple ? (A(), F(v, {
|
|
10689
10689
|
key: 1,
|
|
10690
10690
|
id: "idm-gl4-spot-meteo",
|
|
10691
10691
|
class: "spot-meteo",
|
|
10692
10692
|
style: { width: "490px", "z-index": "9" }
|
|
10693
10693
|
}, {
|
|
10694
|
-
default:
|
|
10694
|
+
default: x(() => [
|
|
10695
10695
|
w(s, { class: "d-flex justify-space-between align-center" }, {
|
|
10696
|
-
default:
|
|
10696
|
+
default: x(() => [
|
|
10697
10697
|
n("div", ku, [
|
|
10698
10698
|
e[20] || (e[20] = n("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
10699
10699
|
n("div", Lu, y(l.computePosition(a.form || a.currentHourData)), 1)
|
|
@@ -10705,7 +10705,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10705
10705
|
variant: "plain",
|
|
10706
10706
|
onClick: _e(l.handleCloseMeteo, ["stop"])
|
|
10707
10707
|
}, {
|
|
10708
|
-
default:
|
|
10708
|
+
default: x(() => e[21] || (e[21] = [
|
|
10709
10709
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10710
10710
|
])),
|
|
10711
10711
|
_: 1,
|
|
@@ -10716,7 +10716,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10716
10716
|
}),
|
|
10717
10717
|
w(d),
|
|
10718
10718
|
w(h, { class: "text-body-1 px-0 py-1" }, {
|
|
10719
|
-
default:
|
|
10719
|
+
default: x(() => {
|
|
10720
10720
|
var C, z;
|
|
10721
10721
|
return [
|
|
10722
10722
|
n("div", zu, [
|
|
@@ -10760,7 +10760,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10760
10760
|
}),
|
|
10761
10761
|
w(d),
|
|
10762
10762
|
w(f, { class: "d-flex justify-space-between align-center" }, {
|
|
10763
|
-
default:
|
|
10763
|
+
default: x(() => {
|
|
10764
10764
|
var C;
|
|
10765
10765
|
return [
|
|
10766
10766
|
(C = o.followList) != null && C.some((z) => {
|
|
@@ -10775,10 +10775,10 @@ function xp(t, e, o, i, a, l) {
|
|
|
10775
10775
|
height: "32",
|
|
10776
10776
|
onClick: _e(l.handleCancelFollow, ["stop"])
|
|
10777
10777
|
}, {
|
|
10778
|
-
prepend:
|
|
10778
|
+
prepend: x(() => e[23] || (e[23] = [
|
|
10779
10779
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
10780
10780
|
])),
|
|
10781
|
-
default:
|
|
10781
|
+
default: x(() => [
|
|
10782
10782
|
N(" " + y(t.$t("actions.unfollow")), 1)
|
|
10783
10783
|
]),
|
|
10784
10784
|
_: 1
|
|
@@ -10791,10 +10791,10 @@ function xp(t, e, o, i, a, l) {
|
|
|
10791
10791
|
height: "32",
|
|
10792
10792
|
onClick: _e(l.handleFollow, ["stop"])
|
|
10793
10793
|
}, {
|
|
10794
|
-
prepend:
|
|
10794
|
+
prepend: x(() => e[24] || (e[24] = [
|
|
10795
10795
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
10796
10796
|
])),
|
|
10797
|
-
default:
|
|
10797
|
+
default: x(() => [
|
|
10798
10798
|
N(y(t.$t("actions.follow")) + " ", 1)
|
|
10799
10799
|
]),
|
|
10800
10800
|
_: 1
|
|
@@ -10807,7 +10807,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10807
10807
|
class: "text-none text-body-1",
|
|
10808
10808
|
onClick: _e(l.handleMeteoMore, ["stop"])
|
|
10809
10809
|
}, {
|
|
10810
|
-
default:
|
|
10810
|
+
default: x(() => [
|
|
10811
10811
|
N(y(t.$t("spot.forecast")), 1)
|
|
10812
10812
|
]),
|
|
10813
10813
|
_: 1
|
|
@@ -10819,15 +10819,15 @@ function xp(t, e, o, i, a, l) {
|
|
|
10819
10819
|
]),
|
|
10820
10820
|
_: 1
|
|
10821
10821
|
})) : I("", !0),
|
|
10822
|
-
a.showMeteo && o.simple ? (A(), F(
|
|
10822
|
+
a.showMeteo && o.simple ? (A(), F(v, {
|
|
10823
10823
|
key: 2,
|
|
10824
10824
|
ref: "spotMeteo",
|
|
10825
10825
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
10826
10826
|
style: { width: "100vw", "z-index": "1001" }
|
|
10827
10827
|
}, {
|
|
10828
|
-
default:
|
|
10828
|
+
default: x(() => [
|
|
10829
10829
|
w(s, null, {
|
|
10830
|
-
default:
|
|
10830
|
+
default: x(() => {
|
|
10831
10831
|
var C;
|
|
10832
10832
|
return [
|
|
10833
10833
|
n("div", Ku, [
|
|
@@ -10849,7 +10849,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10849
10849
|
"min-width": "28",
|
|
10850
10850
|
onClick: _e(l.handleCancelFollow, ["stop"])
|
|
10851
10851
|
}, {
|
|
10852
|
-
default:
|
|
10852
|
+
default: x(() => e[26] || (e[26] = [
|
|
10853
10853
|
n("i", { class: "iconfont icon-yishoucang text-h4 text-warning" }, null, -1)
|
|
10854
10854
|
])),
|
|
10855
10855
|
_: 1,
|
|
@@ -10864,7 +10864,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10864
10864
|
"min-width": "28",
|
|
10865
10865
|
onClick: _e(l.handleFollow, ["stop"])
|
|
10866
10866
|
}, {
|
|
10867
|
-
default:
|
|
10867
|
+
default: x(() => e[27] || (e[27] = [
|
|
10868
10868
|
n("i", { class: "iconfont icon-weishoucang text-h4" }, null, -1)
|
|
10869
10869
|
])),
|
|
10870
10870
|
_: 1,
|
|
@@ -10877,7 +10877,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10877
10877
|
variant: "plain",
|
|
10878
10878
|
onClick: _e(l.handleCloseMeteo, ["stop"])
|
|
10879
10879
|
}, {
|
|
10880
|
-
default:
|
|
10880
|
+
default: x(() => e[28] || (e[28] = [
|
|
10881
10881
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
10882
10882
|
])),
|
|
10883
10883
|
_: 1,
|
|
@@ -10893,7 +10893,7 @@ function xp(t, e, o, i, a, l) {
|
|
|
10893
10893
|
}),
|
|
10894
10894
|
w(d),
|
|
10895
10895
|
w(h, { class: "text-body-1 px-0 py-2" }, {
|
|
10896
|
-
default:
|
|
10896
|
+
default: x(() => {
|
|
10897
10897
|
var C, z;
|
|
10898
10898
|
return [
|
|
10899
10899
|
n("div", ep, [
|
|
@@ -10956,14 +10956,14 @@ function xp(t, e, o, i, a, l) {
|
|
|
10956
10956
|
(A(), R("svg", wp, [
|
|
10957
10957
|
n("use", {
|
|
10958
10958
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
10959
|
-
}, null, 8,
|
|
10959
|
+
}, null, 8, xp)
|
|
10960
10960
|
]))
|
|
10961
10961
|
], 512), [
|
|
10962
10962
|
[po, a.showMeteo]
|
|
10963
10963
|
])
|
|
10964
10964
|
]);
|
|
10965
10965
|
}
|
|
10966
|
-
const Ap = /* @__PURE__ */ ne(au, [["render",
|
|
10966
|
+
const Ap = /* @__PURE__ */ ne(au, [["render", vp]]);
|
|
10967
10967
|
const kp = {
|
|
10968
10968
|
name: "IdmMeasure",
|
|
10969
10969
|
props: {
|
|
@@ -11107,7 +11107,7 @@ const kp = {
|
|
|
11107
11107
|
const c = this.geojson.filter((s) => s.id === e.split("-")[0])[0].features.filter((s) => s.geometry.type === "Point");
|
|
11108
11108
|
if (c.length > 2 && c.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
11109
11109
|
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
|
|
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 ve.Marker(d).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
11111
11111
|
}
|
|
11112
11112
|
}
|
|
11113
11113
|
},
|
|
@@ -11229,7 +11229,7 @@ const kp = {
|
|
|
11229
11229
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
11230
11230
|
else {
|
|
11231
11231
|
const s = document.createElement("div");
|
|
11232
|
-
s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new
|
|
11232
|
+
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
11233
|
}
|
|
11234
11234
|
},
|
|
11235
11235
|
handleMove(t) {
|
|
@@ -11305,12 +11305,12 @@ const kp = {
|
|
|
11305
11305
|
for (const c of r) {
|
|
11306
11306
|
const s = document.createElement("div");
|
|
11307
11307
|
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
|
|
11308
|
+
const d = new ve.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11309
11309
|
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
11310
|
}
|
|
11311
11311
|
if (t.closed) {
|
|
11312
11312
|
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
|
|
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 ve.Marker(m).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
11314
11314
|
}
|
|
11315
11315
|
}
|
|
11316
11316
|
},
|
|
@@ -11338,7 +11338,7 @@ function zp(t, e, o, i, a, l) {
|
|
|
11338
11338
|
"open-on-focus": !o.simple,
|
|
11339
11339
|
"open-on-hover": !o.simple
|
|
11340
11340
|
}, {
|
|
11341
|
-
activator:
|
|
11341
|
+
activator: x(({ props: s }) => [
|
|
11342
11342
|
w(r, V(s, {
|
|
11343
11343
|
"min-width": "32",
|
|
11344
11344
|
width: "32",
|
|
@@ -11346,7 +11346,7 @@ function zp(t, e, o, i, a, l) {
|
|
|
11346
11346
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
11347
11347
|
onClick: l.handleMenuToggle
|
|
11348
11348
|
}), {
|
|
11349
|
-
default:
|
|
11349
|
+
default: x(() => e[0] || (e[0] = [
|
|
11350
11350
|
n("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
|
|
11351
11351
|
])),
|
|
11352
11352
|
_: 2,
|
|
@@ -11537,7 +11537,7 @@ const Cp = {
|
|
|
11537
11537
|
const t = document.createElement("div");
|
|
11538
11538
|
t.className = "idm-gl4-point-center-ring";
|
|
11539
11539
|
const e = this.pointMarker.getLngLat();
|
|
11540
|
-
this.pointHighlightMarker = new
|
|
11540
|
+
this.pointHighlightMarker = new ve.Marker({ element: t, anchor: "center", offset: [0, 0] }).setLngLat(e).addTo(this.map), this.pointMarker.on("drag", () => {
|
|
11541
11541
|
var i;
|
|
11542
11542
|
(i = this.pointHighlightMarker) == null || i.setLngLat(this.pointMarker.getLngLat());
|
|
11543
11543
|
});
|
|
@@ -11570,7 +11570,7 @@ const Cp = {
|
|
|
11570
11570
|
this.clearEditMarkers(), this.drawCoords.forEach((e, o) => {
|
|
11571
11571
|
const i = document.createElement("div");
|
|
11572
11572
|
i.className = "idm-gl4-edit-vertex", i.style.backgroundColor = this.form.color;
|
|
11573
|
-
const a = new
|
|
11573
|
+
const a = new ve.Marker({ element: i, draggable: !0 }).setLngLat(e).addTo(this.map);
|
|
11574
11574
|
a.on("dragstart", () => {
|
|
11575
11575
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11576
11576
|
const { lng: l, lat: r } = a.getLngLat();
|
|
@@ -11661,7 +11661,7 @@ const Cp = {
|
|
|
11661
11661
|
this.drawCoords = e.map((i) => [...i]), this.drawCoords.forEach((i, a) => {
|
|
11662
11662
|
const l = document.createElement("div");
|
|
11663
11663
|
l.className = "idm-gl4-edit-vertex", l.style.backgroundColor = this.form.color;
|
|
11664
|
-
const r = new
|
|
11664
|
+
const r = new ve.Marker({ element: l, draggable: !0 }).setLngLat(i).addTo(this.map);
|
|
11665
11665
|
r.on("dragstart", () => {
|
|
11666
11666
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11667
11667
|
const { lng: c, lat: s } = r.getLngLat();
|
|
@@ -11722,7 +11722,7 @@ const Cp = {
|
|
|
11722
11722
|
if ((a = this.pointMarker) == null || a.remove(), !t || !t.length)
|
|
11723
11723
|
return;
|
|
11724
11724
|
const [o, i] = t[0];
|
|
11725
|
-
this.pointMarker = new
|
|
11725
|
+
this.pointMarker = new ve.Marker({ color: e }).setLngLat([o, i]).addTo(this.map);
|
|
11726
11726
|
},
|
|
11727
11727
|
// -------- Line drawing --------
|
|
11728
11728
|
handleMapClickLine(t) {
|
|
@@ -11797,7 +11797,7 @@ const Cp = {
|
|
|
11797
11797
|
this.tipMarker._element.innerHTML = d, this.tipMarker.setLngLat([e[0], e[1]]);
|
|
11798
11798
|
else {
|
|
11799
11799
|
const m = document.createElement("div");
|
|
11800
|
-
m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new
|
|
11800
|
+
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
11801
|
}
|
|
11802
11802
|
},
|
|
11803
11803
|
handleRefreshLine() {
|
|
@@ -11866,7 +11866,7 @@ const Cp = {
|
|
|
11866
11866
|
this.handleClearVertexLabels();
|
|
11867
11867
|
const o = H.lat2pretty(t[1], 4).pretty, i = H.lng2pretty(t[0], 4).pretty, a = document.createElement("div");
|
|
11868
11868
|
a.className = "idm-gl4-draw-corner-label center", a.innerHTML = `<span class="corner-text">${o} <br/> ${i}</span>`;
|
|
11869
|
-
const l = new
|
|
11869
|
+
const l = new ve.Marker(a, { anchor: "bottom", offset: [0, e] }).setLngLat(t).addTo(this.map);
|
|
11870
11870
|
this.polygonVertexMarkers.push(l);
|
|
11871
11871
|
},
|
|
11872
11872
|
handleRenderAllVertexLabels(t) {
|
|
@@ -11878,7 +11878,7 @@ const Cp = {
|
|
|
11878
11878
|
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
11879
|
const r = H.lat2pretty(o[1], 4).pretty, c = H.lng2pretty(o[0], 4).pretty, s = document.createElement("div");
|
|
11880
11880
|
s.className = "idm-gl4-draw-corner-label " + l, s.innerHTML = `<span class="corner-text">${r} <br/> ${c}</span>`;
|
|
11881
|
-
const d = new
|
|
11881
|
+
const d = new ve.Marker(s, { anchor: l }).setLngLat(o).addTo(this.map);
|
|
11882
11882
|
this.polygonVertexMarkers.push(d);
|
|
11883
11883
|
});
|
|
11884
11884
|
},
|
|
@@ -11925,7 +11925,7 @@ const Cp = {
|
|
|
11925
11925
|
handleRenderCircleCenterLabel(t) {
|
|
11926
11926
|
const e = H.lat2pretty(t[1], 4).pretty, o = H.lng2pretty(t[0], 4).pretty, i = document.createElement("div");
|
|
11927
11927
|
i.className = "idm-gl4-draw-corner-label bottom-right", i.innerHTML = `<span class="corner-text">${e} <br/> ${o}</span>`;
|
|
11928
|
-
const a = new
|
|
11928
|
+
const a = new ve.Marker(i, { anchor: "bottom-right" }).setLngLat(t).addTo(this.map);
|
|
11929
11929
|
this.circleMarkers.push(a);
|
|
11930
11930
|
},
|
|
11931
11931
|
handleRenderRadiusLine(t, e, o) {
|
|
@@ -11948,7 +11948,7 @@ const Cp = {
|
|
|
11948
11948
|
this.circleMarkers.length > 1 && (this.circleMarkers[1].remove(), this.circleMarkers.splice(1, 1));
|
|
11949
11949
|
const h = document.createElement("div"), f = document.createElement("span");
|
|
11950
11950
|
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
|
|
11951
|
+
const L = new ve.Marker(h, { anchor: "center", offset: [b, u] }).setLngLat(l).addTo(this.map);
|
|
11952
11952
|
this.circleMarkers.push(L);
|
|
11953
11953
|
},
|
|
11954
11954
|
handleClearCircleLabels() {
|
|
@@ -12027,7 +12027,7 @@ const Cp = {
|
|
|
12027
12027
|
this.handleClearRectCorners(), r.forEach(({ coord: c, anchor: s }) => {
|
|
12028
12028
|
const d = H.lat2pretty(c[1], 4).pretty, m = H.lng2pretty(c[0], 4).pretty, p = document.createElement("div");
|
|
12029
12029
|
p.className = "idm-gl4-draw-corner-label " + s, p.innerHTML = `<span class="corner-text">${d} <br/> ${m}</span>`;
|
|
12030
|
-
const g = new
|
|
12030
|
+
const g = new ve.Marker(p, { anchor: s }).setLngLat(c).addTo(this.map);
|
|
12031
12031
|
this.rectCornerMarkers.push(g);
|
|
12032
12032
|
});
|
|
12033
12033
|
},
|
|
@@ -12170,14 +12170,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12170
12170
|
class: "idm-gl4-draw-dialog-card",
|
|
12171
12171
|
elevation: "4"
|
|
12172
12172
|
}, {
|
|
12173
|
-
default:
|
|
12173
|
+
default: x(() => {
|
|
12174
12174
|
var L;
|
|
12175
12175
|
return [
|
|
12176
12176
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
12177
|
-
default:
|
|
12178
|
-
var
|
|
12177
|
+
default: x(() => {
|
|
12178
|
+
var v;
|
|
12179
12179
|
return [
|
|
12180
|
-
n("span", Mp, y((
|
|
12180
|
+
n("span", Mp, y((v = o.editLayer) != null && v.id ? t.$t("actions.edit") : t.$t("actions.addMarker")), 1),
|
|
12181
12181
|
w(r, {
|
|
12182
12182
|
icon: "",
|
|
12183
12183
|
density: "compact",
|
|
@@ -12185,7 +12185,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12185
12185
|
class: "mr-n2",
|
|
12186
12186
|
onClick: l.handleClose
|
|
12187
12187
|
}, {
|
|
12188
|
-
default:
|
|
12188
|
+
default: x(() => e[21] || (e[21] = [
|
|
12189
12189
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
12190
12190
|
])),
|
|
12191
12191
|
_: 1,
|
|
@@ -12197,12 +12197,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12197
12197
|
}),
|
|
12198
12198
|
w(s),
|
|
12199
12199
|
w(m, { class: "text-body-1 px-4 pb-0" }, {
|
|
12200
|
-
default:
|
|
12201
|
-
var
|
|
12200
|
+
default: x(() => {
|
|
12201
|
+
var v;
|
|
12202
12202
|
return [
|
|
12203
12203
|
n("div", Pp, y(t.$t("marker.group")), 1),
|
|
12204
12204
|
w(d, {
|
|
12205
|
-
"model-value": (
|
|
12205
|
+
"model-value": (v = o.group) == null ? void 0 : v.name,
|
|
12206
12206
|
density: "compact",
|
|
12207
12207
|
variant: "outlined",
|
|
12208
12208
|
"hide-details": "",
|
|
@@ -12217,8 +12217,8 @@ function tg(t, e, o, i, a, l) {
|
|
|
12217
12217
|
key: 0,
|
|
12218
12218
|
class: "text-body-1 px-4 pb-0"
|
|
12219
12219
|
}, {
|
|
12220
|
-
default:
|
|
12221
|
-
var
|
|
12220
|
+
default: x(() => {
|
|
12221
|
+
var v;
|
|
12222
12222
|
return [
|
|
12223
12223
|
n("div", Sp, [
|
|
12224
12224
|
N(y(t.$t("marker.markerType")), 1),
|
|
@@ -12232,9 +12232,9 @@ function tg(t, e, o, i, a, l) {
|
|
|
12232
12232
|
density: "compact",
|
|
12233
12233
|
variant: "flat",
|
|
12234
12234
|
class: "w-100",
|
|
12235
|
-
disabled: !!((
|
|
12235
|
+
disabled: !!((v = o.editLayer) != null && v.id)
|
|
12236
12236
|
}, {
|
|
12237
|
-
default:
|
|
12237
|
+
default: x(() => [
|
|
12238
12238
|
w(r, {
|
|
12239
12239
|
value: "Point",
|
|
12240
12240
|
class: ue(["flex-1-1-0 text-none text-body-1", a.markerType === "Point" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -12243,7 +12243,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12243
12243
|
height: "32px",
|
|
12244
12244
|
"min-height": "32px"
|
|
12245
12245
|
}, {
|
|
12246
|
-
default:
|
|
12246
|
+
default: x(() => [
|
|
12247
12247
|
N(y(t.$t("marker.point")), 1)
|
|
12248
12248
|
]),
|
|
12249
12249
|
_: 1
|
|
@@ -12256,7 +12256,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12256
12256
|
height: "32px",
|
|
12257
12257
|
"min-height": "32px"
|
|
12258
12258
|
}, {
|
|
12259
|
-
default:
|
|
12259
|
+
default: x(() => [
|
|
12260
12260
|
N(y(t.$t("marker.line")), 1)
|
|
12261
12261
|
]),
|
|
12262
12262
|
_: 1
|
|
@@ -12268,7 +12268,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12268
12268
|
height: "32px",
|
|
12269
12269
|
"min-height": "32px"
|
|
12270
12270
|
}, {
|
|
12271
|
-
default:
|
|
12271
|
+
default: x(() => [
|
|
12272
12272
|
N(y(t.$t("marker.area")), 1)
|
|
12273
12273
|
]),
|
|
12274
12274
|
_: 1
|
|
@@ -12287,26 +12287,26 @@ function tg(t, e, o, i, a, l) {
|
|
|
12287
12287
|
class: "form-box",
|
|
12288
12288
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12289
12289
|
}, {
|
|
12290
|
-
default:
|
|
12290
|
+
default: x(() => [
|
|
12291
12291
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12292
|
-
default:
|
|
12292
|
+
default: x(() => [
|
|
12293
12293
|
n("div", Tp, [
|
|
12294
12294
|
n("div", Rp, [
|
|
12295
12295
|
N(y(t.$t("marker.lat")), 1),
|
|
12296
12296
|
e[23] || (e[23] = n("span", { class: "text-danger" }, "*", -1))
|
|
12297
12297
|
]),
|
|
12298
12298
|
w(b, { class: "ma-0" }, {
|
|
12299
|
-
default:
|
|
12299
|
+
default: x(() => [
|
|
12300
12300
|
w(g, {
|
|
12301
12301
|
cols: "4",
|
|
12302
12302
|
class: "pa-0 d-flex"
|
|
12303
12303
|
}, {
|
|
12304
|
-
default:
|
|
12304
|
+
default: x(() => [
|
|
12305
12305
|
w(d, {
|
|
12306
12306
|
modelValue: a.form.latDegree,
|
|
12307
12307
|
"onUpdate:modelValue": [
|
|
12308
|
-
e[1] || (e[1] = (
|
|
12309
|
-
e[2] || (e[2] = (
|
|
12308
|
+
e[1] || (e[1] = (v) => a.form.latDegree = v),
|
|
12309
|
+
e[2] || (e[2] = (v) => l.handleChangePoint())
|
|
12310
12310
|
],
|
|
12311
12311
|
rules: a.formRules.latDegree,
|
|
12312
12312
|
label: "",
|
|
@@ -12328,12 +12328,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12328
12328
|
cols: "6",
|
|
12329
12329
|
class: "pa-0 d-flex"
|
|
12330
12330
|
}, {
|
|
12331
|
-
default:
|
|
12331
|
+
default: x(() => [
|
|
12332
12332
|
w(d, {
|
|
12333
12333
|
modelValue: a.form.latMinute,
|
|
12334
12334
|
"onUpdate:modelValue": [
|
|
12335
|
-
e[3] || (e[3] = (
|
|
12336
|
-
e[4] || (e[4] = (
|
|
12335
|
+
e[3] || (e[3] = (v) => a.form.latMinute = v),
|
|
12336
|
+
e[4] || (e[4] = (v) => l.handleChangePoint())
|
|
12337
12337
|
],
|
|
12338
12338
|
rules: a.formRules.latMinute,
|
|
12339
12339
|
label: "",
|
|
@@ -12355,7 +12355,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12355
12355
|
cols: "2",
|
|
12356
12356
|
class: "pa-0"
|
|
12357
12357
|
}, {
|
|
12358
|
-
default:
|
|
12358
|
+
default: x(() => [
|
|
12359
12359
|
w(r, {
|
|
12360
12360
|
variant: "outlined",
|
|
12361
12361
|
density: "compact",
|
|
@@ -12364,11 +12364,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12364
12364
|
height: "32",
|
|
12365
12365
|
class: "text-body-1 bg-primary",
|
|
12366
12366
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12367
|
-
onClick: e[5] || (e[5] = (
|
|
12367
|
+
onClick: e[5] || (e[5] = (v) => {
|
|
12368
12368
|
a.form.latDir = a.form.latDir === "N" ? "S" : "N", l.handleChangePoint();
|
|
12369
12369
|
})
|
|
12370
12370
|
}, {
|
|
12371
|
-
default:
|
|
12371
|
+
default: x(() => [
|
|
12372
12372
|
N(y(a.form.latDir), 1)
|
|
12373
12373
|
]),
|
|
12374
12374
|
_: 1
|
|
@@ -12386,17 +12386,17 @@ function tg(t, e, o, i, a, l) {
|
|
|
12386
12386
|
e[26] || (e[26] = n("span", { class: "text-danger" }, "*", -1))
|
|
12387
12387
|
]),
|
|
12388
12388
|
w(b, { class: "ma-0" }, {
|
|
12389
|
-
default:
|
|
12389
|
+
default: x(() => [
|
|
12390
12390
|
w(g, {
|
|
12391
12391
|
cols: "4",
|
|
12392
12392
|
class: "pa-0 d-flex"
|
|
12393
12393
|
}, {
|
|
12394
|
-
default:
|
|
12394
|
+
default: x(() => [
|
|
12395
12395
|
w(d, {
|
|
12396
12396
|
modelValue: a.form.lngDegree,
|
|
12397
12397
|
"onUpdate:modelValue": [
|
|
12398
|
-
e[6] || (e[6] = (
|
|
12399
|
-
e[7] || (e[7] = (
|
|
12398
|
+
e[6] || (e[6] = (v) => a.form.lngDegree = v),
|
|
12399
|
+
e[7] || (e[7] = (v) => l.handleChangePoint())
|
|
12400
12400
|
],
|
|
12401
12401
|
rules: a.formRules.lngDegree,
|
|
12402
12402
|
density: "compact",
|
|
@@ -12413,12 +12413,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12413
12413
|
cols: "6",
|
|
12414
12414
|
class: "pa-0 d-flex"
|
|
12415
12415
|
}, {
|
|
12416
|
-
default:
|
|
12416
|
+
default: x(() => [
|
|
12417
12417
|
w(d, {
|
|
12418
12418
|
modelValue: a.form.lngMinute,
|
|
12419
12419
|
"onUpdate:modelValue": [
|
|
12420
|
-
e[8] || (e[8] = (
|
|
12421
|
-
e[9] || (e[9] = (
|
|
12420
|
+
e[8] || (e[8] = (v) => a.form.lngMinute = v),
|
|
12421
|
+
e[9] || (e[9] = (v) => l.handleChangePoint())
|
|
12422
12422
|
],
|
|
12423
12423
|
rules: a.formRules.lngMinute,
|
|
12424
12424
|
density: "compact",
|
|
@@ -12435,7 +12435,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12435
12435
|
cols: "2",
|
|
12436
12436
|
class: "pa-0"
|
|
12437
12437
|
}, {
|
|
12438
|
-
default:
|
|
12438
|
+
default: x(() => [
|
|
12439
12439
|
w(r, {
|
|
12440
12440
|
variant: "outlined",
|
|
12441
12441
|
density: "compact",
|
|
@@ -12444,11 +12444,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12444
12444
|
height: "32",
|
|
12445
12445
|
class: "text-body-1 bg-primary",
|
|
12446
12446
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
12447
|
-
onClick: e[10] || (e[10] = (
|
|
12447
|
+
onClick: e[10] || (e[10] = (v) => {
|
|
12448
12448
|
a.form.lngDir = a.form.lngDir === "E" ? "W" : "E", l.handleChangePoint();
|
|
12449
12449
|
})
|
|
12450
12450
|
}, {
|
|
12451
|
-
default:
|
|
12451
|
+
default: x(() => [
|
|
12452
12452
|
N(y(a.form.lngDir), 1)
|
|
12453
12453
|
]),
|
|
12454
12454
|
_: 1
|
|
@@ -12470,11 +12470,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12470
12470
|
type: "color",
|
|
12471
12471
|
value: a.form.color,
|
|
12472
12472
|
class: "native-color-picker cursor-pointer",
|
|
12473
|
-
onInput: e[11] || (e[11] = (
|
|
12473
|
+
onInput: e[11] || (e[11] = (v) => a.form.color = v.target.value)
|
|
12474
12474
|
}, null, 40, Bp),
|
|
12475
12475
|
w(d, {
|
|
12476
12476
|
modelValue: a.form.color,
|
|
12477
|
-
"onUpdate:modelValue": e[12] || (e[12] = (
|
|
12477
|
+
"onUpdate:modelValue": e[12] || (e[12] = (v) => a.form.color = v),
|
|
12478
12478
|
rules: a.formRules.color,
|
|
12479
12479
|
density: "compact",
|
|
12480
12480
|
variant: "outlined",
|
|
@@ -12489,7 +12489,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12489
12489
|
]),
|
|
12490
12490
|
w(d, {
|
|
12491
12491
|
modelValue: a.form.name,
|
|
12492
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
12492
|
+
"onUpdate:modelValue": e[13] || (e[13] = (v) => a.form.name = v),
|
|
12493
12493
|
density: "compact",
|
|
12494
12494
|
variant: "outlined",
|
|
12495
12495
|
rules: a.formRules.name,
|
|
@@ -12502,14 +12502,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12502
12502
|
}),
|
|
12503
12503
|
w(s),
|
|
12504
12504
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12505
|
-
default:
|
|
12505
|
+
default: x(() => [
|
|
12506
12506
|
w(r, {
|
|
12507
12507
|
class: "text-none text-body-1",
|
|
12508
12508
|
variant: "tonal",
|
|
12509
12509
|
density: "comfortable",
|
|
12510
12510
|
onClick: l.handleClearDraw
|
|
12511
12511
|
}, {
|
|
12512
|
-
default:
|
|
12512
|
+
default: x(() => [
|
|
12513
12513
|
N(y(t.$t("actions.clear")), 1)
|
|
12514
12514
|
]),
|
|
12515
12515
|
_: 1
|
|
@@ -12522,7 +12522,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12522
12522
|
type: "submit",
|
|
12523
12523
|
loading: a.saving
|
|
12524
12524
|
}, {
|
|
12525
|
-
default:
|
|
12525
|
+
default: x(() => [
|
|
12526
12526
|
N(y(t.$t("actions.save")), 1)
|
|
12527
12527
|
]),
|
|
12528
12528
|
_: 1
|
|
@@ -12540,9 +12540,9 @@ function tg(t, e, o, i, a, l) {
|
|
|
12540
12540
|
class: "form-box",
|
|
12541
12541
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12542
12542
|
}, {
|
|
12543
|
-
default:
|
|
12543
|
+
default: x(() => [
|
|
12544
12544
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12545
|
-
default:
|
|
12545
|
+
default: x(() => [
|
|
12546
12546
|
n("div", Zp, [
|
|
12547
12547
|
n("div", Wp, [
|
|
12548
12548
|
N(y(t.$t("marker.color")), 1),
|
|
@@ -12553,11 +12553,11 @@ function tg(t, e, o, i, a, l) {
|
|
|
12553
12553
|
type: "color",
|
|
12554
12554
|
value: a.form.color,
|
|
12555
12555
|
class: "native-color-picker cursor-pointer",
|
|
12556
|
-
onInput: e[14] || (e[14] = (
|
|
12556
|
+
onInput: e[14] || (e[14] = (v) => a.form.color = v.target.value)
|
|
12557
12557
|
}, null, 40, Xp),
|
|
12558
12558
|
w(d, {
|
|
12559
12559
|
modelValue: a.form.color,
|
|
12560
|
-
"onUpdate:modelValue": e[15] || (e[15] = (
|
|
12560
|
+
"onUpdate:modelValue": e[15] || (e[15] = (v) => a.form.color = v),
|
|
12561
12561
|
rules: a.formRules.color,
|
|
12562
12562
|
density: "compact",
|
|
12563
12563
|
variant: "outlined",
|
|
@@ -12572,7 +12572,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12572
12572
|
]),
|
|
12573
12573
|
w(d, {
|
|
12574
12574
|
modelValue: a.form.name,
|
|
12575
|
-
"onUpdate:modelValue": e[16] || (e[16] = (
|
|
12575
|
+
"onUpdate:modelValue": e[16] || (e[16] = (v) => a.form.name = v),
|
|
12576
12576
|
density: "compact",
|
|
12577
12577
|
variant: "outlined",
|
|
12578
12578
|
rules: a.formRules.name,
|
|
@@ -12585,14 +12585,14 @@ function tg(t, e, o, i, a, l) {
|
|
|
12585
12585
|
}),
|
|
12586
12586
|
w(s),
|
|
12587
12587
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12588
|
-
default:
|
|
12588
|
+
default: x(() => [
|
|
12589
12589
|
w(r, {
|
|
12590
12590
|
class: "text-none text-body-1",
|
|
12591
12591
|
variant: "tonal",
|
|
12592
12592
|
density: "comfortable",
|
|
12593
12593
|
onClick: l.handleClearDraw
|
|
12594
12594
|
}, {
|
|
12595
|
-
default:
|
|
12595
|
+
default: x(() => [
|
|
12596
12596
|
N(y(t.$t("actions.clear")), 1)
|
|
12597
12597
|
]),
|
|
12598
12598
|
_: 1
|
|
@@ -12605,7 +12605,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12605
12605
|
type: "submit",
|
|
12606
12606
|
loading: a.saving
|
|
12607
12607
|
}, {
|
|
12608
|
-
default:
|
|
12608
|
+
default: x(() => [
|
|
12609
12609
|
N(y(t.$t("actions.save")), 1)
|
|
12610
12610
|
]),
|
|
12611
12611
|
_: 1
|
|
@@ -12623,12 +12623,12 @@ function tg(t, e, o, i, a, l) {
|
|
|
12623
12623
|
class: "form-box",
|
|
12624
12624
|
onSubmit: _e(l.handleSave, ["prevent"])
|
|
12625
12625
|
}, {
|
|
12626
|
-
default:
|
|
12626
|
+
default: x(() => [
|
|
12627
12627
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12628
|
-
default:
|
|
12629
|
-
var
|
|
12628
|
+
default: x(() => {
|
|
12629
|
+
var v, C;
|
|
12630
12630
|
return [
|
|
12631
|
-
(
|
|
12631
|
+
(v = o.editLayer) != null && v.id ? I("", !0) : (A(), R("div", Yp, [
|
|
12632
12632
|
n("div", Up, [
|
|
12633
12633
|
N(y(t.$t("marker.areaType")), 1),
|
|
12634
12634
|
e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
|
|
@@ -12644,7 +12644,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12644
12644
|
class: "w-100",
|
|
12645
12645
|
disabled: !!((C = o.editLayer) != null && C.id)
|
|
12646
12646
|
}, {
|
|
12647
|
-
default:
|
|
12647
|
+
default: x(() => [
|
|
12648
12648
|
w(r, {
|
|
12649
12649
|
value: "Polygon",
|
|
12650
12650
|
class: ue(["flex-1-1-0 text-none text-body-1", a.form.areaType === "Polygon" ? "" : "btn-border-1 btn-bg-1"]),
|
|
@@ -12653,7 +12653,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12653
12653
|
height: "32px",
|
|
12654
12654
|
"min-height": "32px"
|
|
12655
12655
|
}, {
|
|
12656
|
-
default:
|
|
12656
|
+
default: x(() => [
|
|
12657
12657
|
N(y(t.$t("marker.polygon")), 1)
|
|
12658
12658
|
]),
|
|
12659
12659
|
_: 1
|
|
@@ -12667,7 +12667,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12667
12667
|
height: "32px",
|
|
12668
12668
|
"min-height": "32px"
|
|
12669
12669
|
}, {
|
|
12670
|
-
default:
|
|
12670
|
+
default: x(() => [
|
|
12671
12671
|
N(y(t.$t("marker.circle")), 1)
|
|
12672
12672
|
]),
|
|
12673
12673
|
_: 1
|
|
@@ -12680,7 +12680,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12680
12680
|
height: "32px",
|
|
12681
12681
|
"min-height": "32px"
|
|
12682
12682
|
}, {
|
|
12683
|
-
default:
|
|
12683
|
+
default: x(() => [
|
|
12684
12684
|
N(y(t.$t("marker.rect")), 1)
|
|
12685
12685
|
]),
|
|
12686
12686
|
_: 1
|
|
@@ -12732,17 +12732,17 @@ function tg(t, e, o, i, a, l) {
|
|
|
12732
12732
|
}),
|
|
12733
12733
|
w(s),
|
|
12734
12734
|
w(u, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
12735
|
-
default:
|
|
12736
|
-
var
|
|
12735
|
+
default: x(() => {
|
|
12736
|
+
var v;
|
|
12737
12737
|
return [
|
|
12738
|
-
(
|
|
12738
|
+
(v = o.editLayer) != null && v.id ? I("", !0) : (A(), F(r, {
|
|
12739
12739
|
key: 0,
|
|
12740
12740
|
class: "text-none text-body-1",
|
|
12741
12741
|
variant: "tonal",
|
|
12742
12742
|
density: "comfortable",
|
|
12743
12743
|
onClick: l.handleClearDraw
|
|
12744
12744
|
}, {
|
|
12745
|
-
default:
|
|
12745
|
+
default: x(() => [
|
|
12746
12746
|
N(y(t.$t("actions.clear")), 1)
|
|
12747
12747
|
]),
|
|
12748
12748
|
_: 1
|
|
@@ -12755,7 +12755,7 @@ function tg(t, e, o, i, a, l) {
|
|
|
12755
12755
|
type: "submit",
|
|
12756
12756
|
loading: a.saving
|
|
12757
12757
|
}, {
|
|
12758
|
-
default:
|
|
12758
|
+
default: x(() => [
|
|
12759
12759
|
N(y(t.$t("actions.save")), 1)
|
|
12760
12760
|
]),
|
|
12761
12761
|
_: 1
|
|
@@ -12949,7 +12949,7 @@ const ag = {
|
|
|
12949
12949
|
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
12950
|
if (((s = a.geometry) == null ? void 0 : s.type) === "Point") {
|
|
12951
12951
|
const [d, m] = a.geometry.coordinates;
|
|
12952
|
-
this.previewMarkers.push(new
|
|
12952
|
+
this.previewMarkers.push(new ve.Marker({ color: l }).setLngLat([d, m]).addTo(this.map));
|
|
12953
12953
|
}
|
|
12954
12954
|
a.properties.color || (a.properties.color = l);
|
|
12955
12955
|
}), this.map.getSource(e) ? this.map.getSource(e).setData(t) : this.map.addSource(e, { type: "geojson", data: t });
|
|
@@ -13014,9 +13014,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13014
13014
|
class: "idm-gl4-import-dialog-card",
|
|
13015
13015
|
elevation: "4"
|
|
13016
13016
|
}, {
|
|
13017
|
-
default:
|
|
13017
|
+
default: x(() => [
|
|
13018
13018
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13019
|
-
default:
|
|
13019
|
+
default: x(() => [
|
|
13020
13020
|
n("span", ig, y(t.$t("marker.importLayer")), 1),
|
|
13021
13021
|
w(r, {
|
|
13022
13022
|
icon: "",
|
|
@@ -13025,7 +13025,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13025
13025
|
class: "mr-n2",
|
|
13026
13026
|
onClick: l.handleClose
|
|
13027
13027
|
}, {
|
|
13028
|
-
default:
|
|
13028
|
+
default: x(() => e[9] || (e[9] = [
|
|
13029
13029
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13030
13030
|
])),
|
|
13031
13031
|
_: 1,
|
|
@@ -13041,9 +13041,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13041
13041
|
class: "form-box",
|
|
13042
13042
|
onSubmit: _e(l.handleConfirm, ["prevent"])
|
|
13043
13043
|
}, {
|
|
13044
|
-
default:
|
|
13044
|
+
default: x(() => [
|
|
13045
13045
|
w(p, { class: "px-4 text-body-1" }, {
|
|
13046
|
-
default:
|
|
13046
|
+
default: x(() => [
|
|
13047
13047
|
n("div", lg, [
|
|
13048
13048
|
n("div", rg, [
|
|
13049
13049
|
N(y(t.$t("marker.group")), 1),
|
|
@@ -13094,7 +13094,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13094
13094
|
color: "grey",
|
|
13095
13095
|
class: "mb-2"
|
|
13096
13096
|
}, {
|
|
13097
|
-
default:
|
|
13097
|
+
default: x(() => e[12] || (e[12] = [
|
|
13098
13098
|
N("mdi-cloud-upload-outline", -1)
|
|
13099
13099
|
])),
|
|
13100
13100
|
_: 1,
|
|
@@ -13119,7 +13119,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13119
13119
|
color: "success",
|
|
13120
13120
|
class: "mr-1"
|
|
13121
13121
|
}, {
|
|
13122
|
-
default:
|
|
13122
|
+
default: x(() => e[13] || (e[13] = [
|
|
13123
13123
|
N("mdi-check-circle", -1)
|
|
13124
13124
|
])),
|
|
13125
13125
|
_: 1,
|
|
@@ -13135,9 +13135,9 @@ function yg(t, e, o, i, a, l) {
|
|
|
13135
13135
|
class: "file-remove-btn",
|
|
13136
13136
|
onClick: l.handleRemoveFile
|
|
13137
13137
|
}, {
|
|
13138
|
-
default:
|
|
13138
|
+
default: x(() => [
|
|
13139
13139
|
w(m, { size: "16" }, {
|
|
13140
|
-
default:
|
|
13140
|
+
default: x(() => e[14] || (e[14] = [
|
|
13141
13141
|
N("mdi-close", -1)
|
|
13142
13142
|
])),
|
|
13143
13143
|
_: 1,
|
|
@@ -13152,14 +13152,14 @@ function yg(t, e, o, i, a, l) {
|
|
|
13152
13152
|
}),
|
|
13153
13153
|
w(s),
|
|
13154
13154
|
w(g, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
13155
|
-
default:
|
|
13155
|
+
default: x(() => [
|
|
13156
13156
|
w(r, {
|
|
13157
13157
|
class: "text-none text-body-1",
|
|
13158
13158
|
variant: "tonal",
|
|
13159
13159
|
density: "comfortable",
|
|
13160
13160
|
onClick: l.handleReset
|
|
13161
13161
|
}, {
|
|
13162
|
-
default:
|
|
13162
|
+
default: x(() => [
|
|
13163
13163
|
N(y(t.$t("actions.reset")), 1)
|
|
13164
13164
|
]),
|
|
13165
13165
|
_: 1
|
|
@@ -13172,7 +13172,7 @@ function yg(t, e, o, i, a, l) {
|
|
|
13172
13172
|
type: "submit",
|
|
13173
13173
|
loading: a.uploading
|
|
13174
13174
|
}, {
|
|
13175
|
-
default:
|
|
13175
|
+
default: x(() => [
|
|
13176
13176
|
N(y(t.$t("actions.confirm")), 1)
|
|
13177
13177
|
]),
|
|
13178
13178
|
_: 1
|
|
@@ -13247,7 +13247,7 @@ const wg = {
|
|
|
13247
13247
|
}));
|
|
13248
13248
|
}
|
|
13249
13249
|
}
|
|
13250
|
-
},
|
|
13250
|
+
}, xg = { class: "text-h6 font-weight-600" }, vg = { class: "text-label mb-2" };
|
|
13251
13251
|
function Ag(t, e, o, i, a, l) {
|
|
13252
13252
|
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
13253
|
return A(), F(b, {
|
|
@@ -13256,15 +13256,15 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13256
13256
|
persistent: "",
|
|
13257
13257
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.$emit("update:modelValue", u))
|
|
13258
13258
|
}, {
|
|
13259
|
-
default:
|
|
13259
|
+
default: x(() => [
|
|
13260
13260
|
w(g, {
|
|
13261
13261
|
class: "",
|
|
13262
13262
|
elevation: "4"
|
|
13263
13263
|
}, {
|
|
13264
|
-
default:
|
|
13264
|
+
default: x(() => [
|
|
13265
13265
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13266
|
-
default:
|
|
13267
|
-
n("span",
|
|
13266
|
+
default: x(() => [
|
|
13267
|
+
n("span", xg, y(t.$t("actions.editGroup")), 1),
|
|
13268
13268
|
w(r, {
|
|
13269
13269
|
icon: "",
|
|
13270
13270
|
density: "compact",
|
|
@@ -13272,7 +13272,7 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13272
13272
|
class: "mr-n2",
|
|
13273
13273
|
onClick: l.handleClose
|
|
13274
13274
|
}, {
|
|
13275
|
-
default:
|
|
13275
|
+
default: x(() => e[2] || (e[2] = [
|
|
13276
13276
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13277
13277
|
])),
|
|
13278
13278
|
_: 1,
|
|
@@ -13283,8 +13283,8 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13283
13283
|
}),
|
|
13284
13284
|
w(s),
|
|
13285
13285
|
w(m, { class: "px-4 text-body-1" }, {
|
|
13286
|
-
default:
|
|
13287
|
-
n("div",
|
|
13286
|
+
default: x(() => [
|
|
13287
|
+
n("div", vg, [
|
|
13288
13288
|
N(y(t.$t("marker.groupName")), 1),
|
|
13289
13289
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
13290
13290
|
]),
|
|
@@ -13304,14 +13304,14 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13304
13304
|
}),
|
|
13305
13305
|
w(s),
|
|
13306
13306
|
w(p, { class: "w-100 d-flex justify-end align-center ga-4 pa-4" }, {
|
|
13307
|
-
default:
|
|
13307
|
+
default: x(() => [
|
|
13308
13308
|
w(r, {
|
|
13309
13309
|
class: "text-none text-body-1",
|
|
13310
13310
|
variant: "tonal",
|
|
13311
13311
|
density: "comfortable",
|
|
13312
13312
|
onClick: l.handleClose
|
|
13313
13313
|
}, {
|
|
13314
|
-
default:
|
|
13314
|
+
default: x(() => [
|
|
13315
13315
|
N(y(t.$t("actions.cancel")), 1)
|
|
13316
13316
|
]),
|
|
13317
13317
|
_: 1
|
|
@@ -13324,7 +13324,7 @@ function Ag(t, e, o, i, a, l) {
|
|
|
13324
13324
|
loading: a.saving,
|
|
13325
13325
|
onClick: l.handleConfirm
|
|
13326
13326
|
}, {
|
|
13327
|
-
default:
|
|
13327
|
+
default: x(() => [
|
|
13328
13328
|
N(y(t.$t("actions.confirm")), 1)
|
|
13329
13329
|
]),
|
|
13330
13330
|
_: 1
|
|
@@ -13380,11 +13380,11 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13380
13380
|
"min-width": "500",
|
|
13381
13381
|
"max-width": "500"
|
|
13382
13382
|
}, {
|
|
13383
|
-
default:
|
|
13383
|
+
default: x(() => [
|
|
13384
13384
|
w(p, { class: "" }, {
|
|
13385
|
-
default:
|
|
13385
|
+
default: x(() => [
|
|
13386
13386
|
w(s, { class: "text-h6 font-weight-600 d-flex justify-center align-center py-4" }, {
|
|
13387
|
-
default:
|
|
13387
|
+
default: x(() => [
|
|
13388
13388
|
w(r, {
|
|
13389
13389
|
color: "warning",
|
|
13390
13390
|
icon: "mdi-alert-circle",
|
|
@@ -13399,7 +13399,7 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13399
13399
|
class: "position-absolute top-0 right-0 mt-2 mr-2",
|
|
13400
13400
|
onClick: l.handleClose
|
|
13401
13401
|
}, {
|
|
13402
|
-
default:
|
|
13402
|
+
default: x(() => e[1] || (e[1] = [
|
|
13403
13403
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13404
13404
|
])),
|
|
13405
13405
|
_: 1,
|
|
@@ -13409,21 +13409,21 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13409
13409
|
_: 1
|
|
13410
13410
|
}),
|
|
13411
13411
|
w(d, { class: "py-4 text-center" }, {
|
|
13412
|
-
default:
|
|
13412
|
+
default: x(() => [
|
|
13413
13413
|
n("p", zg, y(o.tips), 1),
|
|
13414
13414
|
n("p", _g, y(t.$t("tips.doYouWantToContinue")), 1)
|
|
13415
13415
|
]),
|
|
13416
13416
|
_: 1
|
|
13417
13417
|
}),
|
|
13418
13418
|
w(m, { class: "w-100 d-flex justify-center align-center ga-8 py-6" }, {
|
|
13419
|
-
default:
|
|
13419
|
+
default: x(() => [
|
|
13420
13420
|
w(c, {
|
|
13421
13421
|
variant: "tonal",
|
|
13422
13422
|
class: "text-none text-body-1",
|
|
13423
13423
|
height: "32",
|
|
13424
13424
|
onClick: l.handleClose
|
|
13425
13425
|
}, {
|
|
13426
|
-
default:
|
|
13426
|
+
default: x(() => [
|
|
13427
13427
|
N(y(t.$t("actions.cancel")), 1)
|
|
13428
13428
|
]),
|
|
13429
13429
|
_: 1
|
|
@@ -13436,7 +13436,7 @@ function Cg(t, e, o, i, a, l) {
|
|
|
13436
13436
|
height: "32",
|
|
13437
13437
|
onClick: l.handleDelete
|
|
13438
13438
|
}, {
|
|
13439
|
-
default:
|
|
13439
|
+
default: x(() => [
|
|
13440
13440
|
N(y(t.$t("actions.delete")), 1)
|
|
13441
13441
|
]),
|
|
13442
13442
|
_: 1
|
|
@@ -13660,29 +13660,29 @@ const Pg = {
|
|
|
13660
13660
|
var g, b, u, h;
|
|
13661
13661
|
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
13662
|
if (d === "Point") {
|
|
13663
|
-
const [f, L] = s.geometry.coordinates,
|
|
13663
|
+
const [f, L] = s.geometry.coordinates, v = `<div style="font-size:12px;line-height:1.5;">
|
|
13664
13664
|
<div style="font-weight:600;">${m}</div>
|
|
13665
13665
|
<div>${H.lat2pretty(L, 4).pretty}, ${H.lng2pretty(f, 4).pretty}</div>
|
|
13666
|
-
</div>`, C = new
|
|
13666
|
+
</div>`, C = new ve.Popup({
|
|
13667
13667
|
offset: 40,
|
|
13668
13668
|
closeButton: !1,
|
|
13669
13669
|
closeOnClick: !1,
|
|
13670
13670
|
anchor: "bottom",
|
|
13671
13671
|
className: "marker-popup-dark"
|
|
13672
|
-
}).setHTML(
|
|
13672
|
+
}).setHTML(v), z = new ve.Marker({ color: p }).setLngLat([f, L]).addTo(this.map), P = z.getElement();
|
|
13673
13673
|
P.addEventListener("mouseenter", () => C.setLngLat([f, L]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(z);
|
|
13674
13674
|
} else
|
|
13675
13675
|
d === "MultiPoint" && s.geometry.coordinates.forEach(([f, L]) => {
|
|
13676
|
-
const
|
|
13676
|
+
const v = `<div style="font-size:12px;line-height:1.5;">
|
|
13677
13677
|
<div style="font-weight:600;">${m}</div>
|
|
13678
13678
|
<div>${H.lat2pretty(L, 4).pretty}, ${H.lng2pretty(f, 4).pretty}</div>
|
|
13679
|
-
</div>`, C = new
|
|
13679
|
+
</div>`, C = new ve.Popup({
|
|
13680
13680
|
offset: 40,
|
|
13681
13681
|
closeButton: !1,
|
|
13682
13682
|
closeOnClick: !1,
|
|
13683
13683
|
anchor: "bottom",
|
|
13684
13684
|
className: "marker-popup-dark"
|
|
13685
|
-
}).setHTML(
|
|
13685
|
+
}).setHTML(v), z = new ve.Marker({ color: p }).setLngLat([f, L]).addTo(this.map), P = z.getElement();
|
|
13686
13686
|
P.addEventListener("mouseenter", () => C.setLngLat([f, L]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(z);
|
|
13687
13687
|
});
|
|
13688
13688
|
}), this.layerMarkers[t.id] = c;
|
|
@@ -13836,7 +13836,7 @@ const Pg = {
|
|
|
13836
13836
|
};
|
|
13837
13837
|
function Kg(t, e, o, i, a, l) {
|
|
13838
13838
|
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"),
|
|
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"), v = M("VDivider"), C = M("IdmDrawMarker"), z = M("IdmImportMarker"), P = M("IdmGroupDialog"), _ = M("DeleteDialog");
|
|
13840
13840
|
return A(), R("div", Sg, [
|
|
13841
13841
|
n("div", {
|
|
13842
13842
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13850,7 +13850,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13850
13850
|
"open-on-focus": !o.simple,
|
|
13851
13851
|
"open-on-hover": !o.simple
|
|
13852
13852
|
}, {
|
|
13853
|
-
activator:
|
|
13853
|
+
activator: x(({ props: T }) => [
|
|
13854
13854
|
w(r, V(T, {
|
|
13855
13855
|
"min-width": "32",
|
|
13856
13856
|
width: "32",
|
|
@@ -13858,7 +13858,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13858
13858
|
class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
|
|
13859
13859
|
onClick: l.handleMenuToggle
|
|
13860
13860
|
}), {
|
|
13861
|
-
default:
|
|
13861
|
+
default: x(() => e[7] || (e[7] = [
|
|
13862
13862
|
n("i", { class: "iconfont icon-compass text-h4" }, null, -1)
|
|
13863
13863
|
])),
|
|
13864
13864
|
_: 2,
|
|
@@ -13892,7 +13892,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13892
13892
|
variant: "text",
|
|
13893
13893
|
onClick: l.fetchAllLayers
|
|
13894
13894
|
}, {
|
|
13895
|
-
default:
|
|
13895
|
+
default: x(() => [
|
|
13896
13896
|
w(d, { icon: "mdi-refresh" })
|
|
13897
13897
|
]),
|
|
13898
13898
|
_: 1
|
|
@@ -13905,7 +13905,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13905
13905
|
variant: "plain",
|
|
13906
13906
|
onClick: l.handleMenuToggle
|
|
13907
13907
|
}, {
|
|
13908
|
-
default:
|
|
13908
|
+
default: x(() => e[8] || (e[8] = [
|
|
13909
13909
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
13910
13910
|
])),
|
|
13911
13911
|
_: 1,
|
|
@@ -13924,7 +13924,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13924
13924
|
autocomplete: "off",
|
|
13925
13925
|
class: "input-btn-bg-1"
|
|
13926
13926
|
}, {
|
|
13927
|
-
"prepend-inner":
|
|
13927
|
+
"prepend-inner": x(() => [
|
|
13928
13928
|
(A(), R("svg", Gg, e[9] || (e[9] = [
|
|
13929
13929
|
n("use", { "xlink:href": "#icon-search" }, null, -1)
|
|
13930
13930
|
])))
|
|
@@ -13943,7 +13943,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13943
13943
|
"prepend-icon": "mdi-plus",
|
|
13944
13944
|
onClick: e[2] || (e[2] = (T) => l.handleOpenDrawMarkers())
|
|
13945
13945
|
}, {
|
|
13946
|
-
default:
|
|
13946
|
+
default: x(() => [
|
|
13947
13947
|
N(y(t.$t("actions.add")), 1)
|
|
13948
13948
|
]),
|
|
13949
13949
|
_: 1
|
|
@@ -13958,7 +13958,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
13958
13958
|
"prepend-icon": "mdi-import",
|
|
13959
13959
|
onClick: l.handleOpenImportDialog
|
|
13960
13960
|
}, {
|
|
13961
|
-
default:
|
|
13961
|
+
default: x(() => [
|
|
13962
13962
|
N(y(t.$t("actions.import")), 1)
|
|
13963
13963
|
]),
|
|
13964
13964
|
_: 1
|
|
@@ -14007,7 +14007,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14007
14007
|
color: "primary",
|
|
14008
14008
|
onClick: (G) => T.show = !T.show
|
|
14009
14009
|
}, {
|
|
14010
|
-
default:
|
|
14010
|
+
default: x(() => {
|
|
14011
14011
|
var G;
|
|
14012
14012
|
return [
|
|
14013
14013
|
N(y((G = T.layers) == null ? void 0 : G.length), 1)
|
|
@@ -14027,18 +14027,18 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14027
14027
|
variant: "plain",
|
|
14028
14028
|
class: "mx-1"
|
|
14029
14029
|
}, {
|
|
14030
|
-
default:
|
|
14030
|
+
default: x(() => [
|
|
14031
14031
|
e[10] || (e[10] = n("i", { class: "iconfont icon-dots-vertical text-h4 cursor-pointer" }, null, -1)),
|
|
14032
14032
|
w(L, {
|
|
14033
14033
|
activator: "parent",
|
|
14034
14034
|
"min-width": "240",
|
|
14035
14035
|
class: "drop-menu"
|
|
14036
14036
|
}, {
|
|
14037
|
-
default:
|
|
14037
|
+
default: x(() => [
|
|
14038
14038
|
w(f, { class: "pa-2 px-0" }, {
|
|
14039
|
-
default:
|
|
14039
|
+
default: x(() => [
|
|
14040
14040
|
w(h, { class: "" }, {
|
|
14041
|
-
default:
|
|
14041
|
+
default: x(() => [
|
|
14042
14042
|
w(u, {
|
|
14043
14043
|
value: "account",
|
|
14044
14044
|
variant: "flat",
|
|
@@ -14046,12 +14046,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14046
14046
|
height: "38",
|
|
14047
14047
|
"min-height": "38"
|
|
14048
14048
|
}, {
|
|
14049
|
-
default:
|
|
14049
|
+
default: x(() => [
|
|
14050
14050
|
w(b, {
|
|
14051
14051
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14052
14052
|
onClick: (G) => l.handleOpenDrawMarkers(T)
|
|
14053
14053
|
}, {
|
|
14054
|
-
default:
|
|
14054
|
+
default: x(() => [
|
|
14055
14055
|
w(d, {
|
|
14056
14056
|
icon: "mdi-plus-circle-outline mr-4",
|
|
14057
14057
|
size: "16"
|
|
@@ -14070,12 +14070,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14070
14070
|
height: "38",
|
|
14071
14071
|
"min-height": "38"
|
|
14072
14072
|
}, {
|
|
14073
|
-
default:
|
|
14073
|
+
default: x(() => [
|
|
14074
14074
|
w(b, {
|
|
14075
14075
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14076
14076
|
onClick: (G) => l.handleEditGroup(T)
|
|
14077
14077
|
}, {
|
|
14078
|
-
default:
|
|
14078
|
+
default: x(() => [
|
|
14079
14079
|
w(d, {
|
|
14080
14080
|
icon: "mdi-pencil mr-4",
|
|
14081
14081
|
size: "16"
|
|
@@ -14094,12 +14094,12 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14094
14094
|
height: "38",
|
|
14095
14095
|
"min-height": "38"
|
|
14096
14096
|
}, {
|
|
14097
|
-
default:
|
|
14097
|
+
default: x(() => [
|
|
14098
14098
|
w(b, {
|
|
14099
14099
|
class: "text-body-1 d-flex jusity-center align-center",
|
|
14100
14100
|
onClick: (G) => l.handleOpenDelete("group", T)
|
|
14101
14101
|
}, {
|
|
14102
|
-
default:
|
|
14102
|
+
default: x(() => [
|
|
14103
14103
|
w(d, {
|
|
14104
14104
|
icon: "mdi-trash-can-outline mr-4",
|
|
14105
14105
|
size: "16"
|
|
@@ -14147,7 +14147,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14147
14147
|
variant: "text",
|
|
14148
14148
|
onClick: (ie) => l.handleEditLayer(T, G)
|
|
14149
14149
|
}, {
|
|
14150
|
-
default:
|
|
14150
|
+
default: x(() => [
|
|
14151
14151
|
w(d, {
|
|
14152
14152
|
icon: "mdi-pencil",
|
|
14153
14153
|
size: "16"
|
|
@@ -14162,7 +14162,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14162
14162
|
variant: "text",
|
|
14163
14163
|
onClick: (ie) => l.handleOpenDelete("layer", G)
|
|
14164
14164
|
}, {
|
|
14165
|
-
default:
|
|
14165
|
+
default: x(() => [
|
|
14166
14166
|
w(d, {
|
|
14167
14167
|
icon: "mdi-trash-can-outline",
|
|
14168
14168
|
size: "16"
|
|
@@ -14174,7 +14174,7 @@ function Kg(t, e, o, i, a, l) {
|
|
|
14174
14174
|
], 2);
|
|
14175
14175
|
}), 128))
|
|
14176
14176
|
])) : I("", !0),
|
|
14177
|
-
B < a.layerGroup.length - 1 ? (A(), F(
|
|
14177
|
+
B < a.layerGroup.length - 1 ? (A(), F(v, {
|
|
14178
14178
|
key: 1,
|
|
14179
14179
|
class: "w-100",
|
|
14180
14180
|
thickness: "1"
|
|
@@ -14355,7 +14355,7 @@ async function so(t, e = {}) {
|
|
|
14355
14355
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1 };
|
|
14356
14356
|
if (o === "dataURL")
|
|
14357
14357
|
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:([^,]*),(.*)$/) || [],
|
|
14358
|
+
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
14359
|
return { ok: !0, data: z, status: 200, url: t, fromCache: !1, mime: z.type || "" };
|
|
14360
14360
|
} catch {
|
|
14361
14361
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "special_url_error" };
|
|
@@ -14365,8 +14365,8 @@ async function so(t, e = {}) {
|
|
|
14365
14365
|
let f = await fetch(t);
|
|
14366
14366
|
if (!f.ok)
|
|
14367
14367
|
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:
|
|
14368
|
+
let L = await f.blob(), v = L.type || f.headers.get("content-type") || "";
|
|
14369
|
+
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
14370
|
} catch {
|
|
14371
14371
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "network" };
|
|
14372
14372
|
}
|
|
@@ -14400,15 +14400,15 @@ async function so(t, e = {}) {
|
|
|
14400
14400
|
}
|
|
14401
14401
|
if (o === "text")
|
|
14402
14402
|
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:
|
|
14403
|
+
let L = await f.blob(), v = L.type || f.headers.get("content-type") || "";
|
|
14404
|
+
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
14405
|
} 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:
|
|
14406
|
+
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 };
|
|
14407
|
+
if (!/^blob:/i.test(t) && l > 0 && Oo.set(s, { until: Date.now() + l, result: v }), !c) {
|
|
14408
14408
|
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
14409
|
pl.errorOnce(C, z);
|
|
14410
14410
|
}
|
|
14411
|
-
return e.onError && e.onError(
|
|
14411
|
+
return e.onError && e.onError(v), v;
|
|
14412
14412
|
} finally {
|
|
14413
14413
|
clearTimeout(u), ea.delete(s);
|
|
14414
14414
|
}
|
|
@@ -14571,7 +14571,7 @@ async function w0(t = "Material Icons", e = 24) {
|
|
|
14571
14571
|
} catch {
|
|
14572
14572
|
}
|
|
14573
14573
|
}
|
|
14574
|
-
function
|
|
14574
|
+
function x0(t) {
|
|
14575
14575
|
var a, l;
|
|
14576
14576
|
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
14577
|
if (e && !o && e.toLowerCase() !== "currentcolor")
|
|
@@ -14579,7 +14579,7 @@ function v0(t) {
|
|
|
14579
14579
|
let i = (l = t.color) == null ? void 0 : l.trim();
|
|
14580
14580
|
return i && i !== "inherit" ? i : "#000";
|
|
14581
14581
|
}
|
|
14582
|
-
async function
|
|
14582
|
+
async function v0(t, { family: e = "Material Icons", weight: o = "normal", fontSize: i = 32, color: a = "#000", variation: l = "", className: r = "" } = {}) {
|
|
14583
14583
|
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = y0(l), { familyForMeasure: m, familyForCanvas: p } = await b0(c, r, d);
|
|
14584
14584
|
await w0(p.replace(/^["']+|["']+$/g, ""), i);
|
|
14585
14585
|
let g = document.createElement("span");
|
|
@@ -14612,10 +14612,10 @@ async function A0(t, e) {
|
|
|
14612
14612
|
let p = (s || c).textContent.trim();
|
|
14613
14613
|
if (!p)
|
|
14614
14614
|
continue;
|
|
14615
|
-
let g = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u =
|
|
14615
|
+
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
14616
|
c.textContent = "";
|
|
14617
14617
|
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(
|
|
14618
|
+
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
14619
|
} catch {
|
|
14620
14620
|
}
|
|
14621
14621
|
}
|
|
@@ -14887,7 +14887,7 @@ function I0(t) {
|
|
|
14887
14887
|
return t;
|
|
14888
14888
|
let e = /@font-face[^{}]*\{[^}]*\}/gi, o = /* @__PURE__ */ new Set(), i = [];
|
|
14889
14889
|
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(),
|
|
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(), 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
14891
|
o.has(P) || (o.add(P), i.push(p));
|
|
14892
14892
|
}
|
|
14893
14893
|
if (i.length === 0)
|
|
@@ -14951,7 +14951,7 @@ async function Ol(t, e, o, i) {
|
|
|
14951
14951
|
}
|
|
14952
14952
|
}
|
|
14953
14953
|
async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFonts: i = [], useProxy: a = "" } = {}) {
|
|
14954
|
-
var h, f, L,
|
|
14954
|
+
var h, f, L, v, C, z, P, _, D, T, B, j, G, Q, ie, re, xe, be;
|
|
14955
14955
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
14956
14956
|
let l = /* @__PURE__ */ new Map();
|
|
14957
14957
|
for (let E of t) {
|
|
@@ -15034,7 +15034,7 @@ async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15034
15034
|
let Y = (((f = q.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), le = $o(Y);
|
|
15035
15035
|
if (!le || co(le))
|
|
15036
15036
|
continue;
|
|
15037
|
-
let Z = (((L = q.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "400").trim(), U = (((
|
|
15037
|
+
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
15038
|
if (!r(le, U, Z, fe))
|
|
15039
15039
|
continue;
|
|
15040
15040
|
let Ae = Wl(Le);
|
|
@@ -15101,7 +15101,7 @@ async function G0({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15101
15101
|
try {
|
|
15102
15102
|
let Z = await so(Y, { as: "dataURL", useProxy: a, silent: !0 });
|
|
15103
15103
|
if (Z.ok && typeof Z.data == "string")
|
|
15104
|
-
le = Z.data, (re = O.resource) == null || re.set(Y, le), (
|
|
15104
|
+
le = Z.data, (re = O.resource) == null || re.set(Y, le), (xe = O.font) == null || xe.add(Y);
|
|
15105
15105
|
else
|
|
15106
15106
|
continue;
|
|
15107
15107
|
} catch {
|
|
@@ -15207,8 +15207,8 @@ async function N0(t, e, o, i = {}) {
|
|
|
15207
15207
|
let f = p.getPropertyValue(h);
|
|
15208
15208
|
if (!f || f === "none")
|
|
15209
15209
|
continue;
|
|
15210
|
-
let L = Nl(f),
|
|
15211
|
-
|
|
15210
|
+
let L = Nl(f), v = await Promise.all(L.map((C) => Fl(C, i)));
|
|
15211
|
+
v.some((C) => C && C !== "none" && !/^url\(undefined/.test(C)) && m.style.setProperty(h, v.join(", "));
|
|
15212
15212
|
}
|
|
15213
15213
|
for (let h of r) {
|
|
15214
15214
|
let f = p.getPropertyValue(h);
|
|
@@ -15298,15 +15298,15 @@ function V0(t) {
|
|
|
15298
15298
|
function X0(t, e, o = !1) {
|
|
15299
15299
|
return !t || t.plugins && !o || (t.plugins = V0(e)), t;
|
|
15300
15300
|
}
|
|
15301
|
-
var
|
|
15301
|
+
var xl = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new Map(), na = 0;
|
|
15302
15302
|
function jo() {
|
|
15303
15303
|
na++;
|
|
15304
15304
|
}
|
|
15305
|
-
var
|
|
15305
|
+
var vl = !1;
|
|
15306
15306
|
function O0(t = document.documentElement) {
|
|
15307
15307
|
var e, o;
|
|
15308
|
-
if (!
|
|
15309
|
-
|
|
15308
|
+
if (!vl) {
|
|
15309
|
+
vl = !0;
|
|
15310
15310
|
try {
|
|
15311
15311
|
new MutationObserver(() => jo()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15312
15312
|
} catch {
|
|
@@ -15355,11 +15355,11 @@ function Y0(t) {
|
|
|
15355
15355
|
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
15356
|
}
|
|
15357
15357
|
function U0(t, e = null, o = {}) {
|
|
15358
|
-
let i =
|
|
15358
|
+
let i = xl.get(t);
|
|
15359
15359
|
if (i && i.epoch === na)
|
|
15360
15360
|
return i.snapshot;
|
|
15361
15361
|
let a = e || getComputedStyle(t), l = H0(a, o);
|
|
15362
|
-
return ef(t, a, l),
|
|
15362
|
+
return ef(t, a, l), xl.set(t, { epoch: na, snapshot: l }), l;
|
|
15363
15363
|
}
|
|
15364
15364
|
function J0(t, e) {
|
|
15365
15365
|
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 +15698,13 @@ async function Ll(t) {
|
|
|
15698
15698
|
function Ho(t) {
|
|
15699
15699
|
return typeof t == "string" && t.startsWith("blob:");
|
|
15700
15700
|
}
|
|
15701
|
-
function
|
|
15701
|
+
function xf(t) {
|
|
15702
15702
|
return (t || "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => {
|
|
15703
15703
|
let o = e.match(/^(\S+)(\s+.+)?$/);
|
|
15704
15704
|
return o ? { url: o[1], desc: o[2] || "" } : null;
|
|
15705
15705
|
}).filter(Boolean);
|
|
15706
15706
|
}
|
|
15707
|
-
function
|
|
15707
|
+
function vf(t) {
|
|
15708
15708
|
return t.map((e) => e.desc ? `${e.url} ${e.desc.trim()}` : e.url).join(", ");
|
|
15709
15709
|
}
|
|
15710
15710
|
async function Af(t) {
|
|
@@ -15721,14 +15721,14 @@ async function Af(t) {
|
|
|
15721
15721
|
}
|
|
15722
15722
|
let m = s.getAttribute("srcset");
|
|
15723
15723
|
if (m && m.includes("blob:")) {
|
|
15724
|
-
let p =
|
|
15724
|
+
let p = xf(m), g = !1;
|
|
15725
15725
|
for (let b of p)
|
|
15726
15726
|
if (Ho(b.url))
|
|
15727
15727
|
try {
|
|
15728
15728
|
b.url = await No(b.url), g = !0;
|
|
15729
15729
|
} catch {
|
|
15730
15730
|
}
|
|
15731
|
-
g && s.setAttribute("srcset",
|
|
15731
|
+
g && s.setAttribute("srcset", vf(p));
|
|
15732
15732
|
}
|
|
15733
15733
|
} catch {
|
|
15734
15734
|
}
|
|
@@ -15849,16 +15849,16 @@ async function Jo(t, e, o) {
|
|
|
15849
15849
|
L && L.getImageData(0, 0, 1, 1);
|
|
15850
15850
|
} catch {
|
|
15851
15851
|
}
|
|
15852
|
-
if (await new Promise((
|
|
15852
|
+
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15853
15853
|
try {
|
|
15854
15854
|
L && L.getImageData(0, 0, 1, 1);
|
|
15855
15855
|
} catch {
|
|
15856
15856
|
}
|
|
15857
|
-
if (await new Promise((
|
|
15858
|
-
let
|
|
15859
|
-
|
|
15860
|
-
let C =
|
|
15861
|
-
C && (C.drawImage(t, 0, 0), h =
|
|
15857
|
+
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15858
|
+
let v = document.createElement("canvas");
|
|
15859
|
+
v.width = t.width, v.height = t.height;
|
|
15860
|
+
let C = v.getContext("2d");
|
|
15861
|
+
C && (C.drawImage(t, 0, 0), h = v.toDataURL("image/png"));
|
|
15862
15862
|
}
|
|
15863
15863
|
}
|
|
15864
15864
|
} catch {
|
|
@@ -15883,7 +15883,7 @@ async function Jo(t, e, o) {
|
|
|
15883
15883
|
try {
|
|
15884
15884
|
let h = t.getBoundingClientRect(), f = Math.round(h.width || 0), L = Math.round(h.height || 0);
|
|
15885
15885
|
if (!f || !L) {
|
|
15886
|
-
let
|
|
15886
|
+
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
15887
|
f = Math.round(f || C || P || D || 0), L = Math.round(L || z || _ || T || 0);
|
|
15888
15888
|
}
|
|
15889
15889
|
f && (r.dataset.snapdomWidth = String(f)), L && (r.dataset.snapdomHeight = String(L));
|
|
@@ -15893,8 +15893,8 @@ async function Jo(t, e, o) {
|
|
|
15893
15893
|
let h = t.getAttribute("style") || "", f = window.getComputedStyle(t), L = (_) => {
|
|
15894
15894
|
let D = h.match(new RegExp(`${_}\\s*:\\s*([^;]+)`, "i")), T = D ? D[1].trim() : f.getPropertyValue(_);
|
|
15895
15895
|
return /%|auto/i.test(String(T || ""));
|
|
15896
|
-
},
|
|
15897
|
-
z &&
|
|
15896
|
+
}, v = parseInt(r.dataset.snapdomWidth || "0", 10), C = parseInt(r.dataset.snapdomHeight || "0", 10), z = L("width") || !v, P = L("height") || !C;
|
|
15897
|
+
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
15898
|
} catch {
|
|
15899
15899
|
}
|
|
15900
15900
|
}
|
|
@@ -15934,7 +15934,7 @@ async function Jo(t, e, o) {
|
|
|
15934
15934
|
r.setAttribute("data-sd", f);
|
|
15935
15935
|
} catch {
|
|
15936
15936
|
}
|
|
15937
|
-
let
|
|
15937
|
+
let v = sf(t.shadowRoot), C = rf(v, L), z = df(v), P = uf(t, z, L);
|
|
15938
15938
|
cf(r, P + C, f);
|
|
15939
15939
|
let _ = document.createDocumentFragment(), D = await ta(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15940
15940
|
_.append(...D.filter((T) => !!T)), r.appendChild(_);
|
|
@@ -15946,8 +15946,8 @@ async function Jo(t, e, o) {
|
|
|
15946
15946
|
}).catch(() => {
|
|
15947
15947
|
P(null);
|
|
15948
15948
|
});
|
|
15949
|
-
}, f = ((u = t.assignedNodes) == null ? void 0 : u.call(t, { flatten: !0 })) || [], L = f.length > 0 ? f : Array.from(t.childNodes),
|
|
15950
|
-
return
|
|
15949
|
+
}, 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);
|
|
15950
|
+
return v.append(...C.filter((z) => !!z)), v;
|
|
15951
15951
|
}
|
|
15952
15952
|
function c(h, f) {
|
|
15953
15953
|
if (i.has(h))
|
|
@@ -16023,10 +16023,10 @@ function zf(t) {
|
|
|
16023
16023
|
b.set(u, h.slice());
|
|
16024
16024
|
return b;
|
|
16025
16025
|
}, s = (g, b, u) => {
|
|
16026
|
-
var
|
|
16026
|
+
var v, C;
|
|
16027
16027
|
let h = c(g), f;
|
|
16028
16028
|
try {
|
|
16029
|
-
f = ((
|
|
16029
|
+
f = ((v = u.style) == null ? void 0 : v.counterReset) || getComputedStyle(u).counterReset;
|
|
16030
16030
|
} catch {
|
|
16031
16031
|
}
|
|
16032
16032
|
if (f && f !== "none")
|
|
@@ -16204,7 +16204,7 @@ function Sl(t = document) {
|
|
|
16204
16204
|
}
|
|
16205
16205
|
return t.querySelector('[style*="counter("], [style*="counters("]') ? (yo.set(t, { fingerprint: e, result: !0 }), !0) : (yo.set(t, { fingerprint: e, result: !1 }), !1);
|
|
16206
16206
|
}
|
|
16207
|
-
var
|
|
16207
|
+
var xo = /* @__PURE__ */ new WeakMap(), Tl = -1;
|
|
16208
16208
|
function Mf(t) {
|
|
16209
16209
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
16210
16210
|
}
|
|
@@ -16217,7 +16217,7 @@ function Pf(t) {
|
|
|
16217
16217
|
return e.length ? e.join("") : Mf(t);
|
|
16218
16218
|
}
|
|
16219
16219
|
function ca(t, e) {
|
|
16220
|
-
let o = t.parentElement, i = o ?
|
|
16220
|
+
let o = t.parentElement, i = o ? xo.get(o) : null;
|
|
16221
16221
|
return i ? { get(a, l) {
|
|
16222
16222
|
let r = e.get(a, l), c = i.get(l);
|
|
16223
16223
|
return typeof c == "number" ? Math.max(r, c) : r;
|
|
@@ -16290,7 +16290,7 @@ async function Kl(t, e, o, i) {
|
|
|
16290
16290
|
if (!Cf(a, o))
|
|
16291
16291
|
return;
|
|
16292
16292
|
let l = ((d = O == null ? void 0 : O.session) == null ? void 0 : d.__counterEpoch) ?? 0;
|
|
16293
|
-
if (Tl !== l && (
|
|
16293
|
+
if (Tl !== l && (xo = /* @__PURE__ */ new WeakMap(), o && (o.__counterCtx = null), Tl = l), !o.__counterCtx)
|
|
16294
16294
|
try {
|
|
16295
16295
|
o.__counterCtx = zf(t.ownerDocument || document);
|
|
16296
16296
|
} catch {
|
|
@@ -16322,17 +16322,17 @@ async function Kl(t, e, o, i) {
|
|
|
16322
16322
|
e.replaceChild(he, Y), e.insertBefore(fe, he);
|
|
16323
16323
|
continue;
|
|
16324
16324
|
}
|
|
16325
|
-
let u = b.content ?? "", h = u === "" || u === "none" || u === "normal", { text: f, incs: L } = Sf(t, g, r),
|
|
16326
|
-
if (!(Q || ie || re ||
|
|
16325
|
+
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";
|
|
16326
|
+
if (!(Q || ie || re || xe || be)) {
|
|
16327
16327
|
if (L && L.length && t.parentElement) {
|
|
16328
|
-
let q =
|
|
16328
|
+
let q = xo.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
16329
16329
|
for (let { name: Y } of L) {
|
|
16330
16330
|
if (!Y)
|
|
16331
16331
|
continue;
|
|
16332
16332
|
let le = ca(t, r), Z = ma(t, getComputedStyle(t, g), le).get(t, Y);
|
|
16333
16333
|
q.set(Y, Z);
|
|
16334
16334
|
}
|
|
16335
|
-
|
|
16335
|
+
xo.set(t.parentElement, q);
|
|
16336
16336
|
}
|
|
16337
16337
|
continue;
|
|
16338
16338
|
}
|
|
@@ -16360,22 +16360,22 @@ async function Kl(t, e, o, i) {
|
|
|
16360
16360
|
}
|
|
16361
16361
|
if (ie)
|
|
16362
16362
|
try {
|
|
16363
|
-
let q = Nl(
|
|
16363
|
+
let q = Nl(v), Y = await Promise.all(q.map(Fl));
|
|
16364
16364
|
E.style.backgroundImage = Y.join(", ");
|
|
16365
16365
|
} catch (q) {
|
|
16366
16366
|
console.warn(`[snapdom] Failed to inline background-image for ${g}`, q);
|
|
16367
16367
|
}
|
|
16368
16368
|
re && (E.style.backgroundColor = C);
|
|
16369
|
-
let se = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || ie || re ||
|
|
16369
|
+
let se = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || ie || re || xe || be;
|
|
16370
16370
|
if (L && L.length && t.parentElement) {
|
|
16371
|
-
let q =
|
|
16371
|
+
let q = xo.get(t.parentElement) || /* @__PURE__ */ new Map(), Y = ca(t, r), le = ma(t, getComputedStyle(t, g), Y);
|
|
16372
16372
|
for (let { name: Z } of L) {
|
|
16373
16373
|
if (!Z)
|
|
16374
16374
|
continue;
|
|
16375
16375
|
let U = le.get(t, Z);
|
|
16376
16376
|
q.set(Z, U);
|
|
16377
16377
|
}
|
|
16378
|
-
|
|
16378
|
+
xo.set(t.parentElement, q);
|
|
16379
16379
|
}
|
|
16380
16380
|
if (!se)
|
|
16381
16381
|
continue;
|
|
@@ -16458,10 +16458,10 @@ function Tf(t, e) {
|
|
|
16458
16458
|
};
|
|
16459
16459
|
if (!p.size)
|
|
16460
16460
|
return;
|
|
16461
|
-
let
|
|
16462
|
-
for (;
|
|
16463
|
-
let _ =
|
|
16464
|
-
if (
|
|
16461
|
+
let v = new Set(p), C = /* @__PURE__ */ new Set();
|
|
16462
|
+
for (; v.size; ) {
|
|
16463
|
+
let _ = v.values().next().value;
|
|
16464
|
+
if (v.delete(_), !_ || m.has(_) || C.has(_))
|
|
16465
16465
|
continue;
|
|
16466
16466
|
let D = L(_);
|
|
16467
16467
|
if (!D) {
|
|
@@ -16476,13 +16476,13 @@ function Tf(t, e) {
|
|
|
16476
16476
|
let G = d(j);
|
|
16477
16477
|
if (G && G.startsWith("#")) {
|
|
16478
16478
|
let ie = G.slice(1).trim();
|
|
16479
|
-
ie && !m.has(ie) && !C.has(ie) &&
|
|
16479
|
+
ie && !m.has(ie) && !C.has(ie) && v.add(ie);
|
|
16480
16480
|
}
|
|
16481
16481
|
let Q = ((z = j.getAttribute) == null ? void 0 : z.call(j, "style")) || "";
|
|
16482
|
-
Q && b(Q,
|
|
16482
|
+
Q && b(Q, v);
|
|
16483
16483
|
for (let ie of r) {
|
|
16484
16484
|
let re = (P = j.getAttribute) == null ? void 0 : P.call(j, ie);
|
|
16485
|
-
re && b(re,
|
|
16485
|
+
re && b(re, v);
|
|
16486
16486
|
}
|
|
16487
16487
|
}
|
|
16488
16488
|
}
|
|
@@ -16506,14 +16506,14 @@ function Rf(t, e) {
|
|
|
16506
16506
|
let b = Df(s, t), u = If(e, b, l);
|
|
16507
16507
|
if (!u)
|
|
16508
16508
|
continue;
|
|
16509
|
-
let h = s.getBoundingClientRect(), f = h.width, L = h.height,
|
|
16510
|
-
if (!(f > 0 && L > 0) || !Number.isFinite(
|
|
16509
|
+
let h = s.getBoundingClientRect(), f = h.width, L = h.height, v = h.left - i.left;
|
|
16510
|
+
if (!(f > 0 && L > 0) || !Number.isFinite(v))
|
|
16511
16511
|
continue;
|
|
16512
16512
|
let C = p != null ? p + o : o + (a - L - g);
|
|
16513
16513
|
if (!Number.isFinite(C))
|
|
16514
16514
|
continue;
|
|
16515
16515
|
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 = `${
|
|
16516
|
+
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
16517
|
}
|
|
16518
16518
|
}
|
|
16519
16519
|
function Rl(t) {
|
|
@@ -16883,12 +16883,12 @@ function r1(t, e) {
|
|
|
16883
16883
|
if (l.length === 6 && l.every(Number.isFinite)) {
|
|
16884
16884
|
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
16885
|
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,
|
|
16886
|
+
let L = m, v = 0, C = b * f, z = f;
|
|
16887
16887
|
try {
|
|
16888
|
-
e.style.transform = `matrix(${L}, ${
|
|
16888
|
+
e.style.transform = `matrix(${L}, ${v}, ${C}, ${z}, 0, 0)`;
|
|
16889
16889
|
} catch {
|
|
16890
16890
|
}
|
|
16891
|
-
return { a: L, b:
|
|
16891
|
+
return { a: L, b: v, c: C, d: z };
|
|
16892
16892
|
}
|
|
16893
16893
|
}
|
|
16894
16894
|
try {
|
|
@@ -16900,13 +16900,13 @@ function r1(t, e) {
|
|
|
16900
16900
|
}
|
|
16901
16901
|
function Dl(t, e, o, i, a) {
|
|
16902
16902
|
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 =
|
|
16903
|
+
function p(L, v) {
|
|
16904
|
+
let C = L - i, z = v - a, P = l * C + c * z, _ = r * C + s * z;
|
|
16905
16905
|
return P += i + d, _ += a + m, [P, _];
|
|
16906
16906
|
}
|
|
16907
16907
|
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),
|
|
16908
|
+
for (let [L, v] of g)
|
|
16909
|
+
L < b && (b = L), v < u && (u = v), L > h && (h = L), v > f && (f = v);
|
|
16910
16910
|
return { minX: b, minY: u, maxX: h, maxY: f, width: h - b, height: f - u };
|
|
16911
16911
|
}
|
|
16912
16912
|
function n1(t, e, o) {
|
|
@@ -16947,8 +16947,8 @@ function s1(t) {
|
|
|
16947
16947
|
}
|
|
16948
16948
|
let h = g("translate");
|
|
16949
16949
|
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}${
|
|
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, 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";
|
|
16951
|
+
e.translate = `${f}${v} ${L}${C}`;
|
|
16952
16952
|
} else {
|
|
16953
16953
|
let f = getComputedStyle(t);
|
|
16954
16954
|
e.translate = f.translate && f.translate !== "none" ? f.translate : null;
|
|
@@ -16989,7 +16989,7 @@ function Ql(t) {
|
|
|
16989
16989
|
}
|
|
16990
16990
|
}
|
|
16991
16991
|
async function ql(t, e) {
|
|
16992
|
-
var
|
|
16992
|
+
var v;
|
|
16993
16993
|
if (!t)
|
|
16994
16994
|
throw new Error("Element cannot be null or undefined");
|
|
16995
16995
|
qg(e.cache);
|
|
@@ -17001,7 +17001,7 @@ async function ql(t, e) {
|
|
|
17001
17001
|
} finally {
|
|
17002
17002
|
u();
|
|
17003
17003
|
}
|
|
17004
|
-
if (l = { clone: r, classCSS: c, styleCache: s, ...l }, await ho("afterClone", l), Uf(l.clone), ((
|
|
17004
|
+
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
17005
|
try {
|
|
17006
17006
|
qf(l.element, l.clone, l.styleCache);
|
|
17007
17007
|
} catch (C) {
|
|
@@ -17045,8 +17045,8 @@ async function ql(t, e) {
|
|
|
17045
17045
|
let T = (Te, Re = NaN) => {
|
|
17046
17046
|
let Ne = typeof Te == "string" ? parseFloat(Te) : Te;
|
|
17047
17047
|
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 / (
|
|
17048
|
+
}, 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;
|
|
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 / (xe || 1)))) : re ? (Q = Math.max(1, me(j)), G = Math.max(1, me(Q * (xe || 1)))) : (G = _, Q = D);
|
|
17050
17050
|
let be = 0, E = 0, $ = _, te = D;
|
|
17051
17051
|
if (!i && b && Number.isFinite(b.a)) {
|
|
17052
17052
|
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 +17109,52 @@ Se.capture = async (t, e, o) => {
|
|
|
17109
17109
|
if (o !== $l)
|
|
17110
17110
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17111
17111
|
let i = await ql(t, e), a = { img: async (u, h) => {
|
|
17112
|
-
let { toImg: f } = await import("./toImg-
|
|
17112
|
+
let { toImg: f } = await import("./toImg-6357dd5b.js");
|
|
17113
17113
|
return f(i, { ...u, ...h || {} });
|
|
17114
17114
|
}, svg: async (u, h) => {
|
|
17115
|
-
let { toSvg: f } = await import("./toImg-
|
|
17115
|
+
let { toSvg: f } = await import("./toImg-6357dd5b.js");
|
|
17116
17116
|
return f(i, { ...u, ...h || {} });
|
|
17117
17117
|
}, canvas: async (u, h) => {
|
|
17118
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17118
|
+
let { toCanvas: f } = await import("./toCanvas-a791e335.js");
|
|
17119
17119
|
return f(i, { ...u, ...h || {} });
|
|
17120
17120
|
}, blob: async (u, h) => {
|
|
17121
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17121
|
+
let { toBlob: f } = await import("./toBlob-e159d4f3.js");
|
|
17122
17122
|
return f(i, { ...u, ...h || {} });
|
|
17123
17123
|
}, png: async (u, h) => {
|
|
17124
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17124
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17125
17125
|
return f(i, { ...u, ...h || {}, format: "png" });
|
|
17126
17126
|
}, jpeg: async (u, h) => {
|
|
17127
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17127
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17128
17128
|
return f(i, { ...u, ...h || {}, format: "jpeg" });
|
|
17129
17129
|
}, webp: async (u, h) => {
|
|
17130
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17130
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17131
17131
|
return f(i, { ...u, ...h || {}, format: "webp" });
|
|
17132
17132
|
}, download: async (u, h) => {
|
|
17133
|
-
let { download: f } = await import("./download-
|
|
17133
|
+
let { download: f } = await import("./download-9206a571.js");
|
|
17134
17134
|
return f(i, { ...u, ...h || {} });
|
|
17135
17135
|
} }, l = { ...e, export: { url: i }, exports: { svg: async (u) => {
|
|
17136
|
-
let { toSvg: h } = await import("./toImg-
|
|
17136
|
+
let { toSvg: h } = await import("./toImg-6357dd5b.js");
|
|
17137
17137
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17138
17138
|
}, canvas: async (u) => {
|
|
17139
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17139
|
+
let { toCanvas: h } = await import("./toCanvas-a791e335.js");
|
|
17140
17140
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17141
17141
|
}, png: async (u) => {
|
|
17142
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17142
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17143
17143
|
return h(i, { ...e, ...u || {}, format: "png", [mo]: !0 });
|
|
17144
17144
|
}, jpeg: async (u) => {
|
|
17145
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17145
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17146
17146
|
return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
|
|
17147
17147
|
}, jpg: async (u) => {
|
|
17148
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17148
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17149
17149
|
return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
|
|
17150
17150
|
}, webp: async (u) => {
|
|
17151
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17151
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
|
|
17152
17152
|
return h(i, { ...e, ...u || {}, format: "webp", [mo]: !0 });
|
|
17153
17153
|
}, blob: async (u) => {
|
|
17154
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17154
|
+
let { toBlob: h } = await import("./toBlob-e159d4f3.js");
|
|
17155
17155
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17156
17156
|
}, img: async (u) => {
|
|
17157
|
-
let { toImg: h } = await import("./toImg-
|
|
17157
|
+
let { toImg: h } = await import("./toImg-6357dd5b.js");
|
|
17158
17158
|
return h(i, { ...e, ...u || {}, [mo]: !0 });
|
|
17159
17159
|
} } }, r = await W0("defineExports", l), c = Object.assign({}, ...r.filter((u) => u && typeof u == "object")), s = { ...a, ...c };
|
|
17160
17160
|
s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
|
|
@@ -17168,9 +17168,9 @@ Se.capture = async (t, e, o) => {
|
|
|
17168
17168
|
let L = s[u];
|
|
17169
17169
|
if (!L)
|
|
17170
17170
|
throw new Error(`[snapdom] Unknown export type: ${u}`);
|
|
17171
|
-
let
|
|
17171
|
+
let v = d(u, h), C = { ...e, export: { type: u, options: v, url: i } };
|
|
17172
17172
|
await ho("beforeExport", C);
|
|
17173
|
-
let z = await L(C,
|
|
17173
|
+
let z = await L(C, v);
|
|
17174
17174
|
return await ho("afterExport", C, z), m || (m = !0, await ho("afterSnap", e)), z;
|
|
17175
17175
|
};
|
|
17176
17176
|
return p = p.then(f);
|
|
@@ -17345,8 +17345,8 @@ class w1 {
|
|
|
17345
17345
|
);
|
|
17346
17346
|
const s = o, d = Math.max(this.captureRect.width / 48, this.captureRect.height / 48), m = 8, p = 12;
|
|
17347
17347
|
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,
|
|
17348
|
+
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;
|
|
17349
|
+
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
17350
|
const P = Math.max(this.captureRect.height / 8, 40), _ = this.logoImage.naturalWidth / this.logoImage.naturalHeight;
|
|
17351
17351
|
let D = P, T = D * _;
|
|
17352
17352
|
const B = this.captureRect.width / 4;
|
|
@@ -17481,7 +17481,7 @@ class w1 {
|
|
|
17481
17481
|
return this._frameDelay;
|
|
17482
17482
|
}
|
|
17483
17483
|
}
|
|
17484
|
-
const
|
|
17484
|
+
const x1 = {
|
|
17485
17485
|
name: "IdmCapture",
|
|
17486
17486
|
props: {
|
|
17487
17487
|
isPlaying: {
|
|
@@ -17654,7 +17654,7 @@ const v1 = {
|
|
|
17654
17654
|
this.recorder.downloadMp4(this.mp4Blob, e);
|
|
17655
17655
|
}
|
|
17656
17656
|
}
|
|
17657
|
-
},
|
|
17657
|
+
}, v1 = {
|
|
17658
17658
|
key: 0,
|
|
17659
17659
|
class: "drag-tips text-h4"
|
|
17660
17660
|
}, 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 +17677,7 @@ function P1(t, e, o, i, a, l) {
|
|
|
17677
17677
|
onMousemove: e[3] || (e[3] = (...c) => l.handleMouseMove && l.handleMouseMove(...c)),
|
|
17678
17678
|
onMouseup: e[4] || (e[4] = (...c) => l.handleMouseUp && l.handleMouseUp(...c))
|
|
17679
17679
|
}, [
|
|
17680
|
-
a.actionStatus === 1 ? (A(), R("div",
|
|
17680
|
+
a.actionStatus === 1 ? (A(), R("div", v1, y(t.$t("tips.crossHairText")), 1)) : I("", !0),
|
|
17681
17681
|
a.actionStatus >= 2 ? (A(), R("div", {
|
|
17682
17682
|
key: 1,
|
|
17683
17683
|
class: "selection-box",
|
|
@@ -17736,7 +17736,7 @@ function P1(t, e, o, i, a, l) {
|
|
|
17736
17736
|
], 6)) : I("", !0)
|
|
17737
17737
|
], 32);
|
|
17738
17738
|
}
|
|
17739
|
-
const er = /* @__PURE__ */ ne(
|
|
17739
|
+
const er = /* @__PURE__ */ ne(x1, [["render", P1], ["__scopeId", "data-v-0eb7ef02"]]);
|
|
17740
17740
|
const S1 = {
|
|
17741
17741
|
name: "IdmBottomBar",
|
|
17742
17742
|
components: { DateTimePicker: Xo, IdmCapture: er },
|
|
@@ -17917,12 +17917,12 @@ function N1(t, e, o, i, a, l) {
|
|
|
17917
17917
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
17918
17918
|
"min-width": "30"
|
|
17919
17919
|
}, {
|
|
17920
|
-
default:
|
|
17920
|
+
default: x(() => [
|
|
17921
17921
|
N(y(a.intervalHour) + " h ", 1),
|
|
17922
17922
|
w(p, { activator: "parent" }, {
|
|
17923
|
-
default:
|
|
17923
|
+
default: x(() => [
|
|
17924
17924
|
w(m, { class: "pa-1" }, {
|
|
17925
|
-
default:
|
|
17925
|
+
default: x(() => [
|
|
17926
17926
|
(A(!0), R(Ce, null, Me(a.intervalOptions, (h, f) => (A(), F(d, {
|
|
17927
17927
|
key: f,
|
|
17928
17928
|
value: h,
|
|
@@ -17935,11 +17935,11 @@ function N1(t, e, o, i, a, l) {
|
|
|
17935
17935
|
"min-width": "30",
|
|
17936
17936
|
class: "pa-0 text-center text-body-1"
|
|
17937
17937
|
}, {
|
|
17938
|
-
default:
|
|
17938
|
+
default: x(() => [
|
|
17939
17939
|
w(s, {
|
|
17940
17940
|
onClick: (L) => a.intervalHour = h
|
|
17941
17941
|
}, {
|
|
17942
|
-
default:
|
|
17942
|
+
default: x(() => [
|
|
17943
17943
|
N(y(h) + "h", 1)
|
|
17944
17944
|
]),
|
|
17945
17945
|
_: 2
|
|
@@ -17969,7 +17969,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17969
17969
|
interactive: !0,
|
|
17970
17970
|
"open-on-click": !1
|
|
17971
17971
|
}, {
|
|
17972
|
-
activator:
|
|
17972
|
+
activator: x(({ props: h }) => [
|
|
17973
17973
|
a.gifEnabled ? (A(), F(g, V({
|
|
17974
17974
|
key: 1,
|
|
17975
17975
|
disabled: a.frameCount < 1
|
|
@@ -17980,7 +17980,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17980
17980
|
variant: "text",
|
|
17981
17981
|
onClick: e[7] || (e[7] = (f) => a.gifEnabled = !a.gifEnabled)
|
|
17982
17982
|
}), {
|
|
17983
|
-
default:
|
|
17983
|
+
default: x(() => e[15] || (e[15] = [
|
|
17984
17984
|
n("i", { class: "iconfont icon-stop-record text-danger" }, null, -1)
|
|
17985
17985
|
])),
|
|
17986
17986
|
_: 2,
|
|
@@ -17992,7 +17992,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
17992
17992
|
variant: "text",
|
|
17993
17993
|
onClick: e[6] || (e[6] = (f) => a.gifEnabled = !a.gifEnabled)
|
|
17994
17994
|
}), {
|
|
17995
|
-
default:
|
|
17995
|
+
default: x(() => e[14] || (e[14] = [
|
|
17996
17996
|
n("i", { class: "iconfont icon-record" }, null, -1)
|
|
17997
17997
|
])),
|
|
17998
17998
|
_: 2,
|
|
@@ -18007,7 +18007,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18007
18007
|
interactive: !0,
|
|
18008
18008
|
"open-on-click": !1
|
|
18009
18009
|
}, {
|
|
18010
|
-
activator:
|
|
18010
|
+
activator: x(({ props: h }) => [
|
|
18011
18011
|
w(g, V(h, {
|
|
18012
18012
|
icon: "",
|
|
18013
18013
|
size: "small",
|
|
@@ -18015,7 +18015,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18015
18015
|
variant: "text",
|
|
18016
18016
|
onClick: l.handleReset
|
|
18017
18017
|
}), {
|
|
18018
|
-
default:
|
|
18018
|
+
default: x(() => e[16] || (e[16] = [
|
|
18019
18019
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18020
18020
|
])),
|
|
18021
18021
|
_: 2,
|
|
@@ -18030,7 +18030,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18030
18030
|
interactive: !0,
|
|
18031
18031
|
"open-on-click": !1
|
|
18032
18032
|
}, {
|
|
18033
|
-
activator:
|
|
18033
|
+
activator: x(({ props: h }) => [
|
|
18034
18034
|
w(g, V(h, {
|
|
18035
18035
|
icon: "",
|
|
18036
18036
|
size: "small",
|
|
@@ -18038,7 +18038,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18038
18038
|
variant: "text",
|
|
18039
18039
|
onClick: l.handleBackward
|
|
18040
18040
|
}), {
|
|
18041
|
-
default:
|
|
18041
|
+
default: x(() => e[17] || (e[17] = [
|
|
18042
18042
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18043
18043
|
])),
|
|
18044
18044
|
_: 2,
|
|
@@ -18053,7 +18053,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18053
18053
|
interactive: !0,
|
|
18054
18054
|
"open-on-click": !1
|
|
18055
18055
|
}, {
|
|
18056
|
-
activator:
|
|
18056
|
+
activator: x(({ props: h }) => [
|
|
18057
18057
|
a.paused ? (A(), F(g, V({ key: 0 }, h, {
|
|
18058
18058
|
icon: "",
|
|
18059
18059
|
size: "small",
|
|
@@ -18061,7 +18061,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18061
18061
|
variant: "text",
|
|
18062
18062
|
onClick: l.handlePlay
|
|
18063
18063
|
}), {
|
|
18064
|
-
default:
|
|
18064
|
+
default: x(() => e[18] || (e[18] = [
|
|
18065
18065
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18066
18066
|
])),
|
|
18067
18067
|
_: 2,
|
|
@@ -18076,7 +18076,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18076
18076
|
interactive: !0,
|
|
18077
18077
|
"open-on-click": !1
|
|
18078
18078
|
}, {
|
|
18079
|
-
activator:
|
|
18079
|
+
activator: x(({ props: h }) => [
|
|
18080
18080
|
a.paused ? I("", !0) : (A(), F(g, V({ key: 0 }, h, {
|
|
18081
18081
|
icon: "",
|
|
18082
18082
|
size: "small",
|
|
@@ -18084,7 +18084,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18084
18084
|
variant: "text",
|
|
18085
18085
|
onClick: l.handlePause
|
|
18086
18086
|
}), {
|
|
18087
|
-
default:
|
|
18087
|
+
default: x(() => e[19] || (e[19] = [
|
|
18088
18088
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18089
18089
|
])),
|
|
18090
18090
|
_: 2,
|
|
@@ -18099,7 +18099,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18099
18099
|
interactive: !0,
|
|
18100
18100
|
"open-on-click": !1
|
|
18101
18101
|
}, {
|
|
18102
|
-
activator:
|
|
18102
|
+
activator: x(({ props: h }) => [
|
|
18103
18103
|
w(g, V(h, {
|
|
18104
18104
|
icon: "",
|
|
18105
18105
|
size: "small",
|
|
@@ -18107,7 +18107,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18107
18107
|
variant: "text",
|
|
18108
18108
|
onClick: l.handleForward
|
|
18109
18109
|
}), {
|
|
18110
|
-
default:
|
|
18110
|
+
default: x(() => e[20] || (e[20] = [
|
|
18111
18111
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18112
18112
|
])),
|
|
18113
18113
|
_: 2,
|
|
@@ -18127,7 +18127,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18127
18127
|
text: t.$t("weather.windBarbs"),
|
|
18128
18128
|
location: "top"
|
|
18129
18129
|
}, {
|
|
18130
|
-
activator:
|
|
18130
|
+
activator: x(({ props: h }) => {
|
|
18131
18131
|
var f, L;
|
|
18132
18132
|
return [
|
|
18133
18133
|
w(g, V(h, {
|
|
@@ -18137,9 +18137,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18137
18137
|
height: "24",
|
|
18138
18138
|
width: "24",
|
|
18139
18139
|
"min-width": "24",
|
|
18140
|
-
onClick: e[8] || (e[8] = (
|
|
18140
|
+
onClick: e[8] || (e[8] = (v) => l.handleClickFastWeather("wind"))
|
|
18141
18141
|
}), {
|
|
18142
|
-
default:
|
|
18142
|
+
default: x(() => e[21] || (e[21] = [
|
|
18143
18143
|
n("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
18144
18144
|
])),
|
|
18145
18145
|
_: 2,
|
|
@@ -18153,7 +18153,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18153
18153
|
text: t.$t("weather.sigWaveHeight"),
|
|
18154
18154
|
location: "top"
|
|
18155
18155
|
}, {
|
|
18156
|
-
activator:
|
|
18156
|
+
activator: x(({ props: h }) => {
|
|
18157
18157
|
var f, L;
|
|
18158
18158
|
return [
|
|
18159
18159
|
w(g, V(h, {
|
|
@@ -18163,9 +18163,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18163
18163
|
height: "24",
|
|
18164
18164
|
width: "24",
|
|
18165
18165
|
"min-width": "24",
|
|
18166
|
-
onClick: e[9] || (e[9] = (
|
|
18166
|
+
onClick: e[9] || (e[9] = (v) => l.handleClickFastWeather("sig-wave-height"))
|
|
18167
18167
|
}), {
|
|
18168
|
-
default:
|
|
18168
|
+
default: x(() => [
|
|
18169
18169
|
n("i", V(h, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
18170
18170
|
]),
|
|
18171
18171
|
_: 2
|
|
@@ -18178,7 +18178,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18178
18178
|
text: t.$t("weather.currentDirection"),
|
|
18179
18179
|
location: "top"
|
|
18180
18180
|
}, {
|
|
18181
|
-
activator:
|
|
18181
|
+
activator: x(({ props: h }) => {
|
|
18182
18182
|
var f, L;
|
|
18183
18183
|
return [
|
|
18184
18184
|
w(g, V(h, {
|
|
@@ -18188,9 +18188,9 @@ function N1(t, e, o, i, a, l) {
|
|
|
18188
18188
|
height: "24",
|
|
18189
18189
|
width: "24",
|
|
18190
18190
|
"min-width": "24",
|
|
18191
|
-
onClick: e[10] || (e[10] = (
|
|
18191
|
+
onClick: e[10] || (e[10] = (v) => l.handleClickFastWeather("current-direction"))
|
|
18192
18192
|
}), {
|
|
18193
|
-
default:
|
|
18193
|
+
default: x(() => [
|
|
18194
18194
|
n("i", V(h, { class: "iconfont icon-Current" }), null, 16)
|
|
18195
18195
|
]),
|
|
18196
18196
|
_: 2
|
|
@@ -18203,7 +18203,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18203
18203
|
text: t.$t("weather.weatherLayers"),
|
|
18204
18204
|
location: "top"
|
|
18205
18205
|
}, {
|
|
18206
|
-
activator:
|
|
18206
|
+
activator: x(({ props: h }) => [
|
|
18207
18207
|
w(g, V(h, {
|
|
18208
18208
|
class: "pa-1 d-flex",
|
|
18209
18209
|
variant: "text",
|
|
@@ -18212,7 +18212,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18212
18212
|
"min-width": "24",
|
|
18213
18213
|
onClick: l.handleClickFastMore
|
|
18214
18214
|
}), {
|
|
18215
|
-
default:
|
|
18215
|
+
default: x(() => [
|
|
18216
18216
|
n("i", V(h, { class: "iconfont icon-dots-align" }), null, 16)
|
|
18217
18217
|
]),
|
|
18218
18218
|
_: 2
|
|
@@ -18234,7 +18234,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18234
18234
|
color: a.source === "GFS" ? "primary" : "",
|
|
18235
18235
|
onClick: e[11] || (e[11] = (h) => a.source = "GFS")
|
|
18236
18236
|
}, {
|
|
18237
|
-
default:
|
|
18237
|
+
default: x(() => e[22] || (e[22] = [
|
|
18238
18238
|
N(" NOAA ", -1)
|
|
18239
18239
|
])),
|
|
18240
18240
|
_: 1,
|
|
@@ -18247,7 +18247,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18247
18247
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
18248
18248
|
onClick: e[12] || (e[12] = (h) => a.source = "ECMWF")
|
|
18249
18249
|
}, {
|
|
18250
|
-
default:
|
|
18250
|
+
default: x(() => e[23] || (e[23] = [
|
|
18251
18251
|
N(" ECMWF ", -1)
|
|
18252
18252
|
])),
|
|
18253
18253
|
_: 1,
|
|
@@ -18275,7 +18275,7 @@ function N1(t, e, o, i, a, l) {
|
|
|
18275
18275
|
color: "primary",
|
|
18276
18276
|
onClick: e[13] || (e[13] = (h) => a.showTimezone = !a.showTimezone)
|
|
18277
18277
|
}, {
|
|
18278
|
-
default:
|
|
18278
|
+
default: x(() => [
|
|
18279
18279
|
N(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
18280
18280
|
]),
|
|
18281
18281
|
_: 1
|
|
@@ -18411,7 +18411,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18411
18411
|
height: "30",
|
|
18412
18412
|
onClick: l.handleReset
|
|
18413
18413
|
}, {
|
|
18414
|
-
default:
|
|
18414
|
+
default: x(() => e[4] || (e[4] = [
|
|
18415
18415
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18416
18416
|
])),
|
|
18417
18417
|
_: 1,
|
|
@@ -18426,7 +18426,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18426
18426
|
height: "30",
|
|
18427
18427
|
onClick: l.handleBackward
|
|
18428
18428
|
}, {
|
|
18429
|
-
default:
|
|
18429
|
+
default: x(() => e[5] || (e[5] = [
|
|
18430
18430
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18431
18431
|
])),
|
|
18432
18432
|
_: 1,
|
|
@@ -18454,7 +18454,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18454
18454
|
height: "30",
|
|
18455
18455
|
onClick: l.handleForward
|
|
18456
18456
|
}, {
|
|
18457
|
-
default:
|
|
18457
|
+
default: x(() => e[6] || (e[6] = [
|
|
18458
18458
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18459
18459
|
])),
|
|
18460
18460
|
_: 1,
|
|
@@ -18470,7 +18470,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18470
18470
|
height: "30",
|
|
18471
18471
|
onClick: l.handlePlay
|
|
18472
18472
|
}, {
|
|
18473
|
-
default:
|
|
18473
|
+
default: x(() => e[7] || (e[7] = [
|
|
18474
18474
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18475
18475
|
])),
|
|
18476
18476
|
_: 1,
|
|
@@ -18485,7 +18485,7 @@ function X1(t, e, o, i, a, l) {
|
|
|
18485
18485
|
height: "30",
|
|
18486
18486
|
onClick: l.handlePause
|
|
18487
18487
|
}, {
|
|
18488
|
-
default:
|
|
18488
|
+
default: x(() => e[8] || (e[8] = [
|
|
18489
18489
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18490
18490
|
])),
|
|
18491
18491
|
_: 1,
|
|
@@ -18778,7 +18778,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18778
18778
|
interactive: !0,
|
|
18779
18779
|
"open-on-click": !1
|
|
18780
18780
|
}, {
|
|
18781
|
-
activator:
|
|
18781
|
+
activator: x(({ props: u }) => [
|
|
18782
18782
|
a.gifEnabled ? (A(), F(c, V({
|
|
18783
18783
|
key: 1,
|
|
18784
18784
|
disabled: a.frameCount < 1
|
|
@@ -18789,7 +18789,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18789
18789
|
variant: "text",
|
|
18790
18790
|
onClick: e[3] || (e[3] = (h) => a.gifEnabled = !a.gifEnabled)
|
|
18791
18791
|
}), {
|
|
18792
|
-
default:
|
|
18792
|
+
default: x(() => e[15] || (e[15] = [
|
|
18793
18793
|
n("i", { class: "iconfont icon-stop-record text-danger" }, null, -1)
|
|
18794
18794
|
])),
|
|
18795
18795
|
_: 2,
|
|
@@ -18801,7 +18801,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18801
18801
|
variant: "text",
|
|
18802
18802
|
onClick: e[2] || (e[2] = (h) => a.gifEnabled = !a.gifEnabled)
|
|
18803
18803
|
}), {
|
|
18804
|
-
default:
|
|
18804
|
+
default: x(() => e[14] || (e[14] = [
|
|
18805
18805
|
n("i", { class: "iconfont icon-record" }, null, -1)
|
|
18806
18806
|
])),
|
|
18807
18807
|
_: 2,
|
|
@@ -18816,7 +18816,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18816
18816
|
interactive: !0,
|
|
18817
18817
|
"open-on-click": !1
|
|
18818
18818
|
}, {
|
|
18819
|
-
activator:
|
|
18819
|
+
activator: x(({ props: u }) => [
|
|
18820
18820
|
w(c, V(u, {
|
|
18821
18821
|
icon: "",
|
|
18822
18822
|
size: "small",
|
|
@@ -18824,7 +18824,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18824
18824
|
variant: "text",
|
|
18825
18825
|
onClick: l.handleReset
|
|
18826
18826
|
}), {
|
|
18827
|
-
default:
|
|
18827
|
+
default: x(() => e[16] || (e[16] = [
|
|
18828
18828
|
n("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
18829
18829
|
])),
|
|
18830
18830
|
_: 2,
|
|
@@ -18839,7 +18839,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18839
18839
|
interactive: !0,
|
|
18840
18840
|
"open-on-click": !1
|
|
18841
18841
|
}, {
|
|
18842
|
-
activator:
|
|
18842
|
+
activator: x(({ props: u }) => [
|
|
18843
18843
|
w(c, V(u, {
|
|
18844
18844
|
icon: "",
|
|
18845
18845
|
size: "small",
|
|
@@ -18847,7 +18847,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18847
18847
|
variant: "text",
|
|
18848
18848
|
onClick: l.handleBackward
|
|
18849
18849
|
}), {
|
|
18850
|
-
default:
|
|
18850
|
+
default: x(() => e[17] || (e[17] = [
|
|
18851
18851
|
n("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
18852
18852
|
])),
|
|
18853
18853
|
_: 2,
|
|
@@ -18862,7 +18862,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18862
18862
|
interactive: !0,
|
|
18863
18863
|
"open-on-click": !1
|
|
18864
18864
|
}, {
|
|
18865
|
-
activator:
|
|
18865
|
+
activator: x(({ props: u }) => [
|
|
18866
18866
|
a.paused ? (A(), F(c, V({ key: 0 }, u, {
|
|
18867
18867
|
icon: "",
|
|
18868
18868
|
size: "small",
|
|
@@ -18870,7 +18870,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18870
18870
|
variant: "text",
|
|
18871
18871
|
onClick: l.handlePlay
|
|
18872
18872
|
}), {
|
|
18873
|
-
default:
|
|
18873
|
+
default: x(() => e[18] || (e[18] = [
|
|
18874
18874
|
n("i", { class: "iconfont icon-Play" }, null, -1)
|
|
18875
18875
|
])),
|
|
18876
18876
|
_: 2,
|
|
@@ -18885,7 +18885,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18885
18885
|
interactive: !0,
|
|
18886
18886
|
"open-on-click": !1
|
|
18887
18887
|
}, {
|
|
18888
|
-
activator:
|
|
18888
|
+
activator: x(({ props: u }) => [
|
|
18889
18889
|
a.paused ? I("", !0) : (A(), F(c, V({ key: 0 }, u, {
|
|
18890
18890
|
icon: "",
|
|
18891
18891
|
size: "small",
|
|
@@ -18893,7 +18893,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18893
18893
|
variant: "text",
|
|
18894
18894
|
onClick: l.handlePause
|
|
18895
18895
|
}), {
|
|
18896
|
-
default:
|
|
18896
|
+
default: x(() => e[19] || (e[19] = [
|
|
18897
18897
|
n("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
18898
18898
|
])),
|
|
18899
18899
|
_: 2,
|
|
@@ -18908,7 +18908,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18908
18908
|
interactive: !0,
|
|
18909
18909
|
"open-on-click": !1
|
|
18910
18910
|
}, {
|
|
18911
|
-
activator:
|
|
18911
|
+
activator: x(({ props: u }) => [
|
|
18912
18912
|
w(c, V(u, {
|
|
18913
18913
|
icon: "",
|
|
18914
18914
|
size: "small",
|
|
@@ -18916,7 +18916,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
18916
18916
|
variant: "text",
|
|
18917
18917
|
onClick: l.handleForward
|
|
18918
18918
|
}), {
|
|
18919
|
-
default:
|
|
18919
|
+
default: x(() => e[20] || (e[20] = [
|
|
18920
18920
|
n("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
18921
18921
|
])),
|
|
18922
18922
|
_: 2,
|
|
@@ -18937,12 +18937,12 @@ function cy(t, e, o, i, a, l) {
|
|
|
18937
18937
|
class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
|
|
18938
18938
|
"min-width": "30"
|
|
18939
18939
|
}, {
|
|
18940
|
-
default:
|
|
18940
|
+
default: x(() => [
|
|
18941
18941
|
N(y(a.intervalHour) + " h ", 1),
|
|
18942
18942
|
w(b, { activator: "parent" }, {
|
|
18943
|
-
default:
|
|
18943
|
+
default: x(() => [
|
|
18944
18944
|
w(g, { class: "pa-1" }, {
|
|
18945
|
-
default:
|
|
18945
|
+
default: x(() => [
|
|
18946
18946
|
(A(!0), R(Ce, null, Me(a.intervalOptions, (u, h) => (A(), F(p, {
|
|
18947
18947
|
key: h,
|
|
18948
18948
|
value: u,
|
|
@@ -18955,11 +18955,11 @@ function cy(t, e, o, i, a, l) {
|
|
|
18955
18955
|
"min-width": "30",
|
|
18956
18956
|
class: "pa-0 text-center text-body-1"
|
|
18957
18957
|
}, {
|
|
18958
|
-
default:
|
|
18958
|
+
default: x(() => [
|
|
18959
18959
|
w(m, {
|
|
18960
18960
|
onClick: (f) => a.intervalHour = u
|
|
18961
18961
|
}, {
|
|
18962
|
-
default:
|
|
18962
|
+
default: x(() => [
|
|
18963
18963
|
N(y(u) + "h", 1)
|
|
18964
18964
|
]),
|
|
18965
18965
|
_: 2
|
|
@@ -19004,7 +19004,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19004
19004
|
key: f.key,
|
|
19005
19005
|
class: ue(["timeline-hour", { active: f.isActive }]),
|
|
19006
19006
|
style: ge({ width: l.hourWidth + "px" }),
|
|
19007
|
-
onClick: (
|
|
19007
|
+
onClick: (v) => l.handleTimelineClick(h, L)
|
|
19008
19008
|
}, [
|
|
19009
19009
|
f.isCurrent ? (A(), R("div", ey, [
|
|
19010
19010
|
n("span", ty, y(l.playBubbleText), 1),
|
|
@@ -19026,7 +19026,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19026
19026
|
text: t.$t("weather.windBarbs"),
|
|
19027
19027
|
location: "top"
|
|
19028
19028
|
}, {
|
|
19029
|
-
activator:
|
|
19029
|
+
activator: x(({ props: u }) => {
|
|
19030
19030
|
var h, f;
|
|
19031
19031
|
return [
|
|
19032
19032
|
w(c, V(u, {
|
|
@@ -19038,7 +19038,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19038
19038
|
"min-width": "24",
|
|
19039
19039
|
onClick: e[8] || (e[8] = (L) => l.handleClickFastWeather("wind"))
|
|
19040
19040
|
}), {
|
|
19041
|
-
default:
|
|
19041
|
+
default: x(() => e[22] || (e[22] = [
|
|
19042
19042
|
n("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
19043
19043
|
])),
|
|
19044
19044
|
_: 2,
|
|
@@ -19052,7 +19052,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19052
19052
|
text: t.$t("weather.sigWaveHeight"),
|
|
19053
19053
|
location: "top"
|
|
19054
19054
|
}, {
|
|
19055
|
-
activator:
|
|
19055
|
+
activator: x(({ props: u }) => {
|
|
19056
19056
|
var h, f;
|
|
19057
19057
|
return [
|
|
19058
19058
|
w(c, V(u, {
|
|
@@ -19064,7 +19064,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19064
19064
|
"min-width": "24",
|
|
19065
19065
|
onClick: e[9] || (e[9] = (L) => l.handleClickFastWeather("sig-wave-height"))
|
|
19066
19066
|
}), {
|
|
19067
|
-
default:
|
|
19067
|
+
default: x(() => [
|
|
19068
19068
|
n("i", V(u, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
19069
19069
|
]),
|
|
19070
19070
|
_: 2
|
|
@@ -19077,7 +19077,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19077
19077
|
text: t.$t("weather.currentDirection"),
|
|
19078
19078
|
location: "top"
|
|
19079
19079
|
}, {
|
|
19080
|
-
activator:
|
|
19080
|
+
activator: x(({ props: u }) => {
|
|
19081
19081
|
var h, f;
|
|
19082
19082
|
return [
|
|
19083
19083
|
w(c, V(u, {
|
|
@@ -19089,7 +19089,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19089
19089
|
"min-width": "24",
|
|
19090
19090
|
onClick: e[10] || (e[10] = (L) => l.handleClickFastWeather("current-direction"))
|
|
19091
19091
|
}), {
|
|
19092
|
-
default:
|
|
19092
|
+
default: x(() => [
|
|
19093
19093
|
n("i", V(u, { class: "iconfont icon-Current" }), null, 16)
|
|
19094
19094
|
]),
|
|
19095
19095
|
_: 2
|
|
@@ -19102,7 +19102,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19102
19102
|
text: t.$t("weather.weatherLayers"),
|
|
19103
19103
|
location: "top"
|
|
19104
19104
|
}, {
|
|
19105
|
-
activator:
|
|
19105
|
+
activator: x(({ props: u }) => [
|
|
19106
19106
|
w(c, V(u, {
|
|
19107
19107
|
class: "pa-1 d-flex",
|
|
19108
19108
|
variant: "text",
|
|
@@ -19111,7 +19111,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19111
19111
|
"min-width": "24",
|
|
19112
19112
|
onClick: l.handleClickFastMore
|
|
19113
19113
|
}), {
|
|
19114
|
-
default:
|
|
19114
|
+
default: x(() => [
|
|
19115
19115
|
n("i", V(u, { class: "iconfont icon-dots-align" }), null, 16)
|
|
19116
19116
|
]),
|
|
19117
19117
|
_: 2
|
|
@@ -19132,7 +19132,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19132
19132
|
color: a.source === "GFS" ? "primary" : "",
|
|
19133
19133
|
onClick: e[11] || (e[11] = (u) => a.source = "GFS")
|
|
19134
19134
|
}, {
|
|
19135
|
-
default:
|
|
19135
|
+
default: x(() => e[23] || (e[23] = [
|
|
19136
19136
|
N(" NOAA ", -1)
|
|
19137
19137
|
])),
|
|
19138
19138
|
_: 1,
|
|
@@ -19145,7 +19145,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19145
19145
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
19146
19146
|
onClick: e[12] || (e[12] = (u) => a.source = "ECMWF")
|
|
19147
19147
|
}, {
|
|
19148
|
-
default:
|
|
19148
|
+
default: x(() => e[24] || (e[24] = [
|
|
19149
19149
|
N(" ECMWF ", -1)
|
|
19150
19150
|
])),
|
|
19151
19151
|
_: 1,
|
|
@@ -19173,7 +19173,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19173
19173
|
color: "primary",
|
|
19174
19174
|
onClick: e[13] || (e[13] = (u) => a.showTimezone = !a.showTimezone)
|
|
19175
19175
|
}, {
|
|
19176
|
-
default:
|
|
19176
|
+
default: x(() => [
|
|
19177
19177
|
N(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
19178
19178
|
]),
|
|
19179
19179
|
_: 1
|
|
@@ -19186,7 +19186,7 @@ function cy(t, e, o, i, a, l) {
|
|
|
19186
19186
|
const my = /* @__PURE__ */ ne(O1, [["render", cy]]), dy = {
|
|
19187
19187
|
name: "IdmGL4",
|
|
19188
19188
|
components: {
|
|
19189
|
-
IdmOtherLayer:
|
|
19189
|
+
IdmOtherLayer: vc,
|
|
19190
19190
|
IdmWeatherLayer: pd,
|
|
19191
19191
|
IdmTropicals: Gl,
|
|
19192
19192
|
IdmMeasure: _p,
|
|
@@ -19238,10 +19238,10 @@ const my = /* @__PURE__ */ ne(O1, [["render", cy]]), dy = {
|
|
|
19238
19238
|
watch: {
|
|
19239
19239
|
layerVersion: {
|
|
19240
19240
|
handler() {
|
|
19241
|
-
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
19241
|
+
var t, e, o, i, a, l, r, c, s, d, m, p, g, b, u, h, f, L, v, C, z, P, _;
|
|
19242
19242
|
if (this.map) {
|
|
19243
19243
|
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")) : ((
|
|
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")) : ((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
19245
|
var G, Q;
|
|
19246
19246
|
(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
19247
|
}, 1e3)) : (_ = this.map) != null && _.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-2");
|
|
@@ -19368,14 +19368,14 @@ function uy(t, e, o, i, a, l) {
|
|
|
19368
19368
|
}
|
|
19369
19369
|
const py = /* @__PURE__ */ ne(dy, [["render", uy]]);
|
|
19370
19370
|
class gy {
|
|
19371
|
-
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", {
|
|
19371
|
+
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", { nautical: o = "i4" }) {
|
|
19372
19372
|
ke(this, "originStyle");
|
|
19373
19373
|
ke(this, "mapboxStyle");
|
|
19374
19374
|
ke(this, "i4");
|
|
19375
19375
|
ke(this, "hi");
|
|
19376
19376
|
ke(this, "td");
|
|
19377
19377
|
ke(this, "windy");
|
|
19378
|
-
var i, a, l, r, c, s, d, m, p, g, b, u, h, f, L,
|
|
19378
|
+
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
19379
|
this.i4 = {
|
|
19380
19380
|
source: {
|
|
19381
19381
|
type: "raster",
|
|
@@ -19405,8 +19405,8 @@ class gy {
|
|
|
19405
19405
|
id: "hi",
|
|
19406
19406
|
type: "raster",
|
|
19407
19407
|
source: "hi",
|
|
19408
|
-
|
|
19409
|
-
|
|
19408
|
+
minzoom: 1,
|
|
19409
|
+
maxzoom: 18,
|
|
19410
19410
|
layout: {
|
|
19411
19411
|
visibility: "visible"
|
|
19412
19412
|
}
|
|
@@ -38012,14 +38012,14 @@ class gy {
|
|
|
38012
38012
|
(g = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : g.find((k) => k.id === "ice-area-fill"),
|
|
38013
38013
|
(u = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : u.find((k) => k.id === "ice-area-line"),
|
|
38014
38014
|
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((k) => k.id === "empty-layer-0"),
|
|
38015
|
-
(
|
|
38015
|
+
(v = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : v.find((k) => k.id === "empty-layer-1"),
|
|
38016
38016
|
(z = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : z.find((k) => k.id === "country-boundaries"),
|
|
38017
38017
|
(_ = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : _.find((k) => k.id === "water-outline"),
|
|
38018
38018
|
(T = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : T.find((k) => k.id === "water-outline2"),
|
|
38019
38019
|
(j = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : j.find((k) => k.id === "empty-layer-2"),
|
|
38020
38020
|
(Q = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : Q.find((k) => k.id === "water-line-label"),
|
|
38021
38021
|
(re = (ie = this.originStyle) == null ? void 0 : ie.light.layers) == null ? void 0 : re.find((k) => k.id === "water-point-label"),
|
|
38022
|
-
(be = (
|
|
38022
|
+
(be = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : be.find((k) => k.id === "world-12nm-v4-20231025"),
|
|
38023
38023
|
($ = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : $.find((k) => k.id === "nsr-flll"),
|
|
38024
38024
|
(se = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : se.find((k) => k.id === "nsr-line"),
|
|
38025
38025
|
(Y = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : Y.find((k) => k.id === "nsr-label"),
|
|
@@ -38060,8 +38060,8 @@ class gy {
|
|
|
38060
38060
|
protected: !1,
|
|
38061
38061
|
draft: !1,
|
|
38062
38062
|
layers: [
|
|
38063
|
-
(
|
|
38064
|
-
(At = (
|
|
38063
|
+
(xt = (wt = this.originStyle) == null ? void 0 : wt.dark.layers) == null ? void 0 : xt.find((k) => k.id === "land"),
|
|
38064
|
+
(At = (vt = this.originStyle) == null ? void 0 : vt.dark.layers) == null ? void 0 : At.find((k) => k.id === "water"),
|
|
38065
38065
|
(Lt = (kt = this.originStyle) == null ? void 0 : kt.dark.layers) == null ? void 0 : Lt.find((k) => k.id === "loadlines-label"),
|
|
38066
38066
|
(_t = (zt = this.originStyle) == null ? void 0 : zt.dark.layers) == null ? void 0 : _t.find((k) => k.id === "loadlines-fill"),
|
|
38067
38067
|
(Mt = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : Mt.find((k) => k.id === "ice-area-fill"),
|
|
@@ -38112,7 +38112,7 @@ class gy {
|
|
|
38112
38112
|
protected: !1,
|
|
38113
38113
|
draft: !1,
|
|
38114
38114
|
layers: [
|
|
38115
|
-
(
|
|
38115
|
+
(vo = (ye = this.originStyle) == null ? void 0 : ye.satellite.layers) == null ? void 0 : vo.find((k) => k.id === "background"),
|
|
38116
38116
|
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((k) => k.id === "satellite"),
|
|
38117
38117
|
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((k) => k.id === "loadlines-label"),
|
|
38118
38118
|
(Co = (_o = this.originStyle) == null ? void 0 : _o.satellite.layers) == null ? void 0 : Co.find((k) => k.id === "loadlines-fill"),
|
|
@@ -38121,7 +38121,7 @@ class gy {
|
|
|
38121
38121
|
(Do = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Do.find((k) => k.id === "empty-layer-0"),
|
|
38122
38122
|
(ya = (Io = this.originStyle) == null ? void 0 : Io.satellite.layers) == null ? void 0 : ya.find((k) => k.id === "empty-layer-1"),
|
|
38123
38123
|
(wa = (ba = this.originStyle) == null ? void 0 : ba.satellite.layers) == null ? void 0 : wa.find((k) => k.id === "country-boundaries"),
|
|
38124
|
-
(
|
|
38124
|
+
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((k) => k.id === "water-outline"),
|
|
38125
38125
|
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((k) => k.id === "empty-layer-2"),
|
|
38126
38126
|
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((k) => k.id === "world-12nm-v4-20231025"),
|
|
38127
38127
|
(Ca = (_a = this.originStyle) == null ? void 0 : _a.satellite.layers) == null ? void 0 : Ca.find((k) => k.id === "nsr-flll"),
|
|
@@ -38156,14 +38156,14 @@ class gy {
|
|
|
38156
38156
|
layers: [
|
|
38157
38157
|
(li = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : li.find((k) => k.id === "land"),
|
|
38158
38158
|
(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,
|
|
38159
|
+
o === "hi" ? this.hi.layer : this.i4.layer,
|
|
38160
38160
|
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((k) => k.id === "loadlines-label"),
|
|
38161
38161
|
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((k) => k.id === "loadlines-fill"),
|
|
38162
38162
|
(ui = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : ui.find((k) => k.id === "ice-area-fill"),
|
|
38163
38163
|
(gi = (pi = this.originStyle) == null ? void 0 : pi.light.layers) == null ? void 0 : gi.find((k) => k.id === "ice-area-line"),
|
|
38164
38164
|
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((k) => k.id === "empty-layer-0"),
|
|
38165
38165
|
(wi = (bi = this.originStyle) == null ? void 0 : bi.light.layers) == null ? void 0 : wi.find((k) => k.id === "empty-layer-1"),
|
|
38166
|
-
(
|
|
38166
|
+
(vi = (xi = this.originStyle) == null ? void 0 : xi.light.layers) == null ? void 0 : vi.find((k) => k.id === "country-boundaries"),
|
|
38167
38167
|
(ki = (Ai = this.originStyle) == null ? void 0 : Ai.light.layers) == null ? void 0 : ki.find((k) => k.id === "water-outline"),
|
|
38168
38168
|
(zi = (Li = this.originStyle) == null ? void 0 : Li.light.layers) == null ? void 0 : zi.find((k) => k.id === "water-outline2"),
|
|
38169
38169
|
(Ci = (_i = this.originStyle) == null ? void 0 : _i.light.layers) == null ? void 0 : Ci.find((k) => k.id === "empty-layer-2"),
|
|
@@ -38232,7 +38232,9 @@ const fy = {
|
|
|
38232
38232
|
beforeLayer: "",
|
|
38233
38233
|
helper: void 0,
|
|
38234
38234
|
zoom: 2,
|
|
38235
|
-
right: 10
|
|
38235
|
+
right: 10,
|
|
38236
|
+
nauticalKeys: ["hi", "i4"],
|
|
38237
|
+
nautical: localStorage.getItem("nauticalLayerCacheGL4") === "hi" ? "hi" : "i4"
|
|
38236
38238
|
};
|
|
38237
38239
|
},
|
|
38238
38240
|
computed: {
|
|
@@ -38263,12 +38265,21 @@ const fy = {
|
|
|
38263
38265
|
this.$emit("map", this.map);
|
|
38264
38266
|
},
|
|
38265
38267
|
immediate: !0
|
|
38268
|
+
},
|
|
38269
|
+
nautical: {
|
|
38270
|
+
handler(t) {
|
|
38271
|
+
localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle();
|
|
38272
|
+
}
|
|
38266
38273
|
}
|
|
38267
38274
|
},
|
|
38268
38275
|
methods: {
|
|
38269
|
-
|
|
38270
|
-
|
|
38271
|
-
|
|
38276
|
+
/**
|
|
38277
|
+
* @param view 可选的初始视角 { zoom, center: [lng, lat] },不传则使用默认视角
|
|
38278
|
+
*/
|
|
38279
|
+
async initOnlineMap(t) {
|
|
38280
|
+
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];
|
|
38281
|
+
this.helper = new gy(this.token, { nautical: this.nautical ?? "i4" }), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
38282
|
+
const i = new ve.Map({
|
|
38272
38283
|
container: "map",
|
|
38273
38284
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
38274
38285
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -38278,8 +38289,8 @@ const fy = {
|
|
|
38278
38289
|
style: this.helper.mapboxStyle[this.mapFeather],
|
|
38279
38290
|
minZoom: 2,
|
|
38280
38291
|
maxZoom: 22,
|
|
38281
|
-
zoom:
|
|
38282
|
-
center:
|
|
38292
|
+
zoom: e,
|
|
38293
|
+
center: o,
|
|
38283
38294
|
dragRotate: !1,
|
|
38284
38295
|
pitchWithRotate: !1,
|
|
38285
38296
|
touchZoomRotate: { enabled: !0, rotate: !1 },
|
|
@@ -38288,16 +38299,16 @@ const fy = {
|
|
|
38288
38299
|
preserveDrawingBuffer: !0,
|
|
38289
38300
|
fadeDuration: 300
|
|
38290
38301
|
});
|
|
38291
|
-
|
|
38292
|
-
this.zoom =
|
|
38293
|
-
}),
|
|
38294
|
-
var
|
|
38295
|
-
this.zoom = (
|
|
38302
|
+
i.dragRotate.disable(), i.touchZoomRotate.disableRotation(), i.on("load", () => {
|
|
38303
|
+
this.zoom = i.getZoom(), this.map = i, this.$emit("menuToggle"), this.addScaleControl();
|
|
38304
|
+
}), i.on("move", () => {
|
|
38305
|
+
var a;
|
|
38306
|
+
this.zoom = (a = this.map) == null ? void 0 : a.getZoom();
|
|
38296
38307
|
});
|
|
38297
38308
|
},
|
|
38298
38309
|
addScaleControl() {
|
|
38299
38310
|
var e;
|
|
38300
|
-
this.map.addControl(new
|
|
38311
|
+
this.map.addControl(new ve.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
38301
38312
|
const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
38302
38313
|
t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
38303
38314
|
},
|
|
@@ -38308,20 +38319,29 @@ const fy = {
|
|
|
38308
38319
|
handleZoomOut() {
|
|
38309
38320
|
var t;
|
|
38310
38321
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
38322
|
+
},
|
|
38323
|
+
/**
|
|
38324
|
+
* 海图底图 hi / i4 切换:销毁旧地图后按当前 center / zoom 重新加载
|
|
38325
|
+
*/
|
|
38326
|
+
handleNauticalToggle() {
|
|
38327
|
+
const t = this.map, e = t ? { zoom: t.getZoom(), center: t.getCenter().toArray() } : void 0;
|
|
38328
|
+
this.map = void 0, this.$nextTick(() => {
|
|
38329
|
+
t == null || t.remove(), this.initOnlineMap(e);
|
|
38330
|
+
});
|
|
38311
38331
|
}
|
|
38312
38332
|
}
|
|
38313
|
-
}, yy = { class: "v-btn--variant-elevated rounded" }, by = { class: "v-btn--variant-elevated rounded" }, wy = { class: "zoom" },
|
|
38314
|
-
key:
|
|
38333
|
+
}, yy = { class: "v-btn--variant-elevated rounded" }, by = { class: "v-btn--variant-elevated rounded" }, wy = { class: "zoom" }, xy = {
|
|
38334
|
+
key: 3,
|
|
38315
38335
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
38316
38336
|
};
|
|
38317
|
-
function
|
|
38318
|
-
const r = M("VBtn");
|
|
38337
|
+
function vy(t, e, o, i, a, l) {
|
|
38338
|
+
const r = M("VBtn"), c = M("VBtnToggle");
|
|
38319
38339
|
return A(), R("div", {
|
|
38320
38340
|
id: "mapbox-initial-gl4",
|
|
38321
38341
|
class: "mapbox-initial-gl4 gif-container",
|
|
38322
38342
|
style: ge({ height: o.height, width: o.width })
|
|
38323
38343
|
}, [
|
|
38324
|
-
e[
|
|
38344
|
+
e[7] || (e[7] = n("div", { id: "map" }, null, -1)),
|
|
38325
38345
|
o.simple ? (A(), R("div", {
|
|
38326
38346
|
key: 0,
|
|
38327
38347
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
@@ -38335,11 +38355,11 @@ function xy(t, e, o, i, a, l) {
|
|
|
38335
38355
|
class: "pa-0 elevation-0",
|
|
38336
38356
|
onClick: l.initOnlineMap
|
|
38337
38357
|
}, {
|
|
38338
|
-
default:
|
|
38358
|
+
default: x(() => e[1] || (e[1] = [
|
|
38339
38359
|
n("i", { class: "iconfont icon-shuaxin text-h4" }, null, -1)
|
|
38340
38360
|
])),
|
|
38341
38361
|
_: 1,
|
|
38342
|
-
__: [
|
|
38362
|
+
__: [1]
|
|
38343
38363
|
}, 8, ["onClick"])
|
|
38344
38364
|
])
|
|
38345
38365
|
], 4)) : I("", !0),
|
|
@@ -38356,11 +38376,11 @@ function xy(t, e, o, i, a, l) {
|
|
|
38356
38376
|
class: "pa-0 elevation-0",
|
|
38357
38377
|
onClick: l.handleZoomIn
|
|
38358
38378
|
}, {
|
|
38359
|
-
default:
|
|
38379
|
+
default: x(() => e[2] || (e[2] = [
|
|
38360
38380
|
n("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
|
|
38361
38381
|
])),
|
|
38362
38382
|
_: 1,
|
|
38363
|
-
__: [
|
|
38383
|
+
__: [2]
|
|
38364
38384
|
}, 8, ["onClick"]),
|
|
38365
38385
|
n("div", wy, y(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
38366
38386
|
w(r, {
|
|
@@ -38370,19 +38390,52 @@ function xy(t, e, o, i, a, l) {
|
|
|
38370
38390
|
class: "elevation-0 pa-0",
|
|
38371
38391
|
onClick: l.handleZoomOut
|
|
38372
38392
|
}, {
|
|
38373
|
-
default:
|
|
38393
|
+
default: x(() => e[3] || (e[3] = [
|
|
38374
38394
|
n("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
|
|
38375
38395
|
])),
|
|
38376
38396
|
_: 1,
|
|
38377
|
-
__: [
|
|
38397
|
+
__: [3]
|
|
38378
38398
|
}, 8, ["onClick"])
|
|
38379
38399
|
])
|
|
38380
38400
|
], 4)),
|
|
38381
|
-
o.simple
|
|
38382
|
-
|
|
38401
|
+
!o.simple && o.mapFeather === "nautical" && o.platform === "ops" ? (A(), R("div", {
|
|
38402
|
+
key: 2,
|
|
38403
|
+
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
38404
|
+
style: ge({ top: o.top + 430 + "px", right: a.right + "px", height: "80px" })
|
|
38405
|
+
}, [
|
|
38406
|
+
w(c, {
|
|
38407
|
+
modelValue: a.nautical,
|
|
38408
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => a.nautical = s),
|
|
38409
|
+
class: "v-btn--variant-elevated rounded elevation-0",
|
|
38410
|
+
direction: "vertical",
|
|
38411
|
+
density: "compact",
|
|
38412
|
+
mandatory: "",
|
|
38413
|
+
group: ""
|
|
38414
|
+
}, {
|
|
38415
|
+
default: x(() => [
|
|
38416
|
+
(A(!0), R(Ce, null, Me(a.nauticalKeys, (s) => (A(), F(r, {
|
|
38417
|
+
key: s,
|
|
38418
|
+
value: s,
|
|
38419
|
+
"min-width": "32",
|
|
38420
|
+
width: "32",
|
|
38421
|
+
height: "32",
|
|
38422
|
+
class: "text-none pa-0 elevation-0 text-h6",
|
|
38423
|
+
color: a.nautical === s ? "primary" : ""
|
|
38424
|
+
}, {
|
|
38425
|
+
default: x(() => [
|
|
38426
|
+
N(y(s), 1)
|
|
38427
|
+
]),
|
|
38428
|
+
_: 2
|
|
38429
|
+
}, 1032, ["value", "color"]))), 128))
|
|
38430
|
+
]),
|
|
38431
|
+
_: 1
|
|
38432
|
+
}, 8, ["modelValue"])
|
|
38433
|
+
], 4)) : I("", !0),
|
|
38434
|
+
o.simple ? I("", !0) : (A(), R("div", xy, [
|
|
38435
|
+
e[4] || (e[4] = n("span", null, "© 2023", -1)),
|
|
38383
38436
|
n("span", null, "-" + y(l.computeYear), 1),
|
|
38384
|
-
e[
|
|
38385
|
-
e[
|
|
38437
|
+
e[5] || (e[5] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
38438
|
+
e[6] || (e[6] = n("a", {
|
|
38386
38439
|
class: "text-decoration-underline cursor-pointer text-label",
|
|
38387
38440
|
href: "https://beian.miit.gov.cn/",
|
|
38388
38441
|
target: "_blank"
|
|
@@ -38390,7 +38443,7 @@ function xy(t, e, o, i, a, l) {
|
|
|
38390
38443
|
]))
|
|
38391
38444
|
], 4);
|
|
38392
38445
|
}
|
|
38393
|
-
const Ay = /* @__PURE__ */ ne(fy, [["render",
|
|
38446
|
+
const Ay = /* @__PURE__ */ ne(fy, [["render", vy]]);
|
|
38394
38447
|
const ky = {
|
|
38395
38448
|
name: "DateRangePicker",
|
|
38396
38449
|
props: {
|
|
@@ -38662,9 +38715,9 @@ function Py(t, e, o, i, a, l) {
|
|
|
38662
38715
|
class: "card-box d-flex flex-column border elevation-12",
|
|
38663
38716
|
style: ge(l.getStyle)
|
|
38664
38717
|
}, {
|
|
38665
|
-
default:
|
|
38718
|
+
default: x(() => [
|
|
38666
38719
|
w(d, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
38667
|
-
default:
|
|
38720
|
+
default: x(() => [
|
|
38668
38721
|
n("div", _y, [
|
|
38669
38722
|
w(c, {
|
|
38670
38723
|
modelValue: a.dateRange[0],
|
|
@@ -38709,7 +38762,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38709
38762
|
class: "w-100 d-flex justify-space-between align-center pa-0 px-4",
|
|
38710
38763
|
style: { height: "50px" }
|
|
38711
38764
|
}, {
|
|
38712
|
-
default:
|
|
38765
|
+
default: x(() => {
|
|
38713
38766
|
var b, u;
|
|
38714
38767
|
return [
|
|
38715
38768
|
(b = o.fastPick) != null && b.show ? (A(), R("div", Cy, [
|
|
@@ -38721,7 +38774,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38721
38774
|
class: "text-none text-body-2 px-1",
|
|
38722
38775
|
onClick: (f) => l.handleFastPick({ dateRange: h })
|
|
38723
38776
|
}, {
|
|
38724
|
-
default:
|
|
38777
|
+
default: x(() => [
|
|
38725
38778
|
N(y(t.$t("time." + h)), 1)
|
|
38726
38779
|
]),
|
|
38727
38780
|
_: 2
|
|
@@ -38734,7 +38787,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38734
38787
|
class: "text-none text-body-1 px-4",
|
|
38735
38788
|
onClick: l.handleCancelDate
|
|
38736
38789
|
}, {
|
|
38737
|
-
default:
|
|
38790
|
+
default: x(() => [
|
|
38738
38791
|
N(y(t.$t("actions.cancel")), 1)
|
|
38739
38792
|
]),
|
|
38740
38793
|
_: 1
|
|
@@ -38746,7 +38799,7 @@ function Py(t, e, o, i, a, l) {
|
|
|
38746
38799
|
class: "text-none text-body-1 px-4",
|
|
38747
38800
|
onClick: l.handleConfirmDate
|
|
38748
38801
|
}, {
|
|
38749
|
-
default:
|
|
38802
|
+
default: x(() => [
|
|
38750
38803
|
N(y(t.$t("actions.confirm")), 1)
|
|
38751
38804
|
]),
|
|
38752
38805
|
_: 1
|