@idmwx/idmui-gl4 3.2.8 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3VYIPD3A-08e781e4.js → chunk-3VYIPD3A-6ed5af38.js} +1 -1
- package/dist/{chunk-ANSXOGKI-59bc6498.js → chunk-ANSXOGKI-437ead51.js} +1 -1
- package/dist/{chunk-T4JIPPZO-47bdda92.js → chunk-T4JIPPZO-3411b1c7.js} +1 -1
- package/dist/{download-01cb1f74.js → download-8fc67980.js} +3 -3
- package/dist/{index-82a05290.js → index-7c17ce6e.js} +592 -585
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/other/index.vue.d.ts +0 -1
- package/dist/mapbox/src/index.vue.d.ts +4 -0
- package/dist/{rasterize-JS5G2XHH-71625629.js → rasterize-JS5G2XHH-c40e3aed.js} +3 -3
- package/dist/{toBlob-f4b168df.js → toBlob-33cd4b12.js} +3 -3
- package/dist/{toCanvas-c9bfd24a.js → toCanvas-0d592d94.js} +2 -2
- package/dist/{toImg-5d953bd3.js → toImg-128585a5.js} +3 -3
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ var sr = (t, e, o) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var we = (t, e, o) => (sr(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Ie from "axios";
|
|
5
5
|
import { useTheme as Ge } from "vuetify";
|
|
6
|
-
import { openBlock as A, createElementBlock as I, resolveComponent as M, createBlock as j, normalizeClass as ue, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as G, toDisplayString as y, createTextVNode as
|
|
6
|
+
import { openBlock as A, createElementBlock as I, resolveComponent as M, createBlock as j, normalizeClass as ue, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as G, toDisplayString as y, createTextVNode as Z, Fragment as Se, renderList as Re, withDirectives as et, vShow as tt, mergeProps as U, normalizeStyle as de } from "vue";
|
|
7
7
|
import ye from "mapbox-gl";
|
|
8
8
|
import T from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as bi, LaneHelper as Oe, GeoJsonHelper as Xe } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Vo, TidesAssist as Ni } from "@idm-plugin/meteo";
|
|
11
11
|
import * as Qo from "echarts";
|
|
12
|
-
import * as
|
|
12
|
+
import * as W from "@turf/turf";
|
|
13
13
|
import { LayerHelper as Xo, CompanyHelper as cr } from "@idm-plugin/tag2";
|
|
14
14
|
import mr from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as dr } from "@idm-plugin/tag";
|
|
@@ -554,8 +554,8 @@ function zr(t, e, o, i, a, r) {
|
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["class"])) : G("", !0);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
const
|
|
557
|
+
const Cr = /* @__PURE__ */ ie(kr, [["render", zr]]);
|
|
558
|
+
const _r = {
|
|
559
559
|
name: "PortDetail",
|
|
560
560
|
props: {
|
|
561
561
|
simple: {
|
|
@@ -751,10 +751,10 @@ const Cr = {
|
|
|
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, u, b, g, h, f, k, v,
|
|
754
|
+
var c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze;
|
|
755
755
|
let r = {};
|
|
756
756
|
const l = ((c = Vo.pickHourly(t, T(i))) == null ? void 0 : c[0]) || {};
|
|
757
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (v = (k = l == null ? void 0 : l.weather) == null ? void 0 : k.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((L = (
|
|
757
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (v = (k = l == null ? void 0 : l.weather) == null ? void 0 : k.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((L = (C = l == null ? void 0 : l.weather) == null ? void 0 : C.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((S = (R = l == null ? void 0 : l.wave) == null ? void 0 : R.sig) == null ? void 0 : S.height, 1) ?? "-", r.sigwaveDir = (N = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : N.direction, r.sigwavePeriod = this.computeRoundPrecision((Q = (B = l == null ? void 0 : l.wave) == null ? void 0 : B.sig) == null ? void 0 : Q.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((oe = (q = l == null ? void 0 : l.wave) == null ? void 0 : q.wd) == null ? void 0 : oe.height, 1) ?? "-", r.windwaveDir = (he = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.wd) == null ? void 0 : he.direction, r.windwavePeriod = this.computeRoundPrecision((J = (E = l == null ? void 0 : l.wave) == null ? void 0 : E.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ae = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.height, 1) ?? "-", r.swellDir = (O = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : O.direction, r.swellPeriod = this.computeRoundPrecision((D = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : D.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((le = l == null ? void 0 : l.current) == null ? void 0 : le.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((Ae = l == null ? void 0 : l.current) == null ? void 0 : Ae.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (ze = l == null ? void 0 : l.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}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
758
758
|
});
|
|
759
759
|
},
|
|
760
760
|
handleTide() {
|
|
@@ -923,7 +923,7 @@ const Cr = {
|
|
|
923
923
|
}, Dr = { class: "summary-box" }, Er = { class: "d-flex justify-space-between align-center py-2" }, Gr = { class: "d-flex justify-center align-center text-h6 ga-2" }, Fr = {
|
|
924
924
|
class: "multi-color-icon",
|
|
925
925
|
"aria-hidden": "true"
|
|
926
|
-
}, jr = ["xlink:href"], Br = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Nr = { class: "w-100 d-flex justify-start align-center" },
|
|
926
|
+
}, jr = ["xlink:href"], Br = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Nr = { class: "w-100 d-flex justify-start align-center" }, Wr = { class: "w-30 text-label font-weight-400" }, Zr = { class: "flex-1-1-0" }, Vr = { class: "w-100 d-flex justify-start align-center" }, Xr = { class: "w-30 text-label font-weight-400" }, Or = { class: "flex-1-1-0" }, Yr = { class: "w-100 d-flex justify-start align-center" }, Hr = { class: "w-30 text-label font-weight-400" }, Ur = { class: "flex-1-1-0" }, Jr = { class: "table-box w-100 mt-2" }, Kr = { class: "w-100 d-flex justify-space-between align-center py-2" }, Qr = { class: "d-flex justify-center align-center text-h6 ga-2" }, qr = {
|
|
927
927
|
class: "multi-color-icon",
|
|
928
928
|
"aria-hidden": "true"
|
|
929
929
|
}, $r = ["xlink:href"], el = {
|
|
@@ -956,7 +956,7 @@ const Cr = {
|
|
|
956
956
|
}, zl = {
|
|
957
957
|
class: "px-1 text-center text-label font-weight-400",
|
|
958
958
|
width: "120"
|
|
959
|
-
},
|
|
959
|
+
}, Cl = { class: "px-1 text-center" }, _l = { class: "px-1 text-center" }, Ml = { class: "px-1 text-center" };
|
|
960
960
|
function Pl(t, e, o, i, a, r) {
|
|
961
961
|
const l = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VBtnToggle"), m = M("VCard");
|
|
962
962
|
return A(), j(m, {
|
|
@@ -967,7 +967,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
967
967
|
return [
|
|
968
968
|
w(c, { class: "w-100" }, {
|
|
969
969
|
default: x(() => {
|
|
970
|
-
var g, h, f, k, v,
|
|
970
|
+
var g, h, f, k, v, C;
|
|
971
971
|
return [
|
|
972
972
|
n("div", Mr, [
|
|
973
973
|
n("div", Pr, [
|
|
@@ -1045,7 +1045,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1045
1045
|
n("div", null, y(t.$t("port.port")), 1),
|
|
1046
1046
|
n("div", null, [
|
|
1047
1047
|
e[6] || (e[6] = n("label", null, "UN/LOCODE: ", -1)),
|
|
1048
|
-
n("span", null, y((
|
|
1048
|
+
n("span", null, y((C = o.port) == null ? void 0 : C.cntLoCode), 1)
|
|
1049
1049
|
])
|
|
1050
1050
|
])
|
|
1051
1051
|
];
|
|
@@ -1069,7 +1069,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1069
1069
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
1070
1070
|
])),
|
|
1071
1071
|
default: x(() => [
|
|
1072
|
-
|
|
1072
|
+
Z(" " + y(t.$t("actions.unfollow")), 1)
|
|
1073
1073
|
]),
|
|
1074
1074
|
_: 1
|
|
1075
1075
|
}, 8, ["onClick"])) : (A(), j(l, {
|
|
@@ -1084,7 +1084,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1084
1084
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
1085
1085
|
])),
|
|
1086
1086
|
default: x(() => [
|
|
1087
|
-
|
|
1087
|
+
Z(y(t.$t("actions.follow")) + " ", 1)
|
|
1088
1088
|
]),
|
|
1089
1089
|
_: 1
|
|
1090
1090
|
}, 8, ["onClick"])),
|
|
@@ -1096,7 +1096,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1096
1096
|
onClick: r.handleMeteoMore
|
|
1097
1097
|
}, {
|
|
1098
1098
|
default: x(() => [
|
|
1099
|
-
|
|
1099
|
+
Z(y(t.$t("actions.7dayForcast")), 1)
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
}, 8, ["onClick"])
|
|
@@ -1119,8 +1119,8 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1119
1119
|
]),
|
|
1120
1120
|
n("div", Br, [
|
|
1121
1121
|
n("div", Nr, [
|
|
1122
|
-
n("div",
|
|
1123
|
-
n("div",
|
|
1122
|
+
n("div", Wr, y(t.$t("port.region")), 1),
|
|
1123
|
+
n("div", Zr, y(((u = o.port) == null ? void 0 : u.region) ?? ((b = o.port) == null ? void 0 : b.city) ?? "-"), 1)
|
|
1124
1124
|
]),
|
|
1125
1125
|
n("div", Vr, [
|
|
1126
1126
|
n("div", Xr, y(t.$t("port.position")), 1),
|
|
@@ -1168,7 +1168,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1168
1168
|
value: g.index
|
|
1169
1169
|
}, {
|
|
1170
1170
|
default: x(() => [
|
|
1171
|
-
|
|
1171
|
+
Z(y(g.label), 1)
|
|
1172
1172
|
]),
|
|
1173
1173
|
_: 2
|
|
1174
1174
|
}, 1032, ["value"]))), 128))
|
|
@@ -1181,7 +1181,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1181
1181
|
key: g.id
|
|
1182
1182
|
}, [
|
|
1183
1183
|
n("th", tl, [
|
|
1184
|
-
|
|
1184
|
+
Z(y(t.$t(`${g.key}`)) + " ", 1),
|
|
1185
1185
|
g.unit ? (A(), I("span", ol, " ( " + y(g.unit) + " )", 1)) : G("", !0)
|
|
1186
1186
|
]),
|
|
1187
1187
|
n("td", al, [
|
|
@@ -1260,8 +1260,8 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1260
1260
|
(A(!0), I(Se, null, Re(a.tideTableData, (g, h) => {
|
|
1261
1261
|
var f;
|
|
1262
1262
|
return A(), I("tr", { key: h }, [
|
|
1263
|
-
n("td",
|
|
1264
|
-
n("td",
|
|
1263
|
+
n("td", Cl, y(t.$t(`tide.${(f = g == null ? void 0 : g.type) == null ? void 0 : f.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
|
|
1264
|
+
n("td", _l, y(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
|
|
1265
1265
|
n("td", Ml, y((g == null ? void 0 : g.height) ?? "-") + " m", 1)
|
|
1266
1266
|
]);
|
|
1267
1267
|
}), 128))
|
|
@@ -1275,7 +1275,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
}, 8, ["class"]);
|
|
1277
1277
|
}
|
|
1278
|
-
const ua = /* @__PURE__ */ ie(
|
|
1278
|
+
const ua = /* @__PURE__ */ ie(_r, [["render", Pl], ["__scopeId", "data-v-859d2f37"]]);
|
|
1279
1279
|
const Sl = {
|
|
1280
1280
|
name: "IdmPort",
|
|
1281
1281
|
components: {
|
|
@@ -1672,7 +1672,7 @@ const jl = /* @__PURE__ */ ie(Gl, [["render", Fl]]), Bl = {
|
|
|
1672
1672
|
function Nl(t, e, o, i, a, r) {
|
|
1673
1673
|
return A(), I("div");
|
|
1674
1674
|
}
|
|
1675
|
-
const
|
|
1675
|
+
const Wl = /* @__PURE__ */ ie(Bl, [["render", Nl]]), Zl = {
|
|
1676
1676
|
name: "IdmVoluntaryReportingArea",
|
|
1677
1677
|
props: {
|
|
1678
1678
|
map: {
|
|
@@ -1767,7 +1767,7 @@ const Zl = /* @__PURE__ */ ie(Bl, [["render", Nl]]), Wl = {
|
|
|
1767
1767
|
function Vl(t, e, o, i, a, r) {
|
|
1768
1768
|
return A(), I("div");
|
|
1769
1769
|
}
|
|
1770
|
-
const Xl = /* @__PURE__ */ ie(
|
|
1770
|
+
const Xl = /* @__PURE__ */ ie(Zl, [["render", Vl]]), Ol = {
|
|
1771
1771
|
name: "IdmSpecialArea",
|
|
1772
1772
|
props: {
|
|
1773
1773
|
map: {
|
|
@@ -2325,7 +2325,7 @@ const nn = {
|
|
|
2325
2325
|
}, sn = { class: "d-flex justify-space-between align-center" }, cn = { class: "d-flex justify-start text-h5 my-2" }, mn = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, dn = { class: "summary-box w-100" }, hn = { class: "d-flex justify-space-between align-center py-2" }, pn = { class: "d-flex justify-center align-center text-h6 ga-2" }, un = {
|
|
2326
2326
|
class: "multi-color-icon",
|
|
2327
2327
|
"aria-hidden": "true"
|
|
2328
|
-
}, gn = ["xlink:href"], fn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, yn = { class: "w-100 d-flex justify-start align-center" }, bn = { class: "w-30 text-label font-weight-400" }, wn = { class: "flex-1-1-0" }, xn = { class: "w-100 d-flex justify-start align-center" }, vn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, kn = { class: "w-100 d-flex justify-start align-center" }, Ln = { class: "w-30 text-label font-weight-400" }, zn = { class: "flex-1-1-0" },
|
|
2328
|
+
}, gn = ["xlink:href"], fn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, yn = { class: "w-100 d-flex justify-start align-center" }, bn = { class: "w-30 text-label font-weight-400" }, wn = { class: "flex-1-1-0" }, xn = { class: "w-100 d-flex justify-start align-center" }, vn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, kn = { class: "w-100 d-flex justify-start align-center" }, Ln = { class: "w-30 text-label font-weight-400" }, zn = { class: "flex-1-1-0" }, Cn = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, _n = { class: "w-100 d-flex justify-space-between align-center py-2" }, Mn = { class: "d-flex justify-center align-center text-h6 ga-2" }, Pn = {
|
|
2329
2329
|
class: "multi-color-icon",
|
|
2330
2330
|
"aria-hidden": "true"
|
|
2331
2331
|
}, Sn = ["xlink:href"], Tn = {
|
|
@@ -2413,8 +2413,8 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2413
2413
|
])
|
|
2414
2414
|
])
|
|
2415
2415
|
]),
|
|
2416
|
-
n("div",
|
|
2417
|
-
n("div",
|
|
2416
|
+
n("div", Cn, [
|
|
2417
|
+
n("div", _n, [
|
|
2418
2418
|
n("div", Mn, [
|
|
2419
2419
|
(A(), I("svg", Pn, [
|
|
2420
2420
|
n("use", {
|
|
@@ -2449,7 +2449,7 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2449
2449
|
value: b.index
|
|
2450
2450
|
}, {
|
|
2451
2451
|
default: x(() => [
|
|
2452
|
-
|
|
2452
|
+
Z(y(b.label), 1)
|
|
2453
2453
|
]),
|
|
2454
2454
|
_: 2
|
|
2455
2455
|
}, 1032, ["value"]))), 128))
|
|
@@ -2483,7 +2483,7 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2483
2483
|
}, 8, ["class"]);
|
|
2484
2484
|
}
|
|
2485
2485
|
const Nn = /* @__PURE__ */ ie(nn, [["render", Bn], ["__scopeId", "data-v-79152278"]]);
|
|
2486
|
-
const
|
|
2486
|
+
const Wn = {
|
|
2487
2487
|
name: "IdmTideStations",
|
|
2488
2488
|
components: {
|
|
2489
2489
|
TideDetail: Nn
|
|
@@ -2558,7 +2558,7 @@ const Zn = {
|
|
|
2558
2558
|
this.showDetail = !1;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
},
|
|
2561
|
+
}, Zn = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Vn = { class: "d-flex justify-start align-center" }, Xn = { class: "d-flex justify-start align-center" }, On = { class: "text-label" };
|
|
2562
2562
|
function Yn(t, e, o, i, a, r) {
|
|
2563
2563
|
const l = M("VCardText"), c = M("VCard"), s = M("TideDetail");
|
|
2564
2564
|
return A(), I("div", null, [
|
|
@@ -2568,7 +2568,7 @@ function Yn(t, e, o, i, a, r) {
|
|
|
2568
2568
|
default: x(() => {
|
|
2569
2569
|
var d, m;
|
|
2570
2570
|
return [
|
|
2571
|
-
n("div",
|
|
2571
|
+
n("div", Zn, [
|
|
2572
2572
|
n("div", Vn, y(t.$t("tide.tideStation")), 1),
|
|
2573
2573
|
n("div", Xn, [
|
|
2574
2574
|
n("label", On, y((d = a.hoverStation) == null ? void 0 : d.name) + " , " + y(((m = a.hoverStation) == null ? void 0 : m.Country) || "-"), 1)
|
|
@@ -2589,7 +2589,7 @@ function Yn(t, e, o, i, a, r) {
|
|
|
2589
2589
|
}, t.$attrs, { onClose: r.handleCloseDetail }), null, 16, ["station", "onClose"])) : G("", !0)
|
|
2590
2590
|
]);
|
|
2591
2591
|
}
|
|
2592
|
-
const Hn = /* @__PURE__ */ ie(
|
|
2592
|
+
const Hn = /* @__PURE__ */ ie(Wn, [["render", Yn], ["__scopeId", "data-v-ad725d5e"]]), Un = {
|
|
2593
2593
|
name: "IdmIceAreas",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
map: {
|
|
@@ -2749,7 +2749,7 @@ const Qn = {
|
|
|
2749
2749
|
handleZoomEnd() {
|
|
2750
2750
|
var e;
|
|
2751
2751
|
const t = this.handleComputeLatLngs();
|
|
2752
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
2752
|
+
(e = this.map) == null || e.getSource(this.source).setData(W.featureCollection(t));
|
|
2753
2753
|
},
|
|
2754
2754
|
handleRender() {
|
|
2755
2755
|
if (this.handleClear(), this.map) {
|
|
@@ -2817,7 +2817,7 @@ function qn(t, e, o, i, a, r) {
|
|
|
2817
2817
|
n("div", null, y((s = a.lngLat) == null ? void 0 : s.str), 1)
|
|
2818
2818
|
], 4));
|
|
2819
2819
|
}
|
|
2820
|
-
const
|
|
2820
|
+
const Wi = /* @__PURE__ */ ie(Qn, [["render", qn]]);
|
|
2821
2821
|
const $n = {
|
|
2822
2822
|
name: "IdmFollowPort",
|
|
2823
2823
|
components: {
|
|
@@ -3158,10 +3158,10 @@ const ds = {
|
|
|
3158
3158
|
IdmWarZone: fr,
|
|
3159
3159
|
IdmGmdssArea: wr,
|
|
3160
3160
|
IdmEcaZone: Ar,
|
|
3161
|
-
IdmAlertZone:
|
|
3161
|
+
IdmAlertZone: Cr,
|
|
3162
3162
|
IdmPort: El,
|
|
3163
3163
|
IdmLoadLine: jl,
|
|
3164
|
-
IdmTimezone:
|
|
3164
|
+
IdmTimezone: Wl,
|
|
3165
3165
|
IdmVRA: Xl,
|
|
3166
3166
|
IdmSpecialArea: Hl,
|
|
3167
3167
|
IdmTerminator: Kl,
|
|
@@ -3170,7 +3170,7 @@ const ds = {
|
|
|
3170
3170
|
IdmChinaRoute: ln,
|
|
3171
3171
|
IdmTideStations: Hn,
|
|
3172
3172
|
IdmIceAreas: Kn,
|
|
3173
|
-
IdmLatLng:
|
|
3173
|
+
IdmLatLng: Wi,
|
|
3174
3174
|
IdmFollowPort: is,
|
|
3175
3175
|
IdmFollowPosition: ms
|
|
3176
3176
|
},
|
|
@@ -3228,7 +3228,7 @@ const ds = {
|
|
|
3228
3228
|
type: String
|
|
3229
3229
|
}
|
|
3230
3230
|
},
|
|
3231
|
-
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList"],
|
|
3231
|
+
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList", "tempFeatherCount"],
|
|
3232
3232
|
data() {
|
|
3233
3233
|
return {
|
|
3234
3234
|
right: 10,
|
|
@@ -3276,9 +3276,9 @@ const ds = {
|
|
|
3276
3276
|
},
|
|
3277
3277
|
theme: {
|
|
3278
3278
|
handler() {
|
|
3279
|
-
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
|
|
3280
|
-
}
|
|
3281
|
-
immediate:
|
|
3279
|
+
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.theme === "dark" && (this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark");
|
|
3280
|
+
}
|
|
3281
|
+
// immediate: true,
|
|
3282
3282
|
},
|
|
3283
3283
|
mapFeather: {
|
|
3284
3284
|
handler() {
|
|
@@ -3316,7 +3316,7 @@ const ds = {
|
|
|
3316
3316
|
this.$emit("menuToggle", "otherLayers");
|
|
3317
3317
|
},
|
|
3318
3318
|
handleToggleMapFeather(t) {
|
|
3319
|
-
this
|
|
3319
|
+
this.mapFeather = t.value, (this.mapFeather === "light" || this.mapFeather === "dark") && this.$emit("tempFeatherCount");
|
|
3320
3320
|
},
|
|
3321
3321
|
async fetchOtherLayers() {
|
|
3322
3322
|
var e, o;
|
|
@@ -3379,7 +3379,7 @@ const ds = {
|
|
|
3379
3379
|
}, vs = { class: "text-body-2 text-center pt-2" };
|
|
3380
3380
|
function As(t, e, o, i, a, r) {
|
|
3381
3381
|
var ge, he, E, J, K, ae, Y, O, ee;
|
|
3382
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), u = M("VCard"), b = M("IdmPort"), g = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), k = M("IdmTimezone"), v = M("IdmAlertZone"),
|
|
3382
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), u = M("VCard"), b = M("IdmPort"), g = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), k = M("IdmTimezone"), v = M("IdmAlertZone"), C = M("IdmEcaZone"), L = M("IdmWarZone"), P = M("IdmGmdssArea"), z = M("IdmLoadLine"), R = M("IdmWorldMarine"), S = M("IdmVRA"), F = M("IdmSpecialArea"), N = M("IdmWorld12nm"), B = M("IdmChinaRoute"), Q = M("IdmIceAreas"), q = M("IdmFollowPort"), oe = M("IdmFollowPosition");
|
|
3383
3383
|
return A(), I("div", hs, [
|
|
3384
3384
|
n("div", {
|
|
3385
3385
|
class: ue(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -3443,7 +3443,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3443
3443
|
default: x(() => [
|
|
3444
3444
|
w(s, { class: "text-h6" }, {
|
|
3445
3445
|
default: x(() => [
|
|
3446
|
-
|
|
3446
|
+
Z(y(t.$t("layer.mapFeathers")), 1)
|
|
3447
3447
|
]),
|
|
3448
3448
|
_: 1
|
|
3449
3449
|
})
|
|
@@ -3493,7 +3493,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3493
3493
|
default: x(() => [
|
|
3494
3494
|
w(s, { class: "text-h6" }, {
|
|
3495
3495
|
default: x(() => [
|
|
3496
|
-
|
|
3496
|
+
Z(y(t.$t("layer.pointsOfInteresting")), 1)
|
|
3497
3497
|
]),
|
|
3498
3498
|
_: 1
|
|
3499
3499
|
})
|
|
@@ -3529,7 +3529,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3529
3529
|
default: x(() => [
|
|
3530
3530
|
w(s, { class: "text-h6" }, {
|
|
3531
3531
|
default: x(() => [
|
|
3532
|
-
|
|
3532
|
+
Z(y(t.$t("layer.otherLayers")), 1)
|
|
3533
3533
|
]),
|
|
3534
3534
|
_: 1
|
|
3535
3535
|
})
|
|
@@ -3565,7 +3565,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3565
3565
|
default: x(() => [
|
|
3566
3566
|
w(s, { class: "text-h6" }, {
|
|
3567
3567
|
default: x(() => [
|
|
3568
|
-
|
|
3568
|
+
Z(y(t.$t("layer.myFollows")), 1)
|
|
3569
3569
|
]),
|
|
3570
3570
|
_: 1
|
|
3571
3571
|
})
|
|
@@ -3657,7 +3657,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3657
3657
|
"before-layer": "empty-layer-3",
|
|
3658
3658
|
theme: o.theme
|
|
3659
3659
|
}), null, 16, ["map", "simple", "zone", "theme"])) : G("", !0),
|
|
3660
|
-
o.map ? (A(), j(
|
|
3660
|
+
o.map ? (A(), j(C, U({
|
|
3661
3661
|
key: 6,
|
|
3662
3662
|
map: o.map,
|
|
3663
3663
|
zone: (K = a.otherLayers) == null ? void 0 : K["eca-zones"]
|
|
@@ -3969,7 +3969,7 @@ class Je {
|
|
|
3969
3969
|
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, r), 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);
|
|
3970
3970
|
const p = e.getBoundPixel(), u = e.map.getZoom() + 1, b = e.getWorldCopy(p, u);
|
|
3971
3971
|
for (const g of b) {
|
|
3972
|
-
const h = (g[0] - p[0]) * e.ratio, f = (g[1] - p[3]) * e.ratio, k = g[2] * e.ratio, [v,
|
|
3972
|
+
const h = (g[0] - p[0]) * e.ratio, f = (g[1] - p[3]) * e.ratio, k = g[2] * e.ratio, [v, C, L, P] = [h, k + h, f, k + f], z = new Float32Array([v, L, C, L, v, P, v, P, C, L, C, P]);
|
|
3973
3973
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, z, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
3974
3974
|
}
|
|
3975
3975
|
} catch (m) {
|
|
@@ -4018,10 +4018,10 @@ class Je {
|
|
|
4018
4018
|
});
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
class
|
|
4021
|
+
class Ce {
|
|
4022
4022
|
}
|
|
4023
4023
|
// 顶点渲染
|
|
4024
|
-
we(
|
|
4024
|
+
we(Ce, "vertexSchema", `
|
|
4025
4025
|
//canvas 坐标系上的坐标 (x, y)
|
|
4026
4026
|
attribute vec2 a_position; //像素坐标
|
|
4027
4027
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -4036,7 +4036,7 @@ we(_e, "vertexSchema", `
|
|
|
4036
4036
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
4037
4037
|
v_texCoord = a_texCoord;
|
|
4038
4038
|
}`), // 类如风、流等u v双变量片元渲染
|
|
4039
|
-
we(
|
|
4039
|
+
we(Ce, "uvFragmentSchema", `
|
|
4040
4040
|
precision mediump float;
|
|
4041
4041
|
uniform sampler2D u_image;
|
|
4042
4042
|
uniform vec2 u_range_u_v;
|
|
@@ -4056,7 +4056,7 @@ we(_e, "uvFragmentSchema", `
|
|
|
4056
4056
|
|
|
4057
4057
|
gl_FragColor = color;
|
|
4058
4058
|
}`), // 类如浪、气压等单变量片元渲染
|
|
4059
|
-
we(
|
|
4059
|
+
we(Ce, "fragmentSchema", `
|
|
4060
4060
|
precision mediump float;
|
|
4061
4061
|
uniform sampler2D u_image; // 灰度
|
|
4062
4062
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -4272,7 +4272,7 @@ const Ls = {
|
|
|
4272
4272
|
showCaption: !1,
|
|
4273
4273
|
source: "wind-barb-source",
|
|
4274
4274
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
4275
|
-
empty:
|
|
4275
|
+
empty: W.featureCollection([]),
|
|
4276
4276
|
right: 10,
|
|
4277
4277
|
bottom: 125,
|
|
4278
4278
|
windBarbLoaded: !1,
|
|
@@ -4362,10 +4362,10 @@ const Ls = {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
4364
|
};
|
|
4365
|
-
function
|
|
4365
|
+
function Cs(t, e, o, i, a, r) {
|
|
4366
4366
|
return null;
|
|
4367
4367
|
}
|
|
4368
|
-
const
|
|
4368
|
+
const _s = /* @__PURE__ */ ie(zs, [["render", Cs]]);
|
|
4369
4369
|
const Ms = {
|
|
4370
4370
|
name: "IdmWindParticle",
|
|
4371
4371
|
props: {
|
|
@@ -4477,7 +4477,7 @@ const Ms = {
|
|
|
4477
4477
|
[1, "rgb(91, 136, 161)"]
|
|
4478
4478
|
];
|
|
4479
4479
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4480
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4480
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.uvFragmentSchema);
|
|
4481
4481
|
this.program = e, this.aPositionBuffer = o;
|
|
4482
4482
|
}
|
|
4483
4483
|
this.handleParticleSetup();
|
|
@@ -4584,7 +4584,7 @@ const Ts = /* @__PURE__ */ ie(Ms, [["render", Ss]]), Rs = {
|
|
|
4584
4584
|
directionLayer: "current-direction-layer",
|
|
4585
4585
|
speedLayer: "current-speed-layer",
|
|
4586
4586
|
speedLabelLayer: "current-speed-label-layer",
|
|
4587
|
-
empty:
|
|
4587
|
+
empty: W.featureCollection([])
|
|
4588
4588
|
};
|
|
4589
4589
|
},
|
|
4590
4590
|
computed: {
|
|
@@ -4814,7 +4814,7 @@ const Es = {
|
|
|
4814
4814
|
[1, "rgb(195,194,194)"]
|
|
4815
4815
|
];
|
|
4816
4816
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4817
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4817
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.uvFragmentSchema);
|
|
4818
4818
|
this.program = e, this.aPositionBuffer = o;
|
|
4819
4819
|
}
|
|
4820
4820
|
this.handleParticleSetup();
|
|
@@ -4990,7 +4990,7 @@ const Bs = {
|
|
|
4990
4990
|
//13
|
|
4991
4991
|
];
|
|
4992
4992
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4993
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4993
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
4994
4994
|
this.program = e, this.aPositionBuffer = o;
|
|
4995
4995
|
}
|
|
4996
4996
|
},
|
|
@@ -5004,7 +5004,7 @@ const Bs = {
|
|
|
5004
5004
|
}
|
|
5005
5005
|
}
|
|
5006
5006
|
}, Ns = { key: 0 };
|
|
5007
|
-
function
|
|
5007
|
+
function Ws(t, e, o, i, a, r) {
|
|
5008
5008
|
var l;
|
|
5009
5009
|
return (l = o.factor) != null && l.active ? (A(), I("div", Ns, [
|
|
5010
5010
|
n("div", {
|
|
@@ -5021,7 +5021,7 @@ function Zs(t, e, o, i, a, r) {
|
|
|
5021
5021
|
]), 4)
|
|
5022
5022
|
])) : G("", !0);
|
|
5023
5023
|
}
|
|
5024
|
-
const
|
|
5024
|
+
const Zs = /* @__PURE__ */ ie(Bs, [["render", Ws], ["__scopeId", "data-v-b562523c"]]), Vs = {
|
|
5025
5025
|
name: "IdmSigWaveHeight",
|
|
5026
5026
|
props: {
|
|
5027
5027
|
map: {
|
|
@@ -5045,7 +5045,7 @@ const Ws = /* @__PURE__ */ ie(Bs, [["render", Zs], ["__scopeId", "data-v-b562523
|
|
|
5045
5045
|
source: "sig-wave-height-source",
|
|
5046
5046
|
heightLayer: "sig-wave-height-layer",
|
|
5047
5047
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
5048
|
-
empty:
|
|
5048
|
+
empty: W.featureCollection([])
|
|
5049
5049
|
};
|
|
5050
5050
|
},
|
|
5051
5051
|
watch: {
|
|
@@ -5257,7 +5257,7 @@ const Ys = {
|
|
|
5257
5257
|
//13
|
|
5258
5258
|
];
|
|
5259
5259
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5260
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5260
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5261
5261
|
this.program = e, this.aPositionBuffer = o;
|
|
5262
5262
|
}
|
|
5263
5263
|
},
|
|
@@ -5318,7 +5318,7 @@ const Js = /* @__PURE__ */ ie(Ys, [["render", Us], ["__scopeId", "data-v-7ee2fac
|
|
|
5318
5318
|
layer: "prmsl-layer",
|
|
5319
5319
|
labelLayer: "prmsl-label-layer",
|
|
5320
5320
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
5321
|
-
empty:
|
|
5321
|
+
empty: W.featureCollection([])
|
|
5322
5322
|
};
|
|
5323
5323
|
},
|
|
5324
5324
|
watch: {
|
|
@@ -5517,7 +5517,7 @@ const $s = {
|
|
|
5517
5517
|
// 100%
|
|
5518
5518
|
];
|
|
5519
5519
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5520
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5520
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5521
5521
|
this.program = e, this.aPositionBuffer = o;
|
|
5522
5522
|
}
|
|
5523
5523
|
},
|
|
@@ -5634,7 +5634,7 @@ const ac = {
|
|
|
5634
5634
|
// 100%
|
|
5635
5635
|
];
|
|
5636
5636
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5637
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5637
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5638
5638
|
this.program = e, this.aPositionBuffer = o;
|
|
5639
5639
|
}
|
|
5640
5640
|
},
|
|
@@ -5752,7 +5752,7 @@ const nc = {
|
|
|
5752
5752
|
// 4m
|
|
5753
5753
|
];
|
|
5754
5754
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5755
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5755
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5756
5756
|
this.program = e, this.aPositionBuffer = o;
|
|
5757
5757
|
}
|
|
5758
5758
|
},
|
|
@@ -5872,7 +5872,7 @@ const dc = {
|
|
|
5872
5872
|
[1, "rgba(197,5,58,0.8)"]
|
|
5873
5873
|
];
|
|
5874
5874
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5875
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5875
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5876
5876
|
this.program = e, this.aPositionBuffer = o;
|
|
5877
5877
|
}
|
|
5878
5878
|
},
|
|
@@ -5983,7 +5983,7 @@ const gc = {
|
|
|
5983
5983
|
[1, "rgba(144,144,144,0)"]
|
|
5984
5984
|
];
|
|
5985
5985
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5986
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5986
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5987
5987
|
this.program = e, this.aPositionBuffer = o;
|
|
5988
5988
|
}
|
|
5989
5989
|
},
|
|
@@ -6095,7 +6095,7 @@ const wc = {
|
|
|
6095
6095
|
//
|
|
6096
6096
|
];
|
|
6097
6097
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6098
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6098
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
6099
6099
|
this.program = e, this.aPositionBuffer = o;
|
|
6100
6100
|
}
|
|
6101
6101
|
},
|
|
@@ -6218,7 +6218,7 @@ const kc = {
|
|
|
6218
6218
|
[1, "rgb(138, 43, 10)"]
|
|
6219
6219
|
];
|
|
6220
6220
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6221
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6221
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
6222
6222
|
this.program = e, this.aPositionBuffer = o;
|
|
6223
6223
|
}
|
|
6224
6224
|
},
|
|
@@ -6250,15 +6250,15 @@ function zc(t, e, o, i, a, r) {
|
|
|
6250
6250
|
]), 4)
|
|
6251
6251
|
])) : G("", !0);
|
|
6252
6252
|
}
|
|
6253
|
-
const
|
|
6254
|
-
const
|
|
6253
|
+
const Cc = /* @__PURE__ */ ie(kc, [["render", zc]]);
|
|
6254
|
+
const _c = {
|
|
6255
6255
|
name: "IdmGlLayer",
|
|
6256
6256
|
components: {
|
|
6257
|
-
IdmWindBarb:
|
|
6257
|
+
IdmWindBarb: _s,
|
|
6258
6258
|
IdmWindParticle: Ts,
|
|
6259
6259
|
IdmCurrentDirection: Ds,
|
|
6260
6260
|
IdmCurrentParticle: js,
|
|
6261
|
-
IdmWave:
|
|
6261
|
+
IdmWave: Zs,
|
|
6262
6262
|
IdmSigWaveHeight: Os,
|
|
6263
6263
|
IdmSwell: Js,
|
|
6264
6264
|
IdmPrmsl: qs,
|
|
@@ -6268,7 +6268,7 @@ const Cc = {
|
|
|
6268
6268
|
IdmPrecip3h: uc,
|
|
6269
6269
|
IdmVisibility: bc,
|
|
6270
6270
|
IdmWaterTemp: Ac,
|
|
6271
|
-
IdmTemp:
|
|
6271
|
+
IdmTemp: Cc
|
|
6272
6272
|
},
|
|
6273
6273
|
props: {
|
|
6274
6274
|
simple: {
|
|
@@ -6531,7 +6531,7 @@ const Cc = {
|
|
|
6531
6531
|
},
|
|
6532
6532
|
handleCheckListChange(t, e) {
|
|
6533
6533
|
if (this.arraysEqual(t, e))
|
|
6534
|
-
return !1;
|
|
6534
|
+
return this.handleMove4Weather(), !1;
|
|
6535
6535
|
const o = [...new Set(t)], i = o == null ? void 0 : o.filter((l) => !(e != null && e.includes(l)))[0], a = e == null ? void 0 : e.filter((l) => !(o != null && o.includes(l)))[0], r = this.checkList.filter((l) => !this.rendersKeys.some((c) => c === l));
|
|
6536
6536
|
if (i)
|
|
6537
6537
|
if (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast")
|
|
@@ -6542,7 +6542,7 @@ const Cc = {
|
|
|
6542
6542
|
this.checkList = [...r, i];
|
|
6543
6543
|
else {
|
|
6544
6544
|
const l = o.filter((s) => !this.rendersKeys.includes(s)), c = this.checkList.filter((s) => this.rendersKeys.includes(s));
|
|
6545
|
-
this.checkList = [...l, ...c]
|
|
6545
|
+
this.checkList = [...l, ...c];
|
|
6546
6546
|
}
|
|
6547
6547
|
a && (a === "ice-forecast" ? (this.checkList = o.filter((l) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(l)), this.iceToggleValue = void 0) : a === "wave-group" ? (this.checkList = o.filter((l) => !["wave-group", "sig-wave", "swell"].includes(l)), this.waveToggleValue = void 0) : this.checkList = o), this.checkList.includes("wind-particle") && !(e != null && e.includes("wind-particle")) && (this.showWindParticle = !0), this.checkList.includes("current-particle") && !(e != null && e.includes("current-particle")) && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(o)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((l) => o.includes(l.key)) : [], this.handleWeatherLayerChange();
|
|
6548
6548
|
},
|
|
@@ -6580,9 +6580,9 @@ const Cc = {
|
|
|
6580
6580
|
}
|
|
6581
6581
|
);
|
|
6582
6582
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), ((l = k == null ? void 0 : k.data) == null ? void 0 : l.code) === 0) {
|
|
6583
|
-
const v = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data,
|
|
6583
|
+
const v = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data, C = [];
|
|
6584
6584
|
for (const P in v)
|
|
6585
|
-
|
|
6585
|
+
C.push(
|
|
6586
6586
|
Ie.get(v[P], {
|
|
6587
6587
|
headers: {
|
|
6588
6588
|
Authorization: this.defaultMeteoToken,
|
|
@@ -6593,7 +6593,7 @@ const Cc = {
|
|
|
6593
6593
|
console.log(`[${P}] fetch layer error: ${z}`);
|
|
6594
6594
|
})
|
|
6595
6595
|
);
|
|
6596
|
-
const L = await Promise.all(
|
|
6596
|
+
const L = await Promise.all(C);
|
|
6597
6597
|
this.weatherLayers = {}, L.map((P) => {
|
|
6598
6598
|
var S, F, N, B;
|
|
6599
6599
|
const z = ((S = P == null ? void 0 : P.data) == null ? void 0 : S.data) || (P == null ? void 0 : P.data);
|
|
@@ -6606,28 +6606,28 @@ const Cc = {
|
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
6608
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6609
|
-
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw,
|
|
6609
|
+
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw, C = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
6610
6610
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6611
6611
|
type: "json",
|
|
6612
6612
|
direction: v,
|
|
6613
|
-
height: { raw:
|
|
6613
|
+
height: { raw: C },
|
|
6614
6614
|
etime: k.data.etime
|
|
6615
6615
|
};
|
|
6616
6616
|
}
|
|
6617
6617
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6618
|
-
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw,
|
|
6618
|
+
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, C = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6619
6619
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6620
6620
|
type: "json",
|
|
6621
6621
|
direction: v,
|
|
6622
|
-
speed: { raw:
|
|
6622
|
+
speed: { raw: C },
|
|
6623
6623
|
etime: k.data.etime
|
|
6624
6624
|
};
|
|
6625
6625
|
}
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
6628
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json(), this.$nextTick(() => {
|
|
6629
|
-
var h, f, k, v,
|
|
6630
|
-
(
|
|
6629
|
+
var h, f, k, v, C;
|
|
6630
|
+
(C = (v = (k = (f = (h = this.$parent) == null ? void 0 : h.$refs) == null ? void 0 : f.idmBottomBar) == null ? void 0 : k.$refs) == null ? void 0 : v.capture) == null || C.captureCurrentFrame();
|
|
6631
6631
|
});
|
|
6632
6632
|
}
|
|
6633
6633
|
},
|
|
@@ -6699,14 +6699,14 @@ const Cc = {
|
|
|
6699
6699
|
var S, F, N, B, Q, q;
|
|
6700
6700
|
if (i < 2) {
|
|
6701
6701
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6702
|
-
const oe =
|
|
6702
|
+
const oe = W.point([z, L], {
|
|
6703
6703
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6704
6704
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6705
6705
|
});
|
|
6706
6706
|
k.push(oe);
|
|
6707
6707
|
}
|
|
6708
6708
|
} else if ((z >= p && z <= 180 || z >= -180 && z <= u) && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6709
|
-
const oe =
|
|
6709
|
+
const oe = W.point([z, L], {
|
|
6710
6710
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6711
6711
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6712
6712
|
});
|
|
@@ -6716,14 +6716,14 @@ const Cc = {
|
|
|
6716
6716
|
var S, F, N, B, Q, q;
|
|
6717
6717
|
if (p < 2) {
|
|
6718
6718
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6719
|
-
const oe =
|
|
6719
|
+
const oe = W.point([z, L], {
|
|
6720
6720
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6721
6721
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6722
6722
|
});
|
|
6723
6723
|
k.push(oe);
|
|
6724
6724
|
}
|
|
6725
6725
|
} else if (z >= p && z <= u && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6726
|
-
const oe =
|
|
6726
|
+
const oe = W.point([z, L], {
|
|
6727
6727
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6728
6728
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6729
6729
|
});
|
|
@@ -6732,23 +6732,23 @@ const Cc = {
|
|
|
6732
6732
|
});
|
|
6733
6733
|
}
|
|
6734
6734
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6735
|
-
const
|
|
6736
|
-
if (
|
|
6737
|
-
if (!
|
|
6735
|
+
const C = this.weatherLayers[h].height;
|
|
6736
|
+
if (C) {
|
|
6737
|
+
if (!C.data) {
|
|
6738
6738
|
const L = [];
|
|
6739
|
-
for (const P in (c =
|
|
6740
|
-
const z =
|
|
6739
|
+
for (const P in (c = C.raw) == null ? void 0 : c.LineString) {
|
|
6740
|
+
const z = C.raw.LineString[P];
|
|
6741
6741
|
for (const R of z)
|
|
6742
6742
|
L.push(
|
|
6743
|
-
|
|
6743
|
+
W.lineString(R, {
|
|
6744
6744
|
val: Number(P)
|
|
6745
6745
|
})
|
|
6746
6746
|
);
|
|
6747
|
-
|
|
6747
|
+
C.data = W.featureCollection(L);
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
|
-
if (
|
|
6751
|
-
const L = this.handleBboxClip(
|
|
6750
|
+
if (C.data) {
|
|
6751
|
+
const L = this.handleBboxClip(C.data, o);
|
|
6752
6752
|
k = k.concat(L);
|
|
6753
6753
|
}
|
|
6754
6754
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6763,14 +6763,14 @@ const Cc = {
|
|
|
6763
6763
|
var S, F, N, B, Q, q;
|
|
6764
6764
|
if (i < 2) {
|
|
6765
6765
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6766
|
-
const oe =
|
|
6766
|
+
const oe = W.point([z, L], {
|
|
6767
6767
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6768
6768
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6769
6769
|
});
|
|
6770
6770
|
k.push(oe);
|
|
6771
6771
|
}
|
|
6772
6772
|
} else if ((z >= p && z <= 180 || z >= -180 && z <= u) && (!(i <= this.zoom) || z % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6773
|
-
const oe =
|
|
6773
|
+
const oe = W.point([z, L], {
|
|
6774
6774
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6775
6775
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6776
6776
|
});
|
|
@@ -6780,14 +6780,14 @@ const Cc = {
|
|
|
6780
6780
|
var S, F, N, B, Q, q;
|
|
6781
6781
|
if (p < 2) {
|
|
6782
6782
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
6783
|
-
const oe =
|
|
6783
|
+
const oe = W.point([z, L], {
|
|
6784
6784
|
val: ((S = v[L].val) == null ? void 0 : S[R]) || ((F = v[L].dir) == null ? void 0 : F[R]),
|
|
6785
6785
|
spd: (N = v[L].spd) == null ? void 0 : N[R]
|
|
6786
6786
|
});
|
|
6787
6787
|
k.push(oe);
|
|
6788
6788
|
}
|
|
6789
6789
|
} else if (z >= p && z <= u && (!(i <= this.zoom) || z % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6790
|
-
const oe =
|
|
6790
|
+
const oe = W.point([z, L], {
|
|
6791
6791
|
val: ((B = v[L].val) == null ? void 0 : B[R]) || ((Q = v[L].dir) == null ? void 0 : Q[R]),
|
|
6792
6792
|
spd: (q = v[L].spd) == null ? void 0 : q[R]
|
|
6793
6793
|
});
|
|
@@ -6796,44 +6796,44 @@ const Cc = {
|
|
|
6796
6796
|
});
|
|
6797
6797
|
}
|
|
6798
6798
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6799
|
-
const
|
|
6800
|
-
if (
|
|
6801
|
-
if (!
|
|
6799
|
+
const C = this.weatherLayers[h].speed;
|
|
6800
|
+
if (C) {
|
|
6801
|
+
if (!C.data) {
|
|
6802
6802
|
const P = [];
|
|
6803
|
-
for (const z in (d =
|
|
6804
|
-
const R =
|
|
6803
|
+
for (const z in (d = C.raw) == null ? void 0 : d.Polygon) {
|
|
6804
|
+
const R = C.raw.Polygon[z];
|
|
6805
6805
|
for (const S of R)
|
|
6806
6806
|
P.push(
|
|
6807
|
-
|
|
6807
|
+
W.polygon(S, {
|
|
6808
6808
|
val: Number(z)
|
|
6809
6809
|
})
|
|
6810
6810
|
);
|
|
6811
6811
|
}
|
|
6812
|
-
|
|
6812
|
+
C.data = W.featureCollection(P);
|
|
6813
6813
|
}
|
|
6814
|
-
const L = i < this.zoom ?
|
|
6814
|
+
const L = i < this.zoom ? C.data.features.filter((P) => P.properties.val > 0.5) : C.data.features;
|
|
6815
6815
|
k = k.concat(L), (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6816
6816
|
}
|
|
6817
6817
|
} else if (h === "wind") {
|
|
6818
6818
|
f = !0;
|
|
6819
6819
|
const v = this.weatherLayers.wind.raw;
|
|
6820
|
-
for (const
|
|
6821
|
-
if (
|
|
6822
|
-
const L = v[
|
|
6820
|
+
for (const C in v)
|
|
6821
|
+
if (C > b && C < g && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6822
|
+
const L = v[C].lng;
|
|
6823
6823
|
p > u ? L.forEach((P, z) => {
|
|
6824
6824
|
var R, S, F, N;
|
|
6825
6825
|
if (i < 2) {
|
|
6826
6826
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6827
|
-
const B =
|
|
6828
|
-
dir: ((R = v[
|
|
6829
|
-
spd: v[
|
|
6827
|
+
const B = W.point([P, C], {
|
|
6828
|
+
dir: ((R = v[C].val) == null ? void 0 : R[z]) || ((S = v[C].dir) == null ? void 0 : S[z]),
|
|
6829
|
+
spd: v[C].spd[z]
|
|
6830
6830
|
});
|
|
6831
6831
|
k.push(B);
|
|
6832
6832
|
}
|
|
6833
6833
|
} else if ((P >= p && P <= 180 || P >= -180 && P <= u) && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6834
|
-
const B =
|
|
6835
|
-
dir: ((F = v[
|
|
6836
|
-
spd: v[
|
|
6834
|
+
const B = W.point([P, C], {
|
|
6835
|
+
dir: ((F = v[C].val) == null ? void 0 : F[z]) || ((N = v[C].dir) == null ? void 0 : N[z]),
|
|
6836
|
+
spd: v[C].spd[z]
|
|
6837
6837
|
});
|
|
6838
6838
|
k.push(B);
|
|
6839
6839
|
}
|
|
@@ -6841,16 +6841,16 @@ const Cc = {
|
|
|
6841
6841
|
var R, S, F, N;
|
|
6842
6842
|
if (i < 2) {
|
|
6843
6843
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6844
|
-
const B =
|
|
6845
|
-
dir: ((R = v[
|
|
6846
|
-
spd: v[
|
|
6844
|
+
const B = W.point([P, C], {
|
|
6845
|
+
dir: ((R = v[C].val) == null ? void 0 : R[z]) || ((S = v[C].dir) == null ? void 0 : S[z]),
|
|
6846
|
+
spd: v[C].spd[z]
|
|
6847
6847
|
});
|
|
6848
6848
|
k.push(B);
|
|
6849
6849
|
}
|
|
6850
6850
|
} else if (P >= p && P <= u && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6851
|
-
const B =
|
|
6852
|
-
dir: ((F = v[
|
|
6853
|
-
spd: v[
|
|
6851
|
+
const B = W.point([P, C], {
|
|
6852
|
+
dir: ((F = v[C].val) == null ? void 0 : F[z]) || ((N = v[C].dir) == null ? void 0 : N[z]),
|
|
6853
|
+
spd: v[C].spd[z]
|
|
6854
6854
|
});
|
|
6855
6855
|
k.push(B);
|
|
6856
6856
|
}
|
|
@@ -6864,12 +6864,12 @@ const Cc = {
|
|
|
6864
6864
|
f = !0;
|
|
6865
6865
|
const v = this.weatherLayers[h].raw;
|
|
6866
6866
|
if (v) {
|
|
6867
|
-
const
|
|
6867
|
+
const C = [];
|
|
6868
6868
|
for (const L in v.Polygon) {
|
|
6869
6869
|
const P = v.Polygon[L];
|
|
6870
6870
|
for (const z of P)
|
|
6871
|
-
|
|
6872
|
-
|
|
6871
|
+
C.push(
|
|
6872
|
+
W.polygon(z, {
|
|
6873
6873
|
val: Number(L)
|
|
6874
6874
|
})
|
|
6875
6875
|
);
|
|
@@ -6877,8 +6877,8 @@ const Cc = {
|
|
|
6877
6877
|
for (const L in v.MultiPolygon) {
|
|
6878
6878
|
const P = v.MultiPolygon[L];
|
|
6879
6879
|
for (const z of P)
|
|
6880
|
-
|
|
6881
|
-
|
|
6880
|
+
C.push(
|
|
6881
|
+
W.multiPolygon(z, {
|
|
6882
6882
|
val: Number(L)
|
|
6883
6883
|
})
|
|
6884
6884
|
);
|
|
@@ -6886,13 +6886,13 @@ const Cc = {
|
|
|
6886
6886
|
for (const L in v.Point) {
|
|
6887
6887
|
const P = v.Point[L];
|
|
6888
6888
|
for (let z = 0; z < ((m = P.lng) == null ? void 0 : m.length); z++)
|
|
6889
|
-
|
|
6890
|
-
|
|
6889
|
+
C.push(
|
|
6890
|
+
W.point([P.lng[z], L], {
|
|
6891
6891
|
val: Number(P.val[z])
|
|
6892
6892
|
})
|
|
6893
6893
|
);
|
|
6894
6894
|
}
|
|
6895
|
-
k = k.concat(
|
|
6895
|
+
k = k.concat(C);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6903,31 +6903,31 @@ const Cc = {
|
|
|
6903
6903
|
f = !0;
|
|
6904
6904
|
const v = this.weatherLayers[h].raw;
|
|
6905
6905
|
if (v) {
|
|
6906
|
-
const
|
|
6906
|
+
const C = [];
|
|
6907
6907
|
for (const L in v.LineString) {
|
|
6908
6908
|
const P = v.LineString[L];
|
|
6909
6909
|
for (const z of P)
|
|
6910
|
-
|
|
6911
|
-
|
|
6910
|
+
C.push(
|
|
6911
|
+
W.lineString(z, {
|
|
6912
6912
|
val: Number(L)
|
|
6913
6913
|
})
|
|
6914
6914
|
);
|
|
6915
6915
|
}
|
|
6916
6916
|
for (const L in v.Point)
|
|
6917
6917
|
v.Point[L].lng.forEach((P, z) => {
|
|
6918
|
-
P = X.convertToStdLng(P),
|
|
6919
|
-
|
|
6918
|
+
P = X.convertToStdLng(P), C.push(
|
|
6919
|
+
W.point([P, L], {
|
|
6920
6920
|
val: v.Point[L].val[z],
|
|
6921
6921
|
type: v.Point[L].type[z]
|
|
6922
6922
|
})
|
|
6923
6923
|
);
|
|
6924
6924
|
});
|
|
6925
|
-
k = k.concat(
|
|
6925
|
+
k = k.concat(C);
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6929
6929
|
}
|
|
6930
|
-
k.length && (this.weatherLayers[h].data =
|
|
6930
|
+
k.length && (this.weatherLayers[h].data = W.featureCollection(k)), f && (this.weatherLayers[h].version = Math.random() + 1);
|
|
6931
6931
|
}
|
|
6932
6932
|
}
|
|
6933
6933
|
}
|
|
@@ -6942,10 +6942,10 @@ const Cc = {
|
|
|
6942
6942
|
return t.features.forEach((r) => {
|
|
6943
6943
|
if (r.geometry.type !== "Point")
|
|
6944
6944
|
if (i > a) {
|
|
6945
|
-
let l = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
6946
|
-
c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c =
|
|
6945
|
+
let l = [i, e._sw.lat, 180, e._ne.lat], c = W.bboxClip(r, l);
|
|
6946
|
+
c.geometry.coordinates.length && o.push(c), l = [-180, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l), c.geometry.coordinates.length && o.push(c);
|
|
6947
6947
|
} else {
|
|
6948
|
-
const l = [i, e._sw.lat, a, e._ne.lat], c =
|
|
6948
|
+
const l = [i, e._sw.lat, a, e._ne.lat], c = W.bboxClip(r, l);
|
|
6949
6949
|
c.geometry.coordinates.length && o.push(c);
|
|
6950
6950
|
}
|
|
6951
6951
|
else
|
|
@@ -6965,16 +6965,16 @@ const Cc = {
|
|
|
6965
6965
|
}, Fc = { class: "text-caption" }, jc = { class: "d-flex justify-start align-center ga-3" }, Bc = { class: "text-h5 font-weight-medium" }, Nc = {
|
|
6966
6966
|
key: 0,
|
|
6967
6967
|
class: "w-100 d-flex justify-space-between align-center ga-1 mb-2 px-3"
|
|
6968
|
-
},
|
|
6968
|
+
}, Wc = {
|
|
6969
6969
|
key: 0,
|
|
6970
6970
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
6971
|
-
},
|
|
6971
|
+
}, Zc = {
|
|
6972
6972
|
key: 1,
|
|
6973
6973
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
6974
6974
|
}, Vc = { class: "text-body-1 py-2" }, Xc = { class: "text-body-1 font-weight-medium" }, Oc = { class: "text-body-2 text-label" }, Yc = { class: "text-body-2 text-label" }, Hc = { class: "text-body-2 text-label mb-3" }, Uc = { class: "text-body-1 font-weight-medium" }, Jc = { class: "text-body-2 text-label" }, Kc = { class: "text-body-2 text-label" }, Qc = { class: "text-body-2 text-label mb-3" }, qc = { class: "text-body-1 py-2" }, $c = { class: "text-body-1 font-weight-medium" }, em = { class: "text-body-2 text-label" }, tm = { class: "text-body-2 text-label" }, om = { class: "text-body-2 text-label mb-3" }, am = { class: "text-body-1 font-weight-medium" }, im = { class: "text-body-2 text-label" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label mb-3" }, nm = { class: "text-body-1 py-2" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" };
|
|
6975
6975
|
function hm(t, e, o, i, a, r) {
|
|
6976
6976
|
var J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te;
|
|
6977
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VCol"), d = M("VRow"), m = M("VCardText"), p = M("VDivider"), u = M("VCard"), b = M("VSwitch"), g = M("VBtnToggle"), h = M("VCardTitle"), f = M("VCardItem"), k = M("VCheckbox"), v = M("VRadio"),
|
|
6977
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VCol"), d = M("VRow"), m = M("VCardText"), p = M("VDivider"), u = M("VCard"), b = M("VSwitch"), g = M("VBtnToggle"), h = M("VCardTitle"), f = M("VCardItem"), k = M("VCheckbox"), v = M("VRadio"), C = M("IdmWindBarb"), L = M("IdmSigWaveHeight"), P = M("IdmCurrentDirection"), z = M("IdmPrmsl"), R = M("IdmWindParticle"), S = M("IdmCurrentParticle"), F = M("IdmWave"), N = M("IdmSwell"), B = M("IdmIceEdge"), Q = M("IdmIceCover"), q = M("IdmIceThickness"), oe = M("IdmPrecip3h"), ge = M("IdmVisibility"), he = M("IdmWaterTemp"), E = M("IdmTemp");
|
|
6978
6978
|
return A(), I("div", Mc, [
|
|
6979
6979
|
n("div", {
|
|
6980
6980
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7199,7 +7199,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7199
7199
|
"base-color": ""
|
|
7200
7200
|
}, {
|
|
7201
7201
|
default: x(() => e[15] || (e[15] = [
|
|
7202
|
-
|
|
7202
|
+
Z(" NOAA ", -1)
|
|
7203
7203
|
])),
|
|
7204
7204
|
_: 1,
|
|
7205
7205
|
__: [15]
|
|
@@ -7213,7 +7213,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7213
7213
|
value: "ECMWF"
|
|
7214
7214
|
}, {
|
|
7215
7215
|
default: x(() => e[16] || (e[16] = [
|
|
7216
|
-
|
|
7216
|
+
Z(" ECMWF ", -1)
|
|
7217
7217
|
])),
|
|
7218
7218
|
_: 1,
|
|
7219
7219
|
__: [16]
|
|
@@ -7234,7 +7234,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7234
7234
|
default: x(() => [
|
|
7235
7235
|
w(h, { class: "text-h6" }, {
|
|
7236
7236
|
default: x(() => [
|
|
7237
|
-
|
|
7237
|
+
Z(y(t.$t("weather.overlays")), 1)
|
|
7238
7238
|
]),
|
|
7239
7239
|
_: 1
|
|
7240
7240
|
})
|
|
@@ -7271,7 +7271,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7271
7271
|
default: x(() => [
|
|
7272
7272
|
w(h, { class: "text-h6" }, {
|
|
7273
7273
|
default: x(() => [
|
|
7274
|
-
|
|
7274
|
+
Z(y(t.$t("weather.renders")), 1)
|
|
7275
7275
|
]),
|
|
7276
7276
|
_: 1
|
|
7277
7277
|
})
|
|
@@ -7296,7 +7296,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7296
7296
|
"hide-details": "",
|
|
7297
7297
|
onClick: (me) => a.renderKey = a.renderKey === $.key ? "" : $.key
|
|
7298
7298
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
7299
|
-
a.renderKey === "wind-particle" && $.key === "wind-particle" ? (A(), I("div",
|
|
7299
|
+
a.renderKey === "wind-particle" && $.key === "wind-particle" ? (A(), I("div", Wc, [
|
|
7300
7300
|
n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
7301
7301
|
w(b, {
|
|
7302
7302
|
modelValue: a.showWindParticle,
|
|
@@ -7311,7 +7311,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7311
7311
|
"hide-details": ""
|
|
7312
7312
|
}, null, 8, ["modelValue"])
|
|
7313
7313
|
])) : G("", !0),
|
|
7314
|
-
a.renderKey === "current-particle" && $.key === "current-particle" ? (A(), I("div",
|
|
7314
|
+
a.renderKey === "current-particle" && $.key === "current-particle" ? (A(), I("div", Zc, [
|
|
7315
7315
|
n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
|
|
7316
7316
|
w(b, {
|
|
7317
7317
|
modelValue: a.showCurrentParticle,
|
|
@@ -7349,7 +7349,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7349
7349
|
disabled: !a.autoActive
|
|
7350
7350
|
}, {
|
|
7351
7351
|
default: x(() => [
|
|
7352
|
-
|
|
7352
|
+
Z(y(t.$t("weather.significant")), 1)
|
|
7353
7353
|
]),
|
|
7354
7354
|
_: 1
|
|
7355
7355
|
}, 8, ["color", "disabled"]),
|
|
@@ -7363,7 +7363,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7363
7363
|
value: "swell"
|
|
7364
7364
|
}, {
|
|
7365
7365
|
default: x(() => [
|
|
7366
|
-
|
|
7366
|
+
Z(y(t.$t("weather.swell")), 1)
|
|
7367
7367
|
]),
|
|
7368
7368
|
_: 1
|
|
7369
7369
|
}, 8, ["color", "disabled"])
|
|
@@ -7393,7 +7393,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7393
7393
|
disabled: !a.autoActive
|
|
7394
7394
|
}, {
|
|
7395
7395
|
default: x(() => [
|
|
7396
|
-
|
|
7396
|
+
Z(y(t.$t("weather.coverage")), 1)
|
|
7397
7397
|
]),
|
|
7398
7398
|
_: 1
|
|
7399
7399
|
}, 8, ["color", "disabled"]),
|
|
@@ -7407,7 +7407,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7407
7407
|
value: "ice-thickness"
|
|
7408
7408
|
}, {
|
|
7409
7409
|
default: x(() => [
|
|
7410
|
-
|
|
7410
|
+
Z(y(t.$t("weather.thickness")), 1)
|
|
7411
7411
|
]),
|
|
7412
7412
|
_: 1
|
|
7413
7413
|
}, 8, ["color", "disabled"])
|
|
@@ -7430,7 +7430,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7430
7430
|
default: x(() => [
|
|
7431
7431
|
w(h, { class: "text-h6" }, {
|
|
7432
7432
|
default: x(() => [
|
|
7433
|
-
|
|
7433
|
+
Z(y(t.$t("weather.forecastModel")), 1)
|
|
7434
7434
|
]),
|
|
7435
7435
|
_: 1
|
|
7436
7436
|
})
|
|
@@ -7439,32 +7439,32 @@ function hm(t, e, o, i, a, r) {
|
|
|
7439
7439
|
}),
|
|
7440
7440
|
w(m, { class: "" }, {
|
|
7441
7441
|
default: x(() => {
|
|
7442
|
-
var $, me, Ye, Be,
|
|
7442
|
+
var $, me, Ye, Be, _e, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, Ct, _t, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, Co, _o, Mo, Po, So, To, Ro, Io, Do, Eo, Go;
|
|
7443
7443
|
return [
|
|
7444
7444
|
n("div", Vc, y(t.$t("weather.atmospheric")), 1),
|
|
7445
|
-
n("div", Xc, y((Ye = (me = ($ = a.models) == null ? void 0 : $.weather) == null ? void 0 : me.NOAA) == null ? void 0 : Ye.source) + " " + y((De = (
|
|
7445
|
+
n("div", Xc, y((Ye = (me = ($ = a.models) == null ? void 0 : $.weather) == null ? void 0 : me.NOAA) == null ? void 0 : Ye.source) + " " + y((De = (_e = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : De.spatialResolution) + y(t.$t("units.km")) + " " + y((xe = (pe = (Me = (re = a.models) == null ? void 0 : re.weather) == null ? void 0 : Me.NOAA) == null ? void 0 : pe.meta) == null ? void 0 : xe.days) + y(t.$t("units.days")), 1),
|
|
7446
7446
|
n("div", Oc, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7447
|
-
n("div", Yc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((H = (He = (Ue = (
|
|
7448
|
-
n("div", Hc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ve = (
|
|
7447
|
+
n("div", Yc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((H = (He = (Ue = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : He.meta) == null ? void 0 : H.availabilityTime)), 1),
|
|
7448
|
+
n("div", Hc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ve = (Ze = (Ee = (ve = a.models) == null ? void 0 : ve.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : Ze.meta) == null ? void 0 : Ve.initialisationTime)), 1),
|
|
7449
7449
|
n("div", Uc, y((ne = (Ne = (te = a.models) == null ? void 0 : te.weather) == null ? void 0 : Ne.ECMWF) == null ? void 0 : ne.source) + " " + y((it = (at = (ot = a.models) == null ? void 0 : ot.weather) == null ? void 0 : at.ECMWF) == null ? void 0 : it.spatialResolution) + y(t.$t("units.km")) + " " + y((ht = (dt = (mt = (Fe = a.models) == null ? void 0 : Fe.weather) == null ? void 0 : mt.ECMWF) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + y(t.$t("units.days")), 1),
|
|
7450
7450
|
n("div", Jc, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7451
7451
|
n("div", Kc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.weather) == null ? void 0 : ut.ECMWF) == null ? void 0 : gt.meta) == null ? void 0 : ft.availabilityTime)), 1),
|
|
7452
7452
|
n("div", Qc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.weather) == null ? void 0 : bt.ECMWF) == null ? void 0 : wt.meta) == null ? void 0 : xt.initialisationTime)), 1),
|
|
7453
7453
|
w(p),
|
|
7454
7454
|
n("div", qc, y(t.$t("weather.wave")), 1),
|
|
7455
|
-
n("div", $c, y((Lt = (kt = (At = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : At.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : Lt.source) + " " + y((Mt = (
|
|
7455
|
+
n("div", $c, y((Lt = (kt = (At = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : At.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : Lt.source) + " " + y((Mt = (_t = (Ct = (zt = a.models) == null ? void 0 : zt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : _t.NOAA) == null ? void 0 : Mt.spatialResolution) + y(t.$t("units.km")) + " " + y((It = (Rt = (Tt = (St = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : St.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : Rt.meta) == null ? void 0 : It.days) + y(t.$t("units.days")), 1),
|
|
7456
7456
|
n("div", em, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7457
7457
|
n("div", tm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((jt = (Ft = (Gt = (Et = (Dt = a.models) == null ? void 0 : Dt.marine) == null ? void 0 : Et.wave) == null ? void 0 : Gt.NOAA) == null ? void 0 : Ft.meta) == null ? void 0 : jt.availabilityTime)), 1),
|
|
7458
|
-
n("div", om, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Vt = (
|
|
7458
|
+
n("div", om, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Vt = (Zt = (Wt = (Nt = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Nt.wave) == null ? void 0 : Wt.NOAA) == null ? void 0 : Zt.meta) == null ? void 0 : Vt.initialisationTime)), 1),
|
|
7459
7459
|
n("div", am, y((Ht = (Yt = (Ot = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Ot.wave) == null ? void 0 : Yt.ECMWF) == null ? void 0 : Ht.source) + " " + y((Qt = (Kt = (Jt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Jt.wave) == null ? void 0 : Kt.ECMWF) == null ? void 0 : Qt.spatialResolution) + y(t.$t("units.km")) + " " + y((oo = (to = (eo = ($t = (qt = a.models) == null ? void 0 : qt.marine) == null ? void 0 : $t.wave) == null ? void 0 : eo.ECMWF) == null ? void 0 : to.meta) == null ? void 0 : oo.days) + y(t.$t("units.days")), 1),
|
|
7460
7460
|
n("div", im, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7461
7461
|
n("div", rm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((no = (lo = (ro = (io = (ao = a.models) == null ? void 0 : ao.marine) == null ? void 0 : io.wave) == null ? void 0 : ro.ECMWF) == null ? void 0 : lo.meta) == null ? void 0 : no.availabilityTime)), 1),
|
|
7462
7462
|
n("div", lm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((po = (ho = (mo = (co = (so = a.models) == null ? void 0 : so.marine) == null ? void 0 : co.wave) == null ? void 0 : mo.ECMWF) == null ? void 0 : ho.meta) == null ? void 0 : po.initialisationTime)), 1),
|
|
7463
7463
|
w(p),
|
|
7464
7464
|
n("div", nm, y(t.$t("weather.currents")), 1),
|
|
7465
|
-
n("div", sm, y((yo = (fo = (go = (uo = a.models) == null ? void 0 : uo.marine) == null ? void 0 : go.current) == null ? void 0 : fo.ECMWF) == null ? void 0 : yo.source) + " " + y((vo = (xo = (wo = (bo = a.models) == null ? void 0 : bo.marine) == null ? void 0 : wo.current) == null ? void 0 : xo.ECMWF) == null ? void 0 : vo.spatialResolution) + y(t.$t("units.km")) + " " + y((
|
|
7465
|
+
n("div", sm, y((yo = (fo = (go = (uo = a.models) == null ? void 0 : uo.marine) == null ? void 0 : go.current) == null ? void 0 : fo.ECMWF) == null ? void 0 : yo.source) + " " + y((vo = (xo = (wo = (bo = a.models) == null ? void 0 : bo.marine) == null ? void 0 : wo.current) == null ? void 0 : xo.ECMWF) == null ? void 0 : vo.spatialResolution) + y(t.$t("units.km")) + " " + y((Co = (zo = (Lo = (ko = (Ao = a.models) == null ? void 0 : Ao.marine) == null ? void 0 : ko.current) == null ? void 0 : Lo.ECMWF) == null ? void 0 : zo.meta) == null ? void 0 : Co.days) + y(t.$t("units.days")), 1),
|
|
7466
7466
|
n("div", cm, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7467
|
-
n("div", mm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((To = (So = (Po = (Mo = (
|
|
7467
|
+
n("div", mm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((To = (So = (Po = (Mo = (_o = a.models) == null ? void 0 : _o.marine) == null ? void 0 : Mo.current) == null ? void 0 : Po.ECMWF) == null ? void 0 : So.meta) == null ? void 0 : To.availabilityTime)), 1),
|
|
7468
7468
|
n("div", dm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Go = (Eo = (Do = (Io = (Ro = a.models) == null ? void 0 : Ro.marine) == null ? void 0 : Io.current) == null ? void 0 : Do.ECMWF) == null ? void 0 : Eo.meta) == null ? void 0 : Go.initialisationTime)), 1)
|
|
7469
7469
|
];
|
|
7470
7470
|
}),
|
|
@@ -7475,7 +7475,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7475
7475
|
})
|
|
7476
7476
|
], 2)
|
|
7477
7477
|
], 6),
|
|
7478
|
-
o.map ? (A(), j(
|
|
7478
|
+
o.map ? (A(), j(C, U({
|
|
7479
7479
|
key: 1,
|
|
7480
7480
|
ref: "windBarb",
|
|
7481
7481
|
map: o.map,
|
|
@@ -7589,7 +7589,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7589
7589
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0)
|
|
7590
7590
|
]);
|
|
7591
7591
|
}
|
|
7592
|
-
const pm = /* @__PURE__ */ ie(
|
|
7592
|
+
const pm = /* @__PURE__ */ ie(_c, [["render", hm]]), Fo = [
|
|
7593
7593
|
{
|
|
7594
7594
|
rank: 0,
|
|
7595
7595
|
name: "Best Match",
|
|
@@ -7936,17 +7936,17 @@ let wi = class {
|
|
|
7936
7936
|
}), a;
|
|
7937
7937
|
}
|
|
7938
7938
|
static pickHourly(e, o) {
|
|
7939
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
7940
|
-
const re = typeof o == "string" ? T(o) : o, Me = e == null ? void 0 : e.weather, pe = e == null ? void 0 : e.marine, xe = T((a = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(),
|
|
7941
|
-
if (re.isBetween(
|
|
7942
|
-
const H = re.utc().diff(
|
|
7939
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, _e, De;
|
|
7940
|
+
const re = typeof o == "string" ? T(o) : o, Me = e == null ? void 0 : e.weather, pe = e == null ? void 0 : e.marine, xe = T((a = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), We = xe.clone().add((c = (l = (r = Me == null ? void 0 : Me[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = xe.clone().add((m = (d = (s = Me == null ? void 0 : Me[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), He = [];
|
|
7941
|
+
if (re.isBetween(We, Ue, "millisecond", "[]")) {
|
|
7942
|
+
const H = re.utc().diff(We, "h", !1);
|
|
7943
7943
|
let ve, Ee;
|
|
7944
7944
|
if (Me) {
|
|
7945
|
-
let
|
|
7945
|
+
let Ze = 0, Ve = 0, te = 0;
|
|
7946
7946
|
for (const Ne of Me) {
|
|
7947
7947
|
const ne = Ne == null ? void 0 : Ne.hourly;
|
|
7948
7948
|
for (let Fe = H - (H - 1) % 3; Fe <= H; Fe++)
|
|
7949
|
-
|
|
7949
|
+
Ze += (p = ne == null ? void 0 : ne.precipitation) == null ? void 0 : p.at(Fe);
|
|
7950
7950
|
for (let Fe = H - (H - 1) % 6; Fe <= H; Fe++)
|
|
7951
7951
|
Ve += (u = ne == null ? void 0 : ne.precipitation) == null ? void 0 : u.at(Fe);
|
|
7952
7952
|
for (let Fe = H - (H - 1) % 12; Fe <= H; Fe++)
|
|
@@ -7958,9 +7958,9 @@ let wi = class {
|
|
|
7958
7958
|
dp: (k = ne == null ? void 0 : ne.dew_point_2m) == null ? void 0 : k.at(H),
|
|
7959
7959
|
precip: {
|
|
7960
7960
|
probability: (v = ne == null ? void 0 : ne.precipitation_probability) == null ? void 0 : v.at(H),
|
|
7961
|
-
sum: (
|
|
7961
|
+
sum: (C = ne == null ? void 0 : ne.precipitation) == null ? void 0 : C.at(H),
|
|
7962
7962
|
sum1Hours: (L = ne == null ? void 0 : ne.precipitation) == null ? void 0 : L.at(H),
|
|
7963
|
-
sum3Hours: Math.round(
|
|
7963
|
+
sum3Hours: Math.round(Ze * 100) / 100,
|
|
7964
7964
|
sum6Hours: Math.round(Ve * 100) / 100,
|
|
7965
7965
|
sum12Hours: Math.round(te * 100) / 100
|
|
7966
7966
|
},
|
|
@@ -7979,14 +7979,14 @@ let wi = class {
|
|
|
7979
7979
|
};
|
|
7980
7980
|
const { name: ot, url: at, bg: it } = this.parseWeatherCode(ve.code, ve.isDay);
|
|
7981
7981
|
ve.name = ot, ve.url = at, ve.bg = it, ve.wind.scale = this.beaufort(this.kts2ms(ve.wind.kts)), ve.wind.direction = this.degree2Direction(ve.wind.degree), He.push({
|
|
7982
|
-
utc:
|
|
7982
|
+
utc: We.add(H, "h").format(),
|
|
7983
7983
|
model: Ne.model,
|
|
7984
7984
|
weather: { ...ve }
|
|
7985
7985
|
});
|
|
7986
7986
|
}
|
|
7987
7987
|
}
|
|
7988
7988
|
if (pe) {
|
|
7989
|
-
let
|
|
7989
|
+
let Ze = 0;
|
|
7990
7990
|
for (const Ve of pe) {
|
|
7991
7991
|
const te = Ve == null ? void 0 : Ve.hourly;
|
|
7992
7992
|
Ee = {
|
|
@@ -8018,9 +8018,9 @@ let wi = class {
|
|
|
8018
8018
|
degree: (Ye = te == null ? void 0 : te.ocean_current_direction) == null ? void 0 : Ye.at(H),
|
|
8019
8019
|
bearing: ((Be = te == null ? void 0 : te.ocean_current_direction) == null ? void 0 : Be.at(H)) ?? null
|
|
8020
8020
|
},
|
|
8021
|
-
sst: (
|
|
8021
|
+
sst: (_e = te == null ? void 0 : te.sea_surface_temperature) == null ? void 0 : _e.at(H),
|
|
8022
8022
|
height: (De = te == null ? void 0 : te.sea_level_height_msl) == null ? void 0 : De.at(H)
|
|
8023
|
-
}, Ee.wave = this.parseWave(Ee.wave, ve == null ? void 0 : ve.wind), Ee.current.direction = this.degree2Direction(Ee.current.degree), Object.assign(He[
|
|
8023
|
+
}, Ee.wave = this.parseWave(Ee.wave, ve == null ? void 0 : ve.wind), Ee.current.direction = this.degree2Direction(Ee.current.degree), Object.assign(He[Ze], Ee), Ze++;
|
|
8024
8024
|
}
|
|
8025
8025
|
}
|
|
8026
8026
|
}
|
|
@@ -8049,15 +8049,15 @@ let wi = class {
|
|
|
8049
8049
|
};
|
|
8050
8050
|
}
|
|
8051
8051
|
static pickDaily(e, o) {
|
|
8052
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
8052
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be;
|
|
8053
8053
|
const ke = typeof o == "string" ? T(o) : o, Te = e == null ? void 0 : e.weather, $ = e == null ? void 0 : e.marine, me = T((r = (a = (i = Te == null ? void 0 : Te[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ye = T((s = (c = (l = Te == null ? void 0 : Te[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Be = [];
|
|
8054
8054
|
if (ke.isBetween(me, Ye, "millisecond", "[]")) {
|
|
8055
|
-
let
|
|
8055
|
+
let _e, De;
|
|
8056
8056
|
const re = ke.diff(me, "d", !1);
|
|
8057
8057
|
if (Te)
|
|
8058
8058
|
for (const Me of Te) {
|
|
8059
8059
|
const pe = Me.daily;
|
|
8060
|
-
|
|
8060
|
+
_e = {
|
|
8061
8061
|
code: (d = pe.weather_code) == null ? void 0 : d.at(re),
|
|
8062
8062
|
temp: {
|
|
8063
8063
|
max: (m = pe.temperature_2m_max) == null ? void 0 : m.at(re),
|
|
@@ -8073,7 +8073,7 @@ let wi = class {
|
|
|
8073
8073
|
rainSum: (f = pe.rain_sum) == null ? void 0 : f.at(re),
|
|
8074
8074
|
snowfallSum: (k = pe.snowfall_sum) == null ? void 0 : k.at(re),
|
|
8075
8075
|
showersSum: (v = pe.showers_sum) == null ? void 0 : v.at(re),
|
|
8076
|
-
hours: (
|
|
8076
|
+
hours: (C = pe.precipitation_hours) == null ? void 0 : C.at(re),
|
|
8077
8077
|
probability: (L = pe.precipitation_probability_max) == null ? void 0 : L.at(re)
|
|
8078
8078
|
},
|
|
8079
8079
|
rh: {
|
|
@@ -8089,11 +8089,11 @@ let wi = class {
|
|
|
8089
8089
|
bearing: ((Q = pe.wind_direction_10m_dominant) == null ? void 0 : Q.at(re)) !== null ? (((q = pe.wind_direction_10m_dominant) == null ? void 0 : q.at(re)) + 180) % 360 : null
|
|
8090
8090
|
}
|
|
8091
8091
|
};
|
|
8092
|
-
const { name: xe, url:
|
|
8093
|
-
|
|
8092
|
+
const { name: xe, url: We, bg: Ue } = this.parseWeatherCode(_e.code, !0);
|
|
8093
|
+
_e.name = xe, _e.url = We, _e.bg = Ue, _e.wind.scale = this.beaufort(this.kts2ms(_e.wind.kts)), _e.wind.direction = this.degree2Direction(_e.wind.degree), Be.push({
|
|
8094
8094
|
utc: me.add(re, "d").utc().format(),
|
|
8095
8095
|
model: Me.model,
|
|
8096
|
-
weather: { ...
|
|
8096
|
+
weather: { ..._e }
|
|
8097
8097
|
});
|
|
8098
8098
|
}
|
|
8099
8099
|
if ($) {
|
|
@@ -8124,7 +8124,7 @@ let wi = class {
|
|
|
8124
8124
|
bearing: ((ce = xe.wind_wave_direction_dominant) == null ? void 0 : ce.at(re)) !== null ? (((be = xe.wind_wave_direction_dominant) == null ? void 0 : be.at(re)) + 180) % 360 : null
|
|
8125
8125
|
}
|
|
8126
8126
|
}
|
|
8127
|
-
}, De.wave = this.parseWave(De.wave,
|
|
8127
|
+
}, De.wave = this.parseWave(De.wave, _e == null ? void 0 : _e.wind), Object.assign(Be[Me], De), Me++;
|
|
8128
8128
|
}
|
|
8129
8129
|
}
|
|
8130
8130
|
}
|
|
@@ -8612,7 +8612,7 @@ const um = {
|
|
|
8612
8612
|
showTropicalsInfo: !1,
|
|
8613
8613
|
activeTropicals: void 0,
|
|
8614
8614
|
activeTropicalsMarker: void 0,
|
|
8615
|
-
empty:
|
|
8615
|
+
empty: W.featureCollection([]),
|
|
8616
8616
|
showLegend: !1,
|
|
8617
8617
|
showHoverPoint: !1,
|
|
8618
8618
|
hoverPoint: void 0,
|
|
@@ -8762,7 +8762,7 @@ const um = {
|
|
|
8762
8762
|
handleRefresh() {
|
|
8763
8763
|
var e, o;
|
|
8764
8764
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
8765
|
-
var r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
8765
|
+
var r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R;
|
|
8766
8766
|
let a = "";
|
|
8767
8767
|
switch (!0) {
|
|
8768
8768
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
@@ -8787,7 +8787,7 @@ const um = {
|
|
|
8787
8787
|
a = "superTy";
|
|
8788
8788
|
break;
|
|
8789
8789
|
}
|
|
8790
|
-
i.properties.levelI18n = a, ((k = i.geometry) == null ? void 0 : k.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (L = (
|
|
8790
|
+
i.properties.levelI18n = a, ((k = i.geometry) == null ? void 0 : k.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (L = (C = T(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((R = (z = i.properties.name) == null ? void 0 : z.trim()) == null ? void 0 : R.replace(/^./, (S) => S.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
8791
8791
|
}), this.handleInit();
|
|
8792
8792
|
},
|
|
8793
8793
|
handleInit() {
|
|
@@ -9039,9 +9039,9 @@ const um = {
|
|
|
9039
9039
|
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();
|
|
9040
9040
|
},
|
|
9041
9041
|
handleDateChange() {
|
|
9042
|
-
var t, e, o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
9042
|
+
var t, e, o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J;
|
|
9043
9043
|
if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9044
|
-
const K = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((D) => D.properties.date === (K == null ? void 0 : K.format()) && !D.properties.disabled), Y = this.handleComputePolygons(ae), O =
|
|
9044
|
+
const K = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((D) => D.properties.date === (K == null ? void 0 : K.format()) && !D.properties.disabled), Y = this.handleComputePolygons(ae), O = W.featureCollection([...ae]);
|
|
9045
9045
|
Y.forEach((D) => {
|
|
9046
9046
|
O.features.push(D);
|
|
9047
9047
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(O) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -9083,7 +9083,7 @@ const um = {
|
|
|
9083
9083
|
D.properties.nameCn = ce, D.properties.Name = ((m = (d = D.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (be) => be.toUpperCase())) || D.properties.nameCn, ee.push(D);
|
|
9084
9084
|
}
|
|
9085
9085
|
let le = this.Theme.current.value.colors["tropicals-ty"];
|
|
9086
|
-
((u = (p = D.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = D.properties) == null ? void 0 : b.wind) != null && g.kts) ? le = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((v = (k = D.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 47 ? le = this.Theme.current.value.colors["tropicals-ts"] : ((L = (
|
|
9086
|
+
((u = (p = D.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = D.properties) == null ? void 0 : b.wind) != null && g.kts) ? le = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((v = (k = D.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 47 ? le = this.Theme.current.value.colors["tropicals-ts"] : ((L = (C = D.properties) == null ? void 0 : C.wind) == null ? void 0 : L.kts) >= 47 && ((z = (P = D.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) < 63 ? le = this.Theme.current.value.colors["tropicals-sts"] : ((S = (R = D.properties) == null ? void 0 : R.wind) == null ? void 0 : S.kts) >= 63 && ((N = (F = D.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) < 79 ? le = this.Theme.current.value.colors["tropicals-ty"] : ((Q = (B = D.properties) == null ? void 0 : B.wind) == null ? void 0 : Q.kts) >= 79 && ((oe = (q = D.properties) == null ? void 0 : q.wind) == null ? void 0 : oe.kts) < 94 ? le = this.Theme.current.value.colors["tropicals-sty"] : ((he = (ge = D.properties) == null ? void 0 : ge.wind) == null ? void 0 : he.kts) >= 94 ? le = this.Theme.current.value.colors["tropicals-super-ty"] : le = this.Theme.current.value.colors["tropicals-ty"];
|
|
9087
9087
|
const fe = `<svg t="1719918955501"
|
|
9088
9088
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9089
9089
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9149,7 +9149,7 @@ const um = {
|
|
|
9149
9149
|
d.properties.category === e && (d.properties.disabled = t.disabled);
|
|
9150
9150
|
}), this.interpolateData.forEach((d) => {
|
|
9151
9151
|
d.properties.category === e && (d.properties.disabled = t.disabled);
|
|
9152
|
-
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(
|
|
9152
|
+
}), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(W.featureCollection(o)), (s = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || s.setData(W.featureCollection(o)), this.handleDateChange();
|
|
9153
9153
|
},
|
|
9154
9154
|
handleStrikeProbability(t) {
|
|
9155
9155
|
this.$emit("tropicalProbability", t);
|
|
@@ -9188,22 +9188,22 @@ const um = {
|
|
|
9188
9188
|
let s;
|
|
9189
9189
|
switch (l) {
|
|
9190
9190
|
case "ne":
|
|
9191
|
-
s =
|
|
9191
|
+
s = W.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9192
9192
|
break;
|
|
9193
9193
|
case "se":
|
|
9194
|
-
s =
|
|
9194
|
+
s = W.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9195
9195
|
break;
|
|
9196
9196
|
case "sw":
|
|
9197
|
-
s =
|
|
9197
|
+
s = W.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9198
9198
|
break;
|
|
9199
9199
|
case "nw":
|
|
9200
|
-
s =
|
|
9200
|
+
s = W.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
9201
9201
|
break;
|
|
9202
9202
|
}
|
|
9203
9203
|
i.push(...(r = s == null ? void 0 : s.geometry) == null ? void 0 : r.coordinates);
|
|
9204
9204
|
}
|
|
9205
|
-
const a =
|
|
9206
|
-
return
|
|
9205
|
+
const a = W.lineString(i);
|
|
9206
|
+
return W.lineToPolygon(a, { properties: o });
|
|
9207
9207
|
},
|
|
9208
9208
|
handleNotification(t) {
|
|
9209
9209
|
this.$emit("tropicalNotification", t);
|
|
@@ -9240,17 +9240,17 @@ const um = {
|
|
|
9240
9240
|
}, gm = { class: "idm-tropical-gl4" }, fm = { class: "pb-1" }, ym = { class: "text-h5 font-weight-600" }, bm = {
|
|
9241
9241
|
key: 0,
|
|
9242
9242
|
class: "text-h5 font-weight-600"
|
|
9243
|
-
}, wm = { class: "text-body-1" }, xm = { class: "text-label" }, vm = { class: "d-flex justify-space-between align-center" }, Am = { class: "w-60" }, km = { class: "text-label pr-1" }, Lm = { class: "flex-1-1-0" }, zm = { class: "text-label pr-1" },
|
|
9243
|
+
}, wm = { class: "text-body-1" }, xm = { class: "text-label" }, vm = { class: "d-flex justify-space-between align-center" }, Am = { class: "w-60" }, km = { class: "text-label pr-1" }, Lm = { class: "flex-1-1-0" }, zm = { class: "text-label pr-1" }, Cm = { class: "py-2 d-flex justify-space-between align-center" }, _m = { class: "w-60" }, Mm = { class: "text-label pr-1" }, Pm = { class: "flex-1-1-0" }, Sm = { class: "text-label pr-1" }, Tm = { class: "d-flex align-center flex-1-1-100 justify-space-between mt-n1" }, Rm = {
|
|
9244
9244
|
class: "text-label pr-1",
|
|
9245
9245
|
style: { width: "70px" }
|
|
9246
9246
|
}, Im = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Dm = { class: "more" }, Em = {
|
|
9247
9247
|
key: 0,
|
|
9248
9248
|
class: "w-100 d-flex justify-space-between align-center px-2"
|
|
9249
|
-
}, Gm = { class: "pa-1" }, Fm = { class: "legend d-flex justify-start align-center py-2" }, jm = { class: "label" }, Bm = { class: "legend d-flex justify-start align-center py-2" }, Nm = { class: "label" },
|
|
9249
|
+
}, Gm = { class: "pa-1" }, Fm = { class: "legend d-flex justify-start align-center py-2" }, jm = { class: "label" }, Bm = { class: "legend d-flex justify-start align-center py-2" }, Nm = { class: "label" }, Wm = { class: "legend d-flex justify-start align-center py-2" }, Zm = { class: "label" }, Vm = { class: "pa-1" }, Xm = { class: "legend d-flex justify-start align-center py-2" }, Om = { class: "label" }, Ym = { class: "legend d-flex justify-start align-center py-2" }, Hm = { class: "label" }, Um = { class: "legend d-flex justify-start align-center py-2" }, Jm = { class: "label" }, Km = { class: "pa-1" }, Qm = { class: "w-100 legend d-flex justify-start align-center py-2 ga-2" }, qm = { class: "label" }, $m = { class: "label" }, ed = { class: "w-100 legend d-flex justify-start align-center py-2" }, td = { class: "label" }, od = { class: "w-100 legend d-flex justify-start align-center py-2" }, ad = { class: "label" }, id = {
|
|
9250
9250
|
key: 1,
|
|
9251
9251
|
class: "my-3 w-100",
|
|
9252
9252
|
style: { height: "80px" }
|
|
9253
|
-
}, rd = { class: "legend d-flex justify-start align-center" }, ld = { class: "label" }, nd = { class: "legend d-flex justify-start align-center" }, sd = { class: "label" }, cd = { class: "legend d-flex justify-start align-center" }, md = { class: "label" }, dd = { class: "legend d-flex justify-start align-center" }, hd = { class: "label" }, pd = { class: "legend d-flex justify-start align-center" }, ud = { class: "label" }, gd = { class: "legend d-flex justify-start align-center" }, fd = { class: "label" }, yd = { class: "legend d-flex justify-start align-center" }, bd = { class: "label" }, wd = { class: "legend d-flex justify-start align-center" }, xd = { class: "label" }, vd = { class: "legend d-flex justify-start align-center" }, Ad = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, zd = { class: "d-flex justify-star align-center" },
|
|
9253
|
+
}, rd = { class: "legend d-flex justify-start align-center" }, ld = { class: "label" }, nd = { class: "legend d-flex justify-start align-center" }, sd = { class: "label" }, cd = { class: "legend d-flex justify-start align-center" }, md = { class: "label" }, dd = { class: "legend d-flex justify-start align-center" }, hd = { class: "label" }, pd = { class: "legend d-flex justify-start align-center" }, ud = { class: "label" }, gd = { class: "legend d-flex justify-start align-center" }, fd = { class: "label" }, yd = { class: "legend d-flex justify-start align-center" }, bd = { class: "label" }, wd = { class: "legend d-flex justify-start align-center" }, xd = { class: "label" }, vd = { class: "legend d-flex justify-start align-center" }, Ad = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, zd = { class: "d-flex justify-star align-center" }, Cd = { class: "font-weight-600 mr-1" }, _d = { class: "" }, Md = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Pd = {
|
|
9254
9254
|
key: 0,
|
|
9255
9255
|
class: "d-flex justify-start align-center"
|
|
9256
9256
|
}, Sd = { class: "text-label pr-1" }, Td = {
|
|
@@ -9268,7 +9268,7 @@ const um = {
|
|
|
9268
9268
|
}, jd = { class: "text-label pr-1" }, Bd = {
|
|
9269
9269
|
key: 5,
|
|
9270
9270
|
class: "d-flex justify-start align-center"
|
|
9271
|
-
}, Nd = { class: "text-label pr-1" },
|
|
9271
|
+
}, Nd = { class: "text-label pr-1" }, Wd = { class: "d-flex justify-start align-center" }, Zd = { class: "text-label pr-1" }, Vd = {
|
|
9272
9272
|
key: 6,
|
|
9273
9273
|
class: "d-flex justify-start align-center"
|
|
9274
9274
|
}, Xd = { class: "text-label pr-1" }, Od = {
|
|
@@ -9321,11 +9321,11 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9321
9321
|
default: x(() => [
|
|
9322
9322
|
w(s, null, {
|
|
9323
9323
|
default: x(() => {
|
|
9324
|
-
var b, g, h, f, k, v,
|
|
9324
|
+
var b, g, h, f, k, v, C, L, P, z, R, S;
|
|
9325
9325
|
return [
|
|
9326
9326
|
n("div", fm, [
|
|
9327
9327
|
n("span", ym, y(o.locale === "en" ? (b = a.activeTropicals) == null ? void 0 : b.Name : ((g = a.activeTropicals) == null ? void 0 : g.nameCn) || ((h = a.activeTropicals) == null ? void 0 : h.Name) || "-"), 1),
|
|
9328
|
-
(k = (f = a.activeTropicals) == null ? void 0 : f.history) != null && k.levelI18n ? (A(), I("span", bm, " , " + y(t.$t("tropical." + ((
|
|
9328
|
+
(k = (f = a.activeTropicals) == null ? void 0 : f.history) != null && k.levelI18n ? (A(), I("span", bm, " , " + y(t.$t("tropical." + ((C = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : C.levelI18n))), 1)) : G("", !0)
|
|
9329
9329
|
]),
|
|
9330
9330
|
w(l, {
|
|
9331
9331
|
icon: "",
|
|
@@ -9351,7 +9351,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9351
9351
|
w(d),
|
|
9352
9352
|
w(s, { class: "text-body-1 py-3" }, {
|
|
9353
9353
|
default: x(() => {
|
|
9354
|
-
var b, g, h, f, k, v,
|
|
9354
|
+
var b, g, h, f, k, v, C, L, P;
|
|
9355
9355
|
return [
|
|
9356
9356
|
n("div", vm, [
|
|
9357
9357
|
n("div", Am, [
|
|
@@ -9364,10 +9364,10 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9364
9364
|
n("span", null, y(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.pressure) || "-") + " hPa", 1)
|
|
9365
9365
|
])
|
|
9366
9366
|
]),
|
|
9367
|
-
n("div",
|
|
9368
|
-
n("div",
|
|
9367
|
+
n("div", Cm, [
|
|
9368
|
+
n("div", _m, [
|
|
9369
9369
|
n("label", Mm, y(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
9370
|
-
n("span", null, y(((
|
|
9370
|
+
n("span", null, y(((C = r.computeMovement(a.activeTropicals)) == null ? void 0 : C.kts) || "-") + " kts", 1)
|
|
9371
9371
|
]),
|
|
9372
9372
|
n("div", Pm, [
|
|
9373
9373
|
n("label", Sm, y(t.$t("tropical.moveDir")) + " : ", 1),
|
|
@@ -9387,7 +9387,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9387
9387
|
onClick: Le((S) => r.handleForecastToggle(z), ["stop"])
|
|
9388
9388
|
}, {
|
|
9389
9389
|
default: x(() => [
|
|
9390
|
-
|
|
9390
|
+
Z(y(z.model), 1)
|
|
9391
9391
|
]),
|
|
9392
9392
|
_: 2
|
|
9393
9393
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -9415,7 +9415,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9415
9415
|
n("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
|
|
9416
9416
|
])),
|
|
9417
9417
|
default: x(() => [
|
|
9418
|
-
|
|
9418
|
+
Z(" " + y(t.$t("weather.legend")), 1)
|
|
9419
9419
|
]),
|
|
9420
9420
|
_: 1
|
|
9421
9421
|
}, 8, ["color"]),
|
|
@@ -9428,7 +9428,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9428
9428
|
onClick: e[1] || (e[1] = Le((b) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
|
|
9429
9429
|
}, {
|
|
9430
9430
|
default: x(() => [
|
|
9431
|
-
|
|
9431
|
+
Z(y(t.$t("actions.viewReport")), 1)
|
|
9432
9432
|
]),
|
|
9433
9433
|
_: 1
|
|
9434
9434
|
})
|
|
@@ -9449,9 +9449,9 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9449
9449
|
e[6] || (e[6] = n("div", { class: "icon sts" }, null, -1)),
|
|
9450
9450
|
n("div", Nm, y(t.$t("tropical.sts")), 1)
|
|
9451
9451
|
]),
|
|
9452
|
-
n("div",
|
|
9452
|
+
n("div", Wm, [
|
|
9453
9453
|
e[7] || (e[7] = n("div", { class: "icon sty" }, null, -1)),
|
|
9454
|
-
n("div",
|
|
9454
|
+
n("div", Zm, y(t.$t("tropical.sty")), 1)
|
|
9455
9455
|
])
|
|
9456
9456
|
]),
|
|
9457
9457
|
n("div", Vm, [
|
|
@@ -9556,8 +9556,8 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9556
9556
|
var b, g, h, f;
|
|
9557
9557
|
return [
|
|
9558
9558
|
n("div", zd, [
|
|
9559
|
-
n("span",
|
|
9560
|
-
n("span",
|
|
9559
|
+
n("span", Cd, y(o.locale === "en" ? (b = a.hoverPoint) == null ? void 0 : b.Name : ((g = a.hoverPoint) == null ? void 0 : g.nameCn) || ((h = a.hoverPoint) == null ? void 0 : h.Name)), 1),
|
|
9560
|
+
n("span", _d, " [" + y(t.$t("tropical." + ((f = a.hoverPoint) == null ? void 0 : f.levelI18n))) + "]", 1)
|
|
9561
9561
|
])
|
|
9562
9562
|
];
|
|
9563
9563
|
}),
|
|
@@ -9566,7 +9566,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9566
9566
|
w(d),
|
|
9567
9567
|
w(s, { class: "text-body-1" }, {
|
|
9568
9568
|
default: x(() => {
|
|
9569
|
-
var b, g, h, f, k, v,
|
|
9569
|
+
var b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he;
|
|
9570
9570
|
return [
|
|
9571
9571
|
n("div", Md, [
|
|
9572
9572
|
((b = a.hoverPoint) == null ? void 0 : b.type) === "forecast" ? (A(), I("div", Pd, [
|
|
@@ -9581,7 +9581,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9581
9581
|
n("label", Dd, y(t.$t("tropical.forecast")) + " : ", 1),
|
|
9582
9582
|
n("span", null, y(r.computeTzTime((v = a.hoverPoint) == null ? void 0 : v.date, o.timeZone)), 1)
|
|
9583
9583
|
])) : G("", !0),
|
|
9584
|
-
((
|
|
9584
|
+
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (A(), I("div", Ed, [
|
|
9585
9585
|
n("label", Gd, y(t.$t("tropical.model")) + " : ", 1),
|
|
9586
9586
|
n("span", null, y(((L = a.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
|
|
9587
9587
|
])) : G("", !0),
|
|
@@ -9593,8 +9593,8 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9593
9593
|
n("label", Nd, y(t.$t("weather.wind")) + " : ", 1),
|
|
9594
9594
|
n("span", null, y(((F = a.hoverPoint) == null ? void 0 : F.kts) ?? "-") + " kts", 1)
|
|
9595
9595
|
])) : G("", !0),
|
|
9596
|
-
n("div",
|
|
9597
|
-
n("label",
|
|
9596
|
+
n("div", Wd, [
|
|
9597
|
+
n("label", Zd, y(t.$t("weather.pressure")) + " : ", 1),
|
|
9598
9598
|
n("span", null, y(((N = a.hoverPoint) == null ? void 0 : N.pressure) ?? "-") + " hPa", 1)
|
|
9599
9599
|
]),
|
|
9600
9600
|
((B = a.hoverPoint) == null ? void 0 : B.type) === "history" ? (A(), I("div", Vd, [
|
|
@@ -9621,7 +9621,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9621
9621
|
])
|
|
9622
9622
|
]);
|
|
9623
9623
|
}
|
|
9624
|
-
const
|
|
9624
|
+
const Zi = /* @__PURE__ */ ie(um, [["render", Jd]]);
|
|
9625
9625
|
const Kd = {
|
|
9626
9626
|
name: "DateTimePicker",
|
|
9627
9627
|
props: {
|
|
@@ -9867,7 +9867,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9867
9867
|
onClick: (k) => a.currentTime = h
|
|
9868
9868
|
}, {
|
|
9869
9869
|
default: x(() => [
|
|
9870
|
-
|
|
9870
|
+
Z(y(h), 1)
|
|
9871
9871
|
]),
|
|
9872
9872
|
_: 2
|
|
9873
9873
|
}, 1032, ["onClick"])
|
|
@@ -9894,7 +9894,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9894
9894
|
onClick: r.handleCancelDate
|
|
9895
9895
|
}, {
|
|
9896
9896
|
default: x(() => [
|
|
9897
|
-
|
|
9897
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
9898
9898
|
]),
|
|
9899
9899
|
_: 1
|
|
9900
9900
|
}, 8, ["onClick"]),
|
|
@@ -9906,7 +9906,7 @@ function th(t, e, o, i, a, r) {
|
|
|
9906
9906
|
onClick: r.handleConfirmDate
|
|
9907
9907
|
}, {
|
|
9908
9908
|
default: x(() => [
|
|
9909
|
-
|
|
9909
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
9910
9910
|
]),
|
|
9911
9911
|
_: 1
|
|
9912
9912
|
}, 8, ["onClick"])
|
|
@@ -10185,10 +10185,10 @@ const oh = {
|
|
|
10185
10185
|
}), this.loading = !1;
|
|
10186
10186
|
},
|
|
10187
10187
|
initTableData(t) {
|
|
10188
|
-
var o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
10188
|
+
var o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe;
|
|
10189
10189
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
10190
10190
|
const e = ((l = Vo.pickHourly(t, T(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
10191
|
-
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((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.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 = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (
|
|
10191
|
+
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((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.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 = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (S = (R = e == null ? void 0 : e.wave) == null ? void 0 : R.sig) == null ? void 0 : S.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((N = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : N.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Q = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.wd) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((he = (ge = e == null ? void 0 : e.wave) == null ? void 0 : ge.wd) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (ae = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((O = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : O.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (D = e == null ? void 0 : e.current) == null ? void 0 : D.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.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;
|
|
10192
10192
|
},
|
|
10193
10193
|
handleBind() {
|
|
10194
10194
|
var t, e;
|
|
@@ -10269,7 +10269,7 @@ const oh = {
|
|
|
10269
10269
|
}, zh = {
|
|
10270
10270
|
cols: "3",
|
|
10271
10271
|
class: "pa-0 px-0 text-left"
|
|
10272
|
-
},
|
|
10272
|
+
}, Ch = { class: "mx-0 py-2 d-flex align-center justify-start" }, _h = {
|
|
10273
10273
|
style: { width: "100px" },
|
|
10274
10274
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10275
10275
|
}, Mh = {
|
|
@@ -10290,10 +10290,10 @@ const oh = {
|
|
|
10290
10290
|
}, Dh = {
|
|
10291
10291
|
style: { width: "80px" },
|
|
10292
10292
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10293
|
-
}, Eh = { class: "pa-0 text-left" }, Gh = { class: "d-flex justify-space-between align-center" }, Fh = { class: "d-flex justify-start align-center" }, jh = { class: "mx-1" }, Bh = { class: "d-flex justify-end align-center" }, Nh = { class: "mx-0 py-1 d-flex align-center justify-start" },
|
|
10293
|
+
}, Eh = { class: "pa-0 text-left" }, Gh = { class: "d-flex justify-space-between align-center" }, Fh = { class: "d-flex justify-start align-center" }, jh = { class: "mx-1" }, Bh = { class: "d-flex justify-end align-center" }, Nh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Wh = {
|
|
10294
10294
|
style: { width: "60px" },
|
|
10295
10295
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10296
|
-
},
|
|
10296
|
+
}, Zh = { class: "pa-0 px-0" }, Vh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Xh = { class: "pa-0 px-0" }, Oh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Yh = { class: "d-flex flex-column align-start justify-center ga-3" }, Hh = { class: "text-label pr-2" }, Uh = { class: "text-label pr-2" }, Jh = { class: "text-label pr-2" }, Kh = { class: "d-flex flex-column align-start justify-center ga-3" }, Qh = { class: "text-label pr-2" }, qh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, ep = { id: "idm-position-icon" }, tp = {
|
|
10297
10297
|
class: "multi-color-icon",
|
|
10298
10298
|
style: { height: "30px", width: "30px" },
|
|
10299
10299
|
"aria-hidden": "true"
|
|
@@ -10313,8 +10313,8 @@ function ap(t, e, o, i, a, r) {
|
|
|
10313
10313
|
"open-on-focus": !o.simple,
|
|
10314
10314
|
"open-on-hover": !o.simple
|
|
10315
10315
|
}, {
|
|
10316
|
-
activator: x(({ props:
|
|
10317
|
-
w(l, U(
|
|
10316
|
+
activator: x(({ props: C }) => [
|
|
10317
|
+
w(l, U(C, {
|
|
10318
10318
|
"min-width": "32",
|
|
10319
10319
|
width: "32",
|
|
10320
10320
|
height: "32",
|
|
@@ -10370,7 +10370,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10370
10370
|
default: x(() => [
|
|
10371
10371
|
n("div", lh, [
|
|
10372
10372
|
n("div", nh, [
|
|
10373
|
-
|
|
10373
|
+
Z(y(t.$t("spot.lat")), 1),
|
|
10374
10374
|
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
10375
10375
|
])
|
|
10376
10376
|
]),
|
|
@@ -10383,7 +10383,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10383
10383
|
default: x(() => [
|
|
10384
10384
|
w(m, {
|
|
10385
10385
|
modelValue: a.form.latDegree,
|
|
10386
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
10386
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.form.latDegree = C),
|
|
10387
10387
|
rules: a.formRules.latDegree,
|
|
10388
10388
|
label: "",
|
|
10389
10389
|
density: "compact",
|
|
@@ -10406,7 +10406,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10406
10406
|
default: x(() => [
|
|
10407
10407
|
w(m, {
|
|
10408
10408
|
modelValue: a.form.latMinute,
|
|
10409
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
10409
|
+
"onUpdate:modelValue": e[1] || (e[1] = (C) => a.form.latMinute = C),
|
|
10410
10410
|
rules: a.formRules.latMinute,
|
|
10411
10411
|
label: "",
|
|
10412
10412
|
density: "compact",
|
|
@@ -10433,10 +10433,10 @@ function ap(t, e, o, i, a, r) {
|
|
|
10433
10433
|
height: "32",
|
|
10434
10434
|
class: "text-body-1 bg-primary",
|
|
10435
10435
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10436
|
-
onClick: e[2] || (e[2] = (
|
|
10436
|
+
onClick: e[2] || (e[2] = (C) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10437
10437
|
}, {
|
|
10438
10438
|
default: x(() => [
|
|
10439
|
-
|
|
10439
|
+
Z(y(a.form.latDirection), 1)
|
|
10440
10440
|
]),
|
|
10441
10441
|
_: 1
|
|
10442
10442
|
})
|
|
@@ -10448,7 +10448,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10448
10448
|
}),
|
|
10449
10449
|
n("div", sh, [
|
|
10450
10450
|
n("div", ch, [
|
|
10451
|
-
|
|
10451
|
+
Z(y(t.$t("spot.lng")), 1),
|
|
10452
10452
|
e[13] || (e[13] = n("span", { class: "text-danger" }, "*", -1))
|
|
10453
10453
|
])
|
|
10454
10454
|
]),
|
|
@@ -10461,7 +10461,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10461
10461
|
default: x(() => [
|
|
10462
10462
|
w(m, {
|
|
10463
10463
|
modelValue: a.form.lngDegree,
|
|
10464
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
10464
|
+
"onUpdate:modelValue": e[3] || (e[3] = (C) => a.form.lngDegree = C),
|
|
10465
10465
|
rules: a.formRules.lngDegree,
|
|
10466
10466
|
density: "compact",
|
|
10467
10467
|
variant: "outlined",
|
|
@@ -10481,7 +10481,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10481
10481
|
default: x(() => [
|
|
10482
10482
|
w(m, {
|
|
10483
10483
|
modelValue: a.form.lngMinute,
|
|
10484
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
10484
|
+
"onUpdate:modelValue": e[4] || (e[4] = (C) => a.form.lngMinute = C),
|
|
10485
10485
|
rules: a.formRules.lngMinute,
|
|
10486
10486
|
label: "",
|
|
10487
10487
|
density: "compact",
|
|
@@ -10508,10 +10508,10 @@ function ap(t, e, o, i, a, r) {
|
|
|
10508
10508
|
height: "32",
|
|
10509
10509
|
class: "text-body-1 bg-primary",
|
|
10510
10510
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10511
|
-
onClick: e[5] || (e[5] = (
|
|
10511
|
+
onClick: e[5] || (e[5] = (C) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10512
10512
|
}, {
|
|
10513
10513
|
default: x(() => [
|
|
10514
|
-
|
|
10514
|
+
Z(y(a.form.lngDirection), 1)
|
|
10515
10515
|
]),
|
|
10516
10516
|
_: 1
|
|
10517
10517
|
})
|
|
@@ -10523,7 +10523,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10523
10523
|
}),
|
|
10524
10524
|
n("div", mh, [
|
|
10525
10525
|
n("div", dh, [
|
|
10526
|
-
|
|
10526
|
+
Z(y(t.$t("spot.dateTime")), 1),
|
|
10527
10527
|
e[16] || (e[16] = n("span", { class: "text-danger" }, "*", -1))
|
|
10528
10528
|
])
|
|
10529
10529
|
]),
|
|
@@ -10538,7 +10538,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10538
10538
|
"date-time": a.form.dateTime,
|
|
10539
10539
|
"time-zone": o.timeZone
|
|
10540
10540
|
}, t.$attrs, {
|
|
10541
|
-
onDateTime: e[6] || (e[6] = (
|
|
10541
|
+
onDateTime: e[6] || (e[6] = (C) => a.form.dateTime = C)
|
|
10542
10542
|
}), null, 16, ["date-time", "time-zone"])
|
|
10543
10543
|
]),
|
|
10544
10544
|
_: 1
|
|
@@ -10548,7 +10548,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10548
10548
|
}),
|
|
10549
10549
|
n("div", hh, [
|
|
10550
10550
|
n("div", ph, [
|
|
10551
|
-
|
|
10551
|
+
Z(y(t.$t("weather.forecastModel")), 1),
|
|
10552
10552
|
e[17] || (e[17] = n("span", { class: "text-danger" }, "*", -1))
|
|
10553
10553
|
])
|
|
10554
10554
|
]),
|
|
@@ -10561,7 +10561,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10561
10561
|
default: x(() => [
|
|
10562
10562
|
w(g, {
|
|
10563
10563
|
modelValue: a.form.forecastModel,
|
|
10564
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
10564
|
+
"onUpdate:modelValue": e[7] || (e[7] = (C) => a.form.forecastModel = C),
|
|
10565
10565
|
class: "w-100",
|
|
10566
10566
|
rounded: "",
|
|
10567
10567
|
height: "30",
|
|
@@ -10579,7 +10579,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10579
10579
|
"base-color": ""
|
|
10580
10580
|
}, {
|
|
10581
10581
|
default: x(() => e[18] || (e[18] = [
|
|
10582
|
-
|
|
10582
|
+
Z(" NOAA ", -1)
|
|
10583
10583
|
])),
|
|
10584
10584
|
_: 1,
|
|
10585
10585
|
__: [18]
|
|
@@ -10593,7 +10593,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10593
10593
|
value: "ECMWF"
|
|
10594
10594
|
}, {
|
|
10595
10595
|
default: x(() => e[19] || (e[19] = [
|
|
10596
|
-
|
|
10596
|
+
Z(" ECMWF ", -1)
|
|
10597
10597
|
])),
|
|
10598
10598
|
_: 1,
|
|
10599
10599
|
__: [19]
|
|
@@ -10620,7 +10620,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10620
10620
|
onClick: r.cancelForm
|
|
10621
10621
|
}, {
|
|
10622
10622
|
default: x(() => [
|
|
10623
|
-
|
|
10623
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
10624
10624
|
]),
|
|
10625
10625
|
_: 1
|
|
10626
10626
|
}, 8, ["onClick"]),
|
|
@@ -10634,7 +10634,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10634
10634
|
class: "text-none text-body-1"
|
|
10635
10635
|
}, {
|
|
10636
10636
|
default: x(() => [
|
|
10637
|
-
|
|
10637
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
10638
10638
|
]),
|
|
10639
10639
|
_: 1
|
|
10640
10640
|
}, 8, ["loading"])
|
|
@@ -10679,11 +10679,11 @@ function ap(t, e, o, i, a, r) {
|
|
|
10679
10679
|
w(d),
|
|
10680
10680
|
w(h, { class: "text-body-1 px-0 py-1" }, {
|
|
10681
10681
|
default: x(() => {
|
|
10682
|
-
var
|
|
10682
|
+
var C, L;
|
|
10683
10683
|
return [
|
|
10684
10684
|
n("div", fh, [
|
|
10685
10685
|
n("div", yh, y(t.$t("time.time")), 1),
|
|
10686
|
-
n("div", bh, y(r.computedTzTime((
|
|
10686
|
+
n("div", bh, y(r.computedTzTime((C = a.currentHourData) == null ? void 0 : C.utc)), 1)
|
|
10687
10687
|
]),
|
|
10688
10688
|
n("div", wh, [
|
|
10689
10689
|
e[22] || (e[22] = n("div", {
|
|
@@ -10698,8 +10698,8 @@ function ap(t, e, o, i, a, r) {
|
|
|
10698
10698
|
n("div", Lh, y(t.$t("weather.sigWave")), 1),
|
|
10699
10699
|
n("div", zh, y(a.currentHourData.sigwaveDir ?? "-") + "/" + y(a.currentHourData.sigwaveHeight ?? "-") + "m/" + y(a.currentHourData.sigwavePeriod ?? "-") + "s ", 1)
|
|
10700
10700
|
]),
|
|
10701
|
-
n("div",
|
|
10702
|
-
n("div",
|
|
10701
|
+
n("div", Ch, [
|
|
10702
|
+
n("div", _h, y(t.$t("weather.windWave")), 1),
|
|
10703
10703
|
n("div", Mh, y(a.currentHourData.windwaveDir ?? "-") + "/" + y(a.currentHourData.windwaveHeight ?? "-") + "m/" + y(a.currentHourData.windwavePeriod ?? "-") + "s ", 1),
|
|
10704
10704
|
n("div", Ph, y(t.$t("weather.swell")), 1),
|
|
10705
10705
|
n("div", Sh, y(a.currentHourData.swellDir ?? "-") + "/" + y(a.currentHourData.swellHeight ?? "-") + "m/" + y(a.currentHourData.swellPeriod ?? "-") + "s ", 1)
|
|
@@ -10717,9 +10717,9 @@ function ap(t, e, o, i, a, r) {
|
|
|
10717
10717
|
w(d),
|
|
10718
10718
|
w(f, { class: "d-flex justify-space-between align-center" }, {
|
|
10719
10719
|
default: x(() => {
|
|
10720
|
-
var
|
|
10720
|
+
var C;
|
|
10721
10721
|
return [
|
|
10722
|
-
(
|
|
10722
|
+
(C = o.followList) != null && C.some((L) => {
|
|
10723
10723
|
var P, z;
|
|
10724
10724
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((z = L == null ? void 0 : L.coordinate) == null ? void 0 : z.lat) === a.form.lat;
|
|
10725
10725
|
}) ? (A(), j(l, {
|
|
@@ -10735,7 +10735,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10735
10735
|
n("i", { class: "iconfont icon-yishoucang text-h6 text-warning" }, null, -1)
|
|
10736
10736
|
])),
|
|
10737
10737
|
default: x(() => [
|
|
10738
|
-
|
|
10738
|
+
Z(" " + y(t.$t("actions.unfollow")), 1)
|
|
10739
10739
|
]),
|
|
10740
10740
|
_: 1
|
|
10741
10741
|
}, 8, ["onClick"])) : (A(), j(l, {
|
|
@@ -10751,7 +10751,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10751
10751
|
n("i", { class: "iconfont icon-weishoucang text-h6" }, null, -1)
|
|
10752
10752
|
])),
|
|
10753
10753
|
default: x(() => [
|
|
10754
|
-
|
|
10754
|
+
Z(y(t.$t("actions.follow")) + " ", 1)
|
|
10755
10755
|
]),
|
|
10756
10756
|
_: 1
|
|
10757
10757
|
}, 8, ["onClick"])),
|
|
@@ -10764,7 +10764,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10764
10764
|
onClick: Le(r.handleMeteoMore, ["stop"])
|
|
10765
10765
|
}, {
|
|
10766
10766
|
default: x(() => [
|
|
10767
|
-
|
|
10767
|
+
Z(y(t.$t("spot.forecast")), 1)
|
|
10768
10768
|
]),
|
|
10769
10769
|
_: 1
|
|
10770
10770
|
}, 8, ["onClick"])
|
|
@@ -10784,7 +10784,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10784
10784
|
default: x(() => [
|
|
10785
10785
|
w(s, null, {
|
|
10786
10786
|
default: x(() => {
|
|
10787
|
-
var
|
|
10787
|
+
var C;
|
|
10788
10788
|
return [
|
|
10789
10789
|
n("div", Gh, [
|
|
10790
10790
|
n("div", Fh, [
|
|
@@ -10792,7 +10792,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10792
10792
|
n("div", jh, y(r.computePosition(a.form || a.currentHourData)), 1)
|
|
10793
10793
|
]),
|
|
10794
10794
|
n("div", Bh, [
|
|
10795
|
-
(
|
|
10795
|
+
(C = o.followList) != null && C.some((L) => {
|
|
10796
10796
|
var P, z;
|
|
10797
10797
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((z = L == null ? void 0 : L.coordinate) == null ? void 0 : z.lat) === a.form.lat;
|
|
10798
10798
|
}) ? (A(), j(l, {
|
|
@@ -10850,11 +10850,11 @@ function ap(t, e, o, i, a, r) {
|
|
|
10850
10850
|
w(d),
|
|
10851
10851
|
w(h, { class: "text-body-1 px-0 py-2" }, {
|
|
10852
10852
|
default: x(() => {
|
|
10853
|
-
var
|
|
10853
|
+
var C, L;
|
|
10854
10854
|
return [
|
|
10855
10855
|
n("div", Nh, [
|
|
10856
|
-
n("div",
|
|
10857
|
-
n("div",
|
|
10856
|
+
n("div", Wh, y(t.$t("time.time")), 1),
|
|
10857
|
+
n("div", Zh, y(r.computedTzTime((C = a.currentHourData) == null ? void 0 : C.utc)), 1)
|
|
10858
10858
|
]),
|
|
10859
10859
|
n("div", Vh, [
|
|
10860
10860
|
e[30] || (e[30] = n("div", {
|
|
@@ -10976,7 +10976,7 @@ const rp = {
|
|
|
10976
10976
|
else {
|
|
10977
10977
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (o = this.map) == null || o.off("dblclick", this.handleDblClick), this.map;
|
|
10978
10978
|
let i = this.geojson.find((a) => !a.closed);
|
|
10979
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
10979
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
10980
10980
|
}
|
|
10981
10981
|
},
|
|
10982
10982
|
immediate: !0
|
|
@@ -11071,8 +11071,8 @@ const rp = {
|
|
|
11071
11071
|
d.features = d.features.filter((m) => m.geometry.type === "Point" && m.properties.id !== s[1]), this.handlePointUpdate(d);
|
|
11072
11072
|
} else if (e !== "marker-label" && this.toggle) {
|
|
11073
11073
|
let s = this.geojson.at(-1);
|
|
11074
|
-
s || (s =
|
|
11075
|
-
const d =
|
|
11074
|
+
s || (s = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(s)), s.features = s.features.filter((m) => m.geometry.type === "Point");
|
|
11075
|
+
const d = W.feature(
|
|
11076
11076
|
{
|
|
11077
11077
|
type: "Point",
|
|
11078
11078
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -11096,7 +11096,7 @@ const rp = {
|
|
|
11096
11096
|
o = X.roundPrecision(o + m, 4);
|
|
11097
11097
|
let u;
|
|
11098
11098
|
c.mode === "RL" ? u = X.convertToMonotonicLng([s, d]) : u = X.convertToMonotonicLng(Oe.interpolateCoordinates(s, d, 200));
|
|
11099
|
-
const b =
|
|
11099
|
+
const b = W.lineString(u.map((h) => [h.lng, h.lat]));
|
|
11100
11100
|
b.properties.dist = m, b.properties.bearing = p, b.properties.total = o, b.properties.name = "Line " + this.currentLineIndex, i.push(b);
|
|
11101
11101
|
const g = e[a];
|
|
11102
11102
|
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + m, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
@@ -11106,14 +11106,14 @@ const rp = {
|
|
|
11106
11106
|
return this.handleRender(t), t;
|
|
11107
11107
|
},
|
|
11108
11108
|
handleTmpPointUpdate(t, e, o, i) {
|
|
11109
|
-
const a =
|
|
11109
|
+
const a = W.featureCollection([]);
|
|
11110
11110
|
let r, l;
|
|
11111
11111
|
if (e) {
|
|
11112
11112
|
const s = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, m = { lng: o.lng, lat: o.lat };
|
|
11113
11113
|
r = Oe.calculateDistance(d, m, s.mode === "RL", 4), l = Oe.calculateBearing(d, m, s.mode === "RL", 2);
|
|
11114
11114
|
let p;
|
|
11115
11115
|
s.mode === "RL" ? p = X.convertToMonotonicLng([d, m]) : p = X.convertToMonotonicLng(Oe.interpolateCoordinates(d, m, 200));
|
|
11116
|
-
const u =
|
|
11116
|
+
const u = W.lineString(p.map((b) => [b.lng, b.lat]));
|
|
11117
11117
|
u.properties.dist = r, u.properties.bearing = l, a.features.push(u);
|
|
11118
11118
|
}
|
|
11119
11119
|
if (i) {
|
|
@@ -11121,7 +11121,7 @@ const rp = {
|
|
|
11121
11121
|
r = Oe.calculateDistance(d, m, s.mode === "RL", 4), l = Oe.calculateBearing(d, m, s.mode === "RL", 2);
|
|
11122
11122
|
let p;
|
|
11123
11123
|
s.mode === "RL" ? p = X.convertToMonotonicLng([d, m]) : p = X.convertToMonotonicLng(Oe.interpolateCoordinates(d, m, 200));
|
|
11124
|
-
const u =
|
|
11124
|
+
const u = W.lineString(p.map((b) => [b.lng, b.lat]));
|
|
11125
11125
|
u.properties.dist = r, u.properties.bearing = l, a.features.push(u);
|
|
11126
11126
|
}
|
|
11127
11127
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -11183,14 +11183,14 @@ const rp = {
|
|
|
11183
11183
|
handleMove(t) {
|
|
11184
11184
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
11185
11185
|
let e = this.geojson.at(-1);
|
|
11186
|
-
e || (e =
|
|
11186
|
+
e || (e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
11187
11187
|
const o = e.features.filter((i) => i.geometry.type === "Point");
|
|
11188
11188
|
o != null && o.length && this.handleTmpPointUpdate(e, o.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
11189
11189
|
},
|
|
11190
11190
|
handleDblClick(t) {
|
|
11191
11191
|
t.preventDefault();
|
|
11192
11192
|
let e = this.geojson.at(-1);
|
|
11193
|
-
e.closed = !0, this.handleRender(e), e =
|
|
11193
|
+
e.closed = !0, this.handleRender(e), e = W.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
11194
11194
|
},
|
|
11195
11195
|
handleRender(t) {
|
|
11196
11196
|
var e;
|
|
@@ -11499,7 +11499,7 @@ const cp = {
|
|
|
11499
11499
|
},
|
|
11500
11500
|
handlerRenderEditLine(t) {
|
|
11501
11501
|
this.drawCoords = t.geometry.coordinates.map((i) => [...i]);
|
|
11502
|
-
const e =
|
|
11502
|
+
const e = W.featureCollection([t, ...this.drawCoords.map((i) => W.point(i))]);
|
|
11503
11503
|
this.handleSetDrawSource(e);
|
|
11504
11504
|
const o = 3;
|
|
11505
11505
|
this.map.getLayer(this.drawLineLayer) || this.map.addLayer({
|
|
@@ -11526,26 +11526,26 @@ const cp = {
|
|
|
11526
11526
|
}), a.on("drag", () => {
|
|
11527
11527
|
this.map.getCanvas().style.cursor = "pointer";
|
|
11528
11528
|
const { lng: r, lat: l } = a.getLngLat();
|
|
11529
|
-
this.handleUpdateVertexLabel([r, l]), this.drawCoords[o] = [r, l], this.handlerRenderEditLine(
|
|
11529
|
+
this.handleUpdateVertexLabel([r, l]), this.drawCoords[o] = [r, l], this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color }));
|
|
11530
11530
|
}), a.on("dragend", () => {
|
|
11531
11531
|
this.map.getCanvas().style.cursor = "grab";
|
|
11532
11532
|
const { lng: r, lat: l } = a.getLngLat();
|
|
11533
|
-
this.drawCoords[o] = [r, l], this.handlerRenderEditLine(
|
|
11533
|
+
this.drawCoords[o] = [r, l], this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.handleClearVertexLabels();
|
|
11534
11534
|
}), i.addEventListener("contextmenu", (r) => {
|
|
11535
11535
|
r.preventDefault(), r.stopPropagation(), this.drawCoords.length > 2 && this.showDeleteButton(e, () => {
|
|
11536
|
-
this.drawCoords.splice(o, 1), this.handlerRenderEditLine(
|
|
11536
|
+
this.drawCoords.splice(o, 1), this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
|
|
11537
11537
|
});
|
|
11538
11538
|
}), this.editMarkers.push(a);
|
|
11539
11539
|
});
|
|
11540
11540
|
const t = (e) => {
|
|
11541
11541
|
e.preventDefault();
|
|
11542
|
-
const { lng: o, lat: i } = e.lngLat, a =
|
|
11542
|
+
const { lng: o, lat: i } = e.lngLat, a = W.point([o, i]), r = W.lineString(this.drawCoords), l = W.nearestPointOnLine(r, a);
|
|
11543
11543
|
if (l) {
|
|
11544
11544
|
const c = l.properties.index;
|
|
11545
11545
|
this.showDeleteButton(
|
|
11546
11546
|
[o, i],
|
|
11547
11547
|
() => {
|
|
11548
|
-
this.drawCoords.splice(c + 1, 0, [o, i]), this.handlerRenderEditLine(
|
|
11548
|
+
this.drawCoords.splice(c + 1, 0, [o, i]), this.handlerRenderEditLine(W.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
|
|
11549
11549
|
},
|
|
11550
11550
|
this.$t("actions.add") || "新增",
|
|
11551
11551
|
"add"
|
|
@@ -11633,7 +11633,7 @@ const cp = {
|
|
|
11633
11633
|
});
|
|
11634
11634
|
const o = (i) => {
|
|
11635
11635
|
i.preventDefault();
|
|
11636
|
-
const { lng: a, lat: r } = i.lngLat, l =
|
|
11636
|
+
const { lng: a, lat: r } = i.lngLat, l = W.point([a, r]), c = W.lineString([...this.drawCoords, this.drawCoords[0]]), s = W.nearestPointOnLine(c, l);
|
|
11637
11637
|
if (s) {
|
|
11638
11638
|
const d = s.properties.index, m = d >= this.drawCoords.length - 1 ? this.drawCoords.length - 1 : d;
|
|
11639
11639
|
this.showDeleteButton(
|
|
@@ -11694,7 +11694,7 @@ const cp = {
|
|
|
11694
11694
|
t == null || t.forEach((a, r) => {
|
|
11695
11695
|
e.push(Xe.drawPoint(a == null ? void 0 : a[1], a == null ? void 0 : a[0]));
|
|
11696
11696
|
}), (t == null ? void 0 : t.length) >= 2 && e.push(Xe.drawLine(t));
|
|
11697
|
-
const o = 2, i =
|
|
11697
|
+
const o = 2, i = W.featureCollection(e);
|
|
11698
11698
|
this.handleSetDrawSource(i), this.map.getLayer(this.drawLineLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-color", this.form.color), this.map.setPaintProperty(this.drawLineLayer, "line-width", o), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
|
|
11699
11699
|
id: this.drawLineLayer,
|
|
11700
11700
|
type: "line",
|
|
@@ -11719,7 +11719,7 @@ const cp = {
|
|
|
11719
11719
|
}));
|
|
11720
11720
|
},
|
|
11721
11721
|
handleRenderTmpLine(t, e) {
|
|
11722
|
-
const o = Xe.drawLine([t, e]), i =
|
|
11722
|
+
const o = Xe.drawLine([t, e]), i = W.featureCollection([o]);
|
|
11723
11723
|
this.map.getSource(this.drawTmpSource) ? this.map.getSource(this.drawTmpSource).setData(i) : this.map.addSource(this.drawTmpSource, { type: "geojson", data: i }), this.map.getLayer(this.drawTmpLayer) || this.map.addLayer({
|
|
11724
11724
|
id: this.drawTmpLayer,
|
|
11725
11725
|
type: "line",
|
|
@@ -11770,12 +11770,12 @@ const cp = {
|
|
|
11770
11770
|
var a;
|
|
11771
11771
|
let e = [];
|
|
11772
11772
|
if (t == null || t.forEach((r, l) => {
|
|
11773
|
-
e.push(
|
|
11773
|
+
e.push(W.point(r));
|
|
11774
11774
|
}), (t == null ? void 0 : t.length) > 2) {
|
|
11775
11775
|
const r = [...t, t[0]];
|
|
11776
11776
|
e.push(Xe.drawPolygon(r, { ...this.originalProperties }));
|
|
11777
11777
|
}
|
|
11778
|
-
const o =
|
|
11778
|
+
const o = W.featureCollection(e);
|
|
11779
11779
|
this.handleSetDrawSource(o);
|
|
11780
11780
|
const i = (a = this.editLayer) != null && a.id ? 3 : 2;
|
|
11781
11781
|
this.map.getLayer(this.drawFillLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-width", i), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
|
|
@@ -11846,7 +11846,7 @@ const cp = {
|
|
|
11846
11846
|
const { lng: e, lat: o } = t.lngLat;
|
|
11847
11847
|
if (this.drawCoords.length === 0) {
|
|
11848
11848
|
this.drawCoords.push([e, o]);
|
|
11849
|
-
const i =
|
|
11849
|
+
const i = W.featureCollection([W.point([e, o])]);
|
|
11850
11850
|
this.handleSetDrawSource(i), this.map.getLayer(this.drawPointLayer) || this.map.addLayer({
|
|
11851
11851
|
id: this.drawPointLayer,
|
|
11852
11852
|
type: "circle",
|
|
@@ -11860,14 +11860,14 @@ const cp = {
|
|
|
11860
11860
|
}
|
|
11861
11861
|
}), this.handleRenderCircleCenterLabel([e, o]);
|
|
11862
11862
|
} else {
|
|
11863
|
-
const i = this.drawCoords[0], a = [e, o], r =
|
|
11863
|
+
const i = this.drawCoords[0], a = [e, o], r = W.distance(W.point(i), W.point(a), { units: "nauticalmiles" }), l = Xe.drawCircle(i[0], i[1], r), c = W.featureCollection([W.point(i), l]);
|
|
11864
11864
|
this.handleSetDrawSource(c), this.handleRenderAreaLayers(), this.handleRenderRadiusLine(i, a, r), this.drawCoords = [i, a], this.map.off("click", this.handleMapClickCircle), this.map.off("mousemove", this.handleMapMoveCircle);
|
|
11865
11865
|
}
|
|
11866
11866
|
},
|
|
11867
11867
|
handleMapMoveCircle(t) {
|
|
11868
11868
|
if (this.drawCoords.length !== 1)
|
|
11869
11869
|
return;
|
|
11870
|
-
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i =
|
|
11870
|
+
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = W.distance(W.point(e), W.point(o), { units: "nauticalmiles" }), a = Xe.drawCircle(e[0], e[1], i), r = W.featureCollection([W.point(e), a]);
|
|
11871
11871
|
this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderAreaLayers(), this.handleRenderRadiusLine(e, o, i);
|
|
11872
11872
|
},
|
|
11873
11873
|
handleRenderCircleCenterLabel(t) {
|
|
@@ -11877,7 +11877,7 @@ const cp = {
|
|
|
11877
11877
|
this.circleMarkers.push(a);
|
|
11878
11878
|
},
|
|
11879
11879
|
handleRenderRadiusLine(t, e, o) {
|
|
11880
|
-
const i = X.roundPrecision(o, 2), a =
|
|
11880
|
+
const i = X.roundPrecision(o, 2), a = W.featureCollection([W.lineString([t, e])]);
|
|
11881
11881
|
this.map.getSource(this.drawRadiusSource) ? this.map.getSource(this.drawRadiusSource).setData(a) : this.map.addSource(this.drawRadiusSource, { type: "geojson", data: a }), this.map.getLayer(this.drawRadiusLayer) || this.map.addLayer({
|
|
11882
11882
|
id: this.drawRadiusLayer,
|
|
11883
11883
|
type: "line",
|
|
@@ -11920,14 +11920,14 @@ const cp = {
|
|
|
11920
11920
|
else {
|
|
11921
11921
|
const i = this.drawCoords[0], a = [e, o], r = Xe.drawRect(i, a);
|
|
11922
11922
|
delete r.bbox;
|
|
11923
|
-
const l = this.buildRectFeatureCollection(i, a), c =
|
|
11923
|
+
const l = this.buildRectFeatureCollection(i, a), c = W.featureCollection([r, ...l.map((s) => W.point(s))]);
|
|
11924
11924
|
this.handleSetDrawSource(c), this.handleRenderRectLayers(), this.handleRenderRectCorners(i, a), this.drawCoords = [i, a], this.map.off("click", this.handleMapClickRect), this.map.off("mousemove", this.handleMapMoveRect);
|
|
11925
11925
|
}
|
|
11926
11926
|
},
|
|
11927
11927
|
handleMapMoveRect(t) {
|
|
11928
11928
|
if (this.drawCoords.length !== 1)
|
|
11929
11929
|
return;
|
|
11930
|
-
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = Xe.drawRect(e, o), a = this.buildRectFeatureCollection(e, o), r =
|
|
11930
|
+
const e = this.drawCoords[0], o = [t.lngLat.lng, t.lngLat.lat], i = Xe.drawRect(e, o), a = this.buildRectFeatureCollection(e, o), r = W.featureCollection([i, ...a.map((l) => W.point(l))]);
|
|
11931
11931
|
this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderRectLayers(), this.handleRenderRectCorners(e, o);
|
|
11932
11932
|
},
|
|
11933
11933
|
handleRenderRectLayers() {
|
|
@@ -12043,7 +12043,7 @@ const cp = {
|
|
|
12043
12043
|
if (!this.drawCoords.length)
|
|
12044
12044
|
return;
|
|
12045
12045
|
const [c, s] = this.drawCoords[0];
|
|
12046
|
-
t =
|
|
12046
|
+
t = W.featureCollection([
|
|
12047
12047
|
Xe.drawPoint(s, c, { ...this.originalProperties, color: this.form.color, name: this.form.name })
|
|
12048
12048
|
]), (l = t.features) == null || l.forEach((d) => {
|
|
12049
12049
|
d.properties.color = this.form.color, d.properties.name = this.form.name;
|
|
@@ -12066,7 +12066,7 @@ const cp = {
|
|
|
12066
12066
|
}
|
|
12067
12067
|
})
|
|
12068
12068
|
);
|
|
12069
|
-
t =
|
|
12069
|
+
t = W.featureCollection(l);
|
|
12070
12070
|
}
|
|
12071
12071
|
}) : this.markerType === "Area" && await this.$refs.areaForm.validate().then((r) => {
|
|
12072
12072
|
var l, c, s;
|
|
@@ -12080,7 +12080,7 @@ const cp = {
|
|
|
12080
12080
|
let p = ((s = m.features) == null ? void 0 : s.filter((u) => u.geometry.type === "Polygon")) || [];
|
|
12081
12081
|
if (p = p == null ? void 0 : p.map((u) => (u.properties.name = this.form.name, u.properties.color = this.form.color, u)), !p.length)
|
|
12082
12082
|
return;
|
|
12083
|
-
t =
|
|
12083
|
+
t = W.featureCollection(p);
|
|
12084
12084
|
}
|
|
12085
12085
|
}), !t)
|
|
12086
12086
|
return !1;
|
|
@@ -12108,7 +12108,7 @@ const cp = {
|
|
|
12108
12108
|
});
|
|
12109
12109
|
}
|
|
12110
12110
|
}
|
|
12111
|
-
}, mp = { class: "text-h6 font-weight-600" }, dp = { class: "text-label mb-1" }, hp = { class: "text-label mb-1" }, pp = { class: "mb-1" }, up = { class: "text-label mb-1" }, gp = { class: "mb-1" }, fp = { class: "text-label mb-1" }, yp = { class: "mb-1" }, bp = { class: "text-label mb-1" }, wp = { class: "color-picker-row d-flex align-start ga-2" }, xp = ["value"], vp = { class: "mb-n2" }, Ap = { class: "text-label mb-1" }, kp = { class: "mb-1" }, Lp = { class: "text-label mb-1" }, zp = { class: "color-picker-row d-flex align-start ga-2" },
|
|
12111
|
+
}, mp = { class: "text-h6 font-weight-600" }, dp = { class: "text-label mb-1" }, hp = { class: "text-label mb-1" }, pp = { class: "mb-1" }, up = { class: "text-label mb-1" }, gp = { class: "mb-1" }, fp = { class: "text-label mb-1" }, yp = { class: "mb-1" }, bp = { class: "text-label mb-1" }, wp = { class: "color-picker-row d-flex align-start ga-2" }, xp = ["value"], vp = { class: "mb-n2" }, Ap = { class: "text-label mb-1" }, kp = { class: "mb-1" }, Lp = { class: "text-label mb-1" }, zp = { class: "color-picker-row d-flex align-start ga-2" }, Cp = ["value"], _p = { class: "mb-n2" }, Mp = { class: "text-label mb-1" }, Pp = {
|
|
12112
12112
|
key: 0,
|
|
12113
12113
|
class: "mb-3"
|
|
12114
12114
|
}, Sp = { class: "text-label mb-1" }, Tp = { class: "mb-1" }, Rp = { class: "text-label mb-1" }, Ip = { class: "color-picker-row d-flex align-start ga-2" }, Dp = ["value"], Ep = { class: "mb-n2" }, Gp = { class: "text-label mb-1" };
|
|
@@ -12169,12 +12169,12 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12169
12169
|
var v;
|
|
12170
12170
|
return [
|
|
12171
12171
|
n("div", hp, [
|
|
12172
|
-
|
|
12172
|
+
Z(y(t.$t("marker.markerType")), 1),
|
|
12173
12173
|
e[22] || (e[22] = n("span", { class: "text-danger" }, "*", -1))
|
|
12174
12174
|
]),
|
|
12175
12175
|
w(p, {
|
|
12176
12176
|
modelValue: a.markerType,
|
|
12177
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
12177
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.markerType = C),
|
|
12178
12178
|
mandatory: "",
|
|
12179
12179
|
group: "",
|
|
12180
12180
|
density: "compact",
|
|
@@ -12192,7 +12192,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12192
12192
|
"min-height": "32px"
|
|
12193
12193
|
}, {
|
|
12194
12194
|
default: x(() => [
|
|
12195
|
-
|
|
12195
|
+
Z(y(t.$t("marker.point")), 1)
|
|
12196
12196
|
]),
|
|
12197
12197
|
_: 1
|
|
12198
12198
|
}, 8, ["class", "color"]),
|
|
@@ -12205,7 +12205,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12205
12205
|
"min-height": "32px"
|
|
12206
12206
|
}, {
|
|
12207
12207
|
default: x(() => [
|
|
12208
|
-
|
|
12208
|
+
Z(y(t.$t("marker.line")), 1)
|
|
12209
12209
|
]),
|
|
12210
12210
|
_: 1
|
|
12211
12211
|
}, 8, ["class", "color"]),
|
|
@@ -12217,7 +12217,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12217
12217
|
"min-height": "32px"
|
|
12218
12218
|
}, {
|
|
12219
12219
|
default: x(() => [
|
|
12220
|
-
|
|
12220
|
+
Z(y(t.$t("marker.area")), 1)
|
|
12221
12221
|
]),
|
|
12222
12222
|
_: 1
|
|
12223
12223
|
}, 8, ["class", "color"])
|
|
@@ -12240,7 +12240,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12240
12240
|
default: x(() => [
|
|
12241
12241
|
n("div", pp, [
|
|
12242
12242
|
n("div", up, [
|
|
12243
|
-
|
|
12243
|
+
Z(y(t.$t("marker.lat")), 1),
|
|
12244
12244
|
e[23] || (e[23] = n("span", { class: "text-danger" }, "*", -1))
|
|
12245
12245
|
]),
|
|
12246
12246
|
w(b, { class: "ma-0" }, {
|
|
@@ -12317,7 +12317,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12317
12317
|
})
|
|
12318
12318
|
}, {
|
|
12319
12319
|
default: x(() => [
|
|
12320
|
-
|
|
12320
|
+
Z(y(a.form.latDir), 1)
|
|
12321
12321
|
]),
|
|
12322
12322
|
_: 1
|
|
12323
12323
|
})
|
|
@@ -12330,7 +12330,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12330
12330
|
]),
|
|
12331
12331
|
n("div", gp, [
|
|
12332
12332
|
n("div", fp, [
|
|
12333
|
-
|
|
12333
|
+
Z(y(t.$t("marker.lng")), 1),
|
|
12334
12334
|
e[26] || (e[26] = n("span", { class: "text-danger" }, "*", -1))
|
|
12335
12335
|
]),
|
|
12336
12336
|
w(b, { class: "ma-0" }, {
|
|
@@ -12397,7 +12397,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12397
12397
|
})
|
|
12398
12398
|
}, {
|
|
12399
12399
|
default: x(() => [
|
|
12400
|
-
|
|
12400
|
+
Z(y(a.form.lngDir), 1)
|
|
12401
12401
|
]),
|
|
12402
12402
|
_: 1
|
|
12403
12403
|
})
|
|
@@ -12410,7 +12410,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12410
12410
|
]),
|
|
12411
12411
|
n("div", yp, [
|
|
12412
12412
|
n("div", bp, [
|
|
12413
|
-
|
|
12413
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12414
12414
|
e[29] || (e[29] = n("span", { class: "text-danger" }, "*", -1))
|
|
12415
12415
|
]),
|
|
12416
12416
|
n("div", wp, [
|
|
@@ -12432,7 +12432,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12432
12432
|
]),
|
|
12433
12433
|
n("div", vp, [
|
|
12434
12434
|
n("div", Ap, [
|
|
12435
|
-
|
|
12435
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12436
12436
|
e[30] || (e[30] = n("span", { class: "text-danger" }, "*", -1))
|
|
12437
12437
|
]),
|
|
12438
12438
|
w(d, {
|
|
@@ -12458,7 +12458,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12458
12458
|
onClick: r.handleClearDraw
|
|
12459
12459
|
}, {
|
|
12460
12460
|
default: x(() => [
|
|
12461
|
-
|
|
12461
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12462
12462
|
]),
|
|
12463
12463
|
_: 1
|
|
12464
12464
|
}, 8, ["onClick"]),
|
|
@@ -12471,7 +12471,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12471
12471
|
loading: a.saving
|
|
12472
12472
|
}, {
|
|
12473
12473
|
default: x(() => [
|
|
12474
|
-
|
|
12474
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12475
12475
|
]),
|
|
12476
12476
|
_: 1
|
|
12477
12477
|
}, 8, ["loading"])
|
|
@@ -12493,7 +12493,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12493
12493
|
default: x(() => [
|
|
12494
12494
|
n("div", kp, [
|
|
12495
12495
|
n("div", Lp, [
|
|
12496
|
-
|
|
12496
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12497
12497
|
e[31] || (e[31] = n("span", { class: "text-danger" }, "*", -1))
|
|
12498
12498
|
]),
|
|
12499
12499
|
n("div", zp, [
|
|
@@ -12502,7 +12502,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12502
12502
|
value: a.form.color,
|
|
12503
12503
|
class: "native-color-picker cursor-pointer",
|
|
12504
12504
|
onInput: e[14] || (e[14] = (v) => a.form.color = v.target.value)
|
|
12505
|
-
}, null, 40,
|
|
12505
|
+
}, null, 40, Cp),
|
|
12506
12506
|
w(d, {
|
|
12507
12507
|
modelValue: a.form.color,
|
|
12508
12508
|
"onUpdate:modelValue": e[15] || (e[15] = (v) => a.form.color = v),
|
|
@@ -12513,9 +12513,9 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12513
12513
|
}, null, 8, ["modelValue", "rules"])
|
|
12514
12514
|
])
|
|
12515
12515
|
]),
|
|
12516
|
-
n("div",
|
|
12516
|
+
n("div", _p, [
|
|
12517
12517
|
n("div", Mp, [
|
|
12518
|
-
|
|
12518
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12519
12519
|
e[32] || (e[32] = n("span", { class: "text-danger" }, "*", -1))
|
|
12520
12520
|
]),
|
|
12521
12521
|
w(d, {
|
|
@@ -12541,7 +12541,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12541
12541
|
onClick: r.handleClearDraw
|
|
12542
12542
|
}, {
|
|
12543
12543
|
default: x(() => [
|
|
12544
|
-
|
|
12544
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12545
12545
|
]),
|
|
12546
12546
|
_: 1
|
|
12547
12547
|
}, 8, ["onClick"]),
|
|
@@ -12554,7 +12554,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12554
12554
|
loading: a.saving
|
|
12555
12555
|
}, {
|
|
12556
12556
|
default: x(() => [
|
|
12557
|
-
|
|
12557
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12558
12558
|
]),
|
|
12559
12559
|
_: 1
|
|
12560
12560
|
}, 8, ["loading"])
|
|
@@ -12574,11 +12574,11 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12574
12574
|
default: x(() => [
|
|
12575
12575
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12576
12576
|
default: x(() => {
|
|
12577
|
-
var v,
|
|
12577
|
+
var v, C;
|
|
12578
12578
|
return [
|
|
12579
12579
|
(v = o.editLayer) != null && v.id ? G("", !0) : (A(), I("div", Pp, [
|
|
12580
12580
|
n("div", Sp, [
|
|
12581
|
-
|
|
12581
|
+
Z(y(t.$t("marker.areaType")), 1),
|
|
12582
12582
|
e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
|
|
12583
12583
|
]),
|
|
12584
12584
|
w(p, {
|
|
@@ -12590,7 +12590,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12590
12590
|
variant: "flat",
|
|
12591
12591
|
color: "primary",
|
|
12592
12592
|
class: "w-100",
|
|
12593
|
-
disabled: !!((
|
|
12593
|
+
disabled: !!((C = o.editLayer) != null && C.id)
|
|
12594
12594
|
}, {
|
|
12595
12595
|
default: x(() => [
|
|
12596
12596
|
w(l, {
|
|
@@ -12602,7 +12602,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12602
12602
|
"min-height": "32px"
|
|
12603
12603
|
}, {
|
|
12604
12604
|
default: x(() => [
|
|
12605
|
-
|
|
12605
|
+
Z(y(t.$t("marker.polygon")), 1)
|
|
12606
12606
|
]),
|
|
12607
12607
|
_: 1
|
|
12608
12608
|
}, 8, ["class", "color"]),
|
|
@@ -12616,7 +12616,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12616
12616
|
"min-height": "32px"
|
|
12617
12617
|
}, {
|
|
12618
12618
|
default: x(() => [
|
|
12619
|
-
|
|
12619
|
+
Z(y(t.$t("marker.circle")), 1)
|
|
12620
12620
|
]),
|
|
12621
12621
|
_: 1
|
|
12622
12622
|
}, 8, ["class", "color"]),
|
|
@@ -12629,7 +12629,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12629
12629
|
"min-height": "32px"
|
|
12630
12630
|
}, {
|
|
12631
12631
|
default: x(() => [
|
|
12632
|
-
|
|
12632
|
+
Z(y(t.$t("marker.rect")), 1)
|
|
12633
12633
|
]),
|
|
12634
12634
|
_: 1
|
|
12635
12635
|
}, 8, ["class", "color"])
|
|
@@ -12639,7 +12639,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12639
12639
|
])),
|
|
12640
12640
|
n("div", Tp, [
|
|
12641
12641
|
n("div", Rp, [
|
|
12642
|
-
|
|
12642
|
+
Z(y(t.$t("marker.color")), 1),
|
|
12643
12643
|
e[34] || (e[34] = n("span", { class: "text-danger" }, "*", -1))
|
|
12644
12644
|
]),
|
|
12645
12645
|
n("div", Ip, [
|
|
@@ -12661,7 +12661,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12661
12661
|
]),
|
|
12662
12662
|
n("div", Ep, [
|
|
12663
12663
|
n("div", Gp, [
|
|
12664
|
-
|
|
12664
|
+
Z(y(t.$t("marker.name")), 1),
|
|
12665
12665
|
e[35] || (e[35] = n("span", { class: "text-danger" }, "*", -1))
|
|
12666
12666
|
]),
|
|
12667
12667
|
w(d, {
|
|
@@ -12691,7 +12691,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12691
12691
|
onClick: r.handleClearDraw
|
|
12692
12692
|
}, {
|
|
12693
12693
|
default: x(() => [
|
|
12694
|
-
|
|
12694
|
+
Z(y(t.$t("actions.clear")), 1)
|
|
12695
12695
|
]),
|
|
12696
12696
|
_: 1
|
|
12697
12697
|
}, 8, ["onClick"])),
|
|
@@ -12704,7 +12704,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12704
12704
|
loading: a.saving
|
|
12705
12705
|
}, {
|
|
12706
12706
|
default: x(() => [
|
|
12707
|
-
|
|
12707
|
+
Z(y(t.$t("actions.save")), 1)
|
|
12708
12708
|
]),
|
|
12709
12709
|
_: 1
|
|
12710
12710
|
}, 8, ["loading"])
|
|
@@ -12949,7 +12949,7 @@ const Bp = {
|
|
|
12949
12949
|
}), this.map.getSource(t) && this.map.removeSource(t);
|
|
12950
12950
|
}
|
|
12951
12951
|
}
|
|
12952
|
-
}, Np = { class: "text-h6 font-weight-600" },
|
|
12952
|
+
}, Np = { class: "text-h6 font-weight-600" }, Wp = { class: "mb-4" }, Zp = { class: "text-label mb-1" }, Vp = { class: "mb-1" }, Xp = { class: "text-label mb-1" }, Op = { class: "color-picker-row d-flex align-start ga-2" }, Yp = ["value"], Hp = { class: "text-body-2 text-center text-label" }, Up = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, Jp = { class: "text-body-2 text-left text-label mt-1" }, Kp = {
|
|
12953
12953
|
key: 0,
|
|
12954
12954
|
class: "text-body-2 text-left text-danger mt-1"
|
|
12955
12955
|
}, Qp = {
|
|
@@ -12992,9 +12992,9 @@ function $p(t, e, o, i, a, r) {
|
|
|
12992
12992
|
default: x(() => [
|
|
12993
12993
|
w(p, { class: "px-4 text-body-1" }, {
|
|
12994
12994
|
default: x(() => [
|
|
12995
|
-
n("div",
|
|
12996
|
-
n("div",
|
|
12997
|
-
|
|
12995
|
+
n("div", Wp, [
|
|
12996
|
+
n("div", Zp, [
|
|
12997
|
+
Z(y(t.$t("marker.group")), 1),
|
|
12998
12998
|
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
12999
12999
|
]),
|
|
13000
13000
|
w(d, {
|
|
@@ -13008,7 +13008,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13008
13008
|
]),
|
|
13009
13009
|
n("div", Vp, [
|
|
13010
13010
|
n("div", Xp, [
|
|
13011
|
-
|
|
13011
|
+
Z(y(t.$t("marker.color")), 1),
|
|
13012
13012
|
e[11] || (e[11] = n("span", { class: "text-danger" }, "*", -1))
|
|
13013
13013
|
]),
|
|
13014
13014
|
n("div", Op, [
|
|
@@ -13043,7 +13043,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13043
13043
|
class: "mb-2"
|
|
13044
13044
|
}, {
|
|
13045
13045
|
default: x(() => e[12] || (e[12] = [
|
|
13046
|
-
|
|
13046
|
+
Z("mdi-cloud-upload-outline", -1)
|
|
13047
13047
|
])),
|
|
13048
13048
|
_: 1,
|
|
13049
13049
|
__: [12]
|
|
@@ -13068,12 +13068,12 @@ function $p(t, e, o, i, a, r) {
|
|
|
13068
13068
|
class: "mr-1"
|
|
13069
13069
|
}, {
|
|
13070
13070
|
default: x(() => e[13] || (e[13] = [
|
|
13071
|
-
|
|
13071
|
+
Z("mdi-check-circle", -1)
|
|
13072
13072
|
])),
|
|
13073
13073
|
_: 1,
|
|
13074
13074
|
__: [13]
|
|
13075
13075
|
}),
|
|
13076
|
-
|
|
13076
|
+
Z(" " + y(a.form.file.name), 1)
|
|
13077
13077
|
]),
|
|
13078
13078
|
w(l, {
|
|
13079
13079
|
icon: "",
|
|
@@ -13086,7 +13086,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13086
13086
|
default: x(() => [
|
|
13087
13087
|
w(m, { size: "16" }, {
|
|
13088
13088
|
default: x(() => e[14] || (e[14] = [
|
|
13089
|
-
|
|
13089
|
+
Z("mdi-close", -1)
|
|
13090
13090
|
])),
|
|
13091
13091
|
_: 1,
|
|
13092
13092
|
__: [14]
|
|
@@ -13108,7 +13108,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13108
13108
|
onClick: r.handleReset
|
|
13109
13109
|
}, {
|
|
13110
13110
|
default: x(() => [
|
|
13111
|
-
|
|
13111
|
+
Z(y(t.$t("actions.reset")), 1)
|
|
13112
13112
|
]),
|
|
13113
13113
|
_: 1
|
|
13114
13114
|
}, 8, ["onClick"]),
|
|
@@ -13121,7 +13121,7 @@ function $p(t, e, o, i, a, r) {
|
|
|
13121
13121
|
loading: a.uploading
|
|
13122
13122
|
}, {
|
|
13123
13123
|
default: x(() => [
|
|
13124
|
-
|
|
13124
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
13125
13125
|
]),
|
|
13126
13126
|
_: 1
|
|
13127
13127
|
}, 8, ["loading"])
|
|
@@ -13233,7 +13233,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13233
13233
|
w(m, { class: "px-4 text-body-1" }, {
|
|
13234
13234
|
default: x(() => [
|
|
13235
13235
|
n("div", au, [
|
|
13236
|
-
|
|
13236
|
+
Z(y(t.$t("marker.groupName")), 1),
|
|
13237
13237
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
13238
13238
|
]),
|
|
13239
13239
|
w(d, {
|
|
@@ -13260,7 +13260,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13260
13260
|
onClick: r.handleClose
|
|
13261
13261
|
}, {
|
|
13262
13262
|
default: x(() => [
|
|
13263
|
-
|
|
13263
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
13264
13264
|
]),
|
|
13265
13265
|
_: 1
|
|
13266
13266
|
}, 8, ["onClick"]),
|
|
@@ -13273,7 +13273,7 @@ function iu(t, e, o, i, a, r) {
|
|
|
13273
13273
|
onClick: r.handleConfirm
|
|
13274
13274
|
}, {
|
|
13275
13275
|
default: x(() => [
|
|
13276
|
-
|
|
13276
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
13277
13277
|
]),
|
|
13278
13278
|
_: 1
|
|
13279
13279
|
}, 8, ["loading", "onClick"])
|
|
@@ -13372,7 +13372,7 @@ function cu(t, e, o, i, a, r) {
|
|
|
13372
13372
|
onClick: r.handleClose
|
|
13373
13373
|
}, {
|
|
13374
13374
|
default: x(() => [
|
|
13375
|
-
|
|
13375
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
13376
13376
|
]),
|
|
13377
13377
|
_: 1
|
|
13378
13378
|
}, 8, ["onClick"]),
|
|
@@ -13385,7 +13385,7 @@ function cu(t, e, o, i, a, r) {
|
|
|
13385
13385
|
onClick: r.handleDelete
|
|
13386
13386
|
}, {
|
|
13387
13387
|
default: x(() => [
|
|
13388
|
-
|
|
13388
|
+
Z(y(t.$t("actions.delete")), 1)
|
|
13389
13389
|
]),
|
|
13390
13390
|
_: 1
|
|
13391
13391
|
}, 8, ["loading", "onClick"])
|
|
@@ -13611,27 +13611,27 @@ const du = {
|
|
|
13611
13611
|
const [f, k] = s.geometry.coordinates, v = `<div style="font-size:12px;line-height:1.5;">
|
|
13612
13612
|
<div style="font-weight:600;">${m}</div>
|
|
13613
13613
|
<div>${X.lat2pretty(k, 4).pretty}, ${X.lng2pretty(f, 4).pretty}</div>
|
|
13614
|
-
</div>`,
|
|
13614
|
+
</div>`, C = new ye.Popup({
|
|
13615
13615
|
offset: 40,
|
|
13616
13616
|
closeButton: !1,
|
|
13617
13617
|
closeOnClick: !1,
|
|
13618
13618
|
anchor: "bottom",
|
|
13619
13619
|
className: "marker-popup-dark"
|
|
13620
13620
|
}).setHTML(v), L = new ye.Marker({ color: p }).setLngLat([f, k]).addTo(this.map), P = L.getElement();
|
|
13621
|
-
P.addEventListener("mouseenter", () =>
|
|
13621
|
+
P.addEventListener("mouseenter", () => C.setLngLat([f, k]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(L);
|
|
13622
13622
|
} else
|
|
13623
13623
|
d === "MultiPoint" && s.geometry.coordinates.forEach(([f, k]) => {
|
|
13624
13624
|
const v = `<div style="font-size:12px;line-height:1.5;">
|
|
13625
13625
|
<div style="font-weight:600;">${m}</div>
|
|
13626
13626
|
<div>${X.lat2pretty(k, 4).pretty}, ${X.lng2pretty(f, 4).pretty}</div>
|
|
13627
|
-
</div>`,
|
|
13627
|
+
</div>`, C = new ye.Popup({
|
|
13628
13628
|
offset: 40,
|
|
13629
13629
|
closeButton: !1,
|
|
13630
13630
|
closeOnClick: !1,
|
|
13631
13631
|
anchor: "bottom",
|
|
13632
13632
|
className: "marker-popup-dark"
|
|
13633
13633
|
}).setHTML(v), L = new ye.Marker({ color: p }).setLngLat([f, k]).addTo(this.map), P = L.getElement();
|
|
13634
|
-
P.addEventListener("mouseenter", () =>
|
|
13634
|
+
P.addEventListener("mouseenter", () => C.setLngLat([f, k]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(L);
|
|
13635
13635
|
});
|
|
13636
13636
|
}), this.layerMarkers[t.id] = c;
|
|
13637
13637
|
}
|
|
@@ -13775,7 +13775,7 @@ const du = {
|
|
|
13775
13775
|
}, Au = { class: "text-body-1" }, ku = {
|
|
13776
13776
|
key: 2,
|
|
13777
13777
|
class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto"
|
|
13778
|
-
}, Lu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, zu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" },
|
|
13778
|
+
}, Lu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, zu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Cu = ["onClick"], _u = { key: 0 }, Mu = {
|
|
13779
13779
|
key: 0,
|
|
13780
13780
|
class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
|
|
13781
13781
|
}, Pu = { class: "d-flex align-center justify-start ga-2" }, Su = { class: "font-weight-600 layer-name" }, Tu = {
|
|
@@ -13784,7 +13784,7 @@ const du = {
|
|
|
13784
13784
|
};
|
|
13785
13785
|
function Ru(t, e, o, i, a, r) {
|
|
13786
13786
|
var R;
|
|
13787
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), u = M("VChip"), b = M("VListItemTitle"), g = M("VListItem"), h = M("VList"), f = M("VCard"), k = M("VMenu"), v = M("VDivider"),
|
|
13787
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), u = M("VChip"), b = M("VListItemTitle"), g = M("VListItem"), h = M("VList"), f = M("VCard"), k = M("VMenu"), v = M("VDivider"), C = M("IdmDrawMarker"), L = M("IdmImportMarker"), P = M("IdmGroupDialog"), z = M("DeleteDialog");
|
|
13788
13788
|
return A(), I("div", hu, [
|
|
13789
13789
|
n("div", {
|
|
13790
13790
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13892,7 +13892,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13892
13892
|
onClick: e[2] || (e[2] = (S) => r.handleOpenDrawMarkers())
|
|
13893
13893
|
}, {
|
|
13894
13894
|
default: x(() => [
|
|
13895
|
-
|
|
13895
|
+
Z(y(t.$t("actions.add")), 1)
|
|
13896
13896
|
]),
|
|
13897
13897
|
_: 1
|
|
13898
13898
|
}),
|
|
@@ -13907,7 +13907,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13907
13907
|
onClick: r.handleOpenImportDialog
|
|
13908
13908
|
}, {
|
|
13909
13909
|
default: x(() => [
|
|
13910
|
-
|
|
13910
|
+
Z(y(t.$t("actions.import")), 1)
|
|
13911
13911
|
]),
|
|
13912
13912
|
_: 1
|
|
13913
13913
|
}, 8, ["onClick"])
|
|
@@ -13958,7 +13958,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13958
13958
|
default: x(() => {
|
|
13959
13959
|
var B;
|
|
13960
13960
|
return [
|
|
13961
|
-
|
|
13961
|
+
Z(y((B = S.layers) == null ? void 0 : B.length), 1)
|
|
13962
13962
|
];
|
|
13963
13963
|
}),
|
|
13964
13964
|
_: 2
|
|
@@ -13966,9 +13966,9 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13966
13966
|
n("div", {
|
|
13967
13967
|
class: "",
|
|
13968
13968
|
onClick: (B) => S.show = !S.show
|
|
13969
|
-
}, y(S.name), 9,
|
|
13969
|
+
}, y(S.name), 9, Cu)
|
|
13970
13970
|
]),
|
|
13971
|
-
S.name !== "Custom Layers" && !o.simple ? (A(), I("div",
|
|
13971
|
+
S.name !== "Custom Layers" && !o.simple ? (A(), I("div", _u, [
|
|
13972
13972
|
w(l, {
|
|
13973
13973
|
icon: "",
|
|
13974
13974
|
density: "compact",
|
|
@@ -14131,7 +14131,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
14131
14131
|
}), 128))
|
|
14132
14132
|
]))
|
|
14133
14133
|
], 6),
|
|
14134
|
-
a.drawDialog ? (A(), j(
|
|
14134
|
+
a.drawDialog ? (A(), j(C, {
|
|
14135
14135
|
ref: "drawDialog",
|
|
14136
14136
|
key: ((R = a.currentLayer) == null ? void 0 : R.id) || "new",
|
|
14137
14137
|
map: o.map,
|
|
@@ -14292,7 +14292,7 @@ function vi(t) {
|
|
|
14292
14292
|
i.onload = () => e(String(i.result || "")), i.onerror = () => o(new Error("read_failed")), i.readAsDataURL(t);
|
|
14293
14293
|
});
|
|
14294
14294
|
}
|
|
14295
|
-
function
|
|
14295
|
+
function Wu(t, e) {
|
|
14296
14296
|
return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
|
|
14297
14297
|
}
|
|
14298
14298
|
async function Ke(t, e = {}) {
|
|
@@ -14303,7 +14303,7 @@ async function Ke(t, e = {}) {
|
|
|
14303
14303
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1 };
|
|
14304
14304
|
if (o === "dataURL")
|
|
14305
14305
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1, mime: String(t).slice(5).split(";")[0] || "" };
|
|
14306
|
-
let [, f = "", k = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [], v = /;base64/i.test(f) ? atob(k) : decodeURIComponent(k),
|
|
14306
|
+
let [, f = "", k = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [], v = /;base64/i.test(f) ? atob(k) : decodeURIComponent(k), C = new Uint8Array([...v].map((P) => P.charCodeAt(0))), L = new Blob([C], { type: (f || "").split(";")[0] || "" });
|
|
14307
14307
|
return { ok: !0, data: L, status: 200, url: t, fromCache: !1, mime: L.type || "" };
|
|
14308
14308
|
} catch {
|
|
14309
14309
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "special_url_error" };
|
|
@@ -14320,7 +14320,7 @@ async function Ke(t, e = {}) {
|
|
|
14320
14320
|
}
|
|
14321
14321
|
if (/^about:blank$/i.test(t))
|
|
14322
14322
|
return o === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: o === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
|
|
14323
|
-
let s =
|
|
14323
|
+
let s = Wu(t, { as: o, timeout: i, useProxy: a, errorTTL: r }), d = Yo.get(s);
|
|
14324
14324
|
if (d && d.until > Date.now())
|
|
14325
14325
|
return { ...d.result, fromCache: !0 };
|
|
14326
14326
|
d && Yo.delete(s);
|
|
@@ -14339,12 +14339,12 @@ async function Ke(t, e = {}) {
|
|
|
14339
14339
|
try {
|
|
14340
14340
|
let f = await fetch(p, { signal: b.signal, credentials: u, headers: l });
|
|
14341
14341
|
if (!f.ok) {
|
|
14342
|
-
let
|
|
14343
|
-
if (r > 0 && Yo.set(s, { until: Date.now() + r, result:
|
|
14342
|
+
let C = { ok: !1, data: null, status: f.status, url: p, fromCache: !1, reason: "http_error" };
|
|
14343
|
+
if (r > 0 && Yo.set(s, { until: Date.now() + r, result: C }), !c) {
|
|
14344
14344
|
let L = `${f.status} ${f.statusText || ""}`.trim();
|
|
14345
14345
|
xi.warnOnce(`http:${f.status}:${o}:${new URL(t, (location == null ? void 0 : location.href) ?? "http://localhost/").origin}`, `HTTP error ${L} while fetching ${o} ${t}`);
|
|
14346
14346
|
}
|
|
14347
|
-
return e.onError && e.onError(
|
|
14347
|
+
return e.onError && e.onError(C), C;
|
|
14348
14348
|
}
|
|
14349
14349
|
if (o === "text")
|
|
14350
14350
|
return { ok: !0, data: await f.text(), status: f.status, url: p, fromCache: !1 };
|
|
@@ -14353,8 +14353,8 @@ async function Ke(t, e = {}) {
|
|
|
14353
14353
|
} catch (f) {
|
|
14354
14354
|
let k = 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: k };
|
|
14355
14355
|
if (!/^blob:/i.test(t) && r > 0 && Yo.set(s, { until: Date.now() + r, result: v }), !c) {
|
|
14356
|
-
let
|
|
14357
|
-
xi.errorOnce(
|
|
14356
|
+
let C = `${k}:${o}:${new URL(t, (location == null ? void 0 : location.href) ?? "http://localhost/").origin}`, L = k === "timeout" ? `Timeout after ${i}ms. Consider increasing timeout or using a proxy for ${t}` : k === "abort" ? `Request aborted while fetching ${o} ${t}` : `Network/CORS issue while fetching ${o} ${t}. A proxy may be required`;
|
|
14357
|
+
xi.errorOnce(C, L);
|
|
14358
14358
|
}
|
|
14359
14359
|
return e.onError && e.onError(v), v;
|
|
14360
14360
|
} finally {
|
|
@@ -14381,7 +14381,7 @@ async function Vi(t, e = {}) {
|
|
|
14381
14381
|
return V.background.set(i, null), "none";
|
|
14382
14382
|
}
|
|
14383
14383
|
}
|
|
14384
|
-
var
|
|
14384
|
+
var Zu = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), ya = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
|
|
14385
14385
|
function Vu(t) {
|
|
14386
14386
|
if (t = String(t).toLowerCase(), ya.has(t)) {
|
|
14387
14387
|
let r = {};
|
|
@@ -14560,10 +14560,10 @@ async function ig(t, e) {
|
|
|
14560
14560
|
let p = (s || c).textContent.trim();
|
|
14561
14561
|
if (!p)
|
|
14562
14562
|
continue;
|
|
14563
|
-
let u = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g = og(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: k, width: v, height:
|
|
14563
|
+
let u = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g = og(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: k, width: v, height: C } = await ag(p, { family: m, weight: b, fontSize: u, color: g, variation: h, className: f });
|
|
14564
14564
|
c.textContent = "";
|
|
14565
14565
|
let L = c.ownerDocument.createElement("img");
|
|
14566
|
-
L.src = k, L.alt = p, L.style.height = `${u}px`, L.style.width = `${Math.max(1, Math.round(v /
|
|
14566
|
+
L.src = k, L.alt = p, L.style.height = `${u}px`, L.style.width = `${Math.max(1, Math.round(v / C * u))}px`, L.style.objectFit = "contain", L.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(L), r++;
|
|
14567
14567
|
} catch {
|
|
14568
14568
|
}
|
|
14569
14569
|
}
|
|
@@ -14835,7 +14835,7 @@ function fg(t) {
|
|
|
14835
14835
|
return t;
|
|
14836
14836
|
let e = /@font-face[^{}]*\{[^}]*\}/gi, o = /* @__PURE__ */ new Set(), i = [];
|
|
14837
14837
|
for (let p of t.match(e) || []) {
|
|
14838
|
-
let u = ((r = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "", b = ta(u), g = (((l = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : l[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(), k = (((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(),
|
|
14838
|
+
let u = ((r = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "", b = ta(u), g = (((l = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : l[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(), k = (((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 = ba(v, location.href), L = C.length ? C.map((z) => String(z).toLowerCase()).sort().join("|") : v.toLowerCase(), P = [String(b || "").toLowerCase(), g, h, f, k.toLowerCase(), L].join("|");
|
|
14839
14839
|
o.has(P) || (o.add(P), i.push(p));
|
|
14840
14840
|
}
|
|
14841
14841
|
if (i.length === 0)
|
|
@@ -14899,7 +14899,7 @@ async function Qi(t, e, o, i) {
|
|
|
14899
14899
|
}
|
|
14900
14900
|
}
|
|
14901
14901
|
async function bg({ required: t, usedCodepoints: e, exclude: o = void 0, localFonts: i = [], useProxy: a = "" } = {}) {
|
|
14902
|
-
var h, f, k, v,
|
|
14902
|
+
var h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he;
|
|
14903
14903
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
14904
14904
|
let r = /* @__PURE__ */ new Map();
|
|
14905
14905
|
for (let E of t) {
|
|
@@ -14982,7 +14982,7 @@ async function bg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
14982
14982
|
let O = (((f = Y.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), ee = ta(O);
|
|
14983
14983
|
if (!ee || Qe(ee))
|
|
14984
14984
|
continue;
|
|
14985
|
-
let D = (((k = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : k[1]) || "400").trim(), le = (((v = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "normal").trim(), fe = (((
|
|
14985
|
+
let D = (((k = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : k[1]) || "400").trim(), le = (((v = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "normal").trim(), fe = (((C = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : C[1]) || "100%").trim(), Ae = (((L = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "").trim(), ze = (((P = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : P[1]) || "").trim(), ce = ba(ze, E.href);
|
|
14986
14986
|
if (!l(ee, le, D, fe))
|
|
14987
14987
|
continue;
|
|
14988
14988
|
let be = Ui(Ae);
|
|
@@ -15155,8 +15155,8 @@ async function Ag(t, e, o, i = {}) {
|
|
|
15155
15155
|
let f = p.getPropertyValue(h);
|
|
15156
15156
|
if (!f || f === "none")
|
|
15157
15157
|
continue;
|
|
15158
|
-
let k = Yi(f), v = await Promise.all(k.map((
|
|
15159
|
-
v.some((
|
|
15158
|
+
let k = Yi(f), v = await Promise.all(k.map((C) => Vi(C, i)));
|
|
15159
|
+
v.some((C) => C && C !== "none" && !/^url\(undefined/.test(C)) && m.style.setProperty(h, v.join(", "));
|
|
15160
15160
|
}
|
|
15161
15161
|
for (let h of l) {
|
|
15162
15162
|
let f = p.getPropertyValue(h);
|
|
@@ -15243,29 +15243,29 @@ function zg(t) {
|
|
|
15243
15243
|
o && o.name && !e.some((i) => i.name === o.name) && e.push(o);
|
|
15244
15244
|
return Object.freeze(e);
|
|
15245
15245
|
}
|
|
15246
|
-
function
|
|
15246
|
+
function Cg(t, e, o = !1) {
|
|
15247
15247
|
return !t || t.plugins && !o || (t.plugins = zg(e)), t;
|
|
15248
15248
|
}
|
|
15249
|
-
var
|
|
15250
|
-
function
|
|
15249
|
+
var Ci = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new Map(), ca = 0;
|
|
15250
|
+
function Wo() {
|
|
15251
15251
|
ca++;
|
|
15252
15252
|
}
|
|
15253
|
-
var
|
|
15254
|
-
function
|
|
15253
|
+
var _i = !1;
|
|
15254
|
+
function _g(t = document.documentElement) {
|
|
15255
15255
|
var e, o;
|
|
15256
|
-
if (!
|
|
15257
|
-
|
|
15256
|
+
if (!_i) {
|
|
15257
|
+
_i = !0;
|
|
15258
15258
|
try {
|
|
15259
|
-
new MutationObserver(() =>
|
|
15259
|
+
new MutationObserver(() => Wo()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15260
15260
|
} catch {
|
|
15261
15261
|
}
|
|
15262
15262
|
try {
|
|
15263
|
-
new MutationObserver(() =>
|
|
15263
|
+
new MutationObserver(() => Wo()).observe(document.head, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15264
15264
|
} catch {
|
|
15265
15265
|
}
|
|
15266
15266
|
try {
|
|
15267
15267
|
let i = document.fonts;
|
|
15268
|
-
i && ((e = i.addEventListener) == null || e.call(i, "loadingdone",
|
|
15268
|
+
i && ((e = i.addEventListener) == null || e.call(i, "loadingdone", Wo), (o = i.ready) == null || o.then(() => Wo()).catch(() => {
|
|
15269
15269
|
}));
|
|
15270
15270
|
} catch {
|
|
15271
15271
|
}
|
|
@@ -15303,11 +15303,11 @@ function Pg(t) {
|
|
|
15303
15303
|
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(";"), Mi.set(t, e), e);
|
|
15304
15304
|
}
|
|
15305
15305
|
function Sg(t, e = null, o = {}) {
|
|
15306
|
-
let i =
|
|
15306
|
+
let i = Ci.get(t);
|
|
15307
15307
|
if (i && i.epoch === ca)
|
|
15308
15308
|
return i.snapshot;
|
|
15309
15309
|
let a = e || getComputedStyle(t), r = Mg(a, o);
|
|
15310
|
-
return Gg(t, a, r),
|
|
15310
|
+
return Gg(t, a, r), Ci.set(t, { epoch: ca, snapshot: r }), r;
|
|
15311
15311
|
}
|
|
15312
15312
|
function Tg(t, e) {
|
|
15313
15313
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: sa, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: e || {} } : { session: V.session, persist: { snapshotKeyCache: sa, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: t || e || {} };
|
|
@@ -15317,7 +15317,7 @@ async function st(t, e, o, i) {
|
|
|
15317
15317
|
if (t.tagName === "STYLE")
|
|
15318
15318
|
return;
|
|
15319
15319
|
let a = Tg(o, i), r = a.options && a.options.cache || "auto";
|
|
15320
|
-
if (r !== "disabled" &&
|
|
15320
|
+
if (r !== "disabled" && _g(document.documentElement), r === "disabled" && !a.session.__bumpedForDisabled && (Wo(), sa.clear(), a.session.__bumpedForDisabled = !0), ya.has((u = t.tagName) == null ? void 0 : u.toLowerCase())) {
|
|
15321
15321
|
let h = (b = t.getAttribute) == null ? void 0 : b.call(t, "style");
|
|
15322
15322
|
h && e.setAttribute("style", h);
|
|
15323
15323
|
}
|
|
@@ -15476,13 +15476,13 @@ function Ng(t, e, o = !0) {
|
|
|
15476
15476
|
return `:where(${e} ${a})`;
|
|
15477
15477
|
}).join(", ");
|
|
15478
15478
|
}
|
|
15479
|
-
function
|
|
15479
|
+
function Wg(t, e) {
|
|
15480
15480
|
return t ? (t = t.replace(/:host\(([^)]+)\)/g, (o, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (o, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (o, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (o, i, a, r) => {
|
|
15481
15481
|
let l = Ng(r, e, !0);
|
|
15482
15482
|
return `${i}${a}${l}{`;
|
|
15483
15483
|
}), t) : "";
|
|
15484
15484
|
}
|
|
15485
|
-
function
|
|
15485
|
+
function Zg(t) {
|
|
15486
15486
|
return t.shadowScopeSeq = (t.shadowScopeSeq || 0) + 1, `s${t.shadowScopeSeq}`;
|
|
15487
15487
|
}
|
|
15488
15488
|
function Vg(t) {
|
|
@@ -15606,7 +15606,7 @@ async function $g(t, e, o) {
|
|
|
15606
15606
|
return e.nodeMap.set(p, t), st(t, p, e, o), p.style.overflow = "hidden", p.style.display = "block", p.style.width || (p.style.width = `${Math.round(l.width)}px`), p.style.height || (p.style.height = `${Math.round(l.height)}px`), p.appendChild(m), p;
|
|
15607
15607
|
}
|
|
15608
15608
|
var Bo = /* @__PURE__ */ new Map();
|
|
15609
|
-
async function
|
|
15609
|
+
async function Zo(t) {
|
|
15610
15610
|
var o;
|
|
15611
15611
|
if ((o = V.resource) != null && o.has(t))
|
|
15612
15612
|
return V.resource.get(t);
|
|
@@ -15637,7 +15637,7 @@ async function Si(t) {
|
|
|
15637
15637
|
let o = t;
|
|
15638
15638
|
for (let i of e)
|
|
15639
15639
|
try {
|
|
15640
|
-
let a = await
|
|
15640
|
+
let a = await Zo(i);
|
|
15641
15641
|
o = o.split(i).join(a);
|
|
15642
15642
|
} catch {
|
|
15643
15643
|
}
|
|
@@ -15664,7 +15664,7 @@ async function a0(t) {
|
|
|
15664
15664
|
try {
|
|
15665
15665
|
let d = s.getAttribute("src") || s.currentSrc || "";
|
|
15666
15666
|
if (Ho(d)) {
|
|
15667
|
-
let p = await
|
|
15667
|
+
let p = await Zo(d);
|
|
15668
15668
|
s.setAttribute("src", p);
|
|
15669
15669
|
}
|
|
15670
15670
|
let m = s.getAttribute("srcset");
|
|
@@ -15673,7 +15673,7 @@ async function a0(t) {
|
|
|
15673
15673
|
for (let b of p)
|
|
15674
15674
|
if (Ho(b.url))
|
|
15675
15675
|
try {
|
|
15676
|
-
b.url = await
|
|
15676
|
+
b.url = await Zo(b.url), u = !0;
|
|
15677
15677
|
} catch {
|
|
15678
15678
|
}
|
|
15679
15679
|
u && s.setAttribute("srcset", o0(p));
|
|
@@ -15685,7 +15685,7 @@ async function a0(t) {
|
|
|
15685
15685
|
try {
|
|
15686
15686
|
let d = "http://www.w3.org/1999/xlink", m = s.getAttribute("href") || ((l = s.getAttributeNS) == null ? void 0 : l.call(s, d, "href"));
|
|
15687
15687
|
if (Ho(m)) {
|
|
15688
|
-
let p = await
|
|
15688
|
+
let p = await Zo(m);
|
|
15689
15689
|
s.setAttribute("href", p), (c = s.removeAttributeNS) == null || c.call(s, d, "href");
|
|
15690
15690
|
}
|
|
15691
15691
|
} catch {
|
|
@@ -15713,7 +15713,7 @@ async function a0(t) {
|
|
|
15713
15713
|
for (let m of d)
|
|
15714
15714
|
try {
|
|
15715
15715
|
let p = m.getAttribute(s);
|
|
15716
|
-
Ho(p) && m.setAttribute(s, await
|
|
15716
|
+
Ho(p) && m.setAttribute(s, await Zo(p));
|
|
15717
15717
|
} catch {
|
|
15718
15718
|
}
|
|
15719
15719
|
}
|
|
@@ -15725,7 +15725,7 @@ async function Ko(t, e, o) {
|
|
|
15725
15725
|
let i = /* @__PURE__ */ new Set(), a = null, r = null;
|
|
15726
15726
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
15727
15727
|
let h = (t.localName || t.tagName || "").toLowerCase();
|
|
15728
|
-
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") ||
|
|
15728
|
+
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || Zu.has(h))
|
|
15729
15729
|
return null;
|
|
15730
15730
|
}
|
|
15731
15731
|
if (t.nodeType === Node.TEXT_NODE || t.nodeType !== Node.ELEMENT_NODE)
|
|
@@ -15805,8 +15805,8 @@ async function Ko(t, e, o) {
|
|
|
15805
15805
|
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15806
15806
|
let v = document.createElement("canvas");
|
|
15807
15807
|
v.width = t.width, v.height = t.height;
|
|
15808
|
-
let
|
|
15809
|
-
|
|
15808
|
+
let C = v.getContext("2d");
|
|
15809
|
+
C && (C.drawImage(t, 0, 0), h = v.toDataURL("image/png"));
|
|
15810
15810
|
}
|
|
15811
15811
|
}
|
|
15812
15812
|
} catch {
|
|
@@ -15831,8 +15831,8 @@ async function Ko(t, e, o) {
|
|
|
15831
15831
|
try {
|
|
15832
15832
|
let h = t.getBoundingClientRect(), f = Math.round(h.width || 0), k = Math.round(h.height || 0);
|
|
15833
15833
|
if (!f || !k) {
|
|
15834
|
-
let v = window.getComputedStyle(t),
|
|
15835
|
-
f = Math.round(f ||
|
|
15834
|
+
let v = window.getComputedStyle(t), C = parseFloat(v.width) || 0, L = parseFloat(v.height) || 0, P = parseInt(t.getAttribute("width") || "", 10) || 0, z = parseInt(t.getAttribute("height") || "", 10) || 0, R = t.width || t.naturalWidth || 0, S = t.height || t.naturalHeight || 0;
|
|
15835
|
+
f = Math.round(f || C || P || R || 0), k = Math.round(k || L || z || S || 0);
|
|
15836
15836
|
}
|
|
15837
15837
|
f && (l.dataset.snapdomWidth = String(f)), k && (l.dataset.snapdomHeight = String(k));
|
|
15838
15838
|
} catch {
|
|
@@ -15841,8 +15841,8 @@ async function Ko(t, e, o) {
|
|
|
15841
15841
|
let h = t.getAttribute("style") || "", f = window.getComputedStyle(t), k = (z) => {
|
|
15842
15842
|
let R = h.match(new RegExp(`${z}\\s*:\\s*([^;]+)`, "i")), S = R ? R[1].trim() : f.getPropertyValue(z);
|
|
15843
15843
|
return /%|auto/i.test(String(S || ""));
|
|
15844
|
-
}, v = parseInt(l.dataset.snapdomWidth || "0", 10),
|
|
15845
|
-
L && v && (l.style.width = `${v}px`), P &&
|
|
15844
|
+
}, v = parseInt(l.dataset.snapdomWidth || "0", 10), C = parseInt(l.dataset.snapdomHeight || "0", 10), L = k("width") || !v, P = k("height") || !C;
|
|
15845
|
+
L && v && (l.style.width = `${v}px`), P && C && (l.style.height = `${C}px`), v && (l.style.minWidth = `${v}px`), C && (l.style.minHeight = `${C}px`);
|
|
15846
15846
|
} catch {
|
|
15847
15847
|
}
|
|
15848
15848
|
}
|
|
@@ -15877,13 +15877,13 @@ async function Ko(t, e, o) {
|
|
|
15877
15877
|
}
|
|
15878
15878
|
} catch {
|
|
15879
15879
|
}
|
|
15880
|
-
let f =
|
|
15880
|
+
let f = Zg(e), k = `[data-sd="${f}"]`;
|
|
15881
15881
|
try {
|
|
15882
15882
|
l.setAttribute("data-sd", f);
|
|
15883
15883
|
} catch {
|
|
15884
15884
|
}
|
|
15885
|
-
let v = Vg(t.shadowRoot),
|
|
15886
|
-
Xg(l, P +
|
|
15885
|
+
let v = Vg(t.shadowRoot), C = Wg(v, k), L = Yg(v), P = Ug(t, L, k);
|
|
15886
|
+
Xg(l, P + C, f);
|
|
15887
15887
|
let z = document.createDocumentFragment(), R = await aa(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15888
15888
|
z.append(...R.filter((S) => !!S)), l.appendChild(z);
|
|
15889
15889
|
}
|
|
@@ -15894,8 +15894,8 @@ async function Ko(t, e, o) {
|
|
|
15894
15894
|
}).catch(() => {
|
|
15895
15895
|
P(null);
|
|
15896
15896
|
});
|
|
15897
|
-
}, f = ((g = t.assignedNodes) == null ? void 0 : g.call(t, { flatten: !0 })) || [], k = f.length > 0 ? f : Array.from(t.childNodes), v = document.createDocumentFragment(),
|
|
15898
|
-
return v.append(...
|
|
15897
|
+
}, f = ((g = t.assignedNodes) == null ? void 0 : g.call(t, { flatten: !0 })) || [], k = f.length > 0 ? f : Array.from(t.childNodes), v = document.createDocumentFragment(), C = await aa(Array.from(k), h, o.fast);
|
|
15898
|
+
return v.append(...C.filter((L) => !!L)), v;
|
|
15899
15899
|
}
|
|
15900
15900
|
function c(h, f) {
|
|
15901
15901
|
if (i.has(h))
|
|
@@ -15971,7 +15971,7 @@ function l0(t) {
|
|
|
15971
15971
|
b.set(g, h.slice());
|
|
15972
15972
|
return b;
|
|
15973
15973
|
}, s = (u, b, g) => {
|
|
15974
|
-
var v,
|
|
15974
|
+
var v, C;
|
|
15975
15975
|
let h = c(u), f;
|
|
15976
15976
|
try {
|
|
15977
15977
|
f = ((v = g.style) == null ? void 0 : v.counterReset) || getComputedStyle(g).counterReset;
|
|
@@ -15991,7 +15991,7 @@ function l0(t) {
|
|
|
15991
15991
|
}
|
|
15992
15992
|
let k;
|
|
15993
15993
|
try {
|
|
15994
|
-
k = ((
|
|
15994
|
+
k = ((C = g.style) == null ? void 0 : C.counterIncrement) || getComputedStyle(g).counterIncrement;
|
|
15995
15995
|
} catch {
|
|
15996
15996
|
}
|
|
15997
15997
|
if (k && k !== "none")
|
|
@@ -16270,7 +16270,7 @@ async function or(t, e, o, i) {
|
|
|
16270
16270
|
e.replaceChild(ce, O), e.insertBefore(fe, ce);
|
|
16271
16271
|
continue;
|
|
16272
16272
|
}
|
|
16273
|
-
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } = d0(t, u, l), v = b.backgroundImage,
|
|
16273
|
+
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } = d0(t, u, l), v = b.backgroundImage, C = b.backgroundColor, L = b.fontFamily, P = parseInt(b.fontSize) || 32, z = parseInt(b.fontWeight) || !1, R = b.color || "#000", S = b.borderStyle, F = parseFloat(b.borderWidth), N = b.transform, B = Qe(L), Q = !h && f !== "", q = v && v !== "none", oe = C && C !== "transparent" && C !== "rgba(0, 0, 0, 0)", ge = S && S !== "none" && F > 0, he = N && N !== "none";
|
|
16274
16274
|
if (!(Q || q || oe || ge || he)) {
|
|
16275
16275
|
if (k && k.length && t.parentElement) {
|
|
16276
16276
|
let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
@@ -16313,7 +16313,7 @@ async function or(t, e, o, i) {
|
|
|
16313
16313
|
} catch (Y) {
|
|
16314
16314
|
console.warn(`[snapdom] Failed to inline background-image for ${u}`, Y);
|
|
16315
16315
|
}
|
|
16316
|
-
oe && (E.style.backgroundColor =
|
|
16316
|
+
oe && (E.style.backgroundColor = C);
|
|
16317
16317
|
let ae = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || q || oe || ge || he;
|
|
16318
16318
|
if (k && k.length && t.parentElement) {
|
|
16319
16319
|
let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map(), O = da(t, l), ee = ha(t, getComputedStyle(t, u), O);
|
|
@@ -16406,25 +16406,25 @@ function h0(t, e) {
|
|
|
16406
16406
|
};
|
|
16407
16407
|
if (!p.size)
|
|
16408
16408
|
return;
|
|
16409
|
-
let v = new Set(p),
|
|
16409
|
+
let v = new Set(p), C = /* @__PURE__ */ new Set();
|
|
16410
16410
|
for (; v.size; ) {
|
|
16411
16411
|
let z = v.values().next().value;
|
|
16412
|
-
if (v.delete(z), !z || m.has(z) ||
|
|
16412
|
+
if (v.delete(z), !z || m.has(z) || C.has(z))
|
|
16413
16413
|
continue;
|
|
16414
16414
|
let R = k(z);
|
|
16415
16415
|
if (!R) {
|
|
16416
|
-
|
|
16416
|
+
C.add(z);
|
|
16417
16417
|
continue;
|
|
16418
16418
|
}
|
|
16419
16419
|
f || (f = o.createElementNS("http://www.w3.org/2000/svg", "defs"), h.appendChild(f));
|
|
16420
16420
|
let S = R.cloneNode(!0);
|
|
16421
|
-
S.id || S.setAttribute("id", z), f.appendChild(S),
|
|
16421
|
+
S.id || S.setAttribute("id", z), f.appendChild(S), C.add(z), m.add(z);
|
|
16422
16422
|
let F = [S, ...S.querySelectorAll("*")];
|
|
16423
16423
|
for (let N of F) {
|
|
16424
16424
|
let B = d(N);
|
|
16425
16425
|
if (B && B.startsWith("#")) {
|
|
16426
16426
|
let q = B.slice(1).trim();
|
|
16427
|
-
q && !m.has(q) && !
|
|
16427
|
+
q && !m.has(q) && !C.has(q) && v.add(q);
|
|
16428
16428
|
}
|
|
16429
16429
|
let Q = ((L = N.getAttribute) == null ? void 0 : L.call(N, "style")) || "";
|
|
16430
16430
|
Q && b(Q, v);
|
|
@@ -16457,11 +16457,11 @@ function p0(t, e) {
|
|
|
16457
16457
|
let h = s.getBoundingClientRect(), f = h.width, k = h.height, v = h.left - i.left;
|
|
16458
16458
|
if (!(f > 0 && k > 0) || !Number.isFinite(v))
|
|
16459
16459
|
continue;
|
|
16460
|
-
let
|
|
16461
|
-
if (!Number.isFinite(
|
|
16460
|
+
let C = p != null ? p + o : o + (a - k - u);
|
|
16461
|
+
if (!Number.isFinite(C))
|
|
16462
16462
|
continue;
|
|
16463
16463
|
let L = Number.parseInt(d.zIndex, 10), P = Number.isFinite(L), z = P ? Math.max(L, 1) + 1 : 2, R = P ? L - 1 : 0, S = g.cloneNode(!1);
|
|
16464
|
-
S.setAttribute(r, "1"), S.style.position = "sticky", S.style.left = `${v}px`, S.style.top = `${
|
|
16464
|
+
S.setAttribute(r, "1"), S.style.position = "sticky", S.style.left = `${v}px`, S.style.top = `${C}px`, S.style.width = `${f}px`, S.style.height = `${k}px`, S.style.visibility = "hidden", S.style.zIndex = String(R), S.style.overflow = "hidden", S.style.background = "transparent", S.style.boxShadow = "none", S.style.filter = "none", (c = g.parentElement) == null || c.insertBefore(S, g), g.style.position = "absolute", g.style.left = `${v}px`, g.style.top = `${C}px`, g.style.bottom = "auto", g.style.zIndex = String(z), g.style.pointerEvents = "none";
|
|
16465
16465
|
}
|
|
16466
16466
|
}
|
|
16467
16467
|
function ji(t) {
|
|
@@ -16644,7 +16644,7 @@ function L0(t) {
|
|
|
16644
16644
|
function z0(t) {
|
|
16645
16645
|
return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
|
|
16646
16646
|
}
|
|
16647
|
-
function
|
|
16647
|
+
function C0(t, e) {
|
|
16648
16648
|
if (!t || !e || !e.style)
|
|
16649
16649
|
return;
|
|
16650
16650
|
let o = getComputedStyle(t);
|
|
@@ -16666,7 +16666,7 @@ function _0(t, e) {
|
|
|
16666
16666
|
} catch {
|
|
16667
16667
|
}
|
|
16668
16668
|
}
|
|
16669
|
-
function
|
|
16669
|
+
function _0(t) {
|
|
16670
16670
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), o = [];
|
|
16671
16671
|
for (; e.nextNode(); )
|
|
16672
16672
|
o.push(e.currentNode);
|
|
@@ -16698,7 +16698,7 @@ function M0(t, e = {}) {
|
|
|
16698
16698
|
}
|
|
16699
16699
|
}
|
|
16700
16700
|
function P0(t, e = {}) {
|
|
16701
|
-
t && (M0(t, e),
|
|
16701
|
+
t && (M0(t, e), _0(t));
|
|
16702
16702
|
}
|
|
16703
16703
|
function S0(t) {
|
|
16704
16704
|
var e;
|
|
@@ -16805,7 +16805,7 @@ function N0(t) {
|
|
|
16805
16805
|
}
|
|
16806
16806
|
return { bleed: { top: se(i), right: se(a), bottom: se(r), left: se(l) }, has: c };
|
|
16807
16807
|
}
|
|
16808
|
-
function
|
|
16808
|
+
function W0(t, e) {
|
|
16809
16809
|
if (!t || !e || !e.style)
|
|
16810
16810
|
return null;
|
|
16811
16811
|
let o = getComputedStyle(t);
|
|
@@ -16831,12 +16831,12 @@ function Z0(t, e) {
|
|
|
16831
16831
|
if (r.length === 6 && r.every(Number.isFinite)) {
|
|
16832
16832
|
let [l, c, s, d] = r, m = Math.sqrt(l * l + c * c) || 0, p = 0, u = 0, b = 0, g = 0, h = 0, f = 0;
|
|
16833
16833
|
m > 0 && (p = l / m, u = c / m, b = p * s + u * d, g = s - p * b, h = d - u * b, f = Math.sqrt(g * g + h * h) || 0, f > 0 ? b = b / f : b = 0);
|
|
16834
|
-
let k = m, v = 0,
|
|
16834
|
+
let k = m, v = 0, C = b * f, L = f;
|
|
16835
16835
|
try {
|
|
16836
|
-
e.style.transform = `matrix(${k}, ${v}, ${
|
|
16836
|
+
e.style.transform = `matrix(${k}, ${v}, ${C}, ${L}, 0, 0)`;
|
|
16837
16837
|
} catch {
|
|
16838
16838
|
}
|
|
16839
|
-
return { a: k, b: v, c:
|
|
16839
|
+
return { a: k, b: v, c: C, d: L };
|
|
16840
16840
|
}
|
|
16841
16841
|
}
|
|
16842
16842
|
try {
|
|
@@ -16849,7 +16849,7 @@ function Z0(t, e) {
|
|
|
16849
16849
|
function Bi(t, e, o, i, a) {
|
|
16850
16850
|
let r = o.a, l = o.b, c = o.c, s = o.d, d = o.e || 0, m = o.f || 0;
|
|
16851
16851
|
function p(k, v) {
|
|
16852
|
-
let
|
|
16852
|
+
let C = k - i, L = v - a, P = r * C + c * L, z = l * C + s * L;
|
|
16853
16853
|
return P += i + d, z += a + m, [P, z];
|
|
16854
16854
|
}
|
|
16855
16855
|
let u = [p(0, 0), p(t, 0), p(0, e), p(t, e)], b = 1 / 0, g = 1 / 0, h = -1 / 0, f = -1 / 0;
|
|
@@ -16857,7 +16857,7 @@ function Bi(t, e, o, i, a) {
|
|
|
16857
16857
|
k < b && (b = k), v < g && (g = v), k > h && (h = k), v > f && (f = v);
|
|
16858
16858
|
return { minX: b, minY: g, maxX: h, maxY: f, width: h - b, height: f - g };
|
|
16859
16859
|
}
|
|
16860
|
-
function
|
|
16860
|
+
function Z0(t, e, o) {
|
|
16861
16861
|
let i = (t.transformOrigin || "0 0").trim().split(/\s+/), [a, r] = [i[0] || "0", i[1] || "0"], l = (c, s) => {
|
|
16862
16862
|
let d = c.toLowerCase();
|
|
16863
16863
|
return d === "left" || d === "top" ? 0 : d === "center" ? s / 2 : d === "right" || d === "bottom" ? s : d.endsWith("px") ? parseFloat(d) || 0 : d.endsWith("%") ? (parseFloat(d) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(d) && parseFloat(d) || 0;
|
|
@@ -16895,8 +16895,8 @@ function V0(t) {
|
|
|
16895
16895
|
}
|
|
16896
16896
|
let h = u("translate");
|
|
16897
16897
|
if (h) {
|
|
16898
|
-
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, k = "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",
|
|
16899
|
-
e.translate = `${f}${v} ${k}${
|
|
16898
|
+
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, k = "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";
|
|
16899
|
+
e.translate = `${f}${v} ${k}${C}`;
|
|
16900
16900
|
} else {
|
|
16901
16901
|
let f = getComputedStyle(t);
|
|
16902
16902
|
e.translate = f.translate && f.translate !== "none" ? f.translate : null;
|
|
@@ -16945,44 +16945,44 @@ async function ir(t, e) {
|
|
|
16945
16945
|
await $e("beforeSnap", r), await $e("beforeClone", r);
|
|
16946
16946
|
let g = v0(r.element);
|
|
16947
16947
|
try {
|
|
16948
|
-
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b =
|
|
16948
|
+
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = W0(r.element, l)), !a && l && C0(r.element, l);
|
|
16949
16949
|
} finally {
|
|
16950
16950
|
g();
|
|
16951
16951
|
}
|
|
16952
16952
|
if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await $e("afterClone", r), P0(r.clone), ((v = r.options) == null ? void 0 : v.excludeMode) === "remove")
|
|
16953
16953
|
try {
|
|
16954
16954
|
I0(r.element, r.clone, r.styleCache);
|
|
16955
|
-
} catch (
|
|
16956
|
-
console.warn("[snapdom] shrink pass failed:",
|
|
16955
|
+
} catch (C) {
|
|
16956
|
+
console.warn("[snapdom] shrink pass failed:", C);
|
|
16957
16957
|
}
|
|
16958
16958
|
try {
|
|
16959
16959
|
await ig(r.clone, r.element);
|
|
16960
16960
|
} catch {
|
|
16961
16961
|
}
|
|
16962
|
-
await new Promise((
|
|
16962
|
+
await new Promise((C) => {
|
|
16963
16963
|
nt(async () => {
|
|
16964
|
-
await x0(r.clone, r.options),
|
|
16964
|
+
await x0(r.clone, r.options), C();
|
|
16965
16965
|
}, { fast: o });
|
|
16966
|
-
}), await new Promise((
|
|
16966
|
+
}), await new Promise((C) => {
|
|
16967
16967
|
nt(async () => {
|
|
16968
|
-
await Ag(r.element, r.clone, r.styleCache, r.options),
|
|
16968
|
+
await Ag(r.element, r.clone, r.styleCache, r.options), C();
|
|
16969
16969
|
}, { fast: o });
|
|
16970
|
-
}), e.embedFonts && await new Promise((
|
|
16970
|
+
}), e.embedFonts && await new Promise((C) => {
|
|
16971
16971
|
nt(async () => {
|
|
16972
16972
|
let L = wg(r.element), P = xg(r.element);
|
|
16973
16973
|
if (No()) {
|
|
16974
16974
|
let z = new Set(Array.from(L).map((R) => String(R).split("__")[0]).filter(Boolean));
|
|
16975
16975
|
await vg(z, 1);
|
|
16976
16976
|
}
|
|
16977
|
-
d = await bg({ required: L, usedCodepoints: P, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }),
|
|
16977
|
+
d = await bg({ required: L, usedCodepoints: P, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), C();
|
|
16978
16978
|
}, { fast: o });
|
|
16979
16979
|
});
|
|
16980
16980
|
let h = Hu(r.clone).sort(), f = h.join(",");
|
|
16981
|
-
V.baseStyle.has(f) ? m = V.baseStyle.get(f) : await new Promise((
|
|
16981
|
+
V.baseStyle.has(f) ? m = V.baseStyle.get(f) : await new Promise((C) => {
|
|
16982
16982
|
nt(() => {
|
|
16983
|
-
m = Uu(h), V.baseStyle.set(f, m),
|
|
16983
|
+
m = Uu(h), V.baseStyle.set(f, m), C();
|
|
16984
16984
|
}, { fast: o });
|
|
16985
|
-
}), r = { fontsCSS: d, baseCSS: m, ...r }, await $e("beforeRender", r), await new Promise((
|
|
16985
|
+
}), r = { fontsCSS: d, baseCSS: m, ...r }, await $e("beforeRender", r), await new Promise((C) => {
|
|
16986
16986
|
nt(() => {
|
|
16987
16987
|
var He;
|
|
16988
16988
|
let L = getComputedStyle(r.element), P = r.element.getBoundingClientRect(), z = Math.max(1, se(r.element.offsetWidth || parseFloat(L.width) || P.width || 1)), R = Math.max(1, se(r.element.offsetHeight || parseFloat(L.height) || P.height || 1));
|
|
@@ -17000,21 +17000,21 @@ async function ir(t, e) {
|
|
|
17000
17000
|
let H = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, ve = Bi(z, R, H, 0, 0);
|
|
17001
17001
|
he = se(ve.minX), E = se(ve.minY), J = se(ve.maxX), K = se(ve.maxY);
|
|
17002
17002
|
} else if (i && H0(r.element)) {
|
|
17003
|
-
let H = L.transform && L.transform !== "none" ? L.transform : "", ve = V0(r.element), Ee = O0({ baseTransform: H, rotate: ve.rotate || "0deg", scale: ve.scale, translate: ve.translate }), { ox:
|
|
17003
|
+
let H = L.transform && L.transform !== "none" ? L.transform : "", ve = V0(r.element), Ee = O0({ baseTransform: H, rotate: ve.rotate || "0deg", scale: ve.scale, translate: ve.translate }), { ox: Ze, oy: Ve } = Z0(L, z, R), te = Ee.is2D ? Ee : new DOMMatrix(Ee.toString()), Ne = Bi(z, R, te, Ze, Ve);
|
|
17004
17004
|
he = se(Ne.minX), E = se(Ne.minY), J = se(Ne.maxX), K = se(Ne.maxY);
|
|
17005
17005
|
}
|
|
17006
17006
|
let ae = F0(L), Y = j0(L), O = B0(L), ee = N0(L), D = a ? { top: se(ae.top + Y.top + O.top + ee.bleed.top), right: se(ae.right + Y.right + O.right + ee.bleed.right), bottom: se(ae.bottom + Y.bottom + O.bottom + ee.bleed.bottom), left: se(ae.left + Y.left + O.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
17007
17007
|
he = se(he - D.left), E = se(E - D.top), J = se(J + D.right), K = se(K + D.bottom);
|
|
17008
17008
|
let le = Math.max(1, se(J - he)), fe = Math.max(1, se(K - E)), Ae = q || oe ? se(B / z) : 1, ze = oe || q ? se(Q / R) : 1, ce = Math.max(1, se(le * Ae)), be = Math.max(1, se(fe * ze)), ke = "http://www.w3.org/2000/svg", Te = No() ? 1 : 0, $ = se(Te + (i ? 0 : 1)), me = document.createElementNS(ke, "foreignObject"), Ye = se(he), Be = se(E);
|
|
17009
17009
|
me.setAttribute("x", String(se(-(Ye - $)))), me.setAttribute("y", String(se(-(Be - $)))), me.setAttribute("width", String(se(z + $ * 2))), me.setAttribute("height", String(se(R + $ * 2))), me.style.overflow = "visible";
|
|
17010
|
-
let
|
|
17011
|
-
|
|
17010
|
+
let _e = document.createElement("style");
|
|
17011
|
+
_e.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, me.appendChild(_e);
|
|
17012
17012
|
let De = document.createElement("div");
|
|
17013
17013
|
De.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.style.width = `${se(z)}px`, De.style.height = `${se(R)}px`, De.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.appendChild(r.clone), me.appendChild(De);
|
|
17014
17014
|
let re = new XMLSerializer().serializeToString(me), Me = se(le + $ * 2), pe = se(fe + $ * 2), xe = q || oe;
|
|
17015
17015
|
e.meta = { w0: z, h0: R, vbW: Me, vbH: pe, targetW: B, targetH: Q };
|
|
17016
|
-
let
|
|
17017
|
-
u = `<svg xmlns="${ke}" width="${
|
|
17016
|
+
let We = No() && xe ? Me : se(ce + $ * 2), Ue = No() && xe ? pe : se(be + $ * 2);
|
|
17017
|
+
u = `<svg xmlns="${ke}" width="${We}" height="${Ue}" viewBox="0 0 ${Me} ${pe}">` + re + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r }, C();
|
|
17018
17018
|
}, { fast: o });
|
|
17019
17019
|
}), await $e("afterRender", r);
|
|
17020
17020
|
let k = document.getElementById("snapdom-sandbox");
|
|
@@ -17045,7 +17045,7 @@ async function Q0(t, e) {
|
|
|
17045
17045
|
if (!t)
|
|
17046
17046
|
throw new Error("Element cannot be null or undefined");
|
|
17047
17047
|
let o = J0(e);
|
|
17048
|
-
if (
|
|
17048
|
+
if (Cg(o, e && e.plugins), No() && (o.embedFonts === !0 || $0(t)))
|
|
17049
17049
|
for (let i = 0; i < 3; i++)
|
|
17050
17050
|
try {
|
|
17051
17051
|
await q0(t, e), pa = !1;
|
|
@@ -17057,52 +17057,52 @@ Pe.capture = async (t, e, o) => {
|
|
|
17057
17057
|
if (o !== rr)
|
|
17058
17058
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17059
17059
|
let i = await ir(t, e), a = { img: async (g, h) => {
|
|
17060
|
-
let { toImg: f } = await import("./toImg-
|
|
17060
|
+
let { toImg: f } = await import("./toImg-128585a5.js");
|
|
17061
17061
|
return f(i, { ...g, ...h || {} });
|
|
17062
17062
|
}, svg: async (g, h) => {
|
|
17063
|
-
let { toSvg: f } = await import("./toImg-
|
|
17063
|
+
let { toSvg: f } = await import("./toImg-128585a5.js");
|
|
17064
17064
|
return f(i, { ...g, ...h || {} });
|
|
17065
17065
|
}, canvas: async (g, h) => {
|
|
17066
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17066
|
+
let { toCanvas: f } = await import("./toCanvas-0d592d94.js");
|
|
17067
17067
|
return f(i, { ...g, ...h || {} });
|
|
17068
17068
|
}, blob: async (g, h) => {
|
|
17069
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17069
|
+
let { toBlob: f } = await import("./toBlob-33cd4b12.js");
|
|
17070
17070
|
return f(i, { ...g, ...h || {} });
|
|
17071
17071
|
}, png: async (g, h) => {
|
|
17072
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17072
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17073
17073
|
return f(i, { ...g, ...h || {}, format: "png" });
|
|
17074
17074
|
}, jpeg: async (g, h) => {
|
|
17075
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17075
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17076
17076
|
return f(i, { ...g, ...h || {}, format: "jpeg" });
|
|
17077
17077
|
}, webp: async (g, h) => {
|
|
17078
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17078
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17079
17079
|
return f(i, { ...g, ...h || {}, format: "webp" });
|
|
17080
17080
|
}, download: async (g, h) => {
|
|
17081
|
-
let { download: f } = await import("./download-
|
|
17081
|
+
let { download: f } = await import("./download-8fc67980.js");
|
|
17082
17082
|
return f(i, { ...g, ...h || {} });
|
|
17083
17083
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (g) => {
|
|
17084
|
-
let { toSvg: h } = await import("./toImg-
|
|
17084
|
+
let { toSvg: h } = await import("./toImg-128585a5.js");
|
|
17085
17085
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17086
17086
|
}, canvas: async (g) => {
|
|
17087
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17087
|
+
let { toCanvas: h } = await import("./toCanvas-0d592d94.js");
|
|
17088
17088
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17089
17089
|
}, png: async (g) => {
|
|
17090
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17090
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17091
17091
|
return h(i, { ...e, ...g || {}, format: "png", [qe]: !0 });
|
|
17092
17092
|
}, jpeg: async (g) => {
|
|
17093
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17093
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17094
17094
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17095
17095
|
}, jpg: async (g) => {
|
|
17096
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17096
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17097
17097
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17098
17098
|
}, webp: async (g) => {
|
|
17099
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17099
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-c40e3aed.js");
|
|
17100
17100
|
return h(i, { ...e, ...g || {}, format: "webp", [qe]: !0 });
|
|
17101
17101
|
}, blob: async (g) => {
|
|
17102
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17102
|
+
let { toBlob: h } = await import("./toBlob-33cd4b12.js");
|
|
17103
17103
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17104
17104
|
}, img: async (g) => {
|
|
17105
|
-
let { toImg: h } = await import("./toImg-
|
|
17105
|
+
let { toImg: h } = await import("./toImg-128585a5.js");
|
|
17106
17106
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17107
17107
|
} } }, l = await Lg("defineExports", r), c = Object.assign({}, ...l.filter((g) => g && typeof g == "object")), s = { ...a, ...c };
|
|
17108
17108
|
s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
|
|
@@ -17116,10 +17116,10 @@ Pe.capture = async (t, e, o) => {
|
|
|
17116
17116
|
let k = s[g];
|
|
17117
17117
|
if (!k)
|
|
17118
17118
|
throw new Error(`[snapdom] Unknown export type: ${g}`);
|
|
17119
|
-
let v = d(g, h),
|
|
17120
|
-
await $e("beforeExport",
|
|
17121
|
-
let L = await k(
|
|
17122
|
-
return await $e("afterExport",
|
|
17119
|
+
let v = d(g, h), C = { ...e, export: { type: g, options: v, url: i } };
|
|
17120
|
+
await $e("beforeExport", C);
|
|
17121
|
+
let L = await k(C, v);
|
|
17122
|
+
return await $e("afterExport", C, L), m || (m = !0, await $e("afterSnap", e)), L;
|
|
17123
17123
|
};
|
|
17124
17124
|
return p = p.then(f);
|
|
17125
17125
|
}
|
|
@@ -17302,8 +17302,8 @@ class ef {
|
|
|
17302
17302
|
const N = this.captureRect.width - S - 12, B = p, Q = this.ctx.imageSmoothingEnabled, q = this.ctx.imageSmoothingQuality;
|
|
17303
17303
|
this.ctx.imageSmoothingEnabled = !0, this.ctx.imageSmoothingQuality = "high", this.ctx.drawImage(this.logoImage, N, B, S, R), this.ctx.imageSmoothingEnabled = Q, this.ctx.imageSmoothingQuality = q;
|
|
17304
17304
|
}
|
|
17305
|
-
const
|
|
17306
|
-
this.frames.push(
|
|
17305
|
+
const C = this.ctx.getImageData(0, 0, this.captureRect.width * i, this.captureRect.height * i);
|
|
17306
|
+
this.frames.push(C), console.log("[GifRecorder] 帧添加成功, 当前帧数:", this.frames.length);
|
|
17307
17307
|
}
|
|
17308
17308
|
/**
|
|
17309
17309
|
* 获取当前帧数
|
|
@@ -17862,7 +17862,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
17862
17862
|
"min-width": "30"
|
|
17863
17863
|
}, {
|
|
17864
17864
|
default: x(() => [
|
|
17865
|
-
|
|
17865
|
+
Z(y(a.intervalHour) + " h ", 1),
|
|
17866
17866
|
w(p, { activator: "parent" }, {
|
|
17867
17867
|
default: x(() => [
|
|
17868
17868
|
w(m, { class: "pa-1" }, {
|
|
@@ -17884,7 +17884,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
17884
17884
|
onClick: (k) => a.intervalHour = h
|
|
17885
17885
|
}, {
|
|
17886
17886
|
default: x(() => [
|
|
17887
|
-
|
|
17887
|
+
Z(y(h) + "h", 1)
|
|
17888
17888
|
]),
|
|
17889
17889
|
_: 2
|
|
17890
17890
|
}, 1032, ["onClick"])
|
|
@@ -18179,7 +18179,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18179
18179
|
onClick: e[11] || (e[11] = (h) => a.source = "GFS")
|
|
18180
18180
|
}, {
|
|
18181
18181
|
default: x(() => e[22] || (e[22] = [
|
|
18182
|
-
|
|
18182
|
+
Z(" NOAA ", -1)
|
|
18183
18183
|
])),
|
|
18184
18184
|
_: 1,
|
|
18185
18185
|
__: [22]
|
|
@@ -18192,7 +18192,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18192
18192
|
onClick: e[12] || (e[12] = (h) => a.source = "ECMWF")
|
|
18193
18193
|
}, {
|
|
18194
18194
|
default: x(() => e[23] || (e[23] = [
|
|
18195
|
-
|
|
18195
|
+
Z(" ECMWF ", -1)
|
|
18196
18196
|
])),
|
|
18197
18197
|
_: 1,
|
|
18198
18198
|
__: [23]
|
|
@@ -18220,7 +18220,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18220
18220
|
onClick: e[13] || (e[13] = (h) => a.showTimezone = !a.showTimezone)
|
|
18221
18221
|
}, {
|
|
18222
18222
|
default: x(() => [
|
|
18223
|
-
|
|
18223
|
+
Z(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
18224
18224
|
]),
|
|
18225
18225
|
_: 1
|
|
18226
18226
|
}),
|
|
@@ -18230,7 +18230,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18230
18230
|
]);
|
|
18231
18231
|
}
|
|
18232
18232
|
const zf = /* @__PURE__ */ ie(uf, [["render", Lf]]);
|
|
18233
|
-
const
|
|
18233
|
+
const Cf = {
|
|
18234
18234
|
name: "IdmTimePlayer",
|
|
18235
18235
|
components: { DateTimePicker: ea },
|
|
18236
18236
|
props: {
|
|
@@ -18338,14 +18338,14 @@ const _f = {
|
|
|
18338
18338
|
this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
|
|
18339
18339
|
}
|
|
18340
18340
|
}
|
|
18341
|
-
},
|
|
18341
|
+
}, _f = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
|
|
18342
18342
|
function Mf(t, e, o, i, a, r) {
|
|
18343
18343
|
const l = M("VBtn"), c = M("DateTimePicker");
|
|
18344
18344
|
return A(), I("div", {
|
|
18345
18345
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
18346
18346
|
style: de({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
|
|
18347
18347
|
}, [
|
|
18348
|
-
n("div",
|
|
18348
|
+
n("div", _f, [
|
|
18349
18349
|
w(l, {
|
|
18350
18350
|
size: "small",
|
|
18351
18351
|
density: "compact",
|
|
@@ -18438,12 +18438,12 @@ function Mf(t, e, o, i, a, r) {
|
|
|
18438
18438
|
])
|
|
18439
18439
|
], 4);
|
|
18440
18440
|
}
|
|
18441
|
-
const lr = /* @__PURE__ */ ie(
|
|
18441
|
+
const lr = /* @__PURE__ */ ie(Cf, [["render", Mf]]), Pf = {
|
|
18442
18442
|
name: "IdmGL4",
|
|
18443
18443
|
components: {
|
|
18444
18444
|
IdmOtherLayer: ks,
|
|
18445
18445
|
IdmWeatherLayer: pm,
|
|
18446
|
-
IdmTropicals:
|
|
18446
|
+
IdmTropicals: Zi,
|
|
18447
18447
|
IdmMeasure: sp,
|
|
18448
18448
|
IdmSpot: ip,
|
|
18449
18449
|
IdmMarker: Iu,
|
|
@@ -18480,6 +18480,7 @@ const lr = /* @__PURE__ */ ie(_f, [["render", Mf]]), Pf = {
|
|
|
18480
18480
|
layerVersion: 0,
|
|
18481
18481
|
autoActive: !0,
|
|
18482
18482
|
tempFeather: "",
|
|
18483
|
+
tempFeatherCount: 0,
|
|
18483
18484
|
tropicals: void 0,
|
|
18484
18485
|
playerBottom: 30,
|
|
18485
18486
|
gateway: "https://cbe.ormwx.com",
|
|
@@ -18493,12 +18494,17 @@ const lr = /* @__PURE__ */ ie(_f, [["render", Mf]]), Pf = {
|
|
|
18493
18494
|
var t, e, o, i, a, r, l;
|
|
18494
18495
|
if (this.map) {
|
|
18495
18496
|
const c = this.autoActive && this.weatherCheckList.some((p) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((u) => u === p)), s = this.autoActive && this.weatherCheckList.some((p) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp", "sig-wave-height"].some((u) => u === p)), d = this.otherCheckList.some((p) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((u) => u === p)), m = s || d;
|
|
18496
|
-
this.mapFeather === "nautical" ? c && (this.tempFeather = "nautical", this.$emit("mapFeather", "light")) : this.mapFeather === "satellite" ? c && (this.tempFeather = "satellite", this.$emit("mapFeather", "dark")) : (!c && this.tempFeather === "nautical" && (this.tempFeather = "", this.$emit("mapFeather", "nautical")), !c && this.tempFeather === "satellite" && (this.tempFeather = "", this.$emit("mapFeather", "satellite")), m ? ((t = this.map) != null && t.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (e = this.map) != null && e.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((o = this.map) != null && o.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), (i = this.map) != null && i.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"))), s ? ((a = this.map) != null && a.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), (r = this.map) != null && r.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
|
|
18497
|
+
this.mapFeather === "nautical" ? (this.tempFeatherCount = 1, c && (this.tempFeather = "nautical", this.$emit("mapFeather", "light"))) : this.mapFeather === "satellite" ? (this.tempFeatherCount = 1, c && (this.tempFeather = "satellite", this.$emit("mapFeather", "dark"))) : (!c && this.tempFeather === "nautical" && (this.tempFeather = "", this.$emit("mapFeather", "nautical")), !c && this.tempFeather === "satellite" && (this.tempFeather = "", this.$emit("mapFeather", "satellite")), m ? ((t = this.map) != null && t.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (e = this.map) != null && e.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((o = this.map) != null && o.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), (i = this.map) != null && i.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"))), s ? ((a = this.map) != null && a.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), (r = this.map) != null && r.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
|
|
18497
18498
|
var p, u;
|
|
18498
18499
|
(p = this.map) != null && p.getLayer("sig-wave-height-layer") && this.map.moveLayer("sig-wave-height-layer", "empty-layer-0"), (u = this.map) != null && u.getLayer("sig-wave-height-label-layer") && this.map.moveLayer("sig-wave-height-label-layer", "empty-layer-0");
|
|
18499
18500
|
}, 1e3)) : (l = this.map) != null && l.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-2");
|
|
18500
18501
|
}
|
|
18501
18502
|
}
|
|
18503
|
+
},
|
|
18504
|
+
tempFeatherCount: {
|
|
18505
|
+
handler() {
|
|
18506
|
+
this.tempFeatherCount >= 2 && (this.tempFeather = "");
|
|
18507
|
+
}
|
|
18502
18508
|
}
|
|
18503
18509
|
},
|
|
18504
18510
|
methods: {
|
|
@@ -18533,7 +18539,8 @@ function Tf(t, e, o, i, a, r) {
|
|
|
18533
18539
|
"map-feather": o.mapFeather
|
|
18534
18540
|
}, t.$attrs, {
|
|
18535
18541
|
onOtherCheckList: r.handleChangeOtherChecklist,
|
|
18536
|
-
onMapFeather: e[0] || (e[0] = (g) => t.$emit("mapFeather", g))
|
|
18542
|
+
onMapFeather: e[0] || (e[0] = (g) => t.$emit("mapFeather", g)),
|
|
18543
|
+
onTempFeatherCount: e[1] || (e[1] = (g) => a.tempFeatherCount = a.tempFeatherCount + 1)
|
|
18537
18544
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather", "onOtherCheckList"]),
|
|
18538
18545
|
w(c, U({
|
|
18539
18546
|
ref: "idmWeatherLayers",
|
|
@@ -18617,7 +18624,7 @@ class If {
|
|
|
18617
18624
|
we(this, "hi");
|
|
18618
18625
|
we(this, "td");
|
|
18619
18626
|
we(this, "windy");
|
|
18620
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
18627
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, _e, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, Ct, _t, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, Co, _o, Mo, Po, So, To, Ro, Io, Do, Eo, Go, wa, xa, va, Aa, ka, La, za, Ca, _a, Ma, Pa, Sa, Ta, Ra, Ia, Da, Ea, Ga, Fa, ja, Ba, Na, Wa, Za, Va, Xa, Oa, Ya, Ha, Ua, Ja, Ka, Qa, qa, $a, ei, ti, oi, ai, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi;
|
|
18621
18628
|
this.i4 = {
|
|
18622
18629
|
source: {
|
|
18623
18630
|
type: "raster",
|
|
@@ -37141,40 +37148,40 @@ class If {
|
|
|
37141
37148
|
composite: this.originStyle.light.sources.composite
|
|
37142
37149
|
},
|
|
37143
37150
|
layers: [
|
|
37144
|
-
(a = (i = this.originStyle) == null ? void 0 : i.light.layers) == null ? void 0 : a.find((
|
|
37145
|
-
(l = (r = this.originStyle) == null ? void 0 : r.light.layers) == null ? void 0 : l.find((
|
|
37146
|
-
(s = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : s.find((
|
|
37147
|
-
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((
|
|
37148
|
-
(u = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : u.find((
|
|
37149
|
-
(g = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : g.find((
|
|
37150
|
-
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((
|
|
37151
|
-
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((
|
|
37152
|
-
(L = (
|
|
37153
|
-
(z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((
|
|
37154
|
-
(S = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : S.find((
|
|
37155
|
-
(N = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : N.find((
|
|
37156
|
-
(Q = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : Q.find((
|
|
37157
|
-
(oe = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : oe.find((
|
|
37158
|
-
(he = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : he.find((
|
|
37159
|
-
(J = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : J.find((
|
|
37160
|
-
(ae = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : ae.find((
|
|
37161
|
-
(O = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : O.find((
|
|
37162
|
-
(D = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : D.find((
|
|
37163
|
-
(fe = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : fe.find((
|
|
37164
|
-
(ze = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ze.find((
|
|
37165
|
-
(be = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : be.find((
|
|
37166
|
-
(Te = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : Te.find((
|
|
37167
|
-
(me = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : me.find((
|
|
37168
|
-
(Be = (Ye = this.originStyle) == null ? void 0 : Ye.light.layers) == null ? void 0 : Be.find((
|
|
37169
|
-
(De = (
|
|
37170
|
-
(Me = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : Me.find((
|
|
37171
|
-
(xe = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : xe.find((
|
|
37151
|
+
(a = (i = this.originStyle) == null ? void 0 : i.light.layers) == null ? void 0 : a.find((_) => _.id === "land"),
|
|
37152
|
+
(l = (r = this.originStyle) == null ? void 0 : r.light.layers) == null ? void 0 : l.find((_) => _.id === "water"),
|
|
37153
|
+
(s = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : s.find((_) => _.id === "ice-area-fill"),
|
|
37154
|
+
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((_) => _.id === "ice-area-line"),
|
|
37155
|
+
(u = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : u.find((_) => _.id === "empty-layer-0"),
|
|
37156
|
+
(g = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : g.find((_) => _.id === "empty-layer-1"),
|
|
37157
|
+
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((_) => _.id === "country-boundaries"),
|
|
37158
|
+
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((_) => _.id === "water-outline"),
|
|
37159
|
+
(L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((_) => _.id === "water-outline2"),
|
|
37160
|
+
(z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((_) => _.id === "empty-layer-2"),
|
|
37161
|
+
(S = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : S.find((_) => _.id === "water-line-label"),
|
|
37162
|
+
(N = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : N.find((_) => _.id === "water-point-label"),
|
|
37163
|
+
(Q = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : Q.find((_) => _.id === "loadlines-label"),
|
|
37164
|
+
(oe = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : oe.find((_) => _.id === "loadlines-fill"),
|
|
37165
|
+
(he = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : he.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37166
|
+
(J = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : J.find((_) => _.id === "ne-10m-outline"),
|
|
37167
|
+
(ae = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : ae.find((_) => _.id === "ne-10m-label"),
|
|
37168
|
+
(O = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : O.find((_) => _.id === "china-route-line"),
|
|
37169
|
+
(D = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : D.find((_) => _.id === "china-route-fill"),
|
|
37170
|
+
(fe = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : fe.find((_) => _.id === "china-route-label"),
|
|
37171
|
+
(ze = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ze.find((_) => _.id === "admin-0-boundary-bg"),
|
|
37172
|
+
(be = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : be.find((_) => _.id === "admin-0-boundary"),
|
|
37173
|
+
(Te = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : Te.find((_) => _.id === "admin-0-boundary-disputed"),
|
|
37174
|
+
(me = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : me.find((_) => _.id === "country-label"),
|
|
37175
|
+
(Be = (Ye = this.originStyle) == null ? void 0 : Ye.light.layers) == null ? void 0 : Be.find((_) => _.id === "continent-label"),
|
|
37176
|
+
(De = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : De.find((_) => _.id === "tide-stations"),
|
|
37177
|
+
(Me = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : Me.find((_) => _.id === "empty-layer-3"),
|
|
37178
|
+
(xe = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : xe.find((_) => _.id === "empty-layer-4")
|
|
37172
37179
|
]
|
|
37173
37180
|
},
|
|
37174
37181
|
dark: {
|
|
37175
37182
|
version: 8,
|
|
37176
37183
|
name: "dark",
|
|
37177
|
-
metadata: (
|
|
37184
|
+
metadata: (We = this.originStyle) == null ? void 0 : We.dark.metadata,
|
|
37178
37185
|
center: [90.22129259388525, -3.2084663486364606],
|
|
37179
37186
|
zoom: 1.2556266457717493,
|
|
37180
37187
|
bearing: 0,
|
|
@@ -37193,33 +37200,33 @@ class If {
|
|
|
37193
37200
|
protected: !1,
|
|
37194
37201
|
draft: !1,
|
|
37195
37202
|
layers: [
|
|
37196
|
-
(
|
|
37197
|
-
(te = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : te.find((
|
|
37198
|
-
(ne = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : ne.find((
|
|
37199
|
-
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((
|
|
37200
|
-
(Fe = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : Fe.find((
|
|
37201
|
-
(dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((
|
|
37202
|
-
(pt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : pt.find((
|
|
37203
|
-
(gt = (ut = this.originStyle) == null ? void 0 : ut.dark.layers) == null ? void 0 : gt.find((
|
|
37204
|
-
(yt = (ft = this.originStyle) == null ? void 0 : ft.dark.layers) == null ? void 0 : yt.find((
|
|
37205
|
-
(wt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : wt.find((
|
|
37206
|
-
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((
|
|
37207
|
-
(kt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : kt.find((
|
|
37208
|
-
(zt = (Lt = this.originStyle) == null ? void 0 : Lt.dark.layers) == null ? void 0 : zt.find((
|
|
37209
|
-
(
|
|
37210
|
-
(Pt = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : Pt.find((
|
|
37211
|
-
(Tt = (St = this.originStyle) == null ? void 0 : St.dark.layers) == null ? void 0 : Tt.find((
|
|
37212
|
-
(It = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : It.find((
|
|
37213
|
-
(Et = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : Et.find((
|
|
37214
|
-
(Ft = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Ft.find((
|
|
37215
|
-
(Bt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Bt.find((
|
|
37216
|
-
(
|
|
37217
|
-
(Vt = (
|
|
37218
|
-
(Ot = (Xt = this.originStyle) == null ? void 0 : Xt.dark.layers) == null ? void 0 : Ot.find((
|
|
37219
|
-
(Ht = (Yt = this.originStyle) == null ? void 0 : Yt.dark.layers) == null ? void 0 : Ht.find((
|
|
37220
|
-
(Jt = (Ut = this.originStyle) == null ? void 0 : Ut.dark.layers) == null ? void 0 : Jt.find((
|
|
37221
|
-
(Qt = (Kt = this.originStyle) == null ? void 0 : Kt.dark.layers) == null ? void 0 : Qt.find((
|
|
37222
|
-
($t = (qt = this.originStyle) == null ? void 0 : qt.dark.layers) == null ? void 0 : $t.find((
|
|
37203
|
+
(Ze = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ze.find((_) => _.id === "land"),
|
|
37204
|
+
(te = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : te.find((_) => _.id === "water"),
|
|
37205
|
+
(ne = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : ne.find((_) => _.id === "ice-area-fill"),
|
|
37206
|
+
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((_) => _.id === "ice-area-line"),
|
|
37207
|
+
(Fe = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : Fe.find((_) => _.id === "empty-layer-0"),
|
|
37208
|
+
(dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((_) => _.id === "empty-layer-1"),
|
|
37209
|
+
(pt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : pt.find((_) => _.id === "country-boundaries"),
|
|
37210
|
+
(gt = (ut = this.originStyle) == null ? void 0 : ut.dark.layers) == null ? void 0 : gt.find((_) => _.id === "water-outline"),
|
|
37211
|
+
(yt = (ft = this.originStyle) == null ? void 0 : ft.dark.layers) == null ? void 0 : yt.find((_) => _.id === "empty-layer-2"),
|
|
37212
|
+
(wt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : wt.find((_) => _.id === "water-line-label"),
|
|
37213
|
+
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((_) => _.id === "water-point-label"),
|
|
37214
|
+
(kt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : kt.find((_) => _.id === "loadlines-label"),
|
|
37215
|
+
(zt = (Lt = this.originStyle) == null ? void 0 : Lt.dark.layers) == null ? void 0 : zt.find((_) => _.id === "loadlines-fill"),
|
|
37216
|
+
(_t = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : _t.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37217
|
+
(Pt = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : Pt.find((_) => _.id === "ne-10m-outline"),
|
|
37218
|
+
(Tt = (St = this.originStyle) == null ? void 0 : St.dark.layers) == null ? void 0 : Tt.find((_) => _.id === "ne-10m-label"),
|
|
37219
|
+
(It = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : It.find((_) => _.id === "china-route-line"),
|
|
37220
|
+
(Et = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : Et.find((_) => _.id === "china-route-fill"),
|
|
37221
|
+
(Ft = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Ft.find((_) => _.id === "china-route-label"),
|
|
37222
|
+
(Bt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Bt.find((_) => _.id === "admin-0-boundary-bg"),
|
|
37223
|
+
(Wt = (Nt = this.originStyle) == null ? void 0 : Nt.dark.layers) == null ? void 0 : Wt.find((_) => _.id === "admin-0-boundary"),
|
|
37224
|
+
(Vt = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Vt.find((_) => _.id === "admin-0-boundary-disputed"),
|
|
37225
|
+
(Ot = (Xt = this.originStyle) == null ? void 0 : Xt.dark.layers) == null ? void 0 : Ot.find((_) => _.id === "country-label"),
|
|
37226
|
+
(Ht = (Yt = this.originStyle) == null ? void 0 : Yt.dark.layers) == null ? void 0 : Ht.find((_) => _.id === "continent-label"),
|
|
37227
|
+
(Jt = (Ut = this.originStyle) == null ? void 0 : Ut.dark.layers) == null ? void 0 : Jt.find((_) => _.id === "tide-stations"),
|
|
37228
|
+
(Qt = (Kt = this.originStyle) == null ? void 0 : Kt.dark.layers) == null ? void 0 : Qt.find((_) => _.id === "empty-layer-3"),
|
|
37229
|
+
($t = (qt = this.originStyle) == null ? void 0 : qt.dark.layers) == null ? void 0 : $t.find((_) => _.id === "empty-layer-4")
|
|
37223
37230
|
]
|
|
37224
37231
|
},
|
|
37225
37232
|
satellite: {
|
|
@@ -37242,26 +37249,26 @@ class If {
|
|
|
37242
37249
|
protected: !1,
|
|
37243
37250
|
draft: !1,
|
|
37244
37251
|
layers: [
|
|
37245
|
-
(so = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : so.find((
|
|
37246
|
-
(mo = (co = this.originStyle) == null ? void 0 : co.satellite.layers) == null ? void 0 : mo.find((
|
|
37247
|
-
(po = (ho = this.originStyle) == null ? void 0 : ho.satellite.layers) == null ? void 0 : po.find((
|
|
37248
|
-
(go = (uo = this.originStyle) == null ? void 0 : uo.satellite.layers) == null ? void 0 : go.find((
|
|
37249
|
-
(yo = (fo = this.originStyle) == null ? void 0 : fo.satellite.layers) == null ? void 0 : yo.find((
|
|
37250
|
-
(wo = (bo = this.originStyle) == null ? void 0 : bo.satellite.layers) == null ? void 0 : wo.find((
|
|
37251
|
-
(vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((
|
|
37252
|
-
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((
|
|
37253
|
-
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((
|
|
37254
|
-
(
|
|
37255
|
-
(Po = (Mo = this.originStyle) == null ? void 0 : Mo.satellite.layers) == null ? void 0 : Po.find((
|
|
37256
|
-
(To = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : To.find((
|
|
37257
|
-
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Io.find((
|
|
37258
|
-
(Eo = (Do = this.originStyle) == null ? void 0 : Do.satellite.layers) == null ? void 0 : Eo.find((
|
|
37259
|
-
(wa = (Go = this.originStyle) == null ? void 0 : Go.satellite.layers) == null ? void 0 : wa.find((
|
|
37260
|
-
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((
|
|
37261
|
-
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((
|
|
37262
|
-
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((
|
|
37263
|
-
(
|
|
37264
|
-
(Pa = (Ma = this.originStyle) == null ? void 0 : Ma.satellite.layers) == null ? void 0 : Pa.find((
|
|
37252
|
+
(so = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : so.find((_) => _.id === "background"),
|
|
37253
|
+
(mo = (co = this.originStyle) == null ? void 0 : co.satellite.layers) == null ? void 0 : mo.find((_) => _.id === "satellite"),
|
|
37254
|
+
(po = (ho = this.originStyle) == null ? void 0 : ho.satellite.layers) == null ? void 0 : po.find((_) => _.id === "ice-area-fill"),
|
|
37255
|
+
(go = (uo = this.originStyle) == null ? void 0 : uo.satellite.layers) == null ? void 0 : go.find((_) => _.id === "ice-area-line"),
|
|
37256
|
+
(yo = (fo = this.originStyle) == null ? void 0 : fo.satellite.layers) == null ? void 0 : yo.find((_) => _.id === "empty-layer-0"),
|
|
37257
|
+
(wo = (bo = this.originStyle) == null ? void 0 : bo.satellite.layers) == null ? void 0 : wo.find((_) => _.id === "empty-layer-1"),
|
|
37258
|
+
(vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((_) => _.id === "country-boundaries"),
|
|
37259
|
+
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((_) => _.id === "water-outline"),
|
|
37260
|
+
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((_) => _.id === "empty-layer-2"),
|
|
37261
|
+
(_o = (Co = this.originStyle) == null ? void 0 : Co.satellite.layers) == null ? void 0 : _o.find((_) => _.id === "loadlines-label"),
|
|
37262
|
+
(Po = (Mo = this.originStyle) == null ? void 0 : Mo.satellite.layers) == null ? void 0 : Po.find((_) => _.id === "loadlines-fill"),
|
|
37263
|
+
(To = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : To.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37264
|
+
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Io.find((_) => _.id === "ne-10m-outline"),
|
|
37265
|
+
(Eo = (Do = this.originStyle) == null ? void 0 : Do.satellite.layers) == null ? void 0 : Eo.find((_) => _.id === "ne-10m-label"),
|
|
37266
|
+
(wa = (Go = this.originStyle) == null ? void 0 : Go.satellite.layers) == null ? void 0 : wa.find((_) => _.id === "china-route-line"),
|
|
37267
|
+
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((_) => _.id === "china-route-fill"),
|
|
37268
|
+
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((_) => _.id === "china-route-label"),
|
|
37269
|
+
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((_) => _.id === "tide-stations"),
|
|
37270
|
+
(_a = (Ca = this.originStyle) == null ? void 0 : Ca.satellite.layers) == null ? void 0 : _a.find((_) => _.id === "empty-layer-3"),
|
|
37271
|
+
(Pa = (Ma = this.originStyle) == null ? void 0 : Ma.satellite.layers) == null ? void 0 : Pa.find((_) => _.id === "empty-layer-4")
|
|
37265
37272
|
]
|
|
37266
37273
|
},
|
|
37267
37274
|
nautical: {
|
|
@@ -37321,28 +37328,28 @@ class If {
|
|
|
37321
37328
|
projection: this.originStyle.light.projection,
|
|
37322
37329
|
sources: this.originStyle.light.sources,
|
|
37323
37330
|
layers: [
|
|
37324
|
-
(Ta = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ta.find((
|
|
37325
|
-
(Ia = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Ia.find((
|
|
37331
|
+
(Ta = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ta.find((_) => _.id === "land"),
|
|
37332
|
+
(Ia = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Ia.find((_) => _.id === "water"),
|
|
37326
37333
|
o ? this.hi.layer : this.i4.layer,
|
|
37327
|
-
(Ea = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ea.find((
|
|
37328
|
-
(Fa = (Ga = this.originStyle) == null ? void 0 : Ga.light.layers) == null ? void 0 : Fa.find((
|
|
37329
|
-
(Ba = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Ba.find((
|
|
37330
|
-
(
|
|
37331
|
-
(Va = (
|
|
37332
|
-
(Oa = (Xa = this.originStyle) == null ? void 0 : Xa.light.layers) == null ? void 0 : Oa.find((
|
|
37333
|
-
(Ha = (Ya = this.originStyle) == null ? void 0 : Ya.light.layers) == null ? void 0 : Ha.find((
|
|
37334
|
-
(Ja = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Ja.find((
|
|
37335
|
-
(Qa = (Ka = this.originStyle) == null ? void 0 : Ka.light.layers) == null ? void 0 : Qa.find((
|
|
37336
|
-
($a = (qa = this.originStyle) == null ? void 0 : qa.light.layers) == null ? void 0 : $a.find((
|
|
37337
|
-
(ti = (ei = this.originStyle) == null ? void 0 : ei.light.layers) == null ? void 0 : ti.find((
|
|
37338
|
-
(ai = (oi = this.originStyle) == null ? void 0 : oi.light.layers) == null ? void 0 : ai.find((
|
|
37339
|
-
(ri = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : ri.find((
|
|
37340
|
-
(ni = (li = this.originStyle) == null ? void 0 : li.light.layers) == null ? void 0 : ni.find((
|
|
37341
|
-
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((
|
|
37342
|
-
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((
|
|
37343
|
-
(pi = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : pi.find((
|
|
37344
|
-
(gi = (ui = this.originStyle) == null ? void 0 : ui.light.layers) == null ? void 0 : gi.find((
|
|
37345
|
-
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((
|
|
37334
|
+
(Ea = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ea.find((_) => _.id === "ice-area-fill"),
|
|
37335
|
+
(Fa = (Ga = this.originStyle) == null ? void 0 : Ga.light.layers) == null ? void 0 : Fa.find((_) => _.id === "ice-area-line"),
|
|
37336
|
+
(Ba = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Ba.find((_) => _.id === "empty-layer-0"),
|
|
37337
|
+
(Wa = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Wa.find((_) => _.id === "empty-layer-1"),
|
|
37338
|
+
(Va = (Za = this.originStyle) == null ? void 0 : Za.light.layers) == null ? void 0 : Va.find((_) => _.id === "empty-layer-2"),
|
|
37339
|
+
(Oa = (Xa = this.originStyle) == null ? void 0 : Xa.light.layers) == null ? void 0 : Oa.find((_) => _.id === "country-boundaries"),
|
|
37340
|
+
(Ha = (Ya = this.originStyle) == null ? void 0 : Ya.light.layers) == null ? void 0 : Ha.find((_) => _.id === "water-outline"),
|
|
37341
|
+
(Ja = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Ja.find((_) => _.id === "water-outline2"),
|
|
37342
|
+
(Qa = (Ka = this.originStyle) == null ? void 0 : Ka.light.layers) == null ? void 0 : Qa.find((_) => _.id === "loadlines-label"),
|
|
37343
|
+
($a = (qa = this.originStyle) == null ? void 0 : qa.light.layers) == null ? void 0 : $a.find((_) => _.id === "loadlines-fill"),
|
|
37344
|
+
(ti = (ei = this.originStyle) == null ? void 0 : ei.light.layers) == null ? void 0 : ti.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37345
|
+
(ai = (oi = this.originStyle) == null ? void 0 : oi.light.layers) == null ? void 0 : ai.find((_) => _.id === "ne-10m-outline"),
|
|
37346
|
+
(ri = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : ri.find((_) => _.id === "ne-10m-label"),
|
|
37347
|
+
(ni = (li = this.originStyle) == null ? void 0 : li.light.layers) == null ? void 0 : ni.find((_) => _.id === "china-route-line"),
|
|
37348
|
+
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((_) => _.id === "china-route-fill"),
|
|
37349
|
+
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((_) => _.id === "china-route-label"),
|
|
37350
|
+
(pi = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : pi.find((_) => _.id === "tide-stations"),
|
|
37351
|
+
(gi = (ui = this.originStyle) == null ? void 0 : ui.light.layers) == null ? void 0 : gi.find((_) => _.id === "empty-layer-3"),
|
|
37352
|
+
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((_) => _.id === "empty-layer-4")
|
|
37346
37353
|
]
|
|
37347
37354
|
}
|
|
37348
37355
|
};
|
|
@@ -37548,7 +37555,7 @@ function Bf(t, e, o, i, a, r) {
|
|
|
37548
37555
|
], 4);
|
|
37549
37556
|
}
|
|
37550
37557
|
const Nf = /* @__PURE__ */ ie(Df, [["render", Bf]]);
|
|
37551
|
-
const
|
|
37558
|
+
const Wf = {
|
|
37552
37559
|
name: "DateRangePicker",
|
|
37553
37560
|
props: {
|
|
37554
37561
|
width: {
|
|
@@ -37790,7 +37797,7 @@ const Zf = {
|
|
|
37790
37797
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
37791
37798
|
}
|
|
37792
37799
|
}
|
|
37793
|
-
},
|
|
37800
|
+
}, Zf = {
|
|
37794
37801
|
ref: "idmGl4DatePicker",
|
|
37795
37802
|
class: "idm-gl4-date-picker"
|
|
37796
37803
|
}, Vf = { class: "flex-1-1-0" }, Xf = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, Of = {
|
|
@@ -37799,7 +37806,7 @@ const Zf = {
|
|
|
37799
37806
|
}, Yf = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
|
|
37800
37807
|
function Hf(t, e, o, i, a, r) {
|
|
37801
37808
|
const l = M("VIcon"), c = M("VDatePicker"), s = M("VDivider"), d = M("VCardText"), m = M("VBtn"), p = M("VCardActions"), u = M("VCard");
|
|
37802
|
-
return A(), I("div",
|
|
37809
|
+
return A(), I("div", Zf, [
|
|
37803
37810
|
n("div", {
|
|
37804
37811
|
style: de({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
37805
37812
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
@@ -37879,7 +37886,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37879
37886
|
onClick: (f) => r.handleFastPick({ dateRange: h })
|
|
37880
37887
|
}, {
|
|
37881
37888
|
default: x(() => [
|
|
37882
|
-
|
|
37889
|
+
Z(y(t.$t("time." + h)), 1)
|
|
37883
37890
|
]),
|
|
37884
37891
|
_: 2
|
|
37885
37892
|
}, 1032, ["color", "variant", "onClick"]))), 128))
|
|
@@ -37892,7 +37899,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37892
37899
|
onClick: r.handleCancelDate
|
|
37893
37900
|
}, {
|
|
37894
37901
|
default: x(() => [
|
|
37895
|
-
|
|
37902
|
+
Z(y(t.$t("actions.cancel")), 1)
|
|
37896
37903
|
]),
|
|
37897
37904
|
_: 1
|
|
37898
37905
|
}, 8, ["onClick"]),
|
|
@@ -37904,7 +37911,7 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37904
37911
|
onClick: r.handleConfirmDate
|
|
37905
37912
|
}, {
|
|
37906
37913
|
default: x(() => [
|
|
37907
|
-
|
|
37914
|
+
Z(y(t.$t("actions.confirm")), 1)
|
|
37908
37915
|
]),
|
|
37909
37916
|
_: 1
|
|
37910
37917
|
}, 8, ["onClick"])
|
|
@@ -37918,24 +37925,24 @@ function Hf(t, e, o, i, a, r) {
|
|
|
37918
37925
|
}, 8, ["style"])) : G("", !0)
|
|
37919
37926
|
], 512);
|
|
37920
37927
|
}
|
|
37921
|
-
const Uf = /* @__PURE__ */ ie(
|
|
37928
|
+
const Uf = /* @__PURE__ */ ie(Wf, [["render", Hf]]), m1 = {
|
|
37922
37929
|
install(t) {
|
|
37923
|
-
t.component("MapInitial", Nf), t.component("MapboxGL", Rf), t.component("TropicalGL",
|
|
37930
|
+
t.component("MapInitial", Nf), t.component("MapboxGL", Rf), t.component("TropicalGL", Zi), t.component("LatLngGL", Wi), t.component("DateTimePicker", ea), t.component("DateRangePicker", Uf), t.component("PortDetail", ua), t.component("TimePlayer", lr);
|
|
37924
37931
|
}
|
|
37925
37932
|
};
|
|
37926
37933
|
export {
|
|
37927
37934
|
ea as D,
|
|
37928
|
-
|
|
37935
|
+
Wi as L,
|
|
37929
37936
|
m1 as M,
|
|
37930
37937
|
ua as P,
|
|
37931
|
-
|
|
37938
|
+
Zi as T,
|
|
37932
37939
|
ga as V,
|
|
37933
37940
|
Je as W,
|
|
37934
37941
|
Nf as a,
|
|
37935
37942
|
Rf as b,
|
|
37936
37943
|
Uf as c,
|
|
37937
37944
|
lr as d,
|
|
37938
|
-
|
|
37945
|
+
Ce as e,
|
|
37939
37946
|
je as f,
|
|
37940
37947
|
If as g,
|
|
37941
37948
|
No as l
|